@atlaskit/editor-toolbar 0.19.0 → 0.19.1

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.19.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1265c260f9bad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1265c260f9bad) -
8
+ [ED-29455] clean up experiment platform_editor_toolbar_migrate_loom
9
+ - Updated dependencies
10
+
3
11
  ## 0.19.0
4
12
 
5
13
  ### Minor Changes
@@ -98,7 +98,7 @@ var ToolbarDropdownItem = exports.ToolbarDropdownItem = function ToolbarDropdown
98
98
  rel: rel
99
99
  // @ts-ignore -- This `CustomDropdownMenuItemButton` has type conflicts with the `DropdownItem` component in a way that cannot be reconciled (ignored as it fails types in Jira and should in Platform)
100
100
  ,
101
- component: href && (0, _expValEquals.expValEquals)('platform_editor_toolbar_migrate_loom', 'isEnabled', true) ? undefined : CustomDropdownMenuItemButton,
101
+ component: href ? undefined : CustomDropdownMenuItemButton,
102
102
  testId: testId,
103
103
  "data-toolbar-component": "menu-item",
104
104
  shouldTitleWrap: shouldTitleWrap
@@ -13,7 +13,6 @@ var _react = _interopRequireWildcard(require("react"));
13
13
  var _react2 = require("@compiled/react");
14
14
  var _dropdownMenu = _interopRequireDefault(require("@atlaskit/dropdown-menu"));
15
15
  var _compiled = require("@atlaskit/primitives/compiled");
16
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
16
  var _uiContext = require("../hooks/ui-context");
18
17
  var _ToolbarButton = require("./ToolbarButton");
19
18
  var _ToolbarDropdownMenuContext = require("./ToolbarDropdownMenuContext");
@@ -89,7 +88,7 @@ var ToolbarDropdownMenu = exports.ToolbarDropdownMenu = function ToolbarDropdown
89
88
  label: label,
90
89
  onClick: onClick
91
90
  }, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
92
- xcss: (0, _react2.cx)(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, (0, _expValEquals.expValEquals)('platform_editor_toolbar_migrate_loom', 'isEnabled', true) && styles.firstSectionSeparator),
91
+ xcss: (0, _react2.cx)(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, styles.firstSectionSeparator),
93
92
  "data-toolbar-component": "menu"
94
93
  }, children));
95
94
  };
@@ -86,7 +86,7 @@ export const ToolbarDropdownItem = ({
86
86
  rel: rel
87
87
  // @ts-ignore -- This `CustomDropdownMenuItemButton` has type conflicts with the `DropdownItem` component in a way that cannot be reconciled (ignored as it fails types in Jira and should in Platform)
88
88
  ,
89
- component: href && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true) ? undefined : CustomDropdownMenuItemButton,
89
+ component: href ? undefined : CustomDropdownMenuItemButton,
90
90
  testId: testId,
91
91
  "data-toolbar-component": "menu-item",
92
92
  shouldTitleWrap: shouldTitleWrap
@@ -5,7 +5,6 @@ import React, { useCallback } from 'react';
5
5
  import { cx } from '@compiled/react';
6
6
  import DropdownMenu from '@atlaskit/dropdown-menu';
7
7
  import { Box } from '@atlaskit/primitives/compiled';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { useToolbarUI } from '../hooks/ui-context';
10
9
  import { ToolbarButton } from './ToolbarButton';
11
10
  import { useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
@@ -79,7 +78,7 @@ export const ToolbarDropdownMenu = ({
79
78
  label: label,
80
79
  onClick: onClick
81
80
  }, /*#__PURE__*/React.createElement(Box, {
82
- xcss: cx(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true) && styles.firstSectionSeparator),
81
+ xcss: cx(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, styles.firstSectionSeparator),
83
82
  "data-toolbar-component": "menu"
84
83
  }, children));
85
84
  };
@@ -89,7 +89,7 @@ export var ToolbarDropdownItem = function ToolbarDropdownItem(_ref2) {
89
89
  rel: rel
90
90
  // @ts-ignore -- This `CustomDropdownMenuItemButton` has type conflicts with the `DropdownItem` component in a way that cannot be reconciled (ignored as it fails types in Jira and should in Platform)
91
91
  ,
92
- component: href && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true) ? undefined : CustomDropdownMenuItemButton,
92
+ component: href ? undefined : CustomDropdownMenuItemButton,
93
93
  testId: testId,
94
94
  "data-toolbar-component": "menu-item",
95
95
  shouldTitleWrap: shouldTitleWrap
@@ -5,7 +5,6 @@ import React, { useCallback } from 'react';
5
5
  import { cx } from '@compiled/react';
6
6
  import DropdownMenu from '@atlaskit/dropdown-menu';
7
7
  import { Box } from '@atlaskit/primitives/compiled';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { useToolbarUI } from '../hooks/ui-context';
10
9
  import { ToolbarButton } from './ToolbarButton';
11
10
  import { useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
@@ -80,7 +79,7 @@ export var ToolbarDropdownMenu = function ToolbarDropdownMenu(_ref2) {
80
79
  label: label,
81
80
  onClick: onClick
82
81
  }, /*#__PURE__*/React.createElement(Box, {
83
- xcss: cx(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true) && styles.firstSectionSeparator),
82
+ xcss: cx(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, styles.firstSectionSeparator),
84
83
  "data-toolbar-component": "menu"
85
84
  }, children));
86
85
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "0.19.0",
6
+ "version": "0.19.1",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "team": "Editor: Jenga",
@@ -30,9 +30,9 @@
30
30
  "@atlaskit/platform-feature-flags": "^1.1.0",
31
31
  "@atlaskit/popup": "^4.13.0",
32
32
  "@atlaskit/primitives": "^17.0.0",
33
- "@atlaskit/tmp-editor-statsig": "^16.11.0",
33
+ "@atlaskit/tmp-editor-statsig": "^16.13.0",
34
34
  "@atlaskit/tokens": "^9.1.0",
35
- "@atlaskit/tooltip": "^20.12.0",
35
+ "@atlaskit/tooltip": "^20.13.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "@compiled/react": "^0.18.6",
38
38
  "chromatism": "^2.6.0"