@ones-editor/editor 2.3.1-beta.1 → 2.3.2

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 (107) hide show
  1. package/@ones-editor/callout-block/src/callout-block/callout-block-content.d.ts +3 -2
  2. package/@ones-editor/callout-block/src/callout-block/callout-icon.d.ts +13 -0
  3. package/@ones-editor/callout-block/src/callout-block/helper.d.ts +4 -2
  4. package/@ones-editor/callout-block/src/locale/en-us.d.ts +3 -0
  5. package/@ones-editor/callout-block/src/locale/ja-jp.d.ts +3 -0
  6. package/@ones-editor/callout-block/src/locale/zh-cn.d.ts +3 -0
  7. package/@ones-editor/comments/src/types.d.ts +5 -0
  8. package/@ones-editor/core/src/core/types.d.ts +2 -3
  9. package/@ones-editor/core/src/utils/dom.d.ts +1 -0
  10. package/@ones-editor/embed-block-helper/src/block-resizer/index.d.ts +6 -1
  11. package/@ones-editor/exclusive-block/src/index.d.ts +2 -0
  12. package/@ones-editor/graph-embed/src/command.d.ts +9 -0
  13. package/@ones-editor/graph-embed/src/config/index.d.ts +9 -1
  14. package/@ones-editor/graph-embed/src/flowchart/flowchart-embed.d.ts +1 -1
  15. package/@ones-editor/graph-embed/src/flowchart/flowchart-helper.d.ts +2 -1
  16. package/@ones-editor/graph-embed/src/flowchart/flowchart.d.ts +11 -3
  17. package/@ones-editor/graph-embed/src/helper/graph-base.d.ts +29 -23
  18. package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +3 -4
  19. package/@ones-editor/graph-embed/src/helper/graph-dom/code-editor.d.ts +4 -0
  20. package/@ones-editor/graph-embed/src/helper/graph-dom/draw-dom.d.ts +16 -0
  21. package/@ones-editor/graph-embed/src/helper/graph-dom/layout-dom.d.ts +25 -0
  22. package/@ones-editor/graph-embed/src/helper/graph-dom/view-select.d.ts +22 -0
  23. package/@ones-editor/graph-embed/src/helper/graph-exclusive-handler.d.ts +13 -0
  24. package/@ones-editor/graph-embed/src/helper/graph-quick-commands.d.ts +3 -0
  25. package/@ones-editor/graph-embed/src/helper/utils.d.ts +4 -0
  26. package/@ones-editor/graph-embed/src/index.d.ts +3 -2
  27. package/@ones-editor/graph-embed/src/lang/en-us.d.ts +11 -6
  28. package/@ones-editor/graph-embed/src/lang/ja-jp.d.ts +11 -6
  29. package/@ones-editor/graph-embed/src/lang/zh-cn.d.ts +11 -6
  30. package/@ones-editor/graph-embed/src/mermaid/mermaid-embed.d.ts +1 -1
  31. package/@ones-editor/graph-embed/src/mermaid/mermaid-helper.d.ts +1 -0
  32. package/@ones-editor/graph-embed/src/mermaid/mermaid.d.ts +12 -4
  33. package/@ones-editor/graph-embed/src/plantuml/plantuml-embed.d.ts +1 -1
  34. package/@ones-editor/graph-embed/src/plantuml/plantuml-helper.d.ts +2 -1
  35. package/@ones-editor/graph-embed/src/plantuml/plantuml.d.ts +11 -3
  36. package/@ones-editor/graph-embed/src/types.d.ts +41 -0
  37. package/@ones-editor/image-embed/src/types.d.ts +0 -1
  38. package/@ones-editor/table-block/src/commands/select-column.d.ts +1 -0
  39. package/@ones-editor/table-block/src/commands/select-rows.d.ts +1 -0
  40. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  41. package/@ones-editor/ui/src/emoji-popup/emoji-popup.d.ts +21 -0
  42. package/@ones-editor/ui/src/emoji-popup/index.d.ts +8 -0
  43. package/@ones-editor/ui/src/index.d.ts +1 -0
  44. package/@ones-editor/ui/src/locale/en-us.d.ts +1 -0
  45. package/@ones-editor/ui/src/locale/ja-jp.d.ts +1 -0
  46. package/@ones-editor/ui/src/locale/zh-cn.d.ts +1 -0
  47. package/@ones-editor/ui/src/providers/emoji.d.ts +12 -0
  48. package/@ones-editor/ui/src/providers/insert-menu.d.ts +2 -2
  49. package/@ones-editor/ui/src/providers/utils/add-section.d.ts +9 -0
  50. package/@ones-editor/ui/src/providers/utils/index.d.ts +2 -0
  51. package/@ones-editor/ui/src/quick-menu/index.d.ts +2 -1
  52. package/@ones-editor/ui/src/quick-menu/quick-command-providers.d.ts +3 -3
  53. package/@ones-editor/ui/src/quick-menu/types.d.ts +2 -2
  54. package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +3 -0
  55. package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +2 -0
  56. package/@ones-editor/ui-base/src/emoji-item/emoji-item.d.ts +1 -2
  57. package/@ones-editor/ui-base/src/emoji-palette/default-emoji-palette.d.ts +3 -0
  58. package/@ones-editor/ui-base/src/emoji-palette/index.d.ts +10 -13
  59. package/@ones-editor/ui-base/src/emoji-palette/types.d.ts +10 -0
  60. package/@ones-editor/ui-base/src/index.d.ts +2 -0
  61. package/dist/custom/image-preview-handler.d.ts +11 -0
  62. package/dist/index.d.ts +2 -1
  63. package/dist/index.js +4805 -3725
  64. package/dist/types.d.ts +3 -1
  65. package/package.json +1 -7
  66. package/@ones-editor/graph-embed/assets/index.d.ts +0 -2
  67. package/@ones-editor/graph-embed/types/index.d.ts +0 -16
  68. package/@ones-editor/server-tools/package.json +0 -22
  69. package/@ones-editor/server-tools/src/fake-browser.d.ts +0 -1
  70. package/@ones-editor/server-tools/src/from-markdown/index.d.ts +0 -1
  71. package/@ones-editor/server-tools/src/index.d.ts +0 -2
  72. package/@ones-editor/server-tools/src/to-markdown/blocks/code.d.ts +0 -3
  73. package/@ones-editor/server-tools/src/to-markdown/blocks/index.d.ts +0 -12
  74. package/@ones-editor/server-tools/src/to-markdown/blocks/list.d.ts +0 -14
  75. package/@ones-editor/server-tools/src/to-markdown/blocks/table.d.ts +0 -3
  76. package/@ones-editor/server-tools/src/to-markdown/blocks/text.d.ts +0 -4
  77. package/@ones-editor/server-tools/src/to-markdown/boxes/br.d.ts +0 -1
  78. package/@ones-editor/server-tools/src/to-markdown/boxes/date.d.ts +0 -2
  79. package/@ones-editor/server-tools/src/to-markdown/boxes/file.d.ts +0 -11
  80. package/@ones-editor/server-tools/src/to-markdown/boxes/index.d.ts +0 -16
  81. package/@ones-editor/server-tools/src/to-markdown/boxes/known-link.d.ts +0 -11
  82. package/@ones-editor/server-tools/src/to-markdown/boxes/mathjax.d.ts +0 -2
  83. package/@ones-editor/server-tools/src/to-markdown/boxes/mention.d.ts +0 -7
  84. package/@ones-editor/server-tools/src/to-markdown/boxes/task-link.d.ts +0 -2
  85. package/@ones-editor/server-tools/src/to-markdown/convert-block.d.ts +0 -3
  86. package/@ones-editor/server-tools/src/to-markdown/convert-box.d.ts +0 -3
  87. package/@ones-editor/server-tools/src/to-markdown/embeds/drawio.d.ts +0 -2
  88. package/@ones-editor/server-tools/src/to-markdown/embeds/file-list.d.ts +0 -5
  89. package/@ones-editor/server-tools/src/to-markdown/embeds/file.d.ts +0 -2
  90. package/@ones-editor/server-tools/src/to-markdown/embeds/flowchart.d.ts +0 -2
  91. package/@ones-editor/server-tools/src/to-markdown/embeds/hr.d.ts +0 -1
  92. package/@ones-editor/server-tools/src/to-markdown/embeds/image.d.ts +0 -18
  93. package/@ones-editor/server-tools/src/to-markdown/embeds/index.d.ts +0 -3
  94. package/@ones-editor/server-tools/src/to-markdown/embeds/mathjax.d.ts +0 -2
  95. package/@ones-editor/server-tools/src/to-markdown/embeds/media.d.ts +0 -2
  96. package/@ones-editor/server-tools/src/to-markdown/embeds/mermaid.d.ts +0 -2
  97. package/@ones-editor/server-tools/src/to-markdown/embeds/plantuml.d.ts +0 -2
  98. package/@ones-editor/server-tools/src/to-markdown/embeds/sub-pages.d.ts +0 -2
  99. package/@ones-editor/server-tools/src/to-markdown/embeds/task-list.d.ts +0 -7
  100. package/@ones-editor/server-tools/src/to-markdown/embeds/toc.d.ts +0 -2
  101. package/@ones-editor/server-tools/src/to-markdown/embeds/webpage.d.ts +0 -5
  102. package/@ones-editor/server-tools/src/to-markdown/embeds/xmind.d.ts +0 -8
  103. package/@ones-editor/server-tools/src/to-markdown/index.d.ts +0 -1
  104. package/@ones-editor/server-tools/src/to-markdown/types.d.ts +0 -7
  105. package/@ones-editor/server-tools/src/tools.d.ts +0 -1
  106. package/@ones-editor/server-tools/src/utils/editor-doc.d.ts +0 -22
  107. package/@ones-editor/server-tools/src/utils/object.d.ts +0 -1
