@vunk/plus 1.10.2 → 1.10.3
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/WebGLRenderer.mjs +1 -1
- package/components/WebGPURenderer.mjs +1 -1
- package/components/agent-chat-provider/index.mjs +1 -1
- package/components/avatar/index.mjs +1 -1
- package/components/broadcasting-markdown/index.mjs +16 -13
- package/components/broadcasting-markdown/src/index.vue.d.ts +1 -75
- package/components/browserAll.mjs +1 -1
- package/components/bubble-list/index.mjs +3 -3
- package/components/bubble-templates/index.mjs +1 -1
- package/components/chat-independent/index.mjs +1 -1
- package/components/drawer/index.css +92 -92
- package/components/drawer/index.mjs +1 -1
- package/components/index2.mjs +90 -11
- package/components/lottie-animation/index.mjs +1 -1
- package/components/metahuman-broadcasting/index.d.ts +0 -1
- package/components/metahuman-broadcasting/index.mjs +3092 -68
- package/components/metahuman-broadcasting/src/index.vue.d.ts +75 -191
- package/components/monaco-editor/index.mjs +1 -1
- package/components/monaco-environment/index.mjs +1 -1
- package/components/pixi-frame/index.d.ts +4 -1
- package/components/pixi-frame/index.mjs +2 -2
- package/components/pixi-frame/src/bitmap-generator.vue.d.ts +146 -0
- package/components/recorder-button/index.mjs +1 -1
- package/components/routes-menu-content/index.mjs +3 -3
- package/components/scrollbar/index.mjs +3 -3
- package/components/sender/index.mjs +2 -2
- package/components/speech-button/index.mjs +3 -3
- package/components/table-columns/index.mjs +1 -1
- package/components/tables-v1/index.mjs +1 -1
- package/components/tables-v1-checkbox/index.mjs +1 -1
- package/components/text/index.mjs +1 -1
- package/components/typing-markdown/index.mjs +1 -1
- package/components/vditor/index.mjs +3 -3
- package/components/webworkerAll.mjs +1 -1
- package/components/xgplayer/index.mjs +2 -2
- package/icons/end/index.mjs +1 -1
- package/icons/keyboard/index.mjs +1 -1
- package/icons/start/index.mjs +1 -1
- package/icons/voice/index.mjs +1 -1
- package/index.css +92 -92
- package/package.json +4 -20
- package/shared/data/blobToAudioBuffer.d.ts +1 -0
- package/shared/data/imgUrlToBitmap.d.ts +1 -0
- package/shared/data/index.d.ts +2 -0
- package/shared/data/index.mjs +25 -0
- package/shared/StreamingInferenceService.mjs +0 -204
- package/shared/audioToFrames/index.d.ts +0 -19
- package/shared/audioToFrames/index.mjs +0 -44
- package/shared/audioToFrames/src/assets/mask.d.ts +0 -2
- package/shared/audioToFrames/src/audio/StreamingFeatureExtractorService.d.ts +0 -125
- package/shared/audioToFrames/src/audio/index.d.ts +0 -5
- package/shared/audioToFrames/src/audio/index.mjs +0 -375
- package/shared/audioToFrames/src/config.d.ts +0 -4
- package/shared/audioToFrames/src/core/constants.d.ts +0 -17
- package/shared/audioToFrames/src/core/index.d.ts +0 -6
- package/shared/audioToFrames/src/core/index.mjs +0 -24
- package/shared/audioToFrames/src/core/utils.d.ts +0 -26
- package/shared/audioToFrames/src/inference/StreamingInferenceService.d.ts +0 -189
- package/shared/audioToFrames/src/inference/index.d.ts +0 -5
- package/shared/audioToFrames/src/inference/index.mjs +0 -3
- package/shared/audioToFrames/src/media/DataLoaderService.d.ts +0 -59
- package/shared/audioToFrames/src/media/PredictiveFrameLoader.d.ts +0 -81
- package/shared/audioToFrames/src/media/index.d.ts +0 -6
- package/shared/audioToFrames/src/media/index.mjs +0 -236
- package/shared/config.mjs +0 -5
- package/shared/constants.mjs +0 -7
package/components/index2.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { provide, inject, watchEffect, onBeforeUnmount, defineComponent, useId, ref, onMounted, renderSlot, computed, nextTick,
|
|
1
|
+
import { provide, inject, watchEffect, onBeforeUnmount, defineComponent, useId, ref, onMounted, renderSlot, watch, computed, nextTick, openBlock, createElementBlock, resolveComponent, createBlock, withCtx, createVNode } from 'vue';
|
|
2
2
|
import { TickerStatus } from '@vunk/shared/enum';
|
|
3
3
|
import { Deferred, sleep } from '@vunk/shared/promise';
|
|
4
4
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
5
5
|
import { _ as _export_sfc } from './_plugin-vue_export-helper.mjs';
|
|
6
|
-
import { useModelComputed, useDeferred } from '@vunk/core/composables';
|
|
7
6
|
import { pickObject } from '@vunk/shared/object';
|
|
7
|
+
import { useModelComputed, useDeferred } from '@vunk/core/composables';
|
|
8
8
|
|
|
9
9
|
var lib = {exports: {}};
|
|
10
10
|
|
|
@@ -25564,7 +25564,7 @@ function useSprite(props) {
|
|
|
25564
25564
|
};
|
|
25565
25565
|
}
|
|
25566
25566
|
|
|
25567
|
-
var _sfc_main$
|
|
25567
|
+
var _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
25568
25568
|
__name: "apng",
|
|
25569
25569
|
props: {
|
|
25570
25570
|
...props,
|
|
@@ -25757,10 +25757,89 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25757
25757
|
}
|
|
25758
25758
|
});
|
|
25759
25759
|
|
|
25760
|
+
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25761
|
+
return renderSlot(_ctx.$slots, "default");
|
|
25762
|
+
}
|
|
25763
|
+
var ApngComp = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__file", "D:\\labCode\\vunk-plus\\packages\\components\\pixi-frame\\src\\apng.vue"]]);
|
|
25764
|
+
|
|
25765
|
+
var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
25766
|
+
__name: "bitmap-generator",
|
|
25767
|
+
props: {
|
|
25768
|
+
...pickObject(props, {
|
|
25769
|
+
excludes: ["loop"]
|
|
25770
|
+
}),
|
|
25771
|
+
generator: {
|
|
25772
|
+
type: Object,
|
|
25773
|
+
required: true
|
|
25774
|
+
}
|
|
25775
|
+
},
|
|
25776
|
+
emits: {
|
|
25777
|
+
"update:status": null,
|
|
25778
|
+
"load": (e) => e
|
|
25779
|
+
},
|
|
25780
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
25781
|
+
__expose();
|
|
25782
|
+
const props = __props;
|
|
25783
|
+
const emit = __emit;
|
|
25784
|
+
const { sprite, resizeSprite, application } = useSprite(props);
|
|
25785
|
+
const texture = new Texture({
|
|
25786
|
+
dynamic: true
|
|
25787
|
+
});
|
|
25788
|
+
sprite.texture = texture;
|
|
25789
|
+
function updateTextureFromBitmap(bitmap) {
|
|
25790
|
+
texture.source.destroy();
|
|
25791
|
+
const source = new ImageSource({
|
|
25792
|
+
resource: bitmap
|
|
25793
|
+
});
|
|
25794
|
+
texture.source = source;
|
|
25795
|
+
resizeSprite();
|
|
25796
|
+
texture.update();
|
|
25797
|
+
}
|
|
25798
|
+
emit("load", {
|
|
25799
|
+
application,
|
|
25800
|
+
sprite
|
|
25801
|
+
});
|
|
25802
|
+
watch(() => props.status, (newStatus) => {
|
|
25803
|
+
newStatus === TickerStatus.play && play();
|
|
25804
|
+
newStatus === TickerStatus.pause && pause();
|
|
25805
|
+
newStatus === TickerStatus.stop && stop();
|
|
25806
|
+
}, { immediate: true });
|
|
25807
|
+
function drawFrame() {
|
|
25808
|
+
if (props.status !== TickerStatus.playing) {
|
|
25809
|
+
return;
|
|
25810
|
+
}
|
|
25811
|
+
props.generator.next().then(({ value, done }) => {
|
|
25812
|
+
if (done) {
|
|
25813
|
+
return emit("update:status", TickerStatus.stopped);
|
|
25814
|
+
}
|
|
25815
|
+
updateTextureFromBitmap(value);
|
|
25816
|
+
});
|
|
25817
|
+
}
|
|
25818
|
+
function play() {
|
|
25819
|
+
application.ticker.minFPS = props.frameRate;
|
|
25820
|
+
application.ticker.maxFPS = props.frameRate;
|
|
25821
|
+
emit("update:status", TickerStatus.playing);
|
|
25822
|
+
application.ticker.add(drawFrame);
|
|
25823
|
+
}
|
|
25824
|
+
function pause() {
|
|
25825
|
+
emit("update:status", TickerStatus.paused);
|
|
25826
|
+
}
|
|
25827
|
+
function stop() {
|
|
25828
|
+
emit("update:status", TickerStatus.stopped);
|
|
25829
|
+
application.ticker.remove(drawFrame);
|
|
25830
|
+
}
|
|
25831
|
+
onBeforeUnmount(() => {
|
|
25832
|
+
});
|
|
25833
|
+
const __returned__ = { props, emit, sprite, resizeSprite, application, texture, updateTextureFromBitmap, drawFrame, play, pause, stop };
|
|
25834
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
25835
|
+
return __returned__;
|
|
25836
|
+
}
|
|
25837
|
+
});
|
|
25838
|
+
|
|
25760
25839
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25761
25840
|
return renderSlot(_ctx.$slots, "default");
|
|
25762
25841
|
}
|
|
25763
|
-
var
|
|
25842
|
+
var bitmapGenerator = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__file", "D:\\labCode\\vunk-plus\\packages\\components\\pixi-frame\\src\\bitmap-generator.vue"]]);
|
|
25764
25843
|
|
|
25765
25844
|
var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
25766
25845
|
__name: "bitmap",
|
|
@@ -25907,7 +25986,7 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
25907
25986
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25908
25987
|
return renderSlot(_ctx.$slots, "default");
|
|
25909
25988
|
}
|
|
25910
|
-
var Bitmap = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__file", "
|
|
25989
|
+
var Bitmap = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__file", "D:\\labCode\\vunk-plus\\packages\\components\\pixi-frame\\src\\bitmap.vue"]]);
|
|
25911
25990
|
|
|
25912
25991
|
var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
25913
25992
|
__name: "core",
|
|
@@ -26085,7 +26164,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26085
26164
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26086
26165
|
return renderSlot(_ctx.$slots, "default");
|
|
26087
26166
|
}
|
|
26088
|
-
var core = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__file", "
|
|
26167
|
+
var core = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__file", "D:\\labCode\\vunk-plus\\packages\\components\\pixi-frame\\src\\core.vue"]]);
|
|
26089
26168
|
|
|
26090
26169
|
var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
26091
26170
|
__name: "provider",
|
|
@@ -26101,7 +26180,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
26101
26180
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26102
26181
|
return renderSlot(_ctx.$slots, "default");
|
|
26103
26182
|
}
|
|
26104
|
-
var ProviderComp = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__file", "
|
|
26183
|
+
var ProviderComp = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__file", "D:\\labCode\\vunk-plus\\packages\\components\\pixi-frame\\src\\provider.vue"]]);
|
|
26105
26184
|
|
|
26106
26185
|
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
26107
26186
|
__name: "video",
|
|
@@ -26256,7 +26335,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
26256
26335
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26257
26336
|
return renderSlot(_ctx.$slots, "default");
|
|
26258
26337
|
}
|
|
26259
|
-
var VideoComp = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "
|
|
26338
|
+
var VideoComp = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "D:\\labCode\\vunk-plus\\packages\\components\\pixi-frame\\src\\video.vue"]]);
|
|
26260
26339
|
|
|
26261
26340
|
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
26262
26341
|
__name: "view",
|
|
@@ -26298,7 +26377,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26298
26377
|
/* NEED_PATCH */
|
|
26299
26378
|
);
|
|
26300
26379
|
}
|
|
26301
|
-
var ViewComp = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "
|
|
26380
|
+
var ViewComp = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "D:\\labCode\\vunk-plus\\packages\\components\\pixi-frame\\src\\view.vue"]]);
|
|
26302
26381
|
|
|
26303
26382
|
var _sfc_main = defineComponent({
|
|
26304
26383
|
name: "VkPixiFrame",
|
|
@@ -26366,7 +26445,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26366
26445
|
/* STABLE */
|
|
26367
26446
|
});
|
|
26368
26447
|
}
|
|
26369
|
-
var VkPixiFrame = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
26448
|
+
var VkPixiFrame = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-plus\\packages\\components\\pixi-frame\\src\\index.vue"]]);
|
|
26370
26449
|
|
|
26371
26450
|
var types = /*#__PURE__*/Object.freeze({
|
|
26372
26451
|
__proto__: null
|
|
@@ -26376,4 +26455,4 @@ VkPixiFrame.install = (app) => {
|
|
|
26376
26455
|
app.component(VkPixiFrame.name || "VkPixiFrame", VkPixiFrame);
|
|
26377
26456
|
};
|
|
26378
26457
|
|
|
26379
|
-
export { deprecation as $, AbstractRenderer as A, BufferUsage as B, Container as C, DOMAdapter as D, ExtensionType as E, Bounds as F, GpuProgram as G, FilterEffect as H, Sprite as I, getAttributeInfoFromFormat as J, unsafeEvalSupported as K, uid as L, Matrix as M, Rectangle as N, SystemRunner as O, Point as P, multiplyColors as Q, RendererType as R, STENCIL_MODES as S, Ticker as T, UPDATE_PRIORITY as U, UPDATE_COLOR as V, UPDATE_BLEND as W, UPDATE_VISIBLE as X, Color as Y, getLocalBounds as Z, VERSION as _, EventEmitter as a, v8_0_0 as a0, RendererInitHook as a1, Geometry as a2, checkMaxIfStatementsInShader as a3, compileHighShaderGlProgram as a4, colorBitGl as a5, generateTextureBatchBitGl as a6, roundPixelsBitGl as a7, getBatchSamplersUniformGroup as a8, ViewContainer as a9, GraphicsContext as aa, nextPow2 as ab, CanvasTextMetrics as ac, fontStringFromTextStyle as ad, getCanvasFillStyle as ae, TextStyle as af, BatchableGraphics as ag, getAdjustedBlendModeBlend as ah, ViewableBuffer as ai, TextureStyle as aj, BitmapFontManager as ak, getBitmapTextLayout as al, Cache as am, updateQuadBounds as an, GraphicsContextSystem as ao, VkPixiFrame as ap, ApngComp as aq, Bitmap as ar,
|
|
26458
|
+
export { deprecation as $, AbstractRenderer as A, BufferUsage as B, Container as C, DOMAdapter as D, ExtensionType as E, Bounds as F, GpuProgram as G, FilterEffect as H, Sprite as I, getAttributeInfoFromFormat as J, unsafeEvalSupported as K, uid as L, Matrix as M, Rectangle as N, SystemRunner as O, Point as P, multiplyColors as Q, RendererType as R, STENCIL_MODES as S, Ticker as T, UPDATE_PRIORITY as U, UPDATE_COLOR as V, UPDATE_BLEND as W, UPDATE_VISIBLE as X, Color as Y, getLocalBounds as Z, VERSION as _, EventEmitter as a, v8_0_0 as a0, RendererInitHook as a1, Geometry as a2, checkMaxIfStatementsInShader as a3, compileHighShaderGlProgram as a4, colorBitGl as a5, generateTextureBatchBitGl as a6, roundPixelsBitGl as a7, getBatchSamplersUniformGroup as a8, ViewContainer as a9, GraphicsContext as aa, nextPow2 as ab, CanvasTextMetrics as ac, fontStringFromTextStyle as ad, getCanvasFillStyle as ae, TextStyle as af, BatchableGraphics as ag, getAdjustedBlendModeBlend as ah, ViewableBuffer as ai, TextureStyle as aj, BitmapFontManager as ak, getBitmapTextLayout as al, Cache as am, updateQuadBounds as an, GraphicsContextSystem as ao, VkPixiFrame as ap, ApngComp as aq, Bitmap as ar, bitmapGenerator as as, core as at, ProviderComp as au, VideoComp as av, ViewComp as aw, types as ax, usePixiApp as ay, useSprite as az, Buffer as b, BindGroup as c, createIdFromString as d, extensions as e, fastCopy as f, getTextureBatchBindGroup as g, CLEAR as h, CanvasSource as i, TextureSource as j, UniformGroup as k, CanvasPool as l, compileHighShaderGpuProgram as m, colorBit as n, generateTextureBatchBit as o, roundPixelsBit as p, Shader as q, removeItems as r, Texture as s, GlProgram as t, TextureMatrix as u, DefaultBatcher as v, warn as w, BigPool as x, getGlobalBounds as y, TexturePool as z };
|
|
@@ -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], ["__file", "
|
|
61
|
+
var VkLottieAnimation = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-plus\\packages\\components\\lottie-animation\\src\\index.vue"]]);
|
|
62
62
|
|
|
63
63
|
var types = /*#__PURE__*/Object.freeze({
|
|
64
64
|
__proto__: null
|