@atlaskit/editor-plugin-text-color 1.19.0 → 2.0.0
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,35 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
8
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
9
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
10
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
11
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
12
|
+
React 17 may come via non-major semver releases.
|
|
13
|
+
|
|
14
|
+
Please refer this community post for more details:
|
|
15
|
+
https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
21
|
+
## 1.20.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- [#116949](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116949)
|
|
26
|
+
[`9154f7b89e3d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9154f7b89e3d2) -
|
|
27
|
+
[ux] ED-26674 Hiding contextual toolbar menu items when the menu is docked to top
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies
|
|
32
|
+
|
|
3
33
|
## 1.19.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
|
@@ -85,6 +85,12 @@ var textColorPlugin = exports.textColorPlugin = function textColorPlugin(_ref) {
|
|
|
85
85
|
},
|
|
86
86
|
pluginsOptions: {
|
|
87
87
|
selectionToolbar: function selectionToolbar() {
|
|
88
|
+
var _api$selectionToolbar;
|
|
89
|
+
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', {
|
|
90
|
+
exposure: true
|
|
91
|
+
})) {
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
88
94
|
if ((0, _experiments.editorExperiment)('contextual_formatting_toolbar', true, {
|
|
89
95
|
exposure: true
|
|
90
96
|
}) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
|
|
@@ -79,6 +79,12 @@ export const textColorPlugin = ({
|
|
|
79
79
|
},
|
|
80
80
|
pluginsOptions: {
|
|
81
81
|
selectionToolbar: () => {
|
|
82
|
+
var _api$selectionToolbar, _api$selectionToolbar2, _api$selectionToolbar3;
|
|
83
|
+
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', {
|
|
84
|
+
exposure: true
|
|
85
|
+
})) {
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
82
88
|
if (editorExperiment('contextual_formatting_toolbar', true, {
|
|
83
89
|
exposure: true
|
|
84
90
|
}) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
|
|
@@ -78,6 +78,12 @@ export var textColorPlugin = function textColorPlugin(_ref) {
|
|
|
78
78
|
},
|
|
79
79
|
pluginsOptions: {
|
|
80
80
|
selectionToolbar: function selectionToolbar() {
|
|
81
|
+
var _api$selectionToolbar;
|
|
82
|
+
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', {
|
|
83
|
+
exposure: true
|
|
84
|
+
})) {
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
81
87
|
if (editorExperiment('contextual_formatting_toolbar', true, {
|
|
82
88
|
exposure: true
|
|
83
89
|
}) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { Command, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
4
|
+
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
4
5
|
import type { TextColorPluginConfig, TextColorPluginState } from './pm-plugins/main';
|
|
5
6
|
import type { TextColorInputMethod } from './types';
|
|
6
7
|
type Config = TextColorPluginConfig | boolean;
|
|
7
|
-
export type Dependencies = [
|
|
8
|
+
export type Dependencies = [
|
|
9
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
10
|
+
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
11
|
+
OptionalPlugin<SelectionToolbarPlugin>
|
|
12
|
+
];
|
|
8
13
|
export type TextColorPlugin = NextEditorPlugin<'textColor', {
|
|
9
14
|
pluginConfiguration: Config | undefined;
|
|
10
15
|
dependencies: Dependencies;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { Command, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
4
|
+
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
4
5
|
import type { TextColorPluginConfig, TextColorPluginState } from './pm-plugins/main';
|
|
5
6
|
import type { TextColorInputMethod } from './types';
|
|
6
7
|
type Config = TextColorPluginConfig | boolean;
|
|
7
8
|
export type Dependencies = [
|
|
8
9
|
OptionalPlugin<AnalyticsPlugin>,
|
|
9
|
-
OptionalPlugin<PrimaryToolbarPlugin
|
|
10
|
+
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
11
|
+
OptionalPlugin<SelectionToolbarPlugin>
|
|
10
12
|
];
|
|
11
13
|
export type TextColorPlugin = NextEditorPlugin<'textColor', {
|
|
12
14
|
pluginConfiguration: Config | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,24 +32,25 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^47.2.1",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
36
|
-
"@atlaskit/editor-palette": "
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
38
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
35
|
+
"@atlaskit/editor-common": "^100.0.0",
|
|
36
|
+
"@atlaskit/editor-palette": "2.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^2.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^2.0.0",
|
|
39
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
40
41
|
"@atlaskit/editor-shared-styles": "^3.3.0",
|
|
41
42
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
42
|
-
"@atlaskit/icon": "^
|
|
43
|
+
"@atlaskit/icon": "^24.0.0",
|
|
43
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
|
-
"@atlaskit/theme": "^
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
-
"@atlaskit/tokens": "^
|
|
45
|
+
"@atlaskit/theme": "^17.0.0",
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^3.0.0",
|
|
47
|
+
"@atlaskit/tokens": "^4.0.0",
|
|
47
48
|
"@babel/runtime": "^7.0.0",
|
|
48
49
|
"@emotion/react": "^11.7.1"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
|
-
"react": "^
|
|
52
|
-
"react-dom": "^
|
|
52
|
+
"react": "^18.2.0",
|
|
53
|
+
"react-dom": "^18.2.0",
|
|
53
54
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|