@payloadcms/richtext-lexical 4.0.0-internal.38b7f1d → 4.0.0-internal.3b50481

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 (1046) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/cell/rscEntry.d.ts +1 -1
  3. package/dist/cell/rscEntry.d.ts.map +1 -1
  4. package/dist/cell/rscEntry.js +5 -5
  5. package/dist/cell/rscEntry.js.map +1 -1
  6. package/dist/exports/client/Field-MT4FK3IP.js +2 -0
  7. package/dist/exports/client/Field-MT4FK3IP.js.map +7 -0
  8. package/dist/exports/client/{RelationshipComponent-5RONAYJM.js → RelationshipComponent-YCPAKOL7.js} +2 -2
  9. package/dist/exports/client/RelationshipComponent-YCPAKOL7.js.map +7 -0
  10. package/dist/exports/client/chunk-3LRZDIIG.js +2 -0
  11. package/dist/exports/client/chunk-3LRZDIIG.js.map +7 -0
  12. package/dist/exports/client/chunk-5VIL27GI.js +2 -0
  13. package/dist/exports/client/chunk-5VIL27GI.js.map +7 -0
  14. package/dist/exports/client/chunk-E6LSRRP2.js +2 -0
  15. package/dist/exports/client/chunk-E6LSRRP2.js.map +7 -0
  16. package/dist/exports/client/{chunk-BZZVLW4U.js → chunk-RJ5MAOKZ.js} +1 -1
  17. package/dist/exports/client/chunk-RJ5MAOKZ.js.map +7 -0
  18. package/dist/exports/client/chunk-ZQX5HXUL.js +2 -0
  19. package/dist/exports/client/chunk-ZQX5HXUL.js.map +7 -0
  20. package/dist/exports/client/component-6DQLENIE.js +2 -0
  21. package/dist/exports/client/component-6DQLENIE.js.map +7 -0
  22. package/dist/exports/client/componentInline-HNE5G4TE.js +2 -0
  23. package/dist/exports/client/index.d.ts +1 -2
  24. package/dist/exports/client/index.d.ts.map +1 -1
  25. package/dist/exports/client/index.js +28 -29
  26. package/dist/exports/client/index.js.map +4 -4
  27. package/dist/exports/react/index.d.ts +1 -1
  28. package/dist/exports/react/index.d.ts.map +1 -1
  29. package/dist/exports/react/index.js.map +1 -1
  30. package/dist/features/blockquote/client/index.js +2 -2
  31. package/dist/features/blockquote/client/index.js.map +1 -1
  32. package/dist/features/blockquote/server/index.d.ts +1 -4
  33. package/dist/features/blockquote/server/index.d.ts.map +1 -1
  34. package/dist/features/blockquote/server/index.js +4 -2
  35. package/dist/features/blockquote/server/index.js.map +1 -1
  36. package/dist/features/blockquote/server/schema.d.ts +8 -0
  37. package/dist/features/blockquote/server/schema.d.ts.map +1 -0
  38. package/dist/features/blockquote/server/schema.js +15 -0
  39. package/dist/features/blockquote/server/schema.js.map +1 -0
  40. package/dist/features/blocks/client/component/BlockReordering/index.d.ts +11 -0
  41. package/dist/features/blocks/client/component/BlockReordering/index.d.ts.map +1 -0
  42. package/dist/features/blocks/client/component/BlockReordering/index.js +18 -0
  43. package/dist/features/blocks/client/component/BlockReordering/index.js.map +1 -0
  44. package/dist/features/blocks/client/component/index.css +2 -2
  45. package/dist/features/blocks/client/component/index.d.ts +3 -8
  46. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  47. package/dist/features/blocks/client/component/index.js +183 -107
  48. package/dist/features/blocks/client/component/index.js.map +1 -1
  49. package/dist/features/blocks/client/component/useBlockReordering.d.ts +16 -0
  50. package/dist/features/blocks/client/component/useBlockReordering.d.ts.map +1 -0
  51. package/dist/features/blocks/client/component/useBlockReordering.js +178 -0
  52. package/dist/features/blocks/client/component/useBlockReordering.js.map +1 -0
  53. package/dist/features/blocks/client/componentInline/index.css +8 -9
  54. package/dist/features/blocks/client/componentInline/index.d.ts +3 -2
  55. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  56. package/dist/features/blocks/client/componentInline/index.js +47 -31
  57. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  58. package/dist/features/blocks/client/getBlockImageComponent.d.ts +1 -1
  59. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.d.ts +9 -0
  60. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.d.ts.map +1 -0
  61. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.js +95 -0
  62. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.js.map +1 -0
  63. package/dist/features/blocks/client/index.d.ts.map +1 -1
  64. package/dist/features/blocks/client/index.js +4 -2
  65. package/dist/features/blocks/client/index.js.map +1 -1
  66. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts +1 -1
  67. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts.map +1 -1
  68. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js +1 -1
  69. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js.map +1 -1
  70. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts +1 -1
  71. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts.map +1 -1
  72. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js +5 -2
  73. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js.map +1 -1
  74. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts +1 -2
  75. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -1
  76. package/dist/features/blocks/client/markdown/markdownTransformer.js +4 -4
  77. package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -1
  78. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +2 -2
  79. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
  80. package/dist/features/blocks/client/nodes/BlocksNode.js +0 -10
  81. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  82. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +2 -2
  83. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -1
  84. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
  85. package/dist/features/blocks/client/plugin/index.d.ts +1 -1
  86. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -1
  87. package/dist/features/blocks/client/plugin/index.js.map +1 -1
  88. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -1
  89. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +1 -0
  90. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  91. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.css +1 -1
  92. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.css +2 -4
  93. package/dist/features/blocks/premade/CodeBlock/Component/index.css +5 -5
  94. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +1 -2
  95. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -1
  96. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -1
  97. package/dist/features/blocks/server/index.d.ts +1 -0
  98. package/dist/features/blocks/server/index.d.ts.map +1 -1
  99. package/dist/features/blocks/server/index.js +26 -74
  100. package/dist/features/blocks/server/index.js.map +1 -1
  101. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts +1 -1
  102. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -1
  103. package/dist/features/blocks/server/markdown/markdownTransformer.js +4 -4
  104. package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -1
  105. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +1 -18
  106. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -1
  107. package/dist/features/blocks/server/nodes/BlocksNode.js +1 -12
  108. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
  109. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +2 -10
  110. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -1
  111. package/dist/features/blocks/server/nodes/InlineBlocksNode.js +2 -2
  112. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
  113. package/dist/features/blocks/server/schema.d.ts +47 -0
  114. package/dist/features/blocks/server/schema.d.ts.map +1 -0
  115. package/dist/features/blocks/server/schema.js +138 -0
  116. package/dist/features/blocks/server/schema.js.map +1 -0
  117. package/dist/features/blocks/server/validate.d.ts +1 -2
  118. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  119. package/dist/features/blocks/server/validate.js +1 -1
  120. package/dist/features/blocks/server/validate.js.map +1 -1
  121. package/dist/features/converters/htmlToLexical/index.d.ts +1 -1
  122. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -1
  123. package/dist/features/converters/htmlToLexical/index.js.map +1 -1
  124. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts +1 -1
  125. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts.map +1 -1
  126. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js.map +1 -1
  127. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts +1 -1
  128. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts.map +1 -1
  129. package/dist/features/converters/lexicalToHtml/async/converters/heading.js +1 -1
  130. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -1
  131. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts +1 -1
  132. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts.map +1 -1
  133. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js.map +1 -1
  134. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts +1 -1
  135. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts.map +1 -1
  136. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js.map +1 -1
  137. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts +1 -1
  138. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts.map +1 -1
  139. package/dist/features/converters/lexicalToHtml/async/converters/link.js.map +1 -1
  140. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts +1 -1
  141. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -1
  142. package/dist/features/converters/lexicalToHtml/async/converters/list.js +4 -3
  143. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -1
  144. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts +1 -1
  145. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts.map +1 -1
  146. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js.map +1 -1
  147. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts +1 -1
  148. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts.map +1 -1
  149. package/dist/features/converters/lexicalToHtml/async/converters/tab.js.map +1 -1
  150. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts +1 -1
  151. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts.map +1 -1
  152. package/dist/features/converters/lexicalToHtml/async/converters/table.js +1 -1
  153. package/dist/features/converters/lexicalToHtml/async/converters/table.js.map +1 -1
  154. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts +1 -1
  155. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts.map +1 -1
  156. package/dist/features/converters/lexicalToHtml/async/converters/text.js.map +1 -1
  157. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts +1 -1
  158. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts.map +1 -1
  159. package/dist/features/converters/lexicalToHtml/async/converters/upload.js +3 -3
  160. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  161. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts +1 -1
  162. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts.map +1 -1
  163. package/dist/features/converters/lexicalToHtml/async/defaultConverters.js.map +1 -1
  164. package/dist/features/converters/lexicalToHtml/async/types.d.ts +15 -16
  165. package/dist/features/converters/lexicalToHtml/async/types.d.ts.map +1 -1
  166. package/dist/features/converters/lexicalToHtml/async/types.js.map +1 -1
  167. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.d.ts.map +1 -1
  168. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js +3 -2
  169. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -1
  170. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts +1 -1
  171. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts.map +1 -1
  172. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js.map +1 -1
  173. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts +1 -1
  174. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts.map +1 -1
  175. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js +1 -1
  176. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -1
  177. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts +1 -1
  178. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts.map +1 -1
  179. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js.map +1 -1
  180. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts +1 -1
  181. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts.map +1 -1
  182. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js.map +1 -1
  183. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts +1 -1
  184. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts.map +1 -1
  185. package/dist/features/converters/lexicalToHtml/sync/converters/link.js.map +1 -1
  186. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts +1 -1
  187. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -1
  188. package/dist/features/converters/lexicalToHtml/sync/converters/list.js +4 -3
  189. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -1
  190. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts +1 -1
  191. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts.map +1 -1
  192. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js.map +1 -1
  193. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts +1 -1
  194. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts.map +1 -1
  195. package/dist/features/converters/lexicalToHtml/sync/converters/tab.js.map +1 -1
  196. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts +1 -1
  197. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts.map +1 -1
  198. package/dist/features/converters/lexicalToHtml/sync/converters/table.js +1 -1
  199. package/dist/features/converters/lexicalToHtml/sync/converters/table.js.map +1 -1
  200. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts +1 -1
  201. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts.map +1 -1
  202. package/dist/features/converters/lexicalToHtml/sync/converters/text.js.map +1 -1
  203. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts +1 -1
  204. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts.map +1 -1
  205. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js +3 -3
  206. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  207. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts +1 -1
  208. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts.map +1 -1
  209. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js.map +1 -1
  210. package/dist/features/converters/lexicalToHtml/sync/types.d.ts +15 -16
  211. package/dist/features/converters/lexicalToHtml/sync/types.d.ts.map +1 -1
  212. package/dist/features/converters/lexicalToHtml/sync/types.js.map +1 -1
  213. package/dist/features/converters/lexicalToJSX/Component/index.d.ts +6 -4
  214. package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -1
  215. package/dist/features/converters/lexicalToJSX/Component/index.js +5 -4
  216. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
  217. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts +1 -1
  218. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts.map +1 -1
  219. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
  220. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts +1 -1
  221. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -1
  222. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js +2 -1
  223. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  224. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts +1 -1
  225. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts.map +1 -1
  226. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
  227. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts +1 -1
  228. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts.map +1 -1
  229. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
  230. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts +1 -1
  231. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts.map +1 -1
  232. package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
  233. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts +1 -1
  234. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -1
  235. package/dist/features/converters/lexicalToJSX/converter/converters/list.js +2 -1
  236. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  237. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts +1 -1
  238. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts.map +1 -1
  239. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
  240. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts +1 -1
  241. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts.map +1 -1
  242. package/dist/features/converters/lexicalToJSX/converter/converters/tab.js.map +1 -1
  243. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts +1 -1
  244. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts.map +1 -1
  245. package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
  246. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts +1 -1
  247. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts.map +1 -1
  248. package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
  249. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts +1 -1
  250. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -1
  251. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js +4 -5
  252. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  253. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts +1 -1
  254. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts.map +1 -1
  255. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js.map +1 -1
  256. package/dist/features/converters/lexicalToJSX/converter/index.d.ts +1 -1
  257. package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -1
  258. package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
  259. package/dist/features/converters/lexicalToJSX/converter/types.d.ts +13 -15
  260. package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -1
  261. package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -1
  262. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -1
  263. package/dist/features/converters/lexicalToMarkdown/index.js +1 -1
  264. package/dist/features/converters/lexicalToMarkdown/index.js.map +1 -1
  265. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js.map +1 -1
  266. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts +13 -15
  267. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts.map +1 -1
  268. package/dist/features/converters/lexicalToPlaintext/sync/types.js.map +1 -1
  269. package/dist/features/converters/markdownToLexical/index.d.ts +1 -1
  270. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -1
  271. package/dist/features/converters/markdownToLexical/index.js +5 -2
  272. package/dist/features/converters/markdownToLexical/index.js.map +1 -1
  273. package/dist/features/converters/utilities/payloadPopulateFn.d.ts.map +1 -1
  274. package/dist/features/converters/utilities/payloadPopulateFn.js +4 -2
  275. package/dist/features/converters/utilities/payloadPopulateFn.js.map +1 -1
  276. package/dist/features/debug/jsxConverter/client/plugin/style.css +2 -2
  277. package/dist/features/debug/testRecorder/client/plugin/index.css +0 -1
  278. package/dist/features/format/bold/feature.client.js +1 -1
  279. package/dist/features/format/bold/feature.client.js.map +1 -1
  280. package/dist/features/format/bold/feature.server.d.ts.map +1 -1
  281. package/dist/features/format/bold/feature.server.js +1 -1
  282. package/dist/features/format/bold/feature.server.js.map +1 -1
  283. package/dist/features/format/inlineCode/feature.client.js +1 -1
  284. package/dist/features/format/inlineCode/feature.client.js.map +1 -1
  285. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -1
  286. package/dist/features/format/inlineCode/feature.server.js +1 -1
  287. package/dist/features/format/inlineCode/feature.server.js.map +1 -1
  288. package/dist/features/format/italic/feature.client.js +1 -1
  289. package/dist/features/format/italic/feature.client.js.map +1 -1
  290. package/dist/features/format/italic/feature.server.d.ts.map +1 -1
  291. package/dist/features/format/italic/feature.server.js +1 -1
  292. package/dist/features/format/italic/feature.server.js.map +1 -1
  293. package/dist/features/format/strikethrough/feature.client.js +1 -1
  294. package/dist/features/format/strikethrough/feature.client.js.map +1 -1
  295. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -1
  296. package/dist/features/format/strikethrough/feature.server.js +1 -1
  297. package/dist/features/format/strikethrough/feature.server.js.map +1 -1
  298. package/dist/features/heading/client/index.js +2 -2
  299. package/dist/features/heading/client/index.js.map +1 -1
  300. package/dist/features/heading/constants.d.ts +2 -0
  301. package/dist/features/heading/constants.d.ts.map +1 -0
  302. package/dist/features/heading/constants.js +2 -0
  303. package/dist/features/heading/constants.js.map +1 -0
  304. package/dist/features/heading/markdownTransformer.d.ts +2 -2
  305. package/dist/features/heading/markdownTransformer.d.ts.map +1 -1
  306. package/dist/features/heading/markdownTransformer.js +6 -19
  307. package/dist/features/heading/markdownTransformer.js.map +1 -1
  308. package/dist/features/heading/server/index.d.ts +2 -4
  309. package/dist/features/heading/server/index.d.ts.map +1 -1
  310. package/dist/features/heading/server/index.js +9 -3
  311. package/dist/features/heading/server/index.js.map +1 -1
  312. package/dist/features/heading/server/schema.d.ts +10 -0
  313. package/dist/features/heading/server/schema.d.ts.map +1 -0
  314. package/dist/features/heading/server/schema.js +37 -0
  315. package/dist/features/heading/server/schema.js.map +1 -0
  316. package/dist/features/heading/server/validate.d.ts +6 -0
  317. package/dist/features/heading/server/validate.d.ts.map +1 -0
  318. package/dist/features/heading/server/validate.js +15 -0
  319. package/dist/features/heading/server/validate.js.map +1 -0
  320. package/dist/features/horizontalRule/client/index.js +2 -2
  321. package/dist/features/horizontalRule/client/index.js.map +1 -1
  322. package/dist/features/horizontalRule/client/markdownTransformer.d.ts +2 -2
  323. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -1
  324. package/dist/features/horizontalRule/client/markdownTransformer.js +1 -1
  325. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -1
  326. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +13 -3
  327. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
  328. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +18 -1
  329. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  330. package/dist/features/horizontalRule/client/plugin/index.css +2 -2
  331. package/dist/features/horizontalRule/server/index.d.ts +1 -0
  332. package/dist/features/horizontalRule/server/index.d.ts.map +1 -1
  333. package/dist/features/horizontalRule/server/index.js +4 -2
  334. package/dist/features/horizontalRule/server/index.js.map +1 -1
  335. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +2 -2
  336. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -1
  337. package/dist/features/horizontalRule/server/markdownTransformer.js +1 -1
  338. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -1
  339. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +2 -6
  340. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -1
  341. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +3 -3
  342. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
  343. package/dist/features/horizontalRule/server/schema.d.ts +8 -0
  344. package/dist/features/horizontalRule/server/schema.d.ts.map +1 -0
  345. package/dist/features/horizontalRule/server/schema.js +26 -0
  346. package/dist/features/horizontalRule/server/schema.js.map +1 -0
  347. package/dist/features/indent/client/IndentPlugin.d.ts.map +1 -1
  348. package/dist/features/indent/client/IndentPlugin.js +122 -1
  349. package/dist/features/indent/client/IndentPlugin.js.map +1 -1
  350. package/dist/features/indent/server/i18n.d.ts.map +1 -1
  351. package/dist/features/indent/server/i18n.js +74 -37
  352. package/dist/features/indent/server/i18n.js.map +1 -1
  353. package/dist/features/link/client/index.d.ts.map +1 -1
  354. package/dist/features/link/client/index.js +2 -2
  355. package/dist/features/link/client/index.js.map +1 -1
  356. package/dist/features/link/client/plugins/autoLink/index.d.ts +1 -1
  357. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  358. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
  359. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  360. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +11 -8
  361. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  362. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +7 -13
  363. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +1 -1
  364. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -1
  365. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -1
  366. package/dist/features/link/client/plugins/link/index.js.map +1 -1
  367. package/dist/features/link/markdownTransformer.d.ts +5 -5
  368. package/dist/features/link/markdownTransformer.d.ts.map +1 -1
  369. package/dist/features/link/markdownTransformer.js +2 -2
  370. package/dist/features/link/markdownTransformer.js.map +1 -1
  371. package/dist/features/link/nodes/AutoLinkNode.d.ts +4 -4
  372. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  373. package/dist/features/link/nodes/AutoLinkNode.js +4 -11
  374. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  375. package/dist/features/link/nodes/LinkNode.d.ts +4 -4
  376. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  377. package/dist/features/link/nodes/LinkNode.js +4 -16
  378. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  379. package/dist/features/link/server/baseFields.js.map +1 -1
  380. package/dist/features/link/server/graphQLPopulationPromise.d.ts +1 -1
  381. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -1
  382. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -1
  383. package/dist/features/link/server/index.d.ts +2 -1
  384. package/dist/features/link/server/index.d.ts.map +1 -1
  385. package/dist/features/link/server/index.js +7 -4
  386. package/dist/features/link/server/index.js.map +1 -1
  387. package/dist/features/link/server/schema.d.ts +32 -0
  388. package/dist/features/link/server/schema.d.ts.map +1 -0
  389. package/dist/features/link/server/schema.js +171 -0
  390. package/dist/features/link/server/schema.js.map +1 -0
  391. package/dist/features/link/server/validate.d.ts +1 -1
  392. package/dist/features/link/server/validate.d.ts.map +1 -1
  393. package/dist/features/link/server/validate.js +1 -1
  394. package/dist/features/link/server/validate.js.map +1 -1
  395. package/dist/features/lists/checklist/client/index.js +1 -1
  396. package/dist/features/lists/checklist/client/index.js.map +1 -1
  397. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  398. package/dist/features/lists/checklist/server/index.js +9 -3
  399. package/dist/features/lists/checklist/server/index.js.map +1 -1
  400. package/dist/features/lists/orderedList/client/index.js +1 -1
  401. package/dist/features/lists/orderedList/client/index.js.map +1 -1
  402. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  403. package/dist/features/lists/orderedList/server/index.js +9 -3
  404. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  405. package/dist/features/lists/plugin/index.d.ts +0 -9
  406. package/dist/features/lists/plugin/index.d.ts.map +1 -1
  407. package/dist/features/lists/plugin/index.js.map +1 -1
  408. package/dist/features/lists/shared/constants.d.ts +2 -0
  409. package/dist/features/lists/shared/constants.d.ts.map +1 -0
  410. package/dist/features/lists/shared/constants.js +2 -0
  411. package/dist/features/lists/shared/constants.js.map +1 -0
  412. package/dist/features/lists/shared/schema.d.ts +18 -0
  413. package/dist/features/lists/shared/schema.d.ts.map +1 -0
  414. package/dist/features/lists/shared/schema.js +62 -0
  415. package/dist/features/lists/shared/schema.js.map +1 -0
  416. package/dist/features/lists/shared/validate.d.ts +5 -0
  417. package/dist/features/lists/shared/validate.d.ts.map +1 -0
  418. package/dist/features/lists/shared/validate.js +15 -0
  419. package/dist/features/lists/shared/validate.js.map +1 -0
  420. package/dist/features/lists/unorderedList/client/index.js +1 -1
  421. package/dist/features/lists/unorderedList/client/index.js.map +1 -1
  422. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  423. package/dist/features/lists/unorderedList/server/index.js +9 -3
  424. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  425. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +1 -1
  426. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -1
  427. package/dist/features/relationship/client/components/RelationshipComponent.js +2 -2
  428. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  429. package/dist/features/relationship/client/components/index.css +4 -7
  430. package/dist/features/relationship/client/index.d.ts +2 -2
  431. package/dist/features/relationship/client/index.d.ts.map +1 -1
  432. package/dist/features/relationship/client/index.js.map +1 -1
  433. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +1 -1
  434. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
  435. package/dist/features/relationship/client/nodes/RelationshipNode.js +0 -3
  436. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  437. package/dist/features/relationship/client/plugins/index.d.ts +3 -3
  438. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  439. package/dist/features/relationship/client/plugins/index.js +27 -31
  440. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  441. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts +2 -4
  442. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  443. package/dist/features/relationship/client/utils/useEnabledRelationships.js +52 -50
  444. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  445. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +3 -3
  446. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  447. package/dist/features/relationship/server/graphQLPopulationPromise.js +2 -2
  448. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  449. package/dist/features/relationship/server/index.d.ts +9 -1
  450. package/dist/features/relationship/server/index.d.ts.map +1 -1
  451. package/dist/features/relationship/server/index.js +30 -11
  452. package/dist/features/relationship/server/index.js.map +1 -1
  453. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +1 -10
  454. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -1
  455. package/dist/features/relationship/server/nodes/RelationshipNode.js +1 -5
  456. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
  457. package/dist/features/relationship/server/schema.d.ts +29 -0
  458. package/dist/features/relationship/server/schema.d.ts.map +1 -0
  459. package/dist/features/relationship/server/schema.js +94 -0
  460. package/dist/features/relationship/server/schema.js.map +1 -0
  461. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +18 -0
  462. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -0
  463. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +30 -0
  464. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -0
  465. package/dist/features/table/client/index.d.ts.map +1 -0
  466. package/dist/features/{experimental_table → table}/client/index.js +2 -2
  467. package/dist/features/table/client/index.js.map +1 -0
  468. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.d.ts +8 -0
  469. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.d.ts.map +1 -0
  470. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.js +19 -0
  471. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.js.map +1 -0
  472. package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.css +4 -5
  473. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  474. package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.js +17 -44
  475. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
  476. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  477. package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.js +41 -18
  478. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
  479. package/dist/features/table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  480. package/dist/features/table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  481. package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.css +1 -4
  482. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +1 -0
  483. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.js.map +1 -0
  484. package/dist/features/table/client/plugins/TablePlugin/index.d.ts.map +1 -0
  485. package/dist/features/table/client/plugins/TablePlugin/index.js.map +1 -0
  486. package/dist/features/table/client/utils/debounce.d.ts.map +1 -0
  487. package/dist/features/table/client/utils/debounce.js.map +1 -0
  488. package/dist/features/table/client/utils/useDebounce.d.ts.map +1 -0
  489. package/dist/features/table/client/utils/useDebounce.js.map +1 -0
  490. package/dist/features/table/markdownTransformer.d.ts +5 -0
  491. package/dist/features/table/markdownTransformer.d.ts.map +1 -0
  492. package/dist/features/{experimental_table → table}/markdownTransformer.js +6 -3
  493. package/dist/features/table/markdownTransformer.js.map +1 -0
  494. package/dist/features/table/server/index.d.ts +3 -0
  495. package/dist/features/table/server/index.d.ts.map +1 -0
  496. package/dist/features/{experimental_table → table}/server/index.js +10 -6
  497. package/dist/features/table/server/index.js.map +1 -0
  498. package/dist/features/table/server/schema.d.ts +27 -0
  499. package/dist/features/table/server/schema.d.ts.map +1 -0
  500. package/dist/features/table/server/schema.js +107 -0
  501. package/dist/features/table/server/schema.js.map +1 -0
  502. package/dist/features/textState/feature.client.js +1 -1
  503. package/dist/features/textState/feature.client.js.map +1 -1
  504. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.d.ts +8 -0
  505. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.d.ts.map +1 -0
  506. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.js +80 -0
  507. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.js.map +1 -0
  508. package/dist/features/toolbars/fixed/client/Toolbar/index.css +80 -8
  509. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -1
  510. package/dist/features/toolbars/fixed/client/Toolbar/index.js +19 -1
  511. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  512. package/dist/features/toolbars/inline/client/Toolbar/index.css +2 -14
  513. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -1
  514. package/dist/features/toolbars/inline/client/Toolbar/index.js +17 -2
  515. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  516. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  517. package/dist/features/toolbars/shared/ToolbarButton/index.js +1 -0
  518. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  519. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  520. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +86 -34
  521. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  522. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +23 -25
  523. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  524. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.d.ts +5 -0
  525. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.d.ts.map +1 -0
  526. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.js +79 -0
  527. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.js.map +1 -0
  528. package/dist/features/toolbars/shared/useToolbarStates.d.ts.map +1 -1
  529. package/dist/features/toolbars/shared/useToolbarStates.js +3 -1
  530. package/dist/features/toolbars/shared/useToolbarStates.js.map +1 -1
  531. package/dist/features/toolbars/types.d.ts +1 -1
  532. package/dist/features/toolbars/types.d.ts.map +1 -1
  533. package/dist/features/toolbars/types.js.map +1 -1
  534. package/dist/features/typesClient.d.ts +2 -2
  535. package/dist/features/typesClient.d.ts.map +1 -1
  536. package/dist/features/typesClient.js.map +1 -1
  537. package/dist/features/typesServer.d.ts +35 -53
  538. package/dist/features/typesServer.d.ts.map +1 -1
  539. package/dist/features/typesServer.js.map +1 -1
  540. package/dist/features/upload/client/component/index.css +22 -28
  541. package/dist/features/upload/client/component/index.d.ts +1 -1
  542. package/dist/features/upload/client/component/index.d.ts.map +1 -1
  543. package/dist/features/upload/client/component/index.js +6 -5
  544. package/dist/features/upload/client/component/index.js.map +1 -1
  545. package/dist/features/upload/client/index.d.ts +3 -2
  546. package/dist/features/upload/client/index.d.ts.map +1 -1
  547. package/dist/features/upload/client/index.js.map +1 -1
  548. package/dist/features/upload/client/nodes/UploadNode.d.ts +1 -1
  549. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
  550. package/dist/features/upload/client/nodes/UploadNode.js +0 -7
  551. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  552. package/dist/features/upload/client/plugin/index.d.ts +1 -1
  553. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  554. package/dist/features/upload/client/plugin/index.js +53 -56
  555. package/dist/features/upload/client/plugin/index.js.map +1 -1
  556. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +3 -3
  557. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  558. package/dist/features/upload/server/graphQLPopulationPromise.js +1 -1
  559. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  560. package/dist/features/upload/server/index.d.ts +7 -2
  561. package/dist/features/upload/server/index.d.ts.map +1 -1
  562. package/dist/features/upload/server/index.js +25 -20
  563. package/dist/features/upload/server/index.js.map +1 -1
  564. package/dist/features/upload/server/markdownTransformer.d.ts +2 -2
  565. package/dist/features/upload/server/markdownTransformer.d.ts.map +1 -1
  566. package/dist/features/upload/server/markdownTransformer.js +1 -1
  567. package/dist/features/upload/server/markdownTransformer.js.map +1 -1
  568. package/dist/features/upload/server/nodes/UploadNode.d.ts +1 -55
  569. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  570. package/dist/features/upload/server/nodes/UploadNode.js +1 -9
  571. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  572. package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -1
  573. package/dist/features/upload/server/nodes/conversions.js.map +1 -1
  574. package/dist/features/upload/server/schema.d.ts +40 -0
  575. package/dist/features/upload/server/schema.d.ts.map +1 -0
  576. package/dist/features/upload/server/schema.js +147 -0
  577. package/dist/features/upload/server/schema.js.map +1 -0
  578. package/dist/features/upload/server/validate.d.ts +3 -3
  579. package/dist/features/upload/server/validate.d.ts.map +1 -1
  580. package/dist/features/upload/server/validate.js +4 -1
  581. package/dist/features/upload/server/validate.js.map +1 -1
  582. package/dist/field/Diff/converters/link.d.ts +1 -1
  583. package/dist/field/Diff/converters/link.d.ts.map +1 -1
  584. package/dist/field/Diff/converters/link.js.map +1 -1
  585. package/dist/field/Diff/converters/listitem/index.css +44 -8
  586. package/dist/field/Diff/converters/listitem/index.d.ts +1 -1
  587. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  588. package/dist/field/Diff/converters/listitem/index.js +2 -1
  589. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  590. package/dist/field/Diff/converters/relationship/index.css +75 -36
  591. package/dist/field/Diff/converters/relationship/index.d.ts +1 -1
  592. package/dist/field/Diff/converters/relationship/index.d.ts.map +1 -1
  593. package/dist/field/Diff/converters/relationship/index.js +10 -28
  594. package/dist/field/Diff/converters/relationship/index.js.map +1 -1
  595. package/dist/field/Diff/converters/unknown/index.css +1 -2
  596. package/dist/field/Diff/converters/unknown/index.js.map +1 -1
  597. package/dist/field/Diff/converters/upload/index.css +105 -43
  598. package/dist/field/Diff/converters/upload/index.d.ts +1 -1
  599. package/dist/field/Diff/converters/upload/index.d.ts.map +1 -1
  600. package/dist/field/Diff/converters/upload/index.js +6 -2
  601. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  602. package/dist/field/Diff/index.css +114 -61
  603. package/dist/field/Diff/index.d.ts +3 -2
  604. package/dist/field/Diff/index.d.ts.map +1 -1
  605. package/dist/field/Diff/index.js +3 -2
  606. package/dist/field/Diff/index.js.map +1 -1
  607. package/dist/field/Field.d.ts +1 -1
  608. package/dist/field/Field.d.ts.map +1 -1
  609. package/dist/field/Field.js +29 -20
  610. package/dist/field/Field.js.map +1 -1
  611. package/dist/field/RenderLexical/index.d.ts +5 -3
  612. package/dist/field/RenderLexical/index.d.ts.map +1 -1
  613. package/dist/field/RenderLexical/index.js +23 -23
  614. package/dist/field/RenderLexical/index.js.map +1 -1
  615. package/dist/field/RichTextViewProvider.d.ts +1 -1
  616. package/dist/field/RichTextViewProvider.d.ts.map +1 -1
  617. package/dist/field/RichTextViewProvider.js.map +1 -1
  618. package/dist/field/ViewSelector.css +1 -1
  619. package/dist/field/ViewSelector.d.ts.map +1 -1
  620. package/dist/field/ViewSelector.js +1 -0
  621. package/dist/field/ViewSelector.js.map +1 -1
  622. package/dist/field/bundled.css +1 -1
  623. package/dist/field/index.css +15 -16
  624. package/dist/field/index.d.ts +1 -1
  625. package/dist/field/index.d.ts.map +1 -1
  626. package/dist/field/index.js +1 -1
  627. package/dist/field/index.js.map +1 -1
  628. package/dist/field/rscEntry.d.ts +2 -2
  629. package/dist/field/rscEntry.d.ts.map +1 -1
  630. package/dist/field/rscEntry.js +2 -0
  631. package/dist/field/rscEntry.js.map +1 -1
  632. package/dist/hooks.d.ts +6 -0
  633. package/dist/hooks.d.ts.map +1 -0
  634. package/dist/hooks.js +548 -0
  635. package/dist/hooks.js.map +1 -0
  636. package/dist/i18n.d.ts.map +1 -1
  637. package/dist/i18n.js +68 -0
  638. package/dist/i18n.js.map +1 -1
  639. package/dist/index.d.ts +15 -12
  640. package/dist/index.d.ts.map +1 -1
  641. package/dist/index.js +37 -624
  642. package/dist/index.js.map +1 -1
  643. package/dist/lexical/LexicalEditor.css +30 -19
  644. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  645. package/dist/lexical/LexicalEditor.js +61 -64
  646. package/dist/lexical/LexicalEditor.js.map +1 -1
  647. package/dist/lexical/LexicalProvider.d.ts +1 -1
  648. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  649. package/dist/lexical/LexicalProvider.js.map +1 -1
  650. package/dist/lexical/config/client/EditorConfigProvider.d.ts +1 -1
  651. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  652. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  653. package/dist/lexical/config/client/loader.d.ts +1 -1
  654. package/dist/lexical/config/client/loader.d.ts.map +1 -1
  655. package/dist/lexical/config/client/loader.js +5 -1
  656. package/dist/lexical/config/client/loader.js.map +1 -1
  657. package/dist/lexical/config/client/sanitize.d.ts +1 -1
  658. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  659. package/dist/lexical/config/client/sanitize.js.map +1 -1
  660. package/dist/lexical/config/server/loader.d.ts +1 -1
  661. package/dist/lexical/config/server/loader.d.ts.map +1 -1
  662. package/dist/lexical/config/server/loader.js +2 -2
  663. package/dist/lexical/config/server/loader.js.map +1 -1
  664. package/dist/lexical/config/server/sanitize.d.ts +1 -1
  665. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  666. package/dist/lexical/config/server/sanitize.js +11 -13
  667. package/dist/lexical/config/server/sanitize.js.map +1 -1
  668. package/dist/lexical/config/types.d.ts +1 -1
  669. package/dist/lexical/config/types.d.ts.map +1 -1
  670. package/dist/lexical/config/types.js.map +1 -1
  671. package/dist/lexical/nodes/index.d.ts +1 -1
  672. package/dist/lexical/nodes/index.d.ts.map +1 -1
  673. package/dist/lexical/nodes/index.js.map +1 -1
  674. package/dist/lexical/plugins/DecoratorPlugin/index.css +1 -1
  675. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -1
  676. package/dist/lexical/plugins/DecoratorPlugin/index.js +24 -21
  677. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
  678. package/dist/lexical/plugins/InsertParagraphAtEnd/index.css +18 -25
  679. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -1
  680. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +27 -14
  681. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  682. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -1
  683. package/dist/lexical/plugins/MarkdownShortcut/index.js +1 -1
  684. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  685. package/dist/lexical/plugins/NodeViewOverridePlugin/index.d.ts.map +1 -1
  686. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js +21 -0
  687. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js.map +1 -1
  688. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +0 -1
  689. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -1
  690. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +2 -21
  691. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  692. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +1 -1
  693. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  694. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  695. package/dist/lexical/plugins/SlashMenu/index.css +1 -7
  696. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +2 -1
  697. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +2 -2
  698. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  699. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +5 -3
  700. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  701. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +17 -3
  702. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  703. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.d.ts +7 -0
  704. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.d.ts.map +1 -0
  705. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.js +65 -0
  706. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.js.map +1 -0
  707. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -1
  708. package/dist/lexical/plugins/handles/utils/setHandlePosition.js +2 -0
  709. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -1
  710. package/dist/lexical/theme/EditorTheme.css +20 -23
  711. package/dist/lexical/ui/ContentEditable.css +22 -17
  712. package/dist/lexical/ui/ContentEditable.d.ts +2 -1
  713. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  714. package/dist/lexical/ui/ContentEditable.js +21 -7
  715. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  716. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
  717. package/dist/lexical/ui/icons/H3/index.js +13 -6
  718. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  719. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
  720. package/dist/lexical/ui/icons/H4/index.js +13 -6
  721. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  722. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
  723. package/dist/lexical/ui/icons/H5/index.js +13 -6
  724. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  725. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
  726. package/dist/lexical/ui/icons/H6/index.js +13 -6
  727. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  728. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts +17 -0
  729. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts.map +1 -0
  730. package/dist/lexical/utils/markdown/convertFromMarkdownString.js +27 -0
  731. package/dist/lexical/utils/markdown/convertFromMarkdownString.js.map +1 -0
  732. package/dist/lexical/utils/markdown/createBlockNode.d.ts +2 -2
  733. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  734. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -1
  735. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts +25 -0
  736. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts.map +1 -0
  737. package/dist/lexical/utils/markdown/normalizeMarkdown.js +91 -0
  738. package/dist/lexical/utils/markdown/normalizeMarkdown.js.map +1 -0
  739. package/dist/lexical/utils/nodeFormat.d.ts.map +1 -1
  740. package/dist/lexical/utils/point.d.ts.map +1 -1
  741. package/dist/lexical/utils/rect.d.ts.map +1 -1
  742. package/dist/lexical-proxy/@lexical-markdown.d.ts +1 -1
  743. package/dist/lexical-proxy/@lexical-markdown.d.ts.map +1 -1
  744. package/dist/lexical-proxy/@lexical-markdown.js +1 -1
  745. package/dist/lexical-proxy/@lexical-markdown.js.map +1 -1
  746. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.d.ts +2 -0
  747. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.d.ts.map +1 -0
  748. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.js +2 -0
  749. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.js.map +1 -0
  750. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.d.ts +2 -0
  751. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.d.ts.map +1 -0
  752. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.js +2 -0
  753. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.js.map +1 -0
  754. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.d.ts +2 -0
  755. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.d.ts.map +1 -0
  756. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.js +2 -0
  757. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.js.map +1 -0
  758. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.d.ts +2 -0
  759. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.d.ts.map +1 -0
  760. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.js +2 -0
  761. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.js.map +1 -0
  762. package/dist/lexical-proxy/@lexical-react/ReactExtension.d.ts +2 -0
  763. package/dist/lexical-proxy/@lexical-react/ReactExtension.d.ts.map +1 -0
  764. package/dist/lexical-proxy/@lexical-react/ReactExtension.js +2 -0
  765. package/dist/lexical-proxy/@lexical-react/ReactExtension.js.map +1 -0
  766. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.d.ts +2 -0
  767. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.d.ts.map +1 -0
  768. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.js +2 -0
  769. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.js.map +1 -0
  770. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.d.ts +2 -0
  771. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.d.ts.map +1 -0
  772. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.js +2 -0
  773. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.js.map +1 -0
  774. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.d.ts +2 -0
  775. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.d.ts.map +1 -0
  776. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.js +2 -0
  777. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.js.map +1 -0
  778. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.d.ts +2 -0
  779. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.d.ts.map +1 -0
  780. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.js +2 -0
  781. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.js.map +1 -0
  782. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.d.ts +2 -0
  783. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.d.ts.map +1 -0
  784. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.js +2 -0
  785. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.js.map +1 -0
  786. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.d.ts +2 -0
  787. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.d.ts.map +1 -0
  788. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.js +2 -0
  789. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.js.map +1 -0
  790. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.d.ts +2 -0
  791. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.d.ts.map +1 -0
  792. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.js +2 -0
  793. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.js.map +1 -0
  794. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.d.ts +2 -0
  795. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.d.ts.map +1 -0
  796. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.js +2 -0
  797. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.js.map +1 -0
  798. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.d.ts +2 -0
  799. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.d.ts.map +1 -0
  800. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.js +2 -0
  801. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.js.map +1 -0
  802. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.d.ts +2 -0
  803. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.d.ts.map +1 -0
  804. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.js +2 -0
  805. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.js.map +1 -0
  806. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
  807. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  808. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
  809. package/dist/presets/llmInstructions.d.ts +2 -0
  810. package/dist/presets/llmInstructions.d.ts.map +1 -0
  811. package/dist/presets/llmInstructions.js +13 -0
  812. package/dist/presets/llmInstructions.js.map +1 -0
  813. package/dist/types/builtInNodes.d.ts +14 -0
  814. package/dist/types/builtInNodes.d.ts.map +1 -0
  815. package/dist/types/builtInNodes.js +208 -0
  816. package/dist/types/builtInNodes.js.map +1 -0
  817. package/dist/{types.d.ts → types/index.d.ts} +29 -33
  818. package/dist/types/index.d.ts.map +1 -0
  819. package/dist/types/index.js +2 -0
  820. package/dist/types/index.js.map +1 -0
  821. package/dist/types/jsonSchemaHelpers.d.ts +34 -0
  822. package/dist/types/jsonSchemaHelpers.d.ts.map +1 -0
  823. package/dist/types/jsonSchemaHelpers.js +63 -0
  824. package/dist/types/jsonSchemaHelpers.js.map +1 -0
  825. package/dist/types/nodeTypes.d.ts +133 -0
  826. package/dist/types/nodeTypes.d.ts.map +1 -0
  827. package/dist/types/nodeTypes.js +6 -0
  828. package/dist/types/nodeTypes.js.map +1 -0
  829. package/dist/types/schema.d.ts +6 -0
  830. package/dist/types/schema.d.ts.map +1 -0
  831. package/dist/types/schema.js +90 -0
  832. package/dist/types/schema.js.map +1 -0
  833. package/dist/utilities/applyBaseFilterToFields.d.ts.map +1 -1
  834. package/dist/utilities/applyBaseFilterToFields.js +1 -2
  835. package/dist/utilities/applyBaseFilterToFields.js.map +1 -1
  836. package/dist/utilities/buildEditorState.d.ts +18 -4
  837. package/dist/utilities/buildEditorState.d.ts.map +1 -1
  838. package/dist/utilities/buildEditorState.js +8 -0
  839. package/dist/utilities/buildEditorState.js.map +1 -1
  840. package/dist/utilities/buildInitialState.d.ts +4 -2
  841. package/dist/utilities/buildInitialState.d.ts.map +1 -1
  842. package/dist/utilities/buildInitialState.js +1 -0
  843. package/dist/utilities/buildInitialState.js.map +1 -1
  844. package/dist/utilities/createClientFeature.d.ts +1 -1
  845. package/dist/utilities/createClientFeature.d.ts.map +1 -1
  846. package/dist/utilities/createClientFeature.js.map +1 -1
  847. package/dist/utilities/createServerFeature.d.ts +1 -1
  848. package/dist/utilities/createServerFeature.d.ts.map +1 -1
  849. package/dist/utilities/createServerFeature.js +2 -2
  850. package/dist/utilities/createServerFeature.js.map +1 -1
  851. package/dist/utilities/editorConfigFactory.d.ts +7 -7
  852. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  853. package/dist/utilities/editorConfigFactory.js +9 -9
  854. package/dist/utilities/editorConfigFactory.js.map +1 -1
  855. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -1
  856. package/dist/utilities/fieldsDrawer/Drawer.js +19 -10
  857. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  858. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -1
  859. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -1
  860. package/dist/utilities/fieldsDrawer/DrawerContent.js +8 -7
  861. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  862. package/dist/utilities/fieldsDrawer/index.css +12 -0
  863. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts +29 -0
  864. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts.map +1 -0
  865. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js +97 -0
  866. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js.map +1 -0
  867. package/dist/utilities/generateImportMap.d.ts +3 -3
  868. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  869. package/dist/utilities/generateImportMap.js.map +1 -1
  870. package/dist/utilities/generateSchemaMap.d.ts +1 -1
  871. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts +2 -2
  872. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -1
  873. package/dist/utilities/getDefaultSanitizedEditorConfig.js +6 -17
  874. package/dist/utilities/getDefaultSanitizedEditorConfig.js.map +1 -1
  875. package/dist/utilities/initLexicalFeatures.d.ts +1 -1
  876. package/dist/utilities/initLexicalFeatures.d.ts.map +1 -1
  877. package/dist/utilities/initLexicalFeatures.js.map +1 -1
  878. package/dist/utilities/upgradeLexicalData/index.js +6 -3
  879. package/dist/utilities/upgradeLexicalData/index.js.map +1 -1
  880. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +1 -1
  881. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
  882. package/dist/validate/hasText.d.ts +2 -2
  883. package/dist/validate/hasText.d.ts.map +1 -1
  884. package/dist/validate/hasText.js.map +1 -1
  885. package/dist/validate/index.d.ts +1 -1
  886. package/dist/validate/index.d.ts.map +1 -1
  887. package/package.json +105 -36
  888. package/dist/dependencyChecker.spec.js +0 -16
  889. package/dist/dependencyChecker.spec.js.map +0 -1
  890. package/dist/exports/client/Field-PJW7KUJG.js +0 -2
  891. package/dist/exports/client/Field-PJW7KUJG.js.map +0 -7
  892. package/dist/exports/client/RelationshipComponent-5RONAYJM.js.map +0 -7
  893. package/dist/exports/client/bundled.css +0 -1
  894. package/dist/exports/client/chunk-44G3K3W7.js +0 -2
  895. package/dist/exports/client/chunk-44G3K3W7.js.map +0 -7
  896. package/dist/exports/client/chunk-BZZVLW4U.js.map +0 -7
  897. package/dist/exports/client/chunk-FTT5KJ6W.js +0 -12
  898. package/dist/exports/client/chunk-FTT5KJ6W.js.map +0 -7
  899. package/dist/exports/client/chunk-INBEEENE.js +0 -2
  900. package/dist/exports/client/chunk-INBEEENE.js.map +0 -7
  901. package/dist/exports/client/chunk-QJ5EETIB.js +0 -2
  902. package/dist/exports/client/chunk-QJ5EETIB.js.map +0 -7
  903. package/dist/exports/client/component-53Y3RYR5.js +0 -2
  904. package/dist/exports/client/component-53Y3RYR5.js.map +0 -7
  905. package/dist/exports/client/componentInline-PM4PLNUK.js +0 -2
  906. package/dist/features/blockquote/markdownTransformer.d.ts +0 -3
  907. package/dist/features/blockquote/markdownTransformer.d.ts.map +0 -1
  908. package/dist/features/blockquote/markdownTransformer.js +0 -33
  909. package/dist/features/blockquote/markdownTransformer.js.map +0 -1
  910. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts +0 -11
  911. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +0 -1
  912. package/dist/features/blocks/client/component/removeEmptyArrayValues.js +0 -20
  913. package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +0 -1
  914. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js +0 -180
  915. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +0 -1
  916. package/dist/features/experimental_table/client/index.d.ts.map +0 -1
  917. package/dist/features/experimental_table/client/index.js.map +0 -1
  918. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +0 -1
  919. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +0 -1
  920. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +0 -1
  921. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +0 -1
  922. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +0 -1
  923. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +0 -1
  924. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +0 -1
  925. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js.map +0 -1
  926. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +0 -1
  927. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +0 -1
  928. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +0 -1
  929. package/dist/features/experimental_table/client/utils/debounce.js.map +0 -1
  930. package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +0 -1
  931. package/dist/features/experimental_table/client/utils/useDebounce.js.map +0 -1
  932. package/dist/features/experimental_table/markdownTransformer.d.ts +0 -5
  933. package/dist/features/experimental_table/markdownTransformer.d.ts.map +0 -1
  934. package/dist/features/experimental_table/markdownTransformer.js.map +0 -1
  935. package/dist/features/experimental_table/server/index.d.ts +0 -8
  936. package/dist/features/experimental_table/server/index.d.ts.map +0 -1
  937. package/dist/features/experimental_table/server/index.js.map +0 -1
  938. package/dist/features/format/bold/markdownTransformers.d.ts +0 -6
  939. package/dist/features/format/bold/markdownTransformers.d.ts.map +0 -1
  940. package/dist/features/format/bold/markdownTransformers.js +0 -23
  941. package/dist/features/format/bold/markdownTransformers.js.map +0 -1
  942. package/dist/features/format/inlineCode/markdownTransformers.d.ts +0 -3
  943. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +0 -1
  944. package/dist/features/format/inlineCode/markdownTransformers.js +0 -6
  945. package/dist/features/format/inlineCode/markdownTransformers.js.map +0 -1
  946. package/dist/features/format/italic/markdownTransformers.d.ts +0 -4
  947. package/dist/features/format/italic/markdownTransformers.d.ts.map +0 -1
  948. package/dist/features/format/italic/markdownTransformers.js +0 -12
  949. package/dist/features/format/italic/markdownTransformers.js.map +0 -1
  950. package/dist/features/format/strikethrough/markdownTransformers.d.ts +0 -3
  951. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
  952. package/dist/features/format/strikethrough/markdownTransformers.js +0 -6
  953. package/dist/features/format/strikethrough/markdownTransformers.js.map +0 -1
  954. package/dist/features/link/markdownTransformer.spec.js +0 -195
  955. package/dist/features/link/markdownTransformer.spec.js.map +0 -1
  956. package/dist/features/link/nodes/types.d.ts +0 -27
  957. package/dist/features/link/nodes/types.d.ts.map +0 -1
  958. package/dist/features/link/nodes/types.js +0 -2
  959. package/dist/features/link/nodes/types.js.map +0 -1
  960. package/dist/features/lists/checklist/markdownTransformers.d.ts +0 -3
  961. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
  962. package/dist/features/lists/checklist/markdownTransformers.js +0 -12
  963. package/dist/features/lists/checklist/markdownTransformers.js.map +0 -1
  964. package/dist/features/lists/orderedList/markdownTransformer.d.ts +0 -3
  965. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +0 -1
  966. package/dist/features/lists/orderedList/markdownTransformer.js +0 -12
  967. package/dist/features/lists/orderedList/markdownTransformer.js.map +0 -1
  968. package/dist/features/lists/shared/markdown.d.ts +0 -6
  969. package/dist/features/lists/shared/markdown.d.ts.map +0 -1
  970. package/dist/features/lists/shared/markdown.js +0 -57
  971. package/dist/features/lists/shared/markdown.js.map +0 -1
  972. package/dist/features/lists/unorderedList/markdownTransformer.d.ts +0 -3
  973. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +0 -1
  974. package/dist/features/lists/unorderedList/markdownTransformer.js +0 -12
  975. package/dist/features/lists/unorderedList/markdownTransformer.js.map +0 -1
  976. package/dist/lexical/utils/guard.d.ts +0 -5
  977. package/dist/lexical/utils/guard.d.ts.map +0 -1
  978. package/dist/lexical/utils/guard.js +0 -9
  979. package/dist/lexical/utils/guard.js.map +0 -1
  980. package/dist/lexical/utils/url.spec.js +0 -114
  981. package/dist/lexical/utils/url.spec.js.map +0 -1
  982. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts +0 -2
  983. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts.map +0 -1
  984. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js +0 -2
  985. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js.map +0 -1
  986. package/dist/nodeTypes.d.ts +0 -74
  987. package/dist/nodeTypes.d.ts.map +0 -1
  988. package/dist/nodeTypes.js +0 -5
  989. package/dist/nodeTypes.js.map +0 -1
  990. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts +0 -14
  991. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts.map +0 -1
  992. package/dist/packages/@lexical/markdown/MarkdownExport.js +0 -213
  993. package/dist/packages/@lexical/markdown/MarkdownExport.js.map +0 -1
  994. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts +0 -19
  995. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts.map +0 -1
  996. package/dist/packages/@lexical/markdown/MarkdownImport.js +0 -198
  997. package/dist/packages/@lexical/markdown/MarkdownImport.js.map +0 -1
  998. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts +0 -11
  999. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts.map +0 -1
  1000. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js +0 -304
  1001. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js.map +0 -1
  1002. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts +0 -147
  1003. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts.map +0 -1
  1004. package/dist/packages/@lexical/markdown/MarkdownTransformers.js +0 -268
  1005. package/dist/packages/@lexical/markdown/MarkdownTransformers.js.map +0 -1
  1006. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts +0 -22
  1007. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts.map +0 -1
  1008. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js +0 -91
  1009. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js.map +0 -1
  1010. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts +0 -21
  1011. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts.map +0 -1
  1012. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js +0 -54
  1013. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js.map +0 -1
  1014. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts +0 -18
  1015. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts.map +0 -1
  1016. package/dist/packages/@lexical/markdown/importTextTransformers.js +0 -54
  1017. package/dist/packages/@lexical/markdown/importTextTransformers.js.map +0 -1
  1018. package/dist/packages/@lexical/markdown/index.d.ts +0 -29
  1019. package/dist/packages/@lexical/markdown/index.d.ts.map +0 -1
  1020. package/dist/packages/@lexical/markdown/index.js +0 -39
  1021. package/dist/packages/@lexical/markdown/index.js.map +0 -1
  1022. package/dist/packages/@lexical/markdown/utils.d.ts +0 -34
  1023. package/dist/packages/@lexical/markdown/utils.d.ts.map +0 -1
  1024. package/dist/packages/@lexical/markdown/utils.js +0 -267
  1025. package/dist/packages/@lexical/markdown/utils.js.map +0 -1
  1026. package/dist/types.d.ts.map +0 -1
  1027. package/dist/types.js +0 -2
  1028. package/dist/types.js.map +0 -1
  1029. package/dist/utilities/jsx/jsx.spec.js +0 -178
  1030. package/dist/utilities/jsx/jsx.spec.js.map +0 -1
  1031. /package/dist/exports/client/{componentInline-PM4PLNUK.js.map → componentInline-HNE5G4TE.js.map} +0 -0
  1032. /package/dist/features/{experimental_table → table}/client/index.d.ts +0 -0
  1033. /package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.d.ts +0 -0
  1034. /package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.css +0 -0
  1035. /package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.d.ts +0 -0
  1036. /package/dist/features/{experimental_table → table}/client/plugins/TableHoverActionsPlugin/index.d.ts +0 -0
  1037. /package/dist/features/{experimental_table → table}/client/plugins/TableHoverActionsPlugin/index.js +0 -0
  1038. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.d.ts +0 -0
  1039. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.js +0 -0
  1040. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.css +0 -0
  1041. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.d.ts +0 -0
  1042. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.js +0 -0
  1043. /package/dist/features/{experimental_table → table}/client/utils/debounce.d.ts +0 -0
  1044. /package/dist/features/{experimental_table → table}/client/utils/debounce.js +0 -0
  1045. /package/dist/features/{experimental_table → table}/client/utils/useDebounce.d.ts +0 -0
  1046. /package/dist/features/{experimental_table → table}/client/utils/useDebounce.js +0 -0
