@opensite/ui 3.6.0 → 3.6.2

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/registry.js CHANGED
@@ -103679,7 +103679,7 @@ var ABOUT_BLOCK_CONTRACTS = {
103679
103679
  )
103680
103680
  },
103681
103681
  requiresSiteCapabilities: aboutCapabilities(
103682
- "metrics_or_stats",
103682
+ "stats_or_metrics",
103683
103683
  "reviews_or_testimonials",
103684
103684
  "media_library"
103685
103685
  ),
@@ -103760,7 +103760,7 @@ var ABOUT_BLOCK_CONTRACTS = {
103760
103760
  "companies[]": logoSlot("companies[]", "Customer or partner logo.")
103761
103761
  },
103762
103762
  requiresSiteCapabilities: aboutCapabilities(
103763
- "metrics_or_stats",
103763
+ "stats_or_metrics",
103764
103764
  "media_library"
103765
103765
  ),
103766
103766
  notes: [ABOUT_MEDIA_NOTE]
@@ -103884,7 +103884,7 @@ var ABOUT_BLOCK_CONTRACTS = {
103884
103884
  "logos[]": logoSlot("logos[]", "Customer or partner logo.")
103885
103885
  },
103886
103886
  requiresSiteCapabilities: aboutCapabilities(
103887
- "metrics_or_stats",
103887
+ "stats_or_metrics",
103888
103888
  "media_library"
103889
103889
  ),
103890
103890
  notes: [ABOUT_MEDIA_NOTE]
@@ -104276,7 +104276,7 @@ var ABOUT_BLOCK_CONTRACTS = {
104276
104276
  features: { minItems: 2, maxItems: 4 }
104277
104277
  },
104278
104278
  mediaSlots: {},
104279
- requiresSiteCapabilities: aboutCapabilities("metrics_or_stats"),
104279
+ requiresSiteCapabilities: aboutCapabilities("stats_or_metrics"),
104280
104280
  notes: ["Do not fabricate metrics or quantified claims."]
104281
104281
  },
104282
104282
  exampleProps: {
@@ -104607,7 +104607,7 @@ var ABOUT_BLOCK_CONTRACTS = {
104607
104607
  ["feature", "hero"]
104608
104608
  )
104609
104609
  },
104610
- requiresSiteCapabilities: aboutCapabilities("contact_info", "media_library"),
104610
+ requiresSiteCapabilities: aboutCapabilities("locations", "media_library"),
104611
104611
  notes: [ABOUT_MEDIA_NOTE, "Location and hours data must be sourced."]
104612
104612
  },
104613
104613
  exampleProps: {
@@ -104869,7 +104869,7 @@ var ABOUT_BLOCK_CONTRACTS = {
104869
104869
  )
104870
104870
  },
104871
104871
  requiresSiteCapabilities: aboutCapabilities(
104872
- "metrics_or_stats",
104872
+ "stats_or_metrics",
104873
104873
  "media_library"
104874
104874
  ),
104875
104875
  notes: [ABOUT_MEDIA_NOTE, "Community impact claims must be sourced."]
@@ -105040,6 +105040,787 @@ var ABOUT_BLOCK_CONTRACTS = {
105040
105040
  }
105041
105041
  }
105042
105042
  };
