@graphcommerce/framer-scroller 6.0.2-canary.18 → 6.0.2-canary.19
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 +6 -0
- package/hooks/useScrollTo.ts +5 -4
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.0.2-canary.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b8bd4abcd`](https://github.com/graphcommerce-org/graphcommerce/commit/b8bd4abcdfb9fc96ec5a724b449df713b99af23b) - Do not change the behavior of the useScrollTo, only warn about possible problems. ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
3
9
|
## 6.0.2-canary.18
|
|
4
10
|
|
|
5
11
|
## 6.0.2-canary.17
|
package/hooks/useScrollTo.ts
CHANGED
|
@@ -25,20 +25,21 @@ export function useScrollTo() {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
if (process.env.NODE_ENV === 'development' && scroll.animating.get() && retrigger === 0) {
|
|
28
|
-
|
|
29
|
-
`scrollTo triggered while another animation is in progress.
|
|
28
|
+
console.warn(
|
|
29
|
+
`scrollTo triggered while another animation is in progress. This cancels the current animation and creates a new one.`,
|
|
30
30
|
)
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
if (process.env.NODE_ENV === 'development' && retrigger > 5) {
|
|
34
|
-
|
|
34
|
+
console.error(
|
|
35
35
|
`scrollTo triggered more than 5 times, is the element resizing constantly? Bailing out.`,
|
|
36
36
|
)
|
|
37
|
+
return
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
if (process.env.NODE_ENV === 'development' && retrigger > 0) {
|
|
40
41
|
console.warn(
|
|
41
|
-
`scrollTo
|
|
42
|
+
`scrollTo re-animating to because the final location changed during animation.`,
|
|
42
43
|
)
|
|
43
44
|
}
|
|
44
45
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/framer-scroller",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "6.0.2-canary.
|
|
5
|
+
"version": "6.0.2-canary.19",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "tsc -W"
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"popmotion": "11.0.5",
|
|
19
|
-
"@graphcommerce/framer-utils": "6.0.2-canary.
|
|
20
|
-
"@graphcommerce/image": "6.0.2-canary.
|
|
19
|
+
"@graphcommerce/framer-utils": "6.0.2-canary.19",
|
|
20
|
+
"@graphcommerce/image": "6.0.2-canary.19"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@graphcommerce/eslint-config-pwa": "6.0.2-canary.
|
|
24
|
-
"@graphcommerce/prettier-config-pwa": "6.0.2-canary.
|
|
25
|
-
"@graphcommerce/typescript-config-pwa": "6.0.2-canary.
|
|
23
|
+
"@graphcommerce/eslint-config-pwa": "6.0.2-canary.19",
|
|
24
|
+
"@graphcommerce/prettier-config-pwa": "6.0.2-canary.19",
|
|
25
|
+
"@graphcommerce/typescript-config-pwa": "6.0.2-canary.19"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@mui/material": "^5.10.16",
|