@ones-editor/editor 2.9.8-beta.3 → 2.9.8-beta.30
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/cke-html/package.json +7 -0
- package/@ones-editor/cke-html/src/html/cke-html.d.ts +4 -0
- package/@ones-editor/cke-html/src/html/combine-html.d.ts +2 -0
- package/@ones-editor/cke-html/src/html/comment.d.ts +6 -0
- package/@ones-editor/cke-html/src/html/converter.d.ts +7 -0
- package/@ones-editor/cke-html/src/html/data-helper/link-data.d.ts +0 -0
- package/@ones-editor/cke-html/src/html/image.d.ts +4 -0
- package/@ones-editor/cke-html/src/html/link.d.ts +2 -0
- package/@ones-editor/cke-html/src/html/markdown.d.ts +2 -0
- package/@ones-editor/cke-html/src/html/mention.d.ts +4 -0
- package/@ones-editor/cke-html/src/index.d.ts +2 -0
- package/@ones-editor/core/src/core/doc/doc.d.ts +2 -1
- package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +1 -0
- package/@ones-editor/core/src/core/selection/actions/index.d.ts +2 -2
- package/@ones-editor/core/src/core/selection/actions/select-all.d.ts +1 -0
- package/@ones-editor/core/src/core/types.d.ts +2 -0
- package/@ones-editor/core/src/local-doc/index.d.ts +1 -0
- package/@ones-editor/core/src/users/remote-users.d.ts +1 -1
- package/@ones-editor/graph-embed/src/helper/graph-dom/code-editor.d.ts +1 -0
- package/@ones-editor/list-block/src/index.d.ts +2 -0
- package/@ones-editor/main-toolbar/src/items/insert.d.ts +3 -0
- package/@ones-editor/server-tools/src/index.d.ts +4 -1
- package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +2 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/providers/list.d.ts +1 -1
- 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 -0
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +5 -0
- package/@ones-editor/versions/src/history-doc/history-doc.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +651 -128
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ export default class ListProvider implements OnesEditorCommandProvider {
|
|
|
7
7
|
getAvailableCommands(editor: OnesEditor, block: BlockElement, range: SelectionRange, params?: CommandParams): CommandItem[];
|
|
8
8
|
getInsertCommands(): CommandItem[];
|
|
9
9
|
convertToList(editor: OnesEditor, block: BlockElement, listType: 'unordered' | 'ordered' | 'unchecked'): void;
|
|
10
|
-
insertList(editor: OnesEditor, containerId: string, blockIndex: number, listType: 'unordered' | 'ordered' | 'unchecked'): void;
|
|
10
|
+
insertList(editor: OnesEditor, containerId: string, blockIndex: number, listType: 'unordered' | 'ordered' | 'unchecked', command: CommandItem): void;
|
|
11
11
|
executeCommand(editor: OnesEditor, block: BlockElement, range: SelectionRange, command: CommandItem): boolean;
|
|
12
12
|
executeInsertCommand: (editor: OnesEditor, containerId: string, blockIndex: number, command: CommandItem) => boolean;
|
|
13
13
|
}
|
|
@@ -22,6 +22,7 @@ export default abstract class CommandBar extends TypedEmitter<CommandBarEvents>
|
|
|
22
22
|
get isSubCommandBar(): boolean;
|
|
23
23
|
updateItems(items: CommandItem[]): void;
|
|
24
24
|
handleDocumentKeydown: (event: KeyboardEvent) => boolean;
|
|
25
|
+
protected canClose(): boolean;
|
|
25
26
|
protected handleDocumentMouseDown: (event: MouseEvent | TouchEvent) => void;
|
|
26
27
|
protected handleHidden: () => void;
|
|
27
28
|
protected handleShown: () => void;
|
|
@@ -6,6 +6,7 @@ export default class FixedToolbar extends CommandBar {
|
|
|
6
6
|
handleDocumentKeydown: (event: KeyboardEvent) => boolean;
|
|
7
7
|
protected initCommandBarElement(elem: HTMLElement): void;
|
|
8
8
|
protected initItemElement(item: CommandItem, elem: CommandItemElement): void;
|
|
9
|
+
protected canClose(): boolean;
|
|
9
10
|
close(): void;
|
|
10
11
|
getSubBarCreateOptions: (item: CommandItem) => CommandBarOptions;
|
|
11
12
|
getSubBarOptions: (item: CommandItem) => ManualShowCommandBarOptions;
|
|
@@ -69,9 +69,14 @@ export interface CommandBarOptions {
|
|
|
69
69
|
beforeClose?: (event?: MouseEvent | TouchEvent) => boolean;
|
|
70
70
|
showName?: boolean;
|
|
71
71
|
maxWidth?: number | string;
|
|
72
|
+
appendTo?: Element;
|
|
72
73
|
}
|
|
73
74
|
export type CreateManualCommandBarFunction = (parentItem: CommandItem, closeable: Closeable, options?: CommandBarOptions) => AbstractManualCommandBar;
|
|
74
75
|
export type PopoverOptions = {
|
|
75
76
|
overflowBoundary?: Element;
|
|
77
|
+
appendTo?: Element;
|
|
78
|
+
};
|
|
79
|
+
export type ObjectToolbarOptions = {
|
|
80
|
+
appendTo?: Element;
|
|
76
81
|
};
|
|
77
82
|
export type SelectItemFrom = 'event' | 'manual';
|
|
@@ -7,6 +7,7 @@ export default class HistoryDoc extends EventCallbacks<OnesEditorDocCallbacks> i
|
|
|
7
7
|
beginBatchUpdate(): number;
|
|
8
8
|
endBatchUpdate(): number;
|
|
9
9
|
toJSON(): DocObject;
|
|
10
|
+
applyingOps(): boolean;
|
|
10
11
|
getContainerBlocks(containerId: string): DocBlock[];
|
|
11
12
|
findContainerBlocks(containerId: string): DocBlock[];
|
|
12
13
|
getBlockData(containerId: string, blockIndex: number): DocBlock;
|
package/dist/index.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export { ShareDBDocVersionsProvider, OnesEditorIcons, isLayoutBlock, LayoutQuick
|
|
|
46
46
|
export type { FileBoxData, FileEmbedData } from '../@ones-editor/file';
|
|
47
47
|
export * from './helper';
|
|
48
48
|
export { OnesEditorComments, OnesEditorCommentsRender } from '../@ones-editor/comments';
|
|
49
|
+
export * from '../@ones-editor/cke-html';
|
|
49
50
|
export { type DocListBlock } from '../@ones-editor/list-block';
|
|
50
51
|
export declare function getDefaultOnesEditorOptions(options: CreateOnesEditorOptions): {
|
|
51
52
|
id: string | undefined;
|