motion-v 0.12.0-beta.2 → 0.13.0-alpha.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 +478 -1218
- package/dist/es/animation/hooks/animation-controls.mjs +1 -1
- package/dist/es/animation/hooks/use-animate.mjs +1 -1
- package/dist/es/animation/hooks/use-reduced-motion.mjs +9 -0
- package/dist/es/components/animate-presence/AnimatePresence.vue.mjs +27 -19
- package/dist/es/components/animate-presence/use-pop-layout.mjs +1 -1
- package/dist/es/components/motion/Motion.vue.mjs +1 -0
- 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 +30 -19
- 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 +32 -42
- package/dist/es/state/animate-updates.mjs +6 -5
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +3 -3
- package/dist/es/state/utils.mjs +0 -1
- 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-scroll.mjs +26 -24
- package/dist/es/value/use-spring.mjs +2 -3
- 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/dist/nuxt/index.cjs +39 -27
- package/dist/nuxt/index.d.cts +7 -3
- package/dist/nuxt/index.d.mts +7 -3
- package/dist/nuxt/index.mjs +39 -27
- package/package.json +4 -3
- package/dist/es/animation/hooks/animation-controls.d.ts +0 -8
- package/dist/es/animation/hooks/use-animate.d.ts +0 -8
- package/dist/es/animation/hooks/use-animation-controls.d.ts +0 -33
- package/dist/es/animation/index.d.ts +0 -2
- package/dist/es/animation/types.d.ts +0 -68
- package/dist/es/animation/utils.d.ts +0 -2
- package/dist/es/components/LayoutGroup.d.ts +0 -43
- package/dist/es/components/RowValue.d.ts +0 -18
- package/dist/es/components/animate-presence/AnimatePresence.d.ts +0 -49
- package/dist/es/components/animate-presence/index.d.ts +0 -2
- package/dist/es/components/animate-presence/types.d.ts +0 -9
- package/dist/es/components/animate-presence/use-pop-layout.d.ts +0 -7
- package/dist/es/components/animate-presence/use-presence.d.ts +0 -2
- package/dist/es/components/animate-presence/utils.d.ts +0 -0
- package/dist/es/components/context.d.ts +0 -16
- package/dist/es/components/group.d.ts +0 -7
- package/dist/es/components/hooks/use-motion-elm.d.ts +0 -13
- package/dist/es/components/index.d.ts +0 -6
- package/dist/es/components/motion/Motion.d.ts +0 -32
- package/dist/es/components/motion/NameSpace.d.ts +0 -14
- package/dist/es/components/motion/Primitive.d.ts +0 -48
- package/dist/es/components/motion/Slot.d.ts +0 -5
- package/dist/es/components/motion/index.d.ts +0 -2
- package/dist/es/components/motion/renderSlotFragments.d.ts +0 -2
- package/dist/es/components/motion/utils.d.ts +0 -7
- package/dist/es/components/motion-config/MotionConfig.d.ts +0 -39
- package/dist/es/components/motion-config/context.d.ts +0 -11
- package/dist/es/components/motion-config/index.d.ts +0 -2
- package/dist/es/components/motion-config/types.d.ts +0 -16
- package/dist/es/components/presence.d.ts +0 -7
- package/dist/es/components/reorder/Group.d.ts +0 -71
- package/dist/es/components/reorder/Item.d.ts +0 -36
- package/dist/es/components/reorder/context.d.ts +0 -8
- package/dist/es/components/reorder/index.d.ts +0 -8942
- package/dist/es/components/reorder/types.d.ts +0 -5
- package/dist/es/components/reorder/utils.d.ts +0 -6
- package/dist/es/components/use-force-update.d.ts +0 -2
- package/dist/es/components/use-layout-group.d.ts +0 -23
- package/dist/es/components/use-slot-change-index.d.ts +0 -1
- package/dist/es/constants/index.d.ts +0 -9
- package/dist/es/constants/index.mjs +0 -31
- package/dist/es/events/add-dom-event.d.ts +0 -1
- package/dist/es/events/add-pointer-event.d.ts +0 -2
- package/dist/es/events/event-info.d.ts +0 -4
- package/dist/es/events/index.d.ts +0 -5
- package/dist/es/events/types.d.ts +0 -5
- package/dist/es/events/utils/index.d.ts +0 -1
- package/dist/es/events/utils/is-primary-pointer.d.ts +0 -1
- 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/features/animation/animation.d.ts +0 -13
- package/dist/es/features/feature-manager.d.ts +0 -12
- package/dist/es/features/feature.d.ts +0 -11
- package/dist/es/features/gestures/base.d.ts +0 -8
- package/dist/es/features/gestures/drag/VisualElementDragControls.d.ts +0 -57
- package/dist/es/features/gestures/drag/index.d.ts +0 -10
- package/dist/es/features/gestures/drag/lock.d.ts +0 -4
- package/dist/es/features/gestures/drag/types.d.ts +0 -225
- package/dist/es/features/gestures/drag/use-drag-controls.d.ts +0 -73
- package/dist/es/features/gestures/drag/utils/constraints.d.ts +0 -55
- package/dist/es/features/gestures/drag/utils/is.d.ts +0 -1
- package/dist/es/features/gestures/focus/index.d.ts +0 -7
- package/dist/es/features/gestures/focus/types.d.ts +0 -13
- package/dist/es/features/gestures/hover/index.d.ts +0 -7
- package/dist/es/features/gestures/hover/types.d.ts +0 -15
- package/dist/es/features/gestures/in-view/index.d.ts +0 -9
- package/dist/es/features/gestures/in-view/types.d.ts +0 -25
- package/dist/es/features/gestures/index.d.ts +0 -5
- package/dist/es/features/gestures/pan/PanSession.d.ts +0 -139
- package/dist/es/features/gestures/pan/index.d.ts +0 -16
- package/dist/es/features/gestures/pan/types.d.ts +0 -7
- package/dist/es/features/gestures/press/index.d.ts +0 -9
- package/dist/es/features/gestures/press/types.d.ts +0 -20
- package/dist/es/features/gestures/types.d.ts +0 -22
- package/dist/es/features/index.d.ts +0 -6
- package/dist/es/features/layout/config.d.ts +0 -8
- package/dist/es/features/layout/layout.d.ts +0 -11
- package/dist/es/features/layout/projection.d.ts +0 -9
- package/dist/es/features/layout/types.d.ts +0 -21
- package/dist/es/features/layout/utils.d.ts +0 -4
- package/dist/es/index.d.ts +0 -15
- package/dist/es/projection/conversion.d.ts +0 -14
- package/dist/es/projection/geometry/delta-apply.d.ts +0 -2
- package/dist/es/projection/geometry/delta-calc.d.ts +0 -2
- package/dist/es/projection/geometry/models.d.ts +0 -3
- package/dist/es/projection/node/types.d.ts +0 -16
- package/dist/es/projection/utils/each-axis.d.ts +0 -3
- package/dist/es/projection/utils/measure.d.ts +0 -3
- package/dist/es/render/utils/setters.d.ts +0 -3
- package/dist/es/shared/test.d.ts +0 -1
- package/dist/es/state/animate-updates.d.ts +0 -20
- package/dist/es/state/animate-variants-children.d.ts +0 -15
- package/dist/es/state/animation/index.d.ts +0 -0
- package/dist/es/state/animation/types.d.ts +0 -0
- package/dist/es/state/create-visual-element.d.ts +0 -1
- package/dist/es/state/event.d.ts +0 -6
- package/dist/es/state/index.d.ts +0 -1
- package/dist/es/state/motion-state.d.ts +0 -50
- package/dist/es/state/style.d.ts +0 -11
- package/dist/es/state/transform.d.ts +0 -25
- package/dist/es/state/utils/is-present.d.ts +0 -2
- package/dist/es/state/utils/is-variant-labels.d.ts +0 -2
- package/dist/es/state/utils.d.ts +0 -19
- package/dist/es/types/framer-motion.d.ts +0 -43
- package/dist/es/types/index.d.ts +0 -4
- package/dist/es/types/motion-values.d.ts +0 -93
- package/dist/es/types/state.d.ts +0 -79
- package/dist/es/types/transform.d.ts +0 -23
- package/dist/es/utils/clamp.d.ts +0 -1
- package/dist/es/utils/createContext.d.ts +0 -8
- package/dist/es/utils/delay.d.ts +0 -1
- package/dist/es/utils/get-context-window.d.ts +0 -2
- package/dist/es/utils/index.d.ts +0 -7
- package/dist/es/utils/mix/number.d.ts +0 -1
- package/dist/es/utils/motion-value.d.ts +0 -2
- package/dist/es/utils/noop.d.ts +0 -1
- package/dist/es/utils/progress.d.ts +0 -1
- package/dist/es/utils/time-conversion.d.ts +0 -8
- package/dist/es/utils/use-animation-frame.d.ts +0 -2
- package/dist/es/utils/use-dom-ref.d.ts +0 -1
- package/dist/es/utils/use-in-view.d.ts +0 -3
- package/dist/es/value/index.d.ts +0 -9
- package/dist/es/value/types/numbers/units.d.ts +0 -30
- package/dist/es/value/use-combine-values.d.ts +0 -6
- package/dist/es/value/use-computed.d.ts +0 -2
- package/dist/es/value/use-motion-template.d.ts +0 -21
- package/dist/es/value/use-motion-value-event.d.ts +0 -3
- package/dist/es/value/use-scroll.d.ts +0 -12
- package/dist/es/value/use-spring.d.ts +0 -4
- package/dist/es/value/use-time.d.ts +0 -1
- package/dist/es/value/use-transform.d.ts +0 -59
- package/dist/es/value/use-velocity.d.ts +0 -13
- package/dist/es/value/use-will-change/add-will-change.d.ts +0 -2
- package/dist/es/value/use-will-change/is.d.ts +0 -2
- package/dist/es/value/use-will-change/types.d.ts +0 -4
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mountedStates } from "../../state/motion-state.mjs";
|
|
2
2
|
import { invariant } from "hey-listen";
|
|
3
|
-
import { setTarget } from "../../external/.pnpm/framer-motion@12.
|
|
3
|
+
import { setTarget } from "../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/utils/setters.mjs";
|
|
4
4
|
import { resolveVariant } from "../../state/utils.mjs";
|
|
5
5
|
function stopAnimation(visualElement) {
|
|
6
6
|
visualElement.values.forEach((value) => value.stop());
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, onUnmounted } from "vue";
|
|
2
|
-
import { createScopedAnimate } from "../../external/.pnpm/framer-motion@12.
|
|
2
|
+
import { createScopedAnimate } from "../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animate/index.mjs";
|
|
3
3
|
function useAnimate() {
|
|
4
4
|
const dom = ref(null);
|
|
5
5
|
const domProxy = new Proxy(dom, {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
import { useMediaQuery } from "@vueuse/core";
|
|
3
|
+
function useReducedMotion(options = {}) {
|
|
4
|
+
const reducedMotion = useMediaQuery("(prefers-reduced-motion: reduce)", options);
|
|
5
|
+
return computed(() => reducedMotion.value);
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
useReducedMotion
|
|
9
|
+
};
|
|
@@ -15,7 +15,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
as: {},
|
|
16
16
|
custom: {},
|
|
17
17
|
onExitComplete: {},
|
|
18
|
-
unwrapElement: { type: [Boolean, Function], default: false },
|
|
19
18
|
anchorX: { default: "left" }
|
|
20
19
|
},
|
|
21
20
|
setup(__props) {
|
|
@@ -29,6 +28,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
28
|
presenceContext.initial = void 0;
|
|
30
29
|
});
|
|
31
30
|
const { addPopStyle, removePopStyle, styles } = usePopLayout(props);
|
|
31
|
+
function findMotionElement(el) {
|
|
32
|
+
let current = el;
|
|
33
|
+
while (current) {
|
|
34
|
+
if (mountedStates.get(current)) {
|
|
35
|
+
return current;
|
|
36
|
+
}
|
|
37
|
+
current = current.firstElementChild;
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
32
41
|
function enter(el) {
|
|
33
42
|
const state = mountedStates.get(el);
|
|
34
43
|
if (!state) {
|
|
@@ -46,29 +55,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
55
|
exitDom.clear();
|
|
47
56
|
});
|
|
48
57
|
function exit(el, done) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
58
|
+
var _a;
|
|
59
|
+
const motionEl = findMotionElement(el);
|
|
60
|
+
const state = mountedStates.get(motionEl);
|
|
61
|
+
if (!motionEl || !state) {
|
|
62
|
+
done();
|
|
63
|
+
if (exitDom.size === 0) {
|
|
64
|
+
(_a = props.onExitComplete) == null ? void 0 : _a.call(props);
|
|
54
65
|
}
|
|
66
|
+
return;
|
|
55
67
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return done();
|
|
59
|
-
}
|
|
60
|
-
exitDom.set(el, true);
|
|
61
|
-
removeDoneCallback(el);
|
|
68
|
+
exitDom.set(motionEl, true);
|
|
69
|
+
removeDoneCallback(motionEl);
|
|
62
70
|
addPopStyle(state);
|
|
63
71
|
function doneCallback(e) {
|
|
64
|
-
var
|
|
65
|
-
if ((
|
|
72
|
+
var _a2, _b;
|
|
73
|
+
if ((_a2 = e == null ? void 0 : e.detail) == null ? void 0 : _a2.isExit) {
|
|
66
74
|
const projection = state.visualElement.projection;
|
|
67
75
|
if ((projection == null ? void 0 : projection.animationProgress) > 0 && !state.isSafeToRemove && !state.isVShow) {
|
|
68
76
|
return;
|
|
69
77
|
}
|
|
70
|
-
removeDoneCallback(
|
|
71
|
-
exitDom.delete(
|
|
78
|
+
removeDoneCallback(motionEl);
|
|
79
|
+
exitDom.delete(motionEl);
|
|
72
80
|
if (exitDom.size === 0) {
|
|
73
81
|
(_b = props.onExitComplete) == null ? void 0 : _b.call(props);
|
|
74
82
|
}
|
|
@@ -78,15 +86,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
86
|
removePopStyle(state);
|
|
79
87
|
}
|
|
80
88
|
done();
|
|
81
|
-
if (!
|
|
89
|
+
if (!motionEl.isConnected) {
|
|
82
90
|
state.unmount(true);
|
|
83
91
|
}
|
|
84
92
|
}
|
|
85
93
|
}
|
|
86
94
|
delay(() => {
|
|
87
95
|
state.setActive("exit", true);
|
|
88
|
-
doneCallbacks.set(
|
|
89
|
-
|
|
96
|
+
doneCallbacks.set(motionEl, doneCallback);
|
|
97
|
+
motionEl.addEventListener("motioncomplete", doneCallback);
|
|
90
98
|
});
|
|
91
99
|
}
|
|
92
100
|
const transitionProps = computed(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMotionConfig } from "../motion-config/context.mjs";
|
|
2
|
-
import { frame } from "
|
|
2
|
+
import { frame } from "motion-dom";
|
|
3
3
|
function usePopLayout(props) {
|
|
4
4
|
const styles = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
const config = useMotionConfig();
|
|
@@ -141,6 +141,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
141
|
layoutGroup,
|
|
142
142
|
motionConfig: config.value,
|
|
143
143
|
inViewOptions: props.inViewOptions ?? config.value.inViewOptions,
|
|
144
|
+
animatePresenceContext,
|
|
144
145
|
initial: animatePresenceContext.initial === false ? animatePresenceContext.initial : props.initial === true ? void 0 : props.initial
|
|
145
146
|
};
|
|
146
147
|
}
|
|
@@ -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 = [];
|