@flamingo-stack/openframe-frontend-core 0.0.776 → 0.0.777
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/case-study-card-FMH622O5.cjs +25 -0
- package/dist/{chunk-2AZAJ7RK.cjs → chunk-3PCSEZNZ.cjs} +53 -53
- package/dist/{chunk-R3JX4MXD.cjs → chunk-3ZLPYEL5.cjs} +10 -10
- package/dist/{chunk-3V27UHSH.cjs → chunk-4JZDJ34E.cjs} +17 -17
- package/dist/{chunk-DGFDBPO7.cjs → chunk-5GJM7VRR.cjs} +1 -94
- package/dist/{chunk-E64HPPRH.cjs → chunk-5PK22JP7.cjs} +50 -50
- package/dist/{chunk-57B5RUYD.cjs → chunk-64KBI5MI.cjs} +2 -2
- package/dist/{chunk-BDYI6HBT.cjs → chunk-7LJSGOWS.cjs} +18 -16
- package/dist/{chunk-ASMNNSUQ.cjs → chunk-7PNRXJX2.cjs} +3 -3
- package/dist/{chunk-2YB4X5WT.cjs → chunk-ALA4KHTE.cjs} +6 -6
- package/dist/{chunk-VFZFCRAL.cjs → chunk-AQXKXZWB.cjs} +4 -4
- package/dist/{chunk-OTZQP53Y.cjs → chunk-BDDOC425.cjs} +8 -8
- package/dist/{chunk-VFUMM6JC.cjs → chunk-BEMGJDXI.cjs} +2 -2
- package/dist/{chunk-HY6BCZH7.cjs → chunk-BNUZKBNV.cjs} +3 -3
- package/dist/{chunk-MYHS4W2H.cjs → chunk-CGQ7CL62.cjs} +213 -1647
- package/dist/{chunk-L55XLH5A.cjs → chunk-DOM5CUEY.cjs} +33 -31
- package/dist/{chunk-IXZNBDXT.cjs → chunk-G2N7INFT.cjs} +28 -28
- package/dist/{chunk-XN6LXMH5.cjs → chunk-HXLOCZMG.cjs} +595 -591
- package/dist/{chunk-CZIMISAR.cjs → chunk-JB2SEF6Q.cjs} +7 -7
- package/dist/{chunk-2MF547RG.cjs → chunk-JMFF3L3T.cjs} +28 -26
- package/dist/{chunk-LJT2KRE2.cjs → chunk-KLTUTZBO.cjs} +24 -24
- package/dist/{chunk-EHJE3UWZ.cjs → chunk-LBGAHB6X.cjs} +20 -20
- package/dist/{chunk-OJLZ7PGO.cjs → chunk-LGNJTSKB.cjs} +37 -35
- package/dist/{chunk-MWH5ZTMB.cjs → chunk-LU2DGST4.cjs} +97 -95
- package/dist/chunk-MQPTOJMF.cjs +1504 -0
- package/dist/{chunk-XXJL5GY3.cjs → chunk-OJZBZH56.cjs} +3 -3
- package/dist/{chunk-XT5WEHFM.cjs → chunk-QIATO42V.cjs} +3 -3
- package/dist/{chunk-RB7VLVMD.cjs → chunk-R6BKQKIF.cjs} +9 -7
- package/dist/{chunk-NWZSYG4S.cjs → chunk-S3YDUX2I.cjs} +114 -112
- package/dist/{chunk-DDXQGTWB.cjs → chunk-SDZG7VV7.cjs} +5 -5
- package/dist/{chunk-V3W56L2D.cjs → chunk-SIDDZZKL.cjs} +38 -38
- package/dist/chunk-SZHDXXMK.cjs +102 -0
- package/dist/{chunk-AMVI5VXM.cjs → chunk-T47VAUYR.cjs} +91 -89
- package/dist/{chunk-F65RSJVV.cjs → chunk-T7NDPPLF.cjs} +23 -21
- package/dist/{chunk-5P4TDV7V.cjs → chunk-TUAATMUE.cjs} +5 -93
- package/dist/{chunk-KM2TVQCH.cjs → chunk-TZP7PSPG.cjs} +249 -243
- package/dist/{chunk-WAQPW4CB.cjs → chunk-U5VQFKRZ.cjs} +6 -6
- package/dist/{chunk-24OYQQZC.cjs → chunk-UW6AOF42.cjs} +22 -22
- package/dist/chunk-V4FXUIMH.cjs +92 -0
- package/dist/{chunk-2JRSYWFP.cjs → chunk-VXAKQRV7.cjs} +5 -5
- package/dist/{chunk-UM6HFGTI.cjs → chunk-VY3NGJRH.cjs} +53 -51
- package/dist/{chunk-LNCBN4BL.cjs → chunk-WCSWWVPF.cjs} +2 -2
- package/dist/{chunk-6HY2NH7D.cjs → chunk-WMZIBRTR.cjs} +2 -2
- package/dist/{chunk-5QP3K2CE.cjs → chunk-XEYL6AFZ.cjs} +9 -9
- package/dist/{chunk-YFTQ2ALU.cjs → chunk-XVAVQ4BK.cjs} +116 -82
- package/dist/{chunk-Z5KX56TK.cjs → chunk-Y6MQBLTZ.cjs} +4 -4
- package/dist/{cloud-tenants-QFE6QMR5.cjs → cloud-tenants-EUH42CCL.cjs} +27 -24
- package/dist/components/case-studies/index.cjs +45 -41
- package/dist/components/chat/index.cjs +21 -17
- package/dist/components/contact/index.cjs +28 -25
- package/dist/components/docs/index.cjs +31 -28
- package/dist/components/embeds/index.cjs +28 -25
- package/dist/components/faq/index.cjs +29 -26
- package/dist/components/features/index.cjs +28 -24
- package/dist/components/help-center-pages/index.cjs +131 -127
- package/dist/components/index.cjs +94 -90
- package/dist/components/meeting-scheduler/index.cjs +95 -92
- package/dist/components/navigation/index.cjs +30 -27
- package/dist/components/navigation/nav-panel.d.ts.map +1 -1
- package/dist/components/navigation/nav-panel.js +47 -13
- package/dist/components/onboarding-guides/index.cjs +30 -27
- package/dist/components/product-demo/index.cjs +38 -35
- package/dist/components/related-content/index.cjs +15 -12
- package/dist/components/tickets/index.cjs +33 -30
- package/dist/components/ui/index.cjs +28 -24
- package/dist/{devices-SFJDLXSW.cjs → devices-WL3I23EE.cjs} +28 -25
- package/dist/{embeddable-chat-XZUWAK4W.cjs → embeddable-chat-KEWUGQIF.cjs} +99 -95
- package/dist/hooks/index.cjs +12 -10
- package/dist/index.cjs +36 -30
- package/dist/{knowledge-SAK3ZGCO.cjs → knowledge-O3PXUX73.cjs} +28 -25
- package/dist/{logs-CYBGMFA5.cjs → logs-XODCXWYI.cjs} +35 -32
- package/dist/{policies-XXDOICWF.cjs → policies-CQACBIKK.cjs} +31 -28
- package/dist/{remote-session-TC3BZDBZ.cjs → remote-session-TGM2OTTV.cjs} +12 -10
- package/dist/{scripts-C5T2AQPA.cjs → scripts-QMM6SEB5.cjs} +34 -31
- package/dist/{software-update-XU5AI4TP.cjs → software-update-CCCKS4ZE.cjs} +31 -28
- package/dist/{tickets-board-YT25IX3O.cjs → tickets-board-FB5AGLJD.cjs} +16 -14
- package/dist/{video-file-player-6ZFOZFER.cjs → video-file-player-SIJW5UWU.cjs} +3 -2
- package/package.json +1 -1
- package/src/components/navigation/nav-panel.tsx +74 -14
|
@@ -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 _chunkWCSWWVPFcjs = require('./chunk-WCSWWVPF.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ var _chunkLNCBN4BLcjs = require('./chunk-LNCBN4BL.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkLGNJTSKBcjs = require('./chunk-LGNJTSKB.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -37,10 +37,12 @@ var _chunkOJLZ7PGOcjs = require('./chunk-OJLZ7PGO.cjs');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
+
var _chunkCGQ7CL62cjs = require('./chunk-CGQ7CL62.cjs');
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
|
|
45
|
+
var _chunkMQPTOJMFcjs = require('./chunk-MQPTOJMF.cjs');
|
|
44
46
|
|
|
45
47
|
|
|
46
48
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
@@ -453,7 +455,7 @@ function programEntry(configKey) {
|
|
|
453
455
|
// Hosts are drawn only for a type whose cards show them (its config's `cardShowsHosts`): elsewhere a record may
|
|
454
456
|
// have none.
|
|
455
457
|
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
456
|
-
|
|
458
|
+
_chunkCGQ7CL62cjs.ProgramCardSkeleton,
|
|
457
459
|
{
|
|
458
460
|
size: size === "sm" ? "sm" : "default",
|
|
459
461
|
media: configKey === "event" ? EVENT_CARD_SKELETON_MEDIA : 0,
|
|
@@ -465,7 +467,7 @@ function programEntry(configKey) {
|
|
|
465
467
|
const config = _optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.programConfigs, 'optionalAccess', _7 => _7[configKey]]);
|
|
466
468
|
if (!config) return null;
|
|
467
469
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
468
|
-
|
|
470
|
+
_chunkCGQ7CL62cjs.ProgramCard,
|
|
469
471
|
{
|
|
470
472
|
config,
|
|
471
473
|
item,
|
|
@@ -483,10 +485,10 @@ function programEntry(configKey) {
|
|
|
483
485
|
}
|
|
484
486
|
function roadmapEntry(cardType) {
|
|
485
487
|
return cardEntry({
|
|
486
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
488
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCGQ7CL62cjs.RoadmapCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
487
489
|
decode: decodeRoadmapRow,
|
|
488
490
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
489
|
-
|
|
491
|
+
_chunkCGQ7CL62cjs.RoadmapCard,
|
|
490
492
|
{
|
|
491
493
|
item,
|
|
492
494
|
href: ctx.href,
|
|
@@ -503,10 +505,10 @@ function roadmapEntry(cardType) {
|
|
|
503
505
|
}
|
|
504
506
|
var RELATED_CARD_REGISTRY = {
|
|
505
507
|
blog_post_existing: cardEntry({
|
|
506
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
508
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCGQ7CL62cjs.BlogCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
507
509
|
decode: decodeBlogRow,
|
|
508
510
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
509
|
-
|
|
511
|
+
_chunkCGQ7CL62cjs.BlogCard,
|
|
510
512
|
{
|
|
511
513
|
post,
|
|
512
514
|
size: ctx.legacySize,
|
|
@@ -519,10 +521,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
519
521
|
)
|
|
520
522
|
}),
|
|
521
523
|
case_study: cardEntry({
|
|
522
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
524
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQPTOJMFcjs.CaseStudyCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
523
525
|
decode: decodeCaseStudyRow,
|
|
524
526
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
525
|
-
|
|
527
|
+
_chunkMQPTOJMFcjs.CaseStudyCard,
|
|
526
528
|
{
|
|
527
529
|
study,
|
|
528
530
|
size: ctx.legacySize,
|
|
@@ -534,10 +536,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
534
536
|
)
|
|
535
537
|
}),
|
|
536
538
|
customer_interview: cardEntry({
|
|
537
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
539
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCGQ7CL62cjs.CustomerInterviewCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
538
540
|
decode: decodeCustomerInterviewRow,
|
|
539
541
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
540
|
-
|
|
542
|
+
_chunkCGQ7CL62cjs.CustomerInterviewCard,
|
|
541
543
|
{
|
|
542
544
|
interview,
|
|
543
545
|
size: ctx.legacySize,
|
|
@@ -555,13 +557,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
555
557
|
* record, and the three props the rail sets itself are read off it.
|
|
556
558
|
*/
|
|
557
559
|
product_release: cardEntry({
|
|
558
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
560
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCGQ7CL62cjs.ProductReleaseCardSkeleton, { size: size === "sm" ? "sm" : "lg" }),
|
|
559
561
|
decode: asRecord,
|
|
560
562
|
render: (release, ctx) => {
|
|
561
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _8 => _8.extras, 'optionalAccess', _9 => _9.buildProductReleaseCardProps]), () => (
|
|
563
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _8 => _8.extras, 'optionalAccess', _9 => _9.buildProductReleaseCardProps]), () => ( _chunkCGQ7CL62cjs.buildProductReleaseCardProps));
|
|
562
564
|
const releaseProps = buildReleaseProps(release);
|
|
563
565
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
564
|
-
|
|
566
|
+
_chunkLGNJTSKBcjs.ProductReleaseCard,
|
|
565
567
|
{
|
|
566
568
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
567
569
|
title: str(release, "title"),
|
|
@@ -577,10 +579,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
577
579
|
webinar: programEntry("webinar"),
|
|
578
580
|
event: programEntry("event"),
|
|
579
581
|
investor_update: cardEntry({
|
|
580
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
582
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCGQ7CL62cjs.InvestorUpdateCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
581
583
|
decode: decodeInvestorUpdateRow,
|
|
582
584
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
583
|
-
|
|
585
|
+
_chunkCGQ7CL62cjs.InvestorUpdateCard,
|
|
584
586
|
{
|
|
585
587
|
update,
|
|
586
588
|
size: ctx.legacySize,
|
|
@@ -595,10 +597,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
595
597
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
596
598
|
* section" rail, not this full-width row. */
|
|
597
599
|
onboarding_guide: cardEntry({
|
|
598
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
600
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCGQ7CL62cjs.OnboardingGuideCardSkeleton, { size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
599
601
|
decode: decodeOnboardingGuideRow,
|
|
600
602
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
601
|
-
|
|
603
|
+
_chunkCGQ7CL62cjs.OnboardingGuideCard,
|
|
602
604
|
{
|
|
603
605
|
guide,
|
|
604
606
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -615,10 +617,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
615
617
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
616
618
|
* card in a dead <a>. */
|
|
617
619
|
what_i_shipped: cardEntry({
|
|
618
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
620
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLGNJTSKBcjs.WhatIShippedCardSkeleton, {}),
|
|
619
621
|
decode: decodeEmployeeEntryRow,
|
|
620
622
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
621
|
-
|
|
623
|
+
_chunkLGNJTSKBcjs.WhatIShippedCard,
|
|
622
624
|
{
|
|
623
625
|
entry,
|
|
624
626
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -628,10 +630,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
628
630
|
}),
|
|
629
631
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
630
632
|
how_i_work: cardEntry({
|
|
631
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
633
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLGNJTSKBcjs.HowIWorkCardSkeleton, {}),
|
|
632
634
|
decode: decodeEmployeeEntryRow,
|
|
633
635
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
634
|
-
|
|
636
|
+
_chunkLGNJTSKBcjs.HowIWorkCard,
|
|
635
637
|
{
|
|
636
638
|
entry,
|
|
637
639
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -641,10 +643,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
641
643
|
}),
|
|
642
644
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
643
645
|
ai_prompt: cardEntry({
|
|
644
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
646
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLGNJTSKBcjs.AiPromptCardSkeleton, {}),
|
|
645
647
|
decode: decodeEmployeeEntryRow,
|
|
646
648
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
647
|
-
|
|
649
|
+
_chunkLGNJTSKBcjs.AiPromptCard,
|
|
648
650
|
{
|
|
649
651
|
entry,
|
|
650
652
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -665,7 +667,7 @@ function DefaultLinkPropsProvider({
|
|
|
665
667
|
children
|
|
666
668
|
}) {
|
|
667
669
|
if (!href) return children(null);
|
|
668
|
-
const newTab =
|
|
670
|
+
const newTab = _chunkMQPTOJMFcjs.decideNewTab.call(void 0, { href, targetPlatform, currentSource: "" });
|
|
669
671
|
return children(newTab ? { href, target: "_blank", rel: "noopener noreferrer" } : { href });
|
|
670
672
|
}
|
|
671
673
|
function defaultResolveHref(ref) {
|
|
@@ -727,9 +729,9 @@ function useGroupItems(type, refs, buildUrl, seedRows) {
|
|
|
727
729
|
() => seedRows && url !== null ? /* @__PURE__ */ new Map([[url, [...seedRows]]]) : /* @__PURE__ */ new Map()
|
|
728
730
|
);
|
|
729
731
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
730
|
-
const { data, dataUrl, error } =
|
|
732
|
+
const { data, dataUrl, error } = _chunkLGNJTSKBcjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
731
733
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
732
|
-
setPages(new Map(pages).set(dataUrl,
|
|
734
|
+
setPages(new Map(pages).set(dataUrl, _chunkCGQ7CL62cjs.extractItems.call(void 0, data)));
|
|
733
735
|
}
|
|
734
736
|
if (url === null) return { items: null, isLoading: false };
|
|
735
737
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -738,7 +740,7 @@ function gridClassFor(columns) {
|
|
|
738
740
|
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";
|
|
739
741
|
}
|
|
740
742
|
function resolveGroupConfig(type) {
|
|
741
|
-
return _nullishCoalesce(
|
|
743
|
+
return _nullishCoalesce(_chunkLGNJTSKBcjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
742
744
|
label: type,
|
|
743
745
|
order: 999,
|
|
744
746
|
layout: "grid",
|
|
@@ -751,15 +753,15 @@ var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
|
751
753
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
752
754
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
753
755
|
function GroupHeading({ type }) {
|
|
754
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children:
|
|
756
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: _chunkLGNJTSKBcjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
755
757
|
}
|
|
756
758
|
function orderRailTypes(types, entityType) {
|
|
757
|
-
let ordered =
|
|
759
|
+
let ordered = _chunkLGNJTSKBcjs.orderContentRefTypes.call(void 0, types);
|
|
758
760
|
if (entityType) {
|
|
759
|
-
const canonicalEntityType =
|
|
760
|
-
const sameType = ordered.filter((t) =>
|
|
761
|
+
const canonicalEntityType = _chunkCGQ7CL62cjs.canonicalContentRefType.call(void 0, entityType);
|
|
762
|
+
const sameType = ordered.filter((t) => _chunkCGQ7CL62cjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
761
763
|
if (sameType.length > 0) {
|
|
762
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
764
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunkCGQ7CL62cjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
763
765
|
}
|
|
764
766
|
}
|
|
765
767
|
return ordered;
|
|
@@ -788,10 +790,10 @@ function ContentGroup({
|
|
|
788
790
|
setPagedRefsKey(refsKey);
|
|
789
791
|
setPage(1);
|
|
790
792
|
}
|
|
791
|
-
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length,
|
|
792
|
-
const pageRefs = refs.slice((page - 1) *
|
|
793
|
+
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, _chunkLGNJTSKBcjs.GROUP_PAGE_SIZE);
|
|
794
|
+
const pageRefs = refs.slice((page - 1) * _chunkLGNJTSKBcjs.GROUP_PAGE_SIZE, page * _chunkLGNJTSKBcjs.GROUP_PAGE_SIZE);
|
|
793
795
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
794
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
796
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCSWWVPFcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
795
797
|
_react.useEffect.call(void 0, () => {
|
|
796
798
|
onLoadingChange(type, isLoading);
|
|
797
799
|
return () => onLoadingChange(type, false);
|
|
@@ -809,7 +811,7 @@ function ContentGroup({
|
|
|
809
811
|
}
|
|
810
812
|
if (!items) return null;
|
|
811
813
|
const rowKey = (it) => {
|
|
812
|
-
const extracted =
|
|
814
|
+
const extracted = _chunkCGQ7CL62cjs.extractItemId.call(void 0, type, it);
|
|
813
815
|
if (extracted !== null) return extracted;
|
|
814
816
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
815
817
|
};
|
|
@@ -880,11 +882,11 @@ function RelatedContentSection({
|
|
|
880
882
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
881
883
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
882
884
|
};
|
|
883
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
885
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkLGNJTSKBcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
884
886
|
apiBaseUrl,
|
|
885
887
|
extraParams: { authorId, ...typeFilterParams }
|
|
886
888
|
}) : null;
|
|
887
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
889
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkLGNJTSKBcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
888
890
|
apiBaseUrl,
|
|
889
891
|
entityType,
|
|
890
892
|
entityId,
|
|
@@ -901,7 +903,7 @@ function RelatedContentSection({
|
|
|
901
903
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
902
904
|
[initialItems, suggestionsDisabled]
|
|
903
905
|
);
|
|
904
|
-
const { data, isLoading } =
|
|
906
|
+
const { data, isLoading } = _chunkLGNJTSKBcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
905
907
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
906
908
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
907
909
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
@@ -914,7 +916,7 @@ function RelatedContentSection({
|
|
|
914
916
|
});
|
|
915
917
|
}, []);
|
|
916
918
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
917
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
919
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunkCGQ7CL62cjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
918
920
|
[buildListUrl2, apiBaseUrl]
|
|
919
921
|
);
|
|
920
922
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _13 => _13.refs]))), () => ( []));
|
|
@@ -938,7 +940,7 @@ function RelatedContentSection({
|
|
|
938
940
|
}
|
|
939
941
|
if (!showWhenEmpty) return null;
|
|
940
942
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
941
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
943
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunkCGQ7CL62cjs.accentSentenceMarks.call(void 0, title) }),
|
|
942
944
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
943
945
|
] });
|
|
944
946
|
}
|
|
@@ -964,7 +966,7 @@ function RelatedContentSection({
|
|
|
964
966
|
);
|
|
965
967
|
}
|
|
966
968
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
967
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children:
|
|
969
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunkCGQ7CL62cjs.accentSentenceMarks.call(void 0, title) }),
|
|
968
970
|
orderedTypes.map((type, groupIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
969
971
|
ContentGroup,
|
|
970
972
|
{
|
|
@@ -995,24 +997,24 @@ function RelatedContentSectionSkeleton({
|
|
|
995
997
|
adminCampaignCard,
|
|
996
998
|
extras
|
|
997
999
|
}) {
|
|
998
|
-
const canonicalEntityType = entityType ?
|
|
1000
|
+
const canonicalEntityType = entityType ? _chunkCGQ7CL62cjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
999
1001
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
1000
1002
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) }),
|
|
1001
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length:
|
|
1003
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: _chunkLGNJTSKBcjs.GROUP_PAGE_SIZE }, (_, i) => (
|
|
1002
1004
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
1003
1005
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
1004
1006
|
)) })
|
|
1005
1007
|
] }) : null;
|
|
1006
1008
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
1007
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ?
|
|
1009
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ? _chunkCGQ7CL62cjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
1008
1010
|
unknownGroup,
|
|
1009
1011
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
1010
1012
|
const config = resolveGroupConfig(type);
|
|
1011
|
-
const sameType = canonicalEntityType !== null &&
|
|
1013
|
+
const sameType = canonicalEntityType !== null && _chunkCGQ7CL62cjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
1012
1014
|
const isList = config.layout === "list";
|
|
1013
1015
|
const count = Math.min(
|
|
1014
|
-
|
|
1015
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => (
|
|
1016
|
+
_chunkLGNJTSKBcjs.GROUP_PAGE_SIZE,
|
|
1017
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunkLGNJTSKBcjs.GROUP_PAGE_SIZE))
|
|
1016
1018
|
);
|
|
1017
1019
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1018
1020
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkCGQ7CL62cjs = require('./chunk-CGQ7CL62.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -49,7 +49,7 @@ function PaginationControl({
|
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
const handleClick = (event) => {
|
|
52
|
-
if (
|
|
52
|
+
if (_chunkCGQ7CL62cjs.isModifierClick.call(void 0, event)) return;
|
|
53
53
|
event.preventDefault();
|
|
54
54
|
onPageChange(page);
|
|
55
55
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkY6MQBLTZcjs = require('./chunk-Y6MQBLTZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkXFRBEXQNcjs = require('./chunk-XFRBEXQN.cjs');
|
|
@@ -120,7 +120,7 @@ function PersistentPaginationWrapper({
|
|
|
120
120
|
},
|
|
121
121
|
"aria-hidden": isPaginationDisabled,
|
|
122
122
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
123
|
-
|
|
123
|
+
_chunkY6MQBLTZcjs.UnifiedPagination,
|
|
124
124
|
{
|
|
125
125
|
currentPage: displayCurrentPage,
|
|
126
126
|
totalPages: displayTotalPages,
|
|
@@ -10,18 +10,18 @@ var _chunkUYHKZN5Dcjs = require('./chunk-UYHKZN5D.cjs');
|
|
|
10
10
|
var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkBEMGJDXIcjs = require('./chunk-BEMGJDXI.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkBNUZKBNVcjs = require('./chunk-BNUZKBNV.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkAQXKXZWBcjs = require('./chunk-AQXKXZWB.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkTUAATMUEcjs = require('./chunk-TUAATMUE.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -222,7 +222,7 @@ var Modal = _react.forwardRef.call(void 0,
|
|
|
222
222
|
),
|
|
223
223
|
role: "dialog",
|
|
224
224
|
"aria-modal": "true",
|
|
225
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ModalContext.Provider, { value: { onClose }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIFEZ2JTcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIFEZ2JTcjs.CollisionBoundaryContext.Provider, { value: null, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
225
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ModalContext.Provider, { value: { onClose }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIFEZ2JTcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIFEZ2JTcjs.CollisionBoundaryContext.Provider, { value: null, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAQXKXZWBcjs.ViewportBreakpoints, { children }) }) }) })
|
|
226
226
|
}
|
|
227
227
|
),
|
|
228
228
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, className: "contents" })
|
|
@@ -452,7 +452,7 @@ function SlashCommandSuggestions({
|
|
|
452
452
|
className
|
|
453
453
|
),
|
|
454
454
|
children: commands.map((cmd, idx) => {
|
|
455
|
-
const Icon =
|
|
455
|
+
const Icon = _chunkTUAATMUEcjs.resolveIcon.call(void 0, cmd.iconName);
|
|
456
456
|
const legacyMeta = !cmd.iconName && cmd.primarySourceId && resolveSourceIcon ? resolveSourceIcon(cmd.primarySourceId) : void 0;
|
|
457
457
|
const LegacyIcon = _optionalChain([legacyMeta, 'optionalAccess', _4 => _4.Icon]);
|
|
458
458
|
const title = _nullishCoalesce(_nullishCoalesce(cmd.label, () => ( _optionalChain([legacyMeta, 'optionalAccess', _5 => _5.label]))), () => ( cmd.id));
|
|
@@ -548,7 +548,7 @@ function buildChipEl(token, label, icon) {
|
|
|
548
548
|
span.className = "mx-0.5 inline-flex h-9 items-center select-none align-top";
|
|
549
549
|
span.innerHTML = _server.renderToStaticMarkup.call(void 0,
|
|
550
550
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
551
|
-
|
|
551
|
+
_chunkBNUZKBNVcjs.Tag,
|
|
552
552
|
{
|
|
553
553
|
as: "span",
|
|
554
554
|
variant: "badge",
|
|
@@ -936,7 +936,7 @@ var ChatInput = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
|
936
936
|
className: "flex min-h-11 w-full items-center justify-center gap-[var(--spacing-system-xs)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-sf)] md:min-h-12",
|
|
937
937
|
children: [
|
|
938
938
|
awaitingTeam && awaitingTeam.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
939
|
-
|
|
939
|
+
_chunkBEMGJDXIcjs.AvatarStack,
|
|
940
940
|
{
|
|
941
941
|
people: awaitingTeam,
|
|
942
942
|
total: awaitingTeamCount,
|
|
@@ -1103,7 +1103,7 @@ ChatInput.displayName = "ChatInput";
|
|
|
1103
1103
|
|
|
1104
1104
|
// src/utils/format-date.ts
|
|
1105
1105
|
var INVALID_DATE_PLACEHOLDER = "\u2014";
|
|
1106
|
-
var render = (input, fields) =>
|
|
1106
|
+
var render = (input, fields) => _chunkBNUZKBNVcjs.formatDateWithTimezone.call(void 0, input, _chunkBNUZKBNVcjs.VIEWER_TIMEZONE, fields, { viewerLocale: true }) || INVALID_DATE_PLACEHOLDER;
|
|
1107
1107
|
var formatDate = (input) => render(input, { dateStyle: "short" });
|
|
1108
1108
|
var formatTime = (input) => render(input, { timeStyle: "short" });
|
|
1109
1109
|
|