@voicenter-team/voicenter-ui-plus 3.4.4 → 3.4.6
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 +502 -502
- package/library/assets/assets/sass/main.css +1 -1
- package/library/assets/components/VcAvatar/VcAvatar.css +1 -0
- package/library/assets/components/VcBadgeTag/VcBadgeTag.css +1 -0
- package/library/assets/components/VcChatComposer/VcChatComposer.css +1 -0
- package/library/assets/components/VcEmojiPicker/VcEmojiPicker.css +1 -0
- package/library/assets/components/VcFileUploader/VcFileItem.css +1 -0
- package/library/assets/components/VcFileUploader/VcFileUploaderArea.css +1 -1
- package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
- package/library/assets/components/VcJsonSchema/Components/JsonSchemaEditor.css +1 -1
- package/library/assets/components/VcLoading/Loaders/Circles.css +1 -1
- package/library/assets/components/VcLoading/Loaders/DotSpinner.css +1 -1
- package/library/assets/components/VcLoading/Loaders/LdsSpinner.css +1 -1
- package/library/assets/components/VcLoading/Loaders/LoadIcon.css +1 -1
- package/library/assets/components/VcLoading/Loaders/Stretch.css +1 -1
- package/library/assets/components/VcLoading/VcLoading.css +1 -1
- package/library/assets/components/VcMdEditor/ParameterNode.css +1 -1
- package/library/assets/components/VcMessage/VcMessage.css +1 -0
- package/library/assets/components/VcMessage/content/VcMessageAudioBlock.css +1 -0
- package/library/assets/components/VcMessage/content/VcMessageFileBlock.css +1 -0
- package/library/assets/components/VcMessage/content/VcMessageImageBlock.css +1 -0
- package/library/assets/components/VcMessage/content/VcMessageTextBlock.css +1 -0
- package/library/assets/components/VcMessage/reactions/VcMessageEmojiPicker.css +1 -0
- package/library/assets/components/VcMessage/reactions/VcMessageReactionBar.css +1 -0
- package/library/assets/components/VcMessagesWrapper/VcMessagesWrapper.css +1 -0
- package/library/assets/components/VcSkeletonLoader/Loaders/Card.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Circle.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Row.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Square.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Text.css +1 -1
- package/library/components/VcAvatar/VcAvatar.vue.mjs +62 -0
- package/library/components/VcAvatar/VcAvatar.vue3.mjs +5 -0
- package/library/components/VcBadgeTag/VcBadgeTag.vue.mjs +31 -0
- package/library/components/VcBadgeTag/VcBadgeTag.vue3.mjs +5 -0
- package/library/components/VcChatComposer/VcChatComposer.vue.mjs +554 -0
- package/library/components/VcChatComposer/VcChatComposer.vue3.mjs +5 -0
- package/library/components/VcChatComposer/richText.mjs +320 -0
- package/library/components/VcEmojiPicker/VcEmojiPicker.vue.mjs +387 -0
- package/library/components/VcEmojiPicker/VcEmojiPicker.vue3.mjs +5 -0
- package/library/components/VcEmojiPicker/emojiData.mjs +26 -0
- package/library/components/VcFileUploader/VcFileItem.vue.mjs +146 -0
- package/library/components/VcFileUploader/VcFileItem.vue3.mjs +5 -0
- package/library/components/VcFileUploader/VcFileUploaderArea.vue.mjs +24 -147
- package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
- package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Circles.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/DotSpinner.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/DotSpinner.vue2.mjs +2 -2
- package/library/components/VcLoading/Loaders/LdsSpinner.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/LoadIcon.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Stretch.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Stretch.vue2.mjs +1 -1
- package/library/components/VcLoading/VcLoading.vue.mjs +1 -1
- package/library/components/VcMdEditor/ParameterNode.vue.mjs +1 -1
- package/library/components/VcMessage/VcMessage.vue.mjs +212 -0
- package/library/components/VcMessage/VcMessage.vue3.mjs +5 -0
- package/library/components/VcMessage/content/VcMessageAudioBlock.vue.mjs +53 -0
- package/library/components/VcMessage/content/VcMessageAudioBlock.vue3.mjs +5 -0
- package/library/components/VcMessage/content/VcMessageFileBlock.vue.mjs +80 -0
- package/library/components/VcMessage/content/VcMessageFileBlock.vue3.mjs +5 -0
- package/library/components/VcMessage/content/VcMessageImageBlock.vue.mjs +57 -0
- package/library/components/VcMessage/content/VcMessageImageBlock.vue3.mjs +5 -0
- package/library/components/VcMessage/content/VcMessageTextBlock.vue.mjs +19 -0
- package/library/components/VcMessage/content/VcMessageTextBlock.vue3.mjs +5 -0
- package/library/components/VcMessage/content/messageContentComponents.mjs +17 -0
- package/library/components/VcMessage/reactions/VcMessageEmojiPicker.vue.mjs +167 -0
- package/library/components/VcMessage/reactions/VcMessageEmojiPicker.vue3.mjs +5 -0
- package/library/components/VcMessage/reactions/VcMessageReactionBar.vue.mjs +82 -0
- package/library/components/VcMessage/reactions/VcMessageReactionBar.vue3.mjs +5 -0
- package/library/components/VcMessage/reactions/emojis.mjs +4 -0
- package/library/components/VcMessagesWrapper/VcMessagesWrapper.vue.mjs +243 -0
- package/library/components/VcMessagesWrapper/VcMessagesWrapper.vue3.mjs +5 -0
- package/library/components/VcSkeletonLoader/Loaders/Card.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Circle.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Row.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Square.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Text.vue.mjs +1 -1
- package/library/components/VcSoundplayer/useSoundPlayerProvideInject.mjs +1 -1
- package/library/composables/useAudioRecorder.mjs +120 -0
- package/library/enum/fileTypes.mjs +51 -0
- package/library/index.mjs +237 -216
- package/library/index.mjs.br +0 -0
- package/library/index.mjs.gz +0 -0
- package/library/localization/index.mjs.gz +0 -0
- package/library/localization/locales/en.json.mjs +24 -1
- package/library/plugin-components.gen.mjs +171 -150
- package/library/plugin.mjs +235 -214
- package/library/plugin.mjs.br +0 -0
- package/library/plugin.mjs.gz +0 -0
- package/library/style.css +42 -16
- 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/VcAvatar/VcAvatar.vue.d.ts +47 -0
- package/library/types/components/VcBadgeTag/VcBadgeTag.vue.d.ts +42 -0
- package/library/types/components/VcChatComposer/VcChatComposer.vue.d.ts +81 -0
- package/library/types/components/VcChatComposer/richText.d.ts +12 -0
- package/library/types/components/VcCollapse/VcCollapseItem.vue.d.ts +1 -1
- package/library/types/components/VcEmojiPicker/VcEmojiPicker.vue.d.ts +63 -0
- package/library/types/components/VcEmojiPicker/emojiData.d.ts +16 -0
- package/library/types/components/VcExcelUploader/VcExcelFileUploadBlock.vue.d.ts +1 -1
- package/library/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +2 -2
- package/library/types/components/VcFileUploader/VcFileItem.vue.d.ts +85 -0
- package/library/types/components/VcFileUploader/VcFileUploader.vue.d.ts +3 -3
- package/library/types/components/VcFileUploader/VcFileUploaderArea.vue.d.ts +17 -18
- package/library/types/components/VcFileUploader/VcFileUploaderSimple.vue.d.ts +3 -3
- package/library/types/components/VcForm/VcForm.vue.d.ts +1 -1
- package/library/types/components/VcMessage/VcMessage.vue.d.ts +66 -0
- package/library/types/components/VcMessage/content/VcMessageAudioBlock.vue.d.ts +24 -0
- package/library/types/components/VcMessage/content/VcMessageFileBlock.vue.d.ts +24 -0
- package/library/types/components/VcMessage/content/VcMessageImageBlock.vue.d.ts +28 -0
- package/library/types/components/VcMessage/content/VcMessageTextBlock.vue.d.ts +24 -0
- package/library/types/components/VcMessage/content/messageContentComponents.d.ts +3 -0
- package/library/types/components/VcMessage/reactions/VcMessageEmojiPicker.vue.d.ts +68 -0
- package/library/types/components/VcMessage/reactions/VcMessageReactionBar.vue.d.ts +28 -0
- package/library/types/components/VcMessage/reactions/emojis.d.ts +1 -0
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapper.vue.d.ts +71 -0
- package/library/types/components/VcProgress/VcProgress.vue.d.ts +1 -1
- package/library/types/components/VcRadioGroup/VcRadioGroup.vue.d.ts +3 -3
- package/library/types/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +6 -6
- package/library/types/components/VcSelect/VcSelect.vue.d.ts +6 -6
- package/library/types/components/VcSelect/VcSelectGrouped.vue.d.ts +6 -6
- package/library/types/components/VcSelect/VcSelectOption.vue.d.ts +3 -3
- package/library/types/components/VcTree/VcTree.vue.d.ts +6 -6
- package/library/types/components/VcTree/VcTreeSelect.vue.d.ts +3 -3
- package/library/types/components/VcWizard/VcSummaryStep.vue.d.ts +1 -1
- package/library/types/components/VcWizard/VcWizardSummary.vue.d.ts +1 -1
- package/library/types/components/exports.d.ts +15 -1
- package/library/types/components.gen.d.ts +7 -0
- package/library/types/composables/useAudioRecorder.d.ts +18 -0
- package/library/types/entity/components/Button/VcEntityDeleteIconButton.vue.d.ts +3 -3
- package/library/types/enum/fileTypes.d.ts +3 -0
- package/library/types/localization/locales/en.json.d.ts +187 -164
- package/library/types/theme/themes.json.d.ts +227 -227
- package/library/types/types/VcAvatar.types.d.ts +35 -0
- package/library/types/types/VcBadgeTag.types.d.ts +19 -0
- package/library/types/types/VcChatComposer.types.d.ts +112 -0
- package/library/types/types/VcEmojiPicker.types.d.ts +20 -0
- package/library/types/types/VcFileUploader.types.d.ts +4 -0
- package/library/types/types/VcMessage.types.d.ts +131 -0
- package/library/types/types/VcMessagesWrapper.types.d.ts +61 -0
- package/library/types/types/index.d.ts +6 -0
- package/library/utils/jsonSchema/index.mjs.gz +0 -0
- package/package.json +215 -185
- package/src/theme/index.ts +101 -101
- package/src/theme/tailwindScheme.js +37 -37
- package/src/theme/theme.types.ts +31 -31
- package/src/theme/themeMerge.ts +40 -40
- package/src/theme/themes.json +227 -227
- package/tailwind.config.d.ts +5 -5
- package/tailwind.config.js +192 -192
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { COMPONENT_COLOR_TYPE } from '../enum/constants';
|
|
2
|
+
import type { TIcon } from './icons.types';
|
|
3
|
+
/**
|
|
4
|
+
* Message side: `end` — own messages, `start` — messages of other participants.
|
|
5
|
+
* Logical values, so they mirror in RTL. Sets the toolbar side and the color scheme; text is always aligned to start.
|
|
6
|
+
*/
|
|
7
|
+
export type VcMessageAlign = 'start' | 'end';
|
|
8
|
+
export interface VcMessageOption {
|
|
9
|
+
/**
|
|
10
|
+
* Action identifier, passed to the `option-click` emit.
|
|
11
|
+
*/
|
|
12
|
+
event: string;
|
|
13
|
+
/**
|
|
14
|
+
* Accepts a class string (legacy `vc-icon-*`) or a Vue component (e.g. a Lucide icon).
|
|
15
|
+
*/
|
|
16
|
+
icon: TIcon;
|
|
17
|
+
/**
|
|
18
|
+
* Toolbar: tooltip and aria-label. Additional options: menu item text.
|
|
19
|
+
*/
|
|
20
|
+
label?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Item color scheme, e.g. `destructive` for delete.
|
|
23
|
+
*/
|
|
24
|
+
color?: COMPONENT_COLOR_TYPE;
|
|
25
|
+
/**
|
|
26
|
+
* Keyboard shortcut hint shown in the additional options menu. Display only.
|
|
27
|
+
*/
|
|
28
|
+
shortcut?: string;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Toolbar only: the button opens the emoji picker instead of emitting `option-click`;
|
|
32
|
+
* the picked emoji is emitted as `reaction-toggle`.
|
|
33
|
+
*/
|
|
34
|
+
emojiPicker?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface VcMessageReaction {
|
|
37
|
+
emoji: string;
|
|
38
|
+
count: number;
|
|
39
|
+
/**
|
|
40
|
+
* The current user reacted with this emoji; highlighted in the reaction bar.
|
|
41
|
+
*/
|
|
42
|
+
isOwn?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Names shown in the tooltip. May be shorter than `count`: the rest is shown as "and N more".
|
|
45
|
+
*/
|
|
46
|
+
users?: Array<string>;
|
|
47
|
+
}
|
|
48
|
+
export type VcMessageContentType = 'text' | 'image' | 'audio' | 'file';
|
|
49
|
+
export interface VcTextMessageContent {
|
|
50
|
+
type: 'text';
|
|
51
|
+
text: string;
|
|
52
|
+
}
|
|
53
|
+
export interface VcImageMessageContent {
|
|
54
|
+
type: 'image';
|
|
55
|
+
url: string;
|
|
56
|
+
alt?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Natural size in px. Reserves the space before the image loads, so the chat does not jump.
|
|
59
|
+
*/
|
|
60
|
+
width?: number;
|
|
61
|
+
height?: number;
|
|
62
|
+
}
|
|
63
|
+
export interface VcAudioMessageContent {
|
|
64
|
+
type: 'audio';
|
|
65
|
+
url: string;
|
|
66
|
+
/**
|
|
67
|
+
* Duration in seconds, shown in the reply preview.
|
|
68
|
+
*/
|
|
69
|
+
duration?: number;
|
|
70
|
+
}
|
|
71
|
+
export interface VcFileMessageContent {
|
|
72
|
+
type: 'file';
|
|
73
|
+
url: string;
|
|
74
|
+
name: string;
|
|
75
|
+
/**
|
|
76
|
+
* Taken from `name` when not set.
|
|
77
|
+
*/
|
|
78
|
+
extension?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Size in bytes.
|
|
81
|
+
*/
|
|
82
|
+
size?: number;
|
|
83
|
+
}
|
|
84
|
+
export type VcMessageContent = VcTextMessageContent | VcImageMessageContent | VcAudioMessageContent | VcFileMessageContent;
|
|
85
|
+
export interface VcMessageReply {
|
|
86
|
+
author: string;
|
|
87
|
+
content: VcMessageContent;
|
|
88
|
+
}
|
|
89
|
+
export interface VcMessageProps {
|
|
90
|
+
/**
|
|
91
|
+
* Message content, rendered by the block of its `type`. Optional for deleted messages.
|
|
92
|
+
*/
|
|
93
|
+
content?: VcMessageContent;
|
|
94
|
+
align?: VcMessageAlign;
|
|
95
|
+
/**
|
|
96
|
+
* Quoted message, rendered above the content in the compact preview mode.
|
|
97
|
+
*/
|
|
98
|
+
reply?: VcMessageReply;
|
|
99
|
+
/**
|
|
100
|
+
* Actions shown in the hover toolbar.
|
|
101
|
+
*/
|
|
102
|
+
options?: Array<VcMessageOption>;
|
|
103
|
+
/**
|
|
104
|
+
* Grouped actions of the "more" menu. The "more" button is hidden when empty.
|
|
105
|
+
*/
|
|
106
|
+
additionalOptions?: Array<Array<VcMessageOption>>;
|
|
107
|
+
/**
|
|
108
|
+
* Reactions shown under the content. The reaction bar is hidden when empty.
|
|
109
|
+
*/
|
|
110
|
+
reactions?: Array<VcMessageReaction>;
|
|
111
|
+
/**
|
|
112
|
+
* Emoji of the picker (toolbar option and the "+" of the reaction bar).
|
|
113
|
+
*/
|
|
114
|
+
reactionEmojis?: Array<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Shows the "Edited" label in the bottom end corner.
|
|
117
|
+
*/
|
|
118
|
+
edited?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Replaces the content with the "deleted" placeholder. Hides the reply, the edited label and the toolbar.
|
|
121
|
+
*/
|
|
122
|
+
deleted?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Overrides the localized "Edited" label.
|
|
125
|
+
*/
|
|
126
|
+
editedLabel?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Overrides the localized "This message was deleted" text.
|
|
129
|
+
*/
|
|
130
|
+
deletedLabel?: string;
|
|
131
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { VcMessageContent, VcMessageOption, VcMessageReaction, VcMessageReply } from './VcMessage.types';
|
|
2
|
+
export type VcChatMessageId = string | number;
|
|
3
|
+
export interface VcChatMessageSender {
|
|
4
|
+
/**
|
|
5
|
+
* Messages are grouped by sender id, not by name.
|
|
6
|
+
*/
|
|
7
|
+
id: VcChatMessageId;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
export interface VcChatMessageReply extends VcMessageReply {
|
|
11
|
+
/**
|
|
12
|
+
* Id of the quoted message. When it is rendered, clicking the quote scrolls to it.
|
|
13
|
+
*/
|
|
14
|
+
id?: VcChatMessageId;
|
|
15
|
+
}
|
|
16
|
+
export interface VcChatMessage {
|
|
17
|
+
id: VcChatMessageId;
|
|
18
|
+
sender: VcChatMessageSender;
|
|
19
|
+
isOwn: boolean;
|
|
20
|
+
createdAt: Date | string | number;
|
|
21
|
+
/**
|
|
22
|
+
* Optional for deleted messages.
|
|
23
|
+
*/
|
|
24
|
+
content?: VcMessageContent;
|
|
25
|
+
replyTo?: VcChatMessageReply;
|
|
26
|
+
reactions?: Array<VcMessageReaction>;
|
|
27
|
+
isEdited?: boolean;
|
|
28
|
+
isDeleted?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export type VcChatMessageOptionsFn = (message: VcChatMessage) => Array<VcMessageOption>;
|
|
31
|
+
export type VcChatMessageAdditionalOptionsFn = (message: VcChatMessage) => Array<Array<VcMessageOption>>;
|
|
32
|
+
export interface VcMessagesWrapperProps {
|
|
33
|
+
/**
|
|
34
|
+
* Messages sorted by `createdAt`, oldest first.
|
|
35
|
+
*/
|
|
36
|
+
messages: Array<VcChatMessage>;
|
|
37
|
+
/**
|
|
38
|
+
* Toolbar options of a message. Decide by `message.content.type`, `message.isOwn` etc.
|
|
39
|
+
*/
|
|
40
|
+
options?: VcChatMessageOptionsFn;
|
|
41
|
+
/**
|
|
42
|
+
* Grouped "more" menu options of a message.
|
|
43
|
+
*/
|
|
44
|
+
additionalOptions?: VcChatMessageAdditionalOptionsFn;
|
|
45
|
+
/**
|
|
46
|
+
* Emoji of the reaction picker, the same for every message.
|
|
47
|
+
*/
|
|
48
|
+
reactionEmojis?: Array<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Distance to the edge in px at which `reached-top` / `reached-bottom` are emitted.
|
|
51
|
+
*/
|
|
52
|
+
scrollThreshold?: number;
|
|
53
|
+
/**
|
|
54
|
+
* dayjs format of the date divider for days before yesterday.
|
|
55
|
+
*/
|
|
56
|
+
dateFormat?: string;
|
|
57
|
+
/**
|
|
58
|
+
* dayjs format of the message time.
|
|
59
|
+
*/
|
|
60
|
+
timeFormat?: string;
|
|
61
|
+
}
|
|
@@ -44,6 +44,12 @@ export * from './VcMdEditor.types';
|
|
|
44
44
|
export * from './VcSystemUserPrompt.types';
|
|
45
45
|
export * from './VcSoundPlayer.types';
|
|
46
46
|
export * from './VcSoundPlayerInstance.types';
|
|
47
|
+
export * from './VcMessage.types';
|
|
48
|
+
export * from './VcMessagesWrapper.types';
|
|
49
|
+
export * from './VcAvatar.types';
|
|
50
|
+
export * from './VcBadgeTag.types';
|
|
51
|
+
export * from './VcEmojiPicker.types';
|
|
52
|
+
export * from './VcChatComposer.types';
|
|
47
53
|
export * from './Entity.basic.types';
|
|
48
54
|
export * from './Entity.types';
|
|
49
55
|
export * from './Tabs';
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,185 +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
|
-
"@
|
|
105
|
-
"@
|
|
106
|
-
"@milkdown/
|
|
107
|
-
"@milkdown/
|
|
108
|
-
"@milkdown/
|
|
109
|
-
"@
|
|
110
|
-
"@
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"@
|
|
142
|
-
"@
|
|
143
|
-
"@
|
|
144
|
-
"@
|
|
145
|
-
"@vue
|
|
146
|
-
"@
|
|
147
|
-
"@
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
|
|
185
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@voicenter-team/voicenter-ui-plus",
|
|
3
|
+
"version": "3.4.6",
|
|
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
|
+
}
|