@ones-editor/editor 0.0.3-beta.129 → 0.0.3-beta.130

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 (31) hide show
  1. package/@ones-editor/block-resizer/src/index.d.ts +1 -0
  2. package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +1 -0
  3. package/@ones-editor/comments/src/locale/ja-jp.d.ts +3 -0
  4. package/@ones-editor/comments/src/locale/zh-cn.d.ts +1 -0
  5. package/@ones-editor/core/src/core/types.d.ts +1 -0
  6. package/@ones-editor/file/src/index.d.ts +1 -0
  7. package/@ones-editor/file/src/locale/en-us.d.ts +6 -0
  8. package/@ones-editor/file/src/locale/index.d.ts +1 -0
  9. package/@ones-editor/file/src/locale/ja-jp.d.ts +6 -0
  10. package/@ones-editor/file/src/locale/zh-cn.d.ts +6 -0
  11. package/@ones-editor/file/src/types.d.ts +0 -1
  12. package/@ones-editor/find-dialog/src/find-dialog.d.ts +1 -4
  13. package/@ones-editor/find-dialog/src/highlights/highligh-text.d.ts +0 -3
  14. package/@ones-editor/find-dialog/src/highlights/highlight-dom.d.ts +0 -1
  15. package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +1 -0
  16. package/@ones-editor/media-embed/src/core/video-resizer.d.ts +1 -0
  17. package/@ones-editor/mention/src/index.d.ts +1 -0
  18. package/@ones-editor/mention/src/locale/en-us.d.ts +6 -0
  19. package/@ones-editor/mention/src/locale/index.d.ts +1 -0
  20. package/@ones-editor/mention/src/locale/ja-jp.d.ts +6 -0
  21. package/@ones-editor/mention/src/locale/zh-cn.d.ts +6 -0
  22. package/@ones-editor/mention/src/mention.d.ts +1 -0
  23. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  24. package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +1 -2
  25. package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +0 -2
  26. package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +0 -2
  27. package/@ones-editor/ui-base/src/command-bar/types.d.ts +1 -2
  28. package/dist/index.d.ts +0 -1
  29. package/dist/index.js +175 -149
  30. package/package.json +1 -1
  31. package/@ones-editor/find-dialog/src/doc/doc-handler.d.ts +0 -15
@@ -19,6 +19,7 @@ export declare class BlockResizer extends TypedEmitter<BlockResizerEvents> {
19
19
  enableResize(block: BlockElement, resizableElement?: HTMLElement): void;
20
20
  disableResize(): void;
21
21
  update(block: BlockElement, resizableElement?: HTMLElement): void;
22
+ updateResizer(): void;
22
23
  getBlock(): BlockElement | null;
23
24
  destroy(): void;
24
25
  private getResizableElement;
@@ -6,6 +6,7 @@ export declare class MiniGroupList extends ListBase<MiniCommentGroup, MiniGroupI
6
6
  protected editor: OnesEditor;
7
7
  protected commentsProvider: OnesEditorCommentsProvider;
8
8
  constructor(editor: OnesEditor, commentsProvider: OnesEditorCommentsProvider, parent: HTMLElement);
9
+ private fixListOps;
9
10
  protected createItem(data: MiniCommentGroup): MiniGroupItem;
10
11
  protected findInsertPos(): number;
11
12
  private handleDocChanged;
@@ -15,7 +15,10 @@ declare const _default: {
15
15
  replyTitle: string;
16
16
  isFirst: string;
17
17
  isLast: string;
18
+ more: string;
18
19
  comment: string;
20
+ command: string;
21
+ quickMenuCommand: string;
19
22
  };
20
23
  };
21
24
  export default _default;
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  replyTitle: string;
16
16
  isFirst: string;
17
17
  isLast: string;
18
+ more: string;
18
19
  comment: string;
19
20
  command: string;
20
21
  quickMenuCommand: string;
@@ -56,6 +56,7 @@ export interface BoxCommands {
56
56
  }
57
57
  export interface BoxProperties {
58
58
  boxCommands?: Record<string, BoxCommands>;
59
+ abstract?: string;
59
60
  }
