@flamingo-stack/openframe-frontend-core 0.0.840 → 0.0.842
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/build/route-styles.cjs +3 -1
- package/dist/build/style-sources.cjs +15 -2
- package/dist/build/style-sources.d.ts +3 -0
- package/dist/{case-study-card-TK7ZCNLM.cjs → case-study-card-VN3JBNF5.cjs} +3 -3
- package/dist/{chunk-RSJYTQEA.cjs → chunk-23DVVS4I.cjs} +104 -104
- package/dist/{chunk-GMK4JGC2.cjs → chunk-2HRQU4ZL.cjs} +44 -44
- package/dist/{chunk-HXTZZE3R.cjs → chunk-3ONBCAD2.cjs} +59 -59
- package/dist/{chunk-DGY5KEPY.cjs → chunk-4ASUUB3A.cjs} +83 -83
- package/dist/{chunk-WCOSGDGA.cjs → chunk-4R4HAFXI.cjs} +2 -2
- package/dist/{chunk-INBFKUZA.cjs → chunk-5CPEMPNP.cjs} +15 -15
- package/dist/{chunk-CCRXBFNL.cjs → chunk-6HFTSVVC.cjs} +8 -8
- package/dist/{chunk-FHI4I3TQ.cjs → chunk-6M764K5Z.cjs} +12 -12
- package/dist/{chunk-275AQ6LC.cjs → chunk-7UZYI4GV.cjs} +4 -4
- package/dist/{chunk-SOCCHWDK.cjs → chunk-BHOVF4KP.cjs} +2 -2
- package/dist/{chunk-WVNUCKB7.cjs → chunk-CNMXP77I.cjs} +4 -4
- package/dist/{chunk-Q6WUHYOG.cjs → chunk-CQQRGM6D.cjs} +85 -85
- package/dist/{chunk-TD4CC4KV.cjs → chunk-EUEPGHY4.cjs} +6 -6
- package/dist/{chunk-DYDQLS2R.cjs → chunk-GQJXOX5S.cjs} +213 -213
- package/dist/{chunk-AT6D7BAZ.cjs → chunk-IVM35OAW.cjs} +3 -3
- package/dist/{chunk-JM2XA7VY.cjs → chunk-IVS23CAK.cjs} +15 -15
- package/dist/{chunk-ZAO5SYBJ.cjs → chunk-MWQOM2EI.cjs} +4 -4
- package/dist/{chunk-WI7EXAZT.cjs → chunk-NMLNZCK2.cjs} +2 -2
- package/dist/{chunk-APNONOHY.cjs → chunk-PZNWIJRZ.cjs} +13 -10
- package/dist/{chunk-MYAPG3FQ.cjs → chunk-QPJUQ5YU.cjs} +21 -21
- package/dist/{chunk-VBH2RCFM.cjs → chunk-RAFWT3WG.cjs} +78 -78
- package/dist/{chunk-JUEAZCD6.cjs → chunk-RSZZTB5T.cjs} +54 -54
- package/dist/{chunk-7WKRMJI6.cjs → chunk-SC36S7DJ.cjs} +2 -2
- package/dist/{chunk-UZPYYHF5.cjs → chunk-SOTTMZ6U.cjs} +19 -19
- package/dist/{chunk-E7M54JWW.cjs → chunk-SSSI2RBV.cjs} +14 -14
- package/dist/{chunk-Z35PL3UR.cjs → chunk-WOYARKPQ.cjs} +34 -34
- package/dist/{chunk-EV6BPF47.cjs → chunk-WPMJUYW3.cjs} +143 -143
- package/dist/{chunk-FRL2ZN4O.cjs → chunk-XCVH5BCZ.cjs} +6 -6
- package/dist/{chunk-IELPVUPR.cjs → chunk-YNKXXDOI.cjs} +23 -23
- package/dist/{chunk-GUKFMMDZ.cjs → chunk-ZOWAYKDN.cjs} +3 -3
- package/dist/{cloud-tenants-PV63RZ73.cjs → cloud-tenants-U6Y2UZVF.cjs} +11 -11
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/index.cjs +8 -8
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/index.cjs +11 -11
- package/dist/components/help-center-pages/index.cjs +105 -105
- package/dist/components/index.cjs +65 -65
- package/dist/components/meeting-scheduler/index.cjs +50 -50
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +18 -18
- package/dist/components/ui/index.cjs +11 -11
- package/dist/{devices-VECG5JNC.cjs → devices-HB4GEMJH.cjs} +12 -12
- package/dist/{embeddable-chat-VRYAQQF6.cjs → embeddable-chat-C6DUH2JL.cjs} +78 -78
- package/dist/hooks/index.cjs +4 -4
- package/dist/index.cjs +15 -15
- package/dist/{knowledge-YJSDJIXT.cjs → knowledge-I53Z6DV7.cjs} +12 -12
- package/dist/{logs-42JG3NZ5.cjs → logs-SFLAZIQG.cjs} +18 -18
- package/dist/platform-domains.cjs +14 -10
- package/dist/platform-domains.d.ts +12 -7
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +14 -10
- package/dist/{policies-D4QNVJ26.cjs → policies-EIAGQO6T.cjs} +15 -15
- package/dist/{scripts-4VFYBXBE.cjs → scripts-SNJ4UVRF.cjs} +16 -16
- package/dist/{software-update-OSDZQ5CP.cjs → software-update-AZFRUC5N.cjs} +14 -14
- package/dist/utils/index.cjs +13 -10
- package/package.json +1 -1
- package/src/platform-domains.ts +28 -20
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNMLNZCK2cjs = require('./chunk-NMLNZCK2.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 _chunkWPMJUYW3cjs = require('./chunk-WPMJUYW3.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
@@ -1874,7 +1874,7 @@ require('./chunk-LMBYZITR.cjs');
|
|
|
1874
1874
|
require('./chunk-TMVC7S2R.cjs');
|
|
1875
1875
|
require('./chunk-IYHH5EIO.cjs');
|
|
1876
1876
|
require('./chunk-XIBCMGBW.cjs');
|
|
1877
|
-
require('./chunk-
|
|
1877
|
+
require('./chunk-XCVH5BCZ.cjs');
|
|
1878
1878
|
require('./chunk-FW7RKWPY.cjs');
|
|
1879
1879
|
require('./chunk-BUEEQD3G.cjs');
|
|
1880
1880
|
require('./chunk-JKX2C3I2.cjs');
|
|
@@ -1886,14 +1886,14 @@ require('./chunk-IX2E3AN7.cjs');
|
|
|
1886
1886
|
require('./chunk-7DNL734S.cjs');
|
|
1887
1887
|
|
|
1888
1888
|
|
|
1889
|
-
var
|
|
1889
|
+
var _chunk23DVVS4Icjs = require('./chunk-23DVVS4I.cjs');
|
|
1890
1890
|
require('./chunk-5GBLXY5F.cjs');
|
|
1891
1891
|
|
|
1892
1892
|
|
|
1893
1893
|
var _chunkNFNSPLGCcjs = require('./chunk-NFNSPLGC.cjs');
|
|
1894
1894
|
|
|
1895
1895
|
|
|
1896
|
-
var
|
|
1896
|
+
var _chunkEUEPGHY4cjs = require('./chunk-EUEPGHY4.cjs');
|
|
1897
1897
|
require('./chunk-JBTH3O2C.cjs');
|
|
1898
1898
|
require('./chunk-USUVHAQ7.cjs');
|
|
1899
1899
|
require('./chunk-S5C3OZCO.cjs');
|
|
@@ -1906,7 +1906,7 @@ require('./chunk-RUHKTWGB.cjs');
|
|
|
1906
1906
|
require('./chunk-UAI4VMEF.cjs');
|
|
1907
1907
|
require('./chunk-COWMXUHN.cjs');
|
|
1908
1908
|
require('./chunk-YSDB6HGQ.cjs');
|
|
1909
|
-
require('./chunk-
|
|
1909
|
+
require('./chunk-PZNWIJRZ.cjs');
|
|
1910
1910
|
require('./chunk-FX35L4Y6.cjs');
|
|
1911
1911
|
|
|
1912
1912
|
|
|
@@ -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: _chunkWPMJUYW3cjs.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, _chunkWPMJUYW3cjs.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(_chunkWPMJUYW3cjs.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: _chunkWPMJUYW3cjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkWPMJUYW3cjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2139
2139
|
}
|
|
2140
2140
|
function recordsOf(source) {
|
|
2141
2141
|
if (!source.items || source.items.length === 0) return [source];
|
|
@@ -2152,7 +2152,7 @@ function recordsOf(source) {
|
|
|
2152
2152
|
}
|
|
2153
2153
|
function recordKey(record) {
|
|
2154
2154
|
const id = record.id || record.path;
|
|
2155
|
-
return record.documentType && id ? `${
|
|
2155
|
+
return record.documentType && id ? `${_chunk23DVVS4Icjs.canonicalContentRefType.call(void 0, record.documentType)}:${id}` : null;
|
|
2156
2156
|
}
|
|
2157
2157
|
function splitByCards(sources, cards) {
|
|
2158
2158
|
const records = sources.flatMap(recordsOf);
|
|
@@ -2163,11 +2163,11 @@ function splitByCards(sources, cards) {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
const cited = [];
|
|
2165
2165
|
for (const card of cards) {
|
|
2166
|
-
const record = byKey.get(`${
|
|
2166
|
+
const record = byKey.get(`${_chunk23DVVS4Icjs.canonicalContentRefType.call(void 0, card.type)}:${card.id}`);
|
|
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: _chunkWPMJUYW3cjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkWPMJUYW3cjs.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 + _chunkWPMJUYW3cjs.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(_chunkWPMJUYW3cjs.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: _chunkWPMJUYW3cjs.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 = _chunkWPMJUYW3cjs.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
|
+
_chunkWPMJUYW3cjs.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 = _chunkWPMJUYW3cjs.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 = _chunkWPMJUYW3cjs.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
|
+
_chunkWPMJUYW3cjs.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 ? _chunkWPMJUYW3cjs.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
|
+
_chunkNMLNZCK2cjs.HoverDropdown,
|
|
2379
2379
|
{
|
|
2380
2380
|
items: dropdownItems,
|
|
2381
2381
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2382
|
-
|
|
2382
|
+
_chunkWPMJUYW3cjs.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, _chunkWPMJUYW3cjs.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
|
+
_chunkWPMJUYW3cjs.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, _chunkWPMJUYW3cjs.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 } = _chunkWPMJUYW3cjs.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) => _chunkWPMJUYW3cjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2611
2611
|
resolveSourceIcon: (sourceId) => {
|
|
2612
|
-
const iconName =
|
|
2612
|
+
const iconName = _chunkWPMJUYW3cjs.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 } = _chunkWPMJUYW3cjs.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 } = _chunkWPMJUYW3cjs.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
|
+
} = _chunkWPMJUYW3cjs.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
|
+
} = _chunkWPMJUYW3cjs.useChatAttachments.call(void 0, );
|
|
2746
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkWPMJUYW3cjs.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) => _chunkWPMJUYW3cjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2878
2878
|
onDiscuss: askAbout,
|
|
2879
2879
|
onDisplay: displayRef,
|
|
2880
2880
|
extras
|
|
@@ -2882,7 +2882,7 @@ function EmbeddableChatInner({
|
|
|
2882
2882
|
[askAbout, displayRef, extras]
|
|
2883
2883
|
);
|
|
2884
2884
|
const mingoAssistantIcon = _react.useMemo.call(void 0,
|
|
2885
|
-
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2885
|
+
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEUEPGHY4cjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6LDL3UZEcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
|
|
2886
2886
|
[effectiveAssistantIcon]
|
|
2887
2887
|
);
|
|
2888
2888
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
@@ -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 = _chunkWPMJUYW3cjs.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) => _chunkWPMJUYW3cjs.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(_chunkWPMJUYW3cjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkWPMJUYW3cjs.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
|
+
_chunkWPMJUYW3cjs.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(_chunkWPMJUYW3cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3012
|
+
return () => window.removeEventListener(_chunkWPMJUYW3cjs.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(_chunkWPMJUYW3cjs.ASK_AI_OPEN_EVENT, handler);
|
|
3047
|
+
return () => window.removeEventListener(_chunkWPMJUYW3cjs.ASK_AI_OPEN_EVENT, handler);
|
|
3048
3048
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3049
|
-
_react.useEffect.call(void 0, () =>
|
|
3049
|
+
_react.useEffect.call(void 0, () => _chunkWPMJUYW3cjs.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, _chunkWPMJUYW3cjs.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 ? _chunkWPMJUYW3cjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkWPMJUYW3cjs.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 = _chunkWPMJUYW3cjs.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 || _chunkWPMJUYW3cjs.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 = _chunkWPMJUYW3cjs.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 = _chunkWPMJUYW3cjs.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
|
+
_chunkWPMJUYW3cjs.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
|
+
_chunkWPMJUYW3cjs.MingoArchiveList,
|
|
3394
3394
|
{
|
|
3395
3395
|
dialogs: archivedDialogs,
|
|
3396
3396
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3418,7 +3418,7 @@ function EmbeddableChatInner({
|
|
|
3418
3418
|
hasAboveComposer && !splitMode && "min-h-32"
|
|
3419
3419
|
),
|
|
3420
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,
|
|
3421
|
-
|
|
3421
|
+
_chunkWPMJUYW3cjs.ChatMessageList,
|
|
3422
3422
|
{
|
|
3423
3423
|
messages,
|
|
3424
3424
|
isLoading: messagesInitialLoading,
|
|
@@ -3437,7 +3437,7 @@ function EmbeddableChatInner({
|
|
|
3437
3437
|
renderMention,
|
|
3438
3438
|
renderAfterMessage: renderMessageSources,
|
|
3439
3439
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3440
|
-
NavLinkAnchor:
|
|
3440
|
+
NavLinkAnchor: _chunkWPMJUYW3cjs.NavLinkAnchorViaRuntime,
|
|
3441
3441
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3442
3442
|
contentClassName: _chunk63A4GZMBcjs.cn.call(void 0, "max-w-none pb-0", splitMode && threadContentClassName),
|
|
3443
3443
|
fullWidth: true,
|
|
@@ -3451,7 +3451,7 @@ function EmbeddableChatInner({
|
|
|
3451
3451
|
quick-action chips. Guide mode keeps the slash-command
|
|
3452
3452
|
onboarding list below. */
|
|
3453
3453
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3454
|
-
|
|
3454
|
+
_chunkWPMJUYW3cjs.MingoWelcome,
|
|
3455
3455
|
{
|
|
3456
3456
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3457
3457
|
historyPageSize,
|
|
@@ -3471,7 +3471,7 @@ function EmbeddableChatInner({
|
|
|
3471
3471
|
+ slash-command onboarding list share one scroll region,
|
|
3472
3472
|
with a pinned quick-action chip row above the composer. */
|
|
3473
3473
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3474
|
-
|
|
3474
|
+
_chunkWPMJUYW3cjs.GuideWelcome,
|
|
3475
3475
|
{
|
|
3476
3476
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3477
3477
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3519,9 +3519,9 @@ function EmbeddableChatInner({
|
|
|
3519
3519
|
children: aboveComposer
|
|
3520
3520
|
}
|
|
3521
3521
|
) : null;
|
|
3522
|
-
const attachmentStrip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3522
|
+
const attachmentStrip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWPMJUYW3cjs.ChatAttachmentChipStrip, { attachments: stagedAttachments, onRemove: removeAttachment, disabled: chatLoading });
|
|
3523
3523
|
const composerNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3524
|
-
|
|
3524
|
+
_chunkWPMJUYW3cjs.ChatComposer,
|
|
3525
3525
|
{
|
|
3526
3526
|
archived: isViewingArchived,
|
|
3527
3527
|
lock: composerLock,
|
|
@@ -3571,7 +3571,7 @@ function EmbeddableChatInner({
|
|
|
3571
3571
|
composerKey
|
|
3572
3572
|
);
|
|
3573
3573
|
const dialogModals = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3574
|
-
|
|
3574
|
+
_chunkWPMJUYW3cjs.ChatDialogModals,
|
|
3575
3575
|
{
|
|
3576
3576
|
renameTarget,
|
|
3577
3577
|
setRenameTarget,
|
|
@@ -3587,7 +3587,7 @@ function EmbeddableChatInner({
|
|
|
3587
3587
|
const classicBody = (
|
|
3588
3588
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3589
3589
|
// only the thread `ChatMessageList` provides it to.
|
|
3590
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3590
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWPMJUYW3cjs.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: [
|
|
3591
3591
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3592
3592
|
"div",
|
|
3593
3593
|
{
|
|
@@ -3595,7 +3595,7 @@ function EmbeddableChatInner({
|
|
|
3595
3595
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3596
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" : ""}`,
|
|
3597
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,
|
|
3598
|
-
|
|
3598
|
+
_chunkWPMJUYW3cjs.ChatArchivePage,
|
|
3599
3599
|
{
|
|
3600
3600
|
dialogs: archivedDialogs,
|
|
3601
3601
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3625,7 +3625,7 @@ function EmbeddableChatInner({
|
|
|
3625
3625
|
narrow: true,
|
|
3626
3626
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3627
3627
|
innerClassName: "flex min-h-0 flex-col",
|
|
3628
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3628
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWPMJUYW3cjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3629
3629
|
}
|
|
3630
3630
|
),
|
|
3631
3631
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3664,7 +3664,7 @@ function EmbeddableChatInner({
|
|
|
3664
3664
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3665
3665
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3666
3666
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3667
|
-
|
|
3667
|
+
_chunkWPMJUYW3cjs.ChatHeaderSearchField,
|
|
3668
3668
|
{
|
|
3669
3669
|
initialValue: mingoCaps.searchQuery,
|
|
3670
3670
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3751,10 +3751,10 @@ function EmbeddableChatInner({
|
|
|
3751
3751
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3752
3752
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3753
3753
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3754
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3754
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWPMJUYW3cjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3755
3755
|
),
|
|
3756
3756
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3757
|
-
|
|
3757
|
+
_chunkWPMJUYW3cjs.GuideModeBanner,
|
|
3758
3758
|
{
|
|
3759
3759
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3760
3760
|
}
|
|
@@ -3764,7 +3764,7 @@ function EmbeddableChatInner({
|
|
|
3764
3764
|
// Archive list inside the rail (header lives in the split
|
|
3765
3765
|
// header's left cell above). Right chat block stays put.
|
|
3766
3766
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3767
|
-
|
|
3767
|
+
_chunkWPMJUYW3cjs.ChatArchivePage,
|
|
3768
3768
|
{
|
|
3769
3769
|
embedded: true,
|
|
3770
3770
|
dialogs: archivedDialogs,
|
|
@@ -3778,7 +3778,7 @@ function EmbeddableChatInner({
|
|
|
3778
3778
|
}
|
|
3779
3779
|
)
|
|
3780
3780
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3781
|
-
|
|
3781
|
+
_chunkWPMJUYW3cjs.MingoHistoryRail,
|
|
3782
3782
|
{
|
|
3783
3783
|
dialogs,
|
|
3784
3784
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3807,7 +3807,7 @@ function EmbeddableChatInner({
|
|
|
3807
3807
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3808
3808
|
archiveListNode
|
|
3809
3809
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3810
|
-
|
|
3810
|
+
_chunkWPMJUYW3cjs.MingoChatRail,
|
|
3811
3811
|
{
|
|
3812
3812
|
...mingoRailProps,
|
|
3813
3813
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3826,7 +3826,7 @@ function EmbeddableChatInner({
|
|
|
3826
3826
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3827
3827
|
// the compose view.
|
|
3828
3828
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3829
|
-
|
|
3829
|
+
_chunkWPMJUYW3cjs.MingoHistoryRail,
|
|
3830
3830
|
{
|
|
3831
3831
|
className: "duration-200 animate-in fade-in-0",
|
|
3832
3832
|
dialogs,
|
|
@@ -3870,11 +3870,11 @@ function EmbeddableChatInner({
|
|
|
3870
3870
|
] }) }) })
|
|
3871
3871
|
);
|
|
3872
3872
|
const pageHeader = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3873
|
-
|
|
3873
|
+
_chunkWPMJUYW3cjs.MingoChatHeader,
|
|
3874
3874
|
{
|
|
3875
3875
|
variant: "page",
|
|
3876
3876
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3877
|
-
meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName,
|
|
3877
|
+
meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName, _chunkWPMJUYW3cjs.chatDayLabel.call(void 0, _optionalChain([activeDialog, 'optionalAccess', _81 => _81.timestamp]))],
|
|
3878
3878
|
menuItems: headerShowBack && !isViewingArchived && !archiveOpen ? mingoHeaderMenuItems : [],
|
|
3879
3879
|
extraMenuItems: isViewingArchived || archiveOpen ? void 0 : chatMenuExtraItems,
|
|
3880
3880
|
onRestore: isViewingArchived && !archiveOpen ? headerOnRestore : void 0,
|
|
@@ -3894,7 +3894,7 @@ function EmbeddableChatInner({
|
|
|
3894
3894
|
),
|
|
3895
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: [
|
|
3896
3896
|
pageHeader,
|
|
3897
|
-
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3897
|
+
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWPMJUYW3cjs.GuideModeBanner, { className: "duration-200 animate-in fade-in-0" }),
|
|
3898
3898
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: archiveOpen ? archiveListNode : threadArea }),
|
|
3899
3899
|
galleryModal,
|
|
3900
3900
|
dialogModals,
|
|
@@ -3902,7 +3902,7 @@ function EmbeddableChatInner({
|
|
|
3902
3902
|
] }) })
|
|
3903
3903
|
}
|
|
3904
3904
|
);
|
|
3905
|
-
const body = splitMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3905
|
+
const body = splitMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWPMJUYW3cjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: [
|
|
3906
3906
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3907
3907
|
"div",
|
|
3908
3908
|
{
|
|
@@ -3920,14 +3920,14 @@ function EmbeddableChatInner({
|
|
|
3920
3920
|
threadContainer ? null : dialogModals,
|
|
3921
3921
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3922
3922
|
] }) }) : classicBody;
|
|
3923
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3923
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWPMJUYW3cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3924
3924
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3925
3925
|
sourceLabel,
|
|
3926
3926
|
" AI Assistant"
|
|
3927
3927
|
] }) }),
|
|
3928
3928
|
body
|
|
3929
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3930
|
-
|
|
3929
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMLNZCK2cjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWPMJUYW3cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3930
|
+
_chunkNMLNZCK2cjs.DrawerContent,
|
|
3931
3931
|
{
|
|
3932
3932
|
side: "right",
|
|
3933
3933
|
flush: true,
|