@graphcommerce/framer-scroller 1.1.21 → 1.1.22

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,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
+ ## [1.1.22](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/framer-scroller@1.1.21...@graphcommerce/framer-scroller@1.1.22) (2021-12-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **framer-scroller:** make sure the first gallery dot is selected initially ([a2ed37b](https://github.com/ho-nl/m2-pwa/commit/a2ed37bd2c17eef46c0ee4cf8219a141b2e054b4))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [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
18
 
8
19
 
@@ -126,9 +126,9 @@ export default function ScrollerProvider(props: ScrollerProviderProps) {
126
126
  itemsArr.length = count
127
127
 
128
128
  items.set(
129
- itemsArr.fill(undefined).map<ItemState>(() => ({
130
- visibility: motionValue(0),
131
- opacity: motionValue(0.2),
129
+ itemsArr.fill(undefined).map<ItemState>((_, i) => ({
130
+ visibility: motionValue(i === 0 ? 1 : 0),
131
+ opacity: motionValue(i === 0 ? 1 : 0.2),
132
132
  })),
133
133
  )
134
134
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/framer-scroller",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
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.11",
21
+ "@graphcommerce/next-ui": "^3.21.12",
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": "69021da9f882aed2f55a4f437b8e03ef802e805c"
39
+ "gitHead": "55abd5ec0f5821dc4bba8d0a82fd265ff1d6a024"
40
40
  }