@ones-editor/editor 1.0.9 → 1.1.0-beta.10
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/index.d.ts +2 -2
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +22 -1
- package/@ones-editor/core/src/core/composition/index.d.ts +1 -1
- package/@ones-editor/core/src/core/containers/children.d.ts +1 -0
- package/@ones-editor/core/src/core/doc/doc.d.ts +0 -1
- package/@ones-editor/core/src/core/editor/actions/update-block-text.d.ts +3 -3
- package/@ones-editor/core/src/core/editor/actions/update-box-data.d.ts +2 -2
- package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +0 -1
- package/@ones-editor/core/src/core/input-handler/actions.d.ts +0 -1
- package/@ones-editor/core/src/core/input-handler/input-handler.d.ts +3 -4
- package/@ones-editor/core/src/core/keyboard/default-shortcuts.d.ts +1 -2
- package/@ones-editor/core/src/core/selection/editor-selection.d.ts +1 -1
- package/@ones-editor/core/src/core/types.d.ts +6 -28
- package/@ones-editor/core/src/local-doc/index.d.ts +0 -1
- package/@ones-editor/core/src/utils/index.d.ts +0 -1
- package/@ones-editor/graph-embed/src/config/index.d.ts +1 -1
- package/@ones-editor/image-embed/src/shortcuts/index.d.ts +1 -2
- package/@ones-editor/misc/src/index.d.ts +0 -1
- package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +0 -4
- package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +0 -1
- package/@ones-editor/sharedb-doc/src/versions/sharedb-server.d.ts +6 -1
- package/@ones-editor/status/package.json +7 -0
- package/@ones-editor/status/src/dom/create-status-tag.d.ts +8 -0
- package/@ones-editor/status/src/dom/input.d.ts +1 -0
- package/@ones-editor/status/src/dom/overflow-tooltip-tag.d.ts +18 -0
- package/@ones-editor/status/src/dom/status-palette.d.ts +6 -0
- package/@ones-editor/status/src/index.d.ts +4 -0
- package/@ones-editor/status/src/locale/en-us.d.ts +25 -0
- package/@ones-editor/status/src/locale/ja-jp.d.ts +25 -0
- package/@ones-editor/status/src/locale/zh-cn.d.ts +25 -0
- package/@ones-editor/status/src/status-box-command.d.ts +7 -0
- package/@ones-editor/status/src/status-box-data.d.ts +5 -0
- package/@ones-editor/status/src/status-box-editor.d.ts +21 -0
- package/@ones-editor/status/src/status-box.d.ts +4 -0
- package/@ones-editor/status/src/types.d.ts +8 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +0 -1
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +0 -1
- package/@ones-editor/ui-base/src/icons/index.d.ts +2 -1
- package/@ones-editor/ui-base/src/input/create-input.d.ts +2 -1
- package/@ones-editor/versions/src/history-doc/history-doc.d.ts +0 -1
- package/@ones-editor/versions/src/version-dialog/version-list.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +205 -199
- package/dist/types.d.ts +0 -2
- package/package.json +1 -1
- package/@ones-editor/context-menu/index.d.ts +0 -3
- package/@ones-editor/context-menu/package.json +0 -8
- package/@ones-editor/context-menu/src/helper/actions.d.ts +0 -4
- package/@ones-editor/context-menu/src/helper/command-items.d.ts +0 -23
- package/@ones-editor/context-menu/src/helper/utils.d.ts +0 -4
- package/@ones-editor/context-menu/src/locale/en-us.d.ts +0 -14
- package/@ones-editor/context-menu/src/locale/ja-jp.d.ts +0 -14
- package/@ones-editor/context-menu/src/locale/zh-cn.d.ts +0 -14
- package/@ones-editor/context-menu/src/menu/index.d.ts +0 -17
- package/@ones-editor/core/src/utils/blob-to-string.d.ts +0 -1
- package/@ones-editor/misc/src/is-secure-env.d.ts +0 -1
- /package/@ones-editor/{context-menu → status}/src/locale/index.d.ts +0 -0
|
@@ -17,7 +17,6 @@ export default class OnesEditorToolbar implements OnesEditorHoveringBlockFilter,
|
|
|
17
17
|
enableTextToolbar(): void;
|
|
18
18
|
hide(): void;
|
|
19
19
|
destroy(): void;
|
|
20
|
-
isInToolbar: (event: MouseEvent) => boolean;
|
|
21
20
|
isInBlock(block: BlockElement, event: MouseEvent): boolean;
|
|
22
21
|
handleButtonClick: (toolbar: AbstractCommandBar, item: CommandItem) => void;
|
|
23
22
|
handleClose: () => void;
|
|
@@ -35,7 +35,6 @@ export default class AutoSuggestMenu {
|
|
|
35
35
|
close(): void;
|
|
36
36
|
get isVisible(): boolean;
|
|
37
37
|
destroy(): void;
|
|
38
|
-
isInCommandBar(target: Node): boolean;
|
|
39
38
|
handleSearchTextPure(text: string): Promise<void>;
|
|
40
39
|
handleClick: import("lodash").DebouncedFuncLeading<(menu: AbstractCommandBar, item: CommandItem) => void>;
|
|
41
40
|
handleShow: (menu: AbstractCommandBar) => void;
|
|
@@ -100,4 +100,5 @@ import FitIcon from './fit.svg?raw';
|
|
|
100
100
|
import FullScreenIcon from './full-screen.svg?raw';
|
|
101
101
|
import ExitFullScreenIcon from './exit-full-screen.svg?raw';
|
|
102
102
|
import CaretDownIcon from './caret-down.svg?raw';
|
|
103
|
-
|
|
103
|
+
import StatusIcon from './status.svg?raw';
|
|
104
|
+
export { ClearIcon, CloseIcon, PrevIcon, NextIcon, MoreIcon, TextColorIcon, ArrowDownIcon, ArrowUpIcon, ArrowLeftIcon, ArrowRightIcon, DeleteRowIcon, DeleteColIcon, MergeCellIcon, SplitCellIcon, DeleteTableIcon, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, Heading7Icon, Heading8Icon, HeadingNIcon, OrderedListIcon, UnorderedListIcon, CheckListIcon, BlockquoteIcon, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, ImageIcon, ImageMenuIcon, ImageErrorIcon, ImageEmptyIcon, LinkIcon, LinkOffIcon, WarningIcon, PasteSpecialIcon, LaunchIcon, CodeIcon, AudioIcon, GraphIcon, VideoIcon, FileIcon, MathIcon, MathMenuIcon, TableIcon, TableMenuIcon, BilibiliIcon, YoukuIcon, ModaoIcon, FigmaIcon, EditIcon, CommentIcon, RefreshIcon, HelpIcon, CheckMarkIcon, TextIcon, RightArrowIcon, TencentVideoIcon, WebPageIcon, UmlIcon, DividingLineIcon, HeadingH1Icon, HeadingH2Icon, HeadingH3Icon, HeadingH4Icon, HeadingH5Icon, HeadingH6Icon, HeadingH7Icon, HeadingH8Icon, CheckboxIcon, QuoteIcon, LinkHrefIcon, OrderedIcon, UnorderedIcon, CopyIcon, CutIcon, DeleteIcon, LockBlockIcon, UnLockBlockIcon, InsertBeforeIcon, InsertAfterIcon, MentionIcon, CircleAddIcon, LoadingIcon, DragIcon, UmlBrandIcon, OnesLoadingIcon, BoldIcon, ItalicIcon, UnderlineIcon, LineThroughIcon, SubscriptIcon, SuperscriptIcon, InlineCodeIcon, ToMindMapIcon, FitIcon, FullScreenIcon, ExitFullScreenIcon, CaretDownIcon, StatusIcon, };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import './input.scss';
|
|
2
2
|
export declare function createInput(parent: HTMLElement, options: {
|
|
3
|
-
label
|
|
3
|
+
label?: string;
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
required?: boolean;
|
|
6
6
|
defaultValue?: string;
|
|
7
7
|
className?: string;
|
|
8
8
|
onChange?: (e: Event) => void;
|
|
9
9
|
onKeyDown?: (e: KeyboardEvent) => void;
|
|
10
|
+
maxLength?: number;
|
|
10
11
|
}): {
|
|
11
12
|
getField: () => HTMLInputElement;
|
|
12
13
|
getInputValue: () => string;
|
|
@@ -18,7 +18,6 @@ export default class HistoryDoc extends EventCallbacks<OnesEditorDocCallbacks> i
|
|
|
18
18
|
localDeleteChildContainers(): void;
|
|
19
19
|
uploadResource(): Promise<UploadResourceResult>;
|
|
20
20
|
addResources(resourceIds: string[]): Promise<string[]>;
|
|
21
|
-
patchSyncResources(resourceIds: string[]): Promise<string[]>;
|
|
22
21
|
getServerMeta(): OnesEditorDocServerMeta;
|
|
23
22
|
buildResourceUrl(src: string): string;
|
|
24
23
|
request<T>(): Promise<T>;
|
|
@@ -8,7 +8,7 @@ export type VersionElement = HTMLDivElement & {
|
|
|
8
8
|
};
|
|
9
9
|
interface VersionListOptions {
|
|
10
10
|
versions: DocVersion[];
|
|
11
|
-
selectedVersion?:
|
|
11
|
+
selectedVersion?: DocVersion;
|
|
12
12
|
versionHelper: OnesEditorDocVersionHelper;
|
|
13
13
|
getMarkColor: (user: HistoryUser) => string;
|
|
14
14
|
onSelectVersion: (version: DocVersion) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -32,4 +32,4 @@ export type { FileBoxData, FileEmbedData } from '../@ones-editor/file';
|
|
|
32
32
|
export { type DocListBlock } from '../@ones-editor/list-block';
|
|
33
33
|
export declare function createOnesEditor(root: HTMLElement, options: CreateOnesEditorOptions): Promise<OnesEditor>;
|
|
34
34
|
export declare function createLocalEditor(root: HTMLElement, docData: DocObject | OnesEditorDoc, options: CreateLocalEditorOptions): Promise<OnesEditor>;
|
|
35
|
-
export declare function showDocVersions(editor: OnesEditor, options: VersionDialogOptions, serverUrl: string): OnesEditorVersionsDialog
|
|
35
|
+
export declare function showDocVersions(editor: OnesEditor, options: VersionDialogOptions, serverUrl: string): Promise<OnesEditorVersionsDialog>;
|