Home > widget-integration > PredictiveBundleStateService
PredictiveBundleStateService class
Stores transient predictive bundle UI state shared across bundle surfaces.
Keep overrides lightweight and prefer clearing state when a custom flow no longer needs cached bundle data.
Signature:
export declare class PredictiveBundleStateService
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string | |||
|
Map<string, PredictiveBundleData> | |||
|
|
(not declared) | ||
|
Map<PredictiveBundleFocusRestoreKey, string> | |||
|
string | null |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Clears all cached bundle and focus state. | ||
|
Removes cached state for a single widget. | ||
|
Clears all saved focus restore targets. | ||
|
Returns the last active block type. | ||
|
Reads cached bundle state for a widget. | ||
|
Returns cached bundle state while forcing popup-open state. | ||
|
Reads a focus restore target. | ||
|
Returns the widget id currently associated with the modal surface. | ||
|
Tracks the most recent block type driving bundle interactions. | ||
|
Caches bundle state for a widget. | ||
|
Stores the element id that should receive focus after a rerender. | ||
|
Tracks the widget currently controlling the modal surface. |