Headless helpers for the project's own <Media> (look stays in the project): - mediaImageProps: dimensions from the doc (no CLS), lazy by default, LCP image gets preload + fetchPriority=high + eager (Next 16 replaced 'priority'), focal point → object-position, blur placeholder + dominant colour. - MEDIA_SIZES suggestions for 'sizes' (any string still works). - videoProps: 'background' (muted loop, respects reduced motion) or 'player' (controls, preload=none, poster). - buildMediaPlaceholderHook/Field: tiny WebP blur + dominant colour at upload via the configured sharp (no new dependency). - buildImagesConfig: AVIF/WebP, R2 remotePatterns, 31-day cache. - <YouTubeEmbed> (/client): poster + button, youtube-nocookie iframe on click. - buildCsp youtube allows the i.ytimg.com poster. kod-sekcji Media template uses the helpers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Dokumentacja @intecion/ipal-kit
| Kim jesteś | Czytaj |
|---|---|
| Agent AI pracujący w projekcie | AGENT.md — reguły, struktura, budowa sekcji, kontrole przed „gotowe” |
| Agent AI — skille | agent/skills/ — 14 skilli ipal-* dla Antigravity/Claude Code, w tym ipal-site (strona od briefu do raportu) i skrypty kontrolne (kopiowane do projektu: pnpm ipal:skills, AGENT.md §14) |
| Programista | PROGRAMISTA.md — instalacja, nowy projekt, env, wdrożenie, aktualizacja, publikacja pluginu, Gitea |
| Osoba prowadząca agenta AI | vibe.md — tryb autonomiczny (/ipal-site) i gotowe polecenia krok po kroku |
Szczegóły API — jeden plik na moduł:
| Moduł | Plik |
|---|---|
| Role i dostęp do panelu | access.md |
| Widget dostępności (opcjonalny) | accessibility.md |
GA4, GTM, Meta Pixel, Clarity, LinkedIn, TikTok, defer |
analytics.md |
| Bloki, RenderBlocks, enhanceProps | blocks.md |
| Zgoda cookies, baner | consent.md |
| Routing, archiwa, redirecty, Markdown, wyszukiwarka | content.md |
| Email SMTP / Graph | email.md |
| Walidacja env | env.md |
| Formularze, useForm, honeypot | forms.md |
| Hooki | hooks.md |
| i18n, proxy, przełącznik języka | i18n.md |
| Linki / CTA: buildLinkField, buildLinksField, resolveLinkHref, rowLabel | links.md |
| Serwer MCP strony | mcp.md |
| Komunikaty formularzy | notifications.md |
| Strony systemowe, 404, generateStaticParams | pages.md |
| Helpery Payload | payload-helpers.md |
| Rich text | richtext.md |
| Nagłówki, CSP, 2FA | security.md |
| SEO, metadata, sitemap, JSON-LD, llms.txt | seo.md |
| Auto-slug | slug.md |
| Media, R2 | storage.md |
| Turnstile | turnstile.md |
| White-label panelu | white-label.md |
Zasada utrzymania: zmiana API modułu → aktualizacja jego pliku w tym samym commicie. Nowe reguły pracy → AGENT.md. Nowy krok procesu → PROGRAMISTA.md. Nowy etap budowy → vibe.md. Nie dodawaj kolejnych plików ogólnych.