@vunk/plus 1.6.4 → 1.6.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 (117) hide show
  1. package/components/agent-chat-provider/index.d.ts +7 -0
  2. package/components/agent-chat-provider/src/api.d.ts +3 -0
  3. package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
  4. package/components/agent-chat-provider/src/const.d.ts +1 -0
  5. package/components/agent-chat-provider/src/index.vue.d.ts +47 -0
  6. package/components/agent-chat-provider/src/types.d.ts +43 -0
  7. package/components/agent-chat-provider/src/use.d.ts +29 -0
  8. package/components/avatar/index.d.ts +4 -0
  9. package/components/avatar/src/ctx.d.ts +18 -0
  10. package/components/avatar/src/index.vue.d.ts +121 -0
  11. package/components/avatar/src/types.d.ts +1 -0
  12. package/components/broadcasting-markdown/index.d.ts +7 -0
  13. package/components/broadcasting-markdown/src/const.d.ts +13 -0
  14. package/components/broadcasting-markdown/src/ctx.d.ts +125 -0
  15. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +97 -0
  16. package/components/broadcasting-markdown/src/index.vue.d.ts +424 -0
  17. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +79 -0
  18. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +60 -0
  19. package/components/broadcasting-markdown/src/types.d.ts +26 -0
  20. package/components/broadcasting-markdown/src/use.d.ts +21 -0
  21. package/components/bubble-list/index.d.ts +5 -0
  22. package/components/bubble-list/src/ctx.d.ts +30 -0
  23. package/components/bubble-list/src/index.vue.d.ts +848 -0
  24. package/components/bubble-list/src/types.d.ts +4 -0
  25. package/components/bubble-templates/index.d.ts +4 -0
  26. package/components/bubble-templates/src/index.vue.d.ts +579 -0
  27. package/components/bubble-templates/src/types.d.ts +40 -0
  28. package/components/chat-independent/index.d.ts +4 -0
  29. package/components/chat-independent/src/const.d.ts +13 -0
  30. package/components/chat-independent/src/ctx.d.ts +20 -0
  31. package/components/chat-independent/src/index.vue.d.ts +2326 -0
  32. package/components/chat-independent/src/types.d.ts +13 -0
  33. package/components/index.d.ts +0 -0
  34. package/components/index2.mjs +11 -2
  35. package/components/lottie-animation/index.d.ts +4 -0
  36. package/components/lottie-animation/src/ctx.d.ts +10 -0
  37. package/components/lottie-animation/src/index.vue.d.ts +21 -0
  38. package/components/lottie-animation/src/types.d.ts +4 -0
  39. package/components/metahuman-broadcasting/index.d.ts +5 -0
  40. package/components/metahuman-broadcasting/src/ctx.d.ts +57 -0
  41. package/components/metahuman-broadcasting/src/index.vue.d.ts +870 -0
  42. package/components/metahuman-broadcasting/src/types.d.ts +1 -0
  43. package/components/monaco-editor/index.d.ts +5 -0
  44. package/components/monaco-editor/src/ctx.d.ts +23 -0
  45. package/components/monaco-editor/src/index.vue.d.ts +40 -0
  46. package/components/monaco-editor/src/types.d.ts +1 -0
  47. package/components/monaco-environment/index.d.ts +4 -0
  48. package/components/monaco-environment/src/ctx.d.ts +8 -0
  49. package/components/monaco-environment/src/index.vue.d.ts +2 -0
  50. package/components/monaco-environment/src/types.d.ts +1 -0
  51. package/components/pixi-frame/index.d.ts +11 -0
  52. package/components/pixi-frame/src/apng.vue.d.ts +161 -0
  53. package/components/pixi-frame/src/bitmap.vue.d.ts +158 -0
  54. package/components/pixi-frame/src/core.vue.d.ts +173 -0
  55. package/components/pixi-frame/src/ctx.d.ts +55 -0
  56. package/components/pixi-frame/src/index.vue.d.ts +591 -0
  57. package/components/pixi-frame/src/provider.vue.d.ts +2 -0
  58. package/components/pixi-frame/src/types.d.ts +17 -0
  59. package/components/pixi-frame/src/use.d.ts +16 -0
  60. package/components/pixi-frame/src/useSprite.d.ts +12 -0
  61. package/components/pixi-frame/src/video.vue.d.ts +159 -0
  62. package/components/pixi-frame/src/view.vue.d.ts +29 -0
  63. package/components/recorder-button/index.d.ts +4 -0
  64. package/components/recorder-button/src/ctx.d.ts +41 -0
  65. package/components/recorder-button/src/index.vue.d.ts +300 -0
  66. package/components/recorder-button/src/speech-to-text.d.ts +1 -0
  67. package/components/recorder-button/src/types.d.ts +7 -0
  68. package/components/routes-menu-content/index.d.ts +4 -0
  69. package/components/routes-menu-content/src/ctx.d.ts +17 -0
  70. package/components/routes-menu-content/src/index.vue.d.ts +472 -0
  71. package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
  72. package/components/routes-menu-content/src/item/core/index.vue.d.ts +307 -0
  73. package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
  74. package/components/routes-menu-content/src/item/index.vue.d.ts +438 -0
  75. package/components/routes-menu-content/src/types.d.ts +1 -0
  76. package/components/sender/index.d.ts +4 -0
  77. package/components/sender/src/SenderHeader.vue.d.ts +256 -0
  78. package/components/sender/src/ctx.d.ts +62 -0
  79. package/components/sender/src/index.vue.d.ts +787 -0
  80. package/components/sender/src/types.d.ts +1 -0
  81. package/components/speech-button/index.d.ts +4 -0
  82. package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
  83. package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
  84. package/components/speech-button/src/ctx.d.ts +10 -0
  85. package/components/speech-button/src/index.vue.d.ts +22 -0
  86. package/components/speech-button/src/types.d.ts +1 -0
  87. package/components/table-columns/index.d.ts +5 -0
  88. package/components/table-columns/src/ctx.d.ts +66 -0
  89. package/components/table-columns/src/el-ctx.d.ts +63 -0
  90. package/components/table-columns/src/index.vue.d.ts +282 -0
  91. package/components/table-columns/src/types.d.ts +21 -0
  92. package/components/tables-v1/index.d.ts +5 -0
  93. package/components/tables-v1/src/ctx.d.ts +288 -0
  94. package/components/tables-v1/src/el-ctx.d.ts +269 -0
  95. package/components/tables-v1/src/index.vue.d.ts +3106 -0
  96. package/components/tables-v1/src/types.d.ts +3 -0
  97. package/components/tables-v1-checkbox/index.d.ts +5 -0
  98. package/components/tables-v1-checkbox/src/ctx.d.ts +325 -0
  99. package/components/tables-v1-checkbox/src/index.vue.d.ts +3898 -0
  100. package/components/tables-v1-checkbox/src/types.d.ts +1 -0
  101. package/components/text/index.d.ts +4 -0
  102. package/components/text/src/ctx.d.ts +320 -0
  103. package/components/text/src/index.vue.d.ts +2314 -0
  104. package/components/text/src/types.d.ts +1 -0
  105. package/components/typing-markdown/index.d.ts +4 -0
  106. package/components/typing-markdown/src/core.d.ts +2 -0
  107. package/components/typing-markdown/src/ctx.d.ts +41 -0
  108. package/components/typing-markdown/src/index.vue.d.ts +75 -0
  109. package/components/typing-markdown/src/types.d.ts +1 -0
  110. package/components/vditor/index.d.ts +5 -0
  111. package/components/vditor/src/ctx.d.ts +37 -0
  112. package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
  113. package/components/vditor/src/handle-value.vue.d.ts +18 -0
  114. package/components/vditor/src/index.vue.d.ts +144 -0
  115. package/components/vditor/src/types.d.ts +9 -0
  116. package/components/vditor/src/use.d.ts +4 -0
  117. package/package.json +1 -1
