Block Kit `repeater` renders nothing inside a plugin admin page `form` block, and validation accepts it
elements.repeater(...) produces a valid RepeaterElement, and validateFormField() in @emdash-cms/blocks accepts type: "repeater" inside a form block's fields. But a plugin admin page never draws it: the <form> renders with an empty container where the repeater should be, leaving only sibling fields and the submit button.
Cause (still present in @emdash-cms/blocks 1.0.1): FormBlockComponent (src/blocks/form.tsx) renders each field through renderElement() (src/render-element.tsx), and that has an explicit early return for repeaters:
case "repeater":
// Admin-authoring only. The runtime block renderer never returns a DOM node for `repeater` ...
return null;That comment describes the content-editor surface (where BlockKitRepeater/RepeaterField in @emdash-cms/admin handle it), but the plugin-admin-page surface goes through the same renderElement and silently gets nothing. FormField's TypeScript type excludes RepeaterElement, so a type-correct caller cannot hit it, but validation accepts it, so the failure is silent for anyone who builds the block as plain JSON or casts.
Repro: any plugin admin route (sandboxed or in-process) returning blocks.form({ fields: [elements.repeater("qs", "Questions", [...]), ...], submit }). Load the page: the repeater is missing.
Result: no supported way for a plugin admin page to collect a list-of-objects field in one form. Authors fall back to separate add-one/remove-one forms plus a read-only table.
Suggested fix: either (a) render repeaters on the plugin admin page surface, reusing the existing repeater component from the content editor, or (b) if repeater is intentionally content-type-only, make validateFormField reject type: "repeater" inside a form block so the gap becomes a validate-time error instead of an empty form.
Found while building Nordbook (a booking plugin) whose per-event-type custom questions would fit a repeater; verified against @emdash-cms/blocks 0.34.0 and 1.0.1 source.
Source: emdash-cms/emdash