ghostcn 1.6.0 → 1.7.0

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.
Files changed (51) hide show
  1. package/dist/registry/components/account-card.json +57 -0
  2. package/dist/registry/components/author-card.json +1 -1
  3. package/dist/registry/components/author-stack.json +63 -0
  4. package/dist/registry/components/back-to-top.json +72 -0
  5. package/dist/registry/components/callout.json +56 -0
  6. package/dist/registry/components/checkbox.json +82 -0
  7. package/dist/registry/components/code-copy.json +52 -0
  8. package/dist/registry/components/comments-section.json +56 -0
  9. package/dist/registry/components/dialog.json +83 -0
  10. package/dist/registry/components/dropdown.json +85 -0
  11. package/dist/registry/components/empty-state.json +65 -0
  12. package/dist/registry/components/error-card.json +74 -0
  13. package/dist/registry/components/faq-section.json +83 -0
  14. package/dist/registry/components/hero.json +89 -0
  15. package/dist/registry/components/image-lightbox.json +44 -0
  16. package/dist/registry/components/magazine-grid.json +62 -0
  17. package/dist/registry/components/mobile-dock.json +69 -0
  18. package/dist/registry/components/newsletter-form.json +1 -1
  19. package/dist/registry/components/pagination.json +1 -1
  20. package/dist/registry/components/post-card.json +1 -1
  21. package/dist/registry/components/post-grid.json +1 -1
  22. package/dist/registry/components/post-header.json +1 -1
  23. package/dist/registry/components/post-list.json +62 -0
  24. package/dist/registry/components/pull-quote.json +70 -0
  25. package/dist/registry/components/radio-group.json +94 -0
  26. package/dist/registry/components/reader-controls.json +60 -0
  27. package/dist/registry/components/reading-meta.json +49 -0
  28. package/dist/registry/components/related-posts.json +1 -1
  29. package/dist/registry/components/search-trigger.json +68 -0
  30. package/dist/registry/components/select.json +94 -0
  31. package/dist/registry/components/separator.json +46 -0
  32. package/dist/registry/components/series-nav.json +62 -0
  33. package/dist/registry/components/skeleton.json +48 -0
  34. package/dist/registry/components/skip-link.json +53 -0
  35. package/dist/registry/components/social-links.json +74 -0
  36. package/dist/registry/components/stat-strip.json +85 -0
  37. package/dist/registry/components/sticky-subscribe.json +82 -0
  38. package/dist/registry/components/subscribe-bar.json +61 -0
  39. package/dist/registry/components/switch.json +76 -0
  40. package/dist/registry/components/tabs.json +81 -0
  41. package/dist/registry/components/tag-bar.json +63 -0
  42. package/dist/registry/components/textarea.json +95 -0
  43. package/dist/registry/components/tier-comparison.json +55 -0
  44. package/dist/registry/components/timeline.json +85 -0
  45. package/dist/registry/components/tooltip.json +65 -0
  46. package/dist/registry/index.json +389 -0
  47. package/dist/templates/playground/playground.js +1 -1
  48. package/dist/utils/playground-server.js +8 -2
  49. package/dist/utils/preview-renderer.d.ts +72 -0
  50. package/dist/utils/preview-renderer.js +51 -5
  51. package/package.json +1 -1
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "timeline",
3
+ "type": "components:ui",
4
+ "description": "Vertical editorial timeline for publication changelogs, company milestones, and author biographies.",
5
+ "dependencies": [],
6
+ "ghost_version": ">=5.0.0",
7
+ "parameters": {
8
+ "variant": {
9
+ "description": "Timeline style: default, compact, or card.",
10
+ "options": [
11
+ "default",
12
+ "compact",
13
+ "card"
14
+ ],
15
+ "default": "default"
16
+ },
17
+ "item1Date": {
18
+ "description": "Milestone 1 date."
19
+ },
20
+ "item1Title": {
21
+ "description": "Milestone 1 heading."
22
+ },
23
+ "item1Body": {
24
+ "description": "Milestone 1 description."
25
+ },
26
+ "item2Date": {
27
+ "description": "Milestone 2 date."
28
+ },
29
+ "item2Title": {
30
+ "description": "Milestone 2 heading."
31
+ },
32
+ "item2Body": {
33
+ "description": "Milestone 2 description."
34
+ },
35
+ "item3Date": {
36
+ "description": "Optional milestone 3 date."
37
+ },
38
+ "item3Title": {
39
+ "description": "Optional milestone 3 heading."
40
+ },
41
+ "item3Body": {
42
+ "description": "Optional milestone 3 description."
43
+ },
44
+ "item4Date": {
45
+ "description": "Optional milestone 4 date."
46
+ },
47
+ "item4Title": {
48
+ "description": "Optional milestone 4 heading."
49
+ },
50
+ "item4Body": {
51
+ "description": "Optional milestone 4 description."
52
+ }
53
+ },
54
+ "files": [
55
+ {
56
+ "name": "timeline.hbs",
57
+ "type": "partial",
58
+ "target": "partials/components/timeline.hbs",
59
+ "content": "{{!-- Styling parameters: class, itemClass, titleClass --}}\n{{#with this as |ghostcnStyles|}}\n<ol class=\"ghcn-timeline{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"compact\"}}compact{{else}}{{#match variant \"card\"}}card{{else}}default{{/match}}{{/match}}\">\n <li class=\"ghcn-timeline__item{{#if ghostcnStyles.itemClass}} {{ghostcnStyles.itemClass}}{{/if}}\">\n <span class=\"ghcn-timeline__dot\" aria-hidden=\"true\"></span>\n <div class=\"ghcn-timeline__content\">\n <time class=\"ghcn-timeline__date\">{{#if item1Date}}{{item1Date}}{{else}}Nov 2026{{/if}}</time>\n <h3 class=\"ghcn-timeline__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{#if item1Title}}{{item1Title}}{{else}}Launched Ghostcn 1.6{{/if}}</h3>\n <p class=\"ghcn-timeline__body\">{{#if item1Body}}{{item1Body}}{{else}}Expanded the native Handlebars library with editorial, membership, and layout blocks.{{/if}}</p>\n </div>\n </li>\n <li class=\"ghcn-timeline__item{{#if ghostcnStyles.itemClass}} {{ghostcnStyles.itemClass}}{{/if}}\">\n <span class=\"ghcn-timeline__dot\" aria-hidden=\"true\"></span>\n <div class=\"ghcn-timeline__content\">\n <time class=\"ghcn-timeline__date\">{{#if item2Date}}{{item2Date}}{{else}}Aug 2026{{/if}}</time>\n <h3 class=\"ghcn-timeline__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{#if item2Title}}{{item2Title}}{{else}}Reached 10,000 readers{{/if}}</h3>\n <p class=\"ghcn-timeline__body\">{{#if item2Body}}{{item2Body}}{{else}}Introduced paid supporter tiers and member-only weekly dispatches.{{/if}}</p>\n </div>\n </li>\n {{#if item3Title}}\n <li class=\"ghcn-timeline__item{{#if ghostcnStyles.itemClass}} {{ghostcnStyles.itemClass}}{{/if}}\">\n <span class=\"ghcn-timeline__dot\" aria-hidden=\"true\"></span>\n <div class=\"ghcn-timeline__content\">\n {{#if item3Date}}<time class=\"ghcn-timeline__date\">{{item3Date}}</time>{{/if}}\n <h3 class=\"ghcn-timeline__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{item3Title}}</h3>\n {{#if item3Body}}<p class=\"ghcn-timeline__body\">{{item3Body}}</p>{{/if}}\n </div>\n </li>\n {{else}}\n <li class=\"ghcn-timeline__item{{#if ghostcnStyles.itemClass}} {{ghostcnStyles.itemClass}}{{/if}}\">\n <span class=\"ghcn-timeline__dot\" aria-hidden=\"true\"></span>\n <div class=\"ghcn-timeline__content\">\n <time class=\"ghcn-timeline__date\">Jan 2026</time>\n <h3 class=\"ghcn-timeline__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">Published Issue #1</h3>\n <p class=\"ghcn-timeline__body\">Started an independent Ghost publication focused on thoughtful craft and design.</p>\n </div>\n </li>\n {{/if}}\n {{#if item4Title}}\n <li class=\"ghcn-timeline__item{{#if ghostcnStyles.itemClass}} {{ghostcnStyles.itemClass}}{{/if}}\">\n <span class=\"ghcn-timeline__dot\" aria-hidden=\"true\"></span>\n <div class=\"ghcn-timeline__content\">\n {{#if item4Date}}<time class=\"ghcn-timeline__date\">{{item4Date}}</time>{{/if}}\n <h3 class=\"ghcn-timeline__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{item4Title}}</h3>\n {{#if item4Body}}<p class=\"ghcn-timeline__body\">{{item4Body}}</p>{{/if}}\n </div>\n </li>\n {{/if}}\n</ol>\n{{/with}}"
60
+ },
61
+ {
62
+ "name": "timeline.css",
63
+ "type": "style",
64
+ "target": "assets/css/components/timeline.css",
65
+ "content": ".ghcn-timeline { box-sizing: border-box; position: relative; display: grid; gap: 24px; margin: var(--ghcn-section-space, clamp(24px, 4vw, 48px)) 0; padding: 0 0 0 24px; list-style: none; font-family: inherit; color: var(--foreground); }\n.ghcn-timeline *, .ghcn-timeline *::before, .ghcn-timeline *::after { box-sizing: border-box; }\n.ghcn-timeline::before { content: \"\"; position: absolute; top: 8px; bottom: 8px; left: 5px; width: 2px; background: var(--border); }\n.ghcn-timeline__item { position: relative; display: grid; }\n.ghcn-timeline__dot { position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 9999px; border: 2px solid var(--primary); background: var(--background); box-shadow: 0 0 0 4px var(--background); }\n.ghcn-timeline__item:first-child .ghcn-timeline__dot { background: var(--primary); }\n.ghcn-timeline__content { display: grid; gap: 4px; }\n.ghcn-timeline__date { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }\n.ghcn-timeline__title { font-size: var(--ghcn-title-card, 20px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; color: inherit; margin: 0; font-size: 16.5px; }\n.ghcn-timeline__body { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }\n.ghcn-timeline:where([data-variant=\"compact\"]) { gap: 14px; }\n.ghcn-timeline:where([data-variant=\"compact\"]) .ghcn-timeline__body { font-size: 13.5px; }\n.ghcn-timeline:where([data-variant=\"card\"]) { gap: 16px; }\n.ghcn-timeline:where([data-variant=\"card\"]) .ghcn-timeline__content { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--border, #e4e4e7); border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); background: var(--card, #fff); color: var(--card-foreground, #09090b); padding: 16px 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }\n.ghcn-timeline:where([data-variant=\"card\"]) .ghcn-timeline__dot { top: 20px; }"
66
+ }
67
+ ],
68
+ "gscan": {
69
+ "rules_satisfied": [
70
+ "GS010-PJ-VALID"
71
+ ],
72
+ "notes": "Pure CSS semantic ordered list timeline."
73
+ },
74
+ "styleSlots": {
75
+ "class": [
76
+ ".ghcn-timeline"
77
+ ],
78
+ "itemClass": [
79
+ ".ghcn-timeline__item"
80
+ ],
81
+ "titleClass": [
82
+ ".ghcn-timeline__title"
83
+ ]
84
+ }
85
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "tooltip",
3
+ "type": "components:ui",
4
+ "description": "Pure CSS hover and keyboard-focus tooltip for metadata hints, icons, and badges.",
5
+ "dependencies": [],
6
+ "ghost_version": ">=5.0.0",
7
+ "parameters": {
8
+ "placement": {
9
+ "description": "Bubble side: top, bottom, left, or right.",
10
+ "options": [
11
+ "top",
12
+ "bottom",
13
+ "left",
14
+ "right"
15
+ ],
16
+ "default": "top"
17
+ },
18
+ "variant": {
19
+ "description": "Bubble surface: default (inverted contrast) or light.",
20
+ "options": [
21
+ "default",
22
+ "light"
23
+ ],
24
+ "default": "default"
25
+ },
26
+ "label": {
27
+ "description": "Trigger button text when not used as a partial block.",
28
+ "default": "Hover or focus me"
29
+ },
30
+ "content": {
31
+ "description": "Tooltip message text."
32
+ }
33
+ },
34
+ "files": [
35
+ {
36
+ "name": "tooltip.hbs",
37
+ "type": "partial",
38
+ "target": "partials/components/tooltip.hbs",
39
+ "content": "{{!-- Styling parameters: class, triggerClass, bubbleClass --}}\n{{#with this as |ghostcnStyles|}}\n<span class=\"ghcn-ui-tooltip{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-placement=\"{{#match placement \"bottom\"}}bottom{{else}}{{#match placement \"left\"}}left{{else}}{{#match placement \"right\"}}right{{else}}top{{/match}}{{/match}}{{/match}}\" data-variant=\"{{#match variant \"light\"}}light{{else}}default{{/match}}\">\n <button type=\"button\" class=\"ghcn-ui-tooltip__trigger{{#if ghostcnStyles.triggerClass}} {{ghostcnStyles.triggerClass}}{{/if}}\">\n {{#> @partial-block}}{{#if label}}{{label}}{{else}}Hover or focus me{{/if}}{{/@partial-block}}\n </button>\n <span class=\"ghcn-ui-tooltip__bubble{{#if ghostcnStyles.bubbleClass}} {{ghostcnStyles.bubbleClass}}{{/if}}\" role=\"tooltip\">{{#if content}}{{content}}{{else}}Pure CSS tooltip — accessible via keyboard focus and hover.{{/if}}</span>\n</span>\n{{/with}}"
40
+ },
41
+ {
42
+ "name": "tooltip.css",
43
+ "type": "style",
44
+ "target": "assets/css/components/tooltip.css",
45
+ "content": ".ghcn-ui-tooltip { box-sizing: border-box; position: relative; display: inline-flex; align-items: center; font-family: inherit; }\n.ghcn-ui-tooltip *, .ghcn-ui-tooltip *::before, .ghcn-ui-tooltip *::after { box-sizing: border-box; }\n.ghcn-ui-tooltip__trigger { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--ghcn-control-radius, var(--radius, 8px)); background: var(--card, var(--background)); color: var(--foreground); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }\n.ghcn-ui-tooltip__trigger:hover { background: var(--secondary); }\n.ghcn-ui-tooltip__bubble { position: absolute; z-index: 40; width: max-content; max-width: 240px; padding: 7px 11px; border-radius: 7px; background: var(--foreground); color: var(--background); font-size: 12px; font-weight: 500; line-height: 1.4; text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease; }\n.ghcn-ui-tooltip:where([data-variant=\"light\"]) .ghcn-ui-tooltip__bubble { background: var(--popover, var(--card)); color: var(--popover-foreground, var(--foreground)); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }\n.ghcn-ui-tooltip:where([data-placement=\"top\"]) .ghcn-ui-tooltip__bubble { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); }\n.ghcn-ui-tooltip:where([data-placement=\"bottom\"]) .ghcn-ui-tooltip__bubble { top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-4px); }\n.ghcn-ui-tooltip:where([data-placement=\"left\"]) .ghcn-ui-tooltip__bubble { right: calc(100% + 8px); top: 50%; transform: translateY(-50%) translateX(4px); }\n.ghcn-ui-tooltip:where([data-placement=\"right\"]) .ghcn-ui-tooltip__bubble { left: calc(100% + 8px); top: 50%; transform: translateY(-50%) translateX(-4px); }\n.ghcn-ui-tooltip:hover .ghcn-ui-tooltip__bubble,\n.ghcn-ui-tooltip:focus-within .ghcn-ui-tooltip__bubble { opacity: 1; visibility: visible; }\n.ghcn-ui-tooltip:where([data-placement=\"top\"]):is(:hover, :focus-within) .ghcn-ui-tooltip__bubble,\n.ghcn-ui-tooltip:where([data-placement=\"bottom\"]):is(:hover, :focus-within) .ghcn-ui-tooltip__bubble { transform: translateX(-50%) translateY(0); }\n.ghcn-ui-tooltip:where([data-placement=\"left\"]):is(:hover, :focus-within) .ghcn-ui-tooltip__bubble,\n.ghcn-ui-tooltip:where([data-placement=\"right\"]):is(:hover, :focus-within) .ghcn-ui-tooltip__bubble { transform: translateY(-50%) translateX(0); }\n@media (prefers-reduced-motion: reduce) { .ghcn-ui-tooltip__bubble { transition: none; } }\n.ghcn-ui-tooltip:focus-visible, :where(.ghcn-ui-tooltip) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }"
46
+ }
47
+ ],
48
+ "gscan": {
49
+ "rules_satisfied": [
50
+ "GS010-PJ-VALID"
51
+ ],
52
+ "notes": "Pure CSS tooltip responding to hover and keyboard :focus-within."
53
+ },
54
+ "styleSlots": {
55
+ "class": [
56
+ ".ghcn-ui-tooltip"
57
+ ],
58
+ "triggerClass": [
59
+ ".ghcn-ui-tooltip__trigger"
60
+ ],
61
+ "bubbleClass": [
62
+ ".ghcn-ui-tooltip__bubble"
63
+ ]
64
+ }
65
+ }
@@ -314,5 +314,394 @@
314
314
  "visibility-badge.hbs",
