@payloadcms/richtext-lexical 4.0.0-internal.1f9ae9a → 4.0.0-internal.21320b5

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 (719) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/cell/rscEntry.d.ts.map +1 -1
  3. package/dist/cell/rscEntry.js +5 -5
  4. package/dist/cell/rscEntry.js.map +1 -1
  5. package/dist/exports/client/Field-F22V5L4V.js +2 -0
  6. package/dist/exports/client/Field-F22V5L4V.js.map +7 -0
  7. package/dist/exports/client/{RelationshipComponent-RZL743CS.js → RelationshipComponent-YCPAKOL7.js} +1 -1
  8. package/dist/exports/client/RelationshipComponent-YCPAKOL7.js.map +7 -0
  9. package/dist/exports/client/bundled.css +1 -1
  10. package/dist/exports/client/chunk-43E5QYAA.js +2 -0
  11. package/dist/exports/client/chunk-43E5QYAA.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-ESITTE3C.js +2 -0
  15. package/dist/exports/client/chunk-ESITTE3C.js.map +7 -0
  16. package/dist/exports/client/chunk-LN6VX25I.js +2 -0
  17. package/dist/exports/client/chunk-LN6VX25I.js.map +7 -0
  18. package/dist/exports/client/component-D5QLYS7W.js +2 -0
  19. package/dist/exports/client/component-D5QLYS7W.js.map +7 -0
  20. package/dist/exports/client/componentInline-H24N7GUG.js +2 -0
  21. package/dist/exports/client/index.d.ts +1 -2
  22. package/dist/exports/client/index.d.ts.map +1 -1
  23. package/dist/exports/client/index.js +27 -28
  24. package/dist/exports/client/index.js.map +4 -4
  25. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -1
  26. package/dist/features/blockquote/client/index.js +2 -2
  27. package/dist/features/blockquote/client/index.js.map +1 -1
  28. package/dist/features/blockquote/server/index.d.ts +1 -4
  29. package/dist/features/blockquote/server/index.d.ts.map +1 -1
  30. package/dist/features/blockquote/server/index.js +4 -2
  31. package/dist/features/blockquote/server/index.js.map +1 -1
  32. package/dist/features/blockquote/server/schema.d.ts +8 -0
  33. package/dist/features/blockquote/server/schema.d.ts.map +1 -0
  34. package/dist/features/blockquote/server/schema.js +15 -0
  35. package/dist/features/blockquote/server/schema.js.map +1 -0
  36. package/dist/features/blocks/client/component/index.css +2 -2
  37. package/dist/features/blocks/client/component/index.d.ts +2 -1
  38. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  39. package/dist/features/blocks/client/component/index.js +16 -8
  40. package/dist/features/blocks/client/component/index.js.map +1 -1
  41. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.d.ts.map +1 -1
  42. package/dist/features/blocks/client/componentInline/index.css +8 -8
  43. package/dist/features/blocks/client/componentInline/index.d.ts +2 -1
  44. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  45. package/dist/features/blocks/client/componentInline/index.js +15 -7
  46. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  47. package/dist/features/blocks/client/getBlockImageComponent.d.ts +1 -1
  48. package/dist/features/blocks/client/index.d.ts.map +1 -1
  49. package/dist/features/blocks/client/index.js +4 -2
  50. package/dist/features/blocks/client/index.js.map +1 -1
  51. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts +1 -1
  52. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts.map +1 -1
  53. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js +1 -1
  54. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js.map +1 -1
  55. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts +1 -1
  56. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts.map +1 -1
  57. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js +5 -2
  58. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js.map +1 -1
  59. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts +1 -2
  60. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -1
  61. package/dist/features/blocks/client/markdown/markdownTransformer.js +4 -4
  62. package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -1
  63. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +1 -1
  64. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
  65. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  66. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +1 -1
  67. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -1
  68. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
  69. package/dist/features/blocks/client/plugin/index.d.ts +1 -1
  70. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -1
  71. package/dist/features/blocks/client/plugin/index.js.map +1 -1
  72. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -1
  73. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +1 -0
  74. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  75. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.css +1 -1
  76. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.css +2 -4
  77. package/dist/features/blocks/premade/CodeBlock/Component/index.css +5 -5
  78. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +1 -2
  79. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -1
  80. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -1
  81. package/dist/features/blocks/server/index.d.ts +1 -0
  82. package/dist/features/blocks/server/index.d.ts.map +1 -1
  83. package/dist/features/blocks/server/index.js +26 -74
  84. package/dist/features/blocks/server/index.js.map +1 -1
  85. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts +1 -1
  86. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -1
  87. package/dist/features/blocks/server/markdown/markdownTransformer.js +4 -4
  88. package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -1
  89. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +1 -18
  90. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -1
  91. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
  92. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +2 -10
  93. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -1
  94. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
  95. package/dist/features/blocks/server/schema.d.ts +45 -0
  96. package/dist/features/blocks/server/schema.d.ts.map +1 -0
  97. package/dist/features/blocks/server/schema.js +140 -0
  98. package/dist/features/blocks/server/schema.js.map +1 -0
  99. package/dist/features/blocks/server/validate.d.ts +1 -2
  100. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  101. package/dist/features/blocks/server/validate.js.map +1 -1
  102. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -1
  103. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  104. package/dist/features/converters/lexicalToHtml/async/types.d.ts +14 -15
  105. package/dist/features/converters/lexicalToHtml/async/types.d.ts.map +1 -1
  106. package/dist/features/converters/lexicalToHtml/async/types.js.map +1 -1
  107. package/dist/features/converters/lexicalToHtml/shared/cssColors.d.ts.map +1 -1
  108. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  109. package/dist/features/converters/lexicalToHtml/sync/types.d.ts +14 -15
  110. package/dist/features/converters/lexicalToHtml/sync/types.d.ts.map +1 -1
  111. package/dist/features/converters/lexicalToHtml/sync/types.js.map +1 -1
  112. package/dist/features/converters/lexicalToJSX/Component/index.d.ts +4 -2
  113. package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -1
  114. package/dist/features/converters/lexicalToJSX/Component/index.js +5 -4
  115. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
  116. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  117. package/dist/features/converters/lexicalToJSX/converter/types.d.ts +12 -14
  118. package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -1
  119. package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -1
  120. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -1
  121. package/dist/features/converters/lexicalToMarkdown/index.js +1 -1
  122. package/dist/features/converters/lexicalToMarkdown/index.js.map +1 -1
  123. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts +12 -14
  124. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts.map +1 -1
  125. package/dist/features/converters/lexicalToPlaintext/sync/types.js.map +1 -1
  126. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -1
  127. package/dist/features/converters/markdownToLexical/index.js +5 -2
  128. package/dist/features/converters/markdownToLexical/index.js.map +1 -1
  129. package/dist/features/debug/jsxConverter/client/plugin/style.css +2 -2
  130. package/dist/features/debug/testRecorder/client/plugin/index.css +0 -1
  131. package/dist/features/format/bold/feature.client.js +1 -1
  132. package/dist/features/format/bold/feature.client.js.map +1 -1
  133. package/dist/features/format/bold/feature.server.d.ts.map +1 -1
  134. package/dist/features/format/bold/feature.server.js +1 -1
  135. package/dist/features/format/bold/feature.server.js.map +1 -1
  136. package/dist/features/format/inlineCode/feature.client.js +1 -1
  137. package/dist/features/format/inlineCode/feature.client.js.map +1 -1
  138. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -1
  139. package/dist/features/format/inlineCode/feature.server.js +1 -1
  140. package/dist/features/format/inlineCode/feature.server.js.map +1 -1
  141. package/dist/features/format/italic/feature.client.js +1 -1
  142. package/dist/features/format/italic/feature.client.js.map +1 -1
  143. package/dist/features/format/italic/feature.server.d.ts.map +1 -1
  144. package/dist/features/format/italic/feature.server.js +1 -1
  145. package/dist/features/format/italic/feature.server.js.map +1 -1
  146. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -1
  147. package/dist/features/format/strikethrough/feature.client.js +1 -1
  148. package/dist/features/format/strikethrough/feature.client.js.map +1 -1
  149. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -1
  150. package/dist/features/format/strikethrough/feature.server.js +1 -1
  151. package/dist/features/format/strikethrough/feature.server.js.map +1 -1
  152. package/dist/features/heading/client/index.js +2 -2
  153. package/dist/features/heading/client/index.js.map +1 -1
  154. package/dist/features/heading/markdownTransformer.d.ts +2 -2
  155. package/dist/features/heading/markdownTransformer.d.ts.map +1 -1
  156. package/dist/features/heading/markdownTransformer.js +6 -19
  157. package/dist/features/heading/markdownTransformer.js.map +1 -1
  158. package/dist/features/heading/server/index.d.ts +2 -4
  159. package/dist/features/heading/server/index.d.ts.map +1 -1
  160. package/dist/features/heading/server/index.js +4 -2
  161. package/dist/features/heading/server/index.js.map +1 -1
  162. package/dist/features/heading/server/schema.d.ts +10 -0
  163. package/dist/features/heading/server/schema.d.ts.map +1 -0
  164. package/dist/features/heading/server/schema.js +37 -0
  165. package/dist/features/heading/server/schema.js.map +1 -0
  166. package/dist/features/horizontalRule/client/index.js +2 -2
  167. package/dist/features/horizontalRule/client/index.js.map +1 -1
  168. package/dist/features/horizontalRule/client/markdownTransformer.d.ts +2 -2
  169. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -1
  170. package/dist/features/horizontalRule/client/markdownTransformer.js +1 -1
  171. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -1
  172. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +2 -2
  173. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
  174. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +1 -1
  175. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  176. package/dist/features/horizontalRule/client/plugin/index.css +2 -2
  177. package/dist/features/horizontalRule/server/index.d.ts +1 -0
  178. package/dist/features/horizontalRule/server/index.d.ts.map +1 -1
  179. package/dist/features/horizontalRule/server/index.js +4 -2
  180. package/dist/features/horizontalRule/server/index.js.map +1 -1
  181. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +2 -2
  182. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -1
  183. package/dist/features/horizontalRule/server/markdownTransformer.js +1 -1
  184. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -1
  185. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +2 -6
  186. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -1
  187. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +1 -1
  188. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
  189. package/dist/features/horizontalRule/server/schema.d.ts +7 -0
  190. package/dist/features/horizontalRule/server/schema.d.ts.map +1 -0
  191. package/dist/features/horizontalRule/server/schema.js +25 -0
  192. package/dist/features/horizontalRule/server/schema.js.map +1 -0
  193. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -1
  194. package/dist/features/link/client/index.d.ts.map +1 -1
  195. package/dist/features/link/client/index.js +2 -2
  196. package/dist/features/link/client/index.js.map +1 -1
  197. package/dist/features/link/client/plugins/autoLink/index.d.ts +1 -1
  198. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  199. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
  200. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +3 -3
  201. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  202. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +7 -12
  203. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +1 -1
  204. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -1
  205. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -1
  206. package/dist/features/link/client/plugins/link/index.js.map +1 -1
  207. package/dist/features/link/markdownTransformer.d.ts +5 -5
  208. package/dist/features/link/markdownTransformer.d.ts.map +1 -1
  209. package/dist/features/link/markdownTransformer.js +2 -2
  210. package/dist/features/link/markdownTransformer.js.map +1 -1
  211. package/dist/features/link/markdownTransformer.spec.js +10 -10
  212. package/dist/features/link/markdownTransformer.spec.js.map +1 -1
  213. package/dist/features/link/nodes/AutoLinkNode.d.ts +4 -4
  214. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  215. package/dist/features/link/nodes/AutoLinkNode.js +2 -1
  216. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  217. package/dist/features/link/nodes/LinkNode.d.ts +4 -4
  218. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  219. package/dist/features/link/nodes/LinkNode.js +2 -1
  220. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  221. package/dist/features/link/server/baseFields.d.ts.map +1 -1
  222. package/dist/features/link/server/baseFields.js.map +1 -1
  223. package/dist/features/link/server/graphQLPopulationPromise.d.ts +1 -1
  224. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -1
  225. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -1
  226. package/dist/features/link/server/index.d.ts +2 -1
  227. package/dist/features/link/server/index.d.ts.map +1 -1
  228. package/dist/features/link/server/index.js +7 -4
  229. package/dist/features/link/server/index.js.map +1 -1
  230. package/dist/features/link/server/schema.d.ts +32 -0
  231. package/dist/features/link/server/schema.d.ts.map +1 -0
  232. package/dist/features/link/server/schema.js +171 -0
  233. package/dist/features/link/server/schema.js.map +1 -0
  234. package/dist/features/link/server/validate.d.ts +1 -1
  235. package/dist/features/link/server/validate.d.ts.map +1 -1
  236. package/dist/features/link/server/validate.js.map +1 -1
  237. package/dist/features/lists/checklist/client/index.js +1 -1
  238. package/dist/features/lists/checklist/client/index.js.map +1 -1
  239. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  240. package/dist/features/lists/checklist/server/index.js +4 -1
  241. package/dist/features/lists/checklist/server/index.js.map +1 -1
  242. package/dist/features/lists/orderedList/client/index.js +1 -1
  243. package/dist/features/lists/orderedList/client/index.js.map +1 -1
  244. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  245. package/dist/features/lists/orderedList/server/index.js +4 -1
  246. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  247. package/dist/features/lists/plugin/index.d.ts +0 -9
  248. package/dist/features/lists/plugin/index.d.ts.map +1 -1
  249. package/dist/features/lists/plugin/index.js.map +1 -1
  250. package/dist/features/lists/shared/schema.d.ts +18 -0
  251. package/dist/features/lists/shared/schema.d.ts.map +1 -0
  252. package/dist/features/lists/shared/schema.js +62 -0
  253. package/dist/features/lists/shared/schema.js.map +1 -0
  254. package/dist/features/lists/unorderedList/client/index.js +1 -1
  255. package/dist/features/lists/unorderedList/client/index.js.map +1 -1
  256. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  257. package/dist/features/lists/unorderedList/server/index.js +4 -1
  258. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  259. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +1 -1
  260. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -1
  261. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  262. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -1
  263. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +1 -1
  264. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
  265. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  266. package/dist/features/relationship/client/plugins/index.d.ts +1 -1
  267. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  268. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  269. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  270. package/dist/features/relationship/client/utils/useEnabledRelationships.js +9 -40
  271. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  272. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +1 -1
  273. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  274. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  275. package/dist/features/relationship/server/index.d.ts +1 -0
  276. package/dist/features/relationship/server/index.d.ts.map +1 -1
  277. package/dist/features/relationship/server/index.js +2 -0
  278. package/dist/features/relationship/server/index.js.map +1 -1
  279. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +1 -10
  280. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -1
  281. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
  282. package/dist/features/relationship/server/schema.d.ts +28 -0
  283. package/dist/features/relationship/server/schema.d.ts.map +1 -0
  284. package/dist/features/relationship/server/schema.js +97 -0
  285. package/dist/features/relationship/server/schema.js.map +1 -0
  286. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +23 -0
  287. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -0
  288. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +34 -0
  289. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -0
  290. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -1
  291. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -1
  292. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -1
  293. package/dist/features/table/client/index.d.ts.map +1 -0
  294. package/dist/features/{experimental_table → table}/client/index.js +2 -2
  295. package/dist/features/table/client/index.js.map +1 -0
  296. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  297. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
  298. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  299. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
  300. package/dist/features/table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  301. package/dist/features/table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  302. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +1 -0
  303. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.js.map +1 -0
  304. package/dist/features/table/client/plugins/TablePlugin/index.d.ts.map +1 -0
  305. package/dist/features/table/client/plugins/TablePlugin/index.js.map +1 -0
  306. package/dist/features/table/client/utils/debounce.d.ts.map +1 -0
  307. package/dist/features/table/client/utils/debounce.js.map +1 -0
  308. package/dist/features/table/client/utils/useDebounce.d.ts.map +1 -0
  309. package/dist/features/table/client/utils/useDebounce.js.map +1 -0
  310. package/dist/features/table/markdownTransformer.d.ts +5 -0
  311. package/dist/features/table/markdownTransformer.d.ts.map +1 -0
  312. package/dist/features/{experimental_table → table}/markdownTransformer.js +6 -3
  313. package/dist/features/table/markdownTransformer.js.map +1 -0
  314. package/dist/features/table/server/index.d.ts +3 -0
  315. package/dist/features/table/server/index.d.ts.map +1 -0
  316. package/dist/features/{experimental_table → table}/server/index.js +10 -6
  317. package/dist/features/table/server/index.js.map +1 -0
  318. package/dist/features/table/server/schema.d.ts +27 -0
  319. package/dist/features/table/server/schema.d.ts.map +1 -0
  320. package/dist/features/table/server/schema.js +107 -0
  321. package/dist/features/table/server/schema.js.map +1 -0
  322. package/dist/features/textState/feature.client.js +1 -1
  323. package/dist/features/textState/feature.client.js.map +1 -1
  324. package/dist/features/toolbars/fixed/client/Toolbar/index.css +4 -6
  325. package/dist/features/toolbars/inline/client/Toolbar/index.css +2 -14
  326. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  327. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +8 -14
  328. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  329. package/dist/features/toolbars/shared/useToolbarStates.d.ts.map +1 -1
  330. package/dist/features/toolbars/shared/useToolbarStates.js +3 -1
  331. package/dist/features/toolbars/shared/useToolbarStates.js.map +1 -1
  332. package/dist/features/typesClient.d.ts +1 -1
  333. package/dist/features/typesClient.d.ts.map +1 -1
  334. package/dist/features/typesClient.js.map +1 -1
  335. package/dist/features/typesServer.d.ts +19 -42
  336. package/dist/features/typesServer.d.ts.map +1 -1
  337. package/dist/features/typesServer.js.map +1 -1
  338. package/dist/features/upload/client/component/index.css +11 -11
  339. package/dist/features/upload/client/component/index.d.ts +1 -1
  340. package/dist/features/upload/client/component/index.d.ts.map +1 -1
  341. package/dist/features/upload/client/component/index.js +2 -1
  342. package/dist/features/upload/client/component/index.js.map +1 -1
  343. package/dist/features/upload/client/drawer/index.d.ts.map +1 -1
  344. package/dist/features/upload/client/nodes/UploadNode.d.ts +1 -1
  345. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
  346. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  347. package/dist/features/upload/client/plugin/index.d.ts +1 -1
  348. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  349. package/dist/features/upload/client/plugin/index.js +5 -5
  350. package/dist/features/upload/client/plugin/index.js.map +1 -1
  351. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +1 -1
  352. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  353. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  354. package/dist/features/upload/server/index.d.ts +1 -0
  355. package/dist/features/upload/server/index.d.ts.map +1 -1
  356. package/dist/features/upload/server/index.js +7 -6
  357. package/dist/features/upload/server/index.js.map +1 -1
  358. package/dist/features/upload/server/markdownTransformer.d.ts +2 -2
  359. package/dist/features/upload/server/markdownTransformer.d.ts.map +1 -1
  360. package/dist/features/upload/server/markdownTransformer.js +1 -1
  361. package/dist/features/upload/server/markdownTransformer.js.map +1 -1
  362. package/dist/features/upload/server/nodes/UploadNode.d.ts +1 -55
  363. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  364. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  365. package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -1
  366. package/dist/features/upload/server/nodes/conversions.js.map +1 -1
  367. package/dist/features/upload/server/schema.d.ts +52 -0
  368. package/dist/features/upload/server/schema.d.ts.map +1 -0
  369. package/dist/features/upload/server/schema.js +149 -0
  370. package/dist/features/upload/server/schema.js.map +1 -0
  371. package/dist/features/upload/server/validate.d.ts +1 -1
  372. package/dist/features/upload/server/validate.d.ts.map +1 -1
  373. package/dist/features/upload/server/validate.js.map +1 -1
  374. package/dist/field/Diff/converters/unknown/index.css +1 -1
  375. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  376. package/dist/field/Field.d.ts.map +1 -1
  377. package/dist/field/Field.js +18 -15
  378. package/dist/field/Field.js.map +1 -1
  379. package/dist/field/ViewSelector.css +1 -1
  380. package/dist/field/bundled.css +1 -1
  381. package/dist/field/index.css +15 -15
  382. package/dist/field/index.js +1 -1
  383. package/dist/field/index.js.map +1 -1
  384. package/dist/field/rscEntry.d.ts.map +1 -1
  385. package/dist/field/rscEntry.js +2 -0
  386. package/dist/field/rscEntry.js.map +1 -1
  387. package/dist/i18n.d.ts.map +1 -1
  388. package/dist/i18n.js +68 -0
  389. package/dist/i18n.js.map +1 -1
  390. package/dist/index.d.ts +11 -8
  391. package/dist/index.d.ts.map +1 -1
  392. package/dist/index.js +7 -7
  393. package/dist/index.js.map +1 -1
  394. package/dist/lexical/LexicalEditor.css +18 -18
  395. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  396. package/dist/lexical/config/client/loader.d.ts.map +1 -1
  397. package/dist/lexical/config/client/loader.js +5 -1
  398. package/dist/lexical/config/client/loader.js.map +1 -1
  399. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  400. package/dist/lexical/config/server/loader.d.ts +1 -1
  401. package/dist/lexical/config/server/loader.d.ts.map +1 -1
  402. package/dist/lexical/config/server/loader.js +2 -2
  403. package/dist/lexical/config/server/loader.js.map +1 -1
  404. package/dist/lexical/config/server/sanitize.d.ts +1 -1
  405. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  406. package/dist/lexical/config/server/sanitize.js +11 -13
  407. package/dist/lexical/config/server/sanitize.js.map +1 -1
  408. package/dist/lexical/plugins/DecoratorPlugin/index.css +1 -1
  409. package/dist/lexical/plugins/InsertParagraphAtEnd/index.css +16 -24
  410. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -1
  411. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +27 -14
  412. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  413. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -1
  414. package/dist/lexical/plugins/MarkdownShortcut/index.js +1 -1
  415. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  416. package/dist/lexical/plugins/NodeViewOverridePlugin/index.d.ts.map +1 -1
  417. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js +21 -0
  418. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js.map +1 -1
  419. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +0 -1
  420. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -1
  421. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +1 -20
  422. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  423. package/dist/lexical/plugins/SlashMenu/index.css +1 -6
  424. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +1 -1
  425. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -1
  426. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +4 -3
  427. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +1 -1
  428. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  429. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -1
  430. package/dist/lexical/theme/EditorTheme.css +18 -19
  431. package/dist/lexical/ui/ContentEditable.css +22 -17
  432. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts +17 -0
  433. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts.map +1 -0
  434. package/dist/lexical/utils/markdown/convertFromMarkdownString.js +27 -0
  435. package/dist/lexical/utils/markdown/convertFromMarkdownString.js.map +1 -0
  436. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js +88 -0
  437. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js.map +1 -0
  438. package/dist/lexical/utils/markdown/createBlockNode.d.ts +2 -2
  439. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  440. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -1
  441. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts +25 -0
  442. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts.map +1 -0
  443. package/dist/lexical/utils/markdown/normalizeMarkdown.js +91 -0
  444. package/dist/lexical/utils/markdown/normalizeMarkdown.js.map +1 -0
  445. package/dist/lexical/utils/nodeFormat.d.ts.map +1 -1
  446. package/dist/lexical/utils/point.d.ts.map +1 -1
  447. package/dist/lexical/utils/rect.d.ts.map +1 -1
  448. package/dist/lexical-proxy/@lexical-markdown.d.ts +1 -1
  449. package/dist/lexical-proxy/@lexical-markdown.d.ts.map +1 -1
  450. package/dist/lexical-proxy/@lexical-markdown.js +1 -1
  451. package/dist/lexical-proxy/@lexical-markdown.js.map +1 -1
  452. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.d.ts +2 -0
  453. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.d.ts.map +1 -0
  454. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.js +2 -0
  455. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.js.map +1 -0
  456. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.d.ts +2 -0
  457. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.d.ts.map +1 -0
  458. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.js +2 -0
  459. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.js.map +1 -0
  460. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.d.ts +2 -0
  461. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.d.ts.map +1 -0
  462. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.js +2 -0
  463. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.js.map +1 -0
  464. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.d.ts +2 -0
  465. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.d.ts.map +1 -0
  466. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.js +2 -0
  467. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.js.map +1 -0
  468. package/dist/lexical-proxy/@lexical-react/ReactExtension.d.ts +2 -0
  469. package/dist/lexical-proxy/@lexical-react/ReactExtension.d.ts.map +1 -0
  470. package/dist/lexical-proxy/@lexical-react/ReactExtension.js +2 -0
  471. package/dist/lexical-proxy/@lexical-react/ReactExtension.js.map +1 -0
  472. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.d.ts +2 -0
  473. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.d.ts.map +1 -0
  474. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.js +2 -0
  475. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.js.map +1 -0
  476. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.d.ts +2 -0
  477. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.d.ts.map +1 -0
  478. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.js +2 -0
  479. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.js.map +1 -0
  480. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.d.ts +2 -0
  481. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.d.ts.map +1 -0
  482. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.js +2 -0
  483. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.js.map +1 -0
  484. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.d.ts +2 -0
  485. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.d.ts.map +1 -0
  486. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.js +2 -0
  487. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.js.map +1 -0
  488. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.d.ts +2 -0
  489. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.d.ts.map +1 -0
  490. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.js +2 -0
  491. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.js.map +1 -0
  492. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.d.ts +2 -0
  493. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.d.ts.map +1 -0
  494. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.js +2 -0
  495. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.js.map +1 -0
  496. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.d.ts +2 -0
  497. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.d.ts.map +1 -0
  498. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.js +2 -0
  499. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.js.map +1 -0
  500. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.d.ts +2 -0
  501. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.d.ts.map +1 -0
  502. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.js +2 -0
  503. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.js.map +1 -0
  504. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.d.ts +2 -0
  505. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.d.ts.map +1 -0
  506. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.js +2 -0
  507. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.js.map +1 -0
  508. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.d.ts +2 -0
  509. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.d.ts.map +1 -0
  510. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.js +2 -0
  511. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.js.map +1 -0
  512. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  513. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -1
  514. package/dist/types/builtInNodes.d.ts +14 -0
  515. package/dist/types/builtInNodes.d.ts.map +1 -0
  516. package/dist/types/builtInNodes.js +203 -0
  517. package/dist/types/builtInNodes.js.map +1 -0
  518. package/dist/types/index.d.ts +17 -18
  519. package/dist/types/index.d.ts.map +1 -1
  520. package/dist/types/index.js.map +1 -1
  521. package/dist/types/jsonSchemaHelpers.d.ts +30 -0
  522. package/dist/types/jsonSchemaHelpers.d.ts.map +1 -0
  523. package/dist/types/jsonSchemaHelpers.js +58 -0
  524. package/dist/types/jsonSchemaHelpers.js.map +1 -0
  525. package/dist/types/nodeTypes.d.ts +115 -61
  526. package/dist/types/nodeTypes.d.ts.map +1 -1
  527. package/dist/types/nodeTypes.js +3 -2
  528. package/dist/types/nodeTypes.js.map +1 -1
  529. package/dist/types/schema.d.ts.map +1 -1
  530. package/dist/types/schema.js +74 -65
  531. package/dist/types/schema.js.map +1 -1
  532. package/dist/utilities/applyBaseFilterToFields.d.ts.map +1 -1
  533. package/dist/utilities/applyBaseFilterToFields.js +1 -2
  534. package/dist/utilities/applyBaseFilterToFields.js.map +1 -1
  535. package/dist/utilities/buildEditorState.d.ts +17 -3
  536. package/dist/utilities/buildEditorState.d.ts.map +1 -1
  537. package/dist/utilities/buildEditorState.js +8 -0
  538. package/dist/utilities/buildEditorState.js.map +1 -1
  539. package/dist/utilities/buildInitialState.d.ts +2 -1
  540. package/dist/utilities/buildInitialState.d.ts.map +1 -1
  541. package/dist/utilities/buildInitialState.js.map +1 -1
  542. package/dist/utilities/createServerFeature.d.ts +1 -1
  543. package/dist/utilities/createServerFeature.d.ts.map +1 -1
  544. package/dist/utilities/createServerFeature.js +2 -2
  545. package/dist/utilities/createServerFeature.js.map +1 -1
  546. package/dist/utilities/editorConfigFactory.d.ts +6 -6
  547. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  548. package/dist/utilities/editorConfigFactory.js +9 -9
  549. package/dist/utilities/editorConfigFactory.js.map +1 -1
  550. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -1
  551. package/dist/utilities/fieldsDrawer/Drawer.js +19 -10
  552. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  553. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -1
  554. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -1
  555. package/dist/utilities/fieldsDrawer/DrawerContent.js +8 -7
  556. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  557. package/dist/utilities/fieldsDrawer/index.css +12 -0
  558. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts +29 -0
  559. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts.map +1 -0
  560. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js +97 -0
  561. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js.map +1 -0
  562. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -1
  563. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts.map +1 -1
  564. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts.map +1 -1
  565. package/dist/utilities/generateImportMap.d.ts +1 -1
  566. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  567. package/dist/utilities/generateSchemaMap.d.ts +1 -1
  568. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  569. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts +2 -2
  570. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -1
  571. package/dist/utilities/getDefaultSanitizedEditorConfig.js +6 -17
  572. package/dist/utilities/getDefaultSanitizedEditorConfig.js.map +1 -1
  573. package/dist/utilities/recurseNodeTree.d.ts.map +1 -1
  574. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -1
  575. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +1 -1
  576. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
  577. package/dist/utilities/useLexicalFeature.d.ts.map +1 -1
  578. package/dist/validate/index.d.ts.map +1 -1
  579. package/package.json +96 -27
  580. package/dist/exports/client/Field-G5Z2HM5Y.js +0 -2
  581. package/dist/exports/client/Field-G5Z2HM5Y.js.map +0 -7
  582. package/dist/exports/client/RelationshipComponent-RZL743CS.js.map +0 -7
  583. package/dist/exports/client/chunk-6QWQ7JV4.js +0 -2
  584. package/dist/exports/client/chunk-6QWQ7JV4.js.map +0 -7
  585. package/dist/exports/client/chunk-FEJXFRL7.js +0 -2
  586. package/dist/exports/client/chunk-FEJXFRL7.js.map +0 -7
  587. package/dist/exports/client/chunk-INBEEENE.js +0 -2
  588. package/dist/exports/client/chunk-INBEEENE.js.map +0 -7
  589. package/dist/exports/client/chunk-LH634DPU.js +0 -12
  590. package/dist/exports/client/chunk-LH634DPU.js.map +0 -7
  591. package/dist/exports/client/component-CVM4OESA.js +0 -2
  592. package/dist/exports/client/component-CVM4OESA.js.map +0 -7
  593. package/dist/exports/client/componentInline-JJZ2NKW2.js +0 -2
  594. package/dist/features/blockquote/markdownTransformer.d.ts +0 -3
  595. package/dist/features/blockquote/markdownTransformer.d.ts.map +0 -1
  596. package/dist/features/blockquote/markdownTransformer.js +0 -33
  597. package/dist/features/blockquote/markdownTransformer.js.map +0 -1
  598. package/dist/features/experimental_table/client/index.d.ts.map +0 -1
  599. package/dist/features/experimental_table/client/index.js.map +0 -1
  600. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +0 -1
  601. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +0 -1
  602. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +0 -1
  603. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +0 -1
  604. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +0 -1
  605. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +0 -1
  606. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +0 -1
  607. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js.map +0 -1
  608. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +0 -1
  609. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +0 -1
  610. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +0 -1
  611. package/dist/features/experimental_table/client/utils/debounce.js.map +0 -1
  612. package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +0 -1
  613. package/dist/features/experimental_table/client/utils/useDebounce.js.map +0 -1
  614. package/dist/features/experimental_table/markdownTransformer.d.ts +0 -5
  615. package/dist/features/experimental_table/markdownTransformer.d.ts.map +0 -1
  616. package/dist/features/experimental_table/markdownTransformer.js.map +0 -1
  617. package/dist/features/experimental_table/server/index.d.ts +0 -8
  618. package/dist/features/experimental_table/server/index.d.ts.map +0 -1
  619. package/dist/features/experimental_table/server/index.js.map +0 -1
  620. package/dist/features/format/bold/markdownTransformers.d.ts +0 -6
  621. package/dist/features/format/bold/markdownTransformers.d.ts.map +0 -1
  622. package/dist/features/format/bold/markdownTransformers.js +0 -23
  623. package/dist/features/format/bold/markdownTransformers.js.map +0 -1
  624. package/dist/features/format/inlineCode/markdownTransformers.d.ts +0 -3
  625. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +0 -1
  626. package/dist/features/format/inlineCode/markdownTransformers.js +0 -6
  627. package/dist/features/format/inlineCode/markdownTransformers.js.map +0 -1
  628. package/dist/features/format/italic/markdownTransformers.d.ts +0 -4
  629. package/dist/features/format/italic/markdownTransformers.d.ts.map +0 -1
  630. package/dist/features/format/italic/markdownTransformers.js +0 -12
  631. package/dist/features/format/italic/markdownTransformers.js.map +0 -1
  632. package/dist/features/format/strikethrough/markdownTransformers.d.ts +0 -3
  633. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
  634. package/dist/features/format/strikethrough/markdownTransformers.js +0 -6
  635. package/dist/features/format/strikethrough/markdownTransformers.js.map +0 -1
  636. package/dist/features/link/nodes/types.d.ts +0 -27
  637. package/dist/features/link/nodes/types.d.ts.map +0 -1
  638. package/dist/features/link/nodes/types.js +0 -2
  639. package/dist/features/link/nodes/types.js.map +0 -1
  640. package/dist/features/lists/checklist/markdownTransformers.d.ts +0 -3
  641. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
  642. package/dist/features/lists/checklist/markdownTransformers.js +0 -12
  643. package/dist/features/lists/checklist/markdownTransformers.js.map +0 -1
  644. package/dist/features/lists/orderedList/markdownTransformer.d.ts +0 -3
  645. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +0 -1
  646. package/dist/features/lists/orderedList/markdownTransformer.js +0 -12
  647. package/dist/features/lists/orderedList/markdownTransformer.js.map +0 -1
  648. package/dist/features/lists/shared/markdown.d.ts +0 -6
  649. package/dist/features/lists/shared/markdown.d.ts.map +0 -1
  650. package/dist/features/lists/shared/markdown.js +0 -57
  651. package/dist/features/lists/shared/markdown.js.map +0 -1
  652. package/dist/features/lists/unorderedList/markdownTransformer.d.ts +0 -3
  653. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +0 -1
  654. package/dist/features/lists/unorderedList/markdownTransformer.js +0 -12
  655. package/dist/features/lists/unorderedList/markdownTransformer.js.map +0 -1
  656. package/dist/lexical/utils/guard.d.ts +0 -5
  657. package/dist/lexical/utils/guard.d.ts.map +0 -1
  658. package/dist/lexical/utils/guard.js +0 -9
  659. package/dist/lexical/utils/guard.js.map +0 -1
  660. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts +0 -2
  661. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts.map +0 -1
  662. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js +0 -2
  663. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js.map +0 -1
  664. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts +0 -14
  665. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts.map +0 -1
  666. package/dist/packages/@lexical/markdown/MarkdownExport.js +0 -213
  667. package/dist/packages/@lexical/markdown/MarkdownExport.js.map +0 -1
  668. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts +0 -19
  669. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts.map +0 -1
  670. package/dist/packages/@lexical/markdown/MarkdownImport.js +0 -198
  671. package/dist/packages/@lexical/markdown/MarkdownImport.js.map +0 -1
  672. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts +0 -11
  673. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts.map +0 -1
  674. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js +0 -304
  675. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js.map +0 -1
  676. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts +0 -147
  677. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts.map +0 -1
  678. package/dist/packages/@lexical/markdown/MarkdownTransformers.js +0 -268
  679. package/dist/packages/@lexical/markdown/MarkdownTransformers.js.map +0 -1
  680. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts +0 -22
  681. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts.map +0 -1
  682. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js +0 -91
  683. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js.map +0 -1
  684. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts +0 -21
  685. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts.map +0 -1
  686. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js +0 -54
  687. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js.map +0 -1
  688. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts +0 -18
  689. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts.map +0 -1
  690. package/dist/packages/@lexical/markdown/importTextTransformers.js +0 -54
  691. package/dist/packages/@lexical/markdown/importTextTransformers.js.map +0 -1
  692. package/dist/packages/@lexical/markdown/index.d.ts +0 -29
  693. package/dist/packages/@lexical/markdown/index.d.ts.map +0 -1
  694. package/dist/packages/@lexical/markdown/index.js +0 -39
  695. package/dist/packages/@lexical/markdown/index.js.map +0 -1
  696. package/dist/packages/@lexical/markdown/utils.d.ts +0 -34
  697. package/dist/packages/@lexical/markdown/utils.d.ts.map +0 -1
  698. package/dist/packages/@lexical/markdown/utils.js +0 -267
  699. package/dist/packages/@lexical/markdown/utils.js.map +0 -1
  700. /package/dist/exports/client/{componentInline-JJZ2NKW2.js.map → componentInline-H24N7GUG.js.map} +0 -0
  701. /package/dist/features/{experimental_table → table}/client/index.d.ts +0 -0
  702. /package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.css +0 -0
  703. /package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.d.ts +0 -0
  704. /package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.js +0 -0
  705. /package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.css +0 -0
  706. /package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.d.ts +0 -0
  707. /package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.js +0 -0
  708. /package/dist/features/{experimental_table → table}/client/plugins/TableHoverActionsPlugin/index.d.ts +0 -0
  709. /package/dist/features/{experimental_table → table}/client/plugins/TableHoverActionsPlugin/index.js +0 -0
  710. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.css +0 -0
  711. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.d.ts +0 -0
  712. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.js +0 -0
  713. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.css +0 -0
  714. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.d.ts +0 -0
  715. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.js +0 -0
  716. /package/dist/features/{experimental_table → table}/client/utils/debounce.d.ts +0 -0
  717. /package/dist/features/{experimental_table → table}/client/utils/debounce.js +0 -0
  718. /package/dist/features/{experimental_table → table}/client/utils/useDebounce.d.ts +0 -0
  719. /package/dist/features/{experimental_table → table}/client/utils/useDebounce.js +0 -0
