Bug
Transitioning a machine from one state to another fails
Transition to idle state
idle
No transition occurs, stays at editingNew
editingNew
Minimal Reproduction on CodeSandbox
Not a bug. You forgot the on property.
on
Adding // @ts-check will help you surface errors like these:
// @ts-check