@atlaskit/editor-plugin-table 15.6.2 → 15.6.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,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 15.6.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`20fb93093ca02`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20fb93093ca02) -
|
|
8
|
+
Remove data attribute for sticky state instead of setting false
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 15.6.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`dbe5bb7c0221c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dbe5bb7c0221c) -
|
|
16
|
+
Only set native sticky header classes if a scroll event has occurred
|
|
17
|
+
- [`dbe5bb7c0221c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dbe5bb7c0221c) -
|
|
18
|
+
Remove top margin change when native table sticky headers are enabled
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 15.6.2
|
|
4
22
|
|
|
5
23
|
### 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 _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
22
23
|
var _pluginFactory = require("../pm-plugins/plugin-factory");
|
|
23
24
|
var _pluginKey = require("../pm-plugins/plugin-key");
|
|
@@ -342,7 +343,11 @@ var TableRowNativeStickyWithFallback = exports.default = /*#__PURE__*/function (
|
|
|
342
343
|
} else {
|
|
343
344
|
_this3.dom.classList.remove(_types.TableCssClassName.NATIVE_STICKY_ACTIVE);
|
|
344
345
|
if (tableContainer && tableContainer instanceof HTMLElement) {
|
|
345
|
-
|
|
346
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_table_sticky_header_patch_3')) {
|
|
347
|
+
delete tableContainer.dataset.tableHeaderIsStuck;
|
|
348
|
+
} else {
|
|
349
|
+
tableContainer.dataset.tableHeaderIsStuck = 'false';
|
|
350
|
+
}
|
|
346
351
|
}
|
|
347
352
|
}
|
|
348
353
|
});
|
|
@@ -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 { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
11
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
11
12
|
import { pluginKey as tablePluginKey } from '../pm-plugins/plugin-key';
|
|
@@ -308,7 +309,11 @@ export default class TableRowNativeStickyWithFallback extends TableNodeView {
|
|
|
308
309
|
} else {
|
|
309
310
|
this.dom.classList.remove(ClassName.NATIVE_STICKY_ACTIVE);
|
|
310
311
|
if (tableContainer && tableContainer instanceof HTMLElement) {
|
|
311
|
-
|
|
312
|
+
if (fg('platform_editor_table_sticky_header_patch_3')) {
|
|
313
|
+
delete tableContainer.dataset.tableHeaderIsStuck;
|
|
314
|
+
} else {
|
|
315
|
+
tableContainer.dataset.tableHeaderIsStuck = 'false';
|
|
316
|
+
}
|
|
312
317
|
}
|
|
313
318
|
}
|
|
314
319
|
});
|
|
@@ -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 { fg } from '@atlaskit/platform-feature-flags';
|
|
16
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
18
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
18
19
|
import { pluginKey as tablePluginKey } from '../pm-plugins/plugin-key';
|
|
@@ -335,7 +336,11 @@ var TableRowNativeStickyWithFallback = /*#__PURE__*/function (_ref) {
|
|
|
335
336
|
} else {
|
|
336
337
|
_this3.dom.classList.remove(ClassName.NATIVE_STICKY_ACTIVE);
|
|
337
338
|
if (tableContainer && tableContainer instanceof HTMLElement) {
|
|
338
|
-
|
|
339
|
+
if (fg('platform_editor_table_sticky_header_patch_3')) {
|
|
340
|
+
delete tableContainer.dataset.tableHeaderIsStuck;
|
|
341
|
+
} else {
|
|
342
|
+
tableContainer.dataset.tableHeaderIsStuck = 'false';
|
|
343
|
+
}
|
|
339
344
|
}
|
|
340
345
|
}
|
|
341
346
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "15.6.
|
|
3
|
+
"version": "15.6.4",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,9 +37,9 @@
|
|
|
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.15",
|
|
41
41
|
"@atlaskit/editor-plugin-guideline": "^6.0.0",
|
|
42
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
42
|
+
"@atlaskit/editor-plugin-interaction": "^11.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-limited-mode": "^3.1.0",
|
|
44
44
|
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
45
45
|
"@atlaskit/editor-plugin-toolbar": "^3.4.0",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
57
57
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
58
|
-
"@atlaskit/primitives": "^
|
|
58
|
+
"@atlaskit/primitives": "^17.0.0",
|
|
59
59
|
"@atlaskit/theme": "^21.0.0",
|
|
60
60
|
"@atlaskit/tmp-editor-statsig": "^16.0.0",
|
|
61
61
|
"@atlaskit/toggle": "^15.2.0",
|
|
62
|
-
"@atlaskit/tokens": "^
|
|
62
|
+
"@atlaskit/tokens": "^9.0.0",
|
|
63
63
|
"@atlaskit/tooltip": "^20.11.0",
|
|
64
64
|
"@babel/runtime": "^7.0.0",
|
|
65
65
|
"@emotion/react": "^11.7.1",
|
|
@@ -157,6 +157,9 @@
|
|
|
157
157
|
},
|
|
158
158
|
"platform_editor_change_table_nesting_check": {
|
|
159
159
|
"type": "boolean"
|
|
160
|
+
},
|
|
161
|
+
"platform_editor_table_sticky_header_patch_3": {
|
|
162
|
+
"type": "boolean"
|
|
160
163
|
}
|
|
161
164
|
}
|
|
162
165
|
}
|