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,17 +1,8 @@
|
|
|
1
|
-
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
-
import { noop } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
|
|
3
|
-
import { SubscriptionManager } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/subscription-manager.mjs";
|
|
4
|
-
import { getValueTransition } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
|
|
5
|
-
import { cancelFrame, frameData, frameSteps, frame } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
6
|
-
import { microtask } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/microtask.mjs";
|
|
7
|
-
import { time } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/sync-time.mjs";
|
|
8
1
|
import { animateSingleValue } from "../../animation/animate/single-value.mjs";
|
|
9
2
|
import { getOptimisedAppearId } from "../../animation/optimized-appear/get-appear-id.mjs";
|
|
10
3
|
import { isSVGElement } from "../../render/dom/utils/is-svg-element.mjs";
|
|
11
4
|
import { FlatTree } from "../../render/utils/flat-tree.mjs";
|
|
12
|
-
import { clamp } from "../../utils/clamp.mjs";
|
|
13
5
|
import { delay } from "../../utils/delay.mjs";
|
|
14
|
-
import { mixNumber } from "../../utils/mix/number.mjs";
|
|
15
6
|
import { resolveMotionValue } from "../../value/utils/resolve-motion-value.mjs";
|
|
16
7
|
import { mixValues } from "../animation/mix-values.mjs";
|
|
17
8
|
import { copyBoxInto, copyAxisDeltaInto } from "../geometry/copy.mjs";
|
|
@@ -26,6 +17,21 @@ import { buildProjectionTransform } from "../styles/transform.mjs";
|
|
|
26
17
|
import { eachAxis } from "../utils/each-axis.mjs";
|
|
27
18
|
import { hasTransform, hasScale, has2DTranslate } from "../utils/has-transform.mjs";
|
|
28
19
|
import { globalProjectionState } from "./state.mjs";
|
|
20
|
+
import { noop } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/noop.mjs";
|
|
21
|
+
import { statsBuffer } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/stats/buffer.mjs";
|
|
22
|
+
import { SubscriptionManager } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/subscription-manager.mjs";
|
|
23
|
+
import { getValueTransition } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
|
|
24
|
+
import { cancelFrame, frameData, frameSteps, frame } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
25
|
+
import { time } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/sync-time.mjs";
|
|
26
|
+
import { clamp } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/clamp.mjs";
|
|
27
|
+
import { microtask } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/microtask.mjs";
|
|
28
|
+
import { activeAnimations } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/stats/animation-count.mjs";
|
|
29
|
+
import { mixNumber } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/utils/mix/number.mjs";
|
|
30
|
+
const metrics = {
|
|
31
|
+
nodes: 0,
|
|
32
|
+
calculatedTargetDeltas: 0,
|
|
33
|
+
calculatedProjections: 0
|
|
34
|
+
};
|
|
29
35
|
const transformAxes = ["", "X", "Y", "Z"];
|
|
30
36
|
const hiddenVisibility = { visibility: "hidden" };
|
|
31
37
|
const animationTarget = 1e3;
|
|
@@ -59,7 +65,7 @@ function cancelTreeOptimisedTransformAnimations(projectionNode) {
|
|
|
59
65
|
}
|
|
60
66
|
function createProjectionNode({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform }) {
|
|
61
67
|
return class ProjectionNode {
|
|
62
|
-
constructor(latestValues = {}, parent = defaultParent
|
|
68
|
+
constructor(latestValues = {}, parent = defaultParent == null ? void 0 : defaultParent()) {
|
|
63
69
|
this.id = id++;
|
|
64
70
|
this.animationId = 0;
|
|
65
71
|
this.children = /* @__PURE__ */ new Set();
|
|
@@ -91,10 +97,16 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
91
97
|
};
|
|
92
98
|
this.updateProjection = () => {
|
|
93
99
|
this.projectionUpdateScheduled = false;
|
|
100
|
+
if (statsBuffer.value) {
|
|
101
|
+
metrics.nodes = metrics.calculatedTargetDeltas = metrics.calculatedProjections = 0;
|
|
102
|
+
}
|
|
94
103
|
this.nodes.forEach(propagateDirtyNodes);
|
|
95
104
|
this.nodes.forEach(resolveTargetDelta);
|
|
96
105
|
this.nodes.forEach(calcProjection);
|
|
97
106
|
this.nodes.forEach(cleanDirtyNodes);
|
|
107
|
+
if (statsBuffer.addProjectionMetrics) {
|
|
108
|
+
statsBuffer.addProjectionMetrics(metrics);
|
|
109
|
+
}
|
|
98
110
|
};
|
|
99
111
|
this.resolvedRelativeTargetAt = 0;
|
|
100
112
|
this.hasProjected = false;
|
|
@@ -395,7 +407,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
395
407
|
if (!visualElement)
|
|
396
408
|
return createBox();
|
|
397
409
|
const box = visualElement.measureViewportBox();
|
|
398
|
-
const wasInScrollRoot = ((_a = this.scroll)
|
|
410
|
+
const wasInScrollRoot = ((_a = this.scroll) == null ? void 0 : _a.wasRoot) || this.path.some(checkNodeWasScrollRoot);
|
|
399
411
|
if (!wasInScrollRoot) {
|
|
400
412
|
const { scroll } = this.root;
|
|
401
413
|
if (scroll) {
|
|
@@ -409,7 +421,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
409
421
|
var _a;
|
|
410
422
|
const boxWithoutScroll = createBox();
|
|
411
423
|
copyBoxInto(boxWithoutScroll, box);
|
|
412
|
-
if ((_a = this.scroll)
|
|
424
|
+
if ((_a = this.scroll) == null ? void 0 : _a.wasRoot) {
|
|
413
425
|
return boxWithoutScroll;
|
|
414
426
|
}
|
|
415
427
|
for (let i = 0; i < this.path.length; i++) {
|
|
@@ -500,7 +512,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
500
512
|
this.isTransformDirty || (this.isTransformDirty = lead.isTransformDirty);
|
|
501
513
|
this.isSharedProjectionDirty || (this.isSharedProjectionDirty = lead.isSharedProjectionDirty);
|
|
502
514
|
const isShared = Boolean(this.resumingFrom) || this !== lead;
|
|
503
|
-
const canSkip = !(forceRecalculation || isShared && this.isSharedProjectionDirty || this.isProjectionDirty || ((_a = this.parent)
|
|
515
|
+
const canSkip = !(forceRecalculation || isShared && this.isSharedProjectionDirty || this.isProjectionDirty || ((_a = this.parent) == null ? void 0 : _a.isProjectionDirty) || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize);
|
|
504
516
|
if (canSkip)
|
|
505
517
|
return;
|
|
506
518
|
const { layout, layoutId } = this.options;
|
|
@@ -553,6 +565,9 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
553
565
|
this.relativeParent = this.relativeTarget = void 0;
|
|
554
566
|
}
|
|
555
567
|
}
|
|
568
|
+
if (statsBuffer.value) {
|
|
569
|
+
metrics.calculatedTargetDeltas++;
|
|
570
|
+
}
|
|
556
571
|
}
|
|
557
572
|
getClosestProjectingParent() {
|
|
558
573
|
if (!this.parent || hasScale(this.parent.latestValues) || has2DTranslate(this.parent.latestValues)) {
|
|
@@ -572,7 +587,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
572
587
|
const lead = this.getLead();
|
|
573
588
|
const isShared = Boolean(this.resumingFrom) || this !== lead;
|
|
574
589
|
let canSkip = true;
|
|
575
|
-
if (this.isProjectionDirty || ((_a = this.parent)
|
|
590
|
+
if (this.isProjectionDirty || ((_a = this.parent) == null ? void 0 : _a.isProjectionDirty)) {
|
|
576
591
|
canSkip = false;
|
|
577
592
|
}
|
|
578
593
|
if (isShared && (this.isSharedProjectionDirty || this.isTransformDirty)) {
|
|
@@ -618,6 +633,9 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
618
633
|
this.scheduleRender();
|
|
619
634
|
this.notifyListeners("projectionUpdate", target);
|
|
620
635
|
}
|
|
636
|
+
if (statsBuffer.value) {
|
|
637
|
+
metrics.calculatedProjections++;
|
|
638
|
+
}
|
|
621
639
|
}
|
|
622
640
|
hide() {
|
|
623
641
|
this.isVisible = false;
|
|
@@ -627,7 +645,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
627
645
|
}
|
|
628
646
|
scheduleRender(notifyAll = true) {
|
|
629
647
|
var _a;
|
|
630
|
-
(_a = this.options.visualElement)
|
|
648
|
+
(_a = this.options.visualElement) == null ? void 0 : _a.scheduleRender();
|
|
631
649
|
if (notifyAll) {
|
|
632
650
|
const stack = this.getStack();
|
|
633
651
|
stack && stack.scheduleRender();
|
|
@@ -696,6 +714,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
696
714
|
}
|
|
697
715
|
this.pendingAnimation = frame.update(() => {
|
|
698
716
|
globalProjectionState.hasAnimatedSinceResize = true;
|
|
717
|
+
activeAnimations.layout++;
|
|
699
718
|
this.currentAnimation = animateSingleValue(0, animationTarget, {
|
|
700
719
|
...options,
|
|
701
720
|
onUpdate: (latest) => {
|
|
@@ -703,8 +722,10 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
703
722
|
options.onUpdate && options.onUpdate(latest);
|
|
704
723
|
},
|
|
705
724
|
onStop: () => {
|
|
725
|
+
activeAnimations.layout--;
|
|
706
726
|
},
|
|
707
727
|
onComplete: () => {
|
|
728
|
+
activeAnimations.layout--;
|
|
708
729
|
options.onComplete && options.onComplete();
|
|
709
730
|
this.completeAnimation();
|
|
710
731
|
}
|
|
@@ -769,12 +790,12 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
769
790
|
getLead() {
|
|
770
791
|
var _a;
|
|
771
792
|
const { layoutId } = this.options;
|
|
772
|
-
return layoutId ? ((_a = this.getStack())
|
|
793
|
+
return layoutId ? ((_a = this.getStack()) == null ? void 0 : _a.lead) || this : this;
|
|
773
794
|
}
|
|
774
795
|
getPrevLead() {
|
|
775
796
|
var _a;
|
|
776
797
|
const { layoutId } = this.options;
|
|
777
|
-
return layoutId ? (_a = this.getStack())
|
|
798
|
+
return layoutId ? (_a = this.getStack()) == null ? void 0 : _a.prevLead : void 0;
|
|
778
799
|
}
|
|
779
800
|
getStack() {
|
|
780
801
|
const { layoutId } = this.options;
|
|
@@ -829,7 +850,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
829
850
|
visualElement.scheduleRender();
|
|
830
851
|
}
|
|
831
852
|
getProjectionStyles(styleProp) {
|
|
832
|
-
var _a, _b;
|
|
833
853
|
if (!this.instance || this.isSVG)
|
|
834
854
|
return void 0;
|
|
835
855
|
if (!this.isVisible) {
|
|
@@ -842,7 +862,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
842
862
|
if (this.needsReset) {
|
|
843
863
|
this.needsReset = false;
|
|
844
864
|
styles.opacity = "";
|
|
845
|
-
styles.pointerEvents = resolveMotionValue(styleProp
|
|
865
|
+
styles.pointerEvents = resolveMotionValue(styleProp == null ? void 0 : styleProp.pointerEvents) || "";
|
|
846
866
|
styles.transform = transformTemplate ? transformTemplate(this.latestValues, "") : "none";
|
|
847
867
|
return styles;
|
|
848
868
|
}
|
|
@@ -851,7 +871,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
851
871
|
const emptyStyles = {};
|
|
852
872
|
if (this.options.layoutId) {
|
|
853
873
|
emptyStyles.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1;
|
|
854
|
-
emptyStyles.pointerEvents = resolveMotionValue(styleProp
|
|
874
|
+
emptyStyles.pointerEvents = resolveMotionValue(styleProp == null ? void 0 : styleProp.pointerEvents) || "";
|
|
855
875
|
}
|
|
856
876
|
if (this.hasProjected && !hasTransform(this.latestValues)) {
|
|
857
877
|
emptyStyles.transform = transformTemplate ? transformTemplate({}, "") : "none";
|
|
@@ -868,7 +888,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
868
888
|
const { x, y } = this.projectionDelta;
|
|
869
889
|
styles.transformOrigin = `${x.origin * 100}% ${y.origin * 100}% 0`;
|
|
870
890
|
if (lead.animationValues) {
|
|
871
|
-
styles.opacity = lead === this ?
|
|
891
|
+
styles.opacity = lead === this ? valuesToRender.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : valuesToRender.opacityExit;
|
|
872
892
|
} else {
|
|
873
893
|
styles.opacity = lead === this ? valuesToRender.opacity !== void 0 ? valuesToRender.opacity : "" : valuesToRender.opacityExit !== void 0 ? valuesToRender.opacityExit : 0;
|
|
874
894
|
}
|
|
@@ -891,7 +911,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
891
911
|
}
|
|
892
912
|
}
|
|
893
913
|
if (this.options.layoutId) {
|
|
894
|
-
styles.pointerEvents = lead === this ? resolveMotionValue(styleProp
|
|
914
|
+
styles.pointerEvents = lead === this ? resolveMotionValue(styleProp == null ? void 0 : styleProp.pointerEvents) || "" : "none";
|
|
895
915
|
}
|
|
896
916
|
return styles;
|
|
897
917
|
}
|
|
@@ -902,7 +922,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
902
922
|
resetTree() {
|
|
903
923
|
this.root.nodes.forEach((node) => {
|
|
904
924
|
var _a;
|
|
905
|
-
return (_a = node.currentAnimation)
|
|
925
|
+
return (_a = node.currentAnimation) == null ? void 0 : _a.stop();
|
|
906
926
|
});
|
|
907
927
|
this.root.nodes.forEach(clearMeasurements);
|
|
908
928
|
this.root.sharedNodes.clear();
|
|
@@ -914,7 +934,7 @@ function updateLayout(node) {
|
|
|
914
934
|
}
|
|
915
935
|
function notifyLayoutUpdate(node) {
|
|
916
936
|
var _a;
|
|
917
|
-
const snapshot = ((_a = node.resumeFrom)
|
|
937
|
+
const snapshot = ((_a = node.resumeFrom) == null ? void 0 : _a.snapshot) || node.snapshot;
|
|
918
938
|
if (node.isLead() && node.layout && snapshot && node.hasListeners("didUpdate")) {
|
|
919
939
|
const { layoutBox: layout, measuredBox: measuredLayout } = node.layout;
|
|
920
940
|
const { animationType } = node.options;
|
|
@@ -982,6 +1002,9 @@ function notifyLayoutUpdate(node) {
|
|
|
982
1002
|
node.options.transition = void 0;
|
|
983
1003
|
}
|
|
984
1004
|
function propagateDirtyNodes(node) {
|
|
1005
|
+
if (statsBuffer.value) {
|
|
1006
|
+
metrics.nodes++;
|
|
1007
|
+
}
|
|
985
1008
|
if (!node.parent)
|
|
986
1009
|
return;
|
|
987
1010
|
if (!node.isProjecting()) {
|
|
@@ -1062,7 +1085,7 @@ function shouldAnimatePositionOnly(animationType, snapshot, layout) {
|
|
|
1062
1085
|
}
|
|
1063
1086
|
function checkNodeWasScrollRoot(node) {
|
|
1064
1087
|
var _a;
|
|
1065
|
-
return node !== node.root && ((_a = node.scroll)
|
|
1088
|
+
return node !== node.root && ((_a = node.scroll) == null ? void 0 : _a.wasRoot);
|
|
1066
1089
|
}
|
|
1067
1090
|
export {
|
|
1068
1091
|
cleanDirtyNodes,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { addUniqueItem, removeItem } from "../../../../../../../motion-utils@12.
|
|
2
|
-
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
1
|
+
import { addUniqueItem, removeItem } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/array.mjs";
|
|
3
2
|
class NodeStack {
|
|
4
3
|
constructor() {
|
|
5
4
|
this.members = [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { complex } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/complex/index.mjs";
|
|
2
|
+
import { mixNumber } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/utils/mix/number.mjs";
|
|
3
3
|
const correctBoxShadow = {
|
|
4
4
|
correct: (latest, { treeScale, projectionDelta }) => {
|
|
5
5
|
const original = latest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isCSSVariableName } from "
|
|
1
|
+
import { isCSSVariableName } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/is-css-variable.mjs";
|
|
2
2
|
const scaleCorrectors = {};
|
|
3
3
|
function addScaleCorrector(correctors) {
|
|
4
4
|
for (const key in correctors) {
|
|
@@ -2,7 +2,7 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
|
|
|
2
2
|
let transform = "";
|
|
3
3
|
const xTranslate = delta.x.translate / treeScale.x;
|
|
4
4
|
const yTranslate = delta.y.translate / treeScale.y;
|
|
5
|
-
const zTranslate = (latestTransform
|
|
5
|
+
const zTranslate = (latestTransform == null ? void 0 : latestTransform.z) || 0;
|
|
6
6
|
if (xTranslate || yTranslate || zTranslate) {
|
|
7
7
|
transform = `translate3d(${xTranslate}px, ${yTranslate}px, ${zTranslate}px) `;
|
|
8
8
|
}
|
|
@@ -1,25 +1,24 @@
|
|
|
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 { warnOnce } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/warn-once.mjs";
|
|
4
|
-
import { frame, cancelFrame } from "../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
5
|
-
import { time } from "../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/sync-time.mjs";
|
|
6
|
-
import { motionValue } from "../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/value/index.mjs";
|
|
7
1
|
import { featureDefinitions } from "../motion/features/definitions.mjs";
|
|
8
2
|
import { createBox } from "../projection/geometry/models.mjs";
|
|
9
|
-
import { isNumericalString } from "../utils/is-numerical-string.mjs";
|
|
10
|
-
import { isZeroValueString } from "../utils/is-zero-value-string.mjs";
|
|
11
3
|
import { initPrefersReducedMotion } from "../utils/reduced-motion/index.mjs";
|
|
12
4
|
import { hasReducedMotionListener, prefersReducedMotion } from "../utils/reduced-motion/state.mjs";
|
|
13
|
-
import { complex } from "../value/types/complex/index.mjs";
|
|
14
5
|
import { isMotionValue } from "../value/utils/is-motion-value.mjs";
|
|
15
|
-
import { getAnimatableNone } from "./dom/value-types/animatable-none.mjs";
|
|
16
|
-
import { findValueType } from "./dom/value-types/find.mjs";
|
|
17
|
-
import { transformProps } from "./html/utils/keys-transform.mjs";
|
|
18
6
|
import { visualElementStore } from "./store.mjs";
|
|
19
7
|
import { isControllingVariants, isVariantNode } from "./utils/is-controlling-variants.mjs";
|
|
20
|
-
import { KeyframeResolver } from "./utils/KeyframesResolver.mjs";
|
|
21
8
|
import { updateMotionValuesFromProps } from "./utils/motion-values.mjs";
|
|
22
9
|
import { resolveVariantFromProps } from "./utils/resolve-variants.mjs";
|
|
10
|
+
import { KeyframeResolver } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs";
|
|
11
|
+
import { time } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/sync-time.mjs";
|
|
12
|
+
import { frame, cancelFrame } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
13
|
+
import { warnOnce } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/warn-once.mjs";
|
|
14
|
+
import { transformProps } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
|
|
15
|
+
import { motionValue } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/index.mjs";
|
|
16
|
+
import { isNumericalString } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/is-numerical-string.mjs";
|
|
17
|
+
import { isZeroValueString } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/is-zero-value-string.mjs";
|
|
18
|
+
import { findValueType } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/find.mjs";
|
|
19
|
+
import { complex } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/complex/index.mjs";
|
|
20
|
+
import { getAnimatableNone } from "../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/animatable-none.mjs";
|
|
21
|
+
import { SubscriptionManager } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/subscription-manager.mjs";
|
|
23
22
|
const propEventHandlers = [
|
|
24
23
|
"AnimationStart",
|
|
25
24
|
"AnimationComplete",
|
|
@@ -68,8 +67,7 @@ class VisualElement {
|
|
|
68
67
|
frame.render(this.render, false, true);
|
|
69
68
|
}
|
|
70
69
|
};
|
|
71
|
-
const { latestValues, renderState
|
|
72
|
-
this.onUpdate = onUpdate;
|
|
70
|
+
const { latestValues, renderState } = visualState;
|
|
73
71
|
this.latestValues = latestValues;
|
|
74
72
|
this.baseTarget = { ...latestValues };
|
|
75
73
|
this.initialValues = props.initial ? { ...latestValues } : {};
|
|
@@ -237,7 +235,6 @@ class VisualElement {
|
|
|
237
235
|
if (this.handleChildMotionValue) {
|
|
238
236
|
this.handleChildMotionValue();
|
|
239
237
|
}
|
|
240
|
-
this.onUpdate && this.onUpdate(this);
|
|
241
238
|
}
|
|
242
239
|
getProps() {
|
|
243
240
|
return this.props;
|
|
@@ -319,8 +316,7 @@ class VisualElement {
|
|
|
319
316
|
* directly from the instance (which might have performance implications).
|
|
320
317
|
*/
|
|
321
318
|
readValue(key, target) {
|
|
322
|
-
|
|
323
|
-
let value = this.latestValues[key] !== void 0 || !this.current ? this.latestValues[key] : (_a = this.getBaseTargetFromProps(this.props, key)) !== null && _a !== void 0 ? _a : this.readValueFromInstance(this.current, key, this.options);
|
|
319
|
+
let value = this.latestValues[key] !== void 0 || !this.current ? this.latestValues[key] : this.getBaseTargetFromProps(this.props, key) ?? this.readValueFromInstance(this.current, key, this.options);
|
|
324
320
|
if (value !== void 0 && value !== null) {
|
|
325
321
|
if (typeof value === "string" && (isNumericalString(value) || isZeroValueString(value))) {
|
|
326
322
|
value = parseFloat(value);
|
|
@@ -347,7 +343,7 @@ class VisualElement {
|
|
|
347
343
|
const { initial } = this.props;
|
|
348
344
|
let valueFromInitial;
|
|
349
345
|
if (typeof initial === "string" || typeof initial === "object") {
|
|
350
|
-
const variant = resolveVariantFromProps(this.props, initial, (_a = this.presenceContext)
|
|
346
|
+
const variant = resolveVariantFromProps(this.props, initial, (_a = this.presenceContext) == null ? void 0 : _a.custom);
|
|
351
347
|
if (variant) {
|
|
352
348
|
valueFromInitial = variant[key];
|
|
353
349
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isMotionValue } from "../../value/utils/is-motion-value.mjs";
|
|
2
2
|
import { VisualElement } from "../VisualElement.mjs";
|
|
3
|
-
import { DOMKeyframesResolver } from "
|
|
3
|
+
import { DOMKeyframesResolver } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs";
|
|
4
4
|
class DOMVisualElement extends VisualElement {
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "../../../../../../../../motion-
|
|
2
|
-
import { resolveElements } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
1
|
+
import { resolveElements } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
3
2
|
const resizeHandlers = /* @__PURE__ */ new WeakMap();
|
|
4
3
|
let observer;
|
|
5
4
|
function getElementSize(target, borderBoxSize) {
|
|
@@ -17,7 +16,7 @@ function getElementSize(target, borderBoxSize) {
|
|
|
17
16
|
}
|
|
18
17
|
function notifyTarget({ target, contentRect, borderBoxSize }) {
|
|
19
18
|
var _a;
|
|
20
|
-
(_a = resizeHandlers.get(target))
|
|
19
|
+
(_a = resizeHandlers.get(target)) == null ? void 0 : _a.forEach((handler) => {
|
|
21
20
|
handler({
|
|
22
21
|
target,
|
|
23
22
|
contentSize: contentRect,
|
|
@@ -46,14 +45,14 @@ function resizeElement(target, handler) {
|
|
|
46
45
|
resizeHandlers.set(element, elementHandlers);
|
|
47
46
|
}
|
|
48
47
|
elementHandlers.add(handler);
|
|
49
|
-
observer
|
|
48
|
+
observer == null ? void 0 : observer.observe(element);
|
|
50
49
|
});
|
|
51
50
|
return () => {
|
|
52
51
|
elements.forEach((element) => {
|
|
53
52
|
const elementHandlers = resizeHandlers.get(element);
|
|
54
|
-
elementHandlers
|
|
55
|
-
if (!(elementHandlers
|
|
56
|
-
observer
|
|
53
|
+
elementHandlers == null ? void 0 : elementHandlers.delete(handler);
|
|
54
|
+
if (!(elementHandlers == null ? void 0 : elementHandlers.size)) {
|
|
55
|
+
observer == null ? void 0 : observer.unobserve(element);
|
|
57
56
|
}
|
|
58
57
|
});
|
|
59
58
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getTimeline } from "./utils/get-timeline.mjs";
|
|
2
|
+
import { observeTimeline } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/scroll/observe.mjs";
|
|
3
|
+
function attachToAnimation(animation, options) {
|
|
4
|
+
const timeline = getTimeline(options);
|
|
5
|
+
return animation.attachTimeline({
|
|
6
|
+
timeline: options.target ? void 0 : timeline,
|
|
7
|
+
observe: (valueAnimation) => {
|
|
8
|
+
valueAnimation.pause();
|
|
9
|
+
return observeTimeline((progress) => {
|
|
10
|
+
valueAnimation.time = valueAnimation.duration * progress;
|
|
11
|
+
}, timeline);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
attachToAnimation
|
|
17
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { scrollInfo } from "./track.mjs";
|
|
2
|
+
import { getTimeline } from "./utils/get-timeline.mjs";
|
|
3
|
+
import { observeTimeline } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/scroll/observe.mjs";
|
|
4
|
+
function isOnScrollWithInfo(onScroll) {
|
|
5
|
+
return onScroll.length === 2;
|
|
6
|
+
}
|
|
7
|
+
function attachToFunction(onScroll, options) {
|
|
8
|
+
if (isOnScrollWithInfo(onScroll)) {
|
|
9
|
+
return scrollInfo((info) => {
|
|
10
|
+
onScroll(info[options.axis].progress, info);
|
|
11
|
+
}, options);
|
|
12
|
+
} else {
|
|
13
|
+
return observeTimeline(onScroll, getTimeline(options));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
attachToFunction
|
|
18
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { attachToAnimation } from "./attach-animation.mjs";
|
|
2
|
+
import { attachToFunction } from "./attach-function.mjs";
|
|
3
|
+
function scroll(onScroll, { axis = "y", container = document.documentElement, ...options } = {}) {
|
|
4
|
+
const optionsWithDefaults = { axis, container, ...options };
|
|
5
|
+
return typeof onScroll === "function" ? attachToFunction(onScroll, optionsWithDefaults) : attachToAnimation(onScroll, optionsWithDefaults);
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
scroll
|
|
9
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "../../../../../../../../motion-utils@12.
|
|
2
|
-
import {
|
|
3
|
-
import { velocityPerSecond } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/velocity-per-second.mjs";
|
|
1
|
+
import { progress } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/progress.mjs";
|
|
2
|
+
import { velocityPerSecond } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/velocity-per-second.mjs";
|
|
4
3
|
const maxElapsed = 50;
|
|
5
4
|
const createAxisInfo = () => ({
|
|
6
5
|
current: 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { clamp } from "../../../../utils/clamp.mjs";
|
|
2
|
-
import { interpolate } from "../../../../utils/interpolate.mjs";
|
|
3
|
-
import { defaultOffset } from "../../../../utils/offsets/default.mjs";
|
|
4
1
|
import { calcInset } from "./inset.mjs";
|
|
5
2
|
import { resolveOffset } from "./offset.mjs";
|
|
6
3
|
import { ScrollOffset } from "./presets.mjs";
|
|
4
|
+
import { interpolate } from "../../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/utils/interpolate.mjs";
|
|
5
|
+
import { defaultOffset } from "../../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/offsets/default.mjs";
|
|
6
|
+
import { clamp } from "../../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/clamp.mjs";
|
|
7
7
|
const point = { x: 0, y: 0 };
|
|
8
8
|
function getTargetSize(target) {
|
|
9
9
|
return "getBBox" in target && target.tagName !== "svg" ? target.getBBox() : { width: target.clientWidth, height: target.clientHeight };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
-
import { warnOnce } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/warn-once.mjs";
|
|
3
1
|
import { updateScrollInfo } from "./info.mjs";
|
|
4
2
|
import { resolveOffsets } from "./offsets/index.mjs";
|
|
3
|
+
import { warnOnce } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/warn-once.mjs";
|
|
5
4
|
function measure(container, target = container, info) {
|
|
6
5
|
info.x.targetOffset = 0;
|
|
7
6
|
info.y.targetOffset = 0;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
-
import { frame, cancelFrame, frameData } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
3
1
|
import { resize } from "../resize/index.mjs";
|
|
4
2
|
import { createScrollInfo } from "./info.mjs";
|
|
5
3
|
import { createOnScrollHandler } from "./on-scroll-handler.mjs";
|
|
4
|
+
import { frame, cancelFrame, frameData } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
6
5
|
const scrollListeners = /* @__PURE__ */ new WeakMap();
|
|
7
6
|
const resizeListeners = /* @__PURE__ */ new WeakMap();
|
|
8
7
|
const onScrollHandlers = /* @__PURE__ */ new WeakMap();
|
|
@@ -33,7 +32,7 @@ function scrollInfo(onScroll, { container = document.documentElement, ...options
|
|
|
33
32
|
const listener2 = () => {
|
|
34
33
|
frame.read(measureAll, false, true);
|
|
35
34
|
frame.read(updateAll, false, true);
|
|
36
|
-
frame.
|
|
35
|
+
frame.preUpdate(notifyAll, false, true);
|
|
37
36
|
};
|
|
38
37
|
scrollListeners.set(container, listener2);
|
|
39
38
|
const target = getEventTarget(container);
|
|
@@ -58,7 +57,7 @@ function scrollInfo(onScroll, { container = document.documentElement, ...options
|
|
|
58
57
|
scrollListeners.delete(container);
|
|
59
58
|
if (scrollListener) {
|
|
60
59
|
getEventTarget(container).removeEventListener("scroll", scrollListener);
|
|
61
|
-
(_a = resizeListeners.get(container))
|
|
60
|
+
(_a = resizeListeners.get(container)) == null ? void 0 : _a();
|
|
62
61
|
window.removeEventListener("resize", scrollListener);
|
|
63
62
|
}
|
|
64
63
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { scrollInfo } from "../track.mjs";
|
|
2
|
+
import { supportsScrollTimeline } from "../../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs";
|
|
3
|
+
const timelineCache = /* @__PURE__ */ new Map();
|
|
4
|
+
function scrollTimelineFallback(options) {
|
|
5
|
+
const currentTime = { value: 0 };
|
|
6
|
+
const cancel = scrollInfo((info) => {
|
|
7
|
+
currentTime.value = info[options.axis].progress * 100;
|
|
8
|
+
}, options);
|
|
9
|
+
return { currentTime, cancel };
|
|
10
|
+
}
|
|
11
|
+
function getTimeline({ source, container, ...options }) {
|
|
12
|
+
const { axis } = options;
|
|
13
|
+
if (source)
|
|
14
|
+
container = source;
|
|
15
|
+
const containerCache = timelineCache.get(container) ?? /* @__PURE__ */ new Map();
|
|
16
|
+
timelineCache.set(container, containerCache);
|
|
17
|
+
const targetKey = options.target ?? "self";
|
|
18
|
+
const targetCache = containerCache.get(targetKey) ?? {};
|
|
19
|
+
const axisKey = axis + (options.offset ?? []).join(",");
|
|
20
|
+
if (!targetCache[axisKey]) {
|
|
21
|
+
targetCache[axisKey] = !options.target && supportsScrollTimeline() ? new ScrollTimeline({ source: container, axis }) : scrollTimelineFallback({ container, ...options });
|
|
22
|
+
}
|
|
23
|
+
return targetCache[axis];
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
getTimeline
|
|
27
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "../../../../../../../../motion-
|
|
2
|
-
import { resolveElements } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
1
|
+
import { resolveElements } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
3
2
|
const thresholds = {
|
|
4
3
|
some: 0,
|
|
5
4
|
all: 1
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { measureViewportBox } from "../../projection/utils/measure.mjs";
|
|
2
2
|
import { DOMVisualElement } from "../dom/DOMVisualElement.mjs";
|
|
3
|
-
import { isCSSVariableName } from "../dom/utils/is-css-variable.mjs";
|
|
4
3
|
import { buildHTMLStyles } from "./utils/build-styles.mjs";
|
|
5
|
-
import { transformProps } from "./utils/keys-transform.mjs";
|
|
6
|
-
import { readTransformValue } from "./utils/parse-transform.mjs";
|
|
7
4
|
import { renderHTML } from "./utils/render.mjs";
|
|
8
5
|
import { scrapeMotionValuesFromProps } from "./utils/scrape-motion-values.mjs";
|
|
6
|
+
import { transformProps } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
|
|
7
|
+
import { readTransformValue } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/parse-transform.mjs";
|
|
8
|
+
import { isCSSVariableName } from "../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/is-css-variable.mjs";
|
|
9
9
|
function getComputedStyle(element) {
|
|
10
10
|
return window.getComputedStyle(element);
|
|
11
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { isCSSVariableName } from "../../dom/utils/is-css-variable.mjs";
|
|
2
|
-
import { getValueAsType } from "../../dom/value-types/get-as-type.mjs";
|
|
3
|
-
import { numberValueTypes } from "../../dom/value-types/number.mjs";
|
|
4
1
|
import { buildTransform } from "./build-transform.mjs";
|
|
5
|
-
import { transformProps } from "
|
|
2
|
+
import { transformProps } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
|
|
3
|
+
import { isCSSVariableName } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/is-css-variable.mjs";
|
|
4
|
+
import { getValueAsType } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/get-as-type.mjs";
|
|
5
|
+
import { numberValueTypes } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps/number.mjs";
|
|
6
6
|
function buildHTMLStyles(state, latestValues, transformTemplate) {
|
|
7
7
|
const { style, vars, transformOrigin } = state;
|
|
8
8
|
let hasTransform = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { transformPropOrder } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
|
|
2
|
+
import { getValueAsType } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/get-as-type.mjs";
|
|
3
|
+
import { numberValueTypes } from "../../../../../../../../motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps/number.mjs";
|
|
4
4
|
const translateAlias = {
|
|
5
5
|
x: "translateX",
|
|
6
6
|
y: "translateY",
|
|
@@ -5,7 +5,7 @@ function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
|
|
|
5
5
|
const { style } = props;
|
|
6
6
|
const newValues = {};
|
|
7
7
|
for (const key in style) {
|
|
8
|
-
if (isMotionValue(style[key]) || prevProps.style && isMotionValue(prevProps.style[key]) || isForcedMotionValue(key, props) || ((_a = visualElement
|
|
8
|
+
if (isMotionValue(style[key]) || prevProps.style && isMotionValue(prevProps.style[key]) || isForcedMotionValue(key, props) || ((_a = visualElement == null ? void 0 : visualElement.getValue(key)) == null ? void 0 : _a.liveStyle) !== void 0) {
|
|
9
9
|
newValues[key] = style[key];
|
|
10
10
|
}
|
|
11
11
|
}
|