Skip to content

Commit

Permalink
Version Packages (#2043)
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/[email protected]

### Minor Changes

- d4a269e: Add `filterByFragment` to replace graphql-anywhere's
`filter`

[graphql-anywhere](https://www.npmjs.com/package/graphql-anywhere) is no
longer maintained.
However, its `filter` 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 all `filter` calls with `filterByFragment`:

    ```diff
    - 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:

    ```bash
    # In admin/
    npm uninstall graphql-anywhere
    ```

-   52130af: Add `FinalFormFileSelect` component

    Allows selecting files via the file dialog or using drag-and-drop.

- e938254: Add the `useDataGridExcelExport` hook for exporting data
from a `DataGrid` to an excel file

    The hook returns an `exportApi` encompassing:

    -   `exportGrid`: a function to generate and export the excel file
    -   `loading`: a boolean indicating if the export is in progress
    -   `error`: an error when the export has failed

### Patch Changes

- a8a098a: muiGridFilterToGql: change fallback operator to 'and' to
match MUI default
    -   @comet/[email protected]

## @comet/[email protected]

### Minor Changes

- f89af8b: Add `disableHideInMenu` option to `createEditPageNode` to
hide the "Hide in menu" checkbox

- d4a269e: Add `filterByFragment` to replace graphql-anywhere's
`filter`

[graphql-anywhere](https://www.npmjs.com/package/graphql-anywhere) is no
longer maintained.
However, its `filter` 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 all `filter` calls with `filterByFragment`:

    ```diff
    - 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:

    ```bash
    # 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:

1. In the `EditFile` form, the `folderId` wasn't passed to the mutation
2. In `FilesService#updateByEntity`, the duplicate check was always done
against the root folder if no `folderId` 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).

-   Updated dependencies [a8a098a]

-   Updated dependencies [d4a269e]

-   Updated dependencies [52130af]

-   Updated dependencies [e938254]
    -   @comet/[email protected]
    -   @comet/[email protected]
    -   @comet/[email protected]
    -   @comet/[email protected]
    -   @comet/[email protected]
    -   @comet/[email protected]

## @comet/[email protected]

### Minor Changes

-   536fdb8: Add `createUserFromIdToken` to `UserService`-interface

This 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:

1. In the `EditFile` form, the `folderId` wasn't passed to the mutation
2. In `FilesService#updateByEntity`, the duplicate check was always done
against the root folder if no `folderId` 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).

- 584d14d: Only return duplicates within the same scope in the
`FilesResolver#duplicates` field resolver

As a side effect `FilesService#findAllByHash` now accepts an optional
scope parameter.

    -   @comet/[email protected]

## @comet/[email protected]

### Minor Changes

- 5c1ab80: SeoBlock: Change Open Graph image to recommended size and
aspect ratio (`1200x630`)

## @comet/[email protected]

### Patch Changes

-   Updated dependencies [a8a098a]
-   Updated dependencies [d4a269e]
-   Updated dependencies [52130af]
-   Updated dependencies [e938254]
    -   @comet/[email protected]
    -   @comet/[email protected]

## @comet/[email protected]

### Patch Changes

-   Updated dependencies [a8a098a]
-   Updated dependencies [d4a269e]
-   Updated dependencies [52130af]
-   Updated dependencies [e938254]
    -   @comet/[email protected]
    -   @comet/[email protected]

## @comet/[email protected]

### Patch Changes

-   Updated dependencies [a8a098a]
-   Updated dependencies [d4a269e]
-   Updated dependencies [52130af]
-   Updated dependencies [e938254]
    -   @comet/[email protected]

## @comet/[email protected]

### Patch Changes

-   Updated dependencies [a8a098a]
-   Updated dependencies [d4a269e]
-   Updated dependencies [52130af]
-   Updated dependencies [e938254]
    -   @comet/[email protected]
    -   @comet/[email protected]

## @comet/[email protected]

### Patch Changes

-   @comet/[email protected]

## @comet/[email protected]

### Patch Changes

-   Updated dependencies [a8a098a]
-   Updated dependencies [d4a269e]
-   Updated dependencies [52130af]
-   Updated dependencies [e938254]
    -   @comet/[email protected]
    -   @comet/[email protected]

## @comet/[email protected]

### Patch Changes

-   @comet/[email protected]

## @comet/[email protected]



## @comet/[email protected]



## @comet/[email protected]



## @comet/[email protected]



## @comet/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored May 14, 2024
1 parent 536fdb8 commit 9732556
Show file tree
Hide file tree
Showing 43 changed files with 330 additions and 224 deletions.
5 changes: 0 additions & 5 deletions .changeset/breezy-suns-nail.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/cool-walls-grab.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/eighty-colts-do.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fair-hats-decide.md

This file was deleted.

31 changes: 0 additions & 31 deletions .changeset/gold-taxis-heal.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/happy-poets-chew.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/khaki-beans-clean.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/strong-onions-cough.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/thin-bags-repair.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/wild-clocks-dress.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

## 6.10.0

## 6.9.0

