@atlaskit/editor-plugin-table 15.3.19 → 15.3.21
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 +14 -0
- package/dist/cjs/nodeviews/TableRowNativeStickyWithFallback.js +8 -5
- package/dist/es2019/nodeviews/TableRowNativeStickyWithFallback.js +8 -5
- package/dist/es2019/pm-plugins/utils/anchor.js +1 -1
- package/dist/esm/nodeviews/TableRowNativeStickyWithFallback.js +8 -5
- package/dist/esm/pm-plugins/utils/anchor.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 15.3.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 15.3.20
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`cf07075f295f9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cf07075f295f9) -
|
|
14
|
+
Remove casting to HTMLElement in TableRowNativeStickyWithFallback
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 15.3.19
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -290,13 +290,14 @@ var TableRowNativeStickyWithFallback = exports.default = /*#__PURE__*/function (
|
|
|
290
290
|
};
|
|
291
291
|
this.overflowObserver = new IntersectionObserver(function (entries, observer) {
|
|
292
292
|
entries.forEach(function (entry) {
|
|
293
|
+
if (!(observer.root instanceof HTMLElement)) {
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
293
296
|
if (entry.isIntersecting) {
|
|
294
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
295
297
|
observer.root.classList.add(_types.TableCssClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW);
|
|
296
298
|
_this2.dom.classList.add(_types.TableCssClassName.NATIVE_STICKY);
|
|
297
299
|
_this2.isNativeSticky = true;
|
|
298
300
|
} else {
|
|
299
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
300
301
|
observer.root.classList.remove(_types.TableCssClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW);
|
|
301
302
|
_this2.dom.classList.remove(_types.TableCssClassName.NATIVE_STICKY);
|
|
302
303
|
_this2.isNativeSticky = false;
|
|
@@ -320,10 +321,12 @@ var TableRowNativeStickyWithFallback = exports.default = /*#__PURE__*/function (
|
|
|
320
321
|
return;
|
|
321
322
|
}
|
|
322
323
|
if (this.isHeaderRow && !this.isInNestedTable) {
|
|
323
|
-
var _this$overflowObserve;
|
|
324
324
|
this.initOverflowObserver();
|
|
325
|
-
|
|
326
|
-
(
|
|
325
|
+
var closestTable = this.dom.closest('table');
|
|
326
|
+
if (closestTable) {
|
|
327
|
+
var _this$overflowObserve;
|
|
328
|
+
(_this$overflowObserve = this.overflowObserver) === null || _this$overflowObserve === void 0 || _this$overflowObserve.observe(closestTable);
|
|
329
|
+
}
|
|
327
330
|
}
|
|
328
331
|
this.resizeObserver.observe(this.dom);
|
|
329
332
|
if (this.editorScrollableElement) {
|
|
@@ -259,13 +259,14 @@ export default class TableRowNativeStickyWithFallback extends TableNodeView {
|
|
|
259
259
|
};
|
|
260
260
|
this.overflowObserver = new IntersectionObserver((entries, observer) => {
|
|
261
261
|
entries.forEach(entry => {
|
|
262
|
+
if (!(observer.root instanceof HTMLElement)) {
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
262
265
|
if (entry.isIntersecting) {
|
|
263
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
264
266
|
observer.root.classList.add(ClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW);
|
|
265
267
|
this.dom.classList.add(ClassName.NATIVE_STICKY);
|
|
266
268
|
this.isNativeSticky = true;
|
|
267
269
|
} else {
|
|
268
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
269
270
|
observer.root.classList.remove(ClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW);
|
|
270
271
|
this.dom.classList.remove(ClassName.NATIVE_STICKY);
|
|
271
272
|
this.isNativeSticky = false;
|
|
@@ -286,10 +287,12 @@ export default class TableRowNativeStickyWithFallback extends TableNodeView {
|
|
|
286
287
|
return;
|
|
287
288
|
}
|
|
288
289
|
if (this.isHeaderRow && !this.isInNestedTable) {
|
|
289
|
-
var _this$overflowObserve;
|
|
290
290
|
this.initOverflowObserver();
|
|
291
|
-
|
|
292
|
-
(
|
|
291
|
+
const closestTable = this.dom.closest('table');
|
|
292
|
+
if (closestTable) {
|
|
293
|
+
var _this$overflowObserve;
|
|
294
|
+
(_this$overflowObserve = this.overflowObserver) === null || _this$overflowObserve === void 0 ? void 0 : _this$overflowObserve.observe(closestTable);
|
|
295
|
+
}
|
|
293
296
|
}
|
|
294
297
|
this.resizeObserver.observe(this.dom);
|
|
295
298
|
if (this.editorScrollableElement) {
|
|
@@ -283,13 +283,14 @@ var TableRowNativeStickyWithFallback = /*#__PURE__*/function (_ref) {
|
|
|
283
283
|
};
|
|
284
284
|
this.overflowObserver = new IntersectionObserver(function (entries, observer) {
|
|
285
285
|
entries.forEach(function (entry) {
|
|
286
|
+
if (!(observer.root instanceof HTMLElement)) {
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
286
289
|
if (entry.isIntersecting) {
|
|
287
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
288
290
|
observer.root.classList.add(ClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW);
|
|
289
291
|
_this2.dom.classList.add(ClassName.NATIVE_STICKY);
|
|
290
292
|
_this2.isNativeSticky = true;
|
|
291
293
|
} else {
|
|
292
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
293
294
|
observer.root.classList.remove(ClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW);
|
|
294
295
|
_this2.dom.classList.remove(ClassName.NATIVE_STICKY);
|
|
295
296
|
_this2.isNativeSticky = false;
|
|
@@ -313,10 +314,12 @@ var TableRowNativeStickyWithFallback = /*#__PURE__*/function (_ref) {
|
|
|
313
314
|
return;
|
|
314
315
|
}
|
|
315
316
|
if (this.isHeaderRow && !this.isInNestedTable) {
|
|
316
|
-
var _this$overflowObserve;
|
|
317
317
|
this.initOverflowObserver();
|
|
318
|
-
|
|
319
|
-
(
|
|
318
|
+
var closestTable = this.dom.closest('table');
|
|
319
|
+
if (closestTable) {
|
|
320
|
+
var _this$overflowObserve;
|
|
321
|
+
(_this$overflowObserve = this.overflowObserver) === null || _this$overflowObserve === void 0 || _this$overflowObserve.observe(closestTable);
|
|
322
|
+
}
|
|
320
323
|
}
|
|
321
324
|
this.resizeObserver.observe(this.dom);
|
|
322
325
|
if (this.editorScrollableElement) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "15.3.
|
|
3
|
+
"version": "15.3.21",
|
|
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": "^6.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-content-insertion": "^6.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-extension": "9.2.
|
|
40
|
+
"@atlaskit/editor-plugin-extension": "9.2.3",
|
|
41
41
|
"@atlaskit/editor-plugin-guideline": "^6.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-interaction": "^10.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-limited-mode": "^3.1.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@atlaskit/primitives": "^16.1.0",
|
|
60
60
|
"@atlaskit/react-ufo": "^4.14.0",
|
|
61
61
|
"@atlaskit/theme": "^21.0.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^13.38.0",
|
|
63
63
|
"@atlaskit/toggle": "^15.1.0",
|
|
64
64
|
"@atlaskit/tokens": "^8.0.0",
|
|
65
65
|
"@atlaskit/tooltip": "^20.8.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^110.
|
|
75
|
+
"@atlaskit/editor-common": "^110.29.0",
|
|
76
76
|
"react": "^18.2.0",
|
|
77
77
|
"react-dom": "^18.2.0",
|
|
78
78
|
"react-intl-next": "npm:react-intl@^5.18.1"
|