@@ -0,0 +1,13 @@
1
+ import type { __VkAgentChatProvider } from '@vunk/plus/components/agent-chat-provider';
2
+ import type { __VkBroadcastingMarkdown } from '@vunk/plus/components/broadcasting-markdown';
3
+ import type { __VkRecorderButton } from '@vunk/plus/components/recorder-button';
4
+ export type SpeechToText = __VkRecorderButton.SpeechToText;
5
+ export type TextToSpeech = __VkBroadcastingMarkdown.TextToSpeech;
6
+ /**
7
+ * @description useXChat parser 解析数据
8
+ */
9
+ export type BubbleMessage = __VkAgentChatProvider.BubbleMessage;
10
+ /**
11
+ * @description useXAgent request onSuccess 发送的数据
12
+ */
13
+ export type AgentMessage = __VkAgentChatProvider.AgentMessage;
File without changes
@@ -22386,7 +22386,6 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
22386
22386
  emit("notFound", index.value);
22387
22387
  }
22388
22388
  }
22389
- onBeforeUnmount(stop);
22390
22389
  watch(() => props.status, (newStatus) => {
22391
22390
  newStatus === TickerStatus.play && play();
22392
22391
  newStatus === TickerStatus.pause && pause();
@@ -22412,6 +22411,15 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
22412
22411
  textureMap.clear();
22413
22412
  index.value = 0;
22414
22413
  }
22414
+ onBeforeUnmount(() => {
22415
+ const entries = Array.from(textureMap.entries());
22416
+ entries.forEach(([_, texture]) => {
22417
+ if (texture) {
22418
+ texture.destroy(true);
22419
+ }
22420
+ });
22421
+ stop();
22422
+ });
22415
22423
  return (_ctx, _cache) => {
22416
22424
  return renderSlot(_ctx.$slots, "default");
22417
22425
  };
@@ -22568,7 +22576,8 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
22568
22576
  index.value = 0;
22569
22577
  }
22570
22578
  onBeforeUnmount(() => {
22571
- textureMap.entries().forEach(([alias, texture]) => {
22579
+ const entries = Array.from(textureMap.entries());
22580
+ entries.forEach(([alias, texture]) => {
22572
22581
  if (texture) {
22573
22582
  Assets.unload(alias);
22574
22583
  }
@@ -0,0 +1,4 @@
1
+ import VkLottieAnimation from './src/index.vue';
2
+ export * as __VkLottieAnimation from './src/types';
3
+ export { VkLottieAnimation, };
4
+ export default VkLottieAnimation;
@@ -0,0 +1,10 @@
1
+ import { LoadEvent } from './types';
2
+ export declare const props: {
3
+ path: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ };
8
+ export declare const emits: {
9
+ load: (e: LoadEvent) => LoadEvent;
10
+ };
@@ -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;
@@ -0,0 +1,4 @@
1
+ import { AnimationItem } from 'lottie-web';
2
+ export interface LoadEvent {
3
+ animation: AnimationItem;
4
+ }
@@ -0,0 +1,5 @@
1
+ import VkMetahumanBroadcasting from './src/index.vue';
2
+ export * as __VkMetahumanBroadcasting from './src/types';
3
+ export { workerConfig } from '@vunk/plus/shared/audioToFrames';
4
+ export { VkMetahumanBroadcasting, };
5
+ export default VkMetahumanBroadcasting;
@@ -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
+ };