@frontera-sdk/chat-ui 1.53.14 → 1.53.16
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 +132 -132
- package/dist/{chunk-2SX4XLQI.js → chunk-47UUMIS3.js} +1 -1
- package/dist/{chunk-67IW6PE4.js → chunk-D6YKQJ5V.js} +2 -2
- package/dist/{chunk-ZNCZ7QWY.js → chunk-FVSSLEFN.js} +806 -12
- package/dist/{chunk-F66BHU7S.js → chunk-N2PBTMEA.js} +1 -1
- package/dist/{chunk-OYDGSDQX.js → chunk-PNU2CDXK.js} +1 -1
- package/dist/{chunk-GCPPMKGT.js → chunk-UUZ3ANIK.js} +9 -2
- package/dist/header.js +3 -3
- package/dist/message.js +3 -3
- package/dist/new-session.js +2 -2
- package/dist/{pdf-deck-view-inner-B3GZ4OW5.js → pdf-deck-view-inner-3TG3EQ3B.js} +2 -2
- package/dist/{pdf-document-view-inner-WM23E6IG.js → pdf-document-view-inner-3EGB6RKB.js} +2 -2
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useTranslation } from './chunk-
|
|
2
|
+
import { useTranslation } from './chunk-FVSSLEFN.js';
|
|
3
3
|
import { Skeleton } from './chunk-UWKO24VT.js';
|
|
4
4
|
import { useRef, useState, useEffect } from 'react';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { ChevronLeftIcon } from './chunk-CWAOLMFS.js';
|
|
3
3
|
import { MagnifyingGlassIcon, Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from './chunk-RQSMCGBR.js';
|
|
4
|
-
import { useIsMobile, useTranslation } from './chunk-
|
|
4
|
+
import { useIsMobile, useTranslation } from './chunk-FVSSLEFN.js';
|
|
5
5
|
import { ToolCallItem, ProcessorIcon } from './chunk-G4EXD5F3.js';
|
|
6
6
|
import { describeToolRow, toolKindLabel, getToolMeta, Shimmer, Collapse, ToolGroupReasoningItem, SkillToolItem, DeviceDesktopIcon, WorldSearchIcon, FileTextIcon, useStreamdownPlugins, CircleXIcon, STREAMDOWN_LINK_SAFETY, Folder1Icon, AppIconFrame, AppIcon, Collapsible, CollapsibleTrigger, CollapsibleContent, SquareArrowTopRightIcon, Icon } from './chunk-OBAC3B64.js';
|
|
7
7
|
import { ChevronDownMediumIcon, Button, Skeleton, buttonVariants } from './chunk-UWKO24VT.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { usePlugins, useChatCapabilityEnabled, resolvePluginLanguage, renderPluginBlock, AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, ActionMenu, useArtifactStore, ArtifactActionsMenu, DotGrid1x3HorizontalTightIcon, useArtifact, resolveArtifactIconFormat, artifactFormatIcon, useArtifactFileObjectUrl, artifactFormatSubtitle, ChatImageLightbox, ArrowsShowIcon, FileDownloadIcon, useClient, processMessageParts, getMessageDisplayTimestampValue, getMessageCreatedAtMs, isApprovalRequested, extractCitationsFromSteps, useSourcesEnrichment, extractImagesFromSteps, dedupeImageResults, getDocumentStreamArtifacts, getToolOutput, useCanvasStore, ImageResultsGallery, MessageDecisionCards, useChatCapabilities, useOptionalWorkspaceContext, useCitationViewer, useCitedDocument, useChatOverviewStore, dedup, extractDomain, sourceKind, SourceFavicon, Input, exportDocumentPdf, FilePdfIcon, StudioDisplayIcon, WorldIcon, MessageStepsGroup, getToolState, getToolInput, getToolErrorText, useChatOptInEnabled, ArrowRightIcon, formatFileSize, FileThumbnail, attachmentFileOf, MobileScreenSheet, useAgentHistorySource, treatyErrorMessage, useRouter, useBasePath, useAgentPanelStore, AgentRoutineForm, getFileCategory, unwrap, unwrapData, unwrapDataDeep, formatDecisionTime, DecisionCard, LoaderIcon, formatRelativeTime, CircleCheckIcon, agentRoutineKeys, useOptionalAgentsContext, avatarMotionForStream, AGENT_AVATAR_SIZE } from './chunk-
|
|
2
|
+
import { usePlugins, useChatCapabilityEnabled, resolvePluginLanguage, renderPluginBlock, AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, ActionMenu, useArtifactStore, ArtifactActionsMenu, DotGrid1x3HorizontalTightIcon, useArtifact, resolveArtifactIconFormat, artifactFormatIcon, useArtifactFileObjectUrl, artifactFormatSubtitle, ChatImageLightbox, ArrowsShowIcon, FileDownloadIcon, useClient, processMessageParts, getMessageDisplayTimestampValue, getMessageCreatedAtMs, isApprovalRequested, extractCitationsFromSteps, useSourcesEnrichment, extractImagesFromSteps, dedupeImageResults, getDocumentStreamArtifacts, getToolOutput, useCanvasStore, ImageResultsGallery, MessageDecisionCards, useChatCapabilities, useOptionalWorkspaceContext, useCitationViewer, useCitedDocument, useChatOverviewStore, dedup, extractDomain, sourceKind, SourceFavicon, Input, exportDocumentPdf, FilePdfIcon, StudioDisplayIcon, WorldIcon, MessageStepsGroup, getToolState, getToolInput, getToolErrorText, useChatOptInEnabled, ArrowRightIcon, formatFileSize, FileThumbnail, attachmentFileOf, MobileScreenSheet, useAgentHistorySource, treatyErrorMessage, useRouter, useBasePath, useAgentPanelStore, AgentRoutineForm, getFileCategory, unwrap, unwrapData, unwrapDataDeep, formatDecisionTime, DecisionCard, LoaderIcon, formatRelativeTime, CircleCheckIcon, agentRoutineKeys, useOptionalAgentsContext, avatarMotionForStream, AGENT_AVATAR_SIZE } from './chunk-PNU2CDXK.js';
|
|
3
3
|
import { Sheet, SheetTrigger, SheetContent, SheetHeader, SheetTitle, SheetDescription, Popover, PopoverTrigger, PopoverContent } from './chunk-RQSMCGBR.js';
|
|
4
|
-
import { useIsMobile, useTranslation } from './chunk-
|
|
4
|
+
import { useIsMobile, useTranslation } from './chunk-FVSSLEFN.js';
|
|
5
5
|
import { MessageToolbar, MessageResponse, SquareArrowTopRightIcon, FileTextIcon, Shimmer, ClipboardIcon, Message, MessageContent, PencilIcon, deferDuringLayoutMotion, HoverCard, HoverCardTrigger, HoverCardContent, Collapse, Icon, CircleXIcon, ClockIcon } from './chunk-OBAC3B64.js';
|
|
6
6
|
import { ChevronDownMediumIcon, Button, ScrollArea, Skeleton } from './chunk-UWKO24VT.js';
|
|
7
7
|
import { CrossMediumIcon } from './chunk-37WYG6VG.js';
|
|
@@ -3155,6 +3155,11 @@ function useComputer(computerId, conversationId) {
|
|
|
3155
3155
|
}
|
|
3156
3156
|
});
|
|
3157
3157
|
}
|
|
3158
|
+
function refetchKeepsOpenPreview(query) {
|
|
3159
|
+
const answer = query.state.data;
|
|
3160
|
+
const previewOpen = answer?.url != null && answer.alive && !answer.building;
|
|
3161
|
+
return answer?.linkChangesEachFetch !== true || !previewOpen;
|
|
3162
|
+
}
|
|
3158
3163
|
function usePreviewUrl(computerId, appId, nonce) {
|
|
3159
3164
|
const client = useClient();
|
|
3160
3165
|
return useQuery({
|
|
@@ -3163,6 +3168,8 @@ function usePreviewUrl(computerId, appId, nonce) {
|
|
|
3163
3168
|
staleTime: 0,
|
|
3164
3169
|
gcTime: 0,
|
|
3165
3170
|
retry: 1,
|
|
3171
|
+
refetchOnWindowFocus: refetchKeepsOpenPreview,
|
|
3172
|
+
refetchOnReconnect: refetchKeepsOpenPreview,
|
|
3166
3173
|
queryFn: async () => {
|
|
3167
3174
|
const res = await client.v1.computers({ computerId }).apps({ appId })["preview-url"].get();
|
|
3168
3175
|
return unwrapData(res.data);
|
package/dist/header.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { ChatHeader, ChatHeaderActions } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
export { ChatHeader, ChatHeaderActions } from './chunk-D6YKQJ5V.js';
|
|
3
|
+
import './chunk-PNU2CDXK.js';
|
|
4
4
|
import './chunk-CWAOLMFS.js';
|
|
5
5
|
import './chunk-RQSMCGBR.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-FVSSLEFN.js';
|
|
7
7
|
import './chunk-G4EXD5F3.js';
|
|
8
8
|
import './chunk-OBAC3B64.js';
|
|
9
9
|
import './chunk-UWKO24VT.js';
|
package/dist/message.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { Message, Thinking } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
export { Message, Thinking } from './chunk-UUZ3ANIK.js';
|
|
3
|
+
import './chunk-PNU2CDXK.js';
|
|
4
4
|
import './chunk-CWAOLMFS.js';
|
|
5
5
|
import './chunk-RQSMCGBR.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-FVSSLEFN.js';
|
|
7
7
|
import './chunk-G4EXD5F3.js';
|
|
8
8
|
import './chunk-OBAC3B64.js';
|
|
9
9
|
import './chunk-UWKO24VT.js';
|
package/dist/new-session.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { DEFAULT_SHORTCUTS, NewSessionPrompt, buildDefaultShortcuts } from './chunk-
|
|
2
|
+
export { DEFAULT_SHORTCUTS, NewSessionPrompt, buildDefaultShortcuts } from './chunk-47UUMIS3.js';
|
|
3
3
|
import './chunk-RQSMCGBR.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-FVSSLEFN.js';
|
|
5
5
|
import './chunk-37WYG6VG.js';
|
|
6
6
|
import './chunk-RCWVJD7G.js';
|
|
7
7
|
import './chunk-LGVMMBL3.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { DeckNotesCard, deckOwnsArrowKeys } from './chunk-4FRTPVJT.js';
|
|
3
|
-
import { resolveStageWidth, zoomPercent, DECK_ZOOM_LEVELS, LazyThumb, ArtifactSkeleton } from './chunk-
|
|
3
|
+
import { resolveStageWidth, zoomPercent, DECK_ZOOM_LEVELS, LazyThumb, ArtifactSkeleton } from './chunk-N2PBTMEA.js';
|
|
4
4
|
import { ChevronLeftIcon } from './chunk-CWAOLMFS.js';
|
|
5
|
-
import { useTranslation, useIsMobile } from './chunk-
|
|
5
|
+
import { useTranslation, useIsMobile } from './chunk-FVSSLEFN.js';
|
|
6
6
|
import { Button, ChevronDownMediumIcon, ScrollArea } from './chunk-UWKO24VT.js';
|
|
7
7
|
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, ChevronRightIcon } from './chunk-C3HW5S2Z.js';
|
|
8
8
|
import { cn } from './chunk-LGVMMBL3.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { zoomPercent, DECK_ZOOM_LEVELS, ArtifactSkeleton, LazyThumb } from './chunk-
|
|
2
|
+
import { zoomPercent, DECK_ZOOM_LEVELS, ArtifactSkeleton, LazyThumb } from './chunk-N2PBTMEA.js';
|
|
3
3
|
import { ChevronLeftIcon } from './chunk-CWAOLMFS.js';
|
|
4
|
-
import { useTranslation, useIsMobile } from './chunk-
|
|
4
|
+
import { useTranslation, useIsMobile } from './chunk-FVSSLEFN.js';
|
|
5
5
|
import { Button, ChevronDownMediumIcon, ScrollArea } from './chunk-UWKO24VT.js';
|
|
6
6
|
import { ChevronRightIcon, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuRadioGroup, DropdownMenuRadioItem } from './chunk-C3HW5S2Z.js';
|
|
7
7
|
import { cn } from './chunk-LGVMMBL3.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontera-sdk/chat-ui",
|
|
3
|
-
"version": "1.53.
|
|
3
|
+
"version": "1.53.16",
|
|
4
4
|
"description": "Ready-made React components for embedding a Frontera agent conversation — message rendering, tool calls, artifacts and composer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"frontera",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"@elysiajs/eden": "^1.4.9",
|
|
92
|
-
"@frontera-sdk/chat": "1.53.
|
|
93
|
-
"@frontera-sdk/core": "1.53.
|
|
92
|
+
"@frontera-sdk/chat": "1.53.16",
|
|
93
|
+
"@frontera-sdk/core": "1.53.16",
|
|
94
94
|
"@radix-ui/react-alert-dialog": "^1.1.23",
|
|
95
95
|
"@radix-ui/react-collapsible": "^1.1.12",
|
|
96
96
|
"@radix-ui/react-compose-refs": "^1.1.5",
|