@atlaskit/editor-plugin-table 10.12.9 → 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 +17 -0
- package/dist/cjs/nodeviews/TableComponentWithSharedState.js +1 -2
- package/dist/cjs/nodeviews/TableResizer.js +1 -1
- package/dist/cjs/nodeviews/TableStickyScrollbar.js +1 -2
- package/dist/es2019/nodeviews/TableComponentWithSharedState.js +1 -2
- package/dist/es2019/nodeviews/TableResizer.js +1 -1
- package/dist/es2019/nodeviews/TableStickyScrollbar.js +1 -2
- package/dist/esm/nodeviews/TableComponentWithSharedState.js +1 -2
- package/dist/esm/nodeviews/TableResizer.js +1 -1
- package/dist/esm/nodeviews/TableStickyScrollbar.js +1 -2
- package/package.json +3 -9
- package/src/nodeviews/TableComponentWithSharedState.tsx +1 -7
- package/src/nodeviews/TableResizer.tsx +1 -4
- package/src/nodeviews/TableStickyScrollbar.ts +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
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
|
+
|
|
12
|
+
## 10.12.10
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#176058](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/176058)
|
|
17
|
+
[`38c6611bdd480`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38c6611bdd480) -
|
|
18
|
+
ED-28085 Clean up platform_editor_hide_expand_selection_states
|
|
19
|
+
|
|
3
20
|
## 10.12.9
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
10
10
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
11
11
|
var _editorTables = require("@atlaskit/editor-tables");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
13
|
var _useInternalTablePluginStateSelector = require("../ui/hooks/useInternalTablePluginStateSelector");
|
|
15
14
|
var _TableComponent = _interopRequireDefault(require("./TableComponent"));
|
|
@@ -166,7 +165,7 @@ var TableComponentWithSharedState = exports.TableComponentWithSharedState = func
|
|
|
166
165
|
isTableScalingEnabled: options === null || options === void 0 ? void 0 : options.isTableScalingEnabled,
|
|
167
166
|
allowTableAlignment: allowTableAlignment,
|
|
168
167
|
allowTableResizing: allowTableResizing,
|
|
169
|
-
tableActive: tableActive && !isLivePageViewMode &&
|
|
168
|
+
tableActive: tableActive && !isLivePageViewMode && interaction !== 'hasNotHadInteraction',
|
|
170
169
|
ordering: ordering,
|
|
171
170
|
isResizing: isResizing,
|
|
172
171
|
getNode: getNode,
|
|
@@ -171,7 +171,7 @@ var TableResizer = exports.TableResizer = function TableResizer(_ref) {
|
|
|
171
171
|
if (typeof tableFromSelectionPosition !== 'number') {
|
|
172
172
|
return false;
|
|
173
173
|
}
|
|
174
|
-
if (interactionState === 'hasNotHadInteraction'
|
|
174
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
175
175
|
return false;
|
|
176
176
|
}
|
|
177
177
|
var currentNodePosition;
|
|
@@ -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
|
}
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
3
3
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
4
|
import { findTable } from '@atlaskit/editor-tables';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
6
|
import { useInternalTablePluginStateSelector } from '../ui/hooks/useInternalTablePluginStateSelector';
|
|
8
7
|
import TableComponent from './TableComponent';
|
|
@@ -163,7 +162,7 @@ export const TableComponentWithSharedState = ({
|
|
|
163
162
|
isTableScalingEnabled: options === null || options === void 0 ? void 0 : options.isTableScalingEnabled,
|
|
164
163
|
allowTableAlignment: allowTableAlignment,
|
|
165
164
|
allowTableResizing: allowTableResizing,
|
|
166
|
-
tableActive: tableActive && !isLivePageViewMode &&
|
|
165
|
+
tableActive: tableActive && !isLivePageViewMode && interaction !== 'hasNotHadInteraction',
|
|
167
166
|
ordering: ordering,
|
|
168
167
|
isResizing: isResizing,
|
|
169
168
|
getNode: getNode,
|
|
@@ -159,7 +159,7 @@ export const TableResizer = ({
|
|
|
159
159
|
if (typeof tableFromSelectionPosition !== 'number') {
|
|
160
160
|
return false;
|
|
161
161
|
}
|
|
162
|
-
if (interactionState === 'hasNotHadInteraction'
|
|
162
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
165
|
let currentNodePosition;
|
|
@@ -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 React from 'react';
|
|
|
2
2
|
import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
3
3
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
4
|
import { findTable } from '@atlaskit/editor-tables';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
6
|
import { useInternalTablePluginStateSelector } from '../ui/hooks/useInternalTablePluginStateSelector';
|
|
8
7
|
import TableComponent from './TableComponent';
|
|
@@ -160,7 +159,7 @@ export var TableComponentWithSharedState = function TableComponentWithSharedStat
|
|
|
160
159
|
isTableScalingEnabled: options === null || options === void 0 ? void 0 : options.isTableScalingEnabled,
|
|
161
160
|
allowTableAlignment: allowTableAlignment,
|
|
162
161
|
allowTableResizing: allowTableResizing,
|
|
163
|
-
tableActive: tableActive && !isLivePageViewMode &&
|
|
162
|
+
tableActive: tableActive && !isLivePageViewMode && interaction !== 'hasNotHadInteraction',
|
|
164
163
|
ordering: ordering,
|
|
165
164
|
isResizing: isResizing,
|
|
166
165
|
getNode: getNode,
|
|
@@ -162,7 +162,7 @@ export var TableResizer = function TableResizer(_ref) {
|
|
|
162
162
|
if (typeof tableFromSelectionPosition !== 'number') {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
|
-
if (interactionState === 'hasNotHadInteraction'
|
|
165
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
166
166
|
return false;
|
|
167
167
|
}
|
|
168
168
|
var currentNodePosition;
|
|
@@ -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
|
},
|
|
@@ -207,9 +204,6 @@
|
|
|
207
204
|
},
|
|
208
205
|
"platform_editor_table_fw_numcol_overflow_fix": {
|
|
209
206
|
"type": "boolean"
|
|
210
|
-
},
|
|
211
|
-
"platform_editor_hide_expand_selection_states": {
|
|
212
|
-
"type": "boolean"
|
|
213
207
|
}
|
|
214
208
|
}
|
|
215
209
|
}
|
|
@@ -11,7 +11,6 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
|
|
|
11
11
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
12
12
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
13
13
|
import { findTable } from '@atlaskit/editor-tables';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
15
|
|
|
17
16
|
import type { PluginInjectionAPI, TableSharedStateInternal } from '../types';
|
|
@@ -216,12 +215,7 @@ export const TableComponentWithSharedState = ({
|
|
|
216
215
|
isTableScalingEnabled={options?.isTableScalingEnabled}
|
|
217
216
|
allowTableAlignment={allowTableAlignment}
|
|
218
217
|
allowTableResizing={allowTableResizing}
|
|
219
|
-
tableActive={
|
|
220
|
-
tableActive &&
|
|
221
|
-
!isLivePageViewMode &&
|
|
222
|
-
(interaction !== 'hasNotHadInteraction' ||
|
|
223
|
-
!fg('platform_editor_hide_expand_selection_states'))
|
|
224
|
-
}
|
|
218
|
+
tableActive={tableActive && !isLivePageViewMode && interaction !== 'hasNotHadInteraction'}
|
|
225
219
|
ordering={ordering}
|
|
226
220
|
isResizing={isResizing}
|
|
227
221
|
getNode={getNode}
|
|
@@ -257,10 +257,7 @@ export const TableResizer = ({
|
|
|
257
257
|
return false;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
if (
|
|
261
|
-
interactionState === 'hasNotHadInteraction' &&
|
|
262
|
-
fg('platform_editor_hide_expand_selection_states')
|
|
263
|
-
) {
|
|
260
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
264
261
|
return false;
|
|
265
262
|
}
|
|
266
263
|
|
|
@@ -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'
|