A palette entry was clicked (or activated from the keyboard).
Carries the whole config rather than the type string so the host does not have to look it back up — the palette already resolved it, and re-resolving is where a silent mismatch would live.
Converts a hex color to rgba with the given opacity for background tinting
Handler for the click/keyboard activation on a palette entry.
Palette sidebar for creating new nodes — click it or drag it.
Foblex's
fExternalItemdirective supplies drag-to-canvas placement, which is the precise gesture when the author cares where the box lands. It is not, however, the only gesture people try: a palette that looks like a list of buttons gets clicked, and for a long time a click here produced nothing at all — the item was a bare<div>with no click binding, so the interaction never even reached the editor. The entry is now a real<button>, which restores the click, the keyboard (Enter/Space), and the focus ring for free, and emits NodeTypeActivated.Both gestures converge on the same
NodeAddedevent inFlowEditorComponent— one code path, so a host that handles the drop automatically handles the click.