@flamingo-stack/openframe-frontend-core 0.0.750 → 0.0.752
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-OFO75R2O.cjs → chunk-35RU25PJ.cjs} +130 -130
- package/dist/{chunk-ALPRQ3ZX.cjs → chunk-3GG3QAPT.cjs} +15 -15
- package/dist/{chunk-7RCTOWBA.cjs → chunk-4OTCQEP3.cjs} +28 -28
- package/dist/{chunk-XJ3J4UIS.cjs → chunk-4PEG4JTM.cjs} +19 -19
- package/dist/{chunk-3TELPOVH.cjs → chunk-7OEVVMAU.cjs} +2 -2
- package/dist/{chunk-CNUZLOVA.cjs → chunk-7WEGXNNS.cjs} +40 -40
- package/dist/{chunk-C6LPOYDM.cjs → chunk-AG4HR6Z6.cjs} +8 -8
- package/dist/{chunk-V3UJ6NDR.cjs → chunk-EM4OEWCM.cjs} +171 -171
- package/dist/{chunk-HOEVD6EN.cjs → chunk-EUQJ7QHW.cjs} +4 -4
- package/dist/{chunk-FP6HAJQV.cjs → chunk-G44V3UGE.cjs} +105 -105
- package/dist/{chunk-2YXOD2KL.cjs → chunk-H3RYUTND.cjs} +5 -0
- package/dist/{chunk-JPUTILTV.cjs → chunk-IPVJAML5.cjs} +94 -94
- package/dist/{chunk-KVSEWACW.cjs → chunk-J5G4CF2V.cjs} +28 -28
- package/dist/{chunk-2J2OBP4N.cjs → chunk-JI6NRWCC.cjs} +21 -21
- package/dist/{chunk-4O2KYY4K.cjs → chunk-KBJSZFBZ.cjs} +3 -3
- package/dist/{chunk-G7SBHMRR.cjs → chunk-KHKPLOU4.cjs} +69 -39
- package/dist/{chunk-45YRDD7W.cjs → chunk-KUVYVAS2.cjs} +22 -22
- package/dist/{chunk-UGCRLRCT.cjs → chunk-NO5UJLLQ.cjs} +2 -5
- package/dist/{chunk-WZX26ODJ.cjs → chunk-OXCGQV6B.cjs} +152 -133
- package/dist/{chunk-FHT7SMA7.cjs → chunk-OXEAN3EQ.cjs} +47 -47
- package/dist/{chunk-E3KFEOFA.cjs → chunk-P4ODFQGA.cjs} +7 -7
- package/dist/{chunk-AW6GP3JK.cjs → chunk-RDH63XXW.cjs} +83 -83
- package/dist/{chunk-CLAJIQ7E.cjs → chunk-U2AE4UG7.cjs} +19 -19
- package/dist/{chunk-6KEJQR6L.cjs → chunk-VD3XBUQR.cjs} +797 -797
- package/dist/{chunk-4FWURR3W.cjs → chunk-VUWPLQBY.cjs} +2 -2
- package/dist/{chunk-YL62VAHC.cjs → chunk-WQCLN27R.cjs} +6 -6
- package/dist/{chunk-GVETSV7H.cjs → chunk-XADJG35G.cjs} +48 -48
- package/dist/{chunk-BO6ZOAPB.cjs → chunk-Y6PVZRYL.cjs} +12 -12
- package/dist/{chunk-DGEB5GUZ.cjs → chunk-ZVOXBSDP.cjs} +2 -2
- package/dist/{chunk-34TWK3JE.cjs → chunk-ZYRRRKSZ.cjs} +3 -3
- package/dist/{cloud-tenants-E4JSG3GH.cjs → cloud-tenants-WAOMZZQ2.cjs} +13 -13
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/hooks/use-jetstream-dialog-subscription.d.ts +7 -5
- package/dist/components/chat/hooks/use-jetstream-dialog-subscription.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-jetstream-dialog-subscription.js +33 -14
- package/dist/components/chat/index.cjs +8 -8
- package/dist/components/chat/types/api.types.d.ts +27 -8
- package/dist/components/chat/types/api.types.d.ts.map +1 -1
- package/dist/components/chat/types/network.types.d.ts +2 -1
- package/dist/components/chat/types/network.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +14 -14
- package/dist/components/docs/index.cjs +17 -17
- package/dist/components/embeds/index.cjs +14 -14
- package/dist/components/faq/index.cjs +15 -15
- package/dist/components/features/index.cjs +13 -13
- package/dist/components/help-center-pages/index.cjs +123 -123
- package/dist/components/index.cjs +64 -64
- package/dist/components/loading/loading-region.d.ts.map +1 -1
- package/dist/components/loading/loading-region.js +2 -5
- package/dist/components/loading/unified-skeleton.d.ts +2 -0
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +5 -0
- package/dist/components/meeting-scheduler/index.cjs +79 -79
- package/dist/components/navigation/index.cjs +16 -16
- package/dist/components/onboarding-guides/index.cjs +16 -16
- package/dist/components/product-demo/index.cjs +12 -12
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/file-manager/index.cjs +30 -30
- package/dist/components/ui/index.cjs +13 -13
- package/dist/{devices-AVRQGB2N.cjs → devices-VFEPXW2N.cjs} +14 -14
- package/dist/{embeddable-chat-SNYQSMS7.cjs → embeddable-chat-BYQBABDV.cjs} +74 -74
- package/dist/hooks/index.cjs +3 -3
- package/dist/index.cjs +17 -17
- package/dist/{knowledge-S3CNISQH.cjs → knowledge-4TE7AWZX.cjs} +14 -14
- package/dist/{logs-WDLOKDXT.cjs → logs-3B2P3JXN.cjs} +21 -21
- package/dist/nats/index.cjs +2 -2
- package/dist/nats/nats.d.ts +33 -7
- package/dist/nats/nats.d.ts.map +1 -1
- package/dist/nats/nats.js +41 -11
- package/dist/{policies-STML7NEZ.cjs → policies-DVI6V22X.cjs} +17 -17
- package/dist/{remote-session-ZKP2W3IS.cjs → remote-session-57DGC4X3.cjs} +6 -6
- package/dist/{scripts-HO53VYGX.cjs → scripts-JJ2BVYQ5.cjs} +20 -20
- package/dist/{software-update-4VTK7LWQ.cjs → software-update-BN23RATE.cjs} +17 -17
- package/dist/{tickets-board-BNW4AYFL.cjs → tickets-board-EP6L3BSV.cjs} +7 -7
- package/package.json +1 -1
- package/src/components/chat/hooks/use-jetstream-dialog-subscription.ts +59 -23
- package/src/components/chat/types/api.types.ts +27 -8
- package/src/components/chat/types/network.types.ts +2 -1
- package/src/components/loading/loading-region.tsx +4 -9
- package/src/components/loading/unified-skeleton.tsx +13 -0
- package/src/nats/nats.ts +91 -20
|
@@ -3,32 +3,32 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkKBJSZFBZcjs = require('./chunk-KBJSZFBZ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkP4ODFQGAcjs = require('./chunk-P4ODFQGA.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkY6PVZRYLcjs = require('./chunk-Y6PVZRYL.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkVD3XBUQRcjs = require('./chunk-VD3XBUQR.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkOXCGQV6Bcjs = require('./chunk-OXCGQV6B.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -46,10 +46,10 @@ var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
|
46
46
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkNO5UJLLQcjs = require('./chunk-NO5UJLLQ.cjs');
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkH3RYUTNDcjs = require('./chunk-H3RYUTND.cjs');
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
@@ -344,8 +344,8 @@ function toDocContent(value, requestedPath) {
|
|
|
344
344
|
}
|
|
345
345
|
function useDocumentTree(config, initialPath) {
|
|
346
346
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
347
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
348
|
-
const cleanInitialPath =
|
|
347
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkOXCGQV6Bcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
348
|
+
const cleanInitialPath = _chunkOXCGQV6Bcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
349
349
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
350
350
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
351
351
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -369,12 +369,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
369
369
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
370
370
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
371
371
|
}
|
|
372
|
-
pathFromUrl =
|
|
372
|
+
pathFromUrl = _chunkOXCGQV6Bcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
373
373
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
374
374
|
setSelectedPath(pathFromUrl);
|
|
375
375
|
if (pathFromUrl) {
|
|
376
376
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
377
|
-
setExpandedNodes(new Set(
|
|
377
|
+
setExpandedNodes(new Set(_chunkOXCGQV6Bcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
378
378
|
}
|
|
379
379
|
setTimeout(() => {
|
|
380
380
|
scrollToContent();
|
|
@@ -392,7 +392,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
392
392
|
setSelectedPath(cleanInitialPath);
|
|
393
393
|
if (cleanInitialPath) {
|
|
394
394
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
395
|
-
setExpandedNodes(new Set(
|
|
395
|
+
setExpandedNodes(new Set(_chunkOXCGQV6Bcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
396
396
|
}
|
|
397
397
|
setExternalNavCount((n) => n + 1);
|
|
398
398
|
}
|
|
@@ -417,7 +417,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
417
417
|
if (cleanInitialPath) {
|
|
418
418
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
419
419
|
if (pathForExpansion) {
|
|
420
|
-
setExpandedNodes(new Set(
|
|
420
|
+
setExpandedNodes(new Set(_chunkOXCGQV6Bcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
421
421
|
}
|
|
422
422
|
} else if (nodes.length > 0) {
|
|
423
423
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -457,7 +457,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
457
457
|
setContent(null);
|
|
458
458
|
return;
|
|
459
459
|
}
|
|
460
|
-
const probe =
|
|
460
|
+
const probe = _chunkOXCGQV6Bcjs.findDocNodeByPath.call(void 0, _chunkOXCGQV6Bcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
461
461
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
462
462
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
463
463
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -514,7 +514,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
514
514
|
if (selectedPath === "") {
|
|
515
515
|
pathToFetch = folderIndexFile;
|
|
516
516
|
} else {
|
|
517
|
-
const node =
|
|
517
|
+
const node = _chunkOXCGQV6Bcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
518
518
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
519
519
|
const firstDocPath = findFirstDocPath(node);
|
|
520
520
|
if (!firstDocPath) {
|
|
@@ -555,16 +555,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
555
555
|
if (node.type === "folder") {
|
|
556
556
|
setExpandedNodes((prev) => {
|
|
557
557
|
if (prev.has(node.id)) {
|
|
558
|
-
const ancestorIds =
|
|
558
|
+
const ancestorIds = _chunkOXCGQV6Bcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
559
559
|
ancestorIds.pop();
|
|
560
560
|
return new Set(ancestorIds);
|
|
561
561
|
}
|
|
562
|
-
return new Set(
|
|
562
|
+
return new Set(_chunkOXCGQV6Bcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
563
563
|
});
|
|
564
564
|
} else {
|
|
565
565
|
const lastSlash = node.path.lastIndexOf("/");
|
|
566
566
|
if (lastSlash > 0) {
|
|
567
|
-
setExpandedNodes(new Set(
|
|
567
|
+
setExpandedNodes(new Set(_chunkOXCGQV6Bcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
lastFetchedPath.current = null;
|
|
@@ -579,7 +579,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
579
579
|
const hashIndex = path.indexOf("#");
|
|
580
580
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
581
581
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
582
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
582
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkOXCGQV6Bcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
583
583
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
584
584
|
_chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkCSJO7ZGNcjs.HUB_HEADER_OFFSET_PX });
|
|
585
585
|
return;
|
|
@@ -643,15 +643,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
643
643
|
return docNavigation.register({
|
|
644
644
|
baseRoute: normalizedBaseRoute,
|
|
645
645
|
findNodeByPath: (path) => {
|
|
646
|
-
const clean =
|
|
647
|
-
return _nullishCoalesce(
|
|
646
|
+
const clean = _chunkOXCGQV6Bcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
647
|
+
return _nullishCoalesce(_chunkOXCGQV6Bcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
648
648
|
},
|
|
649
649
|
selectNode
|
|
650
650
|
});
|
|
651
651
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
652
652
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
653
653
|
if (!selectedPath || structure.length === 0) return false;
|
|
654
|
-
const node =
|
|
654
|
+
const node = _chunkOXCGQV6Bcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
655
655
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
656
656
|
}, [selectedPath, structure]);
|
|
657
657
|
return {
|
|
@@ -731,14 +731,14 @@ function DocViewerContent({
|
|
|
731
731
|
},
|
|
732
732
|
docPath
|
|
733
733
|
);
|
|
734
|
-
const { activeSection, handleSectionClick } =
|
|
734
|
+
const { activeSection, handleSectionClick } = _chunkP4ODFQGAcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
735
735
|
const docNav = useDocNavigation();
|
|
736
736
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
737
737
|
const backCfg = backButton === false ? null : {
|
|
738
738
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
739
739
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
740
740
|
};
|
|
741
|
-
const docSearch =
|
|
741
|
+
const docSearch = _chunkY6PVZRYLcjs.useDocSearch.call(void 0, {
|
|
742
742
|
source: chatSource,
|
|
743
743
|
baseRoute,
|
|
744
744
|
searchEndpoint,
|
|
@@ -762,7 +762,7 @@ function DocViewerContent({
|
|
|
762
762
|
onResolveLink: resolveLink
|
|
763
763
|
});
|
|
764
764
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
765
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
765
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkOXCGQV6Bcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
766
766
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
767
767
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
768
768
|
const showStickyNav = isMarkdownContent;
|
|
@@ -773,9 +773,9 @@ function DocViewerContent({
|
|
|
773
773
|
const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
|
|
774
774
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
775
775
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
776
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
776
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GG3QAPTcjs.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: [
|
|
777
777
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
778
|
-
|
|
778
|
+
_chunkY6PVZRYLcjs.DocSearchBar,
|
|
779
779
|
{
|
|
780
780
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
|
|
781
781
|
query: docSearch.query,
|
|
@@ -794,9 +794,9 @@ function DocViewerContent({
|
|
|
794
794
|
] })
|
|
795
795
|
] }) }),
|
|
796
796
|
!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: [
|
|
797
|
-
/* @__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,
|
|
797
|
+
/* @__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, _chunkVD3XBUQRcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
798
798
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
799
|
-
|
|
799
|
+
_chunkP4ODFQGAcjs.MobileNavigationDropdown,
|
|
800
800
|
{
|
|
801
801
|
nodes: structure,
|
|
802
802
|
selectedPath,
|
|
@@ -810,7 +810,7 @@ function DocViewerContent({
|
|
|
810
810
|
/* @__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: [
|
|
811
811
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
812
812
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
813
|
-
|
|
813
|
+
_chunkP4ODFQGAcjs.MultiLevelNavigation,
|
|
814
814
|
{
|
|
815
815
|
nodes: structure,
|
|
816
816
|
selectedPath,
|
|
@@ -836,12 +836,12 @@ function DocViewerContent({
|
|
|
836
836
|
children: [
|
|
837
837
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `w-full min-w-0 ${isMarkdownContent ? "mx-auto max-w-4xl" : ""}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "article", { className: "space-y-2", children: isLoadingContent || isLoadingStructure ? renderSkeleton(selectedNodeDocType) : !content ? /* @__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 text-h4", children: resolvedEmptyText }) }) : renderedContent }) }),
|
|
838
838
|
isMarkdownContent && (isLoadingContent || isLoadingStructure) && /* @__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: [
|
|
839
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
839
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "mb-5 h-[14px] w-28 rounded" }),
|
|
840
840
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-0", children: [130, 170, 190, 220, 110, 200, 80, 100, 120, 140, 90].map((w, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
841
841
|
"div",
|
|
842
842
|
{
|
|
843
843
|
className: `border-l-2 py-[13px] pl-3 ${i === 0 ? "border-ods-accent" : "border-transparent"}`,
|
|
844
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
844
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[13px] rounded", width: w })
|
|
845
845
|
},
|
|
846
846
|
i
|
|
847
847
|
)) })
|
|
@@ -849,7 +849,7 @@ function DocViewerContent({
|
|
|
849
849
|
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: [
|
|
850
850
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
851
851
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
852
|
-
|
|
852
|
+
_chunkP4ODFQGAcjs.StickySectionNav,
|
|
853
853
|
{
|
|
854
854
|
sections: stickyNavSections,
|
|
855
855
|
activeSection,
|
|
@@ -864,7 +864,7 @@ function DocViewerContent({
|
|
|
864
864
|
) })
|
|
865
865
|
] })
|
|
866
866
|
] }) }) });
|
|
867
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
867
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVD3XBUQRcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
868
868
|
}
|
|
869
869
|
|
|
870
870
|
// src/components/docs/skeletons.tsx
|
|
@@ -872,85 +872,85 @@ function DocViewerContent({
|
|
|
872
872
|
function MarkdownSkeleton({
|
|
873
873
|
region = true
|
|
874
874
|
} = {}) {
|
|
875
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
875
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNO5UJLLQcjs.LoadingRegion, { label: "Loading the document", announce: region, className: "mt-6 space-y-7", children: [
|
|
876
876
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-[14px]", children: [
|
|
877
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
878
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
879
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
880
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
877
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
878
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
879
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
880
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-3/4 rounded" })
|
|
881
881
|
] }),
|
|
882
882
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-[14px]", children: [
|
|
883
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
884
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
885
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
884
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
885
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-5/6 rounded" })
|
|
887
887
|
] }),
|
|
888
888
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-[14px]", children: [
|
|
889
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
891
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
892
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
893
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
889
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
890
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
891
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
892
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
893
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-2/3 rounded" })
|
|
894
894
|
] }),
|
|
895
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
896
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
895
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[88px] rounded-lg border border-ods-border" }),
|
|
896
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-7 w-1/3 rounded" }),
|
|
897
897
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-[14px]", children: [
|
|
898
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
899
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
900
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
901
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
898
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
899
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
900
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
901
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-[72%] rounded" })
|
|
902
902
|
] }),
|
|
903
903
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-[14px]", children: [
|
|
904
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
905
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
906
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
907
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
908
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
904
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
905
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
906
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
907
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
908
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-[58%] rounded" })
|
|
909
909
|
] }),
|
|
910
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
910
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-7 w-2/5 rounded" }),
|
|
911
911
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-[14px]", children: [
|
|
912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
914
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
912
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
914
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-[90%] rounded" })
|
|
915
915
|
] }),
|
|
916
916
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-[14px]", children: [
|
|
917
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
918
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
919
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
920
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
917
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
918
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
919
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-full rounded" }),
|
|
920
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[16px] w-[70%] rounded" })
|
|
921
921
|
] }),
|
|
922
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
922
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[88px] rounded-lg border border-ods-border" })
|
|
923
923
|
] });
|
|
924
924
|
}
|
|
925
925
|
function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
926
926
|
if (documentType === "file") {
|
|
927
927
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
928
|
-
|
|
928
|
+
_chunkNO5UJLLQcjs.LoadingRegion,
|
|
929
929
|
{
|
|
930
930
|
label: "Loading the document",
|
|
931
931
|
announce: region,
|
|
932
932
|
className: "flex flex-col items-center justify-center py-16",
|
|
933
933
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full max-w-md space-y-4 rounded-xl border border-ods-border bg-ods-card p-8 text-center", children: [
|
|
934
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
934
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "mx-auto h-16 w-16 rounded" }),
|
|
935
935
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
936
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
937
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
936
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "mx-auto h-5 w-2/3 rounded" }),
|
|
937
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "mx-auto h-4 w-1/2 rounded" })
|
|
938
938
|
] }),
|
|
939
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
939
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-10 w-full rounded" })
|
|
940
940
|
] })
|
|
941
941
|
}
|
|
942
942
|
);
|
|
943
943
|
}
|
|
944
944
|
const buttonCount = documentType === "pdf" ? 2 : 1;
|
|
945
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
945
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNO5UJLLQcjs.LoadingRegion, { label: "Loading the document", announce: region, className: "space-y-4", children: [
|
|
946
946
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-3 content-sm:flex-row content-sm:items-center content-sm:justify-between", children: [
|
|
947
947
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
948
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
949
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
948
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-5 w-5 shrink-0 rounded" }),
|
|
949
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-6 w-2/3 rounded" })
|
|
950
950
|
] }),
|
|
951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
951
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
|
|
952
952
|
] }),
|
|
953
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
953
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVD3XBUQRcjs.EmbedLoadingSkeleton, { region: false })
|
|
954
954
|
] });
|
|
955
955
|
}
|
|
956
956
|
|
|
@@ -958,11 +958,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
958
958
|
|
|
959
959
|
var DEFAULT_TITLE = "Documents";
|
|
960
960
|
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" }) });
|
|
961
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
963
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
961
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKBJSZFBZcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
962
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKBJSZFBZcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
963
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVD3XBUQRcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
964
964
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
965
|
-
|
|
965
|
+
_chunkKBJSZFBZcjs.FileDownloadCard,
|
|
966
966
|
{
|
|
967
967
|
fileName: content.fileName,
|
|
968
968
|
mimeType: content.mimeType,
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk35RU25PJcjs = require('./chunk-35RU25PJ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -17,13 +17,13 @@ var _chunkHOTM4UM6cjs = require('./chunk-HOTM4UM6.cjs');
|
|
|
17
17
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkNO5UJLLQcjs = require('./chunk-NO5UJLLQ.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkH3RYUTNDcjs = require('./chunk-H3RYUTND.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
@@ -37,12 +37,12 @@ function DetailPageSkeleton({
|
|
|
37
37
|
label = "Loading",
|
|
38
38
|
region = true
|
|
39
39
|
} = {}) {
|
|
40
|
-
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
41
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col gap-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
+
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNO5UJLLQcjs.LoadingRegion, { label, announce: region, className: "space-y-6 content-md:space-y-10", children: [
|
|
41
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col gap-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-16 w-full max-w-3xl rounded content-md:h-20" }) }),
|
|
42
42
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-wrap gap-2", children: [
|
|
43
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-8 w-32 rounded" }),
|
|
44
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-8 w-28 rounded" }),
|
|
45
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-8 w-36 rounded" })
|
|
46
46
|
] }),
|
|
47
47
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48
48
|
"div",
|
|
@@ -53,28 +53,28 @@ function DetailPageSkeleton({
|
|
|
53
53
|
{
|
|
54
54
|
className: "border-b border-ods-border bg-ods-card p-4 last:border-r-0 content-md:border-b-0 content-md:border-r",
|
|
55
55
|
children: [
|
|
56
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
57
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "mb-2 h-6 w-24 rounded" }),
|
|
57
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-5 w-20 rounded" })
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
60
|
i
|
|
61
61
|
))
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
|
-
showImageGallery && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full gap-6 overflow-x-auto", children: [1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
65
|
-
!showImageGallery && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
64
|
+
showImageGallery && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full gap-6 overflow-x-auto", children: [1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[200px] w-[240px] shrink-0 rounded-md border border-ods-border" }, i)) }),
|
|
65
|
+
!showImageGallery && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "aspect-[2560/1366] w-full rounded-md" }),
|
|
66
66
|
[1, 2, 3].map((section) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-6", children: [
|
|
67
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
67
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-16 w-64 rounded" }),
|
|
68
68
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-3", children: [
|
|
69
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
70
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
71
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
69
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-6 w-full rounded" }),
|
|
70
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-6 w-full rounded" }),
|
|
71
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-6 w-4/5 rounded" })
|
|
72
72
|
] })
|
|
73
73
|
] }, section))
|
|
74
74
|
] });
|
|
75
75
|
if (bare) return content;
|
|
76
76
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
77
|
-
|
|
77
|
+
_chunk3GG3QAPTcjs.PageLayout,
|
|
78
78
|
{
|
|
79
79
|
showHeader: false,
|
|
80
80
|
className: "mx-auto max-w-[1280px] bg-ods-bg px-6 py-6 content-md:px-20 content-md:py-10",
|
|
@@ -103,7 +103,7 @@ function ArticleAuthorByline({
|
|
|
103
103
|
}) {
|
|
104
104
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
105
105
|
if (!author) return null;
|
|
106
|
-
const proxiedAvatar = avatar ? proxyImageUrl ? proxyImageUrl(avatar) : _nullishCoalesce(
|
|
106
|
+
const proxiedAvatar = avatar ? proxyImageUrl ? proxyImageUrl(avatar) : _nullishCoalesce(_chunk35RU25PJcjs.getProxiedImageUrl.call(void 0, avatar, {
|
|
107
107
|
proxyPrefix: _optionalChain([runtime, 'optionalAccess', _2 => _2.endpoints, 'access', _3 => _3.imageProxyUrlPrefix]),
|
|
108
108
|
skipDomains: _optionalChain([runtime, 'optionalAccess', _4 => _4.endpoints, 'access', _5 => _5.imageProxySkipDomains]),
|
|
109
109
|
directHttps: true
|