A single <option> for the shortcode-reference field widget (#974): the stored value is the referenced document's shortcode, label is its display name. A dangling reference (a stored shortcode with no matching candidate) is surfaced as a flagged option rather than being dropped.

interface ShortcodeRefOption {
    label: string;
    unresolved?: boolean;
    value: string;
}

Properties

label: string

The candidate's display name (or the shortcode when it has no name).

unresolved?: boolean

true when this option preserves a stored shortcode that resolved to no candidate — kept selected and visibly flagged, never blanked.

value: string

The shortcode stored by the field (the option's value).