@atlaskit/editor-plugin-type-ahead 28.0.6 → 29.0.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,17 @@
1
1
  # @atlaskit/editor-plugin-type-ahead
2
2
 
3
+ ## 29.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 29.0.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 28.0.6
4
16
 
5
17
  ### Patch Changes
@@ -20,7 +20,9 @@ var _typeAhead = require("@atlaskit/editor-common/type-ahead");
20
20
  var _messages = require("@atlaskit/editor-common/type-ahead/messages");
21
21
  var _menuGroup = _interopRequireDefault(require("@atlaskit/menu/menu-group"));
22
22
  var _fg = require("@atlaskit/platform-feature-flags/fg");
23
- var _compiled = require("@atlaskit/primitives/compiled");
23
+ var _box = require("@atlaskit/primitives/compiled/box");
24
+ var _inline = require("@atlaskit/primitives/compiled/inline");
25
+ var _text = require("@atlaskit/primitives/compiled/text");
24
26
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
25
27
  var _closeTypeAhead = require("../pm-plugins/commands/close-type-ahead");
26
28
  var _updateSelectedIndex = require("../pm-plugins/commands/update-selected-index");
@@ -420,41 +422,41 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref4) {
420
422
  onMouseMove: function onMouseMove(e) {
421
423
  return _onMouseMove(e, currentRow);
422
424
  }
423
- }, currentRow.type === 'section' ? (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') ? sectionLozenge ? (0, _react2.jsx)(_compiled.Box, {
425
+ }, currentRow.type === 'section' ? (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') ? sectionLozenge ? (0, _react2.jsx)(_box.Box, {
424
426
  paddingInline: "space.150",
425
427
  paddingBlockStart: "space.150",
426
428
  paddingBlockEnd: "space.050"
427
- }, (0, _react2.jsx)(_compiled.Inline, {
429
+ }, (0, _react2.jsx)(_inline.Inline, {
428
430
  as: "span",
429
431
  space: "space.075",
430
432
  alignBlock: "center"
431
- }, (0, _react2.jsx)(_compiled.Text, {
433
+ }, (0, _react2.jsx)(_text.Text, {
432
434
  as: "span",
433
435
  size: "small",
434
436
  color: "color.text.subtle",
435
437
  weight: "medium"
436
- }, currentRow.section.title), sectionLozenge)) : (0, _react2.jsx)(_compiled.Box, {
438
+ }, currentRow.section.title), sectionLozenge)) : (0, _react2.jsx)(_box.Box, {
437
439
  paddingInline: "space.150",
438
440
  paddingBlockStart: "space.100",
439
441
  paddingBlockEnd: "space.050"
440
- }, (0, _react2.jsx)(_compiled.Text, {
442
+ }, (0, _react2.jsx)(_text.Text, {
441
443
  as: "span",
442
444
  size: "small",
443
445
  color: "color.text.subtle",
444
446
  weight: "medium"
445
- }, currentRow.section.title)) : (0, _react2.jsx)(_compiled.Box, {
447
+ }, currentRow.section.title)) : (0, _react2.jsx)(_box.Box, {
446
448
  paddingInline: "space.150",
447
449
  paddingBlock: "space.050"
448
- }, sectionLozenge ? (0, _react2.jsx)(_compiled.Inline, {
450
+ }, sectionLozenge ? (0, _react2.jsx)(_inline.Inline, {
449
451
  as: "span",
450
452
  space: "space.075",
451
453
  alignBlock: "center"
452
- }, (0, _react2.jsx)(_compiled.Text, {
454
+ }, (0, _react2.jsx)(_text.Text, {
453
455
  as: "span",
454
456
  size: "small",
455
457
  color: "color.text.subtle",
456
458
  weight: "medium"
457
- }, currentRow.section.title), sectionLozenge) : (0, _react2.jsx)(_compiled.Text, {
459
+ }, currentRow.section.title), sectionLozenge) : (0, _react2.jsx)(_text.Text, {
458
460
  as: "span",
459
461
  size: "small",
460
462
  color: "color.text.subtle",
@@ -483,17 +485,17 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref4) {
483
485
  return null;
484
486
  }
485
487
  var menuGroupId = ((_decorationElement$qu2 = decorationElement.querySelector("[role='combobox']")) === null || _decorationElement$qu2 === void 0 ? void 0 : _decorationElement$qu2.getAttribute('aria-controls')) || _constants.TYPE_AHEAD_DECORATION_ELEMENT_ID;
486
- var EmptyResultView = (0, _react2.jsx)(_compiled.Box, {
488
+ var EmptyResultView = (0, _react2.jsx)(_box.Box, {
487
489
  paddingBlock: "space.150",
488
490
  paddingInline: "space.250"
489
- }, (0, _react2.jsx)(_compiled.Text, {
491
+ }, (0, _react2.jsx)(_text.Text, {
490
492
  align: "center",
491
493
  as: "p"
492
- }, intl.formatMessage(_messages.typeAheadListMessages.emptySearchResults)), (0, _react2.jsx)(_compiled.Text, {
494
+ }, intl.formatMessage(_messages.typeAheadListMessages.emptySearchResults)), (0, _react2.jsx)(_text.Text, {
493
495
  align: "center",
494
496
  as: "p"
495
497
  }, intl.formatMessage(_messages.typeAheadListMessages.emptySearchResultsSuggestion, {
496
- buttonName: (0, _react2.jsx)(_compiled.Text, {
498
+ buttonName: (0, _react2.jsx)(_text.Text, {
497
499
  weight: "medium"
498
500
  }, intl.formatMessage(_insertBlock.toolbarInsertBlockMessages.viewMore))
499
501
  })));
@@ -9,7 +9,7 @@ exports.TypeAheadMenuFooter = void 0;
9
9
  require("./TypeAheadMenuFooter.compiled.css");
10
10
  var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireDefault(require("react"));
12
- var _compiled = require("@atlaskit/primitives/compiled");
12
+ var _box = require("@atlaskit/primitives/compiled/box");
13
13
  var styles = {
14
14
  footer: "_1i531l7x _15a5nqa1 _uwhke4h9"
15
15
  };
@@ -21,7 +21,7 @@ var TypeAheadMenuFooter = exports.TypeAheadMenuFooter = function TypeAheadMenuFo
21
21
  registration = _ref.registration,
22
22
  _ref$hasScrollPadding = _ref.hasScrollPadding,
23
23
  hasScrollPadding = _ref$hasScrollPadding === void 0 ? false : _ref$hasScrollPadding;
24
- return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
24
+ return /*#__PURE__*/_react.default.createElement(_box.Box, {
25
25
  onMouseMove: onMouseMove,
26
26
  paddingBlockEnd: hasScrollPadding ? 'space.075' : undefined,
27
27
  xcss: styles.footer
@@ -15,7 +15,8 @@ var _emptyState = require("@atlaskit/editor-common/quick-insert/empty-state");
15
15
  var _registeredMenuModel = require("@atlaskit/editor-common/quick-insert/registered-menu-model");
16
16
  var _useMenuListHeight2 = require("@atlaskit/editor-common/quick-insert/use-menu-list-height");
17
17
  var _messages = require("@atlaskit/editor-common/type-ahead/messages");
18
- var _compiled = require("@atlaskit/primitives/compiled");
18
+ var _box = require("@atlaskit/primitives/compiled/box");
19
+ var _text = require("@atlaskit/primitives/compiled/text");
19
20
  var _createTypeAheadRowRenderer = require("./createTypeAheadRowRenderer");
20
21
  var _getTypeAheadGlobalViewMoreId = require("./getTypeAheadGlobalViewMoreId");
21
22
  var _PassThrough = require("./PassThrough");
@@ -129,7 +130,7 @@ var TypeAheadMenuRenderer = exports.TypeAheadMenuRenderer = function TypeAheadMe
129
130
  var RootComponent = (_model$root$component = model.root.component) !== null && _model$root$component !== void 0 ? _model$root$component : _PassThrough.PassThrough;
130
131
  var listMaxHeight = Math.max(0, maxHeight - (model.footer ? hasScrollPadding ? MENU_FOOTER_HEIGHT_WITH_SCROLL_PADDING : MENU_FOOTER_HEIGHT : 0));
131
132
  var hasListboxContent = rows.length > 0 || model.footer !== undefined;
132
- return /*#__PURE__*/_react.default.createElement(RootComponent, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
133
+ return /*#__PURE__*/_react.default.createElement(RootComponent, null, /*#__PURE__*/_react.default.createElement(_box.Box, {
133
134
  "aria-label": hasListboxContent ? intl.formatMessage(listLabel) : undefined,
134
135
  id: listId,
135
136
  role: hasListboxContent ? 'listbox' : undefined
@@ -148,11 +149,11 @@ var TypeAheadMenuRenderer = exports.TypeAheadMenuRenderer = function TypeAheadMe
148
149
  }) : query !== '' && ((_model$fallbackItems = model.fallbackItems) === null || _model$fallbackItems === void 0 ? void 0 : _model$fallbackItems.length) === 0 ? /*#__PURE__*/_react.default.createElement(_emptyState.QuickInsertEmptyState, {
149
150
  mode: "inline",
150
151
  spacing: "spacious"
151
- }) : model.fallbackItems === undefined ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
152
+ }) : model.fallbackItems === undefined ? /*#__PURE__*/_react.default.createElement(_box.Box, {
152
153
  paddingBlock: "space.150",
153
154
  paddingInline: "space.250",
154
155
  role: "group"
155
- }, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
156
+ }, /*#__PURE__*/_react.default.createElement(_text.Text, {
156
157
  align: "center",
157
158
  as: "p"
158
159
  }, intl.formatMessage(_messages.typeAheadListMessages.emptySearchResults))) : null, model.footer && /*#__PURE__*/_react.default.createElement(_TypeAheadMenuFooter.TypeAheadMenuFooter, {
@@ -17,7 +17,9 @@ import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
17
17
  import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead/messages';
18
18
  import MenuGroup from '@atlaskit/menu/menu-group';
19
19
  import { fg } from '@atlaskit/platform-feature-flags/fg';
20
- import { Box, Inline, Text } from '@atlaskit/primitives/compiled';
20
+ import { Box } from '@atlaskit/primitives/compiled/box';
21
+ import { Inline } from '@atlaskit/primitives/compiled/inline';
22
+ import { Text } from '@atlaskit/primitives/compiled/text';
21
23
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
22
24
  import { closeTypeAhead } from '../pm-plugins/commands/close-type-ahead';
23
25
  import { updateSelectedIndex } from '../pm-plugins/commands/update-selected-index';
@@ -2,7 +2,7 @@
2
2
  import "./TypeAheadMenuFooter.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import { Box } from '@atlaskit/primitives/compiled';
5
+ import { Box } from '@atlaskit/primitives/compiled/box';
6
6
  const styles = {
7
7
  footer: "_1i531l7x _15a5nqa1 _uwhke4h9"
8
8
  };
@@ -6,7 +6,8 @@ import { QuickInsertEmptyState } from '@atlaskit/editor-common/quick-insert/empt
6
6
  import { getQuickInsertMenuRows } from '@atlaskit/editor-common/quick-insert/registered-menu-model';
7
7
  import { useMenuListHeight } from '@atlaskit/editor-common/quick-insert/use-menu-list-height';
8
8
  import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead/messages';
9
- import { Box, Text } from '@atlaskit/primitives/compiled';
9
+ import { Box } from '@atlaskit/primitives/compiled/box';
10
+ import { Text } from '@atlaskit/primitives/compiled/text';
10
11
  import { createTypeAheadRowRenderer } from './createTypeAheadRowRenderer';
11
12
  import { getTypeAheadGlobalViewMoreId } from './getTypeAheadGlobalViewMoreId';
12
13
  import { PassThrough } from './PassThrough';
@@ -19,7 +19,9 @@ import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
19
19
  import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead/messages';
20
20
  import MenuGroup from '@atlaskit/menu/menu-group';
21
21
  import { fg } from '@atlaskit/platform-feature-flags/fg';
22
- import { Box, Inline, Text } from '@atlaskit/primitives/compiled';
22
+ import { Box } from '@atlaskit/primitives/compiled/box';
23
+ import { Inline } from '@atlaskit/primitives/compiled/inline';
24
+ import { Text } from '@atlaskit/primitives/compiled/text';
23
25
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
24
26
  import { closeTypeAhead } from '../pm-plugins/commands/close-type-ahead';
25
27
  import { updateSelectedIndex } from '../pm-plugins/commands/update-selected-index';
@@ -2,7 +2,7 @@
2
2
  import "./TypeAheadMenuFooter.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import { Box } from '@atlaskit/primitives/compiled';
5
+ import { Box } from '@atlaskit/primitives/compiled/box';
6
6
  var styles = {
7
7
  footer: "_1i531l7x _15a5nqa1 _uwhke4h9"
8
8
  };
@@ -10,7 +10,8 @@ import { QuickInsertEmptyState } from '@atlaskit/editor-common/quick-insert/empt
10
10
  import { getQuickInsertMenuRows } from '@atlaskit/editor-common/quick-insert/registered-menu-model';
11
11
  import { useMenuListHeight } from '@atlaskit/editor-common/quick-insert/use-menu-list-height';
12
12
  import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead/messages';
13
- import { Box, Text } from '@atlaskit/primitives/compiled';
13
+ import { Box } from '@atlaskit/primitives/compiled/box';
14
+ import { Text } from '@atlaskit/primitives/compiled/text';
14
15
  import { createTypeAheadRowRenderer } from './createTypeAheadRowRenderer';
15
16
  import { getTypeAheadGlobalViewMoreId } from './getTypeAheadGlobalViewMoreId';
16
17
  import { PassThrough } from './PassThrough';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "28.0.6",
3
+ "version": "29.0.1",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,26 +23,26 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^57.7.0",
25
25
  "@atlaskit/css": "^1.1.0",
26
- "@atlaskit/editor-plugin-analytics": "^27.0.0",
27
- "@atlaskit/editor-plugin-connectivity": "^27.0.0",
28
- "@atlaskit/editor-plugin-context-panel": "^29.0.0",
29
- "@atlaskit/editor-plugin-metrics": "^28.0.0",
30
- "@atlaskit/editor-plugin-ui-control-registry": "^21.0.0",
26
+ "@atlaskit/editor-plugin-analytics": "^28.0.0",
27
+ "@atlaskit/editor-plugin-connectivity": "^28.0.0",
28
+ "@atlaskit/editor-plugin-context-panel": "^30.0.0",
29
+ "@atlaskit/editor-plugin-metrics": "^29.0.0",
30
+ "@atlaskit/editor-plugin-ui-control-registry": "^22.0.0",
31
31
  "@atlaskit/editor-prosemirror": "^9.0.0",
32
- "@atlaskit/editor-shared-styles": "^4.4.0",
32
+ "@atlaskit/editor-shared-styles": "^4.5.0",
33
33
  "@atlaskit/editor-ui-control-model": "^2.10.0",
34
34
  "@atlaskit/feature-gate-js-client": "^7.0.0",
35
35
  "@atlaskit/heading": "^8.0.0",
36
36
  "@atlaskit/icon": "^38.0.0",
37
37
  "@atlaskit/insm": "^3.0.0",
38
- "@atlaskit/mention": "^30.2.0",
38
+ "@atlaskit/mention": "^30.3.0",
39
39
  "@atlaskit/menu": "^11.0.0",
40
40
  "@atlaskit/platform-feature-experiments": "^0.3.0",
41
41
  "@atlaskit/platform-feature-flags": "^2.2.0",
42
42
  "@atlaskit/primitives": "^22.6.0",
43
43
  "@atlaskit/prosemirror-history": "^1.3.0",
44
44
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
45
- "@atlaskit/tmp-editor-statsig": "^240.0.0",
45
+ "@atlaskit/tmp-editor-statsig": "^241.0.0",
46
46
  "@atlaskit/tokens": "^20.6.0",
47
47
  "@atlaskit/visually-hidden": "^4.4.0",
48
48
  "@babel/runtime": "^7.0.0",
@@ -54,7 +54,7 @@
54
54
  "w3c-keyname": "^2.1.8"
55
55
  },
56
56
  "peerDependencies": {
57
- "@atlaskit/editor-common": "^131.4.0",
57
+ "@atlaskit/editor-common": "^132.0.0",
58
58
  "react": "^18.2.0 || ^19.2.0",
59
59
  "react-dom": "^18.2.0 || ^19.2.0",
60
60
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"