@atlaskit/editor-toolbar 2.8.6 → 2.8.8

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,24 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 2.8.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`064f989853cf0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/064f989853cf0) -
8
+ Clean up experiment `platform_editor_default_toolbar_state`
9
+ - Updated dependencies
10
+
11
+ ## 2.8.7
12
+
13
+ ### Patch Changes
14
+
15
+ - [`6728bb1f412c2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6728bb1f412c2) -
16
+ Remove the unused `platform_editor_toolbar_aifc` experiment registration and temporary-only
17
+ runtime branches, preserve toolbar treatments owned by `platform_editor_ai_aifc_streaming` or
18
+ `aifc_create_enabled`, retain the control experience when those checks are disabled, and correctly
19
+ hide decorative Rovo toolbar icons from assistive technology.
20
+ - Updated dependencies
21
+
3
22
  ## 2.8.6
4
23
 
5
24
  ### 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: "img",
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
- }) => /*#__PURE__*/React.createElement("span", {
20
- role: "img",
21
- "aria-label": label,
22
- "data-testid": testId
23
- // eslint-disable-next-line react/no-danger
24
- ,
25
- dangerouslySetInnerHTML: {
26
- __html: ROVO_SVG_PATH
27
- },
28
- className: ax([styles.container])
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: "img",
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
  ,
@@ -11,7 +11,7 @@ type FireAnalyticsEvent = (payload: AnalyticsEventPayload) => void | undefined;
11
11
  export type ToolbarUIContextType = {
12
12
  /**
13
13
  * True only when the toolbar is disabled from isDisabled.
14
- * Excludes disabling under platform_editor_default_toolbar_state, where buttons are
14
+ * Excludes disabling that comes from interaction state, where buttons are
15
15
  * disabled by default until the user interacts with the editor.
16
16
  */
17
17
  disabledWithoutInteractionLogic?: boolean;
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",
6
+ "version": "2.8.8",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "website": {
@@ -36,16 +36,16 @@
36
36
  "@atlaskit/badge": "^22.0.0",
37
37
  "@atlaskit/browser-apis": "^1.2.0",
38
38
  "@atlaskit/css": "^1.1.0",
39
- "@atlaskit/dropdown-menu": "^18.3.0",
39
+ "@atlaskit/dropdown-menu": "^19.0.0",
40
40
  "@atlaskit/icon": "^38.0.0",
41
41
  "@atlaskit/icon-lab": "^7.11.0",
42
42
  "@atlaskit/menu": "^11.0.0",
43
43
  "@atlaskit/platform-feature-experiments": "^0.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^2.2.0",
45
- "@atlaskit/popup": "^6.3.0",
45
+ "@atlaskit/popup": "^7.0.0",
46
46
  "@atlaskit/primitives": "^22.5.0",
47
47
  "@atlaskit/react-compiler-gating": "^0.2.0",
48
- "@atlaskit/tmp-editor-statsig": "^213.0.0",
48
+ "@atlaskit/tmp-editor-statsig": "^215.0.0",
49
49
  "@atlaskit/tokens": "^20.1.0",
50
50
  "@atlaskit/tooltip": "^24.3.0",
51
51
  "@babel/runtime": "^7.0.0",