@mcp-b/react-components 0.68.0 → 0.69.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 (64) hide show
  1. package/dist/{AgentComputer-BP9ixGGE.js → AgentComputer-CFJxjMFE.js} +32 -3
  2. package/dist/ComputerFileThumbnail-CXHy127c.js +393 -0
  3. package/dist/{ThinkSchedule-D4Ulsa0-.d.ts → ThinkSchedule-9nzxIoX1.d.ts} +1 -1
  4. package/dist/{Workspace-B9nuTfIi.d.ts → Workspace-mZddFyvP.d.ts} +7 -3
  5. package/dist/{WorkspaceAutomation-C0fghGLi.d.ts → WorkspaceAutomation-hwl6C1aX.d.ts} +2 -2
  6. package/dist/{WorkspaceBrowser-Dz48H-7X.d.ts → WorkspaceBrowser-CNVAKXXZ.d.ts} +4 -11
  7. package/dist/{WorkspaceBrowser-oBJv-Dac.js → WorkspaceBrowser-ojoZy0uO.js} +202 -210
  8. package/dist/{WorkspaceConcept-D46cYerS.d.ts → WorkspaceConcept-DqzfZWws.d.ts} +1 -1
  9. package/dist/{WorkspaceFileCommands-1s9Ol8CG.d.ts → WorkspaceFileCommands-CN2oVUzx.d.ts} +5 -2
  10. package/dist/{WorkspaceFileTransfer-BRD22nW-.d.ts → WorkspaceFileTransfer-D--dVla2.d.ts} +1 -1
  11. package/dist/components/agents-sdk/AgentComputer.d.ts +1 -1
  12. package/dist/components/agents-sdk/AgentComputer.js +1 -1
  13. package/dist/components/agents-sdk/ComputerAppIds.d.ts +15 -0
  14. package/dist/components/agents-sdk/ComputerAppIds.js +14 -0
  15. package/dist/components/agents-sdk/ComputerAutomations.d.ts +23 -14
  16. package/dist/components/agents-sdk/ComputerAutomations.js +437 -354
  17. package/dist/components/agents-sdk/ComputerCalendar.js +16 -15
  18. package/dist/components/agents-sdk/ComputerCustomWallpaper.js +186 -171
  19. package/dist/components/agents-sdk/ComputerFileThumbnail.d.ts +5 -3
  20. package/dist/components/agents-sdk/ComputerFileThumbnail.js +1 -132
  21. package/dist/components/agents-sdk/ComputerFiles.d.ts +4 -6
  22. package/dist/components/agents-sdk/ComputerFiles.js +337 -316
  23. package/dist/components/agents-sdk/ComputerHome.js +1 -1
  24. package/dist/components/agents-sdk/ComputerLayout.d.ts +9 -0
  25. package/dist/components/agents-sdk/ComputerLayout.js +66 -0
  26. package/dist/components/agents-sdk/ComputerNotifications.js +60 -83
  27. package/dist/components/agents-sdk/ComputerScreen.d.ts +12 -6
  28. package/dist/components/agents-sdk/ComputerScreen.js +49 -36
  29. package/dist/components/agents-sdk/ComputerSettings.d.ts +10 -4
  30. package/dist/components/agents-sdk/ComputerSettings.js +92 -72
  31. package/dist/components/agents-sdk/ComputerSpotlight.js +1 -1
  32. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +2 -2
  33. package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
  34. package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
  35. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
  36. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  37. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  38. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +1 -1
  39. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  40. package/dist/components/agents-sdk/Workspace.js +197 -190
  41. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  42. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  43. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
  44. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  45. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  46. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  47. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +6 -6
  48. package/dist/components/agents-sdk/WorkspaceDesktop.js +126 -101
  49. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +2 -10
  50. package/dist/components/agents-sdk/WorkspaceExplorer.js +67 -71
  51. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +1 -1
  52. package/dist/components/agents-sdk/WorkspaceFileCommands.js +11 -6
  53. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +1 -1
  54. package/dist/components/agents-sdk/WorkspaceLive.d.ts +1 -1
  55. package/dist/components/agents-sdk/WorkspaceLive.js +7 -5
  56. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +1 -1
  57. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  58. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  59. package/dist/components/extension/FirstRunSetup.d.ts +2 -2
  60. package/dist/minute-clock-CXpRGCMF.js +35 -0
  61. package/dist/{parts-RXV6GGdB.js → parts-CPVz9l31.js} +1 -1
  62. package/dist/{workspace-concept-panel-BDTBISNO.d.ts → workspace-concept-panel-D1czupvi.d.ts} +1 -1
  63. package/dist/{workspace-quick-look-9V-UFpjj.js → workspace-quick-look-DODjsfhH.js} +79 -251
  64. package/package.json +2 -2
