@collabchron/notiq 1.1.9 → 1.1.11

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 (412) hide show
  1. package/README.md +281 -259
  2. package/dist/AICommandBarPlugin-TADJ3X2Y.mjs +12 -0
  3. package/dist/AIDialog-2WZUFWSC.mjs +325 -0
  4. package/dist/AudioComponent-CKLMLB5T.mjs +278 -0
  5. package/dist/CodeActionMenuPlugin-MRKY67ED.mjs +14 -0
  6. package/dist/CollaborationPlugin-TIZOQBUT.mjs +405 -0
  7. package/dist/CollaboratorsBar-TMKBOBJI.mjs +20 -0
  8. package/dist/CommentsPlugin-5M4RD6YO.mjs +19 -0
  9. package/dist/DynamicBlockComponent-2LOADZUX.mjs +221 -0
  10. package/dist/{EquationComponent-CB6DFIHV.mjs → EquationComponent-4NFG55NQ.mjs} +82 -46
  11. package/dist/ExcalidrawComponent-SIMURTCA.mjs +662 -0
  12. package/dist/ExcalidrawPlugin-2SGPIQ6U.mjs +14 -0
  13. package/dist/ExportPlugin-OKZOLBGS.mjs +42 -0
  14. package/dist/FileComponent-Y56MX5QD.mjs +200 -0
  15. package/dist/FloatingLinkEditorPlugin-MABB34L7.mjs +12 -0
  16. package/dist/FloatingTextFormatToolbarPlugin-SO5VON7Q.mjs +45 -0
  17. package/dist/HintComponet-ET7M2Q7S.mjs +288 -0
  18. package/dist/InlineCopilotPlugin-PNS5Y6OO.mjs +360 -0
  19. package/dist/{InlineImageComponent-UWIUWBHI.mjs → InlineImageComponent-FVTA4LXZ.mjs} +129 -99
  20. package/dist/MobileToolbar-JKP2MLQJ.mjs +984 -0
  21. package/dist/SlashCommand-2TNOOUBM.mjs +39 -0
  22. package/dist/StoryBuilderComponent-WQSNFPMM.mjs +816 -0
  23. package/dist/{TableCellActionMenuPlugin-PGK2K3VG.mjs → TableCellActionMenuPlugin-YWBA64J7.mjs} +328 -157
  24. package/dist/{TableHoverActionsPlugin-GJVE6VRW.mjs → TableHoverActionsPlugin-2EIXHEXN.mjs} +43 -36
  25. package/dist/{TemplatePlugin-ZD3QEVTI.mjs → TemplatePlugin-HNTPEXBB.mjs} +2 -2
  26. package/dist/ToolbarPlugin-IIAOU4P5.mjs +35 -0
  27. package/dist/VersionHistoryPlugin-23MAZB4G.mjs +371 -0
  28. package/dist/babel-RJXDAKDM.mjs +7287 -0
  29. package/dist/background-color-OZJCBYCT.mjs +425 -0
  30. package/dist/block-format-MTSIXWID.mjs +14 -0
  31. package/dist/chunk-2KESP7OU.mjs +809 -0
  32. package/dist/chunk-3AHNLIME.mjs +1701 -0
  33. package/dist/{chunk-GK35L7UY.mjs → chunk-3IILA3IP.mjs} +1 -1
  34. package/dist/chunk-3JN6QEJR.mjs +31 -0
  35. package/dist/{chunk-5BAKY5KN.mjs → chunk-43Z4Z2KD.mjs} +5 -8
  36. package/dist/{chunk-GXYD4VZM.mjs → chunk-4DVIYZVB.mjs} +1 -1
  37. package/dist/{chunk-7NZAPJ4G.mjs → chunk-4FFTOZGJ.mjs} +4 -3
  38. package/dist/chunk-4UMUPCDK.mjs +68 -0
  39. package/dist/{chunk-POGRR73N.mjs → chunk-5NRAXWYA.mjs} +4 -3
  40. package/dist/{chunk-PZSUSXQG.mjs → chunk-6D6QLRYR.mjs} +2 -2
  41. package/dist/chunk-6SRMKQSD.mjs +682 -0
  42. package/dist/{chunk-3CPBODXA.mjs → chunk-6UVNHT3T.mjs} +7 -27
  43. package/dist/{chunk-G53GLEAY.mjs → chunk-7QRJVZQY.mjs} +47 -22
  44. package/dist/chunk-ACV47ZKE.mjs +201 -0
  45. package/dist/{chunk-FSM26655.mjs → chunk-AMXRQ2TK.mjs} +4 -4
  46. package/dist/chunk-AYNKORDO.mjs +6 -0
  47. package/dist/{chunk-YUDCJRJM.mjs → chunk-BGV62GC2.mjs} +3 -2
  48. package/dist/{chunk-TCYK7DM7.mjs → chunk-CDAMHK63.mjs} +4 -3
  49. package/dist/{chunk-QHIQKMVN.mjs → chunk-D3IOUQFR.mjs} +125 -111
  50. package/dist/chunk-EEBA6OAH.mjs +59 -0
  51. package/dist/{chunk-YKC3SO4Z.mjs → chunk-EIZMKFHF.mjs} +1 -1
  52. package/dist/{chunk-4EXYCTGJ.mjs → chunk-EVPWKNE4.mjs} +3 -3
  53. package/dist/{chunk-K36V4SIW.mjs → chunk-FMJ7DGWP.mjs} +23 -20
  54. package/dist/{chunk-RBWZGXPF.mjs → chunk-FYLRS4BG.mjs} +5 -5
  55. package/dist/{chunk-N3WN46VL.mjs → chunk-GYYLZ3MQ.mjs} +23 -22
  56. package/dist/{chunk-WDG7J2DY.mjs → chunk-H3P47YXJ.mjs} +30 -19
  57. package/dist/chunk-HOZ4QRFV.mjs +536 -0
  58. package/dist/{chunk-5QSNIVIG.mjs → chunk-IAFCQV3Z.mjs} +94 -78
  59. package/dist/{chunk-64Z3FI7T.mjs → chunk-IIVB6JNE.mjs} +5 -4
  60. package/dist/chunk-IU2N42JJ.mjs +1763 -0
  61. package/dist/chunk-IUOUIDEQ.mjs +70 -0
  62. package/dist/chunk-J6ZUY5BY.mjs +202 -0
  63. package/dist/{chunk-YHPNOWFH.mjs → chunk-JHXDLYEV.mjs} +1 -1
  64. package/dist/{chunk-ZB5LZQKC.mjs → chunk-K5OAFEVY.mjs} +1 -1
  65. package/dist/chunk-KDA7ZYMJ.mjs +431 -0
  66. package/dist/{chunk-3JVFG7ER.mjs → chunk-KNW2CGIP.mjs} +7 -64
  67. package/dist/{chunk-4HBCVSE6.mjs → chunk-KXRLARGI.mjs} +1 -1
  68. package/dist/chunk-LAUAYRPC.mjs +944 -0
  69. package/dist/chunk-LLCP7NVE.mjs +449 -0
  70. package/dist/chunk-LU2XWLOE.mjs +219 -0
  71. package/dist/chunk-MPTE332I.mjs +787 -0
  72. package/dist/{chunk-456TN7IM.mjs → chunk-MTQZWJHR.mjs} +17 -16
  73. package/dist/{chunk-LGG4IUIA.mjs → chunk-MW6MAUY3.mjs} +2 -2
  74. package/dist/chunk-N3WTT2U6.mjs +21 -0
  75. package/dist/{chunk-GZPNVR7L.mjs → chunk-N6ILV6NF.mjs} +7 -6
  76. package/dist/{chunk-QEIFVK5M.mjs → chunk-NBE6FF6L.mjs} +4 -4
  77. package/dist/{chunk-BIU7WTLX.mjs → chunk-OE5JRLCN.mjs} +21 -18
  78. package/dist/chunk-OXWTZV3U.mjs +174 -0
  79. package/dist/{chunk-Z4EWP7BI.mjs → chunk-PD5K4AGP.mjs} +22 -23
  80. package/dist/chunk-PFH63ZU4.mjs +33 -0
  81. package/dist/chunk-PHRVYPVM.mjs +808 -0
  82. package/dist/chunk-R7WFRENU.mjs +262 -0
  83. package/dist/{chunk-4VWFVWYP.mjs → chunk-RAVYEEIC.mjs} +1 -1
  84. package/dist/chunk-RJQTA6HG.mjs +358 -0
  85. package/dist/{chunk-7VUMHWWL.mjs → chunk-SAOJHVPE.mjs} +5 -4
  86. package/dist/chunk-TC3IISJZ.mjs +408 -0
  87. package/dist/chunk-VGAX6YEY.mjs +399 -0
  88. package/dist/chunk-W6GAJXUS.mjs +334 -0
  89. package/dist/{chunk-U47ABU5Z.mjs → chunk-W6VQSFE5.mjs} +2 -2
  90. package/dist/chunk-WYCFGRFJ.mjs +118 -0
  91. package/dist/chunk-XAVQAXOJ.mjs +419 -0
  92. package/dist/chunk-XYDBUQ6Z.mjs +1978 -0
  93. package/dist/chunk-XYMXGU4T.mjs +129 -0
  94. package/dist/chunk-XYT6XM5S.mjs +496 -0
  95. package/dist/{chunk-HJPPNHYM.mjs → chunk-XZXGYNTY.mjs} +4 -3
  96. package/dist/{chunk-4GFXER7R.mjs → chunk-YDDBQZ77.mjs} +141 -89
  97. package/dist/{chunk-2FNEAMSP.mjs → chunk-YE7M2VKR.mjs} +52 -47
  98. package/dist/{chunk-3G37YKTV.mjs → chunk-YR2DD74C.mjs} +9 -8
  99. package/dist/{chunk-4MEDW3T6.mjs → chunk-YTLUQJE2.mjs} +5 -4
  100. package/dist/{chunk-DSFQHA7I.mjs → chunk-Z6JAFF55.mjs} +118 -295
  101. package/dist/chunk-ZFV2HGD3.mjs +143 -0
  102. package/dist/{chunk-77UA6HYR.mjs → chunk-ZKZ7MLSS.mjs} +1 -1
  103. package/dist/color-23323E3B.mjs +13 -0
  104. package/dist/components/canvas/CanvasMode.d.ts +18 -0
  105. package/dist/components/editor/Core.d.ts +6 -0
  106. package/dist/components/editor/index.d.ts +27 -0
  107. package/dist/components/editor/lexical-on-change.d.ts +1 -0
  108. package/dist/components/editor/nodes/AudioNode/AudioComponent.d.ts +15 -0
  109. package/dist/components/editor/nodes/AudioNode/index.d.ts +36 -0
  110. package/dist/components/editor/nodes/CollapsibleNode/CollapsibleContainerNode.d.ts +22 -0
  111. package/dist/components/editor/nodes/CollapsibleNode/CollapsibleContentNode.d.ts +18 -0
  112. package/dist/components/editor/nodes/CollapsibleNode/CollapsibleTitleNode.d.ts +19 -0
  113. package/dist/components/editor/nodes/DynamicBlockNode/DynamicBlockComponent.d.ts +7 -0
  114. package/dist/components/editor/nodes/DynamicBlockNode/DynamicBlockNode.d.ts +49 -0
  115. package/dist/components/editor/nodes/EquationNode/EquationComponent.d.ts +16 -0
  116. package/dist/components/editor/nodes/EquationNode/EquationNode.d.ts +33 -0
  117. package/dist/components/editor/nodes/ExcalidrawNode/ExcalidrawComponent.d.ts +15 -0
  118. package/dist/components/editor/nodes/ExcalidrawNode/ExcalidrawImage.d.ts +57 -0
  119. package/dist/components/editor/nodes/ExcalidrawNode/ImageResizer.d.ts +24 -0
  120. package/dist/components/editor/nodes/ExcalidrawNode/index.d.ts +39 -0
  121. package/dist/components/editor/nodes/FigmaNode/FigmaNode.d.ts +27 -0
  122. package/dist/components/editor/nodes/FileNode/FileComponent.d.ts +16 -0
  123. package/dist/components/editor/nodes/FileNode/index.d.ts +39 -0
  124. package/dist/components/editor/nodes/Hint/HintComponet.d.ts +20 -0
  125. package/dist/components/editor/nodes/Hint/index.d.ts +33 -0
  126. package/dist/components/editor/nodes/ImageNode/index.d.ts +62 -0
  127. package/dist/components/editor/nodes/InlineImageNode/InlineImageComponent.d.ts +25 -0
  128. package/dist/components/editor/nodes/InlineImageNode/InlineImageNode.d.ts +66 -0
  129. package/dist/components/editor/nodes/LayoutNode/LayoutContainerNode.d.ts +31 -0
  130. package/dist/components/editor/nodes/LayoutNode/LayoutItemNode.d.ts +21 -0
  131. package/dist/components/editor/nodes/PollNode/index.d.ts +34 -0
  132. package/dist/components/editor/nodes/Stepper/index.d.ts +66 -0
  133. package/dist/components/editor/nodes/StoryBuilderNode/StoryBuilderComponent.d.ts +10 -0
  134. package/dist/components/editor/nodes/StoryBuilderNode/StoryBuilderNode.d.ts +59 -0
  135. package/dist/components/editor/nodes/TweetNode/index.d.ts +21 -0
  136. package/dist/components/editor/nodes/index.d.ts +4 -0
  137. package/dist/components/editor/plugins/AICommandBarPlugin/index.d.ts +7 -0
  138. package/dist/components/editor/plugins/AudioPlugin/index.d.ts +1 -0
  139. package/dist/components/editor/plugins/AutoEmbedPlugin/index.d.ts +19 -0
  140. package/dist/components/editor/plugins/AutoLinkPlugin/index.d.ts +1 -0
  141. package/dist/components/editor/plugins/CodeActionMenuPlugin/components/CopyButton.d.ts +8 -0
  142. package/dist/components/editor/plugins/CodeActionMenuPlugin/components/PrettierButton.d.ts +9 -0
  143. package/dist/components/editor/plugins/CodeActionMenuPlugin/index.d.ts +4 -0
  144. package/dist/components/editor/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
  145. package/dist/components/editor/plugins/CodeHighlightPlugin/index.d.ts +11 -0
  146. package/dist/components/editor/plugins/CollaborationPlugin/CollaboratorsBar.d.ts +9 -0
  147. package/dist/components/editor/plugins/CollaborationPlugin/index.d.ts +8 -0
  148. package/dist/components/editor/plugins/CollapsiblePlugin/index.d.ts +4 -0
  149. package/dist/components/editor/plugins/CommentsPlugin/CommentThreadItem.d.ts +7 -0
  150. package/dist/components/editor/plugins/CommentsPlugin/CommentsSidebar.d.ts +2 -0
  151. package/dist/components/editor/plugins/CommentsPlugin/MentionsAutocomplete.d.ts +22 -0
  152. package/dist/components/editor/plugins/CommentsPlugin/NewCommentDialog.d.ts +2 -0
  153. package/dist/components/editor/plugins/CommentsPlugin/index.d.ts +5 -0
  154. package/dist/components/editor/plugins/ContentAnalyticsPlugin/index.d.ts +1 -0
  155. package/dist/components/editor/plugins/DragDropPastePlugin/index.d.ts +1 -0
  156. package/dist/components/editor/plugins/DraggableBlockPlugin/index.d.ts +5 -0
  157. package/dist/components/editor/plugins/DynamicBlockPlugin/index.d.ts +7 -0
  158. package/dist/components/editor/plugins/EquationsPlugin/index.d.ts +20 -0
  159. package/dist/components/editor/plugins/ExcalidrawPlugin/index.d.ts +5 -0
  160. package/dist/components/editor/plugins/ExportPlugin/ImportExportModal.d.ts +9 -0
  161. package/dist/components/editor/plugins/ExportPlugin/index.d.ts +28 -0
  162. package/dist/components/editor/plugins/FigmaPlugin/index.d.ts +11 -0
  163. package/dist/components/editor/plugins/FilePlugin/index.d.ts +1 -0
  164. package/dist/components/editor/plugins/FloatingLinkEditorPlugin/index.d.ts +6 -0
  165. package/dist/components/editor/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +6 -0
  166. package/dist/components/editor/plugins/ImagesPlugin/index.d.ts +14 -0
  167. package/dist/components/editor/plugins/InlineCopilotPlugin/index.d.ts +32 -0
  168. package/dist/components/editor/plugins/InlineImagePlugin/index.d.ts +16 -0
  169. package/dist/components/editor/plugins/LayoutPlugin/index.d.ts +14 -0
  170. package/dist/components/editor/plugins/LinkPlugin/index.d.ts +13 -0
  171. package/dist/components/editor/plugins/LinkWithMetaData/index.d.ts +46 -0
  172. package/dist/components/editor/plugins/MarkdownShortcutPlugin/index.d.ts +2 -0
  173. package/dist/components/editor/plugins/MarkdownTransformers/index.d.ts +12 -0
  174. package/dist/components/editor/plugins/PollPlugin/index.d.ts +4 -0
  175. package/dist/components/editor/plugins/ShortcutsPlugin/index.d.ts +13 -0
  176. package/dist/components/editor/plugins/ShortcutsPlugin/shortcuts.d.ts +58 -0
  177. package/dist/components/editor/plugins/SlashCommand/index.d.ts +25 -0
  178. package/dist/components/editor/plugins/SpeechToTextPlugin/index.d.ts +5 -0
  179. package/dist/components/editor/plugins/StoryBuilderPlugin/index.d.ts +7 -0
  180. package/dist/components/editor/plugins/TabFocusPlugin/index.d.ts +1 -0
  181. package/dist/components/editor/plugins/TableCellActionMenuPlugin/index.d.ts +5 -0
  182. package/dist/components/editor/plugins/TableCellResizer/index.d.ts +2 -0
  183. package/dist/components/editor/plugins/TableHoverActionsPlugin/index.d.ts +4 -0
  184. package/dist/components/editor/plugins/TablePlugin/index.d.ts +27 -0
  185. package/dist/components/editor/plugins/TemplatePlugin/TemplateDialog.d.ts +1 -0
  186. package/dist/components/editor/plugins/TemplatePlugin/index.d.ts +3 -0
  187. package/dist/components/editor/plugins/ToolbarPlugin/MobileToolbar.d.ts +10 -0
  188. package/dist/components/editor/plugins/ToolbarPlugin/index.d.ts +11 -0
  189. package/dist/components/editor/plugins/TwitterPlugin/index.d.ts +4 -0
  190. package/dist/components/editor/plugins/VersionHistoryPlugin/NameVersionModal.d.ts +2 -0
  191. package/dist/components/editor/plugins/VersionHistoryPlugin/VersionHistoryDrawer.d.ts +2 -0
  192. package/dist/components/editor/plugins/VersionHistoryPlugin/index.d.ts +2 -0
  193. package/dist/components/editor/plugins/YouTubeNode/index.d.ts +22 -0
  194. package/dist/components/editor/plugins/YouTubePlugin/index.d.ts +11 -0
  195. package/dist/components/editor/templates/data.d.ts +7 -0
  196. package/dist/components/editor/themes/editor-theme.d.ts +3 -0
  197. package/dist/components/editor/utils/ai.d.ts +27 -0
  198. package/dist/components/editor/utils/canUseDOM.d.ts +8 -0
  199. package/dist/components/editor/utils/codeLanguages.d.ts +3 -0
  200. package/dist/components/editor/utils/diffUtils.d.ts +10 -0
  201. package/dist/components/editor/utils/editorFormatting.d.ts +26 -0
  202. package/dist/components/editor/utils/environment.d.ts +17 -0
  203. package/dist/components/editor/utils/extract-data.d.ts +8 -0
  204. package/dist/components/editor/utils/getAllLexicalChildren.d.ts +6 -0
  205. package/dist/components/editor/utils/getDOMRangeRect.d.ts +8 -0
  206. package/dist/components/editor/utils/getSelectedNode.d.ts +2 -0
  207. package/dist/components/editor/utils/gif.d.ts +7 -0
  208. package/dist/components/editor/utils/importUtils.d.ts +27 -0
  209. package/dist/components/editor/utils/invariant.d.ts +1 -0
  210. package/dist/components/editor/utils/markdownTransformers.d.ts +20 -0
  211. package/dist/components/editor/utils/setFloatingElemPosition.d.ts +1 -0
  212. package/dist/components/editor/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
  213. package/dist/components/editor/utils/setNodePlaceholderFromSelection/getNodePlaceholder.d.ts +2 -0
  214. package/dist/components/editor/utils/setNodePlaceholderFromSelection/setNodePlaceholderFromSelection.d.ts +2 -0
  215. package/dist/components/editor/utils/setNodePlaceholderFromSelection/setPlaceholderOnSelection.d.ts +5 -0
  216. package/dist/components/editor/utils/url.d.ts +11 -0
  217. package/dist/components/editor/utils/useLayoutEffect.d.ts +3 -0
  218. package/dist/components/providers/AIContext.d.ts +21 -0
  219. package/dist/components/providers/CollabContext.d.ts +92 -0
  220. package/dist/components/providers/CommentsContext.d.ts +48 -0
  221. package/dist/components/providers/QueryProvider.d.ts +5 -0
  222. package/dist/components/providers/SharedHistoryContext.d.ts +11 -0
  223. package/dist/components/providers/ToolbarContext.d.ts +61 -0
  224. package/dist/components/providers/UploadContext.d.ts +29 -0
  225. package/dist/components/providers/VersionHistoryContext.d.ts +33 -0
  226. package/dist/components/providers/theme-provider.d.ts +3 -0
  227. package/dist/components/theme/ModeToggle.d.ts +2 -0
  228. package/dist/components/ui/ContentEditable.d.ts +15 -0
  229. package/dist/components/ui/FileInput.d.ts +16 -0
  230. package/dist/components/ui/Modal.d.ts +15 -0
  231. package/dist/components/ui/Select.d.ts +14 -0
  232. package/dist/components/ui/TextInput.d.ts +19 -0
  233. package/dist/components/ui/accordion.d.ts +7 -0
  234. package/dist/components/ui/ai/AIDialog.d.ts +9 -0
  235. package/dist/components/ui/ai/ai-button.d.ts +5 -0
  236. package/dist/components/ui/ai/border.d.ts +8 -0
  237. package/dist/components/ui/ai/placeholder-input-vanish.d.ts +6 -0
  238. package/dist/components/ui/badge.d.ts +9 -0
  239. package/dist/components/ui/button.d.ts +12 -0
  240. package/dist/components/ui/card.d.ts +8 -0
  241. package/dist/components/ui/checkbox.d.ts +4 -0
  242. package/dist/components/ui/command.d.ts +80 -0
  243. package/dist/components/ui/dialog/Dialog.d.ts +16 -0
  244. package/dist/components/ui/dialog.d.ts +19 -0
  245. package/dist/components/ui/drop-downs/background-color.d.ts +12 -0
  246. package/dist/components/ui/drop-downs/block-format.d.ts +25 -0
  247. package/dist/components/ui/drop-downs/code.d.ts +6 -0
  248. package/dist/components/ui/drop-downs/codeTheme.d.ts +8 -0
  249. package/dist/components/ui/drop-downs/color.d.ts +12 -0
  250. package/dist/components/ui/drop-downs/font-size.d.ts +10 -0
  251. package/dist/components/ui/drop-downs/font.d.ts +11 -0
  252. package/dist/components/ui/drop-downs/index.d.ts +24 -0
  253. package/dist/components/ui/drop-downs/insert-node.d.ts +6 -0
  254. package/dist/components/ui/drop-downs/table-dropdown.d.ts +10 -0
  255. package/dist/components/ui/drop-downs/text-align.d.ts +8 -0
  256. package/dist/components/ui/drop-downs/text-format.d.ts +11 -0
  257. package/dist/components/ui/dropdown-menu.d.ts +27 -0
  258. package/dist/components/ui/equation/EquationEditor.d.ts +14 -0
  259. package/dist/components/ui/equation/KatexEquationAlterer.d.ts +14 -0
  260. package/dist/components/ui/equation/KatexRenderer.d.ts +13 -0
  261. package/dist/components/ui/excalidraw/ExcalidrawModal.d.ts +48 -0
  262. package/dist/components/ui/excalidraw/Modal.d.ts +16 -0
  263. package/dist/components/ui/hover-card.d.ts +6 -0
  264. package/dist/components/ui/icons/brand-icons.d.ts +5 -0
  265. package/dist/components/ui/image/error-image.d.ts +2 -0
  266. package/dist/components/ui/image/file-upload.d.ts +8 -0
  267. package/dist/components/ui/image/image-resizer.d.ts +10 -0
  268. package/dist/components/ui/image/image-toolbar.d.ts +8 -0
  269. package/dist/components/ui/image/index.d.ts +16 -0
  270. package/dist/components/ui/image/lazy-image.d.ts +10 -0
  271. package/dist/components/ui/image/lazy-video.d.ts +11 -0
  272. package/dist/components/ui/input.d.ts +3 -0
  273. package/dist/components/ui/label.d.ts +5 -0
  274. package/dist/components/ui/models/custom-dialog.d.ts +58 -0
  275. package/dist/components/ui/models/insert-audio.d.ts +7 -0
  276. package/dist/components/ui/models/insert-file.d.ts +7 -0
  277. package/dist/components/ui/models/insert-gif.d.ts +7 -0
  278. package/dist/components/ui/models/insert-image.d.ts +6 -0
  279. package/dist/components/ui/models/insert-poll.d.ts +5 -0
  280. package/dist/components/ui/models/insert-table.d.ts +6 -0
  281. package/dist/components/ui/models/use-model.d.ts +6 -0
  282. package/dist/components/ui/poll/poll-component.d.ts +8 -0
  283. package/dist/components/ui/popover.d.ts +7 -0
  284. package/dist/components/ui/progress.d.ts +4 -0
  285. package/dist/components/ui/scroll-area.d.ts +5 -0
  286. package/dist/components/ui/separator.d.ts +4 -0
  287. package/dist/components/ui/skeleton.d.ts +2 -0
  288. package/dist/components/ui/sonner.d.ts +4 -0
  289. package/dist/components/ui/stepper/step.d.ts +11 -0
  290. package/dist/components/ui/stepper/stepper.d.ts +6 -0
  291. package/dist/components/ui/tabs.d.ts +7 -0
  292. package/dist/components/ui/textarea.d.ts +3 -0
  293. package/dist/components/ui/toggle.d.ts +14 -0
  294. package/dist/components/ui/tooltip.d.ts +7 -0
  295. package/dist/components/ui/write/text-format-floating.d.ts +27 -0
  296. package/dist/components/ui/write/text-format-floting-toolbar.d.ts +26 -0
  297. package/dist/core/chain.d.ts +4 -0
  298. package/dist/core/editor.d.ts +42 -0
  299. package/dist/core/extension.d.ts +20 -0
  300. package/dist/core/extensions/blocks-kit.d.ts +14 -0
  301. package/dist/core/extensions/copilot-and-collab.d.ts +10 -0
  302. package/dist/core/extensions/nodes-and-marks.d.ts +36 -0
  303. package/dist/core/index.d.ts +9 -0
  304. package/dist/core/react/BubbleMenu.d.ts +13 -0
  305. package/dist/core/react/FloatingMenu.d.ts +12 -0
  306. package/dist/core/react/NotiqContent.d.ts +11 -0
  307. package/dist/core/react/NotiqEditor.d.ts +29 -0
  308. package/dist/core/react/context.d.ts +15 -0
  309. package/dist/core/react/index.d.ts +8 -0
  310. package/dist/core/react/useNotiq.d.ts +16 -0
  311. package/dist/core/types.d.ts +88 -0
  312. package/dist/core.d.ts +1 -0
  313. package/dist/core.js +67719 -0
  314. package/dist/core.mjs +132 -0
  315. package/dist/estree-QRALCFII.mjs +5029 -0
  316. package/dist/font-IJKFR4BM.mjs +12 -0
  317. package/dist/font-size-GTL6UVQL.mjs +15 -0
  318. package/dist/hooks/instructions-messages.d.ts +11 -0
  319. package/dist/hooks/use-mobile.d.ts +1 -0
  320. package/dist/hooks/useModal.d.ts +12 -0
  321. package/dist/hooks/useReport.d.ts +8 -0
  322. package/dist/hooks/useResizeObservert.d.ts +1 -0
  323. package/dist/html-CE2S5FIJ.mjs +3185 -0
  324. package/dist/{image-2PJIAYAT.mjs → image-TPW7PZZK.mjs} +360 -325
  325. package/dist/index.d.ts +13 -145
  326. package/dist/index.js +61780 -44629
  327. package/dist/index.mjs +1157 -736
  328. package/dist/insert-audio-C66RZRKY.mjs +180 -0
  329. package/dist/insert-file-3DTGRO7W.mjs +190 -0
  330. package/dist/insert-gif-FIMCCBAI.mjs +112 -0
  331. package/dist/insert-image-CZV6HWQZ.mjs +348 -0
  332. package/dist/insert-node-MA3FXEYN.mjs +245 -0
  333. package/dist/insert-poll-6BCIFY5G.mjs +36 -0
  334. package/dist/insert-table-ZRJP6X52.mjs +70 -0
  335. package/dist/lib/edgestore.d.ts +2 -0
  336. package/dist/lib/index.d.ts +0 -0
  337. package/dist/lib/pinecone-client.d.ts +3 -0
  338. package/dist/lib/utils.d.ts +2 -0
  339. package/dist/markdown-GMCB4RDA.mjs +6753 -0
  340. package/dist/{poll-component-2R4MDLHS.mjs → poll-component-VHMM5KKZ.mjs} +126 -95
  341. package/dist/{postcss-ONF3VDIM.mjs → postcss-GH4QXSB5.mjs} +1879 -1697
  342. package/dist/react.d.ts +1 -0
  343. package/dist/react.js +67651 -0
  344. package/dist/react.mjs +61 -0
  345. package/dist/standalone-A6VDOPCZ.mjs +2506 -0
  346. package/dist/stepper-4AO5XMO7.mjs +356 -0
  347. package/dist/styles/notiq.css +2 -2
  348. package/dist/styles/tailwind-plugin.d.ts +4 -0
  349. package/dist/table-dropdown-4VCRSQB6.mjs +391 -0
  350. package/dist/{text-align-VLECWO4H.mjs → text-align-CSDLJUDA.mjs} +24 -21
  351. package/dist/text-format-6L5N3CHZ.mjs +15 -0
  352. package/dist/typescript-CGC67LRI.mjs +13392 -0
  353. package/dist/utils/docSerialization.d.ts +10 -0
  354. package/dist/utils/emoji-list.d.ts +27 -0
  355. package/dist/utils/getDOMRangeRect.d.ts +8 -0
  356. package/dist/utils/getSelectedNode.d.ts +2 -0
  357. package/dist/utils/getThemeSelector.d.ts +9 -0
  358. package/dist/utils/html.d.ts +9 -0
  359. package/dist/utils/htmlExport.d.ts +9 -0
  360. package/dist/utils/isMobileWidth.d.ts +7 -0
  361. package/dist/utils/joinClasses.d.ts +8 -0
  362. package/dist/utils/setFloatingElemPosition.d.ts +1 -0
  363. package/dist/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
  364. package/dist/utils/swipe.d.ts +11 -0
  365. package/dist/utils/url.d.ts +9 -0
  366. package/package.json +128 -105
  367. package/src/styles/notiq.css +1315 -1057
  368. package/dist/CodeActionMenuPlugin-EINOY4U4.mjs +0 -15
  369. package/dist/DynamicBlockComponent-NRQJ4WW4.mjs +0 -161
  370. package/dist/ExcalidrawComponent-LUZJNFWV.mjs +0 -528
  371. package/dist/ExcalidrawPlugin-HC2L43YG.mjs +0 -14
  372. package/dist/ExportPlugin-V2RLM63S.mjs +0 -11
  373. package/dist/FloatingLinkEditorPlugin-TRTCMSP4.mjs +0 -12
  374. package/dist/FloatingTextFormatToolbarPlugin-ENECEZSX.mjs +0 -30
  375. package/dist/HintComponet-BRL6EAMS.mjs +0 -217
  376. package/dist/MobileToolbar-BOOZAMQE.mjs +0 -268
  377. package/dist/SlashCommand-FHEWHFZU.mjs +0 -28
  378. package/dist/StoryBuilderComponent-JGDBM5JU.mjs +0 -562
  379. package/dist/ToolbarPlugin-2VP7FDWD.mjs +0 -1547
  380. package/dist/babel-JZ2EV6AX.mjs +0 -7233
  381. package/dist/background-color-XZTYLGO2.mjs +0 -362
  382. package/dist/block-format-YJCV2DIY.mjs +0 -15
  383. package/dist/chunk-77KXU36M.mjs +0 -64
  384. package/dist/chunk-AMMKBSST.mjs +0 -1256
  385. package/dist/chunk-EGMI62PP.mjs +0 -83
  386. package/dist/chunk-JXDPPUJI.mjs +0 -52
  387. package/dist/chunk-KJ6AJ44Q.mjs +0 -128
  388. package/dist/chunk-NOJDE3CE.mjs +0 -1906
  389. package/dist/chunk-NZXC6FGU.mjs +0 -214
  390. package/dist/chunk-PBD6LMLC.mjs +0 -366
  391. package/dist/chunk-TTHQCW5F.mjs +0 -47
  392. package/dist/chunk-V2NIZOSQ.mjs +0 -538
  393. package/dist/chunk-WAK5JGNJ.mjs +0 -315
  394. package/dist/chunk-YMBXLRW5.mjs +0 -374
  395. package/dist/chunk-YPHOEJ46.mjs +0 -64
  396. package/dist/chunk-ZJRKATOJ.mjs +0 -65
  397. package/dist/color-BPKOPQKN.mjs +0 -12
  398. package/dist/estree-XC56IUFX.mjs +0 -4414
  399. package/dist/font-FEZ3GKSF.mjs +0 -13
  400. package/dist/font-size-EK775WRH.mjs +0 -15
  401. package/dist/html-S3ACX7NI.mjs +0 -2738
  402. package/dist/index.d.mts +0 -145
  403. package/dist/insert-gif-SAIDYURE.mjs +0 -100
  404. package/dist/insert-image-U3RJN3OW.mjs +0 -259
  405. package/dist/insert-node-WXW4ZER4.mjs +0 -201
  406. package/dist/insert-poll-HCPM7MO6.mjs +0 -33
  407. package/dist/insert-table-24XYUS2W.mjs +0 -66
  408. package/dist/markdown-SNVBOSRA.mjs +0 -3487
  409. package/dist/standalone-EOIALU3M.mjs +0 -2373
  410. package/dist/stepper-JDEE26TX.mjs +0 -304
  411. package/dist/text-format-BG5WOOPZ.mjs +0 -16
  412. package/dist/typescript-AMPI6OVS.mjs +0 -13135
