@ones-editor/editor 0.0.3-beta.45 → 0.0.3-beta.46

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 (62) hide show
  1. package/@ones-editor/block-menu/src/block-menu-button/drag-drop/find-preview-element.d.ts +1 -1
  2. package/@ones-editor/code-block/src/code-block/index.d.ts +1 -3
  3. package/@ones-editor/comments/src/comments-helper/utils.d.ts +1 -0
  4. package/@ones-editor/comments/src/comments-list/arrange-items.d.ts +1 -1
  5. package/@ones-editor/comments/src/comments-list/group-list.d.ts +0 -1
  6. package/@ones-editor/core/src/core/blocks/block-anchor/create-block-anchor.d.ts +0 -1
  7. package/@ones-editor/core/src/core/blocks/text-blocks/index.d.ts +0 -1
  8. package/@ones-editor/core/src/core/composition/clipboard/copy.d.ts +2 -2
  9. package/@ones-editor/core/src/core/composition/editor-input.d.ts +0 -1
  10. package/@ones-editor/core/src/core/converter/block-to-html.d.ts +2 -2
  11. package/@ones-editor/core/src/core/converter/block-to-markdown.d.ts +2 -2
  12. package/@ones-editor/core/src/core/converter/block-to-text.d.ts +2 -2
  13. package/@ones-editor/core/src/core/editor/actions/focus-to-end.d.ts +1 -0
  14. package/@ones-editor/core/src/core/index.d.ts +0 -1
  15. package/@ones-editor/core/src/core/input-handler/input-handler.d.ts +0 -1
  16. package/@ones-editor/core/src/core/selection/actions/index.d.ts +2 -2
  17. package/@ones-editor/core/src/core/selection/actions/select-all.d.ts +1 -3
  18. package/@ones-editor/core/src/core/types.d.ts +2 -5
  19. package/@ones-editor/core/src/utils/dom-scroll.d.ts +1 -3
  20. package/@ones-editor/graph-embed/src/helper/graph-base.d.ts +0 -1
  21. package/@ones-editor/list-block/src/converter/index.d.ts +14 -2
  22. package/@ones-editor/list-block/src/level/decrease-level.d.ts +0 -1
  23. package/@ones-editor/list-block/src/types.d.ts +1 -2
  24. package/@ones-editor/media-embed/src/core/media-embed.d.ts +1 -3
  25. package/@ones-editor/mention/src/mention.d.ts +0 -1
  26. package/@ones-editor/scroll-container/src/dom-utils.d.ts +0 -9
  27. package/@ones-editor/scroll-container/src/index.d.ts +0 -2
  28. package/@ones-editor/scroll-container/src/observer/container-resize-observer.d.ts +1 -2
  29. package/@ones-editor/scroll-container/src/observer/locating-resize-observer.d.ts +1 -2
  30. package/@ones-editor/scroll-container/src/scroll-listener.d.ts +0 -2
  31. package/@ones-editor/scroll-container/src/types.d.ts +0 -1
  32. package/@ones-editor/table-block/src/locale/en-us.d.ts +0 -5
  33. package/@ones-editor/table-block/src/locale/zh-cn.d.ts +0 -5
  34. package/@ones-editor/table-block/src/table-block/table-scroll-events.d.ts +0 -1
  35. package/@ones-editor/table-block/src/types.d.ts +0 -2
  36. package/@ones-editor/text-commands/src/locale/en-us.d.ts +0 -1
  37. package/@ones-editor/text-commands/src/locale/zh-cn.d.ts +0 -1
  38. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  39. package/@ones-editor/ui/src/locale/en-us.d.ts +0 -2
  40. package/@ones-editor/ui/src/locale/zh-cn.d.ts +0 -2
  41. package/@ones-editor/ui/src/quick-menu/inline-box-items.d.ts +0 -1
  42. package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +1 -2
  43. package/@ones-editor/ui-base/src/auto-suggest/index.d.ts +1 -2
  44. package/@ones-editor/ui-base/src/input/create-input.d.ts +0 -1
  45. package/@ones-editor/ui-base/src/item-shortcuts/index.d.ts +0 -1
  46. package/@ones-editor/ui-base/src/list/drop-down-filterable-list.d.ts +2 -2
  47. package/@ones-editor/ui-base/src/locale/en-us.d.ts +0 -1
  48. package/@ones-editor/ui-base/src/locale/zh-cn.d.ts +0 -1
  49. package/@ones-editor/webpage-embed/src/ui/dialog.d.ts +2 -2
  50. package/@ones-editor/webpage-embed/src/webpage-embed/webpage-items.d.ts +0 -2
  51. package/dist/index.d.ts +2 -1
  52. package/dist/index.js +134 -154
  53. package/package.json +1 -2
  54. package/@ones-editor/code-block/src/code-block/code-caret.d.ts +0 -7
  55. package/@ones-editor/code-block/src/code-block/code-copy.d.ts +0 -4
  56. package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-markdown.d.ts +0 -3
  57. package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-plain-html.d.ts +0 -3
  58. package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-plain-text.d.ts +0 -3
  59. package/@ones-editor/list-block/src/converter/convert-list-to.d.ts +0 -2
  60. package/@ones-editor/list-block/src/converter/convert-to-list.d.ts +0 -14
  61. package/@ones-editor/list-block/src/level/change-multi-levels.d.ts +0 -2
  62. package/@ones-editor/ui/src/toolbar/box-only.d.ts +0 -2
