@flamingo-stack/openframe-frontend-core 0.0.828 → 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-QMQWXGCH.cjs → chunk-56EP4QM2.cjs} +29 -25
- package/dist/{chunk-4ZH7RPEA.cjs → chunk-5KSPG3TV.cjs} +388 -388
- package/dist/{chunk-BGT6JFMP.cjs → chunk-5LED4QHZ.cjs} +527 -434
- package/dist/{chunk-6ZLCEIIC.cjs → chunk-CAGQAMJ6.cjs} +23 -23
- package/dist/{chunk-ALRX2VIY.cjs → chunk-D2LXFMZI.cjs} +26 -26
- package/dist/{chunk-VAIML6YU.cjs → chunk-DUGOOTER.cjs} +13 -13
- package/dist/{chunk-XPF74L76.cjs → chunk-E6W4YDPS.cjs} +2 -2
- package/dist/{chunk-UULSSD56.cjs → chunk-FFFN4IY2.cjs} +5 -5
- package/dist/{chunk-UWGPYAB3.cjs → chunk-HYCMMECU.cjs} +51 -51
- package/dist/{chunk-DR4P7AEU.cjs → chunk-HYGWRUEM.cjs} +3 -3
- package/dist/chunk-IX2E3AN7.cjs +77 -0
- package/dist/{chunk-YKUL6JBI.cjs → chunk-M75723HD.cjs} +46 -34
- package/dist/{chunk-RPKWEBHC.cjs → chunk-PUXYAHH3.cjs} +3 -3
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-QTLWU6FY.cjs} +5 -5
- package/dist/{chunk-3WKQ2GCR.cjs → chunk-RRPID7Z7.cjs} +6 -8
- package/dist/{chunk-6SFCI6D4.cjs → chunk-SAW7V7CU.cjs} +14 -16
- package/dist/{chunk-B5H7RKFF.cjs → chunk-TUMSVFVS.cjs} +4 -4
- package/dist/{chunk-7VC5FVWT.cjs → chunk-ULF4ZOUM.cjs} +65 -65
- package/dist/{chunk-ZT7JHN7G.cjs → chunk-WCCE4WF3.cjs} +57 -62
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-WWDNLMB7.cjs} +16 -16
- package/dist/{chunk-K6X7VP2Y.cjs → chunk-WZYBUJJG.cjs} +43 -43
- package/dist/{chunk-SVCTAOJR.cjs → chunk-X425BGXS.cjs} +2 -2
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{cloud-tenants-LKTWIZNS.cjs → cloud-tenants-4KQQPXPM.cjs} +12 -11
- package/dist/components/case-studies/index.cjs +24 -23
- package/dist/components/chat/assistant-ask-prompts.d.ts +5 -1
- package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/assistant-ask-prompts.js +3 -1
- 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 +22 -14
- package/dist/components/chat/guide-welcome.d.ts +14 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +9 -24
- package/dist/components/chat/hooks/use-empty-state-config.d.ts +13 -3
- package/dist/components/chat/hooks/use-empty-state-config.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-empty-state-config.js +10 -2
- package/dist/components/chat/index.cjs +13 -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 +13 -12
- package/dist/components/docs/index.cjs +16 -15
- package/dist/components/embeds/index.cjs +13 -12
- package/dist/components/faq/faq-ask-card.d.ts +2 -13
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
- package/dist/components/faq/faq-ask-card.js +1 -2
- package/dist/components/faq/faq-document-page.d.ts +2 -4
- package/dist/components/faq/faq-document-page.d.ts.map +1 -1
- package/dist/components/faq/faq-document-page.js +0 -2
- package/dist/components/faq/faq-section.d.ts +16 -29
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/faq-section.js +23 -15
- package/dist/components/faq/index.cjs +14 -13
- package/dist/components/faq/index.d.ts +1 -1
- package/dist/components/faq/index.d.ts.map +1 -1
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +12 -11
- package/dist/components/help-center-pages/delivery-page.d.ts +1 -8
- package/dist/components/help-center-pages/delivery-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/delivery-page.js +4 -16
- package/dist/components/help-center-pages/download-apps-page.d.ts +1 -8
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.js +3 -4
- package/dist/components/help-center-pages/index.cjs +123 -171
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts +1 -8
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.js +14 -26
- package/dist/components/help-center-pages/product-releases-list-page.d.ts +1 -8
- package/dist/components/help-center-pages/product-releases-list-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/product-releases-list-page.js +12 -24
- package/dist/components/help-center-pages/roadmap-page.d.ts +1 -8
- package/dist/components/help-center-pages/roadmap-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/roadmap-page.js +13 -25
- package/dist/components/help-center-pages/trust-center-page.d.ts +1 -1
- package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
- package/dist/components/index.cjs +58 -49
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/meeting-scheduler/index.cjs +50 -49
- package/dist/components/navigation/index.cjs +15 -14
- package/dist/components/onboarding-guides/index.cjs +14 -13
- package/dist/components/page-topic-label.d.ts +13 -0
- package/dist/components/page-topic-label.d.ts.map +1 -0
- package/dist/components/page-topic-label.js +20 -0
- package/dist/components/product-demo/index.cjs +23 -22
- package/dist/components/shared/dev-section/dev-section-page.d.ts +1 -8
- package/dist/components/shared/dev-section/dev-section-page.d.ts.map +1 -1
- package/dist/components/shared/dev-section/dev-section-page.js +2 -3
- package/dist/components/shared/legal-document/legal-document-page.d.ts +2 -10
- package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
- package/dist/components/shared/legal-document/legal-document-page.js +2 -5
- package/dist/components/shared/legal-document/use-legal-documents.d.ts +0 -2
- package/dist/components/shared/legal-document/use-legal-documents.d.ts.map +1 -1
- package/dist/components/shared/legal-document/use-legal-documents.js +0 -1
- package/dist/components/tickets/index.cjs +17 -16
- 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 +18 -11
- package/dist/contexts/endpoints-runtime-context.d.ts +5 -0
- package/dist/contexts/endpoints-runtime-context.d.ts.map +1 -1
- package/dist/contexts/index.cjs +10 -1
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/contexts/index.js +4 -0
- package/dist/contexts/page-topics-context.d.ts +30 -0
- package/dist/contexts/page-topics-context.d.ts.map +1 -0
- package/dist/contexts/page-topics-context.js +27 -0
- package/dist/{devices-JWG72ANF.cjs → devices-H6C4NMIY.cjs} +13 -12
- package/dist/{embeddable-chat-5UT6UHEO.cjs → embeddable-chat-KUESE7P6.cjs} +107 -97
- package/dist/hooks/index.cjs +3 -3
- package/dist/index.cjs +33 -15
- package/dist/{knowledge-DQXVSHME.cjs → knowledge-O6IBO5Y5.cjs} +13 -12
- package/dist/{logs-Z33VBTVX.cjs → logs-Y2UCF24Z.cjs} +19 -18
- package/dist/{policies-XE4UMH6Z.cjs → policies-J6O3RLJT.cjs} +16 -15
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-RVTFWSU4.cjs} +5 -5
- package/dist/{scripts-MECQG5GG.cjs → scripts-N67MM4T2.cjs} +19 -18
- package/dist/{software-update-PCSIA6BP.cjs → software-update-HB7F6KNG.cjs} +16 -15
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-2K3PBCNW.cjs} +8 -8
- package/dist/utils/index.cjs +46 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +12 -0
- package/dist/utils/page-topics.cjs +48 -0
- package/dist/utils/page-topics.d.ts +34 -0
- package/dist/utils/page-topics.d.ts.map +1 -0
- package/dist/utils/page-topics.js +46 -0
- package/package.json +7 -1
- package/src/components/chat/assistant-ask-prompts.tsx +8 -2
- package/src/components/chat/embeddable-chat.tsx +32 -45
- package/src/components/chat/guide-welcome.tsx +28 -49
- package/src/components/chat/hooks/use-empty-state-config.ts +22 -5
- 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/faq/faq-ask-card.tsx +2 -12
- package/src/components/faq/faq-document-page.tsx +1 -5
- package/src/components/faq/faq-section.tsx +47 -50
- package/src/components/faq/index.ts +1 -2
- package/src/components/help-center-pages/delivery-page.tsx +1 -16
- package/src/components/help-center-pages/download-apps-page.tsx +2 -9
- package/src/components/help-center-pages/onboarding-guides-catalog-page.tsx +1 -16
- package/src/components/help-center-pages/product-releases-list-page.tsx +1 -16
- package/src/components/help-center-pages/roadmap-page.tsx +1 -16
- package/src/components/help-center-pages/trust-center-page.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/page-topic-label.tsx +30 -0
- package/src/components/shared/dev-section/dev-section-page.tsx +2 -9
- package/src/components/shared/legal-document/legal-document-page.tsx +3 -13
- package/src/components/shared/legal-document/use-legal-documents.ts +0 -3
- package/src/components/ui/actions-menu.tsx +35 -1
- package/src/contexts/endpoints-runtime-context.tsx +5 -0
- package/src/contexts/index.ts +1 -0
- package/src/contexts/page-topics-context.tsx +68 -0
- package/src/utils/index.ts +8 -0
- package/src/utils/page-topics.ts +81 -0
- package/dist/{chunk-IKWQW3YJ.cjs → chunk-AY6XJOIN.cjs} +4 -4
|
@@ -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');
|
|
@@ -110,6 +110,9 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
110
110
|
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
|
+
var _chunkIX2E3AN7cjs = require('./chunk-IX2E3AN7.cjs');
|
|
114
|
+
|
|
115
|
+
|
|
113
116
|
var _chunkYMLRDVPOcjs = require('./chunk-YMLRDVPO.cjs');
|
|
114
117
|
|
|
115
118
|
|
|
@@ -2250,7 +2253,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2250
2253
|
if (heading.level > opts.maxLevel) continue;
|
|
2251
2254
|
let title = heading.text;
|
|
2252
2255
|
if (opts.stripFormattingMarkers) {
|
|
2253
|
-
title =
|
|
2256
|
+
title = _chunk5LED4QHZcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2254
2257
|
}
|
|
2255
2258
|
const baseId = _chunkW4VEDSAXcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkW4VEDSAXcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2256
2259
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2507,7 +2510,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2507
2510
|
function openAskAi(source, options) {
|
|
2508
2511
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2509
2512
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2510
|
-
window.dispatchEvent(new CustomEvent(
|
|
2513
|
+
window.dispatchEvent(new CustomEvent(_chunk5LED4QHZcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2511
2514
|
}
|
|
2512
2515
|
function MingoAiButton({
|
|
2513
2516
|
source,
|
|
@@ -2550,7 +2553,7 @@ function MingoAiButton({
|
|
|
2550
2553
|
{
|
|
2551
2554
|
...props,
|
|
2552
2555
|
type: "button",
|
|
2553
|
-
...{ [
|
|
2556
|
+
...{ [_chunk5LED4QHZcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2554
2557
|
variant: field ? "glyph" : "transparent",
|
|
2555
2558
|
size: "wrap",
|
|
2556
2559
|
font: "regular",
|
|
@@ -2575,7 +2578,7 @@ function MingoAiButton({
|
|
|
2575
2578
|
),
|
|
2576
2579
|
children: [
|
|
2577
2580
|
!field && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2578
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2581
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.MingoEdgeLight, { className: "rounded-md" }),
|
|
2579
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,
|
|
2580
2583
|
"span",
|
|
2581
2584
|
{
|
|
@@ -2596,7 +2599,7 @@ function MingoAiButton({
|
|
|
2596
2599
|
children: icon
|
|
2597
2600
|
}
|
|
2598
2601
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2599
|
-
|
|
2602
|
+
_chunkQTLWU6FYcjs.AgentMark,
|
|
2600
2603
|
{
|
|
2601
2604
|
agent: "mingo",
|
|
2602
2605
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative shrink-0 text-ods-text-primary", field ? "size-6" : "size-5")
|
|
@@ -2768,7 +2771,7 @@ function useAskSurface({
|
|
|
2768
2771
|
// src/components/chat/ask-prompts.tsx
|
|
2769
2772
|
|
|
2770
2773
|
function AssistantGlyph({ icon, className }) {
|
|
2771
|
-
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" }))) });
|
|
2772
2775
|
}
|
|
2773
2776
|
var slotCount = (count, loading, prompts) => _nullishCoalesce(count, () => ( (loading ? ASK_PROMPTS_DEFAULT_COUNT : prompts.length)));
|
|
2774
2777
|
var SKELETON_LABEL_CH = [26, 22, 30, 24, 20, 28];
|
|
@@ -2791,9 +2794,9 @@ function QuestionChips({
|
|
|
2791
2794
|
{
|
|
2792
2795
|
"data-loading-item": true,
|
|
2793
2796
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2794
|
-
...prompt ? { [
|
|
2797
|
+
...prompt ? { [_chunk5LED4QHZcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2795
2798
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2796
|
-
|
|
2799
|
+
_chunk5LED4QHZcjs.QuickActionChipButton,
|
|
2797
2800
|
{
|
|
2798
2801
|
loading,
|
|
2799
2802
|
variant: "question",
|
|
@@ -2938,7 +2941,8 @@ function AssistantAskPrompts({
|
|
|
2938
2941
|
const card = variant === "card";
|
|
2939
2942
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2940
2943
|
const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( (card ? _optionalChain([assistant, 'optionalAccess', _119 => _119.askCard, 'optionalAccess', _120 => _120.count]) : void 0))), () => ( ASK_PROMPTS_DEFAULT_COUNT));
|
|
2941
|
-
const
|
|
2944
|
+
const pageTopic = _chunkIX2E3AN7cjs.usePageTopic.call(void 0, );
|
|
2945
|
+
const ask = useAskSurface({ topic: _nullishCoalesce(topic, () => ( pageTopic)), count: slots, exclude, enabled, onOpen });
|
|
2942
2946
|
if (!assistantAvailable(assistant)) return null;
|
|
2943
2947
|
const shared = {
|
|
2944
2948
|
prompts: ask.prompts,
|
|
@@ -3003,7 +3007,7 @@ function QuickActionMarquee({
|
|
|
3003
3007
|
);
|
|
3004
3008
|
if (items.length === 0) return null;
|
|
3005
3009
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3006
|
-
|
|
3010
|
+
_chunk5LED4QHZcjs.QuickActionWall,
|
|
3007
3011
|
{
|
|
3008
3012
|
chips,
|
|
3009
3013
|
mode,
|
|
@@ -3036,13 +3040,13 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3036
3040
|
({ className, ticket, onClick, loading: loadingProp = false, ...props }, ref) => {
|
|
3037
3041
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3038
3042
|
if (!loading && !ticket) return null;
|
|
3039
|
-
const statusTagProps = ticket ?
|
|
3043
|
+
const statusTagProps = ticket ? _chunkQTLWU6FYcjs.resolveStatusTagProps.call(void 0, {
|
|
3040
3044
|
status: ticket.status,
|
|
3041
3045
|
statusKind: ticket.statusKind,
|
|
3042
3046
|
statusName: ticket.statusLabel,
|
|
3043
3047
|
statusColor: ticket.statusColor
|
|
3044
3048
|
}) : null;
|
|
3045
|
-
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" ||
|
|
3049
|
+
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" || _chunkQTLWU6FYcjs.resolveTicketStatus.call(void 0, ticket.status) === "RESOLVED");
|
|
3046
3050
|
const composedSubtitle = ticket ? [ticket.ticketNumber, ticket.category, ticket.timeAgo].filter(Boolean).join(" \u2022 ") : "";
|
|
3047
3051
|
const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess', _125 => _125.subtitle]), () => ( (_optionalChain([ticket, 'optionalAccess', _126 => _126.unread]) ? UNREAD_NOTICE : composedSubtitle)));
|
|
3048
3052
|
const unread = !!_optionalChain([ticket, 'optionalAccess', _127 => _127.unread]);
|
|
@@ -3078,7 +3082,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3078
3082
|
className: "hidden shrink-0 sm:inline-flex"
|
|
3079
3083
|
}
|
|
3080
3084
|
),
|
|
3081
|
-
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 }),
|
|
3082
3086
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3083
3087
|
"div",
|
|
3084
3088
|
{
|
|
@@ -3248,7 +3252,7 @@ function ComposerSheet({
|
|
|
3248
3252
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "left" }),
|
|
3249
3253
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "right" }),
|
|
3250
3254
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3251
|
-
|
|
3255
|
+
_chunk5LED4QHZcjs.PanelResizeHandle,
|
|
3252
3256
|
{
|
|
3253
3257
|
side: "bottom",
|
|
3254
3258
|
size: _nullishCoalesce(resolved, () => ( minHeight)),
|
|
@@ -3351,7 +3355,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3351
3355
|
hasNextPage,
|
|
3352
3356
|
isFetchingNextPage,
|
|
3353
3357
|
onLoadMore,
|
|
3354
|
-
pageSize =
|
|
3358
|
+
pageSize = _chunk5LED4QHZcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3355
3359
|
...props
|
|
3356
3360
|
}, ref) => {
|
|
3357
3361
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3649,7 +3653,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3649
3653
|
label = "Loading",
|
|
3650
3654
|
region = true
|
|
3651
3655
|
}) {
|
|
3652
|
-
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) }) }) });
|
|
3653
3657
|
}
|
|
3654
3658
|
function AdminContentCardGrid({
|
|
3655
3659
|
items,
|
|
@@ -5241,7 +5245,7 @@ function Section({ title, description, children }) {
|
|
|
5241
5245
|
] });
|
|
5242
5246
|
}
|
|
5243
5247
|
function ProxyCredentialsPanel({ description }) {
|
|
5244
|
-
const hydrated =
|
|
5248
|
+
const hydrated = _chunk5LED4QHZcjs.useIsHydrated.call(void 0, );
|
|
5245
5249
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5246
5250
|
ProxyCredentialsForm,
|
|
5247
5251
|
{
|
|
@@ -5405,12 +5409,12 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5405
5409
|
|
|
5406
5410
|
// src/components/chat/index.ts
|
|
5407
5411
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5408
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5412
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-KUESE7P6.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5409
5413
|
);
|
|
5410
5414
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5411
5415
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5412
5416
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5413
|
-
_react.useEffect.call(void 0, () =>
|
|
5417
|
+
_react.useEffect.call(void 0, () => _chunk5LED4QHZcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5414
5418
|
const { loadStyles } = props;
|
|
5415
5419
|
_react.useEffect.call(void 0, () => {
|
|
5416
5420
|
if (load) _optionalChain([loadStyles, 'optionalCall', _204 => _204()]);
|
|
@@ -5418,12 +5422,12 @@ var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
|
5418
5422
|
_react.useEffect.call(void 0, () => {
|
|
5419
5423
|
if (load) return void 0;
|
|
5420
5424
|
const start = () => setLoadRequested(true);
|
|
5421
|
-
if (
|
|
5422
|
-
for (const name of
|
|
5423
|
-
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);
|
|
5424
5428
|
return () => {
|
|
5425
5429
|
cancel();
|
|
5426
|
-
for (const name of
|
|
5430
|
+
for (const name of _chunk5LED4QHZcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5427
5431
|
};
|
|
5428
5432
|
}, [load]);
|
|
5429
5433
|
if (!load) return null;
|