@graphcommerce/magento-product 9.0.4-canary.10 → 9.0.4-canary.11
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 +6 -0
- package/components/JsonLdProduct/JsonLdProduct.graphql +1 -0
- package/components/ProductPageDescription/ProductPageDescription.graphql +1 -0
- package/components/ProductPageDescription/ProductPageDescription.tsx +5 -6
- package/components/ProductPageGallery/ProductPageGallery.graphql +1 -0
- package/components/ProductPageName/ProductPageName.graphql +1 -0
- package/components/ProductShortDescription/ProductShortDescription.graphql +1 -0
- package/components/ProductSpecs/ProductSpecs.graphql +3 -0
- package/components/ProductSpecs/ProductSpecsCustomAttributes.tsx +1 -9
- package/package.json +13 -13
- package/components/ProductSpecs/ProductSpecsTypes.graphql +0 -8
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 9.0.4-canary.11
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2485](https://github.com/graphcommerce-org/graphcommerce/pull/2485) [`10200f1`](https://github.com/graphcommerce-org/graphcommerce/commit/10200f1eda8a34261ed3975c603b456014d4f8a3) - ProductSpecs now uses `attribute { label }` instead of `useQuery(ProductSpecsTypes)` ([@paales](https://github.com/paales))
|
8
|
+
|
3
9
|
## 9.0.4-canary.10
|
4
10
|
|
5
11
|
## 9.0.4-canary.9
|
@@ -11,12 +11,11 @@ import type { Variant } from '@mui/material/styles/createTypography'
|
|
11
11
|
import { ProductPageName } from '../ProductPageName'
|
12
12
|
import type { ProductPageDescriptionFragment } from './ProductPageDescription.gql'
|
13
13
|
|
14
|
-
export type ProductPageDescriptionProps =
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
}
|
14
|
+
export type ProductPageDescriptionProps = Omit<ColumnTwoWithTopProps, 'top' | 'left'> & {
|
15
|
+
sx?: SxProps<Theme>
|
16
|
+
fontSize?: 'responsive' | Variant
|
17
|
+
product: ProductPageDescriptionFragment
|
18
|
+
}
|
20
19
|
|
21
20
|
const componentName = 'ProductPageDescription'
|
22
21
|
const parts = ['root', 'description'] as const
|
@@ -1,8 +1,6 @@
|
|
1
|
-
import { useQuery } from '@graphcommerce/graphql'
|
2
1
|
import { extendableComponent, ListFormat } from '@graphcommerce/next-ui'
|
3
2
|
import { Box } from '@mui/material'
|
4
3
|
import type { ProductSpecsFragment } from './ProductSpecs.gql'
|
5
|
-
import { ProductSpecsTypesDocument } from './ProductSpecsTypes.gql'
|
6
4
|
|
7
5
|
const name = 'ProductSpecs'
|
8
6
|
const parts = ['root', 'specs', 'options'] as const
|
@@ -15,19 +13,13 @@ export function ProductSpecsCustomAttributes(props: ProductSpecsCustomAttributes
|
|
15
13
|
|
16
14
|
const specs = items?.[0]?.custom_attributesV2?.items
|
17
15
|
|
18
|
-
const productSpecsTypes = useQuery(ProductSpecsTypesDocument)
|
19
|
-
|
20
16
|
if (items?.length === 0) return null
|
21
17
|
|
22
18
|
return (
|
23
19
|
<>
|
24
20
|
{specs?.map((item) => (
|
25
21
|
<li key={item?.code}>
|
26
|
-
<div>
|
27
|
-
{productSpecsTypes?.data?.attributesList?.items?.find(
|
28
|
-
(type) => type?.code === item?.code,
|
29
|
-
)?.label ?? item?.code}
|
30
|
-
</div>
|
22
|
+
<div>{item?.attribute?.label}</div>
|
31
23
|
<Box className={classes.options}>
|
32
24
|
{item?.__typename === 'AttributeSelectedOptions' && (
|
33
25
|
<ListFormat listStyle='long' type='unit'>
|
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.4-canary.
|
5
|
+
"version": "9.0.4-canary.11",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -18,18 +18,18 @@
|
|
18
18
|
"typescript": "5.7.2"
|
19
19
|
},
|
20
20
|
"peerDependencies": {
|
21
|
-
"@graphcommerce/ecommerce-ui": "^9.0.4-canary.
|
22
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.
|
23
|
-
"@graphcommerce/framer-next-pages": "^9.0.4-canary.
|
24
|
-
"@graphcommerce/framer-scroller": "^9.0.4-canary.
|
25
|
-
"@graphcommerce/graphql": "^9.0.4-canary.
|
26
|
-
"@graphcommerce/graphql-mesh": "^9.0.4-canary.
|
27
|
-
"@graphcommerce/image": "^9.0.4-canary.
|
28
|
-
"@graphcommerce/magento-cart": "^9.0.4-canary.
|
29
|
-
"@graphcommerce/magento-store": "^9.0.4-canary.
|
30
|
-
"@graphcommerce/next-ui": "^9.0.4-canary.
|
31
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.
|
32
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.
|
21
|
+
"@graphcommerce/ecommerce-ui": "^9.0.4-canary.11",
|
22
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.11",
|
23
|
+
"@graphcommerce/framer-next-pages": "^9.0.4-canary.11",
|
24
|
+
"@graphcommerce/framer-scroller": "^9.0.4-canary.11",
|
25
|
+
"@graphcommerce/graphql": "^9.0.4-canary.11",
|
26
|
+
"@graphcommerce/graphql-mesh": "^9.0.4-canary.11",
|
27
|
+
"@graphcommerce/image": "^9.0.4-canary.11",
|
28
|
+
"@graphcommerce/magento-cart": "^9.0.4-canary.11",
|
29
|
+
"@graphcommerce/magento-store": "^9.0.4-canary.11",
|
30
|
+
"@graphcommerce/next-ui": "^9.0.4-canary.11",
|
31
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.11",
|
32
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.11",
|
33
33
|
"@lingui/core": "^4.2.1",
|
34
34
|
"@lingui/macro": "^4.2.1",
|
35
35
|
"@lingui/react": "^4.2.1",
|