@flamingo-stack/openframe-frontend-core 0.0.847 → 0.0.849
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{case-study-card-DJOHIHYU.cjs → case-study-card-X2HKPKT7.cjs} +5 -5
- package/dist/{chunk-CNMXP77I.cjs → chunk-36DUCHI7.cjs} +4 -4
- package/dist/{chunk-MPVOPSU6.cjs → chunk-36XWCVSM.cjs} +96 -96
- package/dist/{chunk-J2IXYCEH.cjs → chunk-3W4ASAXN.cjs} +15 -15
- package/dist/{chunk-6LDL3UZE.cjs → chunk-4YBS4HIO.cjs} +20 -20
- package/dist/{chunk-ABL5OBSF.cjs → chunk-533QK4R6.cjs} +296 -250
- package/dist/{chunk-QK2A334V.cjs → chunk-5CBI2ZYV.cjs} +12 -12
- package/dist/{chunk-D5DMWXF2.cjs → chunk-5PIR77V5.cjs} +4 -4
- package/dist/{chunk-HPXET3LH.cjs → chunk-6AJYGXXS.cjs} +27 -27
- package/dist/{chunk-4R4HAFXI.cjs → chunk-ALRYVZ3E.cjs} +6 -6
- package/dist/{chunk-FLW4WULE.cjs → chunk-BU2PSRAS.cjs} +17 -61
- package/dist/{chunk-HBDLJUI3.cjs → chunk-C3P7IUTU.cjs} +39 -14
- package/dist/{chunk-SSSI2RBV.cjs → chunk-FNQWL4W4.cjs} +14 -14
- package/dist/{chunk-TBOWFTEN.cjs → chunk-FRG724DU.cjs} +22 -22
- package/dist/{chunk-SIFRIUPW.cjs → chunk-FXLROQUT.cjs} +345 -356
- package/dist/{chunk-3V5JWG27.cjs → chunk-GG466XFQ.cjs} +2 -2
- package/dist/{chunk-XCVH5BCZ.cjs → chunk-GRCOEICK.cjs} +6 -6
- package/dist/{chunk-5GBLXY5F.cjs → chunk-HTYJUMFB.cjs} +7 -7
- package/dist/{chunk-URP6GYTD.cjs → chunk-IG6ROHPS.cjs} +56 -56
- package/dist/{chunk-DGQDGCQH.cjs → chunk-IHY7E4EX.cjs} +2 -2
- package/dist/{chunk-WCK5T3UD.cjs → chunk-IKOL6NJY.cjs} +101 -69
- package/dist/{chunk-RAJ5FYFL.cjs → chunk-IN3LA2FU.cjs} +14 -14
- package/dist/{chunk-ZTO7KNYV.cjs → chunk-KXBZCUDW.cjs} +35 -35
- package/dist/{chunk-57JYB3E2.cjs → chunk-MC3L525K.cjs} +3 -3
- package/dist/{chunk-BIOSHDXQ.cjs → chunk-MDLT6D46.cjs} +61 -61
- package/dist/{chunk-3TOWCFIK.cjs → chunk-PMUCEUFQ.cjs} +13 -1
- package/dist/{chunk-PV3NKXWS.cjs → chunk-PV2XQJ2R.cjs} +99 -178
- package/dist/{chunk-J2ZSGOUC.cjs → chunk-R5JPZ6TY.cjs} +27 -27
- package/dist/{chunk-744JXTDP.cjs → chunk-SA2NNWIJ.cjs} +23 -23
- package/dist/{chunk-DEEQSVLX.cjs → chunk-SHQY4GOE.cjs} +90 -90
- package/dist/{chunk-BHOVF4KP.cjs → chunk-SOSIXRQ3.cjs} +2 -2
- package/dist/{chunk-Y2OEC7UW.cjs → chunk-TEKN6TJ5.cjs} +40 -40
- package/dist/{chunk-PZNWIJRZ.cjs → chunk-TIVPOVIM.cjs} +2 -2
- package/dist/{chunk-BZZE4KIV.cjs → chunk-TX4NTH22.cjs} +155 -136
- package/dist/{chunk-NFNSPLGC.cjs → chunk-W7OFAROY.cjs} +14 -9
- package/dist/{chunk-N2A24FDF.cjs → chunk-YLETC7LP.cjs} +994 -953
- package/dist/{chunk-YC52LSPP.cjs → chunk-YYHQY3K6.cjs} +40 -40
- package/dist/{chunk-2FUTZKLB.cjs → chunk-Z5UCDEKZ.cjs} +6 -6
- package/dist/{chunk-SWF6TNZ3.cjs → chunk-ZGEWT3SF.cjs} +2 -2
- package/dist/{chunk-PQDCSZ3W.cjs → chunk-ZY34R37A.cjs} +85 -85
- package/dist/{chunk-5SZ4ILU3.cjs → chunk-ZZDFMUEU.cjs} +3 -3
- package/dist/{cloud-tenants-XEUUMABT.cjs → cloud-tenants-HKUUEUAY.cjs} +21 -21
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/chat-composer.d.ts.map +1 -1
- package/dist/components/chat/chat-composer.js +4 -3
- package/dist/components/chat/chat-container.d.ts.map +1 -1
- package/dist/components/chat/chat-container.js +2 -2
- package/dist/components/chat/entity-cards/design-doc-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/design-doc-card.js +5 -17
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +5 -7
- package/dist/components/chat/index.cjs +15 -15
- package/dist/components/contact/index.cjs +22 -22
- package/dist/components/docs/doc-viewer.d.ts +7 -7
- package/dist/components/docs/doc-viewer.d.ts.map +1 -1
- package/dist/components/docs/doc-viewer.js +29 -16
- package/dist/components/docs/docs-hub-page.d.ts +1 -1
- package/dist/components/docs/docs-hub-page.d.ts.map +1 -1
- package/dist/components/docs/docs-hub-page.js +4 -11
- package/dist/components/docs/index.cjs +25 -25
- package/dist/components/docs/use-document-tree.d.ts.map +1 -1
- package/dist/components/docs/use-document-tree.js +24 -24
- package/dist/components/embeds/claude-embed.d.ts +2 -2
- package/dist/components/embeds/claude-embed.d.ts.map +1 -1
- package/dist/components/embeds/claude-embed.js +3 -3
- package/dist/components/embeds/embed-iframe.d.ts +5 -3
- package/dist/components/embeds/embed-iframe.d.ts.map +1 -1
- package/dist/components/embeds/embed-iframe.js +4 -3
- package/dist/components/embeds/embed-viewer-frame.d.ts +12 -9
- package/dist/components/embeds/embed-viewer-frame.d.ts.map +1 -1
- package/dist/components/embeds/embed-viewer-frame.js +21 -7
- package/dist/components/embeds/figma-embed.d.ts +4 -2
- package/dist/components/embeds/figma-embed.d.ts.map +1 -1
- package/dist/components/embeds/figma-embed.js +4 -3
- package/dist/components/embeds/file-download-card.d.ts +3 -1
- package/dist/components/embeds/file-download-card.d.ts.map +1 -1
- package/dist/components/embeds/file-download-card.js +18 -3
- package/dist/components/embeds/google-sheets-viewer.d.ts +3 -1
- package/dist/components/embeds/google-sheets-viewer.d.ts.map +1 -1
- package/dist/components/embeds/google-sheets-viewer.js +7 -4
- package/dist/components/embeds/index.cjs +22 -22
- package/dist/components/embeds/pdf-viewer.d.ts +3 -1
- package/dist/components/embeds/pdf-viewer.d.ts.map +1 -1
- package/dist/components/embeds/pdf-viewer.js +6 -2
- package/dist/components/faq/index.cjs +23 -23
- package/dist/components/features/index.cjs +21 -21
- package/dist/components/features/status-filter-component.d.ts +7 -1
- package/dist/components/features/status-filter-component.d.ts.map +1 -1
- package/dist/components/features/status-filter-component.js +9 -3
- package/dist/components/help-center-pages/index.cjs +140 -140
- package/dist/components/index.cjs +137 -135
- package/dist/components/layout/back-button.d.ts +7 -1
- package/dist/components/layout/back-button.d.ts.map +1 -1
- package/dist/components/layout/back-button.js +34 -2
- package/dist/components/loading/unified-skeleton.d.ts +6 -1
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +13 -1
- package/dist/components/meeting-scheduler/index.cjs +119 -119
- package/dist/components/navigation/index.cjs +24 -24
- package/dist/components/onboarding-guides/index.cjs +24 -24
- package/dist/components/product-demo/index.cjs +33 -33
- package/dist/components/related-content/index.cjs +11 -11
- package/dist/components/tickets/index.cjs +28 -28
- package/dist/components/ui/file-manager/file-manager-table.d.ts.map +1 -1
- package/dist/components/ui/file-manager/file-manager-table.js +59 -50
- package/dist/components/ui/file-manager/index.cjs +71 -62
- package/dist/components/ui/index.cjs +23 -21
- package/dist/components/ui/markdown/engine.d.ts +5 -4
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/markdown/engine.js +15 -15
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.js +7 -3
- package/dist/components/ui/people-cell.d.ts +9 -2
- package/dist/components/ui/people-cell.d.ts.map +1 -1
- package/dist/components/ui/people-cell.js +39 -23
- package/dist/components/ui/progress-bar.d.ts +6 -0
- package/dist/components/ui/progress-bar.d.ts.map +1 -1
- package/dist/components/ui/progress-bar.js +2 -0
- package/dist/components/ui/tag.d.ts +8 -0
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/components/ui/tag.js +5 -0
- package/dist/{devices-7YDIHVVP.cjs → devices-P7M4Z7VP.cjs} +22 -22
- package/dist/embed-shims/index.cjs +3 -3
- package/dist/embed-shims/next-image.cjs +3 -3
- package/dist/{embeddable-chat-Z3S37SSM.cjs → embeddable-chat-322NDFP5.cjs} +94 -94
- package/dist/hooks/index.cjs +6 -6
- package/dist/index.cjs +32 -30
- package/dist/{knowledge-SQVPQSKM.cjs → knowledge-TC7JLOWI.cjs} +22 -22
- package/dist/{logs-M5DFGUBC.cjs → logs-GPOYCP4B.cjs} +28 -28
- package/dist/{policies-T3VQEJUD.cjs → policies-ZUHOUMDD.cjs} +25 -25
- package/dist/{remote-session-EE6477O3.cjs → remote-session-NT4NG7EF.cjs} +10 -10
- package/dist/{scripts-JFRFJKPH.cjs → scripts-FOEVDGTH.cjs} +28 -28
- package/dist/{software-update-E7W3AAIY.cjs → software-update-XGTMNFST.cjs} +25 -25
- package/dist/{tickets-board-44HO3LR4.cjs → tickets-board-7FLGQEHF.cjs} +10 -10
- package/dist/types/design-doc.d.ts +45 -8
- package/dist/types/design-doc.d.ts.map +1 -1
- package/dist/types/doc-source.d.ts +2 -2
- package/dist/types/doc-source.d.ts.map +1 -1
- package/dist/utils/design-doc-readiness.d.ts +17 -15
- package/dist/utils/design-doc-readiness.d.ts.map +1 -1
- package/dist/utils/design-doc-readiness.js +5 -11
- package/dist/utils/doc-tree-nav.d.ts +7 -0
- package/dist/utils/doc-tree-nav.d.ts.map +1 -1
- package/dist/utils/doc-tree-nav.js +19 -0
- package/dist/utils/index.cjs +30 -13
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/list-url.js +2 -1
- package/dist/utils/source-grouping.d.ts +2 -2
- package/dist/utils/source-grouping.d.ts.map +1 -1
- package/dist/utils/source-grouping.js +1 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/source-icons.js +3 -0
- package/package.json +1 -1
- package/src/components/chat/chat-composer.tsx +10 -3
- package/src/components/chat/chat-container.tsx +6 -4
- package/src/components/chat/entity-cards/design-doc-card.tsx +12 -17
- package/src/components/chat/entity-cards/dispatch.tsx +10 -10
- package/src/components/docs/doc-viewer.tsx +56 -35
- package/src/components/docs/docs-hub-page.tsx +13 -37
- package/src/components/docs/use-document-tree.ts +33 -23
- package/src/components/embeds/claude-embed.tsx +4 -4
- package/src/components/embeds/embed-iframe.tsx +8 -5
- package/src/components/embeds/embed-viewer-frame.tsx +35 -15
- package/src/components/embeds/figma-embed.tsx +9 -4
- package/src/components/embeds/file-download-card.tsx +28 -4
- package/src/components/embeds/google-sheets-viewer.tsx +9 -3
- package/src/components/embeds/pdf-viewer.tsx +9 -2
- package/src/components/features/status-filter-component.tsx +15 -0
- package/src/components/layout/back-button.tsx +54 -2
- package/src/components/loading/unified-skeleton.tsx +18 -2
- package/src/components/ui/file-manager/file-manager-table.tsx +8 -3
- package/src/components/ui/markdown/engine.tsx +21 -30
- package/src/components/ui/markdown/rich/rich-markdown-renderer.tsx +4 -0
- package/src/components/ui/people-cell.tsx +53 -17
- package/src/components/ui/progress-bar.tsx +8 -0
- package/src/components/ui/tag.tsx +14 -0
- package/src/types/design-doc.ts +59 -10
- package/src/types/doc-source.ts +2 -2
- package/src/utils/design-doc-readiness.ts +22 -23
- package/src/utils/doc-tree-nav.ts +27 -0
- package/src/utils/list-url.ts +2 -1
- package/src/utils/source-grouping.ts +2 -2
- package/src/utils/source-icons.ts +3 -0
- package/dist/components/docs/skeletons.d.ts +0 -25
- package/dist/components/docs/skeletons.d.ts.map +0 -1
- package/dist/components/docs/skeletons.js +0 -83
- package/src/components/docs/skeletons.tsx +0 -131
|
@@ -39,7 +39,7 @@ var _chunkHLJXCOMAcjs = require('./chunk-HLJXCOMA.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkGRCOEICKcjs = require('./chunk-GRCOEICK.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunkBUEEQD3Gcjs = require('./chunk-BUEEQD3G.cjs');
|
|
@@ -64,7 +64,7 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
64
64
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
var
|
|
67
|
+
var _chunkTIVPOVIMcjs = require('./chunk-TIVPOVIM.cjs');
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
@@ -425,7 +425,7 @@ function useSearch(config) {
|
|
|
425
425
|
searchFnRef.current = searchFn;
|
|
426
426
|
mapResultRef.current = mapResult;
|
|
427
427
|
});
|
|
428
|
-
const debouncedQuery =
|
|
428
|
+
const debouncedQuery = _chunkGRCOEICKcjs.useDebounce.call(void 0, query, debounceMs);
|
|
429
429
|
const clearResults = _react.useCallback.call(void 0, () => {
|
|
430
430
|
setResults(NO_RESULTS);
|
|
431
431
|
setError(null);
|
|
@@ -1201,11 +1201,11 @@ function useContactSubmission(options = {}) {
|
|
|
1201
1201
|
console.log("\u{1F680} Contact submission successful, redirecting to:", successRedirectUrl);
|
|
1202
1202
|
const timer = setTimeout(() => {
|
|
1203
1203
|
console.log("\u{1F3AF} Performing redirect now to:", successRedirectUrl);
|
|
1204
|
-
|
|
1204
|
+
_chunkGRCOEICKcjs.executeNavigationImperative.call(void 0, {
|
|
1205
1205
|
runtime,
|
|
1206
1206
|
href: successRedirectUrl,
|
|
1207
1207
|
openIn: "same-tab",
|
|
1208
|
-
hostRoute:
|
|
1208
|
+
hostRoute: _chunkTIVPOVIMcjs.isRelativeHref.call(void 0, successRedirectUrl)
|
|
1209
1209
|
});
|
|
1210
1210
|
}, 1500);
|
|
1211
1211
|
return () => clearTimeout(timer);
|
|
@@ -1332,10 +1332,10 @@ function useDownloads({
|
|
|
1332
1332
|
}
|
|
1333
1333
|
function useVisitorDesktopDownload(options = {}) {
|
|
1334
1334
|
const enabled = _nullishCoalesce(options.enabled, () => ( true));
|
|
1335
|
-
const visitor =
|
|
1335
|
+
const visitor = _chunkGRCOEICKcjs.useVisitorOs.call(void 0, );
|
|
1336
1336
|
const { data, error } = useDownloads(options);
|
|
1337
1337
|
if (!enabled || !visitor.known || !data && !error) return { known: false, download: null };
|
|
1338
|
-
const os =
|
|
1338
|
+
const os = _chunkGRCOEICKcjs.desktopOsOf.call(void 0, visitor.os);
|
|
1339
1339
|
const download = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _22 => _22.desktop, 'access', _23 => _23.find, 'call', _24 => _24((row) => row.kind === "binary" && row.url && row.os === os)]), () => ( null));
|
|
1340
1340
|
return { known: true, download };
|
|
1341
1341
|
}
|
|
@@ -2585,7 +2585,7 @@ function useScenarioPlayer({
|
|
|
2585
2585
|
startAtEnd = false,
|
|
2586
2586
|
emptyFirstStep = true
|
|
2587
2587
|
}) {
|
|
2588
|
-
const auto =
|
|
2588
|
+
const auto = _chunkGRCOEICKcjs.useAutoplay.call(void 0, enabled);
|
|
2589
2589
|
const { reducedMotion, held, holdProps, release } = auto;
|
|
2590
2590
|
const [scenario, setScenario] = _react.useState.call(void 0, initialScenario);
|
|
2591
2591
|
const [rawStep, setRawStep] = _react.useState.call(void 0, startAtEnd ? Number.MAX_SAFE_INTEGER : 0);
|
|
@@ -2715,7 +2715,7 @@ function useClaudeMirrorSrc(url) {
|
|
|
2715
2715
|
|
|
2716
2716
|
// src/hooks/use-location-hash.ts
|
|
2717
2717
|
|
|
2718
|
-
var HASH_EVENTS = ["hashchange", "popstate",
|
|
2718
|
+
var HASH_EVENTS = ["hashchange", "popstate", _chunkGRCOEICKcjs.LOCATION_HASH_SYNC_EVENT];
|
|
2719
2719
|
function subscribe(onChange) {
|
|
2720
2720
|
for (const event of HASH_EVENTS) window.addEventListener(event, onChange);
|
|
2721
2721
|
return () => {
|
|
@@ -2723,7 +2723,7 @@ function subscribe(onChange) {
|
|
|
2723
2723
|
};
|
|
2724
2724
|
}
|
|
2725
2725
|
function readHash() {
|
|
2726
|
-
const raw =
|
|
2726
|
+
const raw = _chunkGRCOEICKcjs.normalizeHashFragment.call(void 0, window.location.hash).replace(/^#/, "");
|
|
2727
2727
|
try {
|
|
2728
2728
|
return decodeURIComponent(raw);
|
|
2729
2729
|
} catch (e7) {
|
|
@@ -2750,16 +2750,16 @@ function useScrollToHash(readyDep = true, options) {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
};
|
|
2752
2752
|
const tryScrollToHash = () => {
|
|
2753
|
-
if (
|
|
2754
|
-
const hash =
|
|
2753
|
+
if (_chunkGRCOEICKcjs.isScrollSyncedHash.call(void 0, )) return;
|
|
2754
|
+
const hash = _chunkGRCOEICKcjs.normalizeHashFragment.call(void 0, window.location.hash).slice(1);
|
|
2755
2755
|
if (!hash) return;
|
|
2756
2756
|
cancelPoll();
|
|
2757
2757
|
let frames = 0;
|
|
2758
2758
|
const tick = () => {
|
|
2759
|
-
const el =
|
|
2759
|
+
const el = _chunkGRCOEICKcjs.getHashTargetElement.call(void 0, hash);
|
|
2760
2760
|
if (el) {
|
|
2761
2761
|
rafId = null;
|
|
2762
|
-
|
|
2762
|
+
_chunkGRCOEICKcjs.scrollElementIntoView.call(void 0, el, { headerOffset });
|
|
2763
2763
|
return;
|
|
2764
2764
|
}
|
|
2765
2765
|
if (frames++ < MAX_POLL_FRAMES) {
|
|
@@ -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 _chunkTX4NTH22cjs = require('./chunk-TX4NTH22.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk3W4ASAXNcjs = require('./chunk-3W4ASAXN.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,11 +14,11 @@ var _chunkJ2IXYCEHcjs = require('./chunk-J2IXYCEH.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkGRCOEICKcjs = require('./chunk-GRCOEICK.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkPMUCEUFQcjs = require('./chunk-PMUCEUFQ.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
@@ -76,7 +76,7 @@ function HorizontalSectionNav({
|
|
|
76
76
|
className: _chunk63A4GZMBcjs.cn.call(void 0, HORIZONTAL_NAV_CLASS, STICKY_SECTION_NAV_HEIGHT_CLASS, className),
|
|
77
77
|
children: [
|
|
78
78
|
brand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HORIZONTAL_BRAND_CLASS, children: brand }),
|
|
79
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
79
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ScrollShadow, { axis: "horizontal", className: "min-w-0 flex-1", scrollClassName: HORIZONTAL_ROW_CLASS, children: sections.map((section) => {
|
|
80
80
|
const active = activeSection === section.id;
|
|
81
81
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
82
82
|
_chunkV45KLJQPcjs.next_link_default,
|
|
@@ -199,7 +199,7 @@ function StickySectionNavSkeleton({
|
|
|
199
199
|
brand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HORIZONTAL_BRAND_CLASS, children: brand }),
|
|
200
200
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "min-w-0 flex-1 overflow-hidden", HORIZONTAL_ROW_CLASS, "content-lg:items-center"), children: widths.map((width, i) => (
|
|
201
201
|
// The pill's own box (a tab from the content `lg` step), its label a bar.
|
|
202
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, PILL_CLASS, "border-transparent"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
202
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, PILL_CLASS, "border-transparent"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: width }) }, i)
|
|
203
203
|
)) }),
|
|
204
204
|
action && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HORIZONTAL_ACTION_CLASS, children: action })
|
|
205
205
|
] });
|
|
@@ -217,7 +217,7 @@ function StickySectionNavSkeleton({
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
),
|
|
220
|
-
widths.map((width, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: VERTICAL_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: VERTICAL_BUTTON_SKELETON_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
220
|
+
widths.map((width, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: VERTICAL_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: VERTICAL_BUTTON_SKELETON_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: width }) }) }, i))
|
|
221
221
|
] });
|
|
222
222
|
}
|
|
223
223
|
function useSectionNavigation(sections, options) {
|
|
@@ -230,7 +230,7 @@ function useSectionNavigation(sections, options) {
|
|
|
230
230
|
if (!targetElement) return;
|
|
231
231
|
isScrollingFromClick.current = true;
|
|
232
232
|
setActiveSection(sectionId);
|
|
233
|
-
|
|
233
|
+
_chunkGRCOEICKcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset: offset });
|
|
234
234
|
setTimeout(() => {
|
|
235
235
|
isScrollingFromClick.current = false;
|
|
236
236
|
}, 500);
|
|
@@ -283,13 +283,13 @@ var SCROLL_OFFSET = 100;
|
|
|
283
283
|
var ID_SEPARATOR = "\n";
|
|
284
284
|
var LINE_TOLERANCE_PX = 1;
|
|
285
285
|
function currentHashId() {
|
|
286
|
-
return
|
|
286
|
+
return _chunkGRCOEICKcjs.normalizeHashFragment.call(void 0, window.location.hash).slice(1);
|
|
287
287
|
}
|
|
288
288
|
function activeChildAnchor(section) {
|
|
289
|
-
return _nullishCoalesce(_optionalChain([section, 'access', _10 => _10.querySelector, 'call', _11 => _11(`[${
|
|
289
|
+
return _nullishCoalesce(_optionalChain([section, 'access', _10 => _10.querySelector, 'call', _11 => _11(`[${_chunkGRCOEICKcjs.ACTIVE_ANCHOR_ATTRIBUTE}][id]`), 'optionalAccess', _12 => _12.id]), () => ( null));
|
|
290
290
|
}
|
|
291
291
|
function hashIsWithin(section) {
|
|
292
|
-
return section.contains(
|
|
292
|
+
return section.contains(_chunkGRCOEICKcjs.getHashTargetElement.call(void 0, currentHashId()));
|
|
293
293
|
}
|
|
294
294
|
function hashForSection(sectionId) {
|
|
295
295
|
const section = document.getElementById(sectionId);
|
|
@@ -297,7 +297,7 @@ function hashForSection(sectionId) {
|
|
|
297
297
|
return _nullishCoalesce(activeChildAnchor(section), () => ( (hashIsWithin(section) ? currentHashId() : sectionId)));
|
|
298
298
|
}
|
|
299
299
|
function resolveScroller(firstSection) {
|
|
300
|
-
const container = firstSection ?
|
|
300
|
+
const container = firstSection ? _chunkGRCOEICKcjs.getScrollableAncestor.call(void 0, firstSection) : null;
|
|
301
301
|
if (container) {
|
|
302
302
|
return {
|
|
303
303
|
target: container,
|
|
@@ -327,8 +327,8 @@ function useScrollSpy(sections, options = {}) {
|
|
|
327
327
|
if (!targetElement) return;
|
|
328
328
|
isScrollingFromClick.current = true;
|
|
329
329
|
setActiveSection(sectionId);
|
|
330
|
-
if (syncHash)
|
|
331
|
-
|
|
330
|
+
if (syncHash) _chunkGRCOEICKcjs.replaceLocationHash.call(void 0, _nullishCoalesce(activeChildAnchor(targetElement), () => ( sectionId)));
|
|
331
|
+
_chunkGRCOEICKcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset });
|
|
332
332
|
setTimeout(() => {
|
|
333
333
|
isScrollingFromClick.current = false;
|
|
334
334
|
}, 800);
|
|
@@ -344,7 +344,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
344
344
|
const scrollTop = scroller.scrollTop();
|
|
345
345
|
const viewportTop = scroller.viewportTop();
|
|
346
346
|
const sectionTop = (element) => element.getBoundingClientRect().top - viewportTop + scrollTop;
|
|
347
|
-
const reached = (element) => scrollTop + Math.max(headerOffset,
|
|
347
|
+
const reached = (element) => scrollTop + Math.max(headerOffset, _chunkGRCOEICKcjs.declaredScrollMarginTop.call(void 0, element)) + LINE_TOLERANCE_PX >= sectionTop(element);
|
|
348
348
|
const first = document.getElementById(_nullishCoalesce(sectionIds[0], () => ( "")));
|
|
349
349
|
let currentSection = _nullishCoalesce(sectionIds[0], () => ( ""));
|
|
350
350
|
const scrollHeight = scroller.scrollHeight();
|
|
@@ -367,16 +367,16 @@ function useScrollSpy(sections, options = {}) {
|
|
|
367
367
|
setActiveSection((prev) => prev !== active ? active : prev);
|
|
368
368
|
if (!syncHash) return;
|
|
369
369
|
if (fromScroll) {
|
|
370
|
-
|
|
370
|
+
_chunkGRCOEICKcjs.replaceLocationHash.call(void 0, isAboveFirst ? null : hashForSection(currentSection));
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
373
|
-
if (restoredChecked.current || !
|
|
374
|
-
const target =
|
|
373
|
+
if (restoredChecked.current || !_chunkGRCOEICKcjs.isScrollSyncedHash.call(void 0, )) return;
|
|
374
|
+
const target = _chunkGRCOEICKcjs.getHashTargetElement.call(void 0, currentHashId());
|
|
375
375
|
const tracked = sectionIds.some((id) => _nullishCoalesce(_optionalChain([document, 'access', _17 => _17.getElementById, 'call', _18 => _18(id), 'optionalAccess', _19 => _19.contains, 'call', _20 => _20(target)]), () => ( false)));
|
|
376
376
|
if (!target || !tracked) return;
|
|
377
377
|
restoredChecked.current = true;
|
|
378
378
|
const section = isAboveFirst ? null : document.getElementById(currentSection);
|
|
379
|
-
if (!_optionalChain([section, 'optionalAccess', _21 => _21.contains, 'call', _22 => _22(target)]))
|
|
379
|
+
if (!_optionalChain([section, 'optionalAccess', _21 => _21.contains, 'call', _22 => _22(target)])) _chunkGRCOEICKcjs.scrollElementIntoView.call(void 0, target, { headerOffset, behavior: "instant" });
|
|
380
380
|
};
|
|
381
381
|
let scrollTimer;
|
|
382
382
|
const throttledScroll = () => {
|
|
@@ -396,7 +396,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
396
396
|
// src/components/navigation/multi-level-navigation.tsx
|
|
397
397
|
var _lucidereact = require('lucide-react');
|
|
398
398
|
|
|
399
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
399
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunkTX4NTH22cjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
400
400
|
var NAV_LIST_CLASS = "space-y-2";
|
|
401
401
|
var NAV_ITEM_CLASS = "space-y-1";
|
|
402
402
|
var NAV_ROW_FRAME_CLASS = "relative w-full rounded-lg border transition-all duration-150";
|
|
@@ -417,8 +417,8 @@ function NavigationRowSkeleton({
|
|
|
417
417
|
indentClass
|
|
418
418
|
}) {
|
|
419
419
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, NAV_ROW_PAD_CLASS, indentClass), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, NAV_ROW_FRAME_CLASS, "border-ods-border bg-ods-card"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk63A4GZMBcjs.BUTTON_KIND_CLASS.row, rowHeightClass), children: [
|
|
420
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
421
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
420
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.MediaSkeleton.Icon, { size: "sm", className: "mr-2 flex-shrink-0" }),
|
|
421
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: NAV_SKELETON_LABEL_WIDTHS[index % NAV_SKELETON_LABEL_WIDTHS.length] })
|
|
422
422
|
] }) }) });
|
|
423
423
|
}
|
|
424
424
|
function NavigationTreeSkeleton({
|