@lobehub/editor 4.21.0 → 4.23.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 (303) hide show
  1. package/README.md +16 -15
  2. package/es/_virtual/_rolldown/runtime.js +8 -1
  3. package/es/codemirror/components/CopyButton.d.ts +0 -1
  4. package/es/codemirror/components/LanguageSelect.d.ts +0 -1
  5. package/es/codemirror/components/MoreOptions.d.ts +0 -1
  6. package/es/codemirror/components/Toolbar.d.ts +0 -1
  7. package/es/codemirror/constants.d.ts +0 -1
  8. package/es/codemirror/types.d.ts +0 -1
  9. package/es/common/sys.js +1 -1
  10. package/es/editor-kernel/data-source.d.ts +1 -2
  11. package/es/editor-kernel/event.d.ts +1 -3
  12. package/es/editor-kernel/index.d.ts +3 -2
  13. package/es/editor-kernel/index.js +4 -4
  14. package/es/editor-kernel/inode/i-element-node.d.ts +0 -1
  15. package/es/editor-kernel/inode/i-node.d.ts +0 -1
  16. package/es/editor-kernel/inode/index.d.ts +3 -1
  17. package/es/editor-kernel/inode/paragraph-node.d.ts +1 -1
  18. package/es/editor-kernel/inode/root-node.d.ts +0 -1
  19. package/es/editor-kernel/inode/text-node.d.ts +0 -1
  20. package/es/editor-kernel/kernel.d.ts +1 -2
  21. package/es/editor-kernel/react/LexicalErrorBoundary.d.ts +2 -6
  22. package/es/editor-kernel/react/PortalContainer.d.ts +7 -3
  23. package/es/editor-kernel/react/PortalContainer.js +4 -4
  24. package/es/editor-kernel/react/index.d.ts +2 -1
  25. package/es/editor-kernel/react/react-context.d.ts +3 -2
  26. package/es/editor-kernel/react/react-editor.d.ts +2 -2
  27. package/es/editor-kernel/react/useDecorators.js +3 -2
  28. package/es/editor-kernel/react/useLexicalEditor.d.ts +0 -1
  29. package/es/editor-kernel/react/useLexicalEditor.js +1 -1
  30. package/es/editor-kernel/utils.d.ts +2 -3
  31. package/es/headless/extract-media-from-editor-state.d.ts +0 -1
  32. package/es/headless/extract-media-from-editor-state.js +1 -1
  33. package/es/headless/index.d.ts +3 -2
  34. package/es/headless/index.js +4 -3
  35. package/es/headless.d.ts +2 -3
  36. package/es/headless.js +20 -41
  37. package/es/index.d.ts +45 -21
  38. package/es/index.js +6 -6
  39. package/es/locale/index.d.ts +1 -1
  40. package/es/node_modules/.pnpm/@types_mdast@4.0.4/node_modules/@types/mdast/index.d.ts +1 -2
  41. package/es/node_modules/.pnpm/@types_unist@3.0.3/node_modules/@types/unist/index.d.ts +1 -1
  42. package/es/plugins/auto-complete/index.d.ts +3 -1
  43. package/es/plugins/auto-complete/node/placeholderNode.js +1 -1
  44. package/es/plugins/auto-complete/plugin/index.d.ts +2 -1
  45. package/es/plugins/auto-complete/react/ReactAutoCompletePlugin.d.ts +1 -2
  46. package/es/plugins/auto-complete/react/index.d.ts +2 -1
  47. package/es/plugins/auto-complete/react/type.d.ts +1 -0
  48. package/es/plugins/block/command/index.d.ts +1 -3
  49. package/es/plugins/block/index.d.ts +5 -2
  50. package/es/plugins/block/plugin/index.d.ts +1 -0
  51. package/es/plugins/block/react/ReactBlockPlugin.d.ts +3 -2
  52. package/es/plugins/block/react/ReactBlockPlugin.js +5 -3
  53. package/es/plugins/block/react/core/types.d.ts +0 -1
  54. package/es/plugins/block/react/index.d.ts +3 -2
  55. package/es/plugins/block/service/i-block-menu-service.d.ts +1 -1
  56. package/es/plugins/block/service/i-block-menu-service.js +2 -1
  57. package/es/plugins/block/service/index.d.ts +2 -1
  58. package/es/plugins/code/command/index.d.ts +1 -3
  59. package/es/plugins/code/index.d.ts +3 -1
  60. package/es/plugins/code/plugin/index.d.ts +2 -1
  61. package/es/plugins/code/react/CodeReactPlugin.d.ts +1 -2
  62. package/es/plugins/code/react/index.d.ts +2 -1
  63. package/es/plugins/codeblock/command/index.d.ts +3 -1
  64. package/es/plugins/codeblock/command/index.js +1 -1
  65. package/es/plugins/codeblock/command/symbols.d.ts +1 -3
  66. package/es/plugins/codeblock/index.d.ts +3 -1
  67. package/es/plugins/codeblock/index.js +4 -4
  68. package/es/plugins/codeblock/plugin/index.d.ts +1 -0
  69. package/es/plugins/codeblock/react/ReactCodeblockPlugin.d.ts +1 -2
  70. package/es/plugins/codeblock/react/ReactCodeblockPlugin.js +1 -1
  71. package/es/plugins/codeblock/react/index.d.ts +2 -1
  72. package/es/plugins/codeblock/react/style.js +0 -1
  73. package/es/plugins/codeblock/react/type.d.ts +1 -0
  74. package/es/plugins/codemirror-block/command/index.d.ts +3 -5
  75. package/es/plugins/codemirror-block/index.d.ts +3 -1
  76. package/es/plugins/codemirror-block/node/CodeMirrorNode.d.ts +1 -2
  77. package/es/plugins/codemirror-block/plugin/index.d.ts +1 -1
  78. package/es/plugins/codemirror-block/react/ReactCodemirrorNode.d.ts +1 -2
  79. package/es/plugins/codemirror-block/react/index.d.ts +2 -1
  80. package/es/plugins/collaboration/index.d.ts +3 -1
  81. package/es/plugins/collaboration/react/ReactCollaborationPlugin.d.ts +1 -2
  82. package/es/plugins/collaboration/react/ReactCollaborationPlugin.js +1 -1
  83. package/es/plugins/collaboration/react/index.d.ts +2 -1
  84. package/es/plugins/collaboration/react/type.d.ts +0 -1
  85. package/es/plugins/collaboration/utils.d.ts +0 -1
  86. package/es/plugins/collaboration/utils.js +1 -1
  87. package/es/plugins/common/command/index.d.ts +2 -4
  88. package/es/plugins/common/data-source/json-data-source.js +1 -1
  89. package/es/plugins/common/index.d.ts +4 -2
  90. package/es/plugins/common/node/cursor.d.ts +1 -2
  91. package/es/plugins/common/plugin/index.d.ts +1 -1
  92. package/es/plugins/common/plugin/index.js +2 -1
  93. package/es/plugins/common/plugin/paste-handler.d.ts +0 -1
  94. package/es/plugins/common/plugin/register.js +4 -3
  95. package/es/plugins/common/react/Placeholder/index.js +2 -1
  96. package/es/plugins/common/react/ReactEditorContent.d.ts +1 -2
  97. package/es/plugins/common/react/ReactPlainText.d.ts +2 -4
  98. package/es/plugins/common/react/index.d.ts +3 -2
  99. package/es/plugins/common/react/type.d.ts +2 -1
  100. package/es/plugins/common/utils/index.js +1 -1
  101. package/es/plugins/content-blocks/data-source/content-blocks-data-source.d.ts +2 -2
  102. package/es/plugins/content-blocks/index.d.ts +2 -1
  103. package/es/plugins/content-blocks/plugin/index.d.ts +1 -1
  104. package/es/plugins/content-blocks/types.d.ts +1 -2
  105. package/es/plugins/content-blocks/utils/extract-media-lists.d.ts +0 -1
  106. package/es/plugins/content-blocks/utils/extract.d.ts +0 -1
  107. package/es/plugins/content-blocks/utils/extract.js +2 -2
  108. package/es/plugins/file/command/index.d.ts +1 -3
  109. package/es/plugins/file/index.d.ts +3 -1
  110. package/es/plugins/file/node/FileNode.d.ts +1 -2
  111. package/es/plugins/file/plugin/index.d.ts +1 -1
  112. package/es/plugins/file/react/ReactFilePlugin.d.ts +1 -2
  113. package/es/plugins/file/react/index.d.ts +2 -1
  114. package/es/plugins/file/react/type.d.ts +1 -1
  115. package/es/plugins/hr/command/index.d.ts +1 -3
  116. package/es/plugins/hr/index.d.ts +3 -1
  117. package/es/plugins/hr/node/HorizontalRuleNode.d.ts +1 -2
  118. package/es/plugins/hr/plugin/index.d.ts +1 -1
  119. package/es/plugins/hr/react/ReactHRPlugin.d.ts +1 -2
  120. package/es/plugins/hr/react/index.d.ts +2 -1
  121. package/es/plugins/image/command/index.d.ts +1 -3
  122. package/es/plugins/image/index.d.ts +3 -1
  123. package/es/plugins/image/node/basie-image-node.d.ts +0 -1
  124. package/es/plugins/image/node/block-image-node.d.ts +0 -1
  125. package/es/plugins/image/node/image-node.d.ts +0 -1
  126. package/es/plugins/image/plugin/index.d.ts +1 -1
  127. package/es/plugins/image/react/ReactImagePlugin.d.ts +1 -2
  128. package/es/plugins/image/react/components/Image.js +4 -2
  129. package/es/plugins/image/react/components/style.js +3 -3
  130. package/es/plugins/image/react/components/useSupenseImage.js +1 -1
  131. package/es/plugins/image/react/index.d.ts +2 -1
  132. package/es/plugins/inode/index.d.ts +2 -1
  133. package/es/plugins/inode/plugin/index.d.ts +1 -0
  134. package/es/plugins/inode/react/index.d.ts +1 -2
  135. package/es/plugins/inode/react/index.js +1 -1
  136. package/es/plugins/inode/service/index.d.ts +2 -0
  137. package/es/plugins/inode/service/index.js +2 -1
  138. package/es/plugins/link/command/index.d.ts +1 -3
  139. package/es/plugins/link/index.d.ts +3 -1
  140. package/es/plugins/link/node/LinkNode.d.ts +0 -1
  141. package/es/plugins/link/node/LinkNode.js +2 -2
  142. package/es/plugins/link/plugin/index.d.ts +1 -1
  143. package/es/plugins/link/plugin/registry.js +2 -1
  144. package/es/plugins/link/react/ReactLinkPlugin.d.ts +1 -2
  145. package/es/plugins/link/react/ReactLinkPlugin.js +1 -1
  146. package/es/plugins/link/react/index.d.ts +2 -1
  147. package/es/plugins/link/react/type.d.ts +0 -1
  148. package/es/plugins/link/service/i-link-service.d.ts +1 -1
  149. package/es/plugins/link/service/i-link-service.js +2 -1
  150. package/es/plugins/link/utils/index.js +1 -1
  151. package/es/plugins/link-highlight/command/index.d.ts +1 -3
  152. package/es/plugins/link-highlight/index.d.ts +3 -1
  153. package/es/plugins/link-highlight/plugin/index.d.ts +1 -0
  154. package/es/plugins/link-highlight/react/ReactLinkHighlightPlugin.d.ts +1 -2
  155. package/es/plugins/link-highlight/react/index.d.ts +2 -1
  156. package/es/plugins/list/command/index.d.ts +1 -1
  157. package/es/plugins/list/command/index.js +2 -2
  158. package/es/plugins/list/index.d.ts +3 -1
  159. package/es/plugins/list/plugin/checkList.d.ts +0 -1
  160. package/es/plugins/list/plugin/checkList.js +0 -7
  161. package/es/plugins/list/plugin/index.d.ts +1 -0
  162. package/es/plugins/list/react/ReactListPlugin.d.ts +1 -2
  163. package/es/plugins/list/react/index.d.ts +2 -1
  164. package/es/plugins/list/react/style.js +1 -1
  165. package/es/plugins/litexml/command/diffCommand.d.ts +2 -1
  166. package/es/plugins/litexml/command/diffCommand.js +2 -2
  167. package/es/plugins/litexml/command/index.d.ts +3 -1
  168. package/es/plugins/litexml/command/index.js +3 -2
  169. package/es/plugins/litexml/command/symbols.d.ts +6 -8
  170. package/es/plugins/litexml/data-source/litexml-data-source.d.ts +4 -3
  171. package/es/plugins/litexml/data-source/litexml-data-source.js +4 -2
  172. package/es/plugins/litexml/index.d.ts +5 -2
  173. package/es/plugins/litexml/node/DiffNode.d.ts +1 -2
  174. package/es/plugins/litexml/plugin/index.d.ts +1 -1
  175. package/es/plugins/litexml/react/DiffNodeToolbar/index.js +1 -1
  176. package/es/plugins/litexml/react/hooks/useHasDiffNode.d.ts +1 -0
  177. package/es/plugins/litexml/react/index.d.ts +1 -2
  178. package/es/plugins/litexml/react/index.js +1 -1
  179. package/es/plugins/litexml/service/litexml-service.d.ts +3 -3
  180. package/es/plugins/litexml/service/litexml-service.js +2 -1
  181. package/es/plugins/markdown/command/index.d.ts +4 -4
  182. package/es/plugins/markdown/data-source/markdown/parse.d.ts +3 -3
  183. package/es/plugins/markdown/data-source/markdown/parse.js +2 -2
  184. package/es/plugins/markdown/data-source/markdown-data-source.js +1 -1
  185. package/es/plugins/markdown/index.d.ts +3 -2
  186. package/es/plugins/markdown/plugin/index.d.ts +2 -1
  187. package/es/plugins/markdown/react/index.d.ts +1 -2
  188. package/es/plugins/markdown/service/shortcut.d.ts +2 -2
  189. package/es/plugins/markdown/service/shortcut.js +2 -1
  190. package/es/plugins/markdown/service/transformers.d.ts +1 -3
  191. package/es/plugins/markdown/utils/index.d.ts +1 -1
  192. package/es/plugins/markdown/utils/index.js +1 -1
  193. package/es/plugins/math/command/index.d.ts +1 -3
  194. package/es/plugins/math/index.d.ts +2 -1
  195. package/es/plugins/math/node/index.d.ts +1 -2
  196. package/es/plugins/math/node/index.js +3 -2
  197. package/es/plugins/math/plugin/index.d.ts +2 -2
  198. package/es/plugins/math/react/components/MathEditorContent.js +2 -1
  199. package/es/plugins/math/react/components/MathInline.js +2 -2
  200. package/es/plugins/math/react/index.d.ts +0 -1
  201. package/es/plugins/math/react/type.d.ts +0 -1
  202. package/es/plugins/mention/command/index.d.ts +1 -3
  203. package/es/plugins/mention/index.d.ts +3 -1
  204. package/es/plugins/mention/node/MentionNode.d.ts +0 -1
  205. package/es/plugins/mention/plugin/index.d.ts +2 -1
  206. package/es/plugins/mention/react/ReactMentionPlugin.d.ts +1 -2
  207. package/es/plugins/mention/react/index.d.ts +2 -1
  208. package/es/plugins/mention/react/type.d.ts +0 -1
  209. package/es/plugins/slash/index.d.ts +5 -3
  210. package/es/plugins/slash/plugin/index.d.ts +1 -1
  211. package/es/plugins/slash/react/ReactSlashOption.d.ts +1 -2
  212. package/es/plugins/slash/react/ReactSlashPlugin.d.ts +1 -2
  213. package/es/plugins/slash/react/ReactSlashPlugin.js +2 -1
  214. package/es/plugins/slash/react/components/SlashMenu.d.ts +1 -2
  215. package/es/plugins/slash/react/index.d.ts +4 -3
  216. package/es/plugins/slash/react/type.d.ts +2 -1
  217. package/es/plugins/slash/service/i-slash-service.d.ts +2 -1
  218. package/es/plugins/slash/service/i-slash-service.js +2 -1
  219. package/es/plugins/slash/utils/utils.js +1 -1
  220. package/es/plugins/table/command/index.d.ts +4 -6
  221. package/es/plugins/table/command/index.js +4 -4
  222. package/es/plugins/table/index.d.ts +3 -1
  223. package/es/plugins/table/node/index.js +2 -1
  224. package/es/plugins/table/plugin/index.d.ts +1 -1
  225. package/es/plugins/table/plugin/index.js +1 -2
  226. package/es/plugins/table/react/TableActionMenu/index.js +0 -7
  227. package/es/plugins/table/react/TableColController.js +2 -2
  228. package/es/plugins/table/react/TableController/hooks.js +3 -2
  229. package/es/plugins/table/react/TableHoverActions/utils.js +1 -1
  230. package/es/plugins/table/react/TableResize/index.js +1 -1
  231. package/es/plugins/table/react/TableRowController.js +1 -1
  232. package/es/plugins/table/react/hooks.js +0 -7
  233. package/es/plugins/table/react/index.d.ts +0 -1
  234. package/es/plugins/table/react/index.js +1 -1
  235. package/es/plugins/table/react/type.d.ts +2 -1
  236. package/es/plugins/table/service/i-table-controller-menu-service.d.ts +1 -1
  237. package/es/plugins/table/service/i-table-controller-menu-service.js +2 -1
  238. package/es/plugins/table/service/index.d.ts +2 -1
  239. package/es/plugins/table/utils/index.js +1 -1
  240. package/es/plugins/toolbar/command/index.d.ts +0 -1
  241. package/es/plugins/toolbar/index.d.ts +2 -1
  242. package/es/plugins/toolbar/react/index.d.ts +0 -1
  243. package/es/plugins/toolbar/react/type.d.ts +0 -1
  244. package/es/plugins/upload/index.d.ts +2 -1
  245. package/es/plugins/upload/plugin/index.d.ts +1 -0
  246. package/es/plugins/upload/service/i-upload-service.d.ts +2 -1
  247. package/es/plugins/upload/service/i-upload-service.js +2 -1
  248. package/es/plugins/virtual-block/index.d.ts +3 -1
  249. package/es/plugins/virtual-block/plugin/index.d.ts +1 -0
  250. package/es/plugins/virtual-block/plugin/register.js +3 -2
  251. package/es/plugins/virtual-block/react/ReactVirtualBlock.d.ts +1 -2
  252. package/es/plugins/virtual-block/react/index.d.ts +2 -1
  253. package/es/react/ChatInput/ChatInput.d.ts +1 -2
  254. package/es/react/ChatInput/ChatInput.js +2 -1
  255. package/es/react/ChatInput/index.d.ts +2 -1
  256. package/es/react/ChatInput/type.d.ts +0 -1
  257. package/es/react/ChatInputActionBar/ChatInputActionBar.d.ts +1 -2
  258. package/es/react/ChatInputActionBar/index.d.ts +2 -1
  259. package/es/react/ChatInputActionBar/type.d.ts +0 -1
  260. package/es/react/ChatInputActions/ChatInputActions.d.ts +2 -4
  261. package/es/react/ChatInputActions/index.d.ts +2 -1
  262. package/es/react/ChatInputActions/type.d.ts +0 -1
  263. package/es/react/CodeLanguageSelect/CodeLanguageSelect.d.ts +1 -2
  264. package/es/react/CodeLanguageSelect/index.d.ts +2 -1
  265. package/es/react/CodeLanguageSelect/type.d.ts +0 -1
  266. package/es/react/Editor/Editor.js +1 -1
  267. package/es/react/Editor/index.d.ts +1 -2
  268. package/es/react/Editor/index.js +1 -1
  269. package/es/react/Editor/type.d.ts +5 -1
  270. package/es/react/Editor/utils.d.ts +0 -1
  271. package/es/react/EditorProvider/index.d.ts +2 -7
  272. package/es/react/EditorProvider/index.js +1 -1
  273. package/es/react/FloatActions/FloatActions.d.ts +1 -2
  274. package/es/react/FloatActions/index.d.ts +2 -1
  275. package/es/react/FloatActions/type.d.ts +0 -1
  276. package/es/react/SendButton/SendButton.d.ts +1 -2
  277. package/es/react/SendButton/index.d.ts +2 -1
  278. package/es/react/SendButton/type.d.ts +0 -1
  279. package/es/react/hooks/useEditor.d.ts +1 -0
  280. package/es/react/hooks/useEditorState/index.d.ts +1 -0
  281. package/es/react/hooks/useEditorState/index.js +8 -4
  282. package/es/react.d.ts +14 -7
  283. package/es/renderer/LexicalDiff.d.ts +1 -16
  284. package/es/renderer/LexicalDiff.js +1 -1
  285. package/es/renderer/LexicalRenderer.d.ts +1 -11
  286. package/es/renderer/diff/style.js +1 -1
  287. package/es/renderer/diff/types.d.ts +0 -1
  288. package/es/renderer/engine/render-builtin-node.js +1 -1
  289. package/es/renderer/nodes/index.d.ts +0 -1
  290. package/es/renderer/renderers/index.d.ts +0 -1
  291. package/es/renderer/renderers/index.js +1 -1
  292. package/es/renderer/renderers/math.js +2 -2
  293. package/es/renderer/types.d.ts +0 -1
  294. package/es/{symbols-DEEvsKq4.d.ts → symbols-Do7jD4Tt.d.ts} +6 -8
  295. package/es/types/hotkey.d.ts +0 -1
  296. package/es/types/index.d.ts +2 -1
  297. package/es/types/kernel.d.ts +1 -2
  298. package/es/types/locale.d.ts +2 -3
  299. package/es/utils/debug.d.ts +1 -2
  300. package/es/utils/debug.js +1 -1
  301. package/es/utils/hotkey/parseHotkeys.js +1 -1
  302. package/es/utils/hotkey/registerHotkey.d.ts +0 -1
  303. package/package.json +19 -19
