@atlaskit/editor-plugin-insert-block 5.0.3 → 5.0.5

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,23 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 5.0.5
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
+
13
+ ## 5.0.4
14
+
15
+ ### Patch Changes
16
+
17
+ - [`db97eb262cc5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/db97eb262cc5a) -
18
+ replace platform_editor_toolbar_aifc with separate experiements for jira and confluence
19
+ - Updated dependencies
20
+
3
21
  ## 5.0.3
4
22
 
5
23
  ### Patch Changes
@@ -15,7 +15,6 @@ var _types = require("@atlaskit/editor-common/types");
15
15
  var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
16
16
  var _consts = require("@atlaskit/editor-plugin-block-type/consts");
17
17
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
19
18
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
20
19
  var _toggleInsertBlock = require("./pm-plugins/toggleInsertBlock");
21
20
  var _toolbarComponents = require("./ui/toolbar-components");
@@ -162,7 +161,9 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
162
161
  renderNode: renderNode
163
162
  });
164
163
  };
165
- if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc', 'isEnabled', true)) {
164
+ if (Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
165
+ exposure: true
166
+ })) {
166
167
  var _api$toolbar, _api$codeBlock, _api$panel, _api$blockType;
167
168
  api === null || api === void 0 || (_api$toolbar = api.toolbar) === null || _api$toolbar === void 0 || _api$toolbar.actions.registerComponents((0, _toolbarComponents.getToolbarComponents)({
168
169
  api: api,
@@ -7,7 +7,6 @@ import { ToolbarSize } from '@atlaskit/editor-common/types';
7
7
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
8
8
  import { BLOCK_QUOTE, CODE_BLOCK, PANEL } from '@atlaskit/editor-plugin-block-type/consts';
9
9
  import { fg } from '@atlaskit/platform-feature-flags';
10
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
10
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
12
11
  import { toggleInsertBlockPmKey, toggleInsertBlockPmPlugin } from './pm-plugins/toggleInsertBlock';
13
12
  import { getToolbarComponents } from './ui/toolbar-components';
@@ -147,7 +146,9 @@ export const insertBlockPlugin = ({
147
146
  renderNode: renderNode
148
147
  });
149
148
  };
150
- if (expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true)) {
149
+ if (Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
150
+ exposure: true
151
+ })) {
151
152
  var _api$toolbar, _api$codeBlock, _api$panel, _api$blockType;
152
153
  api === null || api === void 0 ? void 0 : (_api$toolbar = api.toolbar) === null || _api$toolbar === void 0 ? void 0 : _api$toolbar.actions.registerComponents(getToolbarComponents({
153
154
  api,
@@ -7,7 +7,6 @@ import { ToolbarSize } from '@atlaskit/editor-common/types';
7
7
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
8
8
  import { BLOCK_QUOTE, CODE_BLOCK, PANEL } from '@atlaskit/editor-plugin-block-type/consts';
9
9
  import { fg } from '@atlaskit/platform-feature-flags';
10
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
10
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
12
11
  import { toggleInsertBlockPmKey, toggleInsertBlockPmPlugin } from './pm-plugins/toggleInsertBlock';
13
12
  import { getToolbarComponents } from './ui/toolbar-components';
@@ -152,7 +151,9 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
152
151
  renderNode: renderNode
153
152
  });
154
153
  };
155
- if (expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true)) {
154
+ if (Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
155
+ exposure: true
156
+ })) {
156
157
  var _api$toolbar, _api$codeBlock, _api$panel, _api$blockType;
157
158
  api === null || api === void 0 || (_api$toolbar = api.toolbar) === null || _api$toolbar === void 0 || _api$toolbar.actions.registerComponents(getToolbarComponents({
158
159
  api: api,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "5.0.3",
3
+ "version": "5.0.5",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  "@atlaskit/button": "^23.4.0",
33
33
  "@atlaskit/editor-plugin-analytics": "^4.0.0",
34
34
  "@atlaskit/editor-plugin-block-type": "^7.1.0",
35
- "@atlaskit/editor-plugin-code-block": "^6.0.0",
35
+ "@atlaskit/editor-plugin-code-block": "^6.1.0",
36
36
  "@atlaskit/editor-plugin-connectivity": "^4.0.0",
37
37
  "@atlaskit/editor-plugin-date": "^6.0.0",
38
38
  "@atlaskit/editor-plugin-emoji": "^5.0.0",
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/editor-plugin-hyperlink": "^6.0.0",
43
43
  "@atlaskit/editor-plugin-image-upload": "^4.0.0",
44
44
  "@atlaskit/editor-plugin-layout": "^4.0.0",
45
- "@atlaskit/editor-plugin-media": "^6.0.0",
45
+ "@atlaskit/editor-plugin-media": "^6.2.0",
46
46
  "@atlaskit/editor-plugin-media-insert": "^10.0.0",
47
47
  "@atlaskit/editor-plugin-mentions": "^6.0.0",
48
48
  "@atlaskit/editor-plugin-metrics": "^5.0.0",
@@ -52,9 +52,9 @@
52
52
  "@atlaskit/editor-plugin-quick-insert": "^4.0.0",
53
53
  "@atlaskit/editor-plugin-rule": "^4.0.0",
54
54
  "@atlaskit/editor-plugin-status": "^5.0.0",
55
- "@atlaskit/editor-plugin-table": "^13.0.0",
55
+ "@atlaskit/editor-plugin-table": "^13.1.0",
56
56
  "@atlaskit/editor-plugin-tasks-and-decisions": "^7.0.0",
57
- "@atlaskit/editor-plugin-toolbar": "^1.1.0",
57
+ "@atlaskit/editor-plugin-toolbar": "^1.2.0",
58
58
  "@atlaskit/editor-plugin-type-ahead": "^4.0.0",
59
59
  "@atlaskit/editor-prosemirror": "7.0.0",
60
60
  "@atlaskit/editor-shared-styles": "^3.6.0",
@@ -65,10 +65,10 @@
65
65
  "@atlaskit/icon": "^28.1.0",
66
66
  "@atlaskit/icon-lab": "^5.7.0",
67
67
  "@atlaskit/platform-feature-flags": "^1.1.0",
68
- "@atlaskit/primitives": "^14.13.0",
68
+ "@atlaskit/primitives": "^14.14.0",
69
69
  "@atlaskit/theme": "^20.0.0",
70
- "@atlaskit/tmp-editor-statsig": "^12.4.0",
71
- "@atlaskit/tokens": "^6.2.0",
70
+ "@atlaskit/tmp-editor-statsig": "^12.8.0",
71
+ "@atlaskit/tokens": "^6.3.0",
72
72
  "@atlaskit/tooltip": "^20.4.0",
73
73
  "@babel/runtime": "^7.0.0",
74
74
  "@emotion/react": "^11.7.1",
@@ -78,7 +78,7 @@
78
78
  "react-virtualized": "^9.8.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "@atlaskit/editor-common": "^108.2.0",
81
+ "@atlaskit/editor-common": "^108.6.0",
82
82
  "react": "^18.2.0",
83
83
  "react-dom": "^18.2.0",
84
84
  "react-intl-next": "npm:react-intl@^5.18.1"