@graphcommerce/magento-product 3.7.29 → 3.8.0
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 +11 -0
- package/components/ProductListItem/index.tsx +2 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.8.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product@3.7.29...@graphcommerce/magento-product@3.8.0) (2022-01-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **framer-next-pages:** reduce rerenders when navigating to a new page ([5cf3301](https://github.com/ho-nl/m2-pwa/commit/5cf330130bb3527057da015e3c4a6fa295d7262e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.7.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product@3.7.6...@graphcommerce/magento-product@3.7.7) (2021-12-06)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { usePageRouter } from '@graphcommerce/framer-next-pages'
|
|
2
1
|
import { Image, ImageProps } from '@graphcommerce/image'
|
|
3
2
|
import { responsiveVal, UseStyles } from '@graphcommerce/next-ui'
|
|
4
3
|
import { ButtonBase, makeStyles, Theme, Typography } from '@material-ui/core'
|
|
5
4
|
import clsx from 'clsx'
|
|
6
5
|
import PageLink from 'next/link'
|
|
6
|
+
import { useRouter } from 'next/router'
|
|
7
7
|
import React, { PropsWithChildren, useCallback } from 'react'
|
|
8
8
|
import { ProductListItemFragment } from '../../Api/ProductListItem.gql'
|
|
9
9
|
import { useProductLink } from '../../hooks/useProductLink'
|
|
@@ -157,7 +157,7 @@ export default function ProductListItem(props: ProductListItemProps) {
|
|
|
157
157
|
const classes = useProductListItemStyles(props)
|
|
158
158
|
const productLink = useProductLink(props)
|
|
159
159
|
const discount = Math.floor(price_range.minimum_price.discount?.percent_off ?? 0)
|
|
160
|
-
const { locale } =
|
|
160
|
+
const { locale } = useRouter()
|
|
161
161
|
|
|
162
162
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
163
163
|
const format = useCallback(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-product",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@graphcommerce/browserslist-config-pwa": "^3.0.3",
|
|
17
|
-
"@graphcommerce/eslint-config-pwa": "^3.1.
|
|
17
|
+
"@graphcommerce/eslint-config-pwa": "^3.1.10",
|
|
18
18
|
"@graphcommerce/prettier-config-pwa": "^3.0.5",
|
|
19
19
|
"@graphcommerce/typescript-config-pwa": "^3.1.2",
|
|
20
20
|
"@playwright/test": "^1.17.1"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@apollo/client": "^3.5.6",
|
|
24
|
-
"@graphcommerce/framer-scroller": "^1.
|
|
25
|
-
"@graphcommerce/graphql": "^2.105.
|
|
26
|
-
"@graphcommerce/image": "^2.105.
|
|
27
|
-
"@graphcommerce/magento-cart": "^3.
|
|
28
|
-
"@graphcommerce/magento-store": "^3.
|
|
29
|
-
"@graphcommerce/next-ui": "^3.
|
|
24
|
+
"@graphcommerce/framer-scroller": "^1.2.0",
|
|
25
|
+
"@graphcommerce/graphql": "^2.105.13",
|
|
26
|
+
"@graphcommerce/image": "^2.105.12",
|
|
27
|
+
"@graphcommerce/magento-cart": "^3.9.0",
|
|
28
|
+
"@graphcommerce/magento-store": "^3.4.0",
|
|
29
|
+
"@graphcommerce/next-ui": "^3.22.0",
|
|
30
30
|
"@lingui/macro": "^3.13.0",
|
|
31
31
|
"@material-ui/core": "^4.12.3",
|
|
32
32
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"schema-dts": "^1.0.0",
|
|
39
39
|
"type-fest": "^2.8.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "bc5423d7547f8685db4cd8fc6d8f7a2a51ebed05"
|
|
42
42
|
}
|