@ethberry/mui-lexical 1.0.28 → 1.0.30

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 (804) hide show
  1. package/dist/common/hooks/index.d.ts +1 -0
  2. package/dist/common/hooks/index.d.ts.map +1 -0
  3. package/dist/common/hooks/index.js +1 -17
  4. package/dist/common/hooks/index.js.map +1 -1
  5. package/dist/common/hooks/useModal.d.ts +2 -1
  6. package/dist/common/hooks/useModal.d.ts.map +1 -0
  7. package/dist/common/hooks/useModal.js +9 -13
  8. package/dist/common/hooks/useModal.js.map +1 -1
  9. package/dist/common/index.d.ts +1 -0
  10. package/dist/common/index.d.ts.map +1 -0
  11. package/dist/common/index.js +2 -18
  12. package/dist/common/index.js.map +1 -1
  13. package/dist/common/types/index.d.ts +1 -0
  14. package/dist/common/types/index.d.ts.map +1 -0
  15. package/dist/common/types/index.js +1 -2
  16. package/dist/components/index.d.ts +1 -0
  17. package/dist/components/index.d.ts.map +1 -0
  18. package/dist/components/index.js +1 -17
  19. package/dist/components/index.js.map +1 -1
  20. package/dist/components/ui/Modal/index.d.ts +2 -1
  21. package/dist/components/ui/Modal/index.d.ts.map +1 -0
  22. package/dist/components/ui/Modal/index.js +5 -9
  23. package/dist/components/ui/Modal/index.js.map +1 -1
  24. package/dist/components/ui/index.d.ts +1 -0
  25. package/dist/components/ui/index.d.ts.map +1 -0
  26. package/dist/components/ui/index.js +1 -17
  27. package/dist/components/ui/index.js.map +1 -1
  28. package/dist/config/lexicalEditorConfig.d.ts +1 -0
  29. package/dist/config/lexicalEditorConfig.d.ts.map +1 -0
  30. package/dist/config/lexicalEditorConfig.js +15 -21
  31. package/dist/config/lexicalEditorConfig.js.map +1 -1
  32. package/dist/config/lexicalEditorTheme.d.ts +1 -0
  33. package/dist/config/lexicalEditorTheme.d.ts.map +1 -0
  34. package/dist/config/lexicalEditorTheme.js +1 -3
  35. package/dist/config/lexicalEditorTheme.js.map +1 -1
  36. package/dist/display/index.d.ts +3 -1
  37. package/dist/display/index.d.ts.map +1 -0
  38. package/dist/display/index.js +17 -21
  39. package/dist/display/index.js.map +1 -1
  40. package/dist/display/styled.d.ts +1 -0
  41. package/dist/display/styled.d.ts.map +1 -0
  42. package/dist/display/styled.js +2 -5
  43. package/dist/display/styled.js.map +1 -1
  44. package/dist/editor/Editor.d.ts +2 -1
  45. package/dist/editor/Editor.d.ts.map +1 -0
  46. package/dist/editor/Editor.js +37 -41
  47. package/dist/editor/Editor.js.map +1 -1
  48. package/dist/editor/commands/index.d.ts +1 -0
  49. package/dist/editor/commands/index.d.ts.map +1 -0
  50. package/dist/editor/commands/index.js +2 -5
  51. package/dist/editor/commands/index.js.map +1 -1
  52. package/dist/editor/constants/index.d.ts +1 -0
  53. package/dist/editor/constants/index.d.ts.map +1 -0
  54. package/dist/editor/constants/index.js +1 -4
  55. package/dist/editor/constants/index.js.map +1 -1
  56. package/dist/editor/context/SharedHistoryContext.d.ts +1 -0
  57. package/dist/editor/context/SharedHistoryContext.d.ts.map +1 -0
  58. package/dist/editor/context/SharedHistoryContext.js +9 -14
  59. package/dist/editor/context/SharedHistoryContext.js.map +1 -1
  60. package/dist/editor/context/ToolbarContext.d.ts +1 -0
  61. package/dist/editor/context/ToolbarContext.d.ts.map +1 -0
  62. package/dist/editor/context/ToolbarContext.js +13 -18
  63. package/dist/editor/context/ToolbarContext.js.map +1 -1
  64. package/dist/editor/context/index.d.ts +1 -0
  65. package/dist/editor/context/index.d.ts.map +1 -0
  66. package/dist/editor/context/index.js +2 -18
  67. package/dist/editor/context/index.js.map +1 -1
  68. package/dist/editor/editorStyles.d.ts +1 -0
  69. package/dist/editor/editorStyles.d.ts.map +1 -0
  70. package/dist/editor/editorStyles.js +2 -5
  71. package/dist/editor/editorStyles.js.map +1 -1
  72. package/dist/editor/hooks/index.d.ts +1 -0
  73. package/dist/editor/hooks/index.d.ts.map +1 -0
  74. package/dist/editor/hooks/index.js +1 -17
  75. package/dist/editor/hooks/index.js.map +1 -1
  76. package/dist/editor/hooks/useModal.d.ts +1 -0
  77. package/dist/editor/hooks/useModal.d.ts.map +1 -0
  78. package/dist/editor/hooks/useModal.js +9 -13
  79. package/dist/editor/hooks/useModal.js.map +1 -1
  80. package/dist/editor/images/icons/3-columns.d.ts +3 -1
  81. package/dist/editor/images/icons/3-columns.d.ts.map +1 -0
  82. package/dist/editor/images/icons/3-columns.js +3 -7
  83. package/dist/editor/images/icons/3-columns.js.map +1 -1
  84. package/dist/editor/images/icons/add-sign.d.ts +3 -1
  85. package/dist/editor/images/icons/add-sign.d.ts.map +1 -0
  86. package/dist/editor/images/icons/add-sign.js +3 -7
  87. package/dist/editor/images/icons/add-sign.js.map +1 -1
  88. package/dist/editor/images/icons/arrow-clockwise.d.ts +3 -1
  89. package/dist/editor/images/icons/arrow-clockwise.d.ts.map +1 -0
  90. package/dist/editor/images/icons/arrow-clockwise.js +3 -7
  91. package/dist/editor/images/icons/arrow-clockwise.js.map +1 -1
  92. package/dist/editor/images/icons/arrow-counterclockwise.d.ts +3 -1
  93. package/dist/editor/images/icons/arrow-counterclockwise.d.ts.map +1 -0
  94. package/dist/editor/images/icons/arrow-counterclockwise.js +3 -7
  95. package/dist/editor/images/icons/arrow-counterclockwise.js.map +1 -1
  96. package/dist/editor/images/icons/bg-color.d.ts +3 -1
  97. package/dist/editor/images/icons/bg-color.d.ts.map +1 -0
  98. package/dist/editor/images/icons/bg-color.js +3 -7
  99. package/dist/editor/images/icons/bg-color.js.map +1 -1
  100. package/dist/editor/images/icons/camera.d.ts +3 -1
  101. package/dist/editor/images/icons/camera.d.ts.map +1 -0
  102. package/dist/editor/images/icons/camera.js +3 -7
  103. package/dist/editor/images/icons/camera.js.map +1 -1
  104. package/dist/editor/images/icons/card-checklist.d.ts +3 -1
  105. package/dist/editor/images/icons/card-checklist.d.ts.map +1 -0
  106. package/dist/editor/images/icons/card-checklist.js +3 -7
  107. package/dist/editor/images/icons/card-checklist.js.map +1 -1
  108. package/dist/editor/images/icons/caret-right-fill.d.ts +3 -1
  109. package/dist/editor/images/icons/caret-right-fill.d.ts.map +1 -0
  110. package/dist/editor/images/icons/caret-right-fill.js +3 -7
  111. package/dist/editor/images/icons/caret-right-fill.js.map +1 -1
  112. package/dist/editor/images/icons/chat-left-text.d.ts +3 -1
  113. package/dist/editor/images/icons/chat-left-text.d.ts.map +1 -0
  114. package/dist/editor/images/icons/chat-left-text.js +3 -7
  115. package/dist/editor/images/icons/chat-left-text.js.map +1 -1
  116. package/dist/editor/images/icons/chat-right-dots.d.ts +3 -1
  117. package/dist/editor/images/icons/chat-right-dots.d.ts.map +1 -0
  118. package/dist/editor/images/icons/chat-right-dots.js +3 -7
  119. package/dist/editor/images/icons/chat-right-dots.js.map +1 -1
  120. package/dist/editor/images/icons/chat-right-text.d.ts +3 -1
  121. package/dist/editor/images/icons/chat-right-text.d.ts.map +1 -0
  122. package/dist/editor/images/icons/chat-right-text.js +3 -7
  123. package/dist/editor/images/icons/chat-right-text.js.map +1 -1
  124. package/dist/editor/images/icons/chat-right.d.ts +3 -1
  125. package/dist/editor/images/icons/chat-right.d.ts.map +1 -0
  126. package/dist/editor/images/icons/chat-right.js +3 -7
  127. package/dist/editor/images/icons/chat-right.js.map +1 -1
  128. package/dist/editor/images/icons/chat-square-quote.d.ts +3 -1
  129. package/dist/editor/images/icons/chat-square-quote.d.ts.map +1 -0
  130. package/dist/editor/images/icons/chat-square-quote.js +3 -7
  131. package/dist/editor/images/icons/chat-square-quote.js.map +1 -1
  132. package/dist/editor/images/icons/chevron-down.d.ts +3 -1
  133. package/dist/editor/images/icons/chevron-down.d.ts.map +1 -0
  134. package/dist/editor/images/icons/chevron-down.js +3 -7
  135. package/dist/editor/images/icons/chevron-down.js.map +1 -1
  136. package/dist/editor/images/icons/clipboard.d.ts +3 -1
  137. package/dist/editor/images/icons/clipboard.d.ts.map +1 -0
  138. package/dist/editor/images/icons/clipboard.js +3 -7
  139. package/dist/editor/images/icons/clipboard.js.map +1 -1
  140. package/dist/editor/images/icons/close.d.ts +3 -1
  141. package/dist/editor/images/icons/close.d.ts.map +1 -0
  142. package/dist/editor/images/icons/close.js +3 -7
  143. package/dist/editor/images/icons/close.js.map +1 -1
  144. package/dist/editor/images/icons/code.d.ts +3 -1
  145. package/dist/editor/images/icons/code.d.ts.map +1 -0
  146. package/dist/editor/images/icons/code.js +3 -7
  147. package/dist/editor/images/icons/code.js.map +1 -1
  148. package/dist/editor/images/icons/comments.d.ts +3 -1
  149. package/dist/editor/images/icons/comments.d.ts.map +1 -0
  150. package/dist/editor/images/icons/comments.js +3 -7
  151. package/dist/editor/images/icons/comments.js.map +1 -1
  152. package/dist/editor/images/icons/copy.d.ts +3 -1
  153. package/dist/editor/images/icons/copy.d.ts.map +1 -0
  154. package/dist/editor/images/icons/copy.js +3 -7
  155. package/dist/editor/images/icons/copy.js.map +1 -1
  156. package/dist/editor/images/icons/diagram-2.d.ts +3 -1
  157. package/dist/editor/images/icons/diagram-2.d.ts.map +1 -0
  158. package/dist/editor/images/icons/diagram-2.js +3 -7
  159. package/dist/editor/images/icons/diagram-2.js.map +1 -1
  160. package/dist/editor/images/icons/download.d.ts +3 -1
  161. package/dist/editor/images/icons/download.d.ts.map +1 -0
  162. package/dist/editor/images/icons/download.js +3 -7
  163. package/dist/editor/images/icons/download.js.map +1 -1
  164. package/dist/editor/images/icons/draggable-block-menu.d.ts +3 -1
  165. package/dist/editor/images/icons/draggable-block-menu.d.ts.map +1 -0
  166. package/dist/editor/images/icons/draggable-block-menu.js +3 -7
  167. package/dist/editor/images/icons/draggable-block-menu.js.map +1 -1
  168. package/dist/editor/images/icons/dropdown-more.d.ts +3 -1
  169. package/dist/editor/images/icons/dropdown-more.d.ts.map +1 -0
  170. package/dist/editor/images/icons/dropdown-more.js +3 -7
  171. package/dist/editor/images/icons/dropdown-more.js.map +1 -1
  172. package/dist/editor/images/icons/figma.d.ts +3 -1
  173. package/dist/editor/images/icons/figma.d.ts.map +1 -0
  174. package/dist/editor/images/icons/figma.js +3 -7
  175. package/dist/editor/images/icons/figma.js.map +1 -1
  176. package/dist/editor/images/icons/file-earmark-text.d.ts +3 -1
  177. package/dist/editor/images/icons/file-earmark-text.d.ts.map +1 -0
  178. package/dist/editor/images/icons/file-earmark-text.js +3 -7
  179. package/dist/editor/images/icons/file-earmark-text.js.map +1 -1
  180. package/dist/editor/images/icons/file-image.d.ts +3 -1
  181. package/dist/editor/images/icons/file-image.d.ts.map +1 -0
  182. package/dist/editor/images/icons/file-image.js +3 -7
  183. package/dist/editor/images/icons/file-image.js.map +1 -1
  184. package/dist/editor/images/icons/filetype-gif.d.ts +3 -1
  185. package/dist/editor/images/icons/filetype-gif.d.ts.map +1 -0
  186. package/dist/editor/images/icons/filetype-gif.js +3 -7
  187. package/dist/editor/images/icons/filetype-gif.js.map +1 -1
  188. package/dist/editor/images/icons/font-color.d.ts +3 -1
  189. package/dist/editor/images/icons/font-color.d.ts.map +1 -0
  190. package/dist/editor/images/icons/font-color.js +3 -7
  191. package/dist/editor/images/icons/font-color.js.map +1 -1
  192. package/dist/editor/images/icons/font-family.d.ts +3 -1
  193. package/dist/editor/images/icons/font-family.d.ts.map +1 -0
  194. package/dist/editor/images/icons/font-family.js +3 -7
  195. package/dist/editor/images/icons/font-family.js.map +1 -1
  196. package/dist/editor/images/icons/format-clear.d.ts +3 -1
  197. package/dist/editor/images/icons/format-clear.d.ts.map +1 -0
  198. package/dist/editor/images/icons/format-clear.js +3 -7
  199. package/dist/editor/images/icons/format-clear.js.map +1 -1
  200. package/dist/editor/images/icons/highlighter.d.ts +3 -1
  201. package/dist/editor/images/icons/highlighter.d.ts.map +1 -0
  202. package/dist/editor/images/icons/highlighter.js +3 -7
  203. package/dist/editor/images/icons/highlighter.js.map +1 -1
  204. package/dist/editor/images/icons/horizontal-rule.d.ts +3 -1
  205. package/dist/editor/images/icons/horizontal-rule.d.ts.map +1 -0
  206. package/dist/editor/images/icons/horizontal-rule.js +3 -7
  207. package/dist/editor/images/icons/horizontal-rule.js.map +1 -1
  208. package/dist/editor/images/icons/indent.d.ts +3 -1
  209. package/dist/editor/images/icons/indent.d.ts.map +1 -0
  210. package/dist/editor/images/icons/indent.js +3 -7
  211. package/dist/editor/images/icons/indent.js.map +1 -1
  212. package/dist/editor/images/icons/index.d.ts +1 -0
  213. package/dist/editor/images/icons/index.d.ts.map +1 -0
  214. package/dist/editor/images/icons/index.js +88 -104
  215. package/dist/editor/images/icons/index.js.map +1 -1
  216. package/dist/editor/images/icons/journal-text.d.ts +3 -1
  217. package/dist/editor/images/icons/journal-text.d.ts.map +1 -0
  218. package/dist/editor/images/icons/journal-text.js +3 -7
  219. package/dist/editor/images/icons/journal-text.js.map +1 -1
  220. package/dist/editor/images/icons/justify.d.ts +3 -1
  221. package/dist/editor/images/icons/justify.d.ts.map +1 -0
  222. package/dist/editor/images/icons/justify.js +3 -7
  223. package/dist/editor/images/icons/justify.js.map +1 -1
  224. package/dist/editor/images/icons/link.d.ts +3 -1
  225. package/dist/editor/images/icons/link.d.ts.map +1 -0
  226. package/dist/editor/images/icons/link.js +3 -7
  227. package/dist/editor/images/icons/link.js.map +1 -1
  228. package/dist/editor/images/icons/list-ol.d.ts +3 -1
  229. package/dist/editor/images/icons/list-ol.d.ts.map +1 -0
  230. package/dist/editor/images/icons/list-ol.js +3 -7
  231. package/dist/editor/images/icons/list-ol.js.map +1 -1
  232. package/dist/editor/images/icons/list-ul.d.ts +3 -1
  233. package/dist/editor/images/icons/list-ul.d.ts.map +1 -0
  234. package/dist/editor/images/icons/list-ul.js +3 -7
  235. package/dist/editor/images/icons/list-ul.js.map +1 -1
  236. package/dist/editor/images/icons/lock-fill.d.ts +3 -1
  237. package/dist/editor/images/icons/lock-fill.d.ts.map +1 -0
  238. package/dist/editor/images/icons/lock-fill.js +3 -7
  239. package/dist/editor/images/icons/lock-fill.js.map +1 -1
  240. package/dist/editor/images/icons/lock.d.ts +3 -1
  241. package/dist/editor/images/icons/lock.d.ts.map +1 -0
  242. package/dist/editor/images/icons/lock.js +3 -7
  243. package/dist/editor/images/icons/lock.js.map +1 -1
  244. package/dist/editor/images/icons/markdown.d.ts +3 -1
  245. package/dist/editor/images/icons/markdown.d.ts.map +1 -0
  246. package/dist/editor/images/icons/markdown.js +3 -7
  247. package/dist/editor/images/icons/markdown.js.map +1 -1
  248. package/dist/editor/images/icons/mic.d.ts +3 -1
  249. package/dist/editor/images/icons/mic.d.ts.map +1 -0
  250. package/dist/editor/images/icons/mic.js +3 -7
  251. package/dist/editor/images/icons/mic.js.map +1 -1
  252. package/dist/editor/images/icons/minus-sign.d.ts +3 -1
  253. package/dist/editor/images/icons/minus-sign.d.ts.map +1 -0
  254. package/dist/editor/images/icons/minus-sign.js +3 -7
  255. package/dist/editor/images/icons/minus-sign.js.map +1 -1
  256. package/dist/editor/images/icons/outdent.d.ts +3 -1
  257. package/dist/editor/images/icons/outdent.d.ts.map +1 -0
  258. package/dist/editor/images/icons/outdent.js +3 -7
  259. package/dist/editor/images/icons/outdent.js.map +1 -1
  260. package/dist/editor/images/icons/paint-bucket.d.ts +3 -1
  261. package/dist/editor/images/icons/paint-bucket.d.ts.map +1 -0
  262. package/dist/editor/images/icons/paint-bucket.js +3 -7
  263. package/dist/editor/images/icons/paint-bucket.js.map +1 -1
  264. package/dist/editor/images/icons/palette.d.ts +3 -1
  265. package/dist/editor/images/icons/palette.d.ts.map +1 -0
  266. package/dist/editor/images/icons/palette.js +3 -7
  267. package/dist/editor/images/icons/palette.js.map +1 -1
  268. package/dist/editor/images/icons/pencil-fill.d.ts +3 -1
  269. package/dist/editor/images/icons/pencil-fill.d.ts.map +1 -0
  270. package/dist/editor/images/icons/pencil-fill.js +3 -7
  271. package/dist/editor/images/icons/pencil-fill.js.map +1 -1
  272. package/dist/editor/images/icons/plug-fill.d.ts +3 -1
  273. package/dist/editor/images/icons/plug-fill.d.ts.map +1 -0
  274. package/dist/editor/images/icons/plug-fill.js +3 -7
  275. package/dist/editor/images/icons/plug-fill.js.map +1 -1
  276. package/dist/editor/images/icons/plug.d.ts +3 -1
  277. package/dist/editor/images/icons/plug.d.ts.map +1 -0
  278. package/dist/editor/images/icons/plug.js +3 -7
  279. package/dist/editor/images/icons/plug.js.map +1 -1
  280. package/dist/editor/images/icons/plus-slash-minus.d.ts +3 -1
  281. package/dist/editor/images/icons/plus-slash-minus.d.ts.map +1 -0
  282. package/dist/editor/images/icons/plus-slash-minus.js +3 -7
  283. package/dist/editor/images/icons/plus-slash-minus.js.map +1 -1
  284. package/dist/editor/images/icons/plus.d.ts +3 -1
  285. package/dist/editor/images/icons/plus.d.ts.map +1 -0
  286. package/dist/editor/images/icons/plus.js +3 -7
  287. package/dist/editor/images/icons/plus.js.map +1 -1
  288. package/dist/editor/images/icons/prettier-error.d.ts +3 -1
  289. package/dist/editor/images/icons/prettier-error.d.ts.map +1 -0
  290. package/dist/editor/images/icons/prettier-error.js +3 -7
  291. package/dist/editor/images/icons/prettier-error.js.map +1 -1
  292. package/dist/editor/images/icons/prettier.d.ts +3 -1
  293. package/dist/editor/images/icons/prettier.d.ts.map +1 -0
  294. package/dist/editor/images/icons/prettier.js +3 -7
  295. package/dist/editor/images/icons/prettier.js.map +1 -1
  296. package/dist/editor/images/icons/scissors.d.ts +3 -1
  297. package/dist/editor/images/icons/scissors.d.ts.map +1 -0
  298. package/dist/editor/images/icons/scissors.js +3 -7
  299. package/dist/editor/images/icons/scissors.js.map +1 -1
  300. package/dist/editor/images/icons/send.d.ts +3 -1
  301. package/dist/editor/images/icons/send.d.ts.map +1 -0
  302. package/dist/editor/images/icons/send.js +3 -7
  303. package/dist/editor/images/icons/send.js.map +1 -1
  304. package/dist/editor/images/icons/square-check.d.ts +3 -1
  305. package/dist/editor/images/icons/square-check.d.ts.map +1 -0
  306. package/dist/editor/images/icons/square-check.js +3 -7
  307. package/dist/editor/images/icons/square-check.js.map +1 -1
  308. package/dist/editor/images/icons/sticky.d.ts +3 -1
  309. package/dist/editor/images/icons/sticky.d.ts.map +1 -0
  310. package/dist/editor/images/icons/sticky.js +3 -7
  311. package/dist/editor/images/icons/sticky.js.map +1 -1
  312. package/dist/editor/images/icons/success-alt.d.ts +3 -1
  313. package/dist/editor/images/icons/success-alt.d.ts.map +1 -0
  314. package/dist/editor/images/icons/success-alt.js +3 -7
  315. package/dist/editor/images/icons/success-alt.js.map +1 -1
  316. package/dist/editor/images/icons/success.d.ts +3 -1
  317. package/dist/editor/images/icons/success.d.ts.map +1 -0
  318. package/dist/editor/images/icons/success.js +3 -7
  319. package/dist/editor/images/icons/success.js.map +1 -1
  320. package/dist/editor/images/icons/table.d.ts +3 -1
  321. package/dist/editor/images/icons/table.d.ts.map +1 -0
  322. package/dist/editor/images/icons/table.js +3 -7
  323. package/dist/editor/images/icons/table.js.map +1 -1
  324. package/dist/editor/images/icons/text-center.d.ts +3 -1
  325. package/dist/editor/images/icons/text-center.d.ts.map +1 -0
  326. package/dist/editor/images/icons/text-center.js +3 -7
  327. package/dist/editor/images/icons/text-center.js.map +1 -1
  328. package/dist/editor/images/icons/text-left.d.ts +3 -1
  329. package/dist/editor/images/icons/text-left.d.ts.map +1 -0
  330. package/dist/editor/images/icons/text-left.js +3 -7
  331. package/dist/editor/images/icons/text-left.js.map +1 -1
  332. package/dist/editor/images/icons/text-paragraph.d.ts +3 -1
  333. package/dist/editor/images/icons/text-paragraph.d.ts.map +1 -0
  334. package/dist/editor/images/icons/text-paragraph.js +3 -7
  335. package/dist/editor/images/icons/text-paragraph.js.map +1 -1
  336. package/dist/editor/images/icons/text-right.d.ts +3 -1
  337. package/dist/editor/images/icons/text-right.d.ts.map +1 -0
  338. package/dist/editor/images/icons/text-right.js +3 -7
  339. package/dist/editor/images/icons/text-right.js.map +1 -1
  340. package/dist/editor/images/icons/trash.d.ts +3 -1
  341. package/dist/editor/images/icons/trash.d.ts.map +1 -0
  342. package/dist/editor/images/icons/trash.js +3 -7
  343. package/dist/editor/images/icons/trash.js.map +1 -1
  344. package/dist/editor/images/icons/trash3.d.ts +3 -1
  345. package/dist/editor/images/icons/trash3.d.ts.map +1 -0
  346. package/dist/editor/images/icons/trash3.js +3 -7
  347. package/dist/editor/images/icons/trash3.js.map +1 -1
  348. package/dist/editor/images/icons/type-bold.d.ts +3 -1
  349. package/dist/editor/images/icons/type-bold.d.ts.map +1 -0
  350. package/dist/editor/images/icons/type-bold.js +3 -7
  351. package/dist/editor/images/icons/type-bold.js.map +1 -1
  352. package/dist/editor/images/icons/type-capitalize.d.ts +3 -1
  353. package/dist/editor/images/icons/type-capitalize.d.ts.map +1 -0
  354. package/dist/editor/images/icons/type-capitalize.js +3 -7
  355. package/dist/editor/images/icons/type-capitalize.js.map +1 -1
  356. package/dist/editor/images/icons/type-h1.d.ts +3 -1
  357. package/dist/editor/images/icons/type-h1.d.ts.map +1 -0
  358. package/dist/editor/images/icons/type-h1.js +3 -7
  359. package/dist/editor/images/icons/type-h1.js.map +1 -1
  360. package/dist/editor/images/icons/type-h2.d.ts +3 -1
  361. package/dist/editor/images/icons/type-h2.d.ts.map +1 -0
  362. package/dist/editor/images/icons/type-h2.js +3 -7
  363. package/dist/editor/images/icons/type-h2.js.map +1 -1
  364. package/dist/editor/images/icons/type-h3.d.ts +3 -1
  365. package/dist/editor/images/icons/type-h3.d.ts.map +1 -0
  366. package/dist/editor/images/icons/type-h3.js +3 -7
  367. package/dist/editor/images/icons/type-h3.js.map +1 -1
  368. package/dist/editor/images/icons/type-h4.d.ts +3 -1
  369. package/dist/editor/images/icons/type-h4.d.ts.map +1 -0
  370. package/dist/editor/images/icons/type-h4.js +3 -7
  371. package/dist/editor/images/icons/type-h4.js.map +1 -1
  372. package/dist/editor/images/icons/type-h5.d.ts +3 -1
  373. package/dist/editor/images/icons/type-h5.d.ts.map +1 -0
  374. package/dist/editor/images/icons/type-h5.js +3 -7
  375. package/dist/editor/images/icons/type-h5.js.map +1 -1
  376. package/dist/editor/images/icons/type-h6.d.ts +3 -1
  377. package/dist/editor/images/icons/type-h6.d.ts.map +1 -0
  378. package/dist/editor/images/icons/type-h6.js +3 -7
  379. package/dist/editor/images/icons/type-h6.js.map +1 -1
  380. package/dist/editor/images/icons/type-italic.d.ts +3 -1
  381. package/dist/editor/images/icons/type-italic.d.ts.map +1 -0
  382. package/dist/editor/images/icons/type-italic.js +3 -7
  383. package/dist/editor/images/icons/type-italic.js.map +1 -1
  384. package/dist/editor/images/icons/type-lowercase.d.ts +3 -1
  385. package/dist/editor/images/icons/type-lowercase.d.ts.map +1 -0
  386. package/dist/editor/images/icons/type-lowercase.js +3 -7
  387. package/dist/editor/images/icons/type-lowercase.js.map +1 -1
  388. package/dist/editor/images/icons/type-strikethrough.d.ts +3 -1
  389. package/dist/editor/images/icons/type-strikethrough.d.ts.map +1 -0
  390. package/dist/editor/images/icons/type-strikethrough.js +3 -7
  391. package/dist/editor/images/icons/type-strikethrough.js.map +1 -1
  392. package/dist/editor/images/icons/type-subscript.d.ts +3 -1
  393. package/dist/editor/images/icons/type-subscript.d.ts.map +1 -0
  394. package/dist/editor/images/icons/type-subscript.js +3 -7
  395. package/dist/editor/images/icons/type-subscript.js.map +1 -1
  396. package/dist/editor/images/icons/type-superscript.d.ts +3 -1
  397. package/dist/editor/images/icons/type-superscript.d.ts.map +1 -0
  398. package/dist/editor/images/icons/type-superscript.js +3 -7
  399. package/dist/editor/images/icons/type-superscript.js.map +1 -1
  400. package/dist/editor/images/icons/type-underline.d.ts +3 -1
  401. package/dist/editor/images/icons/type-underline.d.ts.map +1 -0
  402. package/dist/editor/images/icons/type-underline.js +3 -7
  403. package/dist/editor/images/icons/type-underline.js.map +1 -1
  404. package/dist/editor/images/icons/type-uppercase.d.ts +3 -1
  405. package/dist/editor/images/icons/type-uppercase.d.ts.map +1 -0
  406. package/dist/editor/images/icons/type-uppercase.js +3 -7
  407. package/dist/editor/images/icons/type-uppercase.js.map +1 -1
  408. package/dist/editor/images/icons/upload.d.ts +3 -1
  409. package/dist/editor/images/icons/upload.d.ts.map +1 -0
  410. package/dist/editor/images/icons/upload.js +3 -7
  411. package/dist/editor/images/icons/upload.js.map +1 -1
  412. package/dist/editor/images/icons/user.d.ts +3 -1
  413. package/dist/editor/images/icons/user.d.ts.map +1 -0
  414. package/dist/editor/images/icons/user.js +3 -7
  415. package/dist/editor/images/icons/user.js.map +1 -1
  416. package/dist/editor/images/icons/vertical-bottom.d.ts +3 -1
  417. package/dist/editor/images/icons/vertical-bottom.d.ts.map +1 -0
  418. package/dist/editor/images/icons/vertical-bottom.js +3 -7
  419. package/dist/editor/images/icons/vertical-bottom.js.map +1 -1
  420. package/dist/editor/images/icons/vertical-middle.d.ts +3 -1
  421. package/dist/editor/images/icons/vertical-middle.d.ts.map +1 -0
  422. package/dist/editor/images/icons/vertical-middle.js +3 -7
  423. package/dist/editor/images/icons/vertical-middle.js.map +1 -1
  424. package/dist/editor/images/icons/vertical-top.d.ts +3 -1
  425. package/dist/editor/images/icons/vertical-top.d.ts.map +1 -0
  426. package/dist/editor/images/icons/vertical-top.js +3 -7
  427. package/dist/editor/images/icons/vertical-top.js.map +1 -1
  428. package/dist/editor/images/icons/x.d.ts +3 -1
  429. package/dist/editor/images/icons/x.d.ts.map +1 -0
  430. package/dist/editor/images/icons/x.js +3 -7
  431. package/dist/editor/images/icons/x.js.map +1 -1
  432. package/dist/editor/images/icons/youtube.d.ts +3 -1
  433. package/dist/editor/images/icons/youtube.d.ts.map +1 -0
  434. package/dist/editor/images/icons/youtube.js +3 -7
  435. package/dist/editor/images/icons/youtube.js.map +1 -1
  436. package/dist/editor/images/image-broken.d.ts +3 -1
  437. package/dist/editor/images/image-broken.d.ts.map +1 -0
  438. package/dist/editor/images/image-broken.js +3 -7
  439. package/dist/editor/images/image-broken.js.map +1 -1
  440. package/dist/editor/index.d.ts +1 -0
  441. package/dist/editor/index.d.ts.map +1 -0
  442. package/dist/editor/index.js +2 -10
  443. package/dist/editor/index.js.map +1 -1
  444. package/dist/editor/nodes/Image/ImageComponent.d.ts +1 -0
  445. package/dist/editor/nodes/Image/ImageComponent.d.ts.map +1 -0
  446. package/dist/editor/nodes/Image/ImageComponent.js +57 -61
  447. package/dist/editor/nodes/Image/ImageComponent.js.map +1 -1
  448. package/dist/editor/nodes/Image/ImageNode.d.ts +1 -0
  449. package/dist/editor/nodes/Image/ImageNode.d.ts.map +1 -0
  450. package/dist/editor/nodes/Image/ImageNode.js +12 -18
  451. package/dist/editor/nodes/Image/ImageNode.js.map +1 -1
  452. package/dist/editor/nodes/Image/imageNodeStyles.d.ts +1 -0
  453. package/dist/editor/nodes/Image/imageNodeStyles.d.ts.map +1 -0
  454. package/dist/editor/nodes/Image/imageNodeStyles.js +2 -5
  455. package/dist/editor/nodes/Image/imageNodeStyles.js.map +1 -1
  456. package/dist/editor/nodes/Image/index.d.ts +1 -0
  457. package/dist/editor/nodes/Image/index.d.ts.map +1 -0
  458. package/dist/editor/nodes/Image/index.js +3 -9
  459. package/dist/editor/nodes/Image/index.js.map +1 -1
  460. package/dist/editor/nodes/InlineImage/InlineImageComponent.d.ts +1 -0
  461. package/dist/editor/nodes/InlineImage/InlineImageComponent.d.ts.map +1 -0
  462. package/dist/editor/nodes/InlineImage/InlineImageComponent.js +51 -56
  463. package/dist/editor/nodes/InlineImage/InlineImageComponent.js.map +1 -1
  464. package/dist/editor/nodes/InlineImage/InlineImageNode.d.ts +1 -0
  465. package/dist/editor/nodes/InlineImage/InlineImageNode.d.ts.map +1 -0
  466. package/dist/editor/nodes/InlineImage/InlineImageNode.js +14 -20
  467. package/dist/editor/nodes/InlineImage/InlineImageNode.js.map +1 -1
  468. package/dist/editor/nodes/InlineImage/index.d.ts +1 -0
  469. package/dist/editor/nodes/InlineImage/index.d.ts.map +1 -0
  470. package/dist/editor/nodes/InlineImage/index.js +3 -9
  471. package/dist/editor/nodes/InlineImage/index.js.map +1 -1
  472. package/dist/editor/nodes/InlineImage/inlineImageNodeStyles.d.ts +1 -0
  473. package/dist/editor/nodes/InlineImage/inlineImageNodeStyles.d.ts.map +1 -0
  474. package/dist/editor/nodes/InlineImage/inlineImageNodeStyles.js +2 -5
  475. package/dist/editor/nodes/InlineImage/inlineImageNodeStyles.js.map +1 -1
  476. package/dist/editor/nodes/MuiLexicalNodes.d.ts +1 -0
  477. package/dist/editor/nodes/MuiLexicalNodes.d.ts.map +1 -0
  478. package/dist/editor/nodes/MuiLexicalNodes.js +27 -30
  479. package/dist/editor/nodes/MuiLexicalNodes.js.map +1 -1
  480. package/dist/editor/nodes/Video/VideoComponent.d.ts +2 -1
  481. package/dist/editor/nodes/Video/VideoComponent.d.ts.map +1 -0
  482. package/dist/editor/nodes/Video/VideoComponent.js +3 -7
  483. package/dist/editor/nodes/Video/VideoComponent.js.map +1 -1
  484. package/dist/editor/nodes/Video/VideoNode.d.ts +1 -0
  485. package/dist/editor/nodes/Video/VideoNode.d.ts.map +1 -0
  486. package/dist/editor/nodes/Video/VideoNode.js +10 -16
  487. package/dist/editor/nodes/Video/VideoNode.js.map +1 -1
  488. package/dist/editor/nodes/Video/index.d.ts +1 -0
  489. package/dist/editor/nodes/Video/index.d.ts.map +1 -0
  490. package/dist/editor/nodes/Video/index.js +3 -9
  491. package/dist/editor/nodes/Video/index.js.map +1 -1
  492. package/dist/editor/nodes/Video/videoNodeStyles.d.ts +1 -0
  493. package/dist/editor/nodes/Video/videoNodeStyles.d.ts.map +1 -0
  494. package/dist/editor/nodes/Video/videoNodeStyles.js +2 -5
  495. package/dist/editor/nodes/Video/videoNodeStyles.js.map +1 -1
  496. package/dist/editor/nodes/index.d.ts +1 -0
  497. package/dist/editor/nodes/index.d.ts.map +1 -0
  498. package/dist/editor/nodes/index.js +4 -20
  499. package/dist/editor/nodes/index.js.map +1 -1
  500. package/dist/editor/plugins/CodeActionMenuPlugin/codeActionMenuPluginStyles.d.ts +1 -0
  501. package/dist/editor/plugins/CodeActionMenuPlugin/codeActionMenuPluginStyles.d.ts.map +1 -0
  502. package/dist/editor/plugins/CodeActionMenuPlugin/codeActionMenuPluginStyles.js +2 -5
  503. package/dist/editor/plugins/CodeActionMenuPlugin/codeActionMenuPluginStyles.js.map +1 -1
  504. package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +2 -1
  505. package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts.map +1 -0
  506. package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +15 -19
  507. package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -1
  508. package/dist/editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +2 -1
  509. package/dist/editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts.map +1 -0
  510. package/dist/editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +14 -19
  511. package/dist/editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -1
  512. package/dist/editor/plugins/CodeActionMenuPlugin/components/index.d.ts +1 -0
  513. package/dist/editor/plugins/CodeActionMenuPlugin/components/index.d.ts.map +1 -0
  514. package/dist/editor/plugins/CodeActionMenuPlugin/components/index.js +2 -18
  515. package/dist/editor/plugins/CodeActionMenuPlugin/components/index.js.map +1 -1
  516. package/dist/editor/plugins/CodeActionMenuPlugin/index.d.ts +1 -0
  517. package/dist/editor/plugins/CodeActionMenuPlugin/index.d.ts.map +1 -0
  518. package/dist/editor/plugins/CodeActionMenuPlugin/index.js +28 -33
  519. package/dist/editor/plugins/CodeActionMenuPlugin/index.js.map +1 -1
  520. package/dist/editor/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
  521. package/dist/editor/plugins/CodeActionMenuPlugin/utils.d.ts.map +1 -0
  522. package/dist/editor/plugins/CodeActionMenuPlugin/utils.js +5 -8
  523. package/dist/editor/plugins/CodeActionMenuPlugin/utils.js.map +1 -1
  524. package/dist/editor/plugins/CodeHighlightPlugin/index.d.ts +1 -0
  525. package/dist/editor/plugins/CodeHighlightPlugin/index.d.ts.map +1 -0
  526. package/dist/editor/plugins/CodeHighlightPlugin/index.js +7 -11
  527. package/dist/editor/plugins/CodeHighlightPlugin/index.js.map +1 -1
  528. package/dist/editor/plugins/ComponentPickerPlugin/index.d.ts +1 -0
  529. package/dist/editor/plugins/ComponentPickerPlugin/index.d.ts.map +1 -0
  530. package/dist/editor/plugins/ComponentPickerPlugin/index.js +60 -97
  531. package/dist/editor/plugins/ComponentPickerPlugin/index.js.map +1 -1
  532. package/dist/editor/plugins/ContextMenuPlugin/index.d.ts +1 -0
  533. package/dist/editor/plugins/ContextMenuPlugin/index.d.ts.map +1 -0
  534. package/dist/editor/plugins/ContextMenuPlugin/index.js +27 -33
  535. package/dist/editor/plugins/ContextMenuPlugin/index.js.map +1 -1
  536. package/dist/editor/plugins/FloatingLinkEditorPlugin/floatLinkEditorPluginStyles.d.ts +1 -0
  537. package/dist/editor/plugins/FloatingLinkEditorPlugin/floatLinkEditorPluginStyles.d.ts.map +1 -0
  538. package/dist/editor/plugins/FloatingLinkEditorPlugin/floatLinkEditorPluginStyles.js +2 -5
  539. package/dist/editor/plugins/FloatingLinkEditorPlugin/floatLinkEditorPluginStyles.js.map +1 -1
  540. package/dist/editor/plugins/FloatingLinkEditorPlugin/index.d.ts +1 -0
  541. package/dist/editor/plugins/FloatingLinkEditorPlugin/index.d.ts.map +1 -0
  542. package/dist/editor/plugins/FloatingLinkEditorPlugin/index.js +75 -80
  543. package/dist/editor/plugins/FloatingLinkEditorPlugin/index.js.map +1 -1
  544. package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/floatTextFormatToolbarPluginStyles.d.ts +1 -0
  545. package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/floatTextFormatToolbarPluginStyles.d.ts.map +1 -0
  546. package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/floatTextFormatToolbarPluginStyles.js +2 -5
  547. package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/floatTextFormatToolbarPluginStyles.js.map +1 -1
  548. package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +1 -0
  549. package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.d.ts.map +1 -0
  550. package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.js +63 -68
  551. package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -1
  552. package/dist/editor/plugins/ImagesPlugin/index.d.ts +2 -1
  553. package/dist/editor/plugins/ImagesPlugin/index.d.ts.map +1 -0
  554. package/dist/editor/plugins/ImagesPlugin/index.js +41 -47
  555. package/dist/editor/plugins/ImagesPlugin/index.js.map +1 -1
  556. package/dist/editor/plugins/LinkPlugin/index.d.ts +1 -0
  557. package/dist/editor/plugins/LinkPlugin/index.d.ts.map +1 -0
  558. package/dist/editor/plugins/LinkPlugin/index.js +5 -9
  559. package/dist/editor/plugins/LinkPlugin/index.js.map +1 -1
  560. package/dist/editor/plugins/MarkdownShortcutPlugin/index.d.ts +1 -0
  561. package/dist/editor/plugins/MarkdownShortcutPlugin/index.d.ts.map +1 -0
  562. package/dist/editor/plugins/MarkdownShortcutPlugin/index.js +5 -9
  563. package/dist/editor/plugins/MarkdownShortcutPlugin/index.js.map +1 -1
  564. package/dist/editor/plugins/MarkdownTransformers/index.d.ts +1 -0
  565. package/dist/editor/plugins/MarkdownTransformers/index.d.ts.map +1 -0
  566. package/dist/editor/plugins/MarkdownTransformers/index.js +41 -44
  567. package/dist/editor/plugins/MarkdownTransformers/index.js.map +1 -1
  568. package/dist/editor/plugins/MaxLengthPlugin/index.d.ts +1 -0
  569. package/dist/editor/plugins/MaxLengthPlugin/index.d.ts.map +1 -0
  570. package/dist/editor/plugins/MaxLengthPlugin/index.js +13 -17
  571. package/dist/editor/plugins/MaxLengthPlugin/index.js.map +1 -1
  572. package/dist/editor/plugins/ShortcutsPlugin/index.d.ts +1 -0
  573. package/dist/editor/plugins/ShortcutsPlugin/index.d.ts.map +1 -0
  574. package/dist/editor/plugins/ShortcutsPlugin/index.js +46 -50
  575. package/dist/editor/plugins/ShortcutsPlugin/index.js.map +1 -1
  576. package/dist/editor/plugins/ShortcutsPlugin/shortcuts.d.ts +1 -0
  577. package/dist/editor/plugins/ShortcutsPlugin/shortcuts.d.ts.map +1 -0
  578. package/dist/editor/plugins/ShortcutsPlugin/shortcuts.js +57 -80
  579. package/dist/editor/plugins/ShortcutsPlugin/shortcuts.js.map +1 -1
  580. package/dist/editor/plugins/TabFocusPlugin/index.d.ts +1 -0
  581. package/dist/editor/plugins/TabFocusPlugin/index.d.ts.map +1 -0
  582. package/dist/editor/plugins/TabFocusPlugin/index.js +10 -14
  583. package/dist/editor/plugins/TabFocusPlugin/index.js.map +1 -1
  584. package/dist/editor/plugins/TableActionMenuPlugin/index.d.ts +1 -0
  585. package/dist/editor/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  586. package/dist/editor/plugins/TableActionMenuPlugin/index.js +90 -94
  587. package/dist/editor/plugins/TableActionMenuPlugin/index.js.map +1 -1
  588. package/dist/editor/plugins/TableCellResizer/index.d.ts +1 -0
  589. package/dist/editor/plugins/TableCellResizer/index.d.ts.map +1 -0
  590. package/dist/editor/plugins/TableCellResizer/index.js +48 -53
  591. package/dist/editor/plugins/TableCellResizer/index.js.map +1 -1
  592. package/dist/editor/plugins/TableCellResizer/tableCellResizerPluginStyles.d.ts +1 -0
  593. package/dist/editor/plugins/TableCellResizer/tableCellResizerPluginStyles.d.ts.map +1 -0
  594. package/dist/editor/plugins/TableCellResizer/tableCellResizerPluginStyles.js +2 -5
  595. package/dist/editor/plugins/TableCellResizer/tableCellResizerPluginStyles.js.map +1 -1
  596. package/dist/editor/plugins/TableHoverActionsPlugin/index.d.ts +1 -0
  597. package/dist/editor/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  598. package/dist/editor/plugins/TableHoverActionsPlugin/index.js +43 -47
  599. package/dist/editor/plugins/TableHoverActionsPlugin/index.js.map +1 -1
  600. package/dist/editor/plugins/TablePlugin.d.ts +2 -1
  601. package/dist/editor/plugins/TablePlugin.d.ts.map +1 -0
  602. package/dist/editor/plugins/TablePlugin.js +24 -30
  603. package/dist/editor/plugins/TablePlugin.js.map +1 -1
  604. package/dist/editor/plugins/ToolbarPlugin/index.d.ts +1 -0
  605. package/dist/editor/plugins/ToolbarPlugin/index.d.ts.map +1 -0
  606. package/dist/editor/plugins/ToolbarPlugin/index.js +82 -86
  607. package/dist/editor/plugins/ToolbarPlugin/index.js.map +1 -1
  608. package/dist/editor/plugins/ToolbarPlugin/utils.d.ts +1 -0
  609. package/dist/editor/plugins/ToolbarPlugin/utils.d.ts.map +1 -0
  610. package/dist/editor/plugins/ToolbarPlugin/utils.js +55 -68
  611. package/dist/editor/plugins/ToolbarPlugin/utils.js.map +1 -1
  612. package/dist/editor/plugins/VideoPlugin/index.d.ts +1 -0
  613. package/dist/editor/plugins/VideoPlugin/index.d.ts.map +1 -0
  614. package/dist/editor/plugins/VideoPlugin/index.js +28 -33
  615. package/dist/editor/plugins/VideoPlugin/index.js.map +1 -1
  616. package/dist/editor/plugins/index.d.ts +1 -0
  617. package/dist/editor/plugins/index.d.ts.map +1 -0
  618. package/dist/editor/plugins/index.js +19 -35
  619. package/dist/editor/plugins/index.js.map +1 -1
  620. package/dist/editor/themes/index.d.ts +1 -0
  621. package/dist/editor/themes/index.d.ts.map +1 -0
  622. package/dist/editor/themes/index.js +1 -5
  623. package/dist/editor/themes/index.js.map +1 -1
  624. package/dist/editor/themes/playgroundEditorTheme.d.ts +1 -0
  625. package/dist/editor/themes/playgroundEditorTheme.d.ts.map +1 -0
  626. package/dist/editor/themes/playgroundEditorTheme.js +1 -4
  627. package/dist/editor/themes/playgroundEditorTheme.js.map +1 -1
  628. package/dist/editor/themes/playgroundEditorThemeStyles.d.ts +1 -0
  629. package/dist/editor/themes/playgroundEditorThemeStyles.d.ts.map +1 -0
  630. package/dist/editor/themes/playgroundEditorThemeStyles.js +2 -5
  631. package/dist/editor/themes/playgroundEditorThemeStyles.js.map +1 -1
  632. package/dist/editor/types/index.d.ts +1 -0
  633. package/dist/editor/types/index.d.ts.map +1 -0
  634. package/dist/editor/types/index.js +1 -2
  635. package/dist/editor/ui/BlockFormatDropdown/index.d.ts +1 -0
  636. package/dist/editor/ui/BlockFormatDropdown/index.d.ts.map +1 -0
  637. package/dist/editor/ui/BlockFormatDropdown/index.js +48 -52
  638. package/dist/editor/ui/BlockFormatDropdown/index.js.map +1 -1
  639. package/dist/editor/ui/BoldButton/index.d.ts +1 -0
  640. package/dist/editor/ui/BoldButton/index.d.ts.map +1 -0
  641. package/dist/editor/ui/BoldButton/index.js +8 -12
  642. package/dist/editor/ui/BoldButton/index.js.map +1 -1
  643. package/dist/editor/ui/Button.d.ts +1 -0
  644. package/dist/editor/ui/Button.d.ts.map +1 -0
  645. package/dist/editor/ui/Button.js +6 -10
  646. package/dist/editor/ui/Button.js.map +1 -1
  647. package/dist/editor/ui/CenterAlignButton/index.d.ts +1 -0
  648. package/dist/editor/ui/CenterAlignButton/index.d.ts.map +1 -0
  649. package/dist/editor/ui/CenterAlignButton/index.js +8 -12
  650. package/dist/editor/ui/CenterAlignButton/index.js.map +1 -1
  651. package/dist/editor/ui/ClearEditorButton/index.d.ts +1 -0
  652. package/dist/editor/ui/ClearEditorButton/index.d.ts.map +1 -0
  653. package/dist/editor/ui/ClearEditorButton/index.js +4 -8
  654. package/dist/editor/ui/ClearEditorButton/index.js.map +1 -1
  655. package/dist/editor/ui/ClearFormattingButton/index.d.ts +1 -0
  656. package/dist/editor/ui/ClearFormattingButton/index.d.ts.map +1 -0
  657. package/dist/editor/ui/ClearFormattingButton/index.js +4 -8
  658. package/dist/editor/ui/ClearFormattingButton/index.js.map +1 -1
  659. package/dist/editor/ui/CodeButton/index.d.ts +1 -0
  660. package/dist/editor/ui/CodeButton/index.d.ts.map +1 -0
  661. package/dist/editor/ui/CodeButton/index.js +8 -12
  662. package/dist/editor/ui/CodeButton/index.js.map +1 -1
  663. package/dist/editor/ui/CodeLanguageDropdown/index.d.ts +3 -1
  664. package/dist/editor/ui/CodeLanguageDropdown/index.d.ts.map +1 -0
  665. package/dist/editor/ui/CodeLanguageDropdown/index.js +8 -12
  666. package/dist/editor/ui/CodeLanguageDropdown/index.js.map +1 -1
  667. package/dist/editor/ui/ContentEditable.d.ts +1 -0
  668. package/dist/editor/ui/ContentEditable.d.ts.map +1 -0
  669. package/dist/editor/ui/ContentEditable.js +6 -10
  670. package/dist/editor/ui/ContentEditable.js.map +1 -1
  671. package/dist/editor/ui/Dialog.d.ts +1 -0
  672. package/dist/editor/ui/Dialog.d.ts.map +1 -0
  673. package/dist/editor/ui/Dialog.js +7 -12
  674. package/dist/editor/ui/Dialog.js.map +1 -1
  675. package/dist/editor/ui/Divider/index.d.ts +1 -0
  676. package/dist/editor/ui/Divider/index.d.ts.map +1 -0
  677. package/dist/editor/ui/Divider/index.js +3 -7
  678. package/dist/editor/ui/Divider/index.js.map +1 -1
  679. package/dist/editor/ui/DropDown.d.ts +2 -1
  680. package/dist/editor/ui/DropDown.d.ts.map +1 -0
  681. package/dist/editor/ui/DropDown.js +26 -31
  682. package/dist/editor/ui/DropDown.js.map +1 -1
  683. package/dist/editor/ui/FlashMessage.d.ts +1 -0
  684. package/dist/editor/ui/FlashMessage.d.ts.map +1 -0
  685. package/dist/editor/ui/FlashMessage.js +6 -10
  686. package/dist/editor/ui/FlashMessage.js.map +1 -1
  687. package/dist/editor/ui/HorizontalRuleButton/index.d.ts +1 -0
  688. package/dist/editor/ui/HorizontalRuleButton/index.d.ts.map +1 -0
  689. package/dist/editor/ui/HorizontalRuleButton/index.js +7 -11
  690. package/dist/editor/ui/HorizontalRuleButton/index.js.map +1 -1
  691. package/dist/editor/ui/ImageButton/index.d.ts +1 -0
  692. package/dist/editor/ui/ImageButton/index.d.ts.map +1 -0
  693. package/dist/editor/ui/ImageButton/index.js +7 -11
  694. package/dist/editor/ui/ImageButton/index.js.map +1 -1
  695. package/dist/editor/ui/ImageResizer.d.ts +1 -0
  696. package/dist/editor/ui/ImageResizer.d.ts.map +1 -0
  697. package/dist/editor/ui/ImageResizer.js +18 -22
  698. package/dist/editor/ui/ImageResizer.js.map +1 -1
  699. package/dist/editor/ui/ItalicButton/index.d.ts +1 -0
  700. package/dist/editor/ui/ItalicButton/index.d.ts.map +1 -0
  701. package/dist/editor/ui/ItalicButton/index.js +8 -12
  702. package/dist/editor/ui/ItalicButton/index.js.map +1 -1
  703. package/dist/editor/ui/LeftAlignButton/index.d.ts +1 -0
  704. package/dist/editor/ui/LeftAlignButton/index.d.ts.map +1 -0
  705. package/dist/editor/ui/LeftAlignButton/index.js +8 -12
  706. package/dist/editor/ui/LeftAlignButton/index.js.map +1 -1
  707. package/dist/editor/ui/LinkButton/index.d.ts +1 -0
  708. package/dist/editor/ui/LinkButton/index.d.ts.map +1 -0
  709. package/dist/editor/ui/LinkButton/index.js +5 -9
  710. package/dist/editor/ui/LinkButton/index.js.map +1 -1
  711. package/dist/editor/ui/Modal.d.ts +1 -0
  712. package/dist/editor/ui/Modal.d.ts.map +1 -0
  713. package/dist/editor/ui/Modal.js +13 -17
  714. package/dist/editor/ui/Modal.js.map +1 -1
  715. package/dist/editor/ui/RedoButton/index.d.ts +1 -0
  716. package/dist/editor/ui/RedoButton/index.d.ts.map +1 -0
  717. package/dist/editor/ui/RedoButton/index.js +8 -12
  718. package/dist/editor/ui/RedoButton/index.js.map +1 -1
  719. package/dist/editor/ui/RightAlignButton/index.d.ts +1 -0
  720. package/dist/editor/ui/RightAlignButton/index.d.ts.map +1 -0
  721. package/dist/editor/ui/RightAlignButton/index.js +8 -12
  722. package/dist/editor/ui/RightAlignButton/index.js.map +1 -1
  723. package/dist/editor/ui/Select.d.ts +1 -0
  724. package/dist/editor/ui/Select.d.ts.map +1 -0
  725. package/dist/editor/ui/Select.js +5 -9
  726. package/dist/editor/ui/Select.js.map +1 -1
  727. package/dist/editor/ui/StrikethroughButton/index.d.ts +1 -0
  728. package/dist/editor/ui/StrikethroughButton/index.d.ts.map +1 -0
  729. package/dist/editor/ui/StrikethroughButton/index.js +8 -12
  730. package/dist/editor/ui/StrikethroughButton/index.js.map +1 -1
  731. package/dist/editor/ui/TableButton/index.d.ts +1 -0
  732. package/dist/editor/ui/TableButton/index.d.ts.map +1 -0
  733. package/dist/editor/ui/TableButton/index.js +7 -11
  734. package/dist/editor/ui/TableButton/index.js.map +1 -1
  735. package/dist/editor/ui/TextInput.d.ts +1 -0
  736. package/dist/editor/ui/TextInput.d.ts.map +1 -0
  737. package/dist/editor/ui/TextInput.js +5 -9
  738. package/dist/editor/ui/TextInput.js.map +1 -1
  739. package/dist/editor/ui/UnderlineButton/index.d.ts +1 -0
  740. package/dist/editor/ui/UnderlineButton/index.d.ts.map +1 -0
  741. package/dist/editor/ui/UnderlineButton/index.js +8 -12
  742. package/dist/editor/ui/UnderlineButton/index.js.map +1 -1
  743. package/dist/editor/ui/UndoButton/index.d.ts +1 -0
  744. package/dist/editor/ui/UndoButton/index.d.ts.map +1 -0
  745. package/dist/editor/ui/UndoButton/index.js +8 -12
  746. package/dist/editor/ui/UndoButton/index.js.map +1 -1
  747. package/dist/editor/ui/VideoButton/index.d.ts +1 -0
  748. package/dist/editor/ui/VideoButton/index.d.ts.map +1 -0
  749. package/dist/editor/ui/VideoButton/index.js +7 -11
  750. package/dist/editor/ui/VideoButton/index.js.map +1 -1
  751. package/dist/editor/ui/index.d.ts +1 -0
  752. package/dist/editor/ui/index.d.ts.map +1 -0
  753. package/dist/editor/ui/index.js +44 -72
  754. package/dist/editor/ui/index.js.map +1 -1
  755. package/dist/editor/utils/dropDownActiveClass.d.ts +1 -0
  756. package/dist/editor/utils/dropDownActiveClass.d.ts.map +1 -0
  757. package/dist/editor/utils/dropDownActiveClass.js +1 -4
  758. package/dist/editor/utils/dropDownActiveClass.js.map +1 -1
  759. package/dist/editor/utils/getDOMRangeRect.d.ts +1 -0
  760. package/dist/editor/utils/getDOMRangeRect.d.ts.map +1 -0
  761. package/dist/editor/utils/getDOMRangeRect.js +1 -4
  762. package/dist/editor/utils/getDOMRangeRect.js.map +1 -1
  763. package/dist/editor/utils/getSelectedNode.d.ts +1 -0
  764. package/dist/editor/utils/getSelectedNode.d.ts.map +1 -0
  765. package/dist/editor/utils/getSelectedNode.js +4 -7
  766. package/dist/editor/utils/getSelectedNode.js.map +1 -1
  767. package/dist/editor/utils/getThemeSelector.d.ts +1 -0
  768. package/dist/editor/utils/getThemeSelector.d.ts.map +1 -0
  769. package/dist/editor/utils/getThemeSelector.js +1 -4
  770. package/dist/editor/utils/getThemeSelector.js.map +1 -1
  771. package/dist/editor/utils/index.d.ts +1 -0
  772. package/dist/editor/utils/index.d.ts.map +1 -0
  773. package/dist/editor/utils/index.js +9 -25
  774. package/dist/editor/utils/index.js.map +1 -1
  775. package/dist/editor/utils/joinClasses.d.ts +1 -0
  776. package/dist/editor/utils/joinClasses.d.ts.map +1 -0
  777. package/dist/editor/utils/joinClasses.js +1 -5
  778. package/dist/editor/utils/joinClasses.js.map +1 -1
  779. package/dist/editor/utils/parseVideoUrl.d.ts +1 -0
  780. package/dist/editor/utils/parseVideoUrl.d.ts.map +1 -0
  781. package/dist/editor/utils/parseVideoUrl.js +1 -4
  782. package/dist/editor/utils/parseVideoUrl.js.map +1 -1
  783. package/dist/editor/utils/setFloatingElemPosition.d.ts +1 -0
  784. package/dist/editor/utils/setFloatingElemPosition.d.ts.map +1 -0
  785. package/dist/editor/utils/setFloatingElemPosition.js +1 -4
  786. package/dist/editor/utils/setFloatingElemPosition.js.map +1 -1
  787. package/dist/editor/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
  788. package/dist/editor/utils/setFloatingElemPositionForLinkEditor.d.ts.map +1 -0
  789. package/dist/editor/utils/setFloatingElemPositionForLinkEditor.js +1 -4
  790. package/dist/editor/utils/setFloatingElemPositionForLinkEditor.js.map +1 -1
  791. package/dist/editor/utils/url.d.ts +1 -0
  792. package/dist/editor/utils/url.d.ts.map +1 -0
  793. package/dist/editor/utils/url.js +2 -6
  794. package/dist/editor/utils/url.js.map +1 -1
  795. package/dist/index.d.ts +1 -0
  796. package/dist/index.d.ts.map +1 -0
  797. package/dist/index.js +18 -35
  798. package/dist/index.js.map +1 -1
  799. package/jest.config.json +28 -10
  800. package/package.json +40 -32
  801. package/tsconfig.jest.json +2 -3
  802. package/dist/editor/Editor.stories.d.ts +0 -13
  803. package/dist/editor/Editor.stories.js +0 -135
  804. package/dist/editor/Editor.stories.js.map +0 -1
