@henryx/pagely 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/dist/components/BlockMenu.vue.d.ts +27 -0
- package/dist/components/CodeBlockView.vue.d.ts +95 -0
- package/dist/components/ColAlignBadge.vue.d.ts +15 -0
- package/dist/components/ColorPanel.vue.d.ts +14 -0
- package/dist/components/CommentContentViewer.vue.d.ts +11 -0
- package/dist/components/CommentEditor.vue.d.ts +26 -0
- package/dist/components/DotFlowPadBlockView.vue.d.ts +146 -0
- package/dist/components/EmbedBlockShell.vue.d.ts +46 -0
- package/dist/components/EmbedFullscreenModal.vue.d.ts +29 -0
- package/dist/components/EmbedViewBlock.vue.d.ts +26 -0
- package/dist/components/EmbedViewToolbar.vue.d.ts +24 -0
- package/dist/components/ImageBlockView.vue.d.ts +7 -0
- package/dist/components/ImagePreviewDialog.vue.d.ts +13 -0
- package/dist/components/InsertLinkDialog.vue.d.ts +19 -0
- package/dist/components/InsertMenu.vue.d.ts +27 -0
- package/dist/components/LinkToolbar.vue.d.ts +15 -0
- package/dist/components/MathPopover.vue.d.ts +15 -0
- package/dist/components/MentionNode.vue.d.ts +92 -0
- package/dist/components/MermaidBlockView.vue.d.ts +104 -0
- package/dist/components/PagelyEditor.vue.d.ts +119 -0
- package/dist/components/PagelyViewer.vue.d.ts +15 -0
- package/dist/components/SelectionToolbar.vue.d.ts +23 -0
- package/dist/components/TableActionMenu.vue.d.ts +28 -0
- package/dist/components/TableSizePicker.vue.d.ts +19 -0
- package/dist/components/TableTools.vue.d.ts +45 -0
- package/dist/composables/useBlockButton.d.ts +21 -0
- package/dist/composables/useBlockConvert.d.ts +4 -0
- package/dist/composables/useBlockImageExport.d.ts +4 -0
- package/dist/composables/useBlockMenu.d.ts +19 -0
- package/dist/composables/useBlockOps.d.ts +3 -0
- package/dist/composables/useCodeMirror.d.ts +30 -0
- package/dist/composables/useCommentAnchors.d.ts +60 -0
- package/dist/composables/useCommentEditor.d.ts +24 -0
- package/dist/composables/useEditorCommands.d.ts +22 -0
- package/dist/composables/useEditorEvents.d.ts +22 -0
- package/dist/composables/useEmbedView.d.ts +28 -0
- package/dist/composables/useFileUpload.d.ts +28 -0
- package/dist/composables/useHeadingCollapse.d.ts +19 -0
- package/dist/composables/useHoverMenu.d.ts +7 -0
- package/dist/composables/useInsertButton.d.ts +7 -0
- package/dist/composables/useInsertMenu.d.ts +17 -0
- package/dist/composables/useLinkHover.d.ts +3 -0
- package/dist/composables/useLinkOps.d.ts +32 -0
- package/dist/composables/useMarkdownSync.d.ts +12 -0
- package/dist/composables/useMath.d.ts +38 -0
- package/dist/composables/useMention.d.ts +20 -0
- package/dist/composables/useMenuPosition.d.ts +13 -0
- package/dist/composables/useMenuSidePanel.d.ts +27 -0
- package/dist/composables/useNodeViewCommentAttrs.d.ts +12 -0
- package/dist/composables/usePagelyEditor.d.ts +17 -0
- package/dist/composables/useSelectionToolbar.d.ts +3 -0
- package/dist/composables/useTableCellOps.d.ts +21 -0
- package/dist/composables/useTableDots.d.ts +60 -0
- package/dist/composables/useTableTools.d.ts +72 -0
- package/dist/config/blockMenu/index.d.ts +39 -0
- package/dist/config/blockMenu/items.d.ts +26 -0
- package/dist/config/blockMenu/profiles.d.ts +13 -0
- package/dist/config/blockMenu/sections.d.ts +8 -0
- package/dist/config/blockMenu/tagMapping.d.ts +9 -0
- package/dist/config/blockTypeConfig.d.ts +1 -0
- package/dist/config/extensionProfiles.d.ts +3 -0
- package/dist/config/insertMenu/blockCommands.d.ts +2 -0
- package/dist/config/insertMenu/cellOps.d.ts +22 -0
- package/dist/config/insertMenu/commands.d.ts +16 -0
- package/dist/config/insertMenu/index.d.ts +10 -0
- package/dist/config/insertMenu/items.d.ts +11 -0
- package/dist/config/insertMenu/sections.d.ts +15 -0
- package/dist/config/selectionToolbarConfig.d.ts +25 -0
- package/dist/config/selectionToolbarRules.d.ts +5 -0
- package/dist/extensions/AutoLinkTitle.d.ts +2 -0
- package/dist/extensions/CodeBlockCM.d.ts +7 -0
- package/dist/extensions/CommentBlock.d.ts +3 -0
- package/dist/extensions/CommentMark.d.ts +5 -0
- package/dist/extensions/CommentableTableView.d.ts +7 -0
- package/dist/extensions/DotFlowPadBlock.d.ts +2 -0
- package/dist/extensions/EmbedView.d.ts +12 -0
- package/dist/extensions/Image.d.ts +15 -0
- package/dist/extensions/Mathematics.d.ts +3 -0
- package/dist/extensions/Mention.d.ts +13 -0
- package/dist/extensions/MermaidBlock.d.ts +2 -0
- package/dist/extensions/SlashInsert.d.ts +5 -0
- package/dist/extensions/SmartPaste.d.ts +14 -0
- package/dist/extensions/TableCellEnter.d.ts +2 -0
- package/dist/index.d.ts +41 -0
- package/dist/pagely.cjs +318 -0
- package/dist/pagely.js +24519 -0
- package/dist/stores/linkState.d.ts +21 -0
- package/dist/style.css +1 -0
- package/dist/types/menuCommands.d.ts +42 -0
- package/dist/utils/attachmentUpload.d.ts +15 -0
- package/dist/utils/commentIds.d.ts +1 -0
- package/dist/utils/embedView/attrs.d.ts +19 -0
- package/dist/utils/embedView/detect.d.ts +14 -0
- package/dist/utils/embedView/downgrade.d.ts +1 -0
- package/dist/utils/embedView/markdown.d.ts +6 -0
- package/dist/utils/embedView/metadata.d.ts +8 -0
- package/dist/utils/embedView/pagelyPreview.d.ts +1 -0
- package/dist/utils/embedView/url.d.ts +10 -0
- package/dist/utils/markdown-converter/shared.d.ts +15 -0
- package/dist/utils/markdown-converter/toHtml.d.ts +1 -0
- package/dist/utils/markdown-converter/toMarkdown.d.ts +7 -0
- package/dist/utils/markdown-converter.d.ts +4 -0
- package/dist/utils/paste/context.d.ts +4 -0
- package/dist/utils/paste/escape.d.ts +2 -0
- package/dist/utils/paste/handlers/codeBlock.d.ts +2 -0
- package/dist/utils/paste/handlers/dotFlowPad.d.ts +2 -0
- package/dist/utils/paste/handlers/jsonCode.d.ts +2 -0
- package/dist/utils/paste/handlers/latexBlock.d.ts +2 -0
- package/dist/utils/paste/handlers/markdown.d.ts +2 -0
- package/dist/utils/paste/handlers/mermaid.d.ts +2 -0
- package/dist/utils/paste/handlers/richHtml.d.ts +2 -0
- package/dist/utils/paste/handlers/tsv.d.ts +2 -0
- package/dist/utils/paste/index.d.ts +10 -0
- package/dist/utils/paste/parsers/json.d.ts +5 -0
- package/dist/utils/paste/parsers/tsv.d.ts +5 -0
- package/dist/utils/paste/richHtml.d.ts +1 -0
- package/dist/utils/paste/sanitize.d.ts +1 -0
- package/dist/utils/paste/types.d.ts +12 -0
- package/dist/utils/tableAlign.d.ts +2 -0
- package/package.json +99 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/vue-3';
|
|
2
|
+
import { BlockInfo } from '../composables/useBlockButton';
|
|
3
|
+
import { MenuPlacement } from '../composables/useMenuPosition';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
menuTop: number;
|
|
7
|
+
menuLeft: number;
|
|
8
|
+
placement: MenuPlacement;
|
|
9
|
+
editor: Editor | undefined;
|
|
10
|
+
blockInfo: BlockInfo;
|
|
11
|
+
blockTargetPos: number | null;
|
|
12
|
+
enableComment?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
close: () => any;
|
|
16
|
+
comment: () => any;
|
|
17
|
+
"menu-enter": () => any;
|
|
18
|
+
"menu-leave": () => any;
|
|
19
|
+
convert: (id: string) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onClose?: (() => any) | undefined;
|
|
22
|
+
onComment?: (() => any) | undefined;
|
|
23
|
+
"onMenu-enter"?: (() => any) | undefined;
|
|
24
|
+
"onMenu-leave"?: (() => any) | undefined;
|
|
25
|
+
onConvert?: ((id: string) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["editor"]>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
node: {
|
|
7
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["node"]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
decorations: {
|
|
11
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["decorations"]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
selected: {
|
|
15
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["selected"]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
extension: {
|
|
19
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["extension"]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
getPos: {
|
|
23
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["getPos"]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
updateAttributes: {
|
|
27
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["updateAttributes"]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
deleteNode: {
|
|
31
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["deleteNode"]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
view: {
|
|
35
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["view"]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
innerDecorations: {
|
|
39
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["innerDecorations"]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
HTMLAttributes: {
|
|
43
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["HTMLAttributes"]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
47
|
+
editor: {
|
|
48
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["editor"]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
node: {
|
|
52
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["node"]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
decorations: {
|
|
56
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["decorations"]>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
selected: {
|
|
60
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["selected"]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
extension: {
|
|
64
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["extension"]>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
getPos: {
|
|
68
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["getPos"]>;
|
|
69
|
+
required: true;
|
|
70
|
+
};
|
|
71
|
+
updateAttributes: {
|
|
72
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["updateAttributes"]>;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
deleteNode: {
|
|
76
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["deleteNode"]>;
|
|
77
|
+
required: true;
|
|
78
|
+
};
|
|
79
|
+
view: {
|
|
80
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["view"]>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
innerDecorations: {
|
|
84
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["innerDecorations"]>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
HTMLAttributes: {
|
|
88
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["HTMLAttributes"]>;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
92
|
+
cmContainer: HTMLDivElement;
|
|
93
|
+
fullscreenCmContainer: HTMLDivElement;
|
|
94
|
+
}, any>;
|
|
95
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TableAlign } from '../utils/tableAlign';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
align: TableAlign;
|
|
4
|
+
colIndex: number;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
keepAlive: () => void;
|
|
8
|
+
scheduleHide: () => void;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
change: (align: TableAlign, colIndex: number) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onChange?: ((align: TableAlign, colIndex: number) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
currentFontColor: string | null;
|
|
3
|
+
currentBgColor: string | null;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
reset: () => any;
|
|
7
|
+
applyFontColor: (color: string | null) => any;
|
|
8
|
+
applyBgColor: (color: string | null) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onReset?: (() => any) | undefined;
|
|
11
|
+
onApplyFontColor?: ((color: string | null) => any) | undefined;
|
|
12
|
+
onApplyBgColor?: ((color: string | null) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Content, JSONContent } from '@tiptap/core';
|
|
2
|
+
import { Editor } from '@tiptap/vue-3';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
content: Content;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
7
|
+
getContent: () => JSONContent | null;
|
|
8
|
+
setContent: (content: Content) => void;
|
|
9
|
+
getEditor: () => Editor | undefined;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Content, JSONContent } from '@tiptap/core';
|
|
2
|
+
import { MentionTriggerPayload } from '../composables/useMention';
|
|
3
|
+
import { MentionAttrs } from '../extensions/Mention';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
initialContent?: Content;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
9
|
+
getContent: () => JSONContent;
|
|
10
|
+
setContent: (content: Content) => void;
|
|
11
|
+
clear: () => void;
|
|
12
|
+
focus: (position?: "start" | "end") => void;
|
|
13
|
+
submit: () => void;
|
|
14
|
+
insertMention: (attrs: MentionAttrs) => boolean;
|
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
submit: (content: JSONContent) => any;
|
|
17
|
+
"mention:trigger": (payload: MentionTriggerPayload) => any;
|
|
18
|
+
"mention:cancel": () => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onSubmit?: ((content: JSONContent) => any) | undefined;
|
|
21
|
+
"onMention:trigger"?: ((payload: MentionTriggerPayload) => any) | undefined;
|
|
22
|
+
"onMention:cancel"?: (() => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
placeholder: string;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { nextTick } from 'vue';
|
|
2
|
+
import { NodeViewProps } from '@tiptap/vue-3';
|
|
3
|
+
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, {
|
|
4
|
+
shellRef: ({
|
|
5
|
+
$: import('vue').ComponentInternalInstance;
|
|
6
|
+
$data: {};
|
|
7
|
+
$props: {
|
|
8
|
+
readonly label: string;
|
|
9
|
+
readonly fullscreen?: boolean | undefined;
|
|
10
|
+
readonly beforeCloseFullscreen?: (() => void | Promise<void>) | undefined;
|
|
11
|
+
readonly canCopySource?: boolean | undefined;
|
|
12
|
+
readonly canCopyImage?: boolean | undefined;
|
|
13
|
+
readonly canFullscreen?: boolean | undefined;
|
|
14
|
+
readonly fullscreenCloseLabel?: string | undefined;
|
|
15
|
+
readonly "onUpdate:fullscreen"?: ((fullscreen: boolean) => any) | undefined;
|
|
16
|
+
readonly "onCopy-source"?: (() => any) | undefined;
|
|
17
|
+
readonly "onCopy-image"?: (() => any) | undefined;
|
|
18
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
19
|
+
$attrs: import('vue').Attrs;
|
|
20
|
+
$refs: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
$slots: Readonly<{
|
|
24
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
27
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
28
|
+
$host: Element | null;
|
|
29
|
+
$emit: ((event: "update:fullscreen", fullscreen: boolean) => void) & ((event: "copy-source") => void) & ((event: "copy-image") => void);
|
|
30
|
+
$el: HTMLDivElement;
|
|
31
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
32
|
+
label: string;
|
|
33
|
+
fullscreen?: boolean;
|
|
34
|
+
beforeCloseFullscreen?: () => void | Promise<void>;
|
|
35
|
+
canCopySource?: boolean;
|
|
36
|
+
canCopyImage?: boolean;
|
|
37
|
+
canFullscreen?: boolean;
|
|
38
|
+
fullscreenCloseLabel?: string;
|
|
39
|
+
}> & Readonly<{
|
|
40
|
+
"onUpdate:fullscreen"?: ((fullscreen: boolean) => any) | undefined;
|
|
41
|
+
"onCopy-source"?: (() => any) | undefined;
|
|
42
|
+
"onCopy-image"?: (() => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
showCopyTip: (kind: "source" | "image") => void;
|
|
45
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
|
+
"update:fullscreen": (fullscreen: boolean) => any;
|
|
47
|
+
"copy-source": () => any;
|
|
48
|
+
"copy-image": () => any;
|
|
49
|
+
}, string, {
|
|
50
|
+
fullscreen: boolean;
|
|
51
|
+
canCopySource: boolean;
|
|
52
|
+
canCopyImage: boolean;
|
|
53
|
+
canFullscreen: boolean;
|
|
54
|
+
fullscreenCloseLabel: string;
|
|
55
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
56
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
57
|
+
created?: (() => void) | (() => void)[];
|
|
58
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
59
|
+
mounted?: (() => void) | (() => void)[];
|
|
60
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
61
|
+
updated?: (() => void) | (() => void)[];
|
|
62
|
+
activated?: (() => void) | (() => void)[];
|
|
63
|
+
deactivated?: (() => void) | (() => void)[];
|
|
64
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
65
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
66
|
+
destroyed?: (() => void) | (() => void)[];
|
|
67
|
+
unmounted?: (() => void) | (() => void)[];
|
|
68
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
69
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
70
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
71
|
+
};
|
|
72
|
+
$forceUpdate: () => void;
|
|
73
|
+
$nextTick: typeof nextTick;
|
|
74
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
75
|
+
} & Readonly<{
|
|
76
|
+
fullscreen: boolean;
|
|
77
|
+
canCopySource: boolean;
|
|
78
|
+
canCopyImage: boolean;
|
|
79
|
+
canFullscreen: boolean;
|
|
80
|
+
fullscreenCloseLabel: string;
|
|
81
|
+
}> & Omit<Readonly<{
|
|
82
|
+
label: string;
|
|
83
|
+
fullscreen?: boolean;
|
|
84
|
+
beforeCloseFullscreen?: () => void | Promise<void>;
|
|
85
|
+
canCopySource?: boolean;
|
|
86
|
+
canCopyImage?: boolean;
|
|
87
|
+
canFullscreen?: boolean;
|
|
88
|
+
fullscreenCloseLabel?: string;
|
|
89
|
+
}> & Readonly<{
|
|
90
|
+
"onUpdate:fullscreen"?: ((fullscreen: boolean) => any) | undefined;
|
|
91
|
+
"onCopy-source"?: (() => any) | undefined;
|
|
92
|
+
"onCopy-image"?: (() => any) | undefined;
|
|
93
|
+
}>, "showCopyTip" | ("fullscreen" | "canCopySource" | "canCopyImage" | "canFullscreen" | "fullscreenCloseLabel")> & import('vue').ShallowUnwrapRef<{
|
|
94
|
+
showCopyTip: (kind: "source" | "image") => void;
|
|
95
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
96
|
+
$slots: {
|
|
97
|
+
'toolbar-before-actions'?(_: {}): any;
|
|
98
|
+
'toolbar-extra'?(_: {}): any;
|
|
99
|
+
inline?(_: {}): any;
|
|
100
|
+
fullscreen?(_: {}): any;
|
|
101
|
+
};
|
|
102
|
+
}) | null;
|
|
103
|
+
inlineWrap: HTMLDivElement;
|
|
104
|
+
inlineRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<Record<string, any>>>, {
|
|
105
|
+
getData: () => unknown;
|
|
106
|
+
setData: (data: unknown) => void;
|
|
107
|
+
fitView?: () => void;
|
|
108
|
+
}, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
109
|
+
[x: string]: any;
|
|
110
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
111
|
+
P: {};
|
|
112
|
+
B: {};
|
|
113
|
+
D: {};
|
|
114
|
+
C: {};
|
|
115
|
+
M: {};
|
|
116
|
+
Defaults: {};
|
|
117
|
+
}, Readonly<import('vue').ExtractPropTypes<Record<string, any>>>, {
|
|
118
|
+
getData: () => unknown;
|
|
119
|
+
setData: (data: unknown) => void;
|
|
120
|
+
fitView?: () => void;
|
|
121
|
+
}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {
|
|
122
|
+
[x: string]: any;
|
|
123
|
+
}> | null;
|
|
124
|
+
fullscreenWrap: HTMLDivElement;
|
|
125
|
+
fullscreenRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<Record<string, any>>>, {
|
|
126
|
+
getData: () => unknown;
|
|
127
|
+
setData: (data: unknown) => void;
|
|
128
|
+
fitView?: () => void;
|
|
129
|
+
}, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
130
|
+
[x: string]: any;
|
|
131
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
132
|
+
P: {};
|
|
133
|
+
B: {};
|
|
134
|
+
D: {};
|
|
135
|
+
C: {};
|
|
136
|
+
M: {};
|
|
137
|
+
Defaults: {};
|
|
138
|
+
}, Readonly<import('vue').ExtractPropTypes<Record<string, any>>>, {
|
|
139
|
+
getData: () => unknown;
|
|
140
|
+
setData: (data: unknown) => void;
|
|
141
|
+
fitView?: () => void;
|
|
142
|
+
}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {
|
|
143
|
+
[x: string]: any;
|
|
144
|
+
}> | null;
|
|
145
|
+
}, any>;
|
|
146
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label: string;
|
|
3
|
+
fullscreen?: boolean;
|
|
4
|
+
beforeCloseFullscreen?: () => void | Promise<void>;
|
|
5
|
+
canCopySource?: boolean;
|
|
6
|
+
canCopyImage?: boolean;
|
|
7
|
+
canFullscreen?: boolean;
|
|
8
|
+
fullscreenCloseLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
declare function showCopyTip(kind: 'source' | 'image'): void;
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
'toolbar-before-actions'?(_: {}): any;
|
|
15
|
+
'toolbar-extra'?(_: {}): any;
|
|
16
|
+
inline?(_: {}): any;
|
|
17
|
+
fullscreen?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
refs: {};
|
|
20
|
+
rootEl: HTMLDivElement;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
24
|
+
showCopyTip: typeof showCopyTip;
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
"update:fullscreen": (fullscreen: boolean) => any;
|
|
27
|
+
"copy-source": () => any;
|
|
28
|
+
"copy-image": () => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
"onUpdate:fullscreen"?: ((fullscreen: boolean) => any) | undefined;
|
|
31
|
+
"onCopy-source"?: (() => any) | undefined;
|
|
32
|
+
"onCopy-image"?: (() => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
fullscreen: boolean;
|
|
35
|
+
canCopySource: boolean;
|
|
36
|
+
canCopyImage: boolean;
|
|
37
|
+
canFullscreen: boolean;
|
|
38
|
+
fullscreenCloseLabel: string;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
40
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
beforeClose?: () => void | Promise<void>;
|
|
4
|
+
closeLabel?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
toolbar?(_: {}): any;
|
|
10
|
+
body?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:open": (open: boolean) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
closeLabel: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -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
|
+
rootRef: 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,24 @@
|
|
|
1
|
+
import { EmbedFileType, EmbedViewMode } from '../extensions/EmbedView';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label: string;
|
|
4
|
+
currentView: EmbedViewMode;
|
|
5
|
+
fileType: EmbedFileType;
|
|
6
|
+
canPreview: boolean;
|
|
7
|
+
copyTip: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
copy: () => any;
|
|
11
|
+
open: () => any;
|
|
12
|
+
"set-view": (view: EmbedViewMode) => any;
|
|
13
|
+
fullscreen: () => any;
|
|
14
|
+
download: () => any;
|
|
15
|
+
remove: () => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onCopy?: (() => any) | undefined;
|
|
18
|
+
onOpen?: (() => any) | undefined;
|
|
19
|
+
"onSet-view"?: ((view: EmbedViewMode) => any) | undefined;
|
|
20
|
+
onFullscreen?: (() => any) | undefined;
|
|
21
|
+
onDownload?: (() => any) | undefined;
|
|
22
|
+
onRemove?: (() => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
|
+
export default _default;
|
|
@@ -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
|
+
rootRef: HTMLDivElement;
|
|
4
|
+
frameRef: HTMLDivElement;
|
|
5
|
+
imageRef: HTMLImageElement;
|
|
6
|
+
}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
src: string;
|
|
3
|
+
alt?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
baseWidth: number;
|
|
6
|
+
baseHeight: number;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
close: () => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
close: () => any;
|
|
6
|
+
confirm: (payload: {
|
|
7
|
+
text: string;
|
|
8
|
+
href: string;
|
|
9
|
+
}) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
|
+
onConfirm?: ((payload: {
|
|
13
|
+
text: string;
|
|
14
|
+
href: string;
|
|
15
|
+
}) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
17
|
+
textInputEl: HTMLInputElement;
|
|
18
|
+
}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/vue-3';
|
|
2
|
+
import { CellOpKind, InsertCtx, InsertItemId, ResolvedInsertMenuSectionDef } from '../config/insertMenu';
|
|
3
|
+
import { MenuPlacement } from '../composables/useMenuPosition';
|
|
4
|
+
import { FileUploadHandler } from '../composables/useFileUpload';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
visible: boolean;
|
|
7
|
+
menuTop: number;
|
|
8
|
+
menuLeft: number;
|
|
9
|
+
placement: MenuPlacement;
|
|
10
|
+
editor: Editor | undefined;
|
|
11
|
+
sections: ResolvedInsertMenuSectionDef[];
|
|
12
|
+
fileUploadHandler?: FileUploadHandler;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
close: () => any;
|
|
16
|
+
"cell-op": (kind: CellOpKind) => any;
|
|
17
|
+
insert: (id: InsertItemId, ctx?: InsertCtx | undefined) => any;
|
|
18
|
+
"menu-enter": () => any;
|
|
19
|
+
"menu-leave": () => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onClose?: (() => any) | undefined;
|
|
22
|
+
"onCell-op"?: ((kind: CellOpKind) => any) | undefined;
|
|
23
|
+
onInsert?: ((id: InsertItemId, ctx?: InsertCtx | undefined) => any) | undefined;
|
|
24
|
+
"onMenu-enter"?: (() => any) | undefined;
|
|
25
|
+
"onMenu-leave"?: (() => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/vue-3';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
editor: Editor | undefined;
|
|
4
|
+
};
|
|
5
|
+
declare function show(url: string, text: string, anchorRect: DOMRect): void;
|
|
6
|
+
declare function hide(immediate?: boolean): void;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
8
|
+
show: typeof show;
|
|
9
|
+
hide: typeof hide;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
11
|
+
toolbarEl: HTMLDivElement;
|
|
12
|
+
viewWrapEl: HTMLDivElement;
|
|
13
|
+
editInputEl: HTMLInputElement;
|
|
14
|
+
}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
anchorRect: DOMRect | null;
|
|
4
|
+
initialLatex: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
close: () => any;
|
|
8
|
+
confirm: (latex: string) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onClose?: (() => any) | undefined;
|
|
11
|
+
onConfirm?: ((latex: string) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
13
|
+
inputRef: HTMLInputElement;
|
|
14
|
+
}, any>;
|
|
15
|
+
export default _default;
|