@mcp-b/react-components 0.11.0 → 0.12.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 (83) hide show
  1. package/dist/{AgentChat-B9LD_WF1.d.ts → AgentChat-CRmsKg9B.d.ts} +10 -6
  2. package/dist/{BrowserLiveView-ZktFZiMD.d.ts → BrowserLiveView-BV5qgFgI.d.ts} +11 -10
  3. package/dist/{BrowserReplay-6G-mnwcn.d.ts → BrowserReplay-xWvRjRAC.d.ts} +2 -1
  4. package/dist/{Menu-B5vDqZe_.d.ts → Menu-BLhnNnRK.d.ts} +3 -0
  5. package/dist/{ModelSelector-DXtpcRmT.js → ModelSelector-BB-xB-Es.js} +16 -13
  6. package/dist/{PromptInput-D6-G24p7.d.ts → PromptInput-IyM6ZETj.d.ts} +13 -45
  7. package/dist/ThinkChat-B3wYahor.js +190 -0
  8. package/dist/{ThinkChatActivity-B2UD95My.d.ts → ThinkChatActivity-F4KFPcJA.d.ts} +4 -4
  9. package/dist/ThinkChatContext-C3Eb1Xpi.d.ts +16 -0
  10. package/dist/{ThinkChatToolParts-DnUiZgCC.d.ts → ThinkChatToolParts-Cv4o7j6F.d.ts} +13 -5
  11. package/dist/components/AgentChat.d.ts +1 -1
  12. package/dist/components/AgentChat.js +57 -23
  13. package/dist/components/AgentConnection.js +4 -20
  14. package/dist/components/Badge.js +1 -15
  15. package/dist/components/BrowserLiveView.d.ts +1 -1
  16. package/dist/components/BrowserLiveView.js +14 -10
  17. package/dist/components/BrowserReplay.d.ts +1 -1
  18. package/dist/components/BrowserRunPanel.js +91 -55
  19. package/dist/components/ChatGptSignInScreen.js +1 -1
  20. package/dist/components/CodexModelSelector.d.ts +63 -0
  21. package/dist/components/CodexModelSelector.js +148 -0
  22. package/dist/components/Commit.d.ts +2 -2
  23. package/dist/components/Commit.js +10 -22
  24. package/dist/components/Conversation.d.ts +2 -6
  25. package/dist/components/Conversation.js +2 -3
  26. package/dist/components/EnvironmentVariables.d.ts +2 -7
  27. package/dist/components/EnvironmentVariables.js +10 -33
  28. package/dist/components/Marker.js +1 -15
  29. package/dist/components/McpServerPicker.d.ts +31 -6
  30. package/dist/components/McpServerPicker.js +129 -67
  31. package/dist/components/Menu.d.ts +1 -1
  32. package/dist/components/Menu.js +2 -2
  33. package/dist/components/Message.d.ts +3 -2
  34. package/dist/components/Message.js +10 -3
  35. package/dist/components/ModelSelector.d.ts +11 -8
  36. package/dist/components/ModelSelector.js +1 -1
  37. package/dist/components/PromptInput.d.ts +2 -2
  38. package/dist/components/PromptInput.js +49 -98
  39. package/dist/components/Queue.d.ts +1 -12
  40. package/dist/components/Reasoning.js +2 -15
  41. package/dist/components/Stepper.js +1 -7
  42. package/dist/components/ThinkChat.d.ts +30 -30
  43. package/dist/components/ThinkChat.js +1 -152
  44. package/dist/components/ThinkChatActivity.d.ts +2 -2
  45. package/dist/components/ThinkChatActivity.js +3 -10
  46. package/dist/components/ThinkChatContext.d.ts +2 -2
  47. package/dist/components/ThinkChatContext.js +9 -2
  48. package/dist/components/ThinkChatToolPanels.d.ts +1 -1
  49. package/dist/components/ThinkChatToolPanels.js +19 -7
  50. package/dist/components/ThinkChatToolParts.d.ts +1 -1
  51. package/dist/components/ThinkExecutionWorkbench.d.ts +10 -7
  52. package/dist/components/ThinkExecutionWorkbench.js +382 -359
  53. package/dist/components/ThinkFullApp.d.ts +16 -13
  54. package/dist/components/ThinkFullApp.js +28 -18
  55. package/dist/components/ThinkThreadPicker.d.ts +1 -31
  56. package/dist/components/ThinkThreadPicker.js +32 -171
  57. package/dist/components/ThinkThreadShell.d.ts +35 -0
  58. package/dist/components/ThinkThreadShell.js +146 -0
  59. package/dist/components/WorkspaceExplorer.js +3 -1
  60. package/dist/merge-refs-DF_7w2x_.js +18 -0
  61. package/dist/styles/agent-chat.css +4 -1
  62. package/dist/styles/browser-run-panel.css +57 -110
  63. package/dist/styles/codex-model-selector.css +197 -0
  64. package/dist/styles/index.css +4 -1
  65. package/dist/styles/mcp-server-picker.css +62 -15
  66. package/dist/styles/message.css +1 -1
  67. package/dist/styles/model-selector.css +20 -8
  68. package/dist/styles/prompt-input.css +5 -0
  69. package/dist/styles/streamdown.css +2 -48
  70. package/dist/styles/think-execution-workbench.css +337 -0
  71. package/dist/styles/think-full-app.css +15 -390
  72. package/dist/styles/think-resize-handle.css +33 -0
  73. package/dist/styles/think-thread-picker.css +0 -238
  74. package/dist/styles/think-thread-shell.css +219 -0
  75. package/dist/styles/workspace-explorer.css +8 -2
  76. package/dist/summarize-tool-input-BUJsENSn.js +12 -0
  77. package/package.json +2 -2
  78. package/dist/ThinkChatContext-BLAAb8J5.d.ts +0 -28
  79. package/dist/components/McpServerConnections.d.ts +0 -41
  80. package/dist/components/McpServerConnections.js +0 -188
  81. package/dist/components/useStickToBottom.d.ts +0 -33
  82. package/dist/components/useStickToBottom.js +0 -107
  83. package/dist/styles/mcp-server-connections.css +0 -145
