MingaEditor.Shell.Traditional.ModalWorkflow (Minga v0.1.0)

Copy Markdown View Source

Editor-state workflow around the pure ModalOverlay value owner.

Summary

Functions

Closes a completed modal.

Returns the active command-completion payload.

Returns the active inner completion value.

Returns the active completion trigger or a fresh trigger.

Dismisses a canceled modal and cancels only its local completion timers.

Dismisses completion owned by a different active tab.

Opens an exact modal value, preserving conflict stickiness and suppressing lower transients.

Records completion-trigger lifecycle with current tab context.

Transitions to an exact modal value unconditionally and suppresses lower transients.

Updates the active completion value.

Functions

close(state)

Closes a completed modal.

command_completion(arg1)

Returns the active command-completion payload.

completion(arg1)

Returns the active inner completion value.

completion_trigger(arg1)

Returns the active completion trigger or a fresh trigger.

dismiss(state)

Dismisses a canceled modal and cancels only its local completion timers.

dismiss_if_stale(state)

@spec dismiss_if_stale(MingaEditor.State.t()) :: MingaEditor.State.t()

Dismisses completion owned by a different active tab.

open(state, modal)

Opens an exact modal value, preserving conflict stickiness and suppressing lower transients.

put_completion_trigger(state, trigger)

Records completion-trigger lifecycle with current tab context.

transition(state, modal)

Transitions to an exact modal value unconditionally and suppresses lower transients.

update_completion(state, update)

Updates the active completion value.