@mcp-b/react-components 0.35.0 → 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-mpacmRU1.d.ts → AgentChat-CVO7xyLC.d.ts} +1 -1
- 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-DbzqSTBt.js → ThinkChat-ByR-QT_D.js} +5 -7
- package/dist/{ThinkChatActivity-BZyN5MBg.d.ts → ThinkChatActivity-Dkmm2pIj.d.ts} +1 -1
- package/dist/{ToggleGroup-CSBWfPXo.d.ts → ToggleGroup-BrQZOQn_.d.ts} +4 -6
- package/dist/{WorkspaceFile-CVAzjTt6.d.ts → WorkspaceFile-BLaFmMrt.d.ts} +1 -1
- package/dist/{WorkspaceFileView-BmxSbhRu.js → WorkspaceFileView-DTHJLKW_.js} +9 -15
- package/dist/components/agents-sdk/AgentChat.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChat.js +27 -21
- 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/McpConnectionRequest.js +13 -14
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +16 -23
- package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
- package/dist/components/agents-sdk/McpServerPicker.js +18 -16
- 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/ThinkChat.d.ts +17 -107
- 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/ThinkChatToolPanels.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +1 -1
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +4 -4
- package/dist/components/agents-sdk/ThinkFullApp.js +7 -11
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +1 -1
- 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 +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +2 -3
- 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/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 +1 -1
- 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/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/Message.js +1 -5
- 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/PromptInput.d.ts +2 -2
- package/dist/components/ai-sdk/PromptInput.js +123 -126
- 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/extension/ChatGptSignInScreen.js +2 -2
- package/dist/components/extension/CodexModelSelector.d.ts +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/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/ResponsiveSidebarShell.d.ts +1 -67
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +7 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +17 -2
- 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 +1 -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/provider-logos-zjZycgV6.js +74 -0
- package/dist/styles/agent-chat.css +9 -0
- package/dist/styles/agent-connection.css +4 -31
- 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/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/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-DtBxWqRn.js +0 -504
- package/dist/Workspace-GTlqvcIn.d.ts +0 -278
- package/dist/WorkspaceExplorer-Cu044amt.d.ts +0 -32
- package/dist/components/foundations/DescriptionListParts.d.ts +0 -37
- package/dist/components/foundations/DescriptionListParts.js +0 -35
|
@@ -480,17 +480,19 @@
|
|
|
480
480
|
display: inline-block;
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
+
.prompt-input__hover-card-trigger {
|
|
484
|
+
color: inherit;
|
|
485
|
+
text-decoration: none;
|
|
486
|
+
cursor: inherit;
|
|
487
|
+
transition: none;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.prompt-input__hover-card-trigger:hover {
|
|
491
|
+
color: inherit;
|
|
492
|
+
}
|
|
493
|
+
|
|
483
494
|
.prompt-input__hover-card-content {
|
|
484
|
-
position: absolute;
|
|
485
|
-
z-index: var(--sigvelo-z-chrome);
|
|
486
|
-
inset-block-start: calc(100% + var(--sigvelo-spacing-1-5));
|
|
487
|
-
inset-inline-start: 0;
|
|
488
495
|
min-inline-size: 14rem;
|
|
489
|
-
padding: var(--sigvelo-spacing-3);
|
|
490
|
-
color: var(--sigvelo-color-text);
|
|
491
|
-
background-color: var(--sigvelo-color-surface-raised);
|
|
492
|
-
border-radius: var(--sigvelo-radius-md);
|
|
493
|
-
box-shadow: var(--sigvelo-elevation-overlay);
|
|
494
496
|
}
|
|
495
497
|
|
|
496
498
|
.prompt-input__tab-label {
|
|
@@ -529,7 +531,7 @@
|
|
|
529
531
|
overflow-block: auto;
|
|
530
532
|
}
|
|
531
533
|
|
|
532
|
-
.prompt-input__command-popup [data-slot="
|
|
534
|
+
.prompt-input__command-popup [data-slot="autocomplete-empty"]:empty {
|
|
533
535
|
display: none;
|
|
534
536
|
}
|
|
535
537
|
|
package/dist/styles/recipes.css
CHANGED
|
@@ -521,8 +521,9 @@
|
|
|
521
521
|
[data-slot="hover-card-arrow"],
|
|
522
522
|
[data-slot="navigation-menu-arrow"]
|
|
523
523
|
)[data-side="top"] {
|
|
524
|
-
|
|
525
|
-
border-
|
|
524
|
+
bottom: calc(var(--sigvelo-recipe-popup-arrow-size) * -0.5);
|
|
525
|
+
border-top: none;
|
|
526
|
+
border-left: none;
|
|
526
527
|
}
|
|
527
528
|
|
|
528
529
|
:where(
|
|
@@ -532,8 +533,9 @@
|
|
|
532
533
|
[data-slot="hover-card-arrow"],
|
|
533
534
|
[data-slot="navigation-menu-arrow"]
|
|
534
535
|
)[data-side="bottom"] {
|
|
535
|
-
|
|
536
|
-
border-
|
|
536
|
+
top: calc(var(--sigvelo-recipe-popup-arrow-size) * -0.5);
|
|
537
|
+
border-right: none;
|
|
538
|
+
border-bottom: none;
|
|
537
539
|
}
|
|
538
540
|
|
|
539
541
|
:where(
|
|
@@ -542,9 +544,14 @@
|
|
|
542
544
|
[data-slot="tooltip-arrow"],
|
|
543
545
|
[data-slot="hover-card-arrow"],
|
|
544
546
|
[data-slot="navigation-menu-arrow"]
|
|
545
|
-
)
|
|
546
|
-
|
|
547
|
-
|
|
547
|
+
):where(
|
|
548
|
+
[data-side="left"],
|
|
549
|
+
[data-side="inline-start"]:dir(ltr),
|
|
550
|
+
[data-side="inline-end"]:dir(rtl)
|
|
551
|
+
) {
|
|
552
|
+
right: calc(var(--sigvelo-recipe-popup-arrow-size) * -0.5);
|
|
553
|
+
border-bottom: none;
|
|
554
|
+
border-left: none;
|
|
548
555
|
}
|
|
549
556
|
|
|
550
557
|
:where(
|
|
@@ -553,9 +560,14 @@
|
|
|
553
560
|
[data-slot="tooltip-arrow"],
|
|
554
561
|
[data-slot="hover-card-arrow"],
|
|
555
562
|
[data-slot="navigation-menu-arrow"]
|
|
556
|
-
)
|
|
557
|
-
|
|
558
|
-
|
|
563
|
+
):where(
|
|
564
|
+
[data-side="right"],
|
|
565
|
+
[data-side="inline-end"]:dir(ltr),
|
|
566
|
+
[data-side="inline-start"]:dir(rtl)
|
|
567
|
+
) {
|
|
568
|
+
left: calc(var(--sigvelo-recipe-popup-arrow-size) * -0.5);
|
|
569
|
+
border-top: none;
|
|
570
|
+
border-right: none;
|
|
559
571
|
}
|
|
560
572
|
|
|
561
573
|
:where([data-slot="context-menu-item-indicator"], [data-slot="menubar-item-indicator"]) {
|
|
@@ -618,7 +630,6 @@
|
|
|
618
630
|
|
|
619
631
|
:where(
|
|
620
632
|
[data-slot="combobox-trigger"],
|
|
621
|
-
[data-slot="combobox-clear"],
|
|
622
633
|
[data-slot="autocomplete-trigger"],
|
|
623
634
|
[data-slot="autocomplete-clear"]
|
|
624
635
|
) {
|
|
@@ -638,7 +649,6 @@
|
|
|
638
649
|
|
|
639
650
|
:where(
|
|
640
651
|
[data-slot="combobox-trigger"],
|
|
641
|
-
[data-slot="combobox-clear"],
|
|
642
652
|
[data-slot="autocomplete-trigger"],
|
|
643
653
|
[data-slot="autocomplete-clear"]
|
|
644
654
|
):hover:not([data-disabled]) {
|
|
@@ -648,7 +658,6 @@
|
|
|
648
658
|
|
|
649
659
|
:where(
|
|
650
660
|
[data-slot="combobox-trigger"],
|
|
651
|
-
[data-slot="combobox-clear"],
|
|
652
661
|
[data-slot="autocomplete-trigger"],
|
|
653
662
|
[data-slot="autocomplete-clear"]
|
|
654
663
|
):focus-visible {
|
|
@@ -658,7 +667,6 @@
|
|
|
658
667
|
|
|
659
668
|
:where(
|
|
660
669
|
[data-slot="combobox-trigger"],
|
|
661
|
-
[data-slot="combobox-clear"],
|
|
662
670
|
[data-slot="autocomplete-trigger"],
|
|
663
671
|
[data-slot="autocomplete-clear"]
|
|
664
672
|
)[data-disabled] {
|
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
|
}
|
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 };
|