@deskhero/dh_ui 2.49.9 → 2.50.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 (49) hide show
  1. package/dist/adapters/editorjs/EditorjsView.vue.d.ts +72 -0
  2. package/dist/adapters/tiptap/components/TextAlignButton.vue.d.ts +10 -4
  3. package/dist/adapters/tiptap/components/ToolbarGroup.vue.d.ts +10 -7
  4. package/dist/adapters/tiptap/components/button/ButtonGroup.vue.d.ts +22 -9
  5. package/dist/adapters/tiptap/components/tiptap-icons/HeadingFiveIcon.vue.d.ts +1 -1
  6. package/dist/adapters/tiptap/components/tiptap-icons/HeadingSixIcon.vue.d.ts +1 -1
  7. package/dist/components/ColorPicker.vue.d.ts +13 -7
  8. package/dist/components/IconWithText.vue.d.ts +149 -0
  9. package/dist/components/ImageCropper.vue.d.ts +10 -10
  10. package/dist/components/InputWithList/DropdownList.vue.d.ts +6 -8
  11. package/dist/components/InputWithList/MultipleInput.vue.d.ts +9 -18
  12. package/dist/components/InputWithList/SingleInput.vue.d.ts +8 -14
  13. package/dist/components/InputWithList/TagItem.vue.d.ts +5 -7
  14. package/dist/components/InputWithList.vue.d.ts +14 -25
  15. package/dist/components/LineChart.vue.d.ts +1 -5
  16. package/dist/components/Tags.vue.d.ts +7 -53
  17. package/dist/components/TextEditorLegacy.vue.d.ts +6 -25
  18. package/dist/dh_ui.es.js +22863 -22858
  19. package/dist/dh_ui.umd.js +358 -142
  20. package/dist/style.css +4 -4
  21. package/package.json +6 -4
  22. package/dist/adapters/editorjs/EditorjsTransformer.d.ts +0 -3
  23. package/dist/adapters/tiptap/SimpleTemplate.vue.d.ts +0 -17
  24. package/dist/adapters/tiptap/TiptapTransformer.d.ts +0 -3
  25. package/dist/adapters/tiptap/TiptapView.vue.d.ts +0 -22
  26. package/dist/adapters/tiptap/components/ColorHighlightDropdown.vue.d.ts +0 -2
  27. package/dist/adapters/tiptap/components/FileUploadButton.vue.d.ts +0 -7
  28. package/dist/adapters/tiptap/components/ImageUploadButton.vue.d.ts +0 -7
  29. package/dist/adapters/tiptap/components/Input.vue.d.ts +0 -10
  30. package/dist/adapters/tiptap/components/LinkDropdown.vue.d.ts +0 -2
  31. package/dist/adapters/tiptap/components/MarkButton.vue.d.ts +0 -6
  32. package/dist/adapters/tiptap/components/TextAlignDropdown.vue.d.ts +0 -2
  33. package/dist/adapters/tiptap/components/tiptap-icons/AlignCenterIcon.vue.d.ts +0 -2
  34. package/dist/adapters/tiptap/components/tiptap-icons/AlignJustifyIcon.vue.d.ts +0 -2
  35. package/dist/adapters/tiptap/components/tiptap-icons/AlignLeftIcon.vue.d.ts +0 -2
  36. package/dist/adapters/tiptap/components/tiptap-icons/AlignRightIcon.vue.d.ts +0 -2
  37. package/dist/adapters/tiptap/components/tiptap-icons/BanIcon.vue.d.ts +0 -2
  38. package/dist/adapters/tiptap/components/tiptap-icons/CornerDownLeftIcon.vue.d.ts +0 -2
  39. package/dist/adapters/tiptap/components/tiptap-icons/ExternalLinkIcon.vue.d.ts +0 -2
  40. package/dist/adapters/tiptap/components/tiptap-icons/FileIcon.vue.d.ts +0 -2
  41. package/dist/adapters/tiptap/components/tiptap-icons/HighlighterIcon.vue.d.ts +0 -2
  42. package/dist/adapters/tiptap/components/tiptap-icons/ImagePlusIcon.vue.d.ts +0 -2
  43. package/dist/adapters/tiptap/components/tiptap-icons/LinkIcon.vue.d.ts +0 -2
  44. package/dist/adapters/tiptap/components/tiptap-icons/TrashIcon.vue.d.ts +0 -2
  45. package/dist/adapters/tiptap/composables/useScrollDetector.d.ts +0 -8
  46. package/dist/components/TextEditor.vue.d.ts +0 -39
  47. package/dist/components/VerificationCode.vue.d.ts +0 -47
  48. package/dist/factories/EditorFactory.d.ts +0 -19
  49. package/dist/models/EditorTransformer.d.ts +0 -5
package/package.json CHANGED
@@ -5,13 +5,13 @@
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "provenance": false
7
7
  },
8
- "version": "2.49.9",
8
+ "version": "2.50.0",
9
9
  "files": [
10
10
  "dist"
11
11
  ],
12
12
  "main": "dist/dh_ui.umd.js",
