phx-react 1.3.1718 → 1.3.1719

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 (297) hide show
  1. package/dist/cjs/components/TextEditorV2/constants.d.ts +1 -1
  2. package/dist/cjs/components/TextEditorV2/constants.js +15 -0
  3. package/dist/cjs/components/TextEditorV2/constants.js.map +1 -1
  4. package/dist/cjs/components/TextEditorV2/editor.js +10 -58
  5. package/dist/cjs/components/TextEditorV2/editor.js.map +1 -1
  6. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.js +2 -8
  7. package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.js.map +1 -1
  8. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.js +2 -2
  9. package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.js.map +1 -1
  10. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.js +0 -19
  11. package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.js.map +1 -1
  12. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js +1 -2
  13. package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -1
  14. package/dist/cjs/components/TextEditorV2/plugins/SanitizePastePlugin/index.d.ts +1 -0
  15. package/dist/cjs/components/TextEditorV2/plugins/SanitizePastePlugin/index.js +58 -0
  16. package/dist/cjs/components/TextEditorV2/plugins/SanitizePastePlugin/index.js.map +1 -0
  17. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js +2 -0
  18. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js.map +1 -1
  19. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js +4 -6
  20. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js.map +1 -1
  21. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.d.ts +1 -1
  22. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js +22 -10
  23. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js.map +1 -1
  24. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js +2 -0
  25. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js.map +1 -1
  26. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/list-marker-format.d.ts +5 -0
  27. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/list-marker-format.js +27 -0
  28. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/list-marker-format.js.map +1 -0
  29. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js +1 -3
  30. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js.map +1 -1
  31. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.js +0 -4
  32. package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.js.map +1 -1
  33. package/dist/cjs/components/TextEditorV2/shared/LexicalErrorBoundary.d.ts +13 -0
  34. package/dist/cjs/components/TextEditorV2/shared/LexicalErrorBoundary.js +25 -0
  35. package/dist/cjs/components/TextEditorV2/shared/LexicalErrorBoundary.js.map +1 -0
  36. package/dist/cjs/components/TextEditorV2/style.js +21 -0
  37. package/dist/cjs/components/TextEditorV2/style.js.map +1 -1
  38. package/dist/esm/components/TextEditorV2/constants.d.ts +1 -1
  39. package/dist/esm/components/TextEditorV2/constants.js +15 -0
  40. package/dist/esm/components/TextEditorV2/constants.js.map +1 -1
  41. package/dist/esm/components/TextEditorV2/editor.js +9 -57
  42. package/dist/esm/components/TextEditorV2/editor.js.map +1 -1
  43. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.js +1 -7
  44. package/dist/esm/components/TextEditorV2/nodes/ImageComponent.js.map +1 -1
  45. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.js +1 -1
  46. package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.js.map +1 -1
  47. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.js +0 -19
  48. package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.js.map +1 -1
  49. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js +1 -2
  50. package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -1
  51. package/dist/esm/components/TextEditorV2/plugins/SanitizePastePlugin/index.d.ts +1 -0
  52. package/dist/esm/components/TextEditorV2/plugins/SanitizePastePlugin/index.js +55 -0
  53. package/dist/esm/components/TextEditorV2/plugins/SanitizePastePlugin/index.js.map +1 -0
  54. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js +2 -0
  55. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js.map +1 -1
  56. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js +5 -7
  57. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js.map +1 -1
  58. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.d.ts +1 -1
  59. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js +23 -11
  60. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js.map +1 -1
  61. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js +2 -0
  62. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js.map +1 -1
  63. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/list-marker-format.d.ts +5 -0
  64. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/list-marker-format.js +24 -0
  65. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/list-marker-format.js.map +1 -0
  66. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js +2 -4
  67. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js.map +1 -1
  68. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.js +0 -4
  69. package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.js.map +1 -1
  70. package/dist/esm/components/TextEditorV2/shared/LexicalErrorBoundary.d.ts +13 -0
  71. package/dist/esm/components/TextEditorV2/shared/LexicalErrorBoundary.js +21 -0
  72. package/dist/esm/components/TextEditorV2/shared/LexicalErrorBoundary.js.map +1 -0
  73. package/dist/esm/components/TextEditorV2/style.js +21 -0
  74. package/dist/esm/components/TextEditorV2/style.js.map +1 -1
  75. package/package.json +9 -7
  76. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.d.ts +0 -25
  77. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.js +0 -60
  78. package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.js.map +0 -1
  79. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.d.ts +0 -18
  80. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.js +0 -62
  81. package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.js.map +0 -1
  82. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.d.ts +0 -9
  83. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.js +0 -70
  84. package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.js.map +0 -1
  85. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.d.ts +0 -26
  86. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.js +0 -121
  87. package/dist/cjs/components/TextEditorV2/nodes/EquationNode.js.map +0 -1
  88. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.d.ts +0 -8
  89. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.js +0 -108
  90. package/dist/cjs/components/TextEditorV2/nodes/PollComponent.js.map +0 -1
  91. package/dist/cjs/components/TextEditorV2/nodes/PollNode.d.ts +0 -33
  92. package/dist/cjs/components/TextEditorV2/nodes/PollNode.js +0 -145
  93. package/dist/cjs/components/TextEditorV2/nodes/PollNode.js.map +0 -1
  94. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.d.ts +0 -9
  95. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.js +0 -166
  96. package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.js.map +0 -1
  97. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.d.ts +0 -37
  98. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.js +0 -91
  99. package/dist/cjs/components/TextEditorV2/nodes/StickyNode.js.map +0 -1
  100. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.d.ts +0 -2
  101. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.js +0 -148
  102. package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.js.map +0 -1
  103. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.d.ts +0 -19
  104. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js +0 -168
  105. package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js.map +0 -1
  106. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.d.ts +0 -2
  107. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.js +0 -2459
  108. package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.js.map +0 -1
  109. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.d.ts +0 -1
  110. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js +0 -12
  111. package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js.map +0 -1
  112. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.d.ts +0 -23
  113. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +0 -88
  114. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +0 -1
  115. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.d.ts +0 -17
  116. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js +0 -68
  117. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +0 -1
  118. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.d.ts +0 -18
  119. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +0 -92
  120. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +0 -1
  121. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.d.ts +0 -3
  122. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.js +0 -145
  123. package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.js.map +0 -1
  124. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.d.ts +0 -11
  125. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.js +0 -129
  126. package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.js.map +0 -1
  127. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.d.ts +0 -2
  128. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js +0 -83
  129. package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js.map +0 -1
  130. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.d.ts +0 -1
  131. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.js +0 -63
  132. package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.js.map +0 -1
  133. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.d.ts +0 -14
  134. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.js +0 -41
  135. package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.js.map +0 -1
  136. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.d.ts +0 -3
  137. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js +0 -28
  138. package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js.map +0 -1
  139. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.d.ts +0 -3
  140. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.js +0 -25
  141. package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.js.map +0 -1
  142. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.d.ts +0 -1
  143. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.js +0 -33
  144. package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.js.map +0 -1
  145. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +0 -6
  146. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js +0 -30
  147. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js.map +0 -1
  148. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.d.ts +0 -7
  149. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js +0 -85
  150. package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js.map +0 -1
  151. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.d.ts +0 -2
  152. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js +0 -11
  153. package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js.map +0 -1
  154. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.d.ts +0 -8
  155. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.js +0 -241
  156. package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.js.map +0 -1
  157. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.d.ts +0 -2
  158. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.js +0 -551
  159. package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.js.map +0 -1
  160. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.d.ts +0 -3
  161. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.js +0 -31
  162. package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.js.map +0 -1
  163. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.d.ts +0 -8
  164. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.js +0 -45
  165. package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.js.map +0 -1
  166. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.d.ts +0 -1
  167. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.js +0 -16
  168. package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.js.map +0 -1
  169. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.d.ts +0 -1
  170. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.js +0 -38
  171. package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.js.map +0 -1
  172. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.d.ts +0 -2
  173. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.js +0 -248
  174. package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.js.map +0 -1
  175. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.d.ts +0 -2
  176. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js +0 -116
  177. package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js.map +0 -1
  178. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.d.ts +0 -3
  179. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.js +0 -25
  180. package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.js.map +0 -1
  181. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.d.ts +0 -3
  182. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.js +0 -25
  183. package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.js.map +0 -1
  184. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.d.ts +0 -7
  185. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.js +0 -38
  186. package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.js.map +0 -1
  187. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.d.ts +0 -25
  188. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.js +0 -54
  189. package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.js.map +0 -1
  190. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.d.ts +0 -18
  191. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.js +0 -56
  192. package/dist/esm/components/TextEditorV2/nodes/EmojiNode.js.map +0 -1
  193. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.d.ts +0 -9
  194. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.js +0 -66
  195. package/dist/esm/components/TextEditorV2/nodes/EquationComponent.js.map +0 -1
  196. package/dist/esm/components/TextEditorV2/nodes/EquationNode.d.ts +0 -26
  197. package/dist/esm/components/TextEditorV2/nodes/EquationNode.js +0 -114
  198. package/dist/esm/components/TextEditorV2/nodes/EquationNode.js.map +0 -1
  199. package/dist/esm/components/TextEditorV2/nodes/PollComponent.d.ts +0 -8
  200. package/dist/esm/components/TextEditorV2/nodes/PollComponent.js +0 -104
  201. package/dist/esm/components/TextEditorV2/nodes/PollComponent.js.map +0 -1
  202. package/dist/esm/components/TextEditorV2/nodes/PollNode.d.ts +0 -33
  203. package/dist/esm/components/TextEditorV2/nodes/PollNode.js +0 -137
  204. package/dist/esm/components/TextEditorV2/nodes/PollNode.js.map +0 -1
  205. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.d.ts +0 -9
  206. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.js +0 -162
  207. package/dist/esm/components/TextEditorV2/nodes/StickyComponent.js.map +0 -1
  208. package/dist/esm/components/TextEditorV2/nodes/StickyNode.d.ts +0 -37
  209. package/dist/esm/components/TextEditorV2/nodes/StickyNode.js +0 -84
  210. package/dist/esm/components/TextEditorV2/nodes/StickyNode.js.map +0 -1
  211. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.d.ts +0 -2
  212. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.js +0 -144
  213. package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.js.map +0 -1
  214. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.d.ts +0 -19
  215. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js +0 -162
  216. package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js.map +0 -1
  217. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.d.ts +0 -2
  218. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.js +0 -2455
  219. package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.js.map +0 -1
  220. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.d.ts +0 -1
  221. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js +0 -9
  222. package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js.map +0 -1
  223. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.d.ts +0 -23
  224. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +0 -81
  225. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +0 -1
  226. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.d.ts +0 -17
  227. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js +0 -61
  228. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +0 -1
  229. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.d.ts +0 -18
  230. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +0 -85
  231. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +0 -1
  232. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.d.ts +0 -3
  233. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.js +0 -141
  234. package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.js.map +0 -1
  235. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.d.ts +0 -11
  236. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.js +0 -123
  237. package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.js.map +0 -1
  238. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.d.ts +0 -2
  239. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js +0 -79
  240. package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js.map +0 -1
  241. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.d.ts +0 -1
  242. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.js +0 -60
  243. package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.js.map +0 -1
  244. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.d.ts +0 -14
  245. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.js +0 -35
  246. package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.js.map +0 -1
  247. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.d.ts +0 -3
  248. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js +0 -24
  249. package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js.map +0 -1
  250. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.d.ts +0 -3
  251. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.js +0 -21
  252. package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.js.map +0 -1
  253. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.d.ts +0 -1
  254. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.js +0 -30
  255. package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.js.map +0 -1
  256. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +0 -6
  257. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js +0 -26
  258. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js.map +0 -1
  259. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.d.ts +0 -7
  260. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js +0 -81
  261. package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js.map +0 -1
  262. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.d.ts +0 -2
  263. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js +0 -7
  264. package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js.map +0 -1
  265. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.d.ts +0 -8
  266. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.js +0 -237
  267. package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.js.map +0 -1
  268. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.d.ts +0 -2
  269. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.js +0 -547
  270. package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.js.map +0 -1
  271. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.d.ts +0 -3
  272. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.js +0 -27
  273. package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.js.map +0 -1
  274. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.d.ts +0 -8
  275. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.js +0 -39
  276. package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.js.map +0 -1
  277. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.d.ts +0 -1
  278. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.js +0 -13
  279. package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.js.map +0 -1
  280. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.d.ts +0 -1
  281. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.js +0 -35
  282. package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.js.map +0 -1
  283. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.d.ts +0 -2
  284. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.js +0 -244
  285. package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.js.map +0 -1
  286. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.d.ts +0 -2
  287. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js +0 -112
  288. package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js.map +0 -1
  289. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.d.ts +0 -3
  290. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.js +0 -21
  291. package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.js.map +0 -1
  292. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.d.ts +0 -3
  293. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.js +0 -21
  294. package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.js.map +0 -1
  295. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.d.ts +0 -7
  296. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.js +0 -34
  297. package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.js.map +0 -1
