phx-react 1.3.1570 → 1.3.1572

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 (885) hide show
  1. package/dist/cjs/components/MainWrapV4/components/notification/component/HtmlIFrame.d.ts +2 -2
  2. package/dist/cjs/components/MainWrapV4/components/notification/component/HtmlIFrame.js +15 -14
  3. package/dist/cjs/components/MainWrapV4/components/notification/component/HtmlIFrame.js.map +1 -1
  4. package/dist/cjs/components/MainWrapV4/components/notification/component/NotiDropdown.js +7 -6
  5. package/dist/cjs/components/MainWrapV4/components/notification/component/NotiDropdown.js.map +1 -1
  6. package/dist/cjs/components/MainWrapV4/components/notification/component/NotiHeader.js +1 -1
  7. package/dist/cjs/components/MainWrapV4/components/notification/component/NotiHeader.js.map +1 -1
  8. package/dist/cjs/components/MainWrapV4/components/notification/component/NotiListPane.d.ts +3 -4
  9. package/dist/cjs/components/MainWrapV4/components/notification/component/NotiListPane.js +18 -8
  10. package/dist/cjs/components/MainWrapV4/components/notification/component/NotiListPane.js.map +1 -1
  11. package/dist/cjs/components/MainWrapV4/components/notification/component/NotiPreviewPane.d.ts +1 -4
  12. package/dist/cjs/components/MainWrapV4/components/notification/component/NotiPreviewPane.js +3 -39
  13. package/dist/cjs/components/MainWrapV4/components/notification/component/NotiPreviewPane.js.map +1 -1
  14. package/dist/cjs/components/MainWrapV4/components/notification/hook/useNotificationData.d.ts +1 -1
  15. package/dist/cjs/components/MainWrapV4/components/notification/hook/useNotificationData.js +1 -1
  16. package/dist/cjs/components/MainWrapV4/components/notification/hook/useNotificationData.js.map +1 -1
  17. package/dist/cjs/components/MainWrapV4/components/notification/index.js +8 -2
  18. package/dist/cjs/components/MainWrapV4/components/notification/index.js.map +1 -1
  19. package/dist/cjs/components/MainWrapV4/types/notification.d.ts +0 -1
  20. package/dist/cjs/components/TextEditorV2/commenting/index.d.ts +41 -0
  21. package/dist/cjs/components/TextEditorV2/commenting/index.js +340 -0
  22. package/dist/cjs/components/TextEditorV2/commenting/index.js.map +1 -0
  23. package/dist/cjs/components/TextEditorV2/constants.d.ts +1 -0
  24. package/dist/cjs/components/TextEditorV2/constants.js +5 -0
  25. package/dist/cjs/components/TextEditorV2/constants.js.map +1 -0
  26. package/dist/cjs/components/TextEditorV2/context/SettingsContext.d.ts +12 -0
  27. package/dist/cjs/components/TextEditorV2/context/SettingsContext.js +59 -0
  28. package/dist/cjs/components/TextEditorV2/context/SettingsContext.js.map +1 -0
  29. package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.d.ts +10 -0
  30. package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.js +50 -0
  31. package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.js.map +1 -0
  32. package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.d.ts +11 -0
  33. package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.js +17 -0
  34. package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.js.map +1 -0
  35. package/dist/cjs/components/TextEditorV2/editor.d.ts +10 -0
  36. package/dist/cjs/components/TextEditorV2/editor.js +203 -0
  37. package/dist/cjs/components/TextEditorV2/editor.js.map +1 -0
  38. package/dist/cjs/components/TextEditorV2/hooks/useModal.d.ts +5 -0
  39. package/dist/cjs/components/TextEditorV2/hooks/useModal.js +32 -0
  40. package/dist/cjs/components/TextEditorV2/hooks/useModal.js.map +1 -0
  41. package/dist/cjs/components/TextEditorV2/hooks/useReport.d.ts +1 -0
  42. package/dist/cjs/components/TextEditorV2/hooks/useReport.js +45 -0
  43. package/dist/cjs/components/TextEditorV2/hooks/useReport.js.map +1 -0
  44. package/dist/cjs/components/TextEditorV2/lib/Settings.d.ts +2 -0
  45. package/dist/cjs/components/TextEditorV2/lib/Settings.js +52 -0
  46. package/dist/cjs/components/TextEditorV2/lib/Settings.js.map +1 -0
  47. package/dist/cjs/components/TextEditorV2/lib/appSettings.d.ts +19 -0
  48. package/dist/cjs/components/TextEditorV2/lib/appSettings.js +21 -0
  49. package/dist/cjs/components/TextEditorV2/lib/appSettings.js.map +1 -0
  50. package/dist/cjs/components/TextEditorV2/lib/collaboration.d.ts +3 -0
  51. package/dist/cjs/components/TextEditorV2/lib/collaboration.js +26 -0
  52. package/dist/cjs/components/TextEditorV2/lib/collaboration.js.map +1 -0
  53. package/dist/cjs/components/TextEditorV2/lib/setupEnv.d.ts +1 -0
  54. package/dist/cjs/components/TextEditorV2/lib/setupEnv.js +23 -0
  55. package/dist/cjs/components/TextEditorV2/lib/setupEnv.js.map +1 -0
  56. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.d.ts +25 -0
  57. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.js +58 -0
  58. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.js.map +1 -0
  59. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.d.ts +18 -0
  60. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.js +62 -0
  61. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.js.map +1 -0
  62. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.d.ts +9 -0
  63. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.js +72 -0
  64. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.js.map +1 -0
  65. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.d.ts +26 -0
  66. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.js +126 -0
  67. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.js.map +1 -0
  68. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.d.ts +6 -0
  69. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js +117 -0
  70. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js.map +1 -0
  71. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.d.ts +50 -0
  72. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js +59 -0
  73. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js.map +1 -0
  74. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.d.ts +44 -0
  75. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js +143 -0
  76. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js.map +1 -0
  77. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.d.ts +22 -0
  78. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.js +103 -0
  79. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.js.map +1 -0
  80. package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.d.ts +12 -0
  81. package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.js +106 -0
  82. package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.js.map +1 -0
  83. package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.d.ts +19 -0
  84. package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.js +63 -0
  85. package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.js.map +1 -0
  86. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.d.ts +14 -0
  87. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.js +212 -0
  88. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.js.map +1 -0
  89. package/dist/cjs/components/TextEditorV2/nodes/ImageNode.d.ts +56 -0
  90. package/dist/cjs/components/TextEditorV2/nodes/ImageNode.js +136 -0
  91. package/dist/cjs/components/TextEditorV2/nodes/ImageNode.js.map +1 -0
  92. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.d.ts +18 -0
  93. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.js +194 -0
  94. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.js.map +1 -0
  95. package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.d.ts +54 -0
  96. package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.js +142 -0
  97. package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.js.map +1 -0
  98. package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.d.ts +15 -0
  99. package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.js +54 -0
  100. package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.js.map +1 -0
  101. package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.d.ts +21 -0
  102. package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.js +63 -0
  103. package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.js.map +1 -0
  104. package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.d.ts +15 -0
  105. package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.js +51 -0
  106. package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.js.map +1 -0
  107. package/dist/cjs/components/TextEditorV2/nodes/MentionNode.d.ts +20 -0
  108. package/dist/cjs/components/TextEditorV2/nodes/MentionNode.js +89 -0
  109. package/dist/cjs/components/TextEditorV2/nodes/MentionNode.js.map +1 -0
  110. package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.d.ts +17 -0
  111. package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.js +113 -0
  112. package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.js.map +1 -0
  113. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.d.ts +3 -0
  114. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.js +68 -0
  115. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.js.map +1 -0
  116. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.d.ts +8 -0
  117. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.js +113 -0
  118. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.js.map +1 -0
  119. package/dist/cjs/components/TextEditorV2/nodes/PollNode.d.ts +33 -0
  120. package/dist/cjs/components/TextEditorV2/nodes/PollNode.js +149 -0
  121. package/dist/cjs/components/TextEditorV2/nodes/PollNode.js.map +1 -0
  122. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.d.ts +9 -0
  123. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.js +167 -0
  124. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.js.map +1 -0
  125. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.d.ts +37 -0
  126. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.js +94 -0
  127. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.js.map +1 -0
  128. package/dist/cjs/components/TextEditorV2/nodes/TableNode.d.ts +54 -0
  129. package/dist/cjs/components/TextEditorV2/nodes/TableNode.js +198 -0
  130. package/dist/cjs/components/TextEditorV2/nodes/TableNode.js.map +1 -0
  131. package/dist/cjs/components/TextEditorV2/nodes/TweetNode.d.ts +28 -0
  132. package/dist/cjs/components/TextEditorV2/nodes/TweetNode.js +156 -0
  133. package/dist/cjs/components/TextEditorV2/nodes/TweetNode.js.map +1 -0
  134. package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.d.ts +28 -0
  135. package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.js +103 -0
  136. package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.js.map +1 -0
  137. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.d.ts +2 -0
  138. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.js +183 -0
  139. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.js.map +1 -0
  140. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.d.ts +19 -0
  141. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js +179 -0
  142. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js.map +1 -0
  143. package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.d.ts +2 -0
  144. package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.js +16 -0
  145. package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.js.map +1 -0
  146. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.d.ts +2 -0
  147. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.js +2465 -0
  148. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.js.map +1 -0
  149. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +8 -0
  150. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +55 -0
  151. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -0
  152. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +10 -0
  153. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +159 -0
  154. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -0
  155. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.d.ts +4 -0
  156. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js +111 -0
  157. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js.map +1 -0
  158. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
  159. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js +21 -0
  160. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js.map +1 -0
  161. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.d.ts +1 -0
  162. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js +12 -0
  163. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js.map +1 -0
  164. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.d.ts +23 -0
  165. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +88 -0
  166. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +1 -0
  167. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.d.ts +17 -0
  168. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js +70 -0
  169. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +1 -0
  170. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.d.ts +18 -0
  171. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +95 -0
  172. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +1 -0
  173. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.d.ts +3 -0
  174. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.js +148 -0
  175. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.js.map +1 -0
  176. package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.d.ts +2 -0
  177. package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js +264 -0
  178. package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js.map +1 -0
  179. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.d.ts +11 -0
  180. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.js +171 -0
  181. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.js.map +1 -0
  182. package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.d.ts +2 -0
  183. package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.js +10 -0
  184. package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.js.map +1 -0
  185. package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.d.ts +1 -0
  186. package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.js +44 -0
  187. package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.js.map +1 -0
  188. package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.d.ts +4 -0
  189. package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js +288 -0
  190. package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js.map +1 -0
  191. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.d.ts +2 -0
  192. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js +97 -0
  193. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js.map +1 -0
  194. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.d.ts +1 -0
  195. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.js +64 -0
  196. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.js.map +1 -0
  197. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.d.ts +14 -0
  198. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.js +42 -0
  199. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.js.map +1 -0
  200. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.d.ts +3 -0
  201. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js +28 -0
  202. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js.map +1 -0
  203. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.d.ts +3 -0
  204. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.js +25 -0
  205. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.js.map +1 -0
  206. package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.d.ts +7 -0
  207. package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js +200 -0
  208. package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js.map +1 -0
  209. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +4 -0
  210. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js +229 -0
  211. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -0
  212. package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.d.ts +22 -0
  213. package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.js +188 -0
  214. package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.js.map +1 -0
  215. package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.d.ts +17 -0
  216. package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.js +193 -0
  217. package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.js.map +1 -0
  218. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.d.ts +1 -0
  219. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.js +33 -0
  220. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.js.map +1 -0
  221. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +6 -0
  222. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js +34 -0
  223. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js.map +1 -0
  224. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.d.ts +7 -0
  225. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js +89 -0
  226. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js.map +1 -0
  227. package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.d.ts +2 -0
  228. package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.js +11 -0
  229. package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.js.map +1 -0
  230. package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.d.ts +5 -0
  231. package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js +44 -0
  232. package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js.map +1 -0
  233. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.d.ts +2 -0
  234. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js +11 -0
  235. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js.map +1 -0
  236. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.d.ts +8 -0
  237. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.js +242 -0
  238. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.js.map +1 -0
  239. package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.d.ts +3 -0
  240. package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.js +41 -0
  241. package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.js.map +1 -0
  242. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.d.ts +2 -0
  243. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.js +560 -0
  244. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.js.map +1 -0
  245. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.d.ts +3 -0
  246. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.js +31 -0
  247. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.js.map +1 -0
  248. package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.d.ts +2 -0
  249. package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.js +37 -0
  250. package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.js.map +1 -0
  251. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.d.ts +8 -0
  252. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.js +46 -0
  253. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.js.map +1 -0
  254. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.d.ts +1 -0
  255. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.js +16 -0
  256. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.js.map +1 -0
  257. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.d.ts +1 -0
  258. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.js +38 -0
  259. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.js.map +1 -0
  260. package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.d.ts +5 -0
  261. package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js +487 -0
  262. package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js.map +1 -0
  263. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.d.ts +2 -0
  264. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.js +253 -0
  265. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.js.map +1 -0
  266. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.d.ts +2 -0
  267. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js +117 -0
  268. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js.map +1 -0
  269. package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.d.ts +32 -0
  270. package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.js +85 -0
  271. package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.js.map +1 -0
  272. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.d.ts +6 -0
  273. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js +18 -0
  274. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js.map +1 -0
  275. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.d.ts +6 -0
  276. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js +28 -0
  277. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js.map +1 -0
  278. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.d.ts +6 -0
  279. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js +65 -0
  280. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js.map +1 -0
  281. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.d.ts +6 -0
  282. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js +71 -0
  283. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js.map +1 -0
  284. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.d.ts +6 -0
  285. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js +18 -0
  286. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js.map +1 -0
  287. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.d.ts +5 -0
  288. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js +46 -0
  289. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js.map +1 -0
  290. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.d.ts +6 -0
  291. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js +28 -0
  292. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js.map +1 -0
  293. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.d.ts +6 -0
  294. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js +52 -0
  295. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js.map +1 -0
  296. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.d.ts +6 -0
  297. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js +28 -0
  298. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js.map +1 -0
  299. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.d.ts +6 -0
  300. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js +19 -0
  301. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js.map +1 -0
  302. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.d.ts +6 -0
  303. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js +41 -0
  304. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js.map +1 -0
  305. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.d.ts +11 -0
  306. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js +162 -0
  307. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js.map +1 -0
  308. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.d.ts +4 -0
  309. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.js +163 -0
  310. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.js.map +1 -0
  311. package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.d.ts +2 -0
  312. package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.js +12 -0
  313. package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.js.map +1 -0
  314. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.d.ts +3 -0
  315. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.js +25 -0
  316. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.js.map +1 -0
  317. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.d.ts +3 -0
  318. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.js +25 -0
  319. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.js.map +1 -0
  320. package/dist/cjs/components/TextEditorV2/shared/canUseDOM.d.ts +1 -0
  321. package/dist/cjs/components/TextEditorV2/shared/canUseDOM.js +7 -0
  322. package/dist/cjs/components/TextEditorV2/shared/canUseDOM.js.map +1 -0
  323. package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.d.ts +4 -0
  324. package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.js +32 -0
  325. package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.js.map +1 -0
  326. package/dist/cjs/components/TextEditorV2/shared/environment.d.ts +16 -0
  327. package/dist/cjs/components/TextEditorV2/shared/environment.js +17 -0
  328. package/dist/cjs/components/TextEditorV2/shared/environment.js.map +1 -0
  329. package/dist/cjs/components/TextEditorV2/shared/invariant.d.ts +1 -0
  330. package/dist/cjs/components/TextEditorV2/shared/invariant.js +15 -0
  331. package/dist/cjs/components/TextEditorV2/shared/invariant.js.map +1 -0
  332. package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.d.ts +5 -0
  333. package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.js +28 -0
  334. package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.js.map +1 -0
  335. package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.d.ts +3 -0
  336. package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.js +7 -0
  337. package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.js.map +1 -0
  338. package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.d.ts +1 -0
  339. package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.js +16 -0
  340. package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.js.map +1 -0
  341. package/dist/cjs/components/TextEditorV2/style.d.ts +2 -0
  342. package/dist/cjs/components/TextEditorV2/style.js +9 -0
  343. package/dist/cjs/components/TextEditorV2/style.js.map +1 -0
  344. package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.d.ts +3 -0
  345. package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.js +7 -0
  346. package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.js.map +1 -0
  347. package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.d.ts +3 -0
  348. package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.js +107 -0
  349. package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.js.map +1 -0
  350. package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.d.ts +3 -0
  351. package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.js +7 -0
  352. package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.js.map +1 -0
  353. package/dist/cjs/components/TextEditorV2/ui/Button.d.ts +11 -0
  354. package/dist/cjs/components/TextEditorV2/ui/Button.js +11 -0
  355. package/dist/cjs/components/TextEditorV2/ui/Button.js.map +1 -0
  356. package/dist/cjs/components/TextEditorV2/ui/ColorPicker.d.ts +12 -0
  357. package/dist/cjs/components/TextEditorV2/ui/ColorPicker.js +216 -0
  358. package/dist/cjs/components/TextEditorV2/ui/ColorPicker.js.map +1 -0
  359. package/dist/cjs/components/TextEditorV2/ui/ContentEditable.d.ts +4 -0
  360. package/dist/cjs/components/TextEditorV2/ui/ContentEditable.js +11 -0
  361. package/dist/cjs/components/TextEditorV2/ui/ContentEditable.js.map +1 -0
  362. package/dist/cjs/components/TextEditorV2/ui/Dialog.d.ts +9 -0
  363. package/dist/cjs/components/TextEditorV2/ui/Dialog.js +15 -0
  364. package/dist/cjs/components/TextEditorV2/ui/Dialog.js.map +1 -0
  365. package/dist/cjs/components/TextEditorV2/ui/DropDown.d.ts +17 -0
  366. package/dist/cjs/components/TextEditorV2/ui/DropDown.js +133 -0
  367. package/dist/cjs/components/TextEditorV2/ui/DropDown.js.map +1 -0
  368. package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.d.ts +21 -0
  369. package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.js +20 -0
  370. package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.js.map +1 -0
  371. package/dist/cjs/components/TextEditorV2/ui/EquationEditor.d.ts +8 -0
  372. package/dist/cjs/components/TextEditorV2/ui/EquationEditor.js +20 -0
  373. package/dist/cjs/components/TextEditorV2/ui/EquationEditor.js.map +1 -0
  374. package/dist/cjs/components/TextEditorV2/ui/FileInput.d.ts +9 -0
  375. package/dist/cjs/components/TextEditorV2/ui/FileInput.js +12 -0
  376. package/dist/cjs/components/TextEditorV2/ui/FileInput.js.map +1 -0
  377. package/dist/cjs/components/TextEditorV2/ui/ImageResizer.d.ts +11 -0
  378. package/dist/cjs/components/TextEditorV2/ui/ImageResizer.js +178 -0
  379. package/dist/cjs/components/TextEditorV2/ui/ImageResizer.js.map +1 -0
  380. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.d.ts +7 -0
  381. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.js +39 -0
  382. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.js.map +1 -0
  383. package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.d.ts +6 -0
  384. package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.js +33 -0
  385. package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.js.map +1 -0
  386. package/dist/cjs/components/TextEditorV2/ui/Modal.d.ts +8 -0
  387. package/dist/cjs/components/TextEditorV2/ui/Modal.js +54 -0
  388. package/dist/cjs/components/TextEditorV2/ui/Modal.js.map +1 -0
  389. package/dist/cjs/components/TextEditorV2/ui/Placeholder.d.ts +6 -0
  390. package/dist/cjs/components/TextEditorV2/ui/Placeholder.js +10 -0
  391. package/dist/cjs/components/TextEditorV2/ui/Placeholder.js.map +1 -0
  392. package/dist/cjs/components/TextEditorV2/ui/Select.d.ts +7 -0
  393. package/dist/cjs/components/TextEditorV2/ui/Select.js +12 -0
  394. package/dist/cjs/components/TextEditorV2/ui/Select.js.map +1 -0
  395. package/dist/cjs/components/TextEditorV2/ui/Switch.d.ts +7 -0
  396. package/dist/cjs/components/TextEditorV2/ui/Switch.js +15 -0
  397. package/dist/cjs/components/TextEditorV2/ui/Switch.js.map +1 -0
  398. package/dist/cjs/components/TextEditorV2/ui/TextInput.d.ts +12 -0
  399. package/dist/cjs/components/TextEditorV2/ui/TextInput.js +14 -0
  400. package/dist/cjs/components/TextEditorV2/ui/TextInput.js.map +1 -0
  401. package/dist/cjs/components/TextEditorV2/utils/emoji-list.d.ts +20 -0
  402. package/dist/cjs/components/TextEditorV2/utils/emoji-list.js +16607 -0
  403. package/dist/cjs/components/TextEditorV2/utils/emoji-list.js.map +1 -0
  404. package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.d.ts +1 -0
  405. package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.js +19 -0
  406. package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.js.map +1 -0
  407. package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.d.ts +1 -0
  408. package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.js +35 -0
  409. package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.js.map +1 -0
  410. package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.d.ts +2 -0
  411. package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.js +21 -0
  412. package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.js.map +1 -0
  413. package/dist/cjs/components/TextEditorV2/utils/guard.d.ts +1 -0
  414. package/dist/cjs/components/TextEditorV2/utils/guard.js +7 -0
  415. package/dist/cjs/components/TextEditorV2/utils/guard.js.map +1 -0
  416. package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.d.ts +0 -0
  417. package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.js +2 -0
  418. package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.js.map +1 -0
  419. package/dist/cjs/components/TextEditorV2/utils/joinClasses.d.ts +1 -0
  420. package/dist/cjs/components/TextEditorV2/utils/joinClasses.js +11 -0
  421. package/dist/cjs/components/TextEditorV2/utils/joinClasses.js.map +1 -0
  422. package/dist/cjs/components/TextEditorV2/utils/point.d.ts +14 -0
  423. package/dist/cjs/components/TextEditorV2/utils/point.js +51 -0
  424. package/dist/cjs/components/TextEditorV2/utils/point.js.map +1 -0
  425. package/dist/cjs/components/TextEditorV2/utils/rect.d.ts +38 -0
  426. package/dist/cjs/components/TextEditorV2/utils/rect.js +125 -0
  427. package/dist/cjs/components/TextEditorV2/utils/rect.js.map +1 -0
  428. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.d.ts +1 -0
  429. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.js +33 -0
  430. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.js.map +1 -0
  431. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
  432. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js +31 -0
  433. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  434. package/dist/cjs/components/TextEditorV2/utils/swipe.d.ts +4 -0
  435. package/dist/cjs/components/TextEditorV2/utils/swipe.js +97 -0
  436. package/dist/cjs/components/TextEditorV2/utils/swipe.js.map +1 -0
  437. package/dist/cjs/components/TextEditorV2/utils/url.d.ts +2 -0
  438. package/dist/cjs/components/TextEditorV2/utils/url.js +26 -0
  439. package/dist/cjs/components/TextEditorV2/utils/url.js.map +1 -0
  440. package/dist/cjs/index.d.ts +2 -1
  441. package/dist/cjs/index.js +5 -3
  442. package/dist/cjs/index.js.map +1 -1
  443. package/dist/esm/components/MainWrapV4/components/notification/component/HtmlIFrame.d.ts +2 -2
  444. package/dist/esm/components/MainWrapV4/components/notification/component/HtmlIFrame.js +11 -10
  445. package/dist/esm/components/MainWrapV4/components/notification/component/HtmlIFrame.js.map +1 -1
  446. package/dist/esm/components/MainWrapV4/components/notification/component/NotiDropdown.js +8 -7
  447. package/dist/esm/components/MainWrapV4/components/notification/component/NotiDropdown.js.map +1 -1
  448. package/dist/esm/components/MainWrapV4/components/notification/component/NotiHeader.js +1 -1
  449. package/dist/esm/components/MainWrapV4/components/notification/component/NotiHeader.js.map +1 -1
  450. package/dist/esm/components/MainWrapV4/components/notification/component/NotiListPane.d.ts +3 -4
  451. package/dist/esm/components/MainWrapV4/components/notification/component/NotiListPane.js +18 -8
  452. package/dist/esm/components/MainWrapV4/components/notification/component/NotiListPane.js.map +1 -1
  453. package/dist/esm/components/MainWrapV4/components/notification/component/NotiPreviewPane.d.ts +1 -4
  454. package/dist/esm/components/MainWrapV4/components/notification/component/NotiPreviewPane.js +4 -40
  455. package/dist/esm/components/MainWrapV4/components/notification/component/NotiPreviewPane.js.map +1 -1
  456. package/dist/esm/components/MainWrapV4/components/notification/hook/useNotificationData.d.ts +1 -1
  457. package/dist/esm/components/MainWrapV4/components/notification/hook/useNotificationData.js +1 -1
  458. package/dist/esm/components/MainWrapV4/components/notification/hook/useNotificationData.js.map +1 -1
  459. package/dist/esm/components/MainWrapV4/components/notification/index.js +8 -2
  460. package/dist/esm/components/MainWrapV4/components/notification/index.js.map +1 -1
  461. package/dist/esm/components/MainWrapV4/types/notification.d.ts +0 -1
  462. package/dist/esm/components/TextEditorV2/commenting/index.d.ts +41 -0
  463. package/dist/esm/components/TextEditorV2/commenting/index.js +334 -0
  464. package/dist/esm/components/TextEditorV2/commenting/index.js.map +1 -0
  465. package/dist/esm/components/TextEditorV2/constants.d.ts +1 -0
  466. package/dist/esm/components/TextEditorV2/constants.js +2 -0
  467. package/dist/esm/components/TextEditorV2/constants.js.map +1 -0
  468. package/dist/esm/components/TextEditorV2/context/SettingsContext.d.ts +12 -0
  469. package/dist/esm/components/TextEditorV2/context/SettingsContext.js +54 -0
  470. package/dist/esm/components/TextEditorV2/context/SettingsContext.js.map +1 -0
  471. package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.d.ts +10 -0
  472. package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.js +44 -0
  473. package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.js.map +1 -0
  474. package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.d.ts +11 -0
  475. package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.js +11 -0
  476. package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.js.map +1 -0
  477. package/dist/esm/components/TextEditorV2/editor.d.ts +10 -0
  478. package/dist/esm/components/TextEditorV2/editor.js +200 -0
  479. package/dist/esm/components/TextEditorV2/editor.js.map +1 -0
  480. package/dist/esm/components/TextEditorV2/hooks/useModal.d.ts +5 -0
  481. package/dist/esm/components/TextEditorV2/hooks/useModal.js +28 -0
  482. package/dist/esm/components/TextEditorV2/hooks/useModal.js.map +1 -0
  483. package/dist/esm/components/TextEditorV2/hooks/useReport.d.ts +1 -0
  484. package/dist/esm/components/TextEditorV2/hooks/useReport.js +42 -0
  485. package/dist/esm/components/TextEditorV2/hooks/useReport.js.map +1 -0
  486. package/dist/esm/components/TextEditorV2/lib/Settings.d.ts +2 -0
  487. package/dist/esm/components/TextEditorV2/lib/Settings.js +48 -0
  488. package/dist/esm/components/TextEditorV2/lib/Settings.js.map +1 -0
  489. package/dist/esm/components/TextEditorV2/lib/appSettings.d.ts +19 -0
  490. package/dist/esm/components/TextEditorV2/lib/appSettings.js +18 -0
  491. package/dist/esm/components/TextEditorV2/lib/appSettings.js.map +1 -0
  492. package/dist/esm/components/TextEditorV2/lib/collaboration.d.ts +3 -0
  493. package/dist/esm/components/TextEditorV2/lib/collaboration.js +23 -0
  494. package/dist/esm/components/TextEditorV2/lib/collaboration.js.map +1 -0
  495. package/dist/esm/components/TextEditorV2/lib/setupEnv.d.ts +1 -0
  496. package/dist/esm/components/TextEditorV2/lib/setupEnv.js +21 -0
  497. package/dist/esm/components/TextEditorV2/lib/setupEnv.js.map +1 -0
  498. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.d.ts +25 -0
  499. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.js +54 -0
  500. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.js.map +1 -0
  501. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.d.ts +18 -0
  502. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.js +57 -0
  503. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.js.map +1 -0
  504. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.d.ts +9 -0
  505. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.js +68 -0
  506. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.js.map +1 -0
  507. package/dist/esm/components/TextEditorV2/nodes/EquationNode.d.ts +26 -0
  508. package/dist/esm/components/TextEditorV2/nodes/EquationNode.js +121 -0
  509. package/dist/esm/components/TextEditorV2/nodes/EquationNode.js.map +1 -0
  510. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.d.ts +6 -0
  511. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js +113 -0
  512. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js.map +1 -0
  513. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.d.ts +50 -0
  514. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js +56 -0
  515. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js.map +1 -0
  516. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.d.ts +44 -0
  517. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js +137 -0
  518. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js.map +1 -0
  519. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.d.ts +22 -0
  520. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.js +98 -0
  521. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.js.map +1 -0
  522. package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.d.ts +12 -0
  523. package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.js +101 -0
  524. package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.js.map +1 -0
  525. package/dist/esm/components/TextEditorV2/nodes/FigmaNode.d.ts +19 -0
  526. package/dist/esm/components/TextEditorV2/nodes/FigmaNode.js +58 -0
  527. package/dist/esm/components/TextEditorV2/nodes/FigmaNode.js.map +1 -0
  528. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.d.ts +14 -0
  529. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.js +207 -0
  530. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.js.map +1 -0
  531. package/dist/esm/components/TextEditorV2/nodes/ImageNode.d.ts +56 -0
  532. package/dist/esm/components/TextEditorV2/nodes/ImageNode.js +131 -0
  533. package/dist/esm/components/TextEditorV2/nodes/ImageNode.js.map +1 -0
  534. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.d.ts +18 -0
  535. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.js +189 -0
  536. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.js.map +1 -0
  537. package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.d.ts +54 -0
  538. package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.js +137 -0
  539. package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.js.map +1 -0
  540. package/dist/esm/components/TextEditorV2/nodes/KeywordNode.d.ts +15 -0
  541. package/dist/esm/components/TextEditorV2/nodes/KeywordNode.js +49 -0
  542. package/dist/esm/components/TextEditorV2/nodes/KeywordNode.js.map +1 -0
  543. package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.d.ts +21 -0
  544. package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.js +58 -0
  545. package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.js.map +1 -0
  546. package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.d.ts +15 -0
  547. package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.js +46 -0
  548. package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.js.map +1 -0
  549. package/dist/esm/components/TextEditorV2/nodes/MentionNode.d.ts +20 -0
  550. package/dist/esm/components/TextEditorV2/nodes/MentionNode.js +84 -0
  551. package/dist/esm/components/TextEditorV2/nodes/MentionNode.js.map +1 -0
  552. package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.d.ts +17 -0
  553. package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.js +108 -0
  554. package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.js.map +1 -0
  555. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.d.ts +3 -0
  556. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.js +66 -0
  557. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.js.map +1 -0
  558. package/dist/esm/components/TextEditorV2/nodes/PollComponent.d.ts +8 -0
  559. package/dist/esm/components/TextEditorV2/nodes/PollComponent.js +109 -0
  560. package/dist/esm/components/TextEditorV2/nodes/PollComponent.js.map +1 -0
  561. package/dist/esm/components/TextEditorV2/nodes/PollNode.d.ts +33 -0
  562. package/dist/esm/components/TextEditorV2/nodes/PollNode.js +143 -0
  563. package/dist/esm/components/TextEditorV2/nodes/PollNode.js.map +1 -0
  564. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.d.ts +9 -0
  565. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.js +163 -0
  566. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.js.map +1 -0
  567. package/dist/esm/components/TextEditorV2/nodes/StickyNode.d.ts +37 -0
  568. package/dist/esm/components/TextEditorV2/nodes/StickyNode.js +89 -0
  569. package/dist/esm/components/TextEditorV2/nodes/StickyNode.js.map +1 -0
  570. package/dist/esm/components/TextEditorV2/nodes/TableNode.d.ts +54 -0
  571. package/dist/esm/components/TextEditorV2/nodes/TableNode.js +188 -0
  572. package/dist/esm/components/TextEditorV2/nodes/TableNode.js.map +1 -0
  573. package/dist/esm/components/TextEditorV2/nodes/TweetNode.d.ts +28 -0
  574. package/dist/esm/components/TextEditorV2/nodes/TweetNode.js +151 -0
  575. package/dist/esm/components/TextEditorV2/nodes/TweetNode.js.map +1 -0
  576. package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.d.ts +28 -0
  577. package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.js +98 -0
  578. package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.js.map +1 -0
  579. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.d.ts +2 -0
  580. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.js +180 -0
  581. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.js.map +1 -0
  582. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.d.ts +19 -0
  583. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js +174 -0
  584. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js.map +1 -0
  585. package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.d.ts +2 -0
  586. package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.js +12 -0
  587. package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.js.map +1 -0
  588. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.d.ts +2 -0
  589. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.js +2461 -0
  590. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.js.map +1 -0
  591. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +8 -0
  592. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +52 -0
  593. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -0
  594. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +10 -0
  595. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +155 -0
  596. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -0
  597. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.d.ts +4 -0
  598. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js +108 -0
  599. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js.map +1 -0
  600. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
  601. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js +18 -0
  602. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js.map +1 -0
  603. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.d.ts +1 -0
  604. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js +9 -0
  605. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js.map +1 -0
  606. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.d.ts +23 -0
  607. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +82 -0
  608. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +1 -0
  609. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.d.ts +17 -0
  610. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js +64 -0
  611. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +1 -0
  612. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.d.ts +18 -0
  613. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +89 -0
  614. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +1 -0
  615. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.d.ts +3 -0
  616. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.js +144 -0
  617. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.js.map +1 -0
  618. package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.d.ts +2 -0
  619. package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js +261 -0
  620. package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js.map +1 -0
  621. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.d.ts +11 -0
  622. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.js +167 -0
  623. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.js.map +1 -0
  624. package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.d.ts +2 -0
  625. package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.js +6 -0
  626. package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.js.map +1 -0
  627. package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.d.ts +1 -0
  628. package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.js +41 -0
  629. package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.js.map +1 -0
  630. package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.d.ts +4 -0
  631. package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js +284 -0
  632. package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js.map +1 -0
  633. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.d.ts +2 -0
  634. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js +94 -0
  635. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js.map +1 -0
  636. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.d.ts +1 -0
  637. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.js +61 -0
  638. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.js.map +1 -0
  639. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.d.ts +14 -0
  640. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.js +36 -0
  641. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.js.map +1 -0
  642. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.d.ts +3 -0
  643. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js +24 -0
  644. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js.map +1 -0
  645. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.d.ts +3 -0
  646. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.js +21 -0
  647. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.js.map +1 -0
  648. package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.d.ts +7 -0
  649. package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js +196 -0
  650. package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js.map +1 -0
  651. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +4 -0
  652. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js +225 -0
  653. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -0
  654. package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.d.ts +22 -0
  655. package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.js +181 -0
  656. package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.js.map +1 -0
  657. package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.d.ts +17 -0
  658. package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.js +187 -0
  659. package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.js.map +1 -0
  660. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.d.ts +1 -0
  661. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.js +30 -0
  662. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.js.map +1 -0
  663. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +6 -0
  664. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js +30 -0
  665. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js.map +1 -0
  666. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.d.ts +7 -0
  667. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js +85 -0
  668. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js.map +1 -0
  669. package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.d.ts +2 -0
  670. package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.js +7 -0
  671. package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.js.map +1 -0
  672. package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.d.ts +5 -0
  673. package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js +41 -0
  674. package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js.map +1 -0
  675. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.d.ts +2 -0
  676. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js +7 -0
  677. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js.map +1 -0
  678. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.d.ts +8 -0
  679. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.js +239 -0
  680. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.js.map +1 -0
  681. package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.d.ts +3 -0
  682. package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.js +38 -0
  683. package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.js.map +1 -0
  684. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.d.ts +2 -0
  685. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.js +557 -0
  686. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.js.map +1 -0
  687. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.d.ts +3 -0
  688. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.js +27 -0
  689. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.js.map +1 -0
  690. package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.d.ts +2 -0
  691. package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.js +33 -0
  692. package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.js.map +1 -0
  693. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.d.ts +8 -0
  694. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.js +40 -0
  695. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.js.map +1 -0
  696. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.d.ts +1 -0
  697. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.js +13 -0
  698. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.js.map +1 -0
  699. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.d.ts +1 -0
  700. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.js +35 -0
  701. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.js.map +1 -0
  702. package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.d.ts +5 -0
  703. package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js +483 -0
  704. package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js.map +1 -0
  705. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.d.ts +2 -0
  706. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.js +249 -0
  707. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.js.map +1 -0
  708. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.d.ts +2 -0
  709. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js +113 -0
  710. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js.map +1 -0
  711. package/dist/esm/components/TextEditorV2/plugins/TablePlugin.d.ts +32 -0
  712. package/dist/esm/components/TextEditorV2/plugins/TablePlugin.js +78 -0
  713. package/dist/esm/components/TextEditorV2/plugins/TablePlugin.js.map +1 -0
  714. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.d.ts +6 -0
  715. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js +14 -0
  716. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js.map +1 -0
  717. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.d.ts +6 -0
  718. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js +24 -0
  719. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js.map +1 -0
  720. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.d.ts +6 -0
  721. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js +61 -0
  722. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js.map +1 -0
  723. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.d.ts +6 -0
  724. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js +67 -0
  725. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js.map +1 -0
  726. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.d.ts +6 -0
  727. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js +14 -0
  728. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js.map +1 -0
  729. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.d.ts +5 -0
  730. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js +42 -0
  731. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js.map +1 -0
  732. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.d.ts +6 -0
  733. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js +24 -0
  734. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js.map +1 -0
  735. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.d.ts +6 -0
  736. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js +48 -0
  737. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js.map +1 -0
  738. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.d.ts +6 -0
  739. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js +24 -0
  740. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js.map +1 -0
  741. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.d.ts +6 -0
  742. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js +15 -0
  743. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js.map +1 -0
  744. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.d.ts +6 -0
  745. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js +37 -0
  746. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js.map +1 -0
  747. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.d.ts +11 -0
  748. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js +159 -0
  749. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js.map +1 -0
  750. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.d.ts +4 -0
  751. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.js +159 -0
  752. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.js.map +1 -0
  753. package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.d.ts +2 -0
  754. package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.js +8 -0
  755. package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.js.map +1 -0
  756. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.d.ts +3 -0
  757. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.js +21 -0
  758. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.js.map +1 -0
  759. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.d.ts +3 -0
  760. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.js +21 -0
  761. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.js.map +1 -0
  762. package/dist/esm/components/TextEditorV2/shared/canUseDOM.d.ts +1 -0
  763. package/dist/esm/components/TextEditorV2/shared/canUseDOM.js +4 -0
  764. package/dist/esm/components/TextEditorV2/shared/canUseDOM.js.map +1 -0
  765. package/dist/esm/components/TextEditorV2/shared/caretFromPoint.d.ts +4 -0
  766. package/dist/esm/components/TextEditorV2/shared/caretFromPoint.js +29 -0
  767. package/dist/esm/components/TextEditorV2/shared/caretFromPoint.js.map +1 -0
  768. package/dist/esm/components/TextEditorV2/shared/environment.d.ts +16 -0
  769. package/dist/esm/components/TextEditorV2/shared/environment.js +14 -0
  770. package/dist/esm/components/TextEditorV2/shared/environment.js.map +1 -0
  771. package/dist/esm/components/TextEditorV2/shared/invariant.d.ts +1 -0
  772. package/dist/esm/components/TextEditorV2/shared/invariant.js +12 -0
  773. package/dist/esm/components/TextEditorV2/shared/invariant.js.map +1 -0
  774. package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.d.ts +5 -0
  775. package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.js +25 -0
  776. package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.js.map +1 -0
  777. package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.d.ts +3 -0
  778. package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.js +5 -0
  779. package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.js.map +1 -0
  780. package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.d.ts +1 -0
  781. package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.js +13 -0
  782. package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.js.map +1 -0
  783. package/dist/esm/components/TextEditorV2/style.d.ts +2 -0
  784. package/dist/esm/components/TextEditorV2/style.js +5 -0
  785. package/dist/esm/components/TextEditorV2/style.js.map +1 -0
  786. package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.d.ts +3 -0
  787. package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.js +5 -0
  788. package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.js.map +1 -0
  789. package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.d.ts +3 -0
  790. package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.js +105 -0
  791. package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.js.map +1 -0
  792. package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.d.ts +3 -0
  793. package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.js +5 -0
  794. package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.js.map +1 -0
  795. package/dist/esm/components/TextEditorV2/ui/Button.d.ts +11 -0
  796. package/dist/esm/components/TextEditorV2/ui/Button.js +8 -0
  797. package/dist/esm/components/TextEditorV2/ui/Button.js.map +1 -0
  798. package/dist/esm/components/TextEditorV2/ui/ColorPicker.d.ts +12 -0
  799. package/dist/esm/components/TextEditorV2/ui/ColorPicker.js +212 -0
  800. package/dist/esm/components/TextEditorV2/ui/ColorPicker.js.map +1 -0
  801. package/dist/esm/components/TextEditorV2/ui/ContentEditable.d.ts +4 -0
  802. package/dist/esm/components/TextEditorV2/ui/ContentEditable.js +7 -0
  803. package/dist/esm/components/TextEditorV2/ui/ContentEditable.js.map +1 -0
  804. package/dist/esm/components/TextEditorV2/ui/Dialog.d.ts +9 -0
  805. package/dist/esm/components/TextEditorV2/ui/Dialog.js +10 -0
  806. package/dist/esm/components/TextEditorV2/ui/Dialog.js.map +1 -0
  807. package/dist/esm/components/TextEditorV2/ui/DropDown.d.ts +17 -0
  808. package/dist/esm/components/TextEditorV2/ui/DropDown.js +129 -0
  809. package/dist/esm/components/TextEditorV2/ui/DropDown.js.map +1 -0
  810. package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.d.ts +21 -0
  811. package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.js +17 -0
  812. package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.js.map +1 -0
  813. package/dist/esm/components/TextEditorV2/ui/EquationEditor.d.ts +8 -0
  814. package/dist/esm/components/TextEditorV2/ui/EquationEditor.js +17 -0
  815. package/dist/esm/components/TextEditorV2/ui/EquationEditor.js.map +1 -0
  816. package/dist/esm/components/TextEditorV2/ui/FileInput.d.ts +9 -0
  817. package/dist/esm/components/TextEditorV2/ui/FileInput.js +8 -0
  818. package/dist/esm/components/TextEditorV2/ui/FileInput.js.map +1 -0
  819. package/dist/esm/components/TextEditorV2/ui/ImageResizer.d.ts +11 -0
  820. package/dist/esm/components/TextEditorV2/ui/ImageResizer.js +174 -0
  821. package/dist/esm/components/TextEditorV2/ui/ImageResizer.js.map +1 -0
  822. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.d.ts +7 -0
  823. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.js +35 -0
  824. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.js.map +1 -0
  825. package/dist/esm/components/TextEditorV2/ui/KatexRenderer.d.ts +6 -0
  826. package/dist/esm/components/TextEditorV2/ui/KatexRenderer.js +29 -0
  827. package/dist/esm/components/TextEditorV2/ui/KatexRenderer.js.map +1 -0
  828. package/dist/esm/components/TextEditorV2/ui/Modal.d.ts +8 -0
  829. package/dist/esm/components/TextEditorV2/ui/Modal.js +50 -0
  830. package/dist/esm/components/TextEditorV2/ui/Modal.js.map +1 -0
  831. package/dist/esm/components/TextEditorV2/ui/Placeholder.d.ts +6 -0
  832. package/dist/esm/components/TextEditorV2/ui/Placeholder.js +6 -0
  833. package/dist/esm/components/TextEditorV2/ui/Placeholder.js.map +1 -0
  834. package/dist/esm/components/TextEditorV2/ui/Select.d.ts +7 -0
  835. package/dist/esm/components/TextEditorV2/ui/Select.js +9 -0
  836. package/dist/esm/components/TextEditorV2/ui/Select.js.map +1 -0
  837. package/dist/esm/components/TextEditorV2/ui/Switch.d.ts +7 -0
  838. package/dist/esm/components/TextEditorV2/ui/Switch.js +11 -0
  839. package/dist/esm/components/TextEditorV2/ui/Switch.js.map +1 -0
  840. package/dist/esm/components/TextEditorV2/ui/TextInput.d.ts +12 -0
  841. package/dist/esm/components/TextEditorV2/ui/TextInput.js +10 -0
  842. package/dist/esm/components/TextEditorV2/ui/TextInput.js.map +1 -0
  843. package/dist/esm/components/TextEditorV2/utils/emoji-list.d.ts +20 -0
  844. package/dist/esm/components/TextEditorV2/utils/emoji-list.js +16605 -0
  845. package/dist/esm/components/TextEditorV2/utils/emoji-list.js.map +1 -0
  846. package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.d.ts +1 -0
  847. package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.js +16 -0
  848. package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.js.map +1 -0
  849. package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.d.ts +1 -0
  850. package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.js +32 -0
  851. package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.js.map +1 -0
  852. package/dist/esm/components/TextEditorV2/utils/getSelectedNode.d.ts +2 -0
  853. package/dist/esm/components/TextEditorV2/utils/getSelectedNode.js +18 -0
  854. package/dist/esm/components/TextEditorV2/utils/getSelectedNode.js.map +1 -0
  855. package/dist/esm/components/TextEditorV2/utils/guard.d.ts +1 -0
  856. package/dist/esm/components/TextEditorV2/utils/guard.js +4 -0
  857. package/dist/esm/components/TextEditorV2/utils/guard.js.map +1 -0
  858. package/dist/esm/components/TextEditorV2/utils/isMobileWidth.d.ts +0 -0
  859. package/dist/esm/components/TextEditorV2/utils/isMobileWidth.js +2 -0
  860. package/dist/esm/components/TextEditorV2/utils/isMobileWidth.js.map +1 -0
  861. package/dist/esm/components/TextEditorV2/utils/joinClasses.d.ts +1 -0
  862. package/dist/esm/components/TextEditorV2/utils/joinClasses.js +8 -0
  863. package/dist/esm/components/TextEditorV2/utils/joinClasses.js.map +1 -0
  864. package/dist/esm/components/TextEditorV2/utils/point.d.ts +14 -0
  865. package/dist/esm/components/TextEditorV2/utils/point.js +47 -0
  866. package/dist/esm/components/TextEditorV2/utils/point.js.map +1 -0
  867. package/dist/esm/components/TextEditorV2/utils/rect.d.ts +38 -0
  868. package/dist/esm/components/TextEditorV2/utils/rect.js +122 -0
  869. package/dist/esm/components/TextEditorV2/utils/rect.js.map +1 -0
  870. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.d.ts +1 -0
  871. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.js +30 -0
  872. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.js.map +1 -0
  873. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
  874. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js +28 -0
  875. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  876. package/dist/esm/components/TextEditorV2/utils/swipe.d.ts +4 -0
  877. package/dist/esm/components/TextEditorV2/utils/swipe.js +91 -0
  878. package/dist/esm/components/TextEditorV2/utils/swipe.js.map +1 -0
  879. package/dist/esm/components/TextEditorV2/utils/url.d.ts +2 -0
  880. package/dist/esm/components/TextEditorV2/utils/url.js +22 -0
  881. package/dist/esm/components/TextEditorV2/utils/url.js.map +1 -0
  882. package/dist/esm/index.d.ts +2 -1
  883. package/dist/esm/index.js +2 -1
  884. package/dist/esm/index.js.map +1 -1
  885. package/package.json +11 -2
