PhoenixDnd (phoenix_dnd v0.1.0)

Copy Markdown View Source

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

command_event()

The hook event used for server-to-client command batches.

push_commands(socket, editor_id, batch)

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.