@flamingo-stack/openframe-frontend-core 0.0.819 → 0.0.821
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-2T3HXLZD.cjs → chunk-2WHKEYDX.cjs} +55 -55
- package/dist/{chunk-K5IICQNF.cjs → chunk-2YUWBIZM.cjs} +46 -46
- package/dist/{chunk-MYIOOA4E.cjs → chunk-3SE34JVB.cjs} +2 -2
- package/dist/{chunk-2S6BUXYD.cjs → chunk-7DIWYZPQ.cjs} +3 -3
- package/dist/{chunk-I453QCEF.cjs → chunk-7QGK76LC.cjs} +131 -131
- package/dist/{chunk-WPHCVXES.cjs → chunk-BY2PLXYC.cjs} +13 -13
- package/dist/{chunk-2JFR6XVT.cjs → chunk-CA7X6CCJ.cjs} +32 -32
- package/dist/{chunk-CEXPWDT4.cjs → chunk-FTD3CZAS.cjs} +4 -4
- package/dist/{chunk-UDLDXVY4.cjs → chunk-GBILLSRM.cjs} +4 -4
- package/dist/{chunk-S2ZA4TMJ.cjs → chunk-GQHXJGA2.cjs} +11 -11
- package/dist/{chunk-A36XVWIQ.cjs → chunk-IS6BQSL6.cjs} +39 -39
- package/dist/{chunk-TDQRDQVU.cjs → chunk-LQF5F7LF.cjs} +4 -4
- package/dist/{chunk-IVQT5R6M.cjs → chunk-LWOXKF5P.cjs} +30 -30
- package/dist/{chunk-VSKR26MV.cjs → chunk-N2XHQVWX.cjs} +6 -6
- package/dist/{chunk-U3OICGCV.cjs → chunk-OEKVCVOS.cjs} +63 -63
- package/dist/{chunk-Q6QQSCUC.cjs → chunk-P2ZIQ72J.cjs} +13 -13
- package/dist/{chunk-IM366HS6.cjs → chunk-QCRJVO6Y.cjs} +78 -7
- package/dist/{chunk-7IQU54VE.cjs → chunk-QFNQSZ4H.cjs} +32 -97
- package/dist/{chunk-JOXJDNHN.cjs → chunk-RRLJ5PNL.cjs} +3 -3
- package/dist/{chunk-2W3W3ZV6.cjs → chunk-V26M75GV.cjs} +14 -14
- package/dist/{chunk-LUID2IB3.cjs → chunk-XEIZL3I3.cjs} +2 -2
- package/dist/{chunk-OTGYA5F7.cjs → chunk-YCE7A63X.cjs} +33 -33
- package/dist/{cloud-tenants-P5XJ5DPJ.cjs → cloud-tenants-M34P47GS.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +5 -6
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/utils/cited-sources.d.ts +9 -0
- package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
- package/dist/components/chat/utils/cited-sources.js +5 -0
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +80 -80
- package/dist/components/index.cjs +48 -48
- package/dist/components/meeting-scheduler/index.cjs +31 -31
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/index.cjs +15 -15
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/ui/index.cjs +6 -6
- package/dist/contexts/chat-runtime-context.d.ts +4 -3
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/{devices-BSIWSRZG.cjs → devices-SWFK4CPO.cjs} +7 -7
- package/dist/{embeddable-chat-5L2PKTW3.cjs → embeddable-chat-J6CKPKKM.cjs} +74 -71
- package/dist/index.cjs +17 -17
- package/dist/{knowledge-2F3IPK73.cjs → knowledge-N5FDIA33.cjs} +7 -7
- package/dist/{logs-U3OCJ2OC.cjs → logs-OEK7GMEB.cjs} +14 -14
- package/dist/{policies-L3KHKE2G.cjs → policies-Q7AS5AL6.cjs} +10 -10
- package/dist/{scripts-U4SLB5YC.cjs → scripts-3XWEDB2A.cjs} +11 -11
- package/dist/{software-update-QALYFCIO.cjs → software-update-6FOBLAOF.cjs} +9 -9
- package/dist/utils/image-proxy.d.ts +3 -2
- package/dist/utils/image-proxy.d.ts.map +1 -1
- package/dist/utils/image-proxy.js +11 -4
- package/dist/utils/index.cjs +68 -62
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +7 -8
- package/src/components/chat/utils/cited-sources.ts +10 -0
- package/src/contexts/chat-runtime-context.tsx +4 -3
- package/src/utils/image-proxy.ts +17 -6
|
@@ -58,7 +58,7 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunkYCE7A63Xcjs = require('./chunk-YCE7A63X.cjs');
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
var _chunkOBQ5WUNGcjs = require('./chunk-OBQ5WUNG.cjs');
|
|
@@ -1881,7 +1881,7 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
1881
1881
|
require('./chunk-SKI6NKOE.cjs');
|
|
1882
1882
|
|
|
1883
1883
|
|
|
1884
|
-
var
|
|
1884
|
+
var _chunkQCRJVO6Ycjs = require('./chunk-QCRJVO6Y.cjs');
|
|
1885
1885
|
|
|
1886
1886
|
|
|
1887
1887
|
var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
|
|
@@ -2005,7 +2005,7 @@ function useChatDialogManager({
|
|
|
2005
2005
|
setArchivedLoading(true);
|
|
2006
2006
|
}
|
|
2007
2007
|
try {
|
|
2008
|
-
const result = await fetchArchivedDialogs({ cursor, limit:
|
|
2008
|
+
const result = await fetchArchivedDialogs({ cursor, limit: _chunkYCE7A63Xcjs.CHAT_HISTORY_PAGE_SIZE });
|
|
2009
2009
|
if (!isCurrent()) return;
|
|
2010
2010
|
setArchivedCursor(result.nextCursor);
|
|
2011
2011
|
setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
|
|
@@ -2125,7 +2125,7 @@ function withoutCode(content) {
|
|
|
2125
2125
|
}
|
|
2126
2126
|
function splitCitedSources(sources, content) {
|
|
2127
2127
|
if (!sources || sources.length === 0) return { cited: [], uncited: [] };
|
|
2128
|
-
const byCards = splitByCards(sources,
|
|
2128
|
+
const byCards = splitByCards(sources, _chunkYCE7A63Xcjs.extractCardReferences.call(void 0, withoutCode(content)));
|
|
2129
2129
|
if (byCards.cited.length > 0) return byCards;
|
|
2130
2130
|
const firstMentionAt = /* @__PURE__ */ new Map();
|
|
2131
2131
|
for (const match of withoutCode(content).matchAll(CITATION)) {
|
|
@@ -2134,7 +2134,7 @@ function splitCitedSources(sources, content) {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
|
|
2136
2136
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2137
|
-
return { cited:
|
|
2137
|
+
return { cited: _chunkYCE7A63Xcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkYCE7A63Xcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2138
2138
|
}
|
|
2139
2139
|
function recordsOf(source) {
|
|
2140
2140
|
if (!source.items || source.items.length === 0) return [source];
|
|
@@ -2151,7 +2151,7 @@ function recordsOf(source) {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
function recordKey(record) {
|
|
2153
2153
|
const id = record.id || record.path;
|
|
2154
|
-
return record.documentType && id ? `${
|
|
2154
|
+
return record.documentType && id ? `${_chunkQCRJVO6Ycjs.canonicalContentRefType.call(void 0, record.documentType)}:${id}` : null;
|
|
2155
2155
|
}
|
|
2156
2156
|
function splitByCards(sources, cards) {
|
|
2157
2157
|
const records = sources.flatMap(recordsOf);
|
|
@@ -2162,11 +2162,15 @@ function splitByCards(sources, cards) {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
const cited = [];
|
|
2164
2164
|
for (const card of cards) {
|
|
2165
|
-
const record = byKey.get(`${
|
|
2165
|
+
const record = byKey.get(`${_chunkQCRJVO6Ycjs.canonicalContentRefType.call(void 0, card.type)}:${card.id}`);
|
|
2166
2166
|
if (record && !cited.includes(record)) cited.push(record);
|
|
2167
2167
|
}
|
|
2168
2168
|
const uncited = records.filter((record) => !cited.includes(record));
|
|
2169
|
-
return { cited:
|
|
2169
|
+
return { cited: _chunkYCE7A63Xcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkYCE7A63Xcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2170
|
+
}
|
|
2171
|
+
function groupedRowLabels(items) {
|
|
2172
|
+
const numbers = new Set(items.flatMap((item) => item.index === void 0 ? [] : [item.index]));
|
|
2173
|
+
return items.map((item) => numbers.size > 1 && item.index !== void 0 ? `[${item.index}] ${item.name}` : item.name);
|
|
2170
2174
|
}
|
|
2171
2175
|
|
|
2172
2176
|
// src/components/chat/utils/host-message.ts
|
|
@@ -2217,7 +2221,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2217
2221
|
// src/components/chat/embeddable-chat.tsx
|
|
2218
2222
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2219
2223
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2220
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2224
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkYCE7A63Xcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2221
2225
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2222
2226
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2223
2227
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2290,7 +2294,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2290
2294
|
if (!input) return;
|
|
2291
2295
|
switch (actionId) {
|
|
2292
2296
|
case "browse":
|
|
2293
|
-
input.submit(
|
|
2297
|
+
input.submit(_chunkYCE7A63Xcjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2294
2298
|
return;
|
|
2295
2299
|
case "search":
|
|
2296
2300
|
input.setValue(`/${cmdId} `);
|
|
@@ -2311,7 +2315,7 @@ var ONE_TEXT_LINE = "\xA0";
|
|
|
2311
2315
|
var SOURCE_CHIP_SKELETON_COUNT = 1;
|
|
2312
2316
|
function SourceChipSkeleton(props) {
|
|
2313
2317
|
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: [
|
|
2314
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
2318
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkYCE7A63Xcjs.chatChipClass.call(void 0, { tone: "secondary" }), children: [
|
|
2315
2319
|
/* @__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") }),
|
|
2316
2320
|
/* @__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 })
|
|
2317
2321
|
] }),
|
|
@@ -2322,7 +2326,7 @@ function SourceChip(props) {
|
|
|
2322
2326
|
const { src, onDiscuss } = props;
|
|
2323
2327
|
const marks = _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props);
|
|
2324
2328
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2325
|
-
const cta =
|
|
2329
|
+
const cta = _chunkYCE7A63Xcjs.resolveSourceRowCTA.call(void 0,
|
|
2326
2330
|
{
|
|
2327
2331
|
sourceRepo: src.sourceRepo,
|
|
2328
2332
|
documentType: src.documentType,
|
|
@@ -2332,14 +2336,16 @@ function SourceChip(props) {
|
|
|
2332
2336
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2333
2337
|
path: src.path
|
|
2334
2338
|
},
|
|
2335
|
-
|
|
2339
|
+
_chunkYCE7A63Xcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2336
2340
|
);
|
|
2337
2341
|
const Icon = cta.icon;
|
|
2338
2342
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2339
|
-
const chipClass =
|
|
2343
|
+
const chipClass = _chunkYCE7A63Xcjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2340
2344
|
if (src.items && src.items.length > 0) {
|
|
2341
|
-
const
|
|
2342
|
-
|
|
2345
|
+
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2346
|
+
const rowLabels = groupedRowLabels(src.items);
|
|
2347
|
+
const dropdownItems = src.items.map((item, i) => {
|
|
2348
|
+
const itemCta = _chunkYCE7A63Xcjs.resolveSourceRowCTA.call(void 0,
|
|
2343
2349
|
{
|
|
2344
2350
|
sourceRepo: src.sourceRepo,
|
|
2345
2351
|
documentType: item.documentType,
|
|
@@ -2349,14 +2355,12 @@ function SourceChip(props) {
|
|
|
2349
2355
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2350
2356
|
path: item.path
|
|
2351
2357
|
},
|
|
2352
|
-
|
|
2358
|
+
_chunkYCE7A63Xcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2353
2359
|
);
|
|
2354
2360
|
const ItemIcon = itemCta.icon;
|
|
2355
2361
|
const itemChatRef = itemCta.chatRef;
|
|
2356
2362
|
return {
|
|
2357
|
-
|
|
2358
|
-
// `[3]` in the answer is findable inside the dropdown.
|
|
2359
|
-
label: item.index === void 0 ? item.name : `[${item.index}] ${item.name}`,
|
|
2363
|
+
label: rowLabels[i],
|
|
2360
2364
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItemIcon, { className: "h-3.5 w-3.5" }),
|
|
2361
2365
|
href: _nullishCoalesce(itemCta.href, () => ( void 0)),
|
|
2362
2366
|
targetPlatform: itemCta.targetPlatform,
|
|
@@ -2368,14 +2372,13 @@ function SourceChip(props) {
|
|
|
2368
2372
|
} : void 0
|
|
2369
2373
|
};
|
|
2370
2374
|
});
|
|
2371
|
-
const
|
|
2372
|
-
const groupIndices = itemIndices.length > 0 ? _chunkOTGYA5F7cjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2375
|
+
const groupIndices = itemIndices.length > 0 ? _chunkYCE7A63Xcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2373
2376
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", ...marks, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2374
2377
|
_chunkEHANO6UEcjs.HoverDropdown,
|
|
2375
2378
|
{
|
|
2376
2379
|
items: dropdownItems,
|
|
2377
2380
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2378
|
-
|
|
2381
|
+
_chunkYCE7A63Xcjs.NavLinkAnchorViaRuntime,
|
|
2379
2382
|
{
|
|
2380
2383
|
href,
|
|
2381
2384
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2408,13 +2411,13 @@ function SourceChip(props) {
|
|
|
2408
2411
|
] });
|
|
2409
2412
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", ...marks, children: [
|
|
2410
2413
|
clickable,
|
|
2411
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2414
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2412
2415
|
] });
|
|
2413
2416
|
if (cta.href) {
|
|
2414
2417
|
const isEntity = !!src.externalUrl;
|
|
2415
2418
|
return wrapChip(
|
|
2416
2419
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2417
|
-
|
|
2420
|
+
_chunkYCE7A63Xcjs.NavLinkAnchorViaRuntime,
|
|
2418
2421
|
{
|
|
2419
2422
|
href: cta.href,
|
|
2420
2423
|
path: isEntity ? null : src.path,
|
|
@@ -2440,7 +2443,7 @@ function SourceChips({
|
|
|
2440
2443
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
2441
2444
|
if (loading) {
|
|
2442
2445
|
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: [
|
|
2443
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2446
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.TextHold, { children: "Sources" }) }),
|
|
2444
2447
|
/* @__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 }) }) })
|
|
2445
2448
|
] });
|
|
2446
2449
|
}
|
|
@@ -2533,7 +2536,7 @@ function EmbeddableChatInner({
|
|
|
2533
2536
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2534
2537
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2535
2538
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2536
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2539
|
+
const { attachmentsEnabled, user: identityUser } = _chunkYCE7A63Xcjs.useChatIdentity.call(void 0, );
|
|
2537
2540
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2538
2541
|
_react.useEffect.call(void 0, () => {
|
|
2539
2542
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2587,9 +2590,9 @@ function EmbeddableChatInner({
|
|
|
2587
2590
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2588
2591
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2589
2592
|
() => ({
|
|
2590
|
-
fetchCommands: (prefix, signal) =>
|
|
2593
|
+
fetchCommands: (prefix, signal) => _chunkYCE7A63Xcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2591
2594
|
resolveSourceIcon: (sourceId) => {
|
|
2592
|
-
const iconName =
|
|
2595
|
+
const iconName = _chunkYCE7A63Xcjs.getSourceIconName.call(void 0, sourceId);
|
|
2593
2596
|
if (!iconName) return void 0;
|
|
2594
2597
|
return { Icon: _chunkQOAA7ZHBcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2595
2598
|
},
|
|
@@ -2618,7 +2621,7 @@ function EmbeddableChatInner({
|
|
|
2618
2621
|
},
|
|
2619
2622
|
[controlledActiveMode, onActiveModeChange]
|
|
2620
2623
|
);
|
|
2621
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2624
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunkYCE7A63Xcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2622
2625
|
enabled: activeMode === "guide"
|
|
2623
2626
|
});
|
|
2624
2627
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2629,7 +2632,7 @@ function EmbeddableChatInner({
|
|
|
2629
2632
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2630
2633
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2631
2634
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2632
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2635
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkYCE7A63Xcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2633
2636
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2634
2637
|
});
|
|
2635
2638
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2676,7 +2679,7 @@ function EmbeddableChatInner({
|
|
|
2676
2679
|
hasMoreMessages,
|
|
2677
2680
|
loadMoreMessages,
|
|
2678
2681
|
dialogCapabilities
|
|
2679
|
-
} =
|
|
2682
|
+
} = _chunkYCE7A63Xcjs.useUnifiedChat.call(void 0, {
|
|
2680
2683
|
modes: effectiveModes,
|
|
2681
2684
|
activeMode,
|
|
2682
2685
|
mingoStateOverride: mingoState,
|
|
@@ -2723,8 +2726,8 @@ function EmbeddableChatInner({
|
|
|
2723
2726
|
addFiles: addAttachmentFiles,
|
|
2724
2727
|
removeAttachment,
|
|
2725
2728
|
clear: clearAttachments
|
|
2726
|
-
} =
|
|
2727
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2729
|
+
} = _chunkYCE7A63Xcjs.useChatAttachments.call(void 0, );
|
|
2730
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkYCE7A63Xcjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2728
2731
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2729
2732
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2730
2733
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2843,7 +2846,7 @@ function EmbeddableChatInner({
|
|
|
2843
2846
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2844
2847
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2845
2848
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2846
|
-
(reference) =>
|
|
2849
|
+
(reference) => _chunkYCE7A63Xcjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2847
2850
|
onDiscuss: askAbout,
|
|
2848
2851
|
onDisplay: displayRef,
|
|
2849
2852
|
extras
|
|
@@ -2863,7 +2866,7 @@ function EmbeddableChatInner({
|
|
|
2863
2866
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2864
2867
|
return mapped;
|
|
2865
2868
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2866
|
-
const whatToAsk =
|
|
2869
|
+
const whatToAsk = _chunkYCE7A63Xcjs.useWhatToAsk.call(void 0, {
|
|
2867
2870
|
dialogId: activeDialogId,
|
|
2868
2871
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2869
2872
|
user: {
|
|
@@ -2882,7 +2885,7 @@ function EmbeddableChatInner({
|
|
|
2882
2885
|
noteWhatToAskSend();
|
|
2883
2886
|
let augmentedText = text;
|
|
2884
2887
|
if (readyAttachments.length > 0) {
|
|
2885
|
-
const markdown = readyAttachments.map((att) =>
|
|
2888
|
+
const markdown = readyAttachments.map((att) => _chunkYCE7A63Xcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2886
2889
|
augmentedText = `${text}${markdown}`;
|
|
2887
2890
|
}
|
|
2888
2891
|
void sendMessage(augmentedText, {
|
|
@@ -2921,7 +2924,7 @@ function EmbeddableChatInner({
|
|
|
2921
2924
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2922
2925
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2923
2926
|
// built-in agents.
|
|
2924
|
-
accent: _nullishCoalesce(
|
|
2927
|
+
accent: _nullishCoalesce(_chunkYCE7A63Xcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkYCE7A63Xcjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2925
2928
|
}));
|
|
2926
2929
|
}
|
|
2927
2930
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2969,7 +2972,7 @@ function EmbeddableChatInner({
|
|
|
2969
2972
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
2970
2973
|
});
|
|
2971
2974
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
2972
|
-
|
|
2975
|
+
_chunkYCE7A63Xcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
2973
2976
|
_react.useEffect.call(void 0, () => {
|
|
2974
2977
|
const handler = (e) => {
|
|
2975
2978
|
const detail = e.detail;
|
|
@@ -2977,8 +2980,8 @@ function EmbeddableChatInner({
|
|
|
2977
2980
|
setIsOpen(true);
|
|
2978
2981
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
2979
2982
|
};
|
|
2980
|
-
window.addEventListener(
|
|
2981
|
-
return () => window.removeEventListener(
|
|
2983
|
+
window.addEventListener(_chunkYCE7A63Xcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2984
|
+
return () => window.removeEventListener(_chunkYCE7A63Xcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2982
2985
|
}, [source, askAbout, setIsOpen]);
|
|
2983
2986
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
2984
2987
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3012,10 +3015,10 @@ function EmbeddableChatInner({
|
|
|
3012
3015
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3013
3016
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3014
3017
|
};
|
|
3015
|
-
window.addEventListener(
|
|
3016
|
-
return () => window.removeEventListener(
|
|
3018
|
+
window.addEventListener(_chunkYCE7A63Xcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3019
|
+
return () => window.removeEventListener(_chunkYCE7A63Xcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3017
3020
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3018
|
-
_react.useEffect.call(void 0, () =>
|
|
3021
|
+
_react.useEffect.call(void 0, () => _chunkYCE7A63Xcjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3019
3022
|
const hasMessages = messages.length > 0;
|
|
3020
3023
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3021
3024
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3055,7 +3058,7 @@ function EmbeddableChatInner({
|
|
|
3055
3058
|
if (sourceSkeletonCount <= 0) return null;
|
|
3056
3059
|
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: [] }) });
|
|
3057
3060
|
}
|
|
3058
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3061
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunkYCE7A63Xcjs.flattenAssistantContent.call(void 0, message.content));
|
|
3059
3062
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3060
3063
|
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 }) });
|
|
3061
3064
|
},
|
|
@@ -3063,7 +3066,7 @@ function EmbeddableChatInner({
|
|
|
3063
3066
|
);
|
|
3064
3067
|
const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
|
|
3065
3068
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3066
|
-
const splitMinWidth = (isV2 ?
|
|
3069
|
+
const splitMinWidth = (isV2 ? _chunkYCE7A63Xcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkYCE7A63Xcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3067
3070
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3068
3071
|
_react.useEffect.call(void 0, () => {
|
|
3069
3072
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3082,7 +3085,7 @@ function EmbeddableChatInner({
|
|
|
3082
3085
|
[splitMinWidth]
|
|
3083
3086
|
);
|
|
3084
3087
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3085
|
-
const railStorageHydrated =
|
|
3088
|
+
const railStorageHydrated = _chunkYCE7A63Xcjs.useIsHydrated.call(void 0, );
|
|
3086
3089
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3087
3090
|
if (railStorageHydrated && !railStorageRead) {
|
|
3088
3091
|
setRailStorageRead(true);
|
|
@@ -3136,7 +3139,7 @@ function EmbeddableChatInner({
|
|
|
3136
3139
|
resetToNewChat();
|
|
3137
3140
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3138
3141
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3139
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 ||
|
|
3142
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunkYCE7A63Xcjs.awaitsDecision.call(void 0, hostMessages);
|
|
3140
3143
|
const showWhatToAsk = (content) => {
|
|
3141
3144
|
whatToAsk.clearDraft();
|
|
3142
3145
|
resetToNewChat();
|
|
@@ -3232,7 +3235,7 @@ function EmbeddableChatInner({
|
|
|
3232
3235
|
}),
|
|
3233
3236
|
[resetToNewChat, contextMaxItems]
|
|
3234
3237
|
);
|
|
3235
|
-
const splitHeaderMenuItems =
|
|
3238
|
+
const splitHeaderMenuItems = _chunkYCE7A63Xcjs.chatDialogMenuItems.call(void 0, {
|
|
3236
3239
|
onCopyLink: headerOnCopyLink,
|
|
3237
3240
|
onRename: headerOnRename,
|
|
3238
3241
|
onCompact: headerOnCompact,
|
|
@@ -3312,7 +3315,7 @@ function EmbeddableChatInner({
|
|
|
3312
3315
|
onRetry: reloadDialogs
|
|
3313
3316
|
};
|
|
3314
3317
|
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,
|
|
3315
|
-
|
|
3318
|
+
_chunkYCE7A63Xcjs.MingoChatHeader,
|
|
3316
3319
|
{
|
|
3317
3320
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3318
3321
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3332,7 +3335,7 @@ function EmbeddableChatInner({
|
|
|
3332
3335
|
const body = (
|
|
3333
3336
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3334
3337
|
// only the thread `ChatMessageList` provides it to.
|
|
3335
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3338
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.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: [
|
|
3336
3339
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3337
3340
|
"div",
|
|
3338
3341
|
{
|
|
@@ -3340,7 +3343,7 @@ function EmbeddableChatInner({
|
|
|
3340
3343
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3341
3344
|
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" : ""}`,
|
|
3342
3345
|
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,
|
|
3343
|
-
|
|
3346
|
+
_chunkYCE7A63Xcjs.ChatArchivePage,
|
|
3344
3347
|
{
|
|
3345
3348
|
dialogs: archivedDialogs,
|
|
3346
3349
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3370,7 +3373,7 @@ function EmbeddableChatInner({
|
|
|
3370
3373
|
narrow: true,
|
|
3371
3374
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3372
3375
|
innerClassName: "flex min-h-0 flex-col",
|
|
3373
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3376
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3374
3377
|
}
|
|
3375
3378
|
),
|
|
3376
3379
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3409,7 +3412,7 @@ function EmbeddableChatInner({
|
|
|
3409
3412
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3410
3413
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3411
3414
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3412
|
-
|
|
3415
|
+
_chunkYCE7A63Xcjs.ChatHeaderSearchField,
|
|
3413
3416
|
{
|
|
3414
3417
|
initialValue: mingoCaps.searchQuery,
|
|
3415
3418
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3496,10 +3499,10 @@ function EmbeddableChatInner({
|
|
|
3496
3499
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3497
3500
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3498
3501
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3499
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3502
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3500
3503
|
),
|
|
3501
3504
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3502
|
-
|
|
3505
|
+
_chunkYCE7A63Xcjs.GuideModeBanner,
|
|
3503
3506
|
{
|
|
3504
3507
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3505
3508
|
}
|
|
@@ -3509,7 +3512,7 @@ function EmbeddableChatInner({
|
|
|
3509
3512
|
// Archive list inside the rail (header lives in the split
|
|
3510
3513
|
// header's left cell above). Right chat block stays put.
|
|
3511
3514
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3512
|
-
|
|
3515
|
+
_chunkYCE7A63Xcjs.ChatArchivePage,
|
|
3513
3516
|
{
|
|
3514
3517
|
embedded: true,
|
|
3515
3518
|
dialogs: archivedDialogs,
|
|
@@ -3523,7 +3526,7 @@ function EmbeddableChatInner({
|
|
|
3523
3526
|
}
|
|
3524
3527
|
)
|
|
3525
3528
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3526
|
-
|
|
3529
|
+
_chunkYCE7A63Xcjs.MingoHistoryRail,
|
|
3527
3530
|
{
|
|
3528
3531
|
dialogs,
|
|
3529
3532
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3551,7 +3554,7 @@ function EmbeddableChatInner({
|
|
|
3551
3554
|
// v2: the archive opens in the chat column under the chat's
|
|
3552
3555
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3553
3556
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3554
|
-
|
|
3557
|
+
_chunkYCE7A63Xcjs.MingoArchiveList,
|
|
3555
3558
|
{
|
|
3556
3559
|
dialogs: archivedDialogs,
|
|
3557
3560
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3564,7 +3567,7 @@ function EmbeddableChatInner({
|
|
|
3564
3567
|
}
|
|
3565
3568
|
)
|
|
3566
3569
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3567
|
-
|
|
3570
|
+
_chunkYCE7A63Xcjs.MingoChatRail,
|
|
3568
3571
|
{
|
|
3569
3572
|
...mingoRailProps,
|
|
3570
3573
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3583,7 +3586,7 @@ function EmbeddableChatInner({
|
|
|
3583
3586
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3584
3587
|
// the compose view.
|
|
3585
3588
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3586
|
-
|
|
3589
|
+
_chunkYCE7A63Xcjs.MingoHistoryRail,
|
|
3587
3590
|
{
|
|
3588
3591
|
className: "duration-200 animate-in fade-in-0",
|
|
3589
3592
|
dialogs,
|
|
@@ -3626,14 +3629,14 @@ function EmbeddableChatInner({
|
|
|
3626
3629
|
{
|
|
3627
3630
|
className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0",
|
|
3628
3631
|
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,
|
|
3629
|
-
|
|
3632
|
+
_chunkYCE7A63Xcjs.ChatMessageList,
|
|
3630
3633
|
{
|
|
3631
3634
|
messages,
|
|
3632
3635
|
isLoading: messagesInitialLoading,
|
|
3633
3636
|
fill: previewMode,
|
|
3634
3637
|
appearance,
|
|
3635
3638
|
isTyping: chatLoading,
|
|
3636
|
-
typingMessage: streamingProgress ?
|
|
3639
|
+
typingMessage: streamingProgress ? _chunkYCE7A63Xcjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
|
|
3637
3640
|
pendingApprovals,
|
|
3638
3641
|
autoScroll: !previewMode,
|
|
3639
3642
|
pinBottom: previewMode,
|
|
@@ -3646,7 +3649,7 @@ function EmbeddableChatInner({
|
|
|
3646
3649
|
renderMention,
|
|
3647
3650
|
renderAfterMessage: renderMessageSources,
|
|
3648
3651
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3649
|
-
NavLinkAnchor:
|
|
3652
|
+
NavLinkAnchor: _chunkYCE7A63Xcjs.NavLinkAnchorViaRuntime,
|
|
3650
3653
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3651
3654
|
contentClassName: "max-w-none pb-0",
|
|
3652
3655
|
fullWidth: true,
|
|
@@ -3660,7 +3663,7 @@ function EmbeddableChatInner({
|
|
|
3660
3663
|
quick-action chips. Guide mode keeps the slash-command
|
|
3661
3664
|
onboarding list below. */
|
|
3662
3665
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3663
|
-
|
|
3666
|
+
_chunkYCE7A63Xcjs.MingoWelcome,
|
|
3664
3667
|
{
|
|
3665
3668
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3666
3669
|
historyPageSize,
|
|
@@ -3676,7 +3679,7 @@ function EmbeddableChatInner({
|
|
|
3676
3679
|
+ slash-command onboarding list share one scroll region,
|
|
3677
3680
|
with a pinned quick-action chip row above the composer. */
|
|
3678
3681
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3679
|
-
|
|
3682
|
+
_chunkYCE7A63Xcjs.GuideWelcome,
|
|
3680
3683
|
{
|
|
3681
3684
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3682
3685
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3733,7 +3736,7 @@ function EmbeddableChatInner({
|
|
|
3733
3736
|
}
|
|
3734
3737
|
),
|
|
3735
3738
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3736
|
-
|
|
3739
|
+
_chunkYCE7A63Xcjs.ChatAttachmentChipStrip,
|
|
3737
3740
|
{
|
|
3738
3741
|
attachments: stagedAttachments,
|
|
3739
3742
|
onRemove: removeAttachment,
|
|
@@ -3741,7 +3744,7 @@ function EmbeddableChatInner({
|
|
|
3741
3744
|
}
|
|
3742
3745
|
),
|
|
3743
3746
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3744
|
-
|
|
3747
|
+
_chunkYCE7A63Xcjs.ChatComposer,
|
|
3745
3748
|
{
|
|
3746
3749
|
archived: isViewingArchived,
|
|
3747
3750
|
lock: composerLock,
|
|
@@ -3793,7 +3796,7 @@ function EmbeddableChatInner({
|
|
|
3793
3796
|
),
|
|
3794
3797
|
galleryModal,
|
|
3795
3798
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3796
|
-
|
|
3799
|
+
_chunkYCE7A63Xcjs.ChatDialogModals,
|
|
3797
3800
|
{
|
|
3798
3801
|
renameTarget,
|
|
3799
3802
|
setRenameTarget,
|
|
@@ -3809,13 +3812,13 @@ function EmbeddableChatInner({
|
|
|
3809
3812
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3810
3813
|
] }) }) })
|
|
3811
3814
|
);
|
|
3812
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3815
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYCE7A63Xcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3813
3816
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3814
3817
|
sourceLabel,
|
|
3815
3818
|
" AI Assistant"
|
|
3816
3819
|
] }) }),
|
|
3817
3820
|
body
|
|
3818
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3821
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3819
3822
|
_chunkEHANO6UEcjs.DrawerContent,
|
|
3820
3823
|
{
|
|
3821
3824
|
side: "right",
|