@flamingo-stack/openframe-frontend-core 0.0.721 → 0.0.723
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/assets/index.cjs +0 -6
- package/dist/assets/index.d.ts +0 -1
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/assets/index.js +1 -5
- package/dist/{chunk-I2254QN6.cjs → chunk-2MC4DRSC.cjs} +3 -3
- package/dist/{chunk-UXU7Y5BH.js → chunk-2VOPQJNR.js} +3 -3
- package/dist/{chunk-QYS4YVEP.cjs → chunk-3RIKO2O2.cjs} +31 -31
- package/dist/{chunk-KFOAV77K.js → chunk-5D2K7TFT.js} +1 -1
- package/dist/{chunk-GGBYZKMS.cjs → chunk-6QTGLBJH.cjs} +5 -5
- package/dist/{chunk-5QXE5HMV.js → chunk-7JXCLUU7.js} +3 -3
- package/dist/{chunk-LAXKEBDD.js → chunk-A7JPMNHF.js} +7 -7
- package/dist/{chunk-7Z5FMQYR.cjs → chunk-ABSWD4PQ.cjs} +14 -14
- package/dist/{chunk-742BGXNX.js → chunk-EWED6ISQ.js} +1 -1
- package/dist/{chunk-S63QBBT7.js → chunk-F6JAGSKV.js} +5 -5
- package/dist/{chunk-QLTXT562.cjs → chunk-FDWYBJYD.cjs} +6 -6
- package/dist/{chunk-2P2M27EW.js → chunk-G6YNPBWV.js} +2219 -2202
- package/dist/{chunk-QQCFPMAA.js → chunk-GRDJR2Q7.js} +1 -1
- package/dist/{chunk-O5EHOJZD.cjs → chunk-GYUFKNOQ.cjs} +7 -7
- package/dist/{chunk-OKE5BIQH.cjs → chunk-HP4UUBJC.cjs} +8 -8
- package/dist/{chunk-HXB7SEYG.js → chunk-IIBTYCEN.js} +7 -16
- package/dist/{chunk-GCK75D7F.cjs → chunk-JENNI7XU.cjs} +56 -31
- package/dist/{chunk-ZLUFEWZZ.js → chunk-JL7AHSFE.js} +6 -6
- package/dist/{chunk-JDBZ4ZHU.js → chunk-KS3YLYVL.js} +2 -2
- package/dist/{chunk-6AJIOW3S.cjs → chunk-KSADTFNZ.cjs} +37 -37
- package/dist/{chunk-D2DH6VZL.cjs → chunk-KSZRALRL.cjs} +3 -3
- package/dist/{chunk-RJMWJAJO.cjs → chunk-KY4WQYYG.cjs} +19 -19
- package/dist/{chunk-IYVFSLWJ.js → chunk-KZQO5EJQ.js} +4 -0
- package/dist/{chunk-IMTY3GRR.cjs → chunk-LV6UJD2K.cjs} +2 -2
- package/dist/{chunk-UZTOI6FJ.cjs → chunk-MWLVYYRX.cjs} +619 -602
- package/dist/{chunk-44Q6MV7C.js → chunk-N4VCU6XP.js} +1 -1
- package/dist/{chunk-F7ORKKEF.cjs → chunk-NESUUHPV.cjs} +83 -83
- package/dist/{chunk-BYVVE7HP.cjs → chunk-NFABAOMD.cjs} +34 -36
- package/dist/{chunk-3R32ZNA2.cjs → chunk-OHC2MPUO.cjs} +35 -35
- package/dist/{chunk-RCI3PALX.js → chunk-OVG6MV3X.js} +6 -6
- package/dist/{chunk-HJMSNOBT.cjs → chunk-OWRD2GZU.cjs} +258 -267
- package/dist/{chunk-VFICDEYJ.cjs → chunk-P7MDECYI.cjs} +41 -41
- package/dist/{chunk-NPSJE7J3.js → chunk-PKS2QQJU.js} +29 -4
- package/dist/{chunk-57UTI7ZH.js → chunk-QBXEF7D5.js} +4 -4
- package/dist/{chunk-74N742ZG.js → chunk-SBCJFJ6Q.js} +4 -4
- package/dist/{chunk-XXO52RZR.cjs → chunk-TDSLKKX7.cjs} +18 -18
- package/dist/{chunk-F5BPGWGT.cjs → chunk-TKFTWM3V.cjs} +5 -1
- package/dist/{chunk-GYAXV3MZ.js → chunk-UYMTAFHG.js} +4 -6
- package/dist/{chunk-XE2K53GH.cjs → chunk-VGXAZEQP.cjs} +17 -17
- package/dist/{chunk-3LY7V3RF.js → chunk-VIFVSFYY.js} +2 -2
- package/dist/{chunk-LODMNSQY.cjs → chunk-WSMOTZRJ.cjs} +11 -11
- package/dist/{chunk-CO3FOZIH.js → chunk-WVA7SCLY.js} +1 -1
- package/dist/{chunk-ZZEKXGFS.js → chunk-WY4SLTMZ.js} +2 -2
- package/dist/{chunk-NJ5TBTJG.js → chunk-XTG7W75B.js} +5 -5
- package/dist/{chunk-NMPVK53I.cjs → chunk-Y5H3M7OM.cjs} +23 -23
- package/dist/{chunk-E6SMMMKV.js → chunk-YGIUWQEN.js} +9 -9
- package/dist/{chunk-RQZQHLNS.cjs → chunk-YQOJOW2Z.cjs} +66 -66
- package/dist/{chunk-LGKMR7NZ.js → chunk-YUSA7IPD.js} +3 -3
- package/dist/{cloud-tenants-HZHKRUIW.cjs → cloud-tenants-3TVX7U23.cjs} +10 -10
- package/dist/{cloud-tenants-Q4TCJS5Y.js → cloud-tenants-N6KV2T7X.js} +9 -9
- package/dist/components/case-studies/index.cjs +23 -23
- package/dist/components/case-studies/index.js +10 -10
- package/dist/components/chat/index.cjs +7 -7
- package/dist/components/chat/index.js +6 -6
- package/dist/components/contact/index.cjs +11 -11
- package/dist/components/contact/index.js +10 -10
- package/dist/components/docs/index.cjs +14 -14
- package/dist/components/docs/index.js +13 -13
- package/dist/components/embeds/index.cjs +11 -11
- package/dist/components/embeds/index.js +10 -10
- package/dist/components/faq/index.cjs +11 -11
- package/dist/components/faq/index.js +10 -10
- package/dist/components/features/index.cjs +10 -10
- package/dist/components/features/index.js +9 -9
- package/dist/components/features/remote-session/remote-access-request-card.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.d.ts +19 -6
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +170 -151
- package/dist/components/help-center-pages/index.d.ts +1 -1
- package/dist/components/help-center-pages/index.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.js +88 -69
- package/dist/components/help-center-pages/trust-center-page.d.ts +34 -1
- package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/trust-center-sections.d.ts +1 -1
- package/dist/components/help-center-pages/trust-center-sections.d.ts.map +1 -1
- package/dist/components/index.cjs +66 -64
- package/dist/components/index.js +23 -21
- package/dist/components/meeting-scheduler/index.cjs +47 -47
- package/dist/components/meeting-scheduler/index.js +9 -9
- package/dist/components/navigation/index.cjs +13 -13
- package/dist/components/navigation/index.js +12 -12
- package/dist/components/onboarding-guides/index.cjs +13 -13
- package/dist/components/onboarding-guides/index.js +12 -12
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/product-demo/index.js +8 -8
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/tickets/index.js +13 -13
- package/dist/components/ui/data-attribution.d.ts +3 -1
- package/dist/components/ui/data-attribution.d.ts.map +1 -1
- package/dist/components/ui/download-button.d.ts +19 -0
- package/dist/components/ui/download-button.d.ts.map +1 -0
- package/dist/components/ui/index.cjs +12 -10
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +11 -9
- package/dist/components/ui/mobile-app-qr.d.ts +13 -15
- package/dist/components/ui/mobile-app-qr.d.ts.map +1 -1
- package/dist/{devices-NOUGVTES.js → devices-275UZZUS.js} +9 -9
- package/dist/{devices-6XHUFIC6.cjs → devices-MAALZ7DX.cjs} +11 -11
- package/dist/index.cjs +19 -19
- package/dist/index.js +23 -23
- package/dist/{knowledge-2YTUXQ2Z.js → knowledge-THXC2KC3.js} +9 -9
- package/dist/{knowledge-ANEKPMO2.cjs → knowledge-YMMULPPK.cjs} +11 -11
- package/dist/{logs-WVQIONUT.js → logs-GM2XBHYT.js} +9 -9
- package/dist/{logs-U3IB3HUM.cjs → logs-IBUKQOHS.cjs} +18 -18
- package/dist/{policies-UFRN2EQF.cjs → policies-J5GJXD6G.cjs} +14 -14
- package/dist/{policies-66EGDW2H.js → policies-NKMRK6RR.js} +9 -9
- package/dist/{remote-session-6WEUJZDC.js → remote-session-WCLR47RN.js} +4 -4
- package/dist/{remote-session-A75X5NPC.cjs → remote-session-Z2YCUPHU.cjs} +6 -6
- package/dist/{software-update-3ZD3MXF3.js → software-update-EKKMKDWI.js} +9 -9
- package/dist/{software-update-2MHKL76D.cjs → software-update-JHC4T4SE.cjs} +14 -14
- package/dist/{tickets-board-IFWMIZ35.cjs → tickets-board-R5OQSEEC.cjs} +8 -8
- package/dist/{tickets-board-MYXG3V72.js → tickets-board-U3RF3AO4.js} +3 -3
- package/dist/types/downloads.d.ts +16 -0
- package/dist/types/downloads.d.ts.map +1 -1
- package/dist/types/index.cjs +27 -2
- package/dist/types/index.js +25 -3
- package/dist/types/trust-center.d.ts +19 -2
- package/dist/types/trust-center.d.ts.map +1 -1
- package/dist/utils/format.d.ts +11 -0
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/index.cjs +4 -9
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +4 -7
- package/dist/utils/mobile-app.cjs +0 -9
- package/dist/utils/mobile-app.d.ts +8 -25
- package/dist/utils/mobile-app.d.ts.map +1 -1
- package/dist/utils/mobile-app.js +1 -7
- package/package.json +1 -1
- package/src/assets/index.ts +0 -1
- package/src/components/features/remote-session/remote-access-request-card.tsx +6 -6
- package/src/components/help-center-pages/download-apps-page.tsx +53 -29
- package/src/components/help-center-pages/index.ts +1 -1
- package/src/components/help-center-pages/trust-center-page.tsx +50 -29
- package/src/components/help-center-pages/trust-center-sections.tsx +2 -2
- package/src/components/ui/data-attribution.tsx +19 -6
- package/src/components/ui/download-button.tsx +34 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/mobile-app-qr.tsx +17 -22
- package/src/types/downloads.ts +17 -0
- package/src/types/trust-center.ts +52 -4
- package/src/utils/format.ts +15 -0
- package/src/utils/index.ts +1 -1
- package/src/utils/mobile-app.ts +8 -31
- package/dist/assets/mobile-app-qr.d.ts +0 -17
- package/dist/assets/mobile-app-qr.d.ts.map +0 -1
- package/src/assets/mobile-app-qr.ts +0 -19
|
@@ -10,7 +10,7 @@ var _chunkA6P6DHEZcjs = require('./chunk-A6P6DHEZ.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkFDWYBJYDcjs = require('./chunk-FDWYBJYD.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -23,7 +23,8 @@ var _chunkRUZIICXTcjs = require('./chunk-RUZIICXT.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
var _chunkTKFTWM3Vcjs = require('./chunk-TKFTWM3V.cjs');
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
var _chunkMGHIV4L6cjs = require('./chunk-MGHIV4L6.cjs');
|
|
@@ -180,7 +181,7 @@ function TruncateText({
|
|
|
180
181
|
const { ref, isTruncated } = _chunkULWVKHSIcjs.useIsTruncated.call(void 0, children, { multiline: isMultiLine });
|
|
181
182
|
const clampClass = isMultiLine ? LINE_CLAMP_CLASS[lines] : "truncate block";
|
|
182
183
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
183
|
-
|
|
184
|
+
_chunkTKFTWM3Vcjs.FloatingTooltip,
|
|
184
185
|
{
|
|
185
186
|
content: _nullishCoalesce(tooltip, () => ( children)),
|
|
186
187
|
side,
|
|
@@ -507,7 +508,7 @@ function AutocompleteInner(props, ref) {
|
|
|
507
508
|
),
|
|
508
509
|
children: [
|
|
509
510
|
multiple && visibleTags.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
510
|
-
|
|
511
|
+
_chunkTKFTWM3Vcjs.Tag,
|
|
511
512
|
{
|
|
512
513
|
variant: "outline",
|
|
513
514
|
className: wrapTags ? "max-w-full" : void 0,
|
|
@@ -732,7 +733,7 @@ function AutocompleteInner(props, ref) {
|
|
|
732
733
|
"aria-hidden": "true",
|
|
733
734
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-2",
|
|
734
735
|
children: selectedOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
735
|
-
|
|
736
|
+
_chunkTKFTWM3Vcjs.Tag,
|
|
736
737
|
{
|
|
737
738
|
variant: "outline",
|
|
738
739
|
labelClassName: "max-w-[90px] truncate",
|
|
@@ -1216,7 +1217,7 @@ function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
|
1216
1217
|
const [failedSrc, setFailedSrc] = _react2.default.useState(null);
|
|
1217
1218
|
const imageFailed = resolvedSrc !== void 0 && failedSrc === resolvedSrc;
|
|
1218
1219
|
const showFallback = imageFailed || !resolvedSrc;
|
|
1219
|
-
const initials =
|
|
1220
|
+
const initials = _chunkTKFTWM3Vcjs.personInitials.call(void 0, _nullishCoalesce(fallbackText, () => ( alt)));
|
|
1220
1221
|
if (showFallback) {
|
|
1221
1222
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1222
1223
|
"div",
|
|
@@ -1327,7 +1328,7 @@ function TitleBlock({
|
|
|
1327
1328
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
1328
1329
|
(loading || title) && (titleAdornment ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-m)]", children: [
|
|
1329
1330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1330
|
-
|
|
1331
|
+
_chunkTKFTWM3Vcjs.FloatingTooltip,
|
|
1331
1332
|
{
|
|
1332
1333
|
content: title,
|
|
1333
1334
|
side: "bottom",
|
|
@@ -1344,12 +1345,12 @@ function TitleBlock({
|
|
|
1344
1345
|
}
|
|
1345
1346
|
),
|
|
1346
1347
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: titleAdornment })
|
|
1347
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1348
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTKFTWM3Vcjs.FloatingTooltip, { content: title, side: "bottom", disabled: !titleTruncated, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { ref: titleRef, className: _chunk3ATAYP36cjs.cn.call(void 0, titleClass, "text-ods-text-primary", titleOverflowClass), children: titleNode }) })),
|
|
1348
1349
|
hasSubtitleRow && /* The NBSP is a pure spacer, reached only in `'always'` mode: an
|
|
1349
1350
|
empty `p` collapses to zero height (its only content would be
|
|
1350
1351
|
collapsible whitespace), which is exactly the shift that mode
|
|
1351
1352
|
exists to prevent. Hidden from AT — it carries no meaning. */
|
|
1352
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1353
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTKFTWM3Vcjs.FloatingTooltip, { content: subtitle, side: "bottom", disabled: !subtitleTruncated, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1353
1354
|
"p",
|
|
1354
1355
|
{
|
|
1355
1356
|
ref: subtitleRef,
|
|
@@ -1360,7 +1361,7 @@ function TitleBlock({
|
|
|
1360
1361
|
) })
|
|
1361
1362
|
] })
|
|
1362
1363
|
] }) : title && (titleAdornment ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-m)]", children: [
|
|
1363
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1364
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTKFTWM3Vcjs.FloatingTooltip, { content: title, side: "bottom", disabled: !titleTruncated, triggerClassName: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { ref: titleRef, className: _chunk3ATAYP36cjs.cn.call(void 0, titleClass, "min-w-0 text-ods-text-primary", titleOverflowClass), children: title }) }),
|
|
1364
1365
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: titleAdornment })
|
|
1365
1366
|
] }) : (
|
|
1366
1367
|
/* This branch never had the single-line clamp, so text already
|
|
@@ -1479,7 +1480,7 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1479
1480
|
children: [
|
|
1480
1481
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center", children: [
|
|
1481
1482
|
faces.map((viewer, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1482
|
-
|
|
1483
|
+
_chunkTKFTWM3Vcjs.SquareAvatar,
|
|
1483
1484
|
{
|
|
1484
1485
|
variant: "round",
|
|
1485
1486
|
sizePx: 32,
|
|
@@ -1513,7 +1514,7 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1513
1514
|
),
|
|
1514
1515
|
children: [
|
|
1515
1516
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1516
|
-
|
|
1517
|
+
_chunkTKFTWM3Vcjs.SquareAvatar,
|
|
1517
1518
|
{
|
|
1518
1519
|
variant: "round",
|
|
1519
1520
|
sizePx: 24,
|
|
@@ -1559,7 +1560,7 @@ function RemoteSessionScope({ children, className }) {
|
|
|
1559
1560
|
function RemoteSessionOrgLogo({ name, logoUrl, sizePx, className }) {
|
|
1560
1561
|
if (logoUrl) {
|
|
1561
1562
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1562
|
-
|
|
1563
|
+
_chunkTKFTWM3Vcjs.SquareAvatar,
|
|
1563
1564
|
{
|
|
1564
1565
|
variant: "square",
|
|
1565
1566
|
fit: "contain",
|
|
@@ -1645,9 +1646,6 @@ function useRemoteSessionTimer(startedAt) {
|
|
|
1645
1646
|
|
|
1646
1647
|
// src/components/features/remote-session/remote-access-request-card.tsx
|
|
1647
1648
|
|
|
1648
|
-
function displaySiteUrl(url) {
|
|
1649
|
-
return url.replace(/^https?:\/\//, "").replace(/\/$/, "");
|
|
1650
|
-
}
|
|
1651
1649
|
function RemoteAccessRequestCard({
|
|
1652
1650
|
party,
|
|
1653
1651
|
showRecordingNotice = false,
|
|
@@ -1665,7 +1663,7 @@ function RemoteAccessRequestCard({
|
|
|
1665
1663
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteSessionOrgLogo, { name: organizationName, logoUrl: party.organizationLogoUrl, sizePx: 64 }),
|
|
1666
1664
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
1667
1665
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-primary text-h3", children: organizationName }),
|
|
1668
|
-
siteUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-secondary text-h4", children:
|
|
1666
|
+
siteUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-secondary text-h4", children: _chunkTKFTWM3Vcjs.formatUrlForDisplay.call(void 0, siteUrl, { keepWww: true }) })
|
|
1669
1667
|
] }),
|
|
1670
1668
|
openableSite && onOpenSite && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { variant: "outline", size: "icon", "aria-label": "Open website", onClick: () => onOpenSite(openableSite), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.ExternalLinkIcon, { size: 24, color: "currentColor" }) })
|
|
1671
1669
|
] }),
|
|
@@ -1777,7 +1775,7 @@ function RemoteSessionSummary({
|
|
|
1777
1775
|
...dragHandlers,
|
|
1778
1776
|
children: [
|
|
1779
1777
|
technician ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1780
|
-
|
|
1778
|
+
_chunkTKFTWM3Vcjs.SquareAvatar,
|
|
1781
1779
|
{
|
|
1782
1780
|
variant: "round",
|
|
1783
1781
|
sizePx: 48,
|
|
@@ -1833,7 +1831,7 @@ var RemoteSessionMinimizedChip = _react.forwardRef.call(void 0,
|
|
|
1833
1831
|
...dragHandlers,
|
|
1834
1832
|
children: [
|
|
1835
1833
|
technician ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1836
|
-
|
|
1834
|
+
_chunkTKFTWM3Vcjs.SquareAvatar,
|
|
1837
1835
|
{
|
|
1838
1836
|
sizePx: 48,
|
|
1839
1837
|
src: _nullishCoalesce(party.technicianAvatarUrl, () => ( void 0)),
|
|
@@ -1983,7 +1981,7 @@ function RemoteSessionChatMessageRow({
|
|
|
1983
1981
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
1984
1982
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xs)]", children: [
|
|
1985
1983
|
isTechnician && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1986
|
-
|
|
1984
|
+
_chunkTKFTWM3Vcjs.SquareAvatar,
|
|
1987
1985
|
{
|
|
1988
1986
|
variant: "round",
|
|
1989
1987
|
sizePx: 16,
|
|
@@ -2018,7 +2016,7 @@ function RemoteDesktopChatMessageRow({
|
|
|
2018
2016
|
}) {
|
|
2019
2017
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-[var(--spacing-system-xxs)]", children: [
|
|
2020
2018
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
2021
|
-
isTechnician && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2019
|
+
isTechnician && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTKFTWM3Vcjs.SquareAvatar, { variant: "round", sizePx: 24, src: avatarUrl, alt: authorName, className: "shrink-0" }),
|
|
2022
2020
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2023
2021
|
"span",
|
|
2024
2022
|
{
|
|
@@ -2029,7 +2027,7 @@ function RemoteDesktopChatMessageRow({
|
|
|
2029
2027
|
children: authorName
|
|
2030
2028
|
}
|
|
2031
2029
|
),
|
|
2032
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children:
|
|
2030
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children: _chunkFDWYBJYDcjs.formatTime.call(void 0, sentAt) })
|
|
2033
2031
|
] }),
|
|
2034
2032
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "whitespace-pre-wrap text-ods-text-primary text-h4", children: body })
|
|
2035
2033
|
] });
|
|
@@ -2074,7 +2072,7 @@ function RemoteDesktopChatPanel({
|
|
|
2074
2072
|
message.id
|
|
2075
2073
|
)) }) }),
|
|
2076
2074
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2077
|
-
|
|
2075
|
+
_chunkFDWYBJYDcjs.ChatInput,
|
|
2078
2076
|
{
|
|
2079
2077
|
placeholder: "Enter your Message...",
|
|
2080
2078
|
onSend,
|
|
@@ -2431,9 +2429,9 @@ function KeepRecordingModal({
|
|
|
2431
2429
|
if (!canKeep || isPending) return;
|
|
2432
2430
|
onConfirm({ reason, description: reason === "OTHER" ? trimmed : null });
|
|
2433
2431
|
};
|
|
2434
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2432
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFDWYBJYDcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2435
2433
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2436
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2434
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFDWYBJYDcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFDWYBJYDcjs.ModalTitle, { children: "Keep this recording" }) }),
|
|
2437
2435
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2438
2436
|
KeepNotice,
|
|
2439
2437
|
{
|
|
@@ -2471,7 +2469,7 @@ function KeepRecordingModal({
|
|
|
2471
2469
|
}
|
|
2472
2470
|
)
|
|
2473
2471
|
] }),
|
|
2474
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2472
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFDWYBJYDcjs.ModalFooter, { children: [
|
|
2475
2473
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2476
2474
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2477
2475
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2501,9 +2499,9 @@ function ReleaseKeepingModal({
|
|
|
2501
2499
|
isPending = false,
|
|
2502
2500
|
onConfirm
|
|
2503
2501
|
}) {
|
|
2504
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2502
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFDWYBJYDcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2505
2503
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2506
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2504
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFDWYBJYDcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFDWYBJYDcjs.ModalTitle, { children: "Release Keeping" }) }),
|
|
2507
2505
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xsf)] text-ods-text-primary text-h4", children: [
|
|
2508
2506
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { children: [
|
|
2509
2507
|
"Kept by ",
|
|
@@ -2520,7 +2518,7 @@ function ReleaseKeepingModal({
|
|
|
2520
2518
|
] })
|
|
2521
2519
|
] }),
|
|
2522
2520
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, KeepNotice, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.HourglassIcon, { size: 24, color: "currentColor" }), title: `It will expire on ${expiresOn}`, children: dueOn ? `It was due to expire on ${dueOn}. Releasing gives it 3 days' grace, and it shows amber until then. Whoever placed the Keep is reminded the day before it goes. Nothing is deleted now.` : "Nothing is deleted now." }),
|
|
2523
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2521
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFDWYBJYDcjs.ModalFooter, { children: [
|
|
2524
2522
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2525
2523
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2526
2524
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { type: "button", variant: "accent", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Release Keeping" })
|
|
@@ -2562,9 +2560,9 @@ function AssignTicketModal({
|
|
|
2562
2560
|
if (ticketIds.length === 0 || isPending) return;
|
|
2563
2561
|
onConfirm(ticketIds);
|
|
2564
2562
|
};
|
|
2565
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2563
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFDWYBJYDcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2566
2564
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2567
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2565
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFDWYBJYDcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFDWYBJYDcjs.ModalTitle, { children: "Assign Ticket" }) }),
|
|
2568
2566
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2569
2567
|
Autocomplete,
|
|
2570
2568
|
{
|
|
@@ -2583,7 +2581,7 @@ function AssignTicketModal({
|
|
|
2583
2581
|
disabled: isPending
|
|
2584
2582
|
}
|
|
2585
2583
|
),
|
|
2586
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2584
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFDWYBJYDcjs.ModalFooter, { children: [
|
|
2587
2585
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2588
2586
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2589
2587
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2602,11 +2600,11 @@ function AssignTicketModal({
|
|
|
2602
2600
|
] });
|
|
2603
2601
|
}
|
|
2604
2602
|
function UnassignTicketModal({ isOpen, onClose, isPending = false, onConfirm }) {
|
|
2605
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2603
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFDWYBJYDcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2606
2604
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2607
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2605
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFDWYBJYDcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFDWYBJYDcjs.ModalTitle, { children: "Unassign Ticket" }) }),
|
|
2608
2606
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This Ticket will no longer be linked to this remote session. The ticket itself stays as it is, and you can assign it again anytime." }),
|
|
2609
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2607
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFDWYBJYDcjs.ModalFooter, { children: [
|
|
2610
2608
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2611
2609
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2612
2610
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { type: "button", variant: "destructive", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Unassign" })
|
|
@@ -2686,7 +2684,7 @@ var STATUS_TAG = {
|
|
|
2686
2684
|
function RemoteSessionStatusTag({ status, className }) {
|
|
2687
2685
|
const { label, variant } = STATUS_TAG[status];
|
|
2688
2686
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2689
|
-
|
|
2687
|
+
_chunkTKFTWM3Vcjs.Tag,
|
|
2690
2688
|
{
|
|
2691
2689
|
label,
|
|
2692
2690
|
variant,
|
|
@@ -3,31 +3,31 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6QTGLBJHcjs = require('./chunk-6QTGLBJH.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk2MC4DRSCcjs = require('./chunk-2MC4DRSC.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkWSMOTZRJcjs = require('./chunk-WSMOTZRJ.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkMWLVYYRXcjs = require('./chunk-MWLVYYRX.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkNFABAOMDcjs = require('./chunk-NFABAOMD.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkOWRD2GZUcjs = require('./chunk-OWRD2GZU.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -339,8 +339,8 @@ function toDocContent(value, requestedPath) {
|
|
|
339
339
|
}
|
|
340
340
|
function useDocumentTree(config, initialPath) {
|
|
341
341
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
342
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
343
|
-
const cleanInitialPath =
|
|
342
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkOWRD2GZUcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
343
|
+
const cleanInitialPath = _chunkOWRD2GZUcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
344
344
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
345
345
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
346
346
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -364,12 +364,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
364
364
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
365
365
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
366
366
|
}
|
|
367
|
-
pathFromUrl =
|
|
367
|
+
pathFromUrl = _chunkOWRD2GZUcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
368
368
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
369
369
|
setSelectedPath(pathFromUrl);
|
|
370
370
|
if (pathFromUrl) {
|
|
371
371
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
372
|
-
setExpandedNodes(new Set(
|
|
372
|
+
setExpandedNodes(new Set(_chunkOWRD2GZUcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
373
373
|
}
|
|
374
374
|
setTimeout(() => {
|
|
375
375
|
scrollToContent();
|
|
@@ -387,7 +387,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
387
387
|
setSelectedPath(cleanInitialPath);
|
|
388
388
|
if (cleanInitialPath) {
|
|
389
389
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
390
|
-
setExpandedNodes(new Set(
|
|
390
|
+
setExpandedNodes(new Set(_chunkOWRD2GZUcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
391
391
|
}
|
|
392
392
|
setExternalNavCount((n) => n + 1);
|
|
393
393
|
}
|
|
@@ -412,7 +412,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
412
412
|
if (cleanInitialPath) {
|
|
413
413
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
414
414
|
if (pathForExpansion) {
|
|
415
|
-
setExpandedNodes(new Set(
|
|
415
|
+
setExpandedNodes(new Set(_chunkOWRD2GZUcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
416
416
|
}
|
|
417
417
|
} else if (nodes.length > 0) {
|
|
418
418
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -452,7 +452,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
452
452
|
setContent(null);
|
|
453
453
|
return;
|
|
454
454
|
}
|
|
455
|
-
const probe =
|
|
455
|
+
const probe = _chunkOWRD2GZUcjs.findDocNodeByPath.call(void 0, _chunkOWRD2GZUcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
456
456
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
457
457
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
458
458
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -509,7 +509,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
509
509
|
if (selectedPath === "") {
|
|
510
510
|
pathToFetch = folderIndexFile;
|
|
511
511
|
} else {
|
|
512
|
-
const node =
|
|
512
|
+
const node = _chunkOWRD2GZUcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
513
513
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
514
514
|
const firstDocPath = findFirstDocPath(node);
|
|
515
515
|
if (!firstDocPath) {
|
|
@@ -550,16 +550,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
550
550
|
if (node.type === "folder") {
|
|
551
551
|
setExpandedNodes((prev) => {
|
|
552
552
|
if (prev.has(node.id)) {
|
|
553
|
-
const ancestorIds =
|
|
553
|
+
const ancestorIds = _chunkOWRD2GZUcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
554
554
|
ancestorIds.pop();
|
|
555
555
|
return new Set(ancestorIds);
|
|
556
556
|
}
|
|
557
|
-
return new Set(
|
|
557
|
+
return new Set(_chunkOWRD2GZUcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
558
558
|
});
|
|
559
559
|
} else {
|
|
560
560
|
const lastSlash = node.path.lastIndexOf("/");
|
|
561
561
|
if (lastSlash > 0) {
|
|
562
|
-
setExpandedNodes(new Set(
|
|
562
|
+
setExpandedNodes(new Set(_chunkOWRD2GZUcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
lastFetchedPath.current = null;
|
|
@@ -574,7 +574,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
574
574
|
const hashIndex = path.indexOf("#");
|
|
575
575
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
576
576
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
577
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
577
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkOWRD2GZUcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
578
578
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
579
579
|
_chunkK2JUJ37Dcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkK2JUJ37Dcjs.HUB_HEADER_OFFSET_PX });
|
|
580
580
|
return;
|
|
@@ -638,15 +638,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
638
638
|
return docNavigation.register({
|
|
639
639
|
baseRoute: normalizedBaseRoute,
|
|
640
640
|
findNodeByPath: (path) => {
|
|
641
|
-
const clean =
|
|
642
|
-
return _nullishCoalesce(
|
|
641
|
+
const clean = _chunkOWRD2GZUcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
642
|
+
return _nullishCoalesce(_chunkOWRD2GZUcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
643
643
|
},
|
|
644
644
|
selectNode
|
|
645
645
|
});
|
|
646
646
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
647
647
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
648
648
|
if (!selectedPath || structure.length === 0) return false;
|
|
649
|
-
const node =
|
|
649
|
+
const node = _chunkOWRD2GZUcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
650
650
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
651
651
|
}, [selectedPath, structure]);
|
|
652
652
|
return {
|
|
@@ -726,14 +726,14 @@ function DocViewerContent({
|
|
|
726
726
|
},
|
|
727
727
|
docPath
|
|
728
728
|
);
|
|
729
|
-
const { activeSection, handleSectionClick } =
|
|
729
|
+
const { activeSection, handleSectionClick } = _chunk2MC4DRSCcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
730
730
|
const docNav = useDocNavigation();
|
|
731
731
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
732
732
|
const backCfg = backButton === false ? null : {
|
|
733
733
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
734
734
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
735
735
|
};
|
|
736
|
-
const docSearch =
|
|
736
|
+
const docSearch = _chunkWSMOTZRJcjs.useDocSearch.call(void 0, {
|
|
737
737
|
source: chatSource,
|
|
738
738
|
baseRoute,
|
|
739
739
|
searchEndpoint,
|
|
@@ -757,7 +757,7 @@ function DocViewerContent({
|
|
|
757
757
|
onResolveLink: resolveLink
|
|
758
758
|
});
|
|
759
759
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
760
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
760
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkOWRD2GZUcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
761
761
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
762
762
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
763
763
|
const showStickyNav = isMarkdownContent;
|
|
@@ -768,9 +768,9 @@ function DocViewerContent({
|
|
|
768
768
|
const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
|
|
769
769
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
770
770
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
771
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
771
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNFABAOMDcjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
|
|
772
772
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
773
|
-
|
|
773
|
+
_chunkWSMOTZRJcjs.DocSearchBar,
|
|
774
774
|
{
|
|
775
775
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
|
|
776
776
|
query: docSearch.query,
|
|
@@ -789,9 +789,9 @@ function DocViewerContent({
|
|
|
789
789
|
] })
|
|
790
790
|
] }) }),
|
|
791
791
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 content-lg:flex-row content-lg:gap-10", children: [
|
|
792
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
792
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMWLVYYRXcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
793
793
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
794
|
-
|
|
794
|
+
_chunk2MC4DRSCcjs.MobileNavigationDropdown,
|
|
795
795
|
{
|
|
796
796
|
nodes: structure,
|
|
797
797
|
selectedPath,
|
|
@@ -805,7 +805,7 @@ function DocViewerContent({
|
|
|
805
805
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
806
806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
807
807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
808
|
-
|
|
808
|
+
_chunk2MC4DRSCcjs.MultiLevelNavigation,
|
|
809
809
|
{
|
|
810
810
|
nodes: structure,
|
|
811
811
|
selectedPath,
|
|
@@ -844,7 +844,7 @@ function DocViewerContent({
|
|
|
844
844
|
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
845
845
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
846
846
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
847
|
-
|
|
847
|
+
_chunk2MC4DRSCcjs.StickySectionNav,
|
|
848
848
|
{
|
|
849
849
|
sections: stickyNavSections,
|
|
850
850
|
activeSection,
|
|
@@ -859,7 +859,7 @@ function DocViewerContent({
|
|
|
859
859
|
) })
|
|
860
860
|
] })
|
|
861
861
|
] }) }) });
|
|
862
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
862
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMWLVYYRXcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
863
863
|
}
|
|
864
864
|
|
|
865
865
|
// src/components/docs/skeletons.tsx
|
|
@@ -955,11 +955,11 @@ function EmbedSkeleton({ documentType } = {}) {
|
|
|
955
955
|
|
|
956
956
|
var DEFAULT_TITLE = "Documents";
|
|
957
957
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
958
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
959
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
960
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
958
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6QTGLBJHcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
959
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6QTGLBJHcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
960
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMWLVYYRXcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
961
961
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
-
|
|
962
|
+
_chunk6QTGLBJHcjs.FileDownloadCard,
|
|
963
963
|
{
|
|
964
964
|
fileName: content.fileName,
|
|
965
965
|
mimeType: content.mimeType,
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ArticleAuthorByline,
|
|
4
4
|
DetailPageSkeleton
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2VOPQJNR.js";
|
|
6
6
|
import {
|
|
7
7
|
DocSearchBar,
|
|
8
8
|
useDocSearch
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YUSA7IPD.js";
|
|
10
10
|
import {
|
|
11
11
|
EntityTagBadges,
|
|
12
12
|
FilterPillRow,
|
|
13
13
|
LoadError,
|
|
14
14
|
PageShell,
|
|
15
15
|
RichMarkdownRenderer
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-G6YNPBWV.js";
|
|
17
17
|
import {
|
|
18
18
|
PageLayout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UYMTAFHG.js";
|
|
20
20
|
import {
|
|
21
21
|
EntityVideoSection,
|
|
22
22
|
VideoBitesStrip,
|
|
23
23
|
resolveContentHref,
|
|
24
24
|
useCaptions
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IIBTYCEN.js";
|
|
26
26
|
import {
|
|
27
27
|
useRouter,
|
|
28
28
|
useSearchParams
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
toStripProfile,
|
|
35
35
|
useSelfFetch,
|
|
36
36
|
useVideoWarmup
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-PKS2QQJU.js";
|
|
38
38
|
import {
|
|
39
39
|
buildOgPlaceholderUrl
|
|
40
40
|
} from "./chunk-FSQQZFVG.js";
|