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
5098bb1169
woocommerce
/
plugins
/
woocommerce-blocks
/
packages
/
checkout
/
utils
/
index.js
3 lines
93 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 cart/extensions endpoint to allow third party extensions to process server-side and get a new cart (https://github.com/woocommerce/woocommerce-blocks/pull/4298) * Move text-input to checkout package * Add support to TextInput for inputs with type number * Add ExperimentalDiscountsMeta.Slot to Cart sidebar * Add extra styles for Button and Panel components * Add updateCartFromApi util to @woocommerce/blocks-checkout * Change updateCartFromApi to TypeScript * Stop passing contexts through the discounts slot fill * Add CartExtensionsSchema class * Add CartExtensions Route * Add register_update_callback and get_update_callback fns * Add extensionCartUpdate function * Add applyExtensionCartUpdate action * Make extensionCartUpdate use batching * Add ExtensionCartUpdateArgs type definition * Execute a success/error function after request in extensionCartUpdate * Remove success and error functions * Avoid including all schemas in CartExtensionsSchema instantiation This is achieved by inheriting AbstractSchema and slightly modifying the way in which the latest cart data is returned from this endpoint. * Update docs for extensionCartUpdate * Handle errors from extension callbacks * Throw better errors when incorrect namespace/functions are used * Add tests for CartExtensions route, ExtendRestApi update callback registration * Add dummy get_properties method to CartExtensionsSchema
2021-06-07 09:16:47 +00:00
export
{
extensionCartUpdate
}
from
'./extension-cart-update'
;