@atlaskit/editor-toolbar 2.8.3 → 2.8.5

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,20 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 2.8.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.8.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`a13383c3c99b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a13383c3c99b2) -
14
+ [FFCLEANUP-192944] clean up code references to patch gates
15
+ `platform_editor_lovability_text_bg_color_patch_1` and
16
+ `platform_editor_lovability_text_bg_color_patch_2`.
17
+
3
18
  ## 2.8.3
4
19
 
5
20
  ### Patch Changes
@@ -11,7 +11,6 @@ require("./Color.compiled.css");
11
11
  var _runtime = require("@compiled/react/runtime");
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _checkMark = _interopRequireDefault(require("@atlaskit/icon/core/check-mark"));
14
- var _fg = require("@atlaskit/platform-feature-flags/fg");
15
14
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
16
15
  var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
17
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -51,7 +50,7 @@ var Color = exports.Color = /*#__PURE__*/(0, _react.memo)(function (_ref) {
51
50
  e.preventDefault();
52
51
  onKeyDown(value, label, e);
53
52
  }, [onKeyDown, value, label]);
54
- if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _fg.fg)('platform_editor_lovability_text_bg_color_patch_1')) {
53
+ if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_text_bg_color', 'isEnabled', true)) {
55
54
  return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
56
55
  content: label
57
56
  }, /*#__PURE__*/_react.default.createElement("span", {
@@ -73,7 +73,7 @@ var ColorPalette = function ColorPalette(_ref) {
73
73
  var _useThemeObserver = (0, _useThemeObserver2.useThemeObserver)(),
74
74
  tokenTheme = _useThemeObserver.colorMode;
75
75
  var useIconToken = !!hexToPaletteColor;
76
- var shouldUseInlineColorGap = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _fg.fg)('platform_editor_lovability_text_bg_color_patch_1');
76
+ var shouldUseInlineColorGap = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true);
77
77
 
78
78
  // Refs for keyboard navigation
79
79
  var paletteRef = (0, _react.useRef)(null);
@@ -3,7 +3,6 @@ import "./Color.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, memo } from 'react';
5
5
  import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
6
- import { fg } from '@atlaskit/platform-feature-flags/fg';
7
6
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
8
7
  import Tooltip from '@atlaskit/tooltip/Tooltip';
9
8
  const buttonWrapperStyles = null;
@@ -42,7 +41,7 @@ export const Color = /*#__PURE__*/memo(({
42
41
  e.preventDefault();
43
42
  onKeyDown(value, label, e);
44
43
  }, [onKeyDown, value, label]);
45
- if (expValEqualsNoExposure('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_1')) {
44
+ if (expValEqualsNoExposure('platform_editor_lovability_text_bg_color', 'isEnabled', true)) {
46
45
  return /*#__PURE__*/React.createElement(Tooltip, {
47
46
  content: label
48
47
  }, /*#__PURE__*/React.createElement("span", {
@@ -66,7 +66,7 @@ const ColorPalette = ({
66
66
  colorMode: tokenTheme
67
67
  } = useThemeObserver();
68
68
  const useIconToken = !!hexToPaletteColor;
69
- const shouldUseInlineColorGap = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_1');
69
+ const shouldUseInlineColorGap = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
70
70
 
71
71
  // Refs for keyboard navigation
72
72
  const paletteRef = useRef(null);
@@ -3,7 +3,6 @@ import "./Color.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, memo } from 'react';
5
5
  import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
6
- import { fg } from '@atlaskit/platform-feature-flags/fg';
7
6
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
8
7
  import Tooltip from '@atlaskit/tooltip/Tooltip';
9
8
  var buttonWrapperStyles = null;
@@ -42,7 +41,7 @@ export var Color = /*#__PURE__*/memo(function (_ref) {
42
41
  e.preventDefault();
43
42
  onKeyDown(value, label, e);
44
43
  }, [onKeyDown, value, label]);
45
- if (expValEqualsNoExposure('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_1')) {
44
+ if (expValEqualsNoExposure('platform_editor_lovability_text_bg_color', 'isEnabled', true)) {
46
45
  return /*#__PURE__*/React.createElement(Tooltip, {
47
46
  content: label
48
47
  }, /*#__PURE__*/React.createElement("span", {
@@ -65,7 +65,7 @@ var ColorPalette = function ColorPalette(_ref) {
65
65
  var _useThemeObserver = useThemeObserver(),
66
66
  tokenTheme = _useThemeObserver.colorMode;
67
67
  var useIconToken = !!hexToPaletteColor;
68
- var shouldUseInlineColorGap = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_1');
68
+ var shouldUseInlineColorGap = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
69
69
 
70
70
  // Refs for keyboard navigation
71
71
  var paletteRef = useRef(null);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "2.8.3",
6
+ "version": "2.8.5",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "website": {
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/popup": "^6.3.0",
46
46
  "@atlaskit/primitives": "^22.5.0",
47
47
  "@atlaskit/react-compiler-gating": "^0.2.0",
48
- "@atlaskit/tmp-editor-statsig": "^211.0.0",
48
+ "@atlaskit/tmp-editor-statsig": "^212.0.0",
49
49
  "@atlaskit/tokens": "^20.1.0",
50
50
  "@atlaskit/tooltip": "^24.3.0",
51
51
  "@babel/runtime": "^7.0.0",
@@ -73,9 +73,6 @@
73
73
  "platform_editor_a11y_color_palette_radiogroup": {
74
74
  "type": "boolean"
75
75
  },
76
- "platform_editor_lovability_text_bg_color_patch_1": {
77
- "type": "boolean"
78
- },
79
76
  "platform_editor_return_focus_after_text_styles_2": {
80
77
  "type": "boolean"
81
78
  }