@ones-editor/editor 2.1.7-beta.14 → 2.1.7-beta.15
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/@ones-editor/core/src/core/containers/root-container.d.ts +3 -0
- package/@ones-editor/core/src/core/types.d.ts +8 -4
- package/@ones-editor/core/src/core/undo-manager/actions/action.d.ts +5 -1
- package/@ones-editor/core/src/core/undo-manager/actions/block-action.d.ts +1 -0
- package/@ones-editor/core/src/core/undo-manager/actions/update-block-data-action.d.ts +1 -0
- package/@ones-editor/core/src/utils/dom.d.ts +2 -2
- package/@ones-editor/image-embed/src/image-object.d.ts +1 -0
- package/@ones-editor/mention/src/mention.d.ts +2 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/index.d.ts +3 -6
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert-menu.d.ts +3 -3
- package/@ones-editor/mobile-helper/src/fixed-toolbar/toolbar-handler.d.ts +1 -0
- package/@ones-editor/scroll-container/src/utils.d.ts +1 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/link-popup/mobile-link-popup.d.ts +22 -0
- package/@ones-editor/ui/src/link-popup/types.d.ts +34 -0
- package/@ones-editor/ui/src/link-popup/web-link-popup.d.ts +19 -0
- package/@ones-editor/ui/src/providers/insert-above.d.ts +2 -2
- package/@ones-editor/ui/src/providers/insert-after.d.ts +2 -2
- package/@ones-editor/ui/src/providers/insert-box-provider.d.ts +3 -3
- package/@ones-editor/ui/src/providers/insert-menu.d.ts +3 -3
- package/@ones-editor/ui/src/providers/mobile-link-provider.d.ts +2 -2
- package/@ones-editor/ui/src/providers/proxy-provider.d.ts +3 -3
- package/@ones-editor/ui/src/providers/text-command-provider.d.ts +2 -2
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +2 -0
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +2 -0
- package/@ones-editor/ui-base/src/color-button/text-color-item.d.ts +3 -2
- package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +1 -0
- package/@ones-editor/ui-base/src/command-bar/fixed-toolbar.d.ts +1 -2
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +2 -1
- package/@ones-editor/ui-base/src/index.d.ts +1 -0
- package/@ones-editor/ui-base/src/mobile-command-bar/mobile-bottom-menu.d.ts +0 -1
- package/@ones-editor/ui-base/src/mobile-command-bar/scroll-into-view.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1321 -1163
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import './index.scss';
|
|
2
|
+
import { TypedEmitter } from 'tiny-typed-emitter';
|
|
3
|
+
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
4
|
+
import { LinkEditorEvents, LinkEditorOptions, LinkPopupType } from './types';
|
|
5
|
+
export declare class MobileLinkPopup extends TypedEmitter<LinkEditorEvents> implements LinkPopupType {
|
|
6
|
+
private editor;
|
|
7
|
+
private content;
|
|
8
|
+
private options;
|
|
9
|
+
private linkPopup;
|
|
10
|
+
private onShow;
|
|
11
|
+
constructor(editor: OnesEditor, content: HTMLElement, options: LinkEditorOptions);
|
|
12
|
+
close: () => void;
|
|
13
|
+
private createItems;
|
|
14
|
+
private createHeader;
|
|
15
|
+
handleOk: () => void;
|
|
16
|
+
handleClose: () => void;
|
|
17
|
+
handleShown: () => void;
|
|
18
|
+
disabledSubmit: () => void;
|
|
19
|
+
enableSubmit: () => void;
|
|
20
|
+
manualShow: () => void;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Placement } from '../../../../@ones-editor/ui-base';
|
|
2
|
+
import { TypedEmitter } from 'tiny-typed-emitter';
|
|
3
|
+
export interface FormField {
|
|
4
|
+
getInputValue: () => string;
|
|
5
|
+
setFieldError: (error: string) => void;
|
|
6
|
+
getField: () => HTMLElement;
|
|
7
|
+
}
|
|
8
|
+
export interface Form {
|
|
9
|
+
[key: string]: FormField;
|
|
10
|
+
}
|
|
11
|
+
export type OnFinished = (linkText: string, linkUrl: string) => void;
|
|
12
|
+
export type OnClose = () => void;
|
|
13
|
+
export type OnBeforeFormatUrl = (linkUrl: string) => string | false;
|
|
14
|
+
export interface LinkEditorOptions {
|
|
15
|
+
target: HTMLElement;
|
|
16
|
+
linkText: string;
|
|
17
|
+
linkUrl: string;
|
|
18
|
+
onFinished: OnFinished;
|
|
19
|
+
onClose?: OnClose;
|
|
20
|
+
onBeforeFormatUrl?: OnBeforeFormatUrl;
|
|
21
|
+
placement?: Placement;
|
|
22
|
+
}
|
|
23
|
+
export interface LinkEditorEvents {
|
|
24
|
+
show: () => void;
|
|
25
|
+
finished: () => void;
|
|
26
|
+
close: () => void;
|
|
27
|
+
}
|
|
28
|
+
export interface LinkPopupType extends TypedEmitter<LinkEditorEvents> {
|
|
29
|
+
disabledSubmit: () => void;
|
|
30
|
+
enableSubmit: () => void;
|
|
31
|
+
destroy: () => void;
|
|
32
|
+
close: () => void;
|
|
33
|
+
manualShow: () => void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TypedEmitter } from 'tiny-typed-emitter';
|
|
2
|
+
import { LinkEditorEvents, LinkEditorOptions, LinkPopupType } from './types';
|
|
3
|
+
import './index.scss';
|
|
4
|
+
export declare class LinkPopup extends TypedEmitter<LinkEditorEvents> implements LinkPopupType {
|
|
5
|
+
private content;
|
|
6
|
+
private options;
|
|
7
|
+
private linkPopup;
|
|
8
|
+
private onShow;
|
|
9
|
+
constructor(content: HTMLElement, options: LinkEditorOptions);
|
|
10
|
+
private createPopupContent;
|
|
11
|
+
handleOk: () => void;
|
|
12
|
+
handleClose: () => void;
|
|
13
|
+
close: () => void;
|
|
14
|
+
disabledSubmit: () => void;
|
|
15
|
+
enableSubmit: () => void;
|
|
16
|
+
manualShow: () => void;
|
|
17
|
+
static showPopup: (content: HTMLElement, options: LinkEditorOptions) => LinkPopup;
|
|
18
|
+
destroy(): void;
|
|
19
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, CommandParams, OnesEditor, SelectionRange } from '../../../../@ones-editor/core';
|
|
1
|
+
import { BlockElement, CommandItem, CommandItemWithSource, CommandParams, OnesEditor, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
2
|
import { ProxyProvider } from './proxy-provider';
|
|
3
3
|
export default class InsertAboveProvider extends ProxyProvider {
|
|
4
4
|
private editor;
|
|
5
5
|
id: string;
|
|
6
6
|
constructor(editor: OnesEditor);
|
|
7
7
|
getAvailableCommands: (editor: OnesEditor, block: BlockElement) => CommandItem[];
|
|
8
|
-
executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, command:
|
|
8
|
+
executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, command: CommandItemWithSource, params: CommandParams) => boolean;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, CommandParams, OnesEditor, SelectionRange } from '../../../../@ones-editor/core';
|
|
1
|
+
import { BlockElement, CommandItem, CommandItemWithSource, CommandParams, OnesEditor, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
2
|
import { ProxyProvider } from './proxy-provider';
|
|
3
3
|
export default class InsertAfterProvider extends ProxyProvider {
|
|
4
4
|
private editor;
|
|
5
5
|
id: string;
|
|
6
6
|
constructor(editor: OnesEditor);
|
|
7
7
|
getAvailableCommands: (editor: OnesEditor, block: BlockElement) => CommandItem[];
|
|
8
|
-
executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, command:
|
|
8
|
+
executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, command: CommandItemWithSource, params: CommandParams) => boolean;
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, CommandParams, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
|
|
1
|
+
import { BlockElement, CommandItem, CommandItemWithSource, CommandParams, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
2
|
import { ProxyProvider } from './proxy-provider';
|
|
3
3
|
export declare class InlineBoxCommandProvider extends ProxyProvider implements OnesEditorCommandProvider {
|
|
4
4
|
private editor;
|
|
@@ -7,6 +7,6 @@ export declare class InlineBoxCommandProvider extends ProxyProvider implements O
|
|
|
7
7
|
create(commands: CommandItem[]): CommandItem[];
|
|
8
8
|
getAvailableCommands: (editor: OnesEditor, block: BlockElement, range: SelectionRange) => CommandItem[];
|
|
9
9
|
getInsertCommands: (editor: OnesEditor, containerId: string) => CommandItem[];
|
|
10
|
-
executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, item:
|
|
11
|
-
executeInsertCommand: (editor: OnesEditor, containerId: string, blockIndex: number, item:
|
|
10
|
+
executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, item: CommandItemWithSource, params: CommandParams) => boolean;
|
|
11
|
+
executeInsertCommand: (editor: OnesEditor, containerId: string, blockIndex: number, item: CommandItemWithSource, params: CommandParams) => boolean;
|
|
12
12
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, CommandParams, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
|
|
1
|
+
import { BlockElement, CommandItem, CommandItemWithSource, CommandParams, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
2
|
import { ProxyProvider } from './proxy-provider';
|
|
3
3
|
import { QuickMenuCommandProvider } from '../quick-menu/types';
|
|
4
4
|
export default class InsertMenuProvider extends ProxyProvider {
|
|
@@ -11,6 +11,6 @@ export default class InsertMenuProvider extends ProxyProvider {
|
|
|
11
11
|
constructor(editor: OnesEditor, options?: CommandParams | undefined);
|
|
12
12
|
getInsertCommands: (editor: OnesEditor, containerId: string) => CommandItem[];
|
|
13
13
|
getAvailableCommands: (editor: OnesEditor, block: BlockElement, range: SelectionRange) => CommandItem[];
|
|
14
|
-
executeInsertCommand: (editor: OnesEditor, containerId: string, blockIndex: number, item:
|
|
15
|
-
executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, item:
|
|
14
|
+
executeInsertCommand: (editor: OnesEditor, containerId: string, blockIndex: number, item: CommandItemWithSource, params: CommandParams) => boolean;
|
|
15
|
+
executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, item: CommandItemWithSource, params: CommandParams) => boolean;
|
|
16
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, CommandParams, CommandResult, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
|
|
1
|
+
import { BlockElement, CommandItem, CommandItemWithSource, CommandParams, CommandResult, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
2
|
export declare class MobileLinkProvider implements OnesEditorCommandProvider {
|
|
3
3
|
id: string;
|
|
4
4
|
insertProvider: OnesEditorCommandProvider;
|
|
@@ -6,5 +6,5 @@ export declare class MobileLinkProvider implements OnesEditorCommandProvider {
|
|
|
6
6
|
constructor(editor: OnesEditor);
|
|
7
7
|
getSelectedLinkChild: (editor: OnesEditor, range: SelectionRange) => import("@ones-editor/core").TextBlockContentChild | null;
|
|
8
8
|
getAvailableCommands: (editor: OnesEditor, block: BlockElement, range: SelectionRange, params?: CommandParams) => CommandItem[];
|
|
9
|
-
executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, item:
|
|
9
|
+
executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, item: CommandItemWithSource, params: CommandParams, result?: CommandResult) => boolean;
|
|
10
10
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, CommandParams, CommandResult, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
|
|
1
|
+
import { BlockElement, CommandItem, CommandItemWithSource, CommandParams, CommandResult, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
2
|
export declare abstract class ProxyProvider implements OnesEditorCommandProvider {
|
|
3
3
|
abstract id: string;
|
|
4
4
|
providers: OnesEditorCommandProvider[];
|
|
5
5
|
getAvailableCommands: (editor: OnesEditor, block: BlockElement, range: SelectionRange, params?: CommandParams) => CommandItem[];
|
|
6
6
|
getInsertCommands: (editor: OnesEditor, containerId: string) => CommandItem[];
|
|
7
|
-
executeCommand(editor: OnesEditor, block: BlockElement, range: SelectionRange, command:
|
|
8
|
-
executeInsertCommand: (editor: OnesEditor, containerId: string, blockIndex: number, item:
|
|
7
|
+
executeCommand(editor: OnesEditor, block: BlockElement, range: SelectionRange, command: CommandItemWithSource, params: CommandParams, result?: CommandResult): boolean;
|
|
8
|
+
executeInsertCommand: (editor: OnesEditor, containerId: string, blockIndex: number, item: CommandItemWithSource, params: CommandParams, result?: CommandResult) => boolean;
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockAttributesHandler, BlockElement, CommandItem, CommandParams, CommandResult, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
|
|
1
|
+
import { BlockAttributesHandler, BlockElement, CommandItem, CommandItemWithSource, CommandParams, CommandResult, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
2
|
export default class TextCommandProvider implements OnesEditorCommandProvider {
|
|
3
3
|
private editor;
|
|
4
4
|
private options?;
|
|
@@ -7,7 +7,7 @@ export default class TextCommandProvider implements OnesEditorCommandProvider {
|
|
|
7
7
|
private providers;
|
|
8
8
|
constructor(editor: OnesEditor, options?: CommandParams | undefined);
|
|
9
9
|
getAvailableCommands(editor: OnesEditor, block: BlockElement, range: SelectionRange): CommandItem[];
|
|
10
|
-
executeCommand(editor: OnesEditor, block: BlockElement, range: SelectionRange, item:
|
|
10
|
+
executeCommand(editor: OnesEditor, block: BlockElement, range: SelectionRange, item: CommandItemWithSource, params: CommandParams, result?: CommandResult): boolean;
|
|
11
11
|
get blockAttributesHandler(): BlockAttributesHandler;
|
|
12
12
|
private executeCommandOnEmptyText;
|
|
13
13
|
private setCommandsStates;
|
|
@@ -16,6 +16,7 @@ export interface AutoSuggestMenuOptions {
|
|
|
16
16
|
disableSelectedScroll?: boolean;
|
|
17
17
|
onClose?: () => void;
|
|
18
18
|
onShow?: (menu: AutoSuggestMenu) => boolean | undefined;
|
|
19
|
+
onShown?: (menu: AutoSuggestMenu) => void;
|
|
19
20
|
onClickItem: (menu: AutoSuggestMenu, item: CommandItem) => void;
|
|
20
21
|
queryItems: (menu: AutoSuggestMenu, text: string) => Promise<CommandItem[]>;
|
|
21
22
|
renderMenuItem?: (menu: AutoSuggestMenu, item: CommandItem) => HTMLElement | undefined;
|
|
@@ -40,6 +41,7 @@ export default class AutoSuggestMenu {
|
|
|
40
41
|
handleSearchTextPure(text: string): Promise<void>;
|
|
41
42
|
handleClick: import("lodash").DebouncedFuncLeading<(menu: AbstractCommandBar, item: CommandItem) => void>;
|
|
42
43
|
handleShow: (menu: AbstractCommandBar) => void;
|
|
44
|
+
handleShown: () => void;
|
|
43
45
|
handleClose: () => void;
|
|
44
46
|
handleKeydown: (event: KeyboardEvent) => boolean;
|
|
45
47
|
protected highlightText(search: string, items?: CommandItem[]): void;
|
|
@@ -26,6 +26,7 @@ export interface AutoSuggestOptions {
|
|
|
26
26
|
onClickItem: (menu: OnesEditorAutoSuggest, item: CommandItem, anchor: AutoSuggestAnchor) => void;
|
|
27
27
|
queryItems: (menu: OnesEditorAutoSuggest, text: string) => Promise<CommandItem[]>;
|
|
28
28
|
renderMenuItem?: (menu: OnesEditorAutoSuggest, item: CommandItem) => HTMLElement | undefined;
|
|
29
|
+
onShown?: (menu: OnesEditorAutoSuggest) => void;
|
|
29
30
|
}
|
|
30
31
|
declare class OnesEditorAutoSuggest implements OnesEditorInputHandler {
|
|
31
32
|
private editor;
|
|
@@ -46,6 +47,7 @@ declare class OnesEditorAutoSuggest implements OnesEditorInputHandler {
|
|
|
46
47
|
deleteTrigger: () => boolean;
|
|
47
48
|
private onClose;
|
|
48
49
|
private onShow;
|
|
50
|
+
private onShown;
|
|
49
51
|
private onClickItem;
|
|
50
52
|
private queryItems;
|
|
51
53
|
private renderMenuItem;
|
|
@@ -17,13 +17,14 @@ export declare class TextColorItem extends TypedEmitter<ColorPaletteEvents> impl
|
|
|
17
17
|
element: HTMLButtonElement;
|
|
18
18
|
colorPaletteItem: ColorPaletteItem;
|
|
19
19
|
latestColors: [number | null, number | null];
|
|
20
|
+
private currentTextColors;
|
|
20
21
|
constructor(editor: OnesEditor, storageName?: string);
|
|
21
22
|
destroy(): void;
|
|
22
23
|
handlePaletteClick: (type: 'color' | 'backgroundColor' | 'clearColor', value: number) => void;
|
|
23
24
|
handleButtonClick: (event: MouseEvent) => void;
|
|
24
|
-
setLatestColors
|
|
25
|
+
private setLatestColors;
|
|
25
26
|
beforePopup: () => void;
|
|
26
27
|
updatePaletteColor(colors: [number | null, number | null]): void;
|
|
27
|
-
|
|
28
|
+
setCurrentTextColors(colors: [number | null, number | null]): void;
|
|
28
29
|
getButtonColor: () => (number | null)[];
|
|
29
30
|
}
|
|
@@ -25,6 +25,7 @@ export default abstract class CommandBar extends TypedEmitter<CommandBarEvents>
|
|
|
25
25
|
handleDocumentKeydown: (event: KeyboardEvent) => boolean;
|
|
26
26
|
protected handleDocumentMouseDown: (event: MouseEvent) => void;
|
|
27
27
|
protected handleHidden: () => void;
|
|
28
|
+
protected handleShown: () => void;
|
|
28
29
|
protected handleShow: () => void;
|
|
29
30
|
get popper(): Element | null;
|
|
30
31
|
private getSelectedItemIndex;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { CommandItem } from '../../../../@ones-editor/core';
|
|
2
2
|
import CommandBar from './command-bar';
|
|
3
|
-
import {
|
|
3
|
+
import { CommandBarOptions, CommandItemElement, ManualShowCommandBarOptions } from './types';
|
|
4
4
|
export default class FixedToolbar extends CommandBar {
|
|
5
5
|
constructor(parent: HTMLElement, items: CommandItem[], options?: CommandBarOptions);
|
|
6
6
|
protected initCommandBarElement(elem: HTMLElement): void;
|
|
7
7
|
protected initItemElement(item: CommandItem, elem: CommandItemElement): void;
|
|
8
8
|
close(): void;
|
|
9
|
-
onShown: (instance: AbstractManualCommandBar) => void;
|
|
10
9
|
getSubBarOptions: (item: CommandItem) => ManualShowCommandBarOptions;
|
|
11
10
|
destroy(): void;
|
|
12
11
|
protected getCommandBarRoot(): HTMLElement | null;
|
|
@@ -4,10 +4,12 @@ import type { GetReferenceClientRect, Placement } from 'tippy.js';
|
|
|
4
4
|
export { Placement };
|
|
5
5
|
export interface CommandBarEvents {
|
|
6
6
|
'show': (bar: AbstractCommandBar) => void;
|
|
7
|
+
'shown': (bar: AbstractCommandBar) => void;
|
|
7
8
|
'click': (bar: AbstractCommandBar, item: CommandItem, elem: HTMLElement) => void;
|
|
8
9
|
'close': (bar: AbstractCommandBar) => void;
|
|
9
10
|
'selectionChange': (bar: AbstractCommandBar, id: string) => void;
|
|
10
11
|
'closing': (bar: AbstractCommandBar, event: MouseEvent) => boolean | undefined;
|
|
12
|
+
'subBarShown': (bar: AbstractCommandBar, subBar: AbstractCommandBar) => void;
|
|
11
13
|
}
|
|
12
14
|
export interface ManualShowCommandBarOptions {
|
|
13
15
|
placement?: Placement;
|
|
@@ -19,7 +21,6 @@ export interface ManualShowCommandBarOptions {
|
|
|
19
21
|
getReferenceClientRect?: GetReferenceClientRect | null | undefined;
|
|
20
22
|
offset?: [number, number];
|
|
21
23
|
arrow?: boolean;
|
|
22
|
-
onShown?(instance: AbstractManualCommandBar): void;
|
|
23
24
|
}
|
|
24
25
|
export interface AbstractCommandBar extends TypedEmitter<CommandBarEvents> {
|
|
25
26
|
readonly isVisible: boolean;
|
|
@@ -8,7 +8,6 @@ declare class MobileBottomMenu extends CommandBar implements AbstractManualComma
|
|
|
8
8
|
createContentWithHeader: () => HTMLDivElement;
|
|
9
9
|
handleClose: () => void;
|
|
10
10
|
oldActiveElement: HTMLElement | null;
|
|
11
|
-
handleShown: () => void;
|
|
12
11
|
manualShow: (target: HTMLElement, options?: ManualShowCommandBarOptions) => void;
|
|
13
12
|
close(reason: CloseReason): void;
|
|
14
13
|
destroy(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import ShareDBDocVersionsProvider from './versions/versions-provider';
|
|
|
12
12
|
import { CreateLocalEditorOptions, CreateOnesEditorOptions } from './types';
|
|
13
13
|
import './lang';
|
|
14
14
|
import './style.scss';
|
|
15
|
+
export * from '../@ones-editor/scroll-container';
|
|
15
16
|
export * from '../@ones-editor/to-docx';
|
|
16
17
|
export * from '../@ones-editor/core';
|
|
17
18
|
export * from '../@ones-editor/sharedb-doc';
|