@mieweb/ui 0.11.0-dev.51 → 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/index.cjs CHANGED
@@ -46,7 +46,7 @@ var chunkXU3X2AUL_cjs = require('./chunk-XU3X2AUL.cjs');
46
46
  var chunkYGA35Z2P_cjs = require('./chunk-YGA35Z2P.cjs');
47
47
  var chunkAHHFFXJR_cjs = require('./chunk-AHHFFXJR.cjs');
48
48
  var chunk7RV6CAP6_cjs = require('./chunk-7RV6CAP6.cjs');
49
- var chunkG56OUIGH_cjs = require('./chunk-G56OUIGH.cjs');
49
+ var chunkARI25ZYT_cjs = require('./chunk-ARI25ZYT.cjs');
50
50
  var chunkXCCH5KHW_cjs = require('./chunk-XCCH5KHW.cjs');
51
51
  var chunkNH5JOZLG_cjs = require('./chunk-NH5JOZLG.cjs');
52
52
  var chunk3SZQRMHM_cjs = require('./chunk-3SZQRMHM.cjs');
@@ -1465,7 +1465,7 @@ function AIEmptyState({
1465
1465
  {
1466
1466
  "data-slot": "ai-empty-state-icon",
1467
1467
  className: "bg-primary-800 dark:bg-primary-800 flex h-16 w-16 items-center justify-center rounded-full text-white",
1468
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkG56OUIGH_cjs.SparklesIcon, { size: "lg", className: "h-8 w-8" })
1468
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkARI25ZYT_cjs.SparklesIcon, { size: "lg", className: "h-8 w-8" })
1469
1469
  }
1470
1470
  );
1471
1471
  const suggestionsAction = suggestions && suggestions.length > 0 && onSuggestionSelect ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6", children: [
@@ -1633,7 +1633,7 @@ function AIChat({
1633
1633
  scrollToBottom(prefersReducedMotion ? "auto" : "smooth");
1634
1634
  }, [scrollToBottom, prefersReducedMotion]);
1635
1635
  const renderMessageItem = (message) => /* @__PURE__ */ jsxRuntime.jsx(
1636
- chunkG56OUIGH_cjs.AIMessageDisplay,
1636
+ chunkARI25ZYT_cjs.AIMessageDisplay,
1637
1637
  {
1638
1638
  message,
1639
1639
  userName,
@@ -1734,7 +1734,7 @@ function AIChat({
1734
1734
  {
1735
1735
  "data-slot": "ai-chat-header-icon",
1736
1736
  className: "bg-primary-800 dark:bg-primary-800 flex h-8 w-8 items-center justify-center rounded-full text-white",
1737
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkG56OUIGH_cjs.SparklesIcon, { size: "sm" })
1737
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkARI25ZYT_cjs.SparklesIcon, { size: "sm" })
1738
1738
  }
1739
1739
  ),
1740
1740
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -1764,7 +1764,7 @@ function AIChat({
1764
1764
  className: "rounded-lg p-2 text-neutral-500 hover:bg-neutral-100 hover:text-neutral-700 dark:hover:bg-neutral-800 dark:hover:text-neutral-300",
1765
1765
  title: "Clear chat",
1766
1766
  "aria-label": "Clear chat",
1767
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkG56OUIGH_cjs.RefreshIcon, {})
1767
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkARI25ZYT_cjs.RefreshIcon, {})
1768
1768
  }
1769
1769
  ),
1770
1770
  onClose && /* @__PURE__ */ jsxRuntime.jsx(
@@ -1775,7 +1775,7 @@ function AIChat({
1775
1775
  className: "rounded-lg p-2 text-neutral-500 hover:bg-neutral-100 hover:text-neutral-700 dark:hover:bg-neutral-800 dark:hover:text-neutral-300",
1776
1776
  title: "Close chat",
1777
1777
  "aria-label": "Close chat",
1778
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkG56OUIGH_cjs.CloseIcon, {})
1778
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkARI25ZYT_cjs.CloseIcon, {})
1779
1779
  }
