@opensite/ui 3.6.1 → 3.6.3
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/carousel-autoplay-progress.cjs +84 -84
- package/dist/carousel-autoplay-progress.js +84 -84
- package/dist/registry.cjs +872 -147
- package/dist/registry.js +872 -147
- package/package.json +1 -1
package/dist/registry.js
CHANGED
|
@@ -19952,7 +19952,7 @@ function CarouselAutoplayProgress({
|
|
|
19952
19952
|
slides,
|
|
19953
19953
|
slidesSlot,
|
|
19954
19954
|
options,
|
|
19955
|
-
autoplayDelay =
|
|
19955
|
+
autoplayDelay = 5e3,
|
|
19956
19956
|
className,
|
|
19957
19957
|
containerClassName,
|
|
19958
19958
|
trackClassName,
|
|
@@ -19962,7 +19962,7 @@ function CarouselAutoplayProgress({
|
|
|
19962
19962
|
dotsClassName,
|
|
19963
19963
|
progressClassName,
|
|
19964
19964
|
optixFlowConfig,
|
|
19965
|
-
background
|
|
19965
|
+
background,
|
|
19966
19966
|
spacing = "xl",
|
|
19967
19967
|
pattern,
|
|
19968
19968
|
patternOpacity
|
|
@@ -19984,71 +19984,97 @@ function CarouselAutoplayProgress({
|
|
|
19984
19984
|
pattern,
|
|
19985
19985
|
patternOpacity,
|
|
19986
19986
|
children: [
|
|
19987
|
-
/* @__PURE__ */ jsx("div", { className: cn("overflow-hidden", containerClassName), ref: emblaRef, children: /* @__PURE__ */ jsx(
|
|
19987
|
+
/* @__PURE__ */ jsx("div", { className: cn("overflow-hidden", containerClassName), ref: emblaRef, children: /* @__PURE__ */ jsx(
|
|
19988
19988
|
"div",
|
|
19989
19989
|
{
|
|
19990
|
-
className: cn(
|
|
19990
|
+
className: cn(
|
|
19991
|
+
"ml-auto mr-3 flex touch-pan-y touch-pinch-zoom",
|
|
19992
|
+
trackClassName
|
|
19993
|
+
),
|
|
19994
|
+
children: slidesSlot ? slidesSlot : slides?.map((slide, index) => /* @__PURE__ */ jsxs(
|
|
19995
|
+
"div",
|
|
19996
|
+
{
|
|
19997
|
+
className: cn(
|
|
19998
|
+
"flex-[0_0_70%] transform-gpu pl-3",
|
|
19999
|
+
slideClassName,
|
|
20000
|
+
slide.className
|
|
20001
|
+
),
|
|
20002
|
+
children: [
|
|
20003
|
+
/* @__PURE__ */ jsx("div", { className: "aspect-video overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx(
|
|
20004
|
+
Img,
|
|
20005
|
+
{
|
|
20006
|
+
src: slide.src,
|
|
20007
|
+
alt: typeof slide.alt === "string" ? slide.alt : `Slide ${index + 1}`,
|
|
20008
|
+
className: cn(
|
|
20009
|
+
"h-full w-full object-cover",
|
|
20010
|
+
imageClassName,
|
|
20011
|
+
slide.imageClassName
|
|
20012
|
+
),
|
|
20013
|
+
optixFlowConfig
|
|
20014
|
+
}
|
|
20015
|
+
) }),
|
|
20016
|
+
slide.content && /* @__PURE__ */ jsx("div", { className: "mt-4", children: slide.content })
|
|
20017
|
+
]
|
|
20018
|
+
},
|
|
20019
|
+
index
|
|
20020
|
+
))
|
|
20021
|
+
}
|
|
20022
|
+
) }),
|
|
20023
|
+
/* @__PURE__ */ jsxs(
|
|
20024
|
+
"div",
|
|
20025
|
+
{
|
|
20026
|
+
className: cn(
|
|
20027
|
+
"mx-auto mt-7 flex max-w-80 items-center justify-between gap-3",
|
|
20028
|
+
controlsClassName
|
|
20029
|
+
),
|
|
19991
20030
|
children: [
|
|
19992
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
19993
|
-
|
|
20031
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex justify-center gap-2", dotsClassName), children: scrollSnaps.map((_, index) => /* @__PURE__ */ jsx(
|
|
20032
|
+
"button",
|
|
19994
20033
|
{
|
|
19995
|
-
|
|
19996
|
-
|
|
19997
|
-
className: cn(
|
|
19998
|
-
|
|
20034
|
+
type: "button",
|
|
20035
|
+
onClick: () => onAutoplayButtonClick(() => onDotButtonClick(index)),
|
|
20036
|
+
className: cn(
|
|
20037
|
+
"h-3 w-3 rounded-full border-2 border-border transition-colors duration-200",
|
|
20038
|
+
index === selectedIndex ? "bg-primary" : "bg-transparent hover:bg-muted"
|
|
20039
|
+
)
|
|
20040
|
+
},
|
|
20041
|
+
index
|
|
20042
|
+
)) }),
|
|
20043
|
+
/* @__PURE__ */ jsx(
|
|
20044
|
+
"div",
|
|
20045
|
+
{
|
|
20046
|
+
className: cn(
|
|
20047
|
+
"relative h-2 w-40 max-w-[90%] justify-self-center self-center overflow-hidden rounded-[1.8rem] border-2 border-border transition-opacity duration-300 ease-in-out",
|
|
20048
|
+
"bg-card text-card-foreground",
|
|
20049
|
+
showAutoplayProgress ? "opacity-100" : "opacity-0",
|
|
20050
|
+
progressClassName
|
|
20051
|
+
),
|
|
20052
|
+
children: /* @__PURE__ */ jsx(
|
|
20053
|
+
"div",
|
|
20054
|
+
{
|
|
20055
|
+
className: "absolute bottom-0 top-0 -left-full w-full bg-primary",
|
|
20056
|
+
ref: progressNode,
|
|
20057
|
+
style: {
|
|
20058
|
+
animation: "autoplay-progress linear 1",
|
|
20059
|
+
animationPlayState: showAutoplayProgress ? "running" : "paused"
|
|
20060
|
+
}
|
|
20061
|
+
}
|
|
20062
|
+
)
|
|
19999
20063
|
}
|
|
20000
|
-
) }),
|
|
20001
|
-
slide.content && /* @__PURE__ */ jsx("div", { className: "mt-4", children: slide.content })
|
|
20002
|
-
]
|
|
20003
|
-
},
|
|
20004
|
-
index
|
|
20005
|
-
)) }) }),
|
|
20006
|
-
/* @__PURE__ */ jsxs("div", { className: cn("mx-auto mt-7 flex max-w-80 items-center justify-between gap-3", controlsClassName), children: [
|
|
20007
|
-
/* @__PURE__ */ jsx("div", { className: cn("flex justify-center gap-2", dotsClassName), children: scrollSnaps.map((_, index) => /* @__PURE__ */ jsx(
|
|
20008
|
-
"button",
|
|
20009
|
-
{
|
|
20010
|
-
type: "button",
|
|
20011
|
-
onClick: () => onAutoplayButtonClick(() => onDotButtonClick(index)),
|
|
20012
|
-
className: cn(
|
|
20013
|
-
"h-3 w-3 rounded-full border-2 border-border transition-colors duration-200",
|
|
20014
|
-
index === selectedIndex ? "bg-primary" : "bg-transparent hover:bg-muted"
|
|
20015
|
-
)
|
|
20016
|
-
},
|
|
20017
|
-
index
|
|
20018
|
-
)) }),
|
|
20019
|
-
/* @__PURE__ */ jsx(
|
|
20020
|
-
"div",
|
|
20021
|
-
{
|
|
20022
|
-
className: cn(
|
|
20023
|
-
"relative h-2 w-40 max-w-[90%] justify-self-center self-center overflow-hidden rounded-[1.8rem] border-2 border-border transition-opacity duration-300 ease-in-out",
|
|
20024
|
-
getNestedCardBg(background),
|
|
20025
|
-
showAutoplayProgress ? "opacity-100" : "opacity-0",
|
|
20026
|
-
progressClassName
|
|
20027
20064
|
),
|
|
20028
|
-
|
|
20029
|
-
|
|
20065
|
+
/* @__PURE__ */ jsx(
|
|
20066
|
+
Pressable,
|
|
20030
20067
|
{
|
|
20031
|
-
|
|
20032
|
-
|
|
20033
|
-
|
|
20034
|
-
|
|
20035
|
-
|
|
20036
|
-
}
|
|
20068
|
+
size: "icon",
|
|
20069
|
+
variant: "secondary",
|
|
20070
|
+
onClick: toggleAutoplay,
|
|
20071
|
+
asButton: true,
|
|
20072
|
+
children: autoplayIsPlaying ? /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/pause", size: 16 }) : /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/play", size: 16 })
|
|
20037
20073
|
}
|
|
20038
20074
|
)
|
|
20039
|
-
|
|
20040
|
-
|
|
20041
|
-
|
|
20042
|
-
Pressable,
|
|
20043
|
-
{
|
|
20044
|
-
size: "icon",
|
|
20045
|
-
variant: "secondary",
|
|
20046
|
-
onClick: toggleAutoplay,
|
|
20047
|
-
asButton: true,
|
|
20048
|
-
children: autoplayIsPlaying ? /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/pause", size: 16 }) : /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/play", size: 16 })
|
|
20049
|
-
}
|
|
20050
|
-
)
|
|
20051
|
-
] }),
|
|
20075
|
+
]
|
|
20076
|
+
}
|
|
20077
|
+
),
|
|
20052
20078
|
/* @__PURE__ */ jsx("style", { children: `
|
|
20053
20079
|
@keyframes autoplay-progress {
|
|
20054
20080
|
from {
|
|
@@ -105040,6 +105066,787 @@ var ABOUT_BLOCK_CONTRACTS = {
|
|
|
105040
105066
|
}
|
|
105041
105067
|
}
|
|
105042
105068
|
};
|
|
105069
|
+
var ARTICLE_EXAMPLE_IMAGE_URL = ABOUT_EXAMPLE_IMAGE_URL;
|
|
105070
|
+
var ARTICLE_MEDIA_NOTE = "All article media values must be absolute URLs to real image assets. Do not use relative paths, placeholder media variables, logos, favicons, or video URLs in image props.";
|
|
105071
|
+
var ARTICLE_TRACKING_NOTE = "When TOC or chapter tracking is enabled, every sections[].id or chapters[].id value must match a real heading id generated from markdownString content.";
|
|
105072
|
+
var ARTICLE_SOURCE_NOTE = "Article titles, authors, dates, summaries, chapter names, and body copy must come from source-backed article or blog data. Do not invent bylines or publication metadata.";
|
|
105073
|
+
var articleCapabilities = (...capabilities) => capabilities;
|
|
105074
|
+
var ARTICLE_EXAMPLE_MARKDOWN = `## Overview
|
|
105075
|
+
Modern article layouts need clear hierarchy, source-backed metadata, and media that supports the story.
|
|
105076
|
+
|
|
105077
|
+
## Implementation
|
|
105078
|
+
Use concise section headings that map to the navigation items and keep body copy grounded in the article source.
|
|
105079
|
+
|
|
105080
|
+
## Conclusion
|
|
105081
|
+
Close with a practical takeaway and one clear next action for readers.`;
|
|
105082
|
+
var ARTICLE_BLOCK_CONTRACTS = {
|
|
105083
|
+
"article-hero-prose": {
|
|
105084
|
+
exampleUsage: `
|
|
105085
|
+
<ArticleHeroProse
|
|
105086
|
+
post={{
|
|
105087
|
+
title: "The Evolution of Modern JavaScript",
|
|
105088
|
+
description: "A source-backed analysis of how modern JavaScript patterns changed production web development.",
|
|
105089
|
+
authorName: "Alex Rodriguez",
|
|
105090
|
+
authorHref: "#",
|
|
105091
|
+
authorImage: "${ARTICLE_EXAMPLE_IMAGE_URL}",
|
|
105092
|
+
image: "${ARTICLE_EXAMPLE_IMAGE_URL}",
|
|
105093
|
+
pubDate: new Date("2026-01-20"),
|
|
105094
|
+
}}
|
|
105095
|
+
dateFormat="MMMM d, yyyy"
|
|
105096
|
+
markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
|
|
105097
|
+
/>
|
|
105098
|
+
`.trim(),
|
|
105099
|
+
importantUsageNotes: "Use for a full long-form article with a strong hero image, author metadata, and rich prose. The post.image and post.authorImage props must be absolute image URLs only, never logos, favicons, placeholder variables, relative /images paths, or video media. Use markdownString for the article body and keep post metadata source-backed.",
|
|
105100
|
+
usageRequirements: {
|
|
105101
|
+
requiredProps: ["post", "markdownString"],
|
|
105102
|
+
propConstraints: {
|
|
105103
|
+
post: { required: true, note: "Source-backed article metadata object." },
|
|
105104
|
+
"post.title": { required: true, maxLength: 90 },
|
|
105105
|
+
"post.description": { required: true, maxLength: 220 },
|
|
105106
|
+
"post.authorName": {
|
|
105107
|
+
required: true,
|
|
105108
|
+
maxLength: 80,
|
|
105109
|
+
note: "Must identify a real article author or organization byline."
|
|
105110
|
+
},
|
|
105111
|
+
"post.pubDate": {
|
|
105112
|
+
required: true,
|
|
105113
|
+
note: "Use a real publication date as a Date-compatible value."
|
|
105114
|
+
},
|
|
105115
|
+
"post.image": {
|
|
105116
|
+
required: true,
|
|
105117
|
+
note: "Absolute hero image URL. IMAGE MEDIA ONLY."
|
|
105118
|
+
},
|
|
105119
|
+
"post.authorImage": {
|
|
105120
|
+
required: false,
|
|
105121
|
+
note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
|
|
105122
|
+
},
|
|
105123
|
+
markdownString: {
|
|
105124
|
+
required: true,
|
|
105125
|
+
maxLength: 12e3,
|
|
105126
|
+
note: "Long-form markdown article body."
|
|
105127
|
+
}
|
|
105128
|
+
},
|
|
105129
|
+
mediaSlots: {
|
|
105130
|
+
"post.image": imageSlot(
|
|
105131
|
+
"post.image",
|
|
105132
|
+
"Primary article hero image.",
|
|
105133
|
+
["hero", "feature"],
|
|
105134
|
+
"xlarge",
|
|
105135
|
+
true,
|
|
105136
|
+
"16:9"
|
|
105137
|
+
),
|
|
105138
|
+
"post.authorImage": imageSlot(
|
|
105139
|
+
"post.authorImage",
|
|
105140
|
+
"Author avatar or portrait image.",
|
|
105141
|
+
["profile", "avatar"],
|
|
105142
|
+
"small",
|
|
105143
|
+
false,
|
|
105144
|
+
"1:1"
|
|
105145
|
+
)
|
|
105146
|
+
},
|
|
105147
|
+
requiresSiteCapabilities: articleCapabilities(
|
|
105148
|
+
"blog_posts",
|
|
105149
|
+
"team_members",
|
|
105150
|
+
"media_library"
|
|
105151
|
+
),
|
|
105152
|
+
notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE]
|
|
105153
|
+
},
|
|
105154
|
+
exampleProps: {
|
|
105155
|
+
post: {
|
|
105156
|
+
title: "The Evolution of Modern JavaScript",
|
|
105157
|
+
description: "A source-backed analysis of how modern JavaScript patterns changed production web development.",
|
|
105158
|
+
authorName: "Alex Rodriguez",
|
|
105159
|
+
authorHref: "#",
|
|
105160
|
+
authorImage: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105161
|
+
image: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105162
|
+
pubDate: /* @__PURE__ */ new Date("2026-01-20")
|
|
105163
|
+
},
|
|
105164
|
+
dateFormat: "MMMM d, yyyy",
|
|
105165
|
+
markdownString: ARTICLE_EXAMPLE_MARKDOWN
|
|
105166
|
+
}
|
|
105167
|
+
},
|
|
105168
|
+
"article-sidebar-sticky": {
|
|
105169
|
+
exampleUsage: `
|
|
105170
|
+
<ArticleSidebarSticky
|
|
105171
|
+
backHref="#"
|
|
105172
|
+
backText="Back to Blog"
|
|
105173
|
+
title="Mastering React Server Components"
|
|
105174
|
+
authorName="Emma Thompson"
|
|
105175
|
+
authorImage="${ARTICLE_EXAMPLE_IMAGE_URL}"
|
|
105176
|
+
authorHref="#"
|
|
105177
|
+
publishDate="January 18, 2026"
|
|
105178
|
+
heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
|
|
105179
|
+
heroImageAlt="React Server Components architecture"
|
|
105180
|
+
markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
|
|
105181
|
+
/>
|
|
105182
|
+
`.trim(),
|
|
105183
|
+
importantUsageNotes: "Use for long-form articles where a sticky sidebar with back navigation and author attribution should remain visible. heroImageSrc and authorImage must be absolute image URLs only. Do not use placeholder media variables, relative /images paths, logos, favicons, or video URLs. Keep title, authorName, publishDate, and markdownString grounded in the source article.",
|
|
105184
|
+
usageRequirements: {
|
|
105185
|
+
requiredProps: [
|
|
105186
|
+
"title",
|
|
105187
|
+
"authorName",
|
|
105188
|
+
"publishDate",
|
|
105189
|
+
"heroImageSrc",
|
|
105190
|
+
"heroImageAlt",
|
|
105191
|
+
"markdownString"
|
|
105192
|
+
],
|
|
105193
|
+
propConstraints: {
|
|
105194
|
+
title: { required: true, maxLength: 90 },
|
|
105195
|
+
summary: {
|
|
105196
|
+
required: false,
|
|
105197
|
+
maxLength: 240,
|
|
105198
|
+
note: "Optional article summary displayed near the title."
|
|
105199
|
+
},
|
|
105200
|
+
authorName: {
|
|
105201
|
+
required: true,
|
|
105202
|
+
maxLength: 80,
|
|
105203
|
+
note: "Must identify a real article author or organization byline."
|
|
105204
|
+
},
|
|
105205
|
+
publishDate: {
|
|
105206
|
+
required: true,
|
|
105207
|
+
maxLength: 40,
|
|
105208
|
+
note: "Human-readable publication date from the source post."
|
|
105209
|
+
},
|
|
105210
|
+
heroImageSrc: {
|
|
105211
|
+
required: true,
|
|
105212
|
+
note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
|
|
105213
|
+
},
|
|
105214
|
+
heroImageAlt: { required: true, maxLength: 140 },
|
|
105215
|
+
authorImage: {
|
|
105216
|
+
required: false,
|
|
105217
|
+
note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
|
|
105218
|
+
},
|
|
105219
|
+
markdownString: {
|
|
105220
|
+
required: true,
|
|
105221
|
+
maxLength: 12e3,
|
|
105222
|
+
note: "Long-form markdown article body."
|
|
105223
|
+
}
|
|
105224
|
+
},
|
|
105225
|
+
mediaSlots: {
|
|
105226
|
+
heroImageSrc: imageSlot(
|
|
105227
|
+
"heroImageSrc",
|
|
105228
|
+
"Primary article hero image.",
|
|
105229
|
+
["hero", "feature"],
|
|
105230
|
+
"xlarge",
|
|
105231
|
+
true,
|
|
105232
|
+
"16:9"
|
|
105233
|
+
),
|
|
105234
|
+
authorImage: imageSlot(
|
|
105235
|
+
"authorImage",
|
|
105236
|
+
"Author avatar or portrait image.",
|
|
105237
|
+
["profile", "avatar"],
|
|
105238
|
+
"small",
|
|
105239
|
+
false,
|
|
105240
|
+
"1:1"
|
|
105241
|
+
)
|
|
105242
|
+
},
|
|
105243
|
+
requiresSiteCapabilities: articleCapabilities(
|
|
105244
|
+
"blog_posts",
|
|
105245
|
+
"team_members",
|
|
105246
|
+
"media_library"
|
|
105247
|
+
),
|
|
105248
|
+
notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE]
|
|
105249
|
+
},
|
|
105250
|
+
exampleProps: {
|
|
105251
|
+
backHref: "#",
|
|
105252
|
+
backText: "Back to Blog",
|
|
105253
|
+
title: "Mastering React Server Components",
|
|
105254
|
+
authorName: "Emma Thompson",
|
|
105255
|
+
authorImage: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105256
|
+
authorHref: "#",
|
|
105257
|
+
publishDate: "January 18, 2026",
|
|
105258
|
+
heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105259
|
+
heroImageAlt: "React Server Components architecture",
|
|
105260
|
+
markdownString: ARTICLE_EXAMPLE_MARKDOWN
|
|
105261
|
+
}
|
|
105262
|
+
},
|
|
105263
|
+
"article-toc-sidebar": {
|
|
105264
|
+
exampleUsage: `
|
|
105265
|
+
<ArticleTocSidebar
|
|
105266
|
+
category="Development"
|
|
105267
|
+
title="Building Scalable Systems"
|
|
105268
|
+
description="A source-backed guide to patterns that help applications grow from prototype to production."
|
|
105269
|
+
authorName="Michael Zhang"
|
|
105270
|
+
authorImage="${ARTICLE_EXAMPLE_IMAGE_URL}"
|
|
105271
|
+
authorHref="#"
|
|
105272
|
+
publishDate="January 12, 2026"
|
|
105273
|
+
readTime="20 min read"
|
|
105274
|
+
heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
|
|
105275
|
+
heroImageAlt="Scalable architecture planning session"
|
|
105276
|
+
sections={[
|
|
105277
|
+
{ id: "overview", title: "Overview" },
|
|
105278
|
+
{ id: "implementation", title: "Implementation" },
|
|
105279
|
+
{ id: "conclusion", title: "Conclusion" },
|
|
105280
|
+
]}
|
|
105281
|
+
ctaTitle="Explore More Guides"
|
|
105282
|
+
ctaDescription="Read the next source-backed article in this series."
|
|
105283
|
+
ctaActions={[{ label: "View Guides", href: "#", variant: "default" }]}
|
|
105284
|
+
markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
|
|
105285
|
+
/>
|
|
105286
|
+
`.trim(),
|
|
105287
|
+
importantUsageNotes: "Use for technical tutorials, guides, and long-form articles that need sticky table-of-contents navigation. sections[].id must map to real headings in markdownString when tracking is enabled. heroImageSrc and authorImage must be absolute image URLs only. Do not use placeholder media variables, relative /images paths, logos, favicons, or video URLs.",
|
|
105288
|
+
usageRequirements: {
|
|
105289
|
+
requiredProps: [
|
|
105290
|
+
"title",
|
|
105291
|
+
"description",
|
|
105292
|
+
"sections",
|
|
105293
|
+
"heroImageSrc",
|
|
105294
|
+
"heroImageAlt",
|
|
105295
|
+
"markdownString"
|
|
105296
|
+
],
|
|
105297
|
+
propConstraints: {
|
|
105298
|
+
title: { required: true, maxLength: 90 },
|
|
105299
|
+
description: { required: true, maxLength: 240 },
|
|
105300
|
+
category: { required: false, maxLength: 40 },
|
|
105301
|
+
authorName: {
|
|
105302
|
+
required: false,
|
|
105303
|
+
maxLength: 80,
|
|
105304
|
+
note: "Must identify a real article author or organization byline when supplied."
|
|
105305
|
+
},
|
|
105306
|
+
publishDate: { required: false, maxLength: 40 },
|
|
105307
|
+
readTime: { required: false, maxLength: 30 },
|
|
105308
|
+
sections: { required: true, minItems: 3, maxItems: 8 },
|
|
105309
|
+
"sections[].id": {
|
|
105310
|
+
required: true,
|
|
105311
|
+
note: "Must match a heading id in markdownString."
|
|
105312
|
+
},
|
|
105313
|
+
"sections[].title": { required: true, maxLength: 60 },
|
|
105314
|
+
heroImageSrc: {
|
|
105315
|
+
required: true,
|
|
105316
|
+
note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
|
|
105317
|
+
},
|
|
105318
|
+
heroImageAlt: { required: true, maxLength: 140 },
|
|
105319
|
+
authorImage: {
|
|
105320
|
+
required: false,
|
|
105321
|
+
note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
|
|
105322
|
+
},
|
|
105323
|
+
ctaActions: {
|
|
105324
|
+
required: false,
|
|
105325
|
+
maxItems: 2,
|
|
105326
|
+
note: "Use ActionConfig objects; do not use ctaText, ctaHref, or ctaButtonText."
|
|
105327
|
+
},
|
|
105328
|
+
markdownString: {
|
|
105329
|
+
required: true,
|
|
105330
|
+
maxLength: 12e3,
|
|
105331
|
+
note: "Long-form markdown article body."
|
|
105332
|
+
}
|
|
105333
|
+
},
|
|
105334
|
+
mediaSlots: {
|
|
105335
|
+
heroImageSrc: imageSlot(
|
|
105336
|
+
"heroImageSrc",
|
|
105337
|
+
"Primary article hero image.",
|
|
105338
|
+
["hero", "feature"],
|
|
105339
|
+
"xlarge",
|
|
105340
|
+
true,
|
|
105341
|
+
"16:9"
|
|
105342
|
+
),
|
|
105343
|
+
authorImage: imageSlot(
|
|
105344
|
+
"authorImage",
|
|
105345
|
+
"Author avatar or portrait image.",
|
|
105346
|
+
["profile", "avatar"],
|
|
105347
|
+
"small",
|
|
105348
|
+
false,
|
|
105349
|
+
"1:1"
|
|
105350
|
+
)
|
|
105351
|
+
},
|
|
105352
|
+
requiresSiteCapabilities: articleCapabilities(
|
|
105353
|
+
"blog_posts",
|
|
105354
|
+
"team_members",
|
|
105355
|
+
"media_library"
|
|
105356
|
+
),
|
|
105357
|
+
notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE, ARTICLE_TRACKING_NOTE]
|
|
105358
|
+
},
|
|
105359
|
+
exampleProps: {
|
|
105360
|
+
category: "Development",
|
|
105361
|
+
title: "Building Scalable Systems",
|
|
105362
|
+
description: "A source-backed guide to patterns that help applications grow from prototype to production.",
|
|
105363
|
+
authorName: "Michael Zhang",
|
|
105364
|
+
authorImage: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105365
|
+
authorHref: "#",
|
|
105366
|
+
publishDate: "January 12, 2026",
|
|
105367
|
+
readTime: "20 min read",
|
|
105368
|
+
heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105369
|
+
heroImageAlt: "Scalable architecture planning session",
|
|
105370
|
+
sections: [
|
|
105371
|
+
{ id: "overview", title: "Overview" },
|
|
105372
|
+
{ id: "implementation", title: "Implementation" },
|
|
105373
|
+
{ id: "conclusion", title: "Conclusion" }
|
|
105374
|
+
],
|
|
105375
|
+
ctaTitle: "Explore More Guides",
|
|
105376
|
+
ctaDescription: "Read the next source-backed article in this series.",
|
|
105377
|
+
ctaActions: [{ label: "View Guides", href: "#", variant: "default" }],
|
|
105378
|
+
markdownString: ARTICLE_EXAMPLE_MARKDOWN
|
|
105379
|
+
}
|
|
105380
|
+
},
|
|
105381
|
+
"article-breadcrumb-social": {
|
|
105382
|
+
exampleUsage: `
|
|
105383
|
+
<ArticleBreadcrumbSocial
|
|
105384
|
+
breadcrumbs={[
|
|
105385
|
+
{ label: "Blog", href: "#" },
|
|
105386
|
+
{ label: "Technology", href: "#" },
|
|
105387
|
+
]}
|
|
105388
|
+
currentPage="Building Scalable Web Applications"
|
|
105389
|
+
title="Building Scalable Web Applications in 2026"
|
|
105390
|
+
description="A source-backed article with breadcrumb navigation, sharing controls, and a tracked table of contents."
|
|
105391
|
+
author={{
|
|
105392
|
+
name: "Sarah Mitchell",
|
|
105393
|
+
image: "${ARTICLE_EXAMPLE_IMAGE_URL}",
|
|
105394
|
+
role: "Senior Software Architect",
|
|
105395
|
+
}}
|
|
105396
|
+
publishDate="January 15, 2026"
|
|
105397
|
+
readTime="12 min read"
|
|
105398
|
+
heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
|
|
105399
|
+
heroImageAlt="Modern web application architecture"
|
|
105400
|
+
sections={[
|
|
105401
|
+
{ id: "overview", title: "Overview" },
|
|
105402
|
+
{ id: "implementation", title: "Implementation" },
|
|
105403
|
+
{ id: "conclusion", title: "Conclusion" },
|
|
105404
|
+
]}
|
|
105405
|
+
markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
|
|
105406
|
+
/>
|
|
105407
|
+
`.trim(),
|
|
105408
|
+
importantUsageNotes: "Use for article pages that need breadcrumb navigation, social sharing controls, a sticky TOC, and optional back-to-top behavior. The author prop is an object with name, image, and role; do not use unsupported authorName, authorRole, or shareUrls props. heroImageSrc and author.image must be absolute image URLs only, never placeholder variables, relative /images paths, logos, favicons, or video URLs.",
|
|
105409
|
+
usageRequirements: {
|
|
105410
|
+
requiredProps: [
|
|
105411
|
+
"breadcrumbs",
|
|
105412
|
+
"currentPage",
|
|
105413
|
+
"title",
|
|
105414
|
+
"author",
|
|
105415
|
+
"heroImageSrc",
|
|
105416
|
+
"heroImageAlt",
|
|
105417
|
+
"sections",
|
|
105418
|
+
"markdownString"
|
|
105419
|
+
],
|
|
105420
|
+
propConstraints: {
|
|
105421
|
+
breadcrumbs: { required: true, minItems: 1, maxItems: 4 },
|
|
105422
|
+
"breadcrumbs[].label": { required: true, maxLength: 40 },
|
|
105423
|
+
"breadcrumbs[].href": { required: true },
|
|
105424
|
+
currentPage: { required: true, maxLength: 80 },
|
|
105425
|
+
title: { required: true, maxLength: 100 },
|
|
105426
|
+
description: { required: false, maxLength: 240 },
|
|
105427
|
+
author: { required: true, note: "Source-backed article author object." },
|
|
105428
|
+
"author.name": { required: true, maxLength: 80 },
|
|
105429
|
+
"author.role": { required: false, maxLength: 80 },
|
|
105430
|
+
"author.image": {
|
|
105431
|
+
required: false,
|
|
105432
|
+
note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
|
|
105433
|
+
},
|
|
105434
|
+
publishDate: { required: true, maxLength: 40 },
|
|
105435
|
+
readTime: { required: false, maxLength: 30 },
|
|
105436
|
+
sections: { required: true, minItems: 3, maxItems: 8 },
|
|
105437
|
+
"sections[].id": {
|
|
105438
|
+
required: true,
|
|
105439
|
+
note: "Must match a heading id in markdownString."
|
|
105440
|
+
},
|
|
105441
|
+
"sections[].title": { required: true, maxLength: 60 },
|
|
105442
|
+
heroImageSrc: {
|
|
105443
|
+
required: true,
|
|
105444
|
+
note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
|
|
105445
|
+
},
|
|
105446
|
+
heroImageAlt: { required: true, maxLength: 140 },
|
|
105447
|
+
markdownString: {
|
|
105448
|
+
required: true,
|
|
105449
|
+
maxLength: 12e3,
|
|
105450
|
+
note: "Long-form markdown article body."
|
|
105451
|
+
}
|
|
105452
|
+
},
|
|
105453
|
+
mediaSlots: {
|
|
105454
|
+
heroImageSrc: imageSlot(
|
|
105455
|
+
"heroImageSrc",
|
|
105456
|
+
"Primary article hero image.",
|
|
105457
|
+
["hero", "feature"],
|
|
105458
|
+
"xlarge",
|
|
105459
|
+
true,
|
|
105460
|
+
"16:9"
|
|
105461
|
+
),
|
|
105462
|
+
"author.image": imageSlot(
|
|
105463
|
+
"author.image",
|
|
105464
|
+
"Author avatar or portrait image.",
|
|
105465
|
+
["profile", "avatar"],
|
|
105466
|
+
"small",
|
|
105467
|
+
false,
|
|
105468
|
+
"1:1"
|
|
105469
|
+
)
|
|
105470
|
+
},
|
|
105471
|
+
requiresSiteCapabilities: articleCapabilities(
|
|
105472
|
+
"blog_posts",
|
|
105473
|
+
"team_members",
|
|
105474
|
+
"media_library"
|
|
105475
|
+
),
|
|
105476
|
+
notes: [
|
|
105477
|
+
ARTICLE_SOURCE_NOTE,
|
|
105478
|
+
ARTICLE_MEDIA_NOTE,
|
|
105479
|
+
ARTICLE_TRACKING_NOTE,
|
|
105480
|
+
"Do not use unsupported shareUrls, authorName, or authorRole props with this block."
|
|
105481
|
+
]
|
|
105482
|
+
},
|
|
105483
|
+
exampleProps: {
|
|
105484
|
+
breadcrumbs: [
|
|
105485
|
+
{ label: "Blog", href: "#" },
|
|
105486
|
+
{ label: "Technology", href: "#" }
|
|
105487
|
+
],
|
|
105488
|
+
currentPage: "Building Scalable Web Applications",
|
|
105489
|
+
title: "Building Scalable Web Applications in 2026",
|
|
105490
|
+
description: "A source-backed article with breadcrumb navigation, sharing controls, and a tracked table of contents.",
|
|
105491
|
+
author: {
|
|
105492
|
+
name: "Sarah Mitchell",
|
|
105493
|
+
image: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105494
|
+
role: "Senior Software Architect"
|
|
105495
|
+
},
|
|
105496
|
+
publishDate: "January 15, 2026",
|
|
105497
|
+
readTime: "12 min read",
|
|
105498
|
+
heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105499
|
+
heroImageAlt: "Modern web application architecture",
|
|
105500
|
+
sections: [
|
|
105501
|
+
{ id: "overview", title: "Overview" },
|
|
105502
|
+
{ id: "implementation", title: "Implementation" },
|
|
105503
|
+
{ id: "conclusion", title: "Conclusion" }
|
|
105504
|
+
],
|
|
105505
|
+
enableTocTracking: true,
|
|
105506
|
+
enableBackToTop: true,
|
|
105507
|
+
markdownString: ARTICLE_EXAMPLE_MARKDOWN
|
|
105508
|
+
}
|
|
105509
|
+
},
|
|
105510
|
+
"article-compact-toc": {
|
|
105511
|
+
exampleUsage: `
|
|
105512
|
+
<ArticleCompactToc
|
|
105513
|
+
breadcrumbs={[
|
|
105514
|
+
{ label: "Research", href: "#" },
|
|
105515
|
+
{ label: "Studies", href: "#" },
|
|
105516
|
+
]}
|
|
105517
|
+
currentPage="User Behavior Analysis"
|
|
105518
|
+
title="Understanding User Behavior in Modern Web Applications"
|
|
105519
|
+
authorName="Dr. Jennifer Park"
|
|
105520
|
+
authorHref="#"
|
|
105521
|
+
publishDate="January 22, 2026"
|
|
105522
|
+
readTime="8 min read"
|
|
105523
|
+
heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
|
|
105524
|
+
heroImageAlt="User behavior analytics workspace"
|
|
105525
|
+
sections={[
|
|
105526
|
+
{ id: "overview", title: "Overview" },
|
|
105527
|
+
{ id: "implementation", title: "Implementation" },
|
|
105528
|
+
{ id: "conclusion", title: "Conclusion" },
|
|
105529
|
+
]}
|
|
105530
|
+
markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
|
|
105531
|
+
/>
|
|
105532
|
+
`.trim(),
|
|
105533
|
+
importantUsageNotes: "Use for articles that need a compact, mobile-friendly table of contents and a focused reading column. sections[].id must map to real headings in markdownString when tracking is enabled. heroImageSrc must be an absolute image URL only, never a placeholder variable, relative /images path, logo, favicon, or video URL.",
|
|
105534
|
+
usageRequirements: {
|
|
105535
|
+
requiredProps: [
|
|
105536
|
+
"title",
|
|
105537
|
+
"authorName",
|
|
105538
|
+
"publishDate",
|
|
105539
|
+
"heroImageSrc",
|
|
105540
|
+
"heroImageAlt",
|
|
105541
|
+
"sections",
|
|
105542
|
+
"markdownString"
|
|
105543
|
+
],
|
|
105544
|
+
propConstraints: {
|
|
105545
|
+
breadcrumbs: { required: false, minItems: 1, maxItems: 4 },
|
|
105546
|
+
currentPage: { required: false, maxLength: 80 },
|
|
105547
|
+
title: { required: true, maxLength: 100 },
|
|
105548
|
+
description: { required: false, maxLength: 220 },
|
|
105549
|
+
authorName: {
|
|
105550
|
+
required: true,
|
|
105551
|
+
maxLength: 80,
|
|
105552
|
+
note: "Must identify a real article author or organization byline."
|
|
105553
|
+
},
|
|
105554
|
+
publishDate: { required: true, maxLength: 40 },
|
|
105555
|
+
readTime: { required: false, maxLength: 30 },
|
|
105556
|
+
sections: { required: true, minItems: 3, maxItems: 8 },
|
|
105557
|
+
"sections[].id": {
|
|
105558
|
+
required: true,
|
|
105559
|
+
note: "Must match a heading id in markdownString."
|
|
105560
|
+
},
|
|
105561
|
+
"sections[].title": { required: true, maxLength: 60 },
|
|
105562
|
+
heroImageSrc: {
|
|
105563
|
+
required: true,
|
|
105564
|
+
note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
|
|
105565
|
+
},
|
|
105566
|
+
heroImageAlt: { required: true, maxLength: 140 },
|
|
105567
|
+
markdownString: {
|
|
105568
|
+
required: true,
|
|
105569
|
+
maxLength: 12e3,
|
|
105570
|
+
note: "Long-form markdown article body."
|
|
105571
|
+
}
|
|
105572
|
+
},
|
|
105573
|
+
mediaSlots: {
|
|
105574
|
+
heroImageSrc: imageSlot(
|
|
105575
|
+
"heroImageSrc",
|
|
105576
|
+
"Primary article hero image.",
|
|
105577
|
+
["hero", "feature"],
|
|
105578
|
+
"xlarge",
|
|
105579
|
+
true,
|
|
105580
|
+
"16:9"
|
|
105581
|
+
)
|
|
105582
|
+
},
|
|
105583
|
+
requiresSiteCapabilities: articleCapabilities(
|
|
105584
|
+
"blog_posts",
|
|
105585
|
+
"team_members",
|
|
105586
|
+
"media_library"
|
|
105587
|
+
),
|
|
105588
|
+
notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE, ARTICLE_TRACKING_NOTE]
|
|
105589
|
+
},
|
|
105590
|
+
exampleProps: {
|
|
105591
|
+
breadcrumbs: [
|
|
105592
|
+
{ label: "Research", href: "#" },
|
|
105593
|
+
{ label: "Studies", href: "#" }
|
|
105594
|
+
],
|
|
105595
|
+
currentPage: "User Behavior Analysis",
|
|
105596
|
+
title: "Understanding User Behavior in Modern Web Applications",
|
|
105597
|
+
authorName: "Dr. Jennifer Park",
|
|
105598
|
+
authorHref: "#",
|
|
105599
|
+
publishDate: "January 22, 2026",
|
|
105600
|
+
readTime: "8 min read",
|
|
105601
|
+
heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105602
|
+
heroImageAlt: "User behavior analytics workspace",
|
|
105603
|
+
sections: [
|
|
105604
|
+
{ id: "overview", title: "Overview" },
|
|
105605
|
+
{ id: "implementation", title: "Implementation" },
|
|
105606
|
+
{ id: "conclusion", title: "Conclusion" }
|
|
105607
|
+
],
|
|
105608
|
+
enableTocTracking: true,
|
|
105609
|
+
markdownString: ARTICLE_EXAMPLE_MARKDOWN
|
|
105610
|
+
}
|
|
105611
|
+
},
|
|
105612
|
+
"article-chapters-author": {
|
|
105613
|
+
exampleUsage: `
|
|
105614
|
+
<ArticleChaptersAuthor
|
|
105615
|
+
breadcrumbs={[
|
|
105616
|
+
{ label: "Resources", href: "#" },
|
|
105617
|
+
{ label: "Guides", href: "#" },
|
|
105618
|
+
]}
|
|
105619
|
+
currentPage="Design Patterns"
|
|
105620
|
+
title="The Complete Guide to Design Patterns"
|
|
105621
|
+
subtitle="A source-backed guide to patterns that power modern software architecture"
|
|
105622
|
+
heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
|
|
105623
|
+
heroImageAlt="Software architecture planning workspace"
|
|
105624
|
+
chapters={[
|
|
105625
|
+
{ id: "overview", number: 1, title: "Overview" },
|
|
105626
|
+
{ id: "implementation", number: 2, title: "Implementation" },
|
|
105627
|
+
{ id: "conclusion", number: 3, title: "Conclusion" },
|
|
105628
|
+
]}
|
|
105629
|
+
author={{
|
|
105630
|
+
name: "Dr. Marcus Chen",
|
|
105631
|
+
role: "Principal Engineer",
|
|
105632
|
+
image: "${ARTICLE_EXAMPLE_IMAGE_URL}",
|
|
105633
|
+
bio: "Marcus writes source-backed guides on software architecture and distributed systems.",
|
|
105634
|
+
socialLinks: { linkedin: "https://linkedin.com" },
|
|
105635
|
+
}}
|
|
105636
|
+
conclusionTitle="Continue Learning"
|
|
105637
|
+
conclusionDescription="Read the next guide in this source-backed series."
|
|
105638
|
+
conclusionActions={[
|
|
105639
|
+
{ label: "View Guides", href: "#", variant: "default" },
|
|
105640
|
+
{ label: "Download Notes", href: "#", variant: "outline" },
|
|
105641
|
+
]}
|
|
105642
|
+
markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
|
|
105643
|
+
/>
|
|
105644
|
+
`.trim(),
|
|
105645
|
+
importantUsageNotes: "Use for comprehensive guide-style articles organized into numbered chapters with an author bio and conclusion CTA. chapters[].id must map to real headings in markdownString when tracking is enabled. heroImageSrc and author.image must be absolute image URLs only, never placeholder variables, relative /images paths, logos, favicons, or video URLs. Author identity, bio, and social links must be source-backed.",
|
|
105646
|
+
usageRequirements: {
|
|
105647
|
+
requiredProps: [
|
|
105648
|
+
"title",
|
|
105649
|
+
"subtitle",
|
|
105650
|
+
"chapters",
|
|
105651
|
+
"author",
|
|
105652
|
+
"heroImageSrc",
|
|
105653
|
+
"heroImageAlt",
|
|
105654
|
+
"markdownString"
|
|
105655
|
+
],
|
|
105656
|
+
propConstraints: {
|
|
105657
|
+
breadcrumbs: { required: false, minItems: 1, maxItems: 4 },
|
|
105658
|
+
currentPage: { required: false, maxLength: 80 },
|
|
105659
|
+
title: { required: true, maxLength: 100 },
|
|
105660
|
+
subtitle: { required: true, maxLength: 180 },
|
|
105661
|
+
chapters: { required: true, minItems: 3, maxItems: 7 },
|
|
105662
|
+
"chapters[].id": {
|
|
105663
|
+
required: true,
|
|
105664
|
+
note: "Must match a heading id in markdownString."
|
|
105665
|
+
},
|
|
105666
|
+
"chapters[].number": { required: true },
|
|
105667
|
+
"chapters[].title": { required: true, maxLength: 60 },
|
|
105668
|
+
author: {
|
|
105669
|
+
required: true,
|
|
105670
|
+
note: "Source-backed author bio object."
|
|
105671
|
+
},
|
|
105672
|
+
"author.name": { required: true, maxLength: 80 },
|
|
105673
|
+
"author.role": { required: false, maxLength: 80 },
|
|
105674
|
+
"author.bio": { required: false, maxLength: 320 },
|
|
105675
|
+
"author.image": {
|
|
105676
|
+
required: false,
|
|
105677
|
+
note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
|
|
105678
|
+
},
|
|
105679
|
+
heroImageSrc: {
|
|
105680
|
+
required: true,
|
|
105681
|
+
note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
|
|
105682
|
+
},
|
|
105683
|
+
heroImageAlt: { required: true, maxLength: 140 },
|
|
105684
|
+
conclusionActions: {
|
|
105685
|
+
required: false,
|
|
105686
|
+
maxItems: 2,
|
|
105687
|
+
note: "Use ActionConfig objects with label, href, and variant."
|
|
105688
|
+
},
|
|
105689
|
+
markdownString: {
|
|
105690
|
+
required: true,
|
|
105691
|
+
maxLength: 14e3,
|
|
105692
|
+
note: "Long-form markdown article body."
|
|
105693
|
+
}
|
|
105694
|
+
},
|
|
105695
|
+
mediaSlots: {
|
|
105696
|
+
heroImageSrc: imageSlot(
|
|
105697
|
+
"heroImageSrc",
|
|
105698
|
+
"Primary article hero image.",
|
|
105699
|
+
["hero", "feature"],
|
|
105700
|
+
"xlarge",
|
|
105701
|
+
true,
|
|
105702
|
+
"16:9"
|
|
105703
|
+
),
|
|
105704
|
+
"author.image": imageSlot(
|
|
105705
|
+
"author.image",
|
|
105706
|
+
"Author avatar or portrait image.",
|
|
105707
|
+
["profile", "avatar"],
|
|
105708
|
+
"small",
|
|
105709
|
+
false,
|
|
105710
|
+
"1:1"
|
|
105711
|
+
)
|
|
105712
|
+
},
|
|
105713
|
+
requiresSiteCapabilities: articleCapabilities(
|
|
105714
|
+
"blog_posts",
|
|
105715
|
+
"team_members",
|
|
105716
|
+
"media_library"
|
|
105717
|
+
),
|
|
105718
|
+
notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE, ARTICLE_TRACKING_NOTE]
|
|
105719
|
+
},
|
|
105720
|
+
exampleProps: {
|
|
105721
|
+
breadcrumbs: [
|
|
105722
|
+
{ label: "Resources", href: "#" },
|
|
105723
|
+
{ label: "Guides", href: "#" }
|
|
105724
|
+
],
|
|
105725
|
+
currentPage: "Design Patterns",
|
|
105726
|
+
title: "The Complete Guide to Design Patterns",
|
|
105727
|
+
subtitle: "A source-backed guide to patterns that power modern software architecture",
|
|
105728
|
+
heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105729
|
+
heroImageAlt: "Software architecture planning workspace",
|
|
105730
|
+
chapters: [
|
|
105731
|
+
{ id: "overview", number: 1, title: "Overview" },
|
|
105732
|
+
{ id: "implementation", number: 2, title: "Implementation" },
|
|
105733
|
+
{ id: "conclusion", number: 3, title: "Conclusion" }
|
|
105734
|
+
],
|
|
105735
|
+
author: {
|
|
105736
|
+
name: "Dr. Marcus Chen",
|
|
105737
|
+
role: "Principal Engineer",
|
|
105738
|
+
image: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105739
|
+
bio: "Marcus writes source-backed guides on software architecture and distributed systems.",
|
|
105740
|
+
socialLinks: { linkedin: "https://linkedin.com" }
|
|
105741
|
+
},
|
|
105742
|
+
conclusionTitle: "Continue Learning",
|
|
105743
|
+
conclusionDescription: "Read the next guide in this source-backed series.",
|
|
105744
|
+
conclusionActions: [
|
|
105745
|
+
{ label: "View Guides", href: "#", variant: "default" },
|
|
105746
|
+
{ label: "Download Notes", href: "#", variant: "outline" }
|
|
105747
|
+
],
|
|
105748
|
+
enableChapterTracking: true,
|
|
105749
|
+
markdownString: ARTICLE_EXAMPLE_MARKDOWN
|
|
105750
|
+
}
|
|
105751
|
+
},
|
|
105752
|
+
"article-split-animated": {
|
|
105753
|
+
exampleUsage: `
|
|
105754
|
+
<ArticleSplitAnimated
|
|
105755
|
+
image="${ARTICLE_EXAMPLE_IMAGE_URL}"
|
|
105756
|
+
imageAlt="AI-assisted development workflow"
|
|
105757
|
+
category="Artificial Intelligence"
|
|
105758
|
+
categoryHref="#"
|
|
105759
|
+
title="The Future of AI-Assisted Development"
|
|
105760
|
+
description="A source-backed featured article about how AI is changing software delivery workflows."
|
|
105761
|
+
authorName="Dr. Raj Patel"
|
|
105762
|
+
authorImage="${ARTICLE_EXAMPLE_IMAGE_URL}"
|
|
105763
|
+
authorRole="AI Research Lead"
|
|
105764
|
+
authorHref="#"
|
|
105765
|
+
publishDate="January 25, 2026"
|
|
105766
|
+
readTime="15 min read"
|
|
105767
|
+
ctaActions={[{ label: "Read Full Article", href: "#", variant: "default", size: "lg" }]}
|
|
105768
|
+
/>
|
|
105769
|
+
`.trim(),
|
|
105770
|
+
importantUsageNotes: "Use for a featured article or hero post preview, not as a full article body. image and authorImage must be absolute image URLs only, never placeholder variables, relative /images paths, logos, favicons, or video URLs. Use ctaActions ActionConfig objects; this component does not accept ctaText or ctaHref props.",
|
|
105771
|
+
usageRequirements: {
|
|
105772
|
+
requiredProps: ["title", "description", "image", "imageAlt", "ctaActions"],
|
|
105773
|
+
propConstraints: {
|
|
105774
|
+
title: { required: true, maxLength: 90 },
|
|
105775
|
+
description: { required: true, maxLength: 220 },
|
|
105776
|
+
image: {
|
|
105777
|
+
required: true,
|
|
105778
|
+
note: "Absolute featured article image URL. IMAGE MEDIA ONLY."
|
|
105779
|
+
},
|
|
105780
|
+
imageAlt: { required: true, maxLength: 140 },
|
|
105781
|
+
category: { required: false, maxLength: 50 },
|
|
105782
|
+
authorName: {
|
|
105783
|
+
required: false,
|
|
105784
|
+
maxLength: 80,
|
|
105785
|
+
note: "Must identify a real article author or organization byline when supplied."
|
|
105786
|
+
},
|
|
105787
|
+
authorImage: {
|
|
105788
|
+
required: false,
|
|
105789
|
+
note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
|
|
105790
|
+
},
|
|
105791
|
+
authorRole: { required: false, maxLength: 80 },
|
|
105792
|
+
publishDate: { required: false, maxLength: 40 },
|
|
105793
|
+
readTime: { required: false, maxLength: 30 },
|
|
105794
|
+
ctaActions: {
|
|
105795
|
+
required: true,
|
|
105796
|
+
minItems: 1,
|
|
105797
|
+
maxItems: 2,
|
|
105798
|
+
note: "Use ActionConfig objects; do not use ctaText or ctaHref."
|
|
105799
|
+
}
|
|
105800
|
+
},
|
|
105801
|
+
mediaSlots: {
|
|
105802
|
+
image: imageSlot(
|
|
105803
|
+
"image",
|
|
105804
|
+
"Featured article image.",
|
|
105805
|
+
["hero", "feature"],
|
|
105806
|
+
"xlarge",
|
|
105807
|
+
true,
|
|
105808
|
+
"16:9"
|
|
105809
|
+
),
|
|
105810
|
+
authorImage: imageSlot(
|
|
105811
|
+
"authorImage",
|
|
105812
|
+
"Author avatar or portrait image.",
|
|
105813
|
+
["profile", "avatar"],
|
|
105814
|
+
"small",
|
|
105815
|
+
false,
|
|
105816
|
+
"1:1"
|
|
105817
|
+
)
|
|
105818
|
+
},
|
|
105819
|
+
requiresSiteCapabilities: articleCapabilities(
|
|
105820
|
+
"blog_posts",
|
|
105821
|
+
"team_members",
|
|
105822
|
+
"media_library"
|
|
105823
|
+
),
|
|
105824
|
+
notes: [
|
|
105825
|
+
ARTICLE_SOURCE_NOTE,
|
|
105826
|
+
ARTICLE_MEDIA_NOTE,
|
|
105827
|
+
"Use ctaActions instead of unsupported ctaText or ctaHref props."
|
|
105828
|
+
]
|
|
105829
|
+
},
|
|
105830
|
+
exampleProps: {
|
|
105831
|
+
image: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105832
|
+
imageAlt: "AI-assisted development workflow",
|
|
105833
|
+
category: "Artificial Intelligence",
|
|
105834
|
+
categoryHref: "#",
|
|
105835
|
+
title: "The Future of AI-Assisted Development",
|
|
105836
|
+
description: "A source-backed featured article about how AI is changing software delivery workflows.",
|
|
105837
|
+
authorName: "Dr. Raj Patel",
|
|
105838
|
+
authorImage: ARTICLE_EXAMPLE_IMAGE_URL,
|
|
105839
|
+
authorRole: "AI Research Lead",
|
|
105840
|
+
authorHref: "#",
|
|
105841
|
+
publishDate: "January 25, 2026",
|
|
105842
|
+
readTime: "15 min read",
|
|
105843
|
+
ctaActions: [
|
|
105844
|
+
{ label: "Read Full Article", href: "#", variant: "default", size: "lg" }
|
|
105845
|
+
],
|
|
105846
|
+
enableAnimations: true
|
|
105847
|
+
}
|
|
105848
|
+
}
|
|
105849
|
+
};
|
|
105043
105850
|
var BLOCK_REGISTRY = {
|
|
105044
105851
|
"alternating-blocks": {
|
|
105045
105852
|
id: "alternating-blocks",
|
|
@@ -111598,18 +112405,7 @@ var BLOCK_REGISTRY = {
|
|
|
111598
112405
|
category: "article",
|
|
111599
112406
|
component: ArticleHeroProseComponent,
|
|
111600
112407
|
props: "ArticleHeroProseProps",
|
|
111601
|
-
|
|
111602
|
-
<ArticleHeroProse
|
|
111603
|
-
post={{
|
|
111604
|
-
title: "Designing websites faster with Opensite AI",
|
|
111605
|
-
authorName: "John Doe",
|
|
111606
|
-
image: "/images/hero.jpg",
|
|
111607
|
-
pubDate: new Date(),
|
|
111608
|
-
description: "A step-by-step guide to building modern websites.",
|
|
111609
|
-
authorImage: "/images/author.jpg"
|
|
111610
|
-
}}
|
|
111611
|
-
/>
|
|
111612
|
-
`.trim()
|
|
112408
|
+
...ARTICLE_BLOCK_CONTRACTS["article-hero-prose"]
|
|
111613
112409
|
},
|
|
111614
112410
|
"article-sidebar-sticky": {
|
|
111615
112411
|
id: "article-sidebar-sticky",
|
|
@@ -111629,16 +112425,7 @@ var BLOCK_REGISTRY = {
|
|
|
111629
112425
|
category: "article",
|
|
111630
112426
|
component: ArticleSidebarStickyComponent,
|
|
111631
112427
|
props: "ArticleSidebarStickyProps",
|
|
111632
|
-
|
|
111633
|
-
<ArticleSidebarSticky
|
|
111634
|
-
title="The Art of Modern Web Development"
|
|
111635
|
-
authorName="Sarah Johnson"
|
|
111636
|
-
authorImage="/images/author.jpg"
|
|
111637
|
-
publishDate="December 15, 2024"
|
|
111638
|
-
backHref="/blog"
|
|
111639
|
-
backText="Back to Blog"
|
|
111640
|
-
/>
|
|
111641
|
-
`.trim()
|
|
112428
|
+
...ARTICLE_BLOCK_CONTRACTS["article-sidebar-sticky"]
|
|
111642
112429
|
},
|
|
111643
112430
|
"article-toc-sidebar": {
|
|
111644
112431
|
id: "article-toc-sidebar",
|
|
@@ -111659,19 +112446,7 @@ var BLOCK_REGISTRY = {
|
|
|
111659
112446
|
category: "article",
|
|
111660
112447
|
component: ArticleTocSidebarComponent,
|
|
111661
112448
|
props: "ArticleTocSidebarProps",
|
|
111662
|
-
|
|
111663
|
-
<ArticleTocSidebar
|
|
111664
|
-
title="Building Scalable Applications"
|
|
111665
|
-
description="Learn modern architectural patterns."
|
|
111666
|
-
authorName="Alex Chen"
|
|
111667
|
-
sections={[
|
|
111668
|
-
{ id: "introduction", title: "Introduction" },
|
|
111669
|
-
{ id: "getting-started", title: "Getting Started" }
|
|
111670
|
-
]}
|
|
111671
|
-
ctaTitle="Ready to build?"
|
|
111672
|
-
ctaButtonText="Get Started"
|
|
111673
|
-
/>
|
|
111674
|
-
`.trim()
|
|
112449
|
+
...ARTICLE_BLOCK_CONTRACTS["article-toc-sidebar"]
|
|
111675
112450
|
},
|
|
111676
112451
|
"article-breadcrumb-social": {
|
|
111677
112452
|
id: "article-breadcrumb-social",
|
|
@@ -111691,20 +112466,7 @@ var BLOCK_REGISTRY = {
|
|
|
111691
112466
|
category: "article",
|
|
111692
112467
|
component: ArticleBreadcrumbSocialComponent,
|
|
111693
112468
|
props: "ArticleBreadcrumbSocialProps",
|
|
111694
|
-
|
|
111695
|
-
<ArticleBreadcrumbSocial
|
|
111696
|
-
title="Mastering Performance Optimization"
|
|
111697
|
-
authorName="Emily Rodriguez"
|
|
111698
|
-
authorRole="Senior Engineer"
|
|
111699
|
-
publishDate="January 10, 2025"
|
|
111700
|
-
readTime="15 min read"
|
|
111701
|
-
breadcrumbs={[
|
|
111702
|
-
{ label: "Home", href: "/" },
|
|
111703
|
-
{ label: "Blog", href: "/blog" }
|
|
111704
|
-
]}
|
|
111705
|
-
shareUrls={{ twitter: "#", linkedin: "#" }}
|
|
111706
|
-
/>
|
|
111707
|
-
`.trim()
|
|
112469
|
+
...ARTICLE_BLOCK_CONTRACTS["article-breadcrumb-social"]
|
|
111708
112470
|
},
|
|
111709
112471
|
"article-compact-toc": {
|
|
111710
112472
|
id: "article-compact-toc",
|
|
@@ -111724,18 +112486,7 @@ var BLOCK_REGISTRY = {
|
|
|
111724
112486
|
category: "article",
|
|
111725
112487
|
component: ArticleCompactTocComponent,
|
|
111726
112488
|
props: "ArticleCompactTocProps",
|
|
111727
|
-
|
|
111728
|
-
<ArticleCompactToc
|
|
111729
|
-
title="Understanding User Behavior"
|
|
111730
|
-
authorName="Dr. Michael Chen"
|
|
111731
|
-
publishDate="January 12, 2025"
|
|
111732
|
-
readTime="18 min read"
|
|
111733
|
-
sections={[
|
|
111734
|
-
{ id: "introduction", title: "Introduction" },
|
|
111735
|
-
{ id: "methodology", title: "Methodology" }
|
|
111736
|
-
]}
|
|
111737
|
-
/>
|
|
111738
|
-
`.trim()
|
|
112489
|
+
...ARTICLE_BLOCK_CONTRACTS["article-compact-toc"]
|
|
111739
112490
|
},
|
|
111740
112491
|
"article-chapters-author": {
|
|
111741
112492
|
id: "article-chapters-author",
|
|
@@ -111756,22 +112507,7 @@ var BLOCK_REGISTRY = {
|
|
|
111756
112507
|
category: "article",
|
|
111757
112508
|
component: ArticleChaptersAuthorComponent,
|
|
111758
112509
|
props: "ArticleChaptersAuthorProps",
|
|
111759
|
-
|
|
111760
|
-
<ArticleChaptersAuthor
|
|
111761
|
-
title="A Comprehensive Guide to Design Patterns"
|
|
111762
|
-
subtitle="Master essential patterns every engineer should know"
|
|
111763
|
-
chapters={[
|
|
111764
|
-
{ id: "chapter-1", number: 1, title: "The Foundation" },
|
|
111765
|
-
{ id: "chapter-2", number: 2, title: "Building Blocks" }
|
|
111766
|
-
]}
|
|
111767
|
-
author={{
|
|
111768
|
-
name: "Jessica Williams",
|
|
111769
|
-
role: "Principal Engineer",
|
|
111770
|
-
image: "/images/author.jpg",
|
|
111771
|
-
bio: "15+ years of experience in software architecture."
|
|
111772
|
-
}}
|
|
111773
|
-
/>
|
|
111774
|
-
`.trim()
|
|
112510
|
+
...ARTICLE_BLOCK_CONTRACTS["article-chapters-author"]
|
|
111775
112511
|
},
|
|
111776
112512
|
"article-split-animated": {
|
|
111777
112513
|
id: "article-split-animated",
|
|
@@ -111791,18 +112527,7 @@ var BLOCK_REGISTRY = {
|
|
|
111791
112527
|
category: "article",
|
|
111792
112528
|
component: ArticleSplitAnimatedComponent,
|
|
111793
112529
|
props: "ArticleSplitAnimatedProps",
|
|
111794
|
-
|
|
111795
|
-
<ArticleSplitAnimated
|
|
111796
|
-
title="The Evolution of Design Systems"
|
|
111797
|
-
description="Explore how design systems have transformed..."
|
|
111798
|
-
image="/images/featured.jpg"
|
|
111799
|
-
authorName="David Park"
|
|
111800
|
-
authorRole="Design Lead"
|
|
111801
|
-
category="Design"
|
|
111802
|
-
ctaText="Read Full Article"
|
|
111803
|
-
ctaHref="/article/design-systems"
|
|
111804
|
-
/>
|
|
111805
|
-
`.trim()
|
|
112530
|
+
...ARTICLE_BLOCK_CONTRACTS["article-split-animated"]
|
|
111806
112531
|
},
|
|
111807
112532
|
// FAQ Components
|
|
111808
112533
|
"faq-simple-accordion": {
|