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 @@
1
+ export declare function getDOMRangeRect(nativeSelection: Selection, rootElement: HTMLElement): DOMRect;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDOMRangeRect = getDOMRangeRect;
4
+ function getDOMRangeRect(nativeSelection, rootElement) {
5
+ var domRange = nativeSelection.getRangeAt(0);
6
+ var rect;
7
+ if (nativeSelection.anchorNode === rootElement) {
8
+ var inner = rootElement;
9
+ while (inner.firstElementChild != null) {
10
+ inner = inner.firstElementChild;
11
+ }
12
+ rect = inner.getBoundingClientRect();
13
+ }
14
+ else {
15
+ rect = domRange.getBoundingClientRect();
16
+ }
17
+ return rect;
18
+ }
19
+ //# sourceMappingURL=getDOMRangeRect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDOMRangeRect.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/utils/getDOMRangeRect.ts"],"names":[],"mappings":";;AAAA,0CAgBC;AAhBD,SAAgB,eAAe,CAAC,eAA0B,EAAE,WAAwB;IAClF,IAAM,QAAQ,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;IAE9C,IAAI,IAAI,CAAA;IAER,IAAI,eAAe,CAAC,UAAU,KAAK,WAAW,EAAE,CAAC;QAC/C,IAAI,KAAK,GAAG,WAAW,CAAA;QACvB,OAAO,KAAK,CAAC,iBAAiB,IAAI,IAAI,EAAE,CAAC;YACvC,KAAK,GAAG,KAAK,CAAC,iBAAgC,CAAA;QAChD,CAAC;QACD,IAAI,GAAG,KAAK,CAAC,qBAAqB,EAAE,CAAA;IACtC,CAAC;SAAM,CAAC;QACN,IAAI,GAAG,QAAQ,CAAC,qBAAqB,EAAE,CAAA;IACzC,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function getPrepopulatedRichText(): void;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPrepopulatedRichText = getPrepopulatedRichText;
4
+ var link_1 = require("@lexical/link");
5
+ var list_1 = require("@lexical/list");
6
+ var rich_text_1 = require("@lexical/rich-text");
7
+ var lexical_1 = require("lexical");
8
+ function getPrepopulatedRichText() {
9
+ var root = (0, lexical_1.$getRoot)();
10
+ if (root.getFirstChild() === null) {
11
+ var heading = (0, rich_text_1.$createHeadingNode)('h1');
12
+ heading.append((0, lexical_1.$createTextNode)('Welcome to the playground'));
13
+ root.append(heading);
14
+ var quote = (0, rich_text_1.$createQuoteNode)();
15
+ quote.append((0, lexical_1.$createTextNode)("In case you were wondering what the black box at the bottom is \u2013 it's the debug view, showing the current state of the editor. " +
16
+ "You can disable it by pressing on the settings control in the bottom-left of your screen and toggling the debug view setting."));
17
+ root.append(quote);
18
+ var paragraph = (0, lexical_1.$createParagraphNode)();
19
+ paragraph.append((0, lexical_1.$createTextNode)('The playground is a demo environment built with '), (0, lexical_1.$createTextNode)('@lexical/react').toggleFormat('code'), (0, lexical_1.$createTextNode)('.'), (0, lexical_1.$createTextNode)(' Try typing in '), (0, lexical_1.$createTextNode)('some text').toggleFormat('bold'), (0, lexical_1.$createTextNode)(' with '), (0, lexical_1.$createTextNode)('different').toggleFormat('italic'), (0, lexical_1.$createTextNode)(' formats.'));
20
+ root.append(paragraph);
21
+ var paragraph2 = (0, lexical_1.$createParagraphNode)();
22
+ paragraph2.append((0, lexical_1.$createTextNode)('Make sure to check out the various plugins in the toolbar. You can also use #hashtags or @-mentions too!'));
23
+ root.append(paragraph2);
24
+ var paragraph3 = (0, lexical_1.$createParagraphNode)();
25
+ paragraph3.append((0, lexical_1.$createTextNode)("If you'd like to find out more about Lexical, you can:"));
26
+ root.append(paragraph3);
27
+ var list = (0, list_1.$createListNode)('bullet');
28
+ list.append((0, list_1.$createListItemNode)().append((0, lexical_1.$createTextNode)("Visit the "), (0, link_1.$createLinkNode)('https://lexical.dev/').append((0, lexical_1.$createTextNode)('Lexical website')), (0, lexical_1.$createTextNode)(" for documentation and more information.")), (0, list_1.$createListItemNode)().append((0, lexical_1.$createTextNode)("Check out the code on our "), (0, link_1.$createLinkNode)('https://github.com/facebook/lexical').append((0, lexical_1.$createTextNode)('GitHub repository')), (0, lexical_1.$createTextNode)(".")), (0, list_1.$createListItemNode)().append((0, lexical_1.$createTextNode)("Playground code can be found "), (0, link_1.$createLinkNode)('https://github.com/facebook/lexical/tree/main/packages/lexical-playground').append((0, lexical_1.$createTextNode)('here')), (0, lexical_1.$createTextNode)(".")), (0, list_1.$createListItemNode)().append((0, lexical_1.$createTextNode)("Join our "), (0, link_1.$createLinkNode)('https://discord.com/invite/KmG4wQnnD9').append((0, lexical_1.$createTextNode)('Discord Server')), (0, lexical_1.$createTextNode)(" and chat with the team.")));
29
+ root.append(list);
30
+ var paragraph4 = (0, lexical_1.$createParagraphNode)();
31
+ paragraph4.append((0, lexical_1.$createTextNode)("Lastly, we're constantly adding cool new features to this playground. So make sure you check back here when you next get a chance :)."));
32
+ root.append(paragraph4);
33
+ }
34
+ }
35
+ //# sourceMappingURL=getPrepopulatedRichText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPrepopulatedRichText.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/utils/getPrepopulatedRichText.ts"],"names":[],"mappings":";;AAKA,0DAsEC;AA3ED,sCAA+C;AAC/C,sCAAoE;AACpE,gDAAyE;AACzE,mCAAyE;AAEzE,SAAgB,uBAAuB;IACrC,IAAM,IAAI,GAAG,IAAA,kBAAQ,GAAE,CAAA;IACvB,IAAI,IAAI,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC;QAClC,IAAM,OAAO,GAAG,IAA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 import { ElementNode, RangeSelection, TextNode } from 'lexical';
2
+ export declare function getSelectedNode(selection: RangeSelection): TextNode | ElementNode;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSelectedNode = getSelectedNode;
4
+ var selection_1 = require("@lexical/selection");
5
+ function getSelectedNode(selection) {
6
+ var anchor = selection.anchor;
7
+ var focus = selection.focus;
8
+ var anchorNode = selection.anchor.getNode();
9
+ var focusNode = selection.focus.getNode();
10
+ if (anchorNode === focusNode) {
11
+ return anchorNode;
12
+ }
13
+ var isBackward = selection.isBackward();
14
+ if (isBackward) {
15
+ return (0, selection_1.$isAtNodeEnd)(focus) ? anchorNode : focusNode;
16
+ }
17
+ else {
18
+ return (0, selection_1.$isAtNodeEnd)(anchor) ? anchorNode : focusNode;
19
+ }
20
+ }
21
+ //# sourceMappingURL=getSelectedNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSelectedNode.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/utils/getSelectedNode.ts"],"names":[],"mappings":";;AAGA,0CAcC;AAjBD,gDAAiD;AAGjD,SAAgB,eAAe,CAAC,SAAyB;IACvD,IAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAA;IAC/B,IAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAA;IAC7B,IAAM,UAAU,GAAG,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;IAC7C,IAAM,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,CAAA;IAC3C,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QAC7B,OAAO,UAAU,CAAA;IACnB,CAAC;IACD,IAAM,UAAU,GAAG,SAAS,CAAC,UAAU,EAAE,CAAA;IACzC,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,IAAA,wBAAY,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAA;IACrD,CAAC;SAAM,CAAC;QACN,OAAO,IAAA,wBAAY,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAA;IACtD,CAAC;AACH,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function isHTMLElement(x: unknown): x is HTMLElement;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isHTMLElement = isHTMLElement;
4
+ function isHTMLElement(x) {
5
+ return x instanceof HTMLElement;
6
+ }
7
+ //# sourceMappingURL=guard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guard.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/utils/guard.ts"],"names":[],"mappings":";;AAAA,sCAEC;AAFD,SAAgB,aAAa,CAAC,CAAU;IACtC,OAAO,CAAC,YAAY,WAAW,CAAA;AACjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=isMobileWidth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMobileWidth.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/utils/isMobileWidth.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export default function joinClasses(...args: Array<string | boolean | null | undefined>): string;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = joinClasses;
4
+ function joinClasses() {
5
+ var args = [];
6
+ for (var _i = 0; _i < arguments.length; _i++) {
7
+ args[_i] = arguments[_i];
8
+ }
9
+ return args.filter(Boolean).join(' ');
10
+ }
11
+ //# sourceMappingURL=joinClasses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"joinClasses.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/utils/joinClasses.ts"],"names":[],"mappings":";;AAAA,8BAEC;AAFD,SAAwB,WAAW;IAAC,cAAmD;SAAnD,UAAmD,EAAnD,qBAAmD,EAAnD,IAAmD;QAAnD,yBAAmD;;IACrF,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACvC,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare class Point {
2
+ private readonly _x;
3
+ private readonly _y;
4
+ constructor(x: number, y: number);
5
+ private get x();
6
+ private get y();
7
+ equals({ x, y }: Point): boolean;
8
+ calcDeltaXTo({ x }: Point): number;
9
+ calcDeltaYTo({ y }: Point): number;
10
+ calcHorizontalDistanceTo(point: Point): number;
11
+ calcVerticalDistance(point: Point): number;
12
+ calcDistanceTo(point: Point): number;
13
+ }
14
+ export declare function isPoint(x: unknown): x is Point;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Point = void 0;
4
+ exports.isPoint = isPoint;
5
+ var Point = /** @class */ (function () {
6
+ function Point(x, y) {
7
+ this._x = x;
8
+ this._y = y;
9
+ }
10
+ Object.defineProperty(Point.prototype, "x", {
11
+ get: function () {
12
+ return this._x;
13
+ },
14
+ enumerable: false,
15
+ configurable: true
16
+ });
17
+ Object.defineProperty(Point.prototype, "y", {
18
+ get: function () {
19
+ return this._y;
20
+ },
21
+ enumerable: false,
22
+ configurable: true
23
+ });
24
+ Point.prototype.equals = function (_a) {
25
+ var x = _a.x, y = _a.y;
26
+ return this.x === x && this.y === y;
27
+ };
28
+ Point.prototype.calcDeltaXTo = function (_a) {
29
+ var x = _a.x;
30
+ return this.x - x;
31
+ };
32
+ Point.prototype.calcDeltaYTo = function (_a) {
33
+ var y = _a.y;
34
+ return this.y - y;
35
+ };
36
+ Point.prototype.calcHorizontalDistanceTo = function (point) {
37
+ return Math.abs(this.calcDeltaXTo(point));
38
+ };
39
+ Point.prototype.calcVerticalDistance = function (point) {
40
+ return Math.abs(this.calcDeltaYTo(point));
41
+ };
42
+ Point.prototype.calcDistanceTo = function (point) {
43
+ return Math.sqrt(Math.pow(this.calcDeltaXTo(point), 2) + Math.pow(this.calcDeltaYTo(point), 2));
44
+ };
45
+ return Point;
46
+ }());
47
+ exports.Point = Point;
48
+ function isPoint(x) {
49
+ return x instanceof Point;
50
+ }
51
+ //# sourceMappingURL=point.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"point.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/utils/point.ts"],"names":[],"mappings":";;;AA0CA,0BAEC;AA5CD;IAIE,eAAY,CAAS,EAAE,CAAS;QAC9B,IAAI,CAAC,EAAE,GAAG,CAAC,CAAA;QACX,IAAI,CAAC,EAAE,GAAG,CAAC,CAAA;IACb,CAAC;IAED,sBAAY,oBAAC;aAAb;YACE,OAAO,IAAI,CAAC,EAAE,CAAA;QAChB,CAAC;;;OAAA;IAED,sBAAY,oBAAC;aAAb;YACE,OAAO,IAAI,CAAC,EAAE,CAAA;QAChB,CAAC;;;OAAA;IAEM,sBAAM,GAAb,UAAc,EAAe;YAAb,CAAC,OAAA,EAAE,CAAC,OAAA;QAClB,OAAO,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,CAAA;IACrC,CAAC;IAEM,4BAAY,GAAnB,UAAoB,EAAY;YAAV,CAAC,OAAA;QACrB,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,CAAA;IACnB,CAAC;IAEM,4BAAY,GAAnB,UAAoB,EAAY;YAAV,CAAC,OAAA;QACrB,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,CAAA;IACnB,CAAC;IAEM,wCAAwB,GAA/B,UAAgC,KAAY;QAC1C,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAA;IAC3C,CAAC;IAEM,oCAAoB,GAA3B,UAA4B,KAAY;QACtC,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAA;IAC3C,CAAC;IAEM,8BAAc,GAArB,UAAsB,KAAY;QAChC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;IACjG,CAAC;IACH,YAAC;AAAD,CAAC,AAxCD,IAwCC;AAxCY,sBAAK;AA0ClB,SAAgB,OAAO,CAAC,CAAU;IAChC,OAAO,CAAC,YAAY,KAAK,CAAA;AAC3B,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { Point } from './point';
2
+ type ContainsPointReturn = {
3
+ result: boolean;
4
+ reason: {
5
+ isOnTopSide: boolean;
6
+ isOnBottomSide: boolean;
7
+ isOnLeftSide: boolean;
8
+ isOnRightSide: boolean;
9
+ };
10
+ };
11
+ export declare class Rect {
12
+ private readonly _left;
13
+ private readonly _top;
14
+ private readonly _right;
15
+ private readonly _bottom;
16
+ constructor(left: number, top: number, right: number, bottom: number);
17
+ get top(): number;
18
+ get right(): number;
19
+ get bottom(): number;
20
+ get left(): number;
21
+ get width(): number;
22
+ private get height();
23
+ equals({ bottom, left, right, top }: Rect): boolean;
24
+ contains({ x, y }: Point): ContainsPointReturn;
25
+ contains({ bottom, left, right, top }: Rect): boolean;
26
+ intersectsWith(rect: Rect): boolean;
27
+ generateNewRect({ bottom, left, right, top }: {
28
+ bottom?: number | undefined;
29
+ left?: number | undefined;
30
+ right?: number | undefined;
31
+ top?: number | undefined;
32
+ }): Rect;
33
+ private static fromLTRB;
34
+ private static fromLWTH;
35
+ private static fromPoints;
36
+ static fromDOM(dom: HTMLElement): Rect;
37
+ }
38
+ export {};
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Rect = void 0;
4
+ var point_1 = require("./point");
5
+ var Rect = /** @class */ (function () {
6
+ function Rect(left, top, right, bottom) {
7
+ var _a = top <= bottom ? [top, bottom] : [bottom, top], physicTop = _a[0], physicBottom = _a[1];
8
+ var _b = left <= right ? [left, right] : [right, left], physicLeft = _b[0], physicRight = _b[1];
9
+ this._top = physicTop;
10
+ this._right = physicRight;
11
+ this._left = physicLeft;
12
+ this._bottom = physicBottom;
13
+ }
14
+ Object.defineProperty(Rect.prototype, "top", {
15
+ get: function () {
16
+ return this._top;
17
+ },
18
+ enumerable: false,
19
+ configurable: true
20
+ });
21
+ Object.defineProperty(Rect.prototype, "right", {
22
+ get: function () {
23
+ return this._right;
24
+ },
25
+ enumerable: false,
26
+ configurable: true
27
+ });
28
+ Object.defineProperty(Rect.prototype, "bottom", {
29
+ get: function () {
30
+ return this._bottom;
31
+ },
32
+ enumerable: false,
33
+ configurable: true
34
+ });
35
+ Object.defineProperty(Rect.prototype, "left", {
36
+ get: function () {
37
+ return this._left;
38
+ },
39
+ enumerable: false,
40
+ configurable: true
41
+ });
42
+ Object.defineProperty(Rect.prototype, "width", {
43
+ get: function () {
44
+ return Math.abs(this._left - this._right);
45
+ },
46
+ enumerable: false,
47
+ configurable: true
48
+ });
49
+ Object.defineProperty(Rect.prototype, "height", {
50
+ get: function () {
51
+ return Math.abs(this._bottom - this._top);
52
+ },
53
+ enumerable: false,
54
+ configurable: true
55
+ });
56
+ Rect.prototype.equals = function (_a) {
57
+ var bottom = _a.bottom, left = _a.left, right = _a.right, top = _a.top;
58
+ return top === this._top && bottom === this._bottom && left === this._left && right === this._right;
59
+ };
60
+ Rect.prototype.contains = function (target) {
61
+ if ((0, point_1.isPoint)(target)) {
62
+ // @ts-ignore
63
+ var x = target.x, y = target.y;
64
+ var isOnTopSide = y < this._top;
65
+ var isOnBottomSide = y > this._bottom;
66
+ var isOnLeftSide = x < this._left;
67
+ var isOnRightSide = x > this._right;
68
+ var result = !isOnTopSide && !isOnBottomSide && !isOnLeftSide && !isOnRightSide;
69
+ return {
70
+ reason: {
71
+ isOnBottomSide: isOnBottomSide,
72
+ isOnLeftSide: isOnLeftSide,
73
+ isOnRightSide: isOnRightSide,
74
+ isOnTopSide: isOnTopSide,
75
+ },
76
+ result: result,
77
+ };
78
+ }
79
+ else {
80
+ var bottom = target.bottom, left = target.left, right = target.right, top_1 = target.top;
81
+ return (top_1 >= this._top &&
82
+ top_1 <= this._bottom &&
83
+ bottom >= this._top &&
84
+ bottom <= this._bottom &&
85
+ left >= this._left &&
86
+ left <= this._right &&
87
+ right >= this._left &&
88
+ right <= this._right);
89
+ }
90
+ };
91
+ Rect.prototype.intersectsWith = function (rect) {
92
+ var h1 = rect.height, x1 = rect.left, y1 = rect.top, w1 = rect.width;
93
+ var _a = this, h2 = _a.height, x2 = _a.left, y2 = _a.top, w2 = _a.width;
94
+ var maxX = x1 + w1 >= x2 + w2 ? x1 + w1 : x2 + w2;
95
+ var maxY = y1 + h1 >= y2 + h2 ? y1 + h1 : y2 + h2;
96
+ var minX = x1 <= x2 ? x1 : x2;
97
+ var minY = y1 <= y2 ? y1 : y2;
98
+ return maxX - minX <= w1 + w2 && maxY - minY <= h1 + h2;
99
+ };
100
+ Rect.prototype.generateNewRect = function (_a) {
101
+ var _b = _a.bottom, bottom = _b === void 0 ? this.bottom : _b, _c = _a.left, left = _c === void 0 ? this.left : _c, _d = _a.right, right = _d === void 0 ? this.right : _d, _e = _a.top, top = _e === void 0 ? this.top : _e;
102
+ return new Rect(left, top, right, bottom);
103
+ };
104
+ Rect.fromLTRB = function (left, top, right, bottom) {
105
+ return new Rect(left, top, right, bottom);
106
+ };
107
+ Rect.fromLWTH = function (left, width, top, height) {
108
+ return new Rect(left, top, left + width, top + height);
109
+ };
110
+ // @ts-ignore
111
+ Rect.fromPoints = function (startPoint, endPoint) {
112
+ // @ts-ignore
113
+ var left = startPoint.x, top = startPoint.y;
114
+ // @ts-ignore
115
+ var right = endPoint.x, bottom = endPoint.y;
116
+ return Rect.fromLTRB(left, top, right, bottom);
117
+ };
118
+ Rect.fromDOM = function (dom) {
119
+ var _a = dom.getBoundingClientRect(), height = _a.height, left = _a.left, top = _a.top, width = _a.width;
120
+ return Rect.fromLWTH(left, width, top, height);
121
+ };
122
+ return Rect;
123
+ }());
124
+ exports.Rect = Rect;
125
+ //# sourceMappingURL=rect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rect.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/utils/rect.ts"],"names":[],"mappings":";;;AAAA,iCAAwC;AAYxC;IAME,cAAY,IAAY,EAAE,GAAW,EAAE,KAAa,EAAE,MAAc;QAC5D,IAAA,KAA4B,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,EAAxE,SAAS,QAAA,EAAE,YAAY,QAAiD,CAAA;QAEzE,IAAA,KAA4B,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,EAAxE,UAAU,QAAA,EAAE,WAAW,QAAiD,CAAA;QAE/E,IAAI,CAAC,IAAI,GAAG,SAAS,CAAA;QACrB,IAAI,CAAC,MAAM,GAAG,WAAW,CAAA;QACzB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAA;QACvB,IAAI,CAAC,OAAO,GAAG,YAAY,CAAA;IAC7B,CAAC;IAED,sBAAW,qBAAG;aAAd;YACE,OAAO,IAAI,CAAC,IAAI,CAAA;QAClB,CAAC;;;OAAA;IAED,sBAAW,uBAAK;aAAhB;YACE,OAAO,IAAI,CAAC,MAAM,CAAA;QACpB,CAAC;;;OAAA;IAED,sBAAW,wBAAM;aAAjB;YACE,OAAO,IAAI,CAAC,OAAO,CAAA;QACrB,CAAC;;;OAAA;IAED,sBAAW,sBAAI;aAAf;YACE,OAAO,IAAI,CAAC,KAAK,CAAA;QACnB,CAAC;;;OAAA;IAED,sBAAW,uBAAK;aAAhB;YACE,OAAO,IAAI,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EAAE,IAAI,UAAA,EAAE,GAAG,SAAA,EAAE,KAAK,WAAgC,CAAA;QAChE,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,CAAC,CAAA;IAChD,CAAC;IACH,WAAC;AAAD,CAAC,AAxHD,IAwHC;AAxHY,oBAAI"}
@@ -0,0 +1 @@
1
+ export declare function setFloatingElemPosition(targetRect: DOMRect | null, floatingElem: HTMLElement, anchorElem: HTMLElement, isLink?: boolean, verticalGap?: number, horizontalOffset?: number): void;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setFloatingElemPosition = setFloatingElemPosition;
4
+ var VERTICAL_GAP = 10;
5
+ var HORIZONTAL_OFFSET = 5;
6
+ function setFloatingElemPosition(targetRect, floatingElem, anchorElem, isLink, verticalGap, horizontalOffset) {
7
+ if (isLink === void 0) { isLink = false; }
8
+ if (verticalGap === void 0) { verticalGap = VERTICAL_GAP; }
9
+ if (horizontalOffset === void 0) { horizontalOffset = HORIZONTAL_OFFSET; }
10
+ var scrollerElem = anchorElem.parentElement;
11
+ if (targetRect === null || !scrollerElem) {
12
+ floatingElem.style.opacity = '0';
13
+ floatingElem.style.transform = 'translate(-10000px, -10000px)';
14
+ return;
15
+ }
16
+ var floatingElemRect = floatingElem.getBoundingClientRect();
17
+ var anchorElementRect = anchorElem.getBoundingClientRect();
18
+ var editorScrollerRect = scrollerElem.getBoundingClientRect();
19
+ var top = targetRect.top - floatingElemRect.height - verticalGap;
20
+ var left = targetRect.left - horizontalOffset;
21
+ if (top < editorScrollerRect.top) {
22
+ // adjusted height for link element if the element is at top
23
+ top += floatingElemRect.height + targetRect.height + verticalGap * (isLink ? 9 : 2);
24
+ }
25
+ if (left + floatingElemRect.width > editorScrollerRect.right) {
26
+ left = editorScrollerRect.right - floatingElemRect.width - horizontalOffset;
27
+ }
28
+ top -= anchorElementRect.top;
29
+ left -= anchorElementRect.left;
30
+ floatingElem.style.opacity = '1';
31
+ floatingElem.style.transform = "translate(".concat(left, "px, ").concat(top, "px)");
32
+ }
33
+ //# sourceMappingURL=setFloatingElemPosition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setFloatingElemPosition.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/utils/setFloatingElemPosition.ts"],"names":[],"mappings":";;AAGA,0DAqCC;AAxCD,IAAM,YAAY,GAAG,EAAE,CAAA;AACvB,IAAM,iBAAiB,GAAG,CAAC,CAAA;AAE3B,SAAgB,uBAAuB,CACrC,UAA0B,EAC1B,YAAyB,EACzB,UAAuB,EACvB,MAAc,EACd,WAAkC,EAClC,gBAA4C;IAF5C,uBAAA,EAAA,cAAc;IACd,4BAAA,EAAA,0BAAkC;IAClC,iCAAA,EAAA,oCAA4C;IAE5C,IAAM,YAAY,GAAG,UAAU,CAAC,aAAa,CAAA;IAE7C,IAAI,UAAU,KAAK,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;QACzC,YAAY,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAA;QAChC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,+BAA+B,CAAA;QAC9D,OAAM;IACR,CAAC;IAED,IAAM,gBAAgB,GAAG,YAAY,CAAC,qBAAqB,EAAE,CAAA;IAC7D,IAAM,iBAAiB,GAAG,UAAU,CAAC,qBAAqB,EAAE,CAAA;IAC5D,IAAM,kBAAkB,GAAG,YAAY,CAAC,qBAAqB,EAAE,CAAA;IAE/D,IAAI,GAAG,GAAG,UAAU,CAAC,GAAG,GAAG,gBAAgB,CAAC,MAAM,GAAG,WAAW,CAAA;IAChE,IAAI,IAAI,GAAG,UAAU,CAAC,IAAI,GAAG,gBAAgB,CAAA;IAE7C,IAAI,GAAG,GAAG,kBAAkB,CAAC,GAAG,EAAE,CAAC;QACjC,4DAA4D;QAC5D,GAAG,IAAI,gBAAgB,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,GAAG,WAAW,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACrF,CAAC;IAED,IAAI,IAAI,GAAG,gBAAgB,CAAC,KAAK,GAAG,kBAAkB,CAAC,KAAK,EAAE,CAAC;QAC7D,IAAI,GAAG,kBAAkB,CAAC,KAAK,GAAG,gBAAgB,CAAC,KAAK,GAAG,gBAAgB,CAAA;IAC7E,CAAC;IAED,GAAG,IAAI,iBAAiB,CAAC,GAAG,CAAA;IAC5B,IAAI,IAAI,iBAAiB,CAAC,IAAI,CAAA;IAE9B,YAAY,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAA;IAChC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,oBAAa,IAAI,iBAAO,GAAG,QAAK,CAAA;AACjE,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function setFloatingElemPositionForLinkEditor(targetRect: DOMRect | null, floatingElem: HTMLElement, anchorElem: HTMLElement, verticalGap?: number, horizontalOffset?: number): void;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setFloatingElemPositionForLinkEditor = setFloatingElemPositionForLinkEditor;
4
+ var VERTICAL_GAP = 10;
5
+ var HORIZONTAL_OFFSET = 5;
6
+ function setFloatingElemPositionForLinkEditor(targetRect, floatingElem, anchorElem, verticalGap, horizontalOffset) {
7
+ if (verticalGap === void 0) { verticalGap = VERTICAL_GAP; }
8
+ if (horizontalOffset === void 0) { horizontalOffset = HORIZONTAL_OFFSET; }
9
+ var scrollerElem = anchorElem.parentElement;
10
+ if (targetRect === null || !scrollerElem) {
11
+ floatingElem.style.opacity = '0';
12
+ floatingElem.style.transform = 'translate(-10000px, -10000px)';
13
+ return;
14
+ }
15
+ var floatingElemRect = floatingElem.getBoundingClientRect();
16
+ var anchorElementRect = anchorElem.getBoundingClientRect();
17
+ var editorScrollerRect = scrollerElem.getBoundingClientRect();
18
+ var top = targetRect.top - verticalGap;
19
+ var left = targetRect.left - horizontalOffset;
20
+ if (top < editorScrollerRect.top) {
21
+ top += floatingElemRect.height + targetRect.height + verticalGap * 2;
22
+ }
23
+ if (left + floatingElemRect.width > editorScrollerRect.right) {
24
+ left = editorScrollerRect.right - floatingElemRect.width - horizontalOffset;
25
+ }
26
+ top -= anchorElementRect.top;
27
+ left -= anchorElementRect.left;
28
+ floatingElem.style.opacity = '1';
29
+ floatingElem.style.transform = "translate(".concat(left, "px, ").concat(top, "px)");
30
+ }
31
+ //# sourceMappingURL=setFloatingElemPositionForLinkEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setFloatingElemPositionForLinkEditor.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.ts"],"names":[],"mappings":";;AAGA,oFAmCC;AAtCD,IAAM,YAAY,GAAG,EAAE,CAAA;AACvB,IAAM,iBAAiB,GAAG,CAAC,CAAA;AAE3B,SAAgB,oCAAoC,CAClD,UAA0B,EAC1B,YAAyB,EACzB,UAAuB,EACvB,WAAkC,EAClC,gBAA4C;IAD5C,4BAAA,EAAA,0BAAkC;IAClC,iCAAA,EAAA,oCAA4C;IAE5C,IAAM,YAAY,GAAG,UAAU,CAAC,aAAa,CAAA;IAE7C,IAAI,UAAU,KAAK,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;QACzC,YAAY,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAA;QAChC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,+BAA+B,CAAA;QAC9D,OAAM;IACR,CAAC;IAED,IAAM,gBAAgB,GAAG,YAAY,CAAC,qBAAqB,EAAE,CAAA;IAC7D,IAAM,iBAAiB,GAAG,UAAU,CAAC,qBAAqB,EAAE,CAAA;IAC5D,IAAM,kBAAkB,GAAG,YAAY,CAAC,qBAAqB,EAAE,CAAA;IAE/D,IAAI,GAAG,GAAG,UAAU,CAAC,GAAG,GAAG,WAAW,CAAA;IACtC,IAAI,IAAI,GAAG,UAAU,CAAC,IAAI,GAAG,gBAAgB,CAAA;IAE7C,IAAI,GAAG,GAAG,kBAAkB,CAAC,GAAG,EAAE,CAAC;QACjC,GAAG,IAAI,gBAAgB,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,GAAG,WAAW,GAAG,CAAC,CAAA;IACtE,CAAC;IAED,IAAI,IAAI,GAAG,gBAAgB,CAAC,KAAK,GAAG,kBAAkB,CAAC,KAAK,EAAE,CAAC;QAC7D,IAAI,GAAG,kBAAkB,CAAC,KAAK,GAAG,gBAAgB,CAAC,KAAK,GAAG,gBAAgB,CAAA;IAC7E,CAAC;IAED,GAAG,IAAI,iBAAiB,CAAC,GAAG,CAAA;IAC5B,IAAI,IAAI,iBAAiB,CAAC,IAAI,CAAA;IAE9B,YAAY,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAA;IAChC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,oBAAa,IAAI,iBAAO,GAAG,QAAK,CAAA;AACjE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare function addSwipeLeftListener(element: HTMLElement, cb: (_force: number, e: TouchEvent) => void): () => void;
2
+ export declare function addSwipeRightListener(element: HTMLElement, cb: (_force: number, e: TouchEvent) => void): () => void;
3
+ export declare function addSwipeUpListener(element: HTMLElement, cb: (_force: number, e: TouchEvent) => void): () => void;
4
+ export declare function addSwipeDownListener(element: HTMLElement, cb: (_force: number, e: TouchEvent) => void): () => void;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addSwipeLeftListener = addSwipeLeftListener;
4
+ exports.addSwipeRightListener = addSwipeRightListener;
5
+ exports.addSwipeUpListener = addSwipeUpListener;
6
+ exports.addSwipeDownListener = addSwipeDownListener;
7
+ var elements = new WeakMap();
8
+ function readTouch(e) {
9
+ var touch = e.changedTouches[0];
10
+ if (touch === undefined) {
11
+ return null;
12
+ }
13
+ return [touch.clientX, touch.clientY];
14
+ }
15
+ function addListener(element, cb) {
16
+ var elementValues = elements.get(element);
17
+ if (elementValues === undefined) {
18
+ var listeners_1 = new Set();
19
+ var handleTouchstart = function (e) {
20
+ if (elementValues !== undefined) {
21
+ elementValues.start = readTouch(e);
22
+ }
23
+ };
24
+ var handleTouchend = function (e) {
25
+ if (elementValues === undefined) {
26
+ return;
27
+ }
28
+ var start = elementValues.start;
29
+ if (start === null) {
30
+ return;
31
+ }
32
+ var end = readTouch(e);
33
+ listeners_1.forEach(function (listener) {
34
+ if (end !== null) {
35
+ listener([end[0] - start[0], end[1] - start[1]], e);
36
+ }
37
+ });
38
+ };
39
+ element.addEventListener('touchstart', handleTouchstart);
40
+ element.addEventListener('touchend', handleTouchend);
41
+ elementValues = {
42
+ handleTouchend: handleTouchend,
43
+ handleTouchstart: handleTouchstart,
44
+ listeners: listeners_1,
45
+ start: null,
46
+ };
47
+ elements.set(element, elementValues);
48
+ }
49
+ elementValues.listeners.add(cb);
50
+ return function () { return deleteListener(element, cb); };
51
+ }
52
+ function deleteListener(element, cb) {
53
+ var elementValues = elements.get(element);
54
+ if (elementValues === undefined) {
55
+ return;
56
+ }
57
+ var listeners = elementValues.listeners;
58
+ listeners.delete(cb);
59
+ if (listeners.size === 0) {
60
+ elements.delete(element);
61
+ element.removeEventListener('touchstart', elementValues.handleTouchstart);
62
+ element.removeEventListener('touchend', elementValues.handleTouchend);
63
+ }
64
+ }
65
+ function addSwipeLeftListener(element, cb) {
66
+ return addListener(element, function (force, e) {
67
+ var x = force[0], y = force[1];
68
+ if (x < 0 && -x > Math.abs(y)) {
69
+ cb(x, e);
70
+ }
71
+ });
72
+ }
73
+ function addSwipeRightListener(element, cb) {
74
+ return addListener(element, function (force, e) {
75
+ var x = force[0], y = force[1];
76
+ if (x > 0 && x > Math.abs(y)) {
77
+ cb(x, e);
78
+ }
79
+ });
80
+ }
81
+ function addSwipeUpListener(element, cb) {
82
+ return addListener(element, function (force, e) {
83
+ var x = force[0], y = force[1];
84
+ if (y < 0 && -y > Math.abs(x)) {
85
+ cb(x, e);
86
+ }
87
+ });
88
+ }
89
+ function addSwipeDownListener(element, cb) {
90
+ return addListener(element, function (force, e) {
91
+ var x = force[0], y = force[1];
92
+ if (y > 0 && y > Math.abs(x)) {
93
+ cb(x, e);
94
+ }
95
+ });
96
+ }
97
+ //# sourceMappingURL=swipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipe.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/utils/swipe.ts"],"names":[],"mappings":";;AAwEA,oDAOC;AAED,sDAOC;AAED,gDAOC;AAED,oDAOC;AAjGD,IAAM,QAAQ,GAAG,IAAI,OAAO,EAA8B,CAAA;AAE1D,SAAS,SAAS,CAAC,CAAa;IAC9B,IAAM,KAAK,GAAG,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAA;IACjC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;AACvC,CAAC;AAED,SAAS,WAAW,CAAC,OAAoB,EAAE,EAAY;IACrD,IAAI,aAAa,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IACzC,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAChC,IAAM,WAAS,GAAG,IAAI,GAAG,EAAY,CAAA;QACrC,IAAM,gBAAgB,GAAG,UAAC,CAAa;YACrC,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;gBAChC,aAAa,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;YACpC,CAAC;QACH,CAAC,CAAA;QACD,IAAM,cAAc,GAAG,UAAC,CAAa;YACnC,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;gBAChC,OAAM;YACR,CAAC;YACD,IAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAA;YACjC,IAAI,KA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YAC9B,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QACV,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,SAAgB,oBAAoB,CAAC,OAAoB,EAAE,EAA2C;IACpG,OAAO,WAAW,CAAC,OAAO,EAAE,UAAC,KAAK,EAAE,CAAC;QAC5B,IAAA,CAAC,GAAO,KAAK,GAAZ,EAAE,CAAC,GAAI,KAAK,GAAT,CAAS;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7B,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QACV,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function sanitizeUrl(url: string): string;
2
+ export declare function validateUrl(url: string): boolean;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sanitizeUrl = sanitizeUrl;
4
+ exports.validateUrl = validateUrl;
5
+ var SUPPORTED_URL_PROTOCOLS = new Set(['http:', 'https:', 'mailto:', 'sms:', 'tel:']);
6
+ function sanitizeUrl(url) {
7
+ try {
8
+ var parsedUrl = new URL(url);
9
+ // eslint-disable-next-line no-script-url
10
+ if (!SUPPORTED_URL_PROTOCOLS.has(parsedUrl.protocol)) {
11
+ return 'about:blank';
12
+ }
13
+ }
14
+ catch (_a) {
15
+ return url;
16
+ }
17
+ return url;
18
+ }
19
+ // Source: https://stackoverflow.com/a/8234912/2013580
20
+ var urlRegExp = new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/);
21
+ function validateUrl(url) {
22
+ // TODO Fix UI for link insertion; it should never default to an invalid URL such as https://.
23
+ // Maybe show a dialog where they user can type the URL before inserting it.
24
+ return url === 'https://' || urlRegExp.test(url);
25
+ }
26
+ //# sourceMappingURL=url.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/utils/url.ts"],"names":[],"mappings":";;AAEA,kCAWC;AAMD,kCAIC;AAvBD,IAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAEvF,SAAgB,WAAW,CAAC,GAAW;IACrC,IAAI,CAAC;QACH,IAAM,SAAS,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAA;QAC9B,yCAAyC;QACzC,IAAI,CAAC,uBAAuB,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;YACrD,OAAO,aAAa,CAAA;QACtB,CAAC;IACH,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,GAAG,CAAA;IACZ,CAAC;IACD,OAAO,GAAG,CAAA;AACZ,CAAC;AAED,sDAAsD;AACtD,IAAM,SAAS,GAAG,IAAI,MAAM,CAC1B,4JAA4J,CAC7J,CAAA;AACD,SAAgB,WAAW,CAAC,GAAW;IACrC,8FAA8F;IAC9F,4EAA4E;IAC5E,OAAO,GAAG,KAAK,UAAU,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAClD,CAAC"}