@atlaskit/editor-plugin-insert-block 6.0.1 → 6.0.4

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,27 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 6.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`39f3b00f65aa0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/39f3b00f65aa0) -
14
+ NOISSUE: Patches emotion CSS exports in various editor packages
15
+ - Updated dependencies
16
+
17
+ ## 6.0.2
18
+
19
+ ### Patch Changes
20
+
21
+ - [`6b9ea765dedda`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6b9ea765dedda) -
22
+ Patches emotion CSS exports in various editor packages
23
+ - Updated dependencies
24
+
3
25
  ## 6.0.1
4
26
 
5
27
  ### Patch Changes
@@ -119,6 +119,9 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
119
119
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
120
120
  isLastItem = _ref2.isLastItem;
121
121
  var renderNode = function renderNode(providers) {
122
+ if (!editorView) {
123
+ return null;
124
+ }
122
125
  return /*#__PURE__*/_react.default.createElement(ToolbarInsertBlockWithInjectionApi, {
123
126
  pluginInjectionApi: api,
124
127
  editorView: editorView,
@@ -138,6 +141,9 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
138
141
  });
139
142
  };
140
143
  if ((0, _experiments.editorExperiment)('platform_editor_prevent_toolbar_layout_shifts', true)) {
144
+ if (!editorView) {
145
+ return null;
146
+ }
141
147
  return /*#__PURE__*/_react.default.createElement(ToolbarInsertBlockWithInjectionApi, {
142
148
  pluginInjectionApi: api,
143
149
  editorView: editorView,
@@ -264,7 +270,6 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
264
270
  disabled = _ref4.disabled,
265
271
  isToolbarReducedSpacing = _ref4.isToolbarReducedSpacing,
266
272
  isLastItem = _ref4.isLastItem,
267
- providers = _ref4.providers,
268
273
  pluginInjectionApi = _ref4.pluginInjectionApi,
269
274
  options = _ref4.options,
270
275
  appearance = _ref4.appearance;
@@ -104,6 +104,9 @@ export const insertBlockPlugin = ({
104
104
  isLastItem
105
105
  }) => {
106
106
  const renderNode = providers => {
107
+ if (!editorView) {
108
+ return null;
109
+ }
107
110
  return /*#__PURE__*/React.createElement(ToolbarInsertBlockWithInjectionApi, {
108
111
  pluginInjectionApi: api,
109
112
  editorView: editorView,
@@ -123,6 +126,9 @@ export const insertBlockPlugin = ({
123
126
  });
124
127
  };
125
128
  if (editorExperiment('platform_editor_prevent_toolbar_layout_shifts', true)) {
129
+ if (!editorView) {
130
+ return null;
131
+ }
126
132
  return /*#__PURE__*/React.createElement(ToolbarInsertBlockWithInjectionApi, {
127
133
  pluginInjectionApi: api,
128
134
  editorView: editorView,
@@ -247,7 +253,6 @@ function ToolbarInsertBlockWithInjectionApi({
247
253
  disabled,
248
254
  isToolbarReducedSpacing,
249
255
  isLastItem,
250
- providers,
251
256
  pluginInjectionApi,
252
257
  options,
253
258
  appearance
@@ -109,6 +109,9 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
109
109
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
110
110
  isLastItem = _ref2.isLastItem;
111
111
  var renderNode = function renderNode(providers) {
112
+ if (!editorView) {
113
+ return null;
114
+ }
112
115
  return /*#__PURE__*/React.createElement(ToolbarInsertBlockWithInjectionApi, {
113
116
  pluginInjectionApi: api,
114
117
  editorView: editorView,
@@ -128,6 +131,9 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
128
131
  });
129
132
  };
130
133
  if (editorExperiment('platform_editor_prevent_toolbar_layout_shifts', true)) {
134
+ if (!editorView) {
135
+ return null;
136
+ }
131
137
  return /*#__PURE__*/React.createElement(ToolbarInsertBlockWithInjectionApi, {
132
138
  pluginInjectionApi: api,
133
139
  editorView: editorView,
@@ -254,7 +260,6 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
254
260
  disabled = _ref4.disabled,
255
261
  isToolbarReducedSpacing = _ref4.isToolbarReducedSpacing,
256
262
  isLastItem = _ref4.isLastItem,
257
- providers = _ref4.providers,
258
263
  pluginInjectionApi = _ref4.pluginInjectionApi,
259
264
  options = _ref4.options,
260
265
  appearance = _ref4.appearance;
@@ -1,2 +1,3 @@
1
- export declare const triggerWrapper: import("@emotion/react").SerializedStyles;
2
- export declare const expandWrapperStyle: import("@emotion/react").SerializedStyles;
1
+ import { type SerializedStyles } from '@emotion/react';
2
+ export declare const triggerWrapper: SerializedStyles;
3
+ export declare const expandWrapperStyle: SerializedStyles;
@@ -1,2 +1,3 @@
1
- export declare const triggerWrapper: import("@emotion/react").SerializedStyles;
2
- export declare const expandWrapperStyle: import("@emotion/react").SerializedStyles;
1
+ import { type SerializedStyles } from '@emotion/react';
2
+ export declare const triggerWrapper: SerializedStyles;
3
+ export declare const expandWrapperStyle: SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "6.0.1",
3
+ "version": "6.0.4",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,35 +30,35 @@
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
32
  "@atlaskit/button": "^23.4.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",
33
+ "@atlaskit/editor-plugin-analytics": "^5.2.0",
34
+ "@atlaskit/editor-plugin-block-type": "^8.2.0",
35
+ "@atlaskit/editor-plugin-code-block": "^7.2.0",
36
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",
37
+ "@atlaskit/editor-plugin-date": "^7.2.0",
38
+ "@atlaskit/editor-plugin-emoji": "^6.2.0",
39
+ "@atlaskit/editor-plugin-expand": "^6.2.0",
40
+ "@atlaskit/editor-plugin-extension": "^8.2.0",
41
41
  "@atlaskit/editor-plugin-feature-flags": "^4.0.0",
42
- "@atlaskit/editor-plugin-hyperlink": "^7.0.0",
42
+ "@atlaskit/editor-plugin-hyperlink": "^7.3.0",
43
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",
44
+ "@atlaskit/editor-plugin-layout": "^5.2.0",
45
+ "@atlaskit/editor-plugin-media": "^7.2.0",
46
+ "@atlaskit/editor-plugin-media-insert": "^11.2.0",
47
+ "@atlaskit/editor-plugin-mentions": "^7.2.0",
48
+ "@atlaskit/editor-plugin-metrics": "^6.2.0",
49
+ "@atlaskit/editor-plugin-panel": "^7.2.0",
50
+ "@atlaskit/editor-plugin-placeholder-text": "^5.2.0",
51
51
  "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
52
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",
53
+ "@atlaskit/editor-plugin-rule": "^5.2.0",
54
+ "@atlaskit/editor-plugin-status": "^6.2.0",
55
+ "@atlaskit/editor-plugin-table": "^14.2.0",
56
+ "@atlaskit/editor-plugin-tasks-and-decisions": "^8.4.0",
57
57
  "@atlaskit/editor-plugin-toolbar": "^2.1.0",
58
- "@atlaskit/editor-plugin-type-ahead": "^5.0.0",
58
+ "@atlaskit/editor-plugin-type-ahead": "^5.2.0",
59
59
  "@atlaskit/editor-prosemirror": "7.0.0",
60
60
  "@atlaskit/editor-shared-styles": "^3.6.0",
61
- "@atlaskit/editor-toolbar": "^0.8.0",
61
+ "@atlaskit/editor-toolbar": "^0.9.0",
62
62
  "@atlaskit/editor-toolbar-model": "^0.2.0",
63
63
  "@atlaskit/emoji": "^69.5.0",
64
64
  "@atlaskit/heading": "^5.2.0",
@@ -67,7 +67,7 @@
67
67
  "@atlaskit/platform-feature-flags": "^1.1.0",
68
68
  "@atlaskit/primitives": "^14.14.0",
69
69
  "@atlaskit/theme": "^21.0.0",
70
- "@atlaskit/tmp-editor-statsig": "^12.10.0",
70
+ "@atlaskit/tmp-editor-statsig": "^12.21.0",
71
71
  "@atlaskit/tokens": "^6.3.0",
72
72
  "@atlaskit/tooltip": "^20.4.0",
73
73
  "@babel/runtime": "^7.0.0",
@@ -78,7 +78,7 @@
78
78
  "react-virtualized": "^9.8.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "@atlaskit/editor-common": "^109.1.0",
81
+ "@atlaskit/editor-common": "^109.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"