ComponentPropsMap typedef
Host-supplied per-instance props, keyed by the column id of the component instance they are meant for. Column ids are the UUIDs persisted in the widget config; the composer's Modify drawer shows the selected one.
A key may be a single column id or a /-separated path of column ids
ending at the target, where the leading segments are the columns holding
the enclosing collections:
{
'b721c4e2-…': {'onClick': handleCta}, // any column with this id
'a3f9d180-…/b721c4e2-…': {'onClick': handleCta}, // …only inside that collection column
}
A key matches when its segments are the tail of the instance's own path, so a bare column id applies to every copy of a collection embedded more than once, and adding parent segments narrows it. When several keys match, the one with the most segments wins.
Implementation
typedef ComponentPropsMap = Map<String, WidgetInstanceProps>;