@@ -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 { t as WorkspacePerson } from "../../workspace-person-BSgvRjZE.js";
4
4
  import * as React from "react";
5
5
  //#region src/components/agents-sdk/WorkspacePerson.d.ts
@@ -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 * as React from "react";
4
4
  //#region src/components/agents-sdk/WorkspaceProject.d.ts
5
5
  /** Who started a thread: the person, a schedule, a messenger, or first-run setup. */
@@ -1,5 +1,5 @@
1
- import { l as WorkspaceAutomationSource, t as WorkspaceAutomation } from "../../WorkspaceAutomation-C0fghGLi.js";
2
- import { t as ThinkSchedule } from "../../ThinkSchedule-D4Ulsa0-.js";
1
+ import { l as WorkspaceAutomationSource, t as WorkspaceAutomation } from "../../WorkspaceAutomation-hwl6C1aX.js";
2
+ import { t as ThinkSchedule } from "../../ThinkSchedule-9nzxIoX1.js";
3
3
  import { WorkspaceCorrespondence } from "../agents-sdk/WorkspaceCorrespondence.js";
4
4
  import { WorkspacePersonSource } from "../agents-sdk/WorkspacePerson.js";
5
5
  import { WorkspaceProjectSource } from "../agents-sdk/WorkspaceProject.js";
@@ -0,0 +1,35 @@
1
+ import { c } from "react/compiler-runtime";
2
+ import { useEffect, useState } from "react";
3
+ //#region src/components/_internal/computer-apps/minute-clock.ts
4
+ /** The instant `now` reads, read again on each minute boundary. */
5
+ function useMinuteClock(now) {
6
+ const $ = c(3);
7
+ const [instant, setInstant] = useState(now);
8
+ let t0;
9
+ let t1;
10
+ if ($[0] !== now) {
11
+ t0 = () => {
12
+ let timer;
13
+ const schedule = (current) => {
14
+ timer = setTimeout(() => {
15
+ const next = now();
16
+ setInstant(next);
17
+ schedule(next);
18
+ }, 6e4 - current % 6e4);
19
+ };
20
+ schedule(now());
21
+ return () => clearTimeout(timer);
22
+ };
23
+ t1 = [now];
24
+ $[0] = now;
25
+ $[1] = t0;
26
+ $[2] = t1;
27
+ } else {
28
+ t0 = $[1];
29
+ t1 = $[2];
30
+ }
31
+ useEffect(t0, t1);
32
+ return instant;
33
+ }
34
+ //#endregion
35
+ export { useMinuteClock as t };
@@ -1,4 +1,4 @@
1
- import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "./AgentComputer-BP9ixGGE.js";
1
+ import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "./AgentComputer-CFJxjMFE.js";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import * as React from "react";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import "./EmployeeChrome-kegSASjC.js";
2
- import "./WorkspaceConcept-D46cYerS.js";
2
+ import "./WorkspaceConcept-DqzfZWws.js";
3
3
  import { t as ConceptCardProps } from "./workspace-entity-card-2TC3RPKh.js";
4
4
  import * as React from "react";
5
5
  //#region src/components/_internal/workspace-concept-panel.d.ts
@@ -1,201 +1,28 @@
1
- import { desktopArtwork } from "./utils/desktop-artwork.js";
2
1
  import { g as ChevronRightIcon, gt as XIcon, h as ChevronLeftIcon } from "./icons-nLTnB9kd.js";
