@ones-editor/editor 2.9.8-beta.9 → 2.9.9
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/composition/editor-input.d.ts +0 -1
- package/@ones-editor/core/src/core/doc/doc.d.ts +1 -3
- package/@ones-editor/core/src/core/types.d.ts +0 -1
- package/@ones-editor/core/src/users/remote-users.d.ts +1 -1
- package/@ones-editor/main-toolbar/src/index.d.ts +1 -8
- package/@ones-editor/main-toolbar/src/items/index.d.ts +2 -4
- package/@ones-editor/main-toolbar/src/locale/en-us.d.ts +0 -3
- package/@ones-editor/main-toolbar/src/locale/ja-jp.d.ts +0 -3
- package/@ones-editor/main-toolbar/src/locale/zh-cn.d.ts +0 -3
- package/@ones-editor/main-toolbar/src/locale/zh-hant-hk.d.ts +0 -3
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +7 -13
- package/@ones-editor/ui-base/src/icons/index.d.ts +1 -3
- package/dist/index.d.ts +1 -2
- package/dist/index.js +164 -711
- package/dist/types.d.ts +0 -1
- package/package.json +1 -1
- package/@ones-editor/cke-html/package.json +0 -7
- package/@ones-editor/cke-html/src/html/cke-html.d.ts +0 -4
- package/@ones-editor/cke-html/src/html/combine-html.d.ts +0 -2
- package/@ones-editor/cke-html/src/html/comment.d.ts +0 -6
- package/@ones-editor/cke-html/src/html/converter.d.ts +0 -7
- 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 +0 -4
- package/@ones-editor/cke-html/src/html/link.d.ts +0 -2
- package/@ones-editor/cke-html/src/html/markdown.d.ts +0 -2
- package/@ones-editor/cke-html/src/html/mention.d.ts +0 -4
- package/@ones-editor/cke-html/src/index.d.ts +0 -2
- package/@ones-editor/core/src/core/input-handler/remove-unknown-components.d.ts +0 -3
- package/@ones-editor/main-toolbar/src/items/file.d.ts +0 -8
- package/@ones-editor/main-toolbar/src/items/mention.d.ts +0 -8
|
@@ -28,7 +28,6 @@ export declare class EditorInput implements OnesEditorInput {
|
|
|
28
28
|
composingTimer: NodeJS.Timeout | undefined;
|
|
29
29
|
callbacks: EditorInputCallbacks;
|
|
30
30
|
inputElement: HTMLTextAreaElement;
|
|
31
|
-
private focused;
|
|
32
31
|
constructor(editor: OnesEditor, callbacks: EditorInputCallbacks);
|
|
33
32
|
private isInCommandBar;
|
|
34
33
|
destroy(): void;
|
|
@@ -139,10 +139,8 @@ export interface OnesEditorDocCallbacks {
|
|
|
139
139
|
onStatusChanged?: (status: OnesEditorDocStatus) => void;
|
|
140
140
|
onError?: (error: Error) => void;
|
|
141
141
|
}
|
|
142
|
-
export type OnesEditorResourceType = 'image' | 'media' | 'file' | 'graph' | 'paste' | 'unknown';
|
|
143
142
|
export interface UploadResourceOptions {
|
|
144
143
|
onProgress?: (progress: number) => void;
|
|
145
|
-
resourceType?: OnesEditorResourceType;
|
|
146
144
|
}
|
|
147
145
|
export interface UploadResourceResult {
|
|
148
146
|
resourceId: string;
|
|
@@ -177,7 +175,7 @@ export interface OnesEditorRemoteUsers extends TypedEmitter<RemoteUsersEvents> {
|
|
|
177
175
|
findUser: (userId: string) => OnesEditorUser | null;
|
|
178
176
|
removeUser: (clientId: string) => void;
|
|
179
177
|
updateUsers: (users: OnesEditorUser[]) => void;
|
|
180
|
-
getSimpleCursors: (blockId: string
|
|
178
|
+
getSimpleCursors: (blockId: string) => Map<number, OnesEditorClientSelection[]>;
|
|
181
179
|
getCursors: (blockId: string) => OnesEditorClientSelection[];
|
|
182
180
|
onUpdateBlockText: (blockData: DocBlock, actions: DocBlockTextActions, local: boolean) => void;
|
|
183
181
|
getFixedUserColor: (userId: string, type: 'flag' | 'selection') => string;
|
|
@@ -551,7 +551,6 @@ export interface OnesEditor extends TypedEmitter<OnesEditorEvents> {
|
|
|
551
551
|
readonly settingsProvider: OnesEditorSettingsProvider;
|
|
552
552
|
version: string;
|
|
553
553
|
readonly: boolean;
|
|
554
|
-
destroyed: boolean;
|
|
555
554
|
addCustom: <T extends OnesEditorCustom>(name: string, creator: OnesEditorCustomCreator<T>) => T;
|
|
556
555
|
getCustom: <T extends OnesEditorCustom>(name: string) => T;
|
|
557
556
|
replaceCustom: <T extends OnesEditorCustom>(name: string, newCustom: T) => T;
|
|
@@ -12,7 +12,7 @@ declare class RemoteUsers extends TypedEmitter<RemoteUsersEvents> implements One
|
|
|
12
12
|
findUser(userId: string): OnesEditorUser | null;
|
|
13
13
|
removeUser(clientId: string): void;
|
|
14
14
|
updateUsers(users: OnesEditorUser[]): void;
|
|
15
|
-
getSimpleCursors(blockId: string
|
|
15
|
+
getSimpleCursors(blockId: string): Map<number, OnesEditorClientSelection[]>;
|
|
16
16
|
getCursors(blockId: string): OnesEditorClientSelection[];
|
|
17
17
|
onUpdateBlockText(blockData: DocBlock, actions: DocBlockTextActions, local: boolean): void;
|
|
18
18
|
getFixedUserColor(userId: string, type: 'flag' | 'selection'): string;
|
|
@@ -5,17 +5,10 @@ import './locale';
|
|
|
5
5
|
import './style.scss';
|
|
6
6
|
export * from './types';
|
|
7
7
|
export * from './items';
|
|
8
|
-
export interface MainToolbarOptions {
|
|
9
|
-
enableFullScreen?: boolean;
|
|
10
|
-
onFullScreenClick?: (editor: OnesEditor, item: CommandItem) => void;
|
|
11
|
-
}
|
|
12
8
|
export declare class MainToolbar implements OnesEditorCustom {
|
|
13
9
|
private editor;
|
|
14
|
-
private options;
|
|
15
10
|
toolbar: FixedToolbar;
|
|
16
|
-
|
|
17
|
-
root: HTMLElement;
|
|
18
|
-
constructor(editor: OnesEditor, parent: HTMLElement, options?: MainToolbarOptions);
|
|
11
|
+
constructor(editor: OnesEditor, parent: HTMLElement);
|
|
19
12
|
destroy(): void;
|
|
20
13
|
setItems(items: ToolbarItem[]): void;
|
|
21
14
|
getItems(): ToolbarItem[];
|
|
@@ -13,7 +13,5 @@ import { FindReplaceItem } from './find';
|
|
|
13
13
|
import { CommentItem } from './comment';
|
|
14
14
|
import { ColorItem } from './text-color';
|
|
15
15
|
import { MoreItem } from './more-item';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export declare function getToolbarDefaultItems(editor: OnesEditor): (FontBoldItem | FontItalicItem | FontUnderlineItem | FontStrikethroughItem | InlineCodeItem | SuperscriptItem | SubscriptItem | InsertLinkItem | OrderedListItem | UnorderedListItem | CheckListItem | ParagraphItem | QuoteItem | SeparatorItem | AlignLeftItem | AlignCenterItem | AlignRightItem | UndoItem | RedoItem | InsertItem | FindReplaceItem | ColorItem)[];
|
|
19
|
-
export { UndoItem, RedoItem, FontBoldItem, FontItalicItem, FontUnderlineItem, FontStrikethroughItem, ColorItem, InlineCodeItem, SuperscriptItem, SubscriptItem, AlignLeftItem, AlignCenterItem, AlignRightItem, ParagraphItem, SeparatorItem, OrderedListItem, UnorderedListItem, CheckListItem, InsertImageItem, InsertFileItem, InsertLinkItem, QuoteItem, InsertItem, FindReplaceItem, CommentItem, MoreItem, InsertMentionItem, };
|
|
16
|
+
export declare function getToolbarDefaultItems(editor: OnesEditor): (FontBoldItem | FontItalicItem | FontUnderlineItem | FontStrikethroughItem | InlineCodeItem | SuperscriptItem | SubscriptItem | InsertImageItem | InsertLinkItem | OrderedListItem | UnorderedListItem | CheckListItem | ParagraphItem | QuoteItem | SeparatorItem | AlignLeftItem | AlignCenterItem | AlignRightItem | UndoItem | RedoItem | InsertItem | FindReplaceItem | CommentItem | ColorItem | MoreItem)[];
|
|
17
|
+
export { UndoItem, RedoItem, FontBoldItem, FontItalicItem, FontUnderlineItem, FontStrikethroughItem, ColorItem, InlineCodeItem, SuperscriptItem, SubscriptItem, AlignLeftItem, AlignCenterItem, AlignRightItem, ParagraphItem, SeparatorItem, OrderedListItem, UnorderedListItem, CheckListItem, InsertImageItem, InsertLinkItem, QuoteItem, InsertItem, FindReplaceItem, CommentItem, MoreItem, };
|