@atlaskit/editor-plugin-status 15.0.4 → 15.0.5
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-plugin-status
|
|
2
2
|
|
|
3
|
+
## 15.0.5
|
|
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
|
## 15.0.4
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.getStatusQuickInsertComponents = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
10
|
+
var _createQuickInsertMatcher = require("@atlaskit/editor-common/quick-insert/create-quick-insert-matcher");
|
|
9
11
|
var _keys = require("@atlaskit/editor-common/quick-insert/keys");
|
|
10
12
|
var _rank = require("@atlaskit/editor-common/quick-insert/rank");
|
|
11
13
|
var _StatusQuickInsertMenuItem = require("./StatusQuickInsertMenuItem");
|
|
@@ -19,6 +21,14 @@ var getStatusQuickInsertComponents = exports.getStatusQuickInsertComponents = fu
|
|
|
19
21
|
type: _keys.STRUCTURE_SECTION.type,
|
|
20
22
|
rank: _rank.STRUCTURE_SECTION_RANK[_keys.STATUS_MENU_ITEM.key]
|
|
21
23
|
}],
|
|
24
|
+
match: (0, _createQuickInsertMatcher.createQuickInsertMatcher)(function (_ref2) {
|
|
25
|
+
var formatMessage = _ref2.formatMessage;
|
|
26
|
+
return {
|
|
27
|
+
description: formatMessage(_messages.toolbarInsertBlockMessages.statusDescription),
|
|
28
|
+
keywords: ['lozenge'],
|
|
29
|
+
title: formatMessage(_messages.toolbarInsertBlockMessages.status)
|
|
30
|
+
};
|
|
31
|
+
}),
|
|
22
32
|
component: function component() {
|
|
23
33
|
return /*#__PURE__*/_react.default.createElement(_StatusQuickInsertMenuItem.StatusQuickInsertMenuItem, {
|
|
24
34
|
api: api
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
|
+
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
2
4
|
import { STATUS_MENU_ITEM, STRUCTURE_SECTION } from '@atlaskit/editor-common/quick-insert/keys';
|
|
3
5
|
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
|
4
6
|
import { StatusQuickInsertMenuItem } from './StatusQuickInsertMenuItem';
|
|
@@ -12,6 +14,13 @@ export const getStatusQuickInsertComponents = ({
|
|
|
12
14
|
type: STRUCTURE_SECTION.type,
|
|
13
15
|
rank: STRUCTURE_SECTION_RANK[STATUS_MENU_ITEM.key]
|
|
14
16
|
}],
|
|
17
|
+
match: createQuickInsertMatcher(({
|
|
18
|
+
formatMessage
|
|
19
|
+
}) => ({
|
|
20
|
+
description: formatMessage(messages.statusDescription),
|
|
21
|
+
keywords: ['lozenge'],
|
|
22
|
+
title: formatMessage(messages.status)
|
|
23
|
+
})),
|
|
15
24
|
component: () => /*#__PURE__*/React.createElement(StatusQuickInsertMenuItem, {
|
|
16
25
|
api: api
|
|
17
26
|
})
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
|
+
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
2
4
|
import { STATUS_MENU_ITEM, STRUCTURE_SECTION } from '@atlaskit/editor-common/quick-insert/keys';
|
|
3
5
|
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
|
4
6
|
import { StatusQuickInsertMenuItem } from './StatusQuickInsertMenuItem';
|
|
@@ -12,6 +14,14 @@ export var getStatusQuickInsertComponents = function getStatusQuickInsertCompone
|
|
|
12
14
|
type: STRUCTURE_SECTION.type,
|
|
13
15
|
rank: STRUCTURE_SECTION_RANK[STATUS_MENU_ITEM.key]
|
|
14
16
|
}],
|
|
17
|
+
match: createQuickInsertMatcher(function (_ref2) {
|
|
18
|
+
var formatMessage = _ref2.formatMessage;
|
|
19
|
+
return {
|
|
20
|
+
description: formatMessage(messages.statusDescription),
|
|
21
|
+
keywords: ['lozenge'],
|
|
22
|
+
title: formatMessage(messages.status)
|
|
23
|
+
};
|
|
24
|
+
}),
|
|
15
25
|
component: function component() {
|
|
16
26
|
return /*#__PURE__*/React.createElement(StatusQuickInsertMenuItem, {
|
|
17
27
|
api: api
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-status",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.5",
|
|
4
4
|
"description": "Status plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@atlaskit/analytics-next": "^12.3.0",
|
|
26
26
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
27
27
|
"@atlaskit/editor-plugin-analytics": "^14.0.0",
|
|
28
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^8.
|
|
28
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^8.1.0",
|
|
29
29
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
30
30
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
31
|
-
"@atlaskit/editor-ui-control-model": "^2.
|
|
31
|
+
"@atlaskit/editor-ui-control-model": "^2.6.0",
|
|
32
32
|
"@atlaskit/icon": "^37.3.0",
|
|
33
33
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
34
34
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@emotion/react": "^11.7.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@atlaskit/editor-common": "^118.
|
|
43
|
+
"@atlaskit/editor-common": "^118.10.0",
|
|
44
44
|
"react": "^18.2.0 || ^19.2.0",
|
|
45
45
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
46
46
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|