@graphcommerce/next-ui 3.21.9 → 3.21.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
|
@@ -3,6 +3,18 @@
|
|
|
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.21.10](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.9...@graphcommerce/next-ui@3.21.10) (2021-12-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **framer-scroller:** gallery didn't align images in the center ([0cf6066](https://github.com/ho-nl/m2-pwa/commit/0cf60669b2547d2c421eb07c1ba23d7718df74aa))
|
|
12
|
+
* safari hero banner didn't animate border radius ([7301bec](https://github.com/ho-nl/m2-pwa/commit/7301becf33a60f977546be1bcabc68e018f6c5cd))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [3.21.9](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.8...@graphcommerce/next-ui@3.21.9) (2021-12-21)
|
|
7
19
|
|
|
8
20
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { usePageRouter } from '@graphcommerce/framer-next-pages'
|
|
2
2
|
import { usePrevPageRouter } from '@graphcommerce/framer-next-pages/hooks/usePrevPageRouter'
|
|
3
3
|
import {
|
|
4
|
-
CenterSlide,
|
|
5
4
|
MotionImageAspect,
|
|
6
5
|
MotionImageAspectProps,
|
|
7
6
|
Scroller,
|
|
@@ -29,6 +28,7 @@ type StyleProps = {
|
|
|
29
28
|
const useStyles = makeStyles(
|
|
30
29
|
(theme: Theme) => ({
|
|
31
30
|
root: {
|
|
31
|
+
willChange: 'transform',
|
|
32
32
|
display: 'grid',
|
|
33
33
|
[theme.breakpoints.up('md')]: {
|
|
34
34
|
gridTemplateColumns: '1fr auto',
|
|
@@ -57,6 +57,7 @@ const useStyles = makeStyles(
|
|
|
57
57
|
const ratio = `calc(${height} / ${width} * 100%)`
|
|
58
58
|
|
|
59
59
|
return {
|
|
60
|
+
willChange: 'transform',
|
|
60
61
|
height: 0, // https://stackoverflow.com/questions/44770074/css-grid-row-height-safari-bug
|
|
61
62
|
backgroundColor: theme.palette.background.image,
|
|
62
63
|
position: 'relative',
|
|
@@ -71,6 +72,7 @@ const useStyles = makeStyles(
|
|
|
71
72
|
paddingTop: clientHeight,
|
|
72
73
|
}),
|
|
73
74
|
scroller: {
|
|
75
|
+
willChange: 'transform',
|
|
74
76
|
position: 'absolute',
|
|
75
77
|
top: 0,
|
|
76
78
|
width: '100%',
|
|
@@ -247,21 +249,20 @@ export default function SidebarGallery(props: SidebarGalleryProps) {
|
|
|
247
249
|
onMouseUp={onMouseUpScroller}
|
|
248
250
|
>
|
|
249
251
|
{images.map((image, idx) => (
|
|
250
|
-
<
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
</CenterSlide>
|
|
252
|
+
<MotionImageAspect
|
|
253
|
+
key={typeof image.src === 'string' ? image.src : idx}
|
|
254
|
+
layout
|
|
255
|
+
src={image.src}
|
|
256
|
+
width={image.width}
|
|
257
|
+
height={image.height}
|
|
258
|
+
loading={idx === 0 ? 'eager' : 'lazy'}
|
|
259
|
+
sizes={{
|
|
260
|
+
0: '100vw',
|
|
261
|
+
[theme.breakpoints.values.md]: zoomed ? '100vw' : '60vw',
|
|
262
|
+
}}
|
|
263
|
+
alt={image.alt || `Product Image ${idx}` || undefined}
|
|
264
|
+
dontReportWronglySizedImages
|
|
265
|
+
/>
|
|
265
266
|
))}
|
|
266
267
|
</Scroller>
|
|
267
268
|
<m.div layout className={classes.topRight}>
|
package/Row/HeroBanner/index.tsx
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
|
3
|
-
"version": "3.21.
|
|
3
|
+
"version": "3.21.10",
|
|
4
4
|
"author": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@apollo/client": "^3.5.6",
|
|
13
13
|
"@graphcommerce/framer-next-pages": "^2.108.9",
|
|
14
|
-
"@graphcommerce/framer-scroller": "^1.1.
|
|
14
|
+
"@graphcommerce/framer-scroller": "^1.1.20",
|
|
15
15
|
"@graphcommerce/framer-utils": "^2.103.20",
|
|
16
16
|
"@graphcommerce/graphql": "^2.105.12",
|
|
17
17
|
"@graphcommerce/image": "^2.105.11",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"project": "./tsconfig.json"
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "c8ce20cffa0bf8fe47fa75d98c97d8c5d684c485"
|
|
56
56
|
}
|