@graphcommerce/magento-cart 4.7.3 → 4.8.0

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,5 +1,37 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1630](https://github.com/graphcommerce-org/graphcommerce/pull/1630) [`8d5207288`](https://github.com/graphcommerce-org/graphcommerce/commit/8d52072887f124831ed85d28ec79998f0ce55f1c) Thanks [@mikekeehnen](https://github.com/mikekeehnen)! - Bug that caused multiple cart creations, for guest, on returning from a successful checkout
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`c1b8b0352`](https://github.com/graphcommerce-org/graphcommerce/commit/c1b8b03520532223f7b572ff23f1d368a4dfe306), [`662f510c2`](https://github.com/graphcommerce-org/graphcommerce/commit/662f510c21fc44a63036e5c7a0726ccb33c31600)]:
12
+ - @graphcommerce/magento-customer@4.11.0
13
+ - @graphcommerce/react-hook-form@3.3.3
14
+ - @graphcommerce/ecommerce-ui@1.3.1
15
+
16
+ ## 4.7.5
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [[`e8639ec5f`](https://github.com/graphcommerce-org/graphcommerce/commit/e8639ec5f6759504211d70a966f5c348c6b3a7f6)]:
21
+ - @graphcommerce/ecommerce-ui@1.3.0
22
+ - @graphcommerce/magento-customer@4.10.5
23
+
24
+ ## 4.7.4
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [[`9b84a68a1`](https://github.com/graphcommerce-org/graphcommerce/commit/9b84a68a1e7311a79eb687c7dcee905d3000facf)]:
29
+ - @graphcommerce/next-ui@4.23.1
30
+ - @graphcommerce/ecommerce-ui@1.2.3
31
+ - @graphcommerce/framer-scroller@2.1.35
32
+ - @graphcommerce/magento-customer@4.10.4
33
+ - @graphcommerce/magento-store@4.2.32
34
+
3
35
  ## 4.7.3
4
36
 
5
37
  ### Patch Changes
@@ -89,7 +89,7 @@ export function CartSummary(props: CartSummaryProps) {
89
89
  <SectionContainer
90
90
  variantLeft='h5'
91
91
  labelLeft={<Trans id='Confirmation + Track & trace' />}
92
- sx={{ '& .SectionHeader': { marginTop: 0, paddingBottom: '8px' } }}
92
+ sx={{ '& .SectionHeader-root': { marginTop: 0, paddingBottom: '8px' } }}
93
93
  />
94
94
  <Typography variant='body1'>{email || ''}</Typography>
95
95
  </Box>
@@ -97,7 +97,7 @@ export function CartSummary(props: CartSummaryProps) {
97
97
  <SectionContainer
98
98
  variantLeft='h5'
99
99
  labelLeft={<Trans id='Shipping method' />}
100
- sx={{ '& .SectionHeader': { marginTop: 0, paddingBottom: '8px' } }}
100
+ sx={{ '& .SectionHeader-root': { marginTop: 0, paddingBottom: '8px' } }}
101
101
  />
102
102
  <Typography variant='body1'>
103
103
  {shipping_addresses?.[0]?.selected_shipping_method?.carrier_title}
@@ -27,8 +27,7 @@ export function useCartQuery<Q, V extends { cartId: string; [index: string]: unk
27
27
  const usingUrl = allowUrl && typeof urlCartId === 'string'
28
28
  const cartId = usingUrl ? urlCartId : currentCartId
29
29
 
30
- if (usingUrl && typeof queryOptions.fetchPolicy === 'undefined')
31
- queryOptions.fetchPolicy = 'cache-only'
30
+ if (usingUrl) queryOptions.fetchPolicy = 'cache-first'
32
31
 
33
32
  if (usingUrl && typeof queryOptions.returnPartialData === 'undefined')
34
33
  queryOptions.returnPartialData = true
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.7.3",
5
+ "version": "4.8.0",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,17 +18,17 @@
18
18
  "@playwright/test": "^1.21.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/ecommerce-ui": "1.2.2",
21
+ "@graphcommerce/ecommerce-ui": "1.3.1",
22
22
  "@graphcommerce/framer-utils": "3.2.0",
23
23
  "@graphcommerce/framer-next-pages": "3.3.0",
24
- "@graphcommerce/framer-scroller": "2.1.34",
24
+ "@graphcommerce/framer-scroller": "2.1.35",
25
25
  "@graphcommerce/graphql": "3.4.8",
26
26
  "@graphcommerce/image": "3.1.9",
27
- "@graphcommerce/magento-customer": "4.10.3",
27
+ "@graphcommerce/magento-customer": "4.11.0",
28
28
  "@graphcommerce/magento-graphql": "3.1.8",
29
- "@graphcommerce/magento-store": "4.2.31",
30
- "@graphcommerce/next-ui": "4.23.0",
31
- "@graphcommerce/react-hook-form": "3.3.2"
29
+ "@graphcommerce/magento-store": "4.2.32",
30
+ "@graphcommerce/next-ui": "4.23.1",
31
+ "@graphcommerce/react-hook-form": "3.3.3"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@lingui/react": "^3.13.2",