1780
1780
  )
1781
1781
  ] })
@@ -1815,7 +1815,7 @@ function AIChat({
1815
1815
  }
1816
1816
  ),
1817
1817
  !isAtBottom && /* @__PURE__ */ jsxRuntime.jsx(
1818
- chunkG56OUIGH_cjs.JumpToBottomButton,
1818
+ chunkARI25ZYT_cjs.JumpToBottomButton,
1819
1819
  {
1820
1820
  dataSlot: "ai-chat-jump-to-bottom",
1821
1821
  hasNewMessages: hasNewBelow,
@@ -5329,7 +5329,7 @@ function AIChatTrigger({
5329
5329
  children: badge > 9 ? "9+" : badge
5330
5330
  }
5331
5331
  ),
5332
- /* @__PURE__ */ jsxRuntime.jsx(chunkG56OUIGH_cjs.SparklesIcon, { size: "lg" })
5332
+ /* @__PURE__ */ jsxRuntime.jsx(chunkARI25ZYT_cjs.SparklesIcon, { size: "lg" })
5333
5333
  ]
5334
5334
  }
5335
5335
  );
@@ -8436,7 +8436,7 @@ function ReconciliationProposalRow({
8436
8436
  children: [
8437
8437
  /* @__PURE__ */ jsxRuntime.jsxs("dt", { className: "text-muted-foreground flex items-center gap-1 text-[11px] tracking-wide uppercase", children: [
8438
8438
  /* @__PURE__ */ jsxRuntime.jsx(
8439
- chunkG56OUIGH_cjs.SparklesIcon,
8439
+ chunkARI25ZYT_cjs.SparklesIcon,
8440
8440
  {
8441
8441
  size: "sm",
8442
8442
  className: "text-primary-700 dark:text-primary-400"
@@ -8492,7 +8492,7 @@ function SourcePill({ source: source2 }) {
8492
8492
  "text-muted-foreground"
8493
8493
  ),
8494
8494
  children: [
8495
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary-700 dark:text-primary-400 flex items-center", children: source2.icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkG56OUIGH_cjs.SparklesIcon, { size: "sm" }) }),
8495
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary-700 dark:text-primary-400 flex items-center", children: source2.icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkARI25ZYT_cjs.SparklesIcon, { size: "sm" }) }),
8496
8496
  source2.thumbnailUrl && /* @__PURE__ */ jsxRuntime.jsx(
8497
8497
  "img",
8498
8498
  {
@@ -44953,75 +44953,75 @@ Object.defineProperty(exports, "Sparkline", {
44953
44953
  });
44954
44954
  Object.defineProperty(exports, "AILogoIcon", {
44955
44955
  enumerable: true,
44956
- get: function () { return chunkG56OUIGH_cjs.AILogoIcon; }
44956
+ get: function () { return chunkARI25ZYT_cjs.AILogoIcon; }
44957
44957
  });
44958
44958
  Object.defineProperty(exports, "AIMessageDisplay", {
44959
44959
  enumerable: true,
44960
- get: function () { return chunkG56OUIGH_cjs.AIMessageDisplay; }
44960
+ get: function () { return chunkARI25ZYT_cjs.AIMessageDisplay; }
44961
44961
  });
44962
44962
  Object.defineProperty(exports, "AITypingIndicator", {
44963
44963
  enumerable: true,
44964
- get: function () { return chunkG56OUIGH_cjs.AITypingIndicator; }
44964
+ get: function () { return chunkARI25ZYT_cjs.AITypingIndicator; }
44965
44965
  });
44966
44966
  Object.defineProperty(exports, "ChatBubble", {
44967
44967
  enumerable: true,
44968
- get: function () { return chunkG56OUIGH_cjs.ChatBubble; }
44968
+ get: function () { return chunkARI25ZYT_cjs.ChatBubble; }
44969
44969
  });
44970
44970
  Object.defineProperty(exports, "ChevronIcon", {
44971
44971
  enumerable: true,
44972
- get: function () { return chunkG56OUIGH_cjs.ChevronIcon; }
44972
+ get: function () { return chunkARI25ZYT_cjs.ChevronIcon; }
44973
44973
  });
44974
44974
  Object.defineProperty(exports, "CloseIcon", {
44975
44975
  enumerable: true,
44976
- get: function () { return chunkG56OUIGH_cjs.CloseIcon; }
44976
+ get: function () { return chunkARI25ZYT_cjs.CloseIcon; }
44977
44977
  });
44978
44978
  Object.defineProperty(exports, "CollapsiblePill", {
44979
44979
  enumerable: true,
44980
- get: function () { return chunkG56OUIGH_cjs.CollapsiblePill; }
44980
+ get: function () { return chunkARI25ZYT_cjs.CollapsiblePill; }
44981
44981
  });
44982
44982
  Object.defineProperty(exports, "MCPToolCallDisplay", {
44983
44983
  enumerable: true,
44984
- get: function () { return chunkG56OUIGH_cjs.MCPToolCallDisplay; }
44984
+ get: function () { return chunkARI25ZYT_cjs.MCPToolCallDisplay; }
44985
44985
  });
44986
44986
  Object.defineProperty(exports, "MCPToolCallGroup", {
44987
44987
  enumerable: true,
44988
- get: function () { return chunkG56OUIGH_cjs.MCPToolCallGroup; }
44988
+ get: function () { return chunkARI25ZYT_cjs.MCPToolCallGroup; }
44989
44989
  });
44990
44990
  Object.defineProperty(exports, "MessageAvatar", {
44991
44991
  enumerable: true,
44992
- get: function () { return chunkG56OUIGH_cjs.MessageAvatar; }
44992
+ get: function () { return chunkARI25ZYT_cjs.MessageAvatar; }
44993
44993
  });
44994
44994
  Object.defineProperty(exports, "RefreshIcon", {
44995
44995
  enumerable: true,
44996
- get: function () { return chunkG56OUIGH_cjs.RefreshIcon; }
44996
+ get: function () { return chunkARI25ZYT_cjs.RefreshIcon; }
44997
44997
  });
44998
44998
  Object.defineProperty(exports, "ResourceLink", {
44999
44999
  enumerable: true,
45000
- get: function () { return chunkG56OUIGH_cjs.ResourceLink; }
45000
+ get: function () { return chunkARI25ZYT_cjs.ResourceLink; }
45001
45001
  });
45002
45002
  Object.defineProperty(exports, "SendIcon", {
45003
45003
  enumerable: true,
45004
- get: function () { return chunkG56OUIGH_cjs.SendIcon; }
45004
+ get: function () { return chunkARI25ZYT_cjs.SendIcon; }
45005
45005
  });
45006
45006
  Object.defineProperty(exports, "SparklesIcon", {
45007
45007
  enumerable: true,
45008
- get: function () { return chunkG56OUIGH_cjs.SparklesIcon; }
45008
+ get: function () { return chunkARI25ZYT_cjs.SparklesIcon; }
45009
45009
  });
45010
45010
  Object.defineProperty(exports, "SpinnerIcon", {
45011
45011
  enumerable: true,
45012
- get: function () { return chunkG56OUIGH_cjs.SpinnerIcon; }
45012
+ get: function () { return chunkARI25ZYT_cjs.SpinnerIcon; }
45013
45013
  });
45014
45014
  Object.defineProperty(exports, "ToolStatusIcon", {
45015
45015
  enumerable: true,
45016
- get: function () { return chunkG56OUIGH_cjs.ToolStatusIcon; }
45016
+ get: function () { return chunkARI25ZYT_cjs.ToolStatusIcon; }
45017
45017
  });
45018
45018
  Object.defineProperty(exports, "defaultMCPToolCallGroupLabels", {
45019
45019
  enumerable: true,
45020
- get: function () { return chunkG56OUIGH_cjs.defaultMCPToolCallGroupLabels; }
45020
+ get: function () { return chunkARI25ZYT_cjs.defaultMCPToolCallGroupLabels; }
45021
45021
  });
45022
45022
  Object.defineProperty(exports, "getToolIcon", {
45023
45023
  enumerable: true,
45024
- get: function () { return chunkG56OUIGH_cjs.getToolIcon; }
45024
+ get: function () { return chunkARI25ZYT_cjs.getToolIcon; }
45025
45025
  });
45026
45026
  Object.defineProperty(exports, "AttachmentPreview", {
45027
45027
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -730,6 +730,12 @@ interface MCPToolCall {
730
730
  id: string;
731
731
  /** Name of the tool being invoked */
732
732
  toolName: string;
733
+ /**
734
+ * What the call did in the user's words, e.g. "Read notes.md". Shown in
735
+ * place of `toolName`, which then moves into the call's details. Omit it to
736
+ * show `toolName`.
737
+ */
738
+ displayName?: string;
733
739
  /**
734
740
  * Who provides the tool — an MCP server's display name, for example. Shown
735
741
  * before the tool name; omit it for first-party tools.
@@ -1008,7 +1014,7 @@ interface SpinnerIconProps {
1008
1014
  declare function SpinnerIcon({ className }: SpinnerIconProps): react_jsx_runtime.JSX.Element;
1009
1015
 
1010
1016
  interface CollapsiblePillProps {
1011
- label: string;
1017
+ label: React$1.ReactNode;
1012
1018
  leadingIcon?: React$1.ReactNode;
1013
1019
  density?: 'standard' | 'condensed';
1014
1020
  defaultOpen?: boolean;
@@ -1077,6 +1083,8 @@ interface MCPToolCallGroupLabels {
1077
1083
  status: Record<MCPToolStatus, string>;
1078
1084
  /** Accessible name for a call's row. */
1079
1085
  callLabel: (toolCall: MCPToolCall) => string;
1086
+ /** Heads the raw `toolName` in a row's details when `displayName` is set. */
1087
+ toolId: string;
1080
1088
  /** Disclosure for a successful call's output. */
1081
1089
  showResult: string;
1082
1090
  /** Disclosure for a failed call's full error. */
package/dist/index.d.ts CHANGED
@@ -730,6 +730,12 @@ interface MCPToolCall {
730
730
  id: string;
731
731
  /** Name of the tool being invoked */
732
732
  toolName: string;
733
+ /**
734
+ * What the call did in the user's words, e.g. "Read notes.md". Shown in
735
+ * place of `toolName`, which then moves into the call's details. Omit it to
736
+ * show `toolName`.
737
+ */
738
+ displayName?: string;
733
739
  /**
734
740
  * Who provides the tool — an MCP server's display name, for example. Shown
735
741
  * before the tool name; omit it for first-party tools.
@@ -1008,7 +1014,7 @@ interface SpinnerIconProps {
1008
1014
  declare function SpinnerIcon({ className }: SpinnerIconProps): react_jsx_runtime.JSX.Element;
1009
1015
 
1010
1016
  interface CollapsiblePillProps {
1011
- label: string;
1017
+ label: React$1.ReactNode;
1012
1018
  leadingIcon?: React$1.ReactNode;
1013
1019
  density?: 'standard' | 'condensed';
1014
1020
  defaultOpen?: boolean;
@@ -1077,6 +1083,8 @@ interface MCPToolCallGroupLabels {
1077
1083
  status: Record<MCPToolStatus, string>;
1078
1084
  /** Accessible name for a call's row. */
1079
1085
  callLabel: (toolCall: MCPToolCall) => string;
1086
+ /** Heads the raw `toolName` in a row's details when `displayName` is set. */
1087
+ toolId: string;
1080
1088
  /** Disclosure for a successful call's output. */
1081
1089
  showResult: string;
1082
1090
  /** Disclosure for a failed call's full error. */
package/dist/index.js CHANGED
@@ -49,8 +49,8 @@ import { Skeleton } from './chunk-ZIUADGAR.js';
49
49
  export { Skeleton, SkeletonCard, SkeletonTable, SkeletonText, skeletonVariants } from './chunk-ZIUADGAR.js';
50
50
  export { SourceTip } from './chunk-KFEN2SRZ.js';
51
51
  export { Sparkline } from './chunk-CG4ZKJLE.js';
52
- import { SparklesIcon, RefreshIcon, CloseIcon, JumpToBottomButton, AIMessageDisplay } from './chunk-O3MN3TYS.js';
53
- export { AILogoIcon, AIMessageDisplay, AITypingIndicator, ChatBubble, ChevronIcon, CloseIcon, CollapsiblePill, MCPToolCallDisplay, MCPToolCallGroup, MessageAvatar, RefreshIcon, ResourceLink, SendIcon, SparklesIcon, SpinnerIcon, ToolStatusIcon, defaultMCPToolCallGroupLabels, getToolIcon } from './chunk-O3MN3TYS.js';
52
+ import { SparklesIcon, RefreshIcon, CloseIcon, JumpToBottomButton, AIMessageDisplay } from './chunk-NCC3VF6V.js';
53
+ export { AILogoIcon, AIMessageDisplay, AITypingIndicator, ChatBubble, ChevronIcon, CloseIcon, CollapsiblePill, MCPToolCallDisplay, MCPToolCallGroup, MessageAvatar, RefreshIcon, ResourceLink, SendIcon, SparklesIcon, SpinnerIcon, ToolStatusIcon, defaultMCPToolCallGroupLabels, getToolIcon } from './chunk-NCC3VF6V.js';
54
54
  import { useTypingEmulation, EmptyState } from './chunk-PSCSU63K.js';
55
55
  export { AttachmentPreview, ConversationHeader, ConversationListItem, ConversationListSkeleton, DateSeparator, EmptyState, LightboxModal, LoadMoreButton, MessageBubble, MessageList, MessageStatusIcon, MessageThread, MessagingSplitView, ReadReceiptIndicator, SkeletonMessage, TypingIndicator, bubbleVariants, formatDateLabel, formatFileSize, formatLastSeen, getConversationSubtitle, getConversationTitle, groupMessagesByDate, headerVariants, isSameSenderGroup, useMessageScroll, useMessages, useReadReceipts, useTypingEmulation, useTypingIndicator } from './chunk-PSCSU63K.js';
56
56
  import { notifyComposerMigrationOnce, ChatComposer, DEFAULT_MAX_FILE_SIZE, DEFAULT_ACCEPTED_FILE_TYPES, ComposerSelector } from './chunk-KP72MDFB.js';
@@ -164,6 +164,12 @@ interface MCPToolCall {
164
164
  id: string;
165
165
  /** Name of the tool being invoked */
166
166
  toolName: string;
167
+ /**
168
+ * What the call did in the user's words, e.g. "Read notes.md". Shown in
169
+ * place of `toolName`, which then moves into the call's details. Omit it to
170
+ * show `toolName`.
171
+ */
172
+ displayName?: string;
167
173
  /**
168
174
  * Who provides the tool — an MCP server's display name, for example. Shown
169
175
  * before the tool name; omit it for first-party tools.
@@ -164,6 +164,12 @@ interface MCPToolCall {
164
164
  id: string;
165
165
  /** Name of the tool being invoked */
166
166
  toolName: string;
167
+ /**
168
+ * What the call did in the user's words, e.g. "Read notes.md". Shown in
169
+ * place of `toolName`, which then moves into the call's details. Omit it to
170
+ * show `toolName`.
171
+ */
172
+ displayName?: string;
167
173
  /**
168
174
  * Who provides the tool — an MCP server's display name, for example. Shown
169
175
  * before the tool name; omit it for first-party tools.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mieweb/ui",
3
- "version": "0.11.0-dev.51",
3
+ "version": "0.11.0-dev.52",
4
4
  "description": "A themeable, accessible React component library built with Tailwind CSS",
5
5
  "author": "Medical Informatics Engineering, Inc.",
6
6
  "license": "SEE LICENSE IN LICENSE",