@@ -1,27 +0,0 @@
1
- import type { SerializedElementNode, SerializedLexicalNode } from 'lexical';
2
- import type { DefaultDocumentIDType, JsonValue } from 'payload';
3
- import type { StronglyTypedElementNode } from '../../../nodeTypes.js';
4
- export type LinkFields = {
5
- [key: string]: JsonValue;
6
- doc?: {
7
- relationTo: string;
8
- value: {
9
- [key: string]: JsonValue;
10
- id: DefaultDocumentIDType;
11
- } | DefaultDocumentIDType;
12
- } | null;
13
- linkType: 'custom' | 'internal';
14
- newTab: boolean;
15
- url?: string;
16
- };
17
- export type SerializedLinkNode<T extends SerializedLexicalNode = SerializedLexicalNode> = {
18
- fields: LinkFields;
19
- /**
20
- * @todo make required in 4.0 and type AutoLinkNode differently
21
- */
22
- id?: string;
23
- } & StronglyTypedElementNode<SerializedElementNode, 'link', T>;
24
- export type SerializedAutoLinkNode<T extends SerializedLexicalNode = SerializedLexicalNode> = {
25
- fields: LinkFields;
26
- } & StronglyTypedElementNode<SerializedElementNode, 'autolink', T>;
27
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/features/link/nodes/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAC3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAE/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAErE,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,GAAG,CAAC,EAAE;QACJ,UAAU,EAAE,MAAM,CAAA;QAClB,KAAK,EACD;YAEE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;YACxB,EAAE,EAAE,qBAAqB,CAAA;SAC1B,GACD,qBAAqB,CAAA;KAC1B,GAAG,IAAI,CAAA;IACR,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAAA;IAC/B,MAAM,EAAE,OAAO,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,IAAI;IACxF,MAAM,EAAE,UAAU,CAAA;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ,GAAG,wBAAwB,CAAC,qBAAqB,EAAE,MAAM,EAAE,CAAC,CAAC,CAAA;AAE9D,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,IAAI;IAC5F,MAAM,EAAE,UAAU,CAAA;CACnB,GAAG,wBAAwB,CAAC,qBAAqB,EAAE,UAAU,EAAE,CAAC,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../../src/features/link/nodes/types.ts"],"sourcesContent":["import type { SerializedElementNode, SerializedLexicalNode } from 'lexical'\nimport type { DefaultDocumentIDType, JsonValue } from 'payload'\n\nimport type { StronglyTypedElementNode } from '../../../nodeTypes.js'\n\nexport type LinkFields = {\n [key: string]: JsonValue\n doc?: {\n relationTo: string\n value:\n | {\n // Actual doc data, populated in afterRead hook\n [key: string]: JsonValue\n id: DefaultDocumentIDType\n }\n | DefaultDocumentIDType\n } | null\n linkType: 'custom' | 'internal'\n newTab: boolean\n url?: string\n}\n\nexport type SerializedLinkNode<T extends SerializedLexicalNode = SerializedLexicalNode> = {\n fields: LinkFields\n /**\n * @todo make required in 4.0 and type AutoLinkNode differently\n */\n id?: string // optional if AutoLinkNode\n} & StronglyTypedElementNode<SerializedElementNode, 'link', T>\n\nexport type SerializedAutoLinkNode<T extends SerializedLexicalNode = SerializedLexicalNode> = {\n fields: LinkFields\n} & StronglyTypedElementNode<SerializedElementNode, 'autolink', T>\n"],"mappings":"AA8BA","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- import type { ElementTransformer } from '../../../packages/@lexical/markdown/MarkdownTransformers.js';
2
- export declare const CHECK_LIST: ElementTransformer;
3
- //# sourceMappingURL=markdownTransformers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownTransformers.d.ts","sourceRoot":"","sources":["../../../../src/features/lists/checklist/markdownTransformers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAA;AAIrG,eAAO,MAAM,UAAU,EAAE,kBAQxB,CAAA"}
@@ -1,12 +0,0 @@
1
- import { $isListNode, ListItemNode, ListNode } from '@lexical/list';
2
- import { listExport, listReplace } from '../shared/markdown.js';
3
- export const CHECK_LIST = {
4
- type: 'element',
5
- dependencies: [ListNode, ListItemNode],
6
- export: (node, exportChildren) => {
7
- return $isListNode(node) ? listExport(node, exportChildren, 0) : null;
8
- },
9
- regExp: /^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,
10
- replace: listReplace('check')
11
- };
12
- //# sourceMappingURL=markdownTransformers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownTransformers.js","names":["$isListNode","ListItemNode","ListNode","listExport","listReplace","CHECK_LIST","type","dependencies","export","node","exportChildren","regExp","replace"],"sources":["../../../../src/features/lists/checklist/markdownTransformers.ts"],"sourcesContent":["import { $isListNode, ListItemNode, ListNode } from '@lexical/list'\n\nimport type { ElementTransformer } from '../../../packages/@lexical/markdown/MarkdownTransformers.js'\n\nimport { listExport, listReplace } from '../shared/markdown.js'\n\nexport const CHECK_LIST: ElementTransformer = {\n type: 'element',\n dependencies: [ListNode, ListItemNode],\n export: (node, exportChildren) => {\n return $isListNode(node) ? listExport(node, exportChildren, 0) : null\n },\n regExp: /^(\\s*)(?:-\\s)?\\s?(\\[(\\s|x)?\\])\\s/i,\n replace: listReplace('check'),\n}\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,YAAY,EAAEC,QAAQ,QAAQ;AAIpD,SAASC,UAAU,EAAEC,WAAW,QAAQ;AAExC,OAAO,MAAMC,UAAA,GAAiC;EAC5CC,IAAA,EAAM;EACNC,YAAA,EAAc,CAACL,QAAA,EAAUD,YAAA,CAAa;EACtCO,MAAA,EAAQA,CAACC,IAAA,EAAMC,cAAA;IACb,OAAOV,WAAA,CAAYS,IAAA,IAAQN,UAAA,CAAWM,IAAA,EAAMC,cAAA,EAAgB,KAAK;EACnE;EACAC,MAAA,EAAQ;EACRC,OAAA,EAASR,WAAA,CAAY;AACvB","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- import type { ElementTransformer } from '../../../packages/@lexical/markdown/MarkdownTransformers.js';
2
- export declare const ORDERED_LIST: ElementTransformer;
3
- //# sourceMappingURL=markdownTransformer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownTransformer.d.ts","sourceRoot":"","sources":["../../../../src/features/lists/orderedList/markdownTransformer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAA;AAIrG,eAAO,MAAM,YAAY,EAAE,kBAQ1B,CAAA"}
@@ -1,12 +0,0 @@
1
- import { $isListNode, ListItemNode, ListNode } from '@lexical/list';
2
- import { listExport, listReplace } from '../shared/markdown.js';
3
- export const ORDERED_LIST = {
4
- type: 'element',
5
- dependencies: [ListNode, ListItemNode],
6
- export: (node, exportChildren) => {
7
- return $isListNode(node) ? listExport(node, exportChildren, 0) : null;
8
- },
9
- regExp: /^(\s*)(\d+)\.\s/,
10
- replace: listReplace('number')
11
- };
12
- //# sourceMappingURL=markdownTransformer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownTransformer.js","names":["$isListNode","ListItemNode","ListNode","listExport","listReplace","ORDERED_LIST","type","dependencies","export","node","exportChildren","regExp","replace"],"sources":["../../../../src/features/lists/orderedList/markdownTransformer.ts"],"sourcesContent":["import { $isListNode, ListItemNode, ListNode } from '@lexical/list'\n\nimport type { ElementTransformer } from '../../../packages/@lexical/markdown/MarkdownTransformers.js'\n\nimport { listExport, listReplace } from '../shared/markdown.js'\n\nexport const ORDERED_LIST: ElementTransformer = {\n type: 'element',\n dependencies: [ListNode, ListItemNode],\n export: (node, exportChildren) => {\n return $isListNode(node) ? listExport(node, exportChildren, 0) : null\n },\n regExp: /^(\\s*)(\\d+)\\.\\s/,\n replace: listReplace('number'),\n}\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,YAAY,EAAEC,QAAQ,QAAQ;AAIpD,SAASC,UAAU,EAAEC,WAAW,QAAQ;AAExC,OAAO,MAAMC,YAAA,GAAmC;EAC9CC,IAAA,EAAM;EACNC,YAAA,EAAc,CAACL,QAAA,EAAUD,YAAA,CAAa;EACtCO,MAAA,EAAQA,CAACC,IAAA,EAAMC,cAAA;IACb,OAAOV,WAAA,CAAYS,IAAA,IAAQN,UAAA,CAAWM,IAAA,EAAMC,cAAA,EAAgB,KAAK;EACnE;EACAC,MAAA,EAAQ;EACRC,OAAA,EAASR,WAAA,CAAY;AACvB","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- import type { ListNode, ListType } from '@lexical/list';
2
- import type { ElementNode } from 'lexical';
3
- import type { ElementTransformer } from '../../../packages/@lexical/markdown/MarkdownTransformers.js';
4
- export declare const listReplace: (listType: ListType) => ElementTransformer["replace"];
5
- export declare const listExport: (listNode: ListNode, exportChildren: (node: ElementNode) => string, depth: number) => string;
6
- //# sourceMappingURL=markdown.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../src/features/lists/shared/markdown.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAA;AAKrG,eAAO,MAAM,WAAW,aAAc,QAAQ,KAAG,kBAAkB,CAAC,SAAS,CA6B5E,CAAA;AAED,eAAO,MAAM,UAAU,aACX,QAAQ,kBACF,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,SACtC,MAAM,KACZ,MA2BF,CAAA"}
@@ -1,57 +0,0 @@
1
- // Copied from https://github.com/facebook/lexical/blob/176b8cf16ecb332ee5efe2c75219e223b7b019f2/packages/lexical-markdown/src/MarkdownTransformers.ts#L97C1-L172C1
2
- import { $createListItemNode, $createListNode, $isListItemNode, $isListNode } from '@lexical/list';
3
- // Amount of spaces that define indentation level
4
- const LIST_INDENT_SIZE = 4;
5
- export const listReplace = listType => {
6
- return (parentNode, children, match) => {
7
- const previousNode = parentNode.getPreviousSibling();
8
- const nextNode = parentNode.getNextSibling();
9
- const listItem = $createListItemNode(listType === 'check' ? match[3] === 'x' : undefined);
10
- if ($isListNode(nextNode) && nextNode.getListType() === listType) {
11
- const firstChild = nextNode.getFirstChild();
12
- if (firstChild !== null) {
13
- firstChild.insertBefore(listItem);
14
- } else {
15
- // should never happen, but let's handle gracefully, just in case.
16
- nextNode.append(listItem);
17
- }
18
- parentNode.remove();
19
- } else if ($isListNode(previousNode) && previousNode.getListType() === listType) {
20
- previousNode.append(listItem);
21
- parentNode.remove();
22
- } else {
23
- const list = $createListNode(listType, listType === 'number' ? Number(match[2]) : undefined);
24
- list.append(listItem);
25
- parentNode.replace(list);
26
- }
27
- listItem.append(...children);
28
- listItem.select(0, 0);
29
- const indent = Math.floor(match[1].length / LIST_INDENT_SIZE);
30
- if (indent) {
31
- listItem.setIndent(indent);
32
- }
33
- };
34
- };
35
- export const listExport = (listNode, exportChildren, depth) => {
36
- const output = [];
37
- const children = listNode.getChildren();
38
- let index = 0;
39
- for (const listItemNode of children) {
40
- if ($isListItemNode(listItemNode)) {
41
- if (listItemNode.getChildrenSize() === 1) {
42
- const firstChild = listItemNode.getFirstChild();
43
- if ($isListNode(firstChild)) {
44
- output.push(listExport(firstChild, exportChildren, depth + 1));
45
- continue;
46
- }
47
- }
48
- const indent = ' '.repeat(depth * LIST_INDENT_SIZE);
49
- const listType = listNode.getListType();
50
- const prefix = listType === 'number' ? `${listNode.getStart() + index}. ` : listType === 'check' ? `- [${listItemNode.getChecked() ? 'x' : ' '}] ` : '- ';
51
- output.push(indent + prefix + exportChildren(listItemNode));
52
- index++;
53
- }
54
- }
55
- return output.join('\n');
56
- };
57
- //# sourceMappingURL=markdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown.js","names":["$createListItemNode","$createListNode","$isListItemNode","$isListNode","LIST_INDENT_SIZE","listReplace","listType","parentNode","children","match","previousNode","getPreviousSibling","nextNode","getNextSibling","listItem","undefined","getListType","firstChild","getFirstChild","insertBefore","append","remove","list","Number","replace","select","indent","Math","floor","length","setIndent","listExport","listNode","exportChildren","depth","output","getChildren","index","listItemNode","getChildrenSize","push","repeat","prefix","getStart","getChecked","join"],"sources":["../../../../src/features/lists/shared/markdown.ts"],"sourcesContent":["// Copied from https://github.com/facebook/lexical/blob/176b8cf16ecb332ee5efe2c75219e223b7b019f2/packages/lexical-markdown/src/MarkdownTransformers.ts#L97C1-L172C1\n\nimport type { ListNode, ListType } from '@lexical/list'\nimport type { ElementNode } from 'lexical'\n\nimport { $createListItemNode, $createListNode, $isListItemNode, $isListNode } from '@lexical/list'\n\nimport type { ElementTransformer } from '../../../packages/@lexical/markdown/MarkdownTransformers.js'\n\n// Amount of spaces that define indentation level\nconst LIST_INDENT_SIZE = 4\n\nexport const listReplace = (listType: ListType): ElementTransformer['replace'] => {\n return (parentNode, children, match) => {\n const previousNode = parentNode.getPreviousSibling()\n const nextNode = parentNode.getNextSibling()\n const listItem = $createListItemNode(listType === 'check' ? match[3] === 'x' : undefined)\n if ($isListNode(nextNode) && nextNode.getListType() === listType) {\n const firstChild = nextNode.getFirstChild()\n if (firstChild !== null) {\n firstChild.insertBefore(listItem)\n } else {\n // should never happen, but let's handle gracefully, just in case.\n nextNode.append(listItem)\n }\n parentNode.remove()\n } else if ($isListNode(previousNode) && previousNode.getListType() === listType) {\n previousNode.append(listItem)\n parentNode.remove()\n } else {\n const list = $createListNode(listType, listType === 'number' ? Number(match[2]) : undefined)\n list.append(listItem)\n parentNode.replace(list)\n }\n listItem.append(...children)\n listItem.select(0, 0)\n const indent = Math.floor(match[1]!.length / LIST_INDENT_SIZE)\n if (indent) {\n listItem.setIndent(indent)\n }\n }\n}\n\nexport const listExport = (\n listNode: ListNode,\n exportChildren: (node: ElementNode) => string,\n depth: number,\n): string => {\n const output: string[] = []\n const children = listNode.getChildren()\n let index = 0\n for (const listItemNode of children) {\n if ($isListItemNode(listItemNode)) {\n if (listItemNode.getChildrenSize() === 1) {\n const firstChild = listItemNode.getFirstChild()\n if ($isListNode(firstChild)) {\n output.push(listExport(firstChild, exportChildren, depth + 1))\n continue\n }\n }\n const indent = ' '.repeat(depth * LIST_INDENT_SIZE)\n const listType = listNode.getListType()\n const prefix =\n listType === 'number'\n ? `${listNode.getStart() + index}. `\n : listType === 'check'\n ? `- [${listItemNode.getChecked() ? 'x' : ' '}] `\n : '- '\n output.push(indent + prefix + exportChildren(listItemNode))\n index++\n }\n }\n\n return output.join('\\n')\n}\n"],"mappings":"AAAA;AAKA,SAASA,mBAAmB,EAAEC,eAAe,EAAEC,eAAe,EAAEC,WAAW,QAAQ;AAInF;AACA,MAAMC,gBAAA,GAAmB;AAEzB,OAAO,MAAMC,WAAA,GAAeC,QAAA;EAC1B,OAAO,CAACC,UAAA,EAAYC,QAAA,EAAUC,KAAA;IAC5B,MAAMC,YAAA,GAAeH,UAAA,CAAWI,kBAAkB;IAClD,MAAMC,QAAA,GAAWL,UAAA,CAAWM,cAAc;IAC1C,MAAMC,QAAA,GAAWd,mBAAA,CAAoBM,QAAA,KAAa,UAAUG,KAAK,CAAC,EAAE,KAAK,MAAMM,SAAA;IAC/E,IAAIZ,WAAA,CAAYS,QAAA,KAAaA,QAAA,CAASI,WAAW,OAAOV,QAAA,EAAU;MAChE,MAAMW,UAAA,GAAaL,QAAA,CAASM,aAAa;MACzC,IAAID,UAAA,KAAe,MAAM;QACvBA,UAAA,CAAWE,YAAY,CAACL,QAAA;MAC1B,OAAO;QACL;QACAF,QAAA,CAASQ,MAAM,CAACN,QAAA;MAClB;MACAP,UAAA,CAAWc,MAAM;IACnB,OAAO,IAAIlB,WAAA,CAAYO,YAAA,KAAiBA,YAAA,CAAaM,WAAW,OAAOV,QAAA,EAAU;MAC/EI,YAAA,CAAaU,MAAM,CAACN,QAAA;MACpBP,UAAA,CAAWc,MAAM;IACnB,OAAO;MACL,MAAMC,IAAA,GAAOrB,eAAA,CAAgBK,QAAA,EAAUA,QAAA,KAAa,WAAWiB,MAAA,CAAOd,KAAK,CAAC,EAAE,IAAIM,SAAA;MAClFO,IAAA,CAAKF,MAAM,CAACN,QAAA;MACZP,UAAA,CAAWiB,OAAO,CAACF,IAAA;IACrB;IACAR,QAAA,CAASM,MAAM,IAAIZ,QAAA;IACnBM,QAAA,CAASW,MAAM,CAAC,GAAG;IACnB,MAAMC,MAAA,GAASC,IAAA,CAAKC,KAAK,CAACnB,KAAK,CAAC,EAAE,CAAEoB,MAAM,GAAGzB,gBAAA;IAC7C,IAAIsB,MAAA,EAAQ;MACVZ,QAAA,CAASgB,SAAS,CAACJ,MAAA;IACrB;EACF;AACF;AAEA,OAAO,MAAMK,UAAA,GAAaA,CACxBC,QAAA,EACAC,cAAA,EACAC,KAAA;EAEA,MAAMC,MAAA,GAAmB,EAAE;EAC3B,MAAM3B,QAAA,GAAWwB,QAAA,CAASI,WAAW;EACrC,IAAIC,KAAA,GAAQ;EACZ,KAAK,MAAMC,YAAA,IAAgB9B,QAAA,EAAU;IACnC,IAAIN,eAAA,CAAgBoC,YAAA,GAAe;MACjC,IAAIA,YAAA,CAAaC,eAAe,OAAO,GAAG;QACxC,MAAMtB,UAAA,GAAaqB,YAAA,CAAapB,aAAa;QAC7C,IAAIf,WAAA,CAAYc,UAAA,GAAa;UAC3BkB,MAAA,CAAOK,IAAI,CAACT,UAAA,CAAWd,UAAA,EAAYgB,cAAA,EAAgBC,KAAA,GAAQ;UAC3D;QACF;MACF;MACA,MAAMR,MAAA,GAAS,IAAIe,MAAM,CAACP,KAAA,GAAQ9B,gBAAA;MAClC,MAAME,QAAA,GAAW0B,QAAA,CAAShB,WAAW;MACrC,MAAM0B,MAAA,GACJpC,QAAA,KAAa,WACT,GAAG0B,QAAA,CAASW,QAAQ,KAAKN,KAAA,IAAS,GAClC/B,QAAA,KAAa,UACX,MAAMgC,YAAA,CAAaM,UAAU,KAAK,MAAM,OAAO,GAC/C;MACRT,MAAA,CAAOK,IAAI,CAACd,MAAA,GAASgB,MAAA,GAAST,cAAA,CAAeK,YAAA;MAC7CD,KAAA;IACF;EACF;EAEA,OAAOF,MAAA,CAAOU,IAAI,CAAC;AACrB","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- import type { ElementTransformer } from '../../../packages/@lexical/markdown/MarkdownTransformers.js';
2
- export declare const UNORDERED_LIST: ElementTransformer;
3
- //# sourceMappingURL=markdownTransformer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownTransformer.d.ts","sourceRoot":"","sources":["../../../../src/features/lists/unorderedList/markdownTransformer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAA;AAIrG,eAAO,MAAM,cAAc,EAAE,kBAQ5B,CAAA"}
@@ -1,12 +0,0 @@
1
- import { $isListNode, ListItemNode, ListNode } from '@lexical/list';
2
- import { listExport, listReplace } from '../shared/markdown.js';
3
- export const UNORDERED_LIST = {
4
- type: 'element',
5
- dependencies: [ListNode, ListItemNode],
6
- export: (node, exportChildren) => {
7
- return $isListNode(node) ? listExport(node, exportChildren, 0) : null;
8
- },
9
- regExp: /^(\s*)[-*+]\s/,
10
- replace: listReplace('bullet')
11
- };
12
- //# sourceMappingURL=markdownTransformer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownTransformer.js","names":["$isListNode","ListItemNode","ListNode","listExport","listReplace","UNORDERED_LIST","type","dependencies","export","node","exportChildren","regExp","replace"],"sources":["../../../../src/features/lists/unorderedList/markdownTransformer.ts"],"sourcesContent":["import { $isListNode, ListItemNode, ListNode } from '@lexical/list'\n\nimport type { ElementTransformer } from '../../../packages/@lexical/markdown/MarkdownTransformers.js'\n\nimport { listExport, listReplace } from '../shared/markdown.js'\n\nexport const UNORDERED_LIST: ElementTransformer = {\n type: 'element',\n dependencies: [ListNode, ListItemNode],\n export: (node, exportChildren) => {\n return $isListNode(node) ? listExport(node, exportChildren, 0) : null\n },\n regExp: /^(\\s*)[-*+]\\s/,\n replace: listReplace('bullet'),\n}\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,YAAY,EAAEC,QAAQ,QAAQ;AAIpD,SAASC,UAAU,EAAEC,WAAW,QAAQ;AAExC,OAAO,MAAMC,cAAA,GAAqC;EAChDC,IAAA,EAAM;EACNC,YAAA,EAAc,CAACL,QAAA,EAAUD,YAAA,CAAa;EACtCO,MAAA,EAAQA,CAACC,IAAA,EAAMC,cAAA;IACb,OAAOV,WAAA,CAAYS,IAAA,IAAQN,UAAA,CAAWM,IAAA,EAAMC,cAAA,EAAgB,KAAK;EACnE;EACAC,MAAA,EAAQ;EACRC,OAAA,EAASR,WAAA,CAAY;AACvB","ignoreList":[]}
@@ -1,5 +0,0 @@
1
- /**
2
- * @deprecated - remove in 4.0. lexical already exports an isHTMLElement utility
3
- */
4
- export declare function isHTMLElement(x: unknown): x is HTMLElement;
5
- //# sourceMappingURL=guard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guard.d.ts","sourceRoot":"","sources":["../../../src/lexical/utils/guard.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,WAAW,CAE1D"}
@@ -1,9 +0,0 @@
1
- 'use client';
2
-
3
- /**
4
- * @deprecated - remove in 4.0. lexical already exports an isHTMLElement utility
5
- */
6
- export function isHTMLElement(x) {
7
- return x instanceof HTMLElement;
8
- }
9
- //# sourceMappingURL=guard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guard.js","names":["isHTMLElement","x","HTMLElement"],"sources":["../../../src/lexical/utils/guard.ts"],"sourcesContent":["'use client'\n\n/**\n * @deprecated - remove in 4.0. lexical already exports an isHTMLElement utility\n */\nexport function isHTMLElement(x: unknown): x is HTMLElement {\n return x instanceof HTMLElement\n}\n"],"mappings":"AAAA;;AAEA;;;AAGA,OAAO,SAASA,cAAcC,CAAU;EACtC,OAAOA,CAAA,YAAaC,WAAA;AACtB","ignoreList":[]}
@@ -1,114 +0,0 @@
1
- import { describe, it, expect } from 'vitest';
2
- import { absoluteRegExp, relativeOrAnchorRegExp, validateUrl } from './url.js';
3
- describe('Lexical URL Regex Matchers', () => {
4
- describe('relativeOrAnchorRegExp', () => {
5
- it('validation for links it should match', async () => {
6
- const shouldMatch = ['/path/to/resource', '/file-name.html', '/', '/dir/', '/path.with.dots/', '#anchor', '#section-title', '/path#fragment', '/page?id=123', '/page?id=123#section', '/search?q=test', '/?global=true'];
7
- shouldMatch.forEach(testCase => {
8
- expect(relativeOrAnchorRegExp.test(testCase)).toBe(true);
9
- });
10
- });
11
- it('validation for links it should not match', async () => {
12
- const shouldNotMatch = ['match', 'http://example.com', 'relative/path', 'file.html', 'some#fragment', '#', '/#', '/path/with spaces', '', 'ftp://example.com'];
13
- shouldNotMatch.forEach(testCase => {
14
- expect(relativeOrAnchorRegExp.test(testCase)).not.toBe(true);
15
- });
16
- });
17
- });
18
- describe('absoluteRegExp', () => {
19
- it('validation for links it should match', async () => {
20
- const shouldMatch = ['http://example.com', 'https://example.com', 'ftp://files.example.com', 'http://example.com/resource', 'https://example.com/resource?key=value', 'http://example.com/resource#anchor', 'http://www.example.com', 'https://sub.example.com/path/file', 'mailto:email@example.com', 'tel:+1234567890', 'http://user:pass@example.com', 'www.example.com', 'www.example.com/resource', 'www.example.com/resource?query=1', 'www.example.com#fragment'];
21
- shouldMatch.forEach(testCase => {
22
- expect(absoluteRegExp.test(testCase)).toBe(true);
23
- });
24
- });
25
- it('validation for links it should not match', async () => {
26
- const shouldNotMatch = ['/relative/path', '#anchor', 'example.com', '://missing.scheme', 'http://', 'http:/example.com', 'ftp://example .com', 'http://example', 'not-a-url', 'http//example.com', 'https://example.com/ spaces'];
27
- shouldNotMatch.forEach(testCase => {
28
- expect(absoluteRegExp.test(testCase)).not.toBe(true);
29
- });
30
- });
31
- });
32
- describe('validateUrl', () => {
33
- describe('absolute URLs', () => {
34
- it('should validate http and https URLs', () => {
35
- const validUrls = ['http://example.com', 'https://example.com', 'http://www.example.com', 'https://sub.example.com/path/file', 'http://example.com/resource', 'https://example.com/resource?key=value', 'http://example.com/resource#anchor'];
36
- validUrls.forEach(url => {
37
- expect(validateUrl(url)).toBe(true);
38
- });
39
- });
40
- it('should validate other protocol URLs', () => {
41
- const validUrls = ['ftp://files.example.com', 'mailto:email@example.com', 'tel:+1234567890'];
42
- validUrls.forEach(url => {
43
- expect(validateUrl(url)).toBe(true);
44
- });
45
- });
46
- it('should validate www URLs without protocol', () => {
47
- const validUrls = ['www.example.com', 'www.example.com/resource', 'www.example.com/resource?query=1', 'www.example.com#fragment'];
48
- validUrls.forEach(url => {
49
- expect(validateUrl(url)).toBe(true);
50
- });
51
- });
52
- });
53
- describe('relative URLs', () => {
54
- it('should validate relative paths', () => {
55
- const validUrls = ['/path/to/resource', '/file-name.html', '/', '/dir/', '/path.with.dots/', '/path#fragment'];
56
- validUrls.forEach(url => {
57
- expect(validateUrl(url)).toBe(true);
58
- });
59
- });
60
- });
61
- describe('anchor links', () => {
62
- it('should validate anchor links', () => {
63
- const validUrls = ['#anchor', '#section-title'];
64
- validUrls.forEach(url => {
65
- expect(validateUrl(url)).toBe(true);
66
- });
67
- });
68
- });
69
- describe('with query params', () => {
70
- it('should validate relative URLs with query parameters', () => {
71
- const validUrls = ['/page?id=123', '/search?q=test', '/products?category=electronics&sort=price', '/path?key=value&another=param', '/page?id=123&filter=active', '/?global=true'];
72
- validUrls.forEach(url => {
73
- expect(validateUrl(url)).toBe(true);
74
- });
75
- });
76
- it('should validate absolute URLs with query parameters', () => {
77
- const validUrls = ['https://example.com?id=123', 'http://example.com/page?key=value', 'www.example.com?search=query', 'https://example.com/path?a=1&b=2&c=3'];
78
- validUrls.forEach(url => {
79
- expect(validateUrl(url)).toBe(true);
80
- });
81
- });
82
- it('should validate URLs with query parameters and anchors', () => {
83
- const validUrls = ['/page?id=123#section', 'https://example.com?key=value#anchor', '/search?q=test#results'];
84
- validUrls.forEach(url => {
85
- expect(validateUrl(url)).toBe(true);
86
- });
87
- });
88
- });
89
- describe('edge cases', () => {
90
- it('should handle the default https:// case', () => {
91
- expect(validateUrl('https://')).toBe(true);
92
- });
93
- it('should return false for empty or invalid URLs', () => {
94
- const invalidUrls = ['', 'not-a-url', 'example.com', 'relative/path', 'file.html', 'some#fragment', 'http://', 'http:/example.com', 'http//example.com'];
95
- invalidUrls.forEach(url => {
96
- expect(validateUrl(url)).toBe(false);
97
- });
98
- });
99
- it('should return false for URLs with spaces', () => {
100
- const invalidUrls = ['/path/with spaces', 'http://example.com/ spaces', 'https://example.com/path with spaces'];
101
- invalidUrls.forEach(url => {
102
- expect(validateUrl(url)).toBe(false);
103
- });
104
- });
105
- it('should return false for malformed URLs', () => {
106
- const invalidUrls = ['://missing.scheme', 'ftp://example .com', 'http://example', '#', '/#'];
107
- invalidUrls.forEach(url => {
108
- expect(validateUrl(url)).toBe(false);
109
- });
110
- });
111
- });
112
- });
113
- });
114
- //# sourceMappingURL=url.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"url.spec.js","names":["describe","it","expect","absoluteRegExp","relativeOrAnchorRegExp","validateUrl","shouldMatch","forEach","testCase","test","toBe","shouldNotMatch","not","validUrls","url","invalidUrls"],"sources":["../../../src/lexical/utils/url.spec.ts"],"sourcesContent":["import { describe, it, expect } from 'vitest'\nimport { absoluteRegExp, relativeOrAnchorRegExp, validateUrl } from './url.js'\n\ndescribe('Lexical URL Regex Matchers', () => {\n describe('relativeOrAnchorRegExp', () => {\n it('validation for links it should match', async () => {\n const shouldMatch = [\n '/path/to/resource',\n '/file-name.html',\n '/',\n '/dir/',\n '/path.with.dots/',\n '#anchor',\n '#section-title',\n '/path#fragment',\n '/page?id=123',\n '/page?id=123#section',\n '/search?q=test',\n '/?global=true',\n ]\n\n shouldMatch.forEach((testCase) => {\n expect(relativeOrAnchorRegExp.test(testCase)).toBe(true)\n })\n })\n\n it('validation for links it should not match', async () => {\n const shouldNotMatch = [\n 'match',\n 'http://example.com',\n 'relative/path',\n 'file.html',\n 'some#fragment',\n '#',\n '/#',\n '/path/with spaces',\n '',\n 'ftp://example.com',\n ]\n\n shouldNotMatch.forEach((testCase) => {\n expect(relativeOrAnchorRegExp.test(testCase)).not.toBe(true)\n })\n })\n })\n\n describe('absoluteRegExp', () => {\n it('validation for links it should match', async () => {\n const shouldMatch = [\n 'http://example.com',\n 'https://example.com',\n 'ftp://files.example.com',\n 'http://example.com/resource',\n 'https://example.com/resource?key=value',\n 'http://example.com/resource#anchor',\n 'http://www.example.com',\n 'https://sub.example.com/path/file',\n 'mailto:email@example.com',\n 'tel:+1234567890',\n 'http://user:pass@example.com',\n 'www.example.com',\n 'www.example.com/resource',\n 'www.example.com/resource?query=1',\n 'www.example.com#fragment',\n ]\n\n shouldMatch.forEach((testCase) => {\n expect(absoluteRegExp.test(testCase)).toBe(true)\n })\n })\n\n it('validation for links it should not match', async () => {\n const shouldNotMatch = [\n '/relative/path',\n '#anchor',\n 'example.com',\n '://missing.scheme',\n 'http://',\n 'http:/example.com',\n 'ftp://example .com',\n 'http://example',\n 'not-a-url',\n 'http//example.com',\n 'https://example.com/ spaces',\n ]\n\n shouldNotMatch.forEach((testCase) => {\n expect(absoluteRegExp.test(testCase)).not.toBe(true)\n })\n })\n })\n\n describe('validateUrl', () => {\n describe('absolute URLs', () => {\n it('should validate http and https URLs', () => {\n const validUrls = [\n 'http://example.com',\n 'https://example.com',\n 'http://www.example.com',\n 'https://sub.example.com/path/file',\n 'http://example.com/resource',\n 'https://example.com/resource?key=value',\n 'http://example.com/resource#anchor',\n ]\n\n validUrls.forEach((url) => {\n expect(validateUrl(url)).toBe(true)\n })\n })\n\n it('should validate other protocol URLs', () => {\n const validUrls = ['ftp://files.example.com', 'mailto:email@example.com', 'tel:+1234567890']\n\n validUrls.forEach((url) => {\n expect(validateUrl(url)).toBe(true)\n })\n })\n\n it('should validate www URLs without protocol', () => {\n const validUrls = [\n 'www.example.com',\n 'www.example.com/resource',\n 'www.example.com/resource?query=1',\n 'www.example.com#fragment',\n ]\n\n validUrls.forEach((url) => {\n expect(validateUrl(url)).toBe(true)\n })\n })\n })\n\n describe('relative URLs', () => {\n it('should validate relative paths', () => {\n const validUrls = [\n '/path/to/resource',\n '/file-name.html',\n '/',\n '/dir/',\n '/path.with.dots/',\n '/path#fragment',\n ]\n\n validUrls.forEach((url) => {\n expect(validateUrl(url)).toBe(true)\n })\n })\n })\n\n describe('anchor links', () => {\n it('should validate anchor links', () => {\n const validUrls = ['#anchor', '#section-title']\n\n validUrls.forEach((url) => {\n expect(validateUrl(url)).toBe(true)\n })\n })\n })\n\n describe('with query params', () => {\n it('should validate relative URLs with query parameters', () => {\n const validUrls = [\n '/page?id=123',\n '/search?q=test',\n '/products?category=electronics&sort=price',\n '/path?key=value&another=param',\n '/page?id=123&filter=active',\n '/?global=true',\n ]\n\n validUrls.forEach((url) => {\n expect(validateUrl(url)).toBe(true)\n })\n })\n\n it('should validate absolute URLs with query parameters', () => {\n const validUrls = [\n 'https://example.com?id=123',\n 'http://example.com/page?key=value',\n 'www.example.com?search=query',\n 'https://example.com/path?a=1&b=2&c=3',\n ]\n\n validUrls.forEach((url) => {\n expect(validateUrl(url)).toBe(true)\n })\n })\n\n it('should validate URLs with query parameters and anchors', () => {\n const validUrls = [\n '/page?id=123#section',\n 'https://example.com?key=value#anchor',\n '/search?q=test#results',\n ]\n\n validUrls.forEach((url) => {\n expect(validateUrl(url)).toBe(true)\n })\n })\n })\n\n describe('edge cases', () => {\n it('should handle the default https:// case', () => {\n expect(validateUrl('https://')).toBe(true)\n })\n\n it('should return false for empty or invalid URLs', () => {\n const invalidUrls = [\n '',\n 'not-a-url',\n 'example.com',\n 'relative/path',\n 'file.html',\n 'some#fragment',\n 'http://',\n 'http:/example.com',\n 'http//example.com',\n ]\n\n invalidUrls.forEach((url) => {\n expect(validateUrl(url)).toBe(false)\n })\n })\n\n it('should return false for URLs with spaces', () => {\n const invalidUrls = [\n '/path/with spaces',\n 'http://example.com/ spaces',\n 'https://example.com/path with spaces',\n ]\n\n invalidUrls.forEach((url) => {\n expect(validateUrl(url)).toBe(false)\n })\n })\n\n it('should return false for malformed URLs', () => {\n const invalidUrls = ['://missing.scheme', 'ftp://example .com', 'http://example', '#', '/#']\n\n invalidUrls.forEach((url) => {\n expect(validateUrl(url)).toBe(false)\n })\n })\n })\n })\n})\n"],"mappings":"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","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export * from '@lexical/react/LexicalContextMenuPlugin';
2
- //# sourceMappingURL=LexicalContextMenuPlugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LexicalContextMenuPlugin.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.tsx"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from '@lexical/react/LexicalContextMenuPlugin';
2
- //# sourceMappingURL=LexicalContextMenuPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LexicalContextMenuPlugin.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.tsx"],"sourcesContent":["export * from '@lexical/react/LexicalContextMenuPlugin'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1,74 +0,0 @@
1
- import type { SerializedLineBreakNode as _SerializedLineBreakNode, SerializedTabNode as _SerializedTabNode, SerializedTextNode as _SerializedTextNode, SerializedEditorState, SerializedElementNode, SerializedLexicalNode } from 'lexical';
2
- import type { SerializedQuoteNode } from './features/blockquote/server/index.js';
3
- import type { SerializedBlockNode } from './features/blocks/server/nodes/BlocksNode.js';
4
- import type { SerializedInlineBlockNode } from './features/blocks/server/nodes/InlineBlocksNode.js';
5
- import type { SerializedTableCellNode, SerializedTableNode, SerializedTableRowNode } from './features/experimental_table/server/index.js';
6
- import type { SerializedHeadingNode } from './features/heading/server/index.js';
7
- import type { SerializedHorizontalRuleNode } from './features/horizontalRule/server/nodes/HorizontalRuleNode.js';
8
- import type { SerializedAutoLinkNode, SerializedLinkNode } from './features/link/nodes/types.js';
9
- import type { SerializedListItemNode, SerializedListNode } from './features/lists/plugin/index.js';
10
- import type { SerializedRelationshipNode } from './features/relationship/server/nodes/RelationshipNode.js';
11
- import type { SerializedUploadNode } from './features/upload/server/nodes/UploadNode.js';
12
- /**
13
- * Helper type to create strongly typed serialized nodes with flexible children types.
14
- * Omits 'children' and 'type' from the base node type and redeclares them with proper typing.
15
- *
16
- * @param TBase - The base Lexical node type (e.g., _SerializedHeadingNode)
17
- * @param TType - The node type string (e.g., 'heading')
18
- * @param TChildren - The type for children (defaults to SerializedLexicalNode)
19
- */
20
- export type StronglyTypedElementNode<TBase, TType extends string, TChildren extends SerializedLexicalNode = SerializedLexicalNode> = {
21
- children: TChildren[];
22
- type: TType;
23
- } & Omit<TBase, 'children' | 'type'>;
24
- /**
25
- * Helper type to create strongly typed leaf nodes (nodes without children).
26
- * Omits 'children' and 'type' from the base node type and redeclares 'type' with a literal.
27
- *
28
- * @param TBase - The base Lexical node type (e.g., _SerializedTextNode)
29
- * @param TType - The node type string (e.g., 'text')
30
- */
31
- export type StronglyTypedLeafNode<TBase, TType extends string> = {
32
- type: TType;
33
- } & Omit<TBase, 'children' | 'type'>;
34
- export type { SerializedAutoLinkNode, SerializedBlockNode, SerializedHeadingNode, SerializedHorizontalRuleNode, SerializedInlineBlockNode, SerializedLinkNode, SerializedListItemNode, SerializedListNode, SerializedQuoteNode, SerializedRelationshipNode, SerializedTableCellNode, SerializedTableNode, SerializedTableRowNode, SerializedUploadNode, };
35
- export type SerializedParagraphNode<T extends SerializedLexicalNode = SerializedLexicalNode> = {
36
- textFormat: number;
37
- } & StronglyTypedElementNode<SerializedElementNode, 'paragraph', T>;
38
- export type SerializedTextNode = StronglyTypedLeafNode<_SerializedTextNode, 'text'>;
39
- export type SerializedTabNode = StronglyTypedLeafNode<_SerializedTabNode, 'tab'>;
40
- export type SerializedLineBreakNode = StronglyTypedLeafNode<_SerializedLineBreakNode, 'linebreak'>;
41
- /**
42
- * Recursively adds typed children to nodes up to a specified depth.
43
- *
44
- * Key behaviors:
45
- * - `T extends any`: Distributive - processes each union member individually
46
- * - `OriginalUnion`: Preserves full union so nested children accept all node types, not just parent's type. If we just used `T`, the type would be narrowed to the parent's type and the children would only consist of the parent's type.
47
- * - `'children' extends keyof T`: Only adds children to container nodes; respects leaf nodes that use `Omit<_, 'children'>`
48
- * - `Depth`: Limits recursion to prevent infinite types (default: 4 levels)
49
- *
50
- * @internal - this type may change or be removed in a minor release
51
- */
52
- export type RecursiveNodes<T extends SerializedLexicalNode, Depth extends number = 4, OriginalUnion extends SerializedLexicalNode = T> = T extends any ? Depth extends 0 ? T : 'children' extends keyof T ? {
53
- children?: RecursiveNodes<OriginalUnion, DecrementDepth<Depth>, OriginalUnion>[];
54
- } & T : T : never;
55
- /** Decrements depth: 4→3, 3→2, 2→1, 1→0, 0→0 */
56
- type DecrementDepth<N extends number> = [0, 0, 1, 2, 3, 4][N];
57
- /**
58
- * Alternative type to `SerializedEditorState` that automatically types your nodes
59
- * more strictly, narrowing down nodes based on the `type` without having to manually
60
- * type-cast.
61
- */
62
- export type TypedEditorState<T extends SerializedLexicalNode = SerializedLexicalNode> = {
63
- [k: string]: unknown;
64
- } & SerializedEditorState<RecursiveNodes<T>>;
65
- /**
66
- * All node types included by default in a lexical editor without configuration.
67
- */
68
- export type DefaultNodeTypes = SerializedAutoLinkNode | SerializedHeadingNode | SerializedHorizontalRuleNode | SerializedLineBreakNode | SerializedLinkNode | SerializedListItemNode | SerializedListNode | SerializedParagraphNode | SerializedQuoteNode | SerializedRelationshipNode | SerializedTabNode | SerializedTextNode | SerializedUploadNode;
69
- /**
70
- * Like `TypedEditorState` but includes all default node types.
71
- * You can pass *additional* node types as a generic parameter.
72
- */
73
- export type DefaultTypedEditorState<TAdditionalNodeTypes extends null | SerializedLexicalNode = null> = [TAdditionalNodeTypes] extends null ? TypedEditorState<DefaultNodeTypes> : TypedEditorState<DefaultNodeTypes | NonNullable<TAdditionalNodeTypes>>;
74
- //# sourceMappingURL=nodeTypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nodeTypes.d.ts","sourceRoot":"","sources":["../src/nodeTypes.ts"],"names":[],"mappings":"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"}
package/dist/nodeTypes.js DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Like `TypedEditorState` but includes all default node types.
3
- * You can pass *additional* node types as a generic parameter.
4
- */export {};
5
- //# sourceMappingURL=nodeTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nodeTypes.js","names":[],"sources":["../src/nodeTypes.ts"],"sourcesContent":["import type {\n SerializedLineBreakNode as _SerializedLineBreakNode,\n SerializedTabNode as _SerializedTabNode,\n SerializedTextNode as _SerializedTextNode,\n SerializedEditorState,\n SerializedElementNode,\n SerializedLexicalNode,\n} from 'lexical'\n\nimport type { SerializedQuoteNode } from './features/blockquote/server/index.js'\nimport type { SerializedBlockNode } from './features/blocks/server/nodes/BlocksNode.js'\nimport type { SerializedInlineBlockNode } from './features/blocks/server/nodes/InlineBlocksNode.js'\nimport type {\n SerializedTableCellNode,\n SerializedTableNode,\n SerializedTableRowNode,\n} from './features/experimental_table/server/index.js'\nimport type { SerializedHeadingNode } from './features/heading/server/index.js'\nimport type { SerializedHorizontalRuleNode } from './features/horizontalRule/server/nodes/HorizontalRuleNode.js'\nimport type { SerializedAutoLinkNode, SerializedLinkNode } from './features/link/nodes/types.js'\nimport type { SerializedListItemNode, SerializedListNode } from './features/lists/plugin/index.js'\nimport type { SerializedRelationshipNode } from './features/relationship/server/nodes/RelationshipNode.js'\nimport type { SerializedUploadNode } from './features/upload/server/nodes/UploadNode.js'\n\n/**\n * Helper type to create strongly typed serialized nodes with flexible children types.\n * Omits 'children' and 'type' from the base node type and redeclares them with proper typing.\n *\n * @param TBase - The base Lexical node type (e.g., _SerializedHeadingNode)\n * @param TType - The node type string (e.g., 'heading')\n * @param TChildren - The type for children (defaults to SerializedLexicalNode)\n */\nexport type StronglyTypedElementNode<\n TBase,\n TType extends string,\n TChildren extends SerializedLexicalNode = SerializedLexicalNode,\n> = {\n children: TChildren[]\n type: TType\n} & Omit<TBase, 'children' | 'type'>\n\n/**\n * Helper type to create strongly typed leaf nodes (nodes without children).\n * Omits 'children' and 'type' from the base node type and redeclares 'type' with a literal.\n *\n * @param TBase - The base Lexical node type (e.g., _SerializedTextNode)\n * @param TType - The node type string (e.g., 'text')\n */\nexport type StronglyTypedLeafNode<TBase, TType extends string> = {\n type: TType\n} & Omit<TBase, 'children' | 'type'>\n\nexport type {\n SerializedAutoLinkNode,\n SerializedBlockNode,\n SerializedHeadingNode,\n SerializedHorizontalRuleNode,\n SerializedInlineBlockNode,\n SerializedLinkNode,\n SerializedListItemNode,\n SerializedListNode,\n SerializedQuoteNode,\n SerializedRelationshipNode,\n SerializedTableCellNode,\n SerializedTableNode,\n SerializedTableRowNode,\n SerializedUploadNode,\n}\n\nexport type SerializedParagraphNode<T extends SerializedLexicalNode = SerializedLexicalNode> = {\n textFormat: number\n} & StronglyTypedElementNode<SerializedElementNode, 'paragraph', T>\n\nexport type SerializedTextNode = StronglyTypedLeafNode<_SerializedTextNode, 'text'>\n\nexport type SerializedTabNode = StronglyTypedLeafNode<_SerializedTabNode, 'tab'>\n\nexport type SerializedLineBreakNode = StronglyTypedLeafNode<_SerializedLineBreakNode, 'linebreak'>\n\n/**\n * Recursively adds typed children to nodes up to a specified depth.\n *\n * Key behaviors:\n * - `T extends any`: Distributive - processes each union member individually\n * - `OriginalUnion`: Preserves full union so nested children accept all node types, not just parent's type. If we just used `T`, the type would be narrowed to the parent's type and the children would only consist of the parent's type.\n * - `'children' extends keyof T`: Only adds children to container nodes; respects leaf nodes that use `Omit<_, 'children'>`\n * - `Depth`: Limits recursion to prevent infinite types (default: 4 levels)\n *\n * @internal - this type may change or be removed in a minor release\n */\nexport type RecursiveNodes<\n T extends SerializedLexicalNode,\n Depth extends number = 4,\n OriginalUnion extends SerializedLexicalNode = T,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n> = T extends any // Make distributive over unions\n ? Depth extends 0\n ? T\n : 'children' extends keyof T\n ? { children?: RecursiveNodes<OriginalUnion, DecrementDepth<Depth>, OriginalUnion>[] } & T\n : T // Skip leaf nodes\n : never\n\n/** Decrements depth: 4→3, 3→2, 2→1, 1→0, 0→0 */\ntype DecrementDepth<N extends number> = [0, 0, 1, 2, 3, 4][N]\n\n/**\n * Alternative type to `SerializedEditorState` that automatically types your nodes\n * more strictly, narrowing down nodes based on the `type` without having to manually\n * type-cast.\n */\nexport type TypedEditorState<T extends SerializedLexicalNode = SerializedLexicalNode> = {\n [k: string]: unknown\n} & SerializedEditorState<RecursiveNodes<T>>\n\n/**\n * All node types included by default in a lexical editor without configuration.\n */\nexport type DefaultNodeTypes =\n | SerializedAutoLinkNode\n //| SerializedBlockNode // Not included by default\n | SerializedHeadingNode\n | SerializedHorizontalRuleNode\n | SerializedLineBreakNode\n | SerializedLinkNode\n | SerializedListItemNode\n | SerializedListNode\n | SerializedParagraphNode\n | SerializedQuoteNode\n | SerializedRelationshipNode\n | SerializedTabNode\n | SerializedTextNode\n | SerializedUploadNode\n\n/**\n * Like `TypedEditorState` but includes all default node types.\n * You can pass *additional* node types as a generic parameter.\n */\nexport type DefaultTypedEditorState<\n TAdditionalNodeTypes extends null | SerializedLexicalNode = null,\n> = [TAdditionalNodeTypes] extends null\n ? TypedEditorState<DefaultNodeTypes>\n : TypedEditorState<DefaultNodeTypes | NonNullable<TAdditionalNodeTypes>>\n"],"mappings":"AAsIA;;;GAIA","ignoreList":[]}
@@ -1,14 +0,0 @@
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 { ElementNode } from 'lexical';
9
- import type { Transformer } from './MarkdownTransformers.js';
10
- /**
11
- * Renders string from markdown. The selection is moved to the start after the operation.
12
- */
13
- export declare function createMarkdownExport(transformers: Array<Transformer>, shouldPreserveNewLines?: boolean): (node?: ElementNode) => string;
14
- //# sourceMappingURL=MarkdownExport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MarkdownExport.d.ts","sourceRoot":"","sources":["../../../../src/packages/@lexical/markdown/MarkdownExport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAyC,MAAM,SAAS,CAAA;AAIjF,OAAO,KAAK,EAKV,WAAW,EACZ,MAAM,2BAA2B,CAAA;AAIlC;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,EAChC,sBAAsB,GAAE,OAAe,GACtC,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,MAAM,CAkDhC"}