@vunk/plus 1.7.3 → 1.7.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.
Files changed (42) hide show
  1. package/components/broadcasting-markdown/index.mjs +101 -238
  2. package/components/broadcasting-markdown/src/ctx.d.ts +1 -4
  3. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +49 -88
  4. package/components/broadcasting-markdown/src/index.vue.d.ts +44 -103
  5. package/components/broadcasting-markdown/src/types.d.ts +1 -1
  6. package/components/broadcasting-markdown/src/use.d.ts +6 -8
  7. package/components/bubble-templates/index.css +4 -0
  8. package/components/bubble-templates/index.mjs +7 -11412
  9. package/components/metahuman-broadcasting/index.mjs +8 -5
  10. package/components/metahuman-broadcasting/src/index.vue.d.ts +62 -114
  11. package/components/pixi-frame/src/apng.vue.d.ts +3 -3
  12. package/components/pixi-frame/src/bitmap.vue.d.ts +5 -5
  13. package/components/pixi-frame/src/core.vue.d.ts +5 -5
  14. package/components/pixi-frame/src/index.vue.d.ts +12 -12
  15. package/components/pixi-frame/src/video.vue.d.ts +3 -3
  16. package/components/typing-markdown/index.mjs +4 -7
  17. package/components/vditor/src/ctx.d.ts +1 -1
  18. package/components/vditor/src/index.vue.d.ts +1 -1
  19. package/index.css +5 -0
  20. package/package.json +4 -1
  21. package/shared/StreamingInferenceService.mjs +4 -1
  22. package/shared/audioToFrames/index.mjs +2 -5
  23. package/shared/audioToFrames/src/audio/StreamingFeatureExtractorService.d.ts +20 -4
  24. package/shared/audioToFrames/src/audio/index.d.ts +0 -2
  25. package/shared/audioToFrames/src/audio/index.mjs +84 -157
  26. package/shared/audioToFrames/src/core/constants.d.ts +0 -22
  27. package/shared/audioToFrames/src/core/index.mjs +16 -2643
  28. package/shared/audioToFrames/src/core/utils.d.ts +1 -68
  29. package/shared/audioToFrames/src/inference/StreamingInferenceService.d.ts +43 -0
  30. package/shared/audioToFrames/src/media/index.d.ts +0 -5
  31. package/shared/audioToFrames/src/media/index.mjs +180 -610
  32. package/shared/constants.mjs +1 -12
  33. package/shared/PredictiveFrameLoader.mjs +0 -367
  34. package/shared/audioToFrames/src/audio/AudioProcessor.d.ts +0 -25
  35. package/shared/audioToFrames/src/audio/FeatureExtractorService.d.ts +0 -31
  36. package/shared/audioToFrames/src/inference/types.d.ts +0 -102
  37. package/shared/audioToFrames/src/media/ImageBitmapPool.d.ts +0 -63
  38. package/shared/audioToFrames/src/media/ImageProcessor.d.ts +0 -47
  39. package/shared/audioToFrames/src/media/PlaybackService.d.ts +0 -56
  40. package/shared/audioToFrames/src/media/WebGLPlaybackService.d.ts +0 -74
  41. package/shared/audioToFrames/src/media/WebGLRenderer.d.ts +0 -66
  42. package/shared/utils.mjs +0 -123
@@ -76,23 +76,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
76
76
  theData: import("vue").ComputedRef<Paragraph[]>;
77
77
  ParagraphStatus: typeof ParagraphStatus;
78
78
  fulfilledTextValue: import("vue").ComputedRef<string>;
79
- isPrevParagraphFulfilled: (currentIndex: number) => boolean;
80
- isParagraphEnabled: (currentIndex: number) => boolean;
81
79
  processingParagraph: (paragraph: Paragraph) => Promise<void> | undefined;
82
- isInterrupted: import("vue").Ref<boolean, boolean>;
83
80
  setData: (obj: any, e: import("@vunk/core").SetDataEvent) => void;
84
81
  Broadcast: typeof TickerStatus;
