@payloadcms/richtext-lexical 4.0.0-internal.293e026 → 4.0.0-internal.2a3c3bc

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 (794) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/exports/client/Field-MT4FK3IP.js +2 -0
  3. package/dist/exports/client/Field-MT4FK3IP.js.map +7 -0
  4. package/dist/exports/client/chunk-3LRZDIIG.js +2 -0
  5. package/dist/exports/client/chunk-3LRZDIIG.js.map +7 -0
  6. package/dist/exports/client/chunk-E6LSRRP2.js +2 -0
  7. package/dist/exports/client/chunk-E6LSRRP2.js.map +7 -0
  8. package/dist/exports/client/chunk-ZQX5HXUL.js +2 -0
  9. package/dist/exports/client/chunk-ZQX5HXUL.js.map +7 -0
  10. package/dist/exports/client/component-6DQLENIE.js +2 -0
  11. package/dist/exports/client/component-6DQLENIE.js.map +7 -0
  12. package/dist/exports/client/componentInline-HNE5G4TE.js +2 -0
  13. package/dist/exports/client/index.d.ts +1 -3
  14. package/dist/exports/client/index.d.ts.map +1 -1
  15. package/dist/exports/client/index.js +28 -29
  16. package/dist/exports/client/index.js.map +4 -4
  17. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -1
  18. package/dist/features/blockquote/client/index.js +2 -2
  19. package/dist/features/blockquote/client/index.js.map +1 -1
  20. package/dist/features/blockquote/server/index.js +2 -2
  21. package/dist/features/blockquote/server/index.js.map +1 -1
  22. package/dist/features/blocks/client/component/BlockReordering/index.d.ts +11 -0
  23. package/dist/features/blocks/client/component/BlockReordering/index.d.ts.map +1 -0
  24. package/dist/features/blocks/client/component/BlockReordering/index.js +18 -0
  25. package/dist/features/blocks/client/component/BlockReordering/index.js.map +1 -0
  26. package/dist/features/blocks/client/component/index.css +2 -2
  27. package/dist/features/blocks/client/component/index.d.ts +0 -6
  28. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  29. package/dist/features/blocks/client/component/index.js +169 -101
  30. package/dist/features/blocks/client/component/index.js.map +1 -1
  31. package/dist/features/blocks/client/component/useBlockReordering.d.ts +16 -0
  32. package/dist/features/blocks/client/component/useBlockReordering.d.ts.map +1 -0
  33. package/dist/features/blocks/client/component/useBlockReordering.js +178 -0
  34. package/dist/features/blocks/client/component/useBlockReordering.js.map +1 -0
  35. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.d.ts.map +1 -1
  36. package/dist/features/blocks/client/componentInline/index.css +8 -9
  37. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  38. package/dist/features/blocks/client/componentInline/index.js +30 -22
  39. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  40. package/dist/features/blocks/client/getBlockImageComponent.d.ts +1 -1
  41. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.d.ts +9 -0
  42. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.d.ts.map +1 -0
  43. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.js +95 -0
  44. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.js.map +1 -0
  45. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts +1 -1
  46. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts.map +1 -1
  47. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js +1 -1
  48. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js.map +1 -1
  49. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts +1 -1
  50. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts.map +1 -1
  51. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js +5 -2
  52. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js.map +1 -1
  53. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts +1 -2
  54. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -1
  55. package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -1
  56. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
  57. package/dist/features/blocks/client/nodes/BlocksNode.js +0 -10
  58. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  59. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -1
  60. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.css +1 -1
  61. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.css +2 -4
  62. package/dist/features/blocks/premade/CodeBlock/Component/index.css +5 -5
  63. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -1
  64. package/dist/features/blocks/server/index.js +2 -2
  65. package/dist/features/blocks/server/index.js.map +1 -1
  66. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts +1 -1
  67. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -1
  68. package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -1
  69. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -1
  70. package/dist/features/blocks/server/nodes/BlocksNode.js +1 -12
  71. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
  72. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -1
  73. package/dist/features/blocks/server/nodes/InlineBlocksNode.js +2 -2
  74. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
  75. package/dist/features/blocks/server/schema.d.ts +2 -0
  76. package/dist/features/blocks/server/schema.d.ts.map +1 -1
  77. package/dist/features/blocks/server/schema.js +10 -11
  78. package/dist/features/blocks/server/schema.js.map +1 -1
  79. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  80. package/dist/features/blocks/server/validate.js +1 -1
  81. package/dist/features/blocks/server/validate.js.map +1 -1
  82. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -1
  83. package/dist/features/converters/lexicalToHtml/async/converters/heading.js +1 -1
  84. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -1
  85. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -1
  86. package/dist/features/converters/lexicalToHtml/async/converters/list.js +4 -3
  87. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -1
  88. package/dist/features/converters/lexicalToHtml/async/converters/upload.js +3 -3
  89. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  90. package/dist/features/converters/lexicalToHtml/shared/cssColors.d.ts.map +1 -1
  91. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.d.ts.map +1 -1
  92. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js +3 -2
  93. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -1
  94. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js +1 -1
  95. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -1
  96. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -1
  97. package/dist/features/converters/lexicalToHtml/sync/converters/list.js +4 -3
  98. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -1
  99. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js +3 -3
  100. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  101. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -1
  102. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js +2 -1
  103. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  104. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -1
  105. package/dist/features/converters/lexicalToJSX/converter/converters/list.js +2 -1
  106. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  107. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -1
  108. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js +4 -5
  109. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  110. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -1
  111. package/dist/features/converters/lexicalToMarkdown/index.js +1 -1
  112. package/dist/features/converters/lexicalToMarkdown/index.js.map +1 -1
  113. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -1
  114. package/dist/features/converters/markdownToLexical/index.js +5 -2
  115. package/dist/features/converters/markdownToLexical/index.js.map +1 -1
  116. package/dist/features/converters/utilities/payloadPopulateFn.d.ts.map +1 -1
  117. package/dist/features/converters/utilities/payloadPopulateFn.js +4 -2
  118. package/dist/features/converters/utilities/payloadPopulateFn.js.map +1 -1
  119. package/dist/features/debug/jsxConverter/client/plugin/style.css +2 -2
  120. package/dist/features/debug/testRecorder/client/plugin/index.css +0 -1
  121. package/dist/features/format/bold/feature.client.js +1 -1
  122. package/dist/features/format/bold/feature.client.js.map +1 -1
  123. package/dist/features/format/bold/feature.server.d.ts.map +1 -1
  124. package/dist/features/format/bold/feature.server.js +1 -1
  125. package/dist/features/format/bold/feature.server.js.map +1 -1
  126. package/dist/features/format/inlineCode/feature.client.js +1 -1
  127. package/dist/features/format/inlineCode/feature.client.js.map +1 -1
  128. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -1
  129. package/dist/features/format/inlineCode/feature.server.js +1 -1
  130. package/dist/features/format/inlineCode/feature.server.js.map +1 -1
  131. package/dist/features/format/italic/feature.client.js +1 -1
  132. package/dist/features/format/italic/feature.client.js.map +1 -1
  133. package/dist/features/format/italic/feature.server.d.ts.map +1 -1
  134. package/dist/features/format/italic/feature.server.js +1 -1
  135. package/dist/features/format/italic/feature.server.js.map +1 -1
  136. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -1
  137. package/dist/features/format/strikethrough/feature.client.js +1 -1
  138. package/dist/features/format/strikethrough/feature.client.js.map +1 -1
  139. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -1
  140. package/dist/features/format/strikethrough/feature.server.js +1 -1
  141. package/dist/features/format/strikethrough/feature.server.js.map +1 -1
  142. package/dist/features/heading/client/index.js +2 -2
  143. package/dist/features/heading/client/index.js.map +1 -1
  144. package/dist/features/heading/constants.d.ts +2 -0
  145. package/dist/features/heading/constants.d.ts.map +1 -0
  146. package/dist/features/heading/constants.js +2 -0
  147. package/dist/features/heading/constants.js.map +1 -0
  148. package/dist/features/heading/markdownTransformer.d.ts +2 -2
  149. package/dist/features/heading/markdownTransformer.d.ts.map +1 -1
  150. package/dist/features/heading/markdownTransformer.js +6 -19
  151. package/dist/features/heading/markdownTransformer.js.map +1 -1
  152. package/dist/features/heading/server/index.d.ts.map +1 -1
  153. package/dist/features/heading/server/index.js +7 -3
  154. package/dist/features/heading/server/index.js.map +1 -1
  155. package/dist/features/heading/server/schema.d.ts.map +1 -1
  156. package/dist/features/heading/server/validate.d.ts +6 -0
  157. package/dist/features/heading/server/validate.d.ts.map +1 -0
  158. package/dist/features/heading/server/validate.js +15 -0
  159. package/dist/features/heading/server/validate.js.map +1 -0
  160. package/dist/features/horizontalRule/client/index.js +2 -2
  161. package/dist/features/horizontalRule/client/index.js.map +1 -1
  162. package/dist/features/horizontalRule/client/markdownTransformer.d.ts +2 -2
  163. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -1
  164. package/dist/features/horizontalRule/client/markdownTransformer.js +1 -1
  165. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -1
  166. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +12 -2
  167. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
  168. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +18 -1
  169. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  170. package/dist/features/horizontalRule/client/plugin/index.css +2 -2
  171. package/dist/features/horizontalRule/server/index.js +2 -2
  172. package/dist/features/horizontalRule/server/index.js.map +1 -1
  173. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +2 -2
  174. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -1
  175. package/dist/features/horizontalRule/server/markdownTransformer.js +1 -1
  176. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -1
  177. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +1 -1
  178. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -1
  179. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +3 -3
  180. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
  181. package/dist/features/horizontalRule/server/schema.d.ts +1 -0
  182. package/dist/features/horizontalRule/server/schema.d.ts.map +1 -1
  183. package/dist/features/horizontalRule/server/schema.js +6 -5
  184. package/dist/features/horizontalRule/server/schema.js.map +1 -1
  185. package/dist/features/indent/client/IndentPlugin.d.ts.map +1 -1
  186. package/dist/features/indent/client/IndentPlugin.js +122 -1
  187. package/dist/features/indent/client/IndentPlugin.js.map +1 -1
  188. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -1
  189. package/dist/features/indent/server/i18n.d.ts.map +1 -1
  190. package/dist/features/indent/server/i18n.js +74 -37
  191. package/dist/features/indent/server/i18n.js.map +1 -1
  192. package/dist/features/link/client/index.js +2 -2
  193. package/dist/features/link/client/index.js.map +1 -1
  194. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  195. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  196. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +11 -8
  197. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  198. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +7 -13
  199. package/dist/features/link/markdownTransformer.d.ts +4 -4
  200. package/dist/features/link/markdownTransformer.d.ts.map +1 -1
  201. package/dist/features/link/markdownTransformer.js +2 -2
  202. package/dist/features/link/markdownTransformer.js.map +1 -1
  203. package/dist/features/link/nodes/AutoLinkNode.d.ts +1 -1
  204. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  205. package/dist/features/link/nodes/AutoLinkNode.js +2 -10
  206. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  207. package/dist/features/link/nodes/LinkNode.d.ts +1 -1
  208. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  209. package/dist/features/link/nodes/LinkNode.js +2 -15
  210. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  211. package/dist/features/link/server/baseFields.d.ts.map +1 -1
  212. package/dist/features/link/server/baseFields.js.map +1 -1
  213. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -1
  214. package/dist/features/link/server/index.js +4 -4
  215. package/dist/features/link/server/index.js.map +1 -1
  216. package/dist/features/link/server/schema.d.ts.map +1 -1
  217. package/dist/features/link/server/schema.js +4 -2
  218. package/dist/features/link/server/schema.js.map +1 -1
  219. package/dist/features/link/server/validate.d.ts.map +1 -1
  220. package/dist/features/link/server/validate.js +1 -1
  221. package/dist/features/link/server/validate.js.map +1 -1
  222. package/dist/features/lists/checklist/client/index.js +1 -1
  223. package/dist/features/lists/checklist/client/index.js.map +1 -1
  224. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  225. package/dist/features/lists/checklist/server/index.js +6 -3
  226. package/dist/features/lists/checklist/server/index.js.map +1 -1
  227. package/dist/features/lists/orderedList/client/index.js +1 -1
  228. package/dist/features/lists/orderedList/client/index.js.map +1 -1
  229. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  230. package/dist/features/lists/orderedList/server/index.js +6 -3
  231. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  232. package/dist/features/lists/shared/constants.d.ts +2 -0
  233. package/dist/features/lists/shared/constants.d.ts.map +1 -0
  234. package/dist/features/lists/shared/constants.js +2 -0
  235. package/dist/features/lists/shared/constants.js.map +1 -0
  236. package/dist/features/lists/shared/validate.d.ts +5 -0
  237. package/dist/features/lists/shared/validate.d.ts.map +1 -0
  238. package/dist/features/lists/shared/validate.js +15 -0
  239. package/dist/features/lists/shared/validate.js.map +1 -0
  240. package/dist/features/lists/unorderedList/client/index.js +1 -1
  241. package/dist/features/lists/unorderedList/client/index.js.map +1 -1
  242. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  243. package/dist/features/lists/unorderedList/server/index.js +6 -3
  244. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  245. package/dist/features/relationship/client/components/index.css +3 -6
  246. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -1
  247. package/dist/features/relationship/client/index.d.ts +2 -2
  248. package/dist/features/relationship/client/index.d.ts.map +1 -1
  249. package/dist/features/relationship/client/index.js.map +1 -1
  250. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
  251. package/dist/features/relationship/client/nodes/RelationshipNode.js +0 -3
  252. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  253. package/dist/features/relationship/client/plugins/index.d.ts +2 -2
  254. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  255. package/dist/features/relationship/client/plugins/index.js +27 -31
  256. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  257. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts +2 -4
  258. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  259. package/dist/features/relationship/client/utils/useEnabledRelationships.js +53 -20
  260. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  261. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +2 -2
  262. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  263. package/dist/features/relationship/server/graphQLPopulationPromise.js +2 -2
  264. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  265. package/dist/features/relationship/server/index.d.ts +8 -1
  266. package/dist/features/relationship/server/index.d.ts.map +1 -1
  267. package/dist/features/relationship/server/index.js +28 -11
  268. package/dist/features/relationship/server/index.js.map +1 -1
  269. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -1
  270. package/dist/features/relationship/server/nodes/RelationshipNode.js +1 -5
  271. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
  272. package/dist/features/relationship/server/schema.d.ts +6 -5
  273. package/dist/features/relationship/server/schema.d.ts.map +1 -1
  274. package/dist/features/relationship/server/schema.js +31 -17
  275. package/dist/features/relationship/server/schema.js.map +1 -1
  276. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +1 -6
  277. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -1
  278. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +1 -5
  279. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -1
  280. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -1
  281. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -1
  282. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -1
  283. package/dist/features/table/client/index.d.ts.map +1 -0
  284. package/dist/features/{experimental_table → table}/client/index.js +2 -2
  285. package/dist/features/table/client/index.js.map +1 -0
  286. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.d.ts +8 -0
  287. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.d.ts.map +1 -0
  288. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.js +19 -0
  289. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.js.map +1 -0
  290. package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.css +0 -1
  291. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  292. package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.js +17 -44
  293. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
  294. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  295. package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.js +41 -18
  296. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
  297. package/dist/features/table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  298. package/dist/features/table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  299. package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.css +0 -3
  300. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +1 -0
  301. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.js.map +1 -0
  302. package/dist/features/table/client/plugins/TablePlugin/index.d.ts.map +1 -0
  303. package/dist/features/table/client/plugins/TablePlugin/index.js.map +1 -0
  304. package/dist/features/table/client/utils/debounce.d.ts.map +1 -0
  305. package/dist/features/table/client/utils/debounce.js.map +1 -0
  306. package/dist/features/table/client/utils/useDebounce.d.ts.map +1 -0
  307. package/dist/features/table/client/utils/useDebounce.js.map +1 -0
  308. package/dist/features/table/markdownTransformer.d.ts +5 -0
  309. package/dist/features/table/markdownTransformer.d.ts.map +1 -0
  310. package/dist/features/{experimental_table → table}/markdownTransformer.js +6 -3
  311. package/dist/features/table/markdownTransformer.js.map +1 -0
  312. package/dist/features/table/server/index.d.ts +3 -0
  313. package/dist/features/table/server/index.d.ts.map +1 -0
  314. package/dist/features/{experimental_table → table}/server/index.js +6 -6
  315. package/dist/features/table/server/index.js.map +1 -0
  316. package/dist/features/table/server/schema.d.ts.map +1 -0
  317. package/dist/features/table/server/schema.js.map +1 -0
  318. package/dist/features/textState/feature.client.js +1 -1
  319. package/dist/features/textState/feature.client.js.map +1 -1
  320. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.d.ts +8 -0
  321. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.d.ts.map +1 -0
  322. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.js +80 -0
  323. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.js.map +1 -0
  324. package/dist/features/toolbars/fixed/client/Toolbar/index.css +80 -8
  325. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -1
  326. package/dist/features/toolbars/fixed/client/Toolbar/index.js +19 -1
  327. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  328. package/dist/features/toolbars/inline/client/Toolbar/index.css +2 -14
  329. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -1
  330. package/dist/features/toolbars/inline/client/Toolbar/index.js +17 -2
  331. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  332. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  333. package/dist/features/toolbars/shared/ToolbarButton/index.js +1 -0
  334. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  335. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  336. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +85 -32
  337. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  338. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +23 -25
  339. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  340. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  341. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.d.ts +5 -0
  342. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.d.ts.map +1 -0
  343. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.js +79 -0
  344. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.js.map +1 -0
  345. package/dist/features/toolbars/shared/useToolbarStates.d.ts.map +1 -1
  346. package/dist/features/toolbars/shared/useToolbarStates.js +3 -1
  347. package/dist/features/toolbars/shared/useToolbarStates.js.map +1 -1
  348. package/dist/features/typesClient.d.ts +1 -1
  349. package/dist/features/typesClient.d.ts.map +1 -1
  350. package/dist/features/typesClient.js.map +1 -1
  351. package/dist/features/typesServer.d.ts +19 -14
  352. package/dist/features/typesServer.d.ts.map +1 -1
  353. package/dist/features/typesServer.js.map +1 -1
  354. package/dist/features/upload/client/component/index.css +9 -11
  355. package/dist/features/upload/client/component/index.js +2 -1
  356. package/dist/features/upload/client/component/index.js.map +1 -1
  357. package/dist/features/upload/client/drawer/index.d.ts.map +1 -1
  358. package/dist/features/upload/client/index.d.ts +3 -2
  359. package/dist/features/upload/client/index.d.ts.map +1 -1
  360. package/dist/features/upload/client/index.js.map +1 -1
  361. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
  362. package/dist/features/upload/client/nodes/UploadNode.js +0 -7
  363. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  364. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  365. package/dist/features/upload/client/plugin/index.js +53 -56
  366. package/dist/features/upload/client/plugin/index.js.map +1 -1
  367. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +2 -2
  368. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  369. package/dist/features/upload/server/graphQLPopulationPromise.js +1 -1
  370. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  371. package/dist/features/upload/server/index.d.ts +7 -3
  372. package/dist/features/upload/server/index.d.ts.map +1 -1
  373. package/dist/features/upload/server/index.js +22 -18
  374. package/dist/features/upload/server/index.js.map +1 -1
  375. package/dist/features/upload/server/markdownTransformer.d.ts +2 -2
  376. package/dist/features/upload/server/markdownTransformer.d.ts.map +1 -1
  377. package/dist/features/upload/server/markdownTransformer.js +1 -1
  378. package/dist/features/upload/server/markdownTransformer.js.map +1 -1
  379. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  380. package/dist/features/upload/server/nodes/UploadNode.js +1 -9
  381. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  382. package/dist/features/upload/server/schema.d.ts +6 -18
  383. package/dist/features/upload/server/schema.d.ts.map +1 -1
  384. package/dist/features/upload/server/schema.js +34 -16
  385. package/dist/features/upload/server/schema.js.map +1 -1
  386. package/dist/features/upload/server/validate.d.ts +2 -2
  387. package/dist/features/upload/server/validate.d.ts.map +1 -1
  388. package/dist/features/upload/server/validate.js +4 -1
  389. package/dist/features/upload/server/validate.js.map +1 -1
  390. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  391. package/dist/field/Diff/converters/listitem/index.js +2 -1
  392. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  393. package/dist/field/Diff/converters/relationship/index.css +0 -1
  394. package/dist/field/Diff/converters/unknown/index.css +1 -2
  395. package/dist/field/Diff/converters/upload/index.css +0 -1
  396. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  397. package/dist/field/Diff/index.css +0 -2
  398. package/dist/field/Diff/index.d.ts +3 -2
  399. package/dist/field/Diff/index.d.ts.map +1 -1
  400. package/dist/field/Diff/index.js +3 -2
  401. package/dist/field/Diff/index.js.map +1 -1
  402. package/dist/field/Field.d.ts.map +1 -1
  403. package/dist/field/Field.js +26 -16
  404. package/dist/field/Field.js.map +1 -1
  405. package/dist/field/RenderLexical/index.d.ts +3 -1
  406. package/dist/field/RenderLexical/index.d.ts.map +1 -1
  407. package/dist/field/RenderLexical/index.js +23 -23
  408. package/dist/field/RenderLexical/index.js.map +1 -1
  409. package/dist/field/ViewSelector.css +1 -1
  410. package/dist/field/ViewSelector.d.ts.map +1 -1
  411. package/dist/field/ViewSelector.js +1 -0
  412. package/dist/field/ViewSelector.js.map +1 -1
  413. package/dist/field/bundled.css +1 -1
  414. package/dist/field/index.css +7 -5
  415. package/dist/field/rscEntry.d.ts +2 -2
  416. package/dist/field/rscEntry.d.ts.map +1 -1
  417. package/dist/field/rscEntry.js.map +1 -1
  418. package/dist/i18n.d.ts.map +1 -1
  419. package/dist/i18n.js +68 -0
  420. package/dist/i18n.js.map +1 -1
  421. package/dist/index.d.ts +6 -6
  422. package/dist/index.d.ts.map +1 -1
  423. package/dist/index.js +33 -54
  424. package/dist/index.js.map +1 -1
  425. package/dist/lexical/LexicalEditor.css +30 -19
  426. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  427. package/dist/lexical/LexicalEditor.js +62 -99
  428. package/dist/lexical/LexicalEditor.js.map +1 -1
  429. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  430. package/dist/lexical/LexicalProvider.js +7 -22
  431. package/dist/lexical/LexicalProvider.js.map +1 -1
  432. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  433. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  434. package/dist/lexical/config/server/loader.d.ts +1 -1
  435. package/dist/lexical/config/server/loader.d.ts.map +1 -1
  436. package/dist/lexical/config/server/loader.js +2 -2
  437. package/dist/lexical/config/server/loader.js.map +1 -1
  438. package/dist/lexical/config/server/sanitize.d.ts +1 -1
  439. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  440. package/dist/lexical/config/server/sanitize.js +2 -2
  441. package/dist/lexical/config/server/sanitize.js.map +1 -1
  442. package/dist/lexical/plugins/DecoratorPlugin/index.css +1 -1
  443. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -1
  444. package/dist/lexical/plugins/DecoratorPlugin/index.js +24 -21
  445. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
  446. package/dist/lexical/plugins/InsertParagraphAtEnd/index.css +18 -25
  447. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -1
  448. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +27 -14
  449. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  450. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -1
  451. package/dist/lexical/plugins/MarkdownShortcut/index.js +1 -1
  452. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  453. package/dist/lexical/plugins/NodeViewOverridePlugin/index.d.ts.map +1 -1
  454. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js +21 -0
  455. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js.map +1 -1
  456. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +0 -1
  457. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -1
  458. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +2 -21
  459. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  460. package/dist/lexical/plugins/SlashMenu/index.css +1 -7
  461. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +2 -1
  462. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +2 -2
  463. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  464. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -1
  465. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +5 -3
  466. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  467. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +17 -3
  468. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  469. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.d.ts +7 -0
  470. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.d.ts.map +1 -0
  471. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.js +65 -0
  472. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.js.map +1 -0
  473. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -1
  474. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -1
  475. package/dist/lexical/plugins/handles/utils/setHandlePosition.js +2 -0
  476. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -1
  477. package/dist/lexical/theme/EditorTheme.css +18 -21
  478. package/dist/lexical/ui/ContentEditable.css +22 -17
  479. package/dist/lexical/ui/ContentEditable.d.ts +2 -1
  480. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  481. package/dist/lexical/ui/ContentEditable.js +21 -7
  482. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  483. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
  484. package/dist/lexical/ui/icons/H3/index.js +13 -6
  485. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  486. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
  487. package/dist/lexical/ui/icons/H4/index.js +13 -6
  488. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  489. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
  490. package/dist/lexical/ui/icons/H5/index.js +13 -6
  491. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  492. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
  493. package/dist/lexical/ui/icons/H6/index.js +13 -6
  494. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  495. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts +17 -0
  496. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts.map +1 -0
  497. package/dist/lexical/utils/markdown/convertFromMarkdownString.js +27 -0
  498. package/dist/lexical/utils/markdown/convertFromMarkdownString.js.map +1 -0
  499. package/dist/lexical/utils/markdown/createBlockNode.d.ts +2 -2
  500. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  501. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -1
  502. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts +25 -0
  503. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts.map +1 -0
  504. package/dist/lexical/utils/markdown/normalizeMarkdown.js +91 -0
  505. package/dist/lexical/utils/markdown/normalizeMarkdown.js.map +1 -0
  506. package/dist/lexical/utils/nodeFormat.d.ts.map +1 -1
  507. package/dist/lexical/utils/point.d.ts.map +1 -1
  508. package/dist/lexical/utils/rect.d.ts.map +1 -1
  509. package/dist/lexical-proxy/@lexical-markdown.d.ts +1 -1
  510. package/dist/lexical-proxy/@lexical-markdown.d.ts.map +1 -1
  511. package/dist/lexical-proxy/@lexical-markdown.js +1 -1
  512. package/dist/lexical-proxy/@lexical-markdown.js.map +1 -1
  513. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.d.ts +2 -0
  514. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.d.ts.map +1 -0
  515. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.js +2 -0
  516. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.js.map +1 -0
  517. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.d.ts +2 -0
  518. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.d.ts.map +1 -0
  519. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.js +2 -0
  520. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.js.map +1 -0
  521. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.d.ts +2 -0
  522. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.d.ts.map +1 -0
  523. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.js +2 -0
  524. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.js.map +1 -0
  525. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.d.ts +2 -0
  526. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.d.ts.map +1 -0
  527. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.js +2 -0
  528. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.js.map +1 -0
  529. package/dist/lexical-proxy/@lexical-react/ReactExtension.d.ts +2 -0
  530. package/dist/lexical-proxy/@lexical-react/ReactExtension.d.ts.map +1 -0
  531. package/dist/lexical-proxy/@lexical-react/ReactExtension.js +2 -0
  532. package/dist/lexical-proxy/@lexical-react/ReactExtension.js.map +1 -0
  533. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.d.ts +2 -0
  534. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.d.ts.map +1 -0
  535. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.js +2 -0
  536. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.js.map +1 -0
  537. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.d.ts +2 -0
  538. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.d.ts.map +1 -0
  539. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.js +2 -0
  540. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.js.map +1 -0
  541. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.d.ts +2 -0
  542. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.d.ts.map +1 -0
  543. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.js +2 -0
  544. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.js.map +1 -0
  545. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.d.ts +2 -0
  546. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.d.ts.map +1 -0
  547. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.js +2 -0
  548. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.js.map +1 -0
  549. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.d.ts +2 -0
  550. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.d.ts.map +1 -0
  551. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.js +2 -0
  552. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.js.map +1 -0
  553. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.d.ts +2 -0
  554. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.d.ts.map +1 -0
  555. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.js +2 -0
  556. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.js.map +1 -0
  557. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.d.ts +2 -0
  558. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.d.ts.map +1 -0
  559. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.js +2 -0
  560. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.js.map +1 -0
  561. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.d.ts +2 -0
  562. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.d.ts.map +1 -0
  563. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.js +2 -0
  564. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.js.map +1 -0
  565. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.d.ts +2 -0
  566. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.d.ts.map +1 -0
  567. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.js +2 -0
  568. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.js.map +1 -0
  569. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.d.ts +2 -0
  570. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.d.ts.map +1 -0
  571. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.js +2 -0
  572. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.js.map +1 -0
  573. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  574. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -1
  575. package/dist/presets/llmInstructions.d.ts +2 -0
  576. package/dist/presets/llmInstructions.d.ts.map +1 -0
  577. package/dist/presets/llmInstructions.js +13 -0
  578. package/dist/presets/llmInstructions.js.map +1 -0
  579. package/dist/types/builtInNodes.d.ts +1 -1
  580. package/dist/types/builtInNodes.d.ts.map +1 -1
  581. package/dist/types/builtInNodes.js +8 -3
  582. package/dist/types/builtInNodes.js.map +1 -1
  583. package/dist/types/index.d.ts +4 -7
  584. package/dist/types/index.d.ts.map +1 -1
  585. package/dist/types/index.js.map +1 -1
  586. package/dist/types/jsonSchemaHelpers.d.ts +5 -1
  587. package/dist/types/jsonSchemaHelpers.d.ts.map +1 -1
  588. package/dist/types/jsonSchemaHelpers.js +7 -2
  589. package/dist/types/jsonSchemaHelpers.js.map +1 -1
  590. package/dist/types/nodeTypes.d.ts +6 -1
  591. package/dist/types/nodeTypes.d.ts.map +1 -1
  592. package/dist/types/nodeTypes.js.map +1 -1
  593. package/dist/types/schema.d.ts.map +1 -1
  594. package/dist/types/schema.js +12 -5
  595. package/dist/types/schema.js.map +1 -1
  596. package/dist/utilities/applyBaseFilterToFields.d.ts.map +1 -1
  597. package/dist/utilities/applyBaseFilterToFields.js.map +1 -1
  598. package/dist/utilities/buildInitialState.d.ts +3 -2
  599. package/dist/utilities/buildInitialState.d.ts.map +1 -1
  600. package/dist/utilities/buildInitialState.js +1 -0
  601. package/dist/utilities/buildInitialState.js.map +1 -1
  602. package/dist/utilities/createServerFeature.d.ts +1 -1
  603. package/dist/utilities/createServerFeature.d.ts.map +1 -1
  604. package/dist/utilities/createServerFeature.js +2 -2
  605. package/dist/utilities/createServerFeature.js.map +1 -1
  606. package/dist/utilities/editorConfigFactory.d.ts +6 -6
  607. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  608. package/dist/utilities/editorConfigFactory.js +9 -9
  609. package/dist/utilities/editorConfigFactory.js.map +1 -1
  610. package/dist/utilities/fieldsDrawer/index.css +4 -4
  611. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts +1 -1
  612. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts.map +1 -1
  613. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -1
  614. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts.map +1 -1
  615. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts.map +1 -1
  616. package/dist/utilities/generateImportMap.d.ts +3 -3
  617. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  618. package/dist/utilities/generateImportMap.js +3 -7
  619. package/dist/utilities/generateImportMap.js.map +1 -1
  620. package/dist/utilities/generateSchemaMap.d.ts +1 -1
  621. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  622. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts +2 -2
  623. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -1
  624. package/dist/utilities/getDefaultSanitizedEditorConfig.js +6 -17
  625. package/dist/utilities/getDefaultSanitizedEditorConfig.js.map +1 -1
  626. package/dist/utilities/recurseNodeTree.d.ts.map +1 -1
  627. package/dist/utilities/upgradeLexicalData/index.js +6 -3
  628. package/dist/utilities/upgradeLexicalData/index.js.map +1 -1
  629. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -1
  630. package/dist/utilities/useLexicalFeature.d.ts.map +1 -1
  631. package/dist/validate/hasText.d.ts +2 -2
  632. package/dist/validate/hasText.d.ts.map +1 -1
  633. package/dist/validate/hasText.js.map +1 -1
  634. package/dist/validate/index.d.ts +1 -1
  635. package/dist/validate/index.d.ts.map +1 -1
  636. package/package.json +98 -30
  637. package/dist/@types/assets.d.js +0 -2
  638. package/dist/@types/assets.d.js.map +0 -1
  639. package/dist/dependencyChecker.spec.js +0 -16
  640. package/dist/dependencyChecker.spec.js.map +0 -1
  641. package/dist/exports/client/Field-VYBSMSRY.js +0 -2
  642. package/dist/exports/client/Field-VYBSMSRY.js.map +0 -7
  643. package/dist/exports/client/bundled.css +0 -1
  644. package/dist/exports/client/chunk-ESITTE3C.js +0 -2
  645. package/dist/exports/client/chunk-ESITTE3C.js.map +0 -7
  646. package/dist/exports/client/chunk-LH634DPU.js +0 -12
  647. package/dist/exports/client/chunk-LH634DPU.js.map +0 -7
  648. package/dist/exports/client/chunk-UD4DQ4AK.js +0 -2
  649. package/dist/exports/client/chunk-UD4DQ4AK.js.map +0 -7
  650. package/dist/exports/client/component-PHZQBOJE.js +0 -2
  651. package/dist/exports/client/component-PHZQBOJE.js.map +0 -7
  652. package/dist/exports/client/componentInline-H24N7GUG.js +0 -2
  653. package/dist/exports/server/rsc.browser.d.ts +0 -11
  654. package/dist/exports/server/rsc.browser.d.ts.map +0 -1
  655. package/dist/exports/server/rsc.browser.js +0 -10
  656. package/dist/exports/server/rsc.browser.js.map +0 -1
  657. package/dist/features/blockquote/markdownTransformer.d.ts +0 -3
  658. package/dist/features/blockquote/markdownTransformer.d.ts.map +0 -1
  659. package/dist/features/blockquote/markdownTransformer.js +0 -33
  660. package/dist/features/blockquote/markdownTransformer.js.map +0 -1
  661. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts +0 -11
  662. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +0 -1
  663. package/dist/features/blocks/client/component/removeEmptyArrayValues.js +0 -20
  664. package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +0 -1
  665. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js +0 -180
  666. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +0 -1
  667. package/dist/features/experimental_table/client/index.d.ts.map +0 -1
  668. package/dist/features/experimental_table/client/index.js.map +0 -1
  669. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +0 -1
  670. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +0 -1
  671. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +0 -1
  672. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +0 -1
  673. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +0 -1
  674. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +0 -1
  675. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +0 -1
  676. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js.map +0 -1
  677. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +0 -1
  678. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +0 -1
  679. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +0 -1
  680. package/dist/features/experimental_table/client/utils/debounce.js.map +0 -1
  681. package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +0 -1
  682. package/dist/features/experimental_table/client/utils/useDebounce.js.map +0 -1
  683. package/dist/features/experimental_table/markdownTransformer.d.ts +0 -5
  684. package/dist/features/experimental_table/markdownTransformer.d.ts.map +0 -1
  685. package/dist/features/experimental_table/markdownTransformer.js.map +0 -1
  686. package/dist/features/experimental_table/server/index.d.ts +0 -3
  687. package/dist/features/experimental_table/server/index.d.ts.map +0 -1
  688. package/dist/features/experimental_table/server/index.js.map +0 -1
  689. package/dist/features/experimental_table/server/schema.d.ts.map +0 -1
  690. package/dist/features/experimental_table/server/schema.js.map +0 -1
  691. package/dist/features/format/bold/markdownTransformers.d.ts +0 -6
  692. package/dist/features/format/bold/markdownTransformers.d.ts.map +0 -1
  693. package/dist/features/format/bold/markdownTransformers.js +0 -23
  694. package/dist/features/format/bold/markdownTransformers.js.map +0 -1
  695. package/dist/features/format/inlineCode/markdownTransformers.d.ts +0 -3
  696. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +0 -1
  697. package/dist/features/format/inlineCode/markdownTransformers.js +0 -6
  698. package/dist/features/format/inlineCode/markdownTransformers.js.map +0 -1
  699. package/dist/features/format/italic/markdownTransformers.d.ts +0 -4
  700. package/dist/features/format/italic/markdownTransformers.d.ts.map +0 -1
  701. package/dist/features/format/italic/markdownTransformers.js +0 -12
  702. package/dist/features/format/italic/markdownTransformers.js.map +0 -1
  703. package/dist/features/format/strikethrough/markdownTransformers.d.ts +0 -3
  704. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
  705. package/dist/features/format/strikethrough/markdownTransformers.js +0 -6
  706. package/dist/features/format/strikethrough/markdownTransformers.js.map +0 -1
  707. package/dist/features/link/markdownTransformer.spec.js +0 -195
  708. package/dist/features/link/markdownTransformer.spec.js.map +0 -1
  709. package/dist/features/lists/checklist/markdownTransformers.d.ts +0 -3
  710. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
  711. package/dist/features/lists/checklist/markdownTransformers.js +0 -12
  712. package/dist/features/lists/checklist/markdownTransformers.js.map +0 -1
  713. package/dist/features/lists/orderedList/markdownTransformer.d.ts +0 -3
  714. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +0 -1
  715. package/dist/features/lists/orderedList/markdownTransformer.js +0 -12
  716. package/dist/features/lists/orderedList/markdownTransformer.js.map +0 -1
  717. package/dist/features/lists/shared/markdown.d.ts +0 -6
  718. package/dist/features/lists/shared/markdown.d.ts.map +0 -1
  719. package/dist/features/lists/shared/markdown.js +0 -57
  720. package/dist/features/lists/shared/markdown.js.map +0 -1
  721. package/dist/features/lists/unorderedList/markdownTransformer.d.ts +0 -3
  722. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +0 -1
  723. package/dist/features/lists/unorderedList/markdownTransformer.js +0 -12
  724. package/dist/features/lists/unorderedList/markdownTransformer.js.map +0 -1
  725. package/dist/field/clientEntry.d.ts +0 -29
  726. package/dist/field/clientEntry.d.ts.map +0 -1
  727. package/dist/field/clientEntry.js +0 -86
  728. package/dist/field/clientEntry.js.map +0 -1
  729. package/dist/lexical/utils/guard.d.ts +0 -5
  730. package/dist/lexical/utils/guard.d.ts.map +0 -1
  731. package/dist/lexical/utils/guard.js +0 -9
  732. package/dist/lexical/utils/guard.js.map +0 -1
  733. package/dist/lexical/utils/url.spec.js +0 -114
  734. package/dist/lexical/utils/url.spec.js.map +0 -1
  735. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts +0 -2
  736. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts.map +0 -1
  737. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js +0 -2
  738. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js.map +0 -1
  739. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts +0 -14
  740. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts.map +0 -1
  741. package/dist/packages/@lexical/markdown/MarkdownExport.js +0 -213
  742. package/dist/packages/@lexical/markdown/MarkdownExport.js.map +0 -1
  743. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts +0 -19
  744. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts.map +0 -1
  745. package/dist/packages/@lexical/markdown/MarkdownImport.js +0 -198
  746. package/dist/packages/@lexical/markdown/MarkdownImport.js.map +0 -1
  747. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts +0 -11
  748. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts.map +0 -1
  749. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js +0 -304
  750. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js.map +0 -1
  751. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts +0 -147
  752. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts.map +0 -1
  753. package/dist/packages/@lexical/markdown/MarkdownTransformers.js +0 -268
  754. package/dist/packages/@lexical/markdown/MarkdownTransformers.js.map +0 -1
  755. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts +0 -22
  756. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts.map +0 -1
  757. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js +0 -91
  758. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js.map +0 -1
  759. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts +0 -21
  760. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts.map +0 -1
  761. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js +0 -54
  762. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js.map +0 -1
  763. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts +0 -18
  764. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts.map +0 -1
  765. package/dist/packages/@lexical/markdown/importTextTransformers.js +0 -54
  766. package/dist/packages/@lexical/markdown/importTextTransformers.js.map +0 -1
  767. package/dist/packages/@lexical/markdown/index.d.ts +0 -29
  768. package/dist/packages/@lexical/markdown/index.d.ts.map +0 -1
  769. package/dist/packages/@lexical/markdown/index.js +0 -39
  770. package/dist/packages/@lexical/markdown/index.js.map +0 -1
  771. package/dist/packages/@lexical/markdown/utils.d.ts +0 -34
  772. package/dist/packages/@lexical/markdown/utils.d.ts.map +0 -1
  773. package/dist/packages/@lexical/markdown/utils.js +0 -267
  774. package/dist/packages/@lexical/markdown/utils.js.map +0 -1
  775. package/dist/utilities/jsx/jsx.spec.js +0 -178
  776. package/dist/utilities/jsx/jsx.spec.js.map +0 -1
  777. /package/dist/exports/client/{componentInline-H24N7GUG.js.map → componentInline-HNE5G4TE.js.map} +0 -0
  778. /package/dist/features/{experimental_table → table}/client/index.d.ts +0 -0
  779. /package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.d.ts +0 -0
  780. /package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.css +0 -0
  781. /package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.d.ts +0 -0
  782. /package/dist/features/{experimental_table → table}/client/plugins/TableHoverActionsPlugin/index.d.ts +0 -0
  783. /package/dist/features/{experimental_table → table}/client/plugins/TableHoverActionsPlugin/index.js +0 -0
  784. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.d.ts +0 -0
  785. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.js +0 -0
  786. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.css +0 -0
  787. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.d.ts +0 -0
  788. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.js +0 -0
  789. /package/dist/features/{experimental_table → table}/client/utils/debounce.d.ts +0 -0
  790. /package/dist/features/{experimental_table → table}/client/utils/debounce.js +0 -0
  791. /package/dist/features/{experimental_table → table}/client/utils/useDebounce.d.ts +0 -0
  792. /package/dist/features/{experimental_table → table}/client/utils/useDebounce.js +0 -0
  793. /package/dist/features/{experimental_table → table}/server/schema.d.ts +0 -0
  794. /package/dist/features/{experimental_table → table}/server/schema.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeMarkdown.js","names":["EMPTY_OR_WHITESPACE_ONLY","ORDERED_LIST_REGEX","UNORDERED_LIST_REGEX","CHECK_LIST_REGEX","HEADING_REGEX","QUOTE_REGEX","CODE_START_REGEX","CODE_END_REGEX","CODE_SINGLE_LINE_REGEX","TABLE_ROW_REG_EXP","TABLE_ROW_DIVIDER_REG_EXP","TAG_START_REGEX","TAG_END_REGEX","parseMarkdownHardLineBreak","line","endsWith","slice","spaces","match","normalizeMarkdown","input","shouldMergeAdjacentLines","lines","split","inCodeBlock","sanitizedLines","nestedDeepCodeBlock","i","length","lastLine","hardLineBreak","lastLineHasHardLineBreak","undefined","test","push","trim","trimStart","join"],"sources":["../../../../src/lexical/utils/markdown/normalizeMarkdown.ts"],"sourcesContent":["/**\n * Payload-specific markdown normalization, run by `$convertFromMarkdownString`\n * before delegating the import to `@lexical/markdown`. Handles nested code\n * fences and preserves table-row whitespace.\n *\n * TODO: Remove this file once https://github.com/facebook/lexical/pull/8734 is\n * merged and we upgrade to a release that includes it. That PR fixes the nested\n * code fence handling upstream, so `$convertFromMarkdownString` can call\n * `@lexical/markdown` directly instead of pre-normalizing here.\n */\n\n// These regexes are only used with `.test()` here, so their capturing groups\n// are unused in this module.\n/* eslint-disable regexp/no-unused-capturing-group */\n\nconst EMPTY_OR_WHITESPACE_ONLY = /^[\\t ]*$/\nconst ORDERED_LIST_REGEX = /^(\\s*)(\\d+)\\.\\s/\nconst UNORDERED_LIST_REGEX = /^(\\s*)[-*+]\\s/\nconst CHECK_LIST_REGEX = /^(\\s*)(?:-\\s)?\\s?(\\[(\\s|x)?\\])\\s/i\nconst HEADING_REGEX = /^(#{1,6})\\s/\nconst QUOTE_REGEX = /^>\\s/\nconst CODE_START_REGEX = /^[ \\t]*(\\\\`\\\\`\\\\`|```)(\\w+)?/\nconst CODE_END_REGEX = /[ \\t]*(\\\\`\\\\`\\\\`|```)$/\nconst CODE_SINGLE_LINE_REGEX = /^[ \\t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/\nconst TABLE_ROW_REG_EXP = /^\\|(.+)\\|\\s?$/\nconst TABLE_ROW_DIVIDER_REG_EXP = /^(\\| ?:?-*:? ?)+\\|\\s?$/\nconst TAG_START_REGEX = /^[ \\t]*<[a-z_][\\w-]*(?:\\s[^<>]*)?\\/?>/i\nconst TAG_END_REGEX = /^[ \\t]*<\\/[a-z_][\\w-]*\\s*>/i\n\n/**\n * Represents a CommonMark hard line break marker: either a trailing backslash\n * or two-or-more trailing spaces.\n *\n * See https://spec.commonmark.org/0.31.2/#hard-line-breaks\n */\nexport type MarkdownHardLineBreak = string\n\n/**\n * Detects a CommonMark hard line break marker at the end of a raw line.\n *\n * @returns a tuple of `[textWithoutMarker, marker]` when a marker is found, otherwise null.\n */\nexport function parseMarkdownHardLineBreak(line: string): [string, MarkdownHardLineBreak] | null {\n if (line.endsWith('\\\\')) {\n return [line.slice(0, -1), '\\\\']\n }\n\n const spaces = line.match(/^(.*?\\S)( {2,})$/)\n return spaces ? [spaces[1]!, spaces[2]!] : null\n}\n\nexport function normalizeMarkdown(input: string, shouldMergeAdjacentLines: boolean): string {\n const lines = input.split('\\n')\n let inCodeBlock = false\n const sanitizedLines: string[] = []\n let nestedDeepCodeBlock = 0\n\n for (let i = 0; i < lines.length; i++) {\n const line = lines[i]!\n const lastLine = sanitizedLines[sanitizedLines.length - 1]\n // A hard line break marker on the current line only matters if another line follows it.\n const hardLineBreak = i < lines.length - 1 ? parseMarkdownHardLineBreak(line) : null\n const lastLineHasHardLineBreak =\n lastLine !== undefined && parseMarkdownHardLineBreak(lastLine) !== null\n\n // Code blocks of ```single line``` don't toggle the inCodeBlock flag\n if (CODE_SINGLE_LINE_REGEX.test(line)) {\n sanitizedLines.push(line)\n continue\n }\n\n if (CODE_END_REGEX.test(line)) {\n if (nestedDeepCodeBlock === 0) {\n inCodeBlock = true\n }\n if (nestedDeepCodeBlock === 1) {\n inCodeBlock = false\n }\n if (nestedDeepCodeBlock > 0) {\n nestedDeepCodeBlock--\n }\n sanitizedLines.push(line)\n continue\n }\n\n // Toggle inCodeBlock state when encountering start or end of a code block\n if (CODE_START_REGEX.test(line)) {\n inCodeBlock = true\n nestedDeepCodeBlock++\n sanitizedLines.push(line)\n continue\n }\n\n // If we are inside a code block, keep the line unchanged\n if (inCodeBlock) {\n sanitizedLines.push(line)\n continue\n }\n\n // In markdown the concept of \"empty paragraphs\" does not exist.\n // Blocks must be separated by an empty line. Non-empty adjacent lines must be merged.\n if (\n EMPTY_OR_WHITESPACE_ONLY.test(line) ||\n EMPTY_OR_WHITESPACE_ONLY.test(lastLine!) ||\n !lastLine ||\n HEADING_REGEX.test(lastLine) ||\n HEADING_REGEX.test(line) ||\n QUOTE_REGEX.test(line) ||\n ORDERED_LIST_REGEX.test(line) ||\n UNORDERED_LIST_REGEX.test(line) ||\n CHECK_LIST_REGEX.test(line) ||\n TABLE_ROW_REG_EXP.test(line) ||\n TABLE_ROW_DIVIDER_REG_EXP.test(line) ||\n // Don't merge the next line into a line that ends with a hard line break marker.\n lastLineHasHardLineBreak ||\n !shouldMergeAdjacentLines ||\n TAG_START_REGEX.test(line) ||\n TAG_END_REGEX.test(line) ||\n TAG_START_REGEX.test(lastLine) ||\n TAG_END_REGEX.test(lastLine) ||\n CODE_END_REGEX.test(lastLine)\n ) {\n sanitizedLines.push(line)\n } else {\n // Preserve a trailing hard line break marker on the merged line so it survives import.\n sanitizedLines[sanitizedLines.length - 1] =\n lastLine + ' ' + (hardLineBre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IAAI,MAAM,CAEd;CACF;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,KAAK,CAE9C"}
