@ones-editor/editor 2.5.1-beta.5 → 2.6.1-beta.1
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/core/src/core/blocks/common/block-dom.d.ts +3 -2
- package/@ones-editor/core/src/core/input-handler/actions.d.ts +4 -0
- package/@ones-editor/core/src/core/input-handler/handle-delete.d.ts +4 -0
- package/@ones-editor/core/src/core/selection/actions/index.d.ts +3 -1
- package/@ones-editor/core/src/core/selection/actions/move-block-end.d.ts +2 -0
- package/@ones-editor/core/src/core/selection/actions/move-block-start.d.ts +2 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +2 -2
- package/@ones-editor/ui/src/shortcuts/align-shortcuts.d.ts +2 -0
- package/@ones-editor/ui/src/shortcuts/index.d.ts +3 -2
- package/@ones-editor/ui/src/shortcuts/text-color-shortcuts.d.ts +2 -0
- package/@ones-editor/ui/src/shortcuts/text-style-shortcuts.d.ts +1 -2
- package/@ones-editor/ui-base/src/color-button/index.d.ts +1 -2
- package/@ones-editor/ui-base/src/color-button/text-color-item.d.ts +2 -0
- package/dist/index.js +786 -509
- package/package.json +1 -9
- package/@ones-editor/server-tools/package.json +0 -22
- package/@ones-editor/server-tools/src/fake-browser.d.ts +0 -1
- package/@ones-editor/server-tools/src/from-markdown/index.d.ts +0 -1
- package/@ones-editor/server-tools/src/index.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/blocks/code.d.ts +0 -3
- package/@ones-editor/server-tools/src/to-markdown/blocks/index.d.ts +0 -12
- package/@ones-editor/server-tools/src/to-markdown/blocks/list.d.ts +0 -14
- package/@ones-editor/server-tools/src/to-markdown/blocks/table.d.ts +0 -3
- package/@ones-editor/server-tools/src/to-markdown/blocks/text.d.ts +0 -4
- package/@ones-editor/server-tools/src/to-markdown/boxes/br.d.ts +0 -1
- package/@ones-editor/server-tools/src/to-markdown/boxes/date.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/boxes/file.d.ts +0 -11
- package/@ones-editor/server-tools/src/to-markdown/boxes/index.d.ts +0 -16
- package/@ones-editor/server-tools/src/to-markdown/boxes/known-link.d.ts +0 -11
- package/@ones-editor/server-tools/src/to-markdown/boxes/mathjax.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/boxes/mention.d.ts +0 -7
- package/@ones-editor/server-tools/src/to-markdown/boxes/task-link.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/convert-block.d.ts +0 -3
- package/@ones-editor/server-tools/src/to-markdown/convert-box.d.ts +0 -3
- package/@ones-editor/server-tools/src/to-markdown/embeds/drawio.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/embeds/file-list.d.ts +0 -5
- package/@ones-editor/server-tools/src/to-markdown/embeds/file.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/embeds/flowchart.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/embeds/hr.d.ts +0 -1
- package/@ones-editor/server-tools/src/to-markdown/embeds/image.d.ts +0 -18
- package/@ones-editor/server-tools/src/to-markdown/embeds/index.d.ts +0 -3
- package/@ones-editor/server-tools/src/to-markdown/embeds/mathjax.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/embeds/media.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/embeds/mermaid.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/embeds/plantuml.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/embeds/sub-pages.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/embeds/task-list.d.ts +0 -7
- package/@ones-editor/server-tools/src/to-markdown/embeds/toc.d.ts +0 -2
- package/@ones-editor/server-tools/src/to-markdown/embeds/webpage.d.ts +0 -5
- package/@ones-editor/server-tools/src/to-markdown/embeds/xmind.d.ts +0 -8
- package/@ones-editor/server-tools/src/to-markdown/index.d.ts +0 -1
- package/@ones-editor/server-tools/src/to-markdown/types.d.ts +0 -7
- package/@ones-editor/server-tools/src/tools.d.ts +0 -1
- package/@ones-editor/server-tools/src/utils/editor-doc.d.ts +0 -22
- package/@ones-editor/server-tools/src/utils/object.d.ts +0 -1
|
@@ -6,7 +6,7 @@ import * as BasicCommands from './providers/utils/basic-commands';
|
|
|
6
6
|
import OnesEditorTooltip from './tooltips';
|
|
7
7
|
import { OverflowTooltipHelper } from './tooltips/overflow-tooltip-helper';
|
|
8
8
|
import type { OnesEditorTooltipCallbacks, EditorTooltipTippyInstance, OnesEditorTooltipProps } from './tooltips';
|
|
9
|
-
import TextStyleShortcuts from './shortcuts';
|
|
9
|
+
import { AlignShortcuts, TextStyleShortcuts, TextColorShortcuts } from './shortcuts';
|
|
10
10
|
import { editLink } from './link-popup';
|
|
11
11
|
import { getToolbar } from './toolbar/helper';
|
|
12
12
|
import { getReferenceClientRect } from './toolbar/get-reference-client-rect';
|
|
@@ -42,5 +42,5 @@ export * from './providers/utils';
|
|
|
42
42
|
export * from './box-helper/standard-box-commands';
|
|
43
43
|
export { ClipboardProvider, ListProvider, QuotedProvider, TextCommandProvider, injectBlockOptions, LinkProvider, InlineBoxCommandProvider, AlignProvider, ParagraphProvider, ProxyProvider, InlineCodeProvider, InlineStyleProvider, ColorStyleProvider, ScriptDropdownProvider, TextScriptProvider, HeadingProvider, MobileLinkProvider, InsertMenuProvider, };
|
|
44
44
|
export type { QuickMenuCommandParams, QuickMenuCommandProvider, QuickMenuCommandBetween, AddMenuCommand, QuickMenuCommandInline, OnesEditorToolbarBase, OnesEditorTooltipCallbacks, EditorTooltipTippyInstance, OnesEditorTooltipProps, QuickMenuItem, QuickMenuOptions, ReadonlyToolbarCommandProvider, ReadonlyCommandOptions, };
|
|
45
|
-
export { BlockMenu, BlockCommandProviders, OnesEditorToolbar, OnesEditorQuickMenu, OnesEditorTooltip, editLink, TextStyleShortcuts, getToolbar, BasicCommands, isSelectBoxOnly, getReferenceClientRect, ReadonlyToolbar, AddCommentToOldDocCommandProvider, OverflowTooltipHelper, };
|
|
45
|
+
export { BlockMenu, BlockCommandProviders, OnesEditorToolbar, OnesEditorQuickMenu, OnesEditorTooltip, editLink, TextColorShortcuts, TextStyleShortcuts, AlignShortcuts, getToolbar, BasicCommands, isSelectBoxOnly, getReferenceClientRect, ReadonlyToolbar, AddCommentToOldDocCommandProvider, OverflowTooltipHelper, };
|
|
46
46
|
export * from './utils/hide-toolbar';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
export { AlignShortcuts } from './align-shortcuts';
|
|
2
|
+
export { TextStyleShortcuts } from './text-style-shortcuts';
|
|
3
|
+
export { TextColorShortcuts } from './text-color-shortcuts';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { TextColorItem };
|
|
1
|
+
export { TextColorItem, getColorsFromLocalStorage } from './text-color-item';
|
|
@@ -4,6 +4,8 @@ import { ColorPaletteItem } from '../color-palette';
|
|
|
4
4
|
import { ColorPaletteEvents, ColorAction } from '../color-palette/color-palette';
|
|
5
5
|
import './text-color-item.scss';
|
|
6
6
|
type Colors = [number | null, number | null];
|
|
7
|
+
export declare const STORAGE_NAME = "color-item";
|
|
8
|
+
export declare function getColorsFromLocalStorage(editor: OnesEditor): Colors;
|
|
7
9
|
export declare class TextColorItem extends TypedEmitter<ColorPaletteEvents> implements CommandItem {
|
|
8
10
|
editor: OnesEditor;
|
|
9
11
|
private storageName;
|