@atlaskit/editor-plugin-table 10.12.9 → 10.12.10
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 +8 -0
- package/dist/cjs/nodeviews/TableComponentWithSharedState.js +1 -2
- package/dist/cjs/nodeviews/TableResizer.js +1 -1
- package/dist/es2019/nodeviews/TableComponentWithSharedState.js +1 -2
- package/dist/es2019/nodeviews/TableResizer.js +1 -1
- package/dist/esm/nodeviews/TableComponentWithSharedState.js +1 -2
- package/dist/esm/nodeviews/TableResizer.js +1 -1
- package/package.json +1 -4
- package/src/nodeviews/TableComponentWithSharedState.tsx +1 -7
- package/src/nodeviews/TableResizer.tsx +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 10.12.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#176058](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/176058)
|
|
8
|
+
[`38c6611bdd480`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38c6611bdd480) -
|
|
9
|
+
ED-28085 Clean up platform_editor_hide_expand_selection_states
|
|
10
|
+
|
|
3
11
|
## 10.12.9
|
|
4
12
|
|
|
5
13
|
### 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;
|
|
@@ -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;
|
|
@@ -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;
|
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.10",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -207,9 +207,6 @@
|
|
|
207
207
|
},
|
|
208
208
|
"platform_editor_table_fw_numcol_overflow_fix": {
|
|
209
209
|
"type": "boolean"
|
|
210
|
-
},
|
|
211
|
-
"platform_editor_hide_expand_selection_states": {
|
|
212
|
-
"type": "boolean"
|
|
213
210
|
}
|
|
214
211
|
}
|
|
215
212
|
}
|
|
@@ -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
|
|