@atlaskit/editor-plugin-type-ahead 6.0.0 → 6.1.0
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/TypeAheadList.js +2 -25
- package/dist/es2019/ui/TypeAheadList.js +2 -23
- package/dist/esm/ui/TypeAheadList.js +2 -25
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 6.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`da1a70c14ac8b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/da1a70c14ac8b) -
|
|
8
|
+
[https://product-fabric.atlassian.net/browse/ED-27391](ED-27391) - clean up
|
|
9
|
+
platform_editor_typeahead_dynamic_height_fix FG
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 6.0.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -17,7 +17,6 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
17
17
|
var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
18
18
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
19
19
|
var _menu = require("@atlaskit/menu");
|
|
20
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
20
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
21
|
var _closeTypeAhead = require("../pm-plugins/commands/close-type-ahead");
|
|
23
22
|
var _updateSelectedIndex = require("../pm-plugins/commands/update-selected-index");
|
|
@@ -297,7 +296,7 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
297
296
|
parent: parent,
|
|
298
297
|
columnIndex: 0,
|
|
299
298
|
rowIndex: index
|
|
300
|
-
},
|
|
299
|
+
}, function (_ref6) {
|
|
301
300
|
var measure = _ref6.measure,
|
|
302
301
|
registerChild = _ref6.registerChild;
|
|
303
302
|
return (0, _react2.jsx)(_ListRow.ListRow, {
|
|
@@ -326,29 +325,7 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
326
325
|
moreElementsInQuickInsertViewEnabled: moreElementsInQuickInsertViewEnabled,
|
|
327
326
|
api: api
|
|
328
327
|
}));
|
|
329
|
-
}
|
|
330
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
331
|
-
style: style,
|
|
332
|
-
"data-index": index
|
|
333
|
-
}, (0, _react2.jsx)("div", {
|
|
334
|
-
"data-testid": "list-item-height-observed-".concat(index),
|
|
335
|
-
onMouseMove: function onMouseMove(e) {
|
|
336
|
-
return _onMouseMove(e, index);
|
|
337
|
-
}
|
|
338
|
-
}, (0, _react2.jsx)(_TypeAheadListItem.TypeAheadListItem, {
|
|
339
|
-
key: items[index].title,
|
|
340
|
-
item: currentItem,
|
|
341
|
-
firstOnlineSupportedIndex: firstOnlineSupportedRow,
|
|
342
|
-
itemsLength: itemsLength,
|
|
343
|
-
itemIndex: index,
|
|
344
|
-
selectedIndex: selectedIndex,
|
|
345
|
-
onItemClick: function onItemClick(mode, index) {
|
|
346
|
-
actions.onItemClick(mode, index, _analytics.INPUT_METHOD.MOUSE);
|
|
347
|
-
},
|
|
348
|
-
ariaLabel: (0, _utils.getTypeAheadListAriaLabels)(triggerHandler === null || triggerHandler === void 0 ? void 0 : triggerHandler.trigger, intl, currentItem).listItemAriaLabel,
|
|
349
|
-
moreElementsInQuickInsertViewEnabled: moreElementsInQuickInsertViewEnabled,
|
|
350
|
-
api: api
|
|
351
|
-
}))));
|
|
328
|
+
});
|
|
352
329
|
};
|
|
353
330
|
var popupAriaLabel = (0, _utils.getTypeAheadListAriaLabels)(triggerHandler === null || triggerHandler === void 0 ? void 0 : triggerHandler.trigger, intl).popupAriaLabel;
|
|
354
331
|
if (!Array.isArray(items)) {
|
|
@@ -15,7 +15,6 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
15
15
|
import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
|
|
16
16
|
import { AssistiveText } from '@atlaskit/editor-common/ui';
|
|
17
17
|
import { MenuGroup } from '@atlaskit/menu';
|
|
18
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
18
|
import { Text, Box } from '@atlaskit/primitives/compiled';
|
|
20
19
|
import { closeTypeAhead } from '../pm-plugins/commands/close-type-ahead';
|
|
21
20
|
import { updateSelectedIndex } from '../pm-plugins/commands/update-selected-index';
|
|
@@ -280,7 +279,7 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
|
|
|
280
279
|
parent: parent,
|
|
281
280
|
columnIndex: 0,
|
|
282
281
|
rowIndex: index
|
|
283
|
-
},
|
|
282
|
+
}, ({
|
|
284
283
|
measure,
|
|
285
284
|
registerChild
|
|
286
285
|
}) => jsx(ListRow, {
|
|
@@ -306,27 +305,7 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
|
|
|
306
305
|
ariaLabel: getTypeAheadListAriaLabels(triggerHandler === null || triggerHandler === void 0 ? void 0 : triggerHandler.trigger, intl, currentItem).listItemAriaLabel,
|
|
307
306
|
moreElementsInQuickInsertViewEnabled: moreElementsInQuickInsertViewEnabled,
|
|
308
307
|
api: api
|
|
309
|
-
}))
|
|
310
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
311
|
-
style: style,
|
|
312
|
-
"data-index": index
|
|
313
|
-
}, jsx("div", {
|
|
314
|
-
"data-testid": `list-item-height-observed-${index}`,
|
|
315
|
-
onMouseMove: e => onMouseMove(e, index)
|
|
316
|
-
}, jsx(TypeAheadListItem, {
|
|
317
|
-
key: items[index].title,
|
|
318
|
-
item: currentItem,
|
|
319
|
-
firstOnlineSupportedIndex: firstOnlineSupportedRow,
|
|
320
|
-
itemsLength: itemsLength,
|
|
321
|
-
itemIndex: index,
|
|
322
|
-
selectedIndex: selectedIndex,
|
|
323
|
-
onItemClick: (mode, index) => {
|
|
324
|
-
actions.onItemClick(mode, index, INPUT_METHOD.MOUSE);
|
|
325
|
-
},
|
|
326
|
-
ariaLabel: getTypeAheadListAriaLabels(triggerHandler === null || triggerHandler === void 0 ? void 0 : triggerHandler.trigger, intl, currentItem).listItemAriaLabel,
|
|
327
|
-
moreElementsInQuickInsertViewEnabled: moreElementsInQuickInsertViewEnabled,
|
|
328
|
-
api: api
|
|
329
|
-
}))));
|
|
308
|
+
})));
|
|
330
309
|
};
|
|
331
310
|
const popupAriaLabel = getTypeAheadListAriaLabels(triggerHandler === null || triggerHandler === void 0 ? void 0 : triggerHandler.trigger, intl).popupAriaLabel;
|
|
332
311
|
if (!Array.isArray(items)) {
|
|
@@ -16,7 +16,6 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
16
16
|
import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
|
|
17
17
|
import { AssistiveText } from '@atlaskit/editor-common/ui';
|
|
18
18
|
import { MenuGroup } from '@atlaskit/menu';
|
|
19
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
19
|
import { Text, Box } from '@atlaskit/primitives/compiled';
|
|
21
20
|
import { closeTypeAhead } from '../pm-plugins/commands/close-type-ahead';
|
|
22
21
|
import { updateSelectedIndex } from '../pm-plugins/commands/update-selected-index';
|
|
@@ -288,7 +287,7 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
288
287
|
parent: parent,
|
|
289
288
|
columnIndex: 0,
|
|
290
289
|
rowIndex: index
|
|
291
|
-
},
|
|
290
|
+
}, function (_ref6) {
|
|
292
291
|
var measure = _ref6.measure,
|
|
293
292
|
registerChild = _ref6.registerChild;
|
|
294
293
|
return jsx(ListRow, {
|
|
@@ -317,29 +316,7 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
317
316
|
moreElementsInQuickInsertViewEnabled: moreElementsInQuickInsertViewEnabled,
|
|
318
317
|
api: api
|
|
319
318
|
}));
|
|
320
|
-
}
|
|
321
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
322
|
-
style: style,
|
|
323
|
-
"data-index": index
|
|
324
|
-
}, jsx("div", {
|
|
325
|
-
"data-testid": "list-item-height-observed-".concat(index),
|
|
326
|
-
onMouseMove: function onMouseMove(e) {
|
|
327
|
-
return _onMouseMove(e, index);
|
|
328
|
-
}
|
|
329
|
-
}, jsx(TypeAheadListItem, {
|
|
330
|
-
key: items[index].title,
|
|
331
|
-
item: currentItem,
|
|
332
|
-
firstOnlineSupportedIndex: firstOnlineSupportedRow,
|
|
333
|
-
itemsLength: itemsLength,
|
|
334
|
-
itemIndex: index,
|
|
335
|
-
selectedIndex: selectedIndex,
|
|
336
|
-
onItemClick: function onItemClick(mode, index) {
|
|
337
|
-
actions.onItemClick(mode, index, INPUT_METHOD.MOUSE);
|
|
338
|
-
},
|
|
339
|
-
ariaLabel: getTypeAheadListAriaLabels(triggerHandler === null || triggerHandler === void 0 ? void 0 : triggerHandler.trigger, intl, currentItem).listItemAriaLabel,
|
|
340
|
-
moreElementsInQuickInsertViewEnabled: moreElementsInQuickInsertViewEnabled,
|
|
341
|
-
api: api
|
|
342
|
-
}))));
|
|
319
|
+
});
|
|
343
320
|
};
|
|
344
321
|
var popupAriaLabel = getTypeAheadListAriaLabels(triggerHandler === null || triggerHandler === void 0 ? void 0 : triggerHandler.trigger, intl).popupAriaLabel;
|
|
345
322
|
if (!Array.isArray(items)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@atlaskit/primitives": "^14.15.0",
|
|
46
46
|
"@atlaskit/prosemirror-input-rules": "^3.4.0",
|
|
47
47
|
"@atlaskit/theme": "^21.0.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
49
|
-
"@atlaskit/tokens": "^6.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^12.32.0",
|
|
49
|
+
"@atlaskit/tokens": "^6.4.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"lodash": "^4.17.21",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"w3c-keyname": "^2.1.8"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^110.
|
|
59
|
+
"@atlaskit/editor-common": "^110.2.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
62
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -94,9 +94,6 @@
|
|
|
94
94
|
"platform_editor_legacy_content_macro_typeahead_fix": {
|
|
95
95
|
"type": "boolean"
|
|
96
96
|
},
|
|
97
|
-
"platform_editor_typeahead_dynamic_height_fix": {
|
|
98
|
-
"type": "boolean"
|
|
99
|
-
},
|
|
100
97
|
"platform_editor_quick_insert_placeholder": {
|
|
101
98
|
"type": "boolean"
|
|
102
99
|
},
|