@flamingo-stack/openframe-frontend-core 0.0.802 → 0.0.803
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-7MV23NNT.cjs → chunk-2X3N6MSR.cjs} +88 -0
- package/dist/{chunk-HRMLGU6A.cjs → chunk-6JVNUGN3.cjs} +3 -3
- package/dist/{chunk-3W2PBWD5.cjs → chunk-CACULEQS.cjs} +4 -4
- package/dist/{chunk-VMQAJIQC.cjs → chunk-H4T3YHYH.cjs} +633 -630
- package/dist/{chunk-D3IQHAGL.cjs → chunk-HEMZOHNB.cjs} +11 -11
- package/dist/{chunk-M7E7ILE5.cjs → chunk-HVWMPUXK.cjs} +6 -6
- package/dist/{chunk-EJVJDLYC.cjs → chunk-I4BODSPV.cjs} +3 -3
- package/dist/{chunk-CRVXQYUZ.cjs → chunk-IE3CPPHJ.cjs} +24 -24
- package/dist/{chunk-E56LN23H.cjs → chunk-IYWX4GOG.cjs} +35 -13
- package/dist/{chunk-75BFVMNA.cjs → chunk-JTDOBGKE.cjs} +34 -34
- package/dist/{chunk-YD344MMX.cjs → chunk-KVL3QRFX.cjs} +7 -7
- package/dist/{chunk-2BUSXRZ7.cjs → chunk-MBZIARIL.cjs} +12 -12
- package/dist/{chunk-DSIIRR3G.cjs → chunk-MII4RDO4.cjs} +57 -57
- package/dist/{chunk-A7IT7MZO.cjs → chunk-NNQXP2ZM.cjs} +6 -6
- package/dist/{chunk-YMPCACQX.cjs → chunk-QFBRQ22U.cjs} +41 -41
- package/dist/{chunk-DYDS2P5G.cjs → chunk-T7B3FJY6.cjs} +2 -2
- package/dist/{chunk-DTBIIFZG.cjs → chunk-TELXF5WD.cjs} +14 -14
- package/dist/{chunk-7E4BC3AF.cjs → chunk-TVAU56UU.cjs} +46 -39
- package/dist/{chunk-NCQJIYDN.cjs → chunk-VKSO3UYU.cjs} +22 -22
- package/dist/{chunk-A7NRENMU.cjs → chunk-XOFGPSNP.cjs} +21 -21
- package/dist/{chunk-52NI57KM.cjs → chunk-YKQGYAG5.cjs} +51 -51
- package/dist/{cloud-tenants-3SWYRUXB.cjs → cloud-tenants-GKCZSLEV.cjs} +7 -7
- package/dist/components/case-studies/index.cjs +19 -19
- package/dist/components/chat/approval-batch-message.d.ts +3 -1
- package/dist/components/chat/approval-batch-message.d.ts.map +1 -1
- package/dist/components/chat/approval-batch-message.js +88 -0
- package/dist/components/chat/chat-composer.d.ts +3 -1
- package/dist/components/chat/chat-composer.d.ts.map +1 -1
- package/dist/components/chat/chat-composer.js +2 -0
- package/dist/components/chat/chat-context-memory-bar.d.ts +7 -1
- package/dist/components/chat/chat-context-memory-bar.d.ts.map +1 -1
- package/dist/components/chat/chat-context-memory-bar.js +11 -5
- package/dist/components/chat/embeddable-chat.d.ts +3 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +1 -0
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/faq/index.cjs +9 -9
- package/dist/components/features/board/ticket-card.js +5 -5
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/help-center-pages/index.cjs +69 -69
- package/dist/components/index.cjs +42 -42
- package/dist/components/layout/page-layout.d.ts +1 -1
- package/dist/components/layout/page-layout.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +4 -2
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/layout/title-block.js +21 -2
- package/dist/components/meeting-scheduler/index.cjs +39 -39
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/index.cjs +18 -18
- package/dist/components/tickets/index.cjs +12 -12
- package/dist/components/ui/data-table/data-table-body.d.ts +6 -1
- package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-body.js +3 -1
- package/dist/components/ui/device-card.d.ts +6 -1
- package/dist/components/ui/device-card.d.ts.map +1 -1
- package/dist/components/ui/device-card.js +2 -1
- package/dist/components/ui/index.cjs +7 -7
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/page-actions.js +15 -12
- package/dist/{devices-MQILRW53.cjs → devices-XIXLFYRJ.cjs} +8 -8
- package/dist/{embeddable-chat-XZDZOHFY.cjs → embeddable-chat-SVDMLAER.cjs} +63 -62
- package/dist/index.cjs +11 -11
- package/dist/{knowledge-WQ3ABXZC.cjs → knowledge-3DKG5QG2.cjs} +8 -8
- package/dist/{logs-XRSJGB3I.cjs → logs-RIU2TTRZ.cjs} +15 -15
- package/dist/{policies-Q67ZXAGY.cjs → policies-F2ZB2J4L.cjs} +11 -11
- package/dist/{remote-session-4LYKEZSY.cjs → remote-session-GBMM5UPQ.cjs} +4 -4
- package/dist/{scripts-YX324R4S.cjs → scripts-XX5LMCRA.cjs} +14 -14
- package/dist/{software-update-PHMXJVAC.cjs → software-update-VYBM7SC6.cjs} +11 -11
- package/dist/{tickets-board-3FBVYSXR.cjs → tickets-board-5QIIA24E.cjs} +7 -7
- package/package.json +1 -1
- package/src/components/chat/approval-batch-message.tsx +109 -1
- package/src/components/chat/chat-composer.tsx +4 -0
- package/src/components/chat/chat-context-memory-bar.tsx +28 -5
- package/src/components/chat/embeddable-chat.tsx +4 -0
- package/src/components/features/board/ticket-card.tsx +7 -6
- package/src/components/layout/page-layout.tsx +1 -1
- package/src/components/layout/title-block.tsx +22 -3
- package/src/components/ui/data-table/data-table-body.tsx +9 -0
- package/src/components/ui/device-card.tsx +7 -1
- package/src/components/ui/page-actions.tsx +28 -14
|
@@ -6,7 +6,7 @@ var _chunkOG4XH6C5cjs = require('./chunk-OG4XH6C5.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkIE3CPPHJcjs = require('./chunk-IE3CPPHJ.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -169,31 +169,31 @@ CveLink.displayName = "CveLink";
|
|
|
169
169
|
// src/components/platform/ShellTypeBadge.tsx
|
|
170
170
|
|
|
171
171
|
var shellIconMap = {
|
|
172
|
-
[
|
|
172
|
+
[_chunkIE3CPPHJcjs.ShellTypeValues.POWERSHELL]: {
|
|
173
173
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
174
174
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
175
175
|
},
|
|
176
|
-
[
|
|
176
|
+
[_chunkIE3CPPHJcjs.ShellTypeValues.CMD]: {
|
|
177
177
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
178
178
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
179
179
|
},
|
|
180
|
-
[
|
|
180
|
+
[_chunkIE3CPPHJcjs.ShellTypeValues.BASH]: {
|
|
181
181
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
182
182
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
183
183
|
},
|
|
184
|
-
[
|
|
184
|
+
[_chunkIE3CPPHJcjs.ShellTypeValues.PYTHON]: {
|
|
185
185
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
186
186
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
187
187
|
},
|
|
188
|
-
[
|
|
188
|
+
[_chunkIE3CPPHJcjs.ShellTypeValues.NUSHELL]: {
|
|
189
189
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
190
190
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
191
191
|
},
|
|
192
|
-
[
|
|
192
|
+
[_chunkIE3CPPHJcjs.ShellTypeValues.DENO]: {
|
|
193
193
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
194
194
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
195
195
|
},
|
|
196
|
-
[
|
|
196
|
+
[_chunkIE3CPPHJcjs.ShellTypeValues.SHELL]: {
|
|
197
197
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
198
198
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
199
199
|
}
|
|
@@ -204,7 +204,7 @@ var defaultIconConfig = {
|
|
|
204
204
|
};
|
|
205
205
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
206
206
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
207
|
-
const label =
|
|
207
|
+
const label = _chunkIE3CPPHJcjs.getShellLabel.call(void 0, normalizedType);
|
|
208
208
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
209
209
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
210
210
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -220,7 +220,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
220
220
|
if (!platforms || platforms.length === 0) {
|
|
221
221
|
return "All Platforms";
|
|
222
222
|
}
|
|
223
|
-
return platforms.map((platform) =>
|
|
223
|
+
return platforms.map((platform) => _chunkIE3CPPHJcjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
224
224
|
}
|
|
225
225
|
function InfoCell({ label, value, avatar, className }) {
|
|
226
226
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -240,7 +240,7 @@ var ScriptInfoSection = ({
|
|
|
240
240
|
author,
|
|
241
241
|
className
|
|
242
242
|
}) => {
|
|
243
|
-
const shellLabel =
|
|
243
|
+
const shellLabel = _chunkIE3CPPHJcjs.getShellLabel.call(void 0, shellType);
|
|
244
244
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
245
245
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
246
246
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKVL3QRFXcjs = require('./chunk-KVL3QRFX.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkH4T3YHYHcjs = require('./chunk-H4T3YHYH.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkIYWX4GOGcjs = require('./chunk-IYWX4GOG.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
@@ -36,8 +36,8 @@ function FaqDocumentPage({
|
|
|
36
36
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _ => _.label]), () => ( "Back to home")),
|
|
37
37
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
38
38
|
};
|
|
39
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
-
|
|
39
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
+
_chunkKVL3QRFXcjs.FaqSection,
|
|
41
41
|
{
|
|
42
42
|
initialFaqs,
|
|
43
43
|
heading: null,
|
|
@@ -53,7 +53,7 @@ function FaqDocumentPage({
|
|
|
53
53
|
skeletonNav
|
|
54
54
|
}
|
|
55
55
|
) });
|
|
56
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4T3YHYHcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
|
|
@@ -5,12 +5,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkH4T3YHYHcjs = require('./chunk-H4T3YHYH.cjs');
|
|
9
9
|
|
|
10
10
|
// src/components/product-demo/screens/devices-view.tsx
|
|
11
11
|
var _jsxruntime = require('react/jsx-runtime');
|
|
12
12
|
var DEVICES_SEARCH_QUERY = "Windows";
|
|
13
|
-
var TOOLBAR = { ...
|
|
13
|
+
var TOOLBAR = { ..._chunkH4T3YHYHcjs.IDLE_DEVICES_TOOLBAR, searchValue: DEVICES_SEARCH_QUERY };
|
|
14
14
|
var NO_HEADER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
15
15
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
16
16
|
var NO_DEVICES = [];
|
|
@@ -22,7 +22,7 @@ function DevicesScreenView({
|
|
|
22
22
|
loading = false
|
|
23
23
|
}) {
|
|
24
24
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25
|
-
|
|
25
|
+
_chunkH4T3YHYHcjs.DevicesPanelView,
|
|
26
26
|
{
|
|
27
27
|
className: "p-[var(--spacing-system-l)]",
|
|
28
28
|
headerSlot: NO_HEADER,
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkTVAU56UUcjs = require('./chunk-TVAU56UU.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk2X3N6MSRcjs = require('./chunk-2X3N6MSR.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -2057,8 +2057,8 @@ function makeComposeContentUrl(opts) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
2059
2059
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
2060
|
-
const owner = claimedOwner &&
|
|
2061
|
-
const origin = owner ?
|
|
2060
|
+
const owner = claimedOwner && _chunkTVAU56UUcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
2061
|
+
const origin = owner ? _chunkTVAU56UUcjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
2062
2062
|
return {
|
|
2063
2063
|
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _88 => _88.trim, 'call', _89 => _89()]) || identifier}`,
|
|
2064
2064
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
@@ -2239,7 +2239,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2239
2239
|
if (heading.level > opts.maxLevel) continue;
|
|
2240
2240
|
let title = heading.text;
|
|
2241
2241
|
if (opts.stripFormattingMarkers) {
|
|
2242
|
-
title =
|
|
2242
|
+
title = _chunkTVAU56UUcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2243
2243
|
}
|
|
2244
2244
|
const baseId = _chunkOJZBZH56cjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkOJZBZH56cjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2245
2245
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2554,7 +2554,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2554
2554
|
function openAskAi(source, options) {
|
|
2555
2555
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2556
2556
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2557
|
-
window.dispatchEvent(new CustomEvent(
|
|
2557
|
+
window.dispatchEvent(new CustomEvent(_chunkTVAU56UUcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2558
2558
|
}
|
|
2559
2559
|
function MingoAiButton({
|
|
2560
2560
|
source,
|
|
@@ -2597,7 +2597,7 @@ function MingoAiButton({
|
|
|
2597
2597
|
{
|
|
2598
2598
|
...props,
|
|
2599
2599
|
type: "button",
|
|
2600
|
-
...{ [
|
|
2600
|
+
...{ [_chunkTVAU56UUcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2601
2601
|
variant: field ? "glyph" : "transparent",
|
|
2602
2602
|
size: "wrap",
|
|
2603
2603
|
font: "regular",
|
|
@@ -2643,7 +2643,7 @@ function MingoAiButton({
|
|
|
2643
2643
|
children: icon
|
|
2644
2644
|
}
|
|
2645
2645
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2646
|
-
|
|
2646
|
+
_chunk2X3N6MSRcjs.AgentMark,
|
|
2647
2647
|
{
|
|
2648
2648
|
agent: "mingo",
|
|
2649
2649
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative shrink-0 text-ods-text-primary", field ? "size-6" : "size-5")
|
|
@@ -2815,7 +2815,7 @@ function useAskSurface({
|
|
|
2815
2815
|
// src/components/chat/ask-prompts.tsx
|
|
2816
2816
|
|
|
2817
2817
|
function AssistantGlyph({ icon, className }) {
|
|
2818
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.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,
|
|
2818
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.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, _chunk2X3N6MSRcjs.AgentMark, { agent: "mingo", className: "size-full" }))) });
|
|
2819
2819
|
}
|
|
2820
2820
|
var slotCount = (count, loading, prompts) => _nullishCoalesce(count, () => ( (loading ? ASK_PROMPTS_DEFAULT_COUNT : prompts.length)));
|
|
2821
2821
|
var SKELETON_LABEL_CH = [26, 22, 30, 24, 20, 28];
|
|
@@ -2838,9 +2838,9 @@ function QuestionChips({
|
|
|
2838
2838
|
{
|
|
2839
2839
|
"data-loading-item": true,
|
|
2840
2840
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2841
|
-
...prompt ? { [
|
|
2841
|
+
...prompt ? { [_chunkTVAU56UUcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2842
2842
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2843
|
-
|
|
2843
|
+
_chunkTVAU56UUcjs.QuickActionChipButton,
|
|
2844
2844
|
{
|
|
2845
2845
|
loading,
|
|
2846
2846
|
variant: "question",
|
|
@@ -3050,7 +3050,7 @@ function QuickActionMarquee({
|
|
|
3050
3050
|
);
|
|
3051
3051
|
if (items.length === 0) return null;
|
|
3052
3052
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3053
|
-
|
|
3053
|
+
_chunkTVAU56UUcjs.QuickActionWall,
|
|
3054
3054
|
{
|
|
3055
3055
|
chips,
|
|
3056
3056
|
mode,
|
|
@@ -3083,13 +3083,13 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3083
3083
|
({ className, ticket, onClick, loading: loadingProp = false, ...props }, ref) => {
|
|
3084
3084
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3085
3085
|
if (!loading && !ticket) return null;
|
|
3086
|
-
const statusTagProps = ticket ?
|
|
3086
|
+
const statusTagProps = ticket ? _chunk2X3N6MSRcjs.resolveStatusTagProps.call(void 0, {
|
|
3087
3087
|
status: ticket.status,
|
|
3088
3088
|
statusKind: ticket.statusKind,
|
|
3089
3089
|
statusName: ticket.statusLabel,
|
|
3090
3090
|
statusColor: ticket.statusColor
|
|
3091
3091
|
}) : null;
|
|
3092
|
-
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" ||
|
|
3092
|
+
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" || _chunk2X3N6MSRcjs.resolveTicketStatus.call(void 0, ticket.status) === "RESOLVED");
|
|
3093
3093
|
const composedSubtitle = ticket ? [ticket.ticketNumber, ticket.category, ticket.timeAgo].filter(Boolean).join(" \u2022 ") : "";
|
|
3094
3094
|
const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess', _125 => _125.subtitle]), () => ( (_optionalChain([ticket, 'optionalAccess', _126 => _126.unread]) ? UNREAD_NOTICE : composedSubtitle)));
|
|
3095
3095
|
const unread = !!_optionalChain([ticket, 'optionalAccess', _127 => _127.unread]);
|
|
@@ -3125,7 +3125,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3125
3125
|
className: "hidden shrink-0 sm:inline-flex"
|
|
3126
3126
|
}
|
|
3127
3127
|
),
|
|
3128
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3128
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.TicketStatusTag, { status: "", loading: true, className: "w-20" }) : statusTagProps && (statusTagProps.status || statusTagProps.label) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.TicketStatusTag, { ...statusTagProps }),
|
|
3129
3129
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3130
3130
|
"div",
|
|
3131
3131
|
{
|
|
@@ -3265,7 +3265,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3265
3265
|
hasNextPage,
|
|
3266
3266
|
isFetchingNextPage,
|
|
3267
3267
|
onLoadMore,
|
|
3268
|
-
pageSize =
|
|
3268
|
+
pageSize = _chunkTVAU56UUcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3269
3269
|
...props
|
|
3270
3270
|
}, ref) => {
|
|
3271
3271
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3563,7 +3563,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3563
3563
|
label = "Loading",
|
|
3564
3564
|
region = true
|
|
3565
3565
|
}) {
|
|
3566
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3566
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTVAU56UUcjs.LoadingFallback, { label, status: region, className: _chunk7JWFMAQBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3567
3567
|
}
|
|
3568
3568
|
function AdminContentCardGrid({
|
|
3569
3569
|
items,
|
|
@@ -5155,7 +5155,7 @@ function Section({ title, description, children }) {
|
|
|
5155
5155
|
] });
|
|
5156
5156
|
}
|
|
5157
5157
|
function ProxyCredentialsPanel({ description }) {
|
|
5158
|
-
const hydrated =
|
|
5158
|
+
const hydrated = _chunkTVAU56UUcjs.useIsHydrated.call(void 0, );
|
|
5159
5159
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5160
5160
|
ProxyCredentialsForm,
|
|
5161
5161
|
{
|
|
@@ -5319,21 +5319,21 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5319
5319
|
|
|
5320
5320
|
// src/components/chat/index.ts
|
|
5321
5321
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5322
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5322
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-SVDMLAER.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5323
5323
|
);
|
|
5324
5324
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5325
5325
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5326
5326
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5327
|
-
_react.useEffect.call(void 0, () =>
|
|
5327
|
+
_react.useEffect.call(void 0, () => _chunkTVAU56UUcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5328
5328
|
_react.useEffect.call(void 0, () => {
|
|
5329
5329
|
if (load) return void 0;
|
|
5330
5330
|
const start = () => setLoadRequested(true);
|
|
5331
|
-
if (
|
|
5332
|
-
for (const name of
|
|
5333
|
-
const cancel =
|
|
5331
|
+
if (_chunkTVAU56UUcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5332
|
+
for (const name of _chunkTVAU56UUcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5333
|
+
const cancel = _chunkTVAU56UUcjs.onAskAiIntent.call(void 0, start);
|
|
5334
5334
|
return () => {
|
|
5335
5335
|
cancel();
|
|
5336
|
-
for (const name of
|
|
5336
|
+
for (const name of _chunkTVAU56UUcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5337
5337
|
};
|
|
5338
5338
|
}, [load]);
|
|
5339
5339
|
if (!load) return null;
|
|
@@ -1149,7 +1149,6 @@ function PageActions({
|
|
|
1149
1149
|
className,
|
|
1150
1150
|
loading: loadingProp
|
|
1151
1151
|
}) {
|
|
1152
|
-
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1153
1152
|
if (variant === "icon-buttons") {
|
|
1154
1153
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1155
1154
|
IconButtonsVariant,
|
|
@@ -1158,7 +1157,7 @@ function PageActions({
|
|
|
1158
1157
|
menuActions,
|
|
1159
1158
|
selector,
|
|
1160
1159
|
className,
|
|
1161
|
-
loading
|
|
1160
|
+
loading: loadingProp
|
|
1162
1161
|
}
|
|
1163
1162
|
);
|
|
1164
1163
|
}
|
|
@@ -1170,11 +1169,11 @@ function PageActions({
|
|
|
1170
1169
|
menuActions: menuActions || [],
|
|
1171
1170
|
selector,
|
|
1172
1171
|
className,
|
|
1173
|
-
loading
|
|
1172
|
+
loading: loadingProp
|
|
1174
1173
|
}
|
|
1175
1174
|
);
|
|
1176
1175
|
}
|
|
1177
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PrimaryButtonsVariant, { actions, className, loading });
|
|
1176
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PrimaryButtonsVariant, { actions, className, loading: loadingProp });
|
|
1178
1177
|
}
|
|
1179
1178
|
function IconButtonsVariant({
|
|
1180
1179
|
actions,
|
|
@@ -1184,6 +1183,7 @@ function IconButtonsVariant({
|
|
|
1184
1183
|
loading: loadingProp
|
|
1185
1184
|
}) {
|
|
1186
1185
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1186
|
+
const unknownSet = !!loadingProp;
|
|
1187
1187
|
const desktopActions = actions.filter((a) => !a.showOnlyMobile);
|
|
1188
1188
|
const hasMenuActions = !!menuActions && menuActions.some((g) => g.items.length > 0);
|
|
1189
1189
|
const isSingleAction = actions.length === 1 && !_optionalChain([actions, 'access', _23 => _23[0], 'access', _24 => _24.submenu, 'optionalAccess', _25 => _25.length]);
|
|
@@ -1195,10 +1195,10 @@ function IconButtonsVariant({
|
|
|
1195
1195
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "hidden items-center content-md:flex", ACTIONS_GAP, className), children: [
|
|
1196
1196
|
selector,
|
|
1197
1197
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, actionKey(action, idx))),
|
|
1198
|
-
|
|
1198
|
+
unknownSet && desktopActions.length === 0 && !hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }),
|
|
1199
1199
|
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTIGKLKJcjs.ActionsMenuDropdown, { groups: menuActions, loading })
|
|
1200
1200
|
] }),
|
|
1201
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.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, _chunkJTIGKLKJcjs.ActionsMenuDropdown, { groups: mobileMenuGroups, loading }) :
|
|
1201
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.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, _chunkJTIGKLKJcjs.ActionsMenuDropdown, { groups: mobileMenuGroups, loading }) : unknownSet ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }) : null })
|
|
1202
1202
|
] });
|
|
1203
1203
|
}
|
|
1204
1204
|
function PrimaryButtonsVariant({
|
|
@@ -1207,6 +1207,7 @@ function PrimaryButtonsVariant({
|
|
|
1207
1207
|
loading: loadingProp
|
|
1208
1208
|
}) {
|
|
1209
1209
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1210
|
+
const unknownSet = !!loadingProp;
|
|
1210
1211
|
const sortedActions = [...actions].sort((a, b) => {
|
|
1211
1212
|
if (a.variant === "accent" && b.variant !== "accent") return 1;
|
|
1212
1213
|
if (a.variant !== "accent" && b.variant === "accent") return -1;
|
|
@@ -1216,13 +1217,13 @@ function PrimaryButtonsVariant({
|
|
|
1216
1217
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1217
1218
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "hidden items-center md:content-md:flex", ACTIONS_GAP, className), children: [
|
|
1218
1219
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, `desktop-${actionKey(action, idx)}`)),
|
|
1219
|
-
|
|
1220
|
+
unknownSet && desktopActions.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "label" })
|
|
1220
1221
|
] }),
|
|
1221
1222
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "hidden items-center md:content-max-md:flex", ACTIONS_GAP, className), children: [
|
|
1222
1223
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompactPrimaryActions, { actions: desktopActions, loading }),
|
|
1223
|
-
|
|
1224
|
+
unknownSet && desktopActions.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" })
|
|
1224
1225
|
] }),
|
|
1225
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MobileBottomActions, { actions: sortedActions, loading })
|
|
1226
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MobileBottomActions, { actions: sortedActions, loading: loadingProp })
|
|
1226
1227
|
] });
|
|
1227
1228
|
}
|
|
1228
1229
|
function MenuPrimaryVariant({
|
|
@@ -1233,6 +1234,7 @@ function MenuPrimaryVariant({
|
|
|
1233
1234
|
loading: loadingProp
|
|
1234
1235
|
}) {
|
|
1235
1236
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1237
|
+
const unknownSet = !!loadingProp;
|
|
1236
1238
|
const desktopActions = actions.filter((a) => !a.showOnlyMobile);
|
|
1237
1239
|
const hasMenuActions = menuActions.some((g) => g.items.length > 0);
|
|
1238
1240
|
const mobileMenuGroups = [{ items: actions.flatMap(actionToMenuItems) }, ...menuActions];
|
|
@@ -1242,14 +1244,14 @@ function MenuPrimaryVariant({
|
|
|
1242
1244
|
selector,
|
|
1243
1245
|
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTIGKLKJcjs.ActionsMenuDropdown, { groups: menuActions, loading }),
|
|
1244
1246
|
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)}`)),
|
|
1245
|
-
|
|
1247
|
+
unknownSet && desktopActions.length === 0 && !hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" })
|
|
1246
1248
|
] }),
|
|
1247
1249
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex content-md:hidden", className), children: hasMobileMenuItems || selector ? (
|
|
1248
1250
|
// The selector rides into the menu as its header row: on mobile the
|
|
1249
1251
|
// title row has no room for it, and hiding it entirely (what
|
|
1250
1252
|
// `icon-buttons` does) would leave no way to switch views at all.
|
|
1251
1253
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTIGKLKJcjs.ActionsMenuDropdown, { groups: mobileMenuGroups, header: selector, loading })
|
|
1252
|
-
) :
|
|
1254
|
+
) : unknownSet ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }) : null })
|
|
1253
1255
|
] });
|
|
1254
1256
|
}
|
|
1255
1257
|
function CompactPrimaryActions({ actions, loading: loadingProp }) {
|
|
@@ -1264,6 +1266,7 @@ function CompactPrimaryActions({ actions, loading: loadingProp }) {
|
|
|
1264
1266
|
}
|
|
1265
1267
|
function MobileBottomActions({ actions, loading: loadingProp }) {
|
|
1266
1268
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1269
|
+
const unknownSet = !!loadingProp;
|
|
1267
1270
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1268
1271
|
"div",
|
|
1269
1272
|
{
|
|
@@ -1278,7 +1281,7 @@ function MobileBottomActions({ actions, loading: loadingProp }) {
|
|
|
1278
1281
|
),
|
|
1279
1282
|
children: [
|
|
1280
1283
|
actions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { fullWidth: !!action.label, inert: loading }) }, `mobile-${actionKey(action, idx)}`)),
|
|
1281
|
-
|
|
1284
|
+
unknownSet && actions.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "label", fullWidth: true })
|
|
1282
1285
|
]
|
|
1283
1286
|
}
|
|
1284
1287
|
);
|
|
@@ -1399,7 +1402,26 @@ function TitleBlock({
|
|
|
1399
1402
|
const { ref: subtitleRef, isTruncated: subtitleTruncated } = _chunkV4FXUIMHcjs.useIsTruncated.call(void 0,
|
|
1400
1403
|
subtitleLoading ? null : subtitle
|
|
1401
1404
|
);
|
|
1402
|
-
const titleNode = titleLoading &&
|
|
1405
|
+
const titleNode = titleLoading && titleSkeletonLines && titleWrap ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLinesByBreakpointSkeleton, { as: "span", lines: titleSkeletonLines }) : titleLoading && titleSkeletonLines ? (
|
|
1406
|
+
// An unclamped title wraps where the WINDOW is narrow (a phone), not where a docked panel narrows the content:
|
|
1407
|
+
// its loading lines follow the viewport step, the phone count below `md` and the `md` count above it.
|
|
1408
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1409
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1410
|
+
_chunk4WIJI4AKcjs.TextLinesByBreakpointSkeleton,
|
|
1411
|
+
{
|
|
1412
|
+
as: "span",
|
|
1413
|
+
lines: { phone: titleSkeletonLines.phone, md: titleSkeletonLines.phone, lg: titleSkeletonLines.phone }
|
|
1414
|
+
}
|
|
1415
|
+
) }),
|
|
1416
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "hidden md:contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1417
|
+
_chunk4WIJI4AKcjs.TextLinesByBreakpointSkeleton,
|
|
1418
|
+
{
|
|
1419
|
+
as: "span",
|
|
1420
|
+
lines: { phone: titleSkeletonLines.md, md: titleSkeletonLines.md, lg: titleSkeletonLines.lg }
|
|
1421
|
+
}
|
|
1422
|
+
) })
|
|
1423
|
+
] })
|
|
1424
|
+
) : titleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1403
1425
|
_chunk4WIJI4AKcjs.UnifiedSkeleton,
|
|
1404
1426
|
{
|
|
1405
1427
|
as: "span",
|