@atlaskit/editor-plugin-table 7.28.10 → 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 +25 -0
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +3 -3
- package/dist/cjs/ui/TableFloatingControls/index.js +1 -1
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +3 -3
- package/dist/es2019/ui/TableFloatingControls/index.js +1 -1
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +3 -3
- package/dist/esm/ui/TableFloatingControls/index.js +1 -1
- package/package.json +8 -11
- package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +3 -9
- package/src/ui/TableFloatingControls/index.tsx +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
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
|
+
|
|
19
|
+
## 7.28.11
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#151050](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151050)
|
|
24
|
+
[`1081477a1c33d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1081477a1c33d) -
|
|
25
|
+
[ED-24446] This change cleans up the feature gate for the table cell options hotkeys announcement
|
|
26
|
+
fix.
|
|
27
|
+
|
|
3
28
|
## 7.28.10
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -255,7 +255,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
255
255
|
label: formatMessage(_messages.tableMessages.addColumnRight),
|
|
256
256
|
LEGACY_fallbackIcon: _icons.AddColRightIcon
|
|
257
257
|
})) : undefined,
|
|
258
|
-
'aria-label': (0,
|
|
258
|
+
'aria-label': (0, _keymaps.tooltip)(_keymaps.addColumnAfter, String(content))
|
|
259
259
|
};
|
|
260
260
|
});
|
|
261
261
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createInsertRowItem", function () {
|
|
@@ -282,7 +282,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
282
282
|
label: formatMessage(_messages.tableMessages.addRowBelow),
|
|
283
283
|
LEGACY_fallbackIcon: _icons.AddRowBelowIcon
|
|
284
284
|
})) : undefined,
|
|
285
|
-
'aria-label': (0,
|
|
285
|
+
'aria-label': (0, _keymaps.tooltip)(_keymaps.addRowAfter, String(content))
|
|
286
286
|
};
|
|
287
287
|
});
|
|
288
288
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createClearCellsItem", function () {
|
|
@@ -320,7 +320,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
320
320
|
}),
|
|
321
321
|
LEGACY_fallbackIcon: _crossCircle.default
|
|
322
322
|
})) : undefined,
|
|
323
|
-
'aria-label': (0,
|
|
323
|
+
'aria-label': (0, _keymaps.tooltip)(_keymaps.backspace, String(content))
|
|
324
324
|
};
|
|
325
325
|
});
|
|
326
326
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createDeleteColumnItem", function () {
|
|
@@ -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
|
|
@@ -248,7 +248,7 @@ export class ContextualMenu extends Component {
|
|
|
248
248
|
label: formatMessage(messages.addColumnRight),
|
|
249
249
|
LEGACY_fallbackIcon: AddColRightIcon
|
|
250
250
|
})) : undefined,
|
|
251
|
-
'aria-label':
|
|
251
|
+
'aria-label': tooltip(addColumnAfter, String(content))
|
|
252
252
|
};
|
|
253
253
|
});
|
|
254
254
|
_defineProperty(this, "createInsertRowItem", () => {
|
|
@@ -279,7 +279,7 @@ export class ContextualMenu extends Component {
|
|
|
279
279
|
label: formatMessage(messages.addRowBelow),
|
|
280
280
|
LEGACY_fallbackIcon: AddRowBelowIcon
|
|
281
281
|
})) : undefined,
|
|
282
|
-
'aria-label':
|
|
282
|
+
'aria-label': tooltip(addRowAfter, String(content))
|
|
283
283
|
};
|
|
284
284
|
});
|
|
285
285
|
_defineProperty(this, "createClearCellsItem", () => {
|
|
@@ -323,7 +323,7 @@ export class ContextualMenu extends Component {
|
|
|
323
323
|
}),
|
|
324
324
|
LEGACY_fallbackIcon: CrossCircleIcon
|
|
325
325
|
})) : undefined,
|
|
326
|
-
'aria-label':
|
|
326
|
+
'aria-label': tooltip(backspace, String(content))
|
|
327
327
|
};
|
|
328
328
|
});
|
|
329
329
|
_defineProperty(this, "createDeleteColumnItem", () => {
|
|
@@ -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
|
|
@@ -248,7 +248,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
248
248
|
label: formatMessage(messages.addColumnRight),
|
|
249
249
|
LEGACY_fallbackIcon: AddColRightIcon
|
|
250
250
|
})) : undefined,
|
|
251
|
-
'aria-label':
|
|
251
|
+
'aria-label': tooltip(addColumnAfter, String(content))
|
|
252
252
|
};
|
|
253
253
|
});
|
|
254
254
|
_defineProperty(_assertThisInitialized(_this), "createInsertRowItem", function () {
|
|
@@ -275,7 +275,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
275
275
|
label: formatMessage(messages.addRowBelow),
|
|
276
276
|
LEGACY_fallbackIcon: AddRowBelowIcon
|
|
277
277
|
})) : undefined,
|
|
278
|
-
'aria-label':
|
|
278
|
+
'aria-label': tooltip(addRowAfter, String(content))
|
|
279
279
|
};
|
|
280
280
|
});
|
|
281
281
|
_defineProperty(_assertThisInitialized(_this), "createClearCellsItem", function () {
|
|
@@ -313,7 +313,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
313
313
|
}),
|
|
314
314
|
LEGACY_fallbackIcon: CrossCircleIcon
|
|
315
315
|
})) : undefined,
|
|
316
|
-
'aria-label':
|
|
316
|
+
'aria-label': tooltip(backspace, String(content))
|
|
317
317
|
};
|
|
318
318
|
});
|
|
319
319
|
_defineProperty(_assertThisInitialized(_this), "createDeleteColumnItem", function () {
|
|
@@ -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.
|
|
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.
|
|
30
|
+
"@atlaskit/adf-schema": "^40.9.4",
|
|
31
31
|
"@atlaskit/button": "^20.2.0",
|
|
32
|
-
"@atlaskit/custom-steps": "^0.
|
|
33
|
-
"@atlaskit/editor-common": "^93.
|
|
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.
|
|
37
|
-
"@atlaskit/editor-plugin-batch-attribute-updates": "1.0
|
|
38
|
-
"@atlaskit/editor-plugin-content-insertion": "^1.
|
|
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",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/icon": "^22.22.0",
|
|
47
47
|
"@atlaskit/menu": "^2.12.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
|
-
"@atlaskit/pragmatic-drag-and-drop": "^1.
|
|
49
|
+
"@atlaskit/pragmatic-drag-and-drop": "^1.4.0",
|
|
50
50
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.4.0",
|
|
51
51
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
52
52
|
"@atlaskit/primitives": "^12.2.0",
|
|
@@ -112,9 +112,6 @@
|
|
|
112
112
|
"platform_editor_a11y_table_context_menu": {
|
|
113
113
|
"type": "boolean"
|
|
114
114
|
},
|
|
115
|
-
"platform_editor_announce_cell_options_hotkeys": {
|
|
116
|
-
"type": "boolean"
|
|
117
|
-
},
|
|
118
115
|
"platform_editor_breakout_use_css": {
|
|
119
116
|
"type": "boolean"
|
|
120
117
|
},
|
|
@@ -417,9 +417,7 @@ export class ContextualMenu extends Component<Props & WrappedComponentProps, Sta
|
|
|
417
417
|
/>
|
|
418
418
|
</Box>
|
|
419
419
|
) : undefined,
|
|
420
|
-
'aria-label':
|
|
421
|
-
? tooltip(addColumnAfter, String(content))
|
|
422
|
-
: undefined,
|
|
420
|
+
'aria-label': tooltip(addColumnAfter, String(content)),
|
|
423
421
|
} as MenuItem;
|
|
424
422
|
};
|
|
425
423
|
|
|
@@ -446,9 +444,7 @@ export class ContextualMenu extends Component<Props & WrappedComponentProps, Sta
|
|
|
446
444
|
/>
|
|
447
445
|
</Box>
|
|
448
446
|
) : undefined,
|
|
449
|
-
'aria-label':
|
|
450
|
-
? tooltip(addRowAfter, String(content))
|
|
451
|
-
: undefined,
|
|
447
|
+
'aria-label': tooltip(addRowAfter, String(content)),
|
|
452
448
|
} as MenuItem;
|
|
453
449
|
};
|
|
454
450
|
|
|
@@ -484,9 +480,7 @@ export class ContextualMenu extends Component<Props & WrappedComponentProps, Sta
|
|
|
484
480
|
/>
|
|
485
481
|
</Box>
|
|
486
482
|
) : undefined,
|
|
487
|
-
'aria-label':
|
|
488
|
-
? tooltip(backspace, String(content))
|
|
489
|
-
: undefined,
|
|
483
|
+
'aria-label': tooltip(backspace, String(content)),
|
|
490
484
|
} as MenuItem;
|
|
491
485
|
};
|
|
492
486
|
|
|
@@ -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 =
|
|
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
|