motion-v 0.6.0 → 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 +1622 -1431
- package/dist/es/animation/use-animate.mjs +1 -1
- package/dist/es/components/LayoutGroup.vue.mjs +2 -5
- package/dist/es/components/Motion.vue.mjs +17 -5
- package/dist/es/components/Primitive.mjs +14 -6
- package/dist/es/components/animate-presence/AnimatePresence.vue.mjs +7 -11
- package/dist/es/components/animate-presence/use-pop-layout.mjs +7 -4
- 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 +2 -2
- package/dist/es/features/layout/projection.mjs +2 -2
- package/dist/es/features/svg.mjs +1 -1
- package/dist/es/index.mjs +33 -33
- package/dist/es/state/animate-variants-children.mjs +1 -1
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +20 -14
- 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 +2 -27
- package/dist/src/components/animate-presence/use-pop-layout.d.ts +1 -0
- package/dist/src/components/motion-config/MotionConfig.d.ts +2 -23
- package/dist/src/features/gestures/base.d.ts +0 -2
- package/dist/src/state/motion-state.d.ts +2 -2
- 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 +4 -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 +8 -4
- 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 -6
- package/dist/src/animation/animation-controls.d.ts +0 -7
- package/dist/src/state/schedule.d.ts +0 -3
- 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,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) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { supportsScrollTimeline } from "
|
|
2
|
-
class
|
|
1
|
+
import { supportsScrollTimeline } from "../../utils/supports/scroll-timeline.mjs";
|
|
2
|
+
class BaseGroupPlaybackControls {
|
|
3
3
|
constructor(animations) {
|
|
4
4
|
this.stop = () => this.runAll("stop");
|
|
5
5
|
this.animations = animations.filter(Boolean);
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
return Promise.all(this.animations
|
|
7
|
+
get finished() {
|
|
8
|
+
return Promise.all(this.animations.map((animation) => "finished" in animation ? animation.finished : animation));
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* TODO: Filter out cancelled or stopped animations before returning
|
|
@@ -22,7 +22,7 @@ class GroupPlaybackControls {
|
|
|
22
22
|
const subscriptions = this.animations.map((animation) => {
|
|
23
23
|
if (supportsScrollTimeline() && animation.attachTimeline) {
|
|
24
24
|
return animation.attachTimeline(timeline);
|
|
25
|
-
} else {
|
|
25
|
+
} else if (typeof fallback === "function") {
|
|
26
26
|
return fallback(animation);
|
|
27
27
|
}
|
|
28
28
|
});
|
|
@@ -75,5 +75,5 @@ class GroupPlaybackControls {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
export {
|
|
78
|
-
|
|
78
|
+
BaseGroupPlaybackControls
|
|
79
79
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseGroupPlaybackControls } from "./BaseGroup.mjs";
|
|
2
|
+
class GroupPlaybackControls extends BaseGroupPlaybackControls {
|
|
3
|
+
then(onResolve, onReject) {
|
|
4
|
+
return Promise.all(this.animations).then(onResolve).catch(onReject);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
GroupPlaybackControls
|
|
9
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
|
|
2
|
+
import { millisecondsToSeconds } from "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
3
|
+
import { calcGeneratorDuration, maxGeneratorDuration } from "./calc-duration.mjs";
|
|
4
|
+
function createGeneratorEasing(options, scale = 100, createGenerator) {
|
|
5
|
+
const generator = createGenerator({ ...options, keyframes: [0, scale] });
|
|
6
|
+
const duration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);
|
|
7
|
+
return {
|
|
8
|
+
type: "keyframes",
|
|
9
|
+
ease: (progress) => {
|
|
10
|
+
return generator.next(duration * progress).value / scale;
|
|
11
|
+
},
|
|
12
|
+
duration: millisecondsToSeconds(duration)
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
createGeneratorEasing
|
|
17
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/time-conversion.mjs";
|
|
4
|
+
import { attachTimeline } from "./utils/attach-timeline.mjs";
|
|
5
|
+
class NativeAnimationControls {
|
|
6
|
+
constructor(animation) {
|
|
7
|
+
this.animation = animation;
|
|
8
|
+
}
|
|
9
|
+
get duration() {
|
|
10
|
+
var _a, _b, _c;
|
|
11
|
+
const durationInMs = ((_b = (_a = this.animation) === null || _a === void 0 ? void 0 : _a.effect) === null || _b === void 0 ? void 0 : _b.getComputedTiming().duration) || ((_c = this.options) === null || _c === void 0 ? void 0 : _c.duration) || 300;
|
|
12
|
+
return millisecondsToSeconds(Number(durationInMs));
|
|
13
|
+
}
|
|
14
|
+
get time() {
|
|
15
|
+
var _a;
|
|
16
|
+
if (this.animation) {
|
|
17
|
+
return millisecondsToSeconds(((_a = this.animation) === null || _a === void 0 ? void 0 : _a.currentTime) || 0);
|
|
18
|
+
}
|
|
19
|
+
return 0;
|
|
20
|
+
}
|
|
21
|
+
set time(newTime) {
|
|
22
|
+
if (this.animation) {
|
|
23
|
+
this.animation.currentTime = secondsToMilliseconds(newTime);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
get speed() {
|
|
27
|
+
return this.animation ? this.animation.playbackRate : 1;
|
|
28
|
+
}
|
|
29
|
+
set speed(newSpeed) {
|
|
30
|
+
if (this.animation) {
|
|
31
|
+
this.animation.playbackRate = newSpeed;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
get state() {
|
|
35
|
+
return this.animation ? this.animation.playState : "finished";
|
|
36
|
+
}
|
|
37
|
+
get startTime() {
|
|
38
|
+
return this.animation ? this.animation.startTime : null;
|
|
39
|
+
}
|
|
40
|
+
get finished() {
|
|
41
|
+
return this.animation ? this.animation.finished : Promise.resolve();
|
|
42
|
+
}
|
|
43
|
+
play() {
|
|
44
|
+
this.animation && this.animation.play();
|
|
45
|
+
}
|
|
46
|
+
pause() {
|
|
47
|
+
this.animation && this.animation.pause();
|
|
48
|
+
}
|
|
49
|
+
stop() {
|
|
50
|
+
if (!this.animation || this.state === "idle" || this.state === "finished") {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (this.animation.commitStyles) {
|
|
54
|
+
this.animation.commitStyles();
|
|
55
|
+
}
|
|
56
|
+
this.cancel();
|
|
57
|
+
}
|
|
58
|
+
flatten() {
|
|
59
|
+
var _a;
|
|
60
|
+
if (!this.animation)
|
|
61
|
+
return;
|
|
62
|
+
(_a = this.animation.effect) === null || _a === void 0 ? void 0 : _a.updateTiming({ easing: "linear" });
|
|
63
|
+
}
|
|
64
|
+
attachTimeline(timeline) {
|
|
65
|
+
if (this.animation)
|
|
66
|
+
attachTimeline(this.animation, timeline);
|
|
67
|
+
return noop;
|
|
68
|
+
}
|
|
69
|
+
complete() {
|
|
70
|
+
this.animation && this.animation.finish();
|
|
71
|
+
}
|
|
72
|
+
cancel() {
|
|
73
|
+
try {
|
|
74
|
+
this.animation && this.animation.cancel();
|
|
75
|
+
} catch (e) {
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
NativeAnimationControls
|
|
81
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isBezierDefinition } from "../../../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { isBezierDefinition } from "../../../utils/is-bezier-definition.mjs";
|
|
2
|
+
import { supportsLinearEasing } from "../../../utils/supports/linear-easing.mjs";
|
|
3
|
+
import { generateLinearEasing } from "./linear.mjs";
|
|
4
4
|
function isWaapiSupportedEasing(easing) {
|
|
5
5
|
return Boolean(typeof easing === "function" && supportsLinearEasing() || !easing || typeof easing === "string" && (easing in supportedWaapiEasing || supportsLinearEasing()) || isBezierDefinition(easing) || Array.isArray(easing) && easing.every(isWaapiSupportedEasing));
|
|
6
6
|
}
|
|
@@ -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
|
const generateLinearEasing = (easing, duration, resolution = 10) => {
|
|
3
4
|
let points = "";
|
|
4
5
|
const numPoints = Math.max(Math.round(duration / resolution), 2);
|