13
13
  "module": "dist/dh_ui.es.js",
14
- "types": "dist/index.d.ts",
14
+ "types": "dist/src/index.d.ts",
15
15
  "declaration": true,
16
16
  "declarationDir": "./models",
17
17
  "exports": {
@@ -79,6 +79,8 @@
79
79
  "@rushstack/eslint-patch": "^1.1.0",
80
80
  "@semantic-release/changelog": "^6.0.1",
81
81
  "@semantic-release/git": "^10.0.1",
82
+ "@semantic-release/npm": "^12.0.0",
83
+ "@semantic-release/release-notes-generator": "^12.0.0",
82
84
  "@storybook/addon-actions": "^7.5.1",
83
85
  "@storybook/addon-essentials": "^7.5.1",
84
86
  "@storybook/addon-interactions": "^7.5.1",
@@ -120,10 +122,10 @@
120
122
  "semantic-release": "^23.0.8",
121
123
  "storybook": "^7.5.1",
122
124
  "style-loader": "^3.3.1",
123
- "typescript": "5.6.2",
125
+ "typescript": "^5.0.4",
124
126
  "vite": "^4.4.2",
125
127
  "vue-loader": "^16.8.3",
126
- "vue-tsc": "^2.0.29"
128
+ "vue-tsc": "^1.2.0"
127
129
  },
