woocommerce/plugins/woocommerce-blocks/assets/js/data/checkout
Thomas Roberts 130827a2c3 Allow third party methods to appear in local pickup area (https://github.com/woocommerce/woocommerce-blocks/pull/8256)
* Add get_collectible_method_ids function

* Add collectibleMethodIds to asset data registry

* Check whether method id is pickup_location/in collectibleMethodIds

* Allow selectShippingRate to be called without a package id

* Prevent collectible methods showing in the main shipping area

* Remove unnecessary pluck and add pickup_location to returned array

* No longer insert pickup_location in collectibleMethodIds

* Allow third party methods to influence low/high collection price

* Update useShippingData to consider any collectible method

* Add hasSelectedLocalPickup to shipping types

* Add dependency to selectShippingRate in useShippingData

* Register collectibleMethodIds as a callback

This is so the shipping methods get change to register before this is called. Passing a callback to `add` means it won't be called until just before it is output.

* Update supports key to 'local_pickup'

* Rename utils/shipping-rates to TS

* Convert to TS, add isPackageRateCollectible & hasCollectableRate

* Add tests for hasCollectableRate and isPackageRateCollectible

* Update shipping controller to output only method names

* Make PickupLocation shipping method support local_pickup

* Set prefersCollection based on rate ID being collectible

* Remove need to retrieve settings and use helper function instead

* rename hasCollectableRate to hasCollectibleRate

* Use array_reduce and update comments in  get_local_pickup_method_ids

* Switch order of array_unique and array_values

* Remove unneeded dependency

* Hyphenate local-pickup so it follows the same format as other features

* Update use of collectible to collectable

* Change supports feature to be hyphenated
2023-02-03 08:00:24 -08:00
..
test Fix/extension data conflicts (https://github.com/woocommerce/woocommerce-blocks/pull/8354) 2023-02-03 11:18:18 +00:00
action-types.ts Introduce shipping method toggle block 2023-01-12 15:34:44 +01:00
actions.ts Fix/extension data conflicts (https://github.com/woocommerce/woocommerce-blocks/pull/8354) 2023-02-03 11:18:18 +00:00
constants.ts Consolidate Address types (https://github.com/woocommerce/woocommerce-blocks/pull/7272) 2022-10-06 15:48:52 +01:00
default-state.ts Maintain Local Pickup Selection (https://github.com/woocommerce/woocommerce-blocks/pull/7894) 2023-01-12 15:42:43 +01:00
index.ts Add thunk support for < WP 5.9 (https://github.com/woocommerce/woocommerce-blocks/pull/8136) 2023-01-09 15:01:49 -08:00
reducers.ts Fix/extension data conflicts (https://github.com/woocommerce/woocommerce-blocks/pull/8354) 2023-02-03 11:18:18 +00:00
selectors.ts Allow third party methods to appear in local pickup area (https://github.com/woocommerce/woocommerce-blocks/pull/8256) 2023-02-03 08:00:24 -08:00
thunks.ts Move notices to corresponding context (https://github.com/woocommerce/woocommerce-blocks/pull/8228) 2023-01-24 11:58:30 +07:00
types.ts Move paymentResult to the payment store (https://github.com/woocommerce/woocommerce-blocks/pull/7692) 2022-11-18 12:13:00 +00:00
utils.ts Prefix all actions in the checkout and payment-method stores with `__internal` (https://github.com/woocommerce/woocommerce-blocks/pull/7266) 2022-10-05 11:04:16 +01:00