Releases: vivid-planet/comet
6.11.0
@comet/admin@6.11.0
Minor Changes
-
8e3dec5: Change
writeClipboardText
/readClipboardText
clipboard fallback to in-memoryUsing the local storage as a fallback caused issues when writing clipboard contents larger than 5MB.
Changing the fallback to in-memory resolves the issue.
@comet/cms-admin@6.11.0
Minor Changes
-
e10753b: Allow disabling the "Open preview" button in the
PageTree
for certain document typesThe "Open preview" button is shown for all document types in the
PageTree
.
But some document types (e.g., links) don't have a preview.
Clicking on the preview button leads to an error page.Now, it's possible to disable the button by setting
hasNoSitePreview
for the document:export const Link: DocumentInterface<Pick<GQLLink, "content">, GQLLinkInput> = { // ... + hasNoSitePreview: true, };
-
fdf9fa7: Per default disable the automatic creation of redirects when changing a document's slug if the document is unpublished or archived
Patch Changes
-
815ba51: Fix link target validation in
ExternalLinkBlock
Previously, two different validation checks were used.
This resulted in an error when saving an invalid link target but no error message was shown.
@comet/cms-api@6.11.0
Minor Changes
-
0db10a5: Add a console script to import redirects from a csv file
You can use the script like this:
npm run console import-redirects file-to-import.csv
The CSV file must look like this:
source;target;target_type;comment;scope_domain /test-source;/test-target;internal;Internal Example;main /test-source-external;https://www.comet-dxp.com/;external;External Example;secondary
@comet/blocks-api@6.11.0
Patch Changes
-
93a84b6: Fix type of
youtubeIdentifier
inYouTubeVideoBlock
Previously, it was incorrectly typed as required. Now it's optional.
5.8.6
5.8.5
5.8.4
6.10.0
@comet/admin@6.10.0
Minor Changes
-
d4a269e: Add
filterByFragment
to replace graphql-anywhere'sfilter
graphql-anywhere is no longer maintained.
However, itsfilter
utility is useful for filtering data by a GraphQL document, e.g., a fragment.
Therefore, the function was copied to@comet/admin
.
To migrate, replace allfilter
calls withfilterByFragment
:- import { filter } from "graphql-anywhere"; + import { filterByFragment } from "@comet/admin"; const initialValues: Partial<FormValues> = data?.product ? { - ...filter<GQLProductPriceFormFragment>(productPriceFormFragment, data.product), + ...filterByFragment<GQLProductPriceFormFragment>(productPriceFormFragment, data.product), price: String(data.product.price), } : {};
You can then uninstall the
graphql-anywhere
package:# In admin/ npm uninstall graphql-anywhere
-
52130af: Add
FinalFormFileSelect
componentAllows selecting files via the file dialog or using drag-and-drop.
-
e938254: Add the
useDataGridExcelExport
hook for exporting data from aDataGrid
to an excel fileThe hook returns an
exportApi
encompassing:exportGrid
: a function to generate and export the excel fileloading
: a boolean indicating if the export is in progresserror
: an error when the export has failed
Patch Changes
- a8a098a: muiGridFilterToGql: change fallback operator to 'and' to match MUI default
@comet/cms-admin@6.10.0
Minor Changes
-
f89af8b: Add
disableHideInMenu
option tocreateEditPageNode
to hide the "Hide in menu" checkbox -
d4a269e: Add
filterByFragment
to replace graphql-anywhere'sfilter
graphql-anywhere is no longer maintained.
However, itsfilter
utility is useful for filtering data by a GraphQL document, e.g., a fragment.
Therefore, the function was copied to@comet/admin
.
To migrate, replace allfilter
calls withfilterByFragment
:- import { filter } from "graphql-anywhere"; + import { filterByFragment } from "@comet/admin"; const initialValues: Partial<FormValues> = data?.product ? { - ...filter<GQLProductPriceFormFragment>(productPriceFormFragment, data.product), + ...filterByFragment<GQLProductPriceFormFragment>(productPriceFormFragment, data.product), price: String(data.product.price), } : {};
You can then uninstall the
graphql-anywhere
package:# In admin/ npm uninstall graphql-anywhere
-
f528bc3: CronJobModule: Show logs for job run
Patch Changes
-
d340cab: DAM: Fix the duplicate name check when updating a file
Previously, there were two bugs:
- In the
EditFile
form, thefolderId
wasn't passed to the mutation - In
FilesService#updateByEntity
, the duplicate check was always done against the root folder if nofolderId
was passed
This caused an error when saving a file in any folder if there was another file with the same name in the root folder.
And it was theoretically possible to create two files with the same name in one folder (though this was still prevented by admin-side validation). - In the
@comet/cms-api@6.10.0
Minor Changes
-
536fdb8: Add
createUserFromIdToken
toUserService
-interfaceThis allows to override the default implementation of creating the User-Object from the JWT when logging in via
createAuthProxyJwtStrategy
-
f528bc3: CronJobModule: Show logs for job run
Patch Changes
-
d340cab: DAM: Fix the duplicate name check when updating a file
Previously, there were two bugs:
- In the
EditFile
form, thefolderId
wasn't passed to the mutation - In
FilesService#updateByEntity
, the duplicate check was always done against the root folder if nofolderId
was passed
This caused an error when saving a file in any folder if there was another file with the same name in the root folder.
And it was theoretically possible to create two files with the same name in one folder (though this was still prevented by admin-side validation). - In the
-
584d14d: Only return duplicates within the same scope in the
FilesResolver#duplicates
field resolverAs a side effect
FilesService#findAllByHash
now accepts an optional scope parameter.
@comet/cms-site@6.10.0
Minor Changes
- 5c1ab80: SeoBlock: Change Open Graph image to recommended size and aspect ratio (
1200x630
)
5.8.3
@comet/cms-admin@5.8.3
Patch Changes
-
91b7343: DAM: Fix the duplicate name check when updating a file
Previously, there were two bugs:
- In the
EditFile
form, thefolderId
wasn't passed to the mutation - In
FilesService#updateByEntity
, the duplicate check was always done
against the root folder if nofolderId
was passed
This caused an error when saving a file in any folder if there was
another file with the same name in the root folder.
And it was theoretically possible to create two files with the same name
in one folder (though this was still prevented by admin-side
validation).
@comet/cms-api@5.8.3
Patch Changes
-
91b7343: DAM: Fix the duplicate name check when updating a file
Previously, there were two bugs:
- In the
EditFile
form, thefolderId
wasn't passed to the mutation - In
FilesService#updateByEntity
, the duplicate check was always done
against the root folder if nofolderId
was passed
This caused an error when saving a file in any folder if there was
another file with the same name in the root folder.
And it was theoretically possible to create two files with the same name
in one folder (though this was still prevented by admin-side
validation).
5.8.2
6.9.0
@comet/admin@6.9.0
Minor Changes
- e85837a: Loosen peer dependency on
react-intl
to allow using v6
Patch Changes
- 9ff9d66: Ignore local storage quota exceeded error in
writeClipboardText
@comet/admin-color-picker@6.9.0
Minor Changes
- e85837a: Loosen peer dependency on
react-intl
to allow using v6
@comet/admin-date-time@6.9.0
Minor Changes
- e85837a: Loosen peer dependency on
react-intl
to allow using v6
@comet/admin-rte@6.9.0
Minor Changes
- e85837a: Loosen peer dependency on
react-intl
to allow using v6
Patch Changes
- 8fb8b20: Fix losing custom block types when converting between editor state and HTML
@comet/blocks-admin@6.9.0
Minor Changes
- e85837a: Loosen peer dependency on
react-intl
to allow using v6
@comet/cms-admin@6.9.0
Minor Changes
- e85837a: Loosen peer dependency on
react-intl
to allow using v6
@comet/blocks-api@6.9.0
Minor Changes
- 8be9565: typesafeMigrationPipe: Add support for 20 migrations
@comet/cms-api@6.9.0
Minor Changes
- 94ac6b7: API Generator: Fix generated API for many-to-many-relations with custom relation entity