@vunk/plus 1.6.8 → 1.6.10

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 (161) hide show
  1. package/components/SendOutlined.mjs +8 -6
  2. package/components/SharedSystems.mjs +290 -72
  3. package/components/WebGLRenderer.mjs +32 -20
  4. package/components/WebGPURenderer.mjs +48 -10
  5. package/components/agent-chat-provider/index.d.ts +7 -0
  6. package/components/agent-chat-provider/index.mjs +6 -3
  7. package/components/agent-chat-provider/src/api.d.ts +3 -0
  8. package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
  9. package/components/agent-chat-provider/src/const.d.ts +1 -0
  10. package/components/agent-chat-provider/src/index.vue.d.ts +22 -0
  11. package/components/agent-chat-provider/src/types.d.ts +50 -0
  12. package/components/agent-chat-provider/src/use.d.ts +5 -0
  13. package/components/avatar/index.d.ts +4 -0
  14. package/components/avatar/index.mjs +2 -2
  15. package/components/avatar/src/ctx.d.ts +6 -0
  16. package/components/avatar/src/index.vue.d.ts +180 -0
  17. package/components/avatar/src/types.d.ts +1 -0
  18. package/components/broadcasting-markdown/index.d.ts +7 -0
  19. package/components/broadcasting-markdown/index.mjs +78 -158
  20. package/components/broadcasting-markdown/src/const.d.ts +13 -0
  21. package/components/broadcasting-markdown/src/ctx.d.ts +129 -0
  22. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +104 -0
  23. package/components/broadcasting-markdown/src/index.vue.d.ts +439 -0
  24. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +79 -0
  25. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +67 -0
  26. package/components/broadcasting-markdown/src/types.d.ts +26 -0
  27. package/components/broadcasting-markdown/src/use.d.ts +21 -0
  28. package/components/browserAll.mjs +333 -562
  29. package/components/bubble-list/index.d.ts +5 -0
  30. package/components/bubble-list/index.mjs +91 -72
  31. package/components/bubble-list/src/ctx.d.ts +32 -0
  32. package/components/bubble-list/src/index.vue.d.ts +810 -0
  33. package/components/bubble-list/src/types.d.ts +4 -0
  34. package/components/bubble-templates/index.d.ts +4 -0
  35. package/components/bubble-templates/index.mjs +83 -68
  36. package/components/bubble-templates/src/index.vue.d.ts +595 -0
  37. package/components/bubble-templates/src/types.d.ts +40 -0
  38. package/components/chat-independent/index.d.ts +4 -0
  39. package/components/chat-independent/index.mjs +136 -115
  40. package/components/chat-independent/src/const.d.ts +13 -0
  41. package/components/chat-independent/src/ctx.d.ts +21 -0
  42. package/components/chat-independent/src/index.vue.d.ts +2429 -0
  43. package/components/chat-independent/src/types.d.ts +13 -0
  44. package/components/colorToUniform.mjs +2 -0
  45. package/components/index.d.ts +0 -0
  46. package/components/index2.mjs +11896 -8381
  47. package/components/init.mjs +1724 -998
  48. package/components/lottie-animation/index.d.ts +4 -0
  49. package/components/lottie-animation/index.mjs +2 -2
  50. package/components/lottie-animation/src/ctx.d.ts +10 -0
  51. package/components/lottie-animation/src/index.vue.d.ts +21 -0
  52. package/components/lottie-animation/src/types.d.ts +4 -0
  53. package/components/metahuman-broadcasting/index.d.ts +5 -0
  54. package/components/metahuman-broadcasting/index.mjs +57 -40
  55. package/components/metahuman-broadcasting/src/ctx.d.ts +57 -0
  56. package/components/metahuman-broadcasting/src/index.vue.d.ts +885 -0
  57. package/components/metahuman-broadcasting/src/types.d.ts +1 -0
  58. package/components/monaco-editor/index.d.ts +5 -0
  59. package/components/monaco-editor/index.mjs +2 -2
  60. package/components/monaco-editor/src/ctx.d.ts +23 -0
  61. package/components/monaco-editor/src/index.vue.d.ts +40 -0
  62. package/components/monaco-editor/src/types.d.ts +1 -0
  63. package/components/monaco-environment/index.d.ts +4 -0
  64. package/components/monaco-environment/index.mjs +1 -1
  65. package/components/monaco-environment/src/ctx.d.ts +8 -0
  66. package/components/monaco-environment/src/index.vue.d.ts +2 -0
  67. package/components/monaco-environment/src/types.d.ts +1 -0
  68. package/components/pixi-frame/index.d.ts +11 -0
  69. package/components/pixi-frame/index.mjs +2 -2
  70. package/components/pixi-frame/src/apng.vue.d.ts +161 -0
  71. package/components/pixi-frame/src/bitmap.vue.d.ts +158 -0
  72. package/components/pixi-frame/src/core.vue.d.ts +173 -0
  73. package/components/pixi-frame/src/ctx.d.ts +55 -0
  74. package/components/pixi-frame/src/index.vue.d.ts +591 -0
  75. package/components/pixi-frame/src/provider.vue.d.ts +2 -0
  76. package/components/pixi-frame/src/types.d.ts +17 -0
  77. package/components/pixi-frame/src/use.d.ts +16 -0
  78. package/components/pixi-frame/src/useSprite.d.ts +12 -0
  79. package/components/pixi-frame/src/video.vue.d.ts +159 -0
  80. package/components/pixi-frame/src/view.vue.d.ts +29 -0
  81. package/components/recorder-button/index.d.ts +4 -0
  82. package/components/recorder-button/index.mjs +2 -2
  83. package/components/recorder-button/src/ctx.d.ts +41 -0
  84. package/components/recorder-button/src/index.vue.d.ts +333 -0
  85. package/components/recorder-button/src/speech-to-text.d.ts +1 -0
  86. package/components/recorder-button/src/types.d.ts +7 -0
  87. package/components/routes-menu-content/index.d.ts +4 -0
  88. package/components/routes-menu-content/index.mjs +5 -5
  89. package/components/routes-menu-content/src/ctx.d.ts +17 -0
  90. package/components/routes-menu-content/src/index.vue.d.ts +350 -0
  91. package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
  92. package/components/routes-menu-content/src/item/core/index.vue.d.ts +185 -0
  93. package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
  94. package/components/routes-menu-content/src/item/index.vue.d.ts +316 -0
  95. package/components/routes-menu-content/src/types.d.ts +1 -0
  96. package/components/sender/index.d.ts +4 -0
  97. package/components/sender/index.mjs +180 -86
  98. package/components/sender/src/SenderHeader.vue.d.ts +270 -0
  99. package/components/sender/src/ctx.d.ts +64 -0
  100. package/components/sender/src/index.vue.d.ts +779 -0
  101. package/components/sender/src/types.d.ts +1 -0
  102. package/components/speech-button/index.d.ts +4 -0
  103. package/components/speech-button/index.mjs +13 -6
  104. package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
  105. package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
  106. package/components/speech-button/src/ctx.d.ts +10 -0
  107. package/components/speech-button/src/index.vue.d.ts +22 -0
  108. package/components/speech-button/src/types.d.ts +1 -0
  109. package/components/table-columns/index.d.ts +5 -0
  110. package/components/table-columns/index.mjs +6 -3
  111. package/components/table-columns/src/ctx.d.ts +59 -0
  112. package/components/table-columns/src/el-ctx.d.ts +57 -0
  113. package/components/table-columns/src/index.vue.d.ts +266 -0
  114. package/components/table-columns/src/types.d.ts +21 -0
  115. package/components/tables-v1/index.d.ts +5 -0
  116. package/components/tables-v1/index.mjs +3 -3
  117. package/components/tables-v1/src/ctx.d.ts +280 -0
  118. package/components/tables-v1/src/el-ctx.d.ts +262 -0
  119. package/components/tables-v1/src/index.vue.d.ts +3054 -0
  120. package/components/tables-v1/src/types.d.ts +3 -0
  121. package/components/tables-v1-checkbox/index.d.ts +5 -0
  122. package/components/tables-v1-checkbox/index.mjs +33 -269
  123. package/components/tables-v1-checkbox/src/ctx.d.ts +313 -0
  124. package/components/tables-v1-checkbox/src/index.vue.d.ts +3831 -0
  125. package/components/tables-v1-checkbox/src/types.d.ts +1 -0
  126. package/components/text/index.d.ts +4 -0
  127. package/components/text/index.mjs +52 -42
  128. package/components/text/src/ctx.d.ts +341 -0
  129. package/components/text/src/index.vue.d.ts +4593 -0
  130. package/components/text/src/types.d.ts +1 -0
  131. package/components/typing-markdown/index.d.ts +4 -0
  132. package/components/typing-markdown/index.mjs +2 -2
  133. package/components/typing-markdown/src/core.d.ts +2 -0
  134. package/components/typing-markdown/src/ctx.d.ts +41 -0
  135. package/components/typing-markdown/src/index.vue.d.ts +75 -0
  136. package/components/typing-markdown/src/types.d.ts +1 -0
  137. package/components/vditor/index.d.ts +5 -0
  138. package/components/vditor/index.mjs +9 -5
  139. package/components/vditor/src/ctx.d.ts +38 -0
  140. package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
  141. package/components/vditor/src/handle-value.vue.d.ts +18 -0
  142. package/components/vditor/src/index.vue.d.ts +143 -0
  143. package/components/vditor/src/types.d.ts +9 -0
  144. package/components/vditor/src/use.d.ts +4 -0
  145. package/components/webworkerAll.mjs +1 -1
  146. package/composables/el-breakpoints/index.d.ts +5 -5
  147. package/composables/recorder/index.mjs +191 -288
  148. package/icons/end/index.mjs +3 -3
  149. package/icons/end/src/avatar.d.ts +2 -11
  150. package/icons/end/src/icon.d.ts +2 -56
  151. package/icons/keyboard/index.mjs +3 -3
  152. package/icons/keyboard/src/avatar.d.ts +2 -11
  153. package/icons/keyboard/src/icon.d.ts +2 -56
  154. package/icons/start/index.mjs +3 -3
  155. package/icons/start/src/avatar.d.ts +2 -11
  156. package/icons/start/src/icon.d.ts +2 -56
  157. package/icons/voice/index.mjs +2 -2
  158. package/icons/voice/src/avatar.d.ts +2 -11
  159. package/icons/voice/src/icon.d.ts +2 -56
  160. package/package.json +1 -1
  161. package/shared/audioToFrames/index.mjs +10 -2
