@vunk/plus 1.6.8 → 1.6.10
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/components/SendOutlined.mjs +8 -6
- package/components/SharedSystems.mjs +290 -72
- package/components/WebGLRenderer.mjs +32 -20
- package/components/WebGPURenderer.mjs +48 -10
- package/components/agent-chat-provider/index.d.ts +7 -0
- package/components/agent-chat-provider/index.mjs +6 -3
- package/components/agent-chat-provider/src/api.d.ts +3 -0
- package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
- package/components/agent-chat-provider/src/const.d.ts +1 -0
- package/components/agent-chat-provider/src/index.vue.d.ts +22 -0
- package/components/agent-chat-provider/src/types.d.ts +50 -0
- package/components/agent-chat-provider/src/use.d.ts +5 -0
- package/components/avatar/index.d.ts +4 -0
- package/components/avatar/index.mjs +2 -2
- package/components/avatar/src/ctx.d.ts +6 -0
- package/components/avatar/src/index.vue.d.ts +180 -0
- package/components/avatar/src/types.d.ts +1 -0
- package/components/broadcasting-markdown/index.d.ts +7 -0
- package/components/broadcasting-markdown/index.mjs +78 -158
- package/components/broadcasting-markdown/src/const.d.ts +13 -0
- package/components/broadcasting-markdown/src/ctx.d.ts +129 -0
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +104 -0
- package/components/broadcasting-markdown/src/index.vue.d.ts +439 -0
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +79 -0
- package/components/broadcasting-markdown/src/speech-error.vue.d.ts +67 -0
- package/components/broadcasting-markdown/src/types.d.ts +26 -0
- package/components/broadcasting-markdown/src/use.d.ts +21 -0
- package/components/browserAll.mjs +333 -562
- package/components/bubble-list/index.d.ts +5 -0
- package/components/bubble-list/index.mjs +91 -72
- package/components/bubble-list/src/ctx.d.ts +32 -0
- package/components/bubble-list/src/index.vue.d.ts +810 -0
- package/components/bubble-list/src/types.d.ts +4 -0
- package/components/bubble-templates/index.d.ts +4 -0
- package/components/bubble-templates/index.mjs +83 -68
- package/components/bubble-templates/src/index.vue.d.ts +595 -0
- package/components/bubble-templates/src/types.d.ts +40 -0
- package/components/chat-independent/index.d.ts +4 -0
- package/components/chat-independent/index.mjs +136 -115
- package/components/chat-independent/src/const.d.ts +13 -0
- package/components/chat-independent/src/ctx.d.ts +21 -0
- package/components/chat-independent/src/index.vue.d.ts +2429 -0
- package/components/chat-independent/src/types.d.ts +13 -0
- package/components/colorToUniform.mjs +2 -0
- package/components/index.d.ts +0 -0
- package/components/index2.mjs +11896 -8381
- package/components/init.mjs +1724 -998
- package/components/lottie-animation/index.d.ts +4 -0
- package/components/lottie-animation/index.mjs +2 -2
- package/components/lottie-animation/src/ctx.d.ts +10 -0
- package/components/lottie-animation/src/index.vue.d.ts +21 -0
- package/components/lottie-animation/src/types.d.ts +4 -0
- package/components/metahuman-broadcasting/index.d.ts +5 -0
- package/components/metahuman-broadcasting/index.mjs +57 -40
- package/components/metahuman-broadcasting/src/ctx.d.ts +57 -0
- package/components/metahuman-broadcasting/src/index.vue.d.ts +885 -0
- package/components/metahuman-broadcasting/src/types.d.ts +1 -0
- package/components/monaco-editor/index.d.ts +5 -0
- package/components/monaco-editor/index.mjs +2 -2
- package/components/monaco-editor/src/ctx.d.ts +23 -0
- package/components/monaco-editor/src/index.vue.d.ts +40 -0
- package/components/monaco-editor/src/types.d.ts +1 -0
- package/components/monaco-environment/index.d.ts +4 -0
- package/components/monaco-environment/index.mjs +1 -1
- package/components/monaco-environment/src/ctx.d.ts +8 -0
- package/components/monaco-environment/src/index.vue.d.ts +2 -0
- package/components/monaco-environment/src/types.d.ts +1 -0
- package/components/pixi-frame/index.d.ts +11 -0
- package/components/pixi-frame/index.mjs +2 -2
- package/components/pixi-frame/src/apng.vue.d.ts +161 -0
- package/components/pixi-frame/src/bitmap.vue.d.ts +158 -0
- package/components/pixi-frame/src/core.vue.d.ts +173 -0
- package/components/pixi-frame/src/ctx.d.ts +55 -0
- package/components/pixi-frame/src/index.vue.d.ts +591 -0
- package/components/pixi-frame/src/provider.vue.d.ts +2 -0
- package/components/pixi-frame/src/types.d.ts +17 -0
- package/components/pixi-frame/src/use.d.ts +16 -0
- package/components/pixi-frame/src/useSprite.d.ts +12 -0
- package/components/pixi-frame/src/video.vue.d.ts +159 -0
- package/components/pixi-frame/src/view.vue.d.ts +29 -0
- package/components/recorder-button/index.d.ts +4 -0
- package/components/recorder-button/index.mjs +2 -2
- package/components/recorder-button/src/ctx.d.ts +41 -0
- package/components/recorder-button/src/index.vue.d.ts +333 -0
- package/components/recorder-button/src/speech-to-text.d.ts +1 -0
- package/components/recorder-button/src/types.d.ts +7 -0
- package/components/routes-menu-content/index.d.ts +4 -0
- package/components/routes-menu-content/index.mjs +5 -5
- package/components/routes-menu-content/src/ctx.d.ts +17 -0
- package/components/routes-menu-content/src/index.vue.d.ts +350 -0
- package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +185 -0
- package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
- package/components/routes-menu-content/src/item/index.vue.d.ts +316 -0
- package/components/routes-menu-content/src/types.d.ts +1 -0
- package/components/sender/index.d.ts +4 -0
- package/components/sender/index.mjs +180 -86
- package/components/sender/src/SenderHeader.vue.d.ts +270 -0
- package/components/sender/src/ctx.d.ts +64 -0
- package/components/sender/src/index.vue.d.ts +779 -0
- package/components/sender/src/types.d.ts +1 -0
- package/components/speech-button/index.d.ts +4 -0
- package/components/speech-button/index.mjs +13 -6
- package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/ctx.d.ts +10 -0
- package/components/speech-button/src/index.vue.d.ts +22 -0
- package/components/speech-button/src/types.d.ts +1 -0
- package/components/table-columns/index.d.ts +5 -0
- package/components/table-columns/index.mjs +6 -3
- package/components/table-columns/src/ctx.d.ts +59 -0
- package/components/table-columns/src/el-ctx.d.ts +57 -0
- package/components/table-columns/src/index.vue.d.ts +266 -0
- package/components/table-columns/src/types.d.ts +21 -0
- package/components/tables-v1/index.d.ts +5 -0
- package/components/tables-v1/index.mjs +3 -3
- package/components/tables-v1/src/ctx.d.ts +280 -0
- package/components/tables-v1/src/el-ctx.d.ts +262 -0
- package/components/tables-v1/src/index.vue.d.ts +3054 -0
- package/components/tables-v1/src/types.d.ts +3 -0
- package/components/tables-v1-checkbox/index.d.ts +5 -0
- package/components/tables-v1-checkbox/index.mjs +33 -269
- package/components/tables-v1-checkbox/src/ctx.d.ts +313 -0
- package/components/tables-v1-checkbox/src/index.vue.d.ts +3831 -0
- package/components/tables-v1-checkbox/src/types.d.ts +1 -0
- package/components/text/index.d.ts +4 -0
- package/components/text/index.mjs +52 -42
- package/components/text/src/ctx.d.ts +341 -0
- package/components/text/src/index.vue.d.ts +4593 -0
- package/components/text/src/types.d.ts +1 -0
- package/components/typing-markdown/index.d.ts +4 -0
- package/components/typing-markdown/index.mjs +2 -2
- package/components/typing-markdown/src/core.d.ts +2 -0
- package/components/typing-markdown/src/ctx.d.ts +41 -0
- package/components/typing-markdown/src/index.vue.d.ts +75 -0
- package/components/typing-markdown/src/types.d.ts +1 -0
- package/components/vditor/index.d.ts +5 -0
- package/components/vditor/index.mjs +9 -5
- package/components/vditor/src/ctx.d.ts +38 -0
- package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
- package/components/vditor/src/handle-value.vue.d.ts +18 -0
- package/components/vditor/src/index.vue.d.ts +143 -0
- package/components/vditor/src/types.d.ts +9 -0
- package/components/vditor/src/use.d.ts +4 -0
- package/components/webworkerAll.mjs +1 -1
- package/composables/el-breakpoints/index.d.ts +5 -5
- package/composables/recorder/index.mjs +191 -288
- package/icons/end/index.mjs +3 -3
- package/icons/end/src/avatar.d.ts +2 -11
- package/icons/end/src/icon.d.ts +2 -56
- package/icons/keyboard/index.mjs +3 -3
- package/icons/keyboard/src/avatar.d.ts +2 -11
- package/icons/keyboard/src/icon.d.ts +2 -56
- package/icons/start/index.mjs +3 -3
- package/icons/start/src/avatar.d.ts +2 -11
- package/icons/start/src/icon.d.ts +2 -56
- package/icons/voice/index.mjs +2 -2
- package/icons/voice/src/avatar.d.ts +2 -11
- package/icons/voice/src/icon.d.ts +2 -56
- package/package.json +1 -1
- package/shared/audioToFrames/index.mjs +10 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, defineAsyncComponent, ref, computed,
|
|
1
|
+
import { defineComponent, defineAsyncComponent, ref, computed, nextTick, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, renderSlot, normalizeProps, guardReactiveProps, Fragment, withDirectives, vShow, createCommentVNode } from 'vue';
|
|
2
2
|
import { useAgentChat } from '@vunk/plus/components/agent-chat-provider';
|
|
3
3
|
import { VkBubbleList } from '@vunk/plus/components/bubble-list';
|
|
4
4
|
import { VkSender } from '@vunk/plus/components/sender';
|
|
@@ -9,6 +9,7 @@ import { VkRendererData } from '@vunk/core/components/renderer-data';
|
|
|
9
9
|
import { useDataComputed, useDeferred } from '@vunk/core/composables';
|
|
10
10
|
import { isNotEmptyObject } from '@vunk/shared/object';
|
|
11
11
|
import { waiting } from '@vunk/shared/promise';
|
|
12
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
12
13
|
|
|
13
14
|
var InputType = /* @__PURE__ */ ((InputType2) => {
|
|
14
15
|
InputType2["Voice"] = "voice";
|
|
@@ -34,10 +35,6 @@ const emits = {
|
|
|
34
35
|
setData: (e) => e
|
|
35
36
|
};
|
|
36
37
|
|
|
37
|
-
const _hoisted_1 = { class: "vk-chat-independent" };
|
|
38
|
-
const _hoisted_2 = { class: "vk-chat-independent-main__bubbles" };
|
|
39
|
-
const _hoisted_3 = { class: "vk-chat-independent-footer" };
|
|
40
|
-
const _hoisted_4 = { class: "vk-chat-independent-background" };
|
|
41
38
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
39
|
...{
|
|
43
40
|
name: "VkChatIndependent"
|
|
@@ -45,7 +42,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
42
|
__name: "index",
|
|
46
43
|
props: props,
|
|
47
44
|
emits: emits,
|
|
48
|
-
setup(__props, { emit: __emit }) {
|
|
45
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
46
|
+
__expose();
|
|
49
47
|
const props = __props;
|
|
50
48
|
const emit = __emit;
|
|
51
49
|
const VkRecorderButton = defineAsyncComponent(() => import('@vunk/plus/components/recorder-button'));
|
|
@@ -106,125 +104,148 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
106
104
|
}
|
|
107
105
|
return {};
|
|
108
106
|
}
|
|
109
|
-
|
|
110
|
-
return
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
107
|
+
const __returned__ = { props, emit, VkRecorderButton, bubbleData, setBubbleData, mainRef, inputType, content, bubbleListDef, bubbleListReslove, simplicity, bubbleItems, onRequest, lastBubbleItem, lastBubbleData, clientLoading, senderDisabled, onSubmit, onCancel, getBubbleDataAt, get VkBubbleList() {
|
|
108
|
+
return VkBubbleList;
|
|
109
|
+
}, get VkSender() {
|
|
110
|
+
return VkSender;
|
|
111
|
+
}, get VkKeyboardAvatar() {
|
|
112
|
+
return VkKeyboardAvatar;
|
|
113
|
+
}, get VkVoiceAvatar() {
|
|
114
|
+
return VkVoiceAvatar;
|
|
115
|
+
}, get VkDuplex() {
|
|
116
|
+
return VkDuplex;
|
|
117
|
+
}, get VkRendererData() {
|
|
118
|
+
return VkRendererData;
|
|
119
|
+
}, get InputType() {
|
|
120
|
+
return InputType;
|
|
121
|
+
} };
|
|
122
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
123
|
+
return __returned__;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
const _hoisted_1 = { class: "vk-chat-independent" };
|
|
128
|
+
const _hoisted_2 = {
|
|
129
|
+
ref: "mainRef",
|
|
130
|
+
class: "vk-chat-independent-main"
|
|
131
|
+
};
|
|
132
|
+
const _hoisted_3 = { class: "vk-chat-independent-main__bubbles" };
|
|
133
|
+
const _hoisted_4 = { class: "vk-chat-independent-footer" };
|
|
134
|
+
const _hoisted_5 = { class: "vk-chat-independent-background" };
|
|
135
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
136
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
137
|
+
createElementVNode(
|
|
138
|
+
"div",
|
|
139
|
+
_hoisted_2,
|
|
140
|
+
[
|
|
141
|
+
createVNode($setup["VkDuplex"], {
|
|
142
|
+
"with-flex": "one",
|
|
143
|
+
class: "vk-chat-independent-main__duplex"
|
|
144
|
+
}, {
|
|
145
|
+
one: withCtx(() => [
|
|
146
|
+
createVNode($setup["VkRendererData"], {
|
|
147
|
+
data: $setup.bubbleData,
|
|
148
|
+
onSetData: $setup.setBubbleData
|
|
122
149
|
}, {
|
|
123
|
-
|
|
124
|
-
createVNode(unref(VkRendererData), {
|
|
125
|
-
data: unref(bubbleData),
|
|
126
|
-
onSetData: unref(setBubbleData)
|
|
127
|
-
}, {
|
|
128
|
-
default: withCtx(() => [
|
|
129
|
-
createElementVNode("div", _hoisted_2, [
|
|
130
|
-
createVNode(unref(VkBubbleList), {
|
|
131
|
-
"el-ref": unref(bubbleListReslove),
|
|
132
|
-
items: unref(bubbleItems),
|
|
133
|
-
"text-to-speech": _ctx.textToSpeech
|
|
134
|
-
}, {
|
|
135
|
-
renderer: withCtx(() => [
|
|
136
|
-
renderSlot(_ctx.$slots, "bubble_renderer")
|
|
137
|
-
]),
|
|
138
|
-
footer: withCtx((e) => [
|
|
139
|
-
renderSlot(_ctx.$slots, "bubble_footer", normalizeProps(guardReactiveProps(e)))
|
|
140
|
-
]),
|
|
141
|
-
_: 3
|
|
142
|
-
/* FORWARDED */
|
|
143
|
-
}, 8, ["el-ref", "items", "text-to-speech"])
|
|
144
|
-
])
|
|
145
|
-
]),
|
|
146
|
-
_: 3
|
|
147
|
-
/* FORWARDED */
|
|
148
|
-
}, 8, ["data", "onSetData"])
|
|
149
|
-
]),
|
|
150
|
-
two: withCtx(() => [
|
|
150
|
+
default: withCtx(() => [
|
|
151
151
|
createElementVNode("div", _hoisted_3, [
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
[vShow, inputType.value === unref(InputType).Voice]
|
|
167
|
-
]),
|
|
168
|
-
withDirectives(createVNode(unref(VkRecorderButton), {
|
|
169
|
-
"append-to": mainRef.value,
|
|
170
|
-
disabled: senderDisabled.value,
|
|
171
|
-
"speech-to-text": _ctx.speechToText,
|
|
172
|
-
"submit-to-text": true,
|
|
173
|
-
onSubmitText: onSubmit
|
|
174
|
-
}, null, 8, ["append-to", "disabled", "speech-to-text"]), [
|
|
175
|
-
[vShow, inputType.value === unref(InputType).Voice]
|
|
176
|
-
]),
|
|
177
|
-
withDirectives(createVNode(
|
|
178
|
-
unref(VkVoiceAvatar),
|
|
179
|
-
{
|
|
180
|
-
size: 40,
|
|
181
|
-
onClick: _cache[1] || (_cache[1] = ($event) => inputType.value = unref(InputType).Voice)
|
|
182
|
-
},
|
|
183
|
-
null,
|
|
184
|
-
512
|
|
185
|
-
/* NEED_PATCH */
|
|
186
|
-
), [
|
|
187
|
-
[vShow, inputType.value === unref(InputType).Text]
|
|
188
|
-
])
|
|
189
|
-
],
|
|
190
|
-
64
|
|
191
|
-
/* STABLE_FRAGMENT */
|
|
192
|
-
)) : createCommentVNode("v-if", true),
|
|
193
|
-
withDirectives(createVNode(unref(VkSender), {
|
|
194
|
-
modelValue: content.value,
|
|
195
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => content.value = $event),
|
|
196
|
-
"auto-size": true,
|
|
197
|
-
placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9",
|
|
198
|
-
"send-disabled": senderDisabled.value,
|
|
199
|
-
loading: clientLoading.value,
|
|
200
|
-
onSubmit,
|
|
201
|
-
onCancel
|
|
202
|
-
}, null, 8, ["modelValue", "send-disabled", "loading"]), [
|
|
203
|
-
[vShow, inputType.value === unref(InputType).Text]
|
|
204
|
-
])
|
|
152
|
+
createVNode($setup["VkBubbleList"], {
|
|
153
|
+
"el-ref": $setup.bubbleListReslove,
|
|
154
|
+
items: $setup.bubbleItems,
|
|
155
|
+
"text-to-speech": _ctx.textToSpeech
|
|
156
|
+
}, {
|
|
157
|
+
renderer: withCtx(() => [
|
|
158
|
+
renderSlot(_ctx.$slots, "bubble_renderer")
|
|
159
|
+
]),
|
|
160
|
+
footer: withCtx((e) => [
|
|
161
|
+
renderSlot(_ctx.$slots, "bubble_footer", normalizeProps(guardReactiveProps(e)))
|
|
162
|
+
]),
|
|
163
|
+
_: 3
|
|
164
|
+
/* FORWARDED */
|
|
165
|
+
}, 8, ["el-ref", "items", "text-to-speech"])
|
|
205
166
|
])
|
|
206
167
|
]),
|
|
207
168
|
_: 3
|
|
208
169
|
/* FORWARDED */
|
|
209
|
-
})
|
|
210
|
-
],
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
170
|
+
}, 8, ["data", "onSetData"])
|
|
171
|
+
]),
|
|
172
|
+
two: withCtx(() => [
|
|
173
|
+
createElementVNode("div", _hoisted_4, [
|
|
174
|
+
_ctx.speechToText ? (openBlock(), createElementBlock(
|
|
175
|
+
Fragment,
|
|
176
|
+
{ key: 0 },
|
|
177
|
+
[
|
|
178
|
+
withDirectives(createVNode(
|
|
179
|
+
$setup["VkKeyboardAvatar"],
|
|
180
|
+
{
|
|
181
|
+
size: 40,
|
|
182
|
+
onClick: _cache[0] || (_cache[0] = ($event) => $setup.inputType = $setup.InputType.Text)
|
|
183
|
+
},
|
|
184
|
+
null,
|
|
185
|
+
512
|
|
186
|
+
/* NEED_PATCH */
|
|
187
|
+
), [
|
|
188
|
+
[vShow, $setup.inputType === $setup.InputType.Voice]
|
|
189
|
+
]),
|
|
190
|
+
withDirectives(createVNode($setup["VkRecorderButton"], {
|
|
191
|
+
"append-to": $setup.mainRef,
|
|
192
|
+
disabled: $setup.senderDisabled,
|
|
193
|
+
"speech-to-text": _ctx.speechToText,
|
|
194
|
+
"submit-to-text": true,
|
|
195
|
+
onSubmitText: $setup.onSubmit
|
|
196
|
+
}, null, 8, ["append-to", "disabled", "speech-to-text"]), [
|
|
197
|
+
[vShow, $setup.inputType === $setup.InputType.Voice]
|
|
198
|
+
]),
|
|
199
|
+
withDirectives(createVNode(
|
|
200
|
+
$setup["VkVoiceAvatar"],
|
|
201
|
+
{
|
|
202
|
+
size: 40,
|
|
203
|
+
onClick: _cache[1] || (_cache[1] = ($event) => $setup.inputType = $setup.InputType.Voice)
|
|
204
|
+
},
|
|
205
|
+
null,
|
|
206
|
+
512
|
|
207
|
+
/* NEED_PATCH */
|
|
208
|
+
), [
|
|
209
|
+
[vShow, $setup.inputType === $setup.InputType.Text]
|
|
210
|
+
])
|
|
211
|
+
],
|
|
212
|
+
64
|
|
213
|
+
/* STABLE_FRAGMENT */
|
|
214
|
+
)) : createCommentVNode("v-if", true),
|
|
215
|
+
withDirectives(createVNode($setup["VkSender"], {
|
|
216
|
+
modelValue: $setup.content,
|
|
217
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $setup.content = $event),
|
|
218
|
+
"auto-size": true,
|
|
219
|
+
placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9",
|
|
220
|
+
"send-disabled": $setup.senderDisabled,
|
|
221
|
+
loading: $setup.clientLoading,
|
|
222
|
+
onSubmit: $setup.onSubmit,
|
|
223
|
+
onCancel: $setup.onCancel
|
|
224
|
+
}, null, 8, ["modelValue", "send-disabled", "loading"]), [
|
|
225
|
+
[vShow, $setup.inputType === $setup.InputType.Text]
|
|
226
|
+
])
|
|
227
|
+
])
|
|
228
|
+
]),
|
|
229
|
+
_: 3
|
|
230
|
+
/* FORWARDED */
|
|
231
|
+
})
|
|
232
|
+
],
|
|
233
|
+
512
|
|
234
|
+
/* NEED_PATCH */
|
|
235
|
+
),
|
|
236
|
+
createElementVNode("div", _hoisted_5, [
|
|
237
|
+
renderSlot(_ctx.$slots, "background")
|
|
238
|
+
])
|
|
239
|
+
]);
|
|
240
|
+
}
|
|
241
|
+
var VkChatIndependent = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/chat-independent/src/index.vue"]]);
|
|
221
242
|
|
|
222
243
|
var types = /*#__PURE__*/Object.freeze({
|
|
223
244
|
__proto__: null
|
|
224
245
|
});
|
|
225
246
|
|
|
226
|
-
|
|
227
|
-
app.component(
|
|
247
|
+
VkChatIndependent.install = (app) => {
|
|
248
|
+
app.component(VkChatIndependent.name || "VkChatIndependent", VkChatIndependent);
|
|
228
249
|
};
|
|
229
250
|
|
|
230
|
-
export {
|
|
251
|
+
export { VkChatIndependent, types as __VkChatIndependent, VkChatIndependent as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { __VkBubbleList } from '@vunk/plus/components/bubble-list';
|
|
2
|
+
import type { SetDataEvent } from '@vunk/core';
|
|
3
|
+
import type { PropType } from 'vue';
|
|
4
|
+
import type { SpeechToText, TextToSpeech } from './types';
|
|
5
|
+
export declare const props: {
|
|
6
|
+
/**
|
|
7
|
+
* @description BubbleList渲染时数据, 受控于setData
|
|
8
|
+
*/
|
|
9
|
+
data: {
|
|
10
|
+
type: PropType<__VkBubbleList.RenderData>;
|
|
11
|
+
};
|
|
12
|
+
speechToText: {
|
|
13
|
+
type: PropType<SpeechToText>;
|
|
14
|
+
};
|
|
15
|
+
textToSpeech: {
|
|
16
|
+
type: PropType<TextToSpeech>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const emits: {
|
|
20
|
+
setData: (e: SetDataEvent) => SetDataEvent;
|
|
21
|
+
};
|