@@ -1 +1,2 @@
1
- import { BlockMenuService, IBlockActionButton, IBlockActionButtonIcon, IBlockMenuItem, IBlockMenuRenderContext, IBlockMenuService, IBlockSelectHandler } from "./i-block-menu-service.js";
1
+ import { BlockMenuService, IBlockActionButton, IBlockActionButtonIcon, IBlockMenuItem, IBlockMenuRenderContext, IBlockMenuService, IBlockSelectHandler } from "./i-block-menu-service.js";
2
+ export { BlockMenuService, IBlockActionButton, IBlockActionButtonIcon, IBlockMenuItem, IBlockMenuRenderContext, IBlockMenuService, IBlockSelectHandler };
@@ -1,7 +1,5 @@
1
- import * as _$lexical from "lexical";
2
1
  import { LexicalEditor } from "lexical";
3
-
4
2
  //#region src/plugins/code/command/index.d.ts
5
- declare const INSERT_CODEINLINE_COMMAND: _$lexical.LexicalCommand<undefined>;
3
+ declare const INSERT_CODEINLINE_COMMAND: import("lexical").LexicalCommand<undefined>;
6
4
  //#endregion
7
5
  export { INSERT_CODEINLINE_COMMAND };
@@ -1,3 +1,5 @@
1
1
  import { INSERT_CODEINLINE_COMMAND } from "./command/index.js";
