@vkzstudio/muza-ui 1.0.8 → 1.0.10
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/components/Button/Button.js +19 -19
- package/dist/components/Button/ButtonLoader.d.ts +7 -0
- package/dist/components/Button/ButtonLoader.d.ts.map +1 -0
- package/dist/components/Button/ButtonLoader.js +40 -0
- package/dist/components/Button/buttonVariants.d.ts.map +1 -1
- package/dist/components/Button/buttonVariants.js +0 -1
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
- package/dist/components/Icons/CustomIcons.d.ts +1 -0
- package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
- package/dist/components/Icons/CustomIcons.js +39 -28
- package/dist/components/ReorderableTable/ReorderableTable.js +1 -1
- package/dist/components/SwipeButton/SwipeButton.js +1 -1
- package/dist/components/TextEditor/EditorToolbar.d.ts +18 -0
- package/dist/components/TextEditor/EditorToolbar.d.ts.map +1 -0
- package/dist/components/TextEditor/EditorToolbar.js +175 -0
- package/dist/components/TextEditor/LinkBubbleMenu.d.ts +52 -0
- package/dist/components/TextEditor/LinkBubbleMenu.d.ts.map +1 -0
- package/dist/components/TextEditor/LinkBubbleMenu.js +97 -0
- package/dist/components/TextEditor/TextEditor.d.ts +134 -0
- package/dist/components/TextEditor/TextEditor.d.ts.map +1 -0
- package/dist/components/TextEditor/TextEditor.js +240 -0
- package/dist/components/TextEditor/TextEditor.stories.d.ts +51 -0
- package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -0
- package/dist/components/TextEditor/ToolbarButton.d.ts +38 -0
- package/dist/components/TextEditor/ToolbarButton.d.ts.map +1 -0
- package/dist/components/TextEditor/ToolbarButton.js +68 -0
- package/dist/components/TextEditor/ToolbarSeparator.d.ts +22 -0
- package/dist/components/TextEditor/ToolbarSeparator.d.ts.map +1 -0
- package/dist/components/TextEditor/ToolbarSeparator.js +23 -0
- package/dist/components/TextEditor/index.d.ts +4 -0
- package/dist/components/TextEditor/index.d.ts.map +1 -0
- package/dist/components/TextEditor/useLinkEditor.d.ts +37 -0
- package/dist/components/TextEditor/useLinkEditor.d.ts.map +1 -0
- package/dist/components/TextEditor/useLinkEditor.js +32 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.js +140 -132
- package/dist/muza-ui.css +1 -1
- package/dist/node_modules/@popperjs/core/lib/createPopper.js +122 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js +18 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +23 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +37 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +32 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +7 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +10 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +17 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +9 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +13 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +6 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +10 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +35 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +18 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +10 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +21 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +12 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +11 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +9 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +20 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +7 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +8 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +7 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +16 -0
- package/dist/node_modules/@popperjs/core/lib/enums.js +31 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +47 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js +37 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +99 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +26 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js +74 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js +44 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js +31 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +19 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +54 -0
- package/dist/node_modules/@popperjs/core/lib/popper.js +27 -0
- package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +27 -0
- package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js +54 -0
- package/dist/node_modules/@popperjs/core/lib/utils/debounce.js +13 -0
- package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js +33 -0
- package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +8 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js +6 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +6 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +11 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +6 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +14 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +12 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js +6 -0
- package/dist/node_modules/@popperjs/core/lib/utils/math.js +6 -0
- package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js +15 -0
- package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +7 -0
- package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js +31 -0
- package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +11 -0
- package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js +9 -0
- package/dist/node_modules/@popperjs/core/lib/utils/within.js +12 -0
- package/dist/node_modules/@tiptap/core/dist/index.js +2857 -0
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +45 -0
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +76 -0
- package/dist/node_modules/@tiptap/extension-bubble-menu/dist/index.js +129 -0
- package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +55 -0
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +54 -0
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +136 -0
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +10 -0
- package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +21 -0
- package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +25 -0
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +56 -0
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +55 -0
- package/dist/node_modules/@tiptap/extension-history/dist/index.js +36 -0
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +59 -0
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +75 -0
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +272 -0
- package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +34 -0
- package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +73 -0
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +34 -0
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +53 -0
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +64 -0
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +9 -0
- package/dist/node_modules/@tiptap/react/dist/index.js +709 -0
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.js +4 -4
- package/dist/node_modules/framer-motion/dist/es/animation/animate/subject.js +24 -24
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/create.js +61 -56
- package/dist/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.js +8 -8
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +32 -30
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +22 -22
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +34 -32
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +34 -26
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +30 -25
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +64 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +2 -2
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +3 -3
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +100 -89
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +11 -7
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +4 -4
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +2 -2
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +106 -59
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +6 -6
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +5 -5
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +18 -6
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +27 -42
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +4 -4
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +10 -7
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +4 -4
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +49 -49
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -13
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +41 -40
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +13 -13
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +6 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +12 -12
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +3 -3
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +7 -7
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +5 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +26 -18
- package/dist/node_modules/linkifyjs/dist/linkify.js +707 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +33 -30
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +17 -17
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +20 -19
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/motion-value.js +13 -13
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-target.js +11 -11
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +24 -20
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/default-transitions.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +7 -3
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +1 -1
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/animation/mix-values.js +2 -2
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-apply.js +4 -4
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-calc.js +1 -1
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-remove.js +6 -6
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/DocumentProjectionNode.js +7 -4
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/create-projection-node.js +149 -149
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +60 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-border-radius.js +1 -1
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-box-shadow.js +2 -2
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/VisualElement.js +58 -50
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/dom/DOMVisualElement.js +7 -6
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/animation-state.js +31 -31
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-controlling-variants.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/motion-values.js +6 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/setters.js +4 -4
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/utils/delay.js +2 -2
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +8 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +62 -42
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +10 -9
- package/dist/node_modules/orderedmap/dist/index.js +103 -0
- package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +86 -0
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +204 -0
- package/dist/node_modules/prosemirror-history/dist/index.js +248 -0
- package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
- package/dist/node_modules/prosemirror-model/dist/index.js +2733 -0
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
- package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
- package/dist/node_modules/prosemirror-transform/dist/index.js +1520 -0
- package/dist/node_modules/prosemirror-view/dist/index.js +3794 -0
- package/dist/node_modules/rope-sequence/dist/index.js +100 -0
- package/dist/node_modules/tippy.js/dist/tippy.esm.js +813 -0
- package/dist/node_modules/w3c-keyname/index.js +93 -0
- package/dist/translations/locales/cs.d.ts.map +1 -1
- package/dist/translations/locales/cs.js +18 -0
- package/dist/translations/locales/en.d.ts.map +1 -1
- package/dist/translations/locales/en.js +18 -0
- package/dist/translations/locales/sk.d.ts.map +1 -1
- package/dist/translations/locales/sk.js +18 -0
- package/dist/translations/types.d.ts +22 -0
- package/dist/translations/types.d.ts.map +1 -1
- package/package.json +17 -1
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -58
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -7
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-variant.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/data-id.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/get-appear-id.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/calc-child-stagger.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/animation/animators/waapi → motion-dom/dist/es/animation}/utils/get-final-keyframe.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/is-transition-defined.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/events/add-dom-event.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/conversion.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/copy.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/models.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/utils.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/HTMLProjectionNode.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/state.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/transform.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/compare-by-depth.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/each-axis.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/flat-tree.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/has-transform.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/measure.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/motion/features → motion-dom/dist/es/render}/Feature.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/html/utils/render.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/object/ObjectVisualElement.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/store.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/camel-case-attrs.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/is-svg-tag.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/render.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/get-variant-context.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-animation-controls.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-keyframes-target.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-variant-label.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/reduced-motion/state.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-dynamic-variants.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-variants.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/shallow-compare.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/variant-props.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/value/use-will-change → motion-dom/dist/es/value/will-change}/add-will-change.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { time as
|
|
1
|
+
import { time as A } from "../frameloop/sync-time.js";
|
|
2
2
|
import { JSAnimation as y } from "./JSAnimation.js";
|
|
3
3
|
import { getFinalKeyframe as g } from "./keyframes/get-final.js";
|
|
4
4
|
import { KeyframeResolver as R, flushKeyframeResolvers as T } from "./keyframes/KeyframesResolver.js";
|
|
@@ -11,45 +11,48 @@ import { MotionGlobalConfig as k } from "../../../../motion-utils/dist/es/global
|
|
|
11
11
|
import { noop as x } from "../../../../motion-utils/dist/es/noop.js";
|
|
12
12
|
const M = 40;
|
|
13
13
|
class I extends D {
|
|
14
|
-
constructor({ autoplay: i = !0, delay:
|
|
15
|
-
var
|
|
14
|
+
constructor({ autoplay: i = !0, delay: a = 0, type: n = "keyframes", repeat: f = 0, repeatDelay: d = 0, repeatType: c = "loop", keyframes: p, name: r, motionValue: m, element: t, ...v }) {
|
|
15
|
+
var h;
|
|
16
16
|
super(), this.stop = () => {
|
|
17
|
-
var
|
|
18
|
-
this._animation && (this._animation.stop(), (
|
|
19
|
-
}, this.createdAt =
|
|
20
|
-
const
|
|
17
|
+
var e, s;
|
|
18
|
+
this._animation && (this._animation.stop(), (e = this.stopTimeline) == null || e.call(this)), (s = this.keyframeResolver) == null || s.cancel();
|
|
19
|
+
}, this.createdAt = A.now();
|
|
20
|
+
const o = {
|
|
21
21
|
autoplay: i,
|
|
22
|
-
delay:
|
|
23
|
-
type:
|
|
24
|
-
repeat:
|
|
25
|
-
repeatDelay:
|
|
26
|
-
repeatType:
|
|
27
|
-
name:
|
|
28
|
-
motionValue:
|
|
22
|
+
delay: a,
|
|
23
|
+
type: n,
|
|
24
|
+
repeat: f,
|
|
25
|
+
repeatDelay: d,
|
|
26
|
+
repeatType: c,
|
|
27
|
+
name: r,
|
|
28
|
+
motionValue: m,
|
|
29
29
|
element: t,
|
|
30
|
-
...
|
|
31
|
-
},
|
|
32
|
-
this.keyframeResolver = new
|
|
30
|
+
...v
|
|
31
|
+
}, u = (t == null ? void 0 : t.KeyframeResolver) || R;
|
|
32
|
+
this.keyframeResolver = new u(p, (e, s, l) => this.onKeyframesResolved(e, s, o, !l), r, m, t), (h = this.keyframeResolver) == null || h.scheduleResolve();
|
|
33
33
|
}
|
|
34
|
-
onKeyframesResolved(i,
|
|
34
|
+
onKeyframesResolved(i, a, n, f) {
|
|
35
|
+
var s, l;
|
|
35
36
|
this.keyframeResolver = void 0;
|
|
36
|
-
const { name:
|
|
37
|
-
this.resolvedAt =
|
|
38
|
-
const
|
|
39
|
-
startTime:
|
|
40
|
-
finalKeyframe:
|
|
41
|
-
...e,
|
|
42
|
-
keyframes: i
|
|
43
|
-
}, o = !r && E(n) ? new _({
|
|
37
|
+
const { name: d, type: c, velocity: p, delay: r, isHandoff: m, onUpdate: t } = n;
|
|
38
|
+
this.resolvedAt = A.now(), w(i, d, c, p) || ((k.instantAnimations || !r) && (t == null || t(g(i, n, a))), i[0] = i[i.length - 1], K(n), n.repeat = 0);
|
|
39
|
+
const o = {
|
|
40
|
+
startTime: f ? this.resolvedAt ? this.resolvedAt - this.createdAt > M ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
|
|
41
|
+
finalKeyframe: a,
|
|
44
42
|
...n,
|
|
45
|
-
|
|
46
|
-
}) : new
|
|
47
|
-
|
|
43
|
+
keyframes: i
|
|
44
|
+
}, u = !m && E(o), h = (l = (s = o.motionValue) == null ? void 0 : s.owner) == null ? void 0 : l.current, e = u ? new _({
|
|
45
|
+
...o,
|
|
46
|
+
element: h
|
|
47
|
+
}) : new y(o);
|
|
48
|
+
e.finished.then(() => {
|
|
49
|
+
this.notifyFinished();
|
|
50
|
+
}).catch(x), this.pendingTimeline && (this.stopTimeline = e.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = e;
|
|
48
51
|
}
|
|
49
52
|
get finished() {
|
|
50
53
|
return this._animation ? this.animation.finished : this._finished;
|
|
51
54
|
}
|
|
52
|
-
then(i,
|
|
55
|
+
then(i, a) {
|
|
53
56
|
return this.finished.finally(i).then(() => {
|
|
54
57
|
});
|
|
55
58
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { setStyle as
|
|
2
|
-
import { supportsScrollTimeline as
|
|
1
|
+
import { setStyle as u } from "../render/dom/style-set.js";
|
|
2
|
+
import { supportsScrollTimeline as p } from "../utils/supports/scroll-timeline.js";
|
|
3
3
|
import { getFinalKeyframe as f } from "./keyframes/get-final.js";
|
|
4
4
|
import { WithPromise as d } from "./utils/WithPromise.js";
|
|
5
5
|
import { startWaapiAnimation as c } from "./waapi/start-waapi-animation.js";
|
|
6
|
-
import { applyGeneratorOptions as
|
|
7
|
-
import { invariant as
|
|
8
|
-
import { millisecondsToSeconds as a, secondsToMilliseconds as
|
|
9
|
-
import { noop as
|
|
6
|
+
import { applyGeneratorOptions as T } from "./waapi/utils/apply-generator.js";
|
|
7
|
+
import { invariant as y } from "../../../../motion-utils/dist/es/errors.js";
|
|
8
|
+
import { millisecondsToSeconds as a, secondsToMilliseconds as S } from "../../../../motion-utils/dist/es/time-conversion.js";
|
|
9
|
+
import { noop as g } from "../../../../motion-utils/dist/es/noop.js";
|
|
10
10
|
class x extends d {
|
|
11
11
|
constructor(i) {
|
|
12
|
-
if (super(), this.finishedTime = null, this.isStopped = !1, !i)
|
|
12
|
+
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !i)
|
|
13
13
|
return;
|
|
14
|
-
const { element: t, name: e, keyframes: o, pseudoElement: n, allowFlatten:
|
|
15
|
-
this.isPseudoElement = !!n, this.allowFlatten =
|
|
16
|
-
const m =
|
|
14
|
+
const { element: t, name: e, keyframes: o, pseudoElement: n, allowFlatten: l = !1, finalKeyframe: h, onComplete: s } = i;
|
|
15
|
+
this.isPseudoElement = !!n, this.allowFlatten = l, this.options = i, y(typeof i.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
|
|
16
|
+
const m = T(i);
|
|
17
17
|
this.animation = c(t, e, o, m, n), m.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
18
18
|
if (this.finishedTime = this.time, !n) {
|
|
19
|
-
const r = f(o, this.options,
|
|
20
|
-
this.updateMotionValue ? this.updateMotionValue(r) :
|
|
19
|
+
const r = f(o, this.options, h, this.speed);
|
|
20
|
+
this.updateMotionValue ? this.updateMotionValue(r) : u(t, e, r), this.animation.cancel();
|
|
21
21
|
}
|
|
22
22
|
s == null || s(), this.notifyFinished();
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
play() {
|
|
26
|
-
this.isStopped || (this.animation.play(), this.state === "finished" && this.updateFinished());
|
|
26
|
+
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
|
|
27
27
|
}
|
|
28
28
|
pause() {
|
|
29
29
|
this.animation.pause();
|
|
@@ -74,7 +74,7 @@ class x extends d {
|
|
|
74
74
|
return a(Number(this.animation.currentTime) || 0);
|
|
75
75
|
}
|
|
76
76
|
set time(i) {
|
|
77
|
-
this.finishedTime = null, this.animation.currentTime =
|
|
77
|
+
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = S(i);
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
80
|
* The playback speed of the animation.
|
|
@@ -90,17 +90,17 @@ class x extends d {
|
|
|
90
90
|
return this.finishedTime !== null ? "finished" : this.animation.playState;
|
|
91
91
|
}
|
|
92
92
|
get startTime() {
|
|
93
|
-
return Number(this.animation.startTime);
|
|
93
|
+
return this.manualStartTime ?? Number(this.animation.startTime);
|
|
94
94
|
}
|
|
95
95
|
set startTime(i) {
|
|
96
|
-
this.animation.startTime = i;
|
|
96
|
+
this.manualStartTime = this.animation.startTime = i;
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* Attaches a timeline to the animation, for instance the `ScrollTimeline`.
|
|
100
100
|
*/
|
|
101
101
|
attachTimeline({ timeline: i, observe: t }) {
|
|
102
102
|
var e;
|
|
103
|
-
return this.allowFlatten && ((e = this.animation.effect) == null || e.updateTiming({ easing: "linear" })), this.animation.onfinish = null, i &&
|
|
103
|
+
return this.allowFlatten && ((e = this.animation.effect) == null || e.updateTiming({ easing: "linear" })), this.animation.onfinish = null, i && p() ? (this.animation.timeline = i, g) : t(this);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
export {
|
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { time as r } from "../frameloop/sync-time.js";
|
|
2
|
+
import { JSAnimation as s } from "./JSAnimation.js";
|
|
3
|
+
import { NativeAnimation as p } from "./NativeAnimation.js";
|
|
4
|
+
import { replaceTransitionType as l } from "./utils/replace-transition-type.js";
|
|
5
|
+
import { replaceStringEasing as c } from "./waapi/utils/unsupported-easing.js";
|
|
6
|
+
import { clamp as f } from "../../../../motion-utils/dist/es/clamp.js";
|
|
7
|
+
const m = 10;
|
|
8
|
+
class g extends p {
|
|
9
|
+
constructor(t) {
|
|
10
|
+
c(t), l(t), super(t), t.startTime !== void 0 && (this.startTime = t.startTime), this.options = t;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* WAAPI doesn't natively have any interruption capabilities.
|
|
13
14
|
*
|
|
14
|
-
* Rather than read
|
|
15
|
+
* Rather than read committed styles back out of the DOM, we can
|
|
15
16
|
* create a renderless JS animation and sample it twice to calculate
|
|
16
17
|
* its current value, "previous" value, and therefore allow
|
|
17
18
|
* Motion to calculate velocity for any subsequent animation.
|
|
18
19
|
*/
|
|
19
|
-
updateMotionValue(
|
|
20
|
-
const { motionValue:
|
|
21
|
-
if (!
|
|
20
|
+
updateMotionValue(t) {
|
|
21
|
+
const { motionValue: e, onUpdate: d, onComplete: h, element: T, ...n } = this.options;
|
|
22
|
+
if (!e)
|
|
22
23
|
return;
|
|
23
|
-
if (
|
|
24
|
-
|
|
24
|
+
if (t !== void 0) {
|
|
25
|
+
e.set(t);
|
|
25
26
|
return;
|
|
26
27
|
}
|
|
27
|
-
const i = new
|
|
28
|
+
const i = new s({
|
|
28
29
|
...n,
|
|
29
30
|
autoplay: !1
|
|
30
|
-
}),
|
|
31
|
-
|
|
31
|
+
}), a = Math.max(m, r.now() - this.startTime), o = f(0, m, a - m);
|
|
32
|
+
e.setWithVelocity(i.sample(Math.max(0, a - o)).value, i.sample(a).value, o), i.stop();
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
+
g as NativeAnimationExtended
|
|
36
37
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { animateMotionValue as m } from "../interfaces/motion-value.js";
|
|
2
|
+
import { motionValue as a } from "../../value/index.js";
|
|
3
|
+
import { isMotionValue as r } from "../../value/utils/is-motion-value.js";
|
|
4
|
+
function f(o, i, n) {
|
|
5
|
+
const t = r(o) ? o : a(o);
|
|
6
|
+
return t.start(m("", t, i, n)), t.animation;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
f as animateSingleValue
|
|
10
|
+
};
|
package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/motion-value.js
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { AsyncMotionValueAnimation as A } from "../AsyncMotionValueAnimation.js";
|
|
2
|
+
import { JSAnimation as k } from "../JSAnimation.js";
|
|
3
|
+
import { getValueTransition as D } from "../utils/get-value-transition.js";
|
|
4
|
+
import { makeAnimationInstant as p } from "../utils/make-animation-instant.js";
|
|
5
|
+
import { getDefaultTransition as g } from "../utils/default-transitions.js";
|
|
6
|
+
import { getFinalKeyframe as C } from "../utils/get-final-keyframe.js";
|
|
7
|
+
import { isTransitionDefined as T } from "../utils/is-transition-defined.js";
|
|
8
|
+
import { frame as V } from "../../frameloop/frame.js";
|
|
5
9
|
import { secondsToMilliseconds as f } from "../../../../../motion-utils/dist/es/time-conversion.js";
|
|
6
|
-
import { makeAnimationInstant as p } from "../../../../../motion-dom/dist/es/animation/utils/make-animation-instant.js";
|
|
7
10
|
import { MotionGlobalConfig as d } from "../../../../../motion-utils/dist/es/global-config.js";
|
|
8
|
-
import { frame as C } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
|
|
9
|
-
import { JSAnimation as T } from "../../../../../motion-dom/dist/es/animation/JSAnimation.js";
|
|
10
|
-
import { AsyncMotionValueAnimation as V } from "../../../../../motion-dom/dist/es/animation/AsyncMotionValueAnimation.js";
|
|
11
11
|
const x = (i, n, a, r = {}, y, s) => (u) => {
|
|
12
|
-
const o =
|
|
12
|
+
const o = D(r, i) || {}, c = o.delay || r.delay || 0;
|
|
13
13
|
let { elapsed: m = 0 } = r;
|
|
14
14
|
m = m - f(c);
|
|
15
15
|
const e = {
|
|
@@ -28,18 +28,18 @@ const x = (i, n, a, r = {}, y, s) => (u) => {
|
|
|
28
28
|
motionValue: n,
|
|
29
29
|
element: s ? void 0 : y
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
T(o) || Object.assign(e, g(i, e)), e.duration && (e.duration = f(e.duration)), e.repeatDelay && (e.repeatDelay = f(e.repeatDelay)), e.from !== void 0 && (e.keyframes[0] = e.from);
|
|
32
32
|
let l = !1;
|
|
33
33
|
if ((e.type === !1 || e.duration === 0 && !e.repeatDelay) && (p(e), e.delay === 0 && (l = !0)), (d.instantAnimations || d.skipAnimations) && (l = !0, p(e), e.delay = 0), e.allowFlatten = !o.type && !o.ease, l && !s && n.get() !== void 0) {
|
|
34
|
-
const t =
|
|
34
|
+
const t = C(e.keyframes, o);
|
|
35
35
|
if (t !== void 0) {
|
|
36
|
-
|
|
36
|
+
V.update(() => {
|
|
37
37
|
e.onUpdate(t), e.onComplete();
|
|
38
38
|
});
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
return o.isSync ? new
|
|
42
|
+
return o.isSync ? new k(e) : new A(e);
|
|
43
43
|
};
|
|
44
44
|
export {
|
|
45
45
|
x as animateMotionValue
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { getValueTransition as w } from "../utils/get-value-transition.js";
|
|
2
|
+
import { positionalKeys as y } from "../../render/utils/keys-position.js";
|
|
3
|
+
import { setTarget as M } from "../../render/utils/setters.js";
|
|
4
|
+
import { addValueToWillChange as S } from "../../value/will-change/add-will-change.js";
|
|
5
|
+
import { getOptimisedAppearId as H } from "../optimized-appear/get-appear-id.js";
|
|
6
|
+
import { animateMotionValue as B } from "./motion-value.js";
|
|
7
|
+
import { frame as V } from "../../frameloop/frame.js";
|
|
8
8
|
function I({ protectedKeys: t, needsAnimating: a }, n) {
|
|
9
9
|
const r = t.hasOwnProperty(n) && a[n] !== !0;
|
|
10
10
|
return a[n] = !1, r;
|
|
@@ -19,25 +19,25 @@ function R(t, a, { delay: n = 0, transitionOverride: r, type: c } = {}) {
|
|
|
19
19
|
continue;
|
|
20
20
|
const m = {
|
|
21
21
|
delay: n,
|
|
22
|
-
...
|
|
22
|
+
...w(u || {}, o)
|
|
23
23
|
}, l = i.get();
|
|
24
24
|
if (l !== void 0 && !i.isAnimating && !Array.isArray(e) && e === l && !m.velocity)
|
|
25
25
|
continue;
|
|
26
26
|
let g = !1;
|
|
27
27
|
if (window.MotionHandoffAnimation) {
|
|
28
|
-
const h =
|
|
28
|
+
const h = H(t);
|
|
29
29
|
if (h) {
|
|
30
30
|
const A = window.MotionHandoffAnimation(h, o, V);
|
|
31
31
|
A !== null && (m.startTime = A, g = !0);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
S(t, o), i.start(B(o, i, e, t.shouldReduceMotion && y.has(o) ? { type: !1 } : m, t, g));
|
|
35
35
|
const T = i.animation;
|
|
36
36
|
T && s.push(T);
|
|
37
37
|
}
|
|
38
38
|
return f && Promise.all(s).then(() => {
|
|
39
39
|
V.update(() => {
|
|
40
|
-
f &&
|
|
40
|
+
f && M(t, f);
|
|
41
41
|
});
|
|
42
42
|
}), s;
|
|
43
43
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { positionalKeys as
|
|
2
|
-
import { findDimensionValueType as
|
|
3
|
-
import { getVariableValue as
|
|
4
|
-
import { isCSSVariableToken as
|
|
5
|
-
import { KeyframeResolver as
|
|
6
|
-
import { isNone as
|
|
7
|
-
import { makeNoneKeyframesAnimatable as
|
|
8
|
-
import {
|
|
9
|
-
class
|
|
1
|
+
import { positionalKeys as c } from "../../render/utils/keys-position.js";
|
|
2
|
+
import { findDimensionValueType as h } from "../../value/types/dimensions.js";
|
|
3
|
+
import { getVariableValue as g } from "../utils/css-variables-conversion.js";
|
|
4
|
+
import { isCSSVariableToken as K, containsCSSVariable as p } from "../utils/is-css-variable.js";
|
|
5
|
+
import { KeyframeResolver as v } from "./KeyframesResolver.js";
|
|
6
|
+
import { isNone as V } from "./utils/is-none.js";
|
|
7
|
+
import { makeNoneKeyframesAnimatable as S } from "./utils/make-none-animatable.js";
|
|
8
|
+
import { positionalValues as m, isNumOrPxType as y } from "./utils/unit-conversion.js";
|
|
9
|
+
class M extends v {
|
|
10
10
|
constructor(e, n, r, t, o) {
|
|
11
11
|
super(e, n, r, t, o, !0);
|
|
12
12
|
}
|
|
@@ -17,16 +17,20 @@ class k extends g {
|
|
|
17
17
|
super.readKeyframes();
|
|
18
18
|
for (let s = 0; s < e.length; s++) {
|
|
19
19
|
let i = e[s];
|
|
20
|
-
if (typeof i == "string" && (i = i.trim(),
|
|
21
|
-
const
|
|
22
|
-
|
|
20
|
+
if (typeof i == "string" && (i = i.trim(), K(i))) {
|
|
21
|
+
const d = g(i, n.current);
|
|
22
|
+
d !== void 0 && (e[s] = d), s === e.length - 1 && (this.finalKeyframe = i);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
if (this.resolveNoneKeyframes(), !
|
|
25
|
+
if (this.resolveNoneKeyframes(), !c.has(r) || e.length !== 2)
|
|
26
26
|
return;
|
|
27
|
-
const [t, o] = e, a =
|
|
27
|
+
const [t, o] = e, a = h(t), f = h(o), l = p(t), u = p(o);
|
|
28
|
+
if (l !== u && m[r]) {
|
|
29
|
+
this.needsMeasurement = !0;
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
28
32
|
if (a !== f)
|
|
29
|
-
if (
|
|
33
|
+
if (y(a) && y(f))
|
|
30
34
|
for (let s = 0; s < e.length; s++) {
|
|
31
35
|
const i = e[s];
|
|
32
36
|
typeof i == "string" && (e[s] = parseFloat(i));
|
|
@@ -36,8 +40,8 @@ class k extends g {
|
|
|
36
40
|
resolveNoneKeyframes() {
|
|
37
41
|
const { unresolvedKeyframes: e, name: n } = this, r = [];
|
|
38
42
|
for (let t = 0; t < e.length; t++)
|
|
39
|
-
(e[t] === null ||
|
|
40
|
-
r.length &&
|
|
43
|
+
(e[t] === null || V(e[t])) && r.push(t);
|
|
44
|
+
r.length && S(e, r, n);
|
|
41
45
|
}
|
|
42
46
|
measureInitialState() {
|
|
43
47
|
const { element: e, unresolvedKeyframes: n, name: r } = this;
|
|
@@ -55,11 +59,11 @@ class k extends g {
|
|
|
55
59
|
const t = e.getValue(n);
|
|
56
60
|
t && t.jump(this.measuredOrigin, !1);
|
|
57
61
|
const o = r.length - 1, a = r[o];
|
|
58
|
-
r[o] = m[n](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), (f = this.removedTransforms) != null && f.length && this.removedTransforms.forEach(([
|
|
59
|
-
e.getValue(
|
|
62
|
+
r[o] = m[n](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), (f = this.removedTransforms) != null && f.length && this.removedTransforms.forEach(([l, u]) => {
|
|
63
|
+
e.getValue(l).set(u);
|
|
60
64
|
}), this.resolveNoneKeyframes();
|
|
61
65
|
}
|
|
62
66
|
}
|
|
63
67
|
export {
|
|
64
|
-
|
|
68
|
+
M as DOMKeyframesResolver
|
|
65
69
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
const r = (
|
|
1
|
+
const r = (t) => (s) => typeof s == "string" && s.startsWith(t), e = /* @__PURE__ */ r("--"), i = /* @__PURE__ */ r("var(--"), a = (t) => i(t) ? n.test(t.split("/*")[0].trim()) : !1, n = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
2
|
+
function o(t) {
|
|
3
|
+
return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
|
|
4
|
+
}
|
|
2
5
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
6
|
+
o as containsCSSVariable,
|
|
7
|
+
e as isCSSVariableName,
|
|
8
|
+
a as isCSSVariableToken
|
|
5
9
|
};
|
package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/animation/mix-values.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mixNumber as s } from "
|
|
2
|
-
import { px as R, percent as u } from "
|
|
1
|
+
import { mixNumber as s } from "../../utils/mix/number.js";
|
|
2
|
+
import { px as R, percent as u } from "../../value/types/numbers/units.js";
|
|
3
3
|
import { progress as h } from "../../../../../motion-utils/dist/es/progress.js";
|
|
4
4
|
import { noop as B } from "../../../../../motion-utils/dist/es/noop.js";
|
|
5
5
|
import { circOut as L } from "../../../../../motion-utils/dist/es/easing/circ.js";
|
package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-apply.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { mixNumber as x } from "../../utils/mix/number.js";
|
|
2
|
+
import { hasTransform as E } from "../utils/has-transform.js";
|
|
3
3
|
function y(t, n, o) {
|
|
4
4
|
const i = t - o, s = n * i;
|
|
5
5
|
return o + s;
|
|
@@ -26,7 +26,7 @@ function D(t, n, o, i = !1) {
|
|
|
26
26
|
u && u.props.style && u.props.style.display === "contents" || (i && l.options.layoutScroll && l.scroll && l !== l.root && A(t, {
|
|
27
27
|
x: -l.scroll.offset.x,
|
|
28
28
|
y: -l.scroll.offset.y
|
|
29
|
-
}), f && (n.x *= f.x.scale, n.y *= f.y.scale, _(t, f)), i &&
|
|
29
|
+
}), f && (n.x *= f.x.scale, n.y *= f.y.scale, _(t, f)), i && E(l.latestValues) && A(t, l.latestValues));
|
|
30
30
|
}
|
|
31
31
|
n.x < a && n.x > m && (n.x = 1), n.y < a && n.y > m && (n.y = 1);
|
|
32
32
|
}
|
|
@@ -34,7 +34,7 @@ function N(t, n) {
|
|
|
34
34
|
t.min = t.min + n, t.max = t.max + n;
|
|
35
35
|
}
|
|
36
36
|
function r(t, n, o, i, s = 0.5) {
|
|
37
|
-
const l =
|
|
37
|
+
const l = x(t.min, t.max, s);
|
|
38
38
|
p(t, n, o, l, i);
|
|
39
39
|
}
|
|
40
40
|
function A(t, n) {
|
package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-remove.js
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { percent as p } from "
|
|
3
|
-
import {
|
|
1
|
+
import { mixNumber as v } from "../../utils/mix/number.js";
|
|
2
|
+
import { percent as p } from "../../value/types/numbers/units.js";
|
|
3
|
+
import { scalePoint as r } from "./delta-apply.js";
|
|
4
4
|
function c(e, m, f, n, d) {
|
|
5
|
-
return e -= m, e =
|
|
5
|
+
return e -= m, e = r(e, 1 / f, n), d !== void 0 && (e = r(e, 1 / d, n)), e;
|
|
6
6
|
}
|
|
7
7
|
function D(e, m = 0, f = 1, n = 0.5, d, u = e, y = e) {
|
|
8
|
-
if (p.test(m) && (m = parseFloat(m), m =
|
|
8
|
+
if (p.test(m) && (m = parseFloat(m), m = v(y.min, y.max, m / 100) - y.min), typeof m != "number")
|
|
9
9
|
return;
|
|
10
|
-
let i =
|
|
10
|
+
let i = v(u.min, u.max, n);
|
|
11
11
|
e === u && (i -= m), e.min = c(e.min, m, f, i, d), e.max = c(e.max, m, f, i, d);
|
|
12
12
|
}
|
|
13
13
|
function P(e, m, [f, n, d], u, y) {
|
|
@@ -2,10 +2,13 @@ import { addDomEvent as t } from "../../events/add-dom-event.js";
|
|
|
2
2
|
import { createProjectionNode as c } from "./create-projection-node.js";
|
|
3
3
|
const l = c({
|
|
4
4
|
attachResizeListener: (o, e) => t(o, "resize", e),
|
|
5
|
-
measureScroll: () =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
measureScroll: () => {
|
|
6
|
+
var o, e;
|
|
7
|
+
return {
|
|
8
|
+
x: document.documentElement.scrollLeft || ((o = document.body) == null ? void 0 : o.scrollLeft) || 0,
|
|
9
|
+
y: document.documentElement.scrollTop || ((e = document.body) == null ? void 0 : e.scrollTop) || 0
|
|
10
|
+
};
|
|
11
|
+
},
|
|
9
12
|
checkIsScrollRoot: () => !0
|
|
10
13
|
});
|
|
11
14
|
export {
|