@ones-editor/editor 1.1.15-beta.2 → 1.1.15-beta.3

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.
@@ -1,5 +1,5 @@
1
1
  import { BlockElement, OnesEditor } from '../../../../../../@ones-editor/core';
2
2
  import type { GetAllQuickMenuItemsOptions } from '../../../../../../@ones-editor/ui';
3
3
  import type { BlockMenuItem } from '../types';
4
- export declare function getAllInsertBlockItems(editor: OnesEditor, source: 'insert-block' | 'insert-block-before', options: GetAllQuickMenuItemsOptions): BlockMenuItem[];
4
+ export declare function getAllInsertBlockItems(editor: OnesEditor, source: 'insert-block' | 'insert-block-before', options?: GetAllQuickMenuItemsOptions): BlockMenuItem[];
5
5
  export declare function executeInsertBlockCommand(editor: OnesEditor, block: BlockElement, item: BlockMenuItem, insertAbove?: boolean): Promise<BlockElement | null> | undefined;
@@ -1,3 +1,4 @@
1
1
  import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
2
2
  import { DocCodeBlockData } from '../code-block-data';
3
3
  export declare function createCodeBlockHeader(editor: OnesEditor, block: BlockElement, codeData: DocCodeBlockData): void;
4
+ export declare function getCodeBlockHeader(block: BlockElement): HTMLElement;
@@ -1,7 +1,6 @@
1
1
  import { BlockElement, OnesEditor, SelectedBlock } from '../../types';
2
2
  export type GetAllChildBlocksOptions = {
3
3
  simpleBlockOnly?: boolean;
4
- visibleOnly?: boolean;
5
4
  };
6
5
  export declare function getAllChildBlocks(editor: OnesEditor, options?: GetAllChildBlocksOptions): BlockElement[];
7
6
  export declare function getAllSelectedBlocks(editor: OnesEditor, options?: GetAllChildBlocksOptions): SelectedBlock[];
@@ -6,4 +6,4 @@ export type BeforeCopyCallback = (editor: OnesEditor, event: ClipboardEvent, doc
6
6
  export declare function editorCopy(editor: OnesEditor, event: ClipboardEvent, beforeCopy?: BeforeCopyCallback): void;
7
7
  export declare function editorCopyDoc(editor: OnesEditor, doc: DocObject): void;
8
8
  export declare function editorCopyWithoutEvent(editor: OnesEditor, beforeCopy?: BeforeCopyCallback): void;
9
- export declare function editorCopyBlock(editor: OnesEditor, block: BlockElement): Promise<void>;
9
+ export declare function editorCopyBlock(editor: OnesEditor, block: BlockElement): void;
@@ -144,7 +144,6 @@ export interface CommandItem {
144
144
  ellipsisTooltip?: string;
145
145
  disableTooltip?: boolean;
146
146
  disableReason?: string;
147
- hideGroupItem?: boolean;
148
147
  setCloseable?: (closeable: Closeable) => void;
149
148
  beforePopup?: (parent: unknown) => void;
150
149
  }
@@ -2,7 +2,8 @@ export declare function setClipboardDataByEvent(items: {
2
2
  type: string;
3
3
  data: string;
4
4
  }[], event: ClipboardEvent): Promise<boolean>;
5
+ export declare const copyTextToClipboard: (text: string) => Promise<boolean>;
5
6
  export declare function setClipboardData(items: {
6
7
  type: string;
7
8
  data: string | Blob;
8
- }[]): Promise<boolean>;
9
+ }[]): void;
@@ -1,4 +1,3 @@
1
- import { ExcalidrawElement } from '@excalidraw/excalidraw/types/element/types';
2
1
  import { BinaryFiles } from '@excalidraw/excalidraw/types/types';
3
2
  export type ExcalidrawEmbedData = {
4
3
  src: string;
@@ -6,5 +5,5 @@ export type ExcalidrawEmbedData = {
6
5
  };
7
6
  export type ExcalidrawSvgMetadata = {
8
7
  files: BinaryFiles;
9
- elements: readonly ExcalidrawElement[];
8
+ elements: readonly unknown[];
10
9
  };
@@ -56,6 +56,7 @@ export default class FindDialog {
56
56
  private showReplace;
57
57
  private hideSearchResult;
58
58
  private showSearchResult;
59
+ private handleDocumentKeyDown;
59
60
  show(options?: {
60
61
  showFindAndReplace: boolean;
61
62
  }): void;
@@ -1,4 +1,4 @@
1
- import { BlockElement, CommandItem, OnesEditor, OnesEditorCustom } from '../../../../@ones-editor/core';
1
+ import { BlockElement, OnesEditor, OnesEditorCustom } from '../../../../@ones-editor/core';
2
2
  export declare class HeadingBlockCollapseButton implements OnesEditorCustom {
3
3
  private editor;
4
4
  constructor(editor: OnesEditor);
@@ -7,8 +7,5 @@ export declare class HeadingBlockCollapseButton implements OnesEditorCustom {
7
7
  handleHoverBlock: (hoveringBlock: BlockElement | null, oldHoveringBlock: BlockElement | null) => void;
8
8
  handleClick: (editor: OnesEditor, event: MouseEvent) => void;
9
9
  showCollapseButtons(): void;
10
- handleBeforeExecCommand: (editor: OnesEditor, command: CommandItem, option: {
11
- source: string;
12
- }) => void;
13
10
  destroy(): void;
14
11
  }
@@ -1,4 +1,4 @@
1
- import * as markmap from 'markmap-view';
1
+ import { IMarkmapOptions } from 'markmap-view/types/types';
2
2
  import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
3
3
  import { ToMindmapOptions } from './types';
4
- export declare function toMindmap(editor: OnesEditor, block: BlockElement, mindmapOptions: markmap.Markmap['options'], options: ToMindmapOptions): void;
4
+ export declare function toMindmap(editor: OnesEditor, block: BlockElement, mindmapOptions: IMarkmapOptions, options: ToMindmapOptions): void;
@@ -1,5 +1,5 @@
1
1
  import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
2
- import { Markmap } from 'markmap-view';
2
+ import { IMarkmapOptions } from 'markmap-view/types/types';
3
3
  export interface ToMindmapOptions {
4
4
  mindmapTools: MindmapTools;
5
5
  reset?: boolean;
@@ -7,7 +7,7 @@ export interface ToMindmapOptions {
7
7
  selectBlock?: boolean;
8
8
  }
9
9
  export interface MindmapTools {
10
- toMindmap: (editor: OnesEditor, block: BlockElement, mindmapOptions: Markmap['options'], options: ToMindmapOptions) => void;
10
+ toMindmap: (editor: OnesEditor, block: BlockElement, mindmapOptions: IMarkmapOptions, options: ToMindmapOptions) => void;
11
11
  closeMindmap: (editor: OnesEditor, block: BlockElement) => void;
12
12
  fitMindmap: (editor: OnesEditor, block: BlockElement) => void;
13
13
  }