@voicenter-team/voicenter-ui-plus 3.4.7 → 3.4.8
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/README.md +558 -558
- package/library/assets/assets/sass/main.css +1 -1
- package/library/assets/components/VcChatComposer/VcChatComposer.css +1 -1
- package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
- package/library/assets/components/VcMessage/VcMessage.css +1 -1
- package/library/assets/components/VcMessage/VcMessageMeta.css +1 -0
- package/library/assets/components/VcMessage/content/VcMessageVideoBlock.css +1 -0
- package/library/assets/components/VcMessagesWrapper/VcMessagesWrapper.css +1 -1
- package/library/components/VcChatComposer/VcChatComposer.vue.mjs +38 -27
- package/library/components/VcChatComposer/richText.mjs +8 -0
- package/library/components/VcCheckbox/VcCheckbox.vue.mjs +1 -1
- package/library/components/VcCheckbox/VcCheckboxButton.vue.mjs +1 -1
- package/library/components/VcDatePicker/VcDatePicker.vue.mjs +1 -1
- package/library/components/VcDropdown/VcDropdownItem.vue.mjs +1 -1
- package/library/components/VcExcelUploader/VcExcelFileUploader.vue.mjs +1 -0
- package/library/components/VcExcelUploader/VcFileImportResultBindData.vue.mjs +1 -1
- package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
- package/library/components/VcForm/VcForm.vue.mjs +1 -1
- package/library/components/VcForm/VcFormItem.vue.mjs +1 -1
- package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +1 -1
- package/library/components/VcInput/VcInput.vue.mjs +1 -1
- package/library/components/VcMdEditor/VcMdEditor.vue.mjs +1 -1
- package/library/components/VcMdEditor/VcMdEditorToolbar.vue.mjs +1 -1
- package/library/components/VcMessage/VcMessage.vue.mjs +65 -40
- package/library/components/VcMessage/VcMessageMeta.vue.mjs +49 -0
- package/library/components/VcMessage/VcMessageMeta.vue3.mjs +5 -0
- package/library/components/VcMessage/content/VcMessageAudioBlock.vue.mjs +3 -9
- package/library/components/VcMessage/content/VcMessageImageBlock.vue.mjs +1 -1
- package/library/components/VcMessage/content/VcMessageVideoBlock.vue.mjs +60 -0
- package/library/components/VcMessage/content/VcMessageVideoBlock.vue3.mjs +5 -0
- package/library/components/VcMessage/content/formatDuration.mjs +10 -0
- package/library/components/VcMessage/content/messageContentComponents.mjs +8 -5
- package/library/components/VcMessage/reactions/VcMessageReactionBar.vue.mjs +1 -1
- package/library/components/VcMessagesWrapper/VcMessagesWrapper.vue.mjs +167 -63
- package/library/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.mjs +83 -0
- package/library/components/VcMessagesWrapper/VcMessagesWrapperRow.vue2.mjs +4 -0
- package/library/components/VcRadio/VcRadio.vue.mjs +1 -1
- package/library/components/VcSelect/VcSelect.vue.mjs +1 -1
- package/library/components/VcSlider/VcSlider.vue.mjs +1 -1
- package/library/index.mjs.gz +0 -0
- package/library/localization/index.mjs.gz +0 -0
- package/library/localization/locales/en.json.mjs +8 -1
- package/library/plugin.mjs.gz +0 -0
- package/library/style.css +9 -5
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/theme/index.mjs.gz +0 -0
- package/library/types/components/VcChatComposer/VcChatComposer.vue.d.ts +29 -2
- package/library/types/components/VcExcelUploader/VcExcelFileUploader.vue.d.ts +1 -2
- package/library/types/components/VcMessage/VcMessage.vue.d.ts +20 -2
- package/library/types/components/VcMessage/VcMessageMeta.vue.d.ts +24 -0
- package/library/types/components/VcMessage/content/VcMessageVideoBlock.vue.d.ts +24 -0
- package/library/types/components/VcMessage/content/formatDuration.d.ts +4 -0
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapper.vue.d.ts +20 -2
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.d.ts +49 -0
- package/library/types/components/VcModal/VcConfirmModal.vue.d.ts +1 -1
- package/library/types/localization/locales/en.json.d.ts +194 -187
- package/library/types/types/VcChatComposer.types.d.ts +3 -2
- package/library/types/types/VcMessage.types.d.ts +48 -3
- package/library/types/types/VcMessagesWrapper.types.d.ts +30 -1
- package/library/utils/jsonSchema/index.mjs.gz +0 -0
- package/package.json +215 -215
- package/tailwind.config.js +192 -192
- /package/library/assets/node_modules/element-plus/theme-chalk/src/{date-picker.css → tooltip.css} +0 -0
|
@@ -45,7 +45,13 @@ export interface VcMessageReaction {
|
|
|
45
45
|
*/
|
|
46
46
|
users?: Array<string>;
|
|
47
47
|
}
|
|
48
|
-
export type VcMessageContentType = 'text' | 'image' | 'audio' | 'file';
|
|
48
|
+
export type VcMessageContentType = 'text' | 'image' | 'video' | 'audio' | 'file';
|
|
49
|
+
/**
|
|
50
|
+
* Delivery status of a message, usually set for own messages only:
|
|
51
|
+
* `pending` — being sent, `sent` — accepted by the server, `delivered` — reached the recipient,
|
|
52
|
+
* `read` — seen by the recipient, `failed` — not sent.
|
|
53
|
+
*/
|
|
54
|
+
export type VcMessageStatus = 'pending' | 'sent' | 'delivered' | 'read' | 'failed';
|
|
49
55
|
export interface VcTextMessageContent {
|
|
50
56
|
type: 'text';
|
|
51
57
|
text: string;
|
|
@@ -59,6 +65,31 @@ export interface VcImageMessageContent {
|
|
|
59
65
|
*/
|
|
60
66
|
width?: number;
|
|
61
67
|
height?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Text shown under the image; also used by the reply preview.
|
|
70
|
+
*/
|
|
71
|
+
caption?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface VcVideoMessageContent {
|
|
74
|
+
type: 'video';
|
|
75
|
+
url: string;
|
|
76
|
+
/**
|
|
77
|
+
* Image shown until the video is played.
|
|
78
|
+
*/
|
|
79
|
+
poster?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Natural size in px. Reserves the space before the video loads, so the chat does not jump.
|
|
82
|
+
*/
|
|
83
|
+
width?: number;
|
|
84
|
+
height?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Duration in seconds, shown in the reply preview.
|
|
87
|
+
*/
|
|
88
|
+
duration?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Text shown under the video; also used by the reply preview.
|
|
91
|
+
*/
|
|
92
|
+
caption?: string;
|
|
62
93
|
}
|
|
63
94
|
export interface VcAudioMessageContent {
|
|
64
95
|
type: 'audio';
|
|
@@ -67,6 +98,10 @@ export interface VcAudioMessageContent {
|
|
|
67
98
|
* Duration in seconds, shown in the reply preview.
|
|
68
99
|
*/
|
|
69
100
|
duration?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Text shown under the player; also used by the reply preview.
|
|
103
|
+
*/
|
|
104
|
+
caption?: string;
|
|
70
105
|
}
|
|
71
106
|
export interface VcFileMessageContent {
|
|
72
107
|
type: 'file';
|
|
@@ -80,8 +115,13 @@ export interface VcFileMessageContent {
|
|
|
80
115
|
* Size in bytes.
|
|
81
116
|
*/
|
|
82
117
|
size?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Text shown under the file.
|
|
120
|
+
*/
|
|
121
|
+
caption?: string;
|
|
83
122
|
}
|
|
84
|
-
export type
|
|
123
|
+
export type VcMediaMessageContent = VcImageMessageContent | VcVideoMessageContent | VcAudioMessageContent | VcFileMessageContent;
|
|
124
|
+
export type VcMessageContent = VcTextMessageContent | VcMediaMessageContent;
|
|
85
125
|
export interface VcMessageReply {
|
|
86
126
|
author: string;
|
|
87
127
|
content: VcMessageContent;
|
|
@@ -117,9 +157,14 @@ export interface VcMessageProps {
|
|
|
117
157
|
*/
|
|
118
158
|
edited?: boolean;
|
|
119
159
|
/**
|
|
120
|
-
* Replaces the content with the "deleted" placeholder. Hides the reply, the edited label
|
|
160
|
+
* Replaces the content with the "deleted" placeholder. Hides the reply, the caption, the edited label,
|
|
161
|
+
* the status and the toolbar.
|
|
121
162
|
*/
|
|
122
163
|
deleted?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Delivery status icon in the bottom end corner, next to the "Edited" label.
|
|
166
|
+
*/
|
|
167
|
+
status?: VcMessageStatus;
|
|
123
168
|
/**
|
|
124
169
|
* Overrides the localized "Edited" label.
|
|
125
170
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VcMessageContent, VcMessageOption, VcMessageReaction, VcMessageReply } from './VcMessage.types';
|
|
1
|
+
import type { VcMessageContent, VcMessageOption, VcMessageReaction, VcMessageReply, VcMessageStatus } from './VcMessage.types';
|
|
2
2
|
export type VcChatMessageId = string | number;
|
|
3
3
|
export interface VcChatMessageSender {
|
|
4
4
|
/**
|
|
@@ -13,6 +13,10 @@ export interface VcChatMessageReply extends VcMessageReply {
|
|
|
13
13
|
*/
|
|
14
14
|
id?: VcChatMessageId;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Classes of a message row, in any form of the Vue `class` binding.
|
|
18
|
+
*/
|
|
19
|
+
export type VcChatMessageClass = string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
16
20
|
export interface VcChatMessage {
|
|
17
21
|
id: VcChatMessageId;
|
|
18
22
|
sender: VcChatMessageSender;
|
|
@@ -26,12 +30,21 @@ export interface VcChatMessage {
|
|
|
26
30
|
reactions?: Array<VcMessageReaction>;
|
|
27
31
|
isEdited?: boolean;
|
|
28
32
|
isDeleted?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Delivery status icon, usually set for own messages only.
|
|
35
|
+
*/
|
|
36
|
+
status?: VcMessageStatus;
|
|
37
|
+
/**
|
|
38
|
+
* Classes of the message row, e.g. to restyle a kind of messages through the `--vc-message-*` variables.
|
|
39
|
+
*/
|
|
40
|
+
class?: VcChatMessageClass;
|
|
29
41
|
}
|
|
30
42
|
export type VcChatMessageOptionsFn = (message: VcChatMessage) => Array<VcMessageOption>;
|
|
31
43
|
export type VcChatMessageAdditionalOptionsFn = (message: VcChatMessage) => Array<Array<VcMessageOption>>;
|
|
32
44
|
export interface VcMessagesWrapperProps {
|
|
33
45
|
/**
|
|
34
46
|
* Messages sorted by `createdAt`, oldest first.
|
|
47
|
+
* Keep the objects of unchanged messages: a message is re-rendered only when its object changes.
|
|
35
48
|
*/
|
|
36
49
|
messages: Array<VcChatMessage>;
|
|
37
50
|
/**
|
|
@@ -46,6 +59,11 @@ export interface VcMessagesWrapperProps {
|
|
|
46
59
|
* Emoji of the reaction picker, the same for every message.
|
|
47
60
|
*/
|
|
48
61
|
reactionEmojis?: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Id of the first unread message: the "New messages" divider is shown before it,
|
|
64
|
+
* and the wrapper starts scrolled to it instead of the bottom.
|
|
65
|
+
*/
|
|
66
|
+
unreadFromId?: VcChatMessageId | null;
|
|
49
67
|
/**
|
|
50
68
|
* Distance to the edge in px at which `reached-top` / `reached-bottom` are emitted.
|
|
51
69
|
*/
|
|
@@ -59,3 +77,14 @@ export interface VcMessagesWrapperProps {
|
|
|
59
77
|
*/
|
|
60
78
|
timeFormat?: string;
|
|
61
79
|
}
|
|
80
|
+
export interface VcMessagesWrapperScrollOptions {
|
|
81
|
+
behavior?: ScrollBehavior;
|
|
82
|
+
/**
|
|
83
|
+
* Where the element is placed in the visible area.
|
|
84
|
+
*/
|
|
85
|
+
block?: 'start' | 'center' | 'end';
|
|
86
|
+
/**
|
|
87
|
+
* Space in px kept between the element and the edge, for `start` and `end`.
|
|
88
|
+
*/
|
|
89
|
+
offset?: number;
|
|
90
|
+
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,215 +1,215 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@voicenter-team/voicenter-ui-plus",
|
|
3
|
-
"version": "3.4.
|
|
4
|
-
"scripts": {
|
|
5
|
-
"dev": "vite",
|
|
6
|
-
"build": "vite build",
|
|
7
|
-
"analyze": "cross-env ANALYZE=true vite build",
|
|
8
|
-
"build:documentation": "npm run build && cross-env TARGET=doc vite build",
|
|
9
|
-
"ts-check": "vue-tsc --noEmit -p tsconfig.prod.json",
|
|
10
|
-
"ts-check-all": "vue-tsc --noEmit",
|
|
11
|
-
"generate-icon-list": "node ./script/generate/generateIconList.js",
|
|
12
|
-
"generate:entries": "node ./script/generate-entries.mjs",
|
|
13
|
-
"verify:entries": "node ./script/verify-entries.mjs",
|
|
14
|
-
"preview": "vite preview",
|
|
15
|
-
"test": "vitest",
|
|
16
|
-
"test:ui": "vitest --ui",
|
|
17
|
-
"test:coverage": "vitest run --coverage",
|
|
18
|
-
"test:coverage:watch": "vitest --coverage",
|
|
19
|
-
"test:coverage:ui": "vitest --coverage --ui",
|
|
20
|
-
"upload-icons": "node ./script/icons-publish/index.js",
|
|
21
|
-
"scan-for-remote": "npm run build && node ./script/scan-for-remote-sources.js",
|
|
22
|
-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts --fix --ignore-path .gitignore",
|
|
23
|
-
"mcp:install": "cd mcp-server && npm install",
|
|
24
|
-
"mcp:generate": "cd mcp-server && npm run generate:all",
|
|
25
|
-
"mcp:dev": "cd mcp-server && npm run dev",
|
|
26
|
-
"mcp:build": "cd mcp-server && npm run build",
|
|
27
|
-
"mcp:start": "cd mcp-server && npm start",
|
|
28
|
-
"release": "npm ci && npm run build && npm publish",
|
|
29
|
-
"prepare": "husky"
|
|
30
|
-
},
|
|
31
|
-
"lint-staged": {
|
|
32
|
-
"*.{vue,js,jsx,cjs,mjs,ts}": "eslint --fix"
|
|
33
|
-
},
|
|
34
|
-
"main": "./library/index.mjs",
|
|
35
|
-
"module": "./library/index.mjs",
|
|
36
|
-
"types": "./library/types/index.d.ts",
|
|
37
|
-
"sideEffects": [
|
|
38
|
-
"**/*.css",
|
|
39
|
-
"./library/plugin.mjs"
|
|
40
|
-
],
|
|
41
|
-
"typesVersions": {
|
|
42
|
-
"*": {
|
|
43
|
-
"plugin": [
|
|
44
|
-
"./library/types/plugin.d.ts"
|
|
45
|
-
],
|
|
46
|
-
"services": [
|
|
47
|
-
"./library/types/services/index.d.ts"
|
|
48
|
-
],
|
|
49
|
-
"theme": [
|
|
50
|
-
"./library/types/theme/index.d.ts"
|
|
51
|
-
],
|
|
52
|
-
"font": [
|
|
53
|
-
"./library/types/font/index.d.ts"
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"exports": {
|
|
58
|
-
".": {
|
|
59
|
-
"types": "./library/types/index.d.ts",
|
|
60
|
-
"import": "./library/index.mjs",
|
|
61
|
-
"default": "./library/index.mjs"
|
|
62
|
-
},
|
|
63
|
-
"./plugin": {
|
|
64
|
-
"types": "./library/types/plugin.d.ts",
|
|
65
|
-
"import": "./library/plugin.mjs",
|
|
66
|
-
"default": "./library/plugin.mjs"
|
|
67
|
-
},
|
|
68
|
-
"./services": {
|
|
69
|
-
"types": "./library/types/services/index.d.ts",
|
|
70
|
-
"import": "./library/services/index.mjs",
|
|
71
|
-
"default": "./library/services/index.mjs"
|
|
72
|
-
},
|
|
73
|
-
"./theme": {
|
|
74
|
-
"types": "./library/types/theme/index.d.ts",
|
|
75
|
-
"import": "./library/theme/index.mjs",
|
|
76
|
-
"default": "./library/theme/index.mjs"
|
|
77
|
-
},
|
|
78
|
-
"./font": {
|
|
79
|
-
"types": "./library/types/font/index.d.ts",
|
|
80
|
-
"import": "./library/font/index.mjs",
|
|
81
|
-
"default": "./library/font/index.mjs"
|
|
82
|
-
},
|
|
83
|
-
"./style.css": "./library/style.css",
|
|
84
|
-
"./base.css": "./library/assets/assets/sass/main.css",
|
|
85
|
-
"./src/theme/*": "./src/theme/*",
|
|
86
|
-
"./src/theme/tailwindScheme": "./src/theme/tailwindScheme.js",
|
|
87
|
-
"./src/theme/themes.json": "./src/theme/themes.json",
|
|
88
|
-
"./tailwind.config": "./tailwind.config.js",
|
|
89
|
-
"./library/types/*": "./library/types/*.d.ts"
|
|
90
|
-
},
|
|
91
|
-
"files": [
|
|
92
|
-
"library",
|
|
93
|
-
"src/theme",
|
|
94
|
-
"tailwind.config.js",
|
|
95
|
-
"tailwind.config.d.ts"
|
|
96
|
-
],
|
|
97
|
-
"engines": {
|
|
98
|
-
"node": ">= 20"
|
|
99
|
-
},
|
|
100
|
-
"peerDependencies": {
|
|
101
|
-
"@codemirror/lang-html": "^6.0.0",
|
|
102
|
-
"@codemirror/lang-json": "^6.0.1",
|
|
103
|
-
"@codemirror/lang-markdown": "^6.0.0",
|
|
104
|
-
"@floating-ui/dom": "^1.8.0",
|
|
105
|
-
"@lucide/vue": "^1.16.0",
|
|
106
|
-
"@milkdown/crepe": "^7.15.5",
|
|
107
|
-
"@milkdown/kit": "^7.15.5",
|
|
108
|
-
"@milkdown/utils": "^7.15.5",
|
|
109
|
-
"@milkdown/vue": "^7.15.5",
|
|
110
|
-
"@prosemirror-adapter/vue": "^0.4.1",
|
|
111
|
-
"@tiptap/core": "^3.31.4",
|
|
112
|
-
"@tiptap/extension-bold": "^3.31.4",
|
|
113
|
-
"@tiptap/extension-code": "^3.31.4",
|
|
114
|
-
"@tiptap/extension-document": "^3.31.4",
|
|
115
|
-
"@tiptap/extension-italic": "^3.31.4",
|
|
116
|
-
"@tiptap/extension-mention": "^3.31.4",
|
|
117
|
-
"@tiptap/extension-paragraph": "^3.31.4",
|
|
118
|
-
"@tiptap/extension-strike": "^3.31.4",
|
|
119
|
-
"@tiptap/extension-text": "^3.31.4",
|
|
120
|
-
"@tiptap/extensions": "^3.31.4",
|
|
121
|
-
"@tiptap/pm": "^3.31.4",
|
|
122
|
-
"@tiptap/suggestion": "^3.31.4",
|
|
123
|
-
"@tiptap/vue-3": "^3.31.4",
|
|
124
|
-
"@vueuse/core": ">=10.7.2",
|
|
125
|
-
"codemirror": "^6.0.1",
|
|
126
|
-
"dayjs": "^1.11.19",
|
|
127
|
-
"element-plus": "^2.11.3",
|
|
128
|
-
"emojibase-data": "^17.0.0",
|
|
129
|
-
"highlight.js": "^11.6.0",
|
|
130
|
-
"libphonenumber-js": "^1.10.13",
|
|
131
|
-
"lodash-es": "^4.17.21",
|
|
132
|
-
"maska": "^3.2.0",
|
|
133
|
-
"pdfjs-dist": "^2.16.105",
|
|
134
|
-
"vue": "^3.5.13",
|
|
135
|
-
"vue-advanced-cropper": "^2.8.3",
|
|
136
|
-
"vue-codemirror6": "^1.3.12",
|
|
137
|
-
"wavesurfer.js": "^7.7.15",
|
|
138
|
-
"xlsx": "^0.18.5"
|
|
139
|
-
},
|
|
140
|
-
"devDependencies": {
|
|
141
|
-
"@codemirror/lang-json": "^6.0.1",
|
|
142
|
-
"@floating-ui/dom": "^1.8.0",
|
|
143
|
-
"@fullhuman/postcss-purgecss": "^7.0.2",
|
|
144
|
-
"@highlightjs/vue-plugin": "^2.1.0",
|
|
145
|
-
"@lucide/vue": "^1.16.0",
|
|
146
|
-
"@milkdown/crepe": "7.15.5",
|
|
147
|
-
"@milkdown/kit": "7.15.5",
|
|
148
|
-
"@milkdown/utils": "7.15.5",
|
|
149
|
-
"@milkdown/vue": "7.15.5",
|
|
150
|
-
"@prosemirror-adapter/vue": "^0.4.1",
|
|
151
|
-
"@tiptap/core": "^3.31.4",
|
|
152
|
-
"@tiptap/extension-bold": "^3.31.4",
|
|
153
|
-
"@tiptap/extension-code": "^3.31.4",
|
|
154
|
-
"@tiptap/extension-document": "^3.31.4",
|
|
155
|
-
"@tiptap/extension-italic": "^3.31.4",
|
|
156
|
-
"@tiptap/extension-mention": "^3.31.4",
|
|
157
|
-
"@tiptap/extension-paragraph": "^3.31.4",
|
|
158
|
-
"@tiptap/extension-strike": "^3.31.4",
|
|
159
|
-
"@tiptap/extension-text": "^3.31.4",
|
|
160
|
-
"@tiptap/extensions": "^3.31.4",
|
|
161
|
-
"@tiptap/pm": "^3.31.4",
|
|
162
|
-
"@tiptap/suggestion": "^3.31.4",
|
|
163
|
-
"@tiptap/vue-3": "^3.31.4",
|
|
164
|
-
"@types/json-schema": "^7.0.15",
|
|
165
|
-
"@types/lodash-es": "^4.17.12",
|
|
166
|
-
"@types/node": "^18.7.6",
|
|
167
|
-
"@types/wavesurfer.js": "^6.0.3",
|
|
168
|
-
"@types/webfontloader": "^1.6.38",
|
|
169
|
-
"@vitejs/plugin-vue": "5.2.4",
|
|
170
|
-
"@vitest/coverage-v8": "3.2.7",
|
|
171
|
-
"@vitest/ui": "3.2.7",
|
|
172
|
-
"@voicenter-team/aws-uploader": "^1.0.10",
|
|
173
|
-
"@voicenter-team/eslint-config-vue": "^1.0.21",
|
|
174
|
-
"@vue/server-renderer": "^3.5.13",
|
|
175
|
-
"@vue/test-utils": "^2.4.6",
|
|
176
|
-
"@vueuse/core": "10.7.2",
|
|
177
|
-
"autoprefixer": "10.4.17",
|
|
178
|
-
"axios": "^1.6.0",
|
|
179
|
-
"chalk": "4.1.2",
|
|
180
|
-
"codemirror": "^6.0.1",
|
|
181
|
-
"cross-env": "^7.0.3",
|
|
182
|
-
"dotenv": "^16.4.7",
|
|
183
|
-
"emojibase-data": "^17.0.0",
|
|
184
|
-
"eslint": "^8.57.1",
|
|
185
|
-
"eslint-plugin-standard": "^5.0.0",
|
|
186
|
-
"eslint-plugin-vue": "9.21.1",
|
|
187
|
-
"highlight.js": "^11.6.0",
|
|
188
|
-
"husky": "^9.1.7",
|
|
189
|
-
"jsdom": "^26.1.0",
|
|
190
|
-
"lint-staged": "^17.3.0",
|
|
191
|
-
"pdfjs-dist": "2.16.105",
|
|
192
|
-
"postcss": "8.5.24",
|
|
193
|
-
"readline-sync": "^1.4.10",
|
|
194
|
-
"sass": "1.93.3",
|
|
195
|
-
"tailwindcss": "^3.1.8",
|
|
196
|
-
"terser": "^5.44.0",
|
|
197
|
-
"typescript": "5.3.3",
|
|
198
|
-
"unplugin-element-plus": "^0.4.1",
|
|
199
|
-
"vite": "^5.4.6",
|
|
200
|
-
"vite-bundle-analyzer": "^0.15.2",
|
|
201
|
-
"vite-plugin-compression": "^0.5.1",
|
|
202
|
-
"vite-plugin-dts": "3.7.2",
|
|
203
|
-
"vite-plugin-inspect": "0.8.9",
|
|
204
|
-
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
205
|
-
"vite-plugin-static-copy": "0.17.1",
|
|
206
|
-
"vitest": "^3.2.4",
|
|
207
|
-
"vue-advanced-cropper": "^2.8.3",
|
|
208
|
-
"vue-codemirror6": "^1.3.12",
|
|
209
|
-
"vue-component-type-helpers": "^1.8.27",
|
|
210
|
-
"vue-router": "4.2.5",
|
|
211
|
-
"vue-tsc": "1.8.27",
|
|
212
|
-
"wavesurfer.js": "^7.7.15",
|
|
213
|
-
"xlsx": "0.18.5"
|
|
214
|
-
}
|
|
215
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@voicenter-team/voicenter-ui-plus",
|
|
3
|
+
"version": "3.4.8",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "vite",
|
|
6
|
+
"build": "vite build",
|
|
7
|
+
"analyze": "cross-env ANALYZE=true vite build",
|
|
8
|
+
"build:documentation": "npm run build && cross-env TARGET=doc vite build",
|
|
9
|
+
"ts-check": "vue-tsc --noEmit -p tsconfig.prod.json",
|
|
10
|
+
"ts-check-all": "vue-tsc --noEmit",
|
|
11
|
+
"generate-icon-list": "node ./script/generate/generateIconList.js",
|
|
12
|
+
"generate:entries": "node ./script/generate-entries.mjs",
|
|
13
|
+
"verify:entries": "node ./script/verify-entries.mjs",
|
|
14
|
+
"preview": "vite preview",
|
|
15
|
+
"test": "vitest",
|
|
16
|
+
"test:ui": "vitest --ui",
|
|
17
|
+
"test:coverage": "vitest run --coverage",
|
|
18
|
+
"test:coverage:watch": "vitest --coverage",
|
|
19
|
+
"test:coverage:ui": "vitest --coverage --ui",
|
|
20
|
+
"upload-icons": "node ./script/icons-publish/index.js",
|
|
21
|
+
"scan-for-remote": "npm run build && node ./script/scan-for-remote-sources.js",
|
|
22
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts --fix --ignore-path .gitignore",
|
|
23
|
+
"mcp:install": "cd mcp-server && npm install",
|
|
24
|
+
"mcp:generate": "cd mcp-server && npm run generate:all",
|
|
25
|
+
"mcp:dev": "cd mcp-server && npm run dev",
|
|
26
|
+
"mcp:build": "cd mcp-server && npm run build",
|
|
27
|
+
"mcp:start": "cd mcp-server && npm start",
|
|
28
|
+
"release": "npm ci && npm run build && npm publish",
|
|
29
|
+
"prepare": "husky"
|
|
30
|
+
},
|
|
31
|
+
"lint-staged": {
|
|
32
|
+
"*.{vue,js,jsx,cjs,mjs,ts}": "eslint --fix"
|
|
33
|
+
},
|
|
34
|
+
"main": "./library/index.mjs",
|
|
35
|
+
"module": "./library/index.mjs",
|
|
36
|
+
"types": "./library/types/index.d.ts",
|
|
37
|
+
"sideEffects": [
|
|
38
|
+
"**/*.css",
|
|
39
|
+
"./library/plugin.mjs"
|
|
40
|
+
],
|
|
41
|
+
"typesVersions": {
|
|
42
|
+
"*": {
|
|
43
|
+
"plugin": [
|
|
44
|
+
"./library/types/plugin.d.ts"
|
|
45
|
+
],
|
|
46
|
+
"services": [
|
|
47
|
+
"./library/types/services/index.d.ts"
|
|
48
|
+
],
|
|
49
|
+
"theme": [
|
|
50
|
+
"./library/types/theme/index.d.ts"
|
|
51
|
+
],
|
|
52
|
+
"font": [
|
|
53
|
+
"./library/types/font/index.d.ts"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"exports": {
|
|
58
|
+
".": {
|
|
59
|
+
"types": "./library/types/index.d.ts",
|
|
60
|
+
"import": "./library/index.mjs",
|
|
61
|
+
"default": "./library/index.mjs"
|
|
62
|
+
},
|
|
63
|
+
"./plugin": {
|
|
64
|
+
"types": "./library/types/plugin.d.ts",
|
|
65
|
+
"import": "./library/plugin.mjs",
|
|
66
|
+
"default": "./library/plugin.mjs"
|
|
67
|
+
},
|
|
68
|
+
"./services": {
|
|
69
|
+
"types": "./library/types/services/index.d.ts",
|
|
70
|
+
"import": "./library/services/index.mjs",
|
|
71
|
+
"default": "./library/services/index.mjs"
|
|
72
|
+
},
|
|
73
|
+
"./theme": {
|
|
74
|
+
"types": "./library/types/theme/index.d.ts",
|
|
75
|
+
"import": "./library/theme/index.mjs",
|
|
76
|
+
"default": "./library/theme/index.mjs"
|
|
77
|
+
},
|
|
78
|
+
"./font": {
|
|
79
|
+
"types": "./library/types/font/index.d.ts",
|
|
80
|
+
"import": "./library/font/index.mjs",
|
|
81
|
+
"default": "./library/font/index.mjs"
|
|
82
|
+
},
|
|
83
|
+
"./style.css": "./library/style.css",
|
|
84
|
+
"./base.css": "./library/assets/assets/sass/main.css",
|
|
85
|
+
"./src/theme/*": "./src/theme/*",
|
|
86
|
+
"./src/theme/tailwindScheme": "./src/theme/tailwindScheme.js",
|
|
87
|
+
"./src/theme/themes.json": "./src/theme/themes.json",
|
|
88
|
+
"./tailwind.config": "./tailwind.config.js",
|
|
89
|
+
"./library/types/*": "./library/types/*.d.ts"
|
|
90
|
+
},
|
|
91
|
+
"files": [
|
|
92
|
+
"library",
|
|
93
|
+
"src/theme",
|
|
94
|
+
"tailwind.config.js",
|
|
95
|
+
"tailwind.config.d.ts"
|
|
96
|
+
],
|
|
97
|
+
"engines": {
|
|
98
|
+
"node": ">= 20"
|
|
99
|
+
},
|
|
100
|
+
"peerDependencies": {
|
|
101
|
+
"@codemirror/lang-html": "^6.0.0",
|
|
102
|
+
"@codemirror/lang-json": "^6.0.1",
|
|
103
|
+
"@codemirror/lang-markdown": "^6.0.0",
|
|
104
|
+
"@floating-ui/dom": "^1.8.0",
|
|
105
|
+
"@lucide/vue": "^1.16.0",
|
|
106
|
+
"@milkdown/crepe": "^7.15.5",
|
|
107
|
+
"@milkdown/kit": "^7.15.5",
|
|
108
|
+
"@milkdown/utils": "^7.15.5",
|
|
109
|
+
"@milkdown/vue": "^7.15.5",
|
|
110
|
+
"@prosemirror-adapter/vue": "^0.4.1",
|
|
111
|
+
"@tiptap/core": "^3.31.4",
|
|
112
|
+
"@tiptap/extension-bold": "^3.31.4",
|
|
113
|
+
"@tiptap/extension-code": "^3.31.4",
|
|
114
|
+
"@tiptap/extension-document": "^3.31.4",
|
|
115
|
+
"@tiptap/extension-italic": "^3.31.4",
|
|
116
|
+
"@tiptap/extension-mention": "^3.31.4",
|
|
117
|
+
"@tiptap/extension-paragraph": "^3.31.4",
|
|
118
|
+
"@tiptap/extension-strike": "^3.31.4",
|
|
119
|
+
"@tiptap/extension-text": "^3.31.4",
|
|
120
|
+
"@tiptap/extensions": "^3.31.4",
|
|
121
|
+
"@tiptap/pm": "^3.31.4",
|
|
122
|
+
"@tiptap/suggestion": "^3.31.4",
|
|
123
|
+
"@tiptap/vue-3": "^3.31.4",
|
|
124
|
+
"@vueuse/core": ">=10.7.2",
|
|
125
|
+
"codemirror": "^6.0.1",
|
|
126
|
+
"dayjs": "^1.11.19",
|
|
127
|
+
"element-plus": "^2.11.3",
|
|
128
|
+
"emojibase-data": "^17.0.0",
|
|
129
|
+
"highlight.js": "^11.6.0",
|
|
130
|
+
"libphonenumber-js": "^1.10.13",
|
|
131
|
+
"lodash-es": "^4.17.21",
|
|
132
|
+
"maska": "^3.2.0",
|
|
133
|
+
"pdfjs-dist": "^2.16.105",
|
|
134
|
+
"vue": "^3.5.13",
|
|
135
|
+
"vue-advanced-cropper": "^2.8.3",
|
|
136
|
+
"vue-codemirror6": "^1.3.12",
|
|
137
|
+
"wavesurfer.js": "^7.7.15",
|
|
138
|
+
"xlsx": "^0.18.5"
|
|
139
|
+
},
|
|
140
|
+
"devDependencies": {
|
|
141
|
+
"@codemirror/lang-json": "^6.0.1",
|
|
142
|
+
"@floating-ui/dom": "^1.8.0",
|
|
143
|
+
"@fullhuman/postcss-purgecss": "^7.0.2",
|
|
144
|
+
"@highlightjs/vue-plugin": "^2.1.0",
|
|
145
|
+
"@lucide/vue": "^1.16.0",
|
|
146
|
+
"@milkdown/crepe": "7.15.5",
|
|
147
|
+
"@milkdown/kit": "7.15.5",
|
|
148
|
+
"@milkdown/utils": "7.15.5",
|
|
149
|
+
"@milkdown/vue": "7.15.5",
|
|
150
|
+
"@prosemirror-adapter/vue": "^0.4.1",
|
|
151
|
+
"@tiptap/core": "^3.31.4",
|
|
152
|
+
"@tiptap/extension-bold": "^3.31.4",
|
|
153
|
+
"@tiptap/extension-code": "^3.31.4",
|
|
154
|
+
"@tiptap/extension-document": "^3.31.4",
|
|
155
|
+
"@tiptap/extension-italic": "^3.31.4",
|
|
156
|
+
"@tiptap/extension-mention": "^3.31.4",
|
|
157
|
+
"@tiptap/extension-paragraph": "^3.31.4",
|
|
158
|
+
"@tiptap/extension-strike": "^3.31.4",
|
|
159
|
+
"@tiptap/extension-text": "^3.31.4",
|
|
160
|
+
"@tiptap/extensions": "^3.31.4",
|
|
161
|
+
"@tiptap/pm": "^3.31.4",
|
|
162
|
+
"@tiptap/suggestion": "^3.31.4",
|
|
163
|
+
"@tiptap/vue-3": "^3.31.4",
|
|
164
|
+
"@types/json-schema": "^7.0.15",
|
|
165
|
+
"@types/lodash-es": "^4.17.12",
|
|
166
|
+
"@types/node": "^18.7.6",
|
|
167
|
+
"@types/wavesurfer.js": "^6.0.3",
|
|
168
|
+
"@types/webfontloader": "^1.6.38",
|
|
169
|
+
"@vitejs/plugin-vue": "5.2.4",
|
|
170
|
+
"@vitest/coverage-v8": "3.2.7",
|
|
171
|
+
"@vitest/ui": "3.2.7",
|
|
172
|
+
"@voicenter-team/aws-uploader": "^1.0.10",
|
|
173
|
+
"@voicenter-team/eslint-config-vue": "^1.0.21",
|
|
174
|
+
"@vue/server-renderer": "^3.5.13",
|
|
175
|
+
"@vue/test-utils": "^2.4.6",
|
|
176
|
+
"@vueuse/core": "10.7.2",
|
|
177
|
+
"autoprefixer": "10.4.17",
|
|
178
|
+
"axios": "^1.6.0",
|
|
179
|
+
"chalk": "4.1.2",
|
|
180
|
+
"codemirror": "^6.0.1",
|
|
181
|
+
"cross-env": "^7.0.3",
|
|
182
|
+
"dotenv": "^16.4.7",
|
|
183
|
+
"emojibase-data": "^17.0.0",
|
|
184
|
+
"eslint": "^8.57.1",
|
|
185
|
+
"eslint-plugin-standard": "^5.0.0",
|
|
186
|
+
"eslint-plugin-vue": "9.21.1",
|
|
187
|
+
"highlight.js": "^11.6.0",
|
|
188
|
+
"husky": "^9.1.7",
|
|
189
|
+
"jsdom": "^26.1.0",
|
|
190
|
+
"lint-staged": "^17.3.0",
|
|
191
|
+
"pdfjs-dist": "2.16.105",
|
|
192
|
+
"postcss": "8.5.24",
|
|
193
|
+
"readline-sync": "^1.4.10",
|
|
194
|
+
"sass": "1.93.3",
|
|
195
|
+
"tailwindcss": "^3.1.8",
|
|
196
|
+
"terser": "^5.44.0",
|
|
197
|
+
"typescript": "5.3.3",
|
|
198
|
+
"unplugin-element-plus": "^0.4.1",
|
|
199
|
+
"vite": "^5.4.6",
|
|
200
|
+
"vite-bundle-analyzer": "^0.15.2",
|
|
201
|
+
"vite-plugin-compression": "^0.5.1",
|
|
202
|
+
"vite-plugin-dts": "3.7.2",
|
|
203
|
+
"vite-plugin-inspect": "0.8.9",
|
|
204
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
205
|
+
"vite-plugin-static-copy": "0.17.1",
|
|
206
|
+
"vitest": "^3.2.4",
|
|
207
|
+
"vue-advanced-cropper": "^2.8.3",
|
|
208
|
+
"vue-codemirror6": "^1.3.12",
|
|
209
|
+
"vue-component-type-helpers": "^1.8.27",
|
|
210
|
+
"vue-router": "4.2.5",
|
|
211
|
+
"vue-tsc": "1.8.27",
|
|
212
|
+
"wavesurfer.js": "^7.7.15",
|
|
213
|
+
"xlsx": "0.18.5"
|
|
214
|
+
}
|
|
215
|
+
}
|