@mcp-b/react-components 0.34.1 → 0.36.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.
- package/dist/{AgentChat-CV-GuYA6.d.ts → AgentChat-CVO7xyLC.d.ts} +22 -3
- package/dist/{CodeBlock-CM5gfmdq.js → CodeBlock-Bk4nn7l-.js} +4 -3
- package/dist/{CodeBlock-DzGhYyNe.d.ts → CodeBlock-C380GD5t.d.ts} +2 -5
- package/dist/{Dialog-DeOSJ0Oy.d.ts → Dialog-B_FhRWaz.d.ts} +22 -37
- package/dist/{Menu-DVmjBIuM.d.ts → Menu-yb6QXWA3.d.ts} +64 -75
- package/dist/{PromptInput-DOyee1kM.d.ts → PromptInput-BRX7FhjH.d.ts} +7 -272
- package/dist/ResponsiveSidebarShell-DWjULskY.d.ts +68 -0
- package/dist/{Select-D96d09ww.d.ts → Select-RrceeEIe.d.ts} +17 -52
- package/dist/{ThinkChat-en0UbkVv.js → ThinkChat-ByR-QT_D.js} +19 -12
- package/dist/{ThinkChatActivity-CgqpROz_.d.ts → ThinkChatActivity-Dkmm2pIj.d.ts} +1 -1
- package/dist/{ToggleGroup-CSBWfPXo.d.ts → ToggleGroup-BrQZOQn_.d.ts} +4 -6
- package/dist/{WorkspaceFile-C8Riev9j.d.ts → WorkspaceFile-BLaFmMrt.d.ts} +18 -2
- package/dist/{WorkspaceFileView-BtzVKAed.js → WorkspaceFileView-DTHJLKW_.js} +11 -17
- package/dist/components/agents-sdk/AgentChat.d.ts +2 -2
- package/dist/components/agents-sdk/AgentChat.js +47 -26
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +47 -1
- package/dist/components/agents-sdk/BrowserReplay.d.ts +40 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/McpConnectionRequest.js +14 -15
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +17 -24
- package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
- package/dist/components/agents-sdk/McpServerPicker.js +19 -17
- package/dist/components/agents-sdk/ModelSelector.d.ts +9 -9
- package/dist/components/agents-sdk/ModelSelector.js +504 -1
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/SubagentRunDetails.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.d.ts +18 -95
- package/dist/components/agents-sdk/ThinkChat.js +2 -12
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +2 -4
- package/dist/components/agents-sdk/ThinkChatActivity.js +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +3 -8
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +5 -3
- package/dist/components/agents-sdk/ThinkExecutionRun.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +2 -2
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +4 -4
- package/dist/components/agents-sdk/ThinkFullApp.js +12 -14
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkPendingApproval.js +3 -3
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +5 -4
- package/dist/components/agents-sdk/ThinkRoutineForm.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +2 -3
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +11 -15
- package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -4
- package/dist/components/agents-sdk/ThinkThreadShell.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.d.ts +140 -2
- package/dist/components/agents-sdk/Workspace.js +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +32 -5
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -5
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFile.js +41 -4
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/ai-sdk/Activity.d.ts +5 -0
- package/dist/components/ai-sdk/Activity.js +33 -13
- package/dist/components/ai-sdk/Approval.d.ts +1 -2
- package/dist/components/ai-sdk/Approval.js +4 -7
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/Context.js +1 -1
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/Message.js +2 -6
- package/dist/components/ai-sdk/MessageScroller.d.ts +5 -0
- package/dist/components/ai-sdk/MessageScroller.js +18 -12
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +18 -10
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.d.ts +2 -2
- package/dist/components/ai-sdk/PromptInput.js +124 -127
- package/dist/components/ai-sdk/Queue.js +1 -1
- package/dist/components/ai-sdk/Reasoning.d.ts +3 -4
- package/dist/components/ai-sdk/Reasoning.js +29 -13
- package/dist/components/ai-sdk/ToolInvocation.d.ts +3 -5
- package/dist/components/ai-sdk/ToolInvocation.js +2 -2
- package/dist/components/extension/ChatGptSignInScreen.js +2 -2
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +1 -1
- package/dist/components/extension/ConversationTabPicker.js +1 -1
- package/dist/components/foundations/Accordion.d.ts +1 -3
- package/dist/components/foundations/Accordion.js +1 -3
- package/dist/components/foundations/AlertDialog.d.ts +16 -36
- package/dist/components/foundations/Autocomplete.d.ts +12 -33
- package/dist/components/foundations/Autocomplete.js +2 -1
- package/dist/components/foundations/Combobox.d.ts +119 -2
- package/dist/components/foundations/Combobox.js +6 -23
- package/dist/components/foundations/ContextMenu.d.ts +50 -57
- package/dist/components/foundations/ContextMenu.js +4 -28
- package/dist/components/foundations/DescriptionList.d.ts +34 -2
- package/dist/components/foundations/DescriptionList.js +33 -2
- package/dist/components/foundations/Dialog.d.ts +1 -1
- package/dist/components/foundations/Dialog.js +2 -1
- package/dist/components/foundations/EmptyState.d.ts +5 -2
- package/dist/components/foundations/EmptyState.js +11 -7
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +3 -21
- package/dist/components/foundations/Menubar.d.ts +35 -64
- package/dist/components/foundations/Menubar.js +3 -22
- package/dist/components/foundations/Popover.d.ts +8 -21
- package/dist/components/foundations/Popover.js +3 -48
- package/dist/components/foundations/PreviewCard.d.ts +44 -29
- package/dist/components/foundations/PreviewCard.js +3 -6
- package/dist/components/foundations/RadioGroup.d.ts +4 -6
- package/dist/components/foundations/Select.d.ts +1 -1
- package/dist/components/foundations/Select.js +7 -21
- package/dist/components/foundations/Slider.d.ts +31 -44
- package/dist/components/foundations/Slider.js +26 -25
- package/dist/components/foundations/Stepper.d.ts +3 -3
- package/dist/components/foundations/Stepper.js +5 -6
- package/dist/components/foundations/ToggleGroup.d.ts +1 -1
- package/dist/components/foundations/Tooltip.d.ts +6 -8
- package/dist/components/foundations/Tooltip.js +4 -3
- package/dist/components/general-purpose/Commit.js +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +1 -1
- package/dist/components/general-purpose/PricingBillingToggle.d.ts +2 -3
- package/dist/components/general-purpose/PricingBillingToggle.js +4 -22
- package/dist/components/general-purpose/PricingPage.d.ts +3 -4
- package/dist/components/general-purpose/ResizableSidePanel.js +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -67
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +7 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +18 -3
- package/dist/components/general-purpose/Terminal.js +3 -3
- package/dist/components/general-purpose/ThemeModeControl.js +1 -1
- package/dist/components/general-purpose/WebPreview.js +4 -4
- package/dist/components/nanites/AgentConnection.js +16 -11
- package/dist/components/nanites/AgentToolDetail.js +6 -7
- package/dist/{format-CmopcfqJ.js → format-DB2mX9DA.js} +16 -1
- package/dist/{mcp-server-U71zhxFF.js → mcp-server-SD_S-IpB.js} +18 -2
- package/dist/message-scroller-C8cplcQO.js +32 -0
- package/dist/{progress-ring-Dz_ztrW2.js → progress-ring-BEocM1e3.js} +1 -1
- package/dist/provider-logos-zjZycgV6.js +74 -0
- package/dist/styles/agent-chat.css +25 -0
- package/dist/styles/agent-connection.css +4 -31
- package/dist/styles/agent-tool-detail.css +0 -7
- package/dist/styles/alert-dialog.css +0 -2
- package/dist/styles/base-ui-motion.css +7 -5
- package/dist/styles/chatgpt-sign-in-screen.css +5 -3
- package/dist/styles/dialog.css +0 -2
- package/dist/styles/field.css +2 -2
- package/dist/styles/model-selector.css +30 -12
- package/dist/styles/popover.css +0 -1
- package/dist/styles/preview-card.css +0 -4
- package/dist/styles/pricing-page.css +1 -13
- package/dist/styles/prompt-input.css +12 -10
- package/dist/styles/recipes.css +22 -14
- package/dist/styles/slider.css +2 -2
- package/dist/styles/think-execution-workbench.css +9 -13
- package/dist/styles/think-routine-library.css +2 -30
- package/dist/styles/tooltip.css +0 -1
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +17 -7
- package/dist/BrowserLiveView-tJTWkoyu.d.ts +0 -48
- package/dist/BrowserReplay-B0BQZr-N.d.ts +0 -41
- package/dist/Combobox-WrrDDaEv.d.ts +0 -154
- package/dist/ModelSelector-DzdEs2fX.js +0 -504
- package/dist/Workspace-EhvvlHOB.d.ts +0 -278
- package/dist/WorkspaceExplorer-DygQnEyi.d.ts +0 -32
- package/dist/components/foundations/DescriptionListParts.d.ts +0 -37
- package/dist/components/foundations/DescriptionListParts.js +0 -35
package/dist/styles/slider.css
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
min-block-size: var(--sigvelo-recipe-slider-min-length);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.
|
|
19
|
+
.slider__value {
|
|
20
20
|
font-family: inherit;
|
|
21
21
|
font-size: var(--sigvelo-text-sm);
|
|
22
22
|
font-weight: var(--sigvelo-font-weight-semibold);
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
cursor: grabbing;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.slider__thumb:focus-visible {
|
|
97
|
+
.slider__thumb:has(:focus-visible) {
|
|
98
98
|
outline: none;
|
|
99
99
|
box-shadow: var(--sigvelo-recipe-focus-shadow);
|
|
100
100
|
}
|
|
@@ -58,6 +58,15 @@
|
|
|
58
58
|
min-inline-size: 0;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/* Only the container concerns — the block inside is `EmptyState`, and this
|
|
62
|
+
component is documented as reusable outside the workbench, so it does not
|
|
63
|
+
reach for a workbench class to fill itself. */
|
|
64
|
+
.think-execution-detail--empty {
|
|
65
|
+
align-content: center;
|
|
66
|
+
justify-items: center;
|
|
67
|
+
min-block-size: 12rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
61
70
|
.think-execution-workbench__run-list {
|
|
62
71
|
border-block-end: var(--sigvelo-border-style) var(--sigvelo-border-width)
|
|
63
72
|
var(--sigvelo-color-neutral-border-subtle);
|
|
@@ -187,19 +196,6 @@
|
|
|
187
196
|
line-height: var(--sigvelo-leading-tight);
|
|
188
197
|
}
|
|
189
198
|
|
|
190
|
-
.think-execution-workbench__empty-detail {
|
|
191
|
-
min-block-size: 12rem;
|
|
192
|
-
display: grid;
|
|
193
|
-
place-items: center;
|
|
194
|
-
color: var(--sigvelo-color-text-muted);
|
|
195
|
-
font-size: var(--sigvelo-text-compact);
|
|
196
|
-
text-align: center;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.think-execution-workbench__empty-detail p {
|
|
200
|
-
margin: 0;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
199
|
@container (width >= 44rem) {
|
|
204
200
|
.think-execution-workbench__content {
|
|
205
201
|
grid-template-rows: minmax(0, 1fr);
|
|
@@ -355,38 +355,10 @@
|
|
|
355
355
|
var(--sigvelo-color-neutral-border-subtle);
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
|
|
359
|
-
.
|
|
360
|
-
color: var(--sigvelo-color-text-muted);
|
|
361
|
-
text-align: center;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
.think-routine-library__empty-list {
|
|
365
|
-
padding: var(--sigvelo-spacing-4) var(--sigvelo-spacing-3);
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.think-routine-library__empty-list p,
|
|
369
|
-
.think-routine-library__empty-detail p {
|
|
370
|
-
margin: var(--sigvelo-spacing-1) 0 0;
|
|
371
|
-
font-size: var(--sigvelo-text-compact);
|
|
372
|
-
}
|
|
373
|
-
|
|
358
|
+
/* Filling the pane is all this adds — the muted, centred anatomy inside it is
|
|
359
|
+
`EmptyState`, which already centres itself and spaces its own action. */
|
|
374
360
|
.think-routine-library__empty-detail {
|
|
375
361
|
min-block-size: 100%;
|
|
376
|
-
display: grid;
|
|
377
|
-
place-content: center;
|
|
378
|
-
padding: var(--sigvelo-spacing-4);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.think-routine-library__empty-detail h1 {
|
|
382
|
-
margin: 0;
|
|
383
|
-
color: var(--sigvelo-color-text);
|
|
384
|
-
font-size: var(--sigvelo-text-lg);
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
.think-routine-library__empty-action {
|
|
388
|
-
justify-self: center;
|
|
389
|
-
margin-block-start: var(--sigvelo-spacing-4);
|
|
390
362
|
}
|
|
391
363
|
|
|
392
364
|
.think-routine-library__create {
|
package/dist/styles/tooltip.css
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
--sigvelo-recipe-popup-arrow-size: var(--sigvelo-spacing-2);
|
|
3
3
|
--sigvelo-recipe-surface-padding: var(--sigvelo-spacing-1) var(--sigvelo-spacing-2);
|
|
4
4
|
|
|
5
|
-
z-index: var(--sigvelo-z-overlay);
|
|
6
5
|
max-inline-size: min(20rem, var(--available-width));
|
|
7
6
|
overflow-block: auto;
|
|
8
7
|
font-size: var(--sigvelo-text-xs);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-b/react-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.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": {
|
|
@@ -39,18 +39,13 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@base-ui/react": "~1.6.0",
|
|
42
|
-
"@cloudflare/codemode": "^0.5.0",
|
|
43
|
-
"@cloudflare/workers-types": "^5.20260715.1",
|
|
44
42
|
"@rrweb/replay": "^2.1.0",
|
|
45
43
|
"@shadcn/react": "^0.2.1",
|
|
46
44
|
"@streamdown/cjk": "^1.0.3",
|
|
47
45
|
"@streamdown/code": "^1.1.1",
|
|
48
|
-
"@streamdown/math": "^1.0.2",
|
|
49
|
-
"@streamdown/mermaid": "^1.0.2",
|
|
50
46
|
"@tanstack/react-virtual": "^3.14.8",
|
|
51
47
|
"agent-skills-ts-sdk": "^2.4.1",
|
|
52
48
|
"anser": "^2.3.5",
|
|
53
|
-
"cloudflare": "^7.0.0",
|
|
54
49
|
"lucide-react": "^1.24.0",
|
|
55
50
|
"react-icons": "^5.7.0",
|
|
56
51
|
"rehype-slug": "^6.0.0",
|
|
@@ -58,13 +53,15 @@
|
|
|
58
53
|
"streamdown": "^2.5.0",
|
|
59
54
|
"unist-util-visit": "^5.1.0",
|
|
60
55
|
"yet-another-react-lightbox": "^3.32.1",
|
|
61
|
-
"@mcp-b/design-tokens": "0.
|
|
56
|
+
"@mcp-b/design-tokens": "0.36.0"
|
|
62
57
|
},
|
|
63
58
|
"devDependencies": {
|
|
64
59
|
"@ai-sdk/react": "^3.0.230",
|
|
60
|
+
"@cloudflare/codemode": "^0.5.0",
|
|
65
61
|
"@cloudflare/shell": "^0.4.3",
|
|
66
62
|
"@cloudflare/think": "^0.15.0",
|
|
67
63
|
"@cloudflare/voice": "^0.3.4",
|
|
64
|
+
"@cloudflare/workers-types": "^5.20260715.1",
|
|
68
65
|
"@storybook/addon-a11y": "^10.5.2",
|
|
69
66
|
"@storybook/addon-docs": "^10.5.2",
|
|
70
67
|
"@storybook/addon-vitest": "^10.5.2",
|
|
@@ -83,6 +80,7 @@
|
|
|
83
80
|
"@vitest/mocker": "^4.1.10",
|
|
84
81
|
"agents": "^0.19.0",
|
|
85
82
|
"ai": "^6.0.228",
|
|
83
|
+
"cloudflare": "^7.0.0",
|
|
86
84
|
"playwright": "^1.61.0",
|
|
87
85
|
"react": "19.3.0-canary-711c445b-20260722",
|
|
88
86
|
"react-dom": "19.3.0-canary-711c445b-20260722",
|
|
@@ -94,13 +92,16 @@
|
|
|
94
92
|
},
|
|
95
93
|
"peerDependencies": {
|
|
96
94
|
"@ai-sdk/react": "^3.0.230",
|
|
95
|
+
"@cloudflare/codemode": "^0.5.0",
|
|
97
96
|
"@cloudflare/shell": "^0.4.3",
|
|
98
97
|
"@cloudflare/think": "^0.15.0",
|
|
99
98
|
"@cloudflare/voice": "^0.3.4",
|
|
99
|
+
"@cloudflare/workers-types": "^5.20260715.1",
|
|
100
100
|
"@tanstack/react-query": "^5.101.2",
|
|
101
101
|
"@tanstack/react-router": "^1.170.18",
|
|
102
102
|
"agents": "^0.19.0",
|
|
103
103
|
"ai": "^6.0.228",
|
|
104
|
+
"cloudflare": "^7.0.0",
|
|
104
105
|
"react": "19.3.0-canary-711c445b-20260722",
|
|
105
106
|
"react-dom": "19.3.0-canary-711c445b-20260722"
|
|
106
107
|
},
|
|
@@ -108,6 +109,9 @@
|
|
|
108
109
|
"@ai-sdk/react": {
|
|
109
110
|
"optional": true
|
|
110
111
|
},
|
|
112
|
+
"@cloudflare/codemode": {
|
|
113
|
+
"optional": true
|
|
114
|
+
},
|
|
111
115
|
"@cloudflare/shell": {
|
|
112
116
|
"optional": true
|
|
113
117
|
},
|
|
@@ -117,11 +121,17 @@
|
|
|
117
121
|
"@cloudflare/voice": {
|
|
118
122
|
"optional": true
|
|
119
123
|
},
|
|
124
|
+
"@cloudflare/workers-types": {
|
|
125
|
+
"optional": true
|
|
126
|
+
},
|
|
120
127
|
"agents": {
|
|
121
128
|
"optional": true
|
|
122
129
|
},
|
|
123
130
|
"ai": {
|
|
124
131
|
"optional": true
|
|
132
|
+
},
|
|
133
|
+
"cloudflare": {
|
|
134
|
+
"optional": true
|
|
125
135
|
}
|
|
126
136
|
},
|
|
127
137
|
"scripts": {
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { BrowserLiveViewUrl } from "agents/browser";
|
|
3
|
-
|
|
4
|
-
//#region src/components/agents-sdk/BrowserLiveView.d.ts
|
|
5
|
-
interface BrowserLiveViewProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
/** Complete upstream value returned by `cdp.getLiveViewUrl()`. */
|
|
7
|
-
source: BrowserLiveViewUrl;
|
|
8
|
-
/** Epoch ms when `source` was received. Defaults to its first render. */
|
|
9
|
-
receivedAt?: number;
|
|
10
|
-
/** The page the session was showing — used for the ended-state text. */
|
|
11
|
-
pageTitle?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Shown once the link expires — pass the last screenshot the agent took
|
|
14
|
-
* (`<img>`) to keep the final frame on screen. Defaults to a quiet
|
|
15
|
-
* "Live view ended" state.
|
|
16
|
-
*/
|
|
17
|
-
fallback?: React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Embeds a Browser Run Live View — a real-time, interactive view of the
|
|
21
|
-
* agent's browser session. Links expire (~5 minutes), so the iframe swaps to
|
|
22
|
-
* `fallback` (e.g. the last screenshot) once `source.expiresInMs` passes.
|
|
23
|
-
* While the hosted viewer connects, a quiet loading overlay hides the frame; if it
|
|
24
|
-
* never loads, the view degrades to `fallback` or an unavailable state. An
|
|
25
|
-
* expand button opens the same view in a fullscreen dialog.
|
|
26
|
-
*
|
|
27
|
-
* Where URLs come from (upstream: `agents/browser` in
|
|
28
|
-
* github.com/cloudflare/agents — `BrowserLiveViewUrl`): the model calls
|
|
29
|
-
* `cdp.getLiveViewUrl()` inside a `browser_execute` tool run, or the host
|
|
30
|
-
* calls `connector.liveView()`/`sessionInfo()`. This package's chat rendering
|
|
31
|
-
* derives the component automatically from links found in tool results.
|
|
32
|
-
*
|
|
33
|
-
* Styling rides `@mcp-b/react-components/styles` (browser-live-view.css),
|
|
34
|
-
* which think-chat consumers load anyway.
|
|
35
|
-
*
|
|
36
|
-
* The iframe is unsandboxed by design: the hosted Live View UI needs scripts
|
|
37
|
-
* and its own origin to stream the session. Only pass trusted Live View URLs.
|
|
38
|
-
*/
|
|
39
|
-
declare function BrowserLiveView$1({
|
|
40
|
-
source,
|
|
41
|
-
receivedAt,
|
|
42
|
-
pageTitle,
|
|
43
|
-
fallback,
|
|
44
|
-
className,
|
|
45
|
-
...props
|
|
46
|
-
}: BrowserLiveViewProps): React.JSX.Element;
|
|
47
|
-
//#endregion
|
|
48
|
-
export { BrowserLiveViewProps as n, BrowserLiveView$1 as t };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { BrowserRecording } from "agents/browser";
|
|
3
|
-
|
|
4
|
-
//#region src/components/agents-sdk/BrowserReplay.d.ts
|
|
5
|
-
interface BrowserReplayProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
6
|
-
/**
|
|
7
|
-
* rrweb events for one tab, e.g. one
|
|
8
|
-
* `BrowserRecording.events[targetId]` entry from Cloudflare Browser Run.
|
|
9
|
-
*/
|
|
10
|
-
events: BrowserRecording["events"][string];
|
|
11
|
-
/** Start playing on mount. */
|
|
12
|
-
autoPlay?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Replays a completed Cloudflare Browser Run recording locally with rrweb.
|
|
16
|
-
*
|
|
17
|
-
* This is intentionally not derived from Think chat message parts. Live view
|
|
18
|
-
* links and screenshots ride the `browser_execute` stream and belong to
|
|
19
|
-
* `BrowserLiveView`; replay events are fetched after a session closes with
|
|
20
|
-
* Browser Run's `getBrowserRecording()`. Upstream currently shapes those
|
|
21
|
-
* recordings as `Record<targetId, unknown[]>`, where each array is plain rrweb
|
|
22
|
-
* JSON for one tab. Playback happens in the viewer's browser through
|
|
23
|
-
* `@rrweb/replay`; no replay service is contacted at playback time.
|
|
24
|
-
*
|
|
25
|
-
* Styling rides `@mcp-b/react-components/styles` (browser-replay.css), which
|
|
26
|
-
* think-chat consumers load anyway.
|
|
27
|
-
*
|
|
28
|
-
* @see https://github.com/cloudflare/agents/tree/main/packages/agents/src/browser
|
|
29
|
-
* @see https://github.com/rrweb-io/rrweb/tree/main/packages/%40rrweb/replay
|
|
30
|
-
*/
|
|
31
|
-
declare function BrowserReplay({
|
|
32
|
-
className,
|
|
33
|
-
events,
|
|
34
|
-
autoPlay,
|
|
35
|
-
ref,
|
|
36
|
-
...props
|
|
37
|
-
}: BrowserReplayProps & {
|
|
38
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
39
|
-
}): React.JSX.Element;
|
|
40
|
-
//#endregion
|
|
41
|
-
export { BrowserReplayProps as n, BrowserReplay as t };
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Combobox } from "@base-ui/react/combobox";
|
|
3
|
-
|
|
4
|
-
//#region src/components/foundations/Combobox.d.ts
|
|
5
|
-
declare function ComboboxInputGroup({
|
|
6
|
-
className,
|
|
7
|
-
ref,
|
|
8
|
-
...props
|
|
9
|
-
}: React.ComponentPropsWithRef<typeof Combobox.InputGroup> & {
|
|
10
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
11
|
-
}): React.JSX.Element;
|
|
12
|
-
declare function ComboboxInput({
|
|
13
|
-
className,
|
|
14
|
-
ref,
|
|
15
|
-
...props
|
|
16
|
-
}: React.ComponentPropsWithRef<typeof Combobox.Input> & {
|
|
17
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
18
|
-
}): React.JSX.Element;
|
|
19
|
-
declare function ComboboxTrigger({
|
|
20
|
-
className,
|
|
21
|
-
ref,
|
|
22
|
-
...props
|
|
23
|
-
}: React.ComponentPropsWithRef<typeof Combobox.Trigger> & {
|
|
24
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
25
|
-
}): React.JSX.Element;
|
|
26
|
-
declare function Clear({
|
|
27
|
-
className,
|
|
28
|
-
ref,
|
|
29
|
-
...props
|
|
30
|
-
}: React.ComponentPropsWithRef<typeof Combobox.Clear> & {
|
|
31
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
32
|
-
}): React.JSX.Element;
|
|
33
|
-
declare function ComboboxPositioner({
|
|
34
|
-
className,
|
|
35
|
-
ref,
|
|
36
|
-
...props
|
|
37
|
-
}: React.ComponentPropsWithRef<typeof Combobox.Positioner> & {
|
|
38
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
39
|
-
}): React.JSX.Element;
|
|
40
|
-
declare function ComboboxPopup({
|
|
41
|
-
className,
|
|
42
|
-
ref,
|
|
43
|
-
...props
|
|
44
|
-
}: React.ComponentPropsWithRef<typeof Combobox.Popup> & {
|
|
45
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
46
|
-
}): React.JSX.Element;
|
|
47
|
-
declare function ComboboxList({
|
|
48
|
-
className,
|
|
49
|
-
ref,
|
|
50
|
-
...props
|
|
51
|
-
}: React.ComponentPropsWithRef<typeof Combobox.List> & {
|
|
52
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
53
|
-
}): React.JSX.Element;
|
|
54
|
-
declare function ComboboxItem({
|
|
55
|
-
className,
|
|
56
|
-
ref,
|
|
57
|
-
...props
|
|
58
|
-
}: React.ComponentPropsWithRef<typeof Combobox.Item> & {
|
|
59
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
60
|
-
}): React.JSX.Element;
|
|
61
|
-
declare function ItemIndicator({
|
|
62
|
-
className,
|
|
63
|
-
ref,
|
|
64
|
-
...props
|
|
65
|
-
}: React.ComponentPropsWithRef<typeof Combobox.ItemIndicator> & {
|
|
66
|
-
ref?: React.Ref<HTMLSpanElement>;
|
|
67
|
-
}): React.JSX.Element;
|
|
68
|
-
declare function ComboboxEmpty({
|
|
69
|
-
className,
|
|
70
|
-
ref,
|
|
71
|
-
...props
|
|
72
|
-
}: React.ComponentPropsWithRef<typeof Combobox.Empty> & {
|
|
73
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
74
|
-
}): React.JSX.Element;
|
|
75
|
-
declare function ComboboxGroup({
|
|
76
|
-
className,
|
|
77
|
-
ref,
|
|
78
|
-
...props
|
|
79
|
-
}: React.ComponentPropsWithRef<typeof Combobox.Group> & {
|
|
80
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
81
|
-
}): React.JSX.Element;
|
|
82
|
-
declare function ComboboxGroupLabel({
|
|
83
|
-
className,
|
|
84
|
-
ref,
|
|
85
|
-
...props
|
|
86
|
-
}: React.ComponentPropsWithRef<typeof Combobox.GroupLabel> & {
|
|
87
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
88
|
-
}): React.JSX.Element;
|
|
89
|
-
/**
|
|
90
|
-
* An input combined with a filterable list of predefined items.
|
|
91
|
-
* Supports single and multiple selection, async search, and grouping.
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* ```tsx
|
|
95
|
-
* // Basic single select
|
|
96
|
-
* const fruits = [
|
|
97
|
-
* { label: 'Apple', value: 'apple' },
|
|
98
|
-
* { label: 'Banana', value: 'banana' },
|
|
99
|
-
* { label: 'Orange', value: 'orange' },
|
|
100
|
-
* ];
|
|
101
|
-
*
|
|
102
|
-
* <Combobox.Root items={fruits}>
|
|
103
|
-
* <Combobox.InputGroup>
|
|
104
|
-
* <Combobox.Input placeholder="Select a fruit" />
|
|
105
|
-
* <Combobox.Trigger>
|
|
106
|
-
* <ChevronDownIcon />
|
|
107
|
-
* </Combobox.Trigger>
|
|
108
|
-
* </Combobox.InputGroup>
|
|
109
|
-
* <Combobox.Portal>
|
|
110
|
-
* <Combobox.Positioner>
|
|
111
|
-
* <Combobox.Popup>
|
|
112
|
-
* <Combobox.List>
|
|
113
|
-
* {(item) => (
|
|
114
|
-
* <Combobox.Item value={item}>
|
|
115
|
-
* <Combobox.ItemIndicator>
|
|
116
|
-
* <CheckIcon />
|
|
117
|
-
* </Combobox.ItemIndicator>
|
|
118
|
-
* {item.label}
|
|
119
|
-
* </Combobox.Item>
|
|
120
|
-
* )}
|
|
121
|
-
* </Combobox.List>
|
|
122
|
-
* <Combobox.Empty>No results found</Combobox.Empty>
|
|
123
|
-
* </Combobox.Popup>
|
|
124
|
-
* </Combobox.Positioner>
|
|
125
|
-
* </Combobox.Portal>
|
|
126
|
-
* </Combobox.Root>
|
|
127
|
-
* ```
|
|
128
|
-
*
|
|
129
|
-
* @see {@link https://base-ui.com/react/components/combobox | Base UI Combobox}
|
|
130
|
-
*/
|
|
131
|
-
declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
|
|
132
|
-
declare const Combobox$1: {
|
|
133
|
-
Root: typeof Combobox.Root;
|
|
134
|
-
InputGroup: typeof ComboboxInputGroup;
|
|
135
|
-
Input: typeof ComboboxInput;
|
|
136
|
-
Trigger: typeof ComboboxTrigger;
|
|
137
|
-
Clear: typeof Clear;
|
|
138
|
-
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompletePortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
139
|
-
Positioner: typeof ComboboxPositioner;
|
|
140
|
-
Popup: typeof ComboboxPopup;
|
|
141
|
-
List: typeof ComboboxList;
|
|
142
|
-
Item: typeof ComboboxItem;
|
|
143
|
-
ItemIndicator: typeof ItemIndicator;
|
|
144
|
-
Empty: typeof ComboboxEmpty;
|
|
145
|
-
Group: typeof ComboboxGroup;
|
|
146
|
-
GroupLabel: typeof ComboboxGroupLabel;
|
|
147
|
-
Value: typeof Combobox.Value;
|
|
148
|
-
Chips: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxChipsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
149
|
-
Chip: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxChipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
150
|
-
Collection: typeof Combobox.Collection;
|
|
151
|
-
Separator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
152
|
-
};
|
|
153
|
-
//#endregion
|
|
154
|
-
export { useComboboxAnchor as n, Combobox$1 as t };
|