Skip to content

Releases: vivid-planet/comet

4.9.0

01 May 10:28
90c6f19
Compare
Choose a tag to compare

@comet/cms-api@4.9.0

Minor Changes

  • 541ca12: Enhanced the access log functionality to now skip logging for field resolvers in GraphQL context. This change improves the readability and relevance of our logs by reducing unnecessary entries.

5.7.2

25 Apr 12:24
be8664c
Compare
Choose a tag to compare

@comet/blocks-api@5.7.2

Patch Changes

  • 81a5d1d: Fix RichTextBlock draft content validation

    Extend validation to validate inline links in draft content.

5.7.1

24 Apr 05:08
189c1cb
Compare
Choose a tag to compare

@comet/cms-api@5.7.1

Patch Changes

  • 015dee7: Prevent block-meta.json write in read-only file systems

6.7.0

23 Apr 09:08
bb2c401
Compare
Choose a tag to compare

@comet/cms-api@6.7.0

Minor Changes

  • 645f19d: Add nullable param to @AffectedEntity to support id args that can be null or undefined
  • a0506e1: API Generator: Support validator decorators for input generation

Patch Changes

  • 645f19d: Fix mutations moveDamFiles, copyFilesToScope, archiveDamFiles and restoreDamFiles by adding @AffectedEntity to enable scope checks

  • 8315f10: Fix order of @RequiredPermission() decorators

    Decorators defined on handlers should be considered before decorators defined on classes.

  • 6eeaaa2: The CometAuthGuards now only creates the CurrentUser just on a request-basis and skips when called in a fieldResolver (e.g. when fieldResolverEnhancers contains guards).

@comet/cms-admin@6.7.0

Patch Changes

  • 2db3bc8: Fix CurrentUserInterface type

    Add missing id field, make name, email, and language required.

6.6.2

18 Apr 06:47
0fca564
Compare
Choose a tag to compare

@comet/cms-admin@6.6.2

Patch Changes

  • 0758d23: Hide the "Dependents" tab in the DAM if the DependenciesConfigProvider is not configured

    Previously, the tab was always shown, even if the feature wasn't configured. Though it didn't cause an error, the tab showed no valuable information.

    Now, we hide the tab if no configuration is passed via the DependenciesConfigProvider.

6.6.1

17 Apr 07:12
b0d0c68
Compare
Choose a tag to compare

@comet/cms-api@6.6.1

Patch Changes

  • 890795f: Fix calculation of totalCount in
    DependenciesService#getDependents

6.6.0

16 Apr 20:26
d6d651e
Compare
Choose a tag to compare

@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,
            },
        },
    });

5.7.0

16 Apr 11:01
95b97d7
Compare
Choose a tag to compare

@comet/admin@5.7.0

Minor Changes

  • fd8beea: useDataGridRemote: Add initialFilter option

    Example usage:

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

6.5.0

04 Apr 06:46
3cb2507
Compare
Choose a tag to compare

@comet/admin@6.5.0

Minor Changes

  • 6cb2f90: Add ContentOverflow component

    Used to wrap content that may be too large to fit its container.
    If the content is too large, it will be truncated. When clicked, the entire content will be displayed in a dialog.

    <ContentOverflow>{/* Lots of content ... */}</ContentOverflow>

@comet/blocks-admin@6.5.0

Minor Changes

  • 2f64daa: Add title field to link block

    Perform the following steps to use it in an application:

    1. API: Use the new createLinkBlock factory to create the LinkBlock:

      import { createLinkBlock } from "@comet/cms-api";
      
      // ...
      
      const LinkBlock = createLinkBlock({
          supportedBlocks: { internal: InternalLinkBlock, external: ExternalLinkBlock, news: NewsLinkBlock },
      });
    2. Site: Pass the title prop to LinkBlock's child blocks:

    const supportedBlocks: SupportedBlocks = {
    -   internal: ({ children, ...props }) => <InternalLinkBlock data={props}>{children}</InternalLinkBlock>,
    +   internal: ({ children, title, ...props }) => <InternalLinkBlock data={props} title={title}>{children}</InternalLinkBlock>,
        // ...
    };

