@atlaskit/editor-plugin-toolbar 3.2.0 → 3.2.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,17 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 3.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`14b9e966da4dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/14b9e966da4dd) -
8
+ [ux] ED-29517 Toolbar and offline banner is overlapping
9
+ - [`ef001bf65d48f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef001bf65d48f) -
10
+ Remove usage of `platform_editor_toolbar_aifc` inside editor packages - instead rely on checking
11
+ for new toolbar plugin option, make `enableNewToolbarExperience` mandatory for consumers to opt in
12
+ to new toolbar experience
13
+ - Updated dependencies
14
+
3
15
  ## 3.2.0
4
16
 
5
17
  ### Minor Changes
@@ -70,8 +70,7 @@ var toolbarPlugin = exports.toolbarPlugin = function toolbarPlugin(_ref) {
70
70
  _ref$config = _ref.config,
71
71
  config = _ref$config === void 0 ? {
72
72
  disableSelectionToolbar: false,
73
- disableSelectionToolbarWhenPinned: false,
74
- enableNewToolbarExperience: true
73
+ disableSelectionToolbarWhenPinned: false
75
74
  } : _ref$config;
76
75
  var disableSelectionToolbar = config.disableSelectionToolbar,
77
76
  disableSelectionToolbarWhenPinned = config.disableSelectionToolbarWhenPinned;
@@ -120,7 +120,8 @@ var SelectionToolbar = exports.SelectionToolbar = function SelectionToolbar(_ref
120
120
  }, /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarProvider, {
121
121
  editorView: editorView,
122
122
  editorToolbarDockingPreference: editorToolbarDockingPreference,
123
- editorViewMode: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode
123
+ editorViewMode: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode,
124
+ isOffline: isOffline
124
125
  }, /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarUIProvider, {
125
126
  api: api,
126
127
  isDisabled: patch6Enabled ? isDisabled : isOffline
@@ -55,8 +55,7 @@ export const toolbarPlugin = ({
55
55
  api,
56
56
  config = {
57
57
  disableSelectionToolbar: false,
58
- disableSelectionToolbarWhenPinned: false,
59
- enableNewToolbarExperience: true
58
+ disableSelectionToolbarWhenPinned: false
60
59
  }
61
60
  }) => {
62
61
  const {
@@ -113,7 +113,8 @@ export const SelectionToolbar = ({
113
113
  }, /*#__PURE__*/React.createElement(EditorToolbarProvider, {
114
114
  editorView: editorView,
115
115
  editorToolbarDockingPreference: editorToolbarDockingPreference,
116
- editorViewMode: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode
116
+ editorViewMode: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode,
117
+ isOffline: isOffline
117
118
  }, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
118
119
  api: api,
119
120
  isDisabled: patch6Enabled ? isDisabled : isOffline
@@ -63,8 +63,7 @@ export var toolbarPlugin = function toolbarPlugin(_ref) {
63
63
  _ref$config = _ref.config,
64
64
  config = _ref$config === void 0 ? {
65
65
  disableSelectionToolbar: false,
66
- disableSelectionToolbarWhenPinned: false,
67
- enableNewToolbarExperience: true
66
+ disableSelectionToolbarWhenPinned: false
68
67
  } : _ref$config;
69
68
  var disableSelectionToolbar = config.disableSelectionToolbar,
70
69
  disableSelectionToolbarWhenPinned = config.disableSelectionToolbarWhenPinned;
@@ -112,7 +112,8 @@ export var SelectionToolbar = function SelectionToolbar(_ref) {
112
112
  }, /*#__PURE__*/React.createElement(EditorToolbarProvider, {
113
113
  editorView: editorView,
114
114
  editorToolbarDockingPreference: editorToolbarDockingPreference,
115
- editorViewMode: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode
115
+ editorViewMode: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode,
116
+ isOffline: isOffline
116
117
  }, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
117
118
  api: api,
118
119
  isDisabled: patch6Enabled ? isDisabled : isOffline
@@ -3,9 +3,7 @@ export type ToolbarPluginOptions = {
3
3
  disableSelectionToolbar?: boolean;
4
4
  disableSelectionToolbarWhenPinned?: boolean;
5
5
  /**
6
- * Option to enable new toolbar designs - use this to disable the entire toolbar experience where it can't be disabled via the experiment
7
- *
8
- * Default: `true`
6
+ * Option to enable new toolbar designs
9
7
  */
10
8
  enableNewToolbarExperience?: boolean;
11
9
  };
@@ -3,9 +3,7 @@ export type ToolbarPluginOptions = {
3
3
  disableSelectionToolbar?: boolean;
4
4
  disableSelectionToolbarWhenPinned?: boolean;
5
5
  /**
6
- * Option to enable new toolbar designs - use this to disable the entire toolbar experience where it can't be disabled via the experiment
7
- *
8
- * Default: `true`
6
+ * Option to enable new toolbar designs
9
7
  */
10
8
  enableNewToolbarExperience?: boolean;
11
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/editor-toolbar": "^0.15.0",
40
40
  "@atlaskit/editor-toolbar-model": "^0.2.0",
41
41
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
42
- "@atlaskit/tmp-editor-statsig": "^13.8.0",
42
+ "@atlaskit/tmp-editor-statsig": "^13.10.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "bind-event-listener": "^3.0.0",
45
45
  "react-intl-next": "npm:react-intl@^5.18.1"