@atlaskit/editor-plugin-text-color 18.0.10 → 18.0.11
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
|
+
## 18.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0920715a6b9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0920715a6b9fc) -
|
|
8
|
+
Clean up feature gate `platform_editor_use_preferences_plugin`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 18.0.10
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.textColorPlugin = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _textColor = require("@atlaskit/adf-schema/text-color");
|
|
10
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
11
10
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
12
11
|
var _changeColor2 = require("./editor-commands/change-color");
|
|
13
12
|
var _palette = require("./editor-commands/palette");
|
|
@@ -116,8 +115,8 @@ var textColorPlugin = exports.textColorPlugin = function textColorPlugin(_ref) {
|
|
|
116
115
|
},
|
|
117
116
|
pluginsOptions: !isToolbarAIFCEnabled ? {
|
|
118
117
|
selectionToolbar: function selectionToolbar() {
|
|
119
|
-
var _api$userPreferences
|
|
120
|
-
var toolbarDocking =
|
|
118
|
+
var _api$userPreferences;
|
|
119
|
+
var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.currentState()) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.preferences.toolbarDockingPosition;
|
|
121
120
|
if (toolbarDocking === 'none' && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
122
121
|
exposure: true
|
|
123
122
|
})) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { textColor } from '@atlaskit/adf-schema/text-color';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
5
4
|
import { changeColor as changeColorCommand } from './editor-commands/change-color';
|
|
6
5
|
import { setPalette } from './editor-commands/palette';
|
|
@@ -107,8 +106,8 @@ export const textColorPlugin = ({
|
|
|
107
106
|
},
|
|
108
107
|
pluginsOptions: !isToolbarAIFCEnabled ? {
|
|
109
108
|
selectionToolbar: () => {
|
|
110
|
-
var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2
|
|
111
|
-
const toolbarDocking =
|
|
109
|
+
var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2;
|
|
110
|
+
const toolbarDocking = api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : (_api$userPreferences$ = _api$userPreferences.sharedState) === null || _api$userPreferences$ === void 0 ? void 0 : (_api$userPreferences$2 = _api$userPreferences$.currentState()) === null || _api$userPreferences$2 === void 0 ? void 0 : _api$userPreferences$2.preferences.toolbarDockingPosition;
|
|
112
111
|
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
113
112
|
exposure: true
|
|
114
113
|
})) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { textColor } from '@atlaskit/adf-schema/text-color';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
5
4
|
import { changeColor as changeColorCommand } from './editor-commands/change-color';
|
|
6
5
|
import { setPalette as _setPalette } from './editor-commands/palette';
|
|
@@ -109,8 +108,8 @@ export var textColorPlugin = function textColorPlugin(_ref) {
|
|
|
109
108
|
},
|
|
110
109
|
pluginsOptions: !isToolbarAIFCEnabled ? {
|
|
111
110
|
selectionToolbar: function selectionToolbar() {
|
|
112
|
-
var _api$userPreferences
|
|
113
|
-
var toolbarDocking =
|
|
111
|
+
var _api$userPreferences;
|
|
112
|
+
var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.currentState()) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.preferences.toolbarDockingPosition;
|
|
114
113
|
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
115
114
|
exposure: true
|
|
116
115
|
})) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.11",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
|
+
"website": {
|
|
12
|
+
"tags": [
|
|
13
|
+
"platform-labs"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
11
16
|
"team": "Editor: Lego",
|
|
12
17
|
"singleton": true
|
|
13
18
|
},
|
|
@@ -48,7 +53,7 @@
|
|
|
48
53
|
"@emotion/react": "^11.7.1"
|
|
49
54
|
},
|
|
50
55
|
"peerDependencies": {
|
|
51
|
-
"@atlaskit/editor-common": "^122.
|
|
56
|
+
"@atlaskit/editor-common": "^122.11.0",
|
|
52
57
|
"react": "^18.2.0 || ^19.2.0",
|
|
53
58
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
54
59
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -63,9 +68,6 @@
|
|
|
63
68
|
"wait-for-expect": "^1.2.0"
|
|
64
69
|
},
|
|
65
70
|
"platform-feature-flags": {
|
|
66
|
-
"platform_editor_use_preferences_plugin": {
|
|
67
|
-
"type": "boolean"
|
|
68
|
-
},
|
|
69
71
|
"platform_editor_lovability_text_bg_color_patch_1": {
|
|
70
72
|
"type": "boolean"
|
|
71
73
|
},
|