@collabchron/notiq 1.1.10 → 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 -1150
  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,787 @@
1
+ import {
2
+ INSERT_DYNAMIC_BLOCK_COMMAND,
3
+ INSERT_STORY_BUILDER_COMMAND,
4
+ InsertEquationDialog,
5
+ InsertInlineImageDialog,
6
+ createDefaultDynamicBlock
7
+ } from "./chunk-Z6JAFF55.mjs";
8
+ import {
9
+ INSERT_POLL_COMMAND
10
+ } from "./chunk-W6VQSFE5.mjs";
11
+ import {
12
+ INSERT_COLLAPSIBLE_COMMAND
13
+ } from "./chunk-ACV47ZKE.mjs";
14
+ import {
15
+ AutoEmbedDialog,
16
+ Figma,
17
+ FigmaEmbedConfig,
18
+ Twitter,
19
+ TwitterEmbedConfig,
20
+ Youtube,
21
+ YoutubeEmbedConfig
22
+ } from "./chunk-LLCP7NVE.mjs";
23
+ import {
24
+ useModal
25
+ } from "./chunk-IAFCQV3Z.mjs";
26
+ import {
27
+ INSERT_IMAGE_COMMAND
28
+ } from "./chunk-MW6MAUY3.mjs";
29
+ import {
30
+ INSERT_LAYOUT_COMMAND
31
+ } from "./chunk-W6GAJXUS.mjs";
32
+ import {
33
+ SHORTCUTS
34
+ } from "./chunk-K5OAFEVY.mjs";
35
+ import {
36
+ EXPORT_HTML_COMMAND,
37
+ EXPORT_JSON_COMMAND,
38
+ EXPORT_MARKDOWN_COMMAND,
39
+ EXPORT_PDF_COMMAND,
40
+ OPEN_IMPORT_EXPORT_MODAL_COMMAND
41
+ } from "./chunk-XYDBUQ6Z.mjs";
42
+ import {
43
+ INSERT_STEPPER_COMMAND,
44
+ initialEditorState
45
+ } from "./chunk-2KESP7OU.mjs";
46
+ import {
47
+ Skeleton
48
+ } from "./chunk-NBE6FF6L.mjs";
49
+ import {
50
+ INSERT_HINT_COMMAND
51
+ } from "./chunk-7QRJVZQY.mjs";
52
+ import {
53
+ cn
54
+ } from "./chunk-JHXDLYEV.mjs";
55
+ import {
56
+ init_react_shim
57
+ } from "./chunk-WYCFGRFJ.mjs";
58
+
59
+ // src/components/editor/plugins/SlashCommand/index.tsx
60
+ init_react_shim();
61
+ import { $createCodeNode } from "@lexical/code";
62
+ import {
63
+ INSERT_CHECK_LIST_COMMAND,
64
+ INSERT_ORDERED_LIST_COMMAND,
65
+ INSERT_UNORDERED_LIST_COMMAND
66
+ } from "@lexical/list";
67
+ import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
68
+ import { INSERT_HORIZONTAL_RULE_COMMAND } from "@lexical/react/LexicalHorizontalRuleNode";
69
+ import {
70
+ LexicalTypeaheadMenuPlugin,
71
+ MenuOption,
72
+ useBasicTypeaheadTriggerMatch
73
+ } from "@lexical/react/LexicalTypeaheadMenuPlugin";
74
+ import { $createHeadingNode, $createQuoteNode } from "@lexical/rich-text";
75
+ import { $setBlocksType } from "@lexical/selection";
76
+ import { INSERT_TABLE_COMMAND } from "@lexical/table";
77
+ import {
78
+ $createParagraphNode,
79
+ $getSelection,
80
+ $isRangeSelection,
81
+ createEditor
82
+ } from "lexical";
83
+ import { useCallback, useMemo, useRef, useState } from "react";
84
+ import * as React from "react";
85
+ import * as ReactDOM from "react-dom";
86
+ import {
87
+ Code2,
88
+ Columns2,
89
+ Columns3,
90
+ Columns4,
91
+ ImageIcon,
92
+ ImagePlayIcon,
93
+ ListCheck,
94
+ Pilcrow,
95
+ QuoteIcon,
96
+ SquarePenIcon,
97
+ StepForward,
98
+ Heading1,
99
+ Heading2,
100
+ Heading3,
101
+ Minus,
102
+ List,
103
+ ListOrdered,
104
+ Table,
105
+ SigmaIcon,
106
+ GitBranch,
107
+ Zap,
108
+ Sparkles,
109
+ Music,
110
+ Paperclip,
111
+ Lightbulb,
112
+ Printer,
113
+ FileText,
114
+ FileDown,
115
+ FileUp,
116
+ FileJson
117
+ } from "lucide-react";
118
+ import { Fragment as Fragment2, jsx, jsxs } from "react/jsx-runtime";
119
+ var InsertGif = React.lazy(() => import("./insert-gif-FIMCCBAI.mjs"));
120
+ var InsertImageDialog = React.lazy(
121
+ () => import("./insert-image-CZV6HWQZ.mjs").then((module) => ({
122
+ default: module.InsertImageDialog
123
+ }))
124
+ );
125
+ var AIDialog = React.lazy(() => import("./AIDialog-2WZUFWSC.mjs"));
126
+ var InsertAudioDialog = React.lazy(() => import("./insert-audio-C66RZRKY.mjs"));
127
+ var InsertFileDialog = React.lazy(() => import("./insert-file-3DTGRO7W.mjs"));
128
+ var CATEGORY_CONFIG = {
129
+ ai: {
130
+ label: "AI Actions",
131
+ badgeClasses: "text-purple-600 dark:text-purple-400 bg-purple-500/10"
132
+ },
133
+ basic: {
134
+ label: "Basic Blocks",
135
+ badgeClasses: "text-zinc-600 dark:text-zinc-400 bg-zinc-500/10"
136
+ },
137
+ media: {
138
+ label: "Media & Content",
139
+ badgeClasses: "text-emerald-600 dark:text-emerald-400 bg-emerald-500/10"
140
+ },
141
+ layout: {
142
+ label: "Layout & Structure",
143
+ badgeClasses: "text-amber-600 dark:text-amber-400 bg-amber-500/10"
144
+ },
145
+ embeds: {
146
+ label: "Embeds & Social",
147
+ badgeClasses: "text-blue-600 dark:text-blue-400 bg-blue-500/10"
148
+ },
149
+ export: {
150
+ label: "Publishing & Export",
151
+ badgeClasses: "text-cyan-600 dark:text-cyan-400 bg-cyan-500/10"
152
+ }
153
+ };
154
+ var ComponentPickerOption = class extends MenuOption {
155
+ constructor(title, options) {
156
+ super(title);
157
+ this.title = title;
158
+ this.keywords = options.keywords || [];
159
+ this.icon = options.icon;
160
+ this.keyboardShortcut = options.keyboardShortcut;
161
+ this.onSelect = options.onSelect.bind(this);
162
+ this.desc = options.desc;
163
+ this.category = options.category || "basic";
164
+ }
165
+ };
166
+ function getDynamicOptions(editor, queryString) {
167
+ const options = [];
168
+ if (queryString == null) {
169
+ return options;
170
+ }
171
+ const tableMatch = queryString.match(/^([1-9]\d?)(?:x([1-9]\d?)?)?$/);
172
+ if (tableMatch !== null) {
173
+ const rows = tableMatch[1];
174
+ const colOptions = tableMatch[2] ? [tableMatch[2]] : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(String);
175
+ options.push(
176
+ ...colOptions.map(
177
+ (columns) => new ComponentPickerOption(`${rows}x${columns} Table`, {
178
+ icon: /* @__PURE__ */ jsx(Table, { className: "h-4 w-4" }),
179
+ keywords: ["table"],
180
+ category: "media",
181
+ desc: `Insert a ${rows} rows by ${columns} columns table`,
182
+ onSelect: () => editor.dispatchCommand(INSERT_TABLE_COMMAND, { columns, rows })
183
+ })
184
+ )
185
+ );
186
+ }
187
+ return options;
188
+ }
189
+ function getBaseOptions(editor, showModal) {
190
+ return [
191
+ // 1. AI Actions
192
+ new ComponentPickerOption("Ask AI Assistant", {
193
+ icon: /* @__PURE__ */ jsx(Sparkles, { className: "h-4 w-4 text-purple-500" }),
194
+ keywords: ["ai", "assistant", "generate", "write", "gpt", "gemini", "smart", "summarize", "prompt"],
195
+ desc: "Generate content, outline, brainstorm, or write with AI",
196
+ keyboardShortcut: "\u2318K",
197
+ category: "ai",
198
+ onSelect: () => showModal(
199
+ "Notiq AI Assistant",
200
+ "Ask AI to write, generate, expand, or format content directly into your document.",
201
+ (onClose) => /* @__PURE__ */ jsx(React.Suspense, { fallback: /* @__PURE__ */ jsx(Skeleton, { className: "mx-2 w-[400px] h-[300px]" }), children: /* @__PURE__ */ jsx(AIDialog, { editor, onClose }) }),
202
+ true
203
+ )
204
+ }),
205
+ // 2. Basic Blocks
206
+ new ComponentPickerOption("Text", {
207
+ icon: /* @__PURE__ */ jsx(Pilcrow, { className: "h-4 w-4" }),
208
+ keywords: ["normal", "paragraph", "p", "text"],
209
+ desc: "Plain text writing block",
210
+ category: "basic",
211
+ onSelect: () => editor.update(() => {
212
+ const selection = $getSelection();
213
+ if ($isRangeSelection(selection)) {
214
+ $setBlocksType(selection, () => $createParagraphNode());
215
+ }
216
+ })
217
+ }),
218
+ ...[1, 2, 3].map(
219
+ (n) => new ComponentPickerOption(`Heading ${n}`, {
220
+ icon: n === 1 ? /* @__PURE__ */ jsx(Heading1, { className: "h-4 w-4" }) : n === 2 ? /* @__PURE__ */ jsx(Heading2, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(Heading3, { className: "h-4 w-4" }),
221
+ keywords: ["heading", "header", `h${n}`, `heading ${n}`],
222
+ category: "basic",
223
+ keyboardShortcut: n === 1 ? SHORTCUTS.HEADING1 : n === 2 ? SHORTCUTS.HEADING2 : SHORTCUTS.HEADING3,
224
+ onSelect: () => editor.update(() => {
225
+ const selection = $getSelection();
226
+ if ($isRangeSelection(selection)) {
227
+ $setBlocksType(selection, () => $createHeadingNode(`h${n}`));
228
+ }
229
+ }),
230
+ desc: n === 1 ? "Large section heading" : n === 2 ? "Medium section heading" : "Small section heading"
231
+ })
232
+ ),
233
+ new ComponentPickerOption("Bulleted List", {
234
+ icon: /* @__PURE__ */ jsx(List, { className: "h-4 w-4" }),
235
+ keywords: ["bulleted list", "unordered list", "ul", "bullets"],
236
+ desc: "Create a list with bullet points",
237
+ category: "basic",
238
+ keyboardShortcut: SHORTCUTS.BULLET_LIST,
239
+ onSelect: () => editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, void 0)
240
+ }),
241
+ new ComponentPickerOption("Numbered List", {
242
+ icon: /* @__PURE__ */ jsx(ListOrdered, { className: "h-4 w-4" }),
243
+ keywords: ["numbered list", "ordered list", "ol", "numbers"],
244
+ desc: "Create a sequential numbered list",
245
+ category: "basic",
246
+ keyboardShortcut: SHORTCUTS.NUMBERED_LIST,
247
+ onSelect: () => editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, void 0)
248
+ }),
249
+ new ComponentPickerOption("Check List", {
250
+ icon: /* @__PURE__ */ jsx(ListCheck, { className: "h-4 w-4" }),
251
+ keywords: ["check list", "todo list", "task", "checkbox"],
252
+ desc: "Track tasks with a to-do checklist",
253
+ category: "basic",
254
+ keyboardShortcut: SHORTCUTS.CHECK_LIST,
255
+ onSelect: () => editor.dispatchCommand(INSERT_CHECK_LIST_COMMAND, void 0)
256
+ }),
257
+ new ComponentPickerOption("Quote", {
258
+ icon: /* @__PURE__ */ jsx(QuoteIcon, { className: "h-4 w-4" }),
259
+ keywords: ["block quote", "quote", "citation"],
260
+ desc: "Capture a prominent quote or excerpt",
261
+ category: "basic",
262
+ keyboardShortcut: SHORTCUTS.QUOTE,
263
+ onSelect: () => editor.update(() => {
264
+ const selection = $getSelection();
265
+ if ($isRangeSelection(selection)) {
266
+ $setBlocksType(selection, () => $createQuoteNode());
267
+ }
268
+ })
269
+ }),
270
+ new ComponentPickerOption("Divider", {
271
+ icon: /* @__PURE__ */ jsx(Minus, { className: "h-4 w-4" }),
272
+ keywords: ["horizontal rule", "divider", "hr", "separator", "line"],
273
+ desc: "Visually separate content sections",
274
+ category: "basic",
275
+ keyboardShortcut: "---",
276
+ onSelect: () => editor.dispatchCommand(INSERT_HORIZONTAL_RULE_COMMAND, void 0)
277
+ }),
278
+ // 3. Media & Content
279
+ new ComponentPickerOption("Code Block", {
280
+ icon: /* @__PURE__ */ jsx(Code2, { className: "h-4 w-4" }),
281
+ keywords: ["javascript", "python", "js", "ts", "codeblock", "code", "syntax"],
282
+ desc: "Syntax highlighted code snippet with line numbers",
283
+ category: "media",
284
+ keyboardShortcut: SHORTCUTS.CODE_BLOCK,
285
+ onSelect: () => editor.update(() => {
286
+ const selection = $getSelection();
287
+ if ($isRangeSelection(selection)) {
288
+ if (selection.isCollapsed()) {
289
+ $setBlocksType(selection, () => $createCodeNode());
290
+ } else {
291
+ const textContent = selection.getTextContent();
292
+ const codeNode = $createCodeNode();
293
+ selection.insertNodes([codeNode]);
294
+ selection.insertRawText(textContent);
295
+ }
296
+ }
297
+ })
298
+ }),
299
+ new ComponentPickerOption("Table", {
300
+ icon: /* @__PURE__ */ jsx(Table, { className: "h-4 w-4" }),
301
+ keywords: ["table", "grid", "spreadsheet", "rows", "columns"],
302
+ desc: "Customizable table with cell actions",
303
+ category: "media",
304
+ keyboardShortcut: "/table",
305
+ onSelect: () => editor.dispatchCommand(INSERT_TABLE_COMMAND, {
306
+ rows: "4",
307
+ columns: "4"
308
+ })
309
+ }),
310
+ new ComponentPickerOption("Callout", {
311
+ icon: /* @__PURE__ */ jsx(Lightbulb, { className: "h-4 w-4 text-emerald-500" }),
312
+ keywords: [
313
+ "callout",
314
+ "hint",
315
+ "note",
316
+ "tip",
317
+ "info",
318
+ "admonition",
319
+ "alert",
320
+ "warning",
321
+ "important",
322
+ "caution"
323
+ ],
324
+ desc: "Notion-style callout box with icon and style picker",
325
+ category: "media",
326
+ keyboardShortcut: "/callout",
327
+ onSelect: () => editor.dispatchCommand(INSERT_HINT_COMMAND, "tip")
328
+ }),
329
+ new ComponentPickerOption("Image", {
330
+ icon: /* @__PURE__ */ jsx(ImageIcon, { className: "h-4 w-4" }),
331
+ keywords: ["image", "photo", "picture", "file", "img", "upload"],
332
+ desc: "Upload or embed an image with caption",
333
+ category: "media",
334
+ onSelect: () => showModal(
335
+ "Insert Image",
336
+ "Please select an image to upload.",
337
+ (onClose) => /* @__PURE__ */ jsx(
338
+ React.Suspense,
339
+ {
340
+ fallback: /* @__PURE__ */ jsx(Skeleton, { className: "mx-2 w-[350px] h-[350px]" }),
341
+ children: /* @__PURE__ */ jsx(InsertImageDialog, { activeEditor: editor, onClose })
342
+ }
343
+ ),
344
+ true
345
+ )
346
+ }),
347
+ new ComponentPickerOption("Inline Image", {
348
+ icon: /* @__PURE__ */ jsx(ImageIcon, { className: "h-4 w-4" }),
349
+ keywords: ["image", "inline", "photo", "picture", "img"],
350
+ desc: "Insert an inline image into text",
351
+ category: "media",
352
+ onSelect: () => showModal(
353
+ "Insert Image",
354
+ "Please select an image to upload.",
355
+ (onClose) => /* @__PURE__ */ jsx(
356
+ React.Suspense,
357
+ {
358
+ fallback: /* @__PURE__ */ jsx(Skeleton, { className: "mx-2 w-[350px] h-[350px]" }),
359
+ children: /* @__PURE__ */ jsx(
360
+ InsertInlineImageDialog,
361
+ {
362
+ activeEditor: editor,
363
+ onClose
364
+ }
365
+ )
366
+ }
367
+ ),
368
+ true
369
+ )
370
+ }),
371
+ new ComponentPickerOption("Audio Player", {
372
+ icon: /* @__PURE__ */ jsx(Music, { className: "h-4 w-4 text-cyan-500" }),
373
+ keywords: ["audio", "music", "sound", "podcast", "mp3", "track", "voice"],
374
+ desc: "Embed an audio player, podcast, or sound track",
375
+ category: "media",
376
+ onSelect: () => showModal(
377
+ "Insert Audio",
378
+ "Embed an audio file or stream",
379
+ (onClose) => /* @__PURE__ */ jsx(
380
+ React.Suspense,
381
+ {
382
+ fallback: /* @__PURE__ */ jsx(Skeleton, { className: "mx-2 w-[350px] h-[250px]" }),
383
+ children: /* @__PURE__ */ jsx(InsertAudioDialog, { activeEditor: editor, onClose })
384
+ }
385
+ ),
386
+ true
387
+ )
388
+ }),
389
+ new ComponentPickerOption("Attach File", {
390
+ icon: /* @__PURE__ */ jsx(Paperclip, { className: "h-4 w-4 text-emerald-500" }),
391
+ keywords: ["file", "attachment", "doc", "pdf", "zip", "upload", "download"],
392
+ desc: "Embed a downloadable document attachment card",
393
+ category: "media",
394
+ onSelect: () => showModal(
395
+ "Attach File",
396
+ "Upload or link a document",
397
+ (onClose) => /* @__PURE__ */ jsx(
398
+ React.Suspense,
399
+ {
400
+ fallback: /* @__PURE__ */ jsx(Skeleton, { className: "mx-2 w-[350px] h-[250px]" }),
401
+ children: /* @__PURE__ */ jsx(InsertFileDialog, { activeEditor: editor, onClose })
402
+ }
403
+ ),
404
+ true
405
+ )
406
+ }),
407
+ new ComponentPickerOption("Equation", {
408
+ icon: /* @__PURE__ */ jsx(SigmaIcon, { className: "w-4 h-4" }),
409
+ keywords: ["equation", "latex", "math", "formula"],
410
+ desc: "Mathematical equations using LaTeX syntax",
411
+ category: "media",
412
+ keyboardShortcut: "$$",
413
+ onSelect: () => showModal(
414
+ "Insert Equation",
415
+ "Insert mathematical equations using LaTeX syntax.",
416
+ (onClose) => /* @__PURE__ */ jsx(
417
+ React.Suspense,
418
+ {
419
+ fallback: /* @__PURE__ */ jsx(Skeleton, { className: "mx-2 w-[350px] h-[350px]" }),
420
+ children: /* @__PURE__ */ jsx(
421
+ InsertEquationDialog,
422
+ {
423
+ activeEditor: editor,
424
+ onClose
425
+ }
426
+ )
427
+ }
428
+ ),
429
+ true
430
+ )
431
+ }),
432
+ new ComponentPickerOption("Gifs", {
433
+ icon: /* @__PURE__ */ jsx(ImagePlayIcon, { className: "h-4 w-4" }),
434
+ keywords: ["gif", "gifs", "videos", "short video", "animation"],
435
+ desc: "Search and insert animated GIFs",
436
+ category: "media",
437
+ onSelect: () => {
438
+ showModal(
439
+ "Insert GIF",
440
+ "Please select a GIF to upload.",
441
+ (onClose) => /* @__PURE__ */ jsx(
442
+ React.Suspense,
443
+ {
444
+ fallback: /* @__PURE__ */ jsx(Skeleton, { className: "mx-2 w-[400px] h-[400px]" }),
445
+ children: /* @__PURE__ */ jsx(
446
+ InsertGif,
447
+ {
448
+ insertGifOnClick: (payload) => {
449
+ editor.dispatchCommand(INSERT_IMAGE_COMMAND, payload);
450
+ },
451
+ onClose
452
+ }
453
+ )
454
+ }
455
+ ),
456
+ true
457
+ );
458
+ }
459
+ }),
460
+ new ComponentPickerOption("Poll", {
461
+ icon: /* @__PURE__ */ jsx(SquarePenIcon, { className: "h-4 w-4" }),
462
+ keywords: ["poll", "vote", "survey", "choice"],
463
+ desc: "Interactive community voting poll",
464
+ category: "media",
465
+ onSelect: () => editor.dispatchCommand(INSERT_POLL_COMMAND, "Type the Question")
466
+ }),
467
+ // 4. Layout & Structure
468
+ new ComponentPickerOption("2 columns", {
469
+ icon: /* @__PURE__ */ jsx(Columns2, { className: "h-4 w-4" }),
470
+ keywords: ["columns", "flex", "row", "layout", "grid", "2columns", "two columns"],
471
+ desc: "Split your content into 2 equal columns",
472
+ category: "layout",
473
+ onSelect: () => editor.dispatchCommand(INSERT_LAYOUT_COMMAND, "1fr 1fr")
474
+ }),
475
+ new ComponentPickerOption("3 columns", {
476
+ icon: /* @__PURE__ */ jsx(Columns3, { className: "h-4 w-4" }),
477
+ keywords: ["3columns", "3", "flex", "row", "layout", "grid", "three columns"],
478
+ desc: "Split your content into 3 equal columns",
479
+ category: "layout",
480
+ onSelect: () => editor.dispatchCommand(INSERT_LAYOUT_COMMAND, "1fr 1fr 1fr")
481
+ }),
482
+ new ComponentPickerOption("4 columns", {
483
+ icon: /* @__PURE__ */ jsx(Columns4, { className: "h-4 w-4" }),
484
+ keywords: ["4columns", "4", "flex", "row", "layout", "grid", "four columns"],
485
+ desc: "Split your content into 4 equal columns",
486
+ category: "layout",
487
+ onSelect: () => editor.dispatchCommand(INSERT_LAYOUT_COMMAND, "1fr 1fr 1fr 1fr")
488
+ }),
489
+ new ComponentPickerOption("Collapsible", {
490
+ icon: /* @__PURE__ */ jsx(StepForward, { className: "h-4 w-4" }),
491
+ keywords: ["collapse", "collapsible", "toggle", "accordion"],
492
+ desc: "Expandable/collapsible toggle section",
493
+ category: "layout",
494
+ onSelect: () => editor.dispatchCommand(INSERT_COLLAPSIBLE_COMMAND, void 0)
495
+ }),
496
+ new ComponentPickerOption("Stepper", {
497
+ icon: /* @__PURE__ */ jsx("svg", { className: "h-4 w-4", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxs("g", { fill: "none", fillRule: "evenodd", children: [
498
+ /* @__PURE__ */ jsx("path", { d: "m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z" }),
499
+ /* @__PURE__ */ jsx(
500
+ "path",
501
+ {
502
+ fill: "currentColor",
503
+ d: "M5 6a3 3 0 0 1 6 0v2a3 3 0 0 1-6 0zm3-1a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0V6a1 1 0 0 0-1-1m9.707-.707a1 1 0 0 0-1.414 0L13.465 7.12a1 1 0 0 0 1.414 1.415L16 7.414V20a1 1 0 1 0 2 0V7.414l1.121 1.122a1 1 0 1 0 1.415-1.415zM5 15a3 3 0 0 1 5.995-.176l.005.186c0 .408-.039.799-.107 1.171c-.264 1.433-.964 2.58-1.57 3.352c-.307.39-.598.694-.815.904c-.124.12-.25.238-.385.345a1 1 0 0 1-1.34-1.479L7.118 19l.224-.228A7 7 0 0 0 7.971 18A3 3 0 0 1 5 15m3-1a1 1 0 1 0 0 2a1 1 0 0 0 0-2"
504
+ }
505
+ )
506
+ ] }) }),
507
+ keywords: ["stepper", "step", "lines", "routes", "docs", "number", "workflow", "process"],
508
+ desc: "Numbered step-by-step documentation workflow",
509
+ category: "layout",
510
+ onSelect: () => {
511
+ const newEditor = createEditor();
512
+ const parsedEditorState = newEditor.parseEditorState(
513
+ JSON.stringify(initialEditorState)
514
+ );
515
+ newEditor.setEditorState(parsedEditorState);
516
+ const newStep = {
517
+ id: 0,
518
+ title: `New step 0`,
519
+ content: newEditor
520
+ };
521
+ editor.dispatchCommand(INSERT_STEPPER_COMMAND, [newStep]);
522
+ }
523
+ }),
524
+ // 5. Embeds & Social
525
+ new ComponentPickerOption("YouTube", {
526
+ icon: /* @__PURE__ */ jsx(Youtube, { className: "h-4 w-4" }),
527
+ keywords: ["Youtube", "youtube", "video", "stream", "media"],
528
+ desc: "Embed responsive YouTube videos",
529
+ category: "embeds",
530
+ onSelect: () => {
531
+ showModal(
532
+ "YouTube Video",
533
+ "Insert a URL to embed a live preview. Works with YouTube",
534
+ (onClose) => /* @__PURE__ */ jsx(
535
+ AutoEmbedDialog,
536
+ {
537
+ embedConfig: YoutubeEmbedConfig,
538
+ onClose
539
+ }
540
+ ),
541
+ true
542
+ );
543
+ }
544
+ }),
545
+ new ComponentPickerOption("Figma", {
546
+ icon: /* @__PURE__ */ jsx(Figma, { className: "h-4 w-4" }),
547
+ keywords: ["figma", "figma.com", "ui", "design", "prototype"],
548
+ desc: "Embed interactive Figma design preview",
549
+ category: "embeds",
550
+ onSelect: () => {
551
+ showModal(
552
+ "Figma",
553
+ "Insert a URL to embed a live preview. Works with Figma",
554
+ (onClose) => /* @__PURE__ */ jsx(
555
+ AutoEmbedDialog,
556
+ {
557
+ embedConfig: FigmaEmbedConfig,
558
+ onClose
559
+ }
560
+ ),
561
+ true
562
+ );
563
+ }
564
+ }),
565
+ new ComponentPickerOption("Twitter / X", {
566
+ icon: /* @__PURE__ */ jsx(Twitter, { className: "h-4 w-4" }),
567
+ keywords: ["Twitter", "tweet", "x", "twitter", "post"],
568
+ desc: "Embed live tweet post",
569
+ category: "embeds",
570
+ onSelect: () => {
571
+ showModal(
572
+ "Twitter / X Post",
573
+ "Insert a URL to embed a live preview. Works with Twitter",
574
+ (onClose) => /* @__PURE__ */ jsx(
575
+ AutoEmbedDialog,
576
+ {
577
+ embedConfig: TwitterEmbedConfig,
578
+ onClose
579
+ }
580
+ ),
581
+ true
582
+ );
583
+ }
584
+ }),
585
+ new ComponentPickerOption("Interactive Story", {
586
+ icon: /* @__PURE__ */ jsx(GitBranch, { className: "h-4 w-4" }),
587
+ keywords: ["story", "interactive", "branching", "narrative", "choose", "adventure"],
588
+ desc: "Create branching narratives with reader choices",
589
+ category: "embeds",
590
+ onSelect: () => editor.dispatchCommand(INSERT_STORY_BUILDER_COMMAND, {
591
+ nodes: [],
592
+ currentNodeId: "",
593
+ title: "Interactive Story"
594
+ })
595
+ }),
596
+ new ComponentPickerOption("Dynamic Block", {
597
+ icon: /* @__PURE__ */ jsx(Zap, { className: "h-4 w-4" }),
598
+ keywords: ["dynamic", "interactive", "content", "block", "trigger", "animation", "responsive"],
599
+ desc: "Create interactive content that responds to user actions",
600
+ category: "embeds",
601
+ onSelect: () => editor.dispatchCommand(INSERT_DYNAMIC_BLOCK_COMMAND, createDefaultDynamicBlock())
602
+ }),
603
+ // 6. Publishing & Export
604
+ new ComponentPickerOption("Import / Export Hub", {
605
+ icon: /* @__PURE__ */ jsx(FileDown, { className: "h-4 w-4 text-primary" }),
606
+ keywords: ["export", "import", "hub", "share", "backup", "markdown", "pdf", "html", "json"],
607
+ desc: "Open unified Document Import & Export Hub",
608
+ category: "export",
609
+ onSelect: () => editor.dispatchCommand(OPEN_IMPORT_EXPORT_MODAL_COMMAND, { defaultTab: "export" })
610
+ }),
611
+ new ComponentPickerOption("Import Document", {
612
+ icon: /* @__PURE__ */ jsx(FileUp, { className: "h-4 w-4 text-emerald-500" }),
613
+ keywords: ["import", "upload", "load", "markdown", "html", "json", "open"],
614
+ desc: "Import Markdown, HTML, JSON, or Plain text",
615
+ category: "export",
616
+ onSelect: () => editor.dispatchCommand(OPEN_IMPORT_EXPORT_MODAL_COMMAND, { defaultTab: "import" })
617
+ }),
618
+ new ComponentPickerOption("Export to PDF", {
619
+ icon: /* @__PURE__ */ jsx(Printer, { className: "h-4 w-4 text-red-500" }),
620
+ keywords: ["export", "pdf", "print", "save", "document"],
621
+ desc: "Export document as print-ready PDF",
622
+ category: "export",
623
+ onSelect: () => editor.dispatchCommand(EXPORT_PDF_COMMAND, void 0)
624
+ }),
625
+ new ComponentPickerOption("Export to Markdown", {
626
+ icon: /* @__PURE__ */ jsx(FileText, { className: "h-4 w-4 text-blue-500" }),
627
+ keywords: ["export", "markdown", "md", "github"],
628
+ desc: "Export document as clean Markdown (.md)",
629
+ category: "export",
630
+ onSelect: () => editor.dispatchCommand(EXPORT_MARKDOWN_COMMAND, void 0)
631
+ }),
632
+ new ComponentPickerOption("Export to HTML", {
633
+ icon: /* @__PURE__ */ jsx(Code2, { className: "h-4 w-4 text-orange-500" }),
634
+ keywords: ["export", "html", "web", "download"],
635
+ desc: "Export document as standalone styled HTML",
636
+ category: "export",
637
+ onSelect: () => editor.dispatchCommand(EXPORT_HTML_COMMAND, void 0)
638
+ }),
639
+ new ComponentPickerOption("Export JSON State", {
640
+ icon: /* @__PURE__ */ jsx(FileJson, { className: "h-4 w-4 text-emerald-600" }),
641
+ keywords: ["export", "json", "backup", "state", "lexical"],
642
+ desc: "Export full document state snapshot for backup",
643
+ category: "export",
644
+ onSelect: () => editor.dispatchCommand(EXPORT_JSON_COMMAND, void 0)
645
+ })
646
+ ];
647
+ }
648
+ function SlashCommand() {
649
+ const [editor] = useLexicalComposerContext();
650
+ const [Modal, showModal] = useModal();
651
+ const [queryString, setQueryString] = useState(null);
652
+ const activeItemRef = useRef(null);
653
+ const checkForTriggerMatch = useBasicTypeaheadTriggerMatch("/", {
654
+ minLength: 0
655
+ });
656
+ const options = useMemo(() => {
657
+ const baseOptions = getBaseOptions(editor, showModal);
658
+ if (!queryString) {
659
+ return baseOptions;
660
+ }
661
+ const regex = new RegExp(queryString, "i");
662
+ return [
663
+ ...getDynamicOptions(editor, queryString),
664
+ ...baseOptions.filter(
665
+ (option) => regex.test(option.title) || regex.test(option.category) || option.keywords.some((keyword) => regex.test(keyword))
666
+ )
667
+ ];
668
+ }, [editor, queryString, showModal]);
669
+ const onSelectOption = useCallback(
670
+ (selectedOption, nodeToRemove, closeMenu, matchingString) => {
671
+ editor.update(() => {
672
+ nodeToRemove == null ? void 0 : nodeToRemove.remove();
673
+ selectedOption.onSelect(matchingString);
674
+ closeMenu();
675
+ });
676
+ },
677
+ [editor]
678
+ );
679
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
680
+ /* @__PURE__ */ jsx(
681
+ LexicalTypeaheadMenuPlugin,
682
+ {
683
+ onQueryChange: setQueryString,
684
+ onSelectOption,
685
+ triggerFn: checkForTriggerMatch,
686
+ options,
687
+ menuRenderFn: (anchorElementRef, { selectedIndex, selectOptionAndCleanUp, setHighlightedIndex }) => {
688
+ if (!anchorElementRef.current || !options.length) {
689
+ return null;
690
+ }
691
+ let lastCategory = "";
692
+ return ReactDOM.createPortal(
693
+ /* @__PURE__ */ jsxs(
694
+ "div",
695
+ {
696
+ id: "slash-command-menu",
697
+ className: "z-[100] relative max-w-[360px] w-88 max-h-[420px] rounded-2xl border border-zinc-200/90 dark:border-zinc-800 bg-white/95 dark:bg-zinc-900/95 text-zinc-900 dark:text-zinc-100 shadow-2xl backdrop-blur-xl overflow-hidden flex flex-col animate-in fade-in-0 zoom-in-95 duration-100",
698
+ children: [
699
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-3.5 py-2.5 border-b border-zinc-200/70 dark:border-zinc-800/80 bg-zinc-50/60 dark:bg-zinc-900/60 select-none", children: [
700
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs text-zinc-500 dark:text-zinc-400", children: [
701
+ /* @__PURE__ */ jsx("span", { className: "font-mono px-1.5 py-0.5 rounded bg-zinc-200/70 dark:bg-zinc-800 text-[11px] font-semibold text-zinc-700 dark:text-zinc-300", children: "/" }),
702
+ /* @__PURE__ */ jsx("span", { className: "font-medium", children: queryString ? `Filter: "${queryString}"` : "Commands & Blocks" })
703
+ ] }),
704
+ /* @__PURE__ */ jsxs("span", { className: "text-[10px] text-zinc-400 dark:text-zinc-500 font-mono", children: [
705
+ options.length,
706
+ " ",
707
+ options.length === 1 ? "option" : "options"
708
+ ] })
709
+ ] }),
710
+ /* @__PURE__ */ jsx(
711
+ "div",
712
+ {
713
+ className: "max-h-[360px] overflow-y-auto p-1.5 overscroll-contain",
714
+ role: "listbox",
715
+ "aria-label": "Slash commands",
716
+ children: options.map((option, i) => {
717
+ const showCategoryHeader = option.category !== lastCategory;
718
+ lastCategory = option.category;
719
+ const isSelected = selectedIndex === i;
720
+ const catConfig = CATEGORY_CONFIG[option.category];
721
+ return /* @__PURE__ */ jsxs(React.Fragment, { children: [
722
+ showCategoryHeader && /* @__PURE__ */ jsx("div", { className: "px-2.5 pt-3 pb-1 first:pt-1 text-[11px] font-semibold text-zinc-400 dark:text-zinc-500 uppercase tracking-wider select-none flex items-center justify-between", children: /* @__PURE__ */ jsx("span", { children: (catConfig == null ? void 0 : catConfig.label) || option.category }) }),
723
+ /* @__PURE__ */ jsxs(
724
+ "div",
725
+ {
726
+ ref: (el) => {
727
+ if (isSelected) {
728
+ activeItemRef.current = el;
729
+ el == null ? void 0 : el.scrollIntoView({ block: "nearest" });
730
+ }
731
+ },
732
+ role: "option",
733
+ "aria-selected": isSelected,
734
+ className: cn(
735
+ "group flex items-center gap-2.5 rounded-xl px-2.5 py-2 text-sm transition-all cursor-pointer select-none",
736
+ isSelected ? "bg-zinc-100 dark:bg-zinc-800/90 text-zinc-900 dark:text-zinc-50 font-medium shadow-2xs" : "hover:bg-zinc-50 dark:hover:bg-zinc-800/50 text-zinc-700 dark:text-zinc-300"
737
+ ),
738
+ onClick: () => {
739
+ setHighlightedIndex(i);
740
+ selectOptionAndCleanUp(option);
741
+ },
742
+ onMouseEnter: () => {
743
+ setHighlightedIndex(i);
744
+ },
745
+ children: [
746
+ /* @__PURE__ */ jsx(
747
+ "div",
748
+ {
749
+ className: cn(
750
+ "flex h-8 w-8 shrink-0 items-center justify-center rounded-lg border border-zinc-200/80 dark:border-zinc-800/80 bg-zinc-50 dark:bg-zinc-800/60 text-zinc-600 dark:text-zinc-300 transition-colors",
751
+ isSelected && "border-primary/40 bg-primary/10 text-primary dark:text-primary-foreground",
752
+ option.category === "ai" && "border-purple-300 dark:border-purple-800/50 bg-purple-50 dark:bg-purple-950/30 text-purple-600 dark:text-purple-400"
753
+ ),
754
+ children: option.icon
755
+ }
756
+ ),
757
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 min-w-0", children: [
758
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
759
+ /* @__PURE__ */ jsx("span", { className: "truncate text-sm", children: option.title }),
760
+ option.keyboardShortcut && /* @__PURE__ */ jsx("span", { className: "shrink-0 text-[10px] font-mono px-1.5 py-0.5 rounded border border-zinc-200/60 dark:border-zinc-800 bg-zinc-100/60 dark:bg-zinc-800/60 text-zinc-500 dark:text-zinc-400", children: option.keyboardShortcut })
761
+ ] }),
762
+ option.desc && /* @__PURE__ */ jsx("span", { className: "truncate text-xs text-zinc-500 dark:text-zinc-400 font-normal", children: option.desc })
763
+ ] })
764
+ ]
765
+ }
766
+ )
767
+ ] }, option.key);
768
+ })
769
+ }
770
+ )
771
+ ]
772
+ }
773
+ ),
774
+ anchorElementRef.current
775
+ );
776
+ }
777
+ }
778
+ ),
779
+ Modal
780
+ ] });
781
+ }
782
+
783
+ export {
784
+ CATEGORY_CONFIG,
785
+ ComponentPickerOption,
786
+ SlashCommand
787
+ };