60
61
  export interface Box {
61
62
  boxType: string;
@@ -1,4 +1,5 @@
1
1
  import FileBox from './file-box';
2
2
  import FileEmbed from './file-embed';
3
+ import './locale';
3
4
  export * from './types';
4
5
  export { FileBox, FileEmbed };
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ file: {
3
+ abstract: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ file: {
3
+ abstract: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ file: {
3
+ abstract: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -20,5 +20,4 @@ export interface FileOptions {
20
20
  onClick?: (editor: OnesEditor, elem: BlockElement | BoxElement, event: MouseEvent) => void;
21
21
  onDownloadFile?: (editor: OnesEditor, data: FileData) => void;
22
22
  renderFileCardIcon?: (editor: OnesEditor, blockData: FileEmbedData) => Promise<false | HTMLImageElement>;
23
- onGetFileDownloadUrl?: (editor: OnesEditor, box: FileBoxData) => Promise<string | undefined>;
24
23
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="lodash" />
2
2
  import { ManualCloseDialog } from '../../../@ones-editor/ui-base';
3
- import { OnesEditor, BlockElement } from '../../../@ones-editor/core';
3
+ import { OnesEditor } from '../../../@ones-editor/core';
4
4
  export default class FindDialog {
5
5
  private editor;
6
6
  dialog: ManualCloseDialog | null;
@@ -25,9 +25,6 @@ export default class FindDialog {
25
25
  constructor(editor: OnesEditor);
26
26
  handleFindChanged: () => void;
27
27
  handleCompositionEnd: () => void;
28
- handleDocChanged: (changedBlock: BlockElement) => void;
29
- handleDocInserted: () => void;
30
- handleDocDeleted: (deletedBlock: BlockElement) => void;
31
28
  handleInput: (event: Event) => void;
32
29
  handleFind: () => void;
33
30
  findNext(options: {
@@ -3,9 +3,6 @@ export declare function clearAllReplaceResultHighlight(editor: OnesEditor): void
3
3
  export declare function clearAllHighlights(editor: OnesEditor, options?: {
4
4
  keepReplaceResult?: boolean;
5
5
  }): void;
6
- export declare function clearHighlightsInBlock(editor: OnesEditor, block: BlockElement, options?: {
7
- keepReplaceResult?: boolean;
8
- }): void;
9
6
  export declare function getCurrentHighlighIndex(editor: OnesEditor): number;
10
7
  export declare function gotoFirstHighlight(editor: OnesEditor): number;
11
8
  export declare function gotoNextHighlight(editor: OnesEditor): number;
@@ -1,7 +1,6 @@
1
1
  import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
2
2
  export declare function isHighlight(elem: HTMLElement): boolean;
3
3
  export declare function getAllHighlights(editor: OnesEditor): HTMLElement[];
4
- export declare function getHighlightsInBlock(editor: OnesEditor, block: BlockElement): HTMLElement[];
5
4
  export declare function getAllReplaceResultHighlights(editor: OnesEditor): HTMLElement[];
6
5
  export declare function getBlockHighlight(block: BlockElement): HTMLElement[];
7
6
  export declare function clearBlockHighlight(block: BlockElement): void;
@@ -18,5 +18,6 @@ export declare function getGraphEmbedBlockProperties(editor: OnesEditor, block:
18
18
  blockCommands: {
19
19
  'hovering-toolbar': GraphBlockCommands;
20
20
  };
21
+ abstract: string;
21
22
  };
22
23
  export {};
@@ -7,6 +7,7 @@ export default class VideoResizer {
7
7
  destroy(): void;
8
8
  private handleHoveringBlockChange;
9
9
  private getVideoElement;
10
+ updateResizer(block: BlockElement): void;
10
11
  disableBlockResize(block: BlockElement): void;
11
12
  enableBlockResize(block: BlockElement, resizableElement: HTMLElement): void;
12
13
  private handleResizing;
@@ -2,5 +2,6 @@ import OnesEditorMention from './mention';
2
2
  import MentionBox from './mention-box';
3
3
  import OnesEditorBlockMention from './block-mention';
4
4
  import './mention-style.scss';
5
+ import './locale';
5
6
  export { OnesEditorMention, MentionBox, OnesEditorBlockMention };
6
7
  export * from './types';
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ mention: {
3
+ abstract: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ mention: {
3
+ abstract: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ mention: {
3
+ abstract: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -6,6 +6,7 @@ export default class OnesEditorMention implements OnesEditorCustom {
6
6
  private options;
7
7
  suggest: OnesEditorAutoSuggest;
8
8
  constructor(editor: OnesEditor, options: MentionOptions);
9
+ onClose: () => void;
9
10
  destroy(): void;
10
11
  onShow: (suggest: OnesEditorAutoSuggest, containerId: string, blockIndex: number, offset: number) => boolean;
11
12
  onClickItem: (menu: OnesEditorAutoSuggest, item: CommandItem, anchor: AutoSuggestAnchor) => void;