@deskhero/dh_ui 2.49.0 → 2.49.9
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/adapters/tiptap/SimpleTemplate.vue.d.ts +12 -24
- package/dist/adapters/tiptap/TiptapView.vue.d.ts +10 -61
- package/dist/adapters/tiptap/components/ColorHighlightDropdown.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/FileUploadButton.vue.d.ts +4 -8
- package/dist/adapters/tiptap/components/ImageUploadButton.vue.d.ts +4 -8
- package/dist/adapters/tiptap/components/Input.vue.d.ts +7 -13
- package/dist/adapters/tiptap/components/LinkDropdown.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/MarkButton.vue.d.ts +4 -10
- package/dist/adapters/tiptap/components/TextAlignButton.vue.d.ts +4 -10
- package/dist/adapters/tiptap/components/TextAlignDropdown.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/ToolbarGroup.vue.d.ts +7 -10
- package/dist/adapters/tiptap/components/button/ButtonGroup.vue.d.ts +9 -22
- package/dist/adapters/tiptap/components/tiptap-icons/AlignCenterIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/AlignJustifyIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/AlignLeftIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/AlignRightIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/BanIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/CornerDownLeftIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/ExternalLinkIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/FileIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/HeadingFiveIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/HeadingSixIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/HighlighterIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/ImagePlusIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/LinkIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/components/tiptap-icons/TrashIcon.vue.d.ts +1 -1
- package/dist/adapters/tiptap/composables/useScrollDetector.d.ts +6 -6
- package/dist/components/ColorPicker.vue.d.ts +7 -13
- package/dist/components/ImageCropper.vue.d.ts +10 -10
- package/dist/components/InputWithList/DropdownList.vue.d.ts +8 -6
- package/dist/components/InputWithList/MultipleInput.vue.d.ts +18 -9
- package/dist/components/InputWithList/SingleInput.vue.d.ts +14 -8
- package/dist/components/InputWithList/TagItem.vue.d.ts +7 -5
- package/dist/components/InputWithList.vue.d.ts +25 -14
- package/dist/components/LineChart.vue.d.ts +5 -1
- package/dist/components/Tags.vue.d.ts +53 -7
- package/dist/components/TextEditor.vue.d.ts +23 -65
- package/dist/components/TextEditorLegacy.vue.d.ts +25 -6
- package/dist/components/VerificationCode.vue.d.ts +7 -5
- package/dist/dh_ui.es.js +24647 -24380
- package/dist/dh_ui.umd.js +199 -353
- package/dist/index.d.ts +1 -1
- package/dist/style.css +4 -4
- package/package.json +11 -6
- package/dist/adapters/editorjs/EditorjsView.vue.d.ts +0 -72
- package/dist/adapters/tiptap/components/BlockquoteButton.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/CodeblockButton.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/Dropdown.vue.d.ts +0 -35
- package/dist/adapters/tiptap/components/HeadingDropdown.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/ListDropdown.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/Separator.vue.d.ts +0 -33
- package/dist/adapters/tiptap/components/TableButton.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/Toolbar.vue.d.ts +0 -9
- package/dist/adapters/tiptap/components/button/Button.vue.d.ts +0 -41
- package/dist/adapters/tiptap/components/tiptap-icons/BlockquoteIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/BoldIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/ChevronDownIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/CodeIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/CodeblockIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/HeadingFourIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/HeadingIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/HeadingOneIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/HeadingThreeIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/HeadingTwoIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/ItalicIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/ListIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/ListOrderedIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/ListTodoIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/RedoIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/StrikeIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/SubscriptIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/SuperscriptIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/TableIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/UnderlineIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/tiptap-icons/UndoIcon.vue.d.ts +0 -2
- package/dist/adapters/tiptap/components/undo-redo-button/UndoRedoButton.vue.d.ts +0 -30
- package/dist/adapters/tiptap/extensions/attachment.d.ts +0 -2
- package/dist/adapters/tiptap/extensions/file-upload-node/file-upload-node-extension.d.ts +0 -80
- package/dist/adapters/tiptap/extensions/file-upload-node/index.d.ts +0 -1
- package/dist/adapters/tiptap/extensions/signature.d.ts +0 -2
- package/dist/adapters/tiptap/extensions/table/index.d.ts +0 -2
- package/dist/adapters/tiptap/utils/tiptap-utils.d.ts +0 -122
- package/dist/components/Button.vue.d.ts +0 -102
- package/dist/components/Copiable.vue.d.ts +0 -8
- package/dist/components/DatePicker.vue.d.ts +0 -11
- package/dist/components/DropdownMenu.vue.d.ts +0 -108
- package/dist/components/DropdownMenuItem.vue.d.ts +0 -50
- package/dist/components/Error.vue.d.ts +0 -16
- package/dist/components/ExpansionPanel.vue.d.ts +0 -58
- package/dist/components/FileUpload.vue.d.ts +0 -13
- package/dist/components/IconWithText.vue.d.ts +0 -149
- package/dist/components/Input.vue.d.ts +0 -51
- package/dist/components/InputDropdown.vue.d.ts +0 -16
- package/dist/components/InputDropdownMultiple.vue.d.ts +0 -16
- package/dist/components/InputGroup.vue.d.ts +0 -15
- package/dist/components/InputList.vue.d.ts +0 -20
- package/dist/components/Modal.vue.d.ts +0 -118
- package/dist/components/Notification.vue.d.ts +0 -195
- package/dist/components/PasswordField.vue.d.ts +0 -62
- package/dist/components/RadioBox.vue.d.ts +0 -9
- package/dist/components/RadioBoxGroup.vue.d.ts +0 -8
- package/dist/components/SearchInput.vue.d.ts +0 -36
- package/dist/components/Stepper.vue.d.ts +0 -23
- package/dist/components/Tag.vue.d.ts +0 -48
- package/dist/models/DropdownMenuItem.model.d.ts +0 -13
- package/dist/models/InputDropdown.model.d.ts +0 -4
- package/dist/models/Tag.model.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deskhero/dh_ui",
|
|
3
|
-
"
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public",
|
|
5
|
+
"registry": "https://registry.npmjs.org/",
|
|
6
|
+
"provenance": false
|
|
7
|
+
},
|
|
8
|
+
"version": "2.49.9",
|
|
4
9
|
"files": [
|
|
5
10
|
"dist"
|
|
6
11
|
],
|
|
7
12
|
"main": "dist/dh_ui.umd.js",
|
|
8
13
|
"module": "dist/dh_ui.es.js",
|
|
9
|
-
"types": "dist/
|
|
14
|
+
"types": "dist/index.d.ts",
|
|
10
15
|
"declaration": true,
|
|
11
16
|
"declarationDir": "./models",
|
|
12
17
|
"exports": {
|
|
@@ -18,7 +23,7 @@
|
|
|
18
23
|
},
|
|
19
24
|
"repository": {
|
|
20
25
|
"type": "git",
|
|
21
|
-
"url": "https://
|
|
26
|
+
"url": "git+https://github.com/deskhero/dh-ui.git"
|
|
22
27
|
},
|
|
23
28
|
"scripts": {
|
|
24
29
|
"dev": "vite",
|
|
@@ -92,7 +97,7 @@
|
|
|
92
97
|
"@vue/eslint-config-typescript": "^10.0.0",
|
|
93
98
|
"@vue/tsconfig": "^0.1.3",
|
|
94
99
|
"babel-loader": "^8.2.5",
|
|
95
|
-
"chromatic": "^6.
|
|
100
|
+
"chromatic": "^6.24.1",
|
|
96
101
|
"css-loader": "^6.7.1",
|
|
97
102
|
"cz-conventional-changelog": "^3.3.0",
|
|
98
103
|
"editorjs-drag-drop": "^1.1.16",
|
|
@@ -115,10 +120,10 @@
|
|
|
115
120
|
"semantic-release": "^23.0.8",
|
|
116
121
|
"storybook": "^7.5.1",
|
|
117
122
|
"style-loader": "^3.3.1",
|
|
118
|
-
"typescript": "
|
|
123
|
+
"typescript": "5.6.2",
|
|
119
124
|
"vite": "^4.4.2",
|
|
120
125
|
"vue-loader": "^16.8.3",
|
|
121
|
-
"vue-tsc": "^
|
|
126
|
+
"vue-tsc": "^2.0.29"
|
|
122
127
|
},
|
|
123
128
|
"engines": {
|
|
124
129
|
"node": ">=20.11.1",
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { SysContentRich, SysAttachment } from "@/models/Editor.model";
|
|
2
|
-
import { FileRegistration, UploadEventPayload } from "@/models/UploadedFile.model";
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
data: {
|
|
5
|
-
type: import("vue").PropType<SysContentRich>;
|
|
6
|
-
required: true;
|
|
7
|
-
};
|
|
8
|
-
i18n: {
|
|
9
|
-
type: import("vue").PropType<import("@/models/Editor.model").EditorI18n>;
|
|
10
|
-
};
|
|
11
|
-
readOnly: {
|
|
12
|
-
type: import("vue").PropType<boolean>;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
fileUpload: {
|
|
16
|
-
type: import("vue").PropType<(e: UploadEventPayload) => void>;
|
|
17
|
-
};
|
|
18
|
-
attachments: {
|
|
19
|
-
type: import("vue").PropType<SysAttachment[]>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
toolbarPosition: {
|
|
23
|
-
type: import("vue").PropType<"left" | "right">;
|
|
24
|
-
default: string;
|
|
25
|
-
};
|
|
26
|
-
suggestedReply: {
|
|
27
|
-
type: import("vue").PropType<SysContentRich>;
|
|
28
|
-
};
|
|
29
|
-
}, {
|
|
30
|
-
acceptSuggestion: () => void;
|
|
31
|
-
isEmpty: () => Promise<boolean>;
|
|
32
|
-
registerFiles: (payload: FileRegistration) => void;
|
|
33
|
-
insertSignature: (payload: SysContentRich, att: SysAttachment[]) => void;
|
|
34
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
-
"update:data": (value: SysContentRich) => void;
|
|
36
|
-
"update:attachments": (value: SysAttachment[]) => void;
|
|
37
|
-
"file-upload": (val: UploadEventPayload) => void;
|
|
38
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
-
data: {
|
|
40
|
-
type: import("vue").PropType<SysContentRich>;
|
|
41
|
-
required: true;
|
|
42
|
-
};
|
|
43
|
-
i18n: {
|
|
44
|
-
type: import("vue").PropType<import("@/models/Editor.model").EditorI18n>;
|
|
45
|
-
};
|
|
46
|
-
readOnly: {
|
|
47
|
-
type: import("vue").PropType<boolean>;
|
|
48
|
-
default: boolean;
|
|
49
|
-
};
|
|
50
|
-
fileUpload: {
|
|
51
|
-
type: import("vue").PropType<(e: UploadEventPayload) => void>;
|
|
52
|
-
};
|
|
53
|
-
attachments: {
|
|
54
|
-
type: import("vue").PropType<SysAttachment[]>;
|
|
55
|
-
required: true;
|
|
56
|
-
};
|
|
57
|
-
toolbarPosition: {
|
|
58
|
-
type: import("vue").PropType<"left" | "right">;
|
|
59
|
-
default: string;
|
|
60
|
-
};
|
|
61
|
-
suggestedReply: {
|
|
62
|
-
type: import("vue").PropType<SysContentRich>;
|
|
63
|
-
};
|
|
64
|
-
}>> & {
|
|
65
|
-
"onFile-upload"?: ((val: UploadEventPayload) => any) | undefined;
|
|
66
|
-
"onUpdate:data"?: ((value: SysContentRich) => any) | undefined;
|
|
67
|
-
"onUpdate:attachments"?: ((value: SysAttachment[]) => any) | undefined;
|
|
68
|
-
}, {
|
|
69
|
-
readOnly: boolean;
|
|
70
|
-
toolbarPosition: "left" | "right";
|
|
71
|
-
}, {}>;
|
|
72
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
-
open: {
|
|
3
|
-
type: import("vue").PropType<boolean>;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
orientation: {
|
|
7
|
-
type: import("vue").PropType<"row" | "column">;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
open: {
|
|
12
|
-
type: import("vue").PropType<boolean>;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
orientation: {
|
|
16
|
-
type: import("vue").PropType<"row" | "column">;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
}>>, {
|
|
20
|
-
open: boolean;
|
|
21
|
-
orientation: "row" | "column";
|
|
22
|
-
}, {}>, {
|
|
23
|
-
trigger?(_: {
|
|
24
|
-
isOpen: boolean;
|
|
25
|
-
}): any;
|
|
26
|
-
items?(_: {
|
|
27
|
-
close: () => boolean;
|
|
28
|
-
}): any;
|
|
29
|
-
}>;
|
|
30
|
-
export default _default;
|
|
31
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
-
new (): {
|
|
33
|
-
$slots: S;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export type Orientation = "horizontal" | "vertical";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
class: {
|
|
4
|
-
type: import("vue").PropType<string>;
|
|
5
|
-
default: string;
|
|
6
|
-
};
|
|
7
|
-
orientation: {
|
|
8
|
-
type: import("vue").PropType<Orientation>;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
decorative: {
|
|
12
|
-
type: import("vue").PropType<boolean>;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
class: {
|
|
17
|
-
type: import("vue").PropType<string>;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
orientation: {
|
|
21
|
-
type: import("vue").PropType<Orientation>;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
decorative: {
|
|
25
|
-
type: import("vue").PropType<boolean>;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
}>>, {
|
|
29
|
-
class: string;
|
|
30
|
-
orientation: Orientation;
|
|
31
|
-
decorative: boolean;
|
|
32
|
-
}, {}>;
|
|
33
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
-
default?(_: {}): any;
|
|
3
|
-
}>;
|
|
4
|
-
export default _default;
|
|
5
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
-
new (): {
|
|
7
|
-
$slots: S;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export interface ButtonProps {
|
|
2
|
-
class?: string;
|
|
3
|
-
ariaLabel?: string;
|
|
4
|
-
type?: "button" | "submit" | "reset";
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
8
|
-
class: {
|
|
9
|
-
type: import("vue").PropType<string>;
|
|
10
|
-
};
|
|
11
|
-
ariaLabel: {
|
|
12
|
-
type: import("vue").PropType<string>;
|
|
13
|
-
};
|
|
14
|
-
type: {
|
|
15
|
-
type: import("vue").PropType<"button" | "reset" | "submit">;
|
|
16
|
-
};
|
|
17
|
-
disabled: {
|
|
18
|
-
type: import("vue").PropType<boolean>;
|
|
19
|
-
};
|
|
20
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
-
class: {
|
|
22
|
-
type: import("vue").PropType<string>;
|
|
23
|
-
};
|
|
24
|
-
ariaLabel: {
|
|
25
|
-
type: import("vue").PropType<string>;
|
|
26
|
-
};
|
|
27
|
-
type: {
|
|
28
|
-
type: import("vue").PropType<"button" | "reset" | "submit">;
|
|
29
|
-
};
|
|
30
|
-
disabled: {
|
|
31
|
-
type: import("vue").PropType<boolean>;
|
|
32
|
-
};
|
|
33
|
-
}>>, {}, {}>, {
|
|
34
|
-
default?(_: {}): any;
|
|
35
|
-
}>;
|
|
36
|
-
export default _default;
|
|
37
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
-
new (): {
|
|
39
|
-
$slots: S;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
action: {
|
|
3
|
-
type: import("vue").PropType<"undo" | "redo">;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
text: {
|
|
7
|
-
type: import("vue").PropType<string>;
|
|
8
|
-
};
|
|
9
|
-
showShortcut: {
|
|
10
|
-
type: import("vue").PropType<boolean>;
|
|
11
|
-
};
|
|
12
|
-
hideWhenUnavailable: {
|
|
13
|
-
type: import("vue").PropType<boolean>;
|
|
14
|
-
};
|
|
15
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
action: {
|
|
17
|
-
type: import("vue").PropType<"undo" | "redo">;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
text: {
|
|
21
|
-
type: import("vue").PropType<string>;
|
|
22
|
-
};
|
|
23
|
-
showShortcut: {
|
|
24
|
-
type: import("vue").PropType<boolean>;
|
|
25
|
-
};
|
|
26
|
-
hideWhenUnavailable: {
|
|
27
|
-
type: import("vue").PropType<boolean>;
|
|
28
|
-
};
|
|
29
|
-
}>>, {}, {}>;
|
|
30
|
-
export default _default;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { Node } from "@tiptap/core";
|
|
2
|
-
import type { NodeType } from "@tiptap/pm/model";
|
|
3
|
-
import "./image-upload-node.scss";
|
|
4
|
-
import type { UploadEventPayload } from "@/models/UploadedFile.model";
|
|
5
|
-
export declare function setPendingFilesForNode(editorView: object, position: number, files: File[]): void;
|
|
6
|
-
export type UploadFunction = (file: File, onProgress?: (event: {
|
|
7
|
-
progress: number;
|
|
8
|
-
}) => void, abortSignal?: AbortSignal) => Promise<string>;
|
|
9
|
-
export interface FileUploadNodeOptions {
|
|
10
|
-
/**
|
|
11
|
-
* The type of the node.
|
|
12
|
-
* @default 'image'
|
|
13
|
-
*/
|
|
14
|
-
type?: string | NodeType | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Acceptable file types for upload.
|
|
17
|
-
* @default 'image/*'
|
|
18
|
-
*/
|
|
19
|
-
accept?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Maximum number of files that can be uploaded.
|
|
22
|
-
* @default 1
|
|
23
|
-
*/
|
|
24
|
-
limit?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Maximum file size in bytes (0 for unlimited).
|
|
27
|
-
* @default 0
|
|
28
|
-
*/
|
|
29
|
-
maxSize?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Function to handle the upload process.
|
|
32
|
-
*/
|
|
33
|
-
upload?: UploadFunction;
|
|
34
|
-
/**
|
|
35
|
-
* Callback for upload errors.
|
|
36
|
-
*/
|
|
37
|
-
onError?: (error: Error) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Callback for successful uploads.
|
|
40
|
-
*/
|
|
41
|
-
onSuccess?: (url: string) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Callback for file upload events.
|
|
44
|
-
*/
|
|
45
|
-
onFileUpload?: (payload: UploadEventPayload) => void;
|
|
46
|
-
/**
|
|
47
|
-
* Force upload as attachment even for single images.
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
forceAttachment?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Internationalization strings for the upload UI.
|
|
53
|
-
*/
|
|
54
|
-
i18n?: Record<string, string>;
|
|
55
|
-
/**
|
|
56
|
-
* HTML attributes to add to the image element.
|
|
57
|
-
* @default {}
|
|
58
|
-
* @example { class: 'foo' }
|
|
59
|
-
*/
|
|
60
|
-
HTMLAttributes: Record<string, any>;
|
|
61
|
-
}
|
|
62
|
-
export interface FileUploadNodeAttributes {
|
|
63
|
-
accept?: string;
|
|
64
|
-
limit?: number;
|
|
65
|
-
maxSize?: number;
|
|
66
|
-
forceAttachment?: boolean;
|
|
67
|
-
i18n?: Record<string, string>;
|
|
68
|
-
}
|
|
69
|
-
declare module "@tiptap/core" {
|
|
70
|
-
interface Commands<ReturnType> {
|
|
71
|
-
fileUpload: {
|
|
72
|
-
setFileUploadNode: (options?: FileUploadNodeAttributes) => ReturnType;
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* A Tiptap node extension that creates a file upload component.
|
|
78
|
-
*/
|
|
79
|
-
export declare const FileUploadNode: Node<FileUploadNodeOptions, any>;
|
|
80
|
-
export default FileUploadNode;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./file-upload-node-extension";
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import type { Node as TiptapNode } from "@tiptap/pm/model";
|
|
2
|
-
import type { Editor } from "@tiptap/vue-3";
|
|
3
|
-
export declare const MAX_FILE_SIZE: number;
|
|
4
|
-
export declare const MAC_SYMBOLS: Record<string, string>;
|
|
5
|
-
export declare function cn(...classes: (string | boolean | undefined | null)[]): string;
|
|
6
|
-
/**
|
|
7
|
-
* Determines if the current platform is macOS
|
|
8
|
-
* @returns boolean indicating if the current platform is Mac
|
|
9
|
-
*/
|
|
10
|
-
export declare function isMac(): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Formats a shortcut key based on the platform (Mac or non-Mac)
|
|
13
|
-
* @param key - The key to format (e.g., "ctrl", "alt", "shift")
|
|
14
|
-
* @param isMac - Boolean indicating if the platform is Mac
|
|
15
|
-
* @param capitalize - Whether to capitalize the key (default: true)
|
|
16
|
-
* @returns Formatted shortcut key symbol
|
|
17
|
-
*/
|
|
18
|
-
export declare const formatShortcutKey: (key: string, isMac: boolean, capitalize?: boolean) => string;
|
|
19
|
-
/**
|
|
20
|
-
* Parses a shortcut key string into an array of formatted key symbols
|
|
21
|
-
* @param shortcutKeys - The string of shortcut keys (e.g., "ctrl-alt-shift")
|
|
22
|
-
* @param delimiter - The delimiter used to split the keys (default: "-")
|
|
23
|
-
* @param capitalize - Whether to capitalize the keys (default: true)
|
|
24
|
-
* @returns Array of formatted shortcut key symbols
|
|
25
|
-
*/
|
|
26
|
-
export declare const parseShortcutKeys: (props: {
|
|
27
|
-
shortcutKeys: string | undefined;
|
|
28
|
-
delimiter?: string;
|
|
29
|
-
capitalize?: boolean;
|
|
30
|
-
}) => string[];
|
|
31
|
-
/**
|
|
32
|
-
* Checks if a mark exists in the editor schema
|
|
33
|
-
* @param markName - The name of the mark to check
|
|
34
|
-
* @param editor - The editor instance
|
|
35
|
-
* @returns boolean indicating if the mark exists in the schema
|
|
36
|
-
*/
|
|
37
|
-
export declare const isMarkInSchema: (markName: string, editor: Editor | null) => boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Checks if a node exists in the editor schema
|
|
40
|
-
* @param nodeName - The name of the node to check
|
|
41
|
-
* @param editor - The editor instance
|
|
42
|
-
* @returns boolean indicating if the node exists in the schema
|
|
43
|
-
*/
|
|
44
|
-
export declare const isNodeInSchema: (nodeName: string, editor: Editor | null) => boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Moves the focus to the next node in the editor
|
|
47
|
-
* @param editor - The editor instance
|
|
48
|
-
* @returns boolean indicating if the focus was moved
|
|
49
|
-
*/
|
|
50
|
-
export declare function focusNextNode(editor: Editor): boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Checks if a value is a valid number (not null, undefined, or NaN)
|
|
53
|
-
* @param value - The value to check
|
|
54
|
-
* @returns boolean indicating if the value is a valid number
|
|
55
|
-
*/
|
|
56
|
-
export declare function isValidPosition(pos: number | null | undefined): pos is number;
|
|
57
|
-
/**
|
|
58
|
-
* Checks if one or more extensions are registered in the Tiptap editor.
|
|
59
|
-
* @param editor - The Tiptap editor instance
|
|
60
|
-
* @param extensionNames - A single extension name or an array of names to check
|
|
61
|
-
* @returns True if at least one of the extensions is available, false otherwise
|
|
62
|
-
*/
|
|
63
|
-
export declare function isExtensionAvailable(editor: Editor | null, extensionNames: string | string[]): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Finds a node at the specified position with error handling
|
|
66
|
-
* @param editor The Tiptap editor instance
|
|
67
|
-
* @param position The position in the document to find the node
|
|
68
|
-
* @returns The node at the specified position, or null if not found
|
|
69
|
-
*/
|
|
70
|
-
export declare function findNodeAtPosition(editor: Editor, position: number): TiptapNode | null;
|
|
71
|
-
/**
|
|
72
|
-
* Finds the position and instance of a node in the document
|
|
73
|
-
* @param props Object containing editor, node (optional), and nodePos (optional)
|
|
74
|
-
* @param props.editor The Tiptap editor instance
|
|
75
|
-
* @param props.node The node to find (optional if nodePos is provided)
|
|
76
|
-
* @param props.nodePos The position of the node to find (optional if node is provided)
|
|
77
|
-
* @returns An object with the position and node, or null if not found
|
|
78
|
-
*/
|
|
79
|
-
export declare function findNodePosition(props: {
|
|
80
|
-
editor: Editor | null;
|
|
81
|
-
node?: TiptapNode | null;
|
|
82
|
-
nodePos?: number | null;
|
|
83
|
-
}): {
|
|
84
|
-
pos: number;
|
|
85
|
-
node: TiptapNode;
|
|
86
|
-
} | null;
|
|
87
|
-
/**
|
|
88
|
-
* Checks if the current selection in the editor is a node selection of specified types
|
|
89
|
-
* @param editor The Tiptap editor instance
|
|
90
|
-
* @param types An array of node type names to check against
|
|
91
|
-
* @returns boolean indicating if the selected node matches any of the specified types
|
|
92
|
-
*/
|
|
93
|
-
export declare function isNodeTypeSelected(editor: Editor | null, types?: string[]): boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Handles image upload with progress tracking and abort capability
|
|
96
|
-
* @param file The file to upload
|
|
97
|
-
* @param onProgress Optional callback for tracking upload progress
|
|
98
|
-
* @param abortSignal Optional AbortSignal for cancelling the upload
|
|
99
|
-
* @returns Promise resolving to the URL of the uploaded image
|
|
100
|
-
*/
|
|
101
|
-
export declare const handleImageUpload: (file: File, onProgress?: ((event: {
|
|
102
|
-
progress: number;
|
|
103
|
-
}) => void) | undefined, abortSignal?: AbortSignal) => Promise<string>;
|
|
104
|
-
type ProtocolOptions = {
|
|
105
|
-
/**
|
|
106
|
-
* The protocol scheme to be registered.
|
|
107
|
-
* @default '''
|
|
108
|
-
* @example 'ftp'
|
|
109
|
-
* @example 'git'
|
|
110
|
-
*/
|
|
111
|
-
scheme: string;
|
|
112
|
-
/**
|
|
113
|
-
* If enabled, it allows optional slashes after the protocol.
|
|
114
|
-
* @default false
|
|
115
|
-
* @example true
|
|
116
|
-
*/
|
|
117
|
-
optionalSlashes?: boolean;
|
|
118
|
-
};
|
|
119
|
-
type ProtocolConfig = Array<ProtocolOptions | string>;
|
|
120
|
-
export declare function isAllowedUri(uri: string | undefined, protocols?: ProtocolConfig): true | RegExpMatchArray | null;
|
|
121
|
-
export declare function sanitizeUrl(inputUrl: string, baseUrl: string, protocols?: ProtocolConfig): string;
|
|
122
|
-
export {};
|