@atlaskit/editor-toolbar 2.3.4 → 2.3.6

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-toolbar
2
2
 
3
+ ## 2.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`862702aa18c98`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/862702aa18c98) -
8
+ Remove redundant primary toolbar aria-label
9
+ - Updated dependencies
10
+
11
+ ## 2.3.5
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 2.3.4
4
18
 
5
19
  ### Patch Changes
@@ -68,18 +68,23 @@ 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
+
71
74
  /**
72
75
  * A simple component representing a toolbar without box shadows - used to represent a primary toolbar
73
76
  */
74
77
  var PrimaryToolbar = exports.PrimaryToolbar = function PrimaryToolbar(_ref2) {
75
78
  var children = _ref2.children,
76
79
  label = _ref2.label,
77
- breakpointPreset = _ref2.breakpointPreset;
80
+ breakpointPreset = _ref2.breakpointPreset,
81
+ testId = _ref2.testId;
78
82
  return /*#__PURE__*/_react.default.createElement(_ResponsiveContainer.ResponsiveContainer, {
79
83
  breakpointPreset: breakpointPreset
80
84
  }, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
81
85
  xcss: (0, _css.cx)(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
82
86
  "aria-label": label,
83
- "data-toolbar-type": "primary"
87
+ "data-toolbar-type": "primary",
88
+ testId: testId
84
89
  }, children));
85
90
  };
@@ -65,19 +65,24 @@ 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
+
68
71
  /**
69
72
  * A simple component representing a toolbar without box shadows - used to represent a primary toolbar
70
73
  */
71
74
  export const PrimaryToolbar = ({
72
75
  children,
73
76
  label,
74
- breakpointPreset
77
+ breakpointPreset,
78
+ testId
75
79
  }) => {
76
80
  return /*#__PURE__*/React.createElement(ResponsiveContainer, {
77
81
  breakpointPreset: breakpointPreset
78
82
  }, /*#__PURE__*/React.createElement(Box, {
79
83
  xcss: cx(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
80
84
  "aria-label": label,
81
- "data-toolbar-type": "primary"
85
+ "data-toolbar-type": "primary",
86
+ testId: testId
82
87
  }, children));
83
88
  };
@@ -61,18 +61,23 @@ 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
+
64
67
  /**
65
68
  * A simple component representing a toolbar without box shadows - used to represent a primary toolbar
66
69
  */
67
70
  export var PrimaryToolbar = function PrimaryToolbar(_ref2) {
68
71
  var children = _ref2.children,
69
72
  label = _ref2.label,
70
- breakpointPreset = _ref2.breakpointPreset;
73
+ breakpointPreset = _ref2.breakpointPreset,
74
+ testId = _ref2.testId;
71
75
  return /*#__PURE__*/React.createElement(ResponsiveContainer, {
72
76
  breakpointPreset: breakpointPreset
73
77
  }, /*#__PURE__*/React.createElement(Box, {
74
78
  xcss: cx(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
75
79
  "aria-label": label,
76
- "data-toolbar-type": "primary"
80
+ "data-toolbar-type": "primary",
81
+ testId: testId
77
82
  }, children));
78
83
  };
@@ -18,9 +18,11 @@ 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 = ToolbarProps & ResponsiveContainerProps;
21
+ type PrimaryToolbarProps = Omit<ToolbarProps, 'label'> & ResponsiveContainerProps & {
22
+ label?: string;
23
+ };
22
24
  /**
23
25
  * A simple component representing a toolbar without box shadows - used to represent a primary toolbar
24
26
  */
25
- export declare const PrimaryToolbar: ({ children, label, breakpointPreset, }: PrimaryToolbarProps) => React.JSX.Element;
27
+ export declare const PrimaryToolbar: ({ children, label, breakpointPreset, testId, }: PrimaryToolbarProps) => React.JSX.Element;
26
28
  export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "2.3.4",
6
+ "version": "2.3.6",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "react-compiler": {
@@ -38,8 +38,8 @@
38
38
  "@atlaskit/popup": "^5.1.0",
39
39
  "@atlaskit/primitives": "^22.0.0",
40
40
  "@atlaskit/react-compiler-gating": "^0.2.0",
41
- "@atlaskit/tmp-editor-statsig": "^127.0.0",
42
- "@atlaskit/tokens": "^16.0.0",
41
+ "@atlaskit/tmp-editor-statsig": "^129.0.0",
42
+ "@atlaskit/tokens": "^16.1.0",
43
43
  "@atlaskit/tooltip": "^23.1.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@compiled/react": "^0.20.0",