@flamingo-stack/openframe-frontend-core 0.0.686-2464.7467.1 → 0.0.686
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-JTC4RPS3.js → chunk-2G2CB7ZZ.js} +5 -5
- package/dist/{chunk-QIYQMEP3.cjs → chunk-3DO76UAB.cjs} +20 -20
- package/dist/{chunk-QIYQMEP3.cjs.map → chunk-3DO76UAB.cjs.map} +1 -1
- package/dist/{chunk-S6C5GBQ4.js → chunk-3NIZ2VLQ.js} +3 -3
- package/dist/{chunk-P2AE46BQ.cjs → chunk-4LBCUBVL.cjs} +50 -50
- package/dist/{chunk-P2AE46BQ.cjs.map → chunk-4LBCUBVL.cjs.map} +1 -1
- package/dist/{chunk-U5LNGS5P.js → chunk-4RJQMOQW.js} +8 -8
- package/dist/{chunk-TV6YNAVH.cjs → chunk-AF4XOURN.cjs} +3 -3
- package/dist/{chunk-TV6YNAVH.cjs.map → chunk-AF4XOURN.cjs.map} +1 -1
- package/dist/{chunk-637VBBHC.js → chunk-ASBBGP36.js} +7 -7
- package/dist/{chunk-6MDNGGCJ.js → chunk-C5TFPMOM.js} +6 -6
- package/dist/{chunk-J5O5KIHL.cjs → chunk-GETQTNRV.cjs} +22 -22
- package/dist/{chunk-J5O5KIHL.cjs.map → chunk-GETQTNRV.cjs.map} +1 -1
- package/dist/{chunk-XML4CLL3.cjs → chunk-IBUFFKAK.cjs} +411 -411
- package/dist/{chunk-XML4CLL3.cjs.map → chunk-IBUFFKAK.cjs.map} +1 -1
- package/dist/{chunk-74TJJQMT.js → chunk-IELOPDTA.js} +3 -3
- package/dist/{chunk-RMNWN5RC.cjs → chunk-II5GVLTN.cjs} +5 -5
- package/dist/{chunk-RMNWN5RC.cjs.map → chunk-II5GVLTN.cjs.map} +1 -1
- package/dist/{chunk-D2XLLWIU.cjs → chunk-IJUQQTMV.cjs} +2 -4
- package/dist/chunk-IJUQQTMV.cjs.map +1 -0
- package/dist/{chunk-LMZW2KZF.js → chunk-JBJZL5PI.js} +4 -4
- package/dist/{chunk-WYB27NKC.js → chunk-JNUL3ZWK.js} +3 -5
- package/dist/chunk-JNUL3ZWK.js.map +1 -0
- package/dist/{chunk-JA6NYUF3.js → chunk-LCOMNQLX.js} +5 -5
- package/dist/{chunk-NRH4IHI4.js → chunk-MHTB67ZH.js} +4 -4
- package/dist/{chunk-HSWEUDKR.cjs → chunk-MZAZUSPQ.cjs} +10 -10
- package/dist/{chunk-HSWEUDKR.cjs.map → chunk-MZAZUSPQ.cjs.map} +1 -1
- package/dist/{chunk-IQDUMR3K.cjs → chunk-N3I53B5W.cjs} +5 -5
- package/dist/{chunk-IQDUMR3K.cjs.map → chunk-N3I53B5W.cjs.map} +1 -1
- package/dist/{chunk-3NBKFWHG.js → chunk-NINO3PI7.js} +3 -3
- package/dist/{chunk-CCLO5R5A.cjs → chunk-P4SBHO7U.cjs} +17 -17
- package/dist/{chunk-CCLO5R5A.cjs.map → chunk-P4SBHO7U.cjs.map} +1 -1
- package/dist/{chunk-BOIYZ2L6.js → chunk-PG65AE3I.js} +5 -5
- package/dist/{chunk-SFYBD456.js → chunk-QOH45QSE.js} +4 -4
- package/dist/{chunk-KBH7EWFW.cjs → chunk-QTXDXHMD.cjs} +26 -26
- package/dist/{chunk-KBH7EWFW.cjs.map → chunk-QTXDXHMD.cjs.map} +1 -1
- package/dist/{chunk-3XZHZ4LD.cjs → chunk-RBCMBRI7.cjs} +39 -39
- package/dist/{chunk-3XZHZ4LD.cjs.map → chunk-RBCMBRI7.cjs.map} +1 -1
- package/dist/{chunk-CJNYQ6FK.cjs → chunk-RKH7DEDF.cjs} +12 -12
- package/dist/{chunk-CJNYQ6FK.cjs.map → chunk-RKH7DEDF.cjs.map} +1 -1
- package/dist/{chunk-PLLY62XF.js → chunk-RSMAVO2Z.js} +2 -2
- package/dist/{chunk-SIAGFCKP.cjs → chunk-SI77HF4U.cjs} +53 -53
- package/dist/{chunk-SIAGFCKP.cjs.map → chunk-SI77HF4U.cjs.map} +1 -1
- package/dist/{chunk-NMFBC7CC.js → chunk-U6JC3RS2.js} +2 -2
- package/dist/{chunk-OWSFP7LX.cjs → chunk-UBXEETWQ.cjs} +80 -80
- package/dist/{chunk-OWSFP7LX.cjs.map → chunk-UBXEETWQ.cjs.map} +1 -1
- package/dist/{chunk-ZQDJPLRS.js → chunk-V5REIMSE.js} +2 -2
- package/dist/{chunk-VAHO2DTJ.js → chunk-WFH52OVQ.js} +6 -6
- package/dist/{chunk-GQ4FKLFC.cjs → chunk-WJX3ZSOE.cjs} +43 -43
- package/dist/{chunk-GQ4FKLFC.cjs.map → chunk-WJX3ZSOE.cjs.map} +1 -1
- package/dist/{chunk-IWJEJBML.cjs → chunk-XF5TJ4P2.cjs} +12 -12
- package/dist/{chunk-IWJEJBML.cjs.map → chunk-XF5TJ4P2.cjs.map} +1 -1
- package/dist/{chunk-IXLO6K3T.js → chunk-YPXXXX6R.js} +2 -2
- package/dist/{chunk-RHBJIFAJ.cjs → chunk-ZS3YCJYY.cjs} +7 -7
- package/dist/{chunk-RHBJIFAJ.cjs.map → chunk-ZS3YCJYY.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +17 -17
- package/dist/components/case-studies/index.js +5 -5
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/contact/index.js +5 -5
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/docs/index.js +8 -8
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/embeds/index.js +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/features/index.js +4 -4
- package/dist/components/help-center-pages/index.cjs +83 -83
- package/dist/components/help-center-pages/index.js +16 -16
- package/dist/components/index.cjs +46 -46
- package/dist/components/index.js +15 -15
- package/dist/components/meeting-scheduler/index.cjs +32 -32
- package/dist/components/meeting-scheduler/index.js +4 -4
- package/dist/components/navigation/index.cjs +8 -8
- package/dist/components/navigation/index.js +7 -7
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/tickets/index.js +8 -8
- package/dist/components/tool-icon.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +5 -5
- package/dist/components/ui/index.js +4 -4
- package/dist/hooks/index.cjs +3 -3
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +10 -10
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/src/components/tool-icon.tsx +2 -4
- package/dist/chunk-D2XLLWIU.cjs.map +0 -1
- package/dist/chunk-WYB27NKC.js.map +0 -1
- /package/dist/{chunk-JTC4RPS3.js.map → chunk-2G2CB7ZZ.js.map} +0 -0
- /package/dist/{chunk-S6C5GBQ4.js.map → chunk-3NIZ2VLQ.js.map} +0 -0
- /package/dist/{chunk-U5LNGS5P.js.map → chunk-4RJQMOQW.js.map} +0 -0
- /package/dist/{chunk-637VBBHC.js.map → chunk-ASBBGP36.js.map} +0 -0
- /package/dist/{chunk-6MDNGGCJ.js.map → chunk-C5TFPMOM.js.map} +0 -0
- /package/dist/{chunk-74TJJQMT.js.map → chunk-IELOPDTA.js.map} +0 -0
- /package/dist/{chunk-LMZW2KZF.js.map → chunk-JBJZL5PI.js.map} +0 -0
- /package/dist/{chunk-JA6NYUF3.js.map → chunk-LCOMNQLX.js.map} +0 -0
- /package/dist/{chunk-NRH4IHI4.js.map → chunk-MHTB67ZH.js.map} +0 -0
- /package/dist/{chunk-3NBKFWHG.js.map → chunk-NINO3PI7.js.map} +0 -0
- /package/dist/{chunk-BOIYZ2L6.js.map → chunk-PG65AE3I.js.map} +0 -0
- /package/dist/{chunk-SFYBD456.js.map → chunk-QOH45QSE.js.map} +0 -0
- /package/dist/{chunk-PLLY62XF.js.map → chunk-RSMAVO2Z.js.map} +0 -0
- /package/dist/{chunk-NMFBC7CC.js.map → chunk-U6JC3RS2.js.map} +0 -0
- /package/dist/{chunk-ZQDJPLRS.js.map → chunk-V5REIMSE.js.map} +0 -0
- /package/dist/{chunk-VAHO2DTJ.js.map → chunk-WFH52OVQ.js.map} +0 -0
- /package/dist/{chunk-IXLO6K3T.js.map → chunk-YPXXXX6R.js.map} +0 -0
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
scrollElementIntoView,
|
|
20
20
|
useDebounce,
|
|
21
21
|
useMediaQuery
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JNUL3ZWK.js";
|
|
23
23
|
import {
|
|
24
24
|
useRouter,
|
|
25
25
|
useSearchParams
|
|
@@ -3597,4 +3597,4 @@ export {
|
|
|
3597
3597
|
useFormRescue,
|
|
3598
3598
|
useRescuedForm
|
|
3599
3599
|
};
|
|
3600
|
-
//# sourceMappingURL=chunk-
|
|
3600
|
+
//# sourceMappingURL=chunk-V5REIMSE.js.map
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
FileDownloadCard,
|
|
4
4
|
GoogleSheetsViewer,
|
|
5
5
|
PdfViewer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3NIZ2VLQ.js";
|
|
7
7
|
import {
|
|
8
8
|
MobileNavigationDropdown,
|
|
9
9
|
MultiLevelNavigation,
|
|
10
10
|
StickySectionNav
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NINO3PI7.js";
|
|
12
12
|
import {
|
|
13
13
|
DocSearchBar,
|
|
14
14
|
useDocSearch
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JBJZL5PI.js";
|
|
16
16
|
import {
|
|
17
17
|
CategorySidebarSkeleton,
|
|
18
18
|
DEFAULT_FOLDER_INDEX_FILE,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
findDocNodeByPath,
|
|
23
23
|
getDocAncestorNodeIds,
|
|
24
24
|
stripFolderIndexFromPath
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MHTB67ZH.js";
|
|
26
26
|
import {
|
|
27
27
|
contentFetch
|
|
28
28
|
} from "./chunk-UAKWSR3U.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
getScrollableAncestor,
|
|
33
33
|
navigateSamePageHash,
|
|
34
34
|
scrollElementIntoView
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JNUL3ZWK.js";
|
|
36
36
|
import {
|
|
37
37
|
useRouter
|
|
38
38
|
} from "./chunk-XXMHLZ3Y.js";
|
|
@@ -1098,4 +1098,4 @@ export {
|
|
|
1098
1098
|
EmbedSkeleton,
|
|
1099
1099
|
DocsHubPage
|
|
1100
1100
|
};
|
|
1101
|
-
//# sourceMappingURL=chunk-
|
|
1101
|
+
//# sourceMappingURL=chunk-WFH52OVQ.js.map
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZS3YCJYYcjs = require('./chunk-ZS3YCJYY.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkN3I53B5Wcjs = require('./chunk-N3I53B5W.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkRKH7DEDFcjs = require('./chunk-RKH7DEDF.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -22,7 +22,7 @@ var _chunkCJNYQ6FKcjs = require('./chunk-CJNYQ6FK.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkIBUFFKAKcjs = require('./chunk-IBUFFKAK.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunkJGVJRUGBcjs = require('./chunk-JGVJRUGB.cjs');
|
|
@@ -32,7 +32,7 @@ var _chunkJGVJRUGBcjs = require('./chunk-JGVJRUGB.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkIJUQQTMVcjs = require('./chunk-IJUQQTMV.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
var _chunkSADRZ4YIcjs = require('./chunk-SADRZ4YI.cjs');
|
|
@@ -224,9 +224,9 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
|
|
|
224
224
|
function scrollToContent() {
|
|
225
225
|
const article = document.querySelector("article");
|
|
226
226
|
if (article) {
|
|
227
|
-
|
|
227
|
+
_chunkIJUQQTMVcjs.scrollElementIntoView.call(void 0, article, { headerOffset: _chunkIJUQQTMVcjs.HUB_HEADER_OFFSET_PX });
|
|
228
228
|
} else {
|
|
229
|
-
|
|
229
|
+
_chunkIJUQQTMVcjs.scrollElementIntoView.call(void 0, document.documentElement);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
function findFirstDocPath(folder) {
|
|
@@ -325,8 +325,8 @@ function toDocContent(value, requestedPath) {
|
|
|
325
325
|
}
|
|
326
326
|
function useDocumentTree(config, initialPath) {
|
|
327
327
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
328
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
329
|
-
const cleanInitialPath =
|
|
328
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkIBUFFKAKcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
329
|
+
const cleanInitialPath = _chunkIBUFFKAKcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
330
330
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
331
331
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
332
332
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -350,12 +350,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
350
350
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
351
351
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
352
352
|
}
|
|
353
|
-
pathFromUrl =
|
|
353
|
+
pathFromUrl = _chunkIBUFFKAKcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
354
354
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
355
355
|
setSelectedPath(pathFromUrl);
|
|
356
356
|
if (pathFromUrl) {
|
|
357
357
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
358
|
-
setExpandedNodes(new Set(
|
|
358
|
+
setExpandedNodes(new Set(_chunkIBUFFKAKcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
359
359
|
}
|
|
360
360
|
setTimeout(() => {
|
|
361
361
|
scrollToContent();
|
|
@@ -373,7 +373,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
373
373
|
setSelectedPath(cleanInitialPath);
|
|
374
374
|
if (cleanInitialPath) {
|
|
375
375
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
376
|
-
setExpandedNodes(new Set(
|
|
376
|
+
setExpandedNodes(new Set(_chunkIBUFFKAKcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
377
377
|
}
|
|
378
378
|
setExternalNavCount((n) => n + 1);
|
|
379
379
|
}
|
|
@@ -398,7 +398,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
398
398
|
if (cleanInitialPath) {
|
|
399
399
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
400
400
|
if (pathForExpansion) {
|
|
401
|
-
setExpandedNodes(new Set(
|
|
401
|
+
setExpandedNodes(new Set(_chunkIBUFFKAKcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
402
402
|
}
|
|
403
403
|
} else if (nodes.length > 0) {
|
|
404
404
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -414,7 +414,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
} else {
|
|
417
|
-
setError(
|
|
417
|
+
setError(_chunkIJUQQTMVcjs.apiErrorMessage.call(void 0, payload, "Failed to load documentation structure"));
|
|
418
418
|
}
|
|
419
419
|
} catch (err) {
|
|
420
420
|
console.error("Error fetching documentation structure:", err);
|
|
@@ -438,7 +438,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
438
438
|
setContent(null);
|
|
439
439
|
return;
|
|
440
440
|
}
|
|
441
|
-
const probe =
|
|
441
|
+
const probe = _chunkIBUFFKAKcjs.findDocNodeByPath.call(void 0, _chunkIBUFFKAKcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
442
442
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
443
443
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
444
444
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -447,7 +447,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
447
447
|
setContent(null);
|
|
448
448
|
return;
|
|
449
449
|
}
|
|
450
|
-
setError(
|
|
450
|
+
setError(_chunkIJUQQTMVcjs.apiErrorMessage.call(void 0, errorPayload, "Documentation file not found"));
|
|
451
451
|
setContent(null);
|
|
452
452
|
return;
|
|
453
453
|
}
|
|
@@ -465,7 +465,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
465
465
|
}
|
|
466
466
|
setContent(doc);
|
|
467
467
|
} else {
|
|
468
|
-
setError(
|
|
468
|
+
setError(_chunkIJUQQTMVcjs.apiErrorMessage.call(void 0, payload, "Failed to load content"));
|
|
469
469
|
setContent(null);
|
|
470
470
|
}
|
|
471
471
|
} catch (err) {
|
|
@@ -495,7 +495,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
495
495
|
if (selectedPath === "") {
|
|
496
496
|
pathToFetch = folderIndexFile;
|
|
497
497
|
} else {
|
|
498
|
-
const node =
|
|
498
|
+
const node = _chunkIBUFFKAKcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
499
499
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
500
500
|
const firstDocPath = findFirstDocPath(node);
|
|
501
501
|
if (!firstDocPath) {
|
|
@@ -536,16 +536,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
536
536
|
if (node.type === "folder") {
|
|
537
537
|
setExpandedNodes((prev) => {
|
|
538
538
|
if (prev.has(node.id)) {
|
|
539
|
-
const ancestorIds =
|
|
539
|
+
const ancestorIds = _chunkIBUFFKAKcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
540
540
|
ancestorIds.pop();
|
|
541
541
|
return new Set(ancestorIds);
|
|
542
542
|
}
|
|
543
|
-
return new Set(
|
|
543
|
+
return new Set(_chunkIBUFFKAKcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
544
544
|
});
|
|
545
545
|
} else {
|
|
546
546
|
const lastSlash = node.path.lastIndexOf("/");
|
|
547
547
|
if (lastSlash > 0) {
|
|
548
|
-
setExpandedNodes(new Set(
|
|
548
|
+
setExpandedNodes(new Set(_chunkIBUFFKAKcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
lastFetchedPath.current = null;
|
|
@@ -560,9 +560,9 @@ function useDocumentTree(config, initialPath) {
|
|
|
560
560
|
const hashIndex = path.indexOf("#");
|
|
561
561
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
562
562
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
563
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
563
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkIBUFFKAKcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
564
564
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
565
|
-
|
|
565
|
+
_chunkIJUQQTMVcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkIJUQQTMVcjs.HUB_HEADER_OFFSET_PX });
|
|
566
566
|
return;
|
|
567
567
|
}
|
|
568
568
|
const scrollAfterNav = () => {
|
|
@@ -570,7 +570,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
570
570
|
setTimeout(() => {
|
|
571
571
|
const el = document.getElementById(anchor.substring(1));
|
|
572
572
|
if (el) {
|
|
573
|
-
|
|
573
|
+
_chunkIJUQQTMVcjs.scrollElementIntoView.call(void 0, el, { headerOffset: _chunkIJUQQTMVcjs.HUB_HEADER_OFFSET_PX });
|
|
574
574
|
} else {
|
|
575
575
|
scrollToContent();
|
|
576
576
|
}
|
|
@@ -624,15 +624,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
624
624
|
return docNavigation.register({
|
|
625
625
|
baseRoute: normalizedBaseRoute,
|
|
626
626
|
findNodeByPath: (path) => {
|
|
627
|
-
const clean =
|
|
628
|
-
return _nullishCoalesce(
|
|
627
|
+
const clean = _chunkIBUFFKAKcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
628
|
+
return _nullishCoalesce(_chunkIBUFFKAKcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
629
629
|
},
|
|
630
630
|
selectNode
|
|
631
631
|
});
|
|
632
632
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
633
633
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
634
634
|
if (!selectedPath || structure.length === 0) return false;
|
|
635
|
-
const node =
|
|
635
|
+
const node = _chunkIBUFFKAKcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
636
636
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
637
637
|
}, [selectedPath, structure]);
|
|
638
638
|
return {
|
|
@@ -663,7 +663,7 @@ function replaceHash(sectionId) {
|
|
|
663
663
|
window.history.replaceState(window.history.state, "", `${pathname}${search}${next}`);
|
|
664
664
|
}
|
|
665
665
|
function resolveScroller(firstSection) {
|
|
666
|
-
const container = firstSection ?
|
|
666
|
+
const container = firstSection ? _chunkIJUQQTMVcjs.getScrollableAncestor.call(void 0, firstSection) : null;
|
|
667
667
|
if (container) {
|
|
668
668
|
return {
|
|
669
669
|
target: container,
|
|
@@ -693,7 +693,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
693
693
|
isScrollingFromClick.current = true;
|
|
694
694
|
setActiveSection(sectionId);
|
|
695
695
|
if (syncHash) replaceHash(sectionId);
|
|
696
|
-
|
|
696
|
+
_chunkIJUQQTMVcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset });
|
|
697
697
|
setTimeout(() => {
|
|
698
698
|
isScrollingFromClick.current = false;
|
|
699
699
|
}, 800);
|
|
@@ -815,7 +815,7 @@ function DocViewerContent({
|
|
|
815
815
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _16 => _16.label]), () => ( "Back to home")),
|
|
816
816
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _17 => _17.href]), () => ( "/")))
|
|
817
817
|
};
|
|
818
|
-
const docSearch =
|
|
818
|
+
const docSearch = _chunkRKH7DEDFcjs.useDocSearch.call(void 0, {
|
|
819
819
|
source: chatSource,
|
|
820
820
|
baseRoute,
|
|
821
821
|
searchEndpoint,
|
|
@@ -839,7 +839,7 @@ function DocViewerContent({
|
|
|
839
839
|
onResolveLink: resolveLink
|
|
840
840
|
});
|
|
841
841
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
842
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
842
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkIBUFFKAKcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _18 => _18.documentType]) : void 0;
|
|
843
843
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _19 => _19.documentType]), () => ( selectedNodeDocType));
|
|
844
844
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
845
845
|
const showStickyNav = isMarkdownContent;
|
|
@@ -850,9 +850,9 @@ function DocViewerContent({
|
|
|
850
850
|
const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
|
|
851
851
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
852
852
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
853
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
853
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIBUFFKAKcjs.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: [
|
|
854
854
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
855
|
-
|
|
855
|
+
_chunkRKH7DEDFcjs.DocSearchBar,
|
|
856
856
|
{
|
|
857
857
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _23 => _23.toLowerCase, 'call', _24 => _24()]) || "documents"}...`,
|
|
858
858
|
query: docSearch.query,
|
|
@@ -871,9 +871,9 @@ function DocViewerContent({
|
|
|
871
871
|
] })
|
|
872
872
|
] }) }),
|
|
873
873
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 lg:flex-row lg:gap-10", children: [
|
|
874
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full lg:w-[320px] lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "lg:sticky lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
874
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full lg:w-[320px] lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "lg:sticky lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIBUFFKAKcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
875
875
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
876
|
-
|
|
876
|
+
_chunkN3I53B5Wcjs.MobileNavigationDropdown,
|
|
877
877
|
{
|
|
878
878
|
nodes: structure,
|
|
879
879
|
selectedPath,
|
|
@@ -887,7 +887,7 @@ function DocViewerContent({
|
|
|
887
887
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
888
888
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
889
889
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
-
|
|
890
|
+
_chunkN3I53B5Wcjs.MultiLevelNavigation,
|
|
891
891
|
{
|
|
892
892
|
nodes: structure,
|
|
893
893
|
selectedPath,
|
|
@@ -926,7 +926,7 @@ function DocViewerContent({
|
|
|
926
926
|
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
927
927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
928
928
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
929
|
-
|
|
929
|
+
_chunkN3I53B5Wcjs.StickySectionNav,
|
|
930
930
|
{
|
|
931
931
|
sections: stickyNavSections,
|
|
932
932
|
activeSection,
|
|
@@ -941,7 +941,7 @@ function DocViewerContent({
|
|
|
941
941
|
) })
|
|
942
942
|
] })
|
|
943
943
|
] }) }) });
|
|
944
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
944
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIBUFFKAKcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
945
945
|
}
|
|
946
946
|
|
|
947
947
|
// src/components/docs/skeletons.tsx
|
|
@@ -1031,11 +1031,11 @@ function EmbedSkeleton({ documentType } = {}) {
|
|
|
1031
1031
|
|
|
1032
1032
|
var DEFAULT_TITLE = "Documents";
|
|
1033
1033
|
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" }) });
|
|
1034
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1035
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1036
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1034
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZS3YCJYYcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
1035
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZS3YCJYYcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
1036
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIBUFFKAKcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
1037
1037
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1038
|
-
|
|
1038
|
+
_chunkZS3YCJYYcjs.FileDownloadCard,
|
|
1039
1039
|
{
|
|
1040
1040
|
fileName: content.fileName,
|
|
1041
1041
|
mimeType: content.mimeType,
|
|
@@ -1098,4 +1098,4 @@ function DocsHubPage({
|
|
|
1098
1098
|
|
|
1099
1099
|
|
|
1100
1100
|
exports.PersistentFilterControls = PersistentFilterControls; exports.PersistentSearchContainer = PersistentSearchContainer; exports.PersistentSidebar = PersistentSidebar; exports.PersistentMobileDropdown = PersistentMobileDropdown; exports.DocNavigationProvider = DocNavigationProvider; exports.useDocNavigation = useDocNavigation; exports.useDocumentTree = useDocumentTree; exports.useScrollSpy = useScrollSpy; exports.DocViewer = DocViewer; exports.MarkdownSkeleton = MarkdownSkeleton; exports.EmbedSkeleton = EmbedSkeleton; exports.DocsHubPage = DocsHubPage;
|
|
1101
|
-
//# sourceMappingURL=chunk-
|
|
1101
|
+
//# sourceMappingURL=chunk-WJX3ZSOE.cjs.map
|