@mcp-b/react-components 0.14.2 → 0.16.0

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 (234) hide show
  1. package/dist/AgentActivity-BNUNrP9O.d.ts +36 -0
  2. package/dist/{AgentChat-DQkqt82e.d.ts → AgentChat-CrlpbvQJ.d.ts} +58 -6
  3. package/dist/{CodeBlock-DUh9WOGo.d.ts → CodeBlock-BRajW4QU.d.ts} +1 -1
  4. package/dist/{CodeBlock-BUFXG8HW.js → CodeBlock-BmB4Xaqq.js} +15 -4
  5. package/dist/{FileTree-mpEIcfzA.js → FileTree-CkVbIMWV.js} +82 -89
  6. package/dist/Message-BkMdE3bS.js +375 -0
  7. package/dist/{ModelSelector-CPCpFAUt.js → ModelSelector-SlJNgwKY.js} +2 -2
  8. package/dist/{PromptInput-ClNqBiIw.d.ts → PromptInput-BWTuXMOD.d.ts} +123 -5
  9. package/dist/ResponsiveSidebarShell-Dd9DCcBT.d.ts +67 -0
  10. package/dist/{Select-Dl_vF_Bt.d.ts → Select-BeEsefzh.d.ts} +12 -2
  11. package/dist/{ThinkChat-BPcehdbP.js → ThinkChat-CzC-zNGA.js} +24 -36
  12. package/dist/{ThinkChatActivity-BmwuIigx.d.ts → ThinkChatActivity-BFQnb2ct.d.ts} +3 -10
  13. package/dist/ThinkChatActivitySummary-BPmu9a-c.d.ts +39 -0
  14. package/dist/{ThinkChatToolParts-CDEjqS6A.d.ts → ThinkChatToolParts-CSzVwMXf.d.ts} +13 -3
  15. package/dist/ThinkExecutionRun-ChhWhOoU.d.ts +30 -0
  16. package/dist/Toggle-CAAlNl-M.d.ts +69 -0
  17. package/dist/ToggleGroup-8hPv-b69.d.ts +73 -0
  18. package/dist/Workspace-D39LxGvP.d.ts +62 -0
  19. package/dist/WorkspaceFile-DOZkPwzu.d.ts +106 -0
  20. package/dist/WorkspaceFileView-rSN_yT0L.js +744 -0
  21. package/dist/WorkspaceLink-DIPbXrUM.js +337 -0
  22. package/dist/WorkspaceLink-DK1DWMHe.d.ts +89 -0
  23. package/dist/components/Activity.d.ts +27 -1
  24. package/dist/components/Activity.js +33 -15
  25. package/dist/components/AgentActivity.d.ts +2 -0
  26. package/dist/components/AgentActivity.js +45 -0
  27. package/dist/components/AgentActivityPreview.d.ts +46 -0
  28. package/dist/components/AgentActivityPreview.js +94 -0
  29. package/dist/components/AgentAttention.d.ts +73 -0
  30. package/dist/components/AgentAttention.js +85 -0
  31. package/dist/components/AgentChat.d.ts +2 -2
  32. package/dist/components/AgentChat.js +224 -200
  33. package/dist/components/AgentChatMessageEditor.d.ts +29 -0
  34. package/dist/components/AgentChatMessageEditor.js +92 -0
  35. package/dist/components/AgentChatTurnError.d.ts +17 -0
  36. package/dist/components/AgentChatTurnError.js +40 -0
  37. package/dist/components/AgentConnection.d.ts +12 -17
  38. package/dist/components/AgentConnection.js +99 -91
  39. package/dist/components/AppFrame.d.ts +24 -0
  40. package/dist/components/AppFrame.js +25 -0
  41. package/dist/components/AppTopBar.d.ts +71 -0
  42. package/dist/components/AppTopBar.js +82 -0
  43. package/dist/components/Artifact.js +1 -1
  44. package/dist/components/BrowserLiveView.js +1 -1
  45. package/dist/components/BrowserReplay.js +1 -1
  46. package/dist/components/BrowserRunPanel.js +1 -1
  47. package/dist/components/Card.d.ts +3 -0
  48. package/dist/components/Card.js +2 -1
  49. package/dist/components/ChainOfThought.d.ts +1 -1
  50. package/dist/components/ChainOfThought.js +1 -1
  51. package/dist/components/ChatGptSignInScreen.js +2 -2
  52. package/dist/components/Checkbox.js +5 -13
  53. package/dist/components/CheckboxGroup.d.ts +58 -2
  54. package/dist/components/CheckboxGroup.js +59 -1
  55. package/dist/components/CodeBlock.d.ts +1 -1
  56. package/dist/components/CodeBlock.js +1 -1
  57. package/dist/components/CodexModelSelector.js +1 -1
  58. package/dist/components/Commit.js +2 -2
  59. package/dist/components/ContextMenu.js +1 -1
  60. package/dist/components/Conversation.js +1 -1
  61. package/dist/components/DescriptionList.d.ts +12 -0
  62. package/dist/components/DescriptionList.js +11 -0
  63. package/dist/components/DescriptionListParts.d.ts +37 -0
  64. package/dist/components/DescriptionListParts.js +35 -0
  65. package/dist/components/EnvironmentVariables.js +2 -2
  66. package/dist/components/Fieldset.d.ts +13 -1
  67. package/dist/components/Fieldset.js +11 -2
  68. package/dist/components/FileTree.js +1 -1
  69. package/dist/components/IconButton.d.ts +33 -0
  70. package/dist/components/IconButton.js +27 -0
  71. package/dist/components/McpConnectionRequest.d.ts +44 -0
  72. package/dist/components/McpConnectionRequest.js +122 -0
  73. package/dist/components/McpServerPicker.d.ts +48 -23
  74. package/dist/components/McpServerPicker.js +238 -189
  75. package/dist/components/Menubar.js +1 -1
  76. package/dist/components/Message.d.ts +1 -0
  77. package/dist/components/Message.js +1 -285
  78. package/dist/components/MessageScroller.js +1 -1
  79. package/dist/components/ModelSelector.js +1 -1
  80. package/dist/components/Pricing.d.ts +37 -0
  81. package/dist/components/Pricing.js +17 -0
  82. package/dist/components/PricingBillingToggle.d.ts +23 -0
  83. package/dist/components/PricingBillingToggle.js +86 -0
  84. package/dist/components/PricingConfirmationDialog.d.ts +25 -0
  85. package/dist/components/PricingConfirmationDialog.js +57 -0
  86. package/dist/components/PricingFAQ.d.ts +18 -0
  87. package/dist/components/PricingFAQ.js +27 -0
  88. package/dist/components/PricingPage.d.ts +2 -38
  89. package/dist/components/PricingPage.js +39 -359
  90. package/dist/components/PricingPlanCard.d.ts +22 -0
  91. package/dist/components/PricingPlanCard.js +109 -0
  92. package/dist/components/PricingUsageCalculator.d.ts +22 -0
  93. package/dist/components/PricingUsageCalculator.js +96 -0
  94. package/dist/components/PromptInput.d.ts +2 -2
  95. package/dist/components/PromptInput.js +210 -15
  96. package/dist/components/Queue.js +1 -1
  97. package/dist/components/Reasoning.d.ts +2 -1
  98. package/dist/components/Reasoning.js +14 -29
  99. package/dist/components/ResizableSidePanel.d.ts +57 -0
  100. package/dist/components/ResizableSidePanel.js +151 -0
  101. package/dist/components/ResponsiveSidebarShell.d.ts +2 -0
  102. package/dist/components/ResponsiveSidebarShell.js +129 -0
  103. package/dist/components/Select.d.ts +2 -2
  104. package/dist/components/Select.js +11 -2
  105. package/dist/components/Slider.d.ts +13 -1
  106. package/dist/components/Slider.js +11 -0
  107. package/dist/components/Sources.js +1 -1
  108. package/dist/components/Stepper.d.ts +4 -0
  109. package/dist/components/Stepper.js +5 -3
  110. package/dist/components/SubagentRun.d.ts +18 -19
  111. package/dist/components/SubagentRun.js +25 -18
  112. package/dist/components/SubagentRunIndicator.d.ts +22 -0
  113. package/dist/components/SubagentRunIndicator.js +33 -0
  114. package/dist/components/SubagentRunList.d.ts +25 -0
  115. package/dist/components/SubagentRunList.js +26 -0
  116. package/dist/components/SubagentRunSelector.d.ts +47 -0
  117. package/dist/components/SubagentRunSelector.js +55 -0
  118. package/dist/components/Task.js +1 -1
  119. package/dist/components/Terminal.js +2 -2
  120. package/dist/components/TestResults.js +1 -1
  121. package/dist/components/Textarea.d.ts +21 -0
  122. package/dist/components/Textarea.js +19 -0
  123. package/dist/components/ThemeModeControl.d.ts +24 -0
  124. package/dist/components/ThemeModeControl.js +52 -0
  125. package/dist/components/ThemeProvider.d.ts +38 -0
  126. package/dist/components/ThemeProvider.js +80 -0
  127. package/dist/components/ThinkChat.d.ts +29 -6
  128. package/dist/components/ThinkChat.js +7 -4
  129. package/dist/components/ThinkChatActivity.d.ts +3 -2
  130. package/dist/components/ThinkChatActivity.js +12 -318
  131. package/dist/components/ThinkChatActivitySummary.d.ts +2 -0
  132. package/dist/components/ThinkChatActivitySummary.js +421 -0
  133. package/dist/components/ThinkChatToolPanels.d.ts +7 -5
  134. package/dist/components/ThinkChatToolPanels.js +70 -8
  135. package/dist/components/ThinkChatToolParts.d.ts +2 -2
  136. package/dist/components/ThinkChatToolParts.js +36 -10
  137. package/dist/components/ThinkExecutionDetail.d.ts +20 -0
  138. package/dist/components/ThinkExecutionDetail.js +80 -0
  139. package/dist/components/ThinkExecutionRun.d.ts +2 -0
  140. package/dist/components/ThinkExecutionRun.js +72 -0
  141. package/dist/components/ThinkExecutionStatus.d.ts +22 -0
  142. package/dist/components/ThinkExecutionStatus.js +36 -0
  143. package/dist/components/ThinkExecutionWorkbench.d.ts +7 -0
  144. package/dist/components/ThinkExecutionWorkbench.js +69 -225
  145. package/dist/components/ThinkFullApp.d.ts +58 -14
  146. package/dist/components/ThinkFullApp.js +129 -160
  147. package/dist/components/ThinkFullAppViewSwitch.d.ts +31 -0
  148. package/dist/components/ThinkFullAppViewSwitch.js +34 -0
  149. package/dist/components/ThinkRoutine.d.ts +36 -0
  150. package/dist/components/ThinkRoutine.js +15 -0
  151. package/dist/components/ThinkRoutineBrowser.d.ts +25 -0
  152. package/dist/components/ThinkRoutineBrowser.js +156 -0
  153. package/dist/components/ThinkRoutineDetail.d.ts +24 -0
  154. package/dist/components/ThinkRoutineDetail.js +102 -0
  155. package/dist/components/ThinkRoutineForm.d.ts +32 -0
  156. package/dist/components/ThinkRoutineForm.js +151 -0
  157. package/dist/components/ThinkRoutineLibrary.d.ts +74 -0
  158. package/dist/components/ThinkRoutineLibrary.js +178 -0
  159. package/dist/components/ThinkRoutineRuns.d.ts +24 -0
  160. package/dist/components/ThinkRoutineRuns.js +68 -0
  161. package/dist/components/ThinkThreadPicker.d.ts +18 -1
  162. package/dist/components/ThinkThreadPicker.js +51 -5
  163. package/dist/components/ThinkThreadShell.d.ts +12 -9
  164. package/dist/components/ThinkThreadShell.js +17 -137
  165. package/dist/components/Toggle.d.ts +1 -68
  166. package/dist/components/ToggleGroup.d.ts +1 -72
  167. package/dist/components/Tooltip.d.ts +3 -1
  168. package/dist/components/Tooltip.js +4 -2
  169. package/dist/components/WebPreview.js +1 -1
  170. package/dist/components/Workspace.d.ts +2 -0
  171. package/dist/components/Workspace.js +424 -0
  172. package/dist/components/WorkspaceBrowser.d.ts +32 -0
  173. package/dist/components/WorkspaceBrowser.js +103 -0
  174. package/dist/components/WorkspaceExplorer.d.ts +12 -79
  175. package/dist/components/WorkspaceExplorer.js +116 -330
  176. package/dist/components/WorkspaceFile.d.ts +2 -0
  177. package/dist/components/WorkspaceFile.js +195 -0
  178. package/dist/components/WorkspaceFileView.d.ts +26 -0
  179. package/dist/components/WorkspaceFileView.js +2 -0
  180. package/dist/components/WorkspaceHeader.d.ts +35 -0
  181. package/dist/components/WorkspaceHeader.js +51 -0
  182. package/dist/components/WorkspaceLink.d.ts +2 -0
  183. package/dist/components/WorkspaceLink.js +2 -0
  184. package/dist/components/icons.d.ts +2 -2
  185. package/dist/components/icons.js +2 -2
  186. package/dist/{copy-button-DUMLYdsk.js → copy-button-Dejn5heL.js} +1 -1
  187. package/dist/icons-CpfUer49.js +85 -0
  188. package/dist/{icons-CUCz_Sft.d.ts → icons-GQd1xF4e.d.ts} +51 -1
  189. package/dist/styles/activity-header.css +75 -0
  190. package/dist/styles/activity.css +49 -63
  191. package/dist/styles/agent-activity-preview-overlay.css +80 -0
  192. package/dist/styles/agent-activity-preview.css +235 -0
  193. package/dist/styles/agent-attention.css +122 -0
  194. package/dist/styles/agent-chat.css +133 -4
  195. package/dist/styles/app-frame.css +15 -0
  196. package/dist/styles/app-top-bar.css +100 -0
  197. package/dist/styles/avatar.css +0 -1
  198. package/dist/styles/browser-control-overlay.css +184 -0
  199. package/dist/styles/card.css +21 -0
  200. package/dist/styles/checkbox-group.css +69 -0
  201. package/dist/styles/description-list.css +50 -0
  202. package/dist/styles/fieldset.css +11 -0
  203. package/dist/styles/index.css +14 -2
  204. package/dist/styles/mcp-connection-request.css +60 -0
  205. package/dist/styles/mcp-server-picker.css +95 -68
  206. package/dist/styles/message.css +4 -43
  207. package/dist/styles/pricing-page.css +21 -27
  208. package/dist/styles/prompt-input.css +225 -32
  209. package/dist/styles/reasoning.css +1 -55
  210. package/dist/styles/recipes.css +23 -15
  211. package/dist/styles/resizable-side-panel.css +66 -0
  212. package/dist/styles/responsive-sidebar-shell.css +169 -0
  213. package/dist/styles/select.css +10 -0
  214. package/dist/styles/stepper.css +13 -0
  215. package/dist/styles/streamdown.css +0 -4
  216. package/dist/styles/subagent-run.css +55 -38
  217. package/dist/styles/textarea.css +20 -0
  218. package/dist/styles/theme-mode-control.css +72 -0
  219. package/dist/styles/think-execution-status.css +49 -0
  220. package/dist/styles/think-execution-workbench.css +8 -72
  221. package/dist/styles/think-full-app.css +104 -131
  222. package/dist/styles/think-routine-library.css +491 -0
  223. package/dist/styles/think-thread-picker.css +47 -3
  224. package/dist/styles/toggle-group.css +7 -0
  225. package/dist/styles/workspace-explorer.css +511 -64
  226. package/dist/utils/mcp-server-catalog.d.ts +82 -78
  227. package/dist/utils/mcp-server-catalog.js +64 -41
  228. package/dist/utils/structured-code.d.ts +1 -1
  229. package/dist/utils/theme.d.ts +22 -0
  230. package/dist/utils/theme.js +55 -0
  231. package/package.json +34 -28
  232. package/dist/icons-Ba9THQKz.js +0 -64
  233. package/dist/styles/think-resize-handle.css +0 -33
  234. package/dist/styles/think-thread-shell.css +0 -219
