Repository navigation
@dextinity/admin@10.11.0
Patch Changes
-
3e0526b: Add the selected files up to
maxFilesinFileSelectandFinalFormFileSelectWhen more files are selected than
maxFilesallows, the files up to the limit are added and only the remaining files are shown as rejected.
Before, none of the selected files were added.
The same applies when several files are selected in a single-fileFileSelect: the first file is added. -
5bb4070: Fix styling of
Switchwithsize="small"Previously, the thumb was too large and overflowed the track.
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates. -
Updated dependencies [75ebfd4]
-
Updated dependencies [43ee19a]
- @dextinity/admin-icons@10.11.0
@dextinity/admin-babel-preset@10.11.0
Patch Changes
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates.
@dextinity/admin-color-picker@10.11.0
Patch Changes
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates. -
Updated dependencies [3e0526b]
-
Updated dependencies [5bb4070]
-
Updated dependencies [75ebfd4]
-
Updated dependencies [43ee19a]
- @dextinity/admin@10.11.0
- @dextinity/admin-icons@10.11.0
@dextinity/admin-date-time@10.11.0
Patch Changes
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates. -
Updated dependencies [3e0526b]
-
Updated dependencies [5bb4070]
-
Updated dependencies [75ebfd4]
-
Updated dependencies [43ee19a]
- @dextinity/admin@10.11.0
- @dextinity/admin-icons@10.11.0
@dextinity/admin-generator@10.11.0
Patch Changes
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates. -
48a9757: Update
commanderto v14Commands now fail with "too many arguments" when they receive positional arguments they don't declare. Before, these arguments were ignored.
For example, an unquoted glob passed todextinity-admin-generator generate --fileis expanded by the shell into several arguments, and only the first file was generated. Quote the glob so the admin generator receives it as one pattern:dextinity-admin-generator generate --file 'src/products/**/*.dextinityGen.tsx' -
Updated dependencies [05ea45d]
-
Updated dependencies [3e0526b]
-
Updated dependencies [5bb4070]
-
Updated dependencies [75ebfd4]
-
Updated dependencies [a6f647b]
-
Updated dependencies [43ee19a]
-
Updated dependencies [8a645b7]
-
Updated dependencies [43ee19a]
-
Updated dependencies [96bf6f1]
-
Updated dependencies [c5f02ac]
-
Updated dependencies [f423240]
- @dextinity/cms-admin@10.11.0
- @dextinity/admin@10.11.0
- @dextinity/admin-icons@10.11.0
@dextinity/admin-icons@10.11.0
Minor Changes
- 43ee19a: Add
RowInsertAbove,RowInsertBelow,RowMoveUp,RowMoveDown,ColumnInsertLeft,ColumnInsertRight,ColumnMoveLeftandColumnMoveRighticons
Patch Changes
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates.
@dextinity/admin-rte@10.11.0
Patch Changes
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates. -
Updated dependencies [3e0526b]
-
Updated dependencies [5bb4070]
-
Updated dependencies [75ebfd4]
-
Updated dependencies [43ee19a]
- @dextinity/admin@10.11.0
- @dextinity/admin-icons@10.11.0
@dextinity/brevo-admin@10.11.0
Patch Changes
- Updated dependencies [05ea45d]
- Updated dependencies [3e0526b]
- Updated dependencies [5bb4070]
- Updated dependencies [75ebfd4]
- Updated dependencies [a6f647b]
- Updated dependencies [43ee19a]
- Updated dependencies [8a645b7]
- Updated dependencies [43ee19a]
- Updated dependencies [96bf6f1]
- Updated dependencies [c5f02ac]
- Updated dependencies [f423240]
- @dextinity/cms-admin@10.11.0
- @dextinity/admin@10.11.0
- @dextinity/admin-icons@10.11.0
@dextinity/cms-admin@10.11.0
Minor Changes
-
05ea45d: Add a DAM settings page to set the fallback image for invalid licenses
When the license feature is enabled (
enableLicenseFeature), the "More actions" menu of the DAM contains a "Settings" item.
It opens a page where you can choose the image that replaces images whose license has expired or isn't valid yet on the site. -
a6f647b: Render
TableBlockwith the data grid configured inDextinityConfigTableBlockno longer needs@mui/x-data-grid-pro.
With the freeDataGrid, rows and columns can only be moved with the menu items, not by dragging.
TableBlocktreats every configured grid other than MUI'sDataGridas a Pro or Premium grid, so configureDataGriditself, not a wrapper around it.Action required for drag-and-drop
To keep drag-and-drop, configure the Pro or Premium grid:
<DextinityConfigProvider dataGrid={{ component: DataGridPro }}>
-
8a645b7: Allow moving
TableBlockrows and columns without dragging
Patch Changes
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates. -
43ee19a: Use dedicated icons to insert and move rows and columns in the
TableBlockmenus -
96bf6f1: Keep the focus in the child block dialog of
createTipTapRichTextBlockChoosing a child block from the toolbar's "Insert block" menu refocused the editor shortly after the dialog had opened, which moved the focus away from the dialog's fields, for instance from a field with
autoFocus. -
c5f02ac: Keep bold, italic and links on soft hyphens and non-breaking spaces in TipTap rich texts
migrateFromDraftJsand the editor's soft hyphen and non-breaking space buttons created these nodes without the marks of the surrounding text.
On the site, a soft hyphen in a bold word was rendered outside the<strong>, so the hyphen at a line break was thinner than the letters around it, and a link containing one was split into two links. -
f423240: Update
react-windowto v2The page tree, the page tree select dialog and the folder list in the "Move DAM item" dialog use the new
ListAPI.
react-virtualized-auto-sizeris no longer a dependency, as the lists size themselves to their container. -
Updated dependencies [3e0526b]
-
Updated dependencies [5bb4070]
-
Updated dependencies [75ebfd4]
-
Updated dependencies [43ee19a]
- @dextinity/admin@10.11.0
- @dextinity/admin-icons@10.11.0
- @dextinity/admin-rte@10.11.0
@dextinity/agent-features@10.11.0
@dextinity/api-generator@10.11.0
Patch Changes
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates. -
48a9757: Update
commanderto v14Commands now fail with "too many arguments" when they receive positional arguments they don't declare. Before, these arguments were ignored.
For example, an unquoted glob passed todextinity-admin-generator generate --fileis expanded by the shell into several arguments, and only the first file was generated. Quote the glob so the admin generator receives it as one pattern:dextinity-admin-generator generate --file 'src/products/**/*.dextinityGen.tsx' -
Updated dependencies [97b3b42]
-
Updated dependencies [22bd832]
-
Updated dependencies [bc24036]
-
Updated dependencies [79c2746]
-
Updated dependencies [05ea45d]
-
Updated dependencies [79c2746]
-
Updated dependencies [75ebfd4]
-
Updated dependencies [9a5fd29]
-
Updated dependencies [c5f02ac]
-
Updated dependencies [a6050c4]
- @dextinity/cms-api@10.11.0
@dextinity/brevo-api@10.11.0
Patch Changes
-
97b3b42: Allow
graphql-scalarsv2v2 only drops support for
graphqlbelow v16 and for Node 20, so projects can update to it whenever they want. -
80298a2: Remove the
uuiddependencyRandom UUIDs are now generated with
randomUUID()from Node'scryptomodule. -
Updated dependencies [97b3b42]
-
Updated dependencies [22bd832]
-
Updated dependencies [bc24036]
-
Updated dependencies [79c2746]
-
Updated dependencies [05ea45d]
-
Updated dependencies [79c2746]
-
Updated dependencies [75ebfd4]
-
Updated dependencies [9a5fd29]
-
Updated dependencies [c5f02ac]
-
Updated dependencies [a6050c4]
- @dextinity/cms-api@10.11.0
@dextinity/cms-api@10.11.0
Minor Changes
-
05ea45d: Replace images with an invalid license with a fallback image
When the license feature is enabled (
enableLicenseFeature),PixelImageBlockrenders a fallback image instead of an image whose license has expired or isn't valid yet.
The fallback image is set per DAM scope in the DAM settings.
It is delivered under its own URL and with its own crop area, the crop area set in the block is ignored.
If no fallback image is set, the block renders no image.SvgImageBlock,DamVideoBlockandDamFileDownloadLinkBlockrender no file if its license is invalid, andDamVideoBlockleaves out captions with an invalid license.The GraphQL fields
DamFile.fileUrl,DamFileImage.urlandDamFileImage.urlTemplatereturn the fallback image's URL for a pixel image with an invalid license.
DamFileImage.urlandDamFileImage.urlTemplatereturnnullif no fallback image is set.None of this applies to requests for preview DAM URLs, so the Admin keeps showing the original file.
The public file and image URLs of a file with an invalid license respond with
410 Gone.
Patch Changes
-
97b3b42: Allow
graphql-scalarsv2v2 only drops support for
graphqlbelow v16 and for Node 20, so projects can update to it whenever they want. -
22bd832: Fix the error after uploading files to the DAM when the asset list isn't sorted
When no sort column was selected in the asset list,
damItemListPositionfailed with an SQL error such ascolumn folder.undefined does not exist, and the admin showed this error after every upload.
damItemsListanddamItemListPositionnow sort bynamewhen no sort column is given, and the GraphQL schema declaresnameas the default of theirsortColumnNameargument. -
bc24036: Keep inline styles and links in place after emojis when migrating Draft.js content to TipTap
Draft.js stores the offsets of inline styles and entities in code points, but
migrateFromDraftJsused them as string indices, which count UTF-16 code units.
Every emoji or other character outside the Basic Multilingual Plane shifted the ranges after it by one character, and a range ending inside such a character split it into two broken characters. -
79c2746: Reject unknown block types in the input of
createBlocksBlockandcreateOneOfBlockPreviously, an item with a
typethat isn't insupportedBlockswas removed fromblocksorattachedBlocksbefore validation, and the mutation saved the block without it.
Now, such an input fails validation with anisInerror at thetypeof the item, for instanceblocks.1.type.
The index in the error path is the index of the item in the input.
Code that callsblockInputFactorywithout validating the result keeps such an item now, andtransformToBlockData()throws for it. Callvalidate()to detect it.The Admin only sends supported block types and isn't affected.
Stored block data with unknown types is still filtered when loaded, as a block may have been removed fromsupportedBlockssince the data was saved. -
79c2746: Report invalid block input as validation errors instead of internal errors
createBlocksBlockandcreateOneOfBlock: Report ablocksorattachedBlocksvalue that isn't an array with anisArrayerror. Previously, the mutation failed withvalue.filter is not a function.createListBlockadditionally reports anisArrayerror. All three report an item that is an array with anisObjecterror, whichcreateListBlockaccepted before and which failed when saving.ChildBlockInput: Report a missing non-nullable child block with anisDefinederror. Previously, the mutation failed withMissing child block input for '<key>'. Code that callsblockInputFactorywithout validating the result doesn't get this error anymore and must callvalidate()to detect a missing child block. This includes theopenGraphImageof the SEO block, which was marked as optional although the mutation failed without it.createRichTextBlock: Add a message to theisDraftContenterror, which was empty
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates. -
9a5fd29: Report each validation error in the
openGraphImageof the SEO block onceThe field had an additional
@ValidateNested()next to@ChildBlockInput(), which already adds it, so the image was validated twice. -
c5f02ac: Keep bold, italic and links on soft hyphens and non-breaking spaces in TipTap rich texts
migrateFromDraftJsand the editor's soft hyphen and non-breaking space buttons created these nodes without the marks of the surrounding text.
On the site, a soft hyphen in a bold word was rendered outside the<strong>, so the hyphen at a line break was thinner than the letters around it, and a link containing one was split into two links. -
a6050c4: Validate
damFileIdas UUID inPixelImageBlockandSvgImageBlockPreviously, any non-empty string was accepted and saved, resulting in a broken image.
@dextinity/cli@10.11.0
Patch Changes
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates. -
48a9757: Update
commanderto v14Commands now fail with "too many arguments" when they receive positional arguments they don't declare. Before, these arguments were ignored.
For example, an unquoted glob passed todextinity-admin-generator generate --fileis expanded by the shell into several arguments, and only the first file was generated. Quote the glob so the admin generator receives it as one pattern:dextinity-admin-generator generate --file 'src/products/**/*.dextinityGen.tsx'
@dextinity/eslint-config@10.11.0
Patch Changes
-
35f2b48: Update
globalsto v17The browser configs know about newer browser APIs.
Audio worklet globals, such asregisterProcessorandsampleRate, are no longer defined in the browser configs. -
2fb3ecf: Move
npm-run-all2todevDependenciesIt's only used by the package's own lint scripts, so projects using
@dextinity/eslint-configno longer install it. -
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates. -
Updated dependencies [75ebfd4]
- @dextinity/eslint-plugin@10.11.0
@dextinity/eslint-plugin@10.11.0
Patch Changes
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates.
@dextinity/mail-react@10.11.0
Minor Changes
-
a4cc3bb: Make mail blocks selectable in the admin's block preview
Mail blocks now work in the block preview like site blocks: a hover highlights them, and a click opens their form. The sent mail does not change.
Wrap each mail block in
withPreviewand apply theclassNameit passes to the block's root element:export const MailButtonBlock = withPreview<PropsWithData<MailButtonBlockData>>( ({ data, className }) => ( <MjmlSection className={className}> <MjmlColumn> <MjmlButton href={data.link.targetUrl}>{data.text}</MjmlButton> </MjmlColumn> </MjmlSection> ), { label: "Button" }, );
Pass the block's props as the type argument of
withPreview, as inwithPreview<PropsWithData<MailButtonBlockData>>, and it adds theclassNameto them.In the block preview page, pass the result of
useIFrameBridgetouseRefToRegisterMailBlocksForPreview, and put the ref it returns on the element that contains the mail HTML:const mailContainerRef = useRefToRegisterMailBlocksForPreview<HTMLSpanElement>(useIFrameBridge()); return <span ref={mailContainerRef} dangerouslySetInnerHTML={{ __html: mailHtml }} />;
Patch Changes
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates.
@dextinity/site-nextjs@10.11.0
Patch Changes
-
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates. -
Updated dependencies [85eecab]
-
Updated dependencies [a4cc3bb]
-
Updated dependencies [75ebfd4]
- @dextinity/site-react@10.11.0
@dextinity/site-react@10.11.0
Minor Changes
-
a4cc3bb: Make mail blocks selectable in the admin's block preview
Mail blocks now work in the block preview like site blocks: a hover highlights them, and a click opens their form. The sent mail does not change.
Wrap each mail block in
withPreviewand apply theclassNameit passes to the block's root element:export const MailButtonBlock = withPreview<PropsWithData<MailButtonBlockData>>( ({ data, className }) => ( <MjmlSection className={className}> <MjmlColumn> <MjmlButton href={data.link.targetUrl}>{data.text}</MjmlButton> </MjmlColumn> </MjmlSection> ), { label: "Button" }, );
Pass the block's props as the type argument of
withPreview, as inwithPreview<PropsWithData<MailButtonBlockData>>, and it adds theclassNameto them.In the block preview page, pass the result of
useIFrameBridgetouseRefToRegisterMailBlocksForPreview, and put the ref it returns on the element that contains the mail HTML:const mailContainerRef = useRefToRegisterMailBlocksForPreview<HTMLSpanElement>(useIFrameBridge()); return <span ref={mailContainerRef} dangerouslySetInnerHTML={{ __html: mailHtml }} />;
Patch Changes
-
85eecab: Keep the headers of a
Requestpassed tofetchin the block previewBlockPreviewProviderwrapswindow.fetchto add theX-Block-Previewheader.
Whenfetchwas called with aRequestobject, asopenapi-fetchand other libraries do, the wrapper dropped all headers set on theRequest.
Now the headers of theRequestand ofinitare merged, withinittaking precedence. -
75ebfd4: Require Node.js 22.12.0 or later
@dextinity/cms-apiis a CommonJS package that loads dependencies which are only available as ES modules, for instancecontent-disposition.
Node.js supports loading ES modules withrequire()without a flag only from version 22.12.0.
On older versions, the API fails at startup withERR_REQUIRE_ESM.
The other packages require the same version, so that all packages have the same Node.js minimum.
For@dextinity/site-reactand@dextinity/site-nextjs, this drops support for Node.js 18 and 20, which no longer receive security updates.