@vunk/plus 1.2.2 → 1.3.1

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 (119) hide show
  1. package/components/SendOutlined.mjs +2 -2
  2. package/components/agent-chat-provider/index.d.ts +7 -0
  3. package/components/agent-chat-provider/index.mjs +789 -0
  4. package/components/agent-chat-provider/src/api.d.ts +3 -0
  5. package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
  6. package/components/agent-chat-provider/src/const.d.ts +1 -0
  7. package/components/agent-chat-provider/src/index.vue.d.ts +47 -0
  8. package/components/agent-chat-provider/src/types.d.ts +37 -0
  9. package/components/agent-chat-provider/src/use.d.ts +29 -0
  10. package/components/avatar/index.mjs +2 -2
  11. package/components/avatar/src/ctx.d.ts +4 -4
  12. package/components/avatar/src/index.vue.d.ts +66 -125
  13. package/components/broadcasting-markdown/index.css +3 -0
  14. package/components/broadcasting-markdown/index.d.ts +5 -0
  15. package/components/broadcasting-markdown/index.mjs +637 -0
  16. package/components/broadcasting-markdown/src/const.d.ts +18 -0
  17. package/components/broadcasting-markdown/src/ctx.d.ts +93 -0
  18. package/components/broadcasting-markdown/src/custom-speech.vue.d.ts +109 -0
  19. package/components/broadcasting-markdown/src/index.vue.d.ts +477 -0
  20. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +78 -0
  21. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +60 -0
  22. package/components/broadcasting-markdown/src/types.d.ts +17 -0
  23. package/components/broadcasting-markdown/src/use.d.ts +3 -0
  24. package/components/broadcasting-markdown/src/web-speech.vue.d.ts +102 -0
  25. package/components/bubble-list/index.css +18 -0
  26. package/components/bubble-list/index.d.ts +5 -0
  27. package/components/bubble-list/index.mjs +386 -0
  28. package/components/bubble-list/src/ctx.d.ts +30 -0
  29. package/components/bubble-list/src/index.vue.d.ts +927 -0
  30. package/components/bubble-list/src/types.d.ts +4 -0
  31. package/components/bubble-templates/index.css +18 -0
  32. package/components/bubble-templates/index.d.ts +4 -0
  33. package/components/bubble-templates/index.mjs +258 -0
  34. package/components/bubble-templates/src/index.vue.d.ts +631 -0
  35. package/components/bubble-templates/src/types.d.ts +30 -0
  36. package/components/chat-independent/index.css +47 -0
  37. package/components/chat-independent/index.d.ts +4 -0
  38. package/components/chat-independent/index.mjs +184 -0
  39. package/components/chat-independent/src/const.d.ts +13 -0
  40. package/components/chat-independent/src/ctx.d.ts +20 -0
  41. package/components/chat-independent/src/index.vue.d.ts +2388 -0
  42. package/components/chat-independent/src/types.d.ts +13 -0
  43. package/components/index.d.ts +0 -0
  44. package/components/index.mjs +1 -0
  45. package/components/index2.mjs +35980 -0
  46. package/components/lottie-animation/index.mjs +2 -2
  47. package/components/lottie-animation/src/index.vue.d.ts +1 -1
  48. package/components/monaco-editor/index.mjs +2 -2
  49. package/components/monaco-editor/src/ctx.d.ts +3 -3
  50. package/components/monaco-editor/src/index.vue.d.ts +3 -3
  51. package/components/monaco-environment/index.mjs +1 -1
  52. package/components/recorder-button/index.css +7 -10
  53. package/components/recorder-button/index.mjs +115 -83
  54. package/components/recorder-button/src/ctx.d.ts +27 -6
  55. package/components/recorder-button/src/index.vue.d.ts +196 -202
  56. package/components/recorder-button/src/types.d.ts +1 -0
  57. package/components/routes-menu-content/index.mjs +5 -5
  58. package/components/routes-menu-content/src/ctx.d.ts +1 -1
  59. package/components/routes-menu-content/src/index.vue.d.ts +223 -101
  60. package/components/routes-menu-content/src/item/core/ctx.d.ts +1 -1
  61. package/components/routes-menu-content/src/item/core/index.vue.d.ts +175 -53
  62. package/components/routes-menu-content/src/item/index.vue.d.ts +221 -99
  63. package/components/sender/index.css +2 -5
  64. package/components/sender/index.mjs +32 -13
  65. package/components/sender/src/SenderHeader.vue.d.ts +31 -45
  66. package/components/sender/src/ctx.d.ts +23 -3
  67. package/components/sender/src/index.vue.d.ts +170 -124
  68. package/components/sender/src/types.d.ts +1 -1
  69. package/components/speech-button/index.mjs +7 -14
  70. package/components/speech-button/src/ctx.d.ts +1 -1
  71. package/components/speech-button/src/index.vue.d.ts +3 -3
  72. package/components/table-columns/index.d.ts +1 -1
  73. package/components/table-columns/index.mjs +3 -6
  74. package/components/table-columns/src/ctx.d.ts +8 -8
  75. package/components/table-columns/src/el-ctx.d.ts +7 -7
  76. package/components/table-columns/src/index.vue.d.ts +38 -36
  77. package/components/tables-v1/index.mjs +3 -3
  78. package/components/tables-v1/src/ctx.d.ts +66 -68
  79. package/components/tables-v1/src/el-ctx.d.ts +48 -51
  80. package/components/tables-v1/src/index.vue.d.ts +1950 -1933
  81. package/components/tables-v1-checkbox/index.mjs +269 -33
  82. package/components/tables-v1-checkbox/src/ctx.d.ts +65 -67
  83. package/components/tables-v1-checkbox/src/index.vue.d.ts +2167 -2159
  84. package/components/typing-markdown/index.mjs +128 -33
  85. package/components/typing-markdown/src/core.d.ts +2 -3
  86. package/components/typing-markdown/src/ctx.d.ts +5 -5
  87. package/components/typing-markdown/src/index.vue.d.ts +9 -9
  88. package/components/vditor/index.mjs +5 -9
  89. package/components/vditor/src/ctx.d.ts +2 -2
  90. package/components/vditor/src/handle-fullscreen.vue.d.ts +3 -3
  91. package/components/vditor/src/handle-value.vue.d.ts +3 -3
  92. package/components/vditor/src/index.vue.d.ts +11 -11
  93. package/composables/el-breakpoints/index.d.ts +1 -1
  94. package/composables/recorder/index.mjs +751 -182
  95. package/icons/_plugin-vue_export-helper.mjs +9 -0
  96. package/icons/end/index.d.ts +4 -0
  97. package/icons/end/index.mjs +36 -0
  98. package/icons/end/src/avatar.d.ts +12 -0
  99. package/icons/end/src/icon.d.ts +57 -0
  100. package/icons/keyboard/index.d.ts +4 -0
  101. package/icons/keyboard/index.mjs +36 -0
  102. package/icons/keyboard/src/avatar.d.ts +12 -0
  103. package/icons/keyboard/src/icon.d.ts +57 -0
  104. package/icons/start/index.d.ts +4 -0
  105. package/icons/start/index.mjs +36 -0
  106. package/icons/start/src/avatar.d.ts +12 -0
  107. package/icons/start/src/icon.d.ts +57 -0
  108. package/icons/voice/index.d.ts +4 -0
  109. package/icons/voice/index.mjs +51 -0
  110. package/icons/voice/src/avatar.d.ts +12 -0
  111. package/icons/voice/src/icon.d.ts +57 -0
  112. package/icons/voice/src/index.vue.d.ts +4 -0
  113. package/index.css +99 -15
  114. package/package.json +51 -7
  115. package/fetch/PlusFetch/index.d.ts +0 -14
  116. package/fetch/PlusFetch/index.mjs +0 -638
  117. package/fetch/PlusFetch/types.d.ts +0 -54
  118. package/fetch/index.d.ts +0 -1
  119. package/fetch/index.mjs +0 -5
