@vunk/plus 1.3.0 → 1.3.2

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 (109) hide show
  1. package/components/SendOutlined.mjs +1 -1
  2. package/components/agent-chat-provider/index.d.ts +7 -0
  3. package/components/agent-chat-provider/src/api.d.ts +3 -0
  4. package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
  5. package/components/agent-chat-provider/src/const.d.ts +1 -0
  6. package/components/agent-chat-provider/src/index.vue.d.ts +47 -0
  7. package/components/agent-chat-provider/src/types.d.ts +37 -0
  8. package/components/agent-chat-provider/src/use.d.ts +29 -0
  9. package/components/avatar/index.d.ts +4 -0
  10. package/components/avatar/src/ctx.d.ts +18 -0
  11. package/components/avatar/src/index.vue.d.ts +121 -0
  12. package/components/avatar/src/types.d.ts +1 -0
  13. package/components/broadcasting-markdown/index.d.ts +5 -0
  14. package/components/broadcasting-markdown/index.mjs +32 -16
  15. package/components/broadcasting-markdown/src/const.d.ts +18 -0
  16. package/components/broadcasting-markdown/src/ctx.d.ts +101 -0
  17. package/components/broadcasting-markdown/src/custom-speech.vue.d.ts +117 -0
  18. package/components/broadcasting-markdown/src/index.vue.d.ts +502 -0
  19. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +78 -0
  20. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +60 -0
  21. package/components/broadcasting-markdown/src/types.d.ts +17 -0
  22. package/components/broadcasting-markdown/src/use.d.ts +3 -0
  23. package/components/broadcasting-markdown/src/web-speech.vue.d.ts +110 -0
  24. package/components/bubble-list/index.d.ts +5 -0
  25. package/components/bubble-list/index.mjs +2 -316
  26. package/components/bubble-list/src/ctx.d.ts +30 -0
  27. package/components/bubble-list/src/index.vue.d.ts +952 -0
  28. package/components/bubble-list/src/types.d.ts +4 -0
  29. package/components/bubble-templates/index.d.ts +4 -0
  30. package/components/bubble-templates/index.mjs +2 -161
  31. package/components/bubble-templates/src/index.vue.d.ts +656 -0
  32. package/components/bubble-templates/src/types.d.ts +30 -0
  33. package/components/chat-independent/index.d.ts +4 -0
  34. package/components/chat-independent/index.mjs +42 -34
  35. package/components/chat-independent/src/const.d.ts +13 -0
  36. package/components/chat-independent/src/ctx.d.ts +20 -0
  37. package/components/chat-independent/src/index.vue.d.ts +2413 -0
  38. package/components/chat-independent/src/types.d.ts +13 -0
  39. package/components/index.d.ts +0 -0
  40. package/components/index.mjs +0 -35979
  41. package/components/lottie-animation/index.d.ts +4 -0
  42. package/components/lottie-animation/src/ctx.d.ts +10 -0
  43. package/components/lottie-animation/src/index.vue.d.ts +21 -0
  44. package/components/lottie-animation/src/types.d.ts +4 -0
  45. package/components/monaco-editor/index.d.ts +5 -0
  46. package/components/monaco-editor/src/ctx.d.ts +23 -0
  47. package/components/monaco-editor/src/index.vue.d.ts +40 -0
  48. package/components/monaco-editor/src/types.d.ts +1 -0
  49. package/components/monaco-environment/index.d.ts +4 -0
  50. package/components/monaco-environment/src/ctx.d.ts +8 -0
  51. package/components/monaco-environment/src/index.vue.d.ts +2 -0
  52. package/components/monaco-environment/src/types.d.ts +1 -0
  53. package/components/recorder-button/index.d.ts +4 -0
  54. package/components/recorder-button/src/ctx.d.ts +40 -0
  55. package/components/recorder-button/src/index.vue.d.ts +303 -0
  56. package/components/recorder-button/src/speech-to-text.d.ts +1 -0
  57. package/components/recorder-button/src/types.d.ts +7 -0
  58. package/components/routes-menu-content/index.d.ts +4 -0
  59. package/components/routes-menu-content/src/ctx.d.ts +17 -0
  60. package/components/routes-menu-content/src/index.vue.d.ts +472 -0
  61. package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
  62. package/components/routes-menu-content/src/item/core/index.vue.d.ts +307 -0
  63. package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
  64. package/components/routes-menu-content/src/item/index.vue.d.ts +438 -0
  65. package/components/routes-menu-content/src/types.d.ts +1 -0
  66. package/components/sender/index.d.ts +4 -0
  67. package/components/sender/index.mjs +1 -1
  68. package/components/sender/src/SenderHeader.vue.d.ts +256 -0
  69. package/components/sender/src/ctx.d.ts +58 -0
  70. package/components/sender/src/index.vue.d.ts +778 -0
  71. package/components/sender/src/types.d.ts +1 -0
  72. package/components/speech-button/index.d.ts +4 -0
  73. package/components/speech-button/index.mjs +1 -1
  74. package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
  75. package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
  76. package/components/speech-button/src/ctx.d.ts +10 -0
  77. package/components/speech-button/src/index.vue.d.ts +22 -0
  78. package/components/speech-button/src/types.d.ts +1 -0
  79. package/components/table-columns/index.d.ts +5 -0
  80. package/components/table-columns/src/ctx.d.ts +66 -0
  81. package/components/table-columns/src/el-ctx.d.ts +63 -0
  82. package/components/table-columns/src/index.vue.d.ts +282 -0
  83. package/components/table-columns/src/types.d.ts +21 -0
  84. package/components/tables-v1/index.d.ts +5 -0
  85. package/components/tables-v1/src/ctx.d.ts +281 -0
  86. package/components/tables-v1/src/el-ctx.d.ts +269 -0
  87. package/components/tables-v1/src/index.vue.d.ts +3014 -0
  88. package/components/tables-v1/src/types.d.ts +4 -0
  89. package/components/tables-v1-checkbox/index.d.ts +5 -0
  90. package/components/tables-v1-checkbox/src/ctx.d.ts +321 -0
  91. package/components/tables-v1-checkbox/src/index.vue.d.ts +3796 -0
  92. package/components/tables-v1-checkbox/src/types.d.ts +1 -0
  93. package/components/typing-markdown/index.d.ts +4 -0
  94. package/components/typing-markdown/index.mjs +2 -2
  95. package/components/typing-markdown/src/core.d.ts +2 -0
  96. package/components/typing-markdown/src/ctx.d.ts +33 -0
  97. package/components/typing-markdown/src/index.vue.d.ts +57 -0
  98. package/components/typing-markdown/src/types.d.ts +1 -0
  99. package/components/vditor/index.d.ts +5 -0
  100. package/components/vditor/src/ctx.d.ts +37 -0
  101. package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
  102. package/components/vditor/src/handle-value.vue.d.ts +18 -0
  103. package/components/vditor/src/index.vue.d.ts +144 -0
  104. package/components/vditor/src/types.d.ts +9 -0
  105. package/components/vditor/src/use.d.ts +4 -0
  106. package/index.css +0 -38
  107. package/package.json +1 -7
  108. package/components/bubble-list/index.css +0 -18
  109. package/components/bubble-templates/index.css +0 -18
