Skip to content

7.12.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Jan 10:07
· 130 commits to main since this release
2fe1aab

@comet/admin@7.12.0

Minor Changes

  • af51bb4: Make the width of GridToolbarQuickFilter responsive when used inside DataGridToolbar

  • 92b3255: Hide group title in CrudMoreActionsMenu when only one group is present

  • e8003f9: Add a new FillSpace component to replace ToolbarFillSpace and AppHeaderFillSpace

    ToolbarFillSpace and AppHeaderFillSpace are now deprecated.

  • 4f6e6b0: Deprecate FinalFormRadio and FinalFormCheckbox

  • 5583c9c: Export renderFinalFormChildren helper

  • 7da81fa: Add a new Button component to replace ToolbarActionButton and MUI's Button

    Compared to MUI's Button component, the color prop has been removed, and the variant 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 the responsive prop on the Button 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 and DataGridToolbar 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 and CardHeader to align with Comet DXP design

Patch Changes

  • 47be4eb: Adapt styling of DialogActions, DialogContent, and DialogTitle 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 or createCompositeBlockSelectField

    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 function

    To 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 using createCompositeBlockSelectField

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 and video/x-m4v from default accepted mimetypes

    None of this mimetypes had an actual impact:

    • video/avi doesn't actually exist
    • image/psd doesn't exist / is non-standard
    • video/x-m4v is a niche format and the mimetype is not widely used (e.g., Google Chrome and MacOS use video/mp4 instead)

    So removing them shouldn't have any noticeable effects.

  • cf1a829: Add image/x-icon to default accepted mimetypes

    Previously, only image/vnd.microsoft.icon was supported. That could lead to problems uploading .ico files, since
    image/vnd.microsoft.icon and image/x-icon are valid mimetypes for this format.

  • 02dd20a: Export useDamScope hook

    This 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 for AppHeader components

    • Update the default icon in ContentScopeSelect from <Domain /> to <Language />
    • Fix mobile styling of BuildEntry and ContentScopeSelect and UserHeaderItem

@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 replace ExceptionInterceptor

    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 the ExceptionFilter 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 to openai

    See https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/migration-javascript for more information.

  • 6b4866a: Pass x-preview-dam-urls and x-relative-dam-urls headers to url field resolver in FileImagesResolver

  • cf1a829: Remove video/avi, image/psd and video/x-m4v from default accepted mimetypes

    None of these mimetypes had an actual impact:

    • video/avi doesn't actually exist
    • image/psd doesn't exist / is non-standard
    • video/x-m4v is a niche format and the mimetype is not widely used (e.g., Google Chrome and MacOS use video/mp4 instead)

    So removing them shouldn't have any noticeable effects.

  • cf1a829: Add image/x-icon to default accepted mimetypes

    Previously, only image/vnd.microsoft.icon was supported. That could lead to problems uploading .ico files, since
    image/vnd.microsoft.icon and image/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