@flamingo-stack/openframe-frontend-core 0.0.759 → 0.0.760
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-I4W4DQ6C.cjs → chunk-3LNKXYMI.cjs} +4 -4
- package/dist/{chunk-EFCX5SYN.cjs → chunk-4VRXTQVZ.cjs} +2 -2
- package/dist/{chunk-O75A3FBT.cjs → chunk-4ZMCKCXN.cjs} +36 -36
- package/dist/{chunk-6VDOHVYE.cjs → chunk-BDCEMTWU.cjs} +57 -57
- package/dist/{chunk-SYACKQYF.cjs → chunk-D2HMQUK5.cjs} +13 -13
- package/dist/{chunk-7ITYKDJN.cjs → chunk-EC7VXTJ3.cjs} +3 -3
- package/dist/{chunk-F7WIKBRI.cjs → chunk-EMKGOU54.cjs} +2 -2
- package/dist/{chunk-4IXA5CJT.cjs → chunk-EYVYPX5N.cjs} +76 -76
- package/dist/{chunk-DHFQECP3.cjs → chunk-GL5KJ4PK.cjs} +11 -11
- package/dist/{chunk-G7RDJACG.cjs → chunk-ITO3JRVB.cjs} +2 -2
- package/dist/{chunk-WBSYC6EY.cjs → chunk-NC4QUV73.cjs} +5 -5
- package/dist/{chunk-CDA2MY7U.cjs → chunk-PIV4FVTR.cjs} +10 -10
- package/dist/{chunk-XXM74P3N.cjs → chunk-PSLL4FAS.cjs} +1 -1
- package/dist/{chunk-S23DIVIP.cjs → chunk-QCXE7BSY.cjs} +23 -23
- package/dist/{chunk-SIOSQMIB.cjs → chunk-SULCTARW.cjs} +3 -3
- package/dist/{chunk-WGFTIEHY.cjs → chunk-UT4W73YG.cjs} +39 -39
- package/dist/{cloud-tenants-YUMG3O36.cjs → cloud-tenants-2NMXXIA6.cjs} +3 -3
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/chat/chat-sidebar.js +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/help-center-pages/index.cjs +53 -53
- package/dist/components/index.cjs +32 -32
- package/dist/components/meeting-scheduler/index.cjs +19 -19
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/navigation-sidebar-item.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/ui/index.cjs +3 -3
- package/dist/{devices-EFDFNWIV.cjs → devices-5XZVTD7G.cjs} +4 -4
- package/dist/index.cjs +7 -7
- package/dist/{knowledge-UT2XI45N.cjs → knowledge-7QSJQB4P.cjs} +3 -3
- package/dist/{logs-ZTYEI35Y.cjs → logs-URLNW334.cjs} +11 -11
- package/dist/{policies-S3IF2U3D.cjs → policies-NNW6PMAN.cjs} +7 -7
- package/dist/{scripts-IZWNCX5A.cjs → scripts-WPYKAZYF.cjs} +8 -8
- package/dist/{software-update-6T4GFJPA.cjs → software-update-KB6BIWUT.cjs} +6 -6
- package/package.json +1 -1
- package/src/components/chat/chat-sidebar.tsx +1 -1
- package/src/components/navigation/navigation-sidebar-item.tsx +1 -1
|
@@ -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 _chunkEC7VXTJ3cjs = require('./chunk-EC7VXTJ3.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkEYVYPX5Ncjs = require('./chunk-EYVYPX5N.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkAXBVN5SWcjs = require('./chunk-AXBVN5SW.cjs');
|
|
@@ -35,7 +35,7 @@ function FaqDocumentPage({
|
|
|
35
35
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
36
36
|
};
|
|
37
37
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
-
|
|
38
|
+
_chunkEC7VXTJ3cjs.FaqSection,
|
|
39
39
|
{
|
|
40
40
|
initialFaqs,
|
|
41
41
|
heading: null,
|
|
@@ -49,7 +49,7 @@ function FaqDocumentPage({
|
|
|
49
49
|
ask
|
|
50
50
|
}
|
|
51
51
|
) });
|
|
52
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYVYPX5Ncjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkEYVYPX5Ncjs = require('./chunk-EYVYPX5N.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -70,7 +70,7 @@ function DocSearchBar({
|
|
|
70
70
|
renderResult
|
|
71
71
|
}) {
|
|
72
72
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
73
|
-
|
|
73
|
+
_chunkEYVYPX5Ncjs.SearchInput,
|
|
74
74
|
{
|
|
75
75
|
placeholder,
|
|
76
76
|
value: query,
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSULCTARWcjs = require('./chunk-SULCTARW.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkITO3JRVBcjs = require('./chunk-ITO3JRVB.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk4VRXTQVZcjs = require('./chunk-4VRXTQVZ.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ var _chunkEFCX5SYNcjs = require('./chunk-EFCX5SYN.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkEYVYPX5Ncjs = require('./chunk-EYVYPX5N.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkAXBVN5SWcjs = require('./chunk-AXBVN5SW.cjs');
|
|
@@ -30,7 +30,7 @@ var _chunkAXBVN5SWcjs = require('./chunk-AXBVN5SW.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkPSLL4FAScjs = require('./chunk-PSLL4FAS.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -348,13 +348,13 @@ function toDocContent(value, requestedPath) {
|
|
|
348
348
|
function toDataSync(value) {
|
|
349
349
|
if (!isRecord(value)) return void 0;
|
|
350
350
|
const source = readString(value, "source");
|
|
351
|
-
if (!
|
|
351
|
+
if (!_chunkEYVYPX5Ncjs.isDataSyncSource.call(void 0, source)) return void 0;
|
|
352
352
|
return { source, syncedAt: _nullishCoalesce(readString(value, "syncedAt"), () => ( null)) };
|
|
353
353
|
}
|
|
354
354
|
function useDocumentTree(config, initialPath) {
|
|
355
355
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
356
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
357
|
-
const cleanInitialPath =
|
|
356
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkPSLL4FAScjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
357
|
+
const cleanInitialPath = _chunkPSLL4FAScjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
358
358
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
359
359
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
360
360
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -378,12 +378,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
378
378
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
379
379
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
380
380
|
}
|
|
381
|
-
pathFromUrl =
|
|
381
|
+
pathFromUrl = _chunkPSLL4FAScjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
382
382
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
383
383
|
setSelectedPath(pathFromUrl);
|
|
384
384
|
if (pathFromUrl) {
|
|
385
385
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
386
|
-
setExpandedNodes(new Set(
|
|
386
|
+
setExpandedNodes(new Set(_chunkPSLL4FAScjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
387
387
|
}
|
|
388
388
|
setTimeout(() => {
|
|
389
389
|
scrollToContent();
|
|
@@ -401,7 +401,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
401
401
|
setSelectedPath(cleanInitialPath);
|
|
402
402
|
if (cleanInitialPath) {
|
|
403
403
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
404
|
-
setExpandedNodes(new Set(
|
|
404
|
+
setExpandedNodes(new Set(_chunkPSLL4FAScjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
405
405
|
}
|
|
406
406
|
setExternalNavCount((n) => n + 1);
|
|
407
407
|
}
|
|
@@ -426,7 +426,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
426
426
|
if (cleanInitialPath) {
|
|
427
427
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
428
428
|
if (pathForExpansion) {
|
|
429
|
-
setExpandedNodes(new Set(
|
|
429
|
+
setExpandedNodes(new Set(_chunkPSLL4FAScjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
430
430
|
}
|
|
431
431
|
} else if (nodes.length > 0) {
|
|
432
432
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -466,7 +466,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
466
466
|
setContent(null);
|
|
467
467
|
return;
|
|
468
468
|
}
|
|
469
|
-
const probe =
|
|
469
|
+
const probe = _chunkPSLL4FAScjs.findDocNodeByPath.call(void 0, _chunkPSLL4FAScjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
470
470
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
471
471
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
472
472
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -523,7 +523,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
523
523
|
if (selectedPath === "") {
|
|
524
524
|
pathToFetch = folderIndexFile;
|
|
525
525
|
} else {
|
|
526
|
-
const node =
|
|
526
|
+
const node = _chunkPSLL4FAScjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
527
527
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
528
528
|
const firstDocPath = findFirstDocPath(node);
|
|
529
529
|
if (!firstDocPath) {
|
|
@@ -564,16 +564,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
564
564
|
if (node.type === "folder") {
|
|
565
565
|
setExpandedNodes((prev) => {
|
|
566
566
|
if (prev.has(node.id)) {
|
|
567
|
-
const ancestorIds =
|
|
567
|
+
const ancestorIds = _chunkPSLL4FAScjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
568
568
|
ancestorIds.pop();
|
|
569
569
|
return new Set(ancestorIds);
|
|
570
570
|
}
|
|
571
|
-
return new Set(
|
|
571
|
+
return new Set(_chunkPSLL4FAScjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
572
572
|
});
|
|
573
573
|
} else {
|
|
574
574
|
const lastSlash = node.path.lastIndexOf("/");
|
|
575
575
|
if (lastSlash > 0) {
|
|
576
|
-
setExpandedNodes(new Set(
|
|
576
|
+
setExpandedNodes(new Set(_chunkPSLL4FAScjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
lastFetchedPath.current = null;
|
|
@@ -588,7 +588,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
588
588
|
const hashIndex = path.indexOf("#");
|
|
589
589
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
590
590
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
591
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
591
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkPSLL4FAScjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
592
592
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
593
593
|
_chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkCSJO7ZGNcjs.HUB_HEADER_OFFSET_PX });
|
|
594
594
|
return;
|
|
@@ -652,15 +652,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
652
652
|
return docNavigation.register({
|
|
653
653
|
baseRoute: normalizedBaseRoute,
|
|
654
654
|
findNodeByPath: (path) => {
|
|
655
|
-
const clean =
|
|
656
|
-
return _nullishCoalesce(
|
|
655
|
+
const clean = _chunkPSLL4FAScjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
656
|
+
return _nullishCoalesce(_chunkPSLL4FAScjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
657
657
|
},
|
|
658
658
|
selectNode
|
|
659
659
|
});
|
|
660
660
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
661
661
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
662
662
|
if (!selectedPath || structure.length === 0) return false;
|
|
663
|
-
const node =
|
|
663
|
+
const node = _chunkPSLL4FAScjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
664
664
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
665
665
|
}, [selectedPath, structure]);
|
|
666
666
|
return {
|
|
@@ -741,14 +741,14 @@ function DocViewerContent({
|
|
|
741
741
|
},
|
|
742
742
|
docPath
|
|
743
743
|
);
|
|
744
|
-
const { activeSection, handleSectionClick } =
|
|
744
|
+
const { activeSection, handleSectionClick } = _chunkITO3JRVBcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
745
745
|
const docNav = useDocNavigation();
|
|
746
746
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
747
747
|
const backCfg = backButton === false ? null : {
|
|
748
748
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
749
749
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
750
750
|
};
|
|
751
|
-
const docSearch =
|
|
751
|
+
const docSearch = _chunk4VRXTQVZcjs.useDocSearch.call(void 0, {
|
|
752
752
|
source: chatSource,
|
|
753
753
|
baseRoute,
|
|
754
754
|
searchEndpoint,
|
|
@@ -772,7 +772,7 @@ function DocViewerContent({
|
|
|
772
772
|
onResolveLink: resolveLink
|
|
773
773
|
});
|
|
774
774
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
775
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
775
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkPSLL4FAScjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
776
776
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
777
777
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
778
778
|
const showStickyNav = isMarkdownContent;
|
|
@@ -784,9 +784,9 @@ function DocViewerContent({
|
|
|
784
784
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
785
785
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
786
786
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.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: [
|
|
787
|
-
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
787
|
+
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYVYPX5Ncjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: isLoadingContent && !content }),
|
|
788
788
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
789
|
-
|
|
789
|
+
_chunk4VRXTQVZcjs.DocSearchBar,
|
|
790
790
|
{
|
|
791
791
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _20 => _20.toLowerCase, 'call', _21 => _21()]) || "documents"}...`,
|
|
792
792
|
query: docSearch.query,
|
|
@@ -805,9 +805,9 @@ function DocViewerContent({
|
|
|
805
805
|
] })
|
|
806
806
|
] }) }),
|
|
807
807
|
!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: [
|
|
808
|
-
/* @__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,
|
|
808
|
+
/* @__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, _chunkEYVYPX5Ncjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
809
809
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
810
|
-
|
|
810
|
+
_chunkITO3JRVBcjs.MobileNavigationDropdown,
|
|
811
811
|
{
|
|
812
812
|
nodes: structure,
|
|
813
813
|
selectedPath,
|
|
@@ -821,7 +821,7 @@ function DocViewerContent({
|
|
|
821
821
|
/* @__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: [
|
|
822
822
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
823
823
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
824
|
-
|
|
824
|
+
_chunkITO3JRVBcjs.MultiLevelNavigation,
|
|
825
825
|
{
|
|
826
826
|
nodes: structure,
|
|
827
827
|
selectedPath,
|
|
@@ -860,7 +860,7 @@ function DocViewerContent({
|
|
|
860
860
|
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: [
|
|
861
861
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
862
862
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
863
|
-
|
|
863
|
+
_chunkITO3JRVBcjs.StickySectionNav,
|
|
864
864
|
{
|
|
865
865
|
sections: stickyNavSections,
|
|
866
866
|
activeSection,
|
|
@@ -875,7 +875,7 @@ function DocViewerContent({
|
|
|
875
875
|
) })
|
|
876
876
|
] })
|
|
877
877
|
] }) }) });
|
|
878
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
878
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYVYPX5Ncjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
879
879
|
}
|
|
880
880
|
|
|
881
881
|
// src/components/docs/skeletons.tsx
|
|
@@ -961,7 +961,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
961
961
|
] }),
|
|
962
962
|
/* @__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)) })
|
|
963
963
|
] }),
|
|
964
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
964
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYVYPX5Ncjs.EmbedLoadingSkeleton, { region: false })
|
|
965
965
|
] });
|
|
966
966
|
}
|
|
967
967
|
|
|
@@ -969,11 +969,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
969
969
|
|
|
970
970
|
var DEFAULT_TITLE = "Documents";
|
|
971
971
|
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" }) });
|
|
972
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
973
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
974
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
972
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSULCTARWcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
973
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSULCTARWcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
974
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYVYPX5Ncjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
975
975
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
976
|
-
|
|
976
|
+
_chunkSULCTARWcjs.FileDownloadCard,
|
|
977
977
|
{
|
|
978
978
|
fileName: content.fileName,
|
|
979
979
|
mimeType: content.mimeType,
|