@ones-editor/editor 0.0.3-beta.106 → 0.0.3-beta.108

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.
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ locker: {
3
+ lock: string;
4
+ unlock: string;
5
+ lockedBy: string;
6
+ };
7
+ };
8
+ export default _default;
@@ -5,7 +5,7 @@ export default class BlockMenuButtonDragHandler {
5
5
  private editor;
6
6
  private button;
7
7
  dragPreview: DragPreviewImage;
8
- autoScroll: AutoScroll;
8
+ autoScroll: AutoScroll | undefined;
9
9
  oldPos: {
10
10
  x: number;
11
11
  y: number;
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ placeholder: {
3
+ default: string;
4
+ heading: string;
5
+ list: string;
6
+ mention: string;
7
+ quote: string;
8
+ title: string;
9
+ };
10
+ };
11
+ export default _default;
@@ -1,10 +1,12 @@
1
1
  import { TextKindBlock } from '../../../@ones-editor/core';
2
2
  import OnesEditorListMindmap from './mindmap';
3
+ import { toMindmap } from './mindmap/to-mindmap';
4
+ import { Mindmap } from './mindmap/mindmap';
5
+ import { resetListStart } from './start/reset-list-start';
6
+ import { getListAllNextBrothers } from './utils/list-brother';
3
7
  import './lang';
4
8
  import './style.scss';
5
- import { getListAllNextBrothers } from './utils/list-brother';
6
- import { resetListStart } from './start/reset-list-start';
7
- export { type ListOptions } from './types';
9
+ export { type ListOptions, type DocListBlock } from './types';
8
10
  declare const ListBlock: TextKindBlock;
9
11
  export * from './keyboard/to-text-block';
10
- export { ListBlock, OnesEditorListMindmap, resetListStart, getListAllNextBrothers, };
12
+ export { ListBlock, OnesEditorListMindmap, Mindmap, resetListStart, getListAllNextBrothers, toMindmap, };
@@ -1,2 +1,4 @@
1
1
  import type { OnesEditor } from '../../../../../@ones-editor/core';
2
+ import { toMindmap } from './to-mindmap';
2
3
  export declare function createToMindmapButton(editor: OnesEditor): HTMLDivElement;
4
+ export { toMindmap, };
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ mathjax: {
3
+ emptyText: string;
4
+ abstract: string;
5
+ };
6
+ };
7
+ export default _default;
@@ -0,0 +1,19 @@
1
+ declare const _default: {
2
+ media: {
3
+ upload: {
4
+ failed: string;
5
+ };
6
+ load: {
7
+ failed: string;
8
+ };
9
+ audio: {
10
+ menuItem: string;
11
+ abstract: string;
12
+ };
13
+ video: {
14
+ menuItem: string;
15
+ abstract: string;
16
+ };
17
+ };
18
+ };
19
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { DocBlock, DocBlockTextActions, OnesEditorHistoryDataParseHandler } from '../../../../../@ones-editor/core';
2
+ type ActionType = 'deleteBlock' | 'insertBlock' | 'deleteBlockData' | 'insertBlockData' | 'updateBlockText' | 'deleteContainer' | 'createContainer' | 'deleteComment' | 'createComment' | 'updateComment';
3
+ interface Action {
4
+ type: ActionType;
5
+ containerId?: string;
6
+ }
7
+ export declare class ParseHandler {
8
+ private outerHandler;
9
+ private local;
10
+ private actions;
11
+ constructor(outerHandler: OnesEditorHistoryDataParseHandler, local: boolean);
12
+ pushActions(action: Action): void;
13
+ onDeleteBlock(containerId: string, blockIndex: number): void;
14
+ onInsertBlock(containerId: string, blockIndex: number, data: DocBlock): void;
15
+ onDeleteBlockData(containerId: string, blockIndex: number, key: string): void;
16
+ onInsertBlockData(containerId: string, blockIndex: number, key: string, value: unknown): void;
17
+ onUpdateBlockText(containerId: string, blockIndex: number, richTextData: DocBlockTextActions): void;
18
+ onDeleteContainer(containerId: string): void;
19
+ onCreateContainer(containerId: string, data: DocBlock[]): void;
20
+ onDeleteComment(commentId: string): void;
21
+ onCreateComment(commentId: string): void;
22
+ onUpdateComment(commentId: string): void;
23
+ end(): void;
24
+ }
25
+ export {};
@@ -0,0 +1,27 @@
1
+ declare const _default: {
2
+ table: {
3
+ cellBackground: string;
4
+ deleteSelectRow: string;
5
+ deleteSelectCol: string;
6
+ mergeCell: string;
7
+ splitCell: string;
8
+ tableConfigKey: string;
9
+ deleteTable: string;
10
+ insertCol: string;
11
+ insertRow: string;
12
+ deleteCol: string;
13
+ deleteRow: string;
14
+ tableConfig: {
15
+ rowTitle: string;
16
+ colTitle: string;
17
+ stripeStyle: string;
18
+ hideBorder: string;
19
+ showBorder: string;
20
+ showChart: string;
21
+ hideChart: string;
22
+ };
23
+ title: string;
24
+ abstract: string;
25
+ };
26
+ };
27
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ templates: {
3
+ title: string;
4
+ create: string;
5
+ choose: string;
6
+ customizedMark: string;
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ toc: {
3
+ empty: string;
4
+ };
5
+ };
6
+ export default _default;