@atlaskit/editor-core 223.1.0 → 223.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,15 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 223.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3a4c286fdb8c1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a4c286fdb8c1) -
8
+ Add registry-backed Quick Insert search matching under the existing
9
+ `platform_editor_slash_command` experiment. Make native, provider, and extension registered Quick
10
+ Insert items searchable.
11
+ - Updated dependencies
12
+
3
13
  ## 223.1.0
4
14
 
5
15
  ### Minor Changes
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.getExtensionQuickInsertComponents = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
+ var _createQuickInsertMatcher = require("@atlaskit/editor-common/quick-insert/create-quick-insert-matcher");
9
10
  var _getMenuItemParents = require("@atlaskit/editor-common/quick-insert/get-menu-item-parents");
10
11
  var _rank = require("@atlaskit/editor-common/quick-insert/rank");
11
12
  var _ExtensionQuickInsertMenuItem = require("./ExtensionQuickInsertMenuItem");
@@ -22,6 +23,13 @@ var getExtensionQuickInsertComponents = exports.getExtensionQuickInsertComponent
22
23
  categories: item.categories,
23
24
  rank: _rank.EXTENSION_ITEM_RANK + ((_item$priority = item.priority) !== null && _item$priority !== void 0 ? _item$priority : index)
24
25
  }),
26
+ match: (0, _createQuickInsertMatcher.createQuickInsertMatcher)(function () {
27
+ return {
28
+ description: item.description,
29
+ keywords: item.keywords,
30
+ title: item.title
31
+ };
32
+ }),
25
33
  component: function component(props) {
26
34
  var onInsert = typeof props.onInsert === 'function' ? props.onInsert : undefined;
27
35
  return /*#__PURE__*/_react.default.createElement(_ExtensionQuickInsertMenuItem.ExtensionQuickInsertMenuItem, {
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
8
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
- var version = exports.version = "223.0.7";
9
+ var version = exports.version = "223.1.0";
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
2
3
  import { getQuickInsertMenuItemParents } from '@atlaskit/editor-common/quick-insert/get-menu-item-parents';
3
4
  import { EXTENSION_ITEM_RANK } from '@atlaskit/editor-common/quick-insert/rank';
4
5
  import { ExtensionQuickInsertMenuItem } from './ExtensionQuickInsertMenuItem';
@@ -15,6 +16,11 @@ export const getExtensionQuickInsertComponents = ({
15
16
  categories: item.categories,
16
17
  rank: EXTENSION_ITEM_RANK + ((_item$priority = item.priority) !== null && _item$priority !== void 0 ? _item$priority : index)
17
18
  }),
19
+ match: createQuickInsertMatcher(() => ({
20
+ description: item.description,
21
+ keywords: item.keywords,
22
+ title: item.title
23
+ })),
18
24
  component: props => {
19
25
  const onInsert = typeof props.onInsert === 'function' ? props.onInsert : undefined;
20
26
  return /*#__PURE__*/React.createElement(ExtensionQuickInsertMenuItem, {
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "223.0.7";
3
+ export const version = "223.1.0";
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
2
3
  import { getQuickInsertMenuItemParents } from '@atlaskit/editor-common/quick-insert/get-menu-item-parents';
3
4
  import { EXTENSION_ITEM_RANK } from '@atlaskit/editor-common/quick-insert/rank';
4
5
  import { ExtensionQuickInsertMenuItem } from './ExtensionQuickInsertMenuItem';
@@ -15,6 +16,13 @@ export var getExtensionQuickInsertComponents = function getExtensionQuickInsertC
15
16
  categories: item.categories,
16
17
  rank: EXTENSION_ITEM_RANK + ((_item$priority = item.priority) !== null && _item$priority !== void 0 ? _item$priority : index)
17
18
  }),
19
+ match: createQuickInsertMatcher(function () {
20
+ return {
21
+ description: item.description,
22
+ keywords: item.keywords,
23
+ title: item.title
24
+ };
25
+ }),
18
26
  component: function component(props) {
19
27
  var onInsert = typeof props.onInsert === 'function' ? props.onInsert : undefined;
20
28
  return /*#__PURE__*/React.createElement(ExtensionQuickInsertMenuItem, {
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "223.0.7";
3
+ export var version = "223.1.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "223.1.0",
3
+ "version": "223.1.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -66,14 +66,14 @@
66
66
  "@atlaskit/platform-feature-flags": "^2.1.0",
67
67
  "@atlaskit/platform-feature-flags-react": "^1.1.0",
68
68
  "@atlaskit/react-compiler-gating": "^0.2.0",
69
- "@atlaskit/react-ufo": "^7.3.0",
69
+ "@atlaskit/react-ufo": "^7.4.0",
70
70
  "@atlaskit/task-decision": "^21.8.0",
71
71
  "@atlaskit/tmp-editor-statsig": "^146.0.0",
72
72
  "@atlaskit/tokens": "^16.6.0",
73
73
  "@atlaskit/tooltip": "^24.0.0",
74
74
  "@atlaskit/width-detector": "^7.0.0",
75
75
  "@babel/runtime": "^7.0.0",
76
- "@compiled/react": "^1.0.0",
76
+ "@compiled/react": "^1.0.2",
77
77
  "@emotion/react": "^11.7.1",
78
78
  "@types/react-loadable": "^5.4.1",
79
79
  "@types/rison": "^0.0.6",
@@ -86,7 +86,7 @@
86
86
  "uuid": "^3.1.0"
87
87
  },
88
88
  "peerDependencies": {
89
- "@atlaskit/editor-common": "^118.8.0",
89
+ "@atlaskit/editor-common": "^118.10.0",
90
90
  "@atlaskit/link-provider": "^5.3.0",
91
91
  "@atlaskit/media-core": "^38.0.0",
92
92
  "react": "^18.2.0",