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,162 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = UploadPdf;
4
+ var tslib_1 = require("tslib");
5
+ var react_1 = tslib_1.__importStar(require("react"));
6
+ var Modal_1 = require("../../../../Modal");
7
+ var FormUpload_1 = require("../../../../UploadFile/FormUpload");
8
+ var ImagesPlugin_1 = require("../../ImagesPlugin");
9
+ function UploadPdf(_a) {
10
+ var _this = this;
11
+ var apiCdnUpload = _a.apiCdnUpload, editor = _a.editor;
12
+ var _b = (0, react_1.useState)(false), openPdfModal = _b[0], setOpenPdfModal = _b[1];
13
+ var _c = (0, react_1.useState)(null), pdfFile = _c[0], setPdfFile = _c[1];
14
+ var _d = (0, react_1.useState)(false), loadingConvertPdf = _d[0], setLoadingConvertPdf = _d[1];
15
+ var uploadImageFunction = function (formData) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
16
+ var response;
17
+ return tslib_1.__generator(this, function (_a) {
18
+ switch (_a.label) {
19
+ case 0: return [4 /*yield*/, fetch(apiCdnUpload, {
20
+ method: 'POST',
21
+ body: formData,
22
+ })];
23
+ case 1:
24
+ response = _a.sent();
25
+ if (response.ok) {
26
+ return [2 /*return*/, response.json()];
27
+ }
28
+ return [2 /*return*/];
29
+ }
30
+ });
31
+ }); };
32
+ var uploadImage = function (file) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
33
+ var formData, res, error_1;
34
+ return tslib_1.__generator(this, function (_a) {
35
+ switch (_a.label) {
36
+ case 0:
37
+ _a.trys.push([0, 2, , 3]);
38
+ formData = new FormData();
39
+ formData.append('file', file);
40
+ formData.append('projectId', 'phx-rich-text');
41
+ formData.append('moduleId', 'pdf');
42
+ return [4 /*yield*/, uploadImageFunction(formData)];
43
+ case 1:
44
+ res = _a.sent();
45
+ if (res) {
46
+ return [2 /*return*/, res.link];
47
+ }
48
+ else {
49
+ return [2 /*return*/, null];
50
+ }
51
+ return [3 /*break*/, 3];
52
+ case 2:
53
+ error_1 = _a.sent();
54
+ console.error(error_1);
55
+ return [2 /*return*/, null];
56
+ case 3: return [2 /*return*/];
57
+ }
58
+ });
59
+ }); };
60
+ var handleConvertPdfToImage = function (file) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
61
+ var PDFJS, fileURL, pdfDoc_1, numPages, uploadTasks, _loop_1, i, results, BATCH_SIZE, totalUploadTasks, i, batch, batchResults, sorted, _i, sorted_1, image;
62
+ var _this = this;
63
+ return tslib_1.__generator(this, function (_a) {
64
+ switch (_a.label) {
65
+ case 0:
66
+ setLoadingConvertPdf(true);
67
+ _a.label = 1;
68
+ case 1:
69
+ _a.trys.push([1, , 7, 8]);
70
+ PDFJS = window.pdfjsLib;
71
+ fileURL = URL.createObjectURL(file);
72
+ return [4 /*yield*/, PDFJS.getDocument({ url: fileURL }).promise];
73
+ case 2:
74
+ pdfDoc_1 = _a.sent();
75
+ numPages = pdfDoc_1.numPages;
76
+ uploadTasks = [];
77
+ _loop_1 = function (i) {
78
+ uploadTasks.push(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
79
+ var page, viewport, canvas, context, blob, fileName, imageFile, link;
80
+ return tslib_1.__generator(this, function (_a) {
81
+ switch (_a.label) {
82
+ case 0: return [4 /*yield*/, pdfDoc_1.getPage(i)];
83
+ case 1:
84
+ page = _a.sent();
85
+ viewport = page.getViewport({ scale: 2 });
86
+ canvas = document.createElement('canvas');
87
+ context = canvas.getContext('2d');
88
+ canvas.width = viewport.width;
89
+ canvas.height = viewport.height;
90
+ return [4 /*yield*/, page.render({ canvasContext: context, viewport: viewport }).promise];
91
+ case 2:
92
+ _a.sent();
93
+ return [4 /*yield*/, new Promise(function (resolve) { return canvas.toBlob(function (b) { return resolve(b); }, 'image/webp'); })];
94
+ case 3:
95
+ blob = _a.sent();
96
+ fileName = "".concat(file.name.replace(/\.[^/.]+$/, ''), "-page-").concat(i, ".webp");
97
+ imageFile = new File([blob], fileName, { type: 'image/webp' });
98
+ return [4 /*yield*/, uploadImage(imageFile)];
99
+ case 4:
100
+ link = _a.sent();
101
+ return [2 /*return*/, { index: i, link: link }];
102
+ }
103
+ });
104
+ }); });
105
+ };
106
+ for (i = 1; i <= numPages; i++) {
107
+ _loop_1(i);
108
+ }
109
+ results = [];
110
+ BATCH_SIZE = 5;
111
+ totalUploadTasks = uploadTasks.length;
112
+ i = 0;
113
+ _a.label = 3;
114
+ case 3:
115
+ if (!(i < totalUploadTasks)) return [3 /*break*/, 6];
116
+ batch = uploadTasks.slice(i, i + BATCH_SIZE);
117
+ return [4 /*yield*/, Promise.all(batch.map(function (fn) { return fn(); }))];
118
+ case 4:
119
+ batchResults = _a.sent();
120
+ results.push.apply(results, batchResults);
121
+ _a.label = 5;
122
+ case 5:
123
+ i += BATCH_SIZE;
124
+ return [3 /*break*/, 3];
125
+ case 6:
126
+ sorted = results.filter(function (r) { return r.link; }).sort(function (a, b) { return a.index - b.index; });
127
+ for (_i = 0, sorted_1 = sorted; _i < sorted_1.length; _i++) {
128
+ image = sorted_1[_i];
129
+ if (image.link) {
130
+ editor.dispatchCommand(ImagesPlugin_1.INSERT_IMAGE_COMMAND, {
131
+ altText: 'photo',
132
+ showCaption: false,
133
+ src: image.link,
134
+ });
135
+ }
136
+ }
137
+ return [3 /*break*/, 8];
138
+ case 7:
139
+ setLoadingConvertPdf(false);
140
+ setOpenPdfModal(false);
141
+ setPdfFile(null);
142
+ return [7 /*endfinally*/];
143
+ case 8: return [2 /*return*/];
144
+ }
145
+ });
146
+ }); };
147
+ return (react_1.default.createElement(react_1.default.Fragment, null,
148
+ react_1.default.createElement(Modal_1.PHXModal, { disableSubmit: !pdfFile, show: openPdfModal, onHide: function () { return setOpenPdfModal(false); }, title: 'T\u1EA3i l\u00EAn t\u00E0i li\u1EC7u PDF', onPrimaryClick: function () {
149
+ if (pdfFile)
150
+ handleConvertPdfToImage(pdfFile);
151
+ }, primaryLoading: loadingConvertPdf },
152
+ react_1.default.createElement(FormUpload_1.FormUpload, { fileName: pdfFile === null || pdfFile === void 0 ? void 0 : pdfFile.name, fileType: 'pdf', helpText: 'PDF, t\u1ED1i \u0111a 20MB', isHorizontalLayout: true, handleFileChange: function (e) {
153
+ setPdfFile(e.target.files[0]);
154
+ } })),
155
+ react_1.default.createElement("div", { className: 'flex items-center gap-x-2' },
156
+ react_1.default.createElement("button", { type: 'button', "data-color-button": 'true', className: 'p-1 rounded-md duration-200 hover:bg-gray-200 cursor-pointer', onClick: function () { return setOpenPdfModal(true); } },
157
+ react_1.default.createElement("span", null,
158
+ react_1.default.createElement("svg", { width: '20', height: '20', viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
159
+ react_1.default.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M5.5 5.75C5.5 5.05964 6.05964 4.5 6.75 4.5H9.5V7.75C9.5 8.7165 10.2835 9.5 11.25 9.5H14.5V10.25C14.5 10.6642 14.8358 11 15.25 11C15.6642 11 16 10.6642 16 10.25V8.75C16 8.55109 15.921 8.36032 15.7803 8.21967L10.7803 3.21967C10.6397 3.07902 10.4489 3 10.25 3H6.75C5.23122 3 4 4.23122 4 5.75V14.25C4 15.7688 5.23122 17 6.75 17H10.5C10.9142 17 11.25 16.6642 11.25 16.25C11.25 15.8358 10.9142 15.5 10.5 15.5H6.75C6.05964 15.5 5.5 14.9404 5.5 14.25V5.75ZM13.4393 8L11 5.56066V7.75C11 7.88807 11.1119 8 11.25 8H13.4393Z', fill: '#4A4A4A' }),
160
+ react_1.default.createElement("path", { d: 'M15 14.3107V17.25C15 17.6642 14.6642 18 14.25 18C13.8358 18 13.5 17.6642 13.5 17.25V14.3107L12.7803 15.0303C12.4874 15.3232 12.0126 15.3232 11.7197 15.0303C11.4268 14.7374 11.4268 14.2626 11.7197 13.9697L13.7197 11.9697C14.0126 11.6768 14.4874 11.6768 14.7803 11.9697L16.7803 13.9697C17.0732 14.2626 17.0732 14.7374 16.7803 15.0303C16.4874 15.3232 16.0126 15.3232 15.7197 15.0303L15 14.3107Z', fill: '#4A4A4A' })))))));
161
+ }
162
+ //# sourceMappingURL=upload-pdf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-pdf.js","sourceRoot":"","sources":["../../../../../../../src/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.tsx"],"names":[],"mappings":";;AAYA,4BA6IC;;AAzJD,qDAAuC;AACvC,2CAA4C;AAC5C,gEAA8D;AAE9D,mDAAyD;AAQzD,SAAwB,SAAS,CAAC,EAAyE;IAA3G,iBA6IC;QA7ImC,YAAY,kBAAA,EAAE,MAAM,YAAA;IAChD,IAAA,KAAkC,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAhD,YAAY,QAAA,EAAE,eAAe,QAAmB,CAAA;IACjD,IAAA,KAAwB,IAAA,gBAAQ,EAAc,IAAI,CAAC,EAAlD,OAAO,QAAA,EAAE,UAAU,QAA+B,CAAA;IACnD,IAAA,KAA4C,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAA1D,iBAAiB,QAAA,EAAE,oBAAoB,QAAmB,CAAA;IAEjE,IAAM,mBAAmB,GAAG,UAAO,QAAkB;;;;wBAClC,qBAAM,KAAK,CAAC,YAAY,EAAE;wBACzC,MAAM,EAAE,MAAM;wBACd,IAAI,EAAE,QAAQ;qBACf,CAAC,EAAA;;oBAHI,QAAQ,GAAG,SAGf;oBACF,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;wBAChB,sBAAO,QAAQ,CAAC,IAAI,EAAE,EAAA;oBACxB,CAAC;;;;SACF,CAAA;IAED,IAAM,WAAW,GAAG,UAAO,IAAU;;;;;;oBAE3B,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAA;oBAC/B,Q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OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,EACvB,QAAQ,EAAC,KAAK,EACd,QAAQ,EAAC,4BAAkB,EAC3B,kBAAkB,QAClB,gBAAgB,EAAE,UAAC,CAAM;oBACvB,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;gBAC/B,CAAC,GACD,CACO;QACX,uCAAK,SAAS,EAAC,2BAA2B;YACxC,0CACE,IAAI,EAAC,QAAQ,uBACK,MAAM,EACxB,SAAS,EAAC,+DAA+D,EACzE,OAAO,EAAE,cAAM,OAAA,eAAe,CAAC,IAAI,CAAC,EAArB,CAAqB;gBAEpC;oBACE,uCAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B;wBAC5F,wCACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,kgBAAkgB,EACpgB,IAAI,EAAC,SAAS,GACR;wBACR,wCACE,CAAC,EAAC,yYAAyY,EAC3Y,IAAI,EAAC,SAAS,GACR,CACJ,CACD,CACA,CACL,CACL,CACJ,CAAA;AACH,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ export default function ToolbarPlugin({ apiCdnUpload }: {
3
+ apiCdnUpload: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,163 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = ToolbarPlugin;
4
+ var tslib_1 = require("tslib");
5
+ var code_1 = require("@lexical/code");
6
+ var link_1 = require("@lexical/link");
7
+ var list_1 = require("@lexical/list");
8
+ var LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
9
+ var rich_text_1 = require("@lexical/rich-text");
10
+ var selection_1 = require("@lexical/selection");
11
+ var utils_1 = require("@lexical/utils");
12
+ var lexical_1 = require("lexical");
13
+ var react_1 = require("react");
14
+ var React = tslib_1.__importStar(require("react"));
15
+ var getSelectedNode_1 = require("../../utils/getSelectedNode");
16
+ var url_1 = require("../../utils/url");
17
+ var heading_1 = tslib_1.__importDefault(require("./components/heading"));
18
+ var font_size_1 = tslib_1.__importDefault(require("./components/font-size"));
19
+ var bold_text_1 = tslib_1.__importDefault(require("./components/bold-text"));
20
+ var italic_text_1 = tslib_1.__importDefault(require("./components/italic-text"));
21
+ var underline_text_1 = tslib_1.__importDefault(require("./components/underline-text"));
22
+ var text_color_1 = tslib_1.__importDefault(require("./components/text-color"));
23
+ var text_align_1 = tslib_1.__importDefault(require("./components/text-align"));
24
+ var bullet_1 = tslib_1.__importDefault(require("./components/bullet"));
25
+ var number_bullet_1 = tslib_1.__importDefault(require("./components/number-bullet"));
26
+ var upload_pdf_1 = tslib_1.__importDefault(require("./components/upload-pdf"));
27
+ var upload_image_1 = tslib_1.__importDefault(require("./components/upload-image"));
28
+ var link_2 = tslib_1.__importDefault(require("./components/link"));
29
+ var blockTypeToBlockName = {
30
+ bullet: 'Bulleted List',
31
+ check: 'Check List',
32
+ code: 'Code Block',
33
+ h1: 'Heading 1',
34
+ h2: 'Heading 2',
35
+ h3: 'Heading 3',
36
+ h4: 'Heading 4',
37
+ h5: 'Heading 5',
38
+ h6: 'Heading 6',
39
+ number: 'Numbered List',
40
+ paragraph: 'Normal',
41
+ quote: 'Quote',
42
+ };
43
+ function ToolbarPlugin(_a) {
44
+ var apiCdnUpload = _a.apiCdnUpload;
45
+ var editor = (0, LexicalComposerContext_1.useLexicalComposerContext)()[0];
46
+ var _b = (0, react_1.useState)(editor), activeEditor = _b[0], setActiveEditor = _b[1];
47
+ var _c = (0, react_1.useState)('paragraph'), blockType = _c[0], setBlockType = _c[1];
48
+ var _d = (0, react_1.useState)('14px'), fontSize = _d[0], setFontSize = _d[1];
49
+ var _e = (0, react_1.useState)('#000'), fontColor = _e[0], setFontColor = _e[1];
50
+ var _f = (0, react_1.useState)('left'), elementFormat = _f[0], setElementFormat = _f[1];
51
+ var _g = (0, react_1.useState)(false), isLink = _g[0], setIsLink = _g[1];
52
+ var _h = (0, react_1.useState)(false), isBold = _h[0], setIsBold = _h[1];
53
+ var _j = (0, react_1.useState)(false), isItalic = _j[0], setIsItalic = _j[1];
54
+ var _k = (0, react_1.useState)(false), isUnderline = _k[0], setIsUnderline = _k[1];
55
+ var $updateToolbar = (0, react_1.useCallback)(function () {
56
+ var selection = (0, lexical_1.$getSelection)();
57
+ if ((0, lexical_1.$isRangeSelection)(selection)) {
58
+ var anchorNode = selection.anchor.getNode();
59
+ var element = anchorNode.getKey() === 'root'
60
+ ? anchorNode
61
+ : (0, utils_1.$findMatchingParent)(anchorNode, function (e) {
62
+ var parent = e.getParent();
63
+ return parent !== null && (0, lexical_1.$isRootOrShadowRoot)(parent);
64
+ });
65
+ if (element === null) {
66
+ element = anchorNode.getTopLevelElementOrThrow();
67
+ }
68
+ var elementKey = element.getKey();
69
+ var elementDOM = activeEditor.getElementByKey(elementKey);
70
+ // Update text format
71
+ setIsBold(selection.hasFormat('bold'));
72
+ setIsItalic(selection.hasFormat('italic'));
73
+ setIsUnderline(selection.hasFormat('underline'));
74
+ // Update links
75
+ var node = (0, getSelectedNode_1.getSelectedNode)(selection);
76
+ var parent_1 = node.getParent();
77
+ if ((0, link_1.$isLinkNode)(parent_1) || (0, link_1.$isLinkNode)(node)) {
78
+ setIsLink(true);
79
+ }
80
+ else {
81
+ setIsLink(false);
82
+ }
83
+ if (elementDOM !== null) {
84
+ if ((0, list_1.$isListNode)(element)) {
85
+ var parentList = (0, utils_1.$getNearestNodeOfType)(anchorNode, list_1.ListNode);
86
+ var type = parentList ? parentList.getListType() : element.getListType();
87
+ setBlockType(type);
88
+ }
89
+ else {
90
+ var type = (0, rich_text_1.$isHeadingNode)(element) ? element.getTag() : element.getType();
91
+ if (type in blockTypeToBlockName) {
92
+ setBlockType(type);
93
+ }
94
+ if ((0, code_1.$isCodeNode)(element)) {
95
+ return;
96
+ }
97
+ }
98
+ }
99
+ // Handle buttons
100
+ var fontSize_1 = (0, selection_1.$getSelectionStyleValueForProperty)(selection, 'font-size', '14px') || '14px';
101
+ setFontSize(fontSize_1);
102
+ setFontColor((0, selection_1.$getSelectionStyleValueForProperty)(selection, 'color', '#000'));
103
+ var matchingParent = void 0;
104
+ if ((0, link_1.$isLinkNode)(parent_1)) {
105
+ // If node is a link, we need to fetch the parent paragraph node to set format
106
+ matchingParent = (0, utils_1.$findMatchingParent)(node, function (parentNode) { return (0, lexical_1.$isElementNode)(parentNode) && !parentNode.isInline(); });
107
+ }
108
+ // If matchingParent is a valid node, pass it's format type
109
+ setElementFormat((0, lexical_1.$isElementNode)(matchingParent)
110
+ ? matchingParent.getFormatType()
111
+ : (0, lexical_1.$isElementNode)(node)
112
+ ? node.getFormatType()
113
+ : (parent_1 === null || parent_1 === void 0 ? void 0 : parent_1.getFormatType()) || 'left');
114
+ }
115
+ }, [activeEditor]);
116
+ (0, react_1.useEffect)(function () {
117
+ return editor.registerCommand(lexical_1.SELECTION_CHANGE_COMMAND, function (_payload, newEditor) {
118
+ $updateToolbar();
119
+ setActiveEditor(newEditor);
120
+ return false;
121
+ }, lexical_1.COMMAND_PRIORITY_CRITICAL);
122
+ }, [editor, $updateToolbar]);
123
+ (0, react_1.useEffect)(function () {
124
+ return (0, utils_1.mergeRegister)(activeEditor.registerUpdateListener(function (_a) {
125
+ var editorState = _a.editorState;
126
+ editorState.read(function () {
127
+ $updateToolbar();
128
+ });
129
+ }));
130
+ }, [$updateToolbar, activeEditor, editor]);
131
+ (0, react_1.useEffect)(function () {
132
+ return activeEditor.registerCommand(lexical_1.KEY_MODIFIER_COMMAND, function (payload) {
133
+ var event = payload;
134
+ var code = event.code, ctrlKey = event.ctrlKey, metaKey = event.metaKey;
135
+ if (code === 'KeyK' && (ctrlKey || metaKey)) {
136
+ event.preventDefault();
137
+ return activeEditor.dispatchCommand(link_1.TOGGLE_LINK_COMMAND, (0, url_1.sanitizeUrl)('https://'));
138
+ }
139
+ return false;
140
+ }, lexical_1.COMMAND_PRIORITY_NORMAL);
141
+ }, [activeEditor, isLink]);
142
+ (0, react_1.useEffect)(function () {
143
+ if (!window.pdfjsLib) {
144
+ var script = document.createElement('script');
145
+ script.src = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js';
146
+ document.body.appendChild(script);
147
+ }
148
+ }, []);
149
+ return (React.createElement("div", { className: 'flex flex-wrap gap-1 p-2 bg-gray-100 border-b border-gray-300' },
150
+ blockType in blockTypeToBlockName && activeEditor === editor && (React.createElement(heading_1.default, { value: blockType, editor: activeEditor })),
151
+ React.createElement(font_size_1.default, { editor: activeEditor, fontSize: parseInt(fontSize, 10) }),
152
+ React.createElement(bold_text_1.default, { isActive: isBold, editor: activeEditor }),
153
+ React.createElement(italic_text_1.default, { isActive: isItalic, editor: activeEditor }),
154
+ React.createElement(underline_text_1.default, { isActive: isUnderline, editor: activeEditor }),
155
+ React.createElement(text_color_1.default, { editor: activeEditor, color: fontColor }),
156
+ React.createElement(text_align_1.default, { value: elementFormat, editor: activeEditor }),
157
+ React.createElement(bullet_1.default, { isActive: blockType === 'bullet', editor: activeEditor }),
158
+ React.createElement(number_bullet_1.default, { isActive: blockType === 'number', editor: activeEditor }),
159
+ React.createElement(upload_pdf_1.default, { editor: activeEditor, apiCdnUpload: apiCdnUpload }),
160
+ React.createElement(upload_image_1.default, { editor: activeEditor, apiCdnUpload: apiCdnUpload }),
161
+ React.createElement(link_2.default, { editor: activeEditor })));
162
+ }
163
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/ToolbarPlugin/index.tsx"],"names":[],"mappings":";;AAkDA,gCA0JC;;AA5MD,sCAA2C;AAC3C,sCAAgE;AAChE,sCAAqD;AACrD,gFAAiF;AACjF,gDAAmD;AACnD,gDAAuE;AACvE,wCAA0F;AAC1F,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AAC,mBAAQ,IAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAI;QACpD,oBAAC,qBAAU,IAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,GAAI;QACxD,oBAAC,wBAAa,IAAC,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,GAAI;QAC9D,oBAAC,oBAAS,IAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,GAAI;QACrD,oBAAC,oBAAS,IAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,GAAI;QACzD,oBAAC,gBAAM,IAAC,QAAQ,EAAE,SAAS,KAAK,QAAQ,EAAE,MAAM,EAAE,YAAY,GAAI;QAClE,oBAAC,uBAAY,IAAC,QAAQ,EAAE,SAAS,KAAK,QAAQ,EAAE,MAAM,EAAE,YAAY,GAAI;QACxE,oBAAC,oBAAS,IAAC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,GAAI;QAC/D,oBAAC,sBAAW,IAAC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,GAAI;QACjE,oBAAC,cAAI,IAAC,MAAM,EAAE,YAAY,GAAI,CAC1B,CACP,CAAA;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export default function TreeViewPlugin(): React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = TreeViewPlugin;
4
+ var tslib_1 = require("tslib");
5
+ var LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
6
+ var LexicalTreeView_1 = require("@lexical/react/LexicalTreeView");
7
+ var React = tslib_1.__importStar(require("react"));
8
+ function TreeViewPlugin() {
9
+ var editor = (0, LexicalComposerContext_1.useLexicalComposerContext)()[0];
10
+ return (React.createElement(LexicalTreeView_1.TreeView, { editor: editor, timeTravelButtonClassName: 'debug-timetravel-button', timeTravelPanelButtonClassName: 'debug-timetravel-panel-button', timeTravelPanelClassName: 'debug-timetravel-panel', timeTravelPanelSliderClassName: 'debug-timetravel-panel-slider', treeTypeButtonClassName: 'debug-treetype-button', viewClassName: 'tree-view-output' }));
11
+ }
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/TreeViewPlugin/index.tsx"],"names":[],"mappings":";;AAIA,iCAaC;;AAjBD,gFAAiF;AACjF,kEAAyD;AACzD,mDAA8B;AAE9B,SAAwB,cAAc;IAC7B,IAAA,MAAM,GAAI,IAAA,kDAAyB,GAAE,GAA/B,CAA+B;IAC5C,OAAO,CACL,oBAAC,0BAAQ,IACP,MAAM,EAAE,MAAM,EACd,yBAAyB,EAAC,yBAAyB,EACnD,8BAA8B,EAAC,+BAA+B,EAC9D,wBAAwB,EAAC,wBAAwB,EACjD,8BAA8B,EAAC,+BAA+B,EAC9D,uBAAuB,EAAC,uBAAuB,EAC/C,aAAa,EAAC,kBAAkB,GAChC,CACH,CAAA;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LexicalCommand } from 'lexical';
2
+ export declare const INSERT_TWEET_COMMAND: LexicalCommand<string>;
3
+ export default function TwitterPlugin(): React.JSX.Element | null;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INSERT_TWEET_COMMAND = void 0;
4
+ exports.default = TwitterPlugin;
5
+ var LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
6
+ var utils_1 = require("@lexical/utils");
7
+ var lexical_1 = require("lexical");
8
+ var react_1 = require("react");
9
+ var TweetNode_1 = require("../../nodes/TweetNode");
10
+ exports.INSERT_TWEET_COMMAND = (0, lexical_1.createCommand)('INSERT_TWEET_COMMAND');
11
+ function TwitterPlugin() {
12
+ var editor = (0, LexicalComposerContext_1.useLexicalComposerContext)()[0];
13
+ (0, react_1.useEffect)(function () {
14
+ if (!editor.hasNodes([TweetNode_1.TweetNode])) {
15
+ throw new Error('TwitterPlugin: TweetNode not registered on editor');
16
+ }
17
+ return editor.registerCommand(exports.INSERT_TWEET_COMMAND, function (payload) {
18
+ var tweetNode = (0, TweetNode_1.$createTweetNode)(payload);
19
+ (0, utils_1.$insertNodeToNearestRoot)(tweetNode);
20
+ return true;
21
+ }, lexical_1.COMMAND_PRIORITY_EDITOR);
22
+ }, [editor]);
23
+ return null;
24
+ }
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/TwitterPlugin/index.ts"],"names":[],"mappings":";;;AAQA,gCAqBC;AA7BD,gFAAiF;AACjF,wCAAyD;AACzD,mCAAgF;AAChF,+BAAiC;AACjC,mDAAmE;AAEtD,QAAA,oBAAoB,GAA2B,IAAA,uBAAa,EAAC,sBAAsB,CAAC,CAAA;AAEjG,SAAwB,aAAa;IAC5B,IAAA,MAAM,GAAI,IAAA,kDAAyB,GAAE,GAA/B,CAA+B;IAE5C,IAAA,iBAAS,EAAC;QACR,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,qBAAS,CAAC,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;QACtE,CAAC;QAED,OAAO,MAAM,CAAC,eAAe,CAC3B,4BAAoB,EACpB,UAAC,OAAO;YACN,IAAM,SAAS,GAAG,IAAA,4BAAgB,EAAC,OAAO,CAAC,CAAA;YAC3C,IAAA,gCAAwB,EAAC,SAAS,CAAC,CAAA;YAEnC,OAAO,IAAI,CAAA;QACb,CAAC,EACD,iCAAuB,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_YOUTUBE_COMMAND: LexicalCommand<string>;
3
+ export default function YouTubePlugin(): React.JSX.Element | null;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INSERT_YOUTUBE_COMMAND = void 0;
4
+ exports.default = YouTubePlugin;
5
+ var LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
6
+ var utils_1 = require("@lexical/utils");
7
+ var lexical_1 = require("lexical");
8
+ var react_1 = require("react");
9
+ var YouTubeNode_1 = require("../../nodes/YouTubeNode");
10
+ exports.INSERT_YOUTUBE_COMMAND = (0, lexical_1.createCommand)('INSERT_YOUTUBE_COMMAND');
11
+ function YouTubePlugin() {
12
+ var editor = (0, LexicalComposerContext_1.useLexicalComposerContext)()[0];
13
+ (0, react_1.useEffect)(function () {
14
+ if (!editor.hasNodes([YouTubeNode_1.YouTubeNode])) {
15
+ throw new Error('YouTubePlugin: YouTubeNode not registered on editor');
16
+ }
17
+ return editor.registerCommand(exports.INSERT_YOUTUBE_COMMAND, function (payload) {
18
+ var youTubeNode = (0, YouTubeNode_1.$createYouTubeNode)(payload);
19
+ (0, utils_1.$insertNodeToNearestRoot)(youTubeNode);
20
+ return true;
21
+ }, lexical_1.COMMAND_PRIORITY_EDITOR);
22
+ }, [editor]);
23
+ return null;
24
+ }
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/YouTubePlugin/index.ts"],"names":[],"mappings":";;;AAQA,gCAqBC;AA7BD,gFAAiF;AACjF,wCAAyD;AACzD,mCAAgF;AAChF,+BAAiC;AACjC,uDAAyE;AAE5D,QAAA,sBAAsB,GAA2B,IAAA,uBAAa,EAAC,wBAAwB,CAAC,CAAA;AAErG,SAAwB,aAAa;IAC5B,IAAA,MAAM,GAAI,IAAA,kDAAyB,GAAE,GAA/B,CAA+B;IAE5C,IAAA,iBAAS,EAAC;QACR,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,yBAAW,CAAC,CAAC,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;QACxE,CAAC;QAED,OAAO,MAAM,CAAC,eAAe,CAC3B,8BAAsB,EACtB,UAAC,OAAO;YACN,IAAM,WAAW,GAAG,IAAA,gCAAkB,EAAC,OAAO,CAAC,CAAA;YAC/C,IAAA,gCAAwB,EAAC,WAAW,CAAC,CAAA;YAErC,OAAO,IAAI,CAAA;QACb,CAAC,EACD,iCAAuB,CACxB,CAAA;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;IAEZ,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const CAN_USE_DOM: boolean;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAN_USE_DOM = void 0;
4
+ exports.CAN_USE_DOM = typeof window !== 'undefined' &&
5
+ typeof window.document !== 'undefined' &&
6
+ typeof window.document.createElement !== 'undefined';
7
+ //# sourceMappingURL=canUseDOM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canUseDOM.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/shared/canUseDOM.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GACtB,OAAO,MAAM,KAAK,WAAW;IAC7B,OAAO,MAAM,CAAC,QAAQ,KAAK,WAAW;IACtC,OAAO,MAAM,CAAC,QAAQ,CAAC,aAAa,KAAK,WAAW,CAAA"}
@@ -0,0 +1,4 @@
1
+ export default function caretFromPoint(x: number, y: number): null | {
2
+ offset: number;
3
+ node: Node;
4
+ };
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = caretFromPoint;
4
+ function caretFromPoint(x, y) {
5
+ if (typeof document.caretRangeFromPoint !== 'undefined') {
6
+ var range = document.caretRangeFromPoint(x, y);
7
+ if (range === null) {
8
+ return null;
9
+ }
10
+ return {
11
+ node: range.startContainer,
12
+ offset: range.startOffset,
13
+ };
14
+ // @ts-ignore
15
+ }
16
+ else if (document.caretPositionFromPoint !== 'undefined') {
17
+ // @ts-ignore FF - no types
18
+ var range = document.caretPositionFromPoint(x, y);
19
+ if (range === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ node: range.offsetNode,
24
+ offset: range.offset,
25
+ };
26
+ }
27
+ else {
28
+ // Gracefully handle IE
29
+ return null;
30
+ }
31
+ }
32
+ //# sourceMappingURL=caretFromPoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"caretFromPoint.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/shared/caretFromPoint.ts"],"names":[],"mappings":";;AAAA,iCA+BC;AA/BD,SAAwB,cAAc,CACpC,CAAS,EACT,CAAS;IAKT,IAAI,OAAO,QAAQ,CAAC,mBAAmB,KAAK,WAAW,EAAE,CAAC;QACxD,IAAM,KAAK,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QAChD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,OAAO,IAAI,CAAA;QACb,CAAC;QACD,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,cAAc;YAC1B,MAAM,EAAE,KAAK,CAAC,WAAW;SAC1B,CAAA;QACD,aAAa;IACf,CAAC;SAAM,IAAI,QAAQ,CAAC,sBAAsB,KAAK,WAAW,EAAE,CAAC;QAC3D,2BAA2B;QAC3B,IAAM,KAAK,GAAG,QAAQ,CAAC,sBAAsB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QACnD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,OAAO,IAAI,CAAA;QACb,CAAC;QACD,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,UAAU;YACtB,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB,CAAA;IACH,CAAC;SAAM,CAAC;QACN,uBAAuB;QACvB,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC"}
@@ -0,0 +1,16 @@
1
+ declare global {
2
+ interface Document {
3
+ documentMode?: unknown;
4
+ }
5
+ interface Window {
6
+ MSStream?: unknown;
7
+ }
8
+ }
9
+ export declare const IS_APPLE: boolean;
10
+ export declare const IS_FIREFOX: boolean;
11
+ export declare const CAN_USE_BEFORE_INPUT: boolean;
12
+ export declare const IS_SAFARI: boolean;
13
+ export declare const IS_IOS: boolean;
14
+ export declare const IS_ANDROID: boolean;
15
+ export declare const IS_CHROME: boolean;
16
+ export declare const IS_APPLE_WEBKIT: boolean;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IS_APPLE_WEBKIT = exports.IS_CHROME = exports.IS_ANDROID = exports.IS_IOS = exports.IS_SAFARI = exports.CAN_USE_BEFORE_INPUT = exports.IS_FIREFOX = exports.IS_APPLE = void 0;
4
+ var canUseDOM_1 = require("./canUseDOM");
5
+ var documentMode = canUseDOM_1.CAN_USE_DOM && 'documentMode' in document ? document.documentMode : null;
6
+ exports.IS_APPLE = canUseDOM_1.CAN_USE_DOM && /Mac|iPod|iPhone|iPad/.test(navigator.platform);
7
+ exports.IS_FIREFOX = canUseDOM_1.CAN_USE_DOM && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);
8
+ exports.CAN_USE_BEFORE_INPUT = canUseDOM_1.CAN_USE_DOM && 'InputEvent' in window && !documentMode ? 'getTargetRanges' in new window.InputEvent('input') : false;
9
+ exports.IS_SAFARI = canUseDOM_1.CAN_USE_DOM && /Version\/[\d.]+.*Safari/.test(navigator.userAgent);
10
+ exports.IS_IOS = canUseDOM_1.CAN_USE_DOM && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11
+ exports.IS_ANDROID = canUseDOM_1.CAN_USE_DOM && /Android/.test(navigator.userAgent);
12
+ // Keep these in case we need to use them in the future.
13
+ // export const IS_WINDOWS: boolean = CAN_USE_DOM && /Win/.test(navigator.platform);
14
+ exports.IS_CHROME = canUseDOM_1.CAN_USE_DOM && /^(?=.*Chrome).*/i.test(navigator.userAgent);
15
+ // export const canUseTextInputEvent: boolean = CAN_USE_DOM && 'TextEvent' in window && !documentMode;
16
+ exports.IS_APPLE_WEBKIT = canUseDOM_1.CAN_USE_DOM && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !exports.IS_CHROME;
17
+ //# sourceMappingURL=environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/shared/environment.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AAYzC,IAAM,YAAY,GAAG,uBAAW,IAAI,cAAc,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAA;AAEhF,QAAA,QAAQ,GAAY,uBAAW,IAAI,sBAAsB,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;AAElF,QAAA,UAAU,GAAY,uBAAW,IAAI,kCAAkC,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA;AAEjG,QAAA,oBAAoB,GAC/B,uBAAW,IAAI,YAAY,IAAI,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;AAEzG,QAAA,SAAS,GAAY,uBAAW,IAAI,yBAAyB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA;AAEvF,QAAA,MAAM,GAAY,uBAAW,IAAI,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAA;AAEjG,QAAA,UAAU,GAAY,uBAAW,IAAI,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA;AAErF,wDAAwD;AACxD,oFAAoF;AACvE,QAAA,SAAS,GAAY,uBAAW,IAAI,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA;AAC7F,sGAAsG;AAEzF,QAAA,eAAe,GAAG,uBAAW,IAAI,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,iBAAS,CAAA"}
@@ -0,0 +1 @@
1
+ export default function invariant(cond?: boolean, message?: string): asserts cond;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = invariant;
4
+ // invariant(condition, message) will refine types based on "condition", and
5
+ // if "condition" is false will throw an error. This function is special-cased
6
+ // in flow itself, so we can't name it anything else.
7
+ function invariant(cond, message) {
8
+ if (cond) {
9
+ return;
10
+ }
11
+ throw new Error('Internal Lexical error: invariant() is meant to be replaced at compile ' +
12
+ 'time. There is no runtime version. Error: ' +
13
+ message);
14
+ }
15
+ //# sourceMappingURL=invariant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invariant.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/shared/invariant.ts"],"names":[],"mappings":";;AAGA,4BAUC;AAbD,4EAA4E;AAC5E,8EAA8E;AAC9E,qDAAqD;AACrD,SAAwB,SAAS,CAAC,IAAc,EAAE,OAAgB;IAChE,IAAI,IAAI,EAAE,CAAC;QACT,OAAM;IACR,CAAC;IAED,MAAM,IAAI,KAAK,CACb,yEAAyE;QACvE,4CAA4C;QAC5C,OAAO,CACV,CAAA;AACH,CAAC"}
@@ -0,0 +1,5 @@
1
+ export default function simpleDiffWithCursor(a: string, b: string, cursor: number): {
2
+ index: number;
3
+ insert: string;
4
+ remove: number;
5
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = simpleDiffWithCursor;
4
+ function simpleDiffWithCursor(a, b, cursor) {
5
+ var aLength = a.length;
6
+ var bLength = b.length;
7
+ var left = 0; // number of same characters counting from left
8
+ var right = 0; // number of same characters counting from right
9
+ // Iterate left to the right until we find a changed character
10
+ // First iteration considers the current cursor position
11
+ while (left < aLength && left < bLength && a[left] === b[left] && left < cursor) {
12
+ left++;
13
+ }
14
+ // Iterate right to the left until we find a changed character
15
+ while (right + left < aLength && right + left < bLength && a[aLength - right - 1] === b[bLength - right - 1]) {
16
+ right++;
17
+ }
18
+ // Try to iterate left further to the right without caring about the current cursor position
19
+ while (right + left < aLength && right + left < bLength && a[left] === b[left]) {
20
+ left++;
21
+ }
22
+ return {
23
+ index: left,
24
+ insert: b.slice(left, bLength - right),
25
+ remove: aLength - left - right,
26
+ };
27
+ }
28
+ //# sourceMappingURL=simpleDiffWithCursor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simpleDiffWithCursor.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/shared/simpleDiffWithCursor.ts"],"names":[],"mappings":";;AAAA,uCA2BC;AA3BD,SAAwB,oBAAoB,CAC1C,CAAS,EACT,CAAS,EACT,MAAc;IAEd,IAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAA;IACxB,IAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAA;IACxB,IAAI,IAAI,GAAG,CAAC,CAAA,CAAC,+CAA+C;IAC5D,IAAI,KAAK,GAAG,CAAC,CAAA,CAAC,gDAAgD;IAC9D,8DAA8D;IAC9D,wDAAwD;IACxD,OAAO,IAAI,GAAG,OAAO,IAAI,IAAI,GAAG,OAAO,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,MAAM,EAAE,CAAC;QAChF,IAAI,EAAE,CAAA;IACR,CAAC;IACD,8DAA8D;IAC9D,OAAO,KAAK,GAAG,IAAI,GAAG,OAAO,IAAI,KAAK,GAAG,IAAI,GAAG,OAAO,IAAI,CAAC,CAAC,OAAO,GAAG,K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