@@ -0,0 +1,93 @@
1
+ import type { SetDataEvent } from '@vunk/core';
2
+ import type { PropType } from 'vue';
3
+ import type { Paragraph, TextToSpeech } from './types';
4
+ export declare const props: {
5
+ /**
6
+ * @description 段落详情
7
+ */
8
+ data: {
9
+ type: {
10
+ (arrayLength: number): Paragraph[];
11
+ (...items: Paragraph[]): Paragraph[];
12
+ new (arrayLength: number): Paragraph[];
13
+ new (...items: Paragraph[]): Paragraph[];
14
+ isArray(arg: any): arg is any[];
15
+ readonly prototype: any[];
16
+ from<T>(arrayLike: ArrayLike<T>): T[];
17
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
18
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
19
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
20
+ of<T_4>(...items: T_4[]): T_4[];
21
+ readonly [Symbol.species]: ArrayConstructor;
22
+ };
23
+ default: undefined;
24
+ };
25
+ /**
26
+ * @description md 文本
27
+ */
28
+ source: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ /**
33
+ * @description 游标阅读延迟
34
+ */
35
+ delay: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
39
+ /**
40
+ * @description 段落切割符号
41
+ */
42
+ separators: {
43
+ type: {
44
+ (arrayLength: number): string[];
45
+ (...items: string[]): string[];
46
+ new (arrayLength: number): string[];
47
+ new (...items: string[]): string[];
48
+ isArray(arg: any): arg is any[];
49
+ readonly prototype: any[];
50
+ from<T>(arrayLike: ArrayLike<T>): T[];
51
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
52
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
53
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
54
+ of<T_4>(...items: T_4[]): T_4[];
55
+ readonly [Symbol.species]: ArrayConstructor;
56
+ };
57
+ default: () => string[];
58
+ };
59
+ /**
60
+ * @description 暂停的
61
+ */
62
+ pause: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ /**
67
+ * @description 组件内会根据当前游标是否和 source 长度一致来判断,是否持续阅读, 当一致时,会关闭阅读状态。但若设置为 true,则会持续阅读, 这在动态接收数据时会有用
68
+ */
69
+ keepRead: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ /**
74
+ * @description 是否使用 web speech api
75
+ */
76
+ webSpeech: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ /**
81
+ * @description 是否使用自定义语音合成
82
+ */
83
+ textToSpeech: {
84
+ type: PropType<TextToSpeech>;
85
+ default: undefined;
86
+ };
87
+ };
88
+ export declare const emits: {
89
+ setData: (e: SetDataEvent) => SetDataEvent;
90
+ 'update:broadcasting': (_: boolean) => boolean;
91
+ 'update:completed': (_: boolean) => boolean;
92
+ 'update:error': (_: boolean) => boolean;
93
+ };
@@ -0,0 +1,109 @@
1
+ import type { PropType } from 'vue';
2
+ import type { Paragraph } from './types';
3
+ import { type Deferred } from '@vunk/shared/promise';
4
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ data: {
6
+ type: PropType<Paragraph>;
7
+ default: () => {};
8
+ };
9
+ deferred: {
10
+ type: PropType<Deferred<any>>;
11
+ required: true;
12
+ };
13
+ pause: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ /**
18
+ * @description 语音资源路径
19
+ */
20
+ url: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ }>, (() => null) | (() => JSX.Element), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
+ data: {
26
+ type: PropType<Paragraph>;
27
+ default: () => {};
28
+ };
29
+ deferred: {
30
+ type: PropType<Deferred<any>>;
31
+ required: true;
32
+ };
33
+ pause: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ /**
38
+ * @description 语音资源路径
39
+ */
40
+ url: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ }>> & Readonly<{}>, {
45
+ pause: boolean;
46
+ data: Paragraph;
47
+ url: string;
48
+ }, {}, {
49
+ SpeechError: import("vue").DefineComponent<{}, {
50
+ 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>;
51
+ readonly ElIcon: import("element-plus/es/utils").SFCWithInstall<{
52
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
53
+ readonly size: {
54
+ readonly type: PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
55
+ readonly required: false;
56
+ readonly validator: ((val: unknown) => boolean) | undefined;
57
+ __epPropKey: true;
58
+ };
59
+ readonly color: {
60
+ readonly type: PropType<string>;
61
+ readonly required: false;
62
+ readonly validator: ((val: unknown) => boolean) | undefined;
63
+ __epPropKey: true;
64
+ };
65
+ }>>, {}, 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, {
66
+ P: {};
67
+ B: {};
68
+ D: {};
69
+ C: {};
70
+ M: {};
71
+ Defaults: {};
72
+ }, Readonly<import("vue").ExtractPropTypes<{
73
+ readonly size: {
74
+ readonly type: PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
75
+ readonly required: false;
76
+ readonly validator: ((val: unknown) => boolean) | undefined;
77
+ __epPropKey: true;
78
+ };
79
+ readonly color: {
80
+ readonly type: PropType<string>;
81
+ readonly required: false;
82
+ readonly validator: ((val: unknown) => boolean) | undefined;
83
+ __epPropKey: true;
84
+ };
85
+ }>>, {}, {}, {}, {}, {}>;
86
+ __isFragment?: undefined;
87
+ __isTeleport?: undefined;
88
+ __isSuspense?: undefined;
89
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
90
+ readonly size: {
91
+ readonly type: PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
92
+ readonly required: false;
93
+ readonly validator: ((val: unknown) => boolean) | undefined;
94
+ __epPropKey: true;
95
+ };
96
+ readonly color: {
97
+ readonly type: PropType<string>;
98
+ readonly required: false;
99
+ readonly validator: ((val: unknown) => boolean) | undefined;
100
+ __epPropKey: true;
101
+ };
102
+ }>>, {}, 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 () => {
103
+ $slots: {
104
+ default?(_: {}): any;
105
+ };
106
+ })>;
107
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
108
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
109
+ export default _default;
@@ -0,0 +1,477 @@
1
+ import type { SetDataEvent } from '@vunk/core';
2
+ import type { Ref } from 'vue';
3
+ import type { Paragraph } from './types';
4
+ import { ParagraphStatus } from './const';
5
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ data: {
7
+ type: {
8
+ (arrayLength: number): Paragraph[];
9
+ (...items: Paragraph[]): Paragraph[];
10
+ new (arrayLength: number): Paragraph[];
11
+ new (...items: Paragraph[]): Paragraph[];
12
+ isArray(arg: any): arg is any[];
13
+ readonly prototype: any[];
14
+ from<T>(arrayLike: ArrayLike<T>): T[];
15
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
16
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
17
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
18
+ of<T_4>(...items: T_4[]): T_4[];
19
+ readonly [Symbol.species]: ArrayConstructor;
20
+ };
21
+ default: undefined;
22
+ };
23
+ source: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ delay: {
28
+ type: NumberConstructor;
29
+ default: number;
30
+ };
31
+ separators: {
32
+ type: {
33
+ (arrayLength: number): string[];
34
+ (...items: string[]): string[];
35
+ new (arrayLength: number): string[];
36
+ new (...items: string[]): string[];
37
+ isArray(arg: any): arg is any[];
38
+ readonly prototype: any[];
39
+ from<T>(arrayLike: ArrayLike<T>): T[];
40
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
41
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
42
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
43
+ of<T_4>(...items: T_4[]): T_4[];
44
+ readonly [Symbol.species]: ArrayConstructor;
45
+ };
46
+ default: () => string[];
47
+ };
48
+ pause: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ keepRead: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ webSpeech: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ textToSpeech: {
61
+ type: import("vue").PropType<import("./types").TextToSpeech>;
62
+ default: undefined;
63
+ };
64
+ }>, {
65
+ theData: import("vue").ComputedRef<Paragraph[]>;
66
+ ParagraphStatus: typeof ParagraphStatus;
67
+ fulfilledTextValue: import("vue").ComputedRef<string>;
68
+ isPrevParagraphFulfilled: (currentIndex: number) => boolean;
69
+ isParagraphEnabled: (currentIndex: number) => boolean;
70
+ processingParagraph: (paragraph: Paragraph) => Promise<void> | undefined;
71
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
72
+ setData: (e: SetDataEvent) => SetDataEvent;
73
+ 'update:broadcasting': (_: boolean) => boolean;
74
+ 'update:completed': (_: boolean) => boolean;
75
+ 'update:error': (_: boolean) => boolean;
76
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
77
+ data: {
78
+ type: {
79
+ (arrayLength: number): Paragraph[];
80
+ (...items: Paragraph[]): Paragraph[];
81
+ new (arrayLength: number): Paragraph[];
82
+ new (...items: Paragraph[]): Paragraph[];
83
+ isArray(arg: any): arg is any[];
84
+ readonly prototype: any[];
85
+ from<T>(arrayLike: ArrayLike<T>): T[];
86
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
87
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
88
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
89
+ of<T_4>(...items: T_4[]): T_4[];
90
+ readonly [Symbol.species]: ArrayConstructor;
91
+ };
92
+ default: undefined;
93
+ };
94
+ source: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ delay: {
99
+ type: NumberConstructor;
100
+ default: number;
101
+ };
102
+ separators: {
103
+ type: {
104
+ (arrayLength: number): string[];
105
+ (...items: string[]): string[];
106
+ new (arrayLength: number): string[];
107
+ new (...items: string[]): string[];
108
+ isArray(arg: any): arg is any[];
109
+ readonly prototype: any[];
110
+ from<T>(arrayLike: ArrayLike<T>): T[];
111
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
112
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
113
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
114
+ of<T_4>(...items: T_4[]): T_4[];
115
+ readonly [Symbol.species]: ArrayConstructor;
116
+ };
117
+ default: () => string[];
118
+ };
119
+ pause: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ keepRead: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ webSpeech: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ textToSpeech: {
132
+ type: import("vue").PropType<import("./types").TextToSpeech>;
133
+ default: undefined;
134
+ };
135
+ }>> & Readonly<{
136
+ onSetData?: ((e: SetDataEvent) => any) | undefined;
137
+ "onUpdate:broadcasting"?: ((_: boolean) => any) | undefined;
138
+ "onUpdate:completed"?: ((_: boolean) => any) | undefined;
139
+ "onUpdate:error"?: ((_: boolean) => any) | undefined;
140
+ }>, {
141
+ source: string;
142
+ delay: number;
143
+ pause: boolean;
144
+ data: Paragraph[];
145
+ separators: string[];
146
+ keepRead: boolean;
147
+ webSpeech: boolean;
148
+ textToSpeech: import("./types").TextToSpeech;
149
+ }, {}, {
150
+ ParagraphView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
151
+ enable: {
152
+ type: BooleanConstructor;
153
+ default: boolean;
154
+ };
155
+ status: {
156
+ type: import("vue").PropType<ParagraphStatus>;
157
+ default: ParagraphStatus;
158
+ };
159
+ pause: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
163
+ processing: {
164
+ type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
165
+ default: import("@vunk/shared").AnyFunc;
166
+ };
167
+ }>, {
168
+ props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
169
+ enable: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ };
173
+ status: {
174
+ type: import("vue").PropType<ParagraphStatus>;
175
+ default: ParagraphStatus;
176
+ };
177
+ pause: {
178
+ type: BooleanConstructor;
179
+ default: boolean;
180
+ };
181
+ processing: {
182
+ type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
183
+ default: import("@vunk/shared").AnyFunc;
184
+ };
185
+ }>> & Readonly<{
186
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
187
+ }> & {}>;
188
+ emit: (event: "update:status", ...args: any[]) => void;
189
+ theDef: import("vue").ShallowRef<import("@vunk/shared/promise").Deferred<any> | undefined, import("@vunk/shared/promise").Deferred<any> | undefined>;
190
+ processingDef: {
191
+ _ref: import("vue").ShallowRef<unknown, unknown>;
192
+ readonly value: unknown;
193
+ promise: Promise<unknown>;
194
+ resolve: import("@vunk/core").AnyFunc;
195
+ reject: (reason?: any) => void;
196
+ };
197
+ init: () => Promise<void>;
198
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:status"[], "update:status", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
199
+ enable: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ status: {
204
+ type: import("vue").PropType<ParagraphStatus>;
205
+ default: ParagraphStatus;
206
+ };
207
+ pause: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ processing: {
212
+ type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
213
+ default: import("@vunk/shared").AnyFunc;
214
+ };
215
+ }>> & Readonly<{
216
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
217
+ }>, {
218
+ processing: import("@vunk/shared").AnyFunc;
219
+ pause: boolean;
220
+ enable: boolean;
221
+ status: ParagraphStatus;
222
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
223
+ VkTypingMarkdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
224
+ source: {
225
+ type: StringConstructor;
226
+ default: string;
227
+ };
228
+ delay: {
229
+ type: NumberConstructor;
230
+ default: number;
231
+ };
232
+ pause: {
233
+ type: BooleanConstructor;
234
+ default: boolean;
235
+ };
236
+ disabled: {
237
+ type: BooleanConstructor;
238
+ default: boolean;
239
+ };
240
+ markdownItSetup: {
241
+ type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
242
+ default: null;
243
+ };
244
+ }>, {
245
+ htmlText: Ref<string, string>;
246
+ isDebouncedTyping: Readonly<Ref<boolean, boolean>>;
247
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
248
+ typing: null;
249
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
250
+ source: {
251
+ type: StringConstructor;
252
+ default: string;
253
+ };
254
+ delay: {
255
+ type: NumberConstructor;
256
+ default: number;
257
+ };
258
+ pause: {
259
+ type: BooleanConstructor;
260
+ default: boolean;
261
+ };
262
+ disabled: {
263
+ type: BooleanConstructor;
264
+ default: boolean;
265
+ };
266
+ markdownItSetup: {
267
+ type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
268
+ default: null;
269
+ };
270
+ }>> & Readonly<{
271
+ onTyping?: ((...args: any[]) => any) | undefined;
272
+ }>, {
273
+ source: string;
274
+ delay: number;
275
+ pause: boolean;
276
+ disabled: boolean;
277
+ markdownItSetup: (md: import("markdown-it-async").MarkdownItAsync) => void;
278
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
279
+ WebSpeechView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
280
+ voice: {
281
+ type: import("vue").PropType<SpeechSynthesisVoice>;
282
+ required: false;
283
+ };
284
+ data: {
285
+ type: import("vue").PropType<Paragraph>;
286
+ default: () => {};
287
+ };
288
+ deferred: {
289
+ type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
290
+ required: true;
291
+ };
292
+ pause: {
293
+ type: BooleanConstructor;
294
+ default: boolean;
295
+ };
296
+ }>, (() => null) | (() => false | JSX.Element), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
297
+ voice: {
298
+ type: import("vue").PropType<SpeechSynthesisVoice>;
299
+ required: false;
300
+ };
301
+ data: {
302
+ type: import("vue").PropType<Paragraph>;
303
+ default: () => {};
304
+ };
305
+ deferred: {
306
+ type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
307
+ required: true;
308
+ };
309
+ pause: {
310
+ type: BooleanConstructor;
311
+ default: boolean;
312
+ };
313
+ }>> & Readonly<{}>, {
314
+ pause: boolean;
315
+ data: Paragraph;
316
+ }, {}, {
317
+ SpeechError: import("vue").DefineComponent<{}, {
318
+ 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>;
319
+ readonly ElIcon: import("element-plus/es/utils").SFCWithInstall<{
320
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
321
+ readonly size: {
322
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
323
+ readonly required: false;
324
+ readonly validator: ((val: unknown) => boolean) | undefined;
325
+ __epPropKey: true;
326
+ };
327
+ readonly color: {
328
+ readonly type: import("vue").PropType<string>;
329
+ readonly required: false;
330
+ readonly validator: ((val: unknown) => boolean) | undefined;
331
+ __epPropKey: true;
332
+ };
333
+ }>>, {}, 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, {
334
+ P: {};
335
+ B: {};
336
+ D: {};
337
+ C: {};
338
+ M: {};
339
+ Defaults: {};
340
+ }, Readonly<import("vue").ExtractPropTypes<{
341
+ readonly size: {
342
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
343
+ readonly required: false;
344
+ readonly validator: ((val: unknown) => boolean) | undefined;
345
+ __epPropKey: true;
346
+ };
347
+ readonly color: {
348
+ readonly type: import("vue").PropType<string>;
349
+ readonly required: false;
350
+ readonly validator: ((val: unknown) => boolean) | undefined;
351
+ __epPropKey: true;
352
+ };
353
+ }>>, {}, {}, {}, {}, {}>;
354
+ __isFragment?: undefined;
355
+ __isTeleport?: undefined;
356
+ __isSuspense?: undefined;
357
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
358
+ readonly size: {
359
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
360
+ readonly required: false;
361
+ readonly validator: ((val: unknown) => boolean) | undefined;
362
+ __epPropKey: true;
363
+ };
364
+ readonly color: {
365
+ readonly type: import("vue").PropType<string>;
366
+ readonly required: false;
367
+ readonly validator: ((val: unknown) => boolean) | undefined;
368
+ __epPropKey: true;
369
+ };
370
+ }>>, {}, 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 () => {
371
+ $slots: {
372
+ default?(_: {}): any;
373
+ };
374
+ })>;
375
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
376
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
377
+ CustomSpeechView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
378
+ data: {
379
+ type: import("vue").PropType<Paragraph>;
380
+ default: () => {};
381
+ };
382
+ deferred: {
383
+ type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
384
+ required: true;
385
+ };
386
+ pause: {
387
+ type: BooleanConstructor;
388
+ default: boolean;
389
+ };
390
+ url: {
391
+ type: StringConstructor;
392
+ default: string;
393
+ };
394
+ }>, (() => null) | (() => JSX.Element), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
395
+ data: {
396
+ type: import("vue").PropType<Paragraph>;
397
+ default: () => {};
398
+ };
399
+ deferred: {
400
+ type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
401
+ required: true;
402
+ };
403
+ pause: {
404
+ type: BooleanConstructor;
405
+ default: boolean;
406
+ };
407
+ url: {
408
+ type: StringConstructor;
409
+ default: string;
410
+ };
411
+ }>> & Readonly<{}>, {
412
+ pause: boolean;
413
+ data: Paragraph;
414
+ url: string;
415
+ }, {}, {
416
+ SpeechError: import("vue").DefineComponent<{}, {
417
+ 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>;
418
+ readonly ElIcon: import("element-plus/es/utils").SFCWithInstall<{
419
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
420
+ readonly size: {
421
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
422
+ readonly required: false;
423
+ readonly validator: ((val: unknown) => boolean) | undefined;
424
+ __epPropKey: true;
425
+ };
426
+ readonly color: {
427
+ readonly type: import("vue").PropType<string>;
428
+ readonly required: false;
429
+ readonly validator: ((val: unknown) => boolean) | undefined;
430
+ __epPropKey: true;
431
+ };
432
+ }>>, {}, 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, {
433
+ P: {};
434
+ B: {};
435
+ D: {};
436
+ C: {};
437
+ M: {};
438
+ Defaults: {};
439
+ }, Readonly<import("vue").ExtractPropTypes<{
440
+ readonly size: {
441
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
442
+ readonly required: false;
443
+ readonly validator: ((val: unknown) => boolean) | undefined;
444
+ __epPropKey: true;
445
+ };
446
+ readonly color: {
447
+ readonly type: import("vue").PropType<string>;
448
+ readonly required: false;
449
+ readonly validator: ((val: unknown) => boolean) | undefined;
450
+ __epPropKey: true;
451
+ };
452
+ }>>, {}, {}, {}, {}, {}>;
453
+ __isFragment?: undefined;
454
+ __isTeleport?: undefined;
455
+ __isSuspense?: undefined;
456
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
457
+ readonly size: {
458
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
459
+ readonly required: false;
460
+ readonly validator: ((val: unknown) => boolean) | undefined;
461
+ __epPropKey: true;
462
+ };
463
+ readonly color: {
464
+ readonly type: import("vue").PropType<string>;
465
+ readonly required: false;
466
+ readonly validator: ((val: unknown) => boolean) | undefined;
467
+ __epPropKey: true;
468
+ };
469
+ }>>, {}, 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 () => {
470
+ $slots: {
471
+ default?(_: {}): any;
472
+ };
473
+ })>;
474
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
475
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
476
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
477
+ export default _default;