phx-react 1.3.1570 → 1.3.1571

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 (847) hide show
  1. package/dist/cjs/components/TextEditorV2/commenting/index.d.ts +41 -0
  2. package/dist/cjs/components/TextEditorV2/commenting/index.js +340 -0
  3. package/dist/cjs/components/TextEditorV2/commenting/index.js.map +1 -0
  4. package/dist/cjs/components/TextEditorV2/constants.d.ts +1 -0
  5. package/dist/cjs/components/TextEditorV2/constants.js +5 -0
  6. package/dist/cjs/components/TextEditorV2/constants.js.map +1 -0
  7. package/dist/cjs/components/TextEditorV2/context/SettingsContext.d.ts +12 -0
  8. package/dist/cjs/components/TextEditorV2/context/SettingsContext.js +59 -0
  9. package/dist/cjs/components/TextEditorV2/context/SettingsContext.js.map +1 -0
  10. package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.d.ts +10 -0
  11. package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.js +50 -0
  12. package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.js.map +1 -0
  13. package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.d.ts +11 -0
  14. package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.js +17 -0
  15. package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.js.map +1 -0
  16. package/dist/cjs/components/TextEditorV2/editor.d.ts +10 -0
  17. package/dist/cjs/components/TextEditorV2/editor.js +203 -0
  18. package/dist/cjs/components/TextEditorV2/editor.js.map +1 -0
  19. package/dist/cjs/components/TextEditorV2/hooks/useModal.d.ts +5 -0
  20. package/dist/cjs/components/TextEditorV2/hooks/useModal.js +32 -0
  21. package/dist/cjs/components/TextEditorV2/hooks/useModal.js.map +1 -0
  22. package/dist/cjs/components/TextEditorV2/hooks/useReport.d.ts +1 -0
  23. package/dist/cjs/components/TextEditorV2/hooks/useReport.js +45 -0
  24. package/dist/cjs/components/TextEditorV2/hooks/useReport.js.map +1 -0
  25. package/dist/cjs/components/TextEditorV2/lib/Settings.d.ts +2 -0
  26. package/dist/cjs/components/TextEditorV2/lib/Settings.js +52 -0
  27. package/dist/cjs/components/TextEditorV2/lib/Settings.js.map +1 -0
  28. package/dist/cjs/components/TextEditorV2/lib/appSettings.d.ts +19 -0
  29. package/dist/cjs/components/TextEditorV2/lib/appSettings.js +21 -0
  30. package/dist/cjs/components/TextEditorV2/lib/appSettings.js.map +1 -0
  31. package/dist/cjs/components/TextEditorV2/lib/collaboration.d.ts +3 -0
  32. package/dist/cjs/components/TextEditorV2/lib/collaboration.js +26 -0
  33. package/dist/cjs/components/TextEditorV2/lib/collaboration.js.map +1 -0
  34. package/dist/cjs/components/TextEditorV2/lib/setupEnv.d.ts +1 -0
  35. package/dist/cjs/components/TextEditorV2/lib/setupEnv.js +23 -0
  36. package/dist/cjs/components/TextEditorV2/lib/setupEnv.js.map +1 -0
  37. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.d.ts +25 -0
  38. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.js +58 -0
  39. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.js.map +1 -0
  40. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.d.ts +18 -0
  41. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.js +62 -0
  42. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.js.map +1 -0
  43. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.d.ts +9 -0
  44. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.js +72 -0
  45. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.js.map +1 -0
  46. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.d.ts +26 -0
  47. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.js +126 -0
  48. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.js.map +1 -0
  49. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.d.ts +6 -0
  50. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js +117 -0
  51. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js.map +1 -0
  52. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.d.ts +50 -0
  53. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js +59 -0
  54. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js.map +1 -0
  55. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.d.ts +44 -0
  56. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js +143 -0
  57. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js.map +1 -0
  58. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.d.ts +22 -0
  59. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.js +103 -0
  60. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.js.map +1 -0
  61. package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.d.ts +12 -0
  62. package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.js +106 -0
  63. package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.js.map +1 -0
  64. package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.d.ts +19 -0
  65. package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.js +63 -0
  66. package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.js.map +1 -0
  67. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.d.ts +14 -0
  68. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.js +212 -0
  69. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.js.map +1 -0
  70. package/dist/cjs/components/TextEditorV2/nodes/ImageNode.d.ts +56 -0
  71. package/dist/cjs/components/TextEditorV2/nodes/ImageNode.js +136 -0
  72. package/dist/cjs/components/TextEditorV2/nodes/ImageNode.js.map +1 -0
  73. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.d.ts +18 -0
  74. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.js +194 -0
  75. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.js.map +1 -0
  76. package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.d.ts +54 -0
  77. package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.js +142 -0
  78. package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.js.map +1 -0
  79. package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.d.ts +15 -0
  80. package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.js +54 -0
  81. package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.js.map +1 -0
  82. package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.d.ts +21 -0
  83. package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.js +63 -0
  84. package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.js.map +1 -0
  85. package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.d.ts +15 -0
  86. package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.js +51 -0
  87. package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.js.map +1 -0
  88. package/dist/cjs/components/TextEditorV2/nodes/MentionNode.d.ts +20 -0
  89. package/dist/cjs/components/TextEditorV2/nodes/MentionNode.js +89 -0
  90. package/dist/cjs/components/TextEditorV2/nodes/MentionNode.js.map +1 -0
  91. package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.d.ts +17 -0
  92. package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.js +113 -0
  93. package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.js.map +1 -0
  94. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.d.ts +3 -0
  95. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.js +68 -0
  96. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.js.map +1 -0
  97. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.d.ts +8 -0
  98. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.js +113 -0
  99. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.js.map +1 -0
  100. package/dist/cjs/components/TextEditorV2/nodes/PollNode.d.ts +33 -0
  101. package/dist/cjs/components/TextEditorV2/nodes/PollNode.js +149 -0
  102. package/dist/cjs/components/TextEditorV2/nodes/PollNode.js.map +1 -0
  103. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.d.ts +9 -0
  104. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.js +167 -0
  105. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.js.map +1 -0
  106. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.d.ts +37 -0
  107. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.js +94 -0
  108. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.js.map +1 -0
  109. package/dist/cjs/components/TextEditorV2/nodes/TableNode.d.ts +54 -0
  110. package/dist/cjs/components/TextEditorV2/nodes/TableNode.js +198 -0
  111. package/dist/cjs/components/TextEditorV2/nodes/TableNode.js.map +1 -0
  112. package/dist/cjs/components/TextEditorV2/nodes/TweetNode.d.ts +28 -0
  113. package/dist/cjs/components/TextEditorV2/nodes/TweetNode.js +156 -0
  114. package/dist/cjs/components/TextEditorV2/nodes/TweetNode.js.map +1 -0
  115. package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.d.ts +28 -0
  116. package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.js +103 -0
  117. package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.js.map +1 -0
  118. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.d.ts +2 -0
  119. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.js +183 -0
  120. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.js.map +1 -0
  121. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.d.ts +19 -0
  122. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js +179 -0
  123. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js.map +1 -0
  124. package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.d.ts +2 -0
  125. package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.js +16 -0
  126. package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.js.map +1 -0
  127. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.d.ts +2 -0
  128. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.js +2465 -0
  129. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.js.map +1 -0
  130. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +8 -0
  131. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +55 -0
  132. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -0
  133. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +10 -0
  134. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +159 -0
  135. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -0
  136. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.d.ts +4 -0
  137. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js +111 -0
  138. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js.map +1 -0
  139. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
  140. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js +21 -0
  141. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js.map +1 -0
  142. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.d.ts +1 -0
  143. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js +12 -0
  144. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js.map +1 -0
  145. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.d.ts +23 -0
  146. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +88 -0
  147. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +1 -0
  148. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.d.ts +17 -0
  149. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js +70 -0
  150. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +1 -0
  151. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.d.ts +18 -0
  152. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +95 -0
  153. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +1 -0
  154. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.d.ts +3 -0
  155. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.js +148 -0
  156. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.js.map +1 -0
  157. package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.d.ts +2 -0
  158. package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js +264 -0
  159. package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js.map +1 -0
  160. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.d.ts +11 -0
  161. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.js +171 -0
  162. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.js.map +1 -0
  163. package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.d.ts +2 -0
  164. package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.js +10 -0
  165. package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.js.map +1 -0
  166. package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.d.ts +1 -0
  167. package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.js +44 -0
  168. package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.js.map +1 -0
  169. package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.d.ts +4 -0
  170. package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js +288 -0
  171. package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js.map +1 -0
  172. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.d.ts +2 -0
  173. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js +97 -0
  174. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js.map +1 -0
  175. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.d.ts +1 -0
  176. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.js +64 -0
  177. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.js.map +1 -0
  178. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.d.ts +14 -0
  179. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.js +42 -0
  180. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.js.map +1 -0
  181. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.d.ts +3 -0
  182. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js +28 -0
  183. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js.map +1 -0
  184. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.d.ts +3 -0
  185. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.js +25 -0
  186. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.js.map +1 -0
  187. package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.d.ts +7 -0
  188. package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js +200 -0
  189. package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js.map +1 -0
  190. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +4 -0
  191. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js +229 -0
  192. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -0
  193. package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.d.ts +22 -0
  194. package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.js +188 -0
  195. package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.js.map +1 -0
  196. package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.d.ts +17 -0
  197. package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.js +193 -0
  198. package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.js.map +1 -0
  199. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.d.ts +1 -0
  200. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.js +33 -0
  201. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.js.map +1 -0
  202. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +6 -0
  203. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js +34 -0
  204. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js.map +1 -0
  205. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.d.ts +7 -0
  206. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js +89 -0
  207. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js.map +1 -0
  208. package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.d.ts +2 -0
  209. package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.js +11 -0
  210. package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.js.map +1 -0
  211. package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.d.ts +5 -0
  212. package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js +44 -0
  213. package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js.map +1 -0
  214. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.d.ts +2 -0
  215. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js +11 -0
  216. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js.map +1 -0
  217. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.d.ts +8 -0
  218. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.js +242 -0
  219. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.js.map +1 -0
  220. package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.d.ts +3 -0
  221. package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.js +41 -0
  222. package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.js.map +1 -0
  223. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.d.ts +2 -0
  224. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.js +560 -0
  225. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.js.map +1 -0
  226. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.d.ts +3 -0
  227. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.js +31 -0
  228. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.js.map +1 -0
  229. package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.d.ts +2 -0
  230. package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.js +37 -0
  231. package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.js.map +1 -0
  232. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.d.ts +8 -0
  233. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.js +46 -0
  234. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.js.map +1 -0
  235. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.d.ts +1 -0
  236. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.js +16 -0
  237. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.js.map +1 -0
  238. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.d.ts +1 -0
  239. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.js +38 -0
  240. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.js.map +1 -0
  241. package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.d.ts +5 -0
  242. package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js +487 -0
  243. package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js.map +1 -0
  244. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.d.ts +2 -0
  245. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.js +253 -0
  246. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.js.map +1 -0
  247. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.d.ts +2 -0
  248. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js +117 -0
  249. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js.map +1 -0
  250. package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.d.ts +32 -0
  251. package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.js +85 -0
  252. package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.js.map +1 -0
  253. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.d.ts +6 -0
  254. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js +18 -0
  255. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js.map +1 -0
  256. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.d.ts +6 -0
  257. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js +28 -0
  258. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js.map +1 -0
  259. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.d.ts +6 -0
  260. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js +65 -0
  261. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js.map +1 -0
  262. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.d.ts +6 -0
  263. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js +71 -0
  264. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js.map +1 -0
  265. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.d.ts +6 -0
  266. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js +18 -0
  267. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js.map +1 -0
  268. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.d.ts +5 -0
  269. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js +46 -0
  270. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js.map +1 -0
  271. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.d.ts +6 -0
  272. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js +28 -0
  273. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js.map +1 -0
  274. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.d.ts +6 -0
  275. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js +52 -0
  276. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js.map +1 -0
  277. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.d.ts +6 -0
  278. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js +28 -0
  279. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js.map +1 -0
  280. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.d.ts +6 -0
  281. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js +19 -0
  282. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js.map +1 -0
  283. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.d.ts +6 -0
  284. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js +41 -0
  285. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js.map +1 -0
  286. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.d.ts +11 -0
  287. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js +162 -0
  288. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js.map +1 -0
  289. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.d.ts +4 -0
  290. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.js +163 -0
  291. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.js.map +1 -0
  292. package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.d.ts +2 -0
  293. package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.js +12 -0
  294. package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.js.map +1 -0
  295. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.d.ts +3 -0
  296. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.js +25 -0
  297. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.js.map +1 -0
  298. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.d.ts +3 -0
  299. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.js +25 -0
  300. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.js.map +1 -0
  301. package/dist/cjs/components/TextEditorV2/shared/canUseDOM.d.ts +1 -0
  302. package/dist/cjs/components/TextEditorV2/shared/canUseDOM.js +7 -0
  303. package/dist/cjs/components/TextEditorV2/shared/canUseDOM.js.map +1 -0
  304. package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.d.ts +4 -0
  305. package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.js +32 -0
  306. package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.js.map +1 -0
  307. package/dist/cjs/components/TextEditorV2/shared/environment.d.ts +16 -0
  308. package/dist/cjs/components/TextEditorV2/shared/environment.js +17 -0
  309. package/dist/cjs/components/TextEditorV2/shared/environment.js.map +1 -0
  310. package/dist/cjs/components/TextEditorV2/shared/invariant.d.ts +1 -0
  311. package/dist/cjs/components/TextEditorV2/shared/invariant.js +15 -0
  312. package/dist/cjs/components/TextEditorV2/shared/invariant.js.map +1 -0
  313. package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.d.ts +5 -0
  314. package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.js +28 -0
  315. package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.js.map +1 -0
  316. package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.d.ts +3 -0
  317. package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.js +7 -0
  318. package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.js.map +1 -0
  319. package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.d.ts +1 -0
  320. package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.js +16 -0
  321. package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.js.map +1 -0
  322. package/dist/cjs/components/TextEditorV2/style.d.ts +2 -0
  323. package/dist/cjs/components/TextEditorV2/style.js +9 -0
  324. package/dist/cjs/components/TextEditorV2/style.js.map +1 -0
  325. package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.d.ts +3 -0
  326. package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.js +7 -0
  327. package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.js.map +1 -0
  328. package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.d.ts +3 -0
  329. package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.js +107 -0
  330. package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.js.map +1 -0
  331. package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.d.ts +3 -0
  332. package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.js +7 -0
  333. package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.js.map +1 -0
  334. package/dist/cjs/components/TextEditorV2/ui/Button.d.ts +11 -0
  335. package/dist/cjs/components/TextEditorV2/ui/Button.js +11 -0
  336. package/dist/cjs/components/TextEditorV2/ui/Button.js.map +1 -0
  337. package/dist/cjs/components/TextEditorV2/ui/ColorPicker.d.ts +12 -0
  338. package/dist/cjs/components/TextEditorV2/ui/ColorPicker.js +216 -0
  339. package/dist/cjs/components/TextEditorV2/ui/ColorPicker.js.map +1 -0
  340. package/dist/cjs/components/TextEditorV2/ui/ContentEditable.d.ts +4 -0
  341. package/dist/cjs/components/TextEditorV2/ui/ContentEditable.js +11 -0
  342. package/dist/cjs/components/TextEditorV2/ui/ContentEditable.js.map +1 -0
  343. package/dist/cjs/components/TextEditorV2/ui/Dialog.d.ts +9 -0
  344. package/dist/cjs/components/TextEditorV2/ui/Dialog.js +15 -0
  345. package/dist/cjs/components/TextEditorV2/ui/Dialog.js.map +1 -0
  346. package/dist/cjs/components/TextEditorV2/ui/DropDown.d.ts +17 -0
  347. package/dist/cjs/components/TextEditorV2/ui/DropDown.js +133 -0
  348. package/dist/cjs/components/TextEditorV2/ui/DropDown.js.map +1 -0
  349. package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.d.ts +21 -0
  350. package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.js +20 -0
  351. package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.js.map +1 -0
  352. package/dist/cjs/components/TextEditorV2/ui/EquationEditor.d.ts +8 -0
  353. package/dist/cjs/components/TextEditorV2/ui/EquationEditor.js +20 -0
  354. package/dist/cjs/components/TextEditorV2/ui/EquationEditor.js.map +1 -0
  355. package/dist/cjs/components/TextEditorV2/ui/FileInput.d.ts +9 -0
  356. package/dist/cjs/components/TextEditorV2/ui/FileInput.js +12 -0
  357. package/dist/cjs/components/TextEditorV2/ui/FileInput.js.map +1 -0
  358. package/dist/cjs/components/TextEditorV2/ui/ImageResizer.d.ts +11 -0
  359. package/dist/cjs/components/TextEditorV2/ui/ImageResizer.js +178 -0
  360. package/dist/cjs/components/TextEditorV2/ui/ImageResizer.js.map +1 -0
  361. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.d.ts +7 -0
  362. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.js +39 -0
  363. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.js.map +1 -0
  364. package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.d.ts +6 -0
  365. package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.js +33 -0
  366. package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.js.map +1 -0
  367. package/dist/cjs/components/TextEditorV2/ui/Modal.d.ts +8 -0
  368. package/dist/cjs/components/TextEditorV2/ui/Modal.js +54 -0
  369. package/dist/cjs/components/TextEditorV2/ui/Modal.js.map +1 -0
  370. package/dist/cjs/components/TextEditorV2/ui/Placeholder.d.ts +6 -0
  371. package/dist/cjs/components/TextEditorV2/ui/Placeholder.js +10 -0
  372. package/dist/cjs/components/TextEditorV2/ui/Placeholder.js.map +1 -0
  373. package/dist/cjs/components/TextEditorV2/ui/Select.d.ts +7 -0
  374. package/dist/cjs/components/TextEditorV2/ui/Select.js +12 -0
  375. package/dist/cjs/components/TextEditorV2/ui/Select.js.map +1 -0
  376. package/dist/cjs/components/TextEditorV2/ui/Switch.d.ts +7 -0
  377. package/dist/cjs/components/TextEditorV2/ui/Switch.js +15 -0
  378. package/dist/cjs/components/TextEditorV2/ui/Switch.js.map +1 -0
  379. package/dist/cjs/components/TextEditorV2/ui/TextInput.d.ts +12 -0
  380. package/dist/cjs/components/TextEditorV2/ui/TextInput.js +14 -0
  381. package/dist/cjs/components/TextEditorV2/ui/TextInput.js.map +1 -0
  382. package/dist/cjs/components/TextEditorV2/utils/emoji-list.d.ts +20 -0
  383. package/dist/cjs/components/TextEditorV2/utils/emoji-list.js +16607 -0
  384. package/dist/cjs/components/TextEditorV2/utils/emoji-list.js.map +1 -0
  385. package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.d.ts +1 -0
  386. package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.js +19 -0
  387. package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.js.map +1 -0
  388. package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.d.ts +1 -0
  389. package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.js +35 -0
  390. package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.js.map +1 -0
  391. package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.d.ts +2 -0
  392. package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.js +21 -0
  393. package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.js.map +1 -0
  394. package/dist/cjs/components/TextEditorV2/utils/guard.d.ts +1 -0
  395. package/dist/cjs/components/TextEditorV2/utils/guard.js +7 -0
  396. package/dist/cjs/components/TextEditorV2/utils/guard.js.map +1 -0
  397. package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.d.ts +0 -0
  398. package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.js +2 -0
  399. package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.js.map +1 -0
  400. package/dist/cjs/components/TextEditorV2/utils/joinClasses.d.ts +1 -0
  401. package/dist/cjs/components/TextEditorV2/utils/joinClasses.js +11 -0
  402. package/dist/cjs/components/TextEditorV2/utils/joinClasses.js.map +1 -0
  403. package/dist/cjs/components/TextEditorV2/utils/point.d.ts +14 -0
  404. package/dist/cjs/components/TextEditorV2/utils/point.js +51 -0
  405. package/dist/cjs/components/TextEditorV2/utils/point.js.map +1 -0
  406. package/dist/cjs/components/TextEditorV2/utils/rect.d.ts +38 -0
  407. package/dist/cjs/components/TextEditorV2/utils/rect.js +125 -0
  408. package/dist/cjs/components/TextEditorV2/utils/rect.js.map +1 -0
  409. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.d.ts +1 -0
  410. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.js +33 -0
  411. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.js.map +1 -0
  412. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
  413. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js +31 -0
  414. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  415. package/dist/cjs/components/TextEditorV2/utils/swipe.d.ts +4 -0
  416. package/dist/cjs/components/TextEditorV2/utils/swipe.js +97 -0
  417. package/dist/cjs/components/TextEditorV2/utils/swipe.js.map +1 -0
  418. package/dist/cjs/components/TextEditorV2/utils/url.d.ts +2 -0
  419. package/dist/cjs/components/TextEditorV2/utils/url.js +26 -0
  420. package/dist/cjs/components/TextEditorV2/utils/url.js.map +1 -0
  421. package/dist/cjs/index.d.ts +2 -1
  422. package/dist/cjs/index.js +5 -3
  423. package/dist/cjs/index.js.map +1 -1
  424. package/dist/esm/components/TextEditorV2/commenting/index.d.ts +41 -0
  425. package/dist/esm/components/TextEditorV2/commenting/index.js +334 -0
  426. package/dist/esm/components/TextEditorV2/commenting/index.js.map +1 -0
  427. package/dist/esm/components/TextEditorV2/constants.d.ts +1 -0
  428. package/dist/esm/components/TextEditorV2/constants.js +2 -0
  429. package/dist/esm/components/TextEditorV2/constants.js.map +1 -0
  430. package/dist/esm/components/TextEditorV2/context/SettingsContext.d.ts +12 -0
  431. package/dist/esm/components/TextEditorV2/context/SettingsContext.js +54 -0
  432. package/dist/esm/components/TextEditorV2/context/SettingsContext.js.map +1 -0
  433. package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.d.ts +10 -0
  434. package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.js +44 -0
  435. package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.js.map +1 -0
  436. package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.d.ts +11 -0
  437. package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.js +11 -0
  438. package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.js.map +1 -0
  439. package/dist/esm/components/TextEditorV2/editor.d.ts +10 -0
  440. package/dist/esm/components/TextEditorV2/editor.js +200 -0
  441. package/dist/esm/components/TextEditorV2/editor.js.map +1 -0
  442. package/dist/esm/components/TextEditorV2/hooks/useModal.d.ts +5 -0
  443. package/dist/esm/components/TextEditorV2/hooks/useModal.js +28 -0
  444. package/dist/esm/components/TextEditorV2/hooks/useModal.js.map +1 -0
  445. package/dist/esm/components/TextEditorV2/hooks/useReport.d.ts +1 -0
  446. package/dist/esm/components/TextEditorV2/hooks/useReport.js +42 -0
  447. package/dist/esm/components/TextEditorV2/hooks/useReport.js.map +1 -0
  448. package/dist/esm/components/TextEditorV2/lib/Settings.d.ts +2 -0
  449. package/dist/esm/components/TextEditorV2/lib/Settings.js +48 -0
  450. package/dist/esm/components/TextEditorV2/lib/Settings.js.map +1 -0
  451. package/dist/esm/components/TextEditorV2/lib/appSettings.d.ts +19 -0
  452. package/dist/esm/components/TextEditorV2/lib/appSettings.js +18 -0
  453. package/dist/esm/components/TextEditorV2/lib/appSettings.js.map +1 -0
  454. package/dist/esm/components/TextEditorV2/lib/collaboration.d.ts +3 -0
  455. package/dist/esm/components/TextEditorV2/lib/collaboration.js +23 -0
  456. package/dist/esm/components/TextEditorV2/lib/collaboration.js.map +1 -0
  457. package/dist/esm/components/TextEditorV2/lib/setupEnv.d.ts +1 -0
  458. package/dist/esm/components/TextEditorV2/lib/setupEnv.js +21 -0
  459. package/dist/esm/components/TextEditorV2/lib/setupEnv.js.map +1 -0
  460. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.d.ts +25 -0
  461. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.js +54 -0
  462. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.js.map +1 -0
  463. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.d.ts +18 -0
  464. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.js +57 -0
  465. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.js.map +1 -0
  466. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.d.ts +9 -0
  467. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.js +68 -0
  468. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.js.map +1 -0
  469. package/dist/esm/components/TextEditorV2/nodes/EquationNode.d.ts +26 -0
  470. package/dist/esm/components/TextEditorV2/nodes/EquationNode.js +121 -0
  471. package/dist/esm/components/TextEditorV2/nodes/EquationNode.js.map +1 -0
  472. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.d.ts +6 -0
  473. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js +113 -0
  474. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js.map +1 -0
  475. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.d.ts +50 -0
  476. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js +56 -0
  477. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js.map +1 -0
  478. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.d.ts +44 -0
  479. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js +137 -0
  480. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js.map +1 -0
  481. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.d.ts +22 -0
  482. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.js +98 -0
  483. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.js.map +1 -0
  484. package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.d.ts +12 -0
  485. package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.js +101 -0
  486. package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.js.map +1 -0
  487. package/dist/esm/components/TextEditorV2/nodes/FigmaNode.d.ts +19 -0
  488. package/dist/esm/components/TextEditorV2/nodes/FigmaNode.js +58 -0
  489. package/dist/esm/components/TextEditorV2/nodes/FigmaNode.js.map +1 -0
  490. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.d.ts +14 -0
  491. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.js +207 -0
  492. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.js.map +1 -0
  493. package/dist/esm/components/TextEditorV2/nodes/ImageNode.d.ts +56 -0
  494. package/dist/esm/components/TextEditorV2/nodes/ImageNode.js +131 -0
  495. package/dist/esm/components/TextEditorV2/nodes/ImageNode.js.map +1 -0
  496. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.d.ts +18 -0
  497. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.js +189 -0
  498. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.js.map +1 -0
  499. package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.d.ts +54 -0
  500. package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.js +137 -0
  501. package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.js.map +1 -0
  502. package/dist/esm/components/TextEditorV2/nodes/KeywordNode.d.ts +15 -0
  503. package/dist/esm/components/TextEditorV2/nodes/KeywordNode.js +49 -0
  504. package/dist/esm/components/TextEditorV2/nodes/KeywordNode.js.map +1 -0
  505. package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.d.ts +21 -0
  506. package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.js +58 -0
  507. package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.js.map +1 -0
  508. package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.d.ts +15 -0
  509. package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.js +46 -0
  510. package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.js.map +1 -0
  511. package/dist/esm/components/TextEditorV2/nodes/MentionNode.d.ts +20 -0
  512. package/dist/esm/components/TextEditorV2/nodes/MentionNode.js +84 -0
  513. package/dist/esm/components/TextEditorV2/nodes/MentionNode.js.map +1 -0
  514. package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.d.ts +17 -0
  515. package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.js +108 -0
  516. package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.js.map +1 -0
  517. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.d.ts +3 -0
  518. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.js +66 -0
  519. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.js.map +1 -0
  520. package/dist/esm/components/TextEditorV2/nodes/PollComponent.d.ts +8 -0
  521. package/dist/esm/components/TextEditorV2/nodes/PollComponent.js +109 -0
  522. package/dist/esm/components/TextEditorV2/nodes/PollComponent.js.map +1 -0
  523. package/dist/esm/components/TextEditorV2/nodes/PollNode.d.ts +33 -0
  524. package/dist/esm/components/TextEditorV2/nodes/PollNode.js +143 -0
  525. package/dist/esm/components/TextEditorV2/nodes/PollNode.js.map +1 -0
  526. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.d.ts +9 -0
  527. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.js +163 -0
  528. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.js.map +1 -0
  529. package/dist/esm/components/TextEditorV2/nodes/StickyNode.d.ts +37 -0
  530. package/dist/esm/components/TextEditorV2/nodes/StickyNode.js +89 -0
  531. package/dist/esm/components/TextEditorV2/nodes/StickyNode.js.map +1 -0
  532. package/dist/esm/components/TextEditorV2/nodes/TableNode.d.ts +54 -0
  533. package/dist/esm/components/TextEditorV2/nodes/TableNode.js +188 -0
  534. package/dist/esm/components/TextEditorV2/nodes/TableNode.js.map +1 -0
  535. package/dist/esm/components/TextEditorV2/nodes/TweetNode.d.ts +28 -0
  536. package/dist/esm/components/TextEditorV2/nodes/TweetNode.js +151 -0
  537. package/dist/esm/components/TextEditorV2/nodes/TweetNode.js.map +1 -0
  538. package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.d.ts +28 -0
  539. package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.js +98 -0
  540. package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.js.map +1 -0
  541. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.d.ts +2 -0
  542. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.js +180 -0
  543. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.js.map +1 -0
  544. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.d.ts +19 -0
  545. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js +174 -0
  546. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js.map +1 -0
  547. package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.d.ts +2 -0
  548. package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.js +12 -0
  549. package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.js.map +1 -0
  550. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.d.ts +2 -0
  551. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.js +2461 -0
  552. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.js.map +1 -0
  553. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +8 -0
  554. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +52 -0
  555. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -0
  556. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +10 -0
  557. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +155 -0
  558. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -0
  559. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.d.ts +4 -0
  560. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js +108 -0
  561. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js.map +1 -0
  562. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
  563. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js +18 -0
  564. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js.map +1 -0
  565. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.d.ts +1 -0
  566. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js +9 -0
  567. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js.map +1 -0
  568. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.d.ts +23 -0
  569. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +82 -0
  570. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +1 -0
  571. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.d.ts +17 -0
  572. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js +64 -0
  573. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +1 -0
  574. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.d.ts +18 -0
  575. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +89 -0
  576. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +1 -0
  577. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.d.ts +3 -0
  578. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.js +144 -0
  579. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.js.map +1 -0
  580. package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.d.ts +2 -0
  581. package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js +261 -0
  582. package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js.map +1 -0
  583. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.d.ts +11 -0
  584. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.js +167 -0
  585. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.js.map +1 -0
  586. package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.d.ts +2 -0
  587. package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.js +6 -0
  588. package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.js.map +1 -0
  589. package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.d.ts +1 -0
  590. package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.js +41 -0
  591. package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.js.map +1 -0
  592. package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.d.ts +4 -0
  593. package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js +284 -0
  594. package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js.map +1 -0
  595. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.d.ts +2 -0
  596. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js +94 -0
  597. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js.map +1 -0
  598. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.d.ts +1 -0
  599. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.js +61 -0
  600. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.js.map +1 -0
  601. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.d.ts +14 -0
  602. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.js +36 -0
  603. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.js.map +1 -0
  604. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.d.ts +3 -0
  605. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js +24 -0
  606. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js.map +1 -0
  607. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.d.ts +3 -0
  608. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.js +21 -0
  609. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.js.map +1 -0
  610. package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.d.ts +7 -0
  611. package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js +196 -0
  612. package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js.map +1 -0
  613. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +4 -0
  614. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js +225 -0
  615. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -0
  616. package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.d.ts +22 -0
  617. package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.js +181 -0
  618. package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.js.map +1 -0
  619. package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.d.ts +17 -0
  620. package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.js +187 -0
  621. package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.js.map +1 -0
  622. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.d.ts +1 -0
  623. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.js +30 -0
  624. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.js.map +1 -0
  625. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +6 -0
  626. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js +30 -0
  627. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js.map +1 -0
  628. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.d.ts +7 -0
  629. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js +85 -0
  630. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js.map +1 -0
  631. package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.d.ts +2 -0
  632. package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.js +7 -0
  633. package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.js.map +1 -0
  634. package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.d.ts +5 -0
  635. package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js +41 -0
  636. package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js.map +1 -0
  637. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.d.ts +2 -0
  638. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js +7 -0
  639. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js.map +1 -0
  640. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.d.ts +8 -0
  641. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.js +239 -0
  642. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.js.map +1 -0
  643. package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.d.ts +3 -0
  644. package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.js +38 -0
  645. package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.js.map +1 -0
  646. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.d.ts +2 -0
  647. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.js +557 -0
  648. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.js.map +1 -0
  649. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.d.ts +3 -0
  650. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.js +27 -0
  651. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.js.map +1 -0
  652. package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.d.ts +2 -0
  653. package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.js +33 -0
  654. package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.js.map +1 -0
  655. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.d.ts +8 -0
  656. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.js +40 -0
  657. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.js.map +1 -0
  658. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.d.ts +1 -0
  659. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.js +13 -0
  660. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.js.map +1 -0
  661. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.d.ts +1 -0
  662. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.js +35 -0
  663. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.js.map +1 -0
  664. package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.d.ts +5 -0
  665. package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js +483 -0
  666. package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js.map +1 -0
  667. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.d.ts +2 -0
  668. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.js +249 -0
  669. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.js.map +1 -0
  670. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.d.ts +2 -0
  671. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js +113 -0
  672. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js.map +1 -0
  673. package/dist/esm/components/TextEditorV2/plugins/TablePlugin.d.ts +32 -0
  674. package/dist/esm/components/TextEditorV2/plugins/TablePlugin.js +78 -0
  675. package/dist/esm/components/TextEditorV2/plugins/TablePlugin.js.map +1 -0
  676. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.d.ts +6 -0
  677. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js +14 -0
  678. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js.map +1 -0
  679. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.d.ts +6 -0
  680. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js +24 -0
  681. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js.map +1 -0
  682. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.d.ts +6 -0
  683. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js +61 -0
  684. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js.map +1 -0
  685. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.d.ts +6 -0
  686. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js +67 -0
  687. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js.map +1 -0
  688. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.d.ts +6 -0
  689. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js +14 -0
  690. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js.map +1 -0
  691. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.d.ts +5 -0
  692. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js +42 -0
  693. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js.map +1 -0
  694. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.d.ts +6 -0
  695. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js +24 -0
  696. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js.map +1 -0
  697. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.d.ts +6 -0
  698. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js +48 -0
  699. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js.map +1 -0
  700. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.d.ts +6 -0
  701. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js +24 -0
  702. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js.map +1 -0
  703. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.d.ts +6 -0
  704. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js +15 -0
  705. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js.map +1 -0
  706. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.d.ts +6 -0
  707. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js +37 -0
  708. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js.map +1 -0
  709. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.d.ts +11 -0
  710. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js +159 -0
  711. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js.map +1 -0
  712. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.d.ts +4 -0
  713. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.js +159 -0
  714. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.js.map +1 -0
  715. package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.d.ts +2 -0
  716. package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.js +8 -0
  717. package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.js.map +1 -0
  718. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.d.ts +3 -0
  719. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.js +21 -0
  720. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.js.map +1 -0
  721. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.d.ts +3 -0
  722. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.js +21 -0
  723. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.js.map +1 -0
  724. package/dist/esm/components/TextEditorV2/shared/canUseDOM.d.ts +1 -0
  725. package/dist/esm/components/TextEditorV2/shared/canUseDOM.js +4 -0
  726. package/dist/esm/components/TextEditorV2/shared/canUseDOM.js.map +1 -0
  727. package/dist/esm/components/TextEditorV2/shared/caretFromPoint.d.ts +4 -0
  728. package/dist/esm/components/TextEditorV2/shared/caretFromPoint.js +29 -0
  729. package/dist/esm/components/TextEditorV2/shared/caretFromPoint.js.map +1 -0
  730. package/dist/esm/components/TextEditorV2/shared/environment.d.ts +16 -0
  731. package/dist/esm/components/TextEditorV2/shared/environment.js +14 -0
  732. package/dist/esm/components/TextEditorV2/shared/environment.js.map +1 -0
  733. package/dist/esm/components/TextEditorV2/shared/invariant.d.ts +1 -0
  734. package/dist/esm/components/TextEditorV2/shared/invariant.js +12 -0
  735. package/dist/esm/components/TextEditorV2/shared/invariant.js.map +1 -0
  736. package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.d.ts +5 -0
  737. package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.js +25 -0
  738. package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.js.map +1 -0
  739. package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.d.ts +3 -0
  740. package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.js +5 -0
  741. package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.js.map +1 -0
  742. package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.d.ts +1 -0
  743. package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.js +13 -0
  744. package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.js.map +1 -0
  745. package/dist/esm/components/TextEditorV2/style.d.ts +2 -0
  746. package/dist/esm/components/TextEditorV2/style.js +5 -0
  747. package/dist/esm/components/TextEditorV2/style.js.map +1 -0
  748. package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.d.ts +3 -0
  749. package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.js +5 -0
  750. package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.js.map +1 -0
  751. package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.d.ts +3 -0
  752. package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.js +105 -0
  753. package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.js.map +1 -0
  754. package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.d.ts +3 -0
  755. package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.js +5 -0
  756. package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.js.map +1 -0
  757. package/dist/esm/components/TextEditorV2/ui/Button.d.ts +11 -0
  758. package/dist/esm/components/TextEditorV2/ui/Button.js +8 -0
  759. package/dist/esm/components/TextEditorV2/ui/Button.js.map +1 -0
  760. package/dist/esm/components/TextEditorV2/ui/ColorPicker.d.ts +12 -0
  761. package/dist/esm/components/TextEditorV2/ui/ColorPicker.js +212 -0
  762. package/dist/esm/components/TextEditorV2/ui/ColorPicker.js.map +1 -0
  763. package/dist/esm/components/TextEditorV2/ui/ContentEditable.d.ts +4 -0
  764. package/dist/esm/components/TextEditorV2/ui/ContentEditable.js +7 -0
  765. package/dist/esm/components/TextEditorV2/ui/ContentEditable.js.map +1 -0
  766. package/dist/esm/components/TextEditorV2/ui/Dialog.d.ts +9 -0
  767. package/dist/esm/components/TextEditorV2/ui/Dialog.js +10 -0
  768. package/dist/esm/components/TextEditorV2/ui/Dialog.js.map +1 -0
  769. package/dist/esm/components/TextEditorV2/ui/DropDown.d.ts +17 -0
  770. package/dist/esm/components/TextEditorV2/ui/DropDown.js +129 -0
  771. package/dist/esm/components/TextEditorV2/ui/DropDown.js.map +1 -0
  772. package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.d.ts +21 -0
  773. package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.js +17 -0
  774. package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.js.map +1 -0
  775. package/dist/esm/components/TextEditorV2/ui/EquationEditor.d.ts +8 -0
  776. package/dist/esm/components/TextEditorV2/ui/EquationEditor.js +17 -0
  777. package/dist/esm/components/TextEditorV2/ui/EquationEditor.js.map +1 -0
  778. package/dist/esm/components/TextEditorV2/ui/FileInput.d.ts +9 -0
  779. package/dist/esm/components/TextEditorV2/ui/FileInput.js +8 -0
  780. package/dist/esm/components/TextEditorV2/ui/FileInput.js.map +1 -0
  781. package/dist/esm/components/TextEditorV2/ui/ImageResizer.d.ts +11 -0
  782. package/dist/esm/components/TextEditorV2/ui/ImageResizer.js +174 -0
  783. package/dist/esm/components/TextEditorV2/ui/ImageResizer.js.map +1 -0
  784. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.d.ts +7 -0
  785. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.js +35 -0
  786. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.js.map +1 -0
  787. package/dist/esm/components/TextEditorV2/ui/KatexRenderer.d.ts +6 -0
  788. package/dist/esm/components/TextEditorV2/ui/KatexRenderer.js +29 -0
  789. package/dist/esm/components/TextEditorV2/ui/KatexRenderer.js.map +1 -0
  790. package/dist/esm/components/TextEditorV2/ui/Modal.d.ts +8 -0
  791. package/dist/esm/components/TextEditorV2/ui/Modal.js +50 -0
  792. package/dist/esm/components/TextEditorV2/ui/Modal.js.map +1 -0
  793. package/dist/esm/components/TextEditorV2/ui/Placeholder.d.ts +6 -0
  794. package/dist/esm/components/TextEditorV2/ui/Placeholder.js +6 -0
  795. package/dist/esm/components/TextEditorV2/ui/Placeholder.js.map +1 -0
  796. package/dist/esm/components/TextEditorV2/ui/Select.d.ts +7 -0
  797. package/dist/esm/components/TextEditorV2/ui/Select.js +9 -0
  798. package/dist/esm/components/TextEditorV2/ui/Select.js.map +1 -0
  799. package/dist/esm/components/TextEditorV2/ui/Switch.d.ts +7 -0
  800. package/dist/esm/components/TextEditorV2/ui/Switch.js +11 -0
  801. package/dist/esm/components/TextEditorV2/ui/Switch.js.map +1 -0
  802. package/dist/esm/components/TextEditorV2/ui/TextInput.d.ts +12 -0
  803. package/dist/esm/components/TextEditorV2/ui/TextInput.js +10 -0
  804. package/dist/esm/components/TextEditorV2/ui/TextInput.js.map +1 -0
  805. package/dist/esm/components/TextEditorV2/utils/emoji-list.d.ts +20 -0
  806. package/dist/esm/components/TextEditorV2/utils/emoji-list.js +16605 -0
  807. package/dist/esm/components/TextEditorV2/utils/emoji-list.js.map +1 -0
  808. package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.d.ts +1 -0
  809. package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.js +16 -0
  810. package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.js.map +1 -0
  811. package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.d.ts +1 -0
  812. package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.js +32 -0
  813. package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.js.map +1 -0
  814. package/dist/esm/components/TextEditorV2/utils/getSelectedNode.d.ts +2 -0
  815. package/dist/esm/components/TextEditorV2/utils/getSelectedNode.js +18 -0
  816. package/dist/esm/components/TextEditorV2/utils/getSelectedNode.js.map +1 -0
  817. package/dist/esm/components/TextEditorV2/utils/guard.d.ts +1 -0
  818. package/dist/esm/components/TextEditorV2/utils/guard.js +4 -0
  819. package/dist/esm/components/TextEditorV2/utils/guard.js.map +1 -0
  820. package/dist/esm/components/TextEditorV2/utils/isMobileWidth.d.ts +0 -0
  821. package/dist/esm/components/TextEditorV2/utils/isMobileWidth.js +2 -0
  822. package/dist/esm/components/TextEditorV2/utils/isMobileWidth.js.map +1 -0
  823. package/dist/esm/components/TextEditorV2/utils/joinClasses.d.ts +1 -0
  824. package/dist/esm/components/TextEditorV2/utils/joinClasses.js +8 -0
  825. package/dist/esm/components/TextEditorV2/utils/joinClasses.js.map +1 -0
  826. package/dist/esm/components/TextEditorV2/utils/point.d.ts +14 -0
  827. package/dist/esm/components/TextEditorV2/utils/point.js +47 -0
  828. package/dist/esm/components/TextEditorV2/utils/point.js.map +1 -0
  829. package/dist/esm/components/TextEditorV2/utils/rect.d.ts +38 -0
  830. package/dist/esm/components/TextEditorV2/utils/rect.js +122 -0
  831. package/dist/esm/components/TextEditorV2/utils/rect.js.map +1 -0
  832. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.d.ts +1 -0
  833. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.js +30 -0
  834. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.js.map +1 -0
  835. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
  836. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js +28 -0
  837. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  838. package/dist/esm/components/TextEditorV2/utils/swipe.d.ts +4 -0
  839. package/dist/esm/components/TextEditorV2/utils/swipe.js +91 -0
  840. package/dist/esm/components/TextEditorV2/utils/swipe.js.map +1 -0
  841. package/dist/esm/components/TextEditorV2/utils/url.d.ts +2 -0
  842. package/dist/esm/components/TextEditorV2/utils/url.js +22 -0
  843. package/dist/esm/components/TextEditorV2/utils/url.js.map +1 -0
  844. package/dist/esm/index.d.ts +2 -1
  845. package/dist/esm/index.js +2 -1
  846. package/dist/esm/index.js.map +1 -1
  847. package/package.json +11 -2
