@vunk/plus 1.7.5 → 1.8.0

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 (120) hide show
  1. package/components/scrollbar/index.mjs +595 -0
  2. package/package.json +5 -1
  3. package/components/agent-chat-provider/index.d.ts +0 -8
  4. package/components/agent-chat-provider/src/MessageView.d.ts +0 -29
  5. package/components/agent-chat-provider/src/api.d.ts +0 -3
  6. package/components/agent-chat-provider/src/const-roles.d.ts +0 -8
  7. package/components/agent-chat-provider/src/const.d.ts +0 -1
  8. package/components/agent-chat-provider/src/index.vue.d.ts +0 -22
  9. package/components/agent-chat-provider/src/types.d.ts +0 -56
  10. package/components/agent-chat-provider/src/use.d.ts +0 -6
  11. package/components/avatar/index.d.ts +0 -4
  12. package/components/avatar/src/ctx.d.ts +0 -6
  13. package/components/avatar/src/index.vue.d.ts +0 -261
  14. package/components/avatar/src/types.d.ts +0 -1
  15. package/components/broadcasting-markdown/index.d.ts +0 -7
  16. package/components/broadcasting-markdown/src/const.d.ts +0 -13
  17. package/components/broadcasting-markdown/src/ctx.d.ts +0 -126
  18. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +0 -58
  19. package/components/broadcasting-markdown/src/index.vue.d.ts +0 -373
  20. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +0 -79
  21. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +0 -60
  22. package/components/broadcasting-markdown/src/types.d.ts +0 -26
  23. package/components/broadcasting-markdown/src/use.d.ts +0 -19
  24. package/components/bubble-list/index.d.ts +0 -5
  25. package/components/bubble-list/src/ctx.d.ts +0 -28
  26. package/components/bubble-list/src/index.vue.d.ts +0 -484
  27. package/components/bubble-list/src/types.d.ts +0 -4
  28. package/components/bubble-templates/index.d.ts +0 -5
  29. package/components/bubble-templates/src/core.d.ts +0 -69
  30. package/components/bubble-templates/src/index.vue.d.ts +0 -242
  31. package/components/bubble-templates/src/legacy.vue.d.ts +0 -153
  32. package/components/bubble-templates/src/types.d.ts +0 -45
  33. package/components/chat-independent/index.d.ts +0 -4
  34. package/components/chat-independent/src/const.d.ts +0 -13
  35. package/components/chat-independent/src/ctx.d.ts +0 -21
  36. package/components/chat-independent/src/index.vue.d.ts +0 -2407
  37. package/components/chat-independent/src/types.d.ts +0 -13
  38. package/components/index.d.ts +0 -0
  39. package/components/lottie-animation/index.d.ts +0 -4
  40. package/components/lottie-animation/src/ctx.d.ts +0 -10
  41. package/components/lottie-animation/src/index.vue.d.ts +0 -21
  42. package/components/lottie-animation/src/types.d.ts +0 -4
  43. package/components/metahuman-broadcasting/index.d.ts +0 -5
  44. package/components/metahuman-broadcasting/src/ctx.d.ts +0 -57
  45. package/components/metahuman-broadcasting/src/index.vue.d.ts +0 -826
  46. package/components/metahuman-broadcasting/src/types.d.ts +0 -1
  47. package/components/monaco-editor/index.d.ts +0 -5
  48. package/components/monaco-editor/src/ctx.d.ts +0 -23
  49. package/components/monaco-editor/src/index.vue.d.ts +0 -40
  50. package/components/monaco-editor/src/types.d.ts +0 -1
  51. package/components/monaco-environment/index.d.ts +0 -4
  52. package/components/monaco-environment/src/ctx.d.ts +0 -8
  53. package/components/monaco-environment/src/index.vue.d.ts +0 -2
  54. package/components/monaco-environment/src/types.d.ts +0 -1
  55. package/components/pixi-frame/index.d.ts +0 -11
  56. package/components/pixi-frame/src/apng.vue.d.ts +0 -161
  57. package/components/pixi-frame/src/bitmap.vue.d.ts +0 -158
  58. package/components/pixi-frame/src/core.vue.d.ts +0 -173
  59. package/components/pixi-frame/src/ctx.d.ts +0 -55
  60. package/components/pixi-frame/src/index.vue.d.ts +0 -591
  61. package/components/pixi-frame/src/provider.vue.d.ts +0 -2
  62. package/components/pixi-frame/src/types.d.ts +0 -17
  63. package/components/pixi-frame/src/use.d.ts +0 -16
  64. package/components/pixi-frame/src/useSprite.d.ts +0 -12
  65. package/components/pixi-frame/src/video.vue.d.ts +0 -159
  66. package/components/pixi-frame/src/view.vue.d.ts +0 -29
  67. package/components/recorder-button/index.d.ts +0 -4
  68. package/components/recorder-button/src/ctx.d.ts +0 -41
  69. package/components/recorder-button/src/index.vue.d.ts +0 -489
  70. package/components/recorder-button/src/speech-to-text.d.ts +0 -1
  71. package/components/recorder-button/src/types.d.ts +0 -7
  72. package/components/routes-menu-content/index.d.ts +0 -4
  73. package/components/routes-menu-content/src/ctx.d.ts +0 -17
  74. package/components/routes-menu-content/src/index.vue.d.ts +0 -573
  75. package/components/routes-menu-content/src/item/core/ctx.d.ts +0 -18
  76. package/components/routes-menu-content/src/item/core/index.vue.d.ts +0 -408
  77. package/components/routes-menu-content/src/item/ctx.d.ts +0 -14
  78. package/components/routes-menu-content/src/item/index.vue.d.ts +0 -539
  79. package/components/routes-menu-content/src/types.d.ts +0 -1
  80. package/components/sender/index.d.ts +0 -4
  81. package/components/sender/src/SenderHeader.vue.d.ts +0 -256
  82. package/components/sender/src/ctx.d.ts +0 -64
  83. package/components/sender/src/index.vue.d.ts +0 -765
  84. package/components/sender/src/types.d.ts +0 -1
  85. package/components/speech-button/index.d.ts +0 -4
  86. package/components/speech-button/src/LoadingIcon.vue.d.ts +0 -2
  87. package/components/speech-button/src/RecordingIcon.vue.d.ts +0 -2
  88. package/components/speech-button/src/ctx.d.ts +0 -10
  89. package/components/speech-button/src/index.vue.d.ts +0 -22
  90. package/components/speech-button/src/types.d.ts +0 -1
  91. package/components/table-columns/index.d.ts +0 -5
  92. package/components/table-columns/src/ctx.d.ts +0 -59
  93. package/components/table-columns/src/el-ctx.d.ts +0 -57
  94. package/components/table-columns/src/index.vue.d.ts +0 -132
  95. package/components/table-columns/src/types.d.ts +0 -21
  96. package/components/tables-v1/index.d.ts +0 -5
  97. package/components/tables-v1/src/ctx.d.ts +0 -337
  98. package/components/tables-v1/src/el-ctx.d.ts +0 -262
  99. package/components/tables-v1/src/index.vue.d.ts +0 -3085
  100. package/components/tables-v1/src/types.d.ts +0 -3
  101. package/components/tables-v1-checkbox/index.d.ts +0 -5
  102. package/components/tables-v1-checkbox/src/ctx.d.ts +0 -370
  103. package/components/tables-v1-checkbox/src/index.vue.d.ts +0 -3972
  104. package/components/tables-v1-checkbox/src/types.d.ts +0 -1
  105. package/components/text/index.d.ts +0 -4
  106. package/components/text/src/ctx.d.ts +0 -356
  107. package/components/text/src/index.vue.d.ts +0 -2335
  108. package/components/text/src/types.d.ts +0 -1
  109. package/components/typing-markdown/index.d.ts +0 -4
  110. package/components/typing-markdown/src/core.d.ts +0 -2
  111. package/components/typing-markdown/src/ctx.d.ts +0 -41
  112. package/components/typing-markdown/src/index.vue.d.ts +0 -75
  113. package/components/typing-markdown/src/types.d.ts +0 -1
  114. package/components/vditor/index.d.ts +0 -5
  115. package/components/vditor/src/ctx.d.ts +0 -38
  116. package/components/vditor/src/handle-fullscreen.vue.d.ts +0 -18
  117. package/components/vditor/src/handle-value.vue.d.ts +0 -18
  118. package/components/vditor/src/index.vue.d.ts +0 -143
  119. package/components/vditor/src/types.d.ts +0 -9
  120. package/components/vditor/src/use.d.ts +0 -4
