@flamingo-stack/openframe-frontend-core 0.0.820 → 0.0.821
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/{chunk-IJ3C4WL5.cjs → chunk-2WHKEYDX.cjs} +55 -55
- package/dist/{chunk-K5IICQNF.cjs → chunk-2YUWBIZM.cjs} +46 -46
- package/dist/{chunk-CJ7VHMPD.cjs → chunk-3SE34JVB.cjs} +2 -2
- package/dist/{chunk-DLQCSJTY.cjs → chunk-7DIWYZPQ.cjs} +3 -3
- package/dist/{chunk-BHJDQYUN.cjs → chunk-7QGK76LC.cjs} +131 -131
- package/dist/{chunk-STFOH6QU.cjs → chunk-BY2PLXYC.cjs} +13 -13
- package/dist/{chunk-NSN3O47K.cjs → chunk-CA7X6CCJ.cjs} +32 -32
- package/dist/{chunk-JQ3JZLYS.cjs → chunk-FTD3CZAS.cjs} +4 -4
- package/dist/{chunk-UDLDXVY4.cjs → chunk-GBILLSRM.cjs} +4 -4
- package/dist/{chunk-7X7PHALX.cjs → chunk-GQHXJGA2.cjs} +11 -11
- package/dist/{chunk-TVOAFYT7.cjs → chunk-IS6BQSL6.cjs} +39 -39
- package/dist/{chunk-TYDSD3FV.cjs → chunk-LQF5F7LF.cjs} +4 -4
- package/dist/{chunk-42K7MLVS.cjs → chunk-LWOXKF5P.cjs} +30 -30
- package/dist/{chunk-L55EVW33.cjs → chunk-N2XHQVWX.cjs} +6 -6
- package/dist/{chunk-5GUQBNQF.cjs → chunk-OEKVCVOS.cjs} +63 -63
- package/dist/{chunk-MOPDE3OA.cjs → chunk-P2ZIQ72J.cjs} +13 -13
- package/dist/{chunk-IM366HS6.cjs → chunk-QCRJVO6Y.cjs} +78 -7
- package/dist/{chunk-YAY7Z42C.cjs → chunk-QFNQSZ4H.cjs} +32 -97
- package/dist/{chunk-2TEUAOUZ.cjs → chunk-RRLJ5PNL.cjs} +3 -3
- package/dist/{chunk-ADBZCDFX.cjs → chunk-V26M75GV.cjs} +14 -14
- package/dist/{chunk-LUID2IB3.cjs → chunk-XEIZL3I3.cjs} +2 -2
- package/dist/{chunk-OTGYA5F7.cjs → chunk-YCE7A63X.cjs} +33 -33
- package/dist/{cloud-tenants-ENCHNOF2.cjs → cloud-tenants-M34P47GS.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/index.cjs +5 -5
- 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 +6 -6
- package/dist/components/help-center-pages/index.cjs +80 -80
- package/dist/components/index.cjs +48 -48
- package/dist/components/meeting-scheduler/index.cjs +31 -31
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/index.cjs +15 -15
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/ui/index.cjs +6 -6
- package/dist/contexts/chat-runtime-context.d.ts +4 -3
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/{devices-HRLHG4TR.cjs → devices-SWFK4CPO.cjs} +7 -7
- package/dist/{embeddable-chat-ARMXVLUP.cjs → embeddable-chat-J6CKPKKM.cjs} +66 -66
- package/dist/index.cjs +17 -17
- package/dist/{knowledge-S2L5ZCAU.cjs → knowledge-N5FDIA33.cjs} +7 -7
- package/dist/{logs-UYQZSFS4.cjs → logs-OEK7GMEB.cjs} +14 -14
- package/dist/{policies-SMA4MW6L.cjs → policies-Q7AS5AL6.cjs} +10 -10
- package/dist/{scripts-TZNXTFRR.cjs → scripts-3XWEDB2A.cjs} +11 -11
- package/dist/{software-update-YHDVBC7V.cjs → software-update-6FOBLAOF.cjs} +9 -9
- package/dist/utils/image-proxy.d.ts +3 -2
- package/dist/utils/image-proxy.d.ts.map +1 -1
- package/dist/utils/image-proxy.js +11 -4
- package/dist/utils/index.cjs +68 -62
- package/package.json +1 -1
- package/src/contexts/chat-runtime-context.tsx +4 -3
- package/src/utils/image-proxy.ts +17 -6
|
@@ -58,7 +58,7 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunkYCE7A63Xcjs = require('./chunk-YCE7A63X.cjs');
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
var _chunkOBQ5WUNGcjs = require('./chunk-OBQ5WUNG.cjs');
|
|
@@ -1881,7 +1881,7 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
1881
1881
|
require('./chunk-SKI6NKOE.cjs');
|
|
1882
1882
|
|
|
1883
1883
|
|
|
1884
|
-
var
|
|
1884
|
+
var _chunkQCRJVO6Ycjs = require('./chunk-QCRJVO6Y.cjs');
|
|
1885
1885
|
|
|
1886
1886
|
|
|
1887
1887
|
var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
|
|
@@ -2005,7 +2005,7 @@ function useChatDialogManager({
|
|
|
2005
2005
|
setArchivedLoading(true);
|
|
2006
2006
|
}
|
|
2007
2007
|
try {
|
|
2008
|
-
const result = await fetchArchivedDialogs({ cursor, limit:
|
|
2008
|
+
const result = await fetchArchivedDialogs({ cursor, limit: _chunkYCE7A63Xcjs.CHAT_HISTORY_PAGE_SIZE });
|
|
2009
2009
|
if (!isCurrent()) return;
|
|
2010
2010
|
setArchivedCursor(result.nextCursor);
|
|
2011
2011
|
setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
|
|
@@ -2125,7 +2125,7 @@ function withoutCode(content) {
|
|
|
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, _chunkYCE7A63Xcjs.extractCardReferences.call(void 0, withoutCode(content)));
|
|
2129
2129
|
if (byCards.cited.length > 0) return byCards;
|
|
2130
2130
|
const firstMentionAt = /* @__PURE__ */ new Map();
|
|
2131
2131
|
for (const match of withoutCode(content).matchAll(CITATION)) {
|
|
@@ -2134,7 +2134,7 @@ function splitCitedSources(sources, content) {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
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
2136
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2137
|
-
return { cited:
|
|
2137
|
+
return { cited: _chunkYCE7A63Xcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkYCE7A63Xcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2138
2138
|
}
|
|
2139
2139
|
function recordsOf(source) {
|
|
2140
2140
|
if (!source.items || source.items.length === 0) return [source];
|
|
@@ -2151,7 +2151,7 @@ function recordsOf(source) {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
function recordKey(record) {
|
|
2153
2153
|
const id = record.id || record.path;
|
|
2154
|
-
return record.documentType && id ? `${
|
|
2154
|
+
return record.documentType && id ? `${_chunkQCRJVO6Ycjs.canonicalContentRefType.call(void 0, record.documentType)}:${id}` : null;
|
|
2155
2155
|
}
|
|
2156
2156
|
function splitByCards(sources, cards) {
|
|
2157
2157
|
const records = sources.flatMap(recordsOf);
|
|
@@ -2162,11 +2162,11 @@ function splitByCards(sources, cards) {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
const cited = [];
|
|
2164
2164
|
for (const card of cards) {
|
|
2165
|
-
const record = byKey.get(`${
|
|
2165
|
+
const record = byKey.get(`${_chunkQCRJVO6Ycjs.canonicalContentRefType.call(void 0, card.type)}:${card.id}`);
|
|
2166
2166
|
if (record && !cited.includes(record)) cited.push(record);
|
|
2167
2167
|
}
|
|
2168
2168
|
const uncited = records.filter((record) => !cited.includes(record));
|
|
2169
|
-
return { cited:
|
|
2169
|
+
return { cited: _chunkYCE7A63Xcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkYCE7A63Xcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2170
2170
|
}
|
|
2171
2171
|
function groupedRowLabels(items) {
|
|
2172
2172
|
const numbers = new Set(items.flatMap((item) => item.index === void 0 ? [] : [item.index]));
|
|
@@ -2221,7 +2221,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2221
2221
|
// src/components/chat/embeddable-chat.tsx
|
|
2222
2222
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2223
2223
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2224
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2224
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkYCE7A63Xcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2225
2225
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2226
2226
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2227
2227
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2294,7 +2294,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2294
2294
|
if (!input) return;
|
|
2295
2295
|
switch (actionId) {
|
|
2296
2296
|
case "browse":
|
|
2297
|
-
input.submit(
|
|
2297
|
+
input.submit(_chunkYCE7A63Xcjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2298
2298
|
return;
|
|
2299
2299
|
case "search":
|
|
2300
2300
|
input.setValue(`/${cmdId} `);
|
|
@@ -2315,7 +2315,7 @@ var ONE_TEXT_LINE = "\xA0";
|
|
|
2315
2315
|
var SOURCE_CHIP_SKELETON_COUNT = 1;
|
|
2316
2316
|
function SourceChipSkeleton(props) {
|
|
2317
2317
|
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:
|
|
2318
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkYCE7A63Xcjs.chatChipClass.call(void 0, { tone: "secondary" }), children: [
|
|
2319
2319
|
/* @__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
2320
|
/* @__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
2321
|
] }),
|
|
@@ -2326,7 +2326,7 @@ function SourceChip(props) {
|
|
|
2326
2326
|
const { src, onDiscuss } = props;
|
|
2327
2327
|
const marks = _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props);
|
|
2328
2328
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2329
|
-
const cta =
|
|
2329
|
+
const cta = _chunkYCE7A63Xcjs.resolveSourceRowCTA.call(void 0,
|
|
2330
2330
|
{
|
|
2331
2331
|
sourceRepo: src.sourceRepo,
|
|
2332
2332
|
documentType: src.documentType,
|
|
@@ -2336,16 +2336,16 @@ function SourceChip(props) {
|
|
|
2336
2336
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2337
2337
|
path: src.path
|
|
2338
2338
|
},
|
|
2339
|
-
|
|
2339
|
+
_chunkYCE7A63Xcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2340
2340
|
);
|
|
2341
2341
|
const Icon = cta.icon;
|
|
2342
2342
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2343
|
-
const chipClass =
|
|
2343
|
+
const chipClass = _chunkYCE7A63Xcjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2344
2344
|
if (src.items && src.items.length > 0) {
|
|
2345
2345
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2346
2346
|
const rowLabels = groupedRowLabels(src.items);
|
|
2347
2347
|
const dropdownItems = src.items.map((item, i) => {
|
|
2348
|
-
const itemCta =
|
|
2348
|
+
const itemCta = _chunkYCE7A63Xcjs.resolveSourceRowCTA.call(void 0,
|
|
2349
2349
|
{
|
|
2350
2350
|
sourceRepo: src.sourceRepo,
|
|
2351
2351
|
documentType: item.documentType,
|
|
@@ -2355,7 +2355,7 @@ function SourceChip(props) {
|
|
|
2355
2355
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2356
2356
|
path: item.path
|
|
2357
2357
|
},
|
|
2358
|
-
|
|
2358
|
+
_chunkYCE7A63Xcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2359
2359
|
);
|
|
2360
2360
|
const ItemIcon = itemCta.icon;
|
|
2361
2361
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2372,13 +2372,13 @@ function SourceChip(props) {
|
|
|
2372
2372
|
} : void 0
|
|
2373
2373
|
};
|
|
2374
2374
|
});
|
|
2375
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2375
|
+
const groupIndices = itemIndices.length > 0 ? _chunkYCE7A63Xcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2376
2376
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", ...marks, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2377
2377
|
_chunkEHANO6UEcjs.HoverDropdown,
|
|
2378
2378
|
{
|
|
2379
2379
|
items: dropdownItems,
|
|
2380
2380
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2381
|
-
|
|
2381
|
+
_chunkYCE7A63Xcjs.NavLinkAnchorViaRuntime,
|
|
2382
2382
|
{
|
|
2383
2383
|
href,
|
|
2384
2384
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2411,13 +2411,13 @@ function SourceChip(props) {
|
|
|
2411
2411
|
] });
|
|
2412
2412
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", ...marks, children: [
|
|
2413
2413
|
clickable,
|
|
2414
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2414
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2415
2415
|
] });
|
|
2416
2416
|
if (cta.href) {
|
|
2417
2417
|
const isEntity = !!src.externalUrl;
|
|
2418
2418
|
return wrapChip(
|
|
2419
2419
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2420
|
-
|
|
2420
|
+
_chunkYCE7A63Xcjs.NavLinkAnchorViaRuntime,
|
|
2421
2421
|
{
|
|
2422
2422
|
href: cta.href,
|
|
2423
2423
|
path: isEntity ? null : src.path,
|
|
@@ -2443,7 +2443,7 @@ function SourceChips({
|
|
|
2443
2443
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
2444
2444
|
if (loading) {
|
|
2445
2445
|
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,
|
|
2446
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.TextHold, { children: "Sources" }) }),
|
|
2447
2447
|
/* @__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
2448
|
] });
|
|
2449
2449
|
}
|
|
@@ -2536,7 +2536,7 @@ function EmbeddableChatInner({
|
|
|
2536
2536
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2537
2537
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2538
2538
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2539
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2539
|
+
const { attachmentsEnabled, user: identityUser } = _chunkYCE7A63Xcjs.useChatIdentity.call(void 0, );
|
|
2540
2540
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2541
2541
|
_react.useEffect.call(void 0, () => {
|
|
2542
2542
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2590,9 +2590,9 @@ function EmbeddableChatInner({
|
|
|
2590
2590
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2591
2591
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2592
2592
|
() => ({
|
|
2593
|
-
fetchCommands: (prefix, signal) =>
|
|
2593
|
+
fetchCommands: (prefix, signal) => _chunkYCE7A63Xcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2594
2594
|
resolveSourceIcon: (sourceId) => {
|
|
2595
|
-
const iconName =
|
|
2595
|
+
const iconName = _chunkYCE7A63Xcjs.getSourceIconName.call(void 0, sourceId);
|
|
2596
2596
|
if (!iconName) return void 0;
|
|
2597
2597
|
return { Icon: _chunkQOAA7ZHBcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2598
2598
|
},
|
|
@@ -2621,7 +2621,7 @@ function EmbeddableChatInner({
|
|
|
2621
2621
|
},
|
|
2622
2622
|
[controlledActiveMode, onActiveModeChange]
|
|
2623
2623
|
);
|
|
2624
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2624
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunkYCE7A63Xcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2625
2625
|
enabled: activeMode === "guide"
|
|
2626
2626
|
});
|
|
2627
2627
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2632,7 +2632,7 @@ function EmbeddableChatInner({
|
|
|
2632
2632
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2633
2633
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2634
2634
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2635
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2635
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkYCE7A63Xcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2636
2636
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2637
2637
|
});
|
|
2638
2638
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2679,7 +2679,7 @@ function EmbeddableChatInner({
|
|
|
2679
2679
|
hasMoreMessages,
|
|
2680
2680
|
loadMoreMessages,
|
|
2681
2681
|
dialogCapabilities
|
|
2682
|
-
} =
|
|
2682
|
+
} = _chunkYCE7A63Xcjs.useUnifiedChat.call(void 0, {
|
|
2683
2683
|
modes: effectiveModes,
|
|
2684
2684
|
activeMode,
|
|
2685
2685
|
mingoStateOverride: mingoState,
|
|
@@ -2726,8 +2726,8 @@ function EmbeddableChatInner({
|
|
|
2726
2726
|
addFiles: addAttachmentFiles,
|
|
2727
2727
|
removeAttachment,
|
|
2728
2728
|
clear: clearAttachments
|
|
2729
|
-
} =
|
|
2730
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2729
|
+
} = _chunkYCE7A63Xcjs.useChatAttachments.call(void 0, );
|
|
2730
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkYCE7A63Xcjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2731
2731
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2732
2732
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2733
2733
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2846,7 +2846,7 @@ function EmbeddableChatInner({
|
|
|
2846
2846
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2847
2847
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2848
2848
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2849
|
-
(reference) =>
|
|
2849
|
+
(reference) => _chunkYCE7A63Xcjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2850
2850
|
onDiscuss: askAbout,
|
|
2851
2851
|
onDisplay: displayRef,
|
|
2852
2852
|
extras
|
|
@@ -2866,7 +2866,7 @@ function EmbeddableChatInner({
|
|
|
2866
2866
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2867
2867
|
return mapped;
|
|
2868
2868
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2869
|
-
const whatToAsk =
|
|
2869
|
+
const whatToAsk = _chunkYCE7A63Xcjs.useWhatToAsk.call(void 0, {
|
|
2870
2870
|
dialogId: activeDialogId,
|
|
2871
2871
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2872
2872
|
user: {
|
|
@@ -2885,7 +2885,7 @@ function EmbeddableChatInner({
|
|
|
2885
2885
|
noteWhatToAskSend();
|
|
2886
2886
|
let augmentedText = text;
|
|
2887
2887
|
if (readyAttachments.length > 0) {
|
|
2888
|
-
const markdown = readyAttachments.map((att) =>
|
|
2888
|
+
const markdown = readyAttachments.map((att) => _chunkYCE7A63Xcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2889
2889
|
augmentedText = `${text}${markdown}`;
|
|
2890
2890
|
}
|
|
2891
2891
|
void sendMessage(augmentedText, {
|
|
@@ -2924,7 +2924,7 @@ function EmbeddableChatInner({
|
|
|
2924
2924
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2925
2925
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2926
2926
|
// built-in agents.
|
|
2927
|
-
accent: _nullishCoalesce(
|
|
2927
|
+
accent: _nullishCoalesce(_chunkYCE7A63Xcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkYCE7A63Xcjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2928
2928
|
}));
|
|
2929
2929
|
}
|
|
2930
2930
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2972,7 +2972,7 @@ function EmbeddableChatInner({
|
|
|
2972
2972
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
2973
2973
|
});
|
|
2974
2974
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
2975
|
-
|
|
2975
|
+
_chunkYCE7A63Xcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
2976
2976
|
_react.useEffect.call(void 0, () => {
|
|
2977
2977
|
const handler = (e) => {
|
|
2978
2978
|
const detail = e.detail;
|
|
@@ -2980,8 +2980,8 @@ function EmbeddableChatInner({
|
|
|
2980
2980
|
setIsOpen(true);
|
|
2981
2981
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
2982
2982
|
};
|
|
2983
|
-
window.addEventListener(
|
|
2984
|
-
return () => window.removeEventListener(
|
|
2983
|
+
window.addEventListener(_chunkYCE7A63Xcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2984
|
+
return () => window.removeEventListener(_chunkYCE7A63Xcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2985
2985
|
}, [source, askAbout, setIsOpen]);
|
|
2986
2986
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
2987
2987
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3015,10 +3015,10 @@ function EmbeddableChatInner({
|
|
|
3015
3015
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3016
3016
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3017
3017
|
};
|
|
3018
|
-
window.addEventListener(
|
|
3019
|
-
return () => window.removeEventListener(
|
|
3018
|
+
window.addEventListener(_chunkYCE7A63Xcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3019
|
+
return () => window.removeEventListener(_chunkYCE7A63Xcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3020
3020
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3021
|
-
_react.useEffect.call(void 0, () =>
|
|
3021
|
+
_react.useEffect.call(void 0, () => _chunkYCE7A63Xcjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3022
3022
|
const hasMessages = messages.length > 0;
|
|
3023
3023
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3024
3024
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3058,7 +3058,7 @@ function EmbeddableChatInner({
|
|
|
3058
3058
|
if (sourceSkeletonCount <= 0) return null;
|
|
3059
3059
|
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
3060
|
}
|
|
3061
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3061
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunkYCE7A63Xcjs.flattenAssistantContent.call(void 0, message.content));
|
|
3062
3062
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3063
3063
|
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
3064
|
},
|
|
@@ -3066,7 +3066,7 @@ function EmbeddableChatInner({
|
|
|
3066
3066
|
);
|
|
3067
3067
|
const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
|
|
3068
3068
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3069
|
-
const splitMinWidth = (isV2 ?
|
|
3069
|
+
const splitMinWidth = (isV2 ? _chunkYCE7A63Xcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkYCE7A63Xcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3070
3070
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3071
3071
|
_react.useEffect.call(void 0, () => {
|
|
3072
3072
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3085,7 +3085,7 @@ function EmbeddableChatInner({
|
|
|
3085
3085
|
[splitMinWidth]
|
|
3086
3086
|
);
|
|
3087
3087
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3088
|
-
const railStorageHydrated =
|
|
3088
|
+
const railStorageHydrated = _chunkYCE7A63Xcjs.useIsHydrated.call(void 0, );
|
|
3089
3089
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3090
3090
|
if (railStorageHydrated && !railStorageRead) {
|
|
3091
3091
|
setRailStorageRead(true);
|
|
@@ -3139,7 +3139,7 @@ function EmbeddableChatInner({
|
|
|
3139
3139
|
resetToNewChat();
|
|
3140
3140
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3141
3141
|
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 ||
|
|
3142
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunkYCE7A63Xcjs.awaitsDecision.call(void 0, hostMessages);
|
|
3143
3143
|
const showWhatToAsk = (content) => {
|
|
3144
3144
|
whatToAsk.clearDraft();
|
|
3145
3145
|
resetToNewChat();
|
|
@@ -3235,7 +3235,7 @@ function EmbeddableChatInner({
|
|
|
3235
3235
|
}),
|
|
3236
3236
|
[resetToNewChat, contextMaxItems]
|
|
3237
3237
|
);
|
|
3238
|
-
const splitHeaderMenuItems =
|
|
3238
|
+
const splitHeaderMenuItems = _chunkYCE7A63Xcjs.chatDialogMenuItems.call(void 0, {
|
|
3239
3239
|
onCopyLink: headerOnCopyLink,
|
|
3240
3240
|
onRename: headerOnRename,
|
|
3241
3241
|
onCompact: headerOnCompact,
|
|
@@ -3315,7 +3315,7 @@ function EmbeddableChatInner({
|
|
|
3315
3315
|
onRetry: reloadDialogs
|
|
3316
3316
|
};
|
|
3317
3317
|
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
|
-
|
|
3318
|
+
_chunkYCE7A63Xcjs.MingoChatHeader,
|
|
3319
3319
|
{
|
|
3320
3320
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3321
3321
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3335,7 +3335,7 @@ function EmbeddableChatInner({
|
|
|
3335
3335
|
const body = (
|
|
3336
3336
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3337
3337
|
// only the thread `ChatMessageList` provides it to.
|
|
3338
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3338
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.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
3339
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3340
3340
|
"div",
|
|
3341
3341
|
{
|
|
@@ -3343,7 +3343,7 @@ function EmbeddableChatInner({
|
|
|
3343
3343
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3344
3344
|
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
3345
|
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
|
-
|
|
3346
|
+
_chunkYCE7A63Xcjs.ChatArchivePage,
|
|
3347
3347
|
{
|
|
3348
3348
|
dialogs: archivedDialogs,
|
|
3349
3349
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3373,7 +3373,7 @@ function EmbeddableChatInner({
|
|
|
3373
3373
|
narrow: true,
|
|
3374
3374
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3375
3375
|
innerClassName: "flex min-h-0 flex-col",
|
|
3376
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3376
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3377
3377
|
}
|
|
3378
3378
|
),
|
|
3379
3379
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3412,7 +3412,7 @@ function EmbeddableChatInner({
|
|
|
3412
3412
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3413
3413
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3414
3414
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3415
|
-
|
|
3415
|
+
_chunkYCE7A63Xcjs.ChatHeaderSearchField,
|
|
3416
3416
|
{
|
|
3417
3417
|
initialValue: mingoCaps.searchQuery,
|
|
3418
3418
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3499,10 +3499,10 @@ function EmbeddableChatInner({
|
|
|
3499
3499
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3500
3500
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3501
3501
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3502
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3502
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3503
3503
|
),
|
|
3504
3504
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3505
|
-
|
|
3505
|
+
_chunkYCE7A63Xcjs.GuideModeBanner,
|
|
3506
3506
|
{
|
|
3507
3507
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3508
3508
|
}
|
|
@@ -3512,7 +3512,7 @@ function EmbeddableChatInner({
|
|
|
3512
3512
|
// Archive list inside the rail (header lives in the split
|
|
3513
3513
|
// header's left cell above). Right chat block stays put.
|
|
3514
3514
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3515
|
-
|
|
3515
|
+
_chunkYCE7A63Xcjs.ChatArchivePage,
|
|
3516
3516
|
{
|
|
3517
3517
|
embedded: true,
|
|
3518
3518
|
dialogs: archivedDialogs,
|
|
@@ -3526,7 +3526,7 @@ function EmbeddableChatInner({
|
|
|
3526
3526
|
}
|
|
3527
3527
|
)
|
|
3528
3528
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3529
|
-
|
|
3529
|
+
_chunkYCE7A63Xcjs.MingoHistoryRail,
|
|
3530
3530
|
{
|
|
3531
3531
|
dialogs,
|
|
3532
3532
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3554,7 +3554,7 @@ function EmbeddableChatInner({
|
|
|
3554
3554
|
// v2: the archive opens in the chat column under the chat's
|
|
3555
3555
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3556
3556
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3557
|
-
|
|
3557
|
+
_chunkYCE7A63Xcjs.MingoArchiveList,
|
|
3558
3558
|
{
|
|
3559
3559
|
dialogs: archivedDialogs,
|
|
3560
3560
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3567,7 +3567,7 @@ function EmbeddableChatInner({
|
|
|
3567
3567
|
}
|
|
3568
3568
|
)
|
|
3569
3569
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3570
|
-
|
|
3570
|
+
_chunkYCE7A63Xcjs.MingoChatRail,
|
|
3571
3571
|
{
|
|
3572
3572
|
...mingoRailProps,
|
|
3573
3573
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3586,7 +3586,7 @@ function EmbeddableChatInner({
|
|
|
3586
3586
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3587
3587
|
// the compose view.
|
|
3588
3588
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3589
|
-
|
|
3589
|
+
_chunkYCE7A63Xcjs.MingoHistoryRail,
|
|
3590
3590
|
{
|
|
3591
3591
|
className: "duration-200 animate-in fade-in-0",
|
|
3592
3592
|
dialogs,
|
|
@@ -3629,14 +3629,14 @@ function EmbeddableChatInner({
|
|
|
3629
3629
|
{
|
|
3630
3630
|
className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0",
|
|
3631
3631
|
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
|
-
|
|
3632
|
+
_chunkYCE7A63Xcjs.ChatMessageList,
|
|
3633
3633
|
{
|
|
3634
3634
|
messages,
|
|
3635
3635
|
isLoading: messagesInitialLoading,
|
|
3636
3636
|
fill: previewMode,
|
|
3637
3637
|
appearance,
|
|
3638
3638
|
isTyping: chatLoading,
|
|
3639
|
-
typingMessage: streamingProgress ?
|
|
3639
|
+
typingMessage: streamingProgress ? _chunkYCE7A63Xcjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
|
|
3640
3640
|
pendingApprovals,
|
|
3641
3641
|
autoScroll: !previewMode,
|
|
3642
3642
|
pinBottom: previewMode,
|
|
@@ -3649,7 +3649,7 @@ function EmbeddableChatInner({
|
|
|
3649
3649
|
renderMention,
|
|
3650
3650
|
renderAfterMessage: renderMessageSources,
|
|
3651
3651
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3652
|
-
NavLinkAnchor:
|
|
3652
|
+
NavLinkAnchor: _chunkYCE7A63Xcjs.NavLinkAnchorViaRuntime,
|
|
3653
3653
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3654
3654
|
contentClassName: "max-w-none pb-0",
|
|
3655
3655
|
fullWidth: true,
|
|
@@ -3663,7 +3663,7 @@ function EmbeddableChatInner({
|
|
|
3663
3663
|
quick-action chips. Guide mode keeps the slash-command
|
|
3664
3664
|
onboarding list below. */
|
|
3665
3665
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3666
|
-
|
|
3666
|
+
_chunkYCE7A63Xcjs.MingoWelcome,
|
|
3667
3667
|
{
|
|
3668
3668
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3669
3669
|
historyPageSize,
|
|
@@ -3679,7 +3679,7 @@ function EmbeddableChatInner({
|
|
|
3679
3679
|
+ slash-command onboarding list share one scroll region,
|
|
3680
3680
|
with a pinned quick-action chip row above the composer. */
|
|
3681
3681
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3682
|
-
|
|
3682
|
+
_chunkYCE7A63Xcjs.GuideWelcome,
|
|
3683
3683
|
{
|
|
3684
3684
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3685
3685
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3736,7 +3736,7 @@ function EmbeddableChatInner({
|
|
|
3736
3736
|
}
|
|
3737
3737
|
),
|
|
3738
3738
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3739
|
-
|
|
3739
|
+
_chunkYCE7A63Xcjs.ChatAttachmentChipStrip,
|
|
3740
3740
|
{
|
|
3741
3741
|
attachments: stagedAttachments,
|
|
3742
3742
|
onRemove: removeAttachment,
|
|
@@ -3744,7 +3744,7 @@ function EmbeddableChatInner({
|
|
|
3744
3744
|
}
|
|
3745
3745
|
),
|
|
3746
3746
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3747
|
-
|
|
3747
|
+
_chunkYCE7A63Xcjs.ChatComposer,
|
|
3748
3748
|
{
|
|
3749
3749
|
archived: isViewingArchived,
|
|
3750
3750
|
lock: composerLock,
|
|
@@ -3796,7 +3796,7 @@ function EmbeddableChatInner({
|
|
|
3796
3796
|
),
|
|
3797
3797
|
galleryModal,
|
|
3798
3798
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3799
|
-
|
|
3799
|
+
_chunkYCE7A63Xcjs.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, _chunkYCE7A63Xcjs.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, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3821
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3822
3822
|
_chunkEHANO6UEcjs.DrawerContent,
|
|
3823
3823
|
{
|
|
3824
3824
|
side: "right",
|