@mieweb/ui 0.10.0-dev.30 → 0.10.0-dev.31

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.
@@ -1279,6 +1279,17 @@ function SuperChat({
1279
1279
  linkBuilder,
1280
1280
  defaultCopyFormat,
1281
1281
  className,
1282
+ showHeader = true,
1283
+ placeholder,
1284
+ allowAttachments,
1285
+ agents,
1286
+ selectedAgent,
1287
+ onAgentChange,
1288
+ agentSelectorLabel,
1289
+ modelSelectorProps,
1290
+ isStreaming,
1291
+ onStop,
1292
+ stopLabel,
1282
1293
  onMessageSent,
1283
1294
  onMessageEdited,
1284
1295
  onConversationClosed,
@@ -1687,7 +1698,7 @@ function SuperChat({
1687
1698
  className
1688
1699
  ),
1689
1700
  children: [
1690
- /* @__PURE__ */ jsxRuntime.jsxs(
1701
+ showHeader ? /* @__PURE__ */ jsxRuntime.jsxs(
1691
1702
  "header",
1692
1703
  {
1693
1704
  "data-slot": "superchat-header",
@@ -1751,6 +1762,9 @@ function SuperChat({
1751
1762
  )
1752
1763
  ]
1753
1764
  }
1765
+ ) : (
1766
+ // Keeps the panel's aria-labelledby reference valid without a visible header.
1767
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { id: headingId, className: "sr-only", children: conversation.title })
1754
1768
  ),
1755
1769
  activeView === "media" ? /* @__PURE__ */ jsxRuntime.jsxs(
1756
1770
  "div",
@@ -1885,13 +1899,23 @@ function SuperChat({
1885
1899
  onSend: handleComposerSend,
1886
1900
  disabled: readOnly,
1887
1901
  className: "px-4 pb-4",
1888
- placeholder: readOnly ? "Read-only conversation" : "Type a message\u2026 use @ to address an agent",
1902
+ placeholder: readOnly ? "Read-only conversation" : placeholder ?? "Type a message\u2026 use @ to address an agent",
1889
1903
  mentionOptions,
1890
- allowAttachments: !readOnly,
1904
+ allowAttachments: !readOnly && (allowAttachments ?? true),
1891
1905
  acceptedFileTypes: composerAccept,
1892
1906
  maxFileSize: 25 * 1024 * 1024,
1893
1907
  maxLength: 1e5,
1894
- inputLabel: "Message"
1908
+ inputLabel: "Message",
1909
+ showAgentSelector: !!agents?.length,
1910
+ agents,
1911
+ selectedAgent,
1912
+ onAgentChange,
1913
+ agentSelectorLabel,
1914
+ showModelSelector: !!modelSelectorProps,
1915
+ modelSelectorProps,
1916
+ isStreaming,
1917
+ onStop,
1918
+ stopLabel
1895
1919
  }
1896
1920
  )
1897
1921
  ]