128
130
  "engines": {
129
131
  "node": ">=20.11.1",
@@ -1,3 +0,0 @@
1
- import { SysContentRich } from "@/models/Editor.model";
2
- import { EditorTransformer } from "@/models/EditorTransformer";
3
- export declare const EditorjsTransformer: EditorTransformer<SysContentRich>;
@@ -1,17 +0,0 @@
1
- import type { EditorI18n } from "@/models/Editor.model";
2
- declare const _default: import("vue").DefineComponent<{
3
- readOnly?: boolean;
4
- isOverlayVisible?: boolean;
5
- i18n?: EditorI18n;
6
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
- "accept-suggestion": () => any;
8
- "dismiss-suggestion": () => any;
9
- }, string, import("vue").PublicProps, Readonly<{
10
- readOnly?: boolean;
11
- isOverlayVisible?: boolean;
12
- i18n?: EditorI18n;
13
- }> & Readonly<{
14
- "onAccept-suggestion"?: (() => any) | undefined;
15
- "onDismiss-suggestion"?: (() => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
- export default _default;
@@ -1,3 +0,0 @@
1
- import { EditorTransformer } from "@/models/EditorTransformer";
2
- import type { JSONContent } from "@tiptap/vue-3";
3
- export declare const TiptapTransformer: EditorTransformer<JSONContent>;
@@ -1,22 +0,0 @@
1
- import type { EditorViewProps } from "@/models/EditorView.model";
2
- import { SysAttachment } from "@/models/Editor.model";
3
- import { FileRegistration, UploadEventPayload } from "@/models/UploadedFile.model";
4
- import type { JSONContent } from "@tiptap/vue-3";
5
- declare const _default: import("vue").DefineComponent<EditorViewProps<JSONContent>, {
6
- acceptSuggestion: () => void;
7
- registerFiles: (payload: FileRegistration) => void;
8
- isEmpty: () => boolean;
9
- insertSignature: (payload: JSONContent, att: SysAttachment[]) => void;
10
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
11
- "update:data": (value: JSONContent | JSONContent[] | undefined) => any;
12
- "update:attachments": (value: SysAttachment[]) => any;
13
- "file-upload": (val: UploadEventPayload) => any;
14
- }, string, import("vue").PublicProps, Readonly<EditorViewProps<JSONContent>> & Readonly<{
15
- "onUpdate:data"?: ((value: JSONContent | JSONContent[] | undefined) => any) | undefined;
16
- "onUpdate:attachments"?: ((value: SysAttachment[]) => any) | undefined;
17
- "onFile-upload"?: ((val: UploadEventPayload) => any) | undefined;
18
- }>, {
19
- readOnly: boolean;
20
- toolbarPosition: "left" | "right";
21
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import type { EditorI18n } from "@/models/Editor.model";
2
- declare const _default: import("vue").DefineComponent<{
3
- i18n?: EditorI18n;
4
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
5
- i18n?: EditorI18n;
6
- }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import type { EditorI18n } from "@/models/Editor.model";
2
- declare const _default: import("vue").DefineComponent<{
3
- i18n?: EditorI18n;
4
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
5
- i18n?: EditorI18n;
6
- }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,10 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- modelValue: string;
3
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
- "update:modelValue": (value: string) => any;
5
- }, string, import("vue").PublicProps, Readonly<{
6
- modelValue: string;
7
- }> & Readonly<{
8
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,6 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- type: "bold" | "italic" | "underline" | "strike" | "code" | "superscript" | "subscript";
3
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
4
- type: "bold" | "italic" | "underline" | "strike" | "code" | "superscript" | "subscript";
5
- }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,8 +0,0 @@
1
- export declare function useScrollDetector(): {
2
- wrapperRef: import("vue").Ref<unknown, unknown>;
3
- toolbarRef: import("vue").Ref<unknown, unknown>;
4
- sentinelRef: import("vue").Ref<unknown, unknown>;
5
- toolbarStyle: import("vue").Ref<Record<string, string>, Record<string, string>>;
6
- wrapperStyle: import("vue").Ref<Record<string, string>, Record<string, string>>;
7
- isFloating: import("vue").Ref<boolean, boolean>;
8
- };
@@ -1,39 +0,0 @@
1
- import type { SysContentRich, SysAttachment, EditorI18n } from "@/models/Editor.model";
2
- import { FileRegistration, UploadEventPayload } from "@/models/UploadedFile.model";
3
- declare const _default: import("vue").DefineComponent<{
4
- data: SysContentRich;
5
- attachments: SysAttachment[];
6
- readOnly?: boolean;
7
- i18n?: EditorI18n;
8
- suggestedReply?: SysContentRich;
9
- toolbarPosition?: "left" | "right";
10
- editorType?: "tiptap" | "editorjs";
11
- }, {
12
- registerFiles: (payload: FileRegistration) => void;
13
- insertSignature: (payload: SysContentRich, att: SysAttachment[]) => void;
14
- isEmpty: () => any;
15
- acceptSuggestion: () => void;
16
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
- "update:data": (val: SysContentRich) => any;
18
- "update:attachments": (value: SysAttachment[]) => any;
19
- "file-upload": (val: UploadEventPayload) => any;
20
- }, string, import("vue").PublicProps, Readonly<{
21
- data: SysContentRich;
22
- attachments: SysAttachment[];
23
- readOnly?: boolean;
24
- i18n?: EditorI18n;
25
- suggestedReply?: SysContentRich;
26
- toolbarPosition?: "left" | "right";
27
- editorType?: "tiptap" | "editorjs";
28
- }> & Readonly<{
29
- "onUpdate:data"?: ((val: SysContentRich) => any) | undefined;
30
- "onUpdate:attachments"?: ((value: SysAttachment[]) => any) | undefined;
31
- "onFile-upload"?: ((val: UploadEventPayload) => any) | undefined;
32
- }>, {
33
- i18n: EditorI18n;
34
- readOnly: boolean;
35
- toolbarPosition: "left" | "right";
36
- suggestedReply: SysContentRich;
37
- editorType: "tiptap" | "editorjs";
38
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
- export default _default;
@@ -1,47 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- code: {
3
- type: StringConstructor;
4
- required: false;
5
- default: string;
6
- };
7
- focusOnFirstInput: {
8
- type: BooleanConstructor;
9
- default: boolean;
10
- };
11
- focusOnFirstInputDelay: {
12
- type: NumberConstructor;
13
- default: number;
14
- };
15
- autoComplete: {
16
- type: StringConstructor;
17
- default: string;
18
- };
19
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
- submit: (...args: any[]) => void;
21
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
22
- code: {
23
- type: StringConstructor;
24
- required: false;
25
- default: string;
26
- };
27
- focusOnFirstInput: {
28
- type: BooleanConstructor;
29
- default: boolean;
30
- };
31
- focusOnFirstInputDelay: {
32
- type: NumberConstructor;
33
- default: number;
34
- };
35
- autoComplete: {
36
- type: StringConstructor;
37
- default: string;
38
- };
39
- }>> & Readonly<{
40
- onSubmit?: ((...args: any[]) => any) | undefined;
41
- }>, {
42
- code: string;
43
- autoComplete: string;
44
- focusOnFirstInput: boolean;
45
- focusOnFirstInputDelay: number;
46
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
47
- export default _default;
@@ -1,19 +0,0 @@
1
- import type { EditorViewComponent } from "@/models/EditorView.model";
2
- import { OutputData } from "@editorjs/editorjs";
3
- import { JSONContent } from "@tiptap/vue-3";
4
- export type EditorType = "editorjs" | "tiptap";
5
- declare const registry: {
6
- readonly editorjs: {
7
- readonly component: EditorViewComponent<OutputData>;
8
- readonly transformer: import("../models/EditorTransformer").EditorTransformer<import("../models/Editor.model").SysContentRich>;
9
- };
10
- readonly tiptap: {
11
- readonly component: EditorViewComponent<JSONContent>;
12
- readonly transformer: import("../models/EditorTransformer").EditorTransformer<JSONContent>;
13
- };
14
- };
15
- export declare function createEditor<T extends keyof typeof registry>(type: T): {
16
- component: EditorViewComponent<OutputData> | EditorViewComponent<JSONContent>;
17
- transformer: import("../models/EditorTransformer").EditorTransformer<import("../models/Editor.model").SysContentRich> | import("../models/EditorTransformer").EditorTransformer<JSONContent>;
18
- };
19
- export {};
@@ -1,5 +0,0 @@
1
- import { SysContentRich } from "./Editor.model";
2
- export interface EditorTransformer<TEditorData> {
3
- toEditorData: (sys: SysContentRich | undefined) => TEditorData;
4
- fromEditorData: (sys: SysContentRich, editorData: TEditorData) => SysContentRich;
5
- }