7.0.0-beta.2
Pre-release@comet/cms-admin@7.0.0-beta.2
Major Changes
-
3574617: Remove
EditPageLayout
You can completely remove
EditPageLayout
from your application.
Instead, useMainContent
to wrap all your page content except theToolbar
.
If needed, wrapMainContent
andToolbar
in a fragment.Example:
- <EditPageLayout> + <> <Toolbar> // ... </Toolbar> - <div> + <MainContent> // ... - </div> + </MainContent> - </EditPageLayout> + </>
Minor Changes
-
acfcef9: The
documentTypes
prop ofPagesPage
now also accepts a function mapping categories to document typesPreviously, 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
andDamVideoBlock
that opens the chosen file in the DAMNote: This feature only works if the
DependenciesConfig
is configured forDamFile
:// 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 changesExample
<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