@atlaskit/editor-toolbar 0.9.4 → 0.10.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,16 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f4c0936dc05fe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f4c0936dc05fe) -
8
+ ED-29391 Add keyboard support for block menu
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 0.9.4
4
15
 
5
16
  ### Patch Changes
@@ -94,8 +94,7 @@ var ToolbarDropdownItem = exports.ToolbarDropdownItem = function ToolbarDropdown
94
94
  href: href,
95
95
  target: target,
96
96
  rel: rel
97
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
98
- // @ts-ignore: to unblock React 18.2.0 -> 18.3.1 version bump in Jira
97
+ // @ts-ignore -- This `CustomDropdownMenuItemButton` has type conflicts with the `DropdownItem` component in a way that cannot be reconciled (ignored as it fails types in Jira and should in Platform)
99
98
  ,
100
99
  component: href && (0, _expValEquals.expValEquals)('platform_editor_toolbar_migrate_loom', 'isEnabled', true) ? undefined : CustomDropdownMenuItemButton,
101
100
  testId: testId,
@@ -26,11 +26,13 @@ var ToolbarNestedDropdownMenu = exports.ToolbarNestedDropdownMenu = function Too
26
26
  children = _ref.children,
27
27
  isDisabled = _ref.isDisabled,
28
28
  testId = _ref.testId,
29
+ dropdownTestId = _ref.dropdownTestId,
29
30
  _ref$enableMaxHeight = _ref.enableMaxHeight,
30
31
  enableMaxHeight = _ref$enableMaxHeight === void 0 ? false : _ref$enableMaxHeight,
31
32
  _onClick = _ref.onClick;
