@vunk/plus 1.6.7 → 1.6.9
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/SendOutlined.mjs +8 -6
- package/components/SharedSystems.mjs +290 -72
- package/components/WebGLRenderer.mjs +32 -20
- package/components/WebGPURenderer.mjs +48 -10
- package/components/agent-chat-provider/index.d.ts +7 -0
- package/components/agent-chat-provider/index.mjs +7 -4
- package/components/agent-chat-provider/src/api.d.ts +3 -0
- package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
- package/components/agent-chat-provider/src/const.d.ts +1 -0
- package/components/agent-chat-provider/src/index.vue.d.ts +22 -0
- package/components/agent-chat-provider/src/types.d.ts +50 -0
- package/components/agent-chat-provider/src/use.d.ts +5 -0
- package/components/avatar/index.d.ts +4 -0
- package/components/avatar/index.mjs +2 -2
- package/components/avatar/src/ctx.d.ts +6 -0
- package/components/avatar/src/index.vue.d.ts +180 -0
- package/components/avatar/src/types.d.ts +1 -0
- package/components/broadcasting-markdown/index.d.ts +7 -0
- package/components/broadcasting-markdown/index.mjs +78 -158
- package/components/broadcasting-markdown/src/const.d.ts +13 -0
- package/components/broadcasting-markdown/src/ctx.d.ts +129 -0
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +104 -0
- package/components/broadcasting-markdown/src/index.vue.d.ts +439 -0
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +79 -0
- package/components/broadcasting-markdown/src/speech-error.vue.d.ts +67 -0
- package/components/broadcasting-markdown/src/types.d.ts +26 -0
- package/components/broadcasting-markdown/src/use.d.ts +21 -0
- package/components/browserAll.mjs +333 -562
- package/components/bubble-list/index.d.ts +5 -0
- package/components/bubble-list/index.mjs +91 -72
- package/components/bubble-list/src/ctx.d.ts +32 -0
- package/components/bubble-list/src/index.vue.d.ts +810 -0
- package/components/bubble-list/src/types.d.ts +4 -0
- package/components/bubble-templates/index.d.ts +4 -0
- package/components/bubble-templates/index.mjs +83 -68
- package/components/bubble-templates/src/index.vue.d.ts +595 -0
- package/components/bubble-templates/src/types.d.ts +40 -0
- package/components/chat-independent/index.d.ts +4 -0
- package/components/chat-independent/index.mjs +136 -115
- package/components/chat-independent/src/const.d.ts +13 -0
- package/components/chat-independent/src/ctx.d.ts +21 -0
- package/components/chat-independent/src/index.vue.d.ts +2429 -0
- package/components/chat-independent/src/types.d.ts +13 -0
- package/components/colorToUniform.mjs +2 -0
- package/components/index.d.ts +0 -0
- package/components/index2.mjs +11896 -8381
- package/components/init.mjs +1724 -998
- package/components/lottie-animation/index.d.ts +4 -0
- package/components/lottie-animation/index.mjs +2 -2
- package/components/lottie-animation/src/ctx.d.ts +10 -0
- package/components/lottie-animation/src/index.vue.d.ts +21 -0
- package/components/lottie-animation/src/types.d.ts +4 -0
- package/components/metahuman-broadcasting/index.d.ts +5 -0
- package/components/metahuman-broadcasting/index.mjs +57 -40
- package/components/metahuman-broadcasting/src/ctx.d.ts +57 -0
- package/components/metahuman-broadcasting/src/index.vue.d.ts +885 -0
- package/components/metahuman-broadcasting/src/types.d.ts +1 -0
- package/components/monaco-editor/index.d.ts +5 -0
- package/components/monaco-editor/index.mjs +2 -2
- package/components/monaco-editor/src/ctx.d.ts +23 -0
- package/components/monaco-editor/src/index.vue.d.ts +40 -0
- package/components/monaco-editor/src/types.d.ts +1 -0
- package/components/monaco-environment/index.d.ts +4 -0
- package/components/monaco-environment/index.mjs +1 -1
- package/components/monaco-environment/src/ctx.d.ts +8 -0
- package/components/monaco-environment/src/index.vue.d.ts +2 -0
- package/components/monaco-environment/src/types.d.ts +1 -0
- package/components/pixi-frame/index.d.ts +11 -0
- package/components/pixi-frame/index.mjs +2 -2
- package/components/pixi-frame/src/apng.vue.d.ts +161 -0
- package/components/pixi-frame/src/bitmap.vue.d.ts +158 -0
- package/components/pixi-frame/src/core.vue.d.ts +173 -0
- package/components/pixi-frame/src/ctx.d.ts +55 -0
- package/components/pixi-frame/src/index.vue.d.ts +591 -0
- package/components/pixi-frame/src/provider.vue.d.ts +2 -0
- package/components/pixi-frame/src/types.d.ts +17 -0
- package/components/pixi-frame/src/use.d.ts +16 -0
- package/components/pixi-frame/src/useSprite.d.ts +12 -0
- package/components/pixi-frame/src/video.vue.d.ts +159 -0
- package/components/pixi-frame/src/view.vue.d.ts +29 -0
- package/components/recorder-button/index.d.ts +4 -0
- package/components/recorder-button/index.mjs +2 -2
- package/components/recorder-button/src/ctx.d.ts +41 -0
- package/components/recorder-button/src/index.vue.d.ts +333 -0
- package/components/recorder-button/src/speech-to-text.d.ts +1 -0
- package/components/recorder-button/src/types.d.ts +7 -0
- package/components/routes-menu-content/index.d.ts +4 -0
- package/components/routes-menu-content/index.mjs +5 -5
- package/components/routes-menu-content/src/ctx.d.ts +17 -0
- package/components/routes-menu-content/src/index.vue.d.ts +350 -0
- package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +185 -0
- package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
- package/components/routes-menu-content/src/item/index.vue.d.ts +316 -0
- package/components/routes-menu-content/src/types.d.ts +1 -0
- package/components/sender/index.css +0 -8
- package/components/sender/index.d.ts +4 -0
- package/components/sender/index.mjs +101 -69
- package/components/sender/src/SenderHeader.vue.d.ts +270 -0
- package/components/sender/src/ctx.d.ts +64 -0
- package/components/sender/src/index.vue.d.ts +779 -0
- package/components/sender/src/types.d.ts +1 -0
- package/components/speech-button/index.d.ts +4 -0
- package/components/speech-button/index.mjs +14 -7
- package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/ctx.d.ts +10 -0
- package/components/speech-button/src/index.vue.d.ts +22 -0
- package/components/speech-button/src/types.d.ts +1 -0
- package/components/table-columns/index.d.ts +5 -0
- package/components/table-columns/index.mjs +6 -3
- package/components/table-columns/src/ctx.d.ts +59 -0
- package/components/table-columns/src/el-ctx.d.ts +57 -0
- package/components/table-columns/src/index.vue.d.ts +266 -0
- package/components/table-columns/src/types.d.ts +21 -0
- package/components/tables-v1/index.d.ts +5 -0
- package/components/tables-v1/index.mjs +3 -3
- package/components/tables-v1/src/ctx.d.ts +280 -0
- package/components/tables-v1/src/el-ctx.d.ts +262 -0
- package/components/tables-v1/src/index.vue.d.ts +3054 -0
- package/components/tables-v1/src/types.d.ts +3 -0
- package/components/tables-v1-checkbox/index.d.ts +5 -0
- package/components/tables-v1-checkbox/index.mjs +33 -269
- package/components/tables-v1-checkbox/src/ctx.d.ts +313 -0
- package/components/tables-v1-checkbox/src/index.vue.d.ts +3831 -0
- package/components/tables-v1-checkbox/src/types.d.ts +1 -0
- package/components/text/index.d.ts +4 -0
- package/components/text/index.mjs +52 -42
- package/components/text/src/ctx.d.ts +341 -0
- package/components/text/src/index.vue.d.ts +4593 -0
- package/components/text/src/types.d.ts +1 -0
- package/components/typing-markdown/index.d.ts +4 -0
- package/components/typing-markdown/index.mjs +2 -2
- package/components/typing-markdown/src/core.d.ts +2 -0
- package/components/typing-markdown/src/ctx.d.ts +41 -0
- package/components/typing-markdown/src/index.vue.d.ts +75 -0
- package/components/typing-markdown/src/types.d.ts +1 -0
- package/components/vditor/index.d.ts +5 -0
- package/components/vditor/index.mjs +9 -5
- package/components/vditor/src/ctx.d.ts +38 -0
- package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
- package/components/vditor/src/handle-value.vue.d.ts +18 -0
- package/components/vditor/src/index.vue.d.ts +143 -0
- package/components/vditor/src/types.d.ts +9 -0
- package/components/vditor/src/use.d.ts +4 -0
- package/components/webworkerAll.mjs +1 -1
- package/composables/el-breakpoints/index.d.ts +5 -5
- package/composables/recorder/index.mjs +191 -288
- package/icons/end/index.mjs +3 -3
- package/icons/end/src/avatar.d.ts +2 -11
- package/icons/end/src/icon.d.ts +2 -56
- package/icons/keyboard/index.mjs +3 -3
- package/icons/keyboard/src/avatar.d.ts +2 -11
- package/icons/keyboard/src/icon.d.ts +2 -56
- package/icons/start/index.mjs +3 -3
- package/icons/start/src/avatar.d.ts +2 -11
- package/icons/start/src/icon.d.ts +2 -56
- package/icons/voice/index.mjs +2 -2
- package/icons/voice/src/avatar.d.ts +2 -11
- package/icons/voice/src/icon.d.ts +2 -56
- package/index.css +0 -8
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
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
|
-
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
]
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
_:
|
|
98
|
-
/*
|
|
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
|
-
|
|
113
|
-
app.component(
|
|
131
|
+
VkBubbleList.install = (app) => {
|
|
132
|
+
app.component(VkBubbleList.name || "VkBubbleList", VkBubbleList);
|
|
114
133
|
};
|
|
115
134
|
|
|
116
|
-
export {
|
|
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: {};
|