Theme switcher, table of contents, missing-page redirect, form placeholders and time field; audit and revalidate fixes
- buildRevalidateHook skips outside Next (no NEXT_RUNTIME) and with context.disableRevalidate - BuilderForm focuses only on a real step change (no scroll to the form on remount) - mediaImageProps: placeholder colour only for JPEG (placeholderColor); hook stores no colour for transparent images - buildLinkField: interface name per shape (CmsLink, CmsLinkPlain, CmsLinkNoLabel) + interfaceName option - Cookie Settings: buttons.save -> buttons.savePreferences (Mongoose reserved name) - ThemeScript, ThemeSwitcher, useTheme; Site Settings defaultTheme 'system' + themeToggleLabel; Turnstile follows page theme - extractHeadings, RenderRichText headingIds, TableOfContents, buildTableOfContentsField - createPageRoute onMissing: 'redirectHome' - Form builder: localized placeholder on text/email/textarea/number, new time field - ipal-audit: no false positive for object keys between JSX elements; /md route not reported as dynamic Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
23e033d7d7
commit
faa4ad679c
@@ -336,6 +336,10 @@ env, komponent podąża automatycznie.
|
||||
- `mediaImageProps(resource, { sizes, priority, alt })` → propsy `next/image`: wymiary z dokumentu,
|
||||
`lazy` domyślnie, obraz LCP `preload` + `fetchPriority="high"` + `eager` (Next 16), focal point →
|
||||
`object-position`, placeholder blur + kolor. `MEDIA_SIZES` — podpowiedzi `sizes`.
|
||||
Kolor tła (`style.backgroundColor`) zostaje na `<img>` po załadowaniu, więc od 1.11.1 tylko dla JPEG
|
||||
(`placeholderColor: 'auto'`) — przezroczyste PNG/SVG/WebP (logotypy, ikony) nie mają już tła.
|
||||
`placeholderColor: true` wymusza kolor (nieprzezroczyste PNG/WebP), `false` wyłącza. Hook nie zapisuje
|
||||
koloru dla obrazów z przezroczystością (`color: null`).
|
||||
- `videoProps(resource, { mode: 'background' | 'player', poster, reducedMotion })`.
|
||||
- `buildMediaPlaceholderHook()` + `buildMediaPlaceholderField()` w Media — podgląd liczony przy
|
||||
uploadzie przez `sharp` z configu. Postgres: `migrate:create`.
|
||||
|
||||
Reference in New Issue
Block a user