@flamingo-stack/openframe-frontend-core 0.0.824 → 0.0.825
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/events.d.ts +0 -3
- package/dist/chat-protocol/events.d.ts.map +1 -1
- package/dist/chat-protocol/frames.d.ts +10 -7
- package/dist/chat-protocol/frames.d.ts.map +1 -1
- package/dist/chat-protocol/index.cjs +238 -234
- package/dist/chat-protocol/leading-frames.d.ts.map +1 -1
- package/dist/chat-protocol/leading-frames.js +6 -3
- package/dist/chat-protocol/progress.d.ts +13 -20
- package/dist/chat-protocol/progress.d.ts.map +1 -1
- package/dist/chat-protocol/progress.js +13 -11
- package/dist/{chunk-TQ7TUEK2.cjs → chunk-2U7GXE3T.cjs} +2754 -2784
- package/dist/{chunk-A3SR6HHX.cjs → chunk-47SHKOCY.cjs} +53 -53
- package/dist/{chunk-WSBAIZXL.cjs → chunk-4IY5FKYL.cjs} +11 -11
- package/dist/{chunk-M7EBCYKN.cjs → chunk-5S2GW6YG.cjs} +2 -2
- package/dist/{chunk-SOSVC6HB.cjs → chunk-6LVJKPR3.cjs} +3 -3
- package/dist/{chunk-HDOU3AXV.cjs → chunk-7DJWIVQC.cjs} +19 -19
- package/dist/{chunk-C3RAE7RO.cjs → chunk-AO6YVNAH.cjs} +104 -104
- package/dist/{chunk-EZTCN43H.cjs → chunk-APTFXX2C.cjs} +39 -39
- package/dist/{chunk-WMTV6M5B.cjs → chunk-AUBR3FGY.cjs} +9 -9
- package/dist/{chunk-GXBIYPDM.cjs → chunk-BN7QENV7.cjs} +4 -4
- package/dist/{chunk-2M4E2V25.cjs → chunk-DNZCSPMU.cjs} +7 -7
- package/dist/{chunk-J5U3XHFJ.cjs → chunk-IMMTH3F3.cjs} +10 -10
- package/dist/{chunk-2IHGR57J.cjs → chunk-MALCUN2G.cjs} +6 -6
- package/dist/{chunk-MROW2JWE.cjs → chunk-MHR4C465.cjs} +3 -3
- package/dist/{chunk-5N26M6CK.cjs → chunk-N7IDLF2G.cjs} +32 -32
- package/dist/{chunk-B2VRNRTY.cjs → chunk-NL34HKLS.cjs} +47 -47
- package/dist/{chunk-XUMZMIHR.cjs → chunk-P25RVNGX.cjs} +16 -16
- package/dist/{chunk-TTMTNG3U.cjs → chunk-XJMLZ63Y.cjs} +4 -4
- package/dist/{cloud-tenants-VYXMNISG.cjs → cloud-tenants-M4VFFN33.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +0 -3
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.js +0 -2
- package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-unified-chat.js +0 -1
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/stream/chat-dialog-store.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-dialog-store.js +0 -1
- package/dist/components/chat/stream/chat-stream-reducer.d.ts +0 -4
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-stream-reducer.js +6 -13
- package/dist/components/chat/types/unified-chat-state.types.d.ts +0 -5
- package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
- 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-NTYNZEGJ.cjs → devices-DW5NDXMD.cjs} +5 -5
- package/dist/{embeddable-chat-JAUO4O2T.cjs → embeddable-chat-NBJMXEXB.cjs} +63 -66
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-I2LW27EP.cjs → knowledge-EYJG2TNW.cjs} +5 -5
- package/dist/{logs-KLZHXSOU.cjs → logs-2LV7DTSL.cjs} +12 -12
- package/dist/{policies-SMDAHDKL.cjs → policies-HSDYIQBX.cjs} +8 -8
- package/dist/{scripts-OMBBPNTU.cjs → scripts-UI6V7ANQ.cjs} +9 -9
- package/dist/{software-update-ZIJYNJIC.cjs → software-update-WMLY7VHH.cjs} +7 -7
- package/package.json +1 -1
- package/src/chat-protocol/events.ts +0 -3
- package/src/chat-protocol/frames.ts +12 -8
- package/src/chat-protocol/leading-frames.ts +7 -4
- package/src/chat-protocol/progress.ts +31 -28
- package/src/components/chat/embeddable-chat.tsx +0 -5
- package/src/components/chat/hooks/use-sse-chat-adapter.ts +0 -2
- package/src/components/chat/hooks/use-unified-chat.ts +0 -1
- package/src/components/chat/stream/chat-dialog-store.ts +0 -1
- package/src/components/chat/stream/chat-stream-reducer.ts +6 -17
- package/src/components/chat/types/unified-chat-state.types.ts +0 -6
|
@@ -58,8 +58,7 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
var _chunkTQ7TUEK2cjs = require('./chunk-TQ7TUEK2.cjs');
|
|
61
|
+
var _chunk2U7GXE3Tcjs = require('./chunk-2U7GXE3T.cjs');
|
|
63
62
|
|
|
64
63
|
|
|
65
64
|
var _chunkOBQ5WUNGcjs = require('./chunk-OBQ5WUNG.cjs');
|
|
@@ -2006,7 +2005,7 @@ function useChatDialogManager({
|
|
|
2006
2005
|
setArchivedLoading(true);
|
|
2007
2006
|
}
|
|
2008
2007
|
try {
|
|
2009
|
-
const result = await fetchArchivedDialogs({ cursor, limit:
|
|
2008
|
+
const result = await fetchArchivedDialogs({ cursor, limit: _chunk2U7GXE3Tcjs.CHAT_HISTORY_PAGE_SIZE });
|
|
2010
2009
|
if (!isCurrent()) return;
|
|
2011
2010
|
setArchivedCursor(result.nextCursor);
|
|
2012
2011
|
setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
|
|
@@ -2125,12 +2124,12 @@ function withoutCode(content) {
|
|
|
2125
2124
|
}
|
|
2126
2125
|
function splitCitedSources(sources, content) {
|
|
2127
2126
|
if (!sources || sources.length === 0) return { cited: [], uncited: [] };
|
|
2128
|
-
const byCards = splitByCards(sources,
|
|
2127
|
+
const byCards = splitByCards(sources, _chunk2U7GXE3Tcjs.extractCardReferences.call(void 0, withoutCode(content)));
|
|
2129
2128
|
if (byCards.cited.length > 0) return byCards;
|
|
2130
|
-
const firstMentionAt = new Map(
|
|
2129
|
+
const firstMentionAt = new Map(_chunk2U7GXE3Tcjs.citedSourceNumbers.call(void 0, withoutCode(content)).map((index, order) => [index, order]));
|
|
2131
2130
|
const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
|
|
2132
2131
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2133
|
-
return { cited:
|
|
2132
|
+
return { cited: _chunk2U7GXE3Tcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunk2U7GXE3Tcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2134
2133
|
}
|
|
2135
2134
|
function recordsOf(source) {
|
|
2136
2135
|
if (!source.items || source.items.length === 0) return [source];
|
|
@@ -2162,7 +2161,7 @@ function splitByCards(sources, cards) {
|
|
|
2162
2161
|
if (record && !cited.includes(record)) cited.push(record);
|
|
2163
2162
|
}
|
|
2164
2163
|
const uncited = records.filter((record) => !cited.includes(record));
|
|
2165
|
-
return { cited:
|
|
2164
|
+
return { cited: _chunk2U7GXE3Tcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunk2U7GXE3Tcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2166
2165
|
}
|
|
2167
2166
|
function groupedRowLabels(items) {
|
|
2168
2167
|
const numbers = new Set(items.flatMap((item) => item.index === void 0 ? [] : [item.index]));
|
|
@@ -2217,7 +2216,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2217
2216
|
// src/components/chat/embeddable-chat.tsx
|
|
2218
2217
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2219
2218
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2220
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2219
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunk2U7GXE3Tcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2221
2220
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2222
2221
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2223
2222
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2290,7 +2289,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2290
2289
|
if (!input) return;
|
|
2291
2290
|
switch (actionId) {
|
|
2292
2291
|
case "browse":
|
|
2293
|
-
input.submit(
|
|
2292
|
+
input.submit(_chunk2U7GXE3Tcjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2294
2293
|
return;
|
|
2295
2294
|
case "search":
|
|
2296
2295
|
input.setValue(`/${cmdId} `);
|
|
@@ -2311,7 +2310,7 @@ var ONE_TEXT_LINE = "\xA0";
|
|
|
2311
2310
|
var SOURCE_CHIP_SKELETON_COUNT = 1;
|
|
2312
2311
|
function SourceChipSkeleton(props) {
|
|
2313
2312
|
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: [
|
|
2314
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
2313
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2U7GXE3Tcjs.chatChipClass.call(void 0, { tone: "secondary" }), children: [
|
|
2315
2314
|
/* @__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") }),
|
|
2316
2315
|
/* @__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 })
|
|
2317
2316
|
] }),
|
|
@@ -2322,7 +2321,7 @@ function SourceChip(props) {
|
|
|
2322
2321
|
const { src, onDiscuss } = props;
|
|
2323
2322
|
const marks = _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props);
|
|
2324
2323
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2325
|
-
const cta =
|
|
2324
|
+
const cta = _chunk2U7GXE3Tcjs.resolveSourceRowCTA.call(void 0,
|
|
2326
2325
|
{
|
|
2327
2326
|
sourceRepo: src.sourceRepo,
|
|
2328
2327
|
documentType: src.documentType,
|
|
@@ -2332,16 +2331,16 @@ function SourceChip(props) {
|
|
|
2332
2331
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2333
2332
|
path: src.path
|
|
2334
2333
|
},
|
|
2335
|
-
|
|
2334
|
+
_chunk2U7GXE3Tcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2336
2335
|
);
|
|
2337
2336
|
const Icon = cta.icon;
|
|
2338
2337
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2339
|
-
const chipClass =
|
|
2338
|
+
const chipClass = _chunk2U7GXE3Tcjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2340
2339
|
if (src.items && src.items.length > 0) {
|
|
2341
2340
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2342
2341
|
const rowLabels = groupedRowLabels(src.items);
|
|
2343
2342
|
const dropdownItems = src.items.map((item, i) => {
|
|
2344
|
-
const itemCta =
|
|
2343
|
+
const itemCta = _chunk2U7GXE3Tcjs.resolveSourceRowCTA.call(void 0,
|
|
2345
2344
|
{
|
|
2346
2345
|
sourceRepo: src.sourceRepo,
|
|
2347
2346
|
documentType: item.documentType,
|
|
@@ -2351,7 +2350,7 @@ function SourceChip(props) {
|
|
|
2351
2350
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2352
2351
|
path: item.path
|
|
2353
2352
|
},
|
|
2354
|
-
|
|
2353
|
+
_chunk2U7GXE3Tcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2355
2354
|
);
|
|
2356
2355
|
const ItemIcon = itemCta.icon;
|
|
2357
2356
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2368,13 +2367,13 @@ function SourceChip(props) {
|
|
|
2368
2367
|
} : void 0
|
|
2369
2368
|
};
|
|
2370
2369
|
});
|
|
2371
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2370
|
+
const groupIndices = itemIndices.length > 0 ? _chunk2U7GXE3Tcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2372
2371
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", ...marks, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2373
2372
|
_chunkEHANO6UEcjs.HoverDropdown,
|
|
2374
2373
|
{
|
|
2375
2374
|
items: dropdownItems,
|
|
2376
2375
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2377
|
-
|
|
2376
|
+
_chunk2U7GXE3Tcjs.NavLinkAnchorViaRuntime,
|
|
2378
2377
|
{
|
|
2379
2378
|
href,
|
|
2380
2379
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2407,13 +2406,13 @@ function SourceChip(props) {
|
|
|
2407
2406
|
] });
|
|
2408
2407
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", ...marks, children: [
|
|
2409
2408
|
clickable,
|
|
2410
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2409
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2U7GXE3Tcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2411
2410
|
] });
|
|
2412
2411
|
if (cta.href) {
|
|
2413
2412
|
const isEntity = !!src.externalUrl;
|
|
2414
2413
|
return wrapChip(
|
|
2415
2414
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2416
|
-
|
|
2415
|
+
_chunk2U7GXE3Tcjs.NavLinkAnchorViaRuntime,
|
|
2417
2416
|
{
|
|
2418
2417
|
href: cta.href,
|
|
2419
2418
|
path: isEntity ? null : src.path,
|
|
@@ -2439,7 +2438,7 @@ function SourceChips({
|
|
|
2439
2438
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
2440
2439
|
if (loading) {
|
|
2441
2440
|
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: [
|
|
2442
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2441
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2U7GXE3Tcjs.TextHold, { children: "Sources" }) }),
|
|
2443
2442
|
/* @__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 }) }) })
|
|
2444
2443
|
] });
|
|
2445
2444
|
}
|
|
@@ -2531,7 +2530,7 @@ function EmbeddableChatInner({
|
|
|
2531
2530
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2532
2531
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2533
2532
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2534
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2533
|
+
const { attachmentsEnabled, user: identityUser } = _chunk2U7GXE3Tcjs.useChatIdentity.call(void 0, );
|
|
2535
2534
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2536
2535
|
_react.useEffect.call(void 0, () => {
|
|
2537
2536
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2585,9 +2584,9 @@ function EmbeddableChatInner({
|
|
|
2585
2584
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2586
2585
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2587
2586
|
() => ({
|
|
2588
|
-
fetchCommands: (prefix, signal) =>
|
|
2587
|
+
fetchCommands: (prefix, signal) => _chunk2U7GXE3Tcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2589
2588
|
resolveSourceIcon: (sourceId) => {
|
|
2590
|
-
const iconName =
|
|
2589
|
+
const iconName = _chunk2U7GXE3Tcjs.getSourceIconName.call(void 0, sourceId);
|
|
2591
2590
|
if (!iconName) return void 0;
|
|
2592
2591
|
return { Icon: _chunkQOAA7ZHBcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2593
2592
|
},
|
|
@@ -2616,7 +2615,7 @@ function EmbeddableChatInner({
|
|
|
2616
2615
|
},
|
|
2617
2616
|
[controlledActiveMode, onActiveModeChange]
|
|
2618
2617
|
);
|
|
2619
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2618
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunk2U7GXE3Tcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2620
2619
|
enabled: activeMode === "guide"
|
|
2621
2620
|
});
|
|
2622
2621
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2627,7 +2626,7 @@ function EmbeddableChatInner({
|
|
|
2627
2626
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2628
2627
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2629
2628
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2630
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2629
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunk2U7GXE3Tcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2631
2630
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2632
2631
|
});
|
|
2633
2632
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2643,7 +2642,6 @@ function EmbeddableChatInner({
|
|
|
2643
2642
|
const {
|
|
2644
2643
|
messages: rawMessages,
|
|
2645
2644
|
isLoading: chatLoading,
|
|
2646
|
-
streamingProgress,
|
|
2647
2645
|
sendMessage: sendMessageRaw,
|
|
2648
2646
|
discussRef,
|
|
2649
2647
|
stopMessage,
|
|
@@ -2674,7 +2672,7 @@ function EmbeddableChatInner({
|
|
|
2674
2672
|
hasMoreMessages,
|
|
2675
2673
|
loadMoreMessages,
|
|
2676
2674
|
dialogCapabilities
|
|
2677
|
-
} =
|
|
2675
|
+
} = _chunk2U7GXE3Tcjs.useUnifiedChat.call(void 0, {
|
|
2678
2676
|
modes: effectiveModes,
|
|
2679
2677
|
activeMode,
|
|
2680
2678
|
mingoStateOverride: mingoState,
|
|
@@ -2721,8 +2719,8 @@ function EmbeddableChatInner({
|
|
|
2721
2719
|
addFiles: addAttachmentFiles,
|
|
2722
2720
|
removeAttachment,
|
|
2723
2721
|
clear: clearAttachments
|
|
2724
|
-
} =
|
|
2725
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2722
|
+
} = _chunk2U7GXE3Tcjs.useChatAttachments.call(void 0, );
|
|
2723
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunk2U7GXE3Tcjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2726
2724
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2727
2725
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2728
2726
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2841,7 +2839,7 @@ function EmbeddableChatInner({
|
|
|
2841
2839
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2842
2840
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2843
2841
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2844
|
-
(reference) =>
|
|
2842
|
+
(reference) => _chunk2U7GXE3Tcjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2845
2843
|
onDiscuss: askAbout,
|
|
2846
2844
|
onDisplay: displayRef,
|
|
2847
2845
|
extras
|
|
@@ -2861,7 +2859,7 @@ function EmbeddableChatInner({
|
|
|
2861
2859
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2862
2860
|
return mapped;
|
|
2863
2861
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2864
|
-
const whatToAsk =
|
|
2862
|
+
const whatToAsk = _chunk2U7GXE3Tcjs.useWhatToAsk.call(void 0, {
|
|
2865
2863
|
dialogId: activeDialogId,
|
|
2866
2864
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2867
2865
|
user: {
|
|
@@ -2880,7 +2878,7 @@ function EmbeddableChatInner({
|
|
|
2880
2878
|
noteWhatToAskSend();
|
|
2881
2879
|
let augmentedText = text;
|
|
2882
2880
|
if (readyAttachments.length > 0) {
|
|
2883
|
-
const markdown = readyAttachments.map((att) =>
|
|
2881
|
+
const markdown = readyAttachments.map((att) => _chunk2U7GXE3Tcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2884
2882
|
augmentedText = `${text}${markdown}`;
|
|
2885
2883
|
}
|
|
2886
2884
|
void sendMessage(augmentedText, {
|
|
@@ -2919,7 +2917,7 @@ function EmbeddableChatInner({
|
|
|
2919
2917
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2920
2918
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2921
2919
|
// built-in agents.
|
|
2922
|
-
accent: _nullishCoalesce(
|
|
2920
|
+
accent: _nullishCoalesce(_chunk2U7GXE3Tcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunk2U7GXE3Tcjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2923
2921
|
}));
|
|
2924
2922
|
}
|
|
2925
2923
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2967,7 +2965,7 @@ function EmbeddableChatInner({
|
|
|
2967
2965
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
2968
2966
|
});
|
|
2969
2967
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
2970
|
-
|
|
2968
|
+
_chunk2U7GXE3Tcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
2971
2969
|
_react.useEffect.call(void 0, () => {
|
|
2972
2970
|
const handler = (e) => {
|
|
2973
2971
|
const detail = e.detail;
|
|
@@ -2975,8 +2973,8 @@ function EmbeddableChatInner({
|
|
|
2975
2973
|
setIsOpen(true);
|
|
2976
2974
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
2977
2975
|
};
|
|
2978
|
-
window.addEventListener(
|
|
2979
|
-
return () => window.removeEventListener(
|
|
2976
|
+
window.addEventListener(_chunk2U7GXE3Tcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2977
|
+
return () => window.removeEventListener(_chunk2U7GXE3Tcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2980
2978
|
}, [source, askAbout, setIsOpen]);
|
|
2981
2979
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
2982
2980
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3010,10 +3008,10 @@ function EmbeddableChatInner({
|
|
|
3010
3008
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3011
3009
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3012
3010
|
};
|
|
3013
|
-
window.addEventListener(
|
|
3014
|
-
return () => window.removeEventListener(
|
|
3011
|
+
window.addEventListener(_chunk2U7GXE3Tcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3012
|
+
return () => window.removeEventListener(_chunk2U7GXE3Tcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3015
3013
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3016
|
-
_react.useEffect.call(void 0, () =>
|
|
3014
|
+
_react.useEffect.call(void 0, () => _chunk2U7GXE3Tcjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3017
3015
|
const hasMessages = messages.length > 0;
|
|
3018
3016
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3019
3017
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3053,7 +3051,7 @@ function EmbeddableChatInner({
|
|
|
3053
3051
|
if (sourceSkeletonCount <= 0) return null;
|
|
3054
3052
|
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: [] }) });
|
|
3055
3053
|
}
|
|
3056
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3054
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunk2U7GXE3Tcjs.flattenAssistantContent.call(void 0, message.content));
|
|
3057
3055
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3058
3056
|
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 }) });
|
|
3059
3057
|
},
|
|
@@ -3061,7 +3059,7 @@ function EmbeddableChatInner({
|
|
|
3061
3059
|
);
|
|
3062
3060
|
const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
|
|
3063
3061
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3064
|
-
const splitMinWidth = (isV2 ?
|
|
3062
|
+
const splitMinWidth = (isV2 ? _chunk2U7GXE3Tcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunk2U7GXE3Tcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3065
3063
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3066
3064
|
_react.useEffect.call(void 0, () => {
|
|
3067
3065
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3080,7 +3078,7 @@ function EmbeddableChatInner({
|
|
|
3080
3078
|
[splitMinWidth]
|
|
3081
3079
|
);
|
|
3082
3080
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3083
|
-
const railStorageHydrated =
|
|
3081
|
+
const railStorageHydrated = _chunk2U7GXE3Tcjs.useIsHydrated.call(void 0, );
|
|
3084
3082
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3085
3083
|
if (railStorageHydrated && !railStorageRead) {
|
|
3086
3084
|
setRailStorageRead(true);
|
|
@@ -3134,7 +3132,7 @@ function EmbeddableChatInner({
|
|
|
3134
3132
|
resetToNewChat();
|
|
3135
3133
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3136
3134
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3137
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 ||
|
|
3135
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunk2U7GXE3Tcjs.awaitsDecision.call(void 0, hostMessages);
|
|
3138
3136
|
const showWhatToAsk = (content) => {
|
|
3139
3137
|
whatToAsk.clearDraft();
|
|
3140
3138
|
resetToNewChat();
|
|
@@ -3230,7 +3228,7 @@ function EmbeddableChatInner({
|
|
|
3230
3228
|
}),
|
|
3231
3229
|
[resetToNewChat, contextMaxItems]
|
|
3232
3230
|
);
|
|
3233
|
-
const splitHeaderMenuItems =
|
|
3231
|
+
const splitHeaderMenuItems = _chunk2U7GXE3Tcjs.chatDialogMenuItems.call(void 0, {
|
|
3234
3232
|
onCopyLink: headerOnCopyLink,
|
|
3235
3233
|
onRename: headerOnRename,
|
|
3236
3234
|
onCompact: headerOnCompact,
|
|
@@ -3310,7 +3308,7 @@ function EmbeddableChatInner({
|
|
|
3310
3308
|
onRetry: reloadDialogs
|
|
3311
3309
|
};
|
|
3312
3310
|
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,
|
|
3313
|
-
|
|
3311
|
+
_chunk2U7GXE3Tcjs.MingoChatHeader,
|
|
3314
3312
|
{
|
|
3315
3313
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3316
3314
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3330,7 +3328,7 @@ function EmbeddableChatInner({
|
|
|
3330
3328
|
const body = (
|
|
3331
3329
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3332
3330
|
// only the thread `ChatMessageList` provides it to.
|
|
3333
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3331
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2U7GXE3Tcjs.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: [
|
|
3334
3332
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3335
3333
|
"div",
|
|
3336
3334
|
{
|
|
@@ -3338,7 +3336,7 @@ function EmbeddableChatInner({
|
|
|
3338
3336
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3339
3337
|
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" : ""}`,
|
|
3340
3338
|
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,
|
|
3341
|
-
|
|
3339
|
+
_chunk2U7GXE3Tcjs.ChatArchivePage,
|
|
3342
3340
|
{
|
|
3343
3341
|
dialogs: archivedDialogs,
|
|
3344
3342
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3368,7 +3366,7 @@ function EmbeddableChatInner({
|
|
|
3368
3366
|
narrow: true,
|
|
3369
3367
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3370
3368
|
innerClassName: "flex min-h-0 flex-col",
|
|
3371
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3369
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2U7GXE3Tcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3372
3370
|
}
|
|
3373
3371
|
),
|
|
3374
3372
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3407,7 +3405,7 @@ function EmbeddableChatInner({
|
|
|
3407
3405
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3408
3406
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3409
3407
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3410
|
-
|
|
3408
|
+
_chunk2U7GXE3Tcjs.ChatHeaderSearchField,
|
|
3411
3409
|
{
|
|
3412
3410
|
initialValue: mingoCaps.searchQuery,
|
|
3413
3411
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3494,10 +3492,10 @@ function EmbeddableChatInner({
|
|
|
3494
3492
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3495
3493
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3496
3494
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3497
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3495
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2U7GXE3Tcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3498
3496
|
),
|
|
3499
3497
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3500
|
-
|
|
3498
|
+
_chunk2U7GXE3Tcjs.GuideModeBanner,
|
|
3501
3499
|
{
|
|
3502
3500
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3503
3501
|
}
|
|
@@ -3507,7 +3505,7 @@ function EmbeddableChatInner({
|
|
|
3507
3505
|
// Archive list inside the rail (header lives in the split
|
|
3508
3506
|
// header's left cell above). Right chat block stays put.
|
|
3509
3507
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3510
|
-
|
|
3508
|
+
_chunk2U7GXE3Tcjs.ChatArchivePage,
|
|
3511
3509
|
{
|
|
3512
3510
|
embedded: true,
|
|
3513
3511
|
dialogs: archivedDialogs,
|
|
@@ -3521,7 +3519,7 @@ function EmbeddableChatInner({
|
|
|
3521
3519
|
}
|
|
3522
3520
|
)
|
|
3523
3521
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3524
|
-
|
|
3522
|
+
_chunk2U7GXE3Tcjs.MingoHistoryRail,
|
|
3525
3523
|
{
|
|
3526
3524
|
dialogs,
|
|
3527
3525
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3549,7 +3547,7 @@ function EmbeddableChatInner({
|
|
|
3549
3547
|
// v2: the archive opens in the chat column under the chat's
|
|
3550
3548
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3551
3549
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3552
|
-
|
|
3550
|
+
_chunk2U7GXE3Tcjs.MingoArchiveList,
|
|
3553
3551
|
{
|
|
3554
3552
|
dialogs: archivedDialogs,
|
|
3555
3553
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3562,7 +3560,7 @@ function EmbeddableChatInner({
|
|
|
3562
3560
|
}
|
|
3563
3561
|
)
|
|
3564
3562
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3565
|
-
|
|
3563
|
+
_chunk2U7GXE3Tcjs.MingoChatRail,
|
|
3566
3564
|
{
|
|
3567
3565
|
...mingoRailProps,
|
|
3568
3566
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3581,7 +3579,7 @@ function EmbeddableChatInner({
|
|
|
3581
3579
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3582
3580
|
// the compose view.
|
|
3583
3581
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3584
|
-
|
|
3582
|
+
_chunk2U7GXE3Tcjs.MingoHistoryRail,
|
|
3585
3583
|
{
|
|
3586
3584
|
className: "duration-200 animate-in fade-in-0",
|
|
3587
3585
|
dialogs,
|
|
@@ -3624,14 +3622,13 @@ function EmbeddableChatInner({
|
|
|
3624
3622
|
{
|
|
3625
3623
|
className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0",
|
|
3626
3624
|
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,
|
|
3627
|
-
|
|
3625
|
+
_chunk2U7GXE3Tcjs.ChatMessageList,
|
|
3628
3626
|
{
|
|
3629
3627
|
messages,
|
|
3630
3628
|
isLoading: messagesInitialLoading,
|
|
3631
3629
|
fill: previewMode,
|
|
3632
3630
|
appearance,
|
|
3633
3631
|
isTyping: chatLoading,
|
|
3634
|
-
typingMessage: streamingProgress ? _chunkTQ7TUEK2cjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
|
|
3635
3632
|
pendingApprovals,
|
|
3636
3633
|
autoScroll: !previewMode,
|
|
3637
3634
|
pinBottom: previewMode,
|
|
@@ -3644,7 +3641,7 @@ function EmbeddableChatInner({
|
|
|
3644
3641
|
renderMention,
|
|
3645
3642
|
renderAfterMessage: renderMessageSources,
|
|
3646
3643
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3647
|
-
NavLinkAnchor:
|
|
3644
|
+
NavLinkAnchor: _chunk2U7GXE3Tcjs.NavLinkAnchorViaRuntime,
|
|
3648
3645
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3649
3646
|
contentClassName: "max-w-none pb-0",
|
|
3650
3647
|
fullWidth: true,
|
|
@@ -3658,7 +3655,7 @@ function EmbeddableChatInner({
|
|
|
3658
3655
|
quick-action chips. Guide mode keeps the slash-command
|
|
3659
3656
|
onboarding list below. */
|
|
3660
3657
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3661
|
-
|
|
3658
|
+
_chunk2U7GXE3Tcjs.MingoWelcome,
|
|
3662
3659
|
{
|
|
3663
3660
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3664
3661
|
historyPageSize,
|
|
@@ -3674,7 +3671,7 @@ function EmbeddableChatInner({
|
|
|
3674
3671
|
+ slash-command onboarding list share one scroll region,
|
|
3675
3672
|
with a pinned quick-action chip row above the composer. */
|
|
3676
3673
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3677
|
-
|
|
3674
|
+
_chunk2U7GXE3Tcjs.GuideWelcome,
|
|
3678
3675
|
{
|
|
3679
3676
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3680
3677
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3731,7 +3728,7 @@ function EmbeddableChatInner({
|
|
|
3731
3728
|
}
|
|
3732
3729
|
),
|
|
3733
3730
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3734
|
-
|
|
3731
|
+
_chunk2U7GXE3Tcjs.ChatAttachmentChipStrip,
|
|
3735
3732
|
{
|
|
3736
3733
|
attachments: stagedAttachments,
|
|
3737
3734
|
onRemove: removeAttachment,
|
|
@@ -3739,7 +3736,7 @@ function EmbeddableChatInner({
|
|
|
3739
3736
|
}
|
|
3740
3737
|
),
|
|
3741
3738
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3742
|
-
|
|
3739
|
+
_chunk2U7GXE3Tcjs.ChatComposer,
|
|
3743
3740
|
{
|
|
3744
3741
|
archived: isViewingArchived,
|
|
3745
3742
|
lock: composerLock,
|
|
@@ -3791,7 +3788,7 @@ function EmbeddableChatInner({
|
|
|
3791
3788
|
),
|
|
3792
3789
|
galleryModal,
|
|
3793
3790
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3794
|
-
|
|
3791
|
+
_chunk2U7GXE3Tcjs.ChatDialogModals,
|
|
3795
3792
|
{
|
|
3796
3793
|
renameTarget,
|
|
3797
3794
|
setRenameTarget,
|
|
@@ -3807,13 +3804,13 @@ function EmbeddableChatInner({
|
|
|
3807
3804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3808
3805
|
] }) }) })
|
|
3809
3806
|
);
|
|
3810
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3807
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2U7GXE3Tcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3811
3808
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3812
3809
|
sourceLabel,
|
|
3813
3810
|
" AI Assistant"
|
|
3814
3811
|
] }) }),
|
|
3815
3812
|
body
|
|
3816
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3813
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2U7GXE3Tcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3817
3814
|
_chunkEHANO6UEcjs.DrawerContent,
|
|
3818
3815
|
{
|
|
3819
3816
|
side: "right",
|