@atlaskit/editor-plugin-table 15.4.11 → 15.4.12
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,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 15.4.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e3779b75fdeca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e3779b75fdeca) -
|
|
8
|
+
EDITOR-1643 Promote syncBlock and bodiedSyncBlock to full schema
|
|
9
|
+
- [`a3a20e1d45d82`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a3a20e1d45d82) -
|
|
10
|
+
Fix table col control positioning for new dnd anchor experiment
|
|
11
|
+
- [`7eedf0747e9e2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7eedf0747e9e2) -
|
|
12
|
+
Fix table sticky header detection
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 15.4.11
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -18,6 +18,7 @@ var _nodeVisibility = require("@atlaskit/editor-common/node-visibility");
|
|
|
18
18
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
19
19
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
20
20
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
21
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
22
|
var _pluginFactory = require("../pm-plugins/plugin-factory");
|
|
22
23
|
var _pluginKey = require("../pm-plugins/plugin-key");
|
|
23
24
|
var _commands = require("../pm-plugins/sticky-headers/commands");
|
|
@@ -323,7 +324,7 @@ var TableRowNativeStickyWithFallback = exports.default = /*#__PURE__*/function (
|
|
|
323
324
|
}
|
|
324
325
|
var options = {
|
|
325
326
|
root: this.editorScrollableElement,
|
|
326
|
-
rootMargin: "-".concat(_styles.tableMarginTop +
|
|
327
|
+
rootMargin: "-".concat(_styles.tableMarginTop + 1, "px 0px 0px 0px"),
|
|
327
328
|
threshold: 1
|
|
328
329
|
};
|
|
329
330
|
this.stickyStateObserver = new IntersectionObserver(function (entries) {
|
|
@@ -361,6 +362,10 @@ var TableRowNativeStickyWithFallback = exports.default = /*#__PURE__*/function (
|
|
|
361
362
|
}
|
|
362
363
|
if (this.isHeaderRow && !this.isInNestedTable) {
|
|
363
364
|
var _this$stickyStateObse;
|
|
365
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true)) {
|
|
366
|
+
var _this$dom$getAttribut;
|
|
367
|
+
this.dom.style.setProperty('anchor-name', (_this$dom$getAttribut = this.dom.getAttribute('data-node-anchor')) !== null && _this$dom$getAttribut !== void 0 ? _this$dom$getAttribut : '');
|
|
368
|
+
}
|
|
364
369
|
this.initOverflowObserver();
|
|
365
370
|
var closestTable = this.dom.closest('table');
|
|
366
371
|
if (closestTable) {
|
|
@@ -6,6 +6,7 @@ import { nodeVisibilityManager } from '@atlaskit/editor-common/node-visibility';
|
|
|
6
6
|
import { tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
7
7
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
8
8
|
import { findParentNodeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
9
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
10
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
10
11
|
import { pluginKey as tablePluginKey } from '../pm-plugins/plugin-key';
|
|
11
12
|
import { updateStickyState } from '../pm-plugins/sticky-headers/commands';
|
|
@@ -289,7 +290,7 @@ export default class TableRowNativeStickyWithFallback extends TableNodeView {
|
|
|
289
290
|
}
|
|
290
291
|
const options = {
|
|
291
292
|
root: this.editorScrollableElement,
|
|
292
|
-
rootMargin: `-${tableMarginTop +
|
|
293
|
+
rootMargin: `-${tableMarginTop + 1}px 0px 0px 0px`,
|
|
293
294
|
threshold: 1
|
|
294
295
|
};
|
|
295
296
|
this.stickyStateObserver = new IntersectionObserver(entries => {
|
|
@@ -324,6 +325,10 @@ export default class TableRowNativeStickyWithFallback extends TableNodeView {
|
|
|
324
325
|
}
|
|
325
326
|
if (this.isHeaderRow && !this.isInNestedTable) {
|
|
326
327
|
var _this$stickyStateObse;
|
|
328
|
+
if (expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true)) {
|
|
329
|
+
var _this$dom$getAttribut;
|
|
330
|
+
this.dom.style.setProperty('anchor-name', (_this$dom$getAttribut = this.dom.getAttribute('data-node-anchor')) !== null && _this$dom$getAttribut !== void 0 ? _this$dom$getAttribut : '');
|
|
331
|
+
}
|
|
327
332
|
this.initOverflowObserver();
|
|
328
333
|
const closestTable = this.dom.closest('table');
|
|
329
334
|
if (closestTable) {
|
|
@@ -13,6 +13,7 @@ import { nodeVisibilityManager } from '@atlaskit/editor-common/node-visibility';
|
|
|
13
13
|
import { tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
14
14
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
15
15
|
import { findParentNodeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
16
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
17
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
17
18
|
import { pluginKey as tablePluginKey } from '../pm-plugins/plugin-key';
|
|
18
19
|
import { updateStickyState } from '../pm-plugins/sticky-headers/commands';
|
|
@@ -316,7 +317,7 @@ var TableRowNativeStickyWithFallback = /*#__PURE__*/function (_ref) {
|
|
|
316
317
|
}
|
|
317
318
|
var options = {
|
|
318
319
|
root: this.editorScrollableElement,
|
|
319
|
-
rootMargin: "-".concat(tableMarginTop +
|
|
320
|
+
rootMargin: "-".concat(tableMarginTop + 1, "px 0px 0px 0px"),
|
|
320
321
|
threshold: 1
|
|
321
322
|
};
|
|
322
323
|
this.stickyStateObserver = new IntersectionObserver(function (entries) {
|
|
@@ -354,6 +355,10 @@ var TableRowNativeStickyWithFallback = /*#__PURE__*/function (_ref) {
|
|
|
354
355
|
}
|
|
355
356
|
if (this.isHeaderRow && !this.isInNestedTable) {
|
|
356
357
|
var _this$stickyStateObse;
|
|
358
|
+
if (expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true)) {
|
|
359
|
+
var _this$dom$getAttribut;
|
|
360
|
+
this.dom.style.setProperty('anchor-name', (_this$dom$getAttribut = this.dom.getAttribute('data-node-anchor')) !== null && _this$dom$getAttribut !== void 0 ? _this$dom$getAttribut : '');
|
|
361
|
+
}
|
|
357
362
|
this.initOverflowObserver();
|
|
358
363
|
var closestTable = this.dom.closest('table');
|
|
359
364
|
if (closestTable) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "15.4.
|
|
3
|
+
"version": "15.4.12",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"singleton": true
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/adf-schema": "^51.
|
|
31
|
+
"@atlaskit/adf-schema": "^51.5.1",
|
|
32
32
|
"@atlaskit/button": "^23.6.0",
|
|
33
33
|
"@atlaskit/custom-steps": "^0.16.0",
|
|
34
34
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
@@ -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.9",
|
|
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",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
59
59
|
"@atlaskit/primitives": "^16.4.0",
|
|
60
60
|
"@atlaskit/theme": "^21.0.0",
|
|
61
|
-
"@atlaskit/tmp-editor-statsig": "^14.
|
|
61
|
+
"@atlaskit/tmp-editor-statsig": "^14.5.0",
|
|
62
62
|
"@atlaskit/toggle": "^15.1.0",
|
|
63
63
|
"@atlaskit/tokens": "^8.4.0",
|
|
64
64
|
"@atlaskit/tooltip": "^20.10.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"uuid": "^3.1.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^110.
|
|
74
|
+
"@atlaskit/editor-common": "^110.38.0",
|
|
75
75
|
"react": "^18.2.0",
|
|
76
76
|
"react-dom": "^18.2.0",
|
|
77
77
|
"react-intl-next": "npm:react-intl@^5.18.1"
|