3
2
  import { Button } from "./components/foundations/Button.js";
4
3
  import { Dialog } from "./components/foundations/Dialog.js";
5
- import { AppIcon } from "./components/foundations/AppIcon.js";
6
4
  import { i as workspaceBasename } from "./workspace-path-TZggP-u4.js";
7
5
  import { i as PortalContext } from "./context-Ddsp8HgD.js";
8
6
  import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
7
+ import { a as hasModifier, r as FileGridArtwork, t as ComputerFileThumbnail } from "./ComputerFileThumbnail-CXHy127c.js";
9
8
  import { ContextMenu } from "./components/foundations/ContextMenu.js";
10
9
  import { workspaceFileCommandForKey } from "./components/agents-sdk/WorkspaceFileCommands.js";
11
10
  import { r as WorkspacePreviewFrame } from "./workspace-media-preview-B4iB5Tvi.js";
12
11
  import { c } from "react/compiler-runtime";
13
12
  import * as React from "react";
14
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
- //#region src/components/_internal/file-grid.tsx
16
- const OPTION$1 = "[data-workspace-path]";
17
- const ARROW_KEYS = /* @__PURE__ */ new Set([
18
- "ArrowDown",
19
- "ArrowUp",
20
- "ArrowLeft",
21
- "ArrowRight"
22
- ]);
23
- /** Whether a key or a press is modified, so a view's plain-key handling leaves it alone. */
24
- function hasModifier(event) {
25
- return event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
26
- }
27
- /** Arrow keys walk the icons the way the Finder does: by geometry, not DOM order. */
28
- function nextOption(options, index, key) {
29
- const vertical = key === "ArrowDown" || key === "ArrowUp";
30
- if (!vertical && key !== "ArrowLeft" && key !== "ArrowRight") return void 0;
31
- const axis = vertical ? "top" : "left";
32
- const cross = vertical ? "left" : "top";
33
- const forward = key === "ArrowDown" || key === "ArrowRight";
34
- const rects = options.map((option) => option.getBoundingClientRect());
35
- const current = rects[index];
36
- const candidates = rects.map((rect, i) => ({
37
- rect,
38
- i
39
- })).filter(({ rect }) => forward ? rect[axis] > current[axis] : rect[axis] < current[axis]);
40
- if (candidates.length === 0) return void 0;
41
- const nearest = (forward ? Math.min : Math.max)(...candidates.map(({ rect }) => rect[axis]));
42
- return candidates.filter(({ rect }) => rect[axis] === nearest).reduce((best, candidate) => Math.abs(candidate.rect[cross] - current[cross]) < Math.abs(best.rect[cross] - current[cross]) ? candidate : best).i;
43
- }
44
- /** The Finder's type-to-select pause: a longer gap starts a new name. */
45
- const TYPE_AHEAD_MS = 1e3;
46
- /**
47
- * Typing selects the first object whose name starts with what was typed;
48
- * repeating one letter steps through that letter's objects. Space joins the
49
- * name only once typing has begun, so on its own it stays Quick Look.
50
- */
51
- function typeAhead(event, typed, collection) {
52
- const list = event.currentTarget;
53
- const target = event.target;
54
- if (event.key.length !== 1 || event.altKey || event.ctrlKey || event.metaKey || event.nativeEvent.isComposing || target !== list && !target.matches(OPTION$1)) return;
55
- const text = event.timeStamp - typed.time > TYPE_AHEAD_MS ? "" : typed.text;
56
- if (event.key === " " && !text) return;
57
- typed.text = text + event.key.toLocaleLowerCase();
58
- typed.time = event.timeStamp;
59
- event.preventDefault();
60
- const options = [...list.querySelectorAll(OPTION$1)];
61
- const names = collection?.names ?? options.map((option) => option.dataset.fileGridName ?? "");
62
- const current = target === list ? -1 : optionIndex(options, target, collection);
63
- const first = typed.text[0];
64
- const cycling = typed.text.length > 1 && typed.text === first.repeat(typed.text.length);
65
- const indexes = names.map((_, index) => index);
66
- const order = cycling ? [...indexes.slice(current + 1), ...indexes.slice(0, current + 1)] : indexes;
67
- const prefix = cycling ? first : typed.text;
68
- const match = order.find((index) => names[index].toLocaleLowerCase().startsWith(prefix));
69
- if (match !== void 0) focusOption(options, match, collection);
70
- }
71
- /** An option's place among all the objects, drawn or not. */
72
- function optionIndex(options, option, collection) {
73
- return collection ? Number(option.ariaPosInSet) - 1 : options.indexOf(option);
74
- }
75
- function focusOption(options, index, collection) {
76
- if (collection) collection.focus(index);
77
- else options[index]?.focus();
78
- }
79
- /**
80
- * One listbox for every view of file objects — desktop icons, an icon grid, a
81
- * list of rows. It is one tab stop; arrow keys then move focus by geometry, so
82
- * the same handler walks a wrapped grid and a single column, and Home/End jump
83
- * to the ends. In an `aria-multiselectable` grid, Shift with those keys moves
84
- * focus as well, and the view extends its selection to it. Children are `<li role="none">` wrapping one element spread
85
- * with `fileGridOption()`. A keydown the host handles first (Escape, Space)
86
- * calls `preventDefault()` to keep it from moving focus. Typing a name
87
- * focuses the first object it starts, as the Finder's type-to-select does.
88
- */
89
- function FileGrid(t0) {
90
- const $ = c(16);
91
- let collection;
92
- let onKeyDown;
93
- let onKeyDownCapture;
94
- let props;
95
- if ($[0] !== t0) {
96
- ({onKeyDown, onKeyDownCapture, collection, ...props} = t0);
97
- $[0] = t0;
98
- $[1] = collection;
99
- $[2] = onKeyDown;
100
- $[3] = onKeyDownCapture;
101
- $[4] = props;
102
- } else {
103
- collection = $[1];
104
- onKeyDown = $[2];
105
- onKeyDownCapture = $[3];
106
- props = $[4];
107
- }
108
- let t1;
109
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
110
- t1 = {
111
- text: "",
112
- time: -Infinity
113
- };
114
- $[5] = t1;
115
- } else t1 = $[5];
116
- const typed = React.useRef(t1);
117
- let t2;
118
- if ($[6] !== collection || $[7] !== onKeyDownCapture) {
119
- t2 = (event) => {
120
- onKeyDownCapture?.(event);
121
- if (!event.defaultPrevented) typeAhead(event, typed.current, collection);
122
- };
123
- $[6] = collection;
124
- $[7] = onKeyDownCapture;
125
- $[8] = t2;
126
- } else t2 = $[8];
127
- let t3;
128
- if ($[9] !== collection || $[10] !== onKeyDown) {
129
- t3 = (event_0) => {
130
- onKeyDown?.(event_0);
131
- if (event_0.defaultPrevented || event_0.altKey || event_0.ctrlKey || event_0.metaKey || event_0.shiftKey && event_0.currentTarget.ariaMultiSelectable !== "true" || !event_0.currentTarget.contains(event_0.target)) return;
132
- const options = [...event_0.currentTarget.querySelectorAll(OPTION$1)];
133
- if (options.length === 0) return;
134
- const onList = event_0.target === event_0.currentTarget;
135
- const index = options.indexOf(event_0.target);
136
- if (index < 0 && !onList) return;
137
- const count = collection?.names.length ?? options.length;
138
- const end = event_0.key === "Home" ? 0 : event_0.key === "End" ? count - 1 : onList && ARROW_KEYS.has(event_0.key) ? 0 : void 0;
139
- if (end !== void 0) {
140
- event_0.preventDefault();
141
- focusOption(options, end, collection);
142
- return;
143
- }
144
- const next = nextOption(options, index, event_0.key);
145
- if (next === void 0) return;
146
- event_0.preventDefault();
147
- options[next]?.focus();
148
- };
149
- $[9] = collection;
150
- $[10] = onKeyDown;
151
- $[11] = t3;
152
- } else t3 = $[11];
153
- let t4;
154
- if ($[12] !== props || $[13] !== t2 || $[14] !== t3) {
155
- t4 = /* @__PURE__ */ jsx("ul", {
156
- role: "listbox",
157
- onKeyDownCapture: t2,
158
- onKeyDown: t3,
159
- ...props
160
- });
161
- $[12] = props;
162
- $[13] = t2;
163
- $[14] = t3;
164
- $[15] = t4;
165
- } else t4 = $[15];
166
- return t4;
167
- }
14
+ //#region src/components/_internal/workspace-file-tile.tsx
168
15
  /**
169
- * The option attributes for one file object: its path, the name typing
170
- * matches, its selection, and whether it is the grid's single tab stop (the
171
- * selected object, else the first).
16
+ * The volume a view's tiles draw thumbnails from: the desktop and Finder
17
+ * provide it, and a tile without one draws its kind's generic artwork.
172
18
  */
