motion-start 0.0.3 → 0.1.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/LICENSE.md +0 -0
- package/README.md +37 -29
- package/dist/animation/UseAnimatedState.svelte +26 -24
- package/dist/animation/UseAnimatedState.svelte.d.ts +5 -3
- package/dist/animation/UseAnimatedState.svelte.d.ts.map +1 -1
- package/dist/animation/UseAnimation.svelte.d.ts +1 -1
- package/dist/animation/animation-controls.d.ts +1 -1
- package/dist/animation/animation-controls.d.ts.map +1 -1
- package/dist/animation/animation-controls.js +12 -12
- package/dist/animation/use-animation.d.ts +1 -1
- package/dist/animation/utils/default-transitions.d.ts +1 -1
- package/dist/animation/utils/default-transitions.d.ts.map +1 -1
- package/dist/animation/utils/default-transitions.js +27 -37
- package/dist/animation/utils/easing.d.ts +2 -2
- package/dist/animation/utils/easing.d.ts.map +1 -1
- package/dist/animation/utils/easing.js +5 -6
- package/dist/animation/utils/transitions.d.ts +5 -5
- package/dist/animation/utils/transitions.d.ts.map +1 -1
- package/dist/animation/utils/transitions.js +55 -64
- package/dist/animation/utils/variant-resolvers.d.ts +1 -1
- package/dist/animation/utils/variant-resolvers.d.ts.map +1 -1
- package/dist/animation/utils/variant-resolvers.js +1 -5
- package/dist/components/AnimatePresence/AnimatePresence.svelte +16 -8
- package/dist/components/AnimatePresence/AnimatePresence.svelte.d.ts.map +1 -1
- package/dist/components/AnimatePresence/PresenceChild/PresenceChild.svelte +29 -23
- package/dist/components/AnimatePresence/PresenceChild/PresenceChild.svelte.d.ts +1 -26
- package/dist/components/AnimatePresence/PresenceChild/PresenceChild.svelte.d.ts.map +1 -1
- package/dist/components/AnimatePresence/PresenceChild/types.d.ts +3 -1
- package/dist/components/AnimatePresence/PresenceChild/types.d.ts.map +1 -1
- package/dist/components/AnimateSharedLayout/AnimateSharedLayout.svelte +22 -15
- package/dist/components/AnimateSharedLayout/AnimateSharedLayout.svelte.d.ts +1 -1
- package/dist/components/AnimateSharedLayout/AnimateSharedLayout.svelte.d.ts.map +1 -1
- package/dist/components/AnimateSharedLayout/index.d.ts +1 -1
- package/dist/components/AnimateSharedLayout/index.d.ts.map +1 -1
- package/dist/components/AnimateSharedLayout/index.js +1 -0
- package/dist/components/AnimateSharedLayout/types.d.ts +5 -5
- package/dist/components/AnimateSharedLayout/types.d.ts.map +1 -1
- package/dist/components/AnimateSharedLayout/types.js +0 -1
- package/dist/components/AnimateSharedLayout/utils/batcher.d.ts +1 -1
- package/dist/components/AnimateSharedLayout/utils/batcher.d.ts.map +1 -1
- package/dist/components/AnimateSharedLayout/utils/batcher.js +21 -22
- package/dist/components/AnimateSharedLayout/utils/crossfader.d.ts +3 -3
- package/dist/components/AnimateSharedLayout/utils/crossfader.d.ts.map +1 -1
- package/dist/components/AnimateSharedLayout/utils/crossfader.js +40 -46
- package/dist/components/AnimateSharedLayout/utils/rotate.d.ts +1 -1
- package/dist/components/AnimateSharedLayout/utils/rotate.d.ts.map +1 -1
- package/dist/components/AnimateSharedLayout/utils/rotate.js +2 -1
- package/dist/components/AnimateSharedLayout/utils/stack.d.ts +2 -5
- package/dist/components/AnimateSharedLayout/utils/stack.d.ts.map +1 -1
- package/dist/components/AnimateSharedLayout/utils/stack.js +22 -22
- package/dist/components/LazyMotion/LazyMotion.svelte +9 -3
- package/dist/components/LazyMotion/LazyMotion.svelte.d.ts.map +1 -1
- package/dist/components/LazyMotion/types.d.ts +1 -1
- package/dist/components/LazyMotion/types.d.ts.map +1 -1
- package/dist/components/MotionConfig/MotionConfig.svelte +1 -0
- package/dist/components/MotionConfig/MotionConfig.svelte.d.ts.map +1 -1
- package/dist/components/MotionConfig/MotionConfigScaleCorrection.d.ts.map +1 -1
- package/dist/components/MotionConfig/MotionConfigScaleCorrection.js +7 -4
- package/dist/context/DOMcontext.d.ts +4 -3
- package/dist/context/DOMcontext.d.ts.map +1 -1
- package/dist/context/DOMcontext.js +1 -1
- package/dist/context/LayoutGroupContext.d.ts.map +1 -1
- package/dist/context/LayoutGroupContext.js +1 -0
- package/dist/context/LazyContext.d.ts +2 -2
- package/dist/context/LazyContext.d.ts.map +1 -1
- package/dist/context/LazyContext.js +4 -3
- package/dist/context/MotionConfigContext.d.ts.map +1 -1
- package/dist/context/MotionConfigContext.js +1 -0
- package/dist/context/MotionContext/MotionContext.svelte +3 -18
- package/dist/context/MotionContext/MotionContext.svelte.d.ts +2 -36
- package/dist/context/MotionContext/MotionContext.svelte.d.ts.map +1 -1
- package/dist/context/MotionContext/UseCreateMotionContext.svelte +2 -2
- package/dist/context/MotionContext/index.d.ts +4 -1
- package/dist/context/MotionContext/index.d.ts.map +1 -1
- package/dist/context/MotionContext/index.js +8 -1
- package/dist/context/PresenceContext.d.ts.map +1 -1
- package/dist/context/PresenceContext.js +1 -0
- package/dist/context/ScaleCorrectionProvider.svelte +1 -1
- package/dist/context/ScaleCorrectionProvider.svelte.d.ts +2 -2
- package/dist/context/ScaleCorrectionProvider.svelte.d.ts.map +1 -1
- package/dist/context/SharedLayoutContext.d.ts +3 -3
- package/dist/context/SharedLayoutContext.d.ts.map +1 -1
- package/dist/context/SharedLayoutContext.js +5 -3
- package/dist/events/UseDomEvent.svelte +23 -24
- package/dist/events/UseDomEvent.svelte.d.ts +5 -28
- package/dist/events/UseDomEvent.svelte.d.ts.map +1 -1
- package/dist/events/UsePointerEvent.svelte +3 -57
- package/dist/events/UsePointerEvent.svelte.d.ts +1 -3
- package/dist/events/UsePointerEvent.svelte.d.ts.map +1 -1
- package/dist/events/event-info.js +1 -1
- package/dist/events/types.d.ts +4 -3
- package/dist/events/types.d.ts.map +1 -1
- package/dist/events/use-dom-event.d.ts +2 -1
- package/dist/events/use-dom-event.d.ts.map +1 -1
- package/dist/events/use-dom-event.js +7 -1
- package/dist/events/use-pointer-event.d.ts +10 -5
- package/dist/events/use-pointer-event.d.ts.map +1 -1
- package/dist/events/use-pointer-event.js +35 -1
- package/dist/gestures/PanSession.d.ts.map +1 -1
- package/dist/gestures/PanSession.js +1 -2
- package/dist/gestures/UseHoverGesture.svelte +4 -2
- package/dist/gestures/UseHoverGesture.svelte.d.ts.map +1 -1
- package/dist/gestures/UsePanGesture.svelte +6 -5
- package/dist/gestures/UsePanGesture.svelte.d.ts.map +1 -1
- package/dist/gestures/UseTapGesture.svelte +6 -5
- package/dist/gestures/UseTapGesture.svelte.d.ts.map +1 -1
- package/dist/gestures/drag/UseDrag.svelte +10 -16
- package/dist/gestures/drag/UseDrag.svelte.d.ts +6 -30
- package/dist/gestures/drag/UseDrag.svelte.d.ts.map +1 -1
- package/dist/gestures/drag/UseDragControls.svelte +1 -83
- package/dist/gestures/drag/UseDragControls.svelte.d.ts +7 -2
- package/dist/gestures/drag/UseDragControls.svelte.d.ts.map +1 -1
- package/dist/gestures/drag/VisualElementDragControls.d.ts.map +1 -1
- package/dist/gestures/drag/VisualElementDragControls.js +20 -11
- package/dist/gestures/drag/types.d.ts +12 -11
- package/dist/gestures/drag/types.d.ts.map +1 -1
- package/dist/gestures/drag/types.js +1 -2
- package/dist/gestures/drag/use-drag-controls.d.ts +3 -1
- package/dist/gestures/drag/use-drag-controls.d.ts.map +1 -1
- package/dist/gestures/drag/use-drag-controls.js +1 -1
- package/dist/gestures/drag/utils/constraints.d.ts +3 -3
- package/dist/gestures/drag/utils/constraints.d.ts.map +1 -1
- package/dist/gestures/drag/utils/constraints.js +11 -12
- package/dist/gestures/drag/utils/lock.js +1 -1
- package/dist/gestures/use-focus-gesture.d.ts +1 -1
- package/dist/gestures/use-focus-gesture.d.ts.map +1 -1
- package/dist/gestures/use-hover-gesture.d.ts +1 -1
- package/dist/gestures/use-hover-gesture.d.ts.map +1 -1
- package/dist/gestures/use-pan-gesture.d.ts +1 -1
- package/dist/gestures/use-pan-gesture.d.ts.map +1 -1
- package/dist/gestures/use-tap-gesture.d.ts +1 -1
- package/dist/gestures/use-tap-gesture.d.ts.map +1 -1
- package/dist/gestures/utils/is-node-or-child.d.ts.map +1 -1
- package/dist/gestures/utils/is-node-or-child.js +1 -0
- package/dist/index.d.ts +58 -59
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -41
- package/dist/motion/Motion.svelte +1 -0
- package/dist/motion/Motion.svelte.d.ts.map +1 -1
- package/dist/motion/MotionSSR.svelte +1 -1
- package/dist/motion/features/Exit.svelte +10 -9
- package/dist/motion/features/Exit.svelte.d.ts +6 -30
- package/dist/motion/features/Exit.svelte.d.ts.map +1 -1
- package/dist/motion/features/animations.d.ts +11 -0
- package/dist/motion/features/animations.d.ts.map +1 -0
- package/dist/motion/features/drag.d.ts +11 -0
- package/dist/motion/features/drag.d.ts.map +1 -0
- package/dist/motion/features/gestures.d.ts +11 -0
- package/dist/motion/features/gestures.d.ts.map +1 -0
- package/dist/motion/features/layout/Animate.svelte +44 -39
- package/dist/motion/features/layout/Animate.svelte.d.ts +2 -1
- package/dist/motion/features/layout/Animate.svelte.d.ts.map +1 -1
- package/dist/motion/features/layout/Measure.svelte +8 -6
- package/dist/motion/features/layout/Measure.svelte.d.ts.map +1 -1
- package/dist/motion/features/layout/index.d.ts +8 -0
- package/dist/motion/features/layout/index.d.ts.map +1 -0
- package/dist/motion/features/layout/index.js +1 -1
- package/dist/motion/features/types.d.ts +5 -3
- package/dist/motion/features/types.d.ts.map +1 -1
- package/dist/motion/index.d.ts +6 -6
- package/dist/motion/index.d.ts.map +1 -1
- package/dist/motion/index.js +4 -4
- package/dist/motion/types.d.ts +13 -9
- package/dist/motion/types.d.ts.map +1 -1
- package/dist/motion/types.js +1 -1
- package/dist/motion/utils/UseVisualState.svelte +22 -22
- package/dist/motion/utils/UseVisualState.svelte.d.ts +1 -1
- package/dist/motion/utils/UseVisualState.svelte.d.ts.map +1 -1
- package/dist/motion/utils/use-motion-ref.d.ts +4 -3
- package/dist/motion/utils/use-motion-ref.d.ts.map +1 -1
- package/dist/motion/utils/use-motion-ref.js +4 -6
- package/dist/motion/utils/use-visual-element.d.ts +5 -4
- package/dist/motion/utils/use-visual-element.d.ts.map +1 -1
- package/dist/motion/utils/use-visual-state.d.ts +6 -5
- package/dist/motion/utils/use-visual-state.d.ts.map +1 -1
- package/dist/motion/utils/use-visual-state.js +2 -1
- package/dist/render/dom/M-type.spec-d.js +2 -2
- package/dist/render/dom/{M.svelte → Motion-Proxy.svelte} +8 -2
- package/dist/render/dom/{M.svelte.d.ts → Motion-Proxy.svelte.d.ts} +5 -4
- package/dist/render/dom/Motion-Proxy.svelte.d.ts.map +1 -0
- package/dist/render/dom/Motion-type.spec-d.d.ts +2 -0
- package/dist/render/dom/Motion-type.spec-d.d.ts.map +1 -0
- package/dist/{motion/type.spec-d.js → render/dom/Motion-type.spec-d.js} +2 -2
- package/dist/render/dom/UseRender.svelte +5 -4
- package/dist/render/dom/UseRender.svelte.d.ts.map +1 -1
- package/dist/render/dom/featureBundle.d.ts +24 -0
- package/dist/render/dom/featureBundle.d.ts.map +1 -0
- package/dist/render/dom/featureBundle.js +5 -4
- package/dist/render/dom/motion-minimal.d.ts +942 -2
- package/dist/render/dom/motion-minimal.d.ts.map +1 -1
- package/dist/render/dom/motion-minimal.js +11 -7
- package/dist/render/dom/motion-proxy.d.ts +13 -195
- package/dist/render/dom/motion-proxy.d.ts.map +1 -1
- package/dist/render/dom/motion-proxy.js +9 -7
- package/dist/render/dom/motion.d.ts +974 -0
- package/dist/render/dom/motion.d.ts.map +1 -0
- package/dist/render/dom/motion.js +8 -4
- package/dist/render/dom/projection/convert-to-relative.d.ts.map +1 -1
- package/dist/render/dom/projection/default-scale-correctors.d.ts +5 -4
- package/dist/render/dom/projection/default-scale-correctors.d.ts.map +1 -1
- package/dist/render/dom/projection/default-scale-correctors.js +19 -19
- package/dist/render/dom/projection/scale-correction.d.ts +1 -1
- package/dist/render/dom/projection/scale-correction.d.ts.map +1 -1
- package/dist/render/dom/projection/scale-correction.js +2 -1
- package/dist/render/dom/projection/utils.d.ts +1 -1
- package/dist/render/dom/projection/utils.d.ts.map +1 -1
- package/dist/render/dom/projection/utils.js +2 -2
- package/dist/render/dom/svg-visual-element.d.ts +1 -1
- package/dist/render/dom/svg-visual-element.d.ts.map +1 -1
- package/dist/render/dom/svg-visual-element.js +11 -1
- package/dist/render/dom/use-render.d.ts +4 -8
- package/dist/render/dom/use-render.d.ts.map +1 -1
- package/dist/render/dom/use-render.js +4 -0
- package/dist/render/dom/utils/UseInitialMotionProps.svelte +14 -3
- package/dist/render/dom/utils/UseInitialMotionProps.svelte.d.ts +2 -1
- package/dist/render/dom/utils/UseInitialMotionProps.svelte.d.ts.map +1 -1
- package/dist/render/dom/utils/batch-layout.d.ts.map +1 -1
- package/dist/render/dom/utils/batch-layout.js +1 -0
- package/dist/render/dom/utils/create-config.d.ts +5 -11
- package/dist/render/dom/utils/create-config.d.ts.map +1 -1
- package/dist/render/dom/utils/create-config.js +7 -6
- package/dist/render/dom/utils/css-variables-conversion.d.ts +2 -2
- package/dist/render/dom/utils/css-variables-conversion.d.ts.map +1 -1
- package/dist/render/dom/utils/css-variables-conversion.js +8 -6
- package/dist/render/dom/utils/filter-props.d.ts.map +1 -1
- package/dist/render/dom/utils/filter-props.js +1 -0
- package/dist/render/dom/utils/is-svg-component.d.ts +2 -2
- package/dist/render/dom/utils/is-svg-component.d.ts.map +1 -1
- package/dist/render/dom/utils/is-svg-component.js +7 -3
- package/dist/render/dom/utils/unit-conversion.d.ts +2 -2
- package/dist/render/dom/utils/unit-conversion.d.ts.map +1 -1
- package/dist/render/dom/utils/unit-conversion.js +57 -74
- package/dist/render/dom/value-types/defaults.d.ts +1 -1
- package/dist/render/dom/value-types/defaults.d.ts.map +1 -1
- package/dist/render/dom/value-types/defaults.js +14 -5
- package/dist/render/dom/value-types/dimensions.d.ts +2 -1
- package/dist/render/dom/value-types/dimensions.d.ts.map +1 -1
- package/dist/render/dom/value-types/find.d.ts.map +1 -1
- package/dist/render/dom/value-types/find.js +2 -5
- package/dist/render/dom/value-types/get-as-type.js +1 -1
- package/dist/render/dom/value-types/type-int.d.ts.map +1 -1
- package/dist/render/dom/value-types/type-int.js +1 -2
- package/dist/render/html/UseHTMLProps.svelte +14 -2
- package/dist/render/html/UseHTMLProps.svelte.d.ts +3 -2
- package/dist/render/html/UseHTMLProps.svelte.d.ts.map +1 -1
- package/dist/render/html/UseInitialMotionValues.svelte +6 -5
- package/dist/render/html/UseInitialMotionValues.svelte.d.ts +6 -34
- package/dist/render/html/UseInitialMotionValues.svelte.d.ts.map +1 -1
- package/dist/render/html/UseStyle.svelte +7 -20
- package/dist/render/html/UseStyle.svelte.d.ts +0 -5
- package/dist/render/html/UseStyle.svelte.d.ts.map +1 -1
- package/dist/render/html/config-motion.d.ts.map +1 -1
- package/dist/render/html/config-motion.js +1 -0
- package/dist/render/html/types.d.ts +16 -19
- package/dist/render/html/types.d.ts.map +1 -1
- package/dist/render/html/use-props.d.ts +12 -10
- package/dist/render/html/use-props.d.ts.map +1 -1
- package/dist/render/html/use-props.js +17 -2
- package/dist/render/html/utils/build-styles.d.ts.map +1 -1
- package/dist/render/html/utils/build-styles.js +1 -0
- package/dist/render/html/utils/build-transform.d.ts.map +1 -1
- package/dist/render/html/utils/build-transform.js +1 -0
- package/dist/render/html/utils/render.d.ts.map +1 -1
- package/dist/render/html/utils/render.js +1 -0
- package/dist/render/html/utils/scrape-motion-values.d.ts.map +1 -1
- package/dist/render/html/utils/scrape-motion-values.js +2 -0
- package/dist/render/html/visual-element.d.ts +2311 -5
- package/dist/render/html/visual-element.d.ts.map +1 -1
- package/dist/render/html/visual-element.js +21 -29
- package/dist/render/index.d.ts +2 -2
- package/dist/render/index.d.ts.map +1 -1
- package/dist/render/index.js +105 -45
- package/dist/render/svg/UseSVGProps.svelte +13 -9
- package/dist/render/svg/UseSVGProps.svelte.d.ts +5 -33
- package/dist/render/svg/UseSVGProps.svelte.d.ts.map +1 -1
- package/dist/render/svg/config-motion.d.ts +18 -2
- package/dist/render/svg/config-motion.d.ts.map +1 -1
- package/dist/render/svg/config-motion.js +3 -0
- package/dist/render/svg/types.d.ts +6 -20
- package/dist/render/svg/types.d.ts.map +1 -1
- package/dist/render/svg/utils/build-attrs.d.ts +7 -7
- package/dist/render/svg/utils/build-attrs.d.ts.map +1 -1
- package/dist/render/svg/utils/build-attrs.js +3 -7
- package/dist/render/svg/utils/create-render-state.d.ts +9 -1
- package/dist/render/svg/utils/create-render-state.d.ts.map +1 -1
- package/dist/render/svg/utils/create-render-state.js +1 -2
- package/dist/render/svg/utils/path.js +1 -1
- package/dist/render/svg/utils/render.d.ts +1 -1
- package/dist/render/svg/utils/render.d.ts.map +1 -1
- package/dist/render/svg/utils/scrape-motion-values.d.ts.map +1 -1
- package/dist/render/svg/utils/scrape-motion-values.js +2 -0
- package/dist/render/svg/utils/transform-origin.js +1 -1
- package/dist/render/svg/visual-element.d.ts +1 -1
- package/dist/render/svg/visual-element.d.ts.map +1 -1
- package/dist/render/svg/visual-element.js +10 -13
- package/dist/render/types.d.ts +17 -16
- package/dist/render/types.d.ts.map +1 -1
- package/dist/render/types.js +1 -4
- package/dist/render/utils/animation-state.d.ts +12 -6
- package/dist/render/utils/animation-state.d.ts.map +1 -1
- package/dist/render/utils/animation-state.js +49 -50
- package/dist/render/utils/animation.d.ts +4 -4
- package/dist/render/utils/animation.d.ts.map +1 -1
- package/dist/render/utils/animation.js +22 -34
- package/dist/render/utils/lifecycles.d.ts +6 -6
- package/dist/render/utils/lifecycles.d.ts.map +1 -1
- package/dist/render/utils/lifecycles.js +28 -33
- package/dist/render/utils/motion-values.d.ts.map +1 -1
- package/dist/render/utils/motion-values.js +4 -3
- package/dist/render/utils/setters.d.ts +4 -4
- package/dist/render/utils/setters.d.ts.map +1 -1
- package/dist/render/utils/setters.js +30 -21
- package/dist/render/utils/state.d.ts.map +1 -1
- package/dist/render/utils/variants.js +3 -3
- package/dist/types/geometry.d.ts +1 -0
- package/dist/types/geometry.d.ts.map +1 -1
- package/dist/types.d.ts +12 -12
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/geometry/delta-apply.d.ts +3 -3
- package/dist/utils/geometry/delta-apply.d.ts.map +1 -1
- package/dist/utils/geometry/delta-apply.js +5 -4
- package/dist/utils/geometry/delta-calc.js +1 -1
- package/dist/utils/geometry/index.d.ts +3 -3
- package/dist/utils/geometry/index.d.ts.map +1 -1
- package/dist/utils/geometry/index.js +6 -7
- package/dist/utils/is-ref-object.d.ts +3 -2
- package/dist/utils/is-ref-object.d.ts.map +1 -1
- package/dist/utils/is-ref-object.js +5 -2
- package/dist/utils/subscription-manager.d.ts +1 -1
- package/dist/utils/subscription-manager.d.ts.map +1 -1
- package/dist/utils/subscription-manager.js +1 -1
- package/dist/utils/transform.d.ts +1 -1
- package/dist/utils/transform.d.ts.map +1 -1
- package/dist/utils/transform.js +7 -6
- package/dist/utils/use-force-update.d.ts +1 -1
- package/dist/utils/use-force-update.d.ts.map +1 -1
- package/dist/value/index.js +1 -1
- package/dist/value/scroll/use-element-scroll.d.ts +4 -3
- package/dist/value/scroll/use-element-scroll.d.ts.map +1 -1
- package/dist/value/scroll/use-element-scroll.js +7 -8
- package/dist/value/scroll/utils.d.ts +2 -2
- package/dist/value/scroll/utils.d.ts.map +1 -1
- package/dist/value/scroll/utils.js +20 -24
- package/dist/value/use-combine-values.d.ts +1 -1
- package/dist/value/use-combine-values.d.ts.map +1 -1
- package/dist/value/use-spring.d.ts +2 -2
- package/dist/value/use-spring.d.ts.map +1 -1
- package/dist/value/use-spring.js +7 -12
- package/dist/value/use-transform.d.ts.map +1 -1
- package/dist/value/use-transform.js +2 -1
- package/dist/value/use-velocity.d.ts +1 -1
- package/dist/value/use-velocity.d.ts.map +1 -1
- package/dist/value/use-velocity.js +1 -6
- package/package.json +91 -84
- package/dist/motion/type.spec-d.d.ts +0 -2
- package/dist/motion/type.spec-d.d.ts.map +0 -1
- package/dist/render/dom/M.svelte.d.ts.map +0 -1
- package/dist/render/dom/create-motion-class.js +0 -10
- package/dist/utils/use-constant.d.ts +0 -22
- package/dist/utils/use-constant.d.ts.map +0 -1
- package/dist/utils/use-constant.js +0 -9
- package/dist/utils/use-isomorphic-effect.d.ts +0 -7
- package/dist/utils/use-isomorphic-effect.d.ts.map +0 -1
- package/dist/utils/use-isomorphic-effect.js +0 -7
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import {
|
|
10
|
-
import type {
|
|
11
|
-
import { DragControls } from "./use-drag-controls";
|
|
5
|
+
import type { VariantLabels } from '../../motion/types';
|
|
6
|
+
import type { Inertia, TargetAndTransition } from '../../types';
|
|
7
|
+
import type { Axis, BoundingBox2D } from '../../types/geometry';
|
|
8
|
+
import type { MotionValue } from '../../value';
|
|
9
|
+
import type { PanInfo } from '../PanSession';
|
|
10
|
+
import type { DragControls } from './use-drag-controls';
|
|
12
11
|
export type DragHandler = (event: MouseEvent | TouchEvent | PointerEvent, info: PanInfo) => void;
|
|
13
12
|
export type DragElastic = boolean | number | Partial<BoundingBox2D>;
|
|
14
13
|
export interface ResolvedConstraints {
|
|
@@ -89,7 +88,7 @@ export interface DragHandlers {
|
|
|
89
88
|
*
|
|
90
89
|
* @public
|
|
91
90
|
*/
|
|
92
|
-
onDirectionLock?(axis:
|
|
91
|
+
onDirectionLock?(axis: 'x' | 'y'): void;
|
|
93
92
|
/**
|
|
94
93
|
* Callback function that fires when drag momentum/bounce transition finishes.
|
|
95
94
|
*
|
|
@@ -109,7 +108,7 @@ export interface DragHandlers {
|
|
|
109
108
|
/**
|
|
110
109
|
* @public
|
|
111
110
|
*/
|
|
112
|
-
export type InertiaOptions = Partial<Omit<Inertia,
|
|
111
|
+
export type InertiaOptions = Partial<Omit<Inertia, 'velocity' | 'type'>>;
|
|
113
112
|
/**
|
|
114
113
|
* @public
|
|
115
114
|
*/
|
|
@@ -125,7 +124,7 @@ export interface DraggableProps extends DragHandlers {
|
|
|
125
124
|
* <MotionDiv drag="x" />
|
|
126
125
|
* ```
|
|
127
126
|
*/
|
|
128
|
-
drag?: boolean |
|
|
127
|
+
drag?: boolean | 'x' | 'y';
|
|
129
128
|
/**
|
|
130
129
|
* Properties or variant label to animate to while the drag gesture is recognised.
|
|
131
130
|
*
|
|
@@ -184,7 +183,9 @@ export interface DraggableProps extends DragHandlers {
|
|
|
184
183
|
* }
|
|
185
184
|
* ```
|
|
186
185
|
*/
|
|
187
|
-
dragConstraints?: false | Partial<BoundingBox2D> |
|
|
186
|
+
dragConstraints?: false | Partial<BoundingBox2D> | {
|
|
187
|
+
current: Element | null;
|
|
188
|
+
};
|
|
188
189
|
/**
|
|
189
190
|
* The degree of movement allowed outside constraints. 0 = no movement, 1 =
|
|
190
191
|
* full movement.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/motion-start/gestures/drag/types.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/motion-start/gestures/drag/types.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,YAAY,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;AACjG,MAAM,M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AQG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,eAAe,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC,GAAG;QAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;KAAE,CAAC;IAC/E;;;;;;;;;;;;;;;;;;OAkBG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;;;;;;;OAaG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,CAAC,WAAW,EAAE,aAAa,KAAK,aAAa,GAAG,IAAI,CAAC;IAChF;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC7B"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { DragControls } from "./use-drag-controls";
|
|
1
|
+
export {};
|
|
@@ -44,7 +44,9 @@ export declare class DragControls {
|
|
|
44
44
|
*
|
|
45
45
|
* @public
|
|
46
46
|
*/
|
|
47
|
-
start: (event:
|
|
47
|
+
start: (event: PointerEvent | {
|
|
48
|
+
nativeEvent: PointerEvent;
|
|
49
|
+
}, options?: DragControlOptions) => void;
|
|
48
50
|
updateConstraints: (flush?: boolean) => void;
|
|
49
51
|
}
|
|
50
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-drag-controls.d.ts","sourceRoot":"","sources":["../../../../../src/lib/motion-start/gestures/drag/use-drag-controls.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjG;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,YAAY;IACxB,OAAO,CAAC,iBAAiB,CAAwC;IACjE;;;;OAIG;IACH,SAAS,aAAc,yBAAyB,KAAG,CAAC,MAAM,IAAI,CAAC,CAI7D;IACF;;;;;;;;;;;;;;OAcG;IACH,KAAK,UAAW,
|
|
1
|
+
{"version":3,"file":"use-drag-controls.d.ts","sourceRoot":"","sources":["../../../../../src/lib/motion-start/gestures/drag/use-drag-controls.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjG;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,YAAY;IACxB,OAAO,CAAC,iBAAiB,CAAwC;IACjE;;;;OAIG;IACH,SAAS,aAAc,yBAAyB,KAAG,CAAC,MAAM,IAAI,CAAC,CAI7D;IACF;;;;;;;;;;;;;;OAcG;IACH,KAAK,UAAW,YAAY,GAAG;QAAE,WAAW,EAAE,YAAY,CAAA;KAAE,YAAY,kBAAkB,KAAG,IAAI,CAI/F;IAEF,iBAAiB,WAAY,OAAO,KAAG,IAAI,CAKzC;CACF;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;EAGE;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,eAAO,MAAM,eAAe,oBAAqB,CAAC"}
|
|
@@ -59,7 +59,7 @@ export class DragControls {
|
|
|
59
59
|
writable: true,
|
|
60
60
|
value: (event, options) => {
|
|
61
61
|
this.componentControls.forEach((controls) => {
|
|
62
|
-
controls.start(event.nativeEvent
|
|
62
|
+
controls.start('nativeEvent' in event ? event.nativeEvent : event, options);
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
});
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import type { Axis, AxisBox2D, BoundingBox2D, Point2D } from
|
|
6
|
-
import type { DragElastic, ResolvedConstraints } from
|
|
5
|
+
import type { Axis, AxisBox2D, BoundingBox2D, Point2D } from '../../../types/geometry';
|
|
6
|
+
import type { DragElastic, ResolvedConstraints } from '../types';
|
|
7
7
|
/**
|
|
8
8
|
* Calculate the relative progress of one constraints box relative to another.
|
|
9
9
|
* Imagine a page scroll bar. At the top, this would return 0, at the bottom, 1.
|
|
@@ -74,5 +74,5 @@ declare const defaultElastic = 0.35;
|
|
|
74
74
|
declare function resolveDragElastic(dragElastic: DragElastic): AxisBox2D;
|
|
75
75
|
declare function resolveAxisElastic(dragElastic: DragElastic, minLabel: string, maxLabel: string): Axis;
|
|
76
76
|
declare function resolvePointElastic(dragElastic: DragElastic, label: string): number;
|
|
77
|
-
export { applyConstraints, calcConstrainedMinPoint, calcPositionFromProgress, calcRelativeAxisConstraints, calcRelativeConstraints, calcViewportAxisConstraints, calcViewportConstraints, defaultElastic, rebaseAxisConstraints, resolveAxisElastic, resolveDragElastic, resolvePointElastic };
|
|
77
|
+
export { applyConstraints, calcConstrainedMinPoint, calcPositionFromProgress, calcRelativeAxisConstraints, calcRelativeConstraints, calcViewportAxisConstraints, calcViewportConstraints, defaultElastic, rebaseAxisConstraints, resolveAxisElastic, resolveDragElastic, resolvePointElastic, };
|
|
78
78
|
//# sourceMappingURL=constraints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constraints.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/motion-start/gestures/drag/utils/constraints.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,KAAK,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"constraints.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/motion-start/gestures/drag/utils/constraints.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,KAAK,OAAO,CAAC;AAQzG;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,EAAE,IAAI,UASnF;AACD;;;;;;;GAOG;AACH,iBAAS,uBAAuB,CAC/B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,EAC3B,OAAO,CAAC,EAAE,IAAI,UAKd;AACD;;;;GAIG;AACH,iBAAS,2BAA2B,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAIrE,OAAO,CAAC,IAAI,CAAC,CAClB;AACD;;;GAGG;AACH,iBAAS,uBAAuB,CAAC,SAAS,EA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ply constraints to a point. These constraints are both physical along an
|
|
9
8
|
* axis, and an elastic factor that determines how much to constrain the point
|
|
@@ -41,9 +40,7 @@ function calcConstrainedMinPoint(point, length, progress, constraints, elastic)
|
|
|
41
40
|
function calcRelativeAxisConstraints(axis, min, max) {
|
|
42
41
|
return {
|
|
43
42
|
min: min !== undefined ? axis.min + min : undefined,
|
|
44
|
-
max: max !== undefined
|
|
45
|
-
? axis.max + max - (axis.max - axis.min)
|
|
46
|
-
: undefined,
|
|
43
|
+
max: max !== undefined ? axis.max + max - (axis.max - axis.min) : undefined,
|
|
47
44
|
};
|
|
48
45
|
}
|
|
49
46
|
/**
|
|
@@ -65,9 +62,9 @@ function calcViewportAxisConstraints(layoutAxis, constraintsAxis) {
|
|
|
65
62
|
var max = constraintsAxis.max - layoutAxis.max;
|
|
66
63
|
// If the constraints axis is actually smaller than the layout axis then we can
|
|
67
64
|
// flip the constraints
|
|
68
|
-
if (constraintsAxis.max - constraintsAxis.min <
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
if (constraintsAxis.max - constraintsAxis.min < layoutAxis.max - layoutAxis.min) {
|
|
66
|
+
_a = [max, min];
|
|
67
|
+
[min, max] = _a;
|
|
71
68
|
}
|
|
72
69
|
return {
|
|
73
70
|
min: layoutAxis.min + min,
|
|
@@ -116,8 +113,8 @@ function resolveDragElastic(dragElastic) {
|
|
|
116
113
|
dragElastic = defaultElastic;
|
|
117
114
|
}
|
|
118
115
|
return {
|
|
119
|
-
x: resolveAxisElastic(dragElastic,
|
|
120
|
-
y: resolveAxisElastic(dragElastic,
|
|
116
|
+
x: resolveAxisElastic(dragElastic, 'left', 'right'),
|
|
117
|
+
y: resolveAxisElastic(dragElastic, 'top', 'bottom'),
|
|
121
118
|
};
|
|
122
119
|
}
|
|
123
120
|
function resolveAxisElastic(dragElastic, minLabel, maxLabel) {
|
|
@@ -128,8 +125,10 @@ function resolveAxisElastic(dragElastic, minLabel, maxLabel) {
|
|
|
128
125
|
}
|
|
129
126
|
function resolvePointElastic(dragElastic, label) {
|
|
130
127
|
var _a;
|
|
131
|
-
return typeof dragElastic ===
|
|
128
|
+
return typeof dragElastic === 'number'
|
|
132
129
|
? dragElastic
|
|
133
|
-
: (_a = dragElastic[label]) !== null && _a !== void 0
|
|
130
|
+
: (_a = dragElastic[label]) !== null && _a !== void 0
|
|
131
|
+
? _a
|
|
132
|
+
: 0;
|
|
134
133
|
}
|
|
135
|
-
export { applyConstraints, calcConstrainedMinPoint, calcPositionFromProgress, calcRelativeAxisConstraints, calcRelativeConstraints, calcViewportAxisConstraints, calcViewportConstraints, defaultElastic, rebaseAxisConstraints, resolveAxisElastic, resolveDragElastic, resolvePointElastic };
|
|
134
|
+
export { applyConstraints, calcConstrainedMinPoint, calcPositionFromProgress, calcRelativeAxisConstraints, calcRelativeConstraints, calcViewportAxisConstraints, calcViewportConstraints, defaultElastic, rebaseAxisConstraints, resolveAxisElastic, resolveDragElastic, resolvePointElastic, };
|
|
@@ -9,6 +9,6 @@ import type { FeatureProps } from "../motion/features/types";
|
|
|
9
9
|
* @param ref
|
|
10
10
|
* @internal
|
|
11
11
|
*/
|
|
12
|
-
export type useFocusGesture = ({ whileFocus, visualElement }: FeatureProps) => void;
|
|
12
|
+
export type useFocusGesture = ({ whileFocus, visualElement }: FeatureProps | any) => void;
|
|
13
13
|
export { default as UseFocusGesture } from './UseFocusGesture.svelte';
|
|
14
14
|
//# sourceMappingURL=use-focus-gesture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-focus-gesture.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/gestures/use-focus-gesture.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,YAAY,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"use-focus-gesture.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/gestures/use-focus-gesture.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,YAAY,GAAG,GAAG,KAAK,IAAI,CAAC;AAG1F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -3,6 +3,6 @@ based on framer-motion@4.1.17,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import type { FeatureProps } from "../motion/features/types";
|
|
6
|
-
export type useHoverGesture = ({ onHoverStart, onHoverEnd, whileHover, visualElement, }: FeatureProps) => void;
|
|
6
|
+
export type useHoverGesture = ({ onHoverStart, onHoverEnd, whileHover, visualElement, }: FeatureProps | any) => void;
|
|
7
7
|
export { default as UseHoverGesture } from './UseHoverGesture.svelte';
|
|
8
8
|
//# sourceMappingURL=use-hover-gesture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-hover-gesture.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/gestures/use-hover-gesture.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,MAAM,MAAM,eAAe,GAAG,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,GAAG,EAAE,YAAY,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"use-hover-gesture.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/gestures/use-hover-gesture.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,MAAM,MAAM,eAAe,GAAG,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,GAAG,EAAE,YAAY,GAAG,GAAG,KAAK,IAAI,CAAC;AAGrH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -15,6 +15,6 @@ import type { FeatureProps } from "../motion/features/types";
|
|
|
15
15
|
*
|
|
16
16
|
* @internal
|
|
17
17
|
*/
|
|
18
|
-
export type usePanGesture = ({ onPan, onPanStart, onPanEnd, onPanSessionStart, visualElement, }: FeatureProps) => void;
|
|
18
|
+
export type usePanGesture = ({ onPan, onPanStart, onPanEnd, onPanSessionStart, visualElement, }: FeatureProps | any) => void;
|
|
19
19
|
export { default as UsePanGesture } from './UsePanGesture.svelte';
|
|
20
20
|
//# sourceMappingURL=use-pan-gesture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-pan-gesture.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/gestures/use-pan-gesture.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,iBAAiB,EAAE,aAAa,GAAG,EAAE,YAAY,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"use-pan-gesture.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/gestures/use-pan-gesture.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,iBAAiB,EAAE,aAAa,GAAG,EAAE,YAAY,GAAG,GAAG,KAAK,IAAI,CAAC;AAG7H,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -7,6 +7,6 @@ import type { FeatureProps } from "../motion/features/types";
|
|
|
7
7
|
* @param handlers -
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
10
|
-
export type useTapGesture = ({ onTap, onTapStart, onTapCancel, whileTap, visualElement, }: FeatureProps) => void;
|
|
10
|
+
export type useTapGesture = ({ onTap, onTapStart, onTapCancel, whileTap, visualElement, }: FeatureProps | any) => void;
|
|
11
11
|
export { default as UseTapGesture } from './UseTapGesture.svelte';
|
|
12
12
|
//# sourceMappingURL=use-tap-gesture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-tap-gesture.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/gestures/use-tap-gesture.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,GAAG,EAAE,YAAY,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"use-tap-gesture.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/gestures/use-tap-gesture.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,GAAG,EAAE,YAAY,GAAI,GAAG,KAAK,IAAI,CAAC;AAGxH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-node-or-child.d.ts","sourceRoot":"","sources":["../../../../../src/lib/motion-start/gestures/utils/is-node-or-child.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAGF;;;EAGE;AAEF;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"is-node-or-child.d.ts","sourceRoot":"","sources":["../../../../../src/lib/motion-start/gestures/utils/is-node-or-child.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAGF;;;EAGE;AAEF;;;;;;GAMG;AAEH,QAAA,IAAI,aAAa,WAAqB,OAAO,UAAU,OAAO,GAAG,IAAI,GAAG,SAAS,QAUhF,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -16,81 +16,80 @@ Copyright (c) 2018 Framer B.V.
|
|
|
16
16
|
/**
|
|
17
17
|
* Components
|
|
18
18
|
*/
|
|
19
|
-
export { AnimatePresence } from
|
|
20
|
-
export { AnimateSharedLayout } from
|
|
21
|
-
export { LazyMotion } from
|
|
22
|
-
export { MotionConfig } from
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
19
|
+
export { AnimatePresence } from './components/AnimatePresence/index.js';
|
|
20
|
+
export { AnimateSharedLayout } from './components/AnimateSharedLayout/index.js';
|
|
21
|
+
export { LazyMotion } from './components/LazyMotion/index.js';
|
|
22
|
+
export { MotionConfig } from './components/MotionConfig/index.js';
|
|
23
|
+
export { motion, createDomMotionComponent, motion as Motion } from './render/dom/motion.js';
|
|
24
|
+
export { m, m as M } from './render/dom/motion-minimal.js';
|
|
25
25
|
/**
|
|
26
26
|
* Features
|
|
27
27
|
*/
|
|
28
|
+
export { featureBundle, animations, drag, gestureAnimations } from './render/dom/featureBundle.js';
|
|
28
29
|
/**
|
|
29
30
|
* Motion values
|
|
30
31
|
*/
|
|
31
|
-
export { MotionValue, motionValue, type PassiveEffect, type Subscriber } from
|
|
32
|
-
export { useElementScroll } from
|
|
33
|
-
export { useViewportScroll } from
|
|
34
|
-
export { useMotionTemplate } from
|
|
35
|
-
export { useMotionValue } from
|
|
36
|
-
export { useSpring } from
|
|
37
|
-
export { useTransform } from
|
|
38
|
-
export { useVelocity } from
|
|
39
|
-
export { resolveMotionValue } from
|
|
32
|
+
export { MotionValue, motionValue, type PassiveEffect, type Subscriber } from './value/index.js';
|
|
33
|
+
export { useElementScroll } from './value/scroll/use-element-scroll.js';
|
|
34
|
+
export { useViewportScroll } from './value/scroll/use-viewport-scroll.js';
|
|
35
|
+
export { useMotionTemplate } from './value/use-motion-template.js';
|
|
36
|
+
export { useMotionValue } from './value/use-motion-value.js';
|
|
37
|
+
export { useSpring } from './value/use-spring.js';
|
|
38
|
+
export { useTransform } from './value/use-transform.js';
|
|
39
|
+
export { useVelocity } from './value/use-velocity.js';
|
|
40
|
+
export { resolveMotionValue } from './value/utils/resolve-motion-value.js';
|
|
40
41
|
/**
|
|
41
42
|
* Accessibility
|
|
42
43
|
*/
|
|
43
|
-
export { useReducedMotion } from
|
|
44
|
+
export { useReducedMotion } from './utils/use-reduced-motion.js';
|
|
44
45
|
/**
|
|
45
46
|
* Utils
|
|
46
47
|
*/
|
|
47
|
-
export { animate } from
|
|
48
|
-
export { animationControls } from
|
|
49
|
-
export type { AnimationControls } from
|
|
50
|
-
export { useAnimation } from
|
|
51
|
-
export { useIsPresent, usePresence } from
|
|
52
|
-
export { createCrossfader } from
|
|
53
|
-
export { UseDomEvent } from
|
|
54
|
-
export {
|
|
55
|
-
export { DragControls, useDragControls } from
|
|
56
|
-
export type { FocusHandlers, HoverHandlers, PanHandlers, TapHandlers, TapInfo } from
|
|
57
|
-
export { createMotionComponent } from
|
|
58
|
-
export { isValidMotionProp } from
|
|
59
|
-
export { addScaleCorrection } from
|
|
60
|
-
export { snapshotViewportBox } from
|
|
61
|
-
export { batchLayout, flushLayout } from
|
|
62
|
-
export { visualElement } from
|
|
63
|
-
export type { VisualElement } from
|
|
64
|
-
export { animateVisualElement } from
|
|
65
|
-
export { transform } from
|
|
66
|
-
export { useCycle } from
|
|
48
|
+
export { animate } from './animation/animate.js';
|
|
49
|
+
export { animationControls } from './animation/animation-controls.js';
|
|
50
|
+
export type { AnimationControls } from './animation/types.js';
|
|
51
|
+
export { useAnimation } from './animation/use-animation.js';
|
|
52
|
+
export { useIsPresent, usePresence } from './components/AnimatePresence/use-presence.js';
|
|
53
|
+
export { createCrossfader } from './components/AnimateSharedLayout/utils/crossfader.js';
|
|
54
|
+
export { UseDomEvent } from './events/use-dom-event.js';
|
|
55
|
+
export type { PanInfo } from './gestures/PanSession.js';
|
|
56
|
+
export { DragControls, useDragControls } from './gestures/drag/use-drag-controls.js';
|
|
57
|
+
export type { FocusHandlers, HoverHandlers, PanHandlers, TapHandlers, TapInfo } from './gestures/types.js';
|
|
58
|
+
export { createMotionComponent } from './motion/index.js';
|
|
59
|
+
export { isValidMotionProp } from './motion/utils/valid-prop.js';
|
|
60
|
+
export { addScaleCorrection } from './render/dom/projection/scale-correction.js';
|
|
61
|
+
export { snapshotViewportBox } from './render/dom/projection/utils.js';
|
|
62
|
+
export { batchLayout, flushLayout } from './render/dom/utils/batch-layout.js';
|
|
63
|
+
export { visualElement } from './render/index.js';
|
|
64
|
+
export type { VisualElement } from './render/types.js';
|
|
65
|
+
export { animateVisualElement } from './render/utils/animation.js';
|
|
66
|
+
export { transform } from './utils/transform.js';
|
|
67
|
+
export { useCycle } from './utils/use-cycle.js';
|
|
67
68
|
/**
|
|
68
69
|
* Contexts
|
|
69
70
|
*/
|
|
70
|
-
export { LayoutGroupContext } from
|
|
71
|
-
export { MotionConfigContext } from
|
|
72
|
-
export { PresenceContext } from
|
|
71
|
+
export { LayoutGroupContext } from './context/LayoutGroupContext.js';
|
|
72
|
+
export { MotionConfigContext } from './context/MotionConfigContext.js';
|
|
73
|
+
export { PresenceContext } from './context/PresenceContext.js';
|
|
73
74
|
/**
|
|
74
75
|
* Types
|
|
75
76
|
*/
|
|
76
|
-
export type { AnimationOptions, AnimationPlaybackControls } from
|
|
77
|
-
export type { AnimatePresenceProps } from
|
|
78
|
-
export type { SharedLayoutAnimationConfig, SharedLayoutProps, SharedLayoutSyncMethods, SyncLayoutLifecycles, VisibilityAction } from
|
|
79
|
-
export { createBatcher } from
|
|
80
|
-
export type { LazyProps } from
|
|
81
|
-
export type { MotionConfigProps } from
|
|
82
|
-
export type { SharedLayoutContext } from
|
|
83
|
-
export type { EventInfo } from
|
|
84
|
-
export type { DragElastic, DragHandlers, DraggableProps } from
|
|
85
|
-
export type { LayoutProps } from
|
|
86
|
-
export * from
|
|
87
|
-
export type { AnimationProps, MotionAdvancedProps, MotionProps, MotionStyle, MotionTransform, RelayoutInfo, ResolveLayoutTransition, VariantLabels } from
|
|
88
|
-
export type { CustomDomComponent } from
|
|
89
|
-
export
|
|
90
|
-
export type {
|
|
91
|
-
export {
|
|
92
|
-
export
|
|
93
|
-
export type {
|
|
94
|
-
export * from "./types/geometry.js";
|
|
95
|
-
export type { ScrollMotionValues } from "./value/scroll/utils.js";
|
|
77
|
+
export type { AnimationOptions, AnimationPlaybackControls } from './animation/animate.js';
|
|
78
|
+
export type { AnimatePresenceProps } from './components/AnimatePresence/types.js';
|
|
79
|
+
export type { SharedLayoutAnimationConfig, SharedLayoutProps, SharedLayoutSyncMethods, SyncLayoutLifecycles, VisibilityAction, } from './components/AnimateSharedLayout/types.js';
|
|
80
|
+
export { createBatcher } from './components/AnimateSharedLayout/utils/batcher.js';
|
|
81
|
+
export type { LazyProps } from './components/LazyMotion/types.js';
|
|
82
|
+
export type { MotionConfigProps } from './components/MotionConfig/index.js';
|
|
83
|
+
export type { SharedLayoutContext } from './context/SharedLayoutContext.js';
|
|
84
|
+
export type { EventInfo } from './events/types.js';
|
|
85
|
+
export type { DragElastic, DragHandlers, DraggableProps } from './gestures/drag/types.js';
|
|
86
|
+
export type { LayoutProps } from './motion/features/layout/types.js';
|
|
87
|
+
export * from './motion/features/types.js';
|
|
88
|
+
export type { AnimationProps, MotionAdvancedProps, MotionProps, MotionStyle, MotionTransform, RelayoutInfo, ResolveLayoutTransition, VariantLabels, } from './motion/types.js';
|
|
89
|
+
export type { CustomDomComponent } from './render/dom/motion-proxy.js';
|
|
90
|
+
export { FlatTree } from './render/utils/flat-tree.js';
|
|
91
|
+
export type { VisualElementLifecycles } from './render/utils/lifecycles.js';
|
|
92
|
+
export type { CustomValueType, EasingFunction, Inertia, Keyframes, KeyframesTarget, None, Orchestration, Repeat, ResolvedKeyframesTarget, ResolvedSingleTarget, ResolvedValueTarget, SingleTarget, Spring, Target, TargetAndTransition, Transition, Tween, ValueTarget, Variant, Variants, } from './types.js';
|
|
93
|
+
export * from './types/geometry.js';
|
|
94
|
+
export type { ScrollMotionValues } from './value/scroll/utils.js';
|
|
96
95
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/index.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAItF;;;EAGE;AACF;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,C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MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAGvE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,YAAY,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,YAAY,EACX,eAAe,EACf,cAAc,EACd,OAAO,EACP,SAAS,EACT,eAAe,EACf,IAAI,EACJ,aAAa,EACb,MAAM,EACN,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,MAAM,EACN,MAAM,EACN,mBAAmB,EACnB,UAAU,EACV,KAAK,EACL,WAAW,EACX,OAAO,EACP,QAAQ,GACR,MAAM,YAAY,CAAC;AACpB,cAAc,qBAAqB,CAAC;AACpC,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -17,59 +17,60 @@ Copyright (c) 2018 Framer B.V.
|
|
|
17
17
|
/**
|
|
18
18
|
* Components
|
|
19
19
|
*/
|
|
20
|
-
export { AnimatePresence } from
|
|
21
|
-
export { AnimateSharedLayout } from
|
|
22
|
-
export { LazyMotion } from
|
|
23
|
-
export { MotionConfig } from
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
20
|
+
export { AnimatePresence } from './components/AnimatePresence/index.js';
|
|
21
|
+
export { AnimateSharedLayout } from './components/AnimateSharedLayout/index.js';
|
|
22
|
+
export { LazyMotion } from './components/LazyMotion/index.js';
|
|
23
|
+
export { MotionConfig } from './components/MotionConfig/index.js';
|
|
24
|
+
export { motion, createDomMotionComponent, motion as Motion } from './render/dom/motion.js';
|
|
25
|
+
export { m, m as M } from './render/dom/motion-minimal.js';
|
|
26
26
|
/**
|
|
27
27
|
* Features
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
export { featureBundle, animations, drag, gestureAnimations } from './render/dom/featureBundle.js';
|
|
30
30
|
/**
|
|
31
31
|
* Motion values
|
|
32
32
|
*/
|
|
33
|
-
export { MotionValue, motionValue } from
|
|
34
|
-
export { useElementScroll } from
|
|
35
|
-
export { useViewportScroll } from
|
|
36
|
-
export { useMotionTemplate } from
|
|
37
|
-
export { useMotionValue } from
|
|
38
|
-
export { useSpring } from
|
|
39
|
-
export { useTransform } from
|
|
40
|
-
export { useVelocity } from
|
|
41
|
-
export { resolveMotionValue } from
|
|
33
|
+
export { MotionValue, motionValue } from './value/index.js';
|
|
34
|
+
export { useElementScroll } from './value/scroll/use-element-scroll.js';
|
|
35
|
+
export { useViewportScroll } from './value/scroll/use-viewport-scroll.js';
|
|
36
|
+
export { useMotionTemplate } from './value/use-motion-template.js';
|
|
37
|
+
export { useMotionValue } from './value/use-motion-value.js';
|
|
38
|
+
export { useSpring } from './value/use-spring.js';
|
|
39
|
+
export { useTransform } from './value/use-transform.js';
|
|
40
|
+
export { useVelocity } from './value/use-velocity.js';
|
|
41
|
+
export { resolveMotionValue } from './value/utils/resolve-motion-value.js';
|
|
42
42
|
/**
|
|
43
43
|
* Accessibility
|
|
44
44
|
*/
|
|
45
|
-
export { useReducedMotion } from
|
|
45
|
+
export { useReducedMotion } from './utils/use-reduced-motion.js';
|
|
46
46
|
/**
|
|
47
47
|
* Utils
|
|
48
48
|
*/
|
|
49
|
-
export { animate } from
|
|
50
|
-
export { animationControls } from
|
|
51
|
-
export { useAnimation } from
|
|
52
|
-
export { useIsPresent, usePresence } from
|
|
53
|
-
export { createCrossfader } from
|
|
54
|
-
export { UseDomEvent } from
|
|
55
|
-
export {} from
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
export { useCycle } from "./utils/use-cycle.js";
|
|
49
|
+
export { animate } from './animation/animate.js';
|
|
50
|
+
export { animationControls } from './animation/animation-controls.js';
|
|
51
|
+
export { useAnimation } from './animation/use-animation.js';
|
|
52
|
+
export { useIsPresent, usePresence } from './components/AnimatePresence/use-presence.js';
|
|
53
|
+
export { createCrossfader } from './components/AnimateSharedLayout/utils/crossfader.js';
|
|
54
|
+
export { UseDomEvent } from './events/use-dom-event.js';
|
|
55
|
+
export { DragControls, useDragControls } from './gestures/drag/use-drag-controls.js';
|
|
56
|
+
export { createMotionComponent } from './motion/index.js';
|
|
57
|
+
export { isValidMotionProp } from './motion/utils/valid-prop.js';
|
|
58
|
+
export { addScaleCorrection } from './render/dom/projection/scale-correction.js';
|
|
59
|
+
export { snapshotViewportBox } from './render/dom/projection/utils.js';
|
|
60
|
+
export { batchLayout, flushLayout } from './render/dom/utils/batch-layout.js';
|
|
61
|
+
export { visualElement } from './render/index.js';
|
|
62
|
+
export { animateVisualElement } from './render/utils/animation.js';
|
|
63
|
+
export { transform } from './utils/transform.js';
|
|
64
|
+
export { useCycle } from './utils/use-cycle.js';
|
|
66
65
|
/**
|
|
67
66
|
* Contexts
|
|
68
67
|
*/
|
|
69
|
-
export { LayoutGroupContext } from
|
|
70
|
-
export { MotionConfigContext } from
|
|
71
|
-
export { PresenceContext } from
|
|
72
|
-
export { createBatcher } from
|
|
73
|
-
export * from
|
|
74
|
-
export {
|
|
75
|
-
export
|
|
68
|
+
export { LayoutGroupContext } from './context/LayoutGroupContext.js';
|
|
69
|
+
export { MotionConfigContext } from './context/MotionConfigContext.js';
|
|
70
|
+
export { PresenceContext } from './context/PresenceContext.js';
|
|
71
|
+
export { createBatcher } from './components/AnimateSharedLayout/utils/batcher.js';
|
|
72
|
+
export * from './motion/features/types.js';
|
|
73
|
+
// export type { ForwardRefComponent, HTMLMotionProps } from "./render/html/types.js";
|
|
74
|
+
// export type { SVGAttributesAsMotionValues, SVGMotionProps } from "./render/svg/types.js";
|
|
75
|
+
export { FlatTree } from './render/utils/flat-tree.js';
|
|
76
|
+
export * from './types/geometry.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Motion.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/motion/Motion.svelte.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Motion.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/motion/Motion.svelte.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAiO9C,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AACD,KAAK,gCAAgC,CAAC,KAAK,EAAE,KAAK,IAAI,KAAK,GACvD,CAAC,KAAK,SAAS;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,GACzB,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACnC,GAAG,GACH;IAA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