@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 +6 -0
- package/dist/cjs/gridPlugin.js +3 -0
- package/dist/es2019/gridPlugin.js +10 -5
- package/dist/esm/gridPlugin.js +3 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/cjs/gridPlugin.js
CHANGED
|
@@ -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
|
-
}) =>
|
|
199
|
-
editorView
|
|
200
|
-
|
|
201
|
-
|
|
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
|
};
|
package/dist/esm/gridPlugin.js
CHANGED
|
@@ -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": "
|
|
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": "^
|
|
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": "^
|
|
32
|
+
"@atlaskit/editor-common": "^110.0.0",
|
|
33
33
|
"react": "^18.2.0",
|
|
34
34
|
"react-dom": "^18.2.0"
|
|
35
35
|
},
|