@graphcommerce/magento-cart 9.0.4-canary.8 → 9.1.0-canary.15
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 +26 -0
- package/components/CartItemSummary/CartItemSummary.tsx +1 -1
- package/components/CartSummary/CartSummary.tsx +3 -1
- package/components/CartTotals/CartTotals.tsx +7 -1
- package/components/CartTotals/GetCartTotals.graphql +2 -0
- package/package.json +15 -15
- package/typePolicies.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.1.0-canary.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2493](https://github.com/graphcommerce-org/graphcommerce/pull/2493) [`4cde990`](https://github.com/graphcommerce-org/graphcommerce/commit/4cde990dbeecdba8a00d0e34a1095fb14d8a0ad6) - When the cart totals are updated via a mutation, make sure to also fetch the id when the query is used so that automatically updates. ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
9
|
+
- [#2493](https://github.com/graphcommerce-org/graphcommerce/pull/2493) [`7ae2909`](https://github.com/graphcommerce-org/graphcommerce/commit/7ae2909d57e58f00f18acb198028c601ccd857c5) - CartTotals now accepts a readOnly prop to handle plugins showing information based on that prop ([@paales](https://github.com/paales))
|
|
10
|
+
|
|
11
|
+
- [#2493](https://github.com/graphcommerce-org/graphcommerce/pull/2493) [`b6f76b6`](https://github.com/graphcommerce-org/graphcommerce/commit/b6f76b61f235d3336d8d296f1bed61c9f5daf325) - Solve issue where available_payment_methods would give an apollo client error that it couldn’t be properly merged ([@paales](https://github.com/paales))
|
|
12
|
+
|
|
13
|
+
## 9.0.4-canary.14
|
|
14
|
+
|
|
15
|
+
## 9.0.4-canary.13
|
|
16
|
+
|
|
17
|
+
## 9.0.4-canary.12
|
|
18
|
+
|
|
19
|
+
## 9.0.4-canary.11
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#2485](https://github.com/graphcommerce-org/graphcommerce/pull/2485) [`6533728`](https://github.com/graphcommerce-org/graphcommerce/commit/65337280c6f4291cf4354e6ed9659f03388ca8d4) - When ordering a virtual product the checkout would still reference a Track & Trace ([@paales](https://github.com/paales))
|
|
24
|
+
|
|
25
|
+
## 9.0.4-canary.10
|
|
26
|
+
|
|
27
|
+
## 9.0.4-canary.9
|
|
28
|
+
|
|
3
29
|
## 9.0.4-canary.8
|
|
4
30
|
|
|
5
31
|
## 9.0.4-canary.7
|
|
@@ -103,7 +103,7 @@ export function CartItemSummary(props: OrderSummaryProps) {
|
|
|
103
103
|
margin: `${theme.spacings.xs} 0 ${theme.spacings.xs} 0`,
|
|
104
104
|
})}
|
|
105
105
|
/>
|
|
106
|
-
<CartTotals sx={{ background: 'none', padding: 0 }} />
|
|
106
|
+
<CartTotals sx={{ background: 'none', padding: 0 }} readOnly />
|
|
107
107
|
</SectionContainer>
|
|
108
108
|
</Box>
|
|
109
109
|
)
|
|
@@ -88,7 +88,9 @@ export function CartSummary(props: CartSummaryProps) {
|
|
|
88
88
|
<Box>
|
|
89
89
|
<SectionContainer
|
|
90
90
|
variantLeft='h5'
|
|
91
|
-
labelLeft={
|
|
91
|
+
labelLeft={
|
|
92
|
+
is_virtual ? <Trans id='Confirmation' /> : <Trans id='Confirmation + Track & trace' />
|
|
93
|
+
}
|
|
92
94
|
sx={{ '& .SectionHeader-root': { marginTop: 0, paddingBottom: '8px' } }}
|
|
93
95
|
/>
|
|
94
96
|
<Typography variant='body1'>{email || ''}</Typography>
|
|
@@ -10,6 +10,7 @@ export type CartTotalsProps = OwnerProps & {
|
|
|
10
10
|
sx?: SxProps<Theme>
|
|
11
11
|
additionalSubtotals?: React.ReactNode
|
|
12
12
|
additionalTotals?: React.ReactNode
|
|
13
|
+
readOnly?: boolean
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
type OwnerProps = { containerMargin?: boolean }
|
|
@@ -23,7 +24,12 @@ const parts = [
|
|
|
23
24
|
'costsTax',
|
|
24
25
|
'money',
|
|
25
26
|
] as const
|
|
26
|
-
|
|
27
|
+
|
|
28
|
+
export const extendableCartTotals = extendableComponent<OwnerProps, typeof name, typeof parts>(
|
|
29
|
+
name,
|
|
30
|
+
parts,
|
|
31
|
+
)
|
|
32
|
+
const { withState } = extendableCartTotals
|
|
27
33
|
|
|
28
34
|
/**
|
|
29
35
|
* ⚠️ WARNING: The current CartTotals rely heavily on how Magento is configured. It kinda works for
|
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": "9.0
|
|
5
|
+
"version": "9.1.0-canary.15",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^9.0
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0
|
|
17
|
-
"@graphcommerce/framer-next-pages": "^9.0
|
|
18
|
-
"@graphcommerce/framer-scroller": "^9.0
|
|
19
|
-
"@graphcommerce/framer-utils": "^9.0
|
|
20
|
-
"@graphcommerce/graphql": "^9.0
|
|
21
|
-
"@graphcommerce/image": "^9.0
|
|
22
|
-
"@graphcommerce/magento-customer": "^9.0
|
|
23
|
-
"@graphcommerce/magento-graphql": "^9.0
|
|
24
|
-
"@graphcommerce/magento-store": "^9.0
|
|
25
|
-
"@graphcommerce/next-ui": "^9.0
|
|
26
|
-
"@graphcommerce/prettier-config-pwa": "^9.0
|
|
27
|
-
"@graphcommerce/react-hook-form": "^9.0
|
|
28
|
-
"@graphcommerce/typescript-config-pwa": "^9.0
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.1.0-canary.15",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.15",
|
|
17
|
+
"@graphcommerce/framer-next-pages": "^9.1.0-canary.15",
|
|
18
|
+
"@graphcommerce/framer-scroller": "^9.1.0-canary.15",
|
|
19
|
+
"@graphcommerce/framer-utils": "^9.1.0-canary.15",
|
|
20
|
+
"@graphcommerce/graphql": "^9.1.0-canary.15",
|
|
21
|
+
"@graphcommerce/image": "^9.1.0-canary.15",
|
|
22
|
+
"@graphcommerce/magento-customer": "^9.1.0-canary.15",
|
|
23
|
+
"@graphcommerce/magento-graphql": "^9.1.0-canary.15",
|
|
24
|
+
"@graphcommerce/magento-store": "^9.1.0-canary.15",
|
|
25
|
+
"@graphcommerce/next-ui": "^9.1.0-canary.15",
|
|
26
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.15",
|
|
27
|
+
"@graphcommerce/react-hook-form": "^9.1.0-canary.15",
|
|
28
|
+
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.15",
|
|
29
29
|
"@lingui/core": "^4.2.1",
|
|
30
30
|
"@lingui/macro": "^4.2.1",
|
|
31
31
|
"@lingui/react": "^4.2.1",
|
package/typePolicies.ts
CHANGED