@flamingo-stack/openframe-frontend-core 0.0.750 → 0.0.751
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-45YRDD7W.cjs → chunk-4WNBVNGP.cjs} +13 -13
- package/dist/{chunk-4O2KYY4K.cjs → chunk-53I4YHRT.cjs} +3 -3
- package/dist/{chunk-HOEVD6EN.cjs → chunk-5P7WBA2U.cjs} +4 -4
- package/dist/{chunk-CNUZLOVA.cjs → chunk-5WC535NJ.cjs} +17 -17
- package/dist/{chunk-BO6ZOAPB.cjs → chunk-77IKUBSH.cjs} +6 -6
- package/dist/{chunk-E3KFEOFA.cjs → chunk-CVBHB4OZ.cjs} +4 -4
- package/dist/{chunk-JPUTILTV.cjs → chunk-ESRA7NUI.cjs} +41 -41
- package/dist/{chunk-2J2OBP4N.cjs → chunk-H52GKJ36.cjs} +9 -9
- package/dist/{chunk-G7SBHMRR.cjs → chunk-KHKPLOU4.cjs} +69 -39
- package/dist/{chunk-6KEJQR6L.cjs → chunk-LIGDPFDM.cjs} +131 -131
- package/dist/{chunk-YL62VAHC.cjs → chunk-MJFTWHV6.cjs} +4 -4
- package/dist/{chunk-AW6GP3JK.cjs → chunk-MU7FFN6M.cjs} +34 -34
- package/dist/{chunk-7RCTOWBA.cjs → chunk-NOUROZYH.cjs} +13 -13
- package/dist/{chunk-KVSEWACW.cjs → chunk-QOONZMSQ.cjs} +9 -9
- package/dist/{chunk-FP6HAJQV.cjs → chunk-RVLQHSID.cjs} +70 -70
- package/dist/{chunk-GVETSV7H.cjs → chunk-SDOCZTST.cjs} +32 -32
- package/dist/{chunk-V3UJ6NDR.cjs → chunk-TPH4SRR2.cjs} +6 -6
- package/dist/{chunk-4FWURR3W.cjs → chunk-VUWPLQBY.cjs} +2 -2
- package/dist/{chunk-WZX26ODJ.cjs → chunk-X4LAMJHD.cjs} +54 -35
- package/dist/{cloud-tenants-E4JSG3GH.cjs → cloud-tenants-JDPC2DYF.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/chat/hooks/use-jetstream-dialog-subscription.d.ts +7 -5
- package/dist/components/chat/hooks/use-jetstream-dialog-subscription.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-jetstream-dialog-subscription.js +33 -14
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/chat/types/api.types.d.ts +27 -8
- package/dist/components/chat/types/api.types.d.ts.map +1 -1
- package/dist/components/chat/types/network.types.d.ts +2 -1
- package/dist/components/chat/types/network.types.d.ts.map +1 -1
- 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 +67 -67
- package/dist/components/index.cjs +39 -39
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/ui/index.cjs +6 -6
- package/dist/{devices-AVRQGB2N.cjs → devices-ADQWD37J.cjs} +7 -7
- package/dist/{embeddable-chat-SNYQSMS7.cjs → embeddable-chat-7YF2JMPS.cjs} +65 -65
- package/dist/hooks/index.cjs +3 -3
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-S3CNISQH.cjs → knowledge-TNS64EGK.cjs} +7 -7
- package/dist/{logs-WDLOKDXT.cjs → logs-754MDDE4.cjs} +14 -14
- package/dist/nats/index.cjs +2 -2
- package/dist/nats/nats.d.ts +33 -7
- package/dist/nats/nats.d.ts.map +1 -1
- package/dist/nats/nats.js +41 -11
- package/dist/{policies-STML7NEZ.cjs → policies-Q23DPIH6.cjs} +10 -10
- package/dist/{scripts-HO53VYGX.cjs → scripts-DCYLK2RZ.cjs} +11 -11
- package/dist/{software-update-4VTK7LWQ.cjs → software-update-XCMGUIER.cjs} +9 -9
- package/package.json +1 -1
- package/src/components/chat/hooks/use-jetstream-dialog-subscription.ts +59 -23
- package/src/components/chat/types/api.types.ts +27 -8
- package/src/components/chat/types/network.types.ts +2 -1
- package/src/nats/nats.ts +91 -20
|
@@ -57,7 +57,7 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkTPH4SRR2cjs = require('./chunk-TPH4SRR2.cjs');
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
var _chunkLVO7FALWcjs = require('./chunk-LVO7FALW.cjs');
|
|
@@ -1923,7 +1923,7 @@ var _chunk2QMBXGMQcjs = require('./chunk-2QMBXGMQ.cjs');
|
|
|
1923
1923
|
|
|
1924
1924
|
|
|
1925
1925
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
1926
|
-
require('./chunk-
|
|
1926
|
+
require('./chunk-KHKPLOU4.cjs');
|
|
1927
1927
|
require('./chunk-3LU4UFPS.cjs');
|
|
1928
1928
|
|
|
1929
1929
|
|
|
@@ -2130,7 +2130,7 @@ function splitCitedSources(sources, content) {
|
|
|
2130
2130
|
}
|
|
2131
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))));
|
|
2132
2132
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2133
|
-
return { cited:
|
|
2133
|
+
return { cited: _chunkTPH4SRR2cjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkTPH4SRR2cjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2134
2134
|
}
|
|
2135
2135
|
|
|
2136
2136
|
// src/components/chat/utils/host-message.ts
|
|
@@ -2181,7 +2181,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2181
2181
|
// src/components/chat/embeddable-chat.tsx
|
|
2182
2182
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2183
2183
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2184
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2184
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkTPH4SRR2cjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2185
2185
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2186
2186
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2187
2187
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2262,7 +2262,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2262
2262
|
if (!input) return;
|
|
2263
2263
|
switch (actionId) {
|
|
2264
2264
|
case "browse":
|
|
2265
|
-
input.submit(
|
|
2265
|
+
input.submit(_chunkTPH4SRR2cjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2266
2266
|
return;
|
|
2267
2267
|
case "search":
|
|
2268
2268
|
input.setValue(`/${cmdId} `);
|
|
@@ -2288,7 +2288,7 @@ function SourceChip({
|
|
|
2288
2288
|
}) {
|
|
2289
2289
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2290
2290
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
2291
|
-
const cta =
|
|
2291
|
+
const cta = _chunkTPH4SRR2cjs.resolveSourceRowCTA.call(void 0,
|
|
2292
2292
|
{
|
|
2293
2293
|
sourceRepo: src.sourceRepo,
|
|
2294
2294
|
documentType: src.documentType,
|
|
@@ -2298,15 +2298,15 @@ function SourceChip({
|
|
|
2298
2298
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2299
2299
|
path: src.path
|
|
2300
2300
|
},
|
|
2301
|
-
|
|
2301
|
+
_chunkTPH4SRR2cjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2302
2302
|
);
|
|
2303
2303
|
const Icon = cta.icon;
|
|
2304
2304
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2305
|
-
const chipClass =
|
|
2305
|
+
const chipClass = _chunkTPH4SRR2cjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2306
2306
|
const decideTab = (href, targetPlatform) => _chunkOFO75R2Ocjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
|
|
2307
2307
|
if (src.items && src.items.length > 0) {
|
|
2308
2308
|
const dropdownItems = src.items.map((item) => {
|
|
2309
|
-
const itemCta =
|
|
2309
|
+
const itemCta = _chunkTPH4SRR2cjs.resolveSourceRowCTA.call(void 0,
|
|
2310
2310
|
{
|
|
2311
2311
|
sourceRepo: src.sourceRepo,
|
|
2312
2312
|
documentType: item.documentType,
|
|
@@ -2316,7 +2316,7 @@ function SourceChip({
|
|
|
2316
2316
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2317
2317
|
path: item.path
|
|
2318
2318
|
},
|
|
2319
|
-
|
|
2319
|
+
_chunkTPH4SRR2cjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2320
2320
|
);
|
|
2321
2321
|
const ItemIcon = itemCta.icon;
|
|
2322
2322
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2336,13 +2336,13 @@ function SourceChip({
|
|
|
2336
2336
|
};
|
|
2337
2337
|
});
|
|
2338
2338
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2339
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2339
|
+
const groupIndices = itemIndices.length > 0 ? _chunkTPH4SRR2cjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2340
2340
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2341
2341
|
_chunkNTGIQP7Ocjs.HoverDropdown,
|
|
2342
2342
|
{
|
|
2343
2343
|
items: dropdownItems,
|
|
2344
2344
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2345
|
-
|
|
2345
|
+
_chunkTPH4SRR2cjs.NavLinkAnchorViaRuntime,
|
|
2346
2346
|
{
|
|
2347
2347
|
href,
|
|
2348
2348
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2375,10 +2375,10 @@ function SourceChip({
|
|
|
2375
2375
|
] });
|
|
2376
2376
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", children: [
|
|
2377
2377
|
clickable,
|
|
2378
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2378
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2379
2379
|
] });
|
|
2380
2380
|
const buildClickHandler = (href, path, targetPlatform, isNewTab) => (e) => {
|
|
2381
|
-
const handled =
|
|
2381
|
+
const handled = _chunkTPH4SRR2cjs.executeNavigation.call(void 0, {
|
|
2382
2382
|
event: e,
|
|
2383
2383
|
runtime,
|
|
2384
2384
|
href,
|
|
@@ -2548,7 +2548,7 @@ function EmbeddableChatInner({
|
|
|
2548
2548
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2549
2549
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2550
2550
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2551
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2551
|
+
const { attachmentsEnabled, user: identityUser } = _chunkTPH4SRR2cjs.useChatIdentity.call(void 0, );
|
|
2552
2552
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2553
2553
|
_react.useEffect.call(void 0, () => {
|
|
2554
2554
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2602,9 +2602,9 @@ function EmbeddableChatInner({
|
|
|
2602
2602
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2603
2603
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2604
2604
|
() => ({
|
|
2605
|
-
fetchCommands: (prefix, signal) =>
|
|
2605
|
+
fetchCommands: (prefix, signal) => _chunkTPH4SRR2cjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2606
2606
|
resolveSourceIcon: (sourceId) => {
|
|
2607
|
-
const iconName =
|
|
2607
|
+
const iconName = _chunkTPH4SRR2cjs.getSourceIconName.call(void 0, sourceId);
|
|
2608
2608
|
if (!iconName) return void 0;
|
|
2609
2609
|
return { Icon: _chunkKTPR66EEcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2610
2610
|
},
|
|
@@ -2633,7 +2633,7 @@ function EmbeddableChatInner({
|
|
|
2633
2633
|
},
|
|
2634
2634
|
[controlledActiveMode, onActiveModeChange]
|
|
2635
2635
|
);
|
|
2636
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2636
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunkTPH4SRR2cjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2637
2637
|
enabled: activeMode === "guide"
|
|
2638
2638
|
});
|
|
2639
2639
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2644,7 +2644,7 @@ function EmbeddableChatInner({
|
|
|
2644
2644
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2645
2645
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2646
2646
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2647
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2647
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkTPH4SRR2cjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2648
2648
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2649
2649
|
});
|
|
2650
2650
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2691,7 +2691,7 @@ function EmbeddableChatInner({
|
|
|
2691
2691
|
hasMoreMessages,
|
|
2692
2692
|
loadMoreMessages,
|
|
2693
2693
|
dialogCapabilities
|
|
2694
|
-
} =
|
|
2694
|
+
} = _chunkTPH4SRR2cjs.useUnifiedChat.call(void 0, {
|
|
2695
2695
|
modes: effectiveModes,
|
|
2696
2696
|
activeMode,
|
|
2697
2697
|
mingoStateOverride: mingoState,
|
|
@@ -2738,8 +2738,8 @@ function EmbeddableChatInner({
|
|
|
2738
2738
|
addFiles: addAttachmentFiles,
|
|
2739
2739
|
removeAttachment,
|
|
2740
2740
|
clear: clearAttachments
|
|
2741
|
-
} =
|
|
2742
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2741
|
+
} = _chunkTPH4SRR2cjs.useChatAttachments.call(void 0, );
|
|
2742
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkTPH4SRR2cjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2743
2743
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2744
2744
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2745
2745
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2854,7 +2854,7 @@ function EmbeddableChatInner({
|
|
|
2854
2854
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2855
2855
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2856
2856
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2857
|
-
(reference) =>
|
|
2857
|
+
(reference) => _chunkTPH4SRR2cjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2858
2858
|
onDiscuss: askAbout,
|
|
2859
2859
|
onDisplay: displayRef,
|
|
2860
2860
|
baseRoute: resolvedBaseRoute,
|
|
@@ -2881,7 +2881,7 @@ function EmbeddableChatInner({
|
|
|
2881
2881
|
if (composerLock) return;
|
|
2882
2882
|
let augmentedText = text;
|
|
2883
2883
|
if (readyAttachments.length > 0) {
|
|
2884
|
-
const markdown = readyAttachments.map((att) =>
|
|
2884
|
+
const markdown = readyAttachments.map((att) => _chunkTPH4SRR2cjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2885
2885
|
augmentedText = `${text}${markdown}`;
|
|
2886
2886
|
}
|
|
2887
2887
|
void sendMessage(augmentedText, {
|
|
@@ -2920,7 +2920,7 @@ function EmbeddableChatInner({
|
|
|
2920
2920
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2921
2921
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2922
2922
|
// built-in agents.
|
|
2923
|
-
accent: _nullishCoalesce(
|
|
2923
|
+
accent: _nullishCoalesce(_chunkTPH4SRR2cjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkTPH4SRR2cjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2924
2924
|
}));
|
|
2925
2925
|
}
|
|
2926
2926
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2968,7 +2968,7 @@ function EmbeddableChatInner({
|
|
|
2968
2968
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
2969
2969
|
});
|
|
2970
2970
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
2971
|
-
|
|
2971
|
+
_chunkTPH4SRR2cjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
2972
2972
|
_react.useEffect.call(void 0, () => {
|
|
2973
2973
|
const handler = (e) => {
|
|
2974
2974
|
const detail = e.detail;
|
|
@@ -2976,8 +2976,8 @@ function EmbeddableChatInner({
|
|
|
2976
2976
|
setIsOpen(true);
|
|
2977
2977
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
2978
2978
|
};
|
|
2979
|
-
window.addEventListener(
|
|
2980
|
-
return () => window.removeEventListener(
|
|
2979
|
+
window.addEventListener(_chunkTPH4SRR2cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2980
|
+
return () => window.removeEventListener(_chunkTPH4SRR2cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2981
2981
|
}, [source, askAbout, setIsOpen]);
|
|
2982
2982
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
2983
2983
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3011,10 +3011,10 @@ function EmbeddableChatInner({
|
|
|
3011
3011
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3012
3012
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3013
3013
|
};
|
|
3014
|
-
window.addEventListener(
|
|
3015
|
-
return () => window.removeEventListener(
|
|
3014
|
+
window.addEventListener(_chunkTPH4SRR2cjs.ASK_AI_OPEN_EVENT, handler);
|
|
3015
|
+
return () => window.removeEventListener(_chunkTPH4SRR2cjs.ASK_AI_OPEN_EVENT, handler);
|
|
3016
3016
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3017
|
-
_react.useEffect.call(void 0, () =>
|
|
3017
|
+
_react.useEffect.call(void 0, () => _chunkTPH4SRR2cjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3018
3018
|
const hasMessages = messages.length > 0;
|
|
3019
3019
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3020
3020
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3050,7 +3050,7 @@ function EmbeddableChatInner({
|
|
|
3050
3050
|
(message, index) => {
|
|
3051
3051
|
if (message.role !== "assistant") return null;
|
|
3052
3052
|
if (chatLoading && index === messages.length - 1) return null;
|
|
3053
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3053
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunkTPH4SRR2cjs.flattenAssistantContent.call(void 0, message.content));
|
|
3054
3054
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3055
3055
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3056
3056
|
SourceChips,
|
|
@@ -3068,7 +3068,7 @@ function EmbeddableChatInner({
|
|
|
3068
3068
|
);
|
|
3069
3069
|
const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
|
|
3070
3070
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3071
|
-
const splitMinWidth = (isV2 ?
|
|
3071
|
+
const splitMinWidth = (isV2 ? _chunkTPH4SRR2cjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkTPH4SRR2cjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3072
3072
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3073
3073
|
_react.useEffect.call(void 0, () => {
|
|
3074
3074
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3087,7 +3087,7 @@ function EmbeddableChatInner({
|
|
|
3087
3087
|
[splitMinWidth]
|
|
3088
3088
|
);
|
|
3089
3089
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3090
|
-
const railStorageHydrated =
|
|
3090
|
+
const railStorageHydrated = _chunkTPH4SRR2cjs.useIsHydrated.call(void 0, );
|
|
3091
3091
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3092
3092
|
if (railStorageHydrated && !railStorageRead) {
|
|
3093
3093
|
setRailStorageRead(true);
|
|
@@ -3198,7 +3198,7 @@ function EmbeddableChatInner({
|
|
|
3198
3198
|
}),
|
|
3199
3199
|
[resetToNewChat, contextMaxItems]
|
|
3200
3200
|
);
|
|
3201
|
-
const splitHeaderMenuItems =
|
|
3201
|
+
const splitHeaderMenuItems = _chunkTPH4SRR2cjs.chatDialogMenuItems.call(void 0, {
|
|
3202
3202
|
onCopyLink: headerOnCopyLink,
|
|
3203
3203
|
onRename: headerOnRename,
|
|
3204
3204
|
onCompact: headerOnCompact,
|
|
@@ -3272,7 +3272,7 @@ function EmbeddableChatInner({
|
|
|
3272
3272
|
onRetry: reloadDialogs
|
|
3273
3273
|
};
|
|
3274
3274
|
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,
|
|
3275
|
-
|
|
3275
|
+
_chunkTPH4SRR2cjs.MingoChatHeader,
|
|
3276
3276
|
{
|
|
3277
3277
|
title: headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3278
3278
|
subtitle: headerPersonName,
|
|
@@ -3291,7 +3291,7 @@ function EmbeddableChatInner({
|
|
|
3291
3291
|
const body = (
|
|
3292
3292
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3293
3293
|
// only the thread `ChatMessageList` provides it to.
|
|
3294
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3294
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRB6BSE3Ocjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkRB6BSE3Ocjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
|
|
3295
3295
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3296
3296
|
"div",
|
|
3297
3297
|
{
|
|
@@ -3299,7 +3299,7 @@ function EmbeddableChatInner({
|
|
|
3299
3299
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3300
3300
|
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" : ""}`,
|
|
3301
3301
|
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,
|
|
3302
|
-
|
|
3302
|
+
_chunkTPH4SRR2cjs.ChatArchivePage,
|
|
3303
3303
|
{
|
|
3304
3304
|
dialogs: archivedDialogs,
|
|
3305
3305
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3329,7 +3329,7 @@ function EmbeddableChatInner({
|
|
|
3329
3329
|
narrow: true,
|
|
3330
3330
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3331
3331
|
innerClassName: "flex min-h-0 flex-col",
|
|
3332
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3332
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3333
3333
|
}
|
|
3334
3334
|
),
|
|
3335
3335
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3353,7 +3353,7 @@ function EmbeddableChatInner({
|
|
|
3353
3353
|
// Back is a full-height leading cell, matching the other
|
|
3354
3354
|
// header cells (not a small inline chevron).
|
|
3355
3355
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3356
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3356
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.ChatHeaderIconButton, { divider: "right", onClick: closeArchive, "aria-label": "Back to chats", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
|
|
3357
3357
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center px-[var(--spacing-system-mf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h3", children: "Chat Archive" }) })
|
|
3358
3358
|
] })
|
|
3359
3359
|
) : (
|
|
@@ -3363,7 +3363,7 @@ function EmbeddableChatInner({
|
|
|
3363
3363
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3364
3364
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3365
3365
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3366
|
-
|
|
3366
|
+
_chunkTPH4SRR2cjs.ChatHeaderSearchField,
|
|
3367
3367
|
{
|
|
3368
3368
|
initialValue: mingoCaps.searchQuery,
|
|
3369
3369
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3372,7 +3372,7 @@ function EmbeddableChatInner({
|
|
|
3372
3372
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3373
3373
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center px-[var(--spacing-system-mf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h3", children: "Current Chats" }) }),
|
|
3374
3374
|
mingoCaps.onSearchChange && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3375
|
-
|
|
3375
|
+
_chunkTPH4SRR2cjs.ChatHeaderIconButton,
|
|
3376
3376
|
{
|
|
3377
3377
|
onClick: () => setRailSearchOpen((o) => !o),
|
|
3378
3378
|
"aria-label": "Search chats",
|
|
@@ -3381,7 +3381,7 @@ function EmbeddableChatInner({
|
|
|
3381
3381
|
}
|
|
3382
3382
|
)
|
|
3383
3383
|
] }),
|
|
3384
|
-
headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3384
|
+
headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.ChatHeaderIconButton, { onClick: headerOnOpenArchive, "aria-label": "Chat archive", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JKBT3LTcjs.ClockHistoryIcon, { size: 24 }) })
|
|
3385
3385
|
] })
|
|
3386
3386
|
) }),
|
|
3387
3387
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1", children: [
|
|
@@ -3418,17 +3418,17 @@ function EmbeddableChatInner({
|
|
|
3418
3418
|
)
|
|
3419
3419
|
) : null
|
|
3420
3420
|
] }),
|
|
3421
|
-
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3421
|
+
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.ChatHeaderIconButton, { onClick: headerOnRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
3422
3422
|
headerShowBack && !isViewingArchived && splitHeaderMenuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3423
3423
|
_chunkP6F6PHVKcjs.ActionsMenuDropdown,
|
|
3424
3424
|
{
|
|
3425
3425
|
triggerAriaLabel: "Chat actions",
|
|
3426
3426
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3427
3427
|
groups: [{ items: splitHeaderMenuItems }],
|
|
3428
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3428
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.ChatHeaderIconButton, { "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
3429
3429
|
}
|
|
3430
3430
|
),
|
|
3431
|
-
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3431
|
+
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.ChatHeaderIconButton, { onClick: closeControl, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
3432
3432
|
] })
|
|
3433
3433
|
] })
|
|
3434
3434
|
) : (
|
|
@@ -3436,10 +3436,10 @@ function EmbeddableChatInner({
|
|
|
3436
3436
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3437
3437
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3438
3438
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3439
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3439
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3440
3440
|
),
|
|
3441
3441
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3442
|
-
|
|
3442
|
+
_chunkTPH4SRR2cjs.GuideModeBanner,
|
|
3443
3443
|
{
|
|
3444
3444
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3445
3445
|
}
|
|
@@ -3449,7 +3449,7 @@ function EmbeddableChatInner({
|
|
|
3449
3449
|
// Archive list inside the rail (header lives in the split
|
|
3450
3450
|
// header's left cell above). Right chat block stays put.
|
|
3451
3451
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3452
|
-
|
|
3452
|
+
_chunkTPH4SRR2cjs.ChatArchivePage,
|
|
3453
3453
|
{
|
|
3454
3454
|
embedded: true,
|
|
3455
3455
|
dialogs: archivedDialogs,
|
|
@@ -3463,7 +3463,7 @@ function EmbeddableChatInner({
|
|
|
3463
3463
|
}
|
|
3464
3464
|
)
|
|
3465
3465
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3466
|
-
|
|
3466
|
+
_chunkTPH4SRR2cjs.MingoHistoryRail,
|
|
3467
3467
|
{
|
|
3468
3468
|
dialogs,
|
|
3469
3469
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3490,7 +3490,7 @@ function EmbeddableChatInner({
|
|
|
3490
3490
|
// v2: the archive opens in the chat column under the chat's
|
|
3491
3491
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3492
3492
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3493
|
-
|
|
3493
|
+
_chunkTPH4SRR2cjs.MingoArchiveList,
|
|
3494
3494
|
{
|
|
3495
3495
|
dialogs: archivedDialogs,
|
|
3496
3496
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3503,7 +3503,7 @@ function EmbeddableChatInner({
|
|
|
3503
3503
|
}
|
|
3504
3504
|
)
|
|
3505
3505
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3506
|
-
|
|
3506
|
+
_chunkTPH4SRR2cjs.MingoChatRail,
|
|
3507
3507
|
{
|
|
3508
3508
|
...mingoRailProps,
|
|
3509
3509
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3522,7 +3522,7 @@ function EmbeddableChatInner({
|
|
|
3522
3522
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3523
3523
|
// the compose view.
|
|
3524
3524
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3525
|
-
|
|
3525
|
+
_chunkTPH4SRR2cjs.MingoHistoryRail,
|
|
3526
3526
|
{
|
|
3527
3527
|
className: "duration-200 animate-in fade-in-0",
|
|
3528
3528
|
dialogs,
|
|
@@ -3562,14 +3562,14 @@ function EmbeddableChatInner({
|
|
|
3562
3562
|
// skeleton overflows a short panel and grows its OWN
|
|
3563
3563
|
// scrollbar — ugly. `fill` top-anchors + clips overflow so
|
|
3564
3564
|
// it reads as "the whole panel is loading" and never scrolls.
|
|
3565
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3565
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.ChatMessageListSkeleton, { fullWidth: true, fill: previewMode, className: "flex-1" })
|
|
3566
3566
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3567
|
-
|
|
3567
|
+
_chunkTPH4SRR2cjs.ChatMessageList,
|
|
3568
3568
|
{
|
|
3569
3569
|
messages,
|
|
3570
3570
|
appearance,
|
|
3571
3571
|
isTyping: chatLoading,
|
|
3572
|
-
typingMessage: streamingProgress ?
|
|
3572
|
+
typingMessage: streamingProgress ? _chunkTPH4SRR2cjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
|
|
3573
3573
|
pendingApprovals,
|
|
3574
3574
|
autoScroll: !previewMode,
|
|
3575
3575
|
pinBottom: previewMode,
|
|
@@ -3582,7 +3582,7 @@ function EmbeddableChatInner({
|
|
|
3582
3582
|
renderMention,
|
|
3583
3583
|
renderAfterMessage: renderMessageSources,
|
|
3584
3584
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3585
|
-
NavLinkAnchor:
|
|
3585
|
+
NavLinkAnchor: _chunkTPH4SRR2cjs.NavLinkAnchorViaRuntime,
|
|
3586
3586
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3587
3587
|
contentClassName: "max-w-none pb-0",
|
|
3588
3588
|
fullWidth: true,
|
|
@@ -3596,7 +3596,7 @@ function EmbeddableChatInner({
|
|
|
3596
3596
|
quick-action chips. Guide mode keeps the slash-command
|
|
3597
3597
|
onboarding list below. */
|
|
3598
3598
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3599
|
-
|
|
3599
|
+
_chunkTPH4SRR2cjs.MingoWelcome,
|
|
3600
3600
|
{
|
|
3601
3601
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3602
3602
|
...mingoWelcome,
|
|
@@ -3611,7 +3611,7 @@ function EmbeddableChatInner({
|
|
|
3611
3611
|
+ slash-command onboarding list share one scroll region,
|
|
3612
3612
|
with a pinned quick-action chip row above the composer. */
|
|
3613
3613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3614
|
-
|
|
3614
|
+
_chunkTPH4SRR2cjs.GuideWelcome,
|
|
3615
3615
|
{
|
|
3616
3616
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3617
3617
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3628,7 +3628,7 @@ function EmbeddableChatInner({
|
|
|
3628
3628
|
agentSlug: activeAgentSlug,
|
|
3629
3629
|
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
3630
3630
|
!commandsLoaded && chipCommands.length === 0 && SKELETON_ROW_VARIANTS.map((variant, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3631
|
-
|
|
3631
|
+
_chunkTPH4SRR2cjs.MingoOnboardingCardSkeleton,
|
|
3632
3632
|
{
|
|
3633
3633
|
titleWidth: variant.titleWidth,
|
|
3634
3634
|
slashWidth: variant.slashWidth,
|
|
@@ -3666,7 +3666,7 @@ function EmbeddableChatInner({
|
|
|
3666
3666
|
) }),
|
|
3667
3667
|
aboveComposer != null && aboveComposer !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 px-[var(--spacing-system-m)] pb-[var(--spacing-system-m)]", children: aboveComposer }),
|
|
3668
3668
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3669
|
-
|
|
3669
|
+
_chunkTPH4SRR2cjs.ChatAttachmentChipStrip,
|
|
3670
3670
|
{
|
|
3671
3671
|
attachments: stagedAttachments,
|
|
3672
3672
|
onRemove: removeAttachment,
|
|
@@ -3674,7 +3674,7 @@ function EmbeddableChatInner({
|
|
|
3674
3674
|
}
|
|
3675
3675
|
),
|
|
3676
3676
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3677
|
-
|
|
3677
|
+
_chunkTPH4SRR2cjs.ChatComposer,
|
|
3678
3678
|
{
|
|
3679
3679
|
archived: isViewingArchived,
|
|
3680
3680
|
lock: composerLock,
|
|
@@ -3725,7 +3725,7 @@ function EmbeddableChatInner({
|
|
|
3725
3725
|
),
|
|
3726
3726
|
galleryModal,
|
|
3727
3727
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3728
|
-
|
|
3728
|
+
_chunkTPH4SRR2cjs.ChatDialogModals,
|
|
3729
3729
|
{
|
|
3730
3730
|
renameTarget,
|
|
3731
3731
|
setRenameTarget,
|
|
@@ -3741,13 +3741,13 @@ function EmbeddableChatInner({
|
|
|
3741
3741
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3742
3742
|
] }) }) })
|
|
3743
3743
|
);
|
|
3744
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3744
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkTPH4SRR2cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3745
3745
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3746
3746
|
sourceLabel,
|
|
3747
3747
|
" AI Assistant"
|
|
3748
3748
|
] }) }),
|
|
3749
3749
|
body
|
|
3750
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNTGIQP7Ocjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3750
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNTGIQP7Ocjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3751
3751
|
_chunkNTGIQP7Ocjs.DrawerContent,
|
|
3752
3752
|
{
|
|
3753
3753
|
side: "right",
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _chunkVUWPLQBYcjs = require('../chunk-VUWPLQBY.cjs');
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
@@ -137,7 +137,7 @@ var _chunkKTPR66EEcjs = require('../chunk-KTPR66EE.cjs');
|
|
|
137
137
|
var _chunkDGFDBPO7cjs = require('../chunk-DGFDBPO7.cjs');
|
|
138
138
|
require('../chunk-HOTM4UM6.cjs');
|
|
139
139
|
require('../chunk-UJ7AXHRZ.cjs');
|
|
140
|
-
require('../chunk-
|
|
140
|
+
require('../chunk-KHKPLOU4.cjs');
|
|
141
141
|
require('../chunk-3LU4UFPS.cjs');
|
|
142
142
|
require('../chunk-3ATAYP36.cjs');
|
|
143
143
|
|
|
@@ -245,4 +245,4 @@ require('../chunk-3ATAYP36.cjs');
|
|
|
245
245
|
|
|
246
246
|
|
|
247
247
|
|
|
248
|
-
exports.AGENT_IDENTITIES_API_PATH = _chunkASMNNSUQcjs.AGENT_IDENTITIES_API_PATH; exports.CONTENT_BREAKPOINTS = _chunkR34JD6NPcjs.CONTENT_BREAKPOINTS; exports.ContentAreaWidthContext = _chunkR34JD6NPcjs.ContentAreaWidthContext; exports.DRAG_AND_DROP_MEDIA_QUERY = _chunkLU7TD6QScjs.DRAG_AND_DROP_MEDIA_QUERY; exports.GraphQLIntrospector =
|
|
248
|
+
exports.AGENT_IDENTITIES_API_PATH = _chunkASMNNSUQcjs.AGENT_IDENTITIES_API_PATH; exports.CONTENT_BREAKPOINTS = _chunkR34JD6NPcjs.CONTENT_BREAKPOINTS; exports.ContentAreaWidthContext = _chunkR34JD6NPcjs.ContentAreaWidthContext; exports.DRAG_AND_DROP_MEDIA_QUERY = _chunkLU7TD6QScjs.DRAG_AND_DROP_MEDIA_QUERY; exports.GraphQLIntrospector = _chunkVUWPLQBYcjs.GraphQLIntrospector; exports.NEAR_VIEWPORT_ROOT_MARGIN = _chunkCW3ML76Ucjs.NEAR_VIEWPORT_ROOT_MARGIN; exports.PREFERS_REDUCED_MOTION_QUERY = _chunkCSJO7ZGNcjs.PREFERS_REDUCED_MOTION_QUERY; exports.ViewportBreakpoints = _chunkR34JD6NPcjs.ViewportBreakpoints; exports.batchFetchAuthenticatedImages = _chunkVUWPLQBYcjs.batchFetchAuthenticatedImages; exports.breakpoints = _chunkKTPR66EEcjs.breakpoints; exports.clearAuthedAssetCache = _chunkDGFDBPO7cjs.clearAuthedAssetCache; exports.clearAuthedImageCache = _chunkKTPR66EEcjs.clearAuthedImageCache; exports.clearVariablesParams = _chunkVUWPLQBYcjs.clearParams; exports.coerceValue = _chunkVUWPLQBYcjs.coerceValue; exports.completeFormRescue = _chunkVUWPLQBYcjs.completeFormRescue; exports.configureAuthenticatedImage = _chunkVUWPLQBYcjs.configureAuthenticatedImage; exports.configureBatchImageFetch = _chunkVUWPLQBYcjs.configureBatchImageFetch; exports.contentBreakpointFor = _chunkR34JD6NPcjs.contentBreakpointFor; exports.createSearchParams = _chunkBLH2SFOOcjs.createSearchParams; exports.extractVariablesFromQuery = _chunkVUWPLQBYcjs.extractVariablesFromQuery; exports.flattenQueryVariables = _chunkVUWPLQBYcjs.flattenQueryVariables; exports.getArrayParams = _chunkVUWPLQBYcjs.getArrayParams; exports.getNestedValue = _chunkVUWPLQBYcjs.getNestedValue; exports.getRequiredParams = _chunkVUWPLQBYcjs.getRequiredParams; exports.introspector = _chunkVUWPLQBYcjs.introspector; exports.isInputObjectType = _chunkVUWPLQBYcjs.isInputObjectType; exports.isScalarType = _chunkVUWPLQBYcjs.isScalarType; exports.mergeDefaults = _chunkVUWPLQBYcjs.mergeDefaults; exports.mergeVariables = _chunkVUWPLQBYcjs.mergeVariables; exports.resetDownloadsStore = _chunkVUWPLQBYcjs.resetDownloadsStore; exports.resolveActiveSection = _chunkVUWPLQBYcjs.resolveActiveSection; exports.setNestedValue = _chunkVUWPLQBYcjs.setNestedValue; exports.shouldIncludeInUrl = _chunkBLH2SFOOcjs.shouldIncludeInUrl; exports.toast = _chunkVUWPLQBYcjs.toast; exports.urlParamsToVariables = _chunkVUWPLQBYcjs.urlParamsToVariables; exports.useAccessCodeIntegration = _chunkVUWPLQBYcjs.useAccessCodeIntegration; exports.useActiveSection = _chunkVUWPLQBYcjs.useActiveSection; exports.useAgentIdentities = _chunkASMNNSUQcjs.useAgentIdentities; exports.useApiParams = _chunkVUWPLQBYcjs.useApiParams; exports.useAuthedAssetSrc = _chunkDGFDBPO7cjs.useAuthedAssetSrc; exports.useAuthedImageSrc = _chunkKTPR66EEcjs.useAuthedImageSrc; exports.useAuthenticatedImage = _chunkVUWPLQBYcjs.useAuthenticatedImage; exports.useAutoLimitTags = _chunkA6P6DHEZcjs.useAutoLimitTags; exports.useAutoplay = _chunkCSJO7ZGNcjs.useAutoplay; exports.useBatchImages = _chunkVUWPLQBYcjs.useBatchImages; exports.useClaudeMirrorSrc = _chunkVUWPLQBYcjs.useClaudeMirrorSrc; exports.useContactSubmission = _chunkVUWPLQBYcjs.useContactSubmission; exports.useContentBreakpoint = _chunkR34JD6NPcjs.useContentBreakpoint; exports.useContentLgUp = _chunkR34JD6NPcjs.useContentLgUp; exports.useContentMdUp = _chunkR34JD6NPcjs.useContentMdUp; exports.useCopyToClipboard = _chunkVUWPLQBYcjs.useCopyToClipboard; exports.useCursorPaginationState = _chunkVUWPLQBYcjs.useCursorPaginationState; exports.useDebounce = _chunkCSJO7ZGNcjs.useDebounce; exports.useDeferredError = _chunkVUWPLQBYcjs.useDeferredError; exports.useDownloads = _chunkVUWPLQBYcjs.useDownloads; exports.useDragAndDropEnabled = _chunkLU7TD6QScjs.useDragAndDropEnabled; exports.useFocusTrap = _chunkVUWPLQBYcjs.useFocusTrap; exports.useFormRescue = _chunkVUWPLQBYcjs.useFormRescue; exports.useHeaderHeight = _chunk24I6RFVUcjs.useHeaderHeight; exports.useHorizontalScrollbar = _chunkLU7TD6QScjs.useHorizontalScrollbar; exports.useHumanitySignals = _chunkVUWPLQBYcjs.useHumanitySignals; exports.useImageEdgeColor = _chunkI5MSCD57cjs.useImageEdgeColor; exports.useInView = _chunkCSJO7ZGNcjs.useInView; exports.useIsTruncated = _chunkKTPR66EEcjs.useIsTruncated; exports.useIsomorphicLayoutEffect = _chunkDGFDBPO7cjs.useIsomorphicLayoutEffect; exports.useKeyboardCollisionPadding = _chunkA6P6DHEZcjs.useKeyboardCollisionPadding; exports.useLgUp = _chunkKTPR66EEcjs.useLgUp; exports.useLocalStorage = _chunkLU7TD6QScjs.useLocalStorage; exports.useLocationHash = _chunkVUWPLQBYcjs.useLocationHash; exports.useMarqueeEngine = _chunkCSJO7ZGNcjs.useMarqueeEngine; exports.useMdUp = _chunkKTPR66EEcjs.useMdUp; exports.useMediaQuery = _chunkKTPR66EEcjs.useMediaQuery; exports.useMemoizedCallback = _chunkVUWPLQBYcjs.useMemoizedCallback; exports.useNatsClient = _chunkVUWPLQBYcjs.useNatsClient; exports.useNavMenus = _chunkVUWPLQBYcjs.useNavMenus; exports.useNearViewport = _chunkCW3ML76Ucjs.useNearViewport; exports.useNotificationPermission = _chunkVUWPLQBYcjs.useNotificationPermission; exports.useOgPlaceholderUrl = _chunkI5MSCD57cjs.useOgPlaceholderUrl; exports.useOnboardingState = _chunkVUWPLQBYcjs.useOnboardingState; exports.usePlatformByValue = _chunkVUWPLQBYcjs.usePlatformByValue; exports.usePlatformConfig = _chunkVUWPLQBYcjs.usePlatformConfig; exports.usePrefersReducedMotion = _chunkCSJO7ZGNcjs.usePrefersReducedMotion; exports.usePrefersReducedMotionState = _chunkCSJO7ZGNcjs.usePrefersReducedMotionState; exports.usePreventScroll = _chunkVUWPLQBYcjs.usePreventScroll; exports.useQueryParams = _chunkVUWPLQBYcjs.useQueryParams; exports.useRescuedForm = _chunkVUWPLQBYcjs.useRescuedForm; exports.useResetOnPageHidden = _chunkCSJO7ZGNcjs.useResetOnPageHidden; exports.useResumableTimeout = _chunkVUWPLQBYcjs.useResumableTimeout; exports.useScenarioPlayer = _chunkVUWPLQBYcjs.useScenarioPlayer; exports.useScrollToHash = _chunkVUWPLQBYcjs.useScrollToHash; exports.useSearch = _chunkVUWPLQBYcjs.useSearch; exports.useSmUp = _chunkKTPR66EEcjs.useSmUp; exports.useStickyToolbar = _chunkVUWPLQBYcjs.useStickyToolbar; exports.useSuppressCloneFocus = _chunkCSJO7ZGNcjs.useSuppressCloneFocus; exports.useTablePagination = _chunkVUWPLQBYcjs.useTablePagination; exports.useThrottle = _chunkVUWPLQBYcjs.useThrottle; exports.useToast = _chunkVUWPLQBYcjs.useToast; exports.useValidatePlatform = _chunkVUWPLQBYcjs.useValidatePlatform; exports.useVisitorDesktopDownload = _chunkVUWPLQBYcjs.useVisitorDesktopDownload; exports.useVisitorOs = _chunkW2RM764Dcjs.useVisitorOs; exports.useWindowSize = _chunkVUWPLQBYcjs.useWindowSize; exports.validateSchema = _chunkVUWPLQBYcjs.validateSchema; exports.validateVariables = _chunkVUWPLQBYcjs.validateVariables; exports.variablesToUrlParams = _chunkVUWPLQBYcjs.variablesToUrlParams;
|