@atlaskit/editor-plugin-selection-toolbar 1.8.0 → 1.8.1

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,15 @@
1
1
  # @atlaskit/editor-plugin-selection-toolbar
2
2
 
3
+ ## 1.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#115259](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115259)
8
+ [`a3150808f308a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a3150808f308a) -
9
+ Add new forceStaticToolbar config option to floating toolbar and add it to panel and table. Add
10
+ new contextual toolbar plugin which controls expand and collapse logic for toolbar options.
11
+ - Updated dependencies
12
+
3
13
  ## 1.8.0
4
14
 
5
15
  ### Minor Changes
@@ -167,7 +167,7 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
167
167
  }
168
168
  }
169
169
  }
170
- if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
170
+ if (items.length > 0 && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
171
171
  items.push.apply(items, (0, _toConsumableArray2.default)(_overflowToolbarConfig.overflowToolbarConfig));
172
172
  }
173
173
  var calcToolbarPosition = options.config.preferenceToolbarAboveSelection ? _utils.calculateToolbarPositionAboveSelection : _utils.calculateToolbarPositionTrackHead;
@@ -156,7 +156,7 @@ export const selectionToolbarPlugin = options => {
156
156
  }
157
157
  }
158
158
  }
159
- if (editorExperiment('platform_editor_controls', 'variant1')) {
159
+ if (items.length > 0 && editorExperiment('platform_editor_controls', 'variant1')) {
160
160
  items.push(...overflowToolbarConfig);
161
161
  }
162
162
  const calcToolbarPosition = options.config.preferenceToolbarAboveSelection ? calculateToolbarPositionAboveSelection : calculateToolbarPositionTrackHead;
@@ -160,7 +160,7 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(options) {
160
160
  }
161
161
  }
162
162
  }
163
- if (editorExperiment('platform_editor_controls', 'variant1')) {
163
+ if (items.length > 0 && editorExperiment('platform_editor_controls', 'variant1')) {
164
164
  items.push.apply(items, _toConsumableArray(overflowToolbarConfig));
165
165
  }
166
166
  var calcToolbarPosition = options.config.preferenceToolbarAboveSelection ? calculateToolbarPositionAboveSelection : calculateToolbarPositionTrackHead;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-toolbar",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
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.15.0",
34
+ "@atlaskit/editor-common": "^99.18.0",
35
35
  "@atlaskit/editor-plugin-editor-viewmode": "^2.2.0",
36
36
  "@atlaskit/editor-prosemirror": "7.0.0",
37
- "@atlaskit/platform-feature-flags": "^1.0.0",
38
- "@atlaskit/tmp-editor-statsig": "^2.46.0",
37
+ "@atlaskit/platform-feature-flags": "^1.1.0",
38
+ "@atlaskit/tmp-editor-statsig": "^2.47.0",
39
39
  "@babel/runtime": "^7.0.0",
40
40
  "bind-event-listener": "^3.0.0"
41
41
  },