@graphcommerce/magento-cart-items 9.0.0-canary.115 → 9.0.0-canary.117
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 +4 -0
- package/components/CartItemActionCard/CartItemActionCard.tsx +4 -0
- package/components/CartItemsActionCards/CartItemsActionCards.tsx +0 -8
- package/package.json +14 -14
- package/components/CartItems/CartItems.tsx +0 -26
- package/components/SelectedCustomizableOptions/index.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,10 @@ export type CartItemActionCardProps = { cartItem: CartItemFragment; readOnly?: b
|
|
|
15
15
|
'value' | 'image' | 'price' | 'title' | 'action'
|
|
16
16
|
>
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
18
22
|
export function productEditLink(link: ProductLinkProps) {
|
|
19
23
|
return `/checkout/item/${link.url_key}`
|
|
20
24
|
}
|
|
@@ -6,14 +6,6 @@ import { CartItemActionCard } from '../CartItemActionCard/CartItemActionCard'
|
|
|
6
6
|
|
|
7
7
|
export type CartProps = Omit<ActionCardLayoutProps, 'className'> & {
|
|
8
8
|
cart?: CartItemsFragment | null
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Not used anymore, please use the size prop
|
|
11
|
-
*/
|
|
12
|
-
sizeSm?: CartItemActionCardProps['size']
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Not used anymore, please use the size prop
|
|
15
|
-
*/
|
|
16
|
-
sizeMd?: CartItemActionCardProps['size']
|
|
17
9
|
variant?: CartItemActionCardProps['variant']
|
|
18
10
|
itemProps?: Omit<
|
|
19
11
|
CartItemActionCardProps,
|
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.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.117",
|
|
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.0-canary.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
17
|
-
"@graphcommerce/framer-next-pages": "^9.0.0-canary.
|
|
18
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
|
19
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
|
20
|
-
"@graphcommerce/magento-cart": "^9.0.0-canary.
|
|
21
|
-
"@graphcommerce/magento-customer": "^9.0.0-canary.
|
|
22
|
-
"@graphcommerce/magento-product": "^9.0.0-canary.
|
|
23
|
-
"@graphcommerce/magento-store": "^9.0.0-canary.
|
|
24
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
|
25
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
26
|
-
"@graphcommerce/react-hook-form": "^9.0.0-canary.
|
|
27
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.117",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.117",
|
|
17
|
+
"@graphcommerce/framer-next-pages": "^9.0.0-canary.117",
|
|
18
|
+
"@graphcommerce/graphql": "^9.0.0-canary.117",
|
|
19
|
+
"@graphcommerce/image": "^9.0.0-canary.117",
|
|
20
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.117",
|
|
21
|
+
"@graphcommerce/magento-customer": "^9.0.0-canary.117",
|
|
22
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.117",
|
|
23
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.117",
|
|
24
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.117",
|
|
25
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.117",
|
|
26
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.117",
|
|
27
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.117",
|
|
28
28
|
"@lingui/core": "^4.2.1",
|
|
29
29
|
"@lingui/macro": "^4.2.1",
|
|
30
30
|
"@lingui/react": "^4.2.1",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { TypeRenderer } from '@graphcommerce/next-ui'
|
|
2
|
-
import { RenderType } from '@graphcommerce/next-ui'
|
|
3
|
-
import { Box } from '@mui/material'
|
|
4
|
-
import type { CartItemsFragment } from '../../Api/CartItems.gql'
|
|
5
|
-
|
|
6
|
-
export type CartItemRenderer = TypeRenderer<NonNullable<NonNullable<CartItemsFragment['items']>[0]>>
|
|
7
|
-
|
|
8
|
-
export type CartProps = { renderer: CartItemRenderer } & CartItemsFragment
|
|
9
|
-
|
|
10
|
-
/** @deprecated Replace with CartItemsActionCards */
|
|
11
|
-
export function CartItems(props: CartProps) {
|
|
12
|
-
const { renderer, items, id } = props
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<>
|
|
16
|
-
{items?.map((item) => {
|
|
17
|
-
if (!item?.uid || !id) return null
|
|
18
|
-
return (
|
|
19
|
-
<Box key={item.uid}>
|
|
20
|
-
<RenderType renderer={renderer} {...item} />
|
|
21
|
-
</Box>
|
|
22
|
-
)
|
|
23
|
-
})}
|
|
24
|
-
</>
|
|
25
|
-
)
|
|
26
|
-
}
|