This website requires JavaScript.
Explore
Help
Sign In
Steve-Dee-Designs
/
woocommerce
mirror of
https://github.com/woocommerce/woocommerce.git
Watch
1
Star
0
Fork
You've already forked woocommerce
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
bafa5c2827
woocommerce
/
plugins
/
woocommerce-blocks
/
packages
/
checkout
/
utils
/
index.js
3 lines
90 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Enhance checkout filter system. (https://github.com/woocommerce/woocommerce-blocks/pull/3835) * Add filter to extend product price * Remove code targeting WC Subscriptions * Rename filter * Use extendibility API instead of filters * Remove __EXPERIMENTAL_CART_ITEM_PRICE_FILTER from docs * throw errors on validation * Don't catch filter errors for admins * Add tests * wrap filter calls in memo * pass extensions as top level prop * abstract errors * add jsdoc * update tests * review * turn __experimentalApplyCheckoutFilter into a hook and move useMemo inside it * revert name * wrap getCheckoutFilters in useMemo * refactor filter function so memozation is done inside components * unify true instance * fix rebase Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
2021-02-17 13:01:20 +00:00
export
*
from
'./validation'
;
Add Slot/Fill to discounts area in cart sidebar (https://github.com/woocommerce/woocommerce-blocks/pull/4248) * Move text-input to checkout package * Pass validation props directly to ValidatedTextInput * Import label relatively instead of from package * Pass validation functions to ValidatedTextInput This is so it doesn't need to get them from useValidationContext. * Add InputProps to ValidatedTextInput This will be used to control additional props on the input element of TextInput * Spread inputProps onto <input> element of TextInput * Export TextInput from @woocommerce/blocks-checkout * Add @woocommerce/blocks-checkout package to tsconfig * Allow styling to be applied to number inputs and when value is 0 * Make style order consistent * Remove inputProps to rely on rest in TextInput * Add specific prop for the inputErrorComponent * Only disallow active state if value is 0 AND type is number * Change all uses of ValidatedTextInput to also pass inputErrorComponent * Revert "Change all uses of ValidatedTextInput to also pass inputErrorComponent" This reverts commit ec734b99c20c4d29fcf778714246fc406ee37eaf. * Revert "Remove inputProps to rely on rest in TextInput" This reverts commit 1fc64cca4002206423d1fa443ff2d60130ba1ea0. * Revert "Revert "Change all uses of ValidatedTextInput to also pass inputErrorComponent"" This reverts commit 110e3606a996668be5a32698b634b7706d16cddc. * Revert "Revert "Remove inputProps to rely on rest in TextInput"" This reverts commit aeb03526c44b3fcc97a719a18930d08157a80baf. * Don't pass errorMessage to ValidatedTextInput * Add DiscountsMetaSlot * Add ExperimentalDiscountsMeta.Slot to Cart sidebar * Add extra styles for Button and Panel components * Export ExperimentalDiscountsMeta from checkout package * Add updateCartFromApi util to @woocommerce/blocks-checkout * Add comment to updateCartFromApi * Change updateCartFromApi to TypeScript * Revert "Move `TextInput` to checkout package and allow it to be used for input type=number (https://github.com/woocommerce/woocommerce-blocks/pull/4238)" This reverts commit ee9b2d20e0b4a19a458314a0e69cf845b331ccc0. * Stop passing contexts through the discounts slot fill * Allow ValidatedTextInput to be used for type=number * Remove contexts from Discounts slot fill * Update snapshots * Stop `errorMessage` being spread onto input fields in checkout * Add paths to tsconfig * Remove contexts from Discounts slot * Accept step min and max on ValidatedTextInput * Remove "no-margin" option on buttons * Remove spinners from input type number * Remove `no-top-border` style from panel * Prevent text in buttons from breaking in the middle of words * Add checkout package to tsconfig file list * Stop passing components through DiscountsMetaSlot
2021-06-04 08:44:26 +00:00
export
{
updateCartFromApi
}
from
'./update-cart-from-api'
;