@@ -0,0 +1,21 @@
1
+ import { OnesEditor, OnesEditorCustom } from '../../../../@ones-editor/core';
2
+ import { EmojiPalette } from '../../../../@ones-editor/ui-base';
3
+ export interface EmojiPopupCallbacks {
4
+ onSelectEmoji: (emoji: string, closePopup: VoidFunction) => void;
5
+ onClose: VoidFunction;
6
+ }
7
+ export declare class EmojiPopup implements OnesEditorCustom {
8
+ private editor;
9
+ private popup;
10
+ private popupContent;
11
+ emojiPalette: EmojiPalette;
12
+ private latestPopupCallbacks;
13
+ constructor(editor: OnesEditor);
14
+ private closePopup;
15
+ private handleEmojiSelect;
16
+ private handlePopupClose;
17
+ private populateEmojiPopupContent;
18
+ setCallbacks(callbacks: EmojiPopupCallbacks): void;
19
+ show(rect: DOMRect): void;
20
+ destroy(): void;
21
+ }
@@ -0,0 +1,8 @@
1
+ import { OnesEditor } from '../../../../@ones-editor/core';
2
+ import { EmojiPopupCallbacks } from './emoji-popup';
3
+ export interface ShowEmojiPopupOptions extends EmojiPopupCallbacks {
4
+ currentEmoji?: string;
5
+ anchor: HTMLElement;
6
+ }
7
+ declare function showEmojiPopup(editor: OnesEditor, options: ShowEmojiPopupOptions): void;
8
+ export { showEmojiPopup, };
@@ -36,6 +36,7 @@ import { ReadonlyToolbar } from './readonly-toolbar';
36
36
  import { ReadonlyToolbarCommandProvider, ReadonlyCommandOptions } from './readonly-toolbar/types';
