@atlaskit/editor-plugin-toolbar 9.0.26 → 9.0.28

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,19 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 9.0.28
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.0.27
10
+
11
+ ### Patch Changes
12
+
13
+ - [`862702aa18c98`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/862702aa18c98) -
14
+ Remove redundant primary toolbar aria-label
15
+ - Updated dependencies
16
+
3
17
  ## 9.0.26
4
18
 
5
19
  ### Patch Changes
@@ -8,6 +8,7 @@ exports.PrimaryToolbar = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _toolbar = require("@atlaskit/editor-common/toolbar");
10
10
  var _editorToolbar = require("@atlaskit/editor-toolbar");
11
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
11
12
  var isFullPage = function isFullPage(editorAppearance) {
12
13
  return editorAppearance === 'full-page' || editorAppearance === 'full-width';
13
14
  };
@@ -23,7 +24,8 @@ var PrimaryToolbar = exports.PrimaryToolbar = function PrimaryToolbar(_ref) {
23
24
  var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
24
25
  editorAppearance = _useEditorToolbar.editorAppearance;
25
26
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.PrimaryToolbar, {
26
- label: "Primary Toolbar",
27
+ testId: (0, _expValEquals.expValEquals)('editor_a11y__primary-toolbar-aria-label_fy27', 'isEnabled', true) ? 'editor-primary-toolbar' : undefined,
28
+ label: (0, _expValEquals.expValEquals)('editor_a11y__primary-toolbar-aria-label_fy27', 'isEnabled', true) ? undefined : 'Primary Toolbar',
27
29
  breakpointPreset: getBreakpointPreset(breakpointPreset, editorAppearance)
28
30
  }, children);
29
31
  };
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
3
  import { PrimaryToolbar as PrimaryToolbarBase } from '@atlaskit/editor-toolbar';
4
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
5
  const isFullPage = editorAppearance => {
5
6
  return editorAppearance === 'full-page' || editorAppearance === 'full-width';
6
7
  };
@@ -18,7 +19,8 @@ export const PrimaryToolbar = ({
18
19
  editorAppearance
19
20
  } = useEditorToolbar();
20
21
  return /*#__PURE__*/React.createElement(PrimaryToolbarBase, {
21
- label: "Primary Toolbar",
22
+ testId: expValEquals('editor_a11y__primary-toolbar-aria-label_fy27', 'isEnabled', true) ? 'editor-primary-toolbar' : undefined,
23
+ label: expValEquals('editor_a11y__primary-toolbar-aria-label_fy27', 'isEnabled', true) ? undefined : 'Primary Toolbar',
22
24
  breakpointPreset: getBreakpointPreset(breakpointPreset, editorAppearance)
23
25
  }, children);
24
26
  };
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
3
  import { PrimaryToolbar as PrimaryToolbarBase } from '@atlaskit/editor-toolbar';
4
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
5
  var isFullPage = function isFullPage(editorAppearance) {
5
6
  return editorAppearance === 'full-page' || editorAppearance === 'full-width';
6
7
  };
@@ -16,7 +17,8 @@ export var PrimaryToolbar = function PrimaryToolbar(_ref) {
16
17
  var _useEditorToolbar = useEditorToolbar(),
17
18
  editorAppearance = _useEditorToolbar.editorAppearance;
18
19
  return /*#__PURE__*/React.createElement(PrimaryToolbarBase, {
19
- label: "Primary Toolbar",
20
+ testId: expValEquals('editor_a11y__primary-toolbar-aria-label_fy27', 'isEnabled', true) ? 'editor-primary-toolbar' : undefined,
21
+ label: expValEquals('editor_a11y__primary-toolbar-aria-label_fy27', 'isEnabled', true) ? undefined : 'Primary Toolbar',
20
22
  breakpointPreset: getBreakpointPreset(breakpointPreset, editorAppearance)
21
23
  }, children);
22
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "9.0.26",
3
+ "version": "9.0.28",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  "@atlaskit/editor-toolbar": "^2.3.0",
33
33
  "@atlaskit/editor-toolbar-model": "^1.1.0",
34
34
  "@atlaskit/platform-feature-flags": "^2.0.0",
35
- "@atlaskit/tmp-editor-statsig": "^128.0.0",
35
+ "@atlaskit/tmp-editor-statsig": "^130.0.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "bind-event-listener": "^3.0.0"
38
38
  },