framer-motion 12.23.12 → 13.0.0-alpha.0

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.
Files changed (54) hide show
  1. package/dist/cjs/client.js +1 -2
  2. package/dist/cjs/{feature-bundle-PNQ-8QDo.js → feature-bundle-C8gfmTBU.js} +0 -1
  3. package/dist/cjs/index.js +1 -2
  4. package/dist/es/animation/hooks/use-animate-style.mjs +1 -0
  5. package/dist/es/animation/hooks/use-animate.mjs +1 -0
  6. package/dist/es/animation/hooks/use-animated-state.mjs +1 -0
  7. package/dist/es/animation/hooks/use-animation.mjs +1 -0
  8. package/dist/es/client.mjs +0 -2
  9. package/dist/es/components/AnimatePresence/use-presence-data.mjs +1 -0
  10. package/dist/es/components/AnimatePresence/use-presence.mjs +1 -0
  11. package/dist/es/components/AnimateSharedLayout.mjs +1 -0
  12. package/dist/es/context/DeprecatedLayoutGroupContext.mjs +1 -0
  13. package/dist/es/context/MotionContext/create.mjs +1 -0
  14. package/dist/es/events/use-dom-event.mjs +1 -0
  15. package/dist/es/index.mjs +0 -2
  16. package/dist/es/m.mjs +0 -1
  17. package/dist/es/motion/utils/use-motion-ref.mjs +1 -0
  18. package/dist/es/motion/utils/use-visual-element.mjs +1 -0
  19. package/dist/es/motion/utils/use-visual-state.mjs +1 -0
  20. package/dist/es/render/dom/use-render.mjs +1 -0
  21. package/dist/es/render/html/use-html-visual-state.mjs +1 -0
  22. package/dist/es/render/html/use-props.mjs +1 -0
  23. package/dist/es/render/svg/use-props.mjs +1 -0
  24. package/dist/es/render/svg/use-svg-visual-state.mjs +1 -0
  25. package/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs +1 -0
  26. package/dist/es/utils/reduced-motion/use-reduced-motion.mjs +1 -0
  27. package/dist/es/utils/use-animation-frame.mjs +1 -0
  28. package/dist/es/utils/use-constant.mjs +1 -0
  29. package/dist/es/utils/use-cycle.mjs +1 -0
  30. package/dist/es/utils/use-force-update.mjs +1 -0
  31. package/dist/es/utils/use-in-view.mjs +1 -0
  32. package/dist/es/utils/use-instant-transition.mjs +1 -0
  33. package/dist/es/utils/use-is-mounted.mjs +1 -0
  34. package/dist/es/utils/use-isomorphic-effect.mjs +1 -0
  35. package/dist/es/utils/use-motion-value-event.mjs +1 -0
  36. package/dist/es/utils/use-page-in-view.mjs +1 -0
  37. package/dist/es/utils/use-unmount-effect.mjs +1 -0
  38. package/dist/es/value/use-combine-values.mjs +1 -0
  39. package/dist/es/value/use-computed.mjs +1 -0
  40. package/dist/es/value/use-inverted-scale.mjs +1 -0
  41. package/dist/es/value/use-motion-template.mjs +1 -0
  42. package/dist/es/value/use-motion-value.mjs +1 -0
  43. package/dist/es/value/use-scroll.mjs +1 -0
  44. package/dist/es/value/use-spring.mjs +1 -0
  45. package/dist/es/value/use-time.mjs +1 -0
  46. package/dist/es/value/use-transform.mjs +1 -0
  47. package/dist/es/value/use-velocity.mjs +1 -0
  48. package/dist/es/value/use-will-change/index.mjs +1 -0
  49. package/dist/framer-motion.dev.js +0 -1
  50. package/dist/framer-motion.js +1 -1
  51. package/dist/types/client.d.ts +2 -4
  52. package/dist/types/index.d.ts +78 -3
  53. package/dist/{types.d-Cjd591yU.d.ts → types.d-C7Th3txw.d.ts} +3 -79
  54. package/package.json +2 -2
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var featureBundle = require('./feature-bundle-PNQ-8QDo.js');
5
+ var featureBundle = require('./feature-bundle-C8gfmTBU.js');
6
6
  require('react');
