@norio-office/rich-text 0.1.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/LICENSE +21 -0
- package/README.md +971 -0
- package/dist/chunk-efA98nb6.js +13 -0
- package/dist/components/ColumnsBlockView.vue.d.ts +26 -0
- package/dist/components/CountdownBlockView.vue.d.ts +10 -0
- package/dist/components/EmojiPickerPanel.vue.d.ts +11 -0
- package/dist/components/FormulaBlockView.vue.d.ts +3 -0
- package/dist/components/FormulaEditorDialog.vue.d.ts +20 -0
- package/dist/components/HighlightBlockView.vue.d.ts +28 -0
- package/dist/components/ImageBlockView.vue.d.ts +6 -0
- package/dist/components/LinkBlockView.vue.d.ts +5 -0
- package/dist/components/LocalFileBlockView.vue.d.ts +3 -0
- package/dist/components/MentionInlineView.vue.d.ts +3 -0
- package/dist/components/OfficeCodeBlockView.vue.d.ts +28 -0
- package/dist/components/OfficeColorIcon.vue.d.ts +10 -0
- package/dist/components/OfficeIcon.vue.d.ts +12 -0
- package/dist/components/OutlinePanel.vue.d.ts +21 -0
- package/dist/components/RichTextEditor.vue.d.ts +69 -0
- package/dist/components/ScrollArea.vue.d.ts +24 -0
- package/dist/components/VideoBlockView.vue.d.ts +7 -0
- package/dist/composables/useRichTextEditor.d.ts +20 -0
- package/dist/data/emoji.d.ts +13 -0
- package/dist/extensions/columns-block.d.ts +2 -0
- package/dist/extensions/columns-column.d.ts +2 -0
- package/dist/extensions/countdown-block.d.ts +2 -0
- package/dist/extensions/formula-block.d.ts +2 -0
- package/dist/extensions/highlight-block.d.ts +2 -0
- package/dist/extensions/image-block.d.ts +2 -0
- package/dist/extensions/indent.d.ts +17 -0
- package/dist/extensions/link-block.d.ts +2 -0
- package/dist/extensions/local-file-block.d.ts +2 -0
- package/dist/extensions/mention.d.ts +2 -0
- package/dist/extensions/office-code-block.d.ts +1 -0
- package/dist/extensions/quote-style.d.ts +19 -0
- package/dist/extensions/text-align.d.ts +12 -0
- package/dist/extensions/video-block.d.ts +2 -0
- package/dist/html2canvas-Bwmq6fGh.js +4025 -0
- package/dist/icons.d.ts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.es-C4X5YiRo.js +5751 -0
- package/dist/index.js +38311 -0
- package/dist/index.umd.cjs +6652 -0
- package/dist/jspdf.es.min-ByaXFVjc.js +18214 -0
- package/dist/locales/editor.d.ts +5 -0
- package/dist/purify.es-B5ixYH9L.js +549 -0
- package/dist/style.css +2 -0
- package/dist/typeof-Dz1Ap89p.js +11 -0
- package/dist/types.d.ts +118 -0
- package/dist/utils/columns.d.ts +4 -0
- package/dist/utils/markdown-import.d.ts +2 -0
- package/dist/utils/mention.d.ts +6 -0
- package/docs/usage.md +95 -0
- package/package.json +73 -0
- package/yjs/README.md +63 -0
- package/yjs/index.js +224 -0
- package/yjs/package.json +14 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, i, o, s) => {
|
|
3
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
|
+
get: ((e) => i[e]).bind(null, d),
|
|
5
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
|
+
});
|
|
7
|
+
return e;
|
|
8
|
+
}, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
|
|
9
|
+
value: n,
|
|
10
|
+
enumerable: !0
|
|
11
|
+
}) : a, n));
|
|
12
|
+
//#endregion
|
|
13
|
+
export { c as n, o as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
3
|
+
contentRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
as: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
9
|
+
as: string;
|
|
10
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
11
|
+
P: {};
|
|
12
|
+
B: {};
|
|
13
|
+
D: {};
|
|
14
|
+
C: {};
|
|
15
|
+
M: {};
|
|
16
|
+
Defaults: {};
|
|
17
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
as: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
23
|
+
as: string;
|
|
24
|
+
}> | null;
|
|
25
|
+
}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
3
|
+
colorTriggerRef: HTMLButtonElement;
|
|
4
|
+
colorPanelRef: HTMLDivElement;
|
|
5
|
+
dateTriggerRef: HTMLButtonElement;
|
|
6
|
+
timeTriggerRef: HTMLButtonElement;
|
|
7
|
+
datePanelRef: HTMLDivElement;
|
|
8
|
+
timePanelRef: HTMLDivElement;
|
|
9
|
+
}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
selectedEmoji?: string | null;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
select: (emoji: string) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
+
onSelect?: ((emoji: string) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
selectedEmoji: string | null;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
value?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
submitLabel?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
close: () => any;
|
|
9
|
+
submit: (value: string) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
title: string;
|
|
15
|
+
value: string;
|
|
16
|
+
submitLabel: string;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
textareaRef: HTMLTextAreaElement;
|
|
19
|
+
}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
3
|
+
wrapperRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
as: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
9
|
+
as: string;
|
|
10
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
11
|
+
P: {};
|
|
12
|
+
B: {};
|
|
13
|
+
D: {};
|
|
14
|
+
C: {};
|
|
15
|
+
M: {};
|
|
16
|
+
Defaults: {};
|
|
17
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
as: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
23
|
+
as: string;
|
|
24
|
+
}> | null;
|
|
25
|
+
emojiTriggerRef: HTMLButtonElement;
|
|
26
|
+
emojiPickerRef: HTMLDivElement;
|
|
27
|
+
}, any>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
3
|
+
alignDropdownRef: HTMLDivElement;
|
|
4
|
+
inputRef: HTMLInputElement;
|
|
5
|
+
}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
3
|
+
alignDropdownRef: HTMLDivElement;
|
|
4
|
+
}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
3
|
+
wrapperRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
as: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
9
|
+
as: string;
|
|
10
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
11
|
+
P: {};
|
|
12
|
+
B: {};
|
|
13
|
+
D: {};
|
|
14
|
+
C: {};
|
|
15
|
+
M: {};
|
|
16
|
+
Defaults: {};
|
|
17
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
as: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
23
|
+
as: string;
|
|
24
|
+
}> | null;
|
|
25
|
+
languageMenuRef: HTMLDivElement;
|
|
26
|
+
settingsMenuRef: HTMLDivElement;
|
|
27
|
+
}, any>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
name: string;
|
|
3
|
+
size?: number | string;
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
name: string;
|
|
3
|
+
size?: number | string;
|
|
4
|
+
color?: string;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
size: number | string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
color: string;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
placement: 'left' | 'right';
|
|
4
|
+
collapseTitle: string;
|
|
5
|
+
emptyDescription: string;
|
|
6
|
+
emptyTip: string;
|
|
7
|
+
items: Array<{
|
|
8
|
+
pos: number;
|
|
9
|
+
level: number;
|
|
10
|
+
text: string;
|
|
11
|
+
}>;
|
|
12
|
+
activePos: number | null;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
select: (pos: number) => any;
|
|
16
|
+
toggle: () => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onSelect?: ((pos: number) => any) | undefined;
|
|
19
|
+
onToggle?: (() => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { JSONContent } from '@tiptap/core';
|
|
2
|
+
import { RichTextEditorFilePayload, RichTextEditorImageExportOptions, RichTextEditorImagePayload, RichTextEditorLocalFilePayload, RichTextEditorMentionItem, RichTextEditorProps, RichTextEditorVideoPayload } from '../types';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<RichTextEditorProps, {
|
|
4
|
+
exportPdf: () => Promise<Blob | null>;
|
|
5
|
+
exportImage: (options?: RichTextEditorImageExportOptions) => Promise<Blob | null>;
|
|
6
|
+
exportHtml: () => string | null;
|
|
7
|
+
insertImage: (payload: RichTextEditorImagePayload | RichTextEditorImagePayload[]) => boolean;
|
|
8
|
+
insertVideo: (payload: RichTextEditorVideoPayload) => boolean;
|
|
9
|
+
insertFile: (payload: RichTextEditorFilePayload) => boolean;
|
|
10
|
+
insertLocalFile: (payload: RichTextEditorLocalFilePayload) => boolean;
|
|
11
|
+
insertMention: (payload: RichTextEditorMentionItem) => boolean;
|
|
12
|
+
openLocalFilePicker: () => void;
|
|
13
|
+
focus: () => void;
|
|
14
|
+
getJSON: () => JSONContent | null;
|
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
change: (value: JSONContent) => any;
|
|
17
|
+
"update:modelValue": (value: JSONContent) => any;
|
|
18
|
+
"local-file-upload": (value: RichTextEditorLocalFilePayload) => any;
|
|
19
|
+
"local-file-download": (value: RichTextEditorLocalFilePayload) => any;
|
|
20
|
+
"mention-item-click": (value: RichTextEditorMentionItem) => any;
|
|
21
|
+
"mention-submit": (value: RichTextEditorMentionItem) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<RichTextEditorProps> & Readonly<{
|
|
23
|
+
onChange?: ((value: JSONContent) => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((value: JSONContent) => any) | undefined;
|
|
25
|
+
"onLocal-file-upload"?: ((value: RichTextEditorLocalFilePayload) => any) | undefined;
|
|
26
|
+
"onLocal-file-download"?: ((value: RichTextEditorLocalFilePayload) => any) | undefined;
|
|
27
|
+
"onMention-item-click"?: ((value: RichTextEditorMentionItem) => any) | undefined;
|
|
28
|
+
"onMention-submit"?: ((value: RichTextEditorMentionItem) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
placeholder: string;
|
|
31
|
+
mode: "edit" | "preview";
|
|
32
|
+
editable: boolean;
|
|
33
|
+
modelValue: JSONContent | null;
|
|
34
|
+
outlinePlacement: "left" | "right";
|
|
35
|
+
messages: import('..').RichTextEditorMessages | null;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
37
|
+
rootRef: HTMLDivElement;
|
|
38
|
+
insertMenuRef: HTMLDivElement;
|
|
39
|
+
insertMenuPanelRef: HTMLDivElement;
|
|
40
|
+
countdownDateTriggerRef: HTMLButtonElement;
|
|
41
|
+
countdownPickerRef: HTMLDivElement;
|
|
42
|
+
headingMenuRef: HTMLDivElement;
|
|
43
|
+
fontFamilyMenuRef: HTMLDivElement;
|
|
44
|
+
fontSizeMenuRef: HTMLDivElement;
|
|
45
|
+
colorMenuRef: HTMLDivElement;
|
|
46
|
+
colorPickerRef: HTMLInputElement;
|
|
47
|
+
highlightMenuRef: HTMLDivElement;
|
|
48
|
+
highlightPickerRef: HTMLInputElement;
|
|
49
|
+
scriptMenuRef: HTMLDivElement;
|
|
50
|
+
alignMenuRef: HTMLDivElement;
|
|
51
|
+
quoteMenuRef: HTMLDivElement;
|
|
52
|
+
emojiToolbarMenuRef: HTMLDivElement;
|
|
53
|
+
exportMenuRef: HTMLDivElement;
|
|
54
|
+
pageRef: HTMLDivElement;
|
|
55
|
+
tableHeadingMenuRef: HTMLDivElement;
|
|
56
|
+
tableListMenuRef: HTMLDivElement;
|
|
57
|
+
tableColorMenuRef: HTMLDivElement;
|
|
58
|
+
tableHighlightMenuRef: HTMLDivElement;
|
|
59
|
+
tableActionColorMenuRef: HTMLDivElement;
|
|
60
|
+
highlightBlockColorMenuRef: HTMLDivElement;
|
|
61
|
+
highlightBlockSettingsMenuRef: HTMLDivElement;
|
|
62
|
+
countdownBubbleMenuRef: HTMLDivElement;
|
|
63
|
+
countdownBubbleEditButtonRef: HTMLButtonElement;
|
|
64
|
+
mentionPanelRef: HTMLDivElement;
|
|
65
|
+
blockSideColorPickerRef: HTMLInputElement;
|
|
66
|
+
markdownImportInputRef: HTMLInputElement;
|
|
67
|
+
localFileInputRef: HTMLInputElement;
|
|
68
|
+
}, HTMLDivElement>;
|
|
69
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
maxHeight?: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
maxHeight: string;
|
|
16
|
+
className: string;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
3
|
+
alignDropdownRef: HTMLDivElement;
|
|
4
|
+
videoRef: HTMLVideoElement;
|
|
5
|
+
inputRef: HTMLInputElement;
|
|
6
|
+
}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JSONContent } from '@tiptap/core';
|
|
2
|
+
import { RichTextEditorCollaborationOptions, RichTextEditorMentionItem } from '../types';
|
|
3
|
+
type UseRichTextEditorOptions = {
|
|
4
|
+
content: JSONContent;
|
|
5
|
+
editable: boolean;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
collaboration?: RichTextEditorCollaborationOptions | null;
|
|
8
|
+
onLocalFileDownload?: (payload: {
|
|
9
|
+
url: string;
|
|
10
|
+
name: string;
|
|
11
|
+
size?: number;
|
|
12
|
+
mimeType?: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
onMentionClick?: (payload: RichTextEditorMentionItem) => void;
|
|
15
|
+
onMentionTrigger?: () => void;
|
|
16
|
+
onMentionKeyDown?: (event: KeyboardEvent) => boolean;
|
|
17
|
+
onUpdate: (value: JSONContent) => void;
|
|
18
|
+
};
|
|
19
|
+
export declare function useRichTextEditor(options: UseRichTextEditorOptions): import('vue').ShallowRef<import('@tiptap/vue-3').Editor | undefined, import('@tiptap/vue-3').Editor | undefined>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type EmojiCategoryId = 'recent' | 'smileys' | 'people' | 'animals' | 'food' | 'travel' | 'objects' | 'symbols';
|
|
2
|
+
export type EmojiItem = {
|
|
3
|
+
emoji: string;
|
|
4
|
+
label: string;
|
|
5
|
+
keywords: string[];
|
|
6
|
+
category: Exclude<EmojiCategoryId, 'recent'>;
|
|
7
|
+
};
|
|
8
|
+
export declare const emojiCategoryTabs: Array<{
|
|
9
|
+
id: EmojiCategoryId;
|
|
10
|
+
icon: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const emojiItems: EmojiItem[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
type IndentOptions = {
|
|
3
|
+
types: string[];
|
|
4
|
+
minLevel: number;
|
|
5
|
+
maxLevel: number;
|
|
6
|
+
stepEm: number;
|
|
7
|
+
};
|
|
8
|
+
declare module '@tiptap/core' {
|
|
9
|
+
interface Commands<ReturnType> {
|
|
10
|
+
indent: {
|
|
11
|
+
increaseIndent: () => ReturnType;
|
|
12
|
+
decreaseIndent: () => ReturnType;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export declare const Indent: Extension<IndentOptions, any>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OfficeCodeBlock: import('@tiptap/core').Node<import('@tiptap/extension-code-block-lowlight').CodeBlockLowlightOptions, any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
type QuoteStyleOptions = {
|
|
3
|
+
defaultBorderColor: string;
|
|
4
|
+
defaultBackgroundColor: string;
|
|
5
|
+
};
|
|
6
|
+
type QuoteStyleAttrs = {
|
|
7
|
+
quoteBorderColor?: string;
|
|
8
|
+
quoteBackgroundColor?: string;
|
|
9
|
+
};
|
|
10
|
+
declare module '@tiptap/core' {
|
|
11
|
+
interface Commands<ReturnType> {
|
|
12
|
+
quoteStyle: {
|
|
13
|
+
setQuoteStyle: (attributes: QuoteStyleAttrs) => ReturnType;
|
|
14
|
+
resetQuoteStyle: () => ReturnType;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export declare const QuoteStyle: Extension<QuoteStyleOptions, any>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
type TextAlignValue = 'left' | 'center' | 'right';
|
|
3
|
+
declare module '@tiptap/core' {
|
|
4
|
+
interface Commands<ReturnType> {
|
|
5
|
+
textAlign: {
|
|
6
|
+
setTextAlign: (alignment: TextAlignValue) => ReturnType;
|
|
7
|
+
unsetTextAlign: () => ReturnType;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare const TextAlign: Extension<any, any>;
|
|
12
|
+
export {};
|