@flamingo-stack/openframe-frontend-core 0.0.777 → 0.0.780
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/{case-study-card-FMH622O5.cjs → case-study-card-WXMWYGSW.cjs} +2 -2
- package/dist/{chunk-JMFF3L3T.cjs → chunk-2JO5HNEF.cjs} +23 -23
- package/dist/{chunk-SDZG7VV7.cjs → chunk-2W3VDE4D.cjs} +2 -2
- package/dist/{chunk-4JZDJ34E.cjs → chunk-4BBOHZM3.cjs} +4 -4
- package/dist/{chunk-QIATO42V.cjs → chunk-4NRVV3KO.cjs} +3 -3
- package/dist/{chunk-BDDOC425.cjs → chunk-AQXEM7GI.cjs} +3 -3
- package/dist/{chunk-ALA4KHTE.cjs → chunk-DQALLDTZ.cjs} +4 -4
- package/dist/{chunk-LU2DGST4.cjs → chunk-F3BASIMT.cjs} +78 -78
- package/dist/{chunk-Y6MQBLTZ.cjs → chunk-HUPDPANN.cjs} +4 -4
- package/dist/{chunk-3PCSEZNZ.cjs → chunk-I4IC3BRC.cjs} +39 -39
- package/dist/{chunk-7LJSGOWS.cjs → chunk-IE3QCYBT.cjs} +13 -13
- package/dist/{chunk-VY3NGJRH.cjs → chunk-ILRQXZBA.cjs} +52 -52
- package/dist/{chunk-T47VAUYR.cjs → chunk-KA3VQ6X2.cjs} +69 -69
- package/dist/{chunk-WCSWWVPF.cjs → chunk-MLX6Z7TU.cjs} +2 -2
- package/dist/{chunk-MQPTOJMF.cjs → chunk-OH5LAH3X.cjs} +3 -51
- package/dist/{chunk-G2N7INFT.cjs → chunk-OMHQZXCD.cjs} +11 -11
- package/dist/{chunk-TZP7PSPG.cjs → chunk-OWQVDWTK.cjs} +109 -103
- package/dist/{chunk-XVAVQ4BK.cjs → chunk-PQBGSVZE.cjs} +38 -38
- package/dist/{chunk-LGNJTSKB.cjs → chunk-QEFDGI3Z.cjs} +29 -29
- package/dist/{chunk-WMZIBRTR.cjs → chunk-QIQYD75I.cjs} +2 -2
- package/dist/{chunk-T7NDPPLF.cjs → chunk-TVDQMG7I.cjs} +18 -18
- package/dist/{chunk-HXLOCZMG.cjs → chunk-UPAE4IV5.cjs} +167 -167
- package/dist/{chunk-DOM5CUEY.cjs → chunk-WR7KJML6.cjs} +30 -30
- package/dist/{chunk-CGQ7CL62.cjs → chunk-YG72MEHY.cjs} +98 -98
- package/dist/{chunk-U5VQFKRZ.cjs → chunk-YNECNYQF.cjs} +4 -4
- package/dist/{chunk-S3YDUX2I.cjs → chunk-YWQ3VXPL.cjs} +75 -75
- package/dist/{chunk-UW6AOF42.cjs → chunk-ZGWS3NJR.cjs} +13 -13
- package/dist/{cloud-tenants-EUH42CCL.cjs → cloud-tenants-2ZLGCSGK.cjs} +8 -8
- package/dist/components/case-studies/index.cjs +24 -24
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +8 -4
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.js +2 -0
- package/dist/components/chat/index.cjs +6 -6
- package/dist/components/chat/types/component.types.d.ts +9 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +2 -5
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +1 -44
- package/dist/components/help-center-pages/index.cjs +84 -84
- package/dist/components/index.cjs +56 -56
- package/dist/components/meeting-scheduler/index.cjs +38 -38
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/product-demo/index.cjs +17 -17
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/ui/index.cjs +8 -8
- package/dist/{devices-WL3I23EE.cjs → devices-UOBQFPV3.cjs} +9 -9
- package/dist/{embeddable-chat-KEWUGQIF.cjs → embeddable-chat-SFQWRUIV.cjs} +74 -74
- package/dist/index.cjs +12 -12
- package/dist/{knowledge-O3PXUX73.cjs → knowledge-5K3LTHGB.cjs} +9 -9
- package/dist/{logs-XODCXWYI.cjs → logs-WU3N6ESS.cjs} +16 -16
- package/dist/{policies-CQACBIKK.cjs → policies-2IYASCQO.cjs} +12 -12
- package/dist/{scripts-QMM6SEB5.cjs → scripts-IQBKOQEY.cjs} +13 -13
- package/dist/{software-update-CCCKS4ZE.cjs → software-update-GJLDO5X5.cjs} +11 -11
- package/package.json +1 -1
- package/src/components/chat/chat-message-enhanced.tsx +13 -4
- package/src/components/chat/chat-message-list.tsx +2 -0
- package/src/components/chat/types/component.types.ts +9 -0
- package/src/components/features/video-hover-preview.tsx +37 -46
- package/src/components/features/video.tsx +1 -61
|
@@ -59,7 +59,7 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkOWQVDWTKcjs = require('./chunk-OWQVDWTK.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
var _chunkLBGAHB6Xcjs = require('./chunk-LBGAHB6X.cjs');
|
|
@@ -1884,12 +1884,12 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
1884
1884
|
require('./chunk-SKI6NKOE.cjs');
|
|
1885
1885
|
|
|
1886
1886
|
|
|
1887
|
-
var
|
|
1887
|
+
var _chunkYG72MEHYcjs = require('./chunk-YG72MEHY.cjs');
|
|
1888
1888
|
|
|
1889
1889
|
|
|
1890
1890
|
|
|
1891
1891
|
|
|
1892
|
-
var
|
|
1892
|
+
var _chunkOH5LAH3Xcjs = require('./chunk-OH5LAH3X.cjs');
|
|
1893
1893
|
require('./chunk-3ZLPYEL5.cjs');
|
|
1894
1894
|
require('./chunk-SETFUCZA.cjs');
|
|
1895
1895
|
require('./chunk-BEMGJDXI.cjs');
|
|
@@ -2135,7 +2135,7 @@ function splitCitedSources(sources, content) {
|
|
|
2135
2135
|
}
|
|
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: _chunkOWQVDWTKcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkOWQVDWTKcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2139
2139
|
}
|
|
2140
2140
|
|
|
2141
2141
|
// src/components/chat/utils/host-message.ts
|
|
@@ -2186,7 +2186,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2186
2186
|
// src/components/chat/embeddable-chat.tsx
|
|
2187
2187
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2188
2188
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2189
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2189
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkOWQVDWTKcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2190
2190
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2191
2191
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2192
2192
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2267,7 +2267,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2267
2267
|
if (!input) return;
|
|
2268
2268
|
switch (actionId) {
|
|
2269
2269
|
case "browse":
|
|
2270
|
-
input.submit(
|
|
2270
|
+
input.submit(_chunkOWQVDWTKcjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2271
2271
|
return;
|
|
2272
2272
|
case "search":
|
|
2273
2273
|
input.setValue(`/${cmdId} `);
|
|
@@ -2293,7 +2293,7 @@ function SourceChip({
|
|
|
2293
2293
|
}) {
|
|
2294
2294
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2295
2295
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
2296
|
-
const cta =
|
|
2296
|
+
const cta = _chunkOWQVDWTKcjs.resolveSourceRowCTA.call(void 0,
|
|
2297
2297
|
{
|
|
2298
2298
|
sourceRepo: src.sourceRepo,
|
|
2299
2299
|
documentType: src.documentType,
|
|
@@ -2303,15 +2303,15 @@ function SourceChip({
|
|
|
2303
2303
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2304
2304
|
path: src.path
|
|
2305
2305
|
},
|
|
2306
|
-
|
|
2306
|
+
_chunkOWQVDWTKcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2307
2307
|
);
|
|
2308
2308
|
const Icon = cta.icon;
|
|
2309
2309
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2310
|
-
const chipClass =
|
|
2311
|
-
const decideTab = (href, targetPlatform) =>
|
|
2310
|
+
const chipClass = _chunkOWQVDWTKcjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2311
|
+
const decideTab = (href, targetPlatform) => _chunkOH5LAH3Xcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
|
|
2312
2312
|
if (src.items && src.items.length > 0) {
|
|
2313
2313
|
const dropdownItems = src.items.map((item) => {
|
|
2314
|
-
const itemCta =
|
|
2314
|
+
const itemCta = _chunkOWQVDWTKcjs.resolveSourceRowCTA.call(void 0,
|
|
2315
2315
|
{
|
|
2316
2316
|
sourceRepo: src.sourceRepo,
|
|
2317
2317
|
documentType: item.documentType,
|
|
@@ -2321,7 +2321,7 @@ function SourceChip({
|
|
|
2321
2321
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2322
2322
|
path: item.path
|
|
2323
2323
|
},
|
|
2324
|
-
|
|
2324
|
+
_chunkOWQVDWTKcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2325
2325
|
);
|
|
2326
2326
|
const ItemIcon = itemCta.icon;
|
|
2327
2327
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2341,13 +2341,13 @@ function SourceChip({
|
|
|
2341
2341
|
};
|
|
2342
2342
|
});
|
|
2343
2343
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2344
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2344
|
+
const groupIndices = itemIndices.length > 0 ? _chunkOWQVDWTKcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2345
2345
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2346
2346
|
_chunkR6BKQKIFcjs.HoverDropdown,
|
|
2347
2347
|
{
|
|
2348
2348
|
items: dropdownItems,
|
|
2349
2349
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2350
|
-
|
|
2350
|
+
_chunkOWQVDWTKcjs.NavLinkAnchorViaRuntime,
|
|
2351
2351
|
{
|
|
2352
2352
|
href,
|
|
2353
2353
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2380,10 +2380,10 @@ function SourceChip({
|
|
|
2380
2380
|
] });
|
|
2381
2381
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", children: [
|
|
2382
2382
|
clickable,
|
|
2383
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2383
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWQVDWTKcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2384
2384
|
] });
|
|
2385
2385
|
const buildClickHandler = (href, path, targetPlatform, isNewTab) => (e) => {
|
|
2386
|
-
const handled =
|
|
2386
|
+
const handled = _chunkOWQVDWTKcjs.executeNavigation.call(void 0, {
|
|
2387
2387
|
event: e,
|
|
2388
2388
|
runtime,
|
|
2389
2389
|
href,
|
|
@@ -2394,14 +2394,14 @@ function SourceChip({
|
|
|
2394
2394
|
if (handled && !isNewTab && onClose) onClose();
|
|
2395
2395
|
};
|
|
2396
2396
|
if (cta.href && !!src.externalUrl) {
|
|
2397
|
-
const resolvedHref =
|
|
2397
|
+
const resolvedHref = _chunkYG72MEHYcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
2398
2398
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
2399
2399
|
return wrapChip(
|
|
2400
2400
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2401
2401
|
_chunkV45KLJQPcjs.next_link_default,
|
|
2402
2402
|
{
|
|
2403
2403
|
href: resolvedHref,
|
|
2404
|
-
...
|
|
2404
|
+
..._chunkOH5LAH3Xcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
2405
2405
|
onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
2406
2406
|
className: chipClass,
|
|
2407
2407
|
children: chipBody(src.name)
|
|
@@ -2410,14 +2410,14 @@ function SourceChip({
|
|
|
2410
2410
|
);
|
|
2411
2411
|
}
|
|
2412
2412
|
if (cta.href) {
|
|
2413
|
-
const resolvedHref =
|
|
2413
|
+
const resolvedHref = _chunkYG72MEHYcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
2414
2414
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
2415
2415
|
return wrapChip(
|
|
2416
2416
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2417
2417
|
_chunkV45KLJQPcjs.next_link_default,
|
|
2418
2418
|
{
|
|
2419
2419
|
href: resolvedHref,
|
|
2420
|
-
...
|
|
2420
|
+
..._chunkOH5LAH3Xcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
2421
2421
|
onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
2422
2422
|
className: chipClass,
|
|
2423
2423
|
title: displayName,
|
|
@@ -2555,7 +2555,7 @@ function EmbeddableChatInner({
|
|
|
2555
2555
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2556
2556
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2557
2557
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2558
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2558
|
+
const { attachmentsEnabled, user: identityUser } = _chunkOWQVDWTKcjs.useChatIdentity.call(void 0, );
|
|
2559
2559
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2560
2560
|
_react.useEffect.call(void 0, () => {
|
|
2561
2561
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2609,9 +2609,9 @@ function EmbeddableChatInner({
|
|
|
2609
2609
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2610
2610
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2611
2611
|
() => ({
|
|
2612
|
-
fetchCommands: (prefix, signal) =>
|
|
2612
|
+
fetchCommands: (prefix, signal) => _chunkOWQVDWTKcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2613
2613
|
resolveSourceIcon: (sourceId) => {
|
|
2614
|
-
const iconName =
|
|
2614
|
+
const iconName = _chunkOWQVDWTKcjs.getSourceIconName.call(void 0, sourceId);
|
|
2615
2615
|
if (!iconName) return void 0;
|
|
2616
2616
|
return { Icon: _chunkTUAATMUEcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2617
2617
|
},
|
|
@@ -2640,7 +2640,7 @@ function EmbeddableChatInner({
|
|
|
2640
2640
|
},
|
|
2641
2641
|
[controlledActiveMode, onActiveModeChange]
|
|
2642
2642
|
);
|
|
2643
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2643
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunkOWQVDWTKcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2644
2644
|
enabled: activeMode === "guide"
|
|
2645
2645
|
});
|
|
2646
2646
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2651,7 +2651,7 @@ function EmbeddableChatInner({
|
|
|
2651
2651
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2652
2652
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2653
2653
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2654
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2654
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkOWQVDWTKcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2655
2655
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2656
2656
|
});
|
|
2657
2657
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2698,7 +2698,7 @@ function EmbeddableChatInner({
|
|
|
2698
2698
|
hasMoreMessages,
|
|
2699
2699
|
loadMoreMessages,
|
|
2700
2700
|
dialogCapabilities
|
|
2701
|
-
} =
|
|
2701
|
+
} = _chunkOWQVDWTKcjs.useUnifiedChat.call(void 0, {
|
|
2702
2702
|
modes: effectiveModes,
|
|
2703
2703
|
activeMode,
|
|
2704
2704
|
mingoStateOverride: mingoState,
|
|
@@ -2745,8 +2745,8 @@ function EmbeddableChatInner({
|
|
|
2745
2745
|
addFiles: addAttachmentFiles,
|
|
2746
2746
|
removeAttachment,
|
|
2747
2747
|
clear: clearAttachments
|
|
2748
|
-
} =
|
|
2749
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2748
|
+
} = _chunkOWQVDWTKcjs.useChatAttachments.call(void 0, );
|
|
2749
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkOWQVDWTKcjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2750
2750
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2751
2751
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2752
2752
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2866,7 +2866,7 @@ function EmbeddableChatInner({
|
|
|
2866
2866
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2867
2867
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2868
2868
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2869
|
-
(reference) =>
|
|
2869
|
+
(reference) => _chunkOWQVDWTKcjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2870
2870
|
onDiscuss: askAbout,
|
|
2871
2871
|
onDisplay: displayRef,
|
|
2872
2872
|
baseRoute: resolvedBaseRoute,
|
|
@@ -2876,7 +2876,7 @@ function EmbeddableChatInner({
|
|
|
2876
2876
|
[askAbout, displayRef, resolvedBaseRoute, chipBasePlatform, extras]
|
|
2877
2877
|
);
|
|
2878
2878
|
const mingoAssistantIcon = _react.useMemo.call(void 0,
|
|
2879
|
-
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2879
|
+
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOH5LAH3Xcjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBGAHB6Xcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
|
|
2880
2880
|
[effectiveAssistantIcon]
|
|
2881
2881
|
);
|
|
2882
2882
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
@@ -2888,7 +2888,7 @@ function EmbeddableChatInner({
|
|
|
2888
2888
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2889
2889
|
return mapped;
|
|
2890
2890
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2891
|
-
const whatToAsk =
|
|
2891
|
+
const whatToAsk = _chunkOWQVDWTKcjs.useWhatToAsk.call(void 0, {
|
|
2892
2892
|
dialogId: activeDialogId,
|
|
2893
2893
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2894
2894
|
user: {
|
|
@@ -2907,7 +2907,7 @@ function EmbeddableChatInner({
|
|
|
2907
2907
|
noteWhatToAskSend();
|
|
2908
2908
|
let augmentedText = text;
|
|
2909
2909
|
if (readyAttachments.length > 0) {
|
|
2910
|
-
const markdown = readyAttachments.map((att) =>
|
|
2910
|
+
const markdown = readyAttachments.map((att) => _chunkOWQVDWTKcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2911
2911
|
augmentedText = `${text}${markdown}`;
|
|
2912
2912
|
}
|
|
2913
2913
|
void sendMessage(augmentedText, {
|
|
@@ -2946,7 +2946,7 @@ function EmbeddableChatInner({
|
|
|
2946
2946
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2947
2947
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2948
2948
|
// built-in agents.
|
|
2949
|
-
accent: _nullishCoalesce(
|
|
2949
|
+
accent: _nullishCoalesce(_chunkOWQVDWTKcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkOWQVDWTKcjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2950
2950
|
}));
|
|
2951
2951
|
}
|
|
2952
2952
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2994,7 +2994,7 @@ function EmbeddableChatInner({
|
|
|
2994
2994
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
2995
2995
|
});
|
|
2996
2996
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
2997
|
-
|
|
2997
|
+
_chunkOWQVDWTKcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
2998
2998
|
_react.useEffect.call(void 0, () => {
|
|
2999
2999
|
const handler = (e) => {
|
|
3000
3000
|
const detail = e.detail;
|
|
@@ -3002,8 +3002,8 @@ function EmbeddableChatInner({
|
|
|
3002
3002
|
setIsOpen(true);
|
|
3003
3003
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
3004
3004
|
};
|
|
3005
|
-
window.addEventListener(
|
|
3006
|
-
return () => window.removeEventListener(
|
|
3005
|
+
window.addEventListener(_chunkOWQVDWTKcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3006
|
+
return () => window.removeEventListener(_chunkOWQVDWTKcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3007
3007
|
}, [source, askAbout, setIsOpen]);
|
|
3008
3008
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
3009
3009
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3037,10 +3037,10 @@ function EmbeddableChatInner({
|
|
|
3037
3037
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3038
3038
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3039
3039
|
};
|
|
3040
|
-
window.addEventListener(
|
|
3041
|
-
return () => window.removeEventListener(
|
|
3040
|
+
window.addEventListener(_chunkOWQVDWTKcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3041
|
+
return () => window.removeEventListener(_chunkOWQVDWTKcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3042
3042
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3043
|
-
_react.useEffect.call(void 0, () =>
|
|
3043
|
+
_react.useEffect.call(void 0, () => _chunkOWQVDWTKcjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3044
3044
|
const hasMessages = messages.length > 0;
|
|
3045
3045
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3046
3046
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3076,7 +3076,7 @@ function EmbeddableChatInner({
|
|
|
3076
3076
|
(message, index) => {
|
|
3077
3077
|
if (message.role !== "assistant") return null;
|
|
3078
3078
|
if (chatLoading && index === messages.length - 1) return null;
|
|
3079
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3079
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunkOWQVDWTKcjs.flattenAssistantContent.call(void 0, message.content));
|
|
3080
3080
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3081
3081
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3082
3082
|
SourceChips,
|
|
@@ -3094,7 +3094,7 @@ function EmbeddableChatInner({
|
|
|
3094
3094
|
);
|
|
3095
3095
|
const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
|
|
3096
3096
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3097
|
-
const splitMinWidth = (isV2 ?
|
|
3097
|
+
const splitMinWidth = (isV2 ? _chunkOWQVDWTKcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkOWQVDWTKcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3098
3098
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3099
3099
|
_react.useEffect.call(void 0, () => {
|
|
3100
3100
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3113,7 +3113,7 @@ function EmbeddableChatInner({
|
|
|
3113
3113
|
[splitMinWidth]
|
|
3114
3114
|
);
|
|
3115
3115
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3116
|
-
const railStorageHydrated =
|
|
3116
|
+
const railStorageHydrated = _chunkOWQVDWTKcjs.useIsHydrated.call(void 0, );
|
|
3117
3117
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3118
3118
|
if (railStorageHydrated && !railStorageRead) {
|
|
3119
3119
|
setRailStorageRead(true);
|
|
@@ -3167,7 +3167,7 @@ function EmbeddableChatInner({
|
|
|
3167
3167
|
resetToNewChat();
|
|
3168
3168
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3169
3169
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3170
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 ||
|
|
3170
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunkOWQVDWTKcjs.awaitsDecision.call(void 0, hostMessages);
|
|
3171
3171
|
const showWhatToAsk = (content) => {
|
|
3172
3172
|
whatToAsk.clearDraft();
|
|
3173
3173
|
resetToNewChat();
|
|
@@ -3263,7 +3263,7 @@ function EmbeddableChatInner({
|
|
|
3263
3263
|
}),
|
|
3264
3264
|
[resetToNewChat, contextMaxItems]
|
|
3265
3265
|
);
|
|
3266
|
-
const splitHeaderMenuItems =
|
|
3266
|
+
const splitHeaderMenuItems = _chunkOWQVDWTKcjs.chatDialogMenuItems.call(void 0, {
|
|
3267
3267
|
onCopyLink: headerOnCopyLink,
|
|
3268
3268
|
onRename: headerOnRename,
|
|
3269
3269
|
onCompact: headerOnCompact,
|
|
@@ -3342,7 +3342,7 @@ function EmbeddableChatInner({
|
|
|
3342
3342
|
onRetry: reloadDialogs
|
|
3343
3343
|
};
|
|
3344
3344
|
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,
|
|
3345
|
-
|
|
3345
|
+
_chunkOWQVDWTKcjs.MingoChatHeader,
|
|
3346
3346
|
{
|
|
3347
3347
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3348
3348
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3362,7 +3362,7 @@ function EmbeddableChatInner({
|
|
|
3362
3362
|
const body = (
|
|
3363
3363
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3364
3364
|
// only the thread `ChatMessageList` provides it to.
|
|
3365
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3365
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWQVDWTKcjs.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: [
|
|
3366
3366
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3367
3367
|
"div",
|
|
3368
3368
|
{
|
|
@@ -3370,7 +3370,7 @@ function EmbeddableChatInner({
|
|
|
3370
3370
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3371
3371
|
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" : ""}`,
|
|
3372
3372
|
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,
|
|
3373
|
-
|
|
3373
|
+
_chunkOWQVDWTKcjs.ChatArchivePage,
|
|
3374
3374
|
{
|
|
3375
3375
|
dialogs: archivedDialogs,
|
|
3376
3376
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3400,7 +3400,7 @@ function EmbeddableChatInner({
|
|
|
3400
3400
|
narrow: true,
|
|
3401
3401
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3402
3402
|
innerClassName: "flex min-h-0 flex-col",
|
|
3403
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3403
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWQVDWTKcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3404
3404
|
}
|
|
3405
3405
|
),
|
|
3406
3406
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3424,7 +3424,7 @@ function EmbeddableChatInner({
|
|
|
3424
3424
|
// Back is a full-height leading cell, matching the other
|
|
3425
3425
|
// header cells (not a small inline chevron).
|
|
3426
3426
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3427
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3427
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWQVDWTKcjs.ChatHeaderIconButton, { divider: "right", onClick: closeArchive, "aria-label": "Back to chats", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
|
|
3428
3428
|
/* @__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" }) })
|
|
3429
3429
|
] })
|
|
3430
3430
|
) : (
|
|
@@ -3434,7 +3434,7 @@ function EmbeddableChatInner({
|
|
|
3434
3434
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3435
3435
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3436
3436
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3437
|
-
|
|
3437
|
+
_chunkOWQVDWTKcjs.ChatHeaderSearchField,
|
|
3438
3438
|
{
|
|
3439
3439
|
initialValue: mingoCaps.searchQuery,
|
|
3440
3440
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3443,7 +3443,7 @@ function EmbeddableChatInner({
|
|
|
3443
3443
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3444
3444
|
/* @__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" }) }),
|
|
3445
3445
|
mingoCaps.onSearchChange && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3446
|
-
|
|
3446
|
+
_chunkOWQVDWTKcjs.ChatHeaderIconButton,
|
|
3447
3447
|
{
|
|
3448
3448
|
onClick: () => setRailSearchOpen((o) => !o),
|
|
3449
3449
|
"aria-label": "Search chats",
|
|
@@ -3452,7 +3452,7 @@ function EmbeddableChatInner({
|
|
|
3452
3452
|
}
|
|
3453
3453
|
)
|
|
3454
3454
|
] }),
|
|
3455
|
-
headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3455
|
+
headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWQVDWTKcjs.ChatHeaderIconButton, { onClick: headerOnOpenArchive, "aria-label": "Chat archive", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JKBT3LTcjs.ClockHistoryIcon, { size: 24 }) })
|
|
3456
3456
|
] })
|
|
3457
3457
|
) }),
|
|
3458
3458
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1", children: [
|
|
@@ -3489,17 +3489,17 @@ function EmbeddableChatInner({
|
|
|
3489
3489
|
)
|
|
3490
3490
|
) : null
|
|
3491
3491
|
] }),
|
|
3492
|
-
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3492
|
+
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWQVDWTKcjs.ChatHeaderIconButton, { onClick: headerOnRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
3493
3493
|
headerShowBack && !isViewingArchived && splitHeaderMenuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3494
3494
|
_chunkLELS4XMXcjs.ActionsMenuDropdown,
|
|
3495
3495
|
{
|
|
3496
3496
|
triggerAriaLabel: "Chat actions",
|
|
3497
3497
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3498
3498
|
groups: [{ items: splitHeaderMenuItems }],
|
|
3499
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3499
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWQVDWTKcjs.ChatHeaderIconButton, { "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
3500
3500
|
}
|
|
3501
3501
|
),
|
|
3502
|
-
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3502
|
+
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWQVDWTKcjs.ChatHeaderIconButton, { onClick: closeControl, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
3503
3503
|
] })
|
|
3504
3504
|
] })
|
|
3505
3505
|
) : (
|
|
@@ -3507,10 +3507,10 @@ function EmbeddableChatInner({
|
|
|
3507
3507
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3508
3508
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3509
3509
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3510
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3510
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWQVDWTKcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3511
3511
|
),
|
|
3512
3512
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3513
|
-
|
|
3513
|
+
_chunkOWQVDWTKcjs.GuideModeBanner,
|
|
3514
3514
|
{
|
|
3515
3515
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3516
3516
|
}
|
|
@@ -3520,7 +3520,7 @@ function EmbeddableChatInner({
|
|
|
3520
3520
|
// Archive list inside the rail (header lives in the split
|
|
3521
3521
|
// header's left cell above). Right chat block stays put.
|
|
3522
3522
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3523
|
-
|
|
3523
|
+
_chunkOWQVDWTKcjs.ChatArchivePage,
|
|
3524
3524
|
{
|
|
3525
3525
|
embedded: true,
|
|
3526
3526
|
dialogs: archivedDialogs,
|
|
@@ -3534,7 +3534,7 @@ function EmbeddableChatInner({
|
|
|
3534
3534
|
}
|
|
3535
3535
|
)
|
|
3536
3536
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3537
|
-
|
|
3537
|
+
_chunkOWQVDWTKcjs.MingoHistoryRail,
|
|
3538
3538
|
{
|
|
3539
3539
|
dialogs,
|
|
3540
3540
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3561,7 +3561,7 @@ function EmbeddableChatInner({
|
|
|
3561
3561
|
// v2: the archive opens in the chat column under the chat's
|
|
3562
3562
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3563
3563
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3564
|
-
|
|
3564
|
+
_chunkOWQVDWTKcjs.MingoArchiveList,
|
|
3565
3565
|
{
|
|
3566
3566
|
dialogs: archivedDialogs,
|
|
3567
3567
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3574,7 +3574,7 @@ function EmbeddableChatInner({
|
|
|
3574
3574
|
}
|
|
3575
3575
|
)
|
|
3576
3576
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3577
|
-
|
|
3577
|
+
_chunkOWQVDWTKcjs.MingoChatRail,
|
|
3578
3578
|
{
|
|
3579
3579
|
...mingoRailProps,
|
|
3580
3580
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3593,7 +3593,7 @@ function EmbeddableChatInner({
|
|
|
3593
3593
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3594
3594
|
// the compose view.
|
|
3595
3595
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3596
|
-
|
|
3596
|
+
_chunkOWQVDWTKcjs.MingoHistoryRail,
|
|
3597
3597
|
{
|
|
3598
3598
|
className: "duration-200 animate-in fade-in-0",
|
|
3599
3599
|
dialogs,
|
|
@@ -3633,14 +3633,14 @@ function EmbeddableChatInner({
|
|
|
3633
3633
|
// skeleton overflows a short panel and grows its OWN
|
|
3634
3634
|
// scrollbar — ugly. `fill` top-anchors + clips overflow so
|
|
3635
3635
|
// it reads as "the whole panel is loading" and never scrolls.
|
|
3636
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3636
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWQVDWTKcjs.ChatMessageListSkeleton, { fullWidth: true, fill: previewMode, className: "flex-1" })
|
|
3637
3637
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3638
|
-
|
|
3638
|
+
_chunkOWQVDWTKcjs.ChatMessageList,
|
|
3639
3639
|
{
|
|
3640
3640
|
messages,
|
|
3641
3641
|
appearance,
|
|
3642
3642
|
isTyping: chatLoading,
|
|
3643
|
-
typingMessage: streamingProgress ?
|
|
3643
|
+
typingMessage: streamingProgress ? _chunkOWQVDWTKcjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
|
|
3644
3644
|
pendingApprovals,
|
|
3645
3645
|
autoScroll: !previewMode,
|
|
3646
3646
|
pinBottom: previewMode,
|
|
@@ -3653,7 +3653,7 @@ function EmbeddableChatInner({
|
|
|
3653
3653
|
renderMention,
|
|
3654
3654
|
renderAfterMessage: renderMessageSources,
|
|
3655
3655
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3656
|
-
NavLinkAnchor:
|
|
3656
|
+
NavLinkAnchor: _chunkOWQVDWTKcjs.NavLinkAnchorViaRuntime,
|
|
3657
3657
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3658
3658
|
contentClassName: "max-w-none pb-0",
|
|
3659
3659
|
fullWidth: true,
|
|
@@ -3667,7 +3667,7 @@ function EmbeddableChatInner({
|
|
|
3667
3667
|
quick-action chips. Guide mode keeps the slash-command
|
|
3668
3668
|
onboarding list below. */
|
|
3669
3669
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3670
|
-
|
|
3670
|
+
_chunkOWQVDWTKcjs.MingoWelcome,
|
|
3671
3671
|
{
|
|
3672
3672
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3673
3673
|
...mingoWelcome,
|
|
@@ -3682,7 +3682,7 @@ function EmbeddableChatInner({
|
|
|
3682
3682
|
+ slash-command onboarding list share one scroll region,
|
|
3683
3683
|
with a pinned quick-action chip row above the composer. */
|
|
3684
3684
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3685
|
-
|
|
3685
|
+
_chunkOWQVDWTKcjs.GuideWelcome,
|
|
3686
3686
|
{
|
|
3687
3687
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3688
3688
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3699,7 +3699,7 @@ function EmbeddableChatInner({
|
|
|
3699
3699
|
agentSlug: activeAgentSlug,
|
|
3700
3700
|
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
3701
3701
|
!commandsLoaded && chipCommands.length === 0 && SKELETON_ROW_VARIANTS.map((variant, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3702
|
-
|
|
3702
|
+
_chunkOWQVDWTKcjs.MingoOnboardingCardSkeleton,
|
|
3703
3703
|
{
|
|
3704
3704
|
titleWidth: variant.titleWidth,
|
|
3705
3705
|
slashWidth: variant.slashWidth,
|
|
@@ -3737,7 +3737,7 @@ function EmbeddableChatInner({
|
|
|
3737
3737
|
) }),
|
|
3738
3738
|
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 }),
|
|
3739
3739
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3740
|
-
|
|
3740
|
+
_chunkOWQVDWTKcjs.ChatAttachmentChipStrip,
|
|
3741
3741
|
{
|
|
3742
3742
|
attachments: stagedAttachments,
|
|
3743
3743
|
onRemove: removeAttachment,
|
|
@@ -3745,7 +3745,7 @@ function EmbeddableChatInner({
|
|
|
3745
3745
|
}
|
|
3746
3746
|
),
|
|
3747
3747
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3748
|
-
|
|
3748
|
+
_chunkOWQVDWTKcjs.ChatComposer,
|
|
3749
3749
|
{
|
|
3750
3750
|
archived: isViewingArchived,
|
|
3751
3751
|
lock: composerLock,
|
|
@@ -3796,7 +3796,7 @@ function EmbeddableChatInner({
|
|
|
3796
3796
|
),
|
|
3797
3797
|
galleryModal,
|
|
3798
3798
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3799
|
-
|
|
3799
|
+
_chunkOWQVDWTKcjs.ChatDialogModals,
|
|
3800
3800
|
{
|
|
3801
3801
|
renameTarget,
|
|
3802
3802
|
setRenameTarget,
|
|
@@ -3812,13 +3812,13 @@ function EmbeddableChatInner({
|
|
|
3812
3812
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3813
3813
|
] }) }) })
|
|
3814
3814
|
);
|
|
3815
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3815
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkOWQVDWTKcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3816
3816
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3817
3817
|
sourceLabel,
|
|
3818
3818
|
" AI Assistant"
|
|
3819
3819
|
] }) }),
|
|
3820
3820
|
body
|
|
3821
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkR6BKQKIFcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3821
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkR6BKQKIFcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWQVDWTKcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3822
3822
|
_chunkR6BKQKIFcjs.DrawerContent,
|
|
3823
3823
|
{
|
|
3824
3824
|
side: "right",
|