Skip to content

7.15.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 27 Feb 12:27
· 2 commits to main since this release
a9ab7d9

@comet/admin@7.15.0

Minor Changes

  • a189d4e: Support dynamic values for the label prop of SwitchField depending on its checked state

    <SwitchField name="switch" label={(checked) => (checked ? "On" : "Off")} />
  • 7d8c36e: Add the DataGridPanel component to replace MUIs default Panel used by DataGrid to match the Comet DXP design

    It is recommended to add this component to your theme's defaultProps of MuiDataGrid.

    Example theme configuration for admin/src/theme.ts:

    import { DataGridPanel } from "@comet/admin";
    import { createCometTheme } from "@comet/admin-theme";
    import type {} from "@mui/x-data-grid/themeAugmentation";
    
    export const theme = createCometTheme({
        components: {
            MuiDataGrid: {
                defaultProps: {
                    components: {
                        Panel: DataGridPanel,
                    },
                },
            },
        },
    });
  • a189d4e: Allow passing a ReactNode to fieldLabel of CheckboxField and SwitchField

    This enables using FormattedMessage for the label.

    <CheckboxField name="visible" fieldLabel={<FormattedMessage id="exampleForm.visible" defaultMessage="Visible" />} />
    <SwitchField name="visible" fieldLabel={<FormattedMessage id="exampleForm.visible" defaultMessage="Visible" />} />

Patch Changes

  • faa54eb: Fix display of warnings for forms that use both form-level and field-level validation
  • 6827982: Preserve the default Button color when using the sx prop with the textLight or textDark variant

@comet/admin-theme@7.15.0

Minor Changes

  • 7d8c36e: Improve the styling of the filter and columns panels of DataGrid

@comet/blocks-admin@7.15.0

Patch Changes

  • e056e8f: Change "Add column" button label in createColumnsBlock to "Add item"

@comet/cms-admin@7.15.0

Patch Changes

  • 46ab330: Adapt styling of the dashboard header to match the Comet DXP design

@comet/cms-api@7.15.0

Patch Changes

  • 83b8111: Allow use tag in SVG again

    use can be used to define paths once in a SVG and then integrating them multiple times via anchor links: <use xlink:href="#path-id" />. This should not be prohibited.

    It's still not possible to use use to reference external files, since we still prohibit href and xlink:href attributes starting with http://, https:// and javascript:.

  • e6f9641: Add fallback values for users created via ID token

@comet/cms-site@7.15.0

Patch Changes

  • 75fb1d0: Fix block preview not rendering before user interaction