@atlaskit/editor-plugin-grid 5.0.0 → 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,11 @@
1
1
  # @atlaskit/editor-plugin-grid
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 5.0.0
4
10
 
5
11
  ### Patch Changes
@@ -201,6 +201,9 @@ var gridPlugin = exports.gridPlugin = function gridPlugin(_ref5) {
201
201
  },
202
202
  contentComponent: function contentComponent(_ref6) {
203
203
  var editorView = _ref6.editorView;
204
+ if (!editorView) {
205
+ return null;
206
+ }
204
207
  return /*#__PURE__*/_react.default.createElement(ContentComponent, {
205
208
  editorView: editorView,
206
209
  options: options,
@@ -195,10 +195,15 @@ export const gridPlugin = ({
195
195
  },
196
196
  contentComponent: ({
197
197
  editorView
198
- }) => /*#__PURE__*/React.createElement(ContentComponent, {
199
- editorView: editorView,
200
- options: options,
201
- api: api
202
- })
198
+ }) => {
199
+ if (!editorView) {
200
+ return null;
201
+ }
202
+ return /*#__PURE__*/React.createElement(ContentComponent, {
203
+ editorView: editorView,
204
+ options: options,
205
+ api: api
206
+ });
207
+ }
203
208
  };
204
209
  };
@@ -194,6 +194,9 @@ export var gridPlugin = function gridPlugin(_ref5) {
194
194
  },
195
195
  contentComponent: function contentComponent(_ref6) {
196
196
  var editorView = _ref6.editorView;
197
+ if (!editorView) {
198
+ return null;
199
+ }
197
200
  return /*#__PURE__*/React.createElement(ContentComponent, {
198
201
  editorView: editorView,
199
202
  options: options,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-grid",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "description": "Grid plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/editor-plugin-width": "^6.0.0",
24
+ "@atlaskit/editor-plugin-width": "^7.0.0",
25
25
  "@atlaskit/editor-prosemirror": "7.0.0",
26
26
  "@atlaskit/editor-shared-styles": "^3.6.0",
27
27
  "@babel/runtime": "^7.0.0",
@@ -29,7 +29,7 @@
29
29
  "classnames": "^2.2.5"
30
30
  },
31
31
  "peerDependencies": {
32
- "@atlaskit/editor-common": "^109.0.0",
32
+ "@atlaskit/editor-common": "^110.0.0",
33
33
  "react": "^18.2.0",
34
34
  "react-dom": "^18.2.0"
35
35
  },