@comet/cms-admin@6.5.0

Minor Changes

  • 2f64daa: Add title field to link block

    Perform the following steps to use it in an application:

    1. API: Use the new createLinkBlock factory to create the LinkBlock:

      import { createLinkBlock } from "@comet/cms-api";
      
      // ...
      
      const LinkBlock = createLinkBlock({
          supportedBlocks: { internal: InternalLinkBlock, external: ExternalLinkBlock, news: NewsLinkBlock },
      });
    2. Site: Pass the title prop to LinkBlock's child blocks:

    const supportedBlocks: SupportedBlocks = {
    -   internal: ({ children, ...props }) => <InternalLinkBlock data={props}>{children}</InternalLinkBlock>,
    +   internal: ({ children, title, ...props }) => <InternalLinkBlock data={props} title={title}>{children}</InternalLinkBlock>,
        // ...
    };

@comet/blocks-api@6.5.0

Minor Changes

  • 2f64daa: Add title field to link block

    Perform the following steps to use it in an application:

    1. API: Use the new createLinkBlock factory to create the LinkBlock:

      import { createLinkBlock } from "@comet/cms-api";
      
      // ...
      
      const LinkBlock = createLinkBlock({
          supportedBlocks: { internal: InternalLinkBlock, external: ExternalLinkBlock, news: NewsLinkBlock },
      });
    2. Site: Pass the title prop to LinkBlock's child blocks:

    const supportedBlocks: SupportedBlocks = {
    -   internal: ({ children, ...props }) => <InternalLinkBlock data={props}>{children}</InternalLinkBlock>,
    +   internal: ({ children, title, ...props }) => <InternalLinkBlock data={props} title={title}>{children}</InternalLinkBlock>,
        // ...
    };

@comet/cms-api@6.5.0

Minor Changes

  • 2f64daa: Add title field to link block

    Perform the following steps to use it in an application:

    1. API: Use the new createLinkBlock factory to create the LinkBlock:

      import { createLinkBlock } from "@comet/cms-api";
      
      // ...
      
      const LinkBlock = createLinkBlock({
          supportedBlocks: { internal: InternalLinkBlock, external: ExternalLinkBlock, news: NewsLinkBlock },
      });
    2. Site: Pass the title prop to LinkBlock's child blocks:

    const supportedBlocks: SupportedBlocks = {
    -   internal: ({ children, ...props }) => <InternalLinkBlock data={props}>{children}</InternalLinkBlock>,
    +   internal: ({ children, title, ...props }) => <InternalLinkBlock data={props} title={title}>{children}</InternalLinkBlock>,
        // ...
    };

@comet/cms-site@6.5.0

Minor Changes

  • 2f64daa: Add title field to link block

    Perform the following steps to use it in an application:

    1. API: Use the new createLinkBlock factory to create the LinkBlock:

      import { createLinkBlock } from "@comet/cms-api";
      
      // ...
      
      const LinkBlock = createLinkBlock({
          supportedBlocks: { internal: InternalLinkBlock, external: ExternalLinkBlock, news: NewsLinkBlock },
      });
    2. Site: Pass the title prop to LinkBlock's child blocks:

    const supportedBlocks: SupportedBlocks = {
    -   internal: ({ children, ...props }) => <InternalLinkBlock data={props}>{children}</InternalLinkBlock>,
    +   internal: ({ children, title, ...props }) => <InternalLinkBlock data={props} title={title}>{children}</InternalLinkBlock>,
        // ...
    };

5.6.6

26 Mar 16:53
aad6fde
Compare
Choose a tag to compare

@comet/admin@5.6.6

Patch Changes

  • 47630cc: Fix a crash when using the Alert component inside a MUI Snackbar