@ones-editor/editor 1.0.9 → 1.1.0-beta.2

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 (52) hide show
  1. package/@ones-editor/code-block/src/index.d.ts +2 -2
  2. package/@ones-editor/core/src/core/composition/editor-input.d.ts +22 -1
  3. package/@ones-editor/core/src/core/composition/index.d.ts +1 -1
  4. package/@ones-editor/core/src/core/doc/doc.d.ts +0 -1
  5. package/@ones-editor/core/src/core/editor/actions/update-block-text.d.ts +3 -3
  6. package/@ones-editor/core/src/core/editor/actions/update-box-data.d.ts +2 -2
  7. package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +0 -1
  8. package/@ones-editor/core/src/core/input-handler/actions.d.ts +0 -1
  9. package/@ones-editor/core/src/core/input-handler/input-handler.d.ts +3 -4
  10. package/@ones-editor/core/src/core/keyboard/default-shortcuts.d.ts +1 -2
  11. package/@ones-editor/core/src/core/types.d.ts +2 -28
  12. package/@ones-editor/core/src/local-doc/index.d.ts +0 -1
  13. package/@ones-editor/core/src/utils/index.d.ts +0 -1
  14. package/@ones-editor/graph-embed/src/config/index.d.ts +1 -1
  15. package/@ones-editor/image-embed/src/shortcuts/index.d.ts +1 -2
  16. package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +0 -4
  17. package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +0 -1
  18. package/@ones-editor/status/package.json +7 -0
  19. package/@ones-editor/status/src/dom/create-status-tag.d.ts +7 -0
  20. package/@ones-editor/status/src/dom/input.d.ts +1 -0
  21. package/@ones-editor/status/src/dom/overflow-tooltip-tag.d.ts +17 -0
  22. package/@ones-editor/status/src/dom/status-palette.d.ts +6 -0
  23. package/@ones-editor/status/src/index.d.ts +4 -0
  24. package/@ones-editor/status/src/locale/en-us.d.ts +25 -0
  25. package/@ones-editor/status/src/locale/ja-jp.d.ts +25 -0
  26. package/@ones-editor/status/src/locale/zh-cn.d.ts +25 -0
  27. package/@ones-editor/status/src/status-box-command.d.ts +7 -0
  28. package/@ones-editor/status/src/status-box-data.d.ts +5 -0
  29. package/@ones-editor/status/src/status-box-editor.d.ts +20 -0
  30. package/@ones-editor/status/src/status-box.d.ts +4 -0
  31. package/@ones-editor/status/src/types.d.ts +8 -0
  32. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  33. package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +0 -1
  34. package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +0 -1
  35. package/@ones-editor/ui-base/src/icons/index.d.ts +2 -1
  36. package/@ones-editor/ui-base/src/input/create-input.d.ts +2 -1
  37. package/@ones-editor/versions/src/history-doc/history-doc.d.ts +0 -1
  38. package/@ones-editor/versions/src/version-dialog/version-list.d.ts +1 -1
  39. package/dist/index.js +208 -202
  40. package/dist/types.d.ts +0 -2
  41. package/package.json +1 -1
  42. package/@ones-editor/context-menu/index.d.ts +0 -3
  43. package/@ones-editor/context-menu/package.json +0 -8
  44. package/@ones-editor/context-menu/src/helper/actions.d.ts +0 -4
  45. package/@ones-editor/context-menu/src/helper/command-items.d.ts +0 -23
  46. package/@ones-editor/context-menu/src/helper/utils.d.ts +0 -4
  47. package/@ones-editor/context-menu/src/locale/en-us.d.ts +0 -14
  48. package/@ones-editor/context-menu/src/locale/ja-jp.d.ts +0 -14
  49. package/@ones-editor/context-menu/src/locale/zh-cn.d.ts +0 -14
  50. package/@ones-editor/context-menu/src/menu/index.d.ts +0 -17
  51. package/@ones-editor/core/src/utils/blob-to-string.d.ts +0 -1
  52. /package/@ones-editor/{context-menu → status}/src/locale/index.d.ts +0 -0
