@atlaskit/editor-plugin-table 10.6.4 → 10.6.5
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.6.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#133802](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/133802)
|
|
8
|
+
[`f523489c8b68a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f523489c8b68a) -
|
|
9
|
+
[ux] ED-27217 Clean up experiment platform_editor_element_drag_and_drop_nested
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 10.6.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -10,7 +10,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
11
11
|
var _utils = require("@atlaskit/editor-tables/utils");
|
|
12
12
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
13
|
var _commands = require("../../pm-plugins/commands");
|
|
15
14
|
var _nodes = require("../../pm-plugins/utils/nodes");
|
|
16
15
|
var _types = require("../../types");
|
|
@@ -90,7 +89,7 @@ var TableFloatingControls = exports.TableFloatingControls = function TableFloati
|
|
|
90
89
|
// Ignored via go/ees005
|
|
91
90
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
92
91
|
var isNested = tablePos !== undefined && (0, _nodes.isTableNested)(editorView.state, tablePos);
|
|
93
|
-
var shouldShowCornerControls = isNested && !(0,
|
|
92
|
+
var shouldShowCornerControls = isNested && !(0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes');
|
|
94
93
|
return (
|
|
95
94
|
/*#__PURE__*/
|
|
96
95
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -2,7 +2,6 @@ import React, { useCallback } from 'react';
|
|
|
2
2
|
import { browser } from '@atlaskit/editor-common/browser';
|
|
3
3
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { hoverCell, hoverRows, selectRow, selectRows } from '../../pm-plugins/commands';
|
|
7
6
|
import { isTableNested } from '../../pm-plugins/utils/nodes';
|
|
8
7
|
import { TableCssClassName as ClassName } from '../../types';
|
|
@@ -89,7 +88,7 @@ export const TableFloatingControls = ({
|
|
|
89
88
|
// Ignored via go/ees005
|
|
90
89
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
91
90
|
const isNested = tablePos !== undefined && isTableNested(editorView.state, tablePos);
|
|
92
|
-
const shouldShowCornerControls = isNested && !
|
|
91
|
+
const shouldShowCornerControls = isNested && !fg('platform_editor_nested_dnd_styles_changes');
|
|
93
92
|
return (
|
|
94
93
|
/*#__PURE__*/
|
|
95
94
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -2,7 +2,6 @@ import React, { useCallback } from 'react';
|
|
|
2
2
|
import { browser } from '@atlaskit/editor-common/browser';
|
|
3
3
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { hoverCell, hoverRows, selectRow, selectRows } from '../../pm-plugins/commands';
|
|
7
6
|
import { isTableNested } from '../../pm-plugins/utils/nodes';
|
|
8
7
|
import { TableCssClassName as ClassName } from '../../types';
|
|
@@ -80,7 +79,7 @@ export var TableFloatingControls = function TableFloatingControls(_ref) {
|
|
|
80
79
|
// Ignored via go/ees005
|
|
81
80
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
82
81
|
var isNested = tablePos !== undefined && isTableNested(editorView.state, tablePos);
|
|
83
|
-
var shouldShowCornerControls = isNested && !
|
|
82
|
+
var shouldShowCornerControls = isNested && !fg('platform_editor_nested_dnd_styles_changes');
|
|
84
83
|
return (
|
|
85
84
|
/*#__PURE__*/
|
|
86
85
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "10.6.
|
|
3
|
+
"version": "10.6.5",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
33
33
|
"@atlaskit/button": "^23.0.0",
|
|
34
34
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
35
|
-
"@atlaskit/editor-common": "^103.
|
|
35
|
+
"@atlaskit/editor-common": "^103.1.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-accessibility-utils": "^2.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
@@ -183,6 +183,9 @@
|
|
|
183
183
|
"platform_editor_paste_full_table_inside_empty_cell": {
|
|
184
184
|
"type": "boolean"
|
|
185
185
|
},
|
|
186
|
+
"platform_editor_nested_dnd_styles_changes": {
|
|
187
|
+
"type": "boolean"
|
|
188
|
+
},
|
|
186
189
|
"platform_editor_numbered_column_misalignment": {
|
|
187
190
|
"type": "boolean"
|
|
188
191
|
},
|
|
@@ -8,7 +8,6 @@ import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
|
8
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
11
|
|
|
13
12
|
import { hoverCell, hoverRows, selectRow, selectRows } from '../../pm-plugins/commands';
|
|
14
13
|
import type { RowStickyState } from '../../pm-plugins/sticky-headers/types';
|
|
@@ -139,7 +138,7 @@ export const TableFloatingControls = ({
|
|
|
139
138
|
// Ignored via go/ees005
|
|
140
139
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
141
140
|
const isNested = tablePos !== undefined && isTableNested(editorView.state, tablePos!);
|
|
142
|
-
const shouldShowCornerControls = isNested && !
|
|
141
|
+
const shouldShowCornerControls = isNested && !fg('platform_editor_nested_dnd_styles_changes');
|
|
143
142
|
|
|
144
143
|
return (
|
|
145
144
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|