@atlaskit/editor-toolbar 2.8.6 → 2.8.7
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
|
+
## 2.8.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6728bb1f412c2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6728bb1f412c2) -
|
|
8
|
+
Remove the unused `platform_editor_toolbar_aifc` experiment registration and temporary-only
|
|
9
|
+
runtime branches, preserve toolbar treatments owned by `platform_editor_ai_aifc_streaming` or
|
|
10
|
+
`aifc_create_enabled`, retain the control experience when those checks are disabled, and correctly
|
|
11
|
+
hide decorative Rovo toolbar icons from assistive technology.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 2.8.6
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -17,9 +17,11 @@ var ROVO_SVG_PATH = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=
|
|
|
17
17
|
var RovoLogoSVG = function RovoLogoSVG(_ref) {
|
|
18
18
|
var label = _ref.label,
|
|
19
19
|
testId = _ref.testId;
|
|
20
|
+
var isDecorative = label === '';
|
|
20
21
|
return /*#__PURE__*/React.createElement("span", {
|
|
21
|
-
role:
|
|
22
|
-
"aria-label": label,
|
|
22
|
+
role: isDecorative ? undefined : 'img',
|
|
23
|
+
"aria-label": isDecorative ? undefined : label,
|
|
24
|
+
"aria-hidden": isDecorative ? true : undefined,
|
|
23
25
|
"data-testid": testId
|
|
24
26
|
// eslint-disable-next-line react/no-danger
|
|
25
27
|
,
|
|
@@ -16,17 +16,21 @@ const ROVO_SVG_PATH = `<svg width="12" height="12" viewBox="0 0 12 12" fill="non
|
|
|
16
16
|
const RovoLogoSVG = ({
|
|
17
17
|
label,
|
|
18
18
|
testId
|
|
19
|
-
}) =>
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
}) => {
|
|
20
|
+
const isDecorative = label === '';
|
|
21
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
22
|
+
role: isDecorative ? undefined : 'img',
|
|
23
|
+
"aria-label": isDecorative ? undefined : label,
|
|
24
|
+
"aria-hidden": isDecorative ? true : undefined,
|
|
25
|
+
"data-testid": testId
|
|
26
|
+
// eslint-disable-next-line react/no-danger
|
|
27
|
+
,
|
|
28
|
+
dangerouslySetInnerHTML: {
|
|
29
|
+
__html: ROVO_SVG_PATH
|
|
30
|
+
},
|
|
31
|
+
className: ax([styles.container])
|
|
32
|
+
});
|
|
33
|
+
};
|
|
30
34
|
export const AIChatIcon = ({
|
|
31
35
|
label,
|
|
32
36
|
testId
|
|
@@ -9,9 +9,11 @@ var ROVO_SVG_PATH = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=
|
|
|
9
9
|
var RovoLogoSVG = function RovoLogoSVG(_ref) {
|
|
10
10
|
var label = _ref.label,
|
|
11
11
|
testId = _ref.testId;
|
|
12
|
+
var isDecorative = label === '';
|
|
12
13
|
return /*#__PURE__*/React.createElement("span", {
|
|
13
|
-
role:
|
|
14
|
-
"aria-label": label,
|
|
14
|
+
role: isDecorative ? undefined : 'img',
|
|
15
|
+
"aria-label": isDecorative ? undefined : label,
|
|
16
|
+
"aria-hidden": isDecorative ? true : undefined,
|
|
15
17
|
"data-testid": testId
|
|
16
18
|
// eslint-disable-next-line react/no-danger
|
|
17
19
|
,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org/"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.8.
|
|
6
|
+
"version": "2.8.7",
|
|
7
7
|
"description": "Common UI for Toolbars across the platform",
|
|
8
8
|
"atlassian": {
|
|
9
9
|
"website": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/popup": "^6.3.0",
|
|
46
46
|
"@atlaskit/primitives": "^22.5.0",
|
|
47
47
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^214.0.0",
|
|
49
49
|
"@atlaskit/tokens": "^20.1.0",
|
|
50
50
|
"@atlaskit/tooltip": "^24.3.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|