@flamingo-stack/openframe-frontend-core 0.0.752 → 0.0.754
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/{chunk-OXEAN3EQ.cjs → chunk-35BJY5RR.cjs} +44 -44
- package/dist/{chunk-ZYRRRKSZ.cjs → chunk-5E6JHOGX.cjs} +3 -3
- package/dist/{chunk-35RU25PJ.cjs → chunk-7Z4EQOIX.cjs} +44 -44
- package/dist/{chunk-4PEG4JTM.cjs → chunk-B27XV2TC.cjs} +6 -6
- package/dist/{chunk-4OTCQEP3.cjs → chunk-BLZIUELR.cjs} +11 -11
- package/dist/{chunk-KBJSZFBZ.cjs → chunk-BQQ3JGEO.cjs} +3 -3
- package/dist/{chunk-RDH63XXW.cjs → chunk-DW5OKTUP.cjs} +34 -34
- package/dist/{chunk-KUVYVAS2.cjs → chunk-EDSFLB7J.cjs} +19 -17
- package/dist/{chunk-WQCLN27R.cjs → chunk-FAFFWYEH.cjs} +4 -4
- package/dist/{chunk-P4ODFQGA.cjs → chunk-GQYCVZJI.cjs} +4 -4
- package/dist/{chunk-Y6PVZRYL.cjs → chunk-IVAAQSOU.cjs} +12 -12
- package/dist/{chunk-EUQJ7QHW.cjs → chunk-JXACH52M.cjs} +4 -4
- package/dist/{chunk-JI6NRWCC.cjs → chunk-MOEILCEX.cjs} +13 -13
- package/dist/{chunk-IPVJAML5.cjs → chunk-OGKV5NOP.cjs} +69 -69
- package/dist/{chunk-OXCGQV6B.cjs → chunk-RTQN35EP.cjs} +153 -146
- package/dist/{chunk-EM4OEWCM.cjs → chunk-SDF5UUTE.cjs} +749 -608
- package/dist/{chunk-7OEVVMAU.cjs → chunk-T4BBZ5ST.cjs} +2 -2
- package/dist/{chunk-XADJG35G.cjs → chunk-TBDVF4SN.cjs} +31 -31
- package/dist/{chunk-G44V3UGE.cjs → chunk-TPJTFN7O.cjs} +81 -81
- package/dist/{chunk-J5G4CF2V.cjs → chunk-U4I3QR2A.cjs} +16 -16
- package/dist/{chunk-U2AE4UG7.cjs → chunk-UNRNLSG4.cjs} +2 -2
- package/dist/{chunk-ZVOXBSDP.cjs → chunk-WBOHLXFC.cjs} +2 -2
- package/dist/{chunk-VD3XBUQR.cjs → chunk-YSFOYBYC.cjs} +158 -158
- package/dist/{chunk-7WEGXNNS.cjs → chunk-ZNV5FE4T.cjs} +30 -30
- package/dist/{cloud-tenants-WAOMZZQ2.cjs → cloud-tenants-5OTPO7FL.cjs} +7 -7
- package/dist/components/announcement-bar.d.ts +1 -1
- package/dist/components/announcement-bar.d.ts.map +1 -1
- package/dist/components/announcement-bar.js +3 -1
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/chat-dialog-menu-items.js +6 -6
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +3 -0
- package/dist/components/chat/chat-panel-context.d.ts +3 -0
- package/dist/components/chat/chat-panel-context.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts +20 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +78 -8
- package/dist/components/chat/hooks/index.d.ts +1 -0
- package/dist/components/chat/hooks/index.d.ts.map +1 -1
- package/dist/components/chat/hooks/index.js +1 -0
- package/dist/components/chat/hooks/use-what-to-ask.d.ts +69 -0
- package/dist/components/chat/hooks/use-what-to-ask.d.ts.map +1 -0
- package/dist/components/chat/hooks/use-what-to-ask.js +106 -0
- package/dist/components/chat/index.cjs +13 -5
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +1 -0
- package/dist/components/chat/mingo-chat-header.d.ts +4 -2
- package/dist/components/chat/mingo-chat-header.d.ts.map +1 -1
- package/dist/components/chat/mingo-chat-header.js +7 -2
- package/dist/components/chat/suggestions-display.d.ts +11 -0
- package/dist/components/chat/suggestions-display.d.ts.map +1 -0
- package/dist/components/chat/suggestions-display.js +27 -0
- package/dist/components/chat/types/message.types.d.ts +27 -1
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/utils/extract-incomplete-message-state.d.ts.map +1 -1
- package/dist/components/chat/utils/extract-incomplete-message-state.js +2 -0
- package/dist/components/chat/utils/message-segment-accumulator.d.ts.map +1 -1
- package/dist/components/chat/utils/message-segment-accumulator.js +3 -0
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/faq/index.cjs +9 -9
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/help-center-pages/index.cjs +84 -84
- package/dist/components/index.cjs +66 -56
- package/dist/components/meeting-scheduler/index.cjs +31 -31
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/index.cjs +15 -7
- package/dist/{devices-VFEPXW2N.cjs → devices-MBGMD7BO.cjs} +8 -8
- package/dist/{embeddable-chat-BYQBABDV.cjs → embeddable-chat-CMEHSDV7.cjs} +163 -91
- package/dist/index.cjs +23 -11
- package/dist/{knowledge-4TE7AWZX.cjs → knowledge-LO5RK6PM.cjs} +8 -8
- package/dist/{logs-3B2P3JXN.cjs → logs-QRGJSZ4G.cjs} +15 -15
- package/dist/{policies-DVI6V22X.cjs → policies-OIQDO6F5.cjs} +11 -11
- package/dist/{scripts-JJ2BVYQ5.cjs → scripts-XULUNPDV.cjs} +12 -12
- package/dist/{software-update-BN23RATE.cjs → software-update-SRF55434.cjs} +10 -10
- package/dist/types/announcement.cjs +2 -0
- package/dist/types/announcement.d.ts +21 -0
- package/dist/types/announcement.d.ts.map +1 -1
- package/dist/types/announcement.js +2 -0
- package/dist/types/index.cjs +2 -0
- package/dist/utils/announcement-surface.d.ts +8 -0
- package/dist/utils/announcement-surface.d.ts.map +1 -0
- package/dist/utils/announcement-surface.js +7 -0
- package/dist/utils/index.cjs +7 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/package.json +1 -1
- package/src/components/announcement-bar.tsx +9 -1
- package/src/components/chat/chat-dialog-menu-items.tsx +6 -6
- package/src/components/chat/chat-message-enhanced.tsx +3 -0
- package/src/components/chat/chat-panel-context.tsx +3 -0
- package/src/components/chat/embeddable-chat.tsx +132 -9
- package/src/components/chat/hooks/index.ts +1 -0
- package/src/components/chat/hooks/use-what-to-ask.ts +203 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/mingo-chat-header.tsx +11 -4
- package/src/components/chat/suggestions-display.tsx +41 -0
- package/src/components/chat/types/message.types.ts +31 -1
- package/src/components/chat/utils/extract-incomplete-message-state.ts +2 -0
- package/src/components/chat/utils/message-segment-accumulator.ts +4 -0
- package/src/types/announcement.ts +22 -0
- package/src/utils/announcement-surface.ts +14 -0
- package/src/utils/index.ts +2 -0
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBQQ3JGEOcjs = require('./chunk-BQQ3JGEO.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkGQYCVZJIcjs = require('./chunk-GQYCVZJI.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkIVAAQSOUcjs = require('./chunk-IVAAQSOU.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkYSFOYBYCcjs = require('./chunk-YSFOYBYC.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
|
|
@@ -28,7 +28,7 @@ var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkRTQN35EPcjs = require('./chunk-RTQN35EP.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -344,8 +344,8 @@ function toDocContent(value, requestedPath) {
|
|
|
344
344
|
}
|
|
345
345
|
function useDocumentTree(config, initialPath) {
|
|
346
346
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
347
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
348
|
-
const cleanInitialPath =
|
|
347
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkRTQN35EPcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
348
|
+
const cleanInitialPath = _chunkRTQN35EPcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
349
349
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
350
350
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
351
351
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -369,12 +369,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
369
369
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
370
370
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
371
371
|
}
|
|
372
|
-
pathFromUrl =
|
|
372
|
+
pathFromUrl = _chunkRTQN35EPcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
373
373
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
374
374
|
setSelectedPath(pathFromUrl);
|
|
375
375
|
if (pathFromUrl) {
|
|
376
376
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
377
|
-
setExpandedNodes(new Set(
|
|
377
|
+
setExpandedNodes(new Set(_chunkRTQN35EPcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
378
378
|
}
|
|
379
379
|
setTimeout(() => {
|
|
380
380
|
scrollToContent();
|
|
@@ -392,7 +392,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
392
392
|
setSelectedPath(cleanInitialPath);
|
|
393
393
|
if (cleanInitialPath) {
|
|
394
394
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
395
|
-
setExpandedNodes(new Set(
|
|
395
|
+
setExpandedNodes(new Set(_chunkRTQN35EPcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
396
396
|
}
|
|
397
397
|
setExternalNavCount((n) => n + 1);
|
|
398
398
|
}
|
|
@@ -417,7 +417,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
417
417
|
if (cleanInitialPath) {
|
|
418
418
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
419
419
|
if (pathForExpansion) {
|
|
420
|
-
setExpandedNodes(new Set(
|
|
420
|
+
setExpandedNodes(new Set(_chunkRTQN35EPcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
421
421
|
}
|
|
422
422
|
} else if (nodes.length > 0) {
|
|
423
423
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -457,7 +457,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
457
457
|
setContent(null);
|
|
458
458
|
return;
|
|
459
459
|
}
|
|
460
|
-
const probe =
|
|
460
|
+
const probe = _chunkRTQN35EPcjs.findDocNodeByPath.call(void 0, _chunkRTQN35EPcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
461
461
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
462
462
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
463
463
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -514,7 +514,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
514
514
|
if (selectedPath === "") {
|
|
515
515
|
pathToFetch = folderIndexFile;
|
|
516
516
|
} else {
|
|
517
|
-
const node =
|
|
517
|
+
const node = _chunkRTQN35EPcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
518
518
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
519
519
|
const firstDocPath = findFirstDocPath(node);
|
|
520
520
|
if (!firstDocPath) {
|
|
@@ -555,16 +555,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
555
555
|
if (node.type === "folder") {
|
|
556
556
|
setExpandedNodes((prev) => {
|
|
557
557
|
if (prev.has(node.id)) {
|
|
558
|
-
const ancestorIds =
|
|
558
|
+
const ancestorIds = _chunkRTQN35EPcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
559
559
|
ancestorIds.pop();
|
|
560
560
|
return new Set(ancestorIds);
|
|
561
561
|
}
|
|
562
|
-
return new Set(
|
|
562
|
+
return new Set(_chunkRTQN35EPcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
563
563
|
});
|
|
564
564
|
} else {
|
|
565
565
|
const lastSlash = node.path.lastIndexOf("/");
|
|
566
566
|
if (lastSlash > 0) {
|
|
567
|
-
setExpandedNodes(new Set(
|
|
567
|
+
setExpandedNodes(new Set(_chunkRTQN35EPcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
lastFetchedPath.current = null;
|
|
@@ -579,7 +579,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
579
579
|
const hashIndex = path.indexOf("#");
|
|
580
580
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
581
581
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
582
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
582
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkRTQN35EPcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
583
583
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
584
584
|
_chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkCSJO7ZGNcjs.HUB_HEADER_OFFSET_PX });
|
|
585
585
|
return;
|
|
@@ -643,15 +643,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
643
643
|
return docNavigation.register({
|
|
644
644
|
baseRoute: normalizedBaseRoute,
|
|
645
645
|
findNodeByPath: (path) => {
|
|
646
|
-
const clean =
|
|
647
|
-
return _nullishCoalesce(
|
|
646
|
+
const clean = _chunkRTQN35EPcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
647
|
+
return _nullishCoalesce(_chunkRTQN35EPcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
648
648
|
},
|
|
649
649
|
selectNode
|
|
650
650
|
});
|
|
651
651
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
652
652
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
653
653
|
if (!selectedPath || structure.length === 0) return false;
|
|
654
|
-
const node =
|
|
654
|
+
const node = _chunkRTQN35EPcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
655
655
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
656
656
|
}, [selectedPath, structure]);
|
|
657
657
|
return {
|
|
@@ -731,14 +731,14 @@ function DocViewerContent({
|
|
|
731
731
|
},
|
|
732
732
|
docPath
|
|
733
733
|
);
|
|
734
|
-
const { activeSection, handleSectionClick } =
|
|
734
|
+
const { activeSection, handleSectionClick } = _chunkGQYCVZJIcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
735
735
|
const docNav = useDocNavigation();
|
|
736
736
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
737
737
|
const backCfg = backButton === false ? null : {
|
|
738
738
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
739
739
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
740
740
|
};
|
|
741
|
-
const docSearch =
|
|
741
|
+
const docSearch = _chunkIVAAQSOUcjs.useDocSearch.call(void 0, {
|
|
742
742
|
source: chatSource,
|
|
743
743
|
baseRoute,
|
|
744
744
|
searchEndpoint,
|
|
@@ -762,7 +762,7 @@ function DocViewerContent({
|
|
|
762
762
|
onResolveLink: resolveLink
|
|
763
763
|
});
|
|
764
764
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
765
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
765
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkRTQN35EPcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
766
766
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
767
767
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
768
768
|
const showStickyNav = isMarkdownContent;
|
|
@@ -775,7 +775,7 @@ function DocViewerContent({
|
|
|
775
775
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
776
776
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GG3QAPTcjs.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: [
|
|
777
777
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
778
|
-
|
|
778
|
+
_chunkIVAAQSOUcjs.DocSearchBar,
|
|
779
779
|
{
|
|
780
780
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
|
|
781
781
|
query: docSearch.query,
|
|
@@ -794,9 +794,9 @@ function DocViewerContent({
|
|
|
794
794
|
] })
|
|
795
795
|
] }) }),
|
|
796
796
|
!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: [
|
|
797
|
-
/* @__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,
|
|
797
|
+
/* @__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, _chunkYSFOYBYCcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
798
798
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
799
|
-
|
|
799
|
+
_chunkGQYCVZJIcjs.MobileNavigationDropdown,
|
|
800
800
|
{
|
|
801
801
|
nodes: structure,
|
|
802
802
|
selectedPath,
|
|
@@ -810,7 +810,7 @@ function DocViewerContent({
|
|
|
810
810
|
/* @__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: [
|
|
811
811
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
812
812
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
813
|
-
|
|
813
|
+
_chunkGQYCVZJIcjs.MultiLevelNavigation,
|
|
814
814
|
{
|
|
815
815
|
nodes: structure,
|
|
816
816
|
selectedPath,
|
|
@@ -849,7 +849,7 @@ function DocViewerContent({
|
|
|
849
849
|
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: [
|
|
850
850
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
851
851
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
852
|
-
|
|
852
|
+
_chunkGQYCVZJIcjs.StickySectionNav,
|
|
853
853
|
{
|
|
854
854
|
sections: stickyNavSections,
|
|
855
855
|
activeSection,
|
|
@@ -864,7 +864,7 @@ function DocViewerContent({
|
|
|
864
864
|
) })
|
|
865
865
|
] })
|
|
866
866
|
] }) }) });
|
|
867
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
867
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYSFOYBYCcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
868
868
|
}
|
|
869
869
|
|
|
870
870
|
// src/components/docs/skeletons.tsx
|
|
@@ -950,7 +950,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
950
950
|
] }),
|
|
951
951
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
|
|
952
952
|
] }),
|
|
953
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
953
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYSFOYBYCcjs.EmbedLoadingSkeleton, { region: false })
|
|
954
954
|
] });
|
|
955
955
|
}
|
|
956
956
|
|
|
@@ -958,11 +958,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
958
958
|
|
|
959
959
|
var DEFAULT_TITLE = "Documents";
|
|
960
960
|
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" }) });
|
|
961
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
963
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
961
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBQQ3JGEOcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
962
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBQQ3JGEOcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
963
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYSFOYBYCcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
964
964
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
965
|
-
|
|
965
|
+
_chunkBQQ3JGEOcjs.FileDownloadCard,
|
|
966
966
|
{
|
|
967
967
|
fileName: content.fileName,
|
|
968
968
|
mimeType: content.mimeType,
|
|
@@ -6,7 +6,7 @@ var _chunkVUWPLQBYcjs = require('./chunk-VUWPLQBY.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkRTQN35EPcjs = require('./chunk-RTQN35EP.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -48,7 +48,7 @@ var _chunk5OG5ZTNMcjs = require('./chunk-5OG5ZTNM.cjs');
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var
|
|
51
|
+
var _chunk7Z4EQOIXcjs = require('./chunk-7Z4EQOIX.cjs');
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
var _chunkJHQNUWFMcjs = require('./chunk-JHQNUWFM.cjs');
|
|
@@ -69,6 +69,7 @@ var _chunkH3RYUTNDcjs = require('./chunk-H3RYUTND.cjs');
|
|
|
69
69
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
70
70
|
|
|
71
71
|
// src/types/announcement.ts
|
|
72
|
+
var ANNOUNCEMENT_SURFACES = ["web", "desktop", "mobile"];
|
|
72
73
|
var ANNOUNCEMENT_DEFAULT_ICON = "openframe-logo";
|
|
73
74
|
var ANNOUNCEMENT_CTA_DEFAULTS = {
|
|
74
75
|
background: "#1A1A1A",
|
|
@@ -165,31 +166,31 @@ CveLink.displayName = "CveLink";
|
|
|
165
166
|
// src/components/platform/ShellTypeBadge.tsx
|
|
166
167
|
|
|
167
168
|
var shellIconMap = {
|
|
168
|
-
[
|
|
169
|
+
[_chunkRTQN35EPcjs.ShellTypeValues.POWERSHELL]: {
|
|
169
170
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
170
171
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
171
172
|
},
|
|
172
|
-
[
|
|
173
|
+
[_chunkRTQN35EPcjs.ShellTypeValues.CMD]: {
|
|
173
174
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
174
175
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
175
176
|
},
|
|
176
|
-
[
|
|
177
|
+
[_chunkRTQN35EPcjs.ShellTypeValues.BASH]: {
|
|
177
178
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
178
179
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
179
180
|
},
|
|
180
|
-
[
|
|
181
|
+
[_chunkRTQN35EPcjs.ShellTypeValues.PYTHON]: {
|
|
181
182
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
182
183
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
183
184
|
},
|
|
184
|
-
[
|
|
185
|
+
[_chunkRTQN35EPcjs.ShellTypeValues.NUSHELL]: {
|
|
185
186
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
186
187
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
187
188
|
},
|
|
188
|
-
[
|
|
189
|
+
[_chunkRTQN35EPcjs.ShellTypeValues.DENO]: {
|
|
189
190
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
190
191
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
191
192
|
},
|
|
192
|
-
[
|
|
193
|
+
[_chunkRTQN35EPcjs.ShellTypeValues.SHELL]: {
|
|
193
194
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
194
195
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
195
196
|
}
|
|
@@ -200,7 +201,7 @@ var defaultIconConfig = {
|
|
|
200
201
|
};
|
|
201
202
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
202
203
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
203
|
-
const label =
|
|
204
|
+
const label = _chunkRTQN35EPcjs.getShellLabel.call(void 0, normalizedType);
|
|
204
205
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
205
206
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
206
207
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -216,7 +217,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
216
217
|
if (!platforms || platforms.length === 0) {
|
|
217
218
|
return "All Platforms";
|
|
218
219
|
}
|
|
219
|
-
return platforms.map((platform) =>
|
|
220
|
+
return platforms.map((platform) => _chunkRTQN35EPcjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
220
221
|
}
|
|
221
222
|
function InfoCell({ label, value, avatar, className }) {
|
|
222
223
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -236,7 +237,7 @@ var ScriptInfoSection = ({
|
|
|
236
237
|
author,
|
|
237
238
|
className
|
|
238
239
|
}) => {
|
|
239
|
-
const shellLabel =
|
|
240
|
+
const shellLabel = _chunkRTQN35EPcjs.getShellLabel.call(void 0, shellType);
|
|
240
241
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
241
242
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
242
243
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
|
|
@@ -284,7 +285,7 @@ function OnboardingStepCard({
|
|
|
284
285
|
onSkip();
|
|
285
286
|
};
|
|
286
287
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
287
|
-
|
|
288
|
+
_chunk7Z4EQOIXcjs.InteractiveCard,
|
|
288
289
|
{
|
|
289
290
|
clickable: false,
|
|
290
291
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -310,7 +311,7 @@ function OnboardingStepCard({
|
|
|
310
311
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[32px] w-[100px] rounded-[6px]" }),
|
|
311
312
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[32px] w-[120px] rounded-[6px]" })
|
|
312
313
|
] }) : isCompleted ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
313
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
314
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Z4EQOIXcjs.StatusBadge, { text: "COMPLETED", variant: "card", colorScheme: "success" }),
|
|
314
315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
315
316
|
_chunk2QMBXGMQcjs.Button,
|
|
316
317
|
{
|
|
@@ -321,7 +322,7 @@ function OnboardingStepCard({
|
|
|
321
322
|
children: step.completedText
|
|
322
323
|
}
|
|
323
324
|
)
|
|
324
|
-
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
325
|
+
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Z4EQOIXcjs.StatusBadge, { text: "SKIPPED", variant: "card", colorScheme: "default" }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
325
326
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", onClick: handleSkip, children: "Skip Step" }),
|
|
326
327
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "accent", onClick: handleAction, disabled: isProcessing, leftIcon: step.actionIcon("black"), children: step.actionText })
|
|
327
328
|
] })
|
|
@@ -438,7 +439,7 @@ function OnboardingWalkthrough({
|
|
|
438
439
|
const isAllComplete = allStepsComplete(steps);
|
|
439
440
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "w-full space-y-4", className), children: [
|
|
440
441
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start justify-between gap-3 md:flex-row md:items-center md:gap-0", children: [
|
|
441
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
442
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk7Z4EQOIXcjs.SECTION_HEADING_CLASS, children: _chunk7Z4EQOIXcjs.accentSentenceMarks.call(void 0, title) }),
|
|
442
443
|
isLoadingCompletion ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[48px] w-full rounded-[6px] md:w-[160px]" }) : isAllComplete ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "accent", onClick: handleDismiss, className: "w-full md:w-auto", children: "Close Onboarding" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", onClick: handleDismiss, className: "w-full md:w-auto", children: "Skip Onboarding" })
|
|
443
444
|
] }),
|
|
444
445
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, spacing), children: steps.map((step) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -467,4 +468,5 @@ function OnboardingWalkthrough({
|
|
|
467
468
|
|
|
468
469
|
|
|
469
470
|
|
|
470
|
-
|
|
471
|
+
|
|
472
|
+
exports.ANNOUNCEMENT_SURFACES = ANNOUNCEMENT_SURFACES; exports.ANNOUNCEMENT_DEFAULT_ICON = ANNOUNCEMENT_DEFAULT_ICON; exports.ANNOUNCEMENT_CTA_DEFAULTS = ANNOUNCEMENT_CTA_DEFAULTS; exports.AVAILABLE_SVG_ICONS = AVAILABLE_SVG_ICONS; exports.SoftwareInfo = SoftwareInfo; exports.SoftwareSourceBadge = SoftwareSourceBadge; exports.CveLink = CveLink; exports.ShellTypeBadge = ShellTypeBadge; exports.ScriptInfoSection = ScriptInfoSection; exports.OnboardingStepCard = OnboardingStepCard; exports.OnboardingWalkthrough = OnboardingWalkthrough;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkMOEILCEXcjs = require('./chunk-MOEILCEX.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYSFOYBYCcjs = require('./chunk-YSFOYBYC.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
|
|
@@ -35,7 +35,7 @@ function FaqDocumentPage({
|
|
|
35
35
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
36
36
|
};
|
|
37
37
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GG3QAPTcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
-
|
|
38
|
+
_chunkMOEILCEXcjs.FaqSection,
|
|
39
39
|
{
|
|
40
40
|
initialFaqs,
|
|
41
41
|
heading: null,
|
|
@@ -49,7 +49,7 @@ function FaqDocumentPage({
|
|
|
49
49
|
ask
|
|
50
50
|
}
|
|
51
51
|
) });
|
|
52
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYSFOYBYCcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRTQN35EPcjs = require('./chunk-RTQN35EP.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSDF5UUTEcjs = require('./chunk-SDF5UUTE.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -50,7 +50,7 @@ function HorizontalSectionNav({
|
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { ref: navRef, "aria-label": label, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex h-14 items-stretch gap-6 bg-ods-bg", className), children: [
|
|
51
51
|
brand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden shrink-0 items-center gap-2.5 border-r border-ods-border pr-6 text-ods-text-primary text-h4 content-lg:flex", children: brand }),
|
|
52
52
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53
|
-
|
|
53
|
+
_chunkSDF5UUTEcjs.ScrollShadow,
|
|
54
54
|
{
|
|
55
55
|
axis: "horizontal",
|
|
56
56
|
className: "min-w-0 flex-1",
|
|
@@ -335,7 +335,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
335
335
|
// src/components/navigation/multi-level-navigation.tsx
|
|
336
336
|
var _lucidereact = require('lucide-react');
|
|
337
337
|
|
|
338
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
338
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunkRTQN35EPcjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
339
339
|
function isNodeVisuallySelected(node, selectedPath, folderIndexFile = DEFAULT_FOLDER_INDEX_FILE2) {
|
|
340
340
|
const FOLDER_INDEX_FILE = folderIndexFile.toLowerCase();
|
|
341
341
|
if (selectedPath === node.path) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYSFOYBYCcjs = require('./chunk-YSFOYBYC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkSDF5UUTEcjs = require('./chunk-SDF5UUTE.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkCSJO7ZGNcjs = require('./chunk-CSJO7ZGN.cjs');
|
|
@@ -19,7 +19,7 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk7Z4EQOIXcjs = require('./chunk-7Z4EQOIX.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
@@ -40,7 +40,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
40
40
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
41
41
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
42
42
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
43
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
43
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkSDF5UUTEcjs.resolveSourceIcon.call(void 0, {
|
|
44
44
|
sourceRepo,
|
|
45
45
|
documentType: docType
|
|
46
46
|
});
|
|
@@ -70,7 +70,7 @@ function DocSearchBar({
|
|
|
70
70
|
renderResult
|
|
71
71
|
}) {
|
|
72
72
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
73
|
-
|
|
73
|
+
_chunkYSFOYBYCcjs.SearchInput,
|
|
74
74
|
{
|
|
75
75
|
placeholder,
|
|
76
76
|
value: query,
|
|
@@ -120,7 +120,7 @@ function mapDocSearchResults(docs) {
|
|
|
120
120
|
results.push({
|
|
121
121
|
id: `group-${entry.repo}`,
|
|
122
122
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
123
|
-
title: `${
|
|
123
|
+
title: `${_chunkSDF5UUTEcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkSDF5UUTEcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
124
124
|
path: rows[0].path,
|
|
125
125
|
type: "file",
|
|
126
126
|
metadata: {
|
|
@@ -183,7 +183,7 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
|
|
|
183
183
|
if (composed && !isAbsoluteHref(href)) {
|
|
184
184
|
return { kind: "navigate-same-tab", href };
|
|
185
185
|
}
|
|
186
|
-
const isNewTab =
|
|
186
|
+
const isNewTab = _chunk7Z4EQOIXcjs.decideNewTab.call(void 0, {
|
|
187
187
|
href,
|
|
188
188
|
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
189
189
|
surface: "useUnifiedNav",
|
|
@@ -312,31 +312,31 @@ function useDocSearch(config) {
|
|
|
312
312
|
case "navigate-same-tab": {
|
|
313
313
|
if (wantsNewTab) {
|
|
314
314
|
setKeepOpen(true);
|
|
315
|
-
window.open(action.href, "_blank",
|
|
315
|
+
window.open(action.href, "_blank", _chunk7Z4EQOIXcjs.NEW_TAB_FEATURES);
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
318
|
setKeepOpen(false);
|
|
319
319
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
320
320
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
321
|
-
router.push(
|
|
321
|
+
router.push(_chunk7Z4EQOIXcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
322
322
|
return;
|
|
323
323
|
}
|
|
324
324
|
case "navigate-new-tab":
|
|
325
325
|
setKeepOpen(true);
|
|
326
326
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
327
327
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
328
|
-
|
|
328
|
+
_chunk7Z4EQOIXcjs.resolveExternalNavigation.call(void 0, {
|
|
329
329
|
href: action.href,
|
|
330
330
|
targetPlatform,
|
|
331
331
|
runtime
|
|
332
332
|
}).open();
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
window.open(action.href, "_blank",
|
|
335
|
+
window.open(action.href, "_blank", _chunk7Z4EQOIXcjs.NEW_TAB_FEATURES);
|
|
336
336
|
return;
|
|
337
337
|
case "ask-ai":
|
|
338
338
|
setKeepOpen(false);
|
|
339
|
-
window.dispatchEvent(new CustomEvent(
|
|
339
|
+
window.dispatchEvent(new CustomEvent(_chunkSDF5UUTEcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
340
340
|
return;
|
|
341
341
|
case "route":
|
|
342
342
|
setKeepOpen(false);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRTQN35EPcjs = require('./chunk-RTQN35EP.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSDF5UUTEcjs = require('./chunk-SDF5UUTE.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.cjs');
|
|
@@ -44,7 +44,7 @@ function isSummaryData(value) {
|
|
|
44
44
|
}
|
|
45
45
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
46
46
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
47
|
-
const identity =
|
|
47
|
+
const identity = _chunkSDF5UUTEcjs.useChatIdentity.call(void 0, enabled);
|
|
48
48
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
49
49
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
50
50
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -160,7 +160,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
160
160
|
_react2.default.useEffect(() => {
|
|
161
161
|
if (!streamEnabled) return void 0;
|
|
162
162
|
if (typeof window === "undefined") return void 0;
|
|
163
|
-
subscriptionRef.current =
|
|
163
|
+
subscriptionRef.current = _chunkRTQN35EPcjs.createSseSubscription.call(void 0, {
|
|
164
164
|
url: streamUrl,
|
|
165
165
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
166
166
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|