@mcp-b/react-components 0.63.0 → 0.64.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 (484) hide show
  1. package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
  2. package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
  3. package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
  4. package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
  5. package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
  6. package/dist/CodeBlock-dt0L8md0.js +892 -0
  7. package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
  8. package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
  9. package/dist/ExecutionResult-CXnGcmM4.js +671 -0
  10. package/dist/FileTree-CjfzpN6X.js +968 -0
  11. package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
  12. package/dist/ManagerOffice-T79utm-P.js +2469 -0
  13. package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
  14. package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
  15. package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
  16. package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
  17. package/dist/SetupChecklist-DwscX3Bw.js +230 -0
  18. package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
  19. package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
  20. package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
  21. package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
  22. package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
  23. package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
  24. package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
  25. package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
  26. package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
  27. package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
  28. package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
  29. package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
  30. package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
  31. package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
  32. package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
  33. package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
  34. package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
  35. package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
  36. package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
  37. package/dist/assets/desktop/README.md +43 -0
  38. package/dist/assets/desktop/automations.svg +19 -0
  39. package/dist/assets/desktop/document.svg +24 -0
  40. package/dist/assets/desktop/folder.png +0 -0
  41. package/dist/assets/desktop/mail.svg +31 -0
  42. package/dist/assets/desktop/settings.svg +9 -0
  43. package/dist/assets/desktop/trash-full.svg +23 -0
  44. package/dist/assets/desktop/trash.svg +19 -0
  45. package/dist/attachment-preview-DeRqFjdz.js +68 -0
  46. package/dist/attempt-CySQHJsF.js +21 -0
  47. package/dist/command-search-1fjmCBBo.js +34 -0
  48. package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
  49. package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
  50. package/dist/components/agents-sdk/AgentActivity.js +78 -31
  51. package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
  52. package/dist/components/agents-sdk/AgentChat.js +1113 -386
  53. package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
  54. package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
  55. package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
  56. package/dist/components/agents-sdk/AgentComputer.js +8045 -0
  57. package/dist/components/agents-sdk/AgentEvent.js +164 -21
  58. package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
  59. package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
  60. package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
  61. package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
  62. package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
  63. package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
  64. package/dist/components/agents-sdk/BrowserReplay.js +298 -133
  65. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
  66. package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
  67. package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
  68. package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
  69. package/dist/components/agents-sdk/EmployeeApp.js +108 -46
  70. package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
  71. package/dist/components/agents-sdk/EmployeeChat.js +500 -99
  72. package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
  73. package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
  74. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
  75. package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
  76. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
  77. package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
  78. package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
  79. package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
  80. package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
  81. package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
  82. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  83. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  84. package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
  85. package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
  86. package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
  87. package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
  88. package/dist/components/agents-sdk/McpServerIcon.js +57 -14
  89. package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
  90. package/dist/components/agents-sdk/McpServerPicker.js +542 -158
  91. package/dist/components/agents-sdk/ModelSelector.js +1151 -253
  92. package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
  93. package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
  94. package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
  95. package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
  96. package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
  97. package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
  98. package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
  99. package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
  100. package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
  101. package/dist/components/agents-sdk/ThinkChat.js +321 -132
  102. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  103. package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
  104. package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
  105. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
  106. package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
  107. package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
  108. package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
  109. package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
  110. package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
  111. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
  112. package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
  113. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
  114. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
  115. package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
  116. package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
  117. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
  118. package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
  119. package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
  120. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
  121. package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
  122. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  123. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
  124. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  125. package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
  126. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
  127. package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
  128. package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
  129. package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
  130. package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
  131. package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
  132. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  133. package/dist/components/agents-sdk/Workspace.js +491 -166
  134. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  135. package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
  136. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  137. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
  138. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
  139. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
  140. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  141. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  142. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
  143. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
  144. package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
  145. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
  146. package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
  147. package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
  148. package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
  149. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
  150. package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
  151. package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
  152. package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
  153. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
  154. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
  155. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
  156. package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
  157. package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
  158. package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
  159. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
  160. package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
  161. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
  162. package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
  163. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
  164. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  165. package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
  166. package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
  167. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  168. package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
  169. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  170. package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
  171. package/dist/components/ai-sdk/Activity.js +768 -192
  172. package/dist/components/ai-sdk/AgentAttention.js +286 -58
  173. package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
  174. package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
  175. package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
  176. package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
  177. package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
  178. package/dist/components/ai-sdk/Approval.js +574 -172
  179. package/dist/components/ai-sdk/Artifact.d.ts +1 -1
  180. package/dist/components/ai-sdk/Artifact.js +535 -128
  181. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  182. package/dist/components/ai-sdk/ChainOfThought.js +404 -80
  183. package/dist/components/ai-sdk/Checkpoint.js +229 -45
  184. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  185. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  186. package/dist/components/ai-sdk/ComposerLink.js +216 -48
  187. package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
  188. package/dist/components/ai-sdk/Context.js +737 -178
  189. package/dist/components/ai-sdk/Conversation.d.ts +1 -1
  190. package/dist/components/ai-sdk/Conversation.js +305 -68
  191. package/dist/components/ai-sdk/ExpansionState.js +74 -15
  192. package/dist/components/ai-sdk/Goal.js +435 -116
  193. package/dist/components/ai-sdk/InlineCitation.js +313 -76
  194. package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
  195. package/dist/components/ai-sdk/Message.d.ts +1 -1
  196. package/dist/components/ai-sdk/Message.js +1010 -195
  197. package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
  198. package/dist/components/ai-sdk/MessageScroller.js +264 -46
  199. package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
  200. package/dist/components/ai-sdk/Plan.js +639 -128
  201. package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
  202. package/dist/components/ai-sdk/PromptInput.js +2735 -794
  203. package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
  204. package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
  205. package/dist/components/ai-sdk/Queue.js +792 -154
  206. package/dist/components/ai-sdk/Reasoning.js +268 -69
  207. package/dist/components/ai-sdk/Sources.js +226 -63
  208. package/dist/components/ai-sdk/Task.js +294 -71
  209. package/dist/components/ai-sdk/ToolApproval.js +126 -26
  210. package/dist/components/ai-sdk/ToolInvocation.js +112 -22
  211. package/dist/components/extension/ChatGptSignInScreen.js +1 -82
  212. package/dist/components/extension/CodexModelSelector.d.ts +1 -1
  213. package/dist/components/extension/CodexModelSelector.js +467 -146
  214. package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
  215. package/dist/components/extension/ConversationTabPicker.js +254 -76
  216. package/dist/components/extension/FirstRunSetup.d.ts +61 -35
  217. package/dist/components/extension/FirstRunSetup.js +3834 -1012
  218. package/dist/components/foundations/Accordion.js +186 -41
  219. package/dist/components/foundations/AlertDialog.js +425 -97
  220. package/dist/components/foundations/AppIcon.d.ts +13 -13
  221. package/dist/components/foundations/AppIcon.js +183 -34
  222. package/dist/components/foundations/Autocomplete.js +408 -89
  223. package/dist/components/foundations/Avatar.d.ts +100 -2
  224. package/dist/components/foundations/Avatar.js +204 -44
  225. package/dist/components/foundations/Button.js +64 -13
  226. package/dist/components/foundations/Card.js +357 -63
  227. package/dist/components/foundations/Checkbox.js +82 -17
  228. package/dist/components/foundations/CheckboxGroup.js +266 -58
  229. package/dist/components/foundations/Collapsible.d.ts +2 -1
  230. package/dist/components/foundations/Collapsible.js +129 -26
  231. package/dist/components/foundations/Combobox.js +408 -89
  232. package/dist/components/foundations/ContextMenu.d.ts +2 -2
  233. package/dist/components/foundations/ContextMenu.js +591 -117
  234. package/dist/components/foundations/DescriptionList.js +159 -28
  235. package/dist/components/foundations/Dialog.js +373 -89
  236. package/dist/components/foundations/EmptyState.js +86 -23
  237. package/dist/components/foundations/Favicon.d.ts +17 -0
  238. package/dist/components/foundations/Favicon.js +62 -0
  239. package/dist/components/foundations/Field.js +525 -108
  240. package/dist/components/foundations/Fieldset.js +115 -23
  241. package/dist/components/foundations/Form.js +38 -9
  242. package/dist/components/foundations/FormattedDate.d.ts +19 -5
  243. package/dist/components/foundations/FormattedDate.js +82 -12
  244. package/dist/components/foundations/IconButton.d.ts +1 -1
  245. package/dist/components/foundations/IconButton.js +114 -17
  246. package/dist/components/foundations/Input.js +38 -9
  247. package/dist/components/foundations/Kbd.js +55 -10
  248. package/dist/components/foundations/Label.js +56 -12
  249. package/dist/components/foundations/LinkButton.js +67 -15
  250. package/dist/components/foundations/Marker.js +138 -29
  251. package/dist/components/foundations/Menu.d.ts +1 -1
  252. package/dist/components/foundations/Menu.js +634 -136
  253. package/dist/components/foundations/Menubar.d.ts +2 -2
  254. package/dist/components/foundations/Menubar.js +685 -130
  255. package/dist/components/foundations/Meter.js +186 -41
  256. package/dist/components/foundations/NavigationMenu.js +426 -95
  257. package/dist/components/foundations/NumberField.js +223 -49
  258. package/dist/components/foundations/Popover.js +398 -88
  259. package/dist/components/foundations/PreviewCard.js +234 -53
  260. package/dist/components/foundations/Progress.js +117 -25
  261. package/dist/components/foundations/RadioGroup.d.ts +13 -5
  262. package/dist/components/foundations/RadioGroup.js +132 -25
  263. package/dist/components/foundations/ScrollArea.js +230 -51
  264. package/dist/components/foundations/SearchField.d.ts +8 -3
  265. package/dist/components/foundations/SearchField.js +129 -28
  266. package/dist/components/foundations/Select.js +648 -145
  267. package/dist/components/foundations/Separator.js +61 -12
  268. package/dist/components/foundations/Slider.js +260 -57
  269. package/dist/components/foundations/Stepper.d.ts +1 -1
  270. package/dist/components/foundations/Stepper.js +561 -127
  271. package/dist/components/foundations/Switch.js +82 -18
  272. package/dist/components/foundations/Tabs.d.ts +2 -2
  273. package/dist/components/foundations/Tabs.js +282 -53
  274. package/dist/components/foundations/Textarea.js +43 -9
  275. package/dist/components/foundations/ThemeProvider.js +138 -52
  276. package/dist/components/foundations/Toast.d.ts +10 -2
  277. package/dist/components/foundations/Toast.js +322 -75
  278. package/dist/components/foundations/Toggle.d.ts +5 -2
  279. package/dist/components/foundations/Toggle.js +51 -10
  280. package/dist/components/foundations/ToggleGroup.d.ts +3 -3
  281. package/dist/components/foundations/ToggleGroup.js +215 -59
  282. package/dist/components/foundations/Toolbar.js +249 -61
  283. package/dist/components/foundations/Tooltip.d.ts +3 -3
  284. package/dist/components/foundations/Tooltip.js +311 -55
  285. package/dist/components/foundations/TransitionSurface.js +43 -9
  286. package/dist/components/foundations/icons.d.ts +2 -2
  287. package/dist/components/foundations/icons.js +2 -2
  288. package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
  289. package/dist/components/general-purpose/ActionGuide.js +290 -64
  290. package/dist/components/general-purpose/AppFrame.js +72 -14
  291. package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
  292. package/dist/components/general-purpose/AppTopBar.js +349 -60
  293. package/dist/components/general-purpose/BrandLoading.js +37 -9
  294. package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
  295. package/dist/components/general-purpose/CommandPalette.js +271 -0
  296. package/dist/components/general-purpose/Commit.d.ts +1 -1
  297. package/dist/components/general-purpose/Commit.js +937 -167
  298. package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
  299. package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
  300. package/dist/components/general-purpose/FileTree.d.ts +20 -7
  301. package/dist/components/general-purpose/FileTree.js +1 -1
  302. package/dist/components/general-purpose/ListDetail.d.ts +84 -0
  303. package/dist/components/general-purpose/ListDetail.js +423 -0
  304. package/dist/components/general-purpose/NotificationPrompt.js +20 -11
  305. package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
  306. package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
  307. package/dist/components/general-purpose/PricingFAQ.js +53 -12
  308. package/dist/components/general-purpose/PricingPage.js +376 -139
  309. package/dist/components/general-purpose/PricingPlanCard.js +209 -84
  310. package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
  311. package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
  312. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
  313. package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
  314. package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
  315. package/dist/components/general-purpose/ScreenStack.js +427 -0
  316. package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
  317. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  318. package/dist/components/general-purpose/StatusScreen.js +82 -24
  319. package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
  320. package/dist/components/general-purpose/SwipeActions.js +357 -0
  321. package/dist/components/general-purpose/Terminal.d.ts +22 -48
  322. package/dist/components/general-purpose/Terminal.js +320 -174
  323. package/dist/components/general-purpose/TestResults.js +975 -196
  324. package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
  325. package/dist/components/general-purpose/ThemeModeControl.js +66 -23
  326. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
  327. package/dist/components/general-purpose/WallpaperPicker.js +180 -0
  328. package/dist/components/general-purpose/WebPreview.d.ts +5 -7
  329. package/dist/components/general-purpose/WebPreview.js +770 -203
  330. package/dist/components/nanites/AgentConnection.js +323 -84
  331. package/dist/components/nanites/AgentToolDetail.js +233 -53
  332. package/dist/components/nanites/GithubMotionMark.js +37 -9
  333. package/dist/components/nanites/NaniteScene.js +535 -323
  334. package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
  335. package/dist/container-width-C43ccJ84.js +17 -0
  336. package/dist/context-Ddsp8HgD.js +43 -0
  337. package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
  338. package/dist/copy-button-DWBVJR6D.js +118 -0
  339. package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
  340. package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
  341. package/dist/icons-nLTnB9kd.js +470 -0
  342. package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
  343. package/dist/motion-CGM3i6lX.js +319 -0
  344. package/dist/motion-preferences-6qsDIDvH.js +13 -0
  345. package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
  346. package/dist/progress-ring-BO649JA9.js +79 -0
  347. package/dist/provider-logos-Ceu7iYFx.js +362 -0
  348. package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
  349. package/dist/styles/accessibility.css +26 -0
  350. package/dist/styles/accordion.css +0 -2
  351. package/dist/styles/activity.css +20 -12
  352. package/dist/styles/agent-attention.css +31 -10
  353. package/dist/styles/agent-chat.css +7 -6
  354. package/dist/styles/agent-computer-motion-reduction.css +118 -0
  355. package/dist/styles/agent-computer-motion.css +127 -0
  356. package/dist/styles/agent-computer-phone.css +942 -0
  357. package/dist/styles/agent-computer.css +1764 -0
  358. package/dist/styles/agent-connection.css +5 -5
  359. package/dist/styles/agent-screen-switcher.css +313 -0
  360. package/dist/styles/app-icon.css +34 -30
  361. package/dist/styles/app-top-bar.css +33 -18
  362. package/dist/styles/approval.css +3 -3
  363. package/dist/styles/artifact.css +1 -1
  364. package/dist/styles/attachment-preview.css +2 -4
  365. package/dist/styles/avatar.css +12 -14
  366. package/dist/styles/base-ui-motion.css +84 -18
  367. package/dist/styles/base-ui-motion.test.tsx +305 -0
  368. package/dist/styles/base.css +16 -12
  369. package/dist/styles/brand.test.ts +7 -20
  370. package/dist/styles/browser-control-overlay.css +1 -1
  371. package/dist/styles/browser-live-screen.css +2 -2
  372. package/dist/styles/browser-live-view.css +1 -1
  373. package/dist/styles/browser-replay.css +0 -8
  374. package/dist/styles/browser-run-panel.css +275 -37
  375. package/dist/styles/button.css +52 -9
  376. package/dist/styles/card.css +6 -5
  377. package/dist/styles/chain-of-thought.css +0 -10
  378. package/dist/styles/checkpoint.css +2 -2
  379. package/dist/styles/codex-model-selector.css +2 -2
  380. package/dist/styles/color-contrast.test.ts +18 -1
  381. package/dist/styles/command-palette.css +110 -0
  382. package/dist/styles/composer-link.css +11 -7
  383. package/dist/styles/composition-motion.css +3 -14
  384. package/dist/styles/context.css +2 -2
  385. package/dist/styles/conversation-tab-picker.css +7 -0
  386. package/dist/styles/conversation.css +8 -2
  387. package/dist/styles/dialog.css +2 -2
  388. package/dist/styles/employee-app.css +8 -2
  389. package/dist/styles/employee-chrome.css +4 -4
  390. package/dist/styles/execution-board.css +206 -114
  391. package/dist/styles/execution-result.css +2 -2
  392. package/dist/styles/field.css +187 -4
  393. package/dist/styles/file-tree.css +218 -40
  394. package/dist/styles/first-run-setup.css +914 -187
  395. package/dist/styles/github-motion-mark.css +0 -8
  396. package/dist/styles/index.css +145 -133
  397. package/dist/styles/inline-citation.css +5 -4
  398. package/dist/styles/list-detail.css +57 -0
  399. package/dist/styles/manager-office.css +6 -8
  400. package/dist/styles/manager-work.css +4 -2
  401. package/dist/styles/mcp-plugin-catalog.css +2 -2
  402. package/dist/styles/mcp-server-picker.css +3 -6
  403. package/dist/styles/media-preview-card.css +2 -2
  404. package/dist/styles/menu.css +0 -9
  405. package/dist/styles/menubar.css +18 -6
  406. package/dist/styles/message-scroller.css +47 -9
  407. package/dist/styles/message.css +3 -3
  408. package/dist/styles/model-selector.css +1 -1
  409. package/dist/styles/motion-reduction.css +39 -6
  410. package/dist/styles/pricing-page.css +1 -1
  411. package/dist/styles/prompt-input.css +29 -29
  412. package/dist/styles/queue.css +1 -1
  413. package/dist/styles/recipes.css +212 -28
  414. package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
  415. package/dist/styles/responsive-sidebar-shell.css +40 -43
  416. package/dist/styles/screen-stack.css +123 -0
  417. package/dist/styles/search-field.css +80 -3
  418. package/dist/styles/stepper.css +0 -10
  419. package/dist/styles/streamdown.css +2 -2
  420. package/dist/styles/subagent-run.css +9 -5
  421. package/dist/styles/swipe-actions.css +158 -0
  422. package/dist/styles/tabs.css +80 -23
  423. package/dist/styles/task.css +7 -1
  424. package/dist/styles/terminal.css +66 -78
  425. package/dist/styles/test-results.css +1 -19
  426. package/dist/styles/textarea.css +2 -1
  427. package/dist/styles/theme-mode-control.css +154 -26
  428. package/dist/styles/think-chat-tool-panels.css +1 -1
  429. package/dist/styles/think-execution-workbench.css +0 -9
  430. package/dist/styles/think-full-app.css +7 -1
  431. package/dist/styles/think-schedule.css +81 -54
  432. package/dist/styles/think-thread-picker.css +28 -37
  433. package/dist/styles/toast.css +11 -0
  434. package/dist/styles/toggle-group.css +0 -10
  435. package/dist/styles/toggle.css +13 -0
  436. package/dist/styles/tooltip.css +12 -0
  437. package/dist/styles/transition-surface.css +1 -0
  438. package/dist/styles/wallpaper-picker.css +224 -0
  439. package/dist/styles/web-preview.css +47 -18
  440. package/dist/styles/workspace-automation.css +116 -17
  441. package/dist/styles/workspace-concepts.css +1 -1
  442. package/dist/styles/workspace-desktop.css +124 -0
  443. package/dist/styles/workspace-entity-card.css +3 -1
  444. package/dist/styles/workspace-explorer.css +499 -5
  445. package/dist/utils/brand-marks.d.ts +13 -0
  446. package/dist/utils/brand-marks.js +14 -0
  447. package/dist/utils/desktop-artwork.d.ts +17 -0
  448. package/dist/utils/desktop-artwork.js +18 -0
  449. package/dist/utils/favicon.d.ts +6 -2
  450. package/dist/utils/favicon.js +16 -4
  451. package/dist/utils/structured-code.d.ts +1 -1
  452. package/dist/workspace-assets-DdtnBDU3.js +213 -0
  453. package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
  454. package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
  455. package/dist/workspace-delete-BOY6CMBf.js +183 -0
  456. package/dist/workspace-drag-B6hMXUNt.js +304 -0
  457. package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
  458. package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
  459. package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
  460. package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
  461. package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
  462. package/package.json +9 -3
  463. package/dist/Avatar-t1YRzdwB.d.ts +0 -101
  464. package/dist/CodeBlock-DYQdZUH6.js +0 -318
  465. package/dist/ExecutionResult-2fBkpIGN.js +0 -279
  466. package/dist/FileTree-CDLOD643.js +0 -323
  467. package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
  468. package/dist/SetupChecklist-B-iEta9v.js +0 -78
  469. package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
  470. package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
  471. package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
  472. package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
  473. package/dist/attachment-preview-1CXJvrmb.js +0 -25
  474. package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
  475. package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
  476. package/dist/copy-button-DbR932tF.js +0 -45
  477. package/dist/icons-GoybMAB2.js +0 -141
  478. package/dist/progress-ring-L2bbF0ji.js +0 -40
  479. package/dist/provider-logos-DWYY8wNz.js +0 -99
  480. package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
  481. package/dist/workspace-assets-F3r6XltC.js +0 -107
  482. package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
  483. package/dist/workspace-delete-CQvv1eDE.js +0 -81
  484. package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
