@atlaskit/editor-plugin-type-ahead 6.5.15 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 6.5.15
4
12
 
5
13
  ### 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;
@@ -479,8 +469,7 @@ var InputQuery = exports.InputQuery = /*#__PURE__*/_react.default.memo(function
479
469
  contentEditable: true,
480
470
  ref: ref,
481
471
  onKeyUp: onKeyUp,
482
- onClick: (0, _platformFeatureFlags.fg)('platform_editor_a11y_remove_input_query_on_click') ? undefined : onClick,
483
- tabIndex: (0, _platformFeatureFlags.fg)('platform_editor_a11y_remove_input_query_on_click') ? -1 : undefined,
472
+ tabIndex: -1,
484
473
  onInput: isSearchPlaceholderEnabled ? onInput : undefined,
485
474
  role: "combobox",
486
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;
@@ -472,8 +462,7 @@ export const InputQuery = /*#__PURE__*/React.memo(({
472
462
  contentEditable: true,
473
463
  ref: ref,
474
464
  onKeyUp: onKeyUp,
475
- onClick: fg('platform_editor_a11y_remove_input_query_on_click') ? undefined : onClick,
476
- tabIndex: fg('platform_editor_a11y_remove_input_query_on_click') ? -1 : undefined,
465
+ tabIndex: -1,
477
466
  onInput: isSearchPlaceholderEnabled ? onInput : undefined,
478
467
  role: "combobox",
479
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;
@@ -469,8 +459,7 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
469
459
  contentEditable: true,
470
460
  ref: ref,
471
461
  onKeyUp: onKeyUp,
472
- onClick: fg('platform_editor_a11y_remove_input_query_on_click') ? undefined : onClick,
473
- tabIndex: fg('platform_editor_a11y_remove_input_query_on_click') ? -1 : undefined,
462
+ tabIndex: -1,
474
463
  onInput: isSearchPlaceholderEnabled ? onInput : undefined,
475
464
  role: "combobox",
476
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.15",
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",
@@ -58,7 +58,7 @@
58
58
  "w3c-keyname": "^2.1.8"
59
59
  },
60
60
  "peerDependencies": {
61
- "@atlaskit/editor-common": "^110.27.0",
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
  },