@atlaskit/editor-plugin-text-color 2.1.4 → 2.1.6

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-plugin-text-color
2
2
 
3
+ ## 2.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.1.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#126126](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/126126)
14
+ [`468f52001a847`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/468f52001a847) -
15
+ Tidy up contextual formatting toolbar experiment and switch to `platform_editor_controls` flag
16
+ - Updated dependencies
17
+
3
18
  ## 2.1.4
4
19
 
5
20
  ### Patch Changes
@@ -77,16 +77,7 @@ var textColorPlugin = exports.textColorPlugin = function textColorPlugin(_ref) {
77
77
  pluginsOptions: {
78
78
  selectionToolbar: function selectionToolbar() {
79
79
  var _api$selectionToolbar;
80
- if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'top' && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
81
- exposure: true
82
- })) {
83
- return undefined;
84
- }
85
- if ((0, _experiments.editorExperiment)('contextual_formatting_toolbar', true, {
86
- exposure: true
87
- }) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
88
- exposure: true
89
- }) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
80
+ if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'none' && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
90
81
  exposure: true
91
82
  })) {
92
83
  var toolbarCustom = {
@@ -71,16 +71,7 @@ export const textColorPlugin = ({
71
71
  pluginsOptions: {
72
72
  selectionToolbar: () => {
73
73
  var _api$selectionToolbar, _api$selectionToolbar2, _api$selectionToolbar3;
74
- if ((api === null || api === void 0 ? void 0 : (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 ? void 0 : (_api$selectionToolbar2 = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar2 === void 0 ? void 0 : (_api$selectionToolbar3 = _api$selectionToolbar2.currentState()) === null || _api$selectionToolbar3 === void 0 ? void 0 : _api$selectionToolbar3.toolbarDocking) === 'top' && editorExperiment('platform_editor_controls', 'variant1', {
75
- exposure: true
76
- })) {
77
- return undefined;
78
- }
79
- if (editorExperiment('contextual_formatting_toolbar', true, {
80
- exposure: true
81
- }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
82
- exposure: true
83
- }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
74
+ if ((api === null || api === void 0 ? void 0 : (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 ? void 0 : (_api$selectionToolbar2 = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar2 === void 0 ? void 0 : (_api$selectionToolbar3 = _api$selectionToolbar2.currentState()) === null || _api$selectionToolbar3 === void 0 ? void 0 : _api$selectionToolbar3.toolbarDocking) === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
84
75
  exposure: true
85
76
  })) {
86
77
  const toolbarCustom = {
@@ -70,16 +70,7 @@ export var textColorPlugin = function textColorPlugin(_ref) {
70
70
  pluginsOptions: {
71
71
  selectionToolbar: function selectionToolbar() {
72
72
  var _api$selectionToolbar;
73
- if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'top' && editorExperiment('platform_editor_controls', 'variant1', {
74
- exposure: true
75
- })) {
76
- return undefined;
77
- }
78
- if (editorExperiment('contextual_formatting_toolbar', true, {
79
- exposure: true
80
- }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
81
- exposure: true
82
- }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
73
+ if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
83
74
  exposure: true
84
75
  })) {
85
76
  var toolbarCustom = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,9 +34,9 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
- "@atlaskit/editor-common": "^102.4.0",
38
- "@atlaskit/editor-palette": "^2.0.0",
39
- "@atlaskit/editor-plugin-analytics": "^2.1.0",
37
+ "@atlaskit/editor-common": "^102.8.0",
38
+ "@atlaskit/editor-palette": "^2.1.0",
39
+ "@atlaskit/editor-plugin-analytics": "^2.2.0",
40
40
  "@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
41
41
  "@atlaskit/editor-plugin-selection-toolbar": "^2.0.0",
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
@@ -45,8 +45,8 @@
45
45
  "@atlaskit/icon": "^25.0.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/theme": "^18.0.0",
48
- "@atlaskit/tmp-editor-statsig": "^3.6.0",
49
- "@atlaskit/tokens": "^4.4.0",
48
+ "@atlaskit/tmp-editor-statsig": "^4.0.0",
49
+ "@atlaskit/tokens": "^4.5.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1"
52
52
  },