@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
@@ -3,7 +3,7 @@ import { VkBroadcastingMarkdown } from '@vunk/plus/components/broadcasting-markd
3
3
  import { VkPixiFrameBitmap, VkPixiFrameCore } from '@vunk/plus/components/pixi-frame';
4
4
  import { StreamingInferenceService, getStremingStartData, processStreaming, blobToAudioBuffer } from '@vunk/plus/shared/audioToFrames';
5
5
  export { workerConfig } from '@vunk/plus/shared/audioToFrames';
6
- import { useModelComputed } from '@vunk/core/composables';
6
+ import { useDeferred, useModelComputed } from '@vunk/core/composables';
7
7
  import { setData } from '@vunk/core/shared';
8
8
  import { TickerStatus } from '@vunk/shared/enum';
9
9
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
@@ -80,6 +80,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
80
80
  const streamingInferenceService = new StreamingInferenceService(props.modelUrl);
81
81
  const frameUrls = ref([]);
82
82
  const silentFrameUrls = shallowReactive([]);
83
+ const startedDef = useDeferred();
83
84
  const frameStatus = useModelComputed({
84
85
  default: TickerStatus.pending,
85
86
  key: "status"
@@ -106,9 +107,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
106
107
  }
107
108
  }
108
109
  });
110
+ startedDef.resolve();
109
111
  });