85
- isPaused: import("vue").ComputedRef<boolean>;
86
- isTypingFinished: import("vue").Ref<boolean, boolean>;
87
- currentParagraph: import("vue").ComputedRef<Paragraph | undefined>;
82
+ isParagraphEnabled: (currentIndex: number) => boolean;
83
+ TickerStatus: typeof TickerStatus;
84
+ handleParagraphStatus: (para: Paragraph, v: TickerStatus) => void;
88
85
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
89
86
  setData: (e: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
90
- interrupt: null;
91
- 'update:broadcasting': (_: boolean) => boolean;
92
- 'update:completed': (_: boolean) => boolean;
93
- 'update:error': (_: boolean) => boolean;
94
87
  'update:status': (_: TickerStatus) => boolean;
95
88
  paragraphLoad: (_: import("./types").ParagraphLoadEvent) => boolean;
89
+ complete: () => boolean;
96
90
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
97
91
  render: {
98
92
  type: import("vue").PropType<(text: string) => string>;
@@ -165,13 +159,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
165
159
  default: number;
166
160
  };
167
161
  }>> & Readonly<{
168
- onSetData?: ((e: import("@vunk/core").SetDataEvent) => any) | undefined;
169
162
  "onUpdate:status"?: ((_: TickerStatus) => any) | undefined;
170
- onInterrupt?: ((...args: any[]) => any) | undefined;
171
- "onUpdate:broadcasting"?: ((_: boolean) => any) | undefined;
172
- "onUpdate:completed"?: ((_: boolean) => any) | undefined;
173
- "onUpdate:error"?: ((_: boolean) => any) | undefined;
163
+ onSetData?: ((e: import("@vunk/core").SetDataEvent) => any) | undefined;
174
164
  onParagraphLoad?: ((_: import("./types").ParagraphLoadEvent) => any) | undefined;
165
+ onComplete?: (() => any) | undefined;
175
166
  }>, {
176
167
  data: Paragraph[];
177
168
  source: string;
@@ -333,100 +324,50 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
333
324
  loading: boolean;
334
325
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
335
326
  HowlerSpeechView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
336
- data: {
337
- type: import("vue").PropType<Paragraph>;
338
- default: () => {};
339
- };
340
- deferred: {
341
- type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
342
- required: true;
327
+ source: {
328
+ type: StringConstructor;
329
+ default: string;
343
330
  };
344
- render: {
345
- type: import("vue").PropType<(text: string) => string>;
346
- default: typeof import("./const").defaultRender;
331
+ status: {
332
+ type: import("vue").PropType<TickerStatus>;
333
+ default: TickerStatus;
347
334
  };
348
- }>, (() => null) | (() => JSX.Element), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
349
- setData: (e: import("@vunk/core").SetDataEvent<keyof Paragraph>) => import("@vunk/core").SetDataEvent<keyof Paragraph>;
350
- load: (_: import("./types").ParagraphLoadEvent) => boolean;
335
+ }>, {
336
+ props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
337
+ source: {
338
+ type: StringConstructor;
339
+ default: string;
340
+ };
341
+ status: {
342
+ type: import("vue").PropType<TickerStatus>;
343
+ default: TickerStatus;
344
+ };
345
+ }>> & Readonly<{
346
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
347
+ onError?: ((...args: any[]) => any) | undefined;
348
+ onLoad?: ((...args: any[]) => any) | undefined;
349
+ }> & {}>;
350
+ emit: ((event: "update:status", ...args: any[]) => void) & ((event: "error", ...args: any[]) => void) & ((event: "load", ...args: any[]) => void);
351
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
352
+ 'update:status': null;
353
+ load: null;
354
+ error: null;
351
355
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
352
- data: {
353
- type: import("vue").PropType<Paragraph>;
354
- default: () => {};
355
- };
356
- deferred: {
357
- type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
358
- required: true;
356
+ source: {
357
+ type: StringConstructor;
358
+ default: string;
359
359
  };
360
- render: {
361
- type: import("vue").PropType<(text: string) => string>;
362
- default: typeof import("./const").defaultRender;
360
+ status: {
361
+ type: import("vue").PropType<TickerStatus>;
362
+ default: TickerStatus;
363
363
  };
364
364
  }>> & Readonly<{
365
- onSetData?: ((e: import("@vunk/core").SetDataEvent<keyof Paragraph>) => any) | undefined;
366
- onLoad?: ((_: import("./types").ParagraphLoadEvent) => any) | undefined;
365
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
366
+ onError?: ((...args: any[]) => any) | undefined;
367
+ onLoad?: ((...args: any[]) => any) | undefined;
367
368
  }>, {
368
- data: Paragraph;
369
- render: (text: string) => string;
370
- }, {}, {
371
- SpeechError: import("vue").DefineComponent<{}, {
372
- readonly CloseBold: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
373
- readonly ElIcon: {
374
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
375
- readonly size: {
376
- readonly type: import("vue").PropType<string | number>;
377
- readonly required: false;
378
- readonly validator: ((val: unknown) => boolean) | undefined;
379
- __epPropKey: true;
380
- };
381
- readonly color: {
382
- readonly type: import("vue").PropType<string>;
383
- readonly required: false;
384
- readonly validator: ((val: unknown) => boolean) | undefined;
385
- __epPropKey: true;
386
- };
387
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
388
- P: {};
389
- B: {};
390
- D: {};
391
- C: {};
392
- M: {};
393
- Defaults: {};
394
- }, Readonly<import("vue").ExtractPropTypes<{
395
- readonly size: {
396
- readonly type: import("vue").PropType<string | number>;
397
- readonly required: false;
398
- readonly validator: ((val: unknown) => boolean) | undefined;
399
- __epPropKey: true;
400
- };
401
- readonly color: {
402
- readonly type: import("vue").PropType<string>;
403
- readonly required: false;
404
- readonly validator: ((val: unknown) => boolean) | undefined;
405
- __epPropKey: true;
406
- };
407
- }>>, {}, {}, {}, {}, {}>;
408
- __isFragment?: never;
409
- __isTeleport?: never;
410
- __isSuspense?: never;
411
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
412
- readonly size: {
413
- readonly type: import("vue").PropType<string | number>;
414
- readonly required: false;
415
- readonly validator: ((val: unknown) => boolean) | undefined;
416
- __epPropKey: true;
417
- };
418
- readonly color: {
419
- readonly type: import("vue").PropType<string>;
420
- readonly required: false;
421
- readonly validator: ((val: unknown) => boolean) | undefined;
422
- __epPropKey: true;
423
- };
424
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
425
- $slots: {
426
- default?(_: {}): any;
427
- };
428
- }) & import("vue").Plugin;
429
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
430
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
369
+ source: string;
370
+ status: TickerStatus;
371
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
431
372
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
432
373
  export default _default;
@@ -12,7 +12,7 @@ export interface Paragraph {
12
12
  /**
13
13
  * @description 语音合成的 url
14
14
  */
15
- url?: string;
15
+ url: string;
16
16
  blob?: Blob;
17
17
  }
18
18
  /**
@@ -1,16 +1,14 @@
1
- import type { SetDataEvent } from '@vunk/core';
2
- import type { Deferred } from '@vunk/shared/promise';
3
- import type { Paragraph } from './types';
1
+ import { TickerStatus } from '@vunk/shared/enum';
4
2
  import { Howl } from 'howler';
5
3
  /**
6
4
  * @description 使用 Howler.js 播放段落
7
5
  */
8
6
  export declare function useHowlerParagraph(props: {
9
- data: Paragraph;
10
- deferred: Deferred<any>;
11
- }, emit: (e: 'setData', data: SetDataEvent<keyof Paragraph>) => void): {
12
- url: import("vue").ComputedRef<string | undefined>;
13
- broadcast: import("vue").ComputedRef<import("@vunk/shared/enum").TickerStatus>;
7
+ source: string;
8
+ status: TickerStatus;
9
+ }, emit: ((e: 'update:status', status: TickerStatus) => void) & ((e: 'error', ev: any) => void)): {
10
+ url: import("vue").ComputedRef<string>;
11
+ broadcast: import("vue").WritableComputedRef<TickerStatus, TickerStatus>;
14
12
  sound: import("vue").ShallowRef<Howl | null, Howl | null>;
15
13
  };
16
14
  /**
@@ -0,0 +1,4 @@
1
+ .vk-echart-x {
2
+ height: 500px;
3
+ width: 100%;
4
+ }