@mieweb/ui 0.11.0-dev.40 → 0.11.0-dev.42
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/dist/{chunk-JWMMWNTT.js → chunk-G35LXI2A.js} +15 -18
- package/dist/chunk-G35LXI2A.js.map +1 -0
- package/dist/{chunk-DCV34MEF.cjs → chunk-NWU634SO.cjs} +15 -18
- package/dist/chunk-NWU634SO.cjs.map +1 -0
- package/dist/components/SuperChat/index.cjs +14 -7
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.js +9 -2
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/index.cjs +26 -26
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-DCV34MEF.cjs.map +0 -1
- package/dist/chunk-JWMMWNTT.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkJFLC7SHM_cjs = require('../../chunk-JFLC7SHM.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkNWU634SO_cjs = require('../../chunk-NWU634SO.cjs');
|
|
5
5
|
var chunk2GBVJHWN_cjs = require('../../chunk-2GBVJHWN.cjs');
|
|
6
6
|
var chunkAHYDJN4H_cjs = require('../../chunk-AHYDJN4H.cjs');
|
|
7
7
|
require('../../chunk-D3FNZMOB.cjs');
|
|
@@ -229,7 +229,7 @@ function ParticipantAvatar({
|
|
|
229
229
|
src: participant?.avatar,
|
|
230
230
|
alt: "",
|
|
231
231
|
name: participant?.name ?? "?",
|
|
232
|
-
fallback: isAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
232
|
+
fallback: isAgent ? /* @__PURE__ */ jsxRuntime.jsx(chunkNWU634SO_cjs.SparklesIcon, { size: "sm" }) : void 0,
|
|
233
233
|
style: { backgroundColor },
|
|
234
234
|
"aria-hidden": "true",
|
|
235
235
|
className: "shrink-0"
|
|
@@ -765,7 +765,7 @@ ${block.text}
|
|
|
765
765
|
isSelf ? "flex-row-reverse" : "flex-row"
|
|
766
766
|
),
|
|
767
767
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
768
|
-
|
|
768
|
+
chunkNWU634SO_cjs.ChatBubble,
|
|
769
769
|
{
|
|
770
770
|
ref: bubbleRef,
|
|
771
771
|
"data-slot": "superchat-bubble",
|
|
@@ -829,7 +829,14 @@ ${block.text}
|
|
|
829
829
|
) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
830
830
|
message.content?.map((block, i) => {
|
|
831
831
|
if (block.type === "tool_use" && block.toolCall) {
|
|
832
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
832
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
833
|
+
chunkNWU634SO_cjs.MCPToolCallDisplay,
|
|
834
|
+
{
|
|
835
|
+
toolCall: block.toolCall,
|
|
836
|
+
defaultCollapsed: block.collapsed ?? (streaming ? void 0 : true)
|
|
837
|
+
},
|
|
838
|
+
i
|
|
839
|
+
);
|
|
833
840
|
}
|
|
834
841
|
if ((block.type === "text" || block.type === "thinking") && block.text) {
|
|
835
842
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -882,7 +889,7 @@ ${block.text}
|
|
|
882
889
|
},
|
|
883
890
|
attachment.id
|
|
884
891
|
)),
|
|
885
|
-
streaming && !hasBody && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
892
|
+
streaming && !hasBody && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkNWU634SO_cjs.AITypingIndicator, {}) })
|
|
886
893
|
] })
|
|
887
894
|
}
|
|
888
895
|
)
|
|
@@ -1765,7 +1772,7 @@ function SuperChat({
|
|
|
1765
1772
|
onClick: () => onConversationClosed(conversation),
|
|
1766
1773
|
"aria-label": "Close conversation",
|
|
1767
1774
|
className: "rounded-md p-1 text-neutral-400 hover:bg-neutral-100 dark:hover:bg-neutral-800",
|
|
1768
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1775
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkNWU634SO_cjs.CloseIcon, {})
|
|
1769
1776
|
}
|
|
1770
1777
|
)
|
|
1771
1778
|
]
|
|
@@ -1886,7 +1893,7 @@ function SuperChat({
|
|
|
1886
1893
|
mode: "presence",
|
|
1887
1894
|
className: "absolute inset-x-0 bottom-0 z-20",
|
|
1888
1895
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1889
|
-
|
|
1896
|
+
chunkNWU634SO_cjs.JumpToBottomButton,
|
|
1890
1897
|
{
|
|
1891
1898
|
dataSlot: "superchat-jump-to-bottom",
|
|
1892
1899
|
hasNewMessages: hasNewBelow,
|