motion-v 1.0.0-beta.1 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +3473 -2969
- package/dist/es/animation/hooks/animation-controls.mjs +1 -1
- package/dist/es/animation/hooks/use-animate.mjs +1 -1
- package/dist/es/components/animate-presence/use-pop-layout.mjs +1 -2
- package/dist/es/components/motion/use-motion-state.d.ts +706 -706
- package/dist/es/components/reorder/Group.vue.mjs +5 -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.9.0}/external/framer-motion/dist/es/animation/animate/index.mjs +2 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/animate/sequence.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/animate/single-value.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +73 -0
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +13 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +16 -24
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +8 -6
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/sequence/create.mjs +10 -10
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +3 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/stagger.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +8 -14
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +48 -25
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/shared/stack.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/styles/transform.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/VisualElement.mjs +15 -19
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +6 -7
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs +17 -0
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/attach-function.mjs +18 -0
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +9 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +2 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +3 -4
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/utils/get-timeline.mjs +27 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +2 -15
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +9 -8
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/path.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/motion-values.mjs +3 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/setters.mjs +5 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/utils/delay.mjs +4 -5
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +15 -0
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +7 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +133 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs → motion-dom@12.9.0/external/motion-dom/dist/es/animation/GroupAnimation.mjs} +8 -15
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs +10 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/JSAnimation.mjs +261 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimation.mjs +150 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +44 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs +14 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.9.0/external/motion-dom/dist/es/animation}/drivers/driver-frameloop.mjs +2 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/generators/keyframes.mjs +5 -5
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/generators/spring/find.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/generators/spring/index.mjs +15 -6
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +6 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/generators/utils/velocity.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/DOMKeyframesResolver.mjs +9 -9
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/utils → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/KeyframesResolver.mjs +26 -28
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/get-final.mjs +10 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/offsets/fill.mjs +2 -3
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs +11 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs +8 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/utils/is-none.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/utils/make-none-animatable.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/utils/unit-conversion.mjs +2 -2
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/WithPromise.mjs +29 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/active-animations.mjs +11 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.9.0/external/motion-dom/dist/es/animation}/utils/can-animate.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.9.0/external/motion-dom/dist/es/animation}/utils/css-variables-conversion.mjs +3 -3
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +18 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +21 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/supported.mjs +15 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs +36 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs → motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs} +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +26 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs +14 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +1 -3
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/px-values.mjs +40 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +19 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/effects/style-effect.mjs +30 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/batcher.mjs +6 -4
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/frame.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/index-legacy.mjs +11 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/order.mjs +4 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/sync-time.mjs +1 -2
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +1 -1
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/gestures/drag/state/set-active.mjs +25 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/gestures/press/index.mjs +53 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/is-css-var.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/style-computed.mjs +8 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/style-set.mjs +7 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.9.0/external/motion-dom/dist/es/render}/utils/keys-transform.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.9.0/external/motion-dom/dist/es}/scroll/observe.mjs +2 -3
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/stats/animation-count.mjs +8 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/stats/index.mjs +114 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/interpolate.mjs +7 -6
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/mix/color.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/mix/complex.mjs +7 -8
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/utils/resolve-elements.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/flags.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/memo.mjs +9 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/transform.mjs +1 -8
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/value/index.mjs +12 -10
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/map-value.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/subscribe-value.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/transform-value.mjs +14 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/color/rgba.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/complex/index.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.9.0/external/motion-dom/dist/es/value/types}/dimensions.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/int.mjs} +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps}/defaults.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps/number.mjs} +13 -4
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps}/transform.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/numbers/index.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/numbers/units.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils}/animatable-none.mjs +3 -3
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/find.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/index.mjs +65 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/queue.mjs +45 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/start.mjs +115 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/choose-layer-type.mjs +12 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/css.mjs +35 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/get-layer-name.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/get-view-animations.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/has-target.mjs +6 -0
- package/dist/es/external/.pnpm/motion-utils@12.8.3/external/motion-utils/dist/es/array.mjs +23 -0
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/cubic-bezier.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/steps.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/utils/get-easing-for-segment.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/utils/map.mjs +7 -4
- package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/errors.mjs +4 -3
- package/dist/es/external/.pnpm/motion-utils@12.8.3/external/motion-utils/dist/es/global-config.mjs +4 -0
- package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/warn-once.mjs +6 -0
- package/dist/es/features/animation/animation.mjs +3 -4
- package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -3
- package/dist/es/features/gestures/drag/index.mjs +1 -2
- package/dist/es/features/gestures/focus/index.mjs +1 -1
- package/dist/es/features/gestures/hover/index.mjs +2 -3
- package/dist/es/features/gestures/in-view/index.mjs +2 -3
- package/dist/es/features/gestures/pan/PanSession.mjs +4 -5
- package/dist/es/features/gestures/pan/index.mjs +2 -3
- package/dist/es/features/gestures/press/index.mjs +2 -3
- package/dist/es/features/layout/config.mjs +2 -2
- package/dist/es/features/layout/layout.mjs +2 -2
- package/dist/es/features/layout/projection.mjs +2 -2
- package/dist/es/index.mjs +243 -36
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +4 -7
- package/dist/es/state/style.mjs +2 -1
- package/dist/es/state/utils.d.ts +2 -2
- package/dist/es/types/index.d.ts +0 -1
- package/dist/es/types/transform.d.ts +0 -23
- package/dist/es/utils/index.d.ts +0 -1
- package/dist/es/utils/is.d.ts +1 -0
- package/dist/es/utils/is.mjs +4 -0
- package/dist/es/utils/use-animation-frame.mjs +1 -2
- package/dist/es/utils/use-in-view.mjs +1 -1
- package/dist/es/value/use-combine-values.mjs +2 -3
- package/dist/es/value/use-computed.mjs +1 -2
- package/dist/es/value/use-scroll.d.ts +4 -4
- package/dist/es/value/use-scroll.mjs +7 -4
- package/dist/es/value/use-spring.mjs +6 -7
- package/dist/es/value/use-time.d.ts +1 -1
- package/dist/es/value/use-time.mjs +1 -2
- package/dist/es/value/use-transform.d.ts +1 -2
- package/dist/es/value/use-transform.mjs +1 -1
- package/dist/es/value/use-velocity.mjs +2 -3
- package/dist/nuxt/index.cjs +0 -1
- package/dist/nuxt/index.mjs +0 -1
- package/dist/resolver/index.cjs +0 -1
- package/dist/resolver/index.mjs +0 -1
- package/package.json +3 -4
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +0 -247
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +0 -102
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +0 -281
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +0 -108
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +0 -32
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +0 -14
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +0 -22
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +0 -10
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +0 -6
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +0 -70
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -9
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -18
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/measure.mjs +0 -15
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -12
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/resolve-value.mjs +0 -11
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -10
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/Group.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +0 -81
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +0 -7
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +0 -37
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/press/index.mjs +0 -74
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/utils/capture-pointer.mjs +0 -12
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/memo.mjs +0 -13
- package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/array.mjs +0 -13
- package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/global-config.mjs +0 -7
- package/dist/es/state/animate-variants-children.d.ts +0 -15
- package/dist/es/utils/time-conversion.mjs +0 -8
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/generators/inertia.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/generators/spring/defaults.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/offsets/default.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/offsets/time.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/utils/is-animatable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.9.0/external/motion-dom/dist/es/animation}/utils/is-css-variable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi}/utils/accelerated-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/microtask.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/render-step.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/hover.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html/utils → motion-dom@12.9.0/external/motion-dom/dist/es/render/dom}/parse-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.9.0/external/motion-dom/dist/es/render}/utils/keys-position.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/stats/buffer.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/mix/immediate.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/mix/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/mix/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/auto.mjs} +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/color/hex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/color}/hsla-to-rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/color/hsla.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/color/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/color/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/complex/filter.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.9.0/external/motion-dom/dist/es/value/types}/test.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/utils/color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/utils/float-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils}/get-as-type.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/utils/is-nullish.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/utils/sanitize.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/utils/single-color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.8.3/external/motion-utils/dist/es}/clamp.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/anticipate.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/back.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/circ.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/ease.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/modifiers/mirror.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/modifiers/reverse.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es → motion-utils@12.8.3/external/motion-utils/dist/es/easing}/utils/is-bezier-definition.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/utils/is-easing-array.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.8.3/external/motion-utils/dist/es}/is-numerical-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.8.3/external/motion-utils/dist/es}/is-zero-value-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/memo.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/noop.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.8.3/external/motion-utils/dist/es}/pipe.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/progress.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/subscription-manager.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/velocity-per-second.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.8.3/external/motion-utils/dist/es}/wrap.mjs +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { mixColor } from "./color.mjs";
|
|
3
|
-
import { pipe } from "../pipe.mjs";
|
|
4
|
-
import { warning } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
1
|
+
import { isCSSVariableToken } from "../../animation/utils/is-css-variable.mjs";
|
|
5
2
|
import { color } from "../../value/types/color/index.mjs";
|
|
6
3
|
import { complex, analyseComplexValue } from "../../value/types/complex/index.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { invisibleValues, mixVisibility } from "./visibility.mjs";
|
|
4
|
+
import { mixColor } from "./color.mjs";
|
|
9
5
|
import { mixImmediate } from "./immediate.mjs";
|
|
6
|
+
import { mixNumber as mixNumber$1 } from "./number.mjs";
|
|
7
|
+
import { invisibleValues, mixVisibility } from "./visibility.mjs";
|
|
8
|
+
import { pipe } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/pipe.mjs";
|
|
9
|
+
import { warning } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/errors.mjs";
|
|
10
10
|
function mixNumber(a, b) {
|
|
11
11
|
return (p) => mixNumber$1(a, b, p);
|
|
12
12
|
}
|
|
@@ -49,13 +49,12 @@ function mixObject(a, b) {
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
function matchOrder(origin, target) {
|
|
52
|
-
var _a;
|
|
53
52
|
const orderedOrigin = [];
|
|
54
53
|
const pointers = { color: 0, var: 0, number: 0 };
|
|
55
54
|
for (let i = 0; i < target.values.length; i++) {
|
|
56
55
|
const type = target.types[i];
|
|
57
56
|
const originIndex = origin.indexes[type][pointers[type]];
|
|
58
|
-
const originValue =
|
|
57
|
+
const originValue = origin.values[originIndex] ?? 0;
|
|
59
58
|
orderedOrigin[i] = originValue;
|
|
60
59
|
pointers[type]++;
|
|
61
60
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
function resolveElements(elementOrSelector, scope, selectorCache) {
|
|
2
|
-
var _a;
|
|
3
2
|
if (elementOrSelector instanceof EventTarget) {
|
|
4
3
|
return [elementOrSelector];
|
|
5
4
|
} else if (typeof elementOrSelector === "string") {
|
|
@@ -7,7 +6,7 @@ function resolveElements(elementOrSelector, scope, selectorCache) {
|
|
|
7
6
|
if (scope) {
|
|
8
7
|
root = scope.current;
|
|
9
8
|
}
|
|
10
|
-
const elements = (
|
|
9
|
+
const elements = (selectorCache == null ? void 0 : selectorCache[elementOrSelector]) ?? root.querySelectorAll(elementOrSelector);
|
|
11
10
|
return elements ? Array.from(elements) : [];
|
|
12
11
|
}
|
|
13
12
|
return Array.from(elementOrSelector);
|
package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/memo.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { supportsFlags } from "./flags.mjs";
|
|
2
|
+
import { memo } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/memo.mjs";
|
|
3
|
+
function memoSupports(callback, supportsFlag) {
|
|
4
|
+
const memoized = memo(callback);
|
|
5
|
+
return () => supportsFlags[supportsFlag] ?? memoized();
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
memoSupports
|
|
9
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "../../../../../../../motion-utils@12.
|
|
2
|
-
import { memo } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/memo.mjs";
|
|
1
|
+
import { memo } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/memo.mjs";
|
|
3
2
|
const supportsScrollTimeline = /* @__PURE__ */ memo(() => window.ScrollTimeline !== void 0);
|
|
4
3
|
export {
|
|
5
4
|
supportsScrollTimeline
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { interpolate } from "./interpolate.mjs";
|
|
2
|
-
const isCustomValueType = (v) => {
|
|
3
|
-
return v && typeof v === "object" && v.mix;
|
|
4
|
-
};
|
|
5
|
-
const getMixer = (v) => isCustomValueType(v) ? v.mix : void 0;
|
|
6
2
|
function transform(...args) {
|
|
7
3
|
const useImmediate = !Array.isArray(args[0]);
|
|
8
4
|
const argOffset = useImmediate ? 0 : -1;
|
|
@@ -10,10 +6,7 @@ function transform(...args) {
|
|
|
10
6
|
const inputRange = args[1 + argOffset];
|
|
11
7
|
const outputRange = args[2 + argOffset];
|
|
12
8
|
const options = args[3 + argOffset];
|
|
13
|
-
const interpolator = interpolate(inputRange, outputRange,
|
|
14
|
-
mixer: getMixer(outputRange[0]),
|
|
15
|
-
...options
|
|
16
|
-
});
|
|
9
|
+
const interpolator = interpolate(inputRange, outputRange, options);
|
|
17
10
|
return useImmediate ? interpolator(inputValue) : interpolator;
|
|
18
11
|
}
|
|
19
12
|
export {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
-
import { SubscriptionManager } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/subscription-manager.mjs";
|
|
3
|
-
import { velocityPerSecond } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/velocity-per-second.mjs";
|
|
4
|
-
import { warnOnce } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/warn-once.mjs";
|
|
5
|
-
import { frame } from "../frameloop/frame.mjs";
|
|
6
1
|
import { time } from "../frameloop/sync-time.mjs";
|
|
2
|
+
import { frame } from "../frameloop/frame.mjs";
|
|
3
|
+
import { warnOnce } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/warn-once.mjs";
|
|
4
|
+
import { SubscriptionManager } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/subscription-manager.mjs";
|
|
5
|
+
import { velocityPerSecond } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/velocity-per-second.mjs";
|
|
7
6
|
const MAX_VELOCITY_DELTA = 30;
|
|
8
7
|
const isFloat = (value) => {
|
|
9
8
|
return !isNaN(parseFloat(value));
|
|
@@ -19,21 +18,22 @@ class MotionValue {
|
|
|
19
18
|
* - `transformer`: A function to transform incoming values with.
|
|
20
19
|
*/
|
|
21
20
|
constructor(init, options = {}) {
|
|
22
|
-
this.version = "12.
|
|
21
|
+
this.version = "12.9.0";
|
|
23
22
|
this.canTrackVelocity = null;
|
|
24
23
|
this.events = {};
|
|
25
24
|
this.updateAndNotify = (v, render = true) => {
|
|
25
|
+
var _a, _b;
|
|
26
26
|
const currentTime = time.now();
|
|
27
27
|
if (this.updatedAt !== currentTime) {
|
|
28
28
|
this.setPrevFrameValue();
|
|
29
29
|
}
|
|
30
30
|
this.prev = this.current;
|
|
31
31
|
this.setCurrent(v);
|
|
32
|
-
if (this.current !== this.prev
|
|
33
|
-
this.events.change.notify(this.current);
|
|
32
|
+
if (this.current !== this.prev) {
|
|
33
|
+
(_a = this.events.change) == null ? void 0 : _a.notify(this.current);
|
|
34
34
|
}
|
|
35
|
-
if (render
|
|
36
|
-
this.events.renderRequest.notify(this.current);
|
|
35
|
+
if (render) {
|
|
36
|
+
(_b = this.events.renderRequest) == null ? void 0 : _b.notify(this.current);
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
this.hasAnimated = false;
|
|
@@ -260,6 +260,8 @@ class MotionValue {
|
|
|
260
260
|
* @public
|
|
261
261
|
*/
|
|
262
262
|
destroy() {
|
|
263
|
+
var _a;
|
|
264
|
+
(_a = this.events.destroy) == null ? void 0 : _a.notify();
|
|
263
265
|
this.clearListeners();
|
|
264
266
|
this.stop();
|
|
265
267
|
if (this.stopPassiveEffect) {
|
package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/map-value.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { transform } from "../utils/transform.mjs";
|
|
2
|
+
import { transformValue } from "./transform-value.mjs";
|
|
3
|
+
function mapValue(inputValue, inputRange, outputRange, options) {
|
|
4
|
+
const map = transform(inputRange, outputRange, options);
|
|
5
|
+
return transformValue(() => map(inputValue.get()));
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
mapValue
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { cancelFrame, frame } from "../frameloop/frame.mjs";
|
|
2
|
+
function subscribeValue(inputValues, outputValue, getLatest) {
|
|
3
|
+
const update = () => outputValue.set(getLatest());
|
|
4
|
+
const scheduleUpdate = () => frame.preRender(update, false, true);
|
|
5
|
+
const subscriptions = inputValues.map((v) => v.on("change", scheduleUpdate));
|
|
6
|
+
outputValue.on("destroy", () => {
|
|
7
|
+
subscriptions.forEach((unsubscribe) => unsubscribe());
|
|
8
|
+
cancelFrame(update);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
subscribeValue
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { collectMotionValues, motionValue } from "./index.mjs";
|
|
2
|
+
import { subscribeValue } from "./subscribe-value.mjs";
|
|
3
|
+
function transformValue(transform) {
|
|
4
|
+
const collectedValues = [];
|
|
5
|
+
collectMotionValues.current = collectedValues;
|
|
6
|
+
const initialValue = transform();
|
|
7
|
+
collectMotionValues.current = void 0;
|
|
8
|
+
const value = motionValue(initialValue);
|
|
9
|
+
subscribeValue(collectedValues, value, transform);
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
transformValue
|
|
14
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { clamp } from "../../../utils/clamp.mjs";
|
|
2
1
|
import { number, alpha } from "../numbers/index.mjs";
|
|
3
2
|
import { sanitize } from "../utils/sanitize.mjs";
|
|
4
3
|
import { isColorString, splitColor } from "./utils.mjs";
|
|
4
|
+
import { clamp } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/clamp.mjs";
|
|
5
5
|
const clampRgbUnit = (v) => clamp(0, 255, v);
|
|
6
6
|
const rgbUnit = {
|
|
7
7
|
...number,
|
|
@@ -4,7 +4,7 @@ import { floatRegex } from "../utils/float-regex.mjs";
|
|
|
4
4
|
import { sanitize } from "../utils/sanitize.mjs";
|
|
5
5
|
function test(v) {
|
|
6
6
|
var _a, _b;
|
|
7
|
-
return isNaN(v) && typeof v === "string" && (((_a = v.match(floatRegex))
|
|
7
|
+
return isNaN(v) && typeof v === "string" && (((_a = v.match(floatRegex)) == null ? void 0 : _a.length) || 0) + (((_b = v.match(colorRegex)) == null ? void 0 : _b.length) || 0) > 0;
|
|
8
8
|
}
|
|
9
9
|
const NUMBER_TOKEN = "number";
|
|
10
10
|
const COLOR_TOKEN = "color";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { auto } from "./auto.mjs";
|
|
2
|
+
import { number } from "./numbers/index.mjs";
|
|
3
|
+
import { px, percent, degrees, vw, vh } from "./numbers/units.mjs";
|
|
3
4
|
import { testValueType } from "./test.mjs";
|
|
4
|
-
import { auto } from "./type-auto.mjs";
|
|
5
5
|
const dimensionValueTypes = [number, px, percent, degrees, vw, vh, auto];
|
|
6
6
|
const findDimensionValueType = (v) => dimensionValueTypes.find(testValueType(v));
|
|
7
7
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { color } from "
|
|
2
|
-
import { filter } from "
|
|
1
|
+
import { color } from "../color/index.mjs";
|
|
2
|
+
import { filter } from "../complex/filter.mjs";
|
|
3
3
|
import { numberValueTypes } from "./number.mjs";
|
|
4
4
|
const defaultValueTypes = {
|
|
5
5
|
...numberValueTypes,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { int } from "../int.mjs";
|
|
2
|
+
import { alpha } from "../numbers/index.mjs";
|
|
3
|
+
import { px } from "../numbers/units.mjs";
|
|
4
|
+
import { transformValueTypes } from "./transform.mjs";
|
|
5
|
+
const numberValueTypes = {
|
|
3
6
|
// Border props
|
|
4
7
|
borderWidth: px,
|
|
5
8
|
borderTopWidth: px,
|
|
@@ -34,8 +37,14 @@ const browserNumberValueTypes = {
|
|
|
34
37
|
marginLeft: px,
|
|
35
38
|
// Misc
|
|
36
39
|
backgroundPositionX: px,
|
|
37
|
-
backgroundPositionY: px
|
|
40
|
+
backgroundPositionY: px,
|
|
41
|
+
...transformValueTypes,
|
|
42
|
+
zIndex: int,
|
|
43
|
+
// SVG
|
|
44
|
+
fillOpacity: alpha,
|
|
45
|
+
strokeOpacity: alpha,
|
|
46
|
+
numOctaves: int
|
|
38
47
|
};
|
|
39
48
|
export {
|
|
40
|
-
|
|
49
|
+
numberValueTypes
|
|
41
50
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { scale, alpha } from "
|
|
2
|
-
import { degrees, px, progressPercentage } from "
|
|
1
|
+
import { scale, alpha } from "../numbers/index.mjs";
|
|
2
|
+
import { degrees, px, progressPercentage } from "../numbers/units.mjs";
|
|
3
3
|
const transformValueTypes = {
|
|
4
4
|
rotate: degrees,
|
|
5
5
|
rotateX: degrees,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const createUnitType = (unit) => ({
|
|
1
|
+
const createUnitType = /* @__NO_SIDE_EFFECTS__ */ (unit) => ({
|
|
2
2
|
test: (v) => typeof v === "string" && v.endsWith(unit) && v.split(" ").length === 1,
|
|
3
3
|
parse: parseFloat,
|
|
4
4
|
transform: (v) => `${v}${unit}`
|
|
@@ -8,11 +8,11 @@ const percent = /* @__PURE__ */ createUnitType("%");
|
|
|
8
8
|
const px = /* @__PURE__ */ createUnitType("px");
|
|
9
9
|
const vh = /* @__PURE__ */ createUnitType("vh");
|
|
10
10
|
const vw = /* @__PURE__ */ createUnitType("vw");
|
|
11
|
-
const progressPercentage = {
|
|
11
|
+
const progressPercentage = /* @__PURE__ */ (() => ({
|
|
12
12
|
...percent,
|
|
13
13
|
parse: (v) => percent.parse(v) / 100,
|
|
14
14
|
transform: (v) => percent.transform(v * 100)
|
|
15
|
-
};
|
|
15
|
+
}))();
|
|
16
16
|
export {
|
|
17
17
|
degrees,
|
|
18
18
|
percent,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { complex } from "
|
|
2
|
-
import { filter } from "
|
|
3
|
-
import { getDefaultValueType } from "
|
|
1
|
+
import { complex } from "../complex/index.mjs";
|
|
2
|
+
import { filter } from "../complex/filter.mjs";
|
|
3
|
+
import { getDefaultValueType } from "../maps/defaults.mjs";
|
|
4
4
|
function getAnimatableNone(key, value) {
|
|
5
5
|
let defaultValueType = getDefaultValueType(key);
|
|
6
6
|
if (defaultValueType !== filter)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { color } from "../color/index.mjs";
|
|
2
|
+
import { complex } from "../complex/index.mjs";
|
|
3
|
+
import { dimensionValueTypes } from "../dimensions.mjs";
|
|
4
|
+
import { testValueType } from "../test.mjs";
|
|
5
|
+
const valueTypes = [...dimensionValueTypes, color, complex];
|
|
6
|
+
const findValueType = (v) => valueTypes.find(testValueType(v));
|
|
7
|
+
export {
|
|
8
|
+
findValueType
|
|
9
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { addToQueue } from "./queue.mjs";
|
|
2
|
+
import { noop } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/noop.mjs";
|
|
3
|
+
class ViewTransitionBuilder {
|
|
4
|
+
constructor(update, options = {}) {
|
|
5
|
+
this.currentTarget = "root";
|
|
6
|
+
this.targets = /* @__PURE__ */ new Map();
|
|
7
|
+
this.notifyReady = noop;
|
|
8
|
+
this.readyPromise = new Promise((resolve) => {
|
|
9
|
+
this.notifyReady = resolve;
|
|
10
|
+
});
|
|
11
|
+
this.update = update;
|
|
12
|
+
this.options = {
|
|
13
|
+
interrupt: "wait",
|
|
14
|
+
...options
|
|
15
|
+
};
|
|
16
|
+
addToQueue(this);
|
|
17
|
+
}
|
|
18
|
+
get(selector) {
|
|
19
|
+
this.currentTarget = selector;
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
layout(keyframes, options) {
|
|
23
|
+
this.updateTarget("layout", keyframes, options);
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
new(keyframes, options) {
|
|
27
|
+
this.updateTarget("new", keyframes, options);
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
old(keyframes, options) {
|
|
31
|
+
this.updateTarget("old", keyframes, options);
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
enter(keyframes, options) {
|
|
35
|
+
this.updateTarget("enter", keyframes, options);
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
exit(keyframes, options) {
|
|
39
|
+
this.updateTarget("exit", keyframes, options);
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
crossfade(options) {
|
|
43
|
+
this.updateTarget("enter", { opacity: 1 }, options);
|
|
44
|
+
this.updateTarget("exit", { opacity: 0 }, options);
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
updateTarget(target, keyframes, options = {}) {
|
|
48
|
+
const { currentTarget, targets } = this;
|
|
49
|
+
if (!targets.has(currentTarget)) {
|
|
50
|
+
targets.set(currentTarget, {});
|
|
51
|
+
}
|
|
52
|
+
const targetData = targets.get(currentTarget);
|
|
53
|
+
targetData[target] = { keyframes, options };
|
|
54
|
+
}
|
|
55
|
+
then(resolve, reject) {
|
|
56
|
+
return this.readyPromise.then(resolve, reject);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function animateView(update, defaultOptions = {}) {
|
|
60
|
+
return new ViewTransitionBuilder(update, defaultOptions);
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
ViewTransitionBuilder,
|
|
64
|
+
animateView
|
|
65
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { microtask } from "../frameloop/microtask.mjs";
|
|
2
|
+
import { startViewAnimation } from "./start.mjs";
|
|
3
|
+
import { removeItem } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/array.mjs";
|
|
4
|
+
let builders = [];
|
|
5
|
+
let current = null;
|
|
6
|
+
function next() {
|
|
7
|
+
current = null;
|
|
8
|
+
const [nextBuilder] = builders;
|
|
9
|
+
if (nextBuilder)
|
|
10
|
+
start(nextBuilder);
|
|
11
|
+
}
|
|
12
|
+
function start(builder) {
|
|
13
|
+
removeItem(builders, builder);
|
|
14
|
+
current = builder;
|
|
15
|
+
startViewAnimation(builder).then((animation) => {
|
|
16
|
+
builder.notifyReady(animation);
|
|
17
|
+
animation.finished.finally(next);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function processQueue() {
|
|
21
|
+
var _a;
|
|
22
|
+
for (let i = builders.length - 1; i >= 0; i--) {
|
|
23
|
+
const builder = builders[i];
|
|
24
|
+
const { interrupt } = builder.options;
|
|
25
|
+
if (interrupt === "immediate") {
|
|
26
|
+
const batchedUpdates = builders.slice(0, i + 1).map((b) => b.update);
|
|
27
|
+
const remaining = builders.slice(i + 1);
|
|
28
|
+
builder.update = () => {
|
|
29
|
+
batchedUpdates.forEach((update) => update());
|
|
30
|
+
};
|
|
31
|
+
builders = [builder, ...remaining];
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (!current || ((_a = builders[0]) == null ? void 0 : _a.options.interrupt) === "immediate") {
|
|
36
|
+
next();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function addToQueue(builder) {
|
|
40
|
+
builders.push(builder);
|
|
41
|
+
microtask.render(processQueue);
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
addToQueue
|
|
45
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { GroupAnimation } from "../animation/GroupAnimation.mjs";
|
|
2
|
+
import { NativeAnimation } from "../animation/NativeAnimation.mjs";
|
|
3
|
+
import { NativeAnimationWrapper } from "../animation/NativeAnimationWrapper.mjs";
|
|
4
|
+
import { getValueTransition } from "../animation/utils/get-value-transition.mjs";
|
|
5
|
+
import { mapEasingToNativeEasing } from "../animation/waapi/easing/map-easing.mjs";
|
|
6
|
+
import { applyGeneratorOptions } from "../animation/waapi/utils/apply-generator.mjs";
|
|
7
|
+
import { chooseLayerType } from "./utils/choose-layer-type.mjs";
|
|
8
|
+
import { css } from "./utils/css.mjs";
|
|
9
|
+
import { getLayerName } from "./utils/get-layer-name.mjs";
|
|
10
|
+
import { getViewAnimations } from "./utils/get-view-animations.mjs";
|
|
11
|
+
import { hasTarget } from "./utils/has-target.mjs";
|
|
12
|
+
import { secondsToMilliseconds } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/time-conversion.mjs";
|
|
13
|
+
const definitionNames = ["layout", "enter", "exit", "new", "old"];
|
|
14
|
+
function startViewAnimation(builder) {
|
|
15
|
+
const { update, targets, options: defaultOptions } = builder;
|
|
16
|
+
if (!document.startViewTransition) {
|
|
17
|
+
return new Promise(async (resolve) => {
|
|
18
|
+
await update();
|
|
19
|
+
resolve(new GroupAnimation([]));
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
if (!hasTarget("root", targets)) {
|
|
23
|
+
css.set(":root", {
|
|
24
|
+
"view-transition-name": "none"
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
css.set("::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)", { "animation-timing-function": "linear !important" });
|
|
28
|
+
css.commit();
|
|
29
|
+
const transition = document.startViewTransition(async () => {
|
|
30
|
+
await update();
|
|
31
|
+
});
|
|
32
|
+
transition.finished.finally(() => {
|
|
33
|
+
css.remove();
|
|
34
|
+
});
|
|
35
|
+
return new Promise((resolve) => {
|
|
36
|
+
transition.ready.then(() => {
|
|
37
|
+
const generatedViewAnimations = getViewAnimations();
|
|
38
|
+
const animations = [];
|
|
39
|
+
targets.forEach((definition, target) => {
|
|
40
|
+
for (const key of definitionNames) {
|
|
41
|
+
if (!definition[key])
|
|
42
|
+
continue;
|
|
43
|
+
const { keyframes, options } = definition[key];
|
|
44
|
+
for (let [valueName, valueKeyframes] of Object.entries(keyframes)) {
|
|
45
|
+
if (!valueKeyframes)
|
|
46
|
+
continue;
|
|
47
|
+
const valueOptions = {
|
|
48
|
+
...getValueTransition(defaultOptions, valueName),
|
|
49
|
+
...getValueTransition(options, valueName)
|
|
50
|
+
};
|
|
51
|
+
const type = chooseLayerType(key);
|
|
52
|
+
if (valueName === "opacity" && !Array.isArray(valueKeyframes)) {
|
|
53
|
+
const initialValue = type === "new" ? 0 : 1;
|
|
54
|
+
valueKeyframes = [initialValue, valueKeyframes];
|
|
55
|
+
}
|
|
56
|
+
if (typeof valueOptions.delay === "function") {
|
|
57
|
+
valueOptions.delay = valueOptions.delay(0, 1);
|
|
58
|
+
}
|
|
59
|
+
valueOptions.duration && (valueOptions.duration = secondsToMilliseconds(valueOptions.duration));
|
|
60
|
+
valueOptions.delay && (valueOptions.delay = secondsToMilliseconds(valueOptions.delay));
|
|
61
|
+
const animation = new NativeAnimation({
|
|
62
|
+
...valueOptions,
|
|
63
|
+
element: document.documentElement,
|
|
64
|
+
name: valueName,
|
|
65
|
+
pseudoElement: `::view-transition-${type}(${target})`,
|
|
66
|
+
keyframes: valueKeyframes
|
|
67
|
+
});
|
|
68
|
+
animations.push(animation);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
for (const animation of generatedViewAnimations) {
|
|
73
|
+
if (animation.playState === "finished")
|
|
74
|
+
continue;
|
|
75
|
+
const { effect } = animation;
|
|
76
|
+
if (!effect || !(effect instanceof KeyframeEffect))
|
|
77
|
+
continue;
|
|
78
|
+
const { pseudoElement } = effect;
|
|
79
|
+
if (!pseudoElement)
|
|
80
|
+
continue;
|
|
81
|
+
const name = getLayerName(pseudoElement);
|
|
82
|
+
if (!name)
|
|
83
|
+
continue;
|
|
84
|
+
const targetDefinition = targets.get(name.layer);
|
|
85
|
+
if (!targetDefinition) {
|
|
86
|
+
const transitionName = name.type === "group" ? "layout" : "";
|
|
87
|
+
let animationTransition = {
|
|
88
|
+
...getValueTransition(defaultOptions, transitionName)
|
|
89
|
+
};
|
|
90
|
+
animationTransition.duration && (animationTransition.duration = secondsToMilliseconds(animationTransition.duration));
|
|
91
|
+
animationTransition = applyGeneratorOptions(animationTransition);
|
|
92
|
+
const easing = mapEasingToNativeEasing(animationTransition.ease, animationTransition.duration);
|
|
93
|
+
effect.updateTiming({
|
|
94
|
+
delay: secondsToMilliseconds(animationTransition.delay ?? 0),
|
|
95
|
+
duration: animationTransition.duration,
|
|
96
|
+
easing
|
|
97
|
+
});
|
|
98
|
+
animations.push(new NativeAnimationWrapper(animation));
|
|
99
|
+
} else if (hasOpacity(targetDefinition, "enter") && hasOpacity(targetDefinition, "exit") && effect.getKeyframes().some((keyframe) => keyframe.mixBlendMode)) {
|
|
100
|
+
animations.push(new NativeAnimationWrapper(animation));
|
|
101
|
+
} else {
|
|
102
|
+
animation.cancel();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
resolve(new GroupAnimation(animations));
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function hasOpacity(target, key) {
|
|
110
|
+
var _a;
|
|
111
|
+
return (_a = target == null ? void 0 : target[key]) == null ? void 0 : _a.keyframes.opacity;
|
|
112
|
+
}
|
|
113
|
+
export {
|
|
114
|
+
startViewAnimation
|
|
115
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function chooseLayerType(valueName) {
|
|
2
|
+
if (valueName === "layout")
|
|
3
|
+
return "group";
|
|
4
|
+
if (valueName === "enter" || valueName === "new")
|
|
5
|
+
return "new";
|
|
6
|
+
if (valueName === "exit" || valueName === "old")
|
|
7
|
+
return "old";
|
|
8
|
+
return "group";
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
chooseLayerType
|
|
12
|
+
};
|
package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/css.mjs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
let pendingRules = {};
|
|
2
|
+
let style = null;
|
|
3
|
+
const css = {
|
|
4
|
+
set: (selector, values) => {
|
|
5
|
+
pendingRules[selector] = values;
|
|
6
|
+
},
|
|
7
|
+
commit: () => {
|
|
8
|
+
if (!style) {
|
|
9
|
+
style = document.createElement("style");
|
|
10
|
+
style.id = "motion-view";
|
|
11
|
+
}
|
|
12
|
+
let cssText = "";
|
|
13
|
+
for (const selector in pendingRules) {
|
|
14
|
+
const rule = pendingRules[selector];
|
|
15
|
+
cssText += `${selector} {
|
|
16
|
+
`;
|
|
17
|
+
for (const [property, value] of Object.entries(rule)) {
|
|
18
|
+
cssText += ` ${property}: ${value};
|
|
19
|
+
`;
|
|
20
|
+
}
|
|
21
|
+
cssText += "}\n";
|
|
22
|
+
}
|
|
23
|
+
style.textContent = cssText;
|
|
24
|
+
document.head.appendChild(style);
|
|
25
|
+
pendingRules = {};
|
|
26
|
+
},
|
|
27
|
+
remove: () => {
|
|
28
|
+
if (style && style.parentElement) {
|
|
29
|
+
style.parentElement.removeChild(style);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
css
|
|
35
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function filterViewAnimations(animation) {
|
|
2
|
+
var _a;
|
|
3
|
+
const { effect } = animation;
|
|
4
|
+
if (!effect)
|
|
5
|
+
return false;
|
|
6
|
+
return effect.target === document.documentElement && ((_a = effect.pseudoElement) == null ? void 0 : _a.startsWith("::view-transition"));
|
|
7
|
+
}
|
|
8
|
+
function getViewAnimations() {
|
|
9
|
+
return document.getAnimations().filter(filterViewAnimations);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
getViewAnimations
|
|
13
|
+
};
|