6.6.0
@comet/admin@6.6.0
Minor Changes
-
95b97d7: useDataGridRemote: Add
initialFilter
optionExample usage:
const dataGridProps = useDataGridRemote({ initialFilter: { items: [{ columnField: "description", operatorValue: "contains", value: "text" }] }, });
Patch Changes
- 6b04ac9: Fix the key for accessing the themes
styleOverrides
anddefaultProps
ofCometAdminMenu
@comet/blocks-admin@6.6.0
Minor Changes
-
a65679b: Add
minVisibleBlocks
option tocreateListBlock
factoryThis enables the possibility to enforce a minimum amount of blocks added to a list block. List blocks with less than the required amount of visible entries can't be saved.
Example usage:
export const SomeListBlock = createListBlock({ // ... + minVisibleBlocks: 2, });
@comet/blocks-api@6.6.0
Minor Changes
-
e880929: Improve typing of
@RootBlockEntity()
decoratorThe target entity can now be passed as generic to have the correct type in
isVisible
:@RootBlockEntity<Product>({ isVisible: (product) => product.visible, }) export class Product extends BaseEntity<Product, "id"> {}
@comet/cms-api@6.6.0
Minor Changes
-
6160119: Provide a
User
-interface that allows module augmentation and hence storing additional data. -
38df2b4: Add
userToLog
-option to AccessLogModuleAccessLogModule.forRoot({ userToLog: (user) => `User: ${user.id} ${user.email}`, }),
@comet/cms-admin@6.6.0
Patch Changes
-
c766665: Make headers in
includeInvisibleContentContext
overridable in queryYou can now override the headers
x-include-invisible-content
andx-preview-dam-urls
in your query like this:const { loading, data, error } = useQuery(exampleQuery, { // ... context: { headers: { "x-include-invisible-content": [], "x-preview-dam-urls": 0, }, }, });