@flamingo-stack/openframe-frontend-core 0.0.836 → 0.0.838
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-DQ6JYOHD.cjs → chunk-2QAUQPGC.cjs} +8 -8
- package/dist/{chunk-UFF4TRZH.cjs → chunk-2X5LYDNA.cjs} +3 -3
- package/dist/{chunk-DAOVWHCN.cjs → chunk-4TUHHKLR.cjs} +47 -47
- package/dist/{chunk-LQDPAMXK.cjs → chunk-5E4YEHHO.cjs} +25 -24
- package/dist/{chunk-VMFBLMP6.cjs → chunk-64PF3UC7.cjs} +2 -2
- package/dist/{chunk-I7QIIZAI.cjs → chunk-7QNGILIY.cjs} +19 -19
- package/dist/{chunk-UQS2RI5Y.cjs → chunk-7XRFAHJF.cjs} +5 -5
- package/dist/{chunk-EQB3NSY6.cjs → chunk-B4THEQOW.cjs} +123 -145
- package/dist/{chunk-HBFYEBXN.cjs → chunk-ENK75WN4.cjs} +4 -4
- package/dist/{chunk-AZRDKZNG.cjs → chunk-JFR3OFE6.cjs} +4 -4
- package/dist/{chunk-UQ52NWTB.cjs → chunk-JI34QKPJ.cjs} +40 -40
- package/dist/{chunk-SFJXIHFR.cjs → chunk-MMPMQUQM.cjs} +11 -11
- package/dist/{chunk-4OP2VVPV.cjs → chunk-NV5AHL4G.cjs} +3 -3
- package/dist/{chunk-WAMDWVYC.cjs → chunk-S5RMRQKT.cjs} +11 -11
- package/dist/{chunk-M5PGFNJG.cjs → chunk-TMD55O5U.cjs} +53 -53
- package/dist/{chunk-VQG2A7GA.cjs → chunk-TRZEFT2N.cjs} +2 -2
- package/dist/{chunk-XXHCM2XS.cjs → chunk-U4MJ2Z4V.cjs} +39 -39
- package/dist/{chunk-IUHV55D7.cjs → chunk-V322TUBY.cjs} +9 -9
- package/dist/{chunk-D6ZSRGH2.cjs → chunk-Z7A7IZWL.cjs} +10 -5
- package/dist/{cloud-tenants-THCHEWBM.cjs → cloud-tenants-GLPDB2F5.cjs} +5 -5
- package/dist/components/case-studies/index.cjs +17 -17
- package/dist/components/chat/composer-sheet.d.ts +5 -3
- package/dist/components/chat/composer-sheet.d.ts.map +1 -1
- package/dist/components/chat/composer-sheet.js +7 -6
- package/dist/components/chat/embeddable-chat.js +5 -2
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +11 -6
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/faq/index.cjs +7 -7
- package/dist/components/features/devices/device-selector/device-selector.d.ts.map +1 -1
- package/dist/components/features/devices/device-selector/device-selector.js +0 -10
- package/dist/components/features/devices/device-selector/narrowing.d.ts +2 -2
- package/dist/components/features/devices/devices-filter-toolbar.d.ts +1 -2
- package/dist/components/features/devices/devices-filter-toolbar.d.ts.map +1 -1
- package/dist/components/features/devices/devices-filter-toolbar.js +0 -2
- package/dist/components/features/devices/devices-list.d.ts +1 -1
- package/dist/components/features/devices/devices-list.d.ts.map +1 -1
- package/dist/components/features/devices/devices-list.js +0 -9
- package/dist/components/features/devices/devices-panel-view.d.ts.map +1 -1
- package/dist/components/features/devices/devices-panel-view.js +0 -1
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/help-center-pages/index.cjs +62 -62
- package/dist/components/index.cjs +38 -38
- package/dist/components/meeting-scheduler/index.cjs +30 -30
- package/dist/components/navigation/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/product-demo/index.cjs +14 -14
- package/dist/components/tickets/index.cjs +10 -10
- package/dist/components/ui/index.cjs +5 -5
- package/dist/{devices-MPRDMXXU.cjs → devices-GHPW5WCO.cjs} +6 -6
- package/dist/{embeddable-chat-TRGESG7U.cjs → embeddable-chat-RBC7F4TL.cjs} +76 -73
- package/dist/index.cjs +9 -9
- package/dist/{knowledge-TFTDHYGR.cjs → knowledge-4TOSY2S5.cjs} +6 -6
- package/dist/{logs-CSSJG4F7.cjs → logs-MUODFY6N.cjs} +12 -12
- package/dist/{policies-ELFYUN5P.cjs → policies-TJHO3VLE.cjs} +9 -9
- package/dist/{scripts-37L6FIKG.cjs → scripts-X5CMYE2V.cjs} +10 -10
- package/dist/{software-update-BSA4NLHO.cjs → software-update-2UZKHTYM.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/chat/composer-sheet.tsx +12 -9
- package/src/components/chat/embeddable-chat.tsx +5 -2
- package/src/components/chat/mingo-quick-action-wall.tsx +18 -7
- package/src/components/features/devices/device-selector/device-selector.tsx +1 -12
- package/src/components/features/devices/device-selector/narrowing.ts +2 -2
- package/src/components/features/devices/devices-filter-toolbar.tsx +0 -3
- package/src/components/features/devices/devices-list.tsx +1 -11
- package/src/components/features/devices/devices-panel-view.tsx +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTRZEFT2Ncjs = require('./chunk-TRZEFT2N.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 _chunkZ7A7IZWLcjs = require('./chunk-Z7A7IZWL.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
@@ -2011,7 +2011,7 @@ function useChatDialogManager({
|
|
|
2011
2011
|
setArchivedLoading(true);
|
|
2012
2012
|
}
|
|
2013
2013
|
try {
|
|
2014
|
-
const result = await fetchArchivedDialogs({ cursor, limit:
|
|
2014
|
+
const result = await fetchArchivedDialogs({ cursor, limit: _chunkZ7A7IZWLcjs.CHAT_HISTORY_PAGE_SIZE });
|
|
2015
2015
|
if (!isCurrent()) return;
|
|
2016
2016
|
setArchivedCursor(result.nextCursor);
|
|
2017
2017
|
setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
|
|
@@ -2130,12 +2130,12 @@ function withoutCode(content) {
|
|
|
2130
2130
|
}
|
|
2131
2131
|
function splitCitedSources(sources, content) {
|
|
2132
2132
|
if (!sources || sources.length === 0) return { cited: [], uncited: [] };
|
|
2133
|
-
const byCards = splitByCards(sources,
|
|
2133
|
+
const byCards = splitByCards(sources, _chunkZ7A7IZWLcjs.extractCardReferences.call(void 0, withoutCode(content)));
|
|
2134
2134
|
if (byCards.cited.length > 0) return byCards;
|
|
2135
|
-
const firstMentionAt = new Map(
|
|
2135
|
+
const firstMentionAt = new Map(_chunkZ7A7IZWLcjs.citedSourceNumbers.call(void 0, withoutCode(content)).map((index, order) => [index, order]));
|
|
2136
2136
|
const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
|
|
2137
2137
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2138
|
-
return { cited:
|
|
2138
|
+
return { cited: _chunkZ7A7IZWLcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkZ7A7IZWLcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2139
2139
|
}
|
|
2140
2140
|
function recordsOf(source) {
|
|
2141
2141
|
if (!source.items || source.items.length === 0) return [source];
|
|
@@ -2167,7 +2167,7 @@ function splitByCards(sources, cards) {
|
|
|
2167
2167
|
if (record && !cited.includes(record)) cited.push(record);
|
|
2168
2168
|
}
|
|
2169
2169
|
const uncited = records.filter((record) => !cited.includes(record));
|
|
2170
|
-
return { cited:
|
|
2170
|
+
return { cited: _chunkZ7A7IZWLcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkZ7A7IZWLcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2171
2171
|
}
|
|
2172
2172
|
function groupedRowLabels(items) {
|
|
2173
2173
|
const numbers = new Set(items.flatMap((item) => item.index === void 0 ? [] : [item.index]));
|
|
@@ -2222,7 +2222,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2222
2222
|
// src/components/chat/embeddable-chat.tsx
|
|
2223
2223
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2224
2224
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2225
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2225
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkZ7A7IZWLcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2226
2226
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2227
2227
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2228
2228
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2295,7 +2295,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2295
2295
|
if (!input) return;
|
|
2296
2296
|
switch (actionId) {
|
|
2297
2297
|
case "browse":
|
|
2298
|
-
input.submit(
|
|
2298
|
+
input.submit(_chunkZ7A7IZWLcjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2299
2299
|
return;
|
|
2300
2300
|
case "search":
|
|
2301
2301
|
input.setValue(`/${cmdId} `);
|
|
@@ -2316,7 +2316,7 @@ var ONE_TEXT_LINE = "\xA0";
|
|
|
2316
2316
|
var SOURCE_CHIP_SKELETON_COUNT = 1;
|
|
2317
2317
|
function SourceChipSkeleton(props) {
|
|
2318
2318
|
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: [
|
|
2319
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
2319
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkZ7A7IZWLcjs.chatChipClass.call(void 0, { tone: "secondary" }), children: [
|
|
2320
2320
|
/* @__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") }),
|
|
2321
2321
|
/* @__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 })
|
|
2322
2322
|
] }),
|
|
@@ -2327,7 +2327,7 @@ function SourceChip(props) {
|
|
|
2327
2327
|
const { src, onDiscuss } = props;
|
|
2328
2328
|
const marks = _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props);
|
|
2329
2329
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2330
|
-
const cta =
|
|
2330
|
+
const cta = _chunkZ7A7IZWLcjs.resolveSourceRowCTA.call(void 0,
|
|
2331
2331
|
{
|
|
2332
2332
|
sourceRepo: src.sourceRepo,
|
|
2333
2333
|
documentType: src.documentType,
|
|
@@ -2337,16 +2337,16 @@ function SourceChip(props) {
|
|
|
2337
2337
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2338
2338
|
path: src.path
|
|
2339
2339
|
},
|
|
2340
|
-
|
|
2340
|
+
_chunkZ7A7IZWLcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2341
2341
|
);
|
|
2342
2342
|
const Icon = cta.icon;
|
|
2343
2343
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2344
|
-
const chipClass =
|
|
2344
|
+
const chipClass = _chunkZ7A7IZWLcjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2345
2345
|
if (src.items && src.items.length > 0) {
|
|
2346
2346
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2347
2347
|
const rowLabels = groupedRowLabels(src.items);
|
|
2348
2348
|
const dropdownItems = src.items.map((item, i) => {
|
|
2349
|
-
const itemCta =
|
|
2349
|
+
const itemCta = _chunkZ7A7IZWLcjs.resolveSourceRowCTA.call(void 0,
|
|
2350
2350
|
{
|
|
2351
2351
|
sourceRepo: src.sourceRepo,
|
|
2352
2352
|
documentType: item.documentType,
|
|
@@ -2356,7 +2356,7 @@ function SourceChip(props) {
|
|
|
2356
2356
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2357
2357
|
path: item.path
|
|
2358
2358
|
},
|
|
2359
|
-
|
|
2359
|
+
_chunkZ7A7IZWLcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2360
2360
|
);
|
|
2361
2361
|
const ItemIcon = itemCta.icon;
|
|
2362
2362
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2373,13 +2373,13 @@ function SourceChip(props) {
|
|
|
2373
2373
|
} : void 0
|
|
2374
2374
|
};
|
|
2375
2375
|
});
|
|
2376
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2376
|
+
const groupIndices = itemIndices.length > 0 ? _chunkZ7A7IZWLcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2377
2377
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", ...marks, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2378
|
-
|
|
2378
|
+
_chunkTRZEFT2Ncjs.HoverDropdown,
|
|
2379
2379
|
{
|
|
2380
2380
|
items: dropdownItems,
|
|
2381
2381
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2382
|
-
|
|
2382
|
+
_chunkZ7A7IZWLcjs.NavLinkAnchorViaRuntime,
|
|
2383
2383
|
{
|
|
2384
2384
|
href,
|
|
2385
2385
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2412,13 +2412,13 @@ function SourceChip(props) {
|
|
|
2412
2412
|
] });
|
|
2413
2413
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", ...marks, children: [
|
|
2414
2414
|
clickable,
|
|
2415
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2416
2416
|
] });
|
|
2417
2417
|
if (cta.href) {
|
|
2418
2418
|
const isEntity = !!src.externalUrl;
|
|
2419
2419
|
return wrapChip(
|
|
2420
2420
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2421
|
-
|
|
2421
|
+
_chunkZ7A7IZWLcjs.NavLinkAnchorViaRuntime,
|
|
2422
2422
|
{
|
|
2423
2423
|
href: cta.href,
|
|
2424
2424
|
path: isEntity ? null : src.path,
|
|
@@ -2444,7 +2444,7 @@ function SourceChips({
|
|
|
2444
2444
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
2445
2445
|
if (loading) {
|
|
2446
2446
|
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: [
|
|
2447
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2447
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.TextHold, { children: "Sources" }) }),
|
|
2448
2448
|
/* @__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 }) }) })
|
|
2449
2449
|
] });
|
|
2450
2450
|
}
|
|
@@ -2554,7 +2554,7 @@ function EmbeddableChatInner({
|
|
|
2554
2554
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2555
2555
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2556
2556
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2557
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2557
|
+
const { attachmentsEnabled, user: identityUser } = _chunkZ7A7IZWLcjs.useChatIdentity.call(void 0, );
|
|
2558
2558
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2559
2559
|
_react.useEffect.call(void 0, () => {
|
|
2560
2560
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2607,9 +2607,9 @@ function EmbeddableChatInner({
|
|
|
2607
2607
|
const chatInputRef = _react.useRef.call(void 0, null);
|
|
2608
2608
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2609
2609
|
() => ({
|
|
2610
|
-
fetchCommands: (prefix, signal) =>
|
|
2610
|
+
fetchCommands: (prefix, signal) => _chunkZ7A7IZWLcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2611
2611
|
resolveSourceIcon: (sourceId) => {
|
|
2612
|
-
const iconName =
|
|
2612
|
+
const iconName = _chunkZ7A7IZWLcjs.getSourceIconName.call(void 0, sourceId);
|
|
2613
2613
|
if (!iconName) return void 0;
|
|
2614
2614
|
return { Icon: _chunkJQCQCE6Ucjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2615
2615
|
},
|
|
@@ -2638,7 +2638,7 @@ function EmbeddableChatInner({
|
|
|
2638
2638
|
},
|
|
2639
2639
|
[controlledActiveMode, onActiveModeChange]
|
|
2640
2640
|
);
|
|
2641
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2641
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunkZ7A7IZWLcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2642
2642
|
enabled: activeMode === "guide"
|
|
2643
2643
|
});
|
|
2644
2644
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2649,7 +2649,7 @@ function EmbeddableChatInner({
|
|
|
2649
2649
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2650
2650
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2651
2651
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2652
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2652
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkZ7A7IZWLcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2653
2653
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2654
2654
|
});
|
|
2655
2655
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2695,7 +2695,7 @@ function EmbeddableChatInner({
|
|
|
2695
2695
|
hasMoreMessages,
|
|
2696
2696
|
loadMoreMessages,
|
|
2697
2697
|
dialogCapabilities
|
|
2698
|
-
} =
|
|
2698
|
+
} = _chunkZ7A7IZWLcjs.useUnifiedChat.call(void 0, {
|
|
2699
2699
|
modes: effectiveModes,
|
|
2700
2700
|
activeMode,
|
|
2701
2701
|
mingoStateOverride: mingoState,
|
|
@@ -2742,8 +2742,8 @@ function EmbeddableChatInner({
|
|
|
2742
2742
|
addFiles: addAttachmentFiles,
|
|
2743
2743
|
removeAttachment,
|
|
2744
2744
|
clear: clearAttachments
|
|
2745
|
-
} =
|
|
2746
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2745
|
+
} = _chunkZ7A7IZWLcjs.useChatAttachments.call(void 0, );
|
|
2746
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkZ7A7IZWLcjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2747
2747
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2748
2748
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2749
2749
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2874,7 +2874,7 @@ function EmbeddableChatInner({
|
|
|
2874
2874
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2875
2875
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2876
2876
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2877
|
-
(reference) =>
|
|
2877
|
+
(reference) => _chunkZ7A7IZWLcjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2878
2878
|
onDiscuss: askAbout,
|
|
2879
2879
|
onDisplay: displayRef,
|
|
2880
2880
|
extras
|
|
@@ -2894,7 +2894,7 @@ function EmbeddableChatInner({
|
|
|
2894
2894
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2895
2895
|
return mapped;
|
|
2896
2896
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2897
|
-
const whatToAsk =
|
|
2897
|
+
const whatToAsk = _chunkZ7A7IZWLcjs.useWhatToAsk.call(void 0, {
|
|
2898
2898
|
dialogId: activeDialogId,
|
|
2899
2899
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2900
2900
|
user: {
|
|
@@ -2913,7 +2913,7 @@ function EmbeddableChatInner({
|
|
|
2913
2913
|
noteWhatToAskSend();
|
|
2914
2914
|
let augmentedText = text;
|
|
2915
2915
|
if (readyAttachments.length > 0) {
|
|
2916
|
-
const markdown = readyAttachments.map((att) =>
|
|
2916
|
+
const markdown = readyAttachments.map((att) => _chunkZ7A7IZWLcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2917
2917
|
augmentedText = `${text}${markdown}`;
|
|
2918
2918
|
}
|
|
2919
2919
|
void sendMessage(augmentedText, {
|
|
@@ -2952,7 +2952,7 @@ function EmbeddableChatInner({
|
|
|
2952
2952
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2953
2953
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2954
2954
|
// built-in agents.
|
|
2955
|
-
accent: _nullishCoalesce(
|
|
2955
|
+
accent: _nullishCoalesce(_chunkZ7A7IZWLcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkZ7A7IZWLcjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2956
2956
|
}));
|
|
2957
2957
|
}
|
|
2958
2958
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -3000,7 +3000,7 @@ function EmbeddableChatInner({
|
|
|
3000
3000
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
3001
3001
|
});
|
|
3002
3002
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
3003
|
-
|
|
3003
|
+
_chunkZ7A7IZWLcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
3004
3004
|
_react.useEffect.call(void 0, () => {
|
|
3005
3005
|
const handler = (e) => {
|
|
3006
3006
|
const detail = e.detail;
|
|
@@ -3008,8 +3008,8 @@ function EmbeddableChatInner({
|
|
|
3008
3008
|
setIsOpen(true);
|
|
3009
3009
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
3010
3010
|
};
|
|
3011
|
-
window.addEventListener(
|
|
3012
|
-
return () => window.removeEventListener(
|
|
3011
|
+
window.addEventListener(_chunkZ7A7IZWLcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3012
|
+
return () => window.removeEventListener(_chunkZ7A7IZWLcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3013
3013
|
}, [source, askAbout, setIsOpen]);
|
|
3014
3014
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
3015
3015
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3043,10 +3043,10 @@ function EmbeddableChatInner({
|
|
|
3043
3043
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3044
3044
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3045
3045
|
};
|
|
3046
|
-
window.addEventListener(
|
|
3047
|
-
return () => window.removeEventListener(
|
|
3046
|
+
window.addEventListener(_chunkZ7A7IZWLcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3047
|
+
return () => window.removeEventListener(_chunkZ7A7IZWLcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3048
3048
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3049
|
-
_react.useEffect.call(void 0, () =>
|
|
3049
|
+
_react.useEffect.call(void 0, () => _chunkZ7A7IZWLcjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3050
3050
|
const hasMessages = messages.length > 0;
|
|
3051
3051
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3052
3052
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3084,7 +3084,7 @@ function EmbeddableChatInner({
|
|
|
3084
3084
|
if (sourceSkeletonCount <= 0) return null;
|
|
3085
3085
|
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: [] }) });
|
|
3086
3086
|
}
|
|
3087
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3087
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunkZ7A7IZWLcjs.flattenAssistantContent.call(void 0, message.content));
|
|
3088
3088
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3089
3089
|
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 }) });
|
|
3090
3090
|
},
|
|
@@ -3094,7 +3094,7 @@ function EmbeddableChatInner({
|
|
|
3094
3094
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3095
3095
|
const [threadPortalHost, setThreadPortalHost] = _react.useState.call(void 0, null);
|
|
3096
3096
|
const [threadBoundary, setThreadBoundary] = _react.useState.call(void 0, null);
|
|
3097
|
-
const splitMinWidth = (isV2 ?
|
|
3097
|
+
const splitMinWidth = (isV2 ? _chunkZ7A7IZWLcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkZ7A7IZWLcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3098
3098
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3099
3099
|
_react.useEffect.call(void 0, () => {
|
|
3100
3100
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3113,7 +3113,7 @@ function EmbeddableChatInner({
|
|
|
3113
3113
|
[splitMinWidth]
|
|
3114
3114
|
);
|
|
3115
3115
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3116
|
-
const railStorageHydrated =
|
|
3116
|
+
const railStorageHydrated = _chunkZ7A7IZWLcjs.useIsHydrated.call(void 0, );
|
|
3117
3117
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3118
3118
|
if (railStorageHydrated && !railStorageRead) {
|
|
3119
3119
|
setRailStorageRead(true);
|
|
@@ -3167,7 +3167,7 @@ function EmbeddableChatInner({
|
|
|
3167
3167
|
resetToNewChat();
|
|
3168
3168
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3169
3169
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3170
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _67 => _67.length]), () => ( 0))) > 0 ||
|
|
3170
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _67 => _67.length]), () => ( 0))) > 0 || _chunkZ7A7IZWLcjs.awaitsDecision.call(void 0, hostMessages);
|
|
3171
3171
|
const showWhatToAsk = (content) => {
|
|
3172
3172
|
whatToAsk.clearDraft();
|
|
3173
3173
|
resetToNewChat();
|
|
@@ -3267,7 +3267,7 @@ function EmbeddableChatInner({
|
|
|
3267
3267
|
}),
|
|
3268
3268
|
[resetToNewChat, contextMaxItems, contextPicker, openContextPicker]
|
|
3269
3269
|
);
|
|
3270
|
-
const splitHeaderMenuItems =
|
|
3270
|
+
const splitHeaderMenuItems = _chunkZ7A7IZWLcjs.chatDialogMenuItems.call(void 0, {
|
|
3271
3271
|
onCopyLink: headerOnCopyLink,
|
|
3272
3272
|
onRename: headerOnRename,
|
|
3273
3273
|
onCompact: headerOnCompact,
|
|
@@ -3286,7 +3286,7 @@ function EmbeddableChatInner({
|
|
|
3286
3286
|
});
|
|
3287
3287
|
};
|
|
3288
3288
|
const cancelInlineRename = () => setInlineRenameId(null);
|
|
3289
|
-
const mingoHeaderMenuItems =
|
|
3289
|
+
const mingoHeaderMenuItems = _chunkZ7A7IZWLcjs.chatDialogMenuItems.call(void 0, {
|
|
3290
3290
|
onCopyLink: headerOnCopyLink,
|
|
3291
3291
|
onRename: mingoHeaderOnRename,
|
|
3292
3292
|
onCompact: headerOnCompact,
|
|
@@ -3369,7 +3369,7 @@ function EmbeddableChatInner({
|
|
|
3369
3369
|
onRetry: reloadDialogs
|
|
3370
3370
|
};
|
|
3371
3371
|
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,
|
|
3372
|
-
|
|
3372
|
+
_chunkZ7A7IZWLcjs.MingoChatHeader,
|
|
3373
3373
|
{
|
|
3374
3374
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3375
3375
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3390,7 +3390,7 @@ function EmbeddableChatInner({
|
|
|
3390
3390
|
}
|
|
3391
3391
|
) }) : null;
|
|
3392
3392
|
const archiveListNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3393
|
-
|
|
3393
|
+
_chunkZ7A7IZWLcjs.MingoArchiveList,
|
|
3394
3394
|
{
|
|
3395
3395
|
dialogs: archivedDialogs,
|
|
3396
3396
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3411,11 +3411,14 @@ function EmbeddableChatInner({
|
|
|
3411
3411
|
"flex min-h-0 flex-1 flex-col p-[var(--spacing-system-m)]",
|
|
3412
3412
|
// With a host block above the composer the thread keeps room
|
|
3413
3413
|
// for a line and the working status: the block gives way
|
|
3414
|
-
// instead (below), so the status never lands on it.
|
|
3415
|
-
|
|
3414
|
+
// instead (below), so the status never lands on it. Not when
|
|
3415
|
+
// the thread is portalled out (`threadContainer`): the block
|
|
3416
|
+
// stays in the host's dock and takes no height from it, so the
|
|
3417
|
+
// floor would only push the thread's end out of its own box.
|
|
3418
|
+
hasAboveComposer && !splitMode && "min-h-32"
|
|
3416
3419
|
),
|
|
3417
3420
|
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,
|
|
3418
|
-
|
|
3421
|
+
_chunkZ7A7IZWLcjs.ChatMessageList,
|
|
3419
3422
|
{
|
|
3420
3423
|
messages,
|
|
3421
3424
|
isLoading: messagesInitialLoading,
|
|
@@ -3434,7 +3437,7 @@ function EmbeddableChatInner({
|
|
|
3434
3437
|
renderMention,
|
|
3435
3438
|
renderAfterMessage: renderMessageSources,
|
|
3436
3439
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3437
|
-
NavLinkAnchor:
|
|
3440
|
+
NavLinkAnchor: _chunkZ7A7IZWLcjs.NavLinkAnchorViaRuntime,
|
|
3438
3441
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3439
3442
|
contentClassName: _chunk63A4GZMBcjs.cn.call(void 0, "max-w-none pb-0", splitMode && threadContentClassName),
|
|
3440
3443
|
fullWidth: true,
|
|
@@ -3448,7 +3451,7 @@ function EmbeddableChatInner({
|
|
|
3448
3451
|
quick-action chips. Guide mode keeps the slash-command
|
|
3449
3452
|
onboarding list below. */
|
|
3450
3453
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3451
|
-
|
|
3454
|
+
_chunkZ7A7IZWLcjs.MingoWelcome,
|
|
3452
3455
|
{
|
|
3453
3456
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3454
3457
|
historyPageSize,
|
|
@@ -3468,7 +3471,7 @@ function EmbeddableChatInner({
|
|
|
3468
3471
|
+ slash-command onboarding list share one scroll region,
|
|
3469
3472
|
with a pinned quick-action chip row above the composer. */
|
|
3470
3473
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3471
|
-
|
|
3474
|
+
_chunkZ7A7IZWLcjs.GuideWelcome,
|
|
3472
3475
|
{
|
|
3473
3476
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3474
3477
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3516,9 +3519,9 @@ function EmbeddableChatInner({
|
|
|
3516
3519
|
children: aboveComposer
|
|
3517
3520
|
}
|
|
3518
3521
|
) : null;
|
|
3519
|
-
const attachmentStrip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3522
|
+
const attachmentStrip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.ChatAttachmentChipStrip, { attachments: stagedAttachments, onRemove: removeAttachment, disabled: chatLoading });
|
|
3520
3523
|
const composerNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3521
|
-
|
|
3524
|
+
_chunkZ7A7IZWLcjs.ChatComposer,
|
|
3522
3525
|
{
|
|
3523
3526
|
archived: isViewingArchived,
|
|
3524
3527
|
lock: composerLock,
|
|
@@ -3568,7 +3571,7 @@ function EmbeddableChatInner({
|
|
|
3568
3571
|
composerKey
|
|
3569
3572
|
);
|
|
3570
3573
|
const dialogModals = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3571
|
-
|
|
3574
|
+
_chunkZ7A7IZWLcjs.ChatDialogModals,
|
|
3572
3575
|
{
|
|
3573
3576
|
renameTarget,
|
|
3574
3577
|
setRenameTarget,
|
|
@@ -3584,7 +3587,7 @@ function EmbeddableChatInner({
|
|
|
3584
3587
|
const classicBody = (
|
|
3585
3588
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3586
3589
|
// only the thread `ChatMessageList` provides it to.
|
|
3587
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3590
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.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: [
|
|
3588
3591
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3589
3592
|
"div",
|
|
3590
3593
|
{
|
|
@@ -3592,7 +3595,7 @@ function EmbeddableChatInner({
|
|
|
3592
3595
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3593
3596
|
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" : ""}`,
|
|
3594
3597
|
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,
|
|
3595
|
-
|
|
3598
|
+
_chunkZ7A7IZWLcjs.ChatArchivePage,
|
|
3596
3599
|
{
|
|
3597
3600
|
dialogs: archivedDialogs,
|
|
3598
3601
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3622,7 +3625,7 @@ function EmbeddableChatInner({
|
|
|
3622
3625
|
narrow: true,
|
|
3623
3626
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3624
3627
|
innerClassName: "flex min-h-0 flex-col",
|
|
3625
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3628
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3626
3629
|
}
|
|
3627
3630
|
),
|
|
3628
3631
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3661,7 +3664,7 @@ function EmbeddableChatInner({
|
|
|
3661
3664
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3662
3665
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3663
3666
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3664
|
-
|
|
3667
|
+
_chunkZ7A7IZWLcjs.ChatHeaderSearchField,
|
|
3665
3668
|
{
|
|
3666
3669
|
initialValue: mingoCaps.searchQuery,
|
|
3667
3670
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3748,10 +3751,10 @@ function EmbeddableChatInner({
|
|
|
3748
3751
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3749
3752
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3750
3753
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3751
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3754
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3752
3755
|
),
|
|
3753
3756
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3754
|
-
|
|
3757
|
+
_chunkZ7A7IZWLcjs.GuideModeBanner,
|
|
3755
3758
|
{
|
|
3756
3759
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3757
3760
|
}
|
|
@@ -3761,7 +3764,7 @@ function EmbeddableChatInner({
|
|
|
3761
3764
|
// Archive list inside the rail (header lives in the split
|
|
3762
3765
|
// header's left cell above). Right chat block stays put.
|
|
3763
3766
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3764
|
-
|
|
3767
|
+
_chunkZ7A7IZWLcjs.ChatArchivePage,
|
|
3765
3768
|
{
|
|
3766
3769
|
embedded: true,
|
|
3767
3770
|
dialogs: archivedDialogs,
|
|
@@ -3775,7 +3778,7 @@ function EmbeddableChatInner({
|
|
|
3775
3778
|
}
|
|
3776
3779
|
)
|
|
3777
3780
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3778
|
-
|
|
3781
|
+
_chunkZ7A7IZWLcjs.MingoHistoryRail,
|
|
3779
3782
|
{
|
|
3780
3783
|
dialogs,
|
|
3781
3784
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3804,7 +3807,7 @@ function EmbeddableChatInner({
|
|
|
3804
3807
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3805
3808
|
archiveListNode
|
|
3806
3809
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3807
|
-
|
|
3810
|
+
_chunkZ7A7IZWLcjs.MingoChatRail,
|
|
3808
3811
|
{
|
|
3809
3812
|
...mingoRailProps,
|
|
3810
3813
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3823,7 +3826,7 @@ function EmbeddableChatInner({
|
|
|
3823
3826
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3824
3827
|
// the compose view.
|
|
3825
3828
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3826
|
-
|
|
3829
|
+
_chunkZ7A7IZWLcjs.MingoHistoryRail,
|
|
3827
3830
|
{
|
|
3828
3831
|
className: "duration-200 animate-in fade-in-0",
|
|
3829
3832
|
dialogs,
|
|
@@ -3867,11 +3870,11 @@ function EmbeddableChatInner({
|
|
|
3867
3870
|
] }) }) })
|
|
3868
3871
|
);
|
|
3869
3872
|
const pageHeader = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3870
|
-
|
|
3873
|
+
_chunkZ7A7IZWLcjs.MingoChatHeader,
|
|
3871
3874
|
{
|
|
3872
3875
|
variant: "page",
|
|
3873
3876
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3874
|
-
meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName,
|
|
3877
|
+
meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName, _chunkZ7A7IZWLcjs.chatDayLabel.call(void 0, _optionalChain([activeDialog, 'optionalAccess', _81 => _81.timestamp]))],
|
|
3875
3878
|
menuItems: headerShowBack && !isViewingArchived && !archiveOpen ? mingoHeaderMenuItems : [],
|
|
3876
3879
|
extraMenuItems: isViewingArchived || archiveOpen ? void 0 : chatMenuExtraItems,
|
|
3877
3880
|
onRestore: isViewingArchived && !archiveOpen ? headerOnRestore : void 0,
|
|
@@ -3891,7 +3894,7 @@ function EmbeddableChatInner({
|
|
|
3891
3894
|
),
|
|
3892
3895
|
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: [
|
|
3893
3896
|
pageHeader,
|
|
3894
|
-
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3897
|
+
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.GuideModeBanner, { className: "duration-200 animate-in fade-in-0" }),
|
|
3895
3898
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: archiveOpen ? archiveListNode : threadArea }),
|
|
3896
3899
|
galleryModal,
|
|
3897
3900
|
dialogModals,
|
|
@@ -3899,7 +3902,7 @@ function EmbeddableChatInner({
|
|
|
3899
3902
|
] }) })
|
|
3900
3903
|
}
|
|
3901
3904
|
);
|
|
3902
|
-
const body = splitMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3905
|
+
const body = splitMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: [
|
|
3903
3906
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3904
3907
|
"div",
|
|
3905
3908
|
{
|
|
@@ -3917,14 +3920,14 @@ function EmbeddableChatInner({
|
|
|
3917
3920
|
threadContainer ? null : dialogModals,
|
|
3918
3921
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3919
3922
|
] }) }) : classicBody;
|
|
3920
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3923
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZ7A7IZWLcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3921
3924
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3922
3925
|
sourceLabel,
|
|
3923
3926
|
" AI Assistant"
|
|
3924
3927
|
] }) }),
|
|
3925
3928
|
body
|
|
3926
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3927
|
-
|
|
3929
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTRZEFT2Ncjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3930
|
+
_chunkTRZEFT2Ncjs.DrawerContent,
|
|
3928
3931
|
{
|
|
3929
3932
|
side: "right",
|
|
3930
3933
|
flush: true,
|