@graphcommerce/framer-scroller 1.1.8 → 1.1.12

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.10](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/framer-scroller@1.1.9...@graphcommerce/framer-scroller@1.1.10) (2021-12-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **framer-scroller:** make sure we're not throwing only warning when there are no children ([001c7d9](https://github.com/ho-nl/m2-pwa/commit/001c7d9a00e447d44134c00bd77505e52cf0f9d4))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.1.8](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/framer-scroller@1.1.7...@graphcommerce/framer-scroller@1.1.8) (2021-12-15)
7
18
 
8
19
 
@@ -118,7 +118,8 @@ export default function ScrollerProvider(props: ScrollerProviderProps) {
118
118
  const registerChildren = useCallback(
119
119
  (children: React.ReactNode) => {
120
120
  const count = React.Children.count(children)
121
- if (!count) throw Error('[@graphcommerce/framer-scroller]: Can not find children')
121
+ if (!count && process.env.NODE_ENV !== 'production')
122
+ console.warn('[@graphcommerce/framer-scroller]: Can not find children')
122
123
  if (count === items.get().length) return
123
124
 
124
125
  const itemsArr: unknown[] = items.get().slice()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/framer-scroller",
3
- "version": "1.1.8",
3
+ "version": "1.1.12",
4
4
  "sideEffects": false,
5
5
  "scripts": {
6
6
  "dev": "tsc -W"
@@ -16,17 +16,17 @@
16
16
  }
17
17
  },
18
18
  "dependencies": {
19
- "@graphcommerce/framer-utils": "^2.103.19",
20
- "@graphcommerce/image": "^2.105.8",
21
- "@graphcommerce/next-ui": "^3.20.8",
19
+ "@graphcommerce/framer-utils": "^2.103.20",
20
+ "@graphcommerce/image": "^2.105.9",
21
+ "@graphcommerce/next-ui": "^3.21.2",
22
22
  "@material-ui/core": "^4.12.3",
23
23
  "popmotion": "11.0.3"
24
24
  },
25
25
  "devDependencies": {
26
- "@graphcommerce/browserslist-config-pwa": "^3.0.2",
27
- "@graphcommerce/eslint-config-pwa": "^3.1.8",
28
- "@graphcommerce/prettier-config-pwa": "^3.0.4",
29
- "@graphcommerce/typescript-config-pwa": "^3.1.1",
26
+ "@graphcommerce/browserslist-config-pwa": "^3.0.3",
27
+ "@graphcommerce/eslint-config-pwa": "^3.1.9",
28
+ "@graphcommerce/prettier-config-pwa": "^3.0.5",
29
+ "@graphcommerce/typescript-config-pwa": "^3.1.2",
30
30
  "@playwright/test": "^1.17.1"
31
31
  },
32
32
  "peerDependencies": {
@@ -36,5 +36,5 @@
36
36
  "react-dom": "^17.0.2",
37
37
  "type-fest": "^2.8.0"
38
38
  },
39
- "gitHead": "a69bd94ffdcca6ca9487eec1cafe9ade3fcdffa3"
39
+ "gitHead": "06b4426d199de9ec2a9d2ac86d42ab047e59e7e7"
40
40
  }