1
+ {"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../src/lexical/utils/point.ts"],"names":[],"mappings":"AACA,qBAAa,KAAK;IAChB,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAQ;IAE3B,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAQ;IAE3B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAG/B;IAEM,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,GAAG,MAAM,CAExC;IAEM,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,GAAG,MAAM,CAExC;IAEM,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAE1C;IAEM,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEpD;IAEM,oBAAoB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEhD;IAEM,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,GAAG,OAAO,CAEtC;IAED,IAAI,CAAC,IAAI,MAAM,CAEd;IAED,IAAI,CAAC,IAAI,MAAM,CAEd;CACF;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,KAAK,CAE9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"rect.d.ts","sourceRoot":"","sources":["../../../src/lexical/utils/rect.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,KAAK,EAAE,MAAM,YAAY,CAAA;AAEhD,UAAU,mBAAmB;IAC3B,MAAM,EAAE;QACN,cAAc,EAAE,OAAO,CAAA;QACvB,YAAY,EAAE,OAAO,CAAA;QACrB,aAAa,EAAE,OAAO,CAAA;QACtB,WAAW,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,MAAM,EAAE,OAAO,CAAA;CAChB;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/index.js';
1
+ export * from '@lexical/markdown';
2
2
  //# sourceMappingURL=@lexical-markdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"@lexical-markdown.d.ts","sourceRoot":"","sources":["../../src/lexical-proxy/@lexical-markdown.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAA"}
