Skip to content

5.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 13 Dec 07:26
· 1519 commits to main since this release
e8158b0

@comet/admin@5.2.0

Minor Changes

  • 0bed4e7: Add optional hasConflict prop to SaveButton, FinalFormSaveButton and FinalFormSaveSplitButton

    If set to true, a new "conflict" display state is triggered.
    You should pass the hasConflict prop returned by useSaveConflict(), useSaveConflictQuery() and useFormSaveConflict().

Patch Changes

  • 25daac0: Avoid remount of RouterTab with forceRender={true} when RouterTabs are used inside a Stack

@comet/admin-icons@5.2.0

Minor Changes

  • 9fc7d47: Add new icons from the Comet UX library. Replace existing icons with new versions. Mark icons Pool, Pool2, Vignette1, Vignette2, Betrieb, LogischeFilter as deprecated.

@comet/blocks-admin@5.2.0

Minor Changes

  • 824ea66: Improve layout selection UX in createColumnsBlock

    Hide select when there's only one layout for a specific number of columns

Patch Changes

  • 3702bb2: Infer additional item fields in BlocksBlock and ListBlock

    Additional fields in the item prop of AdditionalItemContextMenuItems and AdditionalItemContent will be typed correctly if the additionalItemFields option is strongly typed.

@comet/cms-admin@5.2.0

Minor Changes

  • 0bed4e7: Improve the SaveConflictDialog

    • extend the text in the dialog to explain
      • what happened
      • what the next steps are
      • what can be done to avoid conflicts
    • make the button labels more precise
    • once the save dialog is closed
      • stop polling
      • mark the save button red and with an error icon
  • 0bed4e7: useSaveConflict(), useSaveConflictQuery() and useFormSaveConflict() now return a hasConflict prop

    If hasConflict is true, a save conflict has been detected.
    You should pass hasConflict on to SaveButton, FinalFormSaveButton or FinalFormSaveSplitButton. The button will then display a "conflict" state.

  • 0bed4e7: Admin Generator: In the generated form, the hasConflict prop is passed from the useFormSaveConflict() hook to the FinalFormSaveSplitButton

  • 6fda5a5: CRUD Generator: Change the file ending of the private sibling GraphQL files from .gql.tsx to .gql.ts

    The GraphQL files do not contain JSX.
    Regenerate the files to apply this change to a project.

@comet/cms-api@5.2.0

Minor Changes

  • bbc0a0a: Add access logging to log information about the request to standard output. The log contains information about the requester and the request itself. This can be useful for fulfilling legal requirements regarding data integrity or for forensics.

    There are two ways to integrate logging into an application:

    First option: Use the default implementation

    imports: [
        ...
        AccessLogModule,
        ...
    ]

    Second option: Configure logging

    Use the shouldLogRequest to prevent logging for specific requests. For instance, one may filter requests for system users.

    imports: [
        ...
        AccessLogModule.forRoot({
            shouldLogRequest: ({user, req}) => {
                // do something
                return true; //or false
            },
        }),
        ...
    ]

    More information can be found in the documentation under 'Authentication > Access Logging'.

Patch Changes

  • 1a170b9: API Generator: Use correct type for where when getFindCondition service method is not used
  • 6b240a0: CRUD Generator: Correctly support type: "text" fields in input

@comet/cms-site@5.2.0

Minor Changes

  • 6244d6c: Add the YouTubeVideoBlock to the @comet/cms-site package.