@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.
@@ -1,14 +1,5 @@
1
- export interface TextSelection {
2
- index: number;
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,11 @@
1
+ export interface TextSelection {
2
+ index: number;
3
+ length: number;
4
+ }
5
+ export interface SelectionBookmark {
6
+ start: number[];
7
+ startOffset: number;
8
+ end: number[];
9
+ endOffset: number;
10
+ backward: boolean;
11
+ }
@@ -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 './index.js';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morfira-dev/wysiwyg-core",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
File without changes
File without changes