@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.
Files changed (275) hide show
  1. package/dist/components/Button/Button.js +19 -19
  2. package/dist/components/Button/ButtonLoader.d.ts +7 -0
  3. package/dist/components/Button/ButtonLoader.d.ts.map +1 -0
  4. package/dist/components/Button/ButtonLoader.js +40 -0
  5. package/dist/components/Button/buttonVariants.d.ts.map +1 -1
  6. package/dist/components/Button/buttonVariants.js +0 -1
  7. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
  8. package/dist/components/Icons/CustomIcons.d.ts +1 -0
  9. package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
  10. package/dist/components/Icons/CustomIcons.js +39 -28
  11. package/dist/components/ReorderableTable/ReorderableTable.js +1 -1
  12. package/dist/components/SwipeButton/SwipeButton.js +1 -1
  13. package/dist/components/TextEditor/EditorToolbar.d.ts +18 -0
  14. package/dist/components/TextEditor/EditorToolbar.d.ts.map +1 -0
  15. package/dist/components/TextEditor/EditorToolbar.js +175 -0
  16. package/dist/components/TextEditor/LinkBubbleMenu.d.ts +52 -0
  17. package/dist/components/TextEditor/LinkBubbleMenu.d.ts.map +1 -0
  18. package/dist/components/TextEditor/LinkBubbleMenu.js +97 -0
  19. package/dist/components/TextEditor/TextEditor.d.ts +134 -0
  20. package/dist/components/TextEditor/TextEditor.d.ts.map +1 -0
  21. package/dist/components/TextEditor/TextEditor.js +240 -0
  22. package/dist/components/TextEditor/TextEditor.stories.d.ts +51 -0
  23. package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -0
  24. package/dist/components/TextEditor/ToolbarButton.d.ts +38 -0
  25. package/dist/components/TextEditor/ToolbarButton.d.ts.map +1 -0
  26. package/dist/components/TextEditor/ToolbarButton.js +68 -0
  27. package/dist/components/TextEditor/ToolbarSeparator.d.ts +22 -0
  28. package/dist/components/TextEditor/ToolbarSeparator.d.ts.map +1 -0
  29. package/dist/components/TextEditor/ToolbarSeparator.js +23 -0
  30. package/dist/components/TextEditor/index.d.ts +4 -0
  31. package/dist/components/TextEditor/index.d.ts.map +1 -0
  32. package/dist/components/TextEditor/useLinkEditor.d.ts +37 -0
  33. package/dist/components/TextEditor/useLinkEditor.d.ts.map +1 -0
  34. package/dist/components/TextEditor/useLinkEditor.js +32 -0
  35. package/dist/components/index.d.ts +1 -0
  36. package/dist/components/index.d.ts.map +1 -1
  37. package/dist/index.js +140 -132
  38. package/dist/muza-ui.css +1 -1
  39. package/dist/node_modules/@popperjs/core/lib/createPopper.js +122 -0
  40. package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js +18 -0
  41. package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +23 -0
  42. package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +37 -0
  43. package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +32 -0
  44. package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +7 -0
  45. package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +10 -0
  46. package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +17 -0
  47. package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +9 -0
  48. package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +13 -0
  49. package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +6 -0
  50. package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +10 -0
  51. package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +35 -0
  52. package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +18 -0
  53. package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +10 -0
  54. package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +21 -0
  55. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +12 -0
  56. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +11 -0
  57. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +9 -0
  58. package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +20 -0
  59. package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +7 -0
  60. package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +8 -0
  61. package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +7 -0
  62. package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +16 -0
  63. package/dist/node_modules/@popperjs/core/lib/enums.js +31 -0
  64. package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +47 -0
  65. package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js +37 -0
  66. package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +99 -0
  67. package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +26 -0
  68. package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js +74 -0
  69. package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js +44 -0
  70. package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js +31 -0
  71. package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +19 -0
  72. package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +54 -0
  73. package/dist/node_modules/@popperjs/core/lib/popper.js +27 -0
  74. package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +27 -0
  75. package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js +54 -0
  76. package/dist/node_modules/@popperjs/core/lib/utils/debounce.js +13 -0
  77. package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js +33 -0
  78. package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +8 -0
  79. package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js +6 -0
  80. package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +6 -0
  81. package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +11 -0
  82. package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +6 -0
  83. package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +14 -0
  84. package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +12 -0
  85. package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js +6 -0
  86. package/dist/node_modules/@popperjs/core/lib/utils/math.js +6 -0
  87. package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js +15 -0
  88. package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +7 -0
  89. package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js +31 -0
  90. package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +11 -0
  91. package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js +9 -0
  92. package/dist/node_modules/@popperjs/core/lib/utils/within.js +12 -0
  93. package/dist/node_modules/@tiptap/core/dist/index.js +2857 -0
  94. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +45 -0
  95. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +76 -0
  96. package/dist/node_modules/@tiptap/extension-bubble-menu/dist/index.js +129 -0
  97. package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +55 -0
  98. package/dist/node_modules/@tiptap/extension-code/dist/index.js +54 -0
  99. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +136 -0
  100. package/dist/node_modules/@tiptap/extension-document/dist/index.js +10 -0
  101. package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +21 -0
  102. package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +25 -0
  103. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +56 -0
  104. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +55 -0
  105. package/dist/node_modules/@tiptap/extension-history/dist/index.js +36 -0
  106. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +59 -0
  107. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +75 -0
  108. package/dist/node_modules/@tiptap/extension-link/dist/index.js +272 -0
  109. package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +34 -0
  110. package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +73 -0
  111. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +34 -0
  112. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +53 -0
  113. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +64 -0
  114. package/dist/node_modules/@tiptap/extension-text/dist/index.js +9 -0
  115. package/dist/node_modules/@tiptap/react/dist/index.js +709 -0
  116. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +30 -0
  117. package/dist/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.js +4 -4
  118. package/dist/node_modules/framer-motion/dist/es/animation/animate/subject.js +24 -24
  119. package/dist/node_modules/framer-motion/dist/es/animation/sequence/create.js +61 -56
  120. package/dist/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.js +8 -8
  121. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +32 -30
  122. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +22 -22
  123. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +34 -32
  124. package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +34 -26
  125. package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +30 -25
  126. package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +64 -0
  127. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +2 -2
  128. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +3 -3
  129. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +100 -89
  130. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +11 -7
  131. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +4 -4
  132. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +2 -2
  133. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +1 -1
  134. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +106 -59
  135. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +6 -6
  136. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +1 -1
  137. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +1 -1
  138. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +5 -5
  139. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +18 -6
  140. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +1 -1
  141. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +27 -42
  142. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +4 -4
  143. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +10 -7
  144. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +4 -4
  145. package/dist/node_modules/framer-motion/dist/es/motion/index.js +49 -49
  146. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -13
  147. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +41 -40
  148. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +13 -13
  149. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +6 -6
  150. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +12 -12
  151. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +3 -3
  152. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +7 -7
  153. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +5 -5
  154. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +1 -1
  155. package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +26 -18
  156. package/dist/node_modules/linkifyjs/dist/linkify.js +707 -0
  157. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +33 -30
  158. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +17 -17
  159. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +20 -19
  160. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
  161. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/motion-value.js +13 -13
  162. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-target.js +11 -11
  163. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +24 -20
  164. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/default-transitions.js +1 -1
  165. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +7 -3
  166. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +1 -1
  167. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/animation/mix-values.js +2 -2
  168. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-apply.js +4 -4
  169. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-calc.js +1 -1
  170. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-remove.js +6 -6
  171. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/DocumentProjectionNode.js +7 -4
  172. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/create-projection-node.js +149 -149
  173. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +60 -0
  174. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-border-radius.js +1 -1
  175. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-box-shadow.js +2 -2
  176. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
  177. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/VisualElement.js +58 -50
  178. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/dom/DOMVisualElement.js +7 -6
  179. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
  180. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +38 -0
  181. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
  182. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +37 -0
  183. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +14 -0
  184. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
  185. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
  186. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
  187. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
  188. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/animation-state.js +31 -31
  189. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-controlling-variants.js +1 -1
  190. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
  191. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/motion-values.js +6 -6
  192. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
  193. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/setters.js +4 -4
  194. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/utils/delay.js +2 -2
  195. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +8 -6
  196. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +62 -42
  197. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
  198. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
  199. package/dist/node_modules/motion-utils/dist/es/errors.js +10 -9
  200. package/dist/node_modules/orderedmap/dist/index.js +103 -0
  201. package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
  202. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +86 -0
  203. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +204 -0
  204. package/dist/node_modules/prosemirror-history/dist/index.js +248 -0
  205. package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
  206. package/dist/node_modules/prosemirror-model/dist/index.js +2733 -0
  207. package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
  208. package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
  209. package/dist/node_modules/prosemirror-transform/dist/index.js +1520 -0
  210. package/dist/node_modules/prosemirror-view/dist/index.js +3794 -0
  211. package/dist/node_modules/rope-sequence/dist/index.js +100 -0
  212. package/dist/node_modules/tippy.js/dist/tippy.esm.js +813 -0
  213. package/dist/node_modules/w3c-keyname/index.js +93 -0
  214. package/dist/translations/locales/cs.d.ts.map +1 -1
  215. package/dist/translations/locales/cs.js +18 -0
  216. package/dist/translations/locales/en.d.ts.map +1 -1
  217. package/dist/translations/locales/en.js +18 -0
  218. package/dist/translations/locales/sk.d.ts.map +1 -1
  219. package/dist/translations/locales/sk.js +18 -0
  220. package/dist/translations/types.d.ts +22 -0
  221. package/dist/translations/types.d.ts.map +1 -1
  222. package/package.json +17 -1
  223. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -10
  224. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -8
  225. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -58
  226. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -10
  227. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
  228. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -38
  229. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -29
  230. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -31
  231. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -12
  232. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -40
  233. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -23
  234. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -18
  235. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
  236. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -13
  237. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
  238. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -7
  239. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-variant.js +0 -0
  240. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element.js +0 -0
  241. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/data-id.js +0 -0
  242. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/get-appear-id.js +0 -0
  243. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/calc-child-stagger.js +0 -0
  244. /package/dist/node_modules/{framer-motion/dist/es/animation/animators/waapi → motion-dom/dist/es/animation}/utils/get-final-keyframe.js +0 -0
  245. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/is-transition-defined.js +0 -0
  246. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/events/add-dom-event.js +0 -0
  247. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/conversion.js +0 -0
  248. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/copy.js +0 -0
  249. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/models.js +0 -0
  250. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/utils.js +0 -0
  251. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/HTMLProjectionNode.js +0 -0
  252. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/state.js +0 -0
  253. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/transform.js +0 -0
  254. /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/compare-by-depth.js +0 -0
  255. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/each-axis.js +0 -0
  256. /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/flat-tree.js +0 -0
  257. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/has-transform.js +0 -0
  258. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/measure.js +0 -0
  259. /package/dist/node_modules/{framer-motion/dist/es/motion/features → motion-dom/dist/es/render}/Feature.js +0 -0
  260. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/html/utils/render.js +0 -0
  261. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/object/ObjectVisualElement.js +0 -0
  262. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/store.js +0 -0
  263. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/camel-case-attrs.js +0 -0
  264. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/is-svg-tag.js +0 -0
  265. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/render.js +0 -0
  266. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/get-variant-context.js +0 -0
  267. /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-animation-controls.js +0 -0
  268. /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-keyframes-target.js +0 -0
  269. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-variant-label.js +0 -0
  270. /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/reduced-motion/state.js +0 -0
  271. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-dynamic-variants.js +0 -0
  272. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-variants.js +0 -0
  273. /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/shallow-compare.js +0 -0
  274. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/variant-props.js +0 -0
  275. /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 v } from "../frameloop/sync-time.js";
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: s = 0, type: e = "keyframes", repeat: l = 0, repeatDelay: f = 0, repeatType: d = "loop", keyframes: p, name: a, motionValue: r, element: t, ...c }) {
15
- var u;
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 m, h;
18
- this._animation && (this._animation.stop(), (m = this.stopTimeline) == null || m.call(this)), (h = this.keyframeResolver) == null || h.cancel();
19
- }, this.createdAt = v.now();
20
- const n = {
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: s,
23
- type: e,
24
- repeat: l,
25
- repeatDelay: f,
26
- repeatType: d,
27
- name: a,
28
- motionValue: r,
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
- ...c
31
- }, o = (t == null ? void 0 : t.KeyframeResolver) || R;
32
- this.keyframeResolver = new o(p, (m, h, A) => this.onKeyframesResolved(m, h, n, !A), a, r, t), (u = this.keyframeResolver) == null || u.scheduleResolve();
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, s, e, l) {
34
+ onKeyframesResolved(i, a, n, f) {
35
+ var s, l;
35
36
  this.keyframeResolver = void 0;
36
- const { name: f, type: d, velocity: p, delay: a, isHandoff: r, onUpdate: t } = e;
37
- this.resolvedAt = v.now(), w(i, f, d, p) || ((k.instantAnimations || !a) && (t == null || t(g(i, e, s))), i[0] = i[i.length - 1], K(e), e.repeat = 0);
38
- const n = {
39
- startTime: l ? this.resolvedAt ? this.resolvedAt - this.createdAt > M ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
40
- finalKeyframe: s,
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
- element: n.motionValue.owner.current
46
- }) : new y(n);
47
- o.finished.then(() => this.notifyFinished()).catch(x), this.pendingTimeline && (this.stopTimeline = o.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = o;
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, s) {
55
+ then(i, a) {
53
56
  return this.finished.finally(i).then(() => {
54
57
  });
55
58
  }
@@ -1,29 +1,29 @@
1
- import { setStyle as p } from "../render/dom/style-set.js";
2
- import { supportsScrollTimeline as u } from "../utils/supports/scroll-timeline.js";
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 y } from "./waapi/utils/apply-generator.js";
7
- import { invariant as T } from "../../../../motion-utils/dist/es/errors.js";
8
- import { millisecondsToSeconds as a, secondsToMilliseconds as g } from "../../../../motion-utils/dist/es/time-conversion.js";
9
- import { noop as S } from "../../../../motion-utils/dist/es/noop.js";
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: h = !1, finalKeyframe: l, onComplete: s } = i;
15
- this.isPseudoElement = !!n, this.allowFlatten = h, this.options = i, T(typeof i.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
16
- const m = y(i);
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, l, this.speed);
20
- this.updateMotionValue ? this.updateMotionValue(r) : p(t, e, r), this.animation.cancel();
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 = g(i);
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 && u() ? (this.animation.timeline = i, S) : t(this);
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 { JSAnimation as a } from "./JSAnimation.js";
2
- import { NativeAnimation as m } from "./NativeAnimation.js";
3
- import { replaceTransitionType as r } from "./utils/replace-transition-type.js";
4
- import { replaceStringEasing as l } from "./waapi/utils/unsupported-easing.js";
5
- import { secondsToMilliseconds as p } from "../../../../motion-utils/dist/es/time-conversion.js";
6
- const s = 10;
7
- class y extends m {
8
- constructor(e) {
9
- l(e), r(e), super(e), e.startTime && (this.startTime = e.startTime), this.options = e;
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 commited styles back out of the DOM, we can
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(e) {
20
- const { motionValue: t, onUpdate: f, onComplete: d, element: u, ...n } = this.options;
21
- if (!t)
20
+ updateMotionValue(t) {
21
+ const { motionValue: e, onUpdate: d, onComplete: h, element: T, ...n } = this.options;
22
+ if (!e)
22
23
  return;
23
- if (e !== void 0) {
24
- t.set(e);
24
+ if (t !== void 0) {
25
+ e.set(t);
25
26
  return;
26
27
  }
27
- const i = new a({
28
+ const i = new s({
28
29
  ...n,
29
30
  autoplay: !1
30
- }), o = p(this.finishedTime ?? this.time);
31
- t.setWithVelocity(i.sample(o - s).value, i.sample(o).value, s), i.stop();
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
- y as NativeAnimationExtended
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
+ };
@@ -1,15 +1,15 @@
1
- import { getFinalKeyframe as A } from "../animators/waapi/utils/get-final-keyframe.js";
2
- import { getDefaultTransition as k } from "../utils/default-transitions.js";
3
- import { isTransitionDefined as D } from "../utils/is-transition-defined.js";
4
- import { getValueTransition as g } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
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 = g(r, i) || {}, c = o.delay || r.delay || 0;
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
- D(o) || Object.assign(e, k(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);
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 = A(e.keyframes, o);
34
+ const t = C(e.keyframes, o);
35
35
  if (t !== void 0) {
36
- C.update(() => {
36
+ V.update(() => {
37
37
  e.onUpdate(t), e.onComplete();
38
38
  });
39
39
  return;
40
40
  }
41
41
  }
42
- return o.isSync ? new T(e) : new V(e);
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 { setTarget as w } from "../../render/utils/setters.js";
2
- import { addValueToWillChange as y } from "../../value/use-will-change/add-will-change.js";
3
- import { getOptimisedAppearId as M } from "../optimized-appear/get-appear-id.js";
4
- import { animateMotionValue as S } from "./motion-value.js";
5
- import { getValueTransition as H } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
6
- import { frame as V } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
7
- import { positionalKeys as B } from "../../../../../motion-dom/dist/es/render/utils/keys-position.js";
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
- ...H(u || {}, o)
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 = M(t);
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
- y(t, o), i.start(S(o, i, e, t.shouldReduceMotion && B.has(o) ? { type: !1 } : m, t, g));
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 && w(t, f);
40
+ f && M(t, f);
41
41
  });
42
42
  }), s;
43
43
  }
@@ -1,12 +1,12 @@
1
- import { positionalKeys as h } from "../../render/utils/keys-position.js";
2
- import { findDimensionValueType as u } from "../../value/types/dimensions.js";
3
- import { getVariableValue as p } from "../utils/css-variables-conversion.js";
4
- import { isCSSVariableToken as y } from "../utils/is-css-variable.js";
5
- import { KeyframeResolver as g } from "./KeyframesResolver.js";
6
- import { isNone as c } from "./utils/is-none.js";
7
- import { makeNoneKeyframesAnimatable as K } from "./utils/make-none-animatable.js";
8
- import { isNumOrPxType as d, positionalValues as m } from "./utils/unit-conversion.js";
9
- class k extends g {
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(), y(i))) {
21
- const l = p(i, n.current);
22
- l !== void 0 && (e[s] = l), s === e.length - 1 && (this.finalKeyframe = i);
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(), !h.has(r) || e.length !== 2)
25
+ if (this.resolveNoneKeyframes(), !c.has(r) || e.length !== 2)
26
26
  return;
27
- const [t, o] = e, a = u(t), f = u(o);
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 (d(a) && d(f))
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 || c(e[t])) && r.push(t);
40
- r.length && K(e, r, n);
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(([s, i]) => {
59
- e.getValue(s).set(i);
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
- k as DOMKeyframesResolver
68
+ M as DOMKeyframesResolver
65
69
  };
@@ -1,4 +1,4 @@
1
- import { transformProps as s } from "../../../../../motion-dom/dist/es/render/utils/keys-transform.js";
1
+ import { transformProps as s } from "../../render/utils/keys-transform.js";
2
2
  const r = {
3
3
  type: "spring",
4
4
  stiffness: 500,
@@ -1,5 +1,9 @@
1
- const r = (s) => (t) => typeof t == "string" && t.startsWith(s), a = /* @__PURE__ */ r("--"), e = /* @__PURE__ */ r("var(--"), n = (s) => e(s) ? i.test(s.split("/*")[0].trim()) : !1, i = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
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
- a as isCSSVariableName,
4
- n as isCSSVariableToken
6
+ o as containsCSSVariable,
7
+ e as isCSSVariableName,
8
+ a as isCSSVariableToken
5
9
  };
@@ -6,7 +6,7 @@ const t = /* @__PURE__ */ new Set([
6
6
  "A"
7
7
  ]);
8
8
  function n(e) {
9
- return t.has(e.tagName) || e.tabIndex !== -1;
9
+ return t.has(e.tagName) || e.isContentEditable === !0;
10
10
  }
11
11
  export {
12
12
  n as isElementKeyboardAccessible
@@ -1,5 +1,5 @@
1
- import { mixNumber as s } from "../../../../../motion-dom/dist/es/utils/mix/number.js";
2
- import { px as R, percent as u } from "../../../../../motion-dom/dist/es/value/types/numbers/units.js";
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";
@@ -1,5 +1,5 @@
1
- import { hasTransform as x } from "../utils/has-transform.js";
2
- import { mixNumber as E } from "../../../../../motion-dom/dist/es/utils/mix/number.js";
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 && x(l.latestValues) && A(t, l.latestValues));
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 = E(t.min, t.max, s);
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) {
@@ -1,4 +1,4 @@
1
- import { mixNumber as m } from "../../../../../motion-dom/dist/es/utils/mix/number.js";
1
+ import { mixNumber as m } from "../../utils/mix/number.js";
2
2
  const N = 1e-4, u = 1 - N, E = 1 + N, R = 0.01, S = 0 - R, a = 0 + R;
3
3
  function s(n) {
4
4
  return n.max - n.min;
@@ -1,13 +1,13 @@
1
- import { scalePoint as v } from "./delta-apply.js";
2
- import { percent as p } from "../../../../../motion-dom/dist/es/value/types/numbers/units.js";
3
- import { mixNumber as r } from "../../../../../motion-dom/dist/es/utils/mix/number.js";
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 = v(e, 1 / f, n), d !== void 0 && (e = v(e, 1 / d, n)), 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 = r(y.min, y.max, m / 100) - y.min), typeof m != "number")
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 = r(u.min, u.max, n);
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
- x: document.documentElement.scrollLeft || document.body.scrollLeft,
7
- y: document.documentElement.scrollTop || document.body.scrollTop
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 {