@mcp-b/react-components 0.65.0 → 0.66.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-2uYB8kmu.js +8084 -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-BxJC0QVb.js +112 -0
  89. package/dist/styles/agent-computer.css +28 -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
@@ -0,0 +1,15 @@
1
+ import { AgentComputerApp } from "./AgentComputer.js";
2
+ //#region src/components/agents-sdk/ComputerHome.d.ts
3
+ export interface ComputerHomeProps {
4
+ /** The computer's apps. Windows owned by another app and hidden apps are left out. */
5
+ apps: readonly AgentComputerApp[];
6
+ /** Open the workspace search, typically `ComputerSpotlight`. */
7
+ onSearch: () => void;
8
+ }
9
+ /**
10
+ * Home: the launchpad and the workspace search, for `AgentComputer`'s `home`.
11
+ * A launcher opens its app from its own icon. On a phone the Dock's favorites
12
+ * are not repeated, as iOS never repeats a Dock app on the Home page.
13
+ */
14
+ export declare function ComputerHome({ apps, onSearch }: ComputerHomeProps): import("react").JSX.Element;
15
+ //#endregion
@@ -0,0 +1,90 @@
1
+ import { tt as SearchIcon } from "../../icons-nLTnB9kd.js";
2
+ import { Button } from "../foundations/Button.js";
3
+ import { AppIcon } from "../foundations/AppIcon.js";
4
+ import { n as useAgentComputerActions } from "../../AgentComputer-2uYB8kmu.js";
5
+ import { c } from "react/compiler-runtime";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ //#region src/components/agents-sdk/ComputerHome.tsx
8
+ /**
9
+ * Home: the launchpad and the workspace search, for `AgentComputer`'s `home`.
10
+ * A launcher opens its app from its own icon. On a phone the Dock's favorites
11
+ * are not repeated, as iOS never repeats a Dock app on the Home page.
12
+ */
13
+ function ComputerHome(t0) {
14
+ const $ = c(13);
15
+ const { apps, onSearch } = t0;
16
+ const { openApp } = useAgentComputerActions();
17
+ let t1;
18
+ if ($[0] !== apps || $[1] !== openApp) {
19
+ let t2;
20
+ if ($[3] !== openApp) {
21
+ t2 = (app_0) => /* @__PURE__ */ jsxs(Button, {
22
+ className: "computer-home__launcher",
23
+ "data-favorite": app_0.launcher === "favorite" ? "" : void 0,
24
+ variant: "ghost",
25
+ color: "neutral",
26
+ onClick: (event) => void openApp(app_0.id, { from: event.currentTarget.querySelector("[data-app-id]") ?? void 0 }),
27
+ children: [/* @__PURE__ */ jsx(AppIcon.Root, {
28
+ className: "computer-home__icon",
29
+ "data-app-id": app_0.id,
30
+ size: "2xl",
31
+ "aria-hidden": "true",
32
+ children: app_0.icon
33
+ }), /* @__PURE__ */ jsx("span", {
34
+ className: "computer-home__label",
35
+ children: app_0.label
36
+ })]
37
+ }, app_0.id);
38
+ $[3] = openApp;
39
+ $[4] = t2;
40
+ } else t2 = $[4];
41
+ t1 = apps.filter(_temp).map(t2);
42
+ $[0] = apps;
43
+ $[1] = openApp;
44
+ $[2] = t1;
45
+ } else t1 = $[2];
46
+ let t2;
47
+ if ($[5] !== t1) {
48
+ t2 = /* @__PURE__ */ jsx("nav", {
49
+ className: "computer-home__launchpad",
50
+ "aria-label": "Applications",
51
+ children: t1
52
+ });
53
+ $[5] = t1;
54
+ $[6] = t2;
55
+ } else t2 = $[6];
56
+ let t3;
57
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
58
+ t3 = /* @__PURE__ */ jsx(SearchIcon, {});
59
+ $[7] = t3;
60
+ } else t3 = $[7];
61
+ let t4;
62
+ if ($[8] !== onSearch) {
63
+ t4 = /* @__PURE__ */ jsxs(Button, {
64
+ className: "computer-home__search",
65
+ variant: "surface",
66
+ color: "neutral",
67
+ "aria-keyshortcuts": "Meta+K Control+K Alt+Space",
68
+ onClick: onSearch,
69
+ children: [t3, " Search workspace"]
70
+ });
71
+ $[8] = onSearch;
72
+ $[9] = t4;
73
+ } else t4 = $[9];
74
+ let t5;
75
+ if ($[10] !== t2 || $[11] !== t4) {
76
+ t5 = /* @__PURE__ */ jsxs("div", {
77
+ className: "computer-home",
78
+ children: [t2, t4]
79
+ });
80
+ $[10] = t2;
81
+ $[11] = t4;
82
+ $[12] = t5;
83
+ } else t5 = $[12];
84
+ return t5;
85
+ }
86
+ function _temp(app) {
87
+ return !app.owner && app.launcher !== "hidden";
88
+ }
89
+ //#endregion
90
+ export { ComputerHome };
@@ -0,0 +1,54 @@
1
+ import { t as WallpaperOption } from "../../WallpaperPicker-C-FItmDS.js";
2
+ import { ReactNode } from "react";
3
+ //#region src/components/agents-sdk/ComputerNotifications.d.ts
4
+ /** A source-owned notification. Opening or dismissing its banner never resolves the work. */
5
+ export interface ComputerNotification {
6
+ id: string;
7
+ /** The app it comes from, leading its card. */
8
+ source: string;
9
+ title: string;
10
+ body: string;
11
+ /** When it arrived, in epoch milliseconds; shown as a local time of day. */
12
+ at: number;
13
+ /** The source app's artwork. */
14
+ icon: ReactNode;
15
+ /** What opening it does, as the banner's keyboard action: "Open waiting tab". */
16
+ action: string;
17
+ /** Opens what it is about; its window grows out of the banner or card. */
18
+ onOpen: (from: Element) => void;
19
+ }
20
+ export interface ComputerClockProps {
21
+ /** The current instant in epoch milliseconds; a host on its own clock passes it. */
22
+ now?: () => number;
23
+ /** IANA zone the clock reads in; the reader's own zone by default. */
24
+ timeZone?: string;
25
+ }
26
+ /**
27
+ * The menu bar's date and time, as macOS ends its status items: "Mon Sep 7
28
+ * 9:41 AM", in a `<time>` with the instant shown, ticking on the minute. The
29
+ * child of `ComputerNotifications`.
30
+ */
31
+ export declare function ComputerClock({ now, timeZone }: ComputerClockProps): import("react").JSX.Element;
32
+ export interface ComputerNotificationsProps {
33
+ /** Newest first. A new id raises a banner once; an id that leaves takes its banner with it. */
34
+ items: readonly ComputerNotification[];
35
+ /** The menu-bar clock, `ComputerClock`, which opens Notification Center as macOS's does. */
36
+ children: ReactNode;
37
+ }
38
+ /**
39
+ * Notification Center behind the menu-bar clock, and the banners that
40
+ * announce each new notification, portalled into the computer. For
41
+ * `AgentComputer`'s `status`.
42
+ */
43
+ export declare function ComputerNotifications({ items, children }: ComputerNotificationsProps): import("react").JSX.Element;
44
+ export interface ComputerAppearanceMenuProps {
45
+ /** The wallpaper the computer shows. */
46
+ wallpaper: WallpaperOption;
47
+ /** Open the app that chooses wallpapers. */
48
+ onOpenWallpapers: () => void;
49
+ /** Quick appearance controls above the wallpaper row, such as a theme switch. */
50
+ children: ReactNode;
51
+ }
52
+ /** The menu bar's Appearance extra: quick controls and the way to the wallpaper app. */
53
+ export declare function ComputerAppearanceMenu({ wallpaper, onOpenWallpapers, children }: ComputerAppearanceMenuProps): import("react").JSX.Element;
54
+ //#endregion