@atlaskit/editor-core 223.1.0 → 223.1.2
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 +16 -0
- package/dist/cjs/ui/quick-insert/getExtensionQuickInsertComponents.js +8 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/quick-insert/getExtensionQuickInsertComponents.js +6 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/quick-insert/getExtensionQuickInsertComponents.js +8 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 223.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 223.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`3a4c286fdb8c1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a4c286fdb8c1) -
|
|
14
|
+
Add registry-backed Quick Insert search matching under the existing
|
|
15
|
+
`platform_editor_slash_command` experiment. Make native, provider, and extension registered Quick
|
|
16
|
+
Insert items searchable.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 223.1.0
|
|
4
20
|
|
|
5
21
|
### 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.
|
|
9
|
+
var version = exports.version = "223.1.1";
|
|
@@ -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,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, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "223.1.
|
|
3
|
+
"version": "223.1.2",
|
|
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.
|
|
69
|
+
"@atlaskit/react-ufo": "^7.4.0",
|
|
70
70
|
"@atlaskit/task-decision": "^21.8.0",
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
72
|
-
"@atlaskit/tokens": "^16.
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^147.0.0",
|
|
72
|
+
"@atlaskit/tokens": "^16.7.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.
|
|
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.
|
|
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",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@atlaskit/adf-utils": "^20.5.0",
|
|
101
101
|
"@atlaskit/analytics-listeners": "^11.1.0",
|
|
102
102
|
"@atlaskit/code": "^19.0.0",
|
|
103
|
-
"@atlaskit/collab-provider": "^23.
|
|
103
|
+
"@atlaskit/collab-provider": "^23.1.0",
|
|
104
104
|
"@atlaskit/editor-plugin-annotation": "^14.0.0",
|
|
105
105
|
"@atlaskit/editor-plugin-card": "^20.0.0",
|
|
106
106
|
"@atlaskit/editor-plugin-list": "^16.0.0",
|