Skip to content

5.5.0

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Jan 08:31
· 1476 commits to main since this release
32414d6

@comet/cms-admin@5.5.0

Patch Changes

  • 1b37b1f: Show additionalToolbarItems in ChooseFileDialog

    The additionalToolbarItems were only shown inside the DamPage, but not in the ChooseFileDialog.
    To fix this, use the additionalToolbarItems option in DamConfigProvider.
    The additionalToolbarItems prop of DamPage 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 scope

    This 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 with undefined (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 interface

    Use FileUploadInput instead.

  • bb2c76d: Deprecate download helper

    The helper is primarily used to create a FileUploadInput (previously FileUploadInterface) input for FilesService#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 added FileUploadService#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