@mieweb/ui 0.11.0-dev.50 → 0.11.0-dev.52
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-G56OUIGH.cjs → chunk-ARI25ZYT.cjs} +42 -11
- package/dist/chunk-ARI25ZYT.cjs.map +1 -0
- package/dist/{chunk-I65QJMFB.js → chunk-EOIGNUWI.js} +6 -2
- package/dist/chunk-EOIGNUWI.js.map +1 -0
- package/dist/{chunk-TLXQ2E57.cjs → chunk-LEJHDPLM.cjs} +6 -2
- package/dist/chunk-LEJHDPLM.cjs.map +1 -0
- package/dist/{chunk-O3MN3TYS.js → chunk-NCC3VF6V.js} +42 -11
- package/dist/chunk-NCC3VF6V.js.map +1 -0
- package/dist/components/DictationButton/index.cjs +4 -4
- package/dist/components/DictationButton/index.d.cts +4 -0
- package/dist/components/DictationButton/index.d.ts +4 -0
- package/dist/components/DictationButton/index.js +1 -1
- package/dist/components/SuperChat/index.cjs +33 -8
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.d.cts +15 -3
- package/dist/components/SuperChat/index.d.ts +15 -3
- package/dist/components/SuperChat/index.js +27 -2
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/components/SuperChat/plugins/index.d.cts +2 -2
- package/dist/components/SuperChat/plugins/index.d.ts +2 -2
- package/dist/index.cjs +32 -32
- package/dist/index.d.cts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +3 -3
- package/dist/{types-ByK_dbT7.d.cts → types-BFbvl6xU.d.cts} +6 -0
- package/dist/{types-ByK_dbT7.d.ts → types-BFbvl6xU.d.ts} +6 -0
- package/package.json +1 -1
- package/dist/chunk-G56OUIGH.cjs.map +0 -1
- package/dist/chunk-I65QJMFB.js.map +0 -1
- package/dist/chunk-O3MN3TYS.js.map +0 -1
- package/dist/chunk-TLXQ2E57.cjs.map +0 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkJFLC7SHM_cjs = require('../../chunk-JFLC7SHM.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkARI25ZYT_cjs = require('../../chunk-ARI25ZYT.cjs');
|
|
5
5
|
var chunkNH5JOZLG_cjs = require('../../chunk-NH5JOZLG.cjs');
|
|
6
|
+
var chunkLEJHDPLM_cjs = require('../../chunk-LEJHDPLM.cjs');
|
|
7
|
+
require('../../chunk-2Y2O2PRZ.cjs');
|
|
6
8
|
var chunk2XHPPOXY_cjs = require('../../chunk-2XHPPOXY.cjs');
|
|
7
9
|
require('../../chunk-D3FNZMOB.cjs');
|
|
8
10
|
var chunkK76UNS22_cjs = require('../../chunk-K76UNS22.cjs');
|
|
@@ -231,7 +233,7 @@ function ParticipantAvatar({
|
|
|
231
233
|
src: participant?.avatar,
|
|
232
234
|
alt: "",
|
|
233
235
|
name: participant?.name ?? "?",
|
|
234
|
-
fallback: isAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
236
|
+
fallback: isAgent ? /* @__PURE__ */ jsxRuntime.jsx(chunkARI25ZYT_cjs.SparklesIcon, { size: "sm" }) : void 0,
|
|
235
237
|
style: { backgroundColor },
|
|
236
238
|
"aria-hidden": "true",
|
|
237
239
|
className: "shrink-0"
|
|
@@ -767,7 +769,7 @@ ${block.text}
|
|
|
767
769
|
isSelf ? "flex-row-reverse" : "flex-row"
|
|
768
770
|
),
|
|
769
771
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
770
|
-
|
|
772
|
+
chunkARI25ZYT_cjs.ChatBubble,
|
|
771
773
|
{
|
|
772
774
|
ref: bubbleRef,
|
|
773
775
|
"data-slot": "superchat-bubble",
|
|
@@ -832,7 +834,7 @@ ${block.text}
|
|
|
832
834
|
message.content?.map((block, i) => {
|
|
833
835
|
if (block.type === "tool_use" && block.toolCall) {
|
|
834
836
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
835
|
-
|
|
837
|
+
chunkARI25ZYT_cjs.MCPToolCallDisplay,
|
|
836
838
|
{
|
|
837
839
|
toolCall: block.toolCall,
|
|
838
840
|
defaultCollapsed: block.collapsed ?? (streaming ? void 0 : true)
|
|
@@ -891,7 +893,7 @@ ${block.text}
|
|
|
891
893
|
},
|
|
892
894
|
attachment.id
|
|
893
895
|
)),
|
|
894
|
-
streaming && !hasBody && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
896
|
+
streaming && !hasBody && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkARI25ZYT_cjs.AITypingIndicator, {}) })
|
|
895
897
|
] })
|
|
896
898
|
}
|
|
897
899
|
)
|
|
@@ -1304,9 +1306,11 @@ function SuperChat({
|
|
|
1304
1306
|
onAgentChange,
|
|
1305
1307
|
agentSelectorLabel,
|
|
1306
1308
|
modelSelectorProps,
|
|
1309
|
+
composerSelectorsEndSlot,
|
|
1307
1310
|
isStreaming,
|
|
1308
1311
|
onStop,
|
|
1309
1312
|
stopLabel,
|
|
1313
|
+
dictation,
|
|
1310
1314
|
onMessageSent,
|
|
1311
1315
|
onMessageEdited,
|
|
1312
1316
|
onConversationClosed,
|
|
@@ -1684,6 +1688,13 @@ function SuperChat({
|
|
|
1684
1688
|
draftEpochRef.current += 1;
|
|
1685
1689
|
setDraft(value);
|
|
1686
1690
|
}, []);
|
|
1691
|
+
const appendDictation = React3__namespace.useCallback((text) => {
|
|
1692
|
+
draftEpochRef.current += 1;
|
|
1693
|
+
setDraft(
|
|
1694
|
+
(current) => !current || /\s$/.test(current) ? current + text : `${current} ${text}`
|
|
1695
|
+
);
|
|
1696
|
+
}, []);
|
|
1697
|
+
const dictationProps = typeof dictation === "object" ? dictation : void 0;
|
|
1687
1698
|
const handleComposerSend = React3__namespace.useCallback(
|
|
1688
1699
|
async (message) => {
|
|
1689
1700
|
const epoch = draftEpochRef.current;
|
|
@@ -1774,7 +1785,7 @@ function SuperChat({
|
|
|
1774
1785
|
onClick: () => onConversationClosed(conversation),
|
|
1775
1786
|
"aria-label": "Close conversation",
|
|
1776
1787
|
className: "rounded-md p-1 text-neutral-400 hover:bg-neutral-100 dark:hover:bg-neutral-800",
|
|
1777
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1788
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkARI25ZYT_cjs.CloseIcon, {})
|
|
1778
1789
|
}
|
|
1779
1790
|
)
|
|
1780
1791
|
]
|
|
@@ -1895,7 +1906,7 @@ function SuperChat({
|
|
|
1895
1906
|
mode: "presence",
|
|
1896
1907
|
className: "absolute inset-x-0 bottom-0 z-20",
|
|
1897
1908
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1898
|
-
|
|
1909
|
+
chunkARI25ZYT_cjs.JumpToBottomButton,
|
|
1899
1910
|
{
|
|
1900
1911
|
dataSlot: "superchat-jump-to-bottom",
|
|
1901
1912
|
hasNewMessages: hasNewBelow,
|
|
@@ -1930,9 +1941,23 @@ function SuperChat({
|
|
|
1930
1941
|
agentSelectorLabel,
|
|
1931
1942
|
showModelSelector: !!modelSelectorProps,
|
|
1932
1943
|
modelSelectorProps,
|
|
1944
|
+
selectorsEndSlot: readOnly ? void 0 : composerSelectorsEndSlot,
|
|
1933
1945
|
isStreaming,
|
|
1934
1946
|
onStop,
|
|
1935
|
-
stopLabel
|
|
1947
|
+
stopLabel,
|
|
1948
|
+
micSlot: dictation && !readOnly ? (
|
|
1949
|
+
// Keyed by conversation so switching drops any in-flight take.
|
|
1950
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1951
|
+
chunkLEJHDPLM_cjs.DictationButton,
|
|
1952
|
+
{
|
|
1953
|
+
showStatus: true,
|
|
1954
|
+
showPulse: false,
|
|
1955
|
+
...dictationProps,
|
|
1956
|
+
onText: appendDictation
|
|
1957
|
+
},
|
|
1958
|
+
conversation.id
|
|
1959
|
+
)
|
|
1960
|
+
) : void 0
|
|
1936
1961
|
}
|
|
1937
1962
|
)
|
|
1938
1963
|
]
|