@checkstack/command-frontend 0.2.31 → 0.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/package.json +5 -5
- package/src/components/SearchDialog.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @checkstack/command-frontend
|
|
2
2
|
|
|
3
|
+
## 0.2.33
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 32d52c6: Fix several modal/sheet/overlay closing issues:
|
|
8
|
+
|
|
9
|
+
- Replace the custom `DropdownMenu` container with a Radix-based `Popover` (desktop) and `Sheet` (mobile). The previous mobile implementation suppressed outside-click closing, leaving the notification bell's panel only closable by clicking the bell again. `UserMenu` and `NotificationBell` were updated to the new pattern. Leaf primitives `DropdownMenuItem`, `DropdownMenuLabel`, and `DropdownMenuSeparator` are preserved (now backed by a `MenuCloseContext`) so existing call sites continue to work.
|
|
10
|
+
- Fix `Dialog` outside-click closing. The previous structure made `DialogPrimitive.Content` cover the full viewport, so Radix never registered clicks on the dimmed area as "outside" — only ESC could close the modal. The centering wrapper is now a non-Content `<div>` and the actual modal box is the Content, so outside-click closes correctly. A visible X button is now rendered by default; pass `hideCloseButton` to suppress it (e.g. for the search overlay where it would clash with a custom header).
|
|
11
|
+
- Export a standalone `useIsMobile` hook and a new `Popover` primitive.
|
|
12
|
+
- Prevent Radix's auto-focus-return on `NotificationBell` and `UserMenu` overlays. Closing via an item with a `<Link>` (e.g. "View all notifications") would synchronously refocus the trigger via `onCloseAutoFocus`, stealing focus from the link mid-click on pages where another element held focus and requiring a second click to navigate.
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [32d52c6]
|
|
15
|
+
- Updated dependencies [32d52c6]
|
|
16
|
+
- @checkstack/frontend-api@0.4.1
|
|
17
|
+
- @checkstack/ui@1.7.0
|
|
18
|
+
|
|
19
|
+
## 0.2.32
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [208ad71]
|
|
24
|
+
- @checkstack/frontend-api@0.4.0
|
|
25
|
+
- @checkstack/ui@1.6.1
|
|
26
|
+
|
|
3
27
|
## 0.2.31
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/command-frontend",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@checkstack/command-common": "0.2.
|
|
12
|
-
"@checkstack/common": "0.
|
|
13
|
-
"@checkstack/frontend-api": "0.
|
|
14
|
-
"@checkstack/ui": "1.
|
|
11
|
+
"@checkstack/command-common": "0.2.9",
|
|
12
|
+
"@checkstack/common": "0.7.0",
|
|
13
|
+
"@checkstack/frontend-api": "0.4.0",
|
|
14
|
+
"@checkstack/ui": "1.6.1",
|
|
15
15
|
"lucide-react": "^0.468.0",
|
|
16
16
|
"react": "^18.2.0",
|
|
17
17
|
"react-router-dom": "^7.1.1"
|
|
@@ -168,6 +168,7 @@ export const SearchDialog: React.FC<SearchDialogProps> = ({
|
|
|
168
168
|
<DialogContent
|
|
169
169
|
size="lg"
|
|
170
170
|
className="p-0 gap-0 overflow-hidden"
|
|
171
|
+
hideCloseButton
|
|
171
172
|
onKeyDown={handleKeyDown}
|
|
172
173
|
>
|
|
173
174
|
{/* Visually hidden but accessible title and description */}
|