@ones-editor/editor 0.0.3-beta.87 → 0.0.3-beta.88
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/code-block/src/code-block/types.d.ts +3 -0
- package/@ones-editor/code-block/src/index.d.ts +1 -0
- package/@ones-editor/comments/src/comments/comments.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/group-list.d.ts +0 -1
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +1 -3
- package/@ones-editor/core/src/core/blocks/complex-blocks/complex-block-helper.d.ts +2 -2
- package/@ones-editor/core/src/core/types.d.ts +1 -4
- package/@ones-editor/image-embed/src/types.d.ts +1 -6
- package/@ones-editor/media-embed/src/core/media-embed.d.ts +1 -1
- package/@ones-editor/media-embed/src/utils/file.d.ts +1 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +2 -1
- package/@ones-editor/webpage-embed/src/types.d.ts +0 -2
- package/@ones-editor/webpage-embed/src/webpage-embed/webpage-items.d.ts +16 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +85 -85
- package/dist/types.d.ts +6 -3
- package/package.json +1 -1
- package/@ones-editor/image-embed/src/image-file.d.ts +0 -4
- package/@ones-editor/tabs-block/package.json +0 -8
- package/@ones-editor/tabs-block/src/active-tab.d.ts +0 -2
- package/@ones-editor/tabs-block/src/create-empty-tabs.d.ts +0 -8
- package/@ones-editor/tabs-block/src/index.d.ts +0 -4
- package/@ones-editor/tabs-block/src/tabs-dom.d.ts +0 -4
- package/@ones-editor/tabs-block/src/tabs-object.d.ts +0 -14
- package/@ones-editor/tabs-block/src/tabs-options.d.ts +0 -2
- package/@ones-editor/tabs-block/src/types.d.ts +0 -8
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Embed, Box, i18n, OnesEditor, OnesEditorUser, OnesEditorUserPermission, OnesEditorBlockHook, OnesEditorCommandProvider, LogLevel,
|
|
1
|
+
import { Embed, Box, i18n, OnesEditor, OnesEditorUser, OnesEditorUserPermission, OnesEditorBlockHook, OnesEditorCommandProvider, LogLevel, ShortcutRecords } from '../@ones-editor/core';
|
|
2
2
|
import { DrawIoOptions } from '../@ones-editor/drawio-embed';
|
|
3
3
|
import { MermaidEmbedOptions } from '../@ones-editor/graph-embed';
|
|
4
4
|
import { ImageOptions } from '../@ones-editor/image-embed';
|
|
@@ -7,11 +7,12 @@ import { MentionOptions } from '../@ones-editor/mention/src/mention';
|
|
|
7
7
|
import { TableOptions } from '../@ones-editor/table-block';
|
|
8
8
|
import { WebpageOptions } from '../@ones-editor/webpage-embed';
|
|
9
9
|
import { OnesEditorCommentOptions } from '../@ones-editor/comments';
|
|
10
|
+
import { FileOptions } from '../@ones-editor/file';
|
|
10
11
|
import { ListOptions } from '../@ones-editor/list-block';
|
|
11
12
|
import { QuickMenuOptions } from '../@ones-editor/ui/src/quick-menu';
|
|
12
13
|
import { TemplateOptions } from '../@ones-editor/templates';
|
|
13
14
|
import { FindDialogOptions, PopoverOptions } from '../@ones-editor/ui-base';
|
|
14
|
-
import {
|
|
15
|
+
import { CodeBlockExternalOptions } from '../@ones-editor/code-block';
|
|
15
16
|
export interface RemoteCaretsOptions {
|
|
16
17
|
onUserChanged?: (editor: OnesEditor, users: OnesEditorUser[]) => void;
|
|
17
18
|
}
|
|
@@ -32,6 +33,7 @@ export type EditorComponentOptions = {
|
|
|
32
33
|
popover?: PopoverOptions;
|
|
33
34
|
findDialog?: FindDialogOptions;
|
|
34
35
|
file?: FileOptions;
|
|
36
|
+
code?: CodeBlockExternalOptions;
|
|
35
37
|
};
|
|
36
38
|
export type EditorEvents = {
|
|
37
39
|
onClickLink?: (editor: OnesEditor, event: MouseEvent, link: Element) => void;
|
|
@@ -56,13 +58,13 @@ export interface CreateOnesEditorOptions {
|
|
|
56
58
|
rainbowIndex?: number;
|
|
57
59
|
};
|
|
58
60
|
components?: {
|
|
59
|
-
blocks?: Block[];
|
|
60
61
|
embeds?: Embed[];
|
|
61
62
|
boxes?: Box[];
|
|
62
63
|
blockHooks?: OnesEditorBlockHook[];
|
|
63
64
|
commandProviders?: OnesEditorCommandProvider[];
|
|
64
65
|
};
|
|
65
66
|
events?: EditorEvents;
|
|
67
|
+
shortcuts?: ShortcutRecords[];
|
|
66
68
|
componentsOptions?: EditorComponentOptions;
|
|
67
69
|
}
|
|
68
70
|
export interface CreateLocalEditorOptions {
|
|
@@ -77,5 +79,6 @@ export interface CreateLocalEditorOptions {
|
|
|
77
79
|
serverUrl?: string;
|
|
78
80
|
enableComments?: boolean;
|
|
79
81
|
events?: EditorEvents;
|
|
82
|
+
shortcuts?: ShortcutRecords[];
|
|
80
83
|
componentsOptions?: EditorComponentOptions;
|
|
81
84
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { BlockContentElement, BlockElement, BlockPath, ContainerElement, OnesEditor } from '../../../@ones-editor/core';
|
|
2
|
-
import { DocTabsBlock } from './types';
|
|
3
|
-
export declare function createTabs(editor: OnesEditor, path: BlockPath, container: ContainerElement, blockElement: BlockElement, blockData: DocTabsBlock): BlockContentElement;
|
|
4
|
-
export declare function getTabsContainers(block: BlockElement): ContainerElement[];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BlockElement, OnesEditor, OnesEditorCustom } from '../../../@ones-editor/core';
|
|
2
|
-
export default class TabsObject implements OnesEditorCustom {
|
|
3
|
-
private editor;
|
|
4
|
-
private blockId;
|
|
5
|
-
private activeTabIndex;
|
|
6
|
-
constructor(editor: OnesEditor, blockId: string);
|
|
7
|
-
destroy(): void;
|
|
8
|
-
getTabs(): import("./types").TabData[];
|
|
9
|
-
getActiveTab(): import("./types").TabData;
|
|
10
|
-
getActiveTabIndex(): number;
|
|
11
|
-
indexOf(id: string): number;
|
|
12
|
-
setActiveTab(id: string): void;
|
|
13
|
-
static get(editor: OnesEditor, block: BlockElement | string): TabsObject;
|
|
14
|
-
}
|