@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,4 +1,4 @@
|
|
|
1
|
-
import { r as ButtonProps } from "../../Button-
|
|
1
|
+
import { r as ButtonProps } from "../../Button-DjONW5UW.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ai-sdk/AgentAttention.d.ts
|
|
@@ -17,7 +17,7 @@ declare function AgentAttention({
|
|
|
17
17
|
ref,
|
|
18
18
|
...props
|
|
19
19
|
}: AgentAttentionProps & {
|
|
20
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
20
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
21
21
|
}): React.JSX.Element;
|
|
22
22
|
interface AgentAttentionHeadingProps {
|
|
23
23
|
/** Leading visual. Decorative by default; put meaning in the title. */
|
|
@@ -1,2 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { r as ButtonProps } from "../../Button-DjONW5UW.js";
|
|
2
|
+
import { vt as PromptInputTray } from "../../PromptInput-C4Mofitz.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ai-sdk/AgentChatStartScreen.d.ts
|
|
7
|
+
interface AgentChatStarterItem {
|
|
8
|
+
id: string;
|
|
9
|
+
label: React.ReactNode;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
muted?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Accessible label for this suggestion's optional dismiss action. */
|
|
14
|
+
dismissLabel?: string;
|
|
15
|
+
}
|
|
16
|
+
interface AgentChatStarterListProps extends Omit<React.ComponentPropsWithoutRef<"ul">, "children" | "onDismiss" | "onSelect"> {
|
|
17
|
+
/** Complete starter data from a host-owned suggestion query. */
|
|
18
|
+
items: readonly AgentChatStarterItem[];
|
|
19
|
+
onSelect: (item: AgentChatStarterItem) => void;
|
|
20
|
+
/** Enables dismiss actions for items that provide `dismissLabel`. */
|
|
21
|
+
onDismiss?: (item: AgentChatStarterItem) => void;
|
|
22
|
+
}
|
|
23
|
+
interface AgentChatStartScreenProps extends useRender.ComponentProps<"section"> {}
|
|
24
|
+
/** First-turn layout beneath the same draft provider as the live composer. */
|
|
25
|
+
declare function AgentChatStartScreen({
|
|
26
|
+
render,
|
|
27
|
+
ref,
|
|
28
|
+
children,
|
|
29
|
+
...props
|
|
30
|
+
}: AgentChatStartScreenProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
31
|
+
interface AgentChatStartScreenPrimaryProps extends useRender.ComponentProps<"div"> {
|
|
32
|
+
heading?: React.ReactNode;
|
|
33
|
+
}
|
|
34
|
+
/** Heading and live-composer group; suggestions are a separate sibling below it. */
|
|
35
|
+
declare function AgentChatStartScreenPrimary({
|
|
36
|
+
heading,
|
|
37
|
+
render,
|
|
38
|
+
ref,
|
|
39
|
+
children,
|
|
40
|
+
...props
|
|
41
|
+
}: AgentChatStartScreenPrimaryProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
42
|
+
/** Stacking boundary for a caller-owned form and its docked utility tray. */
|
|
43
|
+
declare function AgentChatStartScreenComposer({
|
|
44
|
+
render,
|
|
45
|
+
ref,
|
|
46
|
+
...props
|
|
47
|
+
}: useRender.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
48
|
+
/** Utility actions share PromptInputTray's native props and ref. */
|
|
49
|
+
declare function AgentChatStartScreenTray({
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}: Omit<React.ComponentProps<typeof PromptInputTray>, "side">): React.JSX.Element;
|
|
53
|
+
/** Starter prompts or an app-authored guide; remains in layout while the draft is active. */
|
|
54
|
+
declare function AgentChatStartScreenSuggestions({
|
|
55
|
+
render,
|
|
56
|
+
ref,
|
|
57
|
+
...props
|
|
58
|
+
}: useRender.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
59
|
+
/** Semantic list for first-turn prompts below an `AgentChatStartScreen`. */
|
|
60
|
+
declare function AgentChatStarterList({
|
|
61
|
+
items,
|
|
62
|
+
onSelect,
|
|
63
|
+
onDismiss,
|
|
64
|
+
className,
|
|
65
|
+
...props
|
|
66
|
+
}: AgentChatStarterListProps): React.JSX.Element;
|
|
67
|
+
interface AgentChatStarterProps extends Omit<ButtonProps, "color" | "iconOnly" | "size" | "variant"> {
|
|
68
|
+
/** Decorative icon shown before the prompt label. */
|
|
69
|
+
icon?: React.ReactNode;
|
|
70
|
+
/** Render the prompt with quieter onboarding emphasis. */
|
|
71
|
+
muted?: boolean;
|
|
72
|
+
/** Optional independent action for removing a suggested prompt. */
|
|
73
|
+
onDismiss?: React.MouseEventHandler<HTMLButtonElement>;
|
|
74
|
+
/** Accessible name for the dismiss action. */
|
|
75
|
+
dismissLabel?: string;
|
|
76
|
+
}
|
|
77
|
+
/** One full-width, keyboard-native starter prompt. */
|
|
78
|
+
declare function AgentChatStarter({
|
|
79
|
+
icon,
|
|
80
|
+
muted,
|
|
81
|
+
onDismiss,
|
|
82
|
+
dismissLabel,
|
|
83
|
+
children,
|
|
84
|
+
className,
|
|
85
|
+
type,
|
|
86
|
+
...props
|
|
87
|
+
}: AgentChatStarterProps): React.JSX.Element;
|
|
88
|
+
//#endregion
|
|
89
|
+
export { AgentChatStartScreen, AgentChatStartScreenComposer, AgentChatStartScreenPrimary, AgentChatStartScreenPrimaryProps, AgentChatStartScreenProps, AgentChatStartScreenSuggestions, AgentChatStartScreenTray, AgentChatStarter, AgentChatStarterItem, AgentChatStarterList, AgentChatStarterListProps, AgentChatStarterProps };
|
|
@@ -2,49 +2,70 @@ import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
|
2
2
|
import { nt as XIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
|
-
import { PromptInputTray } from "./PromptInput.js";
|
|
6
|
-
import
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { PromptInputTray, usePromptInputController } from "./PromptInput.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
9
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
8
10
|
//#region src/components/ai-sdk/AgentChatStartScreen.tsx
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
/** First-turn layout beneath the same draft provider as the live composer. */
|
|
12
|
+
function AgentChatStartScreen({ render, ref, children, ...props }) {
|
|
13
|
+
const { textInput, attachments } = usePromptInputController();
|
|
14
|
+
return useRender({
|
|
15
|
+
defaultTagName: "section",
|
|
16
|
+
render,
|
|
17
|
+
ref,
|
|
18
|
+
props: mergeProps({
|
|
19
|
+
"data-slot": "agent-chat-start-screen",
|
|
20
|
+
"data-drafting": textInput.value.length > 0 || attachments.files.length > 0 ? "" : void 0,
|
|
21
|
+
className: "agent-chat-start-screen",
|
|
22
|
+
"aria-label": props["aria-labelledby"] ? void 0 : "New conversation",
|
|
23
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
24
|
+
className: "agent-chat-start-screen__content",
|
|
25
|
+
children
|
|
26
|
+
})
|
|
27
|
+
}, props)
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/** Heading and live-composer group; suggestions are a separate sibling below it. */
|
|
31
|
+
function AgentChatStartScreenPrimary({ heading = "What should we work on?", render, ref, children, ...props }) {
|
|
32
|
+
return useRender({
|
|
33
|
+
defaultTagName: "div",
|
|
34
|
+
render,
|
|
35
|
+
ref,
|
|
36
|
+
props: mergeProps({
|
|
37
|
+
className: "agent-chat-start-screen__primary",
|
|
38
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [heading ? /* @__PURE__ */ jsx("h2", {
|
|
39
|
+
className: "agent-chat-start-screen__heading",
|
|
40
|
+
children: heading
|
|
41
|
+
}) : null, children] })
|
|
42
|
+
}, props)
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/** Stacking boundary for a caller-owned form and its docked utility tray. */
|
|
46
|
+
function AgentChatStartScreenComposer({ render, ref, ...props }) {
|
|
47
|
+
return useRender({
|
|
48
|
+
defaultTagName: "div",
|
|
49
|
+
render,
|
|
50
|
+
ref,
|
|
51
|
+
props: mergeProps({ className: "agent-chat-start-screen__composer" }, props)
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/** Utility actions share PromptInputTray's native props and ref. */
|
|
55
|
+
function AgentChatStartScreenTray({ className, ...props }) {
|
|
56
|
+
return /* @__PURE__ */ jsx(PromptInputTray, {
|
|
23
57
|
...props,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
side: "bottom",
|
|
36
|
-
className: "agent-chat-start-screen__composer-tray",
|
|
37
|
-
children: composerTray
|
|
38
|
-
}) : null]
|
|
39
|
-
})]
|
|
40
|
-
}), lead ? /* @__PURE__ */ jsx("div", {
|
|
41
|
-
className: "agent-chat-start-screen__lead",
|
|
42
|
-
children: lead
|
|
43
|
-
}) : starters?.items.length ? /* @__PURE__ */ jsx("div", {
|
|
44
|
-
className: "agent-chat-start-screen__starters",
|
|
45
|
-
children: /* @__PURE__ */ jsx(AgentChatStarterList, { ...starters })
|
|
46
|
-
}) : null]
|
|
47
|
-
})
|
|
58
|
+
side: "bottom",
|
|
59
|
+
className: cx("agent-chat-start-screen__composer-tray", className)
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/** Starter prompts or an app-authored guide; remains in layout while the draft is active. */
|
|
63
|
+
function AgentChatStartScreenSuggestions({ render, ref, ...props }) {
|
|
64
|
+
return useRender({
|
|
65
|
+
defaultTagName: "div",
|
|
66
|
+
render,
|
|
67
|
+
ref,
|
|
68
|
+
props: mergeProps({ className: "agent-chat-start-screen__suggestions" }, props)
|
|
48
69
|
});
|
|
49
70
|
}
|
|
50
71
|
/** Semantic list for first-turn prompts below an `AgentChatStartScreen`. */
|
|
@@ -99,4 +120,4 @@ function AgentChatStarter({ icon, muted = false, onDismiss, dismissLabel, childr
|
|
|
99
120
|
});
|
|
100
121
|
}
|
|
101
122
|
//#endregion
|
|
102
|
-
export { AgentChatStartScreen, AgentChatStarter, AgentChatStarterList };
|
|
123
|
+
export { AgentChatStartScreen, AgentChatStartScreenComposer, AgentChatStartScreenPrimary, AgentChatStartScreenSuggestions, AgentChatStartScreenTray, AgentChatStarter, AgentChatStarterList };
|
|
@@ -1,2 +1,46 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ChatStatus, UIMessage } from "ai";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ai-sdk/AgentMessageParts.d.ts
|
|
5
|
+
type AgentMessagePart<MessageT extends UIMessage = UIMessage> = MessageT["parts"][number];
|
|
6
|
+
interface AgentMessageRenderPartContext<MessageT extends UIMessage = UIMessage> {
|
|
7
|
+
message: MessageT;
|
|
8
|
+
part: AgentMessagePart<MessageT>;
|
|
9
|
+
partIndex: number;
|
|
10
|
+
defaultRender: () => React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
interface AgentMessagePartsProps<MessageT extends UIMessage = UIMessage> {
|
|
13
|
+
/** The whole upstream AI SDK message whose parts should render in order. */
|
|
14
|
+
message: MessageT;
|
|
15
|
+
/** Drives native reasoning streaming UI. Settled messages default to `ready`. */
|
|
16
|
+
status?: ChatStatus;
|
|
17
|
+
/**
|
|
18
|
+
* Override rendering per part. Return `undefined` to use the default renderer,
|
|
19
|
+
* `null` to suppress the part, or call `defaultRender()` to compose the
|
|
20
|
+
* built-in result into custom UI.
|
|
21
|
+
*
|
|
22
|
+
* The default renderer uses upstream helpers where available:
|
|
23
|
+
* `isTextUIPart`, `isReasoningUIPart`, `isFileUIPart`, `isToolUIPart`,
|
|
24
|
+
* `getToolName`, and the native AI SDK tool-part state fields. It
|
|
25
|
+
* also renders native AI SDK `source-url`/`source-document` parts as a single
|
|
26
|
+
* grouped `Sources` block when they appear consecutively, consolidates native
|
|
27
|
+
* reasoning parts into one disclosure, and treats `step-start` as a silent
|
|
28
|
+
* structural boundary. App-defined `data-*` parts stay whole and should be
|
|
29
|
+
* narrowed with AI SDK's `isDataUIPart` inside this callback. If you override
|
|
30
|
+
* source rendering, return a React node for every source part you want to
|
|
31
|
+
* show; returning `undefined` keeps the upstream-shaped source-run grouping.
|
|
32
|
+
*/
|
|
33
|
+
renderPart?: (context: AgentMessageRenderPartContext<MessageT>) => React.ReactNode | undefined;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Renders the ordered parts of one whole AI SDK `UIMessage` without adding a
|
|
37
|
+
* transcript, message wrapper, composer, or transport. Compose it inside
|
|
38
|
+
* `Message` for read-only run previews and child-agent transcript rows.
|
|
39
|
+
*/
|
|
40
|
+
declare function AgentMessageParts<MessageT extends UIMessage = UIMessage>({
|
|
41
|
+
message,
|
|
42
|
+
status,
|
|
43
|
+
renderPart
|
|
44
|
+
}: AgentMessagePartsProps<MessageT>): (React.JSX.Element | null)[];
|
|
45
|
+
//#endregion
|
|
2
46
|
export { AgentMessagePart, AgentMessageParts, AgentMessagePartsProps, AgentMessageRenderPartContext };
|
|
@@ -11,7 +11,7 @@ declare function Approval({
|
|
|
11
11
|
ref,
|
|
12
12
|
...props
|
|
13
13
|
}: ApprovalProps & {
|
|
14
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
14
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
15
15
|
}): React.JSX.Element;
|
|
16
16
|
interface ApprovalHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
17
17
|
/** Question and optional queue position for an approval request. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as IconButtonProps } from "../../IconButton-
|
|
1
|
+
import { n as IconButtonProps } from "../../IconButton-ByiyjkYE.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ai-sdk/Artifact.d.ts
|
|
@@ -45,7 +45,7 @@ declare function Artifact({
|
|
|
45
45
|
ref,
|
|
46
46
|
...props
|
|
47
47
|
}: ArtifactProps & {
|
|
48
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
48
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
49
49
|
}): React.JSX.Element;
|
|
50
50
|
interface ArtifactHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
51
51
|
declare function ArtifactHeader({
|
|
@@ -3,7 +3,7 @@ import { K as SpinnerIcon, et as WarningIcon, nt as XIcon } from "../../icons-cu
|
|
|
3
3
|
import { Button, buttonVariants } from "../foundations/Button.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
5
|
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
6
|
-
import "react";
|
|
6
|
+
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/ai-sdk/Artifact.tsx
|
|
9
9
|
/**
|
|
@@ -136,7 +136,7 @@ function ArtifactPreview({ className, label, sourceLink, state, ref, ...props })
|
|
|
136
136
|
/* @__PURE__ */ jsx(ArtifactHeader, {
|
|
137
137
|
className: "artifact-preview__header",
|
|
138
138
|
children: /* @__PURE__ */ jsx(NavigationLink, {
|
|
139
|
-
render: sourceLink,
|
|
139
|
+
render: React.cloneElement(sourceLink, {}, "View source"),
|
|
140
140
|
className: buttonVariants({
|
|
141
141
|
variant: "ghost",
|
|
142
142
|
color: "neutral",
|
|
@@ -34,7 +34,7 @@ declare function ChainOfThought({
|
|
|
34
34
|
ref,
|
|
35
35
|
...props
|
|
36
36
|
}: ChainOfThoughtProps & {
|
|
37
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
37
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
38
38
|
}): React.JSX.Element;
|
|
39
39
|
interface ChainOfThoughtHeaderProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "unstyled"> {}
|
|
40
40
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as CodeBlockLanguageSelectorValueProps, D as CODE_BLOCK_LANGUAGES, E as CodeBlockTitleProps, O as CodeBlockLanguage, S as CodeBlockLanguageSelectorValue, T as CodeBlockTitle, _ as CodeBlockLanguageSelectorItem, a as CodeBlockContainerProps, b as CodeBlockLanguageSelectorTrigger, c as CodeBlockCopyButton, d as CodeBlockFilenameProps, f as CodeBlockHeader, g as CodeBlockLanguageSelectorContentProps, h as CodeBlockLanguageSelectorContent, i as CodeBlockContainer, l as CodeBlockCopyButtonProps, m as CodeBlockLanguageSelector, n as CodeBlockActions, o as CodeBlockContent, p as CodeBlockHeaderProps, r as CodeBlockActionsProps, s as CodeBlockContentProps, t as CodeBlock, u as CodeBlockFilename, v as CodeBlockLanguageSelectorItemProps, w as CodeBlockProps, x as CodeBlockLanguageSelectorTriggerProps, y as CodeBlockLanguageSelectorProps } from "../../CodeBlock
|
|
1
|
+
import { C as CodeBlockLanguageSelectorValueProps, D as CODE_BLOCK_LANGUAGES, E as CodeBlockTitleProps, O as CodeBlockLanguage, S as CodeBlockLanguageSelectorValue, T as CodeBlockTitle, _ as CodeBlockLanguageSelectorItem, a as CodeBlockContainerProps, b as CodeBlockLanguageSelectorTrigger, c as CodeBlockCopyButton, d as CodeBlockFilenameProps, f as CodeBlockHeader, g as CodeBlockLanguageSelectorContentProps, h as CodeBlockLanguageSelectorContent, i as CodeBlockContainer, l as CodeBlockCopyButtonProps, m as CodeBlockLanguageSelector, n as CodeBlockActions, o as CodeBlockContent, p as CodeBlockHeaderProps, r as CodeBlockActionsProps, s as CodeBlockContentProps, t as CodeBlock, u as CodeBlockFilename, v as CodeBlockLanguageSelectorItemProps, w as CodeBlockProps, x as CodeBlockLanguageSelectorTriggerProps, y as CodeBlockLanguageSelectorProps } from "../../CodeBlock--r6GS8YV.js";
|
|
2
2
|
export { CODE_BLOCK_LANGUAGES, CodeBlock, CodeBlockActions, CodeBlockActionsProps, CodeBlockContainer, CodeBlockContainerProps, CodeBlockContent, CodeBlockContentProps, CodeBlockCopyButton, CodeBlockCopyButtonProps, CodeBlockFilename, CodeBlockFilenameProps, CodeBlockHeader, CodeBlockHeaderProps, type CodeBlockLanguage, CodeBlockLanguageSelector, CodeBlockLanguageSelectorContent, CodeBlockLanguageSelectorContentProps, CodeBlockLanguageSelectorItem, CodeBlockLanguageSelectorItemProps, CodeBlockLanguageSelectorProps, CodeBlockLanguageSelectorTrigger, CodeBlockLanguageSelectorTriggerProps, CodeBlockLanguageSelectorValue, CodeBlockLanguageSelectorValueProps, CodeBlockProps, CodeBlockTitle, CodeBlockTitleProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CodeBlockCopyButton, c as CodeBlockLanguageSelector, d as CodeBlockLanguageSelectorTrigger, f as CodeBlockLanguageSelectorValue, i as CodeBlockContent, l as CodeBlockLanguageSelectorContent, m as CODE_BLOCK_LANGUAGES, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock, u as CodeBlockLanguageSelectorItem } from "../../CodeBlock-
|
|
1
|
+
import { a as CodeBlockCopyButton, c as CodeBlockLanguageSelector, d as CodeBlockLanguageSelectorTrigger, f as CodeBlockLanguageSelectorValue, i as CodeBlockContent, l as CodeBlockLanguageSelectorContent, m as CODE_BLOCK_LANGUAGES, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock, u as CodeBlockLanguageSelectorItem } from "../../CodeBlock-g8sADidM.js";
|
|
2
2
|
export { CODE_BLOCK_LANGUAGES, CodeBlock, CodeBlockActions, CodeBlockContainer, CodeBlockContent, CodeBlockCopyButton, CodeBlockFilename, CodeBlockHeader, CodeBlockLanguageSelector, CodeBlockLanguageSelectorContent, CodeBlockLanguageSelectorItem, CodeBlockLanguageSelectorTrigger, CodeBlockLanguageSelectorValue, CodeBlockTitle };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { brandHexFromIconSrc, parseComposerHref, sampleImageAccent } from "../../utils/composer-link.js";
|
|
2
|
-
import { getMcpServerIconSrc } from "../../utils/mcp-server-catalog.js";
|
|
2
|
+
import { findCatalogMcpServerCard, getMcpServerIconSrc } from "../../utils/mcp-server-catalog.js";
|
|
3
3
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
4
4
|
import { c as BoxIcon } from "../../icons-cuEtsgj9.js";
|
|
5
5
|
import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
6
|
-
import { n as findCatalogMcpServerCard } from "../../mcp-server-7NR24ASj.js";
|
|
7
6
|
import * as React from "react";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
8
|
//#region src/components/ai-sdk/ComposerLink.tsx
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as Correspondent } from "../../Correspondent-7K6uNLUm.js";
|
|
1
2
|
import { CardProps } from "../foundations/Card.js";
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
|
|
@@ -28,15 +29,25 @@ type ConnectedAppCardProps = Omit<CardProps, "children" | "hover" | "size" | "ti
|
|
|
28
29
|
headerActions?: React.ReactNode;
|
|
29
30
|
};
|
|
30
31
|
interface EmailMessageDraft {
|
|
32
|
+
/** Sender label or address shown in the draft header. */
|
|
31
33
|
from?: string;
|
|
34
|
+
/** Recipient label or address shown in the draft header. */
|
|
32
35
|
to?: string;
|
|
36
|
+
/** Visible message subject, required even while the draft body is empty. */
|
|
33
37
|
subject: string;
|
|
38
|
+
/** Editable plain-text message body. */
|
|
34
39
|
body?: string;
|
|
35
40
|
}
|
|
36
41
|
interface EmailMessageCardProps extends ConnectedAppCardProps, EmailMessageDraft {
|
|
42
|
+
/** Person-shaped To. The address string remains the route. */
|
|
43
|
+
correspondent?: Correspondent;
|
|
44
|
+
/** Receives the complete draft after an editable field changes. */
|
|
37
45
|
onChange?: (next: EmailMessageDraft) => void;
|
|
46
|
+
/** Discards the pending draft. */
|
|
38
47
|
onDiscard?: () => void | Promise<void>;
|
|
48
|
+
/** Rejects the draft with human-authored feedback. */
|
|
39
49
|
onReject?: (reason: string) => void | Promise<void>;
|
|
50
|
+
/** Releases the pending draft for delivery. */
|
|
40
51
|
onSend?: () => void | Promise<void>;
|
|
41
52
|
}
|
|
42
53
|
/**
|
|
@@ -45,6 +56,7 @@ interface EmailMessageCardProps extends ConnectedAppCardProps, EmailMessageDraft
|
|
|
45
56
|
*/
|
|
46
57
|
declare function EmailMessageCard({
|
|
47
58
|
body,
|
|
59
|
+
correspondent,
|
|
48
60
|
from,
|
|
49
61
|
icon,
|
|
50
62
|
onChange,
|
|
@@ -57,7 +69,7 @@ declare function EmailMessageCard({
|
|
|
57
69
|
ref,
|
|
58
70
|
...props
|
|
59
71
|
}: EmailMessageCardProps & {
|
|
60
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
72
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
61
73
|
}): React.JSX.Element;
|
|
62
74
|
interface SlackMessageDraft {
|
|
63
75
|
workspace?: string;
|
|
@@ -66,6 +78,8 @@ interface SlackMessageDraft {
|
|
|
66
78
|
message: string;
|
|
67
79
|
}
|
|
68
80
|
interface SlackMessageCardProps extends ConnectedAppCardProps, SlackMessageDraft {
|
|
81
|
+
/** Person-shaped To. Rooms stay the destination string. */
|
|
82
|
+
correspondent?: Correspondent;
|
|
69
83
|
onChange?: (next: SlackMessageDraft) => void;
|
|
70
84
|
onDiscard?: () => void | Promise<void>;
|
|
71
85
|
onReject?: (reason: string) => void | Promise<void>;
|
|
@@ -73,6 +87,7 @@ interface SlackMessageCardProps extends ConnectedAppCardProps, SlackMessageDraft
|
|
|
73
87
|
}
|
|
74
88
|
/** Slack draft or posted message with workspace, destination, and thread fields. */
|
|
75
89
|
declare function SlackMessageCard({
|
|
90
|
+
correspondent,
|
|
76
91
|
icon,
|
|
77
92
|
message,
|
|
78
93
|
onChange,
|