37
37
  import { AddCommentToOldDocCommandProvider } from './readonly-toolbar/add-comment-to-old-doc';
38
38
  import ClipboardProvider from './providers/clipboard-provider';
39
+ export { showEmojiPopup } from './emoji-popup';
39
40
  export * from './providers/utils/clipboard';
40
41
  export * from './providers/utils';
41
42
  export * from './box-helper/standard-box-commands';
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  inlineBox: {
14
14
  math: string;
15
15
  link: string;
16
+ emoji: string;
16
17
  };
17
18
  };
18
19
  link: {
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  inlineBox: {
14
14
  math: string;
15
15
  link: string;
16
+ emoji: string;
16
17
  };
17
18
  };
18
19
  link: {
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  inlineBox: {
14
14
  math: string;
15
15
  link: string;
16
+ emoji: string;
16
17
  };
17
18
  };
18
19
  link: {
@@ -0,0 +1,12 @@
1
+ import { BlockElement, CommandItem, CommandParams, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
2
+ export declare class EmojiProvider implements OnesEditorCommandProvider {
3
+ private editor;
4
+ id: string;
5
+ constructor(editor: OnesEditor);
6
+ create(): CommandItem[];
7
+ isDisabled: (editor: OnesEditor, block: BlockElement, range: SelectionRange) => boolean;
8
+ getAvailableCommands: (editor: OnesEditor, block: BlockElement, range: SelectionRange, params?: CommandParams) => CommandItem[];
9
+ getInsertCommands: () => CommandItem[];
10
+ executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, item: CommandItem) => boolean;
11
+ executeInsertCommand(editor: OnesEditor, containerId: string, blockIndex: number, item: CommandItem): boolean;
12
+ }
@@ -9,8 +9,8 @@ export default class InsertMenuProvider extends ProxyProvider {
9
9
  providers: OnesEditorCommandProvider[];
10
10
  quickProviders: QuickMenuCommandProvider[];
11
11
  constructor(editor: OnesEditor, options?: CommandParams | undefined);
12
- getInsertCommands: (editor: OnesEditor, containerId: string) => CommandItem[];
13
- getAvailableCommands: (editor: OnesEditor, block: BlockElement, range: SelectionRange) => CommandItem[];
12
+ getInsertCommands: (editor: OnesEditor, containerId: string, params?: CommandParams) => CommandItem[];
13
+ getAvailableCommands: (editor: OnesEditor, block: BlockElement, range: SelectionRange, params?: CommandParams) => CommandItem[];
14
14
  executeInsertCommand: (editor: OnesEditor, containerId: string, blockIndex: number, item: CommandItemWithSource, params: CommandParams) => boolean;
15
15
  executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, item: CommandItemWithSource, params: CommandParams) => boolean;
16
16
  }
