From 0cd8debcb97463d505e68a404b12435d26c51f48 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 2 Oct 2025 15:10:49 +0000 Subject: [PATCH] chore: release --- .changeset/clean-cameras-hunt.md | 38 ----------------------------- CHANGELOG.md | 41 ++++++++++++++++++++++++++++++++ package.json | 2 +- 3 files changed, 42 insertions(+), 39 deletions(-) delete mode 100644 .changeset/clean-cameras-hunt.md diff --git a/.changeset/clean-cameras-hunt.md b/.changeset/clean-cameras-hunt.md deleted file mode 100644 index e796094ed..000000000 --- a/.changeset/clean-cameras-hunt.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -"@cube-dev/ui-kit": minor ---- - -**Breaking Change:** AlertDialog API cancel button behavior changed - -The `cancel` button in AlertDialog now rejects the promise instead of resolving with `'cancel'` status, aligning it with the dismiss (Escape key) behavior. - -**Migration Guide:** - -**Before:** -```typescript -alertDialogAPI.open({...}) - .then((status) => { - if (status === 'cancel') { - // Handle cancel - } else if (status === 'confirm') { - // Handle confirm - } - }) -``` - -**After:** -```typescript -alertDialogAPI.open({...}) - .then((status) => { - if (status === 'confirm') { - // Handle confirm - } else if (status === 'secondary') { - // Handle secondary action - } - }) - .catch(() => { - // Handle cancel or dismiss - }) -``` - -**Note:** `AlertDialogResolveStatus` type no longer includes `'cancel'` - it now only contains `'confirm' | 'secondary'`. diff --git a/CHANGELOG.md b/CHANGELOG.md index f41e174bd..84370d6a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,46 @@ # @cube-dev/ui-kit +## 0.79.0 + +### Minor Changes + +- [#807](https://github.com/cube-js/cube-ui-kit/pull/807) [`ce19c264`](https://github.com/cube-js/cube-ui-kit/commit/ce19c26496fbb87799fc7fb055d1647a4f87c392) Thanks [@tenphi](https://github.com/tenphi)! - **Breaking Change:** AlertDialog API cancel button behavior changed + + The `cancel` button in AlertDialog now rejects the promise instead of resolving with `'cancel'` status, aligning it with the dismiss (Escape key) behavior. + + **Migration Guide:** + + **Before:** + + ```typescript + alertDialogAPI.open({...}) + .then((status) => { + if (status === 'cancel') { + // Handle cancel + } else if (status === 'confirm') { + // Handle confirm + } + }) + ``` + + **After:** + + ```typescript + alertDialogAPI.open({...}) + .then((status) => { + if (status === 'confirm') { + // Handle confirm + } else if (status === 'secondary') { + // Handle secondary action + } + }) + .catch(() => { + // Handle cancel or dismiss + }) + ``` + + **Note:** `AlertDialogResolveStatus` type no longer includes `'cancel'` - it now only contains `'confirm' | 'secondary'`. + ## 0.78.5 ### Patch Changes diff --git a/package.json b/package.json index 834d97cd6..c144dd073 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cube-dev/ui-kit", - "version": "0.78.5", + "version": "0.79.0", "type": "module", "description": "UIKit for Cube Projects", "repository": {