@@ -1,2 +1,2 @@
1
- import { BlockElement } from '../../../../../@ones-editor/core';
1
+ import type { BlockElement } from '../../../../../@ones-editor/core';
2
2
  export declare function findPreviewElement(block: BlockElement): HTMLElement;
@@ -1,6 +1,4 @@
1
1
  import CodeBlock, { CodeLineBlock } from './code-block';
2
- import OnesEditorCodeCaret from './code-caret';
3
- import CopyCodeInputHandler from './code-copy';
4
2
  import CodeShortcuts from './code-shortcuts';
5
3
  import CodeTextDecorator from './code-text-decorate';
6
- export { CodeBlock, CodeLineBlock, CodeTextDecorator, CodeShortcuts, CopyCodeInputHandler, OnesEditorCodeCaret };
4
+ export { CodeBlock, CodeLineBlock, CodeTextDecorator, CodeShortcuts };
@@ -1,5 +1,6 @@
1
1
  import { OnesEditorComment, OnesEditor } from '../../../../@ones-editor/core';
2
2
  export declare function isChildComment(comment: OnesEditorComment): boolean;
3
+ export declare function getCommentsRoot(): HTMLDivElement;
3
4
  export declare function getCommentItemCountInGroupItem(groupItemRoot: HTMLElement, commentItemCls?: string): number;
4
5
  export declare function getClosestCommentItemId(element: HTMLElement): string | null;
5
6
  export declare function addGroupActionToElement(element: HTMLElement, action: string): void;
@@ -1,3 +1,3 @@
1
1
  import { OnesEditor } from '../../../../@ones-editor/core';
2
2
  import type { CommentGroupItem } from './group-item';
3
- export declare function arrangeItems(editor: OnesEditor, items: CommentGroupItem[], activeItem: CommentGroupItem | null, fixTop?: number): void;
3
+ export declare function arrangeItems(editor: OnesEditor, items: CommentGroupItem[], activeItem: CommentGroupItem | null): void;
@@ -31,7 +31,6 @@ export default class CommentGroupList extends ListBase<CommentWithChildren, Comm
31
31
  handleEditorResize: () => void;
32
32
  handleDocChanged: () => void;
33
33
  handleItemResize: () => void;
34
- handleScroll: (event: WheelEvent) => void;
35
34
  updateGroupItemSwitch: () => void;
36
35
  private updateComments;
37
36
  }
@@ -1,4 +1,3 @@
1
1
  import { BlockElement, OnesEditor } from '../../types';
2
2
  import './anchor.scss';
3
3
  export declare function createBlockAnchor(editor: OnesEditor, block: BlockElement, id: string, refClientRect?: DOMRect): HTMLElement;