105043
+ var ARTICLE_EXAMPLE_IMAGE_URL = ABOUT_EXAMPLE_IMAGE_URL;
105044
+ 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.";
105045
+ 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.";
105046
+ 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.";
105047
+ var articleCapabilities = (...capabilities) => capabilities;
105048
+ var ARTICLE_EXAMPLE_MARKDOWN = `## Overview
105049
+ Modern article layouts need clear hierarchy, source-backed metadata, and media that supports the story.
105050
+
105051
+ ## Implementation
105052
+ Use concise section headings that map to the navigation items and keep body copy grounded in the article source.
105053
+
105054
+ ## Conclusion
105055
+ Close with a practical takeaway and one clear next action for readers.`;
105056
+ var ARTICLE_BLOCK_CONTRACTS = {
105057
+ "article-hero-prose": {
105058
+ exampleUsage: `
105059
+ <ArticleHeroProse
105060
+ post={{
105061
+ title: "The Evolution of Modern JavaScript",
105062
+ description: "A source-backed analysis of how modern JavaScript patterns changed production web development.",
105063
+ authorName: "Alex Rodriguez",
105064
+ authorHref: "#",
105065
+ authorImage: "${ARTICLE_EXAMPLE_IMAGE_URL}",
105066
+ image: "${ARTICLE_EXAMPLE_IMAGE_URL}",
105067
+ pubDate: new Date("2026-01-20"),
105068
+ }}
105069
+ dateFormat="MMMM d, yyyy"
105070
+ markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
105071
+ />
105072
+ `.trim(),
105073
+ 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.",
105074
+ usageRequirements: {
105075
+ requiredProps: ["post", "markdownString"],
105076
+ propConstraints: {
105077
+ post: { required: true, note: "Source-backed article metadata object." },
105078
+ "post.title": { required: true, maxLength: 90 },
105079
+ "post.description": { required: true, maxLength: 220 },
105080
+ "post.authorName": {
105081
+ required: true,
105082
+ maxLength: 80,
105083
+ note: "Must identify a real article author or organization byline."
105084
+ },
105085
+ "post.pubDate": {
105086
+ required: true,
105087
+ note: "Use a real publication date as a Date-compatible value."
105088
+ },
105089
+ "post.image": {
105090
+ required: true,
105091
+ note: "Absolute hero image URL. IMAGE MEDIA ONLY."
105092
+ },
105093
+ "post.authorImage": {
105094
+ required: false,
105095
+ note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
105096
+ },
105097
+ markdownString: {
105098
+ required: true,
105099
+ maxLength: 12e3,
105100
+ note: "Long-form markdown article body."
105101
+ }
105102
+ },
105103
+ mediaSlots: {
105104
+ "post.image": imageSlot(
105105
+ "post.image",
105106
+ "Primary article hero image.",
105107
+ ["hero", "feature"],
105108
+ "xlarge",
105109
+ true,
105110
+ "16:9"
105111
+ ),
105112
+ "post.authorImage": imageSlot(
105113
+ "post.authorImage",
105114
+ "Author avatar or portrait image.",
105115
+ ["profile", "avatar"],
105116
+ "small",
105117
+ false,
105118
+ "1:1"
105119
+ )
105120
+ },
105121
+ requiresSiteCapabilities: articleCapabilities(
105122
+ "blog_posts",
105123
+ "team_members",
105124
+ "media_library"
105125
+ ),
105126
+ notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE]
105127
+ },
105128
+ exampleProps: {
105129
+ post: {
105130
+ title: "The Evolution of Modern JavaScript",
105131
+ description: "A source-backed analysis of how modern JavaScript patterns changed production web development.",
105132
+ authorName: "Alex Rodriguez",
105133
+ authorHref: "#",
105134
+ authorImage: ARTICLE_EXAMPLE_IMAGE_URL,
105135
+ image: ARTICLE_EXAMPLE_IMAGE_URL,
105136
+ pubDate: /* @__PURE__ */ new Date("2026-01-20")
105137
+ },
105138
+ dateFormat: "MMMM d, yyyy",
105139
+ markdownString: ARTICLE_EXAMPLE_MARKDOWN
105140
+ }
105141
+ },
105142
+ "article-sidebar-sticky": {
105143
+ exampleUsage: `
105144
+ <ArticleSidebarSticky
105145
+ backHref="#"
105146
+ backText="Back to Blog"
105147
+ title="Mastering React Server Components"
105148
+ authorName="Emma Thompson"
105149
+ authorImage="${ARTICLE_EXAMPLE_IMAGE_URL}"
105150
+ authorHref="#"
105151
+ publishDate="January 18, 2026"
105152
+ heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
105153
+ heroImageAlt="React Server Components architecture"
105154
+ markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
105155
+ />
105156
+ `.trim(),
105157
+ 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.",
105158
+ usageRequirements: {
105159
+ requiredProps: [
105160
+ "title",
105161
+ "authorName",
105162
+ "publishDate",
105163
+ "heroImageSrc",
105164
+ "heroImageAlt",
105165
+ "markdownString"
105166
+ ],
105167
+ propConstraints: {
105168
+ title: { required: true, maxLength: 90 },
105169
+ summary: {
105170
+ required: false,
105171
+ maxLength: 240,
105172
+ note: "Optional article summary displayed near the title."
105173
+ },
105174
+ authorName: {
105175
+ required: true,
105176
+ maxLength: 80,
105177
+ note: "Must identify a real article author or organization byline."
105178
+ },
105179
+ publishDate: {
105180
+ required: true,
105181
+ maxLength: 40,
105182
+ note: "Human-readable publication date from the source post."
105183
+ },
105184
+ heroImageSrc: {
105185
+ required: true,
105186
+ note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
105187
+ },
105188
+ heroImageAlt: { required: true, maxLength: 140 },
105189
+ authorImage: {
105190
+ required: false,
105191
+ note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
105192
+ },
105193
+ markdownString: {
105194
+ required: true,
105195
+ maxLength: 12e3,
105196
+ note: "Long-form markdown article body."
105197
+ }
105198
+ },
105199
+ mediaSlots: {
105200
+ heroImageSrc: imageSlot(
105201
+ "heroImageSrc",
105202
+ "Primary article hero image.",
105203
+ ["hero", "feature"],
105204
+ "xlarge",
105205
+ true,
105206
+ "16:9"
105207
+ ),
105208
+ authorImage: imageSlot(
105209
+ "authorImage",
105210
+ "Author avatar or portrait image.",
105211
+ ["profile", "avatar"],
105212
+ "small",
105213
+ false,
105214
+ "1:1"
105215
+ )
105216
+ },
105217
+ requiresSiteCapabilities: articleCapabilities(
105218
+ "blog_posts",
105219
+ "team_members",
105220
+ "media_library"
105221
+ ),
105222
+ notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE]
105223
+ },
105224
+ exampleProps: {
105225
+ backHref: "#",
105226
+ backText: "Back to Blog",
105227
+ title: "Mastering React Server Components",
105228
+ authorName: "Emma Thompson",
105229
+ authorImage: ARTICLE_EXAMPLE_IMAGE_URL,
105230
+ authorHref: "#",
105231
+ publishDate: "January 18, 2026",
105232
+ heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
105233
+ heroImageAlt: "React Server Components architecture",
105234
+ markdownString: ARTICLE_EXAMPLE_MARKDOWN
105235
+ }
105236
+ },
105237
+ "article-toc-sidebar": {
105238
+ exampleUsage: `
105239
+ <ArticleTocSidebar
105240
+ category="Development"
105241
+ title="Building Scalable Systems"
105242
+ description="A source-backed guide to patterns that help applications grow from prototype to production."
105243
+ authorName="Michael Zhang"
105244
+ authorImage="${ARTICLE_EXAMPLE_IMAGE_URL}"
105245
+ authorHref="#"
105246
+ publishDate="January 12, 2026"
105247
+ readTime="20 min read"
105248
+ heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
105249
+ heroImageAlt="Scalable architecture planning session"
105250
+ sections={[
105251
+ { id: "overview", title: "Overview" },
105252
+ { id: "implementation", title: "Implementation" },
105253
+ { id: "conclusion", title: "Conclusion" },
105254
+ ]}
105255
+ ctaTitle="Explore More Guides"
105256
+ ctaDescription="Read the next source-backed article in this series."
105257
+ ctaActions={[{ label: "View Guides", href: "#", variant: "default" }]}
105258
+ markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
105259
+ />
105260
+ `.trim(),
105261
+ 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.",
105262
+ usageRequirements: {
105263
+ requiredProps: [
105264
+ "title",
105265
+ "description",
105266
+ "sections",
105267
+ "heroImageSrc",
105268
+ "heroImageAlt",
105269
+ "markdownString"
105270
+ ],
105271
+ propConstraints: {
105272
+ title: { required: true, maxLength: 90 },
105273
+ description: { required: true, maxLength: 240 },
105274
+ category: { required: false, maxLength: 40 },
105275
+ authorName: {
105276
+ required: false,
105277
+ maxLength: 80,
105278
+ note: "Must identify a real article author or organization byline when supplied."
105279
+ },
105280
+ publishDate: { required: false, maxLength: 40 },
105281
+ readTime: { required: false, maxLength: 30 },
105282
+ sections: { required: true, minItems: 3, maxItems: 8 },
105283
+ "sections[].id": {
105284
+ required: true,
105285
+ note: "Must match a heading id in markdownString."
105286
+ },
105287
+ "sections[].title": { required: true, maxLength: 60 },
105288
+ heroImageSrc: {
105289
+ required: true,
105290
+ note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
105291
+ },
105292
+ heroImageAlt: { required: true, maxLength: 140 },
105293
+ authorImage: {
105294
+ required: false,
105295
+ note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
105296
+ },
105297
+ ctaActions: {
105298
+ required: false,
105299
+ maxItems: 2,
105300
+ note: "Use ActionConfig objects; do not use ctaText, ctaHref, or ctaButtonText."
105301
+ },
105302
+ markdownString: {
105303
+ required: true,
105304
+ maxLength: 12e3,
105305
+ note: "Long-form markdown article body."
105306
+ }
105307
+ },
105308
+ mediaSlots: {
105309
+ heroImageSrc: imageSlot(
105310
+ "heroImageSrc",
105311
+ "Primary article hero image.",
105312
+ ["hero", "feature"],
105313
+ "xlarge",
105314
+ true,
105315
+ "16:9"
105316
+ ),
105317
+ authorImage: imageSlot(
105318
+ "authorImage",
105319
+ "Author avatar or portrait image.",
105320
+ ["profile", "avatar"],
105321
+ "small",
105322
+ false,
105323
+ "1:1"
105324
+ )
105325
+ },
105326
+ requiresSiteCapabilities: articleCapabilities(
105327
+ "blog_posts",
105328
+ "team_members",
105329
+ "media_library"
105330
+ ),
105331
+ notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE, ARTICLE_TRACKING_NOTE]
105332
+ },
105333
+ exampleProps: {
105334
+ category: "Development",
105335
+ title: "Building Scalable Systems",
105336
+ description: "A source-backed guide to patterns that help applications grow from prototype to production.",
105337
+ authorName: "Michael Zhang",
105338
+ authorImage: ARTICLE_EXAMPLE_IMAGE_URL,
105339
+ authorHref: "#",
105340
+ publishDate: "January 12, 2026",
105341
+ readTime: "20 min read",
105342
+ heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
105343
+ heroImageAlt: "Scalable architecture planning session",
105344
+ sections: [
105345
+ { id: "overview", title: "Overview" },
105346
+ { id: "implementation", title: "Implementation" },
105347
+ { id: "conclusion", title: "Conclusion" }
105348
+ ],
105349
+ ctaTitle: "Explore More Guides",
105350
+ ctaDescription: "Read the next source-backed article in this series.",
105351
+ ctaActions: [{ label: "View Guides", href: "#", variant: "default" }],
105352
+ markdownString: ARTICLE_EXAMPLE_MARKDOWN
105353
+ }
105354
+ },
105355
+ "article-breadcrumb-social": {
105356
+ exampleUsage: `
105357
+ <ArticleBreadcrumbSocial
105358
+ breadcrumbs={[
105359
+ { label: "Blog", href: "#" },
105360
+ { label: "Technology", href: "#" },
105361
+ ]}
105362
+ currentPage="Building Scalable Web Applications"
105363
+ title="Building Scalable Web Applications in 2026"
105364
+ description="A source-backed article with breadcrumb navigation, sharing controls, and a tracked table of contents."
105365
+ author={{
105366
+ name: "Sarah Mitchell",
105367
+ image: "${ARTICLE_EXAMPLE_IMAGE_URL}",
105368
+ role: "Senior Software Architect",
105369
+ }}
105370
+ publishDate="January 15, 2026"
105371
+ readTime="12 min read"
105372
+ heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
105373
+ heroImageAlt="Modern web application architecture"
105374
+ sections={[
105375
+ { id: "overview", title: "Overview" },
105376
+ { id: "implementation", title: "Implementation" },
105377
+ { id: "conclusion", title: "Conclusion" },
105378
+ ]}
105379
+ markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
105380
+ />
105381
+ `.trim(),
105382
+ 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.",
105383
+ usageRequirements: {
105384
+ requiredProps: [
105385
+ "breadcrumbs",
105386
+ "currentPage",
105387
+ "title",
105388
+ "author",
105389
+ "heroImageSrc",
105390
+ "heroImageAlt",
105391
+ "sections",
105392
+ "markdownString"
105393
+ ],
105394
+ propConstraints: {
105395
+ breadcrumbs: { required: true, minItems: 1, maxItems: 4 },
105396
+ "breadcrumbs[].label": { required: true, maxLength: 40 },
105397
+ "breadcrumbs[].href": { required: true },
105398
+ currentPage: { required: true, maxLength: 80 },
105399
+ title: { required: true, maxLength: 100 },
105400
+ description: { required: false, maxLength: 240 },
105401
+ author: { required: true, note: "Source-backed article author object." },
105402
+ "author.name": { required: true, maxLength: 80 },
105403
+ "author.role": { required: false, maxLength: 80 },
105404
+ "author.image": {
105405
+ required: false,
105406
+ note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
105407
+ },
105408
+ publishDate: { required: true, maxLength: 40 },
105409
+ readTime: { required: false, maxLength: 30 },
105410
+ sections: { required: true, minItems: 3, maxItems: 8 },
105411
+ "sections[].id": {
105412
+ required: true,
105413
+ note: "Must match a heading id in markdownString."
105414
+ },
105415
+ "sections[].title": { required: true, maxLength: 60 },
105416
+ heroImageSrc: {
105417
+ required: true,
105418
+ note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
105419
+ },
105420
+ heroImageAlt: { required: true, maxLength: 140 },
105421
+ markdownString: {
105422
+ required: true,
105423
+ maxLength: 12e3,
105424
+ note: "Long-form markdown article body."
105425
+ }
105426
+ },
105427
+ mediaSlots: {
105428
+ heroImageSrc: imageSlot(
105429
+ "heroImageSrc",
105430
+ "Primary article hero image.",
105431
+ ["hero", "feature"],
105432
+ "xlarge",
105433
+ true,
105434
+ "16:9"
105435
+ ),
105436
+ "author.image": imageSlot(
105437
+ "author.image",
105438
+ "Author avatar or portrait image.",
105439
+ ["profile", "avatar"],
105440
+ "small",
105441
+ false,
105442
+ "1:1"
105443
+ )
105444
+ },
105445
+ requiresSiteCapabilities: articleCapabilities(
105446
+ "blog_posts",
105447
+ "team_members",
105448
+ "media_library"
105449
+ ),
105450
+ notes: [
105451
+ ARTICLE_SOURCE_NOTE,
105452
+ ARTICLE_MEDIA_NOTE,
105453
+ ARTICLE_TRACKING_NOTE,
105454
+ "Do not use unsupported shareUrls, authorName, or authorRole props with this block."
105455
+ ]
105456
+ },
105457
+ exampleProps: {
105458
+ breadcrumbs: [
105459
+ { label: "Blog", href: "#" },
105460
+ { label: "Technology", href: "#" }
105461
+ ],
105462
+ currentPage: "Building Scalable Web Applications",
105463
+ title: "Building Scalable Web Applications in 2026",
105464
+ description: "A source-backed article with breadcrumb navigation, sharing controls, and a tracked table of contents.",
105465
+ author: {
105466
+ name: "Sarah Mitchell",
105467
+ image: ARTICLE_EXAMPLE_IMAGE_URL,
105468
+ role: "Senior Software Architect"
105469
+ },
105470
+ publishDate: "January 15, 2026",
105471
+ readTime: "12 min read",
105472
+ heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
105473
+ heroImageAlt: "Modern web application architecture",
105474
+ sections: [
105475
+ { id: "overview", title: "Overview" },
105476
+ { id: "implementation", title: "Implementation" },
105477
+ { id: "conclusion", title: "Conclusion" }
105478
+ ],
105479
+ enableTocTracking: true,
105480
+ enableBackToTop: true,
105481
+ markdownString: ARTICLE_EXAMPLE_MARKDOWN
105482
+ }
105483
+ },
105484
+ "article-compact-toc": {
105485
+ exampleUsage: `
105486
+ <ArticleCompactToc
105487
+ breadcrumbs={[
105488
+ { label: "Research", href: "#" },
105489
+ { label: "Studies", href: "#" },
105490
+ ]}
105491
+ currentPage="User Behavior Analysis"
105492
+ title="Understanding User Behavior in Modern Web Applications"
105493
+ authorName="Dr. Jennifer Park"
105494
+ authorHref="#"
105495
+ publishDate="January 22, 2026"
105496
+ readTime="8 min read"
105497
+ heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
105498
+ heroImageAlt="User behavior analytics workspace"
105499
+ sections={[
105500
+ { id: "overview", title: "Overview" },
105501
+ { id: "implementation", title: "Implementation" },
105502
+ { id: "conclusion", title: "Conclusion" },
105503
+ ]}
105504
+ markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
105505
+ />
105506
+ `.trim(),
105507
+ 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.",
105508
+ usageRequirements: {
105509
+ requiredProps: [
105510
+ "title",
105511
+ "authorName",
105512
+ "publishDate",
105513
+ "heroImageSrc",
105514
+ "heroImageAlt",
105515
+ "sections",
105516
+ "markdownString"
105517
+ ],
105518
+ propConstraints: {
105519
+ breadcrumbs: { required: false, minItems: 1, maxItems: 4 },
105520
+ currentPage: { required: false, maxLength: 80 },
105521
+ title: { required: true, maxLength: 100 },
105522
+ description: { required: false, maxLength: 220 },
105523
+ authorName: {
105524
+ required: true,
105525
+ maxLength: 80,
105526
+ note: "Must identify a real article author or organization byline."
105527
+ },
105528
+ publishDate: { required: true, maxLength: 40 },
105529
+ readTime: { required: false, maxLength: 30 },
105530
+ sections: { required: true, minItems: 3, maxItems: 8 },
105531
+ "sections[].id": {
105532
+ required: true,
105533
+ note: "Must match a heading id in markdownString."
105534
+ },
105535
+ "sections[].title": { required: true, maxLength: 60 },
105536
+ heroImageSrc: {
105537
+ required: true,
105538
+ note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
105539
+ },
105540
+ heroImageAlt: { required: true, maxLength: 140 },
105541
+ markdownString: {
105542
+ required: true,
105543
+ maxLength: 12e3,
105544
+ note: "Long-form markdown article body."
105545
+ }
105546
+ },
105547
+ mediaSlots: {
105548
+ heroImageSrc: imageSlot(
105549
+ "heroImageSrc",
105550
+ "Primary article hero image.",
105551
+ ["hero", "feature"],
105552
+ "xlarge",
105553
+ true,
105554
+ "16:9"
105555
+ )
105556
+ },
105557
+ requiresSiteCapabilities: articleCapabilities(
105558
+ "blog_posts",
105559
+ "team_members",
105560
+ "media_library"
105561
+ ),
105562
+ notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE, ARTICLE_TRACKING_NOTE]
105563
+ },
105564
+ exampleProps: {
105565
+ breadcrumbs: [
105566
+ { label: "Research", href: "#" },
105567
+ { label: "Studies", href: "#" }
105568
+ ],
105569
+ currentPage: "User Behavior Analysis",
105570
+ title: "Understanding User Behavior in Modern Web Applications",
105571
+ authorName: "Dr. Jennifer Park",
105572
+ authorHref: "#",
105573
+ publishDate: "January 22, 2026",
105574
+ readTime: "8 min read",
105575
+ heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
105576
+ heroImageAlt: "User behavior analytics workspace",
105577
+ sections: [
105578
+ { id: "overview", title: "Overview" },
105579
+ { id: "implementation", title: "Implementation" },
105580
+ { id: "conclusion", title: "Conclusion" }
105581
+ ],
105582
+ enableTocTracking: true,
105583
+ markdownString: ARTICLE_EXAMPLE_MARKDOWN
105584
+ }
105585
+ },
105586
+ "article-chapters-author": {
105587
+ exampleUsage: `
105588
+ <ArticleChaptersAuthor
105589
+ breadcrumbs={[
105590
+ { label: "Resources", href: "#" },
105591
+ { label: "Guides", href: "#" },
105592
+ ]}
105593
+ currentPage="Design Patterns"
105594
+ title="The Complete Guide to Design Patterns"
105595
+ subtitle="A source-backed guide to patterns that power modern software architecture"
105596
+ heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
105597
+ heroImageAlt="Software architecture planning workspace"
105598
+ chapters={[
105599
+ { id: "overview", number: 1, title: "Overview" },
105600
+ { id: "implementation", number: 2, title: "Implementation" },
105601
+ { id: "conclusion", number: 3, title: "Conclusion" },
105602
+ ]}
105603
+ author={{
105604
+ name: "Dr. Marcus Chen",
105605
+ role: "Principal Engineer",
105606
+ image: "${ARTICLE_EXAMPLE_IMAGE_URL}",
105607
+ bio: "Marcus writes source-backed guides on software architecture and distributed systems.",
105608
+ socialLinks: { linkedin: "https://linkedin.com" },
105609
+ }}
105610
+ conclusionTitle="Continue Learning"
105611
+ conclusionDescription="Read the next guide in this source-backed series."
105612
+ conclusionActions={[
105613
+ { label: "View Guides", href: "#", variant: "default" },
105614
+ { label: "Download Notes", href: "#", variant: "outline" },
105615
+ ]}
105616
+ markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
105617
+ />
105618
+ `.trim(),
105619
+ 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.",
105620
+ usageRequirements: {
105621
+ requiredProps: [
105622
+ "title",
105623
+ "subtitle",
105624
+ "chapters",
105625
+ "author",
105626
+ "heroImageSrc",
105627
+ "heroImageAlt",
105628
+ "markdownString"
105629
+ ],
105630
+ propConstraints: {
105631
+ breadcrumbs: { required: false, minItems: 1, maxItems: 4 },
105632
+ currentPage: { required: false, maxLength: 80 },
105633
+ title: { required: true, maxLength: 100 },
105634
+ subtitle: { required: true, maxLength: 180 },
105635
+ chapters: { required: true, minItems: 3, maxItems: 7 },
105636
+ "chapters[].id": {
105637
+ required: true,
105638
+ note: "Must match a heading id in markdownString."
105639
+ },
105640
+ "chapters[].number": { required: true },
105641
+ "chapters[].title": { required: true, maxLength: 60 },
105642
+ author: {
105643
+ required: true,
105644
+ note: "Source-backed author bio object."
105645
+ },
105646
+ "author.name": { required: true, maxLength: 80 },
105647
+ "author.role": { required: false, maxLength: 80 },
105648
+ "author.bio": { required: false, maxLength: 320 },
105649
+ "author.image": {
105650
+ required: false,
105651
+ note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
105652
+ },
105653
+ heroImageSrc: {
105654
+ required: true,
105655
+ note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
105656
+ },
105657
+ heroImageAlt: { required: true, maxLength: 140 },
105658
+ conclusionActions: {
105659
+ required: false,
105660
+ maxItems: 2,
105661
+ note: "Use ActionConfig objects with label, href, and variant."
105662
+ },
105663
+ markdownString: {
105664
+ required: true,
105665
+ maxLength: 14e3,
105666
+ note: "Long-form markdown article body."
105667
+ }
105668
+ },
105669
+ mediaSlots: {
105670
+ heroImageSrc: imageSlot(
105671
+ "heroImageSrc",
105672
+ "Primary article hero image.",
105673
+ ["hero", "feature"],
105674
+ "xlarge",
105675
+ true,
105676
+ "16:9"
105677
+ ),
105678
+ "author.image": imageSlot(
105679
+ "author.image",
105680
+ "Author avatar or portrait image.",
105681
+ ["profile", "avatar"],
105682
+ "small",
105683
+ false,
105684
+ "1:1"
105685
+ )
105686
+ },
105687
+ requiresSiteCapabilities: articleCapabilities(
105688
+ "blog_posts",
105689
+ "team_members",
105690
+ "media_library"
105691
+ ),
105692
+ notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE, ARTICLE_TRACKING_NOTE]
105693
+ },
105694
+ exampleProps: {
105695
+ breadcrumbs: [
105696
+ { label: "Resources", href: "#" },
105697
+ { label: "Guides", href: "#" }
105698
+ ],
105699
+ currentPage: "Design Patterns",
105700
+ title: "The Complete Guide to Design Patterns",
105701
+ subtitle: "A source-backed guide to patterns that power modern software architecture",
105702
+ heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
105703
+ heroImageAlt: "Software architecture planning workspace",
105704
+ chapters: [
105705
+ { id: "overview", number: 1, title: "Overview" },
105706
+ { id: "implementation", number: 2, title: "Implementation" },
105707
+ { id: "conclusion", number: 3, title: "Conclusion" }
105708
+ ],
105709
+ author: {
105710
+ name: "Dr. Marcus Chen",
105711
+ role: "Principal Engineer",
105712
+ image: ARTICLE_EXAMPLE_IMAGE_URL,
105713
+ bio: "Marcus writes source-backed guides on software architecture and distributed systems.",
105714
+ socialLinks: { linkedin: "https://linkedin.com" }
105715
+ },
105716
+ conclusionTitle: "Continue Learning",
105717
+ conclusionDescription: "Read the next guide in this source-backed series.",
105718
+ conclusionActions: [
105719
+ { label: "View Guides", href: "#", variant: "default" },
105720
+ { label: "Download Notes", href: "#", variant: "outline" }
105721
+ ],
105722
+ enableChapterTracking: true,
105723
+ markdownString: ARTICLE_EXAMPLE_MARKDOWN
105724
+ }
105725
+ },
105726
+ "article-split-animated": {
105727
+ exampleUsage: `
105728
+ <ArticleSplitAnimated
105729
+ image="${ARTICLE_EXAMPLE_IMAGE_URL}"
105730
+ imageAlt="AI-assisted development workflow"
105731
+ category="Artificial Intelligence"
105732
+ categoryHref="#"
105733
+ title="The Future of AI-Assisted Development"
105734
+ description="A source-backed featured article about how AI is changing software delivery workflows."
105735
+ authorName="Dr. Raj Patel"
105736
+ authorImage="${ARTICLE_EXAMPLE_IMAGE_URL}"
105737
+ authorRole="AI Research Lead"
105738
+ authorHref="#"
105739
+ publishDate="January 25, 2026"
105740
+ readTime="15 min read"
105741
+ ctaActions={[{ label: "Read Full Article", href: "#", variant: "default", size: "lg" }]}
105742
+ />
105743
+ `.trim(),
105744
+ 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.",
105745
+ usageRequirements: {
105746
+ requiredProps: ["title", "description", "image", "imageAlt", "ctaActions"],
105747
+ propConstraints: {
105748
+ title: { required: true, maxLength: 90 },
105749
+ description: { required: true, maxLength: 220 },
105750
+ image: {
105751
+ required: true,
105752
+ note: "Absolute featured article image URL. IMAGE MEDIA ONLY."
105753
+ },
105754
+ imageAlt: { required: true, maxLength: 140 },
105755
+ category: { required: false, maxLength: 50 },
105756
+ authorName: {
105757
+ required: false,
105758
+ maxLength: 80,
105759
+ note: "Must identify a real article author or organization byline when supplied."
105760
+ },
105761
+ authorImage: {
105762
+ required: false,
105763
+ note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
105764
+ },
105765
+ authorRole: { required: false, maxLength: 80 },
105766
+ publishDate: { required: false, maxLength: 40 },
105767
+ readTime: { required: false, maxLength: 30 },
105768
+ ctaActions: {
105769
+ required: true,
105770
+ minItems: 1,
105771
+ maxItems: 2,
105772
+ note: "Use ActionConfig objects; do not use ctaText or ctaHref."
105773
+ }
105774
+ },
105775
+ mediaSlots: {
105776
+ image: imageSlot(
105777
+ "image",
105778
+ "Featured article image.",
105779
+ ["hero", "feature"],
105780
+ "xlarge",
105781
+ true,
105782
+ "16:9"
105783
+ ),
105784
+ authorImage: imageSlot(
105785
+ "authorImage",
105786
+ "Author avatar or portrait image.",
105787
+ ["profile", "avatar"],
105788
+ "small",
105789
+ false,
105790
+ "1:1"
105791
+ )
105792
+ },
105793
+ requiresSiteCapabilities: articleCapabilities(
105794
+ "blog_posts",
105795
+ "team_members",
105796
+ "media_library"
105797
+ ),
105798
+ notes: [
105799
+ ARTICLE_SOURCE_NOTE,
105800
+ ARTICLE_MEDIA_NOTE,
105801
+ "Use ctaActions instead of unsupported ctaText or ctaHref props."
105802
+ ]
105803
+ },
105804
+ exampleProps: {
105805
+ image: ARTICLE_EXAMPLE_IMAGE_URL,
105806
+ imageAlt: "AI-assisted development workflow",
105807
+ category: "Artificial Intelligence",
105808
+ categoryHref: "#",
105809
+ title: "The Future of AI-Assisted Development",
105810
+ description: "A source-backed featured article about how AI is changing software delivery workflows.",
105811
+ authorName: "Dr. Raj Patel",
105812
+ authorImage: ARTICLE_EXAMPLE_IMAGE_URL,
105813
+ authorRole: "AI Research Lead",
105814
+ authorHref: "#",
105815
+ publishDate: "January 25, 2026",
105816
+ readTime: "15 min read",
105817
+ ctaActions: [
105818
+ { label: "Read Full Article", href: "#", variant: "default", size: "lg" }
105819
+ ],
105820
+ enableAnimations: true
105821
+ }
105822
+ }
105823
+ };
105043
105824
  var BLOCK_REGISTRY = {
105044
105825
  "alternating-blocks": {
105045
105826
  id: "alternating-blocks",
@@ -111598,18 +112379,7 @@ var BLOCK_REGISTRY = {
111598
112379
  category: "article",
111599
112380
  component: ArticleHeroProseComponent,
111600
112381
  props: "ArticleHeroProseProps",
111601
- exampleUsage: `
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()
112382
+ ...ARTICLE_BLOCK_CONTRACTS["article-hero-prose"]
111613
112383
  },
111614
112384
  "article-sidebar-sticky": {
111615
112385
  id: "article-sidebar-sticky",
@@ -111629,16 +112399,7 @@ var BLOCK_REGISTRY = {
111629
112399
  category: "article",
111630
112400
  component: ArticleSidebarStickyComponent,
111631
112401
  props: "ArticleSidebarStickyProps",
111632
- exampleUsage: `
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()
112402
+ ...ARTICLE_BLOCK_CONTRACTS["article-sidebar-sticky"]
111642
112403
  },
111643
112404
  "article-toc-sidebar": {
111644
112405
  id: "article-toc-sidebar",
@@ -111659,19 +112420,7 @@ var BLOCK_REGISTRY = {
111659
112420
  category: "article",
111660
112421
  component: ArticleTocSidebarComponent,
111661
112422
  props: "ArticleTocSidebarProps",
111662
- exampleUsage: `
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()
112423
+ ...ARTICLE_BLOCK_CONTRACTS["article-toc-sidebar"]
111675
112424
  },
111676
112425
  "article-breadcrumb-social": {
111677
112426
  id: "article-breadcrumb-social",
@@ -111691,20 +112440,7 @@ var BLOCK_REGISTRY = {
111691
112440
  category: "article",
111692
112441
  component: ArticleBreadcrumbSocialComponent,
111693
112442
  props: "ArticleBreadcrumbSocialProps",
111694
- exampleUsage: `
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()
112443
+ ...ARTICLE_BLOCK_CONTRACTS["article-breadcrumb-social"]
111708
112444
  },
111709
112445
  "article-compact-toc": {
111710
112446
  id: "article-compact-toc",
@@ -111724,18 +112460,7 @@ var BLOCK_REGISTRY = {
111724
112460
  category: "article",
111725
112461
  component: ArticleCompactTocComponent,
111726
112462
  props: "ArticleCompactTocProps",
111727
- exampleUsage: `
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()
112463
+ ...ARTICLE_BLOCK_CONTRACTS["article-compact-toc"]
111739
112464
  },
111740
112465
  "article-chapters-author": {
111741
112466
  id: "article-chapters-author",
@@ -111756,22 +112481,7 @@ var BLOCK_REGISTRY = {
111756
112481
  category: "article",
111757
112482
  component: ArticleChaptersAuthorComponent,
111758
112483
  props: "ArticleChaptersAuthorProps",
111759
- exampleUsage: `
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()
112484
+ ...ARTICLE_BLOCK_CONTRACTS["article-chapters-author"]
111775
112485
  },
111776
112486
  "article-split-animated": {
111777
112487
  id: "article-split-animated",
@@ -111791,18 +112501,7 @@ var BLOCK_REGISTRY = {
111791
112501
  category: "article",
111792
112502
  component: ArticleSplitAnimatedComponent,
111793
112503
  props: "ArticleSplitAnimatedProps",
111794
- exampleUsage: `
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()
112504
+ ...ARTICLE_BLOCK_CONTRACTS["article-split-animated"]
111806
112505
  },
111807
112506
  // FAQ Components
111808
112507
  "faq-simple-accordion": {