@atlaskit/editor-plugin-toolbar 1.1.3 → 2.0.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,24 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`c0113eeccb2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0113eeccb2df) -
14
+ [ux] ED-29120 add a new config option for default editor preset
15
+ (`toolbar.enableNewToolbarExperience`) which allows the new toolbar to be disabled. This is needed
16
+ for editors that can't be excluded at the experiment level.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 1.1.3
4
23
 
5
24
  ### Patch Changes
@@ -22,7 +22,8 @@ var toolbarPlugin = exports.toolbarPlugin = function toolbarPlugin(_ref) {
22
22
  _ref$config = _ref.config,
23
23
  config = _ref$config === void 0 ? {
24
24
  disableSelectionToolbar: false,
25
- disableSelectionToolbarWhenPinned: false
25
+ disableSelectionToolbarWhenPinned: false,
26
+ enableNewToolbarExperience: true
26
27
  } : _ref$config;
27
28
  var disableSelectionToolbar = config.disableSelectionToolbar,
28
29
  disableSelectionToolbarWhenPinned = config.disableSelectionToolbarWhenPinned;
@@ -11,7 +11,8 @@ export const toolbarPlugin = ({
11
11
  api,
12
12
  config = {
13
13
  disableSelectionToolbar: false,
14
- disableSelectionToolbarWhenPinned: false
14
+ disableSelectionToolbarWhenPinned: false,
15
+ enableNewToolbarExperience: true
15
16
  }
16
17
  }) => {
17
18
  const {
@@ -15,7 +15,8 @@ export var toolbarPlugin = function toolbarPlugin(_ref) {
15
15
  _ref$config = _ref.config,
16
16
  config = _ref$config === void 0 ? {
17
17
  disableSelectionToolbar: false,
18
- disableSelectionToolbarWhenPinned: false
18
+ disableSelectionToolbarWhenPinned: false,
19
+ enableNewToolbarExperience: true
19
20
  } : _ref$config;
20
21
  var disableSelectionToolbar = config.disableSelectionToolbar,
21
22
  disableSelectionToolbarWhenPinned = config.disableSelectionToolbarWhenPinned;
@@ -2,5 +2,11 @@ import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
2
2
  export type ToolbarPluginOptions = {
3
3
  disableSelectionToolbar?: boolean;
4
4
  disableSelectionToolbarWhenPinned?: boolean;
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`
9
+ */
10
+ enableNewToolbarExperience?: boolean;
5
11
  };
6
12
  export type RegisterComponentsAction = (toolbarComponents: Array<RegisterComponent>, replaceItems?: boolean) => void;
@@ -2,5 +2,11 @@ import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
2
2
  export type ToolbarPluginOptions = {
3
3
  disableSelectionToolbar?: boolean;
4
4
  disableSelectionToolbarWhenPinned?: boolean;
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`
9
+ */
10
+ enableNewToolbarExperience?: boolean;
5
11
  };
6
12
  export type RegisterComponentsAction = (toolbarComponents: Array<RegisterComponent>, replaceItems?: boolean) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "1.1.3",
3
+ "version": "2.0.0",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -28,21 +28,21 @@
28
28
  "sideEffects": false,
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
- "@atlaskit/editor-plugin-connectivity": "^4.0.0",
32
- "@atlaskit/editor-plugin-editor-viewmode": "^6.0.0",
33
- "@atlaskit/editor-plugin-selection": "^4.0.0",
34
- "@atlaskit/editor-plugin-user-intent": "^2.0.0",
35
- "@atlaskit/editor-plugin-user-preferences": "^2.0.0",
31
+ "@atlaskit/editor-plugin-connectivity": "^5.0.0",
32
+ "@atlaskit/editor-plugin-editor-viewmode": "^7.0.0",
33
+ "@atlaskit/editor-plugin-selection": "^5.0.0",
34
+ "@atlaskit/editor-plugin-user-intent": "^3.0.0",
35
+ "@atlaskit/editor-plugin-user-preferences": "^3.0.0",
36
36
  "@atlaskit/editor-prosemirror": "7.0.0",
37
37
  "@atlaskit/editor-toolbar": "^0.8.0",
38
38
  "@atlaskit/editor-toolbar-model": "^0.2.0",
39
- "@atlaskit/tmp-editor-statsig": "^12.6.0",
39
+ "@atlaskit/tmp-editor-statsig": "^12.9.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "bind-event-listener": "^3.0.0",
42
42
  "react-intl-next": "npm:react-intl@^5.18.1"
43
43
  },
44
44
  "peerDependencies": {
45
- "@atlaskit/editor-common": "^108.5.0",
45
+ "@atlaskit/editor-common": "^109.0.0",
46
46
  "react": "^18.2.0"
47
47
  },
48
48
  "techstack": {