@vunk/plus 1.6.7 → 1.6.9
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 +7 -4
- 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.css +0 -8
- package/components/sender/index.d.ts +4 -0
- package/components/sender/index.mjs +101 -69
- 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 +14 -7
- 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/index.css +0 -8
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted,
|
|
1
|
+
import { defineComponent, ref, onMounted, openBlock, createElementBlock, Fragment, createElementVNode, renderSlot } from 'vue';
|
|
2
2
|
import lottie from 'lottie-web';
|
|
3
3
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
@@ -58,7 +58,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
58
58
|
/* STABLE_FRAGMENT */
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
var VkLottieAnimation = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
61
|
+
var VkLottieAnimation = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/lottie-animation/src/index.vue"]]);
|
|
62
62
|
|
|
63
63
|
var types = /*#__PURE__*/Object.freeze({
|
|
64
64
|
__proto__: null
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
path: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
}>, {
|
|
8
|
+
lottieNode: Ref<HTMLDivElement, HTMLDivElement>;
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
load: (e: import("./types").LoadEvent) => import("./types").LoadEvent;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
path: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>> & Readonly<{
|
|
17
|
+
onLoad?: ((e: import("./types").LoadEvent) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
path: string;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent, ref, shallowReactive, onMounted,
|
|
1
|
+
import { defineComponent, ref, shallowReactive, onMounted, openBlock, createElementBlock, Fragment, createVNode, mergeProps, createBlock, createCommentVNode } from 'vue';
|
|
2
2
|
import { VkBroadcastingMarkdown } from '@vunk/plus/components/broadcasting-markdown';
|
|
3
3
|
import { VkPixiFrameBitmap, VkPixiFrameCore } from '@vunk/plus/components/pixi-frame';
|
|
4
|
-
import { StreamingInferenceService, getStremingStartData,
|
|
4
|
+
import { StreamingInferenceService, getStremingStartData, processStreaming, blobToAudioBuffer } from '@vunk/plus/shared/audioToFrames';
|
|
5
5
|
export { workerConfig } from '@vunk/plus/shared/audioToFrames';
|
|
6
6
|
import { useModelComputed } from '@vunk/core/composables';
|
|
7
7
|
import { setData } from '@vunk/core/shared';
|
|
8
8
|
import { TickerStatus } from '@vunk/shared/enum';
|
|
9
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
9
10
|
|
|
10
11
|
const props = {
|
|
11
12
|
/**
|
|
@@ -71,7 +72,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
72
|
__name: "index",
|
|
72
73
|
props: props,
|
|
73
74
|
emits,
|
|
74
|
-
setup(__props, { emit: __emit }) {
|
|
75
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
76
|
+
__expose();
|
|
75
77
|
const props = __props;
|
|
76
78
|
const emit = __emit;
|
|
77
79
|
const paragraphData = ref([]);
|
|
@@ -149,49 +151,64 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
151
|
}
|
|
150
152
|
ready.value = true;
|
|
151
153
|
}
|
|
152
|
-
|
|
153
|
-
return
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}), null, 16, ["status", "data", "text-to-speech", "source"]),
|
|
166
|
-
createVNode(unref(VkPixiFrameBitmap), {
|
|
167
|
-
status: unref(frameStatus),
|
|
168
|
-
"onUpdate:status": _cache[1] || (_cache[1] = ($event) => isRef(frameStatus) ? frameStatus.value = $event : null),
|
|
169
|
-
data: frameUrls.value,
|
|
170
|
-
onSetData: _cache[2] || (_cache[2] = ($event) => unref(setData)(frameUrls.value, $event))
|
|
171
|
-
}, null, 8, ["status", "data"]),
|
|
172
|
-
ready.value ? (openBlock(), createBlock(unref(VkPixiFrameCore), {
|
|
173
|
-
key: 0,
|
|
174
|
-
status: slientFrameStatus.value,
|
|
175
|
-
"onUpdate:status": _cache[3] || (_cache[3] = ($event) => slientFrameStatus.value = $event),
|
|
176
|
-
data: unref(silentFrameUrls),
|
|
177
|
-
loop: true,
|
|
178
|
-
prerender: true,
|
|
179
|
-
visible: unref(frameStatus) !== unref(TickerStatus).playing
|
|
180
|
-
}, null, 8, ["status", "data", "visible"])) : createCommentVNode("v-if", true)
|
|
181
|
-
],
|
|
182
|
-
64
|
|
183
|
-
/* STABLE_FRAGMENT */
|
|
184
|
-
);
|
|
185
|
-
};
|
|
154
|
+
const __returned__ = { props, emit, paragraphData, streamingInferenceService, frameUrls, silentFrameUrls, frameStatus, slientFrameStatus, requestProcessStreaming, processingParagraph, allParagraphCompleted, ready, loadAllSilentFrames, get VkBroadcastingMarkdown() {
|
|
155
|
+
return VkBroadcastingMarkdown;
|
|
156
|
+
}, get VkPixiFrameBitmap() {
|
|
157
|
+
return VkPixiFrameBitmap;
|
|
158
|
+
}, get VkPixiFrameCore() {
|
|
159
|
+
return VkPixiFrameCore;
|
|
160
|
+
}, get setData() {
|
|
161
|
+
return setData;
|
|
162
|
+
}, get TickerStatus() {
|
|
163
|
+
return TickerStatus;
|
|
164
|
+
} };
|
|
165
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
166
|
+
return __returned__;
|
|
186
167
|
}
|
|
187
168
|
});
|
|
188
169
|
|
|
170
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
171
|
+
return openBlock(), createElementBlock(
|
|
172
|
+
Fragment,
|
|
173
|
+
null,
|
|
174
|
+
[
|
|
175
|
+
createVNode($setup["VkBroadcastingMarkdown"], mergeProps(_ctx.$attrs, {
|
|
176
|
+
status: $setup.frameStatus,
|
|
177
|
+
data: $setup.paragraphData,
|
|
178
|
+
"text-to-speech": _ctx.textToSpeech,
|
|
179
|
+
source: _ctx.source,
|
|
180
|
+
processing: $setup.processingParagraph,
|
|
181
|
+
onSetData: _cache[0] || (_cache[0] = ($event) => $setup.setData($setup.paragraphData, $event)),
|
|
182
|
+
"onUpdate:completed": $setup.allParagraphCompleted
|
|
183
|
+
}), null, 16, ["status", "data", "text-to-speech", "source"]),
|
|
184
|
+
createVNode($setup["VkPixiFrameBitmap"], {
|
|
185
|
+
status: $setup.frameStatus,
|
|
186
|
+
"onUpdate:status": _cache[1] || (_cache[1] = ($event) => $setup.frameStatus = $event),
|
|
187
|
+
data: $setup.frameUrls,
|
|
188
|
+
onSetData: _cache[2] || (_cache[2] = ($event) => $setup.setData($setup.frameUrls, $event))
|
|
189
|
+
}, null, 8, ["status", "data"]),
|
|
190
|
+
$setup.ready ? (openBlock(), createBlock($setup["VkPixiFrameCore"], {
|
|
191
|
+
key: 0,
|
|
192
|
+
status: $setup.slientFrameStatus,
|
|
193
|
+
"onUpdate:status": _cache[3] || (_cache[3] = ($event) => $setup.slientFrameStatus = $event),
|
|
194
|
+
data: $setup.silentFrameUrls,
|
|
195
|
+
loop: true,
|
|
196
|
+
prerender: true,
|
|
197
|
+
visible: $setup.frameStatus !== $setup.TickerStatus.playing
|
|
198
|
+
}, null, 8, ["status", "data", "visible"])) : createCommentVNode("v-if", true)
|
|
199
|
+
],
|
|
200
|
+
64
|
|
201
|
+
/* STABLE_FRAGMENT */
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
var VkMetahumanBroadcasting = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/metahuman-broadcasting/src/index.vue"]]);
|
|
205
|
+
|
|
189
206
|
var types = /*#__PURE__*/Object.freeze({
|
|
190
207
|
__proto__: null
|
|
191
208
|
});
|
|
192
209
|
|
|
193
|
-
|
|
194
|
-
app.component(
|
|
210
|
+
VkMetahumanBroadcasting.install = (app) => {
|
|
211
|
+
app.component(VkMetahumanBroadcasting.name || "VkMetahumanBroadcasting", VkMetahumanBroadcasting);
|
|
195
212
|
};
|
|
196
213
|
|
|
197
|
-
export {
|
|
214
|
+
export { VkMetahumanBroadcasting, types as __VkMetahumanBroadcasting, VkMetahumanBroadcasting as default };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { TickerStatus } from '@vunk/shared/enum';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
/**
|
|
5
|
+
* @description 传入文本
|
|
6
|
+
*/
|
|
7
|
+
source: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @description 文本转语音的函数
|
|
13
|
+
*/
|
|
14
|
+
textToSpeech: {
|
|
15
|
+
type: PropType<(text: string) => Promise<Blob>>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @description 模型地址
|
|
20
|
+
*/
|
|
21
|
+
modelUrl: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @description 数据集地址
|
|
27
|
+
*/
|
|
28
|
+
datasetUrl: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @description zip 资源包地址
|
|
34
|
+
*/
|
|
35
|
+
sourceUrl: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @description 播报状态
|
|
41
|
+
* @default TickerStatus.pending
|
|
42
|
+
*/
|
|
43
|
+
status: {
|
|
44
|
+
type: PropType<TickerStatus>;
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* @description 缓存多少帧后开始播放
|
|
49
|
+
*/
|
|
50
|
+
playAfterCache: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const emits: {
|
|
56
|
+
'update:status': null;
|
|
57
|
+
};
|