@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.
Files changed (27) hide show
  1. package/@ones-editor/code-block/src/code-block/types.d.ts +3 -0
  2. package/@ones-editor/code-block/src/index.d.ts +1 -0
  3. package/@ones-editor/comments/src/comments/comments.d.ts +1 -0
  4. package/@ones-editor/comments/src/comments-list/mobile-comments-list/group-list.d.ts +0 -1
  5. package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +1 -3
  6. package/@ones-editor/core/src/core/blocks/complex-blocks/complex-block-helper.d.ts +2 -2
  7. package/@ones-editor/core/src/core/types.d.ts +1 -4
  8. package/@ones-editor/image-embed/src/types.d.ts +1 -6
  9. package/@ones-editor/media-embed/src/core/media-embed.d.ts +1 -1
  10. package/@ones-editor/media-embed/src/utils/file.d.ts +1 -1
  11. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  12. package/@ones-editor/ui/src/index.d.ts +2 -1
  13. package/@ones-editor/webpage-embed/src/types.d.ts +0 -2
  14. package/@ones-editor/webpage-embed/src/webpage-embed/webpage-items.d.ts +16 -2
  15. package/dist/index.d.ts +0 -1
  16. package/dist/index.js +85 -85
  17. package/dist/types.d.ts +6 -3
  18. package/package.json +1 -1
  19. package/@ones-editor/image-embed/src/image-file.d.ts +0 -4
  20. package/@ones-editor/tabs-block/package.json +0 -8
  21. package/@ones-editor/tabs-block/src/active-tab.d.ts +0 -2
  22. package/@ones-editor/tabs-block/src/create-empty-tabs.d.ts +0 -8
  23. package/@ones-editor/tabs-block/src/index.d.ts +0 -4
  24. package/@ones-editor/tabs-block/src/tabs-dom.d.ts +0 -4
  25. package/@ones-editor/tabs-block/src/tabs-object.d.ts +0 -14
  26. package/@ones-editor/tabs-block/src/tabs-options.d.ts +0 -2
  27. 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, Block } from '../@ones-editor/core';
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 { FileOptions } from '../@ones-editor/file';
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "0.0.3-beta.87",
3
+ "version": "0.0.3-beta.88",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,4 +0,0 @@
1
- import { OnesEditor } from '../../../@ones-editor/core';
2
- export declare function getAccepts(editor: OnesEditor): string;
3
- export declare function getFileExt(file: File): string;
4
- export declare function verifyFile(file: File, editor: OnesEditor): void;
@@ -1,8 +0,0 @@
1
- {
2
- "name": "@ones-editor/tabs-block",
3
- "version": "1.0.0",
4
- "license": "MIT",
5
- "type": "module",
6
- "main": "./src/index.ts",
7
- "types": "src/index.d.ts"
8
- }
@@ -1,2 +0,0 @@
1
- import { BlockElement, OnesEditor } from '../../../@ones-editor/core';
2
- export declare function activeTab(editor: OnesEditor, block: BlockElement, index: number): void;
@@ -1,8 +0,0 @@
1
- import { OnesEditor } from '../../../@ones-editor/core';
2
- import { DocTabsBlock } from './types';
3
- export declare function createEmptyTabsData(editor: OnesEditor, options?: {
4
- count?: number;
5
- }): {
6
- blockData: DocTabsBlock;
7
- focusBlockId: string;
8
- } | null;
@@ -1,4 +0,0 @@
1
- import { ComplexKindBlock } from '../../../@ones-editor/core';
2
- import './tabs-styles.scss';
3
- declare const TabsBlock: ComplexKindBlock;
4
- export default TabsBlock;
@@ -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
- }
@@ -1,2 +0,0 @@
1
- import { BlockOptions, OnesEditor } from '../../../@ones-editor/core';
2
- export declare function getTabsOptions(editor: OnesEditor): BlockOptions;
@@ -1,8 +0,0 @@
1
- import { DocBlock } from '../../../@ones-editor/core';
2
- export interface TabData {
3
- name: string;
4
- }
5
- export interface DocTabsBlock extends DocBlock {
6
- tabs: TabData[];
7
- children: string[];
8
- }