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,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;
|
|
@@ -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 thresholds = {
|
|
4
3
|
some: 0,
|
|
5
4
|
all: 1
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { measureViewportBox } from "../../projection/utils/measure.mjs";
|
|
2
2
|
import { DOMVisualElement } from "../dom/DOMVisualElement.mjs";
|
|
3
3
|
import { isCSSVariableName } from "../dom/utils/is-css-variable.mjs";
|
|
4
|
-
import { getDefaultValueType } from "../dom/value-types/defaults.mjs";
|
|
5
4
|
import { buildHTMLStyles } from "./utils/build-styles.mjs";
|
|
6
5
|
import { transformProps } from "./utils/keys-transform.mjs";
|
|
6
|
+
import { readTransformValue } from "./utils/parse-transform.mjs";
|
|
7
7
|
import { renderHTML } from "./utils/render.mjs";
|
|
8
8
|
import { scrapeMotionValuesFromProps } from "./utils/scrape-motion-values.mjs";
|
|
9
9
|
function getComputedStyle(element) {
|
|
@@ -17,8 +17,7 @@ class HTMLVisualElement extends DOMVisualElement {
|
|
|
17
17
|
}
|
|
18
18
|
readValueFromInstance(instance, key) {
|
|
19
19
|
if (transformProps.has(key)) {
|
|
20
|
-
|
|
21
|
-
return defaultType ? defaultType.default || 0 : 0;
|
|
20
|
+
return readTransformValue(instance, key);
|
|
22
21
|
} else {
|
|
23
22
|
const computedStyle = getComputedStyle(instance);
|
|
24
23
|
const value = (isCSSVariableName(key) ? computedStyle.getPropertyValue(key) : computedStyle[key]) || 0;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const radToDeg = (rad) => rad * 180 / Math.PI;
|
|
2
|
+
const rotate = (v) => {
|
|
3
|
+
const angle = radToDeg(Math.atan2(v[1], v[0]));
|
|
4
|
+
return rebaseAngle(angle);
|
|
5
|
+
};
|
|
6
|
+
const matrix2dParsers = {
|
|
7
|
+
x: 4,
|
|
8
|
+
y: 5,
|
|
9
|
+
translateX: 4,
|
|
10
|
+
translateY: 5,
|
|
11
|
+
scaleX: 0,
|
|
12
|
+
scaleY: 3,
|
|
13
|
+
scale: (v) => (Math.abs(v[0]) + Math.abs(v[3])) / 2,
|
|
14
|
+
rotate,
|
|
15
|
+
rotateZ: rotate,
|
|
16
|
+
skewX: (v) => radToDeg(Math.atan(v[1])),
|
|
17
|
+
skewY: (v) => radToDeg(Math.atan(v[2])),
|
|
18
|
+
skew: (v) => (Math.abs(v[1]) + Math.abs(v[2])) / 2
|
|
19
|
+
};
|
|
20
|
+
const rebaseAngle = (angle) => {
|
|
21
|
+
angle = angle % 360;
|
|
22
|
+
if (angle < 0)
|
|
23
|
+
angle += 360;
|
|
24
|
+
return angle;
|
|
25
|
+
};
|
|
26
|
+
const rotateZ = rotate;
|
|
27
|
+
const scaleX = (v) => Math.sqrt(v[0] * v[0] + v[1] * v[1]);
|
|
28
|
+
const scaleY = (v) => Math.sqrt(v[4] * v[4] + v[5] * v[5]);
|
|
29
|
+
const matrix3dParsers = {
|
|
30
|
+
x: 12,
|
|
31
|
+
y: 13,
|
|
32
|
+
z: 14,
|
|
33
|
+
translateX: 12,
|
|
34
|
+
translateY: 13,
|
|
35
|
+
translateZ: 14,
|
|
36
|
+
scaleX,
|
|
37
|
+
scaleY,
|
|
38
|
+
scale: (v) => (scaleX(v) + scaleY(v)) / 2,
|
|
39
|
+
rotateX: (v) => rebaseAngle(radToDeg(Math.atan2(v[6], v[5]))),
|
|
40
|
+
rotateY: (v) => rebaseAngle(radToDeg(Math.atan2(-v[2], v[0]))),
|
|
41
|
+
rotateZ,
|
|
42
|
+
rotate: rotateZ,
|
|
43
|
+
skewX: (v) => radToDeg(Math.atan(v[4])),
|
|
44
|
+
skewY: (v) => radToDeg(Math.atan(v[1])),
|
|
45
|
+
skew: (v) => (Math.abs(v[1]) + Math.abs(v[4])) / 2
|
|
46
|
+
};
|
|
47
|
+
function defaultTransformValue(name) {
|
|
48
|
+
return name.includes("scale") ? 1 : 0;
|
|
49
|
+
}
|
|
50
|
+
function parseValueFromTransform(transform, name) {
|
|
51
|
+
if (!transform || transform === "none") {
|
|
52
|
+
return defaultTransformValue(name);
|
|
53
|
+
}
|
|
54
|
+
const matrix3dMatch = transform.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
|
|
55
|
+
let parsers;
|
|
56
|
+
let match;
|
|
57
|
+
if (matrix3dMatch) {
|
|
58
|
+
parsers = matrix3dParsers;
|
|
59
|
+
match = matrix3dMatch;
|
|
60
|
+
} else {
|
|
61
|
+
const matrix2dMatch = transform.match(/^matrix\(([-\d.e\s,]+)\)$/u);
|
|
62
|
+
parsers = matrix2dParsers;
|
|
63
|
+
match = matrix2dMatch;
|
|
64
|
+
}
|
|
65
|
+
if (!match) {
|
|
66
|
+
return defaultTransformValue(name);
|
|
67
|
+
}
|
|
68
|
+
const valueParser = parsers[name];
|
|
69
|
+
const values = match[1].split(",").map(convertTransformToNumber);
|
|
70
|
+
return typeof valueParser === "function" ? valueParser(values) : values[valueParser];
|
|
71
|
+
}
|
|
72
|
+
const readTransformValue = (instance, name) => {
|
|
73
|
+
const { transform = "none" } = getComputedStyle(instance);
|
|
74
|
+
return parseValueFromTransform(transform, name);
|
|
75
|
+
};
|
|
76
|
+
function convertTransformToNumber(value) {
|
|
77
|
+
return parseFloat(value.trim());
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
parseValueFromTransform,
|
|
81
|
+
readTransformValue
|
|
82
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { frame } from "
|
|
1
|
+
import { frame } from "motion-dom";
|
|
2
2
|
import { createBox } from "../../projection/geometry/models.mjs";
|
|
3
3
|
import { DOMVisualElement } from "../dom/DOMVisualElement.mjs";
|
|
4
4
|
import { camelToDash } from "../dom/utils/camel-to-dash.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { frame } from "motion-dom";
|
|
1
2
|
import { removeNonTranslationalTransform } from "../dom/utils/unit-conversion.mjs";
|
|
2
|
-
import { frame } from "../../frameloop/frame.mjs";
|
|
3
3
|
const toResolve = /* @__PURE__ */ new Set();
|
|
4
4
|
let isScheduled = false;
|
|
5
5
|
let anyNeedsMeasurement = false;
|
|
@@ -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
|
import { compareByDepth } from "./compare-by-depth.mjs";
|
|
3
4
|
class FlatTree {
|
|
4
5
|
constructor() {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { motionValue } from "motion-dom";
|
|
2
|
+
import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { warnOnce } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/warn-once.mjs";
|
|
3
4
|
import { isMotionValue } from "../../value/utils/is-motion-value.mjs";
|
|
4
5
|
function updateMotionValuesFromProps(element, next, prev) {
|
|
5
6
|
for (const key in next) {
|
|
@@ -8,7 +9,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
8
9
|
if (isMotionValue(nextValue)) {
|
|
9
10
|
element.addValue(key, nextValue);
|
|
10
11
|
if (process.env.NODE_ENV === "development") {
|
|
11
|
-
warnOnce(nextValue.version === "12.
|
|
12
|
+
warnOnce(nextValue.version === "12.5.0", `Attempting to mix Motion versions ${nextValue.version} with 12.5.0 may not work as expected.`);
|
|
12
13
|
}
|
|
13
14
|
} else if (isMotionValue(prevValue)) {
|
|
14
15
|
element.addValue(key, motionValue(nextValue, { owner: element }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { motionValue } from "motion-dom";
|
|
1
2
|
import { resolveFinalValueInKeyframes } from "../../utils/resolve-value.mjs";
|
|
2
|
-
import { motionValue } from "../../value/index.mjs";
|
|
3
3
|
import { resolveVariant } from "./resolve-dynamic-variants.mjs";
|
|
4
4
|
function setMotionValue(visualElement, key, value) {
|
|
5
5
|
if (visualElement.hasValue(key)) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { frame, cancelFrame } from "../frameloop/frame.mjs";
|
|
1
|
+
import { time, frame, cancelFrame } 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";
|
|
5
4
|
function delay(callback, timeout) {
|
|
6
5
|
const start = time.now();
|
|
7
6
|
const checkElapsed = ({ timestamp }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { invariant } from "../../../../../../motion-utils@12.
|
|
2
|
-
import { noop } from "../../../../../../motion-utils@12.
|
|
3
|
-
import { progress } from "../../../../../../motion-utils@12.
|
|
1
|
+
import { invariant } from "../../../../../../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 { clamp } from "./clamp.mjs";
|
|
5
5
|
import { mix } from "./mix/index.mjs";
|
|
6
6
|
import { pipe } from "./pipe.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mixNumber } from "./number.mjs";
|
|
2
|
-
import { warning } from "../../../../../../../motion-utils@12.
|
|
2
|
+
import { warning } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
3
|
import { hslaToRgba } from "../hsla-to-rgba.mjs";
|
|
4
4
|
import { hex } from "../../value/types/color/hex.mjs";
|
|
5
5
|
import { rgba } from "../../value/types/color/rgba.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mixNumber as mixNumber$1 } from "./number.mjs";
|
|
2
2
|
import { mixColor } from "./color.mjs";
|
|
3
3
|
import { pipe } from "../pipe.mjs";
|
|
4
|
-
import { warning } from "../../../../../../../motion-utils@12.
|
|
4
|
+
import { warning } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
5
5
|
import { color } from "../../value/types/color/index.mjs";
|
|
6
6
|
import { complex, analyseComplexValue } from "../../value/types/complex/index.mjs";
|
|
7
7
|
import { isCSSVariableToken } from "../../render/dom/utils/is-css-variable.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../../motion-utils@12.
|
|
2
|
-
import { progress } from "../../../../../../../motion-utils@12.
|
|
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
3
|
import { mixNumber } from "../mix/number.mjs";
|
|
4
4
|
function fillOffset(offset, remaining) {
|
|
5
5
|
const min = offset[offset.length - 1];
|
|
@@ -12,12 +12,12 @@ import { percent } from "../../../value/types/numbers/units.mjs";
|
|
|
12
12
|
import { addValueToWillChange } from "../../../value/use-will-change/add-will-change.mjs";
|
|
13
13
|
import { measurePageBox } from "../../../projection/utils/measure.mjs";
|
|
14
14
|
import { convertBoxToBoundingBox, convertBoundingBoxToBox } from "../../../projection/conversion.mjs";
|
|
15
|
-
import { animateMotionValue } from "../../../external/.pnpm/framer-motion@12.
|
|
15
|
+
import { animateMotionValue } from "../../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs";
|
|
16
16
|
import { mixNumber } from "../../../utils/mix/number.mjs";
|
|
17
17
|
import { invariant } from "hey-listen";
|
|
18
18
|
import { isPresent } from "../../../state/utils/is-present.mjs";
|
|
19
19
|
import { getContextWindow } from "../../../utils/get-context-window.mjs";
|
|
20
|
-
import { frame } from "
|
|
20
|
+
import { frame } from "motion-dom";
|
|
21
21
|
const elementDragControls = /* @__PURE__ */ new WeakMap();
|
|
22
22
|
class VisualElementDragControls {
|
|
23
23
|
constructor(visualElement) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
2
|
import { VisualElementDragControls } from "./VisualElementDragControls.mjs";
|
|
3
|
-
import { noop } from "../../../external/.pnpm/motion-utils@12.
|
|
4
|
-
import "../../../external/.pnpm/motion-utils@12.
|
|
3
|
+
import { noop } from "../../../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
|
|
4
|
+
import "../../../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
5
5
|
class DragGesture extends Feature {
|
|
6
6
|
constructor(state) {
|
|
7
7
|
super(state);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { addDomEvent } from "../../../events/add-dom-event.mjs";
|
|
2
2
|
import { Feature } from "../../feature.mjs";
|
|
3
|
-
import { pipe } from "../../../external/.pnpm/framer-motion@12.
|
|
3
|
+
import { pipe } from "../../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/pipe.mjs";
|
|
4
4
|
class FocusGesture extends Feature {
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments);
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
|
-
import { hover } from "../../../external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/hover.mjs";
|
|
3
|
-
import "../../../external/.pnpm/motion-utils@12.4.10/external/motion-utils/dist/es/errors.mjs";
|
|
4
|
-
import { frame } from "../../../external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
5
2
|
import { extractEventInfo } from "../press/index.mjs";
|
|
3
|
+
import { hover, frame } from "motion-dom";
|
|
6
4
|
function handleHoverEvent(state, event, lifecycle) {
|
|
7
5
|
const props = state.options;
|
|
8
6
|
if (props.whileHover) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
|
-
import { inView } from "../../../external/.pnpm/framer-motion@12.
|
|
3
|
-
import { frame } from "
|
|
2
|
+
import { inView } from "../../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/viewport/index.mjs";
|
|
3
|
+
import { frame } from "motion-dom";
|
|
4
4
|
function handleHoverEvent(state, entry, lifecycle) {
|
|
5
5
|
const props = state.options;
|
|
6
6
|
if (props.whileInView) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { addPointerEvent } from "../../../events/add-pointer-event.mjs";
|
|
2
2
|
import { extractEventInfo } from "../../../events/event-info.mjs";
|
|
3
|
-
import { distance2D } from "../../../external/.pnpm/framer-motion@12.
|
|
4
|
-
import {
|
|
5
|
-
import { pipe } from "../../../external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/utils/pipe.mjs";
|
|
3
|
+
import { distance2D } from "../../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/distance.mjs";
|
|
4
|
+
import { pipe } from "../../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/pipe.mjs";
|
|
6
5
|
import { secondsToMilliseconds, millisecondsToSeconds } from "../../../utils/time-conversion.mjs";
|
|
6
|
+
import { frame, cancelFrame, frameData } from "motion-dom";
|
|
7
7
|
import { isPrimaryPointer } from "../../../events/utils/is-primary-pointer.mjs";
|
|
8
8
|
class PanSession {
|
|
9
9
|
constructor(event, handlers, { transformPagePoint, contextWindow, dragSnapToOrigin = false } = {}) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PanSession } from "./PanSession.mjs";
|
|
2
2
|
import { addPointerEvent } from "../../../events/add-pointer-event.mjs";
|
|
3
3
|
import { Feature } from "../../feature.mjs";
|
|
4
|
-
import { noop } from "../../../external/.pnpm/motion-utils@12.
|
|
5
|
-
import "../../../external/.pnpm/motion-utils@12.
|
|
6
|
-
import { frame } from "../../../external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
4
|
+
import { noop } from "../../../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
|
|
5
|
+
import "../../../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
7
6
|
import { getContextWindow } from "../../../utils/get-context-window.mjs";
|
|
7
|
+
import { frame } from "motion-dom";
|
|
8
8
|
function asyncHandler(handler) {
|
|
9
9
|
return (event, info) => {
|
|
10
10
|
if (handler) {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
|
-
import { press } from "
|
|
3
|
-
import "../../../external/.pnpm/motion-utils@12.4.10/external/motion-utils/dist/es/errors.mjs";
|
|
4
|
-
import { frame } from "../../../external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
2
|
+
import { press, frame } from "motion-dom";
|
|
5
3
|
function extractEventInfo(event) {
|
|
6
4
|
return {
|
|
7
5
|
point: {
|
|
@@ -23,27 +21,40 @@ function handlePressEvent(state, event, lifecycle) {
|
|
|
23
21
|
}
|
|
24
22
|
class PressGesture extends Feature {
|
|
25
23
|
isActive() {
|
|
26
|
-
|
|
24
|
+
const { whilePress, onPress, onPressCancel, onPressStart } = this.state.options;
|
|
25
|
+
return Boolean(whilePress || onPress || onPressCancel || onPressStart);
|
|
27
26
|
}
|
|
28
27
|
constructor(state) {
|
|
29
28
|
super(state);
|
|
30
29
|
}
|
|
31
30
|
mount() {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
31
|
+
this.register();
|
|
32
|
+
}
|
|
33
|
+
update() {
|
|
34
|
+
const preProps = this.state.visualElement.prevProps;
|
|
35
|
+
if (preProps.whilePress !== this.state.options.whilePress) {
|
|
36
|
+
this.register();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
register() {
|
|
40
|
+
this.unmount();
|
|
41
|
+
if (this.isActive()) {
|
|
42
|
+
const element = this.state.element;
|
|
43
|
+
if (!element)
|
|
44
|
+
return;
|
|
45
|
+
this.unmount = press(
|
|
46
|
+
element,
|
|
47
|
+
(el, startEvent) => {
|
|
48
|
+
handlePressEvent(this.state, startEvent, "Start");
|
|
49
|
+
return (endEvent, { success }) => handlePressEvent(
|
|
50
|
+
this.state,
|
|
51
|
+
endEvent,
|
|
52
|
+
success ? "End" : "Cancel"
|
|
53
|
+
);
|
|
54
|
+
},
|
|
55
|
+
{ useGlobalTarget: this.state.options.globalPressTarget }
|
|
56
|
+
);
|
|
57
|
+
}
|
|
47
58
|
}
|
|
48
59
|
}
|
|
49
60
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { correctBorderRadius } from "../../external/.pnpm/framer-motion@12.
|
|
2
|
-
import { correctBoxShadow } from "../../external/.pnpm/framer-motion@12.
|
|
1
|
+
import { correctBorderRadius } from "../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs";
|
|
2
|
+
import { correctBoxShadow } from "../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs";
|
|
3
3
|
const defaultScaleCorrector = {
|
|
4
4
|
borderRadius: {
|
|
5
5
|
...correctBorderRadius,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feature } from "../feature.mjs";
|
|
2
|
-
import { addScaleCorrector } from "../../external/.pnpm/framer-motion@12.
|
|
2
|
+
import { addScaleCorrector } from "../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/projection/styles/scale-correction.mjs";
|
|
3
3
|
import { defaultScaleCorrector } from "./config.mjs";
|
|
4
|
-
import { globalProjectionState } from "../../external/.pnpm/framer-motion@12.
|
|
4
|
+
import { globalProjectionState } from "../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/projection/node/state.mjs";
|
|
5
5
|
class LayoutFeature extends Feature {
|
|
6
6
|
constructor(state) {
|
|
7
7
|
super(state);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feature } from "../feature.mjs";
|
|
2
|
-
import { HTMLProjectionNode } from "../../external/.pnpm/framer-motion@12.
|
|
2
|
+
import { HTMLProjectionNode } from "../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs";
|
|
3
3
|
import { getClosestProjectingNode } from "./utils.mjs";
|
|
4
|
-
import { addScaleCorrector } from "../../external/.pnpm/framer-motion@12.
|
|
4
|
+
import { addScaleCorrector } from "../../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/projection/styles/scale-correction.mjs";
|
|
5
5
|
import { defaultScaleCorrector } from "./config.mjs";
|
|
6
6
|
import { isHTMLElement } from "../gestures/drag/utils/is.mjs";
|
|
7
7
|
import { doneCallbacks } from "../../components/presence.mjs";
|