phx-react 1.3.1570 → 1.3.1571

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (847) hide show
  1. package/dist/cjs/components/TextEditorV2/commenting/index.d.ts +41 -0
  2. package/dist/cjs/components/TextEditorV2/commenting/index.js +340 -0
  3. package/dist/cjs/components/TextEditorV2/commenting/index.js.map +1 -0
  4. package/dist/cjs/components/TextEditorV2/constants.d.ts +1 -0
  5. package/dist/cjs/components/TextEditorV2/constants.js +5 -0
  6. package/dist/cjs/components/TextEditorV2/constants.js.map +1 -0
  7. package/dist/cjs/components/TextEditorV2/context/SettingsContext.d.ts +12 -0
  8. package/dist/cjs/components/TextEditorV2/context/SettingsContext.js +59 -0
  9. package/dist/cjs/components/TextEditorV2/context/SettingsContext.js.map +1 -0
  10. package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.d.ts +10 -0
  11. package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.js +50 -0
  12. package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.js.map +1 -0
  13. package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.d.ts +11 -0
  14. package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.js +17 -0
  15. package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.js.map +1 -0
  16. package/dist/cjs/components/TextEditorV2/editor.d.ts +10 -0
  17. package/dist/cjs/components/TextEditorV2/editor.js +203 -0
  18. package/dist/cjs/components/TextEditorV2/editor.js.map +1 -0
  19. package/dist/cjs/components/TextEditorV2/hooks/useModal.d.ts +5 -0
  20. package/dist/cjs/components/TextEditorV2/hooks/useModal.js +32 -0
  21. package/dist/cjs/components/TextEditorV2/hooks/useModal.js.map +1 -0
  22. package/dist/cjs/components/TextEditorV2/hooks/useReport.d.ts +1 -0
  23. package/dist/cjs/components/TextEditorV2/hooks/useReport.js +45 -0
  24. package/dist/cjs/components/TextEditorV2/hooks/useReport.js.map +1 -0
  25. package/dist/cjs/components/TextEditorV2/lib/Settings.d.ts +2 -0
  26. package/dist/cjs/components/TextEditorV2/lib/Settings.js +52 -0
  27. package/dist/cjs/components/TextEditorV2/lib/Settings.js.map +1 -0
  28. package/dist/cjs/components/TextEditorV2/lib/appSettings.d.ts +19 -0
  29. package/dist/cjs/components/TextEditorV2/lib/appSettings.js +21 -0
  30. package/dist/cjs/components/TextEditorV2/lib/appSettings.js.map +1 -0
  31. package/dist/cjs/components/TextEditorV2/lib/collaboration.d.ts +3 -0
  32. package/dist/cjs/components/TextEditorV2/lib/collaboration.js +26 -0
  33. package/dist/cjs/components/TextEditorV2/lib/collaboration.js.map +1 -0
  34. package/dist/cjs/components/TextEditorV2/lib/setupEnv.d.ts +1 -0
  35. package/dist/cjs/components/TextEditorV2/lib/setupEnv.js +23 -0
  36. package/dist/cjs/components/TextEditorV2/lib/setupEnv.js.map +1 -0
  37. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.d.ts +25 -0
  38. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.js +58 -0
  39. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.js.map +1 -0
  40. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.d.ts +18 -0
  41. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.js +62 -0
  42. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.js.map +1 -0
  43. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.d.ts +9 -0
  44. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.js +72 -0
  45. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.js.map +1 -0
  46. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.d.ts +26 -0
  47. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.js +126 -0
  48. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.js.map +1 -0
  49. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.d.ts +6 -0
  50. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js +117 -0
  51. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js.map +1 -0
  52. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.d.ts +50 -0
  53. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js +59 -0
  54. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js.map +1 -0
  55. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.d.ts +44 -0
  56. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js +143 -0
  57. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js.map +1 -0
  58. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.d.ts +22 -0
  59. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.js +103 -0
  60. package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.js.map +1 -0
  61. package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.d.ts +12 -0
  62. package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.js +106 -0
  63. package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.js.map +1 -0
  64. package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.d.ts +19 -0
  65. package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.js +63 -0
  66. package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.js.map +1 -0
  67. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.d.ts +14 -0
  68. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.js +212 -0
  69. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.js.map +1 -0
  70. package/dist/cjs/components/TextEditorV2/nodes/ImageNode.d.ts +56 -0
  71. package/dist/cjs/components/TextEditorV2/nodes/ImageNode.js +136 -0
  72. package/dist/cjs/components/TextEditorV2/nodes/ImageNode.js.map +1 -0
  73. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.d.ts +18 -0
  74. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.js +194 -0
  75. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.js.map +1 -0
  76. package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.d.ts +54 -0
  77. package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.js +142 -0
  78. package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.js.map +1 -0
  79. package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.d.ts +15 -0
  80. package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.js +54 -0
  81. package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.js.map +1 -0
  82. package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.d.ts +21 -0
  83. package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.js +63 -0
  84. package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.js.map +1 -0
  85. package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.d.ts +15 -0
  86. package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.js +51 -0
  87. package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.js.map +1 -0
  88. package/dist/cjs/components/TextEditorV2/nodes/MentionNode.d.ts +20 -0
  89. package/dist/cjs/components/TextEditorV2/nodes/MentionNode.js +89 -0
  90. package/dist/cjs/components/TextEditorV2/nodes/MentionNode.js.map +1 -0
  91. package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.d.ts +17 -0
  92. package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.js +113 -0
  93. package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.js.map +1 -0
  94. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.d.ts +3 -0
  95. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.js +68 -0
  96. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.js.map +1 -0
  97. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.d.ts +8 -0
  98. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.js +113 -0
  99. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.js.map +1 -0
  100. package/dist/cjs/components/TextEditorV2/nodes/PollNode.d.ts +33 -0
  101. package/dist/cjs/components/TextEditorV2/nodes/PollNode.js +149 -0
  102. package/dist/cjs/components/TextEditorV2/nodes/PollNode.js.map +1 -0
  103. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.d.ts +9 -0
  104. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.js +167 -0
  105. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.js.map +1 -0
  106. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.d.ts +37 -0
  107. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.js +94 -0
  108. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.js.map +1 -0
  109. package/dist/cjs/components/TextEditorV2/nodes/TableNode.d.ts +54 -0
  110. package/dist/cjs/components/TextEditorV2/nodes/TableNode.js +198 -0
  111. package/dist/cjs/components/TextEditorV2/nodes/TableNode.js.map +1 -0
  112. package/dist/cjs/components/TextEditorV2/nodes/TweetNode.d.ts +28 -0
  113. package/dist/cjs/components/TextEditorV2/nodes/TweetNode.js +156 -0
  114. package/dist/cjs/components/TextEditorV2/nodes/TweetNode.js.map +1 -0
  115. package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.d.ts +28 -0
  116. package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.js +103 -0
  117. package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.js.map +1 -0
  118. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.d.ts +2 -0
  119. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.js +183 -0
  120. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.js.map +1 -0
  121. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.d.ts +19 -0
  122. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js +179 -0
  123. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js.map +1 -0
  124. package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.d.ts +2 -0
  125. package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.js +16 -0
  126. package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.js.map +1 -0
  127. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.d.ts +2 -0
  128. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.js +2465 -0
  129. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.js.map +1 -0
  130. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +8 -0
  131. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +55 -0
  132. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -0
  133. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +10 -0
  134. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +159 -0
  135. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -0
  136. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.d.ts +4 -0
  137. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js +111 -0
  138. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js.map +1 -0
  139. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
  140. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js +21 -0
  141. package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js.map +1 -0
  142. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.d.ts +1 -0
  143. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js +12 -0
  144. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js.map +1 -0
  145. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.d.ts +23 -0
  146. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +88 -0
  147. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +1 -0
  148. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.d.ts +17 -0
  149. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js +70 -0
  150. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +1 -0
  151. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.d.ts +18 -0
  152. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +95 -0
  153. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +1 -0
  154. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.d.ts +3 -0
  155. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.js +148 -0
  156. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.js.map +1 -0
  157. package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.d.ts +2 -0
  158. package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js +264 -0
  159. package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js.map +1 -0
  160. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.d.ts +11 -0
  161. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.js +171 -0
  162. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.js.map +1 -0
  163. package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.d.ts +2 -0
  164. package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.js +10 -0
  165. package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.js.map +1 -0
  166. package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.d.ts +1 -0
  167. package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.js +44 -0
  168. package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.js.map +1 -0
  169. package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.d.ts +4 -0
  170. package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js +288 -0
  171. package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js.map +1 -0
  172. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.d.ts +2 -0
  173. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js +97 -0
  174. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js.map +1 -0
  175. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.d.ts +1 -0
  176. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.js +64 -0
  177. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.js.map +1 -0
  178. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.d.ts +14 -0
  179. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.js +42 -0
  180. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.js.map +1 -0
  181. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.d.ts +3 -0
  182. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js +28 -0
  183. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js.map +1 -0
  184. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.d.ts +3 -0
  185. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.js +25 -0
  186. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.js.map +1 -0
  187. package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.d.ts +7 -0
  188. package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js +200 -0
  189. package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js.map +1 -0
  190. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +4 -0
  191. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js +229 -0
  192. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -0
  193. package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.d.ts +22 -0
  194. package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.js +188 -0
  195. package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.js.map +1 -0
  196. package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.d.ts +17 -0
  197. package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.js +193 -0
  198. package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.js.map +1 -0
  199. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.d.ts +1 -0
  200. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.js +33 -0
  201. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.js.map +1 -0
  202. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +6 -0
  203. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js +34 -0
  204. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js.map +1 -0
  205. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.d.ts +7 -0
  206. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js +89 -0
  207. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js.map +1 -0
  208. package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.d.ts +2 -0
  209. package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.js +11 -0
  210. package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.js.map +1 -0
  211. package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.d.ts +5 -0
  212. package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js +44 -0
  213. package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js.map +1 -0
  214. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.d.ts +2 -0
  215. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js +11 -0
  216. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js.map +1 -0
  217. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.d.ts +8 -0
  218. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.js +242 -0
  219. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.js.map +1 -0
  220. package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.d.ts +3 -0
  221. package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.js +41 -0
  222. package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.js.map +1 -0
  223. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.d.ts +2 -0
  224. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.js +560 -0
  225. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.js.map +1 -0
  226. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.d.ts +3 -0
  227. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.js +31 -0
  228. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.js.map +1 -0
  229. package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.d.ts +2 -0
  230. package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.js +37 -0
  231. package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.js.map +1 -0
  232. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.d.ts +8 -0
  233. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.js +46 -0
  234. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.js.map +1 -0
  235. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.d.ts +1 -0
  236. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.js +16 -0
  237. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.js.map +1 -0
  238. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.d.ts +1 -0
  239. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.js +38 -0
  240. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.js.map +1 -0
  241. package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.d.ts +5 -0
  242. package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js +487 -0
  243. package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js.map +1 -0
  244. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.d.ts +2 -0
  245. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.js +253 -0
  246. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.js.map +1 -0
  247. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.d.ts +2 -0
  248. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js +117 -0
  249. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js.map +1 -0
  250. package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.d.ts +32 -0
  251. package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.js +85 -0
  252. package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.js.map +1 -0
  253. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.d.ts +6 -0
  254. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js +18 -0
  255. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js.map +1 -0
  256. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.d.ts +6 -0
  257. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js +28 -0
  258. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js.map +1 -0
  259. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.d.ts +6 -0
  260. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js +65 -0
  261. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js.map +1 -0
  262. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.d.ts +6 -0
  263. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js +71 -0
  264. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js.map +1 -0
  265. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.d.ts +6 -0
  266. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js +18 -0
  267. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js.map +1 -0
  268. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.d.ts +5 -0
  269. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js +46 -0
  270. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js.map +1 -0
  271. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.d.ts +6 -0
  272. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js +28 -0
  273. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js.map +1 -0
  274. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.d.ts +6 -0
  275. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js +52 -0
  276. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js.map +1 -0
  277. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.d.ts +6 -0
  278. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js +28 -0
  279. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js.map +1 -0
  280. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.d.ts +6 -0
  281. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js +19 -0
  282. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js.map +1 -0
  283. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.d.ts +6 -0
  284. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js +41 -0
  285. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js.map +1 -0
  286. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.d.ts +11 -0
  287. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js +162 -0
  288. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js.map +1 -0
  289. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.d.ts +4 -0
  290. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.js +163 -0
  291. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.js.map +1 -0
  292. package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.d.ts +2 -0
  293. package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.js +12 -0
  294. package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.js.map +1 -0
  295. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.d.ts +3 -0
  296. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.js +25 -0
  297. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.js.map +1 -0
  298. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.d.ts +3 -0
  299. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.js +25 -0
  300. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.js.map +1 -0
  301. package/dist/cjs/components/TextEditorV2/shared/canUseDOM.d.ts +1 -0
  302. package/dist/cjs/components/TextEditorV2/shared/canUseDOM.js +7 -0
  303. package/dist/cjs/components/TextEditorV2/shared/canUseDOM.js.map +1 -0
  304. package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.d.ts +4 -0
  305. package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.js +32 -0
  306. package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.js.map +1 -0
  307. package/dist/cjs/components/TextEditorV2/shared/environment.d.ts +16 -0
  308. package/dist/cjs/components/TextEditorV2/shared/environment.js +17 -0
  309. package/dist/cjs/components/TextEditorV2/shared/environment.js.map +1 -0
  310. package/dist/cjs/components/TextEditorV2/shared/invariant.d.ts +1 -0
  311. package/dist/cjs/components/TextEditorV2/shared/invariant.js +15 -0
  312. package/dist/cjs/components/TextEditorV2/shared/invariant.js.map +1 -0
  313. package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.d.ts +5 -0
  314. package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.js +28 -0
  315. package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.js.map +1 -0
  316. package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.d.ts +3 -0
  317. package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.js +7 -0
  318. package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.js.map +1 -0
  319. package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.d.ts +1 -0
  320. package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.js +16 -0
  321. package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.js.map +1 -0
  322. package/dist/cjs/components/TextEditorV2/style.d.ts +2 -0
  323. package/dist/cjs/components/TextEditorV2/style.js +9 -0
  324. package/dist/cjs/components/TextEditorV2/style.js.map +1 -0
  325. package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.d.ts +3 -0
  326. package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.js +7 -0
  327. package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.js.map +1 -0
  328. package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.d.ts +3 -0
  329. package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.js +107 -0
  330. package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.js.map +1 -0
  331. package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.d.ts +3 -0
  332. package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.js +7 -0
  333. package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.js.map +1 -0
  334. package/dist/cjs/components/TextEditorV2/ui/Button.d.ts +11 -0
  335. package/dist/cjs/components/TextEditorV2/ui/Button.js +11 -0
  336. package/dist/cjs/components/TextEditorV2/ui/Button.js.map +1 -0
  337. package/dist/cjs/components/TextEditorV2/ui/ColorPicker.d.ts +12 -0
  338. package/dist/cjs/components/TextEditorV2/ui/ColorPicker.js +216 -0
  339. package/dist/cjs/components/TextEditorV2/ui/ColorPicker.js.map +1 -0
  340. package/dist/cjs/components/TextEditorV2/ui/ContentEditable.d.ts +4 -0
  341. package/dist/cjs/components/TextEditorV2/ui/ContentEditable.js +11 -0
  342. package/dist/cjs/components/TextEditorV2/ui/ContentEditable.js.map +1 -0
  343. package/dist/cjs/components/TextEditorV2/ui/Dialog.d.ts +9 -0
  344. package/dist/cjs/components/TextEditorV2/ui/Dialog.js +15 -0
  345. package/dist/cjs/components/TextEditorV2/ui/Dialog.js.map +1 -0
  346. package/dist/cjs/components/TextEditorV2/ui/DropDown.d.ts +17 -0
  347. package/dist/cjs/components/TextEditorV2/ui/DropDown.js +133 -0
  348. package/dist/cjs/components/TextEditorV2/ui/DropDown.js.map +1 -0
  349. package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.d.ts +21 -0
  350. package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.js +20 -0
  351. package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.js.map +1 -0
  352. package/dist/cjs/components/TextEditorV2/ui/EquationEditor.d.ts +8 -0
  353. package/dist/cjs/components/TextEditorV2/ui/EquationEditor.js +20 -0
  354. package/dist/cjs/components/TextEditorV2/ui/EquationEditor.js.map +1 -0
  355. package/dist/cjs/components/TextEditorV2/ui/FileInput.d.ts +9 -0
  356. package/dist/cjs/components/TextEditorV2/ui/FileInput.js +12 -0
  357. package/dist/cjs/components/TextEditorV2/ui/FileInput.js.map +1 -0
  358. package/dist/cjs/components/TextEditorV2/ui/ImageResizer.d.ts +11 -0
  359. package/dist/cjs/components/TextEditorV2/ui/ImageResizer.js +178 -0
  360. package/dist/cjs/components/TextEditorV2/ui/ImageResizer.js.map +1 -0
  361. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.d.ts +7 -0
  362. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.js +39 -0
  363. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.js.map +1 -0
  364. package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.d.ts +6 -0
  365. package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.js +33 -0
  366. package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.js.map +1 -0
  367. package/dist/cjs/components/TextEditorV2/ui/Modal.d.ts +8 -0
  368. package/dist/cjs/components/TextEditorV2/ui/Modal.js +54 -0
  369. package/dist/cjs/components/TextEditorV2/ui/Modal.js.map +1 -0
  370. package/dist/cjs/components/TextEditorV2/ui/Placeholder.d.ts +6 -0
  371. package/dist/cjs/components/TextEditorV2/ui/Placeholder.js +10 -0
  372. package/dist/cjs/components/TextEditorV2/ui/Placeholder.js.map +1 -0
  373. package/dist/cjs/components/TextEditorV2/ui/Select.d.ts +7 -0
  374. package/dist/cjs/components/TextEditorV2/ui/Select.js +12 -0
  375. package/dist/cjs/components/TextEditorV2/ui/Select.js.map +1 -0
  376. package/dist/cjs/components/TextEditorV2/ui/Switch.d.ts +7 -0
  377. package/dist/cjs/components/TextEditorV2/ui/Switch.js +15 -0
  378. package/dist/cjs/components/TextEditorV2/ui/Switch.js.map +1 -0
  379. package/dist/cjs/components/TextEditorV2/ui/TextInput.d.ts +12 -0
  380. package/dist/cjs/components/TextEditorV2/ui/TextInput.js +14 -0
  381. package/dist/cjs/components/TextEditorV2/ui/TextInput.js.map +1 -0
  382. package/dist/cjs/components/TextEditorV2/utils/emoji-list.d.ts +20 -0
  383. package/dist/cjs/components/TextEditorV2/utils/emoji-list.js +16607 -0
  384. package/dist/cjs/components/TextEditorV2/utils/emoji-list.js.map +1 -0
  385. package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.d.ts +1 -0
  386. package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.js +19 -0
  387. package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.js.map +1 -0
  388. package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.d.ts +1 -0
  389. package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.js +35 -0
  390. package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.js.map +1 -0
  391. package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.d.ts +2 -0
  392. package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.js +21 -0
  393. package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.js.map +1 -0
  394. package/dist/cjs/components/TextEditorV2/utils/guard.d.ts +1 -0
  395. package/dist/cjs/components/TextEditorV2/utils/guard.js +7 -0
  396. package/dist/cjs/components/TextEditorV2/utils/guard.js.map +1 -0
  397. package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.d.ts +0 -0
  398. package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.js +2 -0
  399. package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.js.map +1 -0
  400. package/dist/cjs/components/TextEditorV2/utils/joinClasses.d.ts +1 -0
  401. package/dist/cjs/components/TextEditorV2/utils/joinClasses.js +11 -0
  402. package/dist/cjs/components/TextEditorV2/utils/joinClasses.js.map +1 -0
  403. package/dist/cjs/components/TextEditorV2/utils/point.d.ts +14 -0
  404. package/dist/cjs/components/TextEditorV2/utils/point.js +51 -0
  405. package/dist/cjs/components/TextEditorV2/utils/point.js.map +1 -0
  406. package/dist/cjs/components/TextEditorV2/utils/rect.d.ts +38 -0
  407. package/dist/cjs/components/TextEditorV2/utils/rect.js +125 -0
  408. package/dist/cjs/components/TextEditorV2/utils/rect.js.map +1 -0
  409. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.d.ts +1 -0
  410. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.js +33 -0
  411. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.js.map +1 -0
  412. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
  413. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js +31 -0
  414. package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  415. package/dist/cjs/components/TextEditorV2/utils/swipe.d.ts +4 -0
  416. package/dist/cjs/components/TextEditorV2/utils/swipe.js +97 -0
  417. package/dist/cjs/components/TextEditorV2/utils/swipe.js.map +1 -0
  418. package/dist/cjs/components/TextEditorV2/utils/url.d.ts +2 -0
  419. package/dist/cjs/components/TextEditorV2/utils/url.js +26 -0
  420. package/dist/cjs/components/TextEditorV2/utils/url.js.map +1 -0
  421. package/dist/cjs/index.d.ts +2 -1
  422. package/dist/cjs/index.js +5 -3
  423. package/dist/cjs/index.js.map +1 -1
  424. package/dist/esm/components/TextEditorV2/commenting/index.d.ts +41 -0
  425. package/dist/esm/components/TextEditorV2/commenting/index.js +334 -0
  426. package/dist/esm/components/TextEditorV2/commenting/index.js.map +1 -0
  427. package/dist/esm/components/TextEditorV2/constants.d.ts +1 -0
  428. package/dist/esm/components/TextEditorV2/constants.js +2 -0
  429. package/dist/esm/components/TextEditorV2/constants.js.map +1 -0
  430. package/dist/esm/components/TextEditorV2/context/SettingsContext.d.ts +12 -0
  431. package/dist/esm/components/TextEditorV2/context/SettingsContext.js +54 -0
  432. package/dist/esm/components/TextEditorV2/context/SettingsContext.js.map +1 -0
  433. package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.d.ts +10 -0
  434. package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.js +44 -0
  435. package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.js.map +1 -0
  436. package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.d.ts +11 -0
  437. package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.js +11 -0
  438. package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.js.map +1 -0
  439. package/dist/esm/components/TextEditorV2/editor.d.ts +10 -0
  440. package/dist/esm/components/TextEditorV2/editor.js +200 -0
  441. package/dist/esm/components/TextEditorV2/editor.js.map +1 -0
  442. package/dist/esm/components/TextEditorV2/hooks/useModal.d.ts +5 -0
  443. package/dist/esm/components/TextEditorV2/hooks/useModal.js +28 -0
  444. package/dist/esm/components/TextEditorV2/hooks/useModal.js.map +1 -0
  445. package/dist/esm/components/TextEditorV2/hooks/useReport.d.ts +1 -0
  446. package/dist/esm/components/TextEditorV2/hooks/useReport.js +42 -0
  447. package/dist/esm/components/TextEditorV2/hooks/useReport.js.map +1 -0
  448. package/dist/esm/components/TextEditorV2/lib/Settings.d.ts +2 -0
  449. package/dist/esm/components/TextEditorV2/lib/Settings.js +48 -0
  450. package/dist/esm/components/TextEditorV2/lib/Settings.js.map +1 -0
  451. package/dist/esm/components/TextEditorV2/lib/appSettings.d.ts +19 -0
  452. package/dist/esm/components/TextEditorV2/lib/appSettings.js +18 -0
  453. package/dist/esm/components/TextEditorV2/lib/appSettings.js.map +1 -0
  454. package/dist/esm/components/TextEditorV2/lib/collaboration.d.ts +3 -0
  455. package/dist/esm/components/TextEditorV2/lib/collaboration.js +23 -0
  456. package/dist/esm/components/TextEditorV2/lib/collaboration.js.map +1 -0
  457. package/dist/esm/components/TextEditorV2/lib/setupEnv.d.ts +1 -0
  458. package/dist/esm/components/TextEditorV2/lib/setupEnv.js +21 -0
  459. package/dist/esm/components/TextEditorV2/lib/setupEnv.js.map +1 -0
  460. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.d.ts +25 -0
  461. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.js +54 -0
  462. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.js.map +1 -0
  463. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.d.ts +18 -0
  464. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.js +57 -0
  465. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.js.map +1 -0
  466. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.d.ts +9 -0
  467. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.js +68 -0
  468. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.js.map +1 -0
  469. package/dist/esm/components/TextEditorV2/nodes/EquationNode.d.ts +26 -0
  470. package/dist/esm/components/TextEditorV2/nodes/EquationNode.js +121 -0
  471. package/dist/esm/components/TextEditorV2/nodes/EquationNode.js.map +1 -0
  472. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.d.ts +6 -0
  473. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js +113 -0
  474. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js.map +1 -0
  475. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.d.ts +50 -0
  476. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js +56 -0
  477. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js.map +1 -0
  478. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.d.ts +44 -0
  479. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js +137 -0
  480. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js.map +1 -0
  481. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.d.ts +22 -0
  482. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.js +98 -0
  483. package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.js.map +1 -0
  484. package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.d.ts +12 -0
  485. package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.js +101 -0
  486. package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.js.map +1 -0
  487. package/dist/esm/components/TextEditorV2/nodes/FigmaNode.d.ts +19 -0
  488. package/dist/esm/components/TextEditorV2/nodes/FigmaNode.js +58 -0
  489. package/dist/esm/components/TextEditorV2/nodes/FigmaNode.js.map +1 -0
  490. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.d.ts +14 -0
  491. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.js +207 -0
  492. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.js.map +1 -0
  493. package/dist/esm/components/TextEditorV2/nodes/ImageNode.d.ts +56 -0
  494. package/dist/esm/components/TextEditorV2/nodes/ImageNode.js +131 -0
  495. package/dist/esm/components/TextEditorV2/nodes/ImageNode.js.map +1 -0
  496. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.d.ts +18 -0
  497. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.js +189 -0
  498. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.js.map +1 -0
  499. package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.d.ts +54 -0
  500. package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.js +137 -0
  501. package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.js.map +1 -0
  502. package/dist/esm/components/TextEditorV2/nodes/KeywordNode.d.ts +15 -0
  503. package/dist/esm/components/TextEditorV2/nodes/KeywordNode.js +49 -0
  504. package/dist/esm/components/TextEditorV2/nodes/KeywordNode.js.map +1 -0
  505. package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.d.ts +21 -0
  506. package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.js +58 -0
  507. package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.js.map +1 -0
  508. package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.d.ts +15 -0
  509. package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.js +46 -0
  510. package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.js.map +1 -0
  511. package/dist/esm/components/TextEditorV2/nodes/MentionNode.d.ts +20 -0
  512. package/dist/esm/components/TextEditorV2/nodes/MentionNode.js +84 -0
  513. package/dist/esm/components/TextEditorV2/nodes/MentionNode.js.map +1 -0
  514. package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.d.ts +17 -0
  515. package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.js +108 -0
  516. package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.js.map +1 -0
  517. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.d.ts +3 -0
  518. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.js +66 -0
  519. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.js.map +1 -0
  520. package/dist/esm/components/TextEditorV2/nodes/PollComponent.d.ts +8 -0
  521. package/dist/esm/components/TextEditorV2/nodes/PollComponent.js +109 -0
  522. package/dist/esm/components/TextEditorV2/nodes/PollComponent.js.map +1 -0
  523. package/dist/esm/components/TextEditorV2/nodes/PollNode.d.ts +33 -0
  524. package/dist/esm/components/TextEditorV2/nodes/PollNode.js +143 -0
  525. package/dist/esm/components/TextEditorV2/nodes/PollNode.js.map +1 -0
  526. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.d.ts +9 -0
  527. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.js +163 -0
  528. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.js.map +1 -0
  529. package/dist/esm/components/TextEditorV2/nodes/StickyNode.d.ts +37 -0
  530. package/dist/esm/components/TextEditorV2/nodes/StickyNode.js +89 -0
  531. package/dist/esm/components/TextEditorV2/nodes/StickyNode.js.map +1 -0
  532. package/dist/esm/components/TextEditorV2/nodes/TableNode.d.ts +54 -0
  533. package/dist/esm/components/TextEditorV2/nodes/TableNode.js +188 -0
  534. package/dist/esm/components/TextEditorV2/nodes/TableNode.js.map +1 -0
  535. package/dist/esm/components/TextEditorV2/nodes/TweetNode.d.ts +28 -0
  536. package/dist/esm/components/TextEditorV2/nodes/TweetNode.js +151 -0
  537. package/dist/esm/components/TextEditorV2/nodes/TweetNode.js.map +1 -0
  538. package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.d.ts +28 -0
  539. package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.js +98 -0
  540. package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.js.map +1 -0
  541. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.d.ts +2 -0
  542. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.js +180 -0
  543. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.js.map +1 -0
  544. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.d.ts +19 -0
  545. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js +174 -0
  546. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js.map +1 -0
  547. package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.d.ts +2 -0
  548. package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.js +12 -0
  549. package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.js.map +1 -0
  550. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.d.ts +2 -0
  551. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.js +2461 -0
  552. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.js.map +1 -0
  553. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +8 -0
  554. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +52 -0
  555. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -0
  556. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +10 -0
  557. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +155 -0
  558. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -0
  559. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.d.ts +4 -0
  560. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js +108 -0
  561. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js.map +1 -0
  562. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
  563. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js +18 -0
  564. package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js.map +1 -0
  565. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.d.ts +1 -0
  566. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js +9 -0
  567. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js.map +1 -0
  568. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.d.ts +23 -0
  569. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +82 -0
  570. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +1 -0
  571. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.d.ts +17 -0
  572. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js +64 -0
  573. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +1 -0
  574. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.d.ts +18 -0
  575. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +89 -0
  576. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +1 -0
  577. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.d.ts +3 -0
  578. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.js +144 -0
  579. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.js.map +1 -0
  580. package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.d.ts +2 -0
  581. package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js +261 -0
  582. package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js.map +1 -0
  583. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.d.ts +11 -0
  584. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.js +167 -0
  585. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.js.map +1 -0
  586. package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.d.ts +2 -0
  587. package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.js +6 -0
  588. package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.js.map +1 -0
  589. package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.d.ts +1 -0
  590. package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.js +41 -0
  591. package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.js.map +1 -0
  592. package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.d.ts +4 -0
  593. package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js +284 -0
  594. package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js.map +1 -0
  595. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.d.ts +2 -0
  596. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js +94 -0
  597. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js.map +1 -0
  598. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.d.ts +1 -0
  599. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.js +61 -0
  600. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.js.map +1 -0
  601. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.d.ts +14 -0
  602. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.js +36 -0
  603. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.js.map +1 -0
  604. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.d.ts +3 -0
  605. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js +24 -0
  606. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js.map +1 -0
  607. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.d.ts +3 -0
  608. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.js +21 -0
  609. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.js.map +1 -0
  610. package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.d.ts +7 -0
  611. package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js +196 -0
  612. package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js.map +1 -0
  613. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +4 -0
  614. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js +225 -0
  615. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -0
  616. package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.d.ts +22 -0
  617. package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.js +181 -0
  618. package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.js.map +1 -0
  619. package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.d.ts +17 -0
  620. package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.js +187 -0
  621. package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.js.map +1 -0
  622. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.d.ts +1 -0
  623. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.js +30 -0
  624. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.js.map +1 -0
  625. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +6 -0
  626. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js +30 -0
  627. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js.map +1 -0
  628. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.d.ts +7 -0
  629. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js +85 -0
  630. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js.map +1 -0
  631. package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.d.ts +2 -0
  632. package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.js +7 -0
  633. package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.js.map +1 -0
  634. package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.d.ts +5 -0
  635. package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js +41 -0
  636. package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js.map +1 -0
  637. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.d.ts +2 -0
  638. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js +7 -0
  639. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js.map +1 -0
  640. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.d.ts +8 -0
  641. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.js +239 -0
  642. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.js.map +1 -0
  643. package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.d.ts +3 -0
  644. package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.js +38 -0
  645. package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.js.map +1 -0
  646. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.d.ts +2 -0
  647. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.js +557 -0
  648. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.js.map +1 -0
  649. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.d.ts +3 -0
  650. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.js +27 -0
  651. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.js.map +1 -0
  652. package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.d.ts +2 -0
  653. package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.js +33 -0
  654. package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.js.map +1 -0
  655. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.d.ts +8 -0
  656. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.js +40 -0
  657. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.js.map +1 -0
  658. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.d.ts +1 -0
  659. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.js +13 -0
  660. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.js.map +1 -0
  661. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.d.ts +1 -0
  662. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.js +35 -0
  663. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.js.map +1 -0
  664. package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.d.ts +5 -0
  665. package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js +483 -0
  666. package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js.map +1 -0
  667. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.d.ts +2 -0
  668. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.js +249 -0
  669. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.js.map +1 -0
  670. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.d.ts +2 -0
  671. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js +113 -0
  672. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js.map +1 -0
  673. package/dist/esm/components/TextEditorV2/plugins/TablePlugin.d.ts +32 -0
  674. package/dist/esm/components/TextEditorV2/plugins/TablePlugin.js +78 -0
  675. package/dist/esm/components/TextEditorV2/plugins/TablePlugin.js.map +1 -0
  676. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.d.ts +6 -0
  677. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js +14 -0
  678. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js.map +1 -0
  679. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.d.ts +6 -0
  680. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js +24 -0
  681. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js.map +1 -0
  682. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.d.ts +6 -0
  683. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js +61 -0
  684. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js.map +1 -0
  685. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.d.ts +6 -0
  686. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js +67 -0
  687. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js.map +1 -0
  688. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.d.ts +6 -0
  689. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js +14 -0
  690. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js.map +1 -0
  691. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.d.ts +5 -0
  692. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js +42 -0
  693. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js.map +1 -0
  694. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.d.ts +6 -0
  695. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js +24 -0
  696. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js.map +1 -0
  697. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.d.ts +6 -0
  698. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js +48 -0
  699. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js.map +1 -0
  700. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.d.ts +6 -0
  701. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js +24 -0
  702. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js.map +1 -0
  703. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.d.ts +6 -0
  704. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js +15 -0
  705. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js.map +1 -0
  706. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.d.ts +6 -0
  707. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js +37 -0
  708. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js.map +1 -0
  709. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.d.ts +11 -0
  710. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js +159 -0
  711. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js.map +1 -0
  712. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.d.ts +4 -0
  713. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.js +159 -0
  714. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.js.map +1 -0
  715. package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.d.ts +2 -0
  716. package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.js +8 -0
  717. package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.js.map +1 -0
  718. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.d.ts +3 -0
  719. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.js +21 -0
  720. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.js.map +1 -0
  721. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.d.ts +3 -0
  722. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.js +21 -0
  723. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.js.map +1 -0
  724. package/dist/esm/components/TextEditorV2/shared/canUseDOM.d.ts +1 -0
  725. package/dist/esm/components/TextEditorV2/shared/canUseDOM.js +4 -0
  726. package/dist/esm/components/TextEditorV2/shared/canUseDOM.js.map +1 -0
  727. package/dist/esm/components/TextEditorV2/shared/caretFromPoint.d.ts +4 -0
  728. package/dist/esm/components/TextEditorV2/shared/caretFromPoint.js +29 -0
  729. package/dist/esm/components/TextEditorV2/shared/caretFromPoint.js.map +1 -0
  730. package/dist/esm/components/TextEditorV2/shared/environment.d.ts +16 -0
  731. package/dist/esm/components/TextEditorV2/shared/environment.js +14 -0
  732. package/dist/esm/components/TextEditorV2/shared/environment.js.map +1 -0
  733. package/dist/esm/components/TextEditorV2/shared/invariant.d.ts +1 -0
  734. package/dist/esm/components/TextEditorV2/shared/invariant.js +12 -0
  735. package/dist/esm/components/TextEditorV2/shared/invariant.js.map +1 -0
  736. package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.d.ts +5 -0
  737. package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.js +25 -0
  738. package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.js.map +1 -0
  739. package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.d.ts +3 -0
  740. package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.js +5 -0
  741. package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.js.map +1 -0
  742. package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.d.ts +1 -0
  743. package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.js +13 -0
  744. package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.js.map +1 -0
  745. package/dist/esm/components/TextEditorV2/style.d.ts +2 -0
  746. package/dist/esm/components/TextEditorV2/style.js +5 -0
  747. package/dist/esm/components/TextEditorV2/style.js.map +1 -0
  748. package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.d.ts +3 -0
  749. package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.js +5 -0
  750. package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.js.map +1 -0
  751. package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.d.ts +3 -0
  752. package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.js +105 -0
  753. package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.js.map +1 -0
  754. package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.d.ts +3 -0
  755. package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.js +5 -0
  756. package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.js.map +1 -0
  757. package/dist/esm/components/TextEditorV2/ui/Button.d.ts +11 -0
  758. package/dist/esm/components/TextEditorV2/ui/Button.js +8 -0
  759. package/dist/esm/components/TextEditorV2/ui/Button.js.map +1 -0
  760. package/dist/esm/components/TextEditorV2/ui/ColorPicker.d.ts +12 -0
  761. package/dist/esm/components/TextEditorV2/ui/ColorPicker.js +212 -0
  762. package/dist/esm/components/TextEditorV2/ui/ColorPicker.js.map +1 -0
  763. package/dist/esm/components/TextEditorV2/ui/ContentEditable.d.ts +4 -0
  764. package/dist/esm/components/TextEditorV2/ui/ContentEditable.js +7 -0
  765. package/dist/esm/components/TextEditorV2/ui/ContentEditable.js.map +1 -0
  766. package/dist/esm/components/TextEditorV2/ui/Dialog.d.ts +9 -0
  767. package/dist/esm/components/TextEditorV2/ui/Dialog.js +10 -0
  768. package/dist/esm/components/TextEditorV2/ui/Dialog.js.map +1 -0
  769. package/dist/esm/components/TextEditorV2/ui/DropDown.d.ts +17 -0
  770. package/dist/esm/components/TextEditorV2/ui/DropDown.js +129 -0
  771. package/dist/esm/components/TextEditorV2/ui/DropDown.js.map +1 -0
  772. package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.d.ts +21 -0
  773. package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.js +17 -0
  774. package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.js.map +1 -0
  775. package/dist/esm/components/TextEditorV2/ui/EquationEditor.d.ts +8 -0
  776. package/dist/esm/components/TextEditorV2/ui/EquationEditor.js +17 -0
  777. package/dist/esm/components/TextEditorV2/ui/EquationEditor.js.map +1 -0
  778. package/dist/esm/components/TextEditorV2/ui/FileInput.d.ts +9 -0
  779. package/dist/esm/components/TextEditorV2/ui/FileInput.js +8 -0
  780. package/dist/esm/components/TextEditorV2/ui/FileInput.js.map +1 -0
  781. package/dist/esm/components/TextEditorV2/ui/ImageResizer.d.ts +11 -0
  782. package/dist/esm/components/TextEditorV2/ui/ImageResizer.js +174 -0
  783. package/dist/esm/components/TextEditorV2/ui/ImageResizer.js.map +1 -0
  784. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.d.ts +7 -0
  785. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.js +35 -0
  786. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.js.map +1 -0
  787. package/dist/esm/components/TextEditorV2/ui/KatexRenderer.d.ts +6 -0
  788. package/dist/esm/components/TextEditorV2/ui/KatexRenderer.js +29 -0
  789. package/dist/esm/components/TextEditorV2/ui/KatexRenderer.js.map +1 -0
  790. package/dist/esm/components/TextEditorV2/ui/Modal.d.ts +8 -0
  791. package/dist/esm/components/TextEditorV2/ui/Modal.js +50 -0
  792. package/dist/esm/components/TextEditorV2/ui/Modal.js.map +1 -0
  793. package/dist/esm/components/TextEditorV2/ui/Placeholder.d.ts +6 -0
  794. package/dist/esm/components/TextEditorV2/ui/Placeholder.js +6 -0
  795. package/dist/esm/components/TextEditorV2/ui/Placeholder.js.map +1 -0
  796. package/dist/esm/components/TextEditorV2/ui/Select.d.ts +7 -0
  797. package/dist/esm/components/TextEditorV2/ui/Select.js +9 -0
  798. package/dist/esm/components/TextEditorV2/ui/Select.js.map +1 -0
  799. package/dist/esm/components/TextEditorV2/ui/Switch.d.ts +7 -0
  800. package/dist/esm/components/TextEditorV2/ui/Switch.js +11 -0
  801. package/dist/esm/components/TextEditorV2/ui/Switch.js.map +1 -0
  802. package/dist/esm/components/TextEditorV2/ui/TextInput.d.ts +12 -0
  803. package/dist/esm/components/TextEditorV2/ui/TextInput.js +10 -0
  804. package/dist/esm/components/TextEditorV2/ui/TextInput.js.map +1 -0
  805. package/dist/esm/components/TextEditorV2/utils/emoji-list.d.ts +20 -0
  806. package/dist/esm/components/TextEditorV2/utils/emoji-list.js +16605 -0
  807. package/dist/esm/components/TextEditorV2/utils/emoji-list.js.map +1 -0
  808. package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.d.ts +1 -0
  809. package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.js +16 -0
  810. package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.js.map +1 -0
  811. package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.d.ts +1 -0
  812. package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.js +32 -0
  813. package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.js.map +1 -0
  814. package/dist/esm/components/TextEditorV2/utils/getSelectedNode.d.ts +2 -0
  815. package/dist/esm/components/TextEditorV2/utils/getSelectedNode.js +18 -0
  816. package/dist/esm/components/TextEditorV2/utils/getSelectedNode.js.map +1 -0
  817. package/dist/esm/components/TextEditorV2/utils/guard.d.ts +1 -0
  818. package/dist/esm/components/TextEditorV2/utils/guard.js +4 -0
  819. package/dist/esm/components/TextEditorV2/utils/guard.js.map +1 -0
  820. package/dist/esm/components/TextEditorV2/utils/isMobileWidth.d.ts +0 -0
  821. package/dist/esm/components/TextEditorV2/utils/isMobileWidth.js +2 -0
  822. package/dist/esm/components/TextEditorV2/utils/isMobileWidth.js.map +1 -0
  823. package/dist/esm/components/TextEditorV2/utils/joinClasses.d.ts +1 -0
  824. package/dist/esm/components/TextEditorV2/utils/joinClasses.js +8 -0
  825. package/dist/esm/components/TextEditorV2/utils/joinClasses.js.map +1 -0
  826. package/dist/esm/components/TextEditorV2/utils/point.d.ts +14 -0
  827. package/dist/esm/components/TextEditorV2/utils/point.js +47 -0
  828. package/dist/esm/components/TextEditorV2/utils/point.js.map +1 -0
  829. package/dist/esm/components/TextEditorV2/utils/rect.d.ts +38 -0
  830. package/dist/esm/components/TextEditorV2/utils/rect.js +122 -0
  831. package/dist/esm/components/TextEditorV2/utils/rect.js.map +1 -0
  832. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.d.ts +1 -0
  833. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.js +30 -0
  834. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.js.map +1 -0
  835. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
  836. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js +28 -0
  837. package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  838. package/dist/esm/components/TextEditorV2/utils/swipe.d.ts +4 -0
  839. package/dist/esm/components/TextEditorV2/utils/swipe.js +91 -0
  840. package/dist/esm/components/TextEditorV2/utils/swipe.js.map +1 -0
  841. package/dist/esm/components/TextEditorV2/utils/url.d.ts +2 -0
  842. package/dist/esm/components/TextEditorV2/utils/url.js +22 -0
  843. package/dist/esm/components/TextEditorV2/utils/url.js.map +1 -0
  844. package/dist/esm/index.d.ts +2 -1
  845. package/dist/esm/index.js +2 -1
  846. package/dist/esm/index.js.map +1 -1
  847. package/package.json +11 -2
