@atlaskit/dropdown-menu 12.26.4 → 13.0.0

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,31 @@
1
1
  # @atlaskit/dropdown-menu
2
2
 
3
+ ## 13.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
8
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
9
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
10
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
11
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
12
+ React 17 may come via non-major semver releases.
13
+
14
+ Please refer this community post for more details:
15
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
21
+ ## 12.26.5
22
+
23
+ ### Patch Changes
24
+
25
+ - [#115543](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115543)
26
+ [`9d96558cbd534`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9d96558cbd534) -
27
+ Updated types for DropdownMenu trigger props
28
+
3
29
  ## 12.26.4
4
30
 
5
31
  ### Patch Changes
@@ -28,6 +28,16 @@ export interface CustomTriggerProps<TriggerElement extends HTMLElement = any> ex
28
28
  * Event that is triggered when the element is clicked.
29
29
  */
30
30
  onClick?: (e: MouseEvent | KeyboardEvent) => void;
31
+ /**
32
+ * onFocus handler that should be applied to the trigger. Used to bind onKeyDown listener
33
+ * to the window object to track ArrowDown events.
34
+ */
35
+ onFocus?: () => void;
36
+ /**
37
+ * onBlur handler that should be applied to the trigger. Used to unbind onKeyDown listener
38
+ * from the window object.
39
+ */
40
+ onBlur?: () => void;
31
41
  /**
32
42
  * A `testId` prop is provided for specified elements, which is a unique
33
43
  * string that appears as a data attribute `data-testid` in the rendered code,
@@ -28,6 +28,16 @@ export interface CustomTriggerProps<TriggerElement extends HTMLElement = any> ex
28
28
  * Event that is triggered when the element is clicked.
29
29
  */
30
30
  onClick?: (e: MouseEvent | KeyboardEvent) => void;
31
+ /**
32
+ * onFocus handler that should be applied to the trigger. Used to bind onKeyDown listener
33
+ * to the window object to track ArrowDown events.
34
+ */
35
+ onFocus?: () => void;
36
+ /**
37
+ * onBlur handler that should be applied to the trigger. Used to unbind onKeyDown listener
38
+ * from the window object.
39
+ */
40
+ onBlur?: () => void;
31
41
  /**
32
42
  * A `testId` prop is provided for specified elements, which is a unique
33
43
  * string that appears as a data attribute `data-testid` in the rendered code,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "12.26.4",
3
+ "version": "13.0.0",
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/"
@@ -25,43 +25,43 @@
25
25
  "runReact18": true
26
26
  },
27
27
  "dependencies": {
28
- "@atlaskit/button": "^20.5.0",
28
+ "@atlaskit/button": "^21.0.0",
29
29
  "@atlaskit/codemod-utils": "^4.2.0",
30
- "@atlaskit/ds-lib": "^3.5.0",
31
- "@atlaskit/icon": "^23.9.0",
32
- "@atlaskit/layering": "^1.1.0",
33
- "@atlaskit/menu": "^2.14.0",
30
+ "@atlaskit/ds-lib": "^4.0.0",
31
+ "@atlaskit/icon": "^24.0.0",
32
+ "@atlaskit/layering": "^2.0.0",
33
+ "@atlaskit/menu": "^3.0.0",
34
34
  "@atlaskit/platform-feature-flags": "^1.1.0",
35
- "@atlaskit/popup": "^1.31.0",
36
- "@atlaskit/primitives": "^13.5.0",
37
- "@atlaskit/spinner": "^17.1.0",
38
- "@atlaskit/theme": "^16.0.0",
39
- "@atlaskit/tokens": "^3.3.0",
35
+ "@atlaskit/popup": "^2.0.0",
36
+ "@atlaskit/primitives": "^14.0.0",
37
+ "@atlaskit/spinner": "^18.0.0",
38
+ "@atlaskit/theme": "^17.0.0",
39
+ "@atlaskit/tokens": "^4.0.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "@emotion/react": "^11.7.1",
42
42
  "bind-event-listener": "^3.0.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
46
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
45
+ "react": "^18.2.0",
46
+ "react-dom": "^18.2.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@af/accessibility-testing": "*",
50
50
  "@af/integration-testing": "*",
51
51
  "@af/visual-regression": "*",
52
- "@atlaskit/app-provider": "^1.8.0",
53
- "@atlaskit/atlassian-navigation": "^4.11.0",
54
- "@atlaskit/avatar": "^21.18.0",
55
- "@atlaskit/checkbox": "^15.3.0",
52
+ "@atlaskit/app-provider": "^2.0.0",
53
+ "@atlaskit/atlassian-navigation": "^5.0.0",
54
+ "@atlaskit/avatar": "^22.0.0",
55
+ "@atlaskit/checkbox": "^16.0.0",
56
56
  "@atlaskit/docs": "*",
57
- "@atlaskit/form": "^11.1.0",
58
- "@atlaskit/heading": "^4.1.0",
57
+ "@atlaskit/form": "^12.0.0",
58
+ "@atlaskit/heading": "^5.0.0",
59
59
  "@atlaskit/link": "*",
60
- "@atlaskit/lozenge": "^11.13.0",
61
- "@atlaskit/modal-dialog": "^12.20.0",
60
+ "@atlaskit/lozenge": "^12.0.0",
61
+ "@atlaskit/modal-dialog": "^13.0.0",
62
62
  "@atlaskit/section-message": "*",
63
- "@atlaskit/textfield": "^6.8.0",
64
- "@atlaskit/toggle": "^14.1.0",
63
+ "@atlaskit/textfield": "^8.0.0",
64
+ "@atlaskit/toggle": "^15.0.0",
65
65
  "@atlaskit/visual-regression": "*",
66
66
  "@testing-library/react": "^13.4.0",
67
67
  "@testing-library/react-hooks": "^8.0.1",