@deskhero/dh_ui 2.47.1 → 2.49.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.
Files changed (121) hide show
  1. package/dist/adapters/editorjs/EditorjsTransformer.d.ts +3 -0
  2. package/dist/adapters/editorjs/EditorjsView.vue.d.ts +72 -0
  3. package/dist/adapters/tiptap/SimpleTemplate.vue.d.ts +29 -0
  4. package/dist/adapters/tiptap/TiptapAdapter.d.ts +26 -0
  5. package/dist/adapters/tiptap/TiptapTransformer.d.ts +3 -0
  6. package/dist/adapters/tiptap/TiptapView.vue.d.ts +73 -0
  7. package/dist/adapters/tiptap/components/BlockquoteButton.vue.d.ts +2 -0
  8. package/dist/adapters/tiptap/components/CodeblockButton.vue.d.ts +2 -0
  9. package/dist/adapters/tiptap/components/ColorHighlightDropdown.vue.d.ts +2 -0
  10. package/dist/adapters/tiptap/components/Dropdown.vue.d.ts +35 -0
  11. package/dist/adapters/tiptap/components/FileUploadButton.vue.d.ts +11 -0
  12. package/dist/adapters/tiptap/components/HeadingDropdown.vue.d.ts +2 -0
  13. package/dist/adapters/tiptap/components/ImageUploadButton.vue.d.ts +11 -0
  14. package/dist/adapters/tiptap/components/Input.vue.d.ts +16 -0
  15. package/dist/adapters/tiptap/components/LinkDropdown.vue.d.ts +2 -0
  16. package/dist/adapters/tiptap/components/ListDropdown.vue.d.ts +2 -0
  17. package/dist/adapters/tiptap/components/MarkButton.vue.d.ts +12 -0
  18. package/dist/adapters/tiptap/components/Separator.vue.d.ts +33 -0
  19. package/dist/adapters/tiptap/components/TableButton.vue.d.ts +2 -0
  20. package/dist/adapters/tiptap/components/TextAlignButton.vue.d.ts +12 -0
  21. package/dist/adapters/tiptap/components/TextAlignDropdown.vue.d.ts +2 -0
  22. package/dist/adapters/tiptap/components/Toolbar.vue.d.ts +9 -0
  23. package/dist/adapters/tiptap/components/ToolbarGroup.vue.d.ts +17 -0
  24. package/dist/adapters/tiptap/components/button/Button.vue.d.ts +41 -0
  25. package/dist/adapters/tiptap/components/button/ButtonGroup.vue.d.ts +29 -0
  26. package/dist/adapters/tiptap/components/tiptap-icons/AlignCenterIcon.vue.d.ts +2 -0
  27. package/dist/adapters/tiptap/components/tiptap-icons/AlignJustifyIcon.vue.d.ts +2 -0
  28. package/dist/adapters/tiptap/components/tiptap-icons/AlignLeftIcon.vue.d.ts +2 -0
  29. package/dist/adapters/tiptap/components/tiptap-icons/AlignRightIcon.vue.d.ts +2 -0
  30. package/dist/adapters/tiptap/components/tiptap-icons/BanIcon.vue.d.ts +2 -0
  31. package/dist/adapters/tiptap/components/tiptap-icons/BlockquoteIcon.vue.d.ts +2 -0
  32. package/dist/adapters/tiptap/components/tiptap-icons/BoldIcon.vue.d.ts +2 -0
  33. package/dist/adapters/tiptap/components/tiptap-icons/ChevronDownIcon.vue.d.ts +2 -0
  34. package/dist/adapters/tiptap/components/tiptap-icons/CodeIcon.vue.d.ts +2 -0
  35. package/dist/adapters/tiptap/components/tiptap-icons/CodeblockIcon.vue.d.ts +2 -0
  36. package/dist/adapters/tiptap/components/tiptap-icons/CornerDownLeftIcon.vue.d.ts +2 -0
  37. package/dist/adapters/tiptap/components/tiptap-icons/ExternalLinkIcon.vue.d.ts +2 -0
  38. package/dist/adapters/tiptap/components/tiptap-icons/FileIcon.vue.d.ts +2 -0
  39. package/dist/adapters/tiptap/components/tiptap-icons/HeadingFiveIcon.vue.d.ts +2 -0
  40. package/dist/adapters/tiptap/components/tiptap-icons/HeadingFourIcon.vue.d.ts +2 -0
  41. package/dist/adapters/tiptap/components/tiptap-icons/HeadingIcon.vue.d.ts +2 -0
  42. package/dist/adapters/tiptap/components/tiptap-icons/HeadingOneIcon.vue.d.ts +2 -0
  43. package/dist/adapters/tiptap/components/tiptap-icons/HeadingSixIcon.vue.d.ts +2 -0
  44. package/dist/adapters/tiptap/components/tiptap-icons/HeadingThreeIcon.vue.d.ts +2 -0
  45. package/dist/adapters/tiptap/components/tiptap-icons/HeadingTwoIcon.vue.d.ts +2 -0
  46. package/dist/adapters/tiptap/components/tiptap-icons/HighlighterIcon.vue.d.ts +2 -0
  47. package/dist/adapters/tiptap/components/tiptap-icons/ImagePlusIcon.vue.d.ts +2 -0
  48. package/dist/adapters/tiptap/components/tiptap-icons/ItalicIcon.vue.d.ts +2 -0
  49. package/dist/adapters/tiptap/components/tiptap-icons/LinkIcon.vue.d.ts +2 -0
  50. package/dist/adapters/tiptap/components/tiptap-icons/ListIcon.vue.d.ts +2 -0
  51. package/dist/adapters/tiptap/components/tiptap-icons/ListOrderedIcon.vue.d.ts +2 -0
  52. package/dist/adapters/tiptap/components/tiptap-icons/ListTodoIcon.vue.d.ts +2 -0
  53. package/dist/adapters/tiptap/components/tiptap-icons/RedoIcon.vue.d.ts +2 -0
  54. package/dist/adapters/tiptap/components/tiptap-icons/StrikeIcon.vue.d.ts +2 -0
  55. package/dist/adapters/tiptap/components/tiptap-icons/SubscriptIcon.vue.d.ts +2 -0
  56. package/dist/adapters/tiptap/components/tiptap-icons/SuperscriptIcon.vue.d.ts +2 -0
  57. package/dist/adapters/tiptap/components/tiptap-icons/TableIcon.vue.d.ts +2 -0
  58. package/dist/adapters/tiptap/components/tiptap-icons/TrashIcon.vue.d.ts +2 -0
  59. package/dist/adapters/tiptap/components/tiptap-icons/UnderlineIcon.vue.d.ts +2 -0
  60. package/dist/adapters/tiptap/components/tiptap-icons/UndoIcon.vue.d.ts +2 -0
  61. package/dist/adapters/tiptap/components/undo-redo-button/UndoRedoButton.vue.d.ts +30 -0
  62. package/dist/adapters/tiptap/composables/useMenuNavigation.d.ts +18 -0
  63. package/dist/adapters/tiptap/composables/useScrollDetector.d.ts +8 -0
  64. package/dist/adapters/tiptap/extensions/attachment.d.ts +2 -0
  65. package/dist/adapters/tiptap/extensions/file-upload-node/file-upload-node-extension.d.ts +80 -0
  66. package/dist/adapters/tiptap/extensions/file-upload-node/index.d.ts +1 -0
  67. package/dist/adapters/tiptap/extensions/signature.d.ts +2 -0
  68. package/dist/adapters/tiptap/extensions/table/index.d.ts +2 -0
  69. package/dist/adapters/tiptap/utils/tiptap-utils.d.ts +122 -0
  70. package/dist/components/Button.vue.d.ts +102 -0
  71. package/dist/components/ColorPicker.vue.d.ts +17 -0
  72. package/dist/components/Copiable.vue.d.ts +8 -0
  73. package/dist/components/DatePicker.vue.d.ts +11 -0
  74. package/dist/components/DropdownMenu.vue.d.ts +108 -0
  75. package/dist/components/DropdownMenuItem.vue.d.ts +50 -0
  76. package/dist/components/Error.vue.d.ts +16 -0
  77. package/dist/components/ExpansionPanel.vue.d.ts +58 -0
  78. package/dist/components/FileUpload.vue.d.ts +13 -0
  79. package/dist/components/IconWithText.vue.d.ts +149 -0
  80. package/dist/components/ImageCropper.vue.d.ts +73 -0
  81. package/dist/components/Input.vue.d.ts +51 -0
  82. package/dist/components/InputDropdown.vue.d.ts +16 -0
  83. package/dist/components/InputDropdownMultiple.vue.d.ts +16 -0
  84. package/dist/components/InputGroup.vue.d.ts +15 -0
  85. package/dist/components/InputList.vue.d.ts +20 -0
  86. package/dist/components/InputWithList/DropdownList.vue.d.ts +90 -0
  87. package/dist/components/InputWithList/MultipleInput.vue.d.ts +87 -0
  88. package/dist/components/InputWithList/SingleInput.vue.d.ts +48 -0
  89. package/dist/components/InputWithList/TagItem.vue.d.ts +33 -0
  90. package/dist/components/InputWithList/configs/input-with-list.config.d.ts +8 -0
  91. package/dist/components/InputWithList.vue.d.ts +165 -0
  92. package/dist/components/LineChart.vue.d.ts +9 -0
  93. package/dist/components/Modal.vue.d.ts +118 -0
  94. package/dist/components/Notification.vue.d.ts +195 -0
  95. package/dist/components/PasswordField.vue.d.ts +62 -0
  96. package/dist/components/RadioBox.vue.d.ts +9 -0
  97. package/dist/components/RadioBoxGroup.vue.d.ts +8 -0
  98. package/dist/components/SearchInput.vue.d.ts +36 -0
  99. package/dist/components/Stepper.vue.d.ts +23 -0
  100. package/dist/components/Tag.vue.d.ts +48 -0
  101. package/dist/components/Tags.vue.d.ts +91 -0
  102. package/dist/components/TextEditor.vue.d.ts +81 -0
  103. package/dist/components/TextEditorLegacy.vue.d.ts +40 -0
  104. package/dist/components/VerificationCode.vue.d.ts +45 -0
  105. package/dist/components/configs/input-with-list.config.d.ts +8 -0
  106. package/dist/dh_ui.es.js +39583 -18005
  107. package/dist/dh_ui.umd.js +353 -84
  108. package/dist/factories/EditorFactory.d.ts +19 -0
  109. package/dist/helpers/inputWithListUtils.d.ts +4 -0
  110. package/dist/index.d.ts +39 -0
  111. package/dist/main.d.ts +1 -0
  112. package/dist/models/DropdownMenuItem.model.d.ts +13 -0
  113. package/dist/models/EditorJSi18n.model.d.ts +109 -0
  114. package/dist/models/EditorTransformer.d.ts +5 -0
  115. package/dist/models/InputDropdown.model.d.ts +4 -0
  116. package/dist/models/InputList.model.d.ts +4 -0
  117. package/dist/models/InputWithList.model.d.ts +1 -0
  118. package/dist/models/Tag.model.d.ts +7 -0
  119. package/dist/style.css +1 -1
  120. package/dist/tools/editorCode.d.ts +21 -0
  121. package/package.json +14 -1
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,30 @@
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;
@@ -0,0 +1,18 @@
1
+ import type { Ref } from "vue";
2
+ import type { Editor } from "@tiptap/vue-3";
3
+ type Orientation = "horizontal" | "vertical" | "both";
4
+ interface MenuNavigationOptions<T> {
5
+ editor?: Editor | null;
6
+ containerRef?: Ref<HTMLElement | null>;
7
+ query?: string;
8
+ items: Ref<T[]>;
9
+ onSelect?: (item: T) => void;
10
+ onClose?: () => void;
11
+ orientation?: Orientation;
12
+ autoSelectFirstItem?: boolean;
13
+ }
14
+ export declare function useMenuNavigation<T>({ editor, containerRef, query, items, onSelect, onClose, orientation, autoSelectFirstItem, }: MenuNavigationOptions<T>): {
15
+ selectedIndex: import("vue").ComputedRef<number | undefined>;
16
+ setSelectedIndex: (i: number) => number;
17
+ };
18
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare function useScrollDetector(): {
2
+ wrapperRef: import("vue").Ref<unknown>;
3
+ toolbarRef: import("vue").Ref<unknown>;
4
+ sentinelRef: import("vue").Ref<unknown>;
5
+ toolbarStyle: import("vue").Ref<Record<string, string>>;
6
+ wrapperStyle: import("vue").Ref<Record<string, string>>;
7
+ isFloating: import("vue").Ref<boolean>;
8
+ };
@@ -0,0 +1,2 @@
1
+ import { Node } from "@tiptap/core";
2
+ export declare const Attachment: Node<any, any>;
@@ -0,0 +1,80 @@
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;
@@ -0,0 +1 @@
1
+ export * from "./file-upload-node-extension";
@@ -0,0 +1,2 @@
1
+ import { Node } from "@tiptap/core";
2
+ export declare const Signature: Node<any, any>;
@@ -0,0 +1,2 @@
1
+ export declare const CustomTableKit: import("@tiptap/core").Extension<import("@tiptap/extension-table").TableKitOptions, any>;
2
+ export default CustomTableKit;
@@ -0,0 +1,122 @@
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 {};
@@ -0,0 +1,102 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ size: {
3
+ type: StringConstructor;
4
+ required: false;
5
+ default: string;
6
+ };
7
+ color: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ default: string;
11
+ };
12
+ customColor: {
13
+ type: StringConstructor;
14
+ required: false;
15
+ default: string;
16
+ };
17
+ disabled: {
18
+ type: BooleanConstructor;
19
+ required: false;
20
+ default: boolean;
21
+ };
22
+ loading: {
23
+ type: BooleanConstructor;
24
+ required: false;
25
+ default: boolean;
26
+ };
27
+ icon: {
28
+ type: StringConstructor;
29
+ required: false;
30
+ default: string;
31
+ };
32
+ backgroundColor: {
33
+ type: StringConstructor;
34
+ required: false;
35
+ default: string;
36
+ };
37
+ textColor: {
38
+ type: StringConstructor;
39
+ required: false;
40
+ default: string;
41
+ };
42
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ size: {
44
+ type: StringConstructor;
45
+ required: false;
46
+ default: string;
47
+ };
48
+ color: {
49
+ type: StringConstructor;
50
+ required: false;
51
+ default: string;
52
+ };
53
+ customColor: {
54
+ type: StringConstructor;
55
+ required: false;
56
+ default: string;
57
+ };
58
+ disabled: {
59
+ type: BooleanConstructor;
60
+ required: false;
61
+ default: boolean;
62
+ };
63
+ loading: {
64
+ type: BooleanConstructor;
65
+ required: false;
66
+ default: boolean;
67
+ };
68
+ icon: {
69
+ type: StringConstructor;
70
+ required: false;
71
+ default: string;
72
+ };
73
+ backgroundColor: {
74
+ type: StringConstructor;
75
+ required: false;
76
+ default: string;
77
+ };
78
+ textColor: {
79
+ type: StringConstructor;
80
+ required: false;
81
+ default: string;
82
+ };
83
+ }>>, {
84
+ size: string;
85
+ customColor: string;
86
+ icon: string;
87
+ color: string;
88
+ disabled: boolean;
89
+ backgroundColor: string;
90
+ loading: boolean;
91
+ textColor: string;
92
+ }, {}>, {
93
+ "prepend-icon"?(_: {}): any;
94
+ default?(_: {}): any;
95
+ "append-icon"?(_: {}): any;
96
+ }>;
97
+ export default _default;
98
+ type __VLS_WithTemplateSlots<T, S> = T & {
99
+ new (): {
100
+ $slots: S;
101
+ };
102
+ };
@@ -0,0 +1,17 @@
1
+ import "vue3-colorpicker/style.css";
2
+ declare const _default: import("vue").DefineComponent<{
3
+ pureColor: {
4
+ type: import("vue").PropType<string>;
5
+ required: true;
6
+ };
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "update:pure-color": (color: string) => void;
9
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
+ pureColor: {
11
+ type: import("vue").PropType<string>;
12
+ required: true;
13
+ };
14
+ }>> & {
15
+ "onUpdate:pure-color"?: ((color: string) => any) | undefined;
16
+ }, {}, {}>;
17
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ $props: {
3
+ readonly text?: string | undefined;
4
+ readonly placement?: string | undefined;
5
+ readonly readonly?: boolean | undefined;
6
+ };
7
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
8
+ export default _default;
@@ -0,0 +1,11 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ $props: {
3
+ readonly range?: boolean | undefined;
4
+ readonly enableTimePicker?: boolean | undefined;
5
+ readonly multiCalendars?: boolean | undefined;
6
+ readonly multiCalendarsSolo?: boolean | undefined;
7
+ readonly inline?: boolean | undefined;
8
+ };
9
+ $emit: (event: "update", ...args: any[]) => void;
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
11
+ export default _default;
@@ -0,0 +1,108 @@
1
+ import type DropdownMenuItem from "../models/DropdownMenuItem.model";
2
+ import { type PropType } from "vue";
3
+ declare const _default: import("vue").DefineComponent<{
4
+ items: {
5
+ type: PropType<DropdownMenuItem[]>;
6
+ required: true;
7
+ };
8
+ textEllipsisStyle: {
9
+ type: StringConstructor;
10
+ required: false;
11
+ default: string;
12
+ validator: (value: string) => boolean;
13
+ };
14
+ iconSize: {
15
+ type: NumberConstructor;
16
+ required: false;
17
+ default: number;
18
+ };
19
+ closeOnClickOutside: {
20
+ type: BooleanConstructor;
21
+ required: false;
22
+ default: boolean;
23
+ };
24
+ zIndex: {
25
+ type: NumberConstructor;
26
+ required: false;
27
+ default: number;
28
+ };
29
+ closeOnItemSelected: {
30
+ type: BooleanConstructor;
31
+ required: false;
32
+ default: boolean;
33
+ };
34
+ width: {
35
+ type: StringConstructor;
36
+ required: false;
37
+ default: string;
38
+ };
39
+ minWidth: {
40
+ type: StringConstructor;
41
+ required: false;
42
+ default: string;
43
+ };
44
+ maxWidth: {
45
+ type: StringConstructor;
46
+ required: false;
47
+ default: string;
48
+ };
49
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "itemSelected")[], "close" | "itemSelected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
50
+ items: {
51
+ type: PropType<DropdownMenuItem[]>;
52
+ required: true;
53
+ };
54
+ textEllipsisStyle: {
55
+ type: StringConstructor;
56
+ required: false;
57
+ default: string;
58
+ validator: (value: string) => boolean;
59
+ };
60
+ iconSize: {
61
+ type: NumberConstructor;
62
+ required: false;
63
+ default: number;
64
+ };
65
+ closeOnClickOutside: {
66
+ type: BooleanConstructor;
67
+ required: false;
68
+ default: boolean;
69
+ };
70
+ zIndex: {
71
+ type: NumberConstructor;
72
+ required: false;
73
+ default: number;
74
+ };
75
+ closeOnItemSelected: {
76
+ type: BooleanConstructor;
77
+ required: false;
78
+ default: boolean;
79
+ };
80
+ width: {
81
+ type: StringConstructor;
82
+ required: false;
83
+ default: string;
84
+ };
85
+ minWidth: {
86
+ type: StringConstructor;
87
+ required: false;
88
+ default: string;
89
+ };
90
+ maxWidth: {
91
+ type: StringConstructor;
92
+ required: false;
93
+ default: string;
94
+ };
95
+ }>> & {
96
+ onClose?: ((...args: any[]) => any) | undefined;
97
+ onItemSelected?: ((...args: any[]) => any) | undefined;
98
+ }, {
99
+ width: string;
100
+ zIndex: number;
101
+ maxWidth: string;
102
+ textEllipsisStyle: string;
103
+ iconSize: number;
104
+ closeOnClickOutside: boolean;
105
+ closeOnItemSelected: boolean;
106
+ minWidth: string;
107
+ }, {}>;
108
+ export default _default;
@@ -0,0 +1,50 @@
1
+ import type DropdownMenuItem from "../models/DropdownMenuItem.model";
2
+ import { type PropType } from "vue";
3
+ declare const _default: import("vue").DefineComponent<{
4
+ item: {
5
+ type: PropType<DropdownMenuItem>;
6
+ required: true;
7
+ };
8
+ textEllipsisStyle: {
9
+ type: StringConstructor;
10
+ required: false;
11
+ default: string;
12
+ validator: (value: string) => boolean;
13
+ };
14
+ iconSize: {
15
+ type: NumberConstructor;
16
+ required: false;
17
+ default: number;
18
+ };
19
+ maxWidth: {
20
+ type: StringConstructor;
21
+ required: false;
22
+ default: string;
23
+ };
24
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ item: {
26
+ type: PropType<DropdownMenuItem>;
27
+ required: true;
28
+ };
29
+ textEllipsisStyle: {
30
+ type: StringConstructor;
31
+ required: false;
32
+ default: string;
33
+ validator: (value: string) => boolean;
34
+ };
35
+ iconSize: {
36
+ type: NumberConstructor;
37
+ required: false;
38
+ default: number;
39
+ };
40
+ maxWidth: {
41
+ type: StringConstructor;
42
+ required: false;
43
+ default: string;
44
+ };
45
+ }>>, {
46
+ maxWidth: string;
47
+ textEllipsisStyle: string;
48
+ iconSize: number;
49
+ }, {}>;
50
+ export default _default;
@@ -0,0 +1,16 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ errors: {
3
+ type: () => string[] | undefined;
4
+ required: false;
5
+ default: undefined;
6
+ };
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ errors: {
9
+ type: () => string[] | undefined;
10
+ required: false;
11
+ default: undefined;
12
+ };
13
+ }>>, {
14
+ errors: string[] | undefined;
15
+ }, {}>;
16
+ export default _default;