7
7
  require('motion-dom');
8
8
  require('motion-utils');
@@ -202,7 +202,6 @@ const MotionRadialGradient =
202
202
  /*@__PURE__*/ createMotionComponentWithFeatures("radialGradient");
203
203
  const MotionTextPath = /*@__PURE__*/ createMotionComponentWithFeatures("textPath");
204
204
 
205
- exports.create = featureBundle.createMotionComponent;
206
205
  exports.a = MotionA;
207
206
  exports.abbr = MotionAbbr;
208
207
  exports.address = MotionAddress;
@@ -6227,7 +6227,6 @@ const featureBundle = {
6227
6227
  ...layout,
6228
6228
  };
6229
6229
 
6230
- exports.FlatTree = FlatTree;
6231
6230
  exports.HTMLVisualElement = HTMLVisualElement;
6232
6231
  exports.LayoutGroupContext = LayoutGroupContext;
6233
6232
  exports.LazyContext = LazyContext;
package/dist/cjs/index.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var React = require('react');
7
- var featureBundle = require('./feature-bundle-PNQ-8QDo.js');
7
+ var featureBundle = require('./feature-bundle-C8gfmTBU.js');
8
8
  var motionDom = require('motion-dom');
9
9
  var motionUtils = require('motion-utils');
10
10
 
@@ -2861,7 +2861,6 @@ function useInvertedScale(scale) {
2861
2861
  return { scaleX, scaleY };
2862
2862
  }
2863
2863
 
2864
- exports.FlatTree = featureBundle.FlatTree;
2865
2864
  exports.LayoutGroupContext = featureBundle.LayoutGroupContext;
2866
2865
  exports.MotionConfigContext = featureBundle.MotionConfigContext;
2867
2866
  exports.MotionContext = featureBundle.MotionContext;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useConstant } from '../../utils/use-constant.mjs';
2
3
  import { useUnmountEffect } from '../../utils/use-unmount-effect.mjs';
3
4
  import { createScopedWaapiAnimate } from '../animators/waapi/animate-style.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useConstant } from '../../utils/use-constant.mjs';
2
3
  import { useUnmountEffect } from '../../utils/use-unmount-effect.mjs';
3
4
  import { createScopedAnimate } from '../animate/index.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useState, useLayoutEffect } from 'react';
2
3
  import { makeUseVisualState } from '../../motion/utils/use-visual-state.mjs';
3
4
  import { createBox } from '../../projection/geometry/models.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useConstant } from '../../utils/use-constant.mjs';