@@ -0,0 +1,4 @@
1
+ import type { __VkAgentChatProvider } from '@vunk/plus/components/agent-chat-provider';
2
+ import type { __VkBubbleTemplates } from '@vunk/plus/components/bubble-templates';
3
+ export type Item = __VkAgentChatProvider.BubbleItem;
4
+ export type RenderData = __VkBubbleTemplates.RenderData;
@@ -0,0 +1,4 @@
1
+ import VkBubbleTemplates from './src/index.vue';
2
+ export * as __VkBubbleTemplates from './src/types';
3
+ export { VkBubbleTemplates, };
4
+ export default VkBubbleTemplates;
@@ -1,166 +1,7 @@
1
- import { defineComponent, ref, watch, computed, createElementBlock, openBlock, normalizeStyle, createElementVNode, createVNode, normalizeClass, renderSlot, createBlock, createCommentVNode, withCtx, unref, createTextVNode, toDisplayString, Transition, withDirectives, vShow, Fragment } from 'vue';
1
+ import { defineComponent, createElementBlock, openBlock, Fragment, createVNode, unref, withCtx, createBlock, createCommentVNode } from 'vue';
2
2
  import { VkBroadcastingMarkdown } from '@vunk/plus/components/broadcasting-markdown';
3
3
  import { VkRendererTemplate } from '@vunk/core/components/renderer-template';
