@mcp-b/react-components 0.40.0 → 0.42.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 (228) hide show
  1. package/dist/{AgentChat-CVO7xyLC.d.ts → AgentChat-DVr2giwD.d.ts} +1 -1
  2. package/dist/{AgentToolRunsContext-BCVqCtJ1.d.ts → AgentToolRunsContext-daY67hFM.d.ts} +12 -0
  3. package/dist/{CodeBlock-CWk1FVtm.js → CodeBlock-BjELA-_s.js} +1 -1
  4. package/dist/{FileTree-xqHYBw4g.js → FileTree-DMYRdT6R.js} +1 -1
  5. package/dist/McpConnectorForm-MRm1r59e.d.ts +39 -0
  6. package/dist/{Message-DBsHHhcM.d.ts → Message-D_vCVEGB.d.ts} +20 -1
  7. package/dist/{ThinkChatActivity-D6-_5Phw.d.ts → ThinkChatActivity-CsDql-ER.d.ts} +4 -1
  8. package/dist/{ThinkExecutionRun-lYYgyeE1.d.ts → ThinkExecutionRun-k8bpyXqt.d.ts} +3 -3
  9. package/dist/{WorkspaceFileView-Lab3om3F.js → WorkspaceFileView-DwdXiKku.js} +17 -22
  10. package/dist/{WorkspaceMessageResponse-Cy28WGSz.d.ts → WorkspaceMessageResponse-D66ty4FO.d.ts} +1 -1
  11. package/dist/components/agents-sdk/AgentActivity.js +4 -3
  12. package/dist/components/agents-sdk/AgentChat.d.ts +1 -1
  13. package/dist/components/agents-sdk/AgentChat.js +42 -18
  14. package/dist/components/agents-sdk/AgentToolRunsContext.d.ts +1 -1
  15. package/dist/components/agents-sdk/AgentToolRunsContext.js +12 -0
  16. package/dist/components/agents-sdk/BrowserLiveScreen.d.ts +135 -0
  17. package/dist/components/agents-sdk/BrowserLiveScreen.js +637 -0
  18. package/dist/components/agents-sdk/BrowserLiveView.d.ts +2 -2
  19. package/dist/components/agents-sdk/BrowserLiveView.js +6 -9
  20. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  21. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +1 -1
  22. package/dist/components/agents-sdk/BrowserRunPanel.js +8 -13
  23. package/dist/components/agents-sdk/ManagerOffice.d.ts +168 -0
  24. package/dist/components/agents-sdk/ManagerOffice.js +698 -0
  25. package/dist/components/agents-sdk/McpConnectionRequest.js +3 -3
  26. package/dist/components/agents-sdk/McpConnectorForm.d.ts +1 -38
  27. package/dist/components/agents-sdk/McpPluginCatalog.d.ts +8 -2
  28. package/dist/components/agents-sdk/McpPluginCatalog.js +82 -62
  29. package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
  30. package/dist/components/agents-sdk/McpServerPicker.js +2 -2
  31. package/dist/components/agents-sdk/ModelSelector.js +1 -1
  32. package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
  33. package/dist/components/agents-sdk/SubagentRunDetails.d.ts +1 -9
  34. package/dist/components/agents-sdk/SubagentRunDetails.js +1 -9
  35. package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
  36. package/dist/components/agents-sdk/SubagentRunSelector.d.ts +4 -2
  37. package/dist/components/agents-sdk/SubagentRunSelector.js +7 -6
  38. package/dist/components/agents-sdk/ThinkChat.d.ts +4 -4
  39. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  40. package/dist/components/agents-sdk/ThinkChatActivity.js +18 -4
  41. package/dist/components/agents-sdk/ThinkChatToolPanels.js +7 -3
  42. package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +1 -1
  43. package/dist/components/agents-sdk/ThinkExecutionDetail.js +45 -43
  44. package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
  45. package/dist/components/agents-sdk/ThinkExecutionRun.js +5 -6
  46. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +1 -1
  47. package/dist/components/agents-sdk/ThinkExecutionStatus.js +8 -12
  48. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -1
  49. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +43 -37
  50. package/dist/components/agents-sdk/ThinkFullApp.d.ts +42 -78
  51. package/dist/components/agents-sdk/ThinkFullApp.js +121 -202
  52. package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +1 -1
  53. package/dist/components/agents-sdk/ThinkRoutine.d.ts +1 -1
  54. package/dist/components/agents-sdk/ThinkRoutineBrowser.js +1 -1
  55. package/dist/components/agents-sdk/ThinkRoutineDetail.js +4 -15
  56. package/dist/components/agents-sdk/ThinkRoutineForm.js +1 -1
  57. package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +7 -6
  58. package/dist/components/agents-sdk/ThinkRoutineLibrary.js +112 -140
  59. package/dist/components/agents-sdk/ThinkRoutineRuns.d.ts +1 -1
  60. package/dist/components/agents-sdk/ThinkRoutineRuns.js +3 -10
  61. package/dist/components/agents-sdk/ThinkThreadPicker.js +2 -1
  62. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  63. package/dist/components/agents-sdk/WorkspaceExplorer.js +2 -1
  64. package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
  65. package/dist/components/agents-sdk/WorkspaceHeader.js +2 -1
  66. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
  67. package/dist/components/agents-sdk/WorkspaceMountManager.js +11 -11
  68. package/dist/components/ai-sdk/Activity.js +1 -1
  69. package/dist/components/ai-sdk/AgentAttention.d.ts +1 -1
  70. package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
  71. package/dist/components/ai-sdk/Approval.js +1 -1
  72. package/dist/components/ai-sdk/Artifact.js +1 -1
  73. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  74. package/dist/components/ai-sdk/ChainOfThought.js +1 -1
  75. package/dist/components/ai-sdk/Checkpoint.js +1 -1
  76. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  77. package/dist/components/ai-sdk/Conversation.js +1 -1
  78. package/dist/components/ai-sdk/Goal.js +1 -1
  79. package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
  80. package/dist/components/ai-sdk/Message.d.ts +2 -2
  81. package/dist/components/ai-sdk/Message.js +25 -3
  82. package/dist/components/ai-sdk/MessageScroller.js +3 -2
  83. package/dist/components/ai-sdk/MessageScrollerVirtual.js +2 -1
  84. package/dist/components/ai-sdk/Plan.js +1 -1
  85. package/dist/components/ai-sdk/PromptInput.js +21 -15
  86. package/dist/components/ai-sdk/Queue.d.ts +4 -4
  87. package/dist/components/ai-sdk/Queue.js +6 -15
  88. package/dist/components/ai-sdk/Reasoning.js +1 -1
  89. package/dist/components/ai-sdk/Sources.js +1 -1
  90. package/dist/components/ai-sdk/Task.d.ts +2 -2
  91. package/dist/components/ai-sdk/Task.js +2 -2
  92. package/dist/components/extension/ChatGptSignInScreen.js +2 -1
  93. package/dist/components/extension/CodexModelSelector.js +1 -1
  94. package/dist/components/extension/ConversationTabPicker.js +1 -1
  95. package/dist/components/foundations/Avatar.d.ts +1 -10
  96. package/dist/components/foundations/Avatar.js +1 -10
  97. package/dist/components/foundations/Checkbox.js +1 -1
  98. package/dist/components/foundations/CheckboxGroup.js +1 -0
  99. package/dist/components/foundations/ContextMenu.js +1 -1
  100. package/dist/components/foundations/LinkButton.d.ts +12 -10
  101. package/dist/components/foundations/LinkButton.js +15 -11
  102. package/dist/components/foundations/Menubar.js +1 -1
  103. package/dist/components/foundations/SearchField.js +1 -1
  104. package/dist/components/foundations/Select.js +1 -1
  105. package/dist/components/foundations/Stepper.js +1 -1
  106. package/dist/components/foundations/Toast.js +1 -1
  107. package/dist/components/foundations/ToggleGroup.d.ts +79 -1
  108. package/dist/components/foundations/icons.d.ts +2 -2
  109. package/dist/components/foundations/icons.js +2 -2
  110. package/dist/components/general-purpose/AppFrame.js +1 -0
  111. package/dist/components/general-purpose/AppTopBar.d.ts +6 -0
  112. package/dist/components/general-purpose/AppTopBar.js +2 -1
  113. package/dist/components/general-purpose/Commit.d.ts +2 -2
  114. package/dist/components/general-purpose/Commit.js +5 -13
  115. package/dist/components/general-purpose/EnvironmentVariables.d.ts +2 -2
  116. package/dist/components/general-purpose/EnvironmentVariables.js +4 -7
  117. package/dist/components/general-purpose/FileTree.js +1 -1
  118. package/dist/components/general-purpose/PricingBillingToggle.js +4 -9
  119. package/dist/components/general-purpose/PricingPlanCard.js +15 -14
  120. package/dist/components/general-purpose/ResizableSidePanel.d.ts +8 -0
  121. package/dist/components/general-purpose/ResizableSidePanel.js +3 -2
  122. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +105 -2
  123. package/dist/components/general-purpose/ResponsiveSidebarShell.js +112 -56
  124. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  125. package/dist/components/general-purpose/Terminal.d.ts +1 -1
  126. package/dist/components/general-purpose/Terminal.js +4 -12
  127. package/dist/components/general-purpose/TestResults.d.ts +1 -1
  128. package/dist/components/general-purpose/TestResults.js +8 -21
  129. package/dist/components/general-purpose/ThemeModeControl.js +1 -1
  130. package/dist/components/general-purpose/WebPreview.d.ts +4 -1
  131. package/dist/components/general-purpose/WebPreview.js +6 -14
  132. package/dist/components/nanites/AgentConnection.js +2 -2
  133. package/dist/components/nanites/AgentToolDetail.d.ts +1 -1
  134. package/dist/components/nanites/AgentToolDetail.js +6 -5
  135. package/dist/components/nanites/NaniteScene.js +11 -11
  136. package/dist/{copy-button-Bc7jsYv_.js → copy-button-lys9N_aI.js} +1 -1
  137. package/dist/{icons-DwgNir1Q.d.ts → icons-0corjfxR.d.ts} +1 -16
  138. package/dist/{icons-MmIXciMO.js → icons-CVFSeTJn.js} +2 -5
  139. package/dist/styles/accordion.css +1 -0
  140. package/dist/styles/action-guide.css +8 -7
  141. package/dist/styles/activity-header.css +13 -39
  142. package/dist/styles/activity.css +40 -55
  143. package/dist/styles/agent-attention.css +19 -19
  144. package/dist/styles/agent-chat.css +94 -42
  145. package/dist/styles/agent-connection.css +10 -4
  146. package/dist/styles/agent-tool-detail.css +5 -15
  147. package/dist/styles/alert-dialog.css +4 -4
  148. package/dist/styles/app-frame.css +1 -3
  149. package/dist/styles/app-icon.css +12 -18
  150. package/dist/styles/app-top-bar.css +31 -9
  151. package/dist/styles/approval.css +1 -0
  152. package/dist/styles/artifact.css +6 -6
  153. package/dist/styles/attachment-preview.css +5 -4
  154. package/dist/styles/avatar.css +6 -22
  155. package/dist/styles/base.css +2 -8
  156. package/dist/styles/browser-live-screen.css +38 -0
  157. package/dist/styles/browser-live-view.css +12 -4
  158. package/dist/styles/browser-replay.css +6 -6
  159. package/dist/styles/browser-run-panel.css +21 -18
  160. package/dist/styles/button.css +15 -6
  161. package/dist/styles/card.css +5 -5
  162. package/dist/styles/chatgpt-sign-in-screen.css +6 -6
  163. package/dist/styles/code-block.css +14 -13
  164. package/dist/styles/codex-model-selector.css +2 -0
  165. package/dist/styles/collapsible.css +1 -0
  166. package/dist/styles/commit.css +30 -7
  167. package/dist/styles/context.css +9 -9
  168. package/dist/styles/conversation-tab-picker.css +1 -1
  169. package/dist/styles/conversation.css +6 -8
  170. package/dist/styles/dialog.css +4 -4
  171. package/dist/styles/empty-state.css +3 -3
  172. package/dist/styles/environment-variables.css +12 -9
  173. package/dist/styles/field.css +2 -1
  174. package/dist/styles/fieldset.css +2 -2
  175. package/dist/styles/index.css +8 -7
  176. package/dist/styles/manager-office.css +480 -0
  177. package/dist/styles/mcp-plugin-catalog.css +44 -39
  178. package/dist/styles/mcp-server-picker.css +4 -4
  179. package/dist/styles/message-scroller.css +9 -11
  180. package/dist/styles/message.css +74 -28
  181. package/dist/styles/nanite-scene.css +9 -9
  182. package/dist/styles/navigation-menu.css +1 -0
  183. package/dist/styles/plan.css +13 -12
  184. package/dist/styles/pricing-page.css +37 -30
  185. package/dist/styles/prompt-input.css +26 -18
  186. package/dist/styles/queue.css +1 -0
  187. package/dist/styles/reasoning.css +1 -9
  188. package/dist/styles/recipes.css +29 -58
  189. package/dist/styles/responsive-sidebar-shell.css +107 -29
  190. package/dist/styles/separator.css +5 -5
  191. package/dist/styles/sources.css +4 -4
  192. package/dist/styles/stepper.css +1 -0
  193. package/dist/styles/streamdown.css +31 -21
  194. package/dist/styles/subagent-run.css +20 -3
  195. package/dist/styles/tabs.css +1 -0
  196. package/dist/styles/task.css +5 -17
  197. package/dist/styles/terminal.css +29 -10
  198. package/dist/styles/test-results.css +16 -7
  199. package/dist/styles/think-execution-status.css +10 -26
  200. package/dist/styles/think-execution-workbench.css +98 -108
  201. package/dist/styles/think-full-app.css +75 -225
  202. package/dist/styles/think-routine-library.css +26 -95
  203. package/dist/styles/think-thread-picker.css +17 -12
  204. package/dist/styles/transition-surface.css +7 -8
  205. package/dist/styles/utilities.css +75 -0
  206. package/dist/styles/web-preview.css +46 -22
  207. package/dist/styles/workspace-explorer.css +22 -44
  208. package/dist/styles/workspace-mount-manager.css +24 -2
  209. package/dist/utils/favicon.d.ts +6 -1
  210. package/dist/utils/favicon.js +18 -1
  211. package/package.json +37 -35
  212. package/dist/ResponsiveSidebarShell-DWjULskY.d.ts +0 -68
  213. package/dist/ToggleGroup-_pQMyHGM.d.ts +0 -80
  214. package/dist/components/agents-sdk/AgentActivityPreview.d.ts +0 -46
  215. package/dist/components/agents-sdk/AgentActivityPreview.js +0 -93
  216. package/dist/components/agents-sdk/ThinkThreadShell.d.ts +0 -38
  217. package/dist/components/agents-sdk/ThinkThreadShell.js +0 -27
  218. package/dist/components/foundations/Badge.d.ts +0 -62
  219. package/dist/components/foundations/Badge.js +0 -55
  220. package/dist/components/foundations/StatusPill.d.ts +0 -43
  221. package/dist/components/foundations/StatusPill.js +0 -35
  222. package/dist/components/general-purpose/Shell.d.ts +0 -149
  223. package/dist/components/general-purpose/Shell.js +0 -116
  224. package/dist/styles/agent-activity-preview-overlay.css +0 -169
  225. package/dist/styles/agent-activity-preview.css +0 -209
  226. package/dist/styles/badge.css +0 -120
  227. package/dist/styles/shell.css +0 -122
  228. package/dist/styles/status-pill.css +0 -39
