@graphcommerce/framer-scroller 6.0.0-canary.39 → 6.0.0-canary.41

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,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.0.0-canary.41
4
+
5
+ ## 6.0.0-canary.40
6
+
3
7
  ## 6.0.0-canary.39
4
8
 
5
9
  ## 6.0.0-canary.38
@@ -61,7 +61,7 @@ function useObserveItems(scrollerRef: ReactHtmlRefObject, items: MotionValue<Ite
61
61
 
62
62
  useEffect(() => {
63
63
  observe(items.get())
64
- return items.onChange(observe)
64
+ return items.on('change', observe)
65
65
  }, [items, observe])
66
66
  }
67
67
 
@@ -10,11 +10,11 @@ export function useWatchItems(callback: (item: ItemState, items: ItemState[]) =>
10
10
 
11
11
  const handleItemChange = (itemArr: ItemState[]) => {
12
12
  itemArr.forEach((item) => {
13
- watched.push(item.visibility.onChange(() => callback(item, items.get())))
13
+ watched.push(item.visibility.on('change', () => callback(item, items.get())))
14
14
  })
15
15
  }
16
16
 
17
- watched.push(items.onChange(handleItemChange))
17
+ watched.push(items.on('change', handleItemChange))
18
18
  handleItemChange(items.get())
19
19
 
20
20
  return () => watched.forEach((w) => w())
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.0-canary.39",
5
+ "version": "6.0.0-canary.41",
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.0-canary.39",
20
- "@graphcommerce/image": "6.0.0-canary.39"
19
+ "@graphcommerce/framer-utils": "6.0.0-canary.41",
20
+ "@graphcommerce/image": "6.0.0-canary.41"
21
21
  },
22
22
  "devDependencies": {
23
- "@graphcommerce/eslint-config-pwa": "6.0.0-canary.39",
24
- "@graphcommerce/prettier-config-pwa": "6.0.0-canary.39",
25
- "@graphcommerce/typescript-config-pwa": "6.0.0-canary.39"
23
+ "@graphcommerce/eslint-config-pwa": "6.0.0-canary.41",
24
+ "@graphcommerce/prettier-config-pwa": "6.0.0-canary.41",
25
+ "@graphcommerce/typescript-config-pwa": "6.0.0-canary.41"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@mui/material": "^5.10.16",