@mcp-b/react-components 0.20.1 → 0.20.4

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 (149) hide show
  1. package/dist/{CodeBlock-Bb-IPBc_.js → CodeBlock-ygtuzqJd.js} +1 -1
  2. package/dist/{FileTree-CUlXfnmc.js → FileTree-CdgfccsM.js} +5 -5
  3. package/dist/{Message-rZEaaD8Q.js → Message-DzuteocT.js} +4 -3
  4. package/dist/{ModelSelector-4GsCWcZV.js → ModelSelector-pecWyOFI.js} +4 -3
  5. package/dist/{WorkspaceFileView-CEdArlOT.js → WorkspaceFileView-Bxx4wEzJ.js} +5 -11
  6. package/dist/components/Accordion.js +4 -4
  7. package/dist/components/Activity.js +2 -2
  8. package/dist/components/AgentActivity.js +1 -1
  9. package/dist/components/AgentActivityPreview.js +1 -1
  10. package/dist/components/AgentAttention.js +2 -2
  11. package/dist/components/AgentChat.js +4 -4
  12. package/dist/components/AgentConnection.js +2 -2
  13. package/dist/components/AgentMessageParts.js +1 -1
  14. package/dist/components/AgentToolDetail.js +1 -1
  15. package/dist/components/AlertDialog.js +8 -8
  16. package/dist/components/AppTopBar.js +1 -1
  17. package/dist/components/Approval.js +1 -1
  18. package/dist/components/Artifact.js +1 -1
  19. package/dist/components/Autocomplete.js +11 -11
  20. package/dist/components/Avatar.js +6 -6
  21. package/dist/components/BrowserLiveView.js +2 -2
  22. package/dist/components/BrowserReplay.js +4 -7
  23. package/dist/components/BrowserRunPanel.js +2 -2
  24. package/dist/components/Card.js +8 -11
  25. package/dist/components/ChainOfThought.js +2 -2
  26. package/dist/components/ChatGptSignInScreen.js +2 -2
  27. package/dist/components/Checkbox.js +2 -2
  28. package/dist/components/CheckboxGroup.js +7 -7
  29. package/dist/components/Checkpoint.js +1 -1
  30. package/dist/components/CodeBlock.js +1 -1
  31. package/dist/components/CodexModelSelector.js +5 -4
  32. package/dist/components/Collapsible.js +2 -2
  33. package/dist/components/Combobox.js +11 -11
  34. package/dist/components/Commit.js +4 -4
  35. package/dist/components/Context.js +3 -1
  36. package/dist/components/ContextMenu.js +13 -13
  37. package/dist/components/Conversation.js +3 -8
  38. package/dist/components/Dialog.js +6 -6
  39. package/dist/components/EnvironmentVariables.js +3 -3
  40. package/dist/components/Field.js +7 -7
  41. package/dist/components/Fieldset.js +3 -3
  42. package/dist/components/FileTree.js +1 -1
  43. package/dist/components/Form.js +1 -1
  44. package/dist/components/InlineCitation.js +2 -2
  45. package/dist/components/Input.js +1 -1
  46. package/dist/components/Label.js +2 -1
  47. package/dist/components/McpConnectionRequest.js +1 -1
  48. package/dist/components/McpServerPicker.js +3 -3
  49. package/dist/components/MediaPreviewCard.js +5 -4
  50. package/dist/components/Menu.js +17 -17
  51. package/dist/components/Menubar.js +14 -14
  52. package/dist/components/Message.js +1 -1
  53. package/dist/components/MessageScroller.js +1 -1
  54. package/dist/components/Meter.js +5 -5
  55. package/dist/components/ModelSelector.js +1 -1
  56. package/dist/components/NaniteScene.js +2 -1
  57. package/dist/components/NavigationMenu.js +11 -11
  58. package/dist/components/NumberField.js +6 -6
  59. package/dist/components/Plan.js +1 -1
  60. package/dist/components/Popover.js +12 -14
  61. package/dist/components/PreviewCard.js +6 -6
  62. package/dist/components/PricingPage.js +2 -1
  63. package/dist/components/PricingPlanCard.js +1 -1
  64. package/dist/components/Progress.js +4 -4
  65. package/dist/components/PromptInput.js +10 -12
  66. package/dist/components/Queue.js +1 -1
  67. package/dist/components/RadioGroup.js +4 -4
  68. package/dist/components/Reasoning.js +2 -2
  69. package/dist/components/ResizableSidePanel.js +3 -5
  70. package/dist/components/ResponsiveSidebarShell.js +4 -3
  71. package/dist/components/ScrollArea.js +6 -6
  72. package/dist/components/SearchField.js +1 -1
  73. package/dist/components/Select.js +15 -15
  74. package/dist/components/Slider.js +7 -7
  75. package/dist/components/Sources.js +2 -2
  76. package/dist/components/Stepper.js +1 -1
  77. package/dist/components/SubagentRunDetails.js +2 -1
  78. package/dist/components/SubagentRunIndicator.js +1 -1
  79. package/dist/components/SubagentRunSelector.js +1 -1
  80. package/dist/components/Switch.js +3 -3
  81. package/dist/components/Tabs.js +2 -2
  82. package/dist/components/Task.js +2 -2
  83. package/dist/components/Terminal.js +2 -2
  84. package/dist/components/TestResults.js +3 -3
  85. package/dist/components/ThemeModeControl.js +1 -1
  86. package/dist/components/ThinkChatActivity.js +2 -1
  87. package/dist/components/ThinkChatActivitySummary.js +12 -3
  88. package/dist/components/ThinkChatToolPanels.js +1 -1
  89. package/dist/components/ThinkExecutionDetail.js +1 -1
  90. package/dist/components/ThinkExecutionStatus.js +1 -1
  91. package/dist/components/ThinkExecutionWorkbench.js +2 -2
  92. package/dist/components/ThinkFullApp.js +4 -74
  93. package/dist/components/ThinkPendingApproval.js +1 -3
  94. package/dist/components/ThinkRoutine.d.ts +1 -1
  95. package/dist/components/ThinkRoutine.js +2 -1
  96. package/dist/components/ThinkRoutineBrowser.js +9 -9
  97. package/dist/components/ThinkRoutineDetail.js +1 -1
  98. package/dist/components/ThinkRoutineForm.js +1 -1
  99. package/dist/components/ThinkRoutineLibrary.js +1 -1
  100. package/dist/components/ThinkThreadPicker.js +3 -3
  101. package/dist/components/ThinkThreadShell.js +2 -1
  102. package/dist/components/Toast.js +6 -6
  103. package/dist/components/ToggleGroup.js +2 -2
  104. package/dist/components/Tooltip.js +4 -4
  105. package/dist/components/WebPreview.js +1 -1
  106. package/dist/components/WorkspaceBrowser.js +1 -1
  107. package/dist/components/WorkspaceExplorer.js +2 -2
  108. package/dist/components/WorkspaceFileView.js +1 -1
  109. package/dist/components/WorkspaceHeader.js +1 -1
  110. package/dist/components/icons.js +1 -1
  111. package/dist/{copy-button-BtRwhRks.js → copy-button-vo1paUSi.js} +1 -1
  112. package/dist/format-S6uWyoSb.js +38 -0
  113. package/dist/{icons-DKXiSepE.js → icons-DyOM0EJs.js} +2 -1
  114. package/dist/{merge-refs-KlanQB7A.js → merge-refs-DF_7w2x_.js} +1 -1
  115. package/dist/styles/activity-header.css +0 -3
  116. package/dist/styles/activity.css +1 -1
  117. package/dist/styles/agent-attention.css +0 -7
  118. package/dist/styles/agent-connection.css +1 -1
  119. package/dist/styles/app-top-bar.css +2 -5
  120. package/dist/styles/browser-live-view.css +1 -10
  121. package/dist/styles/browser-run-panel.css +2 -11
  122. package/dist/styles/chain-of-thought.css +2 -14
  123. package/dist/styles/checkbox-group.css +0 -6
  124. package/dist/styles/codex-model-selector.css +0 -6
  125. package/dist/styles/commit.css +1 -7
  126. package/dist/styles/environment-variables.css +0 -3
  127. package/dist/styles/file-tree.css +1 -1
  128. package/dist/styles/inline-citation.css +1 -4
  129. package/dist/styles/mcp-server-picker.css +0 -3
  130. package/dist/styles/message.css +0 -6
  131. package/dist/styles/model-selector.css +1 -1
  132. package/dist/styles/prompt-input.css +3 -34
  133. package/dist/styles/queue.css +1 -1
  134. package/dist/styles/recipes.css +2 -2
  135. package/dist/styles/sources.css +1 -4
  136. package/dist/styles/stepper.css +1 -7
  137. package/dist/styles/subagent-run.css +0 -3
  138. package/dist/styles/task.css +1 -1
  139. package/dist/styles/test-results.css +2 -17
  140. package/dist/styles/theme-mode-control.css +1 -1
  141. package/dist/styles/think-execution-status.css +1 -7
  142. package/dist/styles/think-execution-workbench.css +0 -3
  143. package/dist/styles/think-full-app.css +0 -3
  144. package/dist/styles/think-thread-picker.css +2 -14
  145. package/dist/styles/toggle-group.css +1 -1
  146. package/dist/styles/utilities.css +6 -2
  147. package/dist/styles/workspace-explorer.css +1 -1
  148. package/dist/view-transitions-DyUP0lSg.js +77 -0
  149. package/package.json +2 -2
