@mcp-b/react-components 0.65.0 → 0.67.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 (107) hide show
  1. package/dist/AgentComputer-BP9ixGGE.js +8093 -0
  2. package/dist/{ExecutionResult-CXnGcmM4.js → ExecutionResult-C7SzVquo.js} +1 -1
  3. package/dist/WallpaperPicker-C-FItmDS.d.ts +34 -0
  4. package/dist/WorkspaceBrowser-Dz48H-7X.d.ts +89 -0
  5. package/dist/{WorkspaceFileCommands-SNIjRgtU.d.ts → WorkspaceFileCommands-1s9Ol8CG.d.ts} +11 -3
  6. package/dist/{WorkspaceMessageResponse-CXGOQgpo.js → WorkspaceMessageResponse-BoeeltJM.js} +1 -1
  7. package/dist/assets/wallpapers/README.md +31 -0
  8. package/dist/assets/wallpapers/alpine.webp +0 -0
  9. package/dist/assets/wallpapers/dusk.webp +0 -0
  10. package/dist/assets/wallpapers/ember.webp +0 -0
  11. package/dist/assets/wallpapers/graphite.webp +0 -0
  12. package/dist/assets/wallpapers/sigvelo.webp +0 -0
  13. package/dist/assets/wallpapers/tide.webp +0 -0
  14. package/dist/automations-host-DPORjdc7.js +17 -0
  15. package/dist/components/agents-sdk/AgentComputer.d.ts +7 -1
  16. package/dist/components/agents-sdk/AgentComputer.js +1 -8044
  17. package/dist/components/agents-sdk/AgentScreenSwitcher.js +1 -0
  18. package/dist/components/agents-sdk/BrowserLiveScreen.d.ts +7 -1
  19. package/dist/components/agents-sdk/BrowserLiveScreen.js +259 -257
  20. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +2 -0
  21. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -0
  22. package/dist/components/agents-sdk/ComputerAutomations.d.ts +70 -0
  23. package/dist/components/agents-sdk/ComputerAutomations.js +1410 -0
  24. package/dist/components/agents-sdk/ComputerCalendar.d.ts +7 -0
  25. package/dist/components/agents-sdk/ComputerCalendar.js +1344 -0
  26. package/dist/components/agents-sdk/ComputerFiles.d.ts +153 -0
  27. package/dist/components/agents-sdk/ComputerFiles.js +2401 -0
  28. package/dist/components/agents-sdk/ComputerHome.d.ts +15 -0
  29. package/dist/components/agents-sdk/ComputerHome.js +90 -0
  30. package/dist/components/agents-sdk/ComputerNotifications.d.ts +54 -0
  31. package/dist/components/agents-sdk/ComputerNotifications.js +692 -0
  32. package/dist/components/agents-sdk/ComputerScreen.d.ts +78 -0
  33. package/dist/components/agents-sdk/ComputerScreen.js +750 -0
  34. package/dist/components/agents-sdk/ComputerSettings.d.ts +69 -0
  35. package/dist/components/agents-sdk/ComputerSettings.js +1371 -0
  36. package/dist/components/agents-sdk/ComputerSpotlight.d.ts +29 -0
  37. package/dist/components/agents-sdk/ComputerSpotlight.js +232 -0
  38. package/dist/components/agents-sdk/ComputerViewer.d.ts +51 -0
  39. package/dist/components/agents-sdk/ComputerViewer.js +339 -0
  40. package/dist/components/agents-sdk/ComputerWallpapers.d.ts +11 -0
  41. package/dist/components/agents-sdk/ComputerWallpapers.js +43 -0
  42. package/dist/components/agents-sdk/EmployeeApp.js +1 -1
  43. package/dist/components/agents-sdk/EmployeeChat.js +1 -1
  44. package/dist/components/agents-sdk/EmployeeChrome.js +4 -4
  45. package/dist/components/agents-sdk/EmployeeSchedules.js +3 -3
  46. package/dist/components/agents-sdk/EmployeeStartScreen.js +1 -1
  47. package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
  48. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  49. package/dist/components/agents-sdk/ManagerOfficeScreens.js +1 -1
  50. package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
  51. package/dist/components/agents-sdk/ModelSelector.js +1 -1
  52. package/dist/components/agents-sdk/ThinkChat.js +1 -1
  53. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +1 -1
  54. package/dist/components/agents-sdk/ThinkChatToolPanels.js +5 -5
  55. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
  56. package/dist/components/agents-sdk/ThinkFullApp.d.ts +13 -0
  57. package/dist/components/agents-sdk/ThinkFullApp.js +13 -0
  58. package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
  59. package/dist/components/agents-sdk/ThinkScheduleDetail.js +3 -3
  60. package/dist/components/agents-sdk/ThinkScheduleForm.js +4 -4
  61. package/dist/components/agents-sdk/WorkspaceAutomation.js +4 -4
  62. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
  63. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +2 -88
  64. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +1 -1
  65. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -1
  66. package/dist/components/agents-sdk/WorkspaceDocumentFrame.d.ts +17 -0
  67. package/dist/components/agents-sdk/WorkspaceDocumentFrame.js +90 -0
  68. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +4 -1
  69. package/dist/components/agents-sdk/WorkspaceExplorer.js +70 -66
  70. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -2
  71. package/dist/components/agents-sdk/WorkspaceFileCommands.js +346 -316
  72. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +7 -1
  73. package/dist/components/agents-sdk/WorkspaceFileView.js +83 -71
  74. package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
  75. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -4
  76. package/dist/components/agents-sdk/WorkspaceLive.js +18 -11
  77. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  78. package/dist/components/ai-sdk/ConnectedAppCards.js +1 -1
  79. package/dist/components/ai-sdk/Goal.d.ts +1 -2
  80. package/dist/components/ai-sdk/Goal.js +1 -2
  81. package/dist/components/extension/FirstRunSetup.js +5 -5
  82. package/dist/components/general-purpose/CommandPalette.d.ts +6 -1
  83. package/dist/components/general-purpose/CommandPalette.js +90 -82
  84. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  85. package/dist/components/general-purpose/ThemeModeControl.js +1 -1
  86. package/dist/components/general-purpose/WallpaperPicker.d.ts +2 -33
  87. package/dist/components/nanites/AgentConnection.js +1 -1
  88. package/dist/parts-RXV6GGdB.js +112 -0
  89. package/dist/styles/agent-computer.css +35 -0
  90. package/dist/styles/base.css +6 -0
  91. package/dist/styles/computer-app-tile.css +20 -0
  92. package/dist/styles/computer-automations.css +454 -0
  93. package/dist/styles/computer-calendar.css +648 -0
  94. package/dist/styles/computer-files.css +566 -0
  95. package/dist/styles/computer-home.css +90 -0
  96. package/dist/styles/computer-notifications.css +242 -0
  97. package/dist/styles/computer-screen.css +89 -0
  98. package/dist/styles/computer-settings.css +550 -0
  99. package/dist/styles/computer-spotlight.css +7 -0
  100. package/dist/styles/computer-viewer.css +130 -0
  101. package/dist/styles/index.css +11 -0
  102. package/dist/styles/recipes.css +42 -0
  103. package/dist/styles/workspace-document-frame.css +31 -0
  104. package/package.json +2 -2
  105. package/dist/{ManagerOffice-T79utm-P.js → ManagerOffice-kSK7vTBl.js} +1 -1
  106. package/dist/{WorkspaceLink-DDkj-Tq5.js → WorkspaceLink-DK9kdMUH.js} +1 -1
  107. package/dist/{connected-app-drafts-Bocdg3Z-.js → connected-app-drafts-C49343p9.js} +1 -1
