@flamingo-stack/openframe-frontend-core 0.0.773 → 0.0.774
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/{chunk-7P2QXBWE.cjs → chunk-4JZC624S.cjs} +226 -206
- package/dist/{chunk-JJNOAYD4.cjs → chunk-5AOKXXHV.cjs} +4 -4
- package/dist/{chunk-MT5Z2LSV.cjs → chunk-5Z3XL2VU.cjs} +72 -72
- package/dist/{chunk-BPAYT72L.cjs → chunk-BTVO676B.cjs} +148 -131
- package/dist/{chunk-TZ4GKUO2.cjs → chunk-CZIMISAR.cjs} +5 -1
- package/dist/{chunk-YSKX42LW.cjs → chunk-E5E7IE7X.cjs} +12 -12
- package/dist/{chunk-XVFM6SJA.cjs → chunk-E64HPPRH.cjs} +31 -31
- package/dist/{chunk-CTRJNTYU.cjs → chunk-EQBJHJS7.cjs} +2 -2
- package/dist/{chunk-BMFU2CUL.cjs → chunk-HTSRAQVG.cjs} +4 -4
- package/dist/{chunk-NRFNZ35Z.cjs → chunk-IQQ3SLUK.cjs} +19 -19
- package/dist/{chunk-RNLRS4ID.cjs → chunk-KKAY6GPU.cjs} +2 -2
- package/dist/{chunk-ILZEXCJH.cjs → chunk-KWZ62LPZ.cjs} +124 -104
- package/dist/{chunk-KDMWXXLE.cjs → chunk-L5CKY5WA.cjs} +15 -15
- package/dist/{chunk-6LLF2QCS.cjs → chunk-LEVA5WO3.cjs} +39 -39
- package/dist/{chunk-CW3ML76U.cjs → chunk-NTPX5GXI.cjs} +4 -0
- package/dist/{chunk-VW2QQKQ6.cjs → chunk-NX7P2T2U.cjs} +15 -15
- package/dist/{chunk-7J4YWDT6.cjs → chunk-Q6B2DC65.cjs} +3 -3
- package/dist/{chunk-NPCFVTA2.cjs → chunk-Q7EXOVMT.cjs} +31 -31
- package/dist/{chunk-2A56MLLL.cjs → chunk-SWEPHSIP.cjs} +4 -4
- package/dist/{chunk-KSCEAIBS.cjs → chunk-TOPGBOCN.cjs} +2 -2
- package/dist/{chunk-I4ZVMNHO.cjs → chunk-TTQHSSHF.cjs} +6 -6
- package/dist/{chunk-FPCGKH5K.cjs → chunk-TUXPFF4P.cjs} +31 -29
- package/dist/{chunk-42YLIZFD.cjs → chunk-U332FL4C.cjs} +22 -22
- package/dist/{chunk-3FREBLAJ.cjs → chunk-UAKXZ2KD.cjs} +47 -45
- package/dist/{chunk-SE76YGR3.cjs → chunk-USMR73ND.cjs} +4 -4
- package/dist/{chunk-X5Z4HRH7.cjs → chunk-VISK6LKE.cjs} +2 -2
- package/dist/{chunk-HEEK42BL.cjs → chunk-VWUQVJ2D.cjs} +81 -81
- package/dist/{chunk-5V7BIUGA.cjs → chunk-Y3EBUFX4.cjs} +92 -21
- package/dist/{chunk-5HBGBLJT.cjs → chunk-ZHGOXDA3.cjs} +63 -59
- package/dist/{cloud-tenants-EE5ULFOK.cjs → cloud-tenants-7RNZ6GHM.cjs} +11 -11
- package/dist/components/case-studies/index.cjs +28 -28
- package/dist/components/chat/ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/ask-prompts.js +28 -19
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts +3 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.js +2 -0
- package/dist/components/chat/entity-cards/program-card.d.ts +6 -1
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.js +19 -2
- package/dist/components/chat/index.cjs +10 -8
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +10 -4
- package/dist/components/chat/utils/ask-ai-events.d.ts +10 -0
- package/dist/components/chat/utils/ask-ai-events.d.ts.map +1 -1
- package/dist/components/chat/utils/ask-ai-events.js +21 -1
- 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/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +5 -2
- package/dist/components/features/video-shared.d.ts +2 -1
- package/dist/components/features/video-shared.d.ts.map +1 -1
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +64 -13
- package/dist/components/help-center-pages/index.cjs +100 -100
- package/dist/components/index.cjs +63 -61
- package/dist/components/meeting-scheduler/index.cjs +46 -46
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mingo-ai-button.js +2 -1
- package/dist/components/navigation/site-header.d.ts.map +1 -1
- package/dist/components/navigation/site-header.js +3 -1
- 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 -6
- package/dist/components/related-content/index.d.ts +2 -1
- package/dist/components/related-content/index.d.ts.map +1 -1
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/related-content/related-content-section.d.ts +8 -10
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +11 -7
- package/dist/components/tickets/index.cjs +17 -17
- package/dist/components/ui/index.cjs +13 -11
- package/dist/components/ui/photo-wall.d.ts +7 -0
- package/dist/components/ui/photo-wall.d.ts.map +1 -1
- package/dist/components/ui/photo-wall.js +16 -2
- package/dist/components/ui/tab-navigation.d.ts +8 -1
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/components/ui/tab-navigation.js +9 -3
- package/dist/{devices-EBGGHEGR.cjs → devices-NNDBC6IH.cjs} +12 -12
- package/dist/{embeddable-chat-HCT4QV35.cjs → embeddable-chat-DI7ZZTBP.cjs} +75 -75
- package/dist/hooks/index.cjs +4 -4
- package/dist/hooks/use-near-viewport.d.ts.map +1 -1
- package/dist/hooks/use-near-viewport.js +4 -0
- package/dist/index.cjs +23 -15
- package/dist/{knowledge-5ZSMKKTL.cjs → knowledge-DPUMWQED.cjs} +12 -12
- package/dist/{logs-GUV3BMGC.cjs → logs-EE25MWYM.cjs} +19 -19
- package/dist/{policies-HPMTDOAS.cjs → policies-H5LPZWEM.cjs} +15 -15
- package/dist/{scripts-QYYKCIUW.cjs → scripts-YGO4LOES.cjs} +16 -16
- package/dist/{software-update-NC2KZKEI.cjs → software-update-5BEB62ZH.cjs} +14 -14
- package/dist/utils/content-ref-groups.d.ts +8 -0
- package/dist/utils/content-ref-groups.d.ts.map +1 -1
- package/dist/utils/content-ref-groups.js +2 -0
- package/dist/utils/dismiss-cookie.d.ts +14 -0
- package/dist/utils/dismiss-cookie.d.ts.map +1 -1
- package/dist/utils/dismiss-cookie.js +4 -0
- package/dist/utils/index.cjs +10 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/visitor-os.d.ts +9 -0
- package/dist/utils/visitor-os.d.ts.map +1 -1
- package/dist/utils/visitor-os.js +4 -0
- package/dist/{video-file-player-COXRF4M5.cjs → video-file-player-4TXA7BZF.cjs} +3 -3
- package/package.json +1 -1
- package/src/components/chat/ask-prompts.tsx +6 -1
- package/src/components/chat/entity-cards/entity-portrait-card.tsx +4 -0
- package/src/components/chat/entity-cards/program-card.tsx +24 -2
- package/src/components/chat/index.ts +16 -9
- package/src/components/chat/utils/ask-ai-events.ts +26 -0
- package/src/components/features/video-hover-preview.tsx +46 -37
- package/src/components/features/video-shared.tsx +2 -1
- package/src/components/features/video.tsx +102 -19
- package/src/components/navigation/mingo-ai-button.tsx +2 -1
- package/src/components/navigation/site-header.tsx +3 -1
- package/src/components/related-content/index.ts +2 -1
- package/src/components/related-content/related-content-section.tsx +26 -12
- package/src/components/ui/photo-wall.tsx +24 -2
- package/src/components/ui/tab-navigation.tsx +18 -3
- package/src/hooks/use-near-viewport.ts +6 -0
- package/src/utils/content-ref-groups.ts +9 -0
- package/src/utils/dismiss-cookie.ts +17 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/visitor-os.ts +12 -0
|
@@ -59,11 +59,11 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkKWZ62LPZcjs = require('./chunk-KWZ62LPZ.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
var _chunkEHJE3UWZcjs = require('./chunk-EHJE3UWZ.cjs');
|
|
66
|
-
require('./chunk-
|
|
66
|
+
require('./chunk-KKAY6GPU.cjs');
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
@@ -1887,7 +1887,7 @@ require('./chunk-SKI6NKOE.cjs');
|
|
|
1887
1887
|
|
|
1888
1888
|
|
|
1889
1889
|
|
|
1890
|
-
var
|
|
1890
|
+
var _chunkY3EBUFX4cjs = require('./chunk-Y3EBUFX4.cjs');
|
|
1891
1891
|
require('./chunk-R3JX4MXD.cjs');
|
|
1892
1892
|
require('./chunk-SETFUCZA.cjs');
|
|
1893
1893
|
require('./chunk-VFUMM6JC.cjs');
|
|
@@ -1903,7 +1903,7 @@ require('./chunk-ORO54HDF.cjs');
|
|
|
1903
1903
|
require('./chunk-RUHKTWGB.cjs');
|
|
1904
1904
|
require('./chunk-3LW5TD54.cjs');
|
|
1905
1905
|
require('./chunk-ASMNNSUQ.cjs');
|
|
1906
|
-
require('./chunk-
|
|
1906
|
+
require('./chunk-NTPX5GXI.cjs');
|
|
1907
1907
|
require('./chunk-VFZFCRAL.cjs');
|
|
1908
1908
|
|
|
1909
1909
|
|
|
@@ -2131,7 +2131,7 @@ function splitCitedSources(sources, content) {
|
|
|
2131
2131
|
}
|
|
2132
2132
|
const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
|
|
2133
2133
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2134
|
-
return { cited:
|
|
2134
|
+
return { cited: _chunkKWZ62LPZcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkKWZ62LPZcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2135
2135
|
}
|
|
2136
2136
|
|
|
2137
2137
|
// src/components/chat/utils/host-message.ts
|
|
@@ -2182,7 +2182,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2182
2182
|
// src/components/chat/embeddable-chat.tsx
|
|
2183
2183
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2184
2184
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2185
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2185
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkKWZ62LPZcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2186
2186
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2187
2187
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2188
2188
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2263,7 +2263,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2263
2263
|
if (!input) return;
|
|
2264
2264
|
switch (actionId) {
|
|
2265
2265
|
case "browse":
|
|
2266
|
-
input.submit(
|
|
2266
|
+
input.submit(_chunkKWZ62LPZcjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2267
2267
|
return;
|
|
2268
2268
|
case "search":
|
|
2269
2269
|
input.setValue(`/${cmdId} `);
|
|
@@ -2289,7 +2289,7 @@ function SourceChip({
|
|
|
2289
2289
|
}) {
|
|
2290
2290
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2291
2291
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
2292
|
-
const cta =
|
|
2292
|
+
const cta = _chunkKWZ62LPZcjs.resolveSourceRowCTA.call(void 0,
|
|
2293
2293
|
{
|
|
2294
2294
|
sourceRepo: src.sourceRepo,
|
|
2295
2295
|
documentType: src.documentType,
|
|
@@ -2299,15 +2299,15 @@ function SourceChip({
|
|
|
2299
2299
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2300
2300
|
path: src.path
|
|
2301
2301
|
},
|
|
2302
|
-
|
|
2302
|
+
_chunkKWZ62LPZcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2303
2303
|
);
|
|
2304
2304
|
const Icon = cta.icon;
|
|
2305
2305
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2306
|
-
const chipClass =
|
|
2307
|
-
const decideTab = (href, targetPlatform) =>
|
|
2306
|
+
const chipClass = _chunkKWZ62LPZcjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2307
|
+
const decideTab = (href, targetPlatform) => _chunkY3EBUFX4cjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
|
|
2308
2308
|
if (src.items && src.items.length > 0) {
|
|
2309
2309
|
const dropdownItems = src.items.map((item) => {
|
|
2310
|
-
const itemCta =
|
|
2310
|
+
const itemCta = _chunkKWZ62LPZcjs.resolveSourceRowCTA.call(void 0,
|
|
2311
2311
|
{
|
|
2312
2312
|
sourceRepo: src.sourceRepo,
|
|
2313
2313
|
documentType: item.documentType,
|
|
@@ -2317,7 +2317,7 @@ function SourceChip({
|
|
|
2317
2317
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2318
2318
|
path: item.path
|
|
2319
2319
|
},
|
|
2320
|
-
|
|
2320
|
+
_chunkKWZ62LPZcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2321
2321
|
);
|
|
2322
2322
|
const ItemIcon = itemCta.icon;
|
|
2323
2323
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2337,13 +2337,13 @@ function SourceChip({
|
|
|
2337
2337
|
};
|
|
2338
2338
|
});
|
|
2339
2339
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2340
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2340
|
+
const groupIndices = itemIndices.length > 0 ? _chunkKWZ62LPZcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2341
2341
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2342
2342
|
_chunkRB7VLVMDcjs.HoverDropdown,
|
|
2343
2343
|
{
|
|
2344
2344
|
items: dropdownItems,
|
|
2345
2345
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2346
|
-
|
|
2346
|
+
_chunkKWZ62LPZcjs.NavLinkAnchorViaRuntime,
|
|
2347
2347
|
{
|
|
2348
2348
|
href,
|
|
2349
2349
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2376,10 +2376,10 @@ function SourceChip({
|
|
|
2376
2376
|
] });
|
|
2377
2377
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", children: [
|
|
2378
2378
|
clickable,
|
|
2379
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2379
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWZ62LPZcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2380
2380
|
] });
|
|
2381
2381
|
const buildClickHandler = (href, path, targetPlatform, isNewTab) => (e) => {
|
|
2382
|
-
const handled =
|
|
2382
|
+
const handled = _chunkKWZ62LPZcjs.executeNavigation.call(void 0, {
|
|
2383
2383
|
event: e,
|
|
2384
2384
|
runtime,
|
|
2385
2385
|
href,
|
|
@@ -2390,14 +2390,14 @@ function SourceChip({
|
|
|
2390
2390
|
if (handled && !isNewTab && onClose) onClose();
|
|
2391
2391
|
};
|
|
2392
2392
|
if (cta.href && !!src.externalUrl) {
|
|
2393
|
-
const resolvedHref =
|
|
2393
|
+
const resolvedHref = _chunkY3EBUFX4cjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
2394
2394
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
2395
2395
|
return wrapChip(
|
|
2396
2396
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2397
2397
|
_chunkV45KLJQPcjs.next_link_default,
|
|
2398
2398
|
{
|
|
2399
2399
|
href: resolvedHref,
|
|
2400
|
-
...
|
|
2400
|
+
..._chunkY3EBUFX4cjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
2401
2401
|
onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
2402
2402
|
className: chipClass,
|
|
2403
2403
|
children: chipBody(src.name)
|
|
@@ -2406,14 +2406,14 @@ function SourceChip({
|
|
|
2406
2406
|
);
|
|
2407
2407
|
}
|
|
2408
2408
|
if (cta.href) {
|
|
2409
|
-
const resolvedHref =
|
|
2409
|
+
const resolvedHref = _chunkY3EBUFX4cjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
2410
2410
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
2411
2411
|
return wrapChip(
|
|
2412
2412
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2413
2413
|
_chunkV45KLJQPcjs.next_link_default,
|
|
2414
2414
|
{
|
|
2415
2415
|
href: resolvedHref,
|
|
2416
|
-
...
|
|
2416
|
+
..._chunkY3EBUFX4cjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
2417
2417
|
onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
2418
2418
|
className: chipClass,
|
|
2419
2419
|
title: displayName,
|
|
@@ -2551,7 +2551,7 @@ function EmbeddableChatInner({
|
|
|
2551
2551
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2552
2552
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2553
2553
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2554
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2554
|
+
const { attachmentsEnabled, user: identityUser } = _chunkKWZ62LPZcjs.useChatIdentity.call(void 0, );
|
|
2555
2555
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2556
2556
|
_react.useEffect.call(void 0, () => {
|
|
2557
2557
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2605,9 +2605,9 @@ function EmbeddableChatInner({
|
|
|
2605
2605
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2606
2606
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2607
2607
|
() => ({
|
|
2608
|
-
fetchCommands: (prefix, signal) =>
|
|
2608
|
+
fetchCommands: (prefix, signal) => _chunkKWZ62LPZcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2609
2609
|
resolveSourceIcon: (sourceId) => {
|
|
2610
|
-
const iconName =
|
|
2610
|
+
const iconName = _chunkKWZ62LPZcjs.getSourceIconName.call(void 0, sourceId);
|
|
2611
2611
|
if (!iconName) return void 0;
|
|
2612
2612
|
return { Icon: _chunk5P4TDV7Vcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2613
2613
|
},
|
|
@@ -2636,7 +2636,7 @@ function EmbeddableChatInner({
|
|
|
2636
2636
|
},
|
|
2637
2637
|
[controlledActiveMode, onActiveModeChange]
|
|
2638
2638
|
);
|
|
2639
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2639
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunkKWZ62LPZcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2640
2640
|
enabled: activeMode === "guide"
|
|
2641
2641
|
});
|
|
2642
2642
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2647,7 +2647,7 @@ function EmbeddableChatInner({
|
|
|
2647
2647
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2648
2648
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2649
2649
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2650
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2650
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkKWZ62LPZcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2651
2651
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2652
2652
|
});
|
|
2653
2653
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2694,7 +2694,7 @@ function EmbeddableChatInner({
|
|
|
2694
2694
|
hasMoreMessages,
|
|
2695
2695
|
loadMoreMessages,
|
|
2696
2696
|
dialogCapabilities
|
|
2697
|
-
} =
|
|
2697
|
+
} = _chunkKWZ62LPZcjs.useUnifiedChat.call(void 0, {
|
|
2698
2698
|
modes: effectiveModes,
|
|
2699
2699
|
activeMode,
|
|
2700
2700
|
mingoStateOverride: mingoState,
|
|
@@ -2741,8 +2741,8 @@ function EmbeddableChatInner({
|
|
|
2741
2741
|
addFiles: addAttachmentFiles,
|
|
2742
2742
|
removeAttachment,
|
|
2743
2743
|
clear: clearAttachments
|
|
2744
|
-
} =
|
|
2745
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2744
|
+
} = _chunkKWZ62LPZcjs.useChatAttachments.call(void 0, );
|
|
2745
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkKWZ62LPZcjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2746
2746
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2747
2747
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2748
2748
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2862,7 +2862,7 @@ function EmbeddableChatInner({
|
|
|
2862
2862
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2863
2863
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2864
2864
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2865
|
-
(reference) =>
|
|
2865
|
+
(reference) => _chunkKWZ62LPZcjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2866
2866
|
onDiscuss: askAbout,
|
|
2867
2867
|
onDisplay: displayRef,
|
|
2868
2868
|
baseRoute: resolvedBaseRoute,
|
|
@@ -2872,7 +2872,7 @@ function EmbeddableChatInner({
|
|
|
2872
2872
|
[askAbout, displayRef, resolvedBaseRoute, chipBasePlatform, extras]
|
|
2873
2873
|
);
|
|
2874
2874
|
const mingoAssistantIcon = _react.useMemo.call(void 0,
|
|
2875
|
-
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2875
|
+
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
|
|
2876
2876
|
[effectiveAssistantIcon]
|
|
2877
2877
|
);
|
|
2878
2878
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
@@ -2884,7 +2884,7 @@ function EmbeddableChatInner({
|
|
|
2884
2884
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2885
2885
|
return mapped;
|
|
2886
2886
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2887
|
-
const whatToAsk =
|
|
2887
|
+
const whatToAsk = _chunkKWZ62LPZcjs.useWhatToAsk.call(void 0, {
|
|
2888
2888
|
dialogId: activeDialogId,
|
|
2889
2889
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2890
2890
|
user: {
|
|
@@ -2903,7 +2903,7 @@ function EmbeddableChatInner({
|
|
|
2903
2903
|
noteWhatToAskSend();
|
|
2904
2904
|
let augmentedText = text;
|
|
2905
2905
|
if (readyAttachments.length > 0) {
|
|
2906
|
-
const markdown = readyAttachments.map((att) =>
|
|
2906
|
+
const markdown = readyAttachments.map((att) => _chunkKWZ62LPZcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2907
2907
|
augmentedText = `${text}${markdown}`;
|
|
2908
2908
|
}
|
|
2909
2909
|
void sendMessage(augmentedText, {
|
|
@@ -2942,7 +2942,7 @@ function EmbeddableChatInner({
|
|
|
2942
2942
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2943
2943
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2944
2944
|
// built-in agents.
|
|
2945
|
-
accent: _nullishCoalesce(
|
|
2945
|
+
accent: _nullishCoalesce(_chunkKWZ62LPZcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkKWZ62LPZcjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2946
2946
|
}));
|
|
2947
2947
|
}
|
|
2948
2948
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2990,7 +2990,7 @@ function EmbeddableChatInner({
|
|
|
2990
2990
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
2991
2991
|
});
|
|
2992
2992
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
2993
|
-
|
|
2993
|
+
_chunkKWZ62LPZcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
2994
2994
|
_react.useEffect.call(void 0, () => {
|
|
2995
2995
|
const handler = (e) => {
|
|
2996
2996
|
const detail = e.detail;
|
|
@@ -2998,8 +2998,8 @@ function EmbeddableChatInner({
|
|
|
2998
2998
|
setIsOpen(true);
|
|
2999
2999
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
3000
3000
|
};
|
|
3001
|
-
window.addEventListener(
|
|
3002
|
-
return () => window.removeEventListener(
|
|
3001
|
+
window.addEventListener(_chunkKWZ62LPZcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3002
|
+
return () => window.removeEventListener(_chunkKWZ62LPZcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3003
3003
|
}, [source, askAbout, setIsOpen]);
|
|
3004
3004
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
3005
3005
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3033,10 +3033,10 @@ function EmbeddableChatInner({
|
|
|
3033
3033
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3034
3034
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3035
3035
|
};
|
|
3036
|
-
window.addEventListener(
|
|
3037
|
-
return () => window.removeEventListener(
|
|
3036
|
+
window.addEventListener(_chunkKWZ62LPZcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3037
|
+
return () => window.removeEventListener(_chunkKWZ62LPZcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3038
3038
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3039
|
-
_react.useEffect.call(void 0, () =>
|
|
3039
|
+
_react.useEffect.call(void 0, () => _chunkKWZ62LPZcjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3040
3040
|
const hasMessages = messages.length > 0;
|
|
3041
3041
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3042
3042
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3072,7 +3072,7 @@ function EmbeddableChatInner({
|
|
|
3072
3072
|
(message, index) => {
|
|
3073
3073
|
if (message.role !== "assistant") return null;
|
|
3074
3074
|
if (chatLoading && index === messages.length - 1) return null;
|
|
3075
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3075
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunkKWZ62LPZcjs.flattenAssistantContent.call(void 0, message.content));
|
|
3076
3076
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3077
3077
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3078
3078
|
SourceChips,
|
|
@@ -3090,7 +3090,7 @@ function EmbeddableChatInner({
|
|
|
3090
3090
|
);
|
|
3091
3091
|
const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
|
|
3092
3092
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3093
|
-
const splitMinWidth = (isV2 ?
|
|
3093
|
+
const splitMinWidth = (isV2 ? _chunkKWZ62LPZcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkKWZ62LPZcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3094
3094
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3095
3095
|
_react.useEffect.call(void 0, () => {
|
|
3096
3096
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3109,7 +3109,7 @@ function EmbeddableChatInner({
|
|
|
3109
3109
|
[splitMinWidth]
|
|
3110
3110
|
);
|
|
3111
3111
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3112
|
-
const railStorageHydrated =
|
|
3112
|
+
const railStorageHydrated = _chunkKWZ62LPZcjs.useIsHydrated.call(void 0, );
|
|
3113
3113
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3114
3114
|
if (railStorageHydrated && !railStorageRead) {
|
|
3115
3115
|
setRailStorageRead(true);
|
|
@@ -3163,7 +3163,7 @@ function EmbeddableChatInner({
|
|
|
3163
3163
|
resetToNewChat();
|
|
3164
3164
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3165
3165
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3166
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 ||
|
|
3166
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunkKWZ62LPZcjs.awaitsDecision.call(void 0, hostMessages);
|
|
3167
3167
|
const showWhatToAsk = (content) => {
|
|
3168
3168
|
whatToAsk.clearDraft();
|
|
3169
3169
|
resetToNewChat();
|
|
@@ -3259,7 +3259,7 @@ function EmbeddableChatInner({
|
|
|
3259
3259
|
}),
|
|
3260
3260
|
[resetToNewChat, contextMaxItems]
|
|
3261
3261
|
);
|
|
3262
|
-
const splitHeaderMenuItems =
|
|
3262
|
+
const splitHeaderMenuItems = _chunkKWZ62LPZcjs.chatDialogMenuItems.call(void 0, {
|
|
3263
3263
|
onCopyLink: headerOnCopyLink,
|
|
3264
3264
|
onRename: headerOnRename,
|
|
3265
3265
|
onCompact: headerOnCompact,
|
|
@@ -3338,7 +3338,7 @@ function EmbeddableChatInner({
|
|
|
3338
3338
|
onRetry: reloadDialogs
|
|
3339
3339
|
};
|
|
3340
3340
|
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,
|
|
3341
|
-
|
|
3341
|
+
_chunkKWZ62LPZcjs.MingoChatHeader,
|
|
3342
3342
|
{
|
|
3343
3343
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3344
3344
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3358,7 +3358,7 @@ function EmbeddableChatInner({
|
|
|
3358
3358
|
const body = (
|
|
3359
3359
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3360
3360
|
// only the thread `ChatMessageList` provides it to.
|
|
3361
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3361
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWZ62LPZcjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIFEZ2JTcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXIFEZ2JTcjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
|
|
3362
3362
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3363
3363
|
"div",
|
|
3364
3364
|
{
|
|
@@ -3366,7 +3366,7 @@ function EmbeddableChatInner({
|
|
|
3366
3366
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3367
3367
|
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" : ""}`,
|
|
3368
3368
|
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,
|
|
3369
|
-
|
|
3369
|
+
_chunkKWZ62LPZcjs.ChatArchivePage,
|
|
3370
3370
|
{
|
|
3371
3371
|
dialogs: archivedDialogs,
|
|
3372
3372
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3396,7 +3396,7 @@ function EmbeddableChatInner({
|
|
|
3396
3396
|
narrow: true,
|
|
3397
3397
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3398
3398
|
innerClassName: "flex min-h-0 flex-col",
|
|
3399
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3399
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWZ62LPZcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3400
3400
|
}
|
|
3401
3401
|
),
|
|
3402
3402
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3420,7 +3420,7 @@ function EmbeddableChatInner({
|
|
|
3420
3420
|
// Back is a full-height leading cell, matching the other
|
|
3421
3421
|
// header cells (not a small inline chevron).
|
|
3422
3422
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3423
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3423
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWZ62LPZcjs.ChatHeaderIconButton, { divider: "right", onClick: closeArchive, "aria-label": "Back to chats", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
|
|
3424
3424
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center px-[var(--spacing-system-mf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h3", children: "Chat Archive" }) })
|
|
3425
3425
|
] })
|
|
3426
3426
|
) : (
|
|
@@ -3430,7 +3430,7 @@ function EmbeddableChatInner({
|
|
|
3430
3430
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3431
3431
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3432
3432
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3433
|
-
|
|
3433
|
+
_chunkKWZ62LPZcjs.ChatHeaderSearchField,
|
|
3434
3434
|
{
|
|
3435
3435
|
initialValue: mingoCaps.searchQuery,
|
|
3436
3436
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3439,7 +3439,7 @@ function EmbeddableChatInner({
|
|
|
3439
3439
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3440
3440
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center px-[var(--spacing-system-mf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h3", children: "Current Chats" }) }),
|
|
3441
3441
|
mingoCaps.onSearchChange && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3442
|
-
|
|
3442
|
+
_chunkKWZ62LPZcjs.ChatHeaderIconButton,
|
|
3443
3443
|
{
|
|
3444
3444
|
onClick: () => setRailSearchOpen((o) => !o),
|
|
3445
3445
|
"aria-label": "Search chats",
|
|
@@ -3448,7 +3448,7 @@ function EmbeddableChatInner({
|
|
|
3448
3448
|
}
|
|
3449
3449
|
)
|
|
3450
3450
|
] }),
|
|
3451
|
-
headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3451
|
+
headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWZ62LPZcjs.ChatHeaderIconButton, { onClick: headerOnOpenArchive, "aria-label": "Chat archive", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JKBT3LTcjs.ClockHistoryIcon, { size: 24 }) })
|
|
3452
3452
|
] })
|
|
3453
3453
|
) }),
|
|
3454
3454
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1", children: [
|
|
@@ -3485,17 +3485,17 @@ function EmbeddableChatInner({
|
|
|
3485
3485
|
)
|
|
3486
3486
|
) : null
|
|
3487
3487
|
] }),
|
|
3488
|
-
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3488
|
+
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWZ62LPZcjs.ChatHeaderIconButton, { onClick: headerOnRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
3489
3489
|
headerShowBack && !isViewingArchived && splitHeaderMenuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3490
3490
|
_chunkLELS4XMXcjs.ActionsMenuDropdown,
|
|
3491
3491
|
{
|
|
3492
3492
|
triggerAriaLabel: "Chat actions",
|
|
3493
3493
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3494
3494
|
groups: [{ items: splitHeaderMenuItems }],
|
|
3495
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3495
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWZ62LPZcjs.ChatHeaderIconButton, { "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
3496
3496
|
}
|
|
3497
3497
|
),
|
|
3498
|
-
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3498
|
+
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWZ62LPZcjs.ChatHeaderIconButton, { onClick: closeControl, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
3499
3499
|
] })
|
|
3500
3500
|
] })
|
|
3501
3501
|
) : (
|
|
@@ -3503,10 +3503,10 @@ function EmbeddableChatInner({
|
|
|
3503
3503
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3504
3504
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3505
3505
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3506
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3506
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWZ62LPZcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3507
3507
|
),
|
|
3508
3508
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3509
|
-
|
|
3509
|
+
_chunkKWZ62LPZcjs.GuideModeBanner,
|
|
3510
3510
|
{
|
|
3511
3511
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3512
3512
|
}
|
|
@@ -3516,7 +3516,7 @@ function EmbeddableChatInner({
|
|
|
3516
3516
|
// Archive list inside the rail (header lives in the split
|
|
3517
3517
|
// header's left cell above). Right chat block stays put.
|
|
3518
3518
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3519
|
-
|
|
3519
|
+
_chunkKWZ62LPZcjs.ChatArchivePage,
|
|
3520
3520
|
{
|
|
3521
3521
|
embedded: true,
|
|
3522
3522
|
dialogs: archivedDialogs,
|
|
@@ -3530,7 +3530,7 @@ function EmbeddableChatInner({
|
|
|
3530
3530
|
}
|
|
3531
3531
|
)
|
|
3532
3532
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3533
|
-
|
|
3533
|
+
_chunkKWZ62LPZcjs.MingoHistoryRail,
|
|
3534
3534
|
{
|
|
3535
3535
|
dialogs,
|
|
3536
3536
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3557,7 +3557,7 @@ function EmbeddableChatInner({
|
|
|
3557
3557
|
// v2: the archive opens in the chat column under the chat's
|
|
3558
3558
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3559
3559
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3560
|
-
|
|
3560
|
+
_chunkKWZ62LPZcjs.MingoArchiveList,
|
|
3561
3561
|
{
|
|
3562
3562
|
dialogs: archivedDialogs,
|
|
3563
3563
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3570,7 +3570,7 @@ function EmbeddableChatInner({
|
|
|
3570
3570
|
}
|
|
3571
3571
|
)
|
|
3572
3572
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3573
|
-
|
|
3573
|
+
_chunkKWZ62LPZcjs.MingoChatRail,
|
|
3574
3574
|
{
|
|
3575
3575
|
...mingoRailProps,
|
|
3576
3576
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3589,7 +3589,7 @@ function EmbeddableChatInner({
|
|
|
3589
3589
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3590
3590
|
// the compose view.
|
|
3591
3591
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3592
|
-
|
|
3592
|
+
_chunkKWZ62LPZcjs.MingoHistoryRail,
|
|
3593
3593
|
{
|
|
3594
3594
|
className: "duration-200 animate-in fade-in-0",
|
|
3595
3595
|
dialogs,
|
|
@@ -3629,14 +3629,14 @@ function EmbeddableChatInner({
|
|
|
3629
3629
|
// skeleton overflows a short panel and grows its OWN
|
|
3630
3630
|
// scrollbar — ugly. `fill` top-anchors + clips overflow so
|
|
3631
3631
|
// it reads as "the whole panel is loading" and never scrolls.
|
|
3632
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3632
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWZ62LPZcjs.ChatMessageListSkeleton, { fullWidth: true, fill: previewMode, className: "flex-1" })
|
|
3633
3633
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3634
|
-
|
|
3634
|
+
_chunkKWZ62LPZcjs.ChatMessageList,
|
|
3635
3635
|
{
|
|
3636
3636
|
messages,
|
|
3637
3637
|
appearance,
|
|
3638
3638
|
isTyping: chatLoading,
|
|
3639
|
-
typingMessage: streamingProgress ?
|
|
3639
|
+
typingMessage: streamingProgress ? _chunkKWZ62LPZcjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
|
|
3640
3640
|
pendingApprovals,
|
|
3641
3641
|
autoScroll: !previewMode,
|
|
3642
3642
|
pinBottom: previewMode,
|
|
@@ -3649,7 +3649,7 @@ function EmbeddableChatInner({
|
|
|
3649
3649
|
renderMention,
|
|
3650
3650
|
renderAfterMessage: renderMessageSources,
|
|
3651
3651
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3652
|
-
NavLinkAnchor:
|
|
3652
|
+
NavLinkAnchor: _chunkKWZ62LPZcjs.NavLinkAnchorViaRuntime,
|
|
3653
3653
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3654
3654
|
contentClassName: "max-w-none pb-0",
|
|
3655
3655
|
fullWidth: true,
|
|
@@ -3663,7 +3663,7 @@ function EmbeddableChatInner({
|
|
|
3663
3663
|
quick-action chips. Guide mode keeps the slash-command
|
|
3664
3664
|
onboarding list below. */
|
|
3665
3665
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3666
|
-
|
|
3666
|
+
_chunkKWZ62LPZcjs.MingoWelcome,
|
|
3667
3667
|
{
|
|
3668
3668
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3669
3669
|
...mingoWelcome,
|
|
@@ -3678,7 +3678,7 @@ function EmbeddableChatInner({
|
|
|
3678
3678
|
+ slash-command onboarding list share one scroll region,
|
|
3679
3679
|
with a pinned quick-action chip row above the composer. */
|
|
3680
3680
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3681
|
-
|
|
3681
|
+
_chunkKWZ62LPZcjs.GuideWelcome,
|
|
3682
3682
|
{
|
|
3683
3683
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3684
3684
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3695,7 +3695,7 @@ function EmbeddableChatInner({
|
|
|
3695
3695
|
agentSlug: activeAgentSlug,
|
|
3696
3696
|
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
3697
3697
|
!commandsLoaded && chipCommands.length === 0 && SKELETON_ROW_VARIANTS.map((variant, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3698
|
-
|
|
3698
|
+
_chunkKWZ62LPZcjs.MingoOnboardingCardSkeleton,
|
|
3699
3699
|
{
|
|
3700
3700
|
titleWidth: variant.titleWidth,
|
|
3701
3701
|
slashWidth: variant.slashWidth,
|
|
@@ -3733,7 +3733,7 @@ function EmbeddableChatInner({
|
|
|
3733
3733
|
) }),
|
|
3734
3734
|
aboveComposer != null && aboveComposer !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 px-[var(--spacing-system-m)] pb-[var(--spacing-system-m)]", children: aboveComposer }),
|
|
3735
3735
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3736
|
-
|
|
3736
|
+
_chunkKWZ62LPZcjs.ChatAttachmentChipStrip,
|
|
3737
3737
|
{
|
|
3738
3738
|
attachments: stagedAttachments,
|
|
3739
3739
|
onRemove: removeAttachment,
|
|
@@ -3741,7 +3741,7 @@ function EmbeddableChatInner({
|
|
|
3741
3741
|
}
|
|
3742
3742
|
),
|
|
3743
3743
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3744
|
-
|
|
3744
|
+
_chunkKWZ62LPZcjs.ChatComposer,
|
|
3745
3745
|
{
|
|
3746
3746
|
archived: isViewingArchived,
|
|
3747
3747
|
lock: composerLock,
|
|
@@ -3792,7 +3792,7 @@ function EmbeddableChatInner({
|
|
|
3792
3792
|
),
|
|
3793
3793
|
galleryModal,
|
|
3794
3794
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3795
|
-
|
|
3795
|
+
_chunkKWZ62LPZcjs.ChatDialogModals,
|
|
3796
3796
|
{
|
|
3797
3797
|
renameTarget,
|
|
3798
3798
|
setRenameTarget,
|
|
@@ -3808,13 +3808,13 @@ function EmbeddableChatInner({
|
|
|
3808
3808
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3809
3809
|
] }) }) })
|
|
3810
3810
|
);
|
|
3811
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3811
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKWZ62LPZcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3812
3812
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3813
3813
|
sourceLabel,
|
|
3814
3814
|
" AI Assistant"
|
|
3815
3815
|
] }) }),
|
|
3816
3816
|
body
|
|
3817
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRB7VLVMDcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3817
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRB7VLVMDcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWZ62LPZcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3818
3818
|
_chunkRB7VLVMDcjs.DrawerContent,
|
|
3819
3819
|
{
|
|
3820
3820
|
side: "right",
|