2
2
  import { CodePlugin } from "./plugin/index.js";
3
- import { ReactCodePlugin } from "./react/CodeReactPlugin.js";
3
+ import ReactCodePlugin from "./react/CodeReactPlugin.js";
4
+ import "./react/index.js";
5
+ export { CodePlugin, INSERT_CODEINLINE_COMMAND, ReactCodePlugin };
@@ -1,4 +1,5 @@
1
1
  import { IEditorPluginConstructor } from "../../../types/kernel.js";
2
+ import "../../../types/index.js";
2
3
  //#region src/plugins/code/plugin/index.d.ts
3
4
  interface CodePluginOptions {
4
5
  enableHotkey?: boolean;
@@ -6,4 +7,4 @@ interface CodePluginOptions {
6
7
  }
7
8
  declare const CodePlugin: IEditorPluginConstructor<CodePluginOptions>;
8
9
  //#endregion
9
- export { CodePlugin };
10
+ export { CodePlugin, CodePluginOptions };
@@ -1,7 +1,6 @@
1
1
  import { ReactCodePluginProps } from "./type.js";
2
2
  import { FC } from "react";
3
-
4
3
  //#region src/plugins/code/react/CodeReactPlugin.d.ts
5
4
  declare const ReactCodePlugin: FC<ReactCodePluginProps>;
6
5
  //#endregion
7
- export { ReactCodePlugin };
6
+ export { ReactCodePlugin as default };
@@ -1 +1,2 @@
1
- import { ReactCodePlugin } from "./CodeReactPlugin.js";
1
+ import ReactCodePlugin from "./CodeReactPlugin.js";
2
+ export { ReactCodePlugin };
@@ -1,2 +1,4 @@
1
+ import "../../../editor-kernel/inode/index.js";
1
2
  import { UPDATE_CODEBLOCK_LANG } from "./symbols.js";
2
- import { LexicalEditor } from "lexical";
3
+ import { LexicalEditor } from "lexical";
4
+ export { UPDATE_CODEBLOCK_LANG };
@@ -37,4 +37,4 @@ function registerCodeCommand(editor) {
37
37
  };
38
38
  }