1
+ {"version":3,"file":"@lexical-markdown.d.ts","sourceRoot":"","sources":["../../src/lexical-proxy/@lexical-markdown.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
@@ -1,2 +1,2 @@
1
- export * from '../packages/@lexical/markdown/index.js';
1
+ export * from '@lexical/markdown';
2
2
  //# sourceMappingURL=@lexical-markdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"@lexical-markdown.js","names":[],"sources":["../../src/lexical-proxy/@lexical-markdown.ts"],"sourcesContent":["export * from '../packages/@lexical/markdown/index.js'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"@lexical-markdown.js","names":[],"sources":["../../src/lexical-proxy/@lexical-markdown.ts"],"sourcesContent":["export * from '@lexical/markdown'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/ExtensionComponent';
2
+ //# sourceMappingURL=ExtensionComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExtensionComponent.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/ExtensionComponent.tsx"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/ExtensionComponent';
2
+ //# sourceMappingURL=ExtensionComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExtensionComponent.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/ExtensionComponent.tsx"],"sourcesContent":["export * from '@lexical/react/ExtensionComponent'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/LexicalExtensionComposer';
2
+ //# sourceMappingURL=LexicalExtensionComposer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexicalExtensionComposer.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/LexicalExtensionComposer.tsx"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/LexicalExtensionComposer';
2
+ //# sourceMappingURL=LexicalExtensionComposer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexicalExtensionComposer.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/LexicalExtensionComposer.tsx"],"sourcesContent":["export * from '@lexical/react/LexicalExtensionComposer'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/LexicalExtensionEditorComposer';
2
+ //# sourceMappingURL=LexicalExtensionEditorComposer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexicalExtensionEditorComposer.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.tsx"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/LexicalExtensionEditorComposer';
2
+ //# sourceMappingURL=LexicalExtensionEditorComposer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexicalExtensionEditorComposer.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.tsx"],"sourcesContent":["export * from '@lexical/react/LexicalExtensionEditorComposer'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/LexicalSelectionAlwaysOnDisplay';
2
+ //# sourceMappingURL=LexicalSelectionAlwaysOnDisplay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexicalSelectionAlwaysOnDisplay.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.tsx"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/LexicalSelectionAlwaysOnDisplay';
2
+ //# sourceMappingURL=LexicalSelectionAlwaysOnDisplay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexicalSelectionAlwaysOnDisplay.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.tsx"],"sourcesContent":["export * from '@lexical/react/LexicalSelectionAlwaysOnDisplay'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/ReactExtension';
2
+ //# sourceMappingURL=ReactExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactExtension.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/ReactExtension.tsx"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/ReactExtension';
2
+ //# sourceMappingURL=ReactExtension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactExtension.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/ReactExtension.tsx"],"sourcesContent":["export * from '@lexical/react/ReactExtension'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/ReactPluginHostExtension';
2
+ //# sourceMappingURL=ReactPluginHostExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactPluginHostExtension.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/ReactPluginHostExtension.tsx"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/ReactPluginHostExtension';
2
+ //# sourceMappingURL=ReactPluginHostExtension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactPluginHostExtension.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/ReactPluginHostExtension.tsx"],"sourcesContent":["export * from '@lexical/react/ReactPluginHostExtension'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/ReactProviderExtension';
2
+ //# sourceMappingURL=ReactProviderExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactProviderExtension.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/ReactProviderExtension.tsx"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/ReactProviderExtension';
2
+ //# sourceMappingURL=ReactProviderExtension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactProviderExtension.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/ReactProviderExtension.tsx"],"sourcesContent":["export * from '@lexical/react/ReactProviderExtension'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/TreeViewExtension';
2
+ //# sourceMappingURL=TreeViewExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TreeViewExtension.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/TreeViewExtension.tsx"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/TreeViewExtension';
2
+ //# sourceMappingURL=TreeViewExtension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TreeViewExtension.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/TreeViewExtension.tsx"],"sourcesContent":["export * from '@lexical/react/TreeViewExtension'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useExtensionComponent';
2
+ //# sourceMappingURL=useExtensionComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExtensionComponent.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/useExtensionComponent.tsx"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useExtensionComponent';
2
+ //# sourceMappingURL=useExtensionComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExtensionComponent.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/useExtensionComponent.tsx"],"sourcesContent":["export * from '@lexical/react/useExtensionComponent'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useExtensionSignalValue';
2
+ //# sourceMappingURL=useExtensionSignalValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExtensionSignalValue.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/useExtensionSignalValue.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useExtensionSignalValue';
2
+ //# sourceMappingURL=useExtensionSignalValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExtensionSignalValue.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/useExtensionSignalValue.ts"],"sourcesContent":["export * from '@lexical/react/useExtensionSignalValue'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useLexicalAriaLiveRegion';
2
+ //# sourceMappingURL=useLexicalAriaLiveRegion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLexicalAriaLiveRegion.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useLexicalAriaLiveRegion';
2
+ //# sourceMappingURL=useLexicalAriaLiveRegion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLexicalAriaLiveRegion.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.ts"],"sourcesContent":["export * from '@lexical/react/useLexicalAriaLiveRegion'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useLexicalFocusManagerRef';
2
+ //# sourceMappingURL=useLexicalFocusManagerRef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLexicalFocusManagerRef.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useLexicalFocusManagerRef';
2
+ //# sourceMappingURL=useLexicalFocusManagerRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLexicalFocusManagerRef.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.ts"],"sourcesContent":["export * from '@lexical/react/useLexicalFocusManagerRef'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useLexicalFocusTrapRef';
2
+ //# sourceMappingURL=useLexicalFocusTrapRef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLexicalFocusTrapRef.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useLexicalFocusTrapRef';
2
+ //# sourceMappingURL=useLexicalFocusTrapRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLexicalFocusTrapRef.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.ts"],"sourcesContent":["export * from '@lexical/react/useLexicalFocusTrapRef'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useLexicalRovingTabIndexRef';
2
+ //# sourceMappingURL=useLexicalRovingTabIndexRef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLexicalRovingTabIndexRef.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useLexicalRovingTabIndexRef';
2
+ //# sourceMappingURL=useLexicalRovingTabIndexRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLexicalRovingTabIndexRef.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.ts"],"sourcesContent":["export * from '@lexical/react/useLexicalRovingTabIndexRef'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useLexicalSlotRef';
2
+ //# sourceMappingURL=useLexicalSlotRef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLexicalSlotRef.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/useLexicalSlotRef.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from '@lexical/react/useLexicalSlotRef';
2
+ //# sourceMappingURL=useLexicalSlotRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLexicalSlotRef.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/useLexicalSlotRef.ts"],"sourcesContent":["export * from '@lexical/react/useLexicalSlotRef'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"populateLexicalPopulationPromises.d.ts","sourceRoot":"","sources":["../../src/populateGraphQL/populateLexicalPopulationPromises.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAIrD,MAAM,MAAM,IAAI,GAAG;IACjB,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAA;IAC/D,iBAAiB,EAAE,OAAO,CAAA;CAC3B,GAAG,UAAU,CACZ,WAAW,CAAC,eAAe,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAC/F,CAAC,CAAC,CAAC,CAAA;AAEJ;;GAEG;AACH,eAAO,MAAM,iCAAiC,GAAI,8MAgB/C,IAAI,SAoCN,CAAA"}
1
+ {"version":3,"file":"populateLexicalPopulationPromises.d.ts","sourceRoot":"","sources":["../../src/populateGraphQL/populateLexicalPopulationPromises.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAIrD,MAAM,MAAM,IAAI,GAAG;IACjB,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAA;IAC/D,iBAAiB,EAAE,OAAO,CAAA;CAC3B,GAAG,UAAU,CACZ,WAAW,CAAC,eAAe,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAC/F,CAAC,CAAC,CAAC,CAAA;AAEJ;;GAEG;AACH,eAAO,MAAM,iCAAiC,iNAgB3C,IAAI,SAoCN,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"recursivelyPopulateFieldsForGraphQL.d.ts","sourceRoot":"","sources":["../../src/populateGraphQL/recursivelyPopulateFieldsForGraphQL.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAIhF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAEnE,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,cAAc,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd;;OAEG;IACH,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAA;IAC/D;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAA;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,cAAc,EAAE,OAAO,CAAA;IACvB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAA;IACnC,GAAG,EAAE,cAAc,CAAA;IACnB,gBAAgB,EAAE,OAAO,CAAA;IACzB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,mCAAmC,GAAI,2LAgBjD,wBAAwB,KAAG,IA0B7B,CAAA"}
1
+ {"version":3,"file":"recursivelyPopulateFieldsForGraphQL.d.ts","sourceRoot":"","sources":["../../src/populateGraphQL/recursivelyPopulateFieldsForGraphQL.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAIhF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAEnE,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,cAAc,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd;;OAEG;IACH,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAA;IAC/D;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAA;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,cAAc,EAAE,OAAO,CAAA;IACvB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAA;IACnC,GAAG,EAAE,cAAc,CAAA;IACnB,gBAAgB,EAAE,OAAO,CAAA;IACzB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,mCAAmC,8LAgB7C,wBAAwB,KAAG,IA0B7B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const getLLMInstructionsFeatures: () => (import("../index.js").FeatureProviderServer<undefined, undefined, undefined> | import("../index.js").FeatureProviderServer<undefined, undefined, null> | import("../index.js").FeatureProviderServer<import("../features/toolbars/fixed/server/index.js").FixedToolbarFeatureProps, import("../features/toolbars/fixed/server/index.js").FixedToolbarFeatureProps, import("../features/toolbars/fixed/server/index.js").FixedToolbarFeatureProps> | import("../index.js").FeatureProviderServer<import("../features/heading/server/index.js").HeadingFeatureProps, import("../features/heading/server/index.js").HeadingFeatureProps, import("../features/heading/server/index.js").HeadingFeatureProps>)[];
2
+ //# sourceMappingURL=llmInstructions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llmInstructions.d.ts","sourceRoot":"","sources":["../../src/presets/llmInstructions.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,0BAA0B,orBAUtC,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { BoldFeature } from '../features/format/bold/feature.server.js';
2
+ import { ItalicFeature } from '../features/format/italic/feature.server.js';
3
+ import { StrikethroughFeature } from '../features/format/strikethrough/feature.server.js';
4
+ import { HeadingFeature } from '../features/heading/server/index.js';
5
+ import { OrderedListFeature } from '../features/lists/orderedList/server/index.js';
6
+ import { UnorderedListFeature } from '../features/lists/unorderedList/server/index.js';
7
+ import { ParagraphFeature } from '../features/paragraph/server/index.js';
8
+ import { FixedToolbarFeature } from '../features/toolbars/fixed/server/index.js';
9
+ import { InlineToolbarFeature } from '../features/toolbars/inline/server/index.js';
10
+ export const getLLMInstructionsFeatures = () => [ParagraphFeature(), HeadingFeature({
11
+ enabledHeadingSizes: ['h2', 'h3', 'h4']
12
+ }), BoldFeature(), ItalicFeature(), StrikethroughFeature(), UnorderedListFeature(), OrderedListFeature(), FixedToolbarFeature(), InlineToolbarFeature()];
13
+ //# sourceMappingURL=llmInstructions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llmInstructions.js","names":["BoldFeature","ItalicFeature","StrikethroughFeature","HeadingFeature","OrderedListFeature","UnorderedListFeature","ParagraphFeature","FixedToolbarFeature","InlineToolbarFeature","getLLMInstructionsFeatures","enabledHeadingSizes"],"sources":["../../src/presets/llmInstructions.ts"],"sourcesContent":["import { BoldFeature } from '../features/format/bold/feature.server.js'\nimport { ItalicFeature } from '../features/format/italic/feature.server.js'\nimport { StrikethroughFeature } from '../features/format/strikethrough/feature.server.js'\nimport { HeadingFeature } from '../features/heading/server/index.js'\nimport { OrderedListFeature } from '../features/lists/orderedList/server/index.js'\nimport { UnorderedListFeature } from '../features/lists/unorderedList/server/index.js'\nimport { ParagraphFeature } from '../features/paragraph/server/index.js'\nimport { FixedToolbarFeature } from '../features/toolbars/fixed/server/index.js'\nimport { InlineToolbarFeature } from '../features/toolbars/inline/server/index.js'\n\nexport const getLLMInstructionsFeatures = () => [\n ParagraphFeature(),\n HeadingFeature({ enabledHeadingSizes: ['h2', 'h3', 'h4'] }),\n BoldFeature(),\n ItalicFeature(),\n StrikethroughFeature(),\n UnorderedListFeature(),\n OrderedListFeature(),\n FixedToolbarFeature(),\n InlineToolbarFeature(),\n]\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ;AAC5B,SAASC,aAAa,QAAQ;AAC9B,SAASC,oBAAoB,QAAQ;AACrC,SAASC,cAAc,QAAQ;AAC/B,SAASC,kBAAkB,QAAQ;AACnC,SAASC,oBAAoB,QAAQ;AACrC,SAASC,gBAAgB,QAAQ;AACjC,SAASC,mBAAmB,QAAQ;AACpC,SAASC,oBAAoB,QAAQ;AAErC,OAAO,MAAMC,0BAAA,GAA6BA,CAAA,KAAM,CAC9CH,gBAAA,IACAH,cAAA,CAAe;EAAEO,mBAAA,EAAqB,CAAC,MAAM,MAAM;AAAM,IACzDV,WAAA,IACAC,aAAA,IACAC,oBAAA,IACAG,oBAAA,IACAD,kBAAA,IACAG,mBAAA,IACAC,oBAAA,GACD","ignoreList":[]}
@@ -5,7 +5,7 @@ import type { JSONSchemaFn } from '../features/typesServer.js';
5
5
  * in `types/nodeTypes.ts` (`LexicalElementFormat`, `LexicalElementDirection`,
6
6
  * `SerializedLexicalElementBase`) — cross-module assignability depends on it.
7
7
  */
8
- export declare const CORE_LEXICAL_TYPE_STRING = "/** @internal Core Lexical types \u2014 see @payloadcms/richtext-lexical. */\nexport type LexicalElementFormat = 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';\nexport type LexicalElementDirection = ('ltr' | 'rtl') | null;\n\nexport interface SerializedLexicalElementBase<TChildren> {\n children: TChildren[];\n direction: LexicalElementDirection;\n format: LexicalElementFormat;\n indent: number;\n textFormat?: number;\n textStyle?: string;\n version: number;\n}";
8
+ export declare const CORE_LEXICAL_TYPE_STRING = "/** @internal Core Lexical types \u2014 see @payloadcms/richtext-lexical. */\nexport type LexicalElementFormat = 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';\nexport type LexicalElementDirection = ('ltr' | 'rtl') | null;\n\nexport interface SerializedLexicalElementBase<TChildren> {\n children: TChildren[];\n direction: LexicalElementDirection;\n format: LexicalElementFormat;\n indent: number;\n textFormat?: number;\n textStyle?: string;\n /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */\n version: number;\n}";
9
9
  export declare const textNodeJSONSchema: JSONSchemaFn;
10
10
  export declare const tabNodeJSONSchema: JSONSchemaFn;
11
11
  export declare const lineBreakNodeJSONSchema: JSONSchemaFn;
@@ -1 +1 @@
1
- {"version":3,"file":"builtInNodes.d.ts","sourceRoot":"","sources":["../../src/types/builtInNodes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAI9D;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,6eAYnC,CAAA;AA4DF,eAAO,MAAM,kBAAkB,EAAE,YAkBhC,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,YAoB/B,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,YAYrC,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,YAerC,CAAA;AAeD,eAAO,MAAM,kBAAkB,EAAE,YAoBhC,CAAA"}
1
+ {"version":3,"file":"builtInNodes.d.ts","sourceRoot":"","sources":["../../src/types/builtInNodes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAI9D;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,yoBAanC,CAAA;AA+DF,eAAO,MAAM,kBAAkB,EAAE,YAkBhC,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,YAoB/B,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,YAYrC,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,YAerC,CAAA;AAgBD,eAAO,MAAM,kBAAkB,EAAE,YAoBhC,CAAA"}
@@ -17,6 +17,7 @@ export interface SerializedLexicalElementBase<TChildren> {
17
17
  indent: number;
18
18
  textFormat?: number;
19
19
  textStyle?: string;
20
+ /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */
20
21
  version: number;
21
22
  }`;
22
23
  /**
@@ -34,6 +35,7 @@ const SERIALIZED_TEXT_NODE_TS = `export interface SerializedTextNode {
34
35
  mode: LexicalTextMode;
35
36
  style: string;
36
37
  text: string;
38
+ /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */
37
39
  version: number;
38
40
  }`;
39
41
  /** MUST stay byte-for-byte in sync with `SerializedTabNode` in `types/nodeTypes.ts`. */
@@ -44,11 +46,13 @@ const SERIALIZED_TAB_NODE_TS = `export interface SerializedTabNode {
44
46
  mode: LexicalTextMode;
45
47
  style: string;
46
48
  text: string;
49
+ /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */
47
50
  version: number;
48
51
  }`;
49
52
  /** MUST stay byte-for-byte in sync with `SerializedLineBreakNode` in `types/nodeTypes.ts`. */
50
53
  const SERIALIZED_LINE_BREAK_NODE_TS = `export interface SerializedLineBreakNode {
51
54
  type: 'linebreak';
55
+ /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */
52
56
  version: number;
53
57
  }`;
54
58
  /** MUST stay byte-for-byte in sync with `SerializedParagraphNode` in `types/nodeTypes.ts`. */
@@ -93,7 +97,7 @@ export const textNodeJSONSchema = ({
93
97
  },
94
98
  version: versionSchema
95
99
  },
96
- required: ['detail', 'format', 'mode', 'style', 'text', 'type', 'version'],
100
+ required: ['detail', 'format', 'mode', 'style', 'text', 'type'],
97
101
  tsType: 'SerializedTextNode'
98
102
  };
99
103
  };
@@ -127,7 +131,7 @@ export const tabNodeJSONSchema = ({
127
131
  },
128
132
  version: versionSchema
129
133
  },
130
- required: ['detail', 'format', 'mode', 'style', 'text', 'type', 'version'],
134
+ required: ['detail', 'format', 'mode', 'style', 'text', 'type'],
131
135
  tsType: 'SerializedTabNode'
132
136
  };
133
137
  };
@@ -145,7 +149,7 @@ export const lineBreakNodeJSONSchema = ({
145
149
  },
146
150
  version: versionSchema
147
151
  },
148
- required: ['type', 'version'],
152
+ required: ['type'],
149
153
  tsType: 'SerializedLineBreakNode'
150
154
  };
151
155
  };
@@ -178,6 +182,7 @@ export interface LexicalRichText<TNode> {
178
182
  format: LexicalElementFormat;
179
183
  indent: number;
180
184
  type: 'root';
185
+ /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */
181
186
  version: number;
182
187
  };
183
188
  }`;
@@ -1 +1 @@
1
- {"version":3,"file":"builtInNodes.js","names":["withNullableJSONSchemaType","versionSchema","CORE_LEXICAL_TYPE_STRING","LEXICAL_TEXT_MODE_TS","SERIALIZED_TEXT_NODE_TS","SERIALIZED_TAB_NODE_TS","SERIALIZED_LINE_BREAK_NODE_TS","SERIALIZED_PARAGRAPH_NODE_TS","textModeSchema","type","enum","tsType","textFormatSchema","description","textNodeJSONSchema","typeStringDefinitions","add","additionalProperties","properties","const","detail","format","mode","style","text","version","required","tabNodeJSONSchema","lineBreakNodeJSONSchema","paragraphNodeJSONSchema","elementNodeSchema","nodeUnionName","nodeType","textFormat","textStyle","ROOT_NODE_TS","rootNodeJSONSchema","field","root"],"sources":["../../src/types/builtInNodes.ts"],"sourcesContent":["import type { JSONSchema4 } from 'json-schema'\n\nimport { withNullableJSONSchemaType } from 'payload'\n\nimport type { JSONSchemaFn } from '../features/typesServer.js'\n\nimport { versionSchema } from './jsonSchemaHelpers.js'\n\n/**\n * Cross-cutting Lexical types shared by every element node. Inlined into\n * `payload-types.ts`. Must stay byte-for-byte in sync with the runtime twins\n * in `types/nodeTypes.ts` (`LexicalElementFormat`, `LexicalElementDirection`,\n * `SerializedLexicalElementBase`) — cross-module assignability depends on it.\n */\nexport const CORE_LEXICAL_TYPE_STRING = `/** @internal Core Lexical types — see @payloadcms/richtext-lexical. */\nexport type LexicalElementFormat = 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';\nexport type LexicalElementDirection = ('ltr' | 'rtl') | null;\n\nexport interface SerializedLexicalElementBase<TChildren> {\n children: TChildren[];\n direction: LexicalElementDirection;\n format: LexicalElementFormat;\n indent: number;\n textFormat?: number;\n textStyle?: string;\n version: number;\n}`\n\n/**\n * Built-in Lexical node schemas (always present regardless of feature config).\n * Co-located with the TS source they reference — each `JSONSchemaFn` adds\n * its helper interface(s) to `typeStringDefinitions` and returns the JSON\n * schema for that node.\n */\n\n/** MUST stay byte-for-byte in sync with `LexicalTextMode` in `types/nodeTypes.ts`. */\nconst LEXICAL_TEXT_MODE_TS = `export type LexicalTextMode = 'normal' | 'token' | 'segmented';`\n\n/** MUST stay byte-for-byte in sync with `SerializedTextNode` in `types/nodeTypes.ts`. */\nconst SERIALIZED_TEXT_NODE_TS = `export interface SerializedTextNode {\n type: 'text';\n detail: number;\n format: number;\n mode: LexicalTextMode;\n style: string;\n text: string;\n version: number;\n}`\n\n/** MUST stay byte-for-byte in sync with `SerializedTabNode` in `types/nodeTypes.ts`. */\nconst SERIALIZED_TAB_NODE_TS = `export interface SerializedTabNode {\n type: 'tab';\n detail: number;\n format: number;\n mode: LexicalTextMode;\n style: string;\n text: string;\n version: number;\n}`\n\n/** MUST stay byte-for-byte in sync with `SerializedLineBreakNode` in `types/nodeTypes.ts`. */\nconst SERIALIZED_LINE_BREAK_NODE_TS = `export interface SerializedLineBreakNode {\n type: 'linebreak';\n version: number;\n}`\n\n/** MUST stay byte-for-byte in sync with `SerializedParagraphNode` in `types/nodeTypes.ts`. */\nconst SERIALIZED_PARAGRAPH_NODE_TS = `export interface SerializedParagraphNode<TChildren> extends SerializedLexicalElementBase<TChildren> {\n type: 'paragraph';\n textFormat: number;\n textStyle: string;\n}`\n\nconst textModeSchema: JSONSchema4 = {\n type: 'string',\n enum: ['normal', 'token', 'segmented'],\n tsType: 'LexicalTextMode',\n}\n\n/** Text-node `format` bitmask (Lexical text-format flags). */\nconst textFormatSchema: JSONSchema4 = {\n type: 'integer',\n description:\n 'Active text formats as a bitmask, OR-ed together (0 = none): bold=1, italic=2, strikethrough=4, underline=8, code=16, subscript=32, superscript=64, highlight=128, lowercase=256, uppercase=512. e.g. bold + italic = 3.',\n}\n\nexport const textNodeJSONSchema: JSONSchemaFn = ({ typeStringDefinitions }) => {\n typeStringDefinitions.add(LEXICAL_TEXT_MODE_TS)\n typeStringDefinitions.add(SERIALIZED_TEXT_NODE_TS)\n return {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: { type: 'string', const: 'text' },\n detail: { type: 'integer' },\n format: textFormatSchema,\n mode: textModeSchema,\n style: { type: 'string' },\n text: { type: 'string' },\n version: versionSchema,\n },\n required: ['detail', 'format', 'mode', 'style', 'text', 'type', 'version'],\n tsType: 'SerializedTextNode',\n }\n}\n\nexport const tabNodeJSONSchema: JSONSchemaFn = ({ typeStringDefinitions }) => {\n typeStringDefinitions.add(LEXICAL_TEXT_MODE_TS)\n typeStringDefinitions.add(SERIALIZED_TAB_NODE_TS)\n return {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: { type: 'string', const: 'tab' },\n // A tab node is fully fixed: Lexical marks it unmergeable (`detail` = IS_UNMERGEABLE = 2) and\n // its text is a single tab. Any other `detail` makes `TabNode.setDetail` throw on load.\n detail: { const: 2, description: 'Always 2 (Lexical IS_UNMERGEABLE); other values throw.' },\n format: textFormatSchema,\n mode: textModeSchema,\n style: { type: 'string' },\n text: { const: '\\t', description: 'Always a single tab character.' },\n version: versionSchema,\n },\n required: ['detail', 'format', 'mode', 'style', 'text', 'type', 'version'],\n tsType: 'SerializedTabNode',\n }\n}\n\nexport const lineBreakNodeJSONSchema: JSONSchemaFn = ({ typeStringDefinitions }) => {\n typeStringDefinitions.add(SERIALIZED_LINE_BREAK_NODE_TS)\n return {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: { type: 'string', const: 'linebreak' },\n version: versionSchema,\n },\n required: ['type', 'version'],\n tsType: 'SerializedLineBreakNode',\n }\n}\n\nexport const paragraphNodeJSONSchema: JSONSchemaFn = ({\n elementNodeSchema,\n nodeUnionName,\n typeStringDefinitions,\n}) => {\n typeStringDefinitions.add(SERIALIZED_PARAGRAPH_NODE_TS)\n return elementNodeSchema({\n nodeType: 'paragraph',\n properties: {\n textFormat: { type: 'integer' },\n textStyle: { type: 'string' },\n },\n required: ['textFormat', 'textStyle'],\n tsType: `SerializedParagraphNode<${nodeUnionName}>`,\n })\n}\n\n/** MUST stay byte-for-byte in sync with `LexicalRichText` in `types/nodeTypes.ts`. */\nconst ROOT_NODE_TS = `/** Shape of a Lexical \\`richText\\` field. */\nexport interface LexicalRichText<TNode> {\n root: {\n children: TNode[];\n direction: LexicalElementDirection;\n format: LexicalElementFormat;\n indent: number;\n type: 'root';\n version: number;\n };\n}`\n\nexport const rootNodeJSONSchema: JSONSchemaFn = ({\n elementNodeSchema,\n field,\n nodeUnionName,\n typeStringDefinitions,\n}) => {\n typeStringDefinitions.add(ROOT_NODE_TS)\n return {\n type: withNullableJSONSchemaType('object', !!field.required),\n additionalProperties: false,\n properties: {\n root: elementNodeSchema({\n nodeType: 'root',\n }),\n },\n required: ['root'],\n tsType: field.required\n ? `LexicalRichText<${nodeUnionName}>`\n : `LexicalRichText<${nodeUnionName}> | null`,\n }\n}\n"],"mappings":"AAEA,SAASA,0BAA0B,QAAQ;AAI3C,SAASC,aAAa,QAAQ;AAE9B;;;;;;AAMA,OAAO,MAAMC,wBAAA,GAA2B;;;;;;;;;;;;EAYtC;AAEF;;;;;GAAA,CAOA;AACA,MAAM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CN,iBAAiB;EACjBO,KAAK;EACLN,aAAa;EACbhB;AAAqB,CACtB;EACCA,qBAAA,CAAsBC,GAAG,CAACmB,YAAA;EAC1B,OAAO;IACL1B,IAAA,EAAMT,0BAAA,CAA2B,UAAU,CAAC,CAACqC,KAAA,CAAMX,QAAQ;IAC3DT,oBAAA,EAAsB;IACtBC,UAAA,EAAY;MACVoB,IAAA,EAAMR,iBAAA,CAAkB;QACtBE,QAAA,EAAU;MACZ;IACF;IACAN,QAAA,EAAU,CAAC,OAAO;IAClBf,MAAA,EAAQ0B,KAAA,CAAMX,QAAQ,GAClB,mBAAmBK,aAAA,GAAgB,GACnC,mBAAmBA,aAAA;EACzB;AACF","ignoreList":[]}
1
+ {"version":3,"file":"builtInNodes.js","names":["withNullableJSONSchemaType","versionSchema","CORE_LEXICAL_TYPE_STRING","LEXICAL_TEXT_MODE_TS","SERIALIZED_TEXT_NODE_TS","SERIALIZED_TAB_NODE_TS","SERIALIZED_LINE_BREAK_NODE_TS","SERIALIZED_PARAGRAPH_NODE_TS","textModeSchema","type","enum","tsType","textFormatSchema","description","textNodeJSONSchema","typeStringDefinitions","add","additionalProperties","properties","const","detail","format","mode","style","text","version","required","tabNodeJSONSchema","lineBreakNodeJSONSchema","paragraphNodeJSONSchema","elementNodeSchema","nodeUnionName","nodeType","textFormat","textStyle","ROOT_NODE_TS","rootNodeJSONSchema","field","root"],"sources":["../../src/types/builtInNodes.ts"],"sourcesContent":["import type { JSONSchema4 } from 'json-schema'\n\nimport { withNullableJSONSchemaType } from 'payload'\n\nimport type { JSONSchemaFn } from '../features/typesServer.js'\n\nimport { versionSchema } from './jsonSchemaHelpers.js'\n\n/**\n * Cross-cutting Lexical types shared by every element node. Inlined into\n * `payload-types.ts`. Must stay byte-for-byte in sync with the runtime twins\n * in `types/nodeTypes.ts` (`LexicalElementFormat`, `LexicalElementDirection`,\n * `SerializedLexicalElementBase`) — cross-module assignability depends on it.\n */\nexport const CORE_LEXICAL_TYPE_STRING = `/** @internal Core Lexical types — see @payloadcms/richtext-lexical. */\nexport type LexicalElementFormat = 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';\nexport type LexicalElementDirection = ('ltr' | 'rtl') | null;\n\nexport interface SerializedLexicalElementBase<TChildren> {\n children: TChildren[];\n direction: LexicalElementDirection;\n format: LexicalElementFormat;\n indent: number;\n textFormat?: number;\n textStyle?: string;\n /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */\n version: number;\n}`\n\n/**\n * Built-in Lexical node schemas (always present regardless of feature config).\n * Co-located with the TS source they reference — each `JSONSchemaFn` adds\n * its helper interface(s) to `typeStringDefinitions` and returns the JSON\n * schema for that node.\n */\n\n/** MUST stay byte-for-byte in sync with `LexicalTextMode` in `types/nodeTypes.ts`. */\nconst LEXICAL_TEXT_MODE_TS = `export type LexicalTextMode = 'normal' | 'token' | 'segmented';`\n\n/** MUST stay byte-for-byte in sync with `SerializedTextNode` in `types/nodeTypes.ts`. */\nconst SERIALIZED_TEXT_NODE_TS = `export interface SerializedTextNode {\n type: 'text';\n detail: number;\n format: number;\n mode: LexicalTextMode;\n style: string;\n text: string;\n /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */\n version: number;\n}`\n\n/** MUST stay byte-for-byte in sync with `SerializedTabNode` in `types/nodeTypes.ts`. */\nconst SERIALIZED_TAB_NODE_TS = `export interface SerializedTabNode {\n type: 'tab';\n detail: number;\n format: number;\n mode: LexicalTextMode;\n style: string;\n text: string;\n /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */\n version: number;\n}`\n\n/** MUST stay byte-for-byte in sync with `SerializedLineBreakNode` in `types/nodeTypes.ts`. */\nconst SERIALIZED_LINE_BREAK_NODE_TS = `export interface SerializedLineBreakNode {\n type: 'linebreak';\n /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */\n version: number;\n}`\n\n/** MUST stay byte-for-byte in sync with `SerializedParagraphNode` in `types/nodeTypes.ts`. */\nconst SERIALIZED_PARAGRAPH_NODE_TS = `export interface SerializedParagraphNode<TChildren> extends SerializedLexicalElementBase<TChildren> {\n type: 'paragraph';\n textFormat: number;\n textStyle: string;\n}`\n\nconst textModeSchema: JSONSchema4 = {\n type: 'string',\n enum: ['normal', 'token', 'segmented'],\n tsType: 'LexicalTextMode',\n}\n\n/** Text-node `format` bitmask (Lexical text-format flags). */\nconst textFormatSchema: JSONSchema4 = {\n type: 'integer',\n description:\n 'Active text formats as a bitmask, OR-ed together (0 = none): bold=1, italic=2, strikethrough=4, underline=8, code=16, subscript=32, superscript=64, highlight=128, lowercase=256, uppercase=512. e.g. bold + italic = 3.',\n}\n\nexport const textNodeJSONSchema: JSONSchemaFn = ({ typeStringDefinitions }) => {\n typeStringDefinitions.add(LEXICAL_TEXT_MODE_TS)\n typeStringDefinitions.add(SERIALIZED_TEXT_NODE_TS)\n return {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: { type: 'string', const: 'text' },\n detail: { type: 'integer' },\n format: textFormatSchema,\n mode: textModeSchema,\n style: { type: 'string' },\n text: { type: 'string' },\n version: versionSchema,\n },\n required: ['detail', 'format', 'mode', 'style', 'text', 'type'],\n tsType: 'SerializedTextNode',\n }\n}\n\nexport const tabNodeJSONSchema: JSONSchemaFn = ({ typeStringDefinitions }) => {\n typeStringDefinitions.add(LEXICAL_TEXT_MODE_TS)\n typeStringDefinitions.add(SERIALIZED_TAB_NODE_TS)\n return {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: { type: 'string', const: 'tab' },\n // A tab node is fully fixed: Lexical marks it unmergeable (`detail` = IS_UNMERGEABLE = 2) and\n // its text is a single tab. Any other `detail` makes `TabNode.setDetail` throw on load.\n detail: { const: 2, description: 'Always 2 (Lexical IS_UNMERGEABLE); other values throw.' },\n format: textFormatSchema,\n mode: textModeSchema,\n style: { type: 'string' },\n text: { const: '\\t', description: 'Always a single tab character.' },\n version: versionSchema,\n },\n required: ['detail', 'format', 'mode', 'style', 'text', 'type'],\n tsType: 'SerializedTabNode',\n }\n}\n\nexport const lineBreakNodeJSONSchema: JSONSchemaFn = ({ typeStringDefinitions }) => {\n typeStringDefinitions.add(SERIALIZED_LINE_BREAK_NODE_TS)\n return {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: { type: 'string', const: 'linebreak' },\n version: versionSchema,\n },\n required: ['type'],\n tsType: 'SerializedLineBreakNode',\n }\n}\n\nexport const paragraphNodeJSONSchema: JSONSchemaFn = ({\n elementNodeSchema,\n nodeUnionName,\n typeStringDefinitions,\n}) => {\n typeStringDefinitions.add(SERIALIZED_PARAGRAPH_NODE_TS)\n return elementNodeSchema({\n nodeType: 'paragraph',\n properties: {\n textFormat: { type: 'integer' },\n textStyle: { type: 'string' },\n },\n required: ['textFormat', 'textStyle'],\n tsType: `SerializedParagraphNode<${nodeUnionName}>`,\n })\n}\n\n/** MUST stay byte-for-byte in sync with `LexicalRichText` in `types/nodeTypes.ts`. */\nconst ROOT_NODE_TS = `/** Shape of a Lexical \\`richText\\` field. */\nexport interface LexicalRichText<TNode> {\n root: {\n children: TNode[];\n direction: LexicalElementDirection;\n format: LexicalElementFormat;\n indent: number;\n type: 'root';\n /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */\n version: number;\n };\n}`\n\nexport const rootNodeJSONSchema: JSONSchemaFn = ({\n elementNodeSchema,\n field,\n nodeUnionName,\n typeStringDefinitions,\n}) => {\n typeStringDefinitions.add(ROOT_NODE_TS)\n return {\n type: withNullableJSONSchemaType('object', !!field.required),\n additionalProperties: false,\n properties: {\n root: elementNodeSchema({\n nodeType: 'root',\n }),\n },\n required: ['root'],\n tsType: field.required\n ? `LexicalRichText<${nodeUnionName}>`\n : `LexicalRichText<${nodeUnionName}> | null`,\n }\n}\n"],"mappings":"AAEA,SAASA,0BAA0B,QAAQ;AAI3C,SAASC,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AACA,MAAMI,YAAA,GAAe;;;;;;;;;;;EAWnB;AAEF,OAAO,MAAMC,kBAAA,GAAmCA,CAAC;EAC/CN,iBAAiB;EACjBO,KAAK;EACLN,aAAa;EACbhB;AAAqB,CACtB;EACCA,qBAAA,CAAsBC,GAAG,CAACmB,YAAA;EAC1B,OAAO;IACL1B,IAAA,EAAMT,0BAAA,CAA2B,UAAU,CAAC,CAACqC,KAAA,CAAMX,QAAQ;IAC3DT,oBAAA,EAAsB;IACtBC,UAAA,EAAY;MACVoB,IAAA,EAAMR,iBAAA,CAAkB;QACtBE,QAAA,EAAU;MACZ;IACF;IACAN,QAAA,EAAU,CAAC,OAAO;IAClBf,MAAA,EAAQ0B,KAAA,CAAMX,QAAQ,GAClB,mBAAmBK,aAAA,GAAgB,GACnC,mBAAmBA,aAAA;EACzB;AACF","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import type { DecoratorNode, EditorConfig, LexicalEditor, EditorConfig as LexicalEditorConfig, LexicalNode, SerializedEditorState, SerializedLexicalNode } from 'lexical';
2
- import type { ClientField, DefaultServerCellComponentProps, LabelFunction, PayloadComponent, RichTextAdapter, RichTextField, RichTextFieldClient, RichTextFieldClientProps, SanitizedConfig, ServerFieldBase, StaticLabel } from 'payload';
2
+ import type { ClientField, DefaultServerCellComponentProps, LabelFunction, MarkdownRichTextAdapter, PayloadComponent, RichTextField, RichTextFieldClient, RichTextFieldClientProps, SanitizedConfig, ServerFieldBase, StaticLabel } from 'payload';
3
3
  import type { BlockComponentContextType } from '../features/blocks/client/component/BlockContent.js';
4
4
  export type { BlockComponentContextType };
5
5
  import type { BlockComponentProps } from '../features/blocks/client/component/index.js';
@@ -389,10 +389,7 @@ export type LexicalEditorViewMap<TNodes extends SerializedNodeBase = DefaultNode
389
389
  nodes: LexicalEditorNodeMap<TNodes>;
390
390
  };
391
391
  };
392
- /**
393
- * @todo rename to LexicalEditorArgs in 4.0, since these are arguments for the lexicalEditor function
394
- */
395
- export type LexicalEditorProps = {
392
+ export type LexicalEditorArgs = {
396
393
  admin?: LexicalFieldAdminProps;
397
394
  features?: FeaturesInput;
398
395
  lexical?: LexicalEditorConfig;
@@ -409,7 +406,7 @@ export type LexicalEditorProps = {
409
406
  export type LexicalRichTextAdapter = {
410
407
  editorConfig: SanitizedServerEditorConfig;
411
408
  features: FeatureProviderServer<any, any, any>[];
412
- } & RichTextAdapter<SerializedEditorState, AdapterProps>;
409
+ } & MarkdownRichTextAdapter<SerializedEditorState, AdapterProps>;
413
410
  export type LexicalRichTextAdapterProvider =
414
411
  /**
415
412
  * This is being called during the payload sanitization process
@@ -418,7 +415,7 @@ export type LexicalRichTextAdapterProvider =
418
415
  config: SanitizedConfig;
419
416
  isRoot?: boolean;
420
417
  parentIsLocalized: boolean;
421
- }) => Promise<LexicalRichTextAdapter>;
418
+ }) => LexicalRichTextAdapter;
422
419
  export type SingleFeatureClientSchemaMap = {
423
420
  [key: string]: ClientField[];
424
421
  };