@atlaskit/editor-plugin-insert-block 5.0.4 → 6.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,21 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.0.5
10
+
11
+ ### Patch 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
+ - Updated dependencies
18
+
3
19
  ## 5.0.4
4
20
 
5
21
  ### Patch Changes
@@ -161,7 +161,7 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
161
161
  renderNode: renderNode
162
162
  });
163
163
  };
164
- if ((0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
164
+ if (Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
165
165
  exposure: true
166
166
  })) {
167
167
  var _api$toolbar, _api$codeBlock, _api$panel, _api$blockType;
@@ -146,7 +146,7 @@ export const insertBlockPlugin = ({
146
146
  renderNode: renderNode
147
147
  });
148
148
  };
149
- if (editorExperiment('platform_editor_toolbar_aifc', true, {
149
+ if (Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
150
150
  exposure: true
151
151
  })) {
152
152
  var _api$toolbar, _api$codeBlock, _api$panel, _api$blockType;
@@ -151,7 +151,7 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
151
151
  renderNode: renderNode
152
152
  });
153
153
  };
154
- if (editorExperiment('platform_editor_toolbar_aifc', true, {
154
+ if (Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
155
155
  exposure: true
156
156
  })) {
157
157
  var _api$toolbar, _api$codeBlock, _api$panel, _api$blockType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "5.0.4",
3
+ "version": "6.0.0",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,32 +30,32 @@
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
32
  "@atlaskit/button": "^23.4.0",
33
- "@atlaskit/editor-plugin-analytics": "^4.0.0",
34
- "@atlaskit/editor-plugin-block-type": "^7.1.0",
35
- "@atlaskit/editor-plugin-code-block": "^6.0.0",
36
- "@atlaskit/editor-plugin-connectivity": "^4.0.0",
37
- "@atlaskit/editor-plugin-date": "^6.0.0",
38
- "@atlaskit/editor-plugin-emoji": "^5.0.0",
39
- "@atlaskit/editor-plugin-expand": "^5.0.0",
40
- "@atlaskit/editor-plugin-extension": "^7.0.0",
41
- "@atlaskit/editor-plugin-feature-flags": "^3.0.0",
42
- "@atlaskit/editor-plugin-hyperlink": "^6.0.0",
43
- "@atlaskit/editor-plugin-image-upload": "^4.0.0",
44
- "@atlaskit/editor-plugin-layout": "^4.0.0",
45
- "@atlaskit/editor-plugin-media": "^6.0.0",
46
- "@atlaskit/editor-plugin-media-insert": "^10.0.0",
47
- "@atlaskit/editor-plugin-mentions": "^6.0.0",
48
- "@atlaskit/editor-plugin-metrics": "^5.0.0",
49
- "@atlaskit/editor-plugin-panel": "^6.0.0",
50
- "@atlaskit/editor-plugin-placeholder-text": "^4.0.0",
51
- "@atlaskit/editor-plugin-primary-toolbar": "^5.0.0",
52
- "@atlaskit/editor-plugin-quick-insert": "^4.0.0",
53
- "@atlaskit/editor-plugin-rule": "^4.0.0",
54
- "@atlaskit/editor-plugin-status": "^5.0.0",
55
- "@atlaskit/editor-plugin-table": "^13.0.0",
56
- "@atlaskit/editor-plugin-tasks-and-decisions": "^7.0.0",
57
- "@atlaskit/editor-plugin-toolbar": "^1.1.0",
58
- "@atlaskit/editor-plugin-type-ahead": "^4.0.0",
33
+ "@atlaskit/editor-plugin-analytics": "^5.0.0",
34
+ "@atlaskit/editor-plugin-block-type": "^8.0.0",
35
+ "@atlaskit/editor-plugin-code-block": "^7.0.0",
36
+ "@atlaskit/editor-plugin-connectivity": "^5.0.0",
37
+ "@atlaskit/editor-plugin-date": "^7.0.0",
38
+ "@atlaskit/editor-plugin-emoji": "^6.0.0",
39
+ "@atlaskit/editor-plugin-expand": "^6.0.0",
40
+ "@atlaskit/editor-plugin-extension": "^8.0.0",
41
+ "@atlaskit/editor-plugin-feature-flags": "^4.0.0",
42
+ "@atlaskit/editor-plugin-hyperlink": "^7.0.0",
43
+ "@atlaskit/editor-plugin-image-upload": "^5.0.0",
44
+ "@atlaskit/editor-plugin-layout": "^5.0.0",
45
+ "@atlaskit/editor-plugin-media": "^7.0.0",
46
+ "@atlaskit/editor-plugin-media-insert": "^11.0.0",
47
+ "@atlaskit/editor-plugin-mentions": "^7.0.0",
48
+ "@atlaskit/editor-plugin-metrics": "^6.0.0",
49
+ "@atlaskit/editor-plugin-panel": "^7.0.0",
50
+ "@atlaskit/editor-plugin-placeholder-text": "^5.0.0",
51
+ "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
52
+ "@atlaskit/editor-plugin-quick-insert": "^5.0.0",
53
+ "@atlaskit/editor-plugin-rule": "^5.0.0",
54
+ "@atlaskit/editor-plugin-status": "^6.0.0",
55
+ "@atlaskit/editor-plugin-table": "^14.0.0",
56
+ "@atlaskit/editor-plugin-tasks-and-decisions": "^8.0.0",
57
+ "@atlaskit/editor-plugin-toolbar": "^2.0.0",
58
+ "@atlaskit/editor-plugin-type-ahead": "^5.0.0",
59
59
  "@atlaskit/editor-prosemirror": "7.0.0",
60
60
  "@atlaskit/editor-shared-styles": "^3.6.0",
61
61
  "@atlaskit/editor-toolbar": "^0.8.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.5.0",
71
- "@atlaskit/tokens": "^6.2.0",
70
+ "@atlaskit/tmp-editor-statsig": "^12.9.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.3.0",
81
+ "@atlaskit/editor-common": "^109.0.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"