@@ -4,8 +4,8 @@ import { t as capitalize } from "../../format-DL7f2rqp.js";
4
4
  import { Button } from "../foundations/Button.js";
5
5
  import { n as mergeRefs } from "../../merge-refs-DTX97mLp.js";
6
6
  import { t as isAtMostRem } from "../../container-width-C43ccJ84.js";
7
- import { AppTopBar } from "./AppTopBar.js";
8
7
  import { n as ShellAppBarOutletContext, r as createAppBarOutlet, t as ContentAppBarOutletContext } from "../../app-bar-outlet-BEIGl9iF.js";
8
+ import { AppTopBar } from "./AppTopBar.js";
9
9
  import { ResizableSidePanel } from "./ResizableSidePanel.js";
10
10
  import { c } from "react/compiler-runtime";
11
11
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import { G as MoonIcon, W as MonitorIcon, ct as SunIcon } from "../../icons-nLTnB9kd.js";
2
- import { useTheme } from "../foundations/ThemeProvider.js";
3
2
  import { Radio, RadioGroup } from "../foundations/RadioGroup.js";
3
+ import { useTheme } from "../foundations/ThemeProvider.js";
4
4
  import { c } from "react/compiler-runtime";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/general-purpose/ThemeModeControl.tsx
@@ -1,33 +1,2 @@
1
- import { ComponentPropsWithRef, ReactNode } from "react";
2
- //#region src/components/general-purpose/WallpaperPicker.d.ts
3
- /** One host-supplied background. */
4
- export interface WallpaperOption {
5
- /** Stable identifier stored by the consuming application. */
6
- value: string;
7
- /** Visible and accessible name for this background. */
8
- label: string;
9
- /** Trusted CSS background shorthand supplied by the host. */
10
- background: string;
11
- /**
12
- * The same picture's dark variant, as a background shorthand. It fades in
13
- * over `background` while the document is dark: `data-theme="dark"`, or no
14
- * `data-theme` and a dark OS.
15
- */
16
- darkBackground?: string;
17
- }
18
- /** Props for {@link WallpaperPicker}. */
19
- export interface WallpaperPickerProps extends Omit<ComponentPropsWithRef<"div">, "children" | "aria-label"> {
20
- /** References a visible label for the thumbnail radio group. Defaults to its heading. */
21
- "aria-labelledby"?: string;
22
- /** Host-owned backgrounds. The picker owns no catalog or persistent state. */
23
- wallpapers: readonly WallpaperOption[];
24
- /** The selected wallpaper identifier. */
25
- value: string;
26
- /** Selection applies immediately. Arrow keys also select a background. */
27
- onValueChange: (value: string) => void;
28
- /** Host controls beside the current preview, such as a theme preference. */
29
- selectionControls?: ReactNode;
30
- }
31
- /** A wallpaper preview and thumbnail gallery over the shared radio-group contract. */
32
- export declare function WallpaperPicker({ wallpapers, value, onValueChange, selectionControls, className, "aria-labelledby": ariaLabelledBy, ...props }: WallpaperPickerProps): import("react").JSX.Element;
33
- //#endregion
1
+ import { n as WallpaperPicker, r as WallpaperPickerProps, t as WallpaperOption } from "../../WallpaperPicker-C-FItmDS.js";
2
+ export { WallpaperOption, WallpaperPicker, WallpaperPickerProps };
@@ -1,9 +1,9 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
2
  import { F as LinkIcon } from "../../icons-nLTnB9kd.js";
