@atlaskit/editor-plugin-text-color 7.2.3 → 7.2.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-plugin-text-color
2
2
 
3
+ ## 7.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9041ec452a104`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9041ec452a104) -
8
+ [EDITOR-4515] clean up fg platform_editor_toolbar_aifc_patch_7
9
+ - Updated dependencies
10
+
3
11
  ## 7.2.3
4
12
 
5
13
  ### Patch Changes
@@ -15,7 +15,6 @@ var _messages = require("@atlaskit/editor-common/messages");
15
15
  var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
16
16
  var _editorPalette = require("@atlaskit/editor-palette");
17
17
  var _editorToolbar = require("@atlaskit/editor-toolbar");
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
18
  var _compiled = require("@atlaskit/primitives/compiled");
20
19
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
21
20
  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); }
@@ -63,7 +62,7 @@ var TextColorHighlightMenu = exports.TextColorHighlightMenu = function TextColor
63
62
  }, [api === null || api === void 0 || (_api$textColor2 = api.textColor) === null || _api$textColor2 === void 0 ? void 0 : _api$textColor2.commands, api === null || api === void 0 ? void 0 : api.core.actions]);
64
63
  (0, _react.useEffect)(function () {
65
64
  return function () {
66
- if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_patch_7')) {
65
+ if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true)) {
67
66
  if (isPaletteOpen) {
68
67
  setIsPaletteOpen(false);
69
68
  }
@@ -8,7 +8,6 @@ import { textColorMessages as messages } from '@atlaskit/editor-common/messages'
8
8
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
9
9
  import { hexToEditorTextPaletteColor, hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
10
10
  import { TextColorIcon, ToolbarColorSwatch, ToolbarDropdownMenu, ToolbarDropdownMenuProvider, ToolbarTooltip, useToolbarUI } from '@atlaskit/editor-toolbar';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { Box } from '@atlaskit/primitives/compiled';
13
12
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
13
  const styles = {
@@ -59,7 +58,7 @@ export const TextColorHighlightMenu = ({
59
58
  }, [api === null || api === void 0 ? void 0 : (_api$textColor2 = api.textColor) === null || _api$textColor2 === void 0 ? void 0 : _api$textColor2.commands, api === null || api === void 0 ? void 0 : api.core.actions]);
60
59
  useEffect(() => {
61
60
  return () => {
62
- if (expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) && fg('platform_editor_toolbar_aifc_patch_7')) {
61
+ if (expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true)) {
63
62
  if (isPaletteOpen) {
64
63
  setIsPaletteOpen(false);
65
64
  }
@@ -8,7 +8,6 @@ import { textColorMessages as messages } from '@atlaskit/editor-common/messages'
8
8
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
9
9
  import { hexToEditorTextPaletteColor, hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
10
10
  import { TextColorIcon, ToolbarColorSwatch, ToolbarDropdownMenu, ToolbarDropdownMenuProvider, ToolbarTooltip, useToolbarUI } from '@atlaskit/editor-toolbar';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { Box } from '@atlaskit/primitives/compiled';
13
12
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
13
  var styles = {
@@ -55,7 +54,7 @@ export var TextColorHighlightMenu = function TextColorHighlightMenu(_ref) {
55
54
  }, [api === null || api === void 0 || (_api$textColor2 = api.textColor) === null || _api$textColor2 === void 0 ? void 0 : _api$textColor2.commands, api === null || api === void 0 ? void 0 : api.core.actions]);
56
55
  useEffect(function () {
57
56
  return function () {
58
- if (expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) && fg('platform_editor_toolbar_aifc_patch_7')) {
57
+ if (expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true)) {
59
58
  if (isPaletteOpen) {
60
59
  setIsPaletteOpen(false);
61
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "7.2.3",
3
+ "version": "7.2.4",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,19 +36,19 @@
36
36
  "@atlaskit/editor-plugin-analytics": "^7.0.0",
37
37
  "@atlaskit/editor-plugin-highlight": "^7.3.0",
38
38
  "@atlaskit/editor-plugin-primary-toolbar": "^8.0.0",
39
- "@atlaskit/editor-plugin-selection-toolbar": "^8.0.0",
40
- "@atlaskit/editor-plugin-toolbar": "^4.0.0",
39
+ "@atlaskit/editor-plugin-selection-toolbar": "^8.1.0",
40
+ "@atlaskit/editor-plugin-toolbar": "^4.1.0",
41
41
  "@atlaskit/editor-prosemirror": "^7.2.0",
42
42
  "@atlaskit/editor-shared-styles": "^3.10.0",
43
43
  "@atlaskit/editor-toolbar": "^0.19.0",
44
44
  "@atlaskit/editor-toolbar-model": "^0.3.0",
45
45
  "@atlaskit/heading": "^5.2.0",
46
- "@atlaskit/icon": "^29.4.0",
46
+ "@atlaskit/icon": "^30.0.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/primitives": "^17.1.0",
49
49
  "@atlaskit/theme": "^21.0.0",
50
- "@atlaskit/tmp-editor-statsig": "^16.25.0",
51
- "@atlaskit/tokens": "^10.0.0",
50
+ "@atlaskit/tmp-editor-statsig": "^16.30.0",
51
+ "@atlaskit/tokens": "^10.1.0",
52
52
  "@babel/runtime": "^7.0.0",
53
53
  "@emotion/react": "^11.7.1"
54
54
  },
@@ -105,9 +105,6 @@
105
105
  "platform-visual-refresh-icons": {
106
106
  "type": "boolean"
107
107
  },
108
- "platform_editor_toolbar_aifc_patch_7": {
109
- "type": "boolean"
110
- },
111
108
  "platform_editor_toolbar_aifc_text_color_config": {
112
109
  "type": "boolean"
113
110
  }