Repository navigation
Release v4.83.0
A screen action can now pick its command from the selected item's state, so a Screenplay action with when … execute … alternatives renders as one button instead of being refused.
Added
core:guarded-actioncomponent: an action with orderedwhen <condition> execute <Command>alternatives runs the first alternative whose condition holds for the selected item, falls back tootherwise execute <Command>or hides itself, and stays hidden while nothing is selected. See Guarded actions. (#68)- Interaction bindings can carry ordered guarded alternatives with first-match semantics, evaluated against the interaction's subject. (#68)
- Guard conditions evaluate identically in C# and TypeScript: a condition on a missing field never matches, a field that is present and null matches only
== null, and a condition that cannot be evaluated fails closed with diagnosticSCENE-GUARD-001. (#68) InteractionContextaccepts an optionalsubject, the item an interaction acts on. (#68)