4.4.0
@comet/admin@4.4.0
Minor Changes
-
e824ffa: Add
fullHeight
&disablePadding
props to MainContentfullHeight
makesMainContent
take up the remaining space below to fill the entire page.
This is helpful for virtualized components that need a fixed height, such asDataGrid
or thePageTree
.disablePadding
is helpful if a component requires thefullHeight
behaviour but should fill the entire page without the surrounding space. -
3e15b81: Add field components to simplify the creation of forms with Final Form.
TextField
TextAreaField
SearchField
SelectField
CheckboxField
SwitchField
ColorField
DateField
DateRangeField
TimeField
TimeRangeField
DateTimeField
Example with TextField
// You can now do: <TextField name="text" label="Text" />
// Instead of: <Field name="text" label="Text" component={FinalFormInput} />
Example with SelectField
// You can now do: <SelectField name="select" label="Select"> {options.map((option) => ( <MenuItem key={option.value} value={option.value}> {option.label} </MenuItem> ))} </SelectField>
// Instead of: <Field name="select" label="Select"> {(props) => ( <FinalFormSelect {...props}> {options.map((option) => ( <MenuItem key={option.value} value={option.value}> {option.label} </MenuItem> ))} </FinalFormSelect> )} </Field>
-
a77da84: Add helper for mui grid pagination (
muiGridPagingToGql()
)Sample usage:
const { data, loading, error } = useQuery<GQLProductsListQuery, GQLProductsListQueryVariables>(productsQuery, { variables: { ...muiGridFilterToGql(columns, dataGridProps.filterModel), ...muiGridPagingToGql({ page: dataGridProps.page, pageSize: dataGridProps.pageSize }), sort: muiGridSortToGql(sortModel), }, });
@comet/admin-color-picker@4.4.0
Minor Changes
- 3e15b81: Add field components to simplify the creation of forms with Final Form.
@comet/admin-date-time@4.4.0
Minor Changes
- 3e15b81: Add field components to simplify the creation of forms with Final Form.
@comet/blocks-admin@4.4.0
Minor Changes
- d4960b0: Add loop toggle to
YouTubeVideoBlock
@comet/cms-admin@4.4.0
Minor Changes
-
9b1a650: Silence polling errors in
PageTree
Errors during polling (pages query, check for changes query) led to multiple consecutive error dialogs, which were irritating for our users. As these errors occurred randomly and would typically be resolved by the next poll, we decided to silence them altogether.
-
a77da84: Add helper for mui grid pagination (
muiGridPagingToGql()
)
Patch Changes
- 1158362: Add content validation for SVG files to prevent the upload of SVGs containing JavaScript
@comet/blocks-api@4.4.0
Minor Changes
- d4960b0: Add loop toggle to
YouTubeVideoBlock
@comet/cms-api@4.4.0
Minor Changes
- d4960b0: Add loop toggle to
YouTubeVideoBlock