@voicenter-team/voicenter-ui-plus 3.4.3 → 3.4.5
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/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/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/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/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/VcRadioTabs/UiComponents/VcRadioTabsNav.vue.mjs +33 -25
- package/library/components/VcRadioTabs/UiComponents/VcRadioTabsNavHint.vue.mjs +31 -0
- package/library/components/VcRadioTabs/UiComponents/VcRadioTabsNavHint.vue2.mjs +4 -0
- package/library/components/VcSoundplayer/useSoundPlayerProvideInject.mjs +1 -1
- package/library/composables/option/useOptionMethods.mjs +14 -0
- 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/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 +28 -2
- package/library/style.css.br +0 -0
- package/library/style.css.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/VcRadioTabs/UiComponents/VcRadioTabsNavHint.vue.d.ts +36 -0
- 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/option/useOptionMethods.d.ts +9 -8
- 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 +24 -1
- package/library/types/types/OptionAndConfig.types.d.ts +4 -0
- 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/package.json +31 -1
|
@@ -31,6 +31,7 @@ export { default as VcOtpInput } from './components/VcOtpInput/VcOtpInput.vue';
|
|
|
31
31
|
export { default as VcFileUploader } from './components/VcFileUploader/VcFileUploader.vue';
|
|
32
32
|
export { default as VcFileUploaderSimple } from './components/VcFileUploader/VcFileUploaderSimple.vue';
|
|
33
33
|
export { default as VcFileUploaderArea } from './components/VcFileUploader/VcFileUploaderArea.vue';
|
|
34
|
+
export { default as VcFileItem } from './components/VcFileUploader/VcFileItem.vue';
|
|
34
35
|
export { default as VcCard } from './components/VcCard/VcCard.vue';
|
|
35
36
|
export { default as VcCodeBlock } from './components/VcCodeBlock/VcCodeBlock.vue';
|
|
36
37
|
export { default as VcModal } from './components/VcModal/VcModal.vue';
|
|
@@ -55,6 +56,8 @@ export { default as VcTree } from './components/VcTree/VcTree.vue';
|
|
|
55
56
|
export { default as VcTreeSelect } from './components/VcTree/VcTreeSelect.vue';
|
|
56
57
|
export { default as VcTransfer } from './components/VcTransfer/VcTransfer.vue';
|
|
57
58
|
export { default as VcTag } from './components/VcTag/VcTag.vue';
|
|
59
|
+
export { default as VcAvatar } from './components/VcAvatar/VcAvatar.vue';
|
|
60
|
+
export { default as VcBadgeTag } from './components/VcBadgeTag/VcBadgeTag.vue';
|
|
58
61
|
export { default as VcDelimitedList } from './components/VcDelimitedList/VcDelimitedList.vue';
|
|
59
62
|
export { default as VcSparkline } from './components/VcSparkline/VcSparkline.vue';
|
|
60
63
|
export { default as VcViewSwitcher } from './components/VcViewSwitcher/VcViewSwitcher.vue';
|
|
@@ -77,6 +80,8 @@ export { default as VcMdEditor } from './components/VcMdEditor/VcMdEditor.vue';
|
|
|
77
80
|
export { default as VcSystemUserPrompt } from './components/VcSystemUserPrompt/VcSystemUserPrompt.vue';
|
|
78
81
|
export { default as VcSoundPlayer } from './components/VcSoundplayer/VcSoundPlayer.vue';
|
|
79
82
|
export { default as VcJsonSchema } from './components/VcJsonSchema/VcJsonSchema.vue';
|
|
83
|
+
export { default as VcMessage } from './components/VcMessage/VcMessage.vue';
|
|
84
|
+
export { default as VcMessagesWrapper } from './components/VcMessagesWrapper/VcMessagesWrapper.vue';
|
|
80
85
|
export { default as VcPlayerPlaybackRate } from './components/VcSoundplayer/VcPlayerPlaybackRate.vue';
|
|
81
86
|
export { default as VcPlayerPlaybackRatePopup } from './components/VcSoundplayer/VcPlayerPlaybackRatePopup.vue';
|
|
82
87
|
export { default as VcPlayerPlayStopButton } from './components/VcSoundplayer/VcPlayerPlayStopButton.vue';
|
|
@@ -95,6 +100,8 @@ export { default as VcExcelFileUploader } from './components/VcExcelUploader/VcE
|
|
|
95
100
|
export { default as VcImageUploader } from './components/VcImageUploader/VcImageUploader.vue';
|
|
96
101
|
export { default as VcTour } from './components/VcTour/VcTour.vue';
|
|
97
102
|
export { default as VcSipFlow } from './components/VcSipFlow/VcSipFlow.vue';
|
|
103
|
+
export { default as VcEmojiPicker } from './components/VcEmojiPicker/VcEmojiPicker.vue';
|
|
104
|
+
export { default as VcChatComposer } from './components/VcChatComposer/VcChatComposer.vue';
|
|
98
105
|
export { default as VcEntityAddButton } from './entity/components/Button/VcEntityAddButton.vue';
|
|
99
106
|
export { default as VcEntityCancelButton } from './entity/components/Button/VcEntityCancelButton.vue';
|
|
100
107
|
export { default as VcEntityDeleteIconButton } from './entity/components/Button/VcEntityDeleteIconButton.vue';
|
|
@@ -8,12 +8,13 @@ export default function useOptionMethods(): {
|
|
|
8
8
|
optionLabel: <Option_1 extends OptionValueType, Config_1 extends ConfigOptionType<Option_1>>(option: Option_1, config?: Config_1 | undefined) => string;
|
|
9
9
|
optionIcon: <Option_2 extends OptionValueType, Config_2 extends ConfigOptionType<Option_2>>(option: Option_2, config?: Config_2 | undefined) => TIcon;
|
|
10
10
|
optionDisabled: <Option_3 extends OptionValueType, Config_3 extends ConfigOptionType<Option_3>>(option: Option_3, config?: Config_3 | undefined) => boolean;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
optionDisabledHint: <Option_4 extends OptionValueType, Config_4 extends ConfigOptionType<Option_4>>(option: Option_4, config?: Config_4 | undefined) => string | undefined;
|
|
12
|
+
optionIconColorHex: <Option_5 extends OptionValueType, Config_5 extends ConfigOptionType<Option_5>>(option: Option_5, config?: Config_5 | undefined) => string;
|
|
13
|
+
optionClass: <Option_6 extends OptionValueType, Config_6 extends ConfigOptionType<Option_6>>(option: Option_6, config: Config_6) => string;
|
|
14
|
+
optionStyle: <Option_7 extends OptionValueType, Config_7 extends ConfigOptionType<Option_7>>(option: Option_7, config?: Config_7 | undefined) => string;
|
|
15
|
+
optionSearchKeys: <Option_8 extends OptionValueType, Config_8 extends ConfigOptionType<Option_8>>(option: Option_8, config?: Config_8 | undefined) => Array<string>;
|
|
16
|
+
optionSearch: <Option_9 extends OptionValueType, Config_9 extends ConfigOptionType<Option_9>>(query: string, options: Option_9[], config?: Config_9 | undefined) => Option_9[];
|
|
17
|
+
optionColor: <Option_10 extends OptionValueType, Config_10 extends ConfigOptionType<Option_10>>(option: Option_10, config?: Config_10 | undefined) => COMPONENT_COLOR_TYPE;
|
|
18
|
+
optionListMap: <Option_11 extends OptionValueType, Config_11 extends ConfigOptionType<Option_11>>(options: Option_11[], config?: Config_11 | undefined) => OptionMappedType<Option_11, Config_11>[];
|
|
19
|
+
optionIconStyle: <Option_12 extends OptionValueType, Config_12 extends ConfigOptionType<Option_12>>(option: Option_12, config?: Config_12 | undefined) => StyleValue;
|
|
19
20
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type AudioRecorderState = 'idle' | 'recording' | 'recorded';
|
|
2
|
+
/**
|
|
3
|
+
* Records audio from the microphone with MediaRecorder.
|
|
4
|
+
* `start` asks for the microphone permission; `stop` produces the `blob` and a playable `url`;
|
|
5
|
+
* `reset` discards the recording. The microphone and the object URL are released on unmount.
|
|
6
|
+
*/
|
|
7
|
+
export default function useAudioRecorder(): {
|
|
8
|
+
state: import("vue").Ref<AudioRecorderState, AudioRecorderState>;
|
|
9
|
+
blob: import("vue").ShallowRef<Blob | undefined, Blob | undefined>;
|
|
10
|
+
url: import("vue").Ref<string | undefined, string | undefined>;
|
|
11
|
+
duration: import("vue").Ref<number, number>;
|
|
12
|
+
error: import("vue").ShallowRef<Error | undefined, Error | undefined>;
|
|
13
|
+
isSupported: import("vue").ComputedRef<boolean>;
|
|
14
|
+
start: () => Promise<void>;
|
|
15
|
+
stop: () => void;
|
|
16
|
+
cancel: () => void;
|
|
17
|
+
reset: () => void;
|
|
18
|
+
};
|
|
@@ -4,9 +4,9 @@ declare const _default: <Entity extends BaseEntityServiceImplements, EntityData
|
|
|
4
4
|
icon?: TIcon | undefined;
|
|
5
5
|
entity: Entity;
|
|
6
6
|
entityData: EntityData;
|
|
7
|
+
readonly onDelete?: ((pl: EntityData) => any) | undefined;
|
|
7
8
|
useConfirm?: boolean | undefined;
|
|
8
9
|
confirmMessage?: string | undefined;
|
|
9
|
-
readonly onDelete?: ((pl: EntityData) => any) | undefined;
|
|
10
10
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
11
11
|
attrs: any;
|
|
12
12
|
slots: {};
|
|
@@ -16,9 +16,9 @@ declare const _default: <Entity extends BaseEntityServiceImplements, EntityData
|
|
|
16
16
|
icon?: TIcon | undefined;
|
|
17
17
|
entity: Entity;
|
|
18
18
|
entityData: EntityData;
|
|
19
|
+
readonly onDelete?: ((pl: EntityData) => any) | undefined;
|
|
19
20
|
useConfirm?: boolean | undefined;
|
|
20
21
|
confirmMessage?: string | undefined;
|
|
21
|
-
readonly onDelete?: ((pl: EntityData) => any) | undefined;
|
|
22
22
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
23
23
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
24
24
|
attrs: any;
|
|
@@ -32,9 +32,9 @@ declare const _default: <Entity extends BaseEntityServiceImplements, EntityData
|
|
|
32
32
|
icon?: TIcon | undefined;
|
|
33
33
|
entity: Entity;
|
|
34
34
|
entityData: EntityData;
|
|
35
|
+
readonly onDelete?: ((pl: EntityData) => any) | undefined;
|
|
35
36
|
useConfirm?: boolean | undefined;
|
|
36
37
|
confirmMessage?: string | undefined;
|
|
37
|
-
readonly onDelete?: ((pl: EntityData) => any) | undefined;
|
|
38
38
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
39
39
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
40
40
|
attrs: any;
|
|
@@ -160,7 +160,30 @@ declare const _default: {
|
|
|
160
160
|
"voicenterUi.mdEditor.source": "View Source",
|
|
161
161
|
"voicenterUi.mdEditor.editorMode": "View Editor",
|
|
162
162
|
"voicenterUi.systemPrompt.system": "System",
|
|
163
|
-
"voicenterUi.systemPrompt.user": "User"
|
|
163
|
+
"voicenterUi.systemPrompt.user": "User",
|
|
164
|
+
"voicenterUi.message.moreOptions": "More options",
|
|
165
|
+
"voicenterUi.message.edited": "Edited",
|
|
166
|
+
"voicenterUi.message.deleted": "This message was deleted",
|
|
167
|
+
"voicenterUi.message.image": "Photo",
|
|
168
|
+
"voicenterUi.message.audio": "Voice message",
|
|
169
|
+
"voicenterUi.message.react": "React",
|
|
170
|
+
"voicenterUi.message.addReaction": "Add reaction",
|
|
171
|
+
"voicenterUi.message.reactionUsersMore": "and {count} more",
|
|
172
|
+
"voicenterUi.emojiPicker.trigger": "Emoji",
|
|
173
|
+
"voicenterUi.emojiPicker.recent": "Frequently used",
|
|
174
|
+
"voicenterUi.fileItem.uploadFailed": "Upload failed",
|
|
175
|
+
"voicenterUi.fileItem.retry": "Retry",
|
|
176
|
+
"voicenterUi.chatComposer.placeholder": "Write a message…",
|
|
177
|
+
"voicenterUi.chatComposer.press": "Press",
|
|
178
|
+
"voicenterUi.chatComposer.toSend": "to send",
|
|
179
|
+
"voicenterUi.chatComposer.send": "Send",
|
|
180
|
+
"voicenterUi.chatComposer.attach": "Attach files",
|
|
181
|
+
"voicenterUi.chatComposer.record": "Record a voice message",
|
|
182
|
+
"voicenterUi.chatComposer.stopRecording": "Stop recording",
|
|
183
|
+
"voicenterUi.chatComposer.dropFiles": "Drop files to attach",
|
|
184
|
+
"voicenterUi.chatComposer.microphoneError": "The microphone is not available",
|
|
185
|
+
"voicenterUi.messagesWrapper.today": "Today",
|
|
186
|
+
"voicenterUi.messagesWrapper.yesterday": "Yesterday"
|
|
164
187
|
}
|
|
165
188
|
;
|
|
166
189
|
|
|
@@ -15,6 +15,8 @@ export type ConfigOptionType<Option extends OptionValueType> = Option extends Op
|
|
|
15
15
|
iconColorHex?: NestedKeys<Option>;
|
|
16
16
|
searchKey?: NestedKeys<Option> | Array<NestedKeys<Option>>;
|
|
17
17
|
disabledKey?: NestedKeys<Option>;
|
|
18
|
+
/** @description Key of the text that explains why a disabled option is disabled; read only for disabled options, shown by VcRadioTabsNav in a popover on hover */
|
|
19
|
+
disabledHintKey?: NestedKeys<Option>;
|
|
18
20
|
classKey?: NestedKeys<Option>;
|
|
19
21
|
styleKey?: NestedKeys<Option>;
|
|
20
22
|
optionIconStyleKey?: NestedKeys<Option>;
|
|
@@ -27,6 +29,8 @@ export type OptionMappedType<Option extends OptionValueType, Config extends Conf
|
|
|
27
29
|
value: ExtractValueType<Option, Config>;
|
|
28
30
|
label: string;
|
|
29
31
|
disabled: boolean;
|
|
32
|
+
/** @description Why the option is disabled: the non-empty string under `disabledHintKey` of a disabled option, otherwise undefined */
|
|
33
|
+
disabledHint?: string;
|
|
30
34
|
icon: TIcon;
|
|
31
35
|
color: COMPONENT_COLOR_TYPE;
|
|
32
36
|
iconStyle: StyleValue;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* xl — 34px, lg — 32px, md — 26px, sm — 24px, xs — 20px.
|
|
3
|
+
*/
|
|
4
|
+
export type VcAvatarSize = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
5
|
+
export interface VcAvatarProps {
|
|
6
|
+
/**
|
|
7
|
+
* Image URL. Covers the whole circle; falls back to the initials when it fails to load.
|
|
8
|
+
*/
|
|
9
|
+
src?: string;
|
|
10
|
+
/**
|
|
11
|
+
* One or two letters shown when there is no image. Longer values are cut to two letters.
|
|
12
|
+
*/
|
|
13
|
+
initials?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Image alt and aria-label.
|
|
16
|
+
*/
|
|
17
|
+
alt?: string;
|
|
18
|
+
size?: VcAvatarSize;
|
|
19
|
+
/**
|
|
20
|
+
* Fill color behind the initials. Any CSS color value.
|
|
21
|
+
*/
|
|
22
|
+
color?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Initials color. Any CSS color value.
|
|
25
|
+
*/
|
|
26
|
+
textColor?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Status dot color. The dot is shown only when it is set.
|
|
29
|
+
*/
|
|
30
|
+
statusColor?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Status dot border color.
|
|
33
|
+
*/
|
|
34
|
+
statusBorderColor?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Height (and minimal width): lg — 22px, md — 20px, sm — 18px.
|
|
3
|
+
*/
|
|
4
|
+
export type VcBadgeTagSize = 'lg' | 'md' | 'sm';
|
|
5
|
+
export interface VcBadgeTagProps {
|
|
6
|
+
/**
|
|
7
|
+
* Badge content. The default slot overrides it.
|
|
8
|
+
*/
|
|
9
|
+
value?: string | number;
|
|
10
|
+
size?: VcBadgeTagSize;
|
|
11
|
+
/**
|
|
12
|
+
* Background color. Any CSS color value.
|
|
13
|
+
*/
|
|
14
|
+
color?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Text color. Any CSS color value.
|
|
17
|
+
*/
|
|
18
|
+
textColor?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { FileUploaded, VcFileItemStatus } from './VcFileUploader.types';
|
|
2
|
+
export type VcChatTextFormatType = 'bold' | 'italic' | 'strike' | 'code';
|
|
3
|
+
export type VcChatEntityType = VcChatTextFormatType | 'mention';
|
|
4
|
+
/**
|
|
5
|
+
* A formatted range of the text. `offset` and `length` are in UTF-16 code units,
|
|
6
|
+
* i.e. JavaScript string indexes (an emoji like 👍 takes 2).
|
|
7
|
+
*/
|
|
8
|
+
export interface VcChatTextEntity {
|
|
9
|
+
type: VcChatEntityType;
|
|
10
|
+
offset: number;
|
|
11
|
+
length: number;
|
|
12
|
+
/**
|
|
13
|
+
* Mentioned user, for `type: 'mention'`.
|
|
14
|
+
*/
|
|
15
|
+
userId?: string | number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Plain text with formatting ranges; paragraphs are separated with `\n`.
|
|
19
|
+
*/
|
|
20
|
+
export interface VcChatRichText {
|
|
21
|
+
text: string;
|
|
22
|
+
entities: Array<VcChatTextEntity>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Converts the composer value to / from the rich text, e.g. for a backend format.
|
|
26
|
+
*/
|
|
27
|
+
export interface VcChatComposerFormat<Value = unknown> {
|
|
28
|
+
parse: (value: Value) => VcChatRichText;
|
|
29
|
+
serialize: (richText: VcChatRichText) => Value;
|
|
30
|
+
}
|
|
31
|
+
export type VcChatComposerBuiltInFormat = 'entities' | 'markdown' | 'html';
|
|
32
|
+
export interface VcChatMentionUser {
|
|
33
|
+
id: string | number;
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* Avatar image in the suggestion list; initials are shown without it.
|
|
37
|
+
*/
|
|
38
|
+
avatar?: string;
|
|
39
|
+
}
|
|
40
|
+
export type VcChatAttachmentStatus = VcFileItemStatus;
|
|
41
|
+
/**
|
|
42
|
+
* An attached file. Set `status` / `progress` while you upload it; without them it is a plain file.
|
|
43
|
+
*/
|
|
44
|
+
export type VcChatAttachment = FileUploaded & {
|
|
45
|
+
status?: VcChatAttachmentStatus;
|
|
46
|
+
/**
|
|
47
|
+
* 0–100, for `status: 'uploading'`.
|
|
48
|
+
*/
|
|
49
|
+
progress?: number;
|
|
50
|
+
};
|
|
51
|
+
export interface VcChatComposerSendPayload<Value = unknown> {
|
|
52
|
+
/**
|
|
53
|
+
* The text in the `format` of the composer.
|
|
54
|
+
*/
|
|
55
|
+
value: Value;
|
|
56
|
+
richText: VcChatRichText;
|
|
57
|
+
attachments: Array<VcChatAttachment>;
|
|
58
|
+
voice?: Blob;
|
|
59
|
+
}
|
|
60
|
+
export interface VcChatComposerProps {
|
|
61
|
+
/**
|
|
62
|
+
* The text in the `format` of the composer.
|
|
63
|
+
*/
|
|
64
|
+
modelValue?: unknown;
|
|
65
|
+
/**
|
|
66
|
+
* Value format: `entities` — `{ text, entities }`, `markdown`, `html` or a custom converter.
|
|
67
|
+
*/
|
|
68
|
+
format?: VcChatComposerBuiltInFormat | VcChatComposerFormat;
|
|
69
|
+
/**
|
|
70
|
+
* Enabled text formats (keyboard shortcuts and markdown-like typing).
|
|
71
|
+
*/
|
|
72
|
+
formats?: Array<VcChatTextFormatType>;
|
|
73
|
+
/**
|
|
74
|
+
* Users suggested after "@". Mentions are off when empty.
|
|
75
|
+
*/
|
|
76
|
+
mentions?: Array<VcChatMentionUser>;
|
|
77
|
+
attachments?: Array<VcChatAttachment>;
|
|
78
|
+
placeholder?: string;
|
|
79
|
+
disabled?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Accepted file types of the file dialog, e.g. `image/*,.pdf`.
|
|
82
|
+
*/
|
|
83
|
+
accept?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Maximum number of attachments.
|
|
86
|
+
*/
|
|
87
|
+
maxFiles?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Maximum size of one attachment, in bytes.
|
|
90
|
+
*/
|
|
91
|
+
fileSizeLimit?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Maximum total size of the attachments, in bytes.
|
|
94
|
+
*/
|
|
95
|
+
fileListSizeLimit?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Hint of the drop zone, e.g. "Images, PDF, DOCX — up to 25 MB each".
|
|
98
|
+
*/
|
|
99
|
+
dropHintText?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Emoji of the "Frequently used" group of the emoji picker.
|
|
102
|
+
*/
|
|
103
|
+
recentEmojis?: Array<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Shows the voice recording button.
|
|
106
|
+
*/
|
|
107
|
+
enableVoice?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Clears the text, the attachments and the voice message after `send`.
|
|
110
|
+
*/
|
|
111
|
+
clearOnSend?: boolean;
|
|
112
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PopoverPlacementType } from './VcPopover.types';
|
|
2
|
+
export interface VcEmojiPickerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Emoji shown in the "Frequently used" group at the top. The group is hidden when empty.
|
|
5
|
+
* The picker does not store them: keep the list on your side, e.g. from the `select` events.
|
|
6
|
+
*/
|
|
7
|
+
recentEmojis?: Array<string>;
|
|
8
|
+
/**
|
|
9
|
+
* Newest Unicode Emoji version shown. Newer emoji are hidden, as older systems
|
|
10
|
+
* (e.g. Windows 10, which supports up to 12.1) render them as empty boxes.
|
|
11
|
+
*/
|
|
12
|
+
maxEmojiVersion?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Close the popover after an emoji is picked. Off by default, so several emoji can be picked in a row.
|
|
15
|
+
*/
|
|
16
|
+
closeOnSelect?: boolean;
|
|
17
|
+
placement?: PopoverPlacementType;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
teleported?: boolean;
|
|
20
|
+
}
|
|
@@ -8,3 +8,7 @@ export interface FileUploaded extends File {
|
|
|
8
8
|
File: string | ArrayBuffer | null | File;
|
|
9
9
|
}
|
|
10
10
|
export type ReturnFileType = 'base64' | 'file';
|
|
11
|
+
/**
|
|
12
|
+
* Upload state of a VcFileItem; no status means a plain file.
|
|
13
|
+
*/
|
|
14
|
+
export type VcFileItemStatus = 'uploading' | 'error';
|
|
@@ -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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voicenter-team/voicenter-ui-plus",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite",
|
|
6
6
|
"build": "vite build",
|
|
@@ -101,16 +101,31 @@
|
|
|
101
101
|
"@codemirror/lang-html": "^6.0.0",
|
|
102
102
|
"@codemirror/lang-json": "^6.0.1",
|
|
103
103
|
"@codemirror/lang-markdown": "^6.0.0",
|
|
104
|
+
"@floating-ui/dom": "^1.8.0",
|
|
104
105
|
"@lucide/vue": "^1.16.0",
|
|
105
106
|
"@milkdown/crepe": "^7.15.5",
|
|
106
107
|
"@milkdown/kit": "^7.15.5",
|
|
107
108
|
"@milkdown/utils": "^7.15.5",
|
|
108
109
|
"@milkdown/vue": "^7.15.5",
|
|
109
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",
|
|
110
124
|
"@vueuse/core": ">=10.7.2",
|
|
111
125
|
"codemirror": "^6.0.1",
|
|
112
126
|
"dayjs": "^1.11.19",
|
|
113
127
|
"element-plus": "^2.11.3",
|
|
128
|
+
"emojibase-data": "^17.0.0",
|
|
114
129
|
"highlight.js": "^11.6.0",
|
|
115
130
|
"libphonenumber-js": "^1.10.13",
|
|
116
131
|
"lodash-es": "^4.17.21",
|
|
@@ -124,6 +139,7 @@
|
|
|
124
139
|
},
|
|
125
140
|
"devDependencies": {
|
|
126
141
|
"@codemirror/lang-json": "^6.0.1",
|
|
142
|
+
"@floating-ui/dom": "^1.8.0",
|
|
127
143
|
"@fullhuman/postcss-purgecss": "^7.0.2",
|
|
128
144
|
"@highlightjs/vue-plugin": "^2.1.0",
|
|
129
145
|
"@lucide/vue": "^1.16.0",
|
|
@@ -132,6 +148,19 @@
|
|
|
132
148
|
"@milkdown/utils": "7.15.5",
|
|
133
149
|
"@milkdown/vue": "7.15.5",
|
|
134
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",
|
|
135
164
|
"@types/json-schema": "^7.0.15",
|
|
136
165
|
"@types/lodash-es": "^4.17.12",
|
|
137
166
|
"@types/node": "^18.7.6",
|
|
@@ -151,6 +180,7 @@
|
|
|
151
180
|
"codemirror": "^6.0.1",
|
|
152
181
|
"cross-env": "^7.0.3",
|
|
153
182
|
"dotenv": "^16.4.7",
|
|
183
|
+
"emojibase-data": "^17.0.0",
|
|
154
184
|
"eslint": "^8.57.1",
|
|
155
185
|
"eslint-plugin-standard": "^5.0.0",
|
|
156
186
|
"eslint-plugin-vue": "9.21.1",
|