@flamingo-stack/openframe-frontend-core 0.0.790 → 0.0.792
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-7GNSCDUK.cjs → chunk-2I2AXIBD.cjs} +136 -139
- package/dist/{chunk-6YPT2BD4.cjs → chunk-3AN35WAO.cjs} +61 -61
- package/dist/{chunk-O4XBGLMA.cjs → chunk-4G2KZHZW.cjs} +8 -4
- package/dist/{chunk-LZG7PBF3.cjs → chunk-5MIGBLDC.cjs} +14 -14
- package/dist/{chunk-TIDJN3OQ.cjs → chunk-6ZPHUDTP.cjs} +3 -3
- package/dist/{chunk-ISSBE5JP.cjs → chunk-7EH7KKFW.cjs} +25 -25
- package/dist/{chunk-HKMEI2NX.cjs → chunk-ABZGBMC2.cjs} +30 -30
- package/dist/{chunk-PLNLTN4R.cjs → chunk-EPWLLLGW.cjs} +11 -11
- package/dist/{chunk-V4RKY4ZY.cjs → chunk-FBA6S4ES.cjs} +43 -42
- package/dist/{chunk-DKOLQPE7.cjs → chunk-FDZOE5TL.cjs} +16 -1
- package/dist/{chunk-RIIMY7XW.cjs → chunk-HMV32LV4.cjs} +4 -4
- package/dist/{chunk-ANQCSCNU.cjs → chunk-IHLGPIFO.cjs} +2 -2
- package/dist/{chunk-STEJZPIO.cjs → chunk-LHV2R6QU.cjs} +3 -3
- package/dist/{chunk-RYSEW4XI.cjs → chunk-O4TKEWNW.cjs} +11 -11
- package/dist/{chunk-OWKLWCLZ.cjs → chunk-OKQQJ5TD.cjs} +50 -40
- package/dist/{chunk-5FV2FQQD.cjs → chunk-OZIPPOSJ.cjs} +7 -5
- package/dist/{chunk-EU3NQPFE.cjs → chunk-P2JY2XCV.cjs} +48 -48
- package/dist/{chunk-4YIDZCTL.cjs → chunk-SMZWXY4X.cjs} +7 -13
- package/dist/{chunk-KI5TJDK3.cjs → chunk-SXEIK7RU.cjs} +2 -2
- package/dist/{chunk-F7UIQ6UG.cjs → chunk-TBGVWIF7.cjs} +2 -2
- package/dist/{chunk-GYSRYYDM.cjs → chunk-UNUJ5YQ5.cjs} +4 -4
- package/dist/{chunk-QPXC3LEV.cjs → chunk-VUQNTCAL.cjs} +13 -13
- package/dist/{chunk-WTNAXQJW.cjs → chunk-W3Q7ZQLS.cjs} +4 -4
- package/dist/{chunk-EY64NXE7.cjs → chunk-WWWLOMZI.cjs} +82 -75
- package/dist/{chunk-F62QXKNL.cjs → chunk-YPWFYQFE.cjs} +16 -16
- package/dist/{chunk-PHWLEYAG.cjs → chunk-YWNXZAQ2.cjs} +32 -32
- package/dist/{chunk-IYWVS3SS.cjs → chunk-ZW2TS775.cjs} +2 -2
- package/dist/{chunk-F4RCB5LB.cjs → chunk-ZZPGSLMO.cjs} +4 -4
- package/dist/{cloud-tenants-D6DYR6UV.cjs → cloud-tenants-CQOD6DDR.cjs} +16 -16
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/ask-display.d.ts.map +1 -1
- package/dist/components/chat/ask-display.js +2 -4
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/docs/skeletons.d.ts.map +1 -1
- package/dist/components/docs/skeletons.js +11 -1
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/cards-strip.js +4 -1
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +83 -83
- package/dist/components/help-center-pages/trust-center-sections.js +1 -1
- package/dist/components/index.cjs +52 -52
- package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/directory.js +3 -1
- package/dist/components/meeting-scheduler/index.cjs +41 -39
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/fixtures/devices.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/devices.js +5 -12
- package/dist/components/product-demo/fixtures/shared.d.ts +89 -0
- package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/shared.js +15 -0
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/product-demo/screens/devices-view.d.ts.map +1 -1
- package/dist/components/product-demo/screens/devices-view.js +3 -1
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid.js +15 -8
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/image-gallery-modal.d.ts.map +1 -1
- package/dist/components/ui/image-gallery-modal.js +7 -5
- package/dist/components/ui/index.cjs +6 -6
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.js +9 -12
- package/dist/{devices-MZQ4573H.cjs → devices-PEBUW34G.cjs} +12 -12
- package/dist/{embeddable-chat-QLJ2KSWT.cjs → embeddable-chat-54X3TTG4.cjs} +62 -62
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-QZTFICLS.cjs → knowledge-KL4BP2YK.cjs} +11 -11
- package/dist/{logs-2YOR2SUA.cjs → logs-TO277M4F.cjs} +28 -28
- package/dist/{policies-KKFC4UOU.cjs → policies-6HSKMG4I.cjs} +13 -13
- package/dist/{remote-session-WKLEYACD.cjs → remote-session-4ZNTOLOQ.cjs} +5 -5
- package/dist/{scripts-UA46WAET.cjs → scripts-4IO2LPMY.cjs} +17 -17
- package/dist/{software-update-IN6TJL73.cjs → software-update-RMAWEZKX.cjs} +17 -17
- package/dist/{tickets-board-URMIIAKD.cjs → tickets-board-X4GHEKPB.cjs} +17 -17
- package/package.json +1 -1
- package/src/components/chat/ask-display.tsx +2 -4
- package/src/components/docs/skeletons.tsx +7 -1
- package/src/components/features/cards-strip.tsx +6 -2
- package/src/components/help-center-pages/trust-center-sections.tsx +1 -1
- package/src/components/meeting-scheduler/directory.tsx +6 -1
- package/src/components/product-demo/fixtures/devices.ts +5 -12
- package/src/components/product-demo/fixtures/shared.ts +20 -0
- package/src/components/product-demo/screens/devices-view.tsx +3 -0
- package/src/components/shared/roadmap/roadmap-grid.tsx +29 -7
- package/src/components/ui/image-gallery-modal.tsx +10 -7
- package/src/components/ui/snap-carousel.tsx +12 -11
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6ZPHUDTPcjs = require('./chunk-6ZPHUDTP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkSXEIK7RUcjs = require('./chunk-SXEIK7RU.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkEPWLLLGWcjs = require('./chunk-EPWLLLGW.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk2I2AXIBDcjs = require('./chunk-2I2AXIBD.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkRPC4P7GYcjs = require('./chunk-RPC4P7GY.cjs');
|
|
@@ -29,13 +29,13 @@ var _chunkRPC4P7GYcjs = require('./chunk-RPC4P7GY.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk7EH7KKFWcjs = require('./chunk-7EH7KKFW.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkFBA6S4EScjs = require('./chunk-FBA6S4ES.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -354,13 +354,13 @@ function toDocContent(value, requestedPath) {
|
|
|
354
354
|
function toDataSync(value) {
|
|
355
355
|
if (!isRecord(value)) return void 0;
|
|
356
356
|
const source = readString(value, "source");
|
|
357
|
-
if (!
|
|
357
|
+
if (!_chunk2I2AXIBDcjs.isDataSyncSource.call(void 0, source)) return void 0;
|
|
358
358
|
return { source, syncedAt: _nullishCoalesce(readString(value, "syncedAt"), () => ( null)) };
|
|
359
359
|
}
|
|
360
360
|
function useDocumentTree(config, initialPath) {
|
|
361
361
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
362
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
363
|
-
const cleanInitialPath =
|
|
362
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunk7EH7KKFWcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
363
|
+
const cleanInitialPath = _chunk7EH7KKFWcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
364
364
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
365
365
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
366
366
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -386,12 +386,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
386
386
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
387
387
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
388
388
|
}
|
|
389
|
-
pathFromUrl =
|
|
389
|
+
pathFromUrl = _chunk7EH7KKFWcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
390
390
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
391
391
|
setSelectedPath(pathFromUrl);
|
|
392
392
|
if (pathFromUrl) {
|
|
393
393
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
394
|
-
setExpandedNodes(new Set(
|
|
394
|
+
setExpandedNodes(new Set(_chunk7EH7KKFWcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
395
395
|
}
|
|
396
396
|
setTimeout(() => {
|
|
397
397
|
scrollToContent();
|
|
@@ -409,7 +409,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
409
409
|
setSelectedPath(cleanInitialPath);
|
|
410
410
|
if (cleanInitialPath) {
|
|
411
411
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
412
|
-
setExpandedNodes(new Set(
|
|
412
|
+
setExpandedNodes(new Set(_chunk7EH7KKFWcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
413
413
|
}
|
|
414
414
|
setExternalNavCount((n) => n + 1);
|
|
415
415
|
}
|
|
@@ -434,7 +434,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
434
434
|
if (cleanInitialPath) {
|
|
435
435
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
436
436
|
if (pathForExpansion) {
|
|
437
|
-
setExpandedNodes(new Set(
|
|
437
|
+
setExpandedNodes(new Set(_chunk7EH7KKFWcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
438
438
|
}
|
|
439
439
|
} else if (nodes.length > 0) {
|
|
440
440
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -474,7 +474,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
474
474
|
setContent(null);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
|
-
const probe =
|
|
477
|
+
const probe = _chunk7EH7KKFWcjs.findDocNodeByPath.call(void 0, _chunk7EH7KKFWcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
478
478
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
479
479
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
480
480
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -533,7 +533,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
533
533
|
if (selectedPath === "") {
|
|
534
534
|
pathToFetch = folderIndexFile;
|
|
535
535
|
} else {
|
|
536
|
-
const node =
|
|
536
|
+
const node = _chunk7EH7KKFWcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
537
537
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
538
538
|
const firstDocPath = findFirstDocPath(node);
|
|
539
539
|
if (!firstDocPath) {
|
|
@@ -574,16 +574,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
574
574
|
if (node.type === "folder") {
|
|
575
575
|
setExpandedNodes((prev) => {
|
|
576
576
|
if (prev.has(node.id)) {
|
|
577
|
-
const ancestorIds =
|
|
577
|
+
const ancestorIds = _chunk7EH7KKFWcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
578
578
|
ancestorIds.pop();
|
|
579
579
|
return new Set(ancestorIds);
|
|
580
580
|
}
|
|
581
|
-
return new Set(
|
|
581
|
+
return new Set(_chunk7EH7KKFWcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
582
582
|
});
|
|
583
583
|
} else {
|
|
584
584
|
const lastSlash = node.path.lastIndexOf("/");
|
|
585
585
|
if (lastSlash > 0) {
|
|
586
|
-
setExpandedNodes(new Set(
|
|
586
|
+
setExpandedNodes(new Set(_chunk7EH7KKFWcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
lastFetchedPath.current = null;
|
|
@@ -598,7 +598,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
598
598
|
const hashIndex = path.indexOf("#");
|
|
599
599
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
600
600
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
601
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
601
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunk7EH7KKFWcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
602
602
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
603
603
|
_chunkOJZBZH56cjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkOJZBZH56cjs.HUB_HEADER_OFFSET_PX });
|
|
604
604
|
return;
|
|
@@ -662,15 +662,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
662
662
|
return docNavigation.register({
|
|
663
663
|
baseRoute: normalizedBaseRoute,
|
|
664
664
|
findNodeByPath: (path) => {
|
|
665
|
-
const clean =
|
|
666
|
-
return _nullishCoalesce(
|
|
665
|
+
const clean = _chunk7EH7KKFWcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
666
|
+
return _nullishCoalesce(_chunk7EH7KKFWcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
667
667
|
},
|
|
668
668
|
selectNode
|
|
669
669
|
});
|
|
670
670
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
671
671
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
672
672
|
if (!selectedPath || structure.length === 0) return false;
|
|
673
|
-
const node =
|
|
673
|
+
const node = _chunk7EH7KKFWcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
674
674
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
675
675
|
}, [selectedPath, structure]);
|
|
676
676
|
return {
|
|
@@ -753,14 +753,14 @@ function DocViewerContent({
|
|
|
753
753
|
},
|
|
754
754
|
docPath
|
|
755
755
|
);
|
|
756
|
-
const { activeSection, handleSectionClick } =
|
|
756
|
+
const { activeSection, handleSectionClick } = _chunkSXEIK7RUcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
757
757
|
const docNav = useDocNavigation();
|
|
758
758
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
759
759
|
const backCfg = backButton === false ? null : {
|
|
760
760
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
761
761
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
762
762
|
};
|
|
763
|
-
const docSearch =
|
|
763
|
+
const docSearch = _chunkEPWLLLGWcjs.useDocSearch.call(void 0, {
|
|
764
764
|
source: chatSource,
|
|
765
765
|
baseRoute,
|
|
766
766
|
searchEndpoint,
|
|
@@ -784,7 +784,7 @@ function DocViewerContent({
|
|
|
784
784
|
onResolveLink: resolveLink
|
|
785
785
|
});
|
|
786
786
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
787
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
787
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunk7EH7KKFWcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
788
788
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
789
789
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
790
790
|
const showStickyNav = isMarkdownContent;
|
|
@@ -796,9 +796,9 @@ function DocViewerContent({
|
|
|
796
796
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
797
797
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
798
798
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRPC4P7GYcjs.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: [
|
|
799
|
-
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
799
|
+
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
|
|
800
800
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
801
|
-
|
|
801
|
+
_chunkEPWLLLGWcjs.DocSearchBar,
|
|
802
802
|
{
|
|
803
803
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _20 => _20.toLowerCase, 'call', _21 => _21()]) || "documents"}...`,
|
|
804
804
|
query: docSearch.query,
|
|
@@ -819,7 +819,7 @@ function DocViewerContent({
|
|
|
819
819
|
!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: [
|
|
820
820
|
/* @__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: [
|
|
821
821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
822
|
-
|
|
822
|
+
_chunkSXEIK7RUcjs.MobileNavigationDropdown,
|
|
823
823
|
{
|
|
824
824
|
nodes: structure,
|
|
825
825
|
selectedPath,
|
|
@@ -833,7 +833,7 @@ function DocViewerContent({
|
|
|
833
833
|
/* @__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: [
|
|
834
834
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
835
835
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
836
|
-
|
|
836
|
+
_chunkSXEIK7RUcjs.MultiLevelNavigation,
|
|
837
837
|
{
|
|
838
838
|
nodes: structure,
|
|
839
839
|
selectedPath,
|
|
@@ -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
|
+
_chunkSXEIK7RUcjs.StickySectionNav,
|
|
876
876
|
{
|
|
877
877
|
sections: stickyNavSections,
|
|
878
878
|
activeSection,
|
|
@@ -887,7 +887,7 @@ 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, _chunk2I2AXIBDcjs.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/skeletons.tsx
|
|
@@ -903,20 +903,30 @@ var MARKDOWN_SKELETON_BLOCKS = [
|
|
|
903
903
|
{ kind: "p", lines: 3 },
|
|
904
904
|
{ kind: "p", lines: 4 }
|
|
905
905
|
];
|
|
906
|
-
var MARKDOWN_SKELETON_H2_CLASS = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
907
|
-
var MARKDOWN_SKELETON_P_CLASS = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
906
|
+
var MARKDOWN_SKELETON_H2_CLASS = _chunk6YZNUHXTcjs.cn.call(void 0, _chunkFBA6S4EScjs.MARKDOWN_H2_CLASS, _chunkFBA6S4EScjs.TEXT_SIZE_PRESETS.default.h2);
|
|
907
|
+
var MARKDOWN_SKELETON_P_CLASS = _chunk6YZNUHXTcjs.cn.call(void 0, _chunkFBA6S4EScjs.MARKDOWN_PARAGRAPH_CLASS, _chunkFBA6S4EScjs.TEXT_SIZE_PRESETS.default.p);
|
|
908
908
|
function MarkdownSkeleton({
|
|
909
909
|
region = true
|
|
910
910
|
} = {}) {
|
|
911
911
|
return (
|
|
912
912
|
// The renderer's root class, and its box (no margin of its own, like the rendered body): the document's first fold.
|
|
913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD6RPLHXcjs.LoadingRegion, { label: "Loading the document", announce: region, className:
|
|
913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD6RPLHXcjs.LoadingRegion, { label: "Loading the document", announce: region, className: _chunkFBA6S4EScjs.MARKDOWN_RENDERER_CLASS, children: MARKDOWN_SKELETON_BLOCKS.map(
|
|
914
914
|
(block, i) => block.kind === "h2" ? (
|
|
915
915
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton blocks never reorder
|
|
916
916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: MARKDOWN_SKELETON_H2_CLASS, "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/3" }) }, i)
|
|
917
917
|
) : (
|
|
918
|
+
// The last block ends the body with no margin, like the rendered one. Its own `last:mb-0` does not apply here:
|
|
919
|
+
// the region's status line follows the blocks, so the paragraph is not the last child.
|
|
918
920
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton blocks never reorder
|
|
919
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
921
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
922
|
+
"p",
|
|
923
|
+
{
|
|
924
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, MARKDOWN_SKELETON_P_CLASS, i === MARKDOWN_SKELETON_BLOCKS.length - 1 && "mb-0"),
|
|
925
|
+
"aria-hidden": true,
|
|
926
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", as: "span", lines: block.lines, className: "w-full" })
|
|
927
|
+
},
|
|
928
|
+
i
|
|
929
|
+
)
|
|
920
930
|
)
|
|
921
931
|
) })
|
|
922
932
|
);
|
|
@@ -949,7 +959,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
949
959
|
] }),
|
|
950
960
|
/* @__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, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
|
|
951
961
|
] }),
|
|
952
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.EmbedLoadingSkeleton, { region: false })
|
|
953
963
|
] });
|
|
954
964
|
}
|
|
955
965
|
|
|
@@ -957,11 +967,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
957
967
|
|
|
958
968
|
var DEFAULT_TITLE = "Documents";
|
|
959
969
|
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" }) });
|
|
960
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
961
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
970
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6ZPHUDTPcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
971
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6ZPHUDTPcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
972
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
963
973
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
964
|
-
|
|
974
|
+
_chunk6ZPHUDTPcjs.FileDownloadCard,
|
|
965
975
|
{
|
|
966
976
|
fileName: content.fileName,
|
|
967
977
|
mimeType: content.mimeType,
|
|
@@ -225,10 +225,10 @@ function ImageGalleryModal({ images, isOpen, onClose, initialIndex = 0 }) {
|
|
|
225
225
|
}
|
|
226
226
|
const imageCount = images.length;
|
|
227
227
|
const goToPreviousImage = _react.useCallback.call(void 0, () => {
|
|
228
|
-
setSelectedImageIndex((i) => i > 0 ? i - 1 :
|
|
229
|
-
}, []);
|
|
228
|
+
setSelectedImageIndex((i) => i > 0 ? i - 1 : imageCount - 1);
|
|
229
|
+
}, [imageCount]);
|
|
230
230
|
const goToNextImage = _react.useCallback.call(void 0, () => {
|
|
231
|
-
setSelectedImageIndex((i) => i < imageCount - 1 ? i + 1 :
|
|
231
|
+
setSelectedImageIndex((i) => i < imageCount - 1 ? i + 1 : 0);
|
|
232
232
|
}, [imageCount]);
|
|
233
233
|
const onCloseRef = _react.useRef.call(void 0, onClose);
|
|
234
234
|
_react.useEffect.call(void 0, () => {
|
|
@@ -261,21 +261,23 @@ function ImageGalleryModal({ images, isOpen, onClose, initialIndex = 0 }) {
|
|
|
261
261
|
if (!isOpen || images.length === 0) return null;
|
|
262
262
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Modal, { isOpen, onClose, className: "max-w-[95vw]", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex items-center justify-center rounded-lg bg-black", children: [
|
|
263
263
|
images.length > 1 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
264
|
-
|
|
264
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute left-4 top-1/2 z-[10000] -translate-y-1/2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
265
265
|
_chunkK7I3YYYUcjs.Button,
|
|
266
266
|
{
|
|
267
267
|
variant: "transparent",
|
|
268
268
|
size: "small-legacy",
|
|
269
|
+
"aria-label": "Previous image",
|
|
269
270
|
onClick: goToPreviousImage,
|
|
270
271
|
className: "rounded-full bg-black/50 p-2 text-white hover:bg-black/70",
|
|
271
272
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-6 w-6" })
|
|
272
273
|
}
|
|
273
274
|
) }),
|
|
274
|
-
|
|
275
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute right-4 top-1/2 z-[10000] -translate-y-1/2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
276
|
_chunkK7I3YYYUcjs.Button,
|
|
276
277
|
{
|
|
277
278
|
variant: "transparent",
|
|
278
279
|
size: "small-legacy",
|
|
280
|
+
"aria-label": "Next image",
|
|
279
281
|
onClick: goToNextImage,
|
|
280
282
|
className: "rounded-full bg-black/50 p-2 text-white hover:bg-black/70",
|
|
281
283
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-6 w-6" })
|