@@ -1,35 +0,0 @@
1
- import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { Badge } from "./Badge.js";
3
- import "react";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
- //#region src/components/foundations/StatusPill.tsx
6
- /**
7
- * A short state report: an indicator, then the state itself.
8
- *
9
- * This is a `Badge` with an indicator in front, not a second kind of chip, so
10
- * `variant`, `color`, and `size` mean here exactly what they mean there. What
11
- * it adds is the dot and its pulse, which several surfaces had been writing
12
- * out by hand.
13
- *
14
- * It reports; it does not ask. A state that needs the user to do something is
15
- * `AgentAttention`.
16
- *
17
- * @example
18
- * ```tsx
19
- * <StatusPill busy color="destructive" size="sm">Live</StatusPill>
20
- * <StatusPill color="success" icon={<CheckIcon />}>Passed</StatusPill>
21
- * ```
22
- */
23
- function StatusPill({ busy = false, className, icon, children, ...props }) {
24
- return /* @__PURE__ */ jsxs(Badge, {
25
- className: cx("status-pill", className),
26
- "data-busy": busy || void 0,
27
- ...props,
28
- children: [icon ?? /* @__PURE__ */ jsx("span", {
29
- "aria-hidden": "true",
30
- className: "status-pill__dot"
31
- }), children]
32
- });
33
- }
34
- //#endregion
35
- export { StatusPill };
@@ -1,149 +0,0 @@
1
- import * as React from "react";
2
-
3
- //#region src/components/general-purpose/Shell.d.ts
4
- /**
5
- * Props for the Shell.Root component.
6
- */
7
- interface ShellRootProps extends React.HTMLAttributes<HTMLDivElement> {
8
- /** Additional CSS class names */
9
- className?: string;
10
- /** The heading text displayed in the header */
11
- heading?: string;
12
- }
13
- /**
14
- * Props for the Shell.ActionBar component.
15
- */
16
- interface ShellActionBarProps extends React.HTMLAttributes<HTMLDivElement> {
17
- /** Additional CSS class names */
18
- className?: string;
19
- }
20
- /**
21
- * Props for the Shell.Action component.
22
- */
23
- interface ShellActionProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
24
- /** Additional CSS class names */
25
- className?: string;
26
- /** Icon to display */
27
- icon?: React.ReactNode;
28
- /** Whether this action is currently active */
29
- active?: boolean;
30
- /** Accessible label for the action */
31
- label?: string;
32
- }
33
- /**
34
- * Props for the Shell.Panel component.
35
- */
36
- interface ShellPanelProps extends React.HTMLAttributes<HTMLDivElement> {
37
- /** Additional CSS class names */
38
- className?: string;
39
- /** The panel heading */
40
- heading?: string;
41
- /** Whether the panel is visible */
42
- open?: boolean;
43
- }
44
- /**
45
- * Props for the Shell.Content component.
46
- */
47
- interface ShellContentProps extends React.HTMLAttributes<HTMLDivElement> {
48
- /** Additional CSS class names */
49
- className?: string;
50
- }
51
- /**
52
- * Root container for the shell layout.
53
- * Provides a structured layout with optional header, action bar, panel, and content areas.
54
- */
55
- declare function ShellRoot({
56
- className,
57
- heading,
58
- children,
59
- ref,
60
- ...props
61
- }: ShellRootProps & {
62
- ref?: React.Ref<HTMLDivElement>;
63
- }): React.JSX.Element;
64
- /**
65
- * Container for action buttons that toggle panels.
66
- * Typically placed on the left side of the shell.
67
- */
68
- declare function ShellActionBar({
69
- className,
70
- children,
71
- ref,
72
- ...props
73
- }: ShellActionBarProps & {
74
- ref?: React.Ref<HTMLDivElement>;
75
- }): React.JSX.Element;
76
- /**
77
- * An action button within the action bar.
78
- */
79
- declare function ShellAction({
80
- className,
81
- icon,
82
- active,
83
- label,
84
- ref,
85
- ...props
86
- }: ShellActionProps & {
87
- ref?: React.Ref<HTMLButtonElement>;
88
- }): React.JSX.Element;
89
- /**
90
- * A collapsible panel that slides in from the side.
91
- */
92
- declare function ShellPanel({
93
- className,
94
- heading,
95
- open,
96
- children,
97
- ref,
98
- ...props
99
- }: ShellPanelProps & {
100
- ref?: React.Ref<HTMLDivElement>;
101
- }): React.JSX.Element;
102
- /**
103
- * The main content area of the shell.
104
- */
105
- declare function ShellContent({
106
- className,
107
- children,
108
- ref,
109
- ...props
110
- }: ShellContentProps & {
111
- ref?: React.Ref<HTMLDivElement>;
112
- }): React.JSX.Element;
113
- /**
114
- * A shell layout component with an icon action bar, a collapsible side panel,
115
- * and a content canvas. Useful for map applications and other interactive
116
- * tools where a full chat or sidebar chrome (see ResponsiveSidebarShell) is
117
- * too heavy.
118
- *
119
- * @example
120
- * ```tsx
121
- * const [filterOpen, setFilterOpen] = useState(false);
122
- *
123
- * <Shell.Root heading="My Map Application">
124
- * <Shell.ActionBar>
125
- * <Shell.Action
126
- * icon={<FilterIcon />}
127
- * active={filterOpen}
128
- * onClick={() => setFilterOpen(!filterOpen)}
129
- * label="Filter"
130
- * />
131
- * </Shell.ActionBar>
132
- * <Shell.Panel heading="Filter" open={filterOpen}>
133
- * <p>Filter controls here</p>
134
- * </Shell.Panel>
135
- * <Shell.Content>
136
- * <div id="map" />
137
- * </Shell.Content>
138
- * </Shell.Root>
139
- * ```
140
- */
141
- declare const Shell: {
142
- Root: typeof ShellRoot;
143
- ActionBar: typeof ShellActionBar;
144
- Action: typeof ShellAction;
145
- Panel: typeof ShellPanel;
146
- Content: typeof ShellContent;
147
- };
148
- //#endregion
149
- export { Shell, ShellActionBarProps, ShellActionProps, ShellContentProps, ShellPanelProps, ShellRootProps };
@@ -1,116 +0,0 @@
1
- import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import "react";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/general-purpose/Shell.tsx
5
- /**
6
- * Root container for the shell layout.
7
- * Provides a structured layout with optional header, action bar, panel, and content areas.
8
- */
9
- function ShellRoot({ className, heading, children, ref, ...props }) {
10
- return /* @__PURE__ */ jsxs("div", {
11
- ref,
12
- className: cx("shell", className),
13
- ...props,
14
- children: [heading && /* @__PURE__ */ jsx("header", {
15
- className: "shell__header",
16
- children: /* @__PURE__ */ jsx("h3", {
17
- className: "shell__heading",
18
- children: heading
19
- })
20
- }), /* @__PURE__ */ jsx("div", {
21
- className: "shell__body",
22
- children
23
- })]
24
- });
25
- }
26
- /**
27
- * Container for action buttons that toggle panels.
28
- * Typically placed on the left side of the shell.
29
- */
30
- function ShellActionBar({ className, children, ref, ...props }) {
31
- return /* @__PURE__ */ jsx("div", {
32
- ref,
33
- className: cx("shell__action-bar", className),
34
- ...props,
35
- children
36
- });
37
- }
38
- /**
39
- * An action button within the action bar.
40
- */
41
- function ShellAction({ className, icon, active, label, ref, ...props }) {
42
- return /* @__PURE__ */ jsx("button", {
43
- ref,
44
- className: cx("shell__action", active && "shell__action--active", className),
45
- "aria-label": label,
46
- "aria-pressed": active,
47
- ...props,
48
- children: icon
49
- });
50
- }
51
- /**
52
- * A collapsible panel that slides in from the side.
53
- */
54
- function ShellPanel({ className, heading, open = false, children, ref, ...props }) {
55
- return /* @__PURE__ */ jsxs("div", {
56
- ref,
57
- className: cx("shell__panel", open && "shell__panel--open", className),
58
- hidden: !open,
59
- ...props,
60
- children: [heading && /* @__PURE__ */ jsx("div", {
61
- className: "shell__panel-heading",
62
- children: heading
63
- }), /* @__PURE__ */ jsx("div", {
64
- className: "shell__panel-content",
65
- children
66
- })]
67
- });
68
- }
69
- /**
70
- * The main content area of the shell.
71
- */
72
- function ShellContent({ className, children, ref, ...props }) {
73
- return /* @__PURE__ */ jsx("div", {
74
- ref,
75
- className: cx("shell__content", className),
76
- ...props,
77
- children
78
- });
79
- }
80
- /**
81
- * A shell layout component with an icon action bar, a collapsible side panel,
82
- * and a content canvas. Useful for map applications and other interactive
83
- * tools where a full chat or sidebar chrome (see ResponsiveSidebarShell) is
84
- * too heavy.
85
- *
86
- * @example
87
- * ```tsx
88
- * const [filterOpen, setFilterOpen] = useState(false);
89
- *
90
- * <Shell.Root heading="My Map Application">
91
- * <Shell.ActionBar>
92
- * <Shell.Action
93
- * icon={<FilterIcon />}
94
- * active={filterOpen}
95
- * onClick={() => setFilterOpen(!filterOpen)}
96
- * label="Filter"
97
- * />
98
- * </Shell.ActionBar>
99
- * <Shell.Panel heading="Filter" open={filterOpen}>
100
- * <p>Filter controls here</p>
101
- * </Shell.Panel>
102
- * <Shell.Content>
103
- * <div id="map" />
104
- * </Shell.Content>
105
- * </Shell.Root>
106
- * ```
107
- */
108
- const Shell = {
109
- Root: ShellRoot,
110
- ActionBar: ShellActionBar,
111
- Action: ShellAction,
112
- Panel: ShellPanel,
113
- Content: ShellContent
114
- };
115
- //#endregion
116
- export { Shell };
@@ -1,169 +0,0 @@
1
- /*
2
- * Standalone closed-shadow styles for AgentActivityPreview. The extension host
3
- * owns placement, top-layer behavior, containment, and pointer-event policy.
4
- */
5
- @import "./activity-header.css";
6
- @import "./app-icon.css";
7
- @import "./agent-activity-preview.css";
8
-
9
- :host {
10
- all: initial;
11
- color-scheme: light dark;
12
- display: block;
13
- color: CanvasText;
14
- font-family: system-ui, sans-serif;
15
-
16
- /*
17
- * `all: initial` plus a closed shadow root means nothing inherits, so every
18
- * token the imported stylesheets read has to be restated here. A token that
19
- * is missing does not fall back to the page value — it resolves to nothing
20
- * and the declaration is dropped, which is silent. Keep this list in step
21
- * with what the imported component stylesheets actually use.
22
- *
23
- * These are px, not rem, and that is the point. This bundle renders in an
24
- * active-tab content script, and `rem` resolves against the host page's root
25
- * element — a page setting `html { font-size: 10px }` would shrink the whole
26
- * preview by a third. `all: initial` does not isolate that; nothing does.
27
- * A surface drawn on a page we do not control has to carry its own units.
28
- */
29
- --sigvelo-spacing-0-5: 2px;
30
- --sigvelo-spacing-1: 4px;
31
- --sigvelo-spacing-1-5: 6px;
32
- --sigvelo-spacing-2: 8px;
33
- --sigvelo-spacing-3: 12px;
34
- --sigvelo-spacing-4: 16px;
35
- --sigvelo-spacing-5: 20px;
36
- --sigvelo-spacing-6: 24px;
37
- --sigvelo-spacing-8: 32px;
38
- --sigvelo-spacing-10: 40px;
39
- --sigvelo-spacing-12: 48px;
40
- --sigvelo-spacing-14: 56px;
41
- --sigvelo-radius-md: 8px;
42
- --sigvelo-radius-lg: 12px;
43
- --sigvelo-radius-xs: 3px;
44
- --sigvelo-radius-full: 9999px;
45
- --sigvelo-border-style: solid;
46
- --sigvelo-border-width-hairline: 0.5px;
47
- --sigvelo-border-width: 1px;
48
- --sigvelo-text-compact: 13px;
49
- --sigvelo-text-xs: 12px;
50
- --sigvelo-font-weight-normal: 400;
51
- --sigvelo-font-weight-semibold: 500;
52
- --sigvelo-control-height-sm: 32px;
53
- --sigvelo-control-height-xl: 44px;
54
- --sigvelo-control-icon-size-sm: 14px;
55
- --sigvelo-control-icon-size-md: 16px;
56
- --sigvelo-control-icon-size-lg: 18px;
57
- --sigvelo-duration-fast: 150ms;
58
- --sigvelo-motion-duration-shimmer: 2400ms;
59
- --sigvelo-motion-duration-spin: 900ms;
60
- --sigvelo-ease-standard: cubic-bezier(0.2, 0, 0, 1);
61
- --sigvelo-color-surface: Canvas;
62
- --sigvelo-color-surface-raised: Canvas;
63
- --sigvelo-color-shadow: black;
64
- --sigvelo-color-text: CanvasText;
65
- --sigvelo-color-text-muted: GrayText;
66
- --sigvelo-color-primary-text: LinkText;
67
- --sigvelo-color-primary-bg: CanvasText;
68
- --sigvelo-color-primary-text-on-bg: Canvas;
69
- --sigvelo-color-warning-text: #8a4b00;
70
- --sigvelo-color-neutral-bg-subtle: color-mix(in oklab, CanvasText 7%, Canvas);
71
- --sigvelo-elevation-raised:
72
- 0 0 0 0.5px color-mix(in oklab, CanvasText 8%, transparent),
73
- 0 1px 2px -1px color-mix(in oklab, CanvasText 8%, transparent);
74
- --sigvelo-recipe-focus-shadow: 0 0 0 2px Canvas, 0 0 0 4px Highlight;
75
- }
76
-
77
- :host *,
78
- :host *::before,
79
- :host *::after {
80
- box-sizing: border-box;
81
- }
82
-
83
- .agent-activity-preview {
84
- width: min(448px, 100%);
85
- }
86
-
87
- .agent-activity-preview__dismiss {
88
- display: grid;
89
- width: 32px;
90
- min-width: 32px;
91
- height: 32px;
92
- min-height: 32px;
93
- place-items: center;
94
- padding: 0;
95
- border: 0;
96
- font: inherit;
97
- appearance: none;
98
- cursor: pointer;
99
- }
100
-
101
- .agent-activity-preview__dismiss > svg {
102
- width: 14px;
103
- height: 14px;
104
- }
105
-
106
- .agent-activity-preview__dismiss:focus-visible {
107
- outline: none;
108
- box-shadow:
109
- 0 0 0 2px Canvas,
110
- 0 0 0 4px Highlight;
111
- }
112
-
113
- .agent-activity-preview__list {
114
- max-height: min(288px, 60dvh);
115
- }
116
-
117
- .agent-activity-preview__trailing {
118
- min-width: 16px;
119
- }
120
-
121
- .activity__favicon {
122
- display: block;
123
- width: 16px;
124
- height: 16px;
125
- border-radius: 3px;
126
- background-color: Canvas;
127
- object-fit: contain;
128
- }
129
-
130
- .sigvelo-icon--spinner {
131
- animation: agent-activity-preview-spin 900ms linear infinite;
132
- transform-origin: center;
133
- }
134
-
135
- @keyframes agent-activity-preview-spin {
136
- to {
137
- rotate: 1turn;
138
- }
139
- }
140
-
141
- /* Shadow-local copy of base.css's sigvelo-text-shimmer — keyframes do not cross
142
- shadow roots, so the imported activity header shimmer needs it defined here.
143
- --sigvelo-motion-duration-shimmer inherits across the boundary. */
144
- @keyframes sigvelo-text-shimmer {
145
- from {
146
- background-position: 100% 0;
147
- }
148
- to {
149
- background-position: -100% 0;
150
- }
151
- }
152
-
153
- @media (prefers-color-scheme: dark) {
154
- :host {
155
- --sigvelo-color-warning-text: #f0aa45;
156
- }
157
- }
158
-
159
- @media (prefers-reduced-motion: reduce) {
160
- .sigvelo-icon--spinner {
161
- animation: none;
162
- }
163
- }
164
-
165
- @media (forced-colors: active) {
166
- :host {
167
- --sigvelo-color-warning-text: MarkText;
168
- }
169
- }
@@ -1,209 +0,0 @@
1
- .agent-activity-preview {
2
- position: relative;
3
- width: min(28rem, 100%);
4
- min-width: 0;
5
- padding: var(--sigvelo-spacing-2);
6
- border-radius: var(--sigvelo-radius-lg);
7
- color: var(--sigvelo-color-text);
8
- background: var(--sigvelo-color-surface-raised);
9
- box-shadow: var(--sigvelo-elevation-raised);
10
- }
11
-
12
- .agent-activity-preview__badge {
13
- position: absolute;
14
- inset-block-start: calc(-1 * var(--sigvelo-spacing-2));
15
- inset-inline-end: var(--sigvelo-spacing-1);
16
- display: grid;
17
- place-items: center;
18
- width: var(--sigvelo-control-height-sm);
19
- height: var(--sigvelo-control-height-sm);
20
- border-radius: var(--sigvelo-radius-full);
21
- color: var(--sigvelo-color-primary-text);
22
- background: var(--sigvelo-color-surface-raised);
23
- box-shadow: var(--sigvelo-elevation-raised);
24
- }
25
-
26
- .agent-activity-preview__badge > svg {
27
- width: var(--sigvelo-control-icon-size-md);
28
- height: var(--sigvelo-control-icon-size-md);
29
- }
30
-
31
- .agent-activity-preview__dismiss {
32
- position: absolute;
33
- z-index: 1;
34
- inset-block-start: calc(-1 * var(--sigvelo-spacing-2));
35
- inset-inline-end: var(--sigvelo-spacing-1);
36
- border-radius: var(--sigvelo-radius-full);
37
- color: var(--sigvelo-color-text-muted);
38
- background: var(--sigvelo-color-surface-raised);
39
- box-shadow: var(--sigvelo-elevation-raised);
40
- opacity: 0;
41
- scale: 0.92;
42
- transition:
43
- color var(--sigvelo-duration-fast) var(--sigvelo-ease-standard),
44
- opacity var(--sigvelo-duration-fast) var(--sigvelo-ease-standard),
45
- scale var(--sigvelo-duration-fast) var(--sigvelo-ease-standard);
46
- }
47
-
48
- .agent-activity-preview:hover .agent-activity-preview__dismiss,
49
- .agent-activity-preview:focus-within .agent-activity-preview__dismiss,
50
- .agent-activity-preview__dismiss:focus-visible {
51
- opacity: 1;
52
- scale: 1;
53
- }
54
-
55
- .agent-activity-preview__dismiss:hover:not([data-disabled]) {
56
- color: var(--sigvelo-color-text);
57
- background: var(--sigvelo-color-surface-raised);
58
- }
59
-
60
- .agent-activity-preview__row:focus-visible,
61
- .agent-activity-preview__file-action:focus-visible {
62
- outline: none;
63
- box-shadow: var(--sigvelo-recipe-focus-shadow);
64
- }
65
-
66
- .agent-activity-preview__list {
67
- display: grid;
68
- gap: var(--sigvelo-spacing-0-5);
69
- max-height: min(18rem, 60dvh);
70
- padding: 0;
71
- margin: 0;
72
- overflow-y: auto;
73
- list-style: none;
74
- }
75
-
76
- .agent-activity-preview__item {
77
- display: grid;
78
- grid-template-columns: minmax(0, 1fr) auto;
79
- align-items: stretch;
80
- gap: var(--sigvelo-spacing-0-5);
81
- min-width: 0;
82
- }
83
-
84
- .agent-activity-preview__item:first-child {
85
- padding-inline-end: calc(var(--sigvelo-spacing-8) + var(--sigvelo-spacing-0-5));
86
- }
87
-
88
- .agent-activity-preview__row {
89
- display: block;
90
- width: 100%;
91
- min-width: 0;
92
- min-height: var(--sigvelo-control-height-sm);
93
- padding: var(--sigvelo-spacing-1-5);
94
- border: 0;
95
- border-radius: var(--sigvelo-radius-md);
96
- color: inherit;
97
- background: transparent;
98
- font: inherit;
99
- text-decoration: none;
100
- cursor: pointer;
101
- transition:
102
- background-color var(--sigvelo-duration-fast) var(--sigvelo-ease-standard),
103
- transform var(--sigvelo-duration-fast) var(--sigvelo-ease-standard);
104
- }
105
-
106
- .agent-activity-preview__row:hover {
107
- background: var(--sigvelo-color-neutral-bg-subtle);
108
- transform: translateY(-1px);
109
- }
110
-
111
- .agent-activity-preview__file-action {
112
- display: grid;
113
- place-items: center;
114
- min-width: var(--sigvelo-control-height-sm);
115
- min-height: var(--sigvelo-control-height-sm);
116
- padding: var(--sigvelo-spacing-1-5);
117
- border: 0;
118
- border-radius: var(--sigvelo-radius-md);
119
- color: var(--sigvelo-color-text-muted);
120
- background: transparent;
121
- text-decoration: none;
122
- cursor: pointer;
123
- transition:
124
- color var(--sigvelo-duration-fast) var(--sigvelo-ease-standard),
125
- background-color var(--sigvelo-duration-fast) var(--sigvelo-ease-standard);
126
- }
127
-
128
- .agent-activity-preview__file-action:hover {
129
- color: var(--sigvelo-color-text);
130
- background: var(--sigvelo-color-neutral-bg-subtle);
131
- }
132
-
133
- .agent-activity-preview__file-action > svg {
134
- width: var(--sigvelo-control-icon-size-md);
135
- height: var(--sigvelo-control-icon-size-md);
136
- }
137
-
138
- .agent-activity-preview__row .activity__header {
139
- gap: var(--sigvelo-spacing-2);
140
- }
141
-
142
- .agent-activity-preview__row .activity__header-action {
143
- max-width: none;
144
- }
145
-
146
- .agent-activity-preview__trailing {
147
- display: flex;
148
- flex: none;
149
- align-items: center;
150
- gap: var(--sigvelo-spacing-2);
151
- min-width: 1rem;
152
- }
153
-
154
- .agent-activity-preview__trailing > svg {
155
- width: var(--sigvelo-control-icon-size-md);
156
- height: var(--sigvelo-control-icon-size-md);
157
- }
158
-
159
- .agent-activity-preview__row[data-status="running"] .agent-activity-preview__trailing > svg,
160
- .agent-activity-preview__row[data-status="unviewed"] .agent-activity-preview__trailing {
161
- color: var(--sigvelo-color-primary-text);
162
- }
163
-
164
- .agent-activity-preview__row[data-status="input-required"] .agent-activity-preview__trailing > svg {
165
- color: var(--sigvelo-color-warning-text);
166
- }
167
-
168
- .agent-activity-preview__unviewed-dot {
169
- width: var(--sigvelo-spacing-2);
170
- height: var(--sigvelo-spacing-2);
171
- border-radius: var(--sigvelo-radius-full);
172
- background: currentColor;
173
- }
174
-
175
- @media (pointer: coarse) {
176
- .agent-activity-preview__dismiss {
177
- opacity: 1;
178
- scale: 1;
179
- }
180
-
181
- .agent-activity-preview__row,
182
- .agent-activity-preview__file-action {
183
- min-height: var(--sigvelo-control-height-xl);
184
- }
185
- }
186
-
187
- @media (prefers-reduced-motion: reduce) {
188
- .agent-activity-preview__dismiss,
189
- .agent-activity-preview__row,
190
- .agent-activity-preview__file-action {
191
- transition: none;
192
- }
193
-
194
- .agent-activity-preview__row:hover {
195
- transform: none;
196
- }
197
- }
198
-
199
- @media (forced-colors: active) {
200
- .agent-activity-preview {
201
- outline: 1px solid CanvasText;
202
- }
203
-
204
- .agent-activity-preview__badge,
205
- .agent-activity-preview__dismiss,
206
- .agent-activity-preview__file-action {
207
- border: var(--sigvelo-border-style) var(--sigvelo-border-width) CanvasText;
208
- }
209
- }