@atlaskit/editor-plugin-type-ahead 6.4.2 → 6.5.1
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,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 6.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ae2119490a207`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ae2119490a207) -
|
|
8
|
+
[ENGHEALTH-32516] Adds an aria-label to the React virtualized grid used in the type ahead menu
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 6.5.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`5167552fe1a93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5167552fe1a93) -
|
|
16
|
+
[EDITOR-2339] Bump @atlaskit/adf-schema to 51.3.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 6.4.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -17,6 +17,7 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
17
17
|
var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
18
18
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
19
19
|
var _menu = require("@atlaskit/menu");
|
|
20
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
21
22
|
var _closeTypeAhead = require("../pm-plugins/commands/close-type-ahead");
|
|
22
23
|
var _updateSelectedIndex = require("../pm-plugins/commands/update-selected-index");
|
|
@@ -355,11 +356,11 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
355
356
|
width: LIST_WIDTH,
|
|
356
357
|
onScroll: onScroll,
|
|
357
358
|
height: height,
|
|
358
|
-
overscanRowCount: 3
|
|
359
|
+
overscanRowCount: 3,
|
|
360
|
+
"aria-label": (0, _platformFeatureFlags.fg)('platform_editor_typeahead_aria_label') ? (0, _utils.getTypeAheadListAriaLabels)(undefined, intl).popupAriaLabel :
|
|
359
361
|
// 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
|
|
360
362
|
// https://github.com/bvaughn/react-virtualized/blob/master/source/Grid/Grid.js#L260
|
|
361
|
-
,
|
|
362
|
-
"aria-label": null,
|
|
363
|
+
null,
|
|
363
364
|
containerRole: "presentation",
|
|
364
365
|
role: "listbox"
|
|
365
366
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -15,6 +15,7 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
15
15
|
import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
|
|
16
16
|
import { AssistiveText } from '@atlaskit/editor-common/ui';
|
|
17
17
|
import { MenuGroup } from '@atlaskit/menu';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
19
|
import { Text, Box } from '@atlaskit/primitives/compiled';
|
|
19
20
|
import { closeTypeAhead } from '../pm-plugins/commands/close-type-ahead';
|
|
20
21
|
import { updateSelectedIndex } from '../pm-plugins/commands/update-selected-index';
|
|
@@ -335,11 +336,11 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
|
|
|
335
336
|
width: LIST_WIDTH,
|
|
336
337
|
onScroll: onScroll,
|
|
337
338
|
height: height,
|
|
338
|
-
overscanRowCount: 3
|
|
339
|
+
overscanRowCount: 3,
|
|
340
|
+
"aria-label": fg('platform_editor_typeahead_aria_label') ? getTypeAheadListAriaLabels(undefined, intl).popupAriaLabel :
|
|
339
341
|
// 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
|
|
340
342
|
// https://github.com/bvaughn/react-virtualized/blob/master/source/Grid/Grid.js#L260
|
|
341
|
-
,
|
|
342
|
-
"aria-label": null,
|
|
343
|
+
null,
|
|
343
344
|
containerRole: "presentation",
|
|
344
345
|
role: "listbox"
|
|
345
346
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -16,6 +16,7 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
16
16
|
import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
|
|
17
17
|
import { AssistiveText } from '@atlaskit/editor-common/ui';
|
|
18
18
|
import { MenuGroup } from '@atlaskit/menu';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
20
|
import { Text, Box } from '@atlaskit/primitives/compiled';
|
|
20
21
|
import { closeTypeAhead } from '../pm-plugins/commands/close-type-ahead';
|
|
21
22
|
import { updateSelectedIndex } from '../pm-plugins/commands/update-selected-index';
|
|
@@ -346,11 +347,11 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
346
347
|
width: LIST_WIDTH,
|
|
347
348
|
onScroll: onScroll,
|
|
348
349
|
height: height,
|
|
349
|
-
overscanRowCount: 3
|
|
350
|
+
overscanRowCount: 3,
|
|
351
|
+
"aria-label": fg('platform_editor_typeahead_aria_label') ? getTypeAheadListAriaLabels(undefined, intl).popupAriaLabel :
|
|
350
352
|
// 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
|
|
351
353
|
// https://github.com/bvaughn/react-virtualized/blob/master/source/Grid/Grid.js#L260
|
|
352
|
-
,
|
|
353
|
-
"aria-label": null,
|
|
354
|
+
null,
|
|
354
355
|
containerRole: "presentation",
|
|
355
356
|
role: "listbox"
|
|
356
357
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.1",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.3.0",
|
|
33
33
|
"@atlaskit/editor-element-browser": "^4.0.0",
|
|
34
|
-
"@atlaskit/editor-plugin-analytics": "^6.
|
|
34
|
+
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
35
35
|
"@atlaskit/editor-plugin-connectivity": "^6.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-context-panel": "^8.0.0",
|
|
37
|
-
"@atlaskit/editor-plugin-metrics": "^7.
|
|
37
|
+
"@atlaskit/editor-plugin-metrics": "^7.1.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
39
|
+
"@atlaskit/editor-shared-styles": "^3.8.0",
|
|
40
40
|
"@atlaskit/heading": "^5.2.0",
|
|
41
41
|
"@atlaskit/icon": "^28.5.0",
|
|
42
42
|
"@atlaskit/insm": "^0.1.0",
|
|
43
43
|
"@atlaskit/menu": "^8.4.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
|
-
"@atlaskit/primitives": "^
|
|
45
|
+
"@atlaskit/primitives": "^16.0.0",
|
|
46
46
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.5.0",
|
|
48
48
|
"@atlaskit/theme": "^21.0.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"w3c-keyname": "^2.1.8"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^110.
|
|
60
|
+
"@atlaskit/editor-common": "^110.14.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0",
|
|
63
63
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -112,6 +112,9 @@
|
|
|
112
112
|
},
|
|
113
113
|
"platform_editor_a11y_remove_input_query_on_click": {
|
|
114
114
|
"type": "boolean"
|
|
115
|
+
},
|
|
116
|
+
"platform_editor_typeahead_aria_label": {
|
|
117
|
+
"type": "boolean"
|
|
115
118
|
}
|
|
116
119
|
}
|
|
117
120
|
}
|