## 6.8.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": "6.9.0",
"version": "6.10.0",
"repository": {
"type": "git",
"url": "https://github.com/vivid-planet/comet",
Expand Down
11 changes: 11 additions & 0 deletions packages/admin/admin-color-picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @comet/admin-color-picker

## 6.10.0

### Patch Changes

- Updated dependencies [a8a098a24]
- Updated dependencies [d4a269e1e]
- Updated dependencies [52130afba]
- Updated dependencies [e938254bf]
- @comet/admin@6.10.0
- @comet/admin-icons@6.10.0

## 6.9.0

### Minor 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": "6.9.0",
"version": "6.10.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:^6.9.0",
"@comet/admin-icons": "workspace:^6.9.0",
"@comet/admin": "workspace:^6.10.0",
"@comet/admin-icons": "workspace:^6.10.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:^6.9.0",
"@comet/eslint-config": "workspace:^6.9.0",
"@comet/admin-babel-preset": "workspace:^6.10.0",
"@comet/eslint-config": "workspace:^6.10.0",
"@mui/icons-material": "^5.0.0",
"@mui/material": "^5.0.0",
"@mui/styles": "^5.0.0",
Expand Down
11 changes: 11 additions & 0 deletions packages/admin/admin-date-time/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @comet/admin-date-time

## 6.10.0

### Patch Changes

- Updated dependencies [a8a098a24]
- Updated dependencies [d4a269e1e]
- Updated dependencies [52130afba]
- Updated dependencies [e938254bf]
- @comet/admin@6.10.0
- @comet/admin-icons@6.10.0

## 6.9.0

### Minor 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": "6.9.0",
"version": "6.10.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:^6.9.0",
"@comet/admin-icons": "workspace:^6.9.0",
"@comet/admin": "workspace:^6.10.0",
"@comet/admin-icons": "workspace:^6.10.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:^6.9.0",
"@comet/eslint-config": "workspace:^6.9.0",
"@comet/admin-babel-preset": "workspace:^6.10.0",
"@comet/eslint-config": "workspace:^6.10.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

## 6.10.0

## 6.9.0

## 6.8.0
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": "6.9.0",
"version": "6.10.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:^6.9.0",
"@comet/eslint-config": "workspace:^6.9.0",
"@comet/admin-babel-preset": "workspace:^6.10.0",
"@comet/eslint-config": "workspace:^6.10.0",
"@mui/material": "^5.0.0",
"@types/cli-progress": "^3.8.0",
"@types/node": "^18.0.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/admin/admin-react-select/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @comet/admin-react-select

## 6.10.0

### Patch Changes

- Updated dependencies [a8a098a24]
- Updated dependencies [d4a269e1e]
- Updated dependencies [52130afba]
- Updated dependencies [e938254bf]
- @comet/admin@6.10.0

## 6.9.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": "6.9.0",
"version": "6.10.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:^6.9.0",
"@comet/admin": "workspace:^6.10.0",
"classnames": "^2.2.6"
},
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.20.12",
"@comet/admin-babel-preset": "workspace:^6.9.0",
"@comet/eslint-config": "workspace:^6.9.0",
"@comet/admin-babel-preset": "workspace:^6.10.0",
"@comet/eslint-config": "workspace:^6.10.0",
"@mui/icons-material": "^5.0.0",
"@mui/material": "^5.0.0",
"@mui/styles": "^5.0.0",
Expand Down
11 changes: 11 additions & 0 deletions packages/admin/admin-rte/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @comet/admin-rte

## 6.10.0

### Patch Changes

- Updated dependencies [a8a098a24]
- Updated dependencies [d4a269e1e]
- Updated dependencies [52130afba]
- Updated dependencies [e938254bf]
- @comet/admin@6.10.0
- @comet/admin-icons@6.10.0

## 6.9.0

### Minor Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/admin/admin-rte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@comet/admin-rte",
"version": "6.9.0",
"version": "6.10.0",
"repository": {
"type": "git",
"url": "https://github.com/vivid-planet/comet",
Expand All @@ -27,8 +27,8 @@
"test:watch": "jest --watch"
},
"dependencies": {
"@comet/admin": "workspace:^6.9.0",
"@comet/admin-icons": "workspace:^6.9.0",
"@comet/admin": "workspace:^6.10.0",
"@comet/admin-icons": "workspace:^6.10.0",
"detect-browser": "^5.2.1",
"draft-js-export-html": "^1.4.1",
"draft-js-import-html": "^1.4.1",
Expand All @@ -38,8 +38,8 @@
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.20.12",
"@comet/admin-babel-preset": "workspace:^6.9.0",
"@comet/eslint-config": "workspace:^6.9.0",
"@comet/admin-babel-preset": "workspace:^6.10.0",
"@comet/eslint-config": "workspace:^6.10.0",
"@mui/icons-material": "^5.0.0",
"@mui/material": "^5.0.0",
"@mui/styles": "^5.0.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/admin/admin-theme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @comet/admin-theme

## 6.10.0

### Patch Changes

- @comet/admin-icons@6.10.0

## 6.9.0

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/admin/admin-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@comet/admin-theme",
"version": "6.9.0",
"version": "6.10.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-icons": "workspace:^6.9.0",
"@comet/admin-icons": "workspace:^6.10.0",
"@mui/utils": "^5.4.1"
},
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.20.12",
"@comet/admin-babel-preset": "workspace:^6.9.0",
"@comet/eslint-config": "workspace:^6.9.0",
"@comet/admin-babel-preset": "workspace:^6.10.0",
"@comet/eslint-config": "workspace:^6.10.0",
"@mui/material": "^5.0.0",
"@mui/styles": "^5.0.0",
"@mui/system": "^5.0.0",
Expand Down
Loading

0 comments on commit 9732556

Please sign in to comment.