315
315
  "visibility-badge.css"
316
316
  ]
317
+ },
318
+ {
319
+ "name": "callout",
320
+ "description": "Editorial callout box with semantic note, tip, warning, and danger accents.",
321
+ "category": "components:ui",
322
+ "ghost_version": ">=5.0.0",
323
+ "files": [
324
+ "callout.hbs",
325
+ "callout.css"
326
+ ]
327
+ },
328
+ {
329
+ "name": "tabs",
330
+ "description": "Accessible tabbed panel switcher with underline, pills, and boxed variants plus arrow-key navigation.",
331
+ "category": "components:ui",
332
+ "ghost_version": ">=5.0.0",
333
+ "files": [
334
+ "tabs.hbs",
335
+ "tabs.css",
336
+ "tabs.js"
337
+ ]
338
+ },
339
+ {
340
+ "name": "dialog",
341
+ "description": "Accessible native HTML dialog modal with backdrop click, Escape key close, and customizable content.",
342
+ "category": "components:ui",
343
+ "ghost_version": ">=5.0.0",
344
+ "files": [
345
+ "dialog.hbs",
346
+ "dialog.css",
347
+ "dialog.js"
348
+ ]
349
+ },
350
+ {
351
+ "name": "dropdown",
352
+ "description": "Accessible popover menu built on native details/summary with Escape and outside-click dismissal.",
353
+ "category": "components:ui",
354
+ "ghost_version": ">=5.0.0",
355
+ "files": [
356
+ "dropdown.hbs",
357
+ "dropdown.css",
358
+ "dropdown.js"
359
+ ]
360
+ },
361
+ {
362
+ "name": "separator",
363
+ "description": "Editorial horizontal divider with solid, dashed, and labeled variants.",
364
+ "category": "components:ui",
365
+ "ghost_version": ">=5.0.0",
366
+ "files": [
367
+ "separator.hbs",
368
+ "separator.css"
369
+ ]
370
+ },
371
+ {
372
+ "name": "empty-state",
373
+ "description": "Reusable empty state block with icon, title, message, and optional call-to-action button.",
374
+ "category": "components:ui",
375
+ "ghost_version": ">=5.0.0",
376
+ "files": [
377
+ "empty-state.hbs",
378
+ "empty-state.css"
379
+ ]
380
+ },
381
+ {
382
+ "name": "textarea",
383
+ "description": "Accessible labeled multiline textarea with optional hint, invalid, and disabled states.",
384
+ "category": "components:ui",
385
+ "ghost_version": ">=5.0.0",
386
+ "files": [
387
+ "textarea.hbs",
388
+ "textarea.css"
389
+ ]
390
+ },
391
+ {
392
+ "name": "select",
393
+ "description": "Accessible labeled native select dropdown with custom chevron icon and filled variant.",
394
+ "category": "components:ui",
395
+ "ghost_version": ">=5.0.0",
396
+ "files": [
397
+ "select.hbs",
398
+ "select.css"
399
+ ]
400
+ },
401
+ {
402
+ "name": "checkbox",
403
+ "description": "Accessible native checkbox with inline and card variants, optional description, and crisp tick mark.",
404
+ "category": "components:ui",
405
+ "ghost_version": ">=5.0.0",
406
+ "files": [
407
+ "checkbox.hbs",
408
+ "checkbox.css"
409
+ ]
410
+ },
411
+ {
412
+ "name": "hero",
413
+ "description": "Publication homepage hero with centered, split, editorial, and cover variants plus optional inline signup.",
414
+ "category": "components:content",
415
+ "ghost_version": ">=5.0.0",
416
+ "files": [
417
+ "hero.hbs",
418
+ "hero.css"
419
+ ]
420
+ },
421
+ {
422
+ "name": "post-list",
423
+ "description": "Compact editorial post list for newsletter archives, feeds, and sidebars.",
424
+ "category": "components:content",
425
+ "ghost_version": ">=5.0.0",
426
+ "files": [
427
+ "post-list.hbs",
428
+ "post-list.css"
429
+ ]
430
+ },
431
+ {
432
+ "name": "author-stack",
433
+ "description": "Overlapping multi-author avatar stack with linked names and optional date/reading time.",
434
+ "category": "components:content",
435
+ "ghost_version": ">=5.0.0",
436
+ "files": [
437
+ "author-stack.hbs",
438
+ "author-stack.css"
439
+ ]
440
+ },
441
+ {
442
+ "name": "code-copy",
443
+ "description": "Progressive-enhancement copy button and language header automatically added to Ghost post code blocks.",
444
+ "category": "components:content",
445
+ "ghost_version": ">=5.0.0",
446
+ "files": [
447
+ "code-copy.hbs",
448
+ "code-copy.css",
449
+ "code-copy.js"
450
+ ]
451
+ },
452
+ {
453
+ "name": "image-lightbox",
454
+ "description": "Zero-dependency zoom lightbox for Ghost Koenig image and gallery cards with keyboard navigation.",
455
+ "category": "components:content",
456
+ "ghost_version": ">=5.0.0",
457
+ "files": [
458
+ "image-lightbox.hbs",
459
+ "image-lightbox.css",
460
+ "image-lightbox.js"
461
+ ]
462
+ },
463
+ {
464
+ "name": "back-to-top",
465
+ "description": "Scroll-to-top button that reveals after scrolling past the hero and respects prefers-reduced-motion.",
466
+ "category": "components:content",
467
+ "ghost_version": ">=5.0.0",
468
+ "files": [
469
+ "back-to-top.hbs",
470
+ "back-to-top.css",
471
+ "back-to-top.js"
472
+ ]
473
+ },
474
+ {
475
+ "name": "reading-meta",
476
+ "description": "Reusable post metadata row with author, date, reading time, and optional tag or comment count.",
477
+ "category": "components:content",
478
+ "ghost_version": ">=5.0.0",
479
+ "files": [
480
+ "reading-meta.hbs",
481
+ "reading-meta.css"
482
+ ]
483
+ },
484
+ {
485
+ "name": "subscribe-bar",
486
+ "description": "Compact single-row native Ghost members subscribe bar for headers, footers, and hero sections.",
487
+ "category": "components:members",
488
+ "ghost_version": ">=5.0.0",
489
+ "files": [
490
+ "subscribe-bar.hbs",
491
+ "subscribe-bar.css"
492
+ ]
493
+ },
494
+ {
495
+ "name": "search-trigger",
496
+ "description": "Keyboard-hinted search trigger wired directly to Ghost native Sodo Search (data-ghost-search).",
497
+ "category": "components:layout",
498
+ "ghost_version": ">=5.0.0",
499
+ "files": [
500
+ "search-trigger.hbs",
501
+ "search-trigger.css",
502
+ "search-trigger.js"
503
+ ]
504
+ },
505
+ {
506
+ "name": "tier-comparison",
507
+ "description": "Responsive Ghost membership tier comparison matrix displaying live monthly/yearly prices, benefits, and Portal CTAs.",
508
+ "category": "components:members",
509
+ "ghost_version": ">=5.0.0",
510
+ "files": [
511
+ "tier-comparison.hbs",
512
+ "tier-comparison.css"
513
+ ]
514
+ },
515
+ {
516
+ "name": "social-links",
517
+ "description": "Accessible social channel icon bar reading Ghost site accounts with optional Bluesky, GitHub, LinkedIn, YouTube, Instagram, email, and RSS.",
518
+ "category": "components:layout",
519
+ "ghost_version": ">=5.0.0",
520
+ "files": [
521
+ "social-links.hbs",
522
+ "social-links.css"
523
+ ]
524
+ },
525
+ {
526
+ "name": "tag-bar",
527
+ "description": "Horizontal snap-scrolling topic bar populated from public Ghost tags for quick category browsing.",
528
+ "category": "components:content",
529
+ "ghost_version": ">=5.0.0",
530
+ "files": [
531
+ "tag-bar.hbs",
532
+ "tag-bar.css"
533
+ ]
534
+ },
535
+ {
536
+ "name": "series-nav",
537
+ "description": "Numbered multi-part series box grouping chronological Ghost posts under a shared tag and highlighting the active installment.",
538
+ "category": "components:content",
539
+ "ghost_version": ">=5.0.0",
540
+ "files": [
541
+ "series-nav.hbs",
542
+ "series-nav.css"
543
+ ]
544
+ },
545
+ {
546
+ "name": "magazine-grid",
547
+ "description": "Editorial newsroom grid pairing a large featured lead story with a stacked right-hand dispatch rail.",
548
+ "category": "components:content",
549
+ "ghost_version": ">=5.0.0",
550
+ "files": [
551
+ "magazine-grid.hbs",
552
+ "magazine-grid.css"
553
+ ]
554
+ },
555
+ {
556
+ "name": "comments-section",
557
+ "description": "Styled surface container wrapping Ghost native comments with heading and live comment count badge.",
558
+ "category": "components:content",
559
+ "ghost_version": ">=5.0.0",
560
+ "files": [
561
+ "comments-section.hbs",
562
+ "comments-section.css"
563
+ ]
564
+ },
565
+ {
566
+ "name": "reader-controls",
567
+ "description": "Compact reading comfort toolbar letting readers adjust article font size and serif/sans typeface with localStorage persistence.",
568
+ "category": "components:content",
569
+ "ghost_version": ">=5.0.0",
570
+ "files": [
571
+ "reader-controls.hbs",
572
+ "reader-controls.css",
573
+ "reader-controls.js"
574
+ ]
575
+ },
576
+ {
577
+ "name": "pull-quote",
578
+ "description": "Editorial pull quote and reader testimonial block with accent rule, optional avatar, and centered/card variants.",
579
+ "category": "components:content",
580
+ "ghost_version": ">=5.0.0",
581
+ "files": [
582
+ "pull-quote.hbs",
583
+ "pull-quote.css"
584
+ ]
585
+ },
586
+ {
587
+ "name": "account-card",
588
+ "description": "Signed-in Ghost member profile panel with tier badge, Portal management links, sign-out action, and visitor sign-in fallback.",
589
+ "category": "components:members",
590
+ "ghost_version": ">=5.0.0",
591
+ "files": [
592
+ "account-card.hbs",
593
+ "account-card.css"
594
+ ]
595
+ },
596
+ {
597
+ "name": "sticky-subscribe",
598
+ "description": "Scroll-triggered, session-dismissible native Ghost subscribe prompt that hides automatically for signed-in members.",
599
+ "category": "components:members",
600
+ "ghost_version": ">=5.0.0",
601
+ "files": [
602
+ "sticky-subscribe.hbs",
603
+ "sticky-subscribe.css",
604
+ "sticky-subscribe.js"
605
+ ]
606
+ },
607
+ {
608
+ "name": "faq-section",
609
+ "description": "Zero-JS membership FAQ block with native details disclosures and Schema.org FAQPage microdata.",
610
+ "category": "components:members",
611
+ "ghost_version": ">=5.0.0",
612
+ "files": [
613
+ "faq-section.hbs",
614
+ "faq-section.css"
615
+ ]
616
+ },
617
+ {
618
+ "name": "stat-strip",
619
+ "description": "Editorial social-proof and publication metrics strip for About and Subscribe landing pages.",
620
+ "category": "components:members",
621
+ "ghost_version": ">=5.0.0",
622
+ "files": [
623
+ "stat-strip.hbs",
624
+ "stat-strip.css"
625
+ ]
626
+ },
627
+ {
628
+ "name": "switch",
629
+ "description": "Accessible zero-JS native toggle switch (role=\"switch\") with default and selectable card styles.",
630
+ "category": "components:ui",
631
+ "ghost_version": ">=5.0.0",
632
+ "files": [
633
+ "switch.hbs",
634
+ "switch.css"
635
+ ]
636
+ },
637
+ {
638
+ "name": "radio-group",
639
+ "description": "Accessible native radio button group with default and selectable card styles.",
640
+ "category": "components:ui",
641
+ "ghost_version": ">=5.0.0",
642
+ "files": [
643
+ "radio-group.hbs",
644
+ "radio-group.css"
645
+ ]
646
+ },
647
+ {
648
+ "name": "tooltip",
649
+ "description": "Pure CSS hover and keyboard-focus tooltip for metadata hints, icons, and badges.",
650
+ "category": "components:ui",
651
+ "ghost_version": ">=5.0.0",
652
+ "files": [
653
+ "tooltip.hbs",
654
+ "tooltip.css"
655
+ ]
656
+ },
657
+ {
658
+ "name": "timeline",
659
+ "description": "Vertical editorial timeline for publication changelogs, company milestones, and author biographies.",
660
+ "category": "components:ui",
661
+ "ghost_version": ">=5.0.0",
662
+ "files": [
663
+ "timeline.hbs",
664
+ "timeline.css"
665
+ ]
666
+ },
667
+ {
668
+ "name": "skeleton",
669
+ "description": "Accessible shimmer loading placeholder presets (card, post, avatar, text) with reduced-motion support.",
670
+ "category": "components:ui",
671
+ "ghost_version": ">=5.0.0",
672
+ "files": [
673
+ "skeleton.hbs",
674
+ "skeleton.css"
675
+ ]
676
+ },
677
+ {
678
+ "name": "error-card",
679
+ "description": "Drop-in 404/500 error page block for Ghost error.hbs with status code, native search trigger, and home CTA.",
680
+ "category": "components:layout",
681
+ "ghost_version": ">=5.0.0",
682
+ "files": [
683
+ "error-card.hbs",
684
+ "error-card.css"
685
+ ]
686
+ },
687
+ {
688
+ "name": "skip-link",
689
+ "description": "WCAG keyboard-accessible \"Skip to content\" link hidden visually until focused via Tab.",
690
+ "category": "components:layout",
691
+ "ghost_version": ">=5.0.0",
692
+ "files": [
693
+ "skip-link.hbs",
694
+ "skip-link.css"
695
+ ]
696
+ },
697
+ {
698
+ "name": "mobile-dock",
699
+ "description": "Thumb-friendly mobile bottom navigation bar with Home, Ghost Search, Member Portal, and Top actions.",
700
+ "category": "components:layout",
701
+ "ghost_version": ">=5.0.0",
702
+ "files": [
703
+ "mobile-dock.hbs",
704
+ "mobile-dock.css"
705
+ ]
317
706
  }