@@ -1,21 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InlineImageComponent = exports.UpdateInlineImageDialog = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const lexical_1 = require("lexical");
6
- const react_1 = require("react");
7
- const LexicalAutoFocusPlugin_1 = require("@lexical/react/LexicalAutoFocusPlugin");
8
- const LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
9
- const LexicalErrorBoundary_1 = require("@lexical/react/LexicalErrorBoundary");
10
- const LexicalNestedComposer_1 = require("@lexical/react/LexicalNestedComposer");
11
- const LexicalRichTextPlugin_1 = require("@lexical/react/LexicalRichTextPlugin");
12
- const useLexicalEditable_1 = require("@lexical/react/useLexicalEditable");
13
- const useLexicalNodeSelection_1 = require("@lexical/react/useLexicalNodeSelection");
14
- const utils_1 = require("@lexical/utils");
15
- const InlineImageNode_1 = require("./InlineImageNode");
16
- const hooks_1 = require("../../hooks");
17
- const plugins_1 = require("../../plugins");
18
- const ui_1 = require("../../ui");
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { $getNodeByKey, $getSelection, $isNodeSelection, $setSelection, CLICK_COMMAND, COMMAND_PRIORITY_LOW, DRAGSTART_COMMAND, KEY_ENTER_COMMAND, KEY_ESCAPE_COMMAND, SELECTION_CHANGE_COMMAND, } from "lexical";
3
+ import { Suspense, useCallback, useEffect, useRef, useState } from "react";
4
+ import { AutoFocusPlugin } from "@lexical/react/LexicalAutoFocusPlugin";
5
+ import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
6
+ import { LexicalErrorBoundary } from "@lexical/react/LexicalErrorBoundary";
7
+ import { LexicalNestedComposer } from "@lexical/react/LexicalNestedComposer";
8
+ import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin";
9
+ import { useLexicalEditable } from "@lexical/react/useLexicalEditable";
10
+ import { useLexicalNodeSelection } from "@lexical/react/useLexicalNodeSelection";
11
+ import { mergeRegister } from "@lexical/utils";
12
+ import { $isInlineImageNode } from "./InlineImageNode";
13
+ import { useModal } from "../../hooks";
14
+ import { LinkPlugin } from "../../plugins";
15
+ import { Button, DialogActions, Select, TextInput, LexicalContentEditable as ContentEditable } from "../../ui";
19
16
  const imageCache = new Set();
