@flamingo-stack/openframe-frontend-core 0.0.773 → 0.0.775
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-VW2QQKQ6.cjs → chunk-36GYLB3Z.cjs} +15 -15
- package/dist/{chunk-5HBGBLJT.cjs → chunk-3XLDYEQD.cjs} +74 -63
- package/dist/{chunk-7P2QXBWE.cjs → chunk-42JGOJCB.cjs} +234 -213
- package/dist/{chunk-I4ZVMNHO.cjs → chunk-4LFB4YY3.cjs} +6 -6
- package/dist/{chunk-JJNOAYD4.cjs → chunk-5AOKXXHV.cjs} +4 -4
- package/dist/{chunk-MT5Z2LSV.cjs → chunk-5YJWT5ZQ.cjs} +72 -72
- package/dist/{chunk-42YLIZFD.cjs → chunk-6SJYFUGD.cjs} +22 -22
- package/dist/{chunk-BPAYT72L.cjs → chunk-BTVO676B.cjs} +148 -131
- package/dist/{chunk-TZ4GKUO2.cjs → chunk-CZIMISAR.cjs} +5 -1
- package/dist/{chunk-XVFM6SJA.cjs → chunk-E64HPPRH.cjs} +31 -31
- package/dist/{chunk-CTRJNTYU.cjs → chunk-EQBJHJS7.cjs} +2 -2
- package/dist/{chunk-6LLF2QCS.cjs → chunk-F67SEXCW.cjs} +39 -39
- package/dist/{chunk-HEEK42BL.cjs → chunk-FHTTRWAK.cjs} +81 -81
- package/dist/{chunk-NRFNZ35Z.cjs → chunk-IQQ3SLUK.cjs} +19 -19
- package/dist/{chunk-RNLRS4ID.cjs → chunk-KKAY6GPU.cjs} +2 -2
- package/dist/{chunk-ILZEXCJH.cjs → chunk-KWZ62LPZ.cjs} +124 -104
- package/dist/{chunk-KDMWXXLE.cjs → chunk-L5CKY5WA.cjs} +15 -15
- package/dist/{chunk-CW3ML76U.cjs → chunk-NTPX5GXI.cjs} +4 -0
- package/dist/{chunk-NPCFVTA2.cjs → chunk-ODF3KCRK.cjs} +31 -31
- package/dist/{chunk-YSKX42LW.cjs → chunk-PMX6QNNN.cjs} +12 -12
- package/dist/{chunk-2A56MLLL.cjs → chunk-SWEPHSIP.cjs} +4 -4
- package/dist/{chunk-7J4YWDT6.cjs → chunk-TF2XYDH3.cjs} +3 -3
- package/dist/{chunk-KSCEAIBS.cjs → chunk-TOPGBOCN.cjs} +2 -2
- package/dist/{chunk-FPCGKH5K.cjs → chunk-TUXPFF4P.cjs} +31 -29
- package/dist/{chunk-SE76YGR3.cjs → chunk-USMR73ND.cjs} +4 -4
- package/dist/{chunk-BMFU2CUL.cjs → chunk-VAGZJRYV.cjs} +4 -4
- package/dist/{chunk-3FREBLAJ.cjs → chunk-VDXBACD3.cjs} +47 -45
- package/dist/{chunk-X5Z4HRH7.cjs → chunk-VISK6LKE.cjs} +2 -2
- package/dist/{chunk-5V7BIUGA.cjs → chunk-Y3EBUFX4.cjs} +92 -21
- package/dist/{cloud-tenants-EE5ULFOK.cjs → cloud-tenants-ISGAMTJD.cjs} +11 -11
- package/dist/components/authors/author-detail-view.d.ts.map +1 -1
- package/dist/components/authors/author-detail-view.js +12 -2
- package/dist/components/case-studies/index.cjs +28 -28
- package/dist/components/chat/ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/ask-prompts.js +28 -19
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts +3 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.js +2 -0
- package/dist/components/chat/entity-cards/program-card.d.ts +6 -1
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.js +19 -2
- package/dist/components/chat/index.cjs +10 -8
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +10 -4
- package/dist/components/chat/utils/ask-ai-events.d.ts +10 -0
- package/dist/components/chat/utils/ask-ai-events.d.ts.map +1 -1
- package/dist/components/chat/utils/ask-ai-events.js +21 -1
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/index.cjs +11 -11
- package/dist/components/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +5 -2
- package/dist/components/features/video-shared.d.ts +2 -1
- package/dist/components/features/video-shared.d.ts.map +1 -1
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +64 -13
- package/dist/components/help-center-pages/index.cjs +100 -100
- package/dist/components/index.cjs +74 -62
- package/dist/components/meeting-scheduler/index.cjs +46 -46
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mingo-ai-button.js +2 -1
- package/dist/components/navigation/site-header.d.ts.map +1 -1
- package/dist/components/navigation/site-header.js +3 -1
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/related-content/card-registry.d.ts +5 -0
- package/dist/components/related-content/card-registry.d.ts.map +1 -1
- package/dist/components/related-content/card-registry.js +2 -0
- package/dist/components/related-content/index.cjs +7 -6
- package/dist/components/related-content/index.d.ts +2 -1
- package/dist/components/related-content/index.d.ts.map +1 -1
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/related-content/related-content-section.d.ts +8 -10
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +20 -11
- package/dist/components/tickets/index.cjs +17 -17
- package/dist/components/ui/index.cjs +13 -11
- package/dist/components/ui/photo-wall.d.ts +16 -1
- package/dist/components/ui/photo-wall.d.ts.map +1 -1
- package/dist/components/ui/photo-wall.js +24 -9
- package/dist/components/ui/tab-navigation.d.ts +8 -1
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/components/ui/tab-navigation.js +9 -3
- package/dist/{devices-EBGGHEGR.cjs → devices-AHJX6ACJ.cjs} +12 -12
- package/dist/{embeddable-chat-HCT4QV35.cjs → embeddable-chat-DI7ZZTBP.cjs} +75 -75
- package/dist/hooks/index.cjs +4 -4
- package/dist/hooks/use-near-viewport.d.ts.map +1 -1
- package/dist/hooks/use-near-viewport.js +4 -0
- package/dist/index.cjs +23 -15
- package/dist/{knowledge-5ZSMKKTL.cjs → knowledge-FH5GVRVP.cjs} +12 -12
- package/dist/{logs-GUV3BMGC.cjs → logs-JBIHHLUQ.cjs} +19 -19
- package/dist/{policies-HPMTDOAS.cjs → policies-XLJ2ABY5.cjs} +15 -15
- package/dist/{scripts-QYYKCIUW.cjs → scripts-CQLXM7PP.cjs} +16 -16
- package/dist/{software-update-NC2KZKEI.cjs → software-update-7NYZ7L76.cjs} +14 -14
- package/dist/utils/content-ref-groups.d.ts +8 -0
- package/dist/utils/content-ref-groups.d.ts.map +1 -1
- package/dist/utils/content-ref-groups.js +2 -0
- package/dist/utils/dismiss-cookie.d.ts +14 -0
- package/dist/utils/dismiss-cookie.d.ts.map +1 -1
- package/dist/utils/dismiss-cookie.js +4 -0
- package/dist/utils/index.cjs +10 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/visitor-os.d.ts +9 -0
- package/dist/utils/visitor-os.d.ts.map +1 -1
- package/dist/utils/visitor-os.js +4 -0
- package/dist/{video-file-player-COXRF4M5.cjs → video-file-player-4TXA7BZF.cjs} +3 -3
- package/package.json +1 -1
- package/src/components/authors/author-detail-view.tsx +10 -2
- package/src/components/chat/ask-prompts.tsx +6 -1
- package/src/components/chat/entity-cards/entity-portrait-card.tsx +4 -0
- package/src/components/chat/entity-cards/program-card.tsx +24 -2
- package/src/components/chat/index.ts +16 -9
- package/src/components/chat/utils/ask-ai-events.ts +26 -0
- package/src/components/features/video-hover-preview.tsx +46 -37
- package/src/components/features/video-shared.tsx +2 -1
- package/src/components/features/video.tsx +102 -19
- package/src/components/navigation/mingo-ai-button.tsx +2 -1
- package/src/components/navigation/site-header.tsx +3 -1
- package/src/components/related-content/card-registry.tsx +7 -0
- package/src/components/related-content/index.ts +2 -1
- package/src/components/related-content/related-content-section.tsx +38 -14
- package/src/components/ui/photo-wall.tsx +43 -10
- package/src/components/ui/tab-navigation.tsx +18 -3
- package/src/hooks/use-near-viewport.ts +6 -0
- package/src/utils/content-ref-groups.ts +9 -0
- package/src/utils/dismiss-cookie.ts +17 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/visitor-os.ts +12 -0
|
@@ -46,6 +46,9 @@ function usesCommandKey(os) {
|
|
|
46
46
|
function shortcutLabel(os, key) {
|
|
47
47
|
return usesCommandKey(os) ? `\u2318${key}` : `Ctrl ${key}`;
|
|
48
48
|
}
|
|
49
|
+
function desktopOsBeforePaintScript(attribute) {
|
|
50
|
+
return `(function(){try{var n=window.navigator,h=n.userAgentData&&n.userAgentData.platform,p=String(h||'').replace(/"/g,'').trim().toLowerCase(),t=(n.maxTouchPoints||0)>1,o=null,m=${JSON.stringify(HINT_PLATFORMS)};if(m[p])o=m[p];else{var u=n.userAgent||'';if(/iPhone|iPad|iPod/i.test(u))o='ios';else if(/Android/i.test(u))o='android';else if(/Windows NT|Win64|Win32/i.test(u))o='windows';else if(/Macintosh|Mac OS X/i.test(u))o='mac';else if(/Linux|X11|CrOS/i.test(u))o='linux'}if(o==='mac'&&t)o='ios';if(o==='mac'||o==='windows'||o==='linux')document.documentElement.setAttribute(${JSON.stringify(attribute)},o)}catch(e){}})();`;
|
|
51
|
+
}
|
|
49
52
|
|
|
50
53
|
// src/hooks/ui/use-visitor-os.ts
|
|
51
54
|
var _react = require('react');
|
|
@@ -512,4 +515,5 @@ function captureFormRescueEvent(event, properties) {
|
|
|
512
515
|
|
|
513
516
|
|
|
514
517
|
|
|
515
|
-
|
|
518
|
+
|
|
519
|
+
exports.DESKTOP_OSES = DESKTOP_OSES; exports.detectVisitorOs = detectVisitorOs; exports.desktopOsOf = desktopOsOf; exports.detectDesktopOs = detectDesktopOs; exports.usesCommandKey = usesCommandKey; exports.shortcutLabel = shortcutLabel; exports.desktopOsBeforePaintScript = desktopOsBeforePaintScript; exports.useVisitorOs = useVisitorOs; exports.platformIcons = platformIcons; exports.transformPlatformConfigsToOptions = transformPlatformConfigsToOptions; exports.getPlatformIcon = getPlatformIcon; exports.getSmallPlatformIcon = getSmallPlatformIcon; exports.getPlatformIconComponent = getPlatformIconComponent; exports.validateAccessCode = validateAccessCode; exports.consumeAccessCode = consumeAccessCode; exports.validateAndConsumeAccessCode = validateAndConsumeAccessCode; exports.toGoogleSheetsEmbedUrl = toGoogleSheetsEmbedUrl; exports.toGoogleSheetsOriginalUrl = toGoogleSheetsOriginalUrl; exports.toFigmaEmbedUrl = toFigmaEmbedUrl; exports.isFigmaSlidesUrl = isFigmaSlidesUrl; exports.toFigmaOriginalUrl = toFigmaOriginalUrl; exports.toClaudeMirrorPath = toClaudeMirrorPath; exports.toClaudeEmbedUrl = toClaudeEmbedUrl; exports.HONEYPOT_FIELD = HONEYPOT_FIELD; exports.ELAPSED_MS_FIELD = ELAPSED_MS_FIELD; exports.DEFAULT_MIN_FILL_MS = DEFAULT_MIN_FILL_MS; exports.HUMANITY_SIGNAL_KEYS = HUMANITY_SIGNAL_KEYS; exports.isHumanitySignalKey = isHumanitySignalKey; exports.extractHumanitySignals = extractHumanitySignals; exports.findHoneypotCopySource = findHoneypotCopySource; exports.evaluateHumanitySignals = evaluateHumanitySignals; exports.splitCsvEnv = splitCsvEnv; exports.defineRescueForm = defineRescueForm; exports.getRescueForm = getRescueForm; exports.listRescueForms = listRescueForms; exports.RESCUE_FORMS = RESCUE_FORMS; exports.FORM_RESCUE_VALUE_FIELDS = FORM_RESCUE_VALUE_FIELDS; exports.isExcludedRescueField = isExcludedRescueField; exports.FORM_RESCUE_MAX_VALUE_CHARS = FORM_RESCUE_MAX_VALUE_CHARS; exports.FORM_RESCUE_DEBOUNCE_MS = FORM_RESCUE_DEBOUNCE_MS; exports.FORM_RESCUE_MAX_FIELDS = FORM_RESCUE_MAX_FIELDS; exports.FORM_RESCUE_ATTEMPT_FIELD = FORM_RESCUE_ATTEMPT_FIELD; exports.FORM_RESCUE_RESUME_FIELD = FORM_RESCUE_RESUME_FIELD; exports.FORM_RESCUE_SUBMIT_KEYS = FORM_RESCUE_SUBMIT_KEYS; exports.FORM_RESCUE_RESUME_PARAM = FORM_RESCUE_RESUME_PARAM; exports.isResumeToken = isResumeToken; exports.FORM_DRAFT_STATUSES = FORM_DRAFT_STATUSES; exports.FORM_RESCUE_SKIP_REASONS = FORM_RESCUE_SKIP_REASONS; exports.isRescueEmail = isRescueEmail; exports.isFormAttemptId = isFormAttemptId; exports.sanitizeRescueValues = sanitizeRescueValues; exports.filledRescueFields = filledRescueFields; exports.rescueCompletionPct = rescueCompletionPct; exports.sanitizeRescueFieldName = sanitizeRescueFieldName; exports.parseFormDraftSaveRequest = parseFormDraftSaveRequest; exports.FORM_RESCUE_EVENTS = FORM_RESCUE_EVENTS; exports.captureFormRescueEvent = captureFormRescueEvent;
|
|
@@ -29,7 +29,7 @@ var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkCZIMISARcjs = require('./chunk-CZIMISAR.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -807,7 +807,7 @@ function usePlatformConfig() {
|
|
|
807
807
|
label: platform.label
|
|
808
808
|
}))
|
|
809
809
|
];
|
|
810
|
-
const selectableOptions =
|
|
810
|
+
const selectableOptions = _chunkCZIMISARcjs.transformPlatformConfigsToOptions.call(void 0, platforms);
|
|
811
811
|
return {
|
|
812
812
|
platforms,
|
|
813
813
|
platformOptions,
|
|
@@ -1325,10 +1325,10 @@ function useDownloads({
|
|
|
1325
1325
|
}
|
|
1326
1326
|
function useVisitorDesktopDownload(options = {}) {
|
|
1327
1327
|
const enabled = _nullishCoalesce(options.enabled, () => ( true));
|
|
1328
|
-
const visitor =
|
|
1328
|
+
const visitor = _chunkCZIMISARcjs.useVisitorOs.call(void 0, );
|
|
1329
1329
|
const { data, error } = useDownloads(options);
|
|
1330
1330
|
if (!enabled || !visitor.known || !data && !error) return { known: false, download: null };
|
|
1331
|
-
const os =
|
|
1331
|
+
const os = _chunkCZIMISARcjs.desktopOsOf.call(void 0, visitor.os);
|
|
1332
1332
|
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));
|
|
1333
1333
|
return { known: true, download };
|
|
1334
1334
|
}
|
|
@@ -2630,7 +2630,7 @@ function useAccessCodeIntegration() {
|
|
|
2630
2630
|
const validate = async (email, code) => {
|
|
2631
2631
|
setIsValidating(true);
|
|
2632
2632
|
try {
|
|
2633
|
-
return await
|
|
2633
|
+
return await _chunkCZIMISARcjs.validateAccessCode.call(void 0, email, code, endpoints);
|
|
2634
2634
|
} finally {
|
|
2635
2635
|
setIsValidating(false);
|
|
2636
2636
|
}
|
|
@@ -2638,7 +2638,7 @@ function useAccessCodeIntegration() {
|
|
|
2638
2638
|
const consume = async (email, code) => {
|
|
2639
2639
|
setIsConsuming(true);
|
|
2640
2640
|
try {
|
|
2641
|
-
return await
|
|
2641
|
+
return await _chunkCZIMISARcjs.consumeAccessCode.call(void 0, email, code, endpoints);
|
|
2642
2642
|
} finally {
|
|
2643
2643
|
setIsConsuming(false);
|
|
2644
2644
|
}
|
|
@@ -2647,7 +2647,7 @@ function useAccessCodeIntegration() {
|
|
|
2647
2647
|
setIsValidating(true);
|
|
2648
2648
|
setIsConsuming(true);
|
|
2649
2649
|
try {
|
|
2650
|
-
return await
|
|
2650
|
+
return await _chunkCZIMISARcjs.validateAndConsumeAccessCode.call(void 0, email, code, endpoints);
|
|
2651
2651
|
} finally {
|
|
2652
2652
|
setIsValidating(false);
|
|
2653
2653
|
setIsConsuming(false);
|
|
@@ -2677,7 +2677,7 @@ async function revalidateMirror(mirrorPath) {
|
|
|
2677
2677
|
}
|
|
2678
2678
|
function useClaudeMirrorSrc(url) {
|
|
2679
2679
|
const endpoints = _chunkMZ4KBSH7cjs.useEndpointsRuntime.call(void 0, );
|
|
2680
|
-
const mirrorPath =
|
|
2680
|
+
const mirrorPath = _chunkCZIMISARcjs.toClaudeMirrorPath.call(void 0, url, _optionalChain([endpoints, 'optionalAccess', _32 => _32.storageViewBaseUrl]));
|
|
2681
2681
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
2682
2682
|
const state = resolved && resolved.key === mirrorPath ? resolved.value : { src: null, status: mirrorPath ? "probing" : "absent" };
|
|
2683
2683
|
_react.useEffect.call(void 0, () => {
|
|
@@ -2780,8 +2780,8 @@ function useHumanitySignals() {
|
|
|
2780
2780
|
const startedAtRef = _react.useRef.call(void 0, mountedAt);
|
|
2781
2781
|
const getSignals = _react.useCallback.call(void 0,
|
|
2782
2782
|
() => ({
|
|
2783
|
-
[
|
|
2784
|
-
[
|
|
2783
|
+
[_chunkCZIMISARcjs.HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _34 => _34.current, 'optionalAccess', _35 => _35.value]), () => ( "")),
|
|
2784
|
+
[_chunkCZIMISARcjs.ELAPSED_MS_FIELD]: typeof performance !== "undefined" ? Math.round(performance.now() - startedAtRef.current) : 0
|
|
2785
2785
|
}),
|
|
2786
2786
|
[]
|
|
2787
2787
|
);
|
|
@@ -2789,7 +2789,7 @@ function useHumanitySignals() {
|
|
|
2789
2789
|
if (ref.current) ref.current.value = "";
|
|
2790
2790
|
if (typeof performance !== "undefined") startedAtRef.current = performance.now();
|
|
2791
2791
|
}, []);
|
|
2792
|
-
return { honeypotInputProps: { ref, name:
|
|
2792
|
+
return { honeypotInputProps: { ref, name: _chunkCZIMISARcjs.HONEYPOT_FIELD }, getSignals, resetSignals };
|
|
2793
2793
|
}
|
|
2794
2794
|
|
|
2795
2795
|
// src/hooks/use-form-rescue.ts
|
|
@@ -2802,9 +2802,9 @@ function readLocalDraft(formId) {
|
|
|
2802
2802
|
const raw = window.localStorage.getItem(STORAGE_PREFIX + formId);
|
|
2803
2803
|
if (!raw) return null;
|
|
2804
2804
|
const parsed = JSON.parse(raw);
|
|
2805
|
-
if (!
|
|
2805
|
+
if (!_chunkCZIMISARcjs.isFormAttemptId.call(void 0, parsed.attemptId) || typeof parsed.savedAt !== "number") return null;
|
|
2806
2806
|
if (Date.now() - parsed.savedAt > LOCAL_DRAFT_TTL_MS) return null;
|
|
2807
|
-
return { attemptId: parsed.attemptId, values:
|
|
2807
|
+
return { attemptId: parsed.attemptId, values: _chunkCZIMISARcjs.sanitizeRescueValues.call(void 0, parsed.values), savedAt: parsed.savedAt };
|
|
2808
2808
|
} catch (e8) {
|
|
2809
2809
|
return null;
|
|
2810
2810
|
}
|
|
@@ -2824,9 +2824,9 @@ function clearLocalDraft(formId) {
|
|
|
2824
2824
|
function completeFormRescue(form, attemptId) {
|
|
2825
2825
|
if (!form || typeof window === "undefined") return;
|
|
2826
2826
|
const local = readLocalDraft(form.id);
|
|
2827
|
-
|
|
2827
|
+
_chunkCZIMISARcjs.captureFormRescueEvent.call(void 0, _chunkCZIMISARcjs.FORM_RESCUE_EVENTS.submitted, {
|
|
2828
2828
|
form_id: form.id,
|
|
2829
|
-
attempt_id:
|
|
2829
|
+
attempt_id: _chunkCZIMISARcjs.isFormAttemptId.call(void 0, attemptId) ? attemptId : _nullishCoalesce(_optionalChain([local, 'optionalAccess', _36 => _36.attemptId]), () => ( null))
|
|
2830
2830
|
});
|
|
2831
2831
|
clearLocalDraft(form.id);
|
|
2832
2832
|
}
|
|
@@ -2887,7 +2887,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2887
2887
|
}).catch(() => void 0);
|
|
2888
2888
|
} catch (e12) {
|
|
2889
2889
|
}
|
|
2890
|
-
|
|
2890
|
+
_chunkCZIMISARcjs.captureFormRescueEvent.call(void 0, _chunkCZIMISARcjs.FORM_RESCUE_EVENTS.progress, {
|
|
2891
2891
|
form_id: formId,
|
|
2892
2892
|
attempt_id: attemptId(),
|
|
2893
2893
|
fields_filled: body.fields_filled,
|
|
@@ -2900,14 +2900,14 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2900
2900
|
_react.useEffect.call(void 0, () => {
|
|
2901
2901
|
if (!formId || typeof window === "undefined") return void 0;
|
|
2902
2902
|
let cancelled = false;
|
|
2903
|
-
const token = new URLSearchParams(window.location.search).get(
|
|
2903
|
+
const token = new URLSearchParams(window.location.search).get(_chunkCZIMISARcjs.FORM_RESCUE_RESUME_PARAM);
|
|
2904
2904
|
const restoreLocal = () => {
|
|
2905
2905
|
const local = readLocalDraft(formId);
|
|
2906
2906
|
if (!local) return;
|
|
2907
2907
|
attemptIdRef.current = local.attemptId;
|
|
2908
2908
|
if (Object.keys(local.values).length) _optionalChain([onRestoreRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42(local.values)]);
|
|
2909
2909
|
};
|
|
2910
|
-
if (
|
|
2910
|
+
if (_chunkCZIMISARcjs.isResumeToken.call(void 0, token) && draftsUrl) {
|
|
2911
2911
|
_chunkASMNNSUQcjs.contentFetch.call(void 0, `${draftsUrl}/resume/${encodeURIComponent(token)}`).then(async (res) => res.ok ? await res.json() : null).then((data) => {
|
|
2912
2912
|
if (cancelled) return;
|
|
2913
2913
|
if (!data || data.form_id !== formId) {
|
|
@@ -2915,8 +2915,8 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2915
2915
|
return;
|
|
2916
2916
|
}
|
|
2917
2917
|
resumeTokenRef.current = token;
|
|
2918
|
-
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(
|
|
2919
|
-
|
|
2918
|
+
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(_chunkCZIMISARcjs.sanitizeRescueValues.call(void 0, data.values))]);
|
|
2919
|
+
_chunkCZIMISARcjs.captureFormRescueEvent.call(void 0, _chunkCZIMISARcjs.FORM_RESCUE_EVENTS.resumed, { form_id: formId, attempt_id: attemptId() });
|
|
2920
2920
|
}).catch(() => {
|
|
2921
2921
|
if (!cancelled) restoreLocal();
|
|
2922
2922
|
});
|
|
@@ -2936,7 +2936,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2936
2936
|
timerRef.current = null;
|
|
2937
2937
|
}
|
|
2938
2938
|
send(true);
|
|
2939
|
-
|
|
2939
|
+
_chunkCZIMISARcjs.captureFormRescueEvent.call(void 0, _chunkCZIMISARcjs.FORM_RESCUE_EVENTS.abandoned, {
|
|
2940
2940
|
form_id: formId,
|
|
2941
2941
|
attempt_id: attemptId(),
|
|
2942
2942
|
last_field: _nullishCoalesce(_optionalChain([latestRef, 'access', _45 => _45.current, 'optionalAccess', _46 => _46.last_field]), () => ( null)),
|
|
@@ -2960,22 +2960,22 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2960
2960
|
const names = fieldNamesRef.current;
|
|
2961
2961
|
const visible = {};
|
|
2962
2962
|
for (const name of names) visible[name] = values[name];
|
|
2963
|
-
const filled =
|
|
2963
|
+
const filled = _chunkCZIMISARcjs.filledRescueFields.call(void 0, visible, names);
|
|
2964
2964
|
if (!filled.length) return;
|
|
2965
2965
|
if (!startedRef.current) {
|
|
2966
2966
|
startedRef.current = true;
|
|
2967
|
-
|
|
2967
|
+
_chunkCZIMISARcjs.captureFormRescueEvent.call(void 0, _chunkCZIMISARcjs.FORM_RESCUE_EVENTS.started, { form_id: formId, attempt_id: attemptId() });
|
|
2968
2968
|
}
|
|
2969
|
-
const clean =
|
|
2970
|
-
if (!leadCapturedRef.current &&
|
|
2969
|
+
const clean = _chunkCZIMISARcjs.sanitizeRescueValues.call(void 0, visible);
|
|
2970
|
+
if (!leadCapturedRef.current && _chunkCZIMISARcjs.isRescueEmail.call(void 0, clean.email)) {
|
|
2971
2971
|
leadCapturedRef.current = true;
|
|
2972
|
-
|
|
2972
|
+
_chunkCZIMISARcjs.captureFormRescueEvent.call(void 0, _chunkCZIMISARcjs.FORM_RESCUE_EVENTS.leadCaptured, { form_id: formId, attempt_id: attemptId() });
|
|
2973
2973
|
}
|
|
2974
2974
|
latestRef.current = {
|
|
2975
2975
|
values: clean,
|
|
2976
2976
|
fields_filled: filled,
|
|
2977
|
-
last_field:
|
|
2978
|
-
completion_pct:
|
|
2977
|
+
last_field: _chunkCZIMISARcjs.sanitizeRescueFieldName.call(void 0, lastField),
|
|
2978
|
+
completion_pct: _chunkCZIMISARcjs.rescueCompletionPct.call(void 0, filled.length, names.length)
|
|
2979
2979
|
};
|
|
2980
2980
|
dirtyRef.current = true;
|
|
2981
2981
|
writeLocalDraft(formId, { attemptId: attemptId(), values: clean, savedAt: Date.now() });
|
|
@@ -2983,15 +2983,15 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2983
2983
|
timerRef.current = setTimeout(() => {
|
|
2984
2984
|
timerRef.current = null;
|
|
2985
2985
|
send(false);
|
|
2986
|
-
},
|
|
2986
|
+
}, _chunkCZIMISARcjs.FORM_RESCUE_DEBOUNCE_MS);
|
|
2987
2987
|
},
|
|
2988
2988
|
[attemptId, formId, send]
|
|
2989
2989
|
);
|
|
2990
2990
|
const submitFields = _react.useCallback.call(void 0, () => {
|
|
2991
2991
|
if (!formId) return {};
|
|
2992
2992
|
return {
|
|
2993
|
-
[
|
|
2994
|
-
...resumeTokenRef.current ? { [
|
|
2993
|
+
[_chunkCZIMISARcjs.FORM_RESCUE_ATTEMPT_FIELD]: attemptId(),
|
|
2994
|
+
...resumeTokenRef.current ? { [_chunkCZIMISARcjs.FORM_RESCUE_RESUME_FIELD]: resumeTokenRef.current } : {}
|
|
2995
2995
|
};
|
|
2996
2996
|
}, [attemptId, formId]);
|
|
2997
2997
|
const complete = _react.useCallback.call(void 0, () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5AOKXXHVcjs = require('./chunk-5AOKXXHV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkXFRBEXQNcjs = require('./chunk-XFRBEXQN.cjs');
|
|
@@ -120,7 +120,7 @@ function PersistentPaginationWrapper({
|
|
|
120
120
|
},
|
|
121
121
|
"aria-hidden": isPaginationDisabled,
|
|
122
122
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
123
|
-
|
|
123
|
+
_chunk5AOKXXHVcjs.UnifiedPagination,
|
|
124
124
|
{
|
|
125
125
|
currentPage: displayCurrentPage,
|
|
126
126
|
totalPages: displayTotalPages,
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4LFB4YY3cjs = require('./chunk-4LFB4YY3.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkSWEPHSIPcjs = require('./chunk-SWEPHSIP.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkPMX6QNNNcjs = require('./chunk-PMX6QNNN.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk42JGOJCBcjs = require('./chunk-42JGOJCB.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkV3W56L2Dcjs = require('./chunk-V3W56L2D.cjs');
|
|
@@ -29,13 +29,13 @@ var _chunkV3W56L2Dcjs = require('./chunk-V3W56L2D.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkBTVO676Bcjs = require('./chunk-BTVO676B.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkKWZ62LPZcjs = require('./chunk-KWZ62LPZ.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 (!_chunk42JGOJCBcjs.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, () => ( _chunkBTVO676Bcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
363
|
+
const cleanInitialPath = _chunkBTVO676Bcjs.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 = _chunkBTVO676Bcjs.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(_chunkBTVO676Bcjs.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(_chunkBTVO676Bcjs.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(_chunkBTVO676Bcjs.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 = _chunkBTVO676Bcjs.findDocNodeByPath.call(void 0, _chunkBTVO676Bcjs.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 = _chunkBTVO676Bcjs.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 = _chunkBTVO676Bcjs.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(_chunkBTVO676Bcjs.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(_chunkBTVO676Bcjs.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 : _chunkBTVO676Bcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
602
602
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
603
603
|
_chunkXXJL5GY3cjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkXXJL5GY3cjs.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 = _chunkBTVO676Bcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
666
|
+
return _nullishCoalesce(_chunkBTVO676Bcjs.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 = _chunkBTVO676Bcjs.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 } = _chunkSWEPHSIPcjs.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 = _chunkPMX6QNNNcjs.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([_chunkBTVO676Bcjs.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, _chunkV3W56L2Dcjs.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, _chunk42JGOJCBcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
|
|
800
800
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
801
|
-
|
|
801
|
+
_chunkPMX6QNNNcjs.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
|
+
_chunkSWEPHSIPcjs.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
|
+
_chunkSWEPHSIPcjs.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
|
+
_chunkSWEPHSIPcjs.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, _chunk42JGOJCBcjs.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,14 +903,14 @@ var MARKDOWN_SKELETON_BLOCKS = [
|
|
|
903
903
|
{ kind: "p", lines: 3 },
|
|
904
904
|
{ kind: "p", lines: 4 }
|
|
905
905
|
];
|
|
906
|
-
var MARKDOWN_SKELETON_H2_CLASS = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
907
|
-
var MARKDOWN_SKELETON_P_CLASS = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
906
|
+
var MARKDOWN_SKELETON_H2_CLASS = _chunk65VVJSQZcjs.cn.call(void 0, _chunkKWZ62LPZcjs.MARKDOWN_H2_CLASS, _chunkKWZ62LPZcjs.TEXT_SIZE_PRESETS.default.h2);
|
|
907
|
+
var MARKDOWN_SKELETON_P_CLASS = _chunk65VVJSQZcjs.cn.call(void 0, _chunkKWZ62LPZcjs.MARKDOWN_PARAGRAPH_CLASS, _chunkKWZ62LPZcjs.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, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the document", announce: region, className:
|
|
913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the document", announce: region, className: _chunkKWZ62LPZcjs.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, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/3" }) }, i)
|
|
@@ -949,7 +949,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
949
949
|
] }),
|
|
950
950
|
/* @__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, _chunkXFRBEXQNcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
|
|
951
951
|
] }),
|
|
952
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
952
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.EmbedLoadingSkeleton, { region: false })
|
|
953
953
|
] });
|
|
954
954
|
}
|
|
955
955
|
|
|
@@ -957,11 +957,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
957
957
|
|
|
958
958
|
var DEFAULT_TITLE = "Documents";
|
|
959
959
|
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,
|
|
960
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LFB4YY3cjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
961
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LFB4YY3cjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
962
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
963
963
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
964
|
-
|
|
964
|
+
_chunk4LFB4YY3cjs.FileDownloadCard,
|
|
965
965
|
{
|
|
966
966
|
fileName: content.fileName,
|
|
967
967
|
mimeType: content.mimeType,
|