@atlaskit/editor-plugin-type-ahead 1.2.2 → 1.2.4

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,22 @@
1
1
  # @atlaskit/editor-plugin-type-ahead
2
2
 
3
+ ## 1.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
8
+ [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
9
+ [ED-23332] Update adf-schema package to 36.10.1
10
+ - Updated dependencies
11
+
12
+ ## 1.2.3
13
+
14
+ ### Patch Changes
15
+
16
+ - [#99848](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99848)
17
+ [`add0947043d4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/add0947043d4) -
18
+ ECA11Y-18: Remove inappropriate aria-labels from Typeahead dropdown
19
+
3
20
  ## 1.2.2
4
21
 
5
22
  ### Patch Changes
@@ -34,10 +34,12 @@ var createOpenAtTransaction = function createOpenAtTransaction(editorAnalyticsAP
34
34
  return function (props) {
35
35
  return function (tr) {
36
36
  var triggerHandler = props.triggerHandler,
37
- inputMethod = props.inputMethod;
37
+ inputMethod = props.inputMethod,
38
+ query = props.query;
38
39
  (0, _openTypeaheadAtCursor.openTypeAheadAtCursor)({
39
40
  triggerHandler: triggerHandler,
40
- inputMethod: inputMethod
41
+ inputMethod: inputMethod,
42
+ query: query
41
43
  })({
42
44
  tr: tr
43
45
  });
@@ -114,7 +114,8 @@ var createReducer = exports.createReducer = function createReducer(_ref) {
114
114
  return openMenu(currentPluginState, {
115
115
  tr: tr,
116
116
  triggerHandler: params.triggerHandler,
117
- inputMethod: params.inputMethod
117
+ inputMethod: params.inputMethod,
118
+ reopenQuery: params.query
118
119
  });
119
120
  } else if (shouldCloseMenu) {
120
121
  return closeMenu(currentPluginState);
@@ -273,7 +273,11 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
273
273
  width: LIST_WIDTH,
274
274
  onScroll: onScroll,
275
275
  height: height,
276
- overscanRowCount: 3,
276
+ overscanRowCount: 3
277
+ // We need to make this walkaround to make TS happy, cannot pass undefined otherwise ReactVirualized will make it equal to "grid" which we want to avoid
278
+ // https://github.com/bvaughn/react-virtualized/blob/master/source/Grid/Grid.js#L260
279
+ ,
280
+ "aria-label": null,
277
281
  containerRole: "presentation",
278
282
  role: "listbox",
279
283
  css: (0, _react2.css)({
@@ -213,7 +213,8 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
213
213
  scrollableElement: popupsScrollableElement,
214
214
  fitHeight: fitHeight,
215
215
  fitWidth: 340,
216
- offset: OFFSET
216
+ offset: OFFSET,
217
+ ariaLabel: null
217
218
  }, (0, _react2.jsx)("div", {
218
219
  css: typeAheadContent,
219
220
  tabIndex: 0,
@@ -25,11 +25,13 @@ import { findHandler, getPluginState, getTypeAheadHandler, getTypeAheadQuery, is
25
25
  const createOpenAtTransaction = editorAnalyticsAPI => props => tr => {
26
26
  const {
27
27
  triggerHandler,
28
- inputMethod
28
+ inputMethod,
29
+ query
29
30
  } = props;
30
31
  openTypeAheadAtCursor({
31
32
  triggerHandler,
32
- inputMethod
33
+ inputMethod,
34
+ query
33
35
  })({
34
36
  tr
35
37
  });
@@ -106,7 +106,8 @@ export const createReducer = ({
106
106
  return openMenu(currentPluginState, {
107
107
  tr,
108
108
  triggerHandler: params.triggerHandler,
109
- inputMethod: params.inputMethod
109
+ inputMethod: params.inputMethod,
110
+ reopenQuery: params.query
110
111
  });
111
112
  } else if (shouldCloseMenu) {
112
113
  return closeMenu(currentPluginState);
@@ -254,7 +254,11 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
254
254
  width: LIST_WIDTH,
255
255
  onScroll: onScroll,
256
256
  height: height,
257
- overscanRowCount: 3,
257
+ overscanRowCount: 3
258
+ // We need to make this walkaround to make TS happy, cannot pass undefined otherwise ReactVirualized will make it equal to "grid" which we want to avoid
259
+ // https://github.com/bvaughn/react-virtualized/blob/master/source/Grid/Grid.js#L260
260
+ ,
261
+ "aria-label": null,
258
262
  containerRole: "presentation",
259
263
  role: "listbox",
260
264
  css: css({
@@ -207,7 +207,8 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
207
207
  scrollableElement: popupsScrollableElement,
208
208
  fitHeight: fitHeight,
209
209
  fitWidth: 340,
210
- offset: OFFSET
210
+ offset: OFFSET,
211
+ ariaLabel: null
211
212
  }, jsx("div", {
212
213
  css: typeAheadContent,
213
214
  tabIndex: 0,
@@ -26,10 +26,12 @@ var createOpenAtTransaction = function createOpenAtTransaction(editorAnalyticsAP
26
26
  return function (props) {
27
27
  return function (tr) {
28
28
  var triggerHandler = props.triggerHandler,
29
- inputMethod = props.inputMethod;
29
+ inputMethod = props.inputMethod,
30
+ query = props.query;
30
31
  openTypeAheadAtCursor({
31
32
  triggerHandler: triggerHandler,
32
- inputMethod: inputMethod
33
+ inputMethod: inputMethod,
34
+ query: query
33
35
  })({
34
36
  tr: tr
35
37
  });
@@ -107,7 +107,8 @@ export var createReducer = function createReducer(_ref) {
107
107
  return openMenu(currentPluginState, {
108
108
  tr: tr,
109
109
  triggerHandler: params.triggerHandler,
110
- inputMethod: params.inputMethod
110
+ inputMethod: params.inputMethod,
111
+ reopenQuery: params.query
111
112
  });
112
113
  } else if (shouldCloseMenu) {
113
114
  return closeMenu(currentPluginState);
@@ -263,7 +263,11 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref2) {
263
263
  width: LIST_WIDTH,
264
264
  onScroll: onScroll,
265
265
  height: height,
266
- overscanRowCount: 3,
266
+ overscanRowCount: 3
267
+ // We need to make this walkaround to make TS happy, cannot pass undefined otherwise ReactVirualized will make it equal to "grid" which we want to avoid
268
+ // https://github.com/bvaughn/react-virtualized/blob/master/source/Grid/Grid.js#L260
269
+ ,
270
+ "aria-label": null,
267
271
  containerRole: "presentation",
268
272
  role: "listbox",
269
273
  css: css({
@@ -202,7 +202,8 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
202
202
  scrollableElement: popupsScrollableElement,
203
203
  fitHeight: fitHeight,
204
204
  fitWidth: 340,
205
- offset: OFFSET
205
+ offset: OFFSET,
206
+ ariaLabel: null
206
207
  }, jsx("div", {
207
208
  css: typeAheadContent,
208
209
  tabIndex: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,15 +32,15 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/adf-schema": "^36.8.0",
36
- "@atlaskit/editor-common": "^80.4.0",
35
+ "@atlaskit/adf-schema": "^36.10.7",
36
+ "@atlaskit/editor-common": "^81.0.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.2.0",
38
38
  "@atlaskit/editor-prosemirror": "4.0.1",
39
39
  "@atlaskit/editor-shared-styles": "^2.11.0",
40
40
  "@atlaskit/menu": "^2.3.0",
41
41
  "@atlaskit/prosemirror-input-rules": "^3.1.0",
42
42
  "@atlaskit/theme": "^12.8.0",
43
- "@atlaskit/tokens": "^1.48.0",
43
+ "@atlaskit/tokens": "^1.49.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@emotion/react": "^11.7.1",
46
46
  "lodash": "^4.17.21",