Fixes: 1. media.ts: wrap placeholder generation in try-catch 2. toolbar.ts: check r.ok, display error message in popover
3.1 KiB
@emdash-cms/blocks
0.9.0
Minor Changes
-
#790
7b8d496Thanks @all3f0r1! - Adds anaccordionBlock Kit block: a collapsible container that wraps nested blocks under a labeled trigger. Open/closed state is local to the rendered component (with optionaldefault_open), so plugin admin pages can hide advanced settings, FAQs, or auxiliary panels without paginating or round-tripping throughblock_action. -
#731
9dfc65cThanks @drudge! - Adds amedia_pickerBlock Kit element: a thumbnail preview with a modal library picker and mime-type filter. Usable in plugin block forms and in Block Kit field widgets. The stored value is the selected asset's URL string, so it is value-compatible with a plaintext_input— existing content continues to work after swapping. Themime_type_filteris restricted to image MIME types (image/orimage/<subtype>); wildcards and non-image types are rejected. -
#814
a838000Thanks @arashackdev! - rtl srtyle improvements and LTR/RTL compatible arrow/caret icons
0.8.0
Minor Changes
-
#792
6e0e921Thanks @all3f0r1! - Adds anemptyBlock Kit block: a styled empty-state placeholder with title, optional description, copyable shell command, size variant (sm/base/lg), and an optional list of action elements (CTAs). Plugin admin pages can now render proper empty states for lists, tables, and onboarding flows without rolling their own layout. -
#679
493e317Thanks @drudge! - Adds arepeaterBlock Kit element: array-of-objects with scalar sub-fields, drag-to-reorder, and collapsible item cards. Plugin block forms can now capture repeating data (FAQ rows, carousel slides, card grids) inline in the portable-text editor.
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
Patch Changes
- #246
e1349e3Thanks @estepanov! - Adds overflow-hidden and text-ellipsis to field value elements, with a title attribute for full-text tooltip on hover