CreativeState
Defined in: state.ts:80
Properties
Section titled “Properties”backgroundImage
Section titled “backgroundImage”backgroundImage:
string|null
Defined in: state.ts:86
contentSource
Section titled “contentSource”contentSource:
"generated"|"cached"|"static"
Defined in: state.ts:94
Strongest provenance this stream declared. Drives trust chrome.
ctaAction
Section titled “ctaAction”ctaAction:
string|null
Defined in: state.ts:90
ctaStyle
Section titled “ctaStyle”ctaStyle:
unknown
Defined in: state.ts:89
degraded
Section titled “degraded”degraded:
string|null
Defined in: state.ts:96
W8 — set when the server served a deterministic winner instead.
error:
string|null
Defined in: state.ts:100
Human-readable failure, if any. Never blanks painted copy.
experienceManifest
Section titled “experienceManifest”experienceManifest:
unknown
Defined in: state.ts:85
fields
Section titled “fields”fields:
Record<CopyField,FieldState>
Defined in: state.ts:82
optionalheld?:Partial<Record<CopyField,string>> |null
Defined in: state.ts:113
What the hold pulled off the canvas, per field — the copy that WAS
painted at first paint (/content copy or the consumer’s fallback),
exposed so a renderer can reserve its exact geometry while the field
is blank (LAYOUT-DOCTRINE.md layer 1). The choreographer stays
DOM-pure: it reports what was held; drawing the reservation is the
renderer’s job. Null when no hold armed this page view.
Optional so a CreativeState built by hand — a test mock, a Storybook
fixture — written against 0.3.0 still compiles: every reader goes
through state.held?., so absent and null are the same fact.
layout
Section titled “layout”layout:
string|null
Defined in: state.ts:84
meta:
Record<string,unknown> |null
Defined in: state.ts:92
Terminal done.meta, verbatim.
phase:
Phase
Defined in: state.ts:81
rewrites
Section titled “rewrites”rewrites:
number
Defined in: state.ts:119
Rewrite counter. 0 = still showing first paint. 1 = the stream’s single permitted rewrite has landed. Anything above 1 is a doctrine violation and is asserted against in the tests rather than merely hoped for.
sequence
Section titled “sequence”sequence: {
fps:number;frames:string[];heroIndex:number; } |null
Defined in: state.ts:87
theme: {
colors:Record<string,string>;sources:Record<string,string>; } |null
Defined in: state.ts:83
variantId
Section titled “variantId”variantId:
string|null
Defined in: state.ts:98
Resolved variant, for pinning subsequent calls in this page view.
videoUrl
Section titled “videoUrl”videoUrl:
string|null
Defined in: state.ts:88