7.12.0
@comet/admin@7.12.0
Minor Changes
-
af51bb4: Make the width of
GridToolbarQuickFilter
responsive when used insideDataGridToolbar
-
92b3255: Hide group title in
CrudMoreActionsMenu
when only one group is present -
e8003f9: Add a new
FillSpace
component to replaceToolbarFillSpace
andAppHeaderFillSpace
ToolbarFillSpace
andAppHeaderFillSpace
are now deprecated. -
4f6e6b0: Deprecate
FinalFormRadio
andFinalFormCheckbox
-
5583c9c: Export
renderFinalFormChildren
helper -
7da81fa: Add a new
Button
component to replaceToolbarActionButton
and MUI'sButton
Compared to MUI's
Button
component, thecolor
prop has been removed, and thevariant
prop now defines those variants, defined by the Comet design guidelines,primary
is the default variant.-import { Button } from "@mui/material"; +import { Button } from "@comet/admin"; export const AllButtonVariants = () => ( <> - <Button variant="contained" color="primary">Primary</Button> + <Button>Primary</Button> - <Button variant="contained" color="secondary">Secondary</Button> + <Button variant="secondary">Secondary</Button> - <Button variant="outlined">Outlined</Button> + <Button variant="outlined">Outlined</Button> - <Button variant="outlined" color="error">Destructive</Button> + <Button variant="destructive">Destructive</Button> - <Button variant="contained" color="success">Success</Button> + <Button variant="success">Success</Button> - <Button variant="text" sx={{ color: "white" }}>Text Light</Button> + <Button variant="textLight">Text Light</Button> - <Button variant="text" sx={{ color: "black" }}>Text Dark</Button> + <Button variant="textDark">Text Dark</Button> </> );
Responsive behavior
ToolbarActionButton
is now deprecated.
Previously,ToolbarActionButton
would hide its text content on mobile and add it with a tooltip instead.
This behavior can now be achieved by setting theresponsive
prop on theButton
component.-import { ToolbarActionButton } from "@comet/admin/lib/common/toolbar/actions/ToolbarActionButton"; +import { Button } from "@comet/admin"; import { Favorite } from "@comet/admin-icons"; const Example = () => { - return <ToolbarActionButton startIcon={<Favorite />}>Hello</ToolbarActionButton>; + return <Button responsive startIcon={<Favorite />}>Hello</Button>; };
Patch Changes
- 9546356: Fix mobile styling of
AppHeaderMenuButton
- 3ddc227: Adjust the spacings inside
Toolbar
andDataGridToolbar
to match the Comet design - 0bb181a:
usePersistentColumnState
: Prevent Data Grids with the same name to overwrite each others pinned and column-visibility states
@comet/admin-theme@7.12.0
Minor Changes
- ee59753: Add styling of
Card
andCardHeader
to align with Comet DXP design
Patch Changes
- 47be4eb: Adapt styling of
DialogActions
,DialogContent
, andDialogTitle
to match the Comet DXP design - af51bb4: Prevent the input value of
GridToolbarQuickFilter
from being truncated too early
@comet/blocks-admin@7.12.0
Minor Changes
-
86479e7: Simplify setting field props when using
createCompositeBlockTextField
orcreateCompositeBlockSelectField
The props can now be set directly without nesting them inside the
fieldProps
object.block: createCompositeBlockTextField({ - fieldProps: { label: "Title", fullWidth: true, - }, }),
-
af350d0: Add
createCompositeBlockSwitchField
helper functionTo simplify the creation of a switch field block by hiding the verbose definition of
Form
,Field
and items. -
86479e7: Support
disabled
in select options when usingcreateCompositeBlockSelectField
Patch Changes
- 5583c9c: Allow passing a function as child to
BlocksFinalForm
@comet/cms-admin@7.12.0
Minor Changes
-
604491d: Validate filename length for uploads to DAM or FileUploads
The filename can't exceed 255 characters.
Patch Changes
-
64173b5: Fix page tree node slug validation to prevent URL encoded characters
-
0837c4c: Hide the "Dependents" tab in the DAM for users without the permission
dependencies
-
cf1a829: Remove
video/avi
,image/psd
andvideo/x-m4v
from default accepted mimetypesNone of this mimetypes had an actual impact:
video/avi
doesn't actually existimage/psd
doesn't exist / is non-standardvideo/x-m4v
is a niche format and the mimetype is not widely used (e.g., Google Chrome and MacOS usevideo/mp4
instead)
So removing them shouldn't have any noticeable effects.
-
cf1a829: Add
image/x-icon
to default accepted mimetypesPreviously, only
image/vnd.microsoft.icon
was supported. That could lead to problems uploading .ico files, since
image/vnd.microsoft.icon
andimage/x-icon
are valid mimetypes for this format. -
02dd20a: Export
useDamScope
hookThis allows accessing the DAM scope in the application. This might be necessary when developing integrations with a third-party DAM.
-
9546356: Update default icon of
ContentScopeSelect
and fix mobile styling forAppHeader
components- Update the default icon in
ContentScopeSelect
from<Domain />
to<Language />
- Fix mobile styling of
BuildEntry
andContentScopeSelect
andUserHeaderItem
- Update the default icon in
@comet/cms-api@7.12.0
Minor Changes
-
604491d: Validate filename length for uploads to DAM or FileUploads
The filename can't exceed 255 characters.
-
575f1a7: Add
ExceptionFilter
to replaceExceptionInterceptor
The main motivation for this change was that the
ExceptionInterceptor
didn't capture exceptions thrown in guards. This could lead to information leaks, e.g., details about the database schema or the underlying code. This is considered a security risk.The
ExceptionFilter
also catches error within guards. The error format remains unchanged.Switching from the
ExceptionInterceptor
to theExceptionFilter
must be done in the project:// main.ts - app.useGlobalInterceptors(new ExceptionInterceptor(config.debug)); + app.useGlobalFilters(new ExceptionFilter(config.debug));
Patch Changes
-
64173b5: Fix page tree node slug validation to prevent URL encoded characters
-
c66a403: Migrate from deprecated
@azure/openai
package toopenai
See https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/migration-javascript for more information.
-
6b4866a: Pass
x-preview-dam-urls
andx-relative-dam-urls
headers tourl
field resolver inFileImagesResolver
-
cf1a829: Remove
video/avi
,image/psd
andvideo/x-m4v
from default accepted mimetypesNone of these mimetypes had an actual impact:
video/avi
doesn't actually existimage/psd
doesn't exist / is non-standardvideo/x-m4v
is a niche format and the mimetype is not widely used (e.g., Google Chrome and MacOS usevideo/mp4
instead)
So removing them shouldn't have any noticeable effects.
-
cf1a829: Add
image/x-icon
to default accepted mimetypesPreviously, only
image/vnd.microsoft.icon
was supported. That could lead to problems uploading .ico files, since
image/vnd.microsoft.icon
andimage/x-icon
are valid mimetypes for this format. -
ff0a037: Prevent image uploads from failing if exif data cannot be parsed
@comet/cli@7.12.0
Minor Changes
- 753cd6f: Add option for base64 encoding in
inject-site-configs
command
@comet/cms-site@7.12.0
Patch Changes
- e92e6df: Prevent the block-preview from becoming unresponsive when rendering an
input