@@ -1,148 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = ActionsPlugin;
4
- const tslib_1 = require("tslib");
5
- const code_1 = require("@lexical/code");
6
- const file_1 = require("@lexical/file");
7
- const markdown_1 = require("@lexical/markdown");
8
- const LexicalCollaborationContext_1 = require("@lexical/react/LexicalCollaborationContext");
9
- const LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
10
- const utils_1 = require("@lexical/utils");
11
- const yjs_1 = require("@lexical/yjs");
12
- const lexical_1 = require("lexical");
13
- const React = tslib_1.__importStar(require("react"));
14
- const react_1 = require("react");
15
- const useModal_1 = tslib_1.__importDefault(require("../../hooks/useModal"));
16
- const Button_1 = tslib_1.__importDefault(require("../../ui/Button"));
17
- const MarkdownTransformers_1 = require("../MarkdownTransformers");
18
- async function sendEditorState(editor) {
19
- const stringifiedEditorState = JSON.stringify(editor.getEditorState());
20
- try {
21
- await fetch('http://localhost:1235/setEditorState', {
22
- body: stringifiedEditorState,
23
- headers: {
24
- Accept: 'application/json',
25
- 'Content-type': 'application/json',
26
- },
27
- method: 'POST',
28
- });
29
- }
30
- catch (_a) {
31
- // NO-OP
32
- }
33
- }
34
- async function validateEditorState(editor) {
35
- const stringifiedEditorState = JSON.stringify(editor.getEditorState());
36
- let response = null;
37
- try {
38
- response = await fetch('http://localhost:1235/validateEditorState', {
39
- body: stringifiedEditorState,
40
- headers: {
41
- Accept: 'application/json',
42
- 'Content-type': 'application/json',
43
- },
44
- method: 'POST',
45
- });
46
- }
47
- catch (_a) {
48
- // NO-OP
49
- }
50
- if (response !== null && response.status === 403) {
51
- throw new Error('Editor state validation failed! Server did not accept changes.');
52
- }
53
- }
54
- function ActionsPlugin() {
55
- const [editor] = (0, LexicalComposerContext_1.useLexicalComposerContext)();
56
- const [isEditable, setIsEditable] = (0, react_1.useState)(() => editor.isEditable());
57
- const [connected, setConnected] = (0, react_1.useState)(false);
58
- const [isEditorEmpty, setIsEditorEmpty] = (0, react_1.useState)(true);
59
- const [modal, showModal] = (0, useModal_1.default)();
60
- const { isCollabActive } = (0, LexicalCollaborationContext_1.useCollaborationContext)();
61
- (0, react_1.useEffect)(() => (0, utils_1.mergeRegister)(editor.registerEditableListener((editable) => {
62
- setIsEditable(editable);
63
- }), editor.registerCommand(yjs_1.CONNECTED_COMMAND, (payload) => {
64
- const isConnected = payload;
65
- setConnected(isConnected);
66
- return false;
67
- }, lexical_1.COMMAND_PRIORITY_EDITOR)), [editor]);
68
- (0, react_1.useEffect)(() => editor.registerUpdateListener(({ dirtyElements, tags }) => {
69
- // If we are in read only mode, send the editor state
70
- // to server and ask for validation if possible.
71
- if (!isEditable && dirtyElements.size > 0 && !tags.has('historic') && !tags.has('collaboration')) {
72
- validateEditorState(editor);
73
- }
74
- editor.getEditorState().read(() => {
75
- const root = (0, lexical_1.$getRoot)();
76
- const children = root.getChildren();
77
- if (children.length > 1) {
78
- setIsEditorEmpty(false);
79
- }
80
- else {
81
- if ((0, lexical_1.$isParagraphNode)(children[0])) {
82
- const paragraphChildren = children[0].getChildren();
83
- setIsEditorEmpty(paragraphChildren.length === 0);
84
- }
85
- else {
86
- setIsEditorEmpty(false);
87
- }
88
- }
89
- });
90
- }), [editor, isEditable]);
91
- const handleMarkdownToggle = (0, react_1.useCallback)(() => {
92
- editor.update(() => {
93
- const root = (0, lexical_1.$getRoot)();
94
- const firstChild = root.getFirstChild();
95
- if ((0, code_1.$isCodeNode)(firstChild) && firstChild.getLanguage() === 'markdown') {
96
- (0, markdown_1.$convertFromMarkdownString)(firstChild.getTextContent(), MarkdownTransformers_1.PLAYGROUND_TRANSFORMERS);
97
- }
98
- else {
99
- const markdown = (0, markdown_1.$convertToMarkdownString)(MarkdownTransformers_1.PLAYGROUND_TRANSFORMERS);
100
- root.clear().append((0, code_1.$createCodeNode)('markdown').append((0, lexical_1.$createTextNode)(markdown)));
101
- }
102
- root.selectEnd();
103
- });
104
- }, [editor]);
105
- return (React.createElement("div", { className: 'actions' },
106
- React.createElement("button", { "aria-label": 'Import editor state from JSON', className: 'action-button import', onClick: () => (0, file_1.importFile)(editor), title: 'Import', type: 'button' },
107
- React.createElement("i", { className: 'import' })),
108
- React.createElement("button", { "aria-label": 'Export editor state to JSON', className: 'action-button export', onClick: () => (0, file_1.exportFile)(editor, {
109
- fileName: `Playground ${new Date().toISOString()}`,
110
- source: 'Playground',
111
- }), title: 'Export', type: 'button' },
112
- React.createElement("i", { className: 'export' })),
113
- React.createElement("button", { "aria-label": 'Clear editor contents', className: 'action-button clear', disabled: isEditorEmpty, onClick: () => {
114
- showModal('Clear editor', (onClose) => React.createElement(ShowClearDialog, { editor: editor, onClose: onClose }));
115
- }, title: 'Clear', type: 'button' },
116
- React.createElement("i", { className: 'clear' })),
117
- React.createElement("button", { "aria-label": `${!isEditable ? 'Unlock' : 'Lock'} read-only mode`, className: `action-button ${!isEditable ? 'unlock' : 'lock'}`, onClick: () => {
118
- // Send latest editor state to commenting validation server
119
- if (isEditable) {
120
- sendEditorState(editor);
121
- }
122
- editor.setEditable(!editor.isEditable());
123
- }, title: 'Read-Only Mode', type: 'button' },
124
- React.createElement("i", { className: !isEditable ? 'unlock' : 'lock' })),
125
- React.createElement("button", { "aria-label": 'Convert from markdown', className: 'action-button', onClick: handleMarkdownToggle, title: 'Convert From Markdown', type: 'button' },
126
- React.createElement("i", { className: 'markdown' })),
127
- isCollabActive && (React.createElement("button", { "aria-label": `${connected ? 'Disconnect from' : 'Connect to'} a collaborative editing server`, className: 'action-button connect', onClick: () => {
128
- editor.dispatchCommand(yjs_1.TOGGLE_CONNECT_COMMAND, !connected);
129
- }, title: `${connected ? 'Disconnect' : 'Connect'} Collaborative Editing`, type: 'button' },
130
- React.createElement("i", { className: connected ? 'disconnect' : 'connect' }))),
131
- modal));
132
- }
133
- function ShowClearDialog({ editor, onClose }) {
134
- return (React.createElement(React.Fragment, null,
135
- "Are you sure you want to clear the editor?",
136
- React.createElement("div", { className: 'Modal__content' },
137
- React.createElement(Button_1.default, { onClick: () => {
138
- editor.dispatchCommand(lexical_1.CLEAR_EDITOR_COMMAND, undefined);
139
- editor.focus();
140
- onClose();
141
- } }, "Clear"),
142
- ' ',
143
- React.createElement(Button_1.default, { onClick: () => {
144
- editor.focus();
145
- onClose();
146
- } }, "Cancel"))));
147
- }
148
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/ActionsPlugin/index.tsx"],"names":[],"mappings":";;AAmDA,gCAiJC;;AApMD,wCAA4D;AAC5D,wCAAsD;AACtD,gDAAwF;AACxF,4FAAoF;AACpF,kFAAiF;AACjF,0CAA8C;AAC9C,sCAAwE;AAExE,qCAAoH;AACpH,qDAA8B;AAC9B,iCAAwD;AACxD,4EAA2C;AAC3C,qEAAoC;AACpC,kEAAiE;AAEjE,KAAK,UAAU,eAAe,CAAC,MAAqB;IAClD,MAAM,sBAAsB,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC,CAAA;IACtE,IAAI,CAAC;QACH,MAAM,KAAK,CAAC,sCAAsC,EAAE;YAClD,IAAI,EAAE,sBAAsB;YAC5B,OAA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ACa,uBAAuB,EAClC,SAAS,EAAC,eAAe,EACzB,OAAO,EAAE,oBAAoB,EAC7B,KAAK,EAAC,uBAAuB,EAC7B,IAAI,EAAC,QAAQ;YAEb,2BAAG,SAAS,EAAC,UAAU,GAAG,CACnB;QACR,cAAc,IAAI,CACjB,8CACc,GAAG,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,YAAY,iCAAiC,EAC5F,SAAS,EAAC,uBAAuB,EACjC,OAAO,EAAE,GAAG,EAAE;gBACZ,MAAM,CAAC,eAAe,CAAC,4BAAsB,EAAE,CAAC,SAAS,CAAC,CAAA;YAC5D,CAAC,EACD,KAAK,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,wBAAwB,EACtE,IAAI,EAAC,QAAQ;YAEb,2BAAG,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,GAAI,CAC/C,CACV;QACA,KAAK,CACF,CACP,CAAA;AACH,CAAC;AAED,SAAS,eAAe,CAAC,EAAE,MAAM,EAAE,OAAO,EAA8C;IACtF,OAAO,CACL;;QAEE,6BAAK,SAAS,EAAC,gBAAgB;YAC7B,oBAAC,gBAAM,IACL,OAAO,EAAE,GAAG,EAAE;oBACZ,MAAM,CAAC,eAAe,CAAC,8BAAoB,EAAE,SAAS,CAAC,CAAA;oBACvD,MAAM,CAAC,KAAK,EAAE,CAAA;oBACd,OAAO,EAAE,CAAA;gBACX,CAAC,YAGM;YAAC,GAAG;YACb,oBAAC,gBAAM,IACL,OAAO,EAAE,GAAG,EAAE;oBACZ,MAAM,CAAC,KAAK,EAAE,CAAA;oBACd,OAAO,EAAE,CAAA;gBACX,CAAC,aAGM,CACL,CACL,CACJ,CAAA;AACH,CAAC"}
@@ -1,19 +0,0 @@
1
- import { EmbedConfig } from '@lexical/react/LexicalAutoEmbedPlugin';
2
- import * as React from 'react';
3
- interface PlaygroundEmbedConfig extends EmbedConfig {
4
- contentName: string;
5
- icon?: React.JSX.Element;
6
- exampleUrl: string;
7
- keywords: Array<string>;
8
- description?: string;
9
- }
10
- export declare const YoutubeEmbedConfig: PlaygroundEmbedConfig;
11
- export declare const TwitterEmbedConfig: PlaygroundEmbedConfig;
12
- export declare const FigmaEmbedConfig: PlaygroundEmbedConfig;
13
- export declare const EmbedConfigs: PlaygroundEmbedConfig[];
14
- export declare function AutoEmbedDialog({ embedConfig, onClose, }: {
15
- embedConfig: PlaygroundEmbedConfig;
16
- onClose(): void;
17
- }): React.JSX.Element;
18
- export default function AutoEmbedPlugin(): React.JSX.Element;
19
- export {};
@@ -1,168 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbedConfigs = exports.FigmaEmbedConfig = exports.TwitterEmbedConfig = exports.YoutubeEmbedConfig = void 0;
4
- exports.AutoEmbedDialog = AutoEmbedDialog;
5
- exports.default = AutoEmbedPlugin;
6
- const tslib_1 = require("tslib");
7
- const LexicalAutoEmbedPlugin_1 = require("@lexical/react/LexicalAutoEmbedPlugin");
8
- const LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
9
- const react_1 = require("react");
10
- const React = tslib_1.__importStar(require("react"));
11
- const ReactDOM = tslib_1.__importStar(require("react-dom"));
12
- const useModal_1 = tslib_1.__importDefault(require("../../hooks/useModal"));
13
- const Button_1 = tslib_1.__importDefault(require("../../ui/Button"));
14
- const Dialog_1 = require("../../ui/Dialog");
15
- const FigmaPlugin_1 = require("../FigmaPlugin");
16
- const TwitterPlugin_1 = require("../TwitterPlugin");
17
- const YouTubePlugin_1 = require("../YouTubePlugin");
18
- exports.YoutubeEmbedConfig = {
19
- contentName: 'Youtube Video',
20
- exampleUrl: 'https://www.youtube.com/watch?v=jNQXAC9IVRw',
21
- // Icon for display.
22
- icon: React.createElement("i", { className: 'icon youtube' }),
23
- insertNode: (editor, result) => {
24
- editor.dispatchCommand(YouTubePlugin_1.INSERT_YOUTUBE_COMMAND, result.id);
25
- },
26
- keywords: ['youtube', 'video'],
27
- // Determine if a given URL is a match and return url data.
28
- parseUrl: async (url) => {
29
- const match = /^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/.exec(url);
30
- const id = match ? ((match === null || match === void 0 ? void 0 : match[2].length) === 11 ? match[2] : null) : null;
31
- if (id != null) {
32
- return {
33
- id,
34
- url,
35
- };
36
- }
37
- return null;
38
- },
39
- type: 'youtube-video',
40
- };
41
- exports.TwitterEmbedConfig = {
42
- // e.g. Tweet or Google Map.
43
- contentName: 'Tweet',
44
- exampleUrl: 'https://twitter.com/jack/status/20',
45
- // Icon for display.
46
- icon: React.createElement("i", { className: 'icon tweet' }),
47
- // Create the Lexical embed node from the url data.
48
- insertNode: (editor, result) => {
49
- editor.dispatchCommand(TwitterPlugin_1.INSERT_TWEET_COMMAND, result.id);
50
- },
51
- // For extra searching.
52
- keywords: ['tweet', 'twitter'],
53
- // Determine if a given URL is a match and return url data.
54
- parseUrl: (text) => {
55
- const match = /^https:\/\/(twitter|x)\.com\/(#!\/)?(\w+)\/status(es)*\/(\d+)/.exec(text);
56
- if (match != null) {
57
- return {
58
- id: match[5],
59
- url: match[1],
60
- };
61
- }
62
- return null;
63
- },
64
- type: 'tweet',
65
- };
66
- exports.FigmaEmbedConfig = {
67
- contentName: 'Figma Document',
68
- exampleUrl: 'https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-File',
69
- icon: React.createElement("i", { className: 'icon figma' }),
70
- insertNode: (editor, result) => {
71
- editor.dispatchCommand(FigmaPlugin_1.INSERT_FIGMA_COMMAND, result.id);
72
- },
73
- keywords: ['figma', 'figma.com', 'mock-up'],
74
- // Determine if a given URL is a match and return url data.
75
- parseUrl: (text) => {
76
- const match = /https:\/\/([\w.-]+\.)?figma.com\/(file|proto)\/([0-9a-zA-Z]{22,128})(?:\/.*)?$/.exec(text);
77
- if (match != null) {
78
- return {
79
- id: match[3],
80
- url: match[0],
81
- };
82
- }
83
- return null;
84
- },
85
- type: 'figma',
86
- };
87
- exports.EmbedConfigs = [exports.TwitterEmbedConfig, exports.YoutubeEmbedConfig, exports.FigmaEmbedConfig];
88
- function AutoEmbedMenuItem({ index, isSelected, onClick, onMouseEnter, option, }) {
89
- let className = 'item';
90
- if (isSelected) {
91
- className += ' selected';
92
- }
93
- return (React.createElement("li", { key: option.key, ref: option.setRefElement, "aria-selected": isSelected, className: className, id: 'typeahead-item-' + index, onClick: onClick, onMouseEnter: onMouseEnter, role: 'option', tabIndex: -1 },
94
- React.createElement("span", { className: 'text' }, option.title)));
95
- }
96
- function AutoEmbedMenu({ onOptionClick, onOptionMouseEnter, options, selectedItemIndex, }) {
97
- return (React.createElement("div", { className: 'typeahead-popover' },
98
- React.createElement("ul", null, options.map((option, i) => (React.createElement(AutoEmbedMenuItem, { key: option.key, index: i, isSelected: selectedItemIndex === i, onClick: () => onOptionClick(option, i), onMouseEnter: () => onOptionMouseEnter(i), option: option }))))));
99
- }
100
- const debounce = (callback, delay) => {
101
- let timeoutId;
102
- return (text) => {
103
- window.clearTimeout(timeoutId);
104
- timeoutId = window.setTimeout(() => {
105
- callback(text);
106
- }, delay);
107
- };
108
- };
109
- function AutoEmbedDialog({ embedConfig, onClose, }) {
110
- const [text, setText] = (0, react_1.useState)('');
111
- const [editor] = (0, LexicalComposerContext_1.useLexicalComposerContext)();
112
- const [embedResult, setEmbedResult] = (0, react_1.useState)(null);
113
- const validateText = (0, react_1.useMemo)(() => debounce((inputText) => {
114
- const urlMatch = LexicalAutoEmbedPlugin_1.URL_MATCHER.exec(inputText);
115
- if (embedConfig != null && inputText != null && urlMatch != null) {
116
- Promise.resolve(embedConfig.parseUrl(inputText)).then((parseResult) => {
117
- setEmbedResult(parseResult);
118
- });
119
- }
120
- else if (embedResult != null) {
121
- setEmbedResult(null);
122
- }
123
- }, 200), [embedConfig, embedResult]);
124
- const onClick = () => {
125
- if (embedResult != null) {
126
- embedConfig.insertNode(editor, embedResult);
127
- onClose();
128
- }
129
- };
130
- return (React.createElement("div", { style: { width: '600px' } },
131
- React.createElement("div", { className: 'Input__wrapper' },
132
- React.createElement("input", { className: 'Input__input', "data-test-id": `${embedConfig.type}-embed-modal-url`, onChange: (e) => {
133
- const { value } = e.target;
134
- setText(value);
135
- validateText(value);
136
- }, placeholder: embedConfig.exampleUrl, type: 'text', value: text })),
137
- React.createElement(Dialog_1.DialogActions, null,
138
- React.createElement(Button_1.default, { "data-test-id": `${embedConfig.type}-embed-modal-submit-btn`, disabled: !embedResult, onClick: onClick }, "Embed"))));
139
- }
140
- function AutoEmbedPlugin() {
141
- const [modal, showModal] = (0, useModal_1.default)();
142
- const openEmbedModal = (embedConfig) => {
143
- showModal(`Embed ${embedConfig.contentName}`, (onClose) => (React.createElement(AutoEmbedDialog, { embedConfig: embedConfig, onClose: onClose })));
144
- };
145
- const getMenuOptions = (activeEmbedConfig, embedFn, dismissFn) => [
146
- new LexicalAutoEmbedPlugin_1.AutoEmbedOption('Dismiss', {
147
- onSelect: dismissFn,
148
- }),
149
- new LexicalAutoEmbedPlugin_1.AutoEmbedOption(`Embed ${activeEmbedConfig.contentName}`, {
150
- onSelect: embedFn,
151
- }),
152
- ];
153
- return (React.createElement(React.Fragment, null,
154
- modal,
155
- React.createElement(LexicalAutoEmbedPlugin_1.LexicalAutoEmbedPlugin, { embedConfigs: exports.EmbedConfigs, getMenuOptions: getMenuOptions, menuRenderFn: (anchorElementRef, { options, selectOptionAndCleanUp, selectedIndex, setHighlightedIndex }) => anchorElementRef.current
156
- ? ReactDOM.createPortal(React.createElement("div", { className: 'typeahead-popover auto-embed-menu', style: {
157
- marginLeft: anchorElementRef.current.style.width,
158
- width: 200,
159
- } },
160
- React.createElement(AutoEmbedMenu, { onOptionClick: (option, index) => {
161
- setHighlightedIndex(index);
162
- selectOptionAndCleanUp(option);
163
- }, onOptionMouseEnter: (index) => {
164
- setHighlightedIndex(index);
165
- }, options: options, selectedItemIndex: selectedIndex })), anchorElementRef.current)
166
- : null, onOpenEmbedModalForConfig: openEmbedModal })));
167
- }
168
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/AutoEmbedPlugin/index.tsx"],"names":[],"mappings":";;;AAgNA,0CAwDC;AAED,kCAsDC;;AAhUD,kFAM8C;AAC9C,kFAAiF;AAEjF,iCAAyC;AACzC,qDAA8B;AAC9B,4DAAqC;AACrC,4EAA2C;AAC3C,qEAAoC;AACpC,4CAA+C;AAC/C,gDAAqD;AACrD,oDAAuD;AACvD,oDAAyD;AAmB5C,QAAA,kBAAkB,GAA0B;IACvD,WAAW,EAAE,eAAe;IAE5B,UAAU,EAAE,6CAA6C;IAEzD,oBAAoB;IACpB,IAAI,EAAE,2BAAG,SAAS,EAAC,cAAc,GAAG;IAEpC,UAAU,EAAE,CAAC,MAAqB,EAAE,MAAwB,EAAE,EAAE;QAC9D,MAAM,CAAC,eAAe,CAAC,sCAAsB,EAAE,MAAM,CAAC,EAAE,CAAC,CAAA;IAC3D,CAAC;IAED,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;IAE9B,2DAA2D;IAC3D,QAAQ,EAAE,KAAK,EAAE,GAAW,EAAE,EAAE;QAC9B,MAAM,KAAK,GAAG,+DAA+D,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAEvF,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,CAAC,EAAE,MAAM,MAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;QAEtE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC;YACf,OAAO;gBACL,EAAE;gBACF,GAAG;aACJ,CAAA;QACH,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC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