32
33
  return /*#__PURE__*/React.createElement(_dropdownMenu.default, {
33
34
  placement: "right-start",
35
+ testId: dropdownTestId,
34
36
  trigger: function trigger(triggerProps) {
35
37
  return /*#__PURE__*/React.createElement(_ToolbarDropdownItem.ToolbarDropdownItem, {
36
38
  elemBefore: elemBefore,
@@ -82,8 +82,7 @@ export const ToolbarDropdownItem = ({
82
82
  href: href,
83
83
  target: target,
84
84
  rel: rel
85
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
86
- // @ts-ignore: to unblock React 18.2.0 -> 18.3.1 version bump in Jira
85
+ // @ts-ignore -- This `CustomDropdownMenuItemButton` has type conflicts with the `DropdownItem` component in a way that cannot be reconciled (ignored as it fails types in Jira and should in Platform)
87
86
  ,
88
87
  component: href && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true) ? undefined : CustomDropdownMenuItemButton,
89
88
  testId: testId,
@@ -17,11 +17,13 @@ export const ToolbarNestedDropdownMenu = ({
17
17
  children,
18
18
  isDisabled,
19
19
  testId,
20
+ dropdownTestId,
20
21
  enableMaxHeight = false,
21
22
  onClick
22
23
  }) => {
23
24
  return /*#__PURE__*/React.createElement(DropdownMenu, {
24
25
  placement: "right-start",
26
+ testId: dropdownTestId,
25
27
  trigger: triggerProps => /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
26
28
  elemBefore: elemBefore,
27
29
  elemAfter: elemAfter,
@@ -85,8 +85,7 @@ export var ToolbarDropdownItem = function ToolbarDropdownItem(_ref2) {
85
85
  href: href,
86
86
  target: target,
87
87
  rel: rel
88
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
89
- // @ts-ignore: to unblock React 18.2.0 -> 18.3.1 version bump in Jira
88
+ // @ts-ignore -- This `CustomDropdownMenuItemButton` has type conflicts with the `DropdownItem` component in a way that cannot be reconciled (ignored as it fails types in Jira and should in Platform)
90
89
  ,
91
90
  component: href && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true) ? undefined : CustomDropdownMenuItemButton,
92
91
  testId: testId,
@@ -17,11 +17,13 @@ export var ToolbarNestedDropdownMenu = function ToolbarNestedDropdownMenu(_ref)
17
17
  children = _ref.children,
18
18
  isDisabled = _ref.isDisabled,
19
19
  testId = _ref.testId,
20
+ dropdownTestId = _ref.dropdownTestId,
20
21
  _ref$enableMaxHeight = _ref.enableMaxHeight,
21
22
  enableMaxHeight = _ref$enableMaxHeight === void 0 ? false : _ref$enableMaxHeight,
22
23
  _onClick = _ref.onClick;
23
24
  return /*#__PURE__*/React.createElement(DropdownMenu, {
24
25
  placement: "right-start",
26
+ testId: dropdownTestId,
25
27
  trigger: function trigger(triggerProps) {
26
28
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
27
29
  elemBefore: elemBefore,
@@ -3,5 +3,5 @@ import type { ToolbarKeyboardNavigationProviderConfig } from '../types';
3
3
  type ToolbarKeyboardNavigationProviderProps = ToolbarKeyboardNavigationProviderConfig & {
4
4
  children: React.ReactNode;
5
5
  };
6
- export declare const ToolbarKeyboardNavigationProvider: ({ children, childComponentSelector, dom, isShortcutToFocusToolbar, handleFocus, handleEscape, ariaLabel, ariaControls }: ToolbarKeyboardNavigationProviderProps) => React.JSX.Element;
6
+ export declare const ToolbarKeyboardNavigationProvider: ({ children, childComponentSelector, dom, isShortcutToFocusToolbar, handleFocus, handleEscape, ariaLabel, ariaControls, }: ToolbarKeyboardNavigationProviderProps) => React.JSX.Element;
7
7
  export {};
@@ -5,6 +5,7 @@
5
5
  import { type ReactNode } from 'react';
6
6
  type ToolbarNestedDropdownMenuProps = {
7
7
  children?: ReactNode;
8
+ dropdownTestId?: string;
8
9
  elemAfter: ReactNode;
9
10
  elemBefore: ReactNode;
10
11
  /**
@@ -16,5 +17,5 @@ type ToolbarNestedDropdownMenuProps = {
16
17
  testId?: string;
17
18
  text?: string;
18
19
  };
19
- export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfter, children, isDisabled, testId, enableMaxHeight, onClick, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
20
+ export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfter, children, isDisabled, testId, dropdownTestId, enableMaxHeight, onClick, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
20
21
  export {};
@@ -3,5 +3,5 @@ import type { ToolbarKeyboardNavigationProviderConfig } from '../types';
3
3
  type ToolbarKeyboardNavigationProviderProps = ToolbarKeyboardNavigationProviderConfig & {
4
4
  children: React.ReactNode;
5
5
  };
6
- export declare const ToolbarKeyboardNavigationProvider: ({ children, childComponentSelector, dom, isShortcutToFocusToolbar, handleFocus, handleEscape, ariaLabel, ariaControls }: ToolbarKeyboardNavigationProviderProps) => React.JSX.Element;
6
+ export declare const ToolbarKeyboardNavigationProvider: ({ children, childComponentSelector, dom, isShortcutToFocusToolbar, handleFocus, handleEscape, ariaLabel, ariaControls, }: ToolbarKeyboardNavigationProviderProps) => React.JSX.Element;
7
7
  export {};
@@ -5,6 +5,7 @@
5
5
  import { type ReactNode } from 'react';
6
6
  type ToolbarNestedDropdownMenuProps = {
7
7
  children?: ReactNode;
8
+ dropdownTestId?: string;
8
9
  elemAfter: ReactNode;
9
10
  elemBefore: ReactNode;
10
11
  /**
@@ -16,5 +17,5 @@ type ToolbarNestedDropdownMenuProps = {
16
17
  testId?: string;
17
18
  text?: string;
18
19
  };
19
- export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfter, children, isDisabled, testId, enableMaxHeight, onClick, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
20
+ export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfter, children, isDisabled, testId, dropdownTestId, enableMaxHeight, onClick, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
20
21
  export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "0.9.4",
6
+ "version": "0.10.0",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "team": "Editor: Jenga",
@@ -25,14 +25,14 @@
25
25
  "@atlaskit/button": "^23.4.0",
26
26
  "@atlaskit/css": "^0.14.0",
27
27
  "@atlaskit/dropdown-menu": "^16.3.0",
28
- "@atlaskit/icon": "^28.2.0",
28
+ "@atlaskit/icon": "^28.3.0",
29
29
  "@atlaskit/icon-lab": "^5.7.0",
30
30
  "@atlaskit/logo": "^19.7.0",
31
31
  "@atlaskit/platform-feature-flags": "^1.1.0",
32
32
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
33
33
  "@atlaskit/popup": "^4.4.0",
34
34
  "@atlaskit/primitives": "^14.15.0",
35
- "@atlaskit/tmp-editor-statsig": "^12.28.0",
35
+ "@atlaskit/tmp-editor-statsig": "^12.32.0",
36
36
  "@atlaskit/tokens": "^6.3.0",
37
37
  "@atlaskit/tooltip": "^20.4.0",
38
38
  "@babel/runtime": "^7.0.0",