@mcp-b/react-components 0.47.0 → 0.49.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/AgentChatQueue-C_Jaw3Ia.d.ts +48 -0
- package/dist/AgentToolRunsContext-GMe_hSnD.d.ts +35 -0
- package/dist/Avatar-o2NO1fCG.d.ts +124 -0
- package/dist/{Button-CZt3yywF.d.ts → Button-DjONW5UW.d.ts} +1 -1
- package/dist/{CodeBlock-C380GD5t.d.ts → CodeBlock--r6GS8YV.d.ts} +8 -2
- package/dist/{CodeBlock-DMHZiw86.js → CodeBlock-g8sADidM.js} +7 -7
- package/dist/Correspondent-7K6uNLUm.d.ts +64 -0
- package/dist/{FileTree-BHebfvkK.js → FileTree-H8mMg4rV.js} +20 -29
- package/dist/{IconButton-BAUFhUk8.d.ts → IconButton-ByiyjkYE.d.ts} +2 -2
- package/dist/{Message-D_vCVEGB.d.ts → Message-DyaTBiV7.d.ts} +17 -4
- package/dist/MessageScrollerVirtual-D4afYwVB.d.ts +84 -0
- package/dist/{PromptInput-DtJHyp0S.d.ts → PromptInput-C4Mofitz.d.ts} +44 -31
- package/dist/PromptInputApproval-D2hpn54U.d.ts +44 -0
- package/dist/Separator-CzhtLYE1.d.ts +41 -0
- package/dist/Toolbar-CGY004u0.d.ts +155 -0
- package/dist/{Workspace-C_zHq9KZ.d.ts → Workspace-HzGrWDX3.d.ts} +14 -3
- package/dist/{WorkspaceFile-Dq-GC0_T.d.ts → WorkspaceFile-Bouauobc.d.ts} +1 -1
- package/dist/{WorkspaceFileView-ChIJz-fl.js → WorkspaceFileView-DYPtRVpM.js} +4 -3
- package/dist/{WorkspaceLink-B1d2GIGl.js → WorkspaceLink-BYZG-V_I.js} +8 -91
- package/dist/{WorkspaceMessageResponse-Dg_aNpoj.js → WorkspaceMessageResponse-CUJk9_P5.js} +6 -3
- package/dist/components/agents-sdk/AgentChat.d.ts +198 -2
- package/dist/components/agents-sdk/AgentChat.js +525 -670
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +2 -0
- package/dist/components/agents-sdk/AgentChatQueue.js +206 -0
- package/dist/components/agents-sdk/AgentEvent.js +1 -1
- package/dist/components/agents-sdk/AgentToolRunsContext.d.ts +2 -2
- package/dist/components/agents-sdk/AgentToolRunsContext.js +1 -36
- package/dist/components/agents-sdk/BrowserLiveScreen.js +21 -13
- package/dist/components/agents-sdk/BrowserReplay.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +3 -0
- package/dist/components/agents-sdk/BrowserRunPanel.js +31 -30
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +212 -0
- package/dist/components/agents-sdk/EmployeeChrome.js +555 -0
- package/dist/components/agents-sdk/ManagerOffice.d.ts +115 -85
- package/dist/components/agents-sdk/ManagerOffice.js +545 -1154
- package/dist/components/agents-sdk/McpConnectionRequest.d.ts +4 -4
- package/dist/components/agents-sdk/McpConnectionRequest.js +3 -2
- package/dist/components/agents-sdk/McpConnectorForm.d.ts +38 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +93 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +3 -2
- package/dist/components/agents-sdk/McpServerIcon.d.ts +17 -0
- package/dist/components/agents-sdk/McpServerIcon.js +25 -0
- package/dist/components/agents-sdk/McpServerPicker.d.ts +4 -3
- package/dist/components/agents-sdk/McpServerPicker.js +2 -1
- package/dist/components/agents-sdk/ModelSelector.d.ts +4 -4
- package/dist/components/agents-sdk/ModelSelector.js +3 -3
- package/dist/components/agents-sdk/PromptInputApproval.d.ts +1 -43
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -2
- package/dist/components/agents-sdk/SessionCompaction.d.ts +88 -1
- package/dist/components/agents-sdk/SessionCompaction.js +2 -2
- package/dist/components/agents-sdk/SubagentRunDetails.d.ts +30 -1
- package/dist/components/agents-sdk/SubagentRunDetails.js +57 -1
- package/dist/components/agents-sdk/SubagentRunIndicator.d.ts +9 -9
- package/dist/components/agents-sdk/SubagentRunIndicator.js +18 -23
- package/dist/components/agents-sdk/SubagentRunList.d.ts +6 -3
- package/dist/components/agents-sdk/SubagentRunList.js +4 -2
- package/dist/components/agents-sdk/SubagentRunPanel.d.ts +60 -0
- package/dist/components/agents-sdk/SubagentRunPanel.js +255 -0
- package/dist/components/agents-sdk/SubagentRunSelector.d.ts +8 -4
- package/dist/components/agents-sdk/SubagentRunSelector.js +4 -2
- package/dist/components/agents-sdk/ThinkChat.d.ts +102 -2
- package/dist/components/agents-sdk/ThinkChat.js +233 -2
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +76 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +17 -9
- package/dist/components/agents-sdk/ThinkChatContext.d.ts +27 -1
- package/dist/components/agents-sdk/ThinkChatContext.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +23 -18
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +85 -28
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +158 -101
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +40 -158
- package/dist/components/agents-sdk/ThinkFullApp.js +71 -285
- package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +18 -1
- package/dist/components/agents-sdk/ThinkRoutineActions.d.ts +51 -0
- package/dist/components/agents-sdk/ThinkRoutineActions.js +201 -0
- package/dist/components/agents-sdk/ThinkRoutineBrowser.d.ts +4 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +16 -14
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +12 -12
- package/dist/components/agents-sdk/ThinkRoutineForm.d.ts +2 -1
- package/dist/components/agents-sdk/ThinkRoutineForm.js +11 -11
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +6 -6
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +90 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +2 -2
- package/dist/components/agents-sdk/Workspace.d.ts +2 -2
- package/dist/components/agents-sdk/Workspace.js +20 -23
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +3 -2
- package/dist/components/agents-sdk/WorkspaceConcept.js +3 -3
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +15 -10
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +43 -40
- package/dist/components/agents-sdk/WorkspaceExecution.d.ts +31 -31
- package/dist/components/agents-sdk/WorkspaceExecution.js +115 -192
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +5 -2
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -2
- 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/agents-sdk/WorkspaceLink.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +60 -1
- package/dist/components/agents-sdk/WorkspaceLive.js +33 -5
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +47 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.d.ts +3 -2
- package/dist/components/agents-sdk/WorkspaceMountManager.js +5 -8
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.d.ts +38 -0
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +86 -0
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +44 -15
- package/dist/components/agents-sdk/WorkspaceProject.js +74 -51
- package/dist/components/agents-sdk/WorkspaceUserScript.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceUserScript.js +5 -2
- package/dist/components/ai-sdk/Activity.d.ts +1 -1
- package/dist/components/ai-sdk/AgentAttention.d.ts +2 -2
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +89 -2
- package/dist/components/ai-sdk/AgentChatStartScreen.js +63 -42
- package/dist/components/ai-sdk/AgentMessageParts.d.ts +45 -1
- package/dist/components/ai-sdk/Approval.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.d.ts +2 -2
- package/dist/components/ai-sdk/Artifact.js +2 -2
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +1 -2
- package/dist/components/ai-sdk/ConnectedAppCards.d.ts +16 -1
- package/dist/components/ai-sdk/ConnectedAppCards.js +69 -94
- package/dist/components/ai-sdk/Context.d.ts +7 -3
- package/dist/components/ai-sdk/Context.js +7 -17
- package/dist/components/ai-sdk/Conversation.d.ts +2 -2
- package/dist/components/ai-sdk/Correspondent.d.ts +2 -0
- package/dist/components/ai-sdk/Correspondent.js +145 -0
- package/dist/components/ai-sdk/Goal.d.ts +3 -3
- package/dist/components/ai-sdk/Goal.js +2 -2
- package/dist/components/ai-sdk/InlineCitation.d.ts +1 -1
- package/dist/components/ai-sdk/InlineCitation.js +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.d.ts +1 -1
- package/dist/components/ai-sdk/Message.d.ts +2 -2
- package/dist/components/ai-sdk/Message.js +11 -2
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScrollerVirtual.d.ts +2 -76
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +38 -4
- package/dist/components/ai-sdk/Plan.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.d.ts +2 -2
- package/dist/components/ai-sdk/PromptInput.js +170 -226
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +32 -9
- package/dist/components/ai-sdk/Queue.d.ts +28 -5
- package/dist/components/ai-sdk/Queue.js +19 -4
- package/dist/components/ai-sdk/Reasoning.d.ts +1 -1
- package/dist/components/ai-sdk/Reasoning.js +4 -4
- package/dist/components/ai-sdk/Sources.d.ts +1 -1
- package/dist/components/ai-sdk/Task.d.ts +1 -1
- package/dist/components/extension/ChatGptSignInScreen.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.d.ts +5 -0
- package/dist/components/extension/ConversationTabPicker.d.ts +1 -0
- package/dist/components/extension/ConversationTabPicker.js +1 -1
- package/dist/components/foundations/AlertDialog.d.ts +1 -1
- package/dist/components/foundations/AppIcon.d.ts +3 -2
- package/dist/components/foundations/Autocomplete.js +6 -1
- package/dist/components/foundations/Avatar.d.ts +1 -121
- package/dist/components/foundations/Button.d.ts +1 -1
- package/dist/components/foundations/Card.d.ts +22 -27
- package/dist/components/foundations/Card.js +51 -32
- package/dist/components/foundations/CheckboxGroup.d.ts +1 -1
- package/dist/components/foundations/Collapsible.d.ts +1 -1
- package/dist/components/foundations/Combobox.js +6 -1
- package/dist/components/foundations/Dialog.d.ts +106 -1
- package/dist/components/foundations/EmptyState.d.ts +1 -1
- package/dist/components/foundations/Field.d.ts +2 -1
- package/dist/components/foundations/Fieldset.d.ts +1 -1
- package/dist/components/foundations/Form.d.ts +4 -4
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/Label.d.ts +1 -1
- package/dist/components/foundations/LinkButton.d.ts +2 -2
- package/dist/components/foundations/Meter.d.ts +1 -1
- package/dist/components/foundations/NumberField.d.ts +1 -1
- package/dist/components/foundations/ScrollArea.d.ts +1 -1
- package/dist/components/foundations/SearchField.d.ts +1 -1
- package/dist/components/foundations/Select.js +6 -1
- package/dist/components/foundations/Separator.d.ts +1 -40
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Textarea.d.ts +1 -1
- package/dist/components/foundations/Toast.d.ts +5 -1
- package/dist/components/foundations/Toggle.d.ts +70 -1
- package/dist/components/foundations/ToggleGroup.d.ts +3 -2
- package/dist/components/foundations/Toolbar.d.ts +1 -151
- package/dist/components/foundations/TransitionSurface.d.ts +1 -1
- package/dist/components/general-purpose/ActionGuide.d.ts +10 -26
- package/dist/components/general-purpose/ActionGuide.js +4 -18
- package/dist/components/general-purpose/AppTopBar.d.ts +4 -2
- package/dist/components/general-purpose/Commit.d.ts +2 -2
- package/dist/components/general-purpose/Commit.js +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +2 -2
- package/dist/components/general-purpose/FileTree.d.ts +1 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingBillingToggle.js +1 -1
- package/dist/components/general-purpose/PricingPlanCard.d.ts +4 -0
- package/dist/components/general-purpose/PricingUsageCalculator.js +1 -1
- package/dist/components/general-purpose/ResizableSidePanel.d.ts +2 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +128 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +119 -101
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +14 -27
- package/dist/components/general-purpose/SettingsFormDialog.js +40 -70
- package/dist/components/general-purpose/SetupChecklist.d.ts +1 -0
- package/dist/components/general-purpose/SetupChecklist.js +76 -1
- package/dist/components/general-purpose/Terminal.d.ts +3 -3
- package/dist/components/general-purpose/Terminal.js +10 -5
- package/dist/components/general-purpose/TestResults.d.ts +23 -11
- package/dist/components/general-purpose/TestResults.js +48 -50
- package/dist/components/general-purpose/ThemeModeControl.d.ts +2 -0
- package/dist/components/general-purpose/WebPreview.d.ts +29 -4
- package/dist/components/general-purpose/WebPreview.js +37 -12
- package/dist/components/nanites/AgentConnection.js +1 -1
- package/dist/components/nanites/AgentToolDetail.d.ts +13 -11
- package/dist/components/nanites/AgentToolDetail.js +20 -41
- package/dist/{copy-button-C0JyjClr.d.ts → copy-button-OUwOdgEm.d.ts} +1 -1
- package/dist/mcp-server-mAErsxHU.js +27 -0
- package/dist/styles/activity.css +1 -96
- package/dist/styles/agent-chat.css +75 -102
- package/dist/styles/agent-tool-detail.css +0 -16
- package/dist/styles/base.css +3 -3
- package/dist/styles/browser-run-panel.css +1 -15
- package/dist/styles/button.css +7 -1
- package/dist/styles/code-block.css +12 -0
- package/dist/styles/composition-motion.css +0 -2
- package/dist/styles/correspondent.css +73 -0
- package/dist/styles/employee-chrome.css +43 -0
- package/dist/styles/file-tree.css +5 -0
- package/dist/styles/index.css +5 -2
- package/dist/styles/manager-office.css +380 -1086
- package/dist/styles/message.css +2 -10
- package/dist/styles/queue.css +71 -0
- package/dist/styles/subagent-run.css +122 -6
- package/dist/styles/test-results.css +2 -5
- package/dist/styles/think-chat-activity.css +13 -0
- package/dist/styles/think-chat-tool-panels.css +81 -0
- package/dist/styles/think-execution-workbench.css +2 -8
- package/dist/styles/think-full-app.css +42 -251
- package/dist/styles/{think-routine-library.css → think-routine.css} +64 -80
- package/dist/styles/web-preview.css +15 -1
- package/dist/utils/mcp-server-catalog.d.ts +1112 -2
- package/dist/utils/mcp-server-catalog.js +28 -9
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/{workspace-assets-CxpEHsac.js → workspace-assets-Bg7XhPsk.js} +16 -2
- package/package.json +7 -3
- package/dist/AgentChat-BLmQghkt.d.ts +0 -327
- package/dist/AgentChatStartScreen-Bkv7Avni.d.ts +0 -84
- package/dist/AgentMessageParts-C7L-Mv9U.d.ts +0 -46
- package/dist/AgentToolRunsContext-jtmveaRE.d.ts +0 -57
- package/dist/Dialog-B_FhRWaz.d.ts +0 -107
- package/dist/McpConnectorForm-CeYNY0MI.d.ts +0 -39
- package/dist/McpPluginCatalog-3qWu8oK1.d.ts +0 -92
- package/dist/ResponsiveSidebarShell-BTVPxLJK.d.ts +0 -123
- package/dist/SessionCompaction-CmTJFpzj.d.ts +0 -89
- package/dist/SetupChecklist-CwRjIDH4.js +0 -77
- package/dist/ThinkChat-CwMdEum8.d.ts +0 -185
- package/dist/ThinkChat-DLDta57t.js +0 -332
- package/dist/ThinkChatActivity-B3lGVS-6.d.ts +0 -77
- package/dist/ThinkChatContext-COIgzkYp.d.ts +0 -28
- package/dist/ThinkRecoveryNotice-DGWr94rk.d.ts +0 -19
- package/dist/ThinkThreadPicker-yFz4vvIf.d.ts +0 -91
- package/dist/Toggle-DLrIf5YH.d.ts +0 -69
- package/dist/WorkspaceLive-DLGhtIly.d.ts +0 -49
- package/dist/WorkspaceMessageResponse-kJYU8Onj.d.ts +0 -48
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +0 -31
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.js +0 -34
- package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +0 -80
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +0 -159
- package/dist/components/agents-sdk/ThinkSidepanel.d.ts +0 -200
- package/dist/components/agents-sdk/ThinkSidepanel.js +0 -775
- package/dist/mcp-server-7NR24ASj.js +0 -69
- package/dist/mcp-server-catalog-C_g7C-9o.d.ts +0 -1108
- package/dist/styles/think-sidepanel.css +0 -78
- package/dist/think-agent-Cip5KAPj.d.ts +0 -7
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as Correspondent } from "../../Correspondent-7K6uNLUm.js";
|
|
2
2
|
import { ThinkRoutine } from "./ThinkRoutine.js";
|
|
3
3
|
import * as React from "react";
|
|
4
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
5
|
|
|
5
6
|
//#region src/components/agents-sdk/ManagerOffice.d.ts
|
|
6
7
|
type ManagerOfficeWorkStatus = "idle" | "running" | "attention" | "error" | "interrupted";
|
|
7
|
-
/** The app-owned projection currently shown by the manager office. */
|
|
8
|
-
type ManagerOfficeView = {
|
|
9
|
-
kind: "dashboard";
|
|
10
|
-
} | {
|
|
11
|
-
kind: "attention";
|
|
12
|
-
} | {
|
|
13
|
-
kind: "employee";
|
|
14
|
-
employeeId: string;
|
|
15
|
-
};
|
|
16
8
|
interface ManagerOfficeHandoff {
|
|
17
9
|
/** Stable handoff identity. */
|
|
18
10
|
id: string;
|
|
@@ -33,6 +25,27 @@ interface ManagerOfficeHandoff {
|
|
|
33
25
|
/** Unix timestamp in milliseconds when this handoff began. */
|
|
34
26
|
createdAt: number;
|
|
35
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* One item in a lane's workspace staging area. Companion projects a thread
|
|
30
|
+
* folder (files, recorded Google Doc/Sheet URLs, people) once the employee
|
|
31
|
+
* creates it. Not a document registry and not a CRM.
|
|
32
|
+
*/
|
|
33
|
+
type ManagerOfficeWorkingSetItem = {
|
|
34
|
+
kind: "file";
|
|
35
|
+
path: string;
|
|
36
|
+
title: string;
|
|
37
|
+
} | {
|
|
38
|
+
kind: "folder";
|
|
39
|
+
path: string;
|
|
40
|
+
title: string;
|
|
41
|
+
} | {
|
|
42
|
+
kind: "link";
|
|
43
|
+
href: string;
|
|
44
|
+
title: string;
|
|
45
|
+
} | {
|
|
46
|
+
kind: "correspondent";
|
|
47
|
+
correspondent: Correspondent;
|
|
48
|
+
};
|
|
36
49
|
interface ManagerOfficeWork {
|
|
37
50
|
/** Stable work identity. */
|
|
38
51
|
id: string;
|
|
@@ -44,16 +57,18 @@ interface ManagerOfficeWork {
|
|
|
44
57
|
summary?: string;
|
|
45
58
|
/** Unix timestamp in milliseconds of the latest lifecycle transition. */
|
|
46
59
|
updatedAt: number;
|
|
60
|
+
/**
|
|
61
|
+
* Staging files, provider documents, and people this lane is using. Omit or
|
|
62
|
+
* empty until the employee creates the thread's workspace folder.
|
|
63
|
+
*/
|
|
64
|
+
workingSet?: readonly ManagerOfficeWorkingSetItem[];
|
|
47
65
|
}
|
|
48
|
-
/** Which way work moves through a channel, from the employee's side. */
|
|
49
|
-
type ManagerOfficeChannelDirection = "input" | "output" | "both";
|
|
50
66
|
type ManagerOfficeChannelStatus = "connected" | "needs-auth" | "error";
|
|
51
67
|
interface ManagerOfficeChannel {
|
|
52
68
|
/** Stable channel identity. */
|
|
53
69
|
id: string;
|
|
54
70
|
/** Service the employee reaches through, such as “Slack” or “Gmail”. */
|
|
55
71
|
name: string;
|
|
56
|
-
direction: ManagerOfficeChannelDirection;
|
|
57
72
|
status: ManagerOfficeChannelStatus;
|
|
58
73
|
/** Connected account or workspace, or the reason the channel stopped. */
|
|
59
74
|
detail?: string;
|
|
@@ -64,30 +79,6 @@ interface ManagerOfficeChannel {
|
|
|
64
79
|
*/
|
|
65
80
|
icon?: React.ReactNode;
|
|
66
81
|
}
|
|
67
|
-
interface ManagerOfficeBrowserPreview {
|
|
68
|
-
/** Title of the tab currently visible on the employee's browser. */
|
|
69
|
-
title: string;
|
|
70
|
-
/** Display-safe URL supplied by the host. */
|
|
71
|
-
url: string;
|
|
72
|
-
}
|
|
73
|
-
interface ManagerOfficeAnalyticsPoint {
|
|
74
|
-
/** Start of the reporting bucket as a Unix timestamp in milliseconds. */
|
|
75
|
-
timestamp: number;
|
|
76
|
-
/** Outcomes completed during this bucket. */
|
|
77
|
-
completed: number;
|
|
78
|
-
/** Employee runtime consumed during this bucket. */
|
|
79
|
-
workloadHours: number;
|
|
80
|
-
/** Host-estimated inference and tool cost during this bucket. */
|
|
81
|
-
estimatedCost: number;
|
|
82
|
-
}
|
|
83
|
-
interface ManagerOfficeEmployeeAnalytics {
|
|
84
|
-
employeeId: string;
|
|
85
|
-
points: readonly ManagerOfficeAnalyticsPoint[];
|
|
86
|
-
}
|
|
87
|
-
interface ManagerOfficeReportSelection {
|
|
88
|
-
employeeIds: readonly string[];
|
|
89
|
-
rangeDays: 7 | 30 | 90;
|
|
90
|
-
}
|
|
91
82
|
interface ManagerOfficeEmployeeBase {
|
|
92
83
|
/** Stable employee identity used by routes and list keys. */
|
|
93
84
|
id: string;
|
|
@@ -108,8 +99,6 @@ interface ManagerOfficeConnectedEmployee extends ManagerOfficeEmployeeBase {
|
|
|
108
99
|
routines: readonly ThinkRoutine[];
|
|
109
100
|
/** Every service the employee reads from or acts on. Empty is meaningful. */
|
|
110
101
|
channels: readonly ManagerOfficeChannel[];
|
|
111
|
-
/** The live tab the manager can glance at from the office. */
|
|
112
|
-
browserPreview?: ManagerOfficeBrowserPreview;
|
|
113
102
|
}
|
|
114
103
|
interface ManagerOfficeDisconnectedEmployee extends ManagerOfficeEmployeeBase {
|
|
115
104
|
status: "offline" | "connecting" | "unavailable";
|
|
@@ -148,32 +137,15 @@ type ManagerOfficeDestination = {
|
|
|
148
137
|
employee: ManagerOfficeConnectedEmployee;
|
|
149
138
|
} | {
|
|
150
139
|
kind: "workspace";
|
|
151
|
-
employee: ManagerOfficeConnectedEmployee;
|
|
140
|
+
employee: ManagerOfficeConnectedEmployee; /** Owning lane when opening a file from that lane's working set. */
|
|
141
|
+
work?: ManagerOfficeWork; /** Workspace path to select, when the destination is a specific entry. */
|
|
142
|
+
path?: string;
|
|
152
143
|
};
|
|
153
|
-
interface
|
|
154
|
-
/**
|
|
155
|
-
view: ManagerOfficeView;
|
|
156
|
-
/** Employees projected from their owning runtimes. */
|
|
144
|
+
interface ManagerOfficeRootProps extends useRender.ComponentProps<"div"> {
|
|
145
|
+
/** Data projected from the owning employee runtimes. */
|
|
157
146
|
employees: readonly ManagerOfficeEmployee[];
|
|
158
|
-
/**
|
|
147
|
+
/** Application-owned routes; no navigation state lives in the office. */
|
|
159
148
|
renderLink: (destination: ManagerOfficeDestination) => React.ReactElement;
|
|
160
|
-
/** Add/sign-out controls rendered in the app bar or office rail. */
|
|
161
|
-
officeActions?: React.ReactNode;
|
|
162
|
-
/** Place the wide-layout Workforce toggle. Defaults to the Workforce sidebar. */
|
|
163
|
-
sidebarTogglePlacement?: React.ComponentProps<typeof ResponsiveSidebarShell>["sidebarTogglePlacement"];
|
|
164
|
-
/**
|
|
165
|
-
* Actions rendered for the selected connected employee. Compose interactive
|
|
166
|
-
* controls through `AppTopBar.Control` so they join the toolbar.
|
|
167
|
-
*/
|
|
168
|
-
renderEmployeeActions?: (employee: ManagerOfficeConnectedEmployee) => React.ReactNode;
|
|
169
|
-
/** Action shown in the empty office. */
|
|
170
|
-
emptyOfficeAction?: React.ReactNode;
|
|
171
|
-
/** Per-employee reporting buckets used by the executive analytics view. */
|
|
172
|
-
analytics?: readonly ManagerOfficeEmployeeAnalytics[];
|
|
173
|
-
/** Currency used for cost estimates. Defaults to USD. */
|
|
174
|
-
analyticsCurrency?: string;
|
|
175
|
-
/** Export the exact filtered portfolio and time range currently on screen. */
|
|
176
|
-
onExportReport?: (selection: ManagerOfficeReportSelection) => void;
|
|
177
149
|
}
|
|
178
150
|
interface ManagerOfficeSidebarProps extends Omit<React.HTMLAttributes<HTMLElement>, "content"> {
|
|
179
151
|
/** Close the office drawer after a compact-width selection. */
|
|
@@ -181,7 +153,7 @@ interface ManagerOfficeSidebarProps extends Omit<React.HTMLAttributes<HTMLElemen
|
|
|
181
153
|
/** Employees projected from their owning runtimes. */
|
|
182
154
|
employees: readonly ManagerOfficeEmployee[];
|
|
183
155
|
/** App-owned route element for an employee selection. */
|
|
184
|
-
renderLink:
|
|
156
|
+
renderLink: ManagerOfficeRootProps["renderLink"];
|
|
185
157
|
/** Add/sign-out/toggle controls rendered beside Workforce. */
|
|
186
158
|
officeActions?: React.ReactNode;
|
|
187
159
|
/** Employee whose row and optional nested content are active. */
|
|
@@ -190,6 +162,11 @@ interface ManagerOfficeSidebarProps extends Omit<React.HTMLAttributes<HTMLElemen
|
|
|
190
162
|
content?: React.ReactNode;
|
|
191
163
|
/** Persistent sidebar action, such as starting a conversation with the selected employee. */
|
|
192
164
|
footer?: React.ReactNode;
|
|
165
|
+
/**
|
|
166
|
+
* Office is a vertical named roster. Chat is a horizontal seat strip so the
|
|
167
|
+
* thread list owns the column.
|
|
168
|
+
*/
|
|
169
|
+
layout?: "office" | "chat";
|
|
193
170
|
}
|
|
194
171
|
type ManagerOfficeSidebarAlertProps = {
|
|
195
172
|
"aria-label"?: string;
|
|
@@ -211,11 +188,6 @@ declare function ManagerOfficeSidebarAlert({
|
|
|
211
188
|
title,
|
|
212
189
|
...props
|
|
213
190
|
}: ManagerOfficeSidebarAlertProps): React.JSX.Element;
|
|
214
|
-
/**
|
|
215
|
-
* Shared Manager Office rail. Stories and host shells may add employee-owned
|
|
216
|
-
* content, but the Workforce header, roster identity, status language, scrolling,
|
|
217
|
-
* and footer placement stay component-owned and therefore cannot drift.
|
|
218
|
-
*/
|
|
219
191
|
declare function ManagerOfficeSidebar({
|
|
220
192
|
className,
|
|
221
193
|
closeSidebarOnCompact,
|
|
@@ -223,29 +195,87 @@ declare function ManagerOfficeSidebar({
|
|
|
223
195
|
employees,
|
|
224
196
|
renderLink,
|
|
225
197
|
footer,
|
|
198
|
+
layout,
|
|
226
199
|
officeActions,
|
|
227
200
|
selectedEmployeeId,
|
|
228
201
|
...props
|
|
229
202
|
}: ManagerOfficeSidebarProps): React.JSX.Element;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
203
|
+
declare function ManagerOfficeAttention({
|
|
204
|
+
className,
|
|
205
|
+
...props
|
|
206
|
+
}: React.ComponentPropsWithRef<"div">): React.JSX.Element;
|
|
207
|
+
interface ManagerOfficeEmployeeProps extends useRender.ComponentProps<"div"> {
|
|
208
|
+
employee: ManagerOfficeConnectedEmployee;
|
|
209
|
+
}
|
|
210
|
+
/** Scope the selected employee without imposing dossier content or column order. */
|
|
211
|
+
declare function ManagerOfficeEmployeeRoot({
|
|
212
|
+
employee,
|
|
213
|
+
render,
|
|
214
|
+
ref,
|
|
215
|
+
...props
|
|
216
|
+
}: ManagerOfficeEmployeeProps): React.JSX.Element;
|
|
217
|
+
declare function ManagerOfficeEmployeeHeader({
|
|
218
|
+
className,
|
|
219
|
+
...props
|
|
220
|
+
}: React.ComponentPropsWithRef<"header">): React.JSX.Element;
|
|
221
|
+
declare function ManagerOfficeHandoffs({
|
|
222
|
+
className,
|
|
223
|
+
...props
|
|
224
|
+
}: React.ComponentPropsWithRef<"section">): React.JSX.Element | null;
|
|
225
|
+
declare function ManagerOfficeWorkSection({
|
|
226
|
+
className,
|
|
227
|
+
...props
|
|
228
|
+
}: React.ComponentPropsWithRef<"section">): React.JSX.Element;
|
|
229
|
+
declare function ManagerOfficeRoutines({
|
|
230
|
+
className,
|
|
231
|
+
...props
|
|
232
|
+
}: React.ComponentPropsWithRef<"section">): React.JSX.Element;
|
|
233
|
+
declare function ManagerOfficeChannels({
|
|
238
234
|
className,
|
|
239
|
-
|
|
235
|
+
...props
|
|
236
|
+
}: React.ComponentPropsWithRef<"section">): React.JSX.Element;
|
|
237
|
+
declare function ManagerOfficeMain({
|
|
238
|
+
render,
|
|
239
|
+
ref,
|
|
240
|
+
...props
|
|
241
|
+
}: useRender.ComponentProps<"main">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
242
|
+
declare function ManagerOfficeColumns({
|
|
243
|
+
render,
|
|
244
|
+
ref,
|
|
245
|
+
...props
|
|
246
|
+
}: useRender.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
247
|
+
declare function ManagerOfficeAside({
|
|
248
|
+
render,
|
|
249
|
+
ref,
|
|
250
|
+
...props
|
|
251
|
+
}: useRender.ComponentProps<"aside">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
252
|
+
/** Honest disconnected state; the host chooses when and where to display it. */
|
|
253
|
+
declare function ManagerOfficeConnectionState({
|
|
254
|
+
employee
|
|
255
|
+
}: {
|
|
256
|
+
employee: ManagerOfficeDisconnectedEmployee;
|
|
257
|
+
}): React.JSX.Element;
|
|
258
|
+
/** Office data and relative-time boundary; hosts compose their shell and routed content. */
|
|
259
|
+
declare function ManagerOfficeRoot({
|
|
240
260
|
employees,
|
|
241
261
|
renderLink,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
renderEmployeeActions,
|
|
245
|
-
sidebarTogglePlacement,
|
|
246
|
-
style,
|
|
247
|
-
view,
|
|
262
|
+
render,
|
|
263
|
+
ref,
|
|
248
264
|
...props
|
|
249
|
-
}:
|
|
265
|
+
}: ManagerOfficeRootProps): React.JSX.Element;
|
|
266
|
+
declare const ManagerOffice: {
|
|
267
|
+
Root: typeof ManagerOfficeRoot;
|
|
268
|
+
Main: typeof ManagerOfficeMain;
|
|
269
|
+
Attention: typeof ManagerOfficeAttention;
|
|
270
|
+
Employee: typeof ManagerOfficeEmployeeRoot;
|
|
271
|
+
EmployeeHeader: typeof ManagerOfficeEmployeeHeader;
|
|
272
|
+
Handoffs: typeof ManagerOfficeHandoffs;
|
|
273
|
+
Columns: typeof ManagerOfficeColumns;
|
|
274
|
+
Aside: typeof ManagerOfficeAside;
|
|
275
|
+
Work: typeof ManagerOfficeWorkSection;
|
|
276
|
+
Routines: typeof ManagerOfficeRoutines;
|
|
277
|
+
Channels: typeof ManagerOfficeChannels;
|
|
278
|
+
ConnectionState: typeof ManagerOfficeConnectionState;
|
|
279
|
+
};
|
|
250
280
|
//#endregion
|
|
251
|
-
export { ManagerOffice,
|
|
281
|
+
export { ManagerOffice, ManagerOfficeChannel, ManagerOfficeChannelStatus, ManagerOfficeConnectedEmployee, ManagerOfficeDestination, ManagerOfficeDisconnectedEmployee, ManagerOfficeEmployee, ManagerOfficeEmployeeProps, ManagerOfficeEmployeeStatus, ManagerOfficeHandoff, ManagerOfficeRootProps, ManagerOfficeSidebar, ManagerOfficeSidebarAlert, ManagerOfficeSidebarAlertProps, ManagerOfficeSidebarProps, ManagerOfficeWork, ManagerOfficeWorkStatus, ManagerOfficeWorkingSetItem };
|