110
112
  async function requestProcessStreaming(buffer) {
111
113
  await streamingInferenceService.when();
114
+ await startedDef.promise;
112
115
  try {
113
116
  await processStreaming(buffer, {
114
117
  onChunkComplete(result) {
@@ -130,8 +133,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
130
133
  console.error("Error processing paragraph:", error);
131
134
  }
132
135
  }
133
- function allParagraphCompleted(v) {
134
- if (v && paragraphData.value.length) {
136
+ function allParagraphCompleted() {
137
+ if (paragraphData.value.length) {
135
138
  frameStatus.value = TickerStatus.stop;
136
139
  frameUrls.value.length = 0;
137
140
  }
@@ -151,7 +154,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
151
154
  }
152
155
  ready.value = true;
153
156
  }
154
- const __returned__ = { props, emit, paragraphData, streamingInferenceService, frameUrls, silentFrameUrls, frameStatus, slientFrameStatus, requestProcessStreaming, processingParagraph, allParagraphCompleted, ready, loadAllSilentFrames, get VkBroadcastingMarkdown() {
157
+ const __returned__ = { props, emit, paragraphData, streamingInferenceService, frameUrls, silentFrameUrls, startedDef, frameStatus, slientFrameStatus, requestProcessStreaming, processingParagraph, allParagraphCompleted, ready, loadAllSilentFrames, get VkBroadcastingMarkdown() {
155
158
  return VkBroadcastingMarkdown;
156
159
  }, get VkPixiFrameBitmap() {
157
160
  return VkPixiFrameBitmap;
@@ -179,7 +182,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
179
182
  source: _ctx.source,
180
183
  processing: $setup.processingParagraph,
181
184
  onSetData: _cache[0] || (_cache[0] = ($event) => $setup.setData($setup.paragraphData, $event)),
182
- "onUpdate:completed": $setup.allParagraphCompleted
185
+ onComplete: $setup.allParagraphCompleted
183
186
  }), null, 16, ["status", "data", "text-to-speech", "source"]),
184
187
  createVNode($setup["VkPixiFrameBitmap"], {
185
188
  status: $setup.frameStatus,
@@ -79,11 +79,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
79
79
  close: () => void;
80
80
  }[]>;
81
81
  silentFrameUrls: import("vue").ShallowReactive<string[]>;
82
+ startedDef: {
83
+ _ref: import("vue").ShallowRef<unknown, unknown>;
84
+ readonly value: unknown;
85
+ promise: Promise<unknown>;
86
+ resolve: import("@vunk/core/shared").AnyFunc;
87
+ reject: (reason?: any) => void;
88
+ };
82
89
  frameStatus: import("vue").WritableComputedRef<TickerStatus, TickerStatus>;
83
90
  slientFrameStatus: Ref<TickerStatus, TickerStatus>;
84
91
  requestProcessStreaming: (buffer: AudioBuffer) => Promise<void>;
85
92
  processingParagraph: (item: __VkBroadcastingMarkdown.Paragraph) => Promise<void>;
86
- allParagraphCompleted: (v: boolean) => void;
93
+ allParagraphCompleted: () => void;
87
94
  ready: Ref<boolean, boolean>;
88
95
  loadAllSilentFrames: (dataset: ImageDataResponse, zip: JSZip) => Promise<void>;
89
96
  readonly VkBroadcastingMarkdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -161,23 +168,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
161
168
  theData: import("vue").ComputedRef<__VkBroadcastingMarkdown.Paragraph[]>;
162
169
  ParagraphStatus: typeof import("@vunk/plus/components/broadcasting-markdown").ParagraphStatus;
163
170
  fulfilledTextValue: import("vue").ComputedRef<string>;
164
- isPrevParagraphFulfilled: (currentIndex: number) => boolean;
165
- isParagraphEnabled: (currentIndex: number) => boolean;
166
171
  processingParagraph: (paragraph: __VkBroadcastingMarkdown.Paragraph) => Promise<void> | undefined;
167
- isInterrupted: Ref<boolean, boolean>;
168
172
  setData: (obj: any, e: import("@vunk/core/shared").SetDataEvent) => void;
169
173
  Broadcast: typeof TickerStatus;
170
- isPaused: import("vue").ComputedRef<boolean>;
171
- isTypingFinished: Ref<boolean, boolean>;
172
- currentParagraph: import("vue").ComputedRef<__VkBroadcastingMarkdown.Paragraph | undefined>;
174
+ isParagraphEnabled: (currentIndex: number) => boolean;
175
+ TickerStatus: typeof TickerStatus;
176
+ handleParagraphStatus: (para: __VkBroadcastingMarkdown.Paragraph, v: TickerStatus) => void;
173
177
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
174
178
  setData: (e: import("@vunk/core/shared").SetDataEvent) => import("@vunk/core/shared").SetDataEvent;
175
- interrupt: null;
176
- 'update:broadcasting': (_: boolean) => boolean;
177
- 'update:completed': (_: boolean) => boolean;
178
- 'update:error': (_: boolean) => boolean;
179
179
  'update:status': (_: TickerStatus) => boolean;
180
180
  paragraphLoad: (_: __VkBroadcastingMarkdown.ParagraphLoadEvent) => boolean;
181
+ complete: () => boolean;
181
182
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
182
183
  render: {
183
184
  type: import("vue").PropType<(text: string) => string>;
@@ -250,13 +251,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
250
251
  default: number;
251
252
  };
252
253
  }>> & Readonly<{
253
- onSetData?: ((e: import("@vunk/core/shared").SetDataEvent) => any) | undefined;
254
254
  "onUpdate:status"?: ((_: TickerStatus) => any) | undefined;
255
- onInterrupt?: ((...args: any[]) => any) | undefined;
256
- "onUpdate:broadcasting"?: ((_: boolean) => any) | undefined;
257
- "onUpdate:completed"?: ((_: boolean) => any) | undefined;
258
- "onUpdate:error"?: ((_: boolean) => any) | undefined;
255
+ onSetData?: ((e: import("@vunk/core/shared").SetDataEvent) => any) | undefined;
259
256
  onParagraphLoad?: ((_: __VkBroadcastingMarkdown.ParagraphLoadEvent) => any) | undefined;
257
+ onComplete?: (() => any) | undefined;
260
258
  }>, {
261
259
  data: __VkBroadcastingMarkdown.Paragraph[];
262
260
  source: string;
@@ -418,101 +416,51 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
418
416
  loading: boolean;
419
417
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
420
418
  HowlerSpeechView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
421
- data: {
422
- type: import("vue").PropType<__VkBroadcastingMarkdown.Paragraph>;
423
- default: () => {};
424
- };
425
- deferred: {
426
- type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
427
- required: true;
419
+ source: {
420
+ type: StringConstructor;
421
+ default: string;
428
422
  };
429
- render: {
430
- type: import("vue").PropType<(text: string) => string>;
431
- default: typeof import("@vunk/plus/components/broadcasting-markdown").defaultRender;
423
+ status: {
424
+ type: import("vue").PropType<TickerStatus>;
425
+ default: TickerStatus;
432
426
  };
433
- }>, (() => null) | (() => JSX.Element), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
434
- setData: (e: import("@vunk/core/shared").SetDataEvent<keyof __VkBroadcastingMarkdown.Paragraph>) => import("@vunk/core/shared").SetDataEvent<keyof __VkBroadcastingMarkdown.Paragraph>;
435
- load: (_: __VkBroadcastingMarkdown.ParagraphLoadEvent) => boolean;
427
+ }>, {
428
+ props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
429
+ source: {
430
+ type: StringConstructor;
431
+ default: string;
432
+ };
433
+ status: {
434
+ type: import("vue").PropType<TickerStatus>;
435
+ default: TickerStatus;
436
+ };
437
+ }>> & Readonly<{
438
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
439
+ onError?: ((...args: any[]) => any) | undefined;
440
+ onLoad?: ((...args: any[]) => any) | undefined;
441
+ }> & {}>;
442
+ emit: ((event: "update:status", ...args: any[]) => void) & ((event: "error", ...args: any[]) => void) & ((event: "load", ...args: any[]) => void);
443
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
444
+ 'update:status': null;
445
+ load: null;
446
+ error: null;
436
447
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
437
- data: {
438
- type: import("vue").PropType<__VkBroadcastingMarkdown.Paragraph>;
439
- default: () => {};
440
- };
441
- deferred: {
442
- type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
443
- required: true;
448
+ source: {
449
+ type: StringConstructor;
450
+ default: string;
444
451
  };
445
- render: {
446
- type: import("vue").PropType<(text: string) => string>;
447
- default: typeof import("@vunk/plus/components/broadcasting-markdown").defaultRender;
452
+ status: {
453
+ type: import("vue").PropType<TickerStatus>;
454
+ default: TickerStatus;
448
455
  };
449
456
  }>> & Readonly<{
450
- onSetData?: ((e: import("@vunk/core/shared").SetDataEvent<keyof __VkBroadcastingMarkdown.Paragraph>) => any) | undefined;
451
- onLoad?: ((_: __VkBroadcastingMarkdown.ParagraphLoadEvent) => any) | undefined;
457
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
458
+ onError?: ((...args: any[]) => any) | undefined;
459
+ onLoad?: ((...args: any[]) => any) | undefined;
452
460
  }>, {
453
- data: __VkBroadcastingMarkdown.Paragraph;
454
- render: (text: string) => string;
455
- }, {}, {
456
- SpeechError: import("vue").DefineComponent<{}, {
457
- 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>;
458
- readonly ElIcon: {
459
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
460
- readonly size: {
461
- readonly type: import("vue").PropType<string | number>;
462
- readonly required: false;
463
- readonly validator: ((val: unknown) => boolean) | undefined;
464
- __epPropKey: true;
465
- };
466
- readonly color: {
467
- readonly type: import("vue").PropType<string>;
468
- readonly required: false;
469
- readonly validator: ((val: unknown) => boolean) | undefined;
470
- __epPropKey: true;
471
- };
472
- }>>, {}, 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, {
473
- P: {};
474
- B: {};
475
- D: {};
476
- C: {};
477
- M: {};
478
- Defaults: {};
479
- }, Readonly<import("vue").ExtractPropTypes<{
480
- readonly size: {
481
- readonly type: import("vue").PropType<string | number>;
482
- readonly required: false;
483
- readonly validator: ((val: unknown) => boolean) | undefined;
484
- __epPropKey: true;
485
- };
486
- readonly color: {
487
- readonly type: import("vue").PropType<string>;
488
- readonly required: false;
489
- readonly validator: ((val: unknown) => boolean) | undefined;
490
- __epPropKey: true;
491
- };
492
- }>>, {}, {}, {}, {}, {}>;
493
- __isFragment?: never;
494
- __isTeleport?: never;
495
- __isSuspense?: never;
496
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
497
- readonly size: {
498
- readonly type: import("vue").PropType<string | number>;
499
- readonly required: false;
500
- readonly validator: ((val: unknown) => boolean) | undefined;
501
- __epPropKey: true;
502
- };
503
- readonly color: {
504
- readonly type: import("vue").PropType<string>;
505
- readonly required: false;
506
- readonly validator: ((val: unknown) => boolean) | undefined;
507
- __epPropKey: true;
508
- };
509
- }>>, {}, 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 () => {
510
- $slots: {
511
- default?(_: {}): any;
512
- };
513
- }) & import("vue").Plugin;
514
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
515
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
461
+ source: string;
462
+ status: TickerStatus;
463
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
516
464
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
517
465
  readonly VkPixiFrameBitmap: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
518
466
  data: {
@@ -588,14 +536,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
588
536
  default: number;
589
537
  };
590
538
  }>> & Readonly<{
591
- onSetData?: ((...args: any[]) => any) | undefined;
592
- onLoad?: ((e: import("../../pixi-frame/src/types").LoadEvent) => any) | undefined;
593
539
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
540
+ onLoad?: ((e: import("../../pixi-frame/src/types").LoadEvent) => any) | undefined;
541
+ onSetData?: ((...args: any[]) => any) | undefined;
594
542
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
595
543
  "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
596
544
  onNotFound?: ((_index: number) => any) | undefined;
597
545
  }> & {}>;
598
- emit: ((event: "setData", ...args: any[]) => void) & ((event: "load", e: import("../../pixi-frame/src/types").LoadEvent) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
546
+ emit: ((event: "update:status", ...args: any[]) => void) & ((event: "load", e: import("../../pixi-frame/src/types").LoadEvent) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
599
547
  compId: string;
600
548
  getAlias: (key: string | number) => string;
601
549
  sprite: import("pixi.js").Sprite;
@@ -653,9 +601,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
653
601
  default: number;
654
602
  };
655
603
  }>> & Readonly<{
656
- onSetData?: ((...args: any[]) => any) | undefined;
657
- onLoad?: ((e: import("../../pixi-frame/src/types").LoadEvent) => any) | undefined;
658
604
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
605
+ onLoad?: ((e: import("../../pixi-frame/src/types").LoadEvent) => any) | undefined;
606
+ onSetData?: ((...args: any[]) => any) | undefined;
659
607
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
660
608
  "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
661
609
  onNotFound?: ((_index: number) => any) | undefined;
@@ -749,14 +697,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
749
697
  default: boolean;
750
698
  };
751
699
  }>> & Readonly<{
752
- onSetData?: ((...args: any[]) => any) | undefined;
753
- onLoad?: ((e: import("../../pixi-frame/src/types").LoadEvent) => any) | undefined;
754
700
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
701
+ onLoad?: ((e: import("../../pixi-frame/src/types").LoadEvent) => any) | undefined;
702
+ onSetData?: ((...args: any[]) => any) | undefined;
755
703
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
756
704
  "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
757
705
  onNotFound?: ((_index: number) => any) | undefined;
758
706
  }> & {}>;
759
- emit: ((event: "setData", ...args: any[]) => void) & ((event: "load", e: import("../../pixi-frame/src/types").LoadEvent) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
707
+ emit: ((event: "update:status", ...args: any[]) => void) & ((event: "load", e: import("../../pixi-frame/src/types").LoadEvent) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
760
708
  compId: string;
761
709
  getAlias: (key: string | number) => string;
762
710
  sprite: import("pixi.js").Sprite;
@@ -820,9 +768,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
820
768
  default: boolean;
821
769
  };
822
770
  }>> & Readonly<{
823
- onSetData?: ((...args: any[]) => any) | undefined;
824
- onLoad?: ((e: import("../../pixi-frame/src/types").LoadEvent) => any) | undefined;
825
771
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
772
+ onLoad?: ((e: import("../../pixi-frame/src/types").LoadEvent) => any) | undefined;
773
+ onSetData?: ((...args: any[]) => any) | undefined;
826
774
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
827
775
  "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
828
776
  onNotFound?: ((_index: number) => any) | undefined;
@@ -76,11 +76,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
76
76
  default: boolean;
77
77
  };
78
78
  }>> & Readonly<{
79
- onSetData?: ((...args: any[]) => any) | undefined;
80
79
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
80
+ onSetData?: ((...args: any[]) => any) | undefined;
81
81
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
82
82
  }> & {}>;
83
- emit: ((event: "setData", ...args: any[]) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
83
+ emit: ((event: "update:status", ...args: any[]) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
84
84
  compId: string;
85
85
  getAlias: (frameIndex: number) => string;
86
86
  sprite: import("pixi.js").Sprite;
@@ -145,8 +145,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
145
145
  default: boolean;
146
146
  };
147
147
  }>> & Readonly<{
148
- onSetData?: ((...args: any[]) => any) | undefined;
149
148
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
149
+ onSetData?: ((...args: any[]) => any) | undefined;
150
150
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
151
151
  }>, {
152
152
  data: any[];
@@ -76,14 +76,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
76
76
  default: number;
77
77
  };
78
78
  }>> & Readonly<{
79
- onSetData?: ((...args: any[]) => any) | undefined;
80
- onLoad?: ((e: LoadEvent) => any) | undefined;
81
79
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
80
+ onLoad?: ((e: LoadEvent) => any) | undefined;
81
+ onSetData?: ((...args: any[]) => any) | undefined;
82
82
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
83
83
  "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
84
84
  onNotFound?: ((_index: number) => any) | undefined;
85
85
  }> & {}>;
86
- emit: ((event: "setData", ...args: any[]) => void) & ((event: "load", e: LoadEvent) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
86
+ emit: ((event: "update:status", ...args: any[]) => void) & ((event: "load", e: LoadEvent) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
87
87
  compId: string;
88
88
  getAlias: (key: string | number) => string;
89
89
  sprite: import("pixi.js").Sprite;
@@ -141,9 +141,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
141
141
  default: number;
142
142
  };
143
143
  }>> & Readonly<{
144
- onSetData?: ((...args: any[]) => any) | undefined;
145
- onLoad?: ((e: LoadEvent) => any) | undefined;
146
144
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
145
+ onLoad?: ((e: LoadEvent) => any) | undefined;
146
+ onSetData?: ((...args: any[]) => any) | undefined;
147
147
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
148
148
  "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
149
149
  onNotFound?: ((_index: number) => any) | undefined;
@@ -84,14 +84,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
84
84
  default: boolean;
85
85
  };
86
86
  }>> & Readonly<{
87
- onSetData?: ((...args: any[]) => any) | undefined;
88
- onLoad?: ((e: LoadEvent) => any) | undefined;
89
87
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
88
+ onLoad?: ((e: LoadEvent) => any) | undefined;
89
+ onSetData?: ((...args: any[]) => any) | undefined;
90
90
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
91
91
  "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
92
92
  onNotFound?: ((_index: number) => any) | undefined;
93
93
  }> & {}>;
94
- emit: ((event: "setData", ...args: any[]) => void) & ((event: "load", e: LoadEvent) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
94
+ emit: ((event: "update:status", ...args: any[]) => void) & ((event: "load", e: LoadEvent) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
95
95
  compId: string;
96
96
  getAlias: (key: string | number) => string;
97
97
  sprite: import("pixi.js").Sprite;
@@ -155,9 +155,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
155
155
  default: boolean;
156
156
  };
157
157
  }>> & Readonly<{
158
- onSetData?: ((...args: any[]) => any) | undefined;
159
- onLoad?: ((e: LoadEvent) => any) | undefined;
160
158
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
159
+ onLoad?: ((e: LoadEvent) => any) | undefined;
160
+ onSetData?: ((...args: any[]) => any) | undefined;
161
161
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
162
162
  "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
163
163
  onNotFound?: ((_index: number) => any) | undefined;
@@ -80,8 +80,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
80
80
  default: boolean;
81
81
  };
82
82
  }>> & Readonly<{
83
- onSetData?: ((...args: any[]) => any) | undefined;
84
83
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
84
+ onSetData?: ((...args: any[]) => any) | undefined;
85
85
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
86
86
  }>, {
87
87
  data: any[];
@@ -169,11 +169,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
169
169
  default: boolean;
170
170
  };
171
171
  }>> & Readonly<{
172
- onSetData?: ((...args: any[]) => any) | undefined;
173
172
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
173
+ onSetData?: ((...args: any[]) => any) | undefined;
174
174
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
175
175
  }> & {}>;
