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 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/TextEditorV2/plugins/ToolbarPlugin/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAA;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,kCAAkC,EAAE,MAAM,oBAAoB,CAAA;AACvE,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC1F,OAAO,EACL,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EAEvB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACxD,OAAO,KAA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AE,SAAS,KAAK,QAAQ,EAAE,MAAM,EAAE,YAAY,GAAI;QACxE,oBAAC,SAAS,IAAC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,GAAI;QAC/D,oBAAC,WAAW,IAAC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,GAAI;QACjE,oBAAC,IAAI,IAAC,MAAM,EAAE,YAAY,GAAI,CAC1B,CACP,CAAA;AACH,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { type ErrorInfo, type JSX } from 'react';
9
+ export type LexicalErrorBoundaryProps = {
10
+ children: JSX.Element;
11
+ onError: (error: Error, info: ErrorInfo) => void;
12
+ };
13
+ export declare function LexicalErrorBoundary({ children, onError }: LexicalErrorBoundaryProps): JSX.Element;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import React from 'react';
9
+ import { useCallback } from 'react';
10
+ import { ErrorBoundary } from 'react-error-boundary';
11
+ export function LexicalErrorBoundary({ children, onError }) {
12
+ const wrappedOnError = useCallback((err, info) => {
13
+ onError(err instanceof Error ? err : new Error(String(err), { cause: err }), info);
14
+ }, [onError]);
15
+ return (React.createElement(ErrorBoundary, { fallback: React.createElement("div", { style: {
16
+ border: '1px solid #f00',
17
+ color: '#f00',
18
+ padding: '8px',
19
+ } }, "An error was thrown."), onError: wrappedOnError }, children));
20
+ }
21
+ //# sourceMappingURL=LexicalErrorBoundary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexicalErrorBoundary.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/shared/LexicalErrorBoundary.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAA4B,WAAW,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAOpD,MAAM,UAAU,oBAAoB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAA6B;IACnF,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,GAAY,EAAE,IAAe,EAAE,EAAE;QAChC,OAAO,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,CAAA;IACpF,CAAC,EACD,CAAC,OAAO,CAAC,CACV,CAAA;IACD,OAAO,CACL,oBAAC,aAAa,IACZ,QAAQ,EACN,6BACE,KAAK,EAAE;gBACL,MAAM,EAAE,gBAAgB;gBACxB,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,KAAK;aACf,2BAGG,EAER,OAAO,EAAE,cAAc,IAEtB,QAAQ,CACK,CACjB,CAAA;AACH,CAAC"}
@@ -1109,6 +1109,21 @@ export default function EditorStyle() {
1109
1109
  list-style-position: inside;
1110
1110
  }
1111
1111
 
1112
+ .PlaygroundEditorTheme__listItem {
1113
+ font-family: var(--listitem-marker-font-family);
1114
+ font-size: var(--listitem-marker-font-size);
1115
+ background-color: var(--listitem-marker-background-color);
1116
+ }
1117
+
1118
+ .PlaygroundEditorTheme__listItem::marker {
1119
+ color: var(--listitem-marker-color);
1120
+ background-color: var(--listitem-marker-background-color);
1121
+ font-family: var(--listitem-marker-font-family);
1122
+ font-size: var(--listitem-marker-font-size);
1123
+ font-style: var(--listitem-marker-font-style);
1124
+ font-weight: var(--listitem-marker-font-weight);
1125
+ }
1126
+
1112
1127
  .PlaygroundEditorTheme__listItemChecked,
1113
1128
  .PlaygroundEditorTheme__listItemUnchecked {
1114
1129
  position: relative;
@@ -1370,6 +1385,11 @@ export default function EditorStyle() {
1370
1385
  }
1371
1386
  }
1372
1387
 
