@atlaskit/editor-plugin-mentions 18.2.0 → 18.2.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 +10 -0
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/ui/quick-insert/getMentionQuickInsertComponents.js +3 -3
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/quick-insert/getMentionQuickInsertComponents.js +5 -5
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/quick-insert/getMentionQuickInsertComponents.js +5 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 18.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ec66928dbdbeb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ec66928dbdbeb) -
|
|
8
|
+
For the platform_editor_slash_command experiment, reorder Structure items, update slash-command
|
|
9
|
+
icons, move Jira work items to Data & Charts, and move Create Jira work item and Mention to
|
|
10
|
+
Structure. Use BlockSyncedIcon for the Synced block command.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 18.2.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -74,7 +74,7 @@ var AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
|
|
|
74
74
|
var AGENT_MENTION_INACTIVITY_MS = 3000;
|
|
75
75
|
var MAX_PENDING_TYPED_AGENT_MENTION_FOCUS_DEFERS = 20;
|
|
76
76
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
77
|
-
var PACKAGE_VERSION = "18.
|
|
77
|
+
var PACKAGE_VERSION = "18.2.0";
|
|
78
78
|
var setProvider = function setProvider(provider) {
|
|
79
79
|
return function (state, dispatch) {
|
|
80
80
|
if (dispatch) {
|
|
@@ -18,9 +18,9 @@ var getMentionQuickInsertComponents = exports.getMentionQuickInsertComponents =
|
|
|
18
18
|
key: _keys.MENTION_MENU_ITEM.key,
|
|
19
19
|
type: _keys.MENTION_MENU_ITEM.type,
|
|
20
20
|
parents: [{
|
|
21
|
-
key: _keys.
|
|
22
|
-
type: _keys.
|
|
23
|
-
rank: _rank.
|
|
21
|
+
key: _keys.STRUCTURE_SECTION.key,
|
|
22
|
+
type: _keys.STRUCTURE_SECTION.type,
|
|
23
|
+
rank: _rank.STRUCTURE_SECTION_RANK[_keys.MENTION_MENU_ITEM.key]
|
|
24
24
|
}],
|
|
25
25
|
match: (0, _createQuickInsertMatcher.createQuickInsertMatcher)(function (_ref2) {
|
|
26
26
|
var formatMessage = _ref2.formatMessage;
|
|
@@ -58,7 +58,7 @@ const AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
|
|
|
58
58
|
const AGENT_MENTION_INACTIVITY_MS = 3000;
|
|
59
59
|
const MAX_PENDING_TYPED_AGENT_MENTION_FOCUS_DEFERS = 20;
|
|
60
60
|
const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
61
|
-
const PACKAGE_VERSION = "18.
|
|
61
|
+
const PACKAGE_VERSION = "18.2.0";
|
|
62
62
|
const setProvider = provider => (state, dispatch) => {
|
|
63
63
|
if (dispatch) {
|
|
64
64
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
3
|
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { MENTION_MENU_ITEM, STRUCTURE_SECTION } from '@atlaskit/editor-common/quick-insert/keys';
|
|
5
|
+
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
|
6
6
|
import { MentionQuickInsertMenuItem } from './MentionQuickInsertMenuItem';
|
|
7
7
|
export const getMentionQuickInsertComponents = ({
|
|
8
8
|
api,
|
|
@@ -11,9 +11,9 @@ export const getMentionQuickInsertComponents = ({
|
|
|
11
11
|
key: MENTION_MENU_ITEM.key,
|
|
12
12
|
type: MENTION_MENU_ITEM.type,
|
|
13
13
|
parents: [{
|
|
14
|
-
key:
|
|
15
|
-
type:
|
|
16
|
-
rank:
|
|
14
|
+
key: STRUCTURE_SECTION.key,
|
|
15
|
+
type: STRUCTURE_SECTION.type,
|
|
16
|
+
rank: STRUCTURE_SECTION_RANK[MENTION_MENU_ITEM.key]
|
|
17
17
|
}],
|
|
18
18
|
match: createQuickInsertMatcher(({
|
|
19
19
|
formatMessage
|
|
@@ -65,7 +65,7 @@ var AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
|
|
|
65
65
|
var AGENT_MENTION_INACTIVITY_MS = 3000;
|
|
66
66
|
var MAX_PENDING_TYPED_AGENT_MENTION_FOCUS_DEFERS = 20;
|
|
67
67
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
68
|
-
var PACKAGE_VERSION = "18.
|
|
68
|
+
var PACKAGE_VERSION = "18.2.0";
|
|
69
69
|
var setProvider = function setProvider(provider) {
|
|
70
70
|
return function (state, dispatch) {
|
|
71
71
|
if (dispatch) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
3
|
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { MENTION_MENU_ITEM, STRUCTURE_SECTION } from '@atlaskit/editor-common/quick-insert/keys';
|
|
5
|
+
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
|
6
6
|
import { MentionQuickInsertMenuItem } from './MentionQuickInsertMenuItem';
|
|
7
7
|
export var getMentionQuickInsertComponents = function getMentionQuickInsertComponents(_ref) {
|
|
8
8
|
var api = _ref.api,
|
|
@@ -11,9 +11,9 @@ export var getMentionQuickInsertComponents = function getMentionQuickInsertCompo
|
|
|
11
11
|
key: MENTION_MENU_ITEM.key,
|
|
12
12
|
type: MENTION_MENU_ITEM.type,
|
|
13
13
|
parents: [{
|
|
14
|
-
key:
|
|
15
|
-
type:
|
|
16
|
-
rank:
|
|
14
|
+
key: STRUCTURE_SECTION.key,
|
|
15
|
+
type: STRUCTURE_SECTION.type,
|
|
16
|
+
rank: STRUCTURE_SECTION_RANK[MENTION_MENU_ITEM.key]
|
|
17
17
|
}],
|
|
18
18
|
match: createQuickInsertMatcher(function (_ref2) {
|
|
19
19
|
var formatMessage = _ref2.formatMessage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "18.2.
|
|
3
|
+
"version": "18.2.1",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/section-message": "^10.2.0",
|
|
48
48
|
"@atlaskit/teams-app-config": "^3.0.0",
|
|
49
49
|
"@atlaskit/theme": "^28.2.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^169.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^16.10.0",
|
|
52
52
|
"@atlaskit/tooltip": "^24.3.0",
|
|
53
53
|
"@atlaskit/user-picker": "^13.12.0",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"uuid": "^3.1.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@atlaskit/editor-common": "^120.
|
|
62
|
+
"@atlaskit/editor-common": "^120.10.0",
|
|
63
63
|
"react": "^18.2.0 || ^19.2.0",
|
|
64
64
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
65
65
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@atlaskit/button": "^25.3.0",
|
|
69
|
-
"@atlaskit/editor-core": "^226.
|
|
69
|
+
"@atlaskit/editor-core": "^226.3.0",
|
|
70
70
|
"@testing-library/react": "^16.3.0",
|
|
71
71
|
"react": "^19.2.0",
|
|
72
72
|
"react-dom": "^19.2.0",
|