@flamingo-stack/openframe-frontend-core 0.0.309 → 0.0.310-snapshot.20260623025146
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-PLFQJ5E7.cjs → chunk-2EILUSCY.cjs} +37 -37
- package/dist/{chunk-PLFQJ5E7.cjs.map → chunk-2EILUSCY.cjs.map} +1 -1
- package/dist/{chunk-E7FIV5LH.js → chunk-3JT6LRGB.js} +2 -2
- package/dist/{chunk-JTS552SA.cjs → chunk-BZA3APSK.cjs} +40 -32
- package/dist/chunk-BZA3APSK.cjs.map +1 -0
- package/dist/{chunk-AIHM4TT7.cjs → chunk-CKNJYFLB.cjs} +5 -5
- package/dist/{chunk-AIHM4TT7.cjs.map → chunk-CKNJYFLB.cjs.map} +1 -1
- package/dist/{chunk-46KRPHHL.js → chunk-DH2R5ZMA.js} +2 -2
- package/dist/{chunk-QPTJOLAP.js → chunk-DXOGAFXQ.js} +2 -2
- package/dist/{chunk-4RHOLPFU.cjs → chunk-GAKX3IB4.cjs} +14 -14
- package/dist/{chunk-4RHOLPFU.cjs.map → chunk-GAKX3IB4.cjs.map} +1 -1
- package/dist/{chunk-5OFBD6EQ.js → chunk-HLQQN2H2.js} +2 -2
- package/dist/{chunk-6TRTIHGW.cjs → chunk-KNUY2CAL.cjs} +104 -87
- package/dist/chunk-KNUY2CAL.cjs.map +1 -0
- package/dist/{chunk-WSEK6W4B.js → chunk-KYQGJD2Q.js} +2 -2
- package/dist/{chunk-2YYAKVL7.cjs → chunk-L4ND4ZAB.cjs} +12 -12
- package/dist/{chunk-2YYAKVL7.cjs.map → chunk-L4ND4ZAB.cjs.map} +1 -1
- package/dist/{chunk-ER4CMF47.js → chunk-NS2WLRTI.js} +50 -33
- package/dist/chunk-NS2WLRTI.js.map +1 -0
- package/dist/{chunk-CKFHYXSJ.cjs → chunk-P5QS2625.cjs} +7 -7
- package/dist/{chunk-CKFHYXSJ.cjs.map → chunk-P5QS2625.cjs.map} +1 -1
- package/dist/{chunk-BPPCLTF2.js → chunk-PYKMJPWX.js} +14 -6
- package/dist/chunk-PYKMJPWX.js.map +1 -0
- package/dist/{chunk-N3YPIZBH.js → chunk-RUJCGYDL.js} +2 -2
- package/dist/{chunk-4RI7S6ZD.cjs → chunk-WLW35D5O.cjs} +9 -9
- package/dist/{chunk-4RI7S6ZD.cjs.map → chunk-WLW35D5O.cjs.map} +1 -1
- package/dist/{chunk-J3YKVLQ5.cjs → chunk-YVTTTQKF.cjs} +26 -26
- package/dist/{chunk-J3YKVLQ5.cjs.map → chunk-YVTTTQKF.cjs.map} +1 -1
- package/dist/{chunk-QWMYOUGP.js → chunk-ZRUQRXCP.js} +2 -2
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/chat/types/entities/investor-update.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/index.cjs +172 -172
- package/dist/components/index.js +8 -8
- package/dist/components/logs-list.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +23 -23
- package/dist/components/onboarding-guides/index.js +3 -3
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +60 -60
- package/dist/components/tickets/index.js +3 -3
- package/dist/components/ui/device-card.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/utils/date-utils.d.ts.map +1 -1
- package/dist/utils/format.d.ts +12 -3
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/index.cjs +26 -14
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +26 -14
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/blog-card.tsx +2 -2
- package/src/components/chat/entity-cards/dispatch.tsx +1 -1
- package/src/components/chat/entity-cards/program-card.tsx +17 -4
- package/src/components/chat/types/entities/investor-update.ts +2 -0
- package/src/components/docs/doc-viewer.tsx +10 -2
- package/src/components/logs-list.tsx +8 -6
- package/src/components/ui/device-card.tsx +8 -6
- package/src/utils/date-utils.ts +27 -14
- package/src/utils/format.ts +27 -8
- package/dist/chunk-6TRTIHGW.cjs.map +0 -1
- package/dist/chunk-BPPCLTF2.js.map +0 -1
- package/dist/chunk-ER4CMF47.js.map +0 -1
- package/dist/chunk-JTS552SA.cjs.map +0 -1
- /package/dist/{chunk-E7FIV5LH.js.map → chunk-3JT6LRGB.js.map} +0 -0
- /package/dist/{chunk-46KRPHHL.js.map → chunk-DH2R5ZMA.js.map} +0 -0
- /package/dist/{chunk-QPTJOLAP.js.map → chunk-DXOGAFXQ.js.map} +0 -0
- /package/dist/{chunk-5OFBD6EQ.js.map → chunk-HLQQN2H2.js.map} +0 -0
- /package/dist/{chunk-WSEK6W4B.js.map → chunk-KYQGJD2Q.js.map} +0 -0
- /package/dist/{chunk-N3YPIZBH.js.map → chunk-RUJCGYDL.js.map} +0 -0
- /package/dist/{chunk-QWMYOUGP.js.map → chunk-ZRUQRXCP.js.map} +0 -0
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkP5QS2625cjs = require('./chunk-P5QS2625.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkWLW35D5Ocjs = require('./chunk-WLW35D5O.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -19,7 +19,7 @@ var _chunk4RI7S6ZDcjs = require('./chunk-4RI7S6ZD.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkKNUY2CALcjs = require('./chunk-KNUY2CAL.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -1065,8 +1065,8 @@ function findFirstDocPath(folder) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
function useDocumentTree(config, initialPath) {
|
|
1067
1067
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
1068
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
1069
|
-
const cleanInitialPath =
|
|
1068
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkKNUY2CALcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
1069
|
+
const cleanInitialPath = _chunkKNUY2CALcjs.stripFolderIndexFromPath.call(void 0,
|
|
1070
1070
|
_optionalChain([initialPath, 'optionalAccess', _2 => _2.replace, 'call', _3 => _3(/\/$/, "")]) || "",
|
|
1071
1071
|
folderIndexFile
|
|
1072
1072
|
);
|
|
@@ -1092,12 +1092,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
1092
1092
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
1093
1093
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
1094
1094
|
}
|
|
1095
|
-
pathFromUrl =
|
|
1095
|
+
pathFromUrl = _chunkKNUY2CALcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
1096
1096
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
1097
1097
|
setSelectedPath(pathFromUrl);
|
|
1098
1098
|
if (pathFromUrl) {
|
|
1099
1099
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
1100
|
-
setExpandedNodes(new Set(
|
|
1100
|
+
setExpandedNodes(new Set(_chunkKNUY2CALcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
1101
1101
|
}
|
|
1102
1102
|
setTimeout(() => {
|
|
1103
1103
|
scrollToContent();
|
|
@@ -1112,7 +1112,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
1112
1112
|
setSelectedPath(cleanInitialPath);
|
|
1113
1113
|
if (cleanInitialPath) {
|
|
1114
1114
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
1115
|
-
setExpandedNodes(new Set(
|
|
1115
|
+
setExpandedNodes(new Set(_chunkKNUY2CALcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
1116
1116
|
}
|
|
1117
1117
|
setTimeout(scrollToContent, 150);
|
|
1118
1118
|
}, [cleanInitialPath]);
|
|
@@ -1132,7 +1132,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
1132
1132
|
if (selectedPath === "") {
|
|
1133
1133
|
pathToFetch = folderIndexFile;
|
|
1134
1134
|
} else {
|
|
1135
|
-
const node =
|
|
1135
|
+
const node = _chunkKNUY2CALcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
1136
1136
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
1137
1137
|
const firstDocPath = findFirstDocPath(node);
|
|
1138
1138
|
if (!firstDocPath) {
|
|
@@ -1174,7 +1174,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
1174
1174
|
if (cleanInitialPath) {
|
|
1175
1175
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
1176
1176
|
if (pathForExpansion) {
|
|
1177
|
-
setExpandedNodes(new Set(
|
|
1177
|
+
setExpandedNodes(new Set(_chunkKNUY2CALcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
1178
1178
|
}
|
|
1179
1179
|
} else if (result.data.length > 0) {
|
|
1180
1180
|
const hasRootReadme = result.data.some(
|
|
@@ -1216,8 +1216,8 @@ function useDocumentTree(config, initialPath) {
|
|
|
1216
1216
|
setContent(null);
|
|
1217
1217
|
return;
|
|
1218
1218
|
}
|
|
1219
|
-
const probe =
|
|
1220
|
-
|
|
1219
|
+
const probe = _chunkKNUY2CALcjs.findDocNodeByPath.call(void 0,
|
|
1220
|
+
_chunkKNUY2CALcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile),
|
|
1221
1221
|
structure
|
|
1222
1222
|
);
|
|
1223
1223
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
@@ -1274,16 +1274,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
1274
1274
|
if (node.type === "folder") {
|
|
1275
1275
|
setExpandedNodes((prev) => {
|
|
1276
1276
|
if (prev.has(node.id)) {
|
|
1277
|
-
const ancestorIds =
|
|
1277
|
+
const ancestorIds = _chunkKNUY2CALcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
1278
1278
|
ancestorIds.pop();
|
|
1279
1279
|
return new Set(ancestorIds);
|
|
1280
1280
|
}
|
|
1281
|
-
return new Set(
|
|
1281
|
+
return new Set(_chunkKNUY2CALcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
1282
1282
|
});
|
|
1283
1283
|
} else {
|
|
1284
1284
|
const lastSlash = node.path.lastIndexOf("/");
|
|
1285
1285
|
if (lastSlash > 0) {
|
|
1286
|
-
setExpandedNodes(new Set(
|
|
1286
|
+
setExpandedNodes(new Set(_chunkKNUY2CALcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
1289
|
lastFetchedPath.current = null;
|
|
@@ -1295,7 +1295,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
1295
1295
|
const hashIndex = path.indexOf("#");
|
|
1296
1296
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
1297
1297
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
1298
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _4 => _4.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
1298
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _4 => _4.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkKNUY2CALcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
1299
1299
|
if (anchor && _optionalChain([options, 'optionalAccess', _5 => _5.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
1300
1300
|
_chunkG56GYN7Zcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkG56GYN7Zcjs.HUB_HEADER_OFFSET_PX });
|
|
1301
1301
|
return;
|
|
@@ -1357,8 +1357,8 @@ function useDocumentTree(config, initialPath) {
|
|
|
1357
1357
|
return docNavigation.register({
|
|
1358
1358
|
baseRoute: normalizedBaseRoute,
|
|
1359
1359
|
findNodeByPath: (path) => {
|
|
1360
|
-
const clean =
|
|
1361
|
-
return _nullishCoalesce(
|
|
1360
|
+
const clean = _chunkKNUY2CALcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
1361
|
+
return _nullishCoalesce(_chunkKNUY2CALcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
1362
1362
|
},
|
|
1363
1363
|
selectNode
|
|
1364
1364
|
});
|
|
@@ -1532,7 +1532,7 @@ function DocViewerContent({
|
|
|
1532
1532
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _23 => _23.label]), () => ( "Back to home")),
|
|
1533
1533
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _24 => _24.href]), () => ( "/")))
|
|
1534
1534
|
};
|
|
1535
|
-
const docSearch =
|
|
1535
|
+
const docSearch = _chunkWLW35D5Ocjs.useDocSearch.call(void 0, {
|
|
1536
1536
|
source: chatSource,
|
|
1537
1537
|
baseRoute,
|
|
1538
1538
|
searchEndpoint,
|
|
@@ -1543,12 +1543,20 @@ function DocViewerContent({
|
|
|
1543
1543
|
if (!content) return null;
|
|
1544
1544
|
return renderContent(content, {
|
|
1545
1545
|
onInternalLinkClick: navigateToDoc,
|
|
1546
|
-
|
|
1546
|
+
// Relative-link base = the RENDERED document's path, NOT `selectedPath`.
|
|
1547
|
+
// They diverge for a no-README folder: selection stays on the folder
|
|
1548
|
+
// (e.g. `repo/diagrams`) while the body is its first descendant doc
|
|
1549
|
+
// (e.g. `repo/diagrams/architecture/README.md`, via `findFirstDocPath`).
|
|
1550
|
+
// Resolving `./sibling.mmd` against the folder would 404; resolving it
|
|
1551
|
+
// against `content.path` lands in the descendant's directory. The DAL
|
|
1552
|
+
// sets `content.path` to the served doc in all cases (file / README
|
|
1553
|
+
// folder / first-child fallback), so this is correct everywhere.
|
|
1554
|
+
currentPath: content.path,
|
|
1547
1555
|
sourceId,
|
|
1548
1556
|
onResolveLink: resolveLink
|
|
1549
1557
|
});
|
|
1550
|
-
}, [content,
|
|
1551
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
1558
|
+
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
1559
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkKNUY2CALcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _25 => _25.documentType]) : void 0;
|
|
1552
1560
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _26 => _26.documentType]), () => ( selectedNodeDocType));
|
|
1553
1561
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
1554
1562
|
const showStickyNav = isMarkdownContent;
|
|
@@ -1569,7 +1577,7 @@ function DocViewerContent({
|
|
|
1569
1577
|
// contentClassName + an inner style-passthrough wrapper so legacy
|
|
1570
1578
|
// palette overrides still apply (none in the codebase today; the API
|
|
1571
1579
|
// surface is preserved).
|
|
1572
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1580
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKNUY2CALcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKNUY2CALcjs.PageLayout, { backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full flex flex-col gap-10", children: [
|
|
1573
1581
|
(title || titleIcon || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
1574
1582
|
(title || titleIcon) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h1", { className: "text-h1 tracking-[-1.12px] text-ods-text-primary flex items-center gap-3", children: [
|
|
1575
1583
|
titleIcon,
|
|
@@ -1581,7 +1589,7 @@ function DocViewerContent({
|
|
|
1581
1589
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "font-['DM_Sans'] font-medium text-[18px] leading-[28px] text-ods-text-secondary max-w-3xl line-clamp-2 min-h-[56px]", children: subtitle || " " })
|
|
1582
1590
|
] }),
|
|
1583
1591
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1584
|
-
|
|
1592
|
+
_chunkWLW35D5Ocjs.DocSearchBar,
|
|
1585
1593
|
{
|
|
1586
1594
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _30 => _30.toLowerCase, 'call', _31 => _31()]) || "documents"}...`,
|
|
1587
1595
|
query: docSearch.query,
|
|
@@ -1602,7 +1610,7 @@ function DocViewerContent({
|
|
|
1602
1610
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col lg:flex-row gap-6 lg:gap-10 items-start flex-1", children: [
|
|
1603
1611
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full lg:w-[320px] lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "lg:sticky lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1604
1612
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1605
|
-
|
|
1613
|
+
_chunkKNUY2CALcjs.MobileNavigationDropdown,
|
|
1606
1614
|
{
|
|
1607
1615
|
nodes: structure,
|
|
1608
1616
|
selectedPath,
|
|
@@ -1616,7 +1624,7 @@ function DocViewerContent({
|
|
|
1616
1624
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
1617
1625
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-[14px] font-['Azeret_Mono'] font-semibold uppercase text-ods-text-secondary tracking-[-0.02em] leading-[1.43em]", children: sidebarLabel }),
|
|
1618
1626
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1619
|
-
|
|
1627
|
+
_chunkKNUY2CALcjs.MultiLevelNavigation,
|
|
1620
1628
|
{
|
|
1621
1629
|
nodes: structure,
|
|
1622
1630
|
selectedPath,
|
|
@@ -1661,7 +1669,7 @@ function DocViewerContent({
|
|
|
1661
1669
|
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
1662
1670
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-[14px] font-['Azeret_Mono'] font-semibold uppercase text-ods-text-secondary tracking-[-0.02em] leading-[1.43em] mb-4", children: "ON THIS PAGE" }),
|
|
1663
1671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1664
|
-
|
|
1672
|
+
_chunkKNUY2CALcjs.StickySectionNav,
|
|
1665
1673
|
{
|
|
1666
1674
|
sections: stickyNavSections,
|
|
1667
1675
|
activeSection,
|
|
@@ -1772,11 +1780,11 @@ function EmbedSkeleton({ documentType } = {}) {
|
|
|
1772
1780
|
|
|
1773
1781
|
var DEFAULT_TITLE = "Documents";
|
|
1774
1782
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-center py-16", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
1775
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1776
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1777
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1783
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP5QS2625cjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
1784
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP5QS2625cjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
1785
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKNUY2CALcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
1778
1786
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1779
|
-
|
|
1787
|
+
_chunkP5QS2625cjs.FileDownloadCard,
|
|
1780
1788
|
{
|
|
1781
1789
|
fileName: content.fileName,
|
|
1782
1790
|
mimeType: content.mimeType,
|
|
@@ -1858,4 +1866,4 @@ function DocsHubPage({
|
|
|
1858
1866
|
|
|
1859
1867
|
|
|
1860
1868
|
exports.PersistentFilterControls = PersistentFilterControls; exports.PersistentSearchContainer = PersistentSearchContainer; exports.PersistentSidebar = PersistentSidebar; exports.PersistentMobileDropdown = PersistentMobileDropdown; exports.UnifiedSkeleton = UnifiedSkeleton; exports.TextSkeleton = TextSkeleton; exports.InteractiveSkeleton = InteractiveSkeleton; exports.MediaSkeleton = MediaSkeleton; exports.CardSkeleton = CardSkeleton; exports.CardSkeletonGrid = CardSkeletonGrid; exports.AnnouncementBarSkeleton = AnnouncementBarSkeleton; exports.HeroSkeleton = HeroSkeleton; exports.SearchContainerSkeleton = SearchContainerSkeleton; exports.CategorySidebarSkeleton = CategorySidebarSkeleton; exports.BreadcrumbSkeleton = BreadcrumbSkeleton; exports.ResultsHeaderSkeleton = ResultsHeaderSkeleton; exports.TwoColumnLayoutSkeleton = TwoColumnLayoutSkeleton; exports.ArticleLayoutSkeleton = ArticleLayoutSkeleton; exports.VendorDetailLayoutSkeleton = VendorDetailLayoutSkeleton; exports.StatsSectionSkeleton = StatsSectionSkeleton; exports.BlogCardGridSkeleton = BlogCardGridSkeleton; exports.VendorGridSkeleton = VendorGridSkeleton; exports.SlackCommunitySkeleton = SlackCommunitySkeleton; exports.DocNavigationProvider = DocNavigationProvider; exports.useDocNavigation = useDocNavigation; exports.useDocumentTree = useDocumentTree; exports.useScrollSpy = useScrollSpy; exports.DocViewer = DocViewer; exports.MarkdownSkeleton = MarkdownSkeleton; exports.EmbedSkeleton = EmbedSkeleton; exports.DocsHubPage = DocsHubPage;
|
|
1861
|
-
//# sourceMappingURL=chunk-
|
|
1869
|
+
//# sourceMappingURL=chunk-BZA3APSK.cjs.map
|