OptionalallowedAllow-listed event type strings permitted when consent is not set.
OptionalapiUnified API configuration for stateful environments.
Children components that will have access to the ContentfulOptimization instance.
Client identifier used for authentication or tracking.
OptionalcontentfulContentful locale configuration used to resolve the CDA locale.
OptionaldefaultsOptional set of default values applied on initialization.
OptionalenvironmentContentful environment identifier.
OptionaleventEvent builder configuration (channel/library metadata, etc.).
OptionalfetchOptions used to configure the underlying protected fetch method.
OptionalgetFunction used to obtain an anonymous user identifier.
OptionalliveWhether OptimizedEntry components react to state changes in real time.
OptionallocaleInitial app/content locale candidate used to resolve the Contentful locale.
OptionallogMinimum log level for the default console sink.
OptionalonCallback invoked whenever an event call is blocked by checks.
OptionalonCalled once SDK state initialization completes and before provider children mount. Return a cleanup function to unsubscribe app-level state observers on teardown.
OptionalpreviewOptional configuration for the preview panel.
When provided with enabled: true, the preview panel will be available.
OptionalqueueUnified queue policy for queued stateful work.
OptionaltrackControls which entry interactions are tracked automatically for all
OptimizedEntry components. Individual
components can override each interaction type with their trackViews
and trackTaps props.
Props for the OptimizationRoot component.
Accepts all CoreStatefulConfig properties directly. Only
clientIdis required.