4
- export declare function createBlockCaretAnchor(editor: OnesEditor, block: BlockElement, offset: number, id: string): HTMLElement;
@@ -1,5 +1,4 @@
1
1
  import TextBlock, { updateTextBlockContent } from './text-block';
2
2
  export * from './base/child';
3
3
  export * from './base/text-offset';
4
- export * from './base/block-text';
5
4
  export { TextBlock, updateTextBlockContent, };
@@ -1,7 +1,7 @@
1
1
  import { DocObject } from '../../doc';
2
2
  import { BlockElement, OnesEditor } from '../../types';
3
+ export declare function docToPlainText(editor: OnesEditor, doc: DocObject): string;
3
4
  export declare function addMetaToDoc(editor: OnesEditor, doc: DocObject): void;
4
- export type BeforeCopyCallback = (editor: OnesEditor, event: ClipboardEvent, doc: DocObject) => DocObject | boolean | undefined;
5
- export declare function editorCopy(editor: OnesEditor, event: ClipboardEvent, beforeCopy?: BeforeCopyCallback): void;
5
+ export declare function editorCopy(editor: OnesEditor, event: ClipboardEvent): void;
6
6
  export declare function editorCopyWithoutEvent(editor: OnesEditor): void;
7
7
  export declare function editorCopyBlock(editor: OnesEditor, block: BlockElement): Promise<boolean>;
