Docs for 1.9.2: import instead of code; docs↔code consistency test; audit accepts one-line routes
- AGENT.md: §7 full capability catalog (need → import), §0b/§3/§6 on RenderForm, SiteProviders, createPageRoute, re-exported routes, plugin section fields, resolveLink/resolveNav - PROGRAMISTA §2.4, §2.7–2.8 rewritten; §6 items 28–33 (28: FormRenderer leaked the Emails tab) - forms, links, blocks, pages, consent, turnstile, notifications, seo, mcp, i18n, deployment docs - ipal-form: RenderForm block, formClasses, CustomForm example (FormRenderer template removed), seed template handles steps and option labels per language - ipal-nav, ipal-block, ipal-setup, ipal-upgrade, ipal-seo-check, ipal-consent-check, vibe.md - ipal-audit: re-export routes and SiteProviders satisfy the mandatory set; flags form-engine copies, project section fields / navigation, server entries in client components - test/docsConsistency: docs imports exist in code; every public export is documented - CHANGELOG 1.9.2 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -74,6 +74,23 @@ const enhanceProps = ({ block, allBlocks }) => {
|
||||
<RenderBlocks blocks={page.layout} components={registry} enhanceProps={enhanceProps} />
|
||||
```
|
||||
|
||||
## Wspólne pola sekcji — `buildSectionHeaderField`, `buildSectionSettingsField`
|
||||
|
||||
```ts
|
||||
import { buildLinksField, buildSectionHeaderField, buildSectionSettingsField } from '@intecion/ipal-kit'
|
||||
|
||||
fields: [
|
||||
buildSectionHeaderField(), // grupa `header`: eyebrow, heading, intro (localized) — typ SectionHeaderData
|
||||
…pola bloku…,
|
||||
buildLinksField(),
|
||||
buildSectionSettingsField(), // sidebar `settings`: anchor, background — typ SectionSettings
|
||||
]
|
||||
```
|
||||
Wszystko do zmiany: `buildSectionSettingsField({ backgrounds: [{ label: 'Brand', value: 'brand' }], anchor: false,
|
||||
fields: [{ name: 'spacing', … }] })`, `backgrounds: false` (bez wyboru tła), `buildSectionHeaderField({ name, fields,
|
||||
interfaceName })`. Wartości tła mapuje na klasy `<Section>` projektu. Kształt danych taki jak dawne
|
||||
`src/fields/sectionHeader.ts` / `sectionSettings.ts` z kod-sekcji.md — zamiana importu nie wymaga migracji.
|
||||
|
||||
## Komponent bloku
|
||||
|
||||
Każdy komponent dostaje dane bloku jako propsy (plus `_components`, plus to co
|
||||
|
||||
Reference in New Issue
Block a user