@@ -1,12 +1,13 @@
1
1
  import { parseComposerHref } from "../../utils/composer-link.js";
2
2
  import { t as cx } from "../../class-names-BiMDVpUo.js";
3
- import { C as FileIcon, i as ArrowRightIcon, r as ArrowLeftIcon } from "../../icons-GoybMAB2.js";
4
- import { n as clamp } from "../../format-CWaZEp5o.js";
3
+ import { O as FileIcon, i as ArrowRightIcon, r as ArrowLeftIcon } from "../../icons-nLTnB9kd.js";
4
+ import { n as clamp } from "../../format-DL7f2rqp.js";
5
5
  import { Button } from "../foundations/Button.js";
6
6
  import { IconButton } from "../foundations/IconButton.js";
7
- import { t as CopyButton } from "../../copy-button-DbR932tF.js";
8
- import { t as AttachmentPreview } from "../../attachment-preview-1CXJvrmb.js";
7
+ import { t as CopyButton } from "../../copy-button-DWBVJR6D.js";
8
+ import { t as AttachmentPreview } from "../../attachment-preview-DeRqFjdz.js";
9
9
  import { ComposerLink } from "./ComposerLink.js";
10
+ import { c } from "react/compiler-runtime";
10
11
  import * as React from "react";
11
12
  import { jsx, jsxs } from "react/jsx-runtime";
