@graphcommerce/framer-utils 11.0.0-canary.55 → 11.0.0-canary.57

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,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 11.0.0-canary.57
4
+
5
+ ### Major Changes
6
+
7
+ - [#2708](https://github.com/graphcommerce-org/graphcommerce/pull/2708) [`28aa653`](https://github.com/graphcommerce-org/graphcommerce/commit/28aa653188ed5dc4a0cc5401ee5149b31858e01d) - **Breaking change:** GraphCommerce imports `motion/react` and requires the `motion` package. In your project, replace the `framer-motion` dependency with `motion` 14 and change the imports from `framer-motion` to `motion/react`. ([@paales](https://github.com/paales))
8
+
9
+ ## 11.0.0-canary.56
10
+
3
11
  ## 11.0.0-canary.55
4
12
 
5
13
  ## 11.0.0-canary.54
@@ -1,5 +1,5 @@
1
- import type { MotionValue } from 'framer-motion'
2
- import { frame, useMotionValue, useTransform } from 'framer-motion'
1
+ import type { MotionValue } from 'motion/react'
2
+ import { frame, useMotionValue, useTransform } from 'motion/react'
3
3
  import type { RefObject } from 'react'
4
4
  import { useConstant } from './useConstant'
5
5
  import { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect'
@@ -44,7 +44,7 @@ export function useElementScroll(ref?: RefObject<HTMLElement | null>): ScrollMot
44
44
  if (!animating.get()) y.set(element.scrollTop)
45
45
  if (!animating.get()) x.set(element.scrollLeft)
46
46
  }
47
- // Measure in framer-motion's read step instead of synchronously in this layout effect: reading
47
+ // Measure in Motion's read step instead of synchronously in this layout effect: reading
48
48
  // scrollWidth here forces a style recalc and layout of the whole page during the (hydration)
49
49
  // commit. The ResizeObserver below also delivers an initial observation.
50
50
  const updaterTimed = () => frame.read(updater)
@@ -1,5 +1,5 @@
1
- import type { MotionValue } from 'framer-motion'
2
- import { frame } from 'framer-motion'
1
+ import type { MotionValue } from 'motion/react'
2
+ import { frame } from 'motion/react'
3
3
  import { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect'
4
4
 
5
5
  export type UseClientSizeReturn = { x: MotionValue<string>; y: MotionValue<string> }
@@ -1,4 +1,4 @@
1
- import type { MotionValue } from 'framer-motion'
1
+ import type { MotionValue } from 'motion/react'
2
2
  import { startTransition, useState } from 'react'
3
3
  import { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect'
4
4
 
@@ -1,4 +1,4 @@
1
- import type { MotionValue } from 'framer-motion'
1
+ import type { MotionValue } from 'motion/react'
2
2
  import { startTransition, useState } from 'react'
3
3
  import { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect'
4
4
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/framer-utils",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "11.0.0-canary.55",
5
+ "version": "11.0.0-canary.57",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
8
  "dev": "tsc -W"
@@ -18,10 +18,10 @@
18
18
  }
19
19
  },
20
20
  "peerDependencies": {
21
- "@graphcommerce/eslint-config-pwa": "^11.0.0-canary.55",
22
- "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.55",
23
- "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.55",
24
- "framer-motion": "^11.0.0",
21
+ "@graphcommerce/eslint-config-pwa": "^11.0.0-canary.57",
22
+ "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.57",
23
+ "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.57",
24
+ "motion": "^14.0.0",
25
25
  "react": "^19.2.0",
26
26
  "react-dom": "^19.2.0"
27
27
  }
@@ -1,5 +1,5 @@
1
- import type { MotionValue } from 'framer-motion'
2
- import { frame, motionValue } from 'framer-motion'
1
+ import type { MotionValue } from 'motion/react'
2
+ import { frame, motionValue } from 'motion/react'
3
3
 
4
4
  export type ClientSize = {
5
5
  x: MotionValue<number>