@flamingo-stack/openframe-frontend-core 0.0.798 → 0.0.800
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-TJQGKIXB.cjs → chunk-3C6JR5Z5.cjs} +32 -32
- package/dist/{chunk-C2UZWRU5.cjs → chunk-5LTKE6D3.cjs} +16 -16
- package/dist/{chunk-FO3N6HDS.cjs → chunk-5PDOKPBF.cjs} +13 -13
- package/dist/{chunk-BWTCULUN.cjs → chunk-CDLOQCJC.cjs} +4 -4
- package/dist/{chunk-2M6HS23A.cjs → chunk-CM2UGR4I.cjs} +30 -30
- package/dist/{chunk-NK2FSEWD.cjs → chunk-DUSCG2EO.cjs} +4 -4
- package/dist/{chunk-FIKIPO4F.cjs → chunk-FAUVDMH4.cjs} +1 -1
- package/dist/{chunk-VUHPWSAE.cjs → chunk-FCT7VKWG.cjs} +25 -25
- package/dist/{chunk-SDV335EO.cjs → chunk-FFRFKWTZ.cjs} +4 -4
- package/dist/{chunk-XJD7IZR2.cjs → chunk-FS4TVAE7.cjs} +48 -48
- package/dist/{chunk-5IU64YEA.cjs → chunk-IX2D26OR.cjs} +39 -39
- package/dist/{chunk-ZXRAYCNB.cjs → chunk-KH5DRO4V.cjs} +3 -3
- package/dist/{chunk-AVAE5B2A.cjs → chunk-KVGWOJCX.cjs} +2 -2
- package/dist/{chunk-6YCUP6JJ.cjs → chunk-LTOSJI6B.cjs} +14 -14
- package/dist/{chunk-ND7ECICK.cjs → chunk-OEEFUB25.cjs} +70 -45
- package/dist/{chunk-EYE5FLHZ.cjs → chunk-OGUBSDU5.cjs} +11 -11
- package/dist/{chunk-6F2UHDCB.cjs → chunk-OUKKLSME.cjs} +3 -3
- package/dist/{chunk-W25OB2R6.cjs → chunk-PQNRSUQ6.cjs} +11 -11
- package/dist/{chunk-W5ZQDEDT.cjs → chunk-PZVBTLLQ.cjs} +147 -131
- package/dist/{chunk-PTQVGWJE.cjs → chunk-S7CBD6KF.cjs} +61 -61
- package/dist/{chunk-O6KQ64RI.cjs → chunk-UYGXJ5SQ.cjs} +2 -2
- package/dist/{chunk-WUBTAN27.cjs → chunk-WWWCFNKI.cjs} +68 -68
- package/dist/{chunk-KFDAL6NA.cjs → chunk-XAJPXPQ6.cjs} +2 -2
- package/dist/{chunk-ZOK4OWMJ.cjs → chunk-Y5XHMEBB.cjs} +2 -2
- package/dist/{chunk-T5OCU3EL.cjs → chunk-ZPVFFPQM.cjs} +4 -4
- package/dist/{cloud-tenants-XGL3DYSG.cjs → cloud-tenants-S3BDIJHM.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +82 -82
- package/dist/components/index.cjs +52 -52
- package/dist/components/layout/page-heading.js +1 -1
- package/dist/components/loading/loading-fallback.d.ts +27 -3
- package/dist/components/loading/loading-fallback.d.ts.map +1 -1
- package/dist/components/loading/loading-fallback.js +17 -9
- package/dist/components/meeting-scheduler/index.cjs +38 -38
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/index.cjs +15 -15
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/fade-preview.d.ts.map +1 -1
- package/dist/components/ui/fade-preview.js +9 -2
- package/dist/components/ui/index.cjs +6 -6
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +9 -1
- package/dist/components/ui/markdown-editor.d.ts.map +1 -1
- package/dist/components/ui/trendline.d.ts +1 -1
- package/dist/components/ui/trendline.d.ts.map +1 -1
- package/dist/components/ui/trendline.js +11 -2
- package/dist/{devices-U2NQYDI7.cjs → devices-C6OOVBJK.cjs} +7 -7
- package/dist/{embeddable-chat-MPJLN4C6.cjs → embeddable-chat-2EBDLEVA.cjs} +62 -62
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-BUY6TSK6.cjs → knowledge-YA5SFLQP.cjs} +7 -7
- package/dist/loading-standard/engine.d.mts +22 -4
- package/dist/loading-standard/engine.d.mts.map +1 -1
- package/dist/loading-standard/rule-examples.d.mts.map +1 -1
- package/dist/{logs-FUPQ7XYE.cjs → logs-LQX2CNVB.cjs} +14 -14
- package/dist/{policies-NASADYBK.cjs → policies-LWAUO6NR.cjs} +10 -10
- package/dist/{scripts-BGLTDQKV.cjs → scripts-W46RQ64X.cjs} +11 -11
- package/dist/{software-update-QDIZ32KU.cjs → software-update-OVR26DUF.cjs} +9 -9
- package/dist/utils/index.cjs +16 -1
- package/dist/utils/markdown-to-plain.d.ts.map +1 -1
- package/dist/utils/markdown-to-plain.js +16 -1
- package/package.json +1 -1
- package/src/components/layout/page-heading.tsx +3 -1
- package/src/components/loading/loading-fallback.tsx +52 -12
- package/src/components/ui/fade-preview.tsx +13 -2
- package/src/components/ui/index.ts +13 -1
- package/src/components/ui/markdown-editor.tsx +1 -0
- package/src/components/ui/trendline.tsx +27 -10
- package/src/loading-standard/engine.mjs +170 -14
- package/src/loading-standard/rule-examples.mjs +50 -0
- package/src/utils/markdown-to-plain.ts +23 -4
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkUYGXJ5SQcjs = require('./chunk-UYGXJ5SQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunkO6KQ64RIcjs = require('./chunk-O6KQ64RI.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkFFRFKWTZcjs = require('./chunk-FFRFKWTZ.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,7 +27,7 @@ var _chunkSDV335EOcjs = require('./chunk-SDV335EO.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -443,13 +443,13 @@ function programEntry(configKey) {
|
|
|
443
443
|
return cardEntry({
|
|
444
444
|
// The gallery and hosts rows are drawn only for a type whose cards show them (its config's `cardShowsGallery`,
|
|
445
445
|
// `cardShowsHosts`), as `ProgramCard` decides in a scope: elsewhere a record may have none.
|
|
446
|
-
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
446
|
+
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.ProgramCard, { loading: true, config: _optionalChain([extras, 'optionalAccess', _2 => _2.programConfigs, 'optionalAccess', _3 => _3[configKey]]), size: size === "sm" ? "sm" : "default" }),
|
|
447
447
|
decode: decodeProgramRow,
|
|
448
448
|
render: (item, ctx) => {
|
|
449
449
|
const config = _optionalChain([ctx, 'access', _4 => _4.extras, 'optionalAccess', _5 => _5.programConfigs, 'optionalAccess', _6 => _6[configKey]]);
|
|
450
450
|
if (!config) return null;
|
|
451
451
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
452
|
-
|
|
452
|
+
_chunkFAUVDMH4cjs.ProgramCard,
|
|
453
453
|
{
|
|
454
454
|
config,
|
|
455
455
|
item,
|
|
@@ -467,10 +467,10 @@ function programEntry(configKey) {
|
|
|
467
467
|
}
|
|
468
468
|
function roadmapEntry(cardType) {
|
|
469
469
|
return cardEntry({
|
|
470
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
470
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.RoadmapCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
471
471
|
decode: decodeRoadmapRow,
|
|
472
472
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
473
|
-
|
|
473
|
+
_chunkFAUVDMH4cjs.RoadmapCard,
|
|
474
474
|
{
|
|
475
475
|
item,
|
|
476
476
|
href: ctx.href,
|
|
@@ -487,10 +487,10 @@ function roadmapEntry(cardType) {
|
|
|
487
487
|
}
|
|
488
488
|
var RELATED_CARD_REGISTRY = {
|
|
489
489
|
blog_post_existing: cardEntry({
|
|
490
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
490
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.BlogCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
491
491
|
decode: decodeBlogRow,
|
|
492
492
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
493
|
-
|
|
493
|
+
_chunkFAUVDMH4cjs.BlogCard,
|
|
494
494
|
{
|
|
495
495
|
post,
|
|
496
496
|
size: ctx.legacySize,
|
|
@@ -518,10 +518,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
518
518
|
)
|
|
519
519
|
}),
|
|
520
520
|
customer_interview: cardEntry({
|
|
521
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
521
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.CustomerInterviewCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
522
522
|
decode: decodeCustomerInterviewRow,
|
|
523
523
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
524
|
-
|
|
524
|
+
_chunkFAUVDMH4cjs.CustomerInterviewCard,
|
|
525
525
|
{
|
|
526
526
|
interview,
|
|
527
527
|
size: ctx.legacySize,
|
|
@@ -539,13 +539,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
539
539
|
* record, and the three props the rail sets itself are read off it.
|
|
540
540
|
*/
|
|
541
541
|
product_release: cardEntry({
|
|
542
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
542
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.ProductReleaseCard, { loading: true, size: size === "sm" ? "sm" : "lg" }),
|
|
543
543
|
decode: asRecord,
|
|
544
544
|
render: (release, ctx) => {
|
|
545
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => (
|
|
545
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => ( _chunkFAUVDMH4cjs.buildProductReleaseCardProps));
|
|
546
546
|
const releaseProps = buildReleaseProps(release);
|
|
547
547
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
-
|
|
548
|
+
_chunkFAUVDMH4cjs.ProductReleaseCard,
|
|
549
549
|
{
|
|
550
550
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
551
551
|
title: str(release, "title"),
|
|
@@ -561,10 +561,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
561
561
|
webinar: programEntry("webinar"),
|
|
562
562
|
event: programEntry("event"),
|
|
563
563
|
investor_update: cardEntry({
|
|
564
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
564
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.InvestorUpdateCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
565
565
|
decode: decodeInvestorUpdateRow,
|
|
566
566
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
567
|
-
|
|
567
|
+
_chunkFAUVDMH4cjs.InvestorUpdateCard,
|
|
568
568
|
{
|
|
569
569
|
update,
|
|
570
570
|
size: ctx.legacySize,
|
|
@@ -579,10 +579,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
579
579
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
580
580
|
* section" rail, not this full-width row. */
|
|
581
581
|
onboarding_guide: cardEntry({
|
|
582
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
582
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.OnboardingGuideCard, { loading: true, size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
583
583
|
decode: decodeOnboardingGuideRow,
|
|
584
584
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
585
|
-
|
|
585
|
+
_chunkFAUVDMH4cjs.OnboardingGuideCard,
|
|
586
586
|
{
|
|
587
587
|
guide,
|
|
588
588
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -599,10 +599,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
599
599
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
600
600
|
* card in a dead <a>. */
|
|
601
601
|
what_i_shipped: cardEntry({
|
|
602
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
602
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFRFKWTZcjs.WhatIShippedCard, { loading: true }),
|
|
603
603
|
decode: decodeEmployeeEntryRow,
|
|
604
604
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
605
|
-
|
|
605
|
+
_chunkFFRFKWTZcjs.WhatIShippedCard,
|
|
606
606
|
{
|
|
607
607
|
entry,
|
|
608
608
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -612,10 +612,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
612
612
|
}),
|
|
613
613
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
614
614
|
how_i_work: cardEntry({
|
|
615
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
615
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFRFKWTZcjs.HowIWorkCard, { loading: true }),
|
|
616
616
|
decode: decodeEmployeeEntryRow,
|
|
617
617
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
618
|
-
|
|
618
|
+
_chunkFFRFKWTZcjs.HowIWorkCard,
|
|
619
619
|
{
|
|
620
620
|
entry,
|
|
621
621
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -625,10 +625,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
625
625
|
}),
|
|
626
626
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
627
627
|
ai_prompt: cardEntry({
|
|
628
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
628
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFFRFKWTZcjs.AiPromptCard, { loading: true }),
|
|
629
629
|
decode: decodeEmployeeEntryRow,
|
|
630
630
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
631
|
-
|
|
631
|
+
_chunkFFRFKWTZcjs.AiPromptCard,
|
|
632
632
|
{
|
|
633
633
|
entry,
|
|
634
634
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -711,9 +711,9 @@ function useGroupItems(type, refs, buildUrl, seedRows) {
|
|
|
711
711
|
() => seedRows && url !== null ? /* @__PURE__ */ new Map([[url, [...seedRows]]]) : /* @__PURE__ */ new Map()
|
|
712
712
|
);
|
|
713
713
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
714
|
-
const { data, dataUrl, error } =
|
|
714
|
+
const { data, dataUrl, error } = _chunkFFRFKWTZcjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
715
715
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
716
|
-
setPages(new Map(pages).set(dataUrl,
|
|
716
|
+
setPages(new Map(pages).set(dataUrl, _chunkFAUVDMH4cjs.extractItems.call(void 0, data)));
|
|
717
717
|
}
|
|
718
718
|
if (url === null) return { items: null, isLoading: false };
|
|
719
719
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -722,7 +722,7 @@ function gridClassFor(columns) {
|
|
|
722
722
|
return columns === 3 ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" : "grid grid-cols-1 sm:grid-cols-2 gap-6";
|
|
723
723
|
}
|
|
724
724
|
function resolveGroupConfig(type) {
|
|
725
|
-
return _nullishCoalesce(
|
|
725
|
+
return _nullishCoalesce(_chunkFFRFKWTZcjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
726
726
|
label: type,
|
|
727
727
|
order: 999,
|
|
728
728
|
layout: "grid",
|
|
@@ -735,15 +735,15 @@ var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
|
735
735
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
736
736
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
737
737
|
function GroupHeading({ type }) {
|
|
738
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children:
|
|
738
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: _chunkFFRFKWTZcjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
739
739
|
}
|
|
740
740
|
function orderRailTypes(types, entityType) {
|
|
741
|
-
let ordered =
|
|
741
|
+
let ordered = _chunkFFRFKWTZcjs.orderContentRefTypes.call(void 0, types);
|
|
742
742
|
if (entityType) {
|
|
743
|
-
const canonicalEntityType =
|
|
744
|
-
const sameType = ordered.filter((t) =>
|
|
743
|
+
const canonicalEntityType = _chunkFAUVDMH4cjs.canonicalContentRefType.call(void 0, entityType);
|
|
744
|
+
const sameType = ordered.filter((t) => _chunkFAUVDMH4cjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
745
745
|
if (sameType.length > 0) {
|
|
746
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
746
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunkFAUVDMH4cjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
return ordered;
|
|
@@ -772,10 +772,10 @@ function ContentGroup({
|
|
|
772
772
|
setPagedRefsKey(refsKey);
|
|
773
773
|
setPage(1);
|
|
774
774
|
}
|
|
775
|
-
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length,
|
|
776
|
-
const pageRefs = refs.slice((page - 1) *
|
|
775
|
+
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, _chunkFFRFKWTZcjs.GROUP_PAGE_SIZE);
|
|
776
|
+
const pageRefs = refs.slice((page - 1) * _chunkFFRFKWTZcjs.GROUP_PAGE_SIZE, page * _chunkFFRFKWTZcjs.GROUP_PAGE_SIZE);
|
|
777
777
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
778
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
778
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUYGXJ5SQcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
779
779
|
_react.useEffect.call(void 0, () => {
|
|
780
780
|
onLoadingChange(type, isLoading);
|
|
781
781
|
return () => onLoadingChange(type, false);
|
|
@@ -793,7 +793,7 @@ function ContentGroup({
|
|
|
793
793
|
}
|
|
794
794
|
if (!items) return null;
|
|
795
795
|
const rowKey = (it) => {
|
|
796
|
-
const extracted =
|
|
796
|
+
const extracted = _chunkFAUVDMH4cjs.extractItemId.call(void 0, type, it);
|
|
797
797
|
if (extracted !== null) return extracted;
|
|
798
798
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
799
799
|
};
|
|
@@ -864,11 +864,11 @@ function RelatedContentSection({
|
|
|
864
864
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
865
865
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
866
866
|
};
|
|
867
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
867
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkFFRFKWTZcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
868
868
|
apiBaseUrl,
|
|
869
869
|
extraParams: { authorId, ...typeFilterParams }
|
|
870
870
|
}) : null;
|
|
871
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
871
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkFFRFKWTZcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
872
872
|
apiBaseUrl,
|
|
873
873
|
entityType,
|
|
874
874
|
entityId,
|
|
@@ -885,7 +885,7 @@ function RelatedContentSection({
|
|
|
885
885
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
886
886
|
[initialItems, suggestionsDisabled]
|
|
887
887
|
);
|
|
888
|
-
const { data, isLoading } =
|
|
888
|
+
const { data, isLoading } = _chunkFFRFKWTZcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
889
889
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
890
890
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
891
891
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
@@ -898,7 +898,7 @@ function RelatedContentSection({
|
|
|
898
898
|
});
|
|
899
899
|
}, []);
|
|
900
900
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
901
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
901
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunkFAUVDMH4cjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
902
902
|
[buildListUrl2, apiBaseUrl]
|
|
903
903
|
);
|
|
904
904
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _12 => _12.refs]))), () => ( []));
|
|
@@ -922,7 +922,7 @@ function RelatedContentSection({
|
|
|
922
922
|
}
|
|
923
923
|
if (!showWhenEmpty) return null;
|
|
924
924
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
925
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
925
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
926
926
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
927
927
|
] });
|
|
928
928
|
}
|
|
@@ -948,7 +948,7 @@ function RelatedContentSection({
|
|
|
948
948
|
);
|
|
949
949
|
}
|
|
950
950
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children:
|
|
951
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
952
952
|
orderedTypes.map((type, groupIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
953
953
|
ContentGroup,
|
|
954
954
|
{
|
|
@@ -979,24 +979,24 @@ function RelatedContentSectionSkeleton({
|
|
|
979
979
|
adminCampaignCard,
|
|
980
980
|
extras
|
|
981
981
|
}) {
|
|
982
|
-
const canonicalEntityType = entityType ?
|
|
982
|
+
const canonicalEntityType = entityType ? _chunkFAUVDMH4cjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
983
983
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
984
984
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) }),
|
|
985
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length:
|
|
985
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: _chunkFFRFKWTZcjs.GROUP_PAGE_SIZE }, (_, i) => (
|
|
986
986
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
987
987
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
988
988
|
)) })
|
|
989
989
|
] }) : null;
|
|
990
990
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ?
|
|
991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ? _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
992
992
|
unknownGroup,
|
|
993
993
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
994
994
|
const config = resolveGroupConfig(type);
|
|
995
|
-
const sameType = canonicalEntityType !== null &&
|
|
995
|
+
const sameType = canonicalEntityType !== null && _chunkFAUVDMH4cjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
996
996
|
const isList = config.layout === "list";
|
|
997
997
|
const count = Math.min(
|
|
998
|
-
|
|
999
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => (
|
|
998
|
+
_chunkFFRFKWTZcjs.GROUP_PAGE_SIZE,
|
|
999
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunkFFRFKWTZcjs.GROUP_PAGE_SIZE))
|
|
1000
1000
|
);
|
|
1001
1001
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1002
1002
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOUKKLSMEcjs = require('./chunk-OUKKLSME.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkXAJPXPQ6cjs = require('./chunk-XAJPXPQ6.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkOGUBSDU5cjs = require('./chunk-OGUBSDU5.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkPZVBTLLQcjs = require('./chunk-PZVBTLLQ.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkE56LN23Hcjs = require('./chunk-E56LN23H.cjs');
|
|
@@ -29,13 +29,13 @@ var _chunkE56LN23Hcjs = require('./chunk-E56LN23H.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkFCT7VKWGcjs = require('./chunk-FCT7VKWG.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkOEEFUB25cjs = require('./chunk-OEEFUB25.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 (!_chunkPZVBTLLQcjs.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, () => ( _chunkFCT7VKWGcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
363
|
+
const cleanInitialPath = _chunkFCT7VKWGcjs.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 = _chunkFCT7VKWGcjs.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(_chunkFCT7VKWGcjs.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(_chunkFCT7VKWGcjs.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(_chunkFCT7VKWGcjs.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 = _chunkFCT7VKWGcjs.findDocNodeByPath.call(void 0, _chunkFCT7VKWGcjs.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 = _chunkFCT7VKWGcjs.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 = _chunkFCT7VKWGcjs.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(_chunkFCT7VKWGcjs.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(_chunkFCT7VKWGcjs.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 : _chunkFCT7VKWGcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
602
602
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
603
603
|
_chunkOJZBZH56cjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkOJZBZH56cjs.HUB_HEADER_OFFSET_PX });
|
|
604
604
|
return;
|
|
@@ -662,15 +662,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
662
662
|
return docNavigation.register({
|
|
663
663
|
baseRoute: normalizedBaseRoute,
|
|
664
664
|
findNodeByPath: (path) => {
|
|
665
|
-
const clean =
|
|
666
|
-
return _nullishCoalesce(
|
|
665
|
+
const clean = _chunkFCT7VKWGcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
666
|
+
return _nullishCoalesce(_chunkFCT7VKWGcjs.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 = _chunkFCT7VKWGcjs.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 } = _chunkXAJPXPQ6cjs.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 = _chunkOGUBSDU5cjs.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([_chunkFCT7VKWGcjs.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, _chunkE56LN23Hcjs.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, _chunkPZVBTLLQcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
|
|
800
800
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
801
|
-
|
|
801
|
+
_chunkOGUBSDU5cjs.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
|
+
_chunkXAJPXPQ6cjs.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
|
+
_chunkXAJPXPQ6cjs.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
|
+
_chunkXAJPXPQ6cjs.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, _chunkPZVBTLLQcjs.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 = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
907
|
-
var MARKDOWN_SKELETON_P_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
906
|
+
var MARKDOWN_SKELETON_H2_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, _chunkOEEFUB25cjs.MARKDOWN_H2_CLASS, _chunkOEEFUB25cjs.TEXT_SIZE_PRESETS.default.h2);
|
|
907
|
+
var MARKDOWN_SKELETON_P_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, _chunkOEEFUB25cjs.MARKDOWN_PARAGRAPH_CLASS, _chunkOEEFUB25cjs.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, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the document", announce: region, className:
|
|
913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the document", announce: region, className: _chunkOEEFUB25cjs.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, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/3" }) }, i)
|
|
@@ -959,7 +959,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
959
959
|
] }),
|
|
960
960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
|
|
961
961
|
] }),
|
|
962
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPZVBTLLQcjs.EmbedLoadingSkeleton, { region: false })
|
|
963
963
|
] });
|
|
964
964
|
}
|
|
965
965
|
|
|
@@ -967,11 +967,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
967
967
|
|
|
968
968
|
var DEFAULT_TITLE = "Documents";
|
|
969
969
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
970
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
971
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
972
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
970
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOUKKLSMEcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
971
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOUKKLSMEcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
972
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPZVBTLLQcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
973
973
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
974
|
-
|
|
974
|
+
_chunkOUKKLSMEcjs.FileDownloadCard,
|
|
975
975
|
{
|
|
976
976
|
fileName: content.fileName,
|
|
977
977
|
mimeType: content.mimeType,
|
|
@@ -5,12 +5,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkPZVBTLLQcjs = require('./chunk-PZVBTLLQ.cjs');
|
|
9
9
|
|
|
10
10
|
// src/components/product-demo/screens/devices-view.tsx
|
|
11
11
|
var _jsxruntime = require('react/jsx-runtime');
|
|
12
12
|
var DEVICES_SEARCH_QUERY = "Windows";
|
|
13
|
-
var TOOLBAR = { ...
|
|
13
|
+
var TOOLBAR = { ..._chunkPZVBTLLQcjs.IDLE_DEVICES_TOOLBAR, searchValue: DEVICES_SEARCH_QUERY };
|
|
14
14
|
var NO_HEADER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
15
15
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
16
16
|
var NO_DEVICES = [];
|
|
@@ -22,7 +22,7 @@ function DevicesScreenView({
|
|
|
22
22
|
loading = false
|
|
23
23
|
}) {
|
|
24
24
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25
|
-
|
|
25
|
+
_chunkPZVBTLLQcjs.DevicesPanelView,
|
|
26
26
|
{
|
|
27
27
|
className: "p-[var(--spacing-system-l)]",
|
|
28
28
|
headerSlot: NO_HEADER,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZPVFFPQMcjs = require('./chunk-ZPVFFPQM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -118,7 +118,7 @@ function PersistentPaginationWrapper({
|
|
|
118
118
|
},
|
|
119
119
|
"aria-hidden": isPaginationDisabled,
|
|
120
120
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
121
|
-
|
|
121
|
+
_chunkZPVFFPQMcjs.UnifiedPagination,
|
|
122
122
|
{
|
|
123
123
|
currentPage: displayCurrentPage,
|
|
124
124
|
totalPages: displayTotalPages,
|