@@ -75,6 +75,6 @@
75
75
  }
76
76
 
77
77
  .theme-mode-control__item.radio:focus-visible {
78
- outline: 2px solid Highlight;
78
+ outline: var(--sigvelo-focus-ring-forced);
79
79
  }
80
80
  }
@@ -26,13 +26,7 @@
26
26
  [data-status="rollingBack"]
27
27
  )
28
28
  svg {
29
- animation: think-execution-status-spin 0.8s linear infinite;
30
- }
31
-
32
- @keyframes think-execution-status-spin {
33
- to {
34
- transform: rotate(360deg);
35
- }
29
+ animation: sigvelo-icon-spin 0.8s linear infinite;
36
30
  }
37
31
 
38
32
  @media (prefers-reduced-motion: reduce) {
@@ -144,11 +144,8 @@
144
144
 
145
145
  .think-execution-workbench__run-title {
146
146
  min-inline-size: 0;
147
- overflow: hidden;
148
147
  font-size: var(--sigvelo-text-compact);
149
148
  font-weight: var(--sigvelo-font-weight-semibold);
150
- text-overflow: ellipsis;
151
- white-space: nowrap;
152
149
  }
153
150
 
154
151
  .think-execution-workbench__run-copy code,
@@ -187,9 +187,6 @@ body.is-resizing-side-panel .think-full-app__view-scope {
187
187
 
188
188
  .think-full-app__thread-trigger-title {
189
189
  min-inline-size: 0;
190
- overflow: hidden;
191
- text-overflow: ellipsis;
192
- white-space: nowrap;
193
190
  }
194
191
 
195
192
  .think-full-app__thread-trigger > svg {
@@ -27,13 +27,10 @@
27
27
  min-inline-size: 0;
28
28
  margin: 0;
29
29
  flex: 1 1 auto;
30
- overflow: hidden;
31
30
  color: var(--sigvelo-color-text-muted);
32
31
  font-size: var(--sigvelo-density-compact-control-font-size);
33
32
  font-weight: var(--sigvelo-font-weight-semibold);
34
33
  line-height: var(--sigvelo-leading-tight);
35
- text-overflow: ellipsis;
36
- white-space: nowrap;
37
34
  }
38
35
 
39
36
  .think-thread-picker__search {
@@ -72,7 +69,7 @@
72
69
  }
73
70
 
74
71
  .think-thread-status-indicators__item[data-status="running"] svg {
75
- animation: think-thread-picker-spin 900ms linear infinite;
72
+ animation: sigvelo-icon-spin 900ms linear infinite;
76
73
  }
77
74
 
78
75
  .think-thread-status-indicators__item[data-status="attention"] {
@@ -180,11 +177,8 @@
180
177
  .think-thread-picker__thread-title {
181
178
  min-inline-size: 0;
182
179
  display: block;
183
- overflow: hidden;
184
180
  font-size: var(--sigvelo-density-compact-control-font-size);
185
181
  line-height: var(--sigvelo-leading-tight);
186
- text-overflow: ellipsis;
187
- white-space: nowrap;
188
182
  }
189
183
 
190
184
  .think-thread-picker__delete {
@@ -299,7 +293,7 @@
299
293
  .think-thread-picker__thread[data-thread-status="recovering"]
300
294
  .think-thread-picker__thread-status
301
295
  svg {
302
- animation: think-thread-picker-spin 900ms linear infinite;
296
+ animation: sigvelo-icon-spin 900ms linear infinite;
303
297
  }
304
298
 
305
299
  .think-thread-picker__thread[data-thread-status="error"] .think-thread-picker__thread-status {
@@ -339,12 +333,6 @@
339
333
  flex: 0 0 auto;
340
334
  }
341
335
 
342
- @keyframes think-thread-picker-spin {
343
- to {
344
- transform: rotate(360deg);
345
- }
346
- }
347
-
348
336
  @container responsive-sidebar-shell (inline-size <= 56rem) {
349
337
  .think-thread-picker {
350
338
  block-size: auto;
@@ -40,7 +40,7 @@
40
40
 
41
41
  @media (forced-colors: active) {
42
42
  .toggle-group__item[data-pressed] {
43
- outline: 2px solid Highlight;
43
+ outline: var(--sigvelo-focus-ring-forced);
44
44
  outline-offset: -2px;
45
45
  }
46
46
  }
@@ -23,9 +23,13 @@
23
23
  }
24
24
 
25
25
  .sigvelo-truncate {
26
- min-inline-size: 0;
27
- flex: 1;
28
26
  overflow: hidden;
29
27
  text-overflow: ellipsis;
30
28
  white-space: nowrap;
31
29
  }
30
+
31
+ /* Truncating flex child that also grows to fill its track. */
32
+ .sigvelo-truncate-grow {
33
+ min-inline-size: 0;
34
+ flex: 1;
35
+ }
@@ -534,7 +534,7 @@
534
534
 
535
535
  @media (forced-colors: active) {
536
536
  .workspace-explorer__tree .file-tree__node:is([data-focused], :focus-visible) {
537
- outline: 2px solid Highlight;
537
+ outline: var(--sigvelo-focus-ring-forced);
538
538
  outline-offset: -2px;
539
539
  background-color: Canvas;
540
540
  color: CanvasText;
@@ -0,0 +1,77 @@
1
+ import { flushSync } from "react-dom";
2
+ //#region src/components/_internal/view-transitions.ts
3
+ let documentScopeSequence = 0;
4
+ let restoreActiveDocumentScope = null;
5
+ /**
6
+ * Reports whether motion should be suppressed, honoring both the app-level
7
+ * `data-motion="reduce"` override and the `prefers-reduced-motion` media query.
8
+ * Returns `true` (reduced) when there is no document, e.g. during SSR.
9
+ */
10
+ function motionIsReduced() {
11
+ if (typeof document === "undefined") return true;
12
+ if (document.documentElement.dataset.motion === "reduce") return true;
13
+ return window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? false;
14
+ }
15
+ function isReactTestEnvironment() {
16
+ return globalThis.IS_REACT_ACT_ENVIRONMENT;
17
+ }
18
+ function scopeDocumentTransition(scope) {
19
+ if (!(scope instanceof HTMLElement || scope instanceof SVGElement)) return null;
20
+ restoreActiveDocumentScope?.();
21
+ const rootStyle = document.documentElement.style;
22
+ const scopeStyle = scope.style;
23
+ const rootValue = rootStyle.getPropertyValue("view-transition-name");
24
+ const rootPriority = rootStyle.getPropertyPriority("view-transition-name");
25
+ const scopeValue = scopeStyle.getPropertyValue("view-transition-name");
26
+ const scopePriority = scopeStyle.getPropertyPriority("view-transition-name");
27
+ rootStyle.setProperty("view-transition-name", "none", "important");
28
+ scopeStyle.setProperty("view-transition-name", `sigvelo-transition-scope-${++documentScopeSequence}`, "important");
29
+ let active = true;
30
+ const restore = () => {
31
+ if (!active) return;
32
+ active = false;
33
+ if (rootValue) rootStyle.setProperty("view-transition-name", rootValue, rootPriority);
34
+ else rootStyle.removeProperty("view-transition-name");
35
+ if (scopeValue) scopeStyle.setProperty("view-transition-name", scopeValue, scopePriority);
36
+ else scopeStyle.removeProperty("view-transition-name");
37
+ if (restoreActiveDocumentScope === restore) restoreActiveDocumentScope = null;
38
+ };
39
+ restoreActiveDocumentScope = restore;
40
+ return restore;
41
+ }
42
+ /**
43
+ * Runs one synchronous React update inside the narrowest supported native view
44
+ * transition. Unsupported and reduced-motion environments commit immediately.
45
+ */
46
+ function runViewTransition({ scope, update }) {
47
+ let committed = false;
48
+ const commitOnce = () => {
49
+ if (committed) return;
50
+ committed = true;
51
+ flushSync(update);
52
+ };
53
+ if (typeof document === "undefined" || motionIsReduced() || isReactTestEnvironment()) {
54
+ commitOnce();
55
+ return null;
56
+ }
57
+ const scopedHost = scope;
58
+ const documentHost = document;
59
+ const useScopedHost = typeof scopedHost?.startViewTransition === "function";
60
+ const host = useScopedHost ? scopedHost : typeof documentHost.startViewTransition === "function" ? documentHost : null;
61
+ if (!host?.startViewTransition) {
62
+ commitOnce();
63
+ return null;
64
+ }
65
+ const restoreDocumentScope = useScopedHost ? null : scopeDocumentTransition(scope);
66
+ try {
67
+ const transition = host.startViewTransition(commitOnce);
68
+ if (restoreDocumentScope) transition.finished.finally(restoreDocumentScope).catch(() => void 0);
69
+ return transition;
70
+ } catch {
71
+ restoreDocumentScope?.();
72
+ commitOnce();
73
+ return null;
74
+ }
75
+ }
76
+ //#endregion
77
+ export { runViewTransition as n, motionIsReduced as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/react-components",
3
- "version": "0.20.1",
3
+ "version": "0.20.4",
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": {
@@ -57,7 +57,7 @@
57
57
  "streamdown": "^2.5.0",
58
58
  "unist-util-visit": "^5.1.0",
59
59
  "yet-another-react-lightbox": "^3.32.1",
60
- "@mcp-b/design-tokens": "0.20.1"
60
+ "@mcp-b/design-tokens": "0.20.4"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@ai-sdk/react": "^3.0.222",