phx-react 1.3.1569 → 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 (855) hide show
  1. package/dist/cjs/components/Combobox/Combobox.js +9 -3
  2. package/dist/cjs/components/Combobox/Combobox.js.map +1 -1
  3. package/dist/cjs/components/TextEditorV2/commenting/index.d.ts +41 -0
  4. package/dist/cjs/components/TextEditorV2/commenting/index.js +340 -0
  5. package/dist/cjs/components/TextEditorV2/commenting/index.js.map +1 -0
  6. package/dist/cjs/components/TextEditorV2/constants.d.ts +1 -0
  7. package/dist/cjs/components/TextEditorV2/constants.js +5 -0
  8. package/dist/cjs/components/TextEditorV2/constants.js.map +1 -0
  9. package/dist/cjs/components/TextEditorV2/context/SettingsContext.d.ts +12 -0
  10. package/dist/cjs/components/TextEditorV2/context/SettingsContext.js +59 -0
  11. package/dist/cjs/components/TextEditorV2/context/SettingsContext.js.map +1 -0
  12. package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.d.ts +10 -0
  13. package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.js +50 -0
  14. package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.js.map +1 -0
  15. package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.d.ts +11 -0
  16. package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.js +17 -0
  17. package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.js.map +1 -0
  18. package/dist/cjs/components/TextEditorV2/editor.d.ts +10 -0
  19. package/dist/cjs/components/TextEditorV2/editor.js +203 -0
  20. package/dist/cjs/components/TextEditorV2/editor.js.map +1 -0
  21. package/dist/cjs/components/TextEditorV2/hooks/useModal.d.ts +5 -0
  22. package/dist/cjs/components/TextEditorV2/hooks/useModal.js +32 -0
  23. package/dist/cjs/components/TextEditorV2/hooks/useModal.js.map +1 -0
  24. package/dist/cjs/components/TextEditorV2/hooks/useReport.d.ts +1 -0
  25. package/dist/cjs/components/TextEditorV2/hooks/useReport.js +45 -0
  26. package/dist/cjs/components/TextEditorV2/hooks/useReport.js.map +1 -0
  27. package/dist/cjs/components/TextEditorV2/lib/Settings.d.ts +2 -0
  28. package/dist/cjs/components/TextEditorV2/lib/Settings.js +52 -0
  29. package/dist/cjs/components/TextEditorV2/lib/Settings.js.map +1 -0
  30. package/dist/cjs/components/TextEditorV2/lib/appSettings.d.ts +19 -0
  31. package/dist/cjs/components/TextEditorV2/lib/appSettings.js +21 -0
  32. package/dist/cjs/components/TextEditorV2/lib/appSettings.js.map +1 -0
  33. package/dist/cjs/components/TextEditorV2/lib/collaboration.d.ts +3 -0
  34. package/dist/cjs/components/TextEditorV2/lib/collaboration.js +26 -0
  35. package/dist/cjs/components/TextEditorV2/lib/collaboration.js.map +1 -0
  36. package/dist/cjs/components/TextEditorV2/lib/setupEnv.d.ts +1 -0
  37. package/dist/cjs/components/TextEditorV2/lib/setupEnv.js +23 -0
  38. package/dist/cjs/components/TextEditorV2/lib/setupEnv.js.map +1 -0
  39. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.d.ts +25 -0
  40. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.js +58 -0
  41. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.js.map +1 -0
  42. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.d.ts +18 -0
  43. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.js +62 -0
  44. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.js.map +1 -0
  45. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.d.ts +9 -0
  46. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.js +72 -0
  47. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.js.map +1 -0
  48. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.d.ts +26 -0
  49. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.js +126 -0
  50. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.js.map +1 -0
  51. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.d.ts +6 -0
  52. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js +117 -0
  53. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js.map +1 -0
  54. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.d.ts +50 -0
  55. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js +59 -0
  56. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js.map +1 -0
  57. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.d.ts +44 -0
  58. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js +143 -0
  59. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js.map +1 -0
  60. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.d.ts +22 -0
  61. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.js +103 -0
  62. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.js.map +1 -0
  63. package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.d.ts +12 -0
  64. package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.js +106 -0
  65. package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.js.map +1 -0
  66. package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.d.ts +19 -0
  67. package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.js +63 -0
  68. package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.js.map +1 -0
  69. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.d.ts +14 -0
  70. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.js +212 -0
  71. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.js.map +1 -0
  72. package/dist/cjs/components/TextEditorV2/nodes/ImageNode.d.ts +56 -0
  73. package/dist/cjs/components/TextEditorV2/nodes/ImageNode.js +136 -0
  74. package/dist/cjs/components/TextEditorV2/nodes/ImageNode.js.map +1 -0
  75. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.d.ts +18 -0
  76. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.js +194 -0
  77. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.js.map +1 -0
  78. package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.d.ts +54 -0
  79. package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.js +142 -0
  80. package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.js.map +1 -0
  81. package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.d.ts +15 -0
  82. package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.js +54 -0
  83. package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.js.map +1 -0
  84. package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.d.ts +21 -0
  85. package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.js +63 -0
  86. package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.js.map +1 -0
  87. package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.d.ts +15 -0
  88. package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.js +51 -0
  89. package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.js.map +1 -0
  90. package/dist/cjs/components/TextEditorV2/nodes/MentionNode.d.ts +20 -0
  91. package/dist/cjs/components/TextEditorV2/nodes/MentionNode.js +89 -0
  92. package/dist/cjs/components/TextEditorV2/nodes/MentionNode.js.map +1 -0
  93. package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.d.ts +17 -0
  94. package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.js +113 -0
  95. package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.js.map +1 -0
  96. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.d.ts +3 -0
  97. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.js +68 -0
  98. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.js.map +1 -0
  99. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.d.ts +8 -0
  100. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.js +113 -0
  101. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.js.map +1 -0
  102. package/dist/cjs/components/TextEditorV2/nodes/PollNode.d.ts +33 -0
  103. package/dist/cjs/components/TextEditorV2/nodes/PollNode.js +149 -0
  104. package/dist/cjs/components/TextEditorV2/nodes/PollNode.js.map +1 -0
  105. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.d.ts +9 -0
  106. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.js +167 -0
  107. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.js.map +1 -0
  108. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.d.ts +37 -0
  109. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.js +94 -0
  110. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.js.map +1 -0
  111. package/dist/cjs/components/TextEditorV2/nodes/TableNode.d.ts +54 -0
  112. package/dist/cjs/components/TextEditorV2/nodes/TableNode.js +198 -0
  113. package/dist/cjs/components/TextEditorV2/nodes/TableNode.js.map +1 -0
  114. package/dist/cjs/components/TextEditorV2/nodes/TweetNode.d.ts +28 -0
  115. package/dist/cjs/components/TextEditorV2/nodes/TweetNode.js +156 -0
  116. package/dist/cjs/components/TextEditorV2/nodes/TweetNode.js.map +1 -0
  117. package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.d.ts +28 -0
  118. package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.js +103 -0
  119. package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.js.map +1 -0
  120. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.d.ts +2 -0
  121. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.js +183 -0
  122. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.js.map +1 -0
  123. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.d.ts +19 -0
  124. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js +179 -0
  125. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js.map +1 -0
  126. package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.d.ts +2 -0
  127. package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.js +16 -0
  128. package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.js.map +1 -0
  129. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.d.ts +2 -0
  130. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.js +2465 -0
  131. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.js.map +1 -0
  132. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +8 -0
  133. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +55 -0
  134. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -0
  135. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +10 -0
  136. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +159 -0
  137. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -0
  138. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.d.ts +4 -0
  139. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js +111 -0
  140. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js.map +1 -0
  141. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
  142. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js +21 -0
  143. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js.map +1 -0
  144. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.d.ts +1 -0
  145. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js +12 -0
  146. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js.map +1 -0
  147. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.d.ts +23 -0
  148. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +88 -0
  149. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +1 -0
  150. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.d.ts +17 -0
  151. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js +70 -0
  152. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +1 -0
  153. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.d.ts +18 -0
  154. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +95 -0
  155. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +1 -0
  156. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.d.ts +3 -0
  157. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.js +148 -0
  158. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.js.map +1 -0
  159. package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.d.ts +2 -0
  160. package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js +264 -0
  161. package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js.map +1 -0
  162. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.d.ts +11 -0
  163. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.js +171 -0
  164. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.js.map +1 -0
  165. package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.d.ts +2 -0
  166. package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.js +10 -0
  167. package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.js.map +1 -0
  168. package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.d.ts +1 -0
  169. package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.js +44 -0
  170. package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.js.map +1 -0
  171. package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.d.ts +4 -0
  172. package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js +288 -0
  173. package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js.map +1 -0
  174. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.d.ts +2 -0
  175. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js +97 -0
  176. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js.map +1 -0
  177. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.d.ts +1 -0
  178. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.js +64 -0
  179. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.js.map +1 -0
  180. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.d.ts +14 -0
  181. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.js +42 -0
  182. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.js.map +1 -0
  183. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.d.ts +3 -0
  184. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js +28 -0
  185. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js.map +1 -0
  186. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.d.ts +3 -0
  187. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.js +25 -0
  188. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.js.map +1 -0
  189. package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.d.ts +7 -0
  190. package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js +200 -0
  191. package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js.map +1 -0
  192. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +4 -0
  193. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js +229 -0
  194. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -0
  195. package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.d.ts +22 -0
  196. package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.js +188 -0
  197. package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.js.map +1 -0
  198. package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.d.ts +17 -0
  199. package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.js +193 -0
  200. package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.js.map +1 -0
  201. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.d.ts +1 -0
  202. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.js +33 -0
  203. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.js.map +1 -0
  204. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +6 -0
  205. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js +34 -0
  206. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js.map +1 -0
  207. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.d.ts +7 -0
  208. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js +89 -0
  209. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js.map +1 -0
  210. package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.d.ts +2 -0
  211. package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.js +11 -0
  212. package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.js.map +1 -0
  213. package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.d.ts +5 -0
  214. package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js +44 -0
  215. package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js.map +1 -0
  216. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.d.ts +2 -0
  217. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js +11 -0
  218. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js.map +1 -0
  219. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.d.ts +8 -0
  220. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.js +242 -0
  221. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.js.map +1 -0
  222. package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.d.ts +3 -0
  223. package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.js +41 -0
  224. package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.js.map +1 -0
  225. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.d.ts +2 -0
  226. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.js +560 -0
  227. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.js.map +1 -0
  228. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.d.ts +3 -0
  229. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.js +31 -0
  230. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.js.map +1 -0
  231. package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.d.ts +2 -0
  232. package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.js +37 -0
  233. package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.js.map +1 -0
  234. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.d.ts +8 -0
  235. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.js +46 -0
  236. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.js.map +1 -0
  237. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.d.ts +1 -0
  238. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.js +16 -0
  239. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.js.map +1 -0
  240. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.d.ts +1 -0
  241. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.js +38 -0
  242. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.js.map +1 -0
  243. package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.d.ts +5 -0
  244. package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js +487 -0
  245. package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js.map +1 -0
  246. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.d.ts +2 -0
  247. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.js +253 -0
  248. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.js.map +1 -0
  249. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.d.ts +2 -0
  250. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js +117 -0
  251. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js.map +1 -0
  252. package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.d.ts +32 -0
  253. package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.js +85 -0
  254. package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.js.map +1 -0
  255. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.d.ts +6 -0
  256. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js +18 -0
  257. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js.map +1 -0
  258. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.d.ts +6 -0
  259. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js +28 -0
  260. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js.map +1 -0
  261. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.d.ts +6 -0
  262. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js +65 -0
  263. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js.map +1 -0
  264. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.d.ts +6 -0
  265. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js +71 -0
  266. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js.map +1 -0
  267. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.d.ts +6 -0
  268. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js +18 -0
  269. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js.map +1 -0
  270. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.d.ts +5 -0
  271. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js +46 -0
  272. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js.map +1 -0
  273. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.d.ts +6 -0
  274. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js +28 -0
  275. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js.map +1 -0
  276. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.d.ts +6 -0
  277. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js +52 -0
  278. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js.map +1 -0
  279. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.d.ts +6 -0
  280. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js +28 -0
  281. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js.map +1 -0
  282. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.d.ts +6 -0
  283. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js +19 -0
  284. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js.map +1 -0
  285. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.d.ts +6 -0
  286. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js +41 -0
  287. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js.map +1 -0
  288. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.d.ts +11 -0
  289. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js +162 -0
  290. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js.map +1 -0
  291. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.d.ts +4 -0
  292. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.js +163 -0
  293. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.js.map +1 -0
  294. package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.d.ts +2 -0
  295. package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.js +12 -0
  296. package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.js.map +1 -0
  297. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.d.ts +3 -0
  298. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.js +25 -0
  299. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.js.map +1 -0
  300. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.d.ts +3 -0
  301. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.js +25 -0
  302. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.js.map +1 -0
  303. package/dist/cjs/components/TextEditorV2/shared/canUseDOM.d.ts +1 -0
  304. package/dist/cjs/components/TextEditorV2/shared/canUseDOM.js +7 -0
  305. package/dist/cjs/components/TextEditorV2/shared/canUseDOM.js.map +1 -0
  306. package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.d.ts +4 -0
  307. package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.js +32 -0
  308. package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.js.map +1 -0
  309. package/dist/cjs/components/TextEditorV2/shared/environment.d.ts +16 -0
  310. package/dist/cjs/components/TextEditorV2/shared/environment.js +17 -0
  311. package/dist/cjs/components/TextEditorV2/shared/environment.js.map +1 -0
  312. package/dist/cjs/components/TextEditorV2/shared/invariant.d.ts +1 -0
  313. package/dist/cjs/components/TextEditorV2/shared/invariant.js +15 -0
  314. package/dist/cjs/components/TextEditorV2/shared/invariant.js.map +1 -0
  315. package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.d.ts +5 -0
  316. package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.js +28 -0
  317. package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.js.map +1 -0
  318. package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.d.ts +3 -0
  319. package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.js +7 -0
  320. package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.js.map +1 -0
  321. package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.d.ts +1 -0
  322. package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.js +16 -0
  323. package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.js.map +1 -0
  324. package/dist/cjs/components/TextEditorV2/style.d.ts +2 -0
  325. package/dist/cjs/components/TextEditorV2/style.js +9 -0
  326. package/dist/cjs/components/TextEditorV2/style.js.map +1 -0
  327. package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.d.ts +3 -0
  328. package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.js +7 -0
  329. package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.js.map +1 -0
  330. package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.d.ts +3 -0
  331. package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.js +107 -0
  332. package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.js.map +1 -0
  333. package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.d.ts +3 -0
  334. package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.js +7 -0
  335. package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.js.map +1 -0
  336. package/dist/cjs/components/TextEditorV2/ui/Button.d.ts +11 -0
  337. package/dist/cjs/components/TextEditorV2/ui/Button.js +11 -0
  338. package/dist/cjs/components/TextEditorV2/ui/Button.js.map +1 -0
  339. package/dist/cjs/components/TextEditorV2/ui/ColorPicker.d.ts +12 -0
  340. package/dist/cjs/components/TextEditorV2/ui/ColorPicker.js +216 -0
  341. package/dist/cjs/components/TextEditorV2/ui/ColorPicker.js.map +1 -0
  342. package/dist/cjs/components/TextEditorV2/ui/ContentEditable.d.ts +4 -0
  343. package/dist/cjs/components/TextEditorV2/ui/ContentEditable.js +11 -0
  344. package/dist/cjs/components/TextEditorV2/ui/ContentEditable.js.map +1 -0
  345. package/dist/cjs/components/TextEditorV2/ui/Dialog.d.ts +9 -0
  346. package/dist/cjs/components/TextEditorV2/ui/Dialog.js +15 -0
  347. package/dist/cjs/components/TextEditorV2/ui/Dialog.js.map +1 -0
  348. package/dist/cjs/components/TextEditorV2/ui/DropDown.d.ts +17 -0
  349. package/dist/cjs/components/TextEditorV2/ui/DropDown.js +133 -0
  350. package/dist/cjs/components/TextEditorV2/ui/DropDown.js.map +1 -0
  351. package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.d.ts +21 -0
  352. package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.js +20 -0
  353. package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.js.map +1 -0
  354. package/dist/cjs/components/TextEditorV2/ui/EquationEditor.d.ts +8 -0
  355. package/dist/cjs/components/TextEditorV2/ui/EquationEditor.js +20 -0
  356. package/dist/cjs/components/TextEditorV2/ui/EquationEditor.js.map +1 -0
  357. package/dist/cjs/components/TextEditorV2/ui/FileInput.d.ts +9 -0
  358. package/dist/cjs/components/TextEditorV2/ui/FileInput.js +12 -0
  359. package/dist/cjs/components/TextEditorV2/ui/FileInput.js.map +1 -0
  360. package/dist/cjs/components/TextEditorV2/ui/ImageResizer.d.ts +11 -0
  361. package/dist/cjs/components/TextEditorV2/ui/ImageResizer.js +178 -0
  362. package/dist/cjs/components/TextEditorV2/ui/ImageResizer.js.map +1 -0
  363. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.d.ts +7 -0
  364. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.js +39 -0
  365. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.js.map +1 -0
  366. package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.d.ts +6 -0
  367. package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.js +33 -0
  368. package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.js.map +1 -0
  369. package/dist/cjs/components/TextEditorV2/ui/Modal.d.ts +8 -0
  370. package/dist/cjs/components/TextEditorV2/ui/Modal.js +54 -0
  371. package/dist/cjs/components/TextEditorV2/ui/Modal.js.map +1 -0
  372. package/dist/cjs/components/TextEditorV2/ui/Placeholder.d.ts +6 -0
  373. package/dist/cjs/components/TextEditorV2/ui/Placeholder.js +10 -0
  374. package/dist/cjs/components/TextEditorV2/ui/Placeholder.js.map +1 -0
  375. package/dist/cjs/components/TextEditorV2/ui/Select.d.ts +7 -0
  376. package/dist/cjs/components/TextEditorV2/ui/Select.js +12 -0
  377. package/dist/cjs/components/TextEditorV2/ui/Select.js.map +1 -0
  378. package/dist/cjs/components/TextEditorV2/ui/Switch.d.ts +7 -0
  379. package/dist/cjs/components/TextEditorV2/ui/Switch.js +15 -0
  380. package/dist/cjs/components/TextEditorV2/ui/Switch.js.map +1 -0
  381. package/dist/cjs/components/TextEditorV2/ui/TextInput.d.ts +12 -0
  382. package/dist/cjs/components/TextEditorV2/ui/TextInput.js +14 -0
  383. package/dist/cjs/components/TextEditorV2/ui/TextInput.js.map +1 -0
  384. package/dist/cjs/components/TextEditorV2/utils/emoji-list.d.ts +20 -0
  385. package/dist/cjs/components/TextEditorV2/utils/emoji-list.js +16607 -0
  386. package/dist/cjs/components/TextEditorV2/utils/emoji-list.js.map +1 -0
  387. package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.d.ts +1 -0
  388. package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.js +19 -0
  389. package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.js.map +1 -0
  390. package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.d.ts +1 -0
  391. package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.js +35 -0
  392. package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.js.map +1 -0
  393. package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.d.ts +2 -0
  394. package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.js +21 -0
  395. package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.js.map +1 -0
  396. package/dist/cjs/components/TextEditorV2/utils/guard.d.ts +1 -0
  397. package/dist/cjs/components/TextEditorV2/utils/guard.js +7 -0
  398. package/dist/cjs/components/TextEditorV2/utils/guard.js.map +1 -0
  399. package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.d.ts +0 -0
  400. package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.js +2 -0
  401. package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.js.map +1 -0
  402. package/dist/cjs/components/TextEditorV2/utils/joinClasses.d.ts +1 -0
  403. package/dist/cjs/components/TextEditorV2/utils/joinClasses.js +11 -0
  404. package/dist/cjs/components/TextEditorV2/utils/joinClasses.js.map +1 -0
  405. package/dist/cjs/components/TextEditorV2/utils/point.d.ts +14 -0
  406. package/dist/cjs/components/TextEditorV2/utils/point.js +51 -0
  407. package/dist/cjs/components/TextEditorV2/utils/point.js.map +1 -0
  408. package/dist/cjs/components/TextEditorV2/utils/rect.d.ts +38 -0
  409. package/dist/cjs/components/TextEditorV2/utils/rect.js +125 -0
  410. package/dist/cjs/components/TextEditorV2/utils/rect.js.map +1 -0
  411. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.d.ts +1 -0
  412. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.js +33 -0
  413. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.js.map +1 -0
  414. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
  415. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js +31 -0
  416. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  417. package/dist/cjs/components/TextEditorV2/utils/swipe.d.ts +4 -0
  418. package/dist/cjs/components/TextEditorV2/utils/swipe.js +97 -0
  419. package/dist/cjs/components/TextEditorV2/utils/swipe.js.map +1 -0
  420. package/dist/cjs/components/TextEditorV2/utils/url.d.ts +2 -0
  421. package/dist/cjs/components/TextEditorV2/utils/url.js +26 -0
  422. package/dist/cjs/components/TextEditorV2/utils/url.js.map +1 -0
  423. package/dist/cjs/components/Textarea/Textarea.js +28 -4
  424. package/dist/cjs/components/Textarea/Textarea.js.map +1 -1
  425. package/dist/cjs/index.d.ts +2 -1
  426. package/dist/cjs/index.js +5 -3
  427. package/dist/cjs/index.js.map +1 -1
  428. package/dist/esm/components/Combobox/Combobox.js +9 -3
  429. package/dist/esm/components/Combobox/Combobox.js.map +1 -1
  430. package/dist/esm/components/TextEditorV2/commenting/index.d.ts +41 -0
  431. package/dist/esm/components/TextEditorV2/commenting/index.js +334 -0
  432. package/dist/esm/components/TextEditorV2/commenting/index.js.map +1 -0
  433. package/dist/esm/components/TextEditorV2/constants.d.ts +1 -0
  434. package/dist/esm/components/TextEditorV2/constants.js +2 -0
  435. package/dist/esm/components/TextEditorV2/constants.js.map +1 -0
  436. package/dist/esm/components/TextEditorV2/context/SettingsContext.d.ts +12 -0
  437. package/dist/esm/components/TextEditorV2/context/SettingsContext.js +54 -0
  438. package/dist/esm/components/TextEditorV2/context/SettingsContext.js.map +1 -0
  439. package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.d.ts +10 -0
  440. package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.js +44 -0
  441. package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.js.map +1 -0
  442. package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.d.ts +11 -0
  443. package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.js +11 -0
  444. package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.js.map +1 -0
  445. package/dist/esm/components/TextEditorV2/editor.d.ts +10 -0
  446. package/dist/esm/components/TextEditorV2/editor.js +200 -0
  447. package/dist/esm/components/TextEditorV2/editor.js.map +1 -0
  448. package/dist/esm/components/TextEditorV2/hooks/useModal.d.ts +5 -0
  449. package/dist/esm/components/TextEditorV2/hooks/useModal.js +28 -0
  450. package/dist/esm/components/TextEditorV2/hooks/useModal.js.map +1 -0
  451. package/dist/esm/components/TextEditorV2/hooks/useReport.d.ts +1 -0
  452. package/dist/esm/components/TextEditorV2/hooks/useReport.js +42 -0
  453. package/dist/esm/components/TextEditorV2/hooks/useReport.js.map +1 -0
  454. package/dist/esm/components/TextEditorV2/lib/Settings.d.ts +2 -0
  455. package/dist/esm/components/TextEditorV2/lib/Settings.js +48 -0
  456. package/dist/esm/components/TextEditorV2/lib/Settings.js.map +1 -0
  457. package/dist/esm/components/TextEditorV2/lib/appSettings.d.ts +19 -0
  458. package/dist/esm/components/TextEditorV2/lib/appSettings.js +18 -0
  459. package/dist/esm/components/TextEditorV2/lib/appSettings.js.map +1 -0
  460. package/dist/esm/components/TextEditorV2/lib/collaboration.d.ts +3 -0
  461. package/dist/esm/components/TextEditorV2/lib/collaboration.js +23 -0
  462. package/dist/esm/components/TextEditorV2/lib/collaboration.js.map +1 -0
  463. package/dist/esm/components/TextEditorV2/lib/setupEnv.d.ts +1 -0
  464. package/dist/esm/components/TextEditorV2/lib/setupEnv.js +21 -0
  465. package/dist/esm/components/TextEditorV2/lib/setupEnv.js.map +1 -0
  466. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.d.ts +25 -0
  467. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.js +54 -0
  468. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.js.map +1 -0
  469. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.d.ts +18 -0
  470. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.js +57 -0
  471. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.js.map +1 -0
  472. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.d.ts +9 -0
  473. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.js +68 -0
  474. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.js.map +1 -0
  475. package/dist/esm/components/TextEditorV2/nodes/EquationNode.d.ts +26 -0
  476. package/dist/esm/components/TextEditorV2/nodes/EquationNode.js +121 -0
  477. package/dist/esm/components/TextEditorV2/nodes/EquationNode.js.map +1 -0
  478. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.d.ts +6 -0
  479. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js +113 -0
  480. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js.map +1 -0
  481. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.d.ts +50 -0
  482. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js +56 -0
  483. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js.map +1 -0
  484. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.d.ts +44 -0
  485. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js +137 -0
  486. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js.map +1 -0
  487. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.d.ts +22 -0
  488. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.js +98 -0
  489. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.js.map +1 -0
  490. package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.d.ts +12 -0
  491. package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.js +101 -0
  492. package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.js.map +1 -0
  493. package/dist/esm/components/TextEditorV2/nodes/FigmaNode.d.ts +19 -0
  494. package/dist/esm/components/TextEditorV2/nodes/FigmaNode.js +58 -0
  495. package/dist/esm/components/TextEditorV2/nodes/FigmaNode.js.map +1 -0
  496. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.d.ts +14 -0
  497. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.js +207 -0
  498. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.js.map +1 -0
  499. package/dist/esm/components/TextEditorV2/nodes/ImageNode.d.ts +56 -0
  500. package/dist/esm/components/TextEditorV2/nodes/ImageNode.js +131 -0
  501. package/dist/esm/components/TextEditorV2/nodes/ImageNode.js.map +1 -0
  502. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.d.ts +18 -0
  503. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.js +189 -0
  504. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.js.map +1 -0
  505. package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.d.ts +54 -0
  506. package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.js +137 -0
  507. package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.js.map +1 -0
  508. package/dist/esm/components/TextEditorV2/nodes/KeywordNode.d.ts +15 -0
  509. package/dist/esm/components/TextEditorV2/nodes/KeywordNode.js +49 -0
  510. package/dist/esm/components/TextEditorV2/nodes/KeywordNode.js.map +1 -0
  511. package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.d.ts +21 -0
  512. package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.js +58 -0
  513. package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.js.map +1 -0
  514. package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.d.ts +15 -0
  515. package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.js +46 -0
  516. package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.js.map +1 -0
  517. package/dist/esm/components/TextEditorV2/nodes/MentionNode.d.ts +20 -0
  518. package/dist/esm/components/TextEditorV2/nodes/MentionNode.js +84 -0
  519. package/dist/esm/components/TextEditorV2/nodes/MentionNode.js.map +1 -0
  520. package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.d.ts +17 -0
  521. package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.js +108 -0
  522. package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.js.map +1 -0
  523. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.d.ts +3 -0
  524. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.js +66 -0
  525. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.js.map +1 -0
  526. package/dist/esm/components/TextEditorV2/nodes/PollComponent.d.ts +8 -0
  527. package/dist/esm/components/TextEditorV2/nodes/PollComponent.js +109 -0
  528. package/dist/esm/components/TextEditorV2/nodes/PollComponent.js.map +1 -0
  529. package/dist/esm/components/TextEditorV2/nodes/PollNode.d.ts +33 -0
  530. package/dist/esm/components/TextEditorV2/nodes/PollNode.js +143 -0
  531. package/dist/esm/components/TextEditorV2/nodes/PollNode.js.map +1 -0
  532. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.d.ts +9 -0
  533. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.js +163 -0
  534. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.js.map +1 -0
  535. package/dist/esm/components/TextEditorV2/nodes/StickyNode.d.ts +37 -0
  536. package/dist/esm/components/TextEditorV2/nodes/StickyNode.js +89 -0
  537. package/dist/esm/components/TextEditorV2/nodes/StickyNode.js.map +1 -0
  538. package/dist/esm/components/TextEditorV2/nodes/TableNode.d.ts +54 -0
  539. package/dist/esm/components/TextEditorV2/nodes/TableNode.js +188 -0
  540. package/dist/esm/components/TextEditorV2/nodes/TableNode.js.map +1 -0
  541. package/dist/esm/components/TextEditorV2/nodes/TweetNode.d.ts +28 -0
  542. package/dist/esm/components/TextEditorV2/nodes/TweetNode.js +151 -0
  543. package/dist/esm/components/TextEditorV2/nodes/TweetNode.js.map +1 -0
  544. package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.d.ts +28 -0
  545. package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.js +98 -0
  546. package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.js.map +1 -0
  547. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.d.ts +2 -0
  548. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.js +180 -0
  549. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.js.map +1 -0
  550. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.d.ts +19 -0
  551. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js +174 -0
  552. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js.map +1 -0
  553. package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.d.ts +2 -0
  554. package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.js +12 -0
  555. package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.js.map +1 -0
  556. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.d.ts +2 -0
  557. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.js +2461 -0
  558. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.js.map +1 -0
  559. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +8 -0
  560. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +52 -0
  561. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -0
  562. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +10 -0
  563. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +155 -0
  564. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -0
  565. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.d.ts +4 -0
  566. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js +108 -0
  567. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js.map +1 -0
  568. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
  569. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js +18 -0
  570. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js.map +1 -0
  571. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.d.ts +1 -0
  572. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js +9 -0
  573. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js.map +1 -0
  574. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.d.ts +23 -0
  575. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +82 -0
  576. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +1 -0
  577. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.d.ts +17 -0
  578. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js +64 -0
  579. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +1 -0
  580. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.d.ts +18 -0
  581. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +89 -0
  582. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +1 -0
  583. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.d.ts +3 -0
  584. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.js +144 -0
  585. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.js.map +1 -0
  586. package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.d.ts +2 -0
  587. package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js +261 -0
  588. package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js.map +1 -0
  589. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.d.ts +11 -0
  590. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.js +167 -0
  591. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.js.map +1 -0
  592. package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.d.ts +2 -0
  593. package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.js +6 -0
  594. package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.js.map +1 -0
  595. package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.d.ts +1 -0
  596. package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.js +41 -0
  597. package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.js.map +1 -0
  598. package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.d.ts +4 -0
  599. package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js +284 -0
  600. package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js.map +1 -0
  601. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.d.ts +2 -0
  602. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js +94 -0
  603. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js.map +1 -0
  604. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.d.ts +1 -0
  605. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.js +61 -0
  606. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.js.map +1 -0
  607. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.d.ts +14 -0
  608. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.js +36 -0
  609. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.js.map +1 -0
  610. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.d.ts +3 -0
  611. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js +24 -0
  612. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js.map +1 -0
  613. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.d.ts +3 -0
  614. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.js +21 -0
  615. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.js.map +1 -0
  616. package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.d.ts +7 -0
  617. package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js +196 -0
  618. package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js.map +1 -0
  619. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +4 -0
  620. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js +225 -0
  621. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -0
  622. package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.d.ts +22 -0
  623. package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.js +181 -0
  624. package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.js.map +1 -0
  625. package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.d.ts +17 -0
  626. package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.js +187 -0
  627. package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.js.map +1 -0
  628. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.d.ts +1 -0
  629. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.js +30 -0
  630. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.js.map +1 -0
  631. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +6 -0
  632. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js +30 -0
  633. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js.map +1 -0
  634. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.d.ts +7 -0
  635. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js +85 -0
  636. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js.map +1 -0
  637. package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.d.ts +2 -0
  638. package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.js +7 -0
  639. package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.js.map +1 -0
  640. package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.d.ts +5 -0
  641. package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js +41 -0
  642. package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js.map +1 -0
  643. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.d.ts +2 -0
  644. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js +7 -0
  645. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js.map +1 -0
  646. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.d.ts +8 -0
  647. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.js +239 -0
  648. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.js.map +1 -0
  649. package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.d.ts +3 -0
  650. package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.js +38 -0
  651. package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.js.map +1 -0
  652. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.d.ts +2 -0
  653. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.js +557 -0
  654. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.js.map +1 -0
  655. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.d.ts +3 -0
  656. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.js +27 -0
  657. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.js.map +1 -0
  658. package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.d.ts +2 -0
  659. package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.js +33 -0
  660. package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.js.map +1 -0
  661. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.d.ts +8 -0
  662. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.js +40 -0
  663. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.js.map +1 -0
  664. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.d.ts +1 -0
  665. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.js +13 -0
  666. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.js.map +1 -0
  667. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.d.ts +1 -0
  668. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.js +35 -0
  669. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.js.map +1 -0
  670. package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.d.ts +5 -0
  671. package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js +483 -0
  672. package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js.map +1 -0
  673. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.d.ts +2 -0
  674. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.js +249 -0
  675. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.js.map +1 -0
  676. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.d.ts +2 -0
  677. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js +113 -0
  678. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js.map +1 -0
  679. package/dist/esm/components/TextEditorV2/plugins/TablePlugin.d.ts +32 -0
  680. package/dist/esm/components/TextEditorV2/plugins/TablePlugin.js +78 -0
  681. package/dist/esm/components/TextEditorV2/plugins/TablePlugin.js.map +1 -0
  682. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.d.ts +6 -0
  683. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js +14 -0
  684. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js.map +1 -0
  685. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.d.ts +6 -0
  686. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js +24 -0
  687. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js.map +1 -0
  688. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.d.ts +6 -0
  689. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js +61 -0
  690. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js.map +1 -0
  691. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.d.ts +6 -0
  692. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js +67 -0
  693. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js.map +1 -0
  694. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.d.ts +6 -0
  695. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js +14 -0
  696. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js.map +1 -0
  697. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.d.ts +5 -0
  698. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js +42 -0
  699. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js.map +1 -0
  700. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.d.ts +6 -0
  701. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js +24 -0
  702. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js.map +1 -0
  703. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.d.ts +6 -0
  704. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js +48 -0
  705. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js.map +1 -0
  706. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.d.ts +6 -0
  707. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js +24 -0
  708. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js.map +1 -0
  709. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.d.ts +6 -0
  710. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js +15 -0
  711. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js.map +1 -0
  712. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.d.ts +6 -0
  713. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js +37 -0
  714. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js.map +1 -0
  715. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.d.ts +11 -0
  716. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js +159 -0
  717. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js.map +1 -0
  718. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.d.ts +4 -0
  719. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.js +159 -0
  720. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.js.map +1 -0
  721. package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.d.ts +2 -0
  722. package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.js +8 -0
  723. package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.js.map +1 -0
  724. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.d.ts +3 -0
  725. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.js +21 -0
  726. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.js.map +1 -0
  727. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.d.ts +3 -0
  728. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.js +21 -0
  729. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.js.map +1 -0
  730. package/dist/esm/components/TextEditorV2/shared/canUseDOM.d.ts +1 -0
  731. package/dist/esm/components/TextEditorV2/shared/canUseDOM.js +4 -0
  732. package/dist/esm/components/TextEditorV2/shared/canUseDOM.js.map +1 -0
  733. package/dist/esm/components/TextEditorV2/shared/caretFromPoint.d.ts +4 -0
  734. package/dist/esm/components/TextEditorV2/shared/caretFromPoint.js +29 -0
  735. package/dist/esm/components/TextEditorV2/shared/caretFromPoint.js.map +1 -0
  736. package/dist/esm/components/TextEditorV2/shared/environment.d.ts +16 -0
  737. package/dist/esm/components/TextEditorV2/shared/environment.js +14 -0
  738. package/dist/esm/components/TextEditorV2/shared/environment.js.map +1 -0
  739. package/dist/esm/components/TextEditorV2/shared/invariant.d.ts +1 -0
  740. package/dist/esm/components/TextEditorV2/shared/invariant.js +12 -0
  741. package/dist/esm/components/TextEditorV2/shared/invariant.js.map +1 -0
  742. package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.d.ts +5 -0
  743. package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.js +25 -0
  744. package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.js.map +1 -0
  745. package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.d.ts +3 -0
  746. package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.js +5 -0
  747. package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.js.map +1 -0
  748. package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.d.ts +1 -0
  749. package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.js +13 -0
  750. package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.js.map +1 -0
  751. package/dist/esm/components/TextEditorV2/style.d.ts +2 -0
  752. package/dist/esm/components/TextEditorV2/style.js +5 -0
  753. package/dist/esm/components/TextEditorV2/style.js.map +1 -0
  754. package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.d.ts +3 -0
  755. package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.js +5 -0
  756. package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.js.map +1 -0
  757. package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.d.ts +3 -0
  758. package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.js +105 -0
  759. package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.js.map +1 -0
  760. package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.d.ts +3 -0
  761. package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.js +5 -0
  762. package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.js.map +1 -0
  763. package/dist/esm/components/TextEditorV2/ui/Button.d.ts +11 -0
  764. package/dist/esm/components/TextEditorV2/ui/Button.js +8 -0
  765. package/dist/esm/components/TextEditorV2/ui/Button.js.map +1 -0
  766. package/dist/esm/components/TextEditorV2/ui/ColorPicker.d.ts +12 -0
  767. package/dist/esm/components/TextEditorV2/ui/ColorPicker.js +212 -0
  768. package/dist/esm/components/TextEditorV2/ui/ColorPicker.js.map +1 -0
  769. package/dist/esm/components/TextEditorV2/ui/ContentEditable.d.ts +4 -0
  770. package/dist/esm/components/TextEditorV2/ui/ContentEditable.js +7 -0
  771. package/dist/esm/components/TextEditorV2/ui/ContentEditable.js.map +1 -0
  772. package/dist/esm/components/TextEditorV2/ui/Dialog.d.ts +9 -0
  773. package/dist/esm/components/TextEditorV2/ui/Dialog.js +10 -0
  774. package/dist/esm/components/TextEditorV2/ui/Dialog.js.map +1 -0
  775. package/dist/esm/components/TextEditorV2/ui/DropDown.d.ts +17 -0
  776. package/dist/esm/components/TextEditorV2/ui/DropDown.js +129 -0
  777. package/dist/esm/components/TextEditorV2/ui/DropDown.js.map +1 -0
  778. package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.d.ts +21 -0
  779. package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.js +17 -0
  780. package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.js.map +1 -0
  781. package/dist/esm/components/TextEditorV2/ui/EquationEditor.d.ts +8 -0
  782. package/dist/esm/components/TextEditorV2/ui/EquationEditor.js +17 -0
  783. package/dist/esm/components/TextEditorV2/ui/EquationEditor.js.map +1 -0
  784. package/dist/esm/components/TextEditorV2/ui/FileInput.d.ts +9 -0
  785. package/dist/esm/components/TextEditorV2/ui/FileInput.js +8 -0
  786. package/dist/esm/components/TextEditorV2/ui/FileInput.js.map +1 -0
  787. package/dist/esm/components/TextEditorV2/ui/ImageResizer.d.ts +11 -0
  788. package/dist/esm/components/TextEditorV2/ui/ImageResizer.js +174 -0
  789. package/dist/esm/components/TextEditorV2/ui/ImageResizer.js.map +1 -0
  790. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.d.ts +7 -0
  791. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.js +35 -0
  792. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.js.map +1 -0
  793. package/dist/esm/components/TextEditorV2/ui/KatexRenderer.d.ts +6 -0
  794. package/dist/esm/components/TextEditorV2/ui/KatexRenderer.js +29 -0
  795. package/dist/esm/components/TextEditorV2/ui/KatexRenderer.js.map +1 -0
  796. package/dist/esm/components/TextEditorV2/ui/Modal.d.ts +8 -0
  797. package/dist/esm/components/TextEditorV2/ui/Modal.js +50 -0
  798. package/dist/esm/components/TextEditorV2/ui/Modal.js.map +1 -0
  799. package/dist/esm/components/TextEditorV2/ui/Placeholder.d.ts +6 -0
  800. package/dist/esm/components/TextEditorV2/ui/Placeholder.js +6 -0
  801. package/dist/esm/components/TextEditorV2/ui/Placeholder.js.map +1 -0
  802. package/dist/esm/components/TextEditorV2/ui/Select.d.ts +7 -0
  803. package/dist/esm/components/TextEditorV2/ui/Select.js +9 -0
  804. package/dist/esm/components/TextEditorV2/ui/Select.js.map +1 -0
  805. package/dist/esm/components/TextEditorV2/ui/Switch.d.ts +7 -0
  806. package/dist/esm/components/TextEditorV2/ui/Switch.js +11 -0
  807. package/dist/esm/components/TextEditorV2/ui/Switch.js.map +1 -0
  808. package/dist/esm/components/TextEditorV2/ui/TextInput.d.ts +12 -0
  809. package/dist/esm/components/TextEditorV2/ui/TextInput.js +10 -0
  810. package/dist/esm/components/TextEditorV2/ui/TextInput.js.map +1 -0
  811. package/dist/esm/components/TextEditorV2/utils/emoji-list.d.ts +20 -0
  812. package/dist/esm/components/TextEditorV2/utils/emoji-list.js +16605 -0
  813. package/dist/esm/components/TextEditorV2/utils/emoji-list.js.map +1 -0
  814. package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.d.ts +1 -0
  815. package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.js +16 -0
  816. package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.js.map +1 -0
  817. package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.d.ts +1 -0
  818. package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.js +32 -0
  819. package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.js.map +1 -0
  820. package/dist/esm/components/TextEditorV2/utils/getSelectedNode.d.ts +2 -0
  821. package/dist/esm/components/TextEditorV2/utils/getSelectedNode.js +18 -0
  822. package/dist/esm/components/TextEditorV2/utils/getSelectedNode.js.map +1 -0
  823. package/dist/esm/components/TextEditorV2/utils/guard.d.ts +1 -0
  824. package/dist/esm/components/TextEditorV2/utils/guard.js +4 -0
  825. package/dist/esm/components/TextEditorV2/utils/guard.js.map +1 -0
  826. package/dist/esm/components/TextEditorV2/utils/isMobileWidth.d.ts +0 -0
  827. package/dist/esm/components/TextEditorV2/utils/isMobileWidth.js +2 -0
  828. package/dist/esm/components/TextEditorV2/utils/isMobileWidth.js.map +1 -0
  829. package/dist/esm/components/TextEditorV2/utils/joinClasses.d.ts +1 -0
  830. package/dist/esm/components/TextEditorV2/utils/joinClasses.js +8 -0
  831. package/dist/esm/components/TextEditorV2/utils/joinClasses.js.map +1 -0
  832. package/dist/esm/components/TextEditorV2/utils/point.d.ts +14 -0
  833. package/dist/esm/components/TextEditorV2/utils/point.js +47 -0
  834. package/dist/esm/components/TextEditorV2/utils/point.js.map +1 -0
  835. package/dist/esm/components/TextEditorV2/utils/rect.d.ts +38 -0
  836. package/dist/esm/components/TextEditorV2/utils/rect.js +122 -0
  837. package/dist/esm/components/TextEditorV2/utils/rect.js.map +1 -0
  838. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.d.ts +1 -0
  839. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.js +30 -0
  840. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.js.map +1 -0
  841. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
  842. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js +28 -0
  843. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  844. package/dist/esm/components/TextEditorV2/utils/swipe.d.ts +4 -0
  845. package/dist/esm/components/TextEditorV2/utils/swipe.js +91 -0
  846. package/dist/esm/components/TextEditorV2/utils/swipe.js.map +1 -0
  847. package/dist/esm/components/TextEditorV2/utils/url.d.ts +2 -0
  848. package/dist/esm/components/TextEditorV2/utils/url.js +22 -0
  849. package/dist/esm/components/TextEditorV2/utils/url.js.map +1 -0
  850. package/dist/esm/components/Textarea/Textarea.js +28 -4
  851. package/dist/esm/components/Textarea/Textarea.js.map +1 -1
  852. package/dist/esm/index.d.ts +2 -1
  853. package/dist/esm/index.js +2 -1
  854. package/dist/esm/index.js.map +1 -1
  855. package/package.json +11 -2
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useSharedAutocompleteContext = exports.SharedAutocompleteContext = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var React = tslib_1.__importStar(require("react"));
6
+ var react_1 = require("react");
7
+ var Context = (0, react_1.createContext)([
8
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars,arrow-body-style
9
+ function (_cb) { return function () {
10
+ return;
11
+ }; },
12
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars,arrow-body-style
13
+ function (_newSuggestion) {
14
+ return;
15
+ },
16
+ ]);
17
+ var SharedAutocompleteContext = function (_a) {
18
+ var children = _a.children;
19
+ var context = (0, react_1.useMemo)(function () {
20
+ var suggestion = null;
21
+ var listeners = new Set();
22
+ return [
23
+ function (cb) {
24
+ cb(suggestion);
25
+ listeners.add(cb);
26
+ return function () {
27
+ listeners.delete(cb);
28
+ };
29
+ },
30
+ function (newSuggestion) {
31
+ suggestion = newSuggestion;
32
+ listeners.forEach(function (listener) { return listener(newSuggestion); });
33
+ },
34
+ ];
35
+ }, []);
36
+ return React.createElement(Context.Provider, { value: context }, children);
37
+ };
38
+ exports.SharedAutocompleteContext = SharedAutocompleteContext;
39
+ var useSharedAutocompleteContext = function () {
40
+ var _a = (0, react_1.useContext)(Context), subscribe = _a[0], publish = _a[1];
41
+ var _b = (0, react_1.useState)(null), suggestion = _b[0], setSuggestion = _b[1];
42
+ (0, react_1.useEffect)(function () {
43
+ return subscribe(function (newSuggestion) {
44
+ setSuggestion(newSuggestion);
45
+ });
46
+ }, [subscribe]);
47
+ return [suggestion, publish];
48
+ };
49
+ exports.useSharedAutocompleteContext = useSharedAutocompleteContext;
50
+ //# sourceMappingURL=SharedAutocompleteContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SharedAutocompleteContext.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/context/SharedAutocompleteContext.tsx"],"names":[],"mappings":";;;;AAAA,mDAA8B;AAC9B,+BAA0F;AAS1F,IAAM,OAAO,GAAgC,IAAA,qBAAa,EAAC;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;AAEK,IAAM,yBAAyB,GAAG,UAAC,EAAqC;QAAnC,QAAQ,cAAA;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in';
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,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useSharedHistoryContext = exports.SharedHistoryContext = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var LexicalHistoryPlugin_1 = require("@lexical/react/LexicalHistoryPlugin");
6
+ var React = tslib_1.__importStar(require("react"));
7
+ var react_1 = require("react");
8
+ var Context = (0, react_1.createContext)({});
9
+ var SharedHistoryContext = function (_a) {
10
+ var children = _a.children;
11
+ var historyContext = (0, react_1.useMemo)(function () { return ({ historyState: (0, LexicalHistoryPlugin_1.createEmptyHistoryState)() }); }, []);
12
+ return React.createElement(Context.Provider, { value: historyContext }, children);
13
+ };
14
+ exports.SharedHistoryContext = SharedHistoryContext;
15
+ var useSharedHistoryContext = function () { return (0, react_1.useContext)(Context); };
16
+ exports.useSharedHistoryContext = useSharedHistoryContext;
17
+ //# sourceMappingURL=SharedHistoryContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SharedHistoryContext.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/context/SharedHistoryContext.tsx"],"names":[],"mappings":";;;;AACA,4EAA6E;AAC7E,mDAA8B;AAC9B,+BAAqE;AAMrE,IAAM,OAAO,GAAgC,IAAA,qBAAa,EAAC,EAAE,CAAC,CAAA;AAEvD,IAAM,oBAAoB,GAAG,UAAC,EAAqC;QAAnC,QAAQ,cAAA;IAC7C,IAAM,cAAc,GAAG,IAAA,eAAO,EAAC,cAAM,OAAA,CAAC,EAAE,YAAY,EAAE,IAAA,8CAAuB,GAAE,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;AAHY,QAAA,oBAAoB,wBAGhC;AAEM,IAAM,uBAAuB,GAAG,cAAoB,OAAA,IAAA,kBAAU,EAAC,OAAO,CAAC,EAAnB,CAAmB,CAAA;AAAjE,QAAA,uBAAuB,2BAA0C"}
@@ -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,203 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = PHXTextEditorV2;
4
+ var tslib_1 = require("tslib");
5
+ var html_1 = require("@lexical/html");
6
+ var LexicalComposer_1 = require("@lexical/react/LexicalComposer");
7
+ var lexical_1 = require("lexical");
8
+ var React = tslib_1.__importStar(require("react"));
9
+ var react_1 = require("react");
10
+ var SharedAutocompleteContext_1 = require("./context/SharedAutocompleteContext");
11
+ var SharedHistoryContext_1 = require("./context/SharedHistoryContext");
12
+ var ExtendedTextNode_1 = require("./nodes/ExtendedTextNode");
13
+ var PlaygroundNodes_1 = tslib_1.__importDefault(require("./nodes/PlaygroundNodes"));
14
+ var TablePlugin_1 = require("./plugins/TablePlugin");
15
+ var canUseDOM_1 = require("./shared/canUseDOM");
16
+ var PlaygroundEditorTheme_1 = tslib_1.__importDefault(require("./themes/PlaygroundEditorTheme"));
17
+ var LexicalCharacterLimitPlugin_1 = require("@lexical/react/LexicalCharacterLimitPlugin");
18
+ var LexicalCheckListPlugin_1 = require("@lexical/react/LexicalCheckListPlugin");
19
+ var LexicalClearEditorPlugin_1 = require("@lexical/react/LexicalClearEditorPlugin");
20
+ var LexicalClickableLinkPlugin_1 = tslib_1.__importDefault(require("@lexical/react/LexicalClickableLinkPlugin"));
21
+ var LexicalErrorBoundary_1 = tslib_1.__importDefault(require("@lexical/react/LexicalErrorBoundary"));
22
+ var LexicalHashtagPlugin_1 = require("@lexical/react/LexicalHashtagPlugin");
23
+ var LexicalHistoryPlugin_1 = require("@lexical/react/LexicalHistoryPlugin");
24
+ var LexicalHorizontalRulePlugin_1 = require("@lexical/react/LexicalHorizontalRulePlugin");
25
+ var LexicalListPlugin_1 = require("@lexical/react/LexicalListPlugin");
26
+ var LexicalOnChangePlugin_1 = require("@lexical/react/LexicalOnChangePlugin");
27
+ var LexicalRichTextPlugin_1 = require("@lexical/react/LexicalRichTextPlugin");
28
+ var LexicalTabIndentationPlugin_1 = require("@lexical/react/LexicalTabIndentationPlugin");
29
+ var LexicalTablePlugin_1 = require("@lexical/react/LexicalTablePlugin");
30
+ var AutoEmbedPlugin_1 = tslib_1.__importDefault(require("./plugins/AutoEmbedPlugin"));
31
+ var AutocompletePlugin_1 = tslib_1.__importDefault(require("./plugins/AutocompletePlugin"));
32
+ var CodeActionMenuPlugin_1 = tslib_1.__importDefault(require("./plugins/CodeActionMenuPlugin"));
33
+ var CodeHighlightPlugin_1 = tslib_1.__importDefault(require("./plugins/CodeHighlightPlugin"));
34
+ var CollapsiblePlugin_1 = tslib_1.__importDefault(require("./plugins/CollapsiblePlugin"));
35
+ var ComponentPickerPlugin_1 = tslib_1.__importDefault(require("./plugins/ComponentPickerPlugin"));
36
+ var ContextMenuPlugin_1 = tslib_1.__importDefault(require("./plugins/ContextMenuPlugin"));
37
+ var EmojiPickerPlugin_1 = tslib_1.__importDefault(require("./plugins/EmojiPickerPlugin"));
38
+ var EmojisPlugin_1 = tslib_1.__importDefault(require("./plugins/EmojisPlugin"));
39
+ var EquationsPlugin_1 = tslib_1.__importDefault(require("./plugins/EquationsPlugin"));
40
+ var ExcalidrawPlugin_1 = tslib_1.__importDefault(require("./plugins/ExcalidrawPlugin"));
41
+ var FigmaPlugin_1 = tslib_1.__importDefault(require("./plugins/FigmaPlugin"));
42
+ var ImagesPlugin_1 = tslib_1.__importDefault(require("./plugins/ImagesPlugin"));
43
+ var InlineImagePlugin_1 = tslib_1.__importDefault(require("./plugins/InlineImagePlugin"));
44
+ var KeywordsPlugin_1 = tslib_1.__importDefault(require("./plugins/KeywordsPlugin"));
45
+ var LayoutPlugin_1 = require("./plugins/LayoutPlugin/LayoutPlugin");
46
+ var LinkPlugin_1 = tslib_1.__importDefault(require("./plugins/LinkPlugin"));
47
+ var ListMaxIndentLevelPlugin_1 = tslib_1.__importDefault(require("./plugins/ListMaxIndentLevelPlugin"));
48
+ var MarkdownShortcutPlugin_1 = tslib_1.__importDefault(require("./plugins/MarkdownShortcutPlugin"));
49
+ var MaxLengthPlugin_1 = require("./plugins/MaxLengthPlugin");
50
+ var MentionsPlugin_1 = tslib_1.__importDefault(require("./plugins/MentionsPlugin"));
51
+ var PageBreakPlugin_1 = tslib_1.__importDefault(require("./plugins/PageBreakPlugin"));
52
+ var ContentEditable_1 = tslib_1.__importDefault(require("./ui/ContentEditable"));
53
+ var PollPlugin_1 = tslib_1.__importDefault(require("./plugins/PollPlugin"));
54
+ var TabFocusPlugin_1 = tslib_1.__importDefault(require("./plugins/TabFocusPlugin"));
55
+ var TableActionMenuPlugin_1 = tslib_1.__importDefault(require("./plugins/TableActionMenuPlugin"));
56
+ var TableCellResizer_1 = tslib_1.__importDefault(require("./plugins/TableCellResizer"));
57
+ var TableOfContentsPlugin_1 = tslib_1.__importDefault(require("./plugins/TableOfContentsPlugin"));
58
+ var ToolbarPlugin_1 = tslib_1.__importDefault(require("./plugins/ToolbarPlugin"));
59
+ var TwitterPlugin_1 = tslib_1.__importDefault(require("./plugins/TwitterPlugin"));
60
+ var YouTubePlugin_1 = tslib_1.__importDefault(require("./plugins/YouTubePlugin"));
61
+ var SettingsContext_1 = require("./context/SettingsContext");
62
+ var constants_1 = require("./constants");
63
+ var style_1 = tslib_1.__importDefault(require("./style"));
64
+ function PHXTextEditorV2(_a) {
65
+ var defaultValue = _a.defaultValue, label = _a.label, onChange = _a.onChange, placeholder = _a.placeholder, apiCdnUpload = _a.apiCdnUpload;
66
+ var _b = (0, react_1.useState)(false), isSmallWidthViewport = _b[0], setIsSmallWidthViewport = _b[1];
67
+ var historyState = (0, SharedHistoryContext_1.useSharedHistoryContext)().historyState;
68
+ var _c = (0, react_1.useState)(null), floatingAnchorElem = _c[0], setFloatingAnchorElem = _c[1];
69
+ var onRef = function (_floatingAnchorElem) {
70
+ if (_floatingAnchorElem !== null) {
71
+ setFloatingAnchorElem(_floatingAnchorElem);
72
+ }
73
+ };
74
+ var _d = (0, SettingsContext_1.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;
75
+ var editorConfig = {
76
+ theme: PlaygroundEditorTheme_1.default,
77
+ editorState: prepopulatedRichText,
78
+ onError: function (error) {
79
+ throw error;
80
+ },
81
+ nodes: tslib_1.__spreadArray(tslib_1.__spreadArray([], PlaygroundNodes_1.default, true), [
82
+ ExtendedTextNode_1.ExtendedTextNode,
83
+ {
84
+ replace: lexical_1.TextNode,
85
+ with: function (node) { return new ExtendedTextNode_1.ExtendedTextNode(node.__text); },
86
+ withKlass: ExtendedTextNode_1.ExtendedTextNode,
87
+ },
88
+ ], false),
89
+ };
90
+ function prepopulatedRichText() {
91
+ var root = (0, lexical_1.$getRoot)();
92
+ try {
93
+ if (defaultValue) {
94
+ var html = defaultValue;
95
+ var htmlLength = html.length;
96
+ var utf8Array = new Uint8Array(htmlLength);
97
+ for (var i = 0; i < htmlLength; i++) {
98
+ utf8Array[i] = html.charCodeAt(i);
99
+ }
100
+ var utf8Text = new TextDecoder('utf-8').decode(utf8Array);
101
+ var editor = (0, lexical_1.createEditor)();
102
+ var parser = new DOMParser();
103
+ var dom = parser.parseFromString(utf8Text, 'text/html');
104
+ var nodes = (0, html_1.$generateNodesFromDOM)(editor, dom);
105
+ if (root.getFirstChild() === null) {
106
+ root.append.apply(root, nodes);
107
+ }
108
+ }
109
+ }
110
+ catch (e) {
111
+ root.append.apply(root, []);
112
+ }
113
+ }
114
+ function ensureStyleTag(html, css) {
115
+ var parser = new DOMParser();
116
+ var doc = parser.parseFromString(html, 'text/html');
117
+ var hasStyle = doc.querySelector('style');
118
+ if (!hasStyle) {
119
+ var styleTag_1 = doc.createElement('style');
120
+ styleTag_1.innerHTML = css;
121
+ doc.head.appendChild(styleTag_1);
122
+ }
123
+ return doc.documentElement.outerHTML;
124
+ }
125
+ var handleChange = function (editorState, editor) {
126
+ editorState.read(function () {
127
+ var data = JSON.stringify(editorState);
128
+ return data;
129
+ });
130
+ editor.update(function () {
131
+ var rawHTML = (0, html_1.$generateHtmlFromNodes)(editor, null);
132
+ var htmlWithStyle = ensureStyleTag(rawHTML, constants_1.styleTag);
133
+ onChange === null || onChange === void 0 ? void 0 : onChange(htmlWithStyle);
134
+ });
135
+ };
136
+ (0, react_1.useEffect)(function () {
137
+ var updateViewPortWidth = function () {
138
+ var isNextSmallWidthViewport = canUseDOM_1.CAN_USE_DOM && window.matchMedia('(max-width: 1025px)').matches;
139
+ if (isNextSmallWidthViewport !== isSmallWidthViewport) {
140
+ setIsSmallWidthViewport(isNextSmallWidthViewport);
141
+ }
142
+ };
143
+ updateViewPortWidth();
144
+ window.addEventListener('resize', updateViewPortWidth);
145
+ return function () {
146
+ window.removeEventListener('resize', updateViewPortWidth);
147
+ };
148
+ }, [isSmallWidthViewport]);
149
+ return (React.createElement("div", null,
150
+ React.createElement(style_1.default, null),
151
+ label && React.createElement("label", { className: 'block mb-1 text-xs font-normal text-gray-700' }, label),
152
+ React.createElement(LexicalComposer_1.LexicalComposer, { initialConfig: editorConfig },
153
+ React.createElement(SharedHistoryContext_1.SharedHistoryContext, null,
154
+ React.createElement(TablePlugin_1.TableContext, null,
155
+ React.createElement(SharedAutocompleteContext_1.SharedAutocompleteContext, null,
156
+ React.createElement("div", { className: 'rounded-md border border-gray-300 shadow-sm overflow-hidden' },
157
+ React.createElement(ToolbarPlugin_1.default, { apiCdnUpload: apiCdnUpload }),
158
+ React.createElement("div", { className: 'relative' },
159
+ isMaxLength && React.createElement(MaxLengthPlugin_1.MaxLengthPlugin, { maxLength: 30 }),
160
+ React.createElement(LexicalClearEditorPlugin_1.ClearEditorPlugin, null),
161
+ React.createElement(ComponentPickerPlugin_1.default, null),
162
+ React.createElement(EmojiPickerPlugin_1.default, null),
163
+ React.createElement(AutoEmbedPlugin_1.default, null),
164
+ React.createElement(MentionsPlugin_1.default, null),
165
+ React.createElement(EmojisPlugin_1.default, null),
166
+ React.createElement(LexicalHashtagPlugin_1.HashtagPlugin, null),
167
+ React.createElement(KeywordsPlugin_1.default, null),
168
+ React.createElement(LexicalOnChangePlugin_1.OnChangePlugin, { onChange: handleChange }),
169
+ React.createElement(LexicalHistoryPlugin_1.HistoryPlugin, { externalHistoryState: historyState }),
170
+ React.createElement(LexicalRichTextPlugin_1.RichTextPlugin, { contentEditable: React.createElement("div", { ref: onRef },
171
+ React.createElement(ContentEditable_1.default, { className: 'px-2 py-1.5 h-[20rem] overflow-y-auto outline-none text-sm' })), ErrorBoundary: LexicalErrorBoundary_1.default, 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) }),
172
+ React.createElement(MarkdownShortcutPlugin_1.default, null),
173
+ React.createElement(CodeHighlightPlugin_1.default, null),
174
+ React.createElement(LexicalListPlugin_1.ListPlugin, null),
175
+ React.createElement(LexicalCheckListPlugin_1.CheckListPlugin, null),
176
+ React.createElement(ListMaxIndentLevelPlugin_1.default, { maxDepth: 7 }),
177
+ React.createElement(LexicalTablePlugin_1.TablePlugin, { hasCellBackgroundColor: tableCellBackgroundColor, hasCellMerge: tableCellMerge }),
178
+ React.createElement(TableCellResizer_1.default, null),
179
+ React.createElement(ImagesPlugin_1.default, null),
180
+ React.createElement(InlineImagePlugin_1.default, null),
181
+ React.createElement(LinkPlugin_1.default, null),
182
+ React.createElement(PollPlugin_1.default, null),
183
+ React.createElement(TwitterPlugin_1.default, null),
184
+ React.createElement(YouTubePlugin_1.default, null),
185
+ React.createElement(FigmaPlugin_1.default, null),
186
+ React.createElement(LexicalClickableLinkPlugin_1.default, null),
187
+ React.createElement(LexicalHorizontalRulePlugin_1.HorizontalRulePlugin, null),
188
+ React.createElement(EquationsPlugin_1.default, null),
189
+ React.createElement(ExcalidrawPlugin_1.default, null),
190
+ React.createElement(TabFocusPlugin_1.default, null),
191
+ React.createElement(LexicalTabIndentationPlugin_1.TabIndentationPlugin, null),
192
+ React.createElement(CollapsiblePlugin_1.default, null),
193
+ React.createElement(PageBreakPlugin_1.default, null),
194
+ React.createElement(LayoutPlugin_1.LayoutPlugin, null),
195
+ floatingAnchorElem && !isSmallWidthViewport && (React.createElement(React.Fragment, null,
196
+ React.createElement(CodeActionMenuPlugin_1.default, { anchorElem: floatingAnchorElem }),
197
+ React.createElement(TableActionMenuPlugin_1.default, { anchorElem: floatingAnchorElem, cellMerge: true }))),
198
+ (isCharLimit || isCharLimitUtf8) && (React.createElement(LexicalCharacterLimitPlugin_1.CharacterLimitPlugin, { charset: isCharLimit ? 'UTF-16' : 'UTF-8', maxLength: 5 })),
199
+ isAutocomplete && React.createElement(AutocompletePlugin_1.default, null),
200
+ React.createElement("div", null, showTableOfContents && React.createElement(TableOfContentsPlugin_1.default, null)),
201
+ shouldUseLexicalContextMenu && React.createElement(ContextMenuPlugin_1.default, null)))))))));
202
+ }
203
+ //# sourceMappingURL=editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.js","sourceRoot":"","sources":["../../../../src/components/TextEditorV2/editor.tsx"],"names":[],"m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CACxB,oBAAC,2BAAiB,OAAG;gCACrB,oBAAC,yBAAe,OAAG;gCACnB,oBAAC,2BAAY,OAAG;gCACf,kBAAkB,IAAI,CAAC,oBAAoB,IAAI,CAC9C;oCAEE,oBAAC,8BAAoB,IAAC,UAAU,EAAE,kBAAkB,GAAI;oCAMxD,oBAAC,+BAAyB,IAAC,UAAU,EAAE,kBAAkB,EAAE,SAAS,SAAG,CACtE,CACJ;gCACA,CAAC,WAAW,IAAI,eAAe,CAAC,IAAI,CACnC,oBAAC,kDAAoB,IAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC,GAAI,CAClF;gCACA,cAAc,IAAI,oBAAC,4BAAkB,OAAG;gCACzC,iCAAM,mBAAmB,IAAI,oBAAC,+BAAqB,OAAG,CAAO;gCAC5D,2BAA2B,IAAI,oBAAC,2BAAiB,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,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = useModal;
4
+ var tslib_1 = require("tslib");
5
+ var react_1 = require("react");
6
+ var React = tslib_1.__importStar(require("react"));
7
+ var Modal_1 = tslib_1.__importDefault(require("../ui/Modal"));
8
+ function useModal() {
9
+ var _a = (0, react_1.useState)(null), modalContent = _a[0], setModalContent = _a[1];
10
+ var onClose = (0, react_1.useCallback)(function () {
11
+ setModalContent(null);
12
+ }, []);
13
+ var modal = (0, react_1.useMemo)(function () {
14
+ if (modalContent === null) {
15
+ return null;
16
+ }
17
+ var closeOnClickOutside = modalContent.closeOnClickOutside, content = modalContent.content, title = modalContent.title;
18
+ return (React.createElement(Modal_1.default, { closeOnClickOutside: closeOnClickOutside, onClose: onClose, title: title }, content));
19
+ }, [modalContent, onClose]);
20
+ var showModal = (0, react_1.useCallback)(function (title,
21
+ // eslint-disable-next-line no-shadow
22
+ getContent, closeOnClickOutside) {
23
+ if (closeOnClickOutside === void 0) { closeOnClickOutside = false; }
24
+ setModalContent({
25
+ closeOnClickOutside: closeOnClickOutside,
26
+ content: getContent(onClose),
27
+ title: title,
28
+ });
29
+ }, [onClose]);
30
+ return [modal, showModal];
31
+ }
32
+ //# sourceMappingURL=useModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useModal.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/hooks/useModal.tsx"],"names":[],"mappings":";;AAIA,2BA2CC;;AA/CD,+BAAsD;AACtD,mDAA8B;AAC9B,8DAA+B;AAE/B,SAAwB,QAAQ;IAIxB,IAAA,KAAkC,IAAA,gBAAQ,EAI7C,IAAI,CAAC,EAJD,YAAY,QAAA,EAAE,eAAe,QAI5B,CAAA;IAER,IAAM,OAAO,GAAG,IAAA,mBAAW,EAAC;QAC1B,eAAe,CAAC,IAAI,CAAC,CAAA;IACvB,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,IAAM,KAAK,GAAG,IAAA,eAAO,EAAC;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,eAAK,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,IAAA,mBAAW,EAC3B,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,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = useReport;
4
+ var react_1 = require("react");
5
+ var getElement = function () {
6
+ var element = document.getElementById('report-container');
7
+ if (element === null) {
8
+ element = document.createElement('div');
9
+ element.id = 'report-container';
10
+ element.style.position = 'fixed';
11
+ element.style.top = '50%';
12
+ element.style.left = '50%';
13
+ element.style.fontSize = '32px';
14
+ element.style.transform = 'translate(-50%, -50px)';
15
+ element.style.padding = '20px';
16
+ element.style.background = 'rgba(240, 240, 240, 0.4)';
17
+ element.style.borderRadius = '20px';
18
+ if (document.body) {
19
+ document.body.appendChild(element);
20
+ }
21
+ }
22
+ return element;
23
+ };
24
+ function useReport() {
25
+ var timer = (0, react_1.useRef)(null);
26
+ var cleanup = (0, react_1.useCallback)(function () {
27
+ if (timer !== null) {
28
+ clearTimeout(timer.current);
29
+ }
30
+ if (document.body) {
31
+ document.body.removeChild(getElement());
32
+ }
33
+ }, []);
34
+ (0, react_1.useEffect)(function () { return cleanup; }, [cleanup]);
35
+ return (0, react_1.useCallback)(function (content) {
36
+ // eslint-disable-next-line no-console
37
+ console.log(content);
38
+ var element = getElement();
39
+ clearTimeout(timer.current);
40
+ element.innerHTML = content;
41
+ timer.current = setTimeout(cleanup, 1000);
42
+ return timer.current;
43
+ }, [cleanup]);
44
+ }
45
+ //# sourceMappingURL=useReport.js.map
@@ -0,0 +1 @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AC,IAAI,EAAE,CAAC;YAClB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC,CAAA;QACzC,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,IAAA,iBAAS,EAAC,cAAM,OAAA,OAAO,EAAP,CAAO,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEnC,OAAO,IAAA,mBAAW,EAChB,UAAC,OAAO;QACN,sCAAsC;QACtC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QACpB,IAAM,OAAO,GAAG,UAAU,EAAE,CAAA;QAC5B,YAAY,CAAC,KAAK,CAAC,OAAwC,CAAC,CAAA;QAC5D,OAAO,CAAC,SAAS,GAAG,OAAO,CAAA;QAC3B,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;QACzC,OAAO,KAAK,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,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = Settings;
4
+ var tslib_1 = require("tslib");
5
+ var React = tslib_1.__importStar(require("react"));
6
+ var react_1 = require("react");
7
+ var SettingsContext_1 = require("../context/SettingsContext");
8
+ var Switch_1 = tslib_1.__importDefault(require("../ui/Switch"));
9
+ var appSettings_1 = require("./appSettings");
10
+ function Settings() {
11
+ var windowLocation = window.location;
12
+ var _a = (0, SettingsContext_1.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;
13
+ var _c = (0, react_1.useState)(false), showSettings = _c[0], setShowSettings = _c[1];
14
+ var _d = (0, react_1.useMemo)(function () {
15
+ var parentWindow = window.parent;
16
+ var _search = windowLocation.search;
17
+ var _isSplitScreen = parentWindow && parentWindow.location.pathname === '/split/';
18
+ return [_isSplitScreen, _search];
19
+ }, [windowLocation]), isSplitScreen = _d[0], search = _d[1];
20
+ return (React.createElement(React.Fragment, null,
21
+ React.createElement("button", { className: "editor-dev-button ".concat(showSettings ? 'active' : ''), id: 'options-button', onClick: function () { return setShowSettings(!showSettings); }, type: 'button' }),
22
+ showSettings ? (React.createElement("div", { className: 'switches' },
23
+ appSettings_1.isDevPlayground && (React.createElement(Switch_1.default, { checked: isSplitScreen, onClick: function () {
24
+ if (isSplitScreen) {
25
+ window.parent.location.href = "/".concat(search);
26
+ }
27
+ else {
28
+ window.location.href = "/split/".concat(search);
29
+ }
30
+ }, text: 'Split Screen' })),
31
+ React.createElement(Switch_1.default, { checked: measureTypingPerf, onClick: function () { return setOption('measureTypingPerf', !measureTypingPerf); }, text: 'Measure Perf' }),
32
+ React.createElement(Switch_1.default, { checked: showTreeView, onClick: function () { return setOption('showTreeView', !showTreeView); }, text: 'Debug View' }),
33
+ React.createElement(Switch_1.default, { checked: showNestedEditorTreeView, onClick: function () { return setOption('showNestedEditorTreeView', !showNestedEditorTreeView); }, text: 'Nested Editors Debug View' }),
34
+ React.createElement(Switch_1.default, { checked: isRichText, onClick: function () {
35
+ setOption('isRichText', !isRichText);
36
+ }, text: 'Rich Text' }),
37
+ React.createElement(Switch_1.default, { checked: isCharLimit, onClick: function () { return setOption('isCharLimit', !isCharLimit); }, text: 'Char Limit' }),
38
+ React.createElement(Switch_1.default, { checked: isCharLimitUtf8, onClick: function () { return setOption('isCharLimitUtf8', !isCharLimitUtf8); }, text: 'Char Limit (UTF-8)' }),
39
+ React.createElement(Switch_1.default, { checked: isMaxLength, onClick: function () { return setOption('isMaxLength', !isMaxLength); }, text: 'Max Length' }),
40
+ React.createElement(Switch_1.default, { checked: isAutocomplete, onClick: function () { return setOption('isAutocomplete', !isAutocomplete); }, text: 'Autocomplete' }),
41
+ React.createElement(Switch_1.default, { checked: disableBeforeInput, onClick: function () {
42
+ setOption('disableBeforeInput', !disableBeforeInput);
43
+ setTimeout(function () { return window.location.reload(); }, 500);
44
+ }, text: 'Legacy Events' }),
45
+ React.createElement(Switch_1.default, { checked: showTableOfContents, onClick: function () {
46
+ setOption('showTableOfContents', !showTableOfContents);
47
+ }, text: 'Table Of Contents' }),
48
+ React.createElement(Switch_1.default, { checked: shouldUseLexicalContextMenu, onClick: function () {
49
+ setOption('shouldUseLexicalContextMenu', !shouldUseLexicalContextMenu);
50
+ }, text: 'Use Lexical Context Menu' }))) : null));
51
+ }
52
+ //# sourceMappingURL=Settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Settings.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/lib/Settings.tsx"],"names":[],"mappings":";;AAMA,2BA0GC;;AAhHD,mDAA8B;AAC9B,+BAAyC;AACzC,8DAAwD;AACxD,gEAAiC;AACjC,6CAA+C;AAE/C,SAAwB,QAAQ;IAC9B,IAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAA;IAEhC,IAAA,KAeF,IAAA,6BAAW,GAAE,EAdf,SAAS,eAAA,EACT,gBAYC,EAXC,kBAAkB,wBAAA,EAClB,cAAc,oBAAA,EACd,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,WAAW,iBAAA,EACX,UAAU,gBAAA,EACV,iBAAiB,uBAAA,EACjB,2BAA2B,iCAAA,EAC3B,wBAAwB,8BAAA,EACxB,mBAAmB,yBAAA,EACnB,YAAY,kBAEC,CAAA;IACX,IAAA,KAAkC,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAhD,YAAY,QAAA,EAAE,eAAe,QA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M,OAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAxB,CAAwB,EAAE,GAAG,CAAC,CAAA;gBACjD,CAAC,EACD,IAAI,EAAC,eAAe,GACpB;YACF,oBAAC,gBAAM,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,gBAAM,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,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_SETTINGS = exports.isDevPlayground = void 0;
4
+ exports.isDevPlayground = false;
5
+ exports.DEFAULT_SETTINGS = {
6
+ disableBeforeInput: false,
7
+ emptyEditor: exports.isDevPlayground,
8
+ isAutocomplete: false,
9
+ isCharLimit: false,
10
+ isCharLimitUtf8: false,
11
+ isMaxLength: false,
12
+ isRichText: true,
13
+ measureTypingPerf: false,
14
+ shouldUseLexicalContextMenu: false,
15
+ showNestedEditorTreeView: false,
16
+ showTableOfContents: false,
17
+ showTreeView: true,
18
+ tableCellBackgroundColor: true,
19
+ tableCellMerge: true,
20
+ };
21
+ //# sourceMappingURL=appSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appSettings.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/lib/appSettings.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,KAAK,CAAA;AAEvB,QAAA,gBAAgB,GAAG;IAC9B,kBAAkB,EAAE,KAAK;IACzB,WAAW,EAAE,uBAAe;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,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createWebsocketProvider = createWebsocketProvider;
4
+ var y_websocket_1 = require("y-websocket");
5
+ var yjs_1 = require("yjs");
6
+ var url = new URL(window.location.href);
7
+ var params = new URLSearchParams(url.search);
8
+ var WEBSOCKET_ENDPOINT = params.get('collabEndpoint') || 'ws://localhost:1234';
9
+ var WEBSOCKET_SLUG = 'playground';
10
+ var WEBSOCKET_ID = params.get('collabId') || '0';
11
+ // parent dom -> child doc
12
+ function createWebsocketProvider(id, yjsDocMap) {
13
+ var doc = yjsDocMap.get(id);
14
+ if (doc === undefined) {
15
+ doc = new yjs_1.Doc();
16
+ yjsDocMap.set(id, doc);
17
+ }
18
+ else {
19
+ doc.load();
20
+ }
21
+ // @ts-ignore
22
+ return new y_websocket_1.WebsocketProvider(WEBSOCKET_ENDPOINT, WEBSOCKET_SLUG + '/' + WEBSOCKET_ID + '/' + id, doc, {
23
+ connect: false,
24
+ });
25
+ }
26
+ //# sourceMappingURL=collaboration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collaboration.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/lib/collaboration.ts"],"names":[],"mappings":";;AAWA,0DAcC;AAxBD,2CAA+C;AAC/C,2BAAyB;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,SAAgB,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,SAAG,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,+BAAiB,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,23 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ var appSettings_1 = require("./appSettings");
5
+ // override default options with query parameters if any
6
+ var urlSearchParams = new URLSearchParams(window.location.search);
7
+ for (var _i = 0, _b = Object.keys(appSettings_1.DEFAULT_SETTINGS); _i < _b.length; _i++) {
8
+ var param = _b[_i];
9
+ if (urlSearchParams.has(param)) {
10
+ try {
11
+ var value = JSON.parse((_a = urlSearchParams.get(param)) !== null && _a !== void 0 ? _a : 'true');
12
+ appSettings_1.DEFAULT_SETTINGS[param] = Boolean(value);
13
+ }
14
+ catch (error) {
15
+ console.warn("Unable to parse query parameter \"".concat(param, "\""));
16
+ }
17
+ }
18
+ }
19
+ if (appSettings_1.DEFAULT_SETTINGS.disableBeforeInput) {
20
+ // @ts-expect-error
21
+ delete window.InputEvent.prototype.getTargetRanges;
22
+ }
23
+ //# sourceMappingURL=setupEnv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupEnv.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/lib/setupEnv.ts"],"names":[],"mappings":";;;AAAA,6CAA0D;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,8BAAgB,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,8BAAgB,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,8BAAgB,CAAC,kBAAkB,EAAE,CAAC;IACxC,mBAAmB;IACnB,OAAO,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,eAAe,CAAA;AACpD,CAAC"}