176
- emit: ((event: "setData", ...args: any[]) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
176
+ emit: ((event: "update:status", ...args: any[]) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
177
177
  compId: string;
178
178
  getAlias: (frameIndex: number) => string;
179
179
  sprite: import("pixi.js").Sprite;
@@ -238,8 +238,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
238
238
  default: boolean;
239
239
  };
240
240
  }>> & Readonly<{
241
- onSetData?: ((...args: any[]) => any) | undefined;
242
241
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
242
+ onSetData?: ((...args: any[]) => any) | undefined;
243
243
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
244
244
  }>, {
245
245
  data: any[];
@@ -354,11 +354,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
354
354
  default: boolean;
355
355
  };
356
356
  }>> & Readonly<{
357
- onSetData?: ((...args: any[]) => any) | undefined;
358
357
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
358
+ onSetData?: ((...args: any[]) => any) | undefined;
359
359
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
360
360
  }> & {}>;
361
- emit: ((event: "setData", ...args: any[]) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
361
+ emit: ((event: "update:status", ...args: any[]) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
362
362
  compId: string;
363
363
  getAlias: () => string;
364
364
  sprite: import("pixi.js").Sprite;
@@ -421,8 +421,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
421
421
  default: boolean;
422
422
  };
423
423
  }>> & Readonly<{
424
- onSetData?: ((...args: any[]) => any) | undefined;
425
424
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
425
+ onSetData?: ((...args: any[]) => any) | undefined;
426
426
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
427
427
  }>, {
428
428
  data: any[];
@@ -508,14 +508,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
508
508
  default: number;
509
509
  };
