@graphcommerce/framer-scroller 2.1.3 → 2.1.6

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
@@ -1,5 +1,34 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`da0ae7d02`](https://github.com/graphcommerce-org/graphcommerce/commit/da0ae7d0236e4908ba0bf0fa16656be516e841d4) Thanks [@paales](https://github.com/paales)! - Updated dependencies
8
+
9
+ - Updated dependencies [[`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542), [`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542), [`da0ae7d02`](https://github.com/graphcommerce-org/graphcommerce/commit/da0ae7d0236e4908ba0bf0fa16656be516e841d4)]:
10
+ - @graphcommerce/next-ui@4.6.1
11
+ - @graphcommerce/framer-utils@3.1.2
12
+ - @graphcommerce/image@3.1.5
13
+
14
+ ## 2.1.5
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [[`3c801f45c`](https://github.com/graphcommerce-org/graphcommerce/commit/3c801f45c7df55131acf30ae2fe0d2344830d480), [`3192fab82`](https://github.com/graphcommerce-org/graphcommerce/commit/3192fab82560e2211dfcacadc3b0b305260527d8), [`0e425e85e`](https://github.com/graphcommerce-org/graphcommerce/commit/0e425e85ee8fed280349317ee0440c7bceea5823), [`8a354d1cd`](https://github.com/graphcommerce-org/graphcommerce/commit/8a354d1cd4757497ddfc9b1969a0addbc8ff616b)]:
19
+ - @graphcommerce/next-ui@4.6.0
20
+ - @graphcommerce/image@3.1.4
21
+
22
+ ## 2.1.4
23
+
24
+ ### Patch Changes
25
+
26
+ - [#1378](https://github.com/graphcommerce-org/graphcommerce/pull/1378) [`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5) Thanks [@paales](https://github.com/paales)! - Pin all versions internally so we can’t end up in an unfixable state for the user
27
+
28
+ - Updated dependencies [[`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5)]:
29
+ - @graphcommerce/image@3.1.3
30
+ - @graphcommerce/next-ui@4.5.1
31
+
3
32
  ## 2.1.3
4
33
 
5
34
  ### Patch Changes
@@ -106,12 +106,15 @@ export function ScrollerProvider(props: ScrollerProviderProps) {
106
106
 
107
107
  stop()
108
108
 
109
- // We're setting the current scrollLeft to prevent resetting the scroll position on Safari
109
+ // We're setting the current scrollLeft to prevent resetting the scroll position on Safari 14.
110
110
  const l = scrollerRef.current.scrollLeft
111
111
  const t = scrollerRef.current.scrollTop
112
112
  snap.set(true)
113
- scrollerRef.current.scrollLeft = l
114
- scrollerRef.current.scrollTop = t
113
+ requestAnimationFrame(() => {
114
+ if (!scrollerRef.current) return
115
+ scrollerRef.current.scrollLeft = l
116
+ scrollerRef.current.scrollTop = t
117
+ })
115
118
  }, [snap, stop])
116
119
 
117
120
  useObserveItems(scrollerRef, items)
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": "2.1.3",
5
+ "version": "2.1.6",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
8
  "dev": "tsc -W"
@@ -15,21 +15,21 @@
15
15
  }
16
16
  },
17
17
  "dependencies": {
18
- "@graphcommerce/framer-utils": "^3.1.1",
19
- "@graphcommerce/image": "^3.1.2",
20
- "@graphcommerce/next-ui": "^4.5.0"
18
+ "@graphcommerce/framer-utils": "3.1.2",
19
+ "@graphcommerce/image": "3.1.5",
20
+ "@graphcommerce/next-ui": "4.6.1"
21
21
  },
22
22
  "devDependencies": {
23
- "@graphcommerce/eslint-config-pwa": "^4.1.3",
24
- "@graphcommerce/prettier-config-pwa": "^4.0.5",
23
+ "@graphcommerce/eslint-config-pwa": "^4.1.5",
24
+ "@graphcommerce/prettier-config-pwa": "^4.0.6",
25
25
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
26
- "@playwright/test": "^1.20.1"
26
+ "@playwright/test": "^1.21.1"
27
27
  },
28
28
  "peerDependencies": {
29
- "@mui/material": "^5.4.1",
29
+ "@mui/material": "5.5.3",
30
30
  "@lingui/macro": "^3.13.2",
31
31
  "framer-motion": "^6.2.4",
32
- "next": "^12.0.10",
32
+ "next": "12.1.2",
33
33
  "popmotion": "11.0.3",
34
34
  "react": "^17.0.2",
35
35
  "react-dom": "^17.0.2"