@graphcommerce/magento-cart-items 9.0.0-canary.115 → 9.0.0-canary.116

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,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.116
4
+
3
5
  ## 9.0.0-canary.115
4
6
 
5
7
  ## 9.0.0-canary.114
@@ -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.115",
5
+ "version": "9.0.0-canary.116",
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.115",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.115",
17
- "@graphcommerce/framer-next-pages": "^9.0.0-canary.115",
18
- "@graphcommerce/graphql": "^9.0.0-canary.115",
19
- "@graphcommerce/image": "^9.0.0-canary.115",
20
- "@graphcommerce/magento-cart": "^9.0.0-canary.115",
21
- "@graphcommerce/magento-customer": "^9.0.0-canary.115",
22
- "@graphcommerce/magento-product": "^9.0.0-canary.115",
23
- "@graphcommerce/magento-store": "^9.0.0-canary.115",
24
- "@graphcommerce/next-ui": "^9.0.0-canary.115",
25
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.115",
26
- "@graphcommerce/react-hook-form": "^9.0.0-canary.115",
27
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.115",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.116",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.116",
17
+ "@graphcommerce/framer-next-pages": "^9.0.0-canary.116",
18
+ "@graphcommerce/graphql": "^9.0.0-canary.116",
19
+ "@graphcommerce/image": "^9.0.0-canary.116",
20
+ "@graphcommerce/magento-cart": "^9.0.0-canary.116",
21
+ "@graphcommerce/magento-customer": "^9.0.0-canary.116",
22
+ "@graphcommerce/magento-product": "^9.0.0-canary.116",
23
+ "@graphcommerce/magento-store": "^9.0.0-canary.116",
24
+ "@graphcommerce/next-ui": "^9.0.0-canary.116",
25
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.116",
26
+ "@graphcommerce/react-hook-form": "^9.0.0-canary.116",
27
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.116",
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
- }
@@ -1,2 +0,0 @@
1
- export * from './SelectedCustomizableOption.gql'
2
- export * from './SelectedCustomizableOptions'