@atlaskit/editor-toolbar 2.6.42 → 2.6.44
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 +16 -0
- package/dist/cjs/ui/Toolbar.js +0 -5
- package/dist/cjs/ui/ToolbarTooltip.js +1 -2
- package/dist/es2019/ui/Toolbar.js +0 -5
- package/dist/es2019/ui/ToolbarTooltip.js +1 -2
- package/dist/esm/ui/Toolbar.js +0 -5
- package/dist/esm/ui/ToolbarTooltip.js +1 -2
- package/dist/types/ui/Toolbar.d.ts +2 -4
- package/package.json +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-toolbar
|
|
2
2
|
|
|
3
|
+
## 2.6.44
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6c7f03ca0f4ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6c7f03ca0f4ad) -
|
|
8
|
+
Clean up experiment `editor_a11y__toolbar-item-aria-described-by_fy27`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 2.6.43
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`9f67d7a39831c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f67d7a39831c) -
|
|
16
|
+
Clean up experiment `editor_a11y__primary-toolbar-aria-label_fy27`
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 2.6.42
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -68,22 +68,17 @@ var Toolbar = exports.Toolbar = function Toolbar(_ref) {
|
|
|
68
68
|
}
|
|
69
69
|
return /*#__PURE__*/_react.default.createElement(_ResponsiveContainer.ResponsiveWrapper, null, wrappedToolbar);
|
|
70
70
|
};
|
|
71
|
-
|
|
72
|
-
// remove { label?: string } when cleaning up editor_a11y__primary-toolbar-aria-label_fy27
|
|
73
|
-
|
|
74
71
|
/**
|
|
75
72
|
* A simple component representing a toolbar without box shadows - used to represent a primary toolbar
|
|
76
73
|
*/
|
|
77
74
|
var PrimaryToolbar = exports.PrimaryToolbar = function PrimaryToolbar(_ref2) {
|
|
78
75
|
var children = _ref2.children,
|
|
79
|
-
label = _ref2.label,
|
|
80
76
|
breakpointPreset = _ref2.breakpointPreset,
|
|
81
77
|
testId = _ref2.testId;
|
|
82
78
|
return /*#__PURE__*/_react.default.createElement(_ResponsiveContainer.ResponsiveContainer, {
|
|
83
79
|
breakpointPreset: breakpointPreset
|
|
84
80
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
85
81
|
xcss: (0, _css.cx)(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
|
|
86
|
-
"aria-label": label,
|
|
87
82
|
"data-toolbar-type": "primary",
|
|
88
83
|
testId: testId
|
|
89
84
|
}, children));
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.ToolbarTooltip = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
10
9
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
11
10
|
var ToolbarTooltip = exports.ToolbarTooltip = function ToolbarTooltip(_ref) {
|
|
12
11
|
var content = _ref.content,
|
|
@@ -23,6 +22,6 @@ var ToolbarTooltip = exports.ToolbarTooltip = function ToolbarTooltip(_ref) {
|
|
|
23
22
|
// the information in toolbar tooltips is already announced by aria-label and aria-keyshortcuts on the item
|
|
24
23
|
// so we need to disable screen reader announcement of tooltip to avoid duplicate announcements
|
|
25
24
|
,
|
|
26
|
-
isScreenReaderAnnouncementDisabled:
|
|
25
|
+
isScreenReaderAnnouncementDisabled: true
|
|
27
26
|
}, children);
|
|
28
27
|
};
|
|
@@ -65,15 +65,11 @@ export const Toolbar = ({
|
|
|
65
65
|
}
|
|
66
66
|
return /*#__PURE__*/React.createElement(ResponsiveWrapper, null, wrappedToolbar);
|
|
67
67
|
};
|
|
68
|
-
|
|
69
|
-
// remove { label?: string } when cleaning up editor_a11y__primary-toolbar-aria-label_fy27
|
|
70
|
-
|
|
71
68
|
/**
|
|
72
69
|
* A simple component representing a toolbar without box shadows - used to represent a primary toolbar
|
|
73
70
|
*/
|
|
74
71
|
export const PrimaryToolbar = ({
|
|
75
72
|
children,
|
|
76
|
-
label,
|
|
77
73
|
breakpointPreset,
|
|
78
74
|
testId
|
|
79
75
|
}) => {
|
|
@@ -81,7 +77,6 @@ export const PrimaryToolbar = ({
|
|
|
81
77
|
breakpointPreset: breakpointPreset
|
|
82
78
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
83
79
|
xcss: cx(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
|
|
84
|
-
"aria-label": label,
|
|
85
80
|
"data-toolbar-type": "primary",
|
|
86
81
|
testId: testId
|
|
87
82
|
}, children));
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
2
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
4
3
|
export const ToolbarTooltip = ({
|
|
5
4
|
content,
|
|
@@ -16,6 +15,6 @@ export const ToolbarTooltip = ({
|
|
|
16
15
|
// the information in toolbar tooltips is already announced by aria-label and aria-keyshortcuts on the item
|
|
17
16
|
// so we need to disable screen reader announcement of tooltip to avoid duplicate announcements
|
|
18
17
|
,
|
|
19
|
-
isScreenReaderAnnouncementDisabled:
|
|
18
|
+
isScreenReaderAnnouncementDisabled: true
|
|
20
19
|
}, children);
|
|
21
20
|
};
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -61,22 +61,17 @@ export var Toolbar = function Toolbar(_ref) {
|
|
|
61
61
|
}
|
|
62
62
|
return /*#__PURE__*/React.createElement(ResponsiveWrapper, null, wrappedToolbar);
|
|
63
63
|
};
|
|
64
|
-
|
|
65
|
-
// remove { label?: string } when cleaning up editor_a11y__primary-toolbar-aria-label_fy27
|
|
66
|
-
|
|
67
64
|
/**
|
|
68
65
|
* A simple component representing a toolbar without box shadows - used to represent a primary toolbar
|
|
69
66
|
*/
|
|
70
67
|
export var PrimaryToolbar = function PrimaryToolbar(_ref2) {
|
|
71
68
|
var children = _ref2.children,
|
|
72
|
-
label = _ref2.label,
|
|
73
69
|
breakpointPreset = _ref2.breakpointPreset,
|
|
74
70
|
testId = _ref2.testId;
|
|
75
71
|
return /*#__PURE__*/React.createElement(ResponsiveContainer, {
|
|
76
72
|
breakpointPreset: breakpointPreset
|
|
77
73
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
78
74
|
xcss: cx(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
|
|
79
|
-
"aria-label": label,
|
|
80
75
|
"data-toolbar-type": "primary",
|
|
81
76
|
testId: testId
|
|
82
77
|
}, children));
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
2
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
4
3
|
export var ToolbarTooltip = function ToolbarTooltip(_ref) {
|
|
5
4
|
var content = _ref.content,
|
|
@@ -16,6 +15,6 @@ export var ToolbarTooltip = function ToolbarTooltip(_ref) {
|
|
|
16
15
|
// the information in toolbar tooltips is already announced by aria-label and aria-keyshortcuts on the item
|
|
17
16
|
// so we need to disable screen reader announcement of tooltip to avoid duplicate announcements
|
|
18
17
|
,
|
|
19
|
-
isScreenReaderAnnouncementDisabled:
|
|
18
|
+
isScreenReaderAnnouncementDisabled: true
|
|
20
19
|
}, children);
|
|
21
20
|
};
|
|
@@ -18,11 +18,9 @@ type ToolbarProps = {
|
|
|
18
18
|
* @note: Responsiveness support replies on container query with container editor-area and media query
|
|
19
19
|
*/
|
|
20
20
|
export declare const Toolbar: ({ children, label, actionSubjectId, testId, }: ToolbarProps) => React.JSX.Element;
|
|
21
|
-
type PrimaryToolbarProps = Omit<ToolbarProps, 'label'> & ResponsiveContainerProps
|
|
22
|
-
label?: string;
|
|
23
|
-
};
|
|
21
|
+
type PrimaryToolbarProps = Omit<ToolbarProps, 'label'> & ResponsiveContainerProps;
|
|
24
22
|
/**
|
|
25
23
|
* A simple component representing a toolbar without box shadows - used to represent a primary toolbar
|
|
26
24
|
*/
|
|
27
|
-
export declare const PrimaryToolbar: ({ children,
|
|
25
|
+
export declare const PrimaryToolbar: ({ children, breakpointPreset, testId, }: PrimaryToolbarProps) => React.JSX.Element;
|
|
28
26
|
export {};
|
package/package.json
CHANGED
|
@@ -3,9 +3,14 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org/"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.6.
|
|
6
|
+
"version": "2.6.44",
|
|
7
7
|
"description": "Common UI for Toolbars across the platform",
|
|
8
8
|
"atlassian": {
|
|
9
|
+
"website": {
|
|
10
|
+
"tags": [
|
|
11
|
+
"platform-labs"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
9
14
|
"react-compiler": {
|
|
10
15
|
"enabled": true,
|
|
11
16
|
"gating": {
|
|
@@ -40,8 +45,8 @@
|
|
|
40
45
|
"@atlaskit/popup": "^6.3.0",
|
|
41
46
|
"@atlaskit/primitives": "^22.5.0",
|
|
42
47
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
43
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
44
|
-
"@atlaskit/tokens": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^199.0.0",
|
|
49
|
+
"@atlaskit/tokens": "^18.0.0",
|
|
45
50
|
"@atlaskit/tooltip": "^24.3.0",
|
|
46
51
|
"@babel/runtime": "^7.0.0",
|
|
47
52
|
"@compiled/react": "^1.0.2",
|