5.5.0
@comet/cms-admin@5.5.0
Patch Changes
-
1b37b1f: Show
additionalToolbarItems
inChooseFileDialog
The
additionalToolbarItems
were only shown inside theDamPage
, but not in theChooseFileDialog
.
To fix this, use theadditionalToolbarItems
option inDamConfigProvider
.
TheadditionalToolbarItems
prop ofDamPage
has been deprecated in favor of this option.Previously:
<DamPage // ... additionalToolbarItems={<ImportFromExternalDam />} />
Now:
<DamConfigProvider value={{ // ... additionalToolbarItems: <ImportFromExternalDam />, }} > {/*...*/} </DamConfigProvider>
-
85aa962: Set unhandled dependencies to
undefined
when copying documents to another scopeThis prevents leaks between scopes. In practice, this mostly concerns links to documents that don't exist in the target scope.
Example:
- Page A links to Page B
- Page A is copied from Scope A to Scope B
- Link to Page B is removed from Page A by replacing the
id
withundefined
(since Page B doesn't exist in Scope B)
Note: The link is only retained if both pages are copied in the same operation.
-
c4639be: Clip crop values when cropping an image in the DAM or
PixelImageBlock
Previously, negative values could occur, causing the image proxy to fail on delivery.
@comet/cms-api@5.5.0
Minor Changes
-
bb2c76d: Deprecate
FileUploadInterface
interfaceUse
FileUploadInput
instead. -
bb2c76d: Deprecate
download
helperThe helper is primarily used to create a
FileUploadInput
(previouslyFileUploadInterface
) input forFilesService#upload
while creating fixtures.
However, the name of the helper is too generic to be part of the package's public API.
Instead, use the newly addedFileUploadService#createFileUploadInputFromUrl
.Example:
@Injectable() class ImageFixtureService { constructor(private readonly filesService: FilesService, private readonly fileUploadService: FileUploadService) {} async generateImage(url: string): Promise<FileInterface> { const upload = await this.fileUploadService.createFileUploadInputFromUrl(url); return this.filesService.upload(upload, {}); } }
@comet/eslint-config@5.5.0
Patch Changes
- 80a6d8d: Move import restriction for MUI's
Alert
to correct ESLint config