motion-v 0.13.0-beta.1 → 0.13.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 +414 -1153
- 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 -1
- package/dist/es/components/reorder/Group.d.ts +1 -1
- package/dist/es/components/reorder/index.d.ts +7088 -7088
- package/dist/es/components/reorder/utils.d.ts +1 -1
- package/dist/es/components/reorder/utils.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/index.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/single-value.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +4 -7
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +3 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +5 -4
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +3 -6
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +9 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/spring/find.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/spring/index.mjs +3 -4
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +4 -5
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +1 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/create.mjs +4 -5
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/cubic-bezier.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/utils/map.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +27 -7
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/shared/stack.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/VisualElement.mjs +4 -5
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/index.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/observe.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +3 -18
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +2 -3
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/html/utils/parse-transform.mjs +82 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/setters.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/delay.mjs +3 -4
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/interpolate.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/color.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/complex.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/offsets/fill.mjs +2 -2
- package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -2
- package/dist/es/features/gestures/drag/index.mjs +2 -2
- package/dist/es/features/gestures/focus/index.mjs +1 -1
- package/dist/es/features/gestures/hover/index.mjs +1 -3
- package/dist/es/features/gestures/in-view/index.mjs +2 -2
- package/dist/es/features/gestures/pan/PanSession.mjs +3 -3
- package/dist/es/features/gestures/pan/index.mjs +3 -3
- package/dist/es/features/gestures/press/index.mjs +1 -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 +30 -39
- package/dist/es/state/animate-updates.mjs +4 -4
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +2 -2
- package/dist/es/state/utils.mjs +0 -1
- package/dist/es/types/framer-motion.d.ts +0 -12
- package/dist/es/utils/use-animation-frame.mjs +1 -1
- package/dist/es/utils/use-in-view.mjs +6 -3
- package/dist/es/value/use-combine-values.mjs +1 -2
- package/dist/es/value/use-computed.mjs +1 -1
- package/dist/es/value/use-motion-value-event.d.ts +1 -2
- package/dist/es/value/use-scroll.d.ts +4 -4
- package/dist/es/value/use-scroll.mjs +26 -24
- package/dist/es/value/use-spring.mjs +2 -3
- package/dist/es/value/use-time.d.ts +1 -1
- package/dist/es/value/use-time.mjs +1 -1
- package/dist/es/value/use-transform.mjs +3 -5
- package/dist/es/value/use-velocity.mjs +1 -2
- package/package.json +4 -3
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/batcher.mjs +0 -63
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/frame.mjs +0 -10
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/index-legacy.mjs +0 -11
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/microtask.mjs +0 -6
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/order.mjs +0 -17
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/render-step.mjs +0 -70
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/sync-time.mjs +0 -21
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/stats/buffer.mjs +0 -7
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/utils/GlobalConfig.mjs +0 -7
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/value/index.mjs +0 -282
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs +0 -79
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/controls/Group.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -15
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +0 -17
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +0 -81
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +0 -7
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +0 -37
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +0 -13
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +0 -11
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/hover.mjs +0 -30
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/press/index.mjs +0 -74
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -13
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -32
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -4
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/utils/capture-pointer.mjs +0 -12
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -12
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -10
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -15
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/is-bezier-definition.mjs +0 -4
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/resolve-elements.mjs +0 -17
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -12
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/memo.mjs +0 -13
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +0 -6
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/sequence.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → 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/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/inertia.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/keyframes.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → 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.4.10 → 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.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → 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.4.10 → 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.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-none.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/stagger.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/anticipate.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/back.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/circ.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/ease.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/modifiers/mirror.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/modifiers/reverse.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/steps.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/transform.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → 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.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → 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.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/defaults.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/test.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/keys-position.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/keys-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/measure.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/path.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → 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.4.10 → 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.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/clamp.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/is-numerical-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/is-zero-value-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/immediate.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/offsets/default.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/offsets/time.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/pipe.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/resolve-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/wrap.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/hex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/hsla.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/complex/filter.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/complex/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/numbers/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/numbers/units.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/float-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/is-nullish.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/sanitize.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → 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.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10/external/framer-motion/dist/es/utils → motion-utils@12.5.0/external/motion-utils/dist/es}/array.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/errors.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/memo.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/noop.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/progress.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10/external/framer-motion/dist/es/utils → motion-utils@12.5.0/external/motion-utils/dist/es}/subscription-manager.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10/external/framer-motion/dist/es/utils → motion-utils@12.5.0/external/motion-utils/dist/es}/velocity-per-second.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10/external/framer-motion/dist/es/utils → motion-utils@12.5.0/external/motion-utils/dist/es}/warn-once.mjs +0 -0
|
@@ -3,4 +3,4 @@ export declare function compareMin<V>(a: ItemData<V>, b: ItemData<V>): number;
|
|
|
3
3
|
export declare function getValue<V>(item: ItemData<V>): V;
|
|
4
4
|
export declare function checkReorder<T>(order: ItemData<T>[], value: T, offset: number, velocity: number): ItemData<T>[];
|
|
5
5
|
export declare function moveItem<T>([...arr]: T[], fromIndex: number, toIndex: number): T[];
|
|
6
|
-
export declare function useDefaultMotionValue(value: any, defaultValue?: number): import('
|
|
6
|
+
export declare function useDefaultMotionValue(value: any, defaultValue?: number): import('motion-dom').MotionValue<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mixNumber } from "../../utils/mix/number.mjs";
|
|
2
|
-
import { motionValue } from "../../external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/value/index.mjs";
|
|
3
2
|
import { isMotionValue } from "../../utils/motion-value.mjs";
|
|
3
|
+
import { motionValue } from "motion-dom";
|
|
4
4
|
function compareMin(a, b) {
|
|
5
5
|
return a.layout.min - b.layout.min;
|
|
6
6
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { GroupPlaybackControls } from "
|
|
2
|
-
import "../../../../../../../motion-utils@12.4.10/external/motion-utils/dist/es/errors.mjs";
|
|
1
|
+
import { GroupPlaybackControls } from "motion-dom";
|
|
3
2
|
import { animateSequence } from "./sequence.mjs";
|
|
4
3
|
import { animateSubject } from "./subject.mjs";
|
|
5
4
|
function isSequence(value) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import { resolveElements } from "../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
1
|
+
import { resolveElements } from "motion-dom";
|
|
3
2
|
import { isDOMKeyframes } from "../utils/is-dom-keyframes.mjs";
|
|
4
3
|
function resolveSubjects(subject, keyframes, scope, selectorCache) {
|
|
5
4
|
if (typeof subject === "string" && isDOMKeyframes(keyframes)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { motionValue } from "
|
|
1
|
+
import { motionValue } from "motion-dom";
|
|
2
2
|
import { isMotionValue } from "../../value/utils/is-motion-value.mjs";
|
|
3
3
|
import { animateMotionValue } from "../interfaces/motion-value.mjs";
|
|
4
4
|
function animateSingleValue(value, keyframes, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { invariant } from "../../../../../../../motion-utils@12.
|
|
1
|
+
import { invariant } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
2
|
import { visualElementStore } from "../../render/store.mjs";
|
|
3
3
|
import { isMotionValue } from "../../value/utils/is-motion-value.mjs";
|
|
4
4
|
import { animateTarget } from "../interfaces/visual-element-target.mjs";
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { attachTimeline } from "../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs";
|
|
6
|
-
import { isWaapiSupportedEasing } from "../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs";
|
|
7
|
-
import { supportsLinearEasing } from "../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/linear-easing.mjs";
|
|
1
|
+
import { supportsLinearEasing, attachTimeline, isGenerator, isWaapiSupportedEasing } from "motion-dom";
|
|
2
|
+
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { noop } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
|
|
4
|
+
import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
8
5
|
import { anticipate } from "../../easing/anticipate.mjs";
|
|
9
6
|
import { backInOut } from "../../easing/back.mjs";
|
|
10
7
|
import { circInOut } from "../../easing/circ.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { time } from "
|
|
1
|
+
import { time } from "motion-dom";
|
|
2
2
|
import { flushKeyframeResolvers } from "../../render/utils/KeyframesResolver.mjs";
|
|
3
3
|
import { canAnimate } from "./utils/can-animate.mjs";
|
|
4
4
|
import { getFinalKeyframe } from "./waapi/utils/get-final-keyframe.mjs";
|
|
@@ -85,6 +85,8 @@ class BaseAnimation {
|
|
|
85
85
|
return this.currentFinishedPromise.then(resolve, reject);
|
|
86
86
|
}
|
|
87
87
|
flatten() {
|
|
88
|
+
if (!this.options.allowFlatten)
|
|
89
|
+
return;
|
|
88
90
|
this.options.type = "keyframes";
|
|
89
91
|
this.options.ease = "linear";
|
|
90
92
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { isGenerator } from "../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs";
|
|
1
|
+
import { isGenerator, calcGeneratorDuration, activeAnimations } from "motion-dom";
|
|
2
|
+
import { invariant } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
5
4
|
import { KeyframeResolver } from "../../render/utils/KeyframesResolver.mjs";
|
|
6
5
|
import { clamp } from "../../utils/clamp.mjs";
|
|
7
6
|
import { mix } from "../../utils/mix/index.mjs";
|
|
@@ -88,6 +87,7 @@ class MainThreadAnimation extends BaseAnimation {
|
|
|
88
87
|
}
|
|
89
88
|
onPostResolved() {
|
|
90
89
|
const { autoplay = true } = this.options;
|
|
90
|
+
activeAnimations.mainThread++;
|
|
91
91
|
this.play();
|
|
92
92
|
if (this.pendingPlayState === "paused" || !autoplay) {
|
|
93
93
|
this.pause();
|
|
@@ -260,6 +260,7 @@ class MainThreadAnimation extends BaseAnimation {
|
|
|
260
260
|
this.updateFinishedPromise();
|
|
261
261
|
this.startTime = this.cancelTime = null;
|
|
262
262
|
this.resolver.cancel();
|
|
263
|
+
activeAnimations.mainThread--;
|
|
263
264
|
}
|
|
264
265
|
stopDriver() {
|
|
265
266
|
if (!this.driver)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { time } from "
|
|
2
|
-
import { frame, cancelFrame, frameData } from "../../../frameloop/frame.mjs";
|
|
1
|
+
import { frame, cancelFrame, frameData, time } from "motion-dom";
|
|
3
2
|
const frameloopDriver = (update) => {
|
|
4
3
|
const passTimestamp = ({ timestamp }) => update(timestamp);
|
|
5
4
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { isGenerator } from "motion-dom";
|
|
2
|
+
import { warning } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
3
|
import { isAnimatable } from "../../utils/is-animatable.mjs";
|
|
4
4
|
function hasKeyframesChanged(keyframes) {
|
|
5
5
|
const current = keyframes[0];
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { isGenerator } from "../../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs";
|
|
5
|
-
import { NativeAnimationControls } from "../../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs";
|
|
6
|
-
import { supportsLinearEasing } from "../../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/linear-easing.mjs";
|
|
1
|
+
import { NativeAnimationControls, isGenerator, createGeneratorEasing, supportsLinearEasing } from "motion-dom";
|
|
2
|
+
import { invariant } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { secondsToMilliseconds } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
7
4
|
import { startWaapiAnimation } from "./index.mjs";
|
|
8
5
|
import { browserNumberValueTypes } from "../../../render/dom/value-types/number-browser.mjs";
|
|
9
6
|
import { getFinalKeyframe } from "./utils/get-final-keyframe.mjs";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { resolveElements } from "../../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
1
|
+
import { resolveElements, getValueTransition } from "motion-dom";
|
|
2
|
+
import { invariant } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { secondsToMilliseconds } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
5
4
|
import { NativeAnimation } from "./NativeAnimation.mjs";
|
|
6
5
|
function animateElements(elementOrSelector, keyframes, options, scope) {
|
|
7
6
|
const elements = resolveElements(elementOrSelector, scope);
|
|
@@ -21,6 +20,7 @@ function animateElements(elementOrSelector, keyframes, options, scope) {
|
|
|
21
20
|
};
|
|
22
21
|
valueOptions.duration = valueOptions.duration ? secondsToMilliseconds(valueOptions.duration) : valueOptions.duration;
|
|
23
22
|
valueOptions.delay = secondsToMilliseconds(valueOptions.delay || 0);
|
|
23
|
+
valueOptions.allowFlatten = !elementTransition.type && !elementTransition.ease;
|
|
24
24
|
animations.push(new NativeAnimation(element, valueName, valueKeyframes, valueOptions));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { GroupPlaybackControls } from "
|
|
2
|
-
import "../../../../../../../../motion-utils@12.4.10/external/motion-utils/dist/es/errors.mjs";
|
|
1
|
+
import { GroupPlaybackControls } from "motion-dom";
|
|
3
2
|
import { animateElements } from "./animate-elements.mjs";
|
|
4
3
|
const createScopedWaapiAnimate = (scope) => {
|
|
5
4
|
function scopedAnimate(elementOrSelector, keyframes, options) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import { mapEasingToNativeEasing } from "../../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs";
|
|
1
|
+
import { mapEasingToNativeEasing, statsBuffer, activeAnimations } from "motion-dom";
|
|
3
2
|
function startWaapiAnimation(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = "loop", ease = "easeInOut", times } = {}) {
|
|
4
3
|
const keyframeOptions = { [valueName]: keyframes };
|
|
5
4
|
if (times)
|
|
@@ -7,6 +6,9 @@ function startWaapiAnimation(element, valueName, keyframes, { delay = 0, duratio
|
|
|
7
6
|
const easing = mapEasingToNativeEasing(ease, duration);
|
|
8
7
|
if (Array.isArray(easing))
|
|
9
8
|
keyframeOptions.easing = easing;
|
|
9
|
+
if (statsBuffer.value) {
|
|
10
|
+
activeAnimations.waapi++;
|
|
11
|
+
}
|
|
10
12
|
const animation = element.animate(keyframeOptions, {
|
|
11
13
|
delay,
|
|
12
14
|
duration,
|
|
@@ -15,6 +17,11 @@ function startWaapiAnimation(element, valueName, keyframes, { delay = 0, duratio
|
|
|
15
17
|
iterations: repeat + 1,
|
|
16
18
|
direction: repeatType === "reverse" ? "alternate" : "normal"
|
|
17
19
|
});
|
|
20
|
+
if (statsBuffer.value) {
|
|
21
|
+
animation.finished.finally(() => {
|
|
22
|
+
activeAnimations.waapi--;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
18
25
|
return animation;
|
|
19
26
|
}
|
|
20
27
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../../../../motion-utils@12.
|
|
2
|
-
import { memo } from "../../../../../../../../../motion-utils@12.
|
|
1
|
+
import "../../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { memo } from "../../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/memo.mjs";
|
|
3
3
|
const supportsPartialKeyframes = /* @__PURE__ */ memo(() => {
|
|
4
4
|
try {
|
|
5
5
|
document.createElement("div").animate({ opacity: [1] });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../../../../motion-utils@12.
|
|
2
|
-
import { memo } from "../../../../../../../../../motion-utils@12.
|
|
1
|
+
import "../../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { memo } from "../../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/memo.mjs";
|
|
3
3
|
const supportsWaapi = /* @__PURE__ */ memo(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
4
4
|
export {
|
|
5
5
|
supportsWaapi
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { warning } from "../../../../../../../../motion-utils@12.
|
|
2
|
-
import { secondsToMilliseconds, millisecondsToSeconds } from "../../../../../../../../motion-utils@12.
|
|
1
|
+
import { warning } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { secondsToMilliseconds, millisecondsToSeconds } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
3
3
|
import { clamp } from "../../../utils/clamp.mjs";
|
|
4
4
|
import { springDefaults } from "./defaults.mjs";
|
|
5
5
|
const safeMin = 1e-3;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { generateLinearEasing } from "../../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs";
|
|
1
|
+
import { calcGeneratorDuration, maxGeneratorDuration, generateLinearEasing } from "motion-dom";
|
|
2
|
+
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
5
4
|
import { clamp } from "../../../utils/clamp.mjs";
|
|
6
5
|
import { calcGeneratorVelocity } from "../utils/velocity.mjs";
|
|
7
6
|
import { springDefaults } from "./defaults.mjs";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { velocityPerSecond } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/velocity-per-second.mjs";
|
|
2
3
|
const velocitySampleDuration = 5;
|
|
3
4
|
function calcGeneratorVelocity(resolveValue, t, current) {
|
|
4
5
|
const prevT = Math.max(t - velocitySampleDuration, 0);
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { GroupPlaybackControls } from "
|
|
2
|
-
import
|
|
3
|
-
import "../../../../../../../motion-utils@12.
|
|
4
|
-
import { secondsToMilliseconds } from "../../../../../../../motion-utils@12.4.10/external/motion-utils/dist/es/time-conversion.mjs";
|
|
5
|
-
import { frame } from "../../frameloop/frame.mjs";
|
|
1
|
+
import { getValueTransition, frame, GroupPlaybackControls } from "motion-dom";
|
|
2
|
+
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { secondsToMilliseconds } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
6
4
|
import { AcceleratedAnimation } from "../animators/AcceleratedAnimation.mjs";
|
|
7
5
|
import { MainThreadAnimation } from "../animators/MainThreadAnimation.mjs";
|
|
8
6
|
import { getFinalKeyframe } from "../animators/waapi/utils/get-final-keyframe.mjs";
|
|
@@ -53,6 +51,7 @@ const animateMotionValue = (name, value, target, transition = {}, element, isHan
|
|
|
53
51
|
shouldSkip = true;
|
|
54
52
|
}
|
|
55
53
|
}
|
|
54
|
+
options.allowFlatten = !valueTransition.type && !valueTransition.ease;
|
|
56
55
|
if (shouldSkip && !isHandoff && value.get() !== void 0) {
|
|
57
56
|
const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);
|
|
58
57
|
if (finalKeyframe !== void 0) {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import { getValueTransition } from "../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
|
|
1
|
+
import { getValueTransition, frame } from "motion-dom";
|
|
3
2
|
import { positionalKeys } from "../../render/html/utils/keys-position.mjs";
|
|
4
3
|
import { setTarget } from "../../render/utils/setters.mjs";
|
|
5
4
|
import { addValueToWillChange } from "../../value/use-will-change/add-will-change.mjs";
|
|
6
5
|
import { getOptimisedAppearId } from "../optimized-appear/get-appear-id.mjs";
|
|
7
6
|
import { animateMotionValue } from "./motion-value.mjs";
|
|
8
|
-
import { frame } from "../../frameloop/frame.mjs";
|
|
9
7
|
function shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {
|
|
10
8
|
const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;
|
|
11
9
|
needsAnimating[key] = false;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { isGenerator } from "../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs";
|
|
1
|
+
import { isGenerator, createGeneratorEasing } from "motion-dom";
|
|
2
|
+
import { invariant } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { progress } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/progress.mjs";
|
|
4
|
+
import { secondsToMilliseconds } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
6
5
|
import { getEasingForSegment } from "../../easing/utils/get-easing-for-segment.mjs";
|
|
7
6
|
import { defaultOffset } from "../../utils/offsets/default.mjs";
|
|
8
7
|
import { fillOffset } from "../../utils/offsets/fill.mjs";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { removeItem } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/array.mjs";
|
|
2
|
+
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
1
3
|
import { getEasingForSegment } from "../../../easing/utils/get-easing-for-segment.mjs";
|
|
2
|
-
import { removeItem } from "../../../utils/array.mjs";
|
|
3
4
|
import { mixNumber } from "../../../utils/mix/number.mjs";
|
|
4
5
|
function eraseKeyframes(sequence, startTime, endTime) {
|
|
5
6
|
for (let i = 0; i < sequence.length; i++) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../motion-utils@12.
|
|
2
|
-
import { noop } from "../../../../../../motion-utils@12.
|
|
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
3
|
const calcBezier = (t, a1, a2) => (((1 - 3 * a2 + 3 * a1) * t + (3 * a2 - 6 * a1)) * t + 3 * a1) * t;
|
|
4
4
|
const subdivisionPrecision = 1e-7;
|
|
5
5
|
const subdivisionMaxIterations = 12;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { isBezierDefinition } from "motion-dom";
|
|
2
|
+
import { invariant } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { noop } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
|
|
4
4
|
import { anticipate } from "../anticipate.mjs";
|
|
5
5
|
import { backIn, backInOut, backOut } from "../back.mjs";
|
|
6
6
|
import { circIn, circInOut, circOut } from "../circ.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../../../../../../motion-utils@12.
|
|
2
|
-
import { noop } from "../../../../../../../motion-utils@12.
|
|
3
|
-
import { progress } from "../../../../../../../motion-utils@12.
|
|
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 { progress } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/progress.mjs";
|
|
4
4
|
import { circOut } from "../../easing/circ.mjs";
|
|
5
5
|
import { mixNumber } from "../../utils/mix/number.mjs";
|
|
6
6
|
import { percent, px } from "../../value/types/numbers/units.mjs";
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { statsBuffer, getValueTransition, cancelFrame, time, frameData, frameSteps, microtask, frame, activeAnimations } from "motion-dom";
|
|
2
|
+
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { noop } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
|
|
4
|
+
import { SubscriptionManager } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/subscription-manager.mjs";
|
|
4
5
|
import { animateSingleValue } from "../../animation/animate/single-value.mjs";
|
|
5
6
|
import { getOptimisedAppearId } from "../../animation/optimized-appear/get-appear-id.mjs";
|
|
6
|
-
import { cancelFrame, frameData, frameSteps, frame } from "../../frameloop/frame.mjs";
|
|
7
|
-
import { microtask } from "../../frameloop/microtask.mjs";
|
|
8
|
-
import { time } from "../../frameloop/sync-time.mjs";
|
|
9
7
|
import { isSVGElement } from "../../render/dom/utils/is-svg-element.mjs";
|
|
10
8
|
import { FlatTree } from "../../render/utils/flat-tree.mjs";
|
|
11
9
|
import { clamp } from "../../utils/clamp.mjs";
|
|
12
10
|
import { delay } from "../../utils/delay.mjs";
|
|
13
11
|
import { mixNumber } from "../../utils/mix/number.mjs";
|
|
14
|
-
import { SubscriptionManager } from "../../utils/subscription-manager.mjs";
|
|
15
12
|
import { resolveMotionValue } from "../../value/utils/resolve-motion-value.mjs";
|
|
16
13
|
import { mixValues } from "../animation/mix-values.mjs";
|
|
17
14
|
import { copyBoxInto, copyAxisDeltaInto } from "../geometry/copy.mjs";
|
|
@@ -26,6 +23,11 @@ import { buildProjectionTransform } from "../styles/transform.mjs";
|
|
|
26
23
|
import { eachAxis } from "../utils/each-axis.mjs";
|
|
27
24
|
import { hasTransform, hasScale, has2DTranslate } from "../utils/has-transform.mjs";
|
|
28
25
|
import { globalProjectionState } from "./state.mjs";
|
|
26
|
+
const metrics = {
|
|
27
|
+
nodes: 0,
|
|
28
|
+
calculatedTargetDeltas: 0,
|
|
29
|
+
calculatedProjections: 0
|
|
30
|
+
};
|
|
29
31
|
const transformAxes = ["", "X", "Y", "Z"];
|
|
30
32
|
const hiddenVisibility = { visibility: "hidden" };
|
|
31
33
|
const animationTarget = 1e3;
|
|
@@ -91,10 +93,16 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
91
93
|
};
|
|
92
94
|
this.updateProjection = () => {
|
|
93
95
|
this.projectionUpdateScheduled = false;
|
|
96
|
+
if (statsBuffer.value) {
|
|
97
|
+
metrics.nodes = metrics.calculatedTargetDeltas = metrics.calculatedProjections = 0;
|
|
98
|
+
}
|
|
94
99
|
this.nodes.forEach(propagateDirtyNodes);
|
|
95
100
|
this.nodes.forEach(resolveTargetDelta);
|
|
96
101
|
this.nodes.forEach(calcProjection);
|
|
97
102
|
this.nodes.forEach(cleanDirtyNodes);
|
|
103
|
+
if (statsBuffer.addProjectionMetrics) {
|
|
104
|
+
statsBuffer.addProjectionMetrics(metrics);
|
|
105
|
+
}
|
|
98
106
|
};
|
|
99
107
|
this.resolvedRelativeTargetAt = 0;
|
|
100
108
|
this.hasProjected = false;
|
|
@@ -553,6 +561,9 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
553
561
|
this.relativeParent = this.relativeTarget = void 0;
|
|
554
562
|
}
|
|
555
563
|
}
|
|
564
|
+
if (statsBuffer.value) {
|
|
565
|
+
metrics.calculatedTargetDeltas++;
|
|
566
|
+
}
|
|
556
567
|
}
|
|
557
568
|
getClosestProjectingParent() {
|
|
558
569
|
if (!this.parent || hasScale(this.parent.latestValues) || has2DTranslate(this.parent.latestValues)) {
|
|
@@ -618,6 +629,9 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
618
629
|
this.scheduleRender();
|
|
619
630
|
this.notifyListeners("projectionUpdate", target);
|
|
620
631
|
}
|
|
632
|
+
if (statsBuffer.value) {
|
|
633
|
+
metrics.calculatedProjections++;
|
|
634
|
+
}
|
|
621
635
|
}
|
|
622
636
|
hide() {
|
|
623
637
|
this.isVisible = false;
|
|
@@ -696,6 +710,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
696
710
|
}
|
|
697
711
|
this.pendingAnimation = frame.update(() => {
|
|
698
712
|
globalProjectionState.hasAnimatedSinceResize = true;
|
|
713
|
+
activeAnimations.layout++;
|
|
699
714
|
this.currentAnimation = animateSingleValue(0, animationTarget, {
|
|
700
715
|
...options,
|
|
701
716
|
onUpdate: (latest) => {
|
|
@@ -703,8 +718,10 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
703
718
|
options.onUpdate && options.onUpdate(latest);
|
|
704
719
|
},
|
|
705
720
|
onStop: () => {
|
|
721
|
+
activeAnimations.layout--;
|
|
706
722
|
},
|
|
707
723
|
onComplete: () => {
|
|
724
|
+
activeAnimations.layout--;
|
|
708
725
|
options.onComplete && options.onComplete();
|
|
709
726
|
this.completeAnimation();
|
|
710
727
|
}
|
|
@@ -982,6 +999,9 @@ function notifyLayoutUpdate(node) {
|
|
|
982
999
|
node.options.transition = void 0;
|
|
983
1000
|
}
|
|
984
1001
|
function propagateDirtyNodes(node) {
|
|
1002
|
+
if (statsBuffer.value) {
|
|
1003
|
+
metrics.nodes++;
|
|
1004
|
+
}
|
|
985
1005
|
if (!node.parent)
|
|
986
1006
|
return;
|
|
987
1007
|
if (!node.isProjecting()) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { addUniqueItem, removeItem } from "
|
|
1
|
+
import { addUniqueItem, removeItem } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/array.mjs";
|
|
2
|
+
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
3
|
class NodeStack {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.members = [];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { time } from "
|
|
1
|
+
import { time, frame, cancelFrame, motionValue } from "motion-dom";
|
|
2
|
+
import "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { SubscriptionManager } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/subscription-manager.mjs";
|
|
4
|
+
import { warnOnce } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/warn-once.mjs";
|
|
2
5
|
import { featureDefinitions } from "../motion/features/definitions.mjs";
|
|
3
6
|
import { createBox } from "../projection/geometry/models.mjs";
|
|
4
7
|
import { isNumericalString } from "../utils/is-numerical-string.mjs";
|
|
5
8
|
import { isZeroValueString } from "../utils/is-zero-value-string.mjs";
|
|
6
9
|
import { initPrefersReducedMotion } from "../utils/reduced-motion/index.mjs";
|
|
7
10
|
import { hasReducedMotionListener, prefersReducedMotion } from "../utils/reduced-motion/state.mjs";
|
|
8
|
-
import { SubscriptionManager } from "../utils/subscription-manager.mjs";
|
|
9
|
-
import { warnOnce } from "../utils/warn-once.mjs";
|
|
10
|
-
import { motionValue } from "../value/index.mjs";
|
|
11
11
|
import { complex } from "../value/types/complex/index.mjs";
|
|
12
12
|
import { isMotionValue } from "../value/utils/is-motion-value.mjs";
|
|
13
13
|
import { getAnimatableNone } from "./dom/value-types/animatable-none.mjs";
|
|
@@ -18,7 +18,6 @@ import { isControllingVariants, isVariantNode } from "./utils/is-controlling-var
|
|
|
18
18
|
import { KeyframeResolver } from "./utils/KeyframesResolver.mjs";
|
|
19
19
|
import { updateMotionValuesFromProps } from "./utils/motion-values.mjs";
|
|
20
20
|
import { resolveVariantFromProps } from "./utils/resolve-variants.mjs";
|
|
21
|
-
import { frame, cancelFrame } from "../frameloop/frame.mjs";
|
|
22
21
|
const propEventHandlers = [
|
|
23
22
|
"AnimationStart",
|
|
24
23
|
"AnimationComplete",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import { resolveElements } from "../../../../../../../../motion-dom@12.4.10/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
1
|
+
import { resolveElements } from "motion-dom";
|
|
3
2
|
const resizeHandlers = /* @__PURE__ */ new WeakMap();
|
|
4
3
|
let observer;
|
|
5
4
|
function getElementSize(target, borderBoxSize) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { supportsScrollTimeline } from "
|
|
2
|
-
import "../../../../../../../../motion-utils@12.
|
|
3
|
-
import { noop } from "../../../../../../../../motion-utils@12.
|
|
1
|
+
import { supportsScrollTimeline } from "motion-dom";
|
|
2
|
+
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { noop } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
|
|
4
4
|
import { observeTimeline } from "./observe.mjs";
|
|
5
5
|
import { scrollInfo } from "./track.mjs";
|
|
6
6
|
function scrollTimelineFallback({ source, container, axis = "y" }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../../../../../../../motion-utils@12.
|
|
2
|
-
import { progress } from "../../../../../../../../motion-utils@12.
|
|
3
|
-
import { velocityPerSecond } from "
|
|
1
|
+
import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { progress } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/progress.mjs";
|
|
3
|
+
import { velocityPerSecond } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/velocity-per-second.mjs";
|
|
4
4
|
const maxElapsed = 50;
|
|
5
5
|
const createAxisInfo = () => ({
|
|
6
6
|
current: 0,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
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";
|
|
2
3
|
import { updateScrollInfo } from "./info.mjs";
|
|
3
4
|
import { resolveOffsets } from "./offsets/index.mjs";
|
|
4
5
|
function measure(container, target = container, info) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { frame, cancelFrame, frameData } from "motion-dom";
|
|
1
2
|
import { resize } from "../resize/index.mjs";
|
|
2
3
|
import { createScrollInfo } from "./info.mjs";
|
|
3
4
|
import { createOnScrollHandler } from "./on-scroll-handler.mjs";
|
|
4
|
-
import { frame, cancelFrame, frameData } from "../../../frameloop/frame.mjs";
|
|
5
5
|
const scrollListeners = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
const resizeListeners = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
const onScrollHandlers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { invariant } from "../../../../../../../../motion-utils@12.
|
|
1
|
+
import { invariant } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
2
|
import { isNumericalString } from "../../../utils/is-numerical-string.mjs";
|
|
3
3
|
import { isCSSVariableToken } from "./is-css-variable.mjs";
|
|
4
4
|
const splitCSSVariableRegex = (
|
|
@@ -1,23 +1,8 @@
|
|
|
1
1
|
import { number } from "../../../value/types/numbers/index.mjs";
|
|
2
2
|
import { px } from "../../../value/types/numbers/units.mjs";
|
|
3
3
|
import { transformPropOrder } from "../../html/utils/keys-transform.mjs";
|
|
4
|
+
import { parseValueFromTransform } from "../../html/utils/parse-transform.mjs";
|
|
4
5
|
const isNumOrPxType = (v) => v === number || v === px;
|
|
5
|
-
const getPosFromMatrix = (matrix, pos) => parseFloat(matrix.split(", ")[pos]);
|
|
6
|
-
const getTranslateFromMatrix = (pos2, pos3) => (_bbox, { transform }) => {
|
|
7
|
-
if (transform === "none" || !transform)
|
|
8
|
-
return 0;
|
|
9
|
-
const matrix3d = transform.match(/^matrix3d\((.+)\)$/u);
|
|
10
|
-
if (matrix3d) {
|
|
11
|
-
return getPosFromMatrix(matrix3d[1], pos3);
|
|
12
|
-
} else {
|
|
13
|
-
const matrix = transform.match(/^matrix\((.+)\)$/u);
|
|
14
|
-
if (matrix) {
|
|
15
|
-
return getPosFromMatrix(matrix[1], pos2);
|
|
16
|
-
} else {
|
|
17
|
-
return 0;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
6
|
const transformKeys = /* @__PURE__ */ new Set(["x", "y", "z"]);
|
|
22
7
|
const nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));
|
|
23
8
|
function removeNonTranslationalTransform(visualElement) {
|
|
@@ -40,8 +25,8 @@ const positionalValues = {
|
|
|
40
25
|
bottom: ({ y }, { top }) => parseFloat(top) + (y.max - y.min),
|
|
41
26
|
right: ({ x }, { left }) => parseFloat(left) + (x.max - x.min),
|
|
42
27
|
// Transform
|
|
43
|
-
x:
|
|
44
|
-
y:
|
|
28
|
+
x: (_bbox, { transform }) => parseValueFromTransform(transform, "x"),
|
|
29
|
+
y: (_bbox, { transform }) => parseValueFromTransform(transform, "y")
|
|
45
30
|
};
|
|
46
31
|
positionalValues.translateX = positionalValues.x;
|
|
47
32
|
positionalValues.translateY = positionalValues.y;
|