@flamingo-stack/openframe-frontend-core 0.0.821 → 0.0.822
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/chat-protocol/citation-chip.d.ts +20 -0
- package/dist/chat-protocol/citation-chip.d.ts.map +1 -0
- package/dist/chat-protocol/citation-chip.js +25 -0
- package/dist/chat-protocol/index.cjs +25 -0
- package/dist/chat-protocol/index.d.ts +1 -0
- package/dist/chat-protocol/index.d.ts.map +1 -1
- package/dist/chat-protocol/index.js +1 -0
- package/dist/{chunk-YCE7A63X.cjs → chunk-2LT2WR4O.cjs} +24 -13
- package/dist/{chunk-CA7X6CCJ.cjs → chunk-3BW6PEAB.cjs} +32 -32
- package/dist/{chunk-N2XHQVWX.cjs → chunk-6UVOL3ZF.cjs} +6 -6
- package/dist/{chunk-2WHKEYDX.cjs → chunk-BN535RBR.cjs} +53 -53
- package/dist/{chunk-P2ZIQ72J.cjs → chunk-D5JSCXSL.cjs} +10 -10
- package/dist/{chunk-FTD3CZAS.cjs → chunk-DYSMAPSI.cjs} +4 -4
- package/dist/{chunk-GQHXJGA2.cjs → chunk-ECLKFEZP.cjs} +9 -9
- package/dist/{chunk-7DIWYZPQ.cjs → chunk-FQQDI3UN.cjs} +3 -3
- package/dist/{chunk-OEKVCVOS.cjs → chunk-GA2PYQLC.cjs} +47 -47
- package/dist/{chunk-7QGK76LC.cjs → chunk-M6PCHMRI.cjs} +104 -104
- package/dist/{chunk-LQF5F7LF.cjs → chunk-N6X5H3JM.cjs} +4 -4
- package/dist/{chunk-IS6BQSL6.cjs → chunk-NSGD22VV.cjs} +39 -39
- package/dist/{chunk-QFNQSZ4H.cjs → chunk-SBXL5EKE.cjs} +16 -16
- package/dist/{chunk-3SE34JVB.cjs → chunk-TJFVIJPV.cjs} +2 -2
- package/dist/{chunk-LWOXKF5P.cjs → chunk-U643BWTQ.cjs} +19 -19
- package/dist/{chunk-BY2PLXYC.cjs → chunk-U7CH53FT.cjs} +7 -7
- package/dist/{chunk-V26M75GV.cjs → chunk-UUFL4FDS.cjs} +11 -11
- package/dist/{chunk-RRLJ5PNL.cjs → chunk-YCWG63NR.cjs} +3 -3
- package/dist/{cloud-tenants-M34P47GS.cjs → cloud-tenants-AKMN4SU4.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/remark-strip-citations.d.ts +3 -4
- package/dist/components/chat/remark-strip-citations.d.ts.map +1 -1
- package/dist/components/chat/remark-strip-citations.js +3 -13
- package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
- package/dist/components/chat/utils/cited-sources.js +2 -6
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/help-center-pages/index.cjs +61 -61
- package/dist/components/index.cjs +37 -37
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +13 -13
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/index.cjs +4 -4
- package/dist/{devices-SWFK4CPO.cjs → devices-IHDA22KS.cjs} +5 -5
- package/dist/{embeddable-chat-J6CKPKKM.cjs → embeddable-chat-MQGYFYGX.cjs} +65 -69
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-N5FDIA33.cjs → knowledge-JHSMUC6Y.cjs} +5 -5
- package/dist/{logs-OEK7GMEB.cjs → logs-7PMA2ARK.cjs} +12 -12
- package/dist/{policies-Q7AS5AL6.cjs → policies-QNNZVXIS.cjs} +8 -8
- package/dist/{scripts-3XWEDB2A.cjs → scripts-LOMWOSQS.cjs} +9 -9
- package/dist/{software-update-6FOBLAOF.cjs → software-update-YF3VQIP4.cjs} +7 -7
- package/package.json +1 -1
- package/src/chat-protocol/citation-chip.ts +46 -0
- package/src/chat-protocol/index.ts +2 -0
- package/src/components/chat/remark-strip-citations.ts +7 -26
- package/src/components/chat/utils/cited-sources.ts +2 -8
|
@@ -58,7 +58,8 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
|
|
62
|
+
var _chunk2LT2WR4Ocjs = require('./chunk-2LT2WR4O.cjs');
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
var _chunkOBQ5WUNGcjs = require('./chunk-OBQ5WUNG.cjs');
|
|
@@ -2005,7 +2006,7 @@ function useChatDialogManager({
|
|
|
2005
2006
|
setArchivedLoading(true);
|
|
2006
2007
|
}
|
|
2007
2008
|
try {
|
|
2008
|
-
const result = await fetchArchivedDialogs({ cursor, limit:
|
|
2009
|
+
const result = await fetchArchivedDialogs({ cursor, limit: _chunk2LT2WR4Ocjs.CHAT_HISTORY_PAGE_SIZE });
|
|
2009
2010
|
if (!isCurrent()) return;
|
|
2010
2011
|
setArchivedCursor(result.nextCursor);
|
|
2011
2012
|
setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
|
|
@@ -2118,23 +2119,18 @@ function useChatDialogManager({
|
|
|
2118
2119
|
|
|
2119
2120
|
// src/components/chat/utils/cited-sources.ts
|
|
2120
2121
|
var FALLBACK_TOP_RETRIEVED = 3;
|
|
2121
|
-
var CITATION = /\[(\d+)\]/g;
|
|
2122
2122
|
var CODE = /```[\s\S]*?```|~~~[\s\S]*?~~~|`[^`\n]*`/g;
|
|
2123
2123
|
function withoutCode(content) {
|
|
2124
2124
|
return content.replace(CODE, (block) => " ".repeat(block.length));
|
|
2125
2125
|
}
|
|
2126
2126
|
function splitCitedSources(sources, content) {
|
|
2127
2127
|
if (!sources || sources.length === 0) return { cited: [], uncited: [] };
|
|
2128
|
-
const byCards = splitByCards(sources,
|
|
2128
|
+
const byCards = splitByCards(sources, _chunk2LT2WR4Ocjs.extractCardReferences.call(void 0, withoutCode(content)));
|
|
2129
2129
|
if (byCards.cited.length > 0) return byCards;
|
|
2130
|
-
const firstMentionAt =
|
|
2131
|
-
for (const match of withoutCode(content).matchAll(CITATION)) {
|
|
2132
|
-
const index = Number.parseInt(match[1], 10);
|
|
2133
|
-
if (!firstMentionAt.has(index)) firstMentionAt.set(index, firstMentionAt.size);
|
|
2134
|
-
}
|
|
2130
|
+
const firstMentionAt = new Map(_chunk2LT2WR4Ocjs.citedSourceNumbers.call(void 0, withoutCode(content)).map((index, order) => [index, order]));
|
|
2135
2131
|
const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
|
|
2136
2132
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2137
|
-
return { cited:
|
|
2133
|
+
return { cited: _chunk2LT2WR4Ocjs.groupSourcesByTable.call(void 0, cited), uncited: _chunk2LT2WR4Ocjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2138
2134
|
}
|
|
2139
2135
|
function recordsOf(source) {
|
|
2140
2136
|
if (!source.items || source.items.length === 0) return [source];
|
|
@@ -2166,7 +2162,7 @@ function splitByCards(sources, cards) {
|
|
|
2166
2162
|
if (record && !cited.includes(record)) cited.push(record);
|
|
2167
2163
|
}
|
|
2168
2164
|
const uncited = records.filter((record) => !cited.includes(record));
|
|
2169
|
-
return { cited:
|
|
2165
|
+
return { cited: _chunk2LT2WR4Ocjs.groupSourcesByTable.call(void 0, cited), uncited: _chunk2LT2WR4Ocjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2170
2166
|
}
|
|
2171
2167
|
function groupedRowLabels(items) {
|
|
2172
2168
|
const numbers = new Set(items.flatMap((item) => item.index === void 0 ? [] : [item.index]));
|
|
@@ -2221,7 +2217,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2221
2217
|
// src/components/chat/embeddable-chat.tsx
|
|
2222
2218
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2223
2219
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2224
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2220
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunk2LT2WR4Ocjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2225
2221
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2226
2222
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2227
2223
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2294,7 +2290,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2294
2290
|
if (!input) return;
|
|
2295
2291
|
switch (actionId) {
|
|
2296
2292
|
case "browse":
|
|
2297
|
-
input.submit(
|
|
2293
|
+
input.submit(_chunk2LT2WR4Ocjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2298
2294
|
return;
|
|
2299
2295
|
case "search":
|
|
2300
2296
|
input.setValue(`/${cmdId} `);
|
|
@@ -2315,7 +2311,7 @@ var ONE_TEXT_LINE = "\xA0";
|
|
|
2315
2311
|
var SOURCE_CHIP_SKELETON_COUNT = 1;
|
|
2316
2312
|
function SourceChipSkeleton(props) {
|
|
2317
2313
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "aria-hidden": true, className: "pointer-events-none inline-flex shrink-0 items-center", ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: [
|
|
2318
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
2314
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2LT2WR4Ocjs.chatChipClass.call(void 0, { tone: "secondary" }), children: [
|
|
2319
2315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "inline-block h-3.5 w-3.5 rounded-sm") }),
|
|
2320
2316
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "w-28 rounded-sm"), children: ONE_TEXT_LINE })
|
|
2321
2317
|
] }),
|
|
@@ -2326,7 +2322,7 @@ function SourceChip(props) {
|
|
|
2326
2322
|
const { src, onDiscuss } = props;
|
|
2327
2323
|
const marks = _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props);
|
|
2328
2324
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2329
|
-
const cta =
|
|
2325
|
+
const cta = _chunk2LT2WR4Ocjs.resolveSourceRowCTA.call(void 0,
|
|
2330
2326
|
{
|
|
2331
2327
|
sourceRepo: src.sourceRepo,
|
|
2332
2328
|
documentType: src.documentType,
|
|
@@ -2336,16 +2332,16 @@ function SourceChip(props) {
|
|
|
2336
2332
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2337
2333
|
path: src.path
|
|
2338
2334
|
},
|
|
2339
|
-
|
|
2335
|
+
_chunk2LT2WR4Ocjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2340
2336
|
);
|
|
2341
2337
|
const Icon = cta.icon;
|
|
2342
2338
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2343
|
-
const chipClass =
|
|
2339
|
+
const chipClass = _chunk2LT2WR4Ocjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2344
2340
|
if (src.items && src.items.length > 0) {
|
|
2345
2341
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2346
2342
|
const rowLabels = groupedRowLabels(src.items);
|
|
2347
2343
|
const dropdownItems = src.items.map((item, i) => {
|
|
2348
|
-
const itemCta =
|
|
2344
|
+
const itemCta = _chunk2LT2WR4Ocjs.resolveSourceRowCTA.call(void 0,
|
|
2349
2345
|
{
|
|
2350
2346
|
sourceRepo: src.sourceRepo,
|
|
2351
2347
|
documentType: item.documentType,
|
|
@@ -2355,7 +2351,7 @@ function SourceChip(props) {
|
|
|
2355
2351
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2356
2352
|
path: item.path
|
|
2357
2353
|
},
|
|
2358
|
-
|
|
2354
|
+
_chunk2LT2WR4Ocjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2359
2355
|
);
|
|
2360
2356
|
const ItemIcon = itemCta.icon;
|
|
2361
2357
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2372,13 +2368,13 @@ function SourceChip(props) {
|
|
|
2372
2368
|
} : void 0
|
|
2373
2369
|
};
|
|
2374
2370
|
});
|
|
2375
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2371
|
+
const groupIndices = itemIndices.length > 0 ? _chunk2LT2WR4Ocjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2376
2372
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", ...marks, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2377
2373
|
_chunkEHANO6UEcjs.HoverDropdown,
|
|
2378
2374
|
{
|
|
2379
2375
|
items: dropdownItems,
|
|
2380
2376
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2381
|
-
|
|
2377
|
+
_chunk2LT2WR4Ocjs.NavLinkAnchorViaRuntime,
|
|
2382
2378
|
{
|
|
2383
2379
|
href,
|
|
2384
2380
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2411,13 +2407,13 @@ function SourceChip(props) {
|
|
|
2411
2407
|
] });
|
|
2412
2408
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", ...marks, children: [
|
|
2413
2409
|
clickable,
|
|
2414
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2410
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2415
2411
|
] });
|
|
2416
2412
|
if (cta.href) {
|
|
2417
2413
|
const isEntity = !!src.externalUrl;
|
|
2418
2414
|
return wrapChip(
|
|
2419
2415
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2420
|
-
|
|
2416
|
+
_chunk2LT2WR4Ocjs.NavLinkAnchorViaRuntime,
|
|
2421
2417
|
{
|
|
2422
2418
|
href: cta.href,
|
|
2423
2419
|
path: isEntity ? null : src.path,
|
|
@@ -2443,7 +2439,7 @@ function SourceChips({
|
|
|
2443
2439
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
2444
2440
|
if (loading) {
|
|
2445
2441
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className: "mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2", children: [
|
|
2446
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2442
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.TextHold, { children: "Sources" }) }),
|
|
2447
2443
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-nowrap gap-1.5 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: skeletonCount, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChipSkeleton, { "data-loading-item": true }) }) })
|
|
2448
2444
|
] });
|
|
2449
2445
|
}
|
|
@@ -2536,7 +2532,7 @@ function EmbeddableChatInner({
|
|
|
2536
2532
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2537
2533
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2538
2534
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2539
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2535
|
+
const { attachmentsEnabled, user: identityUser } = _chunk2LT2WR4Ocjs.useChatIdentity.call(void 0, );
|
|
2540
2536
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2541
2537
|
_react.useEffect.call(void 0, () => {
|
|
2542
2538
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2590,9 +2586,9 @@ function EmbeddableChatInner({
|
|
|
2590
2586
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2591
2587
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2592
2588
|
() => ({
|
|
2593
|
-
fetchCommands: (prefix, signal) =>
|
|
2589
|
+
fetchCommands: (prefix, signal) => _chunk2LT2WR4Ocjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2594
2590
|
resolveSourceIcon: (sourceId) => {
|
|
2595
|
-
const iconName =
|
|
2591
|
+
const iconName = _chunk2LT2WR4Ocjs.getSourceIconName.call(void 0, sourceId);
|
|
2596
2592
|
if (!iconName) return void 0;
|
|
2597
2593
|
return { Icon: _chunkQOAA7ZHBcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2598
2594
|
},
|
|
@@ -2621,7 +2617,7 @@ function EmbeddableChatInner({
|
|
|
2621
2617
|
},
|
|
2622
2618
|
[controlledActiveMode, onActiveModeChange]
|
|
2623
2619
|
);
|
|
2624
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2620
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunk2LT2WR4Ocjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2625
2621
|
enabled: activeMode === "guide"
|
|
2626
2622
|
});
|
|
2627
2623
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2632,7 +2628,7 @@ function EmbeddableChatInner({
|
|
|
2632
2628
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2633
2629
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2634
2630
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2635
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2631
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunk2LT2WR4Ocjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2636
2632
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2637
2633
|
});
|
|
2638
2634
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2679,7 +2675,7 @@ function EmbeddableChatInner({
|
|
|
2679
2675
|
hasMoreMessages,
|
|
2680
2676
|
loadMoreMessages,
|
|
2681
2677
|
dialogCapabilities
|
|
2682
|
-
} =
|
|
2678
|
+
} = _chunk2LT2WR4Ocjs.useUnifiedChat.call(void 0, {
|
|
2683
2679
|
modes: effectiveModes,
|
|
2684
2680
|
activeMode,
|
|
2685
2681
|
mingoStateOverride: mingoState,
|
|
@@ -2726,8 +2722,8 @@ function EmbeddableChatInner({
|
|
|
2726
2722
|
addFiles: addAttachmentFiles,
|
|
2727
2723
|
removeAttachment,
|
|
2728
2724
|
clear: clearAttachments
|
|
2729
|
-
} =
|
|
2730
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2725
|
+
} = _chunk2LT2WR4Ocjs.useChatAttachments.call(void 0, );
|
|
2726
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunk2LT2WR4Ocjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2731
2727
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2732
2728
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2733
2729
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2846,7 +2842,7 @@ function EmbeddableChatInner({
|
|
|
2846
2842
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2847
2843
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2848
2844
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2849
|
-
(reference) =>
|
|
2845
|
+
(reference) => _chunk2LT2WR4Ocjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2850
2846
|
onDiscuss: askAbout,
|
|
2851
2847
|
onDisplay: displayRef,
|
|
2852
2848
|
extras
|
|
@@ -2866,7 +2862,7 @@ function EmbeddableChatInner({
|
|
|
2866
2862
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2867
2863
|
return mapped;
|
|
2868
2864
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2869
|
-
const whatToAsk =
|
|
2865
|
+
const whatToAsk = _chunk2LT2WR4Ocjs.useWhatToAsk.call(void 0, {
|
|
2870
2866
|
dialogId: activeDialogId,
|
|
2871
2867
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2872
2868
|
user: {
|
|
@@ -2885,7 +2881,7 @@ function EmbeddableChatInner({
|
|
|
2885
2881
|
noteWhatToAskSend();
|
|
2886
2882
|
let augmentedText = text;
|
|
2887
2883
|
if (readyAttachments.length > 0) {
|
|
2888
|
-
const markdown = readyAttachments.map((att) =>
|
|
2884
|
+
const markdown = readyAttachments.map((att) => _chunk2LT2WR4Ocjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2889
2885
|
augmentedText = `${text}${markdown}`;
|
|
2890
2886
|
}
|
|
2891
2887
|
void sendMessage(augmentedText, {
|
|
@@ -2924,7 +2920,7 @@ function EmbeddableChatInner({
|
|
|
2924
2920
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2925
2921
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2926
2922
|
// built-in agents.
|
|
2927
|
-
accent: _nullishCoalesce(
|
|
2923
|
+
accent: _nullishCoalesce(_chunk2LT2WR4Ocjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunk2LT2WR4Ocjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2928
2924
|
}));
|
|
2929
2925
|
}
|
|
2930
2926
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2972,7 +2968,7 @@ function EmbeddableChatInner({
|
|
|
2972
2968
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
2973
2969
|
});
|
|
2974
2970
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
2975
|
-
|
|
2971
|
+
_chunk2LT2WR4Ocjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
2976
2972
|
_react.useEffect.call(void 0, () => {
|
|
2977
2973
|
const handler = (e) => {
|
|
2978
2974
|
const detail = e.detail;
|
|
@@ -2980,8 +2976,8 @@ function EmbeddableChatInner({
|
|
|
2980
2976
|
setIsOpen(true);
|
|
2981
2977
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
2982
2978
|
};
|
|
2983
|
-
window.addEventListener(
|
|
2984
|
-
return () => window.removeEventListener(
|
|
2979
|
+
window.addEventListener(_chunk2LT2WR4Ocjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2980
|
+
return () => window.removeEventListener(_chunk2LT2WR4Ocjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2985
2981
|
}, [source, askAbout, setIsOpen]);
|
|
2986
2982
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
2987
2983
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3015,10 +3011,10 @@ function EmbeddableChatInner({
|
|
|
3015
3011
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3016
3012
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3017
3013
|
};
|
|
3018
|
-
window.addEventListener(
|
|
3019
|
-
return () => window.removeEventListener(
|
|
3014
|
+
window.addEventListener(_chunk2LT2WR4Ocjs.ASK_AI_OPEN_EVENT, handler);
|
|
3015
|
+
return () => window.removeEventListener(_chunk2LT2WR4Ocjs.ASK_AI_OPEN_EVENT, handler);
|
|
3020
3016
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3021
|
-
_react.useEffect.call(void 0, () =>
|
|
3017
|
+
_react.useEffect.call(void 0, () => _chunk2LT2WR4Ocjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3022
3018
|
const hasMessages = messages.length > 0;
|
|
3023
3019
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3024
3020
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3058,7 +3054,7 @@ function EmbeddableChatInner({
|
|
|
3058
3054
|
if (sourceSkeletonCount <= 0) return null;
|
|
3059
3055
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChips, { loading: true, skeletonCount: sourceSkeletonCount, cited: [], uncited: [] }) });
|
|
3060
3056
|
}
|
|
3061
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3057
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunk2LT2WR4Ocjs.flattenAssistantContent.call(void 0, message.content));
|
|
3062
3058
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3063
3059
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChips, { cited, uncited, onDiscuss: askAbout, skeletonCount: sourceSkeletonCount }) });
|
|
3064
3060
|
},
|
|
@@ -3066,7 +3062,7 @@ function EmbeddableChatInner({
|
|
|
3066
3062
|
);
|
|
3067
3063
|
const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
|
|
3068
3064
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3069
|
-
const splitMinWidth = (isV2 ?
|
|
3065
|
+
const splitMinWidth = (isV2 ? _chunk2LT2WR4Ocjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunk2LT2WR4Ocjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3070
3066
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3071
3067
|
_react.useEffect.call(void 0, () => {
|
|
3072
3068
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3085,7 +3081,7 @@ function EmbeddableChatInner({
|
|
|
3085
3081
|
[splitMinWidth]
|
|
3086
3082
|
);
|
|
3087
3083
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3088
|
-
const railStorageHydrated =
|
|
3084
|
+
const railStorageHydrated = _chunk2LT2WR4Ocjs.useIsHydrated.call(void 0, );
|
|
3089
3085
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3090
3086
|
if (railStorageHydrated && !railStorageRead) {
|
|
3091
3087
|
setRailStorageRead(true);
|
|
@@ -3139,7 +3135,7 @@ function EmbeddableChatInner({
|
|
|
3139
3135
|
resetToNewChat();
|
|
3140
3136
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3141
3137
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3142
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 ||
|
|
3138
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunk2LT2WR4Ocjs.awaitsDecision.call(void 0, hostMessages);
|
|
3143
3139
|
const showWhatToAsk = (content) => {
|
|
3144
3140
|
whatToAsk.clearDraft();
|
|
3145
3141
|
resetToNewChat();
|
|
@@ -3235,7 +3231,7 @@ function EmbeddableChatInner({
|
|
|
3235
3231
|
}),
|
|
3236
3232
|
[resetToNewChat, contextMaxItems]
|
|
3237
3233
|
);
|
|
3238
|
-
const splitHeaderMenuItems =
|
|
3234
|
+
const splitHeaderMenuItems = _chunk2LT2WR4Ocjs.chatDialogMenuItems.call(void 0, {
|
|
3239
3235
|
onCopyLink: headerOnCopyLink,
|
|
3240
3236
|
onRename: headerOnRename,
|
|
3241
3237
|
onCompact: headerOnCompact,
|
|
@@ -3315,7 +3311,7 @@ function EmbeddableChatInner({
|
|
|
3315
3311
|
onRetry: reloadDialogs
|
|
3316
3312
|
};
|
|
3317
3313
|
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,
|
|
3318
|
-
|
|
3314
|
+
_chunk2LT2WR4Ocjs.MingoChatHeader,
|
|
3319
3315
|
{
|
|
3320
3316
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3321
3317
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3335,7 +3331,7 @@ function EmbeddableChatInner({
|
|
|
3335
3331
|
const body = (
|
|
3336
3332
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3337
3333
|
// only the thread `ChatMessageList` provides it to.
|
|
3338
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3334
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
|
|
3339
3335
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3340
3336
|
"div",
|
|
3341
3337
|
{
|
|
@@ -3343,7 +3339,7 @@ function EmbeddableChatInner({
|
|
|
3343
3339
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3344
3340
|
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" : ""}`,
|
|
3345
3341
|
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,
|
|
3346
|
-
|
|
3342
|
+
_chunk2LT2WR4Ocjs.ChatArchivePage,
|
|
3347
3343
|
{
|
|
3348
3344
|
dialogs: archivedDialogs,
|
|
3349
3345
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3373,7 +3369,7 @@ function EmbeddableChatInner({
|
|
|
3373
3369
|
narrow: true,
|
|
3374
3370
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3375
3371
|
innerClassName: "flex min-h-0 flex-col",
|
|
3376
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3372
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3377
3373
|
}
|
|
3378
3374
|
),
|
|
3379
3375
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3412,7 +3408,7 @@ function EmbeddableChatInner({
|
|
|
3412
3408
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3413
3409
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3414
3410
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3415
|
-
|
|
3411
|
+
_chunk2LT2WR4Ocjs.ChatHeaderSearchField,
|
|
3416
3412
|
{
|
|
3417
3413
|
initialValue: mingoCaps.searchQuery,
|
|
3418
3414
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3499,10 +3495,10 @@ function EmbeddableChatInner({
|
|
|
3499
3495
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3500
3496
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3501
3497
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3502
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3498
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3503
3499
|
),
|
|
3504
3500
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3505
|
-
|
|
3501
|
+
_chunk2LT2WR4Ocjs.GuideModeBanner,
|
|
3506
3502
|
{
|
|
3507
3503
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3508
3504
|
}
|
|
@@ -3512,7 +3508,7 @@ function EmbeddableChatInner({
|
|
|
3512
3508
|
// Archive list inside the rail (header lives in the split
|
|
3513
3509
|
// header's left cell above). Right chat block stays put.
|
|
3514
3510
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3515
|
-
|
|
3511
|
+
_chunk2LT2WR4Ocjs.ChatArchivePage,
|
|
3516
3512
|
{
|
|
3517
3513
|
embedded: true,
|
|
3518
3514
|
dialogs: archivedDialogs,
|
|
@@ -3526,7 +3522,7 @@ function EmbeddableChatInner({
|
|
|
3526
3522
|
}
|
|
3527
3523
|
)
|
|
3528
3524
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3529
|
-
|
|
3525
|
+
_chunk2LT2WR4Ocjs.MingoHistoryRail,
|
|
3530
3526
|
{
|
|
3531
3527
|
dialogs,
|
|
3532
3528
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3554,7 +3550,7 @@ function EmbeddableChatInner({
|
|
|
3554
3550
|
// v2: the archive opens in the chat column under the chat's
|
|
3555
3551
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3556
3552
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3557
|
-
|
|
3553
|
+
_chunk2LT2WR4Ocjs.MingoArchiveList,
|
|
3558
3554
|
{
|
|
3559
3555
|
dialogs: archivedDialogs,
|
|
3560
3556
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3567,7 +3563,7 @@ function EmbeddableChatInner({
|
|
|
3567
3563
|
}
|
|
3568
3564
|
)
|
|
3569
3565
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3570
|
-
|
|
3566
|
+
_chunk2LT2WR4Ocjs.MingoChatRail,
|
|
3571
3567
|
{
|
|
3572
3568
|
...mingoRailProps,
|
|
3573
3569
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3586,7 +3582,7 @@ function EmbeddableChatInner({
|
|
|
3586
3582
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3587
3583
|
// the compose view.
|
|
3588
3584
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3589
|
-
|
|
3585
|
+
_chunk2LT2WR4Ocjs.MingoHistoryRail,
|
|
3590
3586
|
{
|
|
3591
3587
|
className: "duration-200 animate-in fade-in-0",
|
|
3592
3588
|
dialogs,
|
|
@@ -3629,14 +3625,14 @@ function EmbeddableChatInner({
|
|
|
3629
3625
|
{
|
|
3630
3626
|
className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0",
|
|
3631
3627
|
children: hasConversation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3632
|
-
|
|
3628
|
+
_chunk2LT2WR4Ocjs.ChatMessageList,
|
|
3633
3629
|
{
|
|
3634
3630
|
messages,
|
|
3635
3631
|
isLoading: messagesInitialLoading,
|
|
3636
3632
|
fill: previewMode,
|
|
3637
3633
|
appearance,
|
|
3638
3634
|
isTyping: chatLoading,
|
|
3639
|
-
typingMessage: streamingProgress ?
|
|
3635
|
+
typingMessage: streamingProgress ? _chunk2LT2WR4Ocjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
|
|
3640
3636
|
pendingApprovals,
|
|
3641
3637
|
autoScroll: !previewMode,
|
|
3642
3638
|
pinBottom: previewMode,
|
|
@@ -3649,7 +3645,7 @@ function EmbeddableChatInner({
|
|
|
3649
3645
|
renderMention,
|
|
3650
3646
|
renderAfterMessage: renderMessageSources,
|
|
3651
3647
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3652
|
-
NavLinkAnchor:
|
|
3648
|
+
NavLinkAnchor: _chunk2LT2WR4Ocjs.NavLinkAnchorViaRuntime,
|
|
3653
3649
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3654
3650
|
contentClassName: "max-w-none pb-0",
|
|
3655
3651
|
fullWidth: true,
|
|
@@ -3663,7 +3659,7 @@ function EmbeddableChatInner({
|
|
|
3663
3659
|
quick-action chips. Guide mode keeps the slash-command
|
|
3664
3660
|
onboarding list below. */
|
|
3665
3661
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3666
|
-
|
|
3662
|
+
_chunk2LT2WR4Ocjs.MingoWelcome,
|
|
3667
3663
|
{
|
|
3668
3664
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3669
3665
|
historyPageSize,
|
|
@@ -3679,7 +3675,7 @@ function EmbeddableChatInner({
|
|
|
3679
3675
|
+ slash-command onboarding list share one scroll region,
|
|
3680
3676
|
with a pinned quick-action chip row above the composer. */
|
|
3681
3677
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3682
|
-
|
|
3678
|
+
_chunk2LT2WR4Ocjs.GuideWelcome,
|
|
3683
3679
|
{
|
|
3684
3680
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3685
3681
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3736,7 +3732,7 @@ function EmbeddableChatInner({
|
|
|
3736
3732
|
}
|
|
3737
3733
|
),
|
|
3738
3734
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3739
|
-
|
|
3735
|
+
_chunk2LT2WR4Ocjs.ChatAttachmentChipStrip,
|
|
3740
3736
|
{
|
|
3741
3737
|
attachments: stagedAttachments,
|
|
3742
3738
|
onRemove: removeAttachment,
|
|
@@ -3744,7 +3740,7 @@ function EmbeddableChatInner({
|
|
|
3744
3740
|
}
|
|
3745
3741
|
),
|
|
3746
3742
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3747
|
-
|
|
3743
|
+
_chunk2LT2WR4Ocjs.ChatComposer,
|
|
3748
3744
|
{
|
|
3749
3745
|
archived: isViewingArchived,
|
|
3750
3746
|
lock: composerLock,
|
|
@@ -3796,7 +3792,7 @@ function EmbeddableChatInner({
|
|
|
3796
3792
|
),
|
|
3797
3793
|
galleryModal,
|
|
3798
3794
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3799
|
-
|
|
3795
|
+
_chunk2LT2WR4Ocjs.ChatDialogModals,
|
|
3800
3796
|
{
|
|
3801
3797
|
renameTarget,
|
|
3802
3798
|
setRenameTarget,
|
|
@@ -3812,13 +3808,13 @@ function EmbeddableChatInner({
|
|
|
3812
3808
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3813
3809
|
] }) }) })
|
|
3814
3810
|
);
|
|
3815
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3811
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2LT2WR4Ocjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3816
3812
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3817
3813
|
sourceLabel,
|
|
3818
3814
|
" AI Assistant"
|
|
3819
3815
|
] }) }),
|
|
3820
3816
|
body
|
|
3821
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3817
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3822
3818
|
_chunkEHANO6UEcjs.DrawerContent,
|
|
3823
3819
|
{
|
|
3824
3820
|
side: "right",
|