@flamingo-stack/openframe-frontend-core 0.0.722 → 0.0.724
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-XJYAUIOL.cjs → chunk-2A4AGW7Z.cjs} +11 -11
- package/dist/{chunk-65C4WHG4.js → chunk-2HLGX6JF.js} +5 -5
- package/dist/{chunk-5K6YKRP5.cjs → chunk-3MMKIVWZ.cjs} +23 -23
- package/dist/{chunk-P7Y626YJ.cjs → chunk-3NVSC3BU.cjs} +687 -611
- package/dist/{chunk-VSYQJCNR.js → chunk-4N5DLIEC.js} +1 -1
- package/dist/{chunk-GYSTZD6X.cjs → chunk-5CJGNPTT.cjs} +35 -35
- package/dist/{chunk-AWWLEYAU.js → chunk-6BKDXUOQ.js} +6 -6
- package/dist/{chunk-BUDZWXRG.js → chunk-6QO6BIX7.js} +1 -1
- package/dist/{chunk-FDWYBJYD.cjs → chunk-7AXOAA5T.cjs} +3 -3
- package/dist/{chunk-SZF7ENIW.js → chunk-7CNGNPBI.js} +3 -3
- package/dist/{chunk-6HRQLM6T.cjs → chunk-A4WHVIYZ.cjs} +17 -17
- package/dist/{chunk-VV5INIQB.cjs → chunk-BIWG3CYN.cjs} +3 -3
- package/dist/{chunk-I3UUMRO7.js → chunk-BWMEQ7IZ.js} +1 -1
- package/dist/{chunk-7UZ2JZJY.js → chunk-CJENFR5T.js} +29 -3
- package/dist/{chunk-IITZ6JSC.cjs → chunk-DGNGABNG.cjs} +33 -7
- package/dist/{chunk-KWBH63GV.cjs → chunk-FR4MFSH5.cjs} +19 -19
- package/dist/{chunk-DWSBTGKT.cjs → chunk-GRB5HVEV.cjs} +2610 -2125
- package/dist/{chunk-JQ55FFIK.cjs → chunk-IPUDFAU5.cjs} +31 -31
- package/dist/{chunk-F33RMJOL.js → chunk-IUQKIU5A.js} +6 -6
- package/dist/{chunk-LV6UJD2K.cjs → chunk-JKWQWHNV.cjs} +6 -1
- package/dist/{chunk-VC7COEWF.cjs → chunk-JQ7A7PO5.cjs} +76 -76
- package/dist/{chunk-BCU6UUNQ.js → chunk-KKO4GRM3.js} +4 -4
- package/dist/{chunk-RVQV6J5K.cjs → chunk-L5CAET76.cjs} +64 -64
- package/dist/{chunk-WY4SLTMZ.js → chunk-MRBPJ4NB.js} +1 -1
- package/dist/{chunk-IF72N4PE.js → chunk-MU5F5QXJ.js} +6 -6
- package/dist/{chunk-NMGWNUKB.js → chunk-N2PX26BZ.js} +2 -2
- package/dist/{chunk-NFABAOMD.cjs → chunk-N4NGKXUU.cjs} +15 -15
- package/dist/{chunk-ETQVXIYW.js → chunk-NLZZUWR6.js} +4 -4
- package/dist/{chunk-ZMHP4Y6M.js → chunk-OFOBVPDV.js} +2 -2
- package/dist/{chunk-DX3W7DPC.js → chunk-OWFDXYEO.js} +1 -1
- package/dist/{chunk-HA2ASGJM.js → chunk-PF4WAKCS.js} +4 -4
- package/dist/{chunk-GAFK3WNT.cjs → chunk-QJ67GFF3.cjs} +32 -32
- package/dist/{chunk-KBPGSPXQ.js → chunk-QN3OXRTM.js} +4492 -4007
- package/dist/{chunk-ZHC6MDGF.cjs → chunk-QUI7DKBW.cjs} +41 -41
- package/dist/{chunk-E7NIZXDT.js → chunk-S4SVKXHN.js} +88 -12
- package/dist/{chunk-VYHCN5NU.cjs → chunk-SOTXV3T5.cjs} +3 -3
- package/dist/{chunk-MJ4SXOG2.cjs → chunk-SVDXNMBL.cjs} +16 -16
- package/dist/{chunk-UYMTAFHG.js → chunk-VLPGV5WH.js} +1 -1
- package/dist/{chunk-SZ3CBFSH.js → chunk-XDTD6YGG.js} +7 -7
- package/dist/{chunk-VU7RU3LL.cjs → chunk-YKV45BSJ.cjs} +4 -4
- package/dist/{chunk-XR7NVJXS.cjs → chunk-ZKL52ALL.cjs} +3 -3
- package/dist/{chunk-EWED6ISQ.js → chunk-ZQKN2Z6W.js} +5 -0
- package/dist/{cloud-tenants-4Z36KWSX.js → cloud-tenants-5MINXS5J.js} +6 -6
- package/dist/{cloud-tenants-5NIC5VXK.cjs → cloud-tenants-UMZJZTMB.cjs} +7 -7
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/case-studies/index.js +7 -7
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/index.js +4 -4
- package/dist/components/chat/utils/icon-library.d.ts +2 -0
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/contact/index.js +7 -7
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/docs/index.js +10 -10
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/embeds/index.js +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/faq/index.js +7 -7
- package/dist/components/features/index.cjs +23 -7
- package/dist/components/features/index.d.ts +1 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/index.js +22 -6
- package/dist/components/features/model-token-rates.d.ts +179 -0
- package/dist/components/features/model-token-rates.d.ts.map +1 -0
- package/dist/components/help-center-pages/index.cjs +130 -126
- package/dist/components/help-center-pages/index.js +47 -43
- package/dist/components/help-center-pages/trust-center-page.d.ts +34 -1
- package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/trust-center-sections.d.ts +1 -1
- package/dist/components/help-center-pages/trust-center-sections.d.ts.map +1 -1
- package/dist/components/index.cjs +73 -55
- package/dist/components/index.js +36 -18
- package/dist/components/meeting-scheduler/index.cjs +32 -32
- package/dist/components/meeting-scheduler/index.js +6 -6
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/navigation/index.js +9 -9
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.js +9 -9
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/product-demo/index.js +7 -7
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/related-content/index.js +3 -3
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/tickets/index.js +10 -10
- package/dist/components/ui/data-attribution.d.ts +3 -1
- package/dist/components/ui/data-attribution.d.ts.map +1 -1
- package/dist/components/ui/download-button.d.ts +19 -0
- package/dist/components/ui/download-button.d.ts.map +1 -0
- package/dist/components/ui/index.cjs +9 -7
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +8 -6
- package/dist/{devices-2TK3LAKM.js → devices-FSSUAUQN.js} +6 -6
- package/dist/{devices-7IKT72DK.cjs → devices-HOT7YSDN.cjs} +8 -8
- package/dist/index.cjs +53 -11
- package/dist/index.js +52 -10
- package/dist/{knowledge-HYSEV35H.cjs → knowledge-3N6HCFLU.cjs} +8 -8
- package/dist/{knowledge-3GJ4MU3V.js → knowledge-7HRUJX26.js} +6 -6
- package/dist/{logs-ZX3NADQC.cjs → logs-75M5YP6V.cjs} +15 -15
- package/dist/{logs-TATVM62H.js → logs-T25OE2QW.js} +6 -6
- package/dist/{policies-MRRKLF4Q.js → policies-4OK4XTD4.js} +6 -6
- package/dist/{policies-J4FSDKPI.cjs → policies-BTG7UJJC.cjs} +11 -11
- package/dist/{remote-session-Z2YCUPHU.cjs → remote-session-4DTOM3QD.cjs} +5 -5
- package/dist/{remote-session-WCLR47RN.js → remote-session-AZJXG7ZF.js} +3 -3
- package/dist/{software-update-KM46WUVQ.js → software-update-5SOV4FIR.js} +6 -6
- package/dist/{software-update-CXUBWYD2.cjs → software-update-OZURO4VK.cjs} +11 -11
- package/dist/types/index.cjs +27 -2
- package/dist/types/index.js +25 -3
- package/dist/types/trust-center.d.ts +19 -2
- package/dist/types/trust-center.d.ts.map +1 -1
- package/dist/utils/ai-providers.d.ts +29 -0
- package/dist/utils/ai-providers.d.ts.map +1 -0
- package/dist/utils/index.cjs +76 -2
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +68 -3
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/model-token-rates.d.ts +55 -0
- package/dist/utils/model-token-rates.d.ts.map +1 -0
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +3 -0
- package/src/components/chat/utils/icon-library.tsx +6 -0
- package/src/components/features/index.ts +1 -0
- package/src/components/features/model-token-rates.tsx +696 -0
- package/src/components/help-center-pages/trust-center-page.tsx +50 -29
- package/src/components/help-center-pages/trust-center-sections.tsx +2 -2
- package/src/components/ui/data-attribution.tsx +19 -6
- package/src/components/ui/download-button.tsx +34 -0
- package/src/components/ui/index.ts +1 -0
- package/src/types/trust-center.ts +52 -4
- package/src/utils/ai-providers.ts +46 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/list-url.ts +1 -0
- package/src/utils/model-token-rates.ts +103 -0
- package/src/utils/source-icons.ts +3 -0
|
@@ -3,31 +3,31 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZKL52ALLcjs = require('./chunk-ZKL52ALL.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkSOTXV3T5cjs = require('./chunk-SOTXV3T5.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk2A4AGW7Zcjs = require('./chunk-2A4AGW7Z.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkGRB5HVEVcjs = require('./chunk-GRB5HVEV.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkN4NGKXUUcjs = require('./chunk-N4NGKXUU.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk3NVSC3BUcjs = require('./chunk-3NVSC3BU.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -339,8 +339,8 @@ function toDocContent(value, requestedPath) {
|
|
|
339
339
|
}
|
|
340
340
|
function useDocumentTree(config, initialPath) {
|
|
341
341
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
342
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
343
|
-
const cleanInitialPath =
|
|
342
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunk3NVSC3BUcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
343
|
+
const cleanInitialPath = _chunk3NVSC3BUcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
344
344
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
345
345
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
346
346
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -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 = _chunk3NVSC3BUcjs.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(_chunk3NVSC3BUcjs.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(_chunk3NVSC3BUcjs.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(_chunk3NVSC3BUcjs.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);
|
|
@@ -452,7 +452,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
452
452
|
setContent(null);
|
|
453
453
|
return;
|
|
454
454
|
}
|
|
455
|
-
const probe =
|
|
455
|
+
const probe = _chunk3NVSC3BUcjs.findDocNodeByPath.call(void 0, _chunk3NVSC3BUcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
456
456
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
457
457
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
458
458
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -509,7 +509,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
509
509
|
if (selectedPath === "") {
|
|
510
510
|
pathToFetch = folderIndexFile;
|
|
511
511
|
} else {
|
|
512
|
-
const node =
|
|
512
|
+
const node = _chunk3NVSC3BUcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
513
513
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
514
514
|
const firstDocPath = findFirstDocPath(node);
|
|
515
515
|
if (!firstDocPath) {
|
|
@@ -550,16 +550,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
550
550
|
if (node.type === "folder") {
|
|
551
551
|
setExpandedNodes((prev) => {
|
|
552
552
|
if (prev.has(node.id)) {
|
|
553
|
-
const ancestorIds =
|
|
553
|
+
const ancestorIds = _chunk3NVSC3BUcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
554
554
|
ancestorIds.pop();
|
|
555
555
|
return new Set(ancestorIds);
|
|
556
556
|
}
|
|
557
|
-
return new Set(
|
|
557
|
+
return new Set(_chunk3NVSC3BUcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
558
558
|
});
|
|
559
559
|
} else {
|
|
560
560
|
const lastSlash = node.path.lastIndexOf("/");
|
|
561
561
|
if (lastSlash > 0) {
|
|
562
|
-
setExpandedNodes(new Set(
|
|
562
|
+
setExpandedNodes(new Set(_chunk3NVSC3BUcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
lastFetchedPath.current = null;
|
|
@@ -574,7 +574,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
574
574
|
const hashIndex = path.indexOf("#");
|
|
575
575
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
576
576
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
577
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
577
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunk3NVSC3BUcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
578
578
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
579
579
|
_chunkK2JUJ37Dcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkK2JUJ37Dcjs.HUB_HEADER_OFFSET_PX });
|
|
580
580
|
return;
|
|
@@ -638,15 +638,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
638
638
|
return docNavigation.register({
|
|
639
639
|
baseRoute: normalizedBaseRoute,
|
|
640
640
|
findNodeByPath: (path) => {
|
|
641
|
-
const clean =
|
|
642
|
-
return _nullishCoalesce(
|
|
641
|
+
const clean = _chunk3NVSC3BUcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
642
|
+
return _nullishCoalesce(_chunk3NVSC3BUcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
643
643
|
},
|
|
644
644
|
selectNode
|
|
645
645
|
});
|
|
646
646
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
647
647
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
648
648
|
if (!selectedPath || structure.length === 0) return false;
|
|
649
|
-
const node =
|
|
649
|
+
const node = _chunk3NVSC3BUcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
650
650
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
651
651
|
}, [selectedPath, structure]);
|
|
652
652
|
return {
|
|
@@ -726,14 +726,14 @@ function DocViewerContent({
|
|
|
726
726
|
},
|
|
727
727
|
docPath
|
|
728
728
|
);
|
|
729
|
-
const { activeSection, handleSectionClick } =
|
|
729
|
+
const { activeSection, handleSectionClick } = _chunkSOTXV3T5cjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
730
730
|
const docNav = useDocNavigation();
|
|
731
731
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
732
732
|
const backCfg = backButton === false ? null : {
|
|
733
733
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
734
734
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
735
735
|
};
|
|
736
|
-
const docSearch =
|
|
736
|
+
const docSearch = _chunk2A4AGW7Zcjs.useDocSearch.call(void 0, {
|
|
737
737
|
source: chatSource,
|
|
738
738
|
baseRoute,
|
|
739
739
|
searchEndpoint,
|
|
@@ -757,7 +757,7 @@ function DocViewerContent({
|
|
|
757
757
|
onResolveLink: resolveLink
|
|
758
758
|
});
|
|
759
759
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
760
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
760
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunk3NVSC3BUcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
761
761
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
762
762
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
763
763
|
const showStickyNav = isMarkdownContent;
|
|
@@ -768,9 +768,9 @@ function DocViewerContent({
|
|
|
768
768
|
const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
|
|
769
769
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
770
770
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
771
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
771
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4NGKXUUcjs.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: [
|
|
772
772
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
773
|
-
|
|
773
|
+
_chunk2A4AGW7Zcjs.DocSearchBar,
|
|
774
774
|
{
|
|
775
775
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
|
|
776
776
|
query: docSearch.query,
|
|
@@ -789,9 +789,9 @@ function DocViewerContent({
|
|
|
789
789
|
] })
|
|
790
790
|
] }) }),
|
|
791
791
|
!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: [
|
|
792
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
792
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRB5HVEVcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
793
793
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
794
|
-
|
|
794
|
+
_chunkSOTXV3T5cjs.MobileNavigationDropdown,
|
|
795
795
|
{
|
|
796
796
|
nodes: structure,
|
|
797
797
|
selectedPath,
|
|
@@ -805,7 +805,7 @@ function DocViewerContent({
|
|
|
805
805
|
/* @__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: [
|
|
806
806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
807
807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
808
|
-
|
|
808
|
+
_chunkSOTXV3T5cjs.MultiLevelNavigation,
|
|
809
809
|
{
|
|
810
810
|
nodes: structure,
|
|
811
811
|
selectedPath,
|
|
@@ -844,7 +844,7 @@ function DocViewerContent({
|
|
|
844
844
|
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: [
|
|
845
845
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
846
846
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
847
|
-
|
|
847
|
+
_chunkSOTXV3T5cjs.StickySectionNav,
|
|
848
848
|
{
|
|
849
849
|
sections: stickyNavSections,
|
|
850
850
|
activeSection,
|
|
@@ -859,7 +859,7 @@ function DocViewerContent({
|
|
|
859
859
|
) })
|
|
860
860
|
] })
|
|
861
861
|
] }) }) });
|
|
862
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
862
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRB5HVEVcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
863
863
|
}
|
|
864
864
|
|
|
865
865
|
// src/components/docs/skeletons.tsx
|
|
@@ -955,11 +955,11 @@ function EmbedSkeleton({ documentType } = {}) {
|
|
|
955
955
|
|
|
956
956
|
var DEFAULT_TITLE = "Documents";
|
|
957
957
|
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" }) });
|
|
958
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
959
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
960
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
958
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZKL52ALLcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
959
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZKL52ALLcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
960
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRB5HVEVcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
961
961
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
-
|
|
962
|
+
_chunkZKL52ALLcjs.FileDownloadCard,
|
|
963
963
|
{
|
|
964
964
|
fileName: content.fileName,
|
|
965
965
|
mimeType: content.mimeType,
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ArticleAuthorByline,
|
|
4
4
|
DetailPageSkeleton
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-N2PX26BZ.js";
|
|
6
6
|
import {
|
|
7
7
|
DocSearchBar,
|
|
8
8
|
useDocSearch
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7CNGNPBI.js";
|
|
10
10
|
import {
|
|
11
11
|
EntityTagBadges,
|
|
12
12
|
FilterPillRow,
|
|
13
13
|
LoadError,
|
|
14
14
|
PageShell,
|
|
15
15
|
RichMarkdownRenderer
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QN3OXRTM.js";
|
|
17
17
|
import {
|
|
18
18
|
PageLayout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VLPGV5WH.js";
|
|
20
20
|
import {
|
|
21
21
|
EntityVideoSection,
|
|
22
22
|
VideoBitesStrip,
|
|
23
23
|
resolveContentHref,
|
|
24
24
|
useCaptions
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-S4SVKXHN.js";
|
|
26
26
|
import {
|
|
27
27
|
useRouter,
|
|
28
28
|
useSearchParams
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
toStripProfile,
|
|
35
35
|
useSelfFetch,
|
|
36
36
|
useVideoWarmup
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-CJENFR5T.js";
|
|
38
38
|
import {
|
|
39
39
|
buildOgPlaceholderUrl
|
|
40
40
|
} from "./chunk-FSQQZFVG.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkJKWQWHNVcjs = require('./chunk-JKWQWHNV.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -440,7 +440,7 @@ function SlashCommandSuggestions({
|
|
|
440
440
|
className
|
|
441
441
|
),
|
|
442
442
|
children: commands.map((cmd, idx) => {
|
|
443
|
-
const Icon =
|
|
443
|
+
const Icon = _chunkJKWQWHNVcjs.resolveIcon.call(void 0, cmd.iconName);
|
|
444
444
|
const legacyMeta = !cmd.iconName && cmd.primarySourceId && resolveSourceIcon ? resolveSourceIcon(cmd.primarySourceId) : void 0;
|
|
445
445
|
const LegacyIcon = _optionalChain([legacyMeta, 'optionalAccess', _4 => _4.Icon]);
|
|
446
446
|
const title = _nullishCoalesce(_nullishCoalesce(cmd.label, () => ( _optionalChain([legacyMeta, 'optionalAccess', _5 => _5.label]))), () => ( cmd.id));
|
|
@@ -924,7 +924,7 @@ var ChatInput = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
|
924
924
|
className: "flex min-h-11 w-full items-center justify-center gap-[var(--spacing-system-xs)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-sf)] md:min-h-12",
|
|
925
925
|
children: [
|
|
926
926
|
awaitingTeam && awaitingTeam.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
927
|
-
|
|
927
|
+
_chunkJKWQWHNVcjs.AvatarStack,
|
|
928
928
|
{
|
|
929
929
|
people: awaitingTeam,
|
|
930
930
|
total: awaitingTeamCount,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
SearchInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QN3OXRTM.js";
|
|
5
5
|
import {
|
|
6
6
|
NEW_TAB_FEATURES,
|
|
7
7
|
getSourceLabel,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveExternalNavigation,
|
|
10
10
|
resolveSourceIcon,
|
|
11
11
|
stripSameOriginToPath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-S4SVKXHN.js";
|
|
13
13
|
import {
|
|
14
14
|
useDebounce
|
|
15
15
|
} from "./chunk-4I3K6LEH.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-GY4IZG22.js";
|
|
19
19
|
import {
|
|
20
20
|
decideNewTab
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CJENFR5T.js";
|
|
22
22
|
import {
|
|
23
23
|
contentFetch
|
|
24
24
|
} from "./chunk-FSQQZFVG.js";
|
|
@@ -6,15 +6,15 @@ var _chunkZSOFLPQNcjs = require('./chunk-ZSOFLPQN.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkGRB5HVEVcjs = require('./chunk-GRB5HVEV.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkN4NGKXUUcjs = require('./chunk-N4NGKXUU.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk3NVSC3BUcjs = require('./chunk-3NVSC3BU.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -23,10 +23,10 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkDGNGABNGcjs = require('./chunk-DGNGABNG.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkJKWQWHNVcjs = require('./chunk-JKWQWHNV.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
var _chunkLLRGR4I5cjs = require('./chunk-LLRGR4I5.cjs');
|
|
@@ -69,7 +69,7 @@ function ListEmptyState({ isFiltered, filtered, onClearFilters, empty }) {
|
|
|
69
69
|
var _react = require('react');
|
|
70
70
|
|
|
71
71
|
function DevSectionView({ sectionKey, hero, preControls, children, showHeading = true }) {
|
|
72
|
-
const section =
|
|
72
|
+
const section = _chunk3NVSC3BUcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
73
73
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
74
74
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
75
75
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
@@ -120,7 +120,7 @@ function DevSectionView({ sectionKey, hero, preControls, children, showHeading =
|
|
|
120
120
|
preControls,
|
|
121
121
|
(search || filter) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
122
122
|
search && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
123
|
-
|
|
123
|
+
_chunkGRB5HVEVcjs.SearchInput,
|
|
124
124
|
{
|
|
125
125
|
showDropdown: false,
|
|
126
126
|
placeholder: search.placeholder,
|
|
@@ -130,7 +130,7 @@ function DevSectionView({ sectionKey, hero, preControls, children, showHeading =
|
|
|
130
130
|
}
|
|
131
131
|
),
|
|
132
132
|
filter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
133
|
-
|
|
133
|
+
_chunkGRB5HVEVcjs.StatusFilterComponent,
|
|
134
134
|
{
|
|
135
135
|
selectedStatus: currentFilterValue,
|
|
136
136
|
onStatusChange: handleFilterChange,
|
|
@@ -154,7 +154,7 @@ function DevSectionPage({
|
|
|
154
154
|
shell = true
|
|
155
155
|
}) {
|
|
156
156
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
157
|
-
const section =
|
|
157
|
+
const section = _chunk3NVSC3BUcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
158
158
|
const backCfg = backButton === false ? void 0 : {
|
|
159
159
|
label: _nullishCoalesce((backButton ? backButton.label : void 0), () => ( "Back to home")),
|
|
160
160
|
onClick: () => router.push(_nullishCoalesce((backButton ? backButton.href : void 0), () => ( "/")))
|
|
@@ -167,7 +167,7 @@ function DevSectionPage({
|
|
|
167
167
|
// duplicate title. (The hero icon is intentionally dropped: TitleBlock is
|
|
168
168
|
// frozen and renders title-only.)
|
|
169
169
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
170
|
-
|
|
170
|
+
_chunkN4NGKXUUcjs.PageLayout,
|
|
171
171
|
{
|
|
172
172
|
title: _nullishCoalesce(title, () => ( section.hero.title)),
|
|
173
173
|
subtitle: _nullishCoalesce(subtitle, () => ( section.hero.description)),
|
|
@@ -178,7 +178,7 @@ function DevSectionPage({
|
|
|
178
178
|
}
|
|
179
179
|
)
|
|
180
180
|
);
|
|
181
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
181
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRB5HVEVcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
// src/components/shared/dev-section/dev-card-row.tsx
|
|
@@ -236,9 +236,9 @@ function getRelativeTime(timestamp) {
|
|
|
236
236
|
}
|
|
237
237
|
function DeliveryRow({ item, href, target, caption, id, className }) {
|
|
238
238
|
const taskType = item.taskType;
|
|
239
|
-
const typeBadgeLabel =
|
|
240
|
-
const typeBadgeTextColor =
|
|
241
|
-
const statusBadgeScheme =
|
|
239
|
+
const typeBadgeLabel = _chunk3NVSC3BUcjs.TASK_TYPE_LABELS[taskType] || "TASK";
|
|
240
|
+
const typeBadgeTextColor = _chunk3NVSC3BUcjs.TASK_TYPE_TEXT_COLORS[taskType] || "";
|
|
241
|
+
const statusBadgeScheme = _chunkDGNGABNGcjs.getStatusColorScheme.call(void 0, item.status);
|
|
242
242
|
const relativeTime = getRelativeTime(item.dateUpdated);
|
|
243
243
|
const subtitle = `ACTIVE ${relativeTime}${item.listNames.length > 0 ? `, ${item.listNames.join(", ")}` : ""}, ${item.id}`;
|
|
244
244
|
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col items-start justify-between gap-[12px] content-md:flex-row content-md:gap-[16px]", children: [
|
|
@@ -250,7 +250,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
|
|
|
250
250
|
] }),
|
|
251
251
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-shrink-0 flex-row items-center gap-2 self-stretch content-md:w-auto content-md:flex-col content-md:items-end content-md:self-start", children: [
|
|
252
252
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
253
|
-
|
|
253
|
+
_chunkDGNGABNGcjs.StatusBadge,
|
|
254
254
|
{
|
|
255
255
|
text: item.status.toUpperCase(),
|
|
256
256
|
colorScheme: statusBadgeScheme,
|
|
@@ -259,7 +259,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
|
|
|
259
259
|
}
|
|
260
260
|
),
|
|
261
261
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
262
|
-
|
|
262
|
+
_chunkDGNGABNGcjs.StatusBadge,
|
|
263
263
|
{
|
|
264
264
|
text: typeBadgeLabel,
|
|
265
265
|
variant: "card",
|
|
@@ -267,7 +267,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
|
|
|
267
267
|
}
|
|
268
268
|
),
|
|
269
269
|
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
270
|
-
|
|
270
|
+
_chunkJKWQWHNVcjs.AvatarStack,
|
|
271
271
|
{
|
|
272
272
|
size: "xs",
|
|
273
273
|
className: "ml-auto content-md:ml-0",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk3NVSC3BUcjs = require('./chunk-3NVSC3BU.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -42,7 +42,7 @@ function isSummaryData(value) {
|
|
|
42
42
|
}
|
|
43
43
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
44
44
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
45
|
-
const identity =
|
|
45
|
+
const identity = _chunk3NVSC3BUcjs.useChatIdentity.call(void 0, enabled);
|
|
46
46
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
47
47
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
48
48
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -158,7 +158,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
158
158
|
_react2.default.useEffect(() => {
|
|
159
159
|
if (!streamEnabled) return void 0;
|
|
160
160
|
if (typeof window === "undefined") return void 0;
|
|
161
|
-
subscriptionRef.current =
|
|
161
|
+
subscriptionRef.current = _chunk3NVSC3BUcjs.createSseSubscription.call(void 0, {
|
|
162
162
|
url: streamUrl,
|
|
163
163
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
164
164
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
AvatarStack,
|
|
7
7
|
resolveIcon
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZQKN2Z6W.js";
|
|
9
9
|
import {
|
|
10
10
|
SquareAvatar,
|
|
11
11
|
Tag,
|
|
@@ -1794,14 +1794,36 @@ function isTrustCenterMonitored(data, nowMs) {
|
|
|
1794
1794
|
const synced = Date.parse(data.syncedAt);
|
|
1795
1795
|
return Number.isFinite(synced) && nowMs - synced <= data.monitoredWindowMs;
|
|
1796
1796
|
}
|
|
1797
|
+
function trustCenterMonitoringStatus(data, nowMs) {
|
|
1798
|
+
if (!data.connected) return { status: "missing", label: "Live control monitoring is not enabled yet" };
|
|
1799
|
+
return isTrustCenterMonitored(data, nowMs) ? { status: "success", label: "Controls continuously monitored" } : { status: "pending", label: "Monitoring paused" };
|
|
1800
|
+
}
|
|
1797
1801
|
function trustFrameworksSummary(frameworks) {
|
|
1798
1802
|
return frameworks.map((f) => `${f.label}: ${trustFrameworkBadge(f)}`).join(" \xB7 ");
|
|
1799
1803
|
}
|
|
1804
|
+
function besideTrustCenterEndpoint(endpoint, segment) {
|
|
1805
|
+
const [path, query] = endpoint.split("?", 2);
|
|
1806
|
+
return `${path}/${segment}${query ? `?${query}` : ""}`;
|
|
1807
|
+
}
|
|
1800
1808
|
function trustCenterDocumentUrl(endpoint, document2) {
|
|
1801
1809
|
if (document2.access !== "public") return null;
|
|
1802
1810
|
if (document2.externalUrl) return document2.externalUrl;
|
|
1803
|
-
|
|
1804
|
-
|
|
1811
|
+
return besideTrustCenterEndpoint(endpoint, `documents/${encodeURIComponent(document2.id)}`);
|
|
1812
|
+
}
|
|
1813
|
+
function trustCenterPdfUrl(endpoint) {
|
|
1814
|
+
return besideTrustCenterEndpoint(endpoint, "pdf");
|
|
1815
|
+
}
|
|
1816
|
+
function visibleTrustCenterSections(data) {
|
|
1817
|
+
const hasContent = {
|
|
1818
|
+
ai: data.aiPractices.length > 0,
|
|
1819
|
+
compliance: data.frameworks.length > 0,
|
|
1820
|
+
controls: data.controlDomains.length > 0,
|
|
1821
|
+
documents: data.documents.length > 0,
|
|
1822
|
+
subprocessors: data.subprocessors.length > 0,
|
|
1823
|
+
faq: data.faqs.length > 0,
|
|
1824
|
+
contact: true
|
|
1825
|
+
};
|
|
1826
|
+
return TRUST_CENTER_SECTIONS.filter((section) => hasContent[section.id]);
|
|
1805
1827
|
}
|
|
1806
1828
|
var TRUST_CENTER_SEARCH_PARAM = "q";
|
|
1807
1829
|
var TRUST_CENTER_SEARCH_MAX_CHARS = 100;
|
|
@@ -1891,6 +1913,7 @@ var BUILDERS = {
|
|
|
1891
1913
|
prospect_call: (ids, b) => `${b}/api/prospect-calls?ids=${ids.join(",")}`,
|
|
1892
1914
|
// The public website's own pages (live source; ChatRef-shaped items like the objects above).
|
|
1893
1915
|
site_page: (ids, b) => `${b}/api/site-pages?ids=${ids.join(",")}`,
|
|
1916
|
+
openframe_price: (ids, b) => `${b}/api/openframe-pricing?ids=${ids.join(",")}`,
|
|
1894
1917
|
// The OpenMSP vendor directory (indexed source).
|
|
1895
1918
|
vendor: (ids, b) => `${b}/api/vendors/cards?ids=${ids.join(",")}`,
|
|
1896
1919
|
// Code intelligence — per-object card hydration, same `handleEntityCardList`
|
|
@@ -5469,8 +5492,11 @@ export {
|
|
|
5469
5492
|
TRUST_CENTER_DOCUMENT_TYPE,
|
|
5470
5493
|
TRUST_CENTER_PAGE_PATH,
|
|
5471
5494
|
isTrustCenterMonitored,
|
|
5495
|
+
trustCenterMonitoringStatus,
|
|
5472
5496
|
trustFrameworksSummary,
|
|
5473
5497
|
trustCenterDocumentUrl,
|
|
5498
|
+
trustCenterPdfUrl,
|
|
5499
|
+
visibleTrustCenterSections,
|
|
5474
5500
|
TRUST_CENTER_SEARCH_PARAM,
|
|
5475
5501
|
TRUST_CENTER_SEARCH_MAX_CHARS,
|
|
5476
5502
|
TRUST_CENTER_SEARCH_DEBOUNCE_MS,
|