@@ -0,0 +1,179 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedConfigs = exports.FigmaEmbedConfig = exports.TwitterEmbedConfig = exports.YoutubeEmbedConfig = void 0;
4
+ exports.AutoEmbedDialog = AutoEmbedDialog;
5
+ exports.default = AutoEmbedPlugin;
6
+ var tslib_1 = require("tslib");
7
+ var LexicalAutoEmbedPlugin_1 = require("@lexical/react/LexicalAutoEmbedPlugin");
8
+ var LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
9
+ var react_1 = require("react");
10
+ var React = tslib_1.__importStar(require("react"));
11
+ var ReactDOM = tslib_1.__importStar(require("react-dom"));
12
+ var useModal_1 = tslib_1.__importDefault(require("../../hooks/useModal"));
13
+ var Button_1 = tslib_1.__importDefault(require("../../ui/Button"));
14
+ var Dialog_1 = require("../../ui/Dialog");
15
+ var FigmaPlugin_1 = require("../FigmaPlugin");
16
+ var TwitterPlugin_1 = require("../TwitterPlugin");
17
+ var YouTubePlugin_1 = require("../YouTubePlugin");
18
+ exports.YoutubeEmbedConfig = {
19
+ contentName: 'Youtube Video',
20
+ exampleUrl: 'https://www.youtube.com/watch?v=jNQXAC9IVRw',
21
+ // Icon for display.
22
+ icon: React.createElement("i", { className: 'icon youtube' }),
23
+ insertNode: function (editor, result) {
24
+ editor.dispatchCommand(YouTubePlugin_1.INSERT_YOUTUBE_COMMAND, result.id);
25
+ },
26
+ keywords: ['youtube', 'video'],
27
+ // Determine if a given URL is a match and return url data.
28
+ parseUrl: function (url) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
29
+ var match, id;
30
+ return tslib_1.__generator(this, function (_a) {
31
+ match = /^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/.exec(url);
32
+ id = match ? ((match === null || match === void 0 ? void 0 : match[2].length) === 11 ? match[2] : null) : null;
33
+ if (id != null) {
34
+ return [2 /*return*/, {
35
+ id: id,
36
+ url: url,
37
+ }];
38
+ }
39
+ return [2 /*return*/, null];
40
+ });
41
+ }); },
42
+ type: 'youtube-video',
43
+ };
44
+ exports.TwitterEmbedConfig = {
45
+ // e.g. Tweet or Google Map.
46
+ contentName: 'Tweet',
47
+ exampleUrl: 'https://twitter.com/jack/status/20',
48
+ // Icon for display.
49
+ icon: React.createElement("i", { className: 'icon tweet' }),
50
+ // Create the Lexical embed node from the url data.
51
+ insertNode: function (editor, result) {
52
+ editor.dispatchCommand(TwitterPlugin_1.INSERT_TWEET_COMMAND, result.id);
53
+ },
54
+ // For extra searching.
55
+ keywords: ['tweet', 'twitter'],
56
+ // Determine if a given URL is a match and return url data.
57
+ parseUrl: function (text) {
58
+ var match = /^https:\/\/(twitter|x)\.com\/(#!\/)?(\w+)\/status(es)*\/(\d+)/.exec(text);
59
+ if (match != null) {
60
+ return {
61
+ id: match[5],
62
+ url: match[1],
63
+ };
64
+ }
65
+ return null;
66
+ },
67
+ type: 'tweet',
68
+ };
69
+ exports.FigmaEmbedConfig = {
70
+ contentName: 'Figma Document',
71
+ exampleUrl: 'https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-File',
72
+ icon: React.createElement("i", { className: 'icon figma' }),
73
+ insertNode: function (editor, result) {
74
+ editor.dispatchCommand(FigmaPlugin_1.INSERT_FIGMA_COMMAND, result.id);
75
+ },
76
+ keywords: ['figma', 'figma.com', 'mock-up'],
77
+ // Determine if a given URL is a match and return url data.
78
+ parseUrl: function (text) {
79
+ var match = /https:\/\/([\w.-]+\.)?figma.com\/(file|proto)\/([0-9a-zA-Z]{22,128})(?:\/.*)?$/.exec(text);
80
+ if (match != null) {
81
+ return {
82
+ id: match[3],
83
+ url: match[0],
84
+ };
85
+ }
86
+ return null;
87
+ },
88
+ type: 'figma',
89
+ };
90
+ exports.EmbedConfigs = [exports.TwitterEmbedConfig, exports.YoutubeEmbedConfig, exports.FigmaEmbedConfig];
91
+ function AutoEmbedMenuItem(_a) {
92
+ var index = _a.index, isSelected = _a.isSelected, onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, option = _a.option;
93
+ var className = 'item';
94
+ if (isSelected) {
95
+ className += ' selected';
96
+ }
97
+ return (React.createElement("li", { key: option.key, ref: option.setRefElement, "aria-selected": isSelected, className: className, id: 'typeahead-item-' + index, onClick: onClick, onMouseEnter: onMouseEnter, role: 'option', tabIndex: -1 },
98
+ React.createElement("span", { className: 'text' }, option.title)));
99
+ }
100
+ function AutoEmbedMenu(_a) {
101
+ var onOptionClick = _a.onOptionClick, onOptionMouseEnter = _a.onOptionMouseEnter, options = _a.options, selectedItemIndex = _a.selectedItemIndex;
102
+ return (React.createElement("div", { className: 'typeahead-popover' },
103
+ React.createElement("ul", null, options.map(function (option, i) { return (React.createElement(AutoEmbedMenuItem, { key: option.key, index: i, isSelected: selectedItemIndex === i, onClick: function () { return onOptionClick(option, i); }, onMouseEnter: function () { return onOptionMouseEnter(i); }, option: option })); }))));
104
+ }
105
+ var debounce = function (callback, delay) {
106
+ var timeoutId;
107
+ return function (text) {
108
+ window.clearTimeout(timeoutId);
109
+ timeoutId = window.setTimeout(function () {
110
+ callback(text);
111
+ }, delay);
112
+ };
113
+ };
114
+ function AutoEmbedDialog(_a) {
115
+ var embedConfig = _a.embedConfig, onClose = _a.onClose;
116
+ var _b = (0, react_1.useState)(''), text = _b[0], setText = _b[1];
117
+ var editor = (0, LexicalComposerContext_1.useLexicalComposerContext)()[0];
118
+ var _c = (0, react_1.useState)(null), embedResult = _c[0], setEmbedResult = _c[1];
119
+ var validateText = (0, react_1.useMemo)(function () {
120
+ return debounce(function (inputText) {
121
+ var urlMatch = LexicalAutoEmbedPlugin_1.URL_MATCHER.exec(inputText);
122
+ if (embedConfig != null && inputText != null && urlMatch != null) {
123
+ Promise.resolve(embedConfig.parseUrl(inputText)).then(function (parseResult) {
124
+ setEmbedResult(parseResult);
125
+ });
126
+ }
127
+ else if (embedResult != null) {
128
+ setEmbedResult(null);
129
+ }
130
+ }, 200);
131
+ }, [embedConfig, embedResult]);
132
+ var onClick = function () {
133
+ if (embedResult != null) {
134
+ embedConfig.insertNode(editor, embedResult);
135
+ onClose();
136
+ }
137
+ };
138
+ return (React.createElement("div", { style: { width: '600px' } },
139
+ React.createElement("div", { className: 'Input__wrapper' },
140
+ React.createElement("input", { className: 'Input__input', "data-test-id": "".concat(embedConfig.type, "-embed-modal-url"), onChange: function (e) {
141
+ var value = e.target.value;
142
+ setText(value);
143
+ validateText(value);
144
+ }, placeholder: embedConfig.exampleUrl, type: 'text', value: text })),
145
+ React.createElement(Dialog_1.DialogActions, null,
146
+ React.createElement(Button_1.default, { "data-test-id": "".concat(embedConfig.type, "-embed-modal-submit-btn"), disabled: !embedResult, onClick: onClick }, "Embed"))));
147
+ }
148
+ function AutoEmbedPlugin() {
149
+ var _a = (0, useModal_1.default)(), modal = _a[0], showModal = _a[1];
150
+ var openEmbedModal = function (embedConfig) {
151
+ showModal("Embed ".concat(embedConfig.contentName), function (onClose) { return (React.createElement(AutoEmbedDialog, { embedConfig: embedConfig, onClose: onClose })); });
152
+ };
153
+ var getMenuOptions = function (activeEmbedConfig, embedFn, dismissFn) { return [
154
+ new LexicalAutoEmbedPlugin_1.AutoEmbedOption('Dismiss', {
155
+ onSelect: dismissFn,
156
+ }),
157
+ new LexicalAutoEmbedPlugin_1.AutoEmbedOption("Embed ".concat(activeEmbedConfig.contentName), {
158
+ onSelect: embedFn,
159
+ }),
160
+ ]; };
161
+ return (React.createElement(React.Fragment, null,
162
+ modal,
163
+ React.createElement(LexicalAutoEmbedPlugin_1.LexicalAutoEmbedPlugin, { embedConfigs: exports.EmbedConfigs, getMenuOptions: getMenuOptions, menuRenderFn: function (anchorElementRef, _a) {
164
+ var options = _a.options, selectOptionAndCleanUp = _a.selectOptionAndCleanUp, selectedIndex = _a.selectedIndex, setHighlightedIndex = _a.setHighlightedIndex;
165
+ return anchorElementRef.current
166
+ ? ReactDOM.createPortal(React.createElement("div", { className: 'typeahead-popover auto-embed-menu', style: {
167
+ marginLeft: anchorElementRef.current.style.width,
168
+ width: 200,
169
+ } },
170
+ React.createElement(AutoEmbedMenu, { onOptionClick: function (option, index) {
171
+ setHighlightedIndex(index);
172
+ selectOptionAndCleanUp(option);
173
+ }, onOptionMouseEnter: function (index) {
174
+ setHighlightedIndex(index);
175
+ }, options: options, selectedItemIndex: selectedIndex })), anchorElementRef.current)
176
+ : null;
177
+ }, onOpenEmbedModalForConfig: openEmbedModal })));
178
+ }
179
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/AutoEmbedPlugin/index.tsx"],"names":[],"mappings":";;;AAgNA,0CAwDC;AAED,kCAsDC;;AAhUD,gFAM8C;AAC9C,gFAAiF;AAEjF,+BAAyC;AACzC,mDAA8B;AAC9B,0DAAqC;AACrC,0EAA2C;AAC3C,mEAAoC;AACpC,0CAA+C;AAC/C,8CAAqD;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;QACG,KAAK;QACN,oBAAC,+CAAsB,IACrB,YAAY,EAAE,oBAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE,UAAC,gBAAgB,EAAE,EAAuE;oBAArE,OAAO,aAAA,EAAE,sBAAsB,4BAAA,EAAE,aAAa,mBAAA,EAAE,mBAAmB,yBAAA;gBACpG,OAAA,gBAAgB,CAAC,OAAO;oBACtB,CAAC,CAAC,QAAQ,CAAC,YAAY,CACnB,6BACE,SAAS,EAAC,mCAAmC,EAC7C,KAAK,EAAE;4BACL,UAAU,EAAE,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK;4BAChD,KAAK,EAAE,GAAG;yBACX;wBAED,oBAAC,aAAa,IACZ,aAAa,EAAE,UAAC,MAAuB,EAAE,KAAa;gCACpD,mBAAmB,CAAC,KAAK,CAAC,CAAA;gCAC1B,sBAAsB,CAAC,MAAM,CAAC,CAAA;4BAChC,CAAC,EACD,kBAAkB,EAAE,UAAC,KAAa;gCAChC,mBAAmB,CAAC,KAAK,CAAC,CAAA;4BAC5B,CAAC,EACD,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,aAAa,GAChC,CACE,EACN,gBAAgB,CAAC,OAAO,CACzB;oBACH,CAAC,CAAC,IAAI;YAvBR,CAuBQ,EAEV,yBAAyB,EAAE,cAAc,GACzC,CACD,CACJ,CAAA;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export default function LexicalAutoLinkPlugin(): React.JSX.Element;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = LexicalAutoLinkPlugin;
4
+ var tslib_1 = require("tslib");
5
+ var LexicalAutoLinkPlugin_1 = require("@lexical/react/LexicalAutoLinkPlugin");
6
+ var React = tslib_1.__importStar(require("react"));
7
+ var URL_REGEX = /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;
8
+ var EMAIL_REGEX = /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/;
9
+ var MATCHERS = [
10
+ (0, LexicalAutoLinkPlugin_1.createLinkMatcherWithRegExp)(URL_REGEX, function (text) { return (text.startsWith('http') ? text : "https://".concat(text)); }),
11
+ (0, LexicalAutoLinkPlugin_1.createLinkMatcherWithRegExp)(EMAIL_REGEX, function (text) { return "mailto:".concat(text); }),
12
+ ];
13
+ function LexicalAutoLinkPlugin() {
14
+ return React.createElement(LexicalAutoLinkPlugin_1.AutoLinkPlugin, { matchers: MATCHERS });
15
+ }
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/AutoLinkPlugin/index.tsx"],"names":[],"mappings":";;AAcA,wCAEC;;AAhBD,8EAAkG;AAClG,mDAA8B;AAE9B,IAAM,SAAS,GACb,iHAAiH,CAAA;AAEnH,IAAM,WAAW,GACf,qJAAqJ,CAAA;AAEvJ,IAAM,QAAQ,GAAG;IACf,IAAA,mDAA2B,EAAC,SAAS,EAAE,UAAC,IAAI,IAAK,OAAA,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAW,IAAI,CAAE,CAAC,EAApD,CAAoD,CAAC;IACtG,IAAA,mDAA2B,EAAC,WAAW,EAAE,UAAC,IAAI,IAAK,OAAA,iBAAU,IAAI,CAAE,EAAhB,CAAgB,CAAC;CACrE,CAAA;AAED,SAAwB,qBAAqB;IAC3C,OAAO,oBAAC,sCAAc,IAAC,QAAQ,EAAE,QAAQ,GAAI,CAAA;AAC/C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const uuid: string;
2
+ export default function AutocompletePlugin(): React.JSX.Element | null;