3
3
  import { Button } from "../foundations/Button.js";
4
+ import { ToggleGroup } from "../foundations/ToggleGroup.js";
4
5
  import { Popover } from "../foundations/Popover.js";
5
6
  import { a as CodeBlockCopyButton, i as CodeBlockContent, n as CodeBlockActions, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock } from "../../CodeBlock-dt0L8md0.js";
6
- import { ToggleGroup } from "../foundations/ToggleGroup.js";
7
7
  import { c } from "react/compiler-runtime";
8
8
  import * as React from "react";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -0,0 +1,112 @@
1
+ import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "./AgentComputer-BP9ixGGE.js";
2
+ import { c } from "react/compiler-runtime";
3
+ import * as React from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/components/_internal/computer-apps/parts.tsx
6
+ /**
7
+ * The shell's parts for an app whose state lives in one hook. Call it once,
8
+ * at module level: the hook runs in the app's Provider, so its state lasts
9
+ * while the app runs (closing hides it) and quitting discards it.
10
+ */
11
+ function computerAppParts(useModel, parts = {}) {
12
+ const Model = React.createContext(null);
13
+ function useModelState() {
14
+ const $ = c(5);
15
+ const { phone } = useAgentComputerWindow();
16
+ const t0 = React.use(Model);
17
+ let t1;
18
+ if ($[0] !== phone) {
19
+ t1 = { phone };
20
+ $[0] = phone;
21
+ $[1] = t1;
22
+ } else t1 = $[1];
23
+ let t2;
24
+ if ($[2] !== t0 || $[3] !== t1) {
25
+ t2 = [t0, t1];
26
+ $[2] = t0;
27
+ $[3] = t1;
28
+ $[4] = t2;
29
+ } else t2 = $[4];
30
+ return t2;
31
+ }
32
+ function Provider(t0) {
33
+ const $ = c(6);
34
+ const { children } = t0;
35
+ const model = useModel();
36
+ let t1;
37
+ if ($[0] !== model.beforeQuit || $[1] !== model.onKeyDown) {
38
+ t1 = {
39
+ onKeyDown: model.onKeyDown,
40
+ beforeQuit: model.beforeQuit
41
+ };
42
+ $[0] = model.beforeQuit;
43
+ $[1] = model.onKeyDown;
44
+ $[2] = t1;
45
+ } else t1 = $[2];
46
+ useAgentComputerAppHandlers(t1);
47
+ let t2;
48
+ if ($[3] !== children || $[4] !== model) {
49
+ t2 = /* @__PURE__ */ jsx(Model, {
50
+ value: model,
51
+ children
52
+ });
53
+ $[3] = children;
54
+ $[4] = model;
55
+ $[5] = t2;
56
+ } else t2 = $[5];
57
+ return t2;
58
+ }
59
+ function Title() {
60
+ const $ = c(3);
61
+ const [model, state] = useModelState();
62
+ let t0;
63
+ if ($[0] !== model || $[1] !== state) {
64
+ t0 = model.renderTitle?.(state);
65
+ $[0] = model;
66
+ $[1] = state;
67
+ $[2] = t0;
68
+ } else t0 = $[2];
69
+ return t0;
70
+ }
71
+ function Menus() {
72
+ const $ = c(3);
73
+ const [model, state] = useModelState();
74
+ let t0;
75
+ if ($[0] !== model || $[1] !== state) {
76
+ t0 = model.renderMenus?.(state);
77
+ $[0] = model;
78
+ $[1] = state;
79
+ $[2] = t0;
80
+ } else t0 = $[2];
81
+ return t0;
82
+ }
83
+ function Content() {
84
+ const $ = c(3);
85
+ const [model, state] = useModelState();
86
+ let t0;
87
+ if ($[0] !== model || $[1] !== state) {
88
+ t0 = model.render(state);
89
+ $[0] = model;
90
+ $[1] = state;
91
+ $[2] = t0;
92
+ } else t0 = $[2];
93
+ return t0;
94
+ }
95
+ return {
96
+ Provider,
97
+ Title: parts.title ? Title : void 0,
98
+ Menus: parts.menus ? Menus : void 0,
99
+ Content
100
+ };
101
+ }
102
+ /** Tahoe's app icon: one squircle tile under a first-party mark. */
103
+ function computerAppTile(mark, plate) {
104
+ return /* @__PURE__ */ jsx("span", {
105
+ className: "computer-app-tile",
106
+ style: plate ? { background: plate } : void 0,
107
+ "aria-hidden": "true",
108
+ children: mark
109
+ });
110
+ }
111
+ //#endregion
112
+ export { computerAppTile as n, computerAppParts as t };
@@ -26,6 +26,16 @@
26
26
  * Apple's and keeps the four columns on a 90.8 pitch against the measured
