@ones-editor/editor 0.0.3-beta.26 → 0.0.3-beta.28
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/comments/src/comments/comments.d.ts +2 -2
- package/@ones-editor/comments/src/comments-list/comments-list.d.ts +2 -2
- package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +1 -1
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +2 -2
- package/@ones-editor/comments/src/types.d.ts +4 -3
- package/@ones-editor/core/src/core/doc/doc.d.ts +6 -2
- package/@ones-editor/core/src/core/editor/actions/auto-insert-block.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/actions/delete-block-text.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/actions/insert-block.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/actions/insert-text.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/editor-dom/dom-events.d.ts +1 -1
- package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +4 -3
- package/@ones-editor/core/src/core/selection/editor-selection.d.ts +2 -2
- package/@ones-editor/core/src/core/types.d.ts +8 -7
- package/@ones-editor/core/src/i18n/i18n.d.ts +36 -0
- package/@ones-editor/core/src/local-doc/index.d.ts +2 -6
- package/@ones-editor/core/src/utils/logger/index.d.ts +1 -0
- package/@ones-editor/input-handlers/src/enforce-with-document-title/types.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/en-us.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +1 -0
- package/@ones-editor/scroll-container/src/index.d.ts +6 -18
- package/@ones-editor/sharedb-doc/src/doc/auth-connection.d.ts +3 -3
- package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +3 -3
- package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +6 -1
- package/@ones-editor/sharedb-doc/src/types.d.ts +3 -2
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/tooltips/index.d.ts +4 -0
- package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +1 -0
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +5 -0
- package/@ones-editor/ui-base/src/dialog/index.d.ts +1 -0
- package/@ones-editor/ui-base/src/dialog/types.d.ts +4 -0
- package/@ones-editor/versions/src/types.d.ts +1 -0
- package/@ones-editor/versions/src/version-dialog/index.d.ts +3 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.js +121 -123
- package/dist/lang/en-us.d.ts +13 -0
- package/dist/lang/index.d.ts +1 -0
- package/dist/lang/zh-cn.d.ts +13 -0
- package/dist/types.d.ts +10 -3
- package/package.json +1 -1
|
@@ -7,11 +7,15 @@ export default class OnesEditorTooltip {
|
|
|
7
7
|
currentInstance: Instance | null;
|
|
8
8
|
attributeName: string;
|
|
9
9
|
attributeDesc: string;
|
|
10
|
+
private observer;
|
|
11
|
+
private observerCallback;
|
|
10
12
|
constructor(editor: OnesEditor);
|
|
11
13
|
createContent: (reference: Element) => string | HTMLDivElement;
|
|
12
14
|
visible(): boolean | undefined;
|
|
13
15
|
hide(): void;
|
|
14
16
|
destroy(): void;
|
|
17
|
+
private createObserver;
|
|
18
|
+
private destroyObserver;
|
|
15
19
|
handleDocumentMouseDown: () => void;
|
|
16
20
|
handleDocumentMouseUp: () => void;
|
|
17
21
|
handleShown: (a: Instance) => void;
|
|
@@ -13,6 +13,7 @@ export default abstract class CommandBar extends TypedEmitter<CommandBarEvents>
|
|
|
13
13
|
constructor(items: CommandItem[], closeable?: Closeable, options?: CommandBarOptions);
|
|
14
14
|
close(): void;
|
|
15
15
|
click(item: CommandItem, target: HTMLElement): void;
|
|
16
|
+
createPopperOptions(): Partial<import("@popperjs/core").Options>;
|
|
16
17
|
destroy(): void;
|
|
17
18
|
abstract readonly isVisible: boolean;
|
|
18
19
|
get isSubCommandBar(): boolean;
|
|
@@ -52,5 +52,10 @@ export interface CommandBarOptions {
|
|
|
52
52
|
autoClose?: boolean;
|
|
53
53
|
classes?: string[];
|
|
54
54
|
disablePageScroll?: boolean;
|
|
55
|
+
refuseOverflow?: boolean;
|
|
56
|
+
overflowBoundary?: Element;
|
|
55
57
|
}
|
|
56
58
|
export type CreateManualCommandBarFunction = (parentItem: CommandItem, closeable: Closeable, options?: CommandBarOptions) => AbstractManualCommandBar;
|
|
59
|
+
export type PopoverOptions = {
|
|
60
|
+
overflowBoundary?: Element;
|
|
61
|
+
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
2
|
import type { OnesEditorVersionsProvider, VersionDialogOptions } from '../types';
|
|
3
|
-
export declare function showVersionDialog(editor: OnesEditor, versionProvider: OnesEditorVersionsProvider, options: VersionDialogOptions):
|
|
3
|
+
export declare function showVersionDialog(editor: OnesEditor, versionProvider: OnesEditorVersionsProvider, options: VersionDialogOptions): {
|
|
4
|
+
setShowOps: (showOps: boolean) => void;
|
|
5
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { OnesEditor, DocObject } from '../@ones-editor/core';
|
|
1
|
+
import { OnesEditor, DocObject, OnesEditorDoc } from '../@ones-editor/core';
|
|
2
2
|
import { VersionDialogOptions } from '../@ones-editor/versions';
|
|
3
3
|
import { CreateLocalEditorOptions, CreateOnesEditorOptions } from './types';
|
|
4
|
+
import './lang';
|
|
4
5
|
export * from '../@ones-editor/core';
|
|
5
6
|
export * from '../@ones-editor/sharedb-doc';
|
|
6
7
|
export * from '../@ones-editor/table-block';
|
|
@@ -12,8 +13,9 @@ export * from '../@ones-editor/block-resizer';
|
|
|
12
13
|
export { editorAddComment } from '../@ones-editor/comments';
|
|
13
14
|
export { editorShowFindDialog } from '../@ones-editor/find-dialog';
|
|
14
15
|
export * from '../@ones-editor/toc';
|
|
15
|
-
export * from '../@ones-editor/embed-block-helper';
|
|
16
16
|
export * from './types';
|
|
17
17
|
export declare function createOnesEditor(root: HTMLElement, options: CreateOnesEditorOptions): Promise<OnesEditor>;
|
|
18
|
-
export declare function createLocalEditor(root: HTMLElement, docData: DocObject, options: CreateLocalEditorOptions): Promise<OnesEditor>;
|
|
19
|
-
export declare function showDocVersions(editor: OnesEditor, options: VersionDialogOptions):
|
|
18
|
+
export declare function createLocalEditor(root: HTMLElement, docData: DocObject | OnesEditorDoc, options: CreateLocalEditorOptions): Promise<OnesEditor>;
|
|
19
|
+
export declare function showDocVersions(editor: OnesEditor, options: VersionDialogOptions): {
|
|
20
|
+
setShowOps: (showOps: boolean) => void;
|
|
21
|
+
};
|