@atlaskit/editor-toolbar 0.8.3 → 0.8.4

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,13 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 0.8.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0812ff5bd7bd1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0812ff5bd7bd1) -
8
+ Dont render menu sections in live view
9
+ - Updated dependencies
10
+
3
11
  ## 0.8.3
4
12
 
5
13
  ### Patch Changes
@@ -77,6 +77,7 @@ var ToolbarDropdownItem = exports.ToolbarDropdownItem = function ToolbarDropdown
77
77
  target: target,
78
78
  rel: rel,
79
79
  component: href && (0, _expValEquals.expValEquals)('platform_editor_toolbar_migrate_loom', 'isEnabled', true) ? undefined : CustomDropdownMenuItemButton,
80
- testId: testId
80
+ testId: testId,
81
+ "data-toolbar-component": "menu-item"
81
82
  }, children);
82
83
  };
@@ -13,6 +13,7 @@ var ToolbarDropdownItemSection = exports.ToolbarDropdownItemSection = function T
13
13
  title = _ref.title;
14
14
  return /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItemGroup, {
15
15
  hasSeparator: hasSeparator,
16
- title: title
16
+ title: title,
17
+ "data-toolbar-component": "menu-section"
17
18
  }, children);
18
19
  };
@@ -90,7 +90,8 @@ var ToolbarDropdownMenu = exports.ToolbarDropdownMenu = function ToolbarDropdown
90
90
  label: label,
91
91
  onClick: onClick
92
92
  }, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
93
- xcss: (0, _react2.cx)(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, (0, _expValEquals.expValEquals)('platform_editor_toolbar_migrate_loom', 'isEnabled', true) && styles.firstSectionSeparator)
93
+ xcss: (0, _react2.cx)(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, (0, _expValEquals.expValEquals)('platform_editor_toolbar_migrate_loom', 'isEnabled', true) && styles.firstSectionSeparator),
94
+ "data-toolbar-component": "menu"
94
95
  }, children));
95
96
  } else {
96
97
  return /*#__PURE__*/_react.default.createElement(_ToolbarDropdownMenuContext.ToolbarDropdownMenuProvider, null, /*#__PURE__*/_react.default.createElement(ToolbarDropdownMenuContent, {
@@ -69,6 +69,7 @@ export const ToolbarDropdownItem = ({
69
69
  target: target,
70
70
  rel: rel,
71
71
  component: href && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true) ? undefined : CustomDropdownMenuItemButton,
72
- testId: testId
72
+ testId: testId,
73
+ "data-toolbar-component": "menu-item"
73
74
  }, children);
74
75
  };
@@ -7,6 +7,7 @@ export const ToolbarDropdownItemSection = ({
7
7
  }) => {
8
8
  return /*#__PURE__*/React.createElement(DropdownItemGroup, {
9
9
  hasSeparator: hasSeparator,
10
- title: title
10
+ title: title,
11
+ "data-toolbar-component": "menu-section"
11
12
  }, children);
12
13
  };
@@ -80,7 +80,8 @@ export const ToolbarDropdownMenu = ({
80
80
  label: label,
81
81
  onClick: onClick
82
82
  }, /*#__PURE__*/React.createElement(Box, {
83
- xcss: cx(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true) && styles.firstSectionSeparator)
83
+ xcss: cx(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true) && styles.firstSectionSeparator),
84
+ "data-toolbar-component": "menu"
84
85
  }, children));
85
86
  } else {
86
87
  return /*#__PURE__*/React.createElement(ToolbarDropdownMenuProvider, null, /*#__PURE__*/React.createElement(ToolbarDropdownMenuContent, {
@@ -69,6 +69,7 @@ export var ToolbarDropdownItem = function ToolbarDropdownItem(_ref2) {
69
69
  target: target,
70
70
  rel: rel,
71
71
  component: href && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true) ? undefined : CustomDropdownMenuItemButton,
72
- testId: testId
72
+ testId: testId,
73
+ "data-toolbar-component": "menu-item"
73
74
  }, children);
74
75
  };
@@ -6,6 +6,7 @@ export var ToolbarDropdownItemSection = function ToolbarDropdownItemSection(_ref
6
6
  title = _ref.title;
7
7
  return /*#__PURE__*/React.createElement(DropdownItemGroup, {
8
8
  hasSeparator: hasSeparator,
9
- title: title
9
+ title: title,
10
+ "data-toolbar-component": "menu-section"
10
11
  }, children);
11
12
  };
@@ -81,7 +81,8 @@ export var ToolbarDropdownMenu = function ToolbarDropdownMenu(_ref2) {
81
81
  label: label,
82
82
  onClick: onClick
83
83
  }, /*#__PURE__*/React.createElement(Box, {
84
- xcss: cx(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true) && styles.firstSectionSeparator)
84
+ xcss: cx(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true) && styles.firstSectionSeparator),
85
+ "data-toolbar-component": "menu"
85
86
  }, children));
86
87
  } else {
87
88
  return /*#__PURE__*/React.createElement(ToolbarDropdownMenuProvider, null, /*#__PURE__*/React.createElement(ToolbarDropdownMenuContent, {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "0.8.3",
6
+ "version": "0.8.4",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "team": "Editor: Jenga",
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
32
32
  "@atlaskit/popup": "^4.3.0",
33
33
  "@atlaskit/primitives": "^14.14.0",
34
- "@atlaskit/tmp-editor-statsig": "^12.6.0",
34
+ "@atlaskit/tmp-editor-statsig": "^12.7.0",
35
35
  "@atlaskit/tokens": "^6.3.0",
36
36
  "@atlaskit/tooltip": "^20.4.0",
37
37
  "@babel/runtime": "^7.0.0",