Skip to content

FragmentFieldState

Defined in: fragments.ts:166

A resolved field: a FieldState, assignable to one. source keeps its three values and says whether the copy is adapted. stated is true on a field that shows a stated fact (its source is then "static").

optional crossfade?: boolean

Defined in: state.ts:113

True when text deliberately replaces text that may have been visible: an unfinished line replaced by the fallback after a failure or a stall (UnfinishedCopyPolicy), or new copy after the campaign or context changed. Renderers cross-fade once (COPY_MOTION_MS, COPY_MOTION_EASING) instead of typing. Absent on every other field — no other change ever replaces visible text.

FieldState.crossfade


mode: "generate" | "replay" | null

Defined in: state.ts:99

Declared delivery mode, once the field has opened.

FieldState.mode


settled: boolean

Defined in: state.ts:104

text is final for this stream: closed by the server, or settled by the SDK at the end of the stream.

FieldState.settled


source: "generated" | "cached" | "static"

Defined in: state.ts:97

Provenance of text. generated and cached may carry the adaptation mark, static may not — decideChrome is the one place that decides.

FieldState.source


optional stated?: true

Defined in: fragments.ts:168

The text is a stated fact from the workspace’s records. Absent otherwise.


text: string

Defined in: state.ts:94

What a consumer should render right now. Never a placeholder.

FieldState.text


typing: boolean

Defined in: state.ts:101

True while live deltas are landing — consumers may animate a caret.

FieldState.typing