@atlaskit/editor-plugin-type-ahead 6.5.14 → 6.5.16
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 +16 -0
- package/dist/cjs/ui/InputQuery.js +7 -22
- package/dist/es2019/ui/InputQuery.js +7 -22
- package/dist/esm/ui/InputQuery.js +7 -22
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 6.5.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f666392fdb3df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f666392fdb3df) -
|
|
8
|
+
Tidy fg platform_editor_a11y_remove_input_query_on_click
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 6.5.15
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`c25e49b317dd8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c25e49b317dd8) -
|
|
16
|
+
[ED-29492] clean up references to platform_editor_paste_rich_text_bugfix
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 6.5.14
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -244,16 +244,6 @@ var InputQuery = exports.InputQuery = /*#__PURE__*/_react.default.memo(function
|
|
|
244
244
|
return false;
|
|
245
245
|
}
|
|
246
246
|
}, [onUndoRedo, onItemSelect, selectNextItem, selectPreviousItem, cancel, cleanedInputContent, editorView.state, isEditorControlsEnabled]);
|
|
247
|
-
|
|
248
|
-
// Remove when cleaning up platform_editor_a11y_remove_input_query_on_click
|
|
249
|
-
var onClick = (0, _react.useCallback)(function (event) {
|
|
250
|
-
var _inputRef$current;
|
|
251
|
-
event.stopPropagation();
|
|
252
|
-
event.preventDefault();
|
|
253
|
-
onQueryFocus();
|
|
254
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
255
|
-
return false;
|
|
256
|
-
}, [onQueryFocus]);
|
|
257
247
|
(0, _react.useLayoutEffect)(function () {
|
|
258
248
|
if (!ref.current) {
|
|
259
249
|
return;
|
|
@@ -408,11 +398,9 @@ var InputQuery = exports.InputQuery = /*#__PURE__*/_react.default.memo(function
|
|
|
408
398
|
// Ignored via go/ees005
|
|
409
399
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
410
400
|
element.addEventListener('beforeinput', beforeinput);
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
element.addEventListener('paste', onPaste);
|
|
415
|
-
}
|
|
401
|
+
// Ignored via go/ees005
|
|
402
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
403
|
+
element.addEventListener('paste', onPaste);
|
|
416
404
|
return function () {
|
|
417
405
|
// Ignored via go/ees005
|
|
418
406
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
@@ -426,11 +414,9 @@ var InputQuery = exports.InputQuery = /*#__PURE__*/_react.default.memo(function
|
|
|
426
414
|
// Ignored via go/ees005
|
|
427
415
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
428
416
|
element.removeEventListener('beforeinput', beforeinput);
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
element.removeEventListener('paste', onPaste);
|
|
433
|
-
}
|
|
417
|
+
// Ignored via go/ees005
|
|
418
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
419
|
+
element.removeEventListener('paste', onPaste);
|
|
434
420
|
if (browser.safari) {
|
|
435
421
|
// Ignored via go/ees005
|
|
436
422
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
@@ -483,8 +469,7 @@ var InputQuery = exports.InputQuery = /*#__PURE__*/_react.default.memo(function
|
|
|
483
469
|
contentEditable: true,
|
|
484
470
|
ref: ref,
|
|
485
471
|
onKeyUp: onKeyUp,
|
|
486
|
-
|
|
487
|
-
tabIndex: (0, _platformFeatureFlags.fg)('platform_editor_a11y_remove_input_query_on_click') ? -1 : undefined,
|
|
472
|
+
tabIndex: -1,
|
|
488
473
|
onInput: isSearchPlaceholderEnabled ? onInput : undefined,
|
|
489
474
|
role: "combobox",
|
|
490
475
|
"aria-controls": _constants.TYPE_AHEAD_DECORATION_ELEMENT_ID,
|
|
@@ -228,16 +228,6 @@ export const InputQuery = /*#__PURE__*/React.memo(({
|
|
|
228
228
|
return false;
|
|
229
229
|
}
|
|
230
230
|
}, [onUndoRedo, onItemSelect, selectNextItem, selectPreviousItem, cancel, cleanedInputContent, editorView.state, isEditorControlsEnabled]);
|
|
231
|
-
|
|
232
|
-
// Remove when cleaning up platform_editor_a11y_remove_input_query_on_click
|
|
233
|
-
const onClick = useCallback(event => {
|
|
234
|
-
var _inputRef$current;
|
|
235
|
-
event.stopPropagation();
|
|
236
|
-
event.preventDefault();
|
|
237
|
-
onQueryFocus();
|
|
238
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
239
|
-
return false;
|
|
240
|
-
}, [onQueryFocus]);
|
|
241
231
|
useLayoutEffect(() => {
|
|
242
232
|
if (!ref.current) {
|
|
243
233
|
return;
|
|
@@ -401,11 +391,9 @@ export const InputQuery = /*#__PURE__*/React.memo(({
|
|
|
401
391
|
// Ignored via go/ees005
|
|
402
392
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
403
393
|
element.addEventListener('beforeinput', beforeinput);
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
element.addEventListener('paste', onPaste);
|
|
408
|
-
}
|
|
394
|
+
// Ignored via go/ees005
|
|
395
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
396
|
+
element.addEventListener('paste', onPaste);
|
|
409
397
|
return () => {
|
|
410
398
|
// Ignored via go/ees005
|
|
411
399
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
@@ -419,11 +407,9 @@ export const InputQuery = /*#__PURE__*/React.memo(({
|
|
|
419
407
|
// Ignored via go/ees005
|
|
420
408
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
421
409
|
element.removeEventListener('beforeinput', beforeinput);
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
element.removeEventListener('paste', onPaste);
|
|
426
|
-
}
|
|
410
|
+
// Ignored via go/ees005
|
|
411
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
412
|
+
element.removeEventListener('paste', onPaste);
|
|
427
413
|
if (browser.safari) {
|
|
428
414
|
// Ignored via go/ees005
|
|
429
415
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
@@ -476,8 +462,7 @@ export const InputQuery = /*#__PURE__*/React.memo(({
|
|
|
476
462
|
contentEditable: true,
|
|
477
463
|
ref: ref,
|
|
478
464
|
onKeyUp: onKeyUp,
|
|
479
|
-
|
|
480
|
-
tabIndex: fg('platform_editor_a11y_remove_input_query_on_click') ? -1 : undefined,
|
|
465
|
+
tabIndex: -1,
|
|
481
466
|
onInput: isSearchPlaceholderEnabled ? onInput : undefined,
|
|
482
467
|
role: "combobox",
|
|
483
468
|
"aria-controls": TYPE_AHEAD_DECORATION_ELEMENT_ID,
|
|
@@ -234,16 +234,6 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
234
234
|
return false;
|
|
235
235
|
}
|
|
236
236
|
}, [onUndoRedo, onItemSelect, selectNextItem, selectPreviousItem, cancel, cleanedInputContent, editorView.state, isEditorControlsEnabled]);
|
|
237
|
-
|
|
238
|
-
// Remove when cleaning up platform_editor_a11y_remove_input_query_on_click
|
|
239
|
-
var onClick = useCallback(function (event) {
|
|
240
|
-
var _inputRef$current;
|
|
241
|
-
event.stopPropagation();
|
|
242
|
-
event.preventDefault();
|
|
243
|
-
onQueryFocus();
|
|
244
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
245
|
-
return false;
|
|
246
|
-
}, [onQueryFocus]);
|
|
247
237
|
useLayoutEffect(function () {
|
|
248
238
|
if (!ref.current) {
|
|
249
239
|
return;
|
|
@@ -398,11 +388,9 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
398
388
|
// Ignored via go/ees005
|
|
399
389
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
400
390
|
element.addEventListener('beforeinput', beforeinput);
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
element.addEventListener('paste', onPaste);
|
|
405
|
-
}
|
|
391
|
+
// Ignored via go/ees005
|
|
392
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
393
|
+
element.addEventListener('paste', onPaste);
|
|
406
394
|
return function () {
|
|
407
395
|
// Ignored via go/ees005
|
|
408
396
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
@@ -416,11 +404,9 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
416
404
|
// Ignored via go/ees005
|
|
417
405
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
418
406
|
element.removeEventListener('beforeinput', beforeinput);
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
element.removeEventListener('paste', onPaste);
|
|
423
|
-
}
|
|
407
|
+
// Ignored via go/ees005
|
|
408
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
409
|
+
element.removeEventListener('paste', onPaste);
|
|
424
410
|
if (browser.safari) {
|
|
425
411
|
// Ignored via go/ees005
|
|
426
412
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
@@ -473,8 +459,7 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
473
459
|
contentEditable: true,
|
|
474
460
|
ref: ref,
|
|
475
461
|
onKeyUp: onKeyUp,
|
|
476
|
-
|
|
477
|
-
tabIndex: fg('platform_editor_a11y_remove_input_query_on_click') ? -1 : undefined,
|
|
462
|
+
tabIndex: -1,
|
|
478
463
|
onInput: isSearchPlaceholderEnabled ? onInput : undefined,
|
|
479
464
|
role: "combobox",
|
|
480
465
|
"aria-controls": TYPE_AHEAD_DECORATION_ELEMENT_ID,
|
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.16",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
48
48
|
"@atlaskit/theme": "^21.0.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^13.37.0",
|
|
50
50
|
"@atlaskit/tokens": "^8.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.29.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"
|
|
@@ -105,9 +105,6 @@
|
|
|
105
105
|
"platform_editor_refactor_view_more": {
|
|
106
106
|
"type": "boolean"
|
|
107
107
|
},
|
|
108
|
-
"platform_editor_a11y_remove_input_query_on_click": {
|
|
109
|
-
"type": "boolean"
|
|
110
|
-
},
|
|
111
108
|
"platform_editor_typeahead_description_text_colour": {
|
|
112
109
|
"type": "boolean"
|
|
113
110
|
},
|