@flamingo-stack/openframe-frontend-core 0.0.829 → 0.0.830
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/{chunk-DU6AF77X.cjs → chunk-2BGLALP5.cjs} +14 -14
- package/dist/{chunk-MFYSV7DE.cjs → chunk-56EP4QM2.cjs} +24 -24
- package/dist/{chunk-IHRMX3X6.cjs → chunk-5KSPG3TV.cjs} +357 -357
- package/dist/{chunk-UO6F6LLI.cjs → chunk-5LED4QHZ.cjs} +508 -451
- package/dist/{chunk-IMDYB77M.cjs → chunk-CAGQAMJ6.cjs} +21 -21
- package/dist/{chunk-4DUVTJ6A.cjs → chunk-D2LXFMZI.cjs} +22 -22
- package/dist/{chunk-LNXRTVOY.cjs → chunk-DUGOOTER.cjs} +11 -11
- package/dist/{chunk-R3PKAIX3.cjs → chunk-E6W4YDPS.cjs} +2 -2
- package/dist/{chunk-AH4YWTWZ.cjs → chunk-FFFN4IY2.cjs} +5 -5
- package/dist/{chunk-THPAGFT6.cjs → chunk-HYCMMECU.cjs} +44 -44
- package/dist/{chunk-UE5ZBCJ4.cjs → chunk-HYGWRUEM.cjs} +3 -3
- package/dist/{chunk-ZJXLNIWC.cjs → chunk-M75723HD.cjs} +8 -8
- package/dist/{chunk-IBQ3CSKL.cjs → chunk-PUXYAHH3.cjs} +3 -3
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-QTLWU6FY.cjs} +5 -5
- package/dist/{chunk-HMC2IWV4.cjs → chunk-RRPID7Z7.cjs} +6 -6
- package/dist/{chunk-6WNSZ5XP.cjs → chunk-SAW7V7CU.cjs} +13 -13
- package/dist/{chunk-4ZIKDOPY.cjs → chunk-TUMSVFVS.cjs} +4 -4
- package/dist/{chunk-DWSU35QQ.cjs → chunk-ULF4ZOUM.cjs} +57 -57
- package/dist/{chunk-IFLGIBFZ.cjs → chunk-WCCE4WF3.cjs} +50 -50
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-WWDNLMB7.cjs} +16 -16
- package/dist/{chunk-PRZAEPGG.cjs → chunk-WZYBUJJG.cjs} +41 -41
- package/dist/{chunk-YHQDB5QJ.cjs → chunk-X425BGXS.cjs} +2 -2
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{cloud-tenants-YVCSVVIS.cjs → cloud-tenants-4KQQPXPM.cjs} +9 -9
- package/dist/components/case-studies/index.cjs +21 -21
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +21 -14
- package/dist/components/chat/guide-welcome.d.ts +5 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +4 -29
- package/dist/components/chat/index.cjs +9 -5
- package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +105 -19
- package/dist/components/chat/mingo-welcome.d.ts +6 -13
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +5 -9
- package/dist/components/chat/quick-action-chip.d.ts +8 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +18 -8
- package/dist/components/contact/index.cjs +10 -10
- package/dist/components/docs/index.cjs +13 -13
- package/dist/components/embeds/index.cjs +10 -10
- package/dist/components/faq/index.cjs +11 -11
- package/dist/components/features/index.cjs +9 -9
- package/dist/components/help-center-pages/index.cjs +71 -71
- package/dist/components/index.cjs +47 -43
- package/dist/components/meeting-scheduler/index.cjs +41 -41
- package/dist/components/navigation/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +27 -1
- package/dist/components/ui/index.cjs +13 -9
- package/dist/{devices-AW6BERJF.cjs → devices-H6C4NMIY.cjs} +10 -10
- package/dist/{embeddable-chat-ZJIOMMSA.cjs → embeddable-chat-KUESE7P6.cjs} +104 -97
- package/dist/index.cjs +17 -13
- package/dist/{knowledge-PEOXTIVS.cjs → knowledge-O6IBO5Y5.cjs} +10 -10
- package/dist/{logs-CYA7H4KM.cjs → logs-Y2UCF24Z.cjs} +16 -16
- package/dist/{policies-M6QSFL5G.cjs → policies-J6O3RLJT.cjs} +13 -13
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-RVTFWSU4.cjs} +5 -5
- package/dist/{scripts-Y46ECDDP.cjs → scripts-N67MM4T2.cjs} +16 -16
- package/dist/{software-update-OTC2DGQZ.cjs → software-update-HB7F6KNG.cjs} +13 -13
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-2K3PBCNW.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +29 -45
- package/src/components/chat/guide-welcome.tsx +12 -57
- package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
- package/src/components/chat/mingo-welcome.tsx +16 -35
- package/src/components/chat/quick-action-chip.tsx +32 -8
- package/src/components/ui/actions-menu.tsx +35 -1
|
@@ -19,7 +19,7 @@ var _chunkIBD2FPSXcjs = require('./chunk-IBD2FPSX.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkYJZ7R3W5cjs = require('./chunk-YJZ7R3W5.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunk2NETL2MScjs = require('./chunk-2NETL2MS.cjs');
|
|
@@ -1044,9 +1044,9 @@ function renderActionButton(action, opts = {}) {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
const button = renderRawActionButton(action, opts);
|
|
1046
1046
|
if (!action.tooltip) return button;
|
|
1047
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1048
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1049
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1047
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
1048
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: button }),
|
|
1049
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { children: action.tooltip })
|
|
1050
1050
|
] }) });
|
|
1051
1051
|
}
|
|
1052
1052
|
function renderRawActionButton(action, opts = {}) {
|
|
@@ -1070,7 +1070,7 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
if (action.submenu && action.submenu.length > 0) {
|
|
1072
1072
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1073
|
-
|
|
1073
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
1074
1074
|
{
|
|
1075
1075
|
groups: [{ items: action.submenu }],
|
|
1076
1076
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1189,9 +1189,9 @@ function IconButtonsVariant({
|
|
|
1189
1189
|
selector,
|
|
1190
1190
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, actionKey(action, idx))),
|
|
1191
1191
|
unknownSet && desktopActions.length === 0 && !hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }),
|
|
1192
|
-
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1192
|
+
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.ActionsMenuDropdown, { groups: menuActions, loading })
|
|
1193
1193
|
] }),
|
|
1194
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex content-md:hidden", className), children: useSingleActionMobile && singleAction ? renderActionButton(singleAction, { iconOnly: true, inert: loading }) : hasMobileMenuItems ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1194
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex content-md:hidden", className), children: useSingleActionMobile && singleAction ? renderActionButton(singleAction, { iconOnly: true, inert: loading }) : hasMobileMenuItems ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.ActionsMenuDropdown, { groups: mobileMenuGroups, loading }) : unknownSet ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }) : null })
|
|
1195
1195
|
] });
|
|
1196
1196
|
}
|
|
1197
1197
|
function PrimaryButtonsVariant({
|
|
@@ -1235,7 +1235,7 @@ function MenuPrimaryVariant({
|
|
|
1235
1235
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1236
1236
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "hidden items-center content-md:flex", ACTIONS_GAP, className), children: [
|
|
1237
1237
|
selector,
|
|
1238
|
-
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1238
|
+
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.ActionsMenuDropdown, { groups: menuActions, loading }),
|
|
1239
1239
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton({ ...action, variant: action.variant || "accent" }, { inert: loading }) }, `desktop-${actionKey(action, idx)}`)),
|
|
1240
1240
|
unknownSet && desktopActions.length === 0 && !hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" })
|
|
1241
1241
|
] }),
|
|
@@ -1243,7 +1243,7 @@ function MenuPrimaryVariant({
|
|
|
1243
1243
|
// The selector rides into the menu as its header row: on mobile the
|
|
1244
1244
|
// title row has no room for it, and hiding it entirely (what
|
|
1245
1245
|
// `icon-buttons` does) would leave no way to switch views at all.
|
|
1246
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1246
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.ActionsMenuDropdown, { groups: mobileMenuGroups, header: selector, loading })
|
|
1247
1247
|
) : unknownSet ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }) : null })
|
|
1248
1248
|
] });
|
|
1249
1249
|
}
|
|
@@ -1253,7 +1253,7 @@ function CompactPrimaryActions({ actions, loading: loadingProp }) {
|
|
|
1253
1253
|
const fold = foldable.length > 1;
|
|
1254
1254
|
const inline = fold ? actions.filter((action) => !foldable.includes(action)) : actions;
|
|
1255
1255
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1256
|
-
fold && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1256
|
+
fold && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.ActionsMenuDropdown, { groups: [{ items: foldable.flatMap(actionToMenuItems) }], loading }),
|
|
1257
1257
|
inline.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, `compact-${actionKey(action, idx)}`))
|
|
1258
1258
|
] });
|
|
1259
1259
|
}
|
|
@@ -2313,7 +2313,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2313
2313
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
2314
2314
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h6", children: deviceName }),
|
|
2315
2315
|
displayMenuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2316
|
-
|
|
2316
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
2317
2317
|
{
|
|
2318
2318
|
groups: displayMenuGroups,
|
|
2319
2319
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", size: "small", type: "button", "aria-label": "Switch display", className: "shrink-0", children: [
|
|
@@ -2336,7 +2336,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2336
2336
|
}
|
|
2337
2337
|
),
|
|
2338
2338
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2339
|
-
|
|
2339
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
2340
2340
|
{
|
|
2341
2341
|
groups: actionsMenuGroups,
|
|
2342
2342
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2441,7 +2441,7 @@ function RemoteDesktopView({
|
|
|
2441
2441
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only content-md:not-sr-only", children: chatOpen ? "Close Chat" : "Open Chat" })
|
|
2442
2442
|
}
|
|
2443
2443
|
),
|
|
2444
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2444
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.ActionsMenuDropdown, { groups: actionsMenuGroups, triggerAriaLabel: "Actions" }),
|
|
2445
2445
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2446
2446
|
_chunkFCZAUK4Dcjs.Button,
|
|
2447
2447
|
{
|
|
@@ -2465,7 +2465,7 @@ function RemoteDesktopView({
|
|
|
2465
2465
|
] })
|
|
2466
2466
|
] }),
|
|
2467
2467
|
displayMenuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-t border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2468
|
-
|
|
2468
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
2469
2469
|
{
|
|
2470
2470
|
groups: displayMenuGroups,
|
|
2471
2471
|
align: "start",
|
|
@@ -18,7 +18,7 @@ var _chunkOT6P57ZScjs = require('./chunk-OT6P57ZS.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk5LED4QHZcjs = require('./chunk-5LED4QHZ.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -29,7 +29,7 @@ var _chunkIBD2FPSXcjs = require('./chunk-IBD2FPSX.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkQTLWU6FYcjs = require('./chunk-QTLWU6FY.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunk3XTNLCTCcjs = require('./chunk-3XTNLCTC.cjs');
|
|
@@ -2253,7 +2253,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2253
2253
|
if (heading.level > opts.maxLevel) continue;
|
|
2254
2254
|
let title = heading.text;
|
|
2255
2255
|
if (opts.stripFormattingMarkers) {
|
|
2256
|
-
title =
|
|
2256
|
+
title = _chunk5LED4QHZcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2257
2257
|
}
|
|
2258
2258
|
const baseId = _chunkW4VEDSAXcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkW4VEDSAXcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2259
2259
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2510,7 +2510,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2510
2510
|
function openAskAi(source, options) {
|
|
2511
2511
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2512
2512
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2513
|
-
window.dispatchEvent(new CustomEvent(
|
|
2513
|
+
window.dispatchEvent(new CustomEvent(_chunk5LED4QHZcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2514
2514
|
}
|
|
2515
2515
|
function MingoAiButton({
|
|
2516
2516
|
source,
|
|
@@ -2553,7 +2553,7 @@ function MingoAiButton({
|
|
|
2553
2553
|
{
|
|
2554
2554
|
...props,
|
|
2555
2555
|
type: "button",
|
|
2556
|
-
...{ [
|
|
2556
|
+
...{ [_chunk5LED4QHZcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2557
2557
|
variant: field ? "glyph" : "transparent",
|
|
2558
2558
|
size: "wrap",
|
|
2559
2559
|
font: "regular",
|
|
@@ -2578,7 +2578,7 @@ function MingoAiButton({
|
|
|
2578
2578
|
),
|
|
2579
2579
|
children: [
|
|
2580
2580
|
!field && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2581
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2581
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.MingoEdgeLight, { className: "rounded-md" }),
|
|
2582
2582
|
/* @__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,
|
|
2583
2583
|
"span",
|
|
2584
2584
|
{
|
|
@@ -2599,7 +2599,7 @@ function MingoAiButton({
|
|
|
2599
2599
|
children: icon
|
|
2600
2600
|
}
|
|
2601
2601
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2602
|
-
|
|
2602
|
+
_chunkQTLWU6FYcjs.AgentMark,
|
|
2603
2603
|
{
|
|
2604
2604
|
agent: "mingo",
|
|
2605
2605
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative shrink-0 text-ods-text-primary", field ? "size-6" : "size-5")
|
|
@@ -2771,7 +2771,7 @@ function useAskSurface({
|
|
|
2771
2771
|
// src/components/chat/ask-prompts.tsx
|
|
2772
2772
|
|
|
2773
2773
|
function AssistantGlyph({ icon, className }) {
|
|
2774
|
-
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,
|
|
2774
|
+
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, _chunkQTLWU6FYcjs.AgentMark, { agent: "mingo", className: "size-full" }))) });
|
|
2775
2775
|
}
|
|
2776
2776
|
var slotCount = (count, loading, prompts) => _nullishCoalesce(count, () => ( (loading ? ASK_PROMPTS_DEFAULT_COUNT : prompts.length)));
|
|
2777
2777
|
var SKELETON_LABEL_CH = [26, 22, 30, 24, 20, 28];
|
|
@@ -2794,9 +2794,9 @@ function QuestionChips({
|
|
|
2794
2794
|
{
|
|
2795
2795
|
"data-loading-item": true,
|
|
2796
2796
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2797
|
-
...prompt ? { [
|
|
2797
|
+
...prompt ? { [_chunk5LED4QHZcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2798
2798
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2799
|
-
|
|
2799
|
+
_chunk5LED4QHZcjs.QuickActionChipButton,
|
|
2800
2800
|
{
|
|
2801
2801
|
loading,
|
|
2802
2802
|
variant: "question",
|
|
@@ -3007,7 +3007,7 @@ function QuickActionMarquee({
|
|
|
3007
3007
|
);
|
|
3008
3008
|
if (items.length === 0) return null;
|
|
3009
3009
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3010
|
-
|
|
3010
|
+
_chunk5LED4QHZcjs.QuickActionWall,
|
|
3011
3011
|
{
|
|
3012
3012
|
chips,
|
|
3013
3013
|
mode,
|
|
@@ -3040,13 +3040,13 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3040
3040
|
({ className, ticket, onClick, loading: loadingProp = false, ...props }, ref) => {
|
|
3041
3041
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3042
3042
|
if (!loading && !ticket) return null;
|
|
3043
|
-
const statusTagProps = ticket ?
|
|
3043
|
+
const statusTagProps = ticket ? _chunkQTLWU6FYcjs.resolveStatusTagProps.call(void 0, {
|
|
3044
3044
|
status: ticket.status,
|
|
3045
3045
|
statusKind: ticket.statusKind,
|
|
3046
3046
|
statusName: ticket.statusLabel,
|
|
3047
3047
|
statusColor: ticket.statusColor
|
|
3048
3048
|
}) : null;
|
|
3049
|
-
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" ||
|
|
3049
|
+
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" || _chunkQTLWU6FYcjs.resolveTicketStatus.call(void 0, ticket.status) === "RESOLVED");
|
|
3050
3050
|
const composedSubtitle = ticket ? [ticket.ticketNumber, ticket.category, ticket.timeAgo].filter(Boolean).join(" \u2022 ") : "";
|
|
3051
3051
|
const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess', _125 => _125.subtitle]), () => ( (_optionalChain([ticket, 'optionalAccess', _126 => _126.unread]) ? UNREAD_NOTICE : composedSubtitle)));
|
|
3052
3052
|
const unread = !!_optionalChain([ticket, 'optionalAccess', _127 => _127.unread]);
|
|
@@ -3082,7 +3082,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3082
3082
|
className: "hidden shrink-0 sm:inline-flex"
|
|
3083
3083
|
}
|
|
3084
3084
|
),
|
|
3085
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3085
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.TicketStatusTag, { status: "", loading: true, className: "w-20" }) : statusTagProps && (statusTagProps.status || statusTagProps.label) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.TicketStatusTag, { ...statusTagProps }),
|
|
3086
3086
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3087
3087
|
"div",
|
|
3088
3088
|
{
|
|
@@ -3252,7 +3252,7 @@ function ComposerSheet({
|
|
|
3252
3252
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "left" }),
|
|
3253
3253
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "right" }),
|
|
3254
3254
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3255
|
-
|
|
3255
|
+
_chunk5LED4QHZcjs.PanelResizeHandle,
|
|
3256
3256
|
{
|
|
3257
3257
|
side: "bottom",
|
|
3258
3258
|
size: _nullishCoalesce(resolved, () => ( minHeight)),
|
|
@@ -3355,7 +3355,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3355
3355
|
hasNextPage,
|
|
3356
3356
|
isFetchingNextPage,
|
|
3357
3357
|
onLoadMore,
|
|
3358
|
-
pageSize =
|
|
3358
|
+
pageSize = _chunk5LED4QHZcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3359
3359
|
...props
|
|
3360
3360
|
}, ref) => {
|
|
3361
3361
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3653,7 +3653,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3653
3653
|
label = "Loading",
|
|
3654
3654
|
region = true
|
|
3655
3655
|
}) {
|
|
3656
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3656
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.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) }) }) });
|
|
3657
3657
|
}
|
|
3658
3658
|
function AdminContentCardGrid({
|
|
3659
3659
|
items,
|
|
@@ -5245,7 +5245,7 @@ function Section({ title, description, children }) {
|
|
|
5245
5245
|
] });
|
|
5246
5246
|
}
|
|
5247
5247
|
function ProxyCredentialsPanel({ description }) {
|
|
5248
|
-
const hydrated =
|
|
5248
|
+
const hydrated = _chunk5LED4QHZcjs.useIsHydrated.call(void 0, );
|
|
5249
5249
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5250
5250
|
ProxyCredentialsForm,
|
|
5251
5251
|
{
|
|
@@ -5409,12 +5409,12 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5409
5409
|
|
|
5410
5410
|
// src/components/chat/index.ts
|
|
5411
5411
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5412
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5412
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-KUESE7P6.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5413
5413
|
);
|
|
5414
5414
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5415
5415
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5416
5416
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5417
|
-
_react.useEffect.call(void 0, () =>
|
|
5417
|
+
_react.useEffect.call(void 0, () => _chunk5LED4QHZcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5418
5418
|
const { loadStyles } = props;
|
|
5419
5419
|
_react.useEffect.call(void 0, () => {
|
|
5420
5420
|
if (load) _optionalChain([loadStyles, 'optionalCall', _204 => _204()]);
|
|
@@ -5422,12 +5422,12 @@ var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
|
5422
5422
|
_react.useEffect.call(void 0, () => {
|
|
5423
5423
|
if (load) return void 0;
|
|
5424
5424
|
const start = () => setLoadRequested(true);
|
|
5425
|
-
if (
|
|
5426
|
-
for (const name of
|
|
5427
|
-
const cancel =
|
|
5425
|
+
if (_chunk5LED4QHZcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5426
|
+
for (const name of _chunk5LED4QHZcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5427
|
+
const cancel = _chunk5LED4QHZcjs.onAskAiIntent.call(void 0, start);
|
|
5428
5428
|
return () => {
|
|
5429
5429
|
cancel();
|
|
5430
|
-
for (const name of
|
|
5430
|
+
for (const name of _chunk5LED4QHZcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5431
5431
|
};
|
|
5432
5432
|
}, [load]);
|
|
5433
5433
|
if (!load) return null;
|