4
- import { _ as _export_sfc, E as ElIcon, l as loading_default, o as opportunity_default, s as success_filled_default, c as circle_close_filled_default, b as arrow_up_bold_default, T as Typewriter } from '../index.mjs';
5
-
6
- const _hoisted_1 = ["disabled"];
7
- const _hoisted_2 = {
8
- class: "status-icon"
9
- };
10
- const _hoisted_3 = {
11
- class: "label"
12
- };
13
- const _hoisted_4 = {
14
- class: "content"
15
- };
16
- const _hoisted_5 = {
17
- class: "error-message"
18
- };
19
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
20
- __name: "index",
21
- props: {
22
- modelValue: {
23
- type: Boolean,
24
- default: true
25
- },
26
- content: {
27
- default: ""
28
- },
29
- status: {
30
- default: "start"
31
- },
32
- disabled: {
33
- type: Boolean,
34
- default: false
35
- },
36
- autoCollapse: {
37
- type: Boolean,
38
- default: false
39
- },
40
- duration: {
41
- default: "0.2s"
42
- },
43
- buttonWidth: {
44
- default: "160px"
45
- },
46
- maxWidth: {
47
- default: "500px"
48
- },
49
- backgroundColor: {
50
- default: "#fcfcfc"
51
- },
52
- color: {
53
- default: "var(--el-color-info)"
54
- }
55
- },
56
- emits: ["change", "update:expanded"],
57
- setup(__props, {
58
- emit: __emit
59
- }) {
60
- const props = __props;
61
- const emit = __emit;
62
- const isExpanded = ref(props.modelValue);
63
- watch(() => props.modelValue, (newVal) => {
64
- isExpanded.value = newVal;
65
- });
66
- function changeExpand() {
67
- if (props.disabled) return;
68
- isExpanded.value = !isExpanded.value;
69
- emit("change", {
70
- value: isExpanded.value,
71
- status: props.status
72
- });
73
- emit("update:expanded", isExpanded.value);
74
- }
75
- const displayedContent = computed(() => {
76
- return props.status === "error" ? "思考过程中出现错误" : props.content;
77
- });
78
- watch(() => props.status, (newVal) => {
79
- if (newVal === "end" && props.autoCollapse) {
80
- isExpanded.value = false;
81
- }
82
- });
83
- return (_ctx, _cache) => {
84
- const _component_el_icon = ElIcon;
85
- return openBlock(), createElementBlock("div", {
86
- class: "el-thinking",
87
- style: normalizeStyle({
88
- "--el-thinking-button-width": props.buttonWidth,
89
- "--el-thinking-animation-duration": props.duration,
90
- "--el-thinking-content-wrapper-width": props.maxWidth,
91
- "--el-thinking-content-wrapper-background-color": props.backgroundColor,
92
- "--el-thinking-content-wrapper-color": props.color
93
- })
94
- }, [createElementVNode("button", {
95
- class: normalizeClass(["trigger", [_ctx.status, {
96
- disabled: !props.disabled
97
- }]]),
98
- disabled: props.disabled,
99
- onClick: changeExpand
100
- }, [createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "status-icon", {
101
- status: props.status
102
- }, () => [_ctx.status === "thinking" ? (openBlock(), createBlock(_component_el_icon, {
103
- key: 0,
104
- class: "is-loading el-icon-center"
105
- }, {
106
- default: withCtx(() => [createVNode(unref(loading_default))]),
107
- _: 1
108
- })) : createCommentVNode("", true), _ctx.status === "start" ? (openBlock(), createBlock(_component_el_icon, {
109
- key: 1,
110
- class: "el-icon-center start-color"
111
- }, {
112
- default: withCtx(() => [createVNode(unref(opportunity_default))]),
113
- _: 1
114
- })) : createCommentVNode("", true), _ctx.status === "end" ? (openBlock(), createBlock(_component_el_icon, {
115
- key: 2,
116
- class: "el-icon-center end-color"
117
- }, {
118
- default: withCtx(() => [createVNode(unref(success_filled_default))]),
119
- _: 1
120
- })) : createCommentVNode("", true), _ctx.status === "error" ? (openBlock(), createBlock(_component_el_icon, {
121
- key: 3,
122
- class: "el-icon-center error-color"
123
- }, {
124
- default: withCtx(() => [createVNode(unref(circle_close_filled_default))]),
125
- _: 1
126
- })) : createCommentVNode("", true)], true)]), createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "label", {
127
- status: props.status
128
- }, () => [createTextVNode(toDisplayString(_ctx.status === "thinking" ? "思考中..." : _ctx.status === "error" ? "思考遇到问题" : _ctx.status === "end" ? "思考完成" : "开始思考"), 1)], true)]), createVNode(Transition, {
129
- name: "rotate"
130
- }, {
131
- default: withCtx(() => [!props.disabled ? (openBlock(), createElementBlock("span", {
132
- key: 0,
133
- class: normalizeClass(["arrow el-icon-center", {
134
- expanded: unref(isExpanded)
135
- }])
136
- }, [renderSlot(_ctx.$slots, "arrow", {}, () => [createVNode(_component_el_icon, {
137
- class: "el-icon-center"
138
- }, {
139
- default: withCtx(() => [createVNode(unref(arrow_up_bold_default))]),
140
- _: 1
141
- })], true)], 2)) : createCommentVNode("", true)]),
142
- _: 3
143
- })], 10, _hoisted_1), createVNode(Transition, {
144
- name: "slide"
145
- }, {
146
- default: withCtx(() => [unref(displayedContent) ? withDirectives((openBlock(), createElementBlock("div", {
147
- key: 0,
148
- class: normalizeClass(["content-wrapper", {
149
- "error-state": _ctx.status === "error"
150
- }])
151
- }, [createElementVNode("div", _hoisted_4, [_ctx.status !== "error" ? renderSlot(_ctx.$slots, "content", {
152
- key: 0,
153
- content: unref(displayedContent)
154
- }, () => [createElementVNode("pre", null, toDisplayString(unref(displayedContent)), 1)], true) : renderSlot(_ctx.$slots, "error", {
155
- key: 1,
156
- errorContent: unref(displayedContent)
157
- }, () => [createElementVNode("div", _hoisted_5, toDisplayString(unref(displayedContent)), 1)], true)])], 2)), [[vShow, unref(isExpanded)]]) : createCommentVNode("", true)]),
158
- _: 3
159
- })], 4);
160
- };
161
- }
162
- });
163
- const Thinking = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5eb92e73"]]);
4
+ import { Thinking, Typewriter } from 'vue-element-plus-x';
164
5
 
165
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
166
7
  ...{