@atlaskit/editor-plugin-type-ahead 6.5.15 → 6.5.17
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 +18 -0
- package/dist/cjs/ui/InputQuery.js +1 -12
- package/dist/cjs/ui/TypeAheadPopup.js +1 -3
- package/dist/es2019/ui/InputQuery.js +1 -12
- package/dist/es2019/ui/TypeAheadPopup.js +1 -3
- package/dist/esm/ui/InputQuery.js +1 -12
- package/dist/esm/ui/TypeAheadPopup.js +1 -3
- package/package.json +5 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 6.5.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a05464ea42678`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a05464ea42678) -
|
|
8
|
+
EDITOR-2791 bump adf-schema
|
|
9
|
+
- [`42a664a17cbff`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/42a664a17cbff) -
|
|
10
|
+
Tidy platform_editor_a11y_fix_typeahead_tabindex
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 6.5.16
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`f666392fdb3df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f666392fdb3df) -
|
|
18
|
+
Tidy fg platform_editor_a11y_remove_input_query_on_click
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 6.5.15
|
|
4
22
|
|
|
5
23
|
### 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
|
-
|
|
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,
|
|
@@ -15,7 +15,6 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
15
15
|
var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
16
16
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
17
17
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
20
19
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
20
|
var _analytics2 = require("../pm-plugins/analytics");
|
|
@@ -330,8 +329,7 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
330
329
|
}
|
|
331
330
|
}
|
|
332
331
|
}, (0, _react2.jsx)("div", {
|
|
333
|
-
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
334
|
-
tabIndex: (0, _platformFeatureFlags.fg)('platform_editor_a11y_fix_typeahead_tabindex') ? undefined : 0
|
|
332
|
+
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
335
333
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
336
334
|
,
|
|
337
335
|
className: _constants.TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
@@ -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
|
-
|
|
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,
|
|
@@ -12,7 +12,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
12
12
|
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
13
13
|
import { findOverflowScrollParent, Popup } from '@atlaskit/editor-common/ui';
|
|
14
14
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
17
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
17
|
import { fireTypeAheadClosedAnalyticsEvent } from '../pm-plugins/analytics';
|
|
@@ -326,8 +325,7 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
326
325
|
}
|
|
327
326
|
}
|
|
328
327
|
}, jsx("div", {
|
|
329
|
-
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
330
|
-
tabIndex: fg('platform_editor_a11y_fix_typeahead_tabindex') ? undefined : 0
|
|
328
|
+
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
331
329
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
332
330
|
,
|
|
333
331
|
className: TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
@@ -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
|
-
|
|
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,
|
|
@@ -13,7 +13,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
13
13
|
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
14
14
|
import { findOverflowScrollParent, Popup } from '@atlaskit/editor-common/ui';
|
|
15
15
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
16
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
18
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
18
|
import { fireTypeAheadClosedAnalyticsEvent } from '../pm-plugins/analytics';
|
|
@@ -320,8 +319,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
320
319
|
}
|
|
321
320
|
}
|
|
322
321
|
}, jsx("div", {
|
|
323
|
-
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
324
|
-
tabIndex: fg('platform_editor_a11y_fix_typeahead_tabindex') ? undefined : 0
|
|
322
|
+
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
325
323
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
326
324
|
,
|
|
327
325
|
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.17",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.4.0",
|
|
33
33
|
"@atlaskit/editor-element-browser": "^4.0.0",
|
|
34
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
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.10.0",
|
|
40
40
|
"@atlaskit/heading": "^5.2.0",
|
|
41
41
|
"@atlaskit/icon": "^29.0.0",
|
|
42
42
|
"@atlaskit/insm": "^0.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.38.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.32.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,14 +105,8 @@
|
|
|
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
|
-
},
|
|
114
|
-
"platform_editor_a11y_fix_typeahead_tabindex": {
|
|
115
|
-
"type": "boolean"
|
|
116
110
|
}
|
|
117
111
|
}
|
|
118
112
|
}
|