@@ -1,12 +0,0 @@
1
- export const ITALIC_STAR = {
2
- type: 'text-format',
3
- format: ['italic'],
4
- tag: '*'
5
- };
6
- export const ITALIC_UNDERSCORE = {
7
- type: 'text-format',
8
- format: ['italic'],
9
- intraword: false,
10
- tag: '_'
11
- };
12
- //# sourceMappingURL=markdownTransformers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownTransformers.js","names":["ITALIC_STAR","type","format","tag","ITALIC_UNDERSCORE","intraword"],"sources":["../../../../src/features/format/italic/markdownTransformers.ts"],"sourcesContent":["import type { TextFormatTransformer } from '../../../packages/@lexical/markdown/MarkdownTransformers.js'\n\nexport const ITALIC_STAR: TextFormatTransformer = {\n type: 'text-format',\n format: ['italic'],\n tag: '*',\n}\n\nexport const ITALIC_UNDERSCORE: TextFormatTransformer = {\n type: 'text-format',\n format: ['italic'],\n intraword: false,\n tag: '_',\n}\n"],"mappings":"AAEA,OAAO,MAAMA,WAAA,GAAqC;EAChDC,IAAA,EAAM;EACNC,MAAA,EAAQ,CAAC,SAAS;EAClBC,GAAA,EAAK;AACP;AAEA,OAAO,MAAMC,iBAAA,GAA2C;EACtDH,IAAA,EAAM;EACNC,MAAA,EAAQ,CAAC,SAAS;EAClBG,SAAA,EAAW;EACXF,GAAA,EAAK;AACP","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- import type { TextFormatTransformer } from '../../../packages/@lexical/markdown/MarkdownTransformers.js';
2
- export declare const STRIKETHROUGH: TextFormatTransformer;
3
- //# sourceMappingURL=markdownTransformers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownTransformers.d.ts","sourceRoot":"","sources":["../../../../src/features/format/strikethrough/markdownTransformers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAA;AAExG,eAAO,MAAM,aAAa,EAAE,qBAI3B,CAAA"}
@@ -1,6 +0,0 @@
1
- export const STRIKETHROUGH = {
2
- type: 'text-format',
3
- format: ['strikethrough'],
4
- tag: '~~'
5
- };
6
- //# sourceMappingURL=markdownTransformers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownTransformers.js","names":["STRIKETHROUGH","type","format","tag"],"sources":["../../../../src/features/format/strikethrough/markdownTransformers.ts"],"sourcesContent":["import type { TextFormatTransformer } from '../../../packages/@lexical/markdown/MarkdownTransformers.js'\n\nexport const STRIKETHROUGH: TextFormatTransformer = {\n type: 'text-format',\n format: ['strikethrough'],\n tag: '~~',\n}\n"],"mappings":"AAEA,OAAO,MAAMA,aAAA,GAAuC;EAClDC,IAAA,EAAM;EACNC,MAAA,EAAQ,CAAC,gBAAgB;EACzBC,GAAA,EAAK;AACP","ignoreList":[]}
@@ -1,27 +0,0 @@
1
- import type { SerializedElementNode, SerializedLexicalNode } from 'lexical';
2
- import type { DefaultDocumentIDType, JsonValue } from 'payload';
3
- import type { StronglyTypedElementNode } from '../../../types/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,6BAA6B,CAAA;AAE3E,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 '../../../types/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,GAAI,UAAU,QAAQ,KAAG,kBAAkB,CAAC,SAAS,CA6B5E,CAAA;AAED,eAAO,MAAM,UAAU,GACrB,UAAU,QAAQ,EAClB,gBAAgB,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,EAC7C,OAAO,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,EAA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kB,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,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,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"}
@@ -1,213 +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
- */import { $getRoot, $isDecoratorNode, $isElementNode, $isLineBreakNode, $isTextNode } from 'lexical';
8
- import { isEmptyParagraph, transformersByType } from './utils.js';
9
- /**
10
- * Renders string from markdown. The selection is moved to the start after the operation.
11
- */
12
- export function createMarkdownExport(transformers, shouldPreserveNewLines = false) {
13
- const byType = transformersByType(transformers);
14
- const elementTransformers = [...byType.multilineElement, ...byType.element];
15
- const isNewlineDelimited = !shouldPreserveNewLines;
16
- // Export only uses text formats that are responsible for single format
17
- // e.g. it will filter out *** (bold, italic) and instead use separate ** and *
18
- const textFormatTransformers = byType.textFormat.filter(transformer => transformer.format.length === 1) // Make sure all text transformers that contain 'code' in their format are at the end of the array. Otherwise, formatted code like
19
- // <strong><code>code</code></strong> will be exported as `**Bold Code**`, as the code format will be applied first, and the bold format
20
- // will be applied second and thus skipped entirely, as the code format will prevent any further formatting.
21
- .sort((a, b) => {
22
- if (a.format.includes('code') && !b.format.includes('code')) {
23
- return 1;
24
- } else if (!a.format.includes('code') && b.format.includes('code')) {
25
- return -1;
26
- } else {
27
- return 0;
28
- }
29
- });
30
- return node => {
31
- const output = [];
32
- const children = (node || $getRoot()).getChildren();
33
- children.forEach((child, i) => {
34
- const result = exportTopLevelElements(child, elementTransformers, textFormatTransformers, byType.textMatch);
35
- if (result != null) {
36
- output.push(
37
- // separate consecutive group of texts with a line break: eg. ["hello", "world"] -> ["hello", "/nworld"]
38
- isNewlineDelimited && i > 0 && !isEmptyParagraph(child) && !isEmptyParagraph(children[i - 1]) ? '\n'.concat(result) : result);
39
- }
40
- });
41
- // Ensure consecutive groups of texts are at least \n\n apart while each empty paragraph render as a newline.
42
- // Eg. ["hello", "", "", "hi", "\nworld"] -> "hello\n\n\nhi\n\nworld"
43
- return output.join('\n');
44
- };
45
- }
46
- function exportTopLevelElements(node, elementTransformers, textTransformersIndex, textMatchTransformers) {
47
- for (const transformer of elementTransformers) {
48
- if (!transformer.export) {
49
- continue;
50
- }
51
- const result = transformer.export(node, _node => exportChildren(_node, textTransformersIndex, textMatchTransformers));
52
- if (result != null) {
53
- return result;
54
- }
55
- }
56
- if ($isElementNode(node)) {
57
- return exportChildren(node, textTransformersIndex, textMatchTransformers);
58
- } else if ($isDecoratorNode(node)) {
59
- return node.getTextContent();
60
- } else {
61
- return null;
62
- }
63
- }
64
- function exportChildren(node, textTransformersIndex, textMatchTransformers, unclosedTags, unclosableTags) {
65
- const output = [];
66
- const children = node.getChildren();
67
- // keep track of unclosed tags from the very beginning
68
- if (!unclosedTags) {
69
- unclosedTags = [];
70
- }
71
- if (!unclosableTags) {
72
- unclosableTags = [];
73
- }
74
- mainLoop: for (const child of children) {
75
- for (const transformer of textMatchTransformers) {
76
- if (!transformer.export) {
77
- continue;
78
- }
79
- const result = transformer.export(child, parentNode => exportChildren(parentNode, textTransformersIndex, textMatchTransformers, unclosedTags,
80
- // Add current unclosed tags to the list of unclosable tags - we don't want nested tags from
81
- // textmatch transformers to close the outer ones, as that may result in invalid markdown.
82
- // E.g. **text [text**](https://lexical.io)
83
- // is invalid markdown, as the closing ** is inside the link.
84
- //
85
- [...unclosableTags, ...unclosedTags]), (textNode, textContent) => exportTextFormat(textNode, textContent, textTransformersIndex, unclosedTags, unclosableTags));
86
- if (result != null) {
87
- output.push(result);
88
- continue mainLoop;
89
- }
90
- }
91
- if ($isLineBreakNode(child)) {
92
- output.push('\n');
93
- } else if ($isTextNode(child)) {
94
- output.push(exportTextFormat(child, child.getTextContent(), textTransformersIndex, unclosedTags, unclosableTags));
95
- } else if ($isElementNode(child)) {
96
- // empty paragraph returns ""
97
- output.push(exportChildren(child, textTransformersIndex, textMatchTransformers, unclosedTags, unclosableTags));
98
- } else if ($isDecoratorNode(child)) {
99
- output.push(child.getTextContent());
100
- }
101
- }
102
- return output.join('');
103
- }
104
- function exportTextFormat(node, textContent, textTransformers,
105
- // unclosed tags include the markdown tags that haven't been closed yet, and their associated formats
106
- unclosedTags, unclosableTags) {
107
- // This function handles the case of a string looking like this: " foo "
108
- // Where it would be invalid markdown to generate: "** foo **"
109
- // We instead want to trim the whitespace out, apply formatting, and then
110
- // bring the whitespace back. So our returned string looks like this: " **foo** "
111
- const frozenString = textContent.trim();
112
- let output = frozenString;
113
- if (!node.hasFormat('code')) {
114
- // Escape any markdown characters in the text content
115
- output = output.replace(/([*_`~\\])/g, '\\$1');
116
- }
117
- // the opening tags to be added to the result
118
- let openingTags = '';
119
- // the closing tags to be added to the result
120
- let closingTagsBefore = '';
121
- let closingTagsAfter = '';
122
- const prevNode = getTextSibling(node, true);
123
- const nextNode = getTextSibling(node, false);
124
- const applied = new Set();
125
- for (const transformer of textTransformers) {
126
- const format = transformer.format[0];
127
- const tag = transformer.tag;
128
- // dedup applied formats
129
- if (hasFormat(node, format) && !applied.has(format)) {
130
- // Multiple tags might be used for the same format (*, _)
131
- applied.add(format);
132
- // append the tag to openningTags, if it's not applied to the previous nodes,
133
- // or the nodes before that (which would result in an unclosed tag)
134
- if (!hasFormat(prevNode, format) || !unclosedTags.find(element => element.tag === tag)) {
135
- unclosedTags.push({
136
- format,
137
- tag
138
- });
139
- openingTags += tag;
140
- }
141
- }
142
- }
143
- // close any tags in the same order they were applied, if necessary
144
- for (let i = 0; i < unclosedTags.length; i++) {
145
- const unclosedTag = unclosedTags[i];
146
- const nodeHasFormat = hasFormat(node, unclosedTag.format);
147
- const nextNodeHasFormat = hasFormat(nextNode, unclosedTag.format);
148
- // prevent adding closing tag if next sibling will do it
149
- if (nodeHasFormat && nextNodeHasFormat) {
150
- continue;
151
- }
152
- const unhandledUnclosedTags = [...unclosedTags] // Shallow copy to avoid modifying the original array
153
- ;
154
- while (unhandledUnclosedTags.length > i) {
155
- const unclosedTag = unhandledUnclosedTags.pop();
156
- // If tag is unclosable, don't close it and leave it in the original array,
157
- // So that it can be closed when it's no longer unclosable
158
- if (unclosableTags && unclosedTag && unclosableTags.find(element => element.tag === unclosedTag.tag)) {
159
- continue;
160
- }
161
- if (unclosedTag && typeof unclosedTag.tag === 'string') {
162
- if (!nodeHasFormat) {
163
- // Handles cases where the tag has not been closed before, e.g. if the previous node
164
- // was a text match transformer that did not account for closing tags of the next node (e.g. a link)
165
- closingTagsBefore += unclosedTag.tag;
166
- } else if (!nextNodeHasFormat) {
167
- closingTagsAfter += unclosedTag.tag;
168
- }
169
- }
170
- // Mutate the original array to remove the closed tag
171
- unclosedTags.pop();
172
- }
173
- break;
174
- }
175
- output = openingTags + output + closingTagsAfter;
176
- // Replace trimmed version of textContent ensuring surrounding whitespace is not modified
177
- return closingTagsBefore + textContent.replace(frozenString, () => output);
178
- }
179
- // Get next or previous text sibling a text node, including cases
180
- // when it's a child of inline element (e.g. link)
181
- function getTextSibling(node, backward) {
182
- let sibling = backward ? node.getPreviousSibling() : node.getNextSibling();
183
- if (!sibling) {
184
- const parent = node.getParentOrThrow();
185
- if (parent.isInline()) {
186
- sibling = backward ? parent.getPreviousSibling() : parent.getNextSibling();
187
- }
188
- }
189
- while (sibling) {
190
- if ($isElementNode(sibling)) {
191
- if (!sibling.isInline()) {
192
- break;
193
- }
194
- const descendant = backward ? sibling.getLastDescendant() : sibling.getFirstDescendant();
195
- if ($isTextNode(descendant)) {
196
- return descendant;
197
- } else {
198
- sibling = backward ? sibling.getPreviousSibling() : sibling.getNextSibling();
199
- }
200
- }
201
- if ($isTextNode(sibling)) {
202
- return sibling;
203
- }
204
- if (!$isElementNode(sibling)) {
205
- return null;
206
- }
207
- }
208
- return null;
209
- }
210
- function hasFormat(node, format) {
211
- return $isTextNode(node) && node.hasFormat(format);
212
- }
213
- //# sourceMappingURL=MarkdownExport.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MarkdownExport.js","names":["$getRoot","$isDecoratorNode","$isElementNode","$isLineBreakNode","$isTextNode","isEmptyParagraph","transformersByType","createMarkdownExport","transformers","shouldPreserveNewLines","byType","elementTransformers","multilineElement","element","isNewlineDelimited","textFormatTransformers","textFormat","filter","transformer","format","length","sort","a","b","includes","node","output","children","getChildren","forEach","child","i","result","exportTopLevelElements","textMatch","push","concat","join","textTransformersIndex","textMatchTransformers","export","_node","exportChildren","getTextContent","unclosedTags","unclosableTags","mainLoop","parentNode","textNode","textContent","exportTextFormat","textTransformers","frozenString","trim","hasFormat","replace","openingTags","closingTagsBefore","closingTagsAfter","prevNode","getTextSibling","nextNode","applied","Set","tag","has","add","find","unclosedTag","nodeHasFormat","nextNodeHasFormat","unhandledUnclosedTags","pop","backward","sibling","getPreviousSibling","getNextSibling","parent","getParentOrThrow","isInline","descendant","getLastDescendant","getFirstDescendant"],"sources":["../../../../src/packages/@lexical/markdown/MarkdownExport.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { ElementNode, LexicalNode, TextFormatType, TextNode } from 'lexical'\n\nimport { $getRoot, $isDecoratorNode, $isElementNode, $isLineBreakNode, $isTextNode } from 'lexical'\n\nimport type {\n ElementTransformer,\n MultilineElementTransformer,\n TextFormatTransformer,\n TextMatchTransformer,\n Transformer,\n} from './MarkdownTransformers.js'\n\nimport { isEmptyParagraph, transformersByType } from './utils.js'\n\n/**\n * Renders string from markdown. The selection is moved to the start after the operation.\n */\nexport function createMarkdownExport(\n transformers: Array<Transformer>,\n shouldPreserveNewLines: boolean = false,\n): (node?: ElementNode) => string {\n const byType = transformersByType(transformers)\n const elementTransformers = [...byType.multilineElement, ...byType.element]\n const isNewlineDelimited = !shouldPreserveNewLines\n\n // Export only uses text formats that are responsible for single format\n // e.g. it will filter out *** (bold, italic) and instead use separate ** and *\n const textFormatTransformers = byType.textFormat\n .filter((transformer) => transformer.format.length === 1)\n // Make sure all text transformers that contain 'code' in their format are at the end of the array. Otherwise, formatted code like\n // <strong><code>code</code></strong> will be exported as `**Bold Code**`, as the code format will be applied first, and the bold format\n // will be applied second and thus skipped entirely, as the code format will prevent any further formatting.\n .sort((a, b) => {\n if (a.format.includes('code') && !b.format.includes('code')) {\n return 1\n } else if (!a.format.includes('code') && b.format.includes('code')) {\n return -1\n } else {\n return 0\n }\n })\n\n return (node) => {\n const output: string[] = []\n const children = (node || $getRoot()).getChildren()\n\n children.forEach((child, i) => {\n const result = exportTopLevelElements(\n child,\n elementTransformers,\n textFormatTransformers,\n byType.textMatch,\n )\n\n if (result != null) {\n output.push(\n // separate consecutive group of texts with a line break: eg. [\"hello\", \"world\"] -> [\"hello\", \"/nworld\"]\n isNewlineDelimited &&\n i > 0 &&\n !isEmptyParagraph(child) &&\n !isEmptyParagraph(children[i - 1]!)\n ? '\\n'.concat(result)\n : result,\n )\n }\n })\n // Ensure consecutive groups of texts are at least \\n\\n apart while each empty paragraph render as a newline.\n // Eg. [\"hello\", \"\", \"\", \"hi\", \"\\nworld\"] -> \"hello\\n\\n\\nhi\\n\\nworld\"\n return output.join('\\n')\n }\n}\n\nfunction exportTopLevelElements(\n node: LexicalNode,\n elementTransformers: Array<ElementTransformer | MultilineElementTransformer>,\n textTransformersIndex: Array<TextFormatTransformer>,\n textMatchTransformers: Array<TextMatchTransformer>,\n): null | string {\n for (const transformer of elementTransformers) {\n if (!transformer.export) {\n continue\n }\n const result = transformer.export(node, (_node) =>\n exportChildren(_node, textTransformersIndex, textMatchTransformers),\n )\n\n if (result != null) {\n return result\n }\n }\n\n if ($isElementNode(node)) {\n return exportChildren(node, textTransformersIndex, textMatchTransformers)\n } else if ($isDecoratorNode(node)) {\n return node.getTextContent()\n } else {\n return null\n }\n}\n\nfunction exportChildren(\n node: ElementNode,\n textTransformersIndex: Array<TextFormatTransformer>,\n textMatchTransformers: Array<TextMatchTransformer>,\n unclosedTags?: Array<{ format: TextFormatType; tag: string }>,\n unclosableTags?: Array<{ format: TextFormatType; tag: string }>,\n): string {\n const output = []\n const children = node.getChildren()\n // keep track of unclosed tags from the very beginning\n if (!unclosedTags) {\n unclosedTags = []\n }\n if (!unclosableTags) {\n unclosableTags = []\n }\n\n mainLoop: for (const child of children) {\n for (const transformer of textMatchTransformers) {\n if (!transformer.export) {\n continue\n }\n\n const result = transformer.export(\n child,\n (parentNode) =>\n exportChildren(\n parentNode,\n textTransformersIndex,\n textMatchTransformers,\n unclosedTags,\n // Add current unclosed tags to the list of unclosable tags - we don't want nested tags from\n // textmatch transformers to close the outer ones, as that may result in invalid markdown.\n // E.g. **text [text**](https://lexical.io)\n // is invalid markdown, as the closing ** is inside the link.\n //\n [...unclosableTags, ...unclosedTags],\n ),\n (textNode, textContent) =>\n exportTextFormat(\n textNode,\n textContent,\n textTransformersIndex,\n unclosedTags,\n unclosableTags,\n ),\n )\n\n if (result != null) {\n output.push(result)\n continue mainLoop\n }\n }\n\n if ($isLineBreakNode(child)) {\n output.push('\\n')\n } else if ($isTextNode(child)) {\n output.push(\n exportTextFormat(\n child,\n child.getTextContent(),\n textTransformersIndex,\n unclosedTags,\n unclosableTags,\n ),\n )\n } else if ($isElementNode(child)) {\n // empty paragraph returns \"\"\n output.push(\n exportChildren(\n child,\n textTransformersIndex,\n textMatchTransformers,\n unclosedTags,\n unclosableTags,\n ),\n )\n } else if ($isDecoratorNode(child)) {\n output.push(child.getTextContent())\n }\n }\n\n return output.join('')\n}\n\nfunction exportTextFormat(\n node: TextNode,\n textContent: string,\n textTransformers: Array<TextFormatTransformer>,\n // unclosed tags include the markdown tags that haven't been closed yet, and their associated formats\n unclosedTags: Array<{ format: TextFormatType; tag: string }>,\n unclosableTags?: Array<{ format: TextFormatType; tag: string }>,\n): string {\n // This function handles the case of a string looking like this: \" foo \"\n // Where it would be invalid markdown to generate: \"** foo **\"\n // We instead want to trim the whitespace out, apply formatting, and then\n // bring the whitespace back. So our returned string looks like this: \" **foo** \"\n const frozenString = textContent.trim()\n let output = frozenString\n\n if (!node.hasFormat('code')) {\n // Escape any markdown characters in the text content\n output = output.replace(/([*_`~\\\\])/g, '\\\\$1')\n }\n\n // the opening tags to be added to the result\n let openingTags = ''\n // the closing tags to be added to the result\n let closingTagsBefore = ''\n let closingTagsAfter = ''\n\n const prevNode = getTextSibling(node, true)\n const nextNode = getTextSibling(node, false)\n\n const applied = new Set()\n\n for (const transformer of textTransformers) {\n const format = transformer.format[0]!\n const tag = transformer.tag\n\n // dedup applied formats\n if (hasFormat(node, format) && !applied.has(format)) {\n // Multiple tags might be used for the same format (*, _)\n applied.add(format)\n\n // append the tag to openningTags, if it's not applied to the previous nodes,\n // or the nodes before that (which would result in an unclosed tag)\n if (!hasFormat(prevNode, format) || !unclosedTags.find((element) => element.tag === tag)) {\n unclosedTags.push({ format, tag })\n openingTags += tag\n }\n }\n }\n\n // close any tags in the same order they were applied, if necessary\n for (let i = 0; i < unclosedTags.length; i++) {\n const unclosedTag = unclosedTags[i]!\n const nodeHasFormat = hasFormat(node, unclosedTag.format)\n const nextNodeHasFormat = hasFormat(nextNode, unclosedTag.format)\n\n // prevent adding closing tag if next sibling will do it\n if (nodeHasFormat && nextNodeHasFormat) {\n continue\n }\n\n const unhandledUnclosedTags = [...unclosedTags] // Shallow copy to avoid modifying the original array\n\n while (unhandledUnclosedTags.length > i) {\n const unclosedTag = unhandledUnclosedTags.pop()\n\n // If tag is unclosable, don't close it and leave it in the original array,\n // So that it can be closed when it's no longer unclosable\n if (\n unclosableTags &&\n unclosedTag &&\n unclosableTags.find((element) => element.tag === unclosedTag.tag)\n ) {\n continue\n }\n\n if (unclosedTag && typeof unclosedTag.tag === 'string') {\n if (!nodeHasFormat) {\n // Handles cases where the tag has not been closed before, e.g. if the previous node\n // was a text match transformer that did not account for closing tags of the next node (e.g. a link)\n closingTagsBefore += unclosedTag.tag\n } else if (!nextNodeHasFormat) {\n closingTagsAfter += unclosedTag.tag\n }\n }\n // Mutate the original array to remove the closed tag\n unclosedTags.pop()\n }\n break\n }\n\n output = openingTags + output + closingTagsAfter\n // Replace trimmed version of textContent ensuring surrounding whitespace is not modified\n return closingTagsBefore + textContent.replace(frozenString, () => output)\n}\n\n// Get next or previous text sibling a text node, including cases\n// when it's a child of inline element (e.g. link)\nfunction getTextSibling(node: TextNode, backward: boolean): null | TextNode {\n let sibling = backward ? node.getPreviousSibling() : node.getNextSibling()\n\n if (!sibling) {\n const parent = node.getParentOrThrow()\n\n if (parent.isInline()) {\n sibling = backward ? parent.getPreviousSibling() : parent.getNextSibling()\n }\n }\n\n while (sibling) {\n if ($isElementNode(sibling)) {\n if (!sibling.isInline()) {\n break\n }\n\n const descendant = backward ? sibling.getLastDescendant() : sibling.getFirstDescendant()\n\n if ($isTextNode(descendant)) {\n return descendant\n } else {\n sibling = backward ? sibling.getPreviousSibling() : sibling.getNextSibling()\n }\n }\n\n if ($isTextNode(sibling)) {\n return sibling\n }\n\n if (!$isElementNode(sibling)) {\n return null\n }\n }\n\n return null\n}\n\nfunction hasFormat(node: LexicalNode | null | undefined, format: TextFormatType): boolean {\n return $isTextNode(node) && node.hasFormat(format)\n}\n"],"mappings":"AAAA;;;;;;GAUA,SAASA,QAAQ,EAAEC,gBAAgB,EAAEC,cAAc,EAAEC,gBAAgB,EAAEC,WAAW,QAAQ;AAU1F,SAASC,gBAAgB,EAAE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KP,OAAA,CAAQQ,kBAAkB;MAEtF,IAAI9E,WAAA,CAAY4E,UAAA,GAAa;QAC3B,OAAOA,UAAA;MACT,OAAO;QACLN,OAAA,GAAUD,QAAA,GAAWC,OAAA,CAAQC,kBAAkB,KAAKD,OAAA,CAAQE,cAAc;MAC5E;IACF;IAEA,IAAIxE,WAAA,CAAYsE,OAAA,GAAU;MACxB,OAAOA,OAAA;IACT;IAEA,IAAI,CAACxE,cAAA,CAAewE,OAAA,GAAU;MAC5B,OAAO;IACT;EACF;EAEA,OAAO;AACT;AAEA,SAASpB,UAAU7B,IAAoC,EAAEN,MAAsB;EAC7E,OAAOf,WAAA,CAAYqB,IAAA,KAASA,IAAA,CAAK6B,SAAS,CAACnC,MAAA;AAC7C","ignoreList":[]}
@@ -1,19 +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 { TextFormatTransformer, Transformer } from './MarkdownTransformers.js';
10
- export type TextFormatTransformersIndex = Readonly<{
11
- fullMatchRegExpByTag: Readonly<Record<string, RegExp>>;
12
- openTagsRegExp: RegExp;
13
- transformersByTag: Readonly<Record<string, TextFormatTransformer>>;
14
- }>;
15
- /**
16
- * Renders markdown from a string. The selection is moved to the start after the operation.
17
- */
18
- export declare function createMarkdownImport(transformers: Array<Transformer>, shouldPreserveNewLines?: boolean): (markdownString: string, node?: ElementNode) => void;
19
- //# sourceMappingURL=MarkdownImport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MarkdownImport.d.ts","sourceRoot":"","sources":["../../../../src/packages/@lexical/markdown/MarkdownImport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAc1C,OAAO,KAAK,EAGV,qBAAqB,EAErB,WAAW,EACZ,MAAM,2BAA2B,CAAA;AAKlC,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC;IACjD,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACtD,cAAc,EAAE,MAAM,CAAA;IACtB,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAA;CACnE,CAAC,CAAA;AAEF;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,EAChC,sBAAsB,UAAQ,GAC7B,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,IAAI,CAyCtD"}