@payloadcms/richtext-lexical 4.0.0-internal.38b7f1d → 4.0.0-internal.40de3ec

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 (588) hide show
  1. package/dist/@types/assets.d.js +2 -0
  2. package/dist/@types/assets.d.js.map +1 -0
  3. package/dist/cell/rscEntry.d.ts +1 -1
  4. package/dist/cell/rscEntry.d.ts.map +1 -1
  5. package/dist/cell/rscEntry.js +5 -5
  6. package/dist/cell/rscEntry.js.map +1 -1
  7. package/dist/exports/client/Field-VYBSMSRY.js +2 -0
  8. package/dist/exports/client/Field-VYBSMSRY.js.map +7 -0
  9. package/dist/exports/client/{RelationshipComponent-5RONAYJM.js → RelationshipComponent-YCPAKOL7.js} +2 -2
  10. package/dist/exports/client/RelationshipComponent-YCPAKOL7.js.map +7 -0
  11. package/dist/exports/client/bundled.css +1 -1
  12. package/dist/exports/client/chunk-5VIL27GI.js +2 -0
  13. package/dist/exports/client/chunk-5VIL27GI.js.map +7 -0
  14. package/dist/exports/client/chunk-ESITTE3C.js +2 -0
  15. package/dist/exports/client/chunk-ESITTE3C.js.map +7 -0
  16. package/dist/exports/client/{chunk-FTT5KJ6W.js → chunk-LH634DPU.js} +1 -1
  17. package/dist/exports/client/chunk-LH634DPU.js.map +7 -0
  18. package/dist/exports/client/{chunk-BZZVLW4U.js → chunk-RJ5MAOKZ.js} +1 -1
  19. package/dist/exports/client/chunk-RJ5MAOKZ.js.map +7 -0
  20. package/dist/exports/client/chunk-UD4DQ4AK.js +2 -0
  21. package/dist/exports/client/chunk-UD4DQ4AK.js.map +7 -0
  22. package/dist/exports/client/component-PHZQBOJE.js +2 -0
  23. package/dist/exports/client/component-PHZQBOJE.js.map +7 -0
  24. package/dist/exports/client/componentInline-H24N7GUG.js +2 -0
  25. package/dist/exports/client/index.d.ts +1 -0
  26. package/dist/exports/client/index.d.ts.map +1 -1
  27. package/dist/exports/client/index.js +25 -25
  28. package/dist/exports/client/index.js.map +4 -4
  29. package/dist/exports/react/index.d.ts +1 -1
  30. package/dist/exports/react/index.d.ts.map +1 -1
  31. package/dist/exports/react/index.js.map +1 -1
  32. package/dist/exports/server/rsc.browser.d.ts +11 -0
  33. package/dist/exports/server/rsc.browser.d.ts.map +1 -0
  34. package/dist/exports/server/rsc.browser.js +10 -0
  35. package/dist/exports/server/rsc.browser.js.map +1 -0
  36. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -1
  37. package/dist/features/blockquote/server/index.d.ts +1 -4
  38. package/dist/features/blockquote/server/index.d.ts.map +1 -1
  39. package/dist/features/blockquote/server/index.js +2 -0
  40. package/dist/features/blockquote/server/index.js.map +1 -1
  41. package/dist/features/blockquote/server/schema.d.ts +8 -0
  42. package/dist/features/blockquote/server/schema.d.ts.map +1 -0
  43. package/dist/features/blockquote/server/schema.js +15 -0
  44. package/dist/features/blockquote/server/schema.js.map +1 -0
  45. package/dist/features/blocks/client/component/index.d.ts +3 -2
  46. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  47. package/dist/features/blocks/client/component/index.js +18 -10
  48. package/dist/features/blocks/client/component/index.js.map +1 -1
  49. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.d.ts.map +1 -1
  50. package/dist/features/blocks/client/componentInline/index.d.ts +3 -2
  51. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  52. package/dist/features/blocks/client/componentInline/index.js +17 -9
  53. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  54. package/dist/features/blocks/client/index.d.ts.map +1 -1
  55. package/dist/features/blocks/client/index.js +4 -2
  56. package/dist/features/blocks/client/index.js.map +1 -1
  57. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -1
  58. package/dist/features/blocks/client/markdown/markdownTransformer.js +4 -4
  59. package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -1
  60. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +2 -2
  61. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
  62. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  63. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +2 -2
  64. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -1
  65. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
  66. package/dist/features/blocks/client/plugin/index.d.ts +1 -1
  67. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -1
  68. package/dist/features/blocks/client/plugin/index.js.map +1 -1
  69. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -1
  70. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +1 -0
  71. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  72. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +1 -2
  73. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -1
  74. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -1
  75. package/dist/features/blocks/server/index.d.ts +1 -0
  76. package/dist/features/blocks/server/index.d.ts.map +1 -1
  77. package/dist/features/blocks/server/index.js +24 -72
  78. package/dist/features/blocks/server/index.js.map +1 -1
  79. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -1
  80. package/dist/features/blocks/server/markdown/markdownTransformer.js +4 -4
  81. package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -1
  82. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +1 -18
  83. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -1
  84. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
  85. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +2 -10
  86. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -1
  87. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
  88. package/dist/features/blocks/server/schema.d.ts +45 -0
  89. package/dist/features/blocks/server/schema.d.ts.map +1 -0
  90. package/dist/features/blocks/server/schema.js +139 -0
  91. package/dist/features/blocks/server/schema.js.map +1 -0
  92. package/dist/features/blocks/server/validate.d.ts +1 -2
  93. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  94. package/dist/features/blocks/server/validate.js.map +1 -1
  95. package/dist/features/converters/htmlToLexical/index.d.ts +1 -1
  96. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -1
  97. package/dist/features/converters/htmlToLexical/index.js.map +1 -1
  98. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts +1 -1
  99. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts.map +1 -1
  100. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js.map +1 -1
  101. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts +1 -1
  102. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts.map +1 -1
  103. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -1
  104. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts +1 -1
  105. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts.map +1 -1
  106. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js.map +1 -1
  107. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts +1 -1
  108. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts.map +1 -1
  109. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js.map +1 -1
  110. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts +1 -1
  111. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts.map +1 -1
  112. package/dist/features/converters/lexicalToHtml/async/converters/link.js.map +1 -1
  113. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts +1 -1
  114. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -1
  115. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -1
  116. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts +1 -1
  117. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts.map +1 -1
  118. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js.map +1 -1
  119. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts +1 -1
  120. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts.map +1 -1
  121. package/dist/features/converters/lexicalToHtml/async/converters/tab.js.map +1 -1
  122. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts +1 -1
  123. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts.map +1 -1
  124. package/dist/features/converters/lexicalToHtml/async/converters/table.js +1 -1
  125. package/dist/features/converters/lexicalToHtml/async/converters/table.js.map +1 -1
  126. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts +1 -1
  127. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts.map +1 -1
  128. package/dist/features/converters/lexicalToHtml/async/converters/text.js.map +1 -1
  129. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts +1 -1
  130. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts.map +1 -1
  131. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  132. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts +1 -1
  133. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts.map +1 -1
  134. package/dist/features/converters/lexicalToHtml/async/defaultConverters.js.map +1 -1
  135. package/dist/features/converters/lexicalToHtml/async/types.d.ts +15 -16
  136. package/dist/features/converters/lexicalToHtml/async/types.d.ts.map +1 -1
  137. package/dist/features/converters/lexicalToHtml/async/types.js.map +1 -1
  138. package/dist/features/converters/lexicalToHtml/shared/cssColors.d.ts.map +1 -1
  139. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -1
  140. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts +1 -1
  141. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts.map +1 -1
  142. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js.map +1 -1
  143. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts +1 -1
  144. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts.map +1 -1
  145. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -1
  146. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts +1 -1
  147. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts.map +1 -1
  148. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js.map +1 -1
  149. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts +1 -1
  150. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts.map +1 -1
  151. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js.map +1 -1
  152. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts +1 -1
  153. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts.map +1 -1
  154. package/dist/features/converters/lexicalToHtml/sync/converters/link.js.map +1 -1
  155. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts +1 -1
  156. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -1
  157. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -1
  158. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts +1 -1
  159. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts.map +1 -1
  160. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js.map +1 -1
  161. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts +1 -1
  162. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts.map +1 -1
  163. package/dist/features/converters/lexicalToHtml/sync/converters/tab.js.map +1 -1
  164. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts +1 -1
  165. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts.map +1 -1
  166. package/dist/features/converters/lexicalToHtml/sync/converters/table.js +1 -1
  167. package/dist/features/converters/lexicalToHtml/sync/converters/table.js.map +1 -1
  168. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts +1 -1
  169. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts.map +1 -1
  170. package/dist/features/converters/lexicalToHtml/sync/converters/text.js.map +1 -1
  171. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts +1 -1
  172. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts.map +1 -1
  173. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  174. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts +1 -1
  175. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts.map +1 -1
  176. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js.map +1 -1
  177. package/dist/features/converters/lexicalToHtml/sync/types.d.ts +15 -16
  178. package/dist/features/converters/lexicalToHtml/sync/types.d.ts.map +1 -1
  179. package/dist/features/converters/lexicalToHtml/sync/types.js.map +1 -1
  180. package/dist/features/converters/lexicalToJSX/Component/index.d.ts +6 -4
  181. package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -1
  182. package/dist/features/converters/lexicalToJSX/Component/index.js +5 -4
  183. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
  184. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts +1 -1
  185. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts.map +1 -1
  186. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
  187. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts +1 -1
  188. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -1
  189. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  190. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts +1 -1
  191. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts.map +1 -1
  192. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
  193. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts +1 -1
  194. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts.map +1 -1
  195. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
  196. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts +1 -1
  197. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts.map +1 -1
  198. package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
  199. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts +1 -1
  200. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -1
  201. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  202. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts +1 -1
  203. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts.map +1 -1
  204. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
  205. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts +1 -1
  206. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts.map +1 -1
  207. package/dist/features/converters/lexicalToJSX/converter/converters/tab.js.map +1 -1
  208. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts +1 -1
  209. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts.map +1 -1
  210. package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
  211. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts +1 -1
  212. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts.map +1 -1
  213. package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
  214. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts +1 -1
  215. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -1
  216. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  217. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts +1 -1
  218. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts.map +1 -1
  219. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js.map +1 -1
  220. package/dist/features/converters/lexicalToJSX/converter/index.d.ts +1 -1
  221. package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -1
  222. package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
  223. package/dist/features/converters/lexicalToJSX/converter/types.d.ts +13 -15
  224. package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -1
  225. package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -1
  226. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -1
  227. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +1 -1
  228. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js.map +1 -1
  229. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts +13 -15
  230. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts.map +1 -1
  231. package/dist/features/converters/lexicalToPlaintext/sync/types.js.map +1 -1
  232. package/dist/features/converters/markdownToLexical/index.d.ts +1 -1
  233. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -1
  234. package/dist/features/converters/markdownToLexical/index.js.map +1 -1
  235. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.css +4 -4
  236. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.css +1 -1
  237. package/dist/features/experimental_table/server/index.d.ts +1 -6
  238. package/dist/features/experimental_table/server/index.d.ts.map +1 -1
  239. package/dist/features/experimental_table/server/index.js +4 -0
  240. package/dist/features/experimental_table/server/index.js.map +1 -1
  241. package/dist/features/experimental_table/server/schema.d.ts +27 -0
  242. package/dist/features/experimental_table/server/schema.d.ts.map +1 -0
  243. package/dist/features/experimental_table/server/schema.js +107 -0
  244. package/dist/features/experimental_table/server/schema.js.map +1 -0
  245. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -1
  246. package/dist/features/heading/server/index.d.ts +2 -4
  247. package/dist/features/heading/server/index.d.ts.map +1 -1
  248. package/dist/features/heading/server/index.js +2 -0
  249. package/dist/features/heading/server/index.js.map +1 -1
  250. package/dist/features/heading/server/schema.d.ts +10 -0
  251. package/dist/features/heading/server/schema.d.ts.map +1 -0
  252. package/dist/features/heading/server/schema.js +37 -0
  253. package/dist/features/heading/server/schema.js.map +1 -0
  254. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +1 -1
  255. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
  256. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  257. package/dist/features/horizontalRule/server/index.d.ts +1 -0
  258. package/dist/features/horizontalRule/server/index.d.ts.map +1 -1
  259. package/dist/features/horizontalRule/server/index.js +2 -0
  260. package/dist/features/horizontalRule/server/index.js.map +1 -1
  261. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +1 -5
  262. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -1
  263. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
  264. package/dist/features/horizontalRule/server/schema.d.ts +7 -0
  265. package/dist/features/horizontalRule/server/schema.d.ts.map +1 -0
  266. package/dist/features/horizontalRule/server/schema.js +25 -0
  267. package/dist/features/horizontalRule/server/schema.js.map +1 -0
  268. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -1
  269. package/dist/features/link/client/index.d.ts.map +1 -1
  270. package/dist/features/link/client/index.js.map +1 -1
  271. package/dist/features/link/client/plugins/autoLink/index.d.ts +1 -1
  272. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  273. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
  274. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  275. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +2 -2
  276. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +1 -1
  277. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -1
  278. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -1
  279. package/dist/features/link/client/plugins/link/index.js.map +1 -1
  280. package/dist/features/link/markdownTransformer.d.ts +1 -1
  281. package/dist/features/link/markdownTransformer.d.ts.map +1 -1
  282. package/dist/features/link/markdownTransformer.js.map +1 -1
  283. package/dist/features/link/markdownTransformer.spec.js.map +1 -1
  284. package/dist/features/link/nodes/AutoLinkNode.d.ts +3 -3
  285. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  286. package/dist/features/link/nodes/AutoLinkNode.js +2 -1
  287. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  288. package/dist/features/link/nodes/LinkNode.d.ts +3 -3
  289. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  290. package/dist/features/link/nodes/LinkNode.js +2 -1
  291. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  292. package/dist/features/link/server/baseFields.d.ts.map +1 -1
  293. package/dist/features/link/server/baseFields.js.map +1 -1
  294. package/dist/features/link/server/graphQLPopulationPromise.d.ts +1 -1
  295. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -1
  296. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -1
  297. package/dist/features/link/server/index.d.ts +2 -1
  298. package/dist/features/link/server/index.d.ts.map +1 -1
  299. package/dist/features/link/server/index.js +3 -0
  300. package/dist/features/link/server/index.js.map +1 -1
  301. package/dist/features/link/server/schema.d.ts +32 -0
  302. package/dist/features/link/server/schema.d.ts.map +1 -0
  303. package/dist/features/link/server/schema.js +169 -0
  304. package/dist/features/link/server/schema.js.map +1 -0
  305. package/dist/features/link/server/validate.d.ts +1 -1
  306. package/dist/features/link/server/validate.d.ts.map +1 -1
  307. package/dist/features/link/server/validate.js.map +1 -1
  308. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  309. package/dist/features/lists/checklist/server/index.js +3 -0
  310. package/dist/features/lists/checklist/server/index.js.map +1 -1
  311. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  312. package/dist/features/lists/orderedList/server/index.js +3 -0
  313. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  314. package/dist/features/lists/plugin/index.d.ts +0 -9
  315. package/dist/features/lists/plugin/index.d.ts.map +1 -1
  316. package/dist/features/lists/plugin/index.js.map +1 -1
  317. package/dist/features/lists/shared/markdown.d.ts.map +1 -1
  318. package/dist/features/lists/shared/schema.d.ts +18 -0
  319. package/dist/features/lists/shared/schema.d.ts.map +1 -0
  320. package/dist/features/lists/shared/schema.js +62 -0
  321. package/dist/features/lists/shared/schema.js.map +1 -0
  322. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  323. package/dist/features/lists/unorderedList/server/index.js +3 -0
  324. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  325. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +1 -1
  326. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -1
  327. package/dist/features/relationship/client/components/RelationshipComponent.js +2 -2
  328. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  329. package/dist/features/relationship/client/components/index.css +2 -2
  330. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -1
  331. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +1 -1
  332. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
  333. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  334. package/dist/features/relationship/client/plugins/index.d.ts +1 -1
  335. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  336. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  337. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  338. package/dist/features/relationship/client/utils/useEnabledRelationships.js +9 -40
  339. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  340. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +1 -1
  341. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  342. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  343. package/dist/features/relationship/server/index.d.ts +1 -0
  344. package/dist/features/relationship/server/index.d.ts.map +1 -1
  345. package/dist/features/relationship/server/index.js +2 -0
  346. package/dist/features/relationship/server/index.js.map +1 -1
  347. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +1 -10
  348. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -1
  349. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
  350. package/dist/features/relationship/server/schema.d.ts +28 -0
  351. package/dist/features/relationship/server/schema.d.ts.map +1 -0
  352. package/dist/features/relationship/server/schema.js +80 -0
  353. package/dist/features/relationship/server/schema.js.map +1 -0
  354. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +23 -0
  355. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -0
  356. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +34 -0
  357. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -0
  358. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -1
  359. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -1
  360. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -1
  361. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  362. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  363. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +1 -2
  364. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  365. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +4 -4
  366. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  367. package/dist/features/toolbars/types.d.ts +1 -1
  368. package/dist/features/toolbars/types.d.ts.map +1 -1
  369. package/dist/features/toolbars/types.js.map +1 -1
  370. package/dist/features/typesClient.d.ts +1 -1
  371. package/dist/features/typesClient.d.ts.map +1 -1
  372. package/dist/features/typesClient.js.map +1 -1
  373. package/dist/features/typesServer.d.ts +18 -41
  374. package/dist/features/typesServer.d.ts.map +1 -1
  375. package/dist/features/typesServer.js.map +1 -1
  376. package/dist/features/upload/client/component/index.css +13 -17
  377. package/dist/features/upload/client/component/index.d.ts +1 -1
  378. package/dist/features/upload/client/component/index.d.ts.map +1 -1
  379. package/dist/features/upload/client/component/index.js +4 -4
  380. package/dist/features/upload/client/component/index.js.map +1 -1
  381. package/dist/features/upload/client/drawer/index.d.ts.map +1 -1
  382. package/dist/features/upload/client/nodes/UploadNode.d.ts +1 -1
  383. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
  384. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  385. package/dist/features/upload/client/plugin/index.d.ts +1 -1
  386. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  387. package/dist/features/upload/client/plugin/index.js.map +1 -1
  388. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +1 -1
  389. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  390. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  391. package/dist/features/upload/server/index.d.ts +1 -0
  392. package/dist/features/upload/server/index.d.ts.map +1 -1
  393. package/dist/features/upload/server/index.js +3 -2
  394. package/dist/features/upload/server/index.js.map +1 -1
  395. package/dist/features/upload/server/nodes/UploadNode.d.ts +1 -55
  396. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  397. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  398. package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -1
  399. package/dist/features/upload/server/nodes/conversions.js.map +1 -1
  400. package/dist/features/upload/server/schema.d.ts +52 -0
  401. package/dist/features/upload/server/schema.d.ts.map +1 -0
  402. package/dist/features/upload/server/schema.js +129 -0
  403. package/dist/features/upload/server/schema.js.map +1 -0
  404. package/dist/features/upload/server/validate.d.ts +1 -1
  405. package/dist/features/upload/server/validate.d.ts.map +1 -1
  406. package/dist/features/upload/server/validate.js.map +1 -1
  407. package/dist/field/Diff/converters/link.d.ts +1 -1
  408. package/dist/field/Diff/converters/link.d.ts.map +1 -1
  409. package/dist/field/Diff/converters/link.js.map +1 -1
  410. package/dist/field/Diff/converters/listitem/index.css +44 -8
  411. package/dist/field/Diff/converters/listitem/index.d.ts +1 -1
  412. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  413. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  414. package/dist/field/Diff/converters/relationship/index.css +76 -36
  415. package/dist/field/Diff/converters/relationship/index.d.ts +1 -1
  416. package/dist/field/Diff/converters/relationship/index.d.ts.map +1 -1
  417. package/dist/field/Diff/converters/relationship/index.js +10 -28
  418. package/dist/field/Diff/converters/relationship/index.js.map +1 -1
  419. package/dist/field/Diff/converters/unknown/index.js.map +1 -1
  420. package/dist/field/Diff/converters/upload/index.css +106 -43
  421. package/dist/field/Diff/converters/upload/index.d.ts +1 -1
  422. package/dist/field/Diff/converters/upload/index.d.ts.map +1 -1
  423. package/dist/field/Diff/converters/upload/index.js +6 -2
  424. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  425. package/dist/field/Diff/index.css +116 -61
  426. package/dist/field/Diff/index.js.map +1 -1
  427. package/dist/field/Field.d.ts +1 -1
  428. package/dist/field/Field.d.ts.map +1 -1
  429. package/dist/field/Field.js +3 -4
  430. package/dist/field/Field.js.map +1 -1
  431. package/dist/field/RenderLexical/index.d.ts +2 -2
  432. package/dist/field/RenderLexical/index.d.ts.map +1 -1
  433. package/dist/field/RenderLexical/index.js.map +1 -1
  434. package/dist/field/RichTextViewProvider.d.ts +1 -1
  435. package/dist/field/RichTextViewProvider.d.ts.map +1 -1
  436. package/dist/field/RichTextViewProvider.js.map +1 -1
  437. package/dist/field/bundled.css +1 -1
  438. package/dist/field/clientEntry.d.ts +29 -0
  439. package/dist/field/clientEntry.d.ts.map +1 -0
  440. package/dist/field/clientEntry.js +86 -0
  441. package/dist/field/clientEntry.js.map +1 -0
  442. package/dist/field/index.css +9 -12
  443. package/dist/field/index.d.ts +1 -1
  444. package/dist/field/index.d.ts.map +1 -1
  445. package/dist/field/index.js +1 -1
  446. package/dist/field/index.js.map +1 -1
  447. package/dist/field/rscEntry.d.ts +1 -1
  448. package/dist/field/rscEntry.d.ts.map +1 -1
  449. package/dist/field/rscEntry.js +2 -0
  450. package/dist/field/rscEntry.js.map +1 -1
  451. package/dist/hooks.d.ts +6 -0
  452. package/dist/hooks.d.ts.map +1 -0
  453. package/dist/hooks.js +548 -0
  454. package/dist/hooks.js.map +1 -0
  455. package/dist/index.d.ts +11 -8
  456. package/dist/index.d.ts.map +1 -1
  457. package/dist/index.js +56 -622
  458. package/dist/index.js.map +1 -1
  459. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  460. package/dist/lexical/LexicalEditor.js +36 -2
  461. package/dist/lexical/LexicalEditor.js.map +1 -1
  462. package/dist/lexical/LexicalProvider.d.ts +1 -1
  463. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  464. package/dist/lexical/LexicalProvider.js +22 -7
  465. package/dist/lexical/LexicalProvider.js.map +1 -1
  466. package/dist/lexical/config/client/EditorConfigProvider.d.ts +1 -1
  467. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  468. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  469. package/dist/lexical/config/client/loader.d.ts +1 -1
  470. package/dist/lexical/config/client/loader.d.ts.map +1 -1
  471. package/dist/lexical/config/client/loader.js +5 -1
  472. package/dist/lexical/config/client/loader.js.map +1 -1
  473. package/dist/lexical/config/client/sanitize.d.ts +1 -1
  474. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  475. package/dist/lexical/config/client/sanitize.js.map +1 -1
  476. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  477. package/dist/lexical/config/server/sanitize.js +9 -11
  478. package/dist/lexical/config/server/sanitize.js.map +1 -1
  479. package/dist/lexical/config/types.d.ts +1 -1
  480. package/dist/lexical/config/types.d.ts.map +1 -1
  481. package/dist/lexical/config/types.js.map +1 -1
  482. package/dist/lexical/nodes/index.d.ts +1 -1
  483. package/dist/lexical/nodes/index.d.ts.map +1 -1
  484. package/dist/lexical/nodes/index.js.map +1 -1
  485. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +1 -1
  486. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  487. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  488. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -1
  489. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -1
  490. package/dist/lexical/theme/EditorTheme.css +4 -4
  491. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  492. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
  493. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  494. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
  495. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -1
  496. package/dist/types/builtInNodes.d.ts +14 -0
  497. package/dist/types/builtInNodes.d.ts.map +1 -0
  498. package/dist/types/builtInNodes.js +203 -0
  499. package/dist/types/builtInNodes.js.map +1 -0
  500. package/dist/{types.d.ts → types/index.d.ts} +25 -26
  501. package/dist/types/index.d.ts.map +1 -0
  502. package/dist/types/index.js +2 -0
  503. package/dist/types/index.js.map +1 -0
  504. package/dist/types/jsonSchemaHelpers.d.ts +30 -0
  505. package/dist/types/jsonSchemaHelpers.d.ts.map +1 -0
  506. package/dist/types/jsonSchemaHelpers.js +58 -0
  507. package/dist/types/jsonSchemaHelpers.js.map +1 -0
  508. package/dist/types/nodeTypes.d.ts +128 -0
  509. package/dist/types/nodeTypes.d.ts.map +1 -0
  510. package/dist/types/nodeTypes.js +6 -0
  511. package/dist/types/nodeTypes.js.map +1 -0
  512. package/dist/types/schema.d.ts +6 -0
  513. package/dist/types/schema.d.ts.map +1 -0
  514. package/dist/types/schema.js +83 -0
  515. package/dist/types/schema.js.map +1 -0
  516. package/dist/utilities/applyBaseFilterToFields.d.ts.map +1 -1
  517. package/dist/utilities/applyBaseFilterToFields.js +1 -2
  518. package/dist/utilities/applyBaseFilterToFields.js.map +1 -1
  519. package/dist/utilities/buildEditorState.d.ts +18 -4
  520. package/dist/utilities/buildEditorState.d.ts.map +1 -1
  521. package/dist/utilities/buildEditorState.js +8 -0
  522. package/dist/utilities/buildEditorState.js.map +1 -1
  523. package/dist/utilities/buildInitialState.d.ts +2 -1
  524. package/dist/utilities/buildInitialState.d.ts.map +1 -1
  525. package/dist/utilities/buildInitialState.js.map +1 -1
  526. package/dist/utilities/createClientFeature.d.ts +1 -1
  527. package/dist/utilities/createClientFeature.d.ts.map +1 -1
  528. package/dist/utilities/createClientFeature.js.map +1 -1
  529. package/dist/utilities/editorConfigFactory.d.ts +1 -1
  530. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  531. package/dist/utilities/editorConfigFactory.js.map +1 -1
  532. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -1
  533. package/dist/utilities/fieldsDrawer/Drawer.js +19 -10
  534. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  535. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -1
  536. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -1
  537. package/dist/utilities/fieldsDrawer/DrawerContent.js +8 -7
  538. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  539. package/dist/utilities/fieldsDrawer/index.css +12 -0
  540. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts +29 -0
  541. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts.map +1 -0
  542. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js +97 -0
  543. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js.map +1 -0
  544. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -1
  545. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts.map +1 -1
  546. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts.map +1 -1
  547. package/dist/utilities/generateImportMap.d.ts +1 -1
  548. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  549. package/dist/utilities/generateImportMap.js +7 -3
  550. package/dist/utilities/generateImportMap.js.map +1 -1
  551. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  552. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -1
  553. package/dist/utilities/initLexicalFeatures.d.ts +1 -1
  554. package/dist/utilities/initLexicalFeatures.d.ts.map +1 -1
  555. package/dist/utilities/initLexicalFeatures.js.map +1 -1
  556. package/dist/utilities/recurseNodeTree.d.ts.map +1 -1
  557. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -1
  558. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +1 -1
  559. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
  560. package/dist/utilities/useLexicalFeature.d.ts.map +1 -1
  561. package/dist/validate/index.d.ts.map +1 -1
  562. package/package.json +14 -13
  563. package/dist/exports/client/Field-PJW7KUJG.js +0 -2
  564. package/dist/exports/client/Field-PJW7KUJG.js.map +0 -7
  565. package/dist/exports/client/RelationshipComponent-5RONAYJM.js.map +0 -7
  566. package/dist/exports/client/chunk-44G3K3W7.js +0 -2
  567. package/dist/exports/client/chunk-44G3K3W7.js.map +0 -7
  568. package/dist/exports/client/chunk-BZZVLW4U.js.map +0 -7
  569. package/dist/exports/client/chunk-FTT5KJ6W.js.map +0 -7
  570. package/dist/exports/client/chunk-INBEEENE.js +0 -2
  571. package/dist/exports/client/chunk-INBEEENE.js.map +0 -7
  572. package/dist/exports/client/chunk-QJ5EETIB.js +0 -2
  573. package/dist/exports/client/chunk-QJ5EETIB.js.map +0 -7
  574. package/dist/exports/client/component-53Y3RYR5.js +0 -2
  575. package/dist/exports/client/component-53Y3RYR5.js.map +0 -7
  576. package/dist/exports/client/componentInline-PM4PLNUK.js +0 -2
  577. package/dist/features/link/nodes/types.d.ts +0 -27
  578. package/dist/features/link/nodes/types.d.ts.map +0 -1
  579. package/dist/features/link/nodes/types.js +0 -2
  580. package/dist/features/link/nodes/types.js.map +0 -1
  581. package/dist/nodeTypes.d.ts +0 -74
  582. package/dist/nodeTypes.d.ts.map +0 -1
  583. package/dist/nodeTypes.js +0 -5
  584. package/dist/nodeTypes.js.map +0 -1
  585. package/dist/types.d.ts.map +0 -1
  586. package/dist/types.js +0 -2
  587. package/dist/types.js.map +0 -1
  588. /package/dist/exports/client/{componentInline-PM4PLNUK.js.map → componentInline-H24N7GUG.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["createHeadlessEditor","getEnabledNodes","$convertFromMarkdownString","convertMarkdownToLexical","editorConfig","markdown","headlessEditor","nodes","update","features","markdownTransformers","discrete","editorJSON","getEditorState","toJSON"],"sources":["../../../../src/features/converters/markdownToLexical/index.ts"],"sourcesContent":["import type { SerializedLexicalNode } from 'lexical'\n\nimport { createHeadlessEditor } from '@lexical/headless'\n\nimport type { SanitizedServerEditorConfig } from '../../../lexical/config/types.js'\nimport type { DefaultNodeTypes, TypedEditorState } from '../../../nodeTypes.js'\n\nimport { getEnabledNodes } from '../../../lexical/nodes/index.js'\nimport { $convertFromMarkdownString } from '../../../packages/@lexical/markdown/index.js'\n\nexport const convertMarkdownToLexical = <\n TNodeTypes extends SerializedLexicalNode = DefaultNodeTypes,\n>({\n editorConfig,\n markdown,\n}: {\n editorConfig: SanitizedServerEditorConfig\n markdown: string\n}): TypedEditorState<TNodeTypes> => {\n const headlessEditor = createHeadlessEditor({\n nodes: getEnabledNodes({\n editorConfig,\n }),\n })\n\n headlessEditor.update(\n () => {\n $convertFromMarkdownString(markdown, editorConfig.features.markdownTransformers)\n },\n { discrete: true },\n )\n\n const editorJSON = headlessEditor.getEditorState().toJSON()\n\n return editorJSON as TypedEditorState<TNodeTypes>\n}\n"],"mappings":"AAEA,SAASA,oBAAoB,QAAQ;AAKrC,SAASC,eAAe,QAAQ;AAChC,SAASC,0BAA0B,QAAQ;AAE3C,OAAO,MAAMC,wBAAA,GAA2BA,CAEtC;EACAC,YAAY;EACZC;AAAQ,CAIT;EACC,MAAMC,cAAA,GAAiBN,oBAAA,CAAqB;IAC1CO,KAAA,EAAON,eAAA,CAAgB;MACrBG;IACF;EACF;EAEAE,cAAA,CAAeE,MAAM,CACnB;IACEN,0BAAA,CAA2BG,QAAA,EAAUD,YAAA,CAAaK,QAAQ,CAACC,oBAAoB;EACjF,GACA;IAAEC,QAAA,EAAU;EAAK;EAGnB,MAAMC,UAAA,GAAaN,cAAA,CAAeO,cAAc,GAAGC,MAAM;EAEzD,OAAOF,UAAA;AACT","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["createHeadlessEditor","getEnabledNodes","$convertFromMarkdownString","convertMarkdownToLexical","editorConfig","markdown","headlessEditor","nodes","update","features","markdownTransformers","discrete","editorJSON","getEditorState","toJSON"],"sources":["../../../../src/features/converters/markdownToLexical/index.ts"],"sourcesContent":["import type { SerializedLexicalNode } from 'lexical'\n\nimport { createHeadlessEditor } from '@lexical/headless'\n\nimport type { SanitizedServerEditorConfig } from '../../../lexical/config/types.js'\nimport type { DefaultNodeTypes, TypedEditorState } from '../../../types/nodeTypes.js'\n\nimport { getEnabledNodes } from '../../../lexical/nodes/index.js'\nimport { $convertFromMarkdownString } from '../../../packages/@lexical/markdown/index.js'\n\nexport const convertMarkdownToLexical = <\n TNodeTypes extends SerializedLexicalNode = DefaultNodeTypes,\n>({\n editorConfig,\n markdown,\n}: {\n editorConfig: SanitizedServerEditorConfig\n markdown: string\n}): TypedEditorState<TNodeTypes> => {\n const headlessEditor = createHeadlessEditor({\n nodes: getEnabledNodes({\n editorConfig,\n }),\n })\n\n headlessEditor.update(\n () => {\n $convertFromMarkdownString(markdown, editorConfig.features.markdownTransformers)\n },\n { discrete: true },\n )\n\n const editorJSON = headlessEditor.getEditorState().toJSON()\n\n return editorJSON as TypedEditorState<TNodeTypes>\n}\n"],"mappings":"AAEA,SAASA,oBAAoB,QAAQ;AAKrC,SAASC,eAAe,QAAQ;AAChC,SAASC,0BAA0B,QAAQ;AAE3C,OAAO,MAAMC,wBAAA,GAA2BA,CAEtC;EACAC,YAAY;EACZC;AAAQ,CAIT;EACC,MAAMC,cAAA,GAAiBN,oBAAA,CAAqB;IAC1CO,KAAA,EAAON,eAAA,CAAgB;MACrBG;IACF;EACF;EAEAE,cAAA,CAAeE,MAAM,CACnB;IACEN,0BAAA,CAA2BG,QAAA,EAAUD,YAAA,CAAaK,QAAQ,CAACC,oBAAoB;EACjF,GACA;IAAEC,QAAA,EAAU;EAAK;EAGnB,MAAMC,UAAA,GAAaN,cAAA,CAAeO,cAAc,GAAGC,MAAM;EAEzD,OAAOF,UAAA;AACT","ignoreList":[]}
@@ -57,12 +57,12 @@
57
57
  border: none;
58
58
  height: var(--stroke-width-small);
59
59
  margin: var(--spacer-2) calc(var(--spacer-2) * -1);
60
- background-color: var(--color-white-200);
60
+ background-color: var(--ramp-white-200);
61
61
  }
