• v0.40.0 0b47f881b9

    v0.40.0 Stable

    pienter-release-bot released this 2026-11-05 21:21:41 +00:00 | 92 commits to main since this release

    Added

    • Media library, picking half (PUI-95). A record form declares
      { type: 'media', collection, multiple?, max? } and RecordFields
      renders MediaField: thumbnail rows for the stored snapshot, remove and
      reorder, and a Choose button opening MediaPicker, a large Modal
      around MediaBrowser in 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; max caps a
      multiple pick. The field stores MediaFieldValue snapshots, null or an
      array, and never refreshes them. createMedia({ api, collections }) is
      installed once (@[secure]/ui/media) and read by useMedia();
      MediaBrowser, MediaPicker and MediaGrid take api and collection
      as props so a page composes them without it. Media.types types the whole
      MediaApi (collection-scoped folder, file, upload, move, delete and
      folder calls, every read with an AbortSignal), docs/cms/backend-contract.md
      and schema.json gain 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_use and
      folder_not_empty codes, and the media message section covers every
      string in English and Dutch. MediaTile stays internal behind the grid's
      #tile slot. Six file-kind icons join the set: file-text,
      file-spreadsheet, file-archive, presentation, video, music.
    • Modal gains size: 'md' | 'lg' (default md); lg widens 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