@@ -101,59 +101,13 @@ button[data-streamdown="link"] {
101
101
  border-block-start: 1px solid var(--sigvelo-color-neutral-border-subtle);
102
102
  }
103
103
 
104
- [data-streamdown="image-wrapper"] {
105
- position: relative;
104
+ .message__response img {
106
105
  display: inline-block;
107
- margin-block: 0.5rem;
108
- }
109
-
110
- /* The hover scrim and download button carry no data attributes, only
111
- Tailwind classes we don't compile. The scrim adds nothing here; the
112
- button becomes a hover-revealed overlay in the image corner. */
113
- [data-streamdown="image-wrapper"] > div {
114
- display: none;
115
- }
116
-
117
- [data-streamdown="image-wrapper"] > button {
118
- position: absolute;
119
- inset-block-end: 0.375rem;
120
- inset-inline-end: 0.375rem;
121
- display: inline-flex;
122
- align-items: center;
123
- justify-content: center;
124
- padding: 0.25rem;
125
- border: var(--sigvelo-border-style) var(--sigvelo-border-width)
126
- var(--sigvelo-color-neutral-border-subtle);
127
- border-radius: var(--sigvelo-radius-sm);
128
- background-color: var(--sigvelo-color-surface);
129
- color: var(--sigvelo-color-text-muted);
130
- cursor: pointer;
131
- opacity: 0;
132
- transition:
133
- opacity 120ms ease,
134
- color 120ms ease;
135
- }
136
-
137
- [data-streamdown="image-wrapper"]:hover > button,
138
- [data-streamdown="image-wrapper"] > button:focus-visible {
139
- opacity: 1;
140
- }
141
-
142
- [data-streamdown="image-wrapper"] > button:hover {
143
- color: var(--sigvelo-color-text);
144
- }
145
-
146
- [data-streamdown="image"] {
147
106
  max-width: 100%;
107
+ margin-block: 0.5rem;
148
108
  border-radius: var(--sigvelo-radius-md);
149
109
  }
150
110
 
151
- [data-streamdown="image-fallback"] {
152
- font-size: var(--sigvelo-text-xs);
153
- font-style: italic;
154
- color: var(--sigvelo-color-text-muted);
155
- }
156
-
157
111
  /* ---- Shared chrome: action buttons ---- */
158
112
 
159
113
  :is(
@@ -0,0 +1,337 @@
1
+ .think-execution-workbench {
2
+ min-inline-size: 0;
3
+ min-block-size: 0;
4
+ display: flex;
5
+ flex: 1;
6
+ flex-direction: column;
7
+ overflow: hidden;
8
+ container-type: inline-size;
9
+ background: color-mix(
10
+ in oklab,
11
+ var(--sigvelo-color-canvas),
12
+ var(--sigvelo-color-primary-bg-subtle) 18%
13
+ );
14
+ color: var(--sigvelo-color-text);
15
+ }
16
+
17
+ .think-execution-workbench__header {
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: space-between;
21
+ gap: 0.75rem;
22
+ flex: 0 0 auto;
23
+ min-block-size: 2.75rem;
24
+ padding-block: 0.375rem;
25
+ padding-inline: 0.75rem 0.625rem;
26
+ border-block-end: var(--sigvelo-border-style) var(--sigvelo-border-width)
27
+ var(--sigvelo-color-neutral-border-subtle);
28
+ }
29
+
30
+ .think-execution-workbench__heading {
31
+ display: inline-flex;
32
+ align-items: center;
33
+ min-inline-size: 0;
34
+ gap: 0.375rem;
35
+ }
36
+
37
+ .think-execution-workbench__title {
38
+ min-inline-size: 0;
39
+ margin: 0;
40
+ font-size: 0.875rem;
41
+ font-weight: 650;
42
+ line-height: 1;
43
+ }
44
+
45
+ .think-execution-workbench__refresh {
46
+ flex: 0 0 auto;
47
+ }
48
+
49
+ .think-execution-workbench__error {
50
+ margin: 0.75rem 0.75rem 0;
51
+ padding: 0.4375rem 0.625rem;
52
+ border: var(--sigvelo-border-style) var(--sigvelo-border-width)
53
+ var(--sigvelo-color-danger-border-subtle);
54
+ border-radius: var(--sigvelo-radius-sm);
55
+ background: var(--sigvelo-color-danger-bg-subtle);
56
+ color: var(--sigvelo-color-danger-text);
57
+ font-size: 0.75rem;
58
+ }
59
+
60
+ .think-execution-workbench__content {
61
+ min-block-size: 0;
62
+ display: grid;
63
+ flex: 1;
64
+ grid-template-rows: minmax(12rem, 0.75fr) minmax(0, 1fr);
65
+ overflow: hidden;
66
+ }
67
+
68
+ .think-execution-workbench__run-list,
69
+ .think-execution-workbench__detail {
70
+ min-inline-size: 0;
71
+ min-block-size: 0;
72
+ overflow: auto;
73
+ }
74
+
75
+ .think-execution-workbench__run-list {
76
+ border-block-end: var(--sigvelo-border-style) var(--sigvelo-border-width)
77
+ var(--sigvelo-color-neutral-border-subtle);
78
+ }
79
+
80
+ .think-execution-workbench__list-header {
81
+ display: flex;
82
+ align-items: center;
83
+ justify-content: space-between;
84
+ gap: 0.5rem;
85
+ min-block-size: 3rem;
86
+ padding-inline: 0.875rem;
87
+ }
88
+
89
+ .think-execution-workbench__list-header h3 {
90
+ margin: 0;
91
+ font-size: 0.8125rem;
92
+ font-weight: var(--sigvelo-font-weight-semibold);
93
+ line-height: var(--sigvelo-leading-tight);
94
+ }
95
+
96
+ .think-execution-workbench__empty {
97
+ margin: 0.75rem;
98
+ padding: 0.625rem 0;
99
+ color: var(--sigvelo-color-text-muted);
100
+ font-size: 0.8125rem;
101
+ }
102
+
103
+ .think-execution-workbench__list {
104
+ margin: 0;
105
+ padding: 0.25rem 0.75rem 0.75rem;
106
+ list-style: none;
107
+ display: grid;
108
+ }
109
+
110
+ .think-execution-workbench__list > li {
111
+ display: grid;
112
+ grid-template-columns: minmax(0, 1fr) auto;
113
+ align-items: center;
114
+ min-inline-size: 0;
115
+ border-radius: var(--sigvelo-radius-sm);
116
+ }
117
+
118
+ .think-execution-workbench__list > li:not(:last-child) {
119
+ border-block-end: var(--sigvelo-border-style) var(--sigvelo-border-width)
120
+ var(--sigvelo-color-neutral-border-subtle);
121
+ }
122
+
123
+ .think-execution-workbench__list > li[data-selected="true"] {
124
+ margin-block: 0.25rem;
125
+ background: color-mix(
126
+ in oklab,
127
+ var(--sigvelo-color-primary-bg-subtle),
128
+ var(--sigvelo-color-surface) 70%
129
+ );
130
+ }
131
+
132
+ .think-execution-workbench__run {
133
+ min-inline-size: 0;
134
+ min-block-size: 4.25rem;
135
+ display: grid;
136
+ grid-template-columns: auto minmax(0, 1fr);
137
+ align-items: center;
138
+ gap: 0.625rem;
139
+ padding-block: 0.625rem;
140
+ padding-inline: 0.25rem;
141
+ border-radius: inherit;
142
+ border: 0;
143
+ background: transparent;
144
+ color: inherit;
145
+ font: inherit;
146
+ text-align: start;
147
+ cursor: pointer;
148
+ }
149
+
150
+ .think-execution-workbench__run:hover:not(:disabled),
151
+ .think-execution-workbench__run:focus-visible {
152
+ background: var(--sigvelo-color-neutral-bg-subtle);
153
+ }
154
+
155
+ .think-execution-workbench__run:focus-visible,
156
+ .think-execution-workbench__run-actions:focus-visible {
157
+ outline: 2px solid var(--sigvelo-color-focus);
158
+ outline-offset: -2px;
159
+ }
160
+
161
+ .think-execution-workbench__run-copy {
162
+ min-inline-size: 0;
163
+ display: grid;
164
+ row-gap: 0.25rem;
165
+ }
166
+
167
+ .think-execution-workbench__run-heading {
168
+ min-inline-size: 0;
169
+ display: flex;
170
+ align-items: baseline;
171
+ gap: 0.5rem;
172
+ }
173
+
174
+ .think-execution-workbench__run-title {
175
+ min-inline-size: 0;
176
+ overflow: hidden;
177
+ font-size: 0.8125rem;
178
+ font-weight: var(--sigvelo-font-weight-semibold);
179
+ text-overflow: ellipsis;
180
+ white-space: nowrap;
181
+ }
182
+
183
+ .think-execution-workbench__run-copy code,
184
+ .think-execution-workbench__detail-header code {
185
+ min-inline-size: 0;
186
+ overflow: hidden;
187
+ color: var(--sigvelo-color-text-muted);
188
+ overflow-wrap: anywhere;
189
+ font-family: var(--sigvelo-font-mono);
190
+ font-size: 0.75rem;
191
+ }
192
+
193
+ .think-execution-workbench__run-copy code {
194
+ text-overflow: ellipsis;
195
+ white-space: nowrap;
196
+ }
197
+
198
+ .think-execution-workbench__run-summary {
199
+ color: var(--sigvelo-color-text-muted);
200
+ font-size: 0.75rem;
201
+ line-height: var(--sigvelo-leading-tight);
202
+ }
203
+
204
+ .think-execution-workbench__icon {
205
+ flex: 0 0 auto;
206
+ inline-size: 1.5rem;
207
+ block-size: 1.5rem;
208
+ display: inline-flex;
209
+ align-items: center;
210
+ justify-content: center;
211
+ color: var(--sigvelo-color-text-muted);
212
+ }
213
+
214
+ .think-execution-workbench__icon svg {
215
+ inline-size: 1rem;
216
+ block-size: 1rem;
217
+ }
218
+
219
+ .think-execution-workbench__status[data-tone="success"] {
220
+ color: var(--sigvelo-color-success-text);
221
+ }
222
+
223
+ .think-execution-workbench__status[data-tone="danger"] {
224
+ color: var(--sigvelo-color-danger-text);
225
+ }
226
+
227
+ .think-execution-workbench__status[data-tone="warning"] {
228
+ color: var(--sigvelo-color-warning-text);
229
+ }
230
+
231
+ .think-execution-workbench__status[data-tone="primary"] {
232
+ color: var(--sigvelo-color-primary-text);
233
+ }
234
+
235
+ .think-execution-workbench__status[data-status="running"] svg {
236
+ animation: think-execution-workbench-spin 0.8s linear infinite;
237
+ }
238
+
239
+ .think-execution-workbench__run-actions {
240
+ inline-size: 2rem;
241
+ min-block-size: 2rem;
242
+ margin-inline-end: 0.25rem;
243
+ }
244
+
245
+ .think-execution-workbench__detail {
246
+ display: grid;
247
+ align-content: start;
248
+ gap: 1rem;
249
+ padding: 1rem;
250
+ background: var(--sigvelo-color-surface);
251
+ }
252
+
253
+ .think-execution-workbench__detail-header {
254
+ display: flex;
255
+ align-items: flex-start;
256
+ justify-content: space-between;
257
+ gap: 0.75rem;
258
+ min-inline-size: 0;
259
+ }
260
+
261
+ .think-execution-workbench__detail-header > div {
262
+ min-inline-size: 0;
263
+ }
264
+
265
+ .think-execution-workbench__detail-status {
266
+ flex: 0 0 auto;
267
+ display: flex;
268
+ align-items: center;
269
+ gap: 0.5rem;
270
+ color: var(--sigvelo-color-text-muted);
271
+ font-size: 0.75rem;
272
+ text-align: end;
273
+ }
274
+
275
+ .think-execution-workbench__detail-status > div {
276
+ display: grid;
277
+ gap: 0.125rem;
278
+ }
279
+
280
+ .think-execution-workbench__detail-status strong {
281
+ color: var(--sigvelo-color-text);
282
+ font-weight: var(--sigvelo-font-weight-semibold);
283
+ }
284
+
285
+ .think-execution-workbench__detail h3 {
286
+ margin: 0;
287
+ font-size: 0.875rem;
288
+ font-weight: var(--sigvelo-font-weight-semibold);
289
+ line-height: var(--sigvelo-leading-tight);
290
+ }
291
+
292
+ .think-execution-workbench__empty-detail {
293
+ min-block-size: 12rem;
294
+ display: grid;
295
+ place-items: center;
296
+ color: var(--sigvelo-color-text-muted);
297
+ font-size: 0.8125rem;
298
+ text-align: center;
299
+ }
300
+
301
+ .think-execution-workbench__empty-detail p {
302
+ margin: 0;
303
+ }
304
+
305
+ @keyframes think-execution-workbench-spin {
306
+ to {
307
+ transform: rotate(360deg);
308
+ }
309
+ }
310
+
311
+ @container (width >= 44rem) {
312
+ .think-execution-workbench__content {
313
+ grid-template-rows: minmax(0, 1fr);
314
+ grid-template-columns: minmax(15rem, 0.85fr) minmax(21rem, 1.15fr);
315
+ }
316
+
317
+ .think-execution-workbench__run-list {
318
+ border-block-end: 0;
319
+ border-inline-end: var(--sigvelo-border-style) var(--sigvelo-border-width)
320
+ var(--sigvelo-color-neutral-border-subtle);
321
+ }
322
+ }
323
+
324
+ @media (prefers-reduced-motion: reduce) {
325
+ .think-execution-workbench__status[data-status="running"] svg {
326
+ animation: none;
327
+ }
328
+ }
329
+
330
+ @media (forced-colors: active) {
331
+ .think-execution-workbench {
332
+ border: 1px solid canvastext;
333
+ background: canvas;
334
+ color: canvastext;
335
+ box-shadow: none;
336
+ }
337
+ }