@flamingo-stack/openframe-frontend-core 0.0.826 → 0.0.828
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/{case-study-card-O4IQCJAX.cjs → case-study-card-QMFGPABF.cjs} +2 -2
- package/dist/chat-protocol/frames.d.ts +2 -0
- package/dist/chat-protocol/frames.d.ts.map +1 -1
- package/dist/chat-protocol/index.cjs +9 -6
- package/dist/chat-protocol/progress.d.ts +2 -1
- package/dist/chat-protocol/progress.d.ts.map +1 -1
- package/dist/chat-protocol/progress.js +6 -6
- package/dist/{chunk-QYJZDEG7.cjs → chunk-3WKQ2GCR.cjs} +4 -4
- package/dist/{chunk-5AQKXEMI.cjs → chunk-4ZH7RPEA.cjs} +178 -178
- package/dist/{chunk-QS6AKUUL.cjs → chunk-6GPMVHJN.cjs} +1 -1
- package/dist/{chunk-PJY3SYCS.cjs → chunk-6SFCI6D4.cjs} +20 -20
- package/dist/{chunk-37OYBX7W.cjs → chunk-6ZLCEIIC.cjs} +32 -32
- package/dist/{chunk-63T2KKDZ.cjs → chunk-7VC5FVWT.cjs} +62 -62
- package/dist/{chunk-74GWFGH2.cjs → chunk-ALRX2VIY.cjs} +11 -11
- package/dist/{chunk-TJG2BJ5J.cjs → chunk-B5H7RKFF.cjs} +4 -4
- package/dist/{chunk-2TQJSB62.cjs → chunk-BGT6JFMP.cjs} +12342 -12354
- package/dist/{chunk-6G4WRMEM.cjs → chunk-DR4P7AEU.cjs} +3 -3
- package/dist/{chunk-DRSFR5AC.cjs → chunk-FMSAN6SR.cjs} +101 -101
- package/dist/{chunk-XDHQC4XH.cjs → chunk-K6X7VP2Y.cjs} +39 -39
- package/dist/{chunk-IWQ2LJGW.cjs → chunk-LKP5R3EQ.cjs} +2 -2
- package/dist/{chunk-GZAPOCKS.cjs → chunk-OKTNRGM5.cjs} +49 -49
- package/dist/{chunk-HQ4FKHOO.cjs → chunk-QMQWXGCH.cjs} +71 -71
- package/dist/{chunk-AJM4YZTW.cjs → chunk-RPKWEBHC.cjs} +3 -3
- package/dist/{chunk-K34TTZAE.cjs → chunk-SVCTAOJR.cjs} +2 -2
- package/dist/{chunk-JDR72QFU.cjs → chunk-UULSSD56.cjs} +5 -5
- package/dist/{chunk-PWAKRRRO.cjs → chunk-UWGPYAB3.cjs} +46 -46
- package/dist/{chunk-MDEOCOIE.cjs → chunk-VAIML6YU.cjs} +17 -17
- package/dist/{chunk-HJAPXKWK.cjs → chunk-XPF74L76.cjs} +2 -2
- package/dist/{chunk-WGMU45NV.cjs → chunk-YKUL6JBI.cjs} +13 -13
- package/dist/{chunk-TYJ73DHW.cjs → chunk-YMLRDVPO.cjs} +8 -8
- package/dist/{chunk-EJNDTSKY.cjs → chunk-ZT7JHN7G.cjs} +74 -74
- package/dist/{cloud-tenants-F67KQ5GC.cjs → cloud-tenants-LKTWIZNS.cjs} +8 -8
- package/dist/components/case-studies/index.cjs +23 -23
- package/dist/components/chat/index.cjs +6 -6
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-stream-reducer.js +2 -15
- package/dist/components/chat/thinking-display.d.ts.map +1 -1
- package/dist/components/chat/thinking-display.js +2 -1
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/help-center-pages/index.cjs +83 -83
- package/dist/components/index.cjs +53 -53
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/product-demo/index.cjs +17 -17
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/index.cjs +8 -8
- package/dist/{devices-SJORCARH.cjs → devices-JWG72ANF.cjs} +9 -9
- package/dist/{embeddable-chat-7Z4CEZJL.cjs → embeddable-chat-5UT6UHEO.cjs} +76 -76
- package/dist/index.cjs +12 -12
- package/dist/{knowledge-QXILUVEM.cjs → knowledge-DQXVSHME.cjs} +9 -9
- package/dist/{logs-E3KQQQD6.cjs → logs-Z33VBTVX.cjs} +15 -15
- package/dist/{policies-IOYQY6TF.cjs → policies-XE4UMH6Z.cjs} +12 -12
- package/dist/{scripts-E5TWWUNP.cjs → scripts-MECQG5GG.cjs} +13 -13
- package/dist/{software-update-QZGYG4TD.cjs → software-update-PCSIA6BP.cjs} +11 -11
- package/package.json +1 -1
- package/src/chat-protocol/frames.ts +3 -0
- package/src/chat-protocol/progress.ts +11 -10
- package/src/components/chat/stream/chat-stream-reducer.ts +4 -18
- package/src/components/chat/thinking-display.tsx +2 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSVCTAOJRcjs = require('./chunk-SVCTAOJR.cjs');
|
|
8
8
|
require('./chunk-24I6RFVU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -59,7 +59,7 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkBGT6JFMPcjs = require('./chunk-BGT6JFMP.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
@@ -1884,14 +1884,14 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
1884
1884
|
require('./chunk-SKI6NKOE.cjs');
|
|
1885
1885
|
|
|
1886
1886
|
|
|
1887
|
-
var
|
|
1887
|
+
var _chunkFMSAN6SRcjs = require('./chunk-FMSAN6SR.cjs');
|
|
1888
1888
|
require('./chunk-5BM7X4GA.cjs');
|
|
1889
1889
|
|
|
1890
1890
|
|
|
1891
1891
|
var _chunkGRHF5SWLcjs = require('./chunk-GRHF5SWL.cjs');
|
|
1892
1892
|
|
|
1893
1893
|
|
|
1894
|
-
var
|
|
1894
|
+
var _chunk6GPMVHJNcjs = require('./chunk-6GPMVHJN.cjs');
|
|
1895
1895
|
require('./chunk-PBHP3FHO.cjs');
|
|
1896
1896
|
require('./chunk-USUVHAQ7.cjs');
|
|
1897
1897
|
require('./chunk-S5C3OZCO.cjs');
|
|
@@ -2009,7 +2009,7 @@ function useChatDialogManager({
|
|
|
2009
2009
|
setArchivedLoading(true);
|
|
2010
2010
|
}
|
|
2011
2011
|
try {
|
|
2012
|
-
const result = await fetchArchivedDialogs({ cursor, limit:
|
|
2012
|
+
const result = await fetchArchivedDialogs({ cursor, limit: _chunkBGT6JFMPcjs.CHAT_HISTORY_PAGE_SIZE });
|
|
2013
2013
|
if (!isCurrent()) return;
|
|
2014
2014
|
setArchivedCursor(result.nextCursor);
|
|
2015
2015
|
setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
|
|
@@ -2128,12 +2128,12 @@ function withoutCode(content) {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
function splitCitedSources(sources, content) {
|
|
2130
2130
|
if (!sources || sources.length === 0) return { cited: [], uncited: [] };
|
|
2131
|
-
const byCards = splitByCards(sources,
|
|
2131
|
+
const byCards = splitByCards(sources, _chunkBGT6JFMPcjs.extractCardReferences.call(void 0, withoutCode(content)));
|
|
2132
2132
|
if (byCards.cited.length > 0) return byCards;
|
|
2133
|
-
const firstMentionAt = new Map(
|
|
2133
|
+
const firstMentionAt = new Map(_chunkBGT6JFMPcjs.citedSourceNumbers.call(void 0, withoutCode(content)).map((index, order) => [index, order]));
|
|
2134
2134
|
const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
|
|
2135
2135
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2136
|
-
return { cited:
|
|
2136
|
+
return { cited: _chunkBGT6JFMPcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkBGT6JFMPcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2137
2137
|
}
|
|
2138
2138
|
function recordsOf(source) {
|
|
2139
2139
|
if (!source.items || source.items.length === 0) return [source];
|
|
@@ -2150,7 +2150,7 @@ function recordsOf(source) {
|
|
|
2150
2150
|
}
|
|
2151
2151
|
function recordKey(record) {
|
|
2152
2152
|
const id = record.id || record.path;
|
|
2153
|
-
return record.documentType && id ? `${
|
|
2153
|
+
return record.documentType && id ? `${_chunkFMSAN6SRcjs.canonicalContentRefType.call(void 0, record.documentType)}:${id}` : null;
|
|
2154
2154
|
}
|
|
2155
2155
|
function splitByCards(sources, cards) {
|
|
2156
2156
|
const records = sources.flatMap(recordsOf);
|
|
@@ -2161,11 +2161,11 @@ function splitByCards(sources, cards) {
|
|
|
2161
2161
|
}
|
|
2162
2162
|
const cited = [];
|
|
2163
2163
|
for (const card of cards) {
|
|
2164
|
-
const record = byKey.get(`${
|
|
2164
|
+
const record = byKey.get(`${_chunkFMSAN6SRcjs.canonicalContentRefType.call(void 0, card.type)}:${card.id}`);
|
|
2165
2165
|
if (record && !cited.includes(record)) cited.push(record);
|
|
2166
2166
|
}
|
|
2167
2167
|
const uncited = records.filter((record) => !cited.includes(record));
|
|
2168
|
-
return { cited:
|
|
2168
|
+
return { cited: _chunkBGT6JFMPcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkBGT6JFMPcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2169
2169
|
}
|
|
2170
2170
|
function groupedRowLabels(items) {
|
|
2171
2171
|
const numbers = new Set(items.flatMap((item) => item.index === void 0 ? [] : [item.index]));
|
|
@@ -2220,7 +2220,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2220
2220
|
// src/components/chat/embeddable-chat.tsx
|
|
2221
2221
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2222
2222
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2223
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2223
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkBGT6JFMPcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2224
2224
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2225
2225
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2226
2226
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2293,7 +2293,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2293
2293
|
if (!input) return;
|
|
2294
2294
|
switch (actionId) {
|
|
2295
2295
|
case "browse":
|
|
2296
|
-
input.submit(
|
|
2296
|
+
input.submit(_chunkBGT6JFMPcjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2297
2297
|
return;
|
|
2298
2298
|
case "search":
|
|
2299
2299
|
input.setValue(`/${cmdId} `);
|
|
@@ -2314,7 +2314,7 @@ var ONE_TEXT_LINE = "\xA0";
|
|
|
2314
2314
|
var SOURCE_CHIP_SKELETON_COUNT = 1;
|
|
2315
2315
|
function SourceChipSkeleton(props) {
|
|
2316
2316
|
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: [
|
|
2317
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
2317
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkBGT6JFMPcjs.chatChipClass.call(void 0, { tone: "secondary" }), children: [
|
|
2318
2318
|
/* @__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") }),
|
|
2319
2319
|
/* @__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 })
|
|
2320
2320
|
] }),
|
|
@@ -2325,7 +2325,7 @@ function SourceChip(props) {
|
|
|
2325
2325
|
const { src, onDiscuss } = props;
|
|
2326
2326
|
const marks = _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props);
|
|
2327
2327
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2328
|
-
const cta =
|
|
2328
|
+
const cta = _chunkBGT6JFMPcjs.resolveSourceRowCTA.call(void 0,
|
|
2329
2329
|
{
|
|
2330
2330
|
sourceRepo: src.sourceRepo,
|
|
2331
2331
|
documentType: src.documentType,
|
|
@@ -2335,16 +2335,16 @@ function SourceChip(props) {
|
|
|
2335
2335
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2336
2336
|
path: src.path
|
|
2337
2337
|
},
|
|
2338
|
-
|
|
2338
|
+
_chunkBGT6JFMPcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2339
2339
|
);
|
|
2340
2340
|
const Icon = cta.icon;
|
|
2341
2341
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2342
|
-
const chipClass =
|
|
2342
|
+
const chipClass = _chunkBGT6JFMPcjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2343
2343
|
if (src.items && src.items.length > 0) {
|
|
2344
2344
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2345
2345
|
const rowLabels = groupedRowLabels(src.items);
|
|
2346
2346
|
const dropdownItems = src.items.map((item, i) => {
|
|
2347
|
-
const itemCta =
|
|
2347
|
+
const itemCta = _chunkBGT6JFMPcjs.resolveSourceRowCTA.call(void 0,
|
|
2348
2348
|
{
|
|
2349
2349
|
sourceRepo: src.sourceRepo,
|
|
2350
2350
|
documentType: item.documentType,
|
|
@@ -2354,7 +2354,7 @@ function SourceChip(props) {
|
|
|
2354
2354
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2355
2355
|
path: item.path
|
|
2356
2356
|
},
|
|
2357
|
-
|
|
2357
|
+
_chunkBGT6JFMPcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2358
2358
|
);
|
|
2359
2359
|
const ItemIcon = itemCta.icon;
|
|
2360
2360
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2371,13 +2371,13 @@ function SourceChip(props) {
|
|
|
2371
2371
|
} : void 0
|
|
2372
2372
|
};
|
|
2373
2373
|
});
|
|
2374
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2374
|
+
const groupIndices = itemIndices.length > 0 ? _chunkBGT6JFMPcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2375
2375
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", ...marks, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2376
|
-
|
|
2376
|
+
_chunkSVCTAOJRcjs.HoverDropdown,
|
|
2377
2377
|
{
|
|
2378
2378
|
items: dropdownItems,
|
|
2379
2379
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2380
|
-
|
|
2380
|
+
_chunkBGT6JFMPcjs.NavLinkAnchorViaRuntime,
|
|
2381
2381
|
{
|
|
2382
2382
|
href,
|
|
2383
2383
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2410,13 +2410,13 @@ function SourceChip(props) {
|
|
|
2410
2410
|
] });
|
|
2411
2411
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", ...marks, children: [
|
|
2412
2412
|
clickable,
|
|
2413
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2413
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2414
2414
|
] });
|
|
2415
2415
|
if (cta.href) {
|
|
2416
2416
|
const isEntity = !!src.externalUrl;
|
|
2417
2417
|
return wrapChip(
|
|
2418
2418
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2419
|
-
|
|
2419
|
+
_chunkBGT6JFMPcjs.NavLinkAnchorViaRuntime,
|
|
2420
2420
|
{
|
|
2421
2421
|
href: cta.href,
|
|
2422
2422
|
path: isEntity ? null : src.path,
|
|
@@ -2442,7 +2442,7 @@ function SourceChips({
|
|
|
2442
2442
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
2443
2443
|
if (loading) {
|
|
2444
2444
|
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: [
|
|
2445
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2445
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.TextHold, { children: "Sources" }) }),
|
|
2446
2446
|
/* @__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 }) }) })
|
|
2447
2447
|
] });
|
|
2448
2448
|
}
|
|
@@ -2552,7 +2552,7 @@ function EmbeddableChatInner({
|
|
|
2552
2552
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2553
2553
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2554
2554
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2555
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2555
|
+
const { attachmentsEnabled, user: identityUser } = _chunkBGT6JFMPcjs.useChatIdentity.call(void 0, );
|
|
2556
2556
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2557
2557
|
_react.useEffect.call(void 0, () => {
|
|
2558
2558
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2606,9 +2606,9 @@ function EmbeddableChatInner({
|
|
|
2606
2606
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2607
2607
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2608
2608
|
() => ({
|
|
2609
|
-
fetchCommands: (prefix, signal) =>
|
|
2609
|
+
fetchCommands: (prefix, signal) => _chunkBGT6JFMPcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2610
2610
|
resolveSourceIcon: (sourceId) => {
|
|
2611
|
-
const iconName =
|
|
2611
|
+
const iconName = _chunkBGT6JFMPcjs.getSourceIconName.call(void 0, sourceId);
|
|
2612
2612
|
if (!iconName) return void 0;
|
|
2613
2613
|
return { Icon: _chunk2HQNXX2Kcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2614
2614
|
},
|
|
@@ -2637,7 +2637,7 @@ function EmbeddableChatInner({
|
|
|
2637
2637
|
},
|
|
2638
2638
|
[controlledActiveMode, onActiveModeChange]
|
|
2639
2639
|
);
|
|
2640
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2640
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunkBGT6JFMPcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2641
2641
|
enabled: activeMode === "guide"
|
|
2642
2642
|
});
|
|
2643
2643
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2648,7 +2648,7 @@ function EmbeddableChatInner({
|
|
|
2648
2648
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2649
2649
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2650
2650
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2651
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2651
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkBGT6JFMPcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2652
2652
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2653
2653
|
});
|
|
2654
2654
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2694,7 +2694,7 @@ function EmbeddableChatInner({
|
|
|
2694
2694
|
hasMoreMessages,
|
|
2695
2695
|
loadMoreMessages,
|
|
2696
2696
|
dialogCapabilities
|
|
2697
|
-
} =
|
|
2697
|
+
} = _chunkBGT6JFMPcjs.useUnifiedChat.call(void 0, {
|
|
2698
2698
|
modes: effectiveModes,
|
|
2699
2699
|
activeMode,
|
|
2700
2700
|
mingoStateOverride: mingoState,
|
|
@@ -2741,8 +2741,8 @@ function EmbeddableChatInner({
|
|
|
2741
2741
|
addFiles: addAttachmentFiles,
|
|
2742
2742
|
removeAttachment,
|
|
2743
2743
|
clear: clearAttachments
|
|
2744
|
-
} =
|
|
2745
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2744
|
+
} = _chunkBGT6JFMPcjs.useChatAttachments.call(void 0, );
|
|
2745
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkBGT6JFMPcjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2746
2746
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2747
2747
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2748
2748
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2873,7 +2873,7 @@ function EmbeddableChatInner({
|
|
|
2873
2873
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2874
2874
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2875
2875
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2876
|
-
(reference) =>
|
|
2876
|
+
(reference) => _chunkBGT6JFMPcjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2877
2877
|
onDiscuss: askAbout,
|
|
2878
2878
|
onDisplay: displayRef,
|
|
2879
2879
|
extras
|
|
@@ -2881,7 +2881,7 @@ function EmbeddableChatInner({
|
|
|
2881
2881
|
[askAbout, displayRef, extras]
|
|
2882
2882
|
);
|
|
2883
2883
|
const mingoAssistantIcon = _react.useMemo.call(void 0,
|
|
2884
|
-
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2884
|
+
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
|
|
2885
2885
|
[effectiveAssistantIcon]
|
|
2886
2886
|
);
|
|
2887
2887
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
@@ -2893,7 +2893,7 @@ function EmbeddableChatInner({
|
|
|
2893
2893
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2894
2894
|
return mapped;
|
|
2895
2895
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2896
|
-
const whatToAsk =
|
|
2896
|
+
const whatToAsk = _chunkBGT6JFMPcjs.useWhatToAsk.call(void 0, {
|
|
2897
2897
|
dialogId: activeDialogId,
|
|
2898
2898
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2899
2899
|
user: {
|
|
@@ -2912,7 +2912,7 @@ function EmbeddableChatInner({
|
|
|
2912
2912
|
noteWhatToAskSend();
|
|
2913
2913
|
let augmentedText = text;
|
|
2914
2914
|
if (readyAttachments.length > 0) {
|
|
2915
|
-
const markdown = readyAttachments.map((att) =>
|
|
2915
|
+
const markdown = readyAttachments.map((att) => _chunkBGT6JFMPcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2916
2916
|
augmentedText = `${text}${markdown}`;
|
|
2917
2917
|
}
|
|
2918
2918
|
void sendMessage(augmentedText, {
|
|
@@ -2951,7 +2951,7 @@ function EmbeddableChatInner({
|
|
|
2951
2951
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2952
2952
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2953
2953
|
// built-in agents.
|
|
2954
|
-
accent: _nullishCoalesce(
|
|
2954
|
+
accent: _nullishCoalesce(_chunkBGT6JFMPcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkBGT6JFMPcjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2955
2955
|
}));
|
|
2956
2956
|
}
|
|
2957
2957
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2999,7 +2999,7 @@ function EmbeddableChatInner({
|
|
|
2999
2999
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
3000
3000
|
});
|
|
3001
3001
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
3002
|
-
|
|
3002
|
+
_chunkBGT6JFMPcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
3003
3003
|
_react.useEffect.call(void 0, () => {
|
|
3004
3004
|
const handler = (e) => {
|
|
3005
3005
|
const detail = e.detail;
|
|
@@ -3007,8 +3007,8 @@ function EmbeddableChatInner({
|
|
|
3007
3007
|
setIsOpen(true);
|
|
3008
3008
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
3009
3009
|
};
|
|
3010
|
-
window.addEventListener(
|
|
3011
|
-
return () => window.removeEventListener(
|
|
3010
|
+
window.addEventListener(_chunkBGT6JFMPcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3011
|
+
return () => window.removeEventListener(_chunkBGT6JFMPcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3012
3012
|
}, [source, askAbout, setIsOpen]);
|
|
3013
3013
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
3014
3014
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3042,10 +3042,10 @@ function EmbeddableChatInner({
|
|
|
3042
3042
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3043
3043
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3044
3044
|
};
|
|
3045
|
-
window.addEventListener(
|
|
3046
|
-
return () => window.removeEventListener(
|
|
3045
|
+
window.addEventListener(_chunkBGT6JFMPcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3046
|
+
return () => window.removeEventListener(_chunkBGT6JFMPcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3047
3047
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3048
|
-
_react.useEffect.call(void 0, () =>
|
|
3048
|
+
_react.useEffect.call(void 0, () => _chunkBGT6JFMPcjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3049
3049
|
const hasMessages = messages.length > 0;
|
|
3050
3050
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3051
3051
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3085,7 +3085,7 @@ function EmbeddableChatInner({
|
|
|
3085
3085
|
if (sourceSkeletonCount <= 0) return null;
|
|
3086
3086
|
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: [] }) });
|
|
3087
3087
|
}
|
|
3088
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3088
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunkBGT6JFMPcjs.flattenAssistantContent.call(void 0, message.content));
|
|
3089
3089
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3090
3090
|
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 }) });
|
|
3091
3091
|
},
|
|
@@ -3095,7 +3095,7 @@ function EmbeddableChatInner({
|
|
|
3095
3095
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3096
3096
|
const [threadPortalHost, setThreadPortalHost] = _react.useState.call(void 0, null);
|
|
3097
3097
|
const [threadBoundary, setThreadBoundary] = _react.useState.call(void 0, null);
|
|
3098
|
-
const splitMinWidth = (isV2 ?
|
|
3098
|
+
const splitMinWidth = (isV2 ? _chunkBGT6JFMPcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkBGT6JFMPcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3099
3099
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3100
3100
|
_react.useEffect.call(void 0, () => {
|
|
3101
3101
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3114,7 +3114,7 @@ function EmbeddableChatInner({
|
|
|
3114
3114
|
[splitMinWidth]
|
|
3115
3115
|
);
|
|
3116
3116
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3117
|
-
const railStorageHydrated =
|
|
3117
|
+
const railStorageHydrated = _chunkBGT6JFMPcjs.useIsHydrated.call(void 0, );
|
|
3118
3118
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3119
3119
|
if (railStorageHydrated && !railStorageRead) {
|
|
3120
3120
|
setRailStorageRead(true);
|
|
@@ -3168,7 +3168,7 @@ function EmbeddableChatInner({
|
|
|
3168
3168
|
resetToNewChat();
|
|
3169
3169
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3170
3170
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3171
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _67 => _67.length]), () => ( 0))) > 0 ||
|
|
3171
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _67 => _67.length]), () => ( 0))) > 0 || _chunkBGT6JFMPcjs.awaitsDecision.call(void 0, hostMessages);
|
|
3172
3172
|
const showWhatToAsk = (content) => {
|
|
3173
3173
|
whatToAsk.clearDraft();
|
|
3174
3174
|
resetToNewChat();
|
|
@@ -3268,7 +3268,7 @@ function EmbeddableChatInner({
|
|
|
3268
3268
|
}),
|
|
3269
3269
|
[resetToNewChat, contextMaxItems, contextPicker, openContextPicker]
|
|
3270
3270
|
);
|
|
3271
|
-
const splitHeaderMenuItems =
|
|
3271
|
+
const splitHeaderMenuItems = _chunkBGT6JFMPcjs.chatDialogMenuItems.call(void 0, {
|
|
3272
3272
|
onCopyLink: headerOnCopyLink,
|
|
3273
3273
|
onRename: headerOnRename,
|
|
3274
3274
|
onCompact: headerOnCompact,
|
|
@@ -3287,7 +3287,7 @@ function EmbeddableChatInner({
|
|
|
3287
3287
|
});
|
|
3288
3288
|
};
|
|
3289
3289
|
const cancelInlineRename = () => setInlineRenameId(null);
|
|
3290
|
-
const mingoHeaderMenuItems =
|
|
3290
|
+
const mingoHeaderMenuItems = _chunkBGT6JFMPcjs.chatDialogMenuItems.call(void 0, {
|
|
3291
3291
|
onCopyLink: headerOnCopyLink,
|
|
3292
3292
|
onRename: mingoHeaderOnRename,
|
|
3293
3293
|
onCompact: headerOnCompact,
|
|
@@ -3370,7 +3370,7 @@ function EmbeddableChatInner({
|
|
|
3370
3370
|
onRetry: reloadDialogs
|
|
3371
3371
|
};
|
|
3372
3372
|
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,
|
|
3373
|
-
|
|
3373
|
+
_chunkBGT6JFMPcjs.MingoChatHeader,
|
|
3374
3374
|
{
|
|
3375
3375
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3376
3376
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3391,7 +3391,7 @@ function EmbeddableChatInner({
|
|
|
3391
3391
|
}
|
|
3392
3392
|
) }) : null;
|
|
3393
3393
|
const archiveListNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3394
|
-
|
|
3394
|
+
_chunkBGT6JFMPcjs.MingoArchiveList,
|
|
3395
3395
|
{
|
|
3396
3396
|
dialogs: archivedDialogs,
|
|
3397
3397
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3416,7 +3416,7 @@ function EmbeddableChatInner({
|
|
|
3416
3416
|
hasAboveComposer && "min-h-32"
|
|
3417
3417
|
),
|
|
3418
3418
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0", 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,
|
|
3419
|
-
|
|
3419
|
+
_chunkBGT6JFMPcjs.ChatMessageList,
|
|
3420
3420
|
{
|
|
3421
3421
|
messages,
|
|
3422
3422
|
isLoading: messagesInitialLoading,
|
|
@@ -3435,7 +3435,7 @@ function EmbeddableChatInner({
|
|
|
3435
3435
|
renderMention,
|
|
3436
3436
|
renderAfterMessage: renderMessageSources,
|
|
3437
3437
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3438
|
-
NavLinkAnchor:
|
|
3438
|
+
NavLinkAnchor: _chunkBGT6JFMPcjs.NavLinkAnchorViaRuntime,
|
|
3439
3439
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3440
3440
|
contentClassName: _chunk63A4GZMBcjs.cn.call(void 0, "max-w-none pb-0", splitMode && threadContentClassName),
|
|
3441
3441
|
fullWidth: true,
|
|
@@ -3449,7 +3449,7 @@ function EmbeddableChatInner({
|
|
|
3449
3449
|
quick-action chips. Guide mode keeps the slash-command
|
|
3450
3450
|
onboarding list below. */
|
|
3451
3451
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3452
|
-
|
|
3452
|
+
_chunkBGT6JFMPcjs.MingoWelcome,
|
|
3453
3453
|
{
|
|
3454
3454
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3455
3455
|
historyPageSize,
|
|
@@ -3465,7 +3465,7 @@ function EmbeddableChatInner({
|
|
|
3465
3465
|
+ slash-command onboarding list share one scroll region,
|
|
3466
3466
|
with a pinned quick-action chip row above the composer. */
|
|
3467
3467
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3468
|
-
|
|
3468
|
+
_chunkBGT6JFMPcjs.GuideWelcome,
|
|
3469
3469
|
{
|
|
3470
3470
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3471
3471
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3518,9 +3518,9 @@ function EmbeddableChatInner({
|
|
|
3518
3518
|
children: aboveComposer
|
|
3519
3519
|
}
|
|
3520
3520
|
) : null;
|
|
3521
|
-
const attachmentStrip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3521
|
+
const attachmentStrip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.ChatAttachmentChipStrip, { attachments: stagedAttachments, onRemove: removeAttachment, disabled: chatLoading });
|
|
3522
3522
|
const composerNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3523
|
-
|
|
3523
|
+
_chunkBGT6JFMPcjs.ChatComposer,
|
|
3524
3524
|
{
|
|
3525
3525
|
archived: isViewingArchived,
|
|
3526
3526
|
lock: composerLock,
|
|
@@ -3570,7 +3570,7 @@ function EmbeddableChatInner({
|
|
|
3570
3570
|
composerKey
|
|
3571
3571
|
);
|
|
3572
3572
|
const dialogModals = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3573
|
-
|
|
3573
|
+
_chunkBGT6JFMPcjs.ChatDialogModals,
|
|
3574
3574
|
{
|
|
3575
3575
|
renameTarget,
|
|
3576
3576
|
setRenameTarget,
|
|
@@ -3586,7 +3586,7 @@ function EmbeddableChatInner({
|
|
|
3586
3586
|
const classicBody = (
|
|
3587
3587
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3588
3588
|
// only the thread `ChatMessageList` provides it to.
|
|
3589
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3589
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.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: [
|
|
3590
3590
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3591
3591
|
"div",
|
|
3592
3592
|
{
|
|
@@ -3594,7 +3594,7 @@ function EmbeddableChatInner({
|
|
|
3594
3594
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3595
3595
|
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" : ""}`,
|
|
3596
3596
|
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,
|
|
3597
|
-
|
|
3597
|
+
_chunkBGT6JFMPcjs.ChatArchivePage,
|
|
3598
3598
|
{
|
|
3599
3599
|
dialogs: archivedDialogs,
|
|
3600
3600
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3624,7 +3624,7 @@ function EmbeddableChatInner({
|
|
|
3624
3624
|
narrow: true,
|
|
3625
3625
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3626
3626
|
innerClassName: "flex min-h-0 flex-col",
|
|
3627
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3627
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3628
3628
|
}
|
|
3629
3629
|
),
|
|
3630
3630
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3663,7 +3663,7 @@ function EmbeddableChatInner({
|
|
|
3663
3663
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3664
3664
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3665
3665
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3666
|
-
|
|
3666
|
+
_chunkBGT6JFMPcjs.ChatHeaderSearchField,
|
|
3667
3667
|
{
|
|
3668
3668
|
initialValue: mingoCaps.searchQuery,
|
|
3669
3669
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3750,10 +3750,10 @@ function EmbeddableChatInner({
|
|
|
3750
3750
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3751
3751
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3752
3752
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3753
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3753
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3754
3754
|
),
|
|
3755
3755
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3756
|
-
|
|
3756
|
+
_chunkBGT6JFMPcjs.GuideModeBanner,
|
|
3757
3757
|
{
|
|
3758
3758
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3759
3759
|
}
|
|
@@ -3763,7 +3763,7 @@ function EmbeddableChatInner({
|
|
|
3763
3763
|
// Archive list inside the rail (header lives in the split
|
|
3764
3764
|
// header's left cell above). Right chat block stays put.
|
|
3765
3765
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3766
|
-
|
|
3766
|
+
_chunkBGT6JFMPcjs.ChatArchivePage,
|
|
3767
3767
|
{
|
|
3768
3768
|
embedded: true,
|
|
3769
3769
|
dialogs: archivedDialogs,
|
|
@@ -3777,7 +3777,7 @@ function EmbeddableChatInner({
|
|
|
3777
3777
|
}
|
|
3778
3778
|
)
|
|
3779
3779
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3780
|
-
|
|
3780
|
+
_chunkBGT6JFMPcjs.MingoHistoryRail,
|
|
3781
3781
|
{
|
|
3782
3782
|
dialogs,
|
|
3783
3783
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3806,7 +3806,7 @@ function EmbeddableChatInner({
|
|
|
3806
3806
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3807
3807
|
archiveListNode
|
|
3808
3808
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3809
|
-
|
|
3809
|
+
_chunkBGT6JFMPcjs.MingoChatRail,
|
|
3810
3810
|
{
|
|
3811
3811
|
...mingoRailProps,
|
|
3812
3812
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3825,7 +3825,7 @@ function EmbeddableChatInner({
|
|
|
3825
3825
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3826
3826
|
// the compose view.
|
|
3827
3827
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3828
|
-
|
|
3828
|
+
_chunkBGT6JFMPcjs.MingoHistoryRail,
|
|
3829
3829
|
{
|
|
3830
3830
|
className: "duration-200 animate-in fade-in-0",
|
|
3831
3831
|
dialogs,
|
|
@@ -3869,11 +3869,11 @@ function EmbeddableChatInner({
|
|
|
3869
3869
|
] }) }) })
|
|
3870
3870
|
);
|
|
3871
3871
|
const pageHeader = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3872
|
-
|
|
3872
|
+
_chunkBGT6JFMPcjs.MingoChatHeader,
|
|
3873
3873
|
{
|
|
3874
3874
|
variant: "page",
|
|
3875
3875
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3876
|
-
meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName,
|
|
3876
|
+
meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName, _chunkBGT6JFMPcjs.chatDayLabel.call(void 0, _optionalChain([activeDialog, 'optionalAccess', _76 => _76.timestamp]))],
|
|
3877
3877
|
menuItems: headerShowBack && !isViewingArchived && !archiveOpen ? mingoHeaderMenuItems : [],
|
|
3878
3878
|
extraMenuItems: isViewingArchived || archiveOpen ? void 0 : chatMenuExtraItems,
|
|
3879
3879
|
onRestore: isViewingArchived && !archiveOpen ? headerOnRestore : void 0,
|
|
@@ -3893,7 +3893,7 @@ function EmbeddableChatInner({
|
|
|
3893
3893
|
),
|
|
3894
3894
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: threadPortalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.CollisionBoundaryContext.Provider, { value: threadBoundary, children: [
|
|
3895
3895
|
pageHeader,
|
|
3896
|
-
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3896
|
+
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.GuideModeBanner, { className: "duration-200 animate-in fade-in-0" }),
|
|
3897
3897
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: archiveOpen ? archiveListNode : threadArea }),
|
|
3898
3898
|
galleryModal,
|
|
3899
3899
|
dialogModals,
|
|
@@ -3901,7 +3901,7 @@ function EmbeddableChatInner({
|
|
|
3901
3901
|
] }) })
|
|
3902
3902
|
}
|
|
3903
3903
|
);
|
|
3904
|
-
const body = splitMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3904
|
+
const body = splitMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: [
|
|
3905
3905
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3906
3906
|
"div",
|
|
3907
3907
|
{
|
|
@@ -3919,14 +3919,14 @@ function EmbeddableChatInner({
|
|
|
3919
3919
|
threadContainer ? null : dialogModals,
|
|
3920
3920
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3921
3921
|
] }) }) : classicBody;
|
|
3922
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3922
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBGT6JFMPcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3923
3923
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3924
3924
|
sourceLabel,
|
|
3925
3925
|
" AI Assistant"
|
|
3926
3926
|
] }) }),
|
|
3927
3927
|
body
|
|
3928
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3929
|
-
|
|
3928
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSVCTAOJRcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3929
|
+
_chunkSVCTAOJRcjs.DrawerContent,
|
|
3930
3930
|
{
|
|
3931
3931
|
side: "right",
|
|
3932
3932
|
flush: true,
|