@flamingo-stack/openframe-frontend-core 0.0.271 → 0.0.272
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-3DYASQEL.js → chunk-4SNHFZQT.js} +3 -3
- package/dist/{chunk-CICK3FUU.cjs → chunk-7NJUPRN6.cjs} +7 -2
- package/dist/chunk-7NJUPRN6.cjs.map +1 -0
- package/dist/{chunk-ICOMPUMX.js → chunk-BSOHVQ7X.js} +6 -1
- package/dist/chunk-BSOHVQ7X.js.map +1 -0
- package/dist/{chunk-YH74UZRG.cjs → chunk-EEMZBQ7O.cjs} +25 -25
- package/dist/{chunk-YH74UZRG.cjs.map → chunk-EEMZBQ7O.cjs.map} +1 -1
- package/dist/{chunk-FC6YVRUW.cjs → chunk-IXRPEMZP.cjs} +15 -15
- package/dist/{chunk-FC6YVRUW.cjs.map → chunk-IXRPEMZP.cjs.map} +1 -1
- package/dist/{chunk-J35EWU2W.js → chunk-MCCYGAPE.js} +2 -2
- package/dist/{chunk-P7JHUX4X.js → chunk-N5MCKGAB.js} +2 -2
- package/dist/{chunk-5CTV435G.cjs → chunk-Q32JUFIK.cjs} +880 -810
- package/dist/chunk-Q32JUFIK.cjs.map +1 -0
- package/dist/{chunk-56V4MC32.js → chunk-UQCB2CP7.js} +35 -6
- package/dist/chunk-UQCB2CP7.js.map +1 -0
- package/dist/{chunk-LELTRQZV.cjs → chunk-V5OZQF4B.cjs} +69 -40
- package/dist/chunk-V5OZQF4B.cjs.map +1 -0
- package/dist/{chunk-BCPLTDRW.js → chunk-VFMMVGA4.js} +3280 -3210
- package/dist/chunk-VFMMVGA4.js.map +1 -0
- package/dist/{chunk-AA77CC2Y.cjs → chunk-XDGDCO3I.cjs} +12 -12
- package/dist/{chunk-AA77CC2Y.cjs.map → chunk-XDGDCO3I.cjs.map} +1 -1
- package/dist/components/chat/entity-cards/index.d.ts +2 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/what-i-shipped-card.d.ts +43 -0
- package/dist/components/chat/entity-cards/what-i-shipped-card.d.ts.map +1 -0
- package/dist/components/chat/index.cjs +7 -3
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +6 -2
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/form.d.ts +3 -1
- package/dist/components/form.d.ts.map +1 -1
- package/dist/components/index.cjs +88 -98
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +10 -20
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/onboarding-guides/index.cjs +22 -22
- package/dist/components/onboarding-guides/index.js +2 -2
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/related-content/index.js +3 -3
- package/dist/components/related-content/related-content-section.d.ts +13 -1
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +62 -62
- package/dist/components/tickets/index.js +4 -4
- package/dist/components/ui/index.cjs +7 -3
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +6 -2
- package/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/utils/format.d.ts +8 -0
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/index.cjs +5 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +5 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/chat-container.tsx +1 -1
- package/src/components/chat/entity-cards/index.ts +2 -0
- package/src/components/chat/entity-cards/what-i-shipped-card.tsx +109 -0
- package/src/components/related-content/related-content-section.tsx +70 -4
- package/src/utils/format.ts +15 -0
- package/src/utils/index.ts +1 -0
- package/dist/chunk-56V4MC32.js.map +0 -1
- package/dist/chunk-5CTV435G.cjs.map +0 -1
- package/dist/chunk-BCPLTDRW.js.map +0 -1
- package/dist/chunk-CICK3FUU.cjs.map +0 -1
- package/dist/chunk-ICOMPUMX.js.map +0 -1
- package/dist/chunk-LELTRQZV.cjs.map +0 -1
- /package/dist/{chunk-3DYASQEL.js.map → chunk-4SNHFZQT.js.map} +0 -0
- /package/dist/{chunk-J35EWU2W.js.map → chunk-MCCYGAPE.js.map} +0 -0
- /package/dist/{chunk-P7JHUX4X.js.map → chunk-N5MCKGAB.js.map} +0 -0
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkQ32JUFIKcjs = require('../../chunk-Q32JUFIK.cjs');
|
|
30
30
|
require('../../chunk-QLWBBCI5.cjs');
|
|
31
31
|
require('../../chunk-27APPAJN.cjs');
|
|
32
32
|
require('../../chunk-Y2B6WDU6.cjs');
|
|
33
33
|
require('../../chunk-6JINAOI7.cjs');
|
|
34
34
|
require('../../chunk-PXXS27EE.cjs');
|
|
35
|
-
require('../../chunk-
|
|
35
|
+
require('../../chunk-7NJUPRN6.cjs');
|
|
36
36
|
require('../../chunk-DAAFVOTL.cjs');
|
|
37
37
|
require('../../chunk-MEAR2WHS.cjs');
|
|
38
38
|
require('../../chunk-XL4V2PYG.cjs');
|
|
@@ -73,5 +73,5 @@ require('../../chunk-VRHGVLSL.cjs');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
exports.AppHeader =
|
|
76
|
+
exports.AppHeader = _chunkQ32JUFIKcjs.AppHeader; exports.AppLayout = _chunkQ32JUFIKcjs.AppLayout; exports.AppLayoutDrawer = _chunkQ32JUFIKcjs.AppLayoutDrawerRoot; exports.AppLayoutDrawerBody = _chunkQ32JUFIKcjs.AppLayoutDrawerBody; exports.AppLayoutDrawerClose = _chunkQ32JUFIKcjs.AppLayoutDrawerClose; exports.AppLayoutDrawerContent = _chunkQ32JUFIKcjs.AppLayoutDrawerContent; exports.AppLayoutDrawerDescription = _chunkQ32JUFIKcjs.AppLayoutDrawerDescription; exports.AppLayoutDrawerFooter = _chunkQ32JUFIKcjs.AppLayoutDrawerFooter; exports.AppLayoutDrawerHeader = _chunkQ32JUFIKcjs.AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = _chunkQ32JUFIKcjs.AppLayoutDrawerTitle; exports.AppLayoutDrawerTrigger = _chunkQ32JUFIKcjs.AppLayoutDrawerTrigger; exports.ClientOnlyHeader = _chunkQ32JUFIKcjs.ClientOnlyHeader; exports.Header = _chunkQ32JUFIKcjs.Header; exports.HeaderButton = _chunkQ32JUFIKcjs.HeaderButton; exports.HeaderGlobalSearch = _chunkQ32JUFIKcjs.HeaderGlobalSearch; exports.HeaderMingoButton = _chunkQ32JUFIKcjs.HeaderMingoButton; exports.HeaderOrganizationFilter = _chunkQ32JUFIKcjs.HeaderOrganizationFilter; exports.HeaderSkeleton = _chunkQ32JUFIKcjs.HeaderSkeleton; exports.MobileBurgerMenu = _chunkQ32JUFIKcjs.MobileBurgerMenu; exports.MobileNavPanel = _chunkQ32JUFIKcjs.MobileNavPanel; exports.NavigationSidebar = _chunkQ32JUFIKcjs.NavigationSidebar; exports.SlidingSidebar = _chunkQ32JUFIKcjs.SlidingSidebar; exports.StickySectionNav = _chunkQ32JUFIKcjs.StickySectionNav; exports.useAppLayoutDrawerContainer = _chunkQ32JUFIKcjs.useAppLayoutDrawerContainer; exports.useSectionNavigation = _chunkQ32JUFIKcjs.useSectionNavigation;
|
|
77
77
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
StickySectionNav,
|
|
27
27
|
useAppLayoutDrawerContainer,
|
|
28
28
|
useSectionNavigation
|
|
29
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-VFMMVGA4.js";
|
|
30
30
|
import "../../chunk-ZMFT5XOB.js";
|
|
31
31
|
import "../../chunk-MJNXIEV2.js";
|
|
32
32
|
import "../../chunk-T2URJAX2.js";
|
|
33
33
|
import "../../chunk-M2OCXTNT.js";
|
|
34
34
|
import "../../chunk-PHWQLKVE.js";
|
|
35
|
-
import "../../chunk-
|
|
35
|
+
import "../../chunk-BSOHVQ7X.js";
|
|
36
36
|
import "../../chunk-ZXZJSTNV.js";
|
|
37
37
|
import "../../chunk-4YKGXZ7W.js";
|
|
38
38
|
import "../../chunk-LXC6P2EO.js";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXDGDCO3Icjs = require('../../chunk-XDGDCO3I.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkT7AJBKZPcjs = require('../../chunk-T7AJBKZP.cjs');
|
|
@@ -23,7 +23,7 @@ require('../../chunk-VFKQMAUF.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk7NJUPRN6cjs = require('../../chunk-7NJUPRN6.cjs');
|
|
27
27
|
require('../../chunk-DAAFVOTL.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
@@ -72,7 +72,7 @@ function OnboardingGuidesCatalogSkeleton() {
|
|
|
72
72
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-6 w-40 bg-ods-border/70 rounded" }),
|
|
73
73
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-8 bg-ods-text-secondary/20 rounded-full" })
|
|
74
74
|
] }),
|
|
75
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
75
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7NJUPRN6cjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, cardIdx)) })
|
|
76
76
|
] }, sectionIdx)) })
|
|
77
77
|
] });
|
|
78
78
|
}
|
|
@@ -141,21 +141,21 @@ function OnboardingGuidesCatalogView({
|
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
143
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _4 => _4.source]), () => ( "openframe"));
|
|
144
|
-
const docSearch =
|
|
144
|
+
const docSearch = _chunkXDGDCO3Icjs.useDocSearch.call(void 0, {
|
|
145
145
|
source,
|
|
146
146
|
baseRoute: basePath,
|
|
147
147
|
onNavigate: (path) => router.push(path),
|
|
148
148
|
tableIds: ["onboarding-guides"]
|
|
149
149
|
});
|
|
150
150
|
const defaultRenderCard = (guide) => {
|
|
151
|
-
const cta =
|
|
151
|
+
const cta = _chunk7NJUPRN6cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _5 => _5.composeContentUrl]), {
|
|
152
152
|
type: "onboarding_guide",
|
|
153
153
|
slug: guide.slug,
|
|
154
154
|
basePath,
|
|
155
155
|
platforms: guide.onboarding_guide_platforms
|
|
156
156
|
});
|
|
157
157
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
158
|
-
|
|
158
|
+
_chunk7NJUPRN6cjs.OnboardingGuideCard,
|
|
159
159
|
{
|
|
160
160
|
guide,
|
|
161
161
|
href: cta.href,
|
|
@@ -167,7 +167,7 @@ function OnboardingGuidesCatalogView({
|
|
|
167
167
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
168
168
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
169
169
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
170
|
-
|
|
170
|
+
_chunkXDGDCO3Icjs.DocSearchBar,
|
|
171
171
|
{
|
|
172
172
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
173
173
|
query: docSearch.query,
|
|
@@ -179,7 +179,7 @@ function OnboardingGuidesCatalogView({
|
|
|
179
179
|
}
|
|
180
180
|
),
|
|
181
181
|
sections.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
182
|
-
|
|
182
|
+
_chunk7NJUPRN6cjs.FilterPillRow,
|
|
183
183
|
{
|
|
184
184
|
label: "Section",
|
|
185
185
|
selectedValue: activeSection,
|
|
@@ -189,7 +189,7 @@ function OnboardingGuidesCatalogView({
|
|
|
189
189
|
)
|
|
190
190
|
] });
|
|
191
191
|
if (selfFetch && guidesRes.error) {
|
|
192
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
192
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7NJUPRN6cjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
193
193
|
}
|
|
194
194
|
if (selfFetch && guidesRes.data == null && isLoading) {
|
|
195
195
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OnboardingGuidesCatalogSkeleton, {});
|
|
@@ -221,7 +221,7 @@ function OnboardingGuideDetailView({
|
|
|
221
221
|
slug,
|
|
222
222
|
guideEndpoint,
|
|
223
223
|
related = [],
|
|
224
|
-
MarkdownRenderer =
|
|
224
|
+
MarkdownRenderer = _chunk7NJUPRN6cjs.SimpleMarkdownRenderer,
|
|
225
225
|
renderRelatedCard,
|
|
226
226
|
backHref,
|
|
227
227
|
backLabel = "Back to Getting Started",
|
|
@@ -231,29 +231,29 @@ function OnboardingGuideDetailView({
|
|
|
231
231
|
const runtime = _chunkMEAR2WHScjs.useChatRuntime.call(void 0, );
|
|
232
232
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
233
233
|
const { data: guide, isLoading, error, reload } = _chunkT7AJBKZPcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
234
|
-
const { ref: videoWarmupRef } =
|
|
234
|
+
const { ref: videoWarmupRef } = _chunk7NJUPRN6cjs.useVideoWarmup.call(void 0, {
|
|
235
235
|
videoUrl: _optionalChain([guide, 'optionalAccess', _6 => _6.main_video_url]),
|
|
236
236
|
supabaseStorageOrigin: _optionalChain([runtime, 'optionalAccess', _7 => _7.endpoints, 'access', _8 => _8.supabaseStorageOrigin])
|
|
237
237
|
});
|
|
238
238
|
if (error || !guide && !isLoading) {
|
|
239
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
239
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7NJUPRN6cjs.LoadError, { message: "Guide not found.", onRetry: reload });
|
|
240
240
|
}
|
|
241
241
|
if (!guide) {
|
|
242
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
242
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXDGDCO3Icjs.DetailPageSkeleton, { showImageGallery: false });
|
|
243
243
|
}
|
|
244
|
-
const captionsUrl =
|
|
244
|
+
const captionsUrl = _chunk7NJUPRN6cjs.getCaptionsUrl.call(void 0, "onboarding_guide", guide.id, guide.srt_content);
|
|
245
245
|
const videoPoster = guide.main_video_thumbnail || guide.featured_image || guide.og_image_url || _optionalChain([runtime, 'optionalAccess', _9 => _9.resolvePlaceholderUrl, 'optionalCall', _10 => _10(guide.title, { aspect: "wide" })]) || void 0;
|
|
246
246
|
const defaultRenderRelatedCard = (g) => {
|
|
247
|
-
const cta =
|
|
247
|
+
const cta = _chunk7NJUPRN6cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.composeContentUrl]), {
|
|
248
248
|
type: "onboarding_guide",
|
|
249
249
|
slug: g.slug,
|
|
250
250
|
basePath,
|
|
251
251
|
platforms: g.onboarding_guide_platforms
|
|
252
252
|
});
|
|
253
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
253
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7NJUPRN6cjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
254
254
|
};
|
|
255
255
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
256
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
256
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7NJUPRN6cjs.PageShell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-6 md:space-y-8", children: [
|
|
257
257
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
258
258
|
_chunkWBR7H6E3cjs.next_link_default,
|
|
259
259
|
{
|
|
@@ -266,9 +266,9 @@ function OnboardingGuideDetailView({
|
|
|
266
266
|
}
|
|
267
267
|
),
|
|
268
268
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "text-h1 tracking-[-1.12px] text-ods-text-primary", children: guide.title }),
|
|
269
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
269
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7NJUPRN6cjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
|
|
270
270
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
-
|
|
271
|
+
_chunk7NJUPRN6cjs.EntityAuthorCard,
|
|
272
272
|
{
|
|
273
273
|
author: guide.author,
|
|
274
274
|
authorHref,
|
|
@@ -283,7 +283,7 @@ function OnboardingGuideDetailView({
|
|
|
283
283
|
}
|
|
284
284
|
),
|
|
285
285
|
(guide.main_video_url || guide.youtube_url) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
286
|
-
|
|
286
|
+
_chunk7NJUPRN6cjs.EntityVideoSection,
|
|
287
287
|
{
|
|
288
288
|
mainVideoUrl: guide.main_video_url,
|
|
289
289
|
youtubeUrl: guide.youtube_url || void 0,
|
|
@@ -300,7 +300,7 @@ function OnboardingGuideDetailView({
|
|
|
300
300
|
) }),
|
|
301
301
|
guide.content && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: guide.content }) }),
|
|
302
302
|
guide.video_bites && guide.video_bites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
303
|
-
|
|
303
|
+
_chunk7NJUPRN6cjs.VideoBitesDisplay,
|
|
304
304
|
{
|
|
305
305
|
bites: guide.video_bites,
|
|
306
306
|
filterPublished: true,
|
|
@@ -308,7 +308,7 @@ function OnboardingGuideDetailView({
|
|
|
308
308
|
}
|
|
309
309
|
),
|
|
310
310
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
311
|
-
|
|
311
|
+
_chunkXDGDCO3Icjs.ArticleAuthorByline,
|
|
312
312
|
{
|
|
313
313
|
author: _nullishCoalesce(_optionalChain([guide, 'access', _12 => _12.author, 'optionalAccess', _13 => _13.full_name]), () => ( null)),
|
|
314
314
|
avatar: _optionalChain([guide, 'access', _14 => _14.author, 'optionalAccess', _15 => _15.avatar_url]),
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
DetailPageSkeleton,
|
|
5
5
|
DocSearchBar,
|
|
6
6
|
useDocSearch
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-N5MCKGAB.js";
|
|
8
8
|
import {
|
|
9
9
|
useSelfFetch
|
|
10
10
|
} from "../../chunk-L4LAAA5Q.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
getCaptionsUrl,
|
|
24
24
|
resolveContentHref,
|
|
25
25
|
useVideoWarmup
|
|
26
|
-
} from "../../chunk-
|
|
26
|
+
} from "../../chunk-BSOHVQ7X.js";
|
|
27
27
|
import "../../chunk-ZXZJSTNV.js";
|
|
28
28
|
import {
|
|
29
29
|
useChatRuntime
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkV5OZQF4Bcjs = require('../../chunk-V5OZQF4B.cjs');
|
|
6
6
|
require('../../chunk-T7AJBKZP.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-Q32JUFIK.cjs');
|
|
8
8
|
require('../../chunk-QLWBBCI5.cjs');
|
|
9
9
|
require('../../chunk-27APPAJN.cjs');
|
|
10
10
|
require('../../chunk-Y2B6WDU6.cjs');
|
|
11
11
|
require('../../chunk-6JINAOI7.cjs');
|
|
12
12
|
require('../../chunk-PXXS27EE.cjs');
|
|
13
|
-
require('../../chunk-
|
|
13
|
+
require('../../chunk-7NJUPRN6.cjs');
|
|
14
14
|
require('../../chunk-DAAFVOTL.cjs');
|
|
15
15
|
require('../../chunk-MEAR2WHS.cjs');
|
|
16
16
|
require('../../chunk-XL4V2PYG.cjs');
|
|
@@ -28,5 +28,5 @@ require('../../chunk-VRHGVLSL.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
exports.GROUP_PAGE_SIZE =
|
|
31
|
+
exports.GROUP_PAGE_SIZE = _chunkV5OZQF4Bcjs.GROUP_PAGE_SIZE; exports.RelatedContentSection = _chunkV5OZQF4Bcjs.RelatedContentSection;
|
|
32
32
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
GROUP_PAGE_SIZE,
|
|
4
4
|
RelatedContentSection
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-UQCB2CP7.js";
|
|
6
6
|
import "../../chunk-L4LAAA5Q.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-VFMMVGA4.js";
|
|
8
8
|
import "../../chunk-ZMFT5XOB.js";
|
|
9
9
|
import "../../chunk-MJNXIEV2.js";
|
|
10
10
|
import "../../chunk-T2URJAX2.js";
|
|
11
11
|
import "../../chunk-M2OCXTNT.js";
|
|
12
12
|
import "../../chunk-PHWQLKVE.js";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-BSOHVQ7X.js";
|
|
14
14
|
import "../../chunk-ZXZJSTNV.js";
|
|
15
15
|
import "../../chunk-4YKGXZ7W.js";
|
|
16
16
|
import "../../chunk-LXC6P2EO.js";
|
|
@@ -159,6 +159,18 @@ export interface RelatedContentSectionProps {
|
|
|
159
159
|
/** Renderer pair for the admin-only `marketing_campaign` type. Absent →
|
|
160
160
|
* the type renders nothing. */
|
|
161
161
|
adminCampaignCard?: AdminCampaignCardSlot;
|
|
162
|
+
/** When true, render the section shell (title + an empty-state line) even
|
|
163
|
+
* with ZERO refs, instead of returning null. Default false (the original
|
|
164
|
+
* behavior — empty rail = no shell). Opt-in per host page (e.g. people-hub's
|
|
165
|
+
* "What I Shipped", where the section should always be present). */
|
|
166
|
+
showWhenEmpty?: boolean;
|
|
167
|
+
/** Empty-state copy shown under the title when `showWhenEmpty` and no refs.
|
|
168
|
+
* Default: "No related content yet." */
|
|
169
|
+
emptyStateText?: string;
|
|
170
|
+
/** Custom empty-state node (e.g. a hub `<EmptyState/>`) rendered under the
|
|
171
|
+
* title when `showWhenEmpty` and there are no refs — overrides
|
|
172
|
+
* `emptyStateText`. Lets a host match its canonical empty state. */
|
|
173
|
+
emptyState?: React.ReactNode;
|
|
162
174
|
}
|
|
163
|
-
export declare function RelatedContentSection({ contentRefs, entityType, entityId, authorId, minResults, sameTypeMinResults, includeTypes, initialItems, title, columns, excludeTypes, apiBaseUrl, extras, resolveHref, buildListUrl, LinkProvider, adminCampaignCard, }: RelatedContentSectionProps): React.JSX.Element | null;
|
|
175
|
+
export declare function RelatedContentSection({ contentRefs, entityType, entityId, authorId, minResults, sameTypeMinResults, includeTypes, initialItems, title, columns, excludeTypes, apiBaseUrl, extras, resolveHref, buildListUrl, LinkProvider, adminCampaignCard, showWhenEmpty, emptyStateText, emptyState, }: RelatedContentSectionProps): React.JSX.Element | null;
|
|
164
176
|
//# sourceMappingURL=related-content-section.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"related-content-section.d.ts","sourceRoot":"","sources":["../../../src/components/related-content/related-content-section.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,KAA+C,MAAM,OAAO,CAAC;AAOpE,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"related-content-section.d.ts","sourceRoot":"","sources":["../../../src/components/related-content/related-content-section.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,KAA+C,MAAM,OAAO,CAAC;AAOpE,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAyBhF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAI5E;;kDAEkD;AAClD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,GAAG,CAAC,EAAE,qBAAqB,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC5D;AAED;;;;6EAI6E;AAC7E,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC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