@@ -0,0 +1,4 @@
1
+ /**
2
+ * A Tailwind CSS plugin that adds Notiq's custom theme variables and styles.
3
+ */
4
+ export declare const notiqPlugin: any;
@@ -0,0 +1,391 @@
1
+ "use client";
2
+ import {
3
+ Button
4
+ } from "./chunk-OE5JRLCN.mjs";
5
+ import {
6
+ Popover,
7
+ PopoverContent,
8
+ PopoverTrigger
9
+ } from "./chunk-IIVB6JNE.mjs";
10
+ import {
11
+ cn
12
+ } from "./chunk-JHXDLYEV.mjs";
13
+ import {
14
+ init_react_shim
15
+ } from "./chunk-WYCFGRFJ.mjs";
16
+
17
+ // src/components/ui/drop-downs/table-dropdown.tsx
18
+ init_react_shim();
19
+ import { useState, useCallback } from "react";
20
+ import {
21
+ $createTableNodeWithDimensions,
22
+ $deleteTableColumn__EXPERIMENTAL,
23
+ $deleteTableRow__EXPERIMENTAL,
24
+ $getTableNodeFromLexicalNodeOrThrow,
25
+ $insertTableColumn__EXPERIMENTAL,
26
+ $insertTableRow__EXPERIMENTAL,
27
+ $isTableCellNode,
28
+ $isTableSelection,
29
+ $getNodeTriplet
30
+ } from "@lexical/table";
31
+ import { $insertNodeToNearestRoot } from "@lexical/utils";
32
+ import {
33
+ $getSelection,
34
+ $isRangeSelection,
35
+ $isElementNode
36
+ } from "lexical";
37
+ import {
38
+ Table as TableIcon,
39
+ ChevronRight,
40
+ ChevronDown,
41
+ Trash2,
42
+ ArrowUp,
43
+ ArrowDown,
44
+ ArrowLeft,
45
+ ArrowRight,
46
+ X
47
+ } from "lucide-react";
48
+ import { jsx, jsxs } from "react/jsx-runtime";
49
+ var GRID_MAX_COLS = 8;
50
+ var GRID_MAX_ROWS = 8;
51
+ function TableGridPicker({
52
+ onSelect
53
+ }) {
54
+ const [hoveredRow, setHoveredRow] = useState(6);
55
+ const [hoveredCol, setHoveredCol] = useState(8);
56
+ return /* @__PURE__ */ jsxs("div", { className: "p-3 bg-white dark:bg-zinc-950 border border-zinc-200 dark:border-zinc-800 rounded-xl shadow-2xl flex flex-col items-center", children: [
57
+ /* @__PURE__ */ jsx(
58
+ "div",
59
+ {
60
+ className: "grid gap-1 mb-1 select-none",
61
+ style: {
62
+ gridTemplateColumns: `repeat(${GRID_MAX_COLS}, minmax(0, 1fr))`
63
+ },
64
+ onMouseLeave: () => {
65
+ setHoveredRow(0);
66
+ setHoveredCol(0);
67
+ },
68
+ children: Array.from({ length: GRID_MAX_ROWS }).map((_, rIndex) => {
69
+ const rowNum = rIndex + 1;
70
+ return Array.from({ length: GRID_MAX_COLS }).map((_2, cIndex) => {
71
+ const colNum = cIndex + 1;
72
+ const isHighlighted = rowNum <= hoveredRow && colNum <= hoveredCol;
73
+ return /* @__PURE__ */ jsx(
74
+ "div",
75
+ {
76
+ onMouseEnter: () => {
77
+ setHoveredRow(rowNum);
78
+ setHoveredCol(colNum);
79
+ },
80
+ onClick: () => onSelect(rowNum, colNum),
81
+ className: cn(
82
+ "w-4 h-4 rounded-[2px] transition-colors duration-75 cursor-pointer border",
83
+ isHighlighted ? "bg-zinc-800/10 dark:bg-emerald-500/25 border-zinc-800 dark:border-emerald-500" : "bg-zinc-100/50 dark:bg-zinc-900 border-zinc-200 dark:border-zinc-800 hover:border-zinc-400 dark:hover:border-zinc-700"
84
+ )
85
+ },
86
+ `${rowNum}-${colNum}`
87
+ );
88
+ });
89
+ })
90
+ }
91
+ ),
92
+ /* @__PURE__ */ jsx("div", { className: "text-xs font-mono text-zinc-700 dark:text-zinc-200 font-semibold tracking-wide mt-1", children: hoveredCol > 0 && hoveredRow > 0 ? `${hoveredRow} x ${hoveredCol}` : "Insert Table" })
93
+ ] });
94
+ }
95
+ function TableDropDown({
96
+ editor,
97
+ disabled,
98
+ className
99
+ }) {
100
+ const [isOpen, setIsOpen] = useState(false);
101
+ const [activeSubMenu, setActiveSubMenu] = useState("table");
102
+ const insertTable = useCallback(
103
+ (rows, cols) => {
104
+ editor.update(() => {
105
+ const tableNode = $createTableNodeWithDimensions(rows, cols, true);
106
+ $insertNodeToNearestRoot(tableNode);
107
+ const firstRow = tableNode.getFirstChild();
108
+ const firstCell = $isElementNode(firstRow) ? firstRow.getFirstChild() : null;
109
+ if (firstCell && $isElementNode(firstCell)) {
110
+ firstCell.select();
111
+ }
112
+ });
113
+ setIsOpen(false);
114
+ },
115
+ [editor]
116
+ );
117
+ const insertRowAbove = useCallback(() => {
118
+ editor.update(() => {
119
+ $insertTableRow__EXPERIMENTAL(false);
120
+ });
121
+ setIsOpen(false);
122
+ }, [editor]);
123
+ const insertRowBelow = useCallback(() => {
124
+ editor.update(() => {
125
+ $insertTableRow__EXPERIMENTAL(true);
126
+ });
127
+ setIsOpen(false);
128
+ }, [editor]);
129
+ const deleteRow = useCallback(() => {
130
+ editor.update(() => {
131
+ $deleteTableRow__EXPERIMENTAL();
132
+ });
133
+ setIsOpen(false);
134
+ }, [editor]);
135
+ const insertColLeft = useCallback(() => {
136
+ editor.update(() => {
137
+ $insertTableColumn__EXPERIMENTAL(false);
138
+ });
139
+ setIsOpen(false);
140
+ }, [editor]);
141
+ const insertColRight = useCallback(() => {
142
+ editor.update(() => {
143
+ $insertTableColumn__EXPERIMENTAL(true);
144
+ });
145
+ setIsOpen(false);
146
+ }, [editor]);
147
+ const deleteCol = useCallback(() => {
148
+ editor.update(() => {
149
+ $deleteTableColumn__EXPERIMENTAL();
150
+ });
151
+ setIsOpen(false);
152
+ }, [editor]);
153
+ const deleteTable = useCallback(() => {
154
+ editor.update(() => {
155
+ try {
156
+ const selection = $getSelection();
157
+ if ($isRangeSelection(selection) || $isTableSelection(selection)) {
158
+ const [cell] = $getNodeTriplet(selection.anchor);
159
+ if ($isTableCellNode(cell)) {
160
+ const tableNode = $getTableNodeFromLexicalNodeOrThrow(cell);
161
+ tableNode.remove();
162
+ }
163
+ }
164
+ } catch (e) {
165
+ }
166
+ });
167
+ setIsOpen(false);
168
+ }, [editor]);
169
+ const setCellBgColor = useCallback(
170
+ (color) => {
171
+ editor.update(() => {
172
+ try {
173
+ const selection = $getSelection();
174
+ if ($isRangeSelection(selection) || $isTableSelection(selection)) {
175
+ const [cell] = $getNodeTriplet(selection.anchor);
176
+ if ($isTableCellNode(cell)) {
177
+ cell.setBackgroundColor(color);
178
+ }
179
+ }
180
+ } catch (e) {
181
+ }
182
+ });
183
+ setIsOpen(false);
184
+ },
185
+ [editor]
186
+ );
187
+ return /* @__PURE__ */ jsxs(Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
188
+ /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, disabled, children: /* @__PURE__ */ jsxs(
189
+ Button,
190
+ {
191
+ variant: "ghost",
192
+ size: "Toolbar",
193
+ className: cn(
194
+ "flex items-center gap-1 px-2.5 h-8 rounded-lg hover:bg-zinc-100 dark:hover:bg-zinc-800 text-zinc-700 dark:text-zinc-300 hover:text-zinc-900 dark:hover:text-white transition-colors",
195
+ className
196
+ ),
197
+ title: "Table menu",
198
+ children: [
199
+ /* @__PURE__ */ jsx(TableIcon, { className: "w-4 h-4 text-zinc-700 dark:text-zinc-300" }),
200
+ /* @__PURE__ */ jsx(ChevronDown, { className: "w-3 h-3 text-zinc-400 dark:text-zinc-500" })
201
+ ]
202
+ }
203
+ ) }),
204
+ /* @__PURE__ */ jsxs(
205
+ PopoverContent,
206
+ {
207
+ align: "start",
208
+ sideOffset: 6,
209
+ className: "w-auto p-0 bg-transparent border-none shadow-none z-50 flex items-start gap-2",
210
+ children: [
211
+ activeSubMenu === "table" && /* @__PURE__ */ jsx("div", { className: "animate-in fade-in-50 zoom-in-95 duration-100", children: /* @__PURE__ */ jsx(TableGridPicker, { onSelect: insertTable }) }),
212
+ activeSubMenu === "cell" && /* @__PURE__ */ jsxs("div", { className: "p-3 bg-white dark:bg-zinc-950 border border-zinc-200 dark:border-zinc-800 rounded-xl shadow-2xl w-44 flex flex-col gap-2 animate-in fade-in-50 zoom-in-95 duration-100", children: [
213
+ /* @__PURE__ */ jsx("span", { className: "text-[11px] font-semibold text-zinc-500 dark:text-zinc-400 uppercase tracking-wider", children: "Cell Color" }),
214
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-4 gap-1.5", children: [
215
+ { label: "Clear", color: "" },
216
+ { label: "Dark Zinc", color: "#18181b" },
217
+ { label: "Emerald", color: "#064e3b" },
218
+ { label: "Indigo", color: "#312e81" },
219
+ { label: "Rose", color: "#881337" },
220
+ { label: "Amber", color: "#78350f" },
221
+ { label: "Cyan", color: "#164e63" },
222
+ { label: "Violet", color: "#4c1d95" }
223
+ ].map((swatch) => /* @__PURE__ */ jsx(
224
+ "button",
225
+ {
226
+ type: "button",
227
+ title: swatch.label,
228
+ onClick: () => setCellBgColor(swatch.color),
229
+ className: "w-7 h-7 rounded border border-zinc-300 dark:border-zinc-700 hover:scale-110 transition-transform relative flex items-center justify-center",
230
+ style: {
231
+ backgroundColor: swatch.color || "transparent"
232
+ },
233
+ children: !swatch.color && /* @__PURE__ */ jsx("span", { className: "w-3.5 h-[1.5px] bg-red-500 rotate-45 block" })
234
+ },
235
+ swatch.label
236
+ )) })
237
+ ] }),
238
+ activeSubMenu === "row" && /* @__PURE__ */ jsxs("div", { className: "p-1.5 bg-white dark:bg-zinc-950 border border-zinc-200 dark:border-zinc-800 rounded-xl shadow-2xl w-48 flex flex-col gap-0.5 animate-in fade-in-50 zoom-in-95 duration-100", children: [
239
+ /* @__PURE__ */ jsxs(
240
+ "button",
241
+ {
242
+ onClick: insertRowAbove,
243
+ className: "flex items-center gap-2 px-3 py-2 text-xs text-zinc-700 dark:text-zinc-300 hover:text-zinc-900 dark:hover:text-white hover:bg-zinc-100 dark:hover:bg-zinc-800/80 rounded-lg transition-colors text-left",
244
+ children: [
245
+ /* @__PURE__ */ jsx(ArrowUp, { className: "w-3.5 h-3.5 text-emerald-500" }),
246
+ /* @__PURE__ */ jsx("span", { children: "Insert row above" })
247
+ ]
248
+ }
249
+ ),
250
+ /* @__PURE__ */ jsxs(
251
+ "button",
252
+ {
253
+ onClick: insertRowBelow,
254
+ className: "flex items-center gap-2 px-3 py-2 text-xs text-zinc-700 dark:text-zinc-300 hover:text-zinc-900 dark:hover:text-white hover:bg-zinc-100 dark:hover:bg-zinc-800/80 rounded-lg transition-colors text-left",
255
+ children: [
256
+ /* @__PURE__ */ jsx(ArrowDown, { className: "w-3.5 h-3.5 text-emerald-500" }),
257
+ /* @__PURE__ */ jsx("span", { children: "Insert row below" })
258
+ ]
259
+ }
260
+ ),
261
+ /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-zinc-200 dark:border-zinc-800" }),
262
+ /* @__PURE__ */ jsxs(
263
+ "button",
264
+ {
265
+ onClick: deleteRow,
266
+ className: "flex items-center gap-2 px-3 py-2 text-xs text-red-500 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-950/40 rounded-lg transition-colors text-left",
267
+ children: [
268
+ /* @__PURE__ */ jsx(X, { className: "w-3.5 h-3.5 text-red-500 dark:text-red-400" }),
269
+ /* @__PURE__ */ jsx("span", { children: "Delete row" })
270
+ ]
271
+ }
272
+ )
273
+ ] }),
274
+ activeSubMenu === "column" && /* @__PURE__ */ jsxs("div", { className: "p-1.5 bg-white dark:bg-zinc-950 border border-zinc-200 dark:border-zinc-800 rounded-xl shadow-2xl w-48 flex flex-col gap-0.5 animate-in fade-in-50 zoom-in-95 duration-100", children: [
275
+ /* @__PURE__ */ jsxs(
276
+ "button",
277
+ {
278
+ onClick: insertColLeft,
279
+ className: "flex items-center gap-2 px-3 py-2 text-xs text-zinc-700 dark:text-zinc-300 hover:text-zinc-900 dark:hover:text-white hover:bg-zinc-100 dark:hover:bg-zinc-800/80 rounded-lg transition-colors text-left",
280
+ children: [
281
+ /* @__PURE__ */ jsx(ArrowLeft, { className: "w-3.5 h-3.5 text-emerald-500" }),
282
+ /* @__PURE__ */ jsx("span", { children: "Insert column left" })
283
+ ]
284
+ }
285
+ ),
286
+ /* @__PURE__ */ jsxs(
287
+ "button",
288
+ {
289
+ onClick: insertColRight,
290
+ className: "flex items-center gap-2 px-3 py-2 text-xs text-zinc-700 dark:text-zinc-300 hover:text-zinc-900 dark:hover:text-white hover:bg-zinc-100 dark:hover:bg-zinc-800/80 rounded-lg transition-colors text-left",
291
+ children: [
292
+ /* @__PURE__ */ jsx(ArrowRight, { className: "w-3.5 h-3.5 text-emerald-500" }),
293
+ /* @__PURE__ */ jsx("span", { children: "Insert column right" })
294
+ ]
295
+ }
296
+ ),
297
+ /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-zinc-200 dark:border-zinc-800" }),
298
+ /* @__PURE__ */ jsxs(
299
+ "button",
300
+ {
301
+ onClick: deleteCol,
302
+ className: "flex items-center gap-2 px-3 py-2 text-xs text-red-500 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-950/40 rounded-lg transition-colors text-left",
303
+ children: [
304
+ /* @__PURE__ */ jsx(X, { className: "w-3.5 h-3.5 text-red-500 dark:text-red-400" }),
305
+ /* @__PURE__ */ jsx("span", { children: "Delete column" })
306
+ ]
307
+ }
308
+ )
309
+ ] }),
310
+ /* @__PURE__ */ jsxs("div", { className: "w-48 p-1.5 bg-white dark:bg-zinc-950 border border-zinc-200 dark:border-zinc-800 rounded-xl shadow-2xl backdrop-blur-md flex flex-col gap-0.5 text-zinc-700 dark:text-zinc-300", children: [
311
+ /* @__PURE__ */ jsxs(
312
+ "button",
313
+ {
314
+ onMouseEnter: () => setActiveSubMenu("table"),
315
+ className: cn(
316
+ "flex items-center justify-between w-full px-3 py-2 rounded-lg text-xs font-medium transition-colors",
317
+ activeSubMenu === "table" ? "bg-zinc-100 dark:bg-zinc-800 text-zinc-900 dark:text-white" : "hover:bg-zinc-100/70 dark:hover:bg-zinc-900 text-zinc-700 dark:text-zinc-300"
318
+ ),
319
+ children: [
320
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5", children: [
321
+ /* @__PURE__ */ jsx(TableIcon, { className: "w-4 h-4 text-zinc-700 dark:text-zinc-300" }),
322
+ /* @__PURE__ */ jsx("span", { children: "Table" })
323
+ ] }),
324
+ /* @__PURE__ */ jsx(ChevronRight, { className: "w-3.5 h-3.5 opacity-60" })
325
+ ]
326
+ }
327
+ ),
328
+ /* @__PURE__ */ jsxs(
329
+ "button",
330
+ {
331
+ onMouseEnter: () => setActiveSubMenu("cell"),
332
+ className: cn(
333
+ "flex items-center justify-between w-full px-3 py-2 rounded-lg text-xs font-medium transition-colors pl-9",
334
+ activeSubMenu === "cell" ? "bg-zinc-100 dark:bg-zinc-800 text-zinc-900 dark:text-white" : "hover:bg-zinc-100/70 dark:hover:bg-zinc-900 text-zinc-700 dark:text-zinc-300"
335
+ ),
336
+ children: [
337
+ /* @__PURE__ */ jsx("span", { children: "Cell" }),
338
+ /* @__PURE__ */ jsx(ChevronRight, { className: "w-3.5 h-3.5 opacity-60" })
339
+ ]
340
+ }
341
+ ),
342
+ /* @__PURE__ */ jsxs(
343
+ "button",
344
+ {
345
+ onMouseEnter: () => setActiveSubMenu("row"),
346
+ className: cn(
347
+ "flex items-center justify-between w-full px-3 py-2 rounded-lg text-xs font-medium transition-colors pl-9",
348
+ activeSubMenu === "row" ? "bg-zinc-100 dark:bg-zinc-800 text-zinc-900 dark:text-white" : "hover:bg-zinc-100/70 dark:hover:bg-zinc-900 text-zinc-700 dark:text-zinc-300"
349
+ ),
350
+ children: [
351
+ /* @__PURE__ */ jsx("span", { children: "Row" }),
352
+ /* @__PURE__ */ jsx(ChevronRight, { className: "w-3.5 h-3.5 opacity-60" })
353
+ ]
354
+ }
355
+ ),
356
+ /* @__PURE__ */ jsxs(
357
+ "button",
358
+ {
359
+ onMouseEnter: () => setActiveSubMenu("column"),
360
+ className: cn(
361
+ "flex items-center justify-between w-full px-3 py-2 rounded-lg text-xs font-medium transition-colors pl-9",
362
+ activeSubMenu === "column" ? "bg-zinc-100 dark:bg-zinc-800 text-zinc-900 dark:text-white" : "hover:bg-zinc-100/70 dark:hover:bg-zinc-900 text-zinc-700 dark:text-zinc-300"
363
+ ),
364
+ children: [
365
+ /* @__PURE__ */ jsx("span", { children: "Column" }),
366
+ /* @__PURE__ */ jsx(ChevronRight, { className: "w-3.5 h-3.5 opacity-60" })
367
+ ]
368
+ }
369
+ ),
370
+ /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-zinc-200 dark:border-zinc-800" }),
371
+ /* @__PURE__ */ jsxs(
372
+ "button",
373
+ {
374
+ onClick: deleteTable,
375
+ className: "flex items-center gap-2.5 w-full px-3 py-2 rounded-lg text-xs font-medium text-zinc-600 dark:text-zinc-400 hover:text-red-500 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-950/40 transition-colors",
376
+ children: [
377
+ /* @__PURE__ */ jsx(Trash2, { className: "w-4 h-4" }),
378
+ /* @__PURE__ */ jsx("span", { children: "Delete table" })
379
+ ]
380
+ }
381
+ )
382
+ ] })
383
+ ]
384
+ }
385
+ )
386
+ ] });
387
+ }
388
+ export {
389
+ TableGridPicker,
390
+ TableDropDown as default
391
+ };
@@ -1,21 +1,20 @@
1
- import {
2
- DropDown
3
- } from "./chunk-EGMI62PP.mjs";
4
- import "./chunk-KJ6AJ44Q.mjs";
5
- import "./chunk-64Z3FI7T.mjs";
6
1
  import {
7
2
  SHORTCUTS
8
- } from "./chunk-ZB5LZQKC.mjs";
9
- import "./chunk-WDG7J2DY.mjs";
10
- import "./chunk-BIU7WTLX.mjs";
11
- import "./chunk-YHPNOWFH.mjs";
3
+ } from "./chunk-K5OAFEVY.mjs";
4
+ import {
5
+ DropDown
6
+ } from "./chunk-LU2XWLOE.mjs";
7
+ import "./chunk-H3P47YXJ.mjs";
8
+ import "./chunk-OE5JRLCN.mjs";
9
+ import "./chunk-IIVB6JNE.mjs";
10
+ import "./chunk-JHXDLYEV.mjs";
12
11
  import {
13
12
  init_react_shim
14
- } from "./chunk-77KXU36M.mjs";
13
+ } from "./chunk-WYCFGRFJ.mjs";
15
14
 
