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,44 @@
1
+ import * as React from 'react';
2
+ import { createContext, useContext, useEffect, useMemo, useState } from 'react';
3
+ var Context = createContext([
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars,arrow-body-style
5
+ function (_cb) { return function () {
6
+ return;
7
+ }; },
8
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars,arrow-body-style
9
+ function (_newSuggestion) {
10
+ return;
11
+ },
12
+ ]);
13
+ export var SharedAutocompleteContext = function (_a) {
14
+ var children = _a.children;
15
+ var context = useMemo(function () {
16
+ var suggestion = null;
17
+ var listeners = new Set();
18
+ return [
19
+ function (cb) {
20
+ cb(suggestion);
21
+ listeners.add(cb);
22
+ return function () {
23
+ listeners.delete(cb);
24
+ };
25
+ },
26
+ function (newSuggestion) {
27
+ suggestion = newSuggestion;
28
+ listeners.forEach(function (listener) { return listener(newSuggestion); });
29
+ },
30
+ ];
31
+ }, []);
32
+ return React.createElement(Context.Provider, { value: context }, children);
33
+ };
34
+ export var useSharedAutocompleteContext = function () {
35
+ var _a = useContext(Context), subscribe = _a[0], publish = _a[1];
36
+ var _b = useState(null), suggestion = _b[0], setSuggestion = _b[1];
37
+ useEffect(function () {
38
+ return subscribe(function (newSuggestion) {
39
+ setSuggestion(newSuggestion);
40
+ });
41
+ }, [subscribe]);
42
+ return [suggestion, publish];
43
+ };
44
+ //# sourceMappingURL=SharedAutocompleteContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SharedAutocompleteContext.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/context/SharedAutocompleteContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAa,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAS1F,IAAM,OAAO,GAAgC,aAAa,CAAC;IACzD,8EAA8E;IAC9E,UAAC,GAAG,IAAK,OAAA;QACP,OAAM;IACR,CAAC,EAFQ,CAER;IACD,8EAA8E;IAC9E,UAAC,cAA0B;QACzB,OAAM;IACR,CAAC;CACF,CAAC,CAAA;AAEF,MAAM,CAAC,IAAM,yBAAyB,GAAG,UAAC,EAAqC;QAAnC,QAAQ,cAAA;IAClD,IAAM,OAAO,GAAiB,OAAO,CAAC;QACpC,IAAI,UAAU,GAAsB,IAAI,CAAA;QACxC,IAAM,SAAS,GAAoB,IAAI,GAAG,EAAE,CAAA;QAC5C,OAAO;YACL,UAAC,EAAuC;gBACtC,EAAE,CAAC,UAAU,CAAC,CAAA;gBACd,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;gBACjB,OAAO;oBACL,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;gBACtB,CAAC,CAAA;YACH,CAAC;YACD,UAAC,aAAyB;gBACxB,UAAU,GAAG,aAAa,CAAA;gBAC1B,SAAS,CAAC,OAAO,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,aAAa,CAAC,EAAvB,CAAuB,CAAC,CAAA;YAC1D,CAAC;SACF,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IACN,OAAO,oBAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,IAAG,QAAQ,CAAoB,CAAA;AACxE,CAAC,CAAA;AAED,MAAM,CAAC,IAAM,4BAA4B,GAAG;IACpC,IAAA,KAAqC,UAAU,CAAC,OAAO,CAAC,EAAvD,SAAS,QAAA,EAAE,OAAO,QAAqC,CAAA;IACxD,IAAA,KAA8B,QAAQ,CAAa,IAAI,CAAC,EAAvD,UAAU,QAAA,EAAE,aAAa,QAA8B,CAAA;IAC9D,SAAS,CACP;QACE,OAAA,SAAS,CAAC,UAAC,aAAyB;YAClC,aAAa,CAAC,aAAa,CAAC,CAAA;QAC9B,CAAC,CAAC;IAFF,CAEE,EACJ,CAAC,SAAS,CAAC,CACZ,CAAA;IACD,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;AAC9B,CAAC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { HistoryState } from '@lexical/react/LexicalHistoryPlugin';
2
+ import * as React from 'react';
3
+ import { ReactNode } from 'react';
4
+ type ContextShape = {
5
+ historyState?: HistoryState;
6
+ };
7
+ export declare const SharedHistoryContext: ({ children }: {
8
+ children: ReactNode;
9
+ }) => React.JSX.Element;
10
+ export declare const useSharedHistoryContext: () => ContextShape;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import { createEmptyHistoryState } from '@lexical/react/LexicalHistoryPlugin';
2
+ import * as React from 'react';
3
+ import { createContext, useContext, useMemo } from 'react';
4
+ var Context = createContext({});
5
+ export var SharedHistoryContext = function (_a) {
6
+ var children = _a.children;
7
+ var historyContext = useMemo(function () { return ({ historyState: createEmptyHistoryState() }); }, []);
8
+ return React.createElement(Context.Provider, { value: historyContext }, children);
9
+ };
10
+ export var useSharedHistoryContext = function () { return useContext(Context); };
11
+ //# sourceMappingURL=SharedHistoryContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SharedHistoryContext.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/context/SharedHistoryContext.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA;AAC7E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAa,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAMrE,IAAM,OAAO,GAAgC,aAAa,CAAC,EAAE,CAAC,CAAA;AAE9D,MAAM,CAAC,IAAM,oBAAoB,GAAG,UAAC,EAAqC;QAAnC,QAAQ,cAAA;IAC7C,IAAM,cAAc,GAAG,OAAO,CAAC,cAAM,OAAA,CAAC,EAAE,YAAY,EAAE,uBAAuB,EAAE,EAAE,CAAC,EAA7C,CAA6C,EAAE,EAAE,CAAC,CAAA;IACvF,OAAO,oBAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,cAAc,IAAG,QAAQ,CAAoB,CAAA;AAC/E,CAAC,CAAA;AAED,MAAM,CAAC,IAAM,uBAAuB,GAAG,cAAoB,OAAA,UAAU,CAAC,OAAO,CAAC,EAAnB,CAAmB,CAAA"}
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ interface IEditorProps {
3
+ defaultValue?: string;
4
+ placeholder?: string;
5
+ onChange?(value: string): void;
6
+ label?: string;
7
+ apiCdnUpload: string;
8
+ }
9
+ export default function PHXTextEditorV2({ defaultValue, label, onChange, placeholder, apiCdnUpload, }: IEditorProps): React.JSX.Element;
10
+ export {};
@@ -0,0 +1,200 @@
1
+ import { __spreadArray } from "tslib";
2
+ import { $generateNodesFromDOM, $generateHtmlFromNodes } from '@lexical/html';
3
+ import { LexicalComposer } from '@lexical/react/LexicalComposer';
4
+ import { $getRoot, TextNode, createEditor } from 'lexical';
5
+ import * as React from 'react';
6
+ import { useEffect, useState } from 'react';
7
+ import { SharedAutocompleteContext } from './context/SharedAutocompleteContext';
8
+ import { SharedHistoryContext, useSharedHistoryContext } from './context/SharedHistoryContext';
9
+ import { ExtendedTextNode } from './nodes/ExtendedTextNode';
10
+ import PlaygroundNodes from './nodes/PlaygroundNodes';
11
+ import { TableContext } from './plugins/TablePlugin';
12
+ import { CAN_USE_DOM } from './shared/canUseDOM';
13
+ import PlaygroundEditorTheme from './themes/PlaygroundEditorTheme';
14
+ import { CharacterLimitPlugin } from '@lexical/react/LexicalCharacterLimitPlugin';
15
+ import { CheckListPlugin } from '@lexical/react/LexicalCheckListPlugin';
16
+ import { ClearEditorPlugin } from '@lexical/react/LexicalClearEditorPlugin';
17
+ import LexicalClickableLinkPlugin from '@lexical/react/LexicalClickableLinkPlugin';
18
+ import LexicalErrorBoundary from '@lexical/react/LexicalErrorBoundary';
19
+ import { HashtagPlugin } from '@lexical/react/LexicalHashtagPlugin';
20
+ import { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin';
21
+ import { HorizontalRulePlugin } from '@lexical/react/LexicalHorizontalRulePlugin';
22
+ import { ListPlugin } from '@lexical/react/LexicalListPlugin';
23
+ import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin';
24
+ import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin';
25
+ import { TabIndentationPlugin } from '@lexical/react/LexicalTabIndentationPlugin';
26
+ import { TablePlugin } from '@lexical/react/LexicalTablePlugin';
27
+ import AutoEmbedPlugin from './plugins/AutoEmbedPlugin';
28
+ import AutocompletePlugin from './plugins/AutocompletePlugin';
29
+ import CodeActionMenuPlugin from './plugins/CodeActionMenuPlugin';
30
+ import CodeHighlightPlugin from './plugins/CodeHighlightPlugin';
31
+ import CollapsiblePlugin from './plugins/CollapsiblePlugin';
32
+ import ComponentPickerPlugin from './plugins/ComponentPickerPlugin';
33
+ import ContextMenuPlugin from './plugins/ContextMenuPlugin';
34
+ import EmojiPickerPlugin from './plugins/EmojiPickerPlugin';
35
+ import EmojisPlugin from './plugins/EmojisPlugin';
36
+ import EquationsPlugin from './plugins/EquationsPlugin';
37
+ import ExcalidrawPlugin from './plugins/ExcalidrawPlugin';
38
+ import FigmaPlugin from './plugins/FigmaPlugin';
39
+ import ImagesPlugin from './plugins/ImagesPlugin';
40
+ import InlineImagePlugin from './plugins/InlineImagePlugin';
41
+ import KeywordsPlugin from './plugins/KeywordsPlugin';
42
+ import { LayoutPlugin } from './plugins/LayoutPlugin/LayoutPlugin';
43
+ import LinkPlugin from './plugins/LinkPlugin';
44
+ import ListMaxIndentLevelPlugin from './plugins/ListMaxIndentLevelPlugin';
45
+ import MarkdownShortcutPlugin from './plugins/MarkdownShortcutPlugin';
46
+ import { MaxLengthPlugin } from './plugins/MaxLengthPlugin';
47
+ import MentionsPlugin from './plugins/MentionsPlugin';
48
+ import PageBreakPlugin from './plugins/PageBreakPlugin';
49
+ import ContentEditable from './ui/ContentEditable';
50
+ import PollPlugin from './plugins/PollPlugin';
51
+ import TabFocusPlugin from './plugins/TabFocusPlugin';
52
+ import TableCellActionMenuPlugin from './plugins/TableActionMenuPlugin';
53
+ import TableCellResizer from './plugins/TableCellResizer';
54
+ import TableOfContentsPlugin from './plugins/TableOfContentsPlugin';
55
+ import ToolbarPlugin from './plugins/ToolbarPlugin';
56
+ import TwitterPlugin from './plugins/TwitterPlugin';
57
+ import YouTubePlugin from './plugins/YouTubePlugin';
58
+ import { useSettings } from './context/SettingsContext';
59
+ import { styleTag } from './constants';
60
+ import EditorStyle from './style';
61
+ export default function PHXTextEditorV2(_a) {
62
+ var defaultValue = _a.defaultValue, label = _a.label, onChange = _a.onChange, placeholder = _a.placeholder, apiCdnUpload = _a.apiCdnUpload;
63
+ var _b = useState(false), isSmallWidthViewport = _b[0], setIsSmallWidthViewport = _b[1];
64
+ var historyState = useSharedHistoryContext().historyState;
65
+ var _c = useState(null), floatingAnchorElem = _c[0], setFloatingAnchorElem = _c[1];
66
+ var onRef = function (_floatingAnchorElem) {
67
+ if (_floatingAnchorElem !== null) {
68
+ setFloatingAnchorElem(_floatingAnchorElem);
69
+ }
70
+ };
71
+ var _d = useSettings().settings, isAutocomplete = _d.isAutocomplete, isCharLimit = _d.isCharLimit, isCharLimitUtf8 = _d.isCharLimitUtf8, isMaxLength = _d.isMaxLength, shouldUseLexicalContextMenu = _d.shouldUseLexicalContextMenu, showTableOfContents = _d.showTableOfContents, tableCellBackgroundColor = _d.tableCellBackgroundColor, tableCellMerge = _d.tableCellMerge;
72
+ var editorConfig = {
73
+ theme: PlaygroundEditorTheme,
74
+ editorState: prepopulatedRichText,
75
+ onError: function (error) {
76
+ throw error;
77
+ },
78
+ nodes: __spreadArray(__spreadArray([], PlaygroundNodes, true), [
79
+ ExtendedTextNode,
80
+ {
81
+ replace: TextNode,
82
+ with: function (node) { return new ExtendedTextNode(node.__text); },
83
+ withKlass: ExtendedTextNode,
84
+ },
85
+ ], false),
86
+ };
87
+ function prepopulatedRichText() {
88
+ var root = $getRoot();
89
+ try {
90
+ if (defaultValue) {
91
+ var html = defaultValue;
92
+ var htmlLength = html.length;
93
+ var utf8Array = new Uint8Array(htmlLength);
94
+ for (var i = 0; i < htmlLength; i++) {
95
+ utf8Array[i] = html.charCodeAt(i);
96
+ }
97
+ var utf8Text = new TextDecoder('utf-8').decode(utf8Array);
98
+ var editor = createEditor();
99
+ var parser = new DOMParser();
100
+ var dom = parser.parseFromString(utf8Text, 'text/html');
101
+ var nodes = $generateNodesFromDOM(editor, dom);
102
+ if (root.getFirstChild() === null) {
103
+ root.append.apply(root, nodes);
104
+ }
105
+ }
106
+ }
107
+ catch (e) {
108
+ root.append.apply(root, []);
109
+ }
110
+ }
111
+ function ensureStyleTag(html, css) {
112
+ var parser = new DOMParser();
113
+ var doc = parser.parseFromString(html, 'text/html');
114
+ var hasStyle = doc.querySelector('style');
115
+ if (!hasStyle) {
116
+ var styleTag_1 = doc.createElement('style');
117
+ styleTag_1.innerHTML = css;
118
+ doc.head.appendChild(styleTag_1);
119
+ }
120
+ return doc.documentElement.outerHTML;
121
+ }
122
+ var handleChange = function (editorState, editor) {
123
+ editorState.read(function () {
124
+ var data = JSON.stringify(editorState);
125
+ return data;
126
+ });
127
+ editor.update(function () {
128
+ var rawHTML = $generateHtmlFromNodes(editor, null);
129
+ var htmlWithStyle = ensureStyleTag(rawHTML, styleTag);
130
+ onChange === null || onChange === void 0 ? void 0 : onChange(htmlWithStyle);
131
+ });
132
+ };
133
+ useEffect(function () {
134
+ var updateViewPortWidth = function () {
135
+ var isNextSmallWidthViewport = CAN_USE_DOM && window.matchMedia('(max-width: 1025px)').matches;
136
+ if (isNextSmallWidthViewport !== isSmallWidthViewport) {
137
+ setIsSmallWidthViewport(isNextSmallWidthViewport);
138
+ }
139
+ };
140
+ updateViewPortWidth();
141
+ window.addEventListener('resize', updateViewPortWidth);
142
+ return function () {
143
+ window.removeEventListener('resize', updateViewPortWidth);
144
+ };
145
+ }, [isSmallWidthViewport]);
146
+ return (React.createElement("div", null,
147
+ React.createElement(EditorStyle, null),
148
+ label && React.createElement("label", { className: 'block mb-1 text-xs font-normal text-gray-700' }, label),
149
+ React.createElement(LexicalComposer, { initialConfig: editorConfig },
150
+ React.createElement(SharedHistoryContext, null,
151
+ React.createElement(TableContext, null,
152
+ React.createElement(SharedAutocompleteContext, null,
153
+ React.createElement("div", { className: 'rounded-md border border-gray-300 shadow-sm overflow-hidden' },
154
+ React.createElement(ToolbarPlugin, { apiCdnUpload: apiCdnUpload }),
155
+ React.createElement("div", { className: 'relative' },
156
+ isMaxLength && React.createElement(MaxLengthPlugin, { maxLength: 30 }),
157
+ React.createElement(ClearEditorPlugin, null),
158
+ React.createElement(ComponentPickerPlugin, null),
159
+ React.createElement(EmojiPickerPlugin, null),
160
+ React.createElement(AutoEmbedPlugin, null),
161
+ React.createElement(MentionsPlugin, null),
162
+ React.createElement(EmojisPlugin, null),
163
+ React.createElement(HashtagPlugin, null),
164
+ React.createElement(KeywordsPlugin, null),
165
+ React.createElement(OnChangePlugin, { onChange: handleChange }),
166
+ React.createElement(HistoryPlugin, { externalHistoryState: historyState }),
167
+ React.createElement(RichTextPlugin, { contentEditable: React.createElement("div", { ref: onRef },
168
+ React.createElement(ContentEditable, { className: 'px-2 py-1.5 h-[20rem] overflow-y-auto outline-none text-sm' })), ErrorBoundary: LexicalErrorBoundary, placeholder: React.createElement("p", { className: 'absolute top-1.5 left-2 text-xs text-[#999] z-10 overflow-hidden text-ellipsis inline-block select-none pointer-events-none' }, placeholder) }),
169
+ React.createElement(MarkdownShortcutPlugin, null),
170
+ React.createElement(CodeHighlightPlugin, null),
171
+ React.createElement(ListPlugin, null),
172
+ React.createElement(CheckListPlugin, null),
173
+ React.createElement(ListMaxIndentLevelPlugin, { maxDepth: 7 }),
174
+ React.createElement(TablePlugin, { hasCellBackgroundColor: tableCellBackgroundColor, hasCellMerge: tableCellMerge }),
175
+ React.createElement(TableCellResizer, null),
176
+ React.createElement(ImagesPlugin, null),
177
+ React.createElement(InlineImagePlugin, null),
178
+ React.createElement(LinkPlugin, null),
179
+ React.createElement(PollPlugin, null),
180
+ React.createElement(TwitterPlugin, null),
181
+ React.createElement(YouTubePlugin, null),
182
+ React.createElement(FigmaPlugin, null),
183
+ React.createElement(LexicalClickableLinkPlugin, null),
184
+ React.createElement(HorizontalRulePlugin, null),
185
+ React.createElement(EquationsPlugin, null),
186
+ React.createElement(ExcalidrawPlugin, null),
187
+ React.createElement(TabFocusPlugin, null),
188
+ React.createElement(TabIndentationPlugin, null),
189
+ React.createElement(CollapsiblePlugin, null),
190
+ React.createElement(PageBreakPlugin, null),
191
+ React.createElement(LayoutPlugin, null),
192
+ floatingAnchorElem && !isSmallWidthViewport && (React.createElement(React.Fragment, null,
193
+ React.createElement(CodeActionMenuPlugin, { anchorElem: floatingAnchorElem }),
194
+ React.createElement(TableCellActionMenuPlugin, { anchorElem: floatingAnchorElem, cellMerge: true }))),
195
+ (isCharLimit || isCharLimitUtf8) && (React.createElement(CharacterLimitPlugin, { charset: isCharLimit ? 'UTF-16' : 'UTF-8', maxLength: 5 })),
196
+ isAutocomplete && React.createElement(AutocompletePlugin, null),
197
+ React.createElement("div", null, showTableOfContents && React.createElement(TableOfContentsPlugin, null)),
198
+ shouldUseLexicalContextMenu && React.createElement(ContextMenuPlugin, null)))))))));
199
+ }
200
+ //# sourceMappingURL=editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.js","sourceRoot":"","sources":["../../../../src/components/TextEditorV2/editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,QAAQ,EAAiB,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACzE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAA;AAC/E,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAC9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,eAAe,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,qBAAqB,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAA;AAC3E,OAAO,0BAA0B,MAAM,2CAA2C,CAAA;AAClF,OAAO,oBAAoB,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,aAAa,EAAE,MAA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CAClF;gCACA,cAAc,IAAI,oBAAC,kBAAkB,OAAG;gCACzC,iCAAM,mBAAmB,IAAI,oBAAC,qBAAqB,OAAG,CAAO;gCAC5D,2BAA2B,IAAI,oBAAC,iBAAiB,OAAG,CACjD,CACF,CACoB,CACf,CACM,CACP,CACd,CACP,CAAA;AACH,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export default function useModal(): [
3
+ React.JSX.Element | null,
4
+ (title: string, showModal: (onClose: () => void) => React.JSX.Element) => void
5
+ ];
@@ -0,0 +1,28 @@
1
+ import { useCallback, useMemo, useState } from 'react';
2
+ import * as React from 'react';
3
+ import Modal from '../ui/Modal';
4
+ export default function useModal() {
5
+ var _a = useState(null), modalContent = _a[0], setModalContent = _a[1];
6
+ var onClose = useCallback(function () {
7
+ setModalContent(null);
8
+ }, []);
9
+ var modal = useMemo(function () {
10
+ if (modalContent === null) {
11
+ return null;
12
+ }
13
+ var closeOnClickOutside = modalContent.closeOnClickOutside, content = modalContent.content, title = modalContent.title;
14
+ return (React.createElement(Modal, { closeOnClickOutside: closeOnClickOutside, onClose: onClose, title: title }, content));
15
+ }, [modalContent, onClose]);
16
+ var showModal = useCallback(function (title,
17
+ // eslint-disable-next-line no-shadow
18
+ getContent, closeOnClickOutside) {
19
+ if (closeOnClickOutside === void 0) { closeOnClickOutside = false; }
20
+ setModalContent({
21
+ closeOnClickOutside: closeOnClickOutside,
22
+ content: getContent(onClose),
23
+ title: title,
24
+ });
25
+ }, [onClose]);
26
+ return [modal, showModal];
27
+ }
28
+ //# sourceMappingURL=useModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useModal.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/hooks/useModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,MAAM,aAAa,CAAA;AAE/B,MAAM,CAAC,OAAO,UAAU,QAAQ;IAIxB,IAAA,KAAkC,QAAQ,CAI7C,IAAI,CAAC,EAJD,YAAY,QAAA,EAAE,eAAe,QAI5B,CAAA;IAER,IAAM,OAAO,GAAG,WAAW,CAAC;QAC1B,eAAe,CAAC,IAAI,CAAC,CAAA;IACvB,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,IAAM,KAAK,GAAG,OAAO,CAAC;QACpB,IAAI,YAAY,KAAK,IAAI,EAAE,CAAC;YAC1B,OAAO,IAAI,CAAA;QACb,CAAC;QACO,IAAA,mBAAmB,GAAqB,YAAY,oBAAjC,EAAE,OAAO,GAAY,YAAY,QAAxB,EAAE,KAAK,GAAK,YAAY,MAAjB,CAAiB;QAC5D,OAAO,CACL,oBAAC,KAAK,IAAC,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,IAC5E,OAAO,CACF,CACT,CAAA;IACH,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAA;IAE3B,IAAM,SAAS,GAAG,WAAW,CAC3B,UACE,KAAa;IACb,qCAAqC;IACrC,UAAsD,EACtD,mBAA2B;QAA3B,oCAAA,EAAA,2BAA2B;QAE3B,eAAe,CAAC;YACd,mBAAmB,qBAAA;YACnB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;YAC5B,KAAK,OAAA;SACN,CAAC,CAAA;IACJ,CAAC,EACD,CAAC,OAAO,CAAC,CACV,CAAA;IAED,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;AAC3B,CAAC"}
@@ -0,0 +1 @@
1
+ export default function useReport(): (arg0: string) => ReturnType<typeof setTimeout>;
@@ -0,0 +1,42 @@
1
+ import { useCallback, useEffect, useRef } from 'react';
2
+ var getElement = function () {
3
+ var element = document.getElementById('report-container');
4
+ if (element === null) {
5
+ element = document.createElement('div');
6
+ element.id = 'report-container';
7
+ element.style.position = 'fixed';
8
+ element.style.top = '50%';
9
+ element.style.left = '50%';
10
+ element.style.fontSize = '32px';
11
+ element.style.transform = 'translate(-50%, -50px)';
12
+ element.style.padding = '20px';
13
+ element.style.background = 'rgba(240, 240, 240, 0.4)';
14
+ element.style.borderRadius = '20px';
15
+ if (document.body) {
16
+ document.body.appendChild(element);
17
+ }
18
+ }
19
+ return element;
20
+ };
21
+ export default function useReport() {
22
+ var timer = useRef(null);
23
+ var cleanup = useCallback(function () {
24
+ if (timer !== null) {
25
+ clearTimeout(timer.current);
26
+ }
27
+ if (document.body) {
28
+ document.body.removeChild(getElement());
29
+ }
30
+ }, []);
31
+ useEffect(function () { return cleanup; }, [cleanup]);
32
+ return useCallback(function (content) {
33
+ // eslint-disable-next-line no-console
34
+ console.log(content);
35
+ var element = getElement();
36
+ clearTimeout(timer.current);
37
+ element.innerHTML = content;
38
+ timer.current = setTimeout(cleanup, 1000);
39
+ return timer.current;
40
+ }, [cleanup]);
41
+ }
42
+ //# sourceMappingURL=useReport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReport.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/hooks/useReport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEtD,IAAM,UAAU,GAAG;IACjB,IAAI,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAA;IAEzD,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QACvC,OAAO,CAAC,EAAE,GAAG,kBAAkB,CAAA;QAC/B,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAA;QAChC,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAA;QACzB,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAA;QAC1B,OAAO,CA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K,CAAC,OAAO,CAAA;IACtB,CAAC,EACD,CAAC,OAAO,CAAC,CACV,CAAA;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export default function Settings(): React.JSX.Element;
@@ -0,0 +1,48 @@
1
+ import * as React from 'react';
2
+ import { useMemo, useState } from 'react';
3
+ import { useSettings } from '../context/SettingsContext';
4
+ import Switch from '../ui/Switch';
5
+ import { isDevPlayground } from './appSettings';
6
+ export default function Settings() {
7
+ var windowLocation = window.location;
8
+ var _a = useSettings(), setOption = _a.setOption, _b = _a.settings, disableBeforeInput = _b.disableBeforeInput, isAutocomplete = _b.isAutocomplete, isCharLimit = _b.isCharLimit, isCharLimitUtf8 = _b.isCharLimitUtf8, isMaxLength = _b.isMaxLength, isRichText = _b.isRichText, measureTypingPerf = _b.measureTypingPerf, shouldUseLexicalContextMenu = _b.shouldUseLexicalContextMenu, showNestedEditorTreeView = _b.showNestedEditorTreeView, showTableOfContents = _b.showTableOfContents, showTreeView = _b.showTreeView;
9
+ var _c = useState(false), showSettings = _c[0], setShowSettings = _c[1];
10
+ var _d = useMemo(function () {
11
+ var parentWindow = window.parent;
12
+ var _search = windowLocation.search;
13
+ var _isSplitScreen = parentWindow && parentWindow.location.pathname === '/split/';
14
+ return [_isSplitScreen, _search];
15
+ }, [windowLocation]), isSplitScreen = _d[0], search = _d[1];
16
+ return (React.createElement(React.Fragment, null,
17
+ React.createElement("button", { className: "editor-dev-button ".concat(showSettings ? 'active' : ''), id: 'options-button', onClick: function () { return setShowSettings(!showSettings); }, type: 'button' }),
18
+ showSettings ? (React.createElement("div", { className: 'switches' },
19
+ isDevPlayground && (React.createElement(Switch, { checked: isSplitScreen, onClick: function () {
20
+ if (isSplitScreen) {
21
+ window.parent.location.href = "/".concat(search);
22
+ }
23
+ else {
24
+ window.location.href = "/split/".concat(search);
25
+ }
26
+ }, text: 'Split Screen' })),
27
+ React.createElement(Switch, { checked: measureTypingPerf, onClick: function () { return setOption('measureTypingPerf', !measureTypingPerf); }, text: 'Measure Perf' }),
28
+ React.createElement(Switch, { checked: showTreeView, onClick: function () { return setOption('showTreeView', !showTreeView); }, text: 'Debug View' }),
29
+ React.createElement(Switch, { checked: showNestedEditorTreeView, onClick: function () { return setOption('showNestedEditorTreeView', !showNestedEditorTreeView); }, text: 'Nested Editors Debug View' }),
30
+ React.createElement(Switch, { checked: isRichText, onClick: function () {
31
+ setOption('isRichText', !isRichText);
32
+ }, text: 'Rich Text' }),
33
+ React.createElement(Switch, { checked: isCharLimit, onClick: function () { return setOption('isCharLimit', !isCharLimit); }, text: 'Char Limit' }),
34
+ React.createElement(Switch, { checked: isCharLimitUtf8, onClick: function () { return setOption('isCharLimitUtf8', !isCharLimitUtf8); }, text: 'Char Limit (UTF-8)' }),
35
+ React.createElement(Switch, { checked: isMaxLength, onClick: function () { return setOption('isMaxLength', !isMaxLength); }, text: 'Max Length' }),
36
+ React.createElement(Switch, { checked: isAutocomplete, onClick: function () { return setOption('isAutocomplete', !isAutocomplete); }, text: 'Autocomplete' }),
37
+ React.createElement(Switch, { checked: disableBeforeInput, onClick: function () {
38
+ setOption('disableBeforeInput', !disableBeforeInput);
39
+ setTimeout(function () { return window.location.reload(); }, 500);
40
+ }, text: 'Legacy Events' }),
41
+ React.createElement(Switch, { checked: showTableOfContents, onClick: function () {
42
+ setOption('showTableOfContents', !showTableOfContents);
43
+ }, text: 'Table Of Contents' }),
44
+ React.createElement(Switch, { checked: shouldUseLexicalContextMenu, onClick: function () {
45
+ setOption('shouldUseLexicalContextMenu', !shouldUseLexicalContextMenu);
46
+ }, text: 'Use Lexical Context Menu' }))) : null));
47
+ }
48
+ //# sourceMappingURL=Settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Settings.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/lib/Settings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,EAAE,QAAQ,EA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,EACxB,OAAO,EAAE,cAAM,OAAA,SAAS,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC,EAA9C,CAA8C,EAC7D,IAAI,EAAC,oBAAoB,GACzB;YACF,oBAAC,MAAM,IAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,cAAM,OAAA,SAAS,CAAC,aAAa,EAAE,CAAC,WAAW,CAAC,EAAtC,CAAsC,EAAE,IAAI,EAAC,YAAY,GAAG;YACzG,oBAAC,MAAM,IACL,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,cAAM,OAAA,SAAS,CAAC,gBAAgB,EAAE,CAAC,cAAc,CAAC,EAA5C,CAA4C,EAC3D,IAAI,EAAC,cAAc,GACnB;YACF,oBAAC,MAAM,IACL,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE;oBACP,SAAS,CAAC,oBAAoB,EAAE,CAAC,kBAAkB,CAAC,CAAA;oBACpD,UAAU,CAAC,cAAM,OAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAxB,CAAwB,EAAE,GAAG,CAAC,CAAA;gBACjD,CAAC,EACD,IAAI,EAAC,eAAe,GACpB;YACF,oBAAC,MAAM,IACL,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE;oBACP,SAAS,CAAC,qBAAqB,EAAE,CAAC,mBAAmB,CAAC,CAAA;gBACxD,CAAC,EACD,IAAI,EAAC,mBAAmB,GACxB;YACF,oBAAC,MAAM,IACL,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE;oBACP,SAAS,CAAC,6BAA6B,EAAE,CAAC,2BAA2B,CAAC,CAAA;gBACxE,CAAC,EACD,IAAI,EAAC,0BAA0B,GAC/B,CACE,CACP,CAAC,CAAC,CAAC,IAAI,CACP,CACJ,CAAA;AACH,CAAC"}
@@ -0,0 +1,19 @@
1
+ export declare const isDevPlayground = false;
2
+ export declare const DEFAULT_SETTINGS: {
3
+ disableBeforeInput: boolean;
4
+ emptyEditor: boolean;
5
+ isAutocomplete: boolean;
6
+ isCharLimit: boolean;
7
+ isCharLimitUtf8: boolean;
8
+ isMaxLength: boolean;
9
+ isRichText: boolean;
10
+ measureTypingPerf: boolean;
11
+ shouldUseLexicalContextMenu: boolean;
12
+ showNestedEditorTreeView: boolean;
13
+ showTableOfContents: boolean;
14
+ showTreeView: boolean;
15
+ tableCellBackgroundColor: boolean;
16
+ tableCellMerge: boolean;
17
+ };
18
+ export type SettingName = keyof typeof DEFAULT_SETTINGS;
19
+ export type Settings = typeof DEFAULT_SETTINGS;
@@ -0,0 +1,18 @@
1
+ export var isDevPlayground = false;
2
+ export var DEFAULT_SETTINGS = {
3
+ disableBeforeInput: false,
4
+ emptyEditor: isDevPlayground,
5
+ isAutocomplete: false,
6
+ isCharLimit: false,
7
+ isCharLimitUtf8: false,
8
+ isMaxLength: false,
9
+ isRichText: true,
10
+ measureTypingPerf: false,
11
+ shouldUseLexicalContextMenu: false,
12
+ showNestedEditorTreeView: false,
13
+ showTableOfContents: false,
14
+ showTreeView: true,
15
+ tableCellBackgroundColor: true,
16
+ tableCellMerge: true,
17
+ };
18
+ //# sourceMappingURL=appSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appSettings.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/lib/appSettings.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,eAAe,GAAG,KAAK,CAAA;AAEpC,MAAM,CAAC,IAAM,gBAAgB,GAAG;IAC9B,kBAAkB,EAAE,KAAK;IACzB,WAAW,EAAE,eAAe;IAC5B,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,KAAK;IAClB,eAAe,EAAE,KAAK;IACtB,WAAW,EAAE,KAAK;IAClB,UAAU,EAAE,IAAI;IAChB,iBAAiB,EAAE,KAAK;IACxB,2BAA2B,EAAE,KAAK;IAClC,wBAAwB,EAAE,KAAK;IAC/B,mBAAmB,EAAE,KAAK;IAC1B,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,cAAc,EAAE,IAAI;CACrB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { Provider } from '@lexical/yjs';
2
+ import { Doc } from 'yjs';
3
+ export declare function createWebsocketProvider(id: string, yjsDocMap: Map<string, Doc>): Provider;
@@ -0,0 +1,23 @@
1
+ import { WebsocketProvider } from 'y-websocket';
2
+ import { Doc } from 'yjs';
3
+ var url = new URL(window.location.href);
4
+ var params = new URLSearchParams(url.search);
5
+ var WEBSOCKET_ENDPOINT = params.get('collabEndpoint') || 'ws://localhost:1234';
6
+ var WEBSOCKET_SLUG = 'playground';
7
+ var WEBSOCKET_ID = params.get('collabId') || '0';
8
+ // parent dom -> child doc
9
+ export function createWebsocketProvider(id, yjsDocMap) {
10
+ var doc = yjsDocMap.get(id);
11
+ if (doc === undefined) {
12
+ doc = new Doc();
13
+ yjsDocMap.set(id, doc);
14
+ }
15
+ else {
16
+ doc.load();
17
+ }
18
+ // @ts-ignore
19
+ return new WebsocketProvider(WEBSOCKET_ENDPOINT, WEBSOCKET_SLUG + '/' + WEBSOCKET_ID + '/' + id, doc, {
20
+ connect: false,
21
+ });
22
+ }
23
+ //# sourceMappingURL=collaboration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collaboration.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/lib/collaboration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,IAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;AACzC,IAAM,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;AAC9C,IAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,qBAAqB,CAAA;AAChF,IAAM,cAAc,GAAG,YAAY,CAAA;AACnC,IAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,GAAG,CAAA;AAElD,0BAA0B;AAC1B,MAAM,UAAU,uBAAuB,CAAC,EAAU,EAAE,SAA2B;IAC7E,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtB,GAAG,GAAG,IAAI,GAAG,EAAE,CAAA;QACf,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAA;IACxB,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,IAAI,EAAE,CAAA;IACZ,CAAC;IAED,aAAa;IACb,OAAO,IAAI,iBAAiB,CAAC,kBAAkB,EAAE,cAAc,GAAG,GAAG,GAAG,YAAY,GAAG,GAAG,GAAG,EAAE,EAAE,GAAG,EAAE;QACpG,OAAO,EAAE,KAAK;KACf,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ var _a;
2
+ import { DEFAULT_SETTINGS } from './appSettings';
3
+ // override default options with query parameters if any
4
+ var urlSearchParams = new URLSearchParams(window.location.search);
5
+ for (var _i = 0, _b = Object.keys(DEFAULT_SETTINGS); _i < _b.length; _i++) {
6
+ var param = _b[_i];
7
+ if (urlSearchParams.has(param)) {
8
+ try {
9
+ var value = JSON.parse((_a = urlSearchParams.get(param)) !== null && _a !== void 0 ? _a : 'true');
10
+ DEFAULT_SETTINGS[param] = Boolean(value);
11
+ }
12
+ catch (error) {
13
+ console.warn("Unable to parse query parameter \"".concat(param, "\""));
14
+ }
15
+ }
16
+ }
17
+ if (DEFAULT_SETTINGS.disableBeforeInput) {
18
+ // @ts-expect-error
19
+ delete window.InputEvent.prototype.getTargetRanges;
20
+ }
21
+ //# sourceMappingURL=setupEnv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupEnv.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/lib/setupEnv.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAY,MAAM,eAAe,CAAA;AAE1D,wDAAwD;AACxD,IAAM,eAAe,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;AAEnE,KAAoB,UAA6B,EAA7B,KAAA,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAA7B,cAA6B,EAA7B,IAA6B,EAAE,CAAC;IAA/C,IAAM,KAAK,SAAA;IACd,IAAI,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/B,IAAI,CAAC;YACH,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAA,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,mCAAI,MAAM,CAAC,CAAA;YAC9D,gBAAgB,CAAC,KAAuB,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAA;QAC5D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,4CAAoC,KAAK,OAAG,CAAC,CAAA;QAC5D,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,gBAAgB,CAAC,kBAAkB,EAAE,CAAC;IACxC,mBAAmB;IACnB,OAAO,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,eAAe,CAAA;AACpD,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { Spread } from 'lexical';
2
+ import { DecoratorNode, NodeKey, SerializedLexicalNode } from 'lexical';
3
+ import * as React from 'react';
4
+ declare global {
5
+ interface Navigator {
6
+ userAgentData?: {
7
+ mobile: boolean;
8
+ };
9
+ }
10
+ }
11
+ export type SerializedAutocompleteNode = Spread<{
12
+ uuid: string;
13
+ }, SerializedLexicalNode>;
14
+ export declare class AutocompleteNode extends DecoratorNode<React.JSX.Element | null> {
15
+ __uuid: string;
16
+ static clone(node: AutocompleteNode): AutocompleteNode;
17
+ static getType(): 'autocomplete';
18
+ static importJSON(serializedNode: SerializedAutocompleteNode): AutocompleteNode;
19
+ exportJSON(): SerializedAutocompleteNode;
20
+ constructor(uuid: string, key?: NodeKey);
21
+ updateDOM(): boolean;
22
+ createDOM(): HTMLElement;
23
+ decorate(): React.JSX.Element | null;
24
+ }
25
+ export declare function $createAutocompleteNode(uuid: string): AutocompleteNode;