Releases: vivid-planet/comet
4.9.0
5.7.2
5.7.1
6.7.0
@comet/cms-api@6.7.0
Minor Changes
- 645f19d: Add
nullable
param to@AffectedEntity
to support id args that can benull
orundefined
- a0506e1: API Generator: Support validator decorators for input generation
Patch Changes
-
645f19d: Fix mutations
moveDamFiles
,copyFilesToScope
,archiveDamFiles
andrestoreDamFiles
by adding@AffectedEntity
to enable scope checks -
8315f10: Fix order of
@RequiredPermission()
decoratorsDecorators 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. whenfieldResolverEnhancers
containsguards
).
@comet/cms-admin@6.7.0
Patch Changes
-
2db3bc8: Fix
CurrentUserInterface
typeAdd missing
id
field, makename
,email
, andlanguage
required.
6.6.2
@comet/cms-admin@6.6.2
Patch Changes
-
0758d23: Hide the "Dependents" tab in the DAM if the
DependenciesConfigProvider
is not configuredPreviously, 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
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, }, }, });
5.7.0
6.5.0
@comet/admin@6.5.0
Minor Changes
-
6cb2f90: Add
ContentOverflow
componentUsed 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 blockPerform the following steps to use it in an application:
-
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 }, });
-
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 blockPerform the following steps to use it in an application:
-
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 }, });
-
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 blockPerform the following steps to use it in an application:
-
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 }, });
-
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 blockPerform the following steps to use it in an application:
-
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 }, });
-
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 blockPerform the following steps to use it in an application:
-
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 }, });
-
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>, // ... };
-