@ones-editor/editor 2.1.7-beta.22 → 2.1.7-beta.25
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/{ui → block-menu}/src/block-menu/index.d.ts +1 -3
- package/@ones-editor/block-menu/src/block-menu/items/block-command-items.d.ts +3 -0
- package/@ones-editor/block-menu/src/block-menu/items/index.d.ts +5 -0
- package/@ones-editor/block-menu/src/block-menu/items/insert-block-items/index.d.ts +5 -0
- package/@ones-editor/block-menu/src/block-menu/items/text-styles/text-style-item.d.ts +30 -0
- package/@ones-editor/block-menu/src/block-menu/items/types.d.ts +5 -0
- package/@ones-editor/block-menu/src/block-menu-button/menu-button/index.d.ts +1 -1
- package/@ones-editor/block-padding/src/index.d.ts +1 -1
- package/@ones-editor/block-resizer/src/index.d.ts +1 -1
- package/@ones-editor/callout-block/src/callout-block/callout-quick-menu-item-filter.d.ts +4 -3
- package/@ones-editor/callout-block/src/index.d.ts +0 -1
- package/@ones-editor/comments/src/index.d.ts +1 -5
- package/@ones-editor/comments/src/text-comments/comments-command-provider.d.ts +3 -4
- package/@ones-editor/core/src/core/blocks/common/block-properties.d.ts +9 -9
- package/@ones-editor/core/src/core/blocks/common/execute-block-command.d.ts +2 -2
- package/@ones-editor/core/src/core/blocks/complex-blocks/child-blocks.d.ts +1 -2
- package/@ones-editor/core/src/core/blocks/complex-blocks/complex-block-helper.d.ts +5 -3
- package/@ones-editor/core/src/core/blocks/text-blocks/base/child.d.ts +7 -1
- package/@ones-editor/core/src/core/blocks/text-blocks/base/line-breaks.d.ts +2 -1
- package/@ones-editor/core/src/core/blocks/text-blocks/base/range.d.ts +2 -1
- package/@ones-editor/core/src/core/blocks/text-blocks/base/text-offset.d.ts +2 -1
- package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-plain-html.d.ts +2 -2
- package/@ones-editor/core/src/core/command-providers/commands/index.d.ts +0 -2
- package/@ones-editor/core/src/core/command-providers/commands/range-commands.d.ts +5 -2
- package/@ones-editor/core/src/core/command-providers/editor-command-providers.d.ts +14 -5
- package/@ones-editor/core/src/core/command-providers/index.d.ts +1 -3
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +1 -1
- package/@ones-editor/core/src/core/composition/index.d.ts +0 -1
- package/@ones-editor/core/src/core/containers/root-container.d.ts +2 -3
- package/@ones-editor/core/src/core/doc/doc.d.ts +0 -3
- package/@ones-editor/core/src/core/doc/rich-text/text-style.d.ts +0 -2
- package/@ones-editor/core/src/core/editor/actions/clear-selected-contents.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/editor-dom/editor-dom.d.ts +0 -1
- package/@ones-editor/core/src/core/editor/index.d.ts +1 -1
- package/@ones-editor/core/src/core/insertions/editor-insertions.d.ts +0 -1
- package/@ones-editor/core/src/core/selection/actions/index.d.ts +1 -2
- package/@ones-editor/core/src/core/selection/adjust-selection-pos.d.ts +1 -5
- package/@ones-editor/core/src/core/selection/index.d.ts +0 -1
- package/@ones-editor/core/src/core/selection/select-handler.d.ts +3 -3
- package/@ones-editor/core/src/core/types.d.ts +28 -51
- package/@ones-editor/core/src/core/undo-manager/actions/action.d.ts +1 -5
- package/@ones-editor/core/src/core/undo-manager/actions/block-action.d.ts +0 -1
- package/@ones-editor/core/src/core/undo-manager/actions/update-block-data-action.d.ts +0 -1
- package/@ones-editor/core/src/helper/hovering-block.d.ts +4 -3
- package/@ones-editor/core/src/utils/animate-scroll.d.ts +0 -2
- package/@ones-editor/core/src/utils/dom.d.ts +1 -4
- package/@ones-editor/core/src/utils/drag-drop.d.ts +3 -8
- package/@ones-editor/embed-block-helper/src/block-properties/embed-block-properties.d.ts +5 -6
- package/@ones-editor/excalidraw/package.json +0 -4
- package/@ones-editor/file/src/locale/en-us.d.ts +0 -1
- package/@ones-editor/file/src/locale/ja-jp.d.ts +0 -1
- package/@ones-editor/file/src/locale/zh-cn.d.ts +0 -1
- package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +19 -5
- package/@ones-editor/image-embed/src/hovering-toolbar/index.d.ts +1 -12
- package/@ones-editor/image-embed/src/image-data.d.ts +4 -1
- package/@ones-editor/image-embed/src/image-object.d.ts +2 -2
- package/@ones-editor/image-embed/src/splitter-resizer/index.d.ts +3 -3
- package/@ones-editor/image-embed/src/types.d.ts +2 -1
- package/@ones-editor/input-handlers/src/i18n/en-us.d.ts +0 -1
- package/@ones-editor/input-handlers/src/i18n/ja-jp.d.ts +0 -1
- package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +0 -1
- package/@ones-editor/layout-block/src/index.d.ts +0 -1
- package/@ones-editor/list-block/src/index.d.ts +1 -2
- package/@ones-editor/media-embed/src/core/hovering-toolbar/index.d.ts +1 -12
- package/@ones-editor/mention/src/locale/en-us.d.ts +0 -3
- package/@ones-editor/mention/src/locale/ja-jp.d.ts +0 -3
- package/@ones-editor/mention/src/locale/zh-cn.d.ts +0 -3
- package/@ones-editor/mention/src/mention.d.ts +1 -24
- package/@ones-editor/mobile-helper/src/index.d.ts +2 -14
- package/@ones-editor/scroll-container/src/utils.d.ts +1 -1
- package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +1 -4
- package/@ones-editor/sharedb-doc/src/index.d.ts +1 -8
- package/@ones-editor/sharedb-doc/src/types.d.ts +3 -3
- package/@ones-editor/table-block/src/commands/index.d.ts +0 -2
- package/@ones-editor/table-block/src/commands/table-block-commands.d.ts +3 -4
- package/@ones-editor/table-block/src/index.d.ts +1 -2
- package/@ones-editor/table-block/src/locale/en-us.d.ts +0 -5
- package/@ones-editor/table-block/src/locale/ja-jp.d.ts +0 -5
- package/@ones-editor/table-block/src/locale/zh-cn.d.ts +0 -5
- package/@ones-editor/table-block/src/table-block/cell-menu/table-cell-dom.d.ts +0 -6
- package/@ones-editor/table-block/src/table-block/table-resize/resize-drag-drop.d.ts +4 -4
- package/@ones-editor/text-commands/src/index.d.ts +3 -1
- package/@ones-editor/text-commands/src/locale/en-us.d.ts +13 -0
- package/@ones-editor/text-commands/src/locale/ja-jp.d.ts +13 -0
- package/@ones-editor/text-commands/src/locale/zh-cn.d.ts +13 -0
- package/@ones-editor/text-commands/src/text-command-provider.d.ts +24 -0
- package/@ones-editor/text-commands/src/text-commands.d.ts +4 -0
- package/@ones-editor/text-commands/src/text-styles.d.ts +4 -0
- package/@ones-editor/to-docx/src/doc2other/core.d.ts +1 -1
- package/@ones-editor/to-docx/src/doc2other/table.d.ts +0 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +8 -32
- package/@ones-editor/ui/src/locale/en-us.d.ts +0 -14
- package/@ones-editor/ui/src/locale/ja-jp.d.ts +0 -14
- package/@ones-editor/ui/src/locale/zh-cn.d.ts +0 -14
- package/@ones-editor/ui/src/{providers/utils → quick-menu}/basic-commands.d.ts +2 -1
- package/@ones-editor/ui/src/quick-menu/basic-menu-items.d.ts +16 -0
- package/@ones-editor/ui/src/quick-menu/index.d.ts +19 -7
- package/@ones-editor/ui/src/quick-menu/inline-box-items.d.ts +8 -0
- package/@ones-editor/ui/src/quick-menu/insert-empty-block.d.ts +4 -0
- package/@ones-editor/ui/src/quick-menu/order.d.ts +1 -0
- package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +9 -0
- package/@ones-editor/ui/src/quick-menu/types.d.ts +5 -2
- package/@ones-editor/{ui-base → ui}/src/text-button/index.d.ts +1 -1
- package/@ones-editor/ui/src/toolbar/commands/align.d.ts +10 -0
- package/@ones-editor/ui/src/toolbar/commands/paragraph.d.ts +11 -0
- package/@ones-editor/ui/src/toolbar/commands/turn-into.d.ts +10 -0
- package/@ones-editor/ui/src/toolbar/merge-commands.d.ts +2 -0
- package/@ones-editor/ui/src/toolbar/text-commands.d.ts +2 -2
- package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +1 -4
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +1 -4
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +1 -3
- package/@ones-editor/ui-base/src/color-button/color-button.d.ts +0 -1
- package/@ones-editor/ui-base/src/color-button/text-color-item.d.ts +4 -12
- package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +2 -4
- package/@ones-editor/ui-base/src/command-bar/fixed-toolbar.d.ts +1 -2
- package/@ones-editor/ui-base/src/command-bar/init-toolbar-item.d.ts +0 -1
- package/@ones-editor/ui-base/src/command-bar/manual-command-bar.d.ts +0 -1
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +2 -7
- package/@ones-editor/ui-base/src/dialog/manual-close-dialog.d.ts +1 -1
- package/@ones-editor/ui-base/src/dropdown/index.d.ts +0 -1
- package/@ones-editor/ui-base/src/icons/index.d.ts +1 -5
- package/@ones-editor/ui-base/src/index.d.ts +0 -3
- package/@ones-editor/ui-base/src/input/create-input.d.ts +3 -24
- package/@ones-editor/ui-base/src/locale/en-us.d.ts +0 -1
- package/@ones-editor/ui-base/src/locale/ja-jp.d.ts +0 -1
- package/@ones-editor/ui-base/src/locale/zh-cn.d.ts +0 -1
- package/@ones-editor/ui-base/src/popup/popup.d.ts +1 -1
- package/@ones-editor/versions/src/types.d.ts +0 -1
- package/@ones-editor/versions/src/version-dialog/versions-dropdown.d.ts +0 -2
- package/dist/comments/local-doc-comments-provider.d.ts +1 -2
- package/dist/index.d.ts +4 -67
- package/dist/index.js +24015 -28904
- package/dist/lang/en-us.d.ts +1 -1
- package/dist/lang/ja-jp.d.ts +1 -1
- package/dist/lang/zh-cn.d.ts +1 -1
- package/dist/types.d.ts +4 -15
- package/package.json +1 -1
- package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +0 -16
- package/@ones-editor/core/src/core/command-providers/abstract-providers.d.ts +0 -25
- package/@ones-editor/core/src/core/command-providers/block-attributes.d.ts +0 -16
- package/@ones-editor/core/src/core/command-providers/commands/inject-source.d.ts +0 -3
- package/@ones-editor/core/src/core/command-providers/commands/merge-commands.d.ts +0 -4
- package/@ones-editor/layout-block/src/command-filter.d.ts +0 -6
- package/@ones-editor/main-toolbar/package.json +0 -7
- package/@ones-editor/main-toolbar/src/index.d.ts +0 -18
- package/@ones-editor/main-toolbar/src/items/comment.d.ts +0 -8
- package/@ones-editor/main-toolbar/src/items/find.d.ts +0 -8
- package/@ones-editor/main-toolbar/src/items/font-style.d.ts +0 -40
- package/@ones-editor/main-toolbar/src/items/image.d.ts +0 -8
- package/@ones-editor/main-toolbar/src/items/index.d.ts +0 -16
- package/@ones-editor/main-toolbar/src/items/insert.d.ts +0 -12
- package/@ones-editor/main-toolbar/src/items/link.d.ts +0 -11
- package/@ones-editor/main-toolbar/src/items/list.d.ts +0 -29
- package/@ones-editor/main-toolbar/src/items/paragraph.d.ts +0 -14
- package/@ones-editor/main-toolbar/src/items/quote.d.ts +0 -11
- package/@ones-editor/main-toolbar/src/items/separator.d.ts +0 -7
- package/@ones-editor/main-toolbar/src/items/text-align.d.ts +0 -21
- package/@ones-editor/main-toolbar/src/items/text-color.d.ts +0 -48
- package/@ones-editor/main-toolbar/src/items/undo.d.ts +0 -18
- package/@ones-editor/main-toolbar/src/locale/en-us.d.ts +0 -9
- package/@ones-editor/main-toolbar/src/locale/ja-jp.d.ts +0 -9
- package/@ones-editor/main-toolbar/src/locale/zh-cn.d.ts +0 -9
- package/@ones-editor/main-toolbar/src/types.d.ts +0 -5
- package/@ones-editor/media-embed/src/utils/dom.d.ts +0 -2
- package/@ones-editor/mobile-helper/src/cursor-toolbar.d.ts +0 -15
- package/@ones-editor/mobile-helper/src/embed-mask.d.ts +0 -10
- package/@ones-editor/mobile-helper/src/fixed-toolbar/active-observer.d.ts +0 -11
- package/@ones-editor/mobile-helper/src/fixed-toolbar/fixed-providers.d.ts +0 -6
- package/@ones-editor/mobile-helper/src/fixed-toolbar/index.d.ts +0 -18
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/align-dropdown.d.ts +0 -9
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/group.d.ts +0 -7
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert-menu.d.ts +0 -13
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert.d.ts +0 -8
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/paragraph.d.ts +0 -9
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/tab-provider.d.ts +0 -10
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/text-dropdown.d.ts +0 -9
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/turn-into.d.ts +0 -8
- package/@ones-editor/mobile-helper/src/fixed-toolbar/toolbar-handler.d.ts +0 -15
- package/@ones-editor/mobile-helper/src/locale/en-us.d.ts +0 -9
- package/@ones-editor/mobile-helper/src/locale/index.d.ts +0 -1
- package/@ones-editor/mobile-helper/src/locale/ja-jp.d.ts +0 -9
- package/@ones-editor/mobile-helper/src/locale/zh-cn.d.ts +0 -9
- package/@ones-editor/mobile-helper/src/selection-gripper/index.d.ts +0 -19
- package/@ones-editor/mobile-helper/src/selection-gripper/select-handle.d.ts +0 -3
- package/@ones-editor/sharedb-doc/src/doc/sharedb-client-base.d.ts +0 -24
- package/@ones-editor/sharedb-doc/src/doc/sharedb-local-doc.d.ts +0 -17
- package/@ones-editor/table-block/src/commands/mobile-command-provider.d.ts +0 -12
- package/@ones-editor/ui/src/block-menu/block-command-providers.d.ts +0 -8
- package/@ones-editor/ui/src/box-helper/standard-box-commands.d.ts +0 -10
- package/@ones-editor/ui/src/box-helper/standard-box-provider.d.ts +0 -9
- package/@ones-editor/ui/src/link-popup/mobile-link-popup.d.ts +0 -22
- package/@ones-editor/ui/src/link-popup/types.d.ts +0 -34
- package/@ones-editor/ui/src/link-popup/web-link-popup.d.ts +0 -19
- package/@ones-editor/ui/src/providers/align-dropdown.d.ts +0 -10
- package/@ones-editor/ui/src/providers/align.d.ts +0 -11
- package/@ones-editor/ui/src/providers/block-hook-provider.d.ts +0 -16
- package/@ones-editor/ui/src/providers/clipboard-provider.d.ts +0 -20
- package/@ones-editor/ui/src/providers/color-provider.d.ts +0 -18
- package/@ones-editor/ui/src/providers/edit-link-provider.d.ts +0 -6
- package/@ones-editor/ui/src/providers/heading.d.ts +0 -13
- package/@ones-editor/ui/src/providers/inline-code-provider.d.ts +0 -10
- package/@ones-editor/ui/src/providers/inline-style-provider.d.ts +0 -10
- package/@ones-editor/ui/src/providers/insert-above.d.ts +0 -9
- package/@ones-editor/ui/src/providers/insert-after.d.ts +0 -9
- package/@ones-editor/ui/src/providers/insert-box-provider.d.ts +0 -12
- package/@ones-editor/ui/src/providers/insert-group.d.ts +0 -7
- package/@ones-editor/ui/src/providers/insert-menu.d.ts +0 -16
- package/@ones-editor/ui/src/providers/link.d.ts +0 -12
- package/@ones-editor/ui/src/providers/list.d.ts +0 -13
- package/@ones-editor/ui/src/providers/mobile-link-provider.d.ts +0 -13
- package/@ones-editor/ui/src/providers/paragraph.d.ts +0 -9
- package/@ones-editor/ui/src/providers/proxy-provider.d.ts +0 -9
- package/@ones-editor/ui/src/providers/quoted.d.ts +0 -10
- package/@ones-editor/ui/src/providers/script-with-dropdown.d.ts +0 -9
- package/@ones-editor/ui/src/providers/selection-provider.d.ts +0 -9
- package/@ones-editor/ui/src/providers/text-command-provider.d.ts +0 -16
- package/@ones-editor/ui/src/providers/text-fixed-provider.d.ts +0 -16
- package/@ones-editor/ui/src/providers/text-script-provider.d.ts +0 -10
- package/@ones-editor/ui/src/providers/text-styles.d.ts +0 -9
- package/@ones-editor/ui/src/providers/turn-into.d.ts +0 -9
- package/@ones-editor/ui/src/providers/utils/add-section.d.ts +0 -2
- package/@ones-editor/ui/src/providers/utils/clipboard.d.ts +0 -6
- package/@ones-editor/ui/src/providers/utils/index.d.ts +0 -2
- package/@ones-editor/ui/src/providers/utils/inject-block-options.d.ts +0 -8
- package/@ones-editor/ui/src/providers/utils/text-styles.d.ts +0 -6
- package/@ones-editor/ui/src/quick-menu/quick-command-providers.d.ts +0 -8
- package/@ones-editor/ui/src/readonly-toolbar/add-comment-to-old-doc.d.ts +0 -23
- package/@ones-editor/ui/src/readonly-toolbar/index.d.ts +0 -29
- package/@ones-editor/ui/src/readonly-toolbar/types.d.ts +0 -12
- package/@ones-editor/ui/src/toolbar/link-commands.d.ts +0 -11
- package/@ones-editor/ui/src/utils/hide-toolbar.d.ts +0 -2
- package/@ones-editor/ui-base/src/mobile-command-bar/init-menu-item.d.ts +0 -3
- package/@ones-editor/ui-base/src/mobile-command-bar/mobile-bottom-menu.d.ts +0 -21
- package/@ones-editor/ui-base/src/mobile-command-bar/scroll-into-view.d.ts +0 -3
- package/dist/auto-new-line.d.ts +0 -7
- /package/@ones-editor/{ui → block-menu}/src/block-menu/standard-block-actions/hook.d.ts +0 -0
- /package/@ones-editor/{main-toolbar → text-commands}/src/locale/index.d.ts +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, CommandParams, OnesEditor, OnesEditorCommandProvider, SelectionRange, CommandResult } from '../../../../@ones-editor/core';
|
|
2
|
-
export default class TextScriptProvider implements OnesEditorCommandProvider {
|
|
3
|
-
private editor;
|
|
4
|
-
id: string;
|
|
5
|
-
constructor(editor: OnesEditor);
|
|
6
|
-
getAvailableCommands(editor: OnesEditor, block: BlockElement, range: SelectionRange, params?: CommandParams): CommandItem[];
|
|
7
|
-
getInsertCommands(): CommandItem[];
|
|
8
|
-
executeCommand(editor: OnesEditor, block: BlockElement, range: SelectionRange, item: CommandItem, params: CommandParams, result?: CommandResult): boolean;
|
|
9
|
-
executeInsertCommand: () => boolean;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OnesEditor, OnesEditorCommandProvider } from '../../../../@ones-editor/core';
|
|
2
|
-
import { ProxyProvider } from './proxy-provider';
|
|
3
|
-
export default class TextStylesProvider extends ProxyProvider {
|
|
4
|
-
private editor;
|
|
5
|
-
private withPlainText;
|
|
6
|
-
id: string;
|
|
7
|
-
providers: OnesEditorCommandProvider[];
|
|
8
|
-
constructor(editor: OnesEditor, withPlainText?: boolean);
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
|
-
import { ProxyProvider } from './proxy-provider';
|
|
3
|
-
export default class BlockTurnIntoCommandProvider extends ProxyProvider implements OnesEditorCommandProvider {
|
|
4
|
-
private editor;
|
|
5
|
-
id: string;
|
|
6
|
-
groupIndex: number;
|
|
7
|
-
constructor(editor: OnesEditor);
|
|
8
|
-
getAvailableCommands: (editor: OnesEditor, block: BlockElement, range: SelectionRange) => CommandItem[];
|
|
9
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare function blobToString(blob: Blob): Promise<string>;
|
|
2
|
-
export declare function isClipboardEmpty(): Promise<boolean>;
|
|
3
|
-
export declare function saveAs(resourceUrl: string, resourceId: string): void;
|
|
4
|
-
export declare function blob2String(blob: Blob): Promise<string>;
|
|
5
|
-
export declare function getRandomFileName(mimeType: string, length?: number): string;
|
|
6
|
-
export declare function getClipboardData(): Promise<DataTransfer>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BlockOptions, CommandItem } from '../../../../../@ones-editor/core';
|
|
2
|
-
import { QuickMenuCommandProvider } from '../../quick-menu/types';
|
|
3
|
-
export interface QuickMenuItem extends CommandItem {
|
|
4
|
-
blockOptions?: BlockOptions;
|
|
5
|
-
commandProvider?: QuickMenuCommandProvider;
|
|
6
|
-
}
|
|
7
|
-
export declare const injectBlockOptions: (commands: QuickMenuItem[], blockOptions: BlockOptions) => void;
|
|
8
|
-
export declare const injectCommandProvider: (commands: QuickMenuItem[], commandProvider: QuickMenuCommandProvider) => void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, DocBlockText, OnesEditor, SelectionRange, TextStyles } from '../../../../../@ones-editor/core';
|
|
2
|
-
export declare function getIntersectionStyles(text: DocBlockText): Map<any, any>;
|
|
3
|
-
export declare function getTextStyles(editor: OnesEditor, block: BlockElement, range: SelectionRange): TextStyles;
|
|
4
|
-
export declare function applyTextStyle(editor: OnesEditor, block: BlockElement, range: SelectionRange, style: string, value?: boolean | string | number): DocBlockText;
|
|
5
|
-
export declare function getStandardTextStyles(editor: OnesEditor, textStyles: CommandItem[], text: DocBlockText): CommandItem[];
|
|
6
|
-
export declare function getSubText(editor: OnesEditor, block: BlockElement, range: SelectionRange): DocBlockText;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AbstractProvider, CommandItemWithSource, OnesEditor, OnesEditorCommandProviders, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
|
-
export declare class QuickCommandProviders extends AbstractProvider implements OnesEditorCommandProviders {
|
|
3
|
-
protected editor: OnesEditor;
|
|
4
|
-
id: string;
|
|
5
|
-
constructor(editor: OnesEditor);
|
|
6
|
-
getCommands(range: SelectionRange): CommandItemWithSource[];
|
|
7
|
-
executeCommand: (range: SelectionRange, item: CommandItemWithSource) => {};
|
|
8
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, OnesEditor, OnesEditorBlockHook, SelectionRange, TextBlockContentChild } from '../../../../@ones-editor/core';
|
|
2
|
-
import { ReadonlyCommandOptions, ReadonlyToolbarCommandProvider } from './types';
|
|
3
|
-
export declare class AddCommentToOldDocCommandProvider implements ReadonlyToolbarCommandProvider, OnesEditorBlockHook {
|
|
4
|
-
private editor;
|
|
5
|
-
private version;
|
|
6
|
-
private localCreatedComments;
|
|
7
|
-
constructor(editor: OnesEditor, version: number);
|
|
8
|
-
onCreateComment(commentId: string, local: boolean): Promise<void>;
|
|
9
|
-
onDeleteComment(commentId: string, local: boolean): Promise<void>;
|
|
10
|
-
onUpdateComment(commentId: string, local: boolean): Promise<void>;
|
|
11
|
-
hideToolbar(editor: OnesEditor): void;
|
|
12
|
-
commands(editor: OnesEditor, blockElement: BlockElement, child: TextBlockContentChild | null): {
|
|
13
|
-
group: string;
|
|
14
|
-
commands: {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
icon: string;
|
|
18
|
-
}[];
|
|
19
|
-
executeCommand: (editor: OnesEditor, block: BlockElement, item: CommandItem, child: TextBlockContentChild | null) => void;
|
|
20
|
-
} | undefined;
|
|
21
|
-
getTextCommands(editor: OnesEditor, range: SelectionRange): CommandItem[];
|
|
22
|
-
executeCommand(editor: OnesEditor, command: CommandItem, options: ReadonlyCommandOptions): void;
|
|
23
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
|
-
import { BlockElement, CommandItem, OnesEditor, OnesEditorCustom, SelectionRange, TextBlockContentChild } from '../../../../@ones-editor/core';
|
|
3
|
-
import { AbstractCommandBar, ManualToolbar } from '../../../../@ones-editor/ui-base';
|
|
4
|
-
import type { ReadonlyToolbarCommandProvider } from './types';
|
|
5
|
-
export declare class ReadonlyToolbar implements OnesEditorCustom {
|
|
6
|
-
private editor;
|
|
7
|
-
toolbar: ManualToolbar;
|
|
8
|
-
toolbarType: 'text' | 'object';
|
|
9
|
-
mouseDown: boolean;
|
|
10
|
-
hoveringBlock: BlockElement | null;
|
|
11
|
-
hoveringTextChild: TextBlockContentChild | null;
|
|
12
|
-
oldRange: SelectionRange | null;
|
|
13
|
-
providers: ReadonlyToolbarCommandProvider[];
|
|
14
|
-
constructor(editor: OnesEditor);
|
|
15
|
-
destroy(): void;
|
|
16
|
-
addProvider(provider: ReadonlyToolbarCommandProvider): void;
|
|
17
|
-
isInBlock(block: BlockElement, event: MouseEvent): boolean;
|
|
18
|
-
handleButtonClick: (toolbar: AbstractCommandBar, item: CommandItem) => void;
|
|
19
|
-
handleClose: () => void;
|
|
20
|
-
handleClosing: (bar: unknown, event: MouseEvent | TouchEvent) => boolean;
|
|
21
|
-
bindEvents(): void;
|
|
22
|
-
unbindEvents(): void;
|
|
23
|
-
handleDocumentMouseDown: (event: MouseEvent) => void;
|
|
24
|
-
handleDocumentMouseUp: () => void;
|
|
25
|
-
handleSelectionChange: import("lodash").DebouncedFunc<(editor: OnesEditor) => void>;
|
|
26
|
-
private handleHoveringBlockChildChange;
|
|
27
|
-
groupCommands: (allCommands: CommandItem[]) => CommandItem[];
|
|
28
|
-
showTextToolbar(reason: string): void;
|
|
29
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, OnesEditor, SelectionRange, TextBlockContentChild } from '../../../../@ones-editor/core';
|
|
2
|
-
import { CommandBar } from '../../../../@ones-editor/ui-base';
|
|
3
|
-
export interface ReadonlyCommandOptions {
|
|
4
|
-
hoveringBlock: BlockElement | null;
|
|
5
|
-
hoveringTextChild: TextBlockContentChild | null;
|
|
6
|
-
bar: CommandBar;
|
|
7
|
-
}
|
|
8
|
-
export interface ReadonlyToolbarCommandProvider {
|
|
9
|
-
getTextCommands?: (editor: OnesEditor, range: SelectionRange) => CommandItem[];
|
|
10
|
-
destroy?: () => void;
|
|
11
|
-
executeCommand: (editor: OnesEditor, command: CommandItem, options: ReadonlyCommandOptions) => void;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BlockCommands, BlockElement, CommandItem, OnesEditor, OnesEditorBlockHook, TextBlockContentChild } from '../../../../@ones-editor/core';
|
|
2
|
-
import { EditLinkProvider } from '../providers/edit-link-provider';
|
|
3
|
-
import ClipboardProvider from '../providers/clipboard-provider';
|
|
4
|
-
export declare class LinkCommands implements OnesEditorBlockHook {
|
|
5
|
-
private editor;
|
|
6
|
-
provider: EditLinkProvider;
|
|
7
|
-
clipboardProvider: ClipboardProvider;
|
|
8
|
-
constructor(editor: OnesEditor);
|
|
9
|
-
commands(editor: OnesEditor, block: BlockElement, child: TextBlockContentChild | null): BlockCommands | undefined;
|
|
10
|
-
executeCommand: (editor: OnesEditor, block: BlockElement, item: CommandItem, child: TextBlockContentChild | null) => void;
|
|
11
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Closeable, CloseReason, CommandItem } from '../../../../@ones-editor/core';
|
|
2
|
-
import { Instance } from 'tippy.js';
|
|
3
|
-
import './mobile-bottom-menu.scss';
|
|
4
|
-
import { AbstractManualCommandBar, CommandBar, CommandBarContentElement, CommandBarOptions, CommandItemElement, ManualShowCommandBarOptions } from '../command-bar';
|
|
5
|
-
declare class MobileBottomMenu extends CommandBar implements AbstractManualCommandBar {
|
|
6
|
-
tippyInstance: Instance | null;
|
|
7
|
-
constructor(items: CommandItem[], closeable?: Closeable, options?: CommandBarOptions);
|
|
8
|
-
createContentWithHeader: () => HTMLDivElement;
|
|
9
|
-
handleClose: () => void;
|
|
10
|
-
oldActiveElement: HTMLElement | null;
|
|
11
|
-
manualShow: (target: HTMLElement, options?: ManualShowCommandBarOptions) => void;
|
|
12
|
-
close(reason: CloseReason): void;
|
|
13
|
-
destroy(): void;
|
|
14
|
-
get isVisible(): boolean;
|
|
15
|
-
get popper(): Element | null;
|
|
16
|
-
protected initCommandBarElement(elem: CommandBarContentElement): void;
|
|
17
|
-
protected getCommandBarRoot(): HTMLElement | null;
|
|
18
|
-
protected initItemElement(item: CommandItem, elem: CommandItemElement): void;
|
|
19
|
-
}
|
|
20
|
-
declare function createMobileBottomMenu(): void;
|
|
21
|
-
export { createMobileBottomMenu, MobileBottomMenu, };
|
package/dist/auto-new-line.d.ts
DELETED
|
File without changes
|
|
File without changes
|