@pixerate/editor-svelte 0.7.1 → 0.7.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/dist/index.d.ts +6 -1
- package/package.json +1 -1
- package/src/index.d.ts +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Component } from "svelte";
|
|
2
|
-
import type { Editor, Content, Extensions, EditorOptions } from "@tiptap/core";
|
|
2
|
+
import type { Editor, Content, Extensions, EditorOptions, FocusPosition } from "@tiptap/core";
|
|
3
3
|
import type {
|
|
4
4
|
Template,
|
|
5
5
|
TemplateVersion,
|
|
@@ -7,6 +7,7 @@ import type {
|
|
|
7
7
|
TokenType,
|
|
8
8
|
ColorGradient,
|
|
9
9
|
RichTextPresetOptions,
|
|
10
|
+
MarkdownOptions,
|
|
10
11
|
} from "@pixerate/editor";
|
|
11
12
|
|
|
12
13
|
export interface SvelteInitiateEditorOptions extends Partial<EditorOptions> {
|
|
@@ -38,6 +39,7 @@ export declare function createReactiveEditor(
|
|
|
38
39
|
|
|
39
40
|
export interface EditableTextNodeEditorProps {
|
|
40
41
|
class?: string;
|
|
42
|
+
editorClass?: string;
|
|
41
43
|
content?: Content;
|
|
42
44
|
showMenu?: boolean;
|
|
43
45
|
editable?: boolean;
|
|
@@ -48,6 +50,9 @@ export interface EditableTextNodeEditorProps {
|
|
|
48
50
|
onBlur?: () => void;
|
|
49
51
|
onCreate?: () => void;
|
|
50
52
|
placeholder?: string;
|
|
53
|
+
markdown?: boolean | MarkdownOptions;
|
|
54
|
+
richTextOptions?: RichTextPresetOptions;
|
|
55
|
+
autofocus?: FocusPosition | boolean;
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
export interface BubbleMenuProps {
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Component } from "svelte";
|
|
2
|
-
import type { Editor, Content, Extensions, EditorOptions } from "@tiptap/core";
|
|
2
|
+
import type { Editor, Content, Extensions, EditorOptions, FocusPosition } from "@tiptap/core";
|
|
3
3
|
import type {
|
|
4
4
|
Template,
|
|
5
5
|
TemplateVersion,
|
|
@@ -7,6 +7,7 @@ import type {
|
|
|
7
7
|
TokenType,
|
|
8
8
|
ColorGradient,
|
|
9
9
|
RichTextPresetOptions,
|
|
10
|
+
MarkdownOptions,
|
|
10
11
|
} from "@pixerate/editor";
|
|
11
12
|
|
|
12
13
|
export interface SvelteInitiateEditorOptions extends Partial<EditorOptions> {
|
|
@@ -38,6 +39,7 @@ export declare function createReactiveEditor(
|
|
|
38
39
|
|
|
39
40
|
export interface EditableTextNodeEditorProps {
|
|
40
41
|
class?: string;
|
|
42
|
+
editorClass?: string;
|
|
41
43
|
content?: Content;
|
|
42
44
|
showMenu?: boolean;
|
|
43
45
|
editable?: boolean;
|
|
@@ -48,6 +50,9 @@ export interface EditableTextNodeEditorProps {
|
|
|
48
50
|
onBlur?: () => void;
|
|
49
51
|
onCreate?: () => void;
|
|
50
52
|
placeholder?: string;
|
|
53
|
+
markdown?: boolean | MarkdownOptions;
|
|
54
|
+
richTextOptions?: RichTextPresetOptions;
|
|
55
|
+
autofocus?: FocusPosition | boolean;
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
export interface BubbleMenuProps {
|