@atlaskit/editor-plugin-type-ahead 6.5.7 → 6.5.9
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 +14 -0
- package/dist/cjs/ui/TypeAheadListItem.js +1 -6
- package/dist/cjs/ui/TypeAheadPopup.js +1 -1
- package/dist/cjs/ui/modern/TypeAheadPopup.js +1 -1
- package/dist/es2019/ui/TypeAheadListItem.js +1 -6
- package/dist/es2019/ui/TypeAheadPopup.js +1 -1
- package/dist/es2019/ui/modern/TypeAheadPopup.js +1 -1
- package/dist/esm/ui/TypeAheadListItem.js +1 -6
- package/dist/esm/ui/TypeAheadPopup.js +1 -1
- package/dist/esm/ui/modern/TypeAheadPopup.js +1 -1
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 6.5.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 6.5.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`2ab1e9998d893`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2ab1e9998d893) -
|
|
14
|
+
Removed tab-index on list container
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 6.5.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -256,12 +256,7 @@ var TypeAheadListItem = exports.TypeAheadListItem = /*#__PURE__*/_react.default.
|
|
|
256
256
|
iconBefore: elementIcon,
|
|
257
257
|
isSelected: isSelected,
|
|
258
258
|
"aria-selected": isSelected,
|
|
259
|
-
"aria-label": title
|
|
260
|
-
// TODO: ED-26959 - aria-description is in draft for ARIA 1.3.
|
|
261
|
-
// For now replace it with aria-describedby.
|
|
262
|
-
// eslint-disable-next-line @atlassian/a11y/aria-props -- TODO: Avoid using "aria-description" as aria attribute. See https://go/a11y-aria-props for more details.
|
|
263
|
-
,
|
|
264
|
-
"aria-description": (0, _platformFeatureFlags.fg)('platform_editor_a11y_fix_aria_description') ? undefined : "".concat(descriptionText, " ").concat(shortcutText),
|
|
259
|
+
"aria-label": title,
|
|
265
260
|
"aria-describedby": (descriptionText || shortcutText) && (0, _platformFeatureFlags.fg)('platform_editor_a11y_fix_aria_description') ? descriptionId : undefined,
|
|
266
261
|
"aria-setsize": itemsLength,
|
|
267
262
|
"aria-posinset": (0, _expValEquals.expValEquals)('platform_editor_fix_a11y_aria_posinset_0', 'isEnabled', true) ? itemIndex + 1 : itemIndex,
|
|
@@ -339,7 +339,7 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
339
339
|
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
340
340
|
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
341
341
|
,
|
|
342
|
-
tabIndex: 0
|
|
342
|
+
tabIndex: (0, _platformFeatureFlags.fg)('platform_editor_a11y_fix_typeahead_tabindex') ? undefined : 0
|
|
343
343
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
344
344
|
,
|
|
345
345
|
className: _constants.TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
@@ -313,7 +313,7 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
313
313
|
css: [typeAheadContent]
|
|
314
314
|
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
315
315
|
,
|
|
316
|
-
tabIndex: 0
|
|
316
|
+
tabIndex: (0, _platformFeatureFlags.fg)('platform_editor_a11y_fix_typeahead_tabindex') ? undefined : 0
|
|
317
317
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
318
318
|
,
|
|
319
319
|
className: _constants.TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
@@ -270,12 +270,7 @@ export const TypeAheadListItem = /*#__PURE__*/React.memo(({
|
|
|
270
270
|
iconBefore: elementIcon,
|
|
271
271
|
isSelected: isSelected,
|
|
272
272
|
"aria-selected": isSelected,
|
|
273
|
-
"aria-label": title
|
|
274
|
-
// TODO: ED-26959 - aria-description is in draft for ARIA 1.3.
|
|
275
|
-
// For now replace it with aria-describedby.
|
|
276
|
-
// eslint-disable-next-line @atlassian/a11y/aria-props -- TODO: Avoid using "aria-description" as aria attribute. See https://go/a11y-aria-props for more details.
|
|
277
|
-
,
|
|
278
|
-
"aria-description": fg('platform_editor_a11y_fix_aria_description') ? undefined : `${descriptionText} ${shortcutText}`,
|
|
273
|
+
"aria-label": title,
|
|
279
274
|
"aria-describedby": (descriptionText || shortcutText) && fg('platform_editor_a11y_fix_aria_description') ? descriptionId : undefined,
|
|
280
275
|
"aria-setsize": itemsLength,
|
|
281
276
|
"aria-posinset": expValEquals('platform_editor_fix_a11y_aria_posinset_0', 'isEnabled', true) ? itemIndex + 1 : itemIndex,
|
|
@@ -335,7 +335,7 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
335
335
|
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
336
336
|
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
337
337
|
,
|
|
338
|
-
tabIndex: 0
|
|
338
|
+
tabIndex: fg('platform_editor_a11y_fix_typeahead_tabindex') ? undefined : 0
|
|
339
339
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
340
340
|
,
|
|
341
341
|
className: TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
@@ -307,7 +307,7 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
307
307
|
css: [typeAheadContent]
|
|
308
308
|
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
309
309
|
,
|
|
310
|
-
tabIndex: 0
|
|
310
|
+
tabIndex: fg('platform_editor_a11y_fix_typeahead_tabindex') ? undefined : 0
|
|
311
311
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
312
312
|
,
|
|
313
313
|
className: TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
@@ -248,12 +248,7 @@ export var TypeAheadListItem = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
248
248
|
iconBefore: elementIcon,
|
|
249
249
|
isSelected: isSelected,
|
|
250
250
|
"aria-selected": isSelected,
|
|
251
|
-
"aria-label": title
|
|
252
|
-
// TODO: ED-26959 - aria-description is in draft for ARIA 1.3.
|
|
253
|
-
// For now replace it with aria-describedby.
|
|
254
|
-
// eslint-disable-next-line @atlassian/a11y/aria-props -- TODO: Avoid using "aria-description" as aria attribute. See https://go/a11y-aria-props for more details.
|
|
255
|
-
,
|
|
256
|
-
"aria-description": fg('platform_editor_a11y_fix_aria_description') ? undefined : "".concat(descriptionText, " ").concat(shortcutText),
|
|
251
|
+
"aria-label": title,
|
|
257
252
|
"aria-describedby": (descriptionText || shortcutText) && fg('platform_editor_a11y_fix_aria_description') ? descriptionId : undefined,
|
|
258
253
|
"aria-setsize": itemsLength,
|
|
259
254
|
"aria-posinset": expValEquals('platform_editor_fix_a11y_aria_posinset_0', 'isEnabled', true) ? itemIndex + 1 : itemIndex,
|
|
@@ -329,7 +329,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
329
329
|
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
330
330
|
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
331
331
|
,
|
|
332
|
-
tabIndex: 0
|
|
332
|
+
tabIndex: fg('platform_editor_a11y_fix_typeahead_tabindex') ? undefined : 0
|
|
333
333
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
334
334
|
,
|
|
335
335
|
className: TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
@@ -304,7 +304,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
304
304
|
css: [typeAheadContent]
|
|
305
305
|
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
306
306
|
,
|
|
307
|
-
tabIndex: 0
|
|
307
|
+
tabIndex: fg('platform_editor_a11y_fix_typeahead_tabindex') ? undefined : 0
|
|
308
308
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
309
309
|
,
|
|
310
310
|
className: TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.9",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.8.0",
|
|
40
40
|
"@atlaskit/heading": "^5.2.0",
|
|
41
41
|
"@atlaskit/icon": "^28.5.0",
|
|
42
|
-
"@atlaskit/insm": "^0.
|
|
42
|
+
"@atlaskit/insm": "^0.2.0",
|
|
43
43
|
"@atlaskit/menu": "^8.4.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
|
-
"@atlaskit/primitives": "^16.
|
|
45
|
+
"@atlaskit/primitives": "^16.1.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",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^13.23.0",
|
|
50
50
|
"@atlaskit/tokens": "^7.0.0",
|
|
51
51
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"w3c-keyname": "^2.1.8"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@atlaskit/editor-common": "^110.
|
|
61
|
+
"@atlaskit/editor-common": "^110.20.0",
|
|
62
62
|
"react": "^18.2.0",
|
|
63
63
|
"react-dom": "^18.2.0",
|
|
64
64
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -119,6 +119,9 @@
|
|
|
119
119
|
},
|
|
120
120
|
"platform_editor_a11y_fix_aria_description": {
|
|
121
121
|
"type": "boolean"
|
|
122
|
+
},
|
|
123
|
+
"platform_editor_a11y_fix_typeahead_tabindex": {
|
|
124
|
+
"type": "boolean"
|
|
122
125
|
}
|
|
123
126
|
}
|
|
124
127
|
}
|