@atlaskit/dropdown-menu 16.3.14 → 16.3.16

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,18 @@
1
1
  # @atlaskit/dropdown-menu
2
2
 
3
+ ## 16.3.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1ef4259cba0f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1ef4259cba0f0) -
8
+ Fixing typescript issues
9
+
10
+ ## 16.3.15
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 16.3.14
4
17
 
5
18
  ### Patch Changes
@@ -678,7 +691,6 @@
678
691
 
679
692
  **Usage:** The `strategy` prop can be set to either `'absolute'` or `'fixed'`, with the default
680
693
  being `'fixed'`.
681
-
682
694
  - **`'fixed'`:** Positions the dropdown relative to the browser's viewport. This ensures that the
683
695
  dropdown remains in the same position regardless of page scrolling, making it ideal for
684
696
  dropdowns that need to maintain a consistent position on the screen.
@@ -705,7 +717,6 @@
705
717
  ```
706
718
 
707
719
  **Important Considerations:**
708
-
709
720
  - When using the `shouldFitContainer` prop, the `strategy` cannot be set to `'fixed'`. In such
710
721
  cases, the dropdown defaults to the `'absolute'` strategy to ensure proper rendering within the
711
722
  container.
@@ -1912,7 +1923,6 @@
1912
1923
  documentation for more details on the codemod CLI.
1913
1924
 
1914
1925
  ## Behaviour changes
1915
-
1916
1926
  - _Portaling_ – The dropdown menu is now rendered in a React Portal and is appended at the bottom
1917
1927
  of the `<body>`. In most cases, this shouldn't make much of a difference. But if you have any
1918
1928
  tests that assert on DOM/React tree like snapshot tests, those will need to be updated.
@@ -1929,7 +1939,6 @@
1929
1939
  override the default behaviour by setting shouldTitleWrap and shouldDescriptionWrap to false.
1930
1940
 
1931
1941
  ## Visual changes
1932
-
1933
1942
  - _Menu item padding_ – Dropdown menu items have 16px more padding horizontally.
1934
1943
  - _Removed elemAfter in group title_ – Icon after the group title has been removed.
1935
1944
 
@@ -1938,7 +1947,6 @@
1938
1947
  Dropdown menu items no longer `@atlaskit/item` as the underlying component, they use
1939
1948
  `@atlaskit/menu` instead. This mean that some of the props that used to be spread over an Item are
1940
1949
  no longer supported. In addition to that, the following API changes have been made:
1941
-
1942
1950
  - `shouldFitContainer` – Deprecated. This prop has been deprecated and the codemod will remove it.
1943
1951
  - `shouldAllowMultiline` – This prop has been split up into two: shouldTitleWrap and
1944
1952
  shouldDescriptionWrap. The codemod replaces its occurance with the two new ones.
@@ -1970,7 +1978,6 @@
1970
1978
  directly applied to the first menu item.
1971
1979
 
1972
1980
  ## Entrypoint changes
1973
-
1974
1981
  - `DropdownMenuStateless` – DropdownMenuStateless has been deprecated. The default export
1975
1982
  DropdownMenu handles both stateless and stateful logic. The API for DropdownMenuStateless has
1976
1983
  been retained and works as expected with DropdownMenu.The codemod converts the named import into
@@ -2324,7 +2331,6 @@
2324
2331
 
2325
2332
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
2326
2333
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
2327
-
2328
2334
  - @atlaskit/docs@8.3.2
2329
2335
  - @atlaskit/analytics-next@6.3.5
2330
2336
  - @atlaskit/avatar@17.1.7
@@ -2569,13 +2575,11 @@
2569
2575
  ## 8.0.1
2570
2576
 
2571
2577
  - [patch][ee788e6434](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ee788e6434):
2572
-
2573
2578
  - Fix analytics for the toggle dropdownMenu event
2574
2579
 
2575
2580
  ## 8.0.0
2576
2581
 
2577
2582
  - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
2578
-
2579
2583
  - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
2580
2584
  this package, please ensure you use at least this version of react and react-dom.
2581
2585
 
@@ -2602,7 +2606,6 @@
2602
2606
  ## 7.0.5
2603
2607
 
2604
2608
  - [patch][6fd20256f3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6fd20256f3):
2605
-
2606
2609
  - Add positionFixed property to Popper
2607
2610
 
2608
2611
  ## 7.0.4
@@ -2631,7 +2634,6 @@
2631
2634
  ## 7.0.2
2632
2635
 
2633
2636
  - [patch][dc114c4ce6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dc114c4ce6):
2634
-
2635
2637
  - Internal changes only. DropdownMenu is now compatible with SSR.
2636
2638
 
2637
2639
  ## 7.0.1
@@ -2650,7 +2652,6 @@
2650
2652
  ## 7.0.0
2651
2653
 
2652
2654
  - [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
2653
-
2654
2655
  - Drop ES5 from all the flow modules
2655
2656
 
2656
2657
  ### Dropping CJS support in all @atlaskit packages
@@ -2757,13 +2758,11 @@
2757
2758
  ## 6.1.21
2758
2759
 
2759
2760
  - [patch][1fb2c2a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1fb2c2a):
2760
-
2761
2761
  - Fixed issue where tooltips and modals would initially render in the wrong location
2762
2762
 
2763
2763
  ## 6.1.20
2764
2764
 
2765
2765
  - [patch][fe943bb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/fe943bb" d):
2766
-
2767
2766
  - Make sure we check userAgent only if we have a DOM
2768
2767
 
2769
2768
  ## 6.1.19
@@ -30,6 +30,7 @@ var getNextFocusableElement = function getNextFocusableElement(refs, currentFocu
30
30
  return element;
31
31
  }
32
32
  }
33
+ return;
33
34
  };
34
35
 
35
36
  /**
@@ -51,6 +52,7 @@ var getPrevFocusableElement = function getPrevFocusableElement(refs, currentFocu
51
52
  return element;
52
53
  }
53
54
  }
55
+ return;
54
56
  };
55
57
  function handleFocus(refs, isLayerDisabled, onClose) {
56
58
  return function (e) {
@@ -29,6 +29,7 @@ const getNextFocusableElement = (refs, currentFocusedIdx) => {
29
29
  return element;
30
30
  }
31
31
  }
32
+ return;
32
33
  };
33
34
 
34
35
  /**
@@ -52,6 +53,7 @@ const getPrevFocusableElement = (refs, currentFocusedIdx) => {
52
53
  return element;
53
54
  }
54
55
  }
56
+ return;
55
57
  };
56
58
  export default function handleFocus(refs, isLayerDisabled, onClose) {
57
59
  return e => {
@@ -23,6 +23,7 @@ var getNextFocusableElement = function getNextFocusableElement(refs, currentFocu
23
23
  return element;
24
24
  }
25
25
  }
26
+ return;
26
27
  };
27
28
 
28
29
  /**
@@ -44,6 +45,7 @@ var getPrevFocusableElement = function getPrevFocusableElement(refs, currentFocu
44
45
  return element;
45
46
  }
46
47
  }
48
+ return;
47
49
  };
48
50
  export default function handleFocus(refs, isLayerDisabled, onClose) {
49
51
  return function (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "16.3.14",
3
+ "version": "16.3.16",
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/"
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/primitives": "^15.0.0",
36
36
  "@atlaskit/spinner": "^19.0.0",
37
37
  "@atlaskit/theme": "^21.0.0",
38
- "@atlaskit/tokens": "^6.5.0",
38
+ "@atlaskit/tokens": "^7.0.0",
39
39
  "@atlaskit/visually-hidden": "^3.0.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "bind-event-listener": "^3.0.0"
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/atlassian-navigation": "^5.3.0",
53
53
  "@atlaskit/avatar": "^25.4.0",
54
54
  "@atlaskit/checkbox": "^17.1.0",
55
- "@atlaskit/docs": "^11.1.0",
55
+ "@atlaskit/docs": "^11.2.0",
56
56
  "@atlaskit/form": "^14.2.0",
57
57
  "@atlaskit/heading": "^5.2.0",
58
58
  "@atlaskit/link": "^3.2.0",