@atlaskit/editor-plugin-table 7.28.11 → 7.29.0

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,21 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 7.29.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#151190](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151190)
8
+ [`a3723b1cdede2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a3723b1cdede2) -
9
+ [ux] [ED-25037] this change bumps @atlaskit/adf-schema from 40.9.0 to 40.9.4 which makes the
10
+ blockquote selectable, adds missing marks to the PM node spec and fixes a bug that converted
11
+ pasted external images to media groups.
12
+
13
+ ### Patch Changes
14
+
15
+ - [`275ff635a350f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/275ff635a350f) -
16
+ [ux] Disable drag corner controls /w selection when nested dnd enabled
17
+ - Updated dependencies
18
+
3
19
  ## 7.28.11
4
20
 
5
21
  ### Patch Changes
@@ -85,7 +85,7 @@ var TableFloatingControls = exports.TableFloatingControls = function TableFloati
85
85
  var wrapperClassName = isDragAndDropEnabled ? isChromelessEditor ? _types.TableCssClassName.DRAG_ROW_CONTROLS_WRAPPER + ' ' + _types.TableCssClassName.TABLE_CHROMELESS : _types.TableCssClassName.DRAG_ROW_CONTROLS_WRAPPER : _types.TableCssClassName.ROW_CONTROLS_WRAPPER;
86
86
  var tablePos = (_findTable = (0, _utils.findTable)(editorView.state.selection)) === null || _findTable === void 0 ? void 0 : _findTable.pos;
87
87
  var isNested = tablePos !== undefined && (0, _nodes.isTableNested)(editorView.state, tablePos);
88
- var shouldShowCornerControls = !(featureFlagsState !== null && featureFlagsState !== void 0 && featureFlagsState.elementDragAndDrop) || isNested;
88
+ var shouldShowCornerControls = !(featureFlagsState !== null && featureFlagsState !== void 0 && featureFlagsState.elementDragAndDrop) || isNested && !(0, _experiments.editorExperiment)('nested-dnd', true);
89
89
  return (
90
90
  /*#__PURE__*/
91
91
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -85,7 +85,7 @@ export const TableFloatingControls = ({
85
85
  const wrapperClassName = isDragAndDropEnabled ? isChromelessEditor ? ClassName.DRAG_ROW_CONTROLS_WRAPPER + ' ' + ClassName.TABLE_CHROMELESS : ClassName.DRAG_ROW_CONTROLS_WRAPPER : ClassName.ROW_CONTROLS_WRAPPER;
86
86
  const tablePos = (_findTable = findTable(editorView.state.selection)) === null || _findTable === void 0 ? void 0 : _findTable.pos;
87
87
  const isNested = tablePos !== undefined && isTableNested(editorView.state, tablePos);
88
- const shouldShowCornerControls = !(featureFlagsState !== null && featureFlagsState !== void 0 && featureFlagsState.elementDragAndDrop) || isNested;
88
+ const shouldShowCornerControls = !(featureFlagsState !== null && featureFlagsState !== void 0 && featureFlagsState.elementDragAndDrop) || isNested && !editorExperiment('nested-dnd', true);
89
89
  return (
90
90
  /*#__PURE__*/
91
91
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -75,7 +75,7 @@ export var TableFloatingControls = function TableFloatingControls(_ref) {
75
75
  var wrapperClassName = isDragAndDropEnabled ? isChromelessEditor ? ClassName.DRAG_ROW_CONTROLS_WRAPPER + ' ' + ClassName.TABLE_CHROMELESS : ClassName.DRAG_ROW_CONTROLS_WRAPPER : ClassName.ROW_CONTROLS_WRAPPER;
76
76
  var tablePos = (_findTable = findTable(editorView.state.selection)) === null || _findTable === void 0 ? void 0 : _findTable.pos;
77
77
  var isNested = tablePos !== undefined && isTableNested(editorView.state, tablePos);
78
- var shouldShowCornerControls = !(featureFlagsState !== null && featureFlagsState !== void 0 && featureFlagsState.elementDragAndDrop) || isNested;
78
+ var shouldShowCornerControls = !(featureFlagsState !== null && featureFlagsState !== void 0 && featureFlagsState.elementDragAndDrop) || isNested && !editorExperiment('nested-dnd', true);
79
79
  return (
80
80
  /*#__PURE__*/
81
81
  // 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": "7.28.11",
3
+ "version": "7.29.0",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,15 +27,15 @@
27
27
  "runReact18": true
28
28
  },
29
29
  "dependencies": {
30
- "@atlaskit/adf-schema": "^40.9.0",
30
+ "@atlaskit/adf-schema": "^40.9.4",
31
31
  "@atlaskit/button": "^20.2.0",
32
- "@atlaskit/custom-steps": "^0.7.0",
33
- "@atlaskit/editor-common": "^93.2.0",
32
+ "@atlaskit/custom-steps": "^0.8.0",
33
+ "@atlaskit/editor-common": "^93.3.0",
34
34
  "@atlaskit/editor-palette": "1.6.1",
35
35
  "@atlaskit/editor-plugin-accessibility-utils": "^1.2.0",
36
- "@atlaskit/editor-plugin-analytics": "^1.8.0",
37
- "@atlaskit/editor-plugin-batch-attribute-updates": "1.0.8",
38
- "@atlaskit/editor-plugin-content-insertion": "^1.8.0",
36
+ "@atlaskit/editor-plugin-analytics": "^1.9.0",
37
+ "@atlaskit/editor-plugin-batch-attribute-updates": "1.1.0",
38
+ "@atlaskit/editor-plugin-content-insertion": "^1.9.0",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
40
40
  "@atlaskit/editor-plugin-guideline": "^1.2.0",
41
41
  "@atlaskit/editor-plugin-selection": "^1.4.0",
@@ -135,7 +135,8 @@ export const TableFloatingControls = ({
135
135
 
136
136
  const tablePos = findTable(editorView.state.selection)?.pos;
137
137
  const isNested = tablePos !== undefined && isTableNested(editorView.state, tablePos!);
138
- const shouldShowCornerControls = !featureFlagsState?.elementDragAndDrop || isNested;
138
+ const shouldShowCornerControls =
139
+ !featureFlagsState?.elementDragAndDrop || (isNested && !editorExperiment('nested-dnd', true));
139
140
 
140
141
  return (
141
142
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766