@@ -1,2 +1,11 @@
1
1
  import { CommandItem } from '../../../../../@ones-editor/core';
2
+ declare const GroupOrder: {
3
+ basics: number;
4
+ system: number;
5
+ common: number;
6
+ thirdParty: number;
7
+ };
8
+ type GroupType = keyof typeof GroupOrder;
2
9
  export declare const addSection: (items: CommandItem[]) => CommandItem[];
10
+ export declare const createSectionByGroup: (item: CommandItem, before: GroupType) => CommandItem;
11
+ export {};
@@ -1,2 +1,4 @@
1
1
  import { OnesEditor } from '../../../../../@ones-editor/core';
2
+ import { createSectionByGroup } from './add-section';
2
3
  export declare const isSelectedTitleBlock: (editor: OnesEditor) => boolean;
4
+ export { createSectionByGroup };
@@ -1,4 +1,4 @@
1
- import { OnesEditor, CommandItem, CommandFilterId, CommandFilter } from '../../../../@ones-editor/core';
1
+ import { OnesEditor, CommandItem, CommandItemWithSource, CommandFilterId, CommandFilter } from '../../../../@ones-editor/core';
2
2
  import { OnesEditorAutoSuggest } from '../../../../@ones-editor/ui-base';
3
3
  import { QuickMenuOptions } from './types';
