@tiptap/vue-3 2.11.7 → 3.0.0-beta.1
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/LICENSE.md +21 -0
- package/README.md +5 -1
- package/dist/index.cjs +562 -528
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +219 -0
- package/dist/index.d.ts +218 -10
- package/dist/index.js +526 -516
- package/dist/index.js.map +1 -1
- package/dist/menus/index.cjs +613 -0
- package/dist/menus/index.cjs.map +1 -0
- package/dist/menus/index.d.cts +257 -0
- package/dist/menus/index.d.ts +257 -0
- package/dist/menus/index.js +605 -0
- package/dist/menus/index.js.map +1 -0
- package/package.json +27 -16
- package/src/Editor.ts +6 -11
- package/src/EditorContent.ts +10 -20
- package/src/VueMarkViewRenderer.ts +114 -0
- package/src/VueNodeViewRenderer.ts +19 -30
- package/src/VueRenderer.ts +10 -11
- package/src/index.ts +1 -2
- package/src/menus/BubbleMenu.ts +78 -0
- package/src/menus/FloatingMenu.ts +68 -0
- package/src/menus/index.ts +2 -0
- package/src/useEditor.ts +1 -1
- package/dist/BubbleMenu.d.ts +0 -61
- package/dist/BubbleMenu.d.ts.map +0 -1
- package/dist/Editor.d.ts +0 -24
- package/dist/Editor.d.ts.map +0 -1
- package/dist/EditorContent.d.ts +0 -18
- package/dist/EditorContent.d.ts.map +0 -1
- package/dist/FloatingMenu.d.ts +0 -49
- package/dist/FloatingMenu.d.ts.map +0 -1
- package/dist/NodeViewContent.d.ts +0 -14
- package/dist/NodeViewContent.d.ts.map +0 -1
- package/dist/NodeViewWrapper.d.ts +0 -14
- package/dist/NodeViewWrapper.d.ts.map +0 -1
- package/dist/VueNodeViewRenderer.d.ts +0 -63
- package/dist/VueNodeViewRenderer.d.ts.map +0 -1
- package/dist/VueRenderer.d.ts +0 -37
- package/dist/VueRenderer.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.umd.js +0 -570
- package/dist/index.umd.js.map +0 -1
- package/dist/useEditor.d.ts +0 -4
- package/dist/useEditor.d.ts.map +0 -1
- package/src/BubbleMenu.ts +0 -71
- package/src/FloatingMenu.ts +0 -66
package/dist/BubbleMenu.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { BubbleMenuPluginProps } from '@tiptap/extension-bubble-menu';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
export declare const BubbleMenu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
-
pluginKey: {
|
|
5
|
-
type: PropType<BubbleMenuPluginProps["pluginKey"]>;
|
|
6
|
-
default: string;
|
|
7
|
-
};
|
|
8
|
-
editor: {
|
|
9
|
-
type: PropType<BubbleMenuPluginProps["editor"]>;
|
|
10
|
-
required: true;
|
|
11
|
-
};
|
|
12
|
-
updateDelay: {
|
|
13
|
-
type: PropType<BubbleMenuPluginProps["updateDelay"]>;
|
|
14
|
-
default: undefined;
|
|
15
|
-
};
|
|
16
|
-
tippyOptions: {
|
|
17
|
-
type: PropType<BubbleMenuPluginProps["tippyOptions"]>;
|
|
18
|
-
default: () => {};
|
|
19
|
-
};
|
|
20
|
-
shouldShow: {
|
|
21
|
-
type: PropType<Exclude<Required<BubbleMenuPluginProps>["shouldShow"], null>>;
|
|
22
|
-
default: null;
|
|
23
|
-
};
|
|
24
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
-
pluginKey: {
|
|
28
|
-
type: PropType<BubbleMenuPluginProps["pluginKey"]>;
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
|
-
editor: {
|
|
32
|
-
type: PropType<BubbleMenuPluginProps["editor"]>;
|
|
33
|
-
required: true;
|
|
34
|
-
};
|
|
35
|
-
updateDelay: {
|
|
36
|
-
type: PropType<BubbleMenuPluginProps["updateDelay"]>;
|
|
37
|
-
default: undefined;
|
|
38
|
-
};
|
|
39
|
-
tippyOptions: {
|
|
40
|
-
type: PropType<BubbleMenuPluginProps["tippyOptions"]>;
|
|
41
|
-
default: () => {};
|
|
42
|
-
};
|
|
43
|
-
shouldShow: {
|
|
44
|
-
type: PropType<Exclude<Required<BubbleMenuPluginProps>["shouldShow"], null>>;
|
|
45
|
-
default: null;
|
|
46
|
-
};
|
|
47
|
-
}>> & Readonly<{}>, {
|
|
48
|
-
pluginKey: string | import("prosemirror-state").PluginKey<any>;
|
|
49
|
-
updateDelay: number | undefined;
|
|
50
|
-
tippyOptions: Partial<import("tippy.js").Props> | undefined;
|
|
51
|
-
shouldShow: (props: {
|
|
52
|
-
editor: import("@tiptap/core").Editor;
|
|
53
|
-
element: HTMLElement;
|
|
54
|
-
view: import("prosemirror-view").EditorView;
|
|
55
|
-
state: import("prosemirror-state").EditorState;
|
|
56
|
-
oldState?: import("prosemirror-state").EditorState;
|
|
57
|
-
from: number;
|
|
58
|
-
to: number;
|
|
59
|
-
}) => boolean;
|
|
60
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
61
|
-
//# sourceMappingURL=BubbleMenu.d.ts.map
|
package/dist/BubbleMenu.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BubbleMenu.d.ts","sourceRoot":"","sources":["../src/BubbleMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAKL,QAAQ,EAET,MAAM,KAAK,CAAA;AAEZ,eAAO,MAAM,UAAU;;cAKS,QAAQ,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;;;;cAKtD,QAAQ,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;;;;cAKzC,QAAQ,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC;;;;cAK9C,QAAQ,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC;;;;cAK7C,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAC;;;;;;;cApB9D,QAAQ,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;;;;cAKtD,QAAQ,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;;;;cAKzC,QAAQ,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC;;;;cAK9C,QAAQ,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC;;;;cAK7C,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAC;;;;;;;;;;;;gBAsBtF,CAAJ;;;;4EAaF,CAAA"}
|
package/dist/Editor.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Editor as CoreEditor, EditorOptions } from '@tiptap/core';
|
|
2
|
-
import { EditorState, Plugin, PluginKey } from '@tiptap/pm/state';
|
|
3
|
-
import { AppContext, ComponentInternalInstance, ComponentPublicInstance } from 'vue';
|
|
4
|
-
export type ContentComponent = ComponentInternalInstance & {
|
|
5
|
-
ctx: ComponentPublicInstance;
|
|
6
|
-
};
|
|
7
|
-
export declare class Editor extends CoreEditor {
|
|
8
|
-
private reactiveState;
|
|
9
|
-
private reactiveExtensionStorage;
|
|
10
|
-
contentComponent: ContentComponent | null;
|
|
11
|
-
appContext: AppContext | null;
|
|
12
|
-
constructor(options?: Partial<EditorOptions>);
|
|
13
|
-
get state(): EditorState;
|
|
14
|
-
get storage(): Record<string, any>;
|
|
15
|
-
/**
|
|
16
|
-
* Register a ProseMirror plugin.
|
|
17
|
-
*/
|
|
18
|
-
registerPlugin(plugin: Plugin, handlePlugins?: (newPlugin: Plugin, plugins: Plugin[]) => Plugin[]): EditorState;
|
|
19
|
-
/**
|
|
20
|
-
* Unregister a ProseMirror plugin.
|
|
21
|
-
*/
|
|
22
|
-
unregisterPlugin(nameOrPluginKey: string | PluginKey): EditorState | undefined;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=Editor.d.ts.map
|
package/dist/Editor.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../src/Editor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EACL,UAAU,EACV,yBAAyB,EACzB,uBAAuB,EAIxB,MAAM,KAAK,CAAA;AAwBZ,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,GAAG;IACzD,GAAG,EAAE,uBAAuB,CAAA;CAC7B,CAAA;AAED,qBAAa,MAAO,SAAQ,UAAU;IACpC,OAAO,CAAC,aAAa,CAAkB;IAEvC,OAAO,CAAC,wBAAwB,CAA0B;IAEnD,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAO;IAEhD,UAAU,EAAE,UAAU,GAAG,IAAI,CAAO;gBAE/B,OAAO,GAAE,OAAO,CAAC,aAAa,CAAM;IAchD,IAAI,KAAK,gBAER;IAED,IAAI,OAAO,wBAEV;IAED;;OAEG;IACI,cAAc,CACnB,MAAM,EAAE,MAAM,EACd,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,GACjE,WAAW;IAUd;;OAEG;IACI,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS;CAStF"}
|
package/dist/EditorContent.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { PropType, Ref } from 'vue';
|
|
2
|
-
import { Editor } from './Editor.js';
|
|
3
|
-
export declare const EditorContent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
-
editor: {
|
|
5
|
-
default: null;
|
|
6
|
-
type: PropType<Editor>;
|
|
7
|
-
};
|
|
8
|
-
}>, {
|
|
9
|
-
rootEl: Ref<Element | undefined, Element | undefined>;
|
|
10
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
editor: {
|
|
12
|
-
default: null;
|
|
13
|
-
type: PropType<Editor>;
|
|
14
|
-
};
|
|
15
|
-
}>> & Readonly<{}>, {
|
|
16
|
-
editor: Editor;
|
|
17
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
|
-
//# sourceMappingURL=EditorContent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorContent.d.ts","sourceRoot":"","sources":["../src/EditorContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,QAAQ,EACR,GAAG,EAIJ,MAAM,KAAK,CAAA;AAEZ,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,eAAO,MAAM,aAAa;;;cAMJ,QAAQ,CAAC,MAAM,CAAC;;;;;;;cAAhB,QAAQ,CAAC,MAAM,CAAC;;;;4EAiEpC,CAAA"}
|
package/dist/FloatingMenu.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { FloatingMenuPluginProps } from '@tiptap/extension-floating-menu';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
export declare const FloatingMenu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
-
pluginKey: {
|
|
5
|
-
type: null;
|
|
6
|
-
default: string;
|
|
7
|
-
};
|
|
8
|
-
editor: {
|
|
9
|
-
type: PropType<FloatingMenuPluginProps["editor"]>;
|
|
10
|
-
required: true;
|
|
11
|
-
};
|
|
12
|
-
tippyOptions: {
|
|
13
|
-
type: PropType<FloatingMenuPluginProps["tippyOptions"]>;
|
|
14
|
-
default: () => {};
|
|
15
|
-
};
|
|
16
|
-
shouldShow: {
|
|
17
|
-
type: PropType<Exclude<Required<FloatingMenuPluginProps>["shouldShow"], null>>;
|
|
18
|
-
default: null;
|
|
19
|
-
};
|
|
20
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
pluginKey: {
|
|
24
|
-
type: null;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
editor: {
|
|
28
|
-
type: PropType<FloatingMenuPluginProps["editor"]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
tippyOptions: {
|
|
32
|
-
type: PropType<FloatingMenuPluginProps["tippyOptions"]>;
|
|
33
|
-
default: () => {};
|
|
34
|
-
};
|
|
35
|
-
shouldShow: {
|
|
36
|
-
type: PropType<Exclude<Required<FloatingMenuPluginProps>["shouldShow"], null>>;
|
|
37
|
-
default: null;
|
|
38
|
-
};
|
|
39
|
-
}>> & Readonly<{}>, {
|
|
40
|
-
tippyOptions: Partial<import("tippy.js").Props> | undefined;
|
|
41
|
-
shouldShow: (props: {
|
|
42
|
-
editor: import("@tiptap/core").Editor;
|
|
43
|
-
view: import("prosemirror-view").EditorView;
|
|
44
|
-
state: import("prosemirror-state").EditorState;
|
|
45
|
-
oldState?: import("prosemirror-state").EditorState;
|
|
46
|
-
}) => boolean;
|
|
47
|
-
pluginKey: any;
|
|
48
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
49
|
-
//# sourceMappingURL=FloatingMenu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingMenu.d.ts","sourceRoot":"","sources":["../src/FloatingMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC7F,OAAO,EAKL,QAAQ,EAET,MAAM,KAAK,CAAA;AAEZ,eAAO,MAAM,YAAY;;;;;;cAYH,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;;;;cAK3C,QAAQ,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAC;;;;cAK/C,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAC;;;;;;;;;;;cAV1E,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;;;;cAK3C,QAAQ,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAC;;;;cAK/C,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAC;;;;;;;;;gBAc1F,CAAJ;;;4EAmBA,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const NodeViewContent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
-
as: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
-
as: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
}>> & Readonly<{}>, {
|
|
12
|
-
as: string;
|
|
13
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
-
//# sourceMappingURL=NodeViewContent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodeViewContent.d.ts","sourceRoot":"","sources":["../src/NodeViewContent.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;4EAkB1B,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const NodeViewWrapper: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
-
as: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
-
as: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
}>> & Readonly<{}>, {
|
|
12
|
-
as: string;
|
|
13
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
-
//# sourceMappingURL=NodeViewWrapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodeViewWrapper.d.ts","sourceRoot":"","sources":["../src/NodeViewWrapper.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;4EA4B1B,CAAA"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { NodeViewProps, NodeViewRenderer, NodeViewRendererOptions } from '@tiptap/core';
|
|
2
|
-
import { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
|
3
|
-
import { Decoration, DecorationSource } from '@tiptap/pm/view';
|
|
4
|
-
import { Component, PropType } from 'vue';
|
|
5
|
-
export declare const nodeViewProps: {
|
|
6
|
-
editor: {
|
|
7
|
-
type: PropType<NodeViewProps["editor"]>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
node: {
|
|
11
|
-
type: PropType<NodeViewProps["node"]>;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
decorations: {
|
|
15
|
-
type: PropType<NodeViewProps["decorations"]>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
selected: {
|
|
19
|
-
type: PropType<NodeViewProps["selected"]>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
extension: {
|
|
23
|
-
type: PropType<NodeViewProps["extension"]>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
getPos: {
|
|
27
|
-
type: PropType<NodeViewProps["getPos"]>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
updateAttributes: {
|
|
31
|
-
type: PropType<NodeViewProps["updateAttributes"]>;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
deleteNode: {
|
|
35
|
-
type: PropType<NodeViewProps["deleteNode"]>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
view: {
|
|
39
|
-
type: PropType<NodeViewProps["view"]>;
|
|
40
|
-
required: true;
|
|
41
|
-
};
|
|
42
|
-
innerDecorations: {
|
|
43
|
-
type: PropType<NodeViewProps["innerDecorations"]>;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
|
-
HTMLAttributes: {
|
|
47
|
-
type: PropType<NodeViewProps["HTMLAttributes"]>;
|
|
48
|
-
required: true;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
export interface VueNodeViewRendererOptions extends NodeViewRendererOptions {
|
|
52
|
-
update: ((props: {
|
|
53
|
-
oldNode: ProseMirrorNode;
|
|
54
|
-
oldDecorations: readonly Decoration[];
|
|
55
|
-
oldInnerDecorations: DecorationSource;
|
|
56
|
-
newNode: ProseMirrorNode;
|
|
57
|
-
newDecorations: readonly Decoration[];
|
|
58
|
-
innerDecorations: DecorationSource;
|
|
59
|
-
updateProps: () => void;
|
|
60
|
-
}) => boolean) | null;
|
|
61
|
-
}
|
|
62
|
-
export declare function VueNodeViewRenderer(component: Component<NodeViewProps>, options?: Partial<VueNodeViewRenderer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UAAU,EAAE,CAAC;QACtC,mBAAmB,EAAE,gBAAgB,CAAC;QACtC,OAAO,EAAE,eAAe,CAAC;QACzB,cAAc,EAAE,SAAS,UAAU,EAAE,CAAC;QACtC,gBAAgB,EAAE,gBAAgB,CAAC;QACnC,WAAW,EAAE,MAAM,IAAI,CAAC;KACzB,KAAK,OAAO,CAAC,GACd,IAAI,CAAC;CACV;AAgND,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,SAAS,CAAC,aAAa,CAAC,EACnC,OAAO,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,GAC5C,gBAAgB,CAelB"}
|
package/dist/VueRenderer.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/core';
|
|
2
|
-
import { Component, h } from 'vue';
|
|
3
|
-
import { Editor as ExtendedEditor } from './Editor.js';
|
|
4
|
-
export interface VueRendererOptions {
|
|
5
|
-
editor: Editor;
|
|
6
|
-
props?: Record<string, any>;
|
|
7
|
-
}
|
|
8
|
-
type ExtendedVNode = ReturnType<typeof h> | null;
|
|
9
|
-
interface RenderedComponent {
|
|
10
|
-
vNode: ExtendedVNode;
|
|
11
|
-
destroy: () => void;
|
|
12
|
-
el: Element | null;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* This class is used to render Vue components inside the editor.
|
|
16
|
-
*/
|
|
17
|
-
export declare class VueRenderer {
|
|
18
|
-
renderedComponent: RenderedComponent;
|
|
19
|
-
editor: ExtendedEditor;
|
|
20
|
-
component: Component;
|
|
21
|
-
el: Element | null;
|
|
22
|
-
props: Record<string, any>;
|
|
23
|
-
constructor(component: Component, { props, editor }: VueRendererOptions);
|
|
24
|
-
get element(): Element | null;
|
|
25
|
-
get ref(): any;
|
|
26
|
-
renderComponent(): {
|
|
27
|
-
vNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}>;
|
|
30
|
-
destroy: () => void;
|
|
31
|
-
el: Element | null;
|
|
32
|
-
};
|
|
33
|
-
updateProps(props?: Record<string, any>): void;
|
|
34
|
-
destroy(): void;
|
|
35
|
-
}
|
|
36
|
-
export {};
|
|
37
|
-
//# sourceMappingURL=VueRenderer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VueRenderer.d.ts","sourceRoot":"","sources":["../src/VueRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EACL,SAAS,EAAmB,CAAC,EAC9B,MAAM,KAAK,CAAA;AAEZ,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtD,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B;AAED,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;AAEjD,UAAU,iBAAiB;IACzB,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,EAAE,EAAE,OAAO,GAAG,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,WAAW;IACtB,iBAAiB,EAAG,iBAAiB,CAAA;IAErC,MAAM,EAAE,cAAc,CAAA;IAEtB,SAAS,EAAE,SAAS,CAAA;IAEpB,EAAE,EAAE,OAAO,GAAG,IAAI,CAAA;IAElB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;gBAEd,SAAS,EAAE,SAAS,EAAE,EAAE,KAAU,EAAE,MAAM,EAAE,EAAE,kBAAkB;IAQ5E,IAAI,OAAO,IAAI,OAAO,GAAG,IAAI,CAE5B;IAED,IAAI,GAAG,IAAI,GAAG,CAOb;IAED,eAAe;;;;;;;IAqBf,WAAW,CAAC,KAAK,GAAE,MAAM,CAAC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