@atlaskit/editor-plugin-text-color 4.0.2 → 4.0.3

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
+ ## 4.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`db97eb262cc5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/db97eb262cc5a) -
8
+ replace platform_editor_toolbar_aifc with separate experiements for jira and confluence
9
+ - Updated dependencies
10
+
3
11
  ## 4.0.2
4
12
 
5
13
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.textColorPlugin = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
10
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
11
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
13
12
  var _changeColor2 = require("./pm-plugins/commands/change-color");
14
13
  var _main = require("./pm-plugins/main");
@@ -24,7 +23,9 @@ var pluginConfig = function pluginConfig(textColorConfig) {
24
23
  var textColorPlugin = exports.textColorPlugin = function textColorPlugin(_ref) {
25
24
  var textColorConfig = _ref.config,
26
25
  api = _ref.api;
27
- var isToolbarAifcEnabled = (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc', 'isEnabled', true);
26
+ var isToolbarAifcEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
27
+ exposure: true
28
+ });
28
29
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
29
30
  var editorView = _ref2.editorView,
30
31
  popupsMountPoint = _ref2.popupsMountPoint,
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { textColor } from '@atlaskit/adf-schema';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
5
  import { changeColor } from './pm-plugins/commands/change-color';
7
6
  import { createPlugin, pluginKey as textColorPluginKey } from './pm-plugins/main';
@@ -18,7 +17,9 @@ export const textColorPlugin = ({
18
17
  config: textColorConfig,
19
18
  api
20
19
  }) => {
21
- const isToolbarAifcEnabled = expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true);
20
+ const isToolbarAifcEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
21
+ exposure: true
22
+ });
22
23
  const primaryToolbarComponent = ({
23
24
  editorView,
24
25
  popupsMountPoint,
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { textColor } from '@atlaskit/adf-schema';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
5
  import { changeColor as _changeColor } from './pm-plugins/commands/change-color';
7
6
  import { createPlugin, pluginKey as textColorPluginKey } from './pm-plugins/main';
@@ -17,7 +16,9 @@ var pluginConfig = function pluginConfig(textColorConfig) {
17
16
  export var textColorPlugin = function textColorPlugin(_ref) {
18
17
  var textColorConfig = _ref.config,
19
18
  api = _ref.api;
20
- var isToolbarAifcEnabled = expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true);
19
+ var isToolbarAifcEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
20
+ exposure: true
21
+ });
21
22
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
22
23
  var editorView = _ref2.editorView,
23
24
  popupsMountPoint = _ref2.popupsMountPoint,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/primitives": "^14.13.0",
48
48
  "@atlaskit/theme": "^20.0.0",
49
- "@atlaskit/tmp-editor-statsig": "^12.4.0",
49
+ "@atlaskit/tmp-editor-statsig": "^12.5.0",
50
50
  "@atlaskit/tokens": "^6.2.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^108.2.0",
55
+ "@atlaskit/editor-common": "^108.3.0",
56
56
  "react": "^18.2.0",
57
57
  "react-dom": "^18.2.0",
58
58
  "react-intl-next": "npm:react-intl@^5.18.1"