@ones-editor/editor 2.9.7 → 2.9.8-beta.2
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/composition/editor-input.d.ts +1 -0
- package/@ones-editor/core/src/core/doc/doc.d.ts +2 -0
- package/@ones-editor/core/src/core/input-handler/remove-unknown-components.d.ts +3 -0
- package/@ones-editor/main-toolbar/src/index.d.ts +8 -1
- package/@ones-editor/main-toolbar/src/items/file.d.ts +8 -0
- package/@ones-editor/main-toolbar/src/items/index.d.ts +4 -2
- package/@ones-editor/main-toolbar/src/items/mention.d.ts +8 -0
- package/@ones-editor/main-toolbar/src/locale/en-us.d.ts +3 -0
- package/@ones-editor/main-toolbar/src/locale/ja-jp.d.ts +3 -0
- package/@ones-editor/main-toolbar/src/locale/zh-cn.d.ts +3 -0
- package/@ones-editor/main-toolbar/src/locale/zh-hant-hk.d.ts +3 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +8 -7
- package/@ones-editor/ui-base/src/icons/index.d.ts +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +391 -130
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3,13 +3,13 @@ import { TypedEmitter } from 'tiny-typed-emitter';
|
|
|
3
3
|
import type { GetReferenceClientRect, Placement } from 'tippy.js';
|
|
4
4
|
export { Placement };
|
|
5
5
|
export interface CommandBarEvents {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
show: (bar: AbstractCommandBar) => void;
|
|
7
|
+
shown: (bar: AbstractCommandBar) => void;
|
|
8
|
+
click: (bar: AbstractCommandBar, item: CommandItem, elem: HTMLElement) => void;
|
|
9
|
+
close: (bar: AbstractCommandBar) => void;
|
|
10
|
+
selectionChange: (bar: AbstractCommandBar, id: string) => void;
|
|
11
|
+
closing: (bar: AbstractCommandBar, event: MouseEvent | TouchEvent) => boolean | undefined;
|
|
12
|
+
subBarShown: (bar: AbstractCommandBar, subBar: AbstractCommandBar) => void;
|
|
13
13
|
}
|
|
14
14
|
export interface ManualShowCommandBarOptions {
|
|
15
15
|
placement?: Placement;
|
|
@@ -50,6 +50,7 @@ export type CommandBarContentElement = HTMLElement & {
|
|
|
50
50
|
__neverUse: 'CommandBarContentElement';
|
|
51
51
|
};
|
|
52
52
|
export interface CommandBarOptions {
|
|
53
|
+
rootId?: string;
|
|
53
54
|
id?: string;
|
|
54
55
|
parentItem?: CommandItem;
|
|
55
56
|
itemElementTag?: keyof HTMLElementTagNameMap;
|
|
@@ -127,4 +127,6 @@ import ShiftTabIcon from './shift-tab.svg?raw';
|
|
|
127
127
|
import TableEditIcon from './table-edit.svg?raw';
|
|
128
128
|
import AdjustWidthIcon from './adjust-width.svg?raw';
|
|
129
129
|
import TocIcon from './toc.svg?raw';
|
|
130
|
-
|
|
130
|
+
import AttachmentIcon from './attachment.svg?raw';
|
|
131
|
+
import Mention2Icon from './mention.svg?raw';
|
|
132
|
+
export { TableEditIcon, TabIcon, ShiftTabIcon, DownloadIcon, AddEmojiIcon, BallIcon, CardIcon, FoodIcon, LightIcon, SmileIcon, SymbolIcon, TreeIcon, TimeIcon, ClearIcon, CloseIcon, PrevIcon, NextIcon, MoreIcon, TextColorIcon, AddIcon, 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, LayoutIcon, AudioIcon, GraphIcon, VideoIcon, FileIcon, MathIcon, MathMenuIcon, TableIcon, TableMenuIcon, BilibiliIcon, YoukuIcon, ModaoIcon, FigmaIcon, EditIcon, CommentIcon, RefreshIcon, HelpIcon, CheckMarkIcon, CircleCheckMarkIcon, 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, AlertEmojiIcon, ForbiddenIcon, WarningFilledIcon, InformationFilledIcon, SearchIcon, CalloutIcon, LoadingCircleIcon, TextGroupIcon, AdjustWidthIcon, TocIcon, AttachmentIcon, Mention2Icon, };
|
package/dist/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export { resetListStart, getListAllNextBrothers, toMindmap, Mindmap } from '../@
|
|
|
42
42
|
export * from '../@ones-editor/exclusive-block';
|
|
43
43
|
export * from '../@ones-editor/templates';
|
|
44
44
|
export * from 'tiny-typed-emitter';
|
|
45
|
-
export { ShareDBDocVersionsProvider, OnesEditorIcons, isLayoutBlock, LayoutQuickMenuItemFilter, CalloutQuickMenuItemFilter, MobileCommandHandler, PasteSpecialHandler };
|
|
45
|
+
export { ShareDBDocVersionsProvider, OnesEditorIcons, isLayoutBlock, LayoutQuickMenuItemFilter, CalloutQuickMenuItemFilter, MobileCommandHandler, PasteSpecialHandler, };
|
|
46
46
|
export type { FileBoxData, FileEmbedData } from '../@ones-editor/file';
|
|
47
47
|
export * from './helper';
|
|
48
48
|
export { OnesEditorComments, OnesEditorCommentsRender } from '../@ones-editor/comments';
|