@@ -0,0 +1,5 @@
1
+ import VkBubbleList from './src/index.vue';
2
+ export * as __VkBubbleList from './src/types';
3
+ export { Role } from '@vunk/plus/components/agent-chat-provider';
4
+ export { VkBubbleList, };
5
+ export default VkBubbleList;
@@ -1,4 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode, renderSlot, mergeProps, createSlots, normalizeProps, guardReactiveProps } from 'vue';
1
+ import { defineComponent, openBlock, createBlock, withCtx, createVNode, renderSlot, mergeProps, createSlots, normalizeProps, guardReactiveProps } from 'vue';
2
2
  import { VkBubbleTemplates } from '@vunk/plus/components/bubble-templates';
3
3
  import { VkRenderer } from '@vunk/core/components/renderer';
4
4
  import { VkRendererTemplateInstancesProvider } from '@vunk/core/components/renderer-template-instances-provider';
@@ -6,6 +6,7 @@ import { VkSpreadTo } from '@vunk/core/components/spread-to';
6
6
  import { ElAutoResizer } from 'element-plus';
7
7
  import { BubbleList } from 'vue-element-plus-x';
8
8
  import { noop } from '@vunk/shared/function';
9
+ import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
9
10
  export { Role } from '@vunk/plus/components/agent-chat-provider';