2
3
  import { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';
3
4
  import { animationControls } from './animation-controls.mjs';
@@ -1,3 +1 @@
1
- "use client";
2
1
  export { MotionA as a, MotionAbbr as abbr, MotionAddress as address, MotionAnimate as animate, MotionArea as area, MotionArticle as article, MotionAside as aside, MotionAudio as audio, MotionB as b, MotionBase as base, MotionBdi as bdi, MotionBdo as bdo, MotionBig as big, MotionBlockquote as blockquote, MotionBody as body, MotionButton as button, MotionCanvas as canvas, MotionCaption as caption, MotionCircle as circle, MotionCite as cite, MotionClipPath as clipPath, MotionCode as code, MotionCol as col, MotionColgroup as colgroup, MotionData as data, MotionDatalist as datalist, MotionDd as dd, MotionDefs as defs, MotionDel as del, MotionDesc as desc, MotionDetails as details, MotionDfn as dfn, MotionDialog as dialog, MotionDiv as div, MotionDl as dl, MotionDt as dt, MotionEllipse as ellipse, MotionEm as em, MotionEmbed as embed, MotionFeBlend as feBlend, MotionFeColorMatrix as feColorMatrix, MotionFeComponentTransfer as feComponentTransfer, MotionFeComposite as feComposite, MotionFeConvolveMatrix as feConvolveMatrix, MotionFeDiffuseLighting as feDiffuseLighting, MotionFeDisplacementMap as feDisplacementMap, MotionFeDistantLight as feDistantLight, MotionFeDropShadow as feDropShadow, MotionFeFlood as feFlood, MotionFeFuncA as feFuncA, MotionFeFuncB as feFuncB, MotionFeFuncG as feFuncG, MotionFeFuncR as feFuncR, MotionFeGaussianBlur as feGaussianBlur, MotionFeImage as feImage, MotionFeMerge as feMerge, MotionFeMergeNode as feMergeNode, MotionFeMorphology as feMorphology, MotionFeOffset as feOffset, MotionFePointLight as fePointLight, MotionFeSpecularLighting as feSpecularLighting, MotionFeSpotLight as feSpotLight, MotionFeTile as feTile, MotionFeTurbulence as feTurbulence, MotionFieldset as fieldset, MotionFigcaption as figcaption, MotionFigure as figure, MotionFilter as filter, MotionFooter as footer, MotionForeignObject as foreignObject, MotionForm as form, MotionG as g, MotionH1 as h1, MotionH2 as h2, MotionH3 as h3, MotionH4 as h4, MotionH5 as h5, MotionH6 as h6, MotionHead as head, MotionHeader as header, MotionHgroup as hgroup, MotionHr as hr, MotionHtml as html, MotionI as i, MotionIframe as iframe, MotionImage as image, MotionImg as img, MotionInput as input, MotionIns as ins, MotionKbd as kbd, MotionKeygen as keygen, MotionLabel as label, MotionLegend as legend, MotionLi as li, MotionLine as line, MotionLinearGradient as linearGradient, MotionLink as link, MotionMain as main, MotionMap as map, MotionMark as mark, MotionMarker as marker, MotionMask as mask, MotionMenu as menu, MotionMenuitem as menuitem, MotionMetadata as metadata, MotionMeter as meter, MotionNav as nav, MotionObject as object, MotionOl as ol, MotionOptgroup as optgroup, MotionOption as option, MotionOutput as output, MotionP as p, MotionParam as param, MotionPath as path, MotionPattern as pattern, MotionPicture as picture, MotionPolygon as polygon, MotionPolyline as polyline, MotionPre as pre, MotionProgress as progress, MotionQ as q, MotionRadialGradient as radialGradient, MotionRect as rect, MotionRp as rp, MotionRt as rt, MotionRuby as ruby, MotionS as s, MotionSamp as samp, MotionScript as script, MotionSection as section, MotionSelect as select, MotionSmall as small, MotionSource as source, MotionSpan as span, MotionStop as stop, MotionStrong as strong, MotionStyle as style, MotionSub as sub, MotionSummary as summary, MotionSup as sup, MotionSvg as svg, MotionSymbol as symbol, MotionTable as table, MotionTbody as tbody, MotionTd as td, MotionText as text, MotionTextPath as textPath, MotionTextarea as textarea, MotionTfoot as tfoot, MotionTh as th, MotionThead as thead, MotionTime as time, MotionTitle as title, MotionTr as tr, MotionTrack as track, MotionTspan as tspan, MotionU as u, MotionUl as ul, MotionUse as use, MotionVideo as video, MotionView as view, MotionWbr as wbr, MotionWebview as webview } from './render/components/motion/elements.mjs';
3
- export { createMotionComponent as create } from './motion/index.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useContext } from 'react';
2
3
  import { PresenceContext } from '../../context/PresenceContext.mjs';
3
4
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useContext, useId, useEffect, useCallback } from 'react';
2
3
  import { PresenceContext } from '../../context/PresenceContext.mjs';
3
4
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx } from 'react/jsx-runtime';
2
3
  import { invariant } from 'motion-utils';