1388
+ .PHXTextEditorV2__contentEditable {
1389
+ font-size: 14px;
1390
+ line-height: normal;
1391
+ }
1392
+
1373
1393
  .DialogActions {
1374
1394
  display: flex;
1375
1395
  flex-direction: row;
@@ -1559,6 +1579,7 @@ export default function EditorStyle() {
1559
1579
 
1560
1580
 
1561
1581
 
1582
+
1562
1583
  `));
1563
1584
  }
1564
1585
  //# sourceMappingURL=style.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../src/components/TextEditorV2/style.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,CAAC,OAAO,UAAU,WAAW;IACjC,OAAO,CACL,mCACG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4iDN,CACW,CACT,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phx-react",
3
- "version": "1.3.1718",
3
+ "version": "1.3.1719",
4
4
  "description": "PHX REACT",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -99,9 +99,11 @@
99
99
  },
100
100
  "dependencies": {
101
101
  "@excalidraw/excalidraw": "^0.17.6",
102
- "@lexical/file": "0.12.5",
103
- "@lexical/headless": "0.12.5",
104
- "@lexical/react": "0.12.5",
102
+ "@lexical/file": "^0.44.0",
103
+ "@lexical/headless": "^0.44.0",
104
+ "@lexical/list": "^0.44.0",
105
+ "@lexical/react": "^0.44.0",
106
+ "@lexical/selection": "^0.44.0",
105
107
  "@sentry/nextjs": "^10.30.0",
106
108
  "@tiptap/core": "^3.4.6",
107
109
  "@tiptap/extension-color": "^3.4.6",
@@ -121,7 +123,7 @@
121
123
  "emoji-picker-react": "4.0.8",
122
124
  "framer-motion": "^12.23.24",
123
125
  "katex": "^0.16.22",
124
- "lexical": "0.12.5",
126
+ "lexical": "^0.44.0",
125
127
  "lodash-es": "^4.17.21",
126
128
  "lodash.isboolean": "^3.0.3",
127
129
  "lodash.isequal": "^4.5.0",
@@ -129,11 +131,11 @@
129
131
  "react-sortablejs": "^6.1.4",
130
132
  "recharts": "^2.12.7",
131
133
  "sass": "^1.93.1",
134
+ "socket.io-client": "^4.8.1",
132
135
  "sortablejs": "^1.15.6",
133
136
  "xlsx": "^0.18.5",
134
137
  "y-websocket": "^2.0.4",
135
- "yjs": "^13.6.18",
136
- "socket.io-client": "^4.8.1"
138
+ "yjs": "^13.6.18"
137
139
  },
138
140
  "resolutions": {
139
141
  "@types/mime": "3.0.4",
@@ -1,25 +0,0 @@
1
- import type { Spread } from 'lexical';
2
- import { DecoratorNode, NodeKey, SerializedLexicalNode } from 'lexical';
3
- import * as React from 'react';
4
- declare global {
5
- interface Navigator {
6
- userAgentData?: {
7
- mobile: boolean;
8
- };
9
- }
10
- }
11
- export type SerializedAutocompleteNode = Spread<{
12
- uuid: string;
13
- }, SerializedLexicalNode>;
14
- export declare class AutocompleteNode extends DecoratorNode<React.JSX.Element | null> {
15
- __uuid: string;
16
- static clone(node: AutocompleteNode): AutocompleteNode;
17
- static getType(): 'autocomplete';
18
- static importJSON(serializedNode: SerializedAutocompleteNode): AutocompleteNode;
19
- exportJSON(): SerializedAutocompleteNode;
20
- constructor(uuid: string, key?: NodeKey);
21
- updateDOM(): boolean;
22
- createDOM(): HTMLElement;
23
- decorate(): React.JSX.Element | null;
24
- }
25
- export declare function $createAutocompleteNode(uuid: string): AutocompleteNode;
@@ -1,60 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutocompleteNode = void 0;
4
- exports.$createAutocompleteNode = $createAutocompleteNode;
5
- const tslib_1 = require("tslib");
6
- const lexical_1 = require("lexical");
7
- const React = tslib_1.__importStar(require("react"));
8
- const SharedAutocompleteContext_1 = require("../context/SharedAutocompleteContext");
9
- const AutocompletePlugin_1 = require("../plugins/AutocompletePlugin");
10
- class AutocompleteNode extends lexical_1.DecoratorNode {
11
- static clone(node) {
12
- return new AutocompleteNode(node.__uuid, node.__key);
13
- }
14
- static getType() {
15
- return 'autocomplete';
16
- }
17
- static importJSON(serializedNode) {
18
- const node = $createAutocompleteNode(serializedNode.uuid);
19
- return node;
20
- }
21
- exportJSON() {
22
- return {
23
- ...super.exportJSON(),
24
- type: 'autocomplete',
25
- uuid: this.__uuid,
26
- version: 1,
27
- };
28
- }
29
- constructor(uuid, key) {
30
- super(key);
31
- this.__uuid = uuid;
32
- }
33
- updateDOM() {
34
- return false;
35
- }
36
- createDOM() {
37
- return document.createElement('span');
38
- }
39
- decorate() {
40
- if (this.__uuid !== AutocompletePlugin_1.uuid) {
41
- return null;
42
- }
43
- return React.createElement(AutocompleteComponent, null);
44
- }
45
- }
46
- exports.AutocompleteNode = AutocompleteNode;
47
- function $createAutocompleteNode(uuid) {
48
- return new AutocompleteNode(uuid);
49
- }
50
- function AutocompleteComponent() {
51
- const [suggestion] = (0, SharedAutocompleteContext_1.useSharedAutocompleteContext)();
52
- const userAgentData = window.navigator.userAgentData;
53
- const isMobile = userAgentData !== undefined ? userAgentData.mobile : window.innerWidth <= 800 && window.innerHeight <= 600;
54
- // TODO Move to theme
55
- return (React.createElement("span", { spellCheck: 'false', style: { color: '#ccc' } },
56
- suggestion,
57
- " ",
58
- isMobile ? '(SWIPE \u2B95)' : '(TAB)'));
59
- }
60
- //# sourceMappingURL=AutocompleteNode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutocompleteNode.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/nodes/AutocompleteNode.tsx"],"names":[],"mappings":";;;AAoEA,0DAEC;;AArED,qCAAuE;AACvE,qDAA8B;AAC9B,oFAAmF;AACnF,sEAA4D;AAiB5D,MAAa,gBAAiB,SAAQ,uBAAuC;IAIpE,MAAM,CAAC,KAAK,CAAC,IAAsB;QACxC,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;IACtD,CAAC;IAEM,MAAM,CAAC,OAAO;QACnB,OAAO,cAAc,CAAA;IACvB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,cAA0C;QACjE,MAAM,IAAI,GAAG,uBAAuB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;QACzD,OAAO,IAAI,CAAA;IACb,CAAC;IAEM,UAAU;QACf,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,IAAI,CAAC,MAAM;YACjB,OAAO,EAAE,CAAC;SACX,CAAA;IACH,CAAC;IAED,YAAY,IAAY,EAAE,GAAa;QACrC,KAAK,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,MAAM,GAAG,IAAI,CAAA;IACpB,CAAC;IAEM,SAAS;QACd,OAAO,KAAK,CAAA;IACd,CAAC;IAEM,SAAS;QACd,OAAO,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;IACvC,CAAC;IAEM,QAAQ;QACb,IAAI,IAAI,CAAC,MAAM,KAAK,yBAAI,EAAE,CAAC;YACzB,OAAO,IAAI,CAAA;QACb,CAAC;QACD,OAAO,oBAAC,qBAAqB,OAAG,CAAA;IAClC,CAAC;CACF;AA7CD,4CA6CC;AAED,SAAgB,uBAAuB,CAAC,IAAY;IAClD,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAA;AACnC,CAAC;AAED,SAAS,qBAAqB;IAC5B,MAAM,CAAC,UAAU,CAAC,GAAG,IAAA,wDAA4B,GAAE,CAAA;IACnD,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,aAAa,CAAA;IACpD,MAAM,QAAQ,GACZ,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,IAAI,GAAG,IAAI,MAAM,CAAC,WAAW,IAAI,GAAG,CAAA;IAC5G,qBAAqB;IACrB,OAAO,CACL,8BAAM,UAAU,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;QAC9C,UAAU;;QAAG,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,OAAO,CAC9C,CACR,CAAA;AACH,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { EditorConfig, LexicalNode, NodeKey, SerializedTextNode, Spread } from 'lexical';
2
- import { TextNode } from 'lexical';
3
- export type SerializedEmojiNode = Spread<{
4
- className: string;
5
- }, SerializedTextNode>;
6
- export declare class EmojiNode extends TextNode {
7
- __className: string;
8
- static getType(): string;
9
- static clone(node: EmojiNode): EmojiNode;
10
- constructor(className: string, text: string, key?: NodeKey);
11
- createDOM(config: EditorConfig): HTMLElement;
12
- updateDOM(prevNode: TextNode, dom: HTMLElement, config: EditorConfig): boolean;
13
- static importJSON(serializedNode: SerializedEmojiNode): EmojiNode;
14
- exportJSON(): SerializedEmojiNode;
15
- getClassName(): string;
16
- }
17
- export declare function $isEmojiNode(node: LexicalNode | null | undefined): node is EmojiNode;
18
- export declare function $createEmojiNode(className: string, emojiText: string): EmojiNode;
@@ -1,62 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmojiNode = void 0;
4
- exports.$isEmojiNode = $isEmojiNode;
5
- exports.$createEmojiNode = $createEmojiNode;
6
- const lexical_1 = require("lexical");
7
- class EmojiNode extends lexical_1.TextNode {
8
- static getType() {
9
- return 'emoji';
10
- }
11
- static clone(node) {
12
- return new EmojiNode(node.__className, node.__text, node.__key);
13
- }
14
- constructor(className, text, key) {
15
- super(text, key);
16
- this.__className = className;
17
- }
18
- createDOM(config) {
19
- const dom = document.createElement('span');
20
- const inner = super.createDOM(config);
21
- dom.className = this.__className;
22
- inner.className = 'emoji-inner';
23
- dom.appendChild(inner);
24
- return dom;
25
- }
26
- updateDOM(prevNode, dom, config) {
27
- const inner = dom.firstChild;
28
- if (inner === null) {
29
- return true;
30
- }
31
- super.updateDOM(prevNode, inner, config);
32
- return false;
33
- }
34
- static importJSON(serializedNode) {
35
- const node = $createEmojiNode(serializedNode.className, serializedNode.text);
36
- node.setFormat(serializedNode.format);
37
- node.setDetail(serializedNode.detail);
38
- node.setMode(serializedNode.mode);
39
- node.setStyle(serializedNode.style);
40
- return node;
41
- }
42
- exportJSON() {
43
- return {
44
- ...super.exportJSON(),
45
- className: this.getClassName(),
46
- type: 'emoji',
47
- };
48
- }
49
- getClassName() {
50
- const self = this.getLatest();
51
- return self.__className;
52
- }
53
- }
54
- exports.EmojiNode = EmojiNode;
55
- function $isEmojiNode(node) {
56
- return node instanceof EmojiNode;
57
- }
58
- function $createEmojiNode(className, emojiText) {
59
- const node = new EmojiNode(className, emojiText).setMode('token');
60
- return (0, lexical_1.$applyNodeReplacement)(node);
61
- }
62
- //# sourceMappingURL=EmojiNode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmojiNode.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/nodes/EmojiNode.tsx"],"names":[],"mappings":";;;AAmEA,oCAEC;AAED,4CAGC;AAzED,qCAAyD;AASzD,MAAa,SAAU,SAAQ,kBAAQ;IAG9B,MAAM,CAAC,OAAO;QACnB,OAAO,OAAO,CAAA;IAChB,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,IAAe;QACjC,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI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QACf,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE;YAC9B,IAAI,EAAE,OAAO;SACd,CAAA;IACH,CAAC;IAEM,YAAY;QACjB,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,EAAE,CAAA;QAC7B,OAAO,IAAI,CAAC,WAAW,CAAA;IACzB,CAAC;CACF;AAvDD,8BAuDC;AAED,SAAgB,YAAY,CAAC,IAAoC;IAC/D,OAAO,IAAI,YAAY,SAAS,CAAA;AAClC,CAAC;AAED,SAAgB,gBAAgB,CAAC,SAAiB,EAAE,SAAiB;IACnE,MAAM,IAAI,GAAG,IAAI,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IACjE,OAAO,IAAA,+BAAqB,EAAC,IAAI,CAAC,CAAA;AACpC,CAAC"}
@@ -1,9 +0,0 @@
1
- import { NodeKey } from 'lexical';
2
- import * as React from 'react';
3
- type EquationComponentProps = {
4
- equation: string;
5
- inline: boolean;
6
- nodeKey: NodeKey;
7
- };
8
- export default function EquationComponent({ equation, inline, nodeKey }: EquationComponentProps): React.JSX.Element;
9
- export {};
@@ -1,70 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = EquationComponent;
4
- const tslib_1 = require("tslib");
5
- const LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
6
- const utils_1 = require("@lexical/utils");
7
- const lexical_1 = require("lexical");
8
- const React = tslib_1.__importStar(require("react"));
9
- const react_1 = require("react");
10
- const react_error_boundary_1 = require("react-error-boundary");
11
- const EquationEditor_1 = tslib_1.__importDefault(require("../ui/EquationEditor"));
12
- const KatexRenderer_1 = tslib_1.__importDefault(require("../ui/KatexRenderer"));
13
- const EquationNode_1 = require("./EquationNode");
14
- function EquationComponent({ equation, inline, nodeKey }) {
15
- const [editor] = (0, LexicalComposerContext_1.useLexicalComposerContext)();
16
- const [equationValue, setEquationValue] = (0, react_1.useState)(equation);
17
- const [showEquationEditor, setShowEquationEditor] = (0, react_1.useState)(false);
18
- const inputRef = (0, react_1.useRef)(null);
19
- const onHide = (0, react_1.useCallback)((restoreSelection) => {
20
- setShowEquationEditor(false);
21
- editor.update(() => {
22
- const node = (0, lexical_1.$getNodeByKey)(nodeKey);
23
- if ((0, EquationNode_1.$isEquationNode)(node)) {
24
- node.setEquation(equationValue);
25
- if (restoreSelection) {
26
- node.selectNext(0, 0);
27
- }
28
- }
29
- });
30
- }, [editor, equationValue, nodeKey]);
31
- (0, react_1.useEffect)(() => {
32
- if (!showEquationEditor && equationValue !== equation) {
33
- setEquationValue(equation);
34
- }
35
- }, [showEquationEditor, equation, equationValue]);
36
- (0, react_1.useEffect)(() => {
37
- if (showEquationEditor) {
38
- return (0, utils_1.mergeRegister)(editor.registerCommand(lexical_1.SELECTION_CHANGE_COMMAND, () => {
39
- const activeElement = document.activeElement;
40
- const inputElem = inputRef.current;
41
- if (inputElem !== activeElement) {
42
- onHide();
43
- }
44
- return false;
45
- }, lexical_1.COMMAND_PRIORITY_HIGH), editor.registerCommand(lexical_1.KEY_ESCAPE_COMMAND, () => {
46
- const activeElement = document.activeElement;
47
- const inputElem = inputRef.current;
48
- if (inputElem === activeElement) {
49
- onHide(true);
50
- return true;
51
- }
52
- return false;
53
- }, lexical_1.COMMAND_PRIORITY_HIGH));
54
- }
55
- else {
56
- return editor.registerUpdateListener(({ editorState }) => {
57
- const isSelected = editorState.read(() => {
58
- const selection = (0, lexical_1.$getSelection)();
59
- return (0, lexical_1.$isNodeSelection)(selection) && selection.has(nodeKey) && selection.getNodes().length === 1;
60
- });
61
- if (isSelected) {
62
- setShowEquationEditor(true);
63
- }
64
- });
65
- }
66
- }, [editor, nodeKey, onHide, showEquationEditor]);
67
- return (React.createElement(React.Fragment, null, showEquationEditor ? (React.createElement(EquationEditor_1.default, { ref: inputRef, equation: equationValue, inline: inline, setEquation: setEquationValue })) : (React.createElement(react_error_boundary_1.ErrorBoundary, { fallback: null, onError: (e) => editor._onError(e) },
68
- React.createElement(KatexRenderer_1.default, { equation: equationValue, inline: inline, onDoubleClick: () => setShowEquationEditor(true) })))));
69
- }
70
- //# sourceMappingURL=EquationComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EquationComponent.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/nodes/EquationComponent.tsx"],"names":[],"mappings":";;AAwBA,oCAiFC;;AAzGD,kFAAiF;AACjF,0CAA8C;AAC9C,qCAQgB;AAChB,qDAA8B;AAC9B,iCAAgE;AAChE,+DAAoD;AACpD,kFAAiD;AACjD,gFAA+C;AAC/C,iDAAgD;AAQhD,SAAwB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAA0B;IAC7F,MAAM,CAAC,MAAM,CAAC,GAAG,IAAA,kDAAyB,GAAE,CAAA;IAC5C,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,IAAA,gBAAQ,EAAC,QAAQ,CAAC,CAAA;IAC5D,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAA;IAC5E,MAAM,QAAQ,GAAG,IAAA,cAAM,EAAC,IAAI,CAAC,CAAA;IAE7B,MAAM,MAAM,GAAG,IAAA,mBAAW,EACxB,CAAC,gBAA0B,EAAE,EAAE;QAC7B,qBAAqB,CAAC,KAAK,CAAC,CAAA;QAC5B,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE;YACjB,MAAM,IAAI,GAAG,IAAA,uBAAa,EAAC,OAAO,CAAC,CAAA;YACnC,IAAI,IAAA,8BAAe,EAAC,IAAI,CAAC,EAAE,CAAC;gBAC1B,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAA;gBAC/B,IAAI,gBAAgB,EAAE,CAAC;oBACrB,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;g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C,MAAM,SAAS,GAAG,IAAA,uBAAa,GAAE,CAAA;oBACjC,OAAO,IAAA,0BAAgB,EAAC,SAAS,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC,MAAM,KAAK,CAAC,CAAA;gBACnG,CAAC,CAAC,CAAA;gBACF,IAAI,UAAU,EAAE,CAAC;oBACf,qBAAqB,CAAC,IAAI,CAAC,CAAA;gBAC7B,CAAC;YACH,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAA;IAEjD,OAAO,CACL,0CACG,kBAAkB,CAAC,CAAC,CAAC,CACpB,oBAAC,wBAAc,IAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,GAAI,CAC1G,CAAC,CAAC,CAAC,CACF,oBAAC,oCAAa,IAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC/D,oBAAC,uBAAa,IAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,IAAI,CAAC,GAAI,CAC9F,CACjB,CACA,CACJ,CAAA;AACH,CAAC"}
@@ -1,26 +0,0 @@
1
- import type { DOMConversionMap, EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from 'lexical';
2
- import { DecoratorNode, DOMExportOutput } from 'lexical';
3
- import * as React from 'react';
4
- export type SerializedEquationNode = Spread<{
5
- equation: string;
6
- inline: boolean;
7
- }, SerializedLexicalNode>;
8
- export declare class EquationNode extends DecoratorNode<React.JSX.Element> {
9
- __equation: string;
10
- __inline: boolean;
11
- static getType(): string;
12
- static clone(node: EquationNode): EquationNode;
13
- constructor(equation: string, inline?: boolean, key?: NodeKey);
14
- static importJSON(serializedNode: SerializedEquationNode): EquationNode;
15
- exportJSON(): SerializedEquationNode;
16
- createDOM(_config: EditorConfig): HTMLElement;
17
- exportDOM(): DOMExportOutput;
18
- static importDOM(): DOMConversionMap | null;
19
- updateDOM(prevNode: EquationNode): boolean;
20
- getTextContent(): string;
21
- getEquation(): string;
22
- setEquation(equation: string): void;
23
- decorate(): React.JSX.Element;
24
- }
25
- export declare function $createEquationNode(equation?: string, inline?: boolean): EquationNode;
26
- export declare function $isEquationNode(node: LexicalNode | null | undefined): node is EquationNode;
@@ -1,121 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EquationNode = void 0;
4
- exports.$createEquationNode = $createEquationNode;
5
- exports.$isEquationNode = $isEquationNode;
6
- const tslib_1 = require("tslib");
7
- const katex_1 = tslib_1.__importDefault(require("katex"));
8
- const lexical_1 = require("lexical");
9
- const React = tslib_1.__importStar(require("react"));
10
- const react_1 = require("react");
11
- const EquationComponent = React.lazy(
12
- // @ts-ignore
13
- () => Promise.resolve().then(() => tslib_1.__importStar(require('./EquationComponent'))));
14
- function convertEquationElement(domNode) {
15
- let equation = domNode.getAttribute('data-lexical-equation');
16
- const inline = domNode.getAttribute('data-lexical-inline') === 'true';
17
- // Decode the equation from base64
18
- equation = atob(equation || '');
19
- if (equation) {
20
- const node = $createEquationNode(equation, inline);
21
- return { node };
22
- }
23
- return null;
24
- }
25
- class EquationNode extends lexical_1.DecoratorNode {
26
- static getType() {
27
- return 'equation';
28
- }
29
- static clone(node) {
30
- return new EquationNode(node.__equation, node.__inline, node.__key);
31
- }
32
- constructor(equation, inline, key) {
33
- super(key);
34
- this.__equation = equation;
35
- this.__inline = inline !== null && inline !== void 0 ? inline : false;
36
- }
37
- static importJSON(serializedNode) {
38
- const node = $createEquationNode(serializedNode.equation, serializedNode.inline);
39
- return node;
40
- }
41
- exportJSON() {
42
- return {
43
- equation: this.getEquation(),
44
- inline: this.__inline,
45
- type: 'equation',
46
- version: 1,
47
- };
48
- }
49
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
50
- createDOM(_config) {
51
- const element = document.createElement(this.__inline ? 'span' : 'div');
52
- // EquationNodes should implement `user-action:none` in their CSS to avoid issues with deletion on Android.
53
- element.className = 'editor-equation';
54
- return element;
55
- }
56
- exportDOM() {
57
- const element = document.createElement(this.__inline ? 'span' : 'div');
58
- // Encode the equation as base64 to avoid issues with special characters
59
- const equation = btoa(this.__equation);
60
- element.setAttribute('data-lexical-equation', equation);
61
- element.setAttribute('data-lexical-inline', `${this.__inline}`);
62
- katex_1.default.render(this.__equation, element, {
63
- displayMode: !this.__inline, // true === block display //
64
- errorColor: '#cc0000',
65
- output: 'html',
66
- strict: 'warn',
67
- throwOnError: false,
68
- trust: false,
69
- });
70
- return { element };
71
- }
72
- static importDOM() {
73
- return {
74
- div: (domNode) => {
75
- if (!domNode.hasAttribute('data-lexical-equation')) {
76
- return null;
77
- }
78
- return {
79
- conversion: convertEquationElement,
80
- priority: 2,
81
- };
82
- },
83
- span: (domNode) => {
84
- if (!domNode.hasAttribute('data-lexical-equation')) {
85
- return null;
86
- }
87
- return {
88
- conversion: convertEquationElement,
89
- priority: 1,
90
- };
91
- },
92
- };
93
- }
94
- updateDOM(prevNode) {
95
- // If the inline property changes, replace the element
96
- return this.__inline !== prevNode.__inline;
97
- }
98
- getTextContent() {
99
- return this.__equation;
100
- }
101
- getEquation() {
102
- return this.__equation;
103
- }
104
- setEquation(equation) {
105
- const writable = this.getWritable();
106
- writable.__equation = equation;
107
- }
108
- decorate() {
109
- return (React.createElement(react_1.Suspense, { fallback: null },
110
- React.createElement(EquationComponent, { equation: this.__equation, inline: this.__inline, nodeKey: this.__key })));
111
- }
112
- }
113
- exports.EquationNode = EquationNode;
114
- function $createEquationNode(equation = '', inline = false) {
115
- const equationNode = new EquationNode(equation, inline);
116
- return (0, lexical_1.$applyNodeReplacement)(equationNode);
117
- }
118
- function $isEquationNode(node) {
119
- return node instanceof EquationNode;
120
- }
121
- //# sourceMappingURL=EquationNode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EquationNode.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/nodes/EquationNode.tsx"],"names":[],"mappings":";;;AAmJA,kDAGC;AAED,0CAEC;;AA1JD,0DAAyB;AAUzB,qCAA+E;AAC/E,qDAA8B;AAC9B,iCAAgC;AAEhC,MAAM,iBAAiB,GAAG,KAAK,CAAC,IAAI;AAClC,aAAa;AACb,GAAG,EAAE,2DAAQ,qBAAqB,GAAC,CACpC,CAAA;AAUD,SAAS,sBAAsB,CAAC,OAAoB;IAClD,IAAI,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAA;IAC5D,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,KAAK,MAAM,CAAA;IACrE,kCAAkC;IAClC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAA;IAC/B,IAAI,QAAQ,EAAE,CAAC;QACb,MAAM,IAAI,GAAG,mBAAmB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QAClD,OAAO,EAAE,IAAI,EAAE,CAAA;IACjB,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC;AAED,MAAa,YAAa,SAAQ,uBAAgC;IAIzD,MAAM,CAAC,OAAO;QACnB,OAAO,UAAU,CAAA;IACnB,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,IAAkB;QACpC,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;IACrE,CAAC;IAED,YAAY,QAAgB,EAAE,MAAgB,EAAE,GAAa;QAC3D,KAAK,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAA;QAC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AE,IAAI,CAAC,KAAK,GAAI,CACnF,CACZ,CAAA;IACH,CAAC;CACF;AAzGD,oCAyGC;AAED,SAAgB,mBAAmB,CAAC,QAAQ,GAAG,EAAE,EAAE,MAAM,GAAG,KAAK;IAC/D,MAAM,YAAY,GAAG,IAAI,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;IACvD,OAAO,IAAA,+BAAqB,EAAC,YAAY,CAAC,CAAA;AAC5C,CAAC;AAED,SAAgB,eAAe,CAAC,IAAoC;IAClE,OAAO,IAAI,YAAY,YAAY,CAAA;AACrC,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { Options } from './PollNode';
2
- import { NodeKey } from 'lexical';
3
- import * as React from 'react';
4
- export default function PollComponent({ nodeKey, options, question, }: {
5
- nodeKey: NodeKey;
6
- options: Options;
7
- question: string;
8
- }): React.JSX.Element;