@flamingo-stack/openframe-frontend-core 0.0.850 → 0.0.851
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/chat-protocol/events.d.ts +4 -1
- package/dist/chat-protocol/events.d.ts.map +1 -1
- package/dist/chat-protocol/index.cjs +90 -40
- package/dist/chat-protocol/nats-decoder.d.ts.map +1 -1
- package/dist/chat-protocol/nats-decoder.js +5 -1
- package/dist/chat-protocol/policy-review.d.ts +18 -0
- package/dist/chat-protocol/policy-review.d.ts.map +1 -0
- package/dist/chat-protocol/policy-review.js +55 -0
- package/dist/{chunk-ZDSC3GFX.cjs → chunk-2NGW73T2.cjs} +3 -3
- package/dist/{chunk-2QZUTNL3.cjs → chunk-2WZHNMQY.cjs} +67 -67
- package/dist/{chunk-R5JPZ6TY.cjs → chunk-5SEJEBAB.cjs} +8 -8
- package/dist/{chunk-TX4NTH22.cjs → chunk-B6D4WWKD.cjs} +36 -36
- package/dist/{chunk-FXLROQUT.cjs → chunk-CDW6JTAQ.cjs} +442 -459
- package/dist/{chunk-5PIR77V5.cjs → chunk-DN227KZH.cjs} +4 -4
- package/dist/{chunk-QJER2ZNA.cjs → chunk-FGSN5UNY.cjs} +3 -3
- package/dist/{chunk-ZGEWT3SF.cjs → chunk-HXURNKXI.cjs} +3 -3
- package/dist/{chunk-FRG724DU.cjs → chunk-KRTTH3ET.cjs} +4 -4
- package/dist/{chunk-YJZ7R3W5.cjs → chunk-KXFIYO4O.cjs} +8 -8
- package/dist/{chunk-4YBS4HIO.cjs → chunk-LM7EL3UQ.cjs} +444 -27
- package/dist/{chunk-LGYPCUHO.cjs → chunk-NQEPLUUW.cjs} +21 -21
- package/dist/{chunk-OHHDX3Z4.cjs → chunk-ODMZSAIY.cjs} +36 -36
- package/dist/{chunk-VRWBJL7B.cjs → chunk-OUP7L3U5.cjs} +50 -50
- package/dist/{chunk-5CBI2ZYV.cjs → chunk-PJNEBSP5.cjs} +5 -5
- package/dist/{chunk-6AJYGXXS.cjs → chunk-PPCRLSVR.cjs} +11 -11
- package/dist/{chunk-SA2NNWIJ.cjs → chunk-QCSA7GIX.cjs} +17 -62
- package/dist/{chunk-JWIITCVB.cjs → chunk-SPKAXETT.cjs} +42 -42
- package/dist/{chunk-CAGNWDVJ.cjs → chunk-U4RTWH5D.cjs} +42 -42
- package/dist/{chunk-IHY7E4EX.cjs → chunk-UFGPLXH6.cjs} +4 -4
- package/dist/{chunk-7ICHJVAT.cjs → chunk-UQK6J3ZS.cjs} +13 -13
- package/dist/{chunk-S3QXLD4X.cjs → chunk-VCFQHPOO.cjs} +37 -3
- package/dist/{chunk-IPGGSFR7.cjs → chunk-VU6N3NZS.cjs} +6 -6
- package/dist/{chunk-GAYLAA3L.cjs → chunk-VXIZCUNZ.cjs} +61 -61
- package/dist/{chunk-3W4ASAXN.cjs → chunk-WYROOMUZ.cjs} +2 -2
- package/dist/{chunk-XKOL5CNU.cjs → chunk-ZEPEFKHA.cjs} +811 -932
- package/dist/{cloud-tenants-TVB3DT3J.cjs → cloud-tenants-XH6GV4EI.cjs} +12 -13
- package/dist/components/case-studies/index.cjs +24 -25
- package/dist/components/chat/approval-batch-message.d.ts +5 -0
- package/dist/components/chat/approval-batch-message.d.ts.map +1 -1
- package/dist/components/chat/approval-batch-message.js +36 -10
- package/dist/components/chat/index.cjs +8 -9
- package/dist/components/chat/policy-review.d.ts +27 -0
- package/dist/components/chat/policy-review.d.ts.map +1 -0
- package/dist/components/chat/policy-review.js +67 -0
- package/dist/components/chat/stream/message-mutations.d.ts.map +1 -1
- package/dist/components/chat/stream/message-mutations.js +4 -1
- package/dist/components/chat/tool-execution-display.d.ts.map +1 -1
- package/dist/components/chat/tool-execution-display.js +16 -5
- package/dist/components/chat/types/message.types.d.ts +40 -2
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/utils/extract-incomplete-message-state.d.ts.map +1 -1
- package/dist/components/chat/utils/extract-incomplete-message-state.js +2 -0
- package/dist/components/chat/utils/message-segment-accumulator.d.ts.map +1 -1
- package/dist/components/chat/utils/message-segment-accumulator.js +3 -0
- package/dist/components/chat/utils/process-historical-messages.d.ts +2 -2
- package/dist/components/chat/utils/process-historical-messages.d.ts.map +1 -1
- package/dist/components/chat/utils/process-historical-messages.js +7 -1
- package/dist/components/contact/index.cjs +13 -14
- package/dist/components/docs/index.cjs +16 -17
- package/dist/components/embeds/index.cjs +13 -14
- package/dist/components/faq/index.cjs +14 -15
- package/dist/components/features/approval-level.d.ts +6 -12
- package/dist/components/features/approval-level.d.ts.map +1 -1
- package/dist/components/features/approval-level.js +45 -55
- package/dist/components/features/index.cjs +16 -16
- package/dist/components/features/notifications/approval-request-notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/approval-request-notification-tile.js +71 -48
- package/dist/components/features/notifications/types.d.ts +2 -0
- package/dist/components/features/notifications/types.d.ts.map +1 -1
- package/dist/components/features/notifications/types.js +3 -1
- package/dist/components/features/policy-configuration-panel.d.ts.map +1 -1
- package/dist/components/features/policy-configuration-panel.js +75 -64
- package/dist/components/help-center-pages/index.cjs +78 -79
- package/dist/components/index.cjs +57 -59
- package/dist/components/meeting-scheduler/index.cjs +61 -61
- package/dist/components/navigation/index.cjs +15 -16
- package/dist/components/onboarding-guides/index.cjs +14 -15
- package/dist/components/product-demo/index.cjs +23 -24
- package/dist/components/tickets/index.cjs +17 -18
- package/dist/components/ui/file-manager/index.cjs +8 -9
- package/dist/components/ui/index.cjs +16 -18
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +8 -2
- package/dist/components/ui/tab-selector.d.ts +7 -1
- package/dist/components/ui/tab-selector.d.ts.map +1 -1
- package/dist/components/ui/tab-selector.js +22 -3
- package/dist/{devices-NGCTSXIU.cjs → devices-7PT6MPJI.cjs} +13 -14
- package/dist/{embeddable-chat-322NDFP5.cjs → embeddable-chat-5NY76K7K.cjs} +84 -85
- package/dist/index.cjs +23 -25
- package/dist/{knowledge-75PO5DYS.cjs → knowledge-J6N7IEVI.cjs} +13 -14
- package/dist/{logs-PZESOAIG.cjs → logs-D6KQP2BX.cjs} +19 -20
- package/dist/{policies-6XNMBFWO.cjs → policies-J7MCOL3C.cjs} +16 -17
- package/dist/{remote-session-Q2FIBCGT.cjs → remote-session-PXHA5KFK.cjs} +8 -9
- package/dist/{scripts-B3JW6TPF.cjs → scripts-VURXIHVS.cjs} +19 -20
- package/dist/{software-update-NWP542J7.cjs → software-update-6SHUBDIE.cjs} +16 -17
- package/dist/{tickets-board-7FLGQEHF.cjs → tickets-board-NLCN7WNX.cjs} +9 -9
- package/package.json +1 -1
- package/src/chat-protocol/events.ts +4 -1
- package/src/chat-protocol/nats-decoder.ts +4 -0
- package/src/chat-protocol/policy-review.ts +71 -0
- package/src/components/chat/approval-batch-message.tsx +47 -10
- package/src/components/chat/policy-review.tsx +90 -0
- package/src/components/chat/stream/message-mutations.ts +4 -0
- package/src/components/chat/tool-execution-display.tsx +23 -4
- package/src/components/chat/types/message.types.ts +42 -2
- package/src/components/chat/utils/extract-incomplete-message-state.ts +2 -0
- package/src/components/chat/utils/message-segment-accumulator.ts +3 -0
- package/src/components/chat/utils/process-historical-messages.ts +14 -3
- package/src/components/features/approval-level.tsx +74 -78
- package/src/components/features/notifications/approval-request-notification-tile.tsx +75 -50
- package/src/components/features/notifications/types.ts +4 -0
- package/src/components/features/policy-configuration-panel.tsx +100 -83
- package/src/components/ui/radio-group.tsx +20 -2
- package/src/components/ui/tab-selector.tsx +26 -3
- package/dist/chunk-N3MBQRCQ.cjs +0 -41
|
@@ -18,18 +18,18 @@ var _chunkOT6P57ZScjs = require('./chunk-OT6P57ZS.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkCDW6JTAQcjs = require('./chunk-CDW6JTAQ.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkWYROOMUZcjs = require('./chunk-WYROOMUZ.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkLM7EL3UQcjs = require('./chunk-LM7EL3UQ.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunk3XTNLCTCcjs = require('./chunk-3XTNLCTC.cjs');
|
|
@@ -170,10 +170,10 @@ var _chunkGG466XFQcjs = require('./chunk-GG466XFQ.cjs');
|
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
|
|
173
|
-
var
|
|
173
|
+
var _chunkHXURNKXIcjs = require('./chunk-HXURNKXI.cjs');
|
|
174
174
|
|
|
175
175
|
|
|
176
|
-
var
|
|
176
|
+
var _chunkVCFQHPOOcjs = require('./chunk-VCFQHPOO.cjs');
|
|
177
177
|
|
|
178
178
|
|
|
179
179
|
|
|
@@ -2270,7 +2270,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2270
2270
|
if (heading.level > opts.maxLevel) continue;
|
|
2271
2271
|
let title = heading.text;
|
|
2272
2272
|
if (opts.stripFormattingMarkers) {
|
|
2273
|
-
title =
|
|
2273
|
+
title = _chunkCDW6JTAQcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2274
2274
|
}
|
|
2275
2275
|
const baseId = _chunkGRCOEICKcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkGRCOEICKcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2276
2276
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2527,7 +2527,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2527
2527
|
function openAskAi(source, options) {
|
|
2528
2528
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2529
2529
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2530
|
-
window.dispatchEvent(new CustomEvent(
|
|
2530
|
+
window.dispatchEvent(new CustomEvent(_chunkCDW6JTAQcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2531
2531
|
}
|
|
2532
2532
|
function MingoAiButton({
|
|
2533
2533
|
source,
|
|
@@ -2570,7 +2570,7 @@ function MingoAiButton({
|
|
|
2570
2570
|
{
|
|
2571
2571
|
...props,
|
|
2572
2572
|
type: "button",
|
|
2573
|
-
...{ [
|
|
2573
|
+
...{ [_chunkCDW6JTAQcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2574
2574
|
variant: field ? "glyph" : "transparent",
|
|
2575
2575
|
size: "wrap",
|
|
2576
2576
|
font: "regular",
|
|
@@ -2595,7 +2595,7 @@ function MingoAiButton({
|
|
|
2595
2595
|
),
|
|
2596
2596
|
children: [
|
|
2597
2597
|
!field && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2598
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2598
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCDW6JTAQcjs.MingoEdgeLight, { className: "rounded-md" }),
|
|
2599
2599
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 overflow-hidden rounded-md", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2600
2600
|
"span",
|
|
2601
2601
|
{
|
|
@@ -2616,7 +2616,7 @@ function MingoAiButton({
|
|
|
2616
2616
|
children: icon
|
|
2617
2617
|
}
|
|
2618
2618
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2619
|
-
|
|
2619
|
+
_chunkLM7EL3UQcjs.AgentMark,
|
|
2620
2620
|
{
|
|
2621
2621
|
agent: "mingo",
|
|
2622
2622
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative shrink-0 text-ods-text-primary", field ? "size-6" : "size-5")
|
|
@@ -2788,7 +2788,7 @@ function useAskSurface({
|
|
|
2788
2788
|
// src/components/chat/ask-prompts.tsx
|
|
2789
2789
|
|
|
2790
2790
|
function AssistantGlyph({ icon, className }) {
|
|
2791
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full", className), children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2791
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full", className), children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLM7EL3UQcjs.AgentMark, { agent: "mingo", className: "size-full" }))) });
|
|
2792
2792
|
}
|
|
2793
2793
|
var slotCount = (count, loading, prompts) => _nullishCoalesce(count, () => ( (loading ? ASK_PROMPTS_DEFAULT_COUNT : prompts.length)));
|
|
2794
2794
|
var SKELETON_LABEL_CH = [26, 22, 30, 24, 20, 28];
|
|
@@ -2811,9 +2811,9 @@ function QuestionChips({
|
|
|
2811
2811
|
{
|
|
2812
2812
|
"data-loading-item": true,
|
|
2813
2813
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2814
|
-
...prompt ? { [
|
|
2814
|
+
...prompt ? { [_chunkCDW6JTAQcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2815
2815
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2816
|
-
|
|
2816
|
+
_chunkCDW6JTAQcjs.QuickActionChipButton,
|
|
2817
2817
|
{
|
|
2818
2818
|
loading,
|
|
2819
2819
|
variant: "question",
|
|
@@ -2851,7 +2851,7 @@ function AskPrompts({
|
|
|
2851
2851
|
if (!loading && prompts.length === 0) return null;
|
|
2852
2852
|
const end = align === "end";
|
|
2853
2853
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2854
|
-
|
|
2854
|
+
_chunkWYROOMUZcjs.ScrollShadow,
|
|
2855
2855
|
{
|
|
2856
2856
|
axis: "horizontal",
|
|
2857
2857
|
color: fadeColor,
|
|
@@ -3024,7 +3024,7 @@ function QuickActionMarquee({
|
|
|
3024
3024
|
);
|
|
3025
3025
|
if (items.length === 0) return null;
|
|
3026
3026
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3027
|
-
|
|
3027
|
+
_chunkCDW6JTAQcjs.QuickActionWall,
|
|
3028
3028
|
{
|
|
3029
3029
|
chips,
|
|
3030
3030
|
mode,
|
|
@@ -3057,13 +3057,13 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3057
3057
|
({ className, ticket, onClick, loading: loadingProp = false, ...props }, ref) => {
|
|
3058
3058
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3059
3059
|
if (!loading && !ticket) return null;
|
|
3060
|
-
const statusTagProps = ticket ?
|
|
3060
|
+
const statusTagProps = ticket ? _chunkLM7EL3UQcjs.resolveStatusTagProps.call(void 0, {
|
|
3061
3061
|
status: ticket.status,
|
|
3062
3062
|
statusKind: ticket.statusKind,
|
|
3063
3063
|
statusName: ticket.statusLabel,
|
|
3064
3064
|
statusColor: ticket.statusColor
|
|
3065
3065
|
}) : null;
|
|
3066
|
-
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" ||
|
|
3066
|
+
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" || _chunkLM7EL3UQcjs.resolveTicketStatus.call(void 0, ticket.status) === "RESOLVED");
|
|
3067
3067
|
const composedSubtitle = ticket ? [ticket.ticketNumber, ticket.category, ticket.timeAgo].filter(Boolean).join(" \u2022 ") : "";
|
|
3068
3068
|
const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess', _125 => _125.subtitle]), () => ( (_optionalChain([ticket, 'optionalAccess', _126 => _126.unread]) ? UNREAD_NOTICE : composedSubtitle)));
|
|
3069
3069
|
const unread = !!_optionalChain([ticket, 'optionalAccess', _127 => _127.unread]);
|
|
@@ -3099,7 +3099,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3099
3099
|
className: "hidden shrink-0 sm:inline-flex"
|
|
3100
3100
|
}
|
|
3101
3101
|
),
|
|
3102
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3102
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLM7EL3UQcjs.TicketStatusTag, { status: "", loading: true, className: "w-20" }) : statusTagProps && (statusTagProps.status || statusTagProps.label) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLM7EL3UQcjs.TicketStatusTag, { ...statusTagProps }),
|
|
3103
3103
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3104
3104
|
"div",
|
|
3105
3105
|
{
|
|
@@ -3144,7 +3144,7 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3144
3144
|
...props
|
|
3145
3145
|
}, ref) => {
|
|
3146
3146
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingProp;
|
|
3147
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
3147
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkWYROOMUZcjs.useScrollFade.call(void 0, );
|
|
3148
3148
|
if (!isLoading && tickets.length === 0) return null;
|
|
3149
3149
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-h-0 flex-col gap-2", className), ...props, children: [
|
|
3150
3150
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h5", children: "Your Chats:" }),
|
|
@@ -3158,8 +3158,8 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3158
3158
|
),
|
|
3159
3159
|
children: [
|
|
3160
3160
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: scrollRef, className: "h-full overflow-y-auto overscroll-contain", onScroll: updateFade, children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: skeletonCount, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTicketItem, { loading: true, "data-loading-item": true }) }) : tickets.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTicketItem, { ticket, onClick: onTicketClick, "data-loading-item": true }, ticket.id)) }),
|
|
3161
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3162
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3161
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWYROOMUZcjs.ScrollFadeOverlay, { edge: "top", visible: !isLoading && fadeTop }),
|
|
3162
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWYROOMUZcjs.ScrollFadeOverlay, { edge: "bottom", visible: !isLoading && fadeBottom })
|
|
3163
3163
|
]
|
|
3164
3164
|
}
|
|
3165
3165
|
)
|
|
@@ -3270,7 +3270,7 @@ function ComposerSheet({
|
|
|
3270
3270
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "left" }),
|
|
3271
3271
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "right" }),
|
|
3272
3272
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3273
|
-
|
|
3273
|
+
_chunkCDW6JTAQcjs.PanelResizeHandle,
|
|
3274
3274
|
{
|
|
3275
3275
|
side: "bottom",
|
|
3276
3276
|
size: _nullishCoalesce(resolved, () => ( floor)),
|
|
@@ -3373,7 +3373,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3373
3373
|
hasNextPage,
|
|
3374
3374
|
isFetchingNextPage,
|
|
3375
3375
|
onLoadMore,
|
|
3376
|
-
pageSize =
|
|
3376
|
+
pageSize = _chunkCDW6JTAQcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3377
3377
|
...props
|
|
3378
3378
|
}, ref) => {
|
|
3379
3379
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3671,7 +3671,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3671
3671
|
label = "Loading",
|
|
3672
3672
|
region = true
|
|
3673
3673
|
}) {
|
|
3674
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3674
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCDW6JTAQcjs.LoadingFallback, { label, status: region, className: _chunk63A4GZMBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3675
3675
|
}
|
|
3676
3676
|
function AdminContentCardGrid({
|
|
3677
3677
|
items,
|
|
@@ -5184,9 +5184,9 @@ function Field({ label, hint, required, children, error, labelExtras, labelEnd }
|
|
|
5184
5184
|
};
|
|
5185
5185
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
5186
5186
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5", children: [
|
|
5187
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5187
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVCFQHPOOcjs.Label, { htmlFor: controlId, children: [
|
|
5188
5188
|
label,
|
|
5189
|
-
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5189
|
+
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHXURNKXIcjs.RequiredMark, {})
|
|
5190
5190
|
] }),
|
|
5191
5191
|
hint && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoHint, { label, children: hint }),
|
|
5192
5192
|
labelExtras,
|
|
@@ -5263,7 +5263,7 @@ function Section({ title, description, children }) {
|
|
|
5263
5263
|
] });
|
|
5264
5264
|
}
|
|
5265
5265
|
function ProxyCredentialsPanel({ description }) {
|
|
5266
|
-
const hydrated =
|
|
5266
|
+
const hydrated = _chunkCDW6JTAQcjs.useIsHydrated.call(void 0, );
|
|
5267
5267
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5268
5268
|
ProxyCredentialsForm,
|
|
5269
5269
|
{
|
|
@@ -5346,7 +5346,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5346
5346
|
hint: "A SERVICE key may act as anyone; a personal key only as its owner.",
|
|
5347
5347
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: "Authorization" }),
|
|
5348
5348
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5349
|
-
|
|
5349
|
+
_chunkHXURNKXIcjs.Input,
|
|
5350
5350
|
{
|
|
5351
5351
|
...props,
|
|
5352
5352
|
type: "password",
|
|
@@ -5367,7 +5367,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5367
5367
|
hint: "The end user the requests run as.",
|
|
5368
5368
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: "X-Chat-Act-As" }),
|
|
5369
5369
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5370
|
-
|
|
5370
|
+
_chunkHXURNKXIcjs.Input,
|
|
5371
5371
|
{
|
|
5372
5372
|
...props,
|
|
5373
5373
|
type: "email",
|
|
@@ -5393,7 +5393,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5393
5393
|
error: _nullishCoalesce(errors[field], () => ( null)),
|
|
5394
5394
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: header }),
|
|
5395
5395
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5396
|
-
|
|
5396
|
+
_chunkHXURNKXIcjs.Input,
|
|
5397
5397
|
{
|
|
5398
5398
|
...props,
|
|
5399
5399
|
type: _nullishCoalesce(copy.type, () => ( "text")),
|
|
@@ -5427,12 +5427,12 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5427
5427
|
|
|
5428
5428
|
// src/components/chat/index.ts
|
|
5429
5429
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5430
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5430
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-5NY76K7K.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5431
5431
|
);
|
|
5432
5432
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5433
5433
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5434
5434
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5435
|
-
_react.useEffect.call(void 0, () =>
|
|
5435
|
+
_react.useEffect.call(void 0, () => _chunkCDW6JTAQcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5436
5436
|
const { loadStyles } = props;
|
|
5437
5437
|
_react.useEffect.call(void 0, () => {
|
|
5438
5438
|
if (load) _optionalChain([loadStyles, 'optionalCall', _204 => _204()]);
|
|
@@ -5440,12 +5440,12 @@ var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
|
5440
5440
|
_react.useEffect.call(void 0, () => {
|
|
5441
5441
|
if (load) return void 0;
|
|
5442
5442
|
const start = () => setLoadRequested(true);
|
|
5443
|
-
if (
|
|
5444
|
-
for (const name of
|
|
5445
|
-
const cancel =
|
|
5443
|
+
if (_chunkCDW6JTAQcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5444
|
+
for (const name of _chunkCDW6JTAQcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5445
|
+
const cancel = _chunkCDW6JTAQcjs.onAskAiIntent.call(void 0, start);
|
|
5446
5446
|
return () => {
|
|
5447
5447
|
cancel();
|
|
5448
|
-
for (const name of
|
|
5448
|
+
for (const name of _chunkCDW6JTAQcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5449
5449
|
};
|
|
5450
5450
|
}, [load]);
|
|
5451
5451
|
if (!load) return null;
|