@flamingo-stack/openframe-frontend-core 0.0.851 → 0.0.852
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/build/export-map.json +1 -1
- package/dist/{case-study-card-X2HKPKT7.cjs → case-study-card-WP5Z234Q.cjs} +5 -5
- package/dist/{chunk-BU2PSRAS.cjs → chunk-2W22LY3W.cjs} +11 -11
- package/dist/{chunk-2NGW73T2.cjs → chunk-3SJVF3HW.cjs} +6 -6
- package/dist/{chunk-VXIZCUNZ.cjs → chunk-3ZQESOPJ.cjs} +65 -65
- package/dist/{chunk-VU6N3NZS.cjs → chunk-477P6AQH.cjs} +6 -6
- package/dist/{chunk-PJNEBSP5.cjs → chunk-5RMBLOJ5.cjs} +12 -12
- package/dist/{chunk-36DUCHI7.cjs → chunk-6GWRPW6B.cjs} +4 -4
- package/dist/{chunk-SOSIXRQ3.cjs → chunk-AZEO7HBB.cjs} +2 -2
- package/dist/{chunk-KRTTH3ET.cjs → chunk-BNHTBLAG.cjs} +17 -17
- package/dist/{chunk-OUP7L3U5.cjs → chunk-CHGIACIP.cjs} +91 -91
- package/dist/{chunk-U4RTWH5D.cjs → chunk-COJG2ATY.cjs} +19 -19
- package/dist/{chunk-ZEPEFKHA.cjs → chunk-D3H6AI7O.cjs} +540 -540
- package/dist/{chunk-ALRYVZ3E.cjs → chunk-DLTPSP5F.cjs} +2 -2
- package/dist/{chunk-WYROOMUZ.cjs → chunk-EIACEY2L.cjs} +2 -2
- package/dist/{chunk-TIVPOVIM.cjs → chunk-ETZFBB7O.cjs} +2 -2
- package/dist/{chunk-GRCOEICK.cjs → chunk-G7GF4PWA.cjs} +6 -6
- package/dist/{chunk-UQK6J3ZS.cjs → chunk-GEZ3UXCA.cjs} +25 -25
- package/dist/chunk-GGUFVIJ6.cjs +28 -0
- package/dist/{chunk-B6D4WWKD.cjs → chunk-IC4IJJB2.cjs} +95 -95
- package/dist/{chunk-BUEEQD3G.cjs → chunk-IGVAPIEW.cjs} +2 -2
- package/dist/{chunk-IG6ROHPS.cjs → chunk-IO6NN3SL.cjs} +54 -54
- package/dist/{chunk-DN227KZH.cjs → chunk-KHOB3TES.cjs} +4 -4
- package/dist/{chunk-JQCQCE6U.cjs → chunk-KKFDRCQF.cjs} +2 -2
- package/dist/{chunk-PPCRLSVR.cjs → chunk-KNN2GCMW.cjs} +21 -21
- package/dist/{chunk-CDW6JTAQ.cjs → chunk-LFEURIZN.cjs} +245 -245
- package/dist/{chunk-SPKAXETT.cjs → chunk-MFDRCTM3.cjs} +47 -47
- package/dist/{chunk-ODMZSAIY.cjs → chunk-MXY2OGEV.cjs} +28 -28
- package/dist/{chunk-533QK4R6.cjs → chunk-NMWLXHFH.cjs} +130 -130
- package/dist/{chunk-MDLT6D46.cjs → chunk-O3EKOXFZ.cjs} +20 -20
- package/dist/{chunk-HLJXCOMA.cjs → chunk-OH5TXFRR.cjs} +4 -4
- package/dist/{chunk-QCSA7GIX.cjs → chunk-P63CRPWI.cjs} +12 -12
- package/dist/{chunk-5SEJEBAB.cjs → chunk-QOW2GP3V.cjs} +21 -21
- package/dist/{chunk-JBTH3O2C.cjs → chunk-SSKMGH5O.cjs} +4 -4
- package/dist/{chunk-LM7EL3UQ.cjs → chunk-U767P4JU.cjs} +11 -11
- package/dist/{chunk-FNQWL4W4.cjs → chunk-UO2EJGRJ.cjs} +45 -45
- package/dist/{chunk-UFGPLXH6.cjs → chunk-USPUZO53.cjs} +2 -2
- package/dist/{chunk-IN3LA2FU.cjs → chunk-UV45EPXN.cjs} +2 -2
- package/dist/{chunk-2WZHNMQY.cjs → chunk-VUHHLRAY.cjs} +84 -84
- package/dist/{chunk-FGSN5UNY.cjs → chunk-WFAZMASF.cjs} +3 -3
- package/dist/{chunk-NQEPLUUW.cjs → chunk-X3WIOMEE.cjs} +36 -36
- package/dist/{cloud-tenants-XH6GV4EI.cjs → cloud-tenants-O33HCUYB.cjs} +47 -46
- package/dist/components/case-studies/index.cjs +66 -65
- package/dist/components/chat/index.cjs +42 -41
- package/dist/components/contact/index.cjs +48 -47
- package/dist/components/docs/index.cjs +51 -50
- package/dist/components/embeds/index.cjs +48 -47
- package/dist/components/faq/index.cjs +49 -48
- package/dist/components/features/index.cjs +48 -47
- package/dist/components/help-center-pages/index.cjs +153 -152
- package/dist/components/icons-v2-generated/brand-logos/index.d.ts +1 -0
- package/dist/components/icons-v2-generated/brand-logos/index.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/brand-logos/index.js +2 -0
- package/dist/components/icons-v2-generated/brand-logos/stripe-icon.d.ts +8 -0
- package/dist/components/icons-v2-generated/brand-logos/stripe-icon.d.ts.map +1 -0
- package/dist/components/icons-v2-generated/brand-logos/stripe-icon.js +24 -0
- package/dist/components/icons-v2-generated/icon-loaders.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/icon-loaders.js +1 -0
- package/dist/components/icons-v2-generated/icon-names.js +1 -1
- package/dist/components/icons-v2-generated/index.cjs +33 -29
- package/dist/components/index.cjs +110 -109
- package/dist/components/meeting-scheduler/index.cjs +97 -96
- package/dist/components/navigation/index.cjs +51 -50
- package/dist/components/onboarding-guides/index.cjs +50 -49
- package/dist/components/product-demo/index.cjs +58 -57
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +54 -53
- package/dist/components/ui/index.cjs +48 -47
- package/dist/{devices-7PT6MPJI.cjs → devices-2RGGMC2B.cjs} +48 -47
- package/dist/{embeddable-chat-5NY76K7K.cjs → embeddable-chat-SJEEJI4N.cjs} +118 -117
- package/dist/hooks/index.cjs +9 -9
- package/dist/{icon-loaders-SUPEKMBJ.cjs → icon-loaders-CTH6E7OP.cjs} +1 -0
- package/dist/index.cjs +54 -53
- package/dist/{knowledge-J6N7IEVI.cjs → knowledge-5TJIXVMD.cjs} +49 -48
- package/dist/{logs-D6KQP2BX.cjs → logs-HGQOTRKZ.cjs} +54 -53
- package/dist/{policies-J7MCOL3C.cjs → policies-GWFSLVSM.cjs} +51 -50
- package/dist/{remote-session-PXHA5KFK.cjs → remote-session-SG44CNOK.cjs} +33 -32
- package/dist/{scripts-VURXIHVS.cjs → scripts-PGJNAZF4.cjs} +54 -53
- package/dist/{software-update-6SHUBDIE.cjs → software-update-KKLSYHDI.cjs} +51 -50
- package/dist/stripe-icon-YKVABTNI.cjs +7 -0
- package/dist/{tickets-board-NLCN7WNX.cjs → tickets-board-SQY2Y6QV.cjs} +37 -36
- package/dist/utils/index.cjs +32 -1
- package/package.json +1 -1
- package/src/components/icons-v2/icon-colors.json +3 -0
- package/src/components/icons-v2-generated/brand-logos/index.ts +1 -0
- package/src/components/icons-v2-generated/brand-logos/stripe-icon.tsx +27 -0
- package/src/components/icons-v2-generated/icon-loaders.ts +1 -0
- package/src/components/icons-v2-generated/icon-names.ts +1 -1
- package/src/styles/ods-colors.css +1 -0
- /package/dist/{chunk-46547WQW.cjs → chunk-7HH4Y27U.cjs} +0 -0
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3SJVF3HWcjs = require('./chunk-3SJVF3HW.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkBNHTBLAGcjs = require('./chunk-BNHTBLAG.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk5RMBLOJ5cjs = require('./chunk-5RMBLOJ5.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkD3H6AI7Ocjs = require('./chunk-D3H6AI7O.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkCOJG2ATYcjs = require('./chunk-COJG2ATY.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -30,12 +30,12 @@ var _chunkU4RTWH5Dcjs = require('./chunk-U4RTWH5D.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkIC4IJJB2cjs = require('./chunk-IC4IJJB2.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkG7GF4PWAcjs = require('./chunk-G7GF4PWA.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
@@ -240,9 +240,9 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
|
|
|
240
240
|
function scrollToContent() {
|
|
241
241
|
const article = document.querySelector("article");
|
|
242
242
|
if (article) {
|
|
243
|
-
|
|
243
|
+
_chunkG7GF4PWAcjs.scrollElementIntoView.call(void 0, article, { headerOffset: _chunkG7GF4PWAcjs.HUB_HEADER_OFFSET_PX });
|
|
244
244
|
} else {
|
|
245
|
-
|
|
245
|
+
_chunkG7GF4PWAcjs.scrollElementIntoView.call(void 0, document.documentElement);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
function isRecord(value) {
|
|
@@ -328,13 +328,13 @@ function toDocContent(value, requestedPath) {
|
|
|
328
328
|
function toDataSync(value) {
|
|
329
329
|
if (!isRecord(value)) return void 0;
|
|
330
330
|
const source = readString(value, "source");
|
|
331
|
-
if (!
|
|
331
|
+
if (!_chunkD3H6AI7Ocjs.isDataSyncSource.call(void 0, source)) return void 0;
|
|
332
332
|
return { source, syncedAt: _nullishCoalesce(readString(value, "syncedAt"), () => ( null)) };
|
|
333
333
|
}
|
|
334
334
|
function useDocumentTree(config, initialPath) {
|
|
335
335
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
336
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
337
|
-
const cleanInitialPath =
|
|
336
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkIC4IJJB2cjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
337
|
+
const cleanInitialPath = _chunkIC4IJJB2cjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _3 => _3.replace, 'call', _4 => _4(/\/$/, "")]) || "", folderIndexFile);
|
|
338
338
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
339
339
|
const structureRef = _react.useRef.call(void 0, structure);
|
|
340
340
|
_react.useEffect.call(void 0, () => {
|
|
@@ -364,12 +364,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
364
364
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
365
365
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
366
366
|
}
|
|
367
|
-
pathFromUrl =
|
|
367
|
+
pathFromUrl = _chunkIC4IJJB2cjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
368
368
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
369
369
|
setSelectedPath(pathFromUrl);
|
|
370
370
|
if (pathFromUrl) {
|
|
371
371
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
372
|
-
setExpandedNodes(new Set(
|
|
372
|
+
setExpandedNodes(new Set(_chunkIC4IJJB2cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
373
373
|
}
|
|
374
374
|
setTimeout(() => {
|
|
375
375
|
scrollToContent();
|
|
@@ -387,7 +387,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
387
387
|
setSelectedPath(cleanInitialPath);
|
|
388
388
|
if (cleanInitialPath) {
|
|
389
389
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
390
|
-
setExpandedNodes(new Set(
|
|
390
|
+
setExpandedNodes(new Set(_chunkIC4IJJB2cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
391
391
|
}
|
|
392
392
|
setExternalNavCount((n) => n + 1);
|
|
393
393
|
}
|
|
@@ -412,7 +412,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
412
412
|
if (cleanInitialPath) {
|
|
413
413
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
414
414
|
if (pathForExpansion) {
|
|
415
|
-
setExpandedNodes(new Set(
|
|
415
|
+
setExpandedNodes(new Set(_chunkIC4IJJB2cjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
416
416
|
}
|
|
417
417
|
} else if (nodes.length > 0) {
|
|
418
418
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -453,7 +453,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
453
453
|
return;
|
|
454
454
|
}
|
|
455
455
|
const latestStructure = structureRef.current;
|
|
456
|
-
const probe =
|
|
456
|
+
const probe = _chunkIC4IJJB2cjs.findDocNodeByPath.call(void 0, _chunkIC4IJJB2cjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), latestStructure);
|
|
457
457
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
458
458
|
const preStructureFolderLike = latestStructure.length === 0 && !path.endsWith(".md");
|
|
459
459
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -510,16 +510,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
510
510
|
if (!structure || structure.length === 0) return;
|
|
511
511
|
let pathToFetch = null;
|
|
512
512
|
if (selectedPath === "") {
|
|
513
|
-
const rootPath =
|
|
513
|
+
const rootPath = _chunkIC4IJJB2cjs.rootDocumentPath.call(void 0, structure, folderIndexFile);
|
|
514
514
|
if (!rootPath) {
|
|
515
515
|
lastFetchedPath.current = null;
|
|
516
516
|
return;
|
|
517
517
|
}
|
|
518
518
|
pathToFetch = rootPath;
|
|
519
519
|
} else {
|
|
520
|
-
const node =
|
|
520
|
+
const node = _chunkIC4IJJB2cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
521
521
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
522
|
-
const firstDocPath =
|
|
522
|
+
const firstDocPath = _chunkIC4IJJB2cjs.findFirstDocPath.call(void 0, node);
|
|
523
523
|
if (!firstDocPath) {
|
|
524
524
|
lastFetchedPath.current = null;
|
|
525
525
|
return;
|
|
@@ -558,16 +558,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
558
558
|
if (node.type === "folder") {
|
|
559
559
|
setExpandedNodes((prev) => {
|
|
560
560
|
if (prev.has(node.id)) {
|
|
561
|
-
const ancestorIds =
|
|
561
|
+
const ancestorIds = _chunkIC4IJJB2cjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
562
562
|
ancestorIds.pop();
|
|
563
563
|
return new Set(ancestorIds);
|
|
564
564
|
}
|
|
565
|
-
return new Set(
|
|
565
|
+
return new Set(_chunkIC4IJJB2cjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
566
566
|
});
|
|
567
567
|
} else {
|
|
568
568
|
const lastSlash = node.path.lastIndexOf("/");
|
|
569
569
|
if (lastSlash > 0) {
|
|
570
|
-
setExpandedNodes(new Set(
|
|
570
|
+
setExpandedNodes(new Set(_chunkIC4IJJB2cjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
lastFetchedPath.current = null;
|
|
@@ -582,9 +582,9 @@ function useDocumentTree(config, initialPath) {
|
|
|
582
582
|
const hashIndex = path.indexOf("#");
|
|
583
583
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
584
584
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
585
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _5 => _5.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
585
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _5 => _5.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkIC4IJJB2cjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
586
586
|
if (anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
587
|
-
|
|
587
|
+
_chunkG7GF4PWAcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkG7GF4PWAcjs.HUB_HEADER_OFFSET_PX });
|
|
588
588
|
return;
|
|
589
589
|
}
|
|
590
590
|
const scrollAfterNav = () => {
|
|
@@ -592,7 +592,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
592
592
|
setTimeout(() => {
|
|
593
593
|
const el = document.getElementById(anchor.substring(1));
|
|
594
594
|
if (el) {
|
|
595
|
-
|
|
595
|
+
_chunkG7GF4PWAcjs.scrollElementIntoView.call(void 0, el, { headerOffset: _chunkG7GF4PWAcjs.HUB_HEADER_OFFSET_PX });
|
|
596
596
|
} else {
|
|
597
597
|
scrollToContent();
|
|
598
598
|
}
|
|
@@ -646,17 +646,17 @@ function useDocumentTree(config, initialPath) {
|
|
|
646
646
|
return docNavigation.register({
|
|
647
647
|
baseRoute: normalizedBaseRoute,
|
|
648
648
|
findNodeByPath: (path) => {
|
|
649
|
-
const clean =
|
|
650
|
-
return _nullishCoalesce(
|
|
649
|
+
const clean = _chunkIC4IJJB2cjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
650
|
+
return _nullishCoalesce(_chunkIC4IJJB2cjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
651
651
|
},
|
|
652
652
|
selectNode
|
|
653
653
|
});
|
|
654
654
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
655
655
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
656
656
|
if (structure.length === 0) return false;
|
|
657
|
-
if (!selectedPath) return !
|
|
658
|
-
const node =
|
|
659
|
-
return !!node && node.type === "folder" && !node.hasReadme && !
|
|
657
|
+
if (!selectedPath) return !_chunkIC4IJJB2cjs.rootDocumentPath.call(void 0, structure, folderIndexFile);
|
|
658
|
+
const node = _chunkIC4IJJB2cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
659
|
+
return !!node && node.type === "folder" && !node.hasReadme && !_chunkIC4IJJB2cjs.findFirstDocPath.call(void 0, node);
|
|
660
660
|
}, [selectedPath, structure, folderIndexFile]);
|
|
661
661
|
const isEmptySource = !isLoadingStructure && structure.length === 0;
|
|
662
662
|
const settled = isEmptyFolder || isEmptySource;
|
|
@@ -742,14 +742,14 @@ function DocViewerContent({
|
|
|
742
742
|
},
|
|
743
743
|
docPath
|
|
744
744
|
);
|
|
745
|
-
const { activeSection, handleSectionClick } =
|
|
745
|
+
const { activeSection, handleSectionClick } = _chunkBNHTBLAGcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _10 => _10.sections]));
|
|
746
746
|
const docNav = useDocNavigation();
|
|
747
747
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
748
748
|
const backCfg = backButton === false ? null : {
|
|
749
749
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _11 => _11.label]), () => ( "Back to home")),
|
|
750
750
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.href]), () => ( "/")))
|
|
751
751
|
};
|
|
752
|
-
const docSearch =
|
|
752
|
+
const docSearch = _chunk5RMBLOJ5cjs.useDocSearch.call(void 0, {
|
|
753
753
|
source: chatSource,
|
|
754
754
|
baseRoute,
|
|
755
755
|
searchEndpoint,
|
|
@@ -773,8 +773,8 @@ function DocViewerContent({
|
|
|
773
773
|
onResolveLink: resolveLink
|
|
774
774
|
});
|
|
775
775
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
776
|
-
const selectedNodePath = structure.length > 0 && !selectedPath ?
|
|
777
|
-
const selectedNodeDocType = structure.length > 0 ? selectedNodePath ? _optionalChain([
|
|
776
|
+
const selectedNodePath = structure.length > 0 && !selectedPath ? _chunkIC4IJJB2cjs.rootDocumentPath.call(void 0, structure, folderIndexFile) : selectedPath;
|
|
777
|
+
const selectedNodeDocType = structure.length > 0 ? selectedNodePath ? _optionalChain([_chunkIC4IJJB2cjs.findDocNodeByPath.call(void 0, selectedNodePath, structure), 'optionalAccess', _13 => _13.documentType]) : void 0 : initialDocumentType;
|
|
778
778
|
const isLoadingDocument = isLoadingContent || isLoadingStructure;
|
|
779
779
|
const loadingContent = isLoadingDocument ? renderContent(
|
|
780
780
|
{ content: "", sections: [], path: _nullishCoalesce(selectedPath, () => ( "")), documentType: selectedNodeDocType },
|
|
@@ -789,10 +789,10 @@ function DocViewerContent({
|
|
|
789
789
|
const bgClass = !isColorValue ? colorPalette.background : "";
|
|
790
790
|
const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
|
|
791
791
|
const resolvedEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : emptyStateText || "No documents yet.";
|
|
792
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
793
|
-
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
792
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.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: [
|
|
793
|
+
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD3H6AI7Ocjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _18 => _18.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
|
|
794
794
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
795
|
-
|
|
795
|
+
_chunk5RMBLOJ5cjs.DocSearchBar,
|
|
796
796
|
{
|
|
797
797
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
|
|
798
798
|
query: docSearch.query,
|
|
@@ -813,7 +813,7 @@ function DocViewerContent({
|
|
|
813
813
|
!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: [
|
|
814
814
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: [
|
|
815
815
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
816
|
-
|
|
816
|
+
_chunkBNHTBLAGcjs.MobileNavigationDropdown,
|
|
817
817
|
{
|
|
818
818
|
nodes: structure,
|
|
819
819
|
selectedPath,
|
|
@@ -827,7 +827,7 @@ function DocViewerContent({
|
|
|
827
827
|
/* @__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: [
|
|
828
828
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
829
829
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
830
|
-
|
|
830
|
+
_chunkBNHTBLAGcjs.MultiLevelNavigation,
|
|
831
831
|
{
|
|
832
832
|
nodes: structure,
|
|
833
833
|
selectedPath,
|
|
@@ -859,7 +859,7 @@ function DocViewerContent({
|
|
|
859
859
|
isMarkdownContent && isLoadingDocument && /* @__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: [
|
|
860
860
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: ON_THIS_PAGE_HEADING_CLASS, children: ON_THIS_PAGE_LABEL }),
|
|
861
861
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingScope, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
862
|
-
|
|
862
|
+
_chunkBNHTBLAGcjs.StickySectionNav,
|
|
863
863
|
{
|
|
864
864
|
sections: [],
|
|
865
865
|
activeSection: "",
|
|
@@ -872,7 +872,7 @@ function DocViewerContent({
|
|
|
872
872
|
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: [
|
|
873
873
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: ON_THIS_PAGE_HEADING_CLASS, children: ON_THIS_PAGE_LABEL }),
|
|
874
874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
875
|
-
|
|
875
|
+
_chunkBNHTBLAGcjs.StickySectionNav,
|
|
876
876
|
{
|
|
877
877
|
sections: stickyNavSections,
|
|
878
878
|
activeSection,
|
|
@@ -887,18 +887,18 @@ function DocViewerContent({
|
|
|
887
887
|
) })
|
|
888
888
|
] })
|
|
889
889
|
] }) }) });
|
|
890
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD3H6AI7Ocjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
// src/components/docs/docs-hub-page.tsx
|
|
894
894
|
|
|
895
895
|
var DEFAULT_TITLE = "Documents";
|
|
896
896
|
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" }) });
|
|
897
|
-
var defaultPdfRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
898
|
-
var defaultGoogleSheetRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
899
|
-
var defaultFigmaRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
897
|
+
var defaultPdfRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3SJVF3HWcjs.PdfViewer, { src: _nullishCoalesce(content.fileUrl, () => ( "")), fileName: content.fileName });
|
|
898
|
+
var defaultGoogleSheetRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3SJVF3HWcjs.GoogleSheetsViewer, { externalUrl: _nullishCoalesce(content.externalUrl, () => ( "")), fileName: content.fileName });
|
|
899
|
+
var defaultFigmaRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD3H6AI7Ocjs.FigmaEmbed, { url: _nullishCoalesce(content.externalUrl, () => ( "")), title: content.fileName, iframeLoading: "eager" });
|
|
900
900
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
901
|
-
|
|
901
|
+
_chunk3SJVF3HWcjs.FileDownloadCard,
|
|
902
902
|
{
|
|
903
903
|
fileName: content.fileName,
|
|
904
904
|
mimeType: content.mimeType,
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkD3H6AI7Ocjs = require('./chunk-D3H6AI7O.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkCOJG2ATYcjs = require('./chunk-COJG2ATY.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkUO2EJGRJcjs = require('./chunk-UO2EJGRJ.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkIC4IJJB2cjs = require('./chunk-IC4IJJB2.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkLFEURIZNcjs = require('./chunk-LFEURIZN.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkNMWLXHFHcjs = require('./chunk-NMWLXHFH.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -119,14 +119,14 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
123
|
-
const builtInSubmission =
|
|
122
|
+
const attachments = _chunkLFEURIZNcjs.useChatAttachments.call(void 0, );
|
|
123
|
+
const builtInSubmission = _chunkUO2EJGRJcjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
126
126
|
successToastMessage
|
|
127
127
|
});
|
|
128
128
|
const [customSubmitting, setCustomSubmitting] = _react.useState.call(void 0, false);
|
|
129
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
129
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkUO2EJGRJcjs.useHumanitySignals.call(void 0, );
|
|
130
130
|
const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting;
|
|
131
131
|
const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess;
|
|
132
132
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -152,7 +152,7 @@ function ContactForm({
|
|
|
152
152
|
),
|
|
153
153
|
[hideFields]
|
|
154
154
|
);
|
|
155
|
-
const rescue =
|
|
155
|
+
const rescue = _chunkUO2EJGRJcjs.useRescuedForm.call(void 0, form, { rescue: rescueForm, fields: rescueFieldNames, getSignals });
|
|
156
156
|
const handleFormSubmit = async (data) => {
|
|
157
157
|
if (isSubmitting) return;
|
|
158
158
|
if (attachmentsEnabled && attachments.hasInflightUploads) return;
|
|
@@ -190,7 +190,7 @@ function ContactForm({
|
|
|
190
190
|
className: `flex h-full flex-col ${!noBorder ? "rounded-2xl border border-ods-border content-md:rounded-3xl" : ""} ${!noPadding ? "p-6 content-md:p-8 content-lg:p-10" : ""}`,
|
|
191
191
|
children: [
|
|
192
192
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 content-md:mb-8", children: [
|
|
193
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
193
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkNMWLXHFHcjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunkNMWLXHFHcjs.accentSentenceMarks.call(void 0, title) }),
|
|
194
194
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: subtitle })
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -203,13 +203,13 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunkIC4IJJB2cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD3H6AI7Ocjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -261,17 +261,17 @@ function ContactForm({
|
|
|
261
261
|
{
|
|
262
262
|
control,
|
|
263
263
|
name: "companySize",
|
|
264
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
264
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCOJG2ATYcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
265
265
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
266
|
-
|
|
266
|
+
_chunkCOJG2ATYcjs.SelectTrigger,
|
|
267
267
|
{
|
|
268
268
|
id: "companySize",
|
|
269
269
|
"aria-label": "Company Size",
|
|
270
270
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
271
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectValue, { placeholder: "Select company size" })
|
|
272
272
|
}
|
|
273
273
|
),
|
|
274
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
274
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
275
275
|
] })
|
|
276
276
|
}
|
|
277
277
|
),
|
|
@@ -284,17 +284,17 @@ function ContactForm({
|
|
|
284
284
|
{
|
|
285
285
|
control,
|
|
286
286
|
name: "referralSource",
|
|
287
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
287
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCOJG2ATYcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
288
288
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
289
|
-
|
|
289
|
+
_chunkCOJG2ATYcjs.SelectTrigger,
|
|
290
290
|
{
|
|
291
291
|
id: "referralSource",
|
|
292
292
|
"aria-label": "Referral Source",
|
|
293
293
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
294
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
294
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectValue, { placeholder: "Select an option" })
|
|
295
295
|
}
|
|
296
296
|
),
|
|
297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
298
298
|
] })
|
|
299
299
|
}
|
|
300
300
|
),
|
|
@@ -311,18 +311,18 @@ function ContactForm({
|
|
|
311
311
|
{
|
|
312
312
|
control,
|
|
313
313
|
name: "helpCategory",
|
|
314
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
314
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCOJG2ATYcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
315
315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
-
|
|
316
|
+
_chunkCOJG2ATYcjs.SelectTrigger,
|
|
317
317
|
{
|
|
318
318
|
id: "helpCategory",
|
|
319
319
|
"aria-label": "Help Category",
|
|
320
320
|
"aria-required": true,
|
|
321
321
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
322
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
322
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
326
326
|
] })
|
|
327
327
|
}
|
|
328
328
|
),
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHXURNKXIcjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkD3H6AI7Ocjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -349,7 +349,7 @@ function ContactForm({
|
|
|
349
349
|
] }),
|
|
350
350
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
351
351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
-
|
|
352
|
+
_chunkLFEURIZNcjs.ChatAttachmentChipStrip,
|
|
353
353
|
{
|
|
354
354
|
attachments: attachments.attachments,
|
|
355
355
|
onRemove: attachments.removeAttachment,
|
|
@@ -358,7 +358,7 @@ function ContactForm({
|
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
360
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
-
|
|
361
|
+
_chunkLFEURIZNcjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|