@graphcommerce/magento-cart-pickup 4.13.3 → 4.14.0-canary.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,8 +1,22 @@
1
1
  # Change Log
2
2
 
3
- ## 4.13.3
3
+ ## 4.14.0-canary.3
4
4
 
5
- ## 4.13.2
5
+ ### Minor Changes
6
+
7
+ - [#1729](https://github.com/graphcommerce-org/graphcommerce/pull/1729) [`c37187a51`](https://github.com/graphcommerce-org/graphcommerce/commit/c37187a513670ebcf09e99eb4a762c8bdb5df7e4) - Moved Magento Cart Pickup shipping method to the [GraphCommerce plugin system](https://www.graphcommerce.org/docs/framework/plugins)
8
+
9
+ Upgrade guide:
10
+
11
+ - The upgrade removes `@graphcommerce/magento-cart-pickup` package from your `package.json`, remove them for now.
12
+ - Proceed to upgrade normally
13
+ - Add back `@graphcommerce/magento-cart-pickup`, following the [GraphCommerce Magento docs](https://graphcommerce.org/docs/magento). ([@paales](https://github.com/paales))
14
+
15
+ ## 4.14.0-canary.2
16
+
17
+ ## 4.13.2-canary.1
18
+
19
+ ## 4.13.2-canary.0
6
20
 
7
21
  ## 4.13.1
8
22
 
package/REAMDE.md ADDED
@@ -0,0 +1,11 @@
1
+ # Magento Cart Pickup
2
+
3
+ Integrates GraphCommerce with MSI (Multi Source Inventory) and adds support for
4
+ pickup in store.
5
+
6
+ ## Installation
7
+
8
+ 1. Find current version of your `@graphcommerce/magento-cart-shipping-method` in
9
+ your package.json.
10
+ 2. `yarn add @graphcommerce/magento-cart-pickup@1.2.3` (replace 1.2.3 with the
11
+ version of the step above)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart-pickup",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.13.3",
5
+ "version": "4.14.0-canary.3",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,12 +18,12 @@
18
18
  "@playwright/test": "^1.21.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/graphql": "4.30.2",
22
- "@graphcommerce/image": "4.30.2",
23
- "@graphcommerce/magento-cart-shipping-method": "4.13.3",
24
- "@graphcommerce/magento-store": "4.13.3",
25
- "@graphcommerce/next-ui": "4.30.2",
26
- "@graphcommerce/react-hook-form": "4.30.2"
21
+ "@graphcommerce/graphql": "4.31.0-canary.2",
22
+ "@graphcommerce/image": "4.31.0-canary.2",
23
+ "@graphcommerce/magento-cart-shipping-method": "4.14.0-canary.3",
24
+ "@graphcommerce/magento-store": "4.14.0-canary.3",
25
+ "@graphcommerce/next-ui": "4.31.0-canary.2",
26
+ "@graphcommerce/react-hook-form": "4.31.0-canary.2"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@lingui/core": "^3.13.2",
@@ -0,0 +1,18 @@
1
+ import { ShippingMethodFormProps } from '@graphcommerce/magento-cart-shipping-method'
2
+ import type { PluginProps } from '@graphcommerce/next-config'
3
+ import { PickupLocationSelector } from '../components/PickupLocationSelector'
4
+
5
+ export const component = 'ShippingMethodForm'
6
+ export const exported = '@graphcommerce/magento-cart-shipping-method'
7
+
8
+ function AddPickupInStore(props: PluginProps<ShippingMethodFormProps>) {
9
+ const { Component, children, step } = props
10
+ return (
11
+ <Component {...props}>
12
+ <PickupLocationSelector step={step + 1} />
13
+ {children}
14
+ </Component>
15
+ )
16
+ }
17
+
18
+ export const Plugin = AddPickupInStore