@atlaskit/editor-plugin-type-ahead 8.0.8 → 8.0.10
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 +12 -0
- package/dist/cjs/ui/ContentComponent.js +3 -1
- package/dist/cjs/ui/MoreOptions.js +2 -1
- package/dist/cjs/ui/TypeAheadErrorFallback/index.js +3 -1
- package/dist/cjs/ui/TypeAheadList.js +10 -4
- package/dist/cjs/ui/TypeAheadPopup.js +8 -2
- package/dist/es2019/ui/ContentComponent.js +3 -1
- package/dist/es2019/ui/MoreOptions.js +2 -1
- package/dist/es2019/ui/TypeAheadErrorFallback/index.js +3 -1
- package/dist/es2019/ui/TypeAheadList.js +10 -4
- package/dist/es2019/ui/TypeAheadPopup.js +8 -2
- package/dist/esm/ui/ContentComponent.js +3 -1
- package/dist/esm/ui/MoreOptions.js +2 -1
- package/dist/esm/ui/TypeAheadErrorFallback/index.js +3 -1
- package/dist/esm/ui/TypeAheadList.js +10 -4
- package/dist/esm/ui/TypeAheadPopup.js +8 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -36,7 +36,9 @@ function ContentComponent(_ref) {
|
|
|
36
36
|
}
|
|
37
37
|
return /*#__PURE__*/_react.default.createElement(_TypeAheadMenu.TypeAheadMenu, {
|
|
38
38
|
editorView: editorView,
|
|
39
|
-
popupMountRef: popupMountRef
|
|
39
|
+
popupMountRef: popupMountRef
|
|
40
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
41
|
+
,
|
|
40
42
|
typeAheadState: {
|
|
41
43
|
triggerHandler: triggerHandler,
|
|
42
44
|
items: items,
|
|
@@ -78,7 +78,8 @@ var MoreOptions = exports.MoreOptions = function MoreOptions(_ref) {
|
|
|
78
78
|
}, (0, _react2.jsx)("span", {
|
|
79
79
|
css: buttonStyles
|
|
80
80
|
}, (0, _react2.jsx)(_menu.ButtonItem, {
|
|
81
|
-
ref: ref
|
|
81
|
+
ref: ref
|
|
82
|
+
/* eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed) */,
|
|
82
83
|
onMouseDown: function onMouseDown(e) {
|
|
83
84
|
if (isSafari && (0, _expValEquals.expValEquals)('platform_safari_cursor_typeahead_fix', 'isEnabled', true)) {
|
|
84
85
|
e.preventDefault();
|
|
@@ -29,7 +29,9 @@ var TypeAheadErrorFallback = exports.TypeAheadErrorFallback = function TypeAhead
|
|
|
29
29
|
"data-testid": "typeahead-error-boundary-ui",
|
|
30
30
|
css: minHeightComponentStyles
|
|
31
31
|
}, (0, _react.jsx)(_EmptyState.EmptyState, {
|
|
32
|
-
header: header
|
|
32
|
+
header: header
|
|
33
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
34
|
+
,
|
|
33
35
|
renderImage: function renderImage() {
|
|
34
36
|
return (0, _react.jsx)(_GenericErrorSVG.GenericErrorSVG, null);
|
|
35
37
|
},
|
|
@@ -217,7 +217,9 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
217
217
|
(0, _react.useLayoutEffect)(function () {
|
|
218
218
|
// Exclude view more item from the count
|
|
219
219
|
var itemsToRender = showMoreOptionsButton ? items.slice(0, -1) : items;
|
|
220
|
-
var height = Math.min(
|
|
220
|
+
var height = Math.min(
|
|
221
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
222
|
+
itemsToRender.reduce(function (prevValue, currentValue, index) {
|
|
221
223
|
return prevValue + cache.rowHeight({
|
|
222
224
|
index: index
|
|
223
225
|
});
|
|
@@ -324,7 +326,9 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
324
326
|
,
|
|
325
327
|
style: style,
|
|
326
328
|
isVisible: isVisible,
|
|
327
|
-
isScrolling: isScrolling
|
|
329
|
+
isScrolling: isScrolling
|
|
330
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
331
|
+
,
|
|
328
332
|
onMouseMove: function onMouseMove(e) {
|
|
329
333
|
return _onMouseMove(e, index);
|
|
330
334
|
}
|
|
@@ -334,7 +338,9 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
334
338
|
firstOnlineSupportedIndex: firstOnlineSupportedRow,
|
|
335
339
|
itemsLength: itemsLength,
|
|
336
340
|
itemIndex: index,
|
|
337
|
-
selectedIndex: selectedIndex
|
|
341
|
+
selectedIndex: selectedIndex
|
|
342
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
343
|
+
,
|
|
338
344
|
onItemClick: function onItemClick(mode, index) {
|
|
339
345
|
actions.onItemClick(mode, index, _analytics.INPUT_METHOD.MOUSE);
|
|
340
346
|
},
|
|
@@ -379,7 +385,7 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
379
385
|
"aria-label": (0, _utils.getTypeAheadListAriaLabels)(undefined, intl).popupAriaLabel,
|
|
380
386
|
containerRole: "presentation",
|
|
381
387
|
role: "listbox"
|
|
382
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/
|
|
388
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
383
389
|
,
|
|
384
390
|
css: [
|
|
385
391
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -113,6 +113,8 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
113
113
|
|
|
114
114
|
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
115
115
|
_featureGateJsClient.default.getExperimentValue('cc_fd_db_quick_insert_options', 'isEnabled', false);
|
|
116
|
+
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
117
|
+
_featureGateJsClient.default.getExperimentValue('cc_fd_wb_jira_quick_insert_experiment', 'isEnabled', false);
|
|
116
118
|
api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 || (_api$analytics2 = _api$analytics2.actions) === null || _api$analytics2 === void 0 || _api$analytics2.fireAnalyticsEvent({
|
|
117
119
|
action: _analytics.ACTION.RENDERED,
|
|
118
120
|
actionSubject: _analytics.ACTION_SUBJECT.TYPEAHEAD,
|
|
@@ -317,7 +319,9 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
317
319
|
fitWidth: 340,
|
|
318
320
|
offset: OFFSET,
|
|
319
321
|
ariaLabel: null,
|
|
320
|
-
preventOverflow: true
|
|
322
|
+
preventOverflow: true
|
|
323
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
324
|
+
,
|
|
321
325
|
onUnmount: function onUnmount() {
|
|
322
326
|
if (selectedIndex > -1 && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
323
327
|
// if selectedIndex is -1, it means that the user has not selected any item
|
|
@@ -343,7 +347,9 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
343
347
|
triggerHandler: triggerHandler
|
|
344
348
|
}), (0, _react2.jsx)(_TypeAheadList.TypeAheadList, {
|
|
345
349
|
items: items,
|
|
346
|
-
selectedIndex: selectedIndex
|
|
350
|
+
selectedIndex: selectedIndex
|
|
351
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
352
|
+
,
|
|
347
353
|
onItemClick: function onItemClick(mode, index, inputMethod) {
|
|
348
354
|
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
349
355
|
activityStateRef.current = {
|
|
@@ -31,7 +31,9 @@ export function ContentComponent({
|
|
|
31
31
|
}
|
|
32
32
|
return /*#__PURE__*/React.createElement(TypeAheadMenu, {
|
|
33
33
|
editorView: editorView,
|
|
34
|
-
popupMountRef: popupMountRef
|
|
34
|
+
popupMountRef: popupMountRef
|
|
35
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
36
|
+
,
|
|
35
37
|
typeAheadState: {
|
|
36
38
|
triggerHandler,
|
|
37
39
|
items,
|
|
@@ -72,7 +72,8 @@ export const MoreOptions = ({
|
|
|
72
72
|
}, jsx("span", {
|
|
73
73
|
css: buttonStyles
|
|
74
74
|
}, jsx(ButtonItem, {
|
|
75
|
-
ref: ref
|
|
75
|
+
ref: ref
|
|
76
|
+
/* eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed) */,
|
|
76
77
|
onMouseDown: e => {
|
|
77
78
|
if (isSafari && expValEquals('platform_safari_cursor_typeahead_fix', 'isEnabled', true)) {
|
|
78
79
|
e.preventDefault();
|
|
@@ -22,7 +22,9 @@ export const TypeAheadErrorFallback = () => {
|
|
|
22
22
|
"data-testid": "typeahead-error-boundary-ui",
|
|
23
23
|
css: minHeightComponentStyles
|
|
24
24
|
}, jsx(EmptyState, {
|
|
25
|
-
header: header
|
|
25
|
+
header: header
|
|
26
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
27
|
+
,
|
|
26
28
|
renderImage: () => jsx(GenericErrorSVG, null),
|
|
27
29
|
description: description
|
|
28
30
|
}));
|
|
@@ -198,7 +198,9 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
|
|
|
198
198
|
useLayoutEffect(() => {
|
|
199
199
|
// Exclude view more item from the count
|
|
200
200
|
const itemsToRender = showMoreOptionsButton ? items.slice(0, -1) : items;
|
|
201
|
-
const height = Math.min(
|
|
201
|
+
const height = Math.min(
|
|
202
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
203
|
+
itemsToRender.reduce((prevValue, currentValue, index) => {
|
|
202
204
|
return prevValue + cache.rowHeight({
|
|
203
205
|
index: index
|
|
204
206
|
});
|
|
@@ -307,7 +309,9 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
|
|
|
307
309
|
,
|
|
308
310
|
style: style,
|
|
309
311
|
isVisible: isVisible,
|
|
310
|
-
isScrolling: isScrolling
|
|
312
|
+
isScrolling: isScrolling
|
|
313
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
314
|
+
,
|
|
311
315
|
onMouseMove: e => onMouseMove(e, index)
|
|
312
316
|
}, jsx(TypeAheadListItem, {
|
|
313
317
|
key: items[index].title,
|
|
@@ -315,7 +319,9 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
|
|
|
315
319
|
firstOnlineSupportedIndex: firstOnlineSupportedRow,
|
|
316
320
|
itemsLength: itemsLength,
|
|
317
321
|
itemIndex: index,
|
|
318
|
-
selectedIndex: selectedIndex
|
|
322
|
+
selectedIndex: selectedIndex
|
|
323
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
324
|
+
,
|
|
319
325
|
onItemClick: (mode, index) => {
|
|
320
326
|
actions.onItemClick(mode, index, INPUT_METHOD.MOUSE);
|
|
321
327
|
},
|
|
@@ -359,7 +365,7 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
|
|
|
359
365
|
"aria-label": getTypeAheadListAriaLabels(undefined, intl).popupAriaLabel,
|
|
360
366
|
containerRole: "presentation",
|
|
361
367
|
role: "listbox"
|
|
362
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/
|
|
368
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
363
369
|
,
|
|
364
370
|
css: [
|
|
365
371
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -102,6 +102,8 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
102
102
|
|
|
103
103
|
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
104
104
|
FeatureGates.getExperimentValue('cc_fd_db_quick_insert_options', 'isEnabled', false);
|
|
105
|
+
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
106
|
+
FeatureGates.getExperimentValue('cc_fd_wb_jira_quick_insert_experiment', 'isEnabled', false);
|
|
105
107
|
api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : (_api$analytics2$actio = _api$analytics2.actions) === null || _api$analytics2$actio === void 0 ? void 0 : _api$analytics2$actio.fireAnalyticsEvent({
|
|
106
108
|
action: ACTION.RENDERED,
|
|
107
109
|
actionSubject: ACTION_SUBJECT.TYPEAHEAD,
|
|
@@ -313,7 +315,9 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
313
315
|
fitWidth: 340,
|
|
314
316
|
offset: OFFSET,
|
|
315
317
|
ariaLabel: null,
|
|
316
|
-
preventOverflow: true
|
|
318
|
+
preventOverflow: true
|
|
319
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
320
|
+
,
|
|
317
321
|
onUnmount: () => {
|
|
318
322
|
if (selectedIndex > -1 && editorExperiment('platform_editor_controls', 'variant1')) {
|
|
319
323
|
// if selectedIndex is -1, it means that the user has not selected any item
|
|
@@ -339,7 +343,9 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
339
343
|
triggerHandler: triggerHandler
|
|
340
344
|
}), jsx(TypeAheadList, {
|
|
341
345
|
items: items,
|
|
342
|
-
selectedIndex: selectedIndex
|
|
346
|
+
selectedIndex: selectedIndex
|
|
347
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
348
|
+
,
|
|
343
349
|
onItemClick: (mode, index, inputMethod) => {
|
|
344
350
|
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
345
351
|
activityStateRef.current = {
|
|
@@ -29,7 +29,9 @@ export function ContentComponent(_ref) {
|
|
|
29
29
|
}
|
|
30
30
|
return /*#__PURE__*/React.createElement(TypeAheadMenu, {
|
|
31
31
|
editorView: editorView,
|
|
32
|
-
popupMountRef: popupMountRef
|
|
32
|
+
popupMountRef: popupMountRef
|
|
33
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
34
|
+
,
|
|
33
35
|
typeAheadState: {
|
|
34
36
|
triggerHandler: triggerHandler,
|
|
35
37
|
items: items,
|
|
@@ -69,7 +69,8 @@ export var MoreOptions = function MoreOptions(_ref) {
|
|
|
69
69
|
}, jsx("span", {
|
|
70
70
|
css: buttonStyles
|
|
71
71
|
}, jsx(ButtonItem, {
|
|
72
|
-
ref: ref
|
|
72
|
+
ref: ref
|
|
73
|
+
/* eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed) */,
|
|
73
74
|
onMouseDown: function onMouseDown(e) {
|
|
74
75
|
if (isSafari && expValEquals('platform_safari_cursor_typeahead_fix', 'isEnabled', true)) {
|
|
75
76
|
e.preventDefault();
|
|
@@ -22,7 +22,9 @@ export var TypeAheadErrorFallback = function TypeAheadErrorFallback() {
|
|
|
22
22
|
"data-testid": "typeahead-error-boundary-ui",
|
|
23
23
|
css: minHeightComponentStyles
|
|
24
24
|
}, jsx(EmptyState, {
|
|
25
|
-
header: header
|
|
25
|
+
header: header
|
|
26
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
27
|
+
,
|
|
26
28
|
renderImage: function renderImage() {
|
|
27
29
|
return jsx(GenericErrorSVG, null);
|
|
28
30
|
},
|
|
@@ -208,7 +208,9 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
208
208
|
useLayoutEffect(function () {
|
|
209
209
|
// Exclude view more item from the count
|
|
210
210
|
var itemsToRender = showMoreOptionsButton ? items.slice(0, -1) : items;
|
|
211
|
-
var height = Math.min(
|
|
211
|
+
var height = Math.min(
|
|
212
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
213
|
+
itemsToRender.reduce(function (prevValue, currentValue, index) {
|
|
212
214
|
return prevValue + cache.rowHeight({
|
|
213
215
|
index: index
|
|
214
216
|
});
|
|
@@ -315,7 +317,9 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
315
317
|
,
|
|
316
318
|
style: style,
|
|
317
319
|
isVisible: isVisible,
|
|
318
|
-
isScrolling: isScrolling
|
|
320
|
+
isScrolling: isScrolling
|
|
321
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
322
|
+
,
|
|
319
323
|
onMouseMove: function onMouseMove(e) {
|
|
320
324
|
return _onMouseMove(e, index);
|
|
321
325
|
}
|
|
@@ -325,7 +329,9 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
325
329
|
firstOnlineSupportedIndex: firstOnlineSupportedRow,
|
|
326
330
|
itemsLength: itemsLength,
|
|
327
331
|
itemIndex: index,
|
|
328
|
-
selectedIndex: selectedIndex
|
|
332
|
+
selectedIndex: selectedIndex
|
|
333
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
334
|
+
,
|
|
329
335
|
onItemClick: function onItemClick(mode, index) {
|
|
330
336
|
actions.onItemClick(mode, index, INPUT_METHOD.MOUSE);
|
|
331
337
|
},
|
|
@@ -370,7 +376,7 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
370
376
|
"aria-label": getTypeAheadListAriaLabels(undefined, intl).popupAriaLabel,
|
|
371
377
|
containerRole: "presentation",
|
|
372
378
|
role: "listbox"
|
|
373
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/
|
|
379
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
374
380
|
,
|
|
375
381
|
css: [
|
|
376
382
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -103,6 +103,8 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
103
103
|
|
|
104
104
|
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
105
105
|
FeatureGates.getExperimentValue('cc_fd_db_quick_insert_options', 'isEnabled', false);
|
|
106
|
+
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
107
|
+
FeatureGates.getExperimentValue('cc_fd_wb_jira_quick_insert_experiment', 'isEnabled', false);
|
|
106
108
|
api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 || (_api$analytics2 = _api$analytics2.actions) === null || _api$analytics2 === void 0 || _api$analytics2.fireAnalyticsEvent({
|
|
107
109
|
action: ACTION.RENDERED,
|
|
108
110
|
actionSubject: ACTION_SUBJECT.TYPEAHEAD,
|
|
@@ -307,7 +309,9 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
307
309
|
fitWidth: 340,
|
|
308
310
|
offset: OFFSET,
|
|
309
311
|
ariaLabel: null,
|
|
310
|
-
preventOverflow: true
|
|
312
|
+
preventOverflow: true
|
|
313
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
314
|
+
,
|
|
311
315
|
onUnmount: function onUnmount() {
|
|
312
316
|
if (selectedIndex > -1 && editorExperiment('platform_editor_controls', 'variant1')) {
|
|
313
317
|
// if selectedIndex is -1, it means that the user has not selected any item
|
|
@@ -333,7 +337,9 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
333
337
|
triggerHandler: triggerHandler
|
|
334
338
|
}), jsx(TypeAheadList, {
|
|
335
339
|
items: items,
|
|
336
|
-
selectedIndex: selectedIndex
|
|
340
|
+
selectedIndex: selectedIndex
|
|
341
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
342
|
+
,
|
|
337
343
|
onItemClick: function onItemClick(mode, index, inputMethod) {
|
|
338
344
|
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
339
345
|
activityStateRef.current = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.10",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
46
46
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
47
47
|
"@atlaskit/theme": "^22.0.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^44.0.0",
|
|
49
49
|
"@atlaskit/tokens": "^11.1.0",
|
|
50
50
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|