@flamingo-stack/openframe-frontend-core 0.0.762 → 0.0.764
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-J4P47JHM.cjs → chunk-3FC6AKEJ.cjs} +7 -7
- package/dist/{chunk-CZ3OVWUL.cjs → chunk-5AV5R5RC.cjs} +6 -6
- package/dist/{chunk-TQPQKBBL.cjs → chunk-74ALTXXC.cjs} +34 -34
- package/dist/{chunk-DZ6BYXQF.cjs → chunk-7GUWPGB4.cjs} +9 -9
- package/dist/{chunk-PE26VSWT.cjs → chunk-BIA77I6B.cjs} +8 -2
- package/dist/{chunk-3WPWUUFU.cjs → chunk-FQWBIKF4.cjs} +17 -17
- package/dist/{chunk-NSR7K57R.cjs → chunk-IDGOMHTC.cjs} +43 -43
- package/dist/{chunk-PFXR3RF3.cjs → chunk-JD7CL2I6.cjs} +4 -4
- package/dist/{chunk-N52HFJTK.cjs → chunk-JJ2S6C5U.cjs} +36 -36
- package/dist/{chunk-AXGTRPF6.cjs → chunk-L2V7K7RR.cjs} +11 -11
- package/dist/{chunk-TGVV7STM.cjs → chunk-LNGR4DXA.cjs} +10 -10
- package/dist/{chunk-QCO32MEE.cjs → chunk-NJS7FQRW.cjs} +4 -4
- package/dist/{chunk-4NGXJA3V.cjs → chunk-PERN37KO.cjs} +4 -4
- package/dist/{chunk-DYJWZIPU.cjs → chunk-RYSNH2VY.cjs} +72 -72
- package/dist/{chunk-CEJDHCFZ.cjs → chunk-T5FRANE6.cjs} +21 -21
- package/dist/{chunk-72XMAKDA.cjs → chunk-VL6IXTAI.cjs} +174 -144
- package/dist/{chunk-TWAHPTWW.cjs → chunk-XFNWHCRM.cjs} +3 -3
- package/dist/{chunk-E4LA4BEH.cjs → chunk-ZCU2PYCW.cjs} +9 -9
- package/dist/{chunk-4VAMNI27.cjs → chunk-ZG6F5A3A.cjs} +27 -27
- package/dist/{cloud-tenants-M5SIL6QZ.cjs → cloud-tenants-N5CLYDPU.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/index.cjs +8 -6
- package/dist/components/features/walkthrough-video.d.ts +7 -0
- package/dist/components/features/walkthrough-video.d.ts.map +1 -1
- package/dist/components/features/walkthrough-video.js +9 -1
- package/dist/components/help-center-pages/index.cjs +58 -58
- package/dist/components/index.cjs +43 -39
- package/dist/components/meeting-scheduler/index.cjs +24 -24
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +2 -2
- package/dist/components/ui/device-card.d.ts.map +1 -1
- package/dist/components/ui/device-card.js +3 -2
- package/dist/components/ui/index.cjs +8 -6
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/super-user-banner-view.d.ts +24 -0
- package/dist/components/ui/super-user-banner-view.d.ts.map +1 -0
- package/dist/components/ui/super-user-banner-view.js +28 -0
- package/dist/{devices-TZY7RF7M.cjs → devices-557PMFDC.cjs} +7 -7
- package/dist/{embeddable-chat-HWQSP3DY.cjs → embeddable-chat-YFUCVDMV.cjs} +69 -69
- package/dist/index.cjs +14 -10
- package/dist/{knowledge-UKC2BLQP.cjs → knowledge-4JTOUDAR.cjs} +7 -7
- package/dist/{logs-MFVTQ5NN.cjs → logs-7YWAOPZ2.cjs} +14 -14
- package/dist/{policies-BETELENB.cjs → policies-W5JEPQTA.cjs} +10 -10
- package/dist/{scripts-XDT3ZAXU.cjs → scripts-FY5IPOIM.cjs} +11 -11
- package/dist/{software-update-EW5X7R2X.cjs → software-update-5BOGZOHG.cjs} +9 -9
- package/dist/{tickets-board-4PBXPSGJ.cjs → tickets-board-DXMF7IKL.cjs} +7 -7
- package/dist/utils/date-utils.d.ts +7 -2
- package/dist/utils/date-utils.d.ts.map +1 -1
- package/dist/utils/date-utils.js +8 -3
- package/dist/utils/index.cjs +7 -2
- package/package.json +1 -1
- package/src/components/features/walkthrough-video.tsx +17 -0
- package/src/components/ui/date-picker.tsx +6 -3
- package/src/components/ui/device-card.tsx +5 -6
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/super-user-banner-view.tsx +52 -0
- package/src/utils/date-utils.ts +17 -8
|
@@ -59,10 +59,10 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunk74ALTXXCcjs = require('./chunk-74ALTXXC.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkBIA77I6Bcjs = require('./chunk-BIA77I6B.cjs');
|
|
66
66
|
require('./chunk-3RFQPQ7Z.cjs');
|
|
67
67
|
|
|
68
68
|
|
|
@@ -2133,7 +2133,7 @@ function splitCitedSources(sources, content) {
|
|
|
2133
2133
|
}
|
|
2134
2134
|
const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
|
|
2135
2135
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2136
|
-
return { cited:
|
|
2136
|
+
return { cited: _chunk74ALTXXCcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunk74ALTXXCcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2137
2137
|
}
|
|
2138
2138
|
|
|
2139
2139
|
// src/components/chat/utils/host-message.ts
|
|
@@ -2184,7 +2184,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2184
2184
|
// src/components/chat/embeddable-chat.tsx
|
|
2185
2185
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2186
2186
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2187
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2187
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunk74ALTXXCcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2188
2188
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2189
2189
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2190
2190
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2265,7 +2265,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2265
2265
|
if (!input) return;
|
|
2266
2266
|
switch (actionId) {
|
|
2267
2267
|
case "browse":
|
|
2268
|
-
input.submit(
|
|
2268
|
+
input.submit(_chunk74ALTXXCcjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2269
2269
|
return;
|
|
2270
2270
|
case "search":
|
|
2271
2271
|
input.setValue(`/${cmdId} `);
|
|
@@ -2291,7 +2291,7 @@ function SourceChip({
|
|
|
2291
2291
|
}) {
|
|
2292
2292
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2293
2293
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
2294
|
-
const cta =
|
|
2294
|
+
const cta = _chunk74ALTXXCcjs.resolveSourceRowCTA.call(void 0,
|
|
2295
2295
|
{
|
|
2296
2296
|
sourceRepo: src.sourceRepo,
|
|
2297
2297
|
documentType: src.documentType,
|
|
@@ -2301,15 +2301,15 @@ function SourceChip({
|
|
|
2301
2301
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2302
2302
|
path: src.path
|
|
2303
2303
|
},
|
|
2304
|
-
|
|
2304
|
+
_chunk74ALTXXCcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2305
2305
|
);
|
|
2306
2306
|
const Icon = cta.icon;
|
|
2307
2307
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2308
|
-
const chipClass =
|
|
2308
|
+
const chipClass = _chunk74ALTXXCcjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2309
2309
|
const decideTab = (href, targetPlatform) => _chunk22XAPV6Ncjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
|
|
2310
2310
|
if (src.items && src.items.length > 0) {
|
|
2311
2311
|
const dropdownItems = src.items.map((item) => {
|
|
2312
|
-
const itemCta =
|
|
2312
|
+
const itemCta = _chunk74ALTXXCcjs.resolveSourceRowCTA.call(void 0,
|
|
2313
2313
|
{
|
|
2314
2314
|
sourceRepo: src.sourceRepo,
|
|
2315
2315
|
documentType: item.documentType,
|
|
@@ -2319,7 +2319,7 @@ function SourceChip({
|
|
|
2319
2319
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2320
2320
|
path: item.path
|
|
2321
2321
|
},
|
|
2322
|
-
|
|
2322
|
+
_chunk74ALTXXCcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2323
2323
|
);
|
|
2324
2324
|
const ItemIcon = itemCta.icon;
|
|
2325
2325
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2339,13 +2339,13 @@ function SourceChip({
|
|
|
2339
2339
|
};
|
|
2340
2340
|
});
|
|
2341
2341
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2342
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2342
|
+
const groupIndices = itemIndices.length > 0 ? _chunk74ALTXXCcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2343
2343
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2344
2344
|
_chunkGY2JESOCcjs.HoverDropdown,
|
|
2345
2345
|
{
|
|
2346
2346
|
items: dropdownItems,
|
|
2347
2347
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2348
|
-
|
|
2348
|
+
_chunk74ALTXXCcjs.NavLinkAnchorViaRuntime,
|
|
2349
2349
|
{
|
|
2350
2350
|
href,
|
|
2351
2351
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2378,10 +2378,10 @@ function SourceChip({
|
|
|
2378
2378
|
] });
|
|
2379
2379
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", children: [
|
|
2380
2380
|
clickable,
|
|
2381
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2381
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk74ALTXXCcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2382
2382
|
] });
|
|
2383
2383
|
const buildClickHandler = (href, path, targetPlatform, isNewTab) => (e) => {
|
|
2384
|
-
const handled =
|
|
2384
|
+
const handled = _chunk74ALTXXCcjs.executeNavigation.call(void 0, {
|
|
2385
2385
|
event: e,
|
|
2386
2386
|
runtime,
|
|
2387
2387
|
href,
|
|
@@ -2553,7 +2553,7 @@ function EmbeddableChatInner({
|
|
|
2553
2553
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2554
2554
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2555
2555
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2556
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2556
|
+
const { attachmentsEnabled, user: identityUser } = _chunk74ALTXXCcjs.useChatIdentity.call(void 0, );
|
|
2557
2557
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2558
2558
|
_react.useEffect.call(void 0, () => {
|
|
2559
2559
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2607,9 +2607,9 @@ function EmbeddableChatInner({
|
|
|
2607
2607
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2608
2608
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2609
2609
|
() => ({
|
|
2610
|
-
fetchCommands: (prefix, signal) =>
|
|
2610
|
+
fetchCommands: (prefix, signal) => _chunk74ALTXXCcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2611
2611
|
resolveSourceIcon: (sourceId) => {
|
|
2612
|
-
const iconName =
|
|
2612
|
+
const iconName = _chunk74ALTXXCcjs.getSourceIconName.call(void 0, sourceId);
|
|
2613
2613
|
if (!iconName) return void 0;
|
|
2614
2614
|
return { Icon: _chunkR3TWQ3ZJcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2615
2615
|
},
|
|
@@ -2638,7 +2638,7 @@ function EmbeddableChatInner({
|
|
|
2638
2638
|
},
|
|
2639
2639
|
[controlledActiveMode, onActiveModeChange]
|
|
2640
2640
|
);
|
|
2641
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2641
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunk74ALTXXCcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2642
2642
|
enabled: activeMode === "guide"
|
|
2643
2643
|
});
|
|
2644
2644
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2649,7 +2649,7 @@ function EmbeddableChatInner({
|
|
|
2649
2649
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2650
2650
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2651
2651
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2652
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2652
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunk74ALTXXCcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2653
2653
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2654
2654
|
});
|
|
2655
2655
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2696,7 +2696,7 @@ function EmbeddableChatInner({
|
|
|
2696
2696
|
hasMoreMessages,
|
|
2697
2697
|
loadMoreMessages,
|
|
2698
2698
|
dialogCapabilities
|
|
2699
|
-
} =
|
|
2699
|
+
} = _chunk74ALTXXCcjs.useUnifiedChat.call(void 0, {
|
|
2700
2700
|
modes: effectiveModes,
|
|
2701
2701
|
activeMode,
|
|
2702
2702
|
mingoStateOverride: mingoState,
|
|
@@ -2743,8 +2743,8 @@ function EmbeddableChatInner({
|
|
|
2743
2743
|
addFiles: addAttachmentFiles,
|
|
2744
2744
|
removeAttachment,
|
|
2745
2745
|
clear: clearAttachments
|
|
2746
|
-
} =
|
|
2747
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2746
|
+
} = _chunk74ALTXXCcjs.useChatAttachments.call(void 0, );
|
|
2747
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunk74ALTXXCcjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2748
2748
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2749
2749
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2750
2750
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2864,7 +2864,7 @@ function EmbeddableChatInner({
|
|
|
2864
2864
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2865
2865
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2866
2866
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2867
|
-
(reference) =>
|
|
2867
|
+
(reference) => _chunk74ALTXXCcjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2868
2868
|
onDiscuss: askAbout,
|
|
2869
2869
|
onDisplay: displayRef,
|
|
2870
2870
|
baseRoute: resolvedBaseRoute,
|
|
@@ -2874,7 +2874,7 @@ function EmbeddableChatInner({
|
|
|
2874
2874
|
[askAbout, displayRef, resolvedBaseRoute, chipBasePlatform, extras]
|
|
2875
2875
|
);
|
|
2876
2876
|
const mingoAssistantIcon = _react.useMemo.call(void 0,
|
|
2877
|
-
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2877
|
+
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIA77I6Bcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
|
|
2878
2878
|
[effectiveAssistantIcon]
|
|
2879
2879
|
);
|
|
2880
2880
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
@@ -2886,7 +2886,7 @@ function EmbeddableChatInner({
|
|
|
2886
2886
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2887
2887
|
return mapped;
|
|
2888
2888
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2889
|
-
const whatToAsk =
|
|
2889
|
+
const whatToAsk = _chunk74ALTXXCcjs.useWhatToAsk.call(void 0, {
|
|
2890
2890
|
dialogId: activeDialogId,
|
|
2891
2891
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2892
2892
|
user: {
|
|
@@ -2905,7 +2905,7 @@ function EmbeddableChatInner({
|
|
|
2905
2905
|
noteWhatToAskSend();
|
|
2906
2906
|
let augmentedText = text;
|
|
2907
2907
|
if (readyAttachments.length > 0) {
|
|
2908
|
-
const markdown = readyAttachments.map((att) =>
|
|
2908
|
+
const markdown = readyAttachments.map((att) => _chunk74ALTXXCcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2909
2909
|
augmentedText = `${text}${markdown}`;
|
|
2910
2910
|
}
|
|
2911
2911
|
void sendMessage(augmentedText, {
|
|
@@ -2944,7 +2944,7 @@ function EmbeddableChatInner({
|
|
|
2944
2944
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2945
2945
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2946
2946
|
// built-in agents.
|
|
2947
|
-
accent: _nullishCoalesce(
|
|
2947
|
+
accent: _nullishCoalesce(_chunk74ALTXXCcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunk74ALTXXCcjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2948
2948
|
}));
|
|
2949
2949
|
}
|
|
2950
2950
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2992,7 +2992,7 @@ function EmbeddableChatInner({
|
|
|
2992
2992
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
2993
2993
|
});
|
|
2994
2994
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
2995
|
-
|
|
2995
|
+
_chunk74ALTXXCcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
2996
2996
|
_react.useEffect.call(void 0, () => {
|
|
2997
2997
|
const handler = (e) => {
|
|
2998
2998
|
const detail = e.detail;
|
|
@@ -3000,8 +3000,8 @@ function EmbeddableChatInner({
|
|
|
3000
3000
|
setIsOpen(true);
|
|
3001
3001
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
3002
3002
|
};
|
|
3003
|
-
window.addEventListener(
|
|
3004
|
-
return () => window.removeEventListener(
|
|
3003
|
+
window.addEventListener(_chunk74ALTXXCcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3004
|
+
return () => window.removeEventListener(_chunk74ALTXXCcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3005
3005
|
}, [source, askAbout, setIsOpen]);
|
|
3006
3006
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
3007
3007
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3035,10 +3035,10 @@ function EmbeddableChatInner({
|
|
|
3035
3035
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3036
3036
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3037
3037
|
};
|
|
3038
|
-
window.addEventListener(
|
|
3039
|
-
return () => window.removeEventListener(
|
|
3038
|
+
window.addEventListener(_chunk74ALTXXCcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3039
|
+
return () => window.removeEventListener(_chunk74ALTXXCcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3040
3040
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3041
|
-
_react.useEffect.call(void 0, () =>
|
|
3041
|
+
_react.useEffect.call(void 0, () => _chunk74ALTXXCcjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3042
3042
|
const hasMessages = messages.length > 0;
|
|
3043
3043
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3044
3044
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3074,7 +3074,7 @@ function EmbeddableChatInner({
|
|
|
3074
3074
|
(message, index) => {
|
|
3075
3075
|
if (message.role !== "assistant") return null;
|
|
3076
3076
|
if (chatLoading && index === messages.length - 1) return null;
|
|
3077
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3077
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunk74ALTXXCcjs.flattenAssistantContent.call(void 0, message.content));
|
|
3078
3078
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3079
3079
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3080
3080
|
SourceChips,
|
|
@@ -3092,7 +3092,7 @@ function EmbeddableChatInner({
|
|
|
3092
3092
|
);
|
|
3093
3093
|
const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
|
|
3094
3094
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3095
|
-
const splitMinWidth = (isV2 ?
|
|
3095
|
+
const splitMinWidth = (isV2 ? _chunk74ALTXXCcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunk74ALTXXCcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3096
3096
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3097
3097
|
_react.useEffect.call(void 0, () => {
|
|
3098
3098
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3111,7 +3111,7 @@ function EmbeddableChatInner({
|
|
|
3111
3111
|
[splitMinWidth]
|
|
3112
3112
|
);
|
|
3113
3113
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3114
|
-
const railStorageHydrated =
|
|
3114
|
+
const railStorageHydrated = _chunk74ALTXXCcjs.useIsHydrated.call(void 0, );
|
|
3115
3115
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3116
3116
|
if (railStorageHydrated && !railStorageRead) {
|
|
3117
3117
|
setRailStorageRead(true);
|
|
@@ -3165,7 +3165,7 @@ function EmbeddableChatInner({
|
|
|
3165
3165
|
resetToNewChat();
|
|
3166
3166
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3167
3167
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3168
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 ||
|
|
3168
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunk74ALTXXCcjs.awaitsDecision.call(void 0, hostMessages);
|
|
3169
3169
|
const showWhatToAsk = (content, newChat = false) => {
|
|
3170
3170
|
if (!newChat && activeDialogId && hasConversation && !isViewingArchived && !isMessagesLoading && !isChatBlocked) {
|
|
3171
3171
|
whatToAsk.ask("current", content);
|
|
@@ -3268,7 +3268,7 @@ function EmbeddableChatInner({
|
|
|
3268
3268
|
}),
|
|
3269
3269
|
[resetToNewChat, contextMaxItems]
|
|
3270
3270
|
);
|
|
3271
|
-
const splitHeaderMenuItems =
|
|
3271
|
+
const splitHeaderMenuItems = _chunk74ALTXXCcjs.chatDialogMenuItems.call(void 0, {
|
|
3272
3272
|
onCopyLink: headerOnCopyLink,
|
|
3273
3273
|
onRename: headerOnRename,
|
|
3274
3274
|
onCompact: headerOnCompact,
|
|
@@ -3350,7 +3350,7 @@ function EmbeddableChatInner({
|
|
|
3350
3350
|
onRetry: reloadDialogs
|
|
3351
3351
|
};
|
|
3352
3352
|
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,
|
|
3353
|
-
|
|
3353
|
+
_chunk74ALTXXCcjs.MingoChatHeader,
|
|
3354
3354
|
{
|
|
3355
3355
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3356
3356
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3370,7 +3370,7 @@ function EmbeddableChatInner({
|
|
|
3370
3370
|
const body = (
|
|
3371
3371
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3372
3372
|
// only the thread `ChatMessageList` provides it to.
|
|
3373
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3373
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk74ALTXXCcjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRB6BSE3Ocjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkRB6BSE3Ocjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
|
|
3374
3374
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3375
3375
|
"div",
|
|
3376
3376
|
{
|
|
@@ -3378,7 +3378,7 @@ function EmbeddableChatInner({
|
|
|
3378
3378
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3379
3379
|
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" : ""}`,
|
|
3380
3380
|
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,
|
|
3381
|
-
|
|
3381
|
+
_chunk74ALTXXCcjs.ChatArchivePage,
|
|
3382
3382
|
{
|
|
3383
3383
|
dialogs: archivedDialogs,
|
|
3384
3384
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3408,7 +3408,7 @@ function EmbeddableChatInner({
|
|
|
3408
3408
|
narrow: true,
|
|
3409
3409
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3410
3410
|
innerClassName: "flex min-h-0 flex-col",
|
|
3411
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3411
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk74ALTXXCcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3412
3412
|
}
|
|
3413
3413
|
),
|
|
3414
3414
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3432,7 +3432,7 @@ function EmbeddableChatInner({
|
|
|
3432
3432
|
// Back is a full-height leading cell, matching the other
|
|
3433
3433
|
// header cells (not a small inline chevron).
|
|
3434
3434
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3435
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3435
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk74ALTXXCcjs.ChatHeaderIconButton, { divider: "right", onClick: closeArchive, "aria-label": "Back to chats", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
|
|
3436
3436
|
/* @__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" }) })
|
|
3437
3437
|
] })
|
|
3438
3438
|
) : (
|
|
@@ -3442,7 +3442,7 @@ function EmbeddableChatInner({
|
|
|
3442
3442
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3443
3443
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3444
3444
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3445
|
-
|
|
3445
|
+
_chunk74ALTXXCcjs.ChatHeaderSearchField,
|
|
3446
3446
|
{
|
|
3447
3447
|
initialValue: mingoCaps.searchQuery,
|
|
3448
3448
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3451,7 +3451,7 @@ function EmbeddableChatInner({
|
|
|
3451
3451
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3452
3452
|
/* @__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" }) }),
|
|
3453
3453
|
mingoCaps.onSearchChange && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3454
|
-
|
|
3454
|
+
_chunk74ALTXXCcjs.ChatHeaderIconButton,
|
|
3455
3455
|
{
|
|
3456
3456
|
onClick: () => setRailSearchOpen((o) => !o),
|
|
3457
3457
|
"aria-label": "Search chats",
|
|
@@ -3460,7 +3460,7 @@ function EmbeddableChatInner({
|
|
|
3460
3460
|
}
|
|
3461
3461
|
)
|
|
3462
3462
|
] }),
|
|
3463
|
-
headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3463
|
+
headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk74ALTXXCcjs.ChatHeaderIconButton, { onClick: headerOnOpenArchive, "aria-label": "Chat archive", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JKBT3LTcjs.ClockHistoryIcon, { size: 24 }) })
|
|
3464
3464
|
] })
|
|
3465
3465
|
) }),
|
|
3466
3466
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1", children: [
|
|
@@ -3497,17 +3497,17 @@ function EmbeddableChatInner({
|
|
|
3497
3497
|
)
|
|
3498
3498
|
) : null
|
|
3499
3499
|
] }),
|
|
3500
|
-
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3500
|
+
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk74ALTXXCcjs.ChatHeaderIconButton, { onClick: headerOnRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
3501
3501
|
headerShowBack && !isViewingArchived && splitHeaderMenuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3502
3502
|
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
3503
3503
|
{
|
|
3504
3504
|
triggerAriaLabel: "Chat actions",
|
|
3505
3505
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3506
3506
|
groups: [{ items: splitHeaderMenuItems }],
|
|
3507
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3507
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk74ALTXXCcjs.ChatHeaderIconButton, { "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
3508
3508
|
}
|
|
3509
3509
|
),
|
|
3510
|
-
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3510
|
+
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk74ALTXXCcjs.ChatHeaderIconButton, { onClick: closeControl, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
3511
3511
|
] })
|
|
3512
3512
|
] })
|
|
3513
3513
|
) : (
|
|
@@ -3515,10 +3515,10 @@ function EmbeddableChatInner({
|
|
|
3515
3515
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3516
3516
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3517
3517
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3518
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3518
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk74ALTXXCcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3519
3519
|
),
|
|
3520
3520
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3521
|
-
|
|
3521
|
+
_chunk74ALTXXCcjs.GuideModeBanner,
|
|
3522
3522
|
{
|
|
3523
3523
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3524
3524
|
}
|
|
@@ -3528,7 +3528,7 @@ function EmbeddableChatInner({
|
|
|
3528
3528
|
// Archive list inside the rail (header lives in the split
|
|
3529
3529
|
// header's left cell above). Right chat block stays put.
|
|
3530
3530
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3531
|
-
|
|
3531
|
+
_chunk74ALTXXCcjs.ChatArchivePage,
|
|
3532
3532
|
{
|
|
3533
3533
|
embedded: true,
|
|
3534
3534
|
dialogs: archivedDialogs,
|
|
@@ -3542,7 +3542,7 @@ function EmbeddableChatInner({
|
|
|
3542
3542
|
}
|
|
3543
3543
|
)
|
|
3544
3544
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3545
|
-
|
|
3545
|
+
_chunk74ALTXXCcjs.MingoHistoryRail,
|
|
3546
3546
|
{
|
|
3547
3547
|
dialogs,
|
|
3548
3548
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3569,7 +3569,7 @@ function EmbeddableChatInner({
|
|
|
3569
3569
|
// v2: the archive opens in the chat column under the chat's
|
|
3570
3570
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3571
3571
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3572
|
-
|
|
3572
|
+
_chunk74ALTXXCcjs.MingoArchiveList,
|
|
3573
3573
|
{
|
|
3574
3574
|
dialogs: archivedDialogs,
|
|
3575
3575
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3582,7 +3582,7 @@ function EmbeddableChatInner({
|
|
|
3582
3582
|
}
|
|
3583
3583
|
)
|
|
3584
3584
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3585
|
-
|
|
3585
|
+
_chunk74ALTXXCcjs.MingoChatRail,
|
|
3586
3586
|
{
|
|
3587
3587
|
...mingoRailProps,
|
|
3588
3588
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3601,7 +3601,7 @@ function EmbeddableChatInner({
|
|
|
3601
3601
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3602
3602
|
// the compose view.
|
|
3603
3603
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3604
|
-
|
|
3604
|
+
_chunk74ALTXXCcjs.MingoHistoryRail,
|
|
3605
3605
|
{
|
|
3606
3606
|
className: "duration-200 animate-in fade-in-0",
|
|
3607
3607
|
dialogs,
|
|
@@ -3641,14 +3641,14 @@ function EmbeddableChatInner({
|
|
|
3641
3641
|
// skeleton overflows a short panel and grows its OWN
|
|
3642
3642
|
// scrollbar — ugly. `fill` top-anchors + clips overflow so
|
|
3643
3643
|
// it reads as "the whole panel is loading" and never scrolls.
|
|
3644
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3644
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk74ALTXXCcjs.ChatMessageListSkeleton, { fullWidth: true, fill: previewMode, className: "flex-1" })
|
|
3645
3645
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3646
|
-
|
|
3646
|
+
_chunk74ALTXXCcjs.ChatMessageList,
|
|
3647
3647
|
{
|
|
3648
3648
|
messages,
|
|
3649
3649
|
appearance,
|
|
3650
3650
|
isTyping: chatLoading,
|
|
3651
|
-
typingMessage: streamingProgress ?
|
|
3651
|
+
typingMessage: streamingProgress ? _chunk74ALTXXCcjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
|
|
3652
3652
|
pendingApprovals,
|
|
3653
3653
|
autoScroll: !previewMode,
|
|
3654
3654
|
pinBottom: previewMode,
|
|
@@ -3661,7 +3661,7 @@ function EmbeddableChatInner({
|
|
|
3661
3661
|
renderMention,
|
|
3662
3662
|
renderAfterMessage: renderMessageSources,
|
|
3663
3663
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3664
|
-
NavLinkAnchor:
|
|
3664
|
+
NavLinkAnchor: _chunk74ALTXXCcjs.NavLinkAnchorViaRuntime,
|
|
3665
3665
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3666
3666
|
contentClassName: "max-w-none pb-0",
|
|
3667
3667
|
fullWidth: true,
|
|
@@ -3675,7 +3675,7 @@ function EmbeddableChatInner({
|
|
|
3675
3675
|
quick-action chips. Guide mode keeps the slash-command
|
|
3676
3676
|
onboarding list below. */
|
|
3677
3677
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3678
|
-
|
|
3678
|
+
_chunk74ALTXXCcjs.MingoWelcome,
|
|
3679
3679
|
{
|
|
3680
3680
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3681
3681
|
...mingoWelcome,
|
|
@@ -3690,7 +3690,7 @@ function EmbeddableChatInner({
|
|
|
3690
3690
|
+ slash-command onboarding list share one scroll region,
|
|
3691
3691
|
with a pinned quick-action chip row above the composer. */
|
|
3692
3692
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3693
|
-
|
|
3693
|
+
_chunk74ALTXXCcjs.GuideWelcome,
|
|
3694
3694
|
{
|
|
3695
3695
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3696
3696
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3707,7 +3707,7 @@ function EmbeddableChatInner({
|
|
|
3707
3707
|
agentSlug: activeAgentSlug,
|
|
3708
3708
|
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
3709
3709
|
!commandsLoaded && chipCommands.length === 0 && SKELETON_ROW_VARIANTS.map((variant, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3710
|
-
|
|
3710
|
+
_chunk74ALTXXCcjs.MingoOnboardingCardSkeleton,
|
|
3711
3711
|
{
|
|
3712
3712
|
titleWidth: variant.titleWidth,
|
|
3713
3713
|
slashWidth: variant.slashWidth,
|
|
@@ -3745,7 +3745,7 @@ function EmbeddableChatInner({
|
|
|
3745
3745
|
) }),
|
|
3746
3746
|
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 }),
|
|
3747
3747
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3748
|
-
|
|
3748
|
+
_chunk74ALTXXCcjs.ChatAttachmentChipStrip,
|
|
3749
3749
|
{
|
|
3750
3750
|
attachments: stagedAttachments,
|
|
3751
3751
|
onRemove: removeAttachment,
|
|
@@ -3753,7 +3753,7 @@ function EmbeddableChatInner({
|
|
|
3753
3753
|
}
|
|
3754
3754
|
),
|
|
3755
3755
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3756
|
-
|
|
3756
|
+
_chunk74ALTXXCcjs.ChatComposer,
|
|
3757
3757
|
{
|
|
3758
3758
|
archived: isViewingArchived,
|
|
3759
3759
|
lock: composerLock,
|
|
@@ -3804,7 +3804,7 @@ function EmbeddableChatInner({
|
|
|
3804
3804
|
),
|
|
3805
3805
|
galleryModal,
|
|
3806
3806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3807
|
-
|
|
3807
|
+
_chunk74ALTXXCcjs.ChatDialogModals,
|
|
3808
3808
|
{
|
|
3809
3809
|
renameTarget,
|
|
3810
3810
|
setRenameTarget,
|
|
@@ -3820,13 +3820,13 @@ function EmbeddableChatInner({
|
|
|
3820
3820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3821
3821
|
] }) }) })
|
|
3822
3822
|
);
|
|
3823
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3823
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk74ALTXXCcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3824
3824
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3825
3825
|
sourceLabel,
|
|
3826
3826
|
" AI Assistant"
|
|
3827
3827
|
] }) }),
|
|
3828
3828
|
body
|
|
3829
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGY2JESOCcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3829
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGY2JESOCcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk74ALTXXCcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3830
3830
|
_chunkGY2JESOCcjs.DrawerContent,
|
|
3831
3831
|
{
|
|
3832
3832
|
side: "right",
|
|
@@ -3859,7 +3859,7 @@ function EmbeddableChatInner({
|
|
|
3859
3859
|
_chunk2QMBXGMQcjs.Button,
|
|
3860
3860
|
{
|
|
3861
3861
|
onClick: handleOpen,
|
|
3862
|
-
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3862
|
+
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIA77I6Bcjs.AgentMark, { agent: "mingo", className: "h-5 w-5" }),
|
|
3863
3863
|
tabIndex: isOpen ? -1 : 0,
|
|
3864
3864
|
className: `pointer-events-auto !w-auto shadow-lg ${isOpen ? "!pointer-events-none" : ""}`,
|
|
3865
3865
|
children: "Ask AI"
|