@atlaskit/editor-plugin-text-color 2.1.4 → 2.1.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 +9 -0
- package/dist/cjs/textColorPlugin.js +1 -10
- package/dist/es2019/textColorPlugin.js +1 -10
- package/dist/esm/textColorPlugin.js +1 -10
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 2.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#126126](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/126126)
|
|
8
|
+
[`468f52001a847`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/468f52001a847) -
|
|
9
|
+
Tidy up contextual formatting toolbar experiment and switch to `platform_editor_controls` flag
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.1.4
|
|
4
13
|
|
|
5
14
|
### 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) === '
|
|
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) === '
|
|
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) === '
|
|
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.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
|
-
"@atlaskit/editor-common": "^102.
|
|
37
|
+
"@atlaskit/editor-common": "^102.5.0",
|
|
38
38
|
"@atlaskit/editor-palette": "^2.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/theme": "^18.0.0",
|
|
48
48
|
"@atlaskit/tmp-editor-statsig": "^3.6.0",
|
|
49
|
-
"@atlaskit/tokens": "^4.
|
|
49
|
+
"@atlaskit/tokens": "^4.5.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1"
|
|
52
52
|
},
|