@graphcommerce/magento-cart-items 9.0.4-canary.9 → 9.1.0-canary.16

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,29 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.1.0-canary.16
4
+
5
+ ## 9.1.0-canary.15
6
+
7
+ ### Patch Changes
8
+
9
+ - [#2493](https://github.com/graphcommerce-org/graphcommerce/pull/2493) [`a482084`](https://github.com/graphcommerce-org/graphcommerce/commit/a482084d34e5e38e19cf6afbad87cd6eda67e858) - Currency wasn't set properly while rendering custom options for cart items that had a different currency than the current store. ([@paales](https://github.com/paales))
10
+
11
+ ## 9.0.4-canary.14
12
+
13
+ ## 9.0.4-canary.13
14
+
15
+ ## 9.0.4-canary.12
16
+
17
+ ## 9.0.4-canary.11
18
+
19
+ ### Patch Changes
20
+
21
+ - [#2485](https://github.com/graphcommerce-org/graphcommerce/pull/2485) [`875fbca`](https://github.com/graphcommerce-org/graphcommerce/commit/875fbcab9a26db8a33eca7cc9a41847c24cd8381) - Solve issue where the CartItem href wouldn't be correct ([@paales](https://github.com/paales))
22
+
23
+ - [#2485](https://github.com/graphcommerce-org/graphcommerce/pull/2485) [`dfd6359`](https://github.com/graphcommerce-org/graphcommerce/commit/dfd63593f31bd69d255a69dd7e9cb5471428c685) - Exported cartItemToCartItemInput so it can be extended with plugins ([@paales](https://github.com/paales))
24
+
25
+ ## 9.0.4-canary.10
26
+
3
27
  ## 9.0.4-canary.9
4
28
 
5
29
  ## 9.0.4-canary.8
@@ -1,6 +1,6 @@
1
1
  import { Image } from '@graphcommerce/image'
2
2
  import { useDisplayInclTax } from '@graphcommerce/magento-cart/hooks'
3
- import type { ProductLinkProps } from '@graphcommerce/magento-product'
3
+ import { productLink, productPath, type ProductLinkProps } from '@graphcommerce/magento-product'
4
4
  import { Money } from '@graphcommerce/magento-store'
5
5
  import type { ActionCardProps } from '@graphcommerce/next-ui'
6
6
  import { ActionCard, actionCardImageSizes, filterNonNullableKeys } from '@graphcommerce/next-ui'
@@ -68,7 +68,7 @@ export function CartItemActionCard(props: CartItemActionCardProps) {
68
68
  [theme.breakpoints.down('md')]: { px: 0 },
69
69
  },
70
70
  '& .ActionCard-end': {
71
- justifyContent: readOnly ? 'center' : 'space-between',
71
+ justifyContent: 'space-between',
72
72
  },
73
73
  '& .ActionCard-action': {
74
74
  pr: readOnly ? 0 : theme.spacings.xs,
@@ -107,7 +107,7 @@ export function CartItemActionCard(props: CartItemActionCardProps) {
107
107
  title={
108
108
  url_key ? (
109
109
  <Link
110
- href={url_key}
110
+ href={productPath(url_key)}
111
111
  underline='hover'
112
112
  sx={{
113
113
  color: 'inherit',
@@ -9,7 +9,7 @@ export type SelectedCustomizableOptionProps = CartItemFragment & {
9
9
  }
10
10
 
11
11
  export function SelectedCustomizableOptions(props: SelectedCustomizableOptionProps) {
12
- const { customizable_options, product } = props
12
+ const { customizable_options, product, prices } = props
13
13
  const options = filterNonNullableKeys(customizable_options, [])
14
14
 
15
15
  if (!options.length) return null
@@ -39,6 +39,7 @@ export function SelectedCustomizableOptions(props: SelectedCustomizableOptionPro
39
39
  ? productPrice * (value.price.value / 100)
40
40
  : value.price.value
41
41
  }
42
+ currency={prices?.price.currency}
42
43
  />
43
44
  </Box>
44
45
  )}
package/index.ts CHANGED
@@ -11,3 +11,4 @@ export * from './components/SelectedCustomizableOptions/SelectedCustomizableOpti
11
11
  export * from './components/UpdateItemQuantity/UpdateItemQuantity'
12
12
  export * from './components/EditCartItem'
13
13
  export * from './hooks/useRemoveItemFromCart'
14
+ export * from './utils/cartItemToCartItemInput'
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart-items",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.4-canary.9",
5
+ "version": "9.1.0-canary.16",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,19 +12,19 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.0.4-canary.9",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.4-canary.9",
17
- "@graphcommerce/framer-next-pages": "^9.0.4-canary.9",
18
- "@graphcommerce/graphql": "^9.0.4-canary.9",
19
- "@graphcommerce/image": "^9.0.4-canary.9",
20
- "@graphcommerce/magento-cart": "^9.0.4-canary.9",
21
- "@graphcommerce/magento-customer": "^9.0.4-canary.9",
22
- "@graphcommerce/magento-product": "^9.0.4-canary.9",
23
- "@graphcommerce/magento-store": "^9.0.4-canary.9",
24
- "@graphcommerce/next-ui": "^9.0.4-canary.9",
25
- "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.9",
26
- "@graphcommerce/react-hook-form": "^9.0.4-canary.9",
27
- "@graphcommerce/typescript-config-pwa": "^9.0.4-canary.9",
15
+ "@graphcommerce/ecommerce-ui": "^9.1.0-canary.16",
16
+ "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.16",
17
+ "@graphcommerce/framer-next-pages": "^9.1.0-canary.16",
18
+ "@graphcommerce/graphql": "^9.1.0-canary.16",
19
+ "@graphcommerce/image": "^9.1.0-canary.16",
20
+ "@graphcommerce/magento-cart": "^9.1.0-canary.16",
21
+ "@graphcommerce/magento-customer": "^9.1.0-canary.16",
22
+ "@graphcommerce/magento-product": "^9.1.0-canary.16",
23
+ "@graphcommerce/magento-store": "^9.1.0-canary.16",
24
+ "@graphcommerce/next-ui": "^9.1.0-canary.16",
25
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.16",
26
+ "@graphcommerce/react-hook-form": "^9.1.0-canary.16",
27
+ "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.16",
28
28
  "@lingui/core": "^4.2.1",
29
29
  "@lingui/macro": "^4.2.1",
30
30
  "@lingui/react": "^4.2.1",