github emdash-cms/emdash @emdash-cms/blocks@1.7.0

Patch Changes

  • #5133 c78e210 Thanks @justincavery! - Fixes decimal validation for number_input in Block Kit forms and sandboxed field widgets. Values such as 5.25 without a minimum and 5.00 with a minimum of 0.01 now save. Sandboxed field widgets also enforce their declared min and max bounds.

  • 7afb693 Thanks @ascorbic! - Updates custom chart blocks (chart_type: "custom") so that tooltips are always drawn on the chart canvas.

  • #4925 2072b22 Thanks @emdash-autofix! - Fixes validateBlocks() and validateBlockResponse() accepting unsupported repeater fields inside Block Kit form blocks. These validators now return an error at the field's .type path. Repeaters in Portable Text block field definitions are unaffected.

    Plugin authors must remove repeaters from form blocks in plugin admin pages, widgets, and content-editor panels, where they never rendered. For sandboxed plugins' admin pages and widgets, and all plugins' content-editor panels (sandboxed or in-process), these invalid forms now cause INVALID_BLOCK_RESPONSE for the whole response, with the field path in server logs, instead of a view with missing fields. Affected site operators should update to a corrected plugin version or ask the plugin author to remove the unsupported fields. In-process admin page and widget responses that bypass validation are unchanged.

Don't miss a new emdash release

NewReleases is sending notifications on new releases.