@@ -0,0 +1,41 @@
1
+ import { Provider } from '@lexical/yjs';
2
+ import type { LexicalEditor } from 'lexical';
3
+ import { Array as YArray, Map as YMap } from 'yjs';
4
+ export type Comment = {
5
+ author: string;
6
+ content: string;
7
+ deleted: boolean;
8
+ id: string;
9
+ timeStamp: number;
10
+ type: 'comment';
11
+ };
12
+ export type Thread = {
13
+ comments: Array<Comment>;
14
+ id: string;
15
+ quote: string;
16
+ type: 'thread';
17
+ };
18
+ export type Comments = Array<Thread | Comment>;
19
+ export declare function createComment(content: string, author: string, id?: string, timeStamp?: number, deleted?: boolean): Comment;
20
+ export declare function createThread(quote: string, comments: Array<Comment>, id?: string): Thread;
21
+ export declare class CommentStore {
22
+ _editor: LexicalEditor;
23
+ _comments: Comments;
24
+ _changeListeners: Set<() => void>;
25
+ _collabProvider: null | Provider;
26
+ constructor(editor: LexicalEditor);
27
+ isCollaborative(): boolean;
28
+ getComments(): Comments;
29
+ addComment(commentOrThread: Comment | Thread, thread?: Thread, offset?: number): void;
30
+ deleteCommentOrThread(commentOrThread: Comment | Thread, thread?: Thread): {
31
+ markedComment: Comment;
32
+ index: number;
33
+ } | null;
34
+ registerOnChange(onChange: () => void): () => void;
35
+ _withRemoteTransaction(fn: () => void): void;
36
+ _withLocalTransaction(fn: () => void): void;
37
+ _getCollabComments(): null | YArray<any>;
38
+ _createCollabSharedMap(commentOrThread: Comment | Thread): YMap<any>;
39
+ registerCollaboration(provider: Provider): () => void;
40
+ }
41
+ export declare function useCommentStore(commentStore: CommentStore): Comments;
@@ -0,0 +1,340 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommentStore = void 0;
4
+ exports.createComment = createComment;
5
+ exports.createThread = createThread;
6
+ exports.useCommentStore = useCommentStore;
7
+ var yjs_1 = require("@lexical/yjs");
8
+ var lexical_1 = require("lexical");
9
+ var react_1 = require("react");
10
+ var yjs_2 = require("yjs");
11
+ function createUID() {
12
+ return Math.random()
13
+ .toString(36)
14
+ .replace(/[^a-z]+/g, '')
15
+ .substr(0, 5);
16
+ }
17
+ function createComment(content, author, id, timeStamp, deleted) {
18
+ return {
19
+ author: author,
20
+ content: content,
21
+ deleted: deleted === undefined ? false : deleted,
22
+ id: id === undefined ? createUID() : id,
23
+ timeStamp: timeStamp === undefined ? performance.now() : timeStamp,
24
+ type: 'comment',
25
+ };
26
+ }
27
+ function createThread(quote, comments, id) {
28
+ return {
29
+ comments: comments,
30
+ id: id === undefined ? createUID() : id,
31
+ quote: quote,
32
+ type: 'thread',
33
+ };
34
+ }
35
+ function cloneThread(thread) {
36
+ return {
37
+ comments: Array.from(thread.comments),
38
+ id: thread.id,
39
+ quote: thread.quote,
40
+ type: 'thread',
41
+ };
42
+ }
43
+ function markDeleted(comment) {
44
+ return {
45
+ author: comment.author,
46
+ content: '[Deleted Comment]',
47
+ deleted: true,
48
+ id: comment.id,
49
+ timeStamp: comment.timeStamp,
50
+ type: 'comment',
51
+ };
52
+ }
53
+ function triggerOnChange(commentStore) {
54
+ var listeners = commentStore._changeListeners;
55
+ listeners.forEach(function (listener) { return listener(); });
56
+ }
57
+ var CommentStore = /** @class */ (function () {
58
+ function CommentStore(editor) {
59
+ this._comments = [];
60
+ this._editor = editor;
61
+ this._collabProvider = null;
62
+ this._changeListeners = new Set();
63
+ }
64
+ CommentStore.prototype.isCollaborative = function () {
65
+ return this._collabProvider !== null;
66
+ };
67
+ CommentStore.prototype.getComments = function () {
68
+ return this._comments;
69
+ };
70
+ CommentStore.prototype.addComment = function (commentOrThread, thread, offset) {
71
+ var _this = this;
72
+ var nextComments = Array.from(this._comments);
73
+ // The YJS types explicitly use `any` as well.
74
+ var sharedCommentsArray = this._getCollabComments();
75
+ if (thread !== undefined && commentOrThread.type === 'comment') {
76
+ var _loop_1 = function (i) {
77
+ var comment = nextComments[i];
78
+ if (comment.type === 'thread' && comment.id === thread.id) {
79
+ var newThread = cloneThread(comment);
80
+ nextComments.splice(i, 1, newThread);
81
+ var insertOffset_1 = offset !== undefined ? offset : newThread.comments.length;
82
+ if (this_1.isCollaborative() && sharedCommentsArray !== null) {
83
+ var parentSharedArray_1 = sharedCommentsArray.get(i).get('comments');
84
+ this_1._withRemoteTransaction(function () {
85
+ var sharedMap = _this._createCollabSharedMap(commentOrThread);
86
+ parentSharedArray_1.insert(insertOffset_1, [sharedMap]);
87
+ });
88
+ }
89
+ newThread.comments.splice(insertOffset_1, 0, commentOrThread);
90
+ return "break";
91
+ }
92
+ };
93
+ var this_1 = this;
94
+ for (var i = 0; i < nextComments.length; i++) {
95
+ var state_1 = _loop_1(i);
96
+ if (state_1 === "break")
97
+ break;
98
+ }
99
+ }
100
+ else {
101
+ var insertOffset_2 = offset !== undefined ? offset : nextComments.length;
102
+ if (this.isCollaborative() && sharedCommentsArray !== null) {
103
+ this._withRemoteTransaction(function () {
104
+ var sharedMap = _this._createCollabSharedMap(commentOrThread);
105
+ sharedCommentsArray.insert(insertOffset_2, [sharedMap]);
106
+ });
107
+ }
108
+ nextComments.splice(insertOffset_2, 0, commentOrThread);
109
+ }
110
+ this._comments = nextComments;
111
+ triggerOnChange(this);
112
+ };
113
+ CommentStore.prototype.deleteCommentOrThread = function (commentOrThread, thread) {
114
+ var nextComments = Array.from(this._comments);
115
+ // The YJS types explicitly use `any` as well.
116
+ var sharedCommentsArray = this._getCollabComments();
117
+ var commentIndex = null;
118
+ if (thread !== undefined) {
119
+ var _loop_2 = function (i) {
120
+ var nextComment = nextComments[i];
121
+ if (nextComment.type === 'thread' && nextComment.id === thread.id) {
122
+ var newThread = cloneThread(nextComment);
123
+ nextComments.splice(i, 1, newThread);
124
+ var threadComments = newThread.comments;
125
+ commentIndex = threadComments.indexOf(commentOrThread);
126
+ if (this_2.isCollaborative() && sharedCommentsArray !== null) {
127
+ var parentSharedArray_2 = sharedCommentsArray.get(i).get('comments');
128
+ this_2._withRemoteTransaction(function () {
129
+ parentSharedArray_2.delete(commentIndex);
130
+ });
131
+ }
132
+ threadComments.splice(commentIndex, 1);
133
+ return "break";
134
+ }
135
+ };
136
+ var this_2 = this;
137
+ for (var i = 0; i < nextComments.length; i++) {
138
+ var state_2 = _loop_2(i);
139
+ if (state_2 === "break")
140
+ break;
141
+ }
142
+ }
143
+ else {
144
+ commentIndex = nextComments.indexOf(commentOrThread);
145
+ if (this.isCollaborative() && sharedCommentsArray !== null) {
146
+ this._withRemoteTransaction(function () {
147
+ sharedCommentsArray.delete(commentIndex);
148
+ });
149
+ }
150
+ nextComments.splice(commentIndex, 1);
151
+ }
152
+ this._comments = nextComments;
153
+ triggerOnChange(this);
154
+ if (commentOrThread.type === 'comment') {
155
+ return {
156
+ index: commentIndex,
157
+ markedComment: markDeleted(commentOrThread),
158
+ };
159
+ }
160
+ return null;
161
+ };
162
+ CommentStore.prototype.registerOnChange = function (onChange) {
163
+ var changeListeners = this._changeListeners;
164
+ changeListeners.add(onChange);
165
+ return function () {
166
+ changeListeners.delete(onChange);
167
+ };
168
+ };
169
+ CommentStore.prototype._withRemoteTransaction = function (fn) {
170
+ var provider = this._collabProvider;
171
+ if (provider !== null) {
172
+ // @ts-ignore doc does exist
173
+ var doc = provider.doc;
174
+ doc.transact(fn, this);
175
+ }
176
+ };
177
+ CommentStore.prototype._withLocalTransaction = function (fn) {
178
+ var collabProvider = this._collabProvider;
179
+ try {
180
+ this._collabProvider = null;
181
+ fn();
182
+ }
183
+ finally {
184
+ this._collabProvider = collabProvider;
185
+ }
186
+ };
187
+ CommentStore.prototype._getCollabComments = function () {
188
+ var provider = this._collabProvider;
189
+ if (provider !== null) {
190
+ // @ts-ignore doc does exist
191
+ var doc = provider.doc;
192
+ return doc.get('comments', yjs_2.Array);
193
+ }
194
+ return null;
195
+ };
196
+ CommentStore.prototype._createCollabSharedMap = function (commentOrThread) {
197
+ var _this = this;
198
+ var sharedMap = new yjs_2.Map();
199
+ var type = commentOrThread.type;
200
+ var id = commentOrThread.id;
201
+ sharedMap.set('type', type);
202
+ sharedMap.set('id', id);
203
+ if (type === 'comment') {
204
+ sharedMap.set('author', commentOrThread.author);
205
+ sharedMap.set('content', commentOrThread.content);
206
+ sharedMap.set('deleted', commentOrThread.deleted);
207
+ sharedMap.set('timeStamp', commentOrThread.timeStamp);
208
+ }
209
+ else {
210
+ sharedMap.set('quote', commentOrThread.quote);
211
+ var commentsArray_1 = new yjs_2.Array();
212
+ commentOrThread.comments.forEach(function (comment, i) {
213
+ var sharedChildComment = _this._createCollabSharedMap(comment);
214
+ commentsArray_1.insert(i, [sharedChildComment]);
215
+ });
216
+ sharedMap.set('comments', commentsArray_1);
217
+ }
218
+ return sharedMap;
219
+ };
220
+ CommentStore.prototype.registerCollaboration = function (provider) {
221
+ var _this = this;
222
+ this._collabProvider = provider;
223
+ var sharedCommentsArray = this._getCollabComments();
224
+ var connect = function () {
225
+ provider.connect();
226
+ };
227
+ var disconnect = function () {
228
+ try {
229
+ provider.disconnect();
230
+ }
231
+ catch (e) {
232
+ // Do nothing
233
+ }
234
+ };
235
+ var unsubscribe = this._editor.registerCommand(yjs_1.TOGGLE_CONNECT_COMMAND, function (payload) {
236
+ if (connect !== undefined && disconnect !== undefined) {
237
+ var shouldConnect = payload;
238
+ if (shouldConnect) {
239
+ // eslint-disable-next-line no-console
240
+ connect();
241
+ }
242
+ else {
243
+ // eslint-disable-next-line no-console
244
+ disconnect();
245
+ }
246
+ }
247
+ return false;
248
+ }, lexical_1.COMMAND_PRIORITY_LOW);
249
+ var onSharedCommentChanges = function (
250
+ // The YJS types explicitly use `any` as well.
251
+ events, transaction) {
252
+ if (transaction.origin !== _this) {
253
+ var _loop_3 = function (i) {
254
+ var event_1 = events[i];
255
+ if (event_1 instanceof yjs_2.YArrayEvent) {
256
+ var target = event_1.target;
257
+ var deltas = event_1.delta;
258
+ var offset_1 = 0;
259
+ var _loop_4 = function (s) {
260
+ var delta = deltas[s];
261
+ var insert = delta.insert;
262
+ var retain = delta.retain;
263
+ var del = delta.delete;
264
+ var parent_1 = target.parent;
265
+ var parentThread = target === sharedCommentsArray
266
+ ? undefined
267
+ : parent_1 instanceof yjs_2.Map &&
268
+ _this._comments.find(function (t) { return t.id === parent_1.get('id'); });
269
+ if (Array.isArray(insert)) {
270
+ insert
271
+ .slice()
272
+ .reverse()
273
+ .forEach(function (map) {
274
+ var id = map.get('id');
275
+ var type = map.get('type');
276
+ var commentOrThread = type === 'thread'
277
+ ? createThread(map.get('quote'), map
278
+ .get('comments')
279
+ .toArray()
280
+ .map(function (innerComment) {
281
+ return createComment(innerComment.get('content'), innerComment.get('author'), innerComment.get('id'), innerComment.get('timeStamp'), innerComment.get('deleted'));
282
+ }), id)
283
+ : createComment(map.get('content'), map.get('author'), id, map.get('timeStamp'), map.get('deleted'));
284
+ _this._withLocalTransaction(function () {
285
+ _this.addComment(commentOrThread, parentThread, offset_1);
286
+ });
287
+ });
288
+ }
289
+ else if (typeof retain === 'number') {
290
+ offset_1 += retain;
291
+ }
292
+ else if (typeof del === 'number') {
293
+ var _loop_5 = function (d) {
294
+ var commentOrThread = parentThread === undefined || parentThread === false
295
+ ? _this._comments[offset_1]
296
+ : parentThread.comments[offset_1];
297
+ _this._withLocalTransaction(function () {
298
+ _this.deleteCommentOrThread(commentOrThread, parentThread);
299
+ });
300
+ offset_1++;
301
+ };
302
+ for (var d = 0; d < del; d++) {
303
+ _loop_5(d);
304
+ }
305
+ }
306
+ };
307
+ for (var s = 0; s < deltas.length; s++) {
308
+ _loop_4(s);
309
+ }
310
+ }
311
+ };
312
+ for (var i = 0; i < events.length; i++) {
313
+ _loop_3(i);
314
+ }
315
+ }
316
+ };
317
+ if (sharedCommentsArray === null) {
318
+ return function () { return null; };
319
+ }
320
+ sharedCommentsArray.observeDeep(onSharedCommentChanges);
321
+ connect();
322
+ return function () {
323
+ sharedCommentsArray.unobserveDeep(onSharedCommentChanges);
324
+ unsubscribe();
325
+ _this._collabProvider = null;
326
+ };
327
+ };
328
+ return CommentStore;
329
+ }());
330
+ exports.CommentStore = CommentStore;
331
+ function useCommentStore(commentStore) {
332
+ var _a = (0, react_1.useState)(commentStore.getComments()), comments = _a[0], setComments = _a[1];
333
+ (0, react_1.useEffect)(function () {
334
+ return commentStore.registerOnChange(function () {
335
+ setComments(commentStore.getComments());
336
+ });
337
+ }, [commentStore]);
338
+ return comments;
339
+ }
340
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/commenting/index.ts"],"names":[],"mappings":";;;AA+BA,sCAeC;AAED,oCAOC;AA0UD,0CAYC;AA7YD,oCAA+D;AAE/D,mCAA8C;AAC9C,+BAA2C;AAC3C,2BAAoF;AAoBpF,SAAS,SAAS;IAChB,OAAO,IAAI,CAAC,MAAM,EAAE;SACjB,QAAQ,CAAC,EAAE,CAAC;SACZ,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;SACvB,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,CAAC;AAED,SAAg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;4BACH,CAAC;;wBA9DH,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE;oCAA7B,CAAC;yBA+DT;oBACH,CAAC;;gBAxEH,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE;4BAA7B,CAAC;iBAyET;YACH,CAAC;QACH,CAAC,CAAA;QAED,IAAI,mBAAmB,KAAK,IAAI,EAAE,CAAC;YACjC,OAAO,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAA;QACnB,CAAC;QAED,mBAAmB,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAA;QAEvD,OAAO,EAAE,CAAA;QAET,OAAO;YACL,mBAAmB,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAA;YACzD,WAAW,EAAE,CAAA;YACb,KAAI,CAAC,eAAe,GAAG,IAAI,CAAA;QAC7B,CAAC,CAAA;IACH,CAAC;IACH,mBAAC;AAAD,CAAC,AA5SD,IA4SC;AA5SY,oCAAY;AA8SzB,SAAgB,eAAe,CAAC,YAA0B;IAClD,IAAA,KAA0B,IAAA,gBAAQ,EAAW,YAAY,CAAC,WAAW,EAAE,CAAC,EAAvE,QAAQ,QAAA,EAAE,WAAW,QAAkD,CAAA;IAE9E,IAAA,iBAAS,EACP;QACE,OAAA,YAAY,CAAC,gBAAgB,CAAC;YAC5B,WAAW,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,CAAA;QACzC,CAAC,CAAC;IAFF,CAEE,EACJ,CAAC,YAAY,CAAC,CACf,CAAA;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const styleTag = "\n.PlaygroundEditorTheme__ltr {\n text-align: left;\n}\n.PlaygroundEditorTheme__rtl {\n text-align: right;\n}\n\n.PlaygroundEditorTheme__quote {\n margin: 0;\n margin-left: 20px;\n font-size: 15px;\n color: rgb(101, 103, 107);\n border-left-color: rgb(206, 208, 212);\n border-left-width: 4px;\n border-left-style: solid;\n padding-left: 16px;\n}\n.PlaygroundEditorTheme__h1 {\n font-size: 34px;\n margin-bottom: 10px;\n}\n.PlaygroundEditorTheme__h2 {\n font-size: 29px;\n margin-bottom: 10px;\n}\n.PlaygroundEditorTheme__h3 {\n font-size: 24px;\n margin-bottom: 10px;\n}\n.PlaygroundEditorTheme__h4 {\n font-size: 21px;\n margin-bottom: 10px;\n}\n.PlaygroundEditorTheme__h5 {\n font-size: 18px;\n margin-bottom: 10px;\n}\n.PlaygroundEditorTheme__h6 {\n font-size: 16px;\n margin-bottom: 10px;\n}\n.PlaygroundEditorTheme__indent {\n --lexical-indent-base-value: 40px;\n}\n.PlaygroundEditorTheme__textBold {\n font-weight: bold;\n}\n.PlaygroundEditorTheme__textItalic {\n font-style: italic;\n}\n.PlaygroundEditorTheme__textUnderline {\n text-decoration: underline;\n}\n.PlaygroundEditorTheme__textStrikethrough {\n text-decoration: line-through;\n}\n.PlaygroundEditorTheme__textUnderlineStrikethrough {\n text-decoration: underline line-through;\n}\n.PlaygroundEditorTheme__textSubscript {\n font-size: 0.8em;\n vertical-align: sub !important;\n}\n.PlaygroundEditorTheme__textSuperscript {\n font-size: 0.8em;\n vertical-align: super;\n}\n.PlaygroundEditorTheme__textCode {\n background-color: rgb(240, 242, 245);\n padding: 1px 0.25rem;\n font-family: Menlo, Consolas, Monaco, monospace;\n font-size: 94%;\n}\n.PlaygroundEditorTheme__hashtag {\n background-color: rgba(88, 144, 255, 0.15);\n border-bottom: 1px solid rgba(88, 144, 255, 0.3);\n}\n.PlaygroundEditorTheme__link {\n color: rgb(33, 111, 219);\n text-decoration: none;\n}\n.PlaygroundEditorTheme__link:hover {\n text-decoration: underline;\n cursor: pointer;\n}\n.PlaygroundEditorTheme__code {\n background-color: rgb(240, 242, 245);\n font-family: Menlo, Consolas, Monaco, monospace;\n display: block;\n padding: 8px 8px 8px 52px;\n line-height: 1.53;\n font-size: 13px;\n margin: 0;\n margin-top: 8px;\n margin-bottom: 8px;\n overflow-x: auto;\n position: relative;\n tab-size: 2;\n}\n.PlaygroundEditorTheme__code:before {\n content: attr(data-gutter);\n position: absolute;\n background-color: #eee;\n left: 0;\n top: 0;\n border-right: 1px solid #ccc;\n padding: 8px;\n color: #777;\n white-space: pre-wrap;\n text-align: right;\n min-width: 25px;\n}\n.PlaygroundEditorTheme__table {\n border-collapse: collapse;\n border-spacing: 0;\n overflow-y: scroll;\n overflow-x: scroll;\n table-layout: fixed;\n width: max-content;\n margin: 30px 0;\n}\n.PlaygroundEditorTheme__tableSelection *::selection {\n background-color: transparent;\n}\n.PlaygroundEditorTheme__tableSelected {\n outline: 2px solid rgb(60, 132, 244);\n}\n.PlaygroundEditorTheme__tableCell {\n border: 1px solid #bbb;\n width: 75px;\n min-width: 75px;\n vertical-align: top;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n outline: none;\n}\n.PlaygroundEditorTheme__tableCellSortedIndicator {\n display: block;\n opacity: 0.5;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 4px;\n background-color: #999;\n}\n.PlaygroundEditorTheme__tableCellResizer {\n position: absolute;\n right: -4px;\n height: 100%;\n width: 8px;\n cursor: ew-resize;\n z-index: 10;\n top: 0;\n}\n.PlaygroundEditorTheme__tableCellHeader {\n background-color: #f2f3f5;\n text-align: start;\n}\n.PlaygroundEditorTheme__tableCellSelected {\n background-color: #c9dbf0;\n}\n.PlaygroundEditorTheme__tableCellPrimarySelected {\n border: 2px solid rgb(60, 132, 244);\n display: block;\n height: calc(100% - 2px);\n position: absolute;\n width: calc(100% - 2px);\n left: -1px;\n top: -1px;\n z-index: 2;\n}\n.PlaygroundEditorTheme__tableCellEditing {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);\n border-radius: 3px;\n}\n.PlaygroundEditorTheme__tableAddColumns {\n position: absolute;\n top: 0;\n width: 20px;\n background-color: #eee;\n height: 100%;\n right: -25px;\n animation: table-controls 0.2s ease;\n border: 0;\n cursor: pointer;\n}\n.PlaygroundEditorTheme__tableAddColumns:after {\n background-image: url('/icons/plus.svg');\n background-size: contain;\n background-position: center;\n background-repeat: no-repeat;\n display: block;\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0.4;\n}\n.PlaygroundEditorTheme__tableAddColumns:hover {\n background-color: #c9dbf0;\n}\n.PlaygroundEditorTheme__tableAddRows {\n position: absolute;\n bottom: -25px;\n width: calc(100% - 25px);\n background-color: #eee;\n height: 20px;\n left: 0;\n animation: table-controls 0.2s ease;\n border: 0;\n cursor: pointer;\n}\n.PlaygroundEditorTheme__tableAddRows:after {\n background-image: url(/icons/plus.svg);\n background-size: contain;\n background-position: center;\n background-repeat: no-repeat;\n display: block;\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0.4;\n}\n.PlaygroundEditorTheme__tableAddRows:hover {\n background-color: #c9dbf0;\n}\n@keyframes table-controls {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.PlaygroundEditorTheme__tableCellResizeRuler {\n display: block;\n position: absolute;\n width: 1px;\n background-color: rgb(60, 132, 244);\n height: 100%;\n top: 0;\n}\n.PlaygroundEditorTheme__tableCellActionButtonContainer {\n display: block;\n right: 5px;\n top: 6px;\n position: absolute;\n z-index: 4;\n width: 20px;\n height: 20px;\n}\n.PlaygroundEditorTheme__tableCellActionButton {\n background-color: #eee;\n display: block;\n border: 0;\n border-radius: 20px;\n width: 20px;\n height: 20px;\n color: #222;\n cursor: pointer;\n}\n.PlaygroundEditorTheme__tableCellActionButton:hover {\n background-color: #ddd;\n}\n.PlaygroundEditorTheme__characterLimit {\n display: inline;\n background-color: #ffbbbb !important;\n}\n.PlaygroundEditorTheme__ol1 {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n list-style-type: decimal;\n margin-left: 20px;\n}\n.PlaygroundEditorTheme__ol2 {\n padding: 0;\n margin: 0;\n list-style-type: upper-alpha;\n list-style-position: inside;\n margin-left: 20px;\n}\n.PlaygroundEditorTheme__ol3 {\n padding: 0;\n margin: 0;\n list-style-type: lower-alpha;\n list-style-position: inside;\n margin-left: 20px;\n}\n.PlaygroundEditorTheme__ol4 {\n padding: 0;\n margin: 0;\n list-style-type: upper-roman;\n list-style-position: inside;\n margin-left: 20px;\n}\n.PlaygroundEditorTheme__ol5 {\n padding: 0;\n margin: 0;\n list-style-type: lower-roman;\n list-style-position: inside;\n margin-left: 20px;\n}\n.PlaygroundEditorTheme__ul {\n padding: 0;\n margin: 0;\n list-style: disc;\n margin-left: 20px;\n list-style-position: inside !important;;\n}\n\n.PlaygroundEditorTheme__listItemChecked,\n.PlaygroundEditorTheme__listItemUnchecked {\n position: relative;\n margin-left: 8px;\n margin-right: 8px;\n padding-left: 24px;\n padding-right: 24px;\n list-style-type: none;\n outline: none;\n}\n.PlaygroundEditorTheme__listItemChecked {\n text-decoration: line-through;\n}\n.PlaygroundEditorTheme__listItemUnchecked:before,\n.PlaygroundEditorTheme__listItemChecked:before {\n content: '';\n width: 16px;\n height: 16px;\n top: 2px;\n left: 0;\n cursor: pointer;\n display: block;\n background-size: cover;\n position: absolute;\n}\n.PlaygroundEditorTheme__listItemUnchecked[dir='rtl']:before,\n.PlaygroundEditorTheme__listItemChecked[dir='rtl']:before {\n left: auto;\n right: 0;\n}\n.PlaygroundEditorTheme__listItemUnchecked:focus:before,\n.PlaygroundEditorTheme__listItemChecked:focus:before {\n box-shadow: 0 0 0 2px #a6cdfe;\n border-radius: 2px;\n}\n.PlaygroundEditorTheme__listItemUnchecked:before {\n border: 1px solid #999;\n border-radius: 2px;\n}\n.PlaygroundEditorTheme__listItemChecked:before {\n border: 1px solid rgb(61, 135, 245);\n border-radius: 2px;\n background-color: #3d87f5;\n background-repeat: no-repeat;\n}\n.PlaygroundEditorTheme__listItemChecked:after {\n content: '';\n cursor: pointer;\n border-color: #fff;\n border-style: solid;\n position: absolute;\n display: block;\n top: 6px;\n width: 3px;\n left: 7px;\n right: 7px;\n height: 6px;\n transform: rotate(45deg);\n border-width: 0 2px 2px 0;\n}\n.PlaygroundEditorTheme__nestedListItem {\n list-style-type: none;\n}\n.PlaygroundEditorTheme__nestedListItem:before,\n.PlaygroundEditorTheme__nestedListItem:after {\n display: none;\n}\n.PlaygroundEditorTheme__tokenComment {\n color: slategray;\n}\n.PlaygroundEditorTheme__tokenPunctuation {\n color: #999;\n}\n.PlaygroundEditorTheme__tokenProperty {\n color: #905;\n}\n.PlaygroundEditorTheme__tokenSelector {\n color: #690;\n}\n.PlaygroundEditorTheme__tokenOperator {\n color: #9a6e3a;\n}\n.PlaygroundEditorTheme__tokenAttr {\n color: #07a;\n}\n.PlaygroundEditorTheme__tokenVariable {\n color: #e90;\n}\n.PlaygroundEditorTheme__tokenFunction {\n color: #dd4a68;\n}\n.PlaygroundEditorTheme__mark {\n background: rgba(255, 212, 0, 0.14);\n border-bottom: 2px solid rgba(255, 212, 0, 0.3);\n padding-bottom: 2px;\n}\n.PlaygroundEditorTheme__markOverlap {\n background: rgba(255, 212, 0, 0.3);\n border-bottom: 2px solid rgba(255, 212, 0, 0.7);\n}\n.PlaygroundEditorTheme__mark.selected {\n background: rgba(255, 212, 0, 0.5);\n border-bottom: 2px solid rgba(255, 212, 0, 1);\n}\n.PlaygroundEditorTheme__markOverlap.selected {\n background: rgba(255, 212, 0, 0.7);\n border-bottom: 2px solid rgba(255, 212, 0, 0.7);\n}\n.PlaygroundEditorTheme__embedBlock {\n user-select: none;\n}\n.PlaygroundEditorTheme__embedBlockFocus {\n outline: 2px solid rgb(60, 132, 244);\n}\n.PlaygroundEditorTheme__layoutContaner {\n display: grid;\n gap: 10px;\n margin: 10px 0;\n}\n.PlaygroundEditorTheme__layoutItem {\n border: 1px dashed #ddd;\n padding: 8px 16px;\n}\n\n.editor-image img {\n margin-left: auto;\n margin-right: auto;\n max-width: 90% !important;\n border: 1px solid #e5e7eb\n margin-bottom: 10px;\n}\n";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.styleTag = void 0;
4
+ exports.styleTag = "\n.PlaygroundEditorTheme__ltr {\n text-align: left;\n}\n.PlaygroundEditorTheme__rtl {\n text-align: right;\n}\n\n.PlaygroundEditorTheme__quote {\n margin: 0;\n margin-left: 20px;\n font-size: 15px;\n color: rgb(101, 103, 107);\n border-left-color: rgb(206, 208, 212);\n border-left-width: 4px;\n border-left-style: solid;\n padding-left: 16px;\n}\n.PlaygroundEditorTheme__h1 {\n font-size: 34px;\n margin-bottom: 10px;\n}\n.PlaygroundEditorTheme__h2 {\n font-size: 29px;\n margin-bottom: 10px;\n}\n.PlaygroundEditorTheme__h3 {\n font-size: 24px;\n margin-bottom: 10px;\n}\n.PlaygroundEditorTheme__h4 {\n font-size: 21px;\n margin-bottom: 10px;\n}\n.PlaygroundEditorTheme__h5 {\n font-size: 18px;\n margin-bottom: 10px;\n}\n.PlaygroundEditorTheme__h6 {\n font-size: 16px;\n margin-bottom: 10px;\n}\n.PlaygroundEditorTheme__indent {\n --lexical-indent-base-value: 40px;\n}\n.PlaygroundEditorTheme__textBold {\n font-weight: bold;\n}\n.PlaygroundEditorTheme__textItalic {\n font-style: italic;\n}\n.PlaygroundEditorTheme__textUnderline {\n text-decoration: underline;\n}\n.PlaygroundEditorTheme__textStrikethrough {\n text-decoration: line-through;\n}\n.PlaygroundEditorTheme__textUnderlineStrikethrough {\n text-decoration: underline line-through;\n}\n.PlaygroundEditorTheme__textSubscript {\n font-size: 0.8em;\n vertical-align: sub !important;\n}\n.PlaygroundEditorTheme__textSuperscript {\n font-size: 0.8em;\n vertical-align: super;\n}\n.PlaygroundEditorTheme__textCode {\n background-color: rgb(240, 242, 245);\n padding: 1px 0.25rem;\n font-family: Menlo, Consolas, Monaco, monospace;\n font-size: 94%;\n}\n.PlaygroundEditorTheme__hashtag {\n background-color: rgba(88, 144, 255, 0.15);\n border-bottom: 1px solid rgba(88, 144, 255, 0.3);\n}\n.PlaygroundEditorTheme__link {\n color: rgb(33, 111, 219);\n text-decoration: none;\n}\n.PlaygroundEditorTheme__link:hover {\n text-decoration: underline;\n cursor: pointer;\n}\n.PlaygroundEditorTheme__code {\n background-color: rgb(240, 242, 245);\n font-family: Menlo, Consolas, Monaco, monospace;\n display: block;\n padding: 8px 8px 8px 52px;\n line-height: 1.53;\n font-size: 13px;\n margin: 0;\n margin-top: 8px;\n margin-bottom: 8px;\n overflow-x: auto;\n position: relative;\n tab-size: 2;\n}\n.PlaygroundEditorTheme__code:before {\n content: attr(data-gutter);\n position: absolute;\n background-color: #eee;\n left: 0;\n top: 0;\n border-right: 1px solid #ccc;\n padding: 8px;\n color: #777;\n white-space: pre-wrap;\n text-align: right;\n min-width: 25px;\n}\n.PlaygroundEditorTheme__table {\n border-collapse: collapse;\n border-spacing: 0;\n overflow-y: scroll;\n overflow-x: scroll;\n table-layout: fixed;\n width: max-content;\n margin: 30px 0;\n}\n.PlaygroundEditorTheme__tableSelection *::selection {\n background-color: transparent;\n}\n.PlaygroundEditorTheme__tableSelected {\n outline: 2px solid rgb(60, 132, 244);\n}\n.PlaygroundEditorTheme__tableCell {\n border: 1px solid #bbb;\n width: 75px;\n min-width: 75px;\n vertical-align: top;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n outline: none;\n}\n.PlaygroundEditorTheme__tableCellSortedIndicator {\n display: block;\n opacity: 0.5;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 4px;\n background-color: #999;\n}\n.PlaygroundEditorTheme__tableCellResizer {\n position: absolute;\n right: -4px;\n height: 100%;\n width: 8px;\n cursor: ew-resize;\n z-index: 10;\n top: 0;\n}\n.PlaygroundEditorTheme__tableCellHeader {\n background-color: #f2f3f5;\n text-align: start;\n}\n.PlaygroundEditorTheme__tableCellSelected {\n background-color: #c9dbf0;\n}\n.PlaygroundEditorTheme__tableCellPrimarySelected {\n border: 2px solid rgb(60, 132, 244);\n display: block;\n height: calc(100% - 2px);\n position: absolute;\n width: calc(100% - 2px);\n left: -1px;\n top: -1px;\n z-index: 2;\n}\n.PlaygroundEditorTheme__tableCellEditing {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);\n border-radius: 3px;\n}\n.PlaygroundEditorTheme__tableAddColumns {\n position: absolute;\n top: 0;\n width: 20px;\n background-color: #eee;\n height: 100%;\n right: -25px;\n animation: table-controls 0.2s ease;\n border: 0;\n cursor: pointer;\n}\n.PlaygroundEditorTheme__tableAddColumns:after {\n background-image: url('/icons/plus.svg');\n background-size: contain;\n background-position: center;\n background-repeat: no-repeat;\n display: block;\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0.4;\n}\n.PlaygroundEditorTheme__tableAddColumns:hover {\n background-color: #c9dbf0;\n}\n.PlaygroundEditorTheme__tableAddRows {\n position: absolute;\n bottom: -25px;\n width: calc(100% - 25px);\n background-color: #eee;\n height: 20px;\n left: 0;\n animation: table-controls 0.2s ease;\n border: 0;\n cursor: pointer;\n}\n.PlaygroundEditorTheme__tableAddRows:after {\n background-image: url(/icons/plus.svg);\n background-size: contain;\n background-position: center;\n background-repeat: no-repeat;\n display: block;\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0.4;\n}\n.PlaygroundEditorTheme__tableAddRows:hover {\n background-color: #c9dbf0;\n}\n@keyframes table-controls {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.PlaygroundEditorTheme__tableCellResizeRuler {\n display: block;\n position: absolute;\n width: 1px;\n background-color: rgb(60, 132, 244);\n height: 100%;\n top: 0;\n}\n.PlaygroundEditorTheme__tableCellActionButtonContainer {\n display: block;\n right: 5px;\n top: 6px;\n position: absolute;\n z-index: 4;\n width: 20px;\n height: 20px;\n}\n.PlaygroundEditorTheme__tableCellActionButton {\n background-color: #eee;\n display: block;\n border: 0;\n border-radius: 20px;\n width: 20px;\n height: 20px;\n color: #222;\n cursor: pointer;\n}\n.PlaygroundEditorTheme__tableCellActionButton:hover {\n background-color: #ddd;\n}\n.PlaygroundEditorTheme__characterLimit {\n display: inline;\n background-color: #ffbbbb !important;\n}\n.PlaygroundEditorTheme__ol1 {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n list-style-type: decimal;\n margin-left: 20px;\n}\n.PlaygroundEditorTheme__ol2 {\n padding: 0;\n margin: 0;\n list-style-type: upper-alpha;\n list-style-position: inside;\n margin-left: 20px;\n}\n.PlaygroundEditorTheme__ol3 {\n padding: 0;\n margin: 0;\n list-style-type: lower-alpha;\n list-style-position: inside;\n margin-left: 20px;\n}\n.PlaygroundEditorTheme__ol4 {\n padding: 0;\n margin: 0;\n list-style-type: upper-roman;\n list-style-position: inside;\n margin-left: 20px;\n}\n.PlaygroundEditorTheme__ol5 {\n padding: 0;\n margin: 0;\n list-style-type: lower-roman;\n list-style-position: inside;\n margin-left: 20px;\n}\n.PlaygroundEditorTheme__ul {\n padding: 0;\n margin: 0;\n list-style: disc;\n margin-left: 20px;\n list-style-position: inside !important;;\n}\n\n.PlaygroundEditorTheme__listItemChecked,\n.PlaygroundEditorTheme__listItemUnchecked {\n position: relative;\n margin-left: 8px;\n margin-right: 8px;\n padding-left: 24px;\n padding-right: 24px;\n list-style-type: none;\n outline: none;\n}\n.PlaygroundEditorTheme__listItemChecked {\n text-decoration: line-through;\n}\n.PlaygroundEditorTheme__listItemUnchecked:before,\n.PlaygroundEditorTheme__listItemChecked:before {\n content: '';\n width: 16px;\n height: 16px;\n top: 2px;\n left: 0;\n cursor: pointer;\n display: block;\n background-size: cover;\n position: absolute;\n}\n.PlaygroundEditorTheme__listItemUnchecked[dir='rtl']:before,\n.PlaygroundEditorTheme__listItemChecked[dir='rtl']:before {\n left: auto;\n right: 0;\n}\n.PlaygroundEditorTheme__listItemUnchecked:focus:before,\n.PlaygroundEditorTheme__listItemChecked:focus:before {\n box-shadow: 0 0 0 2px #a6cdfe;\n border-radius: 2px;\n}\n.PlaygroundEditorTheme__listItemUnchecked:before {\n border: 1px solid #999;\n border-radius: 2px;\n}\n.PlaygroundEditorTheme__listItemChecked:before {\n border: 1px solid rgb(61, 135, 245);\n border-radius: 2px;\n background-color: #3d87f5;\n background-repeat: no-repeat;\n}\n.PlaygroundEditorTheme__listItemChecked:after {\n content: '';\n cursor: pointer;\n border-color: #fff;\n border-style: solid;\n position: absolute;\n display: block;\n top: 6px;\n width: 3px;\n left: 7px;\n right: 7px;\n height: 6px;\n transform: rotate(45deg);\n border-width: 0 2px 2px 0;\n}\n.PlaygroundEditorTheme__nestedListItem {\n list-style-type: none;\n}\n.PlaygroundEditorTheme__nestedListItem:before,\n.PlaygroundEditorTheme__nestedListItem:after {\n display: none;\n}\n.PlaygroundEditorTheme__tokenComment {\n color: slategray;\n}\n.PlaygroundEditorTheme__tokenPunctuation {\n color: #999;\n}\n.PlaygroundEditorTheme__tokenProperty {\n color: #905;\n}\n.PlaygroundEditorTheme__tokenSelector {\n color: #690;\n}\n.PlaygroundEditorTheme__tokenOperator {\n color: #9a6e3a;\n}\n.PlaygroundEditorTheme__tokenAttr {\n color: #07a;\n}\n.PlaygroundEditorTheme__tokenVariable {\n color: #e90;\n}\n.PlaygroundEditorTheme__tokenFunction {\n color: #dd4a68;\n}\n.PlaygroundEditorTheme__mark {\n background: rgba(255, 212, 0, 0.14);\n border-bottom: 2px solid rgba(255, 212, 0, 0.3);\n padding-bottom: 2px;\n}\n.PlaygroundEditorTheme__markOverlap {\n background: rgba(255, 212, 0, 0.3);\n border-bottom: 2px solid rgba(255, 212, 0, 0.7);\n}\n.PlaygroundEditorTheme__mark.selected {\n background: rgba(255, 212, 0, 0.5);\n border-bottom: 2px solid rgba(255, 212, 0, 1);\n}\n.PlaygroundEditorTheme__markOverlap.selected {\n background: rgba(255, 212, 0, 0.7);\n border-bottom: 2px solid rgba(255, 212, 0, 0.7);\n}\n.PlaygroundEditorTheme__embedBlock {\n user-select: none;\n}\n.PlaygroundEditorTheme__embedBlockFocus {\n outline: 2px solid rgb(60, 132, 244);\n}\n.PlaygroundEditorTheme__layoutContaner {\n display: grid;\n gap: 10px;\n margin: 10px 0;\n}\n.PlaygroundEditorTheme__layoutItem {\n border: 1px dashed #ddd;\n padding: 8px 16px;\n}\n\n.editor-image img {\n margin-left: auto;\n margin-right: auto;\n max-width: 90% !important;\n border: 1px solid #e5e7eb\n margin-bottom: 10px;\n}\n";
5
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/components/TextEditorV2/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,qlUAkcvB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { SettingName } from '../lib/appSettings';
4
+ type SettingsContextShape = {
5
+ setOption(name: SettingName, value: boolean): void;
6
+ settings: Record<SettingName, boolean>;
7
+ };
8
+ export declare const SettingsContext: ({ children }: {
9
+ children: ReactNode;
10
+ }) => React.JSX.Element;
11
+ export declare const useSettings: () => SettingsContextShape;
12
+ export {};
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useSettings = exports.SettingsContext = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var React = tslib_1.__importStar(require("react"));
6
+ var react_1 = require("react");
7
+ var appSettings_1 = require("../lib/appSettings");
8
+ var Context = (0, react_1.createContext)({
9
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars,arrow-body-style
10
+ setOption: function (name, value) {
11
+ console.log({
12
+ name: name,
13
+ value: value,
14
+ });
15
+ return;
16
+ },
17
+ settings: appSettings_1.DEFAULT_SETTINGS,
18
+ });
19
+ var SettingsContext = function (_a) {
20
+ var children = _a.children;
21
+ var _b = (0, react_1.useState)(appSettings_1.DEFAULT_SETTINGS), settings = _b[0], setSettings = _b[1];
22
+ var setOption = (0, react_1.useCallback)(function (setting, value) {
23
+ setSettings(function (options) {
24
+ var _a;
25
+ return (tslib_1.__assign(tslib_1.__assign({}, options), (_a = {}, _a[setting] = value, _a)));
26
+ });
27
+ if (appSettings_1.DEFAULT_SETTINGS[setting] === value) {
28
+ setURLParam(setting, null);
29
+ }
30
+ else {
31
+ setURLParam(setting, value);
32
+ }
33
+ }, []);
34
+ var contextValue = (0, react_1.useMemo)(function () { return ({ setOption: setOption, settings: settings }); }, [setOption, settings]);
35
+ return React.createElement(Context.Provider, { value: contextValue }, children);
36
+ };
37
+ exports.SettingsContext = SettingsContext;
38
+ var useSettings = function () { return (0, react_1.useContext)(Context); };
39
+ exports.useSettings = useSettings;
40
+ function setURLParam(param, value) {
41
+ var url = new URL(window.location.href);
42
+ var params = new URLSearchParams(url.search);
43
+ if (value !== null) {
44
+ if (params.has(param)) {
45
+ params.set(param, String(value));
46
+ }
47
+ else {
48
+ params.append(param, String(value));
49
+ }
50
+ }
51
+ else {
52
+ if (params.has(param)) {
53
+ params.delete(param);
54
+ }
55
+ }
56
+ url.search = params.toString();
57
+ window.history.pushState(null, '', url.toString());
58
+ }
59
+ //# sourceMappingURL=SettingsContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsContext.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/context/SettingsContext.tsx"],"names":[],"mappings":";;;;AAAA,mDAA8B;AAC9B,+BAA4F;AAC5F,kDAAkE;AAOlE,IAAM,OAAO,GAAwC,IAAA,qBAAa,EAAC;IACjE,8EAA8E;IAC9E,SAAS,EAAE,UAAC,IAAiB,EAAE,KAAc;QAC3C,OAAO,CAAC,GAAG,CAAC;YACV,IAAI,MAAA;YACJ,KAAK,OAAA;SACN,CAAC,CAAA;QACF,OAAM;IACR,CAAC;IACD,QAAQ,EAAE,8BAAgB;CAC3B,CAAC,CAAA;AAEK,IAAM,eAAe,GAAG,UAAC,EAAqC;QAAnC,QAAQ,cAAA;IAClC,IAAA,KAA0B,IAAA,gB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M,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;QAClC,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;QACrC,CAAC;IACH,CAAC;SAAM,CAAC;QACN,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YACtB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QACtB,CAAC;IACH,CAAC;IACD,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAA;IAC9B,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAA;AACpD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { ReactNode } from 'react';
3
+ type Suggestion = null | string;
4
+ type PublishFn = (newSuggestion: Suggestion) => void;
5
+ type HookShape = [suggestion: Suggestion, setSuggestion: PublishFn];
6
+ export declare const SharedAutocompleteContext: ({ children }: {
7
+ children: ReactNode;
8
+ }) => React.JSX.Element;
9
+ export declare const useSharedAutocompleteContext: () => HookShape;
10
+ export {};
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useSharedAutocompleteContext = exports.SharedAutocompleteContext = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var React = tslib_1.__importStar(require("react"));
6
+ var react_1 = require("react");
7
+ var Context = (0, react_1.createContext)([
8
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars,arrow-body-style
9
+ function (_cb) { return function () {
10
+ return;
11
+ }; },
12
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars,arrow-body-style
13
+ function (_newSuggestion) {
14
+ return;
15
+ },
16
+ ]);
17
+ var SharedAutocompleteContext = function (_a) {
18
+ var children = _a.children;
19
+ var context = (0, react_1.useMemo)(function () {
20
+ var suggestion = null;
21
+ var listeners = new Set();
22
+ return [
23
+ function (cb) {
24
+ cb(suggestion);
25
+ listeners.add(cb);
26
+ return function () {
27
+ listeners.delete(cb);
28
+ };
29
+ },
30
+ function (newSuggestion) {
31
+ suggestion = newSuggestion;
32
+ listeners.forEach(function (listener) { return listener(newSuggestion); });
33
+ },
34
+ ];
35
+ }, []);
36
+ return React.createElement(Context.Provider, { value: context }, children);
37
+ };
38
+ exports.SharedAutocompleteContext = SharedAutocompleteContext;
39
+ var useSharedAutocompleteContext = function () {
40
+ var _a = (0, react_1.useContext)(Context), subscribe = _a[0], publish = _a[1];
41
+ var _b = (0, react_1.useState)(null), suggestion = _b[0], setSuggestion = _b[1];
42
+ (0, react_1.useEffect)(function () {
43
+ return subscribe(function (newSuggestion) {
44
+ setSuggestion(newSuggestion);
45
+ });
46
+ }, [subscribe]);
47
+ return [suggestion, publish];
48
+ };
49
+ exports.useSharedAutocompleteContext = useSharedAutocompleteContext;
50
+ //# sourceMappingURL=SharedAutocompleteContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SharedAutocompleteContext.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/context/SharedAutocompleteContext.tsx"],"names":[],"mappings":";;;;AAAA,mDAA8B;AAC9B,+BAA0F;AAS1F,IAAM,OAAO,GAAgC,IAAA,qBAAa,EAAC;IACzD,8EAA8E;IAC9E,UAAC,GAAG,IAAK,OAAA;QACP,OAAM;IACR,CAAC,EAFQ,CAER;IACD,8EAA8E;IAC9E,UAAC,cAA0B;QACzB,OAAM;IACR,CAAC;CACF,CAAC,CAAA;AAEK,IAAM,yBAAyB,GAAG,UAAC,EAAqC;QAAnC,QAAQ,cAAA;IAClD,IAAM,OAAO,GAAiB,IAAA,eAAO,EAAC;QACpC,IAAI,UAAU,GAAsB,IAAI,CAAA;QACxC,IAAM,SAAS,GAAoB,IAAI,GAAG,EAAE,CAAA;QAC5C,OAAO;YACL,UAAC,EAAuC;gBACtC,EAAE,CAAC,UAAU,CAAC,CAAA;gBACd,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;gBACjB,OAAO;oBACL,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;gBACtB,CAAC,CAAA;YACH,CAAC;YACD,UAAC,aAAyB;gBACxB,UAAU,GAAG,aAAa,CAAA;gBAC1B,SAAS,CAAC,OAAO,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,aAAa,CAAC,EAAvB,CAAuB,CAAC,CAAA;YAC1D,CAAC;SACF,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IACN,OAAO,oBAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,IAAG,QAAQ,CAAoB,CAAA;AACxE,CAAC,CAAA;AAnBY,QAAA,yBAAyB,6BAmBrC;AAEM,IAAM,4BAA4B,GAAG;IACpC,IAAA,KAAqC,IAAA,kBAAU,EAAC,OAAO,CAAC,EAAvD,SAAS,QAAA,EAAE,OAAO,QAAqC,CAAA;IACxD,IAAA,KAA8B,IAAA,gBAAQ,EAAa,IAAI,CAAC,EAAvD,UAAU,QAAA,EAAE,aAAa,QAA8B,CAAA;IAC9D,IAAA,iBAAS,EACP;QACE,OAAA,SAAS,CAAC,UAAC,aAAyB;YAClC,aAAa,CAAC,aAAa,CAAC,CAAA;QAC9B,CAAC,CAAC;IAFF,CAEE,EACJ,CAAC,SAAS,CAAC,CACZ,CAAA;IACD,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;AAC9B,CAAC,CAAA;AAXY,QAAA,4BAA4B,gCAWxC"}
@@ -0,0 +1,11 @@
1
+ import type { HistoryState } from '@lexical/react/LexicalHistoryPlugin';
2
+ import * as React from 'react';
3
+ import { ReactNode } from 'react';
4
+ type ContextShape = {
5
+ historyState?: HistoryState;
6
+ };
7
+ export declare const SharedHistoryContext: ({ children }: {
8
+ children: ReactNode;
9
+ }) => React.JSX.Element;
10
+ export declare const useSharedHistoryContext: () => ContextShape;
11
+ export {};
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useSharedHistoryContext = exports.SharedHistoryContext = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var LexicalHistoryPlugin_1 = require("@lexical/react/LexicalHistoryPlugin");
6
+ var React = tslib_1.__importStar(require("react"));
7
+ var react_1 = require("react");
8
+ var Context = (0, react_1.createContext)({});
9
+ var SharedHistoryContext = function (_a) {
10
+ var children = _a.children;
11
+ var historyContext = (0, react_1.useMemo)(function () { return ({ historyState: (0, LexicalHistoryPlugin_1.createEmptyHistoryState)() }); }, []);
12
+ return React.createElement(Context.Provider, { value: historyContext }, children);
13
+ };
14
+ exports.SharedHistoryContext = SharedHistoryContext;
15
+ var useSharedHistoryContext = function () { return (0, react_1.useContext)(Context); };
16
+ exports.useSharedHistoryContext = useSharedHistoryContext;
17
+ //# sourceMappingURL=SharedHistoryContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SharedHistoryContext.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/context/SharedHistoryContext.tsx"],"names":[],"mappings":";;;;AACA,4EAA6E;AAC7E,mDAA8B;AAC9B,+BAAqE;AAMrE,IAAM,OAAO,GAAgC,IAAA,qBAAa,EAAC,EAAE,CAAC,CAAA;AAEvD,IAAM,oBAAoB,GAAG,UAAC,EAAqC;QAAnC,QAAQ,cAAA;IAC7C,IAAM,cAAc,GAAG,IAAA,eAAO,EAAC,cAAM,OAAA,CAAC,EAAE,YAAY,EAAE,IAAA,8CAAuB,GAAE,EAAE,CAAC,EAA7C,CAA6C,EAAE,EAAE,CAAC,CAAA;IACvF,OAAO,oBAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,cAAc,IAAG,QAAQ,CAAoB,CAAA;AAC/E,CAAC,CAAA;AAHY,QAAA,oBAAoB,wBAGhC;AAEM,IAAM,uBAAuB,GAAG,cAAoB,OAAA,IAAA,kBAAU,EAAC,OAAO,CAAC,EAAnB,CAAmB,CAAA;AAAjE,QAAA,uBAAuB,2BAA0C"}