@graphcommerce/magento-recently-viewed-products 8.0.6-canary.4 → 8.1.0-canary.10

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,17 @@
1
1
  # @graphcommerce/magento-recently-viewed-products
2
2
 
3
+ ## 8.1.0-canary.10
4
+
5
+ ## 8.1.0-canary.9
6
+
7
+ ## 8.1.0-canary.8
8
+
9
+ ## 8.1.0-canary.7
10
+
11
+ ## 8.1.0-canary.6
12
+
13
+ ## 8.1.0-canary.5
14
+
3
15
  ## 8.0.6-canary.4
4
16
 
5
17
  ## 8.0.6-canary.3
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-recently-viewed-products",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "8.0.6-canary.4",
5
+ "version": "8.1.0-canary.10",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,16 +12,16 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^8.0.6-canary.4",
16
- "@graphcommerce/graphql": "^8.0.6-canary.4",
17
- "@graphcommerce/graphql-mesh": "^8.0.6-canary.4",
18
- "@graphcommerce/magento-cart": "^8.0.6-canary.4",
19
- "@graphcommerce/magento-product": "^8.0.6-canary.4",
20
- "@graphcommerce/magento-product-configurable": "^8.0.6-canary.4",
21
- "@graphcommerce/next-config": "^8.0.6-canary.4",
22
- "@graphcommerce/next-ui": "^8.0.6-canary.4",
23
- "@graphcommerce/prettier-config-pwa": "^8.0.6-canary.4",
24
- "@graphcommerce/typescript-config-pwa": "^8.0.6-canary.4",
15
+ "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.10",
16
+ "@graphcommerce/graphql": "^8.1.0-canary.10",
17
+ "@graphcommerce/graphql-mesh": "^8.1.0-canary.10",
18
+ "@graphcommerce/magento-cart": "^8.1.0-canary.10",
19
+ "@graphcommerce/magento-product": "^8.1.0-canary.10",
20
+ "@graphcommerce/magento-product-configurable": "^8.1.0-canary.10",
21
+ "@graphcommerce/next-config": "^8.1.0-canary.10",
22
+ "@graphcommerce/next-ui": "^8.1.0-canary.10",
23
+ "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.10",
24
+ "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.10",
25
25
  "@mui/material": "^5.10.16",
26
26
  "framer-motion": "^10.0.0",
27
27
  "next": "*",
@@ -1,22 +1,20 @@
1
1
  import { useApolloClient } from '@graphcommerce/graphql'
2
2
  import {
3
3
  type AddToCartItemSelector,
4
- type ProductPageMeta,
5
4
  ProductPageMetaFragment,
5
+ ProductPageMetaProps,
6
6
  } from '@graphcommerce/magento-product'
7
7
  import { useConfigurableSelectedVariant } from '@graphcommerce/magento-product-configurable/hooks'
8
- import type { IfConfig, ReactPlugin } from '@graphcommerce/next-config'
8
+ import type { IfConfig, PluginProps } from '@graphcommerce/next-config'
9
9
  import { useEventCallback } from '@mui/material'
10
10
  import { useRouter } from 'next/router'
11
11
  import { useEffect } from 'react'
12
12
  import { RecentlyViewedProductsDocument } from '../graphql/RecentlyViewedProducts.gql'
13
13
 
14
14
  export const component = 'ProductPageMeta'
15
- export const exported = '@graphcommerce/magento-product/components/ProductPageMeta/ProductPageMeta'
15
+ export const exported = '@graphcommerce/magento-product'
16
16
  export const ifConfig: IfConfig = 'recentlyViewedProducts.enabled'
17
17
 
18
- type PluginType = ReactPlugin<typeof ProductPageMeta, AddToCartItemSelector>
19
-
20
18
  function ViewHandling(props: { product: ProductPageMetaFragment }) {
21
19
  const { product } = props
22
20
  const client = useApolloClient()
@@ -71,7 +69,9 @@ function ViewHandling(props: { product: ProductPageMetaFragment }) {
71
69
  return null
72
70
  }
73
71
 
74
- const RegisterProductAsRecentlyViewed: PluginType = (props) => {
72
+ const RegisterProductAsRecentlyViewed = (
73
+ props: PluginProps<ProductPageMetaProps> & AddToCartItemSelector,
74
+ ) => {
75
75
  const { Prev, product } = props
76
76
 
77
77
  return (