@mcp-b/react-components 0.63.0 → 0.64.1

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 +100 -36
  217. package/dist/components/extension/FirstRunSetup.js +3974 -1016
  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
@@ -0,0 +1,892 @@
1
+ import { t as cx } from "./class-names-BiMDVpUo.js";
2
+ import { Select } from "./components/foundations/Select.js";
3
+ import { t as CopyButton } from "./copy-button-DWBVJR6D.js";
4
+ import { c } from "react/compiler-runtime";
5
+ import * as React from "react";
6
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
+ import { createHighlighter } from "shiki";
8
+ //#region src/components/_internal/shiki.ts
9
+ const CODE_BLOCK_LANGUAGES = [
10
+ "ts",
11
+ "tsx",
12
+ "js",
13
+ "jsx",
14
+ "css",
15
+ "html",
16
+ "json",
17
+ "bash",
18
+ "md"
19
+ ];
20
+ const SHIKI_LANGS = [
21
+ "typescript",
22
+ "tsx",
23
+ "javascript",
24
+ "jsx",
25
+ "css",
26
+ "html",
27
+ "json",
28
+ "bash",
29
+ "markdown"
30
+ ];
31
+ const LANG_ALIAS = {
32
+ ts: "typescript",
33
+ tsx: "tsx",
34
+ js: "javascript",
35
+ jsx: "jsx",
36
+ css: "css",
37
+ html: "html",
38
+ json: "json",
39
+ bash: "bash",
40
+ md: "markdown"
41
+ };
42
+ let highlighterPromise = null;
43
+ /**
44
+ * Returns a cached Shiki highlighter instance with both light and dark themes.
45
+ * Extra languages are loaded lazily by `loadShikiLanguage`.
46
+ */
47
+ function getHighlighterInstance() {
48
+ highlighterPromise ??= createHighlighter({
49
+ themes: ["github-light-high-contrast", "github-dark-high-contrast"],
50
+ langs: SHIKI_LANGS
51
+ });
52
+ return highlighterPromise;
53
+ }
54
+ /**
55
+ * Loads a Shiki bundled language if it is not already available.
56
+ */
57
+ async function loadShikiLanguage(highlighter, lang) {
58
+ if (lang === "text") return lang;
59
+ const shikiLang = toShikiLang(lang);
60
+ if (!highlighter.getLoadedLanguages().includes(shikiLang)) await highlighter.loadLanguage(shikiLang);
61
+ return shikiLang;
62
+ }
63
+ function toShikiLang(lang) {
64
+ return LANG_ALIAS[lang] ?? lang;
65
+ }
66
+ //#endregion
67
+ //#region src/components/ai-sdk/CodeBlock.tsx
68
+ const CodeBlockContext = React.createContext(null);
69
+ function useCodeBlockContext() {
70
+ const ctx = React.useContext(CodeBlockContext);
71
+ if (!ctx) throw new Error("CodeBlock subcomponents must be used inside <CodeBlock>.");
72
+ return ctx;
73
+ }
74
+ function renderPlainCode(code, showLineNumbers) {
75
+ if (!showLineNumbers) return code;
76
+ return code.split("\n").map((line, index) => /* @__PURE__ */ jsx("span", {
77
+ className: "line",
78
+ children: line || " "
79
+ }, `${index}-${line}`));
80
+ }
81
+ /**
82
+ * A syntax-highlighted code block powered by Shiki. Supports line numbers,
83
+ * inline language switching, and a copy-to-clipboard action.
84
+ * The root supplies context and its outer surface: compose CodeBlockContainer and
85
+ * CodeBlockContent explicitly, alongside any optional header and actions.
86
+ *
87
+ * Supports Shiki bundled language names plus the short aliases in
88
+ * `CODE_BLOCK_LANGUAGES`. The highlighter is loaded lazily on first render and
89
+ * cached at module scope. Adapted from Vercel AI Elements and restyled with
90
+ * Sigvelo CSS tokens.
91
+ *
92
+ * @example
93
+ * ```tsx
94
+ * <CodeBlock code={"const x = 42;"} language="ts">
95
+ * <CodeBlockHeader>
96
+ * <CodeBlockFilename>example.ts</CodeBlockFilename>
97
+ * <CodeBlockActions>
98
+ * <CodeBlockCopyButton />
99
+ * </CodeBlockActions>
100
+ * </CodeBlockHeader>
101
+ * <CodeBlockContainer>
102
+ * <CodeBlockContent />
103
+ * </CodeBlockContainer>
104
+ * </CodeBlock>
105
+ * ```
106
+ *
107
+ * @see {@link https://elements.ai-sdk.dev/components/code-block | AI Elements Code Block}
108
+ */
109
+ function CodeBlock(t0) {
110
+ const $ = c(6);
111
+ let language;
112
+ let props;
113
+ if ($[0] !== t0) {
114
+ ({language, ...props} = t0);
115
+ $[0] = t0;
116
+ $[1] = language;
117
+ $[2] = props;
118
+ } else {
119
+ language = $[1];
120
+ props = $[2];
121
+ }
122
+ let t1;
123
+ if ($[3] !== language || $[4] !== props) {
124
+ t1 = /* @__PURE__ */ jsx(CodeBlockState, {
125
+ language,
126
+ ...props
127
+ }, language);
128
+ $[3] = language;
129
+ $[4] = props;
130
+ $[5] = t1;
131
+ } else t1 = $[5];
132
+ return t1;
133
+ }
134
+ function CodeBlockState(t0) {
135
+ const $ = c(32);
136
+ let children;
137
+ let className;
138
+ let code;
139
+ let language;
140
+ let onLanguageChange;
141
+ let props;
142
+ let ref;
143
+ let t1;
144
+ let t2;
145
+ let t3;
146
+ let t4;
147
+ if ($[0] !== t0) {
148
+ ({surface: t1, wrap: t2, className, code, language, showLineNumbers: t3, isStreaming: t4, onLanguageChange, children, ref, ...props} = t0);
149
+ $[0] = t0;
150
+ $[1] = children;
151
+ $[2] = className;
152
+ $[3] = code;
153
+ $[4] = language;
154
+ $[5] = onLanguageChange;
155
+ $[6] = props;
156
+ $[7] = ref;
157
+ $[8] = t1;
158
+ $[9] = t2;
159
+ $[10] = t3;
160
+ $[11] = t4;
161
+ } else {
162
+ children = $[1];
163
+ className = $[2];
164
+ code = $[3];
165
+ language = $[4];
166
+ onLanguageChange = $[5];
167
+ props = $[6];
168
+ ref = $[7];
169
+ t1 = $[8];
170
+ t2 = $[9];
171
+ t3 = $[10];
172
+ t4 = $[11];
173
+ }
174
+ const surface = t1 === void 0 ? "subtle" : t1;
175
+ const wrap = t2 === void 0 ? false : t2;
176
+ const showLineNumbers = t3 === void 0 ? false : t3;
177
+ const isStreaming = t4 === void 0 ? false : t4;
178
+ const [internalLanguage, setInternalLanguage] = React.useState(language);
179
+ let t5;
180
+ if ($[12] !== onLanguageChange) {
181
+ t5 = (next) => {
182
+ setInternalLanguage(next);
183
+ onLanguageChange?.(next);
184
+ };
185
+ $[12] = onLanguageChange;
186
+ $[13] = t5;
187
+ } else t5 = $[13];
188
+ const setLanguage = t5;
189
+ let t6;
190
+ if ($[14] !== code || $[15] !== internalLanguage || $[16] !== isStreaming || $[17] !== setLanguage || $[18] !== showLineNumbers) {
191
+ t6 = {
192
+ code,
193
+ language: internalLanguage,
194
+ setLanguage,
195
+ showLineNumbers,
196
+ isStreaming
197
+ };
198
+ $[14] = code;
199
+ $[15] = internalLanguage;
200
+ $[16] = isStreaming;
201
+ $[17] = setLanguage;
202
+ $[18] = showLineNumbers;
203
+ $[19] = t6;
204
+ } else t6 = $[19];
205
+ const ctxValue = t6;
206
+ let t7;
207
+ if ($[20] !== className) {
208
+ t7 = cx("code-block", className);
209
+ $[20] = className;
210
+ $[21] = t7;
211
+ } else t7 = $[21];
212
+ const t8 = wrap || void 0;
213
+ let t9;
214
+ if ($[22] !== children || $[23] !== props || $[24] !== ref || $[25] !== surface || $[26] !== t7 || $[27] !== t8) {
215
+ t9 = /* @__PURE__ */ jsx("div", {
216
+ ref,
217
+ className: t7,
218
+ "data-surface": surface,
219
+ "data-wrap": t8,
220
+ ...props,
221
+ children
222
+ });
223
+ $[22] = children;
224
+ $[23] = props;
225
+ $[24] = ref;
226
+ $[25] = surface;
227
+ $[26] = t7;
228
+ $[27] = t8;
229
+ $[28] = t9;
230
+ } else t9 = $[28];
231
+ let t10;
232
+ if ($[29] !== ctxValue || $[30] !== t9) {
233
+ t10 = /* @__PURE__ */ jsx(CodeBlockContext.Provider, {
234
+ value: ctxValue,
235
+ children: t9
236
+ });
237
+ $[29] = ctxValue;
238
+ $[30] = t9;
239
+ $[31] = t10;
240
+ } else t10 = $[31];
241
+ return t10;
242
+ }
243
+ function CodeBlockHeader(t0) {
244
+ const $ = c(12);
245
+ let children;
246
+ let className;
247
+ let props;
248
+ let ref;
249
+ if ($[0] !== t0) {
250
+ ({className, children, ref, ...props} = t0);
251
+ $[0] = t0;
252
+ $[1] = children;
253
+ $[2] = className;
254
+ $[3] = props;
255
+ $[4] = ref;
256
+ } else {
257
+ children = $[1];
258
+ className = $[2];
259
+ props = $[3];
260
+ ref = $[4];
261
+ }
262
+ let t1;
263
+ if ($[5] !== className) {
264
+ t1 = cx("code-block__header", className);
265
+ $[5] = className;
266
+ $[6] = t1;
267
+ } else t1 = $[6];
268
+ let t2;
269
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
270
+ t2 = /* @__PURE__ */ jsx("div", {
271
+ ref,
272
+ className: t1,
273
+ ...props,
274
+ children
275
+ });
276
+ $[7] = children;
277
+ $[8] = props;
278
+ $[9] = ref;
279
+ $[10] = t1;
280
+ $[11] = t2;
281
+ } else t2 = $[11];
282
+ return t2;
283
+ }
284
+ function CodeBlockTitle(t0) {
285
+ const $ = c(12);
286
+ let children;
287
+ let className;
288
+ let props;
289
+ let ref;
290
+ if ($[0] !== t0) {
291
+ ({className, children, ref, ...props} = t0);
292
+ $[0] = t0;
293
+ $[1] = children;
294
+ $[2] = className;
295
+ $[3] = props;
296
+ $[4] = ref;
297
+ } else {
298
+ children = $[1];
299
+ className = $[2];
300
+ props = $[3];
301
+ ref = $[4];
302
+ }
303
+ let t1;
304
+ if ($[5] !== className) {
305
+ t1 = cx("code-block__title", className);
306
+ $[5] = className;
307
+ $[6] = t1;
308
+ } else t1 = $[6];
309
+ let t2;
310
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
311
+ t2 = /* @__PURE__ */ jsx("span", {
312
+ ref,
313
+ className: t1,
314
+ ...props,
315
+ children
316
+ });
317
+ $[7] = children;
318
+ $[8] = props;
319
+ $[9] = ref;
320
+ $[10] = t1;
321
+ $[11] = t2;
322
+ } else t2 = $[11];
323
+ return t2;
324
+ }
325
+ function CodeBlockFilename(t0) {
326
+ const $ = c(12);
327
+ let children;
328
+ let className;
329
+ let props;
330
+ let ref;
331
+ if ($[0] !== t0) {
332
+ ({className, children, ref, ...props} = t0);
333
+ $[0] = t0;
334
+ $[1] = children;
335
+ $[2] = className;
336
+ $[3] = props;
337
+ $[4] = ref;
338
+ } else {
339
+ children = $[1];
340
+ className = $[2];
341
+ props = $[3];
342
+ ref = $[4];
343
+ }
344
+ let t1;
345
+ if ($[5] !== className) {
346
+ t1 = cx("code-block__filename", className);
347
+ $[5] = className;
348
+ $[6] = t1;
349
+ } else t1 = $[6];
350
+ let t2;
351
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
352
+ t2 = /* @__PURE__ */ jsx("span", {
353
+ ref,
354
+ className: t1,
355
+ ...props,
356
+ children
357
+ });
358
+ $[7] = children;
359
+ $[8] = props;
360
+ $[9] = ref;
361
+ $[10] = t1;
362
+ $[11] = t2;
363
+ } else t2 = $[11];
364
+ return t2;
365
+ }
366
+ function CodeBlockActions(t0) {
367
+ const $ = c(12);
368
+ let children;
369
+ let className;
370
+ let props;
371
+ let ref;
372
+ if ($[0] !== t0) {
373
+ ({className, children, ref, ...props} = t0);
374
+ $[0] = t0;
375
+ $[1] = children;
376
+ $[2] = className;
377
+ $[3] = props;
378
+ $[4] = ref;
379
+ } else {
380
+ children = $[1];
381
+ className = $[2];
382
+ props = $[3];
383
+ ref = $[4];
384
+ }
385
+ let t1;
386
+ if ($[5] !== className) {
387
+ t1 = cx("code-block__actions", className);
388
+ $[5] = className;
389
+ $[6] = t1;
390
+ } else t1 = $[6];
391
+ let t2;
392
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
393
+ t2 = /* @__PURE__ */ jsx("div", {
394
+ ref,
395
+ className: t1,
396
+ ...props,
397
+ children
398
+ });
399
+ $[7] = children;
400
+ $[8] = props;
401
+ $[9] = ref;
402
+ $[10] = t1;
403
+ $[11] = t2;
404
+ } else t2 = $[11];
405
+ return t2;
406
+ }
407
+ function CodeBlockCopyButton(t0) {
408
+ const $ = c(15);
409
+ let className;
410
+ let onClick;
411
+ let props;
412
+ let t1;
413
+ let t2;
414
+ if ($[0] !== t0) {
415
+ ({className, label: t1, timeout: t2, onClick, ...props} = t0);
416
+ $[0] = t0;
417
+ $[1] = className;
418
+ $[2] = onClick;
419
+ $[3] = props;
420
+ $[4] = t1;
421
+ $[5] = t2;
422
+ } else {
423
+ className = $[1];
424
+ onClick = $[2];
425
+ props = $[3];
426
+ t1 = $[4];
427
+ t2 = $[5];
428
+ }
429
+ const label = t1 === void 0 ? "Copy code" : t1;
430
+ const timeout = t2 === void 0 ? 2e3 : t2;
431
+ const { code } = useCodeBlockContext();
432
+ let t3;
433
+ if ($[6] !== className) {
434
+ t3 = cx("code-block__copy", className);
435
+ $[6] = className;
436
+ $[7] = t3;
437
+ } else t3 = $[7];
438
+ let t4;
439
+ if ($[8] !== code || $[9] !== label || $[10] !== onClick || $[11] !== props || $[12] !== t3 || $[13] !== timeout) {
440
+ t4 = /* @__PURE__ */ jsx(CopyButton, {
441
+ ...props,
442
+ text: code,
443
+ label,
444
+ timeout,
445
+ className: t3,
446
+ onClick
447
+ });
448
+ $[8] = code;
449
+ $[9] = label;
450
+ $[10] = onClick;
451
+ $[11] = props;
452
+ $[12] = t3;
453
+ $[13] = timeout;
454
+ $[14] = t4;
455
+ } else t4 = $[14];
456
+ return t4;
457
+ }
458
+ function CodeBlockLanguageSelector(t0) {
459
+ const $ = c(25);
460
+ let children;
461
+ let className;
462
+ let onValueChange;
463
+ let props;
464
+ let ref;
465
+ let t1;
466
+ let value;
467
+ if ($[0] !== t0) {
468
+ ({children, className, languages: t1, onValueChange, ref, value, ...props} = t0);
469
+ $[0] = t0;
470
+ $[1] = children;
471
+ $[2] = className;
472
+ $[3] = onValueChange;
473
+ $[4] = props;
474
+ $[5] = ref;
475
+ $[6] = t1;
476
+ $[7] = value;
477
+ } else {
478
+ children = $[1];
479
+ className = $[2];
480
+ onValueChange = $[3];
481
+ props = $[4];
482
+ ref = $[5];
483
+ t1 = $[6];
484
+ value = $[7];
485
+ }
486
+ const languages = t1 === void 0 ? CODE_BLOCK_LANGUAGES : t1;
487
+ const { language, setLanguage } = useCodeBlockContext();
488
+ let t2;
489
+ if ($[8] !== onValueChange || $[9] !== setLanguage) {
490
+ t2 = (next, eventDetails) => {
491
+ onValueChange?.(next, eventDetails);
492
+ if (eventDetails.isCanceled || next === null) return;
493
+ setLanguage(next);
494
+ };
495
+ $[8] = onValueChange;
496
+ $[9] = setLanguage;
497
+ $[10] = t2;
498
+ } else t2 = $[10];
499
+ const handleValueChange = t2;
500
+ let t3;
501
+ if ($[11] !== className) {
502
+ t3 = cx("code-block__language-selector", className);
503
+ $[11] = className;
504
+ $[12] = t3;
505
+ } else t3 = $[12];
506
+ const t4 = value === void 0 ? language : value;
507
+ let t5;
508
+ if ($[13] !== children || $[14] !== languages) {
509
+ t5 = children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(CodeBlockLanguageSelectorTrigger, {
510
+ "aria-label": "Code language",
511
+ children: /* @__PURE__ */ jsx(CodeBlockLanguageSelectorValue, {})
512
+ }), /* @__PURE__ */ jsx(CodeBlockLanguageSelectorContent, { children: /* @__PURE__ */ jsx(Select.List, { children: languages.map(_temp) }) })] });
513
+ $[13] = children;
514
+ $[14] = languages;
515
+ $[15] = t5;
516
+ } else t5 = $[15];
517
+ let t6;
518
+ if ($[16] !== handleValueChange || $[17] !== props || $[18] !== t4 || $[19] !== t5) {
519
+ t6 = /* @__PURE__ */ jsx(Select.Root, {
520
+ ...props,
521
+ value: t4,
522
+ onValueChange: handleValueChange,
523
+ children: t5
524
+ });
525
+ $[16] = handleValueChange;
526
+ $[17] = props;
527
+ $[18] = t4;
528
+ $[19] = t5;
529
+ $[20] = t6;
530
+ } else t6 = $[20];
531
+ let t7;
532
+ if ($[21] !== ref || $[22] !== t3 || $[23] !== t6) {
533
+ t7 = /* @__PURE__ */ jsx("div", {
534
+ ref,
535
+ className: t3,
536
+ children: t6
537
+ });
538
+ $[21] = ref;
539
+ $[22] = t3;
540
+ $[23] = t6;
541
+ $[24] = t7;
542
+ } else t7 = $[24];
543
+ return t7;
544
+ }
545
+ function _temp(lang) {
546
+ return /* @__PURE__ */ jsx(CodeBlockLanguageSelectorItem, {
547
+ value: lang,
548
+ children: lang
549
+ }, lang);
550
+ }
551
+ function CodeBlockLanguageSelectorTrigger(t0) {
552
+ const $ = c(6);
553
+ let props;
554
+ let t1;
555
+ if ($[0] !== t0) {
556
+ ({size: t1, ...props} = t0);
557
+ $[0] = t0;
558
+ $[1] = props;
559
+ $[2] = t1;
560
+ } else {
561
+ props = $[1];
562
+ t1 = $[2];
563
+ }
564
+ const size = t1 === void 0 ? "sm" : t1;
565
+ let t2;
566
+ if ($[3] !== props || $[4] !== size) {
567
+ t2 = /* @__PURE__ */ jsx(Select.Trigger, {
568
+ size,
569
+ ...props
570
+ });
571
+ $[3] = props;
572
+ $[4] = size;
573
+ $[5] = t2;
574
+ } else t2 = $[5];
575
+ return t2;
576
+ }
577
+ function CodeBlockLanguageSelectorValue(props) {
578
+ const $ = c(2);
579
+ let t0;
580
+ if ($[0] !== props) {
581
+ t0 = /* @__PURE__ */ jsx(Select.Value, { ...props });
582
+ $[0] = props;
583
+ $[1] = t0;
584
+ } else t0 = $[1];
585
+ return t0;
586
+ }
587
+ function CodeBlockLanguageSelectorContent(t0) {
588
+ const $ = c(14);
589
+ let children;
590
+ let props;
591
+ let t1;
592
+ if ($[0] !== t0) {
593
+ ({align: t1, children, ...props} = t0);
594
+ $[0] = t0;
595
+ $[1] = children;
596
+ $[2] = props;
597
+ $[3] = t1;
598
+ } else {
599
+ children = $[1];
600
+ props = $[2];
601
+ t1 = $[3];
602
+ }
603
+ const align = t1 === void 0 ? "end" : t1;
604
+ let t2;
605
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
606
+ t2 = /* @__PURE__ */ jsx(Select.ScrollUpArrow, {});
607
+ $[4] = t2;
608
+ } else t2 = $[4];
609
+ let t3;
610
+ if ($[5] !== children) {
611
+ t3 = /* @__PURE__ */ jsx(Select.List, { children });
612
+ $[5] = children;
613
+ $[6] = t3;
614
+ } else t3 = $[6];
615
+ let t4;
616
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
617
+ t4 = /* @__PURE__ */ jsx(Select.ScrollDownArrow, {});
618
+ $[7] = t4;
619
+ } else t4 = $[7];
620
+ let t5;
621
+ if ($[8] !== props || $[9] !== t3) {
622
+ t5 = /* @__PURE__ */ jsxs(Select.Popup, {
623
+ ...props,
624
+ children: [
625
+ t2,
626
+ t3,
627
+ t4
628
+ ]
629
+ });
630
+ $[8] = props;
631
+ $[9] = t3;
632
+ $[10] = t5;
633
+ } else t5 = $[10];
634
+ let t6;
635
+ if ($[11] !== align || $[12] !== t5) {
636
+ t6 = /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(Select.Positioner, {
637
+ align,
638
+ children: t5
639
+ }) });
640
+ $[11] = align;
641
+ $[12] = t5;
642
+ $[13] = t6;
643
+ } else t6 = $[13];
644
+ return t6;
645
+ }
646
+ function CodeBlockLanguageSelectorItem(t0) {
647
+ const $ = c(9);
648
+ let children;
649
+ let props;
650
+ if ($[0] !== t0) {
651
+ ({children, ...props} = t0);
652
+ $[0] = t0;
653
+ $[1] = children;
654
+ $[2] = props;
655
+ } else {
656
+ children = $[1];
657
+ props = $[2];
658
+ }
659
+ let t1;
660
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
661
+ t1 = /* @__PURE__ */ jsx(Select.ItemIndicator, {});
662
+ $[3] = t1;
663
+ } else t1 = $[3];
664
+ let t2;
665
+ if ($[4] !== children) {
666
+ t2 = /* @__PURE__ */ jsx(Select.ItemText, { children });
667
+ $[4] = children;
668
+ $[5] = t2;
669
+ } else t2 = $[5];
670
+ let t3;
671
+ if ($[6] !== props || $[7] !== t2) {
672
+ t3 = /* @__PURE__ */ jsxs(Select.Item, {
673
+ ...props,
674
+ children: [t1, t2]
675
+ });
676
+ $[6] = props;
677
+ $[7] = t2;
678
+ $[8] = t3;
679
+ } else t3 = $[8];
680
+ return t3;
681
+ }
682
+ function CodeBlockContainer(t0) {
683
+ const $ = c(12);
684
+ let children;
685
+ let className;
686
+ let props;
687
+ let ref;
688
+ if ($[0] !== t0) {
689
+ ({className, children, ref, ...props} = t0);
690
+ $[0] = t0;
691
+ $[1] = children;
692
+ $[2] = className;
693
+ $[3] = props;
694
+ $[4] = ref;
695
+ } else {
696
+ children = $[1];
697
+ className = $[2];
698
+ props = $[3];
699
+ ref = $[4];
700
+ }
701
+ let t1;
702
+ if ($[5] !== className) {
703
+ t1 = cx("code-block__container", className);
704
+ $[5] = className;
705
+ $[6] = t1;
706
+ } else t1 = $[6];
707
+ let t2;
708
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
709
+ t2 = /* @__PURE__ */ jsx("div", {
710
+ ref,
711
+ tabIndex: 0,
712
+ className: t1,
713
+ ...props,
714
+ children
715
+ });
716
+ $[7] = children;
717
+ $[8] = props;
718
+ $[9] = ref;
719
+ $[10] = t1;
720
+ $[11] = t2;
721
+ } else t2 = $[11];
722
+ return t2;
723
+ }
724
+ function CodeBlockContent(t0) {
725
+ const $ = c(35);
726
+ let className;
727
+ let props;
728
+ let ref;
729
+ if ($[0] !== t0) {
730
+ ({className, ref, ...props} = t0);
731
+ $[0] = t0;
732
+ $[1] = className;
733
+ $[2] = props;
734
+ $[3] = ref;
735
+ } else {
736
+ className = $[1];
737
+ props = $[2];
738
+ ref = $[3];
739
+ }
740
+ const { code, language, showLineNumbers, isStreaming } = useCodeBlockContext();
741
+ const [html, setHtml] = React.useState(null);
742
+ const [theme, setTheme] = React.useState(_temp2);
743
+ let t1;
744
+ let t2;
745
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
746
+ t1 = () => {
747
+ if (typeof document === "undefined") return;
748
+ const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
749
+ const update = () => {
750
+ const preference_0 = document.documentElement.dataset.theme;
751
+ const dark_0 = preference_0 === "dark" || preference_0 === void 0 && mediaQuery.matches;
752
+ setTheme(dark_0 ? "github-dark-high-contrast" : "github-light-high-contrast");
753
+ };
754
+ const observer = new MutationObserver(update);
755
+ observer.observe(document.documentElement, {
756
+ attributes: true,
757
+ attributeFilter: ["data-theme"]
758
+ });
759
+ mediaQuery.addEventListener("change", update);
760
+ return () => {
761
+ observer.disconnect();
762
+ mediaQuery.removeEventListener("change", update);
763
+ };
764
+ };
765
+ t2 = [];
766
+ $[4] = t1;
767
+ $[5] = t2;
768
+ } else {
769
+ t1 = $[4];
770
+ t2 = $[5];
771
+ }
772
+ React.useEffect(t1, t2);
773
+ let t3;
774
+ let t4;
775
+ if ($[6] !== code || $[7] !== isStreaming || $[8] !== language || $[9] !== theme) {
776
+ t3 = () => {
777
+ if (isStreaming) return;
778
+ let cancelled = false;
779
+ (async () => {
780
+ try {
781
+ const highlighter = await getHighlighterInstance();
782
+ const loadedLang = await loadShikiLanguage(highlighter, language);
783
+ const out = highlighter.codeToHtml(code, {
784
+ lang: loadedLang,
785
+ theme
786
+ });
787
+ if (!cancelled) setHtml(out);
788
+ } catch {
789
+ if (!cancelled) setHtml(`<pre>${escapeHtml(code)}</pre>`);
790
+ }
791
+ })();
792
+ return () => {
793
+ cancelled = true;
794
+ };
795
+ };
796
+ t4 = [
797
+ code,
798
+ language,
799
+ theme,
800
+ isStreaming
801
+ ];
802
+ $[6] = code;
803
+ $[7] = isStreaming;
804
+ $[8] = language;
805
+ $[9] = theme;
806
+ $[10] = t3;
807
+ $[11] = t4;
808
+ } else {
809
+ t3 = $[10];
810
+ t4 = $[11];
811
+ }
812
+ React.useEffect(t3, t4);
813
+ if (html === null || isStreaming) {
814
+ const t5 = ref;
815
+ const t6 = showLineNumbers && "code-block__content--numbered";
816
+ let t7;
817
+ if ($[12] !== className || $[13] !== t6) {
818
+ t7 = cx("code-block__content", t6, className);
819
+ $[12] = className;
820
+ $[13] = t6;
821
+ $[14] = t7;
822
+ } else t7 = $[14];
823
+ let t8;
824
+ if ($[15] !== code || $[16] !== showLineNumbers) {
825
+ t8 = renderPlainCode(code, showLineNumbers);
826
+ $[15] = code;
827
+ $[16] = showLineNumbers;
828
+ $[17] = t8;
829
+ } else t8 = $[17];
830
+ let t9;
831
+ if ($[18] !== t8) {
832
+ t9 = /* @__PURE__ */ jsx("code", { children: t8 });
833
+ $[18] = t8;
834
+ $[19] = t9;
835
+ } else t9 = $[19];
836
+ let t10;
837
+ if ($[20] !== props || $[21] !== t5 || $[22] !== t7 || $[23] !== t9) {
838
+ t10 = /* @__PURE__ */ jsx("pre", {
839
+ ref: t5,
840
+ className: t7,
841
+ ...props,
842
+ children: t9
843
+ });
844
+ $[20] = props;
845
+ $[21] = t5;
846
+ $[22] = t7;
847
+ $[23] = t9;
848
+ $[24] = t10;
849
+ } else t10 = $[24];
850
+ return t10;
851
+ }
852
+ const t5 = ref;
853
+ const t6 = showLineNumbers && "code-block__content--numbered";
854
+ let t7;
855
+ if ($[25] !== className || $[26] !== t6) {
856
+ t7 = cx("code-block__content code-block__content--highlighted", t6, className);
857
+ $[25] = className;
858
+ $[26] = t6;
859
+ $[27] = t7;
860
+ } else t7 = $[27];
861
+ let t8;
862
+ if ($[28] !== html) {
863
+ t8 = { __html: html };
864
+ $[28] = html;
865
+ $[29] = t8;
866
+ } else t8 = $[29];
867
+ let t9;
868
+ if ($[30] !== props || $[31] !== t5 || $[32] !== t7 || $[33] !== t8) {
869
+ t9 = /* @__PURE__ */ jsx("div", {
870
+ ref: t5,
871
+ className: t7,
872
+ dangerouslySetInnerHTML: t8,
873
+ ...props
874
+ });
875
+ $[30] = props;
876
+ $[31] = t5;
877
+ $[32] = t7;
878
+ $[33] = t8;
879
+ $[34] = t9;
880
+ } else t9 = $[34];
881
+ return t9;
882
+ }
883
+ function _temp2() {
884
+ if (typeof document === "undefined") return "github-light-high-contrast";
885
+ const preference = document.documentElement.dataset.theme;
886
+ return preference === "dark" || preference === void 0 && window.matchMedia("(prefers-color-scheme: dark)").matches ? "github-dark-high-contrast" : "github-light-high-contrast";
887
+ }
888
+ function escapeHtml(s) {
889
+ return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
890
+ }
891
+ //#endregion
892
+ export { CodeBlockCopyButton as a, CodeBlockLanguageSelector as c, CodeBlockLanguageSelectorTrigger as d, CodeBlockLanguageSelectorValue as f, CodeBlockContent as i, CodeBlockLanguageSelectorContent as l, CODE_BLOCK_LANGUAGES as m, CodeBlockActions as n, CodeBlockFilename as o, CodeBlockTitle as p, CodeBlockContainer as r, CodeBlockHeader as s, CodeBlock as t, CodeBlockLanguageSelectorItem as u };