motion-v 0.5.2-beta.1 → 0.6.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 +1788 -1539
- package/dist/es/animation/use-animate.mjs +1 -1
- package/dist/es/components/LayoutGroup.vue.mjs +2 -7
- package/dist/es/components/Motion.vue.mjs +47 -30
- package/dist/es/components/Primitive.mjs +14 -6
- package/dist/es/components/{AnimatePresence.vue.mjs → animate-presence/AnimatePresence.vue.mjs} +34 -15
- package/dist/es/components/{use-pop-layout.mjs → animate-presence/use-pop-layout.mjs} +8 -5
- package/dist/es/components/group.mjs +5 -2
- package/dist/es/components/presence.mjs +0 -2
- package/dist/es/components/utils.mjs +7 -0
- package/dist/es/constants/index.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animate/index.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +7 -7
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +8 -8
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +29 -89
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@11.16.6/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +6 -0
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/generators/spring/find.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/generators/spring/index.mjs +7 -6
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +6 -5
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +6 -5
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/sequence/create.mjs +8 -8
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/cubic-bezier.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/utils/map.mjs +6 -6
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/frameloop/frame.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +15 -15
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/VisualElement.mjs +12 -12
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +4 -3
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/index.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +6 -5
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +1 -14
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +3 -2
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +6 -6
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@11.16.6/external/framer-motion/dist/es/render/html/utils/keys-position.mjs +13 -0
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +6 -6
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/delay.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/interpolate.mjs +8 -5
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/mix/color.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/mix/complex.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/offsets/fill.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/index.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/animation/GroupPlaybackControls.mjs → motion-dom@11.16.4/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs} +6 -6
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/animation/controls/Group.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +17 -0
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +81 -0
- package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators/waapi → motion-dom@11.16.4/external/motion-dom/dist/es/animation/waapi/utils}/easing.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators → motion-dom@11.16.4/external/motion-dom/dist/es/animation}/waapi/utils/linear.mjs +2 -1
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +11 -0
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/hover.mjs +30 -0
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/press/index.mjs +51 -0
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +32 -0
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/press/utils/state.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +12 -0
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +10 -0
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/utils/setup.mjs +15 -0
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/utils/resolve-elements.mjs +17 -0
- package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-linear-easing.mjs → motion-dom@11.16.4/external/motion-dom/dist/es/utils/supports/linear-easing.mjs} +1 -1
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/utils/supports/memo.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +6 -0
- package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -2
- package/dist/es/features/gestures/drag/index.mjs +2 -2
- package/dist/es/features/gestures/hover/index.mjs +3 -2
- package/dist/es/features/gestures/in-view/index.mjs +2 -2
- package/dist/es/features/gestures/pan/PanSession.mjs +3 -3
- package/dist/es/features/gestures/pan/index.mjs +3 -3
- package/dist/es/features/gestures/press/index.mjs +3 -2
- package/dist/es/features/layout/config.mjs +2 -2
- package/dist/es/features/layout/layout.mjs +19 -10
- package/dist/es/features/layout/projection.mjs +19 -3
- package/dist/es/features/svg.mjs +1 -1
- package/dist/es/index.mjs +37 -37
- package/dist/es/state/animate-variants-children.mjs +6 -4
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +59 -26
- package/dist/es/state/utils.mjs +0 -9
- 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-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/dist/src/animation/types.d.ts +0 -12
- package/dist/src/components/LayoutGroup.d.ts +1 -10
- package/dist/src/components/Motion.d.ts +1 -1
- package/dist/src/components/Primitive.d.ts +14 -5
- package/dist/src/components/Slot.d.ts +1 -1
- package/dist/src/components/animate-presence/AnimatePresence.d.ts +21 -0
- package/dist/src/components/animate-presence/index.d.ts +2 -0
- package/dist/src/components/{type.d.ts → animate-presence/types.d.ts} +2 -0
- package/dist/src/components/{use-pop-layout.d.ts → animate-presence/use-pop-layout.d.ts} +3 -2
- package/dist/src/components/animate-presence/use-presence.d.ts +2 -0
- package/dist/src/components/context.d.ts +1 -0
- package/dist/src/components/group.d.ts +1 -0
- package/dist/src/components/hooks/use-motion-elm.d.ts +13 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/motion-config/MotionConfig.d.ts +2 -23
- package/dist/src/components/presence.d.ts +3 -5
- package/dist/src/components/utils.d.ts +7 -0
- package/dist/src/features/gestures/base.d.ts +0 -2
- package/dist/src/index.d.ts +1 -3
- package/dist/src/state/animate-variants-children.d.ts +1 -1
- package/dist/src/state/event.d.ts +1 -1
- package/dist/src/state/motion-state.d.ts +9 -6
- package/dist/src/state/utils.d.ts +2 -2
- package/dist/src/types/index.d.ts +0 -1
- package/dist/src/types/state.d.ts +8 -5
- package/dist/src/types/transform.d.ts +0 -24
- package/dist/src/utils/use-dom-ref.d.ts +2 -1
- package/dist/src/utils/use-in-view.d.ts +1 -1
- package/package.json +10 -5
- package/dist/es/external/.pnpm/framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators/waapi/utils/memo-supports.mjs +0 -12
- package/dist/es/external/.pnpm/framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +0 -5
- package/dist/es/external/.pnpm/framer-motion@11.15.0/external/framer-motion/dist/es/easing/utils/create-generator-easing.mjs +0 -14
- package/dist/es/external/.pnpm/framer-motion@11.15.0/external/framer-motion/dist/es/render/dom/scroll/supports.mjs +0 -5
- package/dist/es/state/schedule.mjs +0 -30
- package/dist/src/animation/animation-controls.d.ts +0 -7
- package/dist/src/components/AnimatePresence.d.ts +0 -46
- package/dist/src/state/schedule.d.ts +0 -3
- package/dist/es/components/{AnimatePresence.vue2.mjs → animate-presence/AnimatePresence.vue2.mjs} +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animate/sequence.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animate/single-value.mjs +1 -1
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/utils/accelerated-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/generators/inertia.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/generators/keyframes.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/generators/spring/defaults.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/generators/utils/velocity.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/is-animatable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/is-none.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/stagger.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/anticipate.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/back.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/circ.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/ease.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/modifiers/mirror.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/modifiers/reverse.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/steps.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/utils/is-easing-array.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/frameloop/batcher.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/frameloop/index-legacy.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/frameloop/microtask.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/frameloop/render-step.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/frameloop/sync-time.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/shared/stack.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/styles/transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/observe.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/defaults.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/test.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/render/html/utils/transform.mjs → framer-motion@11.16.6/external/framer-motion/dist/es/render/html/utils/keys-transform.mjs} +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/path.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/setters.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/GlobalConfig.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/array.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/clamp.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/hsla-to-rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/is-numerical-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/is-zero-value-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/mix/immediate.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/mix/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/mix/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/offsets/default.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/offsets/time.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/pipe.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/resolve-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/subscription-manager.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/velocity-per-second.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/warn-once.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/wrap.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/color/hex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/color/hsla.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/color/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/color/rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/color/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/complex/filter.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/complex/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/numbers/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/numbers/units.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/utils/color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/utils/float-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/utils/is-nullish.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/utils/sanitize.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/utils/single-color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion → motion-dom@11.16.4/external/motion-dom}/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion → motion-dom@11.16.4/external/motion-dom}/dist/es/animation/generators/utils/is-generator.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion → motion-dom@11.16.4/external/motion-dom}/dist/es/animation/utils/get-value-transition.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators → motion-dom@11.16.4/external/motion-dom/dist/es/animation}/waapi/utils/attach-timeline.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/easing → motion-dom@11.16.4/external/motion-dom/dist/es}/utils/is-bezier-definition.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-flags.mjs → motion-dom@11.16.4/external/motion-dom/dist/es/utils/supports/flags.mjs} +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@11.14.3 → motion-utils@11.16.0}/external/motion-utils/dist/es/errors.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/utils → motion-utils@11.16.0/external/motion-utils/dist/es}/memo.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@11.14.3 → motion-utils@11.16.0}/external/motion-utils/dist/es/noop.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/utils → motion-utils@11.16.0/external/motion-utils/dist/es}/progress.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/utils → motion-utils@11.16.0/external/motion-utils/dist/es}/time-conversion.mjs +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { memo } from "../../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/memo.mjs";
|
|
2
3
|
const supportsPartialKeyframes = /* @__PURE__ */ memo(() => {
|
|
3
4
|
try {
|
|
4
5
|
document.createElement("div").animate({ opacity: [1] });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "../../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { memo } from "../../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/memo.mjs";
|
|
3
|
+
const supportsWaapi = /* @__PURE__ */ memo(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
4
|
+
export {
|
|
5
|
+
supportsWaapi
|
|
6
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { warning } from "../../../../../../../../motion-utils@11.
|
|
1
|
+
import { warning } from "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { secondsToMilliseconds, millisecondsToSeconds } from "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
2
3
|
import { clamp } from "../../../utils/clamp.mjs";
|
|
3
|
-
import { secondsToMilliseconds, millisecondsToSeconds } from "../../../utils/time-conversion.mjs";
|
|
4
4
|
import { springDefaults } from "./defaults.mjs";
|
|
5
5
|
const safeMin = 1e-3;
|
|
6
6
|
function findSpring({ duration = springDefaults.duration, bounce = springDefaults.bounce, velocity = springDefaults.velocity, mass = springDefaults.mass }) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { millisecondsToSeconds, secondsToMilliseconds } from "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { calcGeneratorDuration, maxGeneratorDuration } from "../utils/calc-duration.mjs";
|
|
1
|
+
import "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
3
|
+
import { calcGeneratorDuration, maxGeneratorDuration } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs";
|
|
4
|
+
import { generateLinearEasing } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs";
|
|
6
5
|
import { clamp } from "../../../utils/clamp.mjs";
|
|
6
|
+
import { calcGeneratorVelocity } from "../utils/velocity.mjs";
|
|
7
7
|
import { springDefaults } from "./defaults.mjs";
|
|
8
|
+
import { findSpring, calcAngularFreq } from "./find.mjs";
|
|
8
9
|
const durationKeys = ["duration", "bounce"];
|
|
9
10
|
const physicsKeys = ["stiffness", "damping", "mass"];
|
|
10
11
|
function isSpringType(options, keys) {
|
|
@@ -24,7 +25,7 @@ function getSpringOptions(options) {
|
|
|
24
25
|
const visualDuration = options.visualDuration;
|
|
25
26
|
const root = 2 * Math.PI / (visualDuration * 1.2);
|
|
26
27
|
const stiffness = root * root;
|
|
27
|
-
const damping = 2 * clamp(0.05, 1, 1 - options.bounce) * Math.sqrt(stiffness);
|
|
28
|
+
const damping = 2 * clamp(0.05, 1, 1 - (options.bounce || 0)) * Math.sqrt(stiffness);
|
|
28
29
|
springOptions = {
|
|
29
30
|
...springOptions,
|
|
30
31
|
mass: springDefaults.mass,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { GroupPlaybackControls } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/controls/Group.mjs";
|
|
2
|
+
import { getValueTransition } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
|
|
3
|
+
import "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
4
|
+
import { secondsToMilliseconds } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
5
5
|
import { frame } from "../../frameloop/frame.mjs";
|
|
6
6
|
import { AcceleratedAnimation } from "../animators/AcceleratedAnimation.mjs";
|
|
7
7
|
import { MainThreadAnimation } from "../animators/MainThreadAnimation.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { getFinalKeyframe } from "../animators/waapi/utils/get-final-keyframe.mjs";
|
|
9
|
+
import { getDefaultTransition } from "../utils/default-transitions.mjs";
|
|
9
10
|
import { isTransitionDefined } from "../utils/is-transition-defined.mjs";
|
|
10
11
|
const animateMotionValue = (name, value, target, transition = {}, element, isHandoff) => (onComplete) => {
|
|
11
12
|
const valueTransition = getValueTransition(transition, name) || {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { getValueTransition } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
|
|
3
|
+
import { positionalKeys } from "../../render/html/utils/keys-position.mjs";
|
|
3
4
|
import { setTarget } from "../../render/utils/setters.mjs";
|
|
4
|
-
import { getValueTransition } from "../utils/get-value-transition.mjs";
|
|
5
|
-
import { getOptimisedAppearId } from "../optimized-appear/get-appear-id.mjs";
|
|
6
5
|
import { addValueToWillChange } from "../../value/use-will-change/add-will-change.mjs";
|
|
6
|
+
import { getOptimisedAppearId } from "../optimized-appear/get-appear-id.mjs";
|
|
7
|
+
import { animateMotionValue } from "./motion-value.mjs";
|
|
7
8
|
import { frame } from "../../frameloop/frame.mjs";
|
|
8
9
|
function shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {
|
|
9
10
|
const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;
|
|
@@ -39,7 +40,7 @@ function animateTarget(visualElement, targetAndTransition, { delay = 0, transiti
|
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
addValueToWillChange(visualElement, key);
|
|
42
|
-
value.start(animateMotionValue(key, value, valueTarget, visualElement.shouldReduceMotion &&
|
|
43
|
+
value.start(animateMotionValue(key, value, valueTarget, visualElement.shouldReduceMotion && positionalKeys.has(key) ? { type: false } : valueTransition, visualElement, isHandoff));
|
|
43
44
|
const animation = value.animation;
|
|
44
45
|
if (animation) {
|
|
45
46
|
animations.push(animation);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { invariant } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { progress } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/progress.mjs";
|
|
3
|
+
import { secondsToMilliseconds } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
4
|
+
import { createGeneratorEasing } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs";
|
|
5
|
+
import { isGenerator } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs";
|
|
6
|
+
import { getEasingForSegment } from "../../easing/utils/get-easing-for-segment.mjs";
|
|
2
7
|
import { defaultOffset } from "../../utils/offsets/default.mjs";
|
|
3
8
|
import { fillOffset } from "../../utils/offsets/fill.mjs";
|
|
4
|
-
import { progress } from "../../utils/progress.mjs";
|
|
5
|
-
import { secondsToMilliseconds } from "../../utils/time-conversion.mjs";
|
|
6
9
|
import { isMotionValue } from "../../value/utils/is-motion-value.mjs";
|
|
7
10
|
import { resolveSubjects } from "../animate/resolve-subjects.mjs";
|
|
8
|
-
import {
|
|
11
|
+
import { calculateRepeatDuration } from "./utils/calc-repeat-duration.mjs";
|
|
9
12
|
import { calcNextTime } from "./utils/calc-time.mjs";
|
|
10
13
|
import { addKeyframes } from "./utils/edit.mjs";
|
|
11
|
-
import { compareByTime } from "./utils/sort.mjs";
|
|
12
|
-
import { invariant } from "../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/errors.mjs";
|
|
13
14
|
import { normalizeTimes } from "./utils/normalize-times.mjs";
|
|
14
|
-
import {
|
|
15
|
-
import { getEasingForSegment } from "../../easing/utils/get-easing-for-segment.mjs";
|
|
15
|
+
import { compareByTime } from "./utils/sort.mjs";
|
|
16
16
|
const defaultSegmentEasing = "easeInOut";
|
|
17
17
|
const MAX_REPEAT = 20;
|
|
18
18
|
function createAnimationsFromSequence(sequence, { defaultTransition = {}, ...sequenceTransition } = {}, scope, generators) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../motion-utils@11.
|
|
2
|
-
import { noop } from "../../../../../../motion-utils@11.
|
|
1
|
+
import "../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { noop } from "../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/noop.mjs";
|
|
3
3
|
const calcBezier = (t, a1, a2) => (((1 - 3 * a2 + 3 * a1) * t + (3 * a2 - 6 * a1)) * t + 3 * a1) * t;
|
|
4
4
|
const subdivisionPrecision = 1e-7;
|
|
5
5
|
const subdivisionMaxIterations = 12;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { invariant } from "../../../../../../../motion-utils@11.
|
|
2
|
-
import { noop } from "../../../../../../../motion-utils@11.
|
|
1
|
+
import { invariant } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { noop } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/noop.mjs";
|
|
3
|
+
import { isBezierDefinition } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/utils/is-bezier-definition.mjs";
|
|
4
|
+
import { anticipate } from "../anticipate.mjs";
|
|
5
|
+
import { backIn, backInOut, backOut } from "../back.mjs";
|
|
6
|
+
import { circIn, circInOut, circOut } from "../circ.mjs";
|
|
3
7
|
import { cubicBezier } from "../cubic-bezier.mjs";
|
|
4
8
|
import { easeIn, easeInOut, easeOut } from "../ease.mjs";
|
|
5
|
-
import { circIn, circInOut, circOut } from "../circ.mjs";
|
|
6
|
-
import { backIn, backInOut, backOut } from "../back.mjs";
|
|
7
|
-
import { anticipate } from "../anticipate.mjs";
|
|
8
|
-
import { isBezierDefinition } from "./is-bezier-definition.mjs";
|
|
9
9
|
const easingLookup = {
|
|
10
10
|
linear: noop,
|
|
11
11
|
easeIn,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../../motion-utils@11.
|
|
2
|
-
import { noop } from "../../../../../../motion-utils@11.
|
|
1
|
+
import "../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { noop } from "../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/noop.mjs";
|
|
3
3
|
import { createRenderBatcher } from "./batcher.mjs";
|
|
4
4
|
const { schedule: frame, cancel: cancelFrame, state: frameData, steps: frameSteps } = createRenderBatcher(typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : noop, true);
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { scaleCorrectors } from "../../projection/styles/scale-correction.mjs";
|
|
2
|
-
import { transformProps } from "../../render/html/utils/transform.mjs";
|
|
2
|
+
import { transformProps } from "../../render/html/utils/keys-transform.mjs";
|
|
3
3
|
function isForcedMotionValue(key, { layout, layoutId }) {
|
|
4
4
|
return transformProps.has(key) || key.startsWith("origin") || (layout || layoutId !== void 0) && (!!scaleCorrectors[key] || key === "opacity");
|
|
5
5
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { noop } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/noop.mjs";
|
|
3
|
+
import { progress } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/progress.mjs";
|
|
1
4
|
import { circOut } from "../../easing/circ.mjs";
|
|
2
|
-
import { progress } from "../../utils/progress.mjs";
|
|
3
5
|
import { mixNumber } from "../../utils/mix/number.mjs";
|
|
4
|
-
import "../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/errors.mjs";
|
|
5
|
-
import { noop } from "../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/noop.mjs";
|
|
6
6
|
import { percent, px } from "../../value/types/numbers/units.mjs";
|
|
7
7
|
const borders = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"];
|
|
8
8
|
const numBorders = borders.length;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
+
import "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { noop } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/noop.mjs";
|
|
3
|
+
import { getValueTransition } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
|
|
4
|
+
import { animateSingleValue } from "../../animation/animate/single-value.mjs";
|
|
5
|
+
import { getOptimisedAppearId } from "../../animation/optimized-appear/get-appear-id.mjs";
|
|
6
|
+
import { cancelFrame, frameData, frameSteps, frame } from "../../frameloop/frame.mjs";
|
|
7
|
+
import { microtask } from "../../frameloop/microtask.mjs";
|
|
8
|
+
import { time } from "../../frameloop/sync-time.mjs";
|
|
9
|
+
import { isSVGElement } from "../../render/dom/utils/is-svg-element.mjs";
|
|
10
|
+
import { FlatTree } from "../../render/utils/flat-tree.mjs";
|
|
11
|
+
import { clamp } from "../../utils/clamp.mjs";
|
|
12
|
+
import { delay } from "../../utils/delay.mjs";
|
|
13
|
+
import { mixNumber } from "../../utils/mix/number.mjs";
|
|
1
14
|
import { SubscriptionManager } from "../../utils/subscription-manager.mjs";
|
|
15
|
+
import { resolveMotionValue } from "../../value/utils/resolve-motion-value.mjs";
|
|
2
16
|
import { mixValues } from "../animation/mix-values.mjs";
|
|
3
17
|
import { copyBoxInto, copyAxisDeltaInto } from "../geometry/copy.mjs";
|
|
4
18
|
import { translateAxis, transformBox, applyBoxDelta, applyTreeDeltas } from "../geometry/delta-apply.mjs";
|
|
5
19
|
import { calcRelativePosition, calcRelativeBox, calcBoxDelta, calcLength, isNear } from "../geometry/delta-calc.mjs";
|
|
6
20
|
import { removeBoxTransforms } from "../geometry/delta-remove.mjs";
|
|
7
|
-
import {
|
|
21
|
+
import { createBox, createDelta } from "../geometry/models.mjs";
|
|
8
22
|
import { boxEqualsRounded, isDeltaZero, axisDeltaEquals, aspectRatio, boxEquals } from "../geometry/utils.mjs";
|
|
9
23
|
import { NodeStack } from "../shared/stack.mjs";
|
|
10
24
|
import { scaleCorrectors } from "../styles/scale-correction.mjs";
|
|
11
25
|
import { buildProjectionTransform } from "../styles/transform.mjs";
|
|
12
26
|
import { eachAxis } from "../utils/each-axis.mjs";
|
|
13
27
|
import { hasTransform, hasScale, has2DTranslate } from "../utils/has-transform.mjs";
|
|
14
|
-
import { FlatTree } from "../../render/utils/flat-tree.mjs";
|
|
15
|
-
import { resolveMotionValue } from "../../value/utils/resolve-motion-value.mjs";
|
|
16
28
|
import { globalProjectionState } from "./state.mjs";
|
|
17
|
-
import { delay } from "../../utils/delay.mjs";
|
|
18
|
-
import { mixNumber } from "../../utils/mix/number.mjs";
|
|
19
|
-
import { isSVGElement } from "../../render/dom/utils/is-svg-element.mjs";
|
|
20
|
-
import { animateSingleValue } from "../../animation/animate/single-value.mjs";
|
|
21
|
-
import { clamp } from "../../utils/clamp.mjs";
|
|
22
|
-
import { cancelFrame, frameData, frameSteps, frame } from "../../frameloop/frame.mjs";
|
|
23
|
-
import "../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/errors.mjs";
|
|
24
|
-
import { noop } from "../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/noop.mjs";
|
|
25
|
-
import { time } from "../../frameloop/sync-time.mjs";
|
|
26
|
-
import { microtask } from "../../frameloop/microtask.mjs";
|
|
27
|
-
import { getOptimisedAppearId } from "../../animation/optimized-appear/get-appear-id.mjs";
|
|
28
|
-
import { createBox, createDelta } from "../geometry/models.mjs";
|
|
29
29
|
const metrics = {
|
|
30
30
|
type: "projectionFrame",
|
|
31
31
|
totalNodes: 0,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
+
import { time } from "../frameloop/sync-time.mjs";
|
|
2
|
+
import { featureDefinitions } from "../motion/features/definitions.mjs";
|
|
3
|
+
import { createBox } from "../projection/geometry/models.mjs";
|
|
4
|
+
import { isNumericalString } from "../utils/is-numerical-string.mjs";
|
|
5
|
+
import { isZeroValueString } from "../utils/is-zero-value-string.mjs";
|
|
1
6
|
import { initPrefersReducedMotion } from "../utils/reduced-motion/index.mjs";
|
|
2
7
|
import { hasReducedMotionListener, prefersReducedMotion } from "../utils/reduced-motion/state.mjs";
|
|
3
8
|
import { SubscriptionManager } from "../utils/subscription-manager.mjs";
|
|
9
|
+
import { warnOnce } from "../utils/warn-once.mjs";
|
|
4
10
|
import { motionValue } from "../value/index.mjs";
|
|
11
|
+
import { complex } from "../value/types/complex/index.mjs";
|
|
5
12
|
import { isMotionValue } from "../value/utils/is-motion-value.mjs";
|
|
6
|
-
import {
|
|
13
|
+
import { getAnimatableNone } from "./dom/value-types/animatable-none.mjs";
|
|
14
|
+
import { findValueType } from "./dom/value-types/find.mjs";
|
|
15
|
+
import { transformProps } from "./html/utils/keys-transform.mjs";
|
|
16
|
+
import { visualElementStore } from "./store.mjs";
|
|
7
17
|
import { isControllingVariants, isVariantNode } from "./utils/is-controlling-variants.mjs";
|
|
18
|
+
import { KeyframeResolver } from "./utils/KeyframesResolver.mjs";
|
|
8
19
|
import { updateMotionValuesFromProps } from "./utils/motion-values.mjs";
|
|
9
20
|
import { resolveVariantFromProps } from "./utils/resolve-variants.mjs";
|
|
10
|
-
import { warnOnce } from "../utils/warn-once.mjs";
|
|
11
|
-
import { featureDefinitions } from "../motion/features/definitions.mjs";
|
|
12
|
-
import { visualElementStore } from "./store.mjs";
|
|
13
|
-
import { KeyframeResolver } from "./utils/KeyframesResolver.mjs";
|
|
14
|
-
import { isNumericalString } from "../utils/is-numerical-string.mjs";
|
|
15
|
-
import { isZeroValueString } from "../utils/is-zero-value-string.mjs";
|
|
16
|
-
import { findValueType } from "./dom/value-types/find.mjs";
|
|
17
|
-
import { complex } from "../value/types/complex/index.mjs";
|
|
18
|
-
import { getAnimatableNone } from "./dom/value-types/animatable-none.mjs";
|
|
19
|
-
import { createBox } from "../projection/geometry/models.mjs";
|
|
20
|
-
import { time } from "../frameloop/sync-time.mjs";
|
|
21
21
|
import { frame, cancelFrame } from "../frameloop/frame.mjs";
|
|
22
22
|
const propEventHandlers = [
|
|
23
23
|
"AnimationStart",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { isNone } from "../../animation/utils/is-none.mjs";
|
|
2
|
+
import { positionalKeys } from "../html/utils/keys-position.mjs";
|
|
3
|
+
import { makeNoneKeyframesAnimatable } from "../html/utils/make-none-animatable.mjs";
|
|
4
|
+
import { KeyframeResolver } from "../utils/KeyframesResolver.mjs";
|
|
2
5
|
import { getVariableValue } from "./utils/css-variables-conversion.mjs";
|
|
3
6
|
import { isCSSVariableToken } from "./utils/is-css-variable.mjs";
|
|
4
|
-
import {
|
|
7
|
+
import { isNumOrPxType, positionalValues } from "./utils/unit-conversion.mjs";
|
|
5
8
|
import { findDimensionValueType } from "./value-types/dimensions.mjs";
|
|
6
|
-
import { KeyframeResolver } from "../utils/KeyframesResolver.mjs";
|
|
7
|
-
import { makeNoneKeyframesAnimatable } from "../html/utils/make-none-animatable.mjs";
|
|
8
9
|
class DOMKeyframesResolver extends KeyframeResolver {
|
|
9
10
|
constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {
|
|
10
11
|
super(unresolvedKeyframes, onComplete, name, motionValue, element, true);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { resolveElements } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
2
3
|
const resizeHandlers = /* @__PURE__ */ new WeakMap();
|
|
3
4
|
let observer;
|
|
4
5
|
function getElementSize(target, borderBoxSize) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { supportsScrollTimeline } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs";
|
|
2
|
+
import "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
|
+
import { noop } from "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/noop.mjs";
|
|
2
4
|
import { observeTimeline } from "./observe.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import "../../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/errors.mjs";
|
|
5
|
-
import { noop } from "../../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/noop.mjs";
|
|
5
|
+
import { scrollInfo } from "./track.mjs";
|
|
6
6
|
function scrollTimelineFallback({ source, container, axis = "y" }) {
|
|
7
7
|
if (source)
|
|
8
8
|
container = source;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { progress } from "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/progress.mjs";
|
|
2
3
|
import { velocityPerSecond } from "../../../utils/velocity-per-second.mjs";
|
|
3
4
|
const maxElapsed = 50;
|
|
4
5
|
const createAxisInfo = () => ({
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ScrollOffset } from "./presets.mjs";
|
|
3
|
-
import { resolveOffset } from "./offset.mjs";
|
|
1
|
+
import { clamp } from "../../../../utils/clamp.mjs";
|
|
4
2
|
import { interpolate } from "../../../../utils/interpolate.mjs";
|
|
5
3
|
import { defaultOffset } from "../../../../utils/offsets/default.mjs";
|
|
4
|
+
import { calcInset } from "./inset.mjs";
|
|
5
|
+
import { resolveOffset } from "./offset.mjs";
|
|
6
|
+
import { ScrollOffset } from "./presets.mjs";
|
|
6
7
|
const point = { x: 0, y: 0 };
|
|
7
8
|
function getTargetSize(target) {
|
|
8
9
|
return "getBBox" in target && target.tagName !== "svg" ? target.getBBox() : { width: target.clientWidth, height: target.clientHeight };
|
|
@@ -28,10 +29,10 @@ function resolveOffsets(container, info, options) {
|
|
|
28
29
|
info[axis].offset[i] = offset;
|
|
29
30
|
}
|
|
30
31
|
if (hasChanged) {
|
|
31
|
-
info[axis].interpolate = interpolate(info[axis].offset, defaultOffset(offsetDefinition));
|
|
32
|
+
info[axis].interpolate = interpolate(info[axis].offset, defaultOffset(offsetDefinition), { clamp: false });
|
|
32
33
|
info[axis].interpolatorOffsets = [...info[axis].offset];
|
|
33
34
|
}
|
|
34
|
-
info[axis].progress = info[axis].interpolate(info[axis].current);
|
|
35
|
+
info[axis].progress = clamp(0, 1, info[axis].interpolate(info[axis].current));
|
|
35
36
|
}
|
|
36
37
|
export {
|
|
37
38
|
resolveOffsets
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { invariant } from "../../../../../../../../motion-utils@11.
|
|
1
|
+
import { invariant } from "../../../../../../../../motion-utils@11.16.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,18 +1,6 @@
|
|
|
1
|
-
import { transformPropOrder } from "../../html/utils/transform.mjs";
|
|
2
1
|
import { number } from "../../../value/types/numbers/index.mjs";
|
|
3
2
|
import { px } from "../../../value/types/numbers/units.mjs";
|
|
4
|
-
|
|
5
|
-
"width",
|
|
6
|
-
"height",
|
|
7
|
-
"top",
|
|
8
|
-
"left",
|
|
9
|
-
"right",
|
|
10
|
-
"bottom",
|
|
11
|
-
"x",
|
|
12
|
-
"y",
|
|
13
|
-
"translateX",
|
|
14
|
-
"translateY"
|
|
15
|
-
]);
|
|
3
|
+
import { transformPropOrder } from "../../html/utils/keys-transform.mjs";
|
|
16
4
|
const isNumOrPxType = (v) => v === number || v === px;
|
|
17
5
|
const getPosFromMatrix = (matrix, pos) => parseFloat(matrix.split(", ")[pos]);
|
|
18
6
|
const getTranslateFromMatrix = (pos2, pos3) => (_bbox, { transform }) => {
|
|
@@ -59,7 +47,6 @@ positionalValues.translateX = positionalValues.x;
|
|
|
59
47
|
positionalValues.translateY = positionalValues.y;
|
|
60
48
|
export {
|
|
61
49
|
isNumOrPxType,
|
|
62
|
-
positionalKeys,
|
|
63
50
|
positionalValues,
|
|
64
51
|
removeNonTranslationalTransform
|
|
65
52
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { resolveElements } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/utils/resolve-elements.mjs";
|
|
2
3
|
const thresholds = {
|
|
3
4
|
some: 0,
|
|
4
5
|
all: 1
|
|
@@ -18,7 +19,7 @@ function inView(elementOrSelector, onStart, { root, margin: rootMargin, amount =
|
|
|
18
19
|
} else {
|
|
19
20
|
observer.unobserve(entry.target);
|
|
20
21
|
}
|
|
21
|
-
} else if (onEnd) {
|
|
22
|
+
} else if (typeof onEnd === "function") {
|
|
22
23
|
onEnd(entry);
|
|
23
24
|
activeIntersections.delete(entry.target);
|
|
24
25
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { buildHTMLStyles } from "./utils/build-styles.mjs";
|
|
2
|
-
import { isCSSVariableName } from "../dom/utils/is-css-variable.mjs";
|
|
3
|
-
import { transformProps } from "./utils/transform.mjs";
|
|
4
|
-
import { scrapeMotionValuesFromProps } from "./utils/scrape-motion-values.mjs";
|
|
5
|
-
import { renderHTML } from "./utils/render.mjs";
|
|
6
|
-
import { getDefaultValueType } from "../dom/value-types/defaults.mjs";
|
|
7
1
|
import { measureViewportBox } from "../../projection/utils/measure.mjs";
|
|
8
2
|
import { DOMVisualElement } from "../dom/DOMVisualElement.mjs";
|
|
3
|
+
import { isCSSVariableName } from "../dom/utils/is-css-variable.mjs";
|
|
4
|
+
import { getDefaultValueType } from "../dom/value-types/defaults.mjs";
|
|
5
|
+
import { buildHTMLStyles } from "./utils/build-styles.mjs";
|
|
6
|
+
import { transformProps } from "./utils/keys-transform.mjs";
|
|
7
|
+
import { renderHTML } from "./utils/render.mjs";
|
|
8
|
+
import { scrapeMotionValuesFromProps } from "./utils/scrape-motion-values.mjs";
|
|
9
9
|
function getComputedStyle(element) {
|
|
10
10
|
return window.getComputedStyle(element);
|
|
11
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { buildTransform } from "./build-transform.mjs";
|
|
2
1
|
import { isCSSVariableName } from "../../dom/utils/is-css-variable.mjs";
|
|
3
|
-
import { transformProps } from "./transform.mjs";
|
|
4
2
|
import { getValueAsType } from "../../dom/value-types/get-as-type.mjs";
|
|
5
3
|
import { numberValueTypes } from "../../dom/value-types/number.mjs";
|
|
4
|
+
import { buildTransform } from "./build-transform.mjs";
|
|
5
|
+
import { transformProps } from "./keys-transform.mjs";
|
|
6
6
|
function buildHTMLStyles(state, latestValues, transformTemplate) {
|
|
7
7
|
const { style, vars, transformOrigin } = state;
|
|
8
8
|
let hasTransform = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { transformPropOrder } from "./transform.mjs";
|
|
2
1
|
import { getValueAsType } from "../../dom/value-types/get-as-type.mjs";
|
|
3
2
|
import { numberValueTypes } from "../../dom/value-types/number.mjs";
|
|
3
|
+
import { transformPropOrder } from "./keys-transform.mjs";
|
|
4
4
|
const translateAlias = {
|
|
5
5
|
x: "translateX",
|
|
6
6
|
y: "translateY",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createBox } from "../../projection/geometry/models.mjs";
|
|
2
2
|
import { DOMVisualElement } from "../dom/DOMVisualElement.mjs";
|
|
3
|
-
import { buildSVGAttrs } from "./utils/build-attrs.mjs";
|
|
4
3
|
import { camelToDash } from "../dom/utils/camel-to-dash.mjs";
|
|
5
|
-
import { camelCaseAttributes } from "./utils/camel-case-attrs.mjs";
|
|
6
|
-
import { transformProps } from "../html/utils/transform.mjs";
|
|
7
|
-
import { renderSVG } from "./utils/render.mjs";
|
|
8
4
|
import { getDefaultValueType } from "../dom/value-types/defaults.mjs";
|
|
9
|
-
import {
|
|
5
|
+
import { transformProps } from "../html/utils/keys-transform.mjs";
|
|
6
|
+
import { buildSVGAttrs } from "./utils/build-attrs.mjs";
|
|
7
|
+
import { camelCaseAttributes } from "./utils/camel-case-attrs.mjs";
|
|
10
8
|
import { isSVGTag } from "./utils/is-svg-tag.mjs";
|
|
9
|
+
import { renderSVG } from "./utils/render.mjs";
|
|
10
|
+
import { scrapeMotionValuesFromProps } from "./utils/scrape-motion-values.mjs";
|
|
11
11
|
class SVGVisualElement extends DOMVisualElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isMotionValue } from "../../../value/utils/is-motion-value.mjs";
|
|
2
|
+
import { transformPropOrder } from "../../html/utils/keys-transform.mjs";
|
|
2
3
|
import { scrapeMotionValuesFromProps as scrapeMotionValuesFromProps$1 } from "../../html/utils/scrape-motion-values.mjs";
|
|
3
|
-
import { transformPropOrder } from "../../html/utils/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) {
|
|
@@ -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.
|
|
11
|
+
warnOnce(nextValue.version === "11.16.6", `Attempting to mix Motion versions ${nextValue.version} with 11.16.6 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,6 @@
|
|
|
1
|
+
import "../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { secondsToMilliseconds } from "../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
1
3
|
import { time } from "../frameloop/sync-time.mjs";
|
|
2
|
-
import { secondsToMilliseconds } from "./time-conversion.mjs";
|
|
3
4
|
import { frame, cancelFrame } from "../frameloop/frame.mjs";
|
|
4
5
|
function delay(callback, timeout) {
|
|
5
6
|
const start = time.now();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { invariant } from "../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { noop } from "../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/noop.mjs";
|
|
3
|
+
import { progress } from "../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/progress.mjs";
|
|
1
4
|
import { clamp } from "./clamp.mjs";
|
|
2
|
-
import { pipe } from "./pipe.mjs";
|
|
3
|
-
import { progress } from "./progress.mjs";
|
|
4
|
-
import { invariant } from "../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/errors.mjs";
|
|
5
|
-
import { noop } from "../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/noop.mjs";
|
|
6
5
|
import { mix } from "./mix/index.mjs";
|
|
6
|
+
import { pipe } from "./pipe.mjs";
|
|
7
7
|
function createMixers(output, ease, customMixer) {
|
|
8
8
|
const mixers = [];
|
|
9
9
|
const mixerFactory = customMixer || mix;
|
|
@@ -23,8 +23,9 @@ function interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {})
|
|
|
23
23
|
invariant(inputLength === output.length, "Both input and output ranges must be the same length");
|
|
24
24
|
if (inputLength === 1)
|
|
25
25
|
return () => output[0];
|
|
26
|
-
if (inputLength === 2 &&
|
|
26
|
+
if (inputLength === 2 && output[0] === output[1])
|
|
27
27
|
return () => output[1];
|
|
28
|
+
const isZeroDeltaRange = input[0] === input[1];
|
|
28
29
|
if (input[0] > input[inputLength - 1]) {
|
|
29
30
|
input = [...input].reverse();
|
|
30
31
|
output = [...output].reverse();
|
|
@@ -32,6 +33,8 @@ function interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {})
|
|
|
32
33
|
const mixers = createMixers(output, ease, mixer);
|
|
33
34
|
const numMixers = mixers.length;
|
|
34
35
|
const interpolator = (v) => {
|
|
36
|
+
if (isZeroDeltaRange && v < input[0])
|
|
37
|
+
return output[0];
|
|
35
38
|
let i = 0;
|
|
36
39
|
if (numMixers > 1) {
|
|
37
40
|
for (; i < input.length - 2; i++) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mixNumber } from "./number.mjs";
|
|
2
|
-
import { warning } from "../../../../../../../motion-utils@11.
|
|
2
|
+
import { warning } from "../../../../../../../motion-utils@11.16.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@11.
|
|
4
|
+
import { warning } from "../../../../../../../motion-utils@11.16.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,6 @@
|
|
|
1
|
+
import "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { progress } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/progress.mjs";
|
|
1
3
|
import { mixNumber } from "../mix/number.mjs";
|
|
2
|
-
import { progress } from "../progress.mjs";
|
|
3
4
|
function fillOffset(offset, remaining) {
|
|
4
5
|
const min = offset[offset.length - 1];
|
|
5
6
|
for (let i = 1; i <= remaining; i++) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { time } from "../frameloop/sync-time.mjs";
|
|
1
2
|
import { SubscriptionManager } from "../utils/subscription-manager.mjs";
|
|
2
3
|
import { velocityPerSecond } from "../utils/velocity-per-second.mjs";
|
|
3
4
|
import { warnOnce } from "../utils/warn-once.mjs";
|
|
4
|
-
import { time } from "../frameloop/sync-time.mjs";
|
|
5
5
|
import { frame } from "../frameloop/frame.mjs";
|
|
6
6
|
const MAX_VELOCITY_DELTA = 30;
|
|
7
7
|
const isFloat = (value) => {
|
|
@@ -20,7 +20,7 @@ class MotionValue {
|
|
|
20
20
|
* @internal
|
|
21
21
|
*/
|
|
22
22
|
constructor(init, options = {}) {
|
|
23
|
-
this.version = "11.
|
|
23
|
+
this.version = "11.16.6";
|
|
24
24
|
this.canTrackVelocity = null;
|
|
25
25
|
this.events = {};
|
|
26
26
|
this.updateAndNotify = (v, render = true) => {
|