@ones-editor/editor 0.0.7-beta.8 → 0.0.8
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.
- package/@ones-editor/code-block/src/code-block/languages.d.ts +8 -8
- package/@ones-editor/comments/src/comments/comments.d.ts +2 -0
- package/@ones-editor/comments/src/comments-list/comments-list.d.ts +2 -0
- package/@ones-editor/comments/src/comments-list/group-item.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/group-list.d.ts +5 -0
- package/@ones-editor/comments/src/comments-list/handler.d.ts +1 -1
- package/@ones-editor/comments/src/comments-list/list-base.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +1 -0
- package/@ones-editor/core/package.json +2 -1
- package/@ones-editor/core/src/core/block-renderers/block-renderers.d.ts +1 -0
- package/@ones-editor/core/src/core/block-renderers/standard-block-render.d.ts +1 -0
- package/@ones-editor/core/src/core/blocks/common/block-dom.d.ts +2 -1
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +2 -0
- package/@ones-editor/core/src/core/composition/index.d.ts +1 -0
- package/@ones-editor/core/src/core/containers/root-container.d.ts +1 -3
- package/@ones-editor/core/src/core/doc/doc.d.ts +2 -1
- package/@ones-editor/core/src/core/doc/index.d.ts +1 -0
- package/@ones-editor/core/src/core/editor/actions/replace-container.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/editor-dom/editor-dom.d.ts +1 -1
- package/@ones-editor/core/src/core/input-handler/input-handler.d.ts +1 -0
- package/@ones-editor/core/src/core/selection/range-from-point.d.ts +1 -1
- package/@ones-editor/core/src/core/types.d.ts +3 -0
- package/@ones-editor/core/src/utils/dom.d.ts +4 -0
- package/@ones-editor/drop-target/src/drop-indicator.d.ts +1 -0
- package/@ones-editor/graph-embed/src/helper/graph-base.d.ts +1 -1
- package/@ones-editor/graph-embed/types/index.d.ts +2 -2
- package/@ones-editor/heading-collapse/src/heading-collapse-button/heading-block-collapse-button-render.d.ts +1 -0
- package/@ones-editor/image-embed/src/utils.d.ts +1 -0
- package/@ones-editor/input-handlers/src/enforce-with-document-title/enforce-with-document-title-handler.d.ts +1 -0
- package/@ones-editor/media-embed/src/locale/en-us.d.ts +1 -0
- package/@ones-editor/media-embed/src/locale/ja-jp.d.ts +1 -0
- package/@ones-editor/media-embed/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/paste-special/src/paste-special-button.d.ts +1 -0
- package/@ones-editor/paste-special/src/paste-special-handler.d.ts +2 -1
- package/@ones-editor/sharedb-doc/src/doc/auth-connection.d.ts +1 -0
- package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +1 -0
- package/@ones-editor/table-block/src/table-block/paste/paste-table-in-table.d.ts +2 -2
- package/@ones-editor/to-docx/src/doc2other/image.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +3 -1
- package/@ones-editor/ui/src/tooltips/index.d.ts +2 -0
- package/@ones-editor/ui-base/src/index.d.ts +2 -1
- package/@ones-editor/ui-base/src/list/filterable-list.d.ts +1 -0
- package/@ones-editor/versions/src/history-render/index.d.ts +1 -0
- package/dist/index.js +73625 -817
- package/dist/types.d.ts +3 -1
- package/package.json +3 -1
|
@@ -6,11 +6,13 @@ import TextStyleShortcuts from './shortcuts';
|
|
|
6
6
|
import { editLink } from './link-popup';
|
|
7
7
|
import { getToolbar } from './toolbar/helper';
|
|
8
8
|
import { GroupOrder } from './quick-menu/order';
|
|
9
|
+
import { getReferenceClientRect } from './toolbar/get-reference-client-rect';
|
|
10
|
+
import { isSelectBoxOnly } from './toolbar/box-only';
|
|
9
11
|
import { InlineBoxCommandProvider } from './quick-menu/inline-box-items';
|
|
10
12
|
import './locale';
|
|
11
13
|
import type { OnesEditorToolbarBase } from './toolbar/types';
|
|
12
14
|
import type { QuickMenuItem } from './quick-menu';
|
|
13
15
|
export type { QuickMenuCommandProvider, QuickMenuCommandBetween, QuickMenuCommandInline, GetAllQuickMenuItemsOptions, OnesEditorToolbarBase };
|
|
14
|
-
export { OnesEditorToolbar, OnesEditorQuickMenu, OnesEditorTooltip, getAllQuickMenuItems, QuickMenuItem, editLink, TextStyleShortcuts, getToolbar, getHeadingMenuOptions, BasicCommands, GroupOrder, InlineBoxCommandProvider, };
|
|
16
|
+
export { OnesEditorToolbar, OnesEditorQuickMenu, OnesEditorTooltip, getAllQuickMenuItems, QuickMenuItem, editLink, TextStyleShortcuts, getToolbar, getHeadingMenuOptions, BasicCommands, GroupOrder, isSelectBoxOnly, InlineBoxCommandProvider, getReferenceClientRect, };
|
|
15
17
|
export { createTextButton } from './text-button';
|
|
16
18
|
export { mergeCommands } from './toolbar/merge-commands';
|
|
@@ -7,9 +7,11 @@ export default class OnesEditorTooltip {
|
|
|
7
7
|
currentInstance: Instance | null;
|
|
8
8
|
attributeName: string[];
|
|
9
9
|
attributeDesc: string;
|
|
10
|
+
private _lastClickButtonId;
|
|
10
11
|
private observer;
|
|
11
12
|
private observerCallback;
|
|
12
13
|
constructor(editor: OnesEditor);
|
|
14
|
+
set lastClickButtonId(value: string);
|
|
13
15
|
createContent: (reference: Element) => string | HTMLDivElement;
|
|
14
16
|
visible(): boolean | undefined;
|
|
15
17
|
hide(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import './style.scss';
|
|
2
2
|
import './locale';
|
|
3
|
+
import * as tippy from 'tippy.js';
|
|
3
4
|
export * from './components';
|
|
4
5
|
export * from './list';
|
|
5
6
|
export * from './toast';
|
|
@@ -13,4 +14,4 @@ export * from './color-button';
|
|
|
13
14
|
export * from './input/create-input';
|
|
14
15
|
export * from './auto-suggest';
|
|
15
16
|
export * from './item-shortcuts';
|
|
16
|
-
export
|
|
17
|
+
export { tippy, };
|
|
@@ -18,6 +18,7 @@ export default class FilterableList {
|
|
|
18
18
|
getSelectedIndex(): number;
|
|
19
19
|
setSelectedId(id: string): void;
|
|
20
20
|
focus(): void;
|
|
21
|
+
moveSelectedItemIntoView(): void;
|
|
21
22
|
reset(): void;
|
|
22
23
|
protected handleKeydown: (event: KeyboardEvent) => void;
|
|
23
24
|
protected handleInputChanged: () => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BlockElement, BlockPath, DocBlock, DocBlockTextAttributes, OnesEditor, OnesEditorBlockRenderer, OnesEditorBlockRenderResult } from '../../../../@ones-editor/core';
|
|
2
2
|
export default class OnesEditorHistoryRender implements OnesEditorBlockRenderer {
|
|
3
|
+
renderBox(editor: OnesEditor, path: BlockPath, attributes: DocBlockTextAttributes): OnesEditorBlockRenderResult;
|
|
3
4
|
renderText(editor: OnesEditor, path: BlockPath, attributes: DocBlockTextAttributes): OnesEditorBlockRenderResult;
|
|
4
5
|
renderBlock(editor: OnesEditor, path: BlockPath, blockData: DocBlock): OnesEditorBlockRenderResult;
|
|
5
6
|
updateBlock(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocBlock): void;
|