@flamingo-stack/openframe-frontend-core 0.0.829 → 0.0.831
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/export-map.json +1 -1
- package/dist/{case-study-card-QMFGPABF.cjs → case-study-card-TK7ZCNLM.cjs} +5 -5
- package/dist/{chunk-LKP5R3EQ.cjs → chunk-46LATWQR.cjs} +2 -2
- package/dist/{chunk-IBD2FPSX.cjs → chunk-4JHO2NVI.cjs} +2 -2
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-5L3UKDC6.cjs} +16 -16
- package/dist/{chunk-THPAGFT6.cjs → chunk-7COZUANC.cjs} +60 -69
- package/dist/{chunk-DWSU35QQ.cjs → chunk-7WQD3R5J.cjs} +84 -84
- package/dist/{chunk-DAKGX2WF.cjs → chunk-APNONOHY.cjs} +2 -2
- package/dist/{chunk-KPGKTEEB.cjs → chunk-BUEEQD3G.cjs} +2 -2
- package/dist/{chunk-YMLRDVPO.cjs → chunk-C4OQIYGW.cjs} +11 -11
- package/dist/{chunk-IFLGIBFZ.cjs → chunk-CP46CVUC.cjs} +91 -91
- package/dist/{chunk-UO6F6LLI.cjs → chunk-D6ZSRGH2.cjs} +699 -642
- package/dist/{chunk-UE5ZBCJ4.cjs → chunk-DAQMCWCK.cjs} +3 -3
- package/dist/{chunk-MFYSV7DE.cjs → chunk-EYSIQORA.cjs} +94 -94
- package/dist/{chunk-DU6AF77X.cjs → chunk-FNNDGOR3.cjs} +33 -33
- package/dist/{chunk-OKTNRGM5.cjs → chunk-GPXKG34G.cjs} +54 -54
- package/dist/{chunk-FMSAN6SR.cjs → chunk-H3WTYAVR.cjs} +129 -129
- package/dist/{chunk-HMC2IWV4.cjs → chunk-HDLY6OMQ.cjs} +6 -6
- package/dist/{chunk-2VLPXUQK.cjs → chunk-HLJXCOMA.cjs} +4 -4
- package/dist/{chunk-PBHP3FHO.cjs → chunk-JBTH3O2C.cjs} +4 -4
- package/dist/{chunk-2HQNXX2K.cjs → chunk-JQCQCE6U.cjs} +2 -2
- package/dist/{chunk-AY6XJOIN.cjs → chunk-LWMWY3JO.cjs} +45 -45
- package/dist/{chunk-R3PKAIX3.cjs → chunk-OGPAVRNF.cjs} +17 -17
- package/dist/{chunk-4DUVTJ6A.cjs → chunk-P5DWAVWK.cjs} +28 -28
- package/dist/{chunk-4ZIKDOPY.cjs → chunk-QHBKZJ6A.cjs} +4 -4
- package/dist/{chunk-PRZAEPGG.cjs → chunk-R6QZHOJB.cjs} +46 -46
- package/dist/{chunk-F2J5WN6U.cjs → chunk-SOCCHWDK.cjs} +2 -2
- package/dist/{chunk-IMDYB77M.cjs → chunk-SRHHLDBP.cjs} +36 -36
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-SWMUW3RR.cjs} +18 -18
- package/dist/{chunk-6GPMVHJN.cjs → chunk-TD4CC4KV.cjs} +20 -20
- package/dist/{chunk-6WNSZ5XP.cjs → chunk-UGM3YDCK.cjs} +25 -25
- package/dist/{chunk-AH4YWTWZ.cjs → chunk-UQS2RI5Y.cjs} +12 -12
- package/dist/{chunk-IHRMX3X6.cjs → chunk-VBGBKRDO.cjs} +684 -661
- package/dist/{chunk-YHQDB5QJ.cjs → chunk-VQG2A7GA.cjs} +2 -2
- package/dist/{chunk-S6UJEW4G.cjs → chunk-WCOSGDGA.cjs} +2 -2
- package/dist/{chunk-ENMPSEEQ.cjs → chunk-WVNUCKB7.cjs} +4 -4
- package/dist/{chunk-LNXRTVOY.cjs → chunk-X76TZ5YR.cjs} +21 -21
- package/dist/{chunk-IBQ3CSKL.cjs → chunk-X7VQM5TU.cjs} +6 -6
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{chunk-W4VEDSAX.cjs → chunk-ZABZIM2Y.cjs} +6 -6
- package/dist/{chunk-ZJXLNIWC.cjs → chunk-ZJ5K6XHW.cjs} +21 -21
- package/dist/{cloud-tenants-YVCSVVIS.cjs → cloud-tenants-E2AC4WEJ.cjs} +20 -20
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +21 -14
- package/dist/components/chat/guide-welcome.d.ts +5 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +4 -29
- package/dist/components/chat/index.cjs +19 -15
- package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +105 -19
- package/dist/components/chat/mingo-welcome.d.ts +6 -13
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +5 -9
- package/dist/components/chat/quick-action-chip.d.ts +8 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +18 -8
- package/dist/components/chat/utils/icon-registry.d.ts +2 -2
- package/dist/components/chat/utils/icon-registry.js +2 -2
- package/dist/components/contact/index.cjs +21 -21
- package/dist/components/docs/index.cjs +24 -24
- package/dist/components/embeds/index.cjs +21 -21
- package/dist/components/faq/index.cjs +22 -22
- package/dist/components/features/index.cjs +22 -20
- package/dist/components/features/notifications/index.d.ts +3 -1
- package/dist/components/features/notifications/index.d.ts.map +1 -1
- package/dist/components/features/notifications/index.js +2 -0
- package/dist/components/features/notifications/notification-category-icon.d.ts +7 -0
- package/dist/components/features/notifications/notification-category-icon.d.ts.map +1 -0
- package/dist/components/features/notifications/notification-category-icon.js +26 -0
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/types.d.ts +1 -1
- package/dist/components/features/notifications/types.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +125 -125
- package/dist/components/index.cjs +90 -82
- package/dist/components/meeting-scheduler/index.cjs +69 -69
- package/dist/components/navigation/index.cjs +23 -23
- package/dist/components/navigation/site-footer.d.ts.map +1 -1
- package/dist/components/navigation/site-footer.js +2 -12
- package/dist/components/onboarding-guides/index.cjs +23 -23
- package/dist/components/product-demo/index.cjs +31 -31
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/social-icon-row.d.ts +6 -2
- package/dist/components/social-icon-row.d.ts.map +1 -1
- package/dist/components/social-icon-row.js +5 -6
- package/dist/components/tickets/index.cjs +27 -27
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +27 -1
- package/dist/components/ui/index.cjs +24 -20
- package/dist/{devices-AW6BERJF.cjs → devices-CAYUGD2N.cjs} +21 -21
- package/dist/{embeddable-chat-ZJIOMMSA.cjs → embeddable-chat-FYHMR66R.cjs} +121 -114
- package/dist/hooks/index.cjs +7 -7
- package/dist/index.cjs +31 -25
- package/dist/{knowledge-PEOXTIVS.cjs → knowledge-OI4OPEVL.cjs} +21 -21
- package/dist/{logs-CYA7H4KM.cjs → logs-B3XV2NHV.cjs} +27 -27
- package/dist/platform-domains.cjs +4 -0
- package/dist/platform-domains.d.ts +2 -0
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +4 -0
- package/dist/{policies-M6QSFL5G.cjs → policies-ZB4Z42DV.cjs} +24 -24
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-CN3G7JNR.cjs} +7 -7
- package/dist/{scripts-Y46ECDDP.cjs → scripts-I4DNUOQC.cjs} +27 -27
- package/dist/{software-update-OTC2DGQZ.cjs → software-update-AWH4WXOH.cjs} +24 -24
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-PLYD2NSY.cjs} +11 -11
- package/dist/types/marketing.d.ts +61 -216
- package/dist/types/marketing.d.ts.map +1 -1
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/notifications.cjs +55 -0
- package/dist/utils/notifications.d.ts +29 -0
- package/dist/utils/notifications.d.ts.map +1 -0
- package/dist/utils/notifications.js +53 -0
- package/dist/utils/social-platforms.d.ts +9 -9
- package/dist/utils/social-platforms.d.ts.map +1 -1
- package/package.json +7 -1
- package/src/components/chat/embeddable-chat.tsx +29 -45
- package/src/components/chat/guide-welcome.tsx +12 -57
- package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
- package/src/components/chat/mingo-welcome.tsx +16 -35
- package/src/components/chat/quick-action-chip.tsx +32 -8
- package/src/components/chat/utils/icon-registry.ts +5 -5
- package/src/components/chat/utils/index.ts +1 -1
- package/src/components/features/notifications/index.ts +2 -1
- package/src/components/features/notifications/notification-category-icon.tsx +38 -0
- package/src/components/features/notifications/notification-tile.tsx +2 -1
- package/src/components/features/notifications/types.ts +1 -2
- package/src/components/navigation/site-footer.tsx +2 -11
- package/src/components/social-icon-row.tsx +11 -10
- package/src/components/ui/actions-menu.tsx +35 -1
- package/src/platform-domains.ts +5 -0
- package/src/types/marketing.ts +90 -268
- package/src/utils/index.ts +1 -1
- package/src/utils/notifications.ts +71 -0
- package/src/utils/social-platforms.ts +9 -9
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVQG2A7GAcjs = require('./chunk-VQG2A7GA.cjs');
|
|
8
8
|
require('./chunk-24I6RFVU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -59,19 +59,19 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkD6ZSRGH2cjs = require('./chunk-D6ZSRGH2.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var _chunk4JHO2NVIcjs = require('./chunk-4JHO2NVI.cjs');
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
var
|
|
71
|
+
var _chunk5L3UKDC6cjs = require('./chunk-5L3UKDC6.cjs');
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunkYJZ7R3W5cjs = require('./chunk-YJZ7R3W5.cjs');
|
|
75
75
|
require('./chunk-6CZVQ72C.cjs');
|
|
76
76
|
require('./chunk-46547WQW.cjs');
|
|
77
77
|
require('./chunk-LNUFH4E2.cjs');
|
|
@@ -1874,9 +1874,9 @@ 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-ZABZIM2Y.cjs');
|
|
1878
1878
|
require('./chunk-7Z536SPR.cjs');
|
|
1879
|
-
require('./chunk-
|
|
1879
|
+
require('./chunk-BUEEQD3G.cjs');
|
|
1880
1880
|
require('./chunk-JKX2C3I2.cjs');
|
|
1881
1881
|
|
|
1882
1882
|
|
|
@@ -1886,15 +1886,15 @@ require('./chunk-IX2E3AN7.cjs');
|
|
|
1886
1886
|
require('./chunk-7DNL734S.cjs');
|
|
1887
1887
|
|
|
1888
1888
|
|
|
1889
|
-
var
|
|
1889
|
+
var _chunkH3WTYAVRcjs = require('./chunk-H3WTYAVR.cjs');
|
|
1890
1890
|
require('./chunk-5BM7X4GA.cjs');
|
|
1891
1891
|
|
|
1892
1892
|
|
|
1893
1893
|
var _chunkGRHF5SWLcjs = require('./chunk-GRHF5SWL.cjs');
|
|
1894
1894
|
|
|
1895
1895
|
|
|
1896
|
-
var
|
|
1897
|
-
require('./chunk-
|
|
1896
|
+
var _chunkTD4CC4KVcjs = require('./chunk-TD4CC4KV.cjs');
|
|
1897
|
+
require('./chunk-JBTH3O2C.cjs');
|
|
1898
1898
|
require('./chunk-USUVHAQ7.cjs');
|
|
1899
1899
|
require('./chunk-S5C3OZCO.cjs');
|
|
1900
1900
|
require('./chunk-32ASZMTV.cjs');
|
|
@@ -1906,11 +1906,11 @@ require('./chunk-RUHKTWGB.cjs');
|
|
|
1906
1906
|
require('./chunk-MG3HJIGG.cjs');
|
|
1907
1907
|
require('./chunk-LC65AC6M.cjs');
|
|
1908
1908
|
require('./chunk-YSDB6HGQ.cjs');
|
|
1909
|
-
require('./chunk-
|
|
1909
|
+
require('./chunk-APNONOHY.cjs');
|
|
1910
1910
|
require('./chunk-FX35L4Y6.cjs');
|
|
1911
1911
|
|
|
1912
1912
|
|
|
1913
|
-
var
|
|
1913
|
+
var _chunkJQCQCE6Ucjs = require('./chunk-JQCQCE6U.cjs');
|
|
1914
1914
|
require('./chunk-NTPX5GXI.cjs');
|
|
1915
1915
|
require('./chunk-GI3MMBP3.cjs');
|
|
1916
1916
|
require('./chunk-3V5JWG27.cjs');
|
|
@@ -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: _chunkD6ZSRGH2cjs.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, _chunkD6ZSRGH2cjs.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(_chunkD6ZSRGH2cjs.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: _chunkD6ZSRGH2cjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkD6ZSRGH2cjs.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 ? `${_chunkH3WTYAVRcjs.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(`${_chunkH3WTYAVRcjs.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: _chunkD6ZSRGH2cjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkD6ZSRGH2cjs.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 + _chunkD6ZSRGH2cjs.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(_chunkD6ZSRGH2cjs.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: _chunkD6ZSRGH2cjs.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 = _chunkD6ZSRGH2cjs.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
|
+
_chunkD6ZSRGH2cjs.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 = _chunkD6ZSRGH2cjs.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 = _chunkD6ZSRGH2cjs.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
|
+
_chunkD6ZSRGH2cjs.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 ? _chunkD6ZSRGH2cjs.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
|
+
_chunkVQG2A7GAcjs.HoverDropdown,
|
|
2379
2379
|
{
|
|
2380
2380
|
items: dropdownItems,
|
|
2381
2381
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2382
|
-
|
|
2382
|
+
_chunkD6ZSRGH2cjs.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, _chunkD6ZSRGH2cjs.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
|
+
_chunkD6ZSRGH2cjs.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, _chunkD6ZSRGH2cjs.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
|
}
|
|
@@ -2509,7 +2509,7 @@ function EmbeddableChatInner({
|
|
|
2509
2509
|
defaultActiveMode,
|
|
2510
2510
|
shell = "drawer",
|
|
2511
2511
|
closable = true,
|
|
2512
|
-
appearance =
|
|
2512
|
+
appearance = _chunk4JHO2NVIcjs.CHAT_APPEARANCE.CLASSIC,
|
|
2513
2513
|
onCollapse,
|
|
2514
2514
|
collapseTo = "list",
|
|
2515
2515
|
onExpand,
|
|
@@ -2548,13 +2548,13 @@ function EmbeddableChatInner({
|
|
|
2548
2548
|
handleRef
|
|
2549
2549
|
}) {
|
|
2550
2550
|
const shellLess = shell !== "drawer";
|
|
2551
|
-
const isV2 = appearance ===
|
|
2551
|
+
const isV2 = appearance === _chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2;
|
|
2552
2552
|
const splitMode = threadContainer !== void 0;
|
|
2553
2553
|
const hostOwnsList = rail === "none" || splitMode;
|
|
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 } = _chunkD6ZSRGH2cjs.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") {
|
|
@@ -2605,14 +2605,25 @@ function EmbeddableChatInner({
|
|
|
2605
2605
|
};
|
|
2606
2606
|
}, [isOpen, shellLess]);
|
|
2607
2607
|
const chatInputRef = _react.useRef.call(void 0, null);
|
|
2608
|
-
const
|
|
2608
|
+
const insertedPromptRef = _react.useRef.call(void 0, null);
|
|
2609
|
+
const insertQuickAction = _react.useCallback.call(void 0, (prompt) => {
|
|
2610
|
+
const input = chatInputRef.current;
|
|
2611
|
+
if (!input) return;
|
|
2612
|
+
const draft = input.getValue().trim();
|
|
2613
|
+
const next = draft === "" || draft === insertedPromptRef.current ? prompt : `${draft}
|
|
2614
|
+
|
|
2615
|
+
${prompt}`;
|
|
2616
|
+
insertedPromptRef.current = next;
|
|
2617
|
+
input.setValue(next);
|
|
2618
|
+
input.focus();
|
|
2619
|
+
}, []);
|
|
2609
2620
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2610
2621
|
() => ({
|
|
2611
|
-
fetchCommands: (prefix, signal) =>
|
|
2622
|
+
fetchCommands: (prefix, signal) => _chunkD6ZSRGH2cjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2612
2623
|
resolveSourceIcon: (sourceId) => {
|
|
2613
|
-
const iconName =
|
|
2624
|
+
const iconName = _chunkD6ZSRGH2cjs.getSourceIconName.call(void 0, sourceId);
|
|
2614
2625
|
if (!iconName) return void 0;
|
|
2615
|
-
return { Icon:
|
|
2626
|
+
return { Icon: _chunkJQCQCE6Ucjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2616
2627
|
},
|
|
2617
2628
|
onAction: (cmd, actionId) => {
|
|
2618
2629
|
dispatchSlashCommandAction(actionId, cmd.id, chatInputRef);
|
|
@@ -2639,7 +2650,7 @@ function EmbeddableChatInner({
|
|
|
2639
2650
|
},
|
|
2640
2651
|
[controlledActiveMode, onActiveModeChange]
|
|
2641
2652
|
);
|
|
2642
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2653
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunkD6ZSRGH2cjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2643
2654
|
enabled: activeMode === "guide"
|
|
2644
2655
|
});
|
|
2645
2656
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2650,7 +2661,7 @@ function EmbeddableChatInner({
|
|
|
2650
2661
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2651
2662
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2652
2663
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2653
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2664
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkD6ZSRGH2cjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2654
2665
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2655
2666
|
});
|
|
2656
2667
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2696,7 +2707,7 @@ function EmbeddableChatInner({
|
|
|
2696
2707
|
hasMoreMessages,
|
|
2697
2708
|
loadMoreMessages,
|
|
2698
2709
|
dialogCapabilities
|
|
2699
|
-
} =
|
|
2710
|
+
} = _chunkD6ZSRGH2cjs.useUnifiedChat.call(void 0, {
|
|
2700
2711
|
modes: effectiveModes,
|
|
2701
2712
|
activeMode,
|
|
2702
2713
|
mingoStateOverride: mingoState,
|
|
@@ -2743,8 +2754,8 @@ function EmbeddableChatInner({
|
|
|
2743
2754
|
addFiles: addAttachmentFiles,
|
|
2744
2755
|
removeAttachment,
|
|
2745
2756
|
clear: clearAttachments
|
|
2746
|
-
} =
|
|
2747
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2757
|
+
} = _chunkD6ZSRGH2cjs.useChatAttachments.call(void 0, );
|
|
2758
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkD6ZSRGH2cjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2748
2759
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2749
2760
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2750
2761
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2875,7 +2886,7 @@ function EmbeddableChatInner({
|
|
|
2875
2886
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2876
2887
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2877
2888
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2878
|
-
(reference) =>
|
|
2889
|
+
(reference) => _chunkD6ZSRGH2cjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2879
2890
|
onDiscuss: askAbout,
|
|
2880
2891
|
onDisplay: displayRef,
|
|
2881
2892
|
extras
|
|
@@ -2883,7 +2894,7 @@ function EmbeddableChatInner({
|
|
|
2883
2894
|
[askAbout, displayRef, extras]
|
|
2884
2895
|
);
|
|
2885
2896
|
const mingoAssistantIcon = _react.useMemo.call(void 0,
|
|
2886
|
-
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2897
|
+
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
|
|
2887
2898
|
[effectiveAssistantIcon]
|
|
2888
2899
|
);
|
|
2889
2900
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
@@ -2895,13 +2906,13 @@ function EmbeddableChatInner({
|
|
|
2895
2906
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2896
2907
|
return mapped;
|
|
2897
2908
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2898
|
-
const whatToAsk =
|
|
2909
|
+
const whatToAsk = _chunkD6ZSRGH2cjs.useWhatToAsk.call(void 0, {
|
|
2899
2910
|
dialogId: activeDialogId,
|
|
2900
2911
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2901
2912
|
user: {
|
|
2902
2913
|
name: _nullishCoalesce(headerUserName, () => ( "You")),
|
|
2903
2914
|
avatar: _optionalChain([identityUser, 'optionalAccess', _42 => _42.avatarUrl, 'optionalAccess', _43 => _43.trim, 'call', _44 => _44()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _45 => _45.trim, 'call', _46 => _46()]) || null,
|
|
2904
|
-
authorType:
|
|
2915
|
+
authorType: _chunk4JHO2NVIcjs.AUTHOR_TYPE.ADMIN
|
|
2905
2916
|
},
|
|
2906
2917
|
assistant: { name: "Mingo", assistantType: "mingo" }
|
|
2907
2918
|
});
|
|
@@ -2914,7 +2925,7 @@ function EmbeddableChatInner({
|
|
|
2914
2925
|
noteWhatToAskSend();
|
|
2915
2926
|
let augmentedText = text;
|
|
2916
2927
|
if (readyAttachments.length > 0) {
|
|
2917
|
-
const markdown = readyAttachments.map((att) =>
|
|
2928
|
+
const markdown = readyAttachments.map((att) => _chunkD6ZSRGH2cjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2918
2929
|
augmentedText = `${text}${markdown}`;
|
|
2919
2930
|
}
|
|
2920
2931
|
void sendMessage(augmentedText, {
|
|
@@ -2953,7 +2964,7 @@ function EmbeddableChatInner({
|
|
|
2953
2964
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2954
2965
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2955
2966
|
// built-in agents.
|
|
2956
|
-
accent: _nullishCoalesce(
|
|
2967
|
+
accent: _nullishCoalesce(_chunkD6ZSRGH2cjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkD6ZSRGH2cjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2957
2968
|
}));
|
|
2958
2969
|
}
|
|
2959
2970
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -3001,7 +3012,7 @@ function EmbeddableChatInner({
|
|
|
3001
3012
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
3002
3013
|
});
|
|
3003
3014
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
3004
|
-
|
|
3015
|
+
_chunkD6ZSRGH2cjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
3005
3016
|
_react.useEffect.call(void 0, () => {
|
|
3006
3017
|
const handler = (e) => {
|
|
3007
3018
|
const detail = e.detail;
|
|
@@ -3009,8 +3020,8 @@ function EmbeddableChatInner({
|
|
|
3009
3020
|
setIsOpen(true);
|
|
3010
3021
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
3011
3022
|
};
|
|
3012
|
-
window.addEventListener(
|
|
3013
|
-
return () => window.removeEventListener(
|
|
3023
|
+
window.addEventListener(_chunkD6ZSRGH2cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3024
|
+
return () => window.removeEventListener(_chunkD6ZSRGH2cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3014
3025
|
}, [source, askAbout, setIsOpen]);
|
|
3015
3026
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
3016
3027
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3044,10 +3055,10 @@ function EmbeddableChatInner({
|
|
|
3044
3055
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3045
3056
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3046
3057
|
};
|
|
3047
|
-
window.addEventListener(
|
|
3048
|
-
return () => window.removeEventListener(
|
|
3058
|
+
window.addEventListener(_chunkD6ZSRGH2cjs.ASK_AI_OPEN_EVENT, handler);
|
|
3059
|
+
return () => window.removeEventListener(_chunkD6ZSRGH2cjs.ASK_AI_OPEN_EVENT, handler);
|
|
3049
3060
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3050
|
-
_react.useEffect.call(void 0, () =>
|
|
3061
|
+
_react.useEffect.call(void 0, () => _chunkD6ZSRGH2cjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3051
3062
|
const hasMessages = messages.length > 0;
|
|
3052
3063
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3053
3064
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3057,8 +3068,6 @@ function EmbeddableChatInner({
|
|
|
3057
3068
|
const messagesInitialLoading = isMessagesLoading && !hasMessages;
|
|
3058
3069
|
const contentViewKey = hasConversation ? "conversation" : activeMode;
|
|
3059
3070
|
const isGuideEmpty = !hasConversation && activeMode === "guide";
|
|
3060
|
-
const isQuickActionEmpty = !hasConversation && (activeMode === "guide" || activeMode === "mingo");
|
|
3061
|
-
if (!isQuickActionEmpty && quickActionPreview !== null) setQuickActionPreview(null);
|
|
3062
3071
|
const guideCanReturnToMingo = isGuideEmpty && hasMingoMode;
|
|
3063
3072
|
const sourceLabel = source === "flamingo" ? "Knowledge Base" : "Data Room";
|
|
3064
3073
|
const enabledSet = _react.useMemo.call(void 0,
|
|
@@ -3087,7 +3096,7 @@ function EmbeddableChatInner({
|
|
|
3087
3096
|
if (sourceSkeletonCount <= 0) return null;
|
|
3088
3097
|
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: [] }) });
|
|
3089
3098
|
}
|
|
3090
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3099
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunkD6ZSRGH2cjs.flattenAssistantContent.call(void 0, message.content));
|
|
3091
3100
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3092
3101
|
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 }) });
|
|
3093
3102
|
},
|
|
@@ -3097,7 +3106,7 @@ function EmbeddableChatInner({
|
|
|
3097
3106
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3098
3107
|
const [threadPortalHost, setThreadPortalHost] = _react.useState.call(void 0, null);
|
|
3099
3108
|
const [threadBoundary, setThreadBoundary] = _react.useState.call(void 0, null);
|
|
3100
|
-
const splitMinWidth = (isV2 ?
|
|
3109
|
+
const splitMinWidth = (isV2 ? _chunkD6ZSRGH2cjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkD6ZSRGH2cjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3101
3110
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3102
3111
|
_react.useEffect.call(void 0, () => {
|
|
3103
3112
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3116,7 +3125,7 @@ function EmbeddableChatInner({
|
|
|
3116
3125
|
[splitMinWidth]
|
|
3117
3126
|
);
|
|
3118
3127
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3119
|
-
const railStorageHydrated =
|
|
3128
|
+
const railStorageHydrated = _chunkD6ZSRGH2cjs.useIsHydrated.call(void 0, );
|
|
3120
3129
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3121
3130
|
if (railStorageHydrated && !railStorageRead) {
|
|
3122
3131
|
setRailStorageRead(true);
|
|
@@ -3170,7 +3179,7 @@ function EmbeddableChatInner({
|
|
|
3170
3179
|
resetToNewChat();
|
|
3171
3180
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3172
3181
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3173
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _67 => _67.length]), () => ( 0))) > 0 ||
|
|
3182
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _67 => _67.length]), () => ( 0))) > 0 || _chunkD6ZSRGH2cjs.awaitsDecision.call(void 0, hostMessages);
|
|
3174
3183
|
const showWhatToAsk = (content) => {
|
|
3175
3184
|
whatToAsk.clearDraft();
|
|
3176
3185
|
resetToNewChat();
|
|
@@ -3270,7 +3279,7 @@ function EmbeddableChatInner({
|
|
|
3270
3279
|
}),
|
|
3271
3280
|
[resetToNewChat, contextMaxItems, contextPicker, openContextPicker]
|
|
3272
3281
|
);
|
|
3273
|
-
const splitHeaderMenuItems =
|
|
3282
|
+
const splitHeaderMenuItems = _chunkD6ZSRGH2cjs.chatDialogMenuItems.call(void 0, {
|
|
3274
3283
|
onCopyLink: headerOnCopyLink,
|
|
3275
3284
|
onRename: headerOnRename,
|
|
3276
3285
|
onCompact: headerOnCompact,
|
|
@@ -3289,7 +3298,7 @@ function EmbeddableChatInner({
|
|
|
3289
3298
|
});
|
|
3290
3299
|
};
|
|
3291
3300
|
const cancelInlineRename = () => setInlineRenameId(null);
|
|
3292
|
-
const mingoHeaderMenuItems =
|
|
3301
|
+
const mingoHeaderMenuItems = _chunkD6ZSRGH2cjs.chatDialogMenuItems.call(void 0, {
|
|
3293
3302
|
onCopyLink: headerOnCopyLink,
|
|
3294
3303
|
onRename: mingoHeaderOnRename,
|
|
3295
3304
|
onCompact: headerOnCompact,
|
|
@@ -3372,7 +3381,7 @@ function EmbeddableChatInner({
|
|
|
3372
3381
|
onRetry: reloadDialogs
|
|
3373
3382
|
};
|
|
3374
3383
|
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,
|
|
3375
|
-
|
|
3384
|
+
_chunkD6ZSRGH2cjs.MingoChatHeader,
|
|
3376
3385
|
{
|
|
3377
3386
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3378
3387
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3393,7 +3402,7 @@ function EmbeddableChatInner({
|
|
|
3393
3402
|
}
|
|
3394
3403
|
) }) : null;
|
|
3395
3404
|
const archiveListNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3396
|
-
|
|
3405
|
+
_chunkD6ZSRGH2cjs.MingoArchiveList,
|
|
3397
3406
|
{
|
|
3398
3407
|
dialogs: archivedDialogs,
|
|
3399
3408
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3418,7 +3427,7 @@ function EmbeddableChatInner({
|
|
|
3418
3427
|
hasAboveComposer && "min-h-32"
|
|
3419
3428
|
),
|
|
3420
3429
|
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
|
-
|
|
3430
|
+
_chunkD6ZSRGH2cjs.ChatMessageList,
|
|
3422
3431
|
{
|
|
3423
3432
|
messages,
|
|
3424
3433
|
isLoading: messagesInitialLoading,
|
|
@@ -3437,7 +3446,7 @@ function EmbeddableChatInner({
|
|
|
3437
3446
|
renderMention,
|
|
3438
3447
|
renderAfterMessage: renderMessageSources,
|
|
3439
3448
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3440
|
-
NavLinkAnchor:
|
|
3449
|
+
NavLinkAnchor: _chunkD6ZSRGH2cjs.NavLinkAnchorViaRuntime,
|
|
3441
3450
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3442
3451
|
contentClassName: _chunk63A4GZMBcjs.cn.call(void 0, "max-w-none pb-0", splitMode && threadContentClassName),
|
|
3443
3452
|
fullWidth: true,
|
|
@@ -3451,15 +3460,19 @@ function EmbeddableChatInner({
|
|
|
3451
3460
|
quick-action chips. Guide mode keeps the slash-command
|
|
3452
3461
|
onboarding list below. */
|
|
3453
3462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3454
|
-
|
|
3463
|
+
_chunkD6ZSRGH2cjs.MingoWelcome,
|
|
3455
3464
|
{
|
|
3456
3465
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3457
3466
|
historyPageSize,
|
|
3458
3467
|
...mingoWelcome,
|
|
3459
3468
|
hasExistingChats: false,
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3469
|
+
quickActions: _optionalChain([mingoWelcome, 'optionalAccess', _68 => _68.quickActions, 'optionalAccess', _69 => _69.map, 'call', _70 => _70((action) => ({
|
|
3470
|
+
...action,
|
|
3471
|
+
onClick: () => {
|
|
3472
|
+
insertQuickAction(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
3473
|
+
_optionalChain([action, 'access', _71 => _71.onClick, 'optionalCall', _72 => _72()]);
|
|
3474
|
+
}
|
|
3475
|
+
}))])
|
|
3463
3476
|
}
|
|
3464
3477
|
)
|
|
3465
3478
|
) : (
|
|
@@ -3467,26 +3480,20 @@ function EmbeddableChatInner({
|
|
|
3467
3480
|
+ slash-command onboarding list share one scroll region,
|
|
3468
3481
|
with a pinned quick-action chip row above the composer. */
|
|
3469
3482
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3470
|
-
|
|
3483
|
+
_chunkD6ZSRGH2cjs.GuideWelcome,
|
|
3471
3484
|
{
|
|
3472
3485
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3473
3486
|
subtitleLoading: emptyStateLoading,
|
|
3474
3487
|
quickActionsLoading: !!emptyStateUrl && emptyStateLoading,
|
|
3475
3488
|
...guideWelcome,
|
|
3476
|
-
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
3477
|
-
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
3478
|
-
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess',
|
|
3479
|
-
onQuickAction: (action) =>
|
|
3480
|
-
setQuickActionPreview(null);
|
|
3481
|
-
handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
3482
|
-
},
|
|
3483
|
-
onQuickActionHover: (action) => setQuickActionPreview(_nullishCoalesce(action.prompt, () => ( action.label))),
|
|
3484
|
-
onQuickActionHoverEnd: () => setQuickActionPreview(null),
|
|
3485
|
-
agentSlug: activeAgentSlug,
|
|
3489
|
+
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _73 => _73.title]))),
|
|
3490
|
+
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _74 => _74.icon]))),
|
|
3491
|
+
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _75 => _75.quickActions]), () => ( guideSuggestedActions)),
|
|
3492
|
+
onQuickAction: (action) => insertQuickAction(_nullishCoalesce(action.prompt, () => ( action.label))),
|
|
3486
3493
|
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
3487
|
-
!commandsLoaded && chipCommands.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count:
|
|
3494
|
+
!commandsLoaded && chipCommands.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: _chunk4JHO2NVIcjs.MINGO_ONBOARDING_SKELETON_ROWS, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.MingoOnboardingCard, { loading: true, "data-loading-item": true, skeletonIndex: i, title: "" }) }),
|
|
3488
3495
|
chipCommands.map((cmd) => {
|
|
3489
|
-
const Icon =
|
|
3496
|
+
const Icon = _chunkJQCQCE6Ucjs.resolveIcon.call(void 0, cmd.iconName);
|
|
3490
3497
|
const cmdId = cmd.id;
|
|
3491
3498
|
const label = _nullishCoalesce(cmd.label, () => ( `/${cmdId}`));
|
|
3492
3499
|
const cardActions = cmd.actions.map((action) => ({
|
|
@@ -3495,7 +3502,7 @@ function EmbeddableChatInner({
|
|
|
3495
3502
|
onClick: () => dispatchSlashCommandAction(action.id, cmdId, chatInputRef)
|
|
3496
3503
|
}));
|
|
3497
3504
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3498
|
-
|
|
3505
|
+
_chunk4JHO2NVIcjs.MingoOnboardingCard,
|
|
3499
3506
|
{
|
|
3500
3507
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 16 }),
|
|
3501
3508
|
title: label,
|
|
@@ -3521,9 +3528,9 @@ function EmbeddableChatInner({
|
|
|
3521
3528
|
children: aboveComposer
|
|
3522
3529
|
}
|
|
3523
3530
|
) : null;
|
|
3524
|
-
const attachmentStrip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3531
|
+
const attachmentStrip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD6ZSRGH2cjs.ChatAttachmentChipStrip, { attachments: stagedAttachments, onRemove: removeAttachment, disabled: chatLoading });
|
|
3525
3532
|
const composerNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3526
|
-
|
|
3533
|
+
_chunkD6ZSRGH2cjs.ChatComposer,
|
|
3527
3534
|
{
|
|
3528
3535
|
archived: isViewingArchived,
|
|
3529
3536
|
lock: composerLock,
|
|
@@ -3534,7 +3541,7 @@ function EmbeddableChatInner({
|
|
|
3534
3541
|
placeholder: hasInflightUploads ? "Waiting for uploads to finish\u2026" : _nullishCoalesce(composerPlaceholder, () => ( (isV2 ? "Enter your Request..." : "Ask a question..."))),
|
|
3535
3542
|
autoFocus: previewMode ? false : autoFocusInput,
|
|
3536
3543
|
slashCommands: slashCommandsProp,
|
|
3537
|
-
previewText: _nullishCoalesce(
|
|
3544
|
+
previewText: _nullishCoalesce(composerPreviewText, () => ( void 0)),
|
|
3538
3545
|
safeAreaBottom,
|
|
3539
3546
|
edgeLight: composerEdgeLight,
|
|
3540
3547
|
showAttachmentButton: attachmentsEnabled && activeMode === "guide",
|
|
@@ -3545,10 +3552,10 @@ function EmbeddableChatInner({
|
|
|
3545
3552
|
selectedContextItems: contextItems,
|
|
3546
3553
|
onToggleContextItem: toggleContextItem,
|
|
3547
3554
|
onRemoveContextItem: removeContextItem,
|
|
3548
|
-
contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess',
|
|
3555
|
+
contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _76 => _76.items]),
|
|
3549
3556
|
contextLeading: composerContextLeading,
|
|
3550
|
-
onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess',
|
|
3551
|
-
contextMemoryPending: _optionalChain([contextMemory, 'optionalAccess',
|
|
3557
|
+
onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _77 => _77.onRemove]),
|
|
3558
|
+
contextMemoryPending: _optionalChain([contextMemory, 'optionalAccess', _78 => _78.pending]),
|
|
3552
3559
|
contextPickerOpen,
|
|
3553
3560
|
onOpenContextPicker: openContextPicker,
|
|
3554
3561
|
onCloseContextPicker: closeContextPicker,
|
|
@@ -3573,7 +3580,7 @@ function EmbeddableChatInner({
|
|
|
3573
3580
|
composerKey
|
|
3574
3581
|
);
|
|
3575
3582
|
const dialogModals = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3576
|
-
|
|
3583
|
+
_chunkD6ZSRGH2cjs.ChatDialogModals,
|
|
3577
3584
|
{
|
|
3578
3585
|
renameTarget,
|
|
3579
3586
|
setRenameTarget,
|
|
@@ -3589,7 +3596,7 @@ function EmbeddableChatInner({
|
|
|
3589
3596
|
const classicBody = (
|
|
3590
3597
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3591
3598
|
// only the thread `ChatMessageList` provides it to.
|
|
3592
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3599
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD6ZSRGH2cjs.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: [
|
|
3593
3600
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3594
3601
|
"div",
|
|
3595
3602
|
{
|
|
@@ -3597,7 +3604,7 @@ function EmbeddableChatInner({
|
|
|
3597
3604
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3598
3605
|
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" : ""}`,
|
|
3599
3606
|
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,
|
|
3600
|
-
|
|
3607
|
+
_chunkD6ZSRGH2cjs.ChatArchivePage,
|
|
3601
3608
|
{
|
|
3602
3609
|
dialogs: archivedDialogs,
|
|
3603
3610
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3627,7 +3634,7 @@ function EmbeddableChatInner({
|
|
|
3627
3634
|
narrow: true,
|
|
3628
3635
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3629
3636
|
innerClassName: "flex min-h-0 flex-col",
|
|
3630
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3637
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD6ZSRGH2cjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3631
3638
|
}
|
|
3632
3639
|
),
|
|
3633
3640
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3666,7 +3673,7 @@ function EmbeddableChatInner({
|
|
|
3666
3673
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3667
3674
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3668
3675
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3669
|
-
|
|
3676
|
+
_chunkD6ZSRGH2cjs.ChatHeaderSearchField,
|
|
3670
3677
|
{
|
|
3671
3678
|
initialValue: mingoCaps.searchQuery,
|
|
3672
3679
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3737,7 +3744,7 @@ function EmbeddableChatInner({
|
|
|
3737
3744
|
] }),
|
|
3738
3745
|
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: headerOnRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
3739
3746
|
headerShowBack && !isViewingArchived && splitHeaderMenuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3740
|
-
|
|
3747
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
3741
3748
|
{
|
|
3742
3749
|
triggerAriaLabel: "Chat actions",
|
|
3743
3750
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -3753,10 +3760,10 @@ function EmbeddableChatInner({
|
|
|
3753
3760
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3754
3761
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3755
3762
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3756
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3763
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD6ZSRGH2cjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3757
3764
|
),
|
|
3758
3765
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3759
|
-
|
|
3766
|
+
_chunkD6ZSRGH2cjs.GuideModeBanner,
|
|
3760
3767
|
{
|
|
3761
3768
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3762
3769
|
}
|
|
@@ -3766,7 +3773,7 @@ function EmbeddableChatInner({
|
|
|
3766
3773
|
// Archive list inside the rail (header lives in the split
|
|
3767
3774
|
// header's left cell above). Right chat block stays put.
|
|
3768
3775
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3769
|
-
|
|
3776
|
+
_chunkD6ZSRGH2cjs.ChatArchivePage,
|
|
3770
3777
|
{
|
|
3771
3778
|
embedded: true,
|
|
3772
3779
|
dialogs: archivedDialogs,
|
|
@@ -3780,7 +3787,7 @@ function EmbeddableChatInner({
|
|
|
3780
3787
|
}
|
|
3781
3788
|
)
|
|
3782
3789
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3783
|
-
|
|
3790
|
+
_chunkD6ZSRGH2cjs.MingoHistoryRail,
|
|
3784
3791
|
{
|
|
3785
3792
|
dialogs,
|
|
3786
3793
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3809,13 +3816,13 @@ function EmbeddableChatInner({
|
|
|
3809
3816
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3810
3817
|
archiveListNode
|
|
3811
3818
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3812
|
-
|
|
3819
|
+
_chunkD6ZSRGH2cjs.MingoChatRail,
|
|
3813
3820
|
{
|
|
3814
3821
|
...mingoRailProps,
|
|
3815
3822
|
onNewChat: () => setComposeOpen(true),
|
|
3816
3823
|
onExpand: onExpand && (() => {
|
|
3817
3824
|
const last = lastDialogIdRef.current;
|
|
3818
|
-
const target = last && dialogs.some((d) => d.id === last) ? last : _optionalChain([dialogs, 'access',
|
|
3825
|
+
const target = last && dialogs.some((d) => d.id === last) ? last : _optionalChain([dialogs, 'access', _79 => _79[0], 'optionalAccess', _80 => _80.id]);
|
|
3819
3826
|
if (archiveOpen) closeArchive();
|
|
3820
3827
|
if (target) handleSelectDialog(target);
|
|
3821
3828
|
else handleNewChat();
|
|
@@ -3828,7 +3835,7 @@ function EmbeddableChatInner({
|
|
|
3828
3835
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3829
3836
|
// the compose view.
|
|
3830
3837
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3831
|
-
|
|
3838
|
+
_chunkD6ZSRGH2cjs.MingoHistoryRail,
|
|
3832
3839
|
{
|
|
3833
3840
|
className: "duration-200 animate-in fade-in-0",
|
|
3834
3841
|
dialogs,
|
|
@@ -3872,11 +3879,11 @@ function EmbeddableChatInner({
|
|
|
3872
3879
|
] }) }) })
|
|
3873
3880
|
);
|
|
3874
3881
|
const pageHeader = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3875
|
-
|
|
3882
|
+
_chunkD6ZSRGH2cjs.MingoChatHeader,
|
|
3876
3883
|
{
|
|
3877
3884
|
variant: "page",
|
|
3878
3885
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3879
|
-
meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName,
|
|
3886
|
+
meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName, _chunkD6ZSRGH2cjs.chatDayLabel.call(void 0, _optionalChain([activeDialog, 'optionalAccess', _81 => _81.timestamp]))],
|
|
3880
3887
|
menuItems: headerShowBack && !isViewingArchived && !archiveOpen ? mingoHeaderMenuItems : [],
|
|
3881
3888
|
extraMenuItems: isViewingArchived || archiveOpen ? void 0 : chatMenuExtraItems,
|
|
3882
3889
|
onRestore: isViewingArchived && !archiveOpen ? headerOnRestore : void 0,
|
|
@@ -3896,7 +3903,7 @@ function EmbeddableChatInner({
|
|
|
3896
3903
|
),
|
|
3897
3904
|
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: [
|
|
3898
3905
|
pageHeader,
|
|
3899
|
-
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3906
|
+
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD6ZSRGH2cjs.GuideModeBanner, { className: "duration-200 animate-in fade-in-0" }),
|
|
3900
3907
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: archiveOpen ? archiveListNode : threadArea }),
|
|
3901
3908
|
galleryModal,
|
|
3902
3909
|
dialogModals,
|
|
@@ -3904,7 +3911,7 @@ function EmbeddableChatInner({
|
|
|
3904
3911
|
] }) })
|
|
3905
3912
|
}
|
|
3906
3913
|
);
|
|
3907
|
-
const body = splitMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3914
|
+
const body = splitMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD6ZSRGH2cjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: [
|
|
3908
3915
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3909
3916
|
"div",
|
|
3910
3917
|
{
|
|
@@ -3922,14 +3929,14 @@ function EmbeddableChatInner({
|
|
|
3922
3929
|
threadContainer ? null : dialogModals,
|
|
3923
3930
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3924
3931
|
] }) }) : classicBody;
|
|
3925
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3932
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkD6ZSRGH2cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3926
3933
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3927
3934
|
sourceLabel,
|
|
3928
3935
|
" AI Assistant"
|
|
3929
3936
|
] }) }),
|
|
3930
3937
|
body
|
|
3931
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3932
|
-
|
|
3938
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVQG2A7GAcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD6ZSRGH2cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3939
|
+
_chunkVQG2A7GAcjs.DrawerContent,
|
|
3933
3940
|
{
|
|
3934
3941
|
side: "right",
|
|
3935
3942
|
flush: true,
|
|
@@ -3961,7 +3968,7 @@ function EmbeddableChatInner({
|
|
|
3961
3968
|
_chunkFCZAUK4Dcjs.Button,
|
|
3962
3969
|
{
|
|
3963
3970
|
onClick: handleOpen,
|
|
3964
|
-
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3971
|
+
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.AgentMark, { agent: "mingo", className: "h-5 w-5" }),
|
|
3965
3972
|
tabIndex: isOpen ? -1 : 0,
|
|
3966
3973
|
className: `pointer-events-auto !w-auto shadow-lg ${isOpen ? "!pointer-events-none" : ""}`,
|
|
3967
3974
|
children: "Ask AI"
|