@graphcommerce/magento-product 8.0.6-canary.0 → 8.0.6-canary.1

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
+ ## 8.0.6-canary.1
4
+
3
5
  ## 8.0.6-canary.0
4
6
 
5
7
  ### Patch Changes
@@ -1,12 +1,10 @@
1
1
  import { JsonLd } from '@graphcommerce/next-ui'
2
2
  import { JsonLdProductFragment } from './JsonLdProduct.gql'
3
3
 
4
- type ProductPageJsonLdProps<T extends { '@type': string }> = {
5
- product: JsonLdProductFragment
6
- render: (product: JsonLdProductFragment) => T & { '@context': 'https://schema.org' }
7
- }
8
-
9
- export function ProductPageJsonLd<T extends { '@type': string }>(props: ProductPageJsonLdProps<T>) {
4
+ export function ProductPageJsonLd<
5
+ T extends { '@type': string },
6
+ P extends JsonLdProductFragment,
7
+ >(props: { product: P; render: (product: P) => T & { '@context': 'https://schema.org' } }) {
10
8
  const { product, render } = props
11
9
  return <JsonLd<T> item={render(product)} />
12
10
  }
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": "8.0.6-canary.0",
5
+ "version": "8.0.6-canary.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,18 +18,18 @@
18
18
  "typescript": "5.3.3"
19
19
  },
20
20
  "peerDependencies": {
21
- "@graphcommerce/ecommerce-ui": "^8.0.6-canary.0",
22
- "@graphcommerce/eslint-config-pwa": "^8.0.6-canary.0",
23
- "@graphcommerce/framer-next-pages": "^8.0.6-canary.0",
24
- "@graphcommerce/framer-scroller": "^8.0.6-canary.0",
25
- "@graphcommerce/graphql": "^8.0.6-canary.0",
26
- "@graphcommerce/graphql-mesh": "^8.0.6-canary.0",
27
- "@graphcommerce/image": "^8.0.6-canary.0",
28
- "@graphcommerce/magento-cart": "^8.0.6-canary.0",
29
- "@graphcommerce/magento-store": "^8.0.6-canary.0",
30
- "@graphcommerce/next-ui": "^8.0.6-canary.0",
31
- "@graphcommerce/prettier-config-pwa": "^8.0.6-canary.0",
32
- "@graphcommerce/typescript-config-pwa": "^8.0.6-canary.0",
21
+ "@graphcommerce/ecommerce-ui": "^8.0.6-canary.1",
22
+ "@graphcommerce/eslint-config-pwa": "^8.0.6-canary.1",
23
+ "@graphcommerce/framer-next-pages": "^8.0.6-canary.1",
24
+ "@graphcommerce/framer-scroller": "^8.0.6-canary.1",
25
+ "@graphcommerce/graphql": "^8.0.6-canary.1",
26
+ "@graphcommerce/graphql-mesh": "^8.0.6-canary.1",
27
+ "@graphcommerce/image": "^8.0.6-canary.1",
28
+ "@graphcommerce/magento-cart": "^8.0.6-canary.1",
29
+ "@graphcommerce/magento-store": "^8.0.6-canary.1",
30
+ "@graphcommerce/next-ui": "^8.0.6-canary.1",
31
+ "@graphcommerce/prettier-config-pwa": "^8.0.6-canary.1",
32
+ "@graphcommerce/typescript-config-pwa": "^8.0.6-canary.1",
33
33
  "@lingui/core": "^4.2.1",
34
34
  "@lingui/macro": "^4.2.1",
35
35
  "@lingui/react": "^4.2.1",