173
- function fileGridOption({ path, name, selected, tabStop, position }) {
174
- return {
175
- role: "option",
176
- "aria-selected": selected,
177
- "aria-posinset": position ? position.index + 1 : void 0,
178
- "aria-setsize": position?.count,
179
- tabIndex: tabStop ? 0 : -1,
180
- "data-workspace-path": path,
181
- "data-file-grid-name": name
182
- };
183
- }
184
- /** An object's picture: the host's thumbnail, else the Finder's generic folder or page. */
185
- function fileGridArtwork(entry, renderThumbnail) {
186
- return renderThumbnail?.(entry) ?? /* @__PURE__ */ jsx(AppIcon.Root, { children: /* @__PURE__ */ jsx(AppIcon.Image, {
187
- src: entry.type === "directory" ? desktopArtwork.folder : desktopArtwork.document,
188
- alt: ""
189
- }) });
190
- }
191
- //#endregion
192
- //#region src/components/_internal/workspace-file-tile.tsx
19
+ const WorkspaceThumbnailContext = React.createContext(null);
193
20
  /**
194
21
  * One file object in a `FileGrid`, on the desktop or in a folder: its
195
22
  * artwork, its name, its context menu and its rename field.
196
23
  */
197
24
  function WorkspaceFileTile(t0) {
198
- const $ = c(41);
25
+ const $ = c(40);
199
26
  let classes;
200
27
  let details;
201
28
  let entry;
@@ -206,9 +33,8 @@ function WorkspaceFileTile(t0) {
206
33
  let props;
207
34
  let renameField;
208
35
  let renaming;
209
- let renderThumbnail;
210
36
  if ($[0] !== t0) {
211
- ({entry, option, classes, renderThumbnail, renaming, details, menu, menuFinalFocus, menuDisabled, renameField, ...props} = t0);
37
+ ({entry, option, classes, renaming, details, menu, menuFinalFocus, menuDisabled, renameField, ...props} = t0);
212
38
  $[0] = t0;
213
39
  $[1] = classes;
214
40
  $[2] = details;
@@ -220,7 +46,6 @@ function WorkspaceFileTile(t0) {
220
46
  $[8] = props;
221
47
  $[9] = renameField;
222
48
  $[10] = renaming;
223
- $[11] = renderThumbnail;
224
49
  } else {
225
50
  classes = $[1];
226
51
  details = $[2];
@@ -232,104 +57,107 @@ function WorkspaceFileTile(t0) {
232
57
  props = $[8];
233
58
  renameField = $[9];
234
59
  renaming = $[10];
235
- renderThumbnail = $[11];
236
60
  }
237
61
  const portalContainer = React.use(PortalContext);
238
- const t1 = classes.artwork;
62
+ const thumbnails = React.use(WorkspaceThumbnailContext);
63
+ let t1;
64
+ if ($[11] !== entry || $[12] !== thumbnails) {
65
+ t1 = thumbnails ? /* @__PURE__ */ jsx(ComputerFileThumbnail, {
66
+ entry,
67
+ source: thumbnails.source,
68
+ sourceKey: thumbnails.sourceKey
69
+ }) : /* @__PURE__ */ jsx(FileGridArtwork, { entry });
70
+ $[11] = entry;
71
+ $[12] = thumbnails;
72
+ $[13] = t1;
73
+ } else t1 = $[13];
239
74
  let t2;
240
- if ($[12] !== entry || $[13] !== renderThumbnail) {
241
- t2 = fileGridArtwork(entry, renderThumbnail);
242
- $[12] = entry;
243
- $[13] = renderThumbnail;
244
- $[14] = t2;
245
- } else t2 = $[14];
246
- let t3;
247
- if ($[15] !== classes.artwork || $[16] !== t2) {
248
- t3 = /* @__PURE__ */ jsx("span", {
249
- className: t1,
75
+ if ($[14] !== classes.artwork || $[15] !== t1) {
76
+ t2 = /* @__PURE__ */ jsx("span", {
77
+ className: classes.artwork,
250
78
  "aria-hidden": "true",
251
- children: t2
79
+ children: t1
252
80
  });
253
- $[15] = classes.artwork;
81
+ $[14] = classes.artwork;
82
+ $[15] = t1;
254
83
  $[16] = t2;
255
- $[17] = t3;
256
- } else t3 = $[17];
257
- const t4 = `${classes.name} sigvelo-truncate`;
258
- const t5 = renaming ? "" : void 0;
259
- let t6;
260
- if ($[18] !== entry.name || $[19] !== t4 || $[20] !== t5) {
261
- t6 = /* @__PURE__ */ jsx("span", {
262
- className: t4,
84
+ } else t2 = $[16];
85
+ const t3 = `${classes.name} sigvelo-truncate`;
86
+ const t4 = renaming ? "" : void 0;
87
+ let t5;
88
+ if ($[17] !== entry.name || $[18] !== t3 || $[19] !== t4) {
89
+ t5 = /* @__PURE__ */ jsx("span", {
90
+ className: t3,
263
91
  "data-file-name": "",
264
- "data-renaming": t5,
92
+ "data-renaming": t4,
265
93
  children: entry.name
266
94
  });
267
- $[18] = entry.name;
95
+ $[17] = entry.name;
96
+ $[18] = t3;
268
97
  $[19] = t4;
269
98
  $[20] = t5;
270
- $[21] = t6;
271
- } else t6 = $[21];
272
- let t7;
273
- if ($[22] !== details || $[23] !== option || $[24] !== t3 || $[25] !== t6) {
274
- t7 = /* @__PURE__ */ jsxs(ContextMenu.Trigger, {
99
+ } else t5 = $[20];
100
+ let t6;
101
+ if ($[21] !== details || $[22] !== option || $[23] !== t2 || $[24] !== t5) {
102
+ t6 = /* @__PURE__ */ jsxs(ContextMenu.Trigger, {
275
103
  render: option,
276
104
  children: [
277
- t3,
278
- t6,
105
+ t2,
106
+ t5,
279
107
  details
280
108
  ]
281
109
  });
282
- $[22] = details;
283
- $[23] = option;
284
- $[24] = t3;
110
+ $[21] = details;
111
+ $[22] = option;
112
+ $[23] = t2;
113
+ $[24] = t5;
285
114
  $[25] = t6;
286
- $[26] = t7;
287
- } else t7 = $[26];
288
- let t8;
289
- if ($[27] !== menu || $[28] !== menuFinalFocus) {
290
- t8 = /* @__PURE__ */ jsx(ContextMenu.Positioner, { children: /* @__PURE__ */ jsx(ContextMenu.Popup, {
115
+ } else t6 = $[25];
116
+ let t7;
117
+ if ($[26] !== menu || $[27] !== menuFinalFocus) {
118
+ t7 = /* @__PURE__ */ jsx(ContextMenu.Positioner, { children: /* @__PURE__ */ jsx(ContextMenu.Popup, {
291
119
  finalFocus: menuFinalFocus,
292
120
  children: menu
293
121
  }) });
294
- $[27] = menu;
295
- $[28] = menuFinalFocus;
296
- $[29] = t8;
297
- } else t8 = $[29];
298
- let t9;
299
- if ($[30] !== portalContainer || $[31] !== t8) {
300
- t9 = /* @__PURE__ */ jsx(ContextMenu.Portal, {
122
+ $[26] = menu;
123
+ $[27] = menuFinalFocus;
124
+ $[28] = t7;
125
+ } else t7 = $[28];
126
+ let t8;
127
+ if ($[29] !== portalContainer || $[30] !== t7) {
128
+ t8 = /* @__PURE__ */ jsx(ContextMenu.Portal, {
301
129
  container: portalContainer,
302
- children: t8
130
+ children: t7
303
131
  });
304
- $[30] = portalContainer;
132
+ $[29] = portalContainer;
133
+ $[30] = t7;
305
134
  $[31] = t8;
306
- $[32] = t9;
307
- } else t9 = $[32];
308
- let t10;
309
- if ($[33] !== menuDisabled || $[34] !== t7 || $[35] !== t9) {
310
- t10 = /* @__PURE__ */ jsxs(ContextMenu.Root, {
135
+ } else t8 = $[31];
136
+ let t9;
137
+ if ($[32] !== menuDisabled || $[33] !== t6 || $[34] !== t8) {
138
+ t9 = /* @__PURE__ */ jsxs(ContextMenu.Root, {
311
139
  disabled: menuDisabled,
312
- children: [t7, t9]
140
+ children: [t6, t8]
313
141
  });
314
- $[33] = menuDisabled;
315
- $[34] = t7;
142
+ $[32] = menuDisabled;
143
+ $[33] = t6;
144
+ $[34] = t8;
316
145
  $[35] = t9;
317
- $[36] = t10;
318
- } else t10 = $[36];
319
- const t11 = renaming ? renameField : null;
320
- let t12;
321
- if ($[37] !== props || $[38] !== t10 || $[39] !== t11) {
322
- t12 = /* @__PURE__ */ jsxs("li", {
146
+ } else t9 = $[35];
147
+ const t10 = renaming ? renameField : null;
148
+ let t11;
149
+ if ($[36] !== props || $[37] !== t10 || $[38] !== t9) {
150
+ t11 = /* @__PURE__ */ jsxs("li", {
323
151
  role: "none",
324
152
  ...props,
325
- children: [t10, t11]
153
+ children: [t9, t10]
326
154
  });
327
- $[37] = props;
328
- $[38] = t10;
155
+ $[36] = props;
156
+ $[37] = t10;
157
+ $[38] = t9;
329
158
  $[39] = t11;
330
- $[40] = t12;
331
- } else t12 = $[40];
332
- return t12;
159
+ } else t11 = $[39];
160
+ return t11;
333
161
  }
334
162
  //#endregion
335
163
  //#region src/components/_internal/workspace-selection.tsx
@@ -1559,4 +1387,4 @@ function WorkspaceQuickLook(t0) {
1559
1387
  return t25;
1560
1388
  }
1561
1389
  //#endregion
1562
- export { fileGridOption as a, FileGrid as i, useWorkspaceSelection as n, hasModifier as o, WorkspaceFileTile as r, WorkspaceQuickLook as t };
1390
+ export { WorkspaceThumbnailContext as i, useWorkspaceSelection as n, WorkspaceFileTile as r, WorkspaceQuickLook as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/react-components",
3
- "version": "0.68.0",
3
+ "version": "0.69.0",
4
4
  "description": "MCP-B React components built on Base UI and shared design tokens, including Cloudflare Think chat primitives.",
5
5
  "homepage": "https://design-system.sigvelo.com",
6
6
  "bugs": {
@@ -55,7 +55,7 @@
55
55
  "streamdown": "^2.7.0",
56
56
  "unist-util-visit": "^5.1.0",
57
57
  "yet-another-react-lightbox": "^3.32.2",
58
- "@mcp-b/design-tokens": "0.68.0"
58
+ "@mcp-b/design-tokens": "0.69.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@ai-sdk/react": "^4.0.136",