@flamingo-stack/openframe-frontend-core 0.0.817 → 0.0.818
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/{chunk-7KBHLP4E.cjs → chunk-4XASD2TL.cjs} +16 -16
- package/dist/{chunk-EX7M3VQC.cjs → chunk-5AIOYEXW.cjs} +47 -47
- package/dist/{chunk-UFBVOBYR.cjs → chunk-5VRSUEC5.cjs} +10 -10
- package/dist/{chunk-BL2J5RJK.cjs → chunk-6QT5K5I5.cjs} +6 -6
- package/dist/{chunk-ZP4JMX7G.cjs → chunk-AE22KOW3.cjs} +53 -53
- package/dist/{chunk-F2LVBRHC.cjs → chunk-BD42NMCT.cjs} +4 -4
- package/dist/{chunk-C2OUXL3Q.cjs → chunk-DGAX5WG2.cjs} +2 -2
- package/dist/{chunk-MAHJY2PO.cjs → chunk-DL4HWYIB.cjs} +3 -3
- package/dist/{chunk-24M2JYM5.cjs → chunk-IQCHV7Z2.cjs} +238 -282
- package/dist/{chunk-4ROR52OW.cjs → chunk-JTBJB4JF.cjs} +9 -9
- package/dist/{chunk-JMOCM2SW.cjs → chunk-NEXMK6OP.cjs} +4 -4
- package/dist/{chunk-6F4YGHGM.cjs → chunk-NWIEZUM7.cjs} +19 -19
- package/dist/{chunk-5TSYOIIZ.cjs → chunk-U2THWP25.cjs} +32 -32
- package/dist/{chunk-RDHF3F5R.cjs → chunk-VGZXB3SY.cjs} +3 -3
- package/dist/{chunk-TKEYWSDZ.cjs → chunk-VRXDTRIY.cjs} +39 -39
- package/dist/{chunk-P7JQGOX4.cjs → chunk-YHPUD4PM.cjs} +11 -11
- package/dist/{chunk-IOFIHVVW.cjs → chunk-YMPPE322.cjs} +107 -107
- package/dist/{chunk-DSBRWP5M.cjs → chunk-ZWAVMZIF.cjs} +7 -7
- package/dist/{cloud-tenants-NMAXIJLL.cjs → cloud-tenants-V6EV4OGK.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/chat/embeddable-chat.d.ts +0 -8
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +10 -67
- package/dist/components/chat/entity-cards/dispatch.d.ts +3 -10
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +4 -23
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/types/entities/data-room-doc.d.ts +0 -12
- package/dist/components/chat/types/entities/data-room-doc.d.ts.map +1 -1
- package/dist/components/chat/utils/source-row-cta.d.ts +9 -48
- package/dist/components/chat/utils/source-row-cta.d.ts.map +1 -1
- package/dist/components/chat/utils/source-row-cta.js +7 -32
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/help-center-pages/index.cjs +61 -61
- package/dist/components/index.cjs +37 -37
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +13 -13
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/index.cjs +4 -4
- package/dist/contexts/chat-runtime-context.d.ts +3 -14
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/{devices-QBKWVHE6.cjs → devices-6KZAJAAS.cjs} +5 -5
- package/dist/{embeddable-chat-WNPCPMDL.cjs → embeddable-chat-5IHA5SUZ.cjs} +69 -126
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-FSAYWM25.cjs → knowledge-I7FDQQYJ.cjs} +5 -5
- package/dist/{logs-OZX4SYHG.cjs → logs-Q7PAVJUG.cjs} +12 -12
- package/dist/{policies-LPCUCTLX.cjs → policies-C3DW5CHS.cjs} +8 -8
- package/dist/{scripts-ZNFZSONW.cjs → scripts-BET663HD.cjs} +9 -9
- package/dist/{software-update-BRYOVQVY.cjs → software-update-W7ZQXEPK.cjs} +7 -7
- package/dist/utils/source-grouping.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +10 -74
- package/src/components/chat/entity-cards/data-room-doc-card.tsx +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +6 -31
- package/src/components/chat/types/entities/data-room-doc.ts +0 -12
- package/src/components/chat/utils/source-row-cta.ts +21 -102
- package/src/contexts/chat-runtime-context.tsx +3 -11
- package/src/utils/source-grouping.ts +2 -2
|
@@ -57,7 +57,7 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkIQCHV7Z2cjs = require('./chunk-IQCHV7Z2.cjs');
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
var _chunkOBQ5WUNGcjs = require('./chunk-OBQ5WUNG.cjs');
|
|
@@ -2002,7 +2002,7 @@ function useChatDialogManager({
|
|
|
2002
2002
|
setArchivedLoading(true);
|
|
2003
2003
|
}
|
|
2004
2004
|
try {
|
|
2005
|
-
const result = await fetchArchivedDialogs({ cursor, limit:
|
|
2005
|
+
const result = await fetchArchivedDialogs({ cursor, limit: _chunkIQCHV7Z2cjs.CHAT_HISTORY_PAGE_SIZE });
|
|
2006
2006
|
if (!isCurrent()) return;
|
|
2007
2007
|
setArchivedCursor(result.nextCursor);
|
|
2008
2008
|
setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
|
|
@@ -2129,7 +2129,7 @@ function splitCitedSources(sources, content) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
|
|
2131
2131
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2132
|
-
return { cited:
|
|
2132
|
+
return { cited: _chunkIQCHV7Z2cjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkIQCHV7Z2cjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2133
2133
|
}
|
|
2134
2134
|
|
|
2135
2135
|
// src/components/chat/utils/host-message.ts
|
|
@@ -2180,7 +2180,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2180
2180
|
// src/components/chat/embeddable-chat.tsx
|
|
2181
2181
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2182
2182
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2183
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2183
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkIQCHV7Z2cjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2184
2184
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2185
2185
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2186
2186
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2253,7 +2253,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2253
2253
|
if (!input) return;
|
|
2254
2254
|
switch (actionId) {
|
|
2255
2255
|
case "browse":
|
|
2256
|
-
input.submit(
|
|
2256
|
+
input.submit(_chunkIQCHV7Z2cjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2257
2257
|
return;
|
|
2258
2258
|
case "search":
|
|
2259
2259
|
input.setValue(`/${cmdId} `);
|
|
@@ -2274,7 +2274,7 @@ var ONE_TEXT_LINE = "\xA0";
|
|
|
2274
2274
|
var SOURCE_CHIP_SKELETON_COUNT = 1;
|
|
2275
2275
|
function SourceChipSkeleton(props) {
|
|
2276
2276
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "aria-hidden": true, className: "pointer-events-none inline-flex shrink-0 items-center", ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: [
|
|
2277
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
2277
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkIQCHV7Z2cjs.chatChipClass.call(void 0, { tone: "secondary" }), children: [
|
|
2278
2278
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "inline-block h-3.5 w-3.5 rounded-sm") }),
|
|
2279
2279
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "w-28 rounded-sm"), children: ONE_TEXT_LINE })
|
|
2280
2280
|
] }),
|
|
@@ -2282,10 +2282,10 @@ function SourceChipSkeleton(props) {
|
|
|
2282
2282
|
] });
|
|
2283
2283
|
}
|
|
2284
2284
|
function SourceChip(props) {
|
|
2285
|
-
const { src,
|
|
2285
|
+
const { src, onDiscuss } = props;
|
|
2286
2286
|
const marks = _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props);
|
|
2287
2287
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2288
|
-
const cta =
|
|
2288
|
+
const cta = _chunkIQCHV7Z2cjs.resolveSourceRowCTA.call(void 0,
|
|
2289
2289
|
{
|
|
2290
2290
|
sourceRepo: src.sourceRepo,
|
|
2291
2291
|
documentType: src.documentType,
|
|
@@ -2295,14 +2295,14 @@ function SourceChip(props) {
|
|
|
2295
2295
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2296
2296
|
path: src.path
|
|
2297
2297
|
},
|
|
2298
|
-
|
|
2298
|
+
_chunkIQCHV7Z2cjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2299
2299
|
);
|
|
2300
2300
|
const Icon = cta.icon;
|
|
2301
2301
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2302
|
-
const chipClass =
|
|
2302
|
+
const chipClass = _chunkIQCHV7Z2cjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2303
2303
|
if (src.items && src.items.length > 0) {
|
|
2304
2304
|
const dropdownItems = src.items.map((item) => {
|
|
2305
|
-
const itemCta =
|
|
2305
|
+
const itemCta = _chunkIQCHV7Z2cjs.resolveSourceRowCTA.call(void 0,
|
|
2306
2306
|
{
|
|
2307
2307
|
sourceRepo: src.sourceRepo,
|
|
2308
2308
|
documentType: item.documentType,
|
|
@@ -2312,7 +2312,7 @@ function SourceChip(props) {
|
|
|
2312
2312
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2313
2313
|
path: item.path
|
|
2314
2314
|
},
|
|
2315
|
-
|
|
2315
|
+
_chunkIQCHV7Z2cjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2316
2316
|
);
|
|
2317
2317
|
const ItemIcon = itemCta.icon;
|
|
2318
2318
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2332,13 +2332,13 @@ function SourceChip(props) {
|
|
|
2332
2332
|
};
|
|
2333
2333
|
});
|
|
2334
2334
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2335
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2335
|
+
const groupIndices = itemIndices.length > 0 ? _chunkIQCHV7Z2cjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2336
2336
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", ...marks, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2337
2337
|
_chunkEHANO6UEcjs.HoverDropdown,
|
|
2338
2338
|
{
|
|
2339
2339
|
items: dropdownItems,
|
|
2340
2340
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2341
|
-
|
|
2341
|
+
_chunkIQCHV7Z2cjs.NavLinkAnchorViaRuntime,
|
|
2342
2342
|
{
|
|
2343
2343
|
href,
|
|
2344
2344
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2371,13 +2371,13 @@ function SourceChip(props) {
|
|
|
2371
2371
|
] });
|
|
2372
2372
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", ...marks, children: [
|
|
2373
2373
|
clickable,
|
|
2374
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2374
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2375
2375
|
] });
|
|
2376
2376
|
if (cta.href) {
|
|
2377
2377
|
const isEntity = !!src.externalUrl;
|
|
2378
2378
|
return wrapChip(
|
|
2379
2379
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2380
|
-
|
|
2380
|
+
_chunkIQCHV7Z2cjs.NavLinkAnchorViaRuntime,
|
|
2381
2381
|
{
|
|
2382
2382
|
href: cta.href,
|
|
2383
2383
|
path: isEntity ? null : src.path,
|
|
@@ -2396,8 +2396,6 @@ function SourceChip(props) {
|
|
|
2396
2396
|
function SourceChips({
|
|
2397
2397
|
cited,
|
|
2398
2398
|
uncited,
|
|
2399
|
-
baseRoute,
|
|
2400
|
-
chipBasePlatform,
|
|
2401
2399
|
onDiscuss,
|
|
2402
2400
|
loading,
|
|
2403
2401
|
skeletonCount
|
|
@@ -2405,7 +2403,7 @@ function SourceChips({
|
|
|
2405
2403
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
2406
2404
|
if (loading) {
|
|
2407
2405
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className: "mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2", children: [
|
|
2408
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2406
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.TextHold, { children: "Sources" }) }),
|
|
2409
2407
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-nowrap gap-1.5 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: skeletonCount, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChipSkeleton, { "data-loading-item": true }) }) })
|
|
2410
2408
|
] });
|
|
2411
2409
|
}
|
|
@@ -2414,17 +2412,7 @@ function SourceChips({
|
|
|
2414
2412
|
if (fallback.length === 0) return null;
|
|
2415
2413
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2", children: [
|
|
2416
2414
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: "Top retrieved sources" }),
|
|
2417
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-1.5", children: fallback.map((src) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2418
|
-
SourceChip,
|
|
2419
|
-
{
|
|
2420
|
-
"data-loading-item": true,
|
|
2421
|
-
src,
|
|
2422
|
-
baseRoute,
|
|
2423
|
-
chipBasePlatform,
|
|
2424
|
-
onDiscuss
|
|
2425
|
-
},
|
|
2426
|
-
src.index
|
|
2427
|
-
)) })
|
|
2415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-1.5", children: fallback.map((src) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChip, { "data-loading-item": true, src, onDiscuss }, src.index)) })
|
|
2428
2416
|
] });
|
|
2429
2417
|
}
|
|
2430
2418
|
const hiddenCount = uncited.length;
|
|
@@ -2432,28 +2420,8 @@ function SourceChips({
|
|
|
2432
2420
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2", children: [
|
|
2433
2421
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: "Sources" }),
|
|
2434
2422
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex flex-wrap gap-1.5 ${expanded ? "max-h-[200px] overflow-y-auto overscroll-contain" : ""}`, children: [
|
|
2435
|
-
cited.map((src) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2436
|
-
|
|
2437
|
-
{
|
|
2438
|
-
"data-loading-item": true,
|
|
2439
|
-
src,
|
|
2440
|
-
baseRoute,
|
|
2441
|
-
chipBasePlatform,
|
|
2442
|
-
onDiscuss
|
|
2443
|
-
},
|
|
2444
|
-
src.index
|
|
2445
|
-
)),
|
|
2446
|
-
expanded && uncited.map((src) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2447
|
-
SourceChip,
|
|
2448
|
-
{
|
|
2449
|
-
"data-loading-item": true,
|
|
2450
|
-
src,
|
|
2451
|
-
baseRoute,
|
|
2452
|
-
chipBasePlatform,
|
|
2453
|
-
onDiscuss
|
|
2454
|
-
},
|
|
2455
|
-
src.index
|
|
2456
|
-
)),
|
|
2423
|
+
cited.map((src) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChip, { "data-loading-item": true, src, onDiscuss }, src.index)),
|
|
2424
|
+
expanded && uncited.map((src) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChip, { "data-loading-item": true, src, onDiscuss }, src.index)),
|
|
2457
2425
|
hasOverflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2458
2426
|
_chunkFCZAUK4Dcjs.Button,
|
|
2459
2427
|
{
|
|
@@ -2477,8 +2445,6 @@ var EmbeddableChat = _react2.default.forwardRef(
|
|
|
2477
2445
|
);
|
|
2478
2446
|
EmbeddableChat.displayName = "EmbeddableChat";
|
|
2479
2447
|
function EmbeddableChatInner({
|
|
2480
|
-
baseRoute,
|
|
2481
|
-
chipBasePlatform,
|
|
2482
2448
|
sourceSkeletonCount = SOURCE_CHIP_SKELETON_COUNT,
|
|
2483
2449
|
enabledRagTableIds = null,
|
|
2484
2450
|
emptyStateGreeting = null,
|
|
@@ -2530,7 +2496,7 @@ function EmbeddableChatInner({
|
|
|
2530
2496
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2531
2497
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2532
2498
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2533
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2499
|
+
const { attachmentsEnabled, user: identityUser } = _chunkIQCHV7Z2cjs.useChatIdentity.call(void 0, );
|
|
2534
2500
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2535
2501
|
_react.useEffect.call(void 0, () => {
|
|
2536
2502
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2584,9 +2550,9 @@ function EmbeddableChatInner({
|
|
|
2584
2550
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2585
2551
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2586
2552
|
() => ({
|
|
2587
|
-
fetchCommands: (prefix, signal) =>
|
|
2553
|
+
fetchCommands: (prefix, signal) => _chunkIQCHV7Z2cjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2588
2554
|
resolveSourceIcon: (sourceId) => {
|
|
2589
|
-
const iconName =
|
|
2555
|
+
const iconName = _chunkIQCHV7Z2cjs.getSourceIconName.call(void 0, sourceId);
|
|
2590
2556
|
if (!iconName) return void 0;
|
|
2591
2557
|
return { Icon: _chunkQOAA7ZHBcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2592
2558
|
},
|
|
@@ -2615,7 +2581,7 @@ function EmbeddableChatInner({
|
|
|
2615
2581
|
},
|
|
2616
2582
|
[controlledActiveMode, onActiveModeChange]
|
|
2617
2583
|
);
|
|
2618
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2584
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunkIQCHV7Z2cjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2619
2585
|
enabled: activeMode === "guide"
|
|
2620
2586
|
});
|
|
2621
2587
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2626,7 +2592,7 @@ function EmbeddableChatInner({
|
|
|
2626
2592
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2627
2593
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2628
2594
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2629
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2595
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkIQCHV7Z2cjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2630
2596
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2631
2597
|
});
|
|
2632
2598
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2673,7 +2639,7 @@ function EmbeddableChatInner({
|
|
|
2673
2639
|
hasMoreMessages,
|
|
2674
2640
|
loadMoreMessages,
|
|
2675
2641
|
dialogCapabilities
|
|
2676
|
-
} =
|
|
2642
|
+
} = _chunkIQCHV7Z2cjs.useUnifiedChat.call(void 0, {
|
|
2677
2643
|
modes: effectiveModes,
|
|
2678
2644
|
activeMode,
|
|
2679
2645
|
mingoStateOverride: mingoState,
|
|
@@ -2720,8 +2686,8 @@ function EmbeddableChatInner({
|
|
|
2720
2686
|
addFiles: addAttachmentFiles,
|
|
2721
2687
|
removeAttachment,
|
|
2722
2688
|
clear: clearAttachments
|
|
2723
|
-
} =
|
|
2724
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2689
|
+
} = _chunkIQCHV7Z2cjs.useChatAttachments.call(void 0, );
|
|
2690
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkIQCHV7Z2cjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2725
2691
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2726
2692
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2727
2693
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2822,7 +2788,6 @@ function EmbeddableChatInner({
|
|
|
2822
2788
|
setMentionQuery(query);
|
|
2823
2789
|
setContextPickerOpen(query !== null);
|
|
2824
2790
|
}, []);
|
|
2825
|
-
const resolvedBaseRoute = baseRoute || (source === "flamingo" ? "/knowledge-base" : "/data-room");
|
|
2826
2791
|
const handleClose = _react.useCallback.call(void 0, () => setIsOpen(false), [setIsOpen]);
|
|
2827
2792
|
const closeControl = closable ? handleClose : void 0;
|
|
2828
2793
|
const handleNavigationClose = _react.useCallback.call(void 0, () => {
|
|
@@ -2841,14 +2806,12 @@ function EmbeddableChatInner({
|
|
|
2841
2806
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2842
2807
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2843
2808
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2844
|
-
(reference) =>
|
|
2809
|
+
(reference) => _chunkIQCHV7Z2cjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2845
2810
|
onDiscuss: askAbout,
|
|
2846
2811
|
onDisplay: displayRef,
|
|
2847
|
-
baseRoute: resolvedBaseRoute,
|
|
2848
|
-
chipBasePlatform,
|
|
2849
2812
|
extras
|
|
2850
2813
|
}),
|
|
2851
|
-
[askAbout, displayRef,
|
|
2814
|
+
[askAbout, displayRef, extras]
|
|
2852
2815
|
);
|
|
2853
2816
|
const mingoAssistantIcon = _react.useMemo.call(void 0,
|
|
2854
2817
|
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
|
|
@@ -2863,7 +2826,7 @@ function EmbeddableChatInner({
|
|
|
2863
2826
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2864
2827
|
return mapped;
|
|
2865
2828
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2866
|
-
const whatToAsk =
|
|
2829
|
+
const whatToAsk = _chunkIQCHV7Z2cjs.useWhatToAsk.call(void 0, {
|
|
2867
2830
|
dialogId: activeDialogId,
|
|
2868
2831
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2869
2832
|
user: {
|
|
@@ -2882,7 +2845,7 @@ function EmbeddableChatInner({
|
|
|
2882
2845
|
noteWhatToAskSend();
|
|
2883
2846
|
let augmentedText = text;
|
|
2884
2847
|
if (readyAttachments.length > 0) {
|
|
2885
|
-
const markdown = readyAttachments.map((att) =>
|
|
2848
|
+
const markdown = readyAttachments.map((att) => _chunkIQCHV7Z2cjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2886
2849
|
augmentedText = `${text}${markdown}`;
|
|
2887
2850
|
}
|
|
2888
2851
|
void sendMessage(augmentedText, {
|
|
@@ -2921,7 +2884,7 @@ function EmbeddableChatInner({
|
|
|
2921
2884
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2922
2885
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2923
2886
|
// built-in agents.
|
|
2924
|
-
accent: _nullishCoalesce(
|
|
2887
|
+
accent: _nullishCoalesce(_chunkIQCHV7Z2cjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkIQCHV7Z2cjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2925
2888
|
}));
|
|
2926
2889
|
}
|
|
2927
2890
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2969,7 +2932,7 @@ function EmbeddableChatInner({
|
|
|
2969
2932
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
2970
2933
|
});
|
|
2971
2934
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
2972
|
-
|
|
2935
|
+
_chunkIQCHV7Z2cjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
2973
2936
|
_react.useEffect.call(void 0, () => {
|
|
2974
2937
|
const handler = (e) => {
|
|
2975
2938
|
const detail = e.detail;
|
|
@@ -2977,8 +2940,8 @@ function EmbeddableChatInner({
|
|
|
2977
2940
|
setIsOpen(true);
|
|
2978
2941
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
2979
2942
|
};
|
|
2980
|
-
window.addEventListener(
|
|
2981
|
-
return () => window.removeEventListener(
|
|
2943
|
+
window.addEventListener(_chunkIQCHV7Z2cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2944
|
+
return () => window.removeEventListener(_chunkIQCHV7Z2cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2982
2945
|
}, [source, askAbout, setIsOpen]);
|
|
2983
2946
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
2984
2947
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3012,10 +2975,10 @@ function EmbeddableChatInner({
|
|
|
3012
2975
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3013
2976
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3014
2977
|
};
|
|
3015
|
-
window.addEventListener(
|
|
3016
|
-
return () => window.removeEventListener(
|
|
2978
|
+
window.addEventListener(_chunkIQCHV7Z2cjs.ASK_AI_OPEN_EVENT, handler);
|
|
2979
|
+
return () => window.removeEventListener(_chunkIQCHV7Z2cjs.ASK_AI_OPEN_EVENT, handler);
|
|
3017
2980
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3018
|
-
_react.useEffect.call(void 0, () =>
|
|
2981
|
+
_react.useEffect.call(void 0, () => _chunkIQCHV7Z2cjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3019
2982
|
const hasMessages = messages.length > 0;
|
|
3020
2983
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3021
2984
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3053,37 +3016,17 @@ function EmbeddableChatInner({
|
|
|
3053
3016
|
if (message.role !== "assistant") return null;
|
|
3054
3017
|
if (chatLoading && index === messages.length - 1) {
|
|
3055
3018
|
if (sourceSkeletonCount <= 0) return null;
|
|
3056
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3057
|
-
SourceChips,
|
|
3058
|
-
{
|
|
3059
|
-
loading: true,
|
|
3060
|
-
skeletonCount: sourceSkeletonCount,
|
|
3061
|
-
cited: [],
|
|
3062
|
-
uncited: [],
|
|
3063
|
-
baseRoute: resolvedBaseRoute,
|
|
3064
|
-
chipBasePlatform
|
|
3065
|
-
}
|
|
3066
|
-
) });
|
|
3019
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChips, { loading: true, skeletonCount: sourceSkeletonCount, cited: [], uncited: [] }) });
|
|
3067
3020
|
}
|
|
3068
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3021
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunkIQCHV7Z2cjs.flattenAssistantContent.call(void 0, message.content));
|
|
3069
3022
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3070
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3071
|
-
SourceChips,
|
|
3072
|
-
{
|
|
3073
|
-
cited,
|
|
3074
|
-
uncited,
|
|
3075
|
-
baseRoute: resolvedBaseRoute,
|
|
3076
|
-
chipBasePlatform,
|
|
3077
|
-
onDiscuss: askAbout,
|
|
3078
|
-
skeletonCount: sourceSkeletonCount
|
|
3079
|
-
}
|
|
3080
|
-
) });
|
|
3023
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChips, { cited, uncited, onDiscuss: askAbout, skeletonCount: sourceSkeletonCount }) });
|
|
3081
3024
|
},
|
|
3082
|
-
[chatLoading, messages.length,
|
|
3025
|
+
[chatLoading, messages.length, askAbout, sourceSkeletonCount]
|
|
3083
3026
|
);
|
|
3084
3027
|
const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
|
|
3085
3028
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3086
|
-
const splitMinWidth = (isV2 ?
|
|
3029
|
+
const splitMinWidth = (isV2 ? _chunkIQCHV7Z2cjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkIQCHV7Z2cjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3087
3030
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3088
3031
|
_react.useEffect.call(void 0, () => {
|
|
3089
3032
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3102,7 +3045,7 @@ function EmbeddableChatInner({
|
|
|
3102
3045
|
[splitMinWidth]
|
|
3103
3046
|
);
|
|
3104
3047
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3105
|
-
const railStorageHydrated =
|
|
3048
|
+
const railStorageHydrated = _chunkIQCHV7Z2cjs.useIsHydrated.call(void 0, );
|
|
3106
3049
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3107
3050
|
if (railStorageHydrated && !railStorageRead) {
|
|
3108
3051
|
setRailStorageRead(true);
|
|
@@ -3156,7 +3099,7 @@ function EmbeddableChatInner({
|
|
|
3156
3099
|
resetToNewChat();
|
|
3157
3100
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3158
3101
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3159
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 ||
|
|
3102
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunkIQCHV7Z2cjs.awaitsDecision.call(void 0, hostMessages);
|
|
3160
3103
|
const showWhatToAsk = (content) => {
|
|
3161
3104
|
whatToAsk.clearDraft();
|
|
3162
3105
|
resetToNewChat();
|
|
@@ -3252,7 +3195,7 @@ function EmbeddableChatInner({
|
|
|
3252
3195
|
}),
|
|
3253
3196
|
[resetToNewChat, contextMaxItems]
|
|
3254
3197
|
);
|
|
3255
|
-
const splitHeaderMenuItems =
|
|
3198
|
+
const splitHeaderMenuItems = _chunkIQCHV7Z2cjs.chatDialogMenuItems.call(void 0, {
|
|
3256
3199
|
onCopyLink: headerOnCopyLink,
|
|
3257
3200
|
onRename: headerOnRename,
|
|
3258
3201
|
onCompact: headerOnCompact,
|
|
@@ -3332,7 +3275,7 @@ function EmbeddableChatInner({
|
|
|
3332
3275
|
onRetry: reloadDialogs
|
|
3333
3276
|
};
|
|
3334
3277
|
const v2Header = isV2 && !stackedListView ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "col-start-2 row-start-1 min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3335
|
-
|
|
3278
|
+
_chunkIQCHV7Z2cjs.MingoChatHeader,
|
|
3336
3279
|
{
|
|
3337
3280
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3338
3281
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3352,7 +3295,7 @@ function EmbeddableChatInner({
|
|
|
3352
3295
|
const body = (
|
|
3353
3296
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3354
3297
|
// only the thread `ChatMessageList` provides it to.
|
|
3355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3298
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
|
|
3356
3299
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3357
3300
|
"div",
|
|
3358
3301
|
{
|
|
@@ -3360,7 +3303,7 @@ function EmbeddableChatInner({
|
|
|
3360
3303
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3361
3304
|
className: `flex h-full flex-col overflow-hidden transition-colors duration-200 ${!isV2 && (archiveOpen && !splitActive || stackedListView) ? "bg-ods-card" : "bg-ods-bg"} ${previewMode ? "pointer-events-none select-none" : ""}`,
|
|
3362
3305
|
children: archiveOpen && !splitActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3363
|
-
|
|
3306
|
+
_chunkIQCHV7Z2cjs.ChatArchivePage,
|
|
3364
3307
|
{
|
|
3365
3308
|
dialogs: archivedDialogs,
|
|
3366
3309
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3390,7 +3333,7 @@ function EmbeddableChatInner({
|
|
|
3390
3333
|
narrow: true,
|
|
3391
3334
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3392
3335
|
innerClassName: "flex min-h-0 flex-col",
|
|
3393
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3336
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3394
3337
|
}
|
|
3395
3338
|
),
|
|
3396
3339
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3429,7 +3372,7 @@ function EmbeddableChatInner({
|
|
|
3429
3372
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3430
3373
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3431
3374
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3432
|
-
|
|
3375
|
+
_chunkIQCHV7Z2cjs.ChatHeaderSearchField,
|
|
3433
3376
|
{
|
|
3434
3377
|
initialValue: mingoCaps.searchQuery,
|
|
3435
3378
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3516,10 +3459,10 @@ function EmbeddableChatInner({
|
|
|
3516
3459
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3517
3460
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3518
3461
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3519
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3462
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3520
3463
|
),
|
|
3521
3464
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3522
|
-
|
|
3465
|
+
_chunkIQCHV7Z2cjs.GuideModeBanner,
|
|
3523
3466
|
{
|
|
3524
3467
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3525
3468
|
}
|
|
@@ -3529,7 +3472,7 @@ function EmbeddableChatInner({
|
|
|
3529
3472
|
// Archive list inside the rail (header lives in the split
|
|
3530
3473
|
// header's left cell above). Right chat block stays put.
|
|
3531
3474
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3532
|
-
|
|
3475
|
+
_chunkIQCHV7Z2cjs.ChatArchivePage,
|
|
3533
3476
|
{
|
|
3534
3477
|
embedded: true,
|
|
3535
3478
|
dialogs: archivedDialogs,
|
|
@@ -3543,7 +3486,7 @@ function EmbeddableChatInner({
|
|
|
3543
3486
|
}
|
|
3544
3487
|
)
|
|
3545
3488
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3546
|
-
|
|
3489
|
+
_chunkIQCHV7Z2cjs.MingoHistoryRail,
|
|
3547
3490
|
{
|
|
3548
3491
|
dialogs,
|
|
3549
3492
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3571,7 +3514,7 @@ function EmbeddableChatInner({
|
|
|
3571
3514
|
// v2: the archive opens in the chat column under the chat's
|
|
3572
3515
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3573
3516
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3574
|
-
|
|
3517
|
+
_chunkIQCHV7Z2cjs.MingoArchiveList,
|
|
3575
3518
|
{
|
|
3576
3519
|
dialogs: archivedDialogs,
|
|
3577
3520
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3584,7 +3527,7 @@ function EmbeddableChatInner({
|
|
|
3584
3527
|
}
|
|
3585
3528
|
)
|
|
3586
3529
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3587
|
-
|
|
3530
|
+
_chunkIQCHV7Z2cjs.MingoChatRail,
|
|
3588
3531
|
{
|
|
3589
3532
|
...mingoRailProps,
|
|
3590
3533
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3603,7 +3546,7 @@ function EmbeddableChatInner({
|
|
|
3603
3546
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3604
3547
|
// the compose view.
|
|
3605
3548
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3606
|
-
|
|
3549
|
+
_chunkIQCHV7Z2cjs.MingoHistoryRail,
|
|
3607
3550
|
{
|
|
3608
3551
|
className: "duration-200 animate-in fade-in-0",
|
|
3609
3552
|
dialogs,
|
|
@@ -3646,14 +3589,14 @@ function EmbeddableChatInner({
|
|
|
3646
3589
|
{
|
|
3647
3590
|
className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0",
|
|
3648
3591
|
children: hasConversation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3649
|
-
|
|
3592
|
+
_chunkIQCHV7Z2cjs.ChatMessageList,
|
|
3650
3593
|
{
|
|
3651
3594
|
messages,
|
|
3652
3595
|
isLoading: messagesInitialLoading,
|
|
3653
3596
|
fill: previewMode,
|
|
3654
3597
|
appearance,
|
|
3655
3598
|
isTyping: chatLoading,
|
|
3656
|
-
typingMessage: streamingProgress ?
|
|
3599
|
+
typingMessage: streamingProgress ? _chunkIQCHV7Z2cjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
|
|
3657
3600
|
pendingApprovals,
|
|
3658
3601
|
autoScroll: !previewMode,
|
|
3659
3602
|
pinBottom: previewMode,
|
|
@@ -3666,7 +3609,7 @@ function EmbeddableChatInner({
|
|
|
3666
3609
|
renderMention,
|
|
3667
3610
|
renderAfterMessage: renderMessageSources,
|
|
3668
3611
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3669
|
-
NavLinkAnchor:
|
|
3612
|
+
NavLinkAnchor: _chunkIQCHV7Z2cjs.NavLinkAnchorViaRuntime,
|
|
3670
3613
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3671
3614
|
contentClassName: "max-w-none pb-0",
|
|
3672
3615
|
fullWidth: true,
|
|
@@ -3680,7 +3623,7 @@ function EmbeddableChatInner({
|
|
|
3680
3623
|
quick-action chips. Guide mode keeps the slash-command
|
|
3681
3624
|
onboarding list below. */
|
|
3682
3625
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3683
|
-
|
|
3626
|
+
_chunkIQCHV7Z2cjs.MingoWelcome,
|
|
3684
3627
|
{
|
|
3685
3628
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3686
3629
|
historyPageSize,
|
|
@@ -3696,7 +3639,7 @@ function EmbeddableChatInner({
|
|
|
3696
3639
|
+ slash-command onboarding list share one scroll region,
|
|
3697
3640
|
with a pinned quick-action chip row above the composer. */
|
|
3698
3641
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3699
|
-
|
|
3642
|
+
_chunkIQCHV7Z2cjs.GuideWelcome,
|
|
3700
3643
|
{
|
|
3701
3644
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3702
3645
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3753,7 +3696,7 @@ function EmbeddableChatInner({
|
|
|
3753
3696
|
}
|
|
3754
3697
|
),
|
|
3755
3698
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3756
|
-
|
|
3699
|
+
_chunkIQCHV7Z2cjs.ChatAttachmentChipStrip,
|
|
3757
3700
|
{
|
|
3758
3701
|
attachments: stagedAttachments,
|
|
3759
3702
|
onRemove: removeAttachment,
|
|
@@ -3761,7 +3704,7 @@ function EmbeddableChatInner({
|
|
|
3761
3704
|
}
|
|
3762
3705
|
),
|
|
3763
3706
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3764
|
-
|
|
3707
|
+
_chunkIQCHV7Z2cjs.ChatComposer,
|
|
3765
3708
|
{
|
|
3766
3709
|
archived: isViewingArchived,
|
|
3767
3710
|
lock: composerLock,
|
|
@@ -3813,7 +3756,7 @@ function EmbeddableChatInner({
|
|
|
3813
3756
|
),
|
|
3814
3757
|
galleryModal,
|
|
3815
3758
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3816
|
-
|
|
3759
|
+
_chunkIQCHV7Z2cjs.ChatDialogModals,
|
|
3817
3760
|
{
|
|
3818
3761
|
renameTarget,
|
|
3819
3762
|
setRenameTarget,
|
|
@@ -3829,13 +3772,13 @@ function EmbeddableChatInner({
|
|
|
3829
3772
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3830
3773
|
] }) }) })
|
|
3831
3774
|
);
|
|
3832
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3775
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIQCHV7Z2cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3833
3776
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3834
3777
|
sourceLabel,
|
|
3835
3778
|
" AI Assistant"
|
|
3836
3779
|
] }) }),
|
|
3837
3780
|
body
|
|
3838
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3781
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3839
3782
|
_chunkEHANO6UEcjs.DrawerContent,
|
|
3840
3783
|
{
|
|
3841
3784
|
side: "right",
|