motion-v 0.8.1 → 0.10.0-beta.1
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 +552 -221
- package/dist/es/animation/hooks/animation-controls.mjs +1 -1
- package/dist/es/animation/hooks/use-animate.mjs +1 -1
- package/dist/es/components/animate-presence/AnimatePresence.vue.mjs +1 -1
- package/dist/es/components/context.d.ts +0 -1
- package/dist/es/components/index.d.ts +1 -0
- package/dist/es/components/motion/Motion.vue.mjs +7 -2
- package/dist/es/components/reorder/Group.d.ts +71 -0
- package/dist/es/components/reorder/Group.vue.mjs +131 -0
- package/dist/es/components/reorder/Group.vue2.mjs +4 -0
- package/dist/es/components/reorder/Item.d.ts +88 -0
- package/dist/es/components/reorder/Item.vue.mjs +131 -0
- package/dist/es/components/reorder/Item.vue2.mjs +4 -0
- package/dist/es/components/reorder/context.d.ts +8 -0
- package/dist/es/components/reorder/context.mjs +6 -0
- package/dist/es/components/reorder/index.d.ts +13 -0
- package/dist/es/components/reorder/index.mjs +13 -0
- package/dist/es/components/reorder/types.d.ts +5 -0
- package/dist/es/components/reorder/utils.d.ts +6 -0
- package/dist/es/components/reorder/utils.mjs +46 -0
- package/dist/es/constants/index.mjs +3 -1
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animate/index.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +14 -11
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +8 -8
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +4 -3
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.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.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +6 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/generators/spring/find.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/generators/spring/index.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/sequence/create.mjs +5 -5
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/easing/cubic-bezier.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/easing/utils/map.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/frameloop/batcher.mjs +6 -18
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/frameloop/frame.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/frameloop/index-legacy.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/frameloop/order.mjs +17 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/frameloop/render-step.mjs +8 -1
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +22 -35
- package/dist/es/external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +14 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/VisualElement.mjs +6 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/scroll/index.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +12 -0
- package/dist/es/external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/render/svg/utils/measure.mjs +15 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/stats/buffer.mjs +7 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/delay.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/interpolate.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/mix/color.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/mix/complex.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/offsets/fill.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/index.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +2 -2
- package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +3 -3
- package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +2 -2
- package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/gestures/hover.mjs +11 -11
- package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/gestures/press/index.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/utils/supports/memo.mjs +2 -2
- package/dist/es/external/.pnpm/motion-dom@12.0.0/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +6 -0
- package/dist/es/external/.pnpm/{motion-utils@11.16.0 → motion-utils@12.0.0}/external/motion-utils/dist/es/memo.mjs +1 -0
- package/dist/es/external/.pnpm/motion-utils@12.0.0/external/motion-utils/dist/es/noop.mjs +4 -0
- package/dist/es/external/.pnpm/{motion-utils@11.16.0 → motion-utils@12.0.0}/external/motion-utils/dist/es/progress.mjs +1 -1
- package/dist/es/external/.pnpm/motion-utils@12.0.0/external/motion-utils/dist/es/time-conversion.mjs +6 -0
- package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -2
- package/dist/es/features/gestures/drag/index.mjs +4 -3
- package/dist/es/features/gestures/focus/index.mjs +1 -1
- package/dist/es/features/gestures/hover/index.mjs +4 -4
- package/dist/es/features/gestures/in-view/index.mjs +3 -3
- 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 +4 -4
- package/dist/es/features/layout/config.mjs +2 -2
- package/dist/es/features/layout/layout.mjs +6 -5
- package/dist/es/features/layout/projection.mjs +2 -2
- package/dist/es/features/layout/types.d.ts +14 -1
- package/dist/es/features/svg.mjs +1 -1
- package/dist/es/index.mjs +41 -33
- package/dist/es/state/animate-updates.mjs +3 -3
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +5 -11
- package/dist/es/utils/use-animation-frame.mjs +1 -1
- package/dist/es/utils/use-in-view.d.ts +1 -1
- package/dist/es/utils/use-in-view.mjs +1 -1
- package/dist/es/value/use-combine-values.mjs +2 -2
- package/dist/es/value/use-computed.mjs +1 -1
- package/dist/es/value/use-scroll.mjs +2 -2
- package/dist/es/value/use-spring.mjs +3 -3
- package/dist/es/value/use-time.mjs +1 -1
- package/dist/es/value/use-transform.mjs +1 -1
- package/dist/es/value/use-velocity.mjs +2 -2
- package/package.json +5 -5
- package/dist/es/external/.pnpm/framer-motion@11.16.6/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +0 -6
- package/dist/es/external/.pnpm/framer-motion@11.16.6/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +0 -8
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +0 -6
- package/dist/es/external/.pnpm/motion-utils@11.16.0/external/motion-utils/dist/es/noop.mjs +0 -4
- package/dist/es/external/.pnpm/motion-utils@11.16.0/external/motion-utils/dist/es/time-conversion.mjs +0 -6
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animate/sequence.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animate/single-value.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animators/utils/accelerated-values.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/generators/inertia.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/generators/keyframes.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/generators/spring/defaults.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/generators/utils/velocity.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/utils/is-animatable.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/utils/is-none.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/animation/utils/stagger.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/easing/anticipate.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/easing/back.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/easing/circ.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/easing/ease.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/easing/modifiers/mirror.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/easing/modifiers/reverse.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/easing/steps.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/easing/utils/is-easing-array.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/frameloop/microtask.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/frameloop/sync-time.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/shared/stack.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/styles/transform.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/scroll/observe.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/value-types/defaults.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/value-types/test.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/value-types/transform.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/html/utils/keys-position.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/html/utils/keys-transform.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/store.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +1 -1
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/svg/utils/path.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/utils/setters.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/GlobalConfig.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/array.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/clamp.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/hsla-to-rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/is-numerical-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/is-zero-value-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/mix/immediate.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/mix/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/mix/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/offsets/default.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/offsets/time.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/pipe.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/resolve-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/subscription-manager.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/velocity-per-second.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/warn-once.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/utils/wrap.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/color/hex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/color/hsla.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/color/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/color/rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/color/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/complex/filter.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/complex/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/numbers/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/numbers/units.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/utils/color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/utils/float-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/utils/is-nullish.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/utils/sanitize.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/types/utils/single-color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.16.6 → framer-motion@12.4.0}/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/animation/controls/Group.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/utils/is-bezier-definition.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/utils/resolve-elements.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@11.16.4 → motion-dom@12.0.0}/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@11.16.0 → motion-utils@12.0.0}/external/motion-utils/dist/es/errors.mjs +0 -0
|
@@ -67,7 +67,8 @@ class VisualElement {
|
|
|
67
67
|
frame.render(this.render, false, true);
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
|
-
const { latestValues, renderState } = visualState;
|
|
70
|
+
const { latestValues, renderState, onUpdate } = visualState;
|
|
71
|
+
this.onUpdate = onUpdate;
|
|
71
72
|
this.latestValues = latestValues;
|
|
72
73
|
this.baseTarget = { ...latestValues };
|
|
73
74
|
this.initialValues = props.initial ? { ...latestValues } : {};
|
|
@@ -115,7 +116,6 @@ class VisualElement {
|
|
|
115
116
|
this.update(this.props, this.presenceContext);
|
|
116
117
|
}
|
|
117
118
|
unmount() {
|
|
118
|
-
visualElementStore.delete(this.current);
|
|
119
119
|
this.projection && this.projection.unmount();
|
|
120
120
|
cancelFrame(this.notifyUpdate);
|
|
121
121
|
cancelFrame(this.render);
|
|
@@ -140,6 +140,9 @@ class VisualElement {
|
|
|
140
140
|
this.valueSubscriptions.get(key)();
|
|
141
141
|
}
|
|
142
142
|
const valueIsTransform = transformProps.has(key);
|
|
143
|
+
if (valueIsTransform && this.onBindTransform) {
|
|
144
|
+
this.onBindTransform();
|
|
145
|
+
}
|
|
143
146
|
const removeOnChange = value.on("change", (latestValue) => {
|
|
144
147
|
this.latestValues[key] = latestValue;
|
|
145
148
|
this.props.onUpdate && frame.preRender(this.notifyUpdate);
|
|
@@ -233,6 +236,7 @@ class VisualElement {
|
|
|
233
236
|
if (this.handleChildMotionValue) {
|
|
234
237
|
this.handleChildMotionValue();
|
|
235
238
|
}
|
|
239
|
+
this.onUpdate && this.onUpdate(this);
|
|
236
240
|
}
|
|
237
241
|
getProps() {
|
|
238
242
|
return this.props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../../../motion-utils@
|
|
2
|
-
import { resolveElements } from "../../../../../../../../motion-dom@
|
|
1
|
+
import "../../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { resolveElements } from "../../../../../../../../motion-dom@12.0.0/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
3
3
|
const resizeHandlers = /* @__PURE__ */ new WeakMap();
|
|
4
4
|
let observer;
|
|
5
5
|
function getElementSize(target, borderBoxSize) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { supportsScrollTimeline } from "../../../../../../../../motion-dom@
|
|
2
|
-
import "../../../../../../../../motion-utils@
|
|
3
|
-
import { noop } from "../../../../../../../../motion-utils@
|
|
1
|
+
import { supportsScrollTimeline } from "../../../../../../../../motion-dom@12.0.0/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs";
|
|
2
|
+
import "../../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { noop } from "../../../../../../../../motion-utils@12.0.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,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../../../motion-utils@
|
|
2
|
-
import { progress } from "../../../../../../../../motion-utils@
|
|
1
|
+
import "../../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { progress } from "../../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/progress.mjs";
|
|
3
3
|
import { velocityPerSecond } from "../../../utils/velocity-per-second.mjs";
|
|
4
4
|
const maxElapsed = 50;
|
|
5
5
|
const createAxisInfo = () => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { invariant } from "../../../../../../../../motion-utils@
|
|
1
|
+
import { invariant } from "../../../../../../../../motion-utils@12.0.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,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../../../motion-utils@
|
|
2
|
-
import { resolveElements } from "../../../../../../../../motion-dom@
|
|
1
|
+
import "../../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { resolveElements } from "../../../../../../../../motion-dom@12.0.0/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
3
3
|
const thresholds = {
|
|
4
4
|
some: 0,
|
|
5
5
|
all: 1
|
|
@@ -13,7 +13,7 @@ function inView(elementOrSelector, onStart, { root, margin: rootMargin, amount =
|
|
|
13
13
|
if (entry.isIntersecting === Boolean(onEnd))
|
|
14
14
|
return;
|
|
15
15
|
if (entry.isIntersecting) {
|
|
16
|
-
const newOnEnd = onStart(entry);
|
|
16
|
+
const newOnEnd = onStart(entry.target, entry);
|
|
17
17
|
if (typeof newOnEnd === "function") {
|
|
18
18
|
activeIntersections.set(entry.target, newOnEnd);
|
|
19
19
|
} else {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { frame } from "../../frameloop/frame.mjs";
|
|
1
2
|
import { createBox } from "../../projection/geometry/models.mjs";
|
|
2
3
|
import { DOMVisualElement } from "../dom/DOMVisualElement.mjs";
|
|
3
4
|
import { camelToDash } from "../dom/utils/camel-to-dash.mjs";
|
|
@@ -6,6 +7,7 @@ import { transformProps } from "../html/utils/keys-transform.mjs";
|
|
|
6
7
|
import { buildSVGAttrs } from "./utils/build-attrs.mjs";
|
|
7
8
|
import { camelCaseAttributes } from "./utils/camel-case-attrs.mjs";
|
|
8
9
|
import { isSVGTag } from "./utils/is-svg-tag.mjs";
|
|
10
|
+
import { updateSVGDimensions } from "./utils/measure.mjs";
|
|
9
11
|
import { renderSVG } from "./utils/render.mjs";
|
|
10
12
|
import { scrapeMotionValuesFromProps } from "./utils/scrape-motion-values.mjs";
|
|
11
13
|
class SVGVisualElement extends DOMVisualElement {
|
|
@@ -14,6 +16,11 @@ class SVGVisualElement extends DOMVisualElement {
|
|
|
14
16
|
this.type = "svg";
|
|
15
17
|
this.isSVGTag = false;
|
|
16
18
|
this.measureInstanceViewportBox = createBox;
|
|
19
|
+
this.updateDimensions = () => {
|
|
20
|
+
if (this.current && !this.renderState.dimensions) {
|
|
21
|
+
updateSVGDimensions(this.current, this.renderState);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
17
24
|
}
|
|
18
25
|
getBaseTargetFromProps(props, key) {
|
|
19
26
|
return props[key];
|
|
@@ -29,6 +36,11 @@ class SVGVisualElement extends DOMVisualElement {
|
|
|
29
36
|
scrapeMotionValuesFromProps(props, prevProps, visualElement) {
|
|
30
37
|
return scrapeMotionValuesFromProps(props, prevProps, visualElement);
|
|
31
38
|
}
|
|
39
|
+
onBindTransform() {
|
|
40
|
+
if (this.current && !this.renderState.dimensions) {
|
|
41
|
+
frame.postRender(this.updateDimensions);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
32
44
|
build(renderState, latestValues, props) {
|
|
33
45
|
buildSVGAttrs(renderState, latestValues, this.isSVGTag, props.transformTemplate);
|
|
34
46
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function updateSVGDimensions(instance, renderState) {
|
|
2
|
+
try {
|
|
3
|
+
renderState.dimensions = typeof instance.getBBox === "function" ? instance.getBBox() : instance.getBoundingClientRect();
|
|
4
|
+
} catch (e) {
|
|
5
|
+
renderState.dimensions = {
|
|
6
|
+
x: 0,
|
|
7
|
+
y: 0,
|
|
8
|
+
width: 0,
|
|
9
|
+
height: 0
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
updateSVGDimensions
|
|
15
|
+
};
|
|
@@ -8,7 +8,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
8
8
|
if (isMotionValue(nextValue)) {
|
|
9
9
|
element.addValue(key, nextValue);
|
|
10
10
|
if (process.env.NODE_ENV === "development") {
|
|
11
|
-
warnOnce(nextValue.version === "
|
|
11
|
+
warnOnce(nextValue.version === "12.4.0", `Attempting to mix Motion versions ${nextValue.version} with 12.4.0 may not work as expected.`);
|
|
12
12
|
}
|
|
13
13
|
} else if (isMotionValue(prevValue)) {
|
|
14
14
|
element.addValue(key, motionValue(nextValue, { owner: element }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../motion-utils@
|
|
2
|
-
import { secondsToMilliseconds } from "../../../../../../motion-utils@
|
|
1
|
+
import "../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { secondsToMilliseconds } from "../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
3
3
|
import { time } from "../frameloop/sync-time.mjs";
|
|
4
4
|
import { frame, cancelFrame } from "../frameloop/frame.mjs";
|
|
5
5
|
function delay(callback, timeout) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { invariant } from "../../../../../../motion-utils@
|
|
2
|
-
import { noop } from "../../../../../../motion-utils@
|
|
3
|
-
import { progress } from "../../../../../../motion-utils@
|
|
1
|
+
import { invariant } from "../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { noop } from "../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/noop.mjs";
|
|
3
|
+
import { progress } from "../../../../../../motion-utils@12.0.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@
|
|
2
|
+
import { warning } from "../../../../../../../motion-utils@12.0.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@
|
|
4
|
+
import { warning } from "../../../../../../../motion-utils@12.0.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@
|
|
2
|
-
import { progress } from "../../../../../../../motion-utils@
|
|
1
|
+
import "../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { progress } from "../../../../../../../motion-utils@12.0.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];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../../../motion-utils@
|
|
2
|
-
import { millisecondsToSeconds } from "../../../../../../../../motion-utils@
|
|
1
|
+
import "../../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { millisecondsToSeconds } from "../../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
3
3
|
import { calcGeneratorDuration, maxGeneratorDuration } from "./calc-duration.mjs";
|
|
4
4
|
function createGeneratorEasing(options, scale = 100, createGenerator) {
|
|
5
5
|
const generator = createGenerator({ ...options, keyframes: [0, scale] });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../../../../../../motion-utils@
|
|
2
|
-
import { noop } from "../../../../../../../motion-utils@
|
|
3
|
-
import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../../motion-utils@
|
|
1
|
+
import "../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { noop } from "../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/noop.mjs";
|
|
3
|
+
import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
4
4
|
import { attachTimeline } from "./utils/attach-timeline.mjs";
|
|
5
5
|
class NativeAnimationControls {
|
|
6
6
|
constructor(animation) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../../../motion-utils@
|
|
2
|
-
import { progress } from "../../../../../../../../motion-utils@
|
|
1
|
+
import "../../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { progress } from "../../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/progress.mjs";
|
|
3
3
|
const generateLinearEasing = (easing, duration, resolution = 10) => {
|
|
4
4
|
let points = "";
|
|
5
5
|
const numPoints = Math.max(Math.round(duration / resolution), 2);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { isDragActive } from "./drag/state/is-active.mjs";
|
|
2
2
|
import { setupGesture } from "./utils/setup.mjs";
|
|
3
|
-
function
|
|
4
|
-
return (event
|
|
5
|
-
if (event.pointerType === "touch" || isDragActive())
|
|
6
|
-
return;
|
|
7
|
-
callback(event);
|
|
8
|
-
};
|
|
3
|
+
function isValidHover(event) {
|
|
4
|
+
return !(event.pointerType === "touch" || isDragActive());
|
|
9
5
|
}
|
|
10
6
|
function hover(elementOrSelector, onHoverStart, options = {}) {
|
|
11
7
|
const [elements, eventOptions, cancel] = setupGesture(elementOrSelector, options);
|
|
12
|
-
const onPointerEnter =
|
|
8
|
+
const onPointerEnter = (enterEvent) => {
|
|
9
|
+
if (!isValidHover(enterEvent))
|
|
10
|
+
return;
|
|
13
11
|
const { target } = enterEvent;
|
|
14
|
-
const onHoverEnd = onHoverStart(enterEvent);
|
|
12
|
+
const onHoverEnd = onHoverStart(target, enterEvent);
|
|
15
13
|
if (typeof onHoverEnd !== "function" || !target)
|
|
16
14
|
return;
|
|
17
|
-
const onPointerLeave =
|
|
15
|
+
const onPointerLeave = (leaveEvent) => {
|
|
16
|
+
if (!isValidHover(leaveEvent))
|
|
17
|
+
return;
|
|
18
18
|
onHoverEnd(leaveEvent);
|
|
19
19
|
target.removeEventListener("pointerleave", onPointerLeave);
|
|
20
|
-
}
|
|
20
|
+
};
|
|
21
21
|
target.addEventListener("pointerleave", onPointerLeave, eventOptions);
|
|
22
|
-
}
|
|
22
|
+
};
|
|
23
23
|
elements.forEach((element) => {
|
|
24
24
|
element.addEventListener("pointerenter", onPointerEnter, eventOptions);
|
|
25
25
|
});
|
|
@@ -15,7 +15,7 @@ function press(elementOrSelector, onPressStart, options = {}) {
|
|
|
15
15
|
if (!isValidPressEvent(startEvent) || isPressing.has(element))
|
|
16
16
|
return;
|
|
17
17
|
isPressing.add(element);
|
|
18
|
-
const onPressEnd = onPressStart(startEvent);
|
|
18
|
+
const onPressEnd = onPressStart(element, startEvent);
|
|
19
19
|
const onPointerEnd = (endEvent, success) => {
|
|
20
20
|
window.removeEventListener("pointerup", onPointerUp);
|
|
21
21
|
window.removeEventListener("pointercancel", onPointerCancel);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../../motion-utils@
|
|
2
|
-
import { memo } from "../../../../../../../motion-utils@
|
|
1
|
+
import "../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { memo } from "../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/memo.mjs";
|
|
3
3
|
import { supportsFlags } from "./flags.mjs";
|
|
4
4
|
function memoSupports(callback, supportsFlag) {
|
|
5
5
|
const memoized = memo(callback);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { memo } from "../../../../../../../motion-utils@12.0.0/external/motion-utils/dist/es/memo.mjs";
|
|
3
|
+
const supportsScrollTimeline = memo(() => window.ScrollTimeline !== void 0);
|
|
4
|
+
export {
|
|
5
|
+
supportsScrollTimeline
|
|
6
|
+
};
|
|
@@ -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@
|
|
15
|
+
import { animateMotionValue } from "../../../external/.pnpm/framer-motion@12.4.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 "../../../external/.pnpm/framer-motion@
|
|
20
|
+
import { frame } from "../../../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
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@
|
|
4
|
-
import "../../../external/.pnpm/motion-utils@
|
|
3
|
+
import { noop } from "../../../external/.pnpm/motion-utils@12.0.0/external/motion-utils/dist/es/noop.mjs";
|
|
4
|
+
import "../../../external/.pnpm/motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
5
5
|
class DragGesture extends Feature {
|
|
6
6
|
constructor(state) {
|
|
7
7
|
super(state);
|
|
@@ -10,11 +10,12 @@ class DragGesture extends Feature {
|
|
|
10
10
|
this.controls = new VisualElementDragControls(state.visualElement);
|
|
11
11
|
}
|
|
12
12
|
mount() {
|
|
13
|
+
var _a;
|
|
13
14
|
const { dragControls } = this.state.options;
|
|
14
15
|
if (dragControls) {
|
|
15
16
|
this.removeGroupControls = dragControls.subscribe(this.controls);
|
|
16
17
|
}
|
|
17
|
-
this.removeListeners = this.controls.addListeners() || noop;
|
|
18
|
+
this.removeListeners = ((_a = this.controls) == null ? void 0 : _a.addListeners()) || noop;
|
|
18
19
|
}
|
|
19
20
|
unmount() {
|
|
20
21
|
this.removeGroupControls();
|
|
@@ -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@
|
|
3
|
+
import { pipe } from "../../../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/utils/pipe.mjs";
|
|
4
4
|
class FocusGesture extends Feature {
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
|
-
import "../../../external/.pnpm/motion-
|
|
3
|
-
import
|
|
4
|
-
import { frame } from "../../../external/.pnpm/framer-motion@
|
|
2
|
+
import { hover } from "../../../external/.pnpm/motion-dom@12.0.0/external/motion-dom/dist/es/gestures/hover.mjs";
|
|
3
|
+
import "../../../external/.pnpm/motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
4
|
+
import { frame } from "../../../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
5
5
|
import { extractEventInfo } from "../press/index.mjs";
|
|
6
6
|
function handleHoverEvent(state, event, lifecycle) {
|
|
7
7
|
const props = state.options;
|
|
@@ -27,7 +27,7 @@ class HoverGesture extends Feature {
|
|
|
27
27
|
return;
|
|
28
28
|
this.unmount = hover(
|
|
29
29
|
element,
|
|
30
|
-
(startEvent) => {
|
|
30
|
+
(_, startEvent) => {
|
|
31
31
|
handleHoverEvent(this.state, startEvent, "Start");
|
|
32
32
|
return (endEvent) => {
|
|
33
33
|
handleHoverEvent(this.state, endEvent, "End");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
|
-
import { inView } from "../../../external/.pnpm/framer-motion@
|
|
3
|
-
import { frame } from "../../../external/.pnpm/framer-motion@
|
|
2
|
+
import { inView } from "../../../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/render/dom/viewport/index.mjs";
|
|
3
|
+
import { frame } from "../../../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
4
4
|
function handleHoverEvent(state, entry, lifecycle) {
|
|
5
5
|
const props = state.options;
|
|
6
6
|
if (props.inView) {
|
|
@@ -27,7 +27,7 @@ class InViewGesture extends Feature {
|
|
|
27
27
|
const { once, ...viewOptions } = this.state.getOptions().inViewOptions || {};
|
|
28
28
|
this.unmount = inView(
|
|
29
29
|
element,
|
|
30
|
-
(entry) => {
|
|
30
|
+
(_, entry) => {
|
|
31
31
|
handleHoverEvent(this.state, entry, "Enter");
|
|
32
32
|
if (!once) {
|
|
33
33
|
return (endEvent) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
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@
|
|
4
|
-
import { frame, cancelFrame, frameData } from "../../../external/.pnpm/framer-motion@
|
|
5
|
-
import { pipe } from "../../../external/.pnpm/framer-motion@
|
|
3
|
+
import { distance2D } from "../../../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/utils/distance.mjs";
|
|
4
|
+
import { frame, cancelFrame, frameData } from "../../../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
5
|
+
import { pipe } from "../../../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/utils/pipe.mjs";
|
|
6
6
|
import { secondsToMilliseconds, millisecondsToSeconds } from "../../../utils/time-conversion.mjs";
|
|
7
7
|
import { isPrimaryPointer } from "../../../events/utils/is-primary-pointer.mjs";
|
|
8
8
|
class PanSession {
|
|
@@ -1,9 +1,9 @@
|
|
|
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@
|
|
5
|
-
import "../../../external/.pnpm/motion-utils@
|
|
6
|
-
import { frame } from "../../../external/.pnpm/framer-motion@
|
|
4
|
+
import { noop } from "../../../external/.pnpm/motion-utils@12.0.0/external/motion-utils/dist/es/noop.mjs";
|
|
5
|
+
import "../../../external/.pnpm/motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
6
|
+
import { frame } from "../../../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
7
7
|
import { getContextWindow } from "../../../utils/get-context-window.mjs";
|
|
8
8
|
function asyncHandler(handler) {
|
|
9
9
|
return (event, info) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
|
-
import "../../../external/.pnpm/motion-
|
|
3
|
-
import
|
|
4
|
-
import { frame } from "../../../external/.pnpm/framer-motion@
|
|
2
|
+
import { press } from "../../../external/.pnpm/motion-dom@12.0.0/external/motion-dom/dist/es/gestures/press/index.mjs";
|
|
3
|
+
import "../../../external/.pnpm/motion-utils@12.0.0/external/motion-utils/dist/es/errors.mjs";
|
|
4
|
+
import { frame } from "../../../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
5
5
|
function extractEventInfo(event) {
|
|
6
6
|
return {
|
|
7
7
|
point: {
|
|
@@ -34,7 +34,7 @@ class PressGesture extends Feature {
|
|
|
34
34
|
return;
|
|
35
35
|
this.unmount = press(
|
|
36
36
|
element,
|
|
37
|
-
(startEvent) => {
|
|
37
|
+
(_, startEvent) => {
|
|
38
38
|
handlePressEvent(this.state, startEvent, "Start");
|
|
39
39
|
return (endEvent, { success }) => handlePressEvent(
|
|
40
40
|
this.state,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { correctBorderRadius } from "../../external/.pnpm/framer-motion@
|
|
2
|
-
import { correctBoxShadow } from "../../external/.pnpm/framer-motion@
|
|
1
|
+
import { correctBorderRadius } from "../../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs";
|
|
2
|
+
import { correctBoxShadow } from "../../external/.pnpm/framer-motion@12.4.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@
|
|
2
|
+
import { addScaleCorrector } from "../../external/.pnpm/framer-motion@12.4.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@
|
|
4
|
+
import { globalProjectionState } from "../../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/projection/node/state.mjs";
|
|
5
5
|
class LayoutFeature extends Feature {
|
|
6
6
|
constructor(state) {
|
|
7
7
|
super(state);
|
|
@@ -30,11 +30,11 @@ class LayoutFeature extends Feature {
|
|
|
30
30
|
(_a = layoutGroup == null ? void 0 : layoutGroup.group) == null ? void 0 : _a.add(projection);
|
|
31
31
|
}
|
|
32
32
|
globalProjectionState.hasEverUpdated = true;
|
|
33
|
-
this.didUpdate();
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
beforeUnmount() {
|
|
37
|
-
|
|
36
|
+
var _a;
|
|
37
|
+
const projection = (_a = this.state.visualElement) == null ? void 0 : _a.projection;
|
|
38
38
|
if (projection) {
|
|
39
39
|
this.state.willUpdate("beforeUnmount");
|
|
40
40
|
if (this.state.options.layoutId) {
|
|
@@ -46,8 +46,9 @@ class LayoutFeature extends Feature {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
unmount() {
|
|
49
|
+
var _a;
|
|
49
50
|
const layoutGroup = this.state.options.layoutGroup;
|
|
50
|
-
const projection = this.state.visualElement.projection;
|
|
51
|
+
const projection = (_a = this.state.visualElement) == null ? void 0 : _a.projection;
|
|
51
52
|
if ((layoutGroup == null ? void 0 : layoutGroup.group) && projection)
|
|
52
53
|
layoutGroup.group.remove(projection);
|
|
53
54
|
this.didUpdate();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feature } from "../feature.mjs";
|
|
2
|
-
import { HTMLProjectionNode } from "../../external/.pnpm/framer-motion@
|
|
2
|
+
import { HTMLProjectionNode } from "../../external/.pnpm/framer-motion@12.4.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@
|
|
4
|
+
import { addScaleCorrector } from "../../external/.pnpm/framer-motion@12.4.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";
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { Box } from 'framer-motion';
|
|
2
|
+
export interface LayoutLifecycles {
|
|
3
|
+
onBeforeLayoutMeasure?: (box: Box) => void;
|
|
4
|
+
onLayoutMeasure?: (box: Box, prevBox: Box) => void;
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
onLayoutAnimationStart?: () => void;
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
onLayoutAnimationComplete?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export interface LayoutOptions extends LayoutLifecycles {
|
|
2
15
|
'layout'?: boolean | 'position' | 'size' | 'preserve-aspect';
|
|
3
16
|
'layoutId'?: string;
|
|
4
17
|
'layoutScroll'?: boolean;
|
package/dist/es/features/svg.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Feature } from "./feature.mjs";
|
|
2
|
-
import { frame } from "../external/.pnpm/framer-motion@
|
|
2
|
+
import { frame } from "../external/.pnpm/framer-motion@12.4.0/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
3
3
|
function isSVGElement(element) {
|
|
4
4
|
return element instanceof SVGElement && element.tagName !== "svg";
|
|
5
5
|
}
|