@atlaskit/editor-plugin-table 10.12.10 → 10.12.11
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 10.12.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#175471](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175471)
|
|
8
|
+
[`302b93e537e73`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/302b93e537e73) -
|
|
9
|
+
ff cleanup for platform_editor_scroll_table_flickering_fix (FD-91488)
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 10.12.10
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
13
|
var _types = require("../types");
|
|
15
14
|
var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function () {
|
|
@@ -138,7 +137,7 @@ var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function
|
|
|
138
137
|
// so the boundingClientRect.top will never be less than the rootBounds.top,
|
|
139
138
|
// so we need to check if the boundingClientRect.top is less than 20% of the rootBounds.height
|
|
140
139
|
// to determine if the bottom sentinel is above the scroll area
|
|
141
|
-
entry.boundingClientRect.top < (((_entry$rootBounds3 = entry.rootBounds) === null || _entry$rootBounds3 === void 0 ? void 0 : _entry$rootBounds3.height) || 0) * 0.2
|
|
140
|
+
entry.boundingClientRect.top < (((_entry$rootBounds3 = entry.rootBounds) === null || _entry$rootBounds3 === void 0 ? void 0 : _entry$rootBounds3.height) || 0) * 0.2;
|
|
142
141
|
this.bottomSentinelState = sentinelIsAboveScrollArea ? 'above' : entry.isIntersecting ? 'visible' : 'below';
|
|
143
142
|
this.toggle();
|
|
144
143
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
4
|
import { TableCssClassName as ClassName } from '../types';
|
|
6
5
|
export class TableStickyScrollbar {
|
|
@@ -113,7 +112,7 @@ export class TableStickyScrollbar {
|
|
|
113
112
|
// so the boundingClientRect.top will never be less than the rootBounds.top,
|
|
114
113
|
// so we need to check if the boundingClientRect.top is less than 20% of the rootBounds.height
|
|
115
114
|
// to determine if the bottom sentinel is above the scroll area
|
|
116
|
-
entry.boundingClientRect.top < (((_entry$rootBounds3 = entry.rootBounds) === null || _entry$rootBounds3 === void 0 ? void 0 : _entry$rootBounds3.height) || 0) * 0.2
|
|
115
|
+
entry.boundingClientRect.top < (((_entry$rootBounds3 = entry.rootBounds) === null || _entry$rootBounds3 === void 0 ? void 0 : _entry$rootBounds3.height) || 0) * 0.2;
|
|
117
116
|
this.bottomSentinelState = sentinelIsAboveScrollArea ? 'above' : entry.isIntersecting ? 'visible' : 'below';
|
|
118
117
|
this.toggle();
|
|
119
118
|
}
|
|
@@ -2,7 +2,6 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
6
|
import { TableCssClassName as ClassName } from '../types';
|
|
8
7
|
export var TableStickyScrollbar = /*#__PURE__*/function () {
|
|
@@ -131,7 +130,7 @@ export var TableStickyScrollbar = /*#__PURE__*/function () {
|
|
|
131
130
|
// so the boundingClientRect.top will never be less than the rootBounds.top,
|
|
132
131
|
// so we need to check if the boundingClientRect.top is less than 20% of the rootBounds.height
|
|
133
132
|
// to determine if the bottom sentinel is above the scroll area
|
|
134
|
-
entry.boundingClientRect.top < (((_entry$rootBounds3 = entry.rootBounds) === null || _entry$rootBounds3 === void 0 ? void 0 : _entry$rootBounds3.height) || 0) * 0.2
|
|
133
|
+
entry.boundingClientRect.top < (((_entry$rootBounds3 = entry.rootBounds) === null || _entry$rootBounds3 === void 0 ? void 0 : _entry$rootBounds3.height) || 0) * 0.2;
|
|
135
134
|
this.bottomSentinelState = sentinelIsAboveScrollArea ? 'above' : entry.isIntersecting ? 'visible' : 'below';
|
|
136
135
|
this.toggle();
|
|
137
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "10.12.
|
|
3
|
+
"version": "10.12.11",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-content-insertion": "^2.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
|
|
42
|
-
"@atlaskit/editor-plugin-extension": "5.5.
|
|
42
|
+
"@atlaskit/editor-plugin-extension": "5.5.12",
|
|
43
43
|
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-interaction": "^3.0.0",
|
|
45
45
|
"@atlaskit/editor-plugin-selection": "^2.2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
50
|
-
"@atlaskit/icon": "^27.
|
|
50
|
+
"@atlaskit/icon": "^27.2.0",
|
|
51
51
|
"@atlaskit/menu": "^8.0.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
@@ -163,9 +163,6 @@
|
|
|
163
163
|
"platform_editor_number_column_sticky_header_bug": {
|
|
164
164
|
"type": "boolean"
|
|
165
165
|
},
|
|
166
|
-
"platform_editor_scroll_table_flickering_fix": {
|
|
167
|
-
"type": "boolean"
|
|
168
|
-
},
|
|
169
166
|
"platform_editor_paste_full_table_inside_empty_cell": {
|
|
170
167
|
"type": "boolean"
|
|
171
168
|
},
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
4
|
|
|
6
5
|
import { TableCssClassName as ClassName } from '../types';
|
|
@@ -145,8 +144,7 @@ export class TableStickyScrollbar {
|
|
|
145
144
|
// so the boundingClientRect.top will never be less than the rootBounds.top,
|
|
146
145
|
// so we need to check if the boundingClientRect.top is less than 20% of the rootBounds.height
|
|
147
146
|
// to determine if the bottom sentinel is above the scroll area
|
|
148
|
-
|
|
149
|
-
fg('platform_editor_scroll_table_flickering_fix'));
|
|
147
|
+
entry.boundingClientRect.top < (entry.rootBounds?.height || 0) * 0.2;
|
|
150
148
|
|
|
151
149
|
this.bottomSentinelState = sentinelIsAboveScrollArea
|
|
152
150
|
? 'above'
|