@flamingo-stack/openframe-frontend-core 0.0.685 → 0.0.686-2463.7461.1
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-T6KWNJDW.js → chunk-22RSJ57Z.js} +470 -465
- package/dist/chunk-22RSJ57Z.js.map +1 -0
- package/dist/{chunk-65KTXRBY.js → chunk-2G2CB7ZZ.js} +6 -6
- package/dist/{chunk-K2HZG4RM.cjs → chunk-2OD2PPNO.cjs} +32 -32
- package/dist/{chunk-K2HZG4RM.cjs.map → chunk-2OD2PPNO.cjs.map} +1 -1
- package/dist/{chunk-HMXUOLZR.cjs → chunk-3DO76UAB.cjs} +20 -20
- package/dist/{chunk-HMXUOLZR.cjs.map → chunk-3DO76UAB.cjs.map} +1 -1
- package/dist/{chunk-XW7MUIW4.js → chunk-3NIZ2VLQ.js} +3 -3
- package/dist/{chunk-5LJZPJHX.cjs → chunk-4LBCUBVL.cjs} +59 -59
- package/dist/{chunk-5LJZPJHX.cjs.map → chunk-4LBCUBVL.cjs.map} +1 -1
- package/dist/{chunk-ZF4Z36G4.js → chunk-4RJQMOQW.js} +7 -7
- package/dist/{chunk-TJI5V5BR.cjs → chunk-AF4XOURN.cjs} +7 -7
- package/dist/{chunk-TJI5V5BR.cjs.map → chunk-AF4XOURN.cjs.map} +1 -1
- package/dist/{chunk-7XF63THA.js → chunk-ASBBGP36.js} +6 -6
- package/dist/{chunk-O7LOZW4R.js → chunk-C5TFPMOM.js} +5 -5
- package/dist/{chunk-CMQXPD5C.cjs → chunk-GETQTNRV.cjs} +28 -28
- package/dist/{chunk-CMQXPD5C.cjs.map → chunk-GETQTNRV.cjs.map} +1 -1
- package/dist/{chunk-TUG7IT6H.js → chunk-HLEXYTOE.js} +2 -2
- package/dist/{chunk-M4HYIXP6.cjs → chunk-IBUFFKAK.cjs} +399 -383
- package/dist/chunk-IBUFFKAK.cjs.map +1 -0
- package/dist/{chunk-GXV6UEVY.js → chunk-IELOPDTA.js} +3 -3
- package/dist/{chunk-T4DUTP5C.cjs → chunk-II5GVLTN.cjs} +5 -5
- package/dist/{chunk-T4DUTP5C.cjs.map → chunk-II5GVLTN.cjs.map} +1 -1
- package/dist/{chunk-B32YLOYQ.js → chunk-JBJZL5PI.js} +4 -4
- package/dist/{chunk-UT333EOT.js → chunk-LCOMNQLX.js} +4 -4
- package/dist/{chunk-VDPCK437.js → chunk-MHTB67ZH.js} +21 -5
- package/dist/{chunk-VDPCK437.js.map → chunk-MHTB67ZH.js.map} +1 -1
- package/dist/{chunk-EFBMNVSH.cjs → chunk-MZAZUSPQ.cjs} +15 -15
- package/dist/{chunk-EFBMNVSH.cjs.map → chunk-MZAZUSPQ.cjs.map} +1 -1
- package/dist/{chunk-C3B36OYZ.cjs → chunk-N3I53B5W.cjs} +3 -3
- package/dist/{chunk-C3B36OYZ.cjs.map → chunk-N3I53B5W.cjs.map} +1 -1
- package/dist/{chunk-WJK2EETW.js → chunk-NINO3PI7.js} +2 -2
- package/dist/{chunk-YCTVLN47.cjs → chunk-P4SBHO7U.cjs} +10 -10
- package/dist/{chunk-YCTVLN47.cjs.map → chunk-P4SBHO7U.cjs.map} +1 -1
- package/dist/{chunk-PSQKD6ZN.js → chunk-PG65AE3I.js} +3 -3
- package/dist/{chunk-DQOQ3KTP.cjs → chunk-QNWQQ4RT.cjs} +78 -73
- package/dist/chunk-QNWQQ4RT.cjs.map +1 -0
- package/dist/{chunk-BZ2XOEHW.js → chunk-QOH45QSE.js} +3 -3
- package/dist/{chunk-DWXWEGGO.cjs → chunk-QTXDXHMD.cjs} +22 -22
- package/dist/{chunk-DWXWEGGO.cjs.map → chunk-QTXDXHMD.cjs.map} +1 -1
- package/dist/{chunk-B25CF3PO.cjs → chunk-RBCMBRI7.cjs} +30 -30
- package/dist/{chunk-B25CF3PO.cjs.map → chunk-RBCMBRI7.cjs.map} +1 -1
- package/dist/{chunk-QHLJSB2J.cjs → chunk-RKH7DEDF.cjs} +12 -12
- package/dist/{chunk-QHLJSB2J.cjs.map → chunk-RKH7DEDF.cjs.map} +1 -1
- package/dist/{chunk-Y7ZYOQNB.js → chunk-RSMAVO2Z.js} +3 -3
- package/dist/{chunk-A3CSQB4A.cjs → chunk-SI77HF4U.cjs} +1247 -805
- package/dist/chunk-SI77HF4U.cjs.map +1 -0
- package/dist/{chunk-GHLGXFNU.js → chunk-U6JC3RS2.js} +3 -3
- package/dist/{chunk-B5N3AHPG.cjs → chunk-UBXEETWQ.cjs} +81 -81
- package/dist/{chunk-B5N3AHPG.cjs.map → chunk-UBXEETWQ.cjs.map} +1 -1
- package/dist/{chunk-N4Z6X5BV.js → chunk-WFH52OVQ.js} +5 -5
- package/dist/{chunk-U3IXG7TR.cjs → chunk-WJX3ZSOE.cjs} +33 -33
- package/dist/{chunk-U3IXG7TR.cjs.map → chunk-WJX3ZSOE.cjs.map} +1 -1
- package/dist/{chunk-XGX6JSEU.js → chunk-YPXXXX6R.js} +2086 -1644
- package/dist/chunk-YPXXXX6R.js.map +1 -0
- package/dist/{chunk-P2ASEPA2.cjs → chunk-ZS3YCJYY.cjs} +6 -6
- package/dist/{chunk-P2ASEPA2.cjs.map → chunk-ZS3YCJYY.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/ai-assistant-info.d.ts.map +1 -1
- package/dist/components/chat/approval-request-message.d.ts.map +1 -1
- package/dist/components/chat/chat-appearance-context.d.ts +9 -0
- package/dist/components/chat/chat-appearance-context.d.ts.map +1 -0
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/chat-nav-sidebar.d.ts +50 -0
- package/dist/components/chat/chat-nav-sidebar.d.ts.map +1 -0
- package/dist/components/chat/chat-top-navigation.d.ts +29 -0
- package/dist/components/chat/chat-top-navigation.d.ts.map +1 -0
- package/dist/components/chat/error-message-display.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +21 -3
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.d.ts +6 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +20 -2
- package/dist/components/chat/msp-organization-card.d.ts +7 -1
- package/dist/components/chat/msp-organization-card.d.ts.map +1 -1
- package/dist/components/chat/onboarding-carousel.d.ts +29 -0
- package/dist/components/chat/onboarding-carousel.d.ts.map +1 -0
- package/dist/components/chat/system-event-message.d.ts +14 -0
- package/dist/components/chat/system-event-message.d.ts.map +1 -0
- package/dist/components/chat/types/chat.types.d.ts +13 -0
- package/dist/components/chat/types/chat.types.d.ts.map +1 -1
- package/dist/components/chat/types/component.types.d.ts +20 -1
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/docs/index.js +7 -7
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +91 -91
- package/dist/components/help-center-pages/index.js +15 -15
- package/dist/components/index.cjs +73 -55
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +33 -15
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +41 -41
- package/dist/components/meeting-scheduler/index.js +3 -3
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/avatar-stack.d.ts +5 -1
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +22 -4
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +21 -3
- package/dist/components/ui/reopen-ticket-request-modal.d.ts +4 -1
- package/dist/components/ui/reopen-ticket-request-modal.d.ts.map +1 -1
- package/dist/components/ui/tab-navigation.d.ts +7 -0
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/index.cjs +27 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +25 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/__tests__/chat-appearance.test.tsx +79 -0
- package/src/components/chat/__tests__/onboarding-carousel.test.tsx +56 -0
- package/src/components/chat/ai-assistant-info.tsx +7 -1
- package/src/components/chat/approval-request-message.tsx +6 -1
- package/src/components/chat/chat-appearance-context.tsx +15 -0
- package/src/components/chat/chat-input.tsx +26 -1
- package/src/components/chat/chat-message-enhanced.tsx +180 -142
- package/src/components/chat/chat-message-list.tsx +169 -164
- package/src/components/chat/chat-nav-sidebar.tsx +163 -0
- package/src/components/chat/chat-top-navigation.tsx +109 -0
- package/src/components/chat/error-message-display.tsx +21 -3
- package/src/components/chat/index.ts +6 -0
- package/src/components/chat/msp-organization-card.tsx +35 -0
- package/src/components/chat/onboarding-carousel.tsx +162 -0
- package/src/components/chat/system-event-message.tsx +54 -0
- package/src/components/chat/types/chat.types.ts +15 -0
- package/src/components/chat/types/component.types.ts +20 -0
- package/src/components/ui/__tests__/avatar-stack.test.tsx +25 -0
- package/src/components/ui/__tests__/tab-navigation.test.tsx +56 -2
- package/src/components/ui/avatar-stack.tsx +15 -5
- package/src/components/ui/reopen-ticket-request-modal.tsx +6 -2
- package/src/components/ui/tab-navigation.tsx +23 -0
- package/src/stories/FaeLayoutV2.stories.tsx +150 -0
- package/src/stories/FaeOnboardingV2.stories.tsx +68 -0
- package/src/stories/FaeThreadV2.stories.tsx +192 -0
- package/src/stories/fae-brand-decorator.tsx +28 -0
- package/src/styles/ods-colors.css +10 -0
- package/src/styles/ods-effects.css +13 -0
- package/dist/chunk-A3CSQB4A.cjs.map +0 -1
- package/dist/chunk-DQOQ3KTP.cjs.map +0 -1
- package/dist/chunk-M4HYIXP6.cjs.map +0 -1
- package/dist/chunk-T6KWNJDW.js.map +0 -1
- package/dist/chunk-XGX6JSEU.js.map +0 -1
- /package/dist/{chunk-65KTXRBY.js.map → chunk-2G2CB7ZZ.js.map} +0 -0
- /package/dist/{chunk-XW7MUIW4.js.map → chunk-3NIZ2VLQ.js.map} +0 -0
- /package/dist/{chunk-ZF4Z36G4.js.map → chunk-4RJQMOQW.js.map} +0 -0
- /package/dist/{chunk-7XF63THA.js.map → chunk-ASBBGP36.js.map} +0 -0
- /package/dist/{chunk-O7LOZW4R.js.map → chunk-C5TFPMOM.js.map} +0 -0
- /package/dist/{chunk-TUG7IT6H.js.map → chunk-HLEXYTOE.js.map} +0 -0
- /package/dist/{chunk-GXV6UEVY.js.map → chunk-IELOPDTA.js.map} +0 -0
- /package/dist/{chunk-B32YLOYQ.js.map → chunk-JBJZL5PI.js.map} +0 -0
- /package/dist/{chunk-UT333EOT.js.map → chunk-LCOMNQLX.js.map} +0 -0
- /package/dist/{chunk-WJK2EETW.js.map → chunk-NINO3PI7.js.map} +0 -0
- /package/dist/{chunk-PSQKD6ZN.js.map → chunk-PG65AE3I.js.map} +0 -0
- /package/dist/{chunk-BZ2XOEHW.js.map → chunk-QOH45QSE.js.map} +0 -0
- /package/dist/{chunk-Y7ZYOQNB.js.map → chunk-RSMAVO2Z.js.map} +0 -0
- /package/dist/{chunk-GHLGXFNU.js.map → chunk-U6JC3RS2.js.map} +0 -0
- /package/dist/{chunk-N4Z6X5BV.js.map → chunk-WFH52OVQ.js.map} +0 -0
|
@@ -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";
|
|
@@ -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 _chunkQHLJSB2Jcjs = require('./chunk-QHLJSB2J.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');
|
|
@@ -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);
|
|
@@ -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) {
|
|
@@ -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,7 +560,7 @@ 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;
|
|
@@ -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 {
|
|
@@ -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
|