@atlaskit/editor-plugin-insert-block 0.2.24 → 0.2.25
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 +7 -0
- package/dist/cjs/ui/ToolbarInsertBlock/index.js +1 -2
- package/dist/cjs/ui/ToolbarInsertBlock/table-selector-popup-with-listeners.js +7 -7
- package/dist/es2019/ui/ToolbarInsertBlock/index.js +1 -2
- package/dist/es2019/ui/ToolbarInsertBlock/table-selector-popup-with-listeners.js +7 -7
- package/dist/esm/ui/ToolbarInsertBlock/index.js +1 -2
- package/dist/esm/ui/ToolbarInsertBlock/table-selector-popup-with-listeners.js +7 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 0.2.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#67703](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67703) [`d5303cb0f0cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d5303cb0f0cb) - When a table is inserted via the table selector popup, an analytics event should be sent with the totalRowCount and totalColumnCount and the input method picker. Removed ASCII and TYPEAHEAD inputMethod from table selector command.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 0.2.24
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -538,8 +538,7 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
538
538
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
539
539
|
popupsScrollableElement: popupsScrollableElement,
|
|
540
540
|
handleClickOutside: this.handleTableSelectorClickOutside,
|
|
541
|
-
handleEscapeKeydown: this.handleTableSelectorPressEscape
|
|
542
|
-
"data-testid": ''
|
|
541
|
+
handleEscapeKeydown: this.handleTableSelectorPressEscape
|
|
543
542
|
});
|
|
544
543
|
}
|
|
545
544
|
}, {
|
|
@@ -72,14 +72,14 @@ var TableSelectorPopup = exports.TableSelectorPopup = function TableSelectorPopu
|
|
|
72
72
|
if (selectedGridRows < 1) {
|
|
73
73
|
selectedGridRows = 1;
|
|
74
74
|
}
|
|
75
|
+
|
|
75
76
|
// Expand grid when row selection is greater than the default grid size
|
|
76
|
-
if (selectedGridRows >= DEFAULT_TABLE_SELECTOR_ROWS) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
77
|
+
if (selectedGridRows >= DEFAULT_TABLE_SELECTOR_ROWS && selectedGridRows < DEFAULT_MAX_TABLE_SELECTOR_ROWS) {
|
|
78
|
+
gridRows = selectedGridRows + 1;
|
|
79
|
+
}
|
|
80
|
+
if (selectedGridRows >= DEFAULT_MAX_TABLE_SELECTOR_ROWS) {
|
|
81
|
+
selectedGridRows = DEFAULT_MAX_TABLE_SELECTOR_ROWS;
|
|
82
|
+
gridRows = DEFAULT_MAX_TABLE_SELECTOR_ROWS;
|
|
83
83
|
}
|
|
84
84
|
if (selectedGridCols !== size.col || selectedGridRows !== size.row) {
|
|
85
85
|
setSize({
|
|
@@ -596,8 +596,7 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
596
596
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
597
597
|
popupsScrollableElement: popupsScrollableElement,
|
|
598
598
|
handleClickOutside: this.handleTableSelectorClickOutside,
|
|
599
|
-
handleEscapeKeydown: this.handleTableSelectorPressEscape
|
|
600
|
-
"data-testid": ''
|
|
599
|
+
handleEscapeKeydown: this.handleTableSelectorPressEscape
|
|
601
600
|
});
|
|
602
601
|
}
|
|
603
602
|
render() {
|
|
@@ -59,14 +59,14 @@ export const TableSelectorPopup = props => {
|
|
|
59
59
|
if (selectedGridRows < 1) {
|
|
60
60
|
selectedGridRows = 1;
|
|
61
61
|
}
|
|
62
|
+
|
|
62
63
|
// Expand grid when row selection is greater than the default grid size
|
|
63
|
-
if (selectedGridRows >= DEFAULT_TABLE_SELECTOR_ROWS) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
64
|
+
if (selectedGridRows >= DEFAULT_TABLE_SELECTOR_ROWS && selectedGridRows < DEFAULT_MAX_TABLE_SELECTOR_ROWS) {
|
|
65
|
+
gridRows = selectedGridRows + 1;
|
|
66
|
+
}
|
|
67
|
+
if (selectedGridRows >= DEFAULT_MAX_TABLE_SELECTOR_ROWS) {
|
|
68
|
+
selectedGridRows = DEFAULT_MAX_TABLE_SELECTOR_ROWS;
|
|
69
|
+
gridRows = DEFAULT_MAX_TABLE_SELECTOR_ROWS;
|
|
70
70
|
}
|
|
71
71
|
if (selectedGridCols !== size.col || selectedGridRows !== size.row) {
|
|
72
72
|
setSize({
|
|
@@ -528,8 +528,7 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
528
528
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
529
529
|
popupsScrollableElement: popupsScrollableElement,
|
|
530
530
|
handleClickOutside: this.handleTableSelectorClickOutside,
|
|
531
|
-
handleEscapeKeydown: this.handleTableSelectorPressEscape
|
|
532
|
-
"data-testid": ''
|
|
531
|
+
handleEscapeKeydown: this.handleTableSelectorPressEscape
|
|
533
532
|
});
|
|
534
533
|
}
|
|
535
534
|
}, {
|
|
@@ -62,14 +62,14 @@ export var TableSelectorPopup = function TableSelectorPopup(props) {
|
|
|
62
62
|
if (selectedGridRows < 1) {
|
|
63
63
|
selectedGridRows = 1;
|
|
64
64
|
}
|
|
65
|
+
|
|
65
66
|
// Expand grid when row selection is greater than the default grid size
|
|
66
|
-
if (selectedGridRows >= DEFAULT_TABLE_SELECTOR_ROWS) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
67
|
+
if (selectedGridRows >= DEFAULT_TABLE_SELECTOR_ROWS && selectedGridRows < DEFAULT_MAX_TABLE_SELECTOR_ROWS) {
|
|
68
|
+
gridRows = selectedGridRows + 1;
|
|
69
|
+
}
|
|
70
|
+
if (selectedGridRows >= DEFAULT_MAX_TABLE_SELECTOR_ROWS) {
|
|
71
|
+
selectedGridRows = DEFAULT_MAX_TABLE_SELECTOR_ROWS;
|
|
72
|
+
gridRows = DEFAULT_MAX_TABLE_SELECTOR_ROWS;
|
|
73
73
|
}
|
|
74
74
|
if (selectedGridCols !== size.col || selectedGridRows !== size.row) {
|
|
75
75
|
setSize({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^0.2.0",
|
|
53
53
|
"@atlaskit/editor-plugin-rule": "^0.1.0",
|
|
54
54
|
"@atlaskit/editor-plugin-status": "^0.2.0",
|
|
55
|
-
"@atlaskit/editor-plugin-table": "^
|
|
55
|
+
"@atlaskit/editor-plugin-table": "^7.0.0",
|
|
56
56
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^0.2.0",
|
|
57
57
|
"@atlaskit/editor-plugin-type-ahead": "^0.9.0",
|
|
58
58
|
"@atlaskit/editor-prosemirror": "1.1.0",
|