@atlaskit/editor-plugin-text-color 1.16.9 → 1.17.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,25 @@
1
1
  # @atlaskit/editor-plugin-text-color
2
2
 
3
+ ## 1.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
8
+ [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
9
+ Update `React` from v16 to v18
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 1.16.10
16
+
17
+ ### Patch Changes
18
+
19
+ - [#107473](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107473)
20
+ [`962b3297548df`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/962b3297548df) -
21
+ [ux] Implement variation 2 for editor contextual toolbar formatting experiment
22
+
3
23
  ## 1.16.9
4
24
 
5
25
  ### Patch Changes
@@ -17,8 +17,6 @@ var _toggleColor = require("./toggle-color");
17
17
  * @param palette - Current palette of colors
18
18
  * @return Higher order command with analytics logic inside.
19
19
  */
20
- // Ignored via go/ees005
21
- // eslint-disable-next-line @typescript-eslint/max-params
22
20
  function createWithColorAnalytics(newColor, previousColor, palette, editorAnalyticsApi, inputMethod) {
23
21
  var newColorFromPalette = palette.find(function (_ref) {
24
22
  var value = _ref.value;
@@ -46,8 +46,6 @@ function createPlugin(dispatch, pluginConfig) {
46
46
  init: function init(_config, editorState) {
47
47
  return createInitialPluginState(editorState, pluginConfig);
48
48
  },
49
- // Ignored via go/ees005
50
- // eslint-disable-next-line @typescript-eslint/max-params
51
49
  apply: function apply(tr, pluginState, _, newState) {
52
50
  var meta = tr.getMeta(pluginKey) || {};
53
51
  var nextState;
@@ -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', 'variant1', {
82
+ exposure: true
81
83
  }) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
82
84
  exposure: true
83
85
  })) {
@@ -12,8 +12,6 @@ import { toggleColor } from './toggle-color';
12
12
  * @param palette - Current palette of colors
13
13
  * @return Higher order command with analytics logic inside.
14
14
  */
15
- // Ignored via go/ees005
16
- // eslint-disable-next-line @typescript-eslint/max-params
17
15
  function createWithColorAnalytics(newColor, previousColor, palette, editorAnalyticsApi, inputMethod) {
18
16
  const newColorFromPalette = palette.find(({
19
17
  value
@@ -33,8 +33,6 @@ export function createPlugin(dispatch, pluginConfig) {
33
33
  init(_config, editorState) {
34
34
  return createInitialPluginState(editorState, pluginConfig);
35
35
  },
36
- // Ignored via go/ees005
37
- // eslint-disable-next-line @typescript-eslint/max-params
38
36
  apply(tr, pluginState, _, newState) {
39
37
  const meta = tr.getMeta(pluginKey) || {};
40
38
  let nextState;
@@ -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', 'variant1', {
76
+ exposure: true
75
77
  }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
76
78
  exposure: true
77
79
  })) {
@@ -12,8 +12,6 @@ import { toggleColor } from './toggle-color';
12
12
  * @param palette - Current palette of colors
13
13
  * @return Higher order command with analytics logic inside.
14
14
  */
15
- // Ignored via go/ees005
16
- // eslint-disable-next-line @typescript-eslint/max-params
17
15
  function createWithColorAnalytics(newColor, previousColor, palette, editorAnalyticsApi, inputMethod) {
18
16
  var newColorFromPalette = palette.find(function (_ref) {
19
17
  var value = _ref.value;
@@ -37,8 +37,6 @@ export function createPlugin(dispatch, pluginConfig) {
37
37
  init: function init(_config, editorState) {
38
38
  return createInitialPluginState(editorState, pluginConfig);
39
39
  },
40
- // Ignored via go/ees005
41
- // eslint-disable-next-line @typescript-eslint/max-params
42
40
  apply: function apply(tr, pluginState, _, newState) {
43
41
  var meta = tr.getMeta(pluginKey) || {};
44
42
  var nextState;
@@ -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', 'variant1', {
75
+ exposure: true
74
76
  }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
75
77
  exposure: true
76
78
  })) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "1.16.9",
3
+ "version": "1.17.0",
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": "^99.5.0",
36
- "@atlaskit/editor-palette": "1.6.4",
35
+ "@atlaskit/editor-common": "^99.6.0",
36
+ "@atlaskit/editor-palette": "1.7.0",
37
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.4.0",
42
+ "@atlaskit/icon": "^23.5.0",
43
43
  "@atlaskit/platform-feature-flags": "^0.3.0",
44
- "@atlaskit/theme": "^14.0.0",
45
- "@atlaskit/tmp-editor-statsig": "^2.39.0",
46
- "@atlaskit/tokens": "^3.2.0",
44
+ "@atlaskit/theme": "^14.1.0",
45
+ "@atlaskit/tmp-editor-statsig": "^2.41.0",
46
+ "@atlaskit/tokens": "^3.3.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@emotion/react": "^11.7.1"
49
49
  },
@@ -56,7 +56,7 @@
56
56
  "@af/visual-regression": "*",
57
57
  "@atlaskit/ssr": "*",
58
58
  "@atlaskit/visual-regression": "*",
59
- "@testing-library/react": "^12.1.5",
59
+ "@testing-library/react": "^13.4.0",
60
60
  "typescript": "~5.4.2",
61
61
  "wait-for-expect": "^1.2.0"
62
62
  },