@atlaskit/editor-plugin-selection-toolbar 1.5.5 → 1.6.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-selection-toolbar
2
2
 
3
+ ## 1.6.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.5.6
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.5.5
4
24
 
5
25
  ### Patch Changes
@@ -147,7 +147,7 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
147
147
  if (Array.isArray((_resolved$i = resolved[i]) === null || _resolved$i === void 0 ? void 0 : _resolved$i.items)) {
148
148
  items.push.apply(items, (0, _toConsumableArray2.default)(resolved[i].items));
149
149
  }
150
- if ((0, _experiments.editorExperiment)('contextual_formatting_toolbar', true) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant2')) {
150
+ if ((0, _experiments.editorExperiment)('contextual_formatting_toolbar', true) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant1') || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant2')) {
151
151
  var shouldNotAddSeparator = false;
152
152
  if (resolved[i] && resolved[i + 1]) {
153
153
  var _resolved$i2, _resolved, _resolved$i3, _resolved2;
@@ -136,7 +136,7 @@ export const selectionToolbarPlugin = options => {
136
136
  if (Array.isArray((_resolved$i = resolved[i]) === null || _resolved$i === void 0 ? void 0 : _resolved$i.items)) {
137
137
  items.push(...resolved[i].items);
138
138
  }
139
- if (editorExperiment('contextual_formatting_toolbar', true) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2')) {
139
+ if (editorExperiment('contextual_formatting_toolbar', true) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1') || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2')) {
140
140
  let shouldNotAddSeparator = false;
141
141
  if (resolved[i] && resolved[i + 1]) {
142
142
  var _resolved$i2, _resolved, _resolved$i3, _resolved2;
@@ -140,7 +140,7 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(options) {
140
140
  if (Array.isArray((_resolved$i = resolved[i]) === null || _resolved$i === void 0 ? void 0 : _resolved$i.items)) {
141
141
  items.push.apply(items, _toConsumableArray(resolved[i].items));
142
142
  }
143
- if (editorExperiment('contextual_formatting_toolbar', true) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2')) {
143
+ if (editorExperiment('contextual_formatting_toolbar', true) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1') || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2')) {
144
144
  var shouldNotAddSeparator = false;
145
145
  if (resolved[i] && resolved[i + 1]) {
146
146
  var _resolved$i2, _resolved, _resolved$i3, _resolved2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-toolbar",
3
- "version": "1.5.5",
3
+ "version": "1.6.0",
4
4
  "description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,11 +31,11 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/editor-common": "^99.5.0",
34
+ "@atlaskit/editor-common": "^99.6.0",
35
35
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
36
36
  "@atlaskit/editor-prosemirror": "6.2.1",
37
37
  "@atlaskit/platform-feature-flags": "^0.3.0",
38
- "@atlaskit/tmp-editor-statsig": "^2.39.0",
38
+ "@atlaskit/tmp-editor-statsig": "^2.41.0",
39
39
  "@babel/runtime": "^7.0.0",
40
40
  "bind-event-listener": "^3.0.0"
41
41
  },
@@ -47,7 +47,7 @@
47
47
  "@af/visual-regression": "*",
48
48
  "@atlaskit/ssr": "*",
49
49
  "@atlaskit/visual-regression": "*",
50
- "@testing-library/react": "^12.1.5",
50
+ "@testing-library/react": "^13.4.0",
51
51
  "typescript": "~5.4.2",
52
52
  "wait-for-expect": "^1.2.0"
53
53
  },