motion-v 1.0.2 → 1.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +3844 -3225
- package/dist/es/animation/hooks/animation-controls.mjs +1 -1
- package/dist/es/animation/hooks/use-animate.mjs +1 -1
- package/dist/es/components/animate-presence/use-pop-layout.mjs +1 -2
- package/dist/es/components/motion/use-motion-state.d.ts +702 -702
- package/dist/es/components/motion/use-motion-state.mjs +10 -2
- package/dist/es/components/reorder/index.d.ts +2808 -2808
- package/dist/es/components/reorder/utils.d.ts +1 -1
- package/dist/es/components/reorder/utils.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/index.mjs +2 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/sequence.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/single-value.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +73 -0
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +13 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +17 -24
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +8 -6
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/create.mjs +10 -10
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +3 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/stagger.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +8 -14
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +61 -35
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/shared/stack.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/transform.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/VisualElement.mjs +15 -19
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +6 -7
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs +17 -0
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/attach-function.mjs +18 -0
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/index.mjs +12 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +2 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +6 -6
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/utils/get-timeline.mjs +27 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +3 -16
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +10 -9
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/path.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/motion-values.mjs +1 -6
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/setters.mjs +5 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/delay.mjs +4 -5
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +15 -0
- package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +7 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +138 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/animation/GroupAnimation.mjs} +8 -15
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs +10 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/JSAnimation.mjs +267 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimation.mjs +150 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +44 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs +14 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/animation/drivers/frame.mjs} +3 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/keyframes.mjs +5 -5
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/spring/find.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/spring/index.mjs +15 -6
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +6 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/utils/velocity.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/DOMKeyframesResolver.mjs +10 -10
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/KeyframesResolver.mjs +32 -35
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/get-final.mjs +10 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/offsets/fill.mjs +2 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs +11 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs +8 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/utils/is-none.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/utils/make-none-animatable.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/utils/unit-conversion.mjs +2 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/WithPromise.mjs +29 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/active-animations.mjs +11 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.10.4/external/motion-dom/dist/es/animation}/utils/can-animate.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation}/utils/css-variables-conversion.mjs +3 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +18 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +21 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/supported.mjs +15 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs +36 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs} +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +26 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs +14 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +1 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/utils/px-values.mjs +40 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +19 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/effects/MotionValueState.mjs +42 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/effects/style/index.mjs +49 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/effects/style/transform.mjs +33 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/batcher.mjs +6 -4
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/frame.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/index-legacy.mjs +11 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/order.mjs +4 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/sync-time.mjs +1 -2
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +1 -1
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/gestures/drag/state/set-active.mjs +25 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/gestures/press/index.mjs +55 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/is-css-var.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/style-computed.mjs +8 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/style-set.mjs +7 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.10.4/external/motion-dom/dist/es/render}/utils/keys-transform.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es}/scroll/observe.mjs +2 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/stats/animation-count.mjs +8 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/stats/index.mjs +114 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/interpolate.mjs +7 -6
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/color.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/complex.mjs +7 -8
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/utils/resolve-elements.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/utils/supports/flags.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/utils/supports/memo.mjs +9 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/transform.mjs +1 -8
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/value/index.mjs +33 -10
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/map-value.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/subscribe-value.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/transform-value.mjs +14 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/rgba.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/complex/index.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types}/dimensions.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/int.mjs} +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps}/defaults.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps/number.mjs} +13 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps}/transform.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/numbers/index.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/numbers/units.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils}/animatable-none.mjs +3 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils/find.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/index.mjs +65 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/queue.mjs +45 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/start.mjs +115 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/choose-layer-type.mjs +12 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/css.mjs +35 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/get-layer-name.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/get-view-animations.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/has-target.mjs +6 -0
- package/dist/es/external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/array.mjs +23 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/cubic-bezier.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/steps.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/utils/get-easing-for-segment.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/utils/map.mjs +7 -4
- package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/errors.mjs +4 -3
- package/dist/es/external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/global-config.mjs +4 -0
- package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/warn-once.mjs +6 -0
- package/dist/es/features/animation/animation.mjs +3 -4
- package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -3
- package/dist/es/features/gestures/drag/index.mjs +1 -2
- package/dist/es/features/gestures/focus/index.mjs +1 -1
- package/dist/es/features/gestures/hover/index.mjs +2 -3
- package/dist/es/features/gestures/in-view/index.mjs +2 -3
- package/dist/es/features/gestures/pan/PanSession.mjs +4 -5
- package/dist/es/features/gestures/pan/index.mjs +2 -3
- package/dist/es/features/gestures/press/index.mjs +2 -3
- package/dist/es/features/layout/config.mjs +2 -2
- package/dist/es/features/layout/layout.mjs +2 -2
- package/dist/es/features/layout/projection.mjs +2 -2
- package/dist/es/index.mjs +243 -36
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +2 -6
- package/dist/es/state/style.d.ts +1 -1
- package/dist/es/state/style.mjs +5 -5
- package/dist/es/state/utils.d.ts +1 -2
- package/dist/es/types/transform.d.ts +1 -23
- package/dist/es/utils/index.d.ts +0 -1
- package/dist/es/utils/use-animation-frame.mjs +1 -2
- package/dist/es/utils/use-in-view.mjs +1 -1
- package/dist/es/value/use-combine-values.mjs +2 -3
- package/dist/es/value/use-computed.mjs +1 -2
- package/dist/es/value/use-scroll.d.ts +4 -4
- package/dist/es/value/use-scroll.mjs +2 -3
- package/dist/es/value/use-spring.mjs +3 -4
- package/dist/es/value/use-time.d.ts +1 -1
- package/dist/es/value/use-time.mjs +1 -2
- package/dist/es/value/use-transform.mjs +1 -1
- package/dist/es/value/use-velocity.mjs +2 -3
- package/package.json +3 -4
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +0 -247
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +0 -102
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +0 -281
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +0 -108
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +0 -32
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +0 -14
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +0 -22
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +0 -10
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +0 -6
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +0 -70
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -9
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -18
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/measure.mjs +0 -15
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -12
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/resolve-value.mjs +0 -11
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -10
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/Group.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +0 -81
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +0 -7
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +0 -37
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/press/index.mjs +0 -74
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/utils/capture-pointer.mjs +0 -12
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/memo.mjs +0 -13
- package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/array.mjs +0 -13
- package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/global-config.mjs +0 -7
- package/dist/es/render/utils/setters.d.ts +0 -3
- package/dist/es/utils/time-conversion.d.ts +0 -8
- package/dist/es/utils/time-conversion.mjs +0 -8
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +2 -2
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/inertia.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/spring/defaults.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/offsets/default.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/offsets/time.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/utils/is-animatable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation}/utils/is-css-variable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi}/utils/accelerated-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/microtask.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/render-step.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/hover.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html/utils → motion-dom@12.10.4/external/motion-dom/dist/es/render/dom}/parse-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.10.4/external/motion-dom/dist/es/render}/utils/keys-position.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/stats/buffer.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/immediate.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/auto.mjs} +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/hex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/color}/hsla-to-rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/hsla.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/complex/filter.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types}/test.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/float-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils}/get-as-type.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/is-nullish.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/sanitize.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/single-color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/clamp.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/anticipate.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/back.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/circ.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/ease.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/modifiers/mirror.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/modifiers/reverse.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es → motion-utils@12.9.4/external/motion-utils/dist/es/easing}/utils/is-bezier-definition.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/utils/is-easing-array.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/is-numerical-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/is-zero-value-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/memo.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/noop.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/pipe.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/progress.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/subscription-manager.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/velocity-per-second.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/wrap.mjs +0 -0
|
@@ -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,15 +49,16 @@ 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) {
|
|
56
|
-
this.
|
|
59
|
+
this.state = "pending";
|
|
57
60
|
this.isAsync = false;
|
|
58
61
|
this.needsMeasurement = false;
|
|
59
|
-
this.isScheduled = false;
|
|
60
62
|
this.unresolvedKeyframes = [...unresolvedKeyframes];
|
|
61
63
|
this.onComplete = onComplete;
|
|
62
64
|
this.name = name;
|
|
@@ -65,7 +67,7 @@ class KeyframeResolver {
|
|
|
65
67
|
this.isAsync = isAsync;
|
|
66
68
|
}
|
|
67
69
|
scheduleResolve() {
|
|
68
|
-
this.
|
|
70
|
+
this.state = "scheduled";
|
|
69
71
|
if (this.isAsync) {
|
|
70
72
|
toResolve.add(this);
|
|
71
73
|
if (!isScheduled) {
|
|
@@ -80,30 +82,25 @@ class KeyframeResolver {
|
|
|
80
82
|
}
|
|
81
83
|
readKeyframes() {
|
|
82
84
|
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];
|
|
85
|
+
if (unresolvedKeyframes[0] === null) {
|
|
86
|
+
const currentValue = motionValue == null ? void 0 : motionValue.get();
|
|
87
|
+
const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];
|
|
88
|
+
if (currentValue !== void 0) {
|
|
89
|
+
unresolvedKeyframes[0] = currentValue;
|
|
90
|
+
} else if (element && name) {
|
|
91
|
+
const valueAsRead = element.readValue(name, finalKeyframe);
|
|
92
|
+
if (valueAsRead !== void 0 && valueAsRead !== null) {
|
|
93
|
+
unresolvedKeyframes[0] = valueAsRead;
|
|
104
94
|
}
|
|
105
95
|
}
|
|
96
|
+
if (unresolvedKeyframes[0] === void 0) {
|
|
97
|
+
unresolvedKeyframes[0] = finalKeyframe;
|
|
98
|
+
}
|
|
99
|
+
if (motionValue && currentValue === void 0) {
|
|
100
|
+
motionValue.set(unresolvedKeyframes[0]);
|
|
101
|
+
}
|
|
106
102
|
}
|
|
103
|
+
fillWildcards(unresolvedKeyframes);
|
|
107
104
|
}
|
|
108
105
|
setFinalKeyframe() {
|
|
109
106
|
}
|
|
@@ -113,19 +110,19 @@ class KeyframeResolver {
|
|
|
113
110
|
}
|
|
114
111
|
measureEndState() {
|
|
115
112
|
}
|
|
116
|
-
complete() {
|
|
117
|
-
this.
|
|
118
|
-
this.onComplete(this.unresolvedKeyframes, this.finalKeyframe);
|
|
113
|
+
complete(isForcedComplete = false) {
|
|
114
|
+
this.state = "complete";
|
|
115
|
+
this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, isForcedComplete);
|
|
119
116
|
toResolve.delete(this);
|
|
120
117
|
}
|
|
121
118
|
cancel() {
|
|
122
|
-
if (
|
|
123
|
-
this.isScheduled = false;
|
|
119
|
+
if (this.state === "scheduled") {
|
|
124
120
|
toResolve.delete(this);
|
|
121
|
+
this.state = "pending";
|
|
125
122
|
}
|
|
126
123
|
}
|
|
127
124
|
resume() {
|
|
128
|
-
if (
|
|
125
|
+
if (this.state === "pending")
|
|
129
126
|
this.scheduleResolve();
|
|
130
127
|
}
|
|
131
128
|
}
|
|
@@ -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.9.4/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.9.4/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.9.4/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.9.4/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { isNumericalString } from "../../../../../../../motion-utils@12.9.4/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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { supportsLinearEasing } from "../../../utils/supports/linear-easing.mjs";
|
|
2
|
+
import { supportedWaapiEasing } from "./supported.mjs";
|
|
3
|
+
import { isBezierDefinition } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs";
|
|
4
|
+
function isWaapiSupportedEasing(easing) {
|
|
5
|
+
return Boolean(typeof easing === "function" && supportsLinearEasing() || !easing || typeof easing === "string" && (easing in supportedWaapiEasing || supportsLinearEasing()) || isBezierDefinition(easing) || Array.isArray(easing) && easing.every(isWaapiSupportedEasing));
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
isWaapiSupportedEasing
|
|
9
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { supportsLinearEasing } from "../../../utils/supports/linear-easing.mjs";
|
|
2
|
+
import { generateLinearEasing } from "../utils/linear.mjs";
|
|
3
|
+
import { cubicBezierAsString } from "./cubic-bezier.mjs";
|
|
4
|
+
import { supportedWaapiEasing } from "./supported.mjs";
|
|
5
|
+
import { isBezierDefinition } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs";
|
|
6
|
+
function mapEasingToNativeEasing(easing, duration) {
|
|
7
|
+
if (!easing) {
|
|
8
|
+
return void 0;
|
|
9
|
+
} else if (typeof easing === "function") {
|
|
10
|
+
return supportsLinearEasing() ? generateLinearEasing(easing, duration) : "ease-out";
|
|
11
|
+
} else if (isBezierDefinition(easing)) {
|
|
12
|
+
return cubicBezierAsString(easing);
|
|
13
|
+
} else if (Array.isArray(easing)) {
|
|
14
|
+
return easing.map((segmentEasing) => mapEasingToNativeEasing(segmentEasing, duration) || supportedWaapiEasing.easeOut);
|
|
15
|
+
} else {
|
|
16
|
+
return supportedWaapiEasing[easing];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
mapEasingToNativeEasing
|
|
21
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { cubicBezierAsString } from "./cubic-bezier.mjs";
|
|
2
|
+
const supportedWaapiEasing = {
|
|
3
|
+
linear: "linear",
|
|
4
|
+
ease: "ease",
|
|
5
|
+
easeIn: "ease-in",
|
|
6
|
+
easeOut: "ease-out",
|
|
7
|
+
easeInOut: "ease-in-out",
|
|
8
|
+
circIn: /* @__PURE__ */ cubicBezierAsString([0, 0.65, 0.55, 1]),
|
|
9
|
+
circOut: /* @__PURE__ */ cubicBezierAsString([0.55, 0, 1, 0.45]),
|
|
10
|
+
backIn: /* @__PURE__ */ cubicBezierAsString([0.31, 0.01, 0.66, -0.59]),
|
|
11
|
+
backOut: /* @__PURE__ */ cubicBezierAsString([0.33, 1.53, 0.69, 0.99])
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
supportedWaapiEasing
|
|
15
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { activeAnimations } from "../../stats/animation-count.mjs";
|
|
2
|
+
import { statsBuffer } from "../../stats/buffer.mjs";
|
|
3
|
+
import { mapEasingToNativeEasing } from "./easing/map-easing.mjs";
|
|
4
|
+
function startWaapiAnimation(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = "loop", ease = "easeOut", times } = {}, pseudoElement = void 0) {
|
|
5
|
+
const keyframeOptions = {
|
|
6
|
+
[valueName]: keyframes
|
|
7
|
+
};
|
|
8
|
+
if (times)
|
|
9
|
+
keyframeOptions.offset = times;
|
|
10
|
+
const easing = mapEasingToNativeEasing(ease, duration);
|
|
11
|
+
if (Array.isArray(easing))
|
|
12
|
+
keyframeOptions.easing = easing;
|
|
13
|
+
if (statsBuffer.value) {
|
|
14
|
+
activeAnimations.waapi++;
|
|
15
|
+
}
|
|
16
|
+
const options = {
|
|
17
|
+
delay,
|
|
18
|
+
duration,
|
|
19
|
+
easing: !Array.isArray(easing) ? easing : "linear",
|
|
20
|
+
fill: "both",
|
|
21
|
+
iterations: repeat + 1,
|
|
22
|
+
direction: repeatType === "reverse" ? "alternate" : "normal"
|
|
23
|
+
};
|
|
24
|
+
if (pseudoElement)
|
|
25
|
+
options.pseudoElement = pseudoElement;
|
|
26
|
+
const animation = element.animate(keyframeOptions, options);
|
|
27
|
+
if (statsBuffer.value) {
|
|
28
|
+
animation.finished.finally(() => {
|
|
29
|
+
activeAnimations.waapi--;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return animation;
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
startWaapiAnimation
|
|
36
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import { memo } from "../../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/memo.mjs";
|
|
1
|
+
import { memo } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/memo.mjs";
|
|
3
2
|
const supportsPartialKeyframes = /* @__PURE__ */ memo(() => {
|
|
4
3
|
try {
|
|
5
4
|
document.createElement("div").animate({ opacity: [1] });
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { memo } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/memo.mjs";
|
|
2
|
+
const acceleratedValues = /* @__PURE__ */ new Set([
|
|
3
|
+
"opacity",
|
|
4
|
+
"clipPath",
|
|
5
|
+
"filter",
|
|
6
|
+
"transform"
|
|
7
|
+
// TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
|
|
8
|
+
// or until we implement support for linear() easing.
|
|
9
|
+
// "background-color"
|
|
10
|
+
]);
|
|
11
|
+
const supportsWaapi = /* @__PURE__ */ memo(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
12
|
+
function supportsBrowserAnimation(options) {
|
|
13
|
+
const { motionValue, name, repeatDelay, repeatType, damping, type } = options;
|
|
14
|
+
if (!motionValue || !motionValue.owner || !(motionValue.owner.current instanceof HTMLElement)) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
const { onUpdate, transformTemplate } = motionValue.owner.getProps();
|
|
18
|
+
return supportsWaapi() && name && acceleratedValues.has(name) && (name !== "transform" || !transformTemplate) && /**
|
|
19
|
+
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
20
|
+
* no way to read the value from WAAPI every frame.
|
|
21
|
+
*/
|
|
22
|
+
!onUpdate && !repeatDelay && repeatType !== "mirror" && damping !== 0 && type !== "inertia";
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
supportsBrowserAnimation
|
|
26
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { supportsLinearEasing } from "../../../utils/supports/linear-easing.mjs";
|
|
2
|
+
import { isGenerator } from "../../generators/utils/is-generator.mjs";
|
|
3
|
+
function applyGeneratorOptions({ type, ...options }) {
|
|
4
|
+
if (isGenerator(type) && supportsLinearEasing()) {
|
|
5
|
+
return type.applyToOptions(options);
|
|
6
|
+
} else {
|
|
7
|
+
options.duration ?? (options.duration = 300);
|
|
8
|
+
options.ease ?? (options.ease = "easeOut");
|
|
9
|
+
}
|
|
10
|
+
return options;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
applyGeneratorOptions
|
|
14
|
+
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
-
import { progress } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/progress.mjs";
|
|
3
1
|
const generateLinearEasing = (easing, duration, resolution = 10) => {
|
|
4
2
|
let points = "";
|
|
5
3
|
const numPoints = Math.max(Math.round(duration / resolution), 2);
|
|
6
4
|
for (let i = 0; i < numPoints; i++) {
|
|
7
|
-
points += easing(
|
|
5
|
+
points += easing(i / (numPoints - 1)) + ", ";
|
|
8
6
|
}
|
|
9
7
|
return `linear(${points.substring(0, points.length - 2)})`;
|
|
10
8
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const pxValues = /* @__PURE__ */ new Set([
|
|
2
|
+
// Border props
|
|
3
|
+
"borderWidth",
|
|
4
|
+
"borderTopWidth",
|
|
5
|
+
"borderRightWidth",
|
|
6
|
+
"borderBottomWidth",
|
|
7
|
+
"borderLeftWidth",
|
|
8
|
+
"borderRadius",
|
|
9
|
+
"radius",
|
|
10
|
+
"borderTopLeftRadius",
|
|
11
|
+
"borderTopRightRadius",
|
|
12
|
+
"borderBottomRightRadius",
|
|
13
|
+
"borderBottomLeftRadius",
|
|
14
|
+
// Positioning props
|
|
15
|
+
"width",
|
|
16
|
+
"maxWidth",
|
|
17
|
+
"height",
|
|
18
|
+
"maxHeight",
|
|
19
|
+
"top",
|
|
20
|
+
"right",
|
|
21
|
+
"bottom",
|
|
22
|
+
"left",
|
|
23
|
+
// Spacing props
|
|
24
|
+
"padding",
|
|
25
|
+
"paddingTop",
|
|
26
|
+
"paddingRight",
|
|
27
|
+
"paddingBottom",
|
|
28
|
+
"paddingLeft",
|
|
29
|
+
"margin",
|
|
30
|
+
"marginTop",
|
|
31
|
+
"marginRight",
|
|
32
|
+
"marginBottom",
|
|
33
|
+
"marginLeft",
|
|
34
|
+
// Misc
|
|
35
|
+
"backgroundPositionX",
|
|
36
|
+
"backgroundPositionY"
|
|
37
|
+
]);
|
|
38
|
+
export {
|
|
39
|
+
pxValues
|
|
40
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { anticipate } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/easing/anticipate.mjs";
|
|
2
|
+
import { backInOut } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/easing/back.mjs";
|
|
3
|
+
import { circInOut } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/easing/circ.mjs";
|
|
4
|
+
const unsupportedEasingFunctions = {
|
|
5
|
+
anticipate,
|
|
6
|
+
backInOut,
|
|
7
|
+
circInOut
|
|
8
|
+
};
|
|
9
|
+
function isUnsupportedEase(key) {
|
|
10
|
+
return key in unsupportedEasingFunctions;
|
|
11
|
+
}
|
|
12
|
+
function replaceStringEasing(transition) {
|
|
13
|
+
if (typeof transition.ease === "string" && isUnsupportedEase(transition.ease)) {
|
|
14
|
+
transition.ease = unsupportedEasingFunctions[transition.ease];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
replaceStringEasing
|
|
19
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { frame, cancelFrame } from "../frameloop/frame.mjs";
|
|
2
|
+
import { numberValueTypes } from "../value/types/maps/number.mjs";
|
|
3
|
+
import { getValueAsType } from "../value/types/utils/get-as-type.mjs";
|
|
4
|
+
class MotionValueState {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.latest = {};
|
|
7
|
+
this.values = /* @__PURE__ */ new Map();
|
|
8
|
+
}
|
|
9
|
+
set(name, value, render, computed) {
|
|
10
|
+
const existingValue = this.values.get(name);
|
|
11
|
+
if (existingValue) {
|
|
12
|
+
existingValue.onRemove();
|
|
13
|
+
}
|
|
14
|
+
const onChange = () => {
|
|
15
|
+
this.latest[name] = getValueAsType(value.get(), numberValueTypes[name]);
|
|
16
|
+
render && frame.render(render);
|
|
17
|
+
};
|
|
18
|
+
onChange();
|
|
19
|
+
const cancelOnChange = value.on("change", onChange);
|
|
20
|
+
computed && value.addDependent(computed);
|
|
21
|
+
const remove = () => {
|
|
22
|
+
cancelOnChange();
|
|
23
|
+
render && cancelFrame(render);
|
|
24
|
+
this.values.delete(name);
|
|
25
|
+
computed && value.removeDependent(computed);
|
|
26
|
+
};
|
|
27
|
+
this.values.set(name, { value, onRemove: remove });
|
|
28
|
+
return remove;
|
|
29
|
+
}
|
|
30
|
+
get(name) {
|
|
31
|
+
var _a;
|
|
32
|
+
return (_a = this.values.get(name)) == null ? void 0 : _a.value;
|
|
33
|
+
}
|
|
34
|
+
destroy() {
|
|
35
|
+
for (const value of this.values.values()) {
|
|
36
|
+
value.onRemove();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
MotionValueState
|
|
42
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { isCSSVar } from "../../render/dom/is-css-var.mjs";
|
|
2
|
+
import { transformProps } from "../../render/utils/keys-transform.mjs";
|
|
3
|
+
import { resolveElements } from "../../utils/resolve-elements.mjs";
|
|
4
|
+
import { MotionValue } from "../../value/index.mjs";
|
|
5
|
+
import { MotionValueState } from "../MotionValueState.mjs";
|
|
6
|
+
import { buildTransform } from "./transform.mjs";
|
|
7
|
+
const stateMap = /* @__PURE__ */ new WeakMap();
|
|
8
|
+
function styleEffect(subject, values) {
|
|
9
|
+
const elements = resolveElements(subject);
|
|
10
|
+
const subscriptions = [];
|
|
11
|
+
for (let i = 0; i < elements.length; i++) {
|
|
12
|
+
const element = elements[i];
|
|
13
|
+
const state = stateMap.get(element) ?? new MotionValueState();
|
|
14
|
+
stateMap.set(element, state);
|
|
15
|
+
for (const key in values) {
|
|
16
|
+
const value = values[key];
|
|
17
|
+
const remove = addValue(element, state, key, value);
|
|
18
|
+
subscriptions.push(remove);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return () => {
|
|
22
|
+
for (const cancel of subscriptions)
|
|
23
|
+
cancel();
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function addValue(element, state, key, value) {
|
|
27
|
+
let render = void 0;
|
|
28
|
+
let computed = void 0;
|
|
29
|
+
if (transformProps.has(key)) {
|
|
30
|
+
if (!state.get("transform")) {
|
|
31
|
+
state.set("transform", new MotionValue("none"), () => {
|
|
32
|
+
element.style.transform = buildTransform(state);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
computed = state.get("transform");
|
|
36
|
+
} else if (isCSSVar(key)) {
|
|
37
|
+
render = () => {
|
|
38
|
+
element.style.setProperty(key, state.latest[key]);
|
|
39
|
+
};
|
|
40
|
+
} else {
|
|
41
|
+
render = () => {
|
|
42
|
+
element.style[key] = state.latest[key];
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return state.set(key, value, render, computed);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
styleEffect
|
|
49
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { transformPropOrder } from "../../render/utils/keys-transform.mjs";
|
|
2
|
+
const translateAlias = {
|
|
3
|
+
x: "translateX",
|
|
4
|
+
y: "translateY",
|
|
5
|
+
z: "translateZ",
|
|
6
|
+
transformPerspective: "perspective"
|
|
7
|
+
};
|
|
8
|
+
function buildTransform(state) {
|
|
9
|
+
let transform = "";
|
|
10
|
+
let transformIsDefault = true;
|
|
11
|
+
for (let i = 0; i < transformPropOrder.length; i++) {
|
|
12
|
+
const key = transformPropOrder[i];
|
|
13
|
+
const value = state.latest[key];
|
|
14
|
+
if (value === void 0)
|
|
15
|
+
continue;
|
|
16
|
+
let valueIsDefault = true;
|
|
17
|
+
if (typeof value === "number") {
|
|
18
|
+
valueIsDefault = value === (key.startsWith("scale") ? 1 : 0);
|
|
19
|
+
} else {
|
|
20
|
+
valueIsDefault = parseFloat(value) === 0;
|
|
21
|
+
}
|
|
22
|
+
if (!valueIsDefault) {
|
|
23
|
+
transformIsDefault = false;
|
|
24
|
+
const transformName = translateAlias[key] || key;
|
|
25
|
+
const valueToRender = state.latest[key];
|
|
26
|
+
transform += `${transformName}(${valueToRender}) `;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return transformIsDefault ? "none" : transform.trim();
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
buildTransform
|
|
33
|
+
};
|