Skip to content

Release v4.83.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 19:46
e0f199d

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-action component: an action with ordered when <condition> execute <Command> alternatives runs the first alternative whose condition holds for the selected item, falls back to otherwise 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 diagnostic SCENE-GUARD-001. (#68)
  • InteractionContext accepts an optional subject, the item an interaction acts on. (#68)