Skip to content

7.0.0-beta.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@thomasdax98 thomasdax98 released this 24 Jun 11:10
· 764 commits to main since this release
4af452b

@comet/cms-admin@7.0.0-beta.2

Major Changes

  • 3574617: Remove EditPageLayout

    You can completely remove EditPageLayout from your application.
    Instead, use MainContent to wrap all your page content except the Toolbar.
    If needed, wrap MainContent and Toolbar in a fragment.

    Example:

    - <EditPageLayout>
    + <>
          <Toolbar>
              // ...
          </Toolbar>
    -     <div>
    +     <MainContent>
              // ...
    -     </div>
    +     </MainContent>
    - </EditPageLayout>
    + </>

Minor Changes

  • acfcef9: The documentTypes prop of PagesPage now also accepts a function mapping categories to document types

    Previously, only the supported documentTypes of the current category could be passed to the PagesPage.
    That made it impossible to verify if a document can be moved to another category.
    If a document was moved to a category that didn't support its type, the PageTree crashed.

    If a mapping function is passed to documentTypes, documents can only be moved to categories that support their type.

    <PagesPage
    -   documentTypes={pageTreeDocumentTypes}
    +   documentTypes={(category): Record<DocumentType, DocumentInterface> => {
    +       if (category === "TopMenu") {
    +           return {
    +               Page,
    +               PredefinedPage,
    +           };
    +       }
    +
    +       return {
    +           Page,
    +           PredefinedPage,
    +           Link,
    +       };
    +   }}
        // ...
    />
  • 61a43d2: Add a menu item to PixelImageBlock, SvgImageBlock and DamVideoBlock that opens the chosen file in the DAM

    Note: This feature only works if the DependenciesConfig is configured for DamFile:

    // App.tsx
    
    <DependenciesConfigProvider
        entityDependencyMap={{
    +       DamFile: createDamFileDependency(),
            // ...
        }}
    >

Patch Changes

  • e106a02: Make the ContentScopeIndicator show the scope label instead of the scope value

@comet/admin@7.0.0-beta.2

Minor Changes

  • 2fc764e: Add OnChangeField helper to listen to field changes

    Example

    <OnChangeField name="product">
        {(value, previousValue) => {
            // Will be called when field 'product' changes
        }}
    </OnChangeField>

@comet/blocks-api@7.0.0-beta.2

Minor Changes

  • 87ef5fa: YouTubeVideoBlock: Add validation for identifier

    Must be either a valid YouTube URL or video identifier.

@comet/cms-api@7.0.0-beta.2

Minor Changes

  • 2f0675b: API Generator: Add support for filtering many-to-many-relations by id

@comet/admin-theme@7.0.0-beta.2

Patch Changes

  • 2de81e4: Fix top position of end-adornment in MuiAutocomplete