@atlaskit/dropdown-menu 12.26.3 → 12.26.5

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,19 @@
1
1
  # @atlaskit/dropdown-menu
2
2
 
3
+ ## 12.26.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#115543](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115543)
8
+ [`9d96558cbd534`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9d96558cbd534) -
9
+ Updated types for DropdownMenu trigger props
10
+
11
+ ## 12.26.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 12.26.3
4
18
 
5
19
  ### 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.3",
3
+ "version": "12.26.5",
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,11 +31,11 @@
31
31
  "@atlaskit/icon": "^23.9.0",
32
32
  "@atlaskit/layering": "^1.1.0",
33
33
  "@atlaskit/menu": "^2.14.0",
34
- "@atlaskit/platform-feature-flags": "^1.0.0",
34
+ "@atlaskit/platform-feature-flags": "^1.1.0",
35
35
  "@atlaskit/popup": "^1.31.0",
36
36
  "@atlaskit/primitives": "^13.5.0",
37
37
  "@atlaskit/spinner": "^17.1.0",
38
- "@atlaskit/theme": "^15.0.0",
38
+ "@atlaskit/theme": "^16.0.0",
39
39
  "@atlaskit/tokens": "^3.3.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "@emotion/react": "^11.7.1",
@@ -60,7 +60,7 @@
60
60
  "@atlaskit/lozenge": "^11.13.0",
61
61
  "@atlaskit/modal-dialog": "^12.20.0",
62
62
  "@atlaskit/section-message": "*",
63
- "@atlaskit/textfield": "^6.8.0",
63
+ "@atlaskit/textfield": "^7.0.0",
64
64
  "@atlaskit/toggle": "^14.1.0",
65
65
  "@atlaskit/visual-regression": "*",
66
66
  "@testing-library/react": "^13.4.0",