@mcp-b/react-components 0.68.0 → 0.70.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 (71) hide show
  1. package/dist/{AgentComputer-BP9ixGGE.js → AgentComputer-CFJxjMFE.js} +32 -3
  2. package/dist/ComputerFileThumbnail-CXHy127c.js +393 -0
  3. package/dist/Context-DQDumCV8.js +918 -0
  4. package/dist/{ThinkSchedule-D4Ulsa0-.d.ts → ThinkSchedule-9nzxIoX1.d.ts} +1 -1
  5. package/dist/{Workspace-B9nuTfIi.d.ts → Workspace-mZddFyvP.d.ts} +7 -3
  6. package/dist/{WorkspaceAutomation-C0fghGLi.d.ts → WorkspaceAutomation-hwl6C1aX.d.ts} +2 -2
  7. package/dist/{WorkspaceBrowser-Dz48H-7X.d.ts → WorkspaceBrowser-CNVAKXXZ.d.ts} +4 -11
  8. package/dist/{WorkspaceBrowser-oBJv-Dac.js → WorkspaceBrowser-ojoZy0uO.js} +202 -210
  9. package/dist/{WorkspaceConcept-D46cYerS.d.ts → WorkspaceConcept-DqzfZWws.d.ts} +1 -1
  10. package/dist/{WorkspaceFileCommands-1s9Ol8CG.d.ts → WorkspaceFileCommands-CN2oVUzx.d.ts} +5 -2
  11. package/dist/{WorkspaceFileTransfer-BRD22nW-.d.ts → WorkspaceFileTransfer-D--dVla2.d.ts} +1 -1
  12. package/dist/components/agents-sdk/AgentComputer.d.ts +1 -1
  13. package/dist/components/agents-sdk/AgentComputer.js +1 -1
  14. package/dist/components/agents-sdk/ComputerAppIds.d.ts +15 -0
  15. package/dist/components/agents-sdk/ComputerAppIds.js +14 -0
  16. package/dist/components/agents-sdk/ComputerAutomations.d.ts +23 -14
  17. package/dist/components/agents-sdk/ComputerAutomations.js +437 -354
  18. package/dist/components/agents-sdk/ComputerCalendar.js +16 -15
  19. package/dist/components/agents-sdk/ComputerCustomWallpaper.js +186 -171
  20. package/dist/components/agents-sdk/ComputerFileThumbnail.d.ts +5 -3
  21. package/dist/components/agents-sdk/ComputerFileThumbnail.js +1 -132
  22. package/dist/components/agents-sdk/ComputerFiles.d.ts +4 -6
  23. package/dist/components/agents-sdk/ComputerFiles.js +337 -316
  24. package/dist/components/agents-sdk/ComputerHome.js +1 -1
  25. package/dist/components/agents-sdk/ComputerLayout.d.ts +9 -0
  26. package/dist/components/agents-sdk/ComputerLayout.js +66 -0
  27. package/dist/components/agents-sdk/ComputerNotifications.js +60 -83
  28. package/dist/components/agents-sdk/ComputerScreen.d.ts +12 -6
  29. package/dist/components/agents-sdk/ComputerScreen.js +49 -36
  30. package/dist/components/agents-sdk/ComputerSettings.d.ts +10 -4
  31. package/dist/components/agents-sdk/ComputerSettings.js +92 -72
  32. package/dist/components/agents-sdk/ComputerSpotlight.js +1 -1
  33. package/dist/components/agents-sdk/EmployeeChat.js +1 -1
  34. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +2 -2
  35. package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
  36. package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
  37. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
  38. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  39. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  40. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +1 -1
  41. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  42. package/dist/components/agents-sdk/Workspace.js +197 -190
  43. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  44. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  45. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
  46. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  47. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  48. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  49. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +6 -6
  50. package/dist/components/agents-sdk/WorkspaceDesktop.js +126 -101
  51. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +2 -10
  52. package/dist/components/agents-sdk/WorkspaceExplorer.js +67 -71
  53. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +1 -1
  54. package/dist/components/agents-sdk/WorkspaceFileCommands.js +11 -6
  55. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +1 -1
  56. package/dist/components/agents-sdk/WorkspaceLive.d.ts +1 -1
  57. package/dist/components/agents-sdk/WorkspaceLive.js +7 -5
  58. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +1 -1
  59. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  60. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  61. package/dist/components/ai-sdk/Context.js +1 -842
  62. package/dist/components/ai-sdk/Plan.d.ts +33 -9
  63. package/dist/components/ai-sdk/Plan.js +336 -107
  64. package/dist/components/extension/FirstRunSetup.d.ts +2 -2
  65. package/dist/minute-clock-CXpRGCMF.js +35 -0
  66. package/dist/{parts-RXV6GGdB.js → parts-CPVz9l31.js} +1 -1
  67. package/dist/styles/plan.css +160 -23
  68. package/dist/{workspace-concept-panel-BDTBISNO.d.ts → workspace-concept-panel-D1czupvi.d.ts} +1 -1
  69. package/dist/{workspace-quick-look-9V-UFpjj.js → workspace-quick-look-DODjsfhH.js} +79 -251
  70. package/package.json +2 -2
  71. package/dist/progress-ring-BO649JA9.js +0 -79
