@lobehub/editor 4.14.0 → 4.15.1

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.
package/es/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { $ as ModifierCombination, A as INSERT_HEADING_COMMAND, B as ISelectionObject, C as CommonPlugin, D as $isCursorNode, E as $isCardLikeElementNode, F as IEditor, G as HotkeysEvent, H as ILocaleKeys, I as IEditorKernel, J as HotkeyId, K as getHotkeyById, L as IEditorPluginConstructor, M as IBeforeEditorInitLifecycle, N as IDecorator, O as CardLikeElementNode, P as IDocumentOptions, Q as KeyEnum, R as INodeRegistrationTransform, S as ReactPlainTextProps, T as $createCursorNode, V as IServiceID, W as HotkeyOptions, X as HotkeyScopeEnum, Y as HotkeyItem, Z as HotkeyScopeId, _ as MentionNode, a as ReactSlashOptionProps, b as ReactEditorContent, c as ITriggerContext, d as ISlashMenuOption, et as DataSource, f as ISlashOption, g as ReactMentionPluginProps, h as ReactMentionPlugin, i as MenuRenderProps, j as INSERT_QUOTE_COMMAND, k as cursorNodeSerialized, l as SlashPlugin, m as SlashOptions, n as ReactSlashOption, o as ReactSlashPluginProps, p as ISlashService, q as HotkeyEnum, r as SlashMenu, s as SlashMenuProps, t as ReactSlashPlugin, tt as IWriteOptions, u as SlashPluginOptions, v as SerializedMentionNode, w as CommonPluginOptions, x as ReactEditorContentProps, y as ReactPlainText, z as IPlugin } from "./index-DJq7pYS0.js";
1
+ import { $ as ModifierCombination, A as INSERT_HEADING_COMMAND, B as ISelectionObject, C as CommonPlugin, D as $isCursorNode, E as $isCardLikeElementNode, F as IEditor, G as HotkeysEvent, H as ILocaleKeys, I as IEditorKernel, J as HotkeyId, K as getHotkeyById, L as IEditorPluginConstructor, M as IBeforeEditorInitLifecycle, N as IDecorator, O as CardLikeElementNode, P as IDocumentOptions, Q as KeyEnum, R as INodeRegistrationTransform, S as ReactPlainTextProps, T as $createCursorNode, V as IServiceID, W as HotkeyOptions, X as HotkeyScopeEnum, Y as HotkeyItem, Z as HotkeyScopeId, _ as MentionNode, a as ReactSlashOptionProps, b as ReactEditorContent, c as ITriggerContext, d as ISlashMenuOption, et as DataSource, f as ISlashOption, g as ReactMentionPluginProps, h as ReactMentionPlugin, i as MenuRenderProps, j as INSERT_QUOTE_COMMAND, k as cursorNodeSerialized, l as SlashPlugin, m as SlashOptions, n as ReactSlashOption, o as ReactSlashPluginProps, p as ISlashService, q as HotkeyEnum, r as SlashMenu, s as SlashMenuProps, t as ReactSlashPlugin, tt as IWriteOptions, u as SlashPluginOptions, v as SerializedMentionNode, w as CommonPluginOptions, x as ReactEditorContentProps, y as ReactPlainText, z as IPlugin } from "./index-DHGp94p0.js";
2
+ import React, { FC, JSX, ReactNode } from "react";
3
+ import createDebug from "debug";
2
4
  import { HistoryState, HistoryStateEntry } from "@lexical/history";
3
5
  import { InsertTableCommandPayloadHeaders } from "@lexical/table";
4
6
  import EventEmitter from "eventemitter3";
5
7
  import * as _$lexical from "lexical";
6
8
  import { BaseSelection, CommandListener, CommandListenerPriority, CommandPayloadType, DOMConversionMap, DOMExportOutput, DecoratorNode, EditorConfig, EditorThemeClasses, ElementDOMSlot, ElementNode, LexicalCommand, LexicalEditor, LexicalNode, LexicalNodeConfig, LexicalUpdateJSON, NodeKey, RangeSelection, SerializedEditorState, SerializedElementNode, SerializedLexicalNode, SerializedRootNode, SerializedTextNode, Spread, TextFormatType, TextNode, resetRandomKey } from "lexical";
7
- import createDebug from "debug";
8
- import React, { FC, JSX, ReactNode } from "react";
9
9
  import { INSERT_ORDERED_LIST_COMMAND, INSERT_UNORDERED_LIST_COMMAND, REMOVE_LIST_COMMAND, UPDATE_LIST_START_COMMAND } from "@lexical/list";
10
10
  import { bundledLanguagesInfo } from "shiki";
11
11
 
@@ -277,6 +277,25 @@ declare const LITEXML_INSERT_COMMAND: _$lexical.LexicalCommand<{
277
277
  litexml: string;
278
278
  }>;
279
279
  //#endregion
280
+ //#region src/headless/extract-media-from-editor-state.d.ts
281
+ interface ImageListItem {
282
+ alt: string;
283
+ id: string;
284
+ url: string;
285
+ }
286
+ interface FileListItem {
287
+ fileType: string;
288
+ id: string;
289
+ name: string;
290
+ size: number;
291
+ url: string;
292
+ }
293
+ interface MediaLists {
294
+ fileList: FileListItem[];
295
+ imageList: ImageListItem[];
296
+ }
297
+ declare const extractMediaFromEditorState: (state: SerializedEditorState | null | undefined) => MediaLists;
298
+ //#endregion
280
299
  //#region src/headless/index.d.ts
281
300
  type HeadlessDocumentType = 'json' | 'litexml' | 'markdown' | (string & object);
282
301
  interface HeadlessEditorHydrationInput {
@@ -1749,25 +1768,6 @@ interface IMarkdownShortCutService {
1749
1768
  }
1750
1769
  declare const IMarkdownShortCutService: IServiceID<IMarkdownShortCutService>;
1751
1770
  //#endregion
1752
- //#region src/utils/extract-media-from-editor-state.d.ts
1753
- interface ImageListItem {
1754
- alt: string;
1755
- id: string;
1756
- url: string;
1757
- }
1758
- interface FileListItem {
1759
- fileType: string;
1760
- id: string;
1761
- name: string;
1762
- size: number;
1763
- url: string;
1764
- }
1765
- interface MediaLists {
1766
- fileList: FileListItem[];
1767
- imageList: ImageListItem[];
1768
- }
1769
- declare const extractMediaFromEditorState: (state: SerializedEditorState | null | undefined) => MediaLists;
1770
- //#endregion
1771
1771
  //#region src/plugins/content-blocks/types.d.ts
1772
1772
  interface TextContentBlock {
1773
1773
  text: string;