39
39
  //#endregion
40
- export { CustomShikiTokenizer, registerCodeCommand };
40
+ export { CustomShikiTokenizer, UPDATE_CODEBLOCK_LANG, registerCodeCommand };
@@ -1,7 +1,5 @@
1
- import * as _$lexical from "lexical";
2
-
3
1
  //#region src/plugins/codeblock/command/symbols.d.ts
4
- declare const UPDATE_CODEBLOCK_LANG: _$lexical.LexicalCommand<{
2
+ declare const UPDATE_CODEBLOCK_LANG: import("lexical").LexicalCommand<{
5
3
  lang: string;
6
4
  }>;
7
5
  //#endregion
@@ -1,6 +1,8 @@
1
1
  import { UPDATE_CODEBLOCK_LANG } from "./command/symbols.js";
2
+ import "./command/index.js";
2
3
  import { CodeblockPlugin, CodeblockPluginOptions } from "./plugin/index.js";
3
4
  import { ReactCodeblockPluginProps } from "./react/type.js";
4
5
  import { ReactCodeblockPlugin } from "./react/ReactCodeblockPlugin.js";
6
+ import "./react/index.js";
5
7
  import { bundledLanguagesInfo as bundledLanguagesInfo$1 } from "shiki";
6
- export { bundledLanguagesInfo$1 as bundledLanguagesInfo };
8
+ export { CodeblockPlugin, CodeblockPluginOptions, ReactCodeblockPlugin, type ReactCodeblockPluginProps, UPDATE_CODEBLOCK_LANG, bundledLanguagesInfo$1 as bundledLanguagesInfo };
@@ -1,5 +1,5 @@
1
- import "./command/symbols.js";
2
- import "./plugin/index.js";
3
- import "./react/ReactCodeblockPlugin.js";
1
+ import { UPDATE_CODEBLOCK_LANG } from "./command/symbols.js";
2
+ import { CodeblockPlugin } from "./plugin/index.js";
3
+ import { ReactCodeblockPlugin } from "./react/ReactCodeblockPlugin.js";
4
4
  import { bundledLanguagesInfo as bundledLanguagesInfo$1 } from "shiki";
5
- export { bundledLanguagesInfo$1 as bundledLanguagesInfo };
5
+ export { CodeblockPlugin, ReactCodeblockPlugin, UPDATE_CODEBLOCK_LANG, bundledLanguagesInfo$1 as bundledLanguagesInfo };
@@ -1,4 +1,5 @@
1
1
  import { IEditorPluginConstructor } from "../../../types/kernel.js";
2
+ import "../../../types/index.js";
2
3
  //#region src/plugins/codeblock/plugin/index.d.ts
3
4
  interface CodeblockPluginOptions {
4
5
  /** Shiki theme name to use for syntax highlighting */
@@ -1,7 +1,6 @@
1
1
  import { ReactCodeblockPluginProps } from "./type.js";
2
2
  import { FC } from "react";
3
-
4
3
  //#region src/plugins/codeblock/react/ReactCodeblockPlugin.d.ts
5
4
  declare const ReactCodeblockPlugin: FC<ReactCodeblockPluginProps>;
6
5
  //#endregion
7
- export { ReactCodeblockPlugin };
6
+ export { ReactCodeblockPlugin, ReactCodeblockPlugin as default };
@@ -24,4 +24,4 @@ const ReactCodeblockPlugin = ({ theme, shikiTheme }) => {
24
24
  };
25
25
  ReactCodeblockPlugin.displayName = "ReactCodeblockPlugin";
26
26
  //#endregion
27
- export { ReactCodeblockPlugin as default };
27
+ export { ReactCodeblockPlugin, ReactCodeblockPlugin as default };
@@ -1,2 +1,3 @@
1
1
  import { ReactCodeblockPluginProps } from "./type.js";
2
- import { ReactCodeblockPlugin } from "./ReactCodeblockPlugin.js";
2
+ import { ReactCodeblockPlugin } from "./ReactCodeblockPlugin.js";
3
+ export { ReactCodeblockPlugin, type ReactCodeblockPluginProps };
@@ -39,7 +39,6 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
39
39
  opacity: 0;
40
40
  background: ${cssVar.colorFillQuaternary};
41
41
  backdrop-filter: blur(8px);
42
- backdrop-filter: blur(8px);
43
42
 
44
43
  transition: opacity 0.1s;
45
44
  }
@@ -1,4 +1,5 @@
1
1
  import { CodeblockPluginOptions } from "../plugin/index.js";
2
+ import "../index.js";
2
3
  //#region src/plugins/codeblock/react/type.d.ts
3
4
  interface ReactCodeblockPluginProps extends CodeblockPluginOptions {
4
5
  className?: string;
@@ -1,12 +1,10 @@
1
- import * as _$lexical from "lexical";
2
1
  import { LexicalEditor } from "lexical";
3
-
4
2
  //#region src/plugins/codemirror-block/command/index.d.ts
5
- declare const INSERT_CODEMIRROR_COMMAND: _$lexical.LexicalCommand<unknown>;
6
- declare const SELECT_BEFORE_CODEMIRROR_COMMAND: _$lexical.LexicalCommand<{
3
+ declare const INSERT_CODEMIRROR_COMMAND: import("lexical").LexicalCommand<unknown>;
4
+ declare const SELECT_BEFORE_CODEMIRROR_COMMAND: import("lexical").LexicalCommand<{
7
5
  key: string;
8
6
  }>;
9
- declare const SELECT_AFTER_CODEMIRROR_COMMAND: _$lexical.LexicalCommand<{
7
+ declare const SELECT_AFTER_CODEMIRROR_COMMAND: import("lexical").LexicalCommand<{
10
8
  key: string;
11
9
  }>;
12
10
  //#endregion
@@ -1,3 +1,5 @@
1
1
  import { INSERT_CODEMIRROR_COMMAND, SELECT_AFTER_CODEMIRROR_COMMAND, SELECT_BEFORE_CODEMIRROR_COMMAND } from "./command/index.js";
2
2
  import { CodemirrorPlugin, CodemirrorPluginOptions } from "./plugin/index.js";
3
- import { ReactCodemirrorPlugin } from "./react/ReactCodemirrorNode.js";
3
+ import ReactCodemirrorPlugin from "./react/ReactCodemirrorNode.js";
4
+ import "./react/index.js";
5
+ export { CodemirrorPlugin, CodemirrorPluginOptions, INSERT_CODEMIRROR_COMMAND, ReactCodemirrorPlugin, SELECT_AFTER_CODEMIRROR_COMMAND, SELECT_BEFORE_CODEMIRROR_COMMAND };
@@ -1,5 +1,4 @@
1
1
  import { DOMConversionMap, DOMExportOutput, DecoratorNode, EditorConfig, LexicalEditor, LexicalNode, SerializedLexicalNode, Spread } from "lexical";
2
-
3
2
  //#region src/plugins/codemirror-block/node/CodeMirrorNode.d.ts
4
3
  interface CodeMirrorOptions {
5
4
  indentWithTabs: boolean;
@@ -45,4 +44,4 @@ declare class CodeMirrorNode extends DecoratorNode<any> {
45
44
  decorate(editor: LexicalEditor): any;
46
45
  }
47
46
  //#endregion
48
- export { CodeMirrorNode };
47
+ export { CodeMirrorNode, CodeMirrorOptions, SerializedCodeMirrorNode };
@@ -1,7 +1,7 @@
1
1
  import { IEditorPluginConstructor } from "../../../types/kernel.js";
2
+ import "../../../types/index.js";
2
3
  import { CodeMirrorNode } from "../node/CodeMirrorNode.js";
3
4
  import { LexicalEditor } from "lexical";
4
-
5
5
  //#region src/plugins/codemirror-block/plugin/index.d.ts
6
6
  interface CodemirrorPluginOptions {
7
7
  decorator?: (node: CodeMirrorNode, editor: LexicalEditor) => any;
@@ -1,7 +1,6 @@
1
1
  import { ReactCodemirrorPluginProps } from "./type.js";
2
2
  import { FC } from "react";
3
-
4
3
  //#region src/plugins/codemirror-block/react/ReactCodemirrorNode.d.ts
5
4
  declare const ReactCodemirrorPlugin: FC<ReactCodemirrorPluginProps>;
6
5
  //#endregion
7
- export { ReactCodemirrorPlugin };
6
+ export { ReactCodemirrorPlugin as default };
@@ -1 +1,2 @@
1
- import { ReactCodemirrorPlugin } from "./ReactCodemirrorNode.js";
1
+ import ReactCodemirrorPlugin from "./ReactCodemirrorNode.js";
2
+ export { ReactCodemirrorPlugin };
@@ -1,3 +1,5 @@
1
1
  import { CollaborationUser } from "./utils.js";
2
2
  import { CollaborationProviderFactory, EditorCollaborationConfig, ReactCollaborationPluginProps } from "./react/type.js";
3
- import { ReactCollaborationPlugin } from "./react/ReactCollaborationPlugin.js";
3
+ import { ReactCollaborationPlugin } from "./react/ReactCollaborationPlugin.js";
4
+ import "./react/index.js";
5
+ export { type CollaborationProviderFactory, type CollaborationUser, type EditorCollaborationConfig, ReactCollaborationPlugin, type ReactCollaborationPluginProps };
@@ -1,7 +1,6 @@
1
1
  import { ReactCollaborationPluginProps } from "./type.js";
2
2
  import { FC } from "react";
3
-
4
3
  //#region src/plugins/collaboration/react/ReactCollaborationPlugin.d.ts
5
4
  declare const ReactCollaborationPlugin: FC<ReactCollaborationPluginProps>;
6
5
  //#endregion
7
- export { ReactCollaborationPlugin };
6
+ export { ReactCollaborationPlugin, ReactCollaborationPlugin as default };
@@ -86,4 +86,4 @@ const ReactCollaborationPlugin = ({ connect = true, cursorContainer, excludedPro
86
86
  };
87
87
  ReactCollaborationPlugin.displayName = "ReactCollaborationPlugin";
88
88
  //#endregion
89
- export { ReactCollaborationPlugin as default };
89
+ export { ReactCollaborationPlugin, ReactCollaborationPlugin as default };
@@ -1,2 +1,3 @@
1
1
  import { CollaborationProviderFactory, EditorCollaborationConfig, ReactCollaborationPluginProps } from "./type.js";
2
- import { ReactCollaborationPlugin } from "./ReactCollaborationPlugin.js";
2
+ import { ReactCollaborationPlugin } from "./ReactCollaborationPlugin.js";
3
+ export { type CollaborationProviderFactory, type EditorCollaborationConfig, ReactCollaborationPlugin, type ReactCollaborationPluginProps };
@@ -1,7 +1,6 @@
1
1
  import { CollaborationUser } from "../utils.js";
2
2
  import { Doc } from "yjs";
3
3
  import { ExcludedProperties, Provider, SyncCursorPositionsFn } from "@lexical/yjs";
4
-
5
4
  //#region src/plugins/collaboration/react/type.d.ts
6
5
  type CollaborationProviderFactory = (id: string, yjsDocMap: Map<string, Doc>) => Provider;
7
6
  interface EditorCollaborationConfig {
@@ -1,7 +1,6 @@
1
1
  import { LexicalEditor } from "lexical";
2
2
  import { Doc } from "yjs";
3
3
  import { ExcludedProperties, Provider, SyncCursorPositionsFn } from "@lexical/yjs";
4
-
5
4
  //#region src/plugins/collaboration/utils.d.ts
6
5
  interface CollaborationUser {
7
6
  awarenessData?: Record<string, unknown>;
@@ -18,7 +18,7 @@ const registerCollaborationBinding = ({ cursorContainer, doc, excludedProperties
18
18
  if (binding.root.length > 0) syncYjsStateToLexicalV2__EXPERIMENTAL(binding, provider);
19
19
  else if (shouldBootstrap) {
20
20
  const editorState = lexicalEditor.getEditorState();
21
- syncLexicalUpdateToYjsV2__EXPERIMENTAL(binding, provider, editorState, editorState, new Map([["root", true]]), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set());
21
+ syncLexicalUpdateToYjsV2__EXPERIMENTAL(binding, provider, editorState, editorState, /* @__PURE__ */ new Map([["root", true]]), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set());
22
22
  }
23
23
  const yjsObserver = (events, transaction) => {
24
24
  if (transaction.origin === binding) return;
@@ -1,10 +1,8 @@
1
- import * as _$lexical from "lexical";
2
1
  import { LexicalEditor } from "lexical";
3
2
  import { HeadingTagType } from "@lexical/rich-text";
4
-
5
3
  //#region src/plugins/common/command/index.d.ts
6
- declare const INSERT_QUOTE_COMMAND: _$lexical.LexicalCommand<unknown>;
7
- declare const INSERT_HEADING_COMMAND: _$lexical.LexicalCommand<{
4
+ declare const INSERT_QUOTE_COMMAND: import("lexical").LexicalCommand<unknown>;
5
+ declare const INSERT_HEADING_COMMAND: import("lexical").LexicalCommand<{
8
6
  tag: HeadingTagType;
9
7
  }>;
10
8
  //#endregion
@@ -66,7 +66,7 @@ var JSONDataSource = class extends DataSource {
66
66
  const firstNode = selectedNodes[0];
67
67
  const lastNode = selectedNodes[lastIndex];
68
68
  const [anchorOffset, focusOffset] = $getCharacterOffsets(selection);
69
- let lastElement = [];
69
+ const lastElement = [];
70
70
  const rootNodes = [];
71
71
  for (let i = 0; i < selectedNodes.length; i++) {
72
72
  const node = selectedNodes[i];
@@ -2,5 +2,7 @@ import { INSERT_HEADING_COMMAND, INSERT_QUOTE_COMMAND } from "./command/index.js
2
2
  import { $createCursorNode, $isCardLikeElementNode, $isCursorNode, CardLikeElementNode, cursorNodeSerialized } from "./node/cursor.js";
3
3
  import { CommonPlugin, CommonPluginOptions } from "./plugin/index.js";
4
4
  import { ReactEditorContentProps, ReactPlainTextProps } from "./react/type.js";
5
- import { ReactEditorContent } from "./react/ReactEditorContent.js";
6
- import { ReactPlainText } from "./react/ReactPlainText.js";
5
+ import ReactEditorContent from "./react/ReactEditorContent.js";
6
+ import ReactPlainText from "./react/ReactPlainText.js";
7
+ import "./react/index.js";
8
+ export { $createCursorNode, $isCardLikeElementNode, $isCursorNode, CardLikeElementNode, CommonPlugin, CommonPluginOptions, INSERT_HEADING_COMMAND, INSERT_QUOTE_COMMAND, ReactEditorContent, ReactEditorContentProps, ReactPlainText, ReactPlainTextProps, cursorNodeSerialized };
@@ -1,5 +1,4 @@
1
1
  import { ElementNode, LexicalEditor, LexicalNode, SerializedLexicalNode, TextNode } from "lexical";
2
-
3
2
  //#region src/plugins/common/node/cursor.d.ts
4
3
  declare class CardLikeElementNode extends ElementNode {
5
4
  isCardLike(): boolean;
@@ -13,4 +12,4 @@ declare function $createCursorNode(): CursorNode;
13
12
  declare function $isCardLikeElementNode(node: LexicalNode | null | undefined): node is CardLikeElementNode;
14
13
  declare function $isCursorNode(node: LexicalNode | null | undefined): node is CursorNode;
15
14
  //#endregion
16
- export { $createCursorNode, $isCardLikeElementNode, $isCursorNode, CardLikeElementNode, cursorNodeSerialized };
15
+ export { $createCursorNode, $isCardLikeElementNode, $isCursorNode, CardLikeElementNode, CursorNode, cursorNodeSerialized };
@@ -1,6 +1,6 @@
1
1
  import { IEditorPluginConstructor } from "../../../types/kernel.js";
2
+ import "../../../types/index.js";
2
3
  import { PasteHandlerConfig } from "./paste-handler.js";
3
-
4
4
  //#region src/plugins/common/plugin/index.d.ts
5
5
  interface CommonPluginOptions extends PasteHandlerConfig {
6
6
  enableHotkey?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { INodeHelper, init_helper } from "../../../editor-kernel/inode/helper.js";
2
2
  import { $isCursorInQuote, $isCursorInTable, createBlockNode, init_utils, sampleReader } from "../utils/index.js";
3
3
  import { KernelPlugin, init_plugin } from "../../../editor-kernel/plugin.js";
4
- import { noop } from "../../../editor-kernel/utils.js";
4
+ import { init_utils as init_utils$1, noop } from "../../../editor-kernel/utils.js";
5
5
  import { registerCommands } from "../command/index.js";
6
6
  import { CursorNode, registerCursorNode } from "../node/cursor.js";
7
7
  import { ILitexmlService } from "../../litexml/service/litexml-service.js";
@@ -19,6 +19,7 @@ import { $createHeadingNode, $createQuoteNode, $isHeadingNode, $isQuoteNode, Hea
19
19
  import { CAN_USE_DOM } from "@lexical/utils";
20
20
  import { registerDragonSupport } from "@lexical/dragon";
21
21
  //#region src/plugins/common/plugin/index.ts
22
+ init_utils$1();
22
23
  init_helper();
23
24
  init_plugin();
24
25
  init_utils();
@@ -1,5 +1,4 @@
1
1
  import { LexicalEditor } from "lexical";
2
-
3
2
  //#region src/plugins/common/plugin/paste-handler.d.ts
4
3
  /**
5
4
  * Configuration options relevant to paste handling
@@ -1,11 +1,12 @@
1
1
  import { createDebugLogger, init_debug } from "../../../utils/debug.js";
2
2
  import { HotkeyEnum, init_hotkey } from "../../../types/hotkey.js";
3
- import { $closest } from "../../../editor-kernel/utils.js";
3
+ import { $closest, init_utils } from "../../../editor-kernel/utils.js";
4
4
  import { $createNodeSelection, $createParagraphNode, $getRoot, $getSelection, $isDecoratorNode, $isElementNode, $isLineBreakNode, $isNodeSelection, $isRangeSelection, $isRootOrShadowRoot, $isTextNode, $setSelection, COMMAND_PRIORITY_EDITOR, COMMAND_PRIORITY_LOW, COMMAND_PRIORITY_NORMAL, FORMAT_TEXT_COMMAND, HISTORIC_TAG, KEY_ARROW_DOWN_COMMAND, KEY_ARROW_RIGHT_COMMAND, KEY_ARROW_UP_COMMAND, KEY_BACKSPACE_COMMAND, REDO_COMMAND, UNDO_COMMAND } from "lexical";
5
5
  import { $isHeadingNode, QuoteNode } from "@lexical/rich-text";
6
6
  import { mergeRegister } from "@lexical/utils";
7
7
  import { $isCodeHighlightNode, $isCodeNode } from "@lexical/code-core";
8
8
  //#region src/plugins/common/plugin/register.ts
9
+ init_utils();
9
10
  init_hotkey();
10
11
  init_debug();
11
12
  const logger = createDebugLogger("plugin", "common");
@@ -270,7 +271,7 @@ function registerRichKeydown(editor, kernel, options) {
270
271
  return false;
271
272
  }, COMMAND_PRIORITY_EDITOR));
272
273
  }
273
- const NEEDS_FOLLOWING_PARAGRAPH_TYPES = new Set([
274
+ const NEEDS_FOLLOWING_PARAGRAPH_TYPES = /* @__PURE__ */ new Set([
274
275
  "code",
275
276
  "table",
276
277
  "block-image"
@@ -303,4 +304,4 @@ function registerLastElement(editor) {
303
304
  });
304
305
  }
305
306
  //#endregion
306
- export { registerHeaderBackspace, registerLastElement, registerRichKeydown };
307
+ export { $getAdjacentNode, $getDownUpNode, registerHeaderBackspace, registerLastElement, registerRichKeydown };
@@ -1,5 +1,5 @@
1
1
  import { $canShowPlaceholderCurry, init_utils } from "../../utils/index.js";
2
- import { $closestNodeType } from "../../../../editor-kernel/utils.js";
2
+ import { $closestNodeType, init_utils as init_utils$1 } from "../../../../editor-kernel/utils.js";
3
3
  import { useLexicalEditor } from "../../../../editor-kernel/react/useLexicalEditor.js";
4
4
  import { styles } from "./style.js";
5
5
  import { memo, useRef, useState } from "react";
@@ -7,6 +7,7 @@ import { jsx } from "react/jsx-runtime";
7
7
  import { $getNodeByKey, $getSelection, $isBlockElementNode, $isRangeSelection } from "lexical";
8
8
  import { mergeRegister } from "@lexical/utils";
9
9
  //#region src/plugins/common/react/Placeholder/index.tsx
10
+ init_utils$1();
10
11
  init_utils();
11
12
  function canShowPlaceholderFromCurrentEditorState(editor) {
12
13
  return editor.getEditorState().read($canShowPlaceholderCurry(editor.isComposing()));
@@ -1,7 +1,6 @@
1
1
  import { ReactEditorContentProps } from "./type.js";
2
2
  import { FC } from "react";
3
-
4
3
  //#region src/plugins/common/react/ReactEditorContent.d.ts
5
4
  declare const ReactEditorContent: FC<ReactEditorContentProps>;
6
5
  //#endregion
7
- export { ReactEditorContent };
6
+ export { ReactEditorContent as default };
@@ -1,7 +1,5 @@
1
1
  import { ReactPlainTextProps } from "./type.js";
2
- import * as _$react from "react";
3
-
4
2
  //#region src/plugins/common/react/ReactPlainText.d.ts
5
- declare const ReactPlainText: _$react.NamedExoticComponent<ReactPlainTextProps>;
3
+ declare const ReactPlainText: import("react").NamedExoticComponent<ReactPlainTextProps>;
6
4
  //#endregion
7
- export { ReactPlainText };
5
+ export { ReactPlainText as default };
@@ -1,3 +1,4 @@
1
1
  import { ReactEditorContentProps, ReactPlainTextProps } from "./type.js";
2
- import { ReactEditorContent } from "./ReactEditorContent.js";
3
- import { ReactPlainText } from "./ReactPlainText.js";
2
+ import ReactEditorContent from "./ReactEditorContent.js";
3
+ import ReactPlainText from "./ReactPlainText.js";
4
+ export { ReactEditorContent, ReactEditorContentProps, ReactPlainText, ReactPlainTextProps };
@@ -1,7 +1,8 @@
1
1
  import { IEditor } from "../../../types/kernel.js";
2
+ import "../../../types/index.js";
2
3
  import { CommonPluginOptions } from "../plugin/index.js";
4
+ import "../index.js";
3
5
  import { CSSProperties, CompositionEvent, FocusEvent, MouseEvent, ReactElement, ReactNode } from "react";
4
-
5
6
  //#region src/plugins/common/react/type.d.ts
6
7
  interface ReactEditorContentProps {
7
8
  content: any;
@@ -132,4 +132,4 @@ var init_utils = __esmMin((() => {
132
132
  }));
133
133
  //#endregion
134
134
  init_utils();
135
- export { $canShowPlaceholderCurry, $isCursorInQuote, $isCursorInTable, $isRootTextContentEmpty, createBlockNode, exportNodeToJSON, init_utils, sampleReader };
135
+ export { $canShowPlaceholder, $canShowPlaceholderCurry, $isCursorInQuote, $isCursorInTable, $isRootTextContentEmpty, $rootTextContent, createBlockNode, exportNodeToJSON, init_utils, sampleReader };
@@ -1,8 +1,8 @@
1
- import { DataSource } from "../../../editor-kernel/data-source.js";
1
+ import DataSource from "../../../editor-kernel/data-source.js";
2
+ import "../../../editor-kernel/index.js";
2
3
  import { IMarkdownShortCutService } from "../../markdown/service/shortcut.js";
3
4
  import { ContentBlock, ExtractContentBlocksOptions } from "../types.js";
4
5
  import { LexicalEditor } from "lexical";
5
-
6
6
  //#region src/plugins/content-blocks/data-source/content-blocks-data-source.d.ts
7
7
  declare class ContentBlocksDataSource extends DataSource {
8
8
  private getMarkdownService;
@@ -3,4 +3,5 @@ import { CONTENT_BLOCKS_DATA_TYPE, ContentBlock, ExtractContentBlocksOptions, Fi
3
3
  import { ContentBlocksDataSource } from "./data-source/content-blocks-data-source.js";
4
4
  import { ContentBlocksPlugin, ContentBlocksPluginOptions } from "./plugin/index.js";
5
5
  import { extractContentBlocks } from "./utils/extract.js";
6
- import { extractMediaLists } from "./utils/extract-media-lists.js";
6
+ import { extractMediaLists } from "./utils/extract-media-lists.js";
7
+ export { CONTENT_BLOCKS_DATA_TYPE, type ContentBlock, ContentBlocksDataSource, ContentBlocksPlugin, type ContentBlocksPluginOptions, type ExtractContentBlocksOptions, type FileContentBlock, type ImageContentBlock, type TextContentBlock, extractContentBlocks, extractMediaLists };
@@ -1,6 +1,6 @@
1
1
  import { IEditorPluginConstructor } from "../../../types/kernel.js";
2
+ import "../../../types/index.js";
2
3
  import { ExtractContentBlocksOptions } from "../types.js";
3
-
4
4
  //#region src/plugins/content-blocks/plugin/index.d.ts
5
5
  interface ContentBlocksPluginOptions {
6
6
  defaultOptions?: ExtractContentBlocksOptions;
@@ -1,5 +1,4 @@
1
1
  import { FileListItem, ImageListItem, MediaLists } from "../../headless/extract-media-from-editor-state.js";
2
-
3
2
  //#region src/plugins/content-blocks/types.d.ts
4
3
  interface TextContentBlock {
5
4
  text: string;
@@ -30,4 +29,4 @@ interface ExtractContentBlocksOptions {
30
29
  }
31
30
  declare const CONTENT_BLOCKS_DATA_TYPE = "content-blocks";
32
31
  //#endregion
33
- export { CONTENT_BLOCKS_DATA_TYPE, ContentBlock, ExtractContentBlocksOptions, FileContentBlock, ImageContentBlock, TextContentBlock };
32
+ export { CONTENT_BLOCKS_DATA_TYPE, ContentBlock, ExtractContentBlocksOptions, FileContentBlock, ImageContentBlock, type MediaLists, TextContentBlock };
@@ -1,6 +1,5 @@
1
1
  import { MediaLists } from "../../../headless/extract-media-from-editor-state.js";
2
2
  import { ContentBlock } from "../types.js";
3
-
4
3
  //#region src/plugins/content-blocks/utils/extract-media-lists.d.ts
5
4
  declare const extractMediaLists: (blocks: ContentBlock[]) => MediaLists;
6
5
  //#endregion
@@ -1,7 +1,6 @@
1
1
  import { IMarkdownShortCutService } from "../../markdown/service/shortcut.js";
2
2
  import { ContentBlock, ExtractContentBlocksOptions } from "../types.js";
3
3
  import { LexicalEditor } from "lexical";
4
-
5
4
  //#region src/plugins/content-blocks/utils/extract.d.ts
6
5
  declare const extractContentBlocks: (editor: LexicalEditor, service: IMarkdownShortCutService, options?: ExtractContentBlocksOptions) => ContentBlock[];
7
6
  //#endregion
@@ -3,12 +3,12 @@ import { MarkdownWriterContext } from "../../markdown/data-source/markdown-write
3
3
  import { $getRoot, $isElementNode } from "lexical";
4
4
  //#region src/plugins/content-blocks/utils/extract.ts
5
5
  init_helper();
6
- const ATOMIC_TYPES = new Set([
6
+ const ATOMIC_TYPES = /* @__PURE__ */ new Set([
7
7
  "image",
8
8
  "block-image",
9
9
  "file"
10
10
  ]);
11
- const SPLITTABLE_CONTAINER_TYPES = new Set([
11
+ const SPLITTABLE_CONTAINER_TYPES = /* @__PURE__ */ new Set([
12
12
  "paragraph",
13
13
  "heading",
14
14
  "quote"
@@ -1,8 +1,6 @@
1
- import * as _$lexical from "lexical";
2
1
  import { LexicalEditor } from "lexical";
3
-
4
2
  //#region src/plugins/file/command/index.d.ts
5
- declare const INSERT_FILE_COMMAND: _$lexical.LexicalCommand<{
3
+ declare const INSERT_FILE_COMMAND: import("lexical").LexicalCommand<{
6
4
  file: File;
7
5
  }>;
8
6
  //#endregion
@@ -1,4 +1,6 @@
1
1
  import { INSERT_FILE_COMMAND } from "./command/index.js";
2
2
  import { FilePlugin, FilePluginOptions } from "./plugin/index.js";
3
3
  import { ReactFilePluginProps } from "./react/type.js";
4
- import { ReactFilePlugin } from "./react/ReactFilePlugin.js";
4
+ import ReactFilePlugin from "./react/ReactFilePlugin.js";
5
+ import "./react/index.js";
6
+ export { FilePlugin, FilePluginOptions, INSERT_FILE_COMMAND, ReactFilePlugin, type ReactFilePluginProps };
@@ -1,5 +1,4 @@
1
1
  import { DOMConversionMap, DOMExportOutput, DecoratorNode, EditorConfig, LexicalEditor, LexicalNode, LexicalUpdateJSON, SerializedLexicalNode, Spread } from "lexical";
2
-
3
2
  //#region src/plugins/file/node/FileNode.d.ts
4
3
  type SerializedFileNode = Spread<{
5
4
  fileUrl?: string;
@@ -35,4 +34,4 @@ declare class FileNode extends DecoratorNode<any> {
35
34
  decorate(editor: LexicalEditor): any;
36
35
  }
37
36
  //#endregion
38
- export { FileNode };
37
+ export { FileNode, SerializedFileNode };
@@ -1,7 +1,7 @@
1
1
  import { IEditorPluginConstructor } from "../../../types/kernel.js";
2
+ import "../../../types/index.js";
2
3
  import { FileNode } from "../node/FileNode.js";
3
4
  import { LexicalEditor } from "lexical";
4
-
5
5
  //#region src/plugins/file/plugin/index.d.ts
6
6
  interface FilePluginOptions {
7
7
  decorator?: (node: FileNode, editor: LexicalEditor) => any;
@@ -1,7 +1,6 @@
1
1
  import { ReactFilePluginProps } from "./type.js";
2
2
  import { FC } from "react";
3
-
4
3
  //#region src/plugins/file/react/ReactFilePlugin.d.ts
5
4
  declare const ReactFilePlugin: FC<ReactFilePluginProps>;
6
5
  //#endregion
7
- export { ReactFilePlugin };
6
+ export { ReactFilePlugin as default };
@@ -1,2 +1,3 @@
1
1
  import { ReactFilePluginProps } from "./type.js";
2
- import { ReactFilePlugin } from "./ReactFilePlugin.js";
2
+ import ReactFilePlugin from "./ReactFilePlugin.js";
3
+ export { ReactFilePlugin, type ReactFilePluginProps };
@@ -1,6 +1,6 @@
1
1
  import { ILocaleKeys } from "../../../types/locale.js";
2
+ import "../../../types/index.js";
2
3
  import { FileNode } from "../node/FileNode.js";
3
-
4
4
  //#region src/plugins/file/react/type.d.ts
5
5
  interface ReactFilePluginProps {
6
6
  className?: string;
@@ -1,7 +1,5 @@
1
- import * as _$lexical from "lexical";
2
1
  import { LexicalEditor } from "lexical";
3
-
4
2
  //#region src/plugins/hr/command/index.d.ts
5
- declare const INSERT_HORIZONTAL_RULE_COMMAND: _$lexical.LexicalCommand<unknown>;
3
+ declare const INSERT_HORIZONTAL_RULE_COMMAND: import("lexical").LexicalCommand<unknown>;
6
4
  //#endregion
7
5
  export { INSERT_HORIZONTAL_RULE_COMMAND };
@@ -1,4 +1,6 @@
1
1
  import { INSERT_HORIZONTAL_RULE_COMMAND } from "./command/index.js";
2
2
  import { HRPlugin, HRPluginOptions } from "./plugin/index.js";
3
3
  import { ReactHRPluginProps } from "./react/type.js";
4
- import { ReactHRPlugin } from "./react/ReactHRPlugin.js";
4
+ import ReactHRPlugin from "./react/ReactHRPlugin.js";
5
+ import "./react/index.js";
6
+ export { HRPlugin, HRPluginOptions, INSERT_HORIZONTAL_RULE_COMMAND, ReactHRPlugin, type ReactHRPluginProps };