@frontera-sdk/chat-ui 1.50.47 → 1.50.49
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/chat.js +20 -15
- package/dist/{chunk-RB2Y4NYC.js → chunk-466MYFJD.js} +1 -1
- package/dist/{chunk-OP4MLJDA.js → chunk-76WUIIOX.js} +1 -1
- package/dist/{chunk-PUIVKDV5.js → chunk-AQGBRSIP.js} +1 -1
- package/dist/{chunk-X5E2DJVO.js → chunk-CWC2IOX7.js} +825 -1043
- package/dist/{chunk-QSSFBZAS.js → chunk-FTLVGUG5.js} +0 -8
- package/dist/{chunk-JD6ETTXC.js → chunk-IHBTHNXV.js} +1 -1
- package/dist/{chunk-WO6DJLFE.js → chunk-SZTQOXLD.js} +3 -3
- package/dist/{chunk-RAKKA3WU.js → chunk-XSEN6ISU.js} +4 -8
- package/dist/header.js +5 -5
- package/dist/message.js +5 -5
- package/dist/new-session.js +2 -2
- package/dist/parts.js +2 -2
- package/dist/{pdf-deck-view-inner-FZVLAEQR.js → pdf-deck-view-inner-3PVGFH26.js} +2 -2
- package/dist/{pdf-document-view-inner-6DF54JWK.js → pdf-document-view-inner-CP6VFHG4.js} +2 -2
- package/dist/pending-cards.js +2 -2
- package/package.json +3 -3
- /package/dist/{chunk-XJFTVKLW.js → chunk-IBCOQG5T.js} +0 -0
package/dist/chat.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { isFullscreenHotkey, DeckNotesCard, deckOwnsArrowKeys } from './chunk-WMN6BPPS.js';
|
|
3
3
|
import { offset, flip, autoUpdate, computePosition } from './chunk-I7SXWUAN.js';
|
|
4
|
-
import { ArtifactSkeleton, resolveStageWidth, zoomPercent, DECK_ZOOM_LEVELS, LazyThumb } from './chunk-
|
|
5
|
-
import { NewSessionPrompt, keepCaretOnTap } from './chunk-
|
|
6
|
-
import { PendingCards } from './chunk-
|
|
4
|
+
import { ArtifactSkeleton, resolveStageWidth, zoomPercent, DECK_ZOOM_LEVELS, LazyThumb } from './chunk-AQGBRSIP.js';
|
|
5
|
+
import { NewSessionPrompt, keepCaretOnTap } from './chunk-466MYFJD.js';
|
|
6
|
+
import { PendingCards } from './chunk-IHBTHNXV.js';
|
|
7
7
|
import { themeToStyle } from './chunk-6HYPVNVA.js';
|
|
8
8
|
import { useChatAgents } from './chunk-VDZH5Z3K.js';
|
|
9
9
|
import { subjectOfChatToken, capabilitiesOfChatToken } from './chunk-CCVPZVFK.js';
|
|
10
10
|
import { useChatCredential } from './chunk-BEJ3HQG4.js';
|
|
11
|
-
import { chatSidePanelSessionKey, useTemplatePreviewStore, useHasTemplatePreviewHost, useChatSidePanelStore, ChatHeader, ChatHeaderActions, useRightPane, getChatOverviewAgentStatus, useChatOverviewVisible, useConversationArtifacts, PENDING_CHART_TAB_PREFIX, CHART_TAB_PREFIX, AGENT_WORK_TAB_ID, AGENT_ROUTINES_TAB_ID, SOURCES_TAB_ID, TEMPLATE_TAB_ID, OutputsSection, ChatOverviewContent, COMPUTER_TAB_PREFIX, SourceRow, motion, MAX_CHAT_SIDE_PANEL_SESSIONS, DEFAULT_CHAT_SIDE_PANEL_SIZE } from './chunk-
|
|
12
|
-
import { useComposerStore, Message, Thinking, setPendingFiles, useLivePreviewUrl, useComputerFiles, useUploadComputerFile, CanvasWidget, isPlainTextLanguage, useUploadFile, COMPOSER_ID_MAIN, useContextWindowInfo, useIsCompacting, useQueuedMessages, useChatStreamStore, useComputer, csvTextToWorkbookJson, CSV_PREVIEW_MAX_ROWS, CopyButton, useBackDismiss, PdfViewer, ModelIcon, modeToBrandRow, brandLabel, Spinner } from './chunk-
|
|
13
|
-
import { env, require_shim, require_with_selector, dynamic, Textarea, artifactFormatIcon, useAgentRoster, useArtifactStore, useCanvasStore, useChatOverviewStore, setSdkConversationPath, setSdkDarkMode, AgentsProvider, PluginProvider, WorkspaceProvider, TooltipProvider, CitationViewerProvider, ConnectRunnerProvider, isToolPart, getToolState, getToolName, getToolInput, usePaneFocusStore, useAgentPanelStore, Tooltip, TooltipTrigger, TooltipContent, ArtifactActionsMenu, useKeyboardInset, getToolOutput, useArtifact, useUpdateArtifact, useArtifactFileObjectUrl, resolveArtifactIconFormat, useSourcesEnrichment, Label, Input, renderPluginBlock, useArtifactVersion, useChatCapabilities, useChatOptInEnabled, useSessionPendingApprovals, tableToCsv, tableToXlsx, tableToMarkdown, DropdownMenu, DropdownMenuTrigger, StyledDropdownMenuContent, StyledDropdownMenuItem, useArtifactVersions, useClient, unwrapData, authFetch, getBearerHeadersForApi, useRestoreArtifactVersion, ZoomableImage, ChatImageLightbox, useDownloadArtifact, useArtifactFileBytes, useArtifactPreviewFileObjectUrl, useArtifactVersionPreviewFileObjectUrl, SpreadsheetIcon, useOptionalWorkspaceContext, useAgentConnectionStatus, useArtifacts, useRouter, useBrand, resolveBearerHeaders, subscribeSdkDarkMode, getSdkDarkMode, unwrap, useSession, useConnectRunner, useStartUserConnect, useUpsertGrant, useRevokeGrant, AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, useConversationDesktopStatus, isRequestHumanTool, useWorkspaceContext, useCatalog, useInstalls, appsKeys, buildTenantUrlAbsolute } from './chunk-
|
|
11
|
+
import { chatSidePanelSessionKey, useTemplatePreviewStore, useHasTemplatePreviewHost, useChatSidePanelStore, ChatHeader, ChatHeaderActions, useRightPane, getChatOverviewAgentStatus, useChatOverviewVisible, useConversationArtifacts, PENDING_CHART_TAB_PREFIX, CHART_TAB_PREFIX, AGENT_WORK_TAB_ID, AGENT_ROUTINES_TAB_ID, SOURCES_TAB_ID, TEMPLATE_TAB_ID, OutputsSection, ChatOverviewContent, COMPUTER_TAB_PREFIX, SourceRow, motion, MAX_CHAT_SIDE_PANEL_SESSIONS, DEFAULT_CHAT_SIDE_PANEL_SIZE } from './chunk-SZTQOXLD.js';
|
|
12
|
+
import { useComposerStore, Message, Thinking, setPendingFiles, useLivePreviewUrl, useComputerFiles, useUploadComputerFile, CanvasWidget, isPlainTextLanguage, useUploadFile, COMPOSER_ID_MAIN, useContextWindowInfo, useIsCompacting, useQueuedMessages, useChatStreamStore, useComputer, csvTextToWorkbookJson, CSV_PREVIEW_MAX_ROWS, CopyButton, useBackDismiss, PdfViewer, ModelIcon, modeToBrandRow, brandLabel, Spinner } from './chunk-XSEN6ISU.js';
|
|
13
|
+
import { env, require_shim, require_with_selector, dynamic, Textarea, artifactFormatIcon, useAgentRoster, useArtifactStore, useCanvasStore, useChatOverviewStore, setSdkConversationPath, setSdkDarkMode, AgentsProvider, PluginProvider, WorkspaceProvider, TooltipProvider, CitationViewerProvider, ConnectRunnerProvider, isToolPart, getToolState, getToolName, getToolInput, usePaneFocusStore, useAgentPanelStore, Tooltip, TooltipTrigger, TooltipContent, ArtifactActionsMenu, useKeyboardInset, getToolOutput, useArtifact, useUpdateArtifact, useArtifactFileObjectUrl, resolveArtifactIconFormat, useSourcesEnrichment, Label, Input, renderPluginBlock, useArtifactVersion, useChatCapabilities, useChatOptInEnabled, useSessionPendingApprovals, tableToCsv, tableToXlsx, tableToMarkdown, DropdownMenu, DropdownMenuTrigger, StyledDropdownMenuContent, StyledDropdownMenuItem, useArtifactVersions, useClient, unwrapData, authFetch, getBearerHeadersForApi, useRestoreArtifactVersion, ZoomableImage, ChatImageLightbox, useDownloadArtifact, useArtifactFileBytes, useArtifactPreviewFileObjectUrl, useArtifactVersionPreviewFileObjectUrl, SpreadsheetIcon, useOptionalWorkspaceContext, useAgentConnectionStatus, useArtifacts, useRouter, useBrand, resolveBearerHeaders, subscribeSdkDarkMode, getSdkDarkMode, unwrap, useSession, useConnectRunner, useStartUserConnect, useUpsertGrant, useRevokeGrant, AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, useConversationDesktopStatus, isRequestHumanTool, useWorkspaceContext, useCatalog, useInstalls, appsKeys, buildTenantUrlAbsolute } from './chunk-CWC2IOX7.js';
|
|
14
14
|
import { Popover, PopoverTrigger, PopoverContent, Sheet, SheetContent, SheetHeader, SheetTitle, SheetDescription } from './chunk-2KEBRV3W.js';
|
|
15
|
-
import { I18nProvider, useTranslation } from './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
import { AppIcon, frontera_icon_default, describeToolRow, useStreamdownPlugins, getToolMeta, MessageResponse, AppIconFrame } from './chunk-
|
|
15
|
+
import { I18nProvider, useTranslation } from './chunk-FTLVGUG5.js';
|
|
16
|
+
import './chunk-76WUIIOX.js';
|
|
17
|
+
import { AppIcon, frontera_icon_default, describeToolRow, useStreamdownPlugins, getToolMeta, MessageResponse, AppIconFrame } from './chunk-IBCOQG5T.js';
|
|
18
18
|
import { Skeleton, Button, ScrollArea } from './chunk-GTQH7MPF.js';
|
|
19
19
|
import { PortalRootProvider, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter } from './chunk-IQRPGFLI.js';
|
|
20
20
|
import './chunk-6BPHEBCF.js';
|
|
@@ -41879,7 +41879,7 @@ function SheetEditor({ content, onSave, readOnly = false }) {
|
|
|
41879
41879
|
);
|
|
41880
41880
|
}
|
|
41881
41881
|
var PdfDocumentViewInner = dynamic(
|
|
41882
|
-
() => import('./pdf-document-view-inner-
|
|
41882
|
+
() => import('./pdf-document-view-inner-CP6VFHG4.js'),
|
|
41883
41883
|
{
|
|
41884
41884
|
ssr: false,
|
|
41885
41885
|
loading: () => /* @__PURE__ */ jsx(ArtifactSkeleton, { format: "pdf" })
|
|
@@ -42492,7 +42492,7 @@ function HtmlDeckView({ content, inChat = false, versionSlot }) {
|
|
|
42492
42492
|
!present && inChat && /* @__PURE__ */ jsx(DeckEditPanel, { currentIndex: sel, currentHtml: slides[sel]?.html ?? "" })
|
|
42493
42493
|
] });
|
|
42494
42494
|
}
|
|
42495
|
-
var Inner = dynamic(() => import('./pdf-deck-view-inner-
|
|
42495
|
+
var Inner = dynamic(() => import('./pdf-deck-view-inner-3PVGFH26.js'), {
|
|
42496
42496
|
ssr: false,
|
|
42497
42497
|
loading: () => /* @__PURE__ */ jsx(ArtifactSkeleton, { format: "htmldeck" })
|
|
42498
42498
|
});
|
|
@@ -58092,10 +58092,14 @@ function directedConsultationErrorMessage(error2) {
|
|
|
58092
58092
|
if (code2 !== "BAD_REQUEST" || typeof message !== "string" || !message) return null;
|
|
58093
58093
|
return message;
|
|
58094
58094
|
}
|
|
58095
|
-
function
|
|
58096
|
-
if (approval.toolSource !== "app"
|
|
58095
|
+
function integrationFor(approval) {
|
|
58096
|
+
if (approval.toolSource !== "app" && approval.toolSource !== "mcp") return null;
|
|
58097
|
+
if (!approval.toolName?.includes("__")) return null;
|
|
58097
58098
|
return approval.toolName.split("__")[0] || null;
|
|
58098
58099
|
}
|
|
58100
|
+
function appKindFor(approval) {
|
|
58101
|
+
return approval.toolSource === "app" ? integrationFor(approval) : null;
|
|
58102
|
+
}
|
|
58099
58103
|
function environmentFor(approval) {
|
|
58100
58104
|
const label = approval.actionSummary?.resource?.label;
|
|
58101
58105
|
if (label) {
|
|
@@ -58161,6 +58165,7 @@ function ComposerApprovalRailView({
|
|
|
58161
58165
|
const detailsOpen = detailsId === approval.id;
|
|
58162
58166
|
const environment = environmentFor(approval);
|
|
58163
58167
|
const resource = approval.actionSummary?.resource;
|
|
58168
|
+
const integration = integrationFor(approval);
|
|
58164
58169
|
return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-surface-raised px-3 py-2.5", children: [
|
|
58165
58170
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5", children: [
|
|
58166
58171
|
approvalToolIcon(approval),
|
|
@@ -58223,9 +58228,9 @@ function ComposerApprovalRailView({
|
|
|
58223
58228
|
detailsOpen && /* @__PURE__ */ jsxs("div", { className: "mt-2 space-y-1 border-t border-border pt-2 pl-[2.875rem] text-xs", children: [
|
|
58224
58229
|
/* @__PURE__ */ jsx("p", { className: "leading-5 text-foreground", children: title }),
|
|
58225
58230
|
description && /* @__PURE__ */ jsx("p", { className: "leading-5 text-muted-foreground", children: description }),
|
|
58226
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[minmax(5.5rem,8.5rem)_1fr] gap-2", children: [
|
|
58231
|
+
integration && /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[minmax(5.5rem,8.5rem)_1fr] gap-2", children: [
|
|
58227
58232
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Integration" }),
|
|
58228
|
-
/* @__PURE__ */ jsx("span", { className: "break-words text-foreground", children:
|
|
58233
|
+
/* @__PURE__ */ jsx("span", { className: "break-words text-foreground", children: integration })
|
|
58229
58234
|
] }),
|
|
58230
58235
|
approval.toolName && /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[minmax(5.5rem,8.5rem)_1fr] gap-2", children: [
|
|
58231
58236
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Tool" }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Sheet, SheetContent, SheetHeader, SheetTitle, Popover, PopoverTrigger, PopoverContent } from './chunk-2KEBRV3W.js';
|
|
3
|
-
import { useTranslation } from './chunk-
|
|
3
|
+
import { useTranslation } from './chunk-FTLVGUG5.js';
|
|
4
4
|
import { useIsMobile } from './chunk-IXDM5R55.js';
|
|
5
5
|
import { AgentAvatar } from './chunk-FXKXDR5K.js';
|
|
6
6
|
import { cn } from './chunk-DGDHKMDB.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { describeToolRow, getToolMeta, Shimmer, Collapse } from './chunk-
|
|
2
|
+
import { describeToolRow, getToolMeta, Shimmer, Collapse } from './chunk-IBCOQG5T.js';
|
|
3
3
|
import { cn } from './chunk-DGDHKMDB.js';
|
|
4
4
|
import { Code2Icon, ChevronDownMediumIcon, ProcessorIcon } from './chunk-AFVU5VT6.js';
|
|
5
5
|
import { memo, useState, useMemo } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useTranslation } from './chunk-
|
|
2
|
+
import { useTranslation } from './chunk-FTLVGUG5.js';
|
|
3
3
|
import { Skeleton } from './chunk-GTQH7MPF.js';
|
|
4
4
|
import { useRef, useState, useEffect } from 'react';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|