10
11
 
11
12
  const props = {
@@ -29,88 +30,106 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
29
30
  },
30
31
  __name: "index",
31
32
  props: props,
32
- setup(__props) {
33
+ setup(__props, { expose: __expose }) {
34
+ __expose();
33
35
  function getContentWraper(e) {
34
36
  return e.el;
35
37
  }
36
- return (_ctx, _cache) => {
37
- return openBlock(), createBlock(unref(VkRendererTemplateInstancesProvider), null, {
38
- default: withCtx(() => [
39
- createVNode(unref(VkBubbleTemplates), { "text-to-speech": _ctx.textToSpeech }, null, 8, ["text-to-speech"]),
40
- renderSlot(_ctx.$slots, "renderer"),
41
- createVNode(unref(ElAutoResizer), null, {
42
- default: withCtx(({ height }) => [
43
- createVNode(unref(BubbleList), mergeProps({
44
- ref: _ctx.elRef,
45
- "btn-icon-size": 18,
46
- "max-height": `${height}px`,
47
- style: {
48
- "--el-bubble-list-max-height": `${height}px`
49
- },
50
- list: _ctx.items
51
- }, _ctx.$attrs), createSlots({
52
- content: withCtx(({ item }) => [
53
- createVNode(unref(VkRenderer), {
54
- source: [item]
55
- }, null, 8, ["source"]),
56
- createVNode(unref(VkSpreadTo), {
57
- target: getContentWraper,
58
- type: "class",
59
- data: {
60
- [`is-${item.role}`]: true
61
- }
62
- }, null, 8, ["data"])
63
- ]),
64
- _: 2
65
- /* DYNAMIC */
66
- }, [
67
- _ctx.$slots.avatar ? {
68
- name: "avatar",
69
- fn: withCtx((e) => [
70
- renderSlot(_ctx.$slots, "avatar", normalizeProps(guardReactiveProps(e)))
71
- ]),
72
- key: "0"
73
- } : void 0,
74
- _ctx.$slots.header ? {
75
- name: "header",
76
- fn: withCtx((e) => [
77
- renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps(e)))
78
- ]),
79
- key: "1"
80
- } : void 0,
81
- _ctx.$slots.loading ? {
82
- name: "loading",
83
- fn: withCtx((e) => [
84
- renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(e)))
85
- ]),
86
- key: "2"
87
- } : void 0,
88
- _ctx.$slots.footer ? {
89
- name: "footer",
90
- fn: withCtx((e) => [
91
- renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps(e)))
92
- ]),
93
- key: "3"
94
- } : void 0
95
- ]), 1040, ["max-height", "style", "list"])
38
+ const __returned__ = { getContentWraper, get VkBubbleTemplates() {
39
+ return VkBubbleTemplates;
40
+ }, get VkRenderer() {
41
+ return VkRenderer;
42
+ }, get VkRendererTemplateInstancesProvider() {
43
+ return VkRendererTemplateInstancesProvider;
44
+ }, get VkSpreadTo() {
45
+ return VkSpreadTo;
46
+ }, get ElAutoResizer() {
47
+ return ElAutoResizer;
48
+ }, get BubbleList() {
49
+ return BubbleList;
50
+ } };
51
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
52
+ return __returned__;
53
+ }
54
+ });
55
+
56
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
57
+ return openBlock(), createBlock($setup["VkRendererTemplateInstancesProvider"], null, {
58
+ default: withCtx(() => [
59
+ createVNode($setup["VkBubbleTemplates"], { "text-to-speech": _ctx.textToSpeech }, null, 8, ["text-to-speech"]),
60
+ renderSlot(_ctx.$slots, "renderer"),
61
+ createVNode($setup["ElAutoResizer"], null, {
62
+ default: withCtx(({ height }) => [
63
+ createVNode($setup["BubbleList"], mergeProps({
64
+ ref: _ctx.elRef,
65
+ "btn-icon-size": 18,
66
+ "max-height": `${height}px`,
67
+ style: {
68
+ "--el-bubble-list-max-height": `${height}px`
69
+ },
70
+ list: _ctx.items
71
+ }, _ctx.$attrs), createSlots({
72
+ content: withCtx(({ item }) => [
73
+ createVNode($setup["VkRenderer"], {
74
+ source: [item]
75
+ }, null, 8, ["source"]),
76
+ createVNode($setup["VkSpreadTo"], {
77
+ target: $setup.getContentWraper,
78
+ type: "class",
79
+ data: {
80
+ [`is-${item.role}`]: true
81
+ }
82
+ }, null, 8, ["data"])
96
83
  ]),
97
- _: 3
98
- /* FORWARDED */
99
- })
84
+ _: 2
85
+ /* DYNAMIC */
86
+ }, [
87
+ _ctx.$slots.avatar ? {
88
+ name: "avatar",
89
+ fn: withCtx((e) => [
90
+ renderSlot(_ctx.$slots, "avatar", normalizeProps(guardReactiveProps(e)))
91
+ ]),
92
+ key: "0"
93
+ } : void 0,
94
+ _ctx.$slots.header ? {
95
+ name: "header",
96
+ fn: withCtx((e) => [
97
+ renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps(e)))
98
+ ]),
99
+ key: "1"
100
+ } : void 0,
101
+ _ctx.$slots.loading ? {
102
+ name: "loading",
103
+ fn: withCtx((e) => [
104
+ renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(e)))
105
+ ]),
106
+ key: "2"
107
+ } : void 0,
108
+ _ctx.$slots.footer ? {
109
+ name: "footer",
110
+ fn: withCtx((e) => [
111
+ renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps(e)))
112
+ ]),
113
+ key: "3"
114
+ } : void 0
115
+ ]), 1040, ["max-height", "style", "list"])
100
116
  ]),