3
4
  import * as React from 'react';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { createContext } from 'react';
2
3
 
3
4
  /**
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useContext, useMemo } from 'react';
2
3
  import { MotionContext } from './index.mjs';
3
4
  import { getCurrentTreeVariants } from './utils.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useEffect } from 'react';
2
3
  import { addDomEvent } from './add-dom-event.mjs';
3
4
 
package/dist/es/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  export { AnimatePresence } from './components/AnimatePresence/index.mjs';
3
2
  export { LayoutGroup } from './components/LayoutGroup/index.mjs';
4
3
  export { LazyMotion } from './components/LazyMotion/index.mjs';
@@ -66,7 +65,6 @@ export { MotionConfigContext } from './context/MotionConfigContext.mjs';
66
65
  export { MotionContext } from './context/MotionContext/index.mjs';
67
66
  export { PresenceContext } from './context/PresenceContext.mjs';
68
67
  export { SwitchLayoutGroupContext } from './context/SwitchLayoutGroupContext.mjs';
69
- export { FlatTree } from './render/utils/flat-tree.mjs';
70
68
  export { useAnimatedState as useDeprecatedAnimatedState } from './animation/hooks/use-animated-state.mjs';
71
69
  export { AnimateSharedLayout } from './components/AnimateSharedLayout.mjs';
72
70
  export { DeprecatedLayoutGroupContext } from './context/DeprecatedLayoutGroupContext.mjs';
package/dist/es/m.mjs CHANGED
@@ -1,3 +1,2 @@
1
- "use client";
2
1
  export { createMinimalMotionComponent as create } from './render/components/m/create.mjs';
3
2
  export { MotionA as a, MotionAbbr as abbr, MotionAddress as address, MotionAnimate as animate, MotionArea as area, MotionArticle as article, MotionAside as aside, MotionAudio as audio, MotionB as b, MotionBase as base, MotionBdi as bdi, MotionBdo as bdo, MotionBig as big, MotionBlockquote as blockquote, MotionBody as body, MotionButton as button, MotionCanvas as canvas, MotionCaption as caption, MotionCircle as circle, MotionCite as cite, MotionClipPath as clipPath, MotionCode as code, MotionCol as col, MotionColgroup as colgroup, MotionData as data, MotionDatalist as datalist, MotionDd as dd, MotionDefs as defs, MotionDel as del, MotionDesc as desc, MotionDetails as details, MotionDfn as dfn, MotionDialog as dialog, MotionDiv as div, MotionDl as dl, MotionDt as dt, MotionEllipse as ellipse, MotionEm as em, MotionEmbed as embed, MotionFeBlend as feBlend, MotionFeColorMatrix as feColorMatrix, MotionFeComponentTransfer as feComponentTransfer, MotionFeComposite as feComposite, MotionFeConvolveMatrix as feConvolveMatrix, MotionFeDiffuseLighting as feDiffuseLighting, MotionFeDisplacementMap as feDisplacementMap, MotionFeDistantLight as feDistantLight, MotionFeDropShadow as feDropShadow, MotionFeFlood as feFlood, MotionFeFuncA as feFuncA, MotionFeFuncB as feFuncB, MotionFeFuncG as feFuncG, MotionFeFuncR as feFuncR, MotionFeGaussianBlur as feGaussianBlur, MotionFeImage as feImage, MotionFeMerge as feMerge, MotionFeMergeNode as feMergeNode, MotionFeMorphology as feMorphology, MotionFeOffset as feOffset, MotionFePointLight as fePointLight, MotionFeSpecularLighting as feSpecularLighting, MotionFeSpotLight as feSpotLight, MotionFeTile as feTile, MotionFeTurbulence as feTurbulence, MotionFieldset as fieldset, MotionFigcaption as figcaption, MotionFigure as figure, MotionFilter as filter, MotionFooter as footer, MotionForeignObject as foreignObject, MotionForm as form, MotionG as g, MotionH1 as h1, MotionH2 as h2, MotionH3 as h3, MotionH4 as h4, MotionH5 as h5, MotionH6 as h6, MotionHead as head, MotionHeader as header, MotionHgroup as hgroup, MotionHr as hr, MotionHtml as html, MotionI as i, MotionIframe as iframe, MotionImage as image, MotionImg as img, MotionInput as input, MotionIns as ins, MotionKbd as kbd, MotionKeygen as keygen, MotionLabel as label, MotionLegend as legend, MotionLi as li, MotionLine as line, MotionLinearGradient as linearGradient, MotionLink as link, MotionMain as main, MotionMap as map, MotionMark as mark, MotionMarker as marker, MotionMask as mask, MotionMenu as menu, MotionMenuitem as menuitem, MotionMetadata as metadata, MotionMeter as meter, MotionNav as nav, MotionObject as object, MotionOl as ol, MotionOptgroup as optgroup, MotionOption as option, MotionOutput as output, MotionP as p, MotionParam as param, MotionPath as path, MotionPattern as pattern, MotionPicture as picture, MotionPolygon as polygon, MotionPolyline as polyline, MotionPre as pre, MotionProgress as progress, MotionQ as q, MotionRadialGradient as radialGradient, MotionRect as rect, MotionRp as rp, MotionRt as rt, MotionRuby as ruby, MotionS as s, MotionSamp as samp, MotionScript as script, MotionSection as section, MotionSelect as select, MotionSmall as small, MotionSource as source, MotionSpan as span, MotionStop as stop, MotionStrong as strong, MotionStyle as style, MotionSub as sub, MotionSummary as summary, MotionSup as sup, MotionSvg as svg, MotionSymbol as symbol, MotionTable as table, MotionTbody as tbody, MotionTd as td, MotionText as text, MotionTextPath as textPath, MotionTextarea as textarea, MotionTfoot as tfoot, MotionTh as th, MotionThead as thead, MotionTime as time, MotionTitle as title, MotionTr as tr, MotionTrack as track, MotionTspan as tspan, MotionU as u, MotionUl as ul, MotionUse as use, MotionVideo as video, MotionView as view, MotionWbr as wbr, MotionWebview as webview } from './render/components/m/elements.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useCallback } from 'react';
2
3
  import { isRefObject } from '../../utils/is-ref-object.mjs';
3
4
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useContext, useRef, useInsertionEffect, useEffect } from 'react';
2
3
  import { optimizedAppearDataAttribute } from '../../animation/optimized-appear/data-id.mjs';
3
4
  import { LazyContext } from '../../context/LazyContext.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useContext } from 'react';
2
3
  import { isAnimationControls } from '../../animation/utils/is-animation-controls.mjs';
3
4
  import { MotionContext } from '../../context/MotionContext/index.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { isMotionValue } from 'motion-dom';
2
3
  import { Fragment, useMemo, createElement } from 'react';
3
4
  import { useHTMLProps } from '../html/use-props.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { makeUseVisualState } from '../../motion/utils/use-visual-state.mjs';
2
3
  import { createHtmlRenderState } from './utils/create-render-state.mjs';
3
4
  import { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { isMotionValue } from 'motion-dom';
2
3
  import { useMemo } from 'react';
3
4
  import { isForcedMotionValue } from '../../motion/utils/is-forced-motion-value.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useMemo } from 'react';
2
3
  import { copyRawValuesOnly } from '../html/use-props.mjs';
3
4
  import { buildSVGAttrs } from './utils/build-attrs.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { makeUseVisualState } from '../../motion/utils/use-visual-state.mjs';
2
3
  import { createSvgRenderState } from './utils/create-render-state.mjs';
3
4
  import { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useContext } from 'react';
2
3
  import { MotionConfigContext } from '../../context/MotionConfigContext.mjs';
3
4
  import { useReducedMotion } from './use-reduced-motion.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { warnOnce } from 'motion-utils';
2
3
  import { useState } from 'react';
3
4
  import { initPrefersReducedMotion } from './index.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { frame, cancelFrame } from 'motion-dom';
2
3
  import { useRef, useContext, useEffect } from 'react';
3
4
  import { MotionConfigContext } from '../context/MotionConfigContext.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useRef } from 'react';
2
3
 
3
4
  /**
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { wrap } from 'motion-utils';
2
3
  import { useRef, useState, useCallback } from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { frame } from 'motion-dom';
2
3
  import { useState, useCallback } from 'react';
3
4
  import { useIsMounted } from './use-is-mounted.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useState, useEffect } from 'react';
2
3
  import { inView } from '../render/dom/viewport/index.mjs';
3
4
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { frame } from 'motion-dom';
2
3
  import { MotionGlobalConfig } from 'motion-utils';
3
4
  import { useRef, useEffect } from 'react';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useRef } from 'react';
2
3
  import { useIsomorphicLayoutEffect } from './use-isomorphic-effect.mjs';
3
4
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useLayoutEffect, useEffect } from 'react';
2
3
  import { isBrowser } from './is-browser.mjs';
3
4
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useInsertionEffect } from 'react';
2
3
 
3
4
  function useMotionValueEvent(value, event, callback) {
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useState, useEffect } from 'react';
2
3
 
3
4
  function usePageInView() {
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useEffect } from 'react';
2
3
 
3
4
  function useUnmountEffect(callback) {
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { cancelFrame, frame } from 'motion-dom';
2
3
  import { useIsomorphicLayoutEffect } from '../utils/use-isomorphic-effect.mjs';
3
4
  import { useMotionValue } from './use-motion-value.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { collectMotionValues } from 'motion-dom';
2
3
  import { useCombineMotionValues } from './use-combine-values.mjs';
3
4
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { invariant, warning } from 'motion-utils';
2
3
  import { useContext } from 'react';
3
4
  import { MotionContext } from '../context/MotionContext/index.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { isMotionValue } from 'motion-dom';
2
3
  import { useCombineMotionValues } from './use-combine-values.mjs';
3
4
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { motionValue } from 'motion-dom';
2
3
  import { useContext, useState, useEffect } from 'react';
3
4
  import { MotionConfigContext } from '../context/MotionConfigContext.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { motionValue } from 'motion-dom';
2
3
  import { invariant } from 'motion-utils';
3
4
  import { useRef, useCallback, useEffect } from 'react';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { attachSpring, isMotionValue } from 'motion-dom';
2
3
  import { useContext, useInsertionEffect } from 'react';
3
4
  import { MotionConfigContext } from '../context/MotionConfigContext.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useAnimationFrame } from '../utils/use-animation-frame.mjs';
2
3
  import { useMotionValue } from './use-motion-value.mjs';
3
4
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { transform } from 'motion-dom';
2
3
  import { useConstant } from '../utils/use-constant.mjs';
3
4
  import { useCombineMotionValues } from './use-combine-values.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { frame } from 'motion-dom';
2
3
  import { useMotionValueEvent } from '../utils/use-motion-value-event.mjs';
3
4
  import { useMotionValue } from './use-motion-value.mjs';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useConstant } from '../../utils/use-constant.mjs';
2
3
  import { WillChangeMotionValue } from './WillChangeMotionValue.mjs';
3
4
 
@@ -14061,7 +14061,6 @@
14061
14061
  exports.DOMKeyframesResolver = DOMKeyframesResolver;
14062
14062
  exports.DeprecatedLayoutGroupContext = DeprecatedLayoutGroupContext;
14063
14063
  exports.DragControls = DragControls;
14064
- exports.FlatTree = FlatTree;
14065
14064
  exports.GroupAnimation = GroupAnimation;
14066
14065
  exports.GroupAnimationWithThen = GroupAnimationWithThen;
14067
14066
  exports.JSAnimation = JSAnimation;