@atlaskit/editor-plugin-table 13.0.2 → 13.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,19 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 13.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bb5564f5dadab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bb5564f5dadab) -
8
+ fix table local id type error
9
+ - Updated dependencies
10
+
11
+ ## 13.0.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 13.0.2
4
18
 
5
19
  ### Patch Changes
@@ -154,7 +154,7 @@ var TableView = exports.default = /*#__PURE__*/function (_ReactNodeView) {
154
154
  if (this.view.state.selection.visible) {
155
155
  selectionBookmark = this.view.state.selection.getBookmark();
156
156
  }
157
- if ((0, _expValEquals.expValEquals)('platform_editor_tables_scaling_css', 'isEnabled', true)) {
157
+ if (this.dom && (0, _expValEquals.expValEquals)('platform_editor_tables_scaling_css', 'isEnabled', true)) {
158
158
  this.dom.setAttribute('data-ssr-placeholder', "table-nodeview-".concat(pmNode.attrs.localId));
159
159
  this.dom.setAttribute('data-ssr-placeholder-replace', "table-nodeview-".concat(pmNode.attrs.localId));
160
160
  }
@@ -195,7 +195,7 @@ var TableView = exports.default = /*#__PURE__*/function (_ReactNodeView) {
195
195
  _this$options4,
196
196
  _this$getEditorFeatur2;
197
197
  if (!this.table) {
198
- return;
198
+ return; // width / attribute application to actual table will happen later when table is set
199
199
  }
200
200
  var attrs = tableAttributes(node);
201
201
  Object.keys(attrs).forEach(function (attr) {
@@ -126,7 +126,7 @@ export default class TableView extends ReactNodeView {
126
126
  if (this.view.state.selection.visible) {
127
127
  selectionBookmark = this.view.state.selection.getBookmark();
128
128
  }
129
- if (expValEquals('platform_editor_tables_scaling_css', 'isEnabled', true)) {
129
+ if (this.dom && expValEquals('platform_editor_tables_scaling_css', 'isEnabled', true)) {
130
130
  this.dom.setAttribute('data-ssr-placeholder', `table-nodeview-${pmNode.attrs.localId}`);
131
131
  this.dom.setAttribute('data-ssr-placeholder-replace', `table-nodeview-${pmNode.attrs.localId}`);
132
132
  }
@@ -162,7 +162,7 @@ export default class TableView extends ReactNodeView {
162
162
  setDomAttrs(node) {
163
163
  var _this$options3, _this$options4, _this$getEditorFeatur2;
164
164
  if (!this.table) {
165
- return;
165
+ return; // width / attribute application to actual table will happen later when table is set
166
166
  }
167
167
  const attrs = tableAttributes(node);
168
168
  Object.keys(attrs).forEach(attr => {
@@ -147,7 +147,7 @@ var TableView = /*#__PURE__*/function (_ReactNodeView) {
147
147
  if (this.view.state.selection.visible) {
148
148
  selectionBookmark = this.view.state.selection.getBookmark();
149
149
  }
150
- if (expValEquals('platform_editor_tables_scaling_css', 'isEnabled', true)) {
150
+ if (this.dom && expValEquals('platform_editor_tables_scaling_css', 'isEnabled', true)) {
151
151
  this.dom.setAttribute('data-ssr-placeholder', "table-nodeview-".concat(pmNode.attrs.localId));
152
152
  this.dom.setAttribute('data-ssr-placeholder-replace', "table-nodeview-".concat(pmNode.attrs.localId));
153
153
  }
@@ -188,7 +188,7 @@ var TableView = /*#__PURE__*/function (_ReactNodeView) {
188
188
  _this$options4,
189
189
  _this$getEditorFeatur2;
190
190
  if (!this.table) {
191
- return;
191
+ return; // width / attribute application to actual table will happen later when table is set
192
192
  }
193
193
  var attrs = tableAttributes(node);
194
194
  Object.keys(attrs).forEach(function (attr) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "13.0.2",
3
+ "version": "13.0.4",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/editor-plugin-batch-attribute-updates": "^4.0.0",
38
38
  "@atlaskit/editor-plugin-content-insertion": "^4.0.0",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^6.0.0",
40
- "@atlaskit/editor-plugin-extension": "7.0.0",
40
+ "@atlaskit/editor-plugin-extension": "7.0.1",
41
41
  "@atlaskit/editor-plugin-guideline": "^4.0.0",
42
42
  "@atlaskit/editor-plugin-interaction": "^6.0.0",
43
43
  "@atlaskit/editor-plugin-limited-mode": "^1.0.0",