@atlaskit/editor-plugin-type-ahead 6.0.0 → 6.1.1

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,23 @@
1
1
  # @atlaskit/editor-plugin-type-ahead
2
2
 
3
+ ## 6.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`da1a70c14ac8b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/da1a70c14ac8b) -
14
+ [https://product-fabric.atlassian.net/browse/ED-27391](ED-27391) - clean up
15
+ platform_editor_typeahead_dynamic_height_fix FG
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 6.0.0
4
22
 
5
23
  ### 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
- }, (0, _platformFeatureFlags.fg)('platform_editor_typeahead_dynamic_height_fix') ? function (_ref6) {
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
- } : (0, _react2.jsx)("div", {
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)) {
@@ -337,7 +337,7 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
337
337
  }
338
338
  }, (0, _react2.jsx)("div", {
339
339
  css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
340
- // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
340
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex, @atlassian/a11y/no-noninteractive-tabindex
341
341
  ,
342
342
  tabIndex: 0
343
343
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -311,7 +311,7 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
311
311
  preventOverflow: true
312
312
  }, (0, _react2.jsx)("div", {
313
313
  css: [typeAheadContent]
314
- // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
314
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex, @atlassian/a11y/no-noninteractive-tabindex
315
315
  ,
316
316
  tabIndex: 0
317
317
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -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
- }, fg('platform_editor_typeahead_dynamic_height_fix') ? ({
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
- })) : jsx("div", {
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)) {
@@ -333,7 +333,7 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
333
333
  }
334
334
  }, jsx("div", {
335
335
  css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
336
- // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
336
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex, @atlassian/a11y/no-noninteractive-tabindex
337
337
  ,
338
338
  tabIndex: 0
339
339
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -305,7 +305,7 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
305
305
  preventOverflow: true
306
306
  }, jsx("div", {
307
307
  css: [typeAheadContent]
308
- // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
308
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex, @atlassian/a11y/no-noninteractive-tabindex
309
309
  ,
310
310
  tabIndex: 0
311
311
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -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
- }, fg('platform_editor_typeahead_dynamic_height_fix') ? function (_ref6) {
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
- } : jsx("div", {
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)) {
@@ -327,7 +327,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
327
327
  }
328
328
  }, jsx("div", {
329
329
  css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
330
- // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
330
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex, @atlassian/a11y/no-noninteractive-tabindex
331
331
  ,
332
332
  tabIndex: 0
333
333
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -302,7 +302,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
302
302
  preventOverflow: true
303
303
  }, jsx("div", {
304
304
  css: [typeAheadContent]
305
- // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
305
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex, @atlassian/a11y/no-noninteractive-tabindex
306
306
  ,
307
307
  tabIndex: 0
308
308
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "6.0.0",
3
+ "version": "6.1.1",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@atlaskit/adf-schema": "^51.2.0",
33
33
  "@atlaskit/editor-element-browser": "^4.0.0",
34
- "@atlaskit/editor-plugin-analytics": "^6.0.0",
34
+ "@atlaskit/editor-plugin-analytics": "^6.1.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.0.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.31.0",
49
- "@atlaskit/tokens": "^6.3.0",
48
+ "@atlaskit/tmp-editor-statsig": "^13.0.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.0.0",
59
+ "@atlaskit/editor-common": "^110.4.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
  },