ConstFind the optimization entry corresponding to one of the selected experiences.
Object containing the baseline optimized entry and the selections.
The matching OptimizationEntry, or undefined if not found/invalid.
Look up the selection metadata for a specific optimization entry.
Object with the target optimization entry and selections.
The matching SelectedOptimization, if present.
Identifier of the personalization or experiment experience.
Optionalsticky?: booleanIndicates whether this optimization selection is sticky for the user.
Index of the selected variant within the experience configuration.
Mapping of baseline entry IDs to their selected variant entry IDs.
Get the replacement variant config for the given selection index.
Baseline entry, optimization entry, and 1‑based variant index.
The EntryReplacementVariant for the component, if any.
Optionalhidden?: booleanOn a baseline: true excludes the whole component from allocation.
On a variant: can be true (author chose "Use empty variant") or false
(unfilled placeholder). Both states share id: "". Do not use this field to
detect an empty variant — use id === "" instead. The Experience API strips
this field before runtime; it is only present in Contentful CDA nt_config.
Unique identifier for the variant. Empty string ("") for an empty variant —
both the deliberate "Use empty variant" choice and an unfilled placeholder slot.
Resolve the concrete Contentful entry that corresponds to a selected variant.
Entry skeleton type.
Chain modifiers.
Locale code.
Optimization entry and selected variant.
The resolved entry typed as Entry or undefined.
Given a baseline OptimizedEntry and a set of selected optimizations (variants per experience), this resolver finds the matching replacement variant for the component configured against the baseline entry.
Variant indexing: variantIndex in SelectedOptimization is treated as
1‑based (index 1 = first variant). A value of 0 indicates baseline.
Resolve an optimized Contentful entry to the correct variant for the current selections.