@ones-editor/editor 1.0.2-beta.2 → 1.0.2-beta.21

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 (39) hide show
  1. package/@ones-editor/core/src/core/composition/clipboard/copy.d.ts +1 -3
  2. package/@ones-editor/core/src/core/composition/index.d.ts +1 -1
  3. package/@ones-editor/core/src/core/doc/doc.d.ts +8 -5
  4. package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +1 -0
  5. package/@ones-editor/core/src/core/index.d.ts +0 -1
  6. package/@ones-editor/core/src/core/input-handler/input-handler.d.ts +2 -2
  7. package/@ones-editor/core/src/core/types.d.ts +0 -11
  8. package/@ones-editor/core/src/local-doc/index.d.ts +1 -0
  9. package/@ones-editor/image-embed/src/shortcuts/index.d.ts +1 -2
  10. package/@ones-editor/mathjax/src/mathjax/convert.d.ts +9 -0
  11. package/@ones-editor/mathjax/src/mathjax-box/mathjax-editor.d.ts +3 -3
  12. package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +4 -0
  13. package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +1 -0
  14. package/@ones-editor/sharedb-doc/src/index.d.ts +1 -0
  15. package/@ones-editor/sharedb-doc/src/versions/index.d.ts +2 -0
  16. package/@ones-editor/sharedb-doc/src/versions/sharedb-server.d.ts +29 -0
  17. package/@ones-editor/sharedb-doc/src/versions/simple-client.d.ts +25 -0
  18. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  19. package/@ones-editor/ui-base/src/color-button/text-color-item.d.ts +1 -1
  20. package/@ones-editor/versions/src/history-doc/history-doc.d.ts +4 -3
  21. package/@ones-editor/versions/src/utils/index.d.ts +2 -2
  22. package/@ones-editor/versions/src/version-dialog/index.d.ts +3 -3
  23. package/@ones-editor/versions/src/version-dialog/version-list.d.ts +1 -1
  24. package/dist/index.d.ts +2 -2
  25. package/dist/index.js +183 -183
  26. package/dist/types.d.ts +0 -1
  27. package/package.json +1 -1
  28. package/@ones-editor/context-menu/package.json +0 -8
  29. package/@ones-editor/context-menu/src/helper/actions.d.ts +0 -2
  30. package/@ones-editor/context-menu/src/helper/command-items.d.ts +0 -17
  31. package/@ones-editor/context-menu/src/helper/is-clipboard-empty.d.ts +0 -1
  32. package/@ones-editor/context-menu/src/helper/save-as.d.ts +0 -2
  33. package/@ones-editor/context-menu/src/helper/selection.d.ts +0 -0
  34. package/@ones-editor/context-menu/src/index.d.ts +0 -3
  35. package/@ones-editor/context-menu/src/locale/en-us.d.ts +0 -14
  36. package/@ones-editor/context-menu/src/locale/index.d.ts +0 -1
  37. package/@ones-editor/context-menu/src/locale/ja-jp.d.ts +0 -14
  38. package/@ones-editor/context-menu/src/locale/zh-cn.d.ts +0 -14
  39. package/@ones-editor/context-menu/src/menu/index.d.ts +0 -17
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "1.0.2-beta.2",
3
+ "version": "1.0.2-beta.21",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,8 +0,0 @@
1
- {
2
- "name": "@ones-editor/context-menu",
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 type { OnesEditor } from '../../../../@ones-editor/core';
2
- export declare function handlePasteAction(editor: OnesEditor): Promise<void>;
@@ -1,17 +0,0 @@
1
- import type { OnesEditor, CommandItem } from '../../../../@ones-editor/core';
2
- export default class ContextMenuCommandItems {
3
- private editor;
4
- private t;
5
- private isSecureContext;
6
- constructor(editor: OnesEditor);
7
- get isRangeCollapsed(): boolean;
8
- get imageTypeCommandItems(): CommandItem[];
9
- get copyTypeCommandItems(): CommandItem[];
10
- get cutCommandItem(): CommandItem;
11
- get stepItem(): CommandItem;
12
- get selectionCommandItems(): CommandItem[];
13
- getPasteCommandItem: () => Promise<CommandItem>;
14
- getCommandItems: () => Promise<CommandItem[]>;
15
- private secureEnvTips;
16
- private isFocusImageBlock;
17
- }
@@ -1 +0,0 @@
1
- export default function isClipboardEmpty(): Promise<boolean>;
@@ -1,2 +0,0 @@
1
- import type { ImageObject } from '../../../../@ones-editor/image-embed';
2
- export default function saveAs(resourceUrl: string, imageObject: ImageObject): void;
@@ -1,3 +0,0 @@
1
- import RightContextMenu from './menu';
2
- import './locale';
3
- export { RightContextMenu, };
@@ -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 +0,0 @@
1
- export {};
@@ -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, OnesEditorContextMenuInstance } from '../../../../@ones-editor/core';
2
- import './context-menu.scss';
3
- declare class RightContextMenu implements OnesEditorContextMenuInstance {
4
- private editor;
5
- private contextMenu;
6
- private contextMenuCommandItems;
7
- constructor(editor: OnesEditor);
8
- show(event: MouseEvent): void;
9
- close(): void;
10
- private handleContextMenu;
11
- private isInMenu;
12
- private isInEditor;
13
- private handleContextMenuShown;
14
- private handleContextMenuClick;
15
- private handleImageEmbedAction;
16
- }
17
- export default RightContextMenu;