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,94 @@
1
+ import { __extends, __spreadArray } from "tslib";
2
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
3
+ import { LexicalTypeaheadMenuPlugin, MenuOption, useBasicTypeaheadTriggerMatch, } from '@lexical/react/LexicalTypeaheadMenuPlugin';
4
+ import { $createTextNode, $getSelection, $isRangeSelection } from 'lexical';
5
+ import * as React from 'react';
6
+ import { useCallback, useEffect, useMemo, useState } from 'react';
7
+ import * as ReactDOM from 'react-dom';
8
+ var EmojiOption = /** @class */ (function (_super) {
9
+ __extends(EmojiOption, _super);
10
+ function EmojiOption(title, emoji, options) {
11
+ var _this = _super.call(this, title) || this;
12
+ _this.title = title;
13
+ _this.emoji = emoji;
14
+ _this.keywords = options.keywords || [];
15
+ return _this;
16
+ }
17
+ return EmojiOption;
18
+ }(MenuOption));
19
+ function EmojiMenuItem(_a) {
20
+ var index = _a.index, isSelected = _a.isSelected, onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, option = _a.option;
21
+ var className = 'item';
22
+ if (isSelected) {
23
+ className += ' selected';
24
+ }
25
+ return (React.createElement("li", { key: option.key, ref: option.setRefElement, "aria-selected": isSelected, className: className, id: 'typeahead-item-' + index, onClick: onClick, onMouseEnter: onMouseEnter, role: 'option', tabIndex: -1 },
26
+ React.createElement("span", { className: 'text' },
27
+ option.emoji,
28
+ " ",
29
+ option.title)));
30
+ }
31
+ var MAX_EMOJI_SUGGESTION_COUNT = 10;
32
+ export default function EmojiPickerPlugin() {
33
+ var editor = useLexicalComposerContext()[0];
34
+ var _a = useState(null), queryString = _a[0], setQueryString = _a[1];
35
+ var _b = useState([]), emojis = _b[0], setEmojis = _b[1];
36
+ useEffect(function () {
37
+ // @ts-ignore
38
+ import('../../utils/emoji-list.js').then(function (file) { return setEmojis(file.default); });
39
+ }, []);
40
+ var emojiOptions = useMemo(function () {
41
+ return emojis != null
42
+ ? emojis.map(function (_a) {
43
+ var aliases = _a.aliases, emoji = _a.emoji, tags = _a.tags;
44
+ return new EmojiOption(aliases[0], emoji, {
45
+ keywords: __spreadArray(__spreadArray([], aliases, true), tags, true),
46
+ });
47
+ })
48
+ : [];
49
+ }, [emojis]);
50
+ var checkForTriggerMatch = useBasicTypeaheadTriggerMatch(':', {
51
+ minLength: 0,
52
+ });
53
+ var options = useMemo(function () {
54
+ return emojiOptions
55
+ .filter(function (option) {
56
+ return queryString != null
57
+ ? new RegExp(queryString, 'gi').exec(option.title) || option.keywords != null
58
+ ? option.keywords.some(function (keyword) { return new RegExp(queryString, 'gi').exec(keyword); })
59
+ : false
60
+ : emojiOptions;
61
+ })
62
+ .slice(0, MAX_EMOJI_SUGGESTION_COUNT);
63
+ }, [emojiOptions, queryString]);
64
+ var onSelectOption = useCallback(function (selectedOption, nodeToRemove, closeMenu) {
65
+ editor.update(function () {
66
+ var selection = $getSelection();
67
+ if (!$isRangeSelection(selection) || selectedOption == null) {
68
+ return;
69
+ }
70
+ if (nodeToRemove) {
71
+ nodeToRemove.remove();
72
+ }
73
+ selection.insertNodes([$createTextNode(selectedOption.emoji)]);
74
+ closeMenu();
75
+ });
76
+ }, [editor]);
77
+ return (React.createElement(LexicalTypeaheadMenuPlugin, { menuRenderFn: function (anchorElementRef, _a) {
78
+ var selectOptionAndCleanUp = _a.selectOptionAndCleanUp, selectedIndex = _a.selectedIndex, setHighlightedIndex = _a.setHighlightedIndex;
79
+ if (anchorElementRef.current == null || options.length === 0) {
80
+ return null;
81
+ }
82
+ return anchorElementRef.current && options.length > 0
83
+ ? ReactDOM.createPortal(React.createElement("div", { className: 'typeahead-popover emoji-menu' },
84
+ React.createElement("ul", null, options.map(function (option, index) { return (React.createElement("div", { key: option.key },
85
+ React.createElement(EmojiMenuItem, { index: index, isSelected: selectedIndex === index, onClick: function () {
86
+ setHighlightedIndex(index);
87
+ selectOptionAndCleanUp(option);
88
+ }, onMouseEnter: function () {
89
+ setHighlightedIndex(index);
90
+ }, option: option }))); }))), anchorElementRef.current)
91
+ : null;
92
+ }, onQueryChange: setQueryString, onSelectOption: onSelectOption, options: options, triggerFn: checkForTriggerMatch }));
93
+ }
94
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/EmojiPickerPlugin/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAA;AACjF,OAAO,EACL,0BAA0B,EAC1B,UAAU,EACV,6BAA6B,GAC9B,MAAM,2CAA2C,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAY,MAAM,SAAS,CAAA;AACrF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACjE,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAA;AAErC;IAA0B,+BAAU;IAKlC,qBACE,KAAa,EACb,KAAa,EACb,OAEC;QAED,YAAA,MAAK,YAAC,KAAK,CAAC,SAAA;QACZ,KAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,KAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,KAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAA;;IACxC,CAAC;IACH,kBAAC;AAAD,CAAC,AAjBD,CAA0B,UAAU,GAiBnC;AACD,SAAS,aAAa,CAAC,EAYtB;QAXC,KAAK,WAAA,EACL,UAAU,gBAAA,EACV,OAAO,aAAA,EACP,YAAY,kBAAA,EACZ,MAAM,YAAA;IAQN,IAAI,SAAS,GAA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React.JSX.Element | null;
@@ -0,0 +1,61 @@
1
+ /* eslint-disable @typescript-eslint/no-extra-semi */
2
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
3
+ import { TextNode } from 'lexical';
4
+ import { useEffect } from 'react';
5
+ import { $createEmojiNode, EmojiNode } from '../../nodes/EmojiNode';
6
+ var emojis = new Map([
7
+ [':)', ['emoji happysmile', '🙂']],
8
+ [':D', ['emoji veryhappysmile', '😀']],
9
+ [':(', ['emoji unhappysmile', '🙁']],
10
+ ['<3', ['emoji heart', '❤']],
11
+ ['🙂', ['emoji happysmile', '🙂']],
12
+ ['😀', ['emoji veryhappysmile', '😀']],
13
+ ['🙁', ['emoji unhappysmile', '🙁']],
14
+ ['❤', ['emoji heart', '❤']],
15
+ ]);
16
+ function findAndTransformEmoji(node) {
17
+ var _a;
18
+ var text = node.getTextContent();
19
+ for (var i = 0; i < text.length; i++) {
20
+ var emojiData = emojis.get(text[i]) || emojis.get(text.slice(i, i + 2));
21
+ if (emojiData !== undefined) {
22
+ var emojiStyle = emojiData[0], emojiText = emojiData[1];
23
+ var targetNode = void 0;
24
+ if (i === 0) {
25
+ ;
26
+ targetNode = node.splitText(i + 2)[0];
27
+ }
28
+ else {
29
+ ;
30
+ _a = node.splitText(i, i + 2), targetNode = _a[1];
31
+ }
32
+ var emojiNode = $createEmojiNode(emojiStyle, emojiText);
33
+ targetNode.replace(emojiNode);
34
+ return emojiNode;
35
+ }
36
+ }
37
+ return null;
38
+ }
39
+ function textNodeTransform(node) {
40
+ var targetNode = node;
41
+ while (targetNode !== null) {
42
+ if (!targetNode.isSimpleText()) {
43
+ return;
44
+ }
45
+ targetNode = findAndTransformEmoji(targetNode);
46
+ }
47
+ }
48
+ function useEmojis(editor) {
49
+ useEffect(function () {
50
+ if (!editor.hasNodes([EmojiNode])) {
51
+ throw new Error('EmojisPlugin: EmojiNode not registered on editor');
52
+ }
53
+ return editor.registerNodeTransform(TextNode, textNodeTransform);
54
+ }, [editor]);
55
+ }
56
+ export default function EmojisPlugin() {
57
+ var editor = useLexicalComposerContext()[0];
58
+ useEmojis(editor);
59
+ return null;
60
+ }
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/EmojisPlugin/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAA;AAEjF,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEnE,IAAM,MAAM,GAAkC,IAAI,GAAG,CAAC;IACpD,CAAC,IAAI,EAAE,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC,IAAI,EAAE,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC,IAAI,EAAE,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC,IAAI,EAAE,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;IAC5B,CAAC,IAAI,EAAE,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC,IAAI,EAAE,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC,IAAI,EAAE,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC,GAAG,EAAE,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;CAC5B,CAAC,CAAA;AAEF,SAAS,qBAAqB,CAAC,IAAc;;IAC3C,IAAM,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,CAAA;IAElC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,IAAM,SAAS,GAAG,M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E,CAAC;QAED,OAAO,MAAM,CAAC,qBAAqB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAA;IAClE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;AACd,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,YAAY;IAC3B,IAAA,MAAM,GAAI,yBAAyB,EAAE,GAA/B,CAA+B;IAC5C,SAAS,CAAC,MAAM,CAAC,CAAA;IACjB,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -0,0 +1,14 @@
1
+ import 'katex/dist/katex.css';
2
+ import { LexicalCommand, LexicalEditor } from 'lexical';
3
+ import * as React from 'react';
4
+ type CommandPayload = {
5
+ equation: string;
6
+ inline: boolean;
7
+ };
8
+ export declare const INSERT_EQUATION_COMMAND: LexicalCommand<CommandPayload>;
9
+ export declare function InsertEquationDialog({ activeEditor, onClose, }: {
10
+ activeEditor: LexicalEditor;
11
+ onClose(): void;
12
+ }): React.JSX.Element;
13
+ export default function EquationsPlugin(): React.JSX.Element | null;
14
+ export {};
@@ -0,0 +1,36 @@
1
+ import 'katex/dist/katex.css';
2
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
3
+ import { $wrapNodeInElement } from '@lexical/utils';
4
+ import { $createParagraphNode, $insertNodes, $isRootOrShadowRoot, COMMAND_PRIORITY_EDITOR, createCommand, } from 'lexical';
5
+ import { useCallback, useEffect } from 'react';
6
+ import * as React from 'react';
7
+ import { $createEquationNode, EquationNode } from '../../nodes/EquationNode';
8
+ import KatexEquationAlterer from '../../ui/KatexEquationAlterer';
9
+ export var INSERT_EQUATION_COMMAND = createCommand('INSERT_EQUATION_COMMAND');
10
+ export function InsertEquationDialog(_a) {
11
+ var activeEditor = _a.activeEditor, onClose = _a.onClose;
12
+ var onEquationConfirm = useCallback(function (equation, inline) {
13
+ activeEditor.dispatchCommand(INSERT_EQUATION_COMMAND, { equation: equation, inline: inline });
14
+ onClose();
15
+ }, [activeEditor, onClose]);
16
+ return React.createElement(KatexEquationAlterer, { onConfirm: onEquationConfirm });
17
+ }
18
+ export default function EquationsPlugin() {
19
+ var editor = useLexicalComposerContext()[0];
20
+ useEffect(function () {
21
+ if (!editor.hasNodes([EquationNode])) {
22
+ throw new Error('EquationsPlugins: EquationsNode not registered on editor');
23
+ }
24
+ return editor.registerCommand(INSERT_EQUATION_COMMAND, function (payload) {
25
+ var equation = payload.equation, inline = payload.inline;
26
+ var equationNode = $createEquationNode(equation, inline);
27
+ $insertNodes([equationNode]);
28
+ if ($isRootOrShadowRoot(equationNode.getParentOrThrow())) {
29
+ $wrapNodeInElement(equationNode, $createParagraphNode).selectEnd();
30
+ }
31
+ return true;
32
+ }, COMMAND_PRIORITY_EDITOR);
33
+ }, [editor]);
34
+ return null;
35
+ }
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/EquationsPlugin/index.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAA;AAE7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAA;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,GAGd,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5E,OAAO,oBAAoB,MAAM,+BAA+B,CAAA;AAOhE,MAAM,CAAC,IAAM,uBAAuB,GAAmC,aAAa,CAAC,yBAAyB,CAAC,CAAA;AAE/G,MAAM,UAAU,oBAAoB,CAAC,EAMpC;QALC,YAAY,kBAAA,EACZ,OAAO,aAAA;IAKP,IAAM,iBAAiB,GAAG,WAAW,CACnC,UAAC,QAAgB,EAAE,MAAe;QAChC,YAAY,CAAC,eAAe,CAAC,uBAAuB,EAAE,EAAE,QAAQ,UAAA,EAAE,MAAM,QAAA,EAAE,CAAC,CAAA;QAC3E,OAAO,EAAE,CAAA;IACX,CAAC,EACD,CAAC,YAAY,EAAE,OAAO,CAAC,CACxB,CAAA;IAED,OAAO,oBAAC,oBAAoB,IAAC,SAAS,EAAE,iBAAiB,GAAI,CAAA;AAC/D,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,eAAe;IAC9B,IAAA,MAAM,GAAI,yBAAyB,EAAE,GAA/B,CAA+B;IAE5C,SAAS,CAAC;QACR,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;YACrC,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAA;QAC7E,CAAC;QAED,OAAO,MAAM,CAAC,eAAe,CAC3B,uBAAuB,EACvB,UAAC,OAAO;YACE,IAAA,QAAQ,GAAa,OAAO,SAApB,EAAE,MAAM,GAAK,OAAO,OAAZ,CAAY;YACpC,IAAM,YAAY,GAAG,mBAAmB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;YAE1D,YAAY,CAAC,CAAC,YAAY,CAAC,CAAC,CAAA;YAC5B,IAAI,mBAAmB,CAAC,YAAY,CAAC,gBAAgB,EAAE,CAAC,EAAE,CAAC;gBACzD,kBAAkB,CAAC,YAAY,EAAE,oBAAoB,CAAC,CAAC,SAAS,EAAE,CAAA;YACpE,CAAC;YAED,OAAO,IAAI,CAAA;QACb,CAAC,EACD,uBAAuB,CACxB,CAAA;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;IAEZ,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LexicalCommand } from 'lexical';
2
+ export declare const INSERT_EXCALIDRAW_COMMAND: LexicalCommand<void>;
3
+ export default function ExcalidrawPlugin(): null;
@@ -0,0 +1,24 @@
1
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
2
+ import { $wrapNodeInElement } from '@lexical/utils';
3
+ import { $createParagraphNode, $insertNodes, $isRootOrShadowRoot, COMMAND_PRIORITY_EDITOR, createCommand, } from 'lexical';
4
+ import { useEffect } from 'react';
5
+ import { $createExcalidrawNode, ExcalidrawNode } from '../../nodes/ExcalidrawNode';
6
+ export var INSERT_EXCALIDRAW_COMMAND = createCommand('INSERT_EXCALIDRAW_COMMAND');
7
+ export default function ExcalidrawPlugin() {
8
+ var editor = useLexicalComposerContext()[0];
9
+ useEffect(function () {
10
+ if (!editor.hasNodes([ExcalidrawNode])) {
11
+ throw new Error('ExcalidrawPlugin: ExcalidrawNode not registered on editor');
12
+ }
13
+ return editor.registerCommand(INSERT_EXCALIDRAW_COMMAND, function () {
14
+ var excalidrawNode = $createExcalidrawNode();
15
+ $insertNodes([excalidrawNode]);
16
+ if ($isRootOrShadowRoot(excalidrawNode.getParentOrThrow())) {
17
+ $wrapNodeInElement(excalidrawNode, $createParagraphNode).selectEnd();
18
+ }
19
+ return true;
20
+ }, COMMAND_PRIORITY_EDITOR);
21
+ }, [editor]);
22
+ return null;
23
+ }
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/ExcalidrawPlugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAA;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,GAEd,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAElF,MAAM,CAAC,IAAM,yBAAyB,GAAyB,aAAa,CAAC,2BAA2B,CAAC,CAAA;AAEzG,MAAM,CAAC,OAAO,UAAU,gBAAgB;IAC/B,IAAA,MAAM,GAAI,yBAAyB,EAAE,GAA/B,CAA+B;IAC5C,SAAS,CAAC;QACR,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC;YACvC,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAA;QAC9E,CAAC;QAED,OAAO,MAAM,CAAC,eAAe,CAC3B,yBAAyB,EACzB;YACE,IAAM,cAAc,GAAG,qBAAqB,EAAE,CAAA;YAE9C,YAAY,CAAC,CAAC,cAAc,CAAC,CAAC,CAAA;YAC9B,IAAI,mBAAmB,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC,EAAE,CAAC;gBAC3D,kBAAkB,CAAC,cAAc,EAAE,oBAAoB,CAAC,CAAC,SAAS,EAAE,CAAA;YACtE,CAAC;YAED,OAAO,IAAI,CAAA;QACb,CAAC,EACD,uBAAuB,CACxB,CAAA;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;IAEZ,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LexicalCommand } from 'lexical';
2
+ export declare const INSERT_FIGMA_COMMAND: LexicalCommand<string>;
3
+ export default function FigmaPlugin(): React.JSX.Element | null;
@@ -0,0 +1,21 @@
1
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
2
+ import { $insertNodeToNearestRoot } from '@lexical/utils';
3
+ import { COMMAND_PRIORITY_EDITOR, createCommand } from 'lexical';
4
+ import { useEffect } from 'react';
5
+ import { $createFigmaNode, FigmaNode } from '../../nodes/FigmaNode';
6
+ export var INSERT_FIGMA_COMMAND = createCommand('INSERT_FIGMA_COMMAND');
7
+ export default function FigmaPlugin() {
8
+ var editor = useLexicalComposerContext()[0];
9
+ useEffect(function () {
10
+ if (!editor.hasNodes([FigmaNode])) {
11
+ throw new Error('FigmaPlugin: FigmaNode not registered on editor');
12
+ }
13
+ return editor.registerCommand(INSERT_FIGMA_COMMAND, function (payload) {
14
+ var figmaNode = $createFigmaNode(payload);
15
+ $insertNodeToNearestRoot(figmaNode);
16
+ return true;
17
+ }, COMMAND_PRIORITY_EDITOR);
18
+ }, [editor]);
19
+ return null;
20
+ }
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/FigmaPlugin/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAA;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAkB,MAAM,SAAS,CAAA;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEnE,MAAM,CAAC,IAAM,oBAAoB,GAA2B,aAAa,CAAC,sBAAsB,CAAC,CAAA;AAEjG,MAAM,CAAC,OAAO,UAAU,WAAW;IAC1B,IAAA,MAAM,GAAI,yBAAyB,EAAE,GAA/B,CAA+B;IAE5C,SAAS,CAAC;QACR,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAA;QACpE,CAAC;QAED,OAAO,MAAM,CAAC,eAAe,CAC3B,oBAAoB,EACpB,UAAC,OAAO;YACN,IAAM,SAAS,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAA;YAC3C,wBAAwB,CAAC,SAAS,CAAC,CAAA;YACnC,OAAO,IAAI,CAAA;QACb,CAAC,EACD,uBAAuB,CACxB,CAAA;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;IAEZ,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Dispatch } from 'react';
2
+ import * as React from 'react';
3
+ export default function FloatingLinkEditorPlugin({ anchorElem, isLinkEditMode, setIsLinkEditMode, }: {
4
+ anchorElem?: HTMLElement;
5
+ isLinkEditMode: boolean;
6
+ setIsLinkEditMode: Dispatch<boolean>;
7
+ }): React.JSX.Element | null;
@@ -0,0 +1,196 @@
1
+ import { $isAutoLinkNode, $isLinkNode, TOGGLE_LINK_COMMAND } from '@lexical/link';
2
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
3
+ import { $findMatchingParent, mergeRegister } from '@lexical/utils';
4
+ import { $getSelection, $isRangeSelection, CLICK_COMMAND, COMMAND_PRIORITY_CRITICAL, COMMAND_PRIORITY_HIGH, COMMAND_PRIORITY_LOW, KEY_ESCAPE_COMMAND, SELECTION_CHANGE_COMMAND, } from 'lexical';
5
+ import { useCallback, useEffect, useRef, useState } from 'react';
6
+ import * as React from 'react';
7
+ import { createPortal } from 'react-dom';
8
+ import { getSelectedNode } from '../../utils/getSelectedNode';
9
+ import { setFloatingElemPositionForLinkEditor } from '../../utils/setFloatingElemPositionForLinkEditor';
10
+ import { sanitizeUrl } from '../../utils/url';
11
+ function FloatingLinkEditor(_a) {
12
+ var anchorElem = _a.anchorElem, editor = _a.editor, isLink = _a.isLink, isLinkEditMode = _a.isLinkEditMode, setIsLink = _a.setIsLink, setIsLinkEditMode = _a.setIsLinkEditMode;
13
+ var editorRef = useRef(null);
14
+ var inputRef = useRef(null);
15
+ var _b = useState(''), linkUrl = _b[0], setLinkUrl = _b[1];
16
+ var _c = useState('https://'), editedLinkUrl = _c[0], setEditedLinkUrl = _c[1];
17
+ var _d = useState(null), lastSelection = _d[0], setLastSelection = _d[1];
18
+ var updateLinkEditor = useCallback(function () {
19
+ var _a, _b;
20
+ var selection = $getSelection();
21
+ if ($isRangeSelection(selection)) {
22
+ var node = getSelectedNode(selection);
23
+ var linkParent = $findMatchingParent(node, $isLinkNode);
24
+ if (linkParent) {
25
+ setLinkUrl(linkParent.getURL());
26
+ }
27
+ else if ($isLinkNode(node)) {
28
+ setLinkUrl(node.getURL());
29
+ }
30
+ else {
31
+ setLinkUrl('');
32
+ }
33
+ }
34
+ var editorElem = editorRef.current;
35
+ var nativeSelection = window.getSelection();
36
+ var activeElement = document.activeElement;
37
+ if (editorElem === null) {
38
+ return;
39
+ }
40
+ var rootElement = editor.getRootElement();
41
+ if (selection !== null &&
42
+ nativeSelection !== null &&
43
+ rootElement !== null &&
44
+ rootElement.contains(nativeSelection.anchorNode) &&
45
+ editor.isEditable()) {
46
+ var domRect = (_b = (_a = nativeSelection.focusNode) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
47
+ if (domRect) {
48
+ domRect.y += 40;
49
+ setFloatingElemPositionForLinkEditor(domRect, editorElem, anchorElem);
50
+ }
51
+ setLastSelection(selection);
52
+ }
53
+ else if (!activeElement || activeElement.className !== 'link-input') {
54
+ if (rootElement !== null) {
55
+ setFloatingElemPositionForLinkEditor(null, editorElem, anchorElem);
56
+ }
57
+ setLastSelection(null);
58
+ setIsLinkEditMode(false);
59
+ setLinkUrl('');
60
+ }
61
+ return true;
62
+ }, [anchorElem, editor, setIsLinkEditMode]);
63
+ useEffect(function () {
64
+ var scrollerElem = anchorElem.parentElement;
65
+ var update = function () {
66
+ editor.getEditorState().read(function () {
67
+ updateLinkEditor();
68
+ });
69
+ };
70
+ window.addEventListener('resize', update);
71
+ if (scrollerElem) {
72
+ scrollerElem.addEventListener('scroll', update);
73
+ }
74
+ return function () {
75
+ window.removeEventListener('resize', update);
76
+ if (scrollerElem) {
77
+ scrollerElem.removeEventListener('scroll', update);
78
+ }
79
+ };
80
+ }, [anchorElem.parentElement, editor, updateLinkEditor]);
81
+ useEffect(function () {
82
+ return mergeRegister(editor.registerUpdateListener(function (_a) {
83
+ var editorState = _a.editorState;
84
+ editorState.read(function () {
85
+ updateLinkEditor();
86
+ });
87
+ }), editor.registerCommand(SELECTION_CHANGE_COMMAND, function () {
88
+ updateLinkEditor();
89
+ return true;
90
+ }, COMMAND_PRIORITY_LOW), editor.registerCommand(KEY_ESCAPE_COMMAND, function () {
91
+ if (isLink) {
92
+ setIsLink(false);
93
+ return true;
94
+ }
95
+ return false;
96
+ }, COMMAND_PRIORITY_HIGH));
97
+ }, [editor, updateLinkEditor, setIsLink, isLink]);
98
+ useEffect(function () {
99
+ editor.getEditorState().read(function () {
100
+ updateLinkEditor();
101
+ });
102
+ }, [editor, updateLinkEditor]);
103
+ useEffect(function () {
104
+ if (isLinkEditMode && inputRef.current) {
105
+ inputRef.current.focus();
106
+ }
107
+ }, [isLinkEditMode, isLink]);
108
+ var monitorInputInteraction = function (event) {
109
+ if (event.key === 'Enter') {
110
+ event.preventDefault();
111
+ // eslint-disable-next-line no-use-before-define
112
+ handleLinkSubmission();
113
+ }
114
+ else if (event.key === 'Escape') {
115
+ event.preventDefault();
116
+ setIsLinkEditMode(false);
117
+ }
118
+ };
119
+ var handleLinkSubmission = function () {
120
+ if (lastSelection !== null) {
121
+ if (linkUrl !== '') {
122
+ editor.dispatchCommand(TOGGLE_LINK_COMMAND, sanitizeUrl(editedLinkUrl));
123
+ }
124
+ setEditedLinkUrl('https://');
125
+ setIsLinkEditMode(false);
126
+ }
127
+ };
128
+ return (React.createElement("div", { ref: editorRef, className: 'link-editor' }, !isLink ? null : isLinkEditMode ? (React.createElement(React.Fragment, null,
129
+ React.createElement("input", { ref: inputRef, className: 'link-input', onChange: function (event) {
130
+ setEditedLinkUrl(event.target.value);
131
+ }, onKeyDown: function (event) {
132
+ monitorInputInteraction(event);
133
+ }, value: editedLinkUrl }),
134
+ React.createElement("div", null,
135
+ React.createElement("div", { className: 'link-cancel', onClick: function () {
136
+ setIsLinkEditMode(false);
137
+ }, onMouseDown: function (event) { return event.preventDefault(); }, role: 'button', tabIndex: 0 }),
138
+ React.createElement("div", { className: 'link-confirm', onClick: handleLinkSubmission, onMouseDown: function (event) { return event.preventDefault(); }, role: 'button', tabIndex: 0 })))) : (React.createElement("div", { className: 'link-view' },
139
+ React.createElement("a", { href: sanitizeUrl(linkUrl), rel: 'noopener noreferrer', target: '_blank' }, linkUrl),
140
+ React.createElement("div", { className: 'link-edit', onClick: function () {
141
+ setEditedLinkUrl(linkUrl);
142
+ setIsLinkEditMode(true);
143
+ }, onMouseDown: function (event) { return event.preventDefault(); }, role: 'button', tabIndex: 0 }),
144
+ React.createElement("div", { className: 'link-trash', onClick: function () {
145
+ editor.dispatchCommand(TOGGLE_LINK_COMMAND, null);
146
+ }, onMouseDown: function (event) { return event.preventDefault(); }, role: 'button', tabIndex: 0 })))));
147
+ }
148
+ function useFloatingLinkEditorToolbar(editor, anchorElem, isLinkEditMode, setIsLinkEditMode) {
149
+ var _a = useState(editor), activeEditor = _a[0], setActiveEditor = _a[1];
150
+ var _b = useState(false), isLink = _b[0], setIsLink = _b[1];
151
+ useEffect(function () {
152
+ function updateToolbar() {
153
+ var selection = $getSelection();
154
+ if ($isRangeSelection(selection)) {
155
+ var node = getSelectedNode(selection);
156
+ var linkParent = $findMatchingParent(node, $isLinkNode);
157
+ var autoLinkParent = $findMatchingParent(node, $isAutoLinkNode);
158
+ // We don't want this menu to open for auto links.
159
+ if (linkParent !== null && autoLinkParent === null) {
160
+ setIsLink(true);
161
+ }
162
+ else {
163
+ setIsLink(false);
164
+ }
165
+ }
166
+ }
167
+ return mergeRegister(editor.registerUpdateListener(function (_a) {
168
+ var editorState = _a.editorState;
169
+ editorState.read(function () {
170
+ updateToolbar();
171
+ });
172
+ }), editor.registerCommand(SELECTION_CHANGE_COMMAND, function (_payload, newEditor) {
173
+ updateToolbar();
174
+ setActiveEditor(newEditor);
175
+ return false;
176
+ }, COMMAND_PRIORITY_CRITICAL), editor.registerCommand(CLICK_COMMAND, function (payload) {
177
+ var selection = $getSelection();
178
+ if ($isRangeSelection(selection)) {
179
+ var node = getSelectedNode(selection);
180
+ var linkNode = $findMatchingParent(node, $isLinkNode);
181
+ if ($isLinkNode(linkNode) && (payload.metaKey || payload.ctrlKey)) {
182
+ window.open(linkNode.getURL(), '_blank');
183
+ return true;
184
+ }
185
+ }
186
+ return false;
187
+ }, COMMAND_PRIORITY_LOW));
188
+ }, [editor]);
189
+ return createPortal(React.createElement(FloatingLinkEditor, { anchorElem: anchorElem, editor: activeEditor, isLink: isLink, isLinkEditMode: isLinkEditMode, setIsLink: setIsLink, setIsLinkEditMode: setIsLinkEditMode }), anchorElem);
190
+ }
191
+ export default function FloatingLinkEditorPlugin(_a) {
192
+ var _b = _a.anchorElem, anchorElem = _b === void 0 ? document.body : _b, isLinkEditMode = _a.isLinkEditMode, setIsLinkEditMode = _a.setIsLinkEditMode;
193
+ var editor = useLexicalComposerContext()[0];
194
+ return useFloatingLinkEditorToolbar(editor, anchorElem, isLinkEditMode, setIsLinkEditMode);
195
+ }
196
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAA;AACjF,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EACL,aAAa,EACb,iBAAiB,EAEjB,aAAa,EACb,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAElB,wBAAwB,GACzB,MAAM,SAAS,CAAA;AAChB,OAAO,EAAY,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,YAAY,EA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@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ export default function FloatingTextFormatToolbarPlugin({ anchorElem, }: {
3
+ anchorElem?: HTMLElement;
4
+ }): React.JSX.Element | null;