@frontera-sdk/chat-ui 1.50.78 → 1.50.80
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/agent-picker.js +6 -6
- package/dist/{capture-NO5ZIGP6.js → capture-G4CDPSBH.js} +1 -1
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +4594 -941
- package/dist/{chunk-V44YVBRX.js → chunk-2P4IEVOQ.js} +29 -12
- package/dist/{chunk-WMN6BPPS.js → chunk-4FRTPVJT.js} +2 -2
- package/dist/{chunk-UTKQ6G2A.js → chunk-5B25DNOG.js} +7 -7
- package/dist/{chunk-FTLVGUG5.js → chunk-7AT2LRVW.js} +2640 -153
- package/dist/{chunk-FNIHHKOZ.js → chunk-C2TZSGKK.js} +1374 -186
- package/dist/{chunk-BDJFVRYR.js → chunk-C3HW5S2Z.js} +57 -18
- package/dist/chunk-CWAOLMFS.js +32 -0
- package/dist/{chunk-26L3ST3H.js → chunk-EFFOOCIK.js} +5975 -639
- package/dist/{chunk-J7EWRXEC.js → chunk-EXPHCRFP.js} +3 -3
- package/dist/{chunk-PH7AYVSS.js → chunk-FLOAEPRU.js} +4 -4
- package/dist/chunk-LGVMMBL3.js +33 -0
- package/dist/{chunk-IQXJEZM7.js → chunk-LOBDKA2D.js} +328 -32
- package/dist/{chunk-FDGBZFGN.js → chunk-PKNEC4LJ.js} +528 -12
- package/dist/{chunk-TSKFBMGC.js → chunk-PUMRNN3R.js} +117 -66
- package/dist/{chunk-S3ECTKA3.js → chunk-QBV7MAFV.js} +30 -4
- package/dist/{chunk-F6PEZE7A.js → chunk-T5SANYSX.js} +3 -10
- package/dist/{chunk-AFVU5VT6.js → chunk-TUDJ35AB.js} +1071 -87
- package/dist/{chunk-ROJM44GB.js → chunk-UWKO24VT.js} +28 -2
- package/dist/{chunk-KHF7OM3F.js → chunk-UZ6RDWCT.js} +4 -4
- package/dist/chunk-X3QVICX7.js +32 -0
- package/dist/client.d.ts +3 -3
- package/dist/client.js +1 -1
- package/dist/header.d.ts +1 -1
- package/dist/header.js +15 -15
- package/dist/message.js +14 -15
- package/dist/new-session.d.ts +1 -1
- package/dist/new-session.js +7 -8
- package/dist/parts.js +6 -6
- package/dist/{pdf-deck-view-inner-AY4FYDAJ.js → pdf-deck-view-inner-KW6RIALH.js} +7 -8
- package/dist/{pdf-document-view-inner-NC5MBN7X.js → pdf-document-view-inner-AJEP5IJC.js} +6 -7
- package/dist/{pdf-viewer-inner-GPES3KG2.js → pdf-viewer-inner-CXWPRACH.js} +2 -2
- package/dist/pending-cards.js +7 -7
- package/dist/platform.css +1 -1
- package/package.json +7 -4
- package/dist/chunk-6BPHEBCF.js +0 -639
- package/dist/chunk-IXDM5R55.js +0 -23
- package/dist/chunk-XLX3L3P4.js +0 -43
- package/dist/vega-chart-block-NQADYNWQ.js +0 -2857
- package/dist/{chunk-7ADM3CKD.js → chunk-6JLWE7M3.js} +0 -0
- package/dist/{pdf-cover-thumbnail-inner-4N2Q5AAG.js → pdf-cover-thumbnail-inner-B2P6S25B.js} +0 -0
- package/dist/{types-BDqLaBfH.d.ts → types-BZhoOcz2.d.ts} +3 -3
- /package/dist/{univer-workbook-LSBVETAQ.js → univer-workbook-PENO65OQ.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useTranslation } from './chunk-
|
|
3
|
-
import { Skeleton } from './chunk-
|
|
2
|
+
import { useTranslation } from './chunk-7AT2LRVW.js';
|
|
3
|
+
import { Skeleton } from './chunk-UWKO24VT.js';
|
|
4
4
|
import { useRef, useState, useEffect } from 'react';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -33,7 +33,7 @@ function LazyThumb({
|
|
|
33
33
|
return /* @__PURE__ */ jsx("div", { ref, style: { width, height }, className, children: shown ? children : null });
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
// src/
|
|
36
|
+
// ../chat/src/ui/library/artifact-viewer/components/pdf-deck-zoom.ts
|
|
37
37
|
var DECK_ZOOM_LEVELS = [0.5, 0.75, 1, 1.25, 1.5, 2];
|
|
38
38
|
function resolveStageWidth({
|
|
39
39
|
zoom,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from './chunk-
|
|
3
|
-
import { AgentAvatar } from './chunk-
|
|
4
|
-
import { ChevronDownMediumIcon } from './chunk-
|
|
5
|
-
import { useChatClientOptional } from './chunk-
|
|
2
|
+
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from './chunk-C3HW5S2Z.js';
|
|
3
|
+
import { AgentAvatar } from './chunk-PUMRNN3R.js';
|
|
4
|
+
import { ChevronDownMediumIcon } from './chunk-TUDJ35AB.js';
|
|
5
|
+
import { useChatClientOptional } from './chunk-6JLWE7M3.js';
|
|
6
6
|
import { useState, useEffect } from 'react';
|
|
7
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
import { createContext, useContext } from 'react';
|
|
6
|
+
|
|
7
|
+
// ../platform-kit/src/lib/utils.ts
|
|
8
|
+
function cn(...inputs) {
|
|
9
|
+
return twMerge(clsx(inputs));
|
|
10
|
+
}
|
|
11
|
+
function Checkmark1Icon(props) {
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
"svg",
|
|
14
|
+
{
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
role: "img",
|
|
17
|
+
"aria-label": "checkmark-1",
|
|
18
|
+
width: "24px",
|
|
19
|
+
height: "24px",
|
|
20
|
+
viewBox: "0 0 24 24",
|
|
21
|
+
fill: "none",
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
...props,
|
|
24
|
+
children: /* @__PURE__ */ jsx("path", { d: "M4.75 12.7768L10 19.25L19.25 4.75", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
var PortalContainerContext = createContext(null);
|
|
29
|
+
function usePortalContainer() {
|
|
30
|
+
return useContext(PortalContainerContext);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { Checkmark1Icon, PortalContainerContext, cn, usePortalContainer };
|
|
@@ -1,20 +1,79 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
2
|
+
import { MagnifyingGlassIcon } from './chunk-X3QVICX7.js';
|
|
3
|
+
import { requestPaneFocus, useArtifacts, usePlugins, useCanvasStore, useArtifactStore, useChatOverviewStore, useSourcesEnrichment, sourceKind, useCitationViewer, resolveSourceDisplay, extractDomain, canvasId, StudioDisplayIcon, LayoutDashboardIcon, useAgentPanelStore, SourceFavicon, dedup, useArtifactFileObjectUrl, resolveArtifactIconFormat, artifactFormatIcon, avatarMotionForStream, AGENT_AVATAR_SIZE, getFileCategory, FileThumbnail, formatFileSize, usePathname, artifactFormatSubtitle, artifactCategory, Input, MobileScreenSheet, TooltipTrigger, Tooltip, useChatCapabilities, TooltipContent, processMessageParts, GridSpinner, PanelEdgeRing, ArtifactActionsMenu, DotGrid1x3HorizontalTightIcon, extractCitationsFromSteps, resolvePluginLanguage, getMessageDisplayTimestampValue } from './chunk-EFFOOCIK.js';
|
|
4
|
+
import { Popover, PopoverTrigger, PopoverContent, Sheet, SheetContent, SheetHeader, SheetTitle } from './chunk-T5SANYSX.js';
|
|
5
|
+
import { useTranslation, useIsMobile } from './chunk-7AT2LRVW.js';
|
|
6
|
+
import { Collapsible, CollapsibleTrigger, CollapsibleContent, Shimmer, HoverCard, HoverCardTrigger, HoverCardContent } from './chunk-PKNEC4LJ.js';
|
|
7
|
+
import { ChevronDownMediumIcon, ScrollArea, Skeleton, Button } from './chunk-UWKO24VT.js';
|
|
8
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, CrossMediumIcon } from './chunk-2P4IEVOQ.js';
|
|
9
|
+
import { ChevronRightIcon } from './chunk-C3HW5S2Z.js';
|
|
10
|
+
import { AgentAvatar } from './chunk-PUMRNN3R.js';
|
|
11
|
+
import { BulletListIcon, FilesIcon } from './chunk-TUDJ35AB.js';
|
|
12
|
+
import { cn, Checkmark1Icon } from './chunk-LGVMMBL3.js';
|
|
12
13
|
import { __require } from './chunk-PR4QN5HX.js';
|
|
13
14
|
import * as React2 from 'react';
|
|
14
15
|
import { createContext, useMemo, useState, useCallback, useRef, useEffect, forwardRef, useContext, useId, Children, isValidElement, useLayoutEffect, useInsertionEffect, Fragment as Fragment$1, createElement, Component } from 'react';
|
|
16
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
15
17
|
import { create } from 'zustand';
|
|
16
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
17
18
|
|
|
19
|
+
function BulletListIcon2(props) {
|
|
20
|
+
return /* @__PURE__ */ jsxs(
|
|
21
|
+
"svg",
|
|
22
|
+
{
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
role: "img",
|
|
25
|
+
"aria-label": "bullet-list",
|
|
26
|
+
width: "24px",
|
|
27
|
+
height: "24px",
|
|
28
|
+
viewBox: "0 0 24 24",
|
|
29
|
+
fill: "none",
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31
|
+
...props,
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
"path",
|
|
35
|
+
{
|
|
36
|
+
d: "M11.75 16.75H20.25",
|
|
37
|
+
stroke: "currentColor",
|
|
38
|
+
strokeWidth: "1.5",
|
|
39
|
+
strokeLinecap: "round",
|
|
40
|
+
strokeLinejoin: "round"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
"path",
|
|
45
|
+
{
|
|
46
|
+
d: "M11.75 7.25H20.25",
|
|
47
|
+
stroke: "currentColor",
|
|
48
|
+
strokeWidth: "1.5",
|
|
49
|
+
strokeLinecap: "round",
|
|
50
|
+
strokeLinejoin: "round"
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ jsx(
|
|
54
|
+
"path",
|
|
55
|
+
{
|
|
56
|
+
d: "M7.75 7.25C7.75 8.35457 6.85457 9.25 5.75 9.25C4.64543 9.25 3.75 8.35457 3.75 7.25C3.75 6.14543 4.64543 5.25 5.75 5.25C6.85457 5.25 7.75 6.14543 7.75 7.25Z",
|
|
57
|
+
stroke: "currentColor",
|
|
58
|
+
strokeWidth: "1.5",
|
|
59
|
+
strokeLinecap: "round",
|
|
60
|
+
strokeLinejoin: "round"
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ jsx(
|
|
64
|
+
"path",
|
|
65
|
+
{
|
|
66
|
+
d: "M7.75 16.75C7.75 17.8546 6.85457 18.75 5.75 18.75C4.64543 18.75 3.75 17.8546 3.75 16.75C3.75 15.6454 4.64543 14.75 5.75 14.75C6.85457 14.75 7.75 15.6454 7.75 16.75Z",
|
|
67
|
+
stroke: "currentColor",
|
|
68
|
+
strokeWidth: "1.5",
|
|
69
|
+
strokeLinecap: "round",
|
|
70
|
+
strokeLinejoin: "round"
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
18
77
|
var usePlanStore = create((set) => ({
|
|
19
78
|
latestPlan: null,
|
|
20
79
|
setPlan: (plan) => set({ latestPlan: plan }),
|
|
@@ -53,7 +112,7 @@ function useConversationArtifacts(conversationId) {
|
|
|
53
112
|
return { artifacts, isLoading };
|
|
54
113
|
}
|
|
55
114
|
|
|
56
|
-
// src/
|
|
115
|
+
// ../chat/src/ui/chat/chat-overview/utils/collect-session-canvases.ts
|
|
57
116
|
function messageCreatedAt(message) {
|
|
58
117
|
const timestamp = getMessageDisplayTimestampValue(message);
|
|
59
118
|
if (timestamp instanceof Date) return timestamp.toISOString();
|
|
@@ -91,7 +150,7 @@ function collectSessionCanvases(messages) {
|
|
|
91
150
|
return items;
|
|
92
151
|
}
|
|
93
152
|
|
|
94
|
-
// src/
|
|
153
|
+
// ../chat/src/ui/chat/chat-overview/utils/collect-session-citations.ts
|
|
95
154
|
var messageCitations = /* @__PURE__ */ new WeakMap();
|
|
96
155
|
function citationsOf(parts) {
|
|
97
156
|
const cached = messageCitations.get(parts);
|
|
@@ -115,7 +174,7 @@ function collectSessionCitations(messages) {
|
|
|
115
174
|
return dedup(citations);
|
|
116
175
|
}
|
|
117
176
|
|
|
118
|
-
// src/
|
|
177
|
+
// ../chat/src/ui/chat/chat-overview/utils/collect-session-charts.ts
|
|
119
178
|
var PLUGIN_BLOCK_LABELS = {
|
|
120
179
|
"chart-line": "Line chart",
|
|
121
180
|
"chart-bar": "Bar chart",
|
|
@@ -211,7 +270,7 @@ function collectSessionCharts(messages, languageSet) {
|
|
|
211
270
|
return items;
|
|
212
271
|
}
|
|
213
272
|
|
|
214
|
-
// src/
|
|
273
|
+
// ../chat/src/ui/chat/chat-overview/utils/collect-session-inputs.ts
|
|
215
274
|
var NO_ATTACHMENTS = { files: [], contexts: [] };
|
|
216
275
|
var messageAttachments = /* @__PURE__ */ new WeakMap();
|
|
217
276
|
function attachmentsOf(parts) {
|
|
@@ -268,7 +327,7 @@ function collectSessionInputs(messages) {
|
|
|
268
327
|
return items;
|
|
269
328
|
}
|
|
270
329
|
|
|
271
|
-
// src/
|
|
330
|
+
// ../chat/src/ui/chat/chat-overview/utils/collect-session-apps.ts
|
|
272
331
|
function collectSessionApps(messages) {
|
|
273
332
|
const byId = /* @__PURE__ */ new Map();
|
|
274
333
|
for (const [messageIndex, message] of messages.entries()) {
|
|
@@ -289,7 +348,7 @@ function collectSessionApps(messages) {
|
|
|
289
348
|
return [...byId.values()];
|
|
290
349
|
}
|
|
291
350
|
|
|
292
|
-
// src/
|
|
351
|
+
// ../chat/src/ui/chat/chat-overview/hooks/use-chat-overview-data.ts
|
|
293
352
|
function useChatOverviewData(conversationId, messages, publishSessionData = true) {
|
|
294
353
|
const { artifacts, isLoading: isLoadingArtifacts } = useConversationArtifacts(conversationId);
|
|
295
354
|
const canvasItems = useCanvasStore((s) => s.items);
|
|
@@ -348,7 +407,7 @@ function useChatOverviewData(conversationId, messages, publishSessionData = true
|
|
|
348
407
|
};
|
|
349
408
|
}
|
|
350
409
|
|
|
351
|
-
// src/
|
|
410
|
+
// ../chat/src/ui/chat/chat-overview/hooks/use-chat-overview-visible.ts
|
|
352
411
|
function useChatOverviewVisible(conversationId, messages, readOnly, agent) {
|
|
353
412
|
const { hasArtifacts } = usePlugins();
|
|
354
413
|
const canvasOpen = useCanvasStore((s) => s.isOpen);
|
|
@@ -9232,7 +9291,7 @@ function StepStatusIcon({ status }) {
|
|
|
9232
9291
|
}
|
|
9233
9292
|
}
|
|
9234
9293
|
|
|
9235
|
-
// src/
|
|
9294
|
+
// ../chat/src/ui/chat/chat-overview/utils/section-scroll-heights.ts
|
|
9236
9295
|
var OVERVIEW_SCROLL = {
|
|
9237
9296
|
outputs: "max-h-80",
|
|
9238
9297
|
inputs: "max-h-48",
|
|
@@ -9270,8 +9329,131 @@ function PlanSection({ nativeScroll = false }) {
|
|
|
9270
9329
|
}
|
|
9271
9330
|
);
|
|
9272
9331
|
}
|
|
9332
|
+
function Chart1Icon(props) {
|
|
9333
|
+
return /* @__PURE__ */ jsxs(
|
|
9334
|
+
"svg",
|
|
9335
|
+
{
|
|
9336
|
+
"aria-hidden": "true",
|
|
9337
|
+
role: "img",
|
|
9338
|
+
"aria-label": "chart-1, statistics, flipchart, presentation, graph 2",
|
|
9339
|
+
width: "24px",
|
|
9340
|
+
height: "24px",
|
|
9341
|
+
viewBox: "0 0 24 24",
|
|
9342
|
+
fill: "none",
|
|
9343
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9344
|
+
...props,
|
|
9345
|
+
children: [
|
|
9346
|
+
/* @__PURE__ */ jsx(
|
|
9347
|
+
"path",
|
|
9348
|
+
{
|
|
9349
|
+
d: "M18.25 18.25C19.9069 18.25 21.25 16.9069 21.25 15.25V6.75C21.25 5.09315 19.9069 3.75 18.25 3.75H5.75C4.09315 3.75 2.75 5.09315 2.75 6.75V15.25C2.75 16.9069 4.09315 18.25 5.75 18.25H18.25Z",
|
|
9350
|
+
stroke: "currentColor",
|
|
9351
|
+
strokeWidth: "1.5",
|
|
9352
|
+
strokeLinecap: "round",
|
|
9353
|
+
strokeLinejoin: "round"
|
|
9354
|
+
}
|
|
9355
|
+
),
|
|
9356
|
+
/* @__PURE__ */ jsx(
|
|
9357
|
+
"path",
|
|
9358
|
+
{
|
|
9359
|
+
d: "M7.75 12.75V14.25",
|
|
9360
|
+
stroke: "currentColor",
|
|
9361
|
+
strokeWidth: "1.5",
|
|
9362
|
+
strokeLinecap: "round",
|
|
9363
|
+
strokeLinejoin: "round"
|
|
9364
|
+
}
|
|
9365
|
+
),
|
|
9366
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.75V14.25", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
9367
|
+
/* @__PURE__ */ jsx(
|
|
9368
|
+
"path",
|
|
9369
|
+
{
|
|
9370
|
+
d: "M16.25 10.75V14.25",
|
|
9371
|
+
stroke: "currentColor",
|
|
9372
|
+
strokeWidth: "1.5",
|
|
9373
|
+
strokeLinecap: "round",
|
|
9374
|
+
strokeLinejoin: "round"
|
|
9375
|
+
}
|
|
9376
|
+
),
|
|
9377
|
+
/* @__PURE__ */ jsx(
|
|
9378
|
+
"path",
|
|
9379
|
+
{
|
|
9380
|
+
d: "M8.85694 18.7507L8 21.75",
|
|
9381
|
+
stroke: "currentColor",
|
|
9382
|
+
strokeWidth: "1.5",
|
|
9383
|
+
strokeLinecap: "round",
|
|
9384
|
+
strokeLinejoin: "round"
|
|
9385
|
+
}
|
|
9386
|
+
),
|
|
9387
|
+
/* @__PURE__ */ jsx(
|
|
9388
|
+
"path",
|
|
9389
|
+
{
|
|
9390
|
+
d: "M15.1445 18.7507L16.0015 21.75",
|
|
9391
|
+
stroke: "currentColor",
|
|
9392
|
+
strokeWidth: "1.5",
|
|
9393
|
+
strokeLinecap: "round",
|
|
9394
|
+
strokeLinejoin: "round"
|
|
9395
|
+
}
|
|
9396
|
+
)
|
|
9397
|
+
]
|
|
9398
|
+
}
|
|
9399
|
+
);
|
|
9400
|
+
}
|
|
9401
|
+
function CircleDashedIcon(props) {
|
|
9402
|
+
return /* @__PURE__ */ jsx(
|
|
9403
|
+
"svg",
|
|
9404
|
+
{
|
|
9405
|
+
"aria-hidden": "true",
|
|
9406
|
+
role: "img",
|
|
9407
|
+
"aria-label": "circle-dashed",
|
|
9408
|
+
width: "24px",
|
|
9409
|
+
height: "24px",
|
|
9410
|
+
viewBox: "0 0 24 24",
|
|
9411
|
+
fill: "none",
|
|
9412
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9413
|
+
...props,
|
|
9414
|
+
children: /* @__PURE__ */ jsx(
|
|
9415
|
+
"path",
|
|
9416
|
+
{
|
|
9417
|
+
d: "M21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12Z",
|
|
9418
|
+
stroke: "currentColor",
|
|
9419
|
+
strokeWidth: "1.5",
|
|
9420
|
+
strokeLinecap: "round",
|
|
9421
|
+
strokeLinejoin: "round",
|
|
9422
|
+
strokeDasharray: "3 4"
|
|
9423
|
+
}
|
|
9424
|
+
)
|
|
9425
|
+
}
|
|
9426
|
+
);
|
|
9427
|
+
}
|
|
9428
|
+
function TableIcon(props) {
|
|
9429
|
+
return /* @__PURE__ */ jsxs(
|
|
9430
|
+
"svg",
|
|
9431
|
+
{
|
|
9432
|
+
"aria-hidden": "true",
|
|
9433
|
+
role: "img",
|
|
9434
|
+
"aria-label": "table, spreedsheet, chart",
|
|
9435
|
+
width: "24px",
|
|
9436
|
+
height: "24px",
|
|
9437
|
+
viewBox: "0 0 24 24",
|
|
9438
|
+
fill: "none",
|
|
9439
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9440
|
+
...props,
|
|
9441
|
+
children: [
|
|
9442
|
+
/* @__PURE__ */ jsx(
|
|
9443
|
+
"path",
|
|
9444
|
+
{
|
|
9445
|
+
d: "M19.923 5.38803L19.2548 5.72852V5.72852L19.923 5.38803ZM18.612 4.07698L18.9525 3.40873V3.40873L18.612 4.07698ZM5.38803 4.07698L5.72852 4.74524V4.74524L5.38803 4.07698ZM4.07698 5.38803L4.74524 5.72852V5.72852L4.07698 5.38803ZM4.07698 18.612L3.40873 18.9525H3.40873L4.07698 18.612ZM5.38803 19.923L5.72852 19.2548H5.72852L5.38803 19.923ZM18.612 19.923L18.2715 19.2548H18.2715L18.612 19.923ZM19.923 18.612L19.2548 18.2715V18.2715L19.923 18.612ZM20.25 8.55H19.5V15.45H20.25H21V8.55H20.25ZM20.25 8.55H21C21 7.7223 21.0006 7.05641 20.9566 6.51853C20.912 5.97189 20.8176 5.49175 20.5913 5.04754L19.923 5.38803L19.2548 5.72852C19.3554 5.92604 19.4245 6.1868 19.4616 6.64068C19.4994 7.10331 19.5 7.69755 19.5 8.55H20.25ZM19.923 5.38803L20.5913 5.04754C20.2318 4.34193 19.6581 3.76825 18.9525 3.40873L18.612 4.07698L18.2715 4.74524C18.6948 4.96095 19.0391 5.30516 19.2548 5.72852L19.923 5.38803ZM15.45 3.75V4.5C16.3025 4.5 16.8967 4.50058 17.3593 4.53838C17.8132 4.57546 18.074 4.6446 18.2715 4.74524L18.612 4.07698L18.9525 3.40873C18.5082 3.18238 18.0281 3.08803 17.4815 3.04336C16.9436 2.99942 16.2777 3 15.45 3V3.75ZM8.55 3.75V4.5H15.45V3.75V3H8.55V3.75ZM8.55 3.75V3C7.7223 3 7.05641 2.99942 6.51853 3.04336C5.97189 3.08803 5.49175 3.18238 5.04754 3.40873L5.38803 4.07698L5.72852 4.74524C5.92604 4.6446 6.1868 4.57546 6.64068 4.53838C7.10331 4.50058 7.69755 4.5 8.55 4.5V3.75ZM4.07698 5.38803L4.74524 5.72852C4.96095 5.30516 5.30516 4.96095 5.72852 4.74524L5.38803 4.07698L5.04754 3.40873C4.34193 3.76825 3.76825 4.34193 3.40873 5.04754L4.07698 5.38803ZM3.75 8.55H4.5C4.5 7.69755 4.50058 7.10331 4.53838 6.64068C4.57546 6.1868 4.6446 5.92604 4.74524 5.72852L4.07698 5.38803L3.40873 5.04754C3.18238 5.49175 3.08803 5.97189 3.04336 6.51853C2.99942 7.05641 3 7.7223 3 8.55H3.75ZM3.75 15.45H4.5V8.55H3.75H3V15.45H3.75ZM3.75 15.45H3C3 16.2777 2.99942 16.9436 3.04336 17.4815C3.08803 18.0281 3.18238 18.5082 3.40873 18.9525L4.07698 18.612L4.74524 18.2715C4.6446 18.074 4.57546 17.8132 4.53838 17.3593C4.50058 16.8967 4.5 16.3025 4.5 15.45H3.75ZM5.38803 19.923L5.72852 19.2548C5.30516 19.0391 4.96095 18.6948 4.74524 18.2715L4.07698 18.612L3.40873 18.9525C3.76825 19.6581 4.34193 20.2318 5.04754 20.5913L5.38803 19.923ZM8.55 20.25V19.5C7.69755 19.5 7.10331 19.4994 6.64068 19.4616C6.1868 19.4245 5.92604 19.3554 5.72852 19.2548L5.38803 19.923L5.04754 20.5913C5.49175 20.8176 5.97189 20.912 6.51853 20.9566C7.05641 21.0006 7.7223 21 8.55 21V20.25ZM15.45 20.25V19.5H8.55V20.25V21H15.45V20.25ZM15.45 20.25V21C16.2777 21 16.9436 21.0006 17.4815 20.9566C18.0281 20.912 18.5082 20.8176 18.9525 20.5913L18.612 19.923L18.2715 19.2548C18.074 19.3554 17.8132 19.4245 17.3593 19.4616C16.8967 19.4994 16.3025 19.5 15.45 19.5V20.25ZM19.923 18.612L19.2548 18.2715C19.0391 18.6948 18.6948 19.0391 18.2715 19.2548L18.612 19.923L18.9525 20.5913C19.6581 20.2318 20.2318 19.6581 20.5913 18.9525L19.923 18.612ZM20.25 15.45H19.5C19.5 16.3025 19.4994 16.8967 19.4616 17.3593C19.4245 17.8132 19.3554 18.074 19.2548 18.2715L19.923 18.612L20.5913 18.9525C20.8176 18.5082 20.912 18.0281 20.9566 17.4815C21.0006 16.9436 21 16.2777 21 15.45H20.25Z",
|
|
9446
|
+
fill: "currentColor"
|
|
9447
|
+
}
|
|
9448
|
+
),
|
|
9449
|
+
/* @__PURE__ */ jsx("path", { d: "M9.75 3.75V9.75V20.25", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "square" }),
|
|
9450
|
+
/* @__PURE__ */ jsx("path", { d: "M3.75 9.75H9.75H20.25", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "square" })
|
|
9451
|
+
]
|
|
9452
|
+
}
|
|
9453
|
+
);
|
|
9454
|
+
}
|
|
9273
9455
|
|
|
9274
|
-
// src/
|
|
9456
|
+
// ../chat/src/ui/chat/chat-overview/utils/output-icon-styles.ts
|
|
9275
9457
|
var OUTPUT_ICON_CLASS_NAME = "size-5 shrink-0 text-muted-foreground md:size-4";
|
|
9276
9458
|
var OUTPUT_ICON_TILE_CLASS_NAME = "flex h-9 w-10 shrink-0 items-center justify-center rounded-md bg-surface-inset md:size-4 md:rounded-sm";
|
|
9277
9459
|
var OUTPUT_ICON_CLASS_NAMES = {
|
|
@@ -9320,7 +9502,7 @@ function ArtifactOverviewRowIcon({
|
|
|
9320
9502
|
);
|
|
9321
9503
|
}
|
|
9322
9504
|
|
|
9323
|
-
// src/
|
|
9505
|
+
// ../chat/src/ui/chat/chat-overview/utils/overview-outputs.ts
|
|
9324
9506
|
function timestampMs(value) {
|
|
9325
9507
|
if (value == null) return void 0;
|
|
9326
9508
|
const ms = value instanceof Date ? value.getTime() : new Date(value).getTime();
|
|
@@ -9672,6 +9854,45 @@ function OutputsSection({
|
|
|
9672
9854
|
)
|
|
9673
9855
|
] });
|
|
9674
9856
|
}
|
|
9857
|
+
function ChainLink1Icon(props) {
|
|
9858
|
+
return /* @__PURE__ */ jsxs(
|
|
9859
|
+
"svg",
|
|
9860
|
+
{
|
|
9861
|
+
"aria-hidden": "true",
|
|
9862
|
+
role: "img",
|
|
9863
|
+
"aria-label": "chain-link-1,url",
|
|
9864
|
+
width: "24px",
|
|
9865
|
+
height: "24px",
|
|
9866
|
+
viewBox: "0 0 24 24",
|
|
9867
|
+
fill: "none",
|
|
9868
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9869
|
+
...props,
|
|
9870
|
+
children: [
|
|
9871
|
+
/* @__PURE__ */ jsx(
|
|
9872
|
+
"path",
|
|
9873
|
+
{
|
|
9874
|
+
d: "M13.25 17.75L11.6214 19.3787C10.4498 20.5503 8.55029 20.5503 7.37872 19.3787L4.62136 16.6213C3.44978 15.4497 3.44978 13.5503 4.62136 12.3787L6.25003 10.75",
|
|
9875
|
+
stroke: "currentColor",
|
|
9876
|
+
strokeWidth: "1.5",
|
|
9877
|
+
strokeLinecap: "round",
|
|
9878
|
+
strokeLinejoin: "round"
|
|
9879
|
+
}
|
|
9880
|
+
),
|
|
9881
|
+
/* @__PURE__ */ jsx(
|
|
9882
|
+
"path",
|
|
9883
|
+
{
|
|
9884
|
+
d: "M10.75 6.24955L12.3787 4.62087C13.5503 3.44929 15.4497 3.44929 16.6213 4.62087L19.3787 7.37823C20.5503 8.5498 20.5503 10.4493 19.3787 11.6209L17.75 13.2495",
|
|
9885
|
+
stroke: "currentColor",
|
|
9886
|
+
strokeWidth: "1.5",
|
|
9887
|
+
strokeLinecap: "round",
|
|
9888
|
+
strokeLinejoin: "round"
|
|
9889
|
+
}
|
|
9890
|
+
),
|
|
9891
|
+
/* @__PURE__ */ jsx("path", { d: "M9 15L15 9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
9892
|
+
]
|
|
9893
|
+
}
|
|
9894
|
+
);
|
|
9895
|
+
}
|
|
9675
9896
|
var COMPACT_INPUT_LIMIT = 4;
|
|
9676
9897
|
function InputsSection({
|
|
9677
9898
|
items,
|
|
@@ -9823,7 +10044,7 @@ function SessionOverviewToggle({
|
|
|
9823
10044
|
"aria-pressed": isActive,
|
|
9824
10045
|
"aria-label": label,
|
|
9825
10046
|
onClick: rightPaneOpen ? void 0 : handleInlineClick,
|
|
9826
|
-
children: /* @__PURE__ */ jsx(
|
|
10047
|
+
children: /* @__PURE__ */ jsx(BulletListIcon2, { className: "size-3.5" })
|
|
9827
10048
|
}
|
|
9828
10049
|
) });
|
|
9829
10050
|
const tip = /* @__PURE__ */ jsx(TooltipContent, { side: "bottom", children: label });
|
|
@@ -9866,6 +10087,82 @@ function SessionOverviewToggle({
|
|
|
9866
10087
|
tip
|
|
9867
10088
|
] });
|
|
9868
10089
|
}
|
|
10090
|
+
function SidebarHiddenRightWideIcon(props) {
|
|
10091
|
+
return /* @__PURE__ */ jsxs(
|
|
10092
|
+
"svg",
|
|
10093
|
+
{
|
|
10094
|
+
"aria-hidden": "true",
|
|
10095
|
+
role: "img",
|
|
10096
|
+
"aria-label": "sidebar-hidden-right-wide",
|
|
10097
|
+
width: "24px",
|
|
10098
|
+
height: "24px",
|
|
10099
|
+
viewBox: "0 0 24 24",
|
|
10100
|
+
fill: "none",
|
|
10101
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10102
|
+
...props,
|
|
10103
|
+
children: [
|
|
10104
|
+
/* @__PURE__ */ jsx(
|
|
10105
|
+
"path",
|
|
10106
|
+
{
|
|
10107
|
+
d: "M2.75 7.75C2.75 6.09315 4.09315 4.75 5.75 4.75H18.25C19.9069 4.75 21.25 6.09315 21.25 7.75V16.25C21.25 17.9069 19.9069 19.25 18.25 19.25H5.75C4.09315 19.25 2.75 17.9069 2.75 16.25V7.75Z",
|
|
10108
|
+
stroke: "currentColor",
|
|
10109
|
+
strokeWidth: "1.5",
|
|
10110
|
+
strokeLinejoin: "round"
|
|
10111
|
+
}
|
|
10112
|
+
),
|
|
10113
|
+
/* @__PURE__ */ jsx("path", { d: "M17.75 8.25V15.75", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
10114
|
+
]
|
|
10115
|
+
}
|
|
10116
|
+
);
|
|
10117
|
+
}
|
|
10118
|
+
function ProjectsIcon(props) {
|
|
10119
|
+
return /* @__PURE__ */ jsxs(
|
|
10120
|
+
"svg",
|
|
10121
|
+
{
|
|
10122
|
+
"aria-hidden": "true",
|
|
10123
|
+
role: "img",
|
|
10124
|
+
"aria-label": "projects, stack, templates, timeline",
|
|
10125
|
+
width: "24px",
|
|
10126
|
+
height: "24px",
|
|
10127
|
+
viewBox: "0 0 24 24",
|
|
10128
|
+
fill: "none",
|
|
10129
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10130
|
+
...props,
|
|
10131
|
+
children: [
|
|
10132
|
+
/* @__PURE__ */ jsx(
|
|
10133
|
+
"path",
|
|
10134
|
+
{
|
|
10135
|
+
d: "M6.75 3.75H17.25",
|
|
10136
|
+
stroke: "currentColor",
|
|
10137
|
+
strokeWidth: "1.5",
|
|
10138
|
+
strokeLinecap: "round",
|
|
10139
|
+
strokeLinejoin: "round"
|
|
10140
|
+
}
|
|
10141
|
+
),
|
|
10142
|
+
/* @__PURE__ */ jsx(
|
|
10143
|
+
"path",
|
|
10144
|
+
{
|
|
10145
|
+
d: "M4.75 7.25H19.25",
|
|
10146
|
+
stroke: "currentColor",
|
|
10147
|
+
strokeWidth: "1.5",
|
|
10148
|
+
strokeLinecap: "round",
|
|
10149
|
+
strokeLinejoin: "round"
|
|
10150
|
+
}
|
|
10151
|
+
),
|
|
10152
|
+
/* @__PURE__ */ jsx(
|
|
10153
|
+
"path",
|
|
10154
|
+
{
|
|
10155
|
+
d: "M19.1556 10.75H4.84441C3.53306 10.75 2.57653 11.9908 2.91026 13.259L4.16144 18.0135C4.50827 19.3314 5.69986 20.25 7.06267 20.25H16.9373C18.3001 20.25 19.4917 19.3314 19.8386 18.0135L21.0897 13.259C21.4235 11.9908 20.4669 10.75 19.1556 10.75Z",
|
|
10156
|
+
stroke: "currentColor",
|
|
10157
|
+
strokeWidth: "1.5",
|
|
10158
|
+
strokeLinecap: "round",
|
|
10159
|
+
strokeLinejoin: "round"
|
|
10160
|
+
}
|
|
10161
|
+
)
|
|
10162
|
+
]
|
|
10163
|
+
}
|
|
10164
|
+
);
|
|
10165
|
+
}
|
|
9869
10166
|
var useTemplatePreviewStore = create((set) => ({
|
|
9870
10167
|
themeId: null,
|
|
9871
10168
|
themeName: null,
|
|
@@ -9889,7 +10186,7 @@ function useHasTemplatePreviewHost() {
|
|
|
9889
10186
|
return useTemplatePreviewStore((s) => s.hostCount > 0);
|
|
9890
10187
|
}
|
|
9891
10188
|
var CONVERSATION_ID_RE = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i;
|
|
9892
|
-
var AGENT_ROUTE_RE =
|
|
10189
|
+
var AGENT_ROUTE_RE = /^(?:\/chat|\/apps\/[^/]+|\/console\/[^/]+)?\/agents\/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:\/|$)/i;
|
|
9893
10190
|
function useConversationId() {
|
|
9894
10191
|
const pathname = usePathname();
|
|
9895
10192
|
const agentConfigId = useAgentPanelStore((s) => s.agentConfigId);
|
|
@@ -10057,7 +10354,7 @@ var useChatSidePanelStore = create(
|
|
|
10057
10354
|
})
|
|
10058
10355
|
);
|
|
10059
10356
|
|
|
10060
|
-
// src/
|
|
10357
|
+
// ../chat/src/ui/chat/chat-overview/hooks/use-right-pane.ts
|
|
10061
10358
|
function useRightPane() {
|
|
10062
10359
|
const canvasOpen = useCanvasStore((s) => s.isOpen);
|
|
10063
10360
|
const canvasItems = useCanvasStore((s) => s.items);
|
|
@@ -10168,12 +10465,13 @@ function useRightPane() {
|
|
|
10168
10465
|
}, [close, isOpen, open]);
|
|
10169
10466
|
return { isOpen, open, close, toggle };
|
|
10170
10467
|
}
|
|
10171
|
-
function SessionSidePanelToggle({ className }) {
|
|
10468
|
+
function SessionSidePanelToggle({ className, stackedWindow = false }) {
|
|
10172
10469
|
const { t } = useTranslation();
|
|
10173
10470
|
const platformPane = useRightPane();
|
|
10174
10471
|
const override = useChatCapabilities().rightPane;
|
|
10175
10472
|
const { isOpen, toggle } = override ?? platformPane;
|
|
10176
|
-
const label = t("chat.sidePanel.toggle");
|
|
10473
|
+
const label = stackedWindow ? isOpen ? t("chat.sidePanel.closeWindow") : t("chat.sidePanel.openWindow") : t("chat.sidePanel.toggle");
|
|
10474
|
+
const Icon = stackedWindow ? ProjectsIcon : SidebarHiddenRightWideIcon;
|
|
10177
10475
|
return (
|
|
10178
10476
|
// The design-system tooltip rather than the browser's `title`: that one
|
|
10179
10477
|
// waits about a second, cannot be styled, and would sit alongside the
|
|
@@ -10187,16 +10485,14 @@ function SessionSidePanelToggle({ className }) {
|
|
|
10187
10485
|
size: "sm",
|
|
10188
10486
|
className: cn(
|
|
10189
10487
|
"size-7 shrink-0 p-0 text-muted-foreground hover:text-foreground",
|
|
10190
|
-
// Open reads as
|
|
10191
|
-
// segment solid and hollows the rest, so the icon itself says which
|
|
10192
|
-
// side is showing without a second affordance.
|
|
10488
|
+
// Open reads as pressed through the active surface treatment.
|
|
10193
10489
|
isOpen && "bg-surface-active text-foreground hover:bg-surface-active dark:hover:bg-surface-active",
|
|
10194
10490
|
className
|
|
10195
10491
|
),
|
|
10196
10492
|
onClick: toggle,
|
|
10197
10493
|
"aria-pressed": isOpen,
|
|
10198
10494
|
"aria-label": label,
|
|
10199
|
-
children: /* @__PURE__ */ jsx(
|
|
10495
|
+
children: /* @__PURE__ */ jsx(Icon, { className: stackedWindow ? "size-4" : "size-3.5" })
|
|
10200
10496
|
}
|
|
10201
10497
|
) }),
|
|
10202
10498
|
/* @__PURE__ */ jsx(TooltipContent, { side: "bottom", children: label })
|
|
@@ -10640,7 +10936,7 @@ function MobileBrowseSheet({
|
|
|
10640
10936
|
) });
|
|
10641
10937
|
}
|
|
10642
10938
|
|
|
10643
|
-
// src/
|
|
10939
|
+
// ../chat/src/ui/chat/chat-overview/utils/agent-status.ts
|
|
10644
10940
|
function getChatOverviewAgentStatus(status) {
|
|
10645
10941
|
if (status === "submitted" || status === "streaming") return "working";
|
|
10646
10942
|
return void 0;
|
|
@@ -10854,4 +11150,4 @@ function ChatHeaderActions({
|
|
|
10854
11150
|
return /* @__PURE__ */ jsx("div", { className: "fr-header-actions", children: /* @__PURE__ */ jsx(SessionSidePanelToggle, {}) });
|
|
10855
11151
|
}
|
|
10856
11152
|
|
|
10857
|
-
export { AGENT_ROUTINES_TAB_ID, AGENT_WORK_TAB_ID, CHART_TAB_PREFIX, COMPUTER_TAB_PREFIX, ChatHeader, ChatHeaderActions, ChatOverviewContent, DEFAULT_CHAT_SIDE_PANEL_SIZE, MAX_CHAT_SIDE_PANEL_SESSIONS, OutputsSection, PENDING_CHART_TAB_PREFIX, SOURCES_TAB_ID, SourceRow, TEMPLATE_TAB_ID, chatSidePanelSessionKey, getChatOverviewAgentStatus, motion, useChatOverviewVisible, useChatSidePanelStore, useConversationArtifacts, useHasTemplatePreviewHost, useRightPane, useTemplatePreviewStore };
|
|
11153
|
+
export { AGENT_ROUTINES_TAB_ID, AGENT_WORK_TAB_ID, CHART_TAB_PREFIX, COMPUTER_TAB_PREFIX, ChainLink1Icon, Chart1Icon, ChatHeader, ChatHeaderActions, ChatOverviewContent, DEFAULT_CHAT_SIDE_PANEL_SIZE, MAX_CHAT_SIDE_PANEL_SESSIONS, OutputsSection, PENDING_CHART_TAB_PREFIX, SOURCES_TAB_ID, SourceRow, TEMPLATE_TAB_ID, TableIcon, chatSidePanelSessionKey, getChatOverviewAgentStatus, motion, useChatOverviewVisible, useChatSidePanelStore, useConversationArtifacts, useHasTemplatePreviewHost, useRightPane, useTemplatePreviewStore };
|