@opensite/ui 3.6.1 → 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.cjs CHANGED
@@ -105080,6 +105080,787 @@ var ABOUT_BLOCK_CONTRACTS = {
105080
105080
  }
105081
105081
  }
105082
105082
  };
105083
+ var ARTICLE_EXAMPLE_IMAGE_URL = ABOUT_EXAMPLE_IMAGE_URL;
105084
+ 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.";
105085
+ 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.";
105086
+ 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.";
105087
+ var articleCapabilities = (...capabilities) => capabilities;
105088
+ var ARTICLE_EXAMPLE_MARKDOWN = `## Overview
105089
+ Modern article layouts need clear hierarchy, source-backed metadata, and media that supports the story.
105090
+
105091
+ ## Implementation
105092
+ Use concise section headings that map to the navigation items and keep body copy grounded in the article source.
105093
+
105094
+ ## Conclusion
105095
+ Close with a practical takeaway and one clear next action for readers.`;
105096
+ var ARTICLE_BLOCK_CONTRACTS = {
105097
+ "article-hero-prose": {
105098
+ exampleUsage: `
105099
+ <ArticleHeroProse
105100
+ post={{
105101
+ title: "The Evolution of Modern JavaScript",
105102
+ description: "A source-backed analysis of how modern JavaScript patterns changed production web development.",
105103
+ authorName: "Alex Rodriguez",
105104
+ authorHref: "#",
105105
+ authorImage: "${ARTICLE_EXAMPLE_IMAGE_URL}",
105106
+ image: "${ARTICLE_EXAMPLE_IMAGE_URL}",
105107
+ pubDate: new Date("2026-01-20"),
105108
+ }}
105109
+ dateFormat="MMMM d, yyyy"
105110
+ markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
105111
+ />
105112
+ `.trim(),
105113
+ 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.",
105114
+ usageRequirements: {
105115
+ requiredProps: ["post", "markdownString"],
105116
+ propConstraints: {
105117
+ post: { required: true, note: "Source-backed article metadata object." },
105118
+ "post.title": { required: true, maxLength: 90 },
105119
+ "post.description": { required: true, maxLength: 220 },
105120
+ "post.authorName": {
105121
+ required: true,
105122
+ maxLength: 80,
105123
+ note: "Must identify a real article author or organization byline."
105124
+ },
105125
+ "post.pubDate": {
105126
+ required: true,
105127
+ note: "Use a real publication date as a Date-compatible value."
105128
+ },
105129
+ "post.image": {
105130
+ required: true,
105131
+ note: "Absolute hero image URL. IMAGE MEDIA ONLY."
105132
+ },
105133
+ "post.authorImage": {
105134
+ required: false,
105135
+ note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
105136
+ },
105137
+ markdownString: {
105138
+ required: true,
105139
+ maxLength: 12e3,
105140
+ note: "Long-form markdown article body."
105141
+ }
105142
+ },
105143
+ mediaSlots: {
105144
+ "post.image": imageSlot(
105145
+ "post.image",
105146
+ "Primary article hero image.",
105147
+ ["hero", "feature"],
105148
+ "xlarge",
105149
+ true,
105150
+ "16:9"
105151
+ ),
105152
+ "post.authorImage": imageSlot(
105153
+ "post.authorImage",
105154
+ "Author avatar or portrait image.",
105155
+ ["profile", "avatar"],
105156
+ "small",
105157
+ false,
105158
+ "1:1"
105159
+ )
105160
+ },
105161
+ requiresSiteCapabilities: articleCapabilities(
105162
+ "blog_posts",
105163
+ "team_members",
105164
+ "media_library"
105165
+ ),
105166
+ notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE]
105167
+ },
105168
+ exampleProps: {
105169
+ post: {
105170
+ title: "The Evolution of Modern JavaScript",
105171
+ description: "A source-backed analysis of how modern JavaScript patterns changed production web development.",
105172
+ authorName: "Alex Rodriguez",
105173
+ authorHref: "#",
105174
+ authorImage: ARTICLE_EXAMPLE_IMAGE_URL,
105175
+ image: ARTICLE_EXAMPLE_IMAGE_URL,
105176
+ pubDate: /* @__PURE__ */ new Date("2026-01-20")
105177
+ },
105178
+ dateFormat: "MMMM d, yyyy",
105179
+ markdownString: ARTICLE_EXAMPLE_MARKDOWN
105180
+ }
105181
+ },
105182
+ "article-sidebar-sticky": {
105183
+ exampleUsage: `
105184
+ <ArticleSidebarSticky
105185
+ backHref="#"
105186
+ backText="Back to Blog"
105187
+ title="Mastering React Server Components"
105188
+ authorName="Emma Thompson"
105189
+ authorImage="${ARTICLE_EXAMPLE_IMAGE_URL}"
105190
+ authorHref="#"
105191
+ publishDate="January 18, 2026"
105192
+ heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
105193
+ heroImageAlt="React Server Components architecture"
105194
+ markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
105195
+ />
105196
+ `.trim(),
105197
+ 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.",
105198
+ usageRequirements: {
105199
+ requiredProps: [
105200
+ "title",
105201
+ "authorName",
105202
+ "publishDate",
105203
+ "heroImageSrc",
105204
+ "heroImageAlt",
105205
+ "markdownString"
105206
+ ],
105207
+ propConstraints: {
105208
+ title: { required: true, maxLength: 90 },
105209
+ summary: {
105210
+ required: false,
105211
+ maxLength: 240,
105212
+ note: "Optional article summary displayed near the title."
105213
+ },
105214
+ authorName: {
105215
+ required: true,
105216
+ maxLength: 80,
105217
+ note: "Must identify a real article author or organization byline."
105218
+ },
105219
+ publishDate: {
105220
+ required: true,
105221
+ maxLength: 40,
105222
+ note: "Human-readable publication date from the source post."
105223
+ },
105224
+ heroImageSrc: {
105225
+ required: true,
105226
+ note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
105227
+ },
105228
+ heroImageAlt: { required: true, maxLength: 140 },
105229
+ authorImage: {
105230
+ required: false,
105231
+ note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
105232
+ },
105233
+ markdownString: {
105234
+ required: true,
105235
+ maxLength: 12e3,
105236
+ note: "Long-form markdown article body."
105237
+ }
105238
+ },
105239
+ mediaSlots: {
105240
+ heroImageSrc: imageSlot(
105241
+ "heroImageSrc",
105242
+ "Primary article hero image.",
105243
+ ["hero", "feature"],
105244
+ "xlarge",
105245
+ true,
105246
+ "16:9"
105247
+ ),
105248
+ authorImage: imageSlot(
105249
+ "authorImage",
105250
+ "Author avatar or portrait image.",
105251
+ ["profile", "avatar"],
105252
+ "small",
105253
+ false,
105254
+ "1:1"
105255
+ )
105256
+ },
105257
+ requiresSiteCapabilities: articleCapabilities(
105258
+ "blog_posts",
105259
+ "team_members",
105260
+ "media_library"
105261
+ ),
105262
+ notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE]
105263
+ },
105264
+ exampleProps: {
105265
+ backHref: "#",
105266
+ backText: "Back to Blog",
105267
+ title: "Mastering React Server Components",
105268
+ authorName: "Emma Thompson",
105269
+ authorImage: ARTICLE_EXAMPLE_IMAGE_URL,
105270
+ authorHref: "#",
105271
+ publishDate: "January 18, 2026",
105272
+ heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
105273
+ heroImageAlt: "React Server Components architecture",
105274
+ markdownString: ARTICLE_EXAMPLE_MARKDOWN
105275
+ }
105276
+ },
105277
+ "article-toc-sidebar": {
105278
+ exampleUsage: `
105279
+ <ArticleTocSidebar
105280
+ category="Development"
105281
+ title="Building Scalable Systems"
105282
+ description="A source-backed guide to patterns that help applications grow from prototype to production."
105283
+ authorName="Michael Zhang"
105284
+ authorImage="${ARTICLE_EXAMPLE_IMAGE_URL}"
105285
+ authorHref="#"
105286
+ publishDate="January 12, 2026"
105287
+ readTime="20 min read"
105288
+ heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
105289
+ heroImageAlt="Scalable architecture planning session"
105290
+ sections={[
105291
+ { id: "overview", title: "Overview" },
105292
+ { id: "implementation", title: "Implementation" },
105293
+ { id: "conclusion", title: "Conclusion" },
105294
+ ]}
105295
+ ctaTitle="Explore More Guides"
105296
+ ctaDescription="Read the next source-backed article in this series."
105297
+ ctaActions={[{ label: "View Guides", href: "#", variant: "default" }]}
105298
+ markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
105299
+ />
105300
+ `.trim(),
105301
+ 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.",
105302
+ usageRequirements: {
105303
+ requiredProps: [
105304
+ "title",
105305
+ "description",
105306
+ "sections",
105307
+ "heroImageSrc",
105308
+ "heroImageAlt",
105309
+ "markdownString"
105310
+ ],
105311
+ propConstraints: {
105312
+ title: { required: true, maxLength: 90 },
105313
+ description: { required: true, maxLength: 240 },
105314
+ category: { required: false, maxLength: 40 },
105315
+ authorName: {
105316
+ required: false,
105317
+ maxLength: 80,
105318
+ note: "Must identify a real article author or organization byline when supplied."
105319
+ },
105320
+ publishDate: { required: false, maxLength: 40 },
105321
+ readTime: { required: false, maxLength: 30 },
105322
+ sections: { required: true, minItems: 3, maxItems: 8 },
105323
+ "sections[].id": {
105324
+ required: true,
105325
+ note: "Must match a heading id in markdownString."
105326
+ },
105327
+ "sections[].title": { required: true, maxLength: 60 },
105328
+ heroImageSrc: {
105329
+ required: true,
105330
+ note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
105331
+ },
105332
+ heroImageAlt: { required: true, maxLength: 140 },
105333
+ authorImage: {
105334
+ required: false,
105335
+ note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
105336
+ },
105337
+ ctaActions: {
105338
+ required: false,
105339
+ maxItems: 2,
105340
+ note: "Use ActionConfig objects; do not use ctaText, ctaHref, or ctaButtonText."
105341
+ },
105342
+ markdownString: {
105343
+ required: true,
105344
+ maxLength: 12e3,
105345
+ note: "Long-form markdown article body."
105346
+ }
105347
+ },
105348
+ mediaSlots: {
105349
+ heroImageSrc: imageSlot(
105350
+ "heroImageSrc",
105351
+ "Primary article hero image.",
105352
+ ["hero", "feature"],
105353
+ "xlarge",
105354
+ true,
105355
+ "16:9"
105356
+ ),
105357
+ authorImage: imageSlot(
105358
+ "authorImage",
105359
+ "Author avatar or portrait image.",
105360
+ ["profile", "avatar"],
105361
+ "small",
105362
+ false,
105363
+ "1:1"
105364
+ )
105365
+ },
105366
+ requiresSiteCapabilities: articleCapabilities(
105367
+ "blog_posts",
105368
+ "team_members",
105369
+ "media_library"
105370
+ ),
105371
+ notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE, ARTICLE_TRACKING_NOTE]
105372
+ },
105373
+ exampleProps: {
105374
+ category: "Development",
105375
+ title: "Building Scalable Systems",
105376
+ description: "A source-backed guide to patterns that help applications grow from prototype to production.",
105377
+ authorName: "Michael Zhang",
105378
+ authorImage: ARTICLE_EXAMPLE_IMAGE_URL,
105379
+ authorHref: "#",
105380
+ publishDate: "January 12, 2026",
105381
+ readTime: "20 min read",
105382
+ heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
105383
+ heroImageAlt: "Scalable architecture planning session",
105384
+ sections: [
105385
+ { id: "overview", title: "Overview" },
105386
+ { id: "implementation", title: "Implementation" },
105387
+ { id: "conclusion", title: "Conclusion" }
105388
+ ],
105389
+ ctaTitle: "Explore More Guides",
105390
+ ctaDescription: "Read the next source-backed article in this series.",
105391
+ ctaActions: [{ label: "View Guides", href: "#", variant: "default" }],
105392
+ markdownString: ARTICLE_EXAMPLE_MARKDOWN
105393
+ }
105394
+ },
105395
+ "article-breadcrumb-social": {
105396
+ exampleUsage: `
105397
+ <ArticleBreadcrumbSocial
105398
+ breadcrumbs={[
105399
+ { label: "Blog", href: "#" },
105400
+ { label: "Technology", href: "#" },
105401
+ ]}
105402
+ currentPage="Building Scalable Web Applications"
105403
+ title="Building Scalable Web Applications in 2026"
105404
+ description="A source-backed article with breadcrumb navigation, sharing controls, and a tracked table of contents."
105405
+ author={{
105406
+ name: "Sarah Mitchell",
105407
+ image: "${ARTICLE_EXAMPLE_IMAGE_URL}",
105408
+ role: "Senior Software Architect",
105409
+ }}
105410
+ publishDate="January 15, 2026"
105411
+ readTime="12 min read"
105412
+ heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
105413
+ heroImageAlt="Modern web application architecture"
105414
+ sections={[
105415
+ { id: "overview", title: "Overview" },
105416
+ { id: "implementation", title: "Implementation" },
105417
+ { id: "conclusion", title: "Conclusion" },
105418
+ ]}
105419
+ markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
105420
+ />
105421
+ `.trim(),
105422
+ 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.",
105423
+ usageRequirements: {
105424
+ requiredProps: [
105425
+ "breadcrumbs",
105426
+ "currentPage",
105427
+ "title",
105428
+ "author",
105429
+ "heroImageSrc",
105430
+ "heroImageAlt",
105431
+ "sections",
105432
+ "markdownString"
105433
+ ],
105434
+ propConstraints: {
105435
+ breadcrumbs: { required: true, minItems: 1, maxItems: 4 },
105436
+ "breadcrumbs[].label": { required: true, maxLength: 40 },
105437
+ "breadcrumbs[].href": { required: true },
105438
+ currentPage: { required: true, maxLength: 80 },
105439
+ title: { required: true, maxLength: 100 },
105440
+ description: { required: false, maxLength: 240 },
105441
+ author: { required: true, note: "Source-backed article author object." },
105442
+ "author.name": { required: true, maxLength: 80 },
105443
+ "author.role": { required: false, maxLength: 80 },
105444
+ "author.image": {
105445
+ required: false,
105446
+ note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
105447
+ },
105448
+ publishDate: { required: true, maxLength: 40 },
105449
+ readTime: { required: false, maxLength: 30 },
105450
+ sections: { required: true, minItems: 3, maxItems: 8 },
105451
+ "sections[].id": {
105452
+ required: true,
105453
+ note: "Must match a heading id in markdownString."
105454
+ },
105455
+ "sections[].title": { required: true, maxLength: 60 },
105456
+ heroImageSrc: {
105457
+ required: true,
105458
+ note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
105459
+ },
105460
+ heroImageAlt: { required: true, maxLength: 140 },
105461
+ markdownString: {
105462
+ required: true,
105463
+ maxLength: 12e3,
105464
+ note: "Long-form markdown article body."
105465
+ }
105466
+ },
105467
+ mediaSlots: {
105468
+ heroImageSrc: imageSlot(
105469
+ "heroImageSrc",
105470
+ "Primary article hero image.",
105471
+ ["hero", "feature"],
105472
+ "xlarge",
105473
+ true,
105474
+ "16:9"
105475
+ ),
105476
+ "author.image": imageSlot(
105477
+ "author.image",
105478
+ "Author avatar or portrait image.",
105479
+ ["profile", "avatar"],
105480
+ "small",
105481
+ false,
105482
+ "1:1"
105483
+ )
105484
+ },
105485
+ requiresSiteCapabilities: articleCapabilities(
105486
+ "blog_posts",
105487
+ "team_members",
105488
+ "media_library"
105489
+ ),
105490
+ notes: [
105491
+ ARTICLE_SOURCE_NOTE,
105492
+ ARTICLE_MEDIA_NOTE,
105493
+ ARTICLE_TRACKING_NOTE,
105494
+ "Do not use unsupported shareUrls, authorName, or authorRole props with this block."
105495
+ ]
105496
+ },
105497
+ exampleProps: {
105498
+ breadcrumbs: [
105499
+ { label: "Blog", href: "#" },
105500
+ { label: "Technology", href: "#" }
105501
+ ],
105502
+ currentPage: "Building Scalable Web Applications",
105503
+ title: "Building Scalable Web Applications in 2026",
105504
+ description: "A source-backed article with breadcrumb navigation, sharing controls, and a tracked table of contents.",
105505
+ author: {
105506
+ name: "Sarah Mitchell",
105507
+ image: ARTICLE_EXAMPLE_IMAGE_URL,
105508
+ role: "Senior Software Architect"
105509
+ },
105510
+ publishDate: "January 15, 2026",
105511
+ readTime: "12 min read",
105512
+ heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
105513
+ heroImageAlt: "Modern web application architecture",
105514
+ sections: [
105515
+ { id: "overview", title: "Overview" },
105516
+ { id: "implementation", title: "Implementation" },
105517
+ { id: "conclusion", title: "Conclusion" }
105518
+ ],
105519
+ enableTocTracking: true,
105520
+ enableBackToTop: true,
105521
+ markdownString: ARTICLE_EXAMPLE_MARKDOWN
105522
+ }
105523
+ },
105524
+ "article-compact-toc": {
105525
+ exampleUsage: `
105526
+ <ArticleCompactToc
105527
+ breadcrumbs={[
105528
+ { label: "Research", href: "#" },
105529
+ { label: "Studies", href: "#" },
105530
+ ]}
105531
+ currentPage="User Behavior Analysis"
105532
+ title="Understanding User Behavior in Modern Web Applications"
105533
+ authorName="Dr. Jennifer Park"
105534
+ authorHref="#"
105535
+ publishDate="January 22, 2026"
105536
+ readTime="8 min read"
105537
+ heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
105538
+ heroImageAlt="User behavior analytics workspace"
105539
+ sections={[
105540
+ { id: "overview", title: "Overview" },
105541
+ { id: "implementation", title: "Implementation" },
105542
+ { id: "conclusion", title: "Conclusion" },
105543
+ ]}
105544
+ markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
105545
+ />
105546
+ `.trim(),
105547
+ 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.",
105548
+ usageRequirements: {
105549
+ requiredProps: [
105550
+ "title",
105551
+ "authorName",
105552
+ "publishDate",
105553
+ "heroImageSrc",
105554
+ "heroImageAlt",
105555
+ "sections",
105556
+ "markdownString"
105557
+ ],
105558
+ propConstraints: {
105559
+ breadcrumbs: { required: false, minItems: 1, maxItems: 4 },
105560
+ currentPage: { required: false, maxLength: 80 },
105561
+ title: { required: true, maxLength: 100 },
105562
+ description: { required: false, maxLength: 220 },
105563
+ authorName: {
105564
+ required: true,
105565
+ maxLength: 80,
105566
+ note: "Must identify a real article author or organization byline."
105567
+ },
105568
+ publishDate: { required: true, maxLength: 40 },
105569
+ readTime: { required: false, maxLength: 30 },
105570
+ sections: { required: true, minItems: 3, maxItems: 8 },
105571
+ "sections[].id": {
105572
+ required: true,
105573
+ note: "Must match a heading id in markdownString."
105574
+ },
105575
+ "sections[].title": { required: true, maxLength: 60 },
105576
+ heroImageSrc: {
105577
+ required: true,
105578
+ note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
105579
+ },
105580
+ heroImageAlt: { required: true, maxLength: 140 },
105581
+ markdownString: {
105582
+ required: true,
105583
+ maxLength: 12e3,
105584
+ note: "Long-form markdown article body."
105585
+ }
105586
+ },
105587
+ mediaSlots: {
105588
+ heroImageSrc: imageSlot(
105589
+ "heroImageSrc",
105590
+ "Primary article hero image.",
105591
+ ["hero", "feature"],
105592
+ "xlarge",
105593
+ true,
105594
+ "16:9"
105595
+ )
105596
+ },
105597
+ requiresSiteCapabilities: articleCapabilities(
105598
+ "blog_posts",
105599
+ "team_members",
105600
+ "media_library"
105601
+ ),
105602
+ notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE, ARTICLE_TRACKING_NOTE]
105603
+ },
105604
+ exampleProps: {
105605
+ breadcrumbs: [
105606
+ { label: "Research", href: "#" },
105607
+ { label: "Studies", href: "#" }
105608
+ ],
105609
+ currentPage: "User Behavior Analysis",
105610
+ title: "Understanding User Behavior in Modern Web Applications",
105611
+ authorName: "Dr. Jennifer Park",
105612
+ authorHref: "#",
105613
+ publishDate: "January 22, 2026",
105614
+ readTime: "8 min read",
105615
+ heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
105616
+ heroImageAlt: "User behavior analytics workspace",
105617
+ sections: [
105618
+ { id: "overview", title: "Overview" },
105619
+ { id: "implementation", title: "Implementation" },
105620
+ { id: "conclusion", title: "Conclusion" }
105621
+ ],
105622
+ enableTocTracking: true,
105623
+ markdownString: ARTICLE_EXAMPLE_MARKDOWN
105624
+ }
105625
+ },
105626
+ "article-chapters-author": {
105627
+ exampleUsage: `
105628
+ <ArticleChaptersAuthor
105629
+ breadcrumbs={[
105630
+ { label: "Resources", href: "#" },
105631
+ { label: "Guides", href: "#" },
105632
+ ]}
105633
+ currentPage="Design Patterns"
105634
+ title="The Complete Guide to Design Patterns"
105635
+ subtitle="A source-backed guide to patterns that power modern software architecture"
105636
+ heroImageSrc="${ARTICLE_EXAMPLE_IMAGE_URL}"
105637
+ heroImageAlt="Software architecture planning workspace"
105638
+ chapters={[
105639
+ { id: "overview", number: 1, title: "Overview" },
105640
+ { id: "implementation", number: 2, title: "Implementation" },
105641
+ { id: "conclusion", number: 3, title: "Conclusion" },
105642
+ ]}
105643
+ author={{
105644
+ name: "Dr. Marcus Chen",
105645
+ role: "Principal Engineer",
105646
+ image: "${ARTICLE_EXAMPLE_IMAGE_URL}",
105647
+ bio: "Marcus writes source-backed guides on software architecture and distributed systems.",
105648
+ socialLinks: { linkedin: "https://linkedin.com" },
105649
+ }}
105650
+ conclusionTitle="Continue Learning"
105651
+ conclusionDescription="Read the next guide in this source-backed series."
105652
+ conclusionActions={[
105653
+ { label: "View Guides", href: "#", variant: "default" },
105654
+ { label: "Download Notes", href: "#", variant: "outline" },
105655
+ ]}
105656
+ markdownString={"## Overview\\nSource-backed introduction.\\n\\n## Implementation\\nDetailed article body.\\n\\n## Conclusion\\nPractical closing takeaway."}
105657
+ />
105658
+ `.trim(),
105659
+ 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.",
105660
+ usageRequirements: {
105661
+ requiredProps: [
105662
+ "title",
105663
+ "subtitle",
105664
+ "chapters",
105665
+ "author",
105666
+ "heroImageSrc",
105667
+ "heroImageAlt",
105668
+ "markdownString"
105669
+ ],
105670
+ propConstraints: {
105671
+ breadcrumbs: { required: false, minItems: 1, maxItems: 4 },
105672
+ currentPage: { required: false, maxLength: 80 },
105673
+ title: { required: true, maxLength: 100 },
105674
+ subtitle: { required: true, maxLength: 180 },
105675
+ chapters: { required: true, minItems: 3, maxItems: 7 },
105676
+ "chapters[].id": {
105677
+ required: true,
105678
+ note: "Must match a heading id in markdownString."
105679
+ },
105680
+ "chapters[].number": { required: true },
105681
+ "chapters[].title": { required: true, maxLength: 60 },
105682
+ author: {
105683
+ required: true,
105684
+ note: "Source-backed author bio object."
105685
+ },
105686
+ "author.name": { required: true, maxLength: 80 },
105687
+ "author.role": { required: false, maxLength: 80 },
105688
+ "author.bio": { required: false, maxLength: 320 },
105689
+ "author.image": {
105690
+ required: false,
105691
+ note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
105692
+ },
105693
+ heroImageSrc: {
105694
+ required: true,
105695
+ note: "Absolute article hero image URL. IMAGE MEDIA ONLY."
105696
+ },
105697
+ heroImageAlt: { required: true, maxLength: 140 },
105698
+ conclusionActions: {
105699
+ required: false,
105700
+ maxItems: 2,
105701
+ note: "Use ActionConfig objects with label, href, and variant."
105702
+ },
105703
+ markdownString: {
105704
+ required: true,
105705
+ maxLength: 14e3,
105706
+ note: "Long-form markdown article body."
105707
+ }
105708
+ },
105709
+ mediaSlots: {
105710
+ heroImageSrc: imageSlot(
105711
+ "heroImageSrc",
105712
+ "Primary article hero image.",
105713
+ ["hero", "feature"],
105714
+ "xlarge",
105715
+ true,
105716
+ "16:9"
105717
+ ),
105718
+ "author.image": imageSlot(
105719
+ "author.image",
105720
+ "Author avatar or portrait image.",
105721
+ ["profile", "avatar"],
105722
+ "small",
105723
+ false,
105724
+ "1:1"
105725
+ )
105726
+ },
105727
+ requiresSiteCapabilities: articleCapabilities(
105728
+ "blog_posts",
105729
+ "team_members",
105730
+ "media_library"
105731
+ ),
105732
+ notes: [ARTICLE_SOURCE_NOTE, ARTICLE_MEDIA_NOTE, ARTICLE_TRACKING_NOTE]
105733
+ },
105734
+ exampleProps: {
105735
+ breadcrumbs: [
105736
+ { label: "Resources", href: "#" },
105737
+ { label: "Guides", href: "#" }
105738
+ ],
105739
+ currentPage: "Design Patterns",
105740
+ title: "The Complete Guide to Design Patterns",
105741
+ subtitle: "A source-backed guide to patterns that power modern software architecture",
105742
+ heroImageSrc: ARTICLE_EXAMPLE_IMAGE_URL,
105743
+ heroImageAlt: "Software architecture planning workspace",
105744
+ chapters: [
105745
+ { id: "overview", number: 1, title: "Overview" },
105746
+ { id: "implementation", number: 2, title: "Implementation" },
105747
+ { id: "conclusion", number: 3, title: "Conclusion" }
105748
+ ],
105749
+ author: {
105750
+ name: "Dr. Marcus Chen",
105751
+ role: "Principal Engineer",
105752
+ image: ARTICLE_EXAMPLE_IMAGE_URL,
105753
+ bio: "Marcus writes source-backed guides on software architecture and distributed systems.",
105754
+ socialLinks: { linkedin: "https://linkedin.com" }
105755
+ },
105756
+ conclusionTitle: "Continue Learning",
105757
+ conclusionDescription: "Read the next guide in this source-backed series.",
105758
+ conclusionActions: [
105759
+ { label: "View Guides", href: "#", variant: "default" },
105760
+ { label: "Download Notes", href: "#", variant: "outline" }
105761
+ ],
105762
+ enableChapterTracking: true,
105763
+ markdownString: ARTICLE_EXAMPLE_MARKDOWN
105764
+ }
105765
+ },
105766
+ "article-split-animated": {
105767
+ exampleUsage: `
105768
+ <ArticleSplitAnimated
105769
+ image="${ARTICLE_EXAMPLE_IMAGE_URL}"
105770
+ imageAlt="AI-assisted development workflow"
105771
+ category="Artificial Intelligence"
105772
+ categoryHref="#"
105773
+ title="The Future of AI-Assisted Development"
105774
+ description="A source-backed featured article about how AI is changing software delivery workflows."
105775
+ authorName="Dr. Raj Patel"
105776
+ authorImage="${ARTICLE_EXAMPLE_IMAGE_URL}"
105777
+ authorRole="AI Research Lead"
105778
+ authorHref="#"
105779
+ publishDate="January 25, 2026"
105780
+ readTime="15 min read"
105781
+ ctaActions={[{ label: "Read Full Article", href: "#", variant: "default", size: "lg" }]}
105782
+ />
105783
+ `.trim(),
105784
+ 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.",
105785
+ usageRequirements: {
105786
+ requiredProps: ["title", "description", "image", "imageAlt", "ctaActions"],
105787
+ propConstraints: {
105788
+ title: { required: true, maxLength: 90 },
105789
+ description: { required: true, maxLength: 220 },
105790
+ image: {
105791
+ required: true,
105792
+ note: "Absolute featured article image URL. IMAGE MEDIA ONLY."
105793
+ },
105794
+ imageAlt: { required: true, maxLength: 140 },
105795
+ category: { required: false, maxLength: 50 },
105796
+ authorName: {
105797
+ required: false,
105798
+ maxLength: 80,
105799
+ note: "Must identify a real article author or organization byline when supplied."
105800
+ },
105801
+ authorImage: {
105802
+ required: false,
105803
+ note: "Absolute author/profile image URL. IMAGE MEDIA ONLY."
105804
+ },
105805
+ authorRole: { required: false, maxLength: 80 },
105806
+ publishDate: { required: false, maxLength: 40 },
105807
+ readTime: { required: false, maxLength: 30 },
105808
+ ctaActions: {
105809
+ required: true,
105810
+ minItems: 1,
105811
+ maxItems: 2,
105812
+ note: "Use ActionConfig objects; do not use ctaText or ctaHref."
105813
+ }
105814
+ },
105815
+ mediaSlots: {
105816
+ image: imageSlot(
105817
+ "image",
105818
+ "Featured article image.",
105819
+ ["hero", "feature"],
105820
+ "xlarge",
105821
+ true,
105822
+ "16:9"
105823
+ ),
105824
+ authorImage: imageSlot(
105825
+ "authorImage",
105826
+ "Author avatar or portrait image.",
105827
+ ["profile", "avatar"],
105828
+ "small",
105829
+ false,
105830
+ "1:1"
105831
+ )
105832
+ },
105833
+ requiresSiteCapabilities: articleCapabilities(
105834
+ "blog_posts",
105835
+ "team_members",
105836
+ "media_library"
105837
+ ),
105838
+ notes: [
105839
+ ARTICLE_SOURCE_NOTE,
105840
+ ARTICLE_MEDIA_NOTE,
105841
+ "Use ctaActions instead of unsupported ctaText or ctaHref props."
105842
+ ]
105843
+ },
105844
+ exampleProps: {
105845
+ image: ARTICLE_EXAMPLE_IMAGE_URL,
105846
+ imageAlt: "AI-assisted development workflow",
105847
+ category: "Artificial Intelligence",
105848
+ categoryHref: "#",
105849
+ title: "The Future of AI-Assisted Development",
105850
+ description: "A source-backed featured article about how AI is changing software delivery workflows.",
105851
+ authorName: "Dr. Raj Patel",
105852
+ authorImage: ARTICLE_EXAMPLE_IMAGE_URL,
105853
+ authorRole: "AI Research Lead",
105854
+ authorHref: "#",
105855
+ publishDate: "January 25, 2026",
105856
+ readTime: "15 min read",
105857
+ ctaActions: [
105858
+ { label: "Read Full Article", href: "#", variant: "default", size: "lg" }
105859
+ ],
105860
+ enableAnimations: true
105861
+ }
105862
+ }
105863
+ };
105083
105864
  var BLOCK_REGISTRY = {
105084
105865
  "alternating-blocks": {
105085
105866
  id: "alternating-blocks",
@@ -111638,18 +112419,7 @@ var BLOCK_REGISTRY = {
111638
112419
  category: "article",
111639
112420
  component: ArticleHeroProseComponent,
111640
112421
  props: "ArticleHeroProseProps",
111641
- exampleUsage: `
111642
- <ArticleHeroProse
111643
- post={{
111644
- title: "Designing websites faster with Opensite AI",
111645
- authorName: "John Doe",
111646
- image: "/images/hero.jpg",
111647
- pubDate: new Date(),
111648
- description: "A step-by-step guide to building modern websites.",
111649
- authorImage: "/images/author.jpg"
111650
- }}
111651
- />
111652
- `.trim()
112422
+ ...ARTICLE_BLOCK_CONTRACTS["article-hero-prose"]
111653
112423
  },
111654
112424
  "article-sidebar-sticky": {
111655
112425
  id: "article-sidebar-sticky",
@@ -111669,16 +112439,7 @@ var BLOCK_REGISTRY = {
111669
112439
  category: "article",
111670
112440
  component: ArticleSidebarStickyComponent,
111671
112441
  props: "ArticleSidebarStickyProps",
111672
- exampleUsage: `
111673
- <ArticleSidebarSticky
111674
- title="The Art of Modern Web Development"
111675
- authorName="Sarah Johnson"
111676
- authorImage="/images/author.jpg"
111677
- publishDate="December 15, 2024"
111678
- backHref="/blog"
111679
- backText="Back to Blog"
111680
- />
111681
- `.trim()
112442
+ ...ARTICLE_BLOCK_CONTRACTS["article-sidebar-sticky"]
111682
112443
  },
111683
112444
  "article-toc-sidebar": {
111684
112445
  id: "article-toc-sidebar",
@@ -111699,19 +112460,7 @@ var BLOCK_REGISTRY = {
111699
112460
  category: "article",
111700
112461
  component: ArticleTocSidebarComponent,
111701
112462
  props: "ArticleTocSidebarProps",
111702
- exampleUsage: `
111703
- <ArticleTocSidebar
111704
- title="Building Scalable Applications"
111705
- description="Learn modern architectural patterns."
111706
- authorName="Alex Chen"
111707
- sections={[
111708
- { id: "introduction", title: "Introduction" },
111709
- { id: "getting-started", title: "Getting Started" }
111710
- ]}
111711
- ctaTitle="Ready to build?"
111712
- ctaButtonText="Get Started"
111713
- />
111714
- `.trim()
112463
+ ...ARTICLE_BLOCK_CONTRACTS["article-toc-sidebar"]
111715
112464
  },
111716
112465
  "article-breadcrumb-social": {
111717
112466
  id: "article-breadcrumb-social",
@@ -111731,20 +112480,7 @@ var BLOCK_REGISTRY = {
111731
112480
  category: "article",
111732
112481
  component: ArticleBreadcrumbSocialComponent,
111733
112482
  props: "ArticleBreadcrumbSocialProps",
111734
- exampleUsage: `
111735
- <ArticleBreadcrumbSocial
111736
- title="Mastering Performance Optimization"
111737
- authorName="Emily Rodriguez"
111738
- authorRole="Senior Engineer"
111739
- publishDate="January 10, 2025"
111740
- readTime="15 min read"
111741
- breadcrumbs={[
111742
- { label: "Home", href: "/" },
111743
- { label: "Blog", href: "/blog" }
111744
- ]}
111745
- shareUrls={{ twitter: "#", linkedin: "#" }}
111746
- />
111747
- `.trim()
112483
+ ...ARTICLE_BLOCK_CONTRACTS["article-breadcrumb-social"]
111748
112484
  },
111749
112485
  "article-compact-toc": {
111750
112486
  id: "article-compact-toc",
@@ -111764,18 +112500,7 @@ var BLOCK_REGISTRY = {
111764
112500
  category: "article",
111765
112501
  component: ArticleCompactTocComponent,
111766
112502
  props: "ArticleCompactTocProps",
111767
- exampleUsage: `
111768
- <ArticleCompactToc
111769
- title="Understanding User Behavior"
111770
- authorName="Dr. Michael Chen"
111771
- publishDate="January 12, 2025"
111772
- readTime="18 min read"
111773
- sections={[
111774
- { id: "introduction", title: "Introduction" },
111775
- { id: "methodology", title: "Methodology" }
111776
- ]}
111777
- />
111778
- `.trim()
112503
+ ...ARTICLE_BLOCK_CONTRACTS["article-compact-toc"]
111779
112504
  },
111780
112505
  "article-chapters-author": {
111781
112506
  id: "article-chapters-author",
@@ -111796,22 +112521,7 @@ var BLOCK_REGISTRY = {
111796
112521
  category: "article",
111797
112522
  component: ArticleChaptersAuthorComponent,
111798
112523
  props: "ArticleChaptersAuthorProps",
111799
- exampleUsage: `
111800
- <ArticleChaptersAuthor
111801
- title="A Comprehensive Guide to Design Patterns"
111802
- subtitle="Master essential patterns every engineer should know"
111803
- chapters={[
111804
- { id: "chapter-1", number: 1, title: "The Foundation" },
111805
- { id: "chapter-2", number: 2, title: "Building Blocks" }
111806
- ]}
111807
- author={{
111808
- name: "Jessica Williams",
111809
- role: "Principal Engineer",
111810
- image: "/images/author.jpg",
111811
- bio: "15+ years of experience in software architecture."
111812
- }}
111813
- />
111814
- `.trim()
112524
+ ...ARTICLE_BLOCK_CONTRACTS["article-chapters-author"]
111815
112525
  },
111816
112526
  "article-split-animated": {
111817
112527
  id: "article-split-animated",
@@ -111831,18 +112541,7 @@ var BLOCK_REGISTRY = {
111831
112541
  category: "article",
111832
112542
  component: ArticleSplitAnimatedComponent,
111833
112543
  props: "ArticleSplitAnimatedProps",
111834
- exampleUsage: `
111835
- <ArticleSplitAnimated
111836
- title="The Evolution of Design Systems"
111837
- description="Explore how design systems have transformed..."
111838
- image="/images/featured.jpg"
111839
- authorName="David Park"
111840
- authorRole="Design Lead"
111841
- category="Design"
111842
- ctaText="Read Full Article"
111843
- ctaHref="/article/design-systems"
111844
- />
111845
- `.trim()
112544
+ ...ARTICLE_BLOCK_CONTRACTS["article-split-animated"]
111846
112545
  },
111847
112546
  // FAQ Components
111848
112547
  "faq-simple-accordion": {