12
13
  import { cjk } from "@streamdown/cjk";
@@ -34,172 +35,639 @@ import { Streamdown } from "streamdown";
34
35
  *
35
36
  * @see {@link https://elements.ai-sdk.dev/components/message | AI Elements Message}
36
37
  */
37
- function Message({ className, from = "assistant", children, ref, ...props }) {
38
- return /* @__PURE__ */ jsx("div", {
39
- ref,
40
- className: cx("message", className),
41
- "data-from": from,
42
- ...props,
43
- children
44
- });
38
+ function Message(t0) {
39
+ const $ = c(14);
40
+ let children;
41
+ let className;
42
+ let props;
43
+ let ref;
44
+ let t1;
45
+ if ($[0] !== t0) {
46
+ ({className, from: t1, children, ref, ...props} = t0);
47
+ $[0] = t0;
48
+ $[1] = children;
49
+ $[2] = className;
50
+ $[3] = props;
51
+ $[4] = ref;
52
+ $[5] = t1;
53
+ } else {
54
+ children = $[1];
55
+ className = $[2];
56
+ props = $[3];
57
+ ref = $[4];
58
+ t1 = $[5];
59
+ }
60
+ const from = t1 === void 0 ? "assistant" : t1;
61
+ let t2;
62
+ if ($[6] !== className) {
63
+ t2 = cx("message", className);
64
+ $[6] = className;
65
+ $[7] = t2;
66
+ } else t2 = $[7];
67
+ let t3;
68
+ if ($[8] !== children || $[9] !== from || $[10] !== props || $[11] !== ref || $[12] !== t2) {
69
+ t3 = /* @__PURE__ */ jsx("div", {
70
+ ref,
71
+ className: t2,
72
+ "data-from": from,
73
+ ...props,
74
+ children
75
+ });
76
+ $[8] = children;
77
+ $[9] = from;
78
+ $[10] = props;
79
+ $[11] = ref;
80
+ $[12] = t2;
81
+ $[13] = t3;
82
+ } else t3 = $[13];
83
+ return t3;
45
84
  }
46
85
  /**
47
86
  * The visible bubble/body of a message. Styled differently based on the
48
87
  * parent {@link Message}'s `from` attribute.
49
88
  */
50
- function MessageContent({ className, children, ref, ...props }) {
51
- return /* @__PURE__ */ jsx("div", {
52
- ref,
53
- className: cx("message__content", className),
54
- ...props,
55
- children
56
- });
89
+ function MessageContent(t0) {
90
+ const $ = c(12);
91
+ let children;
92
+ let className;
93
+ let props;
94
+ let ref;
95
+ if ($[0] !== t0) {
96
+ ({className, children, ref, ...props} = t0);
97
+ $[0] = t0;
98
+ $[1] = children;
99
+ $[2] = className;
100
+ $[3] = props;
101
+ $[4] = ref;
102
+ } else {
103
+ children = $[1];
104
+ className = $[2];
105
+ props = $[3];
106
+ ref = $[4];
107
+ }
108
+ let t1;
109
+ if ($[5] !== className) {
110
+ t1 = cx("message__content", className);
111
+ $[5] = className;
112
+ $[6] = t1;
113
+ } else t1 = $[6];
114
+ let t2;
115
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
116
+ t2 = /* @__PURE__ */ jsx("div", {
117
+ ref,
118
+ className: t1,
119
+ ...props,
120
+ children
121
+ });
122
+ $[7] = children;
123
+ $[8] = props;
124
+ $[9] = ref;
125
+ $[10] = t1;
126
+ $[11] = t2;
127
+ } else t2 = $[11];
128
+ return t2;
57
129
  }
58
130
  /** Quiet message metadata and actions shown on hover or keyboard focus. */
59
- function MessageMeta({ className, children, ref, ...props }) {
60
- return /* @__PURE__ */ jsx("div", {
61
- ref,
62
- className: cx("message__meta", className),
63
- ...props,
64
- children
65
- });
131
+ function MessageMeta(t0) {
132
+ const $ = c(12);
133
+ let children;
134
+ let className;
135
+ let props;
136
+ let ref;
137
+ if ($[0] !== t0) {
138
+ ({className, children, ref, ...props} = t0);
139
+ $[0] = t0;
140
+ $[1] = children;
141
+ $[2] = className;
142
+ $[3] = props;
143
+ $[4] = ref;
144
+ } else {
145
+ children = $[1];
146
+ className = $[2];
147
+ props = $[3];
148
+ ref = $[4];
149
+ }
150
+ let t1;
151
+ if ($[5] !== className) {
152
+ t1 = cx("message__meta", className);
153
+ $[5] = className;
154
+ $[6] = t1;
155
+ } else t1 = $[6];
156
+ let t2;
157
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
158
+ t2 = /* @__PURE__ */ jsx("div", {
159
+ ref,
160
+ className: t1,
161
+ ...props,
162
+ children
163
+ });
164
+ $[7] = children;
165
+ $[8] = props;
166
+ $[9] = ref;
167
+ $[10] = t1;
168
+ $[11] = t2;
169
+ } else t2 = $[11];
170
+ return t2;
66
171
  }
67
172
  /** Machine-readable message time with a compact local-time label. */
68
- function MessageTimestamp({ date, className, ...props }) {
69
- return /* @__PURE__ */ jsx("time", {
70
- className: cx("message__timestamp", className),
71
- dateTime: date.toISOString(),
72
- title: date.toLocaleString(),
73
- ...props,
74
- children: date.toLocaleTimeString(void 0, {
173
+ function MessageTimestamp(t0) {
174
+ const $ = c(18);
175
+ let className;
176
+ let date;
177
+ let props;
178
+ if ($[0] !== t0) {
179
+ ({date, className, ...props} = t0);
180
+ $[0] = t0;
181
+ $[1] = className;
182
+ $[2] = date;
183
+ $[3] = props;
184
+ } else {
185
+ className = $[1];
186
+ date = $[2];
187
+ props = $[3];
188
+ }
189
+ let t1;
190
+ if ($[4] !== className) {
191
+ t1 = cx("message__timestamp", className);
192
+ $[4] = className;
193
+ $[5] = t1;
194
+ } else t1 = $[5];
195
+ let t2;
196
+ if ($[6] !== date) {
197
+ t2 = date.toISOString();
198
+ $[6] = date;
199
+ $[7] = t2;
200
+ } else t2 = $[7];
201
+ let t3;
202
+ if ($[8] !== date) {
203
+ t3 = date.toLocaleString();
204
+ $[8] = date;
205
+ $[9] = t3;
206
+ } else t3 = $[9];
207
+ let t4;
208
+ if ($[10] !== date) {
209
+ t4 = date.toLocaleTimeString(void 0, {
75
210
  hour: "numeric",
76
211
  minute: "2-digit"
77
- })
78
- });
212
+ });
213
+ $[10] = date;
214
+ $[11] = t4;
215
+ } else t4 = $[11];
216
+ let t5;
217
+ if ($[12] !== props || $[13] !== t1 || $[14] !== t2 || $[15] !== t3 || $[16] !== t4) {
218
+ t5 = /* @__PURE__ */ jsx("time", {
219
+ className: t1,
220
+ dateTime: t2,
221
+ title: t3,
222
+ ...props,
223
+ children: t4
224
+ });
225
+ $[12] = props;
226
+ $[13] = t1;
227
+ $[14] = t2;
228
+ $[15] = t3;
229
+ $[16] = t4;
230
+ $[17] = t5;
231
+ } else t5 = $[17];
232
+ return t5;
79
233
  }
80
234
  const streamdownPlugins = {
81
235
  cjk,
82
236
  code
83
237
  };
84
- function MessageResponseLink({ href, children, node: _node, ...props }) {
85
- return href && parseComposerHref(href) ? /* @__PURE__ */ jsx(ComposerLink, {
86
- href,
87
- children
88
- }) : /* @__PURE__ */ jsx("a", {
89
- href,
90
- "data-streamdown": "link",
91
- ...props,
92
- children
93
- });
238
+ function MessageResponseLink(t0) {
239
+ const $ = c(8);
240
+ let children;
241
+ let href;
242
+ let props;
243
+ if ($[0] !== t0) {
244
+ const { href: t1, children: t2, node: _node, ...t3 } = t0;
245
+ href = t1;
246
+ children = t2;
247
+ props = t3;
248
+ $[0] = t0;
249
+ $[1] = children;
250
+ $[2] = href;
251
+ $[3] = props;
252
+ } else {
253
+ children = $[1];
254
+ href = $[2];
255
+ props = $[3];
256
+ }
257
+ let t1;
258
+ if ($[4] !== children || $[5] !== href || $[6] !== props) {
259
+ t1 = href && parseComposerHref(href) ? /* @__PURE__ */ jsx(ComposerLink, {
260
+ href,
261
+ children
262
+ }) : /* @__PURE__ */ jsx("a", {
263
+ href,
264
+ "data-streamdown": "link",
265
+ ...props,
266
+ children
267
+ });
268
+ $[4] = children;
269
+ $[5] = href;
270
+ $[6] = props;
271
+ $[7] = t1;
272
+ } else t1 = $[7];
273
+ return t1;
94
274
  }
95
275
  /** A markdown image, marked like Streamdown's own so component images keep their styles. */
96
- function MessageResponseImage({ alt = "", node: _node, ...props }) {
97
- return /* @__PURE__ */ jsx("img", {
98
- alt,
99
- "data-streamdown": "image",
100
- ...props
101
- });
276
+ function MessageResponseImage(t0) {
277
+ const $ = c(6);
278
+ let props;
279
+ let t1;
280
+ if ($[0] !== t0) {
281
+ const { alt: t2, node: _node, ...t3 } = t0;
282
+ t1 = t2;
283
+ props = t3;
284
+ $[0] = t0;
285
+ $[1] = props;
286
+ $[2] = t1;
287
+ } else {
288
+ props = $[1];
289
+ t1 = $[2];
290
+ }
291
+ const alt = t1 === void 0 ? "" : t1;
292
+ let t2;
293
+ if ($[3] !== alt || $[4] !== props) {
294
+ t2 = /* @__PURE__ */ jsx("img", {
295
+ alt,
296
+ "data-streamdown": "image",
297
+ ...props
298
+ });
299
+ $[3] = alt;
300
+ $[4] = props;
301
+ $[5] = t2;
302
+ } else t2 = $[5];
303
+ return t2;
102
304
  }
103
305
  const messageResponseComponents = {
104
306
  img: MessageResponseImage,
105
307
  a: MessageResponseLink
106
308
  };
107
- const MessageResponse = React.memo(function MessageResponse({ className, components, ...props }) {
108
- return /* @__PURE__ */ jsx(Streamdown, {
109
- className: cx("message__response", "sigvelo-reader-text", className),
110
- components: components ? {
309
+ const MessageResponse = React.memo(function MessageResponse(t0) {
310
+ const $ = c(12);
311
+ let className;
312
+ let components;
313
+ let props;
314
+ if ($[0] !== t0) {
315
+ ({className, components, ...props} = t0);
316
+ $[0] = t0;
317
+ $[1] = className;
318
+ $[2] = components;
319
+ $[3] = props;
320
+ } else {
321
+ className = $[1];
322
+ components = $[2];
323
+ props = $[3];
324
+ }
325
+ let t1;
326
+ if ($[4] !== className) {
327
+ t1 = cx("message__response", "sigvelo-reader-text", className);
328
+ $[4] = className;
329
+ $[5] = t1;
330
+ } else t1 = $[5];
331
+ let t2;
332
+ if ($[6] !== components) {
333
+ t2 = components ? {
111
334
  ...messageResponseComponents,
112
335
  ...components
113
- } : messageResponseComponents,
114
- plugins: streamdownPlugins,
115
- ...props
116
- });
336
+ } : messageResponseComponents;
337
+ $[6] = components;
338
+ $[7] = t2;
339
+ } else t2 = $[7];
340
+ let t3;
341
+ if ($[8] !== props || $[9] !== t1 || $[10] !== t2) {
342
+ t3 = /* @__PURE__ */ jsx(Streamdown, {
343
+ className: t1,
344
+ components: t2,
345
+ plugins: streamdownPlugins,
346
+ ...props
347
+ });
348
+ $[8] = props;
349
+ $[9] = t1;
350
+ $[10] = t2;
351
+ $[11] = t3;
352
+ } else t3 = $[11];
353
+ return t3;
117
354
  });
118
355
  /**
119
356
  * A `file` part inside a message: images render inline (click to zoom),
120
357
  * anything else becomes a download chip. Covers both directions — files the
121
358
  * user attached and files the agent emitted.
122
359
  */
123
- function MessageAttachment({ part, className, ...props }) {
360
+ function MessageAttachment(t0) {
361
+ const $ = c(29);
362
+ let className;
363
+ let part;
364
+ let props;
365
+ if ($[0] !== t0) {
366
+ ({part, className, ...props} = t0);
367
+ $[0] = t0;
368
+ $[1] = className;
369
+ $[2] = part;
370
+ $[3] = props;
371
+ } else {
372
+ className = $[1];
373
+ part = $[2];
374
+ props = $[3];
375
+ }
124
376
  const name = part.filename ?? (part.mediaType || "attachment");
125
- if (part.mediaType.startsWith("image/")) return /* @__PURE__ */ jsx(AttachmentPreview, {
126
- url: part.url,
127
- filename: part.filename,
128
- children: /* @__PURE__ */ jsx(Button, {
129
- variant: "ghost",
130
- color: "neutral",
131
- className: cx("message__attachment-zoom", className),
132
- "aria-label": `Preview ${name}`,
133
- ...props,
134
- children: /* @__PURE__ */ jsx("img", {
377
+ if (part.mediaType.startsWith("image/")) {
378
+ const t1 = part.url;
379
+ const t2 = part.filename;
380
+ let t3;
381
+ if ($[4] !== className) {
382
+ t3 = cx("message__attachment-zoom", className);
383
+ $[4] = className;
384
+ $[5] = t3;
385
+ } else t3 = $[5];
386
+ const t4 = `Preview ${name}`;
387
+ const t5 = part.filename ?? "Attached image";
388
+ let t6;
389
+ if ($[6] !== part.url || $[7] !== t5) {
390
+ t6 = /* @__PURE__ */ jsx("img", {
135
391
  className: "message__attachment-image",
136
392
  src: part.url,
137
- alt: part.filename ?? "Attached image"
138
- })
139
- })
140
- });
141
- return /* @__PURE__ */ jsxs("a", {
142
- className: cx("message__attachment", className),
143
- href: part.url,
144
- download: part.filename,
145
- ...props,
146
- children: [/* @__PURE__ */ jsx(FileIcon, { className: "message__attachment-icon" }), /* @__PURE__ */ jsx("span", {
393
+ alt: t5
394
+ });
395
+ $[6] = part.url;
396
+ $[7] = t5;
397
+ $[8] = t6;
398
+ } else t6 = $[8];
399
+ let t7;
400
+ if ($[9] !== props || $[10] !== t3 || $[11] !== t4 || $[12] !== t6) {
401
+ t7 = /* @__PURE__ */ jsx(Button, {
402
+ variant: "ghost",
403
+ color: "neutral",
404
+ className: t3,
405
+ "aria-label": t4,
406
+ ...props,
407
+ children: t6
408
+ });
409
+ $[9] = props;
410
+ $[10] = t3;
411
+ $[11] = t4;
412
+ $[12] = t6;
413
+ $[13] = t7;
414
+ } else t7 = $[13];
415
+ let t8;
416
+ if ($[14] !== part.filename || $[15] !== part.url || $[16] !== t7) {
417
+ t8 = /* @__PURE__ */ jsx(AttachmentPreview, {
418
+ url: t1,
419
+ filename: t2,
420
+ children: t7
421
+ });
422
+ $[14] = part.filename;
423
+ $[15] = part.url;
424
+ $[16] = t7;
425
+ $[17] = t8;
426
+ } else t8 = $[17];
427
+ return t8;
428
+ }
429
+ let t1;
430
+ if ($[18] !== className) {
431
+ t1 = cx("message__attachment", className);
432
+ $[18] = className;
433
+ $[19] = t1;
434
+ } else t1 = $[19];
435
+ let t2;
436
+ if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
437
+ t2 = /* @__PURE__ */ jsx(FileIcon, { className: "message__attachment-icon" });
438
+ $[20] = t2;
439
+ } else t2 = $[20];
440
+ let t3;
441
+ if ($[21] !== name) {
442
+ t3 = /* @__PURE__ */ jsx("span", {
147
443
  className: "message__attachment-name sigvelo-truncate",
148
444
  children: name
149
- })]
150
- });
445
+ });
446
+ $[21] = name;
447
+ $[22] = t3;
448
+ } else t3 = $[22];
449
+ let t4;
450
+ if ($[23] !== part.filename || $[24] !== part.url || $[25] !== props || $[26] !== t1 || $[27] !== t3) {
451
+ t4 = /* @__PURE__ */ jsxs("a", {
452
+ className: t1,
453
+ href: part.url,
454
+ download: part.filename,
455
+ ...props,
456
+ children: [t2, t3]
457
+ });
458
+ $[23] = part.filename;
459
+ $[24] = part.url;
460
+ $[25] = props;
461
+ $[26] = t1;
462
+ $[27] = t3;
463
+ $[28] = t4;
464
+ } else t4 = $[28];
465
+ return t4;
151
466
  }
152
467
  /**
153
468
  * Horizontal list of action buttons (copy, retry, thumbs-up, etc.) shown
154
469
  * alongside or beneath a message.
155
470
  */
156
- function MessageActions({ reserveSpace = false, className, children, ref, ...props }) {
157
- return /* @__PURE__ */ jsx("div", {
158
- ref,
159
- className: cx("message__actions", className),
160
- "data-reserve-space": reserveSpace || void 0,
161
- role: "group",
162
- ...props,
163
- children
164
- });
471
+ function MessageActions(t0) {
472
+ const $ = c(14);
473
+ let children;
474
+ let className;
475
+ let props;
476
+ let ref;
477
+ let t1;
478
+ if ($[0] !== t0) {
479
+ ({reserveSpace: t1, className, children, ref, ...props} = t0);
480
+ $[0] = t0;
481
+ $[1] = children;
482
+ $[2] = className;
483
+ $[3] = props;
484
+ $[4] = ref;
485
+ $[5] = t1;
486
+ } else {
487
+ children = $[1];
488
+ className = $[2];
489
+ props = $[3];
490
+ ref = $[4];
491
+ t1 = $[5];
492
+ }
493
+ const reserveSpace = t1 === void 0 ? false : t1;
494
+ let t2;
495
+ if ($[6] !== className) {
496
+ t2 = cx("message__actions", className);
497
+ $[6] = className;
498
+ $[7] = t2;
499
+ } else t2 = $[7];
500
+ const t3 = reserveSpace || void 0;
501
+ let t4;
502
+ if ($[8] !== children || $[9] !== props || $[10] !== ref || $[11] !== t2 || $[12] !== t3) {
503
+ t4 = /* @__PURE__ */ jsx("div", {
504
+ ref,
505
+ className: t2,
506
+ "data-reserve-space": t3,
507
+ role: "group",
508
+ ...props,
509
+ children
510
+ });
511
+ $[8] = children;
512
+ $[9] = props;
513
+ $[10] = ref;
514
+ $[11] = t2;
515
+ $[12] = t3;
516
+ $[13] = t4;
517
+ } else t4 = $[13];
518
+ return t4;
165
519
  }
166
520
  /**
167
521
  * A single icon button inside {@link MessageActions}. Always has an accessible
168
522
  * name; shows a tooltip on hover/focus when {@link tooltip} is set.
169
523
  */
170
- function MessageAction({ className, label, tooltip, variant = "ghost", color = "neutral", size = "sm", children, ref, ...props }) {
171
- return /* @__PURE__ */ jsx(IconButton, {
172
- ref,
173
- type: "button",
174
- label,
175
- tooltip,
176
- variant,
177
- color,
178
- size,
179
- className: cx("message__action", className),
180
- ...props,
181
- children
182
- });
524
+ function MessageAction(t0) {
525
+ const $ = c(22);
526
+ let children;
527
+ let className;
528
+ let label;
529
+ let props;
530
+ let ref;
531
+ let t1;
532
+ let t2;
533
+ let t3;
534
+ let tooltip;
535
+ if ($[0] !== t0) {
536
+ ({className, label, tooltip, variant: t1, color: t2, size: t3, children, ref, ...props} = t0);
537
+ $[0] = t0;
538
+ $[1] = children;
539
+ $[2] = className;
540
+ $[3] = label;
541
+ $[4] = props;
542
+ $[5] = ref;
543
+ $[6] = t1;
544
+ $[7] = t2;
545
+ $[8] = t3;
546
+ $[9] = tooltip;
547
+ } else {
548
+ children = $[1];
549
+ className = $[2];
550
+ label = $[3];
551
+ props = $[4];
552
+ ref = $[5];
553
+ t1 = $[6];
554
+ t2 = $[7];
555
+ t3 = $[8];
556
+ tooltip = $[9];
557
+ }
558
+ const variant = t1 === void 0 ? "ghost" : t1;
559
+ const color = t2 === void 0 ? "neutral" : t2;
560
+ const size = t3 === void 0 ? "sm" : t3;
561
+ let t4;
562
+ if ($[10] !== className) {
563
+ t4 = cx("message__action", className);
564
+ $[10] = className;
565
+ $[11] = t4;
566
+ } else t4 = $[11];
567
+ let t5;
568
+ if ($[12] !== children || $[13] !== color || $[14] !== label || $[15] !== props || $[16] !== ref || $[17] !== size || $[18] !== t4 || $[19] !== tooltip || $[20] !== variant) {
569
+ t5 = /* @__PURE__ */ jsx(IconButton, {
570
+ ref,
571
+ type: "button",
572
+ label,
573
+ tooltip,
574
+ variant,
575
+ color,
576
+ size,
577
+ className: t4,
578
+ ...props,
579
+ children
580
+ });
581
+ $[12] = children;
582
+ $[13] = color;
583
+ $[14] = label;
584
+ $[15] = props;
585
+ $[16] = ref;
586
+ $[17] = size;
587
+ $[18] = t4;
588
+ $[19] = tooltip;
589
+ $[20] = variant;
590
+ $[21] = t5;
591
+ } else t5 = $[21];
592
+ return t5;
183
593
  }
184
594
  /** Copy a message with the shared clipboard feedback and message action treatment. */
185
- function MessageCopyAction({ className, ...props }) {
186
- return /* @__PURE__ */ jsx(CopyButton, {
187
- className: cx("message__action", className),
188
- ...props
189
- });
595
+ function MessageCopyAction(t0) {
596
+ const $ = c(8);
597
+ let className;
598
+ let props;
599
+ if ($[0] !== t0) {
600
+ ({className, ...props} = t0);
601
+ $[0] = t0;
602
+ $[1] = className;
603
+ $[2] = props;
604
+ } else {
605
+ className = $[1];
606
+ props = $[2];
607
+ }
608
+ let t1;
609
+ if ($[3] !== className) {
610
+ t1 = cx("message__action", className);
611
+ $[3] = className;
612
+ $[4] = t1;
613
+ } else t1 = $[4];
614
+ let t2;
615
+ if ($[5] !== props || $[6] !== t1) {
616
+ t2 = /* @__PURE__ */ jsx(CopyButton, {
617
+ className: t1,
618
+ ...props
619
+ });
620
+ $[5] = props;
621
+ $[6] = t1;
622
+ $[7] = t2;
623
+ } else t2 = $[7];
624
+ return t2;
190
625
  }
191
626
  /**
192
627
  * Horizontal container that places children in a row with space between —
193
628
  * typically a {@link MessageBranchSelector} on one side and
194
629
  * {@link MessageActions} on the other.
195
630
  */
196
- function MessageToolbar({ className, children, ref, ...props }) {
197
- return /* @__PURE__ */ jsx("div", {
198
- ref,
199
- className: cx("message__toolbar", className),
200
- ...props,
201
- children
202
- });
631
+ function MessageToolbar(t0) {
632
+ const $ = c(12);
633
+ let children;
634
+ let className;
635
+ let props;
636
+ let ref;
637
+ if ($[0] !== t0) {
638
+ ({className, children, ref, ...props} = t0);
639
+ $[0] = t0;
640
+ $[1] = children;
641
+ $[2] = className;
642
+ $[3] = props;
643
+ $[4] = ref;
644
+ } else {
645
+ children = $[1];
646
+ className = $[2];
647
+ props = $[3];
648
+ ref = $[4];
649
+ }
650
+ let t1;
651
+ if ($[5] !== className) {
652
+ t1 = cx("message__toolbar", className);
653
+ $[5] = className;
654
+ $[6] = t1;
655
+ } else t1 = $[6];
656
+ let t2;
657
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
658
+ t2 = /* @__PURE__ */ jsx("div", {
659
+ ref,
660
+ className: t1,
661
+ ...props,
662
+ children
663
+ });
664
+ $[7] = children;
665
+ $[8] = props;
666
+ $[9] = ref;
667
+ $[10] = t1;
668
+ $[11] = t2;
669
+ } else t2 = $[11];
670
+ return t2;
203
671
  }
204
672
  const MessageBranchContext = React.createContext(null);
205
673
  function useMessageBranch(component) {
@@ -212,117 +680,464 @@ function useMessageBranch(component) {
212
680
  * branch is active and exposes navigation through {@link MessageBranchSelector},
213
681
  * {@link MessageBranchPrevious}, {@link MessageBranchNext}, and {@link MessageBranchPage}.
214
682
  */
215
- function MessageBranch({ className, branchCount, defaultBranch = 0, branch, onBranchChange, children, ref, ...props }) {
683
+ function MessageBranch(t0) {
684
+ const $ = c(26);
685
+ let branch;
686
+ let branchCount;
687
+ let children;
688
+ let className;
689
+ let onBranchChange;
690
+ let props;
691
+ let ref;
692
+ let t1;
693
+ if ($[0] !== t0) {
694
+ ({className, branchCount, defaultBranch: t1, branch, onBranchChange, children, ref, ...props} = t0);
695
+ $[0] = t0;
696
+ $[1] = branch;
697
+ $[2] = branchCount;
698
+ $[3] = children;
699
+ $[4] = className;
700
+ $[5] = onBranchChange;
701
+ $[6] = props;
702
+ $[7] = ref;
703
+ $[8] = t1;
704
+ } else {
705
+ branch = $[1];
706
+ branchCount = $[2];
707
+ children = $[3];
708
+ className = $[4];
709
+ onBranchChange = $[5];
710
+ props = $[6];
711
+ ref = $[7];
712
+ t1 = $[8];
713
+ }
714
+ const defaultBranch = t1 === void 0 ? 0 : t1;
216
715
  const [internalIndex, setInternalIndex] = React.useState(defaultBranch);
217
716
  const isControlled = branch !== void 0;
218
717
  const branchIndex = isControlled ? branch : internalIndex;
219
- const setBranchIndex = React.useCallback((next) => {
220
- if (!isControlled) setInternalIndex(next);
221
- onBranchChange?.(next);
222
- }, [isControlled, onBranchChange]);
223
- const ctx = React.useMemo(() => ({
224
- branchIndex,
225
- branchCount,
226
- setBranchIndex
227
- }), [
228
- branchCount,
229
- branchIndex,
230
- setBranchIndex
231
- ]);
232
- return /* @__PURE__ */ jsx(MessageBranchContext.Provider, {
233
- value: ctx,
234
- children: /* @__PURE__ */ jsx("div", {
718
+ let t2;
719
+ if ($[9] !== isControlled || $[10] !== onBranchChange) {
720
+ t2 = (next) => {
721
+ if (!isControlled) setInternalIndex(next);
722
+ onBranchChange?.(next);
723
+ };
724
+ $[9] = isControlled;
725
+ $[10] = onBranchChange;
726
+ $[11] = t2;
727
+ } else t2 = $[11];
728
+ const setBranchIndex = t2;
729
+ let t3;
730
+ if ($[12] !== branchCount || $[13] !== branchIndex || $[14] !== setBranchIndex) {
731
+ t3 = {
732
+ branchIndex,
733
+ branchCount,
734
+ setBranchIndex
735
+ };
736
+ $[12] = branchCount;
737
+ $[13] = branchIndex;
738
+ $[14] = setBranchIndex;
739
+ $[15] = t3;
740
+ } else t3 = $[15];
741
+ const ctx = t3;
742
+ let t4;
743
+ if ($[16] !== className) {
744
+ t4 = cx("message__branch", className);
745
+ $[16] = className;
746
+ $[17] = t4;
747
+ } else t4 = $[17];
748
+ let t5;
749
+ if ($[18] !== children || $[19] !== props || $[20] !== ref || $[21] !== t4) {
750
+ t5 = /* @__PURE__ */ jsx("div", {
235
751
  ref,
236
- className: cx("message__branch", className),
752
+ className: t4,
237
753
  ...props,
238
754
  children
239
- })
240
- });
755
+ });
756
+ $[18] = children;
757
+ $[19] = props;
758
+ $[20] = ref;
759
+ $[21] = t4;
760
+ $[22] = t5;
761
+ } else t5 = $[22];
762
+ let t6;
763
+ if ($[23] !== ctx || $[24] !== t5) {
764
+ t6 = /* @__PURE__ */ jsx(MessageBranchContext.Provider, {
765
+ value: ctx,
766
+ children: t5
767
+ });
768
+ $[23] = ctx;
769
+ $[24] = t5;
770
+ $[25] = t6;
771
+ } else t6 = $[25];
772
+ return t6;
241
773
  }
242
774
  /**
243
775
  * Renders only the active branch's child. Expects siblings to represent
244
776
  * alternative versions of the same response.
245
777
  */
246
- function MessageBranchContent({ className, children, ref, ...props }) {
778
+ function MessageBranchContent(t0) {
779
+ const $ = c(23);
780
+ let children;
781
+ let className;
782
+ let props;
783
+ let ref;
784
+ if ($[0] !== t0) {
785
+ ({className, children, ref, ...props} = t0);
786
+ $[0] = t0;
787
+ $[1] = children;
788
+ $[2] = className;
789
+ $[3] = props;
790
+ $[4] = ref;
791
+ } else {
792
+ children = $[1];
793
+ className = $[2];
794
+ props = $[3];
795
+ ref = $[4];
796
+ }
247
797
  const { branchIndex } = useMessageBranch("MessageBranchContent");
248
- const items = React.Children.toArray(children);
249
- const safeIndex = items.length === 0 ? 0 : clamp(branchIndex, 0, items.length - 1);
250
- return /* @__PURE__ */ jsx("div", {
251
- ref,
252
- className: cx("message__branch-content", className),
253
- ...props,
254
- children: React.Children.map(items, (item, index) => /* @__PURE__ */ jsx("div", {
255
- className: "message__branch-panel",
256
- hidden: index !== safeIndex,
257
- children: item
258
- }))
259
- });
798
+ let t1;
799
+ let t2;
800
+ let t3;
801
+ let t4;
802
+ if ($[5] !== branchIndex || $[6] !== children || $[7] !== className || $[8] !== props || $[9] !== ref) {
803
+ const items = React.Children.toArray(children);
804
+ const safeIndex = items.length === 0 ? 0 : clamp(branchIndex, 0, items.length - 1);
805
+ t1 = ref;
806
+ if ($[14] !== className) {
807
+ t2 = cx("message__branch-content", className);
808
+ $[14] = className;
809
+ $[15] = t2;
810
+ } else t2 = $[15];
811
+ t3 = props;
812
+ let t5;
813
+ if ($[16] !== safeIndex) {
814
+ t5 = (item, index) => /* @__PURE__ */ jsx("div", {
815
+ className: "message__branch-panel",
816
+ hidden: index !== safeIndex,
817
+ children: item
818
+ });
819
+ $[16] = safeIndex;
820
+ $[17] = t5;
821
+ } else t5 = $[17];
822
+ t4 = React.Children.map(items, t5);
823
+ $[5] = branchIndex;
824
+ $[6] = children;
825
+ $[7] = className;
826
+ $[8] = props;
827
+ $[9] = ref;
828
+ $[10] = t1;
829
+ $[11] = t2;
830
+ $[12] = t3;
831
+ $[13] = t4;
832
+ } else {
833
+ t1 = $[10];
834
+ t2 = $[11];
835
+ t3 = $[12];
836
+ t4 = $[13];
837
+ }
838
+ let t5;
839
+ if ($[18] !== t1 || $[19] !== t2 || $[20] !== t3 || $[21] !== t4) {
840
+ t5 = /* @__PURE__ */ jsx("div", {
841
+ ref: t1,
842
+ className: t2,
843
+ ...t3,
844
+ children: t4
845
+ });
846
+ $[18] = t1;
847
+ $[19] = t2;
848
+ $[20] = t3;
849
+ $[21] = t4;
850
+ $[22] = t5;
851
+ } else t5 = $[22];
852
+ return t5;
260
853
  }
261
854
  /**
262
855
  * Inline group containing branch navigation controls (previous / page /
263
856
  * next). Hidden automatically when there is only one branch.
264
857
  */
265
- function MessageBranchSelector({ className, children, ref, ...props }) {
858
+ function MessageBranchSelector(t0) {
859
+ const $ = c(12);
860
+ let children;
861
+ let className;
862
+ let props;
863
+ let ref;
864
+ if ($[0] !== t0) {
865
+ ({className, children, ref, ...props} = t0);
866
+ $[0] = t0;
867
+ $[1] = children;
868
+ $[2] = className;
869
+ $[3] = props;
870
+ $[4] = ref;
871
+ } else {
872
+ children = $[1];
873
+ className = $[2];
874
+ props = $[3];
875
+ ref = $[4];
876
+ }
266
877
  const { branchCount } = useMessageBranch("MessageBranchSelector");
267
878
  if (branchCount <= 1) return null;
268
- return /* @__PURE__ */ jsx("div", {
269
- ref,
270
- className: cx("message__branch-selector", className),
271
- ...props,
272
- children
273
- });
879
+ let t1;
880
+ if ($[5] !== className) {
881
+ t1 = cx("message__branch-selector", className);
882
+ $[5] = className;
883
+ $[6] = t1;
884
+ } else t1 = $[6];
885
+ let t2;
886
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
887
+ t2 = /* @__PURE__ */ jsx("div", {
888
+ ref,
889
+ className: t1,
890
+ ...props,
891
+ children
892
+ });
893
+ $[7] = children;
894
+ $[8] = props;
895
+ $[9] = ref;
896
+ $[10] = t1;
897
+ $[11] = t2;
898
+ } else t2 = $[11];
899
+ return t2;
274
900
  }
275
901
  /** Button that selects the previous branch. Disabled at the first branch. */
276
- function MessageBranchPrevious({ className, label = "Previous response", variant = "ghost", color = "neutral", size = "sm", children, onClick, ref, ...props }) {
902
+ function MessageBranchPrevious(t0) {
903
+ const $ = c(30);
904
+ let children;
905
+ let className;
906
+ let onClick;
907
+ let props;
908
+ let ref;
909
+ let t1;
910
+ let t2;
911
+ let t3;
912
+ let t4;
913
+ if ($[0] !== t0) {
914
+ ({className, label: t1, variant: t2, color: t3, size: t4, children, onClick, ref, ...props} = t0);
915
+ $[0] = t0;
916
+ $[1] = children;
917
+ $[2] = className;
918
+ $[3] = onClick;
919
+ $[4] = props;
920
+ $[5] = ref;
921
+ $[6] = t1;
922
+ $[7] = t2;
923
+ $[8] = t3;
924
+ $[9] = t4;
925
+ } else {
926
+ children = $[1];
927
+ className = $[2];
928
+ onClick = $[3];
929
+ props = $[4];
930
+ ref = $[5];
931
+ t1 = $[6];
932
+ t2 = $[7];
933
+ t3 = $[8];
934
+ t4 = $[9];
935
+ }
936
+ const label = t1 === void 0 ? "Previous response" : t1;
937
+ const variant = t2 === void 0 ? "ghost" : t2;
938
+ const color = t3 === void 0 ? "neutral" : t3;
939
+ const size = t4 === void 0 ? "sm" : t4;
277
940
  const { branchIndex, branchCount, setBranchIndex } = useMessageBranch("MessageBranchPrevious");
278
- return /* @__PURE__ */ jsx(IconButton, {
279
- ref,
280
- type: "button",
281
- label,
282
- variant,
283
- color,
284
- size,
285
- disabled: branchCount <= 1,
286
- className: cx("message__branch-prev", className),
287
- onClick: (event) => {
941
+ const t5 = branchCount <= 1;
942
+ let t6;
943
+ if ($[10] !== className) {
944
+ t6 = cx("message__branch-prev", className);
945
+ $[10] = className;
946
+ $[11] = t6;
947
+ } else t6 = $[11];
948
+ let t7;
949
+ if ($[12] !== branchCount || $[13] !== branchIndex || $[14] !== onClick || $[15] !== setBranchIndex) {
950
+ t7 = (event) => {
288
951
  onClick?.(event);
289
952
  if (!event.defaultPrevented) setBranchIndex(branchIndex > 0 ? branchIndex - 1 : branchCount - 1);
290
- },
291
- ...props,
292
- children: children ?? /* @__PURE__ */ jsx(ArrowLeftIcon, {})
293
- });
953
+ };
954
+ $[12] = branchCount;
955
+ $[13] = branchIndex;
956
+ $[14] = onClick;
957
+ $[15] = setBranchIndex;
958
+ $[16] = t7;
959
+ } else t7 = $[16];
960
+ let t8;
961
+ if ($[17] !== children) {
962
+ t8 = children ?? /* @__PURE__ */ jsx(ArrowLeftIcon, {});
963
+ $[17] = children;
964
+ $[18] = t8;
965
+ } else t8 = $[18];
966
+ let t9;
967
+ if ($[19] !== color || $[20] !== label || $[21] !== props || $[22] !== ref || $[23] !== size || $[24] !== t5 || $[25] !== t6 || $[26] !== t7 || $[27] !== t8 || $[28] !== variant) {
968
+ t9 = /* @__PURE__ */ jsx(IconButton, {
969
+ ref,
970
+ type: "button",
971
+ label,
972
+ variant,
973
+ color,
974
+ size,
975
+ disabled: t5,
976
+ className: t6,
977
+ onClick: t7,
978
+ ...props,
979
+ children: t8
980
+ });
981
+ $[19] = color;
982
+ $[20] = label;
983
+ $[21] = props;
984
+ $[22] = ref;
985
+ $[23] = size;
986
+ $[24] = t5;
987
+ $[25] = t6;
988
+ $[26] = t7;
989
+ $[27] = t8;
990
+ $[28] = variant;
991
+ $[29] = t9;
992
+ } else t9 = $[29];
993
+ return t9;
294
994
  }
295
995
  /** Button that selects the next branch. Disabled at the last branch. */
296
- function MessageBranchNext({ className, label = "Next response", variant = "ghost", color = "neutral", size = "sm", children, onClick, ref, ...props }) {
996
+ function MessageBranchNext(t0) {
997
+ const $ = c(30);
998
+ let children;
999
+ let className;
1000
+ let onClick;
1001
+ let props;
1002
+ let ref;
1003
+ let t1;
1004
+ let t2;
1005
+ let t3;
1006
+ let t4;
1007
+ if ($[0] !== t0) {
1008
+ ({className, label: t1, variant: t2, color: t3, size: t4, children, onClick, ref, ...props} = t0);
1009
+ $[0] = t0;
1010
+ $[1] = children;
1011
+ $[2] = className;
1012
+ $[3] = onClick;
1013
+ $[4] = props;
1014
+ $[5] = ref;
1015
+ $[6] = t1;
1016
+ $[7] = t2;
1017
+ $[8] = t3;
1018
+ $[9] = t4;
1019
+ } else {
1020
+ children = $[1];
1021
+ className = $[2];
1022
+ onClick = $[3];
1023
+ props = $[4];
1024
+ ref = $[5];
1025
+ t1 = $[6];
1026
+ t2 = $[7];
1027
+ t3 = $[8];
1028
+ t4 = $[9];
1029
+ }
1030
+ const label = t1 === void 0 ? "Next response" : t1;
1031
+ const variant = t2 === void 0 ? "ghost" : t2;
1032
+ const color = t3 === void 0 ? "neutral" : t3;
1033
+ const size = t4 === void 0 ? "sm" : t4;
297
1034
  const { branchIndex, branchCount, setBranchIndex } = useMessageBranch("MessageBranchNext");
298
- return /* @__PURE__ */ jsx(IconButton, {
299
- ref,
300
- type: "button",
301
- label,
302
- variant,
303
- color,
304
- size,
305
- disabled: branchCount <= 1,
306
- className: cx("message__branch-next", className),
307
- onClick: (event) => {
1035
+ const t5 = branchCount <= 1;
1036
+ let t6;
1037
+ if ($[10] !== className) {
1038
+ t6 = cx("message__branch-next", className);
1039
+ $[10] = className;
1040
+ $[11] = t6;
1041
+ } else t6 = $[11];
1042
+ let t7;
1043
+ if ($[12] !== branchCount || $[13] !== branchIndex || $[14] !== onClick || $[15] !== setBranchIndex) {
1044
+ t7 = (event) => {
308
1045
  onClick?.(event);
309
1046
  if (!event.defaultPrevented) setBranchIndex(branchIndex < branchCount - 1 ? branchIndex + 1 : 0);
310
- },
311
- ...props,
312
- children: children ?? /* @__PURE__ */ jsx(ArrowRightIcon, {})
313
- });
1047
+ };
1048
+ $[12] = branchCount;
1049
+ $[13] = branchIndex;
1050
+ $[14] = onClick;
1051
+ $[15] = setBranchIndex;
1052
+ $[16] = t7;
1053
+ } else t7 = $[16];
1054
+ let t8;
1055
+ if ($[17] !== children) {
1056
+ t8 = children ?? /* @__PURE__ */ jsx(ArrowRightIcon, {});
1057
+ $[17] = children;
1058
+ $[18] = t8;
1059
+ } else t8 = $[18];
1060
+ let t9;
1061
+ if ($[19] !== color || $[20] !== label || $[21] !== props || $[22] !== ref || $[23] !== size || $[24] !== t5 || $[25] !== t6 || $[26] !== t7 || $[27] !== t8 || $[28] !== variant) {
1062
+ t9 = /* @__PURE__ */ jsx(IconButton, {
1063
+ ref,
1064
+ type: "button",
1065
+ label,
1066
+ variant,
1067
+ color,
1068
+ size,
1069
+ disabled: t5,
1070
+ className: t6,
1071
+ onClick: t7,
1072
+ ...props,
1073
+ children: t8
1074
+ });
1075
+ $[19] = color;
1076
+ $[20] = label;
1077
+ $[21] = props;
1078
+ $[22] = ref;
1079
+ $[23] = size;
1080
+ $[24] = t5;
1081
+ $[25] = t6;
1082
+ $[26] = t7;
1083
+ $[27] = t8;
1084
+ $[28] = variant;
1085
+ $[29] = t9;
1086
+ } else t9 = $[29];
1087
+ return t9;
314
1088
  }
315
1089
  /** Page indicator (e.g. "1 / 3") for the current branch selection. */
316
- function MessageBranchPage({ className, format, ref, ...props }) {
1090
+ function MessageBranchPage(t0) {
1091
+ const $ = c(16);
1092
+ let className;
1093
+ let format;
1094
+ let props;
1095
+ let ref;
1096
+ if ($[0] !== t0) {
1097
+ ({className, format, ref, ...props} = t0);
1098
+ $[0] = t0;
1099
+ $[1] = className;
1100
+ $[2] = format;
1101
+ $[3] = props;
1102
+ $[4] = ref;
1103
+ } else {
1104
+ className = $[1];
1105
+ format = $[2];
1106
+ props = $[3];
1107
+ ref = $[4];
1108
+ }
317
1109
  const { branchIndex, branchCount } = useMessageBranch("MessageBranchPage");
318
- const label = format ? format(branchIndex + 1, branchCount) : `${branchIndex + 1} / ${branchCount}`;
319
- return /* @__PURE__ */ jsx("span", {
320
- ref,
321
- className: cx("message__branch-page", className),
322
- "aria-live": "polite",
323
- ...props,
324
- children: label
325
- });
1110
+ let t1;
1111
+ if ($[5] !== branchCount || $[6] !== branchIndex || $[7] !== format) {
1112
+ t1 = format ? format(branchIndex + 1, branchCount) : `${branchIndex + 1} / ${branchCount}`;
1113
+ $[5] = branchCount;
1114
+ $[6] = branchIndex;
1115
+ $[7] = format;
1116
+ $[8] = t1;
1117
+ } else t1 = $[8];
1118
+ const label = t1;
1119
+ let t2;
1120
+ if ($[9] !== className) {
1121
+ t2 = cx("message__branch-page", className);
1122
+ $[9] = className;
1123
+ $[10] = t2;
1124
+ } else t2 = $[10];
1125
+ let t3;
1126
+ if ($[11] !== label || $[12] !== props || $[13] !== ref || $[14] !== t2) {
1127
+ t3 = /* @__PURE__ */ jsx("span", {
1128
+ ref,
1129
+ className: t2,
1130
+ "aria-live": "polite",
1131
+ ...props,
1132
+ children: label
1133
+ });
1134
+ $[11] = label;
1135
+ $[12] = props;
1136
+ $[13] = ref;
1137
+ $[14] = t2;
1138
+ $[15] = t3;
1139
+ } else t3 = $[15];
1140
+ return t3;
326
1141
  }
327
1142
  //#endregion
328
1143
  export { Message, MessageAction, MessageActions, MessageAttachment, MessageBranch, MessageBranchContent, MessageBranchNext, MessageBranchPage, MessageBranchPrevious, MessageBranchSelector, MessageContent, MessageCopyAction, MessageMeta, MessageResponse, MessageTimestamp, MessageToolbar };