@atlaskit/editor-plugin-text-color 1.16.7 → 1.16.9
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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 1.16.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#105009](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105009)
|
|
8
|
+
[`a4039ebf7ed11`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a4039ebf7ed11) -
|
|
9
|
+
[ux] Implement variant 2 cohorts experience for platform_editor_contextual_formatting_toolbar_v2
|
|
10
|
+
experiment
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 1.16.8
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 1.16.7
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -78,6 +78,8 @@ var textColorPlugin = exports.textColorPlugin = function textColorPlugin(_ref) {
|
|
|
78
78
|
selectionToolbar: function selectionToolbar() {
|
|
79
79
|
if ((0, _experiments.editorExperiment)('contextual_formatting_toolbar', true, {
|
|
80
80
|
exposure: true
|
|
81
|
+
}) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
|
|
82
|
+
exposure: true
|
|
81
83
|
})) {
|
|
82
84
|
var toolbarCustom = {
|
|
83
85
|
type: 'custom',
|
|
@@ -72,6 +72,8 @@ export const textColorPlugin = ({
|
|
|
72
72
|
selectionToolbar: () => {
|
|
73
73
|
if (editorExperiment('contextual_formatting_toolbar', true, {
|
|
74
74
|
exposure: true
|
|
75
|
+
}) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
|
|
76
|
+
exposure: true
|
|
75
77
|
})) {
|
|
76
78
|
const toolbarCustom = {
|
|
77
79
|
type: 'custom',
|
|
@@ -71,6 +71,8 @@ export var textColorPlugin = function textColorPlugin(_ref) {
|
|
|
71
71
|
selectionToolbar: function selectionToolbar() {
|
|
72
72
|
if (editorExperiment('contextual_formatting_toolbar', true, {
|
|
73
73
|
exposure: true
|
|
74
|
+
}) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
|
|
75
|
+
exposure: true
|
|
74
76
|
})) {
|
|
75
77
|
var toolbarCustom = {
|
|
76
78
|
type: 'custom',
|
|
@@ -4,9 +4,10 @@ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolb
|
|
|
4
4
|
import type { TextColorPluginConfig, TextColorPluginState } from './pm-plugins/main';
|
|
5
5
|
import type { TextColorInputMethod } from './types';
|
|
6
6
|
type Config = TextColorPluginConfig | boolean;
|
|
7
|
+
export type Dependencies = [OptionalPlugin<AnalyticsPlugin>, OptionalPlugin<PrimaryToolbarPlugin>];
|
|
7
8
|
export type TextColorPlugin = NextEditorPlugin<'textColor', {
|
|
8
9
|
pluginConfiguration: Config | undefined;
|
|
9
|
-
dependencies:
|
|
10
|
+
dependencies: Dependencies;
|
|
10
11
|
actions: {
|
|
11
12
|
changeColor: (color: string, inputMethod?: TextColorInputMethod) => Command;
|
|
12
13
|
};
|
|
@@ -4,12 +4,13 @@ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolb
|
|
|
4
4
|
import type { TextColorPluginConfig, TextColorPluginState } from './pm-plugins/main';
|
|
5
5
|
import type { TextColorInputMethod } from './types';
|
|
6
6
|
type Config = TextColorPluginConfig | boolean;
|
|
7
|
+
export type Dependencies = [
|
|
8
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
9
|
+
OptionalPlugin<PrimaryToolbarPlugin>
|
|
10
|
+
];
|
|
7
11
|
export type TextColorPlugin = NextEditorPlugin<'textColor', {
|
|
8
12
|
pluginConfiguration: Config | undefined;
|
|
9
|
-
dependencies:
|
|
10
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
11
|
-
OptionalPlugin<PrimaryToolbarPlugin>
|
|
12
|
-
];
|
|
13
|
+
dependencies: Dependencies;
|
|
13
14
|
actions: {
|
|
14
15
|
changeColor: (color: string, inputMethod?: TextColorInputMethod) => Command;
|
|
15
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.9",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
36
|
-
"@atlaskit/editor-palette": "1.6.
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
35
|
+
"@atlaskit/editor-common": "^99.5.0",
|
|
36
|
+
"@atlaskit/editor-palette": "1.6.4",
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^1.11.0",
|
|
38
38
|
"@atlaskit/editor-plugin-primary-toolbar": "^2.1.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
40
40
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
41
41
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
42
|
-
"@atlaskit/icon": "^23.
|
|
42
|
+
"@atlaskit/icon": "^23.4.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
44
44
|
"@atlaskit/theme": "^14.0.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
46
|
-
"@atlaskit/tokens": "^2.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^2.39.0",
|
|
46
|
+
"@atlaskit/tokens": "^3.2.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@emotion/react": "^11.7.1"
|
|
49
49
|
},
|