motion-v 1.0.0-beta.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +3089 -3584
- 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 +2 -1
- package/dist/es/components/motion/use-motion-state.d.ts +706 -706
- 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 +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/index.mjs +3 -2
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/sequence.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/single-value.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +247 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +102 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +281 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation → framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators}/drivers/driver-frameloop.mjs +3 -2
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation → framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators}/utils/can-animate.mjs +3 -3
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +108 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +32 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +14 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +22 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +10 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs → framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs} +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +6 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/keyframes.mjs +5 -5
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/spring/find.mjs +3 -3
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/spring/index.mjs +6 -15
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/utils/velocity.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +24 -16
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +6 -8
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/create.mjs +10 -10
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +4 -3
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/animation}/utils/is-none.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/stagger.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/cubic-bezier.mjs +2 -1
- package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/steps.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/utils/get-easing-for-segment.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/utils/map.mjs +4 -7
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +14 -8
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +25 -48
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/shared/stack.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/transform.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/VisualElement.mjs +19 -15
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/DOMKeyframesResolver.mjs +9 -9
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +7 -6
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +70 -0
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +3 -2
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/scroll/observe.mjs +3 -2
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +4 -3
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/utils/css-variables-conversion.mjs +3 -3
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/utils/unit-conversion.mjs +2 -2
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/animatable-none.mjs +3 -3
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/defaults.mjs +2 -2
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/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/find.mjs +9 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps/number.mjs → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs} +4 -13
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number.mjs +18 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/transform.mjs +2 -2
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/int.mjs → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs} +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +3 -3
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/render → framer-motion@12.5.0/external/framer-motion/dist/es/render/html}/utils/keys-transform.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/render/html}/utils/make-none-animatable.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +15 -2
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +8 -9
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/measure.mjs +15 -0
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/path.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.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/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +12 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/render/utils}/KeyframesResolver.mjs +28 -26
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/motion-values.mjs +4 -3
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/setters.mjs +3 -5
- package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/delay.mjs +5 -4
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/interpolate.mjs +6 -7
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/color.mjs +4 -4
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/complex.mjs +8 -7
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/offsets/fill.mjs +3 -2
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/resolve-value.mjs +11 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/transform.mjs +8 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/rgba.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/complex/index.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/numbers/index.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/numbers/units.mjs +3 -3
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +10 -0
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +9 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/GroupAnimation.mjs → motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs} +15 -8
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/Group.mjs +9 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +2 -1
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +81 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +7 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +37 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +3 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/batcher.mjs +4 -6
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/frame.mjs +2 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/order.mjs +0 -4
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/sync-time.mjs +2 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +1 -1
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/press/index.mjs +74 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/utils/capture-pointer.mjs +12 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/utils/resolve-elements.mjs +2 -1
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/flags.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/memo.mjs +13 -0
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +2 -1
- package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/value/index.mjs +10 -12
- package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/array.mjs +13 -0
- package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/errors.mjs +3 -4
- package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/global-config.mjs +7 -0
- package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/warn-once.mjs +0 -6
- package/dist/es/features/animation/animation.mjs +4 -3
- package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +3 -2
- package/dist/es/features/gestures/drag/index.mjs +2 -1
- package/dist/es/features/gestures/focus/index.mjs +1 -1
- package/dist/es/features/gestures/hover/index.mjs +3 -2
- package/dist/es/features/gestures/in-view/index.mjs +3 -2
- package/dist/es/features/gestures/pan/PanSession.mjs +5 -4
- package/dist/es/features/gestures/pan/index.mjs +3 -2
- package/dist/es/features/gestures/press/index.mjs +3 -2
- 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 +36 -243
- package/dist/es/state/animate-variants-children.d.ts +15 -0
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +6 -2
- package/dist/es/state/utils.d.ts +2 -2
- package/dist/es/types/index.d.ts +1 -0
- package/dist/es/types/transform.d.ts +23 -0
- package/dist/es/utils/index.d.ts +1 -0
- package/dist/es/utils/time-conversion.mjs +8 -0
- package/dist/es/utils/use-animation-frame.mjs +2 -1
- package/dist/es/utils/use-in-view.mjs +1 -1
- package/dist/es/value/use-combine-values.mjs +3 -2
- package/dist/es/value/use-computed.mjs +2 -1
- package/dist/es/value/use-scroll.d.ts +4 -4
- package/dist/es/value/use-scroll.mjs +3 -2
- package/dist/es/value/use-spring.mjs +7 -6
- package/dist/es/value/use-time.d.ts +1 -1
- package/dist/es/value/use-time.mjs +2 -1
- package/dist/es/value/use-transform.d.ts +2 -1
- package/dist/es/value/use-transform.mjs +1 -1
- package/dist/es/value/use-velocity.mjs +3 -2
- package/package.json +4 -3
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +0 -73
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +0 -13
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs +0 -17
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/attach-function.mjs +0 -18
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +0 -9
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/utils/get-timeline.mjs +0 -27
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -15
- package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -7
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +0 -133
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs +0 -10
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/JSAnimation.mjs +0 -261
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimation.mjs +0 -150
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +0 -44
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs +0 -14
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/get-final.mjs +0 -10
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs +0 -11
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs +0 -8
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/WithPromise.mjs +0 -29
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/active-animations.mjs +0 -11
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +0 -18
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +0 -4
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +0 -21
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/supported.mjs +0 -15
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs +0 -36
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +0 -26
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs +0 -14
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/px-values.mjs +0 -40
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +0 -19
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/effects/style-effect.mjs +0 -30
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/index-legacy.mjs +0 -11
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/gestures/drag/state/set-active.mjs +0 -25
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/gestures/press/index.mjs +0 -53
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/is-css-var.mjs +0 -4
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/style-computed.mjs +0 -8
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/style-set.mjs +0 -7
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/stats/animation-count.mjs +0 -8
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/stats/index.mjs +0 -114
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -4
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/memo.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/map-value.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/subscribe-value.mjs +0 -13
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/transform-value.mjs +0 -14
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/find.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/index.mjs +0 -65
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/queue.mjs +0 -45
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/start.mjs +0 -115
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/choose-layer-type.mjs +0 -12
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/css.mjs +0 -35
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/get-layer-name.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/get-view-animations.mjs +0 -13
- package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/has-target.mjs +0 -6
- package/dist/es/external/.pnpm/motion-utils@12.8.3/external/motion-utils/dist/es/array.mjs +0 -23
- package/dist/es/external/.pnpm/motion-utils@12.8.3/external/motion-utils/dist/es/global-config.mjs +0 -4
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi → framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators}/utils/accelerated-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/inertia.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/spring/defaults.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/utils/is-animatable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/anticipate.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/back.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/circ.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/ease.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/modifiers/mirror.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/modifiers/reverse.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/utils/is-easing-array.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/utils/is-css-variable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/get-as-type.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/test.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/auto.mjs → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs} +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/render → framer-motion@12.5.0/external/framer-motion/dist/es/render/html}/utils/keys-position.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/render/dom → framer-motion@12.5.0/external/framer-motion/dist/es/render/html/utils}/parse-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/clamp.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/color → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/hsla-to-rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/is-numerical-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/is-zero-value-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/immediate.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/offsets/default.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/offsets/time.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/pipe.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/wrap.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/hex.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/hsla.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/complex/filter.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/float-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/is-nullish.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/sanitize.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/single-color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/microtask.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/render-step.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/hover.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/stats/buffer.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es/easing → motion-dom@12.5.0/external/motion-dom/dist/es}/utils/is-bezier-definition.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/memo.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/noop.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/progress.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/subscription-manager.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/velocity-per-second.mjs +0 -0
package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/stats/index.mjs
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { activeAnimations } from "./animation-count.mjs";
|
|
2
|
-
import { statsBuffer } from "./buffer.mjs";
|
|
3
|
-
import { frame, cancelFrame, frameData } from "../frameloop/frame.mjs";
|
|
4
|
-
function record() {
|
|
5
|
-
const { value } = statsBuffer;
|
|
6
|
-
if (value === null) {
|
|
7
|
-
cancelFrame(record);
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
value.frameloop.rate.push(frameData.delta);
|
|
11
|
-
value.animations.mainThread.push(activeAnimations.mainThread);
|
|
12
|
-
value.animations.waapi.push(activeAnimations.waapi);
|
|
13
|
-
value.animations.layout.push(activeAnimations.layout);
|
|
14
|
-
}
|
|
15
|
-
function mean(values) {
|
|
16
|
-
return values.reduce((acc, value) => acc + value, 0) / values.length;
|
|
17
|
-
}
|
|
18
|
-
function summarise(values, calcAverage = mean) {
|
|
19
|
-
if (values.length === 0) {
|
|
20
|
-
return {
|
|
21
|
-
min: 0,
|
|
22
|
-
max: 0,
|
|
23
|
-
avg: 0
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
return {
|
|
27
|
-
min: Math.min(...values),
|
|
28
|
-
max: Math.max(...values),
|
|
29
|
-
avg: calcAverage(values)
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
const msToFps = (ms) => Math.round(1e3 / ms);
|
|
33
|
-
function clearStatsBuffer() {
|
|
34
|
-
statsBuffer.value = null;
|
|
35
|
-
statsBuffer.addProjectionMetrics = null;
|
|
36
|
-
}
|
|
37
|
-
function reportStats() {
|
|
38
|
-
const { value } = statsBuffer;
|
|
39
|
-
if (!value) {
|
|
40
|
-
throw new Error("Stats are not being measured");
|
|
41
|
-
}
|
|
42
|
-
clearStatsBuffer();
|
|
43
|
-
cancelFrame(record);
|
|
44
|
-
const summary = {
|
|
45
|
-
frameloop: {
|
|
46
|
-
setup: summarise(value.frameloop.setup),
|
|
47
|
-
rate: summarise(value.frameloop.rate),
|
|
48
|
-
read: summarise(value.frameloop.read),
|
|
49
|
-
resolveKeyframes: summarise(value.frameloop.resolveKeyframes),
|
|
50
|
-
preUpdate: summarise(value.frameloop.preUpdate),
|
|
51
|
-
update: summarise(value.frameloop.update),
|
|
52
|
-
preRender: summarise(value.frameloop.preRender),
|
|
53
|
-
render: summarise(value.frameloop.render),
|
|
54
|
-
postRender: summarise(value.frameloop.postRender)
|
|
55
|
-
},
|
|
56
|
-
animations: {
|
|
57
|
-
mainThread: summarise(value.animations.mainThread),
|
|
58
|
-
waapi: summarise(value.animations.waapi),
|
|
59
|
-
layout: summarise(value.animations.layout)
|
|
60
|
-
},
|
|
61
|
-
layoutProjection: {
|
|
62
|
-
nodes: summarise(value.layoutProjection.nodes),
|
|
63
|
-
calculatedTargetDeltas: summarise(value.layoutProjection.calculatedTargetDeltas),
|
|
64
|
-
calculatedProjections: summarise(value.layoutProjection.calculatedProjections)
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
const { rate } = summary.frameloop;
|
|
68
|
-
rate.min = msToFps(rate.min);
|
|
69
|
-
rate.max = msToFps(rate.max);
|
|
70
|
-
rate.avg = msToFps(rate.avg);
|
|
71
|
-
[rate.min, rate.max] = [rate.max, rate.min];
|
|
72
|
-
return summary;
|
|
73
|
-
}
|
|
74
|
-
function recordStats() {
|
|
75
|
-
if (statsBuffer.value) {
|
|
76
|
-
clearStatsBuffer();
|
|
77
|
-
throw new Error("Stats are already being measured");
|
|
78
|
-
}
|
|
79
|
-
const newStatsBuffer = statsBuffer;
|
|
80
|
-
newStatsBuffer.value = {
|
|
81
|
-
frameloop: {
|
|
82
|
-
setup: [],
|
|
83
|
-
rate: [],
|
|
84
|
-
read: [],
|
|
85
|
-
resolveKeyframes: [],
|
|
86
|
-
preUpdate: [],
|
|
87
|
-
update: [],
|
|
88
|
-
preRender: [],
|
|
89
|
-
render: [],
|
|
90
|
-
postRender: []
|
|
91
|
-
},
|
|
92
|
-
animations: {
|
|
93
|
-
mainThread: [],
|
|
94
|
-
waapi: [],
|
|
95
|
-
layout: []
|
|
96
|
-
},
|
|
97
|
-
layoutProjection: {
|
|
98
|
-
nodes: [],
|
|
99
|
-
calculatedTargetDeltas: [],
|
|
100
|
-
calculatedProjections: []
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
newStatsBuffer.addProjectionMetrics = (metrics) => {
|
|
104
|
-
const { layoutProjection } = newStatsBuffer.value;
|
|
105
|
-
layoutProjection.nodes.push(metrics.nodes);
|
|
106
|
-
layoutProjection.calculatedTargetDeltas.push(metrics.calculatedTargetDeltas);
|
|
107
|
-
layoutProjection.calculatedProjections.push(metrics.calculatedProjections);
|
|
108
|
-
};
|
|
109
|
-
frame.postRender(record, true);
|
|
110
|
-
return reportStats;
|
|
111
|
-
}
|
|
112
|
-
export {
|
|
113
|
-
recordStats
|
|
114
|
-
};
|
package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/memo.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { supportsFlags } from "./flags.mjs";
|
|
2
|
-
import { memo } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/memo.mjs";
|
|
3
|
-
function memoSupports(callback, supportsFlag) {
|
|
4
|
-
const memoized = memo(callback);
|
|
5
|
-
return () => supportsFlags[supportsFlag] ?? memoized();
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
memoSupports
|
|
9
|
-
};
|
package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/map-value.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { transform } from "../utils/transform.mjs";
|
|
2
|
-
import { transformValue } from "./transform-value.mjs";
|
|
3
|
-
function mapValue(inputValue, inputRange, outputRange, options) {
|
|
4
|
-
const map = transform(inputRange, outputRange, options);
|
|
5
|
-
return transformValue(() => map(inputValue.get()));
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
mapValue
|
|
9
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { cancelFrame, frame } from "../frameloop/frame.mjs";
|
|
2
|
-
function subscribeValue(inputValues, outputValue, getLatest) {
|
|
3
|
-
const update = () => outputValue.set(getLatest());
|
|
4
|
-
const scheduleUpdate = () => frame.preRender(update, false, true);
|
|
5
|
-
const subscriptions = inputValues.map((v) => v.on("change", scheduleUpdate));
|
|
6
|
-
outputValue.on("destroy", () => {
|
|
7
|
-
subscriptions.forEach((unsubscribe) => unsubscribe());
|
|
8
|
-
cancelFrame(update);
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
subscribeValue
|
|
13
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { collectMotionValues, motionValue } from "./index.mjs";
|
|
2
|
-
import { subscribeValue } from "./subscribe-value.mjs";
|
|
3
|
-
function transformValue(transform) {
|
|
4
|
-
const collectedValues = [];
|
|
5
|
-
collectMotionValues.current = collectedValues;
|
|
6
|
-
const initialValue = transform();
|
|
7
|
-
collectMotionValues.current = void 0;
|
|
8
|
-
const value = motionValue(initialValue);
|
|
9
|
-
subscribeValue(collectedValues, value, transform);
|
|
10
|
-
return value;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
transformValue
|
|
14
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { addToQueue } from "./queue.mjs";
|
|
2
|
-
import { noop } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/noop.mjs";
|
|
3
|
-
class ViewTransitionBuilder {
|
|
4
|
-
constructor(update, options = {}) {
|
|
5
|
-
this.currentTarget = "root";
|
|
6
|
-
this.targets = /* @__PURE__ */ new Map();
|
|
7
|
-
this.notifyReady = noop;
|
|
8
|
-
this.readyPromise = new Promise((resolve) => {
|
|
9
|
-
this.notifyReady = resolve;
|
|
10
|
-
});
|
|
11
|
-
this.update = update;
|
|
12
|
-
this.options = {
|
|
13
|
-
interrupt: "wait",
|
|
14
|
-
...options
|
|
15
|
-
};
|
|
16
|
-
addToQueue(this);
|
|
17
|
-
}
|
|
18
|
-
get(selector) {
|
|
19
|
-
this.currentTarget = selector;
|
|
20
|
-
return this;
|
|
21
|
-
}
|
|
22
|
-
layout(keyframes, options) {
|
|
23
|
-
this.updateTarget("layout", keyframes, options);
|
|
24
|
-
return this;
|
|
25
|
-
}
|
|
26
|
-
new(keyframes, options) {
|
|
27
|
-
this.updateTarget("new", keyframes, options);
|
|
28
|
-
return this;
|
|
29
|
-
}
|
|
30
|
-
old(keyframes, options) {
|
|
31
|
-
this.updateTarget("old", keyframes, options);
|
|
32
|
-
return this;
|
|
33
|
-
}
|
|
34
|
-
enter(keyframes, options) {
|
|
35
|
-
this.updateTarget("enter", keyframes, options);
|
|
36
|
-
return this;
|
|
37
|
-
}
|
|
38
|
-
exit(keyframes, options) {
|
|
39
|
-
this.updateTarget("exit", keyframes, options);
|
|
40
|
-
return this;
|
|
41
|
-
}
|
|
42
|
-
crossfade(options) {
|
|
43
|
-
this.updateTarget("enter", { opacity: 1 }, options);
|
|
44
|
-
this.updateTarget("exit", { opacity: 0 }, options);
|
|
45
|
-
return this;
|
|
46
|
-
}
|
|
47
|
-
updateTarget(target, keyframes, options = {}) {
|
|
48
|
-
const { currentTarget, targets } = this;
|
|
49
|
-
if (!targets.has(currentTarget)) {
|
|
50
|
-
targets.set(currentTarget, {});
|
|
51
|
-
}
|
|
52
|
-
const targetData = targets.get(currentTarget);
|
|
53
|
-
targetData[target] = { keyframes, options };
|
|
54
|
-
}
|
|
55
|
-
then(resolve, reject) {
|
|
56
|
-
return this.readyPromise.then(resolve, reject);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function animateView(update, defaultOptions = {}) {
|
|
60
|
-
return new ViewTransitionBuilder(update, defaultOptions);
|
|
61
|
-
}
|
|
62
|
-
export {
|
|
63
|
-
ViewTransitionBuilder,
|
|
64
|
-
animateView
|
|
65
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { microtask } from "../frameloop/microtask.mjs";
|
|
2
|
-
import { startViewAnimation } from "./start.mjs";
|
|
3
|
-
import { removeItem } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/array.mjs";
|
|
4
|
-
let builders = [];
|
|
5
|
-
let current = null;
|
|
6
|
-
function next() {
|
|
7
|
-
current = null;
|
|
8
|
-
const [nextBuilder] = builders;
|
|
9
|
-
if (nextBuilder)
|
|
10
|
-
start(nextBuilder);
|
|
11
|
-
}
|
|
12
|
-
function start(builder) {
|
|
13
|
-
removeItem(builders, builder);
|
|
14
|
-
current = builder;
|
|
15
|
-
startViewAnimation(builder).then((animation) => {
|
|
16
|
-
builder.notifyReady(animation);
|
|
17
|
-
animation.finished.finally(next);
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function processQueue() {
|
|
21
|
-
var _a;
|
|
22
|
-
for (let i = builders.length - 1; i >= 0; i--) {
|
|
23
|
-
const builder = builders[i];
|
|
24
|
-
const { interrupt } = builder.options;
|
|
25
|
-
if (interrupt === "immediate") {
|
|
26
|
-
const batchedUpdates = builders.slice(0, i + 1).map((b) => b.update);
|
|
27
|
-
const remaining = builders.slice(i + 1);
|
|
28
|
-
builder.update = () => {
|
|
29
|
-
batchedUpdates.forEach((update) => update());
|
|
30
|
-
};
|
|
31
|
-
builders = [builder, ...remaining];
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (!current || ((_a = builders[0]) == null ? void 0 : _a.options.interrupt) === "immediate") {
|
|
36
|
-
next();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function addToQueue(builder) {
|
|
40
|
-
builders.push(builder);
|
|
41
|
-
microtask.render(processQueue);
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
addToQueue
|
|
45
|
-
};
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { GroupAnimation } from "../animation/GroupAnimation.mjs";
|
|
2
|
-
import { NativeAnimation } from "../animation/NativeAnimation.mjs";
|
|
3
|
-
import { NativeAnimationWrapper } from "../animation/NativeAnimationWrapper.mjs";
|
|
4
|
-
import { getValueTransition } from "../animation/utils/get-value-transition.mjs";
|
|
5
|
-
import { mapEasingToNativeEasing } from "../animation/waapi/easing/map-easing.mjs";
|
|
6
|
-
import { applyGeneratorOptions } from "../animation/waapi/utils/apply-generator.mjs";
|
|
7
|
-
import { chooseLayerType } from "./utils/choose-layer-type.mjs";
|
|
8
|
-
import { css } from "./utils/css.mjs";
|
|
9
|
-
import { getLayerName } from "./utils/get-layer-name.mjs";
|
|
10
|
-
import { getViewAnimations } from "./utils/get-view-animations.mjs";
|
|
11
|
-
import { hasTarget } from "./utils/has-target.mjs";
|
|
12
|
-
import { secondsToMilliseconds } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/time-conversion.mjs";
|
|
13
|
-
const definitionNames = ["layout", "enter", "exit", "new", "old"];
|
|
14
|
-
function startViewAnimation(builder) {
|
|
15
|
-
const { update, targets, options: defaultOptions } = builder;
|
|
16
|
-
if (!document.startViewTransition) {
|
|
17
|
-
return new Promise(async (resolve) => {
|
|
18
|
-
await update();
|
|
19
|
-
resolve(new GroupAnimation([]));
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
if (!hasTarget("root", targets)) {
|
|
23
|
-
css.set(":root", {
|
|
24
|
-
"view-transition-name": "none"
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
css.set("::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)", { "animation-timing-function": "linear !important" });
|
|
28
|
-
css.commit();
|
|
29
|
-
const transition = document.startViewTransition(async () => {
|
|
30
|
-
await update();
|
|
31
|
-
});
|
|
32
|
-
transition.finished.finally(() => {
|
|
33
|
-
css.remove();
|
|
34
|
-
});
|
|
35
|
-
return new Promise((resolve) => {
|
|
36
|
-
transition.ready.then(() => {
|
|
37
|
-
const generatedViewAnimations = getViewAnimations();
|
|
38
|
-
const animations = [];
|
|
39
|
-
targets.forEach((definition, target) => {
|
|
40
|
-
for (const key of definitionNames) {
|
|
41
|
-
if (!definition[key])
|
|
42
|
-
continue;
|
|
43
|
-
const { keyframes, options } = definition[key];
|
|
44
|
-
for (let [valueName, valueKeyframes] of Object.entries(keyframes)) {
|
|
45
|
-
if (!valueKeyframes)
|
|
46
|
-
continue;
|
|
47
|
-
const valueOptions = {
|
|
48
|
-
...getValueTransition(defaultOptions, valueName),
|
|
49
|
-
...getValueTransition(options, valueName)
|
|
50
|
-
};
|
|
51
|
-
const type = chooseLayerType(key);
|
|
52
|
-
if (valueName === "opacity" && !Array.isArray(valueKeyframes)) {
|
|
53
|
-
const initialValue = type === "new" ? 0 : 1;
|
|
54
|
-
valueKeyframes = [initialValue, valueKeyframes];
|
|
55
|
-
}
|
|
56
|
-
if (typeof valueOptions.delay === "function") {
|
|
57
|
-
valueOptions.delay = valueOptions.delay(0, 1);
|
|
58
|
-
}
|
|
59
|
-
valueOptions.duration && (valueOptions.duration = secondsToMilliseconds(valueOptions.duration));
|
|
60
|
-
valueOptions.delay && (valueOptions.delay = secondsToMilliseconds(valueOptions.delay));
|
|
61
|
-
const animation = new NativeAnimation({
|
|
62
|
-
...valueOptions,
|
|
63
|
-
element: document.documentElement,
|
|
64
|
-
name: valueName,
|
|
65
|
-
pseudoElement: `::view-transition-${type}(${target})`,
|
|
66
|
-
keyframes: valueKeyframes
|
|
67
|
-
});
|
|
68
|
-
animations.push(animation);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
for (const animation of generatedViewAnimations) {
|
|
73
|
-
if (animation.playState === "finished")
|
|
74
|
-
continue;
|
|
75
|
-
const { effect } = animation;
|
|
76
|
-
if (!effect || !(effect instanceof KeyframeEffect))
|
|
77
|
-
continue;
|
|
78
|
-
const { pseudoElement } = effect;
|
|
79
|
-
if (!pseudoElement)
|
|
80
|
-
continue;
|
|
81
|
-
const name = getLayerName(pseudoElement);
|
|
82
|
-
if (!name)
|
|
83
|
-
continue;
|
|
84
|
-
const targetDefinition = targets.get(name.layer);
|
|
85
|
-
if (!targetDefinition) {
|
|
86
|
-
const transitionName = name.type === "group" ? "layout" : "";
|
|
87
|
-
let animationTransition = {
|
|
88
|
-
...getValueTransition(defaultOptions, transitionName)
|
|
89
|
-
};
|
|
90
|
-
animationTransition.duration && (animationTransition.duration = secondsToMilliseconds(animationTransition.duration));
|
|
91
|
-
animationTransition = applyGeneratorOptions(animationTransition);
|
|
92
|
-
const easing = mapEasingToNativeEasing(animationTransition.ease, animationTransition.duration);
|
|
93
|
-
effect.updateTiming({
|
|
94
|
-
delay: secondsToMilliseconds(animationTransition.delay ?? 0),
|
|
95
|
-
duration: animationTransition.duration,
|
|
96
|
-
easing
|
|
97
|
-
});
|
|
98
|
-
animations.push(new NativeAnimationWrapper(animation));
|
|
99
|
-
} else if (hasOpacity(targetDefinition, "enter") && hasOpacity(targetDefinition, "exit") && effect.getKeyframes().some((keyframe) => keyframe.mixBlendMode)) {
|
|
100
|
-
animations.push(new NativeAnimationWrapper(animation));
|
|
101
|
-
} else {
|
|
102
|
-
animation.cancel();
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
resolve(new GroupAnimation(animations));
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
function hasOpacity(target, key) {
|
|
110
|
-
var _a;
|
|
111
|
-
return (_a = target == null ? void 0 : target[key]) == null ? void 0 : _a.keyframes.opacity;
|
|
112
|
-
}
|
|
113
|
-
export {
|
|
114
|
-
startViewAnimation
|
|
115
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function chooseLayerType(valueName) {
|
|
2
|
-
if (valueName === "layout")
|
|
3
|
-
return "group";
|
|
4
|
-
if (valueName === "enter" || valueName === "new")
|
|
5
|
-
return "new";
|
|
6
|
-
if (valueName === "exit" || valueName === "old")
|
|
7
|
-
return "old";
|
|
8
|
-
return "group";
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
chooseLayerType
|
|
12
|
-
};
|
package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/css.mjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|