@@ -0,0 +1,163 @@
1
+ import { useCollaborationContext } from '@lexical/react/LexicalCollaborationContext';
2
+ import { CollaborationPlugin } from '@lexical/react/LexicalCollaborationPlugin';
3
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
4
+ import LexicalErrorBoundary from '@lexical/react/LexicalErrorBoundary';
5
+ import { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin';
6
+ import { LexicalNestedComposer } from '@lexical/react/LexicalNestedComposer';
7
+ import { PlainTextPlugin } from '@lexical/react/LexicalPlainTextPlugin';
8
+ import { $getNodeByKey } from 'lexical';
9
+ import * as React from 'react';
10
+ import { useEffect, useRef } from 'react';
11
+ import { useSharedHistoryContext } from '../context/SharedHistoryContext';
12
+ import { createWebsocketProvider } from '../lib/collaboration';
13
+ import useLayoutEffect from '../shared/useLayoutEffect';
14
+ import StickyEditorTheme from '../themes/StickyEditorTheme';
15
+ import ContentEditable from '../ui/ContentEditable';
16
+ import Placeholder from '../ui/Placeholder';
17
+ import { $isStickyNode } from './StickyNode';
18
+ function positionSticky(stickyElem, positioning) {
19
+ var style = stickyElem.style;
20
+ var rootElementRect = positioning.rootElementRect;
21
+ var rectLeft = rootElementRect !== null ? rootElementRect.left : 0;
22
+ var rectTop = rootElementRect !== null ? rootElementRect.top : 0;
23
+ style.top = rectTop + positioning.y + 'px';
24
+ style.left = rectLeft + positioning.x + 'px';
25
+ }
26
+ export default function StickyComponent(_a) {
27
+ var caption = _a.caption, color = _a.color, nodeKey = _a.nodeKey, x = _a.x, y = _a.y;
28
+ var editor = useLexicalComposerContext()[0];
29
+ var stickyContainerRef = useRef(null);
30
+ var positioningRef = useRef({
31
+ isDragging: false,
32
+ offsetX: 0,
33
+ offsetY: 0,
34
+ rootElementRect: null,
35
+ x: 0,
36
+ y: 0,
37
+ });
38
+ var isCollabActive = useCollaborationContext().isCollabActive;
39
+ useEffect(function () {
40
+ var position = positioningRef.current;
41
+ position.x = x;
42
+ position.y = y;
43
+ var stickyContainer = stickyContainerRef.current;
44
+ if (stickyContainer !== null) {
45
+ positionSticky(stickyContainer, position);
46
+ }
47
+ }, [x, y]);
48
+ useLayoutEffect(function () {
49
+ var position = positioningRef.current;
50
+ var resizeObserver = new ResizeObserver(function (entries) {
51
+ for (var i = 0; i < entries.length; i++) {
52
+ var entry = entries[i];
53
+ var target = entry.target;
54
+ position.rootElementRect = target.getBoundingClientRect();
55
+ var stickyContainer = stickyContainerRef.current;
56
+ if (stickyContainer !== null) {
57
+ positionSticky(stickyContainer, position);
58
+ }
59
+ }
60
+ });
61
+ var removeRootListener = editor.registerRootListener(function (nextRootElem, prevRootElem) {
62
+ if (prevRootElem !== null) {
63
+ resizeObserver.unobserve(prevRootElem);
64
+ }
65
+ if (nextRootElem !== null) {
66
+ resizeObserver.observe(nextRootElem);
67
+ }
68
+ });
69
+ var handleWindowResize = function () {
70
+ var rootElement = editor.getRootElement();
71
+ var stickyContainer = stickyContainerRef.current;
72
+ if (rootElement !== null && stickyContainer !== null) {
73
+ position.rootElementRect = rootElement.getBoundingClientRect();
74
+ positionSticky(stickyContainer, position);
75
+ }
76
+ };
77
+ window.addEventListener('resize', handleWindowResize);
78
+ return function () {
79
+ window.removeEventListener('resize', handleWindowResize);
80
+ removeRootListener();
81
+ };
82
+ }, [editor]);
83
+ useEffect(function () {
84
+ var stickyContainer = stickyContainerRef.current;
85
+ if (stickyContainer !== null) {
86
+ // Delay adding transition so we don't trigger the
87
+ // transition on load of the sticky.
88
+ setTimeout(function () {
89
+ stickyContainer.style.setProperty('transition', 'top 0.3s ease 0s, left 0.3s ease 0s');
90
+ }, 500);
91
+ }
92
+ }, []);
93
+ var handlePointerMove = function (event) {
94
+ var stickyContainer = stickyContainerRef.current;
95
+ var positioning = positioningRef.current;
96
+ var rootElementRect = positioning.rootElementRect;
97
+ if (stickyContainer !== null && positioning.isDragging && rootElementRect !== null) {
98
+ positioning.x = event.pageX - positioning.offsetX - rootElementRect.left;
99
+ positioning.y = event.pageY - positioning.offsetY - rootElementRect.top;
100
+ positionSticky(stickyContainer, positioning);
101
+ }
102
+ };
103
+ var handlePointerUp = function () {
104
+ var stickyContainer = stickyContainerRef.current;
105
+ var positioning = positioningRef.current;
106
+ if (stickyContainer !== null) {
107
+ positioning.isDragging = false;
108
+ stickyContainer.classList.remove('dragging');
109
+ editor.update(function () {
110
+ var node = $getNodeByKey(nodeKey);
111
+ if ($isStickyNode(node)) {
112
+ node.setPosition(positioning.x, positioning.y);
113
+ }
114
+ });
115
+ }
116
+ document.removeEventListener('pointermove', handlePointerMove);
117
+ document.removeEventListener('pointerup', handlePointerUp);
118
+ };
119
+ var handleDelete = function () {
120
+ editor.update(function () {
121
+ var node = $getNodeByKey(nodeKey);
122
+ if ($isStickyNode(node)) {
123
+ node.remove();
124
+ }
125
+ });
126
+ };
127
+ var handleColorChange = function () {
128
+ editor.update(function () {
129
+ var node = $getNodeByKey(nodeKey);
130
+ if ($isStickyNode(node)) {
131
+ node.toggleColor();
132
+ }
133
+ });
134
+ };
135
+ var historyState = useSharedHistoryContext().historyState;
136
+ return (React.createElement("div", { ref: stickyContainerRef, className: 'sticky-note-container' },
137
+ React.createElement("div", { className: "sticky-note ".concat(color), onPointerDown: function (event) {
138
+ var stickyContainer = stickyContainerRef.current;
139
+ if (stickyContainer == null || event.button === 2 || event.target !== stickyContainer.firstChild) {
140
+ // Right click or click on editor should not work
141
+ return;
142
+ }
143
+ var stickContainer = stickyContainer;
144
+ var positioning = positioningRef.current;
145
+ if (stickContainer !== null) {
146
+ var _a = stickContainer.getBoundingClientRect(), left = _a.left, top_1 = _a.top;
147
+ positioning.offsetX = event.clientX - left;
148
+ positioning.offsetY = event.clientY - top_1;
149
+ positioning.isDragging = true;
150
+ stickContainer.classList.add('dragging');
151
+ document.addEventListener('pointermove', handlePointerMove);
152
+ document.addEventListener('pointerup', handlePointerUp);
153
+ event.preventDefault();
154
+ }
155
+ } },
156
+ React.createElement("button", { "aria-label": 'Delete sticky note', className: 'delete', onClick: handleDelete, title: 'Delete', type: 'button' }, "X"),
157
+ React.createElement("button", { "aria-label": 'Change sticky note color', className: 'color', onClick: handleColorChange, title: 'Color', type: 'button' },
158
+ React.createElement("i", { className: 'bucket' })),
159
+ React.createElement(LexicalNestedComposer, { initialEditor: caption, initialTheme: StickyEditorTheme },
160
+ isCollabActive ? (React.createElement(CollaborationPlugin, { id: caption.getKey(), providerFactory: createWebsocketProvider, shouldBootstrap: true })) : (React.createElement(HistoryPlugin, { externalHistoryState: historyState })),
161
+ React.createElement(PlainTextPlugin, { contentEditable: React.createElement(ContentEditable, { className: 'StickyNode__contentEditable' }), ErrorBoundary: LexicalErrorBoundary, placeholder: React.createElement(Placeholder, { className: 'StickyNode__placeholder' }, "What's up?") })))));
162
+ }
163
+ //# sourceMappingURL=StickyComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StickyComponent.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/nodes/StickyComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAA;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAA;AACjF,OAAO,oBAAoB,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAA;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA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UAAU,CAAC,CAAA;oBACxC,QAAQ,CAAC,gBAAgB,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAA;oBAC3D,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;oBACvD,KAAK,CAAC,cAAc,EAAE,CAAA;gBACxB,CAAC;YACH,CAAC;YAED,8CAAmB,oBAAoB,EAAC,SAAS,EAAC,QAAQ,EAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,QAErG;YACT,8CACa,0BAA0B,EACrC,SAAS,EAAC,OAAO,EACjB,OAAO,EAAE,iBAAiB,EAC1B,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,QAAQ;gBAEb,2BAAG,SAAS,EAAC,QAAQ,GAAG,CACjB;YACT,oBAAC,qBAAqB,IAAC,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB;gBAC3E,cAAc,CAAC,CAAC,CAAC,CAChB,oBAAC,mBAAmB,IAAC,EAAE,EAAE,OAAO,CAAC,MAAM,EAAE,EAAE,eAAe,EAAE,uBAAuB,EAAE,eAAe,SAAG,CACxG,CAAC,CAAC,CAAC,CACF,oBAAC,aAAa,IAAC,oBAAoB,EAAE,YAAY,GAAI,CACtD;gBACD,oBAAC,eAAe,IACd,eAAe,EAAE,oBAAC,eAAe,IAAC,SAAS,EAAC,6BAA6B,GAAG,EAC5E,aAAa,EAAE,oBAAoB,EACnC,WAAW,EAAE,oBAAC,WAAW,IAAC,SAAS,EAAC,yBAAyB,iBAA8B,GAC3F,CACoB,CACpB,CACF,CACP,CAAA;AACH,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedEditor, SerializedLexicalNode, Spread } from 'lexical';
9
+ import { DecoratorNode } from 'lexical';
10
+ import * as React from 'react';
11
+ type StickyNoteColor = 'pink' | 'yellow';
12
+ export type SerializedStickyNode = Spread<{
13
+ xOffset: number;
14
+ yOffset: number;
15
+ color: StickyNoteColor;
16
+ caption: SerializedEditor;
17
+ }, SerializedLexicalNode>;
18
+ export declare class StickyNode extends DecoratorNode<React.JSX.Element> {
19
+ __x: number;
20
+ __y: number;
21
+ __color: StickyNoteColor;
22
+ __caption: LexicalEditor;
23
+ static getType(): string;
24
+ static clone(node: StickyNode): StickyNode;
25
+ static importJSON(serializedNode: SerializedStickyNode): StickyNode;
26
+ constructor(x: number, y: number, color: 'pink' | 'yellow', caption?: LexicalEditor, key?: NodeKey);
27
+ exportJSON(): SerializedStickyNode;
28
+ createDOM(config: EditorConfig): HTMLElement;
29
+ updateDOM(): false;
30
+ setPosition(x: number, y: number): void;
31
+ toggleColor(): void;
32
+ decorate(editor: LexicalEditor, config: EditorConfig): React.JSX.Element;
33
+ isIsolated(): true;
34
+ }
35
+ export declare function $isStickyNode(node: LexicalNode | null | undefined): node is StickyNode;
36
+ export declare function $createStickyNode(xOffset: number, yOffset: number): StickyNode;
37
+ export {};
@@ -0,0 +1,89 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ *
8
+ */
9
+ import { __extends } from "tslib";
10
+ import { $setSelection, createEditor, DecoratorNode } from 'lexical';
11
+ import * as React from 'react';
12
+ import { Suspense } from 'react';
13
+ import { createPortal } from 'react-dom';
14
+ var StickyComponent = React.lazy(
15
+ // @ts-ignore
16
+ function () { return import('./StickyComponent'); });
17
+ var StickyNode = /** @class */ (function (_super) {
18
+ __extends(StickyNode, _super);
19
+ function StickyNode(x, y, color, caption, key) {
20
+ var _this = _super.call(this, key) || this;
21
+ _this.__x = x;
22
+ _this.__y = y;
23
+ _this.__caption = caption || createEditor();
24
+ _this.__color = color;
25
+ return _this;
26
+ }
27
+ StickyNode.getType = function () {
28
+ return 'sticky';
29
+ };
30
+ StickyNode.clone = function (node) {
31
+ return new StickyNode(node.__x, node.__y, node.__color, node.__caption, node.__key);
32
+ };
33
+ StickyNode.importJSON = function (serializedNode) {
34
+ var stickyNode = new StickyNode(serializedNode.xOffset, serializedNode.yOffset, serializedNode.color);
35
+ var caption = serializedNode.caption;
36
+ var nestedEditor = stickyNode.__caption;
37
+ var editorState = nestedEditor.parseEditorState(caption.editorState);
38
+ if (!editorState.isEmpty()) {
39
+ nestedEditor.setEditorState(editorState);
40
+ }
41
+ return stickyNode;
42
+ };
43
+ StickyNode.prototype.exportJSON = function () {
44
+ return {
45
+ caption: this.__caption.toJSON(),
46
+ color: this.__color,
47
+ type: 'sticky',
48
+ version: 1,
49
+ xOffset: this.__x,
50
+ yOffset: this.__y,
51
+ };
52
+ };
53
+ StickyNode.prototype.createDOM = function (config) {
54
+ console.log(config);
55
+ var div = document.createElement('div');
56
+ div.style.display = 'contents';
57
+ return div;
58
+ };
59
+ StickyNode.prototype.updateDOM = function () {
60
+ return false;
61
+ };
62
+ StickyNode.prototype.setPosition = function (x, y) {
63
+ var writable = this.getWritable();
64
+ writable.__x = x;
65
+ writable.__y = y;
66
+ $setSelection(null);
67
+ };
68
+ StickyNode.prototype.toggleColor = function () {
69
+ var writable = this.getWritable();
70
+ writable.__color = writable.__color === 'pink' ? 'yellow' : 'pink';
71
+ };
72
+ StickyNode.prototype.decorate = function (editor, config) {
73
+ console.log(editor, config);
74
+ return createPortal(React.createElement(Suspense, { fallback: null },
75
+ React.createElement(StickyComponent, { caption: this.__caption, color: this.__color, nodeKey: this.getKey(), x: this.__x, y: this.__y })), document.body);
76
+ };
77
+ StickyNode.prototype.isIsolated = function () {
78
+ return true;
79
+ };
80
+ return StickyNode;
81
+ }(DecoratorNode));
82
+ export { StickyNode };
83
+ export function $isStickyNode(node) {
84
+ return node instanceof StickyNode;
85
+ }
86
+ export function $createStickyNode(xOffset, yOffset) {
87
+ return new StickyNode(xOffset, yOffset, 'yellow');
88
+ }
89
+ //# sourceMappingURL=StickyNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StickyNode.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/nodes/StickyNode.tsx"],"names":[],"mappings":"AAAA,sDAAsD;AACtD;;;;;;GAMG;;AAWH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,IAAM,eAAe,GAAG,KAAK,CAAC,IAAI;AAChC,aAAa;AACb,cAAM,OAAA,MAAM,CAAC,mBAAmB,CAAC,EAA3B,CAA2B,CAClC,CAAA;AAcD;IAAgC,8BAAgC;IAwB9D,oBAAY,CAAS,EAAE,CAAS,EAAE,KAAwB,EAAE,OAAuB,EAAE,GAAa;QAChG,YAAA,MAAK,YAAC,GAAG,CAAC,SAAA;QACV,KAAI,CAAC,GAAG,GAAG,CAAC,CAAA;QACZ,KAAI,CAAC,GAAG,GAAG,CAAC,CAAA;QACZ,KAAI,CAAC,SAAS,GAAG,OAAO,IAAI,YAAY,EAAE,CAAA;QAC1C,KAAI,CAAC,OAAO,GAAG,KAAK,CAAA;;IACtB,CAAC;IAxBa,kBAAO,GAArB;QACE,OAAO,QAAQ,CAAA;IACjB,CAAC;IAEa,gBAAK,GAAnB,UAAoB,IAAgB;QAClC,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;IACrF,CAAC;IACa,qBAAU,GAAxB,UAAyB,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,CAAA;IACrB,CAAC;IAEM,gCAAW,GAAlB;QACE,IAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;QACnC,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAA;IACpE,CAAC;IAEM,6BAAQ,GAAf,UAAgB,MAAqB,EAAE,MAAoB;QACzD,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC3B,OAAO,YAAY,CACjB,oBAAC,QAAQ,IAAC,QAAQ,EAAE,IAAI;YACtB,oBAAC,eAAe,IACd,OAAO,EAAE,IAAI,CAAC,SAAS,EACvB,KAAK,EAAE,IAAI,CAAC,OAAO,EACnB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,EACtB,CAAC,EAAE,IAAI,CAAC,GAAG,EACX,CAAC,EAAE,IAAI,CAAC,GAAG,GACX,CACO,EACX,QAAQ,CAAC,IAAI,CACd,CAAA;IACH,CAAC;IAEM,+BAAU,GAAjB;QACE,OAAO,IAAI,CAAA;IACb,CAAC;IACH,iBAAC;AAAD,CAAC,AArFD,CAAgC,aAAa,GAqF5C;;AAED,MAAM,UAAU,aAAa,CAAC,IAAoC;IAChE,OAAO,IAAI,YAAY,UAAU,CAAA;AACnC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAe,EAAE,OAAe;IAChE,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAA;AACnD,CAAC"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { DOMConversionMap, DOMExportOutput, EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from 'lexical';
9
+ import { DecoratorNode } from 'lexical';
10
+ import * as React from 'react';
11
+ export type Cell = {
12
+ colSpan: number;
13
+ json: string;
14
+ type: 'normal' | 'header';
15
+ id: string;
16
+ width: number | null;
17
+ };
18
+ export type Row = {
19
+ cells: Array<Cell>;
20
+ height: null | number;
21
+ id: string;
22
+ };
23
+ export type Rows = Array<Row>;
24
+ export declare const cellHTMLCache: Map<string, string>;
25
+ export declare const cellTextContentCache: Map<string, string>;
26
+ export declare function createUID(): string;
27
+ export declare function createRow(): Row;
28
+ export type SerializedTableNode = Spread<{
29
+ rows: Rows;
30
+ }, SerializedLexicalNode>;
31
+ export declare function extractRowsFromHTML(tableElem: HTMLTableElement): Rows;
32
+ export declare function exportTableCellsToHTML(rows: Rows, rect?: {
33
+ startX: number;
34
+ endX: number;
35
+ startY: number;
36
+ endY: number;
37
+ }): HTMLElement;
38
+ export declare class TableNode extends DecoratorNode<React.JSX.Element> {
39
+ __rows: Rows;
40
+ static getType(): string;
41
+ static clone(node: TableNode): TableNode;
42
+ static importJSON(serializedNode: SerializedTableNode): TableNode;
43
+ exportJSON(): SerializedTableNode;
44
+ static importDOM(): DOMConversionMap | null;
45
+ exportDOM(): DOMExportOutput;
46
+ constructor(rows?: Rows, key?: NodeKey);
47
+ createDOM(): HTMLElement;
48
+ updateDOM(): false;
49
+ decorate(_: LexicalEditor, config: EditorConfig): React.JSX.Element;
50
+ isInline(): false;
51
+ }
52
+ export declare function $isTableNode(node: LexicalNode | null | undefined): node is TableNode;
53
+ export declare function $createTableNode(rows: Rows): TableNode;
54
+ export declare function $createTableNodeWithDimensions(rowCount: number, columnCount: number, includeHeaders?: boolean): TableNode;
@@ -0,0 +1,188 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { __extends } from "tslib";
9
+ import { DecoratorNode } from 'lexical';
10
+ import * as React from 'react';
11
+ import { Suspense } from 'react';
12
+ export var cellHTMLCache = new Map();
13
+ export var cellTextContentCache = new Map();
14
+ var emptyEditorJSON = '{"root":{"children":[{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1}],"direction":null,"format":"","indent":0,"type":"root","version":1}}';
15
+ var plainTextEditorJSON = function (text) {
16
+ return text === ''
17
+ ? emptyEditorJSON
18
+ : "{\"root\":{\"children\":[{\"children\":[{\"detail\":0,\"format\":0,\"mode\":\"normal\",\"style\":\"\",\"text\":".concat(text, ",\"type\":\"text\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"paragraph\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"root\",\"version\":1}}");
19
+ };
20
+ var TableComponent = React.lazy(
21
+ // @ts-ignore
22
+ function () { return import('./TableComponent'); });
23
+ export function createUID() {
24
+ return Math.random()
25
+ .toString(36)
26
+ .replace(/[^a-z]+/g, '')
27
+ .substr(0, 5);
28
+ }
29
+ function createCell(type) {
30
+ return {
31
+ colSpan: 1,
32
+ id: createUID(),
33
+ json: emptyEditorJSON,
34
+ type: type,
35
+ width: null,
36
+ };
37
+ }
38
+ export function createRow() {
39
+ return {
40
+ cells: [],
41
+ height: null,
42
+ id: createUID(),
43
+ };
44
+ }
45
+ export function extractRowsFromHTML(tableElem) {
46
+ var rowElems = tableElem.querySelectorAll('tr');
47
+ var rows = [];
48
+ for (var y = 0; y < rowElems.length; y++) {
49
+ var rowElem = rowElems[y];
50
+ var cellElems = rowElem.querySelectorAll('td,th');
51
+ if (!cellElems || cellElems.length === 0) {
52
+ continue;
53
+ }
54
+ var cells = [];
55
+ for (var x = 0; x < cellElems.length; x++) {
56
+ var cellElem = cellElems[x];
57
+ var isHeader = cellElem.nodeName === 'TH';
58
+ var cell = createCell(isHeader ? 'header' : 'normal');
59
+ cell.json = plainTextEditorJSON(JSON.stringify(cellElem.innerText.replace(/\n/g, ' ')));
60
+ cells.push(cell);
61
+ }
62
+ var row = createRow();
63
+ row.cells = cells;
64
+ rows.push(row);
65
+ }
66
+ return rows;
67
+ }
68
+ function convertTableElement(domNode) {
69
+ var rowElems = domNode.querySelectorAll('tr');
70
+ if (!rowElems || rowElems.length === 0) {
71
+ return null;
72
+ }
73
+ var rows = [];
74
+ for (var y = 0; y < rowElems.length; y++) {
75
+ var rowElem = rowElems[y];
76
+ var cellElems = rowElem.querySelectorAll('td,th');
77
+ if (!cellElems || cellElems.length === 0) {
78
+ continue;
79
+ }
80
+ var cells = [];
81
+ for (var x = 0; x < cellElems.length; x++) {
82
+ var cellElem = cellElems[x];
83
+ var isHeader = cellElem.nodeName === 'TH';
84
+ var cell = createCell(isHeader ? 'header' : 'normal');
85
+ cell.json = plainTextEditorJSON(JSON.stringify(cellElem.innerText.replace(/\n/g, ' ')));
86
+ cells.push(cell);
87
+ }
88
+ var row = createRow();
89
+ row.cells = cells;
90
+ rows.push(row);
91
+ }
92
+ return { node: $createTableNode(rows) };
93
+ }
94
+ export function exportTableCellsToHTML(rows, rect) {
95
+ var table = document.createElement('table');
96
+ var colGroup = document.createElement('colgroup');
97
+ var tBody = document.createElement('tbody');
98
+ var firstRow = rows[0];
99
+ for (var x = rect != null ? rect.startX : 0; x < (rect != null ? rect.endX + 1 : firstRow.cells.length); x++) {
100
+ var col = document.createElement('col');
101
+ colGroup.append(col);
102
+ }
103
+ for (var y = rect != null ? rect.startY : 0; y < (rect != null ? rect.endY + 1 : rows.length); y++) {
104
+ var row = rows[y];
105
+ var cells = row.cells;
106
+ var rowElem = document.createElement('tr');
107
+ for (var x = rect != null ? rect.startX : 0; x < (rect != null ? rect.endX + 1 : cells.length); x++) {
108
+ var cell = cells[x];
109
+ var cellElem = document.createElement(cell.type === 'header' ? 'th' : 'td');
110
+ cellElem.innerHTML = cellHTMLCache.get(cell.json) || '';
111
+ rowElem.appendChild(cellElem);
112
+ }
113
+ tBody.appendChild(rowElem);
114
+ }
115
+ table.appendChild(colGroup);
116
+ table.appendChild(tBody);
117
+ return table;
118
+ }
119
+ var TableNode = /** @class */ (function (_super) {
120
+ __extends(TableNode, _super);
121
+ function TableNode(rows, key) {
122
+ var _this = _super.call(this, key) || this;
123
+ _this.__rows = rows || [];
124
+ return _this;
125
+ }
126
+ TableNode.getType = function () {
127
+ return 'tablesheet';
128
+ };
129
+ TableNode.clone = function (node) {
130
+ return new TableNode(Array.from(node.__rows), node.__key);
131
+ };
132
+ TableNode.importJSON = function (serializedNode) {
133
+ return $createTableNode(serializedNode.rows);
134
+ };
135
+ TableNode.prototype.exportJSON = function () {
136
+ return {
137
+ rows: this.__rows,
138
+ type: 'tablesheet',
139
+ version: 1,
140
+ };
141
+ };
142
+ TableNode.importDOM = function () {
143
+ return {
144
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
145
+ table: function (_node) { return ({
146
+ conversion: convertTableElement,
147
+ priority: 0,
148
+ }); },
149
+ };
150
+ };
151
+ TableNode.prototype.exportDOM = function () {
152
+ return { element: exportTableCellsToHTML(this.__rows) };
153
+ };
154
+ TableNode.prototype.createDOM = function () {
155
+ return document.createElement('div');
156
+ };
157
+ TableNode.prototype.updateDOM = function () {
158
+ return false;
159
+ };
160
+ TableNode.prototype.decorate = function (_, config) {
161
+ return (React.createElement(Suspense, null,
162
+ React.createElement(TableComponent, { nodeKey: this.__key, rows: this.__rows, theme: config.theme })));
163
+ };
164
+ TableNode.prototype.isInline = function () {
165
+ return false;
166
+ };
167
+ return TableNode;
168
+ }(DecoratorNode));
169
+ export { TableNode };
170
+ export function $isTableNode(node) {
171
+ return node instanceof TableNode;
172
+ }
173
+ export function $createTableNode(rows) {
174
+ return new TableNode(rows);
175
+ }
176
+ export function $createTableNodeWithDimensions(rowCount, columnCount, includeHeaders) {
177
+ if (includeHeaders === void 0) { includeHeaders = true; }
178
+ var rows = [];
179
+ for (var y = 0; y < columnCount; y++) {
180
+ var row = createRow();
181
+ rows.push(row);
182
+ for (var x = 0; x < rowCount; x++) {
183
+ row.cells.push(createCell(includeHeaders === true && (y === 0 || x === 0) ? 'header' : 'normal'));
184
+ }
185
+ }
186
+ return new TableNode(rows);
187
+ }
188
+ //# sourceMappingURL=TableNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableNode.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/nodes/TableNode.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAaH,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAkBhC,MAAM,CAAC,IAAM,aAAa,GAAwB,IAAI,GAAG,EAAE,CAAA;AAC3D,MAAM,CAAC,IAAM,oBAAoB,GAAwB,IAAI,GAAG,EAAE,CAAA;AAElE,IAAM,eAAe,GACnB,kLAAkL,CAAA;AAEpL,IAAM,mBAAmB,GAAG,UAAC,IAAY;IACvC,OAAA,IAAI,KAAK,EAAE;QACT,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,yHAA8F,IAAI,sNAA6K;AAFnR,CAEmR,CAAA;AAErR,IAAM,cAAc,GAAG,KAAK,CAAC,IAAI;AAC/B,aAAa;AACb,cAAM,OAAA,MAAM,CAAC,kBAAkB,CAAC,EAA1B,CAA0B,CACjC,CAAA;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,IAAI,CAAC,MAAM,EAAE;SACjB,QAAQ,CAAC,EAAE,CAAC;SACZ,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;SACvB,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,CAAC;AAED,SAAS,UAAU,CAAC,IAAyB;IAC3C,OAAO;QACL,OAAO,EAAE,CAAC;QACV,EAAE,EAAE,SAAS,EAAE;QACf,IAAI,EAAE,eAAe;QACrB,IAAI,MAAA;QACJ,KAAK,EAAE,IAAI;KACZ,CAAA;AACH,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO;QACL,KAAK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AAA;AAClC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAU;IACzC,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,CAAA;AAC5B,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,QAAgB,EAChB,WAAmB,EACnB,cAAqB;IAArB,+BAAA,EAAA,qBAAqB;IAErB,IAAM,IAAI,GAAS,EAAE,CAAA;IACrB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,IAAM,GAAG,GAAQ,SAAS,EAAE,CAAA;QAC5B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACd,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC;YAClC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,KAAK,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAA;QACnG,CAAC;IACH,CAAC;IACD,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,CAAA;AAC5B,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { DecoratorBlockNode, SerializedDecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode';
9
+ import type { DOMConversionMap, DOMExportOutput, EditorConfig, ElementFormatType, LexicalEditor, LexicalNode, NodeKey, Spread } from 'lexical';
10
+ import * as React from 'react';
11
+ export type SerializedTweetNode = Spread<{
12
+ id: string;
13
+ }, SerializedDecoratorBlockNode>;
14
+ export declare class TweetNode extends DecoratorBlockNode {
15
+ __id: string;
16
+ static getType(): string;
17
+ static clone(node: TweetNode): TweetNode;
18
+ static importJSON(serializedNode: SerializedTweetNode): TweetNode;
19
+ exportJSON(): SerializedTweetNode;
20
+ static importDOM(): DOMConversionMap<HTMLDivElement> | null;
21
+ exportDOM(): DOMExportOutput;
22
+ constructor(id: string, format?: ElementFormatType, key?: NodeKey);
23
+ getId(): string;
24
+ getTextContent(_includeInert?: boolean | undefined, _includeDirectionless?: false | undefined): string;
25
+ decorate(editor: LexicalEditor, config: EditorConfig): React.JSX.Element;
26
+ }
27
+ export declare function $createTweetNode(tweetID: string): TweetNode;
28
+ export declare function $isTweetNode(node: TweetNode | LexicalNode | null | undefined): node is TweetNode;