20
17
  function useSuspenseImage(src) {
21
18
  if (!imageCache.has(src)) {
@@ -33,28 +30,28 @@ function useSuspenseImage(src) {
33
30
  }
34
31
  const LazyImage = ({ altText, className, imageRef, src, width, height, position, }) => {
35
32
  useSuspenseImage(src);
36
- return ((0, jsx_runtime_1.jsx)("img", { className: className || undefined, src: src, alt: altText, ref: imageRef, "data-position": position, style: {
33
+ return (_jsx("img", { className: className || undefined, src: src, alt: altText, ref: imageRef, "data-position": position, style: {
37
34
  display: "block",
38
35
  height,
39
36
  width,
40
37
  }, draggable: "false" }));
41
38
  };
42
- const UpdateInlineImageDialog = ({ activeEditor, nodeKey, onClose, }) => {
39
+ export const UpdateInlineImageDialog = ({ activeEditor, nodeKey, onClose, }) => {
43
40
  const editorState = activeEditor.getEditorState();
44
41
  let initialAltText = "";
45
42
  let initialShowCaption = false;
46
43
  let initialPosition = undefined;
47
44
  editorState.read(() => {
48
- const node = (0, lexical_1.$getNodeByKey)(nodeKey);
49
- if ((0, InlineImageNode_1.$isInlineImageNode)(node)) {
45
+ const node = $getNodeByKey(nodeKey);
46
+ if ($isInlineImageNode(node)) {
50
47
  initialAltText = node.getAltText();
51
48
  initialShowCaption = node.getShowCaption();
52
49
  initialPosition = node.getPosition();
53
50
  }
54
51
  });
55
- const [altText, setAltText] = (0, react_1.useState)(initialAltText);
56
- const [showCaption, setShowCaption] = (0, react_1.useState)(initialShowCaption);
57
- const [position, setPosition] = (0, react_1.useState)(initialPosition);
52
+ const [altText, setAltText] = useState(initialAltText);
53
+ const [showCaption, setShowCaption] = useState(initialShowCaption);
54
+ const [position, setPosition] = useState(initialPosition);
58
55
  const handleShowCaptionChange = (e) => {
59
56
  setShowCaption(e.target.checked);
60
57
  };
@@ -64,32 +61,31 @@ const UpdateInlineImageDialog = ({ activeEditor, nodeKey, onClose, }) => {
64
61
  const handleOnConfirm = () => {
65
62
  const payload = { altText, position, showCaption };
66
63
  activeEditor.update(() => {
67
- const node = (0, lexical_1.$getNodeByKey)(nodeKey);
68
- if ((0, InlineImageNode_1.$isInlineImageNode)(node)) {
64
+ const node = $getNodeByKey(nodeKey);
65
+ if ($isInlineImageNode(node)) {
69
66
  node.update(payload);
70
67
  }
71
68
  });
72
69
  onClose();
73
70
  };
74
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: { marginBottom: "1em" }, children: (0, jsx_runtime_1.jsx)(ui_1.TextInput, { label: "Alt Text", placeholder: "Descriptive alternative text", onChange: setAltText, value: altText, "data-test-id": "image-modal-alt-text-input" }) }), (0, jsx_runtime_1.jsxs)(ui_1.Select, { style: { marginBottom: "1em", width: "208px" }, value: position, label: "Position", name: "position", id: "position-select", onChange: handlePositionChange, children: [(0, jsx_runtime_1.jsx)("option", { value: "left", children: "Left" }), (0, jsx_runtime_1.jsx)("option", { value: "right", children: "Right" }), (0, jsx_runtime_1.jsx)("option", { value: "full", children: "Full Width" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "Input__wrapper", children: [(0, jsx_runtime_1.jsx)("input", { id: "caption", type: "checkbox", checked: showCaption, onChange: handleShowCaptionChange }), (0, jsx_runtime_1.jsx)("label", { htmlFor: "caption", children: "Show Caption" })] }), (0, jsx_runtime_1.jsx)(ui_1.DialogActions, { children: (0, jsx_runtime_1.jsx)(ui_1.Button, { "data-test-id": "image-modal-file-upload-btn", onClick: () => handleOnConfirm(), children: "Confirm" }) })] }));
71
+ return (_jsxs(_Fragment, { children: [_jsx("div", { style: { marginBottom: "1em" }, children: _jsx(TextInput, { label: "Alt Text", placeholder: "Descriptive alternative text", onChange: setAltText, value: altText, "data-test-id": "image-modal-alt-text-input" }) }), _jsxs(Select, { style: { marginBottom: "1em", width: "208px" }, value: position, label: "Position", name: "position", id: "position-select", onChange: handlePositionChange, children: [_jsx("option", { value: "left", children: "Left" }), _jsx("option", { value: "right", children: "Right" }), _jsx("option", { value: "full", children: "Full Width" })] }), _jsxs("div", { className: "Input__wrapper", children: [_jsx("input", { id: "caption", type: "checkbox", checked: showCaption, onChange: handleShowCaptionChange }), _jsx("label", { htmlFor: "caption", children: "Show Caption" })] }), _jsx(DialogActions, { children: _jsx(Button, { "data-test-id": "image-modal-file-upload-btn", onClick: () => handleOnConfirm(), children: "Confirm" }) })] }));
75
72
  };
76
- exports.UpdateInlineImageDialog = UpdateInlineImageDialog;
77
- const InlineImageComponent = ({ src, altText, nodeKey, width, height, showCaption, caption, position, }) => {
78
- const [modal, showModal] = (0, hooks_1.useModal)();
79
- const imageRef = (0, react_1.useRef)(null);
80
- const buttonRef = (0, react_1.useRef)(null);
81
- const [isSelected, setSelected, clearSelection] = (0, useLexicalNodeSelection_1.useLexicalNodeSelection)(nodeKey);
82
- const [editor] = (0, LexicalComposerContext_1.useLexicalComposerContext)();
83
- const [selection, setSelection] = (0, react_1.useState)(null);
84
- const activeEditorRef = (0, react_1.useRef)(null);
85
- const isEditable = (0, useLexicalEditable_1.useLexicalEditable)();
86
- const $onEnter = (0, react_1.useCallback)((event) => {
87
- const latestSelection = (0, lexical_1.$getSelection)();
73
+ export const InlineImageComponent = ({ src, altText, nodeKey, width, height, showCaption, caption, position, }) => {
74
+ const [modal, showModal] = useModal();
75
+ const imageRef = useRef(null);
76
+ const buttonRef = useRef(null);
77
+ const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey);
78
+ const [editor] = useLexicalComposerContext();
79
+ const [selection, setSelection] = useState(null);
80
+ const activeEditorRef = useRef(null);
81
+ const isEditable = useLexicalEditable();
82
+ const $onEnter = useCallback((event) => {
83
+ const latestSelection = $getSelection();
88
84
  const buttonElem = buttonRef.current;
89
- if (isSelected && (0, lexical_1.$isNodeSelection)(latestSelection) && latestSelection.getNodes().length === 1) {
85
+ if (isSelected && $isNodeSelection(latestSelection) && latestSelection.getNodes().length === 1) {
90
86
  if (showCaption) {
91
87
  // Move focus into nested editor
92
- (0, lexical_1.$setSelection)(null);
88
+ $setSelection(null);
93
89
  event.preventDefault();
94
90
  caption.focus();
95
91
  return true;
@@ -102,9 +98,9 @@ const InlineImageComponent = ({ src, altText, nodeKey, width, height, showCaptio
102
98
  }
103
99
  return false;
104
100
  }, [caption, isSelected, showCaption]);
105
- const $onEscape = (0, react_1.useCallback)((event) => {
101
+ const $onEscape = useCallback((event) => {
106
102
  if (activeEditorRef.current === caption || buttonRef.current === event.target) {
107
- (0, lexical_1.$setSelection)(null);
103
+ $setSelection(null);
108
104
  editor.update(() => {
109
105
  setSelected(true);
110
106
  const parentRootElement = editor.getRootElement();
@@ -116,16 +112,16 @@ const InlineImageComponent = ({ src, altText, nodeKey, width, height, showCaptio
116
112
  }
117
113
  return false;
118
114
  }, [caption, editor, setSelected]);
119
- (0, react_1.useEffect)(() => {
115
+ useEffect(() => {
120
116
  let isMounted = true;
121
- const unregister = (0, utils_1.mergeRegister)(editor.registerUpdateListener(({ editorState }) => {
117
+ const unregister = mergeRegister(editor.registerUpdateListener(({ editorState }) => {
122
118
  if (isMounted) {
123
- setSelection(editorState.read(() => (0, lexical_1.$getSelection)()));
119
+ setSelection(editorState.read(() => $getSelection()));
124
120
  }
125
- }), editor.registerCommand(lexical_1.SELECTION_CHANGE_COMMAND, (_, activeEditor) => {
121
+ }), editor.registerCommand(SELECTION_CHANGE_COMMAND, (_, activeEditor) => {
126
122
  activeEditorRef.current = activeEditor;
127
123
  return false;
128
- }, lexical_1.COMMAND_PRIORITY_LOW), editor.registerCommand(lexical_1.CLICK_COMMAND, payload => {
124
+ }, COMMAND_PRIORITY_LOW), editor.registerCommand(CLICK_COMMAND, payload => {
129
125
  const event = payload;
130
126
  if (event.target === imageRef.current) {
131
127
  if (event.shiftKey) {
@@ -138,7 +134,7 @@ const InlineImageComponent = ({ src, altText, nodeKey, width, height, showCaptio
138
134
  return true;
139
135
  }
140
136
  return false;
141
- }, lexical_1.COMMAND_PRIORITY_LOW), editor.registerCommand(lexical_1.DRAGSTART_COMMAND, event => {
137
+ }, COMMAND_PRIORITY_LOW), editor.registerCommand(DRAGSTART_COMMAND, event => {
142
138
  if (event.target === imageRef.current) {
143
139
  // TODO This is just a temporary workaround for FF to behave like other browsers.
144
140
  // Ideally, this handles drag & drop too (and all browsers).
@@ -146,17 +142,16 @@ const InlineImageComponent = ({ src, altText, nodeKey, width, height, showCaptio
146
142
  return true;
147
143
  }
148
144
  return false;
149
- }, lexical_1.COMMAND_PRIORITY_LOW), editor.registerCommand(lexical_1.KEY_ENTER_COMMAND, $onEnter, lexical_1.COMMAND_PRIORITY_LOW), editor.registerCommand(lexical_1.KEY_ESCAPE_COMMAND, $onEscape, lexical_1.COMMAND_PRIORITY_LOW));
145
+ }, COMMAND_PRIORITY_LOW), editor.registerCommand(KEY_ENTER_COMMAND, $onEnter, COMMAND_PRIORITY_LOW), editor.registerCommand(KEY_ESCAPE_COMMAND, $onEscape, COMMAND_PRIORITY_LOW));
150
146
  return () => {
151
147
  isMounted = false;
152
148
  unregister();
153
149
  };
154
150
  }, [clearSelection, editor, isSelected, nodeKey, $onEnter, $onEscape, setSelected]);
155
- const draggable = isSelected && (0, lexical_1.$isNodeSelection)(selection);
151
+ const draggable = isSelected && $isNodeSelection(selection);
156
152
  const isFocused = isSelected && isEditable;
157
- return ((0, jsx_runtime_1.jsxs)(react_1.Suspense, { fallback: null, children: [(0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("span", { draggable: draggable, children: [isEditable && ((0, jsx_runtime_1.jsx)("button", { className: "image-edit-button", ref: buttonRef, onClick: () => {
158
- showModal("Update Inline Image", onClose => ((0, jsx_runtime_1.jsx)(exports.UpdateInlineImageDialog, { activeEditor: editor, nodeKey: nodeKey, onClose: onClose })));
159
- }, children: "Edit" })), (0, jsx_runtime_1.jsx)(LazyImage, { className: isFocused ? `focused ${(0, lexical_1.$isNodeSelection)(selection) ? "draggable" : ""}` : null, src: src, altText: altText, imageRef: imageRef, width: width, height: height, position: position })] }), showCaption && ((0, jsx_runtime_1.jsx)("span", { className: "image-caption-container", children: (0, jsx_runtime_1.jsxs)(LexicalNestedComposer_1.LexicalNestedComposer, { initialEditor: caption, children: [(0, jsx_runtime_1.jsx)(LexicalAutoFocusPlugin_1.AutoFocusPlugin, {}), (0, jsx_runtime_1.jsx)(plugins_1.LinkPlugin, {}), (0, jsx_runtime_1.jsx)(LexicalRichTextPlugin_1.RichTextPlugin, { contentEditable: (0, jsx_runtime_1.jsx)(ui_1.LexicalContentEditable, { placeholder: "Enter a caption...", placeholderClassName: "InlineImageNode__placeholder", className: "InlineImageNode__contentEditable" }), ErrorBoundary: LexicalErrorBoundary_1.LexicalErrorBoundary })] }) }))] }), modal] }));
153
+ return (_jsxs(Suspense, { fallback: null, children: [_jsxs(_Fragment, { children: [_jsxs("span", { draggable: draggable, children: [isEditable && (_jsx("button", { className: "image-edit-button", ref: buttonRef, onClick: () => {
154
+ showModal("Update Inline Image", onClose => (_jsx(UpdateInlineImageDialog, { activeEditor: editor, nodeKey: nodeKey, onClose: onClose })));
155
+ }, children: "Edit" })), _jsx(LazyImage, { className: isFocused ? `focused ${$isNodeSelection(selection) ? "draggable" : ""}` : null, src: src, altText: altText, imageRef: imageRef, width: width, height: height, position: position })] }), showCaption && (_jsx("span", { className: "image-caption-container", children: _jsxs(LexicalNestedComposer, { initialEditor: caption, children: [_jsx(AutoFocusPlugin, {}), _jsx(LinkPlugin, {}), _jsx(RichTextPlugin, { contentEditable: _jsx(ContentEditable, { placeholder: "Enter a caption...", placeholderClassName: "InlineImageNode__placeholder", className: "InlineImageNode__contentEditable" }), ErrorBoundary: LexicalErrorBoundary })] }) }))] }), modal] }));
160
156
  };
161
- exports.InlineImageComponent = InlineImageComponent;
162
157
  //# sourceMappingURL=InlineImageComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineImageComponent.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/InlineImageComponent.tsx"],"names":[],"mappings":";;;;AACA,qCAWiB;AAEjB,iCAA2E;AAC3E,kFAAwE;AACxE,kFAAkF;AAClF,8EAA2E;AAC3E,gFAA6E;AAC7E,gFAAsE;AACtE,0EAAuE;AACvE,oFAAiF;AACjF,0CAA+C;AAG/C,uDAAuD;AACvD,uCAAuC;AACvC,2CAA2C;AAC3C,iCAA+G;AAE/G,MAAM,UAAU,GAAG,IAAI,GAAG,EAAE,CAAC;AAE7B,SAAS,gBAAgB,CAAC,GAAW;IACnC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QACzB,iEAAiE;QACjE,kGAAkG;QAClG,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;YAC1B,MAAM,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;YACxB,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC;YACd,GAAG,CAAC,MAAM,GAAG,GAAG,EAAE;gBAChB,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACpB,OAAO,CAAC,IAAI,CAAC,CAAC;YAChB,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED,MAAM,SAAS,GAAG,CAAC,EACjB,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,EACH,KAAK,EACL,MAAM,EACN,QAAQ,GAST,EAAe,EAAE;IAChB,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACtB,OAAO,CACL,gCACE,SAAS,EAAE,SAAS,IAAI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uBAAC,sCAAc,IACb,eAAe,EACb,uBAAC,2BAAe,IACd,WAAW,EAAC,oBAAoB,EAChC,oBAAoB,EAAC,8BAA8B,EACnD,SAAS,EAAC,kCAAkC,GAC5C,EAEJ,aAAa,EAAE,2CAAoB,GACnC,IACoB,GACnB,CACR,IACA,EACF,KAAK,IACG,CACZ,CAAC;AACJ,CAAC,CAAC;AA/KW,QAAA,oBAAoB,wBA+K/B"}
1
+ {"version":3,"file":"InlineImageComponent.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/InlineImageComponent.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,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,IAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAI,CACtF,CAAC,CAAC;gCACL,CAAC,qBAGM,CACV,EACD,KAAC,SAAS,IACR,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EACzF,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,GAClB,IACG,EACN,WAAW,IAAI,CACd,eAAM,SAAS,EAAC,yBAAyB,YACvC,MAAC,qBAAqB,IAAC,aAAa,EAAE,OAAO,aAC3C,KAAC,eAAe,KAAG,EACnB,KAAC,UAAU,KAAG,EACd,KAAC,cAAc,IACb,eAAe,EACb,KAAC,eAAe,IACd,WAAW,EAAC,oBAAoB,EAChC,oBAAoB,EAAC,8BAA8B,EACnD,SAAS,EAAC,kCAAkC,GAC5C,EAEJ,aAAa,EAAE,oBAAoB,GACnC,IACoB,GACnB,CACR,IACA,EACF,KAAK,IACG,CACZ,CAAC;AACJ,CAAC,CAAC"}
@@ -57,3 +57,4 @@ export declare class InlineImageNode extends DecoratorNode<JSX.Element> {
57
57
  }
58
58
  export declare function $createInlineImageNode({ altText, position, height, src, width, showCaption, caption, key, }: IInlineImagePayload): InlineImageNode;
59
59
  export declare function $isInlineImageNode(node: LexicalNode | null | undefined): node is InlineImageNode;
60
+ //# sourceMappingURL=InlineImageNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineImageNode.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/InlineImageNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAEhB,eAAe,EACf,YAAY,EACZ,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E,OAAO,EAAE,YAAY,GAAG,KAAK;IASzE,QAAQ,IAAI,GAAG,CAAC,OAAO;CAcxB;AAED,wBAAgB,sBAAsB,CAAC,EACrC,OAAO,EACP,QAAQ,EACR,MAAM,EACN,GAAG,EACH,KAAK,EACL,WAAW,EACX,OAAO,EACP,GAAG,GACJ,EAAE,mBAAmB,GAAG,eAAe,CAEvC;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,eAAe,CAEhG"}
@@ -1,14 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InlineImageNode = void 0;
4
- exports.$createInlineImageNode = $createInlineImageNode;
5
- exports.$isInlineImageNode = $isInlineImageNode;
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const lexical_1 = require("lexical");
8
- const utils_1 = require("@lexical/utils");
9
- const InlineImageComponent_1 = require("./InlineImageComponent");
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { $applyNodeReplacement, createEditor, DecoratorNode, isHTMLElement } from "lexical";
3
+ import { addClassNamesToElement, removeClassNamesFromElement } from "@lexical/utils";
4
+ import { InlineImageComponent } from "./InlineImageComponent";
10
5
  function $convertInlineImageElement(domNode) {
11
- if ((0, lexical_1.isHTMLElement)(domNode) && domNode.nodeName === "IMG") {
6
+ if (isHTMLElement(domNode) && domNode.nodeName === "IMG") {
12
7
  const { alt: altText, src, width, height } = domNode;
13
8
  const node = $createInlineImageNode({ altText, height, src, width });
14
9
  return { node };
@@ -18,7 +13,7 @@ function $convertInlineImageElement(domNode) {
18
13
  function getPositionClass(position) {
19
14
  return typeof position === "string" ? `position-${position}` : undefined;
20
15
  }
21
- class InlineImageNode extends lexical_1.DecoratorNode {
16
+ export class InlineImageNode extends DecoratorNode {
22
17
  __src;
23
18
  __altText;
24
19
  __width;
@@ -33,7 +28,7 @@ class InlineImageNode extends lexical_1.DecoratorNode {
33
28
  this.__width = width || "inherit";
34
29
  this.__height = height || "inherit";
35
30
  this.__showCaption = showCaption || false;
36
- this.__caption = caption || (0, lexical_1.createEditor)();
31
+ this.__caption = caption || createEditor();
37
32
  this.__position = position;
38
33
  }
39
34
  static getType() {
@@ -138,7 +133,7 @@ class InlineImageNode extends lexical_1.DecoratorNode {
138
133
  const span = document.createElement("span");
139
134
  for (const cls of [config.theme.inlineImage, getPositionClass(this.__position)]) {
140
135
  if (cls) {
141
- (0, utils_1.addClassNamesToElement)(span, cls);
136
+ addClassNamesToElement(span, cls);
142
137
  }
143
138
  }
144
139
  return span;
@@ -146,20 +141,19 @@ class InlineImageNode extends lexical_1.DecoratorNode {
146
141
  updateDOM(prevNode, dom, _config) {
147
142
  const position = this.__position;
148
143
  if (position !== prevNode.__position) {
149
- (0, utils_1.removeClassNamesFromElement)(dom, getPositionClass(prevNode.__position));
150
- (0, utils_1.addClassNamesToElement)(dom, getPositionClass(position));
144
+ removeClassNamesFromElement(dom, getPositionClass(prevNode.__position));
145
+ addClassNamesToElement(dom, getPositionClass(position));
151
146
  }
152
147
  return false;
153
148
  }
154
149
  decorate() {
155
- return ((0, jsx_runtime_1.jsx)(InlineImageComponent_1.InlineImageComponent, { src: this.__src, altText: this.__altText, width: this.__width, height: this.__height, nodeKey: this.getKey(), showCaption: this.__showCaption, caption: this.__caption, position: this.__position }));
150
+ return (_jsx(InlineImageComponent, { src: this.__src, altText: this.__altText, width: this.__width, height: this.__height, nodeKey: this.getKey(), showCaption: this.__showCaption, caption: this.__caption, position: this.__position }));
156
151
  }
157
152
  }
158
- exports.InlineImageNode = InlineImageNode;
159
- function $createInlineImageNode({ altText, position, height, src, width, showCaption, caption, key, }) {
160
- return (0, lexical_1.$applyNodeReplacement)(new InlineImageNode(src, altText, position, width, height, showCaption, caption, key));
153
+ export function $createInlineImageNode({ altText, position, height, src, width, showCaption, caption, key, }) {
154
+ return $applyNodeReplacement(new InlineImageNode(src, altText, position, width, height, showCaption, caption, key));
161
155
  }
162
- function $isInlineImageNode(node) {
156
+ export function $isInlineImageNode(node) {
163
157
  return node instanceof InlineImageNode;
164
158
  }
165
159
  //# sourceMappingURL=InlineImageNode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineImageNode.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/InlineImageNode.tsx"],"names":[],"mappings":";;;AA4PA,wDAWC;AAED,gDAEC;;AA9PD,qCAA4F;AAE5F,0CAAqF;AAErF,iEAA8D;AAqB9D,SAAS,0BAA0B,CAAC,OAAa;IAC/C,IAAI,IAAA,uBAAa,EAAC,OAAO,CAAC,IAAI,OAAO,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;QACzD,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAA2B,CAAC;QACzE,MAAM,IAAI,GAAG,sBAAsB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;QACrE,OAAO,EAAE,IAAI,EAAE,CAAC;IAClB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAeD,SAAS,gBAAgB,CAAC,QAA8B;IACtD,OAAO,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,YAAY,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC;AAED,MAAa,eAAgB,SAAQ,uBAA0B;IAC7D,KAAK,CAAS;IACd,SAAS,CAAS;IAClB,OAAO,CAAqB;IAC5B,QAAQ,CAAqB;IAC7B,aAAa,CAAU;IACvB,SAAS,CAAgB;IACzB,UAAU,CAAW;IAErB,YACE,GAAW,EACX,OAAe,EACf,QAAkB,EAClB,KAA0B,EAC1B,MAA2B,EAC3B,WAAqB,EACrB,OAAuB,EACvB,GAAa;QAEb,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,SAA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IAED,QAAQ;QACN,OAAO,CACL,KAAC,oBAAoB,IACnB,GAAG,EAAE,IAAI,CAAC,KAAK,EACf,OAAO,EAAE,IAAI,CAAC,SAAS,EACvB,KAAK,EAAE,IAAI,CAAC,OAAO,EACnB,MAAM,EAAE,IAAI,CAAC,QAAQ,EACrB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,EACtB,WAAW,EAAE,IAAI,CAAC,aAAa,EAC/B,OAAO,EAAE,IAAI,CAAC,SAAS,EACvB,QAAQ,EAAE,IAAI,CAAC,UAAU,GACzB,CACH,CAAC;IACJ,CAAC;CACF;AAED,MAAM,UAAU,sBAAsB,CAAC,EACrC,OAAO,EACP,QAAQ,EACR,MAAM,EACN,GAAG,EACH,KAAK,EACL,WAAW,EACX,OAAO,EACP,GAAG,GACiB;IACpB,OAAO,qBAAqB,CAAC,IAAI,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;AACtH,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAoC;IACrE,OAAO,IAAI,YAAY,eAAe,CAAC;AACzC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { UpdateInlineImageDialog } from "./InlineImageComponent";
2
2
  export { InlineImageNode } from "./InlineImageNode";
3
3
  export { inlineImageNodeStyles } from "./inlineImageNodeStyles";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1,10 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.inlineImageNodeStyles = exports.InlineImageNode = exports.UpdateInlineImageDialog = void 0;
4
- var InlineImageComponent_1 = require("./InlineImageComponent");
5
- Object.defineProperty(exports, "UpdateInlineImageDialog", { enumerable: true, get: function () { return InlineImageComponent_1.UpdateInlineImageDialog; } });
6
- var InlineImageNode_1 = require("./InlineImageNode");
7
- Object.defineProperty(exports, "InlineImageNode", { enumerable: true, get: function () { return InlineImageNode_1.InlineImageNode; } });
8
- var inlineImageNodeStyles_1 = require("./inlineImageNodeStyles");
9
- Object.defineProperty(exports, "inlineImageNodeStyles", { enumerable: true, get: function () { return inlineImageNodeStyles_1.inlineImageNodeStyles; } });
1
+ export { UpdateInlineImageDialog } from "./InlineImageComponent";
2
+ export { InlineImageNode } from "./InlineImageNode";
3
+ export { inlineImageNodeStyles } from "./inlineImageNodeStyles";
10
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/index.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAAxD,+HAAA,uBAAuB,OAAA;AAChC,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const inlineImageNodeStyles: import("@emotion/utils").SerializedStyles;
2
+ //# sourceMappingURL=inlineImageNodeStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inlineImageNodeStyles.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/inlineImageNodeStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,2CAoFjC,CAAC"}
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.inlineImageNodeStyles = void 0;
4
- const material_1 = require("@mui/material");
5
- exports.inlineImageNodeStyles = (0, material_1.css) `
1
+ import { css } from "@mui/material";
2
+ export const inlineImageNodeStyles = css `
6
3
  .InlineImageNode__contentEditable {
7
4
  min-height: 20px;
8
5
  border: 0;
@@ -1 +1 @@
1
- {"version":3,"file":"inlineImageNodeStyles.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/inlineImageNodeStyles.ts"],"names":[],"mappings":";;;AAAA,4CAAoC;AAEvB,QAAA,qBAAqB,GAAG,IAAA,cAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFvC,CAAC"}
1
+ {"version":3,"file":"inlineImageNodeStyles.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/inlineImageNodeStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEpC,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFvC,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import type { Klass, LexicalNode } from "lexical";
2
2
  export declare const MuiLexicalNodes: Array<Klass<LexicalNode>>;
3
+ //# sourceMappingURL=MuiLexicalNodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MuiLexicalNodes.d.ts","sourceRoot":"","sources":["../../../src/editor/nodes/MuiLexicalNodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAalD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAiBrD,CAAC"}
@@ -1,32 +1,29 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MuiLexicalNodes = void 0;
4
- const code_1 = require("@lexical/code");
5
- const link_1 = require("@lexical/link");
6
- const list_1 = require("@lexical/list");
7
- const overflow_1 = require("@lexical/overflow");
8
- const LexicalHorizontalRuleNode_1 = require("@lexical/react/LexicalHorizontalRuleNode");
9
- const rich_text_1 = require("@lexical/rich-text");
10
- const table_1 = require("@lexical/table");
11
- const Image_1 = require("./Image");
12
- const InlineImage_1 = require("./InlineImage");
13
- const Video_1 = require("./Video");
14
- exports.MuiLexicalNodes = [
15
- rich_text_1.HeadingNode,
16
- list_1.ListNode,
17
- list_1.ListItemNode,
18
- rich_text_1.QuoteNode,
19
- code_1.CodeNode,
20
- table_1.TableNode,
21
- table_1.TableCellNode,
22
- table_1.TableRowNode,
23
- code_1.CodeHighlightNode,
24
- link_1.AutoLinkNode,
25
- link_1.LinkNode,
26
- overflow_1.OverflowNode,
27
- Image_1.ImageNode,
28
- InlineImage_1.InlineImageNode,
29
- LexicalHorizontalRuleNode_1.HorizontalRuleNode,
30
- Video_1.VideoNode,
1
+ import { CodeHighlightNode, CodeNode } from "@lexical/code";
2
+ import { AutoLinkNode, LinkNode } from "@lexical/link";
3
+ import { ListItemNode, ListNode } from "@lexical/list";
4
+ import { OverflowNode } from "@lexical/overflow";
5
+ import { HorizontalRuleNode } from "@lexical/react/LexicalHorizontalRuleNode";
6
+ import { HeadingNode, QuoteNode } from "@lexical/rich-text";
7
+ import { TableCellNode, TableNode, TableRowNode } from "@lexical/table";
8
+ import { ImageNode } from "./Image";
9
+ import { InlineImageNode } from "./InlineImage";
10
+ import { VideoNode } from "./Video";
11
+ export const MuiLexicalNodes = [
12
+ HeadingNode,
13
+ ListNode,
14
+ ListItemNode,
15
+ QuoteNode,
16
+ CodeNode,
17
+ TableNode,
18
+ TableCellNode,
19
+ TableRowNode,
20
+ CodeHighlightNode,
21
+ AutoLinkNode,
22
+ LinkNode,
23
+ OverflowNode,
24
+ ImageNode,
25
+ InlineImageNode,
26
+ HorizontalRuleNode,
27
+ VideoNode,
31
28
  ];
32
29
  //# sourceMappingURL=MuiLexicalNodes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MuiLexicalNodes.js","sourceRoot":"","sources":["../../../src/editor/nodes/MuiLexicalNodes.ts"],"names":[],"mappings":";;;AACA,wCAA4D;AAC5D,wCAAuD;AACvD,wCAAuD;AACvD,gDAAiD;AACjD,wFAA8E;AAC9E,kDAA4D;AAC5D,0CAAwE;AAExE,mCAAoC;AACpC,+CAAgD;AAChD,mCAAoC;AAEvB,QAAA,eAAe,GAA8B;IACxD,uBAAW;IACX,eAAQ;IACR,mBAAY;IACZ,qBAAS;IACT,eAAQ;IACR,iBAAS;IACT,qBAAa;IACb,oBAAY;IACZ,wBAAiB;IACjB,mBAAY;IACZ,eAAQ;IACR,uBAAY;IACZ,iBAAS;IACT,6BAAe;IACf,8CAAkB;IAClB,iBAAS;CACV,CAAC"}
1
+ {"version":3,"file":"MuiLexicalNodes.js","sourceRoot":"","sources":["../../../src/editor/nodes/MuiLexicalNodes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,MAAM,CAAC,MAAM,eAAe,GAA8B;IACxD,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,QAAQ;IACR,SAAS;IACT,aAAa;IACb,YAAY;IACZ,iBAAiB;IACjB,YAAY;IACZ,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,eAAe;IACf,kBAAkB;IAClB,SAAS;CACV,CAAC"}
@@ -6,4 +6,5 @@ export interface IVideoNodeProps {
6
6
  startAt?: number | null;
7
7
  originalUrl: string;
8
8
  }
9
- export declare const VideoComponent: (props: IVideoNodeProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const VideoComponent: (props: IVideoNodeProps) => import("react").JSX.Element;
10
+ //# sourceMappingURL=VideoComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoComponent.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/Video/VideoComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,aAAa,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,gCAuBpD,CAAC"}
@@ -1,15 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VideoComponent = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const VideoComponent = (props) => {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const VideoComponent = (props) => {
6
3
  const { provider } = props;
7
4
  const title = provider === "youtube"
8
5
  ? "YouTube video"
9
6
  : provider === "vimeo"
10
7
  ? "Vimeo video"
11
8
  : "Video";
12
- return ((0, jsx_runtime_1.jsx)("div", { className: "lexical-video", contentEditable: false, draggable: false, children: (0, jsx_runtime_1.jsx)("div", { className: "lexical-video__inner", children: (0, jsx_runtime_1.jsx)("iframe", { className: "lexical-video__iframe", src: props.embedUrl, title: title, loading: "lazy", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", allowFullScreen: true }) }) }));
9
+ return (_jsx("div", { className: "lexical-video", contentEditable: false, draggable: false, children: _jsx("div", { className: "lexical-video__inner", children: _jsx("iframe", { className: "lexical-video__iframe", src: props.embedUrl, title: title, loading: "lazy", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", allowFullScreen: true }) }) }));
13
10
  };
14
- exports.VideoComponent = VideoComponent;
15
11
  //# sourceMappingURL=VideoComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VideoComponent.js","sourceRoot":"","sources":["../../../../src/editor/nodes/Video/VideoComponent.tsx"],"names":[],"mappings":";;;;AAUO,MAAM,cAAc,GAAG,CAAC,KAAsB,EAAE,EAAE;IACvD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,KAAK,GACT,QAAQ,KAAK,SAAS;QACpB,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,QAAQ,KAAK,OAAO;YACpB,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,OAAO,CAAC;IAEhB,OAAO,CACL,gCAAK,SAAS,EAAC,eAAe,EAAC,eAAe,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,YACrE,gCAAK,SAAS,EAAC,sBAAsB,YACnC,mCACE,SAAS,EAAC,uBAAuB,EACjC,GAAG,EAAE,KAAK,CAAC,QAAQ,EACnB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAC,MAAM,EACd,KAAK,EAAC,qGAAqG,EAC3G,eAAe,SACf,GACE,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAvBW,QAAA,cAAc,kBAuBzB"}
1
+ {"version":3,"file":"VideoComponent.js","sourceRoot":"","sources":["../../../../src/editor/nodes/Video/VideoComponent.tsx"],"names":[],"mappings":";AAUA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAsB,EAAE,EAAE;IACvD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,KAAK,GACT,QAAQ,KAAK,SAAS;QACpB,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,QAAQ,KAAK,OAAO;YACpB,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,OAAO,CAAC;IAEhB,OAAO,CACL,cAAK,SAAS,EAAC,eAAe,EAAC,eAAe,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,YACrE,cAAK,SAAS,EAAC,sBAAsB,YACnC,iBACE,SAAS,EAAC,uBAAuB,EACjC,GAAG,EAAE,KAAK,CAAC,QAAQ,EACnB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAC,MAAM,EACd,KAAK,EAAC,qGAAqG,EAC3G,eAAe,SACf,GACE,GACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -32,3 +32,4 @@ export declare class VideoNode extends DecoratorNode<React.JSX.Element> {
32
32
  }
33
33
  export declare function $createVideoNode(parsed: ParsedVideo): VideoNode;
34
34
  export declare function $isVideoNode(node: unknown): node is VideoNode;
35
+ //# sourceMappingURL=VideoNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoNode.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/Video/VideoNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EAEhB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,MAAM,EACZ,MA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