6.13.0
@comet/admin@6.13.0
Minor Changes
-
5e25348: Add a dialog option to the translation feature
If enabled a dialog will open when pressing the translation button showing the original text and an editable translation
Control if the dialog should be shown for the current scope via the
showApplyTranslationDialog
prop (default: true)<ContentTranslationServiceProvider enabled={true} + showApplyTranslationDialog={true} translate={...} >
-
796e832: Add
AutocompleteField
andAsyncAutocompleteField
componentsExamples
<AutocompleteField name="autocomplete" label="Autocomplete" options={[ { value: "chocolate", label: "Chocolate" }, { value: "strawberry", label: "Strawberry" }, { value: "vanilla", label: "Vanilla" }, ]} getOptionLabel={(option: Option) => option.label} isOptionEqualToValue={(option: Option, value: Option) => option.value === value.value} fullWidth />
<AsyncAutocompleteField name="asyncAutocomplete" label="Async Autocomplete" loadOptions={async () => { // Load options here }} getOptionLabel={(option: Option) => option.label} isOptionEqualToValue={(option: Option, value: Option) => option.value === value.value} fullWidth />
@comet/admin-rte@6.13.0
Minor Changes
-
5e25348: Add a dialog option to the translation feature
If enabled a dialog will open when pressing the translation button showing the original text and an editable translation
Control if the dialog should be shown for the current scope via the
showApplyTranslationDialog
prop (default: true)<ContentTranslationServiceProvider enabled={true} + showApplyTranslationDialog={true} translate={...} >
@comet/cms-admin@6.13.0
Minor Changes
-
c51b250: Add loading spinner to
IFrameViewer
This feature was added to inform users that the iframe is loading. It is particularly useful when loading takes a long time due to a slow network connection or a large amount of content or data. The feedback remains visible until the iframe is fully loaded and the
onLoad
event is triggered. -
dcf3f70: Add
overrideAcceptedMimeTypes
configuration to DAMIf set, only the mimetypes specified in
overrideAcceptedMimeTypes
will be accepted.You must configure
overrideAcceptedMimeTypes
in the API and the admin interface:API:
// app.module.ts DamModule.register({ damConfig: { // ... + overrideAcceptedMimeTypes: ["image/png"], // ... }, // ... }),
Admin:
// App.tsx <DamConfigProvider value={{ // ... + overrideAcceptedMimeTypes: ["image/png"], }} >
Patch Changes
- aee7ae4: Use the same logic for checking the user's content scope in Admin as it is used in the API.
@comet/cms-api@6.13.0
Minor Changes
-
2a5e00b: API Generator: Add
list
option to@CrudGenerator()
to allow disabling the list queryRelated DTO classes will still be generated as they might be useful for application code.
-
dcf3f70: Add
overrideAcceptedMimeTypes
configuration to DAMIf set, only the mimetypes specified in
overrideAcceptedMimeTypes
will be accepted.You must configure
overrideAcceptedMimeTypes
in the API and the admin interface:API:
// app.module.ts DamModule.register({ damConfig: { // ... + overrideAcceptedMimeTypes: ["image/png"], // ... }, // ... }),
Admin:
// App.tsx <DamConfigProvider value={{ // ... + overrideAcceptedMimeTypes: ["image/png"], }} >
-
07a7291: Adjust
searchToMikroOrmQuery
function to reduce the amount of irrelevant resultsThis is done by using a combination of AND- and OR-queries. For example, a search of
red shirt
won't give all products containingred
ORshirt
but rather returns all products that have the wordsred
ANDshirt
in some column. The words don't have to be in the same column.
Patch Changes
- 5bbb2ee: API Generator: Don't add
skipScopeCheck
when the entity has a@ScopedEntity()
decorator - ebdd108: API Generator: Fix imports in generated code for more than one level deep relations
- b925f94: API Generator: Support relation with primary key type
int
(in addition tointeger
)
@comet/cms-site@6.13.0
Minor Changes
- 493cad7: Add
DamVideoBlock