package/dist/types.d.ts CHANGED
@@ -49,7 +49,6 @@ export interface CreateOnesEditorOptions {
49
49
  token: string;
50
50
  disableLogout?: boolean;
51
51
  enableComments?: boolean;
52
- enableContextMenu?: boolean;
53
52
  scrollContainer?: HTMLElement;
54
53
  lang?: i18n.LANGS;
55
54
  logLevel?: LogLevel;
@@ -85,7 +84,6 @@ export interface CreateLocalEditorOptions {
85
84
  };
86
85
  serverUrl?: string;
87
86
  enableComments?: boolean;
88
- enableContextMenu?: boolean;
89
87
  events?: EditorEvents;
90
88
  componentsOptions?: EditorComponentOptions;
91
89
  hideTitle?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "1.0.9",
3
+ "version": "1.1.0-beta.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,3 +0,0 @@
1
- import OnesEditorContextMenu from './src/menu';
2
- import './src/locale';
3
- export { OnesEditorContextMenu, };
@@ -1,8 +0,0 @@
1
- {
2
- "name": "@ones-editor/context-menu",
3
- "version": "1.0.0",
4
- "license": "MIT",
5
- "type": "module",
6
- "main": "./index.ts",
7
- "types": "src/index.d.ts"
8
- }
@@ -1,4 +0,0 @@
1
- import type { OnesEditor } from '../../../../@ones-editor/core';
2
- export declare function handleCopyAction(editor: OnesEditor): Promise<void>;
3
- export declare function handleCopyMarkdownAction(editor: OnesEditor): Promise<void>;
4
- export declare function handleCutAction(editor: OnesEditor): Promise<void>;
@@ -1,23 +0,0 @@
1
- import type { OnesEditor, CommandItem } from '../../../../@ones-editor/core';
2
- export default class ContextMenuCommandItems {
3
- private editor;
4
- private t;
5
- private supportClipboard;
6
- private isSecureContext;
7
- private externalActionHandleMap;
8
- constructor(editor: OnesEditor);
9
- clipboardSupport(): void;
10
- get isRangeCollapsed(): boolean;
11
- get imageTypeCommandItems(): CommandItem[];
12
- get copyTypeCommandItems(): CommandItem[];
13
- get cutCommandItem(): CommandItem;
14
- get stepItem(): CommandItem;
15
- get selectionCommandItems(): CommandItem[];
16
- destroy(): void;
17
- handleActionByExternal: (item: CommandItem) => unknown;
18
- getPasteCommandItem: () => Promise<CommandItem>;
19
- getCommandItems: () => Promise<CommandItem[]>;
20
- private getExternalContextMenuOptions;
21
- private secureEnvTips;
22
- private isFocusImageBlock;
23
- }
@@ -1,4 +0,0 @@
1
- import type { ImageObject } from '../../../../@ones-editor/image-embed';
2
- export declare function blobToString(blob: Blob): Promise<string>;
3
- export declare function isClipboardEmpty(): Promise<boolean>;
4
- export declare function saveAs(resourceUrl: string, imageObject: ImageObject): void;
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- contextMenu: {
3
- copyMarkdown: string;
4
- paste: string;
5
- copyImage: string;
6
- copyImageUrl: string;
7
- imageSaveAs: string;
8
- newTabOpenImage: string;
9
- selectBlock: string;
10
- selectAll: string;
11
- uneditableBlockSelected: string;
12
- };
13
- };
14
- export default _default;
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- contextMenu: {
3
- copyMarkdown: string;
4
- paste: string;
5
- copyImage: string;
6
- copyImageUrl: string;
7
- imageSaveAs: string;
8
- newTabOpenImage: string;
9
- selectBlock: string;
10
- selectAll: string;
11
- uneditableBlockSelected: string;
12
- };
13
- };
14
- export default _default;
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- contextMenu: {
3
- copyMarkdown: string;
4
- paste: string;
5
- copyImage: string;
6
- copyImageUrl: string;
7
- imageSaveAs: string;
8
- newTabOpenImage: string;
9
- selectBlock: string;
10
- selectAll: string;
11
- uneditableBlockSelected: string;
12
- };
13
- };
14
- export default _default;
@@ -1,17 +0,0 @@
1
- import type { OnesEditor } from '../../../../@ones-editor/core';
2
- import './context-menu.scss';
3
- declare class OnesEditorContextMenu {
4
- private editor;
5
- private contextMenu;
6
- private contextMenuCommandItems;
7
- constructor(editor: OnesEditor);
8
- destroy: () => void;
9
- private updateEditorCaret;
10
- private handleContextMenu;
11
- private isInMenu;
12
- private isInEditor;
13
- private handleContextMenuShown;
14
- private handleContextMenuClick;
15
- private handleImageEmbedAction;
16
- }
17
- export default OnesEditorContextMenu;
@@ -1 +0,0 @@
1
- export declare function blob2String(blob: Blob): Promise<string>;