@atlaskit/editor-plugin-selection-toolbar 1.5.5 → 1.5.6
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-selection-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#107473](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107473)
|
|
8
|
+
[`962b3297548df`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/962b3297548df) -
|
|
9
|
+
[ux] Implement variation 2 for editor contextual toolbar formatting experiment
|
|
10
|
+
|
|
3
11
|
## 1.5.5
|
|
4
12
|
|
|
5
13
|
### 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.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
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.
|
|
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
|
},
|