motion-v 1.0.0-beta.3 → 1.0.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.
- package/dist/cjs/index.js +3089 -3584
- package/dist/es/animation/hooks/animation-controls.mjs +1 -1
- package/dist/es/animation/hooks/use-animate.mjs +1 -1
- package/dist/es/components/animate-presence/use-pop-layout.mjs +2 -1
- package/dist/es/components/motion/use-motion-state.d.ts +706 -706
- package/dist/es/components/reorder/index.d.ts +2808 -2808
- package/dist/es/components/reorder/utils.d.ts +1 -1
- package/dist/es/components/reorder/utils.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/index.mjs +3 -2
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/sequence.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/single-value.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +247 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +102 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +281 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation → framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators}/drivers/driver-frameloop.mjs +3 -2
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation → framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators}/utils/can-animate.mjs +3 -3
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +108 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +32 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +14 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +22 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +10 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs → framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs} +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +6 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/keyframes.mjs +5 -5
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/spring/find.mjs +3 -3
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/spring/index.mjs +6 -15
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/utils/velocity.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +24 -16
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +6 -8
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/create.mjs +10 -10
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +4 -3
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/animation}/utils/is-none.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/stagger.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/cubic-bezier.mjs +2 -1
- package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/steps.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/utils/get-easing-for-segment.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/utils/map.mjs +4 -7
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +14 -8
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +25 -48
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/shared/stack.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/transform.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/VisualElement.mjs +19 -15
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/DOMKeyframesResolver.mjs +9 -9
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +7 -6
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +70 -0
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +3 -2
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/scroll/observe.mjs +3 -2
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +4 -3
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/utils/css-variables-conversion.mjs +3 -3
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/utils/unit-conversion.mjs +2 -2
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/animatable-none.mjs +3 -3
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/defaults.mjs +2 -2
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/dimensions.mjs +3 -3
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/find.mjs +9 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps/number.mjs → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs} +4 -13
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number.mjs +18 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/transform.mjs +2 -2
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/int.mjs → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs} +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +3 -3
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/render → framer-motion@12.5.0/external/framer-motion/dist/es/render/html}/utils/keys-transform.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/render/html}/utils/make-none-animatable.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +15 -2
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +8 -9
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/measure.mjs +15 -0
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/path.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +12 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/render/utils}/KeyframesResolver.mjs +28 -26
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/motion-values.mjs +4 -3
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/setters.mjs +3 -5
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/delay.mjs +5 -4
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/interpolate.mjs +6 -7
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/color.mjs +4 -4
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/complex.mjs +8 -7
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/offsets/fill.mjs +3 -2
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/resolve-value.mjs +11 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/transform.mjs +8 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/rgba.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/complex/index.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/numbers/index.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/numbers/units.mjs +3 -3
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +10 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +9 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/GroupAnimation.mjs → motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs} +15 -8
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/Group.mjs +9 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +2 -1
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +81 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +7 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +37 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +3 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/batcher.mjs +4 -6
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/frame.mjs +2 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/order.mjs +0 -4
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/sync-time.mjs +2 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +1 -1
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/press/index.mjs +74 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/utils/capture-pointer.mjs +12 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/utils/resolve-elements.mjs +2 -1
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/flags.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/memo.mjs +13 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +2 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/value/index.mjs +10 -12
- package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/array.mjs +13 -0
- package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/errors.mjs +3 -4
- package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/global-config.mjs +7 -0
- package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/warn-once.mjs +0 -6
- package/dist/es/features/animation/animation.mjs +4 -3
- package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +3 -2
- package/dist/es/features/gestures/drag/index.mjs +2 -1
- package/dist/es/features/gestures/focus/index.mjs +1 -1
- package/dist/es/features/gestures/hover/index.mjs +3 -2
- package/dist/es/features/gestures/in-view/index.mjs +3 -2
- package/dist/es/features/gestures/pan/PanSession.mjs +5 -4
- package/dist/es/features/gestures/pan/index.mjs +3 -2
- package/dist/es/features/gestures/press/index.mjs +3 -2
- package/dist/es/features/layout/config.mjs +2 -2
- package/dist/es/features/layout/layout.mjs +2 -2
- package/dist/es/features/layout/projection.mjs +2 -2
- package/dist/es/index.mjs +36 -243
- package/dist/es/state/animate-variants-children.d.ts +15 -0
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +6 -2
- package/dist/es/state/utils.d.ts +2 -2
- package/dist/es/types/index.d.ts +1 -0
- package/dist/es/types/transform.d.ts +23 -0
- package/dist/es/utils/index.d.ts +1 -0
- package/dist/es/utils/time-conversion.mjs +8 -0
- package/dist/es/utils/use-animation-frame.mjs +2 -1
- package/dist/es/utils/use-in-view.mjs +1 -1
- package/dist/es/value/use-combine-values.mjs +3 -2
- package/dist/es/value/use-computed.mjs +2 -1
- package/dist/es/value/use-scroll.d.ts +4 -4
- package/dist/es/value/use-scroll.mjs +3 -2
- package/dist/es/value/use-spring.mjs +7 -6
- package/dist/es/value/use-time.d.ts +1 -1
- package/dist/es/value/use-time.mjs +2 -1
- package/dist/es/value/use-transform.d.ts +2 -1
- package/dist/es/value/use-transform.mjs +1 -1
- package/dist/es/value/use-velocity.mjs +3 -2
- package/package.json +4 -3
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +0 -73
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +0 -13
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs +0 -17
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/attach-function.mjs +0 -18
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +0 -9
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/utils/get-timeline.mjs +0 -27
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -15
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -7
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +0 -133
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs +0 -10
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/JSAnimation.mjs +0 -261
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimation.mjs +0 -150
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +0 -44
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs +0 -14
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/get-final.mjs +0 -10
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs +0 -11
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs +0 -8
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/WithPromise.mjs +0 -29
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/active-animations.mjs +0 -11
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +0 -18
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +0 -4
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +0 -21
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/supported.mjs +0 -15
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs +0 -36
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +0 -26
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs +0 -14
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/px-values.mjs +0 -40
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +0 -19
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/effects/style-effect.mjs +0 -30
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/index-legacy.mjs +0 -11
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/gestures/drag/state/set-active.mjs +0 -25
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/gestures/press/index.mjs +0 -53
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/is-css-var.mjs +0 -4
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/style-computed.mjs +0 -8
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/style-set.mjs +0 -7
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/stats/animation-count.mjs +0 -8
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/stats/index.mjs +0 -114
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -4
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/memo.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/map-value.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/subscribe-value.mjs +0 -13
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/transform-value.mjs +0 -14
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/find.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/index.mjs +0 -65
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/queue.mjs +0 -45
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/start.mjs +0 -115
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/choose-layer-type.mjs +0 -12
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/css.mjs +0 -35
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/get-layer-name.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/get-view-animations.mjs +0 -13
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/has-target.mjs +0 -6
- package/dist/es/external/.pnpm/motion-utils@12.8.3/external/motion-utils/dist/es/array.mjs +0 -23
- package/dist/es/external/.pnpm/motion-utils@12.8.3/external/motion-utils/dist/es/global-config.mjs +0 -4
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi → framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators}/utils/accelerated-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/inertia.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/spring/defaults.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/utils/is-animatable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/anticipate.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/back.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/circ.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/ease.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/modifiers/mirror.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/modifiers/reverse.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/utils/is-easing-array.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/utils/is-css-variable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/get-as-type.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/test.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/auto.mjs → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs} +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/render → framer-motion@12.5.0/external/framer-motion/dist/es/render/html}/utils/keys-position.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/render/dom → framer-motion@12.5.0/external/framer-motion/dist/es/render/html/utils}/parse-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/clamp.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/color → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/hsla-to-rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/is-numerical-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/is-zero-value-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/immediate.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/offsets/default.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/offsets/time.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/pipe.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/wrap.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/hex.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/hsla.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/complex/filter.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/float-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/is-nullish.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/sanitize.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/single-color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/microtask.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/render-step.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/hover.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/stats/buffer.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es/easing → motion-dom@12.5.0/external/motion-dom/dist/es}/utils/is-bezier-definition.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/memo.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/noop.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/progress.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/subscription-manager.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/velocity-per-second.mjs +0 -0
|
@@ -2,7 +2,7 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
|
|
|
2
2
|
let transform = "";
|
|
3
3
|
const xTranslate = delta.x.translate / treeScale.x;
|
|
4
4
|
const yTranslate = delta.y.translate / treeScale.y;
|
|
5
|
-
const zTranslate = (latestTransform
|
|
5
|
+
const zTranslate = (latestTransform === null || latestTransform === void 0 ? void 0 : latestTransform.z) || 0;
|
|
6
6
|
if (xTranslate || yTranslate || zTranslate) {
|
|
7
7
|
transform = `translate3d(${xTranslate}px, ${yTranslate}px, ${zTranslate}px) `;
|
|
8
8
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
+
import "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { SubscriptionManager } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/subscription-manager.mjs";
|
|
3
|
+
import { warnOnce } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/warn-once.mjs";
|
|
4
|
+
import { frame, cancelFrame } from "../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
5
|
+
import { time } from "../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/sync-time.mjs";
|
|
6
|
+
import { motionValue } from "../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/value/index.mjs";
|
|
1
7
|
import { featureDefinitions } from "../motion/features/definitions.mjs";
|
|
2
8
|
import { createBox } from "../projection/geometry/models.mjs";
|
|
9
|
+
import { isNumericalString } from "../utils/is-numerical-string.mjs";
|
|
10
|
+
import { isZeroValueString } from "../utils/is-zero-value-string.mjs";
|
|
3
11
|
import { initPrefersReducedMotion } from "../utils/reduced-motion/index.mjs";
|
|
4
12
|
import { hasReducedMotionListener, prefersReducedMotion } from "../utils/reduced-motion/state.mjs";
|
|
13
|
+
import { complex } from "../value/types/complex/index.mjs";
|
|
5
14
|
import { isMotionValue } from "../value/utils/is-motion-value.mjs";
|
|
15
|
+
import { getAnimatableNone } from "./dom/value-types/animatable-none.mjs";
|
|
16
|
+
import { findValueType } from "./dom/value-types/find.mjs";
|
|
17
|
+
import { transformProps } from "./html/utils/keys-transform.mjs";
|
|
6
18
|
import { visualElementStore } from "./store.mjs";
|
|
7
19
|
import { isControllingVariants, isVariantNode } from "./utils/is-controlling-variants.mjs";
|
|
20
|
+
import { KeyframeResolver } from "./utils/KeyframesResolver.mjs";
|
|
8
21
|
import { updateMotionValuesFromProps } from "./utils/motion-values.mjs";
|
|
9
22
|
import { resolveVariantFromProps } from "./utils/resolve-variants.mjs";
|
|
10
|
-
import { KeyframeResolver } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs";
|
|
11
|
-
import { time } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/sync-time.mjs";
|
|
12
|
-
import { frame, cancelFrame } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
13
|
-
import { warnOnce } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/warn-once.mjs";
|
|
14
|
-
import { transformProps } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
|
|
15
|
-
import { motionValue } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/index.mjs";
|
|
16
|
-
import { isNumericalString } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/is-numerical-string.mjs";
|
|
17
|
-
import { isZeroValueString } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/is-zero-value-string.mjs";
|
|
18
|
-
import { findValueType } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/find.mjs";
|
|
19
|
-
import { complex } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/complex/index.mjs";
|
|
20
|
-
import { getAnimatableNone } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/animatable-none.mjs";
|
|
21
|
-
import { SubscriptionManager } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/subscription-manager.mjs";
|
|
22
23
|
const propEventHandlers = [
|
|
23
24
|
"AnimationStart",
|
|
24
25
|
"AnimationComplete",
|
|
@@ -67,7 +68,8 @@ class VisualElement {
|
|
|
67
68
|
frame.render(this.render, false, true);
|
|
68
69
|
}
|
|
69
70
|
};
|
|
70
|
-
const { latestValues, renderState } = visualState;
|
|
71
|
+
const { latestValues, renderState, onUpdate } = visualState;
|
|
72
|
+
this.onUpdate = onUpdate;
|
|
71
73
|
this.latestValues = latestValues;
|
|
72
74
|
this.baseTarget = { ...latestValues };
|
|
73
75
|
this.initialValues = props.initial ? { ...latestValues } : {};
|
|
@@ -235,6 +237,7 @@ class VisualElement {
|
|
|
235
237
|
if (this.handleChildMotionValue) {
|
|
236
238
|
this.handleChildMotionValue();
|
|
237
239
|
}
|
|
240
|
+
this.onUpdate && this.onUpdate(this);
|
|
238
241
|
}
|
|
239
242
|
getProps() {
|
|
240
243
|
return this.props;
|
|
@@ -316,7 +319,8 @@ class VisualElement {
|
|
|
316
319
|
* directly from the instance (which might have performance implications).
|
|
317
320
|
*/
|
|
318
321
|
readValue(key, target) {
|
|
319
|
-
|
|
322
|
+
var _a;
|
|
323
|
+
let value = this.latestValues[key] !== void 0 || !this.current ? this.latestValues[key] : (_a = this.getBaseTargetFromProps(this.props, key)) !== null && _a !== void 0 ? _a : this.readValueFromInstance(this.current, key, this.options);
|
|
320
324
|
if (value !== void 0 && value !== null) {
|
|
321
325
|
if (typeof value === "string" && (isNumericalString(value) || isZeroValueString(value))) {
|
|
322
326
|
value = parseFloat(value);
|
|
@@ -343,7 +347,7 @@ class VisualElement {
|
|
|
343
347
|
const { initial } = this.props;
|
|
344
348
|
let valueFromInitial;
|
|
345
349
|
if (typeof initial === "string" || typeof initial === "object") {
|
|
346
|
-
const variant = resolveVariantFromProps(this.props, initial, (_a = this.presenceContext)
|
|
350
|
+
const variant = resolveVariantFromProps(this.props, initial, (_a = this.presenceContext) === null || _a === void 0 ? void 0 : _a.custom);
|
|
347
351
|
if (variant) {
|
|
348
352
|
valueFromInitial = variant[key];
|
|
349
353
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { makeNoneKeyframesAnimatable } from "./utils/make-none-animatable.mjs";
|
|
1
|
+
import { isNone } from "../../animation/utils/is-none.mjs";
|
|
2
|
+
import { positionalKeys } from "../html/utils/keys-position.mjs";
|
|
3
|
+
import { makeNoneKeyframesAnimatable } from "../html/utils/make-none-animatable.mjs";
|
|
4
|
+
import { KeyframeResolver } from "../utils/KeyframesResolver.mjs";
|
|
5
|
+
import { getVariableValue } from "./utils/css-variables-conversion.mjs";
|
|
6
|
+
import { isCSSVariableToken } from "./utils/is-css-variable.mjs";
|
|
8
7
|
import { isNumOrPxType, positionalValues } from "./utils/unit-conversion.mjs";
|
|
8
|
+
import { findDimensionValueType } from "./value-types/dimensions.mjs";
|
|
9
9
|
class DOMKeyframesResolver extends KeyframeResolver {
|
|
10
10
|
constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {
|
|
11
11
|
super(unresolvedKeyframes, onComplete, name, motionValue, element, true);
|
|
@@ -54,7 +54,7 @@ class DOMKeyframesResolver extends KeyframeResolver {
|
|
|
54
54
|
const { unresolvedKeyframes, name } = this;
|
|
55
55
|
const noneKeyframeIndexes = [];
|
|
56
56
|
for (let i = 0; i < unresolvedKeyframes.length; i++) {
|
|
57
|
-
if (
|
|
57
|
+
if (isNone(unresolvedKeyframes[i])) {
|
|
58
58
|
noneKeyframeIndexes.push(i);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -89,7 +89,7 @@ class DOMKeyframesResolver extends KeyframeResolver {
|
|
|
89
89
|
if (finalKeyframe !== null && this.finalKeyframe === void 0) {
|
|
90
90
|
this.finalKeyframe = finalKeyframe;
|
|
91
91
|
}
|
|
92
|
-
if ((_a = this.removedTransforms)
|
|
92
|
+
if ((_a = this.removedTransforms) === null || _a === void 0 ? void 0 : _a.length) {
|
|
93
93
|
this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {
|
|
94
94
|
element.getValue(unsetTransformName).set(unsetTransformValue);
|
|
95
95
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isMotionValue } from "../../value/utils/is-motion-value.mjs";
|
|
2
2
|
import { VisualElement } from "../VisualElement.mjs";
|
|
3
|
-
import { DOMKeyframesResolver } from "
|
|
3
|
+
import { DOMKeyframesResolver } from "./DOMKeyframesResolver.mjs";
|
|
4
4
|
class DOMVisualElement extends VisualElement {
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { resolveElements } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
2
3
|
const resizeHandlers = /* @__PURE__ */ new WeakMap();
|
|
3
4
|
let observer;
|
|
4
5
|
function getElementSize(target, borderBoxSize) {
|
|
@@ -16,7 +17,7 @@ function getElementSize(target, borderBoxSize) {
|
|
|
16
17
|
}
|
|
17
18
|
function notifyTarget({ target, contentRect, borderBoxSize }) {
|
|
18
19
|
var _a;
|
|
19
|
-
(_a = resizeHandlers.get(target))
|
|
20
|
+
(_a = resizeHandlers.get(target)) === null || _a === void 0 ? void 0 : _a.forEach((handler) => {
|
|
20
21
|
handler({
|
|
21
22
|
target,
|
|
22
23
|
contentSize: contentRect,
|
|
@@ -45,14 +46,14 @@ function resizeElement(target, handler) {
|
|
|
45
46
|
resizeHandlers.set(element, elementHandlers);
|
|
46
47
|
}
|
|
47
48
|
elementHandlers.add(handler);
|
|
48
|
-
observer
|
|
49
|
+
observer === null || observer === void 0 ? void 0 : observer.observe(element);
|
|
49
50
|
});
|
|
50
51
|
return () => {
|
|
51
52
|
elements.forEach((element) => {
|
|
52
53
|
const elementHandlers = resizeHandlers.get(element);
|
|
53
|
-
elementHandlers
|
|
54
|
-
if (!(elementHandlers
|
|
55
|
-
observer
|
|
54
|
+
elementHandlers === null || elementHandlers === void 0 ? void 0 : elementHandlers.delete(handler);
|
|
55
|
+
if (!(elementHandlers === null || elementHandlers === void 0 ? void 0 : elementHandlers.size)) {
|
|
56
|
+
observer === null || observer === void 0 ? void 0 : observer.unobserve(element);
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
59
|
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { supportsScrollTimeline } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs";
|
|
2
|
+
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { noop } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
|
|
4
|
+
import { observeTimeline } from "./observe.mjs";
|
|
5
|
+
import { scrollInfo } from "./track.mjs";
|
|
6
|
+
function scrollTimelineFallback({ source, container, axis = "y" }) {
|
|
7
|
+
if (source)
|
|
8
|
+
container = source;
|
|
9
|
+
const currentTime = { value: 0 };
|
|
10
|
+
const cancel = scrollInfo((info) => {
|
|
11
|
+
currentTime.value = info[axis].progress * 100;
|
|
12
|
+
}, { container, axis });
|
|
13
|
+
return { currentTime, cancel };
|
|
14
|
+
}
|
|
15
|
+
const timelineCache = /* @__PURE__ */ new Map();
|
|
16
|
+
function getTimeline({ source, container = document.documentElement, axis = "y" } = {}) {
|
|
17
|
+
if (source)
|
|
18
|
+
container = source;
|
|
19
|
+
if (!timelineCache.has(container)) {
|
|
20
|
+
timelineCache.set(container, {});
|
|
21
|
+
}
|
|
22
|
+
const elementCache = timelineCache.get(container);
|
|
23
|
+
if (!elementCache[axis]) {
|
|
24
|
+
elementCache[axis] = supportsScrollTimeline() ? new ScrollTimeline({ source: container, axis }) : scrollTimelineFallback({ source: container, axis });
|
|
25
|
+
}
|
|
26
|
+
return elementCache[axis];
|
|
27
|
+
}
|
|
28
|
+
function isOnScrollWithInfo(onScroll) {
|
|
29
|
+
return onScroll.length === 2;
|
|
30
|
+
}
|
|
31
|
+
function needsElementTracking(options) {
|
|
32
|
+
return options && (options.target || options.offset);
|
|
33
|
+
}
|
|
34
|
+
function scrollFunction(onScroll, options) {
|
|
35
|
+
if (isOnScrollWithInfo(onScroll) || needsElementTracking(options)) {
|
|
36
|
+
return scrollInfo((info) => {
|
|
37
|
+
onScroll(info[options.axis].progress, info);
|
|
38
|
+
}, options);
|
|
39
|
+
} else {
|
|
40
|
+
return observeTimeline(onScroll, getTimeline(options));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function scrollAnimation(animation, options) {
|
|
44
|
+
animation.flatten();
|
|
45
|
+
if (needsElementTracking(options)) {
|
|
46
|
+
animation.pause();
|
|
47
|
+
return scrollInfo((info) => {
|
|
48
|
+
animation.time = animation.duration * info[options.axis].progress;
|
|
49
|
+
}, options);
|
|
50
|
+
} else {
|
|
51
|
+
const timeline = getTimeline(options);
|
|
52
|
+
if (animation.attachTimeline) {
|
|
53
|
+
return animation.attachTimeline(timeline, (valueAnimation) => {
|
|
54
|
+
valueAnimation.pause();
|
|
55
|
+
return observeTimeline((progress) => {
|
|
56
|
+
valueAnimation.time = valueAnimation.duration * progress;
|
|
57
|
+
}, timeline);
|
|
58
|
+
});
|
|
59
|
+
} else {
|
|
60
|
+
return noop;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function scroll(onScroll, { axis = "y", ...options } = {}) {
|
|
65
|
+
const optionsWithDefaults = { axis, ...options };
|
|
66
|
+
return typeof onScroll === "function" ? scrollFunction(onScroll, optionsWithDefaults) : scrollAnimation(onScroll, optionsWithDefaults);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
scroll
|
|
70
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { progress } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/progress.mjs";
|
|
3
|
+
import { velocityPerSecond } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/velocity-per-second.mjs";
|
|
3
4
|
const maxElapsed = 50;
|
|
4
5
|
const createAxisInfo = () => ({
|
|
5
6
|
current: 0,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { frame, cancelFrame } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
2
3
|
function observeTimeline(update, timeline) {
|
|
3
4
|
let prevProgress;
|
|
4
5
|
const onFrame = () => {
|
|
@@ -10,7 +11,7 @@ function observeTimeline(update, timeline) {
|
|
|
10
11
|
}
|
|
11
12
|
prevProgress = progress;
|
|
12
13
|
};
|
|
13
|
-
frame.
|
|
14
|
+
frame.update(onFrame, true);
|
|
14
15
|
return () => cancelFrame(onFrame);
|
|
15
16
|
}
|
|
16
17
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { clamp } from "../../../../utils/clamp.mjs";
|
|
2
|
+
import { interpolate } from "../../../../utils/interpolate.mjs";
|
|
3
|
+
import { defaultOffset } from "../../../../utils/offsets/default.mjs";
|
|
1
4
|
import { calcInset } from "./inset.mjs";
|
|
2
5
|
import { resolveOffset } from "./offset.mjs";
|
|
3
6
|
import { ScrollOffset } from "./presets.mjs";
|
|
4
|
-
import { interpolate } from "../../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/utils/interpolate.mjs";
|
|
5
|
-
import { defaultOffset } from "../../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/offsets/default.mjs";
|
|
6
|
-
import { clamp } from "../../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/clamp.mjs";
|
|
7
7
|
const point = { x: 0, y: 0 };
|
|
8
8
|
function getTargetSize(target) {
|
|
9
9
|
return "getBBox" in target && target.tagName !== "svg" ? target.getBBox() : { width: target.clientWidth, height: target.clientHeight };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { warnOnce } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/warn-once.mjs";
|
|
1
3
|
import { updateScrollInfo } from "./info.mjs";
|
|
2
4
|
import { resolveOffsets } from "./offsets/index.mjs";
|
|
3
|
-
import { warnOnce } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/warn-once.mjs";
|
|
4
5
|
function measure(container, target = container, info) {
|
|
5
6
|
info.x.targetOffset = 0;
|
|
6
7
|
info.y.targetOffset = 0;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { frame, cancelFrame, frameData } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
1
3
|
import { resize } from "../resize/index.mjs";
|
|
2
4
|
import { createScrollInfo } from "./info.mjs";
|
|
3
5
|
import { createOnScrollHandler } from "./on-scroll-handler.mjs";
|
|
4
|
-
import { frame, cancelFrame, frameData } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
5
6
|
const scrollListeners = /* @__PURE__ */ new WeakMap();
|
|
6
7
|
const resizeListeners = /* @__PURE__ */ new WeakMap();
|
|
7
8
|
const onScrollHandlers = /* @__PURE__ */ new WeakMap();
|
|
@@ -32,7 +33,7 @@ function scrollInfo(onScroll, { container = document.documentElement, ...options
|
|
|
32
33
|
const listener2 = () => {
|
|
33
34
|
frame.read(measureAll, false, true);
|
|
34
35
|
frame.read(updateAll, false, true);
|
|
35
|
-
frame.
|
|
36
|
+
frame.update(notifyAll, false, true);
|
|
36
37
|
};
|
|
37
38
|
scrollListeners.set(container, listener2);
|
|
38
39
|
const target = getEventTarget(container);
|
|
@@ -57,7 +58,7 @@ function scrollInfo(onScroll, { container = document.documentElement, ...options
|
|
|
57
58
|
scrollListeners.delete(container);
|
|
58
59
|
if (scrollListener) {
|
|
59
60
|
getEventTarget(container).removeEventListener("scroll", scrollListener);
|
|
60
|
-
(_a = resizeListeners.get(container))
|
|
61
|
+
(_a = resizeListeners.get(container)) === null || _a === void 0 ? void 0 : _a();
|
|
61
62
|
window.removeEventListener("resize", scrollListener);
|
|
62
63
|
}
|
|
63
64
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { invariant } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { isNumericalString } from "../../../utils/is-numerical-string.mjs";
|
|
1
3
|
import { isCSSVariableToken } from "./is-css-variable.mjs";
|
|
2
|
-
import { invariant } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
-
import { isNumericalString } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/is-numerical-string.mjs";
|
|
4
4
|
const splitCSSVariableRegex = (
|
|
5
5
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
6
6
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
@@ -10,7 +10,7 @@ function parseCSSVariable(current) {
|
|
|
10
10
|
if (!match)
|
|
11
11
|
return [,];
|
|
12
12
|
const [, token1, token2, fallback] = match;
|
|
13
|
-
return [`--${token1
|
|
13
|
+
return [`--${token1 !== null && token1 !== void 0 ? token1 : token2}`, fallback];
|
|
14
14
|
}
|
|
15
15
|
const maxDepth = 4;
|
|
16
16
|
function getVariableValue(current, element, depth = 1) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { parseValueFromTransform } from "../../../render/dom/parse-transform.mjs";
|
|
2
|
-
import { transformPropOrder } from "../../../render/utils/keys-transform.mjs";
|
|
3
1
|
import { number } from "../../../value/types/numbers/index.mjs";
|
|
4
2
|
import { px } from "../../../value/types/numbers/units.mjs";
|
|
3
|
+
import { transformPropOrder } from "../../html/utils/keys-transform.mjs";
|
|
4
|
+
import { parseValueFromTransform } from "../../html/utils/parse-transform.mjs";
|
|
5
5
|
const isNumOrPxType = (v) => v === number || v === px;
|
|
6
6
|
const transformKeys = /* @__PURE__ */ new Set(["x", "y", "z"]);
|
|
7
7
|
const nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { complex } from "
|
|
2
|
-
import { filter } from "
|
|
3
|
-
import { getDefaultValueType } from "
|
|
1
|
+
import { complex } from "../../../value/types/complex/index.mjs";
|
|
2
|
+
import { filter } from "../../../value/types/complex/filter.mjs";
|
|
3
|
+
import { getDefaultValueType } from "./defaults.mjs";
|
|
4
4
|
function getAnimatableNone(key, value) {
|
|
5
5
|
let defaultValueType = getDefaultValueType(key);
|
|
6
6
|
if (defaultValueType !== filter)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { color } from "
|
|
2
|
-
import { filter } from "
|
|
1
|
+
import { color } from "../../../value/types/color/index.mjs";
|
|
2
|
+
import { filter } from "../../../value/types/complex/filter.mjs";
|
|
3
3
|
import { numberValueTypes } from "./number.mjs";
|
|
4
4
|
const defaultValueTypes = {
|
|
5
5
|
...numberValueTypes,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { px, percent, degrees, vw, vh } from "./numbers/units.mjs";
|
|
1
|
+
import { number } from "../../../value/types/numbers/index.mjs";
|
|
2
|
+
import { px, percent, degrees, vw, vh } from "../../../value/types/numbers/units.mjs";
|
|
4
3
|
import { testValueType } from "./test.mjs";
|
|
4
|
+
import { auto } from "./type-auto.mjs";
|
|
5
5
|
const dimensionValueTypes = [number, px, percent, degrees, vw, vh, auto];
|
|
6
6
|
const findDimensionValueType = (v) => dimensionValueTypes.find(testValueType(v));
|
|
7
7
|
export {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { color } from "../../../value/types/color/index.mjs";
|
|
2
|
+
import { complex } from "../../../value/types/complex/index.mjs";
|
|
3
|
+
import { dimensionValueTypes } from "./dimensions.mjs";
|
|
4
|
+
import { testValueType } from "./test.mjs";
|
|
5
|
+
const valueTypes = [...dimensionValueTypes, color, complex];
|
|
6
|
+
const findValueType = (v) => valueTypes.find(testValueType(v));
|
|
7
|
+
export {
|
|
8
|
+
findValueType
|
|
9
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { px } from "../numbers/units.mjs";
|
|
4
|
-
import { transformValueTypes } from "./transform.mjs";
|
|
5
|
-
const numberValueTypes = {
|
|
1
|
+
import { px } from "../../../value/types/numbers/units.mjs";
|
|
2
|
+
const browserNumberValueTypes = {
|
|
6
3
|
// Border props
|
|
7
4
|
borderWidth: px,
|
|
8
5
|
borderTopWidth: px,
|
|
@@ -37,14 +34,8 @@ const numberValueTypes = {
|
|
|
37
34
|
marginLeft: px,
|
|
38
35
|
// Misc
|
|
39
36
|
backgroundPositionX: px,
|
|
40
|
-
backgroundPositionY: px
|
|
41
|
-
...transformValueTypes,
|
|
42
|
-
zIndex: int,
|
|
43
|
-
// SVG
|
|
44
|
-
fillOpacity: alpha,
|
|
45
|
-
strokeOpacity: alpha,
|
|
46
|
-
numOctaves: int
|
|
37
|
+
backgroundPositionY: px
|
|
47
38
|
};
|
|
48
39
|
export {
|
|
49
|
-
|
|
40
|
+
browserNumberValueTypes
|
|
50
41
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { alpha } from "../../../value/types/numbers/index.mjs";
|
|
2
|
+
import { px } from "../../../value/types/numbers/units.mjs";
|
|
3
|
+
import { browserNumberValueTypes } from "./number-browser.mjs";
|
|
4
|
+
import { transformValueTypes } from "./transform.mjs";
|
|
5
|
+
import { int } from "./type-int.mjs";
|
|
6
|
+
const numberValueTypes = {
|
|
7
|
+
...browserNumberValueTypes,
|
|
8
|
+
...transformValueTypes,
|
|
9
|
+
zIndex: int,
|
|
10
|
+
size: px,
|
|
11
|
+
// SVG
|
|
12
|
+
fillOpacity: alpha,
|
|
13
|
+
strokeOpacity: alpha,
|
|
14
|
+
numOctaves: int
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
numberValueTypes
|
|
18
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { scale, alpha } from "
|
|
2
|
-
import { degrees, px, progressPercentage } from "
|
|
1
|
+
import { scale, alpha } from "../../../value/types/numbers/index.mjs";
|
|
2
|
+
import { degrees, px, progressPercentage } from "../../../value/types/numbers/units.mjs";
|
|
3
3
|
const transformValueTypes = {
|
|
4
4
|
rotate: degrees,
|
|
5
5
|
rotateX: degrees,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { resolveElements } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
2
3
|
const thresholds = {
|
|
3
4
|
some: 0,
|
|
4
5
|
all: 1
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { measureViewportBox } from "../../projection/utils/measure.mjs";
|
|
2
2
|
import { DOMVisualElement } from "../dom/DOMVisualElement.mjs";
|
|
3
|
+
import { isCSSVariableName } from "../dom/utils/is-css-variable.mjs";
|
|
3
4
|
import { buildHTMLStyles } from "./utils/build-styles.mjs";
|
|
5
|
+
import { transformProps } from "./utils/keys-transform.mjs";
|
|
6
|
+
import { readTransformValue } from "./utils/parse-transform.mjs";
|
|
4
7
|
import { renderHTML } from "./utils/render.mjs";
|
|
5
8
|
import { scrapeMotionValuesFromProps } from "./utils/scrape-motion-values.mjs";
|
|
6
|
-
import { transformProps } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
|
|
7
|
-
import { readTransformValue } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/parse-transform.mjs";
|
|
8
|
-
import { isCSSVariableName } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/is-css-variable.mjs";
|
|
9
9
|
function getComputedStyle(element) {
|
|
10
10
|
return window.getComputedStyle(element);
|
|
11
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isCSSVariableName } from "../../dom/utils/is-css-variable.mjs";
|
|
2
|
+
import { getValueAsType } from "../../dom/value-types/get-as-type.mjs";
|
|
3
|
+
import { numberValueTypes } from "../../dom/value-types/number.mjs";
|
|
1
4
|
import { buildTransform } from "./build-transform.mjs";
|
|
2
|
-
import { transformProps } from "
|
|
3
|
-
import { isCSSVariableName } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/is-css-variable.mjs";
|
|
4
|
-
import { getValueAsType } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/get-as-type.mjs";
|
|
5
|
-
import { numberValueTypes } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps/number.mjs";
|
|
5
|
+
import { transformProps } from "./keys-transform.mjs";
|
|
6
6
|
function buildHTMLStyles(state, latestValues, transformTemplate) {
|
|
7
7
|
const { style, vars, transformOrigin } = state;
|
|
8
8
|
let hasTransform = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { getValueAsType } from "../../dom/value-types/get-as-type.mjs";
|
|
2
|
+
import { numberValueTypes } from "../../dom/value-types/number.mjs";
|
|
3
|
+
import { transformPropOrder } from "./keys-transform.mjs";
|
|
4
4
|
const translateAlias = {
|
|
5
5
|
x: "translateX",
|
|
6
6
|
y: "translateY",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { analyseComplexValue } from "../../../value/types/complex/index.mjs";
|
|
2
|
-
import { getAnimatableNone } from "
|
|
2
|
+
import { getAnimatableNone } from "../../dom/value-types/animatable-none.mjs";
|
|
3
3
|
const invalidTemplates = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
4
4
|
function makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name) {
|
|
5
5
|
let i = 0;
|
|
@@ -5,7 +5,7 @@ function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
|
|
|
5
5
|
const { style } = props;
|
|
6
6
|
const newValues = {};
|
|
7
7
|
for (const key in style) {
|
|
8
|
-
if (isMotionValue(style[key]) || prevProps.style && isMotionValue(prevProps.style[key]) || isForcedMotionValue(key, props) || ((_a = visualElement
|
|
8
|
+
if (isMotionValue(style[key]) || prevProps.style && isMotionValue(prevProps.style[key]) || isForcedMotionValue(key, props) || ((_a = visualElement === null || visualElement === void 0 ? void 0 : visualElement.getValue(key)) === null || _a === void 0 ? void 0 : _a.liveStyle) !== void 0) {
|
|
9
9
|
newValues[key] = style[key];
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
|
+
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { frame } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
1
3
|
import { createBox } from "../../projection/geometry/models.mjs";
|
|
2
4
|
import { DOMVisualElement } from "../dom/DOMVisualElement.mjs";
|
|
3
5
|
import { camelToDash } from "../dom/utils/camel-to-dash.mjs";
|
|
6
|
+
import { getDefaultValueType } from "../dom/value-types/defaults.mjs";
|
|
7
|
+
import { transformProps } from "../html/utils/keys-transform.mjs";
|
|
4
8
|
import { buildSVGAttrs } from "./utils/build-attrs.mjs";
|
|
5
9
|
import { camelCaseAttributes } from "./utils/camel-case-attrs.mjs";
|
|
6
10
|
import { isSVGTag } from "./utils/is-svg-tag.mjs";
|
|
11
|
+
import { updateSVGDimensions } from "./utils/measure.mjs";
|
|
7
12
|
import { renderSVG } from "./utils/render.mjs";
|
|
8
13
|
import { scrapeMotionValuesFromProps } from "./utils/scrape-motion-values.mjs";
|
|
9
|
-
import { transformProps } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
|
|
10
|
-
import { getDefaultValueType } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps/defaults.mjs";
|
|
11
14
|
class SVGVisualElement extends DOMVisualElement {
|
|
12
15
|
constructor() {
|
|
13
16
|
super(...arguments);
|
|
14
17
|
this.type = "svg";
|
|
15
18
|
this.isSVGTag = false;
|
|
16
19
|
this.measureInstanceViewportBox = createBox;
|
|
20
|
+
this.updateDimensions = () => {
|
|
21
|
+
if (this.current && !this.renderState.dimensions) {
|
|
22
|
+
updateSVGDimensions(this.current, this.renderState);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
17
25
|
}
|
|
18
26
|
getBaseTargetFromProps(props, key) {
|
|
19
27
|
return props[key];
|
|
@@ -29,6 +37,11 @@ class SVGVisualElement extends DOMVisualElement {
|
|
|
29
37
|
scrapeMotionValuesFromProps(props, prevProps, visualElement) {
|
|
30
38
|
return scrapeMotionValuesFromProps(props, prevProps, visualElement);
|
|
31
39
|
}
|
|
40
|
+
onBindTransform() {
|
|
41
|
+
if (this.current && !this.renderState.dimensions) {
|
|
42
|
+
frame.postRender(this.updateDimensions);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
32
45
|
build(renderState, latestValues, props) {
|
|
33
46
|
buildSVGAttrs(renderState, latestValues, this.isSVGTag, props.transformTemplate);
|
|
34
47
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { buildHTMLStyles } from "../../html/utils/build-styles.mjs";
|
|
2
2
|
import { buildSVGPath } from "./path.mjs";
|
|
3
|
+
import { calcSVGTransformOrigin } from "./transform-origin.mjs";
|
|
3
4
|
function buildSVGAttrs(state, {
|
|
4
5
|
attrX,
|
|
5
6
|
attrY,
|
|
6
7
|
attrScale,
|
|
8
|
+
originX,
|
|
9
|
+
originY,
|
|
7
10
|
pathLength,
|
|
8
11
|
pathSpacing = 1,
|
|
9
12
|
pathOffset = 0,
|
|
@@ -19,18 +22,14 @@ function buildSVGAttrs(state, {
|
|
|
19
22
|
}
|
|
20
23
|
state.attrs = state.style;
|
|
21
24
|
state.style = {};
|
|
22
|
-
const { attrs, style } = state;
|
|
25
|
+
const { attrs, style, dimensions } = state;
|
|
23
26
|
if (attrs.transform) {
|
|
24
|
-
|
|
27
|
+
if (dimensions)
|
|
28
|
+
style.transform = attrs.transform;
|
|
25
29
|
delete attrs.transform;
|
|
26
30
|
}
|
|
27
|
-
if (
|
|
28
|
-
style.transformOrigin =
|
|
29
|
-
delete attrs.transformOrigin;
|
|
30
|
-
}
|
|
31
|
-
if (style.transform) {
|
|
32
|
-
style.transformBox = "fill-box";
|
|
33
|
-
delete attrs.transformBox;
|
|
31
|
+
if (dimensions && (originX !== void 0 || originY !== void 0 || style.transform)) {
|
|
32
|
+
style.transformOrigin = calcSVGTransformOrigin(dimensions, originX !== void 0 ? originX : 0.5, originY !== void 0 ? originY : 0.5);
|
|
34
33
|
}
|
|
35
34
|
if (attrX !== void 0)
|
|
36
35
|
attrs.x = attrX;
|