@flamingo-stack/openframe-frontend-core 0.0.738 → 0.0.739
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-FTTLBMHU.cjs → chunk-7ZFCR7UY.cjs} +2 -2
- package/dist/{chunk-EG545WGV.cjs → chunk-B3XBJCOD.cjs} +9 -9
- package/dist/{chunk-BRKTN6UR.cjs → chunk-BV5WZVOP.cjs} +199 -199
- package/dist/{chunk-GQZOUVXC.cjs → chunk-CUDTMCXK.cjs} +34 -34
- package/dist/{chunk-7LTG6CJ3.cjs → chunk-DSVNFRY5.cjs} +35 -35
- package/dist/{chunk-XGHZIYQN.cjs → chunk-DTLHY2ZF.cjs} +19 -19
- package/dist/{chunk-66R4NGGU.cjs → chunk-EGN4I5Q7.cjs} +76 -76
- package/dist/{chunk-2UZS3ZH7.cjs → chunk-ENCAIAMY.cjs} +5 -5
- package/dist/{chunk-5BKAUXLR.cjs → chunk-FL6UO7IR.cjs} +4 -4
- package/dist/{chunk-N2CISBJJ.cjs → chunk-GABDE3FM.cjs} +10 -10
- package/dist/{chunk-MYBTNOS6.cjs → chunk-GSWQZX23.cjs} +2 -2
- package/dist/{chunk-JZNESLJX.cjs → chunk-HF7Z2E4W.cjs} +2 -2
- package/dist/chunk-HOTM4UM6.cjs +84 -0
- package/dist/{chunk-EAY6ZUES.cjs → chunk-I5MSCD57.cjs} +2 -2
- package/dist/{chunk-3BBOAMWJ.cjs → chunk-KLI4OSRA.cjs} +2 -2
- package/dist/{chunk-N5NDPULP.cjs → chunk-NX6JQT25.cjs} +6 -6
- package/dist/{chunk-FG7HTGT3.cjs → chunk-O67V3HJR.cjs} +14 -14
- package/dist/{chunk-UMO55S55.cjs → chunk-PQ2M7P2U.cjs} +5 -5
- package/dist/{chunk-R36NZTUJ.cjs → chunk-Q7GG3WC5.cjs} +24 -24
- package/dist/{chunk-4YQNJJWM.cjs → chunk-RGFT3P3L.cjs} +90 -90
- package/dist/{chunk-4T6ETBL4.cjs → chunk-S2CA5WE4.cjs} +82 -82
- package/dist/{chunk-U5BRSRXA.cjs → chunk-SB4VWA5V.cjs} +644 -621
- package/dist/{chunk-MLKL2YVE.cjs → chunk-SFY4UYPY.cjs} +44 -44
- package/dist/{chunk-MTNNYSP3.cjs → chunk-TF7J6VXG.cjs} +20 -20
- package/dist/{chunk-KQ4IKALJ.cjs → chunk-UI3HROSI.cjs} +35 -35
- package/dist/{chunk-2SBHPHLS.cjs → chunk-UXFJXIUT.cjs} +4 -4
- package/dist/{chunk-XMNLPQ75.cjs → chunk-UYP3G6PB.cjs} +12 -12
- package/dist/{chunk-HNYLTEIS.cjs → chunk-V2ZFH42N.cjs} +13 -13
- package/dist/{chunk-GAF4L3JW.cjs → chunk-WBANGORJ.cjs} +3 -3
- package/dist/{chunk-7GETNFZ5.cjs → chunk-WMKNZI4G.cjs} +38 -38
- package/dist/{chunk-LY5VOKV7.cjs → chunk-YRE3O65E.cjs} +12 -12
- package/dist/{chunk-7F3V45AH.cjs → chunk-YXKB5WRE.cjs} +66 -75
- package/dist/{cloud-tenants-FTQGWXHS.cjs → cloud-tenants-QSFSO3PA.cjs} +15 -15
- package/dist/components/case-studies/index.cjs +27 -27
- package/dist/components/chat/index.cjs +11 -11
- package/dist/components/contact/index.cjs +16 -16
- package/dist/components/docs/index.cjs +19 -19
- package/dist/components/embeds/index.cjs +16 -16
- package/dist/components/faq/index.cjs +17 -17
- package/dist/components/features/index.cjs +15 -15
- package/dist/components/features/walkthrough-video.d.ts +3 -0
- package/dist/components/features/walkthrough-video.d.ts.map +1 -1
- package/dist/components/features/walkthrough-video.js +36 -13
- package/dist/components/help-center-pages/index.cjs +118 -118
- package/dist/components/index.cjs +80 -80
- package/dist/components/meeting-scheduler/index.cjs +57 -57
- package/dist/components/navigation/index.cjs +18 -18
- package/dist/components/onboarding-guides/index.cjs +18 -18
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +21 -21
- package/dist/components/ui/index.cjs +15 -15
- package/dist/{devices-MPI5HUQS.cjs → devices-C7XLWJFC.cjs} +16 -16
- package/dist/embed-shims/index.cjs +2 -2
- package/dist/embed-shims/next-image.cjs +2 -2
- package/dist/embed-shims/next-image.d.ts.map +1 -1
- package/dist/embed-shims/next-image.js +6 -2
- package/dist/{embeddable-chat-7WLUDBGK.cjs → embeddable-chat-6JKKFQEB.cjs} +82 -82
- package/dist/hooks/index.cjs +3 -3
- package/dist/index.cjs +22 -21
- package/dist/{knowledge-BS663XXL.cjs → knowledge-3QKWTOE7.cjs} +16 -16
- package/dist/{logs-KS2A2VN5.cjs → logs-JXD75NR4.cjs} +23 -23
- package/dist/{policies-H3OK6H4Q.cjs → policies-ZPN53PFQ.cjs} +19 -19
- package/dist/{remote-session-EHKXU4HI.cjs → remote-session-DNFZ5OLY.cjs} +8 -8
- package/dist/{software-update-HMMMWIL3.cjs → software-update-CRSIBS3K.cjs} +19 -19
- package/dist/{tickets-board-3YJKOOZE.cjs → tickets-board-CKZRB6YV.cjs} +9 -9
- package/package.json +1 -1
- package/src/components/features/walkthrough-video.tsx +59 -18
- package/src/components/ui/dropdown-button.tsx +1 -1
- package/src/embed-shims/next-image.tsx +15 -4
- package/dist/chunk-UR4K2NSL.cjs +0 -69
|
@@ -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 _chunkKLI4OSRAcjs = require('./chunk-KLI4OSRA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ var _chunk3BBOAMWJcjs = require('./chunk-3BBOAMWJ.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkYRE3O65Ecjs = require('./chunk-YRE3O65E.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -39,7 +39,7 @@ var _chunkLY5VOKV7cjs = require('./chunk-LY5VOKV7.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkYXKB5WREcjs = require('./chunk-YXKB5WRE.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
@@ -440,13 +440,13 @@ function cardEntry(definition) {
|
|
|
440
440
|
}
|
|
441
441
|
function programEntry(configKey) {
|
|
442
442
|
return cardEntry({
|
|
443
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
443
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.ProgramCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
444
444
|
decode: decodeProgramRow,
|
|
445
445
|
render: (item, ctx) => {
|
|
446
446
|
const config = _optionalChain([ctx, 'access', _2 => _2.extras, 'optionalAccess', _3 => _3.programConfigs, 'optionalAccess', _4 => _4[configKey]]);
|
|
447
447
|
if (!config) return null;
|
|
448
448
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
449
|
-
|
|
449
|
+
_chunkYXKB5WREcjs.ProgramCard,
|
|
450
450
|
{
|
|
451
451
|
config,
|
|
452
452
|
item,
|
|
@@ -463,10 +463,10 @@ function programEntry(configKey) {
|
|
|
463
463
|
}
|
|
464
464
|
function roadmapEntry(cardType) {
|
|
465
465
|
return cardEntry({
|
|
466
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
466
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.RoadmapCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
467
467
|
decode: decodeRoadmapRow,
|
|
468
468
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
469
|
-
|
|
469
|
+
_chunkYXKB5WREcjs.RoadmapCard,
|
|
470
470
|
{
|
|
471
471
|
item,
|
|
472
472
|
href: ctx.href,
|
|
@@ -483,10 +483,10 @@ function roadmapEntry(cardType) {
|
|
|
483
483
|
}
|
|
484
484
|
var RELATED_CARD_REGISTRY = {
|
|
485
485
|
blog_post_existing: cardEntry({
|
|
486
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
486
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.BlogCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
487
487
|
decode: decodeBlogRow,
|
|
488
488
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
489
|
-
|
|
489
|
+
_chunkYXKB5WREcjs.BlogCard,
|
|
490
490
|
{
|
|
491
491
|
post,
|
|
492
492
|
size: ctx.legacySize,
|
|
@@ -498,10 +498,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
498
498
|
)
|
|
499
499
|
}),
|
|
500
500
|
case_study: cardEntry({
|
|
501
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
501
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.CaseStudyCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
502
502
|
decode: decodeCaseStudyRow,
|
|
503
503
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
504
|
-
|
|
504
|
+
_chunkYXKB5WREcjs.CaseStudyCard,
|
|
505
505
|
{
|
|
506
506
|
study,
|
|
507
507
|
size: ctx.legacySize,
|
|
@@ -513,10 +513,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
513
513
|
)
|
|
514
514
|
}),
|
|
515
515
|
customer_interview: cardEntry({
|
|
516
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
516
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.CustomerInterviewCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
517
517
|
decode: decodeCustomerInterviewRow,
|
|
518
518
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
519
|
-
|
|
519
|
+
_chunkYXKB5WREcjs.CustomerInterviewCard,
|
|
520
520
|
{
|
|
521
521
|
interview,
|
|
522
522
|
size: ctx.legacySize,
|
|
@@ -534,13 +534,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
534
534
|
* record, and the three props the rail sets itself are read off it.
|
|
535
535
|
*/
|
|
536
536
|
product_release: cardEntry({
|
|
537
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
537
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.ProductReleaseCardSkeleton, { size: size === "sm" ? "sm" : "lg" }),
|
|
538
538
|
decode: asRecord,
|
|
539
539
|
render: (release, ctx) => {
|
|
540
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.buildProductReleaseCardProps]), () => (
|
|
540
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.buildProductReleaseCardProps]), () => ( _chunkYXKB5WREcjs.buildProductReleaseCardProps));
|
|
541
541
|
const releaseProps = buildReleaseProps(release);
|
|
542
542
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
543
|
-
|
|
543
|
+
_chunkYXKB5WREcjs.ProductReleaseCard,
|
|
544
544
|
{
|
|
545
545
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
546
546
|
title: str(release, "title"),
|
|
@@ -556,10 +556,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
556
556
|
webinar: programEntry("webinar"),
|
|
557
557
|
event: programEntry("event"),
|
|
558
558
|
investor_update: cardEntry({
|
|
559
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
559
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.InvestorUpdateCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
560
560
|
decode: decodeInvestorUpdateRow,
|
|
561
561
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
562
|
-
|
|
562
|
+
_chunkYXKB5WREcjs.InvestorUpdateCard,
|
|
563
563
|
{
|
|
564
564
|
update,
|
|
565
565
|
size: ctx.legacySize,
|
|
@@ -574,10 +574,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
574
574
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
575
575
|
* section" rail, not this full-width row. */
|
|
576
576
|
onboarding_guide: cardEntry({
|
|
577
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
577
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.OnboardingGuideCardSkeleton, { size: size === "sm" ? "sm" : "catalog" }),
|
|
578
578
|
decode: decodeOnboardingGuideRow,
|
|
579
579
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
580
|
-
|
|
580
|
+
_chunkYXKB5WREcjs.OnboardingGuideCard,
|
|
581
581
|
{
|
|
582
582
|
guide,
|
|
583
583
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -594,10 +594,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
594
594
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
595
595
|
* card in a dead <a>. */
|
|
596
596
|
what_i_shipped: cardEntry({
|
|
597
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
597
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRE3O65Ecjs.WhatIShippedCardSkeleton, {}),
|
|
598
598
|
decode: decodeEmployeeEntryRow,
|
|
599
599
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
600
|
-
|
|
600
|
+
_chunkYRE3O65Ecjs.WhatIShippedCard,
|
|
601
601
|
{
|
|
602
602
|
entry,
|
|
603
603
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -607,10 +607,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
607
607
|
}),
|
|
608
608
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
609
609
|
how_i_work: cardEntry({
|
|
610
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
610
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRE3O65Ecjs.HowIWorkCardSkeleton, {}),
|
|
611
611
|
decode: decodeEmployeeEntryRow,
|
|
612
612
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
613
|
-
|
|
613
|
+
_chunkYRE3O65Ecjs.HowIWorkCard,
|
|
614
614
|
{
|
|
615
615
|
entry,
|
|
616
616
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -620,10 +620,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
620
620
|
}),
|
|
621
621
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
622
622
|
ai_prompt: cardEntry({
|
|
623
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
623
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRE3O65Ecjs.AiPromptCardSkeleton, {}),
|
|
624
624
|
decode: decodeEmployeeEntryRow,
|
|
625
625
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
626
|
-
|
|
626
|
+
_chunkYRE3O65Ecjs.AiPromptCard,
|
|
627
627
|
{
|
|
628
628
|
entry,
|
|
629
629
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -644,7 +644,7 @@ function DefaultLinkPropsProvider({
|
|
|
644
644
|
children
|
|
645
645
|
}) {
|
|
646
646
|
if (!href) return children(null);
|
|
647
|
-
const newTab =
|
|
647
|
+
const newTab = _chunkYXKB5WREcjs.decideNewTab.call(void 0, { href, targetPlatform, currentSource: "" });
|
|
648
648
|
return children(newTab ? { href, target: "_blank", rel: "noopener noreferrer" } : { href });
|
|
649
649
|
}
|
|
650
650
|
function defaultResolveHref(ref) {
|
|
@@ -702,9 +702,9 @@ function useGroupItems(type, refs, buildUrl) {
|
|
|
702
702
|
const url = ids.length > 0 ? buildUrl(type, ids) : null;
|
|
703
703
|
const [pages, setPages] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
704
704
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
705
|
-
const { data, dataUrl, error } =
|
|
705
|
+
const { data, dataUrl, error } = _chunkYRE3O65Ecjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
706
706
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
707
|
-
setPages(new Map(pages).set(dataUrl,
|
|
707
|
+
setPages(new Map(pages).set(dataUrl, _chunkYXKB5WREcjs.extractItems.call(void 0, data)));
|
|
708
708
|
}
|
|
709
709
|
if (url === null) return { items: null, isLoading: false };
|
|
710
710
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -713,7 +713,7 @@ function gridClassFor(columns) {
|
|
|
713
713
|
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";
|
|
714
714
|
}
|
|
715
715
|
function resolveGroupConfig(type) {
|
|
716
|
-
return _nullishCoalesce(
|
|
716
|
+
return _nullishCoalesce(_chunkYRE3O65Ecjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
717
717
|
label: type,
|
|
718
718
|
order: 999,
|
|
719
719
|
layout: "grid",
|
|
@@ -745,7 +745,7 @@ function ContentGroup({
|
|
|
745
745
|
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, GROUP_PAGE_SIZE);
|
|
746
746
|
const pageRefs = refs.slice((page - 1) * GROUP_PAGE_SIZE, page * GROUP_PAGE_SIZE);
|
|
747
747
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl);
|
|
748
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
748
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKLI4OSRAcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
749
749
|
if (isLoading) {
|
|
750
750
|
const skeletons = pageRefs.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: renderSkeletonForType(type, cardSize, adminCampaignCard) }, r.id));
|
|
751
751
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
@@ -756,7 +756,7 @@ function ContentGroup({
|
|
|
756
756
|
}
|
|
757
757
|
if (!items) return null;
|
|
758
758
|
const rowKey = (it) => {
|
|
759
|
-
const extracted =
|
|
759
|
+
const extracted = _chunkYXKB5WREcjs.extractItemId.call(void 0, type, it);
|
|
760
760
|
if (extracted !== null) return extracted;
|
|
761
761
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
762
762
|
};
|
|
@@ -824,11 +824,11 @@ function RelatedContentSection({
|
|
|
824
824
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
825
825
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
826
826
|
};
|
|
827
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
827
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkYRE3O65Ecjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
828
828
|
apiBaseUrl,
|
|
829
829
|
extraParams: { authorId, ...typeFilterParams }
|
|
830
830
|
}) : null;
|
|
831
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
831
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkYRE3O65Ecjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
832
832
|
apiBaseUrl,
|
|
833
833
|
entityType,
|
|
834
834
|
entityId,
|
|
@@ -845,9 +845,9 @@ function RelatedContentSection({
|
|
|
845
845
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
846
846
|
[initialItems, suggestionsDisabled]
|
|
847
847
|
);
|
|
848
|
-
const { data, isLoading } =
|
|
848
|
+
const { data, isLoading } = _chunkYRE3O65Ecjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
849
849
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
850
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
850
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunkYXKB5WREcjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
851
851
|
[buildListUrl2, apiBaseUrl]
|
|
852
852
|
);
|
|
853
853
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _10 => _10.refs]))), () => ( []));
|
|
@@ -858,12 +858,12 @@ function RelatedContentSection({
|
|
|
858
858
|
if (isLoading) {
|
|
859
859
|
const skeletonType = _nullishCoalesce(_nullishCoalesce(_optionalChain([includeTypes, 'optionalAccess', _11 => _11[0]]), () => ( entityType)), () => ( "blog_post_existing"));
|
|
860
860
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
861
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children:
|
|
861
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
862
862
|
/* @__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)) })
|
|
863
863
|
] });
|
|
864
864
|
}
|
|
865
865
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
866
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
866
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
867
867
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
868
868
|
] });
|
|
869
869
|
}
|
|
@@ -872,16 +872,16 @@ function RelatedContentSection({
|
|
|
872
872
|
if (!grouped[ref.type]) grouped[ref.type] = [];
|
|
873
873
|
grouped[ref.type].push(ref);
|
|
874
874
|
}
|
|
875
|
-
let orderedTypes =
|
|
875
|
+
let orderedTypes = _chunkYRE3O65Ecjs.orderContentRefTypes.call(void 0, Object.keys(grouped));
|
|
876
876
|
if (entityType) {
|
|
877
|
-
const canonicalEntityType =
|
|
878
|
-
const sameType = orderedTypes.filter((t) =>
|
|
877
|
+
const canonicalEntityType = _chunkYXKB5WREcjs.canonicalContentRefType.call(void 0, entityType);
|
|
878
|
+
const sameType = orderedTypes.filter((t) => _chunkYXKB5WREcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
879
879
|
if (sameType.length > 0) {
|
|
880
|
-
orderedTypes = [...sameType, ...orderedTypes.filter((t) =>
|
|
880
|
+
orderedTypes = [...sameType, ...orderedTypes.filter((t) => _chunkYXKB5WREcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
884
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children:
|
|
884
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
885
885
|
orderedTypes.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
886
886
|
ContentGroup,
|
|
887
887
|
{
|
|
@@ -893,7 +893,7 @@ function RelatedContentSection({
|
|
|
893
893
|
LinkProvider,
|
|
894
894
|
extras,
|
|
895
895
|
adminCampaignCard,
|
|
896
|
-
heading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children:
|
|
896
|
+
heading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: _chunkYRE3O65Ecjs.getContentRefLabelOrTitleCase.call(void 0, type) })
|
|
897
897
|
},
|
|
898
898
|
type
|
|
899
899
|
))
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkWBANGORJcjs = require('./chunk-WBANGORJ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkV2ZFH42Ncjs = require('./chunk-V2ZFH42N.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -14,13 +14,13 @@ var _chunkHEVW75L3cjs = require('./chunk-HEVW75L3.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkSB4VWA5Vcjs = require('./chunk-SB4VWA5V.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkDSVNFRY5cjs = require('./chunk-DSVNFRY5.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkS2CA5WE4cjs = require('./chunk-S2CA5WE4.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -29,10 +29,10 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkYXKB5WREcjs = require('./chunk-YXKB5WRE.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkGSWQZX23cjs = require('./chunk-GSWQZX23.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -45,7 +45,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
45
45
|
function ListEmptyState({ isFiltered, filtered, onClearFilters, empty }) {
|
|
46
46
|
if (isFiltered) {
|
|
47
47
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48
|
-
|
|
48
|
+
_chunkWBANGORJcjs.EmptyState,
|
|
49
49
|
{
|
|
50
50
|
type: "search",
|
|
51
51
|
title: filtered.title,
|
|
@@ -58,7 +58,7 @@ function ListEmptyState({ isFiltered, filtered, onClearFilters, empty }) {
|
|
|
58
58
|
}
|
|
59
59
|
const hasCta = Boolean(empty.ctaText && (empty.onCtaClick || empty.ctaHref));
|
|
60
60
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
61
|
-
|
|
61
|
+
_chunkWBANGORJcjs.EmptyState,
|
|
62
62
|
{
|
|
63
63
|
type: "generic",
|
|
64
64
|
title: empty.title,
|
|
@@ -75,7 +75,7 @@ function ListEmptyState({ isFiltered, filtered, onClearFilters, empty }) {
|
|
|
75
75
|
var _react = require('react');
|
|
76
76
|
|
|
77
77
|
function DevSectionView({ sectionKey, hero, preControls, children, showHeading = true }) {
|
|
78
|
-
const section =
|
|
78
|
+
const section = _chunkS2CA5WE4cjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
79
79
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
80
80
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
81
81
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
@@ -126,7 +126,7 @@ function DevSectionView({ sectionKey, hero, preControls, children, showHeading =
|
|
|
126
126
|
preControls,
|
|
127
127
|
(search || filter) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
128
128
|
search && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
129
|
-
|
|
129
|
+
_chunkSB4VWA5Vcjs.SearchInput,
|
|
130
130
|
{
|
|
131
131
|
showDropdown: false,
|
|
132
132
|
placeholder: search.placeholder,
|
|
@@ -136,7 +136,7 @@ function DevSectionView({ sectionKey, hero, preControls, children, showHeading =
|
|
|
136
136
|
}
|
|
137
137
|
),
|
|
138
138
|
filter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
139
|
-
|
|
139
|
+
_chunkSB4VWA5Vcjs.StatusFilterComponent,
|
|
140
140
|
{
|
|
141
141
|
selectedStatus: currentFilterValue,
|
|
142
142
|
onStatusChange: handleFilterChange,
|
|
@@ -161,7 +161,7 @@ function DevSectionPage({
|
|
|
161
161
|
shell = true
|
|
162
162
|
}) {
|
|
163
163
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
164
|
-
const section =
|
|
164
|
+
const section = _chunkS2CA5WE4cjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
165
165
|
const backCfg = backButton === false ? void 0 : {
|
|
166
166
|
label: _nullishCoalesce((backButton ? backButton.label : void 0), () => ( "Back to home")),
|
|
167
167
|
onClick: () => router.push(_nullishCoalesce((backButton ? backButton.href : void 0), () => ( "/")))
|
|
@@ -174,7 +174,7 @@ function DevSectionPage({
|
|
|
174
174
|
// duplicate title. (The hero icon is intentionally dropped: TitleBlock is
|
|
175
175
|
// frozen and renders title-only.)
|
|
176
176
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
177
|
-
|
|
177
|
+
_chunkDSVNFRY5cjs.PageLayout,
|
|
178
178
|
{
|
|
179
179
|
title: _nullishCoalesce(title, () => ( section.hero.title)),
|
|
180
180
|
subtitle: _nullishCoalesce(subtitle, () => ( section.hero.description)),
|
|
@@ -183,12 +183,12 @@ function DevSectionPage({
|
|
|
183
183
|
backButton: backCfg,
|
|
184
184
|
children: [
|
|
185
185
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DevSectionView, { sectionKey, showHeading: false, preControls, children }),
|
|
186
|
-
faq && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
186
|
+
faq && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2ZFH42Ncjs.FaqSection, { ..._chunkV2ZFH42Ncjs.pageFaqProps.call(void 0, faq) })
|
|
187
187
|
]
|
|
188
188
|
}
|
|
189
189
|
)
|
|
190
190
|
);
|
|
191
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
191
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSB4VWA5Vcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
// src/components/shared/dev-section/dev-card-row.tsx
|
|
@@ -248,7 +248,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
|
|
|
248
248
|
const taskType = item.taskType;
|
|
249
249
|
const typeBadgeLabel = _chunkHEVW75L3cjs.TASK_TYPE_LABELS[taskType] || "TASK";
|
|
250
250
|
const typeBadgeTextColor = _chunkHEVW75L3cjs.TASK_TYPE_TEXT_COLORS[taskType] || "";
|
|
251
|
-
const statusBadgeScheme =
|
|
251
|
+
const statusBadgeScheme = _chunkYXKB5WREcjs.getStatusColorScheme.call(void 0, item.status);
|
|
252
252
|
const relativeTime = getRelativeTime(item.dateUpdated);
|
|
253
253
|
const subtitle = `ACTIVE ${relativeTime}${item.listNames.length > 0 ? `, ${item.listNames.join(", ")}` : ""}, ${item.id}`;
|
|
254
254
|
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col items-start justify-between gap-[12px] content-md:flex-row content-md:gap-[16px]", children: [
|
|
@@ -260,7 +260,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
|
|
|
260
260
|
] }),
|
|
261
261
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-shrink-0 flex-row items-center gap-2 self-stretch content-md:w-auto content-md:flex-col content-md:items-end content-md:self-start", children: [
|
|
262
262
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
263
|
-
|
|
263
|
+
_chunkYXKB5WREcjs.StatusBadge,
|
|
264
264
|
{
|
|
265
265
|
text: item.status.toUpperCase(),
|
|
266
266
|
colorScheme: statusBadgeScheme,
|
|
@@ -269,7 +269,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
|
|
|
269
269
|
}
|
|
270
270
|
),
|
|
271
271
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
272
|
-
|
|
272
|
+
_chunkYXKB5WREcjs.StatusBadge,
|
|
273
273
|
{
|
|
274
274
|
text: typeBadgeLabel,
|
|
275
275
|
variant: "card",
|
|
@@ -277,7 +277,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
|
|
|
277
277
|
}
|
|
278
278
|
),
|
|
279
279
|
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
280
|
-
|
|
280
|
+
_chunkGSWQZX23cjs.AvatarStack,
|
|
281
281
|
{
|
|
282
282
|
size: "xs",
|
|
283
283
|
className: "ml-auto content-md:ml-0",
|