Actions
The built in action types and the contract for defining your own.
An action is { "type": "...", ...anything }. The whole object reaches the handler for that type, so each type defines its own extra keys.
Built in types#
Host defined types#
Anything else, deeplink included, belongs to the host app. Handlers are consulted newest first; the first to return true consumes the action, which also lets hosts override built ins.
ActionContext exposes the source widget id, the page store for mutations, and the presenter for sheets and toasts.
Events#
Widgets fire actions by event name. The renderer wires tap and long_press on the envelope; widgets fire their own named events such as change.