motion-v 1.0.2 → 1.1.0-alpha.1
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 +3754 -3130
- 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/group.mjs +8 -3
- 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.5}/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.5}/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.5}/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.5}/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.5}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.10.5/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +73 -0
- package/dist/es/external/.pnpm/framer-motion@12.10.5/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/external/framer-motion/dist/es/render/VisualElement.mjs +15 -19
- package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.5}/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.5}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +6 -7
- package/dist/es/external/.pnpm/framer-motion@12.10.5/external/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs +17 -0
- package/dist/es/external/.pnpm/framer-motion@12.10.5/external/framer-motion/dist/es/render/dom/scroll/attach-function.mjs +18 -0
- package/dist/es/external/.pnpm/framer-motion@12.10.5/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.5}/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.5}/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.5}/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.5}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +6 -6
- package/dist/es/external/.pnpm/framer-motion@12.10.5/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/external/framer-motion/dist/es/utils/delay.mjs +4 -5
- package/dist/es/external/.pnpm/framer-motion@12.10.5/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +15 -0
- package/dist/es/external/.pnpm/framer-motion@12.10.5/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +7 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5/external/motion-dom/dist/es/animation/GroupAnimation.mjs} +8 -15
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs +10 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/JSAnimation.mjs +267 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/NativeAnimation.mjs +150 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +44 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5/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.5/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.5/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.5/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.5}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5/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.5/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.5/external/motion-dom/dist/es/animation/keyframes}/KeyframesResolver.mjs +32 -35
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5/external/motion-dom/dist/es/animation/keyframes}/offsets/fill.mjs +2 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs +11 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5/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.5/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.5/external/motion-dom/dist/es/animation/keyframes}/utils/unit-conversion.mjs +2 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/utils/WithPromise.mjs +29 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5/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.5/external/motion-dom/dist/es/animation}/utils/css-variables-conversion.mjs +3 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +18 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +21 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/waapi/easing/supported.mjs +15 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5/external/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs} +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +26 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +1 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/waapi/utils/px-values.mjs +40 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +19 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/effects/MotionValueState.mjs +42 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/effects/style/index.mjs +49 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5}/external/motion-dom/dist/es/frameloop/batcher.mjs +6 -4
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.5}/external/motion-dom/dist/es/frameloop/frame.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5}/external/motion-dom/dist/es/frameloop/order.mjs +4 -0
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.5}/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.5}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +1 -1
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/gestures/drag/state/set-active.mjs +25 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/gestures/press/index.mjs +55 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/render/dom/is-css-var.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/render/dom/style-computed.mjs +8 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5/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.5/external/motion-dom/dist/es}/scroll/observe.mjs +2 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/stats/animation-count.mjs +8 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5/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.5/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.5/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.5}/external/motion-dom/dist/es/utils/resolve-elements.mjs +1 -2
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/utils/supports/flags.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5}/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.5/external/motion-dom}/dist/es/utils/transform.mjs +1 -8
- package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.5}/external/motion-dom/dist/es/value/index.mjs +33 -10
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/value/map-value.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/value/subscribe-value.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/external/motion-dom/dist/es/value/types/utils}/animatable-none.mjs +3 -3
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/value/types/utils/find.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/view/index.mjs +65 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/view/queue.mjs +45 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/view/start.mjs +115 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/view/utils/choose-layer-type.mjs +12 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/view/utils/css.mjs +35 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/view/utils/get-layer-name.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/view/utils/get-view-animations.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.10.5/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 +5 -9
- 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 +30 -31
- 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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/external/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.5}/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.5}/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.5}/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.5}/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.5}/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.5/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.5/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.5}/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.5/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.5/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.5/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.5/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.5/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.5}/external/motion-dom/dist/es/frameloop/microtask.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.5}/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.5}/external/motion-dom/dist/es/gestures/hover.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.5}/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.5}/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.5}/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.5}/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.5}/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.5}/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.5/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.5/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.5}/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.5/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.5/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.5/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.5/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.5}/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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,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.9.4/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.9.4/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.9.4/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.10.5/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
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function addUniqueItem(arr, item) {
|
|
2
|
+
if (arr.indexOf(item) === -1)
|
|
3
|
+
arr.push(item);
|
|
4
|
+
}
|
|
5
|
+
function removeItem(arr, item) {
|
|
6
|
+
const index = arr.indexOf(item);
|
|
7
|
+
if (index > -1)
|
|
8
|
+
arr.splice(index, 1);
|
|
9
|
+
}
|
|
10
|
+
function moveItem([...arr], fromIndex, toIndex) {
|
|
11
|
+
const startIndex = fromIndex < 0 ? arr.length + fromIndex : fromIndex;
|
|
12
|
+
if (startIndex >= 0 && startIndex < arr.length) {
|
|
13
|
+
const endIndex = toIndex < 0 ? arr.length + toIndex : toIndex;
|
|
14
|
+
const [item] = arr.splice(fromIndex, 1);
|
|
15
|
+
arr.splice(endIndex, 0, item);
|
|
16
|
+
}
|
|
17
|
+
return arr;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
addUniqueItem,
|
|
21
|
+
moveItem,
|
|
22
|
+
removeItem
|
|
23
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import { noop } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
|
|
1
|
+
import { noop } from "../noop.mjs";
|
|
3
2
|
const calcBezier = (t, a1, a2) => (((1 - 3 * a2 + 3 * a1) * t + (3 * a2 - 6 * a1)) * t + 3 * a1) * t;
|
|
4
3
|
const subdivisionPrecision = 1e-7;
|
|
5
4
|
const subdivisionMaxIterations = 12;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { invariant } from "
|
|
2
|
-
import { noop } from "
|
|
3
|
-
import { isBezierDefinition } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/utils/is-bezier-definition.mjs";
|
|
1
|
+
import { invariant } from "../../errors.mjs";
|
|
2
|
+
import { noop } from "../../noop.mjs";
|
|
4
3
|
import { anticipate } from "../anticipate.mjs";
|
|
5
4
|
import { backIn, backInOut, backOut } from "../back.mjs";
|
|
6
5
|
import { circIn, circInOut, circOut } from "../circ.mjs";
|
|
7
6
|
import { cubicBezier } from "../cubic-bezier.mjs";
|
|
8
7
|
import { easeIn, easeInOut, easeOut } from "../ease.mjs";
|
|
8
|
+
import { isBezierDefinition } from "./is-bezier-definition.mjs";
|
|
9
9
|
const easingLookup = {
|
|
10
10
|
linear: noop,
|
|
11
11
|
easeIn,
|
|
@@ -19,12 +19,15 @@ const easingLookup = {
|
|
|
19
19
|
backOut,
|
|
20
20
|
anticipate
|
|
21
21
|
};
|
|
22
|
+
const isValidEasing = (easing) => {
|
|
23
|
+
return typeof easing === "string";
|
|
24
|
+
};
|
|
22
25
|
const easingDefinitionToFunction = (definition) => {
|
|
23
26
|
if (isBezierDefinition(definition)) {
|
|
24
27
|
invariant(definition.length === 4, `Cubic bezier arrays must contain four numerical values.`);
|
|
25
28
|
const [x1, y1, x2, y2] = definition;
|
|
26
29
|
return cubicBezier(x1, y1, x2, y2);
|
|
27
|
-
} else if (
|
|
30
|
+
} else if (isValidEasing(definition)) {
|
|
28
31
|
invariant(easingLookup[definition] !== void 0, `Invalid easing type '${definition}'`);
|
|
29
32
|
return easingLookup[definition];
|
|
30
33
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let invariant =
|
|
1
|
+
let warning = () => {
|
|
2
|
+
};
|
|
3
|
+
let invariant = () => {
|
|
4
|
+
};
|
|
4
5
|
if (process.env.NODE_ENV !== "production") {
|
|
5
6
|
warning = (check, message) => {
|
|
6
7
|
if (!check && typeof console !== "undefined") {
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
const warned = /* @__PURE__ */ new Set();
|
|
2
|
+
function hasWarned(message) {
|
|
3
|
+
return warned.has(message);
|
|
4
|
+
}
|
|
2
5
|
function warnOnce(condition, message, element) {
|
|
3
6
|
if (condition || warned.has(message))
|
|
4
7
|
return;
|
|
5
8
|
console.warn(message);
|
|
9
|
+
if (element)
|
|
10
|
+
console.warn(element);
|
|
6
11
|
warned.add(message);
|
|
7
12
|
}
|
|
8
13
|
export {
|
|
14
|
+
hasWarned,
|
|
9
15
|
warnOnce
|
|
10
16
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { isAnimationControls } from "../../animation/utils.mjs";
|
|
2
2
|
import { Feature } from "../feature.mjs";
|
|
3
3
|
import { mountedStates } from "../../state/motion-state.mjs";
|
|
4
|
-
import { visualElementStore } from "../../external/.pnpm/framer-motion@12.5
|
|
4
|
+
import { visualElementStore } from "../../external/.pnpm/framer-motion@12.10.5/external/framer-motion/dist/es/render/store.mjs";
|
|
5
5
|
import { motionEvent } from "../../state/event.mjs";
|
|
6
6
|
import { style } from "../../state/style.mjs";
|
|
7
7
|
import { transformResetValue } from "../../state/transform.mjs";
|
|
8
8
|
import { hasChanged, resolveVariant } from "../../state/utils.mjs";
|
|
9
9
|
import { isDef } from "@vueuse/core";
|
|
10
10
|
import { createVisualElement } from "../../state/create-visual-element.mjs";
|
|
11
|
-
import { animate } from "../../external/.pnpm/framer-motion@12.5
|
|
12
|
-
import { noop } from "../../external/.pnpm/motion-utils@12.
|
|
13
|
-
import "../../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
11
|
+
import { animate } from "../../external/.pnpm/framer-motion@12.10.5/external/framer-motion/dist/es/animation/animate/index.mjs";
|
|
12
|
+
import { noop } from "../../external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/noop.mjs";
|
|
14
13
|
const STATE_TYPES = ["initial", "animate", "whileInView", "whileHover", "whilePress", "whileDrag", "whileFocus", "exit"];
|
|
15
14
|
class AnimationFeature extends Feature {
|
|
16
15
|
constructor(state) {
|
|
@@ -12,13 +12,12 @@ import { percent } from "../../../value/types/numbers/units.mjs";
|
|
|
12
12
|
import { addValueToWillChange } from "../../../value/use-will-change/add-will-change.mjs";
|
|
13
13
|
import { measurePageBox } from "../../../projection/utils/measure.mjs";
|
|
14
14
|
import { convertBoxToBoundingBox, convertBoundingBoxToBox } from "../../../projection/conversion.mjs";
|
|
15
|
-
import { animateMotionValue } from "../../../external/.pnpm/framer-motion@12.5
|
|
15
|
+
import { animateMotionValue } from "../../../external/.pnpm/framer-motion@12.10.5/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs";
|
|
16
16
|
import { mixNumber } from "../../../utils/mix/number.mjs";
|
|
17
17
|
import { invariant } from "hey-listen";
|
|
18
18
|
import { isPresent } from "../../../state/utils/is-present.mjs";
|
|
19
19
|
import { getContextWindow } from "../../../utils/get-context-window.mjs";
|
|
20
|
-
import { frame } from "../../../external/.pnpm/motion-dom@12.5
|
|
21
|
-
import "../../../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
20
|
+
import { frame } from "../../../external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
22
21
|
const elementDragControls = /* @__PURE__ */ new WeakMap();
|
|
23
22
|
class VisualElementDragControls {
|
|
24
23
|
constructor(visualElement) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
2
|
import { VisualElementDragControls } from "./VisualElementDragControls.mjs";
|
|
3
|
-
import { noop } from "../../../external/.pnpm/motion-utils@12.
|
|
4
|
-
import "../../../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { noop } from "../../../external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/noop.mjs";
|
|
5
4
|
class DragGesture extends Feature {
|
|
6
5
|
constructor(state) {
|
|
7
6
|
super(state);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { addDomEvent } from "../../../events/add-dom-event.mjs";
|
|
2
2
|
import { Feature } from "../../feature.mjs";
|
|
3
|
-
import { pipe } from "../../../external/.pnpm/
|
|
3
|
+
import { pipe } from "../../../external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/pipe.mjs";
|
|
4
4
|
class FocusGesture extends Feature {
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
|
-
import { hover } from "../../../external/.pnpm/motion-dom@12.5
|
|
3
|
-
import "../../../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
4
|
-
import { frame } from "../../../external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
2
|
+
import { hover } from "../../../external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/gestures/hover.mjs";
|
|
5
3
|
import { extractEventInfo } from "../press/index.mjs";
|
|
4
|
+
import { frame } from "../../../external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
6
5
|
function handleHoverEvent(state, event, lifecycle) {
|
|
7
6
|
const props = state.options;
|
|
8
7
|
if (props.whileHover) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
|
-
import { inView } from "../../../external/.pnpm/framer-motion@12.5
|
|
3
|
-
import { frame } from "../../../external/.pnpm/motion-dom@12.5
|
|
4
|
-
import "../../../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { inView } from "../../../external/.pnpm/framer-motion@12.10.5/external/framer-motion/dist/es/render/dom/viewport/index.mjs";
|
|
3
|
+
import { frame } from "../../../external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
5
4
|
function handleHoverEvent(state, entry, lifecycle) {
|
|
6
5
|
const props = state.options;
|
|
7
6
|
if (props.whileInView) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { addPointerEvent } from "../../../events/add-pointer-event.mjs";
|
|
2
2
|
import { extractEventInfo } from "../../../events/event-info.mjs";
|
|
3
|
-
import { distance2D } from "../../../external/.pnpm/framer-motion@12.5
|
|
4
|
-
import {
|
|
5
|
-
import "../../../external/.pnpm/motion-utils@12.
|
|
6
|
-
import {
|
|
7
|
-
import { secondsToMilliseconds, millisecondsToSeconds } from "../../../utils/time-conversion.mjs";
|
|
3
|
+
import { distance2D } from "../../../external/.pnpm/framer-motion@12.10.5/external/framer-motion/dist/es/utils/distance.mjs";
|
|
4
|
+
import { pipe } from "../../../external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/pipe.mjs";
|
|
5
|
+
import { secondsToMilliseconds, millisecondsToSeconds } from "../../../external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/time-conversion.mjs";
|
|
6
|
+
import { frame, cancelFrame, frameData } from "../../../external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
8
7
|
import { isPrimaryPointer } from "../../../events/utils/is-primary-pointer.mjs";
|
|
9
8
|
class PanSession {
|
|
10
9
|
constructor(event, handlers, { transformPagePoint, contextWindow, dragSnapToOrigin = false } = {}) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { PanSession } from "./PanSession.mjs";
|
|
2
2
|
import { addPointerEvent } from "../../../events/add-pointer-event.mjs";
|
|
3
3
|
import { Feature } from "../../feature.mjs";
|
|
4
|
-
import { noop } from "../../../external/.pnpm/motion-utils@12.
|
|
5
|
-
import "../../../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
6
|
-
import { frame } from "../../../external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
4
|
+
import { noop } from "../../../external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/noop.mjs";
|
|
7
5
|
import { getContextWindow } from "../../../utils/get-context-window.mjs";
|
|
6
|
+
import { frame } from "../../../external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
8
7
|
function asyncHandler(handler) {
|
|
9
8
|
return (event, info) => {
|
|
10
9
|
if (handler) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
|
-
import { press } from "../../../external/.pnpm/motion-dom@12.5
|
|
3
|
-
import "../../../external/.pnpm/motion-
|
|
4
|
-
import { frame } from "../../../external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
2
|
+
import { press } from "../../../external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/gestures/press/index.mjs";
|
|
3
|
+
import { frame } from "../../../external/.pnpm/motion-dom@12.10.5/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
5
4
|
function extractEventInfo(event) {
|
|
6
5
|
return {
|
|
7
6
|
point: {
|