16
15
  // src/components/ui/drop-downs/text-align.tsx
17
16
  init_react_shim();
18
- import React, { useMemo } from "react";
17
+ import { useMemo } from "react";
19
18
  import {
20
19
  FORMAT_ELEMENT_COMMAND,
21
20
  INDENT_CONTENT_COMMAND,
@@ -29,6 +28,7 @@ import {
29
28
  OutdentIcon,
30
29
  Indent
31
30
  } from "lucide-react";
31
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
32
32
  function textAlign({
33
33
  editor,
34
34
  value,
@@ -38,7 +38,7 @@ function textAlign({
38
38
  const ELEMENT_FORMAT_OPTIONS = useMemo(
39
39
  () => ({
40
40
  center: {
41
- icon: /* @__PURE__ */ React.createElement(AlignCenter, { className: "w-4 h-4" }),
41
+ icon: /* @__PURE__ */ jsx(AlignCenter, { className: "w-4 h-4" }),
42
42
  func: () => {
43
43
  editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "center");
44
44
  },
@@ -46,7 +46,7 @@ function textAlign({
46
46
  label: "Center Align"
47
47
  },
48
48
  end: {
49
- icon: /* @__PURE__ */ React.createElement(AlignRight, { className: "w-4 h-4" }),
49
+ icon: /* @__PURE__ */ jsx(AlignRight, { className: "w-4 h-4" }),
50
50
  func: () => {
51
51
  editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "end");
52
52
  },
@@ -54,7 +54,7 @@ function textAlign({
54
54
  label: "End Align"
55
55
  },
56
56
  justify: {
57
- icon: /* @__PURE__ */ React.createElement(AlignJustify, { className: "w-4 h-4" }),
57
+ icon: /* @__PURE__ */ jsx(AlignJustify, { className: "w-4 h-4" }),
58
58
  func: () => {
59
59
  editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "justify");
60
60
  },
@@ -62,7 +62,7 @@ function textAlign({
62
62
  label: "Justify Align"
63
63
  },
64
64
  left: {
65
- icon: /* @__PURE__ */ React.createElement(AlignLeft, { className: "w-4 h-4" }),
65
+ icon: /* @__PURE__ */ jsx(AlignLeft, { className: "w-4 h-4" }),
66
66
  func: () => {
67
67
  editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "left");
68
68
  },
@@ -70,7 +70,7 @@ function textAlign({
70
70
  label: "Left Align"
71
71
  },
72
72
  right: {
73
- icon: /* @__PURE__ */ React.createElement(AlignRight, { className: "w-4 h-4" }),
73
+ icon: /* @__PURE__ */ jsx(AlignRight, { className: "w-4 h-4" }),
74
74
  func: () => {
75
75
  editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "right");
76
76
  },
@@ -78,21 +78,21 @@ function textAlign({
78
78
  label: "Right Align"
79
79
  },
80
80
  start: {
81
- icon: /* @__PURE__ */ React.createElement(AlignLeft, { className: "w-4 h-4" }),
81
+ icon: /* @__PURE__ */ jsx(AlignLeft, { className: "w-4 h-4" }),
82
82
  func: () => {
83
83
  editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "start");
84
84
  },
85
85
  label: "Start Align"
86
86
  },
87
87
  Outdent: {
88
- icon: /* @__PURE__ */ React.createElement(OutdentIcon, { className: "w-4 h-4" }),
88
+ icon: /* @__PURE__ */ jsx(OutdentIcon, { className: "w-4 h-4" }),
89
89
  func: () => {
90
90
  editor.dispatchCommand(OUTDENT_CONTENT_COMMAND, void 0);
91
91
  },
92
92
  label: "Outdent"
93
93
  },
94
94
  func: {
95
- icon: /* @__PURE__ */ React.createElement(Indent, { className: "w-4 h-4" }),
95
+ icon: /* @__PURE__ */ jsx(Indent, { className: "w-4 h-4" }),
96
96
  func: () => {
97
97
  editor.dispatchCommand(INDENT_CONTENT_COMMAND, void 0);
98
98
  },
@@ -101,14 +101,17 @@ function textAlign({
101
101
  }),
102
102
  [editor]
103
103
  );
104
- return /* @__PURE__ */ React.createElement(
104
+ return /* @__PURE__ */ jsx(
105
105
  DropDown,
106
106
  {
107
107
  values: Object.values(ELEMENT_FORMAT_OPTIONS),
108
108
  TriggerClassName: { width: "120px", border: "none" },
109
109
  PopoverContentClassName: { width: "220px" },
110
110
  className: "cursor-pointer",
111
- TriggerLabel: /* @__PURE__ */ React.createElement(React.Fragment, null, value ? ELEMENT_FORMAT_OPTIONS[value].icon : ELEMENT_FORMAT_OPTIONS["left"].icon, value || "left"),
111
+ TriggerLabel: /* @__PURE__ */ jsxs(Fragment, { children: [
112
+ value ? ELEMENT_FORMAT_OPTIONS[value].icon : ELEMENT_FORMAT_OPTIONS["left"].icon,
113
+ value || "left"
114
+ ] }),
112
115
  disabled
113
116
  }
114
117
  );
@@ -0,0 +1,15 @@
1
+ import {
2
+ TextFormat
3
+ } from "./chunk-MTQZWJHR.mjs";
4
+ import "./chunk-6D6QLRYR.mjs";
5
+ import "./chunk-K5OAFEVY.mjs";
6
+ import "./chunk-LU2XWLOE.mjs";
7
+ import "./chunk-4FFTOZGJ.mjs";
8
+ import "./chunk-H3P47YXJ.mjs";
9
+ import "./chunk-OE5JRLCN.mjs";
10
+ import "./chunk-IIVB6JNE.mjs";
11
+ import "./chunk-JHXDLYEV.mjs";
12
+ import "./chunk-WYCFGRFJ.mjs";
13
+ export {
14
+ TextFormat as default
15
+ };