Skip to content

6.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Apr 20:26
· 1217 commits to main since this release
d6d651e

@comet/admin@6.6.0

Minor Changes

  • 95b97d7: useDataGridRemote: Add initialFilter option

    Example usage:

    const dataGridProps = useDataGridRemote({
        initialFilter: { items: [{ columnField: "description", operatorValue: "contains", value: "text" }] },
    });

Patch Changes

  • 6b04ac9: Fix the key for accessing the themes styleOverrides and defaultProps of CometAdminMenu

@comet/blocks-admin@6.6.0

Minor Changes

  • a65679b: Add minVisibleBlocks option to createListBlock factory

    This 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() decorator

    The 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 AccessLogModule

    AccessLogModule.forRoot({
        userToLog: (user) => `User: ${user.id} ${user.email}`,
    }),

@comet/cms-admin@6.6.0

Patch Changes

  • c766665: Make headers in includeInvisibleContentContext overridable in query

    You can now override the headers x-include-invisible-content and x-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,
            },
        },
    });