motion-v 1.0.2 → 1.1.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.
- package/dist/cjs/index.js +3844 -3225
- 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 +1 -2
- package/dist/es/components/motion/use-motion-state.d.ts +702 -702
- package/dist/es/components/motion/use-motion-state.mjs +10 -2
- 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 +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/index.mjs +2 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/sequence.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/single-value.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +73 -0
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +13 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +17 -24
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +8 -6
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/create.mjs +10 -10
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +3 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/stagger.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +8 -14
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +61 -35
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/shared/stack.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/transform.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/VisualElement.mjs +15 -19
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +6 -7
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs +17 -0
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/attach-function.mjs +18 -0
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/index.mjs +12 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +2 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +6 -6
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/utils/get-timeline.mjs +27 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +3 -16
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +10 -9
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/path.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/motion-values.mjs +1 -6
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/setters.mjs +5 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/delay.mjs +4 -5
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +15 -0
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +7 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +138 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/animation/GroupAnimation.mjs} +8 -15
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs +10 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/JSAnimation.mjs +267 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimation.mjs +150 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +44 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs +14 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/animation/drivers/frame.mjs} +3 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/keyframes.mjs +5 -5
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/spring/find.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/spring/index.mjs +15 -6
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +6 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/utils/velocity.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/DOMKeyframesResolver.mjs +10 -10
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/KeyframesResolver.mjs +32 -35
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/get-final.mjs +10 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/offsets/fill.mjs +2 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs +11 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs +8 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/utils/is-none.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/utils/make-none-animatable.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/utils/unit-conversion.mjs +2 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/WithPromise.mjs +29 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/active-animations.mjs +11 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.10.4/external/motion-dom/dist/es/animation}/utils/can-animate.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation}/utils/css-variables-conversion.mjs +3 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +18 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +21 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/supported.mjs +15 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs +36 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs} +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +26 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs +14 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +1 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/utils/px-values.mjs +40 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +19 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/effects/MotionValueState.mjs +42 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/effects/style/index.mjs +49 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/effects/style/transform.mjs +33 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/batcher.mjs +6 -4
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/frame.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/index-legacy.mjs +11 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/order.mjs +4 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/sync-time.mjs +1 -2
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +1 -1
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/gestures/drag/state/set-active.mjs +25 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/gestures/press/index.mjs +55 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/is-css-var.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/style-computed.mjs +8 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/style-set.mjs +7 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.10.4/external/motion-dom/dist/es/render}/utils/keys-transform.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es}/scroll/observe.mjs +2 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/stats/animation-count.mjs +8 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/stats/index.mjs +114 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/interpolate.mjs +7 -6
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/color.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/complex.mjs +7 -8
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/utils/resolve-elements.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/utils/supports/flags.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/utils/supports/memo.mjs +9 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/transform.mjs +1 -8
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/value/index.mjs +33 -10
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/map-value.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/subscribe-value.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/transform-value.mjs +14 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/rgba.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/complex/index.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/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/type-int.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/int.mjs} +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps}/defaults.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps/number.mjs} +13 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps}/transform.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/numbers/index.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/numbers/units.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils}/animatable-none.mjs +3 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils/find.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/index.mjs +65 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/queue.mjs +45 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/start.mjs +115 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/choose-layer-type.mjs +12 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/css.mjs +35 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/get-layer-name.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/get-view-animations.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/has-target.mjs +6 -0
- package/dist/es/external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/array.mjs +23 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/cubic-bezier.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/steps.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/utils/get-easing-for-segment.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/utils/map.mjs +7 -4
- package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/errors.mjs +4 -3
- package/dist/es/external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/global-config.mjs +4 -0
- package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/warn-once.mjs +6 -0
- package/dist/es/features/animation/animation.mjs +3 -4
- package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -3
- package/dist/es/features/gestures/drag/index.mjs +1 -2
- package/dist/es/features/gestures/focus/index.mjs +1 -1
- package/dist/es/features/gestures/hover/index.mjs +2 -3
- package/dist/es/features/gestures/in-view/index.mjs +2 -3
- package/dist/es/features/gestures/pan/PanSession.mjs +4 -5
- package/dist/es/features/gestures/pan/index.mjs +2 -3
- package/dist/es/features/gestures/press/index.mjs +2 -3
- 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 +243 -36
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +2 -6
- package/dist/es/state/style.d.ts +1 -1
- package/dist/es/state/style.mjs +5 -5
- package/dist/es/state/utils.d.ts +1 -2
- package/dist/es/types/transform.d.ts +1 -23
- package/dist/es/utils/index.d.ts +0 -1
- package/dist/es/utils/use-animation-frame.mjs +1 -2
- package/dist/es/utils/use-in-view.mjs +1 -1
- package/dist/es/value/use-combine-values.mjs +2 -3
- package/dist/es/value/use-computed.mjs +1 -2
- package/dist/es/value/use-scroll.d.ts +4 -4
- package/dist/es/value/use-scroll.mjs +2 -3
- package/dist/es/value/use-spring.mjs +3 -4
- package/dist/es/value/use-time.d.ts +1 -1
- package/dist/es/value/use-time.mjs +1 -2
- package/dist/es/value/use-transform.mjs +1 -1
- package/dist/es/value/use-velocity.mjs +2 -3
- package/package.json +3 -4
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +0 -247
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +0 -102
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +0 -281
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +0 -108
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +0 -32
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +0 -14
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +0 -22
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +0 -10
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +0 -6
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +0 -70
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -9
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -18
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/measure.mjs +0 -15
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -12
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/resolve-value.mjs +0 -11
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -10
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/Group.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +0 -81
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +0 -7
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +0 -37
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/press/index.mjs +0 -74
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/utils/capture-pointer.mjs +0 -12
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/memo.mjs +0 -13
- package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/array.mjs +0 -13
- package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/global-config.mjs +0 -7
- package/dist/es/render/utils/setters.d.ts +0 -3
- package/dist/es/utils/time-conversion.d.ts +0 -8
- package/dist/es/utils/time-conversion.mjs +0 -8
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +2 -2
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/inertia.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/spring/defaults.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/offsets/default.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/offsets/time.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/utils/is-animatable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation}/utils/is-css-variable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi}/utils/accelerated-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/microtask.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/render-step.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/hover.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html/utils → motion-dom@12.10.4/external/motion-dom/dist/es/render/dom}/parse-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.10.4/external/motion-dom/dist/es/render}/utils/keys-position.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/stats/buffer.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/immediate.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/auto.mjs} +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/hex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/color}/hsla-to-rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/hsla.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/complex/filter.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types}/test.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/float-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils}/get-as-type.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/is-nullish.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/sanitize.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/single-color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/clamp.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/anticipate.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/back.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/circ.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/ease.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/modifiers/mirror.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/modifiers/reverse.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es → motion-utils@12.9.4/external/motion-utils/dist/es/easing}/utils/is-bezier-definition.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/utils/is-easing-array.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/is-numerical-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/is-zero-value-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/memo.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/noop.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/pipe.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/progress.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/subscription-manager.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/velocity-per-second.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/wrap.mjs +0 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { time } from "../frameloop/sync-time.mjs";
|
|
2
|
+
import { activeAnimations } from "../stats/animation-count.mjs";
|
|
3
|
+
import { mix } from "../utils/mix/index.mjs";
|
|
4
|
+
import { frameloopDriver } from "./drivers/frame.mjs";
|
|
5
|
+
import { inertia } from "./generators/inertia.mjs";
|
|
6
|
+
import { keyframes } from "./generators/keyframes.mjs";
|
|
7
|
+
import { calcGeneratorDuration } from "./generators/utils/calc-duration.mjs";
|
|
8
|
+
import { getFinalKeyframe } from "./keyframes/get-final.mjs";
|
|
9
|
+
import { replaceTransitionType } from "./utils/replace-transition-type.mjs";
|
|
10
|
+
import { WithPromise } from "./utils/WithPromise.mjs";
|
|
11
|
+
import { invariant } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/errors.mjs";
|
|
12
|
+
import { pipe } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/pipe.mjs";
|
|
13
|
+
import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/time-conversion.mjs";
|
|
14
|
+
import { clamp } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/clamp.mjs";
|
|
15
|
+
const percentToProgress = (percent) => percent / 100;
|
|
16
|
+
class JSAnimation extends WithPromise {
|
|
17
|
+
constructor(options) {
|
|
18
|
+
super();
|
|
19
|
+
this.state = "idle";
|
|
20
|
+
this.startTime = null;
|
|
21
|
+
this.isStopped = false;
|
|
22
|
+
this.currentTime = 0;
|
|
23
|
+
this.holdTime = null;
|
|
24
|
+
this.playbackSpeed = 1;
|
|
25
|
+
this.stop = (sync = true) => {
|
|
26
|
+
if (sync) {
|
|
27
|
+
const { motionValue } = this.options;
|
|
28
|
+
if (motionValue && motionValue.updatedAt !== time.now()) {
|
|
29
|
+
this.tick(time.now());
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
this.isStopped = true;
|
|
33
|
+
if (this.state === "idle")
|
|
34
|
+
return;
|
|
35
|
+
this.teardown();
|
|
36
|
+
const { onStop } = this.options;
|
|
37
|
+
onStop && onStop();
|
|
38
|
+
};
|
|
39
|
+
activeAnimations.mainThread++;
|
|
40
|
+
this.options = options;
|
|
41
|
+
this.initAnimation();
|
|
42
|
+
this.play();
|
|
43
|
+
if (options.autoplay === false)
|
|
44
|
+
this.pause();
|
|
45
|
+
}
|
|
46
|
+
initAnimation() {
|
|
47
|
+
const { options } = this;
|
|
48
|
+
replaceTransitionType(options);
|
|
49
|
+
const { type = keyframes, repeat = 0, repeatDelay = 0, repeatType, velocity = 0 } = options;
|
|
50
|
+
let { keyframes: keyframes$1 } = options;
|
|
51
|
+
const generatorFactory = type || keyframes;
|
|
52
|
+
if (process.env.NODE_ENV !== "production" && generatorFactory !== keyframes) {
|
|
53
|
+
invariant(keyframes$1.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${keyframes$1}`);
|
|
54
|
+
}
|
|
55
|
+
if (generatorFactory !== keyframes && typeof keyframes$1[0] !== "number") {
|
|
56
|
+
this.mixKeyframes = pipe(percentToProgress, mix(keyframes$1[0], keyframes$1[1]));
|
|
57
|
+
keyframes$1 = [0, 100];
|
|
58
|
+
}
|
|
59
|
+
const generator = generatorFactory({ ...options, keyframes: keyframes$1 });
|
|
60
|
+
if (repeatType === "mirror") {
|
|
61
|
+
this.mirroredGenerator = generatorFactory({
|
|
62
|
+
...options,
|
|
63
|
+
keyframes: [...keyframes$1].reverse(),
|
|
64
|
+
velocity: -velocity
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
if (generator.calculatedDuration === null) {
|
|
68
|
+
generator.calculatedDuration = calcGeneratorDuration(generator);
|
|
69
|
+
}
|
|
70
|
+
const { calculatedDuration } = generator;
|
|
71
|
+
this.calculatedDuration = calculatedDuration;
|
|
72
|
+
this.resolvedDuration = calculatedDuration + repeatDelay;
|
|
73
|
+
this.totalDuration = this.resolvedDuration * (repeat + 1) - repeatDelay;
|
|
74
|
+
this.generator = generator;
|
|
75
|
+
}
|
|
76
|
+
updateTime(timestamp) {
|
|
77
|
+
const animationTime = Math.round(timestamp - this.startTime) * this.playbackSpeed;
|
|
78
|
+
if (this.holdTime !== null) {
|
|
79
|
+
this.currentTime = this.holdTime;
|
|
80
|
+
} else {
|
|
81
|
+
this.currentTime = animationTime;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
tick(timestamp, sample = false) {
|
|
85
|
+
const { generator, totalDuration, mixKeyframes, mirroredGenerator, resolvedDuration, calculatedDuration } = this;
|
|
86
|
+
if (this.startTime === null)
|
|
87
|
+
return generator.next(0);
|
|
88
|
+
const { delay = 0, keyframes: keyframes2, repeat, repeatType, repeatDelay, type, onUpdate, finalKeyframe } = this.options;
|
|
89
|
+
if (this.speed > 0) {
|
|
90
|
+
this.startTime = Math.min(this.startTime, timestamp);
|
|
91
|
+
} else if (this.speed < 0) {
|
|
92
|
+
this.startTime = Math.min(timestamp - totalDuration / this.speed, this.startTime);
|
|
93
|
+
}
|
|
94
|
+
if (sample) {
|
|
95
|
+
this.currentTime = timestamp;
|
|
96
|
+
} else {
|
|
97
|
+
this.updateTime(timestamp);
|
|
98
|
+
}
|
|
99
|
+
const timeWithoutDelay = this.currentTime - delay * (this.playbackSpeed >= 0 ? 1 : -1);
|
|
100
|
+
const isInDelayPhase = this.playbackSpeed >= 0 ? timeWithoutDelay < 0 : timeWithoutDelay > totalDuration;
|
|
101
|
+
this.currentTime = Math.max(timeWithoutDelay, 0);
|
|
102
|
+
if (this.state === "finished" && this.holdTime === null) {
|
|
103
|
+
this.currentTime = totalDuration;
|
|
104
|
+
}
|
|
105
|
+
let elapsed = this.currentTime;
|
|
106
|
+
let frameGenerator = generator;
|
|
107
|
+
if (repeat) {
|
|
108
|
+
const progress = Math.min(this.currentTime, totalDuration) / resolvedDuration;
|
|
109
|
+
let currentIteration = Math.floor(progress);
|
|
110
|
+
let iterationProgress = progress % 1;
|
|
111
|
+
if (!iterationProgress && progress >= 1) {
|
|
112
|
+
iterationProgress = 1;
|
|
113
|
+
}
|
|
114
|
+
iterationProgress === 1 && currentIteration--;
|
|
115
|
+
currentIteration = Math.min(currentIteration, repeat + 1);
|
|
116
|
+
const isOddIteration = Boolean(currentIteration % 2);
|
|
117
|
+
if (isOddIteration) {
|
|
118
|
+
if (repeatType === "reverse") {
|
|
119
|
+
iterationProgress = 1 - iterationProgress;
|
|
120
|
+
if (repeatDelay) {
|
|
121
|
+
iterationProgress -= repeatDelay / resolvedDuration;
|
|
122
|
+
}
|
|
123
|
+
} else if (repeatType === "mirror") {
|
|
124
|
+
frameGenerator = mirroredGenerator;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
elapsed = clamp(0, 1, iterationProgress) * resolvedDuration;
|
|
128
|
+
}
|
|
129
|
+
const state = isInDelayPhase ? { done: false, value: keyframes2[0] } : frameGenerator.next(elapsed);
|
|
130
|
+
if (mixKeyframes) {
|
|
131
|
+
state.value = mixKeyframes(state.value);
|
|
132
|
+
}
|
|
133
|
+
let { done } = state;
|
|
134
|
+
if (!isInDelayPhase && calculatedDuration !== null) {
|
|
135
|
+
done = this.playbackSpeed >= 0 ? this.currentTime >= totalDuration : this.currentTime <= 0;
|
|
136
|
+
}
|
|
137
|
+
const isAnimationFinished = this.holdTime === null && (this.state === "finished" || this.state === "running" && done);
|
|
138
|
+
if (isAnimationFinished && type !== inertia) {
|
|
139
|
+
state.value = getFinalKeyframe(keyframes2, this.options, finalKeyframe, this.speed);
|
|
140
|
+
}
|
|
141
|
+
if (onUpdate) {
|
|
142
|
+
onUpdate(state.value);
|
|
143
|
+
}
|
|
144
|
+
if (isAnimationFinished) {
|
|
145
|
+
this.finish();
|
|
146
|
+
}
|
|
147
|
+
return state;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
151
|
+
* resolves when the animation finishes at all but in a future update could/should
|
|
152
|
+
* reject if its cancels.
|
|
153
|
+
*/
|
|
154
|
+
then(resolve, reject) {
|
|
155
|
+
return this.finished.then(resolve, reject);
|
|
156
|
+
}
|
|
157
|
+
get duration() {
|
|
158
|
+
return millisecondsToSeconds(this.calculatedDuration);
|
|
159
|
+
}
|
|
160
|
+
get time() {
|
|
161
|
+
return millisecondsToSeconds(this.currentTime);
|
|
162
|
+
}
|
|
163
|
+
set time(newTime) {
|
|
164
|
+
var _a;
|
|
165
|
+
newTime = secondsToMilliseconds(newTime);
|
|
166
|
+
this.currentTime = newTime;
|
|
167
|
+
if (this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0) {
|
|
168
|
+
this.holdTime = newTime;
|
|
169
|
+
} else if (this.driver) {
|
|
170
|
+
this.startTime = this.driver.now() - newTime / this.playbackSpeed;
|
|
171
|
+
}
|
|
172
|
+
(_a = this.driver) == null ? void 0 : _a.start(false);
|
|
173
|
+
}
|
|
174
|
+
get speed() {
|
|
175
|
+
return this.playbackSpeed;
|
|
176
|
+
}
|
|
177
|
+
set speed(newSpeed) {
|
|
178
|
+
this.updateTime(time.now());
|
|
179
|
+
const hasChanged = this.playbackSpeed !== newSpeed;
|
|
180
|
+
this.playbackSpeed = newSpeed;
|
|
181
|
+
if (hasChanged) {
|
|
182
|
+
this.time = millisecondsToSeconds(this.currentTime);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
play() {
|
|
186
|
+
if (this.isStopped)
|
|
187
|
+
return;
|
|
188
|
+
const { driver = frameloopDriver, onPlay, startTime } = this.options;
|
|
189
|
+
if (!this.driver) {
|
|
190
|
+
this.driver = driver((timestamp) => this.tick(timestamp));
|
|
191
|
+
}
|
|
192
|
+
onPlay && onPlay();
|
|
193
|
+
const now = this.driver.now();
|
|
194
|
+
if (this.state === "finished") {
|
|
195
|
+
this.updateFinished();
|
|
196
|
+
this.startTime = now;
|
|
197
|
+
} else if (this.holdTime !== null) {
|
|
198
|
+
this.startTime = now - this.holdTime;
|
|
199
|
+
} else if (!this.startTime) {
|
|
200
|
+
this.startTime = startTime ?? now;
|
|
201
|
+
}
|
|
202
|
+
if (this.state === "finished" && this.speed < 0) {
|
|
203
|
+
this.startTime += this.calculatedDuration;
|
|
204
|
+
}
|
|
205
|
+
this.holdTime = null;
|
|
206
|
+
this.state = "running";
|
|
207
|
+
this.driver.start();
|
|
208
|
+
}
|
|
209
|
+
pause() {
|
|
210
|
+
this.state = "paused";
|
|
211
|
+
this.updateTime(time.now());
|
|
212
|
+
this.holdTime = this.currentTime;
|
|
213
|
+
}
|
|
214
|
+
complete() {
|
|
215
|
+
if (this.state !== "running") {
|
|
216
|
+
this.play();
|
|
217
|
+
}
|
|
218
|
+
this.state = "finished";
|
|
219
|
+
this.holdTime = null;
|
|
220
|
+
}
|
|
221
|
+
finish() {
|
|
222
|
+
this.teardown();
|
|
223
|
+
this.state = "finished";
|
|
224
|
+
const { onComplete } = this.options;
|
|
225
|
+
onComplete && onComplete();
|
|
226
|
+
}
|
|
227
|
+
cancel() {
|
|
228
|
+
this.holdTime = null;
|
|
229
|
+
this.startTime = 0;
|
|
230
|
+
this.tick(0);
|
|
231
|
+
this.teardown();
|
|
232
|
+
}
|
|
233
|
+
teardown() {
|
|
234
|
+
this.notifyFinished();
|
|
235
|
+
this.state = "idle";
|
|
236
|
+
this.stopDriver();
|
|
237
|
+
this.startTime = this.holdTime = null;
|
|
238
|
+
activeAnimations.mainThread--;
|
|
239
|
+
}
|
|
240
|
+
stopDriver() {
|
|
241
|
+
if (!this.driver)
|
|
242
|
+
return;
|
|
243
|
+
this.driver.stop();
|
|
244
|
+
this.driver = void 0;
|
|
245
|
+
}
|
|
246
|
+
sample(sampleTime) {
|
|
247
|
+
this.startTime = 0;
|
|
248
|
+
return this.tick(sampleTime, true);
|
|
249
|
+
}
|
|
250
|
+
attachTimeline(timeline) {
|
|
251
|
+
var _a;
|
|
252
|
+
if (this.options.allowFlatten) {
|
|
253
|
+
this.options.type = "keyframes";
|
|
254
|
+
this.options.ease = "linear";
|
|
255
|
+
this.initAnimation();
|
|
256
|
+
}
|
|
257
|
+
(_a = this.driver) == null ? void 0 : _a.stop();
|
|
258
|
+
return timeline.observe(this);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
function animateValue(options) {
|
|
262
|
+
return new JSAnimation(options);
|
|
263
|
+
}
|
|
264
|
+
export {
|
|
265
|
+
JSAnimation,
|
|
266
|
+
animateValue
|
|
267
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { setStyle } from "../render/dom/style-set.mjs";
|
|
2
|
+
import { supportsScrollTimeline } from "../utils/supports/scroll-timeline.mjs";
|
|
3
|
+
import { getFinalKeyframe } from "./keyframes/get-final.mjs";
|
|
4
|
+
import { WithPromise } from "./utils/WithPromise.mjs";
|
|
5
|
+
import { startWaapiAnimation } from "./waapi/start-waapi-animation.mjs";
|
|
6
|
+
import { applyGeneratorOptions } from "./waapi/utils/apply-generator.mjs";
|
|
7
|
+
import { invariant } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/errors.mjs";
|
|
8
|
+
import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/time-conversion.mjs";
|
|
9
|
+
import { noop } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/noop.mjs";
|
|
10
|
+
class NativeAnimation extends WithPromise {
|
|
11
|
+
constructor(options) {
|
|
12
|
+
super();
|
|
13
|
+
this.finishedTime = null;
|
|
14
|
+
this.isStopped = false;
|
|
15
|
+
if (!options)
|
|
16
|
+
return;
|
|
17
|
+
const { element, name, keyframes, pseudoElement, allowFlatten = false, finalKeyframe, onComplete } = options;
|
|
18
|
+
this.isPseudoElement = Boolean(pseudoElement);
|
|
19
|
+
this.allowFlatten = allowFlatten;
|
|
20
|
+
this.options = options;
|
|
21
|
+
invariant(typeof options.type !== "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
|
|
22
|
+
const transition = applyGeneratorOptions(options);
|
|
23
|
+
this.animation = startWaapiAnimation(element, name, keyframes, transition, pseudoElement);
|
|
24
|
+
if (transition.autoplay === false) {
|
|
25
|
+
this.animation.pause();
|
|
26
|
+
}
|
|
27
|
+
this.animation.onfinish = () => {
|
|
28
|
+
this.finishedTime = this.time;
|
|
29
|
+
if (!pseudoElement) {
|
|
30
|
+
const keyframe = getFinalKeyframe(keyframes, this.options, finalKeyframe, this.speed);
|
|
31
|
+
if (this.updateMotionValue) {
|
|
32
|
+
this.updateMotionValue(keyframe);
|
|
33
|
+
} else {
|
|
34
|
+
setStyle(element, name, keyframe);
|
|
35
|
+
}
|
|
36
|
+
this.animation.cancel();
|
|
37
|
+
}
|
|
38
|
+
onComplete == null ? void 0 : onComplete();
|
|
39
|
+
this.notifyFinished();
|
|
40
|
+
};
|
|
41
|
+
this.animation.oncancel = () => this.notifyFinished();
|
|
42
|
+
}
|
|
43
|
+
play() {
|
|
44
|
+
if (this.isStopped)
|
|
45
|
+
return;
|
|
46
|
+
this.animation.play();
|
|
47
|
+
if (this.state === "finished") {
|
|
48
|
+
this.updateFinished();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
pause() {
|
|
52
|
+
this.animation.pause();
|
|
53
|
+
}
|
|
54
|
+
complete() {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
(_b = (_a = this.animation).finish) == null ? void 0 : _b.call(_a);
|
|
57
|
+
}
|
|
58
|
+
cancel() {
|
|
59
|
+
try {
|
|
60
|
+
this.animation.cancel();
|
|
61
|
+
} catch (e) {
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
stop() {
|
|
65
|
+
if (this.isStopped)
|
|
66
|
+
return;
|
|
67
|
+
this.isStopped = true;
|
|
68
|
+
const { state } = this;
|
|
69
|
+
if (state === "idle" || state === "finished") {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (this.updateMotionValue) {
|
|
73
|
+
this.updateMotionValue();
|
|
74
|
+
} else {
|
|
75
|
+
this.commitStyles();
|
|
76
|
+
}
|
|
77
|
+
if (!this.isPseudoElement)
|
|
78
|
+
this.cancel();
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* WAAPI doesn't natively have any interruption capabilities.
|
|
82
|
+
*
|
|
83
|
+
* In this method, we commit styles back to the DOM before cancelling
|
|
84
|
+
* the animation.
|
|
85
|
+
*
|
|
86
|
+
* This is designed to be overridden by NativeAnimationExtended, which
|
|
87
|
+
* will create a renderless JS animation and sample it twice to calculate
|
|
88
|
+
* its current value, "previous" value, and therefore allow
|
|
89
|
+
* Motion to also correctly calculate velocity for any subsequent animation
|
|
90
|
+
* while deferring the commit until the next animation frame.
|
|
91
|
+
*/
|
|
92
|
+
commitStyles() {
|
|
93
|
+
var _a, _b;
|
|
94
|
+
if (!this.isPseudoElement) {
|
|
95
|
+
(_b = (_a = this.animation).commitStyles) == null ? void 0 : _b.call(_a);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
get duration() {
|
|
99
|
+
var _a, _b;
|
|
100
|
+
const duration = ((_b = (_a = this.animation.effect) == null ? void 0 : _a.getComputedTiming) == null ? void 0 : _b.call(_a).duration) || 0;
|
|
101
|
+
return millisecondsToSeconds(Number(duration));
|
|
102
|
+
}
|
|
103
|
+
get time() {
|
|
104
|
+
return millisecondsToSeconds(Number(this.animation.currentTime) || 0);
|
|
105
|
+
}
|
|
106
|
+
set time(newTime) {
|
|
107
|
+
this.finishedTime = null;
|
|
108
|
+
this.animation.currentTime = secondsToMilliseconds(newTime);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The playback speed of the animation.
|
|
112
|
+
* 1 = normal speed, 2 = double speed, 0.5 = half speed.
|
|
113
|
+
*/
|
|
114
|
+
get speed() {
|
|
115
|
+
return this.animation.playbackRate;
|
|
116
|
+
}
|
|
117
|
+
set speed(newSpeed) {
|
|
118
|
+
if (newSpeed < 0)
|
|
119
|
+
this.finishedTime = null;
|
|
120
|
+
this.animation.playbackRate = newSpeed;
|
|
121
|
+
}
|
|
122
|
+
get state() {
|
|
123
|
+
return this.finishedTime !== null ? "finished" : this.animation.playState;
|
|
124
|
+
}
|
|
125
|
+
get startTime() {
|
|
126
|
+
return Number(this.animation.startTime);
|
|
127
|
+
}
|
|
128
|
+
set startTime(newStartTime) {
|
|
129
|
+
this.animation.startTime = newStartTime;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Attaches a timeline to the animation, for instance the `ScrollTimeline`.
|
|
133
|
+
*/
|
|
134
|
+
attachTimeline({ timeline, observe }) {
|
|
135
|
+
var _a;
|
|
136
|
+
if (this.allowFlatten) {
|
|
137
|
+
(_a = this.animation.effect) == null ? void 0 : _a.updateTiming({ easing: "linear" });
|
|
138
|
+
}
|
|
139
|
+
this.animation.onfinish = null;
|
|
140
|
+
if (timeline && supportsScrollTimeline()) {
|
|
141
|
+
this.animation.timeline = timeline;
|
|
142
|
+
return noop;
|
|
143
|
+
} else {
|
|
144
|
+
return observe(this);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
export {
|
|
149
|
+
NativeAnimation
|
|
150
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { JSAnimation } from "./JSAnimation.mjs";
|
|
2
|
+
import { NativeAnimation } from "./NativeAnimation.mjs";
|
|
3
|
+
import { replaceTransitionType } from "./utils/replace-transition-type.mjs";
|
|
4
|
+
import { replaceStringEasing } from "./waapi/utils/unsupported-easing.mjs";
|
|
5
|
+
import { secondsToMilliseconds } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/time-conversion.mjs";
|
|
6
|
+
const sampleDelta = 10;
|
|
7
|
+
class NativeAnimationExtended extends NativeAnimation {
|
|
8
|
+
constructor(options) {
|
|
9
|
+
replaceStringEasing(options);
|
|
10
|
+
replaceTransitionType(options);
|
|
11
|
+
super(options);
|
|
12
|
+
if (options.startTime) {
|
|
13
|
+
this.startTime = options.startTime;
|
|
14
|
+
}
|
|
15
|
+
this.options = options;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* WAAPI doesn't natively have any interruption capabilities.
|
|
19
|
+
*
|
|
20
|
+
* Rather than read commited styles back out of the DOM, we can
|
|
21
|
+
* create a renderless JS animation and sample it twice to calculate
|
|
22
|
+
* its current value, "previous" value, and therefore allow
|
|
23
|
+
* Motion to calculate velocity for any subsequent animation.
|
|
24
|
+
*/
|
|
25
|
+
updateMotionValue(value) {
|
|
26
|
+
const { motionValue, onUpdate, onComplete, element, ...options } = this.options;
|
|
27
|
+
if (!motionValue)
|
|
28
|
+
return;
|
|
29
|
+
if (value !== void 0) {
|
|
30
|
+
motionValue.set(value);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const sampleAnimation = new JSAnimation({
|
|
34
|
+
...options,
|
|
35
|
+
autoplay: false
|
|
36
|
+
});
|
|
37
|
+
const sampleTime = secondsToMilliseconds(this.finishedTime ?? this.time);
|
|
38
|
+
motionValue.setWithVelocity(sampleAnimation.sample(sampleTime - sampleDelta).value, sampleAnimation.sample(sampleTime).value, sampleDelta);
|
|
39
|
+
sampleAnimation.stop();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
NativeAnimationExtended
|
|
44
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NativeAnimation } from "./NativeAnimation.mjs";
|
|
2
|
+
class NativeAnimationWrapper extends NativeAnimation {
|
|
3
|
+
constructor(animation) {
|
|
4
|
+
super();
|
|
5
|
+
this.animation = animation;
|
|
6
|
+
animation.onfinish = () => {
|
|
7
|
+
this.finishedTime = this.time;
|
|
8
|
+
this.notifyFinished();
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
NativeAnimationWrapper
|
|
14
|
+
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import { frame, cancelFrame, frameData } from "
|
|
3
|
-
import { time } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/sync-time.mjs";
|
|
1
|
+
import { time } from "../../frameloop/sync-time.mjs";
|
|
2
|
+
import { frame, cancelFrame, frameData } from "../../frameloop/frame.mjs";
|
|
4
3
|
const frameloopDriver = (update) => {
|
|
5
4
|
const passTimestamp = ({ timestamp }) => update(timestamp);
|
|
6
5
|
return {
|
|
7
|
-
start: () => frame.update(passTimestamp,
|
|
6
|
+
start: (keepAlive = true) => frame.update(passTimestamp, keepAlive),
|
|
8
7
|
stop: () => cancelFrame(passTimestamp),
|
|
9
8
|
/**
|
|
10
9
|
* If we're processing this frame we can use the
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { easeInOut } from "../../easing/ease.mjs";
|
|
2
|
-
import { isEasingArray } from "../../easing/utils/is-easing-array.mjs";
|
|
3
|
-
import { easingDefinitionToFunction } from "../../easing/utils/map.mjs";
|
|
4
1
|
import { interpolate } from "../../utils/interpolate.mjs";
|
|
5
|
-
import { defaultOffset } from "
|
|
6
|
-
import { convertOffsetToTimes } from "
|
|
2
|
+
import { defaultOffset } from "../keyframes/offsets/default.mjs";
|
|
3
|
+
import { convertOffsetToTimes } from "../keyframes/offsets/time.mjs";
|
|
4
|
+
import { easeInOut } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/easing/ease.mjs";
|
|
5
|
+
import { isEasingArray } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/easing/utils/is-easing-array.mjs";
|
|
6
|
+
import { easingDefinitionToFunction } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/easing/utils/map.mjs";
|
|
7
7
|
function defaultEasing(values, easing) {
|
|
8
8
|
return values.map(() => easing || easeInOut).splice(0, values.length - 1);
|
|
9
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { warning } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
-
import { secondsToMilliseconds, millisecondsToSeconds } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
3
|
-
import { clamp } from "../../../utils/clamp.mjs";
|
|
4
1
|
import { springDefaults } from "./defaults.mjs";
|
|
2
|
+
import { warning } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { secondsToMilliseconds, millisecondsToSeconds } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/time-conversion.mjs";
|
|
4
|
+
import { clamp } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/clamp.mjs";
|
|
5
5
|
const safeMin = 1e-3;
|
|
6
6
|
function findSpring({ duration = springDefaults.duration, bounce = springDefaults.bounce, velocity = springDefaults.velocity, mass = springDefaults.mass }) {
|
|
7
7
|
let envelope;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { generateLinearEasing } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs";
|
|
5
|
-
import { clamp } from "../../../utils/clamp.mjs";
|
|
1
|
+
import { generateLinearEasing } from "../../waapi/utils/linear.mjs";
|
|
2
|
+
import { calcGeneratorDuration, maxGeneratorDuration } from "../utils/calc-duration.mjs";
|
|
3
|
+
import { createGeneratorEasing } from "../utils/create-generator-easing.mjs";
|
|
6
4
|
import { calcGeneratorVelocity } from "../utils/velocity.mjs";
|
|
7
5
|
import { springDefaults } from "./defaults.mjs";
|
|
8
6
|
import { findSpring, calcAngularFreq } from "./find.mjs";
|
|
7
|
+
import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/time-conversion.mjs";
|
|
8
|
+
import { clamp } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/clamp.mjs";
|
|
9
9
|
const durationKeys = ["duration", "bounce"];
|
|
10
10
|
const physicsKeys = ["stiffness", "damping", "mass"];
|
|
11
11
|
function isSpringType(options, keys) {
|
|
@@ -87,7 +87,7 @@ function spring(optionsOrVisualDuration = springDefaults.visualDuration, bounce
|
|
|
87
87
|
next: (t) => {
|
|
88
88
|
const current = resolveSpring(t);
|
|
89
89
|
if (!isResolvedFromDuration) {
|
|
90
|
-
let currentVelocity = 0;
|
|
90
|
+
let currentVelocity = t === 0 ? initialVelocity : 0;
|
|
91
91
|
if (dampingRatio < 1) {
|
|
92
92
|
currentVelocity = t === 0 ? secondsToMilliseconds(initialVelocity) : calcGeneratorVelocity(resolveSpring, t, current);
|
|
93
93
|
}
|
|
@@ -104,10 +104,19 @@ function spring(optionsOrVisualDuration = springDefaults.visualDuration, bounce
|
|
|
104
104
|
const calculatedDuration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);
|
|
105
105
|
const easing = generateLinearEasing((progress) => generator.next(calculatedDuration * progress).value, calculatedDuration, 30);
|
|
106
106
|
return calculatedDuration + "ms " + easing;
|
|
107
|
+
},
|
|
108
|
+
toTransition: () => {
|
|
107
109
|
}
|
|
108
110
|
};
|
|
109
111
|
return generator;
|
|
110
112
|
}
|
|
113
|
+
spring.applyToOptions = (options) => {
|
|
114
|
+
const generatorOptions = createGeneratorEasing(options, 100, spring);
|
|
115
|
+
options.ease = generatorOptions.ease;
|
|
116
|
+
options.duration = secondsToMilliseconds(generatorOptions.duration);
|
|
117
|
+
options.type = "keyframes";
|
|
118
|
+
return options;
|
|
119
|
+
};
|
|
111
120
|
export {
|
|
112
121
|
spring
|
|
113
122
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
-
import { millisecondsToSeconds } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
3
1
|
import { calcGeneratorDuration, maxGeneratorDuration } from "./calc-duration.mjs";
|
|
2
|
+
import { millisecondsToSeconds } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/time-conversion.mjs";
|
|
4
3
|
function createGeneratorEasing(options, scale = 100, createGenerator) {
|
|
5
4
|
const generator = createGenerator({ ...options, keyframes: [0, scale] });
|
|
6
5
|
const duration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "../../../../../../../../motion-utils@12.
|
|
2
|
-
import { velocityPerSecond } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/velocity-per-second.mjs";
|
|
1
|
+
import { velocityPerSecond } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/velocity-per-second.mjs";
|
|
3
2
|
const velocitySampleDuration = 5;
|
|
4
3
|
function calcGeneratorVelocity(resolveValue, t, current) {
|
|
5
4
|
const prevT = Math.max(t - velocitySampleDuration, 0);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { positionalKeys } from "../../render/utils/keys-position.mjs";
|
|
2
|
+
import { findDimensionValueType } from "../../value/types/dimensions.mjs";
|
|
3
|
+
import { getVariableValue } from "../utils/css-variables-conversion.mjs";
|
|
4
|
+
import { isCSSVariableToken } from "../utils/is-css-variable.mjs";
|
|
5
|
+
import { KeyframeResolver } from "./KeyframesResolver.mjs";
|
|
6
|
+
import { isNone } from "./utils/is-none.mjs";
|
|
7
|
+
import { makeNoneKeyframesAnimatable } from "./utils/make-none-animatable.mjs";
|
|
7
8
|
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);
|
|
@@ -46,7 +46,7 @@ class DOMKeyframesResolver extends KeyframeResolver {
|
|
|
46
46
|
unresolvedKeyframes[i] = parseFloat(value);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
} else {
|
|
49
|
+
} else if (positionalValues[name]) {
|
|
50
50
|
this.needsMeasurement = true;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -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 (isNone(unresolvedKeyframes[i])) {
|
|
57
|
+
if (unresolvedKeyframes[i] === null || 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 ? void 0 : _a.length) {
|
|
93
93
|
this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {
|
|
94
94
|
element.getValue(unsetTransformName).set(unsetTransformValue);
|
|
95
95
|
});
|