Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @comet/admin@5.4.0 ### Minor Changes - 60a1839: Add `Alert` component **Example:** ```tsx import { Alert, OkayButton, SaveButton } from "@comet/admin"; <Alert severity="warning" title="Title" action={ <Button variant="text" startIcon={<ArrowRight />}> Action Text </Button> } > Notification Text </Alert>; ``` ### Patch Changes - ba80016: Allow passing a mix of elements and arrays to `Tabs` and `RouterTabs` as children For example: ```tsx <RouterTabs> <RouterTab label="One" path=""> One </RouterTab> {content.map((value) => ( <RouterTab key={value} label={value} path={`/${value}`}> {value} </RouterTab> ))} {showFourthTab && ( <RouterTab label="Four" path="/four"> Four </RouterTab> )} </RouterTabs> ``` - @comet/admin-icons@5.4.0 ## @comet/admin-rte@5.4.0 ### Minor Changes - 981bf48: Allow setting a tooltip to the button of custom-inline-styles using the `tooltipText` prop - 51d6c2b: Move soft-hyphen functionality to `@comet/admin-rte` This allows using the soft-hyphen functionality in plain RTEs, and not only in `RichTextBlock` ```tsx const [useRteApi] = makeRteApi(); export default function MyRte() { const { editorState, setEditorState } = useRteApi(); return ( <Rte value={editorState} onChange={setEditorState} options={{ supports: [ // Soft Hyphen "soft-hyphen", // Other options you may wish to support "bold", "italic", ], }} /> ); } ``` ### Patch Changes - @comet/admin-icons@5.4.0 ## @comet/cms-admin@5.4.0 ### Minor Changes - e146d8b: Support the import of files from external DAMs To connect an external DAM, implement a component with the necessary logic (asset picker, upload functionality, ...). Pass this component to the `DamPage` via the `additionalToolbarItems` prop. ```tsx <DamPage // ... additionalToolbarItems={<ImportFromExternalDam />} /> ``` You can find an [example](demo/admin/src/dam/ImportFromUnsplash.tsx) in the demo project. - 51d6c2b: Move soft-hyphen functionality to `@comet/admin-rte` This allows using the soft-hyphen functionality in plain RTEs, and not only in `RichTextBlock` ```tsx const [useRteApi] = makeRteApi(); export default function MyRte() { const { editorState, setEditorState } = useRteApi(); return ( <Rte value={editorState} onChange={setEditorState} options={{ supports: [ // Soft Hyphen "soft-hyphen", // Other options you may wish to support "bold", "italic", ], }} /> ); } ``` - dcaf750: Make all DAM license fields optional if `LicenseType` is `ROYALTY_FREE` even if `requireLicense` is true in `DamConfig` ### Patch Changes - 087cb01: Enable copying documents from one `PageTree` category to another (e.g. from "Main navigation" to "Top menu" in Demo) - Updated dependencies [ba80016] - Updated dependencies [981bf48] - Updated dependencies [60a1839] - Updated dependencies [51d6c2b] - @comet/admin@5.4.0 - @comet/admin-rte@5.4.0 - @comet/admin-date-time@5.4.0 - @comet/admin-icons@5.4.0 - @comet/admin-theme@5.4.0 - @comet/blocks-admin@5.4.0 ## @comet/cms-api@5.4.0 ### Minor Changes - e146d8b: Support the import of files from external DAMs To connect an external DAM, implement a component with the necessary logic (asset picker, upload functionality, ...). Pass this component to the `DamPage` via the `additionalToolbarItems` prop. ```tsx <DamPage // ... additionalToolbarItems={<ImportFromExternalDam />} /> ``` You can find an [example](demo/admin/src/dam/ImportFromUnsplash.tsx) in the demo project. - 27bf643: Add `PublicUploadsService` to public API The service can be used to programmatically create public uploads, such as when creating fixtures. - df5c959: Remove license types `MICRO` and `SUBSCRIPTION` The `LicenseType` enum no longer contains the values `MICRO` and `SUBSCRIPTION`. The database migration will automatically update all licenses of type `MICRO` or `SUBSCRIPTION` to `RIGHTS_MANAGED`. ### Patch Changes - 60f5208: Fix encoding of special characters in names of uploaded files For example: Previously: - `€.jpg` -> `a.jpg` - `ä.jpg` -> `ai.jpg` Now: - `€.jpg` -> `euro.jpg` - `ä.jpg` -> `ae.jpg` - @comet/blocks-api@5.4.0 ## @comet/cms-site@5.4.0 ### Minor Changes - f906386: Add `hasRichTextBlockContent` helper The helper can be used to conditionally render a `RichTextBlock`. **Example:** ```tsx import { hasRichTextBlockContent } from "@comet/cms-site"; function TeaserBlock({ data: { image, text } }: PropsWithData<TeaserBlockData>) { return ( <> <DamImageBlock data={image} /> {hasRichTextBlockContent(text) && <RichTextBlock data={text} />} </> ); } ``` ## @comet/admin-color-picker@5.4.0 ### Patch Changes - Updated dependencies [ba80016] - Updated dependencies [60a1839] - @comet/admin@5.4.0 - @comet/admin-icons@5.4.0 ## @comet/admin-date-time@5.4.0 ### Patch Changes - Updated dependencies [ba80016] - Updated dependencies [60a1839] - @comet/admin@5.4.0 - @comet/admin-icons@5.4.0 ## @comet/admin-react-select@5.4.0 ### Patch Changes - Updated dependencies [ba80016] - Updated dependencies [60a1839] - @comet/admin@5.4.0 ## @comet/admin-theme@5.4.0 ### Patch Changes - @comet/admin-icons@5.4.0 ## @comet/blocks-admin@5.4.0 ### Patch Changes - Updated dependencies [ba80016] - Updated dependencies [60a1839] - @comet/admin@5.4.0 - @comet/admin-icons@5.4.0 ## @comet/eslint-config@5.4.0 ### Patch Changes - @comet/eslint-plugin@5.4.0 ## @comet/admin-babel-preset@5.4.0 ## @comet/admin-icons@5.4.0 ## @comet/blocks-api@5.4.0 ## @comet/cli@5.4.0 ## @comet/eslint-plugin@5.4.0 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information