@atlaskit/top-layer 4.3.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 +50 -0
  2. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
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
+
33
+ ## 4.4.0
34
+
35
+ ### Minor Changes
36
+
37
+ - [`d82e6f76528ab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d82e6f76528ab) -
38
+ Add direct subpath package exports as part of the linking-platform, search, media, and
39
+ design-system barrel-removal (de-barrel) migration.
40
+
41
+ These packages now expose their individual modules via explicit `package.json` `exports` subpaths
42
+ so that consumers can import directly from the leaf module (e.g. `@atlaskit/pkg/thing`) instead of
43
+ the package barrel/index. This adds new public entry points without changing or removing any
44
+ existing exports, so it is a backwards-compatible additive change.
45
+
46
+ No runtime behaviour changes; this is an API-surface (entry-point) addition to support
47
+ tree-shaking and to unblock removal of the barrel index files.
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies
52
+
3
53
  ## 4.3.0
4
54
 
5
55
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/top-layer",
3
- "version": "4.3.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",
@@ -38,9 +38,9 @@
38
38
  "@atlaskit/browser-apis": "^1.2.0",
39
39
  "@atlaskit/css": "^1.0.0",
40
40
  "@atlaskit/ds-lib": "^8.0.0",
41
- "@atlaskit/layering": "^5.0.0",
41
+ "@atlaskit/layering": "^5.1.0",
42
42
  "@atlaskit/react-compiler-gating": "^0.2.0",
43
- "@atlaskit/tokens": "^16.7.0",
43
+ "@atlaskit/tokens": "^16.8.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@compiled/react": "^1.0.2",
46
46
  "bind-event-listener": "^3.0.0",
@@ -53,12 +53,12 @@
53
53
  "devDependencies": {
54
54
  "@af/integration-testing": "workspace:^",
55
55
  "@af/visual-regression": "workspace:^",
56
- "@atlaskit/button": "^25.1.0",
57
- "@atlaskit/heading": "^7.0.0",
58
- "@atlaskit/lozenge": "^15.2.0",
59
- "@atlaskit/primitives": "^22.3.0",
56
+ "@atlaskit/button": "^25.2.0",
57
+ "@atlaskit/heading": "^7.1.0",
58
+ "@atlaskit/lozenge": "^15.3.0",
59
+ "@atlaskit/primitives": "^22.4.0",
60
60
  "@atlaskit/ssr": "workspace:^",
61
- "@atlaskit/textfield": "^10.0.0",
61
+ "@atlaskit/textfield": "^10.1.0",
62
62
  "@atlassian/ssr-tests": "workspace:^",
63
63
  "@atlassian/testing-library": "^0.11.0",
64
64
  "@testing-library/jest-dom": "^6.4.5",