@morfira-dev/wysiwyg-core 1.4.0 → 1.5.0
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/dist/{model.d.ts → document/index.d.ts} +2 -16
- package/dist/document/types.d.ts +17 -0
- package/dist/editor/create-editor.d.ts +2 -0
- package/dist/editor/types.d.ts +58 -0
- package/dist/events/index.d.ts +4 -0
- package/dist/events/types.d.ts +29 -0
- package/dist/{formatting.d.ts → formatting/index.d.ts} +1 -1
- package/dist/{inline-attributes.d.ts → formatting/inline-attributes.d.ts} +3 -17
- package/dist/formatting/inline-attributes.types.d.ts +21 -0
- package/dist/formatting/types.d.ts +5 -0
- package/dist/index.d.ts +10 -55
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/{selection.d.ts → selection/index.d.ts} +2 -11
- package/dist/selection/types.d.ts +11 -0
- package/dist/ui/toolbar/index.d.ts +4 -0
- package/dist/{toolbar.d.ts → ui/toolbar/types.d.ts} +1 -2
- package/package.json +1 -1
- /package/dist/{links.d.ts → formatting/links.d.ts} +0 -0
- /package/dist/{lists.d.ts → lists/index.d.ts} +0 -0
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
length: number;
|
|
4
|
-
}
|
|
5
|
-
export interface SelectionBookmark {
|
|
6
|
-
start: number[];
|
|
7
|
-
startOffset: number;
|
|
8
|
-
end: number[];
|
|
9
|
-
endOffset: number;
|
|
10
|
-
backward: boolean;
|
|
11
|
-
}
|
|
1
|
+
import type { TextSelection, SelectionBookmark } from './types.js';
|
|
2
|
+
export type { TextSelection, SelectionBookmark } from './types.js';
|
|
12
3
|
export declare const activeRange: (root: HTMLElement) => Range | undefined;
|
|
13
4
|
export declare const bookmark: (root: HTMLElement) => SelectionBookmark | undefined;
|
|
14
5
|
export declare const restoreBookmark: (root: HTMLElement, saved: SelectionBookmark | undefined) => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ToolbarAction, ToolbarOptions } from './types.js';
|
|
2
|
+
export type { ToolbarAction, ToolbarOptions } from './types.js';
|
|
3
|
+
import type { Editor } from '../../index.js';
|
|
4
|
+
export declare const createToolbar: (host: HTMLElement, editor: Editor, actions?: ToolbarAction[], options?: ToolbarOptions) => () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Editor } from '
|
|
1
|
+
import type { Editor } from '../../editor/types.js';
|
|
2
2
|
export interface ToolbarAction {
|
|
3
3
|
label: string;
|
|
4
4
|
text: string;
|
|
@@ -10,4 +10,3 @@ export interface ToolbarAction {
|
|
|
10
10
|
export interface ToolbarOptions {
|
|
11
11
|
label?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare const createToolbar: (host: HTMLElement, editor: Editor, actions?: ToolbarAction[], options?: ToolbarOptions) => () => void;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|