Block library: docs, agent guide, skills; picker order as an explicit list

- docs/block-library.md: setup, every block (fields, variants, accessibility),
  options, registry, primitives, eject, page templates, seeding after launch,
  versioning, manifest, turn off / override / extend
- AGENT.md (compass, how to add, §6, §6.3, module map), ipal-block (library
  block first), ipal-site (phases 2, 4, 6, 8), ipal-reference (wiring rows,
  export index), seed-content template from pageTemplates, seeding.md ($form)
- CHANGELOG Unreleased; proposal marked built with an as-built section

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 14:12:50 +01:00
co-authored by Claude Opus 5.5
parent 2d1cc0e77d
commit 2a07fb8844
14 changed files with 470 additions and 39 deletions
+19 -2
View File
@@ -22,7 +22,7 @@ import { buildTeamBlock } from './blocks/team/config.js'
import { buildTestimonialsBlock } from './blocks/testimonials/config.js'
import { buildTextMediaBlock } from './blocks/textMedia/config.js'
/** Every library block builder, by default slug, in the order of the block picker. */
/** Every library block builder, by default slug. */
export const LIBRARY_BLOCK_BUILDERS = {
contact: buildContactBlock,
cta: buildCtaBlock,
@@ -41,7 +41,24 @@ export const LIBRARY_BLOCK_BUILDERS = {
textMedia: buildTextMediaBlock,
} satisfies Record<LibraryBlockSlug, BlockBuilder<never>>
export const LIBRARY_BLOCK_SLUGS = Object.keys(LIBRARY_BLOCK_BUILDERS) as LibraryBlockSlug[]
/** The 15 slugs in the order of the block picker: the sections every site needs first. */
export const LIBRARY_BLOCK_SLUGS: readonly LibraryBlockSlug[] = [
'hero',
'textMedia',
'featureGrid',
'cta',
'richText',
'faq',
'contact',
'gallery',
'testimonials',
'stats',
'steps',
'logos',
'team',
'pricing',
'entryList',
]
/** What `libraryBlocks` takes: a setting per block. Blocks not listed are off. */
export type LibraryBlocksOptions = {