510
510
  }>> & Readonly<{
511
- onSetData?: ((...args: any[]) => any) | undefined;
512
- onLoad?: ((e: import("./types").LoadEvent) => any) | undefined;
513
511
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
512
+ onLoad?: ((e: import("./types").LoadEvent) => any) | undefined;
513
+ onSetData?: ((...args: any[]) => any) | undefined;
514
514
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
515
515
  "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
516
516
  onNotFound?: ((_index: number) => any) | undefined;
517
517
  }> & {}>;
518
- emit: ((event: "setData", ...args: any[]) => void) & ((event: "load", e: import("./types").LoadEvent) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
518
+ emit: ((event: "update:status", ...args: any[]) => void) & ((event: "load", e: import("./types").LoadEvent) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
519
519
  compId: string;
520
520
  getAlias: (key: string | number) => string;
521
521
  sprite: import("pixi.js").Sprite;
@@ -573,9 +573,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
573
573
  default: number;
574
574
  };
575
575
  }>> & Readonly<{
576
- onSetData?: ((...args: any[]) => any) | undefined;
577
- onLoad?: ((e: import("./types").LoadEvent) => any) | undefined;
578
576
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
577
+ onLoad?: ((e: import("./types").LoadEvent) => any) | undefined;
578
+ onSetData?: ((...args: any[]) => any) | undefined;
579
579
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
580
580
  "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
581
581
  onNotFound?: ((_index: number) => any) | undefined;
@@ -76,11 +76,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
76
76
  default: boolean;
77
77
  };
