@flamingo-stack/openframe-frontend-core 0.0.751 → 0.0.752
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-OFO75R2O.cjs → chunk-35RU25PJ.cjs} +130 -130
- package/dist/{chunk-ALPRQ3ZX.cjs → chunk-3GG3QAPT.cjs} +15 -15
- package/dist/{chunk-NOUROZYH.cjs → chunk-4OTCQEP3.cjs} +24 -24
- package/dist/{chunk-XJ3J4UIS.cjs → chunk-4PEG4JTM.cjs} +19 -19
- package/dist/{chunk-3TELPOVH.cjs → chunk-7OEVVMAU.cjs} +2 -2
- package/dist/{chunk-5WC535NJ.cjs → chunk-7WEGXNNS.cjs} +40 -40
- package/dist/{chunk-C6LPOYDM.cjs → chunk-AG4HR6Z6.cjs} +8 -8
- package/dist/{chunk-TPH4SRR2.cjs → chunk-EM4OEWCM.cjs} +165 -165
- package/dist/{chunk-5P7WBA2U.cjs → chunk-EUQJ7QHW.cjs} +4 -4
- package/dist/{chunk-RVLQHSID.cjs → chunk-G44V3UGE.cjs} +101 -101
- package/dist/{chunk-2YXOD2KL.cjs → chunk-H3RYUTND.cjs} +5 -0
- package/dist/{chunk-ESRA7NUI.cjs → chunk-IPVJAML5.cjs} +90 -90
- package/dist/{chunk-QOONZMSQ.cjs → chunk-J5G4CF2V.cjs} +28 -28
- package/dist/{chunk-H52GKJ36.cjs → chunk-JI6NRWCC.cjs} +19 -19
- package/dist/{chunk-53I4YHRT.cjs → chunk-KBJSZFBZ.cjs} +3 -3
- package/dist/{chunk-4WNBVNGP.cjs → chunk-KUVYVAS2.cjs} +20 -20
- package/dist/{chunk-UGCRLRCT.cjs → chunk-NO5UJLLQ.cjs} +2 -5
- package/dist/{chunk-X4LAMJHD.cjs → chunk-OXCGQV6B.cjs} +113 -113
- package/dist/{chunk-FHT7SMA7.cjs → chunk-OXEAN3EQ.cjs} +47 -47
- package/dist/{chunk-CVBHB4OZ.cjs → chunk-P4ODFQGA.cjs} +7 -7
- package/dist/{chunk-MU7FFN6M.cjs → chunk-RDH63XXW.cjs} +83 -83
- package/dist/{chunk-CLAJIQ7E.cjs → chunk-U2AE4UG7.cjs} +19 -19
- package/dist/{chunk-LIGDPFDM.cjs → chunk-VD3XBUQR.cjs} +771 -771
- package/dist/{chunk-MJFTWHV6.cjs → chunk-WQCLN27R.cjs} +6 -6
- package/dist/{chunk-SDOCZTST.cjs → chunk-XADJG35G.cjs} +41 -41
- package/dist/{chunk-77IKUBSH.cjs → chunk-Y6PVZRYL.cjs} +12 -12
- package/dist/{chunk-DGEB5GUZ.cjs → chunk-ZVOXBSDP.cjs} +2 -2
- package/dist/{chunk-34TWK3JE.cjs → chunk-ZYRRRKSZ.cjs} +3 -3
- package/dist/{cloud-tenants-JDPC2DYF.cjs → cloud-tenants-WAOMZZQ2.cjs} +11 -11
- package/dist/components/case-studies/index.cjs +24 -24
- package/dist/components/chat/index.cjs +7 -7
- 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/help-center-pages/index.cjs +112 -112
- package/dist/components/index.cjs +61 -61
- package/dist/components/loading/loading-region.d.ts.map +1 -1
- package/dist/components/loading/loading-region.js +2 -5
- package/dist/components/loading/unified-skeleton.d.ts +2 -0
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +5 -0
- package/dist/components/meeting-scheduler/index.cjs +72 -72
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +12 -12
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +17 -17
- package/dist/components/ui/file-manager/index.cjs +30 -30
- package/dist/components/ui/index.cjs +11 -11
- package/dist/{devices-ADQWD37J.cjs → devices-VFEPXW2N.cjs} +12 -12
- package/dist/{embeddable-chat-7YF2JMPS.cjs → embeddable-chat-BYQBABDV.cjs} +73 -73
- package/dist/index.cjs +15 -15
- package/dist/{knowledge-TNS64EGK.cjs → knowledge-4TE7AWZX.cjs} +12 -12
- package/dist/{logs-754MDDE4.cjs → logs-3B2P3JXN.cjs} +19 -19
- package/dist/{policies-Q23DPIH6.cjs → policies-DVI6V22X.cjs} +15 -15
- package/dist/{remote-session-ZKP2W3IS.cjs → remote-session-57DGC4X3.cjs} +6 -6
- package/dist/{scripts-DCYLK2RZ.cjs → scripts-JJ2BVYQ5.cjs} +18 -18
- package/dist/{software-update-XCMGUIER.cjs → software-update-BN23RATE.cjs} +15 -15
- package/dist/{tickets-board-BNW4AYFL.cjs → tickets-board-EP6L3BSV.cjs} +7 -7
- package/package.json +1 -1
- package/src/components/loading/loading-region.tsx +4 -9
- package/src/components/loading/unified-skeleton.tsx +13 -0
|
@@ -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 _chunk7OEVVMAUcjs = require('./chunk-7OEVVMAU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ var _chunk3TELPOVHcjs = require('./chunk-3TELPOVH.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk4PEG4JTMcjs = require('./chunk-4PEG4JTM.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -39,13 +39,13 @@ var _chunkXJ3J4UIScjs = require('./chunk-XJ3J4UIS.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunk35RU25PJcjs = require('./chunk-35RU25PJ.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkNO5UJLLQcjs = require('./chunk-NO5UJLLQ.cjs');
|
|
49
49
|
|
|
50
50
|
// src/components/related-content/related-content-section.tsx
|
|
51
51
|
var _react = require('react');
|
|
@@ -443,13 +443,13 @@ function cardEntry(definition) {
|
|
|
443
443
|
}
|
|
444
444
|
function programEntry(configKey) {
|
|
445
445
|
return cardEntry({
|
|
446
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
446
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk35RU25PJcjs.ProgramCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
447
447
|
decode: decodeProgramRow,
|
|
448
448
|
render: (item, ctx) => {
|
|
449
449
|
const config = _optionalChain([ctx, 'access', _2 => _2.extras, 'optionalAccess', _3 => _3.programConfigs, 'optionalAccess', _4 => _4[configKey]]);
|
|
450
450
|
if (!config) return null;
|
|
451
451
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
452
|
-
|
|
452
|
+
_chunk35RU25PJcjs.ProgramCard,
|
|
453
453
|
{
|
|
454
454
|
config,
|
|
455
455
|
item,
|
|
@@ -466,10 +466,10 @@ function programEntry(configKey) {
|
|
|
466
466
|
}
|
|
467
467
|
function roadmapEntry(cardType) {
|
|
468
468
|
return cardEntry({
|
|
469
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
469
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk35RU25PJcjs.RoadmapCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
470
470
|
decode: decodeRoadmapRow,
|
|
471
471
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
472
|
-
|
|
472
|
+
_chunk35RU25PJcjs.RoadmapCard,
|
|
473
473
|
{
|
|
474
474
|
item,
|
|
475
475
|
href: ctx.href,
|
|
@@ -486,10 +486,10 @@ function roadmapEntry(cardType) {
|
|
|
486
486
|
}
|
|
487
487
|
var RELATED_CARD_REGISTRY = {
|
|
488
488
|
blog_post_existing: cardEntry({
|
|
489
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
489
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk35RU25PJcjs.BlogCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
490
490
|
decode: decodeBlogRow,
|
|
491
491
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
492
|
-
|
|
492
|
+
_chunk35RU25PJcjs.BlogCard,
|
|
493
493
|
{
|
|
494
494
|
post,
|
|
495
495
|
size: ctx.legacySize,
|
|
@@ -501,10 +501,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
501
501
|
)
|
|
502
502
|
}),
|
|
503
503
|
case_study: cardEntry({
|
|
504
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
504
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk35RU25PJcjs.CaseStudyCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
505
505
|
decode: decodeCaseStudyRow,
|
|
506
506
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
507
|
-
|
|
507
|
+
_chunk35RU25PJcjs.CaseStudyCard,
|
|
508
508
|
{
|
|
509
509
|
study,
|
|
510
510
|
size: ctx.legacySize,
|
|
@@ -516,10 +516,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
516
516
|
)
|
|
517
517
|
}),
|
|
518
518
|
customer_interview: cardEntry({
|
|
519
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
519
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk35RU25PJcjs.CustomerInterviewCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
520
520
|
decode: decodeCustomerInterviewRow,
|
|
521
521
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
522
|
-
|
|
522
|
+
_chunk35RU25PJcjs.CustomerInterviewCard,
|
|
523
523
|
{
|
|
524
524
|
interview,
|
|
525
525
|
size: ctx.legacySize,
|
|
@@ -537,13 +537,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
537
537
|
* record, and the three props the rail sets itself are read off it.
|
|
538
538
|
*/
|
|
539
539
|
product_release: cardEntry({
|
|
540
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
540
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk35RU25PJcjs.ProductReleaseCardSkeleton, { size: size === "sm" ? "sm" : "lg" }),
|
|
541
541
|
decode: asRecord,
|
|
542
542
|
render: (release, ctx) => {
|
|
543
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.buildProductReleaseCardProps]), () => (
|
|
543
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.buildProductReleaseCardProps]), () => ( _chunk35RU25PJcjs.buildProductReleaseCardProps));
|
|
544
544
|
const releaseProps = buildReleaseProps(release);
|
|
545
545
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
546
|
-
|
|
546
|
+
_chunk35RU25PJcjs.ProductReleaseCard,
|
|
547
547
|
{
|
|
548
548
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
549
549
|
title: str(release, "title"),
|
|
@@ -559,10 +559,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
559
559
|
webinar: programEntry("webinar"),
|
|
560
560
|
event: programEntry("event"),
|
|
561
561
|
investor_update: cardEntry({
|
|
562
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
562
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk35RU25PJcjs.InvestorUpdateCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
563
563
|
decode: decodeInvestorUpdateRow,
|
|
564
564
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
565
|
-
|
|
565
|
+
_chunk35RU25PJcjs.InvestorUpdateCard,
|
|
566
566
|
{
|
|
567
567
|
update,
|
|
568
568
|
size: ctx.legacySize,
|
|
@@ -577,10 +577,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
577
577
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
578
578
|
* section" rail, not this full-width row. */
|
|
579
579
|
onboarding_guide: cardEntry({
|
|
580
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
580
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk35RU25PJcjs.OnboardingGuideCardSkeleton, { size: size === "sm" ? "sm" : "catalog" }),
|
|
581
581
|
decode: decodeOnboardingGuideRow,
|
|
582
582
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
583
|
-
|
|
583
|
+
_chunk35RU25PJcjs.OnboardingGuideCard,
|
|
584
584
|
{
|
|
585
585
|
guide,
|
|
586
586
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -597,10 +597,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
597
597
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
598
598
|
* card in a dead <a>. */
|
|
599
599
|
what_i_shipped: cardEntry({
|
|
600
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
600
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4PEG4JTMcjs.WhatIShippedCardSkeleton, {}),
|
|
601
601
|
decode: decodeEmployeeEntryRow,
|
|
602
602
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
603
|
-
|
|
603
|
+
_chunk4PEG4JTMcjs.WhatIShippedCard,
|
|
604
604
|
{
|
|
605
605
|
entry,
|
|
606
606
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -610,10 +610,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
610
610
|
}),
|
|
611
611
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
612
612
|
how_i_work: cardEntry({
|
|
613
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
613
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4PEG4JTMcjs.HowIWorkCardSkeleton, {}),
|
|
614
614
|
decode: decodeEmployeeEntryRow,
|
|
615
615
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
616
|
-
|
|
616
|
+
_chunk4PEG4JTMcjs.HowIWorkCard,
|
|
617
617
|
{
|
|
618
618
|
entry,
|
|
619
619
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -623,10 +623,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
623
623
|
}),
|
|
624
624
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
625
625
|
ai_prompt: cardEntry({
|
|
626
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
626
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4PEG4JTMcjs.AiPromptCardSkeleton, {}),
|
|
627
627
|
decode: decodeEmployeeEntryRow,
|
|
628
628
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
629
|
-
|
|
629
|
+
_chunk4PEG4JTMcjs.AiPromptCard,
|
|
630
630
|
{
|
|
631
631
|
entry,
|
|
632
632
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -647,7 +647,7 @@ function DefaultLinkPropsProvider({
|
|
|
647
647
|
children
|
|
648
648
|
}) {
|
|
649
649
|
if (!href) return children(null);
|
|
650
|
-
const newTab =
|
|
650
|
+
const newTab = _chunk35RU25PJcjs.decideNewTab.call(void 0, { href, targetPlatform, currentSource: "" });
|
|
651
651
|
return children(newTab ? { href, target: "_blank", rel: "noopener noreferrer" } : { href });
|
|
652
652
|
}
|
|
653
653
|
function defaultResolveHref(ref) {
|
|
@@ -705,9 +705,9 @@ function useGroupItems(type, refs, buildUrl) {
|
|
|
705
705
|
const url = ids.length > 0 ? buildUrl(type, ids) : null;
|
|
706
706
|
const [pages, setPages] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
707
707
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
708
|
-
const { data, dataUrl, error } =
|
|
708
|
+
const { data, dataUrl, error } = _chunk4PEG4JTMcjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
709
709
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
710
|
-
setPages(new Map(pages).set(dataUrl,
|
|
710
|
+
setPages(new Map(pages).set(dataUrl, _chunk35RU25PJcjs.extractItems.call(void 0, data)));
|
|
711
711
|
}
|
|
712
712
|
if (url === null) return { items: null, isLoading: false };
|
|
713
713
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -716,7 +716,7 @@ function gridClassFor(columns) {
|
|
|
716
716
|
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";
|
|
717
717
|
}
|
|
718
718
|
function resolveGroupConfig(type) {
|
|
719
|
-
return _nullishCoalesce(
|
|
719
|
+
return _nullishCoalesce(_chunk4PEG4JTMcjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
720
720
|
label: type,
|
|
721
721
|
order: 999,
|
|
722
722
|
layout: "grid",
|
|
@@ -748,10 +748,10 @@ function ContentGroup({
|
|
|
748
748
|
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, GROUP_PAGE_SIZE);
|
|
749
749
|
const pageRefs = refs.slice((page - 1) * GROUP_PAGE_SIZE, page * GROUP_PAGE_SIZE);
|
|
750
750
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl);
|
|
751
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
751
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OEVVMAUcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
752
752
|
if (isLoading) {
|
|
753
753
|
const skeletons = pageRefs.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: renderSkeletonForType(type, cardSize, adminCampaignCard) }, r.id));
|
|
754
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
754
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNO5UJLLQcjs.LoadingRegion, { label: "Loading related content", className: "space-y-4", children: [
|
|
755
755
|
heading,
|
|
756
756
|
isListLayout ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: skeletons }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: skeletons }),
|
|
757
757
|
groupPagination
|
|
@@ -759,7 +759,7 @@ function ContentGroup({
|
|
|
759
759
|
}
|
|
760
760
|
if (!items) return null;
|
|
761
761
|
const rowKey = (it) => {
|
|
762
|
-
const extracted =
|
|
762
|
+
const extracted = _chunk35RU25PJcjs.extractItemId.call(void 0, type, it);
|
|
763
763
|
if (extracted !== null) return extracted;
|
|
764
764
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
765
765
|
};
|
|
@@ -827,11 +827,11 @@ function RelatedContentSection({
|
|
|
827
827
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
828
828
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
829
829
|
};
|
|
830
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
830
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunk4PEG4JTMcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
831
831
|
apiBaseUrl,
|
|
832
832
|
extraParams: { authorId, ...typeFilterParams }
|
|
833
833
|
}) : null;
|
|
834
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
834
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunk4PEG4JTMcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
835
835
|
apiBaseUrl,
|
|
836
836
|
entityType,
|
|
837
837
|
entityId,
|
|
@@ -848,9 +848,9 @@ function RelatedContentSection({
|
|
|
848
848
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
849
849
|
[initialItems, suggestionsDisabled]
|
|
850
850
|
);
|
|
851
|
-
const { data, isLoading } =
|
|
851
|
+
const { data, isLoading } = _chunk4PEG4JTMcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
852
852
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
853
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
853
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunk35RU25PJcjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
854
854
|
[buildListUrl2, apiBaseUrl]
|
|
855
855
|
);
|
|
856
856
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _10 => _10.refs]))), () => ( []));
|
|
@@ -860,13 +860,13 @@ function RelatedContentSection({
|
|
|
860
860
|
if (!showWhenEmpty) return null;
|
|
861
861
|
if (isLoading) {
|
|
862
862
|
const skeletonType = _nullishCoalesce(_nullishCoalesce(_optionalChain([includeTypes, 'optionalAccess', _11 => _11[0]]), () => ( entityType)), () => ( "blog_post_existing"));
|
|
863
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
864
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children:
|
|
863
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNO5UJLLQcjs.LoadingRegion, { label: "Loading related content", className: "space-y-8", children: [
|
|
864
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children: _chunk35RU25PJcjs.accentSentenceMarks.call(void 0, title) }),
|
|
865
865
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: renderSkeletonForType(skeletonType, "default", adminCampaignCard) }, i)) })
|
|
866
866
|
] });
|
|
867
867
|
}
|
|
868
868
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
869
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
869
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunk35RU25PJcjs.accentSentenceMarks.call(void 0, title) }),
|
|
870
870
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
871
871
|
] });
|
|
872
872
|
}
|
|
@@ -875,16 +875,16 @@ function RelatedContentSection({
|
|
|
875
875
|
if (!grouped[ref.type]) grouped[ref.type] = [];
|
|
876
876
|
grouped[ref.type].push(ref);
|
|
877
877
|
}
|
|
878
|
-
let orderedTypes =
|
|
878
|
+
let orderedTypes = _chunk4PEG4JTMcjs.orderContentRefTypes.call(void 0, Object.keys(grouped));
|
|
879
879
|
if (entityType) {
|
|
880
|
-
const canonicalEntityType =
|
|
881
|
-
const sameType = orderedTypes.filter((t) =>
|
|
880
|
+
const canonicalEntityType = _chunk35RU25PJcjs.canonicalContentRefType.call(void 0, entityType);
|
|
881
|
+
const sameType = orderedTypes.filter((t) => _chunk35RU25PJcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
882
882
|
if (sameType.length > 0) {
|
|
883
|
-
orderedTypes = [...sameType, ...orderedTypes.filter((t) =>
|
|
883
|
+
orderedTypes = [...sameType, ...orderedTypes.filter((t) => _chunk35RU25PJcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children:
|
|
887
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children: _chunk35RU25PJcjs.accentSentenceMarks.call(void 0, title) }),
|
|
888
888
|
orderedTypes.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
889
889
|
ContentGroup,
|
|
890
890
|
{
|
|
@@ -896,7 +896,7 @@ function RelatedContentSection({
|
|
|
896
896
|
LinkProvider,
|
|
897
897
|
extras,
|
|
898
898
|
adminCampaignCard,
|
|
899
|
-
heading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children:
|
|
899
|
+
heading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: _chunk4PEG4JTMcjs.getContentRefLabelOrTitleCase.call(void 0, type) })
|
|
900
900
|
},
|
|
901
901
|
type
|
|
902
902
|
))
|
|
@@ -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 _chunkOXCGQV6Bcjs = require('./chunk-OXCGQV6B.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkEM4OEWCMcjs = require('./chunk-EM4OEWCM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@ var _chunkCSJO7ZGNcjs = require('./chunk-CSJO7ZGN.cjs');
|
|
|
20
20
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkH3RYUTNDcjs = require('./chunk-H3RYUTND.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
@@ -50,7 +50,7 @@ function HorizontalSectionNav({
|
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { ref: navRef, "aria-label": label, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex h-14 items-stretch gap-6 bg-ods-bg", className), children: [
|
|
51
51
|
brand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden shrink-0 items-center gap-2.5 border-r border-ods-border pr-6 text-ods-text-primary text-h4 content-lg:flex", children: brand }),
|
|
52
52
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53
|
-
|
|
53
|
+
_chunkEM4OEWCMcjs.ScrollShadow,
|
|
54
54
|
{
|
|
55
55
|
axis: "horizontal",
|
|
56
56
|
className: "min-w-0 flex-1",
|
|
@@ -335,7 +335,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
335
335
|
// src/components/navigation/multi-level-navigation.tsx
|
|
336
336
|
var _lucidereact = require('lucide-react');
|
|
337
337
|
|
|
338
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
338
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunkOXCGQV6Bcjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
339
339
|
function isNodeVisuallySelected(node, selectedPath, folderIndexFile = DEFAULT_FOLDER_INDEX_FILE2) {
|
|
340
340
|
const FOLDER_INDEX_FILE = folderIndexFile.toLowerCase();
|
|
341
341
|
if (selectedPath === node.path) {
|
|
@@ -362,7 +362,7 @@ function MultiLevelNavigation({
|
|
|
362
362
|
folderIndexFile = DEFAULT_FOLDER_INDEX_FILE2
|
|
363
363
|
}) {
|
|
364
364
|
if (isLoading) {
|
|
365
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-2", className), children: [1, 2, 3, 4].map((i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
365
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-2", className), children: [1, 2, 3, 4].map((i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-12 rounded-lg p-3" }, i)) });
|
|
366
366
|
}
|
|
367
367
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-2", className), role: "list", "aria-label": "Navigation list", children: nodes.map((node) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
368
368
|
NavigationItem,
|
|
@@ -465,7 +465,7 @@ function MobileNavigationDropdown({
|
|
|
465
465
|
folderIndexFile = DEFAULT_FOLDER_INDEX_FILE2
|
|
466
466
|
}) {
|
|
467
467
|
if (isLoading) {
|
|
468
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-2", className), children: [1, 2, 3].map((i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
468
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-2", className), children: [1, 2, 3].map((i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-10 rounded-lg p-3" }, i)) });
|
|
469
469
|
}
|
|
470
470
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-2", className), children: nodes.map((node) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
471
471
|
MobileNavigationItem,
|