@comet/admin@7.15.0
Minor Changes
-
a189d4e: Support dynamic values for the
label
prop ofSwitchField
depending on itschecked
state<SwitchField name="switch" label={(checked) => (checked ? "On" : "Off")} />
-
7d8c36e: Add the
DataGridPanel
component to replace MUIs defaultPanel
used byDataGrid
to match the Comet DXP designIt is recommended to add this component to your theme's
defaultProps
ofMuiDataGrid
.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
tofieldLabel
ofCheckboxField
andSwitchField
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 thesx
prop with thetextLight
ortextDark
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 againuse
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 prohibithref
andxlink:href
attributes starting withhttp://
,https://
andjavascript:
. -
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