@frogbotai/richtext-lexical 0.25.0

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 (339) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/exports/client/index.d.ts +3 -0
  4. package/dist/exports/client/index.d.ts.map +1 -0
  5. package/dist/exports/client/index.js +3 -0
  6. package/dist/exports/client/index.js.map +1 -0
  7. package/dist/exports/html/index.d.ts +2 -0
  8. package/dist/exports/html/index.d.ts.map +1 -0
  9. package/dist/exports/html/index.js +2 -0
  10. package/dist/exports/html/index.js.map +1 -0
  11. package/dist/exports/html-async/index.d.ts +2 -0
  12. package/dist/exports/html-async/index.d.ts.map +1 -0
  13. package/dist/exports/html-async/index.js +2 -0
  14. package/dist/exports/html-async/index.js.map +1 -0
  15. package/dist/exports/plaintext/index.d.ts +2 -0
  16. package/dist/exports/plaintext/index.d.ts.map +1 -0
  17. package/dist/exports/plaintext/index.js +2 -0
  18. package/dist/exports/plaintext/index.js.map +1 -0
  19. package/dist/exports/react/index.d.ts +3 -0
  20. package/dist/exports/react/index.d.ts.map +1 -0
  21. package/dist/exports/react/index.js +2 -0
  22. package/dist/exports/react/index.js.map +1 -0
  23. package/dist/exports/server/ast/mdx.d.ts +2 -0
  24. package/dist/exports/server/ast/mdx.d.ts.map +1 -0
  25. package/dist/exports/server/ast/mdx.js +2 -0
  26. package/dist/exports/server/ast/mdx.js.map +1 -0
  27. package/dist/exports/server/rsc.d.ts +2 -0
  28. package/dist/exports/server/rsc.d.ts.map +1 -0
  29. package/dist/exports/server/rsc.js +2 -0
  30. package/dist/exports/server/rsc.js.map +1 -0
  31. package/dist/exports/shared.d.ts +2 -0
  32. package/dist/exports/shared.d.ts.map +1 -0
  33. package/dist/exports/shared.js +2 -0
  34. package/dist/exports/shared.js.map +1 -0
  35. package/dist/features/blocks/premade/CodeBlock/index.d.ts +13 -0
  36. package/dist/features/blocks/premade/CodeBlock/index.d.ts.map +1 -0
  37. package/dist/features/blocks/premade/CodeBlock/index.js +29 -0
  38. package/dist/features/blocks/premade/CodeBlock/index.js.map +1 -0
  39. package/dist/features/blocks/server/index.d.ts +29 -0
  40. package/dist/features/blocks/server/index.d.ts.map +1 -0
  41. package/dist/features/blocks/server/index.js +17 -0
  42. package/dist/features/blocks/server/index.js.map +1 -0
  43. package/dist/features/converters/lexicalToHtml/async/field/index.d.ts +6 -0
  44. package/dist/features/converters/lexicalToHtml/async/field/index.d.ts.map +1 -0
  45. package/dist/features/converters/lexicalToHtml/async/field/index.js +42 -0
  46. package/dist/features/converters/lexicalToHtml/async/field/index.js.map +1 -0
  47. package/dist/features/converters/utilities/frogbotPopulateFn.d.ts +14 -0
  48. package/dist/features/converters/utilities/frogbotPopulateFn.d.ts.map +1 -0
  49. package/dist/features/converters/utilities/frogbotPopulateFn.js +16 -0
  50. package/dist/features/converters/utilities/frogbotPopulateFn.js.map +1 -0
  51. package/dist/features/typeUtilities.d.ts +4 -0
  52. package/dist/features/typeUtilities.d.ts.map +1 -0
  53. package/dist/features/typeUtilities.js +4 -0
  54. package/dist/features/typeUtilities.js.map +1 -0
  55. package/dist/features/typesServer.d.ts +50 -0
  56. package/dist/features/typesServer.d.ts.map +1 -0
  57. package/dist/features/typesServer.js +2 -0
  58. package/dist/features/typesServer.js.map +1 -0
  59. package/dist/index.d.ts +10 -0
  60. package/dist/index.d.ts.map +1 -0
  61. package/dist/index.js +9 -0
  62. package/dist/index.js.map +1 -0
  63. package/dist/lexical-proxy/headless.d.ts +2 -0
  64. package/dist/lexical-proxy/headless.d.ts.map +1 -0
  65. package/dist/lexical-proxy/headless.js +2 -0
  66. package/dist/lexical-proxy/headless.js.map +1 -0
  67. package/dist/lexical-proxy/html.d.ts +2 -0
  68. package/dist/lexical-proxy/html.d.ts.map +1 -0
  69. package/dist/lexical-proxy/html.js +2 -0
  70. package/dist/lexical-proxy/html.js.map +1 -0
  71. package/dist/lexical-proxy/lexical.d.ts +2 -0
  72. package/dist/lexical-proxy/lexical.d.ts.map +1 -0
  73. package/dist/lexical-proxy/lexical.js +2 -0
  74. package/dist/lexical-proxy/lexical.js.map +1 -0
  75. package/dist/lexical-proxy/link.d.ts +2 -0
  76. package/dist/lexical-proxy/link.d.ts.map +1 -0
  77. package/dist/lexical-proxy/link.js +2 -0
  78. package/dist/lexical-proxy/link.js.map +1 -0
  79. package/dist/lexical-proxy/list.d.ts +2 -0
  80. package/dist/lexical-proxy/list.d.ts.map +1 -0
  81. package/dist/lexical-proxy/list.js +2 -0
  82. package/dist/lexical-proxy/list.js.map +1 -0
  83. package/dist/lexical-proxy/mark.d.ts +2 -0
  84. package/dist/lexical-proxy/mark.d.ts.map +1 -0
  85. package/dist/lexical-proxy/mark.js +2 -0
  86. package/dist/lexical-proxy/mark.js.map +1 -0
  87. package/dist/lexical-proxy/markdown.d.ts +2 -0
  88. package/dist/lexical-proxy/markdown.d.ts.map +1 -0
  89. package/dist/lexical-proxy/markdown.js +2 -0
  90. package/dist/lexical-proxy/markdown.js.map +1 -0
  91. package/dist/lexical-proxy/react/ExtensionComponent.d.ts +2 -0
  92. package/dist/lexical-proxy/react/ExtensionComponent.d.ts.map +1 -0
  93. package/dist/lexical-proxy/react/ExtensionComponent.js +2 -0
  94. package/dist/lexical-proxy/react/ExtensionComponent.js.map +1 -0
  95. package/dist/lexical-proxy/react/LexicalAutoEmbedPlugin.d.ts +2 -0
  96. package/dist/lexical-proxy/react/LexicalAutoEmbedPlugin.d.ts.map +1 -0
  97. package/dist/lexical-proxy/react/LexicalAutoEmbedPlugin.js +2 -0
  98. package/dist/lexical-proxy/react/LexicalAutoEmbedPlugin.js.map +1 -0
  99. package/dist/lexical-proxy/react/LexicalAutoFocusPlugin.d.ts +2 -0
  100. package/dist/lexical-proxy/react/LexicalAutoFocusPlugin.d.ts.map +1 -0
  101. package/dist/lexical-proxy/react/LexicalAutoFocusPlugin.js +2 -0
  102. package/dist/lexical-proxy/react/LexicalAutoFocusPlugin.js.map +1 -0
  103. package/dist/lexical-proxy/react/LexicalAutoLinkPlugin.d.ts +2 -0
  104. package/dist/lexical-proxy/react/LexicalAutoLinkPlugin.d.ts.map +1 -0
  105. package/dist/lexical-proxy/react/LexicalAutoLinkPlugin.js +2 -0
  106. package/dist/lexical-proxy/react/LexicalAutoLinkPlugin.js.map +1 -0
  107. package/dist/lexical-proxy/react/LexicalBlockWithAlignableContents.d.ts +2 -0
  108. package/dist/lexical-proxy/react/LexicalBlockWithAlignableContents.d.ts.map +1 -0
  109. package/dist/lexical-proxy/react/LexicalBlockWithAlignableContents.js +2 -0
  110. package/dist/lexical-proxy/react/LexicalBlockWithAlignableContents.js.map +1 -0
  111. package/dist/lexical-proxy/react/LexicalCharacterLimitPlugin.d.ts +2 -0
  112. package/dist/lexical-proxy/react/LexicalCharacterLimitPlugin.d.ts.map +1 -0
  113. package/dist/lexical-proxy/react/LexicalCharacterLimitPlugin.js +2 -0
  114. package/dist/lexical-proxy/react/LexicalCharacterLimitPlugin.js.map +1 -0
  115. package/dist/lexical-proxy/react/LexicalCheckListPlugin.d.ts +2 -0
  116. package/dist/lexical-proxy/react/LexicalCheckListPlugin.d.ts.map +1 -0
  117. package/dist/lexical-proxy/react/LexicalCheckListPlugin.js +2 -0
  118. package/dist/lexical-proxy/react/LexicalCheckListPlugin.js.map +1 -0
  119. package/dist/lexical-proxy/react/LexicalClearEditorPlugin.d.ts +2 -0
  120. package/dist/lexical-proxy/react/LexicalClearEditorPlugin.d.ts.map +1 -0
  121. package/dist/lexical-proxy/react/LexicalClearEditorPlugin.js +2 -0
  122. package/dist/lexical-proxy/react/LexicalClearEditorPlugin.js.map +1 -0
  123. package/dist/lexical-proxy/react/LexicalClickableLinkPlugin.d.ts +2 -0
  124. package/dist/lexical-proxy/react/LexicalClickableLinkPlugin.d.ts.map +1 -0
  125. package/dist/lexical-proxy/react/LexicalClickableLinkPlugin.js +2 -0
  126. package/dist/lexical-proxy/react/LexicalClickableLinkPlugin.js.map +1 -0
  127. package/dist/lexical-proxy/react/LexicalCollaborationContext.d.ts +2 -0
  128. package/dist/lexical-proxy/react/LexicalCollaborationContext.d.ts.map +1 -0
  129. package/dist/lexical-proxy/react/LexicalCollaborationContext.js +2 -0
  130. package/dist/lexical-proxy/react/LexicalCollaborationContext.js.map +1 -0
  131. package/dist/lexical-proxy/react/LexicalCollaborationPlugin.d.ts +2 -0
  132. package/dist/lexical-proxy/react/LexicalCollaborationPlugin.d.ts.map +1 -0
  133. package/dist/lexical-proxy/react/LexicalCollaborationPlugin.js +2 -0
  134. package/dist/lexical-proxy/react/LexicalCollaborationPlugin.js.map +1 -0
  135. package/dist/lexical-proxy/react/LexicalComposer.d.ts +2 -0
  136. package/dist/lexical-proxy/react/LexicalComposer.d.ts.map +1 -0
  137. package/dist/lexical-proxy/react/LexicalComposer.js +2 -0
  138. package/dist/lexical-proxy/react/LexicalComposer.js.map +1 -0
  139. package/dist/lexical-proxy/react/LexicalComposerContext.d.ts +2 -0
  140. package/dist/lexical-proxy/react/LexicalComposerContext.d.ts.map +1 -0
  141. package/dist/lexical-proxy/react/LexicalComposerContext.js +2 -0
  142. package/dist/lexical-proxy/react/LexicalComposerContext.js.map +1 -0
  143. package/dist/lexical-proxy/react/LexicalContentEditable.d.ts +2 -0
  144. package/dist/lexical-proxy/react/LexicalContentEditable.d.ts.map +1 -0
  145. package/dist/lexical-proxy/react/LexicalContentEditable.js +2 -0
  146. package/dist/lexical-proxy/react/LexicalContentEditable.js.map +1 -0
  147. package/dist/lexical-proxy/react/LexicalDecoratorBlockNode.d.ts +2 -0
  148. package/dist/lexical-proxy/react/LexicalDecoratorBlockNode.d.ts.map +1 -0
  149. package/dist/lexical-proxy/react/LexicalDecoratorBlockNode.js +2 -0
  150. package/dist/lexical-proxy/react/LexicalDecoratorBlockNode.js.map +1 -0
  151. package/dist/lexical-proxy/react/LexicalDraggableBlockPlugin.d.ts +2 -0
  152. package/dist/lexical-proxy/react/LexicalDraggableBlockPlugin.d.ts.map +1 -0
  153. package/dist/lexical-proxy/react/LexicalDraggableBlockPlugin.js +2 -0
  154. package/dist/lexical-proxy/react/LexicalDraggableBlockPlugin.js.map +1 -0
  155. package/dist/lexical-proxy/react/LexicalEditorRefPlugin.d.ts +2 -0
  156. package/dist/lexical-proxy/react/LexicalEditorRefPlugin.d.ts.map +1 -0
  157. package/dist/lexical-proxy/react/LexicalEditorRefPlugin.js +2 -0
  158. package/dist/lexical-proxy/react/LexicalEditorRefPlugin.js.map +1 -0
  159. package/dist/lexical-proxy/react/LexicalErrorBoundary.d.ts +2 -0
  160. package/dist/lexical-proxy/react/LexicalErrorBoundary.d.ts.map +1 -0
  161. package/dist/lexical-proxy/react/LexicalErrorBoundary.js +2 -0
  162. package/dist/lexical-proxy/react/LexicalErrorBoundary.js.map +1 -0
  163. package/dist/lexical-proxy/react/LexicalExtensionComposer.d.ts +2 -0
  164. package/dist/lexical-proxy/react/LexicalExtensionComposer.d.ts.map +1 -0
  165. package/dist/lexical-proxy/react/LexicalExtensionComposer.js +2 -0
  166. package/dist/lexical-proxy/react/LexicalExtensionComposer.js.map +1 -0
  167. package/dist/lexical-proxy/react/LexicalExtensionEditorComposer.d.ts +2 -0
  168. package/dist/lexical-proxy/react/LexicalExtensionEditorComposer.d.ts.map +1 -0
  169. package/dist/lexical-proxy/react/LexicalExtensionEditorComposer.js +2 -0
  170. package/dist/lexical-proxy/react/LexicalExtensionEditorComposer.js.map +1 -0
  171. package/dist/lexical-proxy/react/LexicalHashtagPlugin.d.ts +2 -0
  172. package/dist/lexical-proxy/react/LexicalHashtagPlugin.d.ts.map +1 -0
  173. package/dist/lexical-proxy/react/LexicalHashtagPlugin.js +2 -0
  174. package/dist/lexical-proxy/react/LexicalHashtagPlugin.js.map +1 -0
  175. package/dist/lexical-proxy/react/LexicalHistoryPlugin.d.ts +2 -0
  176. package/dist/lexical-proxy/react/LexicalHistoryPlugin.d.ts.map +1 -0
  177. package/dist/lexical-proxy/react/LexicalHistoryPlugin.js +2 -0
  178. package/dist/lexical-proxy/react/LexicalHistoryPlugin.js.map +1 -0
  179. package/dist/lexical-proxy/react/LexicalHorizontalRuleNode.d.ts +2 -0
  180. package/dist/lexical-proxy/react/LexicalHorizontalRuleNode.d.ts.map +1 -0
  181. package/dist/lexical-proxy/react/LexicalHorizontalRuleNode.js +2 -0
  182. package/dist/lexical-proxy/react/LexicalHorizontalRuleNode.js.map +1 -0
  183. package/dist/lexical-proxy/react/LexicalHorizontalRulePlugin.d.ts +2 -0
  184. package/dist/lexical-proxy/react/LexicalHorizontalRulePlugin.d.ts.map +1 -0
  185. package/dist/lexical-proxy/react/LexicalHorizontalRulePlugin.js +2 -0
  186. package/dist/lexical-proxy/react/LexicalHorizontalRulePlugin.js.map +1 -0
  187. package/dist/lexical-proxy/react/LexicalLinkPlugin.d.ts +2 -0
  188. package/dist/lexical-proxy/react/LexicalLinkPlugin.d.ts.map +1 -0
  189. package/dist/lexical-proxy/react/LexicalLinkPlugin.js +2 -0
  190. package/dist/lexical-proxy/react/LexicalLinkPlugin.js.map +1 -0
  191. package/dist/lexical-proxy/react/LexicalListPlugin.d.ts +2 -0
  192. package/dist/lexical-proxy/react/LexicalListPlugin.d.ts.map +1 -0
  193. package/dist/lexical-proxy/react/LexicalListPlugin.js +2 -0
  194. package/dist/lexical-proxy/react/LexicalListPlugin.js.map +1 -0
  195. package/dist/lexical-proxy/react/LexicalMarkdownShortcutPlugin.d.ts +2 -0
  196. package/dist/lexical-proxy/react/LexicalMarkdownShortcutPlugin.d.ts.map +1 -0
  197. package/dist/lexical-proxy/react/LexicalMarkdownShortcutPlugin.js +2 -0
  198. package/dist/lexical-proxy/react/LexicalMarkdownShortcutPlugin.js.map +1 -0
  199. package/dist/lexical-proxy/react/LexicalNestedComposer.d.ts +2 -0
  200. package/dist/lexical-proxy/react/LexicalNestedComposer.d.ts.map +1 -0
  201. package/dist/lexical-proxy/react/LexicalNestedComposer.js +2 -0
  202. package/dist/lexical-proxy/react/LexicalNestedComposer.js.map +1 -0
  203. package/dist/lexical-proxy/react/LexicalNodeContextMenuPlugin.d.ts +2 -0
  204. package/dist/lexical-proxy/react/LexicalNodeContextMenuPlugin.d.ts.map +1 -0
  205. package/dist/lexical-proxy/react/LexicalNodeContextMenuPlugin.js +2 -0
  206. package/dist/lexical-proxy/react/LexicalNodeContextMenuPlugin.js.map +1 -0
  207. package/dist/lexical-proxy/react/LexicalNodeEventPlugin.d.ts +2 -0
  208. package/dist/lexical-proxy/react/LexicalNodeEventPlugin.d.ts.map +1 -0
  209. package/dist/lexical-proxy/react/LexicalNodeEventPlugin.js +2 -0
  210. package/dist/lexical-proxy/react/LexicalNodeEventPlugin.js.map +1 -0
  211. package/dist/lexical-proxy/react/LexicalNodeMenuPlugin.d.ts +2 -0
  212. package/dist/lexical-proxy/react/LexicalNodeMenuPlugin.d.ts.map +1 -0
  213. package/dist/lexical-proxy/react/LexicalNodeMenuPlugin.js +2 -0
  214. package/dist/lexical-proxy/react/LexicalNodeMenuPlugin.js.map +1 -0
  215. package/dist/lexical-proxy/react/LexicalOnChangePlugin.d.ts +2 -0
  216. package/dist/lexical-proxy/react/LexicalOnChangePlugin.d.ts.map +1 -0
  217. package/dist/lexical-proxy/react/LexicalOnChangePlugin.js +2 -0
  218. package/dist/lexical-proxy/react/LexicalOnChangePlugin.js.map +1 -0
  219. package/dist/lexical-proxy/react/LexicalPlainTextPlugin.d.ts +2 -0
  220. package/dist/lexical-proxy/react/LexicalPlainTextPlugin.d.ts.map +1 -0
  221. package/dist/lexical-proxy/react/LexicalPlainTextPlugin.js +2 -0
  222. package/dist/lexical-proxy/react/LexicalPlainTextPlugin.js.map +1 -0
  223. package/dist/lexical-proxy/react/LexicalRichTextPlugin.d.ts +2 -0
  224. package/dist/lexical-proxy/react/LexicalRichTextPlugin.d.ts.map +1 -0
  225. package/dist/lexical-proxy/react/LexicalRichTextPlugin.js +2 -0
  226. package/dist/lexical-proxy/react/LexicalRichTextPlugin.js.map +1 -0
  227. package/dist/lexical-proxy/react/LexicalSelectionAlwaysOnDisplay.d.ts +2 -0
  228. package/dist/lexical-proxy/react/LexicalSelectionAlwaysOnDisplay.d.ts.map +1 -0
  229. package/dist/lexical-proxy/react/LexicalSelectionAlwaysOnDisplay.js +2 -0
  230. package/dist/lexical-proxy/react/LexicalSelectionAlwaysOnDisplay.js.map +1 -0
  231. package/dist/lexical-proxy/react/LexicalTabIndentationPlugin.d.ts +2 -0
  232. package/dist/lexical-proxy/react/LexicalTabIndentationPlugin.d.ts.map +1 -0
  233. package/dist/lexical-proxy/react/LexicalTabIndentationPlugin.js +2 -0
  234. package/dist/lexical-proxy/react/LexicalTabIndentationPlugin.js.map +1 -0
  235. package/dist/lexical-proxy/react/LexicalTableOfContentsPlugin.d.ts +2 -0
  236. package/dist/lexical-proxy/react/LexicalTableOfContentsPlugin.d.ts.map +1 -0
  237. package/dist/lexical-proxy/react/LexicalTableOfContentsPlugin.js +2 -0
  238. package/dist/lexical-proxy/react/LexicalTableOfContentsPlugin.js.map +1 -0
  239. package/dist/lexical-proxy/react/LexicalTablePlugin.d.ts +2 -0
  240. package/dist/lexical-proxy/react/LexicalTablePlugin.d.ts.map +1 -0
  241. package/dist/lexical-proxy/react/LexicalTablePlugin.js +2 -0
  242. package/dist/lexical-proxy/react/LexicalTablePlugin.js.map +1 -0
  243. package/dist/lexical-proxy/react/LexicalTreeView.d.ts +2 -0
  244. package/dist/lexical-proxy/react/LexicalTreeView.d.ts.map +1 -0
  245. package/dist/lexical-proxy/react/LexicalTreeView.js +2 -0
  246. package/dist/lexical-proxy/react/LexicalTreeView.js.map +1 -0
  247. package/dist/lexical-proxy/react/LexicalTypeaheadMenuPlugin.d.ts +2 -0
  248. package/dist/lexical-proxy/react/LexicalTypeaheadMenuPlugin.d.ts.map +1 -0
  249. package/dist/lexical-proxy/react/LexicalTypeaheadMenuPlugin.js +2 -0
  250. package/dist/lexical-proxy/react/LexicalTypeaheadMenuPlugin.js.map +1 -0
  251. package/dist/lexical-proxy/react/ReactExtension.d.ts +2 -0
  252. package/dist/lexical-proxy/react/ReactExtension.d.ts.map +1 -0
  253. package/dist/lexical-proxy/react/ReactExtension.js +2 -0
  254. package/dist/lexical-proxy/react/ReactExtension.js.map +1 -0
  255. package/dist/lexical-proxy/react/ReactPluginHostExtension.d.ts +2 -0
  256. package/dist/lexical-proxy/react/ReactPluginHostExtension.d.ts.map +1 -0
  257. package/dist/lexical-proxy/react/ReactPluginHostExtension.js +2 -0
  258. package/dist/lexical-proxy/react/ReactPluginHostExtension.js.map +1 -0
  259. package/dist/lexical-proxy/react/ReactProviderExtension.d.ts +2 -0
  260. package/dist/lexical-proxy/react/ReactProviderExtension.d.ts.map +1 -0
  261. package/dist/lexical-proxy/react/ReactProviderExtension.js +2 -0
  262. package/dist/lexical-proxy/react/ReactProviderExtension.js.map +1 -0
  263. package/dist/lexical-proxy/react/TreeViewExtension.d.ts +2 -0
  264. package/dist/lexical-proxy/react/TreeViewExtension.d.ts.map +1 -0
  265. package/dist/lexical-proxy/react/TreeViewExtension.js +2 -0
  266. package/dist/lexical-proxy/react/TreeViewExtension.js.map +1 -0
  267. package/dist/lexical-proxy/react/useExtensionComponent.d.ts +2 -0
  268. package/dist/lexical-proxy/react/useExtensionComponent.d.ts.map +1 -0
  269. package/dist/lexical-proxy/react/useExtensionComponent.js +2 -0
  270. package/dist/lexical-proxy/react/useExtensionComponent.js.map +1 -0
  271. package/dist/lexical-proxy/react/useExtensionSignalValue.d.ts +2 -0
  272. package/dist/lexical-proxy/react/useExtensionSignalValue.d.ts.map +1 -0
  273. package/dist/lexical-proxy/react/useExtensionSignalValue.js +2 -0
  274. package/dist/lexical-proxy/react/useExtensionSignalValue.js.map +1 -0
  275. package/dist/lexical-proxy/react/useLexicalAriaLiveRegion.d.ts +2 -0
  276. package/dist/lexical-proxy/react/useLexicalAriaLiveRegion.d.ts.map +1 -0
  277. package/dist/lexical-proxy/react/useLexicalAriaLiveRegion.js +2 -0
  278. package/dist/lexical-proxy/react/useLexicalAriaLiveRegion.js.map +1 -0
  279. package/dist/lexical-proxy/react/useLexicalEditable.d.ts +2 -0
  280. package/dist/lexical-proxy/react/useLexicalEditable.d.ts.map +1 -0
  281. package/dist/lexical-proxy/react/useLexicalEditable.js +2 -0
  282. package/dist/lexical-proxy/react/useLexicalEditable.js.map +1 -0
  283. package/dist/lexical-proxy/react/useLexicalFocusManagerRef.d.ts +2 -0
  284. package/dist/lexical-proxy/react/useLexicalFocusManagerRef.d.ts.map +1 -0
  285. package/dist/lexical-proxy/react/useLexicalFocusManagerRef.js +2 -0
  286. package/dist/lexical-proxy/react/useLexicalFocusManagerRef.js.map +1 -0
  287. package/dist/lexical-proxy/react/useLexicalFocusTrapRef.d.ts +2 -0
  288. package/dist/lexical-proxy/react/useLexicalFocusTrapRef.d.ts.map +1 -0
  289. package/dist/lexical-proxy/react/useLexicalFocusTrapRef.js +2 -0
  290. package/dist/lexical-proxy/react/useLexicalFocusTrapRef.js.map +1 -0
  291. package/dist/lexical-proxy/react/useLexicalIsTextContentEmpty.d.ts +2 -0
  292. package/dist/lexical-proxy/react/useLexicalIsTextContentEmpty.d.ts.map +1 -0
  293. package/dist/lexical-proxy/react/useLexicalIsTextContentEmpty.js +2 -0
  294. package/dist/lexical-proxy/react/useLexicalIsTextContentEmpty.js.map +1 -0
  295. package/dist/lexical-proxy/react/useLexicalNodeSelection.d.ts +2 -0
  296. package/dist/lexical-proxy/react/useLexicalNodeSelection.d.ts.map +1 -0
  297. package/dist/lexical-proxy/react/useLexicalNodeSelection.js +2 -0
  298. package/dist/lexical-proxy/react/useLexicalNodeSelection.js.map +1 -0
  299. package/dist/lexical-proxy/react/useLexicalRovingTabIndexRef.d.ts +2 -0
  300. package/dist/lexical-proxy/react/useLexicalRovingTabIndexRef.d.ts.map +1 -0
  301. package/dist/lexical-proxy/react/useLexicalRovingTabIndexRef.js +2 -0
  302. package/dist/lexical-proxy/react/useLexicalRovingTabIndexRef.js.map +1 -0
  303. package/dist/lexical-proxy/react/useLexicalSlotRef.d.ts +2 -0
  304. package/dist/lexical-proxy/react/useLexicalSlotRef.d.ts.map +1 -0
  305. package/dist/lexical-proxy/react/useLexicalSlotRef.js +2 -0
  306. package/dist/lexical-proxy/react/useLexicalSlotRef.js.map +1 -0
  307. package/dist/lexical-proxy/react/useLexicalSubscription.d.ts +2 -0
  308. package/dist/lexical-proxy/react/useLexicalSubscription.d.ts.map +1 -0
  309. package/dist/lexical-proxy/react/useLexicalSubscription.js +2 -0
  310. package/dist/lexical-proxy/react/useLexicalSubscription.js.map +1 -0
  311. package/dist/lexical-proxy/react/useLexicalTextEntity.d.ts +2 -0
  312. package/dist/lexical-proxy/react/useLexicalTextEntity.d.ts.map +1 -0
  313. package/dist/lexical-proxy/react/useLexicalTextEntity.js +2 -0
  314. package/dist/lexical-proxy/react/useLexicalTextEntity.js.map +1 -0
  315. package/dist/lexical-proxy/rich-text.d.ts +2 -0
  316. package/dist/lexical-proxy/rich-text.d.ts.map +1 -0
  317. package/dist/lexical-proxy/rich-text.js +2 -0
  318. package/dist/lexical-proxy/rich-text.js.map +1 -0
  319. package/dist/lexical-proxy/selection.d.ts +2 -0
  320. package/dist/lexical-proxy/selection.d.ts.map +1 -0
  321. package/dist/lexical-proxy/selection.js +2 -0
  322. package/dist/lexical-proxy/selection.js.map +1 -0
  323. package/dist/lexical-proxy/utils.d.ts +2 -0
  324. package/dist/lexical-proxy/utils.d.ts.map +1 -0
  325. package/dist/lexical-proxy/utils.js +2 -0
  326. package/dist/lexical-proxy/utils.js.map +1 -0
  327. package/dist/utilities/createServerFeature.d.ts +16 -0
  328. package/dist/utilities/createServerFeature.d.ts.map +1 -0
  329. package/dist/utilities/createServerFeature.js +3 -0
  330. package/dist/utilities/createServerFeature.js.map +1 -0
  331. package/dist/utilities/editorConfigFactory.d.ts +40 -0
  332. package/dist/utilities/editorConfigFactory.d.ts.map +1 -0
  333. package/dist/utilities/editorConfigFactory.js +56 -0
  334. package/dist/utilities/editorConfigFactory.js.map +1 -0
  335. package/dist/utilities/resolveConfig.d.ts +5 -0
  336. package/dist/utilities/resolveConfig.d.ts.map +1 -0
  337. package/dist/utilities/resolveConfig.js +8 -0
  338. package/dist/utilities/resolveConfig.js.map +1 -0
  339. package/package.json +121 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 FrogBot
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @frogbotai/richtext-lexical
2
+
3
+ Lexical rich text support for FrogBot.
@@ -0,0 +1,3 @@
1
+ export type { DefaultNodeTypes, DefaultTypedEditorState, LexicalEditorNodeMap, LexicalEditorViewMap, NodeMapValue, SerializedBlockNode, SerializedInlineBlockNode, TypedEditorState, ViewMapBlockComponentProps, } from '@payloadcms/richtext-lexical';
2
+ export * from '@payloadcms/richtext-lexical/client';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/client/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EAChB,0BAA0B,GAC3B,MAAM,8BAA8B,CAAC;AACtC,cAAc,qCAAqC,CAAC"}
@@ -0,0 +1,3 @@
1
+ 'use client';
2
+ export * from '@payloadcms/richtext-lexical/client';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exports/client/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAab,cAAc,qCAAqC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/html';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/html/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/html';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exports/html/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/html-async';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/html-async/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/html-async';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exports/html-async/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/plaintext';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/plaintext/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/plaintext';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exports/plaintext/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type { DefaultNodeTypes, DefaultTypedEditorState, LexicalEditorNodeMap, LexicalEditorViewMap, NodeMapValue, SerializedBlockNode, SerializedInlineBlockNode, TypedEditorState, } from '@payloadcms/richtext-lexical';
2
+ export * from '@payloadcms/richtext-lexical/react';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/react/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,8BAA8B,CAAC;AACtC,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/react';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exports/react/index.ts"],"names":[],"mappings":"AAUA,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/ast/mdx';
2
+ //# sourceMappingURL=mdx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../../../../src/exports/server/ast/mdx.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/ast/mdx';
2
+ //# sourceMappingURL=mdx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mdx.js","sourceRoot":"","sources":["../../../../src/exports/server/ast/mdx.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/rsc';
2
+ //# sourceMappingURL=rsc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rsc.d.ts","sourceRoot":"","sources":["../../../src/exports/server/rsc.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/rsc';
2
+ //# sourceMappingURL=rsc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rsc.js","sourceRoot":"","sources":["../../../src/exports/server/rsc.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/shared';
2
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/exports/shared.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/shared';
2
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/exports/shared.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { CodeBlock as upstreamCodeBlock } from '@payloadcms/richtext-lexical';
2
+ import type { Field } from 'frogbot';
3
+ import type { Block as PayloadBlock } from 'payload';
4
+ type UpstreamCodeBlockArgs = NonNullable<Parameters<typeof upstreamCodeBlock>[0]>;
5
+ type CodeBlockConfig = Omit<PayloadBlock, 'fields'> & {
6
+ fields: Field[];
7
+ };
8
+ export type CodeBlockArgs = Omit<UpstreamCodeBlockArgs, 'fieldOverrides'> & {
9
+ fieldOverrides?: Partial<CodeBlockConfig>;
10
+ };
11
+ export declare const CodeBlock: (args?: CodeBlockArgs) => CodeBlockConfig;
12
+ export {};
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/premade/CodeBlock/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AAErD,KAAK,qBAAqB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClF,KAAK,eAAe,GAAG,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,GAAG;IAAE,MAAM,EAAE,KAAK,EAAE,CAAA;CAAE,CAAC;AAE1E,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,GAAG;IAC1E,cAAc,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,aAAa,KAAG,eA+BhD,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { CodeBlock as upstreamCodeBlock } from '@payloadcms/richtext-lexical';
2
+ export const CodeBlock = (args) => {
3
+ const { fieldOverrides, ...options } = args ?? {};
4
+ const block = upstreamCodeBlock(options);
5
+ block.admin = {
6
+ ...block.admin,
7
+ components: {
8
+ ...block.admin?.components,
9
+ Block: {
10
+ clientProps: { languages: args?.languages },
11
+ path: '@frogbotai/richtext-lexical/client#CodeBlockBlockComponent',
12
+ },
13
+ },
14
+ jsx: '@frogbotai/richtext-lexical/client#codeConverterClient',
15
+ };
16
+ block.fields.forEach((field) => {
17
+ if (!('name' in field) || field.name !== 'code' || !field.admin?.components?.Field) {
18
+ return;
19
+ }
20
+ const component = field.admin.components.Field;
21
+ const components = field.admin.components;
22
+ components.Field = {
23
+ ...(typeof component === 'object' ? component : {}),
24
+ path: '@frogbotai/richtext-lexical/client#CodeComponent',
25
+ };
26
+ });
27
+ return { ...block, ...fieldOverrides };
28
+ };
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/features/blocks/premade/CodeBlock/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAW9E,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAoB,EAAmB,EAAE;IACjE,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,IAAI,EAAE,CAAC;IAClD,MAAM,KAAK,GAAG,iBAAiB,CAAC,OAAO,CAA+B,CAAC;IAEvE,KAAK,CAAC,KAAK,GAAG;QACZ,GAAG,KAAK,CAAC,KAAK;QACd,UAAU,EAAE;YACV,GAAG,KAAK,CAAC,KAAK,EAAE,UAAU;YAC1B,KAAK,EAAE;gBACL,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC3C,IAAI,EAAE,4DAA4D;aACnE;SACF;QACD,GAAG,EAAE,wDAAwD;KAC9D,CAAC;IAEF,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QAC7B,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YACnF,OAAO;QACT,CAAC;QAED,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC;QAC/C,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,UAAqC,CAAC;QAErE,UAAU,CAAC,KAAK,GAAG;YACjB,GAAG,CAAC,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;YACnD,IAAI,EAAE,kDAAkD;SACzD,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,cAAc,EAAE,CAAC;AACzC,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { type BlocksFeatureProps as UpstreamBlocksFeatureProps, type LexicalBlockClientProps as PayloadLexicalBlockClientProps, type LexicalBlockLabelClientProps as PayloadLexicalBlockLabelClientProps, type LexicalBlockLabelServerProps as PayloadLexicalBlockLabelServerProps, type LexicalBlockServerProps as PayloadLexicalBlockServerProps, type LexicalInlineBlockClientProps as PayloadLexicalInlineBlockClientProps, type LexicalInlineBlockLabelClientProps as PayloadLexicalInlineBlockLabelClientProps, type LexicalInlineBlockLabelServerProps as PayloadLexicalInlineBlockLabelServerProps, type LexicalInlineBlockServerProps as PayloadLexicalInlineBlockServerProps } from '@payloadcms/richtext-lexical';
2
+ import type { Field, FrogbotRequest } from 'frogbot';
3
+ import type { Block, BlockSlug } from 'payload';
4
+ type BlockInput = Omit<Block, 'fields'> & {
5
+ fields: Field[];
6
+ };
7
+ export type BlocksFeatureProps = Omit<UpstreamBlocksFeatureProps, 'blocks' | 'inlineBlocks'> & {
8
+ blocks?: (BlockInput | BlockSlug)[];
9
+ inlineBlocks?: (BlockInput | BlockSlug)[];
10
+ };
11
+ export declare const BlocksFeature: (props?: BlocksFeatureProps) => import("@payloadcms/richtext-lexical").FeatureProviderServer<UpstreamBlocksFeatureProps, UpstreamBlocksFeatureProps, undefined>;
12
+ export type LexicalBlockClientProps = PayloadLexicalBlockClientProps;
13
+ export type LexicalBlockLabelClientProps = PayloadLexicalBlockLabelClientProps;
14
+ export type LexicalInlineBlockClientProps = PayloadLexicalInlineBlockClientProps;
15
+ export type LexicalInlineBlockLabelClientProps = PayloadLexicalInlineBlockLabelClientProps;
16
+ export type LexicalBlockServerProps = Omit<PayloadLexicalBlockServerProps, 'payload' | 'req'> & {
17
+ req: FrogbotRequest;
18
+ };
19
+ export type LexicalBlockLabelServerProps = Omit<PayloadLexicalBlockLabelServerProps, 'payload' | 'req'> & {
20
+ req: FrogbotRequest;
21
+ };
22
+ export type LexicalInlineBlockServerProps = Omit<PayloadLexicalInlineBlockServerProps, 'payload' | 'req'> & {
23
+ req: FrogbotRequest;
24
+ };
25
+ export type LexicalInlineBlockLabelServerProps = Omit<PayloadLexicalInlineBlockLabelServerProps, 'payload' | 'req'> & {
26
+ req: FrogbotRequest;
27
+ };
28
+ export {};
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/blocks/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,IAAI,0BAA0B,EACrD,KAAK,uBAAuB,IAAI,8BAA8B,EAC9D,KAAK,4BAA4B,IAAI,mCAAmC,EACxE,KAAK,4BAA4B,IAAI,mCAAmC,EACxE,KAAK,uBAAuB,IAAI,8BAA8B,EAC9D,KAAK,6BAA6B,IAAI,oCAAoC,EAC1E,KAAK,kCAAkC,IAAI,yCAAyC,EACpF,KAAK,kCAAkC,IAAI,yCAAyC,EACpF,KAAK,6BAA6B,IAAI,oCAAoC,EAC3E,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MA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ks(blocks) {
3
+ return blocks?.map((block) => {
4
+ if (typeof block === 'string')
5
+ return block;
6
+ return {
7
+ ...block,
8
+ fields: block.fields,
9
+ };
10
+ });
11
+ }
12
+ export const BlocksFeature = (props) => upstreamBlocksFeature({
13
+ ...props,
14
+ blocks: adaptBlocks(props?.blocks),
15
+ inlineBlocks: adaptBlocks(props?.inlineBlocks),
16
+ });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/blocks/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,IAAI,qBAAqB,GAUvC,MAAM,8BAA8B,CAAC;AAYtC,SAAS,WAAW,CAAC,MAAoC;IACvD,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC3B,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QAE5C,OAAO;YACL,GAAG,KAAK;YACR,MAAM,EAAE,KAAK,CAAC,MAAuB;SACtC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAA0B,EAAE,EAAE,CAC1D,qBAAqB,CAAC;IACpB,GAAG,KAAK;IACR,MAAM,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC;IAClC,YAAY,EAAE,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC;CAC/C,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type lexicalHTMLField as upstreamLexicalHTMLField } from '@payloadcms/richtext-lexical';
2
+ import type { Field } from 'frogbot';
3
+ type Args = Parameters<typeof upstreamLexicalHTMLField>[0];
4
+ export declare function lexicalHTMLField(args: Args): Field;
5
+ export {};
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/async/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAGjG,OAAO,KAAK,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAC;AAKpD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;AAQ3D,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,KAAK,CAkDlD"}
@@ -0,0 +1,42 @@
1
+ import { convertLexicalToHTMLAsync } from '@payloadcms/richtext-lexical/html-async';
2
+ import { resolveConfig } from '../../../../../utilities/resolveConfig.js';
3
+ import { getFrogbotPopulateFn } from '../../../utilities/frogbotPopulateFn.js';
4
+ export function lexicalHTMLField(args) {
5
+ const { converters, hidden = true, htmlFieldName, lexicalFieldName, storeInDB = false } = args;
6
+ const afterRead = async ({ currentDepth, depth, draft, overrideAccess, req, showHiddenFields, siblingData, }) => {
7
+ const data = siblingData[lexicalFieldName];
8
+ if (!data)
9
+ return '';
10
+ const resolvedDepth = depth ?? (await resolveConfig(req.frogbot.config)).defaultDepth;
11
+ const populate = await getFrogbotPopulateFn({
12
+ currentDepth: currentDepth ?? 0,
13
+ depth: resolvedDepth,
14
+ draft: draft ?? false,
15
+ overrideAccess: overrideAccess ?? false,
16
+ req,
17
+ showHiddenFields: showHiddenFields ?? false,
18
+ });
19
+ return convertLexicalToHTMLAsync({
20
+ className: 'frogbot-richtext',
21
+ converters,
22
+ data,
23
+ populate,
24
+ });
25
+ };
26
+ const field = {
27
+ name: htmlFieldName,
28
+ type: 'code',
29
+ admin: { editorOptions: { language: 'html' }, hidden },
30
+ hooks: { afterRead: [afterRead] },
31
+ };
32
+ if (!storeInDB) {
33
+ field.hooks.beforeChange = [
34
+ ({ siblingData }) => {
35
+ delete siblingData[htmlFieldName];
36
+ return null;
37
+ },
38
+ ];
39
+ }
40
+ return field;
41
+ }
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/async/field/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAIpF,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAU/E,MAAM,UAAU,gBAAgB,CAAC,IAAU;IACzC,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,EAAE,aAAa,EAAE,gBAAgB,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC;IAC/F,MAAM,SAAS,GAAG,KAAK,EAAE,EACvB,YAAY,EACZ,KAAK,EACL,KAAK,EACL,cAAc,EACd,GAAG,EACH,gBAAgB,EAChB,WAAW,GACG,EAAE,EAAE;QAClB,MAAM,IAAI,GAAG,WAAW,CAAC,gBAAgB,CAAsC,CAAC;QAEhF,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QAErB,MAAM,aAAa,GAAG,KAAK,IAAI,CAAC,MAAM,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC;QACtF,MAAM,QAAQ,GAAG,MAAM,oBAAoB,CAAC;YAC1C,YAAY,EAAE,YAAY,IAAI,CAAC;YAC/B,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,KAAK,IAAI,KAAK;YACrB,cAAc,EAAE,cAAc,IAAI,KAAK;YACvC,GAAG;YACH,gBAAgB,EAAE,gBAAgB,IAAI,KAAK;SAC5C,CAAC,CAAC;QAEH,OAAO,yBAAyB,CAAC;YAC/B,SAAS,EAAE,kBAAkB;YAC7B,UAAU;YACV,IAAI;YACJ,QAAQ;SACT,CAAC,CAAC;IACL,CAAC,CAAC;IACF,MAAM,KAAK,GAAU;QACnB,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE;QACtD,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE;KAClC,CAAC;IAEF,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,KAAK,CAAC,KAAM,CAAC,YAAY,GAAG;YAC1B,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;gBAClB,OAAO,WAAW,CAAC,aAAa,CAAC,CAAC;gBAElC,OAAO,IAAI,CAAC;YACd,CAAC;SACF,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { getPayloadPopulateFn } from '@payloadcms/richtext-lexical';
2
+ import type { Frogbot, FrogbotRequest } from 'frogbot';
3
+ type PopulateFn = Awaited<ReturnType<typeof getPayloadPopulateFn>>;
4
+ type CommonArgs = Omit<Parameters<typeof getPayloadPopulateFn>[0], 'payload' | 'req'>;
5
+ type Args = CommonArgs & ({
6
+ frogbot: Frogbot;
7
+ req?: never;
8
+ } | {
9
+ frogbot?: never;
10
+ req: FrogbotRequest;
11
+ });
12
+ export declare function getFrogbotPopulateFn(args: Args): Promise<PopulateFn>;
13
+ export {};
14
+ //# sourceMappingURL=frogbotPopulateFn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frogbotPopulateFn.d.ts","sourceRoot":"","sources":["../../../../src/features/converters/utilities/frogbotPopulateFn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGvD,KAAK,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC;AACnE,KAAK,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC,CAAC;AACtF,KAAK,IAAI,GAAG,UAAU,GACpB,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,cAAc,CAAA;CAAE,CAAC,CAAC;AAGjF,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAmB1E"}
@@ -0,0 +1,16 @@
1
+ import { getPayloadPopulateFn } from '@payloadcms/richtext-lexical';
2
+ export async function getFrogbotPopulateFn(args) {
3
+ const hasFrogbot = args.frogbot !== undefined;
4
+ const hasRequest = args.req !== undefined;
5
+ if (hasFrogbot === hasRequest) {
6
+ throw new Error('FrogBot rich text population requires exactly one of frogbot or req.');
7
+ }
8
+ const req = args.req ??
9
+ (await args.frogbot.createRequest(args.locale === undefined ? undefined : { locale: args.locale }));
10
+ const { frogbot: _frogbot, ...options } = args;
11
+ return getPayloadPopulateFn({
12
+ ...options,
13
+ req: req,
14
+ });
15
+ }
16
+ //# sourceMappingURL=frogbotPopulateFn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frogbotPopulateFn.js","sourceRoot":"","sources":["../../../../src/features/converters/utilities/frogbotPopulateFn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAUpE,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,IAAU;IACnD,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC;IAC9C,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,KAAK,SAAS,CAAC;IAE1C,IAAI,UAAU,KAAK,UAAU,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;IAC1F,CAAC;IAED,MAAM,GAAG,GACP,IAAI,CAAC,GAAG;QACR,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,aAAa,CAC/B,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAChE,CAAC,CAAC;IACL,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC;IAE/C,OAAO,oBAAoB,CAAC;QAC1B,GAAG,OAAO;QACV,GAAG,EAAE,GAAqB;KAC3B,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { LexicalNode, SerializedLexicalNode } from '@payloadcms/richtext-lexical/lexical';
2
+ import type { ExtractSerializedNode, NodeWithHooks } from './typesServer.js';
3
+ export declare function createNode<TNode extends LexicalNode, TSerializedNode extends SerializedLexicalNode = ExtractSerializedNode<TNode>>(node: NodeWithHooks<TNode, TSerializedNode>): NodeWithHooks<TNode, TSerializedNode>;
4
+ //# sourceMappingURL=typeUtilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeUtilities.d.ts","sourceRoot":"","sources":["../../src/features/typeUtilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAE/F,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE7E,wBAAgB,UAAU,CACxB,KAAK,SAAS,WAAW,EACzB,eAAe,SAAS,qBAAqB,GAAG,qBAAqB,CAAC,KAAK,CAAC,EAC5E,IAAI,EAAE,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC,GAAG,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC,CAEpF"}
@@ -0,0 +1,4 @@
1
+ export function createNode(node) {
2
+ return node;
3
+ }
4
+ //# sourceMappingURL=typeUtilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeUtilities.js","sourceRoot":"","sources":["../../src/features/typeUtilities.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,UAAU,CAGxB,IAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,50 @@
1
+ import type { AfterChangeNodeHook as PayloadAfterChangeNodeHook, AfterReadNodeHook as PayloadAfterReadNodeHook, BeforeChangeNodeHook as PayloadBeforeChangeNodeHook, BeforeValidateNodeHook as PayloadBeforeValidateNodeHook, FeatureProviderProviderServer, FeatureProviderServer, HTMLConverter as PayloadHTMLConverter, NodeValidation as PayloadNodeValidation, PopulationPromise as PayloadPopulationPromise, ResolvedServerFeatureMap, ServerFeature as PayloadServerFeature, ServerFeatureProviderMap } from '@payloadcms/richtext-lexical';
2
+ import type { Klass, LexicalNode, LexicalNodeReplacement, SerializedLexicalNode } from '@payloadcms/richtext-lexical/lexical';
3
+ import type { Field, FrogbotRequest } from 'frogbot';
4
+ import type { JsonObject } from 'payload';
5
+ export type ExtractSerializedNode<TNode extends LexicalNode> = ReturnType<TNode['exportJSON']>;
6
+ type WithNode<TArgs, TNode extends SerializedLexicalNode> = Omit<TArgs, 'node' | 'req'> & {
7
+ node: TNode;
8
+ req: FrogbotRequest;
9
+ };
10
+ type NodeHook<THook, TNode extends SerializedLexicalNode> = (args: WithNode<Parameters<Extract<THook, (args: never) => unknown>>[0], TNode>) => ReturnType<Extract<THook, (args: never) => unknown>>;
11
+ export type PopulationPromise<TNode extends SerializedLexicalNode = SerializedLexicalNode> = (args: WithNode<Parameters<PayloadPopulationPromise<TNode>>[0], TNode>) => void;
12
+ export type NodeValidation<TNode extends SerializedLexicalNode = SerializedLexicalNode> = (args: Omit<Parameters<PayloadNodeValidation<TNode>>[0], 'node'> & {
13
+ node: TNode;
14
+ }) => ReturnType<PayloadNodeValidation<TNode>>;
15
+ export type HTMLConverter<TNode extends SerializedLexicalNode = SerializedLexicalNode> = Omit<PayloadHTMLConverter<TNode>, 'converter'> & {
16
+ converter: (args: Omit<Parameters<PayloadHTMLConverter<TNode>['converter']>[0], 'node' | 'req'> & {
17
+ node: TNode;
18
+ req: FrogbotRequest | null | undefined;
19
+ }) => ReturnType<PayloadHTMLConverter<TNode>['converter']>;
20
+ };
21
+ export type NodeWithHooks<TNode extends LexicalNode = LexicalNode, TSerializedNode extends SerializedLexicalNode = ExtractSerializedNode<TNode>> = {
22
+ converters?: {
23
+ html?: HTMLConverter<TSerializedNode>;
24
+ };
25
+ getSubFields?: (args: {
26
+ node?: TSerializedNode;
27
+ req?: FrogbotRequest;
28
+ }) => Field[] | null;
29
+ getSubFieldsData?: (args: {
30
+ node: TSerializedNode;
31
+ req: FrogbotRequest;
32
+ }) => JsonObject;
33
+ graphQLPopulationPromises?: PopulationPromise<TSerializedNode>[];
34
+ hooks?: {
35
+ afterChange?: NodeHook<PayloadAfterChangeNodeHook<TSerializedNode>, TSerializedNode>[];
36
+ afterRead?: NodeHook<PayloadAfterReadNodeHook<TSerializedNode>, TSerializedNode>[];
37
+ beforeChange?: NodeHook<PayloadBeforeChangeNodeHook<TSerializedNode>, TSerializedNode>[];
38
+ beforeValidate?: NodeHook<PayloadBeforeValidateNodeHook<TSerializedNode>, TSerializedNode>[];
39
+ };
40
+ node: Klass<TNode> | LexicalNodeReplacement | (new (...args: never[]) => TNode);
41
+ validations?: NodeValidation<TSerializedNode>[];
42
+ };
43
+ type ServerNodeRegistration = Omit<NodeWithHooks<any, any>, 'node'> & {
44
+ node: LexicalNodeReplacement | (new (...args: never[]) => unknown);
45
+ };
46
+ export type ServerFeature<ServerProps, ClientFeatureProps> = Omit<PayloadServerFeature<ServerProps, ClientFeatureProps>, 'nodes'> & {
47
+ nodes?: ServerNodeRegistration[];
48
+ };
49
+ export type { FeatureProviderProviderServer, FeatureProviderServer, ResolvedServerFeatureMap, ServerFeatureProviderMap, };
50
+ //# sourceMappingURL=typesServer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typesServer.d.ts","sourceRoot":"","sources":["../../src/features/typesServer.ts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C;CAClC,CAAC;AAEF,YAAY,EACV,6BAA6B,EAC7B,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,GACzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=typesServer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typesServer.js","sourceRoot":"","sources":["../../src/features/typesServer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export { CodeBlock, type CodeBlockArgs } from './features/blocks/premade/CodeBlock/index.js';
2
+ export { BlocksFeature, type BlocksFeatureProps, type LexicalBlockClientProps, type LexicalBlockLabelClientProps, type LexicalBlockLabelServerProps, type LexicalBlockServerProps, type LexicalInlineBlockClientProps, type LexicalInlineBlockLabelClientProps, type LexicalInlineBlockLabelServerProps, type LexicalInlineBlockServerProps, } from './features/blocks/server/index.js';
3
+ export { lexicalHTMLField } from './features/converters/lexicalToHtml/async/field/index.js';
4
+ export { getFrogbotPopulateFn } from './features/converters/utilities/frogbotPopulateFn.js';
5
+ export type { ExtractSerializedNode, HTMLConverter, NodeValidation, NodeWithHooks, PopulationPromise, ServerFeature, } from './features/typesServer.js';
6
+ export { createNode } from './features/typeUtilities.js';
7
+ export { createServerFeature, type CreateServerFeatureArgs, } from './utilities/createServerFeature.js';
8
+ export { editorConfigFactory } from './utilities/editorConfigFactory.js';
9
+ export * from '@payloadcms/richtext-lexical';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EACvC,KAAK,6BAA6B,GACnC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,YAAY,EACV,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,aAAa,GACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EACL,mBAAmB,EACnB,KAAK,uBAAuB,GAC7B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,cAAc,8BAA8B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ export { CodeBlock } from './features/blocks/premade/CodeBlock/index.js';
2
+ export { BlocksFeature, } from './features/blocks/server/index.js';
3
+ export { lexicalHTMLField } from './features/converters/lexicalToHtml/async/field/index.js';
4
+ export { getFrogbotPopulateFn } from './features/converters/utilities/frogbotPopulateFn.js';
5
+ export { createNode } from './features/typeUtilities.js';
6
+ export { createServerFeature, } from './utilities/createServerFeature.js';
7
+ export { editorConfigFactory } from './utilities/editorConfigFactory.js';
8
+ export * from '@payloadcms/richtext-lexical';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EACL,aAAa,GAUd,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAS5F,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EACL,mBAAmB,GAEpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/lexical/headless';
2
+ //# sourceMappingURL=headless.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"headless.d.ts","sourceRoot":"","sources":["../../src/lexical-proxy/headless.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/lexical/headless';
2
+ //# sourceMappingURL=headless.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"headless.js","sourceRoot":"","sources":["../../src/lexical-proxy/headless.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/lexical/html';
2
+ //# sourceMappingURL=html.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../src/lexical-proxy/html.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/lexical/html';
2
+ //# sourceMappingURL=html.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.js","sourceRoot":"","sources":["../../src/lexical-proxy/html.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/lexical';
2
+ //# sourceMappingURL=lexical.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lexical.d.ts","sourceRoot":"","sources":["../../src/lexical-proxy/lexical.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/lexical';
2
+ //# sourceMappingURL=lexical.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lexical.js","sourceRoot":"","sources":["../../src/lexical-proxy/lexical.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/lexical/link';
2
+ //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/lexical-proxy/link.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/lexical/link';
2
+ //# sourceMappingURL=link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/lexical-proxy/link.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/lexical/list';
2
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/lexical-proxy/list.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/lexical/list';
2
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../src/lexical-proxy/list.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/lexical/mark';
2
+ //# sourceMappingURL=mark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mark.d.ts","sourceRoot":"","sources":["../../src/lexical-proxy/mark.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@payloadcms/richtext-lexical/lexical/mark';
2
+ //# sourceMappingURL=mark.js.map