27
27
  * 90.7.
28
28
  */
29
+ /* The shell's geometry and planes, as the hooks its apps' sheets read. */
30
+ --sigvelo-recipe-computer-nav-height: var(--computer-nav-height);
31
+ --sigvelo-recipe-computer-nav-plane: var(--computer-nav-plane);
32
+ --sigvelo-recipe-computer-card-plane: var(--computer-card-plane);
33
+ --sigvelo-recipe-computer-window-lights-run: var(--computer-window-lights-run);
34
+ --sigvelo-recipe-computer-app-tile: var(--computer-app-tile);
35
+ --sigvelo-recipe-computer-home-row: var(--computer-home-row);
36
+ --sigvelo-recipe-computer-widget-radius: var(--computer-widget-radius);
37
+ --sigvelo-recipe-inset-group-background: var(--computer-card-plane);
38
+ --sigvelo-recipe-inset-group-shadow: var(--computer-card-elevation);
29
39
  --computer-app-tile: 4rem; /* 63.4pt Home and Dock icon, ref 72px / 1.135 */
30
40
  /* One Home cell: a 63.4pt tile and the 34pt band that carries its label.
31
41
  Every Home row is this tall — widgets span two of them — so a row never
@@ -393,6 +403,13 @@
393
403
  .agent-computer:not([data-home]) .agent-computer__home {
394
404
  visibility: hidden;
395
405
  }
406
+ /* A wide computer with a desktop shows its files where Home's grid would be;
407
+ the phone keeps Home. */
408
+ @container agent-computer (inline-size > 48rem) {
409
+ .agent-computer[data-desktop] .agent-computer__home {
410
+ display: none;
411
+ }
412
+ }
396
413
  /* Minimizing or closing the last window leaves the desktop with no active app,
397
414
  which is the same state as showing Home — but a window parked in the Dock is
398
415
  on the Dock, not on the desktop, and one that is still seeing itself out has
@@ -1762,3 +1779,21 @@
1762
1779
  inline-size: 1.125em;
1763
1780
  block-size: 0.875em;
1764
1781
  }
1782
+
1783
+ /* The last status item: date then time, with figures that hold their width
1784
+ for a minute. A narrower bar keeps only the time, and the phone's status
1785
+ bar has its own. */
1786
+ .computer-clock {
1787
+ display: inline-flex;
1788
+ gap: var(--sigvelo-spacing-1-5);
1789
+ white-space: nowrap;
1790
+ font-variant-numeric: tabular-nums;
1791
+ }
1792
+ @container agent-computer (48rem < inline-size <= 64rem) {
1793
+ .computer-clock > span:first-child {
1794
+ display: none;
1795
+ }
1796
+ }
1797
+ :where(.agent-computer[data-phone]) .computer-clock {
1798
+ display: none;
1799
+ }
@@ -44,6 +44,11 @@
44
44
  .chain-of-thought__search-result,
