@graphcommerce/framer-scroller 1.1.20 → 1.1.21

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,19 @@
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
+ ## [1.1.21](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/framer-scroller@1.1.20...@graphcommerce/framer-scroller@1.1.21) (2021-12-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **framer-scroller:** height of the gallery item isn't high enough ([0e84ba3](https://github.com/ho-nl/m2-pwa/commit/0e84ba3ecb8928870fdc0459a1c6c30fde372d91))
12
+ * **framer-scroller:** make sure the actual image will scale instead of the container ([8d55630](https://github.com/ho-nl/m2-pwa/commit/8d55630a93cff91ac37e426bbe9f1b25b001556c))
13
+ * **framer-scroller:** would throw ssr warning ([a3db078](https://github.com/ho-nl/m2-pwa/commit/a3db0781d2433809c0bd4cb6ba37af79b611f3c4))
14
+
15
+
16
+
17
+
18
+
6
19
  ## [1.1.20](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/framer-scroller@1.1.19...@graphcommerce/framer-scroller@1.1.20) (2021-12-22)
7
20
 
8
21
 
@@ -13,7 +13,7 @@ const useStyles = makeStyles(
13
13
  display: 'block',
14
14
  '@supports (aspect-ratio: 1 / 1)': {
15
15
  maxWidth: '99.6%',
16
- maxHeight: '99.6%',
16
+ maxHeight: '100%',
17
17
  width: 'auto',
18
18
  height: 'auto',
19
19
 
@@ -56,10 +56,11 @@ const MotionImageAspect = m(
56
56
  forwardRef<HTMLImageElement, MotionImageAspectProps>((props, ref) => {
57
57
  const classes = useStyles()
58
58
  return (
59
- <div className={classes.root} ref={ref}>
59
+ <div className={classes.root}>
60
60
  <Image
61
61
  {...props}
62
62
  layout='fill'
63
+ ref={ref}
63
64
  className={clsx(classes.image, props.className)}
64
65
  pictureProps={{
65
66
  className: clsx(classes.picture, props.pictureProps?.className),
@@ -37,7 +37,7 @@ export type DotsProps = {
37
37
 
38
38
  const ScrollerDots = m(
39
39
  React.forwardRef<HTMLDivElement, DotsProps>((props, ref) => {
40
- const { fabProps, ...containerProps } = props
40
+ const { fabProps, classes: _classes, ...containerProps } = props
41
41
  const { dots, dot, circle, ...classes } = useStyles(props)
42
42
  const { items, getScrollSnapPositions } = useScrollerContext()
43
43
  const itemsArr = useMotionValueValue(items, (v) => v)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/framer-scroller",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "sideEffects": false,
5
5
  "scripts": {
6
6
  "dev": "tsc -W"
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@graphcommerce/framer-utils": "^2.103.20",
20
20
  "@graphcommerce/image": "^2.105.11",
21
- "@graphcommerce/next-ui": "^3.21.10",
21
+ "@graphcommerce/next-ui": "^3.21.11",
22
22
  "@material-ui/core": "^4.12.3",
23
23
  "popmotion": "11.0.3"
24
24
  },
@@ -36,5 +36,5 @@
36
36
  "react-dom": "^17.0.2",
37
37
  "type-fest": "^2.8.0"
38
38
  },
39
- "gitHead": "c8ce20cffa0bf8fe47fa75d98c97d8c5d684c485"
39
+ "gitHead": "69021da9f882aed2f55a4f437b8e03ef802e805c"
40
40
  }