@@ -1,5 +1,5 @@
1
1
  import { t as ThinkExecutionRun } from "./ThinkExecutionRun-QzZVWX75.js";
2
- import { i as WorkspaceAutomationInvocation } from "./WorkspaceAutomation-C0fghGLi.js";
2
+ import { i as WorkspaceAutomationInvocation } from "./WorkspaceAutomation-hwl6C1aX.js";
3
3
  import { ParsedDeclaredSchedule, ThinkScheduledTask, ThinkScheduledTaskSchedule } from "@cloudflare/think";
4
4
  import { Schedule } from "agents";
5
5
  //#region src/components/agents-sdk/ThinkSchedule.d.ts
@@ -84,7 +84,11 @@ declare function workspaceDirectoryQueryKey(sourceKey: string, root: string, pat
84
84
  type WorkspaceDirectoryQueryKey = ReturnType<typeof workspaceDirectoryQueryKey>;
85
85
  declare function workspaceFileQueryKey(sourceKey: string, root: string, requestedPath: string): readonly ["workspace", string, string, "file", string];
86
86
  type WorkspaceFileQueryKey = ReturnType<typeof workspaceFileQueryKey>;
87
- declare function workspaceInfoQueryKey(sourceKey: string, root: string): readonly ["workspace", string, string, "info"];
87
+ /**
88
+ * The source's summary. It does not depend on the root and each read is a
89
+ * whole-workspace aggregate, so every root of one source shares it.
90
+ */
91
+ declare function workspaceInfoQueryKey(sourceKey: string): readonly ["workspace", string, "info"];
88
92
  declare function workspaceFileVersion(target: WorkspaceFileReadTarget): {
89
93
  readonly path: string;
90
94
  readonly name: string;
@@ -97,7 +101,7 @@ declare function workspaceFileVersion(target: WorkspaceFileReadTarget): {
97
101
  };
98
102
  type WorkspaceFileVersion = ReturnType<typeof workspaceFileVersion>;
99
103
  type WorkspaceDirectoryQueryOptions = WorkspaceQueryOptions<readonly FileInfo[], WorkspaceDirectoryQueryKey>;
100
- type WorkspaceInfoQueryKey = readonly [...WorkspaceQueryKey, "info"];
104
+ type WorkspaceInfoQueryKey = ReturnType<typeof workspaceInfoQueryKey>;
101
105
  type WorkspaceInfoQueryOptions = WorkspaceQueryOptions<WorkspaceInfo, WorkspaceInfoQueryKey>;
102
106
  type WorkspaceFileStatQueryKey = readonly [...WorkspaceFileQueryKey, "stat"];
103
107
  type WorkspaceFileStatQueryOptions = WorkspaceQueryOptions<WorkspaceFileReadTarget, WorkspaceFileStatQueryKey>;
@@ -112,7 +116,7 @@ type WorkspaceBinaryFileQueryOptions = WorkspaceQueryOptions<WorkspaceResolvedAs
112
116
  /** Shared directory options for workspace components and route loaders. */
113
117
  declare function workspaceDirectoryQueryOptions(source: WorkspaceSource, sourceKey: string, root: string, path: string): WorkspaceDirectoryQueryOptions;
114
118
  /** Shared workspace-summary options for workspace components and route loaders. */
115
- declare function workspaceInfoQueryOptions(source: WorkspaceSource, sourceKey: string, root: string): WorkspaceInfoQueryOptions;
119
+ declare function workspaceInfoQueryOptions(source: WorkspaceSource, sourceKey: string): WorkspaceInfoQueryOptions;
116
120
  /** Re-stat and validate a requested path before any resolver or file read. */
117
121
  declare function workspaceFileStatQueryOptions(source: WorkspaceSource, sourceKey: string, root: string, requestedPath: string): WorkspaceFileStatQueryOptions;
118
122
  /** Optional host asset resolution, scoped to the current stat result. */
@@ -1,5 +1,5 @@
1
- import { t as WorkspaceConceptQueryOptions } from "./WorkspaceConcept-D46cYerS.js";
2
- import { n as WorkspaceConceptPanelProps, t as WorkspaceConceptFileProps } from "./workspace-concept-panel-BDTBISNO.js";
1
+ import { t as WorkspaceConceptQueryOptions } from "./WorkspaceConcept-DqzfZWws.js";
2
+ import { n as WorkspaceConceptPanelProps, t as WorkspaceConceptFileProps } from "./workspace-concept-panel-D1czupvi.js";
3
3
  import { a as ExecutionTrace, r as ExecutionGraph } from "./ExecutionBoard-DBj1Aiva.js";
4
4
  import * as React from "react";
5
5
  import { JSONValue } from "ai";
@@ -1,6 +1,6 @@
1
- import { b as WorkspaceState } from "./Workspace-B9nuTfIi.js";
2
- import { r as WorkspaceDragAndDrop } from "./WorkspaceFileTransfer-BRD22nW-.js";
3
- import { i as WorkspaceFileCommands, n as WorkspaceFileCommand } from "./WorkspaceFileCommands-1s9Ol8CG.js";
1
+ import { b as WorkspaceState } from "./Workspace-mZddFyvP.js";
2
+ import { r as WorkspaceDragAndDrop } from "./WorkspaceFileTransfer-D--dVla2.js";
3
+ import { i as WorkspaceFileCommands, n as WorkspaceFileCommand } from "./WorkspaceFileCommands-CN2oVUzx.js";
4
4
  import * as React from "react";
5
5
  import { FileInfo } from "@cloudflare/shell";
6
6
  //#region src/components/agents-sdk/WorkspaceBrowser.d.ts
@@ -47,13 +47,6 @@ interface WorkspaceBrowserProps {
47
47
  onDirectoryOpen?: (path: string) => void;
48
48
  /** App-owned anchor or router Link for a file destination. */
49
49
  renderFileLink?: (path: string) => React.ReactElement;
50
- /**
51
- * An entry's leading mark, when the host can draw the content itself: Finder
52
- * and Files both show an image's own thumbnail there in place of the generic
53
- * page. Returning nothing for an entry leaves it the default icon. The mark
54
- * sits in the row's icon slot, so it takes the row's icon size.
55
- */
56
- renderThumbnail?: (entry: FileInfo) => React.ReactNode;
57
50
  /**
58
51
  * In the list and grid layouts, rows drag, and the folder and its folders
59
52
  * take drops, as a Finder window does. A folder held under a drag opens
@@ -84,6 +77,6 @@ interface WorkspaceBrowserActions {
84
77
  run(command: WorkspaceFileCommand): void;
85
78
  }
86
79
  /** Workspace tree and filter surface, usable independently from the file preview. */
87
- declare function WorkspaceBrowser({ workspace, header, title, leading, actions, showFilter, filterPlaceholder, filter, onFilterChange, emptyState, onDirectoryOpen, renderFileLink, renderThumbnail, layout, sort, dragAndDrop, commands, renderPreview, actionsRef }: WorkspaceBrowserProps): React.JSX.Element;
80
+ declare function WorkspaceBrowser({ workspace, header, title, leading, actions, showFilter, filterPlaceholder, filter, onFilterChange, emptyState, onDirectoryOpen, renderFileLink, layout, sort, dragAndDrop, commands, renderPreview, actionsRef }: WorkspaceBrowserProps): React.JSX.Element;
88
81
  //#endregion
89
82
  export { WorkspaceBrowserSort as i, WorkspaceBrowserActions as n, WorkspaceBrowserProps as r, WorkspaceBrowser as t };