@mcp-b/react-components 0.40.0 → 0.41.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-CVO7xyLC.d.ts → AgentChat-DVr2giwD.d.ts} +1 -1
- package/dist/{AgentToolRunsContext-BCVqCtJ1.d.ts → AgentToolRunsContext-daY67hFM.d.ts} +12 -0
- package/dist/AppTopBar-ZdgmB_Lu.d.ts +97 -0
- package/dist/{CodeBlock-CWk1FVtm.js → CodeBlock-BjELA-_s.js} +1 -1
- package/dist/{FileTree-xqHYBw4g.js → FileTree-DMYRdT6R.js} +1 -1
- package/dist/McpConnectorForm-MRm1r59e.d.ts +39 -0
- package/dist/{Message-DBsHHhcM.d.ts → Message-D_vCVEGB.d.ts} +20 -1
- package/dist/{ThinkChatActivity-D6-_5Phw.d.ts → ThinkChatActivity-DyGHj01E.d.ts} +1 -1
- package/dist/{ThinkExecutionRun-lYYgyeE1.d.ts → ThinkExecutionRun-k8bpyXqt.d.ts} +3 -3
- package/dist/{ToggleGroup-_pQMyHGM.d.ts → ToggleGroup-BrQZOQn_.d.ts} +1 -1
- package/dist/Toolbar-CBOseBQr.d.ts +152 -0
- package/dist/{WorkspaceFileView-Lab3om3F.js → WorkspaceFileView-D0yFwoDr.js} +2 -2
- package/dist/{WorkspaceMessageResponse-Cy28WGSz.d.ts → WorkspaceMessageResponse-D66ty4FO.d.ts} +1 -1
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChat.js +41 -18
- package/dist/components/agents-sdk/AgentToolRunsContext.d.ts +1 -1
- package/dist/components/agents-sdk/AgentToolRunsContext.js +12 -0
- package/dist/components/agents-sdk/BrowserLiveScreen.d.ts +135 -0
- package/dist/components/agents-sdk/BrowserLiveScreen.js +637 -0
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +2 -2
- package/dist/components/agents-sdk/BrowserLiveView.js +6 -9
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +6 -12
- package/dist/components/agents-sdk/ManagerOffice.d.ts +156 -0
- package/dist/components/agents-sdk/ManagerOffice.js +662 -0
- package/dist/components/agents-sdk/McpConnectionRequest.js +3 -3
- package/dist/components/agents-sdk/McpConnectorForm.d.ts +1 -38
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +8 -2
- package/dist/components/agents-sdk/McpPluginCatalog.js +80 -62
- package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +2 -2
- package/dist/components/agents-sdk/ModelSelector.js +2 -2
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SubagentRunDetails.d.ts +1 -9
- package/dist/components/agents-sdk/SubagentRunDetails.js +1 -9
- package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
- package/dist/components/agents-sdk/SubagentRunSelector.d.ts +4 -2
- package/dist/components/agents-sdk/SubagentRunSelector.js +7 -6
- package/dist/components/agents-sdk/ThinkChat.d.ts +4 -4
- package/dist/components/agents-sdk/ThinkChat.js +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +43 -43
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkExecutionRun.js +5 -6
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +8 -12
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +42 -37
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +18 -6
- package/dist/components/agents-sdk/ThinkFullApp.js +113 -145
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutine.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +5 -16
- package/dist/components/agents-sdk/ThinkRoutineForm.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +69 -89
- package/dist/components/agents-sdk/ThinkRoutineRuns.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +3 -10
- package/dist/components/agents-sdk/ThinkThreadPicker.js +2 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +2 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +11 -11
- package/dist/components/ai-sdk/Activity.js +1 -1
- package/dist/components/ai-sdk/AgentAttention.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
- package/dist/components/ai-sdk/Approval.js +1 -1
- package/dist/components/ai-sdk/Artifact.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +1 -1
- package/dist/components/ai-sdk/Checkpoint.js +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/Conversation.js +1 -1
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
- package/dist/components/ai-sdk/Message.d.ts +2 -2
- package/dist/components/ai-sdk/Message.js +25 -3
- package/dist/components/ai-sdk/MessageScroller.js +1 -1
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.js +1 -1
- package/dist/components/ai-sdk/Queue.d.ts +4 -4
- package/dist/components/ai-sdk/Queue.js +6 -15
- package/dist/components/ai-sdk/Reasoning.js +1 -1
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.d.ts +2 -2
- package/dist/components/ai-sdk/Task.js +2 -2
- package/dist/components/extension/ChatGptSignInScreen.js +1 -1
- package/dist/components/extension/CodexModelSelector.js +1 -1
- package/dist/components/extension/ConversationTabPicker.js +1 -1
- package/dist/components/foundations/Avatar.d.ts +1 -10
- package/dist/components/foundations/Avatar.js +1 -10
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/CheckboxGroup.js +1 -0
- package/dist/components/foundations/ContextMenu.js +1 -1
- package/dist/components/foundations/LinkButton.d.ts +12 -10
- package/dist/components/foundations/LinkButton.js +15 -11
- package/dist/components/foundations/Menubar.js +1 -1
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.js +1 -1
- package/dist/components/foundations/Stepper.js +1 -1
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/ToggleGroup.d.ts +1 -1
- package/dist/components/foundations/ToggleGroup.js +1 -1
- package/dist/components/foundations/Toolbar.d.ts +1 -151
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -90
- package/dist/components/general-purpose/AppTopBar.js +2 -1
- package/dist/components/general-purpose/Commit.d.ts +2 -2
- package/dist/components/general-purpose/Commit.js +5 -13
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.js +4 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingBillingToggle.js +5 -10
- package/dist/components/general-purpose/PricingPlanCard.js +15 -14
- package/dist/components/general-purpose/PricingUsageCalculator.js +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +95 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +90 -34
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/Terminal.d.ts +1 -1
- package/dist/components/general-purpose/Terminal.js +4 -12
- package/dist/components/general-purpose/TestResults.d.ts +1 -1
- package/dist/components/general-purpose/TestResults.js +8 -21
- package/dist/components/general-purpose/ThemeModeControl.js +1 -1
- package/dist/components/general-purpose/WebPreview.d.ts +1 -1
- package/dist/components/general-purpose/WebPreview.js +4 -12
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.d.ts +1 -1
- package/dist/components/nanites/AgentToolDetail.js +7 -7
- package/dist/components/nanites/NaniteScene.js +11 -11
- package/dist/{copy-button-Bc7jsYv_.js → copy-button-lys9N_aI.js} +1 -1
- package/dist/{icons-DwgNir1Q.d.ts → icons-0corjfxR.d.ts} +1 -16
- package/dist/{icons-MmIXciMO.js → icons-CVFSeTJn.js} +2 -5
- package/dist/styles/agent-attention.css +5 -5
- package/dist/styles/agent-chat.css +47 -12
- package/dist/styles/agent-tool-detail.css +2 -12
- package/dist/styles/app-icon.css +12 -18
- package/dist/styles/app-top-bar.css +32 -6
- package/dist/styles/avatar.css +6 -22
- package/dist/styles/base.css +2 -8
- package/dist/styles/browser-live-screen.css +38 -0
- package/dist/styles/browser-live-view.css +12 -4
- package/dist/styles/browser-run-panel.css +20 -18
- package/dist/styles/chatgpt-sign-in-screen.css +5 -5
- package/dist/styles/commit.css +24 -1
- package/dist/styles/environment-variables.css +3 -0
- package/dist/styles/index.css +5 -4
- package/dist/styles/manager-office.css +486 -0
- package/dist/styles/mcp-plugin-catalog.css +39 -35
- package/dist/styles/mcp-server-picker.css +1 -1
- package/dist/styles/message.css +41 -18
- package/dist/styles/nanite-scene.css +9 -9
- package/dist/styles/pricing-page.css +12 -8
- package/dist/styles/prompt-input.css +8 -13
- package/dist/styles/recipes.css +1 -57
- package/dist/styles/responsive-sidebar-shell.css +70 -20
- package/dist/styles/subagent-run.css +20 -3
- package/dist/styles/terminal.css +19 -0
- package/dist/styles/test-results.css +10 -1
- package/dist/styles/think-execution-status.css +8 -24
- package/dist/styles/think-execution-workbench.css +98 -105
- package/dist/styles/think-full-app.css +81 -193
- package/dist/styles/think-routine-library.css +0 -40
- package/dist/styles/think-thread-picker.css +8 -3
- package/dist/styles/transition-surface.css +7 -8
- package/dist/styles/utilities.css +42 -0
- package/dist/styles/web-preview.css +28 -5
- package/dist/styles/workspace-explorer.css +4 -23
- package/dist/styles/workspace-mount-manager.css +22 -0
- package/package.json +37 -35
- package/dist/ResponsiveSidebarShell-DWjULskY.d.ts +0 -68
- package/dist/components/agents-sdk/AgentActivityPreview.d.ts +0 -46
- package/dist/components/agents-sdk/AgentActivityPreview.js +0 -93
- package/dist/components/agents-sdk/ThinkThreadShell.d.ts +0 -38
- package/dist/components/agents-sdk/ThinkThreadShell.js +0 -27
- package/dist/components/foundations/Badge.d.ts +0 -62
- package/dist/components/foundations/Badge.js +0 -55
- package/dist/components/foundations/StatusPill.d.ts +0 -43
- package/dist/components/foundations/StatusPill.js +0 -35
- package/dist/components/general-purpose/Shell.d.ts +0 -149
- package/dist/components/general-purpose/Shell.js +0 -116
- package/dist/styles/agent-activity-preview-overlay.css +0 -169
- package/dist/styles/agent-activity-preview.css +0 -209
- package/dist/styles/badge.css +0 -120
- package/dist/styles/shell.css +0 -122
- package/dist/styles/status-pill.css +0 -39
- package/dist/{ThinkChat-DkA4Wr71.js → ThinkChat-BES_3Mb-.js} +1 -1
|
@@ -77,7 +77,7 @@ interface BrowserRunPanelStreamedProps extends BrowserRunPanelCommonProps {
|
|
|
77
77
|
}
|
|
78
78
|
type BrowserRunPanelProps = BrowserRunPanelHostedProps | BrowserRunPanelStreamedProps;
|
|
79
79
|
/**
|
|
80
|
-
* Browser panel chrome — drawn tab strip, address bar,
|
|
80
|
+
* Browser panel chrome — drawn tab strip, address bar, edge-to-edge body — for
|
|
81
81
|
* browser surfaces Chrome itself never paints.
|
|
82
82
|
*
|
|
83
83
|
* Two hosts fill it in. A Browser Run host passes upstream `BrowserLiveView`
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
3
|
-
import { Button } from "../foundations/Button.js";
|
|
2
|
+
import { K as SpinnerIcon, tt as XIcon } from "../../icons-CVFSeTJn.js";
|
|
4
3
|
import { Tabs } from "../foundations/Tabs.js";
|
|
5
4
|
import { WebPreview, WebPreviewNavigation, WebPreviewNavigationButton, WebPreviewUrl } from "../general-purpose/WebPreview.js";
|
|
6
5
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
@@ -49,19 +48,13 @@ function BrowserRunPanelFrame({ body, bodyBusy, bodyTabValue, className, error,
|
|
|
49
48
|
...props
|
|
50
49
|
}),
|
|
51
50
|
children: [
|
|
52
|
-
tabs.length > 1 ? /* @__PURE__ */ jsx(WebPreviewNavigation, { children: /* @__PURE__ */
|
|
51
|
+
tabs.length > 1 ? /* @__PURE__ */ jsx(WebPreviewNavigation, { children: /* @__PURE__ */ jsx(Tabs.List, {
|
|
53
52
|
className: "browser-run-panel__tabs",
|
|
54
53
|
"aria-label": "Open browser pages",
|
|
55
54
|
activateOnFocus: true,
|
|
56
|
-
children:
|
|
55
|
+
children: tabs.map((tab) => /* @__PURE__ */ jsxs(Tabs.Tab, {
|
|
57
56
|
value: tab.id,
|
|
58
57
|
className: "browser-run-panel__tab",
|
|
59
|
-
render: /* @__PURE__ */ jsx(Button, {
|
|
60
|
-
type: "button",
|
|
61
|
-
variant: "ghost",
|
|
62
|
-
color: "neutral",
|
|
63
|
-
size: "sm"
|
|
64
|
-
}),
|
|
65
58
|
children: [/* @__PURE__ */ jsx("span", {
|
|
66
59
|
className: "browser-run-panel__tab-glyph",
|
|
67
60
|
"aria-hidden": "true",
|
|
@@ -70,7 +63,7 @@ function BrowserRunPanelFrame({ body, bodyBusy, bodyTabValue, className, error,
|
|
|
70
63
|
className: "browser-run-panel__tab-title sigvelo-truncate",
|
|
71
64
|
children: tabLabel(tab)
|
|
72
65
|
})]
|
|
73
|
-
}, tab.id))
|
|
66
|
+
}, tab.id))
|
|
74
67
|
}) }) : null,
|
|
75
68
|
/* @__PURE__ */ jsxs(WebPreviewNavigation, {
|
|
76
69
|
className: "browser-run-panel__address-bar",
|
|
@@ -109,6 +102,7 @@ function HostedBrowserRunPanel({ liveView, onRefresh, onCloseSession, loading, e
|
|
|
109
102
|
const targets = liveView?.targets ?? [];
|
|
110
103
|
const target = pickTarget(targets, requestedTargetId);
|
|
111
104
|
const body = target && liveView ? /* @__PURE__ */ jsx(BrowserLiveView, {
|
|
105
|
+
fill: true,
|
|
112
106
|
source: {
|
|
113
107
|
url: target.url,
|
|
114
108
|
targetId: target.targetId,
|
|
@@ -167,7 +161,7 @@ function StreamedBrowserRunPanel({ children, tabs = [], selectedTabId = null, on
|
|
|
167
161
|
});
|
|
168
162
|
}
|
|
169
163
|
/**
|
|
170
|
-
* Browser panel chrome — drawn tab strip, address bar,
|
|
164
|
+
* Browser panel chrome — drawn tab strip, address bar, edge-to-edge body — for
|
|
171
165
|
* browser surfaces Chrome itself never paints.
|
|
172
166
|
*
|
|
173
167
|
* Two hosts fill it in. A Browser Run host passes upstream `BrowserLiveView`
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/agents-sdk/ManagerOffice.d.ts
|
|
4
|
+
type ManagerOfficeWorkStatus = "idle" | "running" | "attention" | "error" | "interrupted";
|
|
5
|
+
/**
|
|
6
|
+
* The rail already lists every employee, so there is no separate roster view:
|
|
7
|
+
* the office opens on the one thing that needs a person, and an employee is a
|
|
8
|
+
* selection in the rail rather than a page reached through a second list.
|
|
9
|
+
*/
|
|
10
|
+
type ManagerOfficeView = {
|
|
11
|
+
kind: "attention";
|
|
12
|
+
} | {
|
|
13
|
+
kind: "employee";
|
|
14
|
+
employeeId: string;
|
|
15
|
+
};
|
|
16
|
+
interface ManagerOfficeHandoff {
|
|
17
|
+
/** Stable handoff identity. */
|
|
18
|
+
id: string;
|
|
19
|
+
/** Exact claimed browser tab waiting for the manager. */
|
|
20
|
+
tabId: number;
|
|
21
|
+
/** Exact action the employee needs from the manager. */
|
|
22
|
+
reason: string;
|
|
23
|
+
/**
|
|
24
|
+
* The employee's own words about what it is blocked on, verbatim. The reason
|
|
25
|
+
* is the headline a manager scans; this is the ask they answer, so it is not
|
|
26
|
+
* truncated and not summarized by this component.
|
|
27
|
+
*/
|
|
28
|
+
request?: string;
|
|
29
|
+
/** Work item that owns the handoff. */
|
|
30
|
+
workId: string;
|
|
31
|
+
/** Human-readable title of the owning work. */
|
|
32
|
+
workTitle: string;
|
|
33
|
+
/** Unix timestamp in milliseconds when this handoff began. */
|
|
34
|
+
createdAt: number;
|
|
35
|
+
}
|
|
36
|
+
interface ManagerOfficeWork {
|
|
37
|
+
/** Stable work identity. */
|
|
38
|
+
id: string;
|
|
39
|
+
/** Human-readable outcome or conversation title. */
|
|
40
|
+
title: string;
|
|
41
|
+
/** Canonical thread lifecycle status. */
|
|
42
|
+
status: ManagerOfficeWorkStatus;
|
|
43
|
+
/** Unix timestamp in milliseconds of the latest lifecycle transition. */
|
|
44
|
+
updatedAt: number;
|
|
45
|
+
}
|
|
46
|
+
interface ManagerOfficeRoutine {
|
|
47
|
+
/** Stable routine identity. */
|
|
48
|
+
id: string;
|
|
49
|
+
/** Human-readable recurring responsibility. */
|
|
50
|
+
name: string;
|
|
51
|
+
/** Human-readable schedule supplied by the host. */
|
|
52
|
+
schedule: string;
|
|
53
|
+
/** Whether future occurrences are enabled. */
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
/** Completed runs among the bounded recent run history. */
|
|
56
|
+
completedRuns: number;
|
|
57
|
+
/** Terminal runs among the bounded recent run history. */
|
|
58
|
+
finishedRuns: number;
|
|
59
|
+
}
|
|
60
|
+
/** Which way work moves through a channel, from the employee's side. */
|
|
61
|
+
type ManagerOfficeChannelDirection = "input" | "output" | "both";
|
|
62
|
+
type ManagerOfficeChannelStatus = "connected" | "needs-auth" | "error";
|
|
63
|
+
interface ManagerOfficeChannel {
|
|
64
|
+
/** Stable channel identity. */
|
|
65
|
+
id: string;
|
|
66
|
+
/** Service the employee reaches through, such as “Slack” or “Gmail”. */
|
|
67
|
+
name: string;
|
|
68
|
+
direction: ManagerOfficeChannelDirection;
|
|
69
|
+
status: ManagerOfficeChannelStatus;
|
|
70
|
+
/** Connected account or workspace, or the reason the channel stopped. */
|
|
71
|
+
detail?: string;
|
|
72
|
+
/**
|
|
73
|
+
* App-owned service mark. Products know their own integrations, so the mark
|
|
74
|
+
* comes from them; the package draws the first letter when none is supplied.
|
|
75
|
+
*/
|
|
76
|
+
icon?: React.ReactNode;
|
|
77
|
+
}
|
|
78
|
+
interface ManagerOfficeEmployeeBase {
|
|
79
|
+
/** Stable employee identity used by routes and list keys. */
|
|
80
|
+
id: string;
|
|
81
|
+
/** Short presentation name. */
|
|
82
|
+
name: string;
|
|
83
|
+
/** Verified employee email. */
|
|
84
|
+
email: string;
|
|
85
|
+
/** One or two characters rendered when no avatar image exists. */
|
|
86
|
+
initials: string;
|
|
87
|
+
}
|
|
88
|
+
interface ManagerOfficeConnectedEmployee extends ManagerOfficeEmployeeBase {
|
|
89
|
+
status: "needs-you" | "working" | "idle" | "issue";
|
|
90
|
+
/** Plain-language summary of the employee's role. */
|
|
91
|
+
role: string;
|
|
92
|
+
handoffs: readonly ManagerOfficeHandoff[];
|
|
93
|
+
work: readonly ManagerOfficeWork[];
|
|
94
|
+
routines: readonly ManagerOfficeRoutine[];
|
|
95
|
+
/** Every service the employee reads from or acts on. Empty is meaningful. */
|
|
96
|
+
channels: readonly ManagerOfficeChannel[];
|
|
97
|
+
}
|
|
98
|
+
interface ManagerOfficeDisconnectedEmployee extends ManagerOfficeEmployeeBase {
|
|
99
|
+
status: "offline" | "connecting" | "unavailable";
|
|
100
|
+
/** Honest explanation of the connection state and the manager's next option. */
|
|
101
|
+
statusDescription: string;
|
|
102
|
+
}
|
|
103
|
+
type ManagerOfficeEmployee = ManagerOfficeConnectedEmployee | ManagerOfficeDisconnectedEmployee;
|
|
104
|
+
type ManagerOfficeEmployeeStatus = ManagerOfficeEmployee["status"];
|
|
105
|
+
interface ManagerOfficeNavigation {
|
|
106
|
+
/** App-owned route element for the aggregate handoff view. */
|
|
107
|
+
renderAttentionLink(): React.ReactElement;
|
|
108
|
+
/** App-owned route element for one employee. */
|
|
109
|
+
renderEmployeeLink(employee: ManagerOfficeEmployee): React.ReactElement;
|
|
110
|
+
/** App-owned route element for a handoff's exact work. */
|
|
111
|
+
renderHandoffLink(employee: ManagerOfficeConnectedEmployee, handoff: ManagerOfficeHandoff): React.ReactElement;
|
|
112
|
+
/** App-owned route element for one work item. */
|
|
113
|
+
renderWorkLink(employee: ManagerOfficeConnectedEmployee, work: ManagerOfficeWork): React.ReactElement;
|
|
114
|
+
/** App-owned route element for one recurring responsibility. */
|
|
115
|
+
renderRoutineLink(employee: ManagerOfficeConnectedEmployee, routine: ManagerOfficeRoutine): React.ReactElement;
|
|
116
|
+
/** App-owned route element for starting new work with one employee. */
|
|
117
|
+
renderNewWorkLink(employee: ManagerOfficeConnectedEmployee): React.ReactElement;
|
|
118
|
+
/** App-owned route element for browsing one employee's workspace. */
|
|
119
|
+
renderWorkspaceLink(employee: ManagerOfficeConnectedEmployee): React.ReactElement;
|
|
120
|
+
}
|
|
121
|
+
interface ManagerOfficeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
122
|
+
/** Current disposable navigation projection; durable selection remains app-owned. */
|
|
123
|
+
view: ManagerOfficeView;
|
|
124
|
+
/** Employees projected from their owning runtimes. */
|
|
125
|
+
employees: readonly ManagerOfficeEmployee[];
|
|
126
|
+
/** Router elements supplied by the consuming app. */
|
|
127
|
+
navigation: ManagerOfficeNavigation;
|
|
128
|
+
/** Add/sign-out controls rendered in the office rail. Pass `null` for none. */
|
|
129
|
+
officeActions: React.ReactNode;
|
|
130
|
+
/**
|
|
131
|
+
* Actions rendered for the selected connected employee. Compose interactive
|
|
132
|
+
* controls through `AppTopBar.Control` so they join the toolbar; pass `null`
|
|
133
|
+
* for none.
|
|
134
|
+
*/
|
|
135
|
+
renderEmployeeActions: (employee: ManagerOfficeConnectedEmployee) => React.ReactNode;
|
|
136
|
+
/** Action shown in the empty office. Pass `null` for none. */
|
|
137
|
+
emptyOfficeAction: React.ReactNode;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Multi-employee manager office: aggregate handoffs, employee roster, and one
|
|
141
|
+
* employee dossier. The consuming app owns authentication, Agent connections,
|
|
142
|
+
* routing, and the selected employee's full work surface.
|
|
143
|
+
*/
|
|
144
|
+
declare function ManagerOffice({
|
|
145
|
+
className,
|
|
146
|
+
emptyOfficeAction,
|
|
147
|
+
employees,
|
|
148
|
+
navigation,
|
|
149
|
+
officeActions,
|
|
150
|
+
renderEmployeeActions,
|
|
151
|
+
style,
|
|
152
|
+
view,
|
|
153
|
+
...props
|
|
154
|
+
}: ManagerOfficeProps): React.JSX.Element;
|
|
155
|
+
//#endregion
|
|
156
|
+
export { ManagerOffice, ManagerOfficeChannel, ManagerOfficeChannelDirection, ManagerOfficeChannelStatus, ManagerOfficeConnectedEmployee, ManagerOfficeDisconnectedEmployee, ManagerOfficeEmployee, ManagerOfficeEmployeeStatus, ManagerOfficeHandoff, ManagerOfficeNavigation, ManagerOfficeProps, ManagerOfficeRoutine, ManagerOfficeView, ManagerOfficeWork, ManagerOfficeWorkStatus };
|