62
62
 
63
63
  .item {
64
64
  padding: var(--spacer-2);
65
- color: var(--color-white-800);
65
+ color: var(--ramp-white-800);
66
66
  background: transparent;
67
67
  cursor: pointer;
68
68
  font-family: var(--text-body-medium-font-family);
@@ -79,12 +79,12 @@
79
79
 
80
80
  &:hover {
81
81
  background: var(--color-bg-brand);
82
- color: var(--color-white-1000);
82
+ color: var(--ramp-white-1000);
83
83
  }
84
84
 
85
85
  &:active {
86
86
  background: var(--color-bg-brand-pressed);
87
- color: var(--color-white-1000);
87
+ color: var(--ramp-white-1000);
88
88
  }
89
89
  }
90
90
  }
@@ -132,7 +132,7 @@
132
132
  .table-grid-popup__tooltip {
133
133
  position: absolute;
134
134
  background: var(--color-bg-menu);
135
- color: var(--color-white-800);
135
+ color: var(--ramp-white-800);
136
136
  font-family: var(--text-body-medium-font-family);
137
137
  font-size: var(--text-body-medium-font-size);
138
138
  font-weight: var(--text-body-medium-font-weight);
@@ -1,8 +1,3 @@
1
- import type { SerializedTableCellNode as _SerializedTableCellNode, SerializedTableNode as _SerializedTableNode, SerializedTableRowNode as _SerializedTableRowNode } from '@lexical/table';
2
- import type { SerializedLexicalNode } from 'lexical';
3
- import type { StronglyTypedElementNode } from '../../../nodeTypes.js';
4
- export type SerializedTableCellNode<T extends SerializedLexicalNode = SerializedLexicalNode> = StronglyTypedElementNode<_SerializedTableCellNode, 'tablecell', T>;
5
- export type SerializedTableNode<T extends SerializedLexicalNode = SerializedLexicalNode> = StronglyTypedElementNode<_SerializedTableNode, 'table', T>;
6
- export type SerializedTableRowNode<T extends SerializedLexicalNode = SerializedLexicalNode> = StronglyTypedElementNode<_SerializedTableRowNode, 'tablerow', T>;
1
+ export type { SerializedTableCellNode, SerializedTableNode, SerializedTableRowNode, } from './schema.js';
7
2
  export declare const EXPERIMENTAL_TableFeature: import("../../typesServer.js").FeatureProviderProviderServer<undefined, undefined, undefined>;
8
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/experimental_table/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,IAAI,wBAAwB,EACnD,mBAAmB,IAAI,oBAAoB,EAC3C,sBAAsB,IAAI,uBAAuB,EAClD,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAMpD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAqBrE,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,IACzF,wBAAwB,CAAC,wBAAwB,EAAE,WAAW,EAAE,CAAC,CAAC,CAAA;AAEpE,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,IACrF,wBAAwB,CAAC,oBAAoB,EAAE,OAAO,EAAE,CAAC,CAAC,CAAA;AAE5D,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,IACxF,wBAAwB,CAAC,uBAAuB,EAAE,UAAU,EAAE,CAAC,CAAC,CAAA;AAClE,eAAO,MAAM,yBAAyB,+FAqCpC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/experimental_table/server/index.ts"],"names":[],"mappings":"AAUA,YAAY,EACV,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,aAAa,CAAA;AAiBpB,eAAO,MAAM,yBAAyB,+FAwCpC,CAAA"}
@@ -3,6 +3,7 @@ import { sanitizeFields } from 'payload';
3
3
  import { createServerFeature } from '../../../utilities/createServerFeature.js';
4
4
  import { createNode } from '../../typeUtilities.js';
5
5
  import { TableMarkdownTransformer } from '../markdownTransformer.js';
6
+ import { tableCellNodeJSONSchema, tableNodeJSONSchema, tableRowNodeJSONSchema } from './schema.js';
6
7
  const fields = [{
7
8
  name: 'rows',
8
9
  type: 'number',
@@ -39,10 +40,13 @@ export const EXPERIMENTAL_TableFeature = createServerFeature({
39
40
  },
40
41
  markdownTransformers: [TableMarkdownTransformer],
41
42
  nodes: [createNode({
43
+ jsonSchema: tableNodeJSONSchema,
42
44
  node: TableNode
43
45
  }), createNode({
46
+ jsonSchema: tableCellNodeJSONSchema,
44
47
  node: TableCellNode
45
48
  }), createNode({
49
+ jsonSchema: tableRowNodeJSONSchema,
46
50
  node: TableRowNode
47
51
  })]
48
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TableCellNode","TableNode","TableRowNode","sanitizeFields","createServerFeature","createNode","TableMarkdownTransformer","fields","name","type","defaultValue","required","EXPERIMENTAL_TableFeature","feature","config","isRoot","parentIsLocalized","validRelationships","collections","map","c","slug","sanitizedFields","requireFieldLevelRichTextEditor","ClientFeature","generateSchemaMap","schemaMap","Map","set","markdownTransformers","nodes","node","key"],"sources":["../../../../src/features/experimental_table/server/index.ts"],"sourcesContent":["import type {\n SerializedTableCellNode as _SerializedTableCellNode,\n SerializedTableNode as _SerializedTableNode,\n SerializedTableRowNode as _SerializedTableRowNode,\n} from '@lexical/table'\nimport type { SerializedLexicalNode } from 'lexical'\nimport type { Config, Field, FieldSchemaMap } from 'payload'\n\nimport { TableCellNode, TableNode, TableRowNode } from '@lexical/table'\nimport { sanitizeFields } from 'payload'\n\nimport type { StronglyTypedElementNode } from '../../../nodeTypes.js'\n\nimport { createServerFeature } from '../../../utilities/createServerFeature.js'\nimport { createNode } from '../../typeUtilities.js'\nimport { TableMarkdownTransformer } from '../markdownTransformer.js'\n\nconst fields: Field[] = [\n {\n name: 'rows',\n type: 'number',\n defaultValue: 5,\n required: true,\n },\n {\n name: 'columns',\n type: 'number',\n defaultValue: 5,\n required: true,\n },\n]\n\nexport type SerializedTableCellNode<T extends SerializedLexicalNode = SerializedLexicalNode> =\n StronglyTypedElementNode<_SerializedTableCellNode, 'tablecell', T>\n\nexport type SerializedTableNode<T extends SerializedLexicalNode = SerializedLexicalNode> =\n StronglyTypedElementNode<_SerializedTableNode, 'table', T>\n\nexport type SerializedTableRowNode<T extends SerializedLexicalNode = SerializedLexicalNode> =\n StronglyTypedElementNode<_SerializedTableRowNode, 'tablerow', T>\nexport const EXPERIMENTAL_TableFeature = createServerFeature({\n feature: async ({ config, isRoot, parentIsLocalized }) => {\n const validRelationships = config.collections.map((c) => c.slug) || []\n\n const sanitizedFields = await sanitizeFields({\n config: config as unknown as Config,\n fields,\n parentIsLocalized,\n requireFieldLevelRichTextEditor: isRoot,\n validRelationships,\n })\n return {\n ClientFeature: '@payloadcms/richtext-lexical/client#TableFeatureClient',\n generateSchemaMap: () => {\n const schemaMap: FieldSchemaMap = new Map()\n\n schemaMap.set('fields', {\n fields: sanitizedFields,\n })\n\n return schemaMap\n },\n markdownTransformers: [TableMarkdownTransformer],\n nodes: [\n createNode({\n node: TableNode,\n }),\n createNode({\n node: TableCellNode,\n }),\n createNode({\n node: TableRowNode,\n }),\n ],\n }\n },\n key: 'experimental_table',\n})\n"],"mappings":"AAQA,SAASA,aAAa,EAAEC,SAAS,EAAEC,YAAY,QAAQ;AACvD,SAASC,cAAc,QAAQ;AAI/B,SAASC,mBAAmB,QAAQ;AACpC,SAASC,UAAU,QAAQ;AAC3B,SAASC,wBAAwB,QAAQ;AAEzC,MAAMC,MAAA,GAAkB,CACtB;EACEC,IAAA,EAAM;EACNC,IAAA,EAAM;EACNC,YAAA,EAAc;EACdC,QAAA,EAAU;AACZ,GACA;EACEH,IAAA,EAAM;EACNC,IAAA,EAAM;EACNC,YAAA,EAAc;EACdC,QAAA,EAAU;AACZ,EACD;AAUD,OAAO,MAAMC,yBAAA,GAA4BR,mBAAA,CAAoB;EAC3DS,OAAA,EAAS,MAAAA,CAAO;IAAEC,MAAM;IAAEC,MAAM;IAAEC;EAAiB,CAAE;IACnD,MAAMC,kBAAA,GAAqBH,MAAA,CAAOI,WAAW,CAACC,GAAG,CAAEC,CAAA,IAAMA,CAAA,CAAEC,IAAI,KAAK,EAAE;IAEtE,MAAMC,eAAA,GAAkB,MAAMnB,cAAA,CAAe;MAC3CW,MAAA,EAAQA,MAAA;MACRP,MAAA;MACAS,iBAAA;MACAO,+BAAA,EAAiCR,MAAA;MACjCE;IACF;IACA,OAAO;MACLO,aAAA,EAAe;MACfC,iBAAA,EAAmBA,CAAA;QACjB,MAAMC,SAAA,GAA4B,IAAIC,GAAA;QAEtCD,SAAA,CAAUE,GAAG,CAAC,UAAU;UACtBrB,MAAA,EAAQe;QACV;QAEA,OAAOI,SAAA;MACT;MACAG,oBAAA,EAAsB,CAACvB,wBAAA,CAAyB;MAChDwB,KAAA,EAAO,CACLzB,UAAA,CAAW;QACT0B,IAAA,EAAM9B;MACR,IACAI,UAAA,CAAW;QACT0B,IAAA,EAAM/B;MACR,IACAK,UAAA,CAAW;QACT0B,IAAA,EAAM7B;MACR;IAEJ;EACF;EACA8B,GAAA,EAAK;AACP","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["TableCellNode","TableNode","TableRowNode","sanitizeFields","createServerFeature","createNode","TableMarkdownTransformer","tableCellNodeJSONSchema","tableNodeJSONSchema","tableRowNodeJSONSchema","fields","name","type","defaultValue","required","EXPERIMENTAL_TableFeature","feature","config","isRoot","parentIsLocalized","validRelationships","collections","map","c","slug","sanitizedFields","requireFieldLevelRichTextEditor","ClientFeature","generateSchemaMap","schemaMap","Map","set","markdownTransformers","nodes","jsonSchema","node","key"],"sources":["../../../../src/features/experimental_table/server/index.ts"],"sourcesContent":["import type { Config, Field, FieldSchemaMap } from 'payload'\n\nimport { TableCellNode, TableNode, TableRowNode } from '@lexical/table'\nimport { sanitizeFields } from 'payload'\n\nimport { createServerFeature } from '../../../utilities/createServerFeature.js'\nimport { createNode } from '../../typeUtilities.js'\nimport { TableMarkdownTransformer } from '../markdownTransformer.js'\nimport { tableCellNodeJSONSchema, tableNodeJSONSchema, tableRowNodeJSONSchema } from './schema.js'\n\nexport type {\n SerializedTableCellNode,\n SerializedTableNode,\n SerializedTableRowNode,\n} from './schema.js'\n\nconst fields: Field[] = [\n {\n name: 'rows',\n type: 'number',\n defaultValue: 5,\n required: true,\n },\n {\n name: 'columns',\n type: 'number',\n defaultValue: 5,\n required: true,\n },\n]\n\nexport const EXPERIMENTAL_TableFeature = createServerFeature({\n feature: async ({ config, isRoot, parentIsLocalized }) => {\n const validRelationships = config.collections.map((c) => c.slug) || []\n\n const sanitizedFields = await sanitizeFields({\n config: config as unknown as Config,\n fields,\n parentIsLocalized,\n requireFieldLevelRichTextEditor: isRoot,\n validRelationships,\n })\n return {\n ClientFeature: '@payloadcms/richtext-lexical/client#TableFeatureClient',\n generateSchemaMap: () => {\n const schemaMap: FieldSchemaMap = new Map()\n\n schemaMap.set('fields', {\n fields: sanitizedFields,\n })\n\n return schemaMap\n },\n markdownTransformers: [TableMarkdownTransformer],\n nodes: [\n createNode({\n jsonSchema: tableNodeJSONSchema,\n node: TableNode,\n }),\n createNode({\n jsonSchema: tableCellNodeJSONSchema,\n node: TableCellNode,\n }),\n createNode({\n jsonSchema: tableRowNodeJSONSchema,\n node: TableRowNode,\n }),\n ],\n }\n },\n key: 'experimental_table',\n})\n"],"mappings":"AAEA,SAASA,aAAa,EAAEC,SAAS,EAAEC,YAAY,QAAQ;AACvD,SAASC,cAAc,QAAQ;AAE/B,SAASC,mBAAmB,QAAQ;AACpC,SAASC,UAAU,QAAQ;AAC3B,SAASC,wBAAwB,QAAQ;AACzC,SAASC,uBAAuB,EAAEC,mBAAmB,EAAEC,sBAAsB,QAAQ;AAQrF,MAAMC,MAAA,GAAkB,CACtB;EACEC,IAAA,EAAM;EACNC,IAAA,EAAM;EACNC,YAAA,EAAc;EACdC,QAAA,EAAU;AACZ,GACA;EACEH,IAAA,EAAM;EACNC,IAAA,EAAM;EACNC,YAAA,EAAc;EACdC,QAAA,EAAU;AACZ,EACD;AAED,OAAO,MAAMC,yBAAA,GAA4BX,mBAAA,CAAoB;EAC3DY,OAAA,EAAS,MAAAA,CAAO;IAAEC,MAAM;IAAEC,MAAM;IAAEC;EAAiB,CAAE;IACnD,MAAMC,kBAAA,GAAqBH,MAAA,CAAOI,WAAW,CAACC,GAAG,CAAEC,CAAA,IAAMA,CAAA,CAAEC,IAAI,KAAK,EAAE;IAEtE,MAAMC,eAAA,GAAkB,MAAMtB,cAAA,CAAe;MAC3Cc,MAAA,EAAQA,MAAA;MACRP,MAAA;MACAS,iBAAA;MACAO,+BAAA,EAAiCR,MAAA;MACjCE;IACF;IACA,OAAO;MACLO,aAAA,EAAe;MACfC,iBAAA,EAAmBA,CAAA;QACjB,MAAMC,SAAA,GAA4B,IAAIC,GAAA;QAEtCD,SAAA,CAAUE,GAAG,CAAC,UAAU;UACtBrB,MAAA,EAAQe;QACV;QAEA,OAAOI,SAAA;MACT;MACAG,oBAAA,EAAsB,CAAC1B,wBAAA,CAAyB;MAChD2B,KAAA,EAAO,CACL5B,UAAA,CAAW;QACT6B,UAAA,EAAY1B,mBAAA;QACZ2B,IAAA,EAAMlC;MACR,IACAI,UAAA,CAAW;QACT6B,UAAA,EAAY3B,uBAAA;QACZ4B,IAAA,EAAMnC;MACR,IACAK,UAAA,CAAW;QACT6B,UAAA,EAAYzB,sBAAA;QACZ0B,IAAA,EAAMjC;MACR;IAEJ;EACF;EACAkC,GAAA,EAAK;AACP","ignoreList":[]}
@@ -0,0 +1,27 @@
1
+ import type { SerializedLexicalNode } from 'lexical';
2
+ import type { SerializedLexicalElementBase } from '../../../types/nodeTypes.js';
3
+ import type { JSONSchemaFn } from '../../typesServer.js';
4
+ export interface SerializedTableCellNode<TChildren extends SerializedLexicalNode = SerializedLexicalNode> extends SerializedLexicalElementBase<TChildren> {
5
+ backgroundColor?: null | string;
6
+ colSpan?: number;
7
+ headerState: number;
8
+ rowSpan?: number;
9
+ type: 'tablecell';
10
+ verticalAlign?: string;
11
+ width?: number;
12
+ }
13
+ export interface SerializedTableNode<TChildren extends SerializedLexicalNode = SerializedLexicalNode> extends SerializedLexicalElementBase<TChildren> {
14
+ colWidths?: number[];
15
+ frozenColumnCount?: number;
16
+ frozenRowCount?: number;
17
+ rowStriping?: boolean;
18
+ type: 'table';
19
+ }
20
+ export interface SerializedTableRowNode<TChildren extends SerializedLexicalNode = SerializedLexicalNode> extends SerializedLexicalElementBase<TChildren> {
21
+ height?: number;
22
+ type: 'tablerow';
23
+ }
24
+ export declare const tableNodeJSONSchema: JSONSchemaFn;
25
+ export declare const tableCellNodeJSONSchema: JSONSchemaFn;
26
+ export declare const tableRowNodeJSONSchema: JSONSchemaFn;
27
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/features/experimental_table/server/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,MAAM,WAAW,uBAAuB,CACtC,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC/D,SAAQ,4BAA4B,CAAC,SAAS,CAAC;IAC/C,eAAe,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,WAAW,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,mBAAmB,CAClC,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC/D,SAAQ,4BAA4B,CAAC,SAAS,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,EAAE,OAAO,CAAA;CACd;AAED,MAAM,WAAW,sBAAsB,CACrC,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC/D,SAAQ,4BAA4B,CAAC,SAAS,CAAC;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,UAAU,CAAA;CACjB;AA2BD,eAAO,MAAM,mBAAmB,EAAE,YAgBjC,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,YAuBrC,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,YAWpC,CAAA"}
@@ -0,0 +1,107 @@
1
+ /**
2
+ * MUST stay byte-for-byte in sync with the runtime `SerializedTableNode`,
3
+ * `SerializedTableRowNode`, and `SerializedTableCellNode` declared above.
4
+ */const TABLE_NODES_TS = `export interface SerializedTableNode<TChildren> extends SerializedLexicalElementBase<TChildren> {
5
+ type: 'table';
6
+ colWidths?: number[];
7
+ frozenColumnCount?: number;
8
+ frozenRowCount?: number;
9
+ rowStriping?: boolean;
10
+ }
11
+ export interface SerializedTableRowNode<TChildren> extends SerializedLexicalElementBase<TChildren> {
12
+ type: 'tablerow';
13
+ height?: number;
14
+ }
15
+ export interface SerializedTableCellNode<TChildren> extends SerializedLexicalElementBase<TChildren> {
16
+ type: 'tablecell';
17
+ backgroundColor?: string | null;
18
+ colSpan?: number;
19
+ headerState: number;
20
+ rowSpan?: number;
21
+ verticalAlign?: string;
22
+ width?: number;
23
+ }`;
24
+ export const tableNodeJSONSchema = ({
25
+ elementNodeSchema,
26
+ nodeUnionName,
27
+ typeStringDefinitions
28
+ }) => {
29
+ typeStringDefinitions.add(TABLE_NODES_TS);
30
+ return elementNodeSchema({
31
+ nodeType: 'table',
32
+ properties: {
33
+ colWidths: {
34
+ type: 'array',
35
+ items: {
36
+ type: 'number'
37
+ }
38
+ },
39
+ frozenColumnCount: {
40
+ type: 'integer'
41
+ },
42
+ frozenRowCount: {
43
+ type: 'integer'
44
+ },
45
+ rowStriping: {
46
+ type: 'boolean'
47
+ }
48
+ },
49
+ tsType: `SerializedTableNode<${nodeUnionName}>`
50
+ });
51
+ };
52
+ export const tableCellNodeJSONSchema = ({
53
+ elementNodeSchema,
54
+ nodeUnionName,
55
+ typeStringDefinitions
56
+ }) => {
57
+ typeStringDefinitions.add(TABLE_NODES_TS);
58
+ return elementNodeSchema({
59
+ nodeType: 'tablecell',
60
+ properties: {
61
+ backgroundColor: {
62
+ oneOf: [{
63
+ type: 'string'
64
+ }, {
65
+ type: 'null'
66
+ }]
67
+ },
68
+ colSpan: {
69
+ type: 'integer',
70
+ description: 'How many columns this cell spans (default 1).'
71
+ },
72
+ headerState: {
73
+ type: 'integer',
74
+ description: 'Header bitmask: 0 = normal cell, 1 = row header, 2 = column header, 3 = both.'
75
+ },
76
+ rowSpan: {
77
+ type: 'integer',
78
+ description: 'How many rows this cell spans (default 1).'
79
+ },
80
+ verticalAlign: {
81
+ type: 'string'
82
+ },
83
+ width: {
84
+ type: 'integer'
85
+ }
86
+ },
87
+ required: ['headerState'],
88
+ tsType: `SerializedTableCellNode<${nodeUnionName}>`
89
+ });
90
+ };
91
+ export const tableRowNodeJSONSchema = ({
92
+ elementNodeSchema,
93
+ nodeUnionName,
94
+ typeStringDefinitions
95
+ }) => {
96
+ typeStringDefinitions.add(TABLE_NODES_TS);
97
+ return elementNodeSchema({
98
+ nodeType: 'tablerow',
99
+ properties: {
100
+ height: {
101
+ type: 'integer'
102
+ }
103
+ },
104
+ tsType: `SerializedTableRowNode<${nodeUnionName}>`
105
+ });
106
+ };
107
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","names":["TABLE_NODES_TS","tableNodeJSONSchema","elementNodeSchema","nodeUnionName","typeStringDefinitions","add","nodeType","properties","colWidths","type","items","frozenColumnCount","frozenRowCount","rowStriping","tsType","tableCellNodeJSONSchema","backgroundColor","oneOf","colSpan","description","headerState","rowSpan","verticalAlign","width","required","tableRowNodeJSONSchema","height"],"sources":["../../../../src/features/experimental_table/server/schema.ts"],"sourcesContent":["import type { SerializedLexicalNode } from 'lexical'\n\nimport type { SerializedLexicalElementBase } from '../../../types/nodeTypes.js'\nimport type { JSONSchemaFn } from '../../typesServer.js'\n\nexport interface SerializedTableCellNode<\n TChildren extends SerializedLexicalNode = SerializedLexicalNode,\n> extends SerializedLexicalElementBase<TChildren> {\n backgroundColor?: null | string\n colSpan?: number\n headerState: number\n rowSpan?: number\n type: 'tablecell'\n verticalAlign?: string\n width?: number\n}\n\nexport interface SerializedTableNode<\n TChildren extends SerializedLexicalNode = SerializedLexicalNode,\n> extends SerializedLexicalElementBase<TChildren> {\n colWidths?: number[]\n frozenColumnCount?: number\n frozenRowCount?: number\n rowStriping?: boolean\n type: 'table'\n}\n\nexport interface SerializedTableRowNode<\n TChildren extends SerializedLexicalNode = SerializedLexicalNode,\n> extends SerializedLexicalElementBase<TChildren> {\n height?: number\n type: 'tablerow'\n}\n\n/**\n * MUST stay byte-for-byte in sync with the runtime `SerializedTableNode`,\n * `SerializedTableRowNode`, and `SerializedTableCellNode` declared above.\n */\nconst TABLE_NODES_TS = `export interface SerializedTableNode<TChildren> extends SerializedLexicalElementBase<TChildren> {\n type: 'table';\n colWidths?: number[];\n frozenColumnCount?: number;\n frozenRowCount?: number;\n rowStriping?: boolean;\n}\nexport interface SerializedTableRowNode<TChildren> extends SerializedLexicalElementBase<TChildren> {\n type: 'tablerow';\n height?: number;\n}\nexport interface SerializedTableCellNode<TChildren> extends SerializedLexicalElementBase<TChildren> {\n type: 'tablecell';\n backgroundColor?: string | null;\n colSpan?: number;\n headerState: number;\n rowSpan?: number;\n verticalAlign?: string;\n width?: number;\n}`\n\nexport const tableNodeJSONSchema: JSONSchemaFn = ({\n elementNodeSchema,\n nodeUnionName,\n typeStringDefinitions,\n}) => {\n typeStringDefinitions.add(TABLE_NODES_TS)\n return elementNodeSchema({\n nodeType: 'table',\n properties: {\n colWidths: { type: 'array', items: { type: 'number' } },\n frozenColumnCount: { type: 'integer' },\n frozenRowCount: { type: 'integer' },\n rowStriping: { type: 'boolean' },\n },\n tsType: `SerializedTableNode<${nodeUnionName}>`,\n })\n}\n\nexport const tableCellNodeJSONSchema: JSONSchemaFn = ({\n elementNodeSchema,\n nodeUnionName,\n typeStringDefinitions,\n}) => {\n typeStringDefinitions.add(TABLE_NODES_TS)\n return elementNodeSchema({\n nodeType: 'tablecell',\n properties: {\n backgroundColor: { oneOf: [{ type: 'string' }, { type: 'null' }] },\n colSpan: { type: 'integer', description: 'How many columns this cell spans (default 1).' },\n headerState: {\n type: 'integer',\n description:\n 'Header bitmask: 0 = normal cell, 1 = row header, 2 = column header, 3 = both.',\n },\n rowSpan: { type: 'integer', description: 'How many rows this cell spans (default 1).' },\n verticalAlign: { type: 'string' },\n width: { type: 'integer' },\n },\n required: ['headerState'],\n tsType: `SerializedTableCellNode<${nodeUnionName}>`,\n })\n}\n\nexport const tableRowNodeJSONSchema: JSONSchemaFn = ({\n elementNodeSchema,\n nodeUnionName,\n typeStringDefinitions,\n}) => {\n typeStringDefinitions.add(TABLE_NODES_TS)\n return elementNodeSchema({\n nodeType: 'tablerow',\n properties: { height: { type: 'integer' } },\n tsType: `SerializedTableRowNode<${nodeUnionName}>`,\n })\n}\n"],"mappings":"AAkCA;;;GAIA,MAAMA,cAAA,GAAiB;;;;;;;;;;;;;;;;;;;EAmBrB;AAEF,OAAO,MAAMC,mBAAA,GAAoCA,CAAC;EAChDC,iBAAiB;EACjBC,aAAa;EACbC;AAAqB,CACtB;EACCA,qBAAA,CAAsBC,GAAG,CAACL,cAAA;EAC1B,OAAOE,iBAAA,CAAkB;IACvBI,QAAA,EAAU;IACVC,UAAA,EAAY;MACVC,SAAA,EAAW;QAAEC,IAAA,EAAM;QAASC,KAAA,EAAO;UAAED,IAAA,EAAM;QAAS;MAAE;MACtDE,iBAAA,EAAmB;QAAEF,IAAA,EAAM;MAAU;MACrCG,cAAA,EAAgB;QAAEH,IAAA,EAAM;MAAU;MAClCI,WAAA,EAAa;QAAEJ,IAAA,EAAM;MAAU;IACjC;IACAK,MAAA,EAAQ,uBAAuBX,aAAA;EACjC;AACF;AAEA,OAAO,MAAMY,uBAAA,GAAwCA,CAAC;EACpDb,iBAAiB;EACjBC,aAAa;EACbC;AAAqB,CACtB;EACCA,qBAAA,CAAsBC,GAAG,CAACL,cAAA;EAC1B,OAAOE,iBAAA,CAAkB;IACvBI,QAAA,EAAU;IACVC,UAAA,EAAY;MACVS,eAAA,EAAiB;QAAEC,KAAA,EAAO,CAAC;UAAER,IAAA,EAAM;QAAS,GAAG;UAAEA,IAAA,EAAM;QAAO;MAAG;MACjES,OAAA,EAAS;QAAET,IAAA,EAAM;QAAWU,WAAA,EAAa;MAAgD;MACzFC,WAAA,EAAa;QACXX,IAAA,EAAM;QACNU,WAAA,EACE;MACJ;MACAE,OAAA,EAAS;QAAEZ,IAAA,EAAM;QAAWU,WAAA,EAAa;MAA6C;MACtFG,aAAA,EAAe;QAAEb,IAAA,EAAM;MAAS;MAChCc,KAAA,EAAO;QAAEd,IAAA,EAAM;MAAU;IAC3B;IACAe,QAAA,EAAU,CAAC,cAAc;IACzBV,MAAA,EAAQ,2BAA2BX,aAAA;EACrC;AACF;AAEA,OAAO,MAAMsB,sBAAA,GAAuCA,CAAC;EACnDvB,iBAAiB;EACjBC,aAAa;EACbC;AAAqB,CACtB;EACCA,qBAAA,CAAsBC,GAAG,CAACL,cAAA;EAC1B,OAAOE,iBAAA,CAAkB;IACvBI,QAAA,EAAU;IACVC,UAAA,EAAY;MAAEmB,MAAA,EAAQ;QAAEjB,IAAA,EAAM;MAAU;IAAE;IAC1CK,MAAA,EAAQ,0BAA0BX,aAAA;EACpC;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"toolbarFormatGroup.d.ts","sourceRoot":"","sources":["../../../../src/features/format/shared/toolbarFormatGroup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE7E,eAAO,MAAM,2BAA2B,UAAW,gBAAgB,EAAE,KAAG,YAOvE,CAAA"}
1
+ {"version":3,"file":"toolbarFormatGroup.d.ts","sourceRoot":"","sources":["../../../../src/features/format/shared/toolbarFormatGroup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE7E,eAAO,MAAM,2BAA2B,GAAI,OAAO,gBAAgB,EAAE,KAAG,YAOvE,CAAA"}
@@ -1,7 +1,5 @@
1
- import type { SerializedHeadingNode as _SerializedHeadingNode, HeadingTagType } from '@lexical/rich-text';
2
- import type { SerializedLexicalNode } from 'lexical';
3
- import type { StronglyTypedElementNode } from '../../../nodeTypes.js';
4
- export type SerializedHeadingNode<T extends SerializedLexicalNode = SerializedLexicalNode> = StronglyTypedElementNode<_SerializedHeadingNode, 'heading', T>;
1
+ import type { HeadingTagType } from '@lexical/rich-text';
2
+ export type { SerializedHeadingNode } from './schema.js';
5
3
  export type HeadingFeatureProps = {
6
4
  enabledHeadingSizes?: HeadingTagType[];
7
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/heading/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,IAAI,sBAAsB,EAC/C,cAAc,EACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAIpD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAOrE,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,IACvF,wBAAwB,CAAC,sBAAsB,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;AAEhE,MAAM,MAAM,mBAAmB,GAAG;IAChC,mBAAmB,CAAC,EAAE,cAAc,EAAE,CAAA;CACvC,CAAA;AAED,eAAO,MAAM,cAAc,6HA6BzB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/heading/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAUxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD,MAAM,MAAM,mBAAmB,GAAG;IAChC,mBAAmB,CAAC,EAAE,cAAc,EAAE,CAAA;CACvC,CAAA;AAED,eAAO,MAAM,cAAc,6HA8BzB,CAAA"}
@@ -3,6 +3,7 @@ import { createServerFeature } from '../../../utilities/createServerFeature.js';
3
3
  import { createNode } from '../../typeUtilities.js';
4
4
  import { MarkdownTransformer } from '../markdownTransformer.js';
5
5
  import { i18n } from './i18n.js';
6
+ import { createHeadingJSONSchema } from './schema.js';
6
7
  export const HeadingFeature = createServerFeature({
7
8
  feature: ({
8
9
  props
@@ -20,6 +21,7 @@ export const HeadingFeature = createServerFeature({
20
21
  i18n,
21
22
  markdownTransformers: enabledHeadingSizes.length > 0 ? [MarkdownTransformer(enabledHeadingSizes)] : [],
22
23
  nodes: [createNode({
24
+ jsonSchema: createHeadingJSONSchema(enabledHeadingSizes),
23
25
  node: HeadingNode
24
26
  })],
25
27
  sanitizedServerFeatureProps: props
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["HeadingNode","createServerFeature","createNode","MarkdownTransformer","i18n","HeadingFeature","feature","props","enabledHeadingSizes","sort","ClientFeature","clientFeatureProps","markdownTransformers","length","nodes","node","sanitizedServerFeatureProps","key"],"sources":["../../../../src/features/heading/server/index.ts"],"sourcesContent":["import type {\n SerializedHeadingNode as _SerializedHeadingNode,\n HeadingTagType,\n} from '@lexical/rich-text'\nimport type { SerializedLexicalNode } from 'lexical'\n\nimport { HeadingNode } from '@lexical/rich-text'\n\nimport type { StronglyTypedElementNode } from '../../../nodeTypes.js'\n\nimport { createServerFeature } from '../../../utilities/createServerFeature.js'\nimport { createNode } from '../../typeUtilities.js'\nimport { MarkdownTransformer } from '../markdownTransformer.js'\nimport { i18n } from './i18n.js'\n\nexport type SerializedHeadingNode<T extends SerializedLexicalNode = SerializedLexicalNode> =\n StronglyTypedElementNode<_SerializedHeadingNode, 'heading', T>\n\nexport type HeadingFeatureProps = {\n enabledHeadingSizes?: HeadingTagType[]\n}\n\nexport const HeadingFeature = createServerFeature<\n HeadingFeatureProps,\n HeadingFeatureProps,\n HeadingFeatureProps\n>({\n feature: ({ props }) => {\n if (!props) {\n props = {}\n }\n\n const { enabledHeadingSizes = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] } = props\n\n enabledHeadingSizes.sort()\n\n return {\n ClientFeature: '@payloadcms/richtext-lexical/client#HeadingFeatureClient',\n clientFeatureProps: props,\n i18n,\n markdownTransformers:\n enabledHeadingSizes.length > 0 ? [MarkdownTransformer(enabledHeadingSizes)] : [],\n nodes: [\n createNode({\n node: HeadingNode,\n }),\n ],\n sanitizedServerFeatureProps: props,\n }\n },\n key: 'heading',\n})\n"],"mappings":"AAMA,SAASA,WAAW,QAAQ;AAI5B,SAASC,mBAAmB,QAAQ;AACpC,SAASC,UAAU,QAAQ;AAC3B,SAASC,mBAAmB,QAAQ;AACpC,SAASC,IAAI,QAAQ;AASrB,OAAO,MAAMC,cAAA,GAAiBJ,mBAAA,CAI5B;EACAK,OAAA,EAASA,CAAC;IAAEC;EAAK,CAAE;IACjB,IAAI,CAACA,KAAA,EAAO;MACVA,KAAA,GAAQ,CAAC;IACX;IAEA,MAAM;MAAEC,mBAAA,GAAsB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM;IAAK,CAAE,GAAGD,KAAA;IAEvEC,mBAAA,CAAoBC,IAAI;IAExB,OAAO;MACLC,aAAA,EAAe;MACfC,kBAAA,EAAoBJ,KAAA;MACpBH,IAAA;MACAQ,oBAAA,EACEJ,mBAAA,CAAoBK,MAAM,GAAG,IAAI,CAACV,mBAAA,CAAoBK,mBAAA,EAAqB,GAAG,EAAE;MAClFM,KAAA,EAAO,CACLZ,UAAA,CAAW;QACTa,IAAA,EAAMf;MACR,GACD;MACDgB,2BAAA,EAA6BT;IAC/B;EACF;EACAU,GAAA,EAAK;AACP","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["HeadingNode","createServerFeature","createNode","MarkdownTransformer","i18n","createHeadingJSONSchema","HeadingFeature","feature","props","enabledHeadingSizes","sort","ClientFeature","clientFeatureProps","markdownTransformers","length","nodes","jsonSchema","node","sanitizedServerFeatureProps","key"],"sources":["../../../../src/features/heading/server/index.ts"],"sourcesContent":["import type { HeadingTagType } from '@lexical/rich-text'\n\nimport { HeadingNode } from '@lexical/rich-text'\n\nimport { createServerFeature } from '../../../utilities/createServerFeature.js'\nimport { createNode } from '../../typeUtilities.js'\nimport { MarkdownTransformer } from '../markdownTransformer.js'\nimport { i18n } from './i18n.js'\nimport { createHeadingJSONSchema } from './schema.js'\n\nexport type { SerializedHeadingNode } from './schema.js'\n\nexport type HeadingFeatureProps = {\n enabledHeadingSizes?: HeadingTagType[]\n}\n\nexport const HeadingFeature = createServerFeature<\n HeadingFeatureProps,\n HeadingFeatureProps,\n HeadingFeatureProps\n>({\n feature: ({ props }) => {\n if (!props) {\n props = {}\n }\n\n const { enabledHeadingSizes = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] } = props\n\n enabledHeadingSizes.sort()\n\n return {\n ClientFeature: '@payloadcms/richtext-lexical/client#HeadingFeatureClient',\n clientFeatureProps: props,\n i18n,\n markdownTransformers:\n enabledHeadingSizes.length > 0 ? [MarkdownTransformer(enabledHeadingSizes)] : [],\n nodes: [\n createNode({\n jsonSchema: createHeadingJSONSchema(enabledHeadingSizes),\n node: HeadingNode,\n }),\n ],\n sanitizedServerFeatureProps: props,\n }\n },\n key: 'heading',\n})\n"],"mappings":"AAEA,SAASA,WAAW,QAAQ;AAE5B,SAASC,mBAAmB,QAAQ;AACpC,SAASC,UAAU,QAAQ;AAC3B,SAASC,mBAAmB,QAAQ;AACpC,SAASC,IAAI,QAAQ;AACrB,SAASC,uBAAuB,QAAQ;AAQxC,OAAO,MAAMC,cAAA,GAAiBL,mBAAA,CAI5B;EACAM,OAAA,EAASA,CAAC;IAAEC;EAAK,CAAE;IACjB,IAAI,CAACA,KAAA,EAAO;MACVA,KAAA,GAAQ,CAAC;IACX;IAEA,MAAM;MAAEC,mBAAA,GAAsB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM;IAAK,CAAE,GAAGD,KAAA;IAEvEC,mBAAA,CAAoBC,IAAI;IAExB,OAAO;MACLC,aAAA,EAAe;MACfC,kBAAA,EAAoBJ,KAAA;MACpBJ,IAAA;MACAS,oBAAA,EACEJ,mBAAA,CAAoBK,MAAM,GAAG,IAAI,CAACX,mBAAA,CAAoBM,mBAAA,EAAqB,GAAG,EAAE;MAClFM,KAAA,EAAO,CACLb,UAAA,CAAW;QACTc,UAAA,EAAYX,uBAAA,CAAwBI,mBAAA;QACpCQ,IAAA,EAAMjB;MACR,GACD;MACDkB,2BAAA,EAA6BV;IAC/B;EACF;EACAW,GAAA,EAAK;AACP","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ import type { HeadingTagType } from '@lexical/rich-text';
2
+ import type { SerializedLexicalNode } from 'lexical';
3
+ import type { SerializedLexicalElementBase } from '../../../types/nodeTypes.js';
4
+ import type { JSONSchemaFn } from '../../typesServer.js';
5
+ export interface SerializedHeadingNode<TChildren extends SerializedLexicalNode = SerializedLexicalNode, TTag extends HeadingTagType = HeadingTagType> extends SerializedLexicalElementBase<TChildren> {
6
+ tag: TTag;
7
+ type: 'heading';
8
+ }
9
+ export declare const createHeadingJSONSchema: (enabledHeadingSizes: HeadingTagType[]) => JSONSchemaFn;
10
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/features/heading/server/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,MAAM,WAAW,qBAAqB,CACpC,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,EAC/D,IAAI,SAAS,cAAc,GAAG,cAAc,CAC5C,SAAQ,4BAA4B,CAAC,SAAS,CAAC;IAC/C,GAAG,EAAE,IAAI,CAAA;IACT,IAAI,EAAE,SAAS,CAAA;CAChB;AAaD,eAAO,MAAM,uBAAuB,GACjC,qBAAqB,cAAc,EAAE,KAAG,YAyBxC,CAAA"}
@@ -0,0 +1,37 @@
1
+ const ALL_HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
2
+ /** MUST stay byte-for-byte in sync with the runtime `SerializedHeadingNode` declared above. */
3
+ const SERIALIZED_HEADING_NODE_TS = `export interface SerializedHeadingNode<
4
+ TChildren,
5
+ TTag extends 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6',
6
+ > extends SerializedLexicalElementBase<TChildren> {
7
+ type: 'heading';
8
+ tag: TTag;
9
+ }`;
10
+ export const createHeadingJSONSchema = enabledHeadingSizes => ({
11
+ elementNodeSchema,
12
+ nodeUnionName,
13
+ typeStringDefinitions
14
+ }) => {
15
+ typeStringDefinitions.add(SERIALIZED_HEADING_NODE_TS);
16
+ // Empty array means the user disabled every heading size. Treat the same
17
+ // as "no tag constraint" rather than emitting an invalid `<T, >` generic
18
+ // and an unsatisfiable `enum: []`.
19
+ const isAllTags = enabledHeadingSizes.length === 0 || enabledHeadingSizes.length === ALL_HEADING_TAGS.length && ALL_HEADING_TAGS.every(tag => enabledHeadingSizes.includes(tag));
20
+ const tagSchema = enabledHeadingSizes.length === 0 ? {
21
+ type: 'string'
22
+ } : {
23
+ type: 'string',
24
+ enum: enabledHeadingSizes
25
+ };
26
+ const tagUnion = enabledHeadingSizes.map(tag => `'${tag}'`).join(' | ');
27
+ const tsType = isAllTags ? `SerializedHeadingNode<${nodeUnionName}>` : `SerializedHeadingNode<${nodeUnionName}, ${tagUnion}>`;
28
+ return elementNodeSchema({
29
+ nodeType: 'heading',
30
+ properties: {
31
+ tag: tagSchema
32
+ },
33
+ required: ['tag'],
34
+ tsType
35
+ });
36
+ };
37
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","names":["ALL_HEADING_TAGS","SERIALIZED_HEADING_NODE_TS","createHeadingJSONSchema","enabledHeadingSizes","elementNodeSchema","nodeUnionName","typeStringDefinitions","add","isAllTags","length","every","tag","includes","tagSchema","type","enum","tagUnion","map","join","tsType","nodeType","properties","required"],"sources":["../../../../src/features/heading/server/schema.ts"],"sourcesContent":["import type { HeadingTagType } from '@lexical/rich-text'\nimport type { JSONSchema4 } from 'json-schema'\nimport type { SerializedLexicalNode } from 'lexical'\n\nimport type { SerializedLexicalElementBase } from '../../../types/nodeTypes.js'\nimport type { JSONSchemaFn } from '../../typesServer.js'\n\nexport interface SerializedHeadingNode<\n TChildren extends SerializedLexicalNode = SerializedLexicalNode,\n TTag extends HeadingTagType = HeadingTagType,\n> extends SerializedLexicalElementBase<TChildren> {\n tag: TTag\n type: 'heading'\n}\n\nconst ALL_HEADING_TAGS: HeadingTagType[] = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']\n\n/** MUST stay byte-for-byte in sync with the runtime `SerializedHeadingNode` declared above. */\nconst SERIALIZED_HEADING_NODE_TS = `export interface SerializedHeadingNode<\n TChildren,\n TTag extends 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6',\n> extends SerializedLexicalElementBase<TChildren> {\n type: 'heading';\n tag: TTag;\n}`\n\nexport const createHeadingJSONSchema =\n (enabledHeadingSizes: HeadingTagType[]): JSONSchemaFn =>\n ({ elementNodeSchema, nodeUnionName, typeStringDefinitions }) => {\n typeStringDefinitions.add(SERIALIZED_HEADING_NODE_TS)\n // Empty array means the user disabled every heading size. Treat the same\n // as \"no tag constraint\" rather than emitting an invalid `<T, >` generic\n // and an unsatisfiable `enum: []`.\n const isAllTags =\n enabledHeadingSizes.length === 0 ||\n (enabledHeadingSizes.length === ALL_HEADING_TAGS.length &&\n ALL_HEADING_TAGS.every((tag) => enabledHeadingSizes.includes(tag)))\n const tagSchema: JSONSchema4 =\n enabledHeadingSizes.length === 0\n ? { type: 'string' }\n : { type: 'string', enum: enabledHeadingSizes }\n const tagUnion = enabledHeadingSizes.map((tag) => `'${tag}'`).join(' | ')\n const tsType = isAllTags\n ? `SerializedHeadingNode<${nodeUnionName}>`\n : `SerializedHeadingNode<${nodeUnionName}, ${tagUnion}>`\n\n return elementNodeSchema({\n nodeType: 'heading',\n properties: { tag: tagSchema },\n required: ['tag'],\n tsType,\n })\n }\n"],"mappings":"AAeA,MAAMA,gBAAA,GAAqC,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,KAAK;AAE/E;AACA,MAAMC,0BAAA,GAA6B;;;;;;EAMjC;AAEF,OAAO,MAAMC,uBAAA,GACVC,mBAAA,IACD,CAAC;EAAEC,iBAAiB;EAAEC,aAAa;EAAEC;AAAqB,CAAE;EAC1DA,qBAAA,CAAsBC,GAAG,CAACN,0BAAA;EAC1B;EACA;EACA;EACA,MAAMO,SAAA,GACJL,mBAAA,CAAoBM,MAAM,KAAK,KAC9BN,mBAAA,CAAoBM,MAAM,KAAKT,gBAAA,CAAiBS,MAAM,IACrDT,gBAAA,CAAiBU,KAAK,CAAEC,GAAA,IAAQR,mBAAA,CAAoBS,QAAQ,CAACD,GAAA;EACjE,MAAME,SAAA,GACJV,mBAAA,CAAoBM,MAAM,KAAK,IAC3B;IAAEK,IAAA,EAAM;EAAS,IACjB;IAAEA,IAAA,EAAM;IAAUC,IAAA,EAAMZ;EAAoB;EAClD,MAAMa,QAAA,GAAWb,mBAAA,CAAoBc,GAAG,CAAEN,GAAA,IAAQ,IAAIA,GAAA,GAAM,EAAEO,IAAI,CAAC;EACnE,MAAMC,MAAA,GAASX,SAAA,GACX,yBAAyBH,aAAA,GAAgB,GACzC,yBAAyBA,aAAA,KAAkBW,QAAA,GAAW;EAE1D,OAAOZ,iBAAA,CAAkB;IACvBgB,QAAA,EAAU;IACVC,UAAA,EAAY;MAAEV,GAAA,EAAKE;IAAU;IAC7BS,QAAA,EAAU,CAAC,MAAM;IACjBH;EACF;AACF","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import type { LexicalNode, SerializedLexicalNode } from 'lexical';
2
- import type { SerializedHorizontalRuleNode } from '../../server/nodes/HorizontalRuleNode.js';
2
+ import type { SerializedHorizontalRuleNode } from '../../server/schema.js';
3
3
  import { HorizontalRuleServerNode } from '../../server/nodes/HorizontalRuleNode.js';
4
4
  export declare class HorizontalRuleNode extends HorizontalRuleServerNode {
5
5
  static clone(node: HorizontalRuleServerNode): HorizontalRuleServerNode;
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalRuleNode.d.ts","sourceRoot":"","sources":["../../../../../src/features/horizontalRule/client/nodes/HorizontalRuleNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAuB,WAAW,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAKtF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAA;AAE5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AAEnF,qBAAa,kBAAmB,SAAQ,wBAAwB;WAC9C,KAAK,CAAC,IAAI,EAAE,wBAAwB,GAAG,wBAAwB;WAI/D,OAAO,IAAI,MAAM;IAIjC;;OAEG;WACa,UAAU,CAAC,cAAc,EAAE,4BAA4B,GAAG,kBAAkB;IAI5F;;OAEG;IACM,QAAQ;IAIR,UAAU,IAAI,qBAAqB;CAG7C;AAMD,wBAAgB,yBAAyB,IAAI,kBAAkB,CAE9D;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,kBAAkB,CAE5B"}
1
+ {"version":3,"file":"HorizontalRuleNode.d.ts","sourceRoot":"","sources":["../../../../../src/features/horizontalRule/client/nodes/HorizontalRuleNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAuB,WAAW,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAKtF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAA;AAE1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AAEnF,qBAAa,kBAAmB,SAAQ,wBAAwB;WAC9C,KAAK,CAAC,IAAI,EAAE,wBAAwB,GAAG,wBAAwB;WAI/D,OAAO,IAAI,MAAM;IAIjC;;OAEG;WACa,UAAU,CAAC,cAAc,EAAE,4BAA4B,GAAG,kBAAkB;IAI5F;;OAEG;IACM,QAAQ;IAIR,UAAU,IAAI,qBAAqB;CAG7C;AAMD,wBAAgB,yBAAyB,IAAI,kBAAkB,CAE9D;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,kBAAkB,CAE5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalRuleNode.js","names":["$applyNodeReplacement","React","HorizontalRuleServerNode","HorizontalRuleNode","clone","node","getType","importJSON","serializedNode","$createHorizontalRuleNode","decorate","exportJSON","$convertHorizontalRuleElement","$isHorizontalRuleNode"],"sources":["../../../../../src/features/horizontalRule/client/nodes/HorizontalRuleNode.tsx"],"sourcesContent":["'use client'\nimport type { DOMConversionOutput, LexicalNode, SerializedLexicalNode } from 'lexical'\n\nimport { $applyNodeReplacement } from 'lexical'\nimport * as React from 'react'\n\nimport type { SerializedHorizontalRuleNode } from '../../server/nodes/HorizontalRuleNode.js'\n\nimport { HorizontalRuleServerNode } from '../../server/nodes/HorizontalRuleNode.js'\n\nexport class HorizontalRuleNode extends HorizontalRuleServerNode {\n static override clone(node: HorizontalRuleServerNode): HorizontalRuleServerNode {\n return super.clone(node)\n }\n\n static override getType(): string {\n return super.getType()\n }\n\n /**\n * The data for this node is stored serialized as JSON. This is the \"load function\" of that node: it takes the saved data and converts it into a node.\n */\n static override importJSON(serializedNode: SerializedHorizontalRuleNode): HorizontalRuleNode {\n return $createHorizontalRuleNode()\n }\n\n /**\n * Allows you to render a React component within whatever createDOM returns.\n */\n override decorate() {\n return null\n }\n\n override exportJSON(): SerializedLexicalNode {\n return super.exportJSON()\n }\n}\n\nfunction $convertHorizontalRuleElement(): DOMConversionOutput {\n return { node: $createHorizontalRuleNode() }\n}\n\nexport function $createHorizontalRuleNode(): HorizontalRuleNode {\n return $applyNodeReplacement(new HorizontalRuleNode())\n}\n\nexport function $isHorizontalRuleNode(\n node: LexicalNode | null | undefined,\n): node is HorizontalRuleNode {\n return node instanceof HorizontalRuleNode\n}\n"],"mappings":"AAAA;;AAGA,SAASA,qBAAqB,QAAQ;AACtC,YAAYC,KAAA,MAAW;AAIvB,SAASC,wBAAwB,QAAQ;AAEzC,OAAO,MAAMC,kBAAA,SAA2BD,wBAAA;EACtC,OAAgBE,MAAMC,IAA8B,EAA4B;IAC9E,OAAO,KAAK,CAACD,KAAA,CAAMC,IAAA;EACrB;EAEA,OAAgBC,QAAA,EAAkB;IAChC,OAAO,KAAK,CAACA,OAAA;EACf;EAEA;;;EAGA,OAAgBC,WAAWC,cAA4C,EAAsB;IAC3F,OAAOC,yBAAA;EACT;EAEA;;;EAGAC,QAASA,CAAA,EAAW;IAClB,OAAO;EACT;EAESC,WAAA,EAAoC;IAC3C,OAAO,KAAK,CAACA,UAAA;EACf;AACF;AAEA,SAASC,8BAAA;EACP,OAAO;IAAEP,IAAA,EAAMI,yBAAA;EAA4B;AAC7C;AAEA,OAAO,SAASA,0BAAA;EACd,OAAOT,qBAAA,CAAsB,IAAIG,kBAAA;AACnC;AAEA,OAAO,SAASU,sBACdR,IAAoC;EAEpC,OAAOA,IAAA,YAAgBF,kBAAA;AACzB","ignoreList":[]}
1
+ {"version":3,"file":"HorizontalRuleNode.js","names":["$applyNodeReplacement","React","HorizontalRuleServerNode","HorizontalRuleNode","clone","node","getType","importJSON","serializedNode","$createHorizontalRuleNode","decorate","exportJSON","$convertHorizontalRuleElement","$isHorizontalRuleNode"],"sources":["../../../../../src/features/horizontalRule/client/nodes/HorizontalRuleNode.tsx"],"sourcesContent":["'use client'\nimport type { DOMConversionOutput, LexicalNode, SerializedLexicalNode } from 'lexical'\n\nimport { $applyNodeReplacement } from 'lexical'\nimport * as React from 'react'\n\nimport type { SerializedHorizontalRuleNode } from '../../server/schema.js'\n\nimport { HorizontalRuleServerNode } from '../../server/nodes/HorizontalRuleNode.js'\n\nexport class HorizontalRuleNode extends HorizontalRuleServerNode {\n static override clone(node: HorizontalRuleServerNode): HorizontalRuleServerNode {\n return super.clone(node)\n }\n\n static override getType(): string {\n return super.getType()\n }\n\n /**\n * The data for this node is stored serialized as JSON. This is the \"load function\" of that node: it takes the saved data and converts it into a node.\n */\n static override importJSON(serializedNode: SerializedHorizontalRuleNode): HorizontalRuleNode {\n return $createHorizontalRuleNode()\n }\n\n /**\n * Allows you to render a React component within whatever createDOM returns.\n */\n override decorate() {\n return null\n }\n\n override exportJSON(): SerializedLexicalNode {\n return super.exportJSON()\n }\n}\n\nfunction $convertHorizontalRuleElement(): DOMConversionOutput {\n return { node: $createHorizontalRuleNode() }\n}\n\nexport function $createHorizontalRuleNode(): HorizontalRuleNode {\n return $applyNodeReplacement(new HorizontalRuleNode())\n}\n\nexport function $isHorizontalRuleNode(\n node: LexicalNode | null | undefined,\n): node is HorizontalRuleNode {\n return node instanceof HorizontalRuleNode\n}\n"],"mappings":"AAAA;;AAGA,SAASA,qBAAqB,QAAQ;AACtC,YAAYC,KAAA,MAAW;AAIvB,SAASC,wBAAwB,QAAQ;AAEzC,OAAO,MAAMC,kBAAA,SAA2BD,wBAAA;EACtC,OAAgBE,MAAMC,IAA8B,EAA4B;IAC9E,OAAO,KAAK,CAACD,KAAA,CAAMC,IAAA;EACrB;EAEA,OAAgBC,QAAA,EAAkB;IAChC,OAAO,KAAK,CAACA,OAAA;EACf;EAEA;;;EAGA,OAAgBC,WAAWC,cAA4C,EAAsB;IAC3F,OAAOC,yBAAA;EACT;EAEA;;;EAGAC,QAASA,CAAA,EAAW;IAClB,OAAO;EACT;EAESC,WAAA,EAAoC;IAC3C,OAAO,KAAK,CAACA,UAAA;EACf;AACF;AAEA,SAASC,8BAAA;EACP,OAAO;IAAEP,IAAA,EAAMI,yBAAA;EAA4B;AAC7C;AAEA,OAAO,SAASA,0BAAA;EACd,OAAOT,qBAAA,CAAsB,IAAIG,kBAAA;AACnC;AAEA,OAAO,SAASU,sBACdR,IAAoC;EAEpC,OAAOA,IAAA,YAAgBF,kBAAA;AACzB","ignoreList":[]}
@@ -1,2 +1,3 @@
1
+ export type { SerializedHorizontalRuleNode } from './schema.js';
1
2
  export declare const HorizontalRuleFeature: import("../../typesServer.js").FeatureProviderProviderServer<undefined, undefined, undefined>;
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/horizontalRule/server/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB,+FAYhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/horizontalRule/server/index.ts"],"names":[],"mappings":"AAOA,YAAY,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AAE/D,eAAO,MAAM,qBAAqB,+FAahC,CAAA"}
@@ -3,12 +3,14 @@ import { createNode } from '../../typeUtilities.js';
3
3
  import { i18n } from './i18n.js';
4
4
  import { MarkdownTransformer } from './markdownTransformer.js';
5
5
  import { HorizontalRuleServerNode } from './nodes/HorizontalRuleNode.js';
6
+ import { horizontalRuleNodeJSONSchema } from './schema.js';
6
7
  export const HorizontalRuleFeature = createServerFeature({
7
8
  feature: {
8
9
  ClientFeature: '@payloadcms/richtext-lexical/client#HorizontalRuleFeatureClient',
9
10
  i18n,
10
11
  markdownTransformers: [MarkdownTransformer],
11
12
  nodes: [createNode({
13
+ jsonSchema: horizontalRuleNodeJSONSchema,
12
14
  node: HorizontalRuleServerNode
13
15
  })]
14
16
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["createServerFeature","createNode","i18n","MarkdownTransformer","HorizontalRuleServerNode","HorizontalRuleFeature","feature","ClientFeature","markdownTransformers","nodes","node","key"],"sources":["../../../../src/features/horizontalRule/server/index.ts"],"sourcesContent":["import { createServerFeature } from '../../../utilities/createServerFeature.js'\nimport { createNode } from '../../typeUtilities.js'\nimport { i18n } from './i18n.js'\nimport { MarkdownTransformer } from './markdownTransformer.js'\nimport { HorizontalRuleServerNode } from './nodes/HorizontalRuleNode.js'\n\nexport const HorizontalRuleFeature = createServerFeature({\n feature: {\n ClientFeature: '@payloadcms/richtext-lexical/client#HorizontalRuleFeatureClient',\n i18n,\n markdownTransformers: [MarkdownTransformer],\n nodes: [\n createNode({\n node: HorizontalRuleServerNode,\n }),\n ],\n },\n key: 'horizontalRule',\n})\n"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ;AACpC,SAASC,UAAU,QAAQ;AAC3B,SAASC,IAAI,QAAQ;AACrB,SAASC,mBAAmB,QAAQ;AACpC,SAASC,wBAAwB,QAAQ;AAEzC,OAAO,MAAMC,qBAAA,GAAwBL,mBAAA,CAAoB;EACvDM,OAAA,EAAS;IACPC,aAAA,EAAe;IACfL,IAAA;IACAM,oBAAA,EAAsB,CAACL,mBAAA,CAAoB;IAC3CM,KAAA,EAAO,CACLR,UAAA,CAAW;MACTS,IAAA,EAAMN;IACR;EAEJ;EACAO,GAAA,EAAK;AACP","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["createServerFeature","createNode","i18n","MarkdownTransformer","HorizontalRuleServerNode","horizontalRuleNodeJSONSchema","HorizontalRuleFeature","feature","ClientFeature","markdownTransformers","nodes","jsonSchema","node","key"],"sources":["../../../../src/features/horizontalRule/server/index.ts"],"sourcesContent":["import { createServerFeature } from '../../../utilities/createServerFeature.js'\nimport { createNode } from '../../typeUtilities.js'\nimport { i18n } from './i18n.js'\nimport { MarkdownTransformer } from './markdownTransformer.js'\nimport { HorizontalRuleServerNode } from './nodes/HorizontalRuleNode.js'\nimport { horizontalRuleNodeJSONSchema } from './schema.js'\n\nexport type { SerializedHorizontalRuleNode } from './schema.js'\n\nexport const HorizontalRuleFeature = createServerFeature({\n feature: {\n ClientFeature: '@payloadcms/richtext-lexical/client#HorizontalRuleFeatureClient',\n i18n,\n markdownTransformers: [MarkdownTransformer],\n nodes: [\n createNode({\n jsonSchema: horizontalRuleNodeJSONSchema,\n node: HorizontalRuleServerNode,\n }),\n ],\n },\n key: 'horizontalRule',\n})\n"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ;AACpC,SAASC,UAAU,QAAQ;AAC3B,SAASC,IAAI,QAAQ;AACrB,SAASC,mBAAmB,QAAQ;AACpC,SAASC,wBAAwB,QAAQ;AACzC,SAASC,4BAA4B,QAAQ;AAI7C,OAAO,MAAMC,qBAAA,GAAwBN,mBAAA,CAAoB;EACvDO,OAAA,EAAS;IACPC,aAAA,EAAe;IACfN,IAAA;IACAO,oBAAA,EAAsB,CAACN,mBAAA,CAAoB;IAC3CO,KAAA,EAAO,CACLT,UAAA,CAAW;MACTU,UAAA,EAAYN,4BAAA;MACZO,IAAA,EAAMR;IACR;EAEJ;EACAS,GAAA,EAAK;AACP","ignoreList":[]}
@@ -1,11 +1,7 @@
1
1
  import type { DOMConversionMap, DOMExportOutput, EditorConfig, LexicalCommand, LexicalNode, SerializedLexicalNode } from 'lexical';
2
2
  import type * as React from 'react';
3
3
  import { DecoratorNode } from 'lexical';
4
- import type { StronglyTypedLeafNode } from '../../../../nodeTypes.js';
5
- /**
6
- * Serialized representation of a horizontal rule node. Serialized = converted to JSON. This is what is stored in the database / in the lexical editor state.
7
- */
8
- export type SerializedHorizontalRuleNode = StronglyTypedLeafNode<SerializedLexicalNode, 'horizontalrule'>;
4
+ import type { SerializedHorizontalRuleNode } from '../schema.js';
9
5
  export declare const INSERT_HORIZONTAL_RULE_COMMAND: LexicalCommand<void>;
10
6
  /**
11
7
  * This node is a DecoratorNode. DecoratorNodes allow you to render React components in the editor.
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalRuleNode.d.ts","sourceRoot":"","sources":["../../../../../src/features/horizontalRule/server/nodes/HorizontalRuleNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAEhB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAGnC,OAAO,EAAwC,aAAa,EAAE,MAAM,SAAS,CAAA;AAE7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAErE;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,qBAAqB,CAC9D,qBAAqB,EACrB,gBAAgB,CACjB,CAAA;AAED,eAAO,MAAM,8BAA8B,EAAE,cAAc,CAAC,IAAI,CAE/D,CAAA;AAED;;;;;;GAMG;AACH,qBAAa,wBAAyB,SAAQ,aAAa,CAAC,IAAI,GAAG,KAAK,CAAC,YAAY,CAAC;WACpE,KAAK,CAAC,IAAI,EAAE,wBAAwB,GAAG,wBAAwB;WAI/D,OAAO,IAAI,MAAM;IAIjC;;;;OAIG;WACa,SAAS,IAAI,gBAAgB,GAAG,IAAI;IASpD;;OAEG;WACa,UAAU,CACxB,cAAc,EAAE,4BAA4B,GAC3C,wBAAwB;IAI3B;;OAEG;IACM,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW;IAM5C,QAAQ,IAAI,IAAI,GAAG,KAAK,CAAC,YAAY;IAI9C;;;;OAIG;IACM,SAAS,IAAI,eAAe;IAGrC;;OAEG;IACM,UAAU,IAAI,qBAAqB;IAOnC,cAAc,IAAI,MAAM;IAIxB,QAAQ,IAAI,KAAK;IAIjB,SAAS,IAAI,OAAO;CAG9B;AAMD,wBAAgB,+BAA+B,IAAI,wBAAwB,CAE1E;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,wBAAwB,CAElC"}
1
+ {"version":3,"file":"HorizontalRuleNode.d.ts","sourceRoot":"","sources":["../../../../../src/features/horizontalRule/server/nodes/HorizontalRuleNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAEhB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAGnC,OAAO,EAAwC,aAAa,EAAE,MAAM,SAAS,CAAA;AAE7E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAA;AAEhE,eAAO,MAAM,8BAA8B,EAAE,cAAc,CAAC,IAAI,CAE/D,CAAA;AAED;;;;;;GAMG;AACH,qBAAa,wBAAyB,SAAQ,aAAa,CAAC,IAAI,GAAG,KAAK,CAAC,YAAY,CAAC;WACpE,KAAK,CAAC,IAAI,EAAE,wBAAwB,GAAG,wBAAwB;WAI/D,OAAO,IAAI,MAAM;IAIjC;;;;OAIG;WACa,SAAS,IAAI,gBAAgB,GAAG,IAAI;IASpD;;OAEG;WACa,UAAU,CACxB,cAAc,EAAE,4BAA4B,GAC3C,wBAAwB;IAI3B;;OAEG;IACM,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW;IAM5C,QAAQ,IAAI,IAAI,GAAG,KAAK,CAAC,YAAY;IAI9C;;;;OAIG;IACM,SAAS,IAAI,eAAe;IAGrC;;OAEG;IACM,UAAU,IAAI,qBAAqB;IAOnC,cAAc,IAAI,MAAM;IAIxB,QAAQ,IAAI,KAAK;IAIjB,SAAS,IAAI,OAAO;CAG9B;AAMD,wBAAgB,+BAA+B,IAAI,wBAAwB,CAE1E;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,wBAAwB,CAElC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalRuleNode.js","names":["addClassNamesToElement","$applyNodeReplacement","createCommand","DecoratorNode","INSERT_HORIZONTAL_RULE_COMMAND","HorizontalRuleServerNode","clone","node","__key","getType","importDOM","hr","conversion","$convertHorizontalRuleElement","priority","importJSON","serializedNode","$createHorizontalRuleServerNode","createDOM","config","element","document","createElement","theme","decorate","exportDOM","exportJSON","type","version","getTextContent","isInline","updateDOM","$isHorizontalRuleServerNode"],"sources":["../../../../../src/features/horizontalRule/server/nodes/HorizontalRuleNode.tsx"],"sourcesContent":["import type {\n DOMConversionMap,\n DOMConversionOutput,\n DOMExportOutput,\n EditorConfig,\n LexicalCommand,\n LexicalNode,\n SerializedLexicalNode,\n} from 'lexical'\nimport type * as React from 'react'\n\nimport { addClassNamesToElement } from '@lexical/utils'\nimport { $applyNodeReplacement, createCommand, DecoratorNode } from 'lexical'\n\nimport type { StronglyTypedLeafNode } from '../../../../nodeTypes.js'\n\n/**\n * Serialized representation of a horizontal rule node. Serialized = converted to JSON. This is what is stored in the database / in the lexical editor state.\n */\nexport type SerializedHorizontalRuleNode = StronglyTypedLeafNode<\n SerializedLexicalNode,\n 'horizontalrule'\n>\n\nexport const INSERT_HORIZONTAL_RULE_COMMAND: LexicalCommand<void> = createCommand(\n 'INSERT_HORIZONTAL_RULE_COMMAND',\n)\n\n/**\n * This node is a DecoratorNode. DecoratorNodes allow you to render React components in the editor.\n *\n * They need both createDom and decorate functions. createDom => outside of the html. decorate => React Component inside of the html.\n *\n * If we used DecoratorBlockNode instead, we would only need a decorate method\n */\nexport class HorizontalRuleServerNode extends DecoratorNode<null | React.ReactElement> {\n static override clone(node: HorizontalRuleServerNode): HorizontalRuleServerNode {\n return new this(node.__key)\n }\n\n static override getType(): string {\n return 'horizontalrule'\n }\n\n /**\n * Defines what happens if you copy an hr element from another page and paste it into the lexical editor\n *\n * This also determines the behavior of lexical's internal HTML -> Lexical converter\n */\n static override importDOM(): DOMConversionMap | null {\n return {\n hr: () => ({\n conversion: $convertHorizontalRuleElement,\n priority: 0,\n }),\n }\n }\n\n /**\n * The data for this node is stored serialized as JSON. This is the \"load function\" of that node: it takes the saved data and converts it into a node.\n */\n static override importJSON(\n serializedNode: SerializedHorizontalRuleNode,\n ): HorizontalRuleServerNode {\n return $createHorizontalRuleServerNode()\n }\n\n /**\n * Determines how the hr element is rendered in the lexical editor. This is only the \"initial\" / \"outer\" HTML element.\n */\n override createDOM(config: EditorConfig): HTMLElement {\n const element = document.createElement('hr')\n addClassNamesToElement(element, config.theme.hr)\n return element\n }\n\n override decorate(): null | React.ReactElement {\n return null\n }\n\n /**\n * Opposite of importDOM, this function defines what happens when you copy an hr element from the lexical editor and paste it into another page.\n *\n * This also determines the behavior of lexical's internal Lexical -> HTML converter\n */\n override exportDOM(): DOMExportOutput {\n return { element: document.createElement('hr') }\n }\n /**\n * Opposite of importJSON. This determines what data is saved in the database / in the lexical editor state.\n */\n override exportJSON(): SerializedLexicalNode {\n return {\n type: 'horizontalrule',\n version: 1,\n }\n }\n\n override getTextContent(): string {\n return '\\n'\n }\n\n override isInline(): false {\n return false\n }\n\n override updateDOM(): boolean {\n return false\n }\n}\n\nfunction $convertHorizontalRuleElement(): DOMConversionOutput {\n return { node: $createHorizontalRuleServerNode() }\n}\n\nexport function $createHorizontalRuleServerNode(): HorizontalRuleServerNode {\n return $applyNodeReplacement(new HorizontalRuleServerNode())\n}\n\nexport function $isHorizontalRuleServerNode(\n node: LexicalNode | null | undefined,\n): node is HorizontalRuleServerNode {\n return node instanceof HorizontalRuleServerNode\n}\n"],"mappings":"AAWA,SAASA,sBAAsB,QAAQ;AACvC,SAASC,qBAAqB,EAAEC,aAAa,EAAEC,aAAa,QAAQ;AAYpE,OAAO,MAAMC,8BAAA,GAAuDF,aAAA,CAClE;AAGF;;;;;;;AAOA,OAAO,MAAMG,wBAAA,SAAiCF,aAAA;EAC5C,OAAgBG,MAAMC,IAA8B,EAA4B;IAC9E,OAAO,IAAI,IAAI,CAACA,IAAA,CAAKC,KAAK;EAC5B;EAEA,OAAgBC,QAAA,EAAkB;IAChC,OAAO;EACT;EAEA;;;;;EAKA,OAAgBC,UAAA,EAAqC;IACnD,OAAO;MACLC,EAAA,EAAIA,CAAA,MAAO;QACTC,UAAA,EAAYC,6BAAA;QACZC,QAAA,EAAU;MACZ;IACF;EACF;EAEA;;;EAGA,OAAgBC,WACdC,cAA4C,EAClB;IAC1B,OAAOC,+BAAA;EACT;EAEA;;;EAGAC,SAASA,CAAUC,MAAoB,EAAe;IACpD,MAAMC,OAAA,GAAUC,QAAA,CAASC,aAAa,CAAC;IACvCtB,sBAAA,CAAuBoB,OAAA,EAASD,MAAA,CAAOI,KAAK,CAACZ,EAAE;IAC/C,OAAOS,OAAA;EACT;EAESI,SAAA,EAAsC;IAC7C,OAAO;EACT;EAEA;;;;;EAKAC,SAASA,CAAA,EAA6B;IACpC,OAAO;MAAEL,OAAA,EAASC,QAAA,CAASC,aAAa,CAAC;IAAM;EACjD;EACA;;;EAGAI,UAASA,CAAA,EAAoC;IAC3C,OAAO;MACLC,IAAA,EAAM;MACNC,OAAA,EAAS;IACX;EACF;EAESC,eAAA,EAAyB;IAChC,OAAO;EACT;EAESC,SAAA,EAAkB;IACzB,OAAO;EACT;EAESC,UAAA,EAAqB;IAC5B,OAAO;EACT;AACF;AAEA,SAASlB,8BAAA;EACP,OAAO;IAAEN,IAAA,EAAMU,+BAAA;EAAkC;AACnD;AAEA,OAAO,SAASA,gCAAA;EACd,OAAOhB,qBAAA,CAAsB,IAAII,wBAAA;AACnC;AAEA,OAAO,SAAS2B,4BACdzB,IAAoC;EAEpC,OAAOA,IAAA,YAAgBF,wBAAA;AACzB","ignoreList":[]}
1
+ {"version":3,"file":"HorizontalRuleNode.js","names":["addClassNamesToElement","$applyNodeReplacement","createCommand","DecoratorNode","INSERT_HORIZONTAL_RULE_COMMAND","HorizontalRuleServerNode","clone","node","__key","getType","importDOM","hr","conversion","$convertHorizontalRuleElement","priority","importJSON","serializedNode","$createHorizontalRuleServerNode","createDOM","config","element","document","createElement","theme","decorate","exportDOM","exportJSON","type","version","getTextContent","isInline","updateDOM","$isHorizontalRuleServerNode"],"sources":["../../../../../src/features/horizontalRule/server/nodes/HorizontalRuleNode.tsx"],"sourcesContent":["import type {\n DOMConversionMap,\n DOMConversionOutput,\n DOMExportOutput,\n EditorConfig,\n LexicalCommand,\n LexicalNode,\n SerializedLexicalNode,\n} from 'lexical'\nimport type * as React from 'react'\n\nimport { addClassNamesToElement } from '@lexical/utils'\nimport { $applyNodeReplacement, createCommand, DecoratorNode } from 'lexical'\n\nimport type { SerializedHorizontalRuleNode } from '../schema.js'\n\nexport const INSERT_HORIZONTAL_RULE_COMMAND: LexicalCommand<void> = createCommand(\n 'INSERT_HORIZONTAL_RULE_COMMAND',\n)\n\n/**\n * This node is a DecoratorNode. DecoratorNodes allow you to render React components in the editor.\n *\n * They need both createDom and decorate functions. createDom => outside of the html. decorate => React Component inside of the html.\n *\n * If we used DecoratorBlockNode instead, we would only need a decorate method\n */\nexport class HorizontalRuleServerNode extends DecoratorNode<null | React.ReactElement> {\n static override clone(node: HorizontalRuleServerNode): HorizontalRuleServerNode {\n return new this(node.__key)\n }\n\n static override getType(): string {\n return 'horizontalrule'\n }\n\n /**\n * Defines what happens if you copy an hr element from another page and paste it into the lexical editor\n *\n * This also determines the behavior of lexical's internal HTML -> Lexical converter\n */\n static override importDOM(): DOMConversionMap | null {\n return {\n hr: () => ({\n conversion: $convertHorizontalRuleElement,\n priority: 0,\n }),\n }\n }\n\n /**\n * The data for this node is stored serialized as JSON. This is the \"load function\" of that node: it takes the saved data and converts it into a node.\n */\n static override importJSON(\n serializedNode: SerializedHorizontalRuleNode,\n ): HorizontalRuleServerNode {\n return $createHorizontalRuleServerNode()\n }\n\n /**\n * Determines how the hr element is rendered in the lexical editor. This is only the \"initial\" / \"outer\" HTML element.\n */\n override createDOM(config: EditorConfig): HTMLElement {\n const element = document.createElement('hr')\n addClassNamesToElement(element, config.theme.hr)\n return element\n }\n\n override decorate(): null | React.ReactElement {\n return null\n }\n\n /**\n * Opposite of importDOM, this function defines what happens when you copy an hr element from the lexical editor and paste it into another page.\n *\n * This also determines the behavior of lexical's internal Lexical -> HTML converter\n */\n override exportDOM(): DOMExportOutput {\n return { element: document.createElement('hr') }\n }\n /**\n * Opposite of importJSON. This determines what data is saved in the database / in the lexical editor state.\n */\n override exportJSON(): SerializedLexicalNode {\n return {\n type: 'horizontalrule',\n version: 1,\n }\n }\n\n override getTextContent(): string {\n return '\\n'\n }\n\n override isInline(): false {\n return false\n }\n\n override updateDOM(): boolean {\n return false\n }\n}\n\nfunction $convertHorizontalRuleElement(): DOMConversionOutput {\n return { node: $createHorizontalRuleServerNode() }\n}\n\nexport function $createHorizontalRuleServerNode(): HorizontalRuleServerNode {\n return $applyNodeReplacement(new HorizontalRuleServerNode())\n}\n\nexport function $isHorizontalRuleServerNode(\n node: LexicalNode | null | undefined,\n): node is HorizontalRuleServerNode {\n return node instanceof HorizontalRuleServerNode\n}\n"],"mappings":"AAWA,SAASA,sBAAsB,QAAQ;AACvC,SAASC,qBAAqB,EAAEC,aAAa,EAAEC,aAAa,QAAQ;AAIpE,OAAO,MAAMC,8BAAA,GAAuDF,aAAA,CAClE;AAGF;;;;;;;AAOA,OAAO,MAAMG,wBAAA,SAAiCF,aAAA;EAC5C,OAAgBG,MAAMC,IAA8B,EAA4B;IAC9E,OAAO,IAAI,IAAI,CAACA,IAAA,CAAKC,KAAK;EAC5B;EAEA,OAAgBC,QAAA,EAAkB;IAChC,OAAO;EACT;EAEA;;;;;EAKA,OAAgBC,UAAA,EAAqC;IACnD,OAAO;MACLC,EAAA,EAAIA,CAAA,MAAO;QACTC,UAAA,EAAYC,6BAAA;QACZC,QAAA,EAAU;MACZ;IACF;EACF;EAEA;;;EAGA,OAAgBC,WACdC,cAA4C,EAClB;IAC1B,OAAOC,+BAAA;EACT;EAEA;;;EAGAC,SAASA,CAAUC,MAAoB,EAAe;IACpD,MAAMC,OAAA,GAAUC,QAAA,CAASC,aAAa,CAAC;IACvCtB,sBAAA,CAAuBoB,OAAA,EAASD,MAAA,CAAOI,KAAK,CAACZ,EAAE;IAC/C,OAAOS,OAAA;EACT;EAESI,SAAA,EAAsC;IAC7C,OAAO;EACT;EAEA;;;;;EAKAC,SAASA,CAAA,EAA6B;IACpC,OAAO;MAAEL,OAAA,EAASC,QAAA,CAASC,aAAa,CAAC;IAAM;EACjD;EACA;;;EAGAI,UAASA,CAAA,EAAoC;IAC3C,OAAO;MACLC,IAAA,EAAM;MACNC,OAAA,EAAS;IACX;EACF;EAESC,eAAA,EAAyB;IAChC,OAAO;EACT;EAESC,SAAA,EAAkB;IACzB,OAAO;EACT;EAESC,UAAA,EAAqB;IAC5B,OAAO;EACT;AACF;AAEA,SAASlB,8BAAA;EACP,OAAO;IAAEN,IAAA,EAAMU,+BAAA;EAAkC;AACnD;AAEA,OAAO,SAASA,gCAAA;EACd,OAAOhB,qBAAA,CAAsB,IAAII,wBAAA;AACnC;AAEA,OAAO,SAAS2B,4BACdzB,IAAoC;EAEpC,OAAOA,IAAA,YAAgBF,wBAAA;AACzB","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import type { JSONSchemaFn } from '../../typesServer.js';
2
+ export interface SerializedHorizontalRuleNode {
3
+ type: 'horizontalrule';
4
+ version: number;
5
+ }
6
+ export declare const horizontalRuleNodeJSONSchema: JSONSchemaFn;
7
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/features/horizontalRule/server/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,gBAAgB,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;CAChB;AAQD,eAAO,MAAM,4BAA4B,EAAE,YAY1C,CAAA"}
@@ -0,0 +1,25 @@
1
+ /** MUST stay byte-for-byte in sync with the runtime `SerializedHorizontalRuleNode` declared above. */const SERIALIZED_HORIZONTAL_RULE_NODE_TS = `export interface SerializedHorizontalRuleNode {
2
+ type: 'horizontalrule';
3
+ version: number;
4
+ }`;
5
+ export const horizontalRuleNodeJSONSchema = ({
6
+ typeStringDefinitions
7
+ }) => {
8
+ typeStringDefinitions.add(SERIALIZED_HORIZONTAL_RULE_NODE_TS);
9
+ return {
10
+ type: 'object',
11
+ additionalProperties: false,
12
+ properties: {
13
+ type: {
14
+ type: 'string',
15
+ const: 'horizontalrule'
16
+ },
17
+ version: {
18
+ type: 'integer'
19
+ }
20
+ },
21
+ required: ['type', 'version'],
22
+ tsType: 'SerializedHorizontalRuleNode'
23
+ };
24
+ };
25
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","names":["SERIALIZED_HORIZONTAL_RULE_NODE_TS","horizontalRuleNodeJSONSchema","typeStringDefinitions","add","type","additionalProperties","properties","const","version","required","tsType"],"sources":["../../../../src/features/horizontalRule/server/schema.ts"],"sourcesContent":["import type { JSONSchemaFn } from '../../typesServer.js'\n\nexport interface SerializedHorizontalRuleNode {\n type: 'horizontalrule'\n version: number\n}\n\n/** MUST stay byte-for-byte in sync with the runtime `SerializedHorizontalRuleNode` declared above. */\nconst SERIALIZED_HORIZONTAL_RULE_NODE_TS = `export interface SerializedHorizontalRuleNode {\n type: 'horizontalrule';\n version: number;\n}`\n\nexport const horizontalRuleNodeJSONSchema: JSONSchemaFn = ({ typeStringDefinitions }) => {\n typeStringDefinitions.add(SERIALIZED_HORIZONTAL_RULE_NODE_TS)\n return {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: { type: 'string', const: 'horizontalrule' },\n version: { type: 'integer' },\n },\n required: ['type', 'version'],\n tsType: 'SerializedHorizontalRuleNode',\n }\n}\n"],"mappings":"AAOA,sGACA,MAAMA,kCAAA,GAAqC;;;EAGzC;AAEF,OAAO,MAAMC,4BAAA,GAA6CA,CAAC;EAAEC;AAAqB,CAAE;EAClFA,qBAAA,CAAsBC,GAAG,CAACH,kCAAA;EAC1B,OAAO;IACLI,IAAA,EAAM;IACNC,oBAAA,EAAsB;IACtBC,UAAA,EAAY;MACVF,IAAA,EAAM;QAAEA,IAAA,EAAM;QAAUG,KAAA,EAAO;MAAiB;MAChDC,OAAA,EAAS;QAAEJ,IAAA,EAAM;MAAU;IAC7B;IACAK,QAAA,EAAU,CAAC,QAAQ,UAAU;IAC7BC,MAAA,EAAQ;EACV;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"toolbarIndentGroup.d.ts","sourceRoot":"","sources":["../../../../src/features/indent/client/toolbarIndentGroup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE7E,eAAO,MAAM,2BAA2B,UAAW,gBAAgB,EAAE,KAAG,YAOvE,CAAA"}
1
+ {"version":3,"file":"toolbarIndentGroup.d.ts","sourceRoot":"","sources":["../../../../src/features/indent/client/toolbarIndentGroup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE7E,eAAO,MAAM,2BAA2B,GAAI,OAAO,gBAAgB,EAAE,KAAG,YAOvE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/link/client/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAA;AAevE,MAAM,MAAM,WAAW,GAAG;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CACzC,GAAG,6BAA6B,CAAA;AAsDjC,eAAO,MAAM,iBAAiB,wFAgC3B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/link/client/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAA;AAgBvE,MAAM,MAAM,WAAW,GAAG;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CACzC,GAAG,6BAA6B,CAAA;AAsDjC,eAAO,MAAM,iBAAiB,wFAgC3B,CAAA"}