4
4
  export default class OnesEditorQuickMenu {
@@ -12,6 +12,7 @@ export default class OnesEditorQuickMenu {
12
12
  get menu(): import("@ones-editor/ui-base").ManualMenu | import("@ones-editor/ui-base/src/mobile-command-bar/mobile-bottom-menu").MobileBottomMenu;
13
13
  addFilter(id: CommandFilterId, filter: CommandFilter): void;
14
14
  destroy(): void;
15
+ filterItems: (items: CommandItemWithSource[], search: string) => CommandItemWithSource[];
15
16
  queryItems: (suggest: unknown, text: string) => Promise<CommandItem[]>;
16
17
  onClose: () => void;
17
18
  onShow: (suggest: OnesEditorAutoSuggest, containerId: string, blockIndex: number, offset: number) => boolean;
@@ -1,8 +1,8 @@
1
- import { AbstractProvider, CommandItemWithSource, OnesEditor, OnesEditorCommandProviders, SelectionRange } from '../../../../@ones-editor/core';
1
+ import { AbstractProvider, CommandItemWithSource, CommandParams, OnesEditor, OnesEditorCommandProviders, SelectionRange } from '../../../../@ones-editor/core';
2
2
  export declare class QuickCommandProviders extends AbstractProvider implements OnesEditorCommandProviders {
3
3
  protected editor: OnesEditor;
4
4
  id: string;
5
5
  constructor(editor: OnesEditor);
6
- getCommands(range: SelectionRange): CommandItemWithSource[];
7
- executeCommand: (range: SelectionRange, item: CommandItemWithSource) => {};
6
+ getCommands(range: SelectionRange, params?: CommandParams): CommandItemWithSource[];
7
+ executeCommand: (range: SelectionRange, item: CommandItemWithSource, params: CommandParams) => {};
8
8
  }
@@ -1,11 +1,11 @@
1
- import { CommandItem, BlockOptions, OnesEditor, BlockElement, SelectionRange } from '../../../../@ones-editor/core';
1
+ import { CommandItem, BlockOptions, OnesEditor, BlockElement, SelectionRange, CommandParams } from '../../../../@ones-editor/core';
2
2
  export interface QuickMenuItem extends CommandItem {
3
3
  itemType: 'insert-block';
4
4
  blockType?: string;
5
5
  blockOptions?: BlockOptions;
6
6
  commandProvider?: QuickMenuCommandProvider;
7
7
  }
8
- export interface QuickMenuCommandParams {
8
+ export interface QuickMenuCommandParams extends CommandParams {
9
9
  from: 'block-menu' | 'quick-menu' | 'add-block-menu';
10
10
  }
11
11
  export interface QuickMenuCommandInline extends QuickMenuCommandParams {
@@ -17,6 +17,7 @@ export interface AutoSuggestMenuOptions {
17
17
  onClose?: () => void;
18
18
  onShow?: (menu: AutoSuggestMenu) => boolean | undefined;
19
19
  onShown?: (menu: AutoSuggestMenu) => void;
20
+ onSubBarShown?: (menu: AutoSuggestMenu) => void;
20
21
  onClickItem: (menu: AutoSuggestMenu, item: CommandItem) => void;
21
22
  queryItems: (menu: AutoSuggestMenu, text: string) => Promise<CommandItem[]>;
22
23
  renderMenuItem?: (menu: AutoSuggestMenu, item: CommandItem) => HTMLElement | undefined;
@@ -26,6 +27,7 @@ export default class AutoSuggestMenu {
26
27
  menu: ManualMenu | MobileBottomMenu;
27
28
  private currentText;
28
29
  handleSearchText: (text: string) => void;
30
+ get searchText(): string;
29
31
  constructor(options: AutoSuggestMenuOptions);
30
32
  private setItems;
31
33
  popup(anchor: HTMLElement, options?: {
@@ -45,4 +47,5 @@ export default class AutoSuggestMenu {
45
47
  handleClose: () => void;
46
48
  handleKeydown: (event: KeyboardEvent) => boolean;
47
49
  protected highlightText(search: string, items?: CommandItem[]): void;
50
+ handleSubBarShown: () => void;
48
51
  }
@@ -27,6 +27,7 @@ export interface AutoSuggestOptions {
27
27
  queryItems: (menu: OnesEditorAutoSuggest, text: string) => Promise<CommandItem[]>;
28
28
  renderMenuItem?: (menu: OnesEditorAutoSuggest, item: CommandItem) => HTMLElement | undefined;
29
29
  onShown?: (menu: OnesEditorAutoSuggest) => void;
30
+ onSubBarShown?: (menu: OnesEditorAutoSuggest) => void;
30
31
  }
31
32
  declare class OnesEditorAutoSuggest implements OnesEditorInputHandler {
32
33
  private editor;
@@ -48,6 +49,7 @@ declare class OnesEditorAutoSuggest implements OnesEditorInputHandler {
48
49
  private onClose;
49
50
  private onShow;
50
51
  private onShown;
52
+ private onSubBarShown;
51
53
  private onClickItem;
52
54
  private queryItems;
53
55
  private renderMenuItem;
@@ -11,9 +11,8 @@ export declare class EmojiItem implements CommandItem, OnesEditorCustom {
11
11
  childrenPlacement: "bottom-start";
12
12
  childrenMenuId: string;
13
13
  closeable: Closeable;
14
- constructor();
14
+ constructor(editor: OnesEditor);
15
15
  beforePopup(): void;
16
16
  setCloseable(closeable: Closeable): void;
17
17
  destroy(): void;
18
- static get(editor: OnesEditor): EmojiItem;
19
18
  }
@@ -0,0 +1,3 @@
1
+ import './index.scss';
2
+ import { EmojiPaletteOptions } from './types';
3
+ export declare function defaultPaletteRenderer(parent: HTMLDivElement, options: EmojiPaletteOptions): () => void;
@@ -1,23 +1,20 @@
1
- import { CommandItem } from '../../../../@ones-editor/core';
1
+ import { CommandItem, OnesEditor } from '../../../../@ones-editor/core';
2
2
  import { TypedEmitter } from 'tiny-typed-emitter';
3
3
  import './index.scss';
4
- export interface EmojiPaletteEvents {
4
+ export type { OnesEditorEmojiPaletteOptions, EmojiSelectedHandler } from './types';
5
+ interface EmojiPaletteEvents {
5
6
  onSelectEmoji: (emoji: string) => void;
6
7
  }
7
8
  export declare class EmojiPalette extends TypedEmitter<EmojiPaletteEvents> implements CommandItem {
9
+ private editor;
8
10
  id: string;
9
11
  name: string;
10
12
  element: HTMLDivElement;
11
- private emojiData;
12
- private emojiSearch;
13
- private emojiContent;
14
- private emojiNavigation;
15
- constructor();
16
- private initEmojiData;
17
- private handleSearch;
18
- private handleEmojiSelect;
19
- private handleSelectCategory;
20
- private handleCategoryReach;
21
- updateComponents(): void;
13
+ private currentEmoji;
14
+ private unmountPalette;
15
+ constructor(editor: OnesEditor);
16
+ private renderPalette;
17
+ render(): Promise<void>;
18
+ setCurrentEmoji(emoji: string): void;
22
19
  destroy(): void;
23
20
  }
@@ -0,0 +1,10 @@
1
+ export type EmojiSelectedHandler = (emoji: string) => void;
2
+ export type EmojiPaletteOptions = {
3
+ emoji: string;
4
+ onSelectEmoji: EmojiSelectedHandler;
5
+ };
6
+ export type UnmountPalette = () => void;
7
+ export type EmojiPaletteRenderer = (parent: HTMLDivElement, options: EmojiPaletteOptions) => UnmountPalette;
8
+ export type OnesEditorEmojiPaletteOptions = {
9
+ emojiPaletteRenderer: EmojiPaletteRenderer;
10
+ };
@@ -18,4 +18,6 @@ export * from './emoji-item';
18
18
  export * from './mobile-command-bar/mobile-bottom-menu';
19
19
  export * from './text-button';
20
20
  export { scrollBarIntoView } from './mobile-command-bar/scroll-into-view';
21
+ export { EmojiPalette } from './emoji-palette';
22
+ export type { OnesEditorEmojiPaletteOptions, EmojiSelectedHandler } from './emoji-palette';
21
23
  export { tippy, };
@@ -0,0 +1,11 @@
1
+ import { OnesEditor, OnesEditorCustom } from '../../@ones-editor/core';
2
+ export declare class ImagePreviewHandler implements OnesEditorCustom {
3
+ private editor;
4
+ private onPreview;
5
+ private lastClickPosition;
6
+ constructor(editor: OnesEditor, onPreview: (editor: OnesEditor, img: HTMLImageElement) => void);
7
+ handleImagePreview: (e: MouseEvent) => void;
8
+ handleMouseUp: (e: MouseEvent) => void;
9
+ handleMouseDown: (e: MouseEvent) => void;
10
+ destroy: () => void;
11
+ }
package/dist/index.d.ts CHANGED
@@ -60,6 +60,7 @@ export declare function getDefaultOnesEditorOptions(options: CreateOnesEditorOpt
60
60
  blockHooks: (import("@ones-editor/core").OnesEditorBlockHook | BlockExclusiveHook)[];
61
61
  textRenders: OnesEditorBlockRenderer[];
62
62
  options: {
63
+ quickMenu: import("@ones-editor/ui").QuickMenuOptions;
63
64
  drawIO?: import("@ones-editor/drawio-embed").DrawIoOptions | undefined;
64
65
  media?: import("@ones-editor/media-embed").MediaEmbedOptions | undefined;
65
66
  mermaid?: import("@ones-editor/graph-embed").MermaidEmbedOptions | undefined;
@@ -72,7 +73,6 @@ export declare function getDefaultOnesEditorOptions(options: CreateOnesEditorOpt
72
73
  mention?: import("@ones-editor/mention").MentionOptions | undefined;
73
74
  comment?: import("@ones-editor/comments").OnesEditorCommentOptions | undefined;
74
75
  list?: import("@ones-editor/list-block").ListOptions | undefined;
75
- quickMenu?: import("@ones-editor/ui").QuickMenuOptions | undefined;
76
76
  templates?: import("@ones-editor/templates").TemplateOptions | undefined;
77
77
  custom?: Record<string, unknown> | undefined;
78
78
  popover?: import("@ones-editor/ui-base").PopoverOptions | undefined;
@@ -83,6 +83,7 @@ export declare function getDefaultOnesEditorOptions(options: CreateOnesEditorOpt
83
83
  link?: import("@ones-editor/ui/src/link-popup").LinkOptions | undefined;
84
84
  columns?: import("@ones-editor/layout-block/src/types").EditorConfigLayoutOptions | undefined;
85
85
  mobile?: import("@ones-editor/core").MobileClient | undefined;
86
+ emojiPalette?: import("@ones-editor/ui-base").OnesEditorEmojiPaletteOptions | undefined;
86
87
  };
87
88
  };
88
89
  shortcuts: import("@ones-editor/core").ShortcutRecords[];