318
707
  ]
@@ -5,7 +5,7 @@ const viewport = document.querySelector('#viewport');
5
5
  const frameStage = document.querySelector('#frame-stage');
6
6
  const copyUsage = document.querySelector('#copy-usage');
7
7
  const controls = new Map();
8
- const booleanParams = new Set(['disabled', 'required', 'invalid', 'urgent', 'decorative', 'open', 'hideDismiss', 'showPublic']);
8
+ const booleanParams = new Set(['disabled', 'required', 'invalid', 'urgent', 'decorative', 'open', 'hideDismiss', 'showPublic', 'checked', 'showSubscribe', 'showImage', 'hideMeta', 'showLabel', 'alwaysVisible', 'hideShortcut', 'hideRss', 'hideAll', 'showCounts', 'hideSearch']);
9
9
  let catalog = [], revision, busy = false, debounceTimer;
10
10
  const current = () => catalog.find(item => item.name === component.value);
11
11
  function render() {
@@ -165,7 +165,7 @@ async function startPlayground(options) {
165
165
  partials[path_1.default.relative(path_1.default.join(themeRoot, 'partials'), file).replace(/\\/g, '/').replace(/\.hbs$/, '')] = fs_1.default.readFileSync(file, 'utf8');
166
166
  const parameters = { ...(preview_renderer_1.demoParameters[name] || {}) };
167
167
  const keys = new Set([...Object.keys(manifest.parameters || {}), ...Object.keys(manifest.styleSlots || {})]);
168
- const boolKeys = new Set(['disabled', 'required', 'invalid', 'urgent', 'decorative', 'open', 'hideDismiss', 'showPublic']);
168
+ const boolKeys = new Set(['disabled', 'required', 'invalid', 'urgent', 'decorative', 'open', 'hideDismiss', 'showPublic', 'checked', 'showSubscribe', 'showImage', 'hideMeta', 'showLabel', 'alwaysVisible', 'hideShortcut', 'hideRss', 'hideAll', 'showCounts', 'hideSearch']);
169
169
  for (const key of keys)
170
170
  if (url.searchParams.has(key))
171
171
  parameters[key] = boolKeys.has(key) ? url.searchParams.get(key) === 'true' : url.searchParams.get(key);
@@ -174,7 +174,7 @@ async function startPlayground(options) {
174
174
  const access = url.searchParams.get('access') === 'false' ? false : true;
175
175
  const scheme = url.searchParams.get('scheme');
176
176
  const nameInTheme = name === 'pagination' ? 'pagination' : (0, component_files_1.componentPartialName)(config, name);
177
- const baseContext = ['pricing-table', 'newsletter-form'].includes(name)
177
+ const baseContext = ['pricing-table', 'newsletter-form', 'subscribe-bar', 'tier-comparison'].includes(name)
178
178
  ? {}
179
179
  : name === 'author-card'
180
180
  ? preview_renderer_1.demoAuthor
@@ -186,6 +186,12 @@ async function startPlayground(options) {
186
186
  let html = (0, preview_renderer_1.renderPreviewTemplate)(partials, source, { state, context, access });
187
187
  if (name === 'table-of-contents')
188
188
  html += '<article class="ghcn-article-content"><h2>Start with your story</h2><p>Demo article.</p><h3>Make room for readers</h3><p>A subsection.</p><h2>Keep it yours</h2><p>Your theme, your style.</p></article>';
189
+ if (name === 'code-copy')
190
+ html += '<article class="ghcn-article-content"><pre><code class="language-handlebars">{{&gt; &quot;components/callout&quot;\n variant=&quot;tip&quot;\n heading=&quot;Pro tip&quot;\n body=&quot;Click Copy to grab this snippet.&quot;\n}}</code></pre></article>';
191
+ if (name === 'image-lightbox')
192
+ html += `<article class="ghcn-article-content"><figure class="kg-card kg-image-card"><img src="${escape(preview_renderer_1.demoImage)}" alt="Folded paper editorial illustration" /><figcaption>Click the image to open the native lightbox viewer.</figcaption></figure></article>`;
193
+ if (name === 'reader-controls')
194
+ html += '<article class="ghcn-article-content"><p>Good stories deserve comfortable typography. Use the controls above to switch between compact, default, and large text sizes or toggle between Sans and Serif.</p></article>';
189
195
  const scripts = manifest.files.filter(file => file.type === 'js').map(file => (0, component_files_1.componentFiles)(themeRoot, config, manifest).find(target => target.relative.endsWith(`/${file.name}`))).filter(Boolean);
190
196
  const styles = themeStyles(themeRoot, config).map(asset => `<link rel="stylesheet" href="/theme-assets/${escape(asset)}">`).join('');
191
197
  const scriptTags = scripts.map(file => `<script defer src="/theme-assets/${escape(file.relative.replace(/^assets\//, ''))}"></script>`).join('');