101
117
  _: 3
102
118
  /* FORWARDED */
103
- });
104
- };
105
- }
106
- });
119
+ })
120
+ ]),
121
+ _: 3
122
+ /* FORWARDED */
123
+ });
124
+ }
125
+ var VkBubbleList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/bubble-list/src/index.vue"]]);
107
126
 
108
127
  var types = /*#__PURE__*/Object.freeze({
109
128
  __proto__: null
110
129
  });
111
130
 
112
- _sfc_main.install = (app) => {
113
- app.component(_sfc_main.name || "VkBubbleList", _sfc_main);
131
+ VkBubbleList.install = (app) => {
132
+ app.component(VkBubbleList.name || "VkBubbleList", VkBubbleList);
114
133
  };
115
134
 
116
- export { _sfc_main as VkBubbleList, types as __VkBubbleList, _sfc_main as default };
135
+ export { VkBubbleList, types as __VkBubbleList, VkBubbleList as default };
@@ -0,0 +1,32 @@
1
+ import type { __VkBroadcastingMarkdown } from '@vunk/plus/components/broadcasting-markdown';
2
+ import type { AnyFunc } from '@vunk/shared';
3
+ import type { PropType } from 'vue';
4
+ export declare const props: {
5
+ items: {
6
+ type: {
7
+ (arrayLength: number): any[];
8
+ (...items: any[]): any[];
9
+ new (arrayLength: number): any[];
10
+ new (...items: any[]): any[];
11
+ isArray(arg: any): arg is any[];
12
+ readonly prototype: any[];
13
+ from<T>(arrayLike: ArrayLike<T>): T[];
14
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
15
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
16
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
17
+ of<T>(...items: T[]): T[];
18
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
19
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
20
+ readonly [Symbol.species]: ArrayConstructor;
21
+ };
22
+ default: () => never[];
23
+ };
24
+ elRef: {
25
+ type: PropType<AnyFunc>;
26
+ default: AnyFunc;
27
+ };
28
+ textToSpeech: {
29
+ type: PropType<__VkBroadcastingMarkdown.TextToSpeech>;
30
+ };
31
+ };
32
+ export declare const emits: {};