motion-v 1.0.1 → 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 -3226
- 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 +4 -6
- 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
|
@@ -3,4 +3,4 @@ export declare function compareMin<V>(a: ItemData<V>, b: ItemData<V>): number;
|
|
|
3
3
|
export declare function getValue<V>(item: ItemData<V>): V;
|
|
4
4
|
export declare function checkReorder<T>(order: ItemData<T>[], value: T, offset: number, velocity: number): ItemData<T>[];
|
|
5
5
|
export declare function moveItem<T>([...arr]: T[], fromIndex: number, toIndex: number): T[];
|
|
6
|
-
export declare function useDefaultMotionValue(value: any, defaultValue?: number): import('motion
|
|
6
|
+
export declare function useDefaultMotionValue(value: any, defaultValue?: number): import('framer-motion/dom').MotionValue<any>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { mixNumber } from "../../utils/mix/number.mjs";
|
|
2
|
-
import { motionValue } from "../../external/.pnpm/motion-dom@12.
|
|
3
|
-
import "../../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { motionValue } from "../../external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/index.mjs";
|
|
4
3
|
import { isMotionValue } from "../../utils/motion-value.mjs";
|
|
5
4
|
function compareMin(a, b) {
|
|
6
5
|
return a.layout.min - b.layout.min;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { GroupPlaybackControls } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/Group.mjs";
|
|
2
|
-
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
1
|
import { animateSequence } from "./sequence.mjs";
|
|
4
2
|
import { animateSubject } from "./subject.mjs";
|
|
3
|
+
import { GroupAnimationWithThen } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs";
|
|
5
4
|
function isSequence(value) {
|
|
6
5
|
return Array.isArray(value) && value.some(Array.isArray);
|
|
7
6
|
}
|
|
@@ -13,7 +12,7 @@ function createScopedAnimate(scope) {
|
|
|
13
12
|
} else {
|
|
14
13
|
animations = animateSubject(subjectOrSequence, optionsOrKeyframes, options, scope);
|
|
15
14
|
}
|
|
16
|
-
const animation = new
|
|
15
|
+
const animation = new GroupAnimationWithThen(animations);
|
|
17
16
|
if (scope) {
|
|
18
17
|
scope.animations.push(animation);
|
|
19
18
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
-
import { resolveElements } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
3
1
|
import { isDOMKeyframes } from "../utils/is-dom-keyframes.mjs";
|
|
2
|
+
import { resolveElements } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
4
3
|
function resolveSubjects(subject, keyframes, scope, selectorCache) {
|
|
5
4
|
if (typeof subject === "string" && isDOMKeyframes(keyframes)) {
|
|
6
5
|
return resolveElements(subject, scope, selectorCache);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { spring } from "../generators/spring/index.mjs";
|
|
2
1
|
import { createAnimationsFromSequence } from "../sequence/create.mjs";
|
|
3
2
|
import { animateSubject } from "./subject.mjs";
|
|
3
|
+
import { spring } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/generators/spring/index.mjs";
|
|
4
4
|
function animateSequence(sequence, options, scope) {
|
|
5
5
|
const animations = [];
|
|
6
6
|
const animationDefinitions = createAnimationsFromSequence(sequence, options, scope, { spring });
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
-
import { motionValue } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/value/index.mjs";
|
|
3
1
|
import { isMotionValue } from "../../value/utils/is-motion-value.mjs";
|
|
4
2
|
import { animateMotionValue } from "../interfaces/motion-value.mjs";
|
|
3
|
+
import { motionValue } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/index.mjs";
|
|
5
4
|
function animateSingleValue(value, keyframes, options) {
|
|
6
5
|
const motionValue$1 = isMotionValue(value) ? value : motionValue(value);
|
|
7
6
|
motionValue$1.start(animateMotionValue("", motionValue$1, keyframes, options));
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { invariant } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
1
|
import { visualElementStore } from "../../render/store.mjs";
|
|
3
2
|
import { isMotionValue } from "../../value/utils/is-motion-value.mjs";
|
|
4
3
|
import { animateTarget } from "../interfaces/visual-element-target.mjs";
|
|
@@ -6,6 +5,7 @@ import { createDOMVisualElement, createObjectVisualElement } from "../utils/crea
|
|
|
6
5
|
import { isDOMKeyframes } from "../utils/is-dom-keyframes.mjs";
|
|
7
6
|
import { resolveSubjects } from "./resolve-subjects.mjs";
|
|
8
7
|
import { animateSingleValue } from "./single-value.mjs";
|
|
8
|
+
import { invariant } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/errors.mjs";
|
|
9
9
|
function isSingleValue(subject, keyframes) {
|
|
10
10
|
return isMotionValue(subject) || typeof subject === "number" || typeof subject === "string" && !isDOMKeyframes(keyframes);
|
|
11
11
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { resolveElements } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
2
|
+
import { invariant } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { getValueTransition } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
|
|
4
|
+
import { getAnimationMap, animationMapKey } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/active-animations.mjs";
|
|
5
|
+
import { getComputedStyle } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/style-computed.mjs";
|
|
6
|
+
import { fillWildcards } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs";
|
|
7
|
+
import { applyPxDefaults } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs";
|
|
8
|
+
import { NativeAnimation } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimation.mjs";
|
|
9
|
+
import { secondsToMilliseconds } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/time-conversion.mjs";
|
|
10
|
+
function animateElements(elementOrSelector, keyframes, options, scope) {
|
|
11
|
+
const elements = resolveElements(elementOrSelector, scope);
|
|
12
|
+
const numElements = elements.length;
|
|
13
|
+
invariant(Boolean(numElements), "No valid element provided.");
|
|
14
|
+
const animationDefinitions = [];
|
|
15
|
+
for (let i = 0; i < numElements; i++) {
|
|
16
|
+
const element = elements[i];
|
|
17
|
+
const elementTransition = { ...options };
|
|
18
|
+
if (typeof elementTransition.delay === "function") {
|
|
19
|
+
elementTransition.delay = elementTransition.delay(i, numElements);
|
|
20
|
+
}
|
|
21
|
+
for (const valueName in keyframes) {
|
|
22
|
+
let valueKeyframes = keyframes[valueName];
|
|
23
|
+
if (!Array.isArray(valueKeyframes)) {
|
|
24
|
+
valueKeyframes = [valueKeyframes];
|
|
25
|
+
}
|
|
26
|
+
const valueOptions = {
|
|
27
|
+
...getValueTransition(elementTransition, valueName)
|
|
28
|
+
};
|
|
29
|
+
valueOptions.duration && (valueOptions.duration = secondsToMilliseconds(valueOptions.duration));
|
|
30
|
+
valueOptions.delay && (valueOptions.delay = secondsToMilliseconds(valueOptions.delay));
|
|
31
|
+
const map = getAnimationMap(element);
|
|
32
|
+
const key = animationMapKey(valueName, valueOptions.pseudoElement || "");
|
|
33
|
+
const currentAnimation = map.get(key);
|
|
34
|
+
currentAnimation && currentAnimation.stop();
|
|
35
|
+
animationDefinitions.push({
|
|
36
|
+
map,
|
|
37
|
+
key,
|
|
38
|
+
unresolvedKeyframes: valueKeyframes,
|
|
39
|
+
options: {
|
|
40
|
+
...valueOptions,
|
|
41
|
+
element,
|
|
42
|
+
name: valueName,
|
|
43
|
+
allowFlatten: !elementTransition.type && !elementTransition.ease
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
for (let i = 0; i < animationDefinitions.length; i++) {
|
|
49
|
+
const { unresolvedKeyframes, options: animationOptions } = animationDefinitions[i];
|
|
50
|
+
const { element, name, pseudoElement } = animationOptions;
|
|
51
|
+
if (!pseudoElement && unresolvedKeyframes[0] === null) {
|
|
52
|
+
unresolvedKeyframes[0] = getComputedStyle(element, name);
|
|
53
|
+
}
|
|
54
|
+
fillWildcards(unresolvedKeyframes);
|
|
55
|
+
applyPxDefaults(unresolvedKeyframes, name);
|
|
56
|
+
if (!pseudoElement && unresolvedKeyframes.length < 2) {
|
|
57
|
+
unresolvedKeyframes.unshift(getComputedStyle(element, name));
|
|
58
|
+
}
|
|
59
|
+
animationOptions.keyframes = unresolvedKeyframes;
|
|
60
|
+
}
|
|
61
|
+
const animations = [];
|
|
62
|
+
for (let i = 0; i < animationDefinitions.length; i++) {
|
|
63
|
+
const { map, key, options: animationOptions } = animationDefinitions[i];
|
|
64
|
+
const animation = new NativeAnimation(animationOptions);
|
|
65
|
+
map.set(key, animation);
|
|
66
|
+
animation.finished.finally(() => map.delete(key));
|
|
67
|
+
animations.push(animation);
|
|
68
|
+
}
|
|
69
|
+
return animations;
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
animateElements
|
|
73
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { animateElements } from "./animate-elements.mjs";
|
|
2
|
+
import { GroupAnimationWithThen } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs";
|
|
3
|
+
const createScopedWaapiAnimate = (scope) => {
|
|
4
|
+
function scopedAnimate(elementOrSelector, keyframes, options) {
|
|
5
|
+
return new GroupAnimationWithThen(animateElements(elementOrSelector, keyframes, options, scope));
|
|
6
|
+
}
|
|
7
|
+
return scopedAnimate;
|
|
8
|
+
};
|
|
9
|
+
const animateMini = /* @__PURE__ */ createScopedWaapiAnimate();
|
|
10
|
+
export {
|
|
11
|
+
animateMini,
|
|
12
|
+
createScopedWaapiAnimate
|
|
13
|
+
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { GroupPlaybackControls } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/Group.mjs";
|
|
2
|
-
import { getValueTransition } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
|
|
3
|
-
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
4
|
-
import { secondsToMilliseconds } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
5
|
-
import { frame } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
6
|
-
import { AcceleratedAnimation } from "../animators/AcceleratedAnimation.mjs";
|
|
7
|
-
import { MainThreadAnimation } from "../animators/MainThreadAnimation.mjs";
|
|
8
1
|
import { getFinalKeyframe } from "../animators/waapi/utils/get-final-keyframe.mjs";
|
|
9
2
|
import { getDefaultTransition } from "../utils/default-transitions.mjs";
|
|
10
3
|
import { isTransitionDefined } from "../utils/is-transition-defined.mjs";
|
|
4
|
+
import { getValueTransition } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
|
|
5
|
+
import { secondsToMilliseconds } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/time-conversion.mjs";
|
|
6
|
+
import { MotionGlobalConfig } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/global-config.mjs";
|
|
7
|
+
import { frame } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
8
|
+
import { JSAnimation } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/JSAnimation.mjs";
|
|
9
|
+
import { AsyncMotionValueAnimation } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs";
|
|
11
10
|
const animateMotionValue = (name, value, target, transition = {}, element, isHandoff) => (onComplete) => {
|
|
12
11
|
const valueTransition = getValueTransition(transition, name) || {};
|
|
13
12
|
const delay = valueTransition.delay || transition.delay || 0;
|
|
14
13
|
let { elapsed = 0 } = transition;
|
|
15
14
|
elapsed = elapsed - secondsToMilliseconds(delay);
|
|
16
|
-
|
|
15
|
+
const options = {
|
|
17
16
|
keyframes: Array.isArray(target) ? target : [null, target],
|
|
18
17
|
ease: "easeOut",
|
|
19
18
|
velocity: value.getVelocity(),
|
|
@@ -32,17 +31,10 @@ const animateMotionValue = (name, value, target, transition = {}, element, isHan
|
|
|
32
31
|
element: isHandoff ? void 0 : element
|
|
33
32
|
};
|
|
34
33
|
if (!isTransitionDefined(valueTransition)) {
|
|
35
|
-
options
|
|
36
|
-
...options,
|
|
37
|
-
...getDefaultTransition(name, options)
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
if (options.duration) {
|
|
41
|
-
options.duration = secondsToMilliseconds(options.duration);
|
|
42
|
-
}
|
|
43
|
-
if (options.repeatDelay) {
|
|
44
|
-
options.repeatDelay = secondsToMilliseconds(options.repeatDelay);
|
|
34
|
+
Object.assign(options, getDefaultTransition(name, options));
|
|
45
35
|
}
|
|
36
|
+
options.duration && (options.duration = secondsToMilliseconds(options.duration));
|
|
37
|
+
options.repeatDelay && (options.repeatDelay = secondsToMilliseconds(options.repeatDelay));
|
|
46
38
|
if (options.from !== void 0) {
|
|
47
39
|
options.keyframes[0] = options.from;
|
|
48
40
|
}
|
|
@@ -53,6 +45,11 @@ const animateMotionValue = (name, value, target, transition = {}, element, isHan
|
|
|
53
45
|
shouldSkip = true;
|
|
54
46
|
}
|
|
55
47
|
}
|
|
48
|
+
if (MotionGlobalConfig.instantAnimations || MotionGlobalConfig.skipAnimations) {
|
|
49
|
+
shouldSkip = true;
|
|
50
|
+
options.duration = 0;
|
|
51
|
+
options.delay = 0;
|
|
52
|
+
}
|
|
56
53
|
options.allowFlatten = !valueTransition.type && !valueTransition.ease;
|
|
57
54
|
if (shouldSkip && !isHandoff && value.get() !== void 0) {
|
|
58
55
|
const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);
|
|
@@ -61,14 +58,10 @@ const animateMotionValue = (name, value, target, transition = {}, element, isHan
|
|
|
61
58
|
options.onUpdate(finalKeyframe);
|
|
62
59
|
options.onComplete();
|
|
63
60
|
});
|
|
64
|
-
return
|
|
61
|
+
return;
|
|
65
62
|
}
|
|
66
63
|
}
|
|
67
|
-
|
|
68
|
-
return new AcceleratedAnimation(options);
|
|
69
|
-
} else {
|
|
70
|
-
return new MainThreadAnimation(options);
|
|
71
|
-
}
|
|
64
|
+
return valueTransition.isSync ? new JSAnimation(options) : new AsyncMotionValueAnimation(options);
|
|
72
65
|
};
|
|
73
66
|
export {
|
|
74
67
|
animateMotionValue
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
-
import { getValueTransition } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
|
|
3
|
-
import { frame } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
4
|
-
import { positionalKeys } from "../../render/html/utils/keys-position.mjs";
|
|
5
1
|
import { setTarget } from "../../render/utils/setters.mjs";
|
|
6
2
|
import { addValueToWillChange } from "../../value/use-will-change/add-will-change.mjs";
|
|
7
3
|
import { getOptimisedAppearId } from "../optimized-appear/get-appear-id.mjs";
|
|
8
4
|
import { animateMotionValue } from "./motion-value.mjs";
|
|
5
|
+
import { getValueTransition } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
|
|
6
|
+
import { frame } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
7
|
+
import { positionalKeys } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/render/utils/keys-position.mjs";
|
|
9
8
|
function shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {
|
|
10
9
|
const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;
|
|
11
10
|
needsAnimating[key] = false;
|
|
12
11
|
return shouldBlock;
|
|
13
12
|
}
|
|
14
13
|
function animateTarget(visualElement, targetAndTransition, { delay = 0, transitionOverride, type } = {}) {
|
|
15
|
-
var _a;
|
|
16
14
|
let { transition = visualElement.getDefaultTransition(), transitionEnd, ...target } = targetAndTransition;
|
|
17
15
|
if (transitionOverride)
|
|
18
16
|
transition = transitionOverride;
|
|
19
17
|
const animations = [];
|
|
20
18
|
const animationTypeState = type && visualElement.animationState && visualElement.animationState.getState()[type];
|
|
21
19
|
for (const key in target) {
|
|
22
|
-
const value = visualElement.getValue(key,
|
|
20
|
+
const value = visualElement.getValue(key, visualElement.latestValues[key] ?? null);
|
|
23
21
|
const valueTarget = target[key];
|
|
24
22
|
if (valueTarget === void 0 || animationTypeState && shouldBlockAnimation(animationTypeState, key)) {
|
|
25
23
|
continue;
|
|
@@ -28,6 +26,10 @@ function animateTarget(visualElement, targetAndTransition, { delay = 0, transiti
|
|
|
28
26
|
delay,
|
|
29
27
|
...getValueTransition(transition || {}, key)
|
|
30
28
|
};
|
|
29
|
+
const currentValue = value.get();
|
|
30
|
+
if (currentValue !== void 0 && !value.isAnimating && !Array.isArray(valueTarget) && valueTarget === currentValue && !valueTransition.velocity) {
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
31
33
|
let isHandoff = false;
|
|
32
34
|
if (window.MotionHandoffAnimation) {
|
|
33
35
|
const appearId = getOptimisedAppearId(visualElement);
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { invariant } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
-
import { progress } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/progress.mjs";
|
|
3
|
-
import { secondsToMilliseconds } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
4
|
-
import { createGeneratorEasing } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs";
|
|
5
|
-
import { isGenerator } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs";
|
|
6
|
-
import { getEasingForSegment } from "../../easing/utils/get-easing-for-segment.mjs";
|
|
7
|
-
import { defaultOffset } from "../../utils/offsets/default.mjs";
|
|
8
|
-
import { fillOffset } from "../../utils/offsets/fill.mjs";
|
|
9
1
|
import { isMotionValue } from "../../value/utils/is-motion-value.mjs";
|
|
10
2
|
import { resolveSubjects } from "../animate/resolve-subjects.mjs";
|
|
11
3
|
import { calculateRepeatDuration } from "./utils/calc-repeat-duration.mjs";
|
|
@@ -13,6 +5,14 @@ import { calcNextTime } from "./utils/calc-time.mjs";
|
|
|
13
5
|
import { addKeyframes } from "./utils/edit.mjs";
|
|
14
6
|
import { normalizeTimes } from "./utils/normalize-times.mjs";
|
|
15
7
|
import { compareByTime } from "./utils/sort.mjs";
|
|
8
|
+
import { defaultOffset } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/offsets/default.mjs";
|
|
9
|
+
import { createGeneratorEasing } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs";
|
|
10
|
+
import { fillOffset } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs";
|
|
11
|
+
import { invariant } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/errors.mjs";
|
|
12
|
+
import { getEasingForSegment } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs";
|
|
13
|
+
import { progress } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/progress.mjs";
|
|
14
|
+
import { isGenerator } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs";
|
|
15
|
+
import { secondsToMilliseconds } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/time-conversion.mjs";
|
|
16
16
|
const defaultSegmentEasing = "easeInOut";
|
|
17
17
|
const MAX_REPEAT = 20;
|
|
18
18
|
function createAnimationsFromSequence(sequence, { defaultTransition = {}, ...sequenceTransition } = {}, scope, generators) {
|
|
@@ -44,7 +44,7 @@ function createAnimationsFromSequence(sequence, { defaultTransition = {}, ...seq
|
|
|
44
44
|
let { ease = defaultTransition.ease || "easeOut", duration } = valueTransition;
|
|
45
45
|
const calculatedDelay = typeof delay === "function" ? delay(elementIndex, numSubjects) : delay;
|
|
46
46
|
const numKeyframes = valueKeyframesAsList.length;
|
|
47
|
-
const createGenerator = isGenerator(type) ? type : generators
|
|
47
|
+
const createGenerator = isGenerator(type) ? type : generators == null ? void 0 : generators[type];
|
|
48
48
|
if (numKeyframes <= 2 && createGenerator) {
|
|
49
49
|
let absoluteDelta = 100;
|
|
50
50
|
if (numKeyframes === 2 && isNumberKeyframesArray(valueKeyframesAsList)) {
|
|
@@ -59,7 +59,7 @@ function createAnimationsFromSequence(sequence, { defaultTransition = {}, ...seq
|
|
|
59
59
|
ease = springEasing.ease;
|
|
60
60
|
duration = springEasing.duration;
|
|
61
61
|
}
|
|
62
|
-
duration
|
|
62
|
+
duration ?? (duration = defaultDuration);
|
|
63
63
|
const startTime = currentTime + calculatedDelay;
|
|
64
64
|
if (times.length === 1 && times[0] === 0) {
|
|
65
65
|
times[1] = 1;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
function calcNextTime(current, next, prev, labels) {
|
|
2
|
-
var _a;
|
|
3
2
|
if (typeof next === "number") {
|
|
4
3
|
return next;
|
|
5
4
|
} else if (next.startsWith("-") || next.startsWith("+")) {
|
|
@@ -7,7 +6,7 @@ function calcNextTime(current, next, prev, labels) {
|
|
|
7
6
|
} else if (next === "<") {
|
|
8
7
|
return prev;
|
|
9
8
|
} else {
|
|
10
|
-
return
|
|
9
|
+
return labels.get(next) ?? current;
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
12
|
export {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../../../../../../../motion-utils@12.
|
|
3
|
-
import {
|
|
4
|
-
import { mixNumber } from "../../../utils/mix/number.mjs";
|
|
1
|
+
import { mixNumber } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/mix/number.mjs";
|
|
2
|
+
import { getEasingForSegment } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs";
|
|
3
|
+
import { removeItem } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/array.mjs";
|
|
5
4
|
function eraseKeyframes(sequence, startTime, endTime) {
|
|
6
5
|
for (let i = 0; i < sequence.length; i++) {
|
|
7
6
|
const keyframe = sequence[i];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { transformProps } from "
|
|
1
|
+
import { transformProps } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
|
|
2
2
|
const underDampedSpring = {
|
|
3
3
|
type: "spring",
|
|
4
4
|
stiffness: 500,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { easingDefinitionToFunction } from "
|
|
1
|
+
import { easingDefinitionToFunction } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/easing/utils/map.mjs";
|
|
2
2
|
function getOriginIndex(from, total) {
|
|
3
3
|
if (from === "first") {
|
|
4
4
|
return 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { scaleCorrectors } from "../../projection/styles/scale-correction.mjs";
|
|
2
|
-
import { transformProps } from "
|
|
2
|
+
import { transformProps } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
|
|
3
3
|
function isForcedMotionValue(key, { layout, layoutId }) {
|
|
4
4
|
return transformProps.has(key) || key.startsWith("origin") || (layout || layoutId !== void 0) && (!!scaleCorrectors[key] || key === "opacity");
|
|
5
5
|
}
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import "../../../../../../../motion-
|
|
2
|
-
import {
|
|
3
|
-
import { progress } from "../../../../../../../motion-utils@12.
|
|
4
|
-
import { circOut } from "
|
|
5
|
-
import {
|
|
6
|
-
import { percent, px } from "../../value/types/numbers/units.mjs";
|
|
1
|
+
import { mixNumber } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/mix/number.mjs";
|
|
2
|
+
import { percent, px } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/numbers/units.mjs";
|
|
3
|
+
import { progress } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/progress.mjs";
|
|
4
|
+
import { circOut } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/easing/circ.mjs";
|
|
5
|
+
import { noop } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/noop.mjs";
|
|
7
6
|
const borders = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"];
|
|
8
7
|
const numBorders = borders.length;
|
|
9
8
|
const asNumber = (value) => typeof value === "string" ? parseFloat(value) : value;
|
|
10
9
|
const isPx = (value) => typeof value === "number" || px.test(value);
|
|
11
10
|
function mixValues(target, follow, lead, progress2, shouldCrossfadeOpacity, isOnlyMember) {
|
|
12
11
|
if (shouldCrossfadeOpacity) {
|
|
13
|
-
target.opacity = mixNumber(
|
|
14
|
-
|
|
15
|
-
// TODO Reinstate this if only child
|
|
16
|
-
lead.opacity !== void 0 ? lead.opacity : 1,
|
|
17
|
-
easeCrossfadeIn(progress2)
|
|
18
|
-
);
|
|
19
|
-
target.opacityExit = mixNumber(follow.opacity !== void 0 ? follow.opacity : 1, 0, easeCrossfadeOut(progress2));
|
|
12
|
+
target.opacity = mixNumber(0, lead.opacity ?? 1, easeCrossfadeIn(progress2));
|
|
13
|
+
target.opacityExit = mixNumber(follow.opacity ?? 1, 0, easeCrossfadeOut(progress2));
|
|
20
14
|
} else if (isOnlyMember) {
|
|
21
|
-
target.opacity = mixNumber(follow.opacity
|
|
15
|
+
target.opacity = mixNumber(follow.opacity ?? 1, lead.opacity ?? 1, progress2);
|
|
22
16
|
}
|
|
23
17
|
for (let i = 0; i < numBorders; i++) {
|
|
24
18
|
const borderLabel = `border${borders[i]}Radius`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mixNumber } from "../../utils/mix/number.mjs";
|
|
2
1
|
import { hasTransform } from "../utils/has-transform.mjs";
|
|
2
|
+
import { mixNumber } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/mix/number.mjs";
|
|
3
3
|
function scalePoint(point, scale, originPoint) {
|
|
4
4
|
const distanceFromOrigin = point - originPoint;
|
|
5
5
|
const scaled = scale * distanceFromOrigin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mixNumber } from "
|
|
1
|
+
import { mixNumber } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/mix/number.mjs";
|
|
2
2
|
const SCALE_PRECISION = 1e-4;
|
|
3
3
|
const SCALE_MIN = 1 - SCALE_PRECISION;
|
|
4
4
|
const SCALE_MAX = 1 + SCALE_PRECISION;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { mixNumber } from "../../utils/mix/number.mjs";
|
|
2
|
-
import { percent } from "../../value/types/numbers/units.mjs";
|
|
3
1
|
import { scalePoint } from "./delta-apply.mjs";
|
|
2
|
+
import { percent } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/numbers/units.mjs";
|
|
3
|
+
import { mixNumber } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/mix/number.mjs";
|
|
4
4
|
function removePointDelta(point, translate, scale, originPoint, boxScale) {
|
|
5
5
|
point -= translate;
|
|
6
6
|
point = scalePoint(point, 1 / scale, originPoint);
|