78
78
  }>> & Readonly<{
79
- onSetData?: ((...args: any[]) => any) | undefined;
80
79
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
80
+ onSetData?: ((...args: any[]) => any) | undefined;
81
81
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
82
82
  }> & {}>;
83
- emit: ((event: "setData", ...args: any[]) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
83
+ emit: ((event: "update:status", ...args: any[]) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
84
84
  compId: string;
85
85
  getAlias: () => string;
86
86
  sprite: import("pixi.js").Sprite;
@@ -143,8 +143,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
143
143
  default: boolean;
144
144
  };
145
145
  }>> & Readonly<{
146
- onSetData?: ((...args: any[]) => any) | undefined;
147
146
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
147
+ onSetData?: ((...args: any[]) => any) | undefined;
148
148
  "onUpdate:data"?: ((...args: any[]) => any) | undefined;
149
149
  }>, {
150
150
  data: any[];
@@ -219,13 +219,10 @@ var _sfc_main = defineComponent({
219
219
  flush: "post",
220
220
  immediate: true
221
221
  });
222
- watch(
223
- () => isFinished.value && currentIndex.value < props2.source.length,
224
- () => {
225
- isFinished.value = false;
226
- typeWriter();
227
- }
228
- );
222
+ watch(() => currentIndex.value < props2.source.length, () => {
223
+ isFinished.value = false;
224
+ typeWriter();
225
+ });
229
226
  return {
230
227
  htmlText,
231
228
  isDebouncedTyping
@@ -23,7 +23,7 @@ export declare const props: {
23
23
  default: boolean;
24
24
  };
25
25
  };
26
- export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"fullscreen", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"toolbar", keyof T2>, KE> | Exclude<Extract<"defaultOptions", keyof T2>, KE> | Exclude<Extract<"fullscreen", keyof T2>, KE> : Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"fullscreen", keyof T2>]: { [k in Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"fullscreen", keyof T2>]: T2[k]; }[P]; }>;
26
+ export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"fullscreen", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"defaultOptions", keyof T2>, KE> | Exclude<Extract<"toolbar", keyof T2>, KE> | Exclude<Extract<"fullscreen", keyof T2>, KE> : Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"fullscreen", keyof T2>]: { [k in Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"fullscreen", keyof T2>]: T2[k]; }[P]; }>;
27
27
  export declare const emits: {
28
28
  load: (e: Vditor) => Vditor;
29
29
  'update:modelValue': (e: string) => string;
@@ -59,8 +59,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
59
59
  }>, {
60
60
  modelValue: string;
61
61
  placeholder: string;
62
- toolbar: string[];
63
62
  defaultOptions: IOptions;
63
+ toolbar: string[];
64
64
  fullscreen: boolean;
65
65
  }, {}, {
66
66
  HandleValue: import("vue").DefineComponent<import("vue").ExtractPropTypes<{