@@ -1,242 +0,0 @@
1
- import type { PropType } from 'vue';
2
- import type { MarkdownProps } from './types';
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- markdownProps: {
5
- type: PropType<Partial<MarkdownProps>>;
6
- default: () => {
7
- containers: string[];
8
- };
9
- };
10
- }>, {
11
- readonly VkMarkdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
- source: {
13
- type: StringConstructor;
14
- default: string;
15
- };
16
- containers: {
17
- type: {
18
- (arrayLength: number): string[];
19
- (...items: string[]): string[];
20
- new (arrayLength: number): string[];
21
- new (...items: string[]): string[];
22
- isArray(arg: any): arg is any[];
23
- readonly prototype: any[];
24
- from<T>(arrayLike: ArrayLike<T>): T[];
25
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
26
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
27
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
28
- of<T>(...items: T[]): T[];
29
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
30
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
31
- readonly [Symbol.species]: ArrayConstructor;
32
- };
33
- default: () => string[];
34
- };
35
- fences: {
36
- type: {
37
- (arrayLength: number): string[];
38
- (...items: string[]): string[];
39
- new (arrayLength: number): string[];
40
- new (...items: string[]): string[];
41
- isArray(arg: any): arg is any[];
42
- readonly prototype: any[];
43
- from<T>(arrayLike: ArrayLike<T>): T[];
44
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
45
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
46
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
47
- of<T>(...items: T[]): T[];
48
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
49
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
50
- readonly [Symbol.species]: ArrayConstructor;
51
- };
52
- default: () => string[];
53
- };
54
- tags: {
55
- type: {
56
- (arrayLength: number): string[];
57
- (...items: string[]): string[];
58
- new (arrayLength: number): string[];
59
- new (...items: string[]): string[];
60
- isArray(arg: any): arg is any[];
61
- readonly prototype: any[];
62
- from<T>(arrayLike: ArrayLike<T>): T[];
63
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
64
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
65
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
66
- of<T>(...items: T[]): T[];
67
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
68
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
69
- readonly [Symbol.species]: ArrayConstructor;
70
- };
71
- default: () => never[];
72
- };
73
- markdownItOptions: {
74
- type: import("vue").PropType<import("markdown-it").Options>;
75
- default: () => {};
76
- };
77
- markdownItSetup: {
78
- type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
79
- default: import("@vunk/shared").AnyFunc;
80
- };
81
- dev: {
82
- type: BooleanConstructor;
83
- default: boolean;
84
- };
85
- }>, {
86
- items: import("vue").ComputedRef<import("@vunk/markdown/components/markdown/src/types").RendererToken[]>;
87
- handlelog: () => void;
88
- md: import("markdown-it");
89
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
90
- source: {
91
- type: StringConstructor;
92
- default: string;
93
- };
94
- containers: {
95
- type: {
96
- (arrayLength: number): string[];
97
- (...items: string[]): string[];
98
- new (arrayLength: number): string[];
99
- new (...items: string[]): string[];
100
- isArray(arg: any): arg is any[];
101
- readonly prototype: any[];
102
- from<T>(arrayLike: ArrayLike<T>): T[];
103
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
104
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
105
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
106
- of<T>(...items: T[]): T[];
107
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
108
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
109
- readonly [Symbol.species]: ArrayConstructor;
110
- };
111
- default: () => string[];
112
- };
113
- fences: {
114
- type: {
115
- (arrayLength: number): string[];
116
- (...items: string[]): string[];
117
- new (arrayLength: number): string[];
118
- new (...items: string[]): string[];
119
- isArray(arg: any): arg is any[];
120
- readonly prototype: any[];
121
- from<T>(arrayLike: ArrayLike<T>): T[];
122
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
123
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
124
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
125
- of<T>(...items: T[]): T[];
126
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
127
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
128
- readonly [Symbol.species]: ArrayConstructor;
129
- };
130
- default: () => string[];
131
- };
132
- tags: {
133
- type: {
134
- (arrayLength: number): string[];
135
- (...items: string[]): string[];
136
- new (arrayLength: number): string[];
137
- new (...items: string[]): string[];
138
- isArray(arg: any): arg is any[];
139
- readonly prototype: any[];
140
- from<T>(arrayLike: ArrayLike<T>): T[];
141
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
142
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
143
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
144
- of<T>(...items: T[]): T[];
145
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
146
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
147
- readonly [Symbol.species]: ArrayConstructor;
148
- };
149
- default: () => never[];
150
- };
151
- markdownItOptions: {
152
- type: import("vue").PropType<import("markdown-it").Options>;
153
- default: () => {};
154
- };
155
- markdownItSetup: {
156
- type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
157
- default: import("@vunk/shared").AnyFunc;
158
- };
159
- dev: {
160
- type: BooleanConstructor;
161
- default: boolean;
162
- };
163
- }>> & Readonly<{}>, {
164
- source: string;
165
- containers: string[];
166
- fences: string[];
167
- tags: string[];
168
- markdownItOptions: import("markdown-it").Options;
169
- markdownItSetup: import("@vunk/shared").AnyFunc;
170
- dev: boolean;
171
- }, {}, {
172
- VkRenderer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
173
- source: {
174
- type: import("vue").PropType<import("@vunk/core/components/renderer/src/types").SourceItem[]>;
175
- default: () => any[];
176
- };
177
- templateInstances: {
178
- type: import("vue").PropType<Record<string, import("vue").ComponentInternalInstance>>;
179
- default: any;
180
- };
181
- k: {
182
- type: import("vue").PropType<(string | number)[]>;
183
- default: () => any[];
184
- };
185
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
186
- [key: string]: any;
187
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
188
- source: {
189
- type: import("vue").PropType<import("@vunk/core/components/renderer/src/types").SourceItem[]>;
190
- default: () => any[];
191
- };
192
- templateInstances: {
193
- type: import("vue").PropType<Record<string, import("vue").ComponentInternalInstance>>;
194
- default: any;
195
- };
196
- k: {
197
- type: import("vue").PropType<(string | number)[]>;
198
- default: () => any[];
199
- };
200
- }>> & Readonly<{}>, {
201
- source: import("@vunk/core/components/renderer/src/types").SourceItem[];
202
- templateInstances: Record<string, import("vue").ComponentInternalInstance>;
203
- k: (string | number)[];
204
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
205
- VkTemplatesDefault: {
206
- new (...args: any[]): any;
207
- __isFragment?: never;
208
- __isTeleport?: never;
209
- __isSuspense?: never;
210
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
211
- [x: string]: any;
212
- [x: symbol]: any;
213
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
214
- install(app: import("vue").App): void;
215
- };
216
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
217
- readonly VkBubbleRenderTemplate: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
218
- type: {
219
- type: StringConstructor;
220
- required: boolean;
221
- default: string;
222
- };
223
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
224
- type: {
225
- type: StringConstructor;
226
- required: boolean;
227
- default: string;
228
- };
229
- }>> & Readonly<{}>, {
230
- type: string;
231
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
232
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
233
- markdownProps: {
234
- type: PropType<Partial<MarkdownProps>>;
235
- default: () => {
236
- containers: string[];
237
- };
238
- };
239
- }>> & Readonly<{}>, {
240
- markdownProps: Partial<MarkdownProps>;
241
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
242
- export default _default;
@@ -1,153 +0,0 @@
1
- import type { __VkAgentChatProvider } from '@vunk/plus/components/agent-chat-provider';
2
- import type { __VkBubbleList } from '@vunk/plus/components/bubble-list';
3
- import type { SetDataEvent } from '@vunk/core';
4
- import { type PropType } from 'vue';
5
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
- modules: {
7
- type: PropType<__VkAgentChatProvider.BubbleItemModule[]>;
8
- default: () => string[];
9
- };
10
- }>, {
11
- setRef: (emitSetData: (e: SetDataEvent) => void, props: __VkBubbleList.Item, el: any) => void;
12
- initRenderData: (emitSetData: (e: SetDataEvent) => void, props: __VkBubbleList.Item) => void;
13
- readonly VkBubbleRenderTemplate: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
- type: {
15
- type: StringConstructor;
16
- required: boolean;
17
- default: string;
18
- };
19
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
- type: {
21
- type: StringConstructor;
22
- required: boolean;
23
- default: string;
24
- };
25
- }>> & Readonly<{}>, {
26
- type: string;
27
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
- readonly Thinking: {
29
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue-element-plus-x/./types/Thinking").ThinkingProps> & Readonly<{
30
- onChange?: ((value: {
31
- value: boolean;
32
- status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
33
- }) => any) | undefined;
34
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
35
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
- change: (value: {
37
- value: boolean;
38
- status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
39
- }) => any;
40
- "update:modelValue": (value: boolean) => any;
41
- }, import("vue").PublicProps, {
42
- maxWidth: string;
43
- status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
44
- color: string;
45
- content: string;
46
- disabled: boolean;
47
- duration: string;
48
- backgroundColor: string;
49
- modelValue: boolean;
50
- autoCollapse: boolean;
51
- buttonWidth: string;
52
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, HTMLDivElement, import("vue").ComponentProvideOptions, {
53
- P: {};
54
- B: {};
55
- D: {};
56
- C: {};
57
- M: {};
58
- Defaults: {};
59
- }, Readonly<import("vue-element-plus-x/./types/Thinking").ThinkingProps> & Readonly<{
60
- onChange?: ((value: {
61
- value: boolean;
62
- status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
63
- }) => any) | undefined;
64
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
65
- }>, {}, {}, {}, {}, {
66
- maxWidth: string;
67
- status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
68
- color: string;
69
- content: string;
70
- disabled: boolean;
71
- duration: string;
72
- backgroundColor: string;
73
- modelValue: boolean;
74
- autoCollapse: boolean;
75
- buttonWidth: string;
76
- }>;
77
- __isFragment?: never;
78
- __isTeleport?: never;
79
- __isSuspense?: never;
80
- } & import("vue").ComponentOptionsBase<Readonly<import("vue-element-plus-x/./types/Thinking").ThinkingProps> & Readonly<{
81
- onChange?: ((value: {
82
- value: boolean;
83
- status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
84
- }) => any) | undefined;
85
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
86
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
87
- change: (value: {
88
- value: boolean;
89
- status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
90
- }) => any;
91
- "update:modelValue": (value: boolean) => any;
92
- }, string, {
93
- maxWidth: string;
94
- status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
95
- color: string;
96
- content: string;
97
- disabled: boolean;
98
- duration: string;
99
- backgroundColor: string;
100
- modelValue: boolean;
101
- autoCollapse: boolean;
102
- buttonWidth: string;
103
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
104
- $slots: {
105
- 'status-icon'?(_: {
106
- status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
107
- }): any;
108
- label?(_: {
109
- status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
110
- }): any;
111
- arrow?(_: {}): any;
112
- content?(_: {
113
- content: string;
114
- }): any;
115
- error?(_: {
116
- errorContent: string;
117
- }): any;
118
- };
119
- });
120
- readonly Typewriter: import("vue").DefineComponent<import("vue-element-plus-x/./types/Typewriter").TypewriterProps, {
121
- interrupt: () => void;
122
- continue: () => void;
123
- restart: () => void;
124
- destroy: () => void;
125
- renderedContent: import("vue").ComputedRef<string>;
126
- isTyping: Ref<boolean>;
127
- progress: import("vue").ComputedRef<number>;
128
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
129
- start: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
130
- finish: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
131
- writing: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
132
- }, string, import("vue").PublicProps, Readonly<import("vue-element-plus-x/./types/Typewriter").TypewriterProps> & Readonly<{
133
- onStart?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
134
- onFinish?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
135
- onWriting?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
136
- }>, {
137
- content: string;
138
- isMarkdown: boolean;
139
- typing: boolean | import("vue-element-plus-x/./types/Typewriter").TypingConfig;
140
- isFog: boolean | import("vue-element-plus-x/./types/Typewriter").TypingFogfig;
141
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
142
- typeWriterRef: HTMLDivElement;
143
- markdownContentRef: HTMLDivElement;
144
- }, HTMLDivElement>;
145
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
146
- modules: {
147
- type: PropType<__VkAgentChatProvider.BubbleItemModule[]>;
148
- default: () => string[];
149
- };
150
- }>> & Readonly<{}>, {
151
- modules: "Thinking"[];
152
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
153
- export default _default;
@@ -1,45 +0,0 @@
1
- import type { __VkRenderer } from '@vunk/core/components/renderer';
2
- import type { AnyFunc } from '@vunk/shared';
3
- import type MarkdownIt from 'markdown-it';
4
- export interface MarkdownProps {
5
- containers: string[];
6
- fences: string[];
7
- tags: string[];
8
- markdownItOptions: MarkdownIt.Options;
9
- markdownItSetup: AnyFunc;
10
- dev: boolean;
11
- }
12
- export interface TypewriterSource extends __VkRenderer.SourceItem {
13
- templateType: 'VkMarkdown';
14
- content?: string;
15
- }
16
- export type RenderItem = TypewriterSource;
17
- export type RenderData = Record<string, RenderDataRecord>;
18
- export interface RenderDataRecord {
19
- /**
20
- * @description 渲染的组件
21
- */
22
- templateType?: RenderItem['templateType'];
23
- /**
24
- * @description 组件暴露的元数据
25
- */
26
- meta?: any;
27
- /**
28
- * @description 已经完成的
29
- */
30
- completed?: boolean;
31
- /**
32
- * @description 发生错误的
33
- */
34
- error?: boolean;
35
- /**
36
- * @description 组件实例
37
- */
38
- elRef?: any;
39
- }
40
- export interface Interruptable {
41
- /**
42
- * @description 中断
43
- */
44
- interrupt?: () => void;
45
- }
@@ -1,4 +0,0 @@
1
- import VkChatIndependent from './src/index.vue';
2
- export * as __VkChatIndependent from './src/types';
3
- export { VkChatIndependent, };
4
- export default VkChatIndependent;
@@ -1,13 +0,0 @@
1
- /**
2
- * 输入的两种方式 语音和文本
3
- */
4
- export declare enum InputType {
5
- /**
6
- * 语音
7
- */
8
- Voice = "voice",
9
- /**
10
- * 文本
11
- */
12
- Text = "text"
13
- }
@@ -1,21 +0,0 @@
1
- import type { __VkBubbleList } from '@vunk/plus/components/bubble-list';
2
- import type { SetDataEvent } from '@vunk/core';
3
- import type { PropType } from 'vue';
4
- import type { SpeechToText, TextToSpeech } from './types';
5
- export declare const props: {
6
- /**
7
- * @description BubbleList渲染时数据, 受控于setData
8
- */
9
- data: {
10
- type: PropType<__VkBubbleList.RenderData>;
11
- };
12
- speechToText: {
13
- type: PropType<SpeechToText>;
14
- };
15
- textToSpeech: {
16
- type: PropType<TextToSpeech>;
17
- };
18
- };
19
- export declare const emits: {
20
- setData: (e: SetDataEvent) => SetDataEvent;
21
- };