@@ -10,7 +10,6 @@ export interface EditorInputCallbacks {
10
10
  onFocus: () => void;
11
11
  onBlur: () => void;
12
12
  onPaste: (event: ClipboardEvent) => void;
13
- onCopy: (event: ClipboardEvent) => void;
14
13
  addHandler: (handler: OnesEditorInputHandler) => void;
15
14
  removeHandler: (handler: OnesEditorInputHandler) => void;
16
15
  defaultInsertText: (editor: OnesEditor, containerId: string, blockIndex: number, offset: number, text: string) => void;
@@ -1,3 +1,3 @@
1
1
  import { DocBlock, DocObject } from '../doc';
2
- import { BlockPath, OnesEditor } from '../types';
3
- export declare function blockToHtml(editor: OnesEditor, blockData: DocBlock, doc: DocObject, path: BlockPath): string;
2
+ import { OnesEditor } from '../types';
3
+ export declare function blockToHtml(editor: OnesEditor, blockData: DocBlock, doc: DocObject): string;
@@ -1,3 +1,3 @@
1
1
  import { DocBlock, DocObject } from '../doc';
2
- import { BlockPath, OnesEditor } from '../types';
3
- export declare function blockToMarkdown(editor: OnesEditor, blockData: DocBlock, doc: DocObject, path: BlockPath): string;
2
+ import { OnesEditor } from '../types';
3
+ export declare function blockToMarkdown(editor: OnesEditor, blockData: DocBlock, doc: DocObject): string;
@@ -1,3 +1,3 @@
1
1
  import { DocBlock, DocObject } from '../doc';
2
- import { BlockPath, OnesEditor } from '../types';
3
- export declare function blockToText(editor: OnesEditor, blockData: DocBlock, doc: DocObject, path: BlockPath): string;
2
+ import { OnesEditor } from '../types';
3
+ export declare function blockToText(editor: OnesEditor, blockData: DocBlock, doc: DocObject): string;
@@ -1,2 +1,3 @@
1
1
  import { OnesEditor } from '../../types';
2
+ export declare function editorSelectEnd(editor: OnesEditor): void;
2
3
  export declare function editorFocusToEnd(editor: OnesEditor): void;
@@ -7,7 +7,6 @@ export * from './decorators';
7
7
  export * from './doc';
8
8
  export * from './editor';
9
9
  export * from './selection';
10
- export * from './selection/actions';
11
10
  export * from './keyboard';
12
11
  export * from './converter';
13
12
  export * from './command-providers';
@@ -11,7 +11,6 @@ export declare class EditorInputHandlers implements EditorInputCallbacks {
11
11
  onRemoteChanged(type: RemoteChangeType): void;
12
12
  onCompositionStart(event: Event): void;
13
13
  onUpdateCompositionText(event: Event, text: string, end: boolean): void;
14
- onCopy(event: ClipboardEvent): void;
15
14
  onPaste(event: ClipboardEvent): void;
16
15
  onFocus(): void;
17
16
  onBlur(): void;
@@ -22,5 +22,5 @@ import { editorMovePageUp } from './move-page-up';
22
22
  import { editorMovePageDown } from './move-page-down';
23
23
  import { editorSelectPageUp } from './select-page-up';
24
24
  import { editorSelectPageDown } from './select-page-down';
25
- import { editorSelectAll, editorSelectContainer, isContainerSelectedAllChildBlocks } from './select-all';
26
- export { editorMoveLeft, editorMoveRight, editorMoveUp, editorMoveDown, editorSelectDown, editorSelectUp, editorSelectLeft, editorSelectRight, editorMoveWordLeft, editorMoveWordEnd, editorSelectWordLeft, editorSelectWordEnd, editorMoveHome, editorMoveEnd, editorSelectHome, editorSelectEnd, editorMovePageUp, editorMovePageDown, editorSelectPageUp, editorSelectPageDown, editorSelectLineHome, editorSelectLineEnd, editorMoveLineHome, editorMoveLineEnd, editorSelectAll, editorSelectContainer, isContainerSelectedAllChildBlocks, };
25
+ import { editorSelectAll } from './select-all';
26
+ export { editorMoveLeft, editorMoveRight, editorMoveUp, editorMoveDown, editorSelectDown, editorSelectUp, editorSelectLeft, editorSelectRight, editorMoveWordLeft, editorMoveWordEnd, editorSelectWordLeft, editorSelectWordEnd, editorMoveHome, editorMoveEnd, editorSelectHome, editorSelectEnd, editorMovePageUp, editorMovePageDown, editorSelectPageUp, editorSelectPageDown, editorSelectLineHome, editorSelectLineEnd, editorMoveLineHome, editorMoveLineEnd, editorSelectAll, };
@@ -1,4 +1,2 @@
1
- import { ContainerElement, OnesEditor, SimpleSelectionRange } from '../../types';
2
- export declare function isContainerSelectedAllChildBlocks(container: ContainerElement, range: SimpleSelectionRange): boolean;
1
+ import { OnesEditor } from '../../types';
3
2
  export declare function editorSelectAll(editor: OnesEditor): boolean;
4
- export declare function editorSelectContainer(editor: OnesEditor, container: ContainerElement): void;
@@ -61,7 +61,6 @@ export interface Box {
61
61
  boxType: string;
62
62
  updateBoxContent: (editor: OnesEditor, boxElement: BoxElement, boxContent: BoxContentElement, boxData: DocBox) => void;
63
63
  convertFrom?: (editor: OnesEditor, text: string) => DocBox | null;
64
- convertTo?: (editor: OnesEditor, boxData: DocBox, doc: DocObject, type: 'text' | 'html' | 'markdown') => string;
65
64
  handleClickBox?: (editor: OnesEditor, box: BoxElement, event: MouseEvent) => void;
66
65
  toStandardText?: (editor: OnesEditor, box: DocBox) => Promise<DocBlockText | undefined>;
67
66
  getBoxProperties?: (editor: OnesEditor, boxElement: BoxElement) => BoxProperties;
@@ -132,9 +131,8 @@ export interface CommandItem {
132
131
  manualShowChildren?: boolean;
133
132
  childrenPlacement?: CommandItemChildrenPlacement;
134
133
  childrenOffset?: [number, number];
135
- subText?: string;
134
+ shortcut?: string;
136
135
  defaultCheckedChildren?: string[];
137
- disableTooltip?: boolean;
138
136
  setCloseable?: (closeable: Closeable) => void;
139
137
  beforePopup?: (parent: unknown) => void;
140
138
  }
@@ -217,7 +215,7 @@ export interface Block {
217
215
  data?: DocBlockAttributes;
218
216
  }) => ConvertBlockResult | null;
219
217
  selectionToDoc?: (editor: OnesEditor, selectedBlock: SelectedBlock) => DocObject;
220
- convertTo?: (editor: OnesEditor, blockData: DocBlock, doc: DocObject, type: 'text' | 'html' | 'markdown', path: BlockPath) => string;
218
+ convertTo?: (editor: OnesEditor, blockData: DocBlock, doc: DocObject, type: 'text' | 'html' | 'markdown') => string;
221
219
  toStandardDoc?: (editor: OnesEditor, blockData: DocBlock, doc: DocObject) => Promise<DocObject | undefined>;
222
220
  getBlockStyles?: (editor: OnesEditor, block: BlockElement) => BlockStyles;
223
221
  blockToDoc?: (srcDoc: DocObject, srcBlockData: DocBlock, childBlockConverter: (srcDoc: DocObject, srcBlockData: DocBlock) => DocObject) => DocObject;
@@ -581,7 +579,6 @@ export interface OnesEditorInputHandler {
581
579
  handleAfterInsertText?: (editor: OnesEditor, containerId: string, blockIndex: number, offset: number, text: string) => boolean;
582
580
  handleBeforeKeyDown?: (editor: OnesEditor, event: KeyboardEvent) => boolean;
583
581
  handleAfterKeyDown?: (editor: OnesEditor, event: KeyboardEvent) => boolean;
584
- handleBeforeCopy?: (editor: OnesEditor, event: ClipboardEvent, doc: DocObject) => DocObject | boolean | undefined;
585
582
  handleBeforePaste?: (editor: OnesEditor, event: ClipboardEvent, doc: OnesEditorDocs) => Promise<boolean>;
586
583
  handleAfterPaste?: (editor: OnesEditor, event: ClipboardEvent, doc: OnesEditorDocs) => Promise<boolean>;
587
584
  handleBeforePasteDoc?: (editor: OnesEditor, doc: DocObject) => Promise<boolean>;
@@ -1,5 +1,3 @@
1
- export declare function getScrollContainer(element: HTMLElement, options?: {
2
- horizontal?: boolean;
3
- }): HTMLElement;
1
+ export declare function getScrollContainer(element: HTMLElement): HTMLElement;
4
2
  export declare function disablePageScroll(id: string): void;
5
3
  export declare function enablePageScroll(id: string): void;
@@ -6,7 +6,6 @@ export default abstract class GraphBase {
6
6
  private codeEmbedDataKey;
7
7
  protected editor: OnesEditor;
8
8
  logger: Logger;
9
- editing: boolean;
10
9
  constructor(editor: OnesEditor, graphType: GraphType, codeEmbedDataKey: string);
11
10
  protected abstract code2ObjectUrl(code: string): Promise<string>;
12
11
  protected abstract code2ResourceId(code: string): Promise<string>;
@@ -1,2 +1,14 @@
1
- export * from './convert-to-list';
2
- export * from './convert-list-to';
1
+ import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
2
+ import { DocListBlock, ListBlockType } from '../types';
3
+ type ConvertToListData = {
4
+ listType?: ListBlockType;
5
+ };
6
+ export declare function findNearestList(srcBlock: BlockElement, type: ListBlockType): BlockElement | null;
7
+ export declare function convertToList(editor: OnesEditor, srcBlock: BlockElement, options: {
8
+ offset: number;
9
+ data?: ConvertToListData;
10
+ }): {
11
+ blockData: DocListBlock;
12
+ onConverted: (editor: OnesEditor, block: BlockElement) => void;
13
+ } | null;
14
+ export {};
@@ -1,3 +1,2 @@
1
1
  import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
2
- export declare function canDecreaseListBlockLevel(editor: OnesEditor, block: BlockElement): boolean;
3
2
  export declare function decreaseListBlockLevel(editor: OnesEditor, block: BlockElement): boolean;
@@ -1,6 +1,5 @@
1
- import { BlockElement, CommandItem, DocBlock, DocBlockText, OnesEditor } from '../../../@ones-editor/core';
1
+ import { BlockElement, CommandItem, DocBlock, OnesEditor } from '../../../@ones-editor/core';
2
2
  export interface DocListBlock extends DocBlock {
3
- text: DocBlockText;
4
3
  level: number;
5
4
  start: number;
6
5
  ordered: boolean;
@@ -1,4 +1,4 @@
1
- import { InsertEmptyBlockOptions, DocEmbedBlock, DocEmbedData, DocObject } from '../../../../@ones-editor/core';
1
+ import { InsertEmptyBlockOptions, DocEmbedBlock, DocEmbedData } from '../../../../@ones-editor/core';
2
2
  import type { Embed, OnesEditor, BlockContentElement, BlockElement } from '../../../../@ones-editor/core';
3
3
  import { MediaType } from '../constant';
4
4
  import { Media } from './media';
@@ -20,12 +20,10 @@ export declare abstract class MediaEmbed implements Embed {
20
20
  icon: string;
21
21
  order: number;
22
22
  group: string;
23
- subText: string;
24
23
  }[];
25
24
  handleInsertEmptyEmbed: (editor: OnesEditor, options: InsertEmptyBlockOptions) => Promise<BlockElement | null>;
26
25
  };
27
26
  createEmbedContent(editor: OnesEditor, content: BlockContentElement, blockData: DocEmbedBlock<DocEmbedData>): void;
28
27
  handleUpdateBlock(editor: OnesEditor, block: BlockElement, blockData: DocEmbedBlock<DocEmbedData>): boolean;
29
28
  handleDeleteBlock(editor: OnesEditor, block: BlockElement): void;
30
- convertTo(editor: OnesEditor, blockData: DocEmbedBlock, doc: DocObject, type: 'html' | 'text' | 'markdown'): string;
31
29
  }
@@ -5,7 +5,6 @@ export type OnesEditorMentionUser = {
5
5
  displayName: string;
6
6
  avatarUrl: string;
7
7
  element?: HTMLElement;
8
- email?: string;
9
8
  };
10
9
  export type MentionOptions = {
11
10
  queryUsers: (editor: OnesEditor, text: string) => Promise<OnesEditorMentionUser[]>;
@@ -1,19 +1,10 @@
1
1
  import { ScrollAreaElement, ScrollContainerElement, ScrollCore } from './common-types';
2
- export declare function getElementScale(element: Element): number;
3
- export declare function getSizeAsScale(element: HTMLElement, num: number): number;
4
2
  export declare function getScrollWrapPaddingSize(scrollWrap: ScrollAreaElement): {
5
3
  paddingBottom: number;
6
4
  paddingTop: number;
7
5
  paddingLeft: number;
8
6
  paddingRight: number;
9
7
  };
10
- export declare function getElementScrollSize(scrollContainer: Element): {
11
- scrollLeft: number;
12
- scrollWidth: number;
13
- clientWidth: number;
14
- clientHeight: number;
15
- };
16
- export declare function getElementOffset(element: HTMLElement, key: 'offsetLeft' | 'offsetTop' | 'offsetWidth' | 'offsetHeight'): number;
17
8
  export declare function getOriginBoundaryData(scrollCore: ScrollCore, scrollContainer: ScrollContainerElement): {
18
9
  originWidth: number;
19
10
  maxLeft: number;
@@ -3,7 +3,6 @@ import { ScrollContainerOptions } from './types';
3
3
  export * from './types';
4
4
  export interface ChildEvents {
5
5
  scroll: (scrollContainer: ScrollContainer) => void;
6
- resize: (scrollContainer: ScrollContainer) => void;
7
6
  }
8
7
  export declare class ScrollContainer extends TypedEmitter<ChildEvents> {
9
8
  private scrollListener?;
@@ -14,7 +13,6 @@ export declare class ScrollContainer extends TypedEmitter<ChildEvents> {
14
13
  get scrollOptions(): ScrollContainerOptions;
15
14
  init: (options: ScrollContainerOptions) => void;
16
15
  private handleContainerScroll;
17
- private handleResize;
18
16
  private handleBaseListenerDestroy;
19
17
  destroy(): void;
20
18
  }
@@ -1,9 +1,8 @@
1
1
  import { ScrollContainerElement, ScrollCore } from '../common-types';
2
2
  export declare class ContainerResizeObserver {
3
3
  private scrollCore;
4
- private callback;
5
4
  private resizeObserver;
6
- constructor(scrollCore: ScrollCore, callback: (scrollContainer: ScrollContainerElement) => void);
5
+ constructor(scrollCore: ScrollCore);
7
6
  private get containers();
8
7
  private handleResizeEntry;
9
8
  private handleContentResize;
@@ -1,10 +1,9 @@
1
1
  import { ScrollContainerElement, ScrollCore } from '../common-types';
2
2
  export declare class LocatingContainerResizeObserver {
3
3
  private scrollCore;
4
- private callback;
5
4
  private resizeObserver;
6
5
  private scrollContainersMap;
7
- constructor(scrollCore: ScrollCore, callback: (scrollContainer: ScrollContainerElement) => void);
6
+ constructor(scrollCore: ScrollCore);
8
7
  private handleResizeEntry;
9
8
  private handleResize;
10
9
  bind(scrollContainer: ScrollContainerElement): void;
@@ -4,7 +4,6 @@ import { ScrollContainerOptions } from './types';
4
4
  import './ui/bar.scss';
5
5
  interface ChildEvents {
6
6
  scroll: (scrollCore: ScrollListener, scrollContainerElement: ScrollContainerElement) => void;
7
- resize: (scrollCore: ScrollListener, scrollContainerElement: ScrollContainerElement) => void;
8
7
  }
9
8
  export declare class ScrollListener extends TypedEmitter<ChildEvents> implements ScrollCore {
10
9
  private parentContainer;
@@ -19,7 +18,6 @@ export declare class ScrollListener extends TypedEmitter<ChildEvents> implements
19
18
  constructor(parentContainer: ParentContainerElement);
20
19
  private load;
21
20
  private handleScrollContainerScroll;
22
- private handleResize;
23
21
  getParentScrollContainer(): Element;
24
22
  private handleIntersection;
25
23
  private handleWindowEffect;
@@ -10,5 +10,4 @@ export interface ScrollContainerOptions {
10
10
  paddingLeft?: number;
11
11
  paddingBottom?: number;
12
12
  paddingRight?: number;
13
- isSetScale?: () => boolean;
14
13
  }
@@ -6,11 +6,6 @@ declare const _default: {
6
6
  mergeCell: string;
7
7
  splitCell: string;
8
8
  tableConfigKey: string;
9
- deleteTable: string;
10
- insertCol: string;
11
- insertRow: string;
12
- deleteCol: string;
13
- deleteRow: string;
14
9
  tableConfig: {
15
10
  rowTitle: string;
16
11
  colTitle: string;
@@ -6,11 +6,6 @@ declare const _default: {
6
6
  mergeCell: string;
7
7
  splitCell: string;
8
8
  tableConfigKey: string;
9
- deleteTable: string;
10
- insertCol: string;
11
- insertRow: string;
12
- deleteCol: string;
13
- deleteRow: string;
14
9
  tableConfig: {
15
10
  rowTitle: string;
16
11
  colTitle: string;
@@ -14,7 +14,6 @@ export declare class TableScrollEvents {
14
14
  setAutoScroll(dir: NonNullable<ScrollDirType>): void;
15
15
  handleSelectionChanged: (editor: OnesEditor) => void;
16
16
  handleScroll: (scrollContainer: ScrollContainer) => void;
17
- handleReset: (scrollContainer: ScrollContainer) => void;
18
17
  destroy(): void;
19
18
  }
20
19
  export declare function handleTableScrollEvents(editor: OnesEditor): TableScrollEvents;
@@ -1,6 +1,4 @@
1
1
  export interface TableOptions {
2
2
  chartCdn?: string;
3
3
  locatingContainer: Element;
4
- barFloatWindowBottom?: number;
5
- isSetScale?: () => boolean;
6
4
  }
@@ -7,7 +7,6 @@ declare const _default: {
7
7
  code: string;
8
8
  subscript: string;
9
9
  superscript: string;
10
- more: string;
11
10
  };
12
11
  commandDesc: {
13
12
  mac: {
@@ -7,7 +7,6 @@ declare const _default: {
7
7
  code: string;
8
8
  subscript: string;
9
9
  superscript: string;
10
- more: string;
11
10
  };
12
11
  commandDesc: {
13
12
  mac: {