@atlaskit/editor-plugin-selection-toolbar 5.0.6 → 5.0.7

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
+ ## 5.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c0113eeccb2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0113eeccb2df) -
8
+ [ux] ED-29120 add a new config option for default editor preset
9
+ (`toolbar.enableNewToolbarExperience`) which allows the new toolbar to be disabled. This is needed
10
+ for editors that can't be excluded at the experiment level.
11
+ - Updated dependencies
12
+
3
13
  ## 5.0.6
4
14
 
5
15
  ### Patch Changes
@@ -42,7 +42,7 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
42
42
  config = _ref.config;
43
43
  var __selectionToolbarHandlers = [];
44
44
  var primaryToolbarComponent;
45
- var isToolbarAIFCEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
45
+ var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
46
46
  exposure: true
47
47
  });
48
48
  var userPreferencesProvider = config.userPreferencesProvider,
@@ -32,7 +32,7 @@ export const selectionToolbarPlugin = ({
32
32
  }) => {
33
33
  const __selectionToolbarHandlers = [];
34
34
  let primaryToolbarComponent;
35
- const isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
35
+ const isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
36
36
  exposure: true
37
37
  });
38
38
  const {
@@ -35,7 +35,7 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(_ref) {
35
35
  config = _ref.config;
36
36
  var __selectionToolbarHandlers = [];
37
37
  var primaryToolbarComponent;
38
- var isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
38
+ var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
39
39
  exposure: true
40
40
  });
41
41
  var userPreferencesProvider = config.userPreferencesProvider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-toolbar",
3
- "version": "5.0.6",
3
+ "version": "5.0.7",
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-connectivity": "^4.0.0",
36
36
  "@atlaskit/editor-plugin-editor-viewmode": "^6.0.0",
37
37
  "@atlaskit/editor-plugin-primary-toolbar": "^5.0.0",
38
- "@atlaskit/editor-plugin-toolbar": "^1.1.0",
38
+ "@atlaskit/editor-plugin-toolbar": "^1.2.0",
39
39
  "@atlaskit/editor-plugin-user-intent": "^2.0.0",
40
40
  "@atlaskit/editor-plugin-user-preferences": "^2.0.0",
41
41
  "@atlaskit/editor-prosemirror": "7.0.0",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/icon-lab": "^5.7.0",
46
46
  "@atlaskit/menu": "^8.4.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/tmp-editor-statsig": "^12.7.0",
48
+ "@atlaskit/tmp-editor-statsig": "^12.8.0",
49
49
  "@atlaskit/tokens": "^6.3.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "bind-event-listener": "^3.0.0"