Skip to content

Commit

Permalink
Version Packages (#1523)
Browse files Browse the repository at this point in the history
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
github-actions[bot] and github-actions[bot] authored Jan 9, 2024
1 parent f398c22 commit 5208f16
Show file tree
Hide file tree
Showing 44 changed files with 388 additions and 283 deletions.
18 changes: 0 additions & 18 deletions .changeset/bright-maps-jump.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/eighty-tools-fail.md

This file was deleted.

22 changes: 0 additions & 22 deletions .changeset/fifty-crabs-love.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/grumpy-glasses-hear.md

This file was deleted.

25 changes: 0 additions & 25 deletions .changeset/hip-cars-wonder.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/kind-fans-watch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/old-tips-crash.md

This file was deleted.

23 changes: 0 additions & 23 deletions .changeset/smart-weeks-behave.md

This file was deleted.

31 changes: 0 additions & 31 deletions .changeset/stale-turtles-smile.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/tough-penguins-call.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tricky-adults-laugh.md

This file was deleted.

2 changes: 2 additions & 0 deletions packages/admin/admin-babel-preset/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @comet/admin-babel-preset

## 5.4.0

## 5.3.0

## 5.2.0
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/admin-babel-preset/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@comet/admin-babel-preset",
"version": "5.3.0",
"version": "5.4.0",
"repository": {
"type": "git",
"url": "https://github.com/vivid-planet/comet",
Expand Down
9 changes: 9 additions & 0 deletions packages/admin/admin-color-picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @comet/admin-color-picker

## 5.4.0

### Patch Changes

- Updated dependencies [ba800163]
- Updated dependencies [60a18392]
- @comet/admin@5.4.0
- @comet/admin-icons@5.4.0

## 5.3.0

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/admin/admin-color-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@comet/admin-color-picker",
"version": "5.3.0",
"version": "5.4.0",
"repository": {
"type": "git",
"url": "https://github.com/vivid-planet/comet",
Expand All @@ -25,8 +25,8 @@
"start:types": "tsc --project ./tsconfig.json --emitDeclarationOnly --watch --preserveWatchOutput"
},
"dependencies": {
"@comet/admin": "workspace:^5.3.0",
"@comet/admin-icons": "workspace:^5.3.0",
"@comet/admin": "workspace:^5.4.0",
"@comet/admin-icons": "workspace:^5.4.0",
"clsx": "^1.1.1",
"react-colorful": "^5.5.1",
"tinycolor2": "^1.4.1",
Expand All @@ -35,8 +35,8 @@
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.20.12",
"@comet/admin-babel-preset": "workspace:^5.3.0",
"@comet/eslint-config": "workspace:^5.3.0",
"@comet/admin-babel-preset": "workspace:^5.4.0",
"@comet/eslint-config": "workspace:^5.4.0",
"@mui/icons-material": "^5.0.0",
"@mui/material": "^5.0.0",
"@mui/styles": "^5.0.0",
Expand Down
9 changes: 9 additions & 0 deletions packages/admin/admin-date-time/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @comet/admin-date-time

## 5.4.0

### Patch Changes

- Updated dependencies [ba800163]
- Updated dependencies [60a18392]
- @comet/admin@5.4.0
- @comet/admin-icons@5.4.0

## 5.3.0

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/admin/admin-date-time/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@comet/admin-date-time",
"version": "5.3.0",
"version": "5.4.0",
"repository": {
"type": "git",
"url": "https://github.com/vivid-planet/comet",
Expand All @@ -25,8 +25,8 @@
"start:types": "tsc --project ./tsconfig.json --emitDeclarationOnly --watch --preserveWatchOutput"
},
"dependencies": {
"@comet/admin": "workspace:^5.3.0",
"@comet/admin-icons": "workspace:^5.3.0",
"@comet/admin": "workspace:^5.4.0",
"@comet/admin-icons": "workspace:^5.4.0",
"@mui/utils": "^5.4.1",
"clsx": "^1.1.1",
"date-fns": "^2.28.0",
Expand All @@ -35,8 +35,8 @@
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.20.12",
"@comet/admin-babel-preset": "workspace:^5.3.0",
"@comet/eslint-config": "workspace:^5.3.0",
"@comet/admin-babel-preset": "workspace:^5.4.0",
"@comet/eslint-config": "workspace:^5.4.0",
"@mui/material": "^5.0.0",
"@mui/styles": "^5.0.0",
"@types/react": "^17.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/admin/admin-icons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @comet/admin-icons

## 5.4.0

## 5.3.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/admin/admin-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@comet/admin-icons",
"version": "5.3.0",
"version": "5.4.0",
"repository": {
"type": "git",
"url": "https://github.com/vivid-planet/comet",
Expand All @@ -24,8 +24,8 @@
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.20.12",
"@comet/admin-babel-preset": "workspace:^5.3.0",
"@comet/eslint-config": "workspace:^5.3.0",
"@comet/admin-babel-preset": "workspace:^5.4.0",
"@comet/eslint-config": "workspace:^5.4.0",
"@mui/material": "^5.0.0",
"@types/cli-progress": "^3.8.0",
"@types/node": "^18.0.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/admin/admin-react-select/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @comet/admin-react-select

## 5.4.0

### Patch Changes

- Updated dependencies [ba800163]
- Updated dependencies [60a18392]
- @comet/admin@5.4.0

## 5.3.0

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/admin/admin-react-select/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@comet/admin-react-select",
"version": "5.3.0",
"version": "5.4.0",
"repository": {
"type": "git",
"url": "https://github.com/vivid-planet/comet",
Expand All @@ -25,14 +25,14 @@
"start:types": "tsc --project ./tsconfig.json --emitDeclarationOnly --watch --preserveWatchOutput"
},
"dependencies": {
"@comet/admin": "workspace:^5.3.0",
"@comet/admin": "workspace:^5.4.0",
"classnames": "^2.2.6"
},
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.20.12",
"@comet/admin-babel-preset": "workspace:^5.3.0",
"@comet/eslint-config": "workspace:^5.3.0",
"@comet/admin-babel-preset": "workspace:^5.4.0",
"@comet/eslint-config": "workspace:^5.4.0",
"@mui/icons-material": "^5.0.0",
"@mui/material": "^5.0.0",
"@mui/styles": "^5.0.0",
Expand Down
36 changes: 36 additions & 0 deletions packages/admin/admin-rte/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# @comet/admin-rte

## 5.4.0

### Minor Changes

- 981bf48c: Allow setting a tooltip to the button of custom-inline-styles using the `tooltipText` prop
- 51d6c2b9: 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

## 5.3.0

### Patch Changes
Expand Down
Loading

0 comments on commit 5208f16

Please sign in to comment.