@atlaskit/editor-toolbar 0.9.4 → 0.10.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 +17 -0
- package/dist/cjs/ui/ToolbarDropdownItem.js +1 -2
- package/dist/cjs/ui/ToolbarNestedDropdownMenu.js +2 -0
- package/dist/es2019/ui/ToolbarDropdownItem.js +1 -2
- package/dist/es2019/ui/ToolbarNestedDropdownMenu.js +2 -0
- package/dist/esm/ui/ToolbarDropdownItem.js +1 -2
- package/dist/esm/ui/ToolbarNestedDropdownMenu.js +2 -0
- package/dist/types/ui/ToolbarKeyboardNavigationProvider.d.ts +1 -1
- package/dist/types/ui/ToolbarNestedDropdownMenu.d.ts +2 -1
- package/dist/types-ts4.5/ui/ToolbarKeyboardNavigationProvider.d.ts +1 -1
- package/dist/types-ts4.5/ui/ToolbarNestedDropdownMenu.d.ts +2 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-toolbar
|
|
2
2
|
|
|
3
|
+
## 0.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`f4c0936dc05fe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f4c0936dc05fe) -
|
|
14
|
+
ED-29391 Add keyboard support for block menu
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 0.9.4
|
|
4
21
|
|
|
5
22
|
### 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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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.
|
|
6
|
+
"version": "0.10.1",
|
|
7
7
|
"description": "Common UI for Toolbars across the platform",
|
|
8
8
|
"atlassian": {
|
|
9
9
|
"team": "Editor: Jenga",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/badge": "^18.
|
|
24
|
+
"@atlaskit/badge": "^18.2.0",
|
|
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.
|
|
29
|
-
"@atlaskit/icon-lab": "^5.
|
|
30
|
-
"@atlaskit/logo": "^19.
|
|
28
|
+
"@atlaskit/icon": "^28.3.0",
|
|
29
|
+
"@atlaskit/icon-lab": "^5.8.0",
|
|
30
|
+
"@atlaskit/logo": "^19.8.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": "^
|
|
36
|
-
"@atlaskit/tokens": "^6.
|
|
37
|
-
"@atlaskit/tooltip": "^20.
|
|
35
|
+
"@atlaskit/tmp-editor-statsig": "^13.0.0",
|
|
36
|
+
"@atlaskit/tokens": "^6.4.0",
|
|
37
|
+
"@atlaskit/tooltip": "^20.5.0",
|
|
38
38
|
"@babel/runtime": "^7.0.0",
|
|
39
39
|
"@compiled/react": "^0.18.3",
|
|
40
40
|
"chromatism": "^2.6.0"
|