@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,45 +1,46 @@
1
- import { useContext as f, useRef as l, useInsertionEffect as h, useEffect as j } from "react";
2
- import { optimizedAppearDataAttribute as I } from "../../animation/optimized-appear/data-id.js";
3
- import { LazyContext as A } from "../../context/LazyContext.js";
4
- import { MotionConfigContext as S } from "../../context/MotionConfigContext.js";
5
- import { MotionContext as L } from "../../context/MotionContext/index.js";
1
+ import { useContext as u, useRef as p, useInsertionEffect as A, useEffect as I } from "react";
2
+ import { LazyContext as S } from "../../context/LazyContext.js";
3
+ import { MotionConfigContext as L } from "../../context/MotionConfigContext.js";
4
+ import { MotionContext as O } from "../../context/MotionContext/index.js";
6
5
  import { PresenceContext as R } from "../../context/PresenceContext.js";
7
6
  import { SwitchLayoutGroupContext as b } from "../../context/SwitchLayoutGroupContext.js";
8
7
  import { isRefObject as k } from "../../utils/is-ref-object.js";
9
8
  import { useIsomorphicLayoutEffect as H } from "../../utils/use-isomorphic-effect.js";
10
- function J(o, s, n, i, u) {
11
- var y, M;
12
- const { visualElement: a } = f(L), p = f(A), e = f(R), m = f(S).reducedMotion, r = l(null);
13
- i = i || p.renderer, !r.current && i && (r.current = i(o, {
14
- visualState: s,
15
- parent: a,
16
- props: n,
17
- presenceContext: e,
18
- blockInitialAnimation: e ? e.initial === !1 : !1,
19
- reducedMotionConfig: m
20
- }));
21
- const t = r.current, x = f(b);
22
- t && !t.projection && u && (t.type === "html" || t.type === "svg") && z(r.current, n, u, x);
23
- const C = l(!1);
24
- h(() => {
25
- t && C.current && t.update(n, e);
9
+ import { optimizedAppearDataAttribute as z } from "../../../../../motion-dom/dist/es/animation/optimized-appear/data-id.js";
10
+ function Q(o, f, e, r, s, a) {
11
+ var w, g;
12
+ const { visualElement: l } = u(O), c = u(S), i = u(R), C = u(L).reducedMotion, n = p(null), y = p(!1);
13
+ r = r || c.renderer, !n.current && r && (n.current = r(o, {
14
+ visualState: f,
15
+ parent: l,
16
+ props: e,
17
+ presenceContext: i,
18
+ blockInitialAnimation: i ? i.initial === !1 : !1,
19
+ reducedMotionConfig: C,
20
+ isSVG: a
21
+ }), y.current && n.current && (n.current.manuallyAnimateOnMount = !0));
22
+ const t = n.current, j = u(b);
23
+ t && !t.projection && s && (t.type === "html" || t.type === "svg") && P(n.current, e, s, j);
24
+ const M = p(!1);
25
+ A(() => {
26
+ t && M.current && t.update(e, i);
26
27
  });
27
- const c = n[I], d = l(!!c && !((y = window.MotionHandoffIsComplete) != null && y.call(window, c)) && ((M = window.MotionHasOptimisedAnimation) == null ? void 0 : M.call(window, c)));
28
+ const d = e[z], m = p(!!d && !((w = window.MotionHandoffIsComplete) != null && w.call(window, d)) && ((g = window.MotionHasOptimisedAnimation) == null ? void 0 : g.call(window, d)));
28
29
  return H(() => {
29
- t && (C.current = !0, window.MotionIsMounted = !0, t.updateFeatures(), t.scheduleRenderMicrotask(), d.current && t.animationState && t.animationState.animateChanges());
30
- }), j(() => {
31
- t && (!d.current && t.animationState && t.animationState.animateChanges(), d.current && (queueMicrotask(() => {
32
- var w;
33
- (w = window.MotionHandoffMarkAsComplete) == null || w.call(window, c);
34
- }), d.current = !1), t.enteringChildren = void 0);
30
+ y.current = !0, t && (M.current = !0, window.MotionIsMounted = !0, t.updateFeatures(), t.scheduleRenderMicrotask(), m.current && t.animationState && t.animationState.animateChanges());
31
+ }), I(() => {
32
+ t && (!m.current && t.animationState && t.animationState.animateChanges(), m.current && (queueMicrotask(() => {
33
+ var h;
34
+ (h = window.MotionHandoffMarkAsComplete) == null || h.call(window, d);
35
+ }), m.current = !1), t.enteringChildren = void 0);
35
36
  }), t;
36
37
  }
37
- function z(o, s, n, i) {
38
- const { layoutId: u, layout: a, drag: p, dragConstraints: e, layoutScroll: m, layoutRoot: r, layoutCrossfade: t } = s;
39
- o.projection = new n(o.latestValues, s["data-framer-portal-id"] ? void 0 : g(o.parent)), o.projection.setOptions({
40
- layoutId: u,
38
+ function P(o, f, e, r) {
39
+ const { layoutId: s, layout: a, drag: l, dragConstraints: c, layoutScroll: i, layoutRoot: C, layoutCrossfade: n } = f;
40
+ o.projection = new e(o.latestValues, f["data-framer-portal-id"] ? void 0 : x(o.parent)), o.projection.setOptions({
41
+ layoutId: s,
41
42
  layout: a,
42
- alwaysMeasureLayout: !!p || e && k(e),
43
+ alwaysMeasureLayout: !!l || c && k(c),
43
44
  visualElement: o,
44
45
  /**
45
46
  * TODO: Update options in an effect. This could be tricky as it'll be too late
@@ -49,16 +50,16 @@ function z(o, s, n, i) {
49
50
  *
50
51
  */
51
52
  animationType: typeof a == "string" ? a : "both",
52
- initialPromotionConfig: i,
53
- crossfade: t,
54
- layoutScroll: m,
55
- layoutRoot: r
53
+ initialPromotionConfig: r,
54
+ crossfade: n,
55
+ layoutScroll: i,
56
+ layoutRoot: C
56
57
  });
57
58
  }
58
- function g(o) {
59
+ function x(o) {
59
60
  if (o)
60
- return o.options.allowProjection !== !1 ? o.projection : g(o.parent);
61
+ return o.options.allowProjection !== !1 ? o.projection : x(o.parent);
61
62
  }
62
63
  export {
63
- J as useVisualElement
64
+ Q as useVisualElement
64
65
  };
@@ -1,11 +1,11 @@
1
1
  import { useContext as C } from "react";
2
- import { isAnimationControls as x } from "../../animation/utils/is-animation-controls.js";
3
- import { MotionContext as S } from "../../context/MotionContext/index.js";
4
- import { PresenceContext as h } from "../../context/PresenceContext.js";
5
- import { isControllingVariants as M, isVariantNode as N } from "../../render/utils/is-controlling-variants.js";
6
- import { resolveVariantFromProps as P } from "../../render/utils/resolve-variants.js";
7
- import { useConstant as T } from "../../utils/use-constant.js";
8
- import { resolveMotionValue as $ } from "../../value/utils/resolve-motion-value.js";
2
+ import { MotionContext as x } from "../../context/MotionContext/index.js";
3
+ import { PresenceContext as S } from "../../context/PresenceContext.js";
4
+ import { useConstant as h } from "../../utils/use-constant.js";
5
+ import { resolveMotionValue as M } from "../../../../../motion-dom/dist/es/value/utils/resolve-motion-value.js";
6
+ import { isControllingVariants as N, isVariantNode as P } from "../../../../../motion-dom/dist/es/render/utils/is-controlling-variants.js";
7
+ import { isAnimationControls as T } from "../../../../../motion-dom/dist/es/render/utils/is-animation-controls.js";
8
+ import { resolveVariantFromProps as $ } from "../../../../../motion-dom/dist/es/render/utils/resolve-variants.js";
9
9
  function b({ scrapeMotionValuesFromProps: t, createRenderState: i }, e, s, n) {
10
10
  return {
11
11
  latestValues: p(e, s, n, t),
@@ -15,17 +15,17 @@ function b({ scrapeMotionValuesFromProps: t, createRenderState: i }, e, s, n) {
15
15
  function p(t, i, e, s) {
16
16
  const n = {}, o = s(t, {});
17
17
  for (const l in o)
18
- n[l] = $(o[l]);
18
+ n[l] = M(o[l]);
19
19
  let { initial: m, animate: u } = t;
20
- const g = M(t), v = N(t);
20
+ const g = N(t), v = P(t);
21
21
  i && v && !g && t.inherit !== !1 && (m === void 0 && (m = i.initial), u === void 0 && (u = i.animate));
22
22
  let c = e ? e.initial === !1 : !1;
23
23
  c = c || m === !1;
24
24
  const a = c ? u : m;
25
- if (a && typeof a != "boolean" && !x(a)) {
25
+ if (a && typeof a != "boolean" && !T(a)) {
26
26
  const l = Array.isArray(a) ? a : [a];
27
27
  for (let d = 0; d < l.length; d++) {
28
- const V = P(t, l[d]);
28
+ const V = $(t, l[d]);
29
29
  if (V) {
30
30
  const { transitionEnd: k, transition: B, ...y } = V;
31
31
  for (const f in y) {
@@ -44,8 +44,8 @@ function p(t, i, e, s) {
44
44
  return n;
45
45
  }
46
46
  const z = (t) => (i, e) => {
47
- const s = C(S), n = C(h), o = () => b(t, i, s, n);
48
- return e ? o() : T(o);
47
+ const s = C(x), n = C(S), o = () => b(t, i, s, n);
48
+ return e ? o() : h(o);
49
49
  };
50
50
  export {
51
51
  z as makeUseVisualState
@@ -1,10 +1,10 @@
1
1
  import { Fragment as m } from "react";
2
- import { HTMLVisualElement as o } from "../html/HTMLVisualElement.js";
3
- import { SVGVisualElement as t } from "../svg/SVGVisualElement.js";
4
- import { isSVGComponent as i } from "./utils/is-svg-component.js";
5
- const f = (e, r) => i(e) ? new t(r) : new o(r, {
6
- allowProjection: e !== m
2
+ import { isSVGComponent as t } from "./utils/is-svg-component.js";
3
+ import { SVGVisualElement as o } from "../../../../../motion-dom/dist/es/render/svg/SVGVisualElement.js";
4
+ import { HTMLVisualElement as i } from "../../../../../motion-dom/dist/es/render/html/HTMLVisualElement.js";
5
+ const G = (r, e) => e.isSVG ?? t(r) ? new o(e) : new i(e, {
6
+ allowProjection: r !== m
7
7
  });
8
8
  export {
9
- f as createDomVisualElement
9
+ G as createDomVisualElement
10
10
  };
@@ -1,16 +1,16 @@
1
- import { Fragment as c, useMemo as p, createElement as P } from "react";
2
- import { useHTMLProps as a } from "../html/use-props.js";
3
- import { useSVGProps as d } from "../svg/use-props.js";
4
- import { filterProps as V } from "./utils/filter-props.js";
5
- import { isSVGComponent as g } from "./utils/is-svg-component.js";
6
- import { isMotionValue as h } from "../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
7
- function F(r, s, o, { latestValues: t }, i, m = !1) {
8
- const n = (g(r) ? d : a)(s, t, i, r), l = V(s, typeof r == "string", m), u = r !== c ? { ...l, ...n, ref: o } : {}, { children: e } = s, f = p(() => h(e) ? e.get() : e, [e]);
9
- return P(r, {
10
- ...u,
11
- children: f
1
+ import { Fragment as p, useMemo as P, createElement as a } from "react";
2
+ import { useHTMLProps as d } from "../html/use-props.js";
3
+ import { useSVGProps as V } from "../svg/use-props.js";
4
+ import { filterProps as g } from "./utils/filter-props.js";
5
+ import { isSVGComponent as h } from "./utils/is-svg-component.js";
6
+ import { isMotionValue as M } from "../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
7
+ function H(r, s, o, { latestValues: t }, i, m = !1, n) {
8
+ const l = (n ?? h(r) ? V : d)(s, t, i, r), u = g(s, typeof r == "string", m), f = r !== p ? { ...u, ...l, ref: o } : {}, { children: e } = s, c = P(() => M(e) ? e.get() : e, [e]);
9
+ return a(r, {
10
+ ...f,
11
+ children: c
12
12
  });
13
13
  }
14
14
  export {
15
- F as useRender
15
+ H as useRender
16
16
  };
@@ -1,10 +1,10 @@
1
1
  import { makeUseVisualState as e } from "../../motion/utils/use-visual-state.js";
2
2
  import { createHtmlRenderState as t } from "./utils/create-render-state.js";
3
- import { scrapeMotionValuesFromProps as r } from "./utils/scrape-motion-values.js";
4
- const s = /* @__PURE__ */ e({
3
+ import { scrapeMotionValuesFromProps as r } from "../../../../../motion-dom/dist/es/render/html/utils/scrape-motion-values.js";
4
+ const m = /* @__PURE__ */ e({
5
5
  scrapeMotionValuesFromProps: r,
6
6
  createRenderState: t
7
7
  });
8
8
  export {
9
- s as useHTMLVisualState
9
+ m as useHTMLVisualState
10
10
  };
@@ -1,16 +1,16 @@
1
1
  import { useMemo as i } from "react";
2
- import { isForcedMotionValue as a } from "../../motion/utils/is-forced-motion-value.js";
3
- import { buildHTMLStyles as r } from "./utils/build-styles.js";
4
- import { createHtmlRenderState as l } from "./utils/create-render-state.js";
5
- import { isMotionValue as s } from "../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
2
+ import { createHtmlRenderState as a } from "./utils/create-render-state.js";
3
+ import { isMotionValue as r } from "../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
4
+ import { isForcedMotionValue as l } from "../../../../../motion-dom/dist/es/render/utils/is-forced-motion-value.js";
5
+ import { buildHTMLStyles as s } from "../../../../../motion-dom/dist/es/render/html/utils/build-styles.js";
6
6
  function u(t, o, n) {
7
7
  for (const e in o)
8
- !s(o[e]) && !a(e, n) && (t[e] = o[e]);
8
+ !r(o[e]) && !l(e, n) && (t[e] = o[e]);
9
9
  }
10
10
  function c({ transformTemplate: t }, o) {
11
11
  return i(() => {
12
- const n = l();
13
- return r(n, o, t), Object.assign({}, n.vars, n.style);
12
+ const n = a();
13
+ return s(n, o, t), Object.assign({}, n.vars, n.style);
14
14
  }, [o]);
15
15
  }
16
16
  function f(t, o) {
@@ -1,12 +1,12 @@
1
1
  import { useMemo as m } from "react";
2
2
  import { copyRawValuesOnly as l } from "../html/use-props.js";
3
- import { buildSVGAttrs as i } from "./utils/build-attrs.js";
4
- import { createSvgRenderState as a } from "./utils/create-render-state.js";
5
- import { isSVGTag as n } from "./utils/is-svg-tag.js";
3
+ import { createSvgRenderState as i } from "./utils/create-render-state.js";
4
+ import { buildSVGAttrs as a } from "../../../../../motion-dom/dist/es/render/svg/utils/build-attrs.js";
5
+ import { isSVGTag as n } from "../../../../../motion-dom/dist/es/render/svg/utils/is-svg-tag.js";
6
6
  function G(e, s, y, o) {
7
7
  const r = m(() => {
8
- const t = a();
9
- return i(t, s, n(o), e.transformTemplate, e.style), {
8
+ const t = i();
9
+ return a(t, s, n(o), e.transformTemplate, e.style), {
10
10
  ...t.attrs,
11
11
  style: { ...t.style }
12
12
  };
@@ -1,6 +1,6 @@
1
1
  import { makeUseVisualState as e } from "../../motion/utils/use-visual-state.js";
2
2
  import { createSvgRenderState as r } from "./utils/create-render-state.js";
3
- import { scrapeMotionValuesFromProps as t } from "./utils/scrape-motion-values.js";
3
+ import { scrapeMotionValuesFromProps as t } from "../../../../../motion-dom/dist/es/render/svg/utils/scrape-motion-values.js";
4
4
  const m = /* @__PURE__ */ e({
5
5
  scrapeMotionValuesFromProps: t,
6
6
  createRenderState: r
@@ -1,23 +1,31 @@
1
- import { useConstant as m } from "../utils/use-constant.js";
2
- import { useCombineMotionValues as u } from "./use-combine-values.js";
3
- import { useComputed as i } from "./use-computed.js";
4
- import { transform as c } from "../../../../motion-dom/dist/es/utils/transform.js";
5
- function h(o, r, e, n) {
6
- if (typeof o == "function")
7
- return i(o);
8
- const t = typeof r == "function" ? r : c(r, e, n);
9
- return Array.isArray(o) ? f(o, t) : f([o], ([s]) => t(s));
1
+ import { useConstant as c } from "../utils/use-constant.js";
2
+ import { useCombineMotionValues as i } from "./use-combine-values.js";
3
+ import { useComputed as y } from "./use-computed.js";
4
+ import { transform as l } from "../../../../motion-dom/dist/es/utils/transform.js";
5
+ function A(t, r, o, e) {
6
+ if (typeof t == "function")
7
+ return y(t);
8
+ if (o !== void 0 && !Array.isArray(o) && typeof r != "function")
9
+ return d(t, r, o, e);
10
+ const n = typeof r == "function" ? r : l(r, o, e);
11
+ return Array.isArray(t) ? u(t, n) : u([t], ([m]) => n(m));
10
12
  }
11
- function f(o, r) {
12
- const e = m(() => []);
13
- return u(o, () => {
14
- e.length = 0;
15
- const n = o.length;
16
- for (let t = 0; t < n; t++)
17
- e[t] = o[t].get();
18
- return r(e);
13
+ function u(t, r) {
14
+ const o = c(() => []);
15
+ return i(t, () => {
16
+ o.length = 0;
17
+ const e = t.length;
18
+ for (let s = 0; s < e; s++)
19
+ o[s] = t[s].get();
20
+ return r(o);
19
21
  });
20
22
  }
23
+ function d(t, r, o, e) {
24
+ const s = c(() => Object.keys(o)), f = c(() => ({}));
25
+ for (const n of s)
26
+ f[n] = A(t, r, o[n], e);
27
+ return f;
28
+ }
21
29
  export {
22
- h as useTransform
30
+ A as useTransform
23
31
  };