@atlaskit/editor-plugin-insert-block 1.1.0 → 1.1.2

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,17 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 1.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#77599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77599) [`a7b1a6b762eb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a7b1a6b762eb) - [ux] Table picker popup displays text using column x rows pattern and table picker button uses label column by row.
8
+
9
+ ## 1.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.1.0
4
16
 
5
17
  ### Minor Changes
@@ -39,7 +39,7 @@ var from = function from(init) {
39
39
  name: init.name
40
40
  },
41
41
  elemBefore: (0, _react2.jsx)(init.Icon, {
42
- label: init.content
42
+ label: ""
43
43
  }),
44
44
  elemAfter: init.shortcut ?
45
45
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
@@ -127,7 +127,10 @@ var TableSelectorPopup = function TableSelectorPopup(_ref3) {
127
127
  col: col,
128
128
  row: row,
129
129
  onClick: onSelection,
130
- label: "".concat(formatMessage(_messages.toolbarInsertBlockMessages.tableSizeSelectorButton), " ").concat(row, " x ").concat(col),
130
+ label: "".concat(formatMessage(_messages.toolbarInsertBlockMessages.tableSizeSelectorButton, {
131
+ numberOfColumns: col,
132
+ numberOfRows: row
133
+ })),
131
134
  onKeyDown: onKeyDown,
132
135
  isFocused: isCurrentFocused,
133
136
  handleInitialButtonFocus: handleInitialButtonFocus
@@ -135,6 +138,6 @@ var TableSelectorPopup = function TableSelectorPopup(_ref3) {
135
138
  })), (0, _react2.jsx)("span", {
136
139
  css: selectionSizeTextStyles,
137
140
  "aria-hidden": true
138
- }, "".concat(selectedRow, " x ").concat(selectedCol)));
141
+ }, "".concat(selectedCol, " x ").concat(selectedRow)));
139
142
  };
140
143
  var _default = exports.default = (0, _reactIntlNext.injectIntl)(TableSelectorPopup);
@@ -30,7 +30,7 @@ const from = init => ({
30
30
  name: init.name
31
31
  },
32
32
  elemBefore: jsx(init.Icon, {
33
- label: init.content
33
+ label: ""
34
34
  }),
35
35
  elemAfter: init.shortcut ?
36
36
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
@@ -120,7 +120,10 @@ const TableSelectorPopup = ({
120
120
  col: col,
121
121
  row: row,
122
122
  onClick: onSelection,
123
- label: `${formatMessage(messages.tableSizeSelectorButton)} ${row} x ${col}`,
123
+ label: `${formatMessage(messages.tableSizeSelectorButton, {
124
+ numberOfColumns: col,
125
+ numberOfRows: row
126
+ })}`,
124
127
  onKeyDown: onKeyDown,
125
128
  isFocused: isCurrentFocused,
126
129
  handleInitialButtonFocus: handleInitialButtonFocus
@@ -128,6 +131,6 @@ const TableSelectorPopup = ({
128
131
  })), jsx("span", {
129
132
  css: selectionSizeTextStyles,
130
133
  "aria-hidden": true
131
- }, `${selectedRow} x ${selectedCol}`));
134
+ }, `${selectedCol} x ${selectedRow}`));
132
135
  };
133
136
  export default injectIntl(TableSelectorPopup);
@@ -31,7 +31,7 @@ var from = function from(init) {
31
31
  name: init.name
32
32
  },
33
33
  elemBefore: jsx(init.Icon, {
34
- label: init.content
34
+ label: ""
35
35
  }),
36
36
  elemAfter: init.shortcut ?
37
37
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
@@ -120,7 +120,10 @@ var TableSelectorPopup = function TableSelectorPopup(_ref3) {
120
120
  col: col,
121
121
  row: row,
122
122
  onClick: onSelection,
123
- label: "".concat(formatMessage(messages.tableSizeSelectorButton), " ").concat(row, " x ").concat(col),
123
+ label: "".concat(formatMessage(messages.tableSizeSelectorButton, {
124
+ numberOfColumns: col,
125
+ numberOfRows: row
126
+ })),
124
127
  onKeyDown: onKeyDown,
125
128
  isFocused: isCurrentFocused,
126
129
  handleInitialButtonFocus: handleInitialButtonFocus
@@ -128,6 +131,6 @@ var TableSelectorPopup = function TableSelectorPopup(_ref3) {
128
131
  })), jsx("span", {
129
132
  css: selectionSizeTextStyles,
130
133
  "aria-hidden": true
131
- }, "".concat(selectedRow, " x ").concat(selectedCol)));
134
+ }, "".concat(selectedCol, " x ").concat(selectedRow)));
132
135
  };
133
136
  export default injectIntl(TableSelectorPopup);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,34 +33,34 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/editor-common": "^78.0.0",
36
+ "@atlaskit/editor-common": "^78.8.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.0.0",
38
38
  "@atlaskit/editor-plugin-block-type": "^3.0.0",
39
- "@atlaskit/editor-plugin-code-block": "^1.0.0",
39
+ "@atlaskit/editor-plugin-code-block": "^1.1.0",
40
40
  "@atlaskit/editor-plugin-date": "^1.0.0",
41
41
  "@atlaskit/editor-plugin-emoji": "^1.1.0",
42
- "@atlaskit/editor-plugin-expand": "^1.0.0",
42
+ "@atlaskit/editor-plugin-expand": "^1.2.0",
43
43
  "@atlaskit/editor-plugin-extension": "^1.0.0",
44
44
  "@atlaskit/editor-plugin-hyperlink": "^1.0.0",
45
45
  "@atlaskit/editor-plugin-image-upload": "^1.0.0",
46
46
  "@atlaskit/editor-plugin-layout": "^1.0.0",
47
- "@atlaskit/editor-plugin-media": "^1.2.0",
47
+ "@atlaskit/editor-plugin-media": "^1.4.0",
48
48
  "@atlaskit/editor-plugin-mentions": "^1.0.0",
49
49
  "@atlaskit/editor-plugin-panel": "^1.0.0",
50
50
  "@atlaskit/editor-plugin-placeholder-text": "^1.0.0",
51
51
  "@atlaskit/editor-plugin-quick-insert": "^1.0.0",
52
52
  "@atlaskit/editor-plugin-rule": "^1.1.0",
53
53
  "@atlaskit/editor-plugin-status": "^1.0.0",
54
- "@atlaskit/editor-plugin-table": "^7.3.0",
54
+ "@atlaskit/editor-plugin-table": "^7.4.0",
55
55
  "@atlaskit/editor-plugin-tasks-and-decisions": "^1.0.0",
56
56
  "@atlaskit/editor-plugin-type-ahead": "^1.0.0",
57
57
  "@atlaskit/editor-prosemirror": "3.0.0",
58
58
  "@atlaskit/editor-shared-styles": "^2.9.0",
59
59
  "@atlaskit/emoji": "^67.6.0",
60
- "@atlaskit/icon": "^22.0.0",
61
- "@atlaskit/primitives": "^2.0.0",
60
+ "@atlaskit/icon": "^22.1.0",
61
+ "@atlaskit/primitives": "^3.1.0",
62
62
  "@atlaskit/theme": "^12.6.0",
63
- "@atlaskit/tokens": "^1.37.0",
63
+ "@atlaskit/tokens": "^1.38.0",
64
64
  "@babel/runtime": "^7.0.0",
65
65
  "@emotion/react": "^11.7.1",
66
66
  "bind-event-listener": "^2.1.1",