@atlaskit/top-layer 4.4.0 → 4.4.1

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @atlaskit/top-layer
2
2
 
3
+ ## 4.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a7e63cfd84876`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a7e63cfd84876) -
8
+ [ux] When `platform-dst-top-layer` is enabled, Select menus now use the native Popover API to
9
+ handle Escape and light-dismiss before synchronizing `menuIsOpen` through `onMenuClose`. This
10
+ ensures Escape dismisses a nested Select menu without also dismissing its containing popup.
11
+
12
+ Existing public props keep their behavior. The top-layer `Popover` implementation gains an
13
+ internal `source` prop for imperative native popover invokers. The public runtime differences
14
+ behind the feature gate are:
15
+ - Select no longer calls `preventDefault()` or `stopPropagation()` for Escape on the top-layer
16
+ path, whether its menu is open or closed. Successive Escape presses can therefore dismiss the
17
+ Select menu and then its containing native popover.
18
+ - `onMenuClose` is called from the native popover close lifecycle rather than synchronously during
19
+ Select's Escape `keydown` handler.
20
+ - `shouldPreventEscapePropagation` no longer stops Escape propagation while a top-layer menu is
21
+ open; its legacy-path behavior is unchanged.
22
+ - Top-layer Escape invokes `onInputChange` with the `menu-close` action once, after native
23
+ dismissal, instead of the legacy path's two calls.
24
+ - Controlled Selects must continue updating `menuIsOpen` to `false` in response to `onMenuClose`.
25
+ - `PopupSelect` delegates Escape dismissal and focus restoration to its native popover. A consumer
26
+ `onKeyDown` handler can therefore prevent the native dismissal with `preventDefault()`;
27
+ previously, `PopupSelect` closed before forwarding the event.
28
+ - DatePicker's top-layer calendar now uses the Select menu portal's native popover instead of
29
+ creating a nested manual popover.
30
+ - The internal Popover forwarding API accepts a native `source` element so imperative Select
31
+ popovers retain their trigger relationship for light-dismiss behavior.
32
+
3
33
  ## 4.4.0
4
34
 
5
35
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/top-layer",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
4
4
  "description": "Low-level layering primitives based on popover and dialog",
5
5
  "homepage": "https://atlassian.design/components/top-layer",
6
6
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",