-
v0.40.0 Stable
released this
2026-11-05 21:21:41 +00:00 | 92 commits to main since this releaseAdded
- Media library, picking half (PUI-95). A record form declares
{ type: 'media', collection, multiple?, max? }andRecordFields
rendersMediaField: thumbnail rows for the stored snapshot, remove and
reorder, and a Choose button openingMediaPicker, a largeModal
aroundMediaBrowserin pick mode with folders, search, sort, grid or
list layout, and upload into the current folder with per-file progress,
cancel and retry (a finished upload joins the selection). The selection
is a list of ids, so it survives paging and folder changes;maxcaps a
multiple pick. The field storesMediaFieldValuesnapshots,nullor an
array, and never refreshes them.createMedia({ api, collections })is
installed once (@[secure]/ui/media) and read byuseMedia();
MediaBrowser,MediaPickerandMediaGridtakeapiandcollection
as props so a page composes them without it.Media.typestypes the whole
MediaApi(collection-scoped folder, file, upload, move, delete and
folder calls, every read with anAbortSignal),docs/cms/backend-contract.md
andschema.jsongain the folder tree, file list (filter[folder],
search,sort), file, collection-count and upload shapes with the
validation_error,not_found,too_large,unsupported_type,in_useand
folder_not_emptycodes, and themediamessage section covers every
string in English and Dutch.MediaTilestays internal behind the grid's
#tileslot. Six file-kind icons join the set:file-text,
file-spreadsheet,file-archive,presentation,video,music. Modalgainssize: 'md' | 'lg'(defaultmd);lgwidens the dialog
to--container-width-lg. The open dialog's body now scrolls with the
title and footer pinned instead of the whole dialog scrolling.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Media library, picking half (PUI-95). A record form declares