From ac01c5a219610099dc533b1c39213341fe1d1844 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:56:08 +0200 Subject: [PATCH] Version Packages (#2453) 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@7.2.0 ### Minor Changes - 0fb8d9a26: Allow pinning DataGrid columns using the column config when using `DataGridPro` or `DataGridPremium` with the `usePersistentColumnState` hook ```tsx const columns: GridColDef[] = [ { field: "title", pinned: "left", }, // ... other columns { field: "actions", pinned: "right", }, ]; ``` ### Patch Changes - 4b267f90d: Fix broken export/import of `commonErrorMessages` from the file form field - Updated dependencies [9b800c9f6] - @comet/admin-theme@7.2.0 - @comet/admin-icons@7.2.0 ## @comet/admin-theme@7.2.0 ### Minor Changes - 9b800c9f6: Slightly adjust the styling of pinned columns in DataGrid ### Patch Changes - @comet/admin-icons@7.2.0 ## @comet/cms-site@7.2.0 ### Minor Changes - 381aa71c7: Add `ErrorHandlerProvider` Each block in `BlocksBlock`, `OneOfBlock` and `ListBlock` is wrapped with an error boundary to prevent the whole page from crashing when a single block throws an error. In production, the broken block is hidden. The application should take care of reporting the error to an error tracking service (e.g., Sentry). In local development, the error is re-thrown. Add an `ErrorHandler` to the root layout: ```tsx // In src/app/layout.tsx {/* Other Providers */} {children} ``` The `ErrorHandler` receives the errors in the application and can report them to the error tracking service. **Example ErrorHandler** ```tsx "use client"; import { ErrorHandlerProvider } from "@comet/cms-site"; import { PropsWithChildren } from "react"; export function ErrorHandler({ children }: PropsWithChildren) { function onError(error: Error, errorInfo: ErrorInfo) { console.error("Error caught by error handler", error, errorInfo.componentStack); if (process.env.NODE_ENV === "development") { throw error; } else { // Report the error to the error tracking service } } return {children}; } ``` ## @comet/admin-color-picker@7.2.0 ### Patch Changes - Updated dependencies [0fb8d9a26] - Updated dependencies [4b267f90d] - @comet/admin@7.2.0 - @comet/admin-icons@7.2.0 ## @comet/admin-date-time@7.2.0 ### Patch Changes - Updated dependencies [0fb8d9a26] - Updated dependencies [4b267f90d] - @comet/admin@7.2.0 - @comet/admin-icons@7.2.0 ## @comet/admin-react-select@7.2.0 ### Patch Changes - Updated dependencies [0fb8d9a26] - Updated dependencies [4b267f90d] - @comet/admin@7.2.0 - @comet/admin-icons@7.2.0 ## @comet/admin-rte@7.2.0 ### Patch Changes - Updated dependencies [0fb8d9a26] - Updated dependencies [4b267f90d] - @comet/admin@7.2.0 - @comet/admin-icons@7.2.0 ## @comet/blocks-admin@7.2.0 ### Patch Changes - Updated dependencies [0fb8d9a26] - Updated dependencies [4b267f90d] - @comet/admin@7.2.0 - @comet/admin-icons@7.2.0 ## @comet/cms-admin@7.2.0 ### Patch Changes - 4b267f90d: Fix broken export/import of `commonErrorMessages` from the file form field - Updated dependencies [9b800c9f6] - Updated dependencies [0fb8d9a26] - Updated dependencies [4b267f90d] - @comet/admin-theme@7.2.0 - @comet/admin@7.2.0 - @comet/admin-date-time@7.2.0 - @comet/admin-icons@7.2.0 - @comet/admin-rte@7.2.0 - @comet/blocks-admin@7.2.0 ## @comet/cms-api@7.2.0 ### Patch Changes - @comet/blocks-api@7.2.0 ## @comet/eslint-config@7.2.0 ### Patch Changes - @comet/eslint-plugin@7.2.0 ## @comet/admin-babel-preset@7.2.0 ## @comet/admin-icons@7.2.0 ## @comet/blocks-api@7.2.0 ## @comet/cli@7.2.0 ## @comet/eslint-plugin@7.2.0 Co-authored-by: github-actions[bot] --- .changeset/breezy-llamas-taste.md | 5 - .changeset/cold-hats-return.md | 19 ---- .changeset/nervous-bottles-juggle.md | 6 -- .changeset/rich-colts-laugh.md | 44 --------- .../admin/admin-babel-preset/CHANGELOG.md | 2 + .../admin/admin-babel-preset/package.json | 2 +- .../admin/admin-color-picker/CHANGELOG.md | 9 ++ .../admin/admin-color-picker/package.json | 10 +- packages/admin/admin-date-time/CHANGELOG.md | 9 ++ packages/admin/admin-date-time/package.json | 10 +- packages/admin/admin-icons/CHANGELOG.md | 2 + packages/admin/admin-icons/package.json | 6 +- .../admin/admin-react-select/CHANGELOG.md | 9 ++ .../admin/admin-react-select/package.json | 10 +- packages/admin/admin-rte/CHANGELOG.md | 9 ++ packages/admin/admin-rte/package.json | 10 +- packages/admin/admin-theme/CHANGELOG.md | 10 ++ packages/admin/admin-theme/package.json | 8 +- packages/admin/admin/CHANGELOG.md | 27 ++++++ packages/admin/admin/package.json | 10 +- packages/admin/blocks-admin/CHANGELOG.md | 9 ++ packages/admin/blocks-admin/package.json | 12 +-- packages/admin/cms-admin/CHANGELOG.md | 15 +++ packages/admin/cms-admin/package.json | 20 ++-- packages/api/blocks-api/CHANGELOG.md | 2 + packages/api/blocks-api/package.json | 4 +- packages/api/cms-api/CHANGELOG.md | 6 ++ packages/api/cms-api/package.json | 6 +- packages/cli/CHANGELOG.md | 2 + packages/cli/package.json | 4 +- packages/eslint-config/CHANGELOG.md | 6 ++ packages/eslint-config/package.json | 4 +- packages/eslint-plugin/CHANGELOG.md | 2 + packages/eslint-plugin/package.json | 2 +- packages/site/cms-site/CHANGELOG.md | 45 +++++++++ packages/site/cms-site/package.json | 6 +- pnpm-lock.yaml | 92 +++++++++---------- 37 files changed, 272 insertions(+), 182 deletions(-) delete mode 100644 .changeset/breezy-llamas-taste.md delete mode 100644 .changeset/cold-hats-return.md delete mode 100644 .changeset/nervous-bottles-juggle.md delete mode 100644 .changeset/rich-colts-laugh.md diff --git a/.changeset/breezy-llamas-taste.md b/.changeset/breezy-llamas-taste.md deleted file mode 100644 index ceac3bb517..0000000000 --- a/.changeset/breezy-llamas-taste.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@comet/admin-theme": minor ---- - -Slightly adjust the styling of pinned columns in DataGrid diff --git a/.changeset/cold-hats-return.md b/.changeset/cold-hats-return.md deleted file mode 100644 index 79f090e1c8..0000000000 --- a/.changeset/cold-hats-return.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"@comet/admin": minor ---- - -Allow pinning DataGrid columns using the column config when using `DataGridPro` or `DataGridPremium` with the `usePersistentColumnState` hook - -```tsx -const columns: GridColDef[] = [ - { - field: "title", - pinned: "left", - }, - // ... other columns - { - field: "actions", - pinned: "right", - }, -]; -``` diff --git a/.changeset/nervous-bottles-juggle.md b/.changeset/nervous-bottles-juggle.md deleted file mode 100644 index 90bd6f79eb..0000000000 --- a/.changeset/nervous-bottles-juggle.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@comet/cms-admin": patch -"@comet/admin": patch ---- - -Fix broken export/import of `commonErrorMessages` from the file form field diff --git a/.changeset/rich-colts-laugh.md b/.changeset/rich-colts-laugh.md deleted file mode 100644 index 75dc1055af..0000000000 --- a/.changeset/rich-colts-laugh.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -"@comet/cms-site": minor ---- - -Add `ErrorHandlerProvider` - -Each block in `BlocksBlock`, `OneOfBlock` and `ListBlock` is wrapped with an error boundary to prevent the whole page from crashing when a single block throws an error. -In production, the broken block is hidden. The application should take care of reporting the error to an error tracking service (e.g., Sentry). In local development, the error is re-thrown. - -Add an `ErrorHandler` to the root layout: - -```tsx -// In src/app/layout.tsx - - - {/* Other Providers */} - {children} - - -``` - -The `ErrorHandler` receives the errors in the application and can report them to the error tracking service. - -**Example ErrorHandler** - -```tsx -"use client"; - -import { ErrorHandlerProvider } from "@comet/cms-site"; -import { PropsWithChildren } from "react"; - -export function ErrorHandler({ children }: PropsWithChildren) { - function onError(error: Error, errorInfo: ErrorInfo) { - console.error("Error caught by error handler", error, errorInfo.componentStack); - if (process.env.NODE_ENV === "development") { - throw error; - } else { - // Report the error to the error tracking service - } - } - - return {children}; -} -``` diff --git a/packages/admin/admin-babel-preset/CHANGELOG.md b/packages/admin/admin-babel-preset/CHANGELOG.md index 2a5996dc1e..abd4865944 100644 --- a/packages/admin/admin-babel-preset/CHANGELOG.md +++ b/packages/admin/admin-babel-preset/CHANGELOG.md @@ -1,5 +1,7 @@ # @comet/admin-babel-preset +## 7.2.0 + ## 7.1.0 ## 7.0.0 diff --git a/packages/admin/admin-babel-preset/package.json b/packages/admin/admin-babel-preset/package.json index de9f732768..7f1d463b75 100644 --- a/packages/admin/admin-babel-preset/package.json +++ b/packages/admin/admin-babel-preset/package.json @@ -1,6 +1,6 @@ { "name": "@comet/admin-babel-preset", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", diff --git a/packages/admin/admin-color-picker/CHANGELOG.md b/packages/admin/admin-color-picker/CHANGELOG.md index f779e71127..03d30bf4e2 100644 --- a/packages/admin/admin-color-picker/CHANGELOG.md +++ b/packages/admin/admin-color-picker/CHANGELOG.md @@ -1,5 +1,14 @@ # @comet/admin-color-picker +## 7.2.0 + +### Patch Changes + +- Updated dependencies [0fb8d9a26] +- Updated dependencies [4b267f90d] + - @comet/admin@7.2.0 + - @comet/admin-icons@7.2.0 + ## 7.1.0 ### Patch Changes diff --git a/packages/admin/admin-color-picker/package.json b/packages/admin/admin-color-picker/package.json index 9d504a4fe1..5bcc1e3179 100644 --- a/packages/admin/admin-color-picker/package.json +++ b/packages/admin/admin-color-picker/package.json @@ -1,6 +1,6 @@ { "name": "@comet/admin-color-picker", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -26,8 +26,8 @@ "start:types": "tsc --project ./tsconfig.json --emitDeclarationOnly --watch --preserveWatchOutput" }, "dependencies": { - "@comet/admin": "workspace:^7.1.0", - "@comet/admin-icons": "workspace:^7.1.0", + "@comet/admin": "workspace:^7.2.0", + "@comet/admin-icons": "workspace:^7.2.0", "clsx": "^1.1.1", "react-colorful": "^5.5.1", "tinycolor2": "^1.4.1", @@ -36,8 +36,8 @@ "devDependencies": { "@babel/cli": "^7.17.6", "@babel/core": "^7.20.12", - "@comet/admin-babel-preset": "workspace:^7.1.0", - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/admin-babel-preset": "workspace:^7.2.0", + "@comet/eslint-config": "workspace:^7.2.0", "@mui/material": "^5.0.0", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", diff --git a/packages/admin/admin-date-time/CHANGELOG.md b/packages/admin/admin-date-time/CHANGELOG.md index b9830ff7b8..e589876f83 100644 --- a/packages/admin/admin-date-time/CHANGELOG.md +++ b/packages/admin/admin-date-time/CHANGELOG.md @@ -1,5 +1,14 @@ # @comet/admin-date-time +## 7.2.0 + +### Patch Changes + +- Updated dependencies [0fb8d9a26] +- Updated dependencies [4b267f90d] + - @comet/admin@7.2.0 + - @comet/admin-icons@7.2.0 + ## 7.1.0 ### Patch Changes diff --git a/packages/admin/admin-date-time/package.json b/packages/admin/admin-date-time/package.json index d6f1c854c3..be4e58bd74 100644 --- a/packages/admin/admin-date-time/package.json +++ b/packages/admin/admin-date-time/package.json @@ -1,6 +1,6 @@ { "name": "@comet/admin-date-time", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -26,8 +26,8 @@ "start:types": "tsc --project ./tsconfig.json --emitDeclarationOnly --watch --preserveWatchOutput" }, "dependencies": { - "@comet/admin": "workspace:^7.1.0", - "@comet/admin-icons": "workspace:^7.1.0", + "@comet/admin": "workspace:^7.2.0", + "@comet/admin-icons": "workspace:^7.2.0", "@mui/utils": "^5.4.1", "clsx": "^1.1.1", "date-fns": "^2.28.0", @@ -36,8 +36,8 @@ "devDependencies": { "@babel/cli": "^7.17.6", "@babel/core": "^7.20.12", - "@comet/admin-babel-preset": "workspace:^7.1.0", - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/admin-babel-preset": "workspace:^7.2.0", + "@comet/eslint-config": "workspace:^7.2.0", "@mui/material": "^5.0.0", "@types/react": "^17.0", "@types/react-date-range": "^1.4.3", diff --git a/packages/admin/admin-icons/CHANGELOG.md b/packages/admin/admin-icons/CHANGELOG.md index cdddcd7c90..ba9e19fac0 100644 --- a/packages/admin/admin-icons/CHANGELOG.md +++ b/packages/admin/admin-icons/CHANGELOG.md @@ -1,5 +1,7 @@ # @comet/admin-icons +## 7.2.0 + ## 7.1.0 ### Minor Changes diff --git a/packages/admin/admin-icons/package.json b/packages/admin/admin-icons/package.json index b759d83c25..0745be5d51 100644 --- a/packages/admin/admin-icons/package.json +++ b/packages/admin/admin-icons/package.json @@ -1,6 +1,6 @@ { "name": "@comet/admin-icons", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -25,8 +25,8 @@ "devDependencies": { "@babel/cli": "^7.17.6", "@babel/core": "^7.20.12", - "@comet/admin-babel-preset": "workspace:^7.1.0", - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/admin-babel-preset": "workspace:^7.2.0", + "@comet/eslint-config": "workspace:^7.2.0", "@mui/material": "^5.0.0", "@types/cli-progress": "^3.8.0", "@types/node": "^18.0.0", diff --git a/packages/admin/admin-react-select/CHANGELOG.md b/packages/admin/admin-react-select/CHANGELOG.md index fef15fd4fb..c741b1f43c 100644 --- a/packages/admin/admin-react-select/CHANGELOG.md +++ b/packages/admin/admin-react-select/CHANGELOG.md @@ -1,5 +1,14 @@ # @comet/admin-react-select +## 7.2.0 + +### Patch Changes + +- Updated dependencies [0fb8d9a26] +- Updated dependencies [4b267f90d] + - @comet/admin@7.2.0 + - @comet/admin-icons@7.2.0 + ## 7.1.0 ### Patch Changes diff --git a/packages/admin/admin-react-select/package.json b/packages/admin/admin-react-select/package.json index 5ad8be1785..877f249ac9 100644 --- a/packages/admin/admin-react-select/package.json +++ b/packages/admin/admin-react-select/package.json @@ -1,6 +1,6 @@ { "name": "@comet/admin-react-select", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -26,15 +26,15 @@ "start:types": "tsc --project ./tsconfig.json --emitDeclarationOnly --watch --preserveWatchOutput" }, "dependencies": { - "@comet/admin": "workspace:^7.1.0", - "@comet/admin-icons": "workspace:^7.1.0", + "@comet/admin": "workspace:^7.2.0", + "@comet/admin-icons": "workspace:^7.2.0", "classnames": "^2.2.6" }, "devDependencies": { "@babel/cli": "^7.17.6", "@babel/core": "^7.20.12", - "@comet/admin-babel-preset": "workspace:^7.1.0", - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/admin-babel-preset": "workspace:^7.2.0", + "@comet/eslint-config": "workspace:^7.2.0", "@mui/material": "^5.0.0", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", diff --git a/packages/admin/admin-rte/CHANGELOG.md b/packages/admin/admin-rte/CHANGELOG.md index 86a73f6566..13fd78e7b9 100644 --- a/packages/admin/admin-rte/CHANGELOG.md +++ b/packages/admin/admin-rte/CHANGELOG.md @@ -1,5 +1,14 @@ # @comet/admin-rte +## 7.2.0 + +### Patch Changes + +- Updated dependencies [0fb8d9a26] +- Updated dependencies [4b267f90d] + - @comet/admin@7.2.0 + - @comet/admin-icons@7.2.0 + ## 7.1.0 ### Patch Changes diff --git a/packages/admin/admin-rte/package.json b/packages/admin/admin-rte/package.json index 503400d804..ccfc644c89 100644 --- a/packages/admin/admin-rte/package.json +++ b/packages/admin/admin-rte/package.json @@ -1,6 +1,6 @@ { "name": "@comet/admin-rte", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -28,8 +28,8 @@ "test:watch": "jest --watch" }, "dependencies": { - "@comet/admin": "workspace:^7.1.0", - "@comet/admin-icons": "workspace:^7.1.0", + "@comet/admin": "workspace:^7.2.0", + "@comet/admin-icons": "workspace:^7.2.0", "detect-browser": "^5.2.1", "draft-js-export-html": "^1.4.1", "draft-js-import-html": "^1.4.1", @@ -39,8 +39,8 @@ "devDependencies": { "@babel/cli": "^7.17.6", "@babel/core": "^7.20.12", - "@comet/admin-babel-preset": "workspace:^7.1.0", - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/admin-babel-preset": "workspace:^7.2.0", + "@comet/eslint-config": "workspace:^7.2.0", "@mui/material": "^5.0.0", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^12.0.0", diff --git a/packages/admin/admin-theme/CHANGELOG.md b/packages/admin/admin-theme/CHANGELOG.md index e125d4d871..fdddb4f210 100644 --- a/packages/admin/admin-theme/CHANGELOG.md +++ b/packages/admin/admin-theme/CHANGELOG.md @@ -1,5 +1,15 @@ # @comet/admin-theme +## 7.2.0 + +### Minor Changes + +- 9b800c9f6: Slightly adjust the styling of pinned columns in DataGrid + +### Patch Changes + +- @comet/admin-icons@7.2.0 + ## 7.1.0 ### Minor Changes diff --git a/packages/admin/admin-theme/package.json b/packages/admin/admin-theme/package.json index 4fd9d084d1..6f8f5f85e5 100644 --- a/packages/admin/admin-theme/package.json +++ b/packages/admin/admin-theme/package.json @@ -1,6 +1,6 @@ { "name": "@comet/admin-theme", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -26,14 +26,14 @@ "start:types": "tsc --project ./tsconfig.json --emitDeclarationOnly --watch --preserveWatchOutput" }, "dependencies": { - "@comet/admin-icons": "workspace:^7.1.0", + "@comet/admin-icons": "workspace:^7.2.0", "@mui/utils": "^5.4.1" }, "devDependencies": { "@babel/cli": "^7.17.6", "@babel/core": "^7.20.12", - "@comet/admin-babel-preset": "workspace:^7.1.0", - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/admin-babel-preset": "workspace:^7.2.0", + "@comet/eslint-config": "workspace:^7.2.0", "@mui/material": "^5.0.0", "@mui/system": "^5.0.0", "@mui/x-data-grid": "^5.0.0", diff --git a/packages/admin/admin/CHANGELOG.md b/packages/admin/admin/CHANGELOG.md index fa8a725724..9d43f41704 100644 --- a/packages/admin/admin/CHANGELOG.md +++ b/packages/admin/admin/CHANGELOG.md @@ -1,5 +1,32 @@ # @comet/admin +## 7.2.0 + +### Minor Changes + +- 0fb8d9a26: Allow pinning DataGrid columns using the column config when using `DataGridPro` or `DataGridPremium` with the `usePersistentColumnState` hook + + ```tsx + const columns: GridColDef[] = [ + { + field: "title", + pinned: "left", + }, + // ... other columns + { + field: "actions", + pinned: "right", + }, + ]; + ``` + +### Patch Changes + +- 4b267f90d: Fix broken export/import of `commonErrorMessages` from the file form field +- Updated dependencies [9b800c9f6] + - @comet/admin-theme@7.2.0 + - @comet/admin-icons@7.2.0 + ## 7.1.0 ### Minor Changes diff --git a/packages/admin/admin/package.json b/packages/admin/admin/package.json index a777230c44..6b6e5332a7 100644 --- a/packages/admin/admin/package.json +++ b/packages/admin/admin/package.json @@ -1,6 +1,6 @@ { "name": "@comet/admin", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -28,8 +28,8 @@ "test:watch": "jest --watch" }, "dependencies": { - "@comet/admin-icons": "workspace:^7.1.0", - "@comet/admin-theme": "workspace:^7.1.0", + "@comet/admin-icons": "workspace:^7.2.0", + "@comet/admin-theme": "workspace:^7.2.0", "@mui/lab": "^5.0.0-alpha.76", "@mui/private-theming": "^5.0.0", "clsx": "^1.1.1", @@ -49,8 +49,8 @@ "@apollo/client": "^3.7.0", "@babel/cli": "^7.17.6", "@babel/core": "^7.20.12", - "@comet/admin-babel-preset": "workspace:^7.1.0", - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/admin-babel-preset": "workspace:^7.2.0", + "@comet/eslint-config": "workspace:^7.2.0", "@emotion/react": "^11.5.0", "@emotion/styled": "^11.3.0", "@mui/material": "^5.0.0", diff --git a/packages/admin/blocks-admin/CHANGELOG.md b/packages/admin/blocks-admin/CHANGELOG.md index 1f68fda48e..b2b63a5469 100644 --- a/packages/admin/blocks-admin/CHANGELOG.md +++ b/packages/admin/blocks-admin/CHANGELOG.md @@ -1,5 +1,14 @@ # @comet/blocks-admin +## 7.2.0 + +### Patch Changes + +- Updated dependencies [0fb8d9a26] +- Updated dependencies [4b267f90d] + - @comet/admin@7.2.0 + - @comet/admin-icons@7.2.0 + ## 7.1.0 ### Minor Changes diff --git a/packages/admin/blocks-admin/package.json b/packages/admin/blocks-admin/package.json index 7f02656f96..0381d889ca 100644 --- a/packages/admin/blocks-admin/package.json +++ b/packages/admin/blocks-admin/package.json @@ -1,6 +1,6 @@ { "name": "@comet/blocks-admin", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -30,8 +30,8 @@ "test:watch": "jest --watch" }, "dependencies": { - "@comet/admin": "workspace:^7.1.0", - "@comet/admin-icons": "workspace:^7.1.0", + "@comet/admin": "workspace:^7.2.0", + "@comet/admin-icons": "workspace:^7.2.0", "@mui/lab": "^5.0.0-alpha.76", "clipboard-copy": "^4.0.0", "clsx": "^1.1.1", @@ -43,9 +43,9 @@ "devDependencies": { "@babel/cli": "^7.17.6", "@babel/core": "^7.20.12", - "@comet/admin-babel-preset": "workspace:^7.1.0", - "@comet/cli": "workspace:^7.1.0", - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/admin-babel-preset": "workspace:^7.2.0", + "@comet/cli": "workspace:^7.2.0", + "@comet/eslint-config": "workspace:^7.2.0", "@emotion/react": "^11.5.0", "@emotion/styled": "^11.3.0", "@mui/lab": "^5.0.0-alpha.76", diff --git a/packages/admin/cms-admin/CHANGELOG.md b/packages/admin/cms-admin/CHANGELOG.md index feb60c87b4..23d5924303 100644 --- a/packages/admin/cms-admin/CHANGELOG.md +++ b/packages/admin/cms-admin/CHANGELOG.md @@ -1,5 +1,20 @@ # @comet/cms-admin +## 7.2.0 + +### Patch Changes + +- 4b267f90d: Fix broken export/import of `commonErrorMessages` from the file form field +- Updated dependencies [9b800c9f6] +- Updated dependencies [0fb8d9a26] +- Updated dependencies [4b267f90d] + - @comet/admin-theme@7.2.0 + - @comet/admin@7.2.0 + - @comet/admin-date-time@7.2.0 + - @comet/admin-icons@7.2.0 + - @comet/admin-rte@7.2.0 + - @comet/blocks-admin@7.2.0 + ## 7.1.0 ### Minor Changes diff --git a/packages/admin/cms-admin/package.json b/packages/admin/cms-admin/package.json index 7f4e81075f..999e70deb4 100644 --- a/packages/admin/cms-admin/package.json +++ b/packages/admin/cms-admin/package.json @@ -1,6 +1,6 @@ { "name": "@comet/cms-admin", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -35,12 +35,12 @@ "test:watch": "jest --watch" }, "dependencies": { - "@comet/admin": "workspace:^7.1.0", - "@comet/admin-date-time": "workspace:^7.1.0", - "@comet/admin-icons": "workspace:^7.1.0", - "@comet/admin-rte": "workspace:^7.1.0", - "@comet/admin-theme": "workspace:^7.1.0", - "@comet/blocks-admin": "workspace:^7.1.0", + "@comet/admin": "workspace:^7.2.0", + "@comet/admin-date-time": "workspace:^7.2.0", + "@comet/admin-icons": "workspace:^7.2.0", + "@comet/admin-rte": "workspace:^7.2.0", + "@comet/admin-theme": "workspace:^7.2.0", + "@comet/blocks-admin": "workspace:^7.2.0", "@graphql-tools/graphql-file-loader": "^7.5.17", "@graphql-tools/load": "^7.8.14", "@graphql-typed-document-node/core": "^3.1.1", @@ -83,9 +83,9 @@ "@apollo/client": "^3.7.0", "@babel/cli": "^7.17.6", "@babel/core": "^7.20.12", - "@comet/admin-babel-preset": "workspace:^7.1.0", - "@comet/cli": "workspace:^7.1.0", - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/admin-babel-preset": "workspace:^7.2.0", + "@comet/cli": "workspace:^7.2.0", + "@comet/eslint-config": "workspace:^7.2.0", "@emotion/react": "^11.5.0", "@emotion/styled": "^11.3.0", "@graphql-codegen/cli": "^2.0.0", diff --git a/packages/api/blocks-api/CHANGELOG.md b/packages/api/blocks-api/CHANGELOG.md index 1a9401465b..95c821a3ef 100644 --- a/packages/api/blocks-api/CHANGELOG.md +++ b/packages/api/blocks-api/CHANGELOG.md @@ -1,5 +1,7 @@ # @comet/blocks-api +## 7.2.0 + ## 7.1.0 ## 7.0.0 diff --git a/packages/api/blocks-api/package.json b/packages/api/blocks-api/package.json index 781cea3b89..5720e8b174 100644 --- a/packages/api/blocks-api/package.json +++ b/packages/api/blocks-api/package.json @@ -1,6 +1,6 @@ { "name": "@comet/blocks-api", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -31,7 +31,7 @@ "rimraf": "^3.0.0" }, "devDependencies": { - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/eslint-config": "workspace:^7.2.0", "@nestjs/common": "^9.0.0", "@types/draft-js": "^0.11.10", "@types/jest": "^29.5.0", diff --git a/packages/api/cms-api/CHANGELOG.md b/packages/api/cms-api/CHANGELOG.md index 0c9691ff40..92a7bc0433 100644 --- a/packages/api/cms-api/CHANGELOG.md +++ b/packages/api/cms-api/CHANGELOG.md @@ -1,5 +1,11 @@ # @comet/cms-api +## 7.2.0 + +### Patch Changes + +- @comet/blocks-api@7.2.0 + ## 7.1.0 ### Minor Changes diff --git a/packages/api/cms-api/package.json b/packages/api/cms-api/package.json index cffa59c342..cd740b2b06 100644 --- a/packages/api/cms-api/package.json +++ b/packages/api/cms-api/package.json @@ -1,6 +1,6 @@ { "name": "@comet/cms-api", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -36,7 +36,7 @@ "@azure-rest/ai-translation-text": "^1.0.0-beta.1", "@azure/openai": "1.0.0-beta.11", "@azure/storage-blob": "^12.23.0", - "@comet/blocks-api": "workspace:^7.1.0", + "@comet/blocks-api": "workspace:^7.2.0", "@fast-csv/parse": "^4.3.6", "@golevelup/nestjs-discovery": "^3.0.0", "@hapi/accept": "^5.0.2", @@ -84,7 +84,7 @@ }, "devDependencies": { "@aws-sdk/types": "^3.47.0", - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/eslint-config": "workspace:^7.2.0", "@golevelup/ts-jest": "^0.4.0", "@kubernetes/client-node": "^0.18.1", "@mikro-orm/core": "^5.9.8", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 036bc3beca..64810c3ca2 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,7 @@ # @comet/cli +## 7.2.0 + ## 7.1.0 ## 7.0.0 diff --git a/packages/cli/package.json b/packages/cli/package.json index 80b757a186..521c0ff653 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@comet/cli", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -30,7 +30,7 @@ "prettier": "^2.7.1" }, "devDependencies": { - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/eslint-config": "workspace:^7.2.0", "@types/node": "^18.0.0", "eslint": "^8.0.0", "npm-run-all": "^4.1.5", diff --git a/packages/eslint-config/CHANGELOG.md b/packages/eslint-config/CHANGELOG.md index 8ea41641ba..54e601ee54 100644 --- a/packages/eslint-config/CHANGELOG.md +++ b/packages/eslint-config/CHANGELOG.md @@ -1,5 +1,11 @@ # @comet/eslint-config +## 7.2.0 + +### Patch Changes + +- @comet/eslint-plugin@7.2.0 + ## 7.1.0 ### Patch Changes diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 3e85dfa999..f0fcd6ad14 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@comet/eslint-config", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -15,7 +15,7 @@ }, "dependencies": { "@calm/eslint-plugin-react-intl": "^1.4.1", - "@comet/eslint-plugin": "workspace:^7.1.0", + "@comet/eslint-plugin": "workspace:^7.2.0", "@next/eslint-plugin-next": "^14.0.0", "@typescript-eslint/eslint-plugin": "^5.48.2", "@typescript-eslint/parser": "^5.48.2", diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index e171afc0f6..0589ad5cf5 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -1,5 +1,7 @@ # @comet/eslint-plugin +## 7.2.0 + ## 7.1.0 ## 7.0.0 diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 4e719cbe51..0aa91a52fa 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@comet/eslint-plugin", - "version": "7.1.0", + "version": "7.2.0", "main": "lib/index.js", "scripts": { "build": "$npm_execpath run clean && tsc", diff --git a/packages/site/cms-site/CHANGELOG.md b/packages/site/cms-site/CHANGELOG.md index f67ae57692..1d2845091f 100644 --- a/packages/site/cms-site/CHANGELOG.md +++ b/packages/site/cms-site/CHANGELOG.md @@ -1,5 +1,50 @@ # @comet/cms-site +## 7.2.0 + +### Minor Changes + +- 381aa71c7: Add `ErrorHandlerProvider` + + Each block in `BlocksBlock`, `OneOfBlock` and `ListBlock` is wrapped with an error boundary to prevent the whole page from crashing when a single block throws an error. + In production, the broken block is hidden. The application should take care of reporting the error to an error tracking service (e.g., Sentry). In local development, the error is re-thrown. + + Add an `ErrorHandler` to the root layout: + + ```tsx + // In src/app/layout.tsx + + + {/* Other Providers */} + {children} + + + ``` + + The `ErrorHandler` receives the errors in the application and can report them to the error tracking service. + + **Example ErrorHandler** + + ```tsx + "use client"; + + import { ErrorHandlerProvider } from "@comet/cms-site"; + import { PropsWithChildren } from "react"; + + export function ErrorHandler({ children }: PropsWithChildren) { + function onError(error: Error, errorInfo: ErrorInfo) { + console.error("Error caught by error handler", error, errorInfo.componentStack); + if (process.env.NODE_ENV === "development") { + throw error; + } else { + // Report the error to the error tracking service + } + } + + return {children}; + } + ``` + ## 7.1.0 ### Minor Changes diff --git a/packages/site/cms-site/package.json b/packages/site/cms-site/package.json index 2e6fda6ce1..afe9f48f7f 100644 --- a/packages/site/cms-site/package.json +++ b/packages/site/cms-site/package.json @@ -1,6 +1,6 @@ { "name": "@comet/cms-site", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/vivid-planet/comet", @@ -33,8 +33,8 @@ "use-debounce": "^6.0.0" }, "devDependencies": { - "@comet/cli": "workspace:^7.1.0", - "@comet/eslint-config": "workspace:^7.1.0", + "@comet/cli": "workspace:^7.2.0", + "@comet/eslint-config": "workspace:^7.2.0", "@gitbeaker/node": "^34.0.0", "@types/draft-js": "^0.11.10", "@types/jest": "^29.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 037035aa85..35794ec915 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1082,10 +1082,10 @@ importers: packages/admin/admin: dependencies: '@comet/admin-icons': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-icons '@comet/admin-theme': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-theme '@mui/lab': specifier: ^5.0.0-alpha.76 @@ -1140,10 +1140,10 @@ importers: specifier: ^7.20.12 version: 7.20.12 '@comet/admin-babel-preset': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-babel-preset '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../eslint-config '@emotion/react': specifier: ^11.5.0 @@ -1305,10 +1305,10 @@ importers: packages/admin/admin-color-picker: dependencies: '@comet/admin': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin '@comet/admin-icons': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-icons clsx: specifier: ^1.1.1 @@ -1330,10 +1330,10 @@ importers: specifier: ^7.20.12 version: 7.20.12 '@comet/admin-babel-preset': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-babel-preset '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../eslint-config '@mui/material': specifier: ^5.0.0 @@ -1381,10 +1381,10 @@ importers: packages/admin/admin-date-time: dependencies: '@comet/admin': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin '@comet/admin-icons': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-icons '@mui/utils': specifier: ^5.4.1 @@ -1406,10 +1406,10 @@ importers: specifier: ^7.20.12 version: 7.20.12 '@comet/admin-babel-preset': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-babel-preset '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../eslint-config '@mui/material': specifier: ^5.0.0 @@ -1463,10 +1463,10 @@ importers: specifier: ^7.20.12 version: 7.20.12 '@comet/admin-babel-preset': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-babel-preset '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../eslint-config '@mui/material': specifier: ^5.0.0 @@ -1520,10 +1520,10 @@ importers: packages/admin/admin-react-select: dependencies: '@comet/admin': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin '@comet/admin-icons': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-icons classnames: specifier: ^2.2.6 @@ -1536,10 +1536,10 @@ importers: specifier: ^7.20.12 version: 7.20.12 '@comet/admin-babel-preset': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-babel-preset '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../eslint-config '@mui/material': specifier: ^5.0.0 @@ -1587,10 +1587,10 @@ importers: packages/admin/admin-rte: dependencies: '@comet/admin': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin '@comet/admin-icons': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-icons detect-browser: specifier: ^5.2.1 @@ -1615,10 +1615,10 @@ importers: specifier: ^7.20.12 version: 7.20.12 '@comet/admin-babel-preset': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-babel-preset '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../eslint-config '@mui/material': specifier: ^5.0.0 @@ -1696,7 +1696,7 @@ importers: packages/admin/admin-theme: dependencies: '@comet/admin-icons': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-icons '@mui/utils': specifier: ^5.4.1 @@ -1709,10 +1709,10 @@ importers: specifier: ^7.20.12 version: 7.20.12 '@comet/admin-babel-preset': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-babel-preset '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../eslint-config '@mui/material': specifier: ^5.0.0 @@ -1754,10 +1754,10 @@ importers: packages/admin/blocks-admin: dependencies: '@comet/admin': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin '@comet/admin-icons': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-icons '@mui/lab': specifier: ^5.0.0-alpha.76 @@ -1788,13 +1788,13 @@ importers: specifier: ^7.20.12 version: 7.20.12 '@comet/admin-babel-preset': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-babel-preset '@comet/cli': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../cli '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../eslint-config '@emotion/react': specifier: ^11.5.0 @@ -1884,22 +1884,22 @@ importers: packages/admin/cms-admin: dependencies: '@comet/admin': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin '@comet/admin-date-time': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-date-time '@comet/admin-icons': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-icons '@comet/admin-rte': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-rte '@comet/admin-theme': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-theme '@comet/blocks-admin': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../blocks-admin '@graphql-tools/graphql-file-loader': specifier: ^7.5.17 @@ -2023,13 +2023,13 @@ importers: specifier: ^7.20.12 version: 7.20.12 '@comet/admin-babel-preset': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../admin-babel-preset '@comet/cli': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../cli '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../eslint-config '@emotion/react': specifier: ^11.5.0 @@ -2207,7 +2207,7 @@ importers: version: 3.0.2 devDependencies: '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../eslint-config '@nestjs/common': specifier: ^9.0.0 @@ -2270,7 +2270,7 @@ importers: specifier: ^12.23.0 version: 12.23.0 '@comet/blocks-api': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../blocks-api '@fast-csv/parse': specifier: ^4.3.6 @@ -2409,7 +2409,7 @@ importers: specifier: ^3.47.0 version: 3.254.0 '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../eslint-config '@golevelup/ts-jest': specifier: ^0.4.0 @@ -2545,7 +2545,7 @@ importers: version: 2.8.3 devDependencies: '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../eslint-config '@types/node': specifier: ^18.0.0 @@ -2572,7 +2572,7 @@ importers: specifier: ^1.4.1 version: 1.4.1 '@comet/eslint-plugin': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../eslint-plugin '@next/eslint-plugin-next': specifier: ^14.0.0 @@ -2676,10 +2676,10 @@ importers: version: 6.0.1(react@18.2.0) devDependencies: '@comet/cli': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../cli '@comet/eslint-config': - specifier: workspace:^7.1.0 + specifier: workspace:^7.2.0 version: link:../../eslint-config '@gitbeaker/node': specifier: ^34.0.0