Skip to content

Commit 6797bdf

Browse files
Version Packages (#808)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent ce19c26 commit 6797bdf

File tree

3 files changed

+42
-39
lines changed

3 files changed

+42
-39
lines changed

.changeset/clean-cameras-hunt.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
# @cube-dev/ui-kit
22

3+
## 0.79.0
4+
5+
### Minor Changes
6+
7+
- [#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
8+
9+
The `cancel` button in AlertDialog now rejects the promise instead of resolving with `'cancel'` status, aligning it with the dismiss (Escape key) behavior.
10+
11+
**Migration Guide:**
12+
13+
**Before:**
14+
15+
```typescript
16+
alertDialogAPI.open({...})
17+
.then((status) => {
18+
if (status === 'cancel') {
19+
// Handle cancel
20+
} else if (status === 'confirm') {
21+
// Handle confirm
22+
}
23+
})
24+
```
25+
26+
**After:**
27+
28+
```typescript
29+
alertDialogAPI.open({...})
30+
.then((status) => {
31+
if (status === 'confirm') {
32+
// Handle confirm
33+
} else if (status === 'secondary') {
34+
// Handle secondary action
35+
}
36+
})
37+
.catch(() => {
38+
// Handle cancel or dismiss
39+
})
40+
```
41+
42+
**Note:** `AlertDialogResolveStatus` type no longer includes `'cancel'` - it now only contains `'confirm' | 'secondary'`.
43+
344
## 0.78.5
445

546
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cube-dev/ui-kit",
3-
"version": "0.78.5",
3+
"version": "0.79.0",
44
"type": "module",
55
"description": "UIKit for Cube Projects",
66
"repository": {

0 commit comments

Comments
 (0)