UNPKG

strapi-nextgen-framework

Version:

Production-ready, type-safe framework bridging Strapi v4 CMS and Next.js 14+ App Router with automatic cache management, Error Boundaries, and SEO optimization

28 lines 786 B
/** * Presentation Layer (Renderer) - Phase 3 Implementation * Renders Strapi dynamic zones with Error Boundaries and Zod validation */ import React from 'react'; import type { StrapiRendererProps } from './types'; /** * Renders Strapi dynamic zones with automatic component mapping * * Features: * - Automatic Error Boundary wrapping for each component * - Optional Zod validation in development mode * - Graceful degradation in production * - Type-safe component mapping * * @param props - Renderer configuration * * @example * ```tsx * <StrapiRenderer * data={dynamicZoneData} * map={componentMap} * validation="warn" * /> * ``` */ export declare function StrapiRenderer(props: StrapiRendererProps): React.ReactElement; //# sourceMappingURL=index.d.ts.map