A server-authoritative node editor for Phoenix LiveView.
The component accepts complete PhoenixDnd.Scene snapshots while LiveView's
keyed rendering sends granular DOM diffs. High-frequency pointer state stays
in a small browser hook and is reported as semantic PhoenixDnd.Intent
messages.
Summary
Functions
The hook event used for server-to-client command batches.
Pushes an ordered command batch to one editor instance.
Functions
The hook event used for server-to-client command batches.
@spec push_commands( Phoenix.LiveView.Socket.t(), String.t(), PhoenixDnd.CommandBatch.t() ) :: Phoenix.LiveView.Socket.t()
Pushes an ordered command batch to one editor instance.
Events are delivered to every hook listening for the shared event name; the editor ID in the envelope scopes the batch to its intended instance.