@@ -0,0 +1,94 @@
1
+ import { t as cx } from "../class-names-9UtZwb0J.js";
2
+ import { B as SpinnerIcon, T as McpIcon, Y as XIcon, q as WarningIcon, v as FileIcon } from "../icons-CpfUer49.js";
3
+ import { ActivityHeader } from "./Activity.js";
4
+ import { AgentActivityFavicon, AgentActivityIcon } from "./AgentActivity.js";
5
+ import "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ //#region src/components/AgentActivityPreview.tsx
8
+ /** Compact multi-agent preview for a page overlay or secondary application rail. */
9
+ function AgentActivityPreview({ "aria-label": ariaLabel = "Agent activity", brandIcon = /* @__PURE__ */ jsx(McpIcon, {}), className, items, onDismiss, onOpenWorkspaceFile, onSelect, ref, ...props }) {
10
+ if (items.length === 0) return null;
11
+ return /* @__PURE__ */ jsxs("section", {
12
+ ref,
13
+ "aria-label": ariaLabel,
14
+ className: cx("agent-activity-preview", className),
15
+ "data-slot": "agent-activity-preview",
16
+ ...props,
17
+ children: [
18
+ /* @__PURE__ */ jsx("div", {
19
+ className: "agent-activity-preview__badge",
20
+ "aria-hidden": "true",
21
+ children: brandIcon
22
+ }),
23
+ onDismiss ? /* @__PURE__ */ jsx("button", {
24
+ type: "button",
25
+ className: "agent-activity-preview__dismiss",
26
+ "aria-label": "Hide agent activity",
27
+ onClick: onDismiss,
28
+ children: /* @__PURE__ */ jsx(XIcon, {})
29
+ }) : null,
30
+ /* @__PURE__ */ jsx("ul", {
31
+ className: "agent-activity-preview__list",
32
+ role: "list",
33
+ children: items.map((item) => /* @__PURE__ */ jsxs("li", {
34
+ className: "agent-activity-preview__item",
35
+ children: [/* @__PURE__ */ jsx("button", {
36
+ type: "button",
37
+ className: "agent-activity-preview__row",
38
+ "aria-label": `${item.label}. ${statusLabel(item.status)}. Open agent.`,
39
+ "data-status": item.status,
40
+ onClick: () => onSelect(item.id),
41
+ children: /* @__PURE__ */ jsx(ActivityHeader, {
42
+ icon: item.url ? /* @__PURE__ */ jsx(AgentActivityFavicon, {
43
+ url: item.url,
44
+ fallbackKind: item.iconKind
45
+ }) : /* @__PURE__ */ jsx(AgentActivityIcon, { kind: item.iconKind }),
46
+ isStreaming: item.status === "running",
47
+ label: item.label,
48
+ trailing: /* @__PURE__ */ jsxs("span", {
49
+ className: "agent-activity-preview__trailing",
50
+ "aria-hidden": "true",
51
+ children: [item.favicons?.length ? /* @__PURE__ */ jsx("span", {
52
+ className: "agent-activity-preview__favicons",
53
+ children: item.favicons.map((favicon) => /* @__PURE__ */ jsx("img", {
54
+ src: favicon.src,
55
+ alt: "",
56
+ title: favicon.label,
57
+ loading: "lazy",
58
+ decoding: "async",
59
+ referrerPolicy: "no-referrer"
60
+ }, `${favicon.src}:${favicon.label}`))
61
+ }) : null, /* @__PURE__ */ jsx(StatusIcon, { status: item.status })]
62
+ })
63
+ })
64
+ }), item.workspaceDestination && onOpenWorkspaceFile ? /* @__PURE__ */ jsx("button", {
65
+ type: "button",
66
+ className: "agent-activity-preview__file-action",
67
+ "aria-label": `Open ${item.workspaceDestination.path} in workspace`,
68
+ onClick: () => {
69
+ const destination = item.workspaceDestination;
70
+ if (destination) onOpenWorkspaceFile(item.id, destination);
71
+ },
72
+ children: /* @__PURE__ */ jsx(FileIcon, {})
73
+ }) : null]
74
+ }, item.id))
75
+ })
76
+ ]
77
+ });
78
+ }
79
+ function StatusIcon({ status }) {
80
+ switch (status) {
81
+ case "running": return /* @__PURE__ */ jsx(SpinnerIcon, {});
82
+ case "input-required": return /* @__PURE__ */ jsx(WarningIcon, {});
83
+ case "unviewed": return /* @__PURE__ */ jsx("span", { className: "agent-activity-preview__unviewed-dot" });
84
+ }
85
+ }
86
+ function statusLabel(status) {
87
+ switch (status) {
88
+ case "running": return "Working";
89
+ case "input-required": return "Needs your input";
90
+ case "unviewed": return "Not yet viewed";
91
+ }
92
+ }
93
+ //#endregion
94
+ export { AgentActivityPreview };
@@ -0,0 +1,73 @@
1
+ import { r as ButtonProps } from "../Button-FX_hpqxm.js";
2
+ import * as React from "react";
3
+
4
+ //#region src/components/AgentAttention.d.ts
5
+ type AgentAttentionTone = "neutral" | "warning";
6
+ interface AgentAttentionProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ /** Visual emphasis only; products retain ownership of the underlying state. */
8
+ tone?: AgentAttentionTone;
9
+ /** Marks ongoing work without introducing progress semantics. */
10
+ busy?: boolean;
11
+ }
12
+ /** Compact host for agent work, handoff, generated input, or review previews. */
13
+ declare function AgentAttention({
14
+ busy,
15
+ className,
16
+ tone,
17
+ ref,
18
+ ...props
19
+ }: AgentAttentionProps & {
20
+ ref?: React.Ref<HTMLDivElement>;
21
+ }): React.JSX.Element;
22
+ interface AgentAttentionHeadingProps {
23
+ /** Leading visual. Decorative by default; put meaning in the title. */
24
+ icon?: React.ReactNode;
25
+ title: React.ReactNode;
26
+ description?: React.ReactNode;
27
+ }
28
+ interface AgentAttentionHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title">, AgentAttentionHeadingProps {}
29
+ /** Non-interactive heading for attention surfaces with inline content or actions. */
30
+ declare function AgentAttentionHeader({
31
+ className,
32
+ description,
33
+ icon,
34
+ title,
35
+ ref,
36
+ ...props
37
+ }: AgentAttentionHeaderProps & {
38
+ ref?: React.Ref<HTMLDivElement>;
39
+ }): React.JSX.Element;
40
+ interface AgentAttentionTriggerProps extends Omit<ButtonProps, "children" | "className" | "color" | "size" | "title" | "variant">, AgentAttentionHeadingProps {
41
+ className?: string;
42
+ }
43
+ /** Whole-surface trigger for opening the owning agent client or disclosure. */
44
+ declare function AgentAttentionTrigger({
45
+ className,
46
+ description,
47
+ icon,
48
+ title,
49
+ ref,
50
+ ...props
51
+ }: AgentAttentionTriggerProps & {
52
+ ref?: React.Ref<HTMLButtonElement>;
53
+ }): React.JSX.Element;
54
+ interface AgentAttentionBodyProps extends React.HTMLAttributes<HTMLDivElement> {}
55
+ /** Bounded content slot, including an app-owned generated-UI sandbox. */
56
+ declare function AgentAttentionBody({
57
+ className,
58
+ ref,
59
+ ...props
60
+ }: AgentAttentionBodyProps & {
61
+ ref?: React.Ref<HTMLDivElement>;
62
+ }): React.JSX.Element;
63
+ interface AgentAttentionActionsProps extends React.HTMLAttributes<HTMLDivElement> {}
64
+ /** Product-owned actions; the primitive does not infer approval authority. */
65
+ declare function AgentAttentionActions({
66
+ className,
67
+ ref,
68
+ ...props
69
+ }: AgentAttentionActionsProps & {
70
+ ref?: React.Ref<HTMLDivElement>;
71
+ }): React.JSX.Element;
72
+ //#endregion
73
+ export { AgentAttention, AgentAttentionActions, AgentAttentionActionsProps, AgentAttentionBody, AgentAttentionBodyProps, AgentAttentionHeader, AgentAttentionHeaderProps, AgentAttentionProps, AgentAttentionTone, AgentAttentionTrigger, AgentAttentionTriggerProps };
@@ -0,0 +1,85 @@
1
+ import { t as cx } from "../class-names-9UtZwb0J.js";
2
+ import { Button } from "./Button.js";
3
+ import "react";
4
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
+ //#region src/components/AgentAttention.tsx
6
+ /** Compact host for agent work, handoff, generated input, or review previews. */
7
+ function AgentAttention({ busy = false, className, tone = "neutral", ref, ...props }) {
8
+ return /* @__PURE__ */ jsx("div", {
9
+ ref,
10
+ "data-slot": "agent-attention",
11
+ "data-tone": tone,
12
+ "data-busy": busy || void 0,
13
+ "aria-busy": busy || void 0,
14
+ className: cx("agent-attention", className),
15
+ ...props
16
+ });
17
+ }
18
+ function AgentAttentionHeading({ description, icon, title }) {
19
+ return /* @__PURE__ */ jsxs(Fragment, { children: [icon ? /* @__PURE__ */ jsx("span", {
20
+ className: "agent-attention__icon",
21
+ "aria-hidden": "true",
22
+ children: icon
23
+ }) : null, /* @__PURE__ */ jsxs("span", {
24
+ className: "agent-attention__text",
25
+ children: [/* @__PURE__ */ jsx("span", {
26
+ className: "agent-attention__title",
27
+ children: title
28
+ }), description ? /* @__PURE__ */ jsx("span", {
29
+ className: "agent-attention__description",
30
+ children: description
31
+ }) : null]
32
+ })] });
33
+ }
34
+ /** Non-interactive heading for attention surfaces with inline content or actions. */
35
+ function AgentAttentionHeader({ className, description, icon, title, ref, ...props }) {
36
+ return /* @__PURE__ */ jsx("div", {
37
+ ref,
38
+ "data-slot": "agent-attention-header",
39
+ className: cx("agent-attention__header", className),
40
+ ...props,
41
+ children: /* @__PURE__ */ jsx(AgentAttentionHeading, {
42
+ icon,
43
+ title,
44
+ description
45
+ })
46
+ });
47
+ }
48
+ /** Whole-surface trigger for opening the owning agent client or disclosure. */
49
+ function AgentAttentionTrigger({ className, description, icon, title, ref, ...props }) {
50
+ return /* @__PURE__ */ jsx(Button, {
51
+ ref,
52
+ type: "button",
53
+ variant: "ghost",
54
+ color: "neutral",
55
+ size: "sm",
56
+ "data-slot": "agent-attention-trigger",
57
+ className: cx("agent-attention__trigger", className),
58
+ ...props,
59
+ children: /* @__PURE__ */ jsx(AgentAttentionHeading, {
60
+ icon,
61
+ title,
62
+ description
63
+ })
64
+ });
65
+ }
66
+ /** Bounded content slot, including an app-owned generated-UI sandbox. */
67
+ function AgentAttentionBody({ className, ref, ...props }) {
68
+ return /* @__PURE__ */ jsx("div", {
69
+ ref,
70
+ "data-slot": "agent-attention-body",
71
+ className: cx("agent-attention__body", className),
72
+ ...props
73
+ });
74
+ }
75
+ /** Product-owned actions; the primitive does not infer approval authority. */
76
+ function AgentAttentionActions({ className, ref, ...props }) {
77
+ return /* @__PURE__ */ jsx("div", {
78
+ ref,
79
+ "data-slot": "agent-attention-actions",
80
+ className: cx("agent-attention__actions", className),
81
+ ...props
82
+ });
83
+ }
84
+ //#endregion
85
+ export { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader, AgentAttentionTrigger };
@@ -1,2 +1,2 @@
1
- import { a as AgentChatRenderPartContext, i as AgentChatRenderMessageContext, n as AgentChatPart, r as AgentChatProps, t as AgentChat } from "../AgentChat-DQkqt82e.js";
2
- export { AgentChat, AgentChatPart, AgentChatProps, AgentChatRenderMessageContext, AgentChatRenderPartContext };
1
+ import { a as AgentChatRenderMessageContext, i as AgentChatProps, n as AgentChatComposerDraft, o as AgentChatRenderPartContext, r as AgentChatPart, s as PermissionModeControl, t as AgentChat } from "../AgentChat-CrlpbvQJ.js";
2
+ export { AgentChat, AgentChatComposerDraft, AgentChatPart, AgentChatProps, AgentChatRenderMessageContext, AgentChatRenderPartContext, PermissionModeControl };