@vunk/plus 1.12.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/components/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  2. package/components/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  3. package/components/agent-chat-provider/index.cjs +1 -0
  4. package/components/agent-chat-provider/index.mjs +113 -187
  5. package/components/agent-chat-provider/src/index.vue.d.ts +3 -2
  6. package/components/avatar/index.cjs +1 -0
  7. package/components/avatar/index.mjs +25 -31
  8. package/components/avatar/src/index.vue.d.ts +40 -39
  9. package/components/broadcasting-markdown/__tests__/const.test.d.ts +1 -0
  10. package/components/broadcasting-markdown/__tests__/utils.test.d.ts +1 -0
  11. package/components/broadcasting-markdown/index.cjs +5 -0
  12. package/components/broadcasting-markdown/index.mjs +346 -4376
  13. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +18 -24
  14. package/components/broadcasting-markdown/src/index.vue.d.ts +101 -51
  15. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +17 -29
  16. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +2 -59
  17. package/components/bubble-list/index.cjs +1 -0
  18. package/components/bubble-list/index.mjs +220 -302
  19. package/components/bubble-list/src/core/index.vue.d.ts +40 -885
  20. package/components/bubble-list/src/core/loading.vue.d.ts +3 -0
  21. package/components/bubble-list/src/index.vue.d.ts +29 -1321
  22. package/components/bubble-templates/index.cjs +1 -0
  23. package/components/bubble-templates/index.mjs +34 -49
  24. package/components/bubble-templates/src/index.vue.d.ts +3 -224
  25. package/components/chat-independent/index.cjs +1 -0
  26. package/components/chat-independent/index.mjs +105 -212
  27. package/components/chat-independent/src/index.vue.d.ts +20 -2712
  28. package/components/components.css +1 -0
  29. package/components/drawer/index.cjs +1 -0
  30. package/components/drawer/index.mjs +53 -94
  31. package/components/drawer/src/ctx.d.ts +22 -22
  32. package/components/drawer/src/index.vue.d.ts +84 -557
  33. package/components/index.cjs +1 -0
  34. package/components/index.d.ts +1 -0
  35. package/components/lottie-animation/index.cjs +1 -0
  36. package/components/lottie-animation/index.mjs +36 -55
  37. package/components/lottie-animation/src/index.vue.d.ts +3 -2
  38. package/components/metahuman-broadcasting/index.cjs +1 -0
  39. package/components/metahuman-broadcasting/index.mjs +89 -140
  40. package/components/metahuman-broadcasting/src/index.vue.d.ts +16 -718
  41. package/components/monaco-editor/index.cjs +1 -0
  42. package/components/monaco-editor/index.mjs +75 -73
  43. package/components/monaco-editor/src/ctx.d.ts +10 -4
  44. package/components/monaco-editor/src/index.vue.d.ts +17 -2
  45. package/components/monaco-environment/index.cjs +1 -0
  46. package/components/monaco-environment/index.mjs +23 -38
  47. package/components/monaco-environment/src/index.vue.d.ts +2 -1
  48. package/components/pixi-frame/index.cjs +1 -0
  49. package/components/pixi-frame/index.mjs +501 -1978
  50. package/components/pixi-frame/src/apng.vue.d.ts +17 -73
  51. package/components/pixi-frame/src/bitmap-generator.vue.d.ts +24 -66
  52. package/components/pixi-frame/src/bitmap.vue.d.ts +28 -80
  53. package/components/pixi-frame/src/buffer-image.vue.d.ts +29 -97
  54. package/components/pixi-frame/src/core.vue.d.ts +20 -75
  55. package/components/pixi-frame/src/index.vue.d.ts +302 -237
  56. package/components/pixi-frame/src/provider.vue.d.ts +12 -1
  57. package/components/pixi-frame/src/video.vue.d.ts +17 -71
  58. package/components/pixi-frame/src/view.vue.d.ts +4 -16
  59. package/components/recorder-button/index.cjs +1 -0
  60. package/components/recorder-button/index.mjs +140 -269
  61. package/components/recorder-button/src/index.vue.d.ts +67 -66
  62. package/components/routes-menu-content/index.cjs +1 -0
  63. package/components/routes-menu-content/index.mjs +150 -229
  64. package/components/routes-menu-content/src/index.vue.d.ts +27 -26
  65. package/components/routes-menu-content/src/item/core/index.vue.d.ts +27 -26
  66. package/components/routes-menu-content/src/item/index.vue.d.ts +27 -26
  67. package/components/scrollbar/index.cjs +1 -0
  68. package/components/scrollbar/index.mjs +288 -567
  69. package/components/scrollbar/src/bar.vue.d.ts +6 -133
  70. package/components/scrollbar/src/index.vue.d.ts +66 -337
  71. package/components/scrollbar/src/thumb.vue.d.ts +3 -80
  72. package/components/sender/index.cjs +1 -0
  73. package/components/sender/index.mjs +156 -285
  74. package/components/sender/src/SenderHeader.vue.d.ts +14 -221
  75. package/components/sender/src/index.vue.d.ts +16 -505
  76. package/components/speech-button/index.cjs +1 -0
  77. package/components/speech-button/index.mjs +98 -144
  78. package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -1
  79. package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -1
  80. package/components/speech-button/src/index.vue.d.ts +6 -5
  81. package/components/table-columns/index.cjs +1 -0
  82. package/components/table-columns/index.mjs +48 -78
  83. package/components/table-columns/src/ctx.d.ts +12 -12
  84. package/components/table-columns/src/el-ctx.d.ts +3 -3
  85. package/components/table-columns/src/index.vue.d.ts +28 -27
  86. package/components/tables-v1/index.cjs +1 -0
  87. package/components/tables-v1/index.mjs +99 -160
  88. package/components/tables-v1/src/ctx.d.ts +38 -38
  89. package/components/tables-v1/src/el-ctx.d.ts +7 -7
  90. package/components/tables-v1/src/index.vue.d.ts +111 -2266
  91. package/components/tables-v1-checkbox/index.cjs +1 -0
  92. package/components/tables-v1-checkbox/index.mjs +116 -4043
  93. package/components/tables-v1-checkbox/src/ctx.d.ts +36 -36
  94. package/components/tables-v1-checkbox/src/index.vue.d.ts +224 -2378
  95. package/components/text/index.cjs +1 -0
  96. package/components/text/index.mjs +70 -108
  97. package/components/text/src/ctx.d.ts +32 -32
  98. package/components/text/src/index.vue.d.ts +92 -1819
  99. package/components/thinking/index.cjs +1 -0
  100. package/components/thinking/index.mjs +127 -227
  101. package/components/thinking/src/index.vue.d.ts +23 -2045
  102. package/components/typing-markdown/index.cjs +1 -0
  103. package/components/typing-markdown/index.mjs +61 -201
  104. package/components/typing-markdown/src/index.vue.d.ts +3 -2
  105. package/components/vditor/index.cjs +1 -0
  106. package/components/vditor/index.mjs +121 -195
  107. package/components/vditor/src/ctx.d.ts +2 -2
  108. package/components/vditor/src/handle-fullscreen.vue.d.ts +3 -2
  109. package/components/vditor/src/handle-value.vue.d.ts +3 -2
  110. package/components/vditor/src/index.vue.d.ts +5 -4
  111. package/components/xgplayer/index.cjs +1 -0
  112. package/components/xgplayer/index.mjs +49 -90
  113. package/components/xgplayer/src/core.vue.d.ts +13 -18
  114. package/components/xgplayer/src/index.vue.d.ts +13 -67
  115. package/composables/el-breakpoints/index.cjs +1 -0
  116. package/composables/el-breakpoints/index.d.ts +10 -10
  117. package/composables/el-breakpoints/index.mjs +10 -12
  118. package/composables/index.cjs +1 -0
  119. package/composables/index.d.ts +1 -0
  120. package/composables/recorder/index.cjs +1 -0
  121. package/composables/recorder/index.mjs +9172 -14803
  122. package/element/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  123. package/element/bubble/index.cjs +3 -0
  124. package/element/bubble/index.d.ts +1 -1
  125. package/element/bubble/index.mjs +1 -1
  126. package/element/bubble/src/index.vue.d.ts +22 -22
  127. package/element/index.css +1 -1
  128. package/element/thinking/index.cjs +1 -0
  129. package/element/thinking/index.d.ts +1 -1
  130. package/element/thinking/index.mjs +1 -1
  131. package/element/thinking/src/index.vue.d.ts +26 -26
  132. package/element/thinking/src/types.d.ts +10 -0
  133. package/icons/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  134. package/icons/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  135. package/icons/end/index.cjs +1 -0
  136. package/icons/end/index.mjs +21 -26
  137. package/icons/end/src/index.vue.d.ts +3 -0
  138. package/icons/keyboard/index.cjs +1 -0
  139. package/icons/keyboard/index.mjs +21 -26
  140. package/icons/keyboard/src/index.vue.d.ts +3 -0
  141. package/icons/start/index.cjs +1 -0
  142. package/icons/start/index.mjs +21 -26
  143. package/icons/start/src/index.vue.d.ts +3 -0
  144. package/icons/voice/index.cjs +1 -0
  145. package/icons/voice/index.mjs +26 -44
  146. package/icons/voice/src/index.vue.d.ts +2 -3
  147. package/index.css +2 -558
  148. package/index.d.ts +1 -0
  149. package/package.json +78 -87
  150. package/shared/data/index.cjs +1 -0
  151. package/shared/data/index.mjs +16 -22
  152. package/shared/types/index.cjs +1 -0
  153. package/shared/types/index.d.ts +1 -0
  154. package/components/LinkOutlined.mjs +0 -1321
  155. package/components/_commonjsHelpers.mjs +0 -7
  156. package/components/_plugin-vue_export-helper.mjs +0 -9
  157. package/components/bubble-list/index.css +0 -70
  158. package/components/bubble-templates/index.css +0 -4
  159. package/components/chat-independent/index.css +0 -47
  160. package/components/drawer/index.css +0 -124
  161. package/components/index2.mjs +0 -78
  162. package/components/lottie-animation/index.css +0 -4
  163. package/components/monaco-editor/index.css +0 -4
  164. package/components/pixi-frame/index.css +0 -4
  165. package/components/recorder-button/index.css +0 -69
  166. package/components/sender/index.css +0 -22
  167. package/components/speech-button/index.css +0 -10
  168. package/components/tables-v1/index.css +0 -7
  169. package/components/tables-v1-checkbox/index.css +0 -8
  170. package/components/thinking/index.css +0 -125
  171. package/components/typing-markdown/index.css +0 -31
  172. package/components/vditor/index.css +0 -12
  173. package/components/xgplayer/index.css +0 -1
  174. package/icons/_plugin-vue_export-helper.mjs +0 -9
