@graphcommerce/magento-product 9.0.0-canary.85 → 9.0.0-canary.86

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,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.86
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2379](https://github.com/graphcommerce-org/graphcommerce/pull/2379) [`959e0dd`](https://github.com/graphcommerce-org/graphcommerce/commit/959e0dd81a7943648250be6a2bf8f1bc27be8a3b) - Render multiple items in the RowSpecs table as a list ([@paales](https://github.com/paales))
8
+
3
9
  ## 9.0.0-canary.85
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  import { useQuery } from '@graphcommerce/graphql'
2
- import { extendableComponent } from '@graphcommerce/next-ui'
2
+ import { extendableComponent, ListFormat } from '@graphcommerce/next-ui'
3
3
  import { Box } from '@mui/material'
4
4
  import { ProductSpecsFragment } from './ProductSpecs.gql'
5
5
  import { ProductSpecsTypesDocument } from './ProductSpecsTypes.gql'
@@ -24,19 +24,17 @@ export function ProductSpecsCustomAttributes(props: ProductSpecsCustomAttributes
24
24
  {specs?.map((item) => (
25
25
  <li key={item?.code}>
26
26
  <div>
27
- {
28
- productSpecsTypes?.data?.attributesList?.items?.find(
29
- (type) => type?.code === item?.code,
30
- )?.label
31
- }
27
+ {productSpecsTypes?.data?.attributesList?.items?.find(
28
+ (type) => type?.code === item?.code,
29
+ )?.label ?? item?.code}
32
30
  </div>
33
- <Box className={classes.options} sx={{ display: 'grid', gridAutoFlow: 'row' }}>
31
+ <Box className={classes.options}>
34
32
  {item?.__typename === 'AttributeSelectedOptions' && (
35
- <>
33
+ <ListFormat listStyle='long' type='unit'>
36
34
  {item?.selected_options?.map((option) => (
37
35
  <span key={option?.value}>{option?.label === '1' ? 'Yes' : option?.label}</span>
38
36
  ))}
39
- </>
37
+ </ListFormat>
40
38
  )}
41
39
  {item?.__typename === 'AttributeValue' && <span key={item?.value}>{item.value}</span>}
42
40
  </Box>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-product",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.85",
5
+ "version": "9.0.0-canary.86",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,18 +18,18 @@
18
18
  "typescript": "5.5.3"
19
19
  },
20
20
  "peerDependencies": {
21
- "@graphcommerce/ecommerce-ui": "^9.0.0-canary.85",
22
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.85",
23
- "@graphcommerce/framer-next-pages": "^9.0.0-canary.85",
24
- "@graphcommerce/framer-scroller": "^9.0.0-canary.85",
25
- "@graphcommerce/graphql": "^9.0.0-canary.85",
26
- "@graphcommerce/graphql-mesh": "^9.0.0-canary.85",
27
- "@graphcommerce/image": "^9.0.0-canary.85",
28
- "@graphcommerce/magento-cart": "^9.0.0-canary.85",
29
- "@graphcommerce/magento-store": "^9.0.0-canary.85",
30
- "@graphcommerce/next-ui": "^9.0.0-canary.85",
31
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.85",
32
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.85",
21
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.86",
22
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.86",
23
+ "@graphcommerce/framer-next-pages": "^9.0.0-canary.86",
24
+ "@graphcommerce/framer-scroller": "^9.0.0-canary.86",
25
+ "@graphcommerce/graphql": "^9.0.0-canary.86",
26
+ "@graphcommerce/graphql-mesh": "^9.0.0-canary.86",
27
+ "@graphcommerce/image": "^9.0.0-canary.86",
28
+ "@graphcommerce/magento-cart": "^9.0.0-canary.86",
29
+ "@graphcommerce/magento-store": "^9.0.0-canary.86",
30
+ "@graphcommerce/next-ui": "^9.0.0-canary.86",
31
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.86",
32
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.86",
33
33
  "@lingui/core": "^4.2.1",
34
34
  "@lingui/macro": "^4.2.1",
35
35
  "@lingui/react": "^4.2.1",