8.23.0
@comet/cms-admin@8.23.0
Minor Changes
-
d8e7261: Export
ChooseDamFilesDialogAllows building custom multi-file picker UIs on top of the DAM file dialog (e.g. bulk-adding files to a list block).
import { ChooseDamFilesDialog } from "@comet/cms-admin"; <ChooseDamFilesDialog open={open} onClose={onClose} onConfirm={(fileIds) => ...} initialFileIds={[]} allowedMimetypes={["image/jpeg"]} />
-
d8e7261: Add
multipleprop toFileFieldfor selecting multiple DAM filesFileFieldnow acceptsmultiple={true}to select a list of DAM files instead of a single file. Multi-file values are typed asGQLDamFileFieldFileFragment[](the same fragment used in single-file mode); the component renders a stacked list of files with per-row menu and remove actions. The picker dialog pre-checks the current selection viainitialFileIdsand returns the picked file ids on confirm. The single-file API is unchanged.Example
<Field name="files" component={FileField} multiple preview={(file) => <Thumbnail fileId={file.id} />} />
Patch Changes
-
d8e7261: Hide selective actions of DAM more actions menu in
ChooseDamFileDialog -
d8e7261: Fix
hideContextMenunot hiding the context menu column in the DAMDataGridThe visibility flag was applied to a no-longer-existing
contextMenucolumn id; the column had been renamed toactions. The flag now targets the correct column. -
d8e7261: Deprecate
ChooseFileDialogexportChooseFileDialogwas renamed toChooseDamFileDialog
@comet/cms-api@8.23.0
Minor Changes
-
d8e7261: Add
idsfilter todamFilesListFileFilterInputnow accepts an optionalids: [ID!]to restrict the result set to specific files. Useful for batch-loading a known selection (e.g. after a multi-file picker confirms) in a single request.