@atlaskit/dropdown-menu 12.22.0 → 12.22.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/dropdown-menu
2
2
 
3
+ ## 12.22.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#161638](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/161638)
8
+ [`d2e5e5ce0053d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d2e5e5ce0053d) -
9
+ Use new API of layering without UNSAFE prefix
10
+
3
11
  ## 12.22.0
4
12
 
5
13
  ### Minor Changes
@@ -64,9 +64,8 @@ var FocusManager = function FocusManager(_ref) {
64
64
  },
65
65
  // Updating register ref on force reload will cause `useRegisterItemWithFocusManager` to re-register
66
66
  [refresh]);
67
- var _UNSAFE_useLayering = (0, _layering.UNSAFE_useLayering)(),
68
- isLayerDisabled = _UNSAFE_useLayering.isLayerDisabled;
69
-
67
+ var _useLayering = (0, _layering.useLayering)(),
68
+ isLayerDisabled = _useLayering.isLayerDisabled;
70
69
  // Intentionally rebinding on each render
71
70
  (0, _react.useEffect)(function () {
72
71
  if (registerMode.current === 'ordered') {
@@ -1,7 +1,7 @@
1
1
  import React, { createContext, useCallback, useEffect, useRef, useState } from 'react';
2
2
  import { bind } from 'bind-event-listener';
3
3
  import __noop from '@atlaskit/ds-lib/noop';
4
- import { UNSAFE_useLayering } from '@atlaskit/layering';
4
+ import { useLayering } from '@atlaskit/layering';
5
5
  import handleFocus from '../utils/handle-focus';
6
6
 
7
7
  /**
@@ -54,8 +54,7 @@ const FocusManager = ({
54
54
  [refresh]);
55
55
  const {
56
56
  isLayerDisabled
57
- } = UNSAFE_useLayering();
58
-
57
+ } = useLayering();
59
58
  // Intentionally rebinding on each render
60
59
  useEffect(() => {
61
60
  if (registerMode.current === 'ordered') {
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { createContext, useCallback, useEffect, useRef, useState } from 'react';
3
3
  import { bind } from 'bind-event-listener';
4
4
  import __noop from '@atlaskit/ds-lib/noop';
5
- import { UNSAFE_useLayering } from '@atlaskit/layering';
5
+ import { useLayering } from '@atlaskit/layering';
6
6
  import handleFocus from '../utils/handle-focus';
7
7
 
8
8
  /**
@@ -55,9 +55,8 @@ var FocusManager = function FocusManager(_ref) {
55
55
  },
56
56
  // Updating register ref on force reload will cause `useRegisterItemWithFocusManager` to re-register
57
57
  [refresh]);
58
- var _UNSAFE_useLayering = UNSAFE_useLayering(),
59
- isLayerDisabled = _UNSAFE_useLayering.isLayerDisabled;
60
-
58
+ var _useLayering = useLayering(),
59
+ isLayerDisabled = _useLayering.isLayerDisabled;
61
60
  // Intentionally rebinding on each render
62
61
  useEffect(function () {
63
62
  if (registerMode.current === 'ordered') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "12.22.0",
3
+ "version": "12.22.1",
4
4
  "description": "A dropdown menu displays a list of actions or options to a user.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,10 +31,10 @@
31
31
  "@atlaskit/menu": "^2.13.0",
32
32
  "@atlaskit/platform-feature-flags": "^0.3.0",
33
33
  "@atlaskit/popup": "^1.29.0",
34
- "@atlaskit/primitives": "^13.0.0",
34
+ "@atlaskit/primitives": "^13.1.0",
35
35
  "@atlaskit/spinner": "^16.3.0",
36
36
  "@atlaskit/theme": "^14.0.0",
37
- "@atlaskit/tokens": "^2.0.0",
37
+ "@atlaskit/tokens": "^2.2.0",
38
38
  "@babel/runtime": "^7.0.0",
39
39
  "@emotion/react": "^11.7.1",
40
40
  "bind-event-listener": "^3.0.0"