5.2.0
@comet/admin@5.2.0
Minor Changes
-
0bed4e7: Add optional
hasConflict
prop toSaveButton
,FinalFormSaveButton
andFinalFormSaveSplitButton
If set to
true
, a new "conflict" display state is triggered.
You should pass thehasConflict
prop returned byuseSaveConflict()
,useSaveConflictQuery()
anduseFormSaveConflict()
.
Patch Changes
- 25daac0: Avoid remount of
RouterTab
withforceRender={true}
whenRouterTabs
are used inside aStack
@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
andListBlock
Additional fields in the
item
prop ofAdditionalItemContextMenuItems
andAdditionalItemContent
will be typed correctly if theadditionalItemFields
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
- extend the text in the dialog to explain
-
0bed4e7:
useSaveConflict()
,useSaveConflictQuery()
anduseFormSaveConflict()
now return ahasConflict
propIf
hasConflict
is true, a save conflict has been detected.
You should passhasConflict
on toSaveButton
,FinalFormSaveButton
orFinalFormSaveSplitButton
. The button will then display a "conflict" state. -
0bed4e7: Admin Generator: In the generated form, the
hasConflict
prop is passed from theuseFormSaveConflict()
hook to theFinalFormSaveSplitButton
-
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
whengetFindCondition
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.