motion-v 1.1.0 → 1.2.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 +381 -310
- package/dist/es/animation/hooks/animation-controls.mjs +1 -1
- package/dist/es/animation/hooks/use-animate.mjs +1 -1
- package/dist/es/components/animate-presence/use-pop-layout.mjs +1 -1
- package/dist/es/components/motion/use-motion-state.mjs +1 -1
- package/dist/es/components/reorder/utils.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/animate/index.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/animate/sequence.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/animate/single-value.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +7 -7
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/sequence/create.mjs +5 -5
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +15 -14
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/VisualElement.mjs +9 -9
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/scroll/attach-function.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +7 -13
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/scroll/utils/get-timeline.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/svg/utils/path.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/utils/motion-values.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/utils/setters.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/utils/delay.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/value/use-will-change/is.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +1 -1
- package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/JSAnimation.mjs +4 -4
- package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/effects/MotionValueState.mjs +7 -2
- package/dist/es/external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/effects/attr/index.mjs +31 -0
- package/dist/es/external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/effects/prop/index.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/effects/style/index.mjs +49 -0
- package/dist/es/external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/effects/svg/index.mjs +40 -0
- package/dist/es/external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/effects/utils/create-dom-effect.mjs +18 -0
- package/dist/es/external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/effects/utils/create-effect.mjs +21 -0
- package/dist/es/external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs +6 -0
- package/dist/es/external/.pnpm/{framer-motion@12.12.1/external/framer-motion/dist/es/render/dom → motion-dom@12.16.0/external/motion-dom/dist/es}/resize/handle-element.mjs +17 -18
- package/dist/es/external/.pnpm/{framer-motion@12.12.1/external/framer-motion/dist/es/render/dom → motion-dom@12.16.0/external/motion-dom/dist/es}/resize/handle-window.mjs +8 -8
- package/dist/es/features/animation/animation.mjs +2 -2
- package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +4 -4
- package/dist/es/features/gestures/drag/utils/constraints.mjs +3 -3
- package/dist/es/features/gestures/hover/index.mjs +2 -2
- package/dist/es/features/gestures/in-view/index.mjs +2 -2
- package/dist/es/features/gestures/pan/PanSession.mjs +2 -2
- package/dist/es/features/gestures/pan/index.mjs +1 -1
- package/dist/es/features/gestures/press/index.mjs +2 -2
- package/dist/es/features/layout/config.mjs +2 -2
- package/dist/es/features/layout/layout.mjs +2 -2
- package/dist/es/features/layout/projection.mjs +2 -2
- package/dist/es/index.mjs +110 -100
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +1 -1
- package/dist/es/state/style.mjs +2 -2
- package/dist/es/utils/index.d.ts +0 -1
- package/dist/es/utils/use-animation-frame.mjs +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-motion-template.mjs +1 -1
- package/dist/es/value/use-scroll.mjs +2 -2
- package/dist/es/value/use-spring.mjs +4 -4
- 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/dist/es/value/use-will-change/is.mjs +1 -1
- package/package.json +2 -2
- package/dist/es/external/.pnpm/motion-dom@12.12.1/external/motion-dom/dist/es/effects/style/index.mjs +0 -49
- package/dist/es/utils/clamp.d.ts +0 -1
- package/dist/es/utils/clamp.mjs +0 -10
- package/dist/es/utils/mix/number.d.ts +0 -1
- package/dist/es/utils/mix/number.mjs +0 -6
- package/dist/es/utils/motion-value.d.ts +0 -1
- package/dist/es/utils/progress.d.ts +0 -1
- package/dist/es/utils/progress.mjs +0 -7
- package/dist/es/utils/time-conversion.d.ts +0 -8
- package/dist/es/value/types/numbers/units.d.ts +0 -30
- package/dist/es/value/types/numbers/units.mjs +0 -13
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/animation/utils/stagger.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/shared/stack.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/styles/transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/scroll/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1 → framer-motion@12.16.0}/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/GroupAnimation.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/NativeAnimation.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/drivers/frame.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/generators/inertia.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/generators/keyframes.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/generators/spring/defaults.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/generators/spring/find.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/generators/spring/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/generators/utils/velocity.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/keyframes/get-final.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/keyframes/offsets/default.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/keyframes/offsets/time.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/utils/WithPromise.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/utils/active-animations.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/utils/can-animate.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/utils/is-animatable.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/utils/is-css-variable.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/waapi/easing/supported.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/waapi/utils/px-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/effects/style/transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/frameloop/batcher.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/frameloop/frame.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/frameloop/index-legacy.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/frameloop/microtask.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/frameloop/order.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/frameloop/render-step.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/frameloop/sync-time.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/gestures/drag/state/set-active.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/gestures/hover.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/gestures/press/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/render/dom/is-css-var.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/render/dom/parse-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/render/dom/style-computed.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/render/dom/style-set.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/render/utils/keys-position.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/render/utils/keys-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.12.1/external/framer-motion/dist/es/render/dom → motion-dom@12.16.0/external/motion-dom/dist/es}/resize/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/scroll/observe.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/stats/animation-count.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/stats/buffer.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/stats/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/interpolate.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/is-html-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/is-svg-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/is-svg-svg-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/mix/color.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/mix/complex.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/mix/immediate.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/mix/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/mix/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/resolve-elements.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/supports/memo.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/utils/transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/map-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/spring-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/subscribe-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/transform-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/auto.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/color/hex.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/color/hsla.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/color/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/color/rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/color/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/complex/filter.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/complex/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/dimensions.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/int.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/maps/defaults.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/maps/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/maps/transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/numbers/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/numbers/units.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/test.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/utils/animatable-none.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/utils/color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/utils/find.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/utils/float-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/utils/get-as-type.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/utils/is-nullish.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/utils/sanitize.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/types/utils/single-color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/value/utils/is-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/view/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/view/queue.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/view/start.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/view/utils/choose-layer-type.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/view/utils/css.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/view/utils/get-layer-name.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/view/utils/get-view-animations.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-dom@12.12.1 → motion-dom@12.16.0}/external/motion-dom/dist/es/view/utils/has-target.mjs +0 -0
|
@@ -6,8 +6,8 @@ import { camelCaseAttributes } from "./utils/camel-case-attrs.mjs";
|
|
|
6
6
|
import { isSVGTag } from "./utils/is-svg-tag.mjs";
|
|
7
7
|
import { renderSVG } from "./utils/render.mjs";
|
|
8
8
|
import { scrapeMotionValuesFromProps } from "./utils/scrape-motion-values.mjs";
|
|
9
|
-
import { transformProps } from "../../../../../../../motion-dom@12.
|
|
10
|
-
import { getDefaultValueType } from "../../../../../../../motion-dom@12.
|
|
9
|
+
import { transformProps } from "../../../../../../../motion-dom@12.16.0/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
|
|
10
|
+
import { getDefaultValueType } from "../../../../../../../motion-dom@12.16.0/external/motion-dom/dist/es/value/types/maps/defaults.mjs";
|
|
11
11
|
class SVGVisualElement extends DOMVisualElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { px } from "../../../../../../../../motion-dom@12.
|
|
1
|
+
import { px } from "../../../../../../../../motion-dom@12.16.0/external/motion-dom/dist/es/value/types/numbers/units.mjs";
|
|
2
2
|
const dashKeys = {
|
|
3
3
|
offset: "stroke-dashoffset",
|
|
4
4
|
array: "stroke-dasharray"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { scrapeMotionValuesFromProps as scrapeMotionValuesFromProps$1 } from "../../html/utils/scrape-motion-values.mjs";
|
|
2
|
-
import { isMotionValue } from "../../../../../../../../motion-dom@12.
|
|
3
|
-
import { transformPropOrder } from "../../../../../../../../motion-dom@12.
|
|
2
|
+
import { isMotionValue } from "../../../../../../../../motion-dom@12.16.0/external/motion-dom/dist/es/value/utils/is-motion-value.mjs";
|
|
3
|
+
import { transformPropOrder } from "../../../../../../../../motion-dom@12.16.0/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
|
|
4
4
|
function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
|
|
5
5
|
const newValues = scrapeMotionValuesFromProps$1(props, prevProps, visualElement);
|
|
6
6
|
for (const key in props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isMotionValue } from "../../../../../../../motion-dom@12.
|
|
2
|
-
import { motionValue } from "../../../../../../../motion-dom@12.
|
|
1
|
+
import { isMotionValue } from "../../../../../../../motion-dom@12.16.0/external/motion-dom/dist/es/value/utils/is-motion-value.mjs";
|
|
2
|
+
import { motionValue } from "../../../../../../../motion-dom@12.16.0/external/motion-dom/dist/es/value/index.mjs";
|
|
3
3
|
function updateMotionValuesFromProps(element, next, prev) {
|
|
4
4
|
for (const key in next) {
|
|
5
5
|
const nextValue = next[key];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isKeyframesTarget } from "../../animation/utils/is-keyframes-target.mjs";
|
|
2
2
|
import { resolveVariant } from "./resolve-dynamic-variants.mjs";
|
|
3
|
-
import { motionValue } from "../../../../../../../motion-dom@12.
|
|
3
|
+
import { motionValue } from "../../../../../../../motion-dom@12.16.0/external/motion-dom/dist/es/value/index.mjs";
|
|
4
4
|
function setMotionValue(visualElement, key, value) {
|
|
5
5
|
if (visualElement.hasValue(key)) {
|
|
6
6
|
visualElement.getValue(key).set(value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { time } from "../../../../../../motion-dom@12.
|
|
2
|
-
import { frame, cancelFrame } from "../../../../../../motion-dom@12.
|
|
1
|
+
import { time } from "../../../../../../motion-dom@12.16.0/external/motion-dom/dist/es/frameloop/sync-time.mjs";
|
|
2
|
+
import { frame, cancelFrame } from "../../../../../../motion-dom@12.16.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
3
3
|
import { secondsToMilliseconds } from "../../../../../../motion-utils@12.12.1/external/motion-utils/dist/es/time-conversion.mjs";
|
|
4
4
|
function delay(callback, timeout) {
|
|
5
5
|
const start = time.now();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isMotionValue } from "../../../../../../../motion-dom@12.
|
|
1
|
+
import { isMotionValue } from "../../../../../../../motion-dom@12.16.0/external/motion-dom/dist/es/value/utils/is-motion-value.mjs";
|
|
2
2
|
function isWillChangeMotionValue(value) {
|
|
3
3
|
return Boolean(isMotionValue(value) && value.add);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isMotionValue } from "../../../../../../../motion-dom@12.
|
|
1
|
+
import { isMotionValue } from "../../../../../../../motion-dom@12.16.0/external/motion-dom/dist/es/value/utils/is-motion-value.mjs";
|
|
2
2
|
function resolveMotionValue(value) {
|
|
3
3
|
return isMotionValue(value) ? value.get() : value;
|
|
4
4
|
}
|
|
@@ -24,10 +24,10 @@ class JSAnimation extends WithPromise {
|
|
|
24
24
|
this.playbackSpeed = 1;
|
|
25
25
|
this.stop = () => {
|
|
26
26
|
var _a, _b;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
const { motionValue } = this.options;
|
|
28
|
+
if (motionValue && motionValue.updatedAt !== time.now()) {
|
|
29
|
+
this.tick(time.now());
|
|
30
|
+
}
|
|
31
31
|
this.isStopped = true;
|
|
32
32
|
if (this.state === "idle")
|
|
33
33
|
return;
|
|
@@ -6,13 +6,18 @@ class MotionValueState {
|
|
|
6
6
|
this.latest = {};
|
|
7
7
|
this.values = /* @__PURE__ */ new Map();
|
|
8
8
|
}
|
|
9
|
-
set(name, value, render, computed) {
|
|
9
|
+
set(name, value, render, computed, useDefaultValueType = true) {
|
|
10
10
|
const existingValue = this.values.get(name);
|
|
11
11
|
if (existingValue) {
|
|
12
12
|
existingValue.onRemove();
|
|
13
13
|
}
|
|
14
14
|
const onChange = () => {
|
|
15
|
-
|
|
15
|
+
const v = value.get();
|
|
16
|
+
if (useDefaultValueType) {
|
|
17
|
+
this.latest[name] = getValueAsType(v, numberValueTypes[name]);
|
|
18
|
+
} else {
|
|
19
|
+
this.latest[name] = v;
|
|
20
|
+
}
|
|
16
21
|
render && frame.render(render);
|
|
17
22
|
};
|
|
18
23
|
onChange();
|
package/dist/es/external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/effects/attr/index.mjs
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { camelToDash } from "../../render/dom/utils/camel-to-dash.mjs";
|
|
2
|
+
import { createSelectorEffect } from "../utils/create-dom-effect.mjs";
|
|
3
|
+
import { createEffect } from "../utils/create-effect.mjs";
|
|
4
|
+
function canSetAsProperty(element, name) {
|
|
5
|
+
if (!(name in element))
|
|
6
|
+
return false;
|
|
7
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(element), name) || Object.getOwnPropertyDescriptor(element, name);
|
|
8
|
+
return descriptor && typeof descriptor.set === "function";
|
|
9
|
+
}
|
|
10
|
+
const addAttrValue = (element, state, key, value) => {
|
|
11
|
+
const isProp = canSetAsProperty(element, key);
|
|
12
|
+
const name = isProp ? key : key.startsWith("data") || key.startsWith("aria") ? camelToDash(key) : key;
|
|
13
|
+
const render = isProp ? () => {
|
|
14
|
+
element[name] = state.latest[key];
|
|
15
|
+
} : () => {
|
|
16
|
+
const v = state.latest[key];
|
|
17
|
+
if (v === null || v === void 0) {
|
|
18
|
+
element.removeAttribute(name);
|
|
19
|
+
} else {
|
|
20
|
+
element.setAttribute(name, String(v));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return state.set(key, value, render);
|
|
24
|
+
};
|
|
25
|
+
const attrEffect = /* @__PURE__ */ createSelectorEffect(
|
|
26
|
+
/* @__PURE__ */ createEffect(addAttrValue)
|
|
27
|
+
);
|
|
28
|
+
export {
|
|
29
|
+
addAttrValue,
|
|
30
|
+
attrEffect
|
|
31
|
+
};
|
package/dist/es/external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/effects/prop/index.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createEffect } from "../utils/create-effect.mjs";
|
|
2
|
+
const propEffect = /* @__PURE__ */ createEffect((subject, state, key, value) => {
|
|
3
|
+
return state.set(key, value, () => {
|
|
4
|
+
subject[key] = state.latest[key];
|
|
5
|
+
}, void 0, false);
|
|
6
|
+
});
|
|
7
|
+
export {
|
|
8
|
+
propEffect
|
|
9
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { isCSSVar } from "../../render/dom/is-css-var.mjs";
|
|
2
|
+
import { transformProps } from "../../render/utils/keys-transform.mjs";
|
|
3
|
+
import { isHTMLElement } from "../../utils/is-html-element.mjs";
|
|
4
|
+
import { MotionValue } from "../../value/index.mjs";
|
|
5
|
+
import { createSelectorEffect } from "../utils/create-dom-effect.mjs";
|
|
6
|
+
import { createEffect } from "../utils/create-effect.mjs";
|
|
7
|
+
import { buildTransform } from "./transform.mjs";
|
|
8
|
+
const originProps = /* @__PURE__ */ new Set(["originX", "originY", "originZ"]);
|
|
9
|
+
const addStyleValue = (element, state, key, value) => {
|
|
10
|
+
let render = void 0;
|
|
11
|
+
let computed = void 0;
|
|
12
|
+
if (transformProps.has(key)) {
|
|
13
|
+
if (!state.get("transform")) {
|
|
14
|
+
if (!isHTMLElement(element) && !state.get("transformBox")) {
|
|
15
|
+
addStyleValue(element, state, "transformBox", new MotionValue("fill-box"));
|
|
16
|
+
}
|
|
17
|
+
state.set("transform", new MotionValue("none"), () => {
|
|
18
|
+
element.style.transform = buildTransform(state);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
computed = state.get("transform");
|
|
22
|
+
} else if (originProps.has(key)) {
|
|
23
|
+
if (!state.get("transformOrigin")) {
|
|
24
|
+
state.set("transformOrigin", new MotionValue(""), () => {
|
|
25
|
+
const originX = state.latest.originX ?? "50%";
|
|
26
|
+
const originY = state.latest.originY ?? "50%";
|
|
27
|
+
const originZ = state.latest.originZ ?? 0;
|
|
28
|
+
element.style.transformOrigin = `${originX} ${originY} ${originZ}`;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
computed = state.get("transformOrigin");
|
|
32
|
+
} else if (isCSSVar(key)) {
|
|
33
|
+
render = () => {
|
|
34
|
+
element.style.setProperty(key, state.latest[key]);
|
|
35
|
+
};
|
|
36
|
+
} else {
|
|
37
|
+
render = () => {
|
|
38
|
+
element.style[key] = state.latest[key];
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
return state.set(key, value, render, computed);
|
|
42
|
+
};
|
|
43
|
+
const styleEffect = /* @__PURE__ */ createSelectorEffect(
|
|
44
|
+
/* @__PURE__ */ createEffect(addStyleValue)
|
|
45
|
+
);
|
|
46
|
+
export {
|
|
47
|
+
addStyleValue,
|
|
48
|
+
styleEffect
|
|
49
|
+
};
|
package/dist/es/external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/effects/svg/index.mjs
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { MotionValue } from "../../value/index.mjs";
|
|
2
|
+
import { px } from "../../value/types/numbers/units.mjs";
|
|
3
|
+
import { addAttrValue } from "../attr/index.mjs";
|
|
4
|
+
import { addStyleValue } from "../style/index.mjs";
|
|
5
|
+
import { createSelectorEffect } from "../utils/create-dom-effect.mjs";
|
|
6
|
+
import { createEffect } from "../utils/create-effect.mjs";
|
|
7
|
+
import { frame } from "../../frameloop/frame.mjs";
|
|
8
|
+
const toPx = px.transform;
|
|
9
|
+
function addSVGPathValue(element, state, key, value) {
|
|
10
|
+
frame.render(() => element.setAttribute("pathLength", "1"));
|
|
11
|
+
if (key === "pathOffset") {
|
|
12
|
+
return state.set(key, value, () => element.setAttribute("stroke-dashoffset", toPx(-state.latest[key])));
|
|
13
|
+
} else {
|
|
14
|
+
if (!state.get("stroke-dasharray")) {
|
|
15
|
+
state.set("stroke-dasharray", new MotionValue("1 1"), () => {
|
|
16
|
+
const { pathLength = 1, pathSpacing } = state.latest;
|
|
17
|
+
element.setAttribute("stroke-dasharray", `${toPx(pathLength)} ${toPx(pathSpacing ?? 1 - Number(pathLength))}`);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return state.set(key, value, void 0, state.get("stroke-dasharray"));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const addSVGValue = (element, state, key, value) => {
|
|
24
|
+
if (key.startsWith("path")) {
|
|
25
|
+
return addSVGPathValue(element, state, key, value);
|
|
26
|
+
} else if (key.startsWith("attr")) {
|
|
27
|
+
return addAttrValue(element, state, convertAttrKey(key), value);
|
|
28
|
+
}
|
|
29
|
+
const handler = key in element.style ? addStyleValue : addAttrValue;
|
|
30
|
+
return handler(element, state, key, value);
|
|
31
|
+
};
|
|
32
|
+
const svgEffect = /* @__PURE__ */ createSelectorEffect(
|
|
33
|
+
/* @__PURE__ */ createEffect(addSVGValue)
|
|
34
|
+
);
|
|
35
|
+
function convertAttrKey(key) {
|
|
36
|
+
return key.replace(/^attr([A-Z])/, (_, firstChar) => firstChar.toLowerCase());
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
svgEffect
|
|
40
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { resolveElements } from "../../utils/resolve-elements.mjs";
|
|
2
|
+
function createSelectorEffect(subjectEffect) {
|
|
3
|
+
return (subject, values) => {
|
|
4
|
+
const elements = resolveElements(subject);
|
|
5
|
+
const subscriptions = [];
|
|
6
|
+
for (const element of elements) {
|
|
7
|
+
const remove = subjectEffect(element, values);
|
|
8
|
+
subscriptions.push(remove);
|
|
9
|
+
}
|
|
10
|
+
return () => {
|
|
11
|
+
for (const remove of subscriptions)
|
|
12
|
+
remove();
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
createSelectorEffect
|
|
18
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MotionValueState } from "../MotionValueState.mjs";
|
|
2
|
+
function createEffect(addValue) {
|
|
3
|
+
const stateCache = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
const subscriptions = [];
|
|
5
|
+
return (subject, values) => {
|
|
6
|
+
const state = stateCache.get(subject) ?? new MotionValueState();
|
|
7
|
+
stateCache.set(subject, state);
|
|
8
|
+
for (const key in values) {
|
|
9
|
+
const value = values[key];
|
|
10
|
+
const remove = addValue(subject, state, key, value);
|
|
11
|
+
subscriptions.push(remove);
|
|
12
|
+
}
|
|
13
|
+
return () => {
|
|
14
|
+
for (const cancel of subscriptions)
|
|
15
|
+
cancel();
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
createEffect
|
|
21
|
+
};
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { isSVGElement } from "../utils/is-svg-element.mjs";
|
|
2
|
+
import { resolveElements } from "../utils/resolve-elements.mjs";
|
|
3
3
|
const resizeHandlers = /* @__PURE__ */ new WeakMap();
|
|
4
4
|
let observer;
|
|
5
|
-
|
|
6
|
-
if (borderBoxSize) {
|
|
7
|
-
|
|
8
|
-
return { width: inlineSize, height: blockSize };
|
|
5
|
+
const getSize = (borderBoxAxis, svgAxis, htmlAxis) => (target, borderBoxSize) => {
|
|
6
|
+
if (borderBoxSize && borderBoxSize[0]) {
|
|
7
|
+
return borderBoxSize[0][borderBoxAxis + "Size"];
|
|
9
8
|
} else if (isSVGElement(target) && "getBBox" in target) {
|
|
10
|
-
return target.getBBox();
|
|
9
|
+
return target.getBBox()[svgAxis];
|
|
11
10
|
} else {
|
|
12
|
-
return
|
|
13
|
-
width: target.offsetWidth,
|
|
14
|
-
height: target.offsetHeight
|
|
15
|
-
};
|
|
11
|
+
return target[htmlAxis];
|
|
16
12
|
}
|
|
17
|
-
}
|
|
18
|
-
|
|
13
|
+
};
|
|
14
|
+
const getWidth = /* @__PURE__ */ getSize("inline", "width", "offsetWidth");
|
|
15
|
+
const getHeight = /* @__PURE__ */ getSize("block", "height", "offsetHeight");
|
|
16
|
+
function notifyTarget({ target, borderBoxSize }) {
|
|
19
17
|
var _a;
|
|
20
18
|
(_a = resizeHandlers.get(target)) == null ? void 0 : _a.forEach((handler) => {
|
|
21
|
-
handler({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
handler(target, {
|
|
20
|
+
get width() {
|
|
21
|
+
return getWidth(target, borderBoxSize);
|
|
22
|
+
},
|
|
23
|
+
get height() {
|
|
24
|
+
return getHeight(target, borderBoxSize);
|
|
26
25
|
}
|
|
27
26
|
});
|
|
28
27
|
});
|
|
@@ -2,14 +2,13 @@ const windowCallbacks = /* @__PURE__ */ new Set();
|
|
|
2
2
|
let windowResizeHandler;
|
|
3
3
|
function createWindowResizeHandler() {
|
|
4
4
|
windowResizeHandler = () => {
|
|
5
|
-
const size = {
|
|
6
|
-
width: window.innerWidth,
|
|
7
|
-
height: window.innerHeight
|
|
8
|
-
};
|
|
9
5
|
const info = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
get width() {
|
|
7
|
+
return window.innerWidth;
|
|
8
|
+
},
|
|
9
|
+
get height() {
|
|
10
|
+
return window.innerHeight;
|
|
11
|
+
}
|
|
13
12
|
};
|
|
14
13
|
windowCallbacks.forEach((callback) => callback(info));
|
|
15
14
|
};
|
|
@@ -21,7 +20,8 @@ function resizeWindow(callback) {
|
|
|
21
20
|
createWindowResizeHandler();
|
|
22
21
|
return () => {
|
|
23
22
|
windowCallbacks.delete(callback);
|
|
24
|
-
if (!windowCallbacks.size && windowResizeHandler) {
|
|
23
|
+
if (!windowCallbacks.size && typeof windowResizeHandler === "function") {
|
|
24
|
+
window.removeEventListener("resize", windowResizeHandler);
|
|
25
25
|
windowResizeHandler = void 0;
|
|
26
26
|
}
|
|
27
27
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { isAnimationControls } from "../../animation/utils.mjs";
|
|
2
2
|
import { Feature } from "../feature.mjs";
|
|
3
3
|
import { mountedStates } from "../../state/motion-state.mjs";
|
|
4
|
-
import { visualElementStore } from "../../external/.pnpm/framer-motion@12.
|
|
4
|
+
import { visualElementStore } from "../../external/.pnpm/framer-motion@12.16.0/external/framer-motion/dist/es/render/store.mjs";
|
|
5
5
|
import { motionEvent } from "../../state/event.mjs";
|
|
6
6
|
import { style } from "../../state/style.mjs";
|
|
7
7
|
import { transformResetValue } from "../../state/transform.mjs";
|
|
8
8
|
import { hasChanged, resolveVariant } from "../../state/utils.mjs";
|
|
9
9
|
import { isDef } from "@vueuse/core";
|
|
10
10
|
import { createVisualElement } from "../../state/create-visual-element.mjs";
|
|
11
|
-
import { animate } from "../../external/.pnpm/framer-motion@12.
|
|
11
|
+
import { animate } from "../../external/.pnpm/framer-motion@12.16.0/external/framer-motion/dist/es/animation/animate/index.mjs";
|
|
12
12
|
import { noop } from "../../external/.pnpm/motion-utils@12.12.1/external/motion-utils/dist/es/noop.mjs";
|
|
13
13
|
const STATE_TYPES = ["initial", "animate", "whileInView", "whileHover", "whilePress", "whileDrag", "whileFocus", "exit"];
|
|
14
14
|
class AnimationFeature extends Feature {
|
|
@@ -8,16 +8,16 @@ import { PanSession } from "../pan/PanSession.mjs";
|
|
|
8
8
|
import { calcLength } from "../../../projection/geometry/delta-calc.mjs";
|
|
9
9
|
import { createBox } from "../../../projection/geometry/models.mjs";
|
|
10
10
|
import { eachAxis } from "../../../projection/utils/each-axis.mjs";
|
|
11
|
-
import { percent } from "../../../value/types/numbers/units.mjs";
|
|
12
11
|
import { addValueToWillChange } from "../../../value/use-will-change/add-will-change.mjs";
|
|
13
12
|
import { measurePageBox } from "../../../projection/utils/measure.mjs";
|
|
14
13
|
import { convertBoxToBoundingBox, convertBoundingBoxToBox } from "../../../projection/conversion.mjs";
|
|
15
|
-
import { animateMotionValue } from "../../../external/.pnpm/framer-motion@12.
|
|
16
|
-
import { mixNumber } from "../../../utils/mix/number.mjs";
|
|
14
|
+
import { animateMotionValue } from "../../../external/.pnpm/framer-motion@12.16.0/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs";
|
|
17
15
|
import { invariant } from "hey-listen";
|
|
18
16
|
import { isPresent } from "../../../state/utils/is-present.mjs";
|
|
19
17
|
import { getContextWindow } from "../../../utils/get-context-window.mjs";
|
|
20
|
-
import {
|
|
18
|
+
import { percent } from "../../../external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/value/types/numbers/units.mjs";
|
|
19
|
+
import { frame } from "../../../external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
20
|
+
import { mixNumber } from "../../../external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/utils/mix/number.mjs";
|
|
21
21
|
const elementDragControls = /* @__PURE__ */ new WeakMap();
|
|
22
22
|
class VisualElementDragControls {
|
|
23
23
|
constructor(visualElement) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calcLength } from "../../../../projection/geometry/delta-calc.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { mixNumber } from "../../../../external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/utils/mix/number.mjs";
|
|
3
|
+
import { progress } from "../../../../external/.pnpm/motion-utils@12.12.1/external/motion-utils/dist/es/progress.mjs";
|
|
4
|
+
import { clamp } from "../../../../external/.pnpm/motion-utils@12.12.1/external/motion-utils/dist/es/clamp.mjs";
|
|
5
5
|
function applyConstraints(point, { min, max }, elastic) {
|
|
6
6
|
if (min !== void 0 && point < min) {
|
|
7
7
|
point = elastic ? mixNumber(min, point, elastic.min) : Math.max(point, min);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
|
-
import { hover } from "../../../external/.pnpm/motion-dom@12.
|
|
2
|
+
import { hover } from "../../../external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/gestures/hover.mjs";
|
|
3
3
|
import { extractEventInfo } from "../press/index.mjs";
|
|
4
|
-
import { frame } from "../../../external/.pnpm/motion-dom@12.
|
|
4
|
+
import { frame } from "../../../external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
5
5
|
function handleHoverEvent(state, event, lifecycle) {
|
|
6
6
|
const props = state.options;
|
|
7
7
|
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 "../../../external/.pnpm/motion-dom@12.
|
|
2
|
+
import { inView } from "../../../external/.pnpm/framer-motion@12.16.0/external/framer-motion/dist/es/render/dom/viewport/index.mjs";
|
|
3
|
+
import { frame } from "../../../external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
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.
|
|
3
|
+
import { distance2D } from "../../../external/.pnpm/framer-motion@12.16.0/external/framer-motion/dist/es/utils/distance.mjs";
|
|
4
4
|
import { pipe } from "../../../external/.pnpm/motion-utils@12.12.1/external/motion-utils/dist/es/pipe.mjs";
|
|
5
5
|
import { secondsToMilliseconds, millisecondsToSeconds } from "../../../external/.pnpm/motion-utils@12.12.1/external/motion-utils/dist/es/time-conversion.mjs";
|
|
6
|
-
import { frame, cancelFrame, frameData } from "../../../external/.pnpm/motion-dom@12.
|
|
6
|
+
import { frame, cancelFrame, frameData } from "../../../external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
7
7
|
import { isPrimaryPointer } from "../../../events/utils/is-primary-pointer.mjs";
|
|
8
8
|
class PanSession {
|
|
9
9
|
constructor(event, handlers, { transformPagePoint, contextWindow, dragSnapToOrigin = false } = {}) {
|
|
@@ -3,7 +3,7 @@ import { addPointerEvent } from "../../../events/add-pointer-event.mjs";
|
|
|
3
3
|
import { Feature } from "../../feature.mjs";
|
|
4
4
|
import { noop } from "../../../external/.pnpm/motion-utils@12.12.1/external/motion-utils/dist/es/noop.mjs";
|
|
5
5
|
import { getContextWindow } from "../../../utils/get-context-window.mjs";
|
|
6
|
-
import { frame } from "../../../external/.pnpm/motion-dom@12.
|
|
6
|
+
import { frame } from "../../../external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
7
7
|
function asyncHandler(handler) {
|
|
8
8
|
return (event, info) => {
|
|
9
9
|
if (handler) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Feature } from "../../feature.mjs";
|
|
2
|
-
import { press } from "../../../external/.pnpm/motion-dom@12.
|
|
3
|
-
import { frame } from "../../../external/.pnpm/motion-dom@12.
|
|
2
|
+
import { press } from "../../../external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/gestures/press/index.mjs";
|
|
3
|
+
import { frame } from "../../../external/.pnpm/motion-dom@12.16.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
4
4
|
function extractEventInfo(event) {
|
|
5
5
|
return {
|
|
6
6
|
point: {
|
|
@@ -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.16.0/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs";
|
|
2
|
+
import { correctBoxShadow } from "../../external/.pnpm/framer-motion@12.16.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.16.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.16.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.16.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.16.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";
|