@atlaskit/top-layer 4.4.0 → 4.4.2

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 +36 -0
  2. package/package.json +1 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @atlaskit/top-layer
2
2
 
3
+ ## 4.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Use `@atlassian/testing-library` exclusively in unit tests.
8
+
9
+ ## 4.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`a7e63cfd84876`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a7e63cfd84876) -
14
+ [ux] When `platform-dst-top-layer` is enabled, Select menus now use the native Popover API to
15
+ handle Escape and light-dismiss before synchronizing `menuIsOpen` through `onMenuClose`. This
16
+ ensures Escape dismisses a nested Select menu without also dismissing its containing popup.
17
+
18
+ Existing public props keep their behavior. The top-layer `Popover` implementation gains an
19
+ internal `source` prop for imperative native popover invokers. The public runtime differences
20
+ behind the feature gate are:
21
+ - Select no longer calls `preventDefault()` or `stopPropagation()` for Escape on the top-layer
22
+ path, whether its menu is open or closed. Successive Escape presses can therefore dismiss the
23
+ Select menu and then its containing native popover.
24
+ - `onMenuClose` is called from the native popover close lifecycle rather than synchronously during
25
+ Select's Escape `keydown` handler.
26
+ - `shouldPreventEscapePropagation` no longer stops Escape propagation while a top-layer menu is
27
+ open; its legacy-path behavior is unchanged.
28
+ - Top-layer Escape invokes `onInputChange` with the `menu-close` action once, after native
29
+ dismissal, instead of the legacy path's two calls.
30
+ - Controlled Selects must continue updating `menuIsOpen` to `false` in response to `onMenuClose`.
31
+ - `PopupSelect` delegates Escape dismissal and focus restoration to its native popover. A consumer
32
+ `onKeyDown` handler can therefore prevent the native dismissal with `preventDefault()`;
33
+ previously, `PopupSelect` closed before forwarding the event.
34
+ - DatePicker's top-layer calendar now uses the Select menu portal's native popover instead of
35
+ creating a nested manual popover.
36
+ - The internal Popover forwarding API accepts a native `source` element so imperative Select
37
+ popovers retain their trigger relationship for light-dismiss behavior.
38
+
3
39
  ## 4.4.0
4
40
 
5
41
  ### 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.2",
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",
@@ -62,7 +62,6 @@
62
62
  "@atlassian/ssr-tests": "workspace:^",
63
63
  "@atlassian/testing-library": "^0.11.0",
64
64
  "@testing-library/jest-dom": "^6.4.5",
65
- "@testing-library/react": "^16.3.0",
66
65
  "@types/raf-schd": "^4.0.1",
67
66
  "react": "^19.0.0",
68
67
  "react-dom": "^19.0.0",