@@ -1,23 +1,16 @@
1
- import { defineComponent, defineAsyncComponent, ref, computed, nextTick, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, renderSlot, normalizeProps, guardReactiveProps, Fragment, withDirectives, vShow, createCommentVNode } from 'vue';
2
- import { useAgentChat } from '@vunk/plus/components/agent-chat-provider';
3
- import { VkBubbleList } from '@vunk/plus/components/bubble-list';
4
- import { VkBubbleData } from '@vunk/plus/components/bubble-templates';
5
- import { VkSender } from '@vunk/plus/components/sender';
6
- import { VkKeyboardAvatar } from '@vunk/plus/icons/keyboard';
7
- import { VkVoiceAvatar } from '@vunk/plus/icons/voice';
8
- import { VkDuplex } from '@vunk/core';
9
- import { useDataComputed, useDeferred } from '@vunk/core/composables';
10
- import { isNotEmptyObject } from '@vunk/shared/object';
11
- import { waiting } from '@vunk/shared/promise';
12
- import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
13
-
14
- var InputType = /* @__PURE__ */ ((InputType2) => {
15
- InputType2["Voice"] = "voice";
16
- InputType2["Text"] = "text";
17
- return InputType2;
18
- })(InputType || {});
19
-
20
- const props = {
1
+ import { defineComponent as O, defineAsyncComponent as E, ref as k, computed as p, createElementBlock as D, openBlock as C, createElementVNode as m, createVNode as r, unref as e, withCtx as u, createCommentVNode as F, withDirectives as b, Fragment as P, vShow as v, renderSlot as h, normalizeProps as q, guardReactiveProps as K, nextTick as M } from "vue";
2
+ import { useAgentChat as U } from "@vunk/plus/components/agent-chat-provider";
3
+ import { VkBubbleList as G } from "@vunk/plus/components/bubble-list";
4
+ import { VkBubbleData as H } from "@vunk/plus/components/bubble-templates";
5
+ import { VkSender as J } from "@vunk/plus/components/sender";
6
+ import { VkKeyboardAvatar as Q } from "@vunk/plus/icons/keyboard";
7
+ import { VkVoiceAvatar as W } from "@vunk/plus/icons/voice";
8
+ import { VkDuplex as X } from "@vunk/core";
9
+ import { useDataComputed as Y, useDeferred as Z } from "@vunk/core/composables";
10
+ import { isNotEmptyObject as ee } from "@vunk/shared/object";
11
+ import { waiting as te } from "@vunk/shared/promise";
12
+ var a = /* @__PURE__ */ ((n) => (n.Voice = "voice", n.Text = "text", n))(a || {});
13
+ const oe = {
21
14
  /**
22
15
  * @description BubbleList渲染时数据, 受控于setData
23
16
  */
@@ -30,221 +23,121 @@ const props = {
30
23
  textToSpeech: {
31
24
  type: Function
32
25
  }
33
- };
34
- const emits = {
35
- setData: (e) => e
36
- };
37
-
38
- var _sfc_main = /* @__PURE__ */ defineComponent({
39
- ...{
40
- name: "VkChatIndependent"
41
- },
26
+ }, ne = {
27
+ setData: (n) => n
28
+ }, ae = { class: "vk-chat-independent" }, re = { class: "vk-chat-independent-main__bubbles" }, le = { class: "vk-chat-independent-footer" }, se = { class: "vk-chat-independent-background" }, V = /* @__PURE__ */ O({
29
+ name: "VkChatIndependent",
42
30
  __name: "index",
43
- props: props,
44
- emits: emits,
45
- setup(__props, { expose: __expose, emit: __emit }) {
46
- __expose();
47
- const props = __props;
48
- const emit = __emit;
49
- const VkRecorderButton = defineAsyncComponent(() => import('@vunk/plus/components/recorder-button'));
50
- const [bubbleData, setBubbleData] = useDataComputed({}, props, emit);
51
- const mainRef = ref();
52
- const inputType = ref(InputType.Text);
53
- const content = ref("");
54
- const bubbleListDef = useDeferred();
55
- const bubbleListReslove = bubbleListDef.resolve;
56
- const { simplicity } = useAgentChat();
57
- const { items: bubbleItems, onRequest } = simplicity;
58
- const lastBubbleItem = computed(() => {
59
- return bubbleItems.value.at(-1);
60
- });
61
- const lastBubbleData = computed(() => {
62
- return getBubbleDataAt(-1);
63
- });
64
- const clientLoading = computed(() => {
65
- if (lastBubbleItem.value?.loading === true) {
66
- return true;
67
- }
68
- if (isNotEmptyObject(lastBubbleData.value) && lastBubbleData.value.completed !== true) {
69
- return true;
70
- }
71
- return false;
72
- });
73
- const senderDisabled = computed(() => {
74
- if (lastBubbleData.value.error === true) {
75
- return false;
76
- }
77
- return lastBubbleItem.value?.loading === true || lastBubbleData.value.completed === false;
78
- });
79
- function onSubmit(nextContent) {
80
- if (!nextContent)
81
- return;
82
- onRequest(nextContent);
83
- nextTick(() => {
84
- content.value = "";
85
- });
86
- setTimeout(() => {
87
- bubbleListDef.value?.scrollToBottom();
88
- }, 400);
31
+ props: oe,
32
+ emits: ne,
33
+ setup(n, { emit: B }) {
34
+ const S = n, R = B, w = E(() => import("@vunk/plus/components/recorder-button")), [s, A] = Y({}, S, R), x = k(), l = k(a.Text), f = k(""), T = Z(), I = T.resolve, { simplicity: $ } = U(), { items: d, onRequest: j } = $, _ = p(() => d.value.at(-1)), c = p(() => N(-1)), z = p(() => !!(_.value?.loading === !0 || ee(c.value) && c.value.completed !== !0)), y = p(() => c.value.error === !0 ? !1 : _.value?.loading === !0 || c.value.completed === !1);
35
+ function g(t) {
36
+ t && (j(t), M(() => {
37
+ f.value = "";
38
+ }), setTimeout(() => {
39
+ T.value?.scrollToBottom();
40
+ }, 400));
89
41
  }
90
- function onCancel() {
91
- const lastBubble = bubbleItems.value.at(-1);
92
- if (!lastBubble)
93
- return;
94
- lastBubble.abortController?.abort();
95
- waiting(() => bubbleData.value[lastBubble.key], 60).then((lastBubbleData2) => {
96
- lastBubbleData2.elRef?.interrupt();
97
- bubbleData.value[lastBubble.key].completed = true;
98
- });
42
+ function L() {
43
+ const t = d.value.at(-1);
44
+ t && (t.abortController?.abort(), te(() => s.value[t.key], 60).then((o) => {
45
+ o.elRef?.interrupt(), s.value[t.key].completed = !0;
46
+ }));
99
47
  }
100
- function getBubbleDataAt(index) {
101
- const bubble = bubbleItems.value.at(index);
102
- if (bubble?.key && bubbleData.value[bubble.key]) {
103
- return bubbleData.value[bubble.key];
104
- }
105
- return {};
48
+ function N(t) {
49
+ const o = d.value.at(t);
50
+ return o?.key && s.value[o.key] ? s.value[o.key] : {};
106
51
  }
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 VkBubbleData() {
110
- return VkBubbleData;
111
- }, get VkSender() {
112
- return VkSender;
113
- }, get VkKeyboardAvatar() {
114
- return VkKeyboardAvatar;
115
- }, get VkVoiceAvatar() {
116
- return VkVoiceAvatar;
117
- }, get VkDuplex() {
118
- return VkDuplex;
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"], {
52
+ return (t, o) => (C(), D("div", ae, [
53
+ m("div", {
54
+ ref_key: "mainRef",
55
+ ref: x,
56
+ class: "vk-chat-independent-main"
57
+ }, [
58
+ r(e(X), {
142
59
  "with-flex": "one",
143
60
  class: "vk-chat-independent-main__duplex"
144
61
  }, {
145
- one: withCtx(() => [
146
- createVNode($setup["VkBubbleData"], {
147
- data: $setup.bubbleData,
148
- onSetData: $setup.setBubbleData
62
+ one: u(() => [
63
+ r(e(H), {
64
+ data: e(s),
65
+ onSetData: e(A)
149
66
  }, {
150
- default: withCtx(() => [
151
- createElementVNode("div", _hoisted_3, [
152
- createVNode($setup["VkBubbleList"], {
153
- "el-ref": $setup.bubbleListReslove,
154
- items: $setup.bubbleItems,
155
- "text-to-speech": _ctx.textToSpeech
67
+ default: u(() => [
68
+ m("div", re, [
69
+ r(e(G), {
70
+ "el-ref": e(I),
71
+ items: e(d),
72
+ "text-to-speech": t.textToSpeech
156
73
  }, {
157
- renderer: withCtx(() => [
158
- renderSlot(_ctx.$slots, "bubble_renderer")
74
+ renderer: u(() => [
75
+ h(t.$slots, "bubble_renderer")
159
76
  ]),
160
- footer: withCtx((e) => [
161
- renderSlot(_ctx.$slots, "bubble_footer", normalizeProps(guardReactiveProps(e)))
77
+ footer: u((i) => [
78
+ h(t.$slots, "bubble_footer", q(K(i)))
162
79
  ]),
163
80
  _: 3
164
- /* FORWARDED */
165
81
  }, 8, ["el-ref", "items", "text-to-speech"])
166
82
  ])
167
83
  ]),
168
84
  _: 3
169
- /* FORWARDED */
170
85
  }, 8, ["data", "onSetData"])
171
86
  ]),
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
- placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9",
219
- "send-disabled": $setup.senderDisabled,
220
- loading: $setup.clientLoading,
221
- onSubmit: $setup.onSubmit,
222
- onCancel: $setup.onCancel
87
+ two: u(() => [
88
+ m("div", le, [
89
+ t.speechToText ? (C(), D(P, { key: 0 }, [
90
+ b(r(e(Q), {
91
+ size: 40,
92
+ onClick: o[0] || (o[0] = (i) => l.value = e(a).Text)
93
+ }, null, 512), [
94
+ [v, l.value === e(a).Voice]
95
+ ]),
96
+ b(r(e(w), {
97
+ "append-to": x.value,
98
+ disabled: y.value,
99
+ "speech-to-text": t.speechToText,
100
+ "submit-to-text": !0,
101
+ onSubmitText: g
102
+ }, null, 8, ["append-to", "disabled", "speech-to-text"]), [
103
+ [v, l.value === e(a).Voice]
104
+ ]),
105
+ b(r(e(W), {
106
+ size: 40,
107
+ onClick: o[1] || (o[1] = (i) => l.value = e(a).Voice)
108
+ }, null, 512), [
109
+ [v, l.value === e(a).Text]
110
+ ])
111
+ ], 64)) : F("", !0),
112
+ b(r(e(J), {
113
+ modelValue: f.value,
114
+ "onUpdate:modelValue": o[2] || (o[2] = (i) => f.value = i),
115
+ placeholder: "请输入内容",
116
+ "send-disabled": y.value,
117
+ loading: z.value,
118
+ onSubmit: g,
119
+ onCancel: L
223
120
  }, null, 8, ["modelValue", "send-disabled", "loading"]), [
224
- [vShow, $setup.inputType === $setup.InputType.Text]
121
+ [v, l.value === e(a).Text]
225
122
  ])
226
123
  ])
227
124
  ]),
228
125
  _: 3
229
- /* FORWARDED */
230
126
  })
231
- ],
232
- 512
233
- /* NEED_PATCH */
234
- ),
235
- createElementVNode("div", _hoisted_5, [
236
- renderSlot(_ctx.$slots, "background")
237
- ])
238
- ]);
239
- }
240
- 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"]]);
241
-
242
- var types = /*#__PURE__*/Object.freeze({
127
+ ], 512),
128
+ m("div", se, [
129
+ h(t.$slots, "background")
130
+ ])
131
+ ]));
132
+ }
133
+ }), Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
243
134
  __proto__: null
244
- });
245
-
246
- VkChatIndependent.install = (app) => {
247
- app.component(VkChatIndependent.name || "VkChatIndependent", VkChatIndependent);
135
+ }, Symbol.toStringTag, { value: "Module" }));
136
+ V.install = (n) => {
137
+ n.component(V.name || "VkChatIndependent", V);
138
+ };
139
+ export {
140
+ V as VkChatIndependent,
141
+ Ve as __VkChatIndependent,
142
+ V as default
248
143
  };
249
-
250
- export { VkChatIndependent, types as __VkChatIndependent, VkChatIndependent as default };