45
45
  .chain-of-thought__step-indicator,
46
46
  .codex-model-selector__trigger,
47
+ .computer-automations__agenda-mark,
48
+ :where(.agent-computer[data-phone]) .computer-automations__location-bar,
49
+ .computer-calendar__event-dot,
50
+ .computer-calendar__event-indicator,
51
+ .computer-calendar__number,
47
52
  .empty-state__icon,
48
53
  .execution-board__step .react-flow__handle,
49
54
  .first-run-pin__omnibox,
@@ -94,6 +99,7 @@
94
99
  :where(.agent-computer__window-control)::before,
95
100
  :where(.browser-replay .replayer-mouse)::after,
96
101
  :where(.codex-model-selector__trigger)::before,
102
+ :where(.computer-viewer__home-indicator)::before,
97
103
  :where(.github-motion-mark)::before,
98
104
  :where(.github-motion-mark)::after,
99
105
  :where(.manager-office__employee-nav)::-webkit-scrollbar-thumb,
@@ -0,0 +1,20 @@
1
+ /* Tahoe's app icon: one squircle tile under a first-party mark. */
2
+ .computer-app-tile,
3
+ .computer-app-calendar {
4
+ border-radius: var(--sigvelo-radius-squircle);
5
+ box-shadow: var(--sigvelo-elevation-raised);
6
+ }
7
+
8
+ .computer-app-tile {
9
+ display: grid;
10
+ place-items: center;
11
+ inline-size: 100%;
12
+ block-size: 100%;
13
+ background: light-dark(#fff, #2c2c2e);
14
+ forced-color-adjust: none;
15
+ }
16
+
17
+ .computer-app-tile > :is(svg, img) {
18
+ inline-size: 70%;
19
+ block-size: 70%;
20
+ }