@atlaskit/editor-plugin-insert-block 0.2.24 → 0.2.26

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,18 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 0.2.26
4
+
5
+ ### Patch Changes
6
+
7
+ - [#63634](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63634) [`669b7038b354`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/669b7038b354) - chenged aria-label text
8
+
9
+ ## 0.2.25
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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.
14
+ - Updated dependencies
15
+
3
16
  ## 0.2.24
4
17
 
5
18
  ### Patch Changes
@@ -40,7 +40,7 @@ var DropDownButton = exports.DropDownButton = /*#__PURE__*/_react.default.memo(f
40
40
  "aria-expanded": props['aria-expanded'],
41
41
  "aria-haspopup": props['aria-haspopup'],
42
42
  "aria-keyshortcuts": props['aria-keyshortcuts'],
43
- "aria-label": "".concat(props.label, " /"),
43
+ "aria-label": "".concat(props.label),
44
44
  iconBefore: (0, _react2.jsx)(DropDownButtonIcon, {
45
45
  label: ""
46
46
  }),
@@ -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
- if (selectedGridRows < DEFAULT_MAX_TABLE_SELECTOR_ROWS) {
78
- gridRows = selectedGridRows + 1;
79
- } else {
80
- selectedGridRows = DEFAULT_MAX_TABLE_SELECTOR_ROWS;
81
- gridRows = DEFAULT_MAX_TABLE_SELECTOR_ROWS;
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({
@@ -28,7 +28,7 @@ export const DropDownButton = /*#__PURE__*/React.memo(props => jsx(ToolbarButton
28
28
  "aria-expanded": props['aria-expanded'],
29
29
  "aria-haspopup": props['aria-haspopup'],
30
30
  "aria-keyshortcuts": props['aria-keyshortcuts'],
31
- "aria-label": `${props.label} /`,
31
+ "aria-label": `${props.label}`,
32
32
  iconBefore: jsx(DropDownButtonIcon, {
33
33
  label: ""
34
34
  }),
@@ -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
- if (selectedGridRows < DEFAULT_MAX_TABLE_SELECTOR_ROWS) {
65
- gridRows = selectedGridRows + 1;
66
- } else {
67
- selectedGridRows = DEFAULT_MAX_TABLE_SELECTOR_ROWS;
68
- gridRows = DEFAULT_MAX_TABLE_SELECTOR_ROWS;
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({
@@ -32,7 +32,7 @@ export var DropDownButton = /*#__PURE__*/React.memo(function (props) {
32
32
  "aria-expanded": props['aria-expanded'],
33
33
  "aria-haspopup": props['aria-haspopup'],
34
34
  "aria-keyshortcuts": props['aria-keyshortcuts'],
35
- "aria-label": "".concat(props.label, " /"),
35
+ "aria-label": "".concat(props.label),
36
36
  iconBefore: jsx(DropDownButtonIcon, {
37
37
  label: ""
38
38
  }),
@@ -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
- if (selectedGridRows < DEFAULT_MAX_TABLE_SELECTOR_ROWS) {
68
- gridRows = selectedGridRows + 1;
69
- } else {
70
- selectedGridRows = DEFAULT_MAX_TABLE_SELECTOR_ROWS;
71
- gridRows = DEFAULT_MAX_TABLE_SELECTOR_ROWS;
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.24",
3
+ "version": "0.2.26",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -52,14 +52,14 @@
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": "^6.1.0",
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",
59
59
  "@atlaskit/editor-shared-styles": "^2.9.0",
60
60
  "@atlaskit/emoji": "^67.6.0",
61
61
  "@atlaskit/icon": "^22.0.0",
62
- "@atlaskit/primitives": "^1.18.0",
62
+ "@atlaskit/primitives": "^1.19.0",
63
63
  "@atlaskit/theme": "^12.6.0",
64
64
  "@atlaskit/tokens": "^1.34.0",
65
65
  "@babel/runtime": "^7.0.0",