motion-v 1.0.0-beta.2 → 1.0.0-beta.3
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 +3429 -2928
- 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 +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 +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/animate/index.mjs +2 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/external/framer-motion/dist/es/animation/animate/sequence.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +73 -0
- package/dist/es/external/.pnpm/framer-motion@12.9.0/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.9.0}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +16 -24
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/external/framer-motion/dist/es/animation/sequence/create.mjs +10 -10
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/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.9.0}/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.9.0}/external/framer-motion/dist/es/animation/utils/stagger.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +48 -25
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/shared/stack.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/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.9.0}/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.9.0}/external/framer-motion/dist/es/projection/styles/transform.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/VisualElement.mjs +15 -19
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +6 -7
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs +17 -0
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/attach-function.mjs +18 -0
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +9 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/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.9.0}/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.9.0}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +3 -4
- package/dist/es/external/.pnpm/framer-motion@12.9.0/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.9.0}/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.9.0}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/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.9.0}/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.9.0}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +2 -15
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +9 -8
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.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 → framer-motion@12.9.0}/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.9.0}/external/framer-motion/dist/es/render/utils/motion-values.mjs +3 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/external/framer-motion/dist/es/render/utils/setters.mjs +5 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/utils/delay.mjs +4 -5
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +15 -0
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +7 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +133 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs → motion-dom@12.9.0/external/motion-dom/dist/es/animation/GroupAnimation.mjs} +8 -15
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs +10 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/JSAnimation.mjs +261 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimation.mjs +150 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +44 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/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 → motion-dom@12.9.0/external/motion-dom/dist/es/animation}/drivers/driver-frameloop.mjs +2 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/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.9.0/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.9.0/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.9.0}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.9.0/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.9.0/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.9.0/external/motion-dom/dist/es/animation/keyframes}/DOMKeyframesResolver.mjs +9 -9
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/utils → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/KeyframesResolver.mjs +26 -28
- package/dist/es/external/.pnpm/motion-dom@12.9.0/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.9.0/external/motion-dom/dist/es/animation/keyframes}/offsets/fill.mjs +2 -3
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs +11 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/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.9.0/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.9.0/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.9.0/external/motion-dom/dist/es/animation/keyframes}/utils/unit-conversion.mjs +2 -2
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/WithPromise.mjs +29 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/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.9.0/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.9.0/external/motion-dom/dist/es/animation}/utils/css-variables-conversion.mjs +3 -3
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +18 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +21 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/supported.mjs +15 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/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.9.0/external/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs} +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +26 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/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.9.0}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +1 -3
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/px-values.mjs +40 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +19 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/effects/style-effect.mjs +30 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/batcher.mjs +6 -4
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/frame.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/index-legacy.mjs +11 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/order.mjs +4 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/sync-time.mjs +1 -2
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +1 -1
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/gestures/drag/state/set-active.mjs +25 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/gestures/press/index.mjs +53 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/is-css-var.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/style-computed.mjs +8 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/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.9.0/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.9.0/external/motion-dom/dist/es}/scroll/observe.mjs +2 -3
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/stats/animation-count.mjs +8 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/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.9.0/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.9.0/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.9.0/external/motion-dom}/dist/es/utils/mix/complex.mjs +7 -8
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/utils/resolve-elements.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/flags.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/memo.mjs +9 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/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.9.0/external/motion-dom}/dist/es/utils/transform.mjs +1 -8
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/value/index.mjs +12 -10
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/map-value.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/subscribe-value.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/external/motion-dom/dist/es/value/types/utils}/animatable-none.mjs +3 -3
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/find.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/index.mjs +65 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/queue.mjs +45 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/start.mjs +115 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/choose-layer-type.mjs +12 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/css.mjs +35 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/get-layer-name.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/get-view-animations.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/has-target.mjs +6 -0
- package/dist/es/external/.pnpm/motion-utils@12.8.3/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.8.3/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.8.3/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.8.3/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.8.3/external/motion-utils}/dist/es/easing/utils/map.mjs +7 -4
- package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/errors.mjs +4 -3
- package/dist/es/external/.pnpm/motion-utils@12.8.3/external/motion-utils/dist/es/global-config.mjs +4 -0
- package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/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 +4 -7
- package/dist/es/state/style.mjs +2 -1
- package/dist/es/state/utils.d.ts +2 -2
- package/dist/es/types/index.d.ts +0 -1
- package/dist/es/types/transform.d.ts +0 -23
- package/dist/es/utils/index.d.ts +0 -1
- package/dist/es/utils/is.d.ts +1 -0
- package/dist/es/utils/is.mjs +4 -0
- 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 +7 -4
- package/dist/es/value/use-spring.mjs +6 -7
- 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.d.ts +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/state/animate-variants-children.d.ts +0 -15
- package/dist/es/utils/time-conversion.mjs +0 -8
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/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.9.0}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0/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.9.0/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.9.0}/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0}/external/motion-dom/dist/es/frameloop/microtask.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/render-step.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/hover.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0}/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.9.0/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.9.0/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.9.0}/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.9.0/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.9.0/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.9.0/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.9.0/external/motion-dom}/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.9.0/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3}/external/motion-utils/dist/es/memo.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/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.8.3/external/motion-utils/dist/es}/pipe.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/progress.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/subscription-manager.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/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.8.3/external/motion-utils/dist/es}/wrap.mjs +0 -0
|
@@ -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.8.3/external/motion-utils/dist/es/errors.mjs";
|
|
8
|
+
import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/time-conversion.mjs";
|
|
9
|
+
import { noop } from "../../../../../../motion-utils@12.8.3/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.8.3/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,6 +1,5 @@
|
|
|
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 {
|
|
@@ -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.8.3/external/motion-utils/dist/es/easing/ease.mjs";
|
|
5
|
+
import { isEasingArray } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/easing/utils/is-easing-array.mjs";
|
|
6
|
+
import { easingDefinitionToFunction } from "../../../../../../../motion-utils@12.8.3/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.8.3/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { secondsToMilliseconds, millisecondsToSeconds } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/time-conversion.mjs";
|
|
4
|
+
import { clamp } from "../../../../../../../../motion-utils@12.8.3/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.8.3/external/motion-utils/dist/es/time-conversion.mjs";
|
|
8
|
+
import { clamp } from "../../../../../../../../motion-utils@12.8.3/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.8.3/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.8.3/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);
|
|
@@ -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
|
});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { fillWildcards } from "./utils/fill-wildcards.mjs";
|
|
2
|
+
import { removeNonTranslationalTransform } from "./utils/unit-conversion.mjs";
|
|
3
|
+
import { frame } from "../../frameloop/frame.mjs";
|
|
4
4
|
const toResolve = /* @__PURE__ */ new Set();
|
|
5
5
|
let isScheduled = false;
|
|
6
6
|
let anyNeedsMeasurement = false;
|
|
7
|
+
let isForced = false;
|
|
7
8
|
function measureAllKeyframes() {
|
|
8
9
|
if (anyNeedsMeasurement) {
|
|
9
10
|
const resolversToMeasure = Array.from(toResolve).filter((resolver) => resolver.needsMeasurement);
|
|
@@ -23,7 +24,7 @@ function measureAllKeyframes() {
|
|
|
23
24
|
if (restore) {
|
|
24
25
|
restore.forEach(([key, value]) => {
|
|
25
26
|
var _a;
|
|
26
|
-
(_a = element.getValue(key))
|
|
27
|
+
(_a = element.getValue(key)) == null ? void 0 : _a.set(value);
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
30
|
});
|
|
@@ -36,7 +37,7 @@ function measureAllKeyframes() {
|
|
|
36
37
|
}
|
|
37
38
|
anyNeedsMeasurement = false;
|
|
38
39
|
isScheduled = false;
|
|
39
|
-
toResolve.forEach((resolver) => resolver.complete());
|
|
40
|
+
toResolve.forEach((resolver) => resolver.complete(isForced));
|
|
40
41
|
toResolve.clear();
|
|
41
42
|
}
|
|
42
43
|
function readAllKeyframes() {
|
|
@@ -48,8 +49,10 @@ function readAllKeyframes() {
|
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
51
|
function flushKeyframeResolvers() {
|
|
52
|
+
isForced = true;
|
|
51
53
|
readAllKeyframes();
|
|
52
54
|
measureAllKeyframes();
|
|
55
|
+
isForced = false;
|
|
53
56
|
}
|
|
54
57
|
class KeyframeResolver {
|
|
55
58
|
constructor(unresolvedKeyframes, onComplete, name, motionValue, element, isAsync = false) {
|
|
@@ -80,30 +83,25 @@ class KeyframeResolver {
|
|
|
80
83
|
}
|
|
81
84
|
readKeyframes() {
|
|
82
85
|
const { unresolvedKeyframes, name, element, motionValue } = this;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
if (valueAsRead !== void 0 && valueAsRead !== null) {
|
|
93
|
-
unresolvedKeyframes[0] = valueAsRead;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
if (unresolvedKeyframes[0] === void 0) {
|
|
97
|
-
unresolvedKeyframes[0] = finalKeyframe;
|
|
98
|
-
}
|
|
99
|
-
if (motionValue && currentValue === void 0) {
|
|
100
|
-
motionValue.set(unresolvedKeyframes[0]);
|
|
101
|
-
}
|
|
102
|
-
} else {
|
|
103
|
-
unresolvedKeyframes[i] = unresolvedKeyframes[i - 1];
|
|
86
|
+
if (unresolvedKeyframes[0] === null) {
|
|
87
|
+
const currentValue = motionValue == null ? void 0 : motionValue.get();
|
|
88
|
+
const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];
|
|
89
|
+
if (currentValue !== void 0) {
|
|
90
|
+
unresolvedKeyframes[0] = currentValue;
|
|
91
|
+
} else if (element && name) {
|
|
92
|
+
const valueAsRead = element.readValue(name, finalKeyframe);
|
|
93
|
+
if (valueAsRead !== void 0 && valueAsRead !== null) {
|
|
94
|
+
unresolvedKeyframes[0] = valueAsRead;
|
|
104
95
|
}
|
|
105
96
|
}
|
|
97
|
+
if (unresolvedKeyframes[0] === void 0) {
|
|
98
|
+
unresolvedKeyframes[0] = finalKeyframe;
|
|
99
|
+
}
|
|
100
|
+
if (motionValue && currentValue === void 0) {
|
|
101
|
+
motionValue.set(unresolvedKeyframes[0]);
|
|
102
|
+
}
|
|
106
103
|
}
|
|
104
|
+
fillWildcards(unresolvedKeyframes);
|
|
107
105
|
}
|
|
108
106
|
setFinalKeyframe() {
|
|
109
107
|
}
|
|
@@ -113,9 +111,9 @@ class KeyframeResolver {
|
|
|
113
111
|
}
|
|
114
112
|
measureEndState() {
|
|
115
113
|
}
|
|
116
|
-
complete() {
|
|
114
|
+
complete(isForced2 = false) {
|
|
117
115
|
this.isComplete = true;
|
|
118
|
-
this.onComplete(this.unresolvedKeyframes, this.finalKeyframe);
|
|
116
|
+
this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, isForced2);
|
|
119
117
|
toResolve.delete(this);
|
|
120
118
|
}
|
|
121
119
|
cancel() {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const isNotNull = (value) => value !== null;
|
|
2
|
+
function getFinalKeyframe(keyframes, { repeat, repeatType = "loop" }, finalKeyframe, speed = 1) {
|
|
3
|
+
const resolvedKeyframes = keyframes.filter(isNotNull);
|
|
4
|
+
const useFirstKeyframe = speed < 0 || repeat && repeatType !== "loop" && repeat % 2 === 1;
|
|
5
|
+
const index = useFirstKeyframe ? 0 : resolvedKeyframes.length - 1;
|
|
6
|
+
return !index || finalKeyframe === void 0 ? resolvedKeyframes[index] : finalKeyframe;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
getFinalKeyframe
|
|
10
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import { progress } from "
|
|
3
|
-
import { mixNumber } from "../mix/number.mjs";
|
|
1
|
+
import { mixNumber } from "../../../utils/mix/number.mjs";
|
|
2
|
+
import { progress } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/progress.mjs";
|
|
4
3
|
function fillOffset(offset, remaining) {
|
|
5
4
|
const min = offset[offset.length - 1];
|
|
6
5
|
for (let i = 1; i <= remaining; i++) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { pxValues } from "../../waapi/utils/px-values.mjs";
|
|
2
|
+
function applyPxDefaults(keyframes, name) {
|
|
3
|
+
for (let i = 0; i < keyframes.length; i++) {
|
|
4
|
+
if (typeof keyframes[i] === "number" && pxValues.has(name)) {
|
|
5
|
+
keyframes[i] = keyframes[i] + "px";
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
applyPxDefaults
|
|
11
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isZeroValueString } from "
|
|
1
|
+
import { isZeroValueString } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/is-zero-value-string.mjs";
|
|
2
2
|
function isNone(value) {
|
|
3
3
|
if (typeof value === "number") {
|
|
4
4
|
return value === 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { analyseComplexValue } from "../../../value/types/complex/index.mjs";
|
|
2
|
-
import { getAnimatableNone } from "
|
|
2
|
+
import { getAnimatableNone } from "../../../value/types/utils/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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { parseValueFromTransform } from "../../../render/dom/parse-transform.mjs";
|
|
2
|
+
import { transformPropOrder } from "../../../render/utils/keys-transform.mjs";
|
|
1
3
|
import { number } from "../../../value/types/numbers/index.mjs";
|
|
2
4
|
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));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
class WithPromise {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.count = 0;
|
|
4
|
+
this.updateFinished();
|
|
5
|
+
}
|
|
6
|
+
get finished() {
|
|
7
|
+
return this._finished;
|
|
8
|
+
}
|
|
9
|
+
updateFinished() {
|
|
10
|
+
this.count++;
|
|
11
|
+
this._finished = new Promise((resolve) => {
|
|
12
|
+
this.resolve = resolve;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
notifyFinished() {
|
|
16
|
+
this.resolve();
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Allows the animation to be awaited.
|
|
20
|
+
*
|
|
21
|
+
* @deprecated Use `finished` instead.
|
|
22
|
+
*/
|
|
23
|
+
then(onResolve, onReject) {
|
|
24
|
+
return this.finished.then(onResolve, onReject);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
WithPromise
|
|
29
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const animationMaps = /* @__PURE__ */ new WeakMap();
|
|
2
|
+
const animationMapKey = (name, pseudoElement = "") => `${name}:${pseudoElement}`;
|
|
3
|
+
function getAnimationMap(element) {
|
|
4
|
+
const map = animationMaps.get(element) || /* @__PURE__ */ new Map();
|
|
5
|
+
animationMaps.set(element, map);
|
|
6
|
+
return map;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
animationMapKey,
|
|
10
|
+
getAnimationMap
|
|
11
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { isGenerator } from "../generators/utils/is-generator.mjs";
|
|
2
|
+
import { isAnimatable } from "./is-animatable.mjs";
|
|
3
|
+
import { warning } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/errors.mjs";
|
|
4
4
|
function hasKeyframesChanged(keyframes) {
|
|
5
5
|
const current = keyframes[0];
|
|
6
6
|
if (keyframes.length === 1)
|
|
@@ -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";
|
|
3
1
|
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 ?? token2}`, fallback];
|
|
14
14
|
}
|
|
15
15
|
const maxDepth = 4;
|
|
16
16
|
function getVariableValue(current, element, depth = 1) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { inertia } from "../generators/inertia.mjs";
|
|
2
|
+
import { keyframes } from "../generators/keyframes.mjs";
|
|
3
|
+
import { spring } from "../generators/spring/index.mjs";
|
|
4
|
+
const transitionTypeMap = {
|
|
5
|
+
decay: inertia,
|
|
6
|
+
inertia,
|
|
7
|
+
tween: keyframes,
|
|
8
|
+
keyframes,
|
|
9
|
+
spring
|
|
10
|
+
};
|
|
11
|
+
function replaceTransitionType(transition) {
|
|
12
|
+
if (typeof transition.type === "string") {
|
|
13
|
+
transition.type = transitionTypeMap[transition.type];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
replaceTransitionType
|
|
18
|
+
};
|