@atlaskit/editor-plugin-mentions 18.1.5 → 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 +21 -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 +24 -24
- package/report.api.md +0 -93
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
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
|
+
|
|
13
|
+
## 18.2.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
18
|
+
Remove stale API report artifacts from published Platform packages.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 18.1.5
|
|
4
25
|
|
|
5
26
|
### Patch 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.1
|
|
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",
|
|
@@ -23,34 +23,34 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^57.2.0",
|
|
25
25
|
"@atlaskit/css": "^1.1.0",
|
|
26
|
-
"@atlaskit/editor-json-transformer": "^9.
|
|
27
|
-
"@atlaskit/editor-plugin-analytics": "^16.
|
|
28
|
-
"@atlaskit/editor-plugin-base": "^17.
|
|
26
|
+
"@atlaskit/editor-json-transformer": "^9.8.0",
|
|
27
|
+
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
28
|
+
"@atlaskit/editor-plugin-base": "^17.1.0",
|
|
29
29
|
"@atlaskit/editor-plugin-context-identifier": "^16.0.0",
|
|
30
|
-
"@atlaskit/editor-plugin-selection": "^16.
|
|
31
|
-
"@atlaskit/editor-plugin-type-ahead": "^17.
|
|
30
|
+
"@atlaskit/editor-plugin-selection": "^16.1.0",
|
|
31
|
+
"@atlaskit/editor-plugin-type-ahead": "^17.1.0",
|
|
32
32
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
33
33
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
34
|
-
"@atlaskit/icon": "^37.
|
|
34
|
+
"@atlaskit/icon": "^37.6.0",
|
|
35
35
|
"@atlaskit/insm": "^3.0.0",
|
|
36
36
|
"@atlaskit/link": "^5.1.0",
|
|
37
|
-
"@atlaskit/lozenge": "^15.
|
|
38
|
-
"@atlaskit/mention": "^27.
|
|
37
|
+
"@atlaskit/lozenge": "^15.4.0",
|
|
38
|
+
"@atlaskit/mention": "^27.19.0",
|
|
39
39
|
"@atlaskit/node-data-provider": "^17.0.0",
|
|
40
40
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
41
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
42
|
-
"@atlaskit/popper": "^9.
|
|
43
|
-
"@atlaskit/popup": "^6.
|
|
44
|
-
"@atlaskit/portal": "^6.
|
|
45
|
-
"@atlaskit/primitives": "^22.
|
|
46
|
-
"@atlaskit/profilecard": "^26.
|
|
47
|
-
"@atlaskit/section-message": "^10.
|
|
41
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
42
|
+
"@atlaskit/popper": "^9.4.0",
|
|
43
|
+
"@atlaskit/popup": "^6.3.0",
|
|
44
|
+
"@atlaskit/portal": "^6.4.0",
|
|
45
|
+
"@atlaskit/primitives": "^22.5.0",
|
|
46
|
+
"@atlaskit/profilecard": "^26.21.0",
|
|
47
|
+
"@atlaskit/section-message": "^10.2.0",
|
|
48
48
|
"@atlaskit/teams-app-config": "^3.0.0",
|
|
49
|
-
"@atlaskit/theme": "^28.
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
51
|
-
"@atlaskit/tokens": "^16.
|
|
52
|
-
"@atlaskit/tooltip": "^24.
|
|
53
|
-
"@atlaskit/user-picker": "^13.
|
|
49
|
+
"@atlaskit/theme": "^28.2.0",
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^169.0.0",
|
|
51
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
52
|
+
"@atlaskit/tooltip": "^24.3.0",
|
|
53
|
+
"@atlaskit/user-picker": "^13.12.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@compiled/react": "^1.0.2",
|
|
56
56
|
"bind-event-listener": "^3.0.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
|
-
"@atlaskit/button": "^25.
|
|
69
|
-
"@atlaskit/editor-core": "^226.
|
|
68
|
+
"@atlaskit/button": "^25.3.0",
|
|
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",
|
package/report.api.md
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
<!-- API Report Version: 2.3 -->
|
|
2
|
-
|
|
3
|
-
## API Report File for "@atlaskit/editor-plugin-mentions"
|
|
4
|
-
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
6
|
-
> [API Extractor](https://api-extractor.com/).
|
|
7
|
-
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
8
|
-
|
|
9
|
-
### Table of contents
|
|
10
|
-
|
|
11
|
-
- [Main Entry Types](#main-entry-types)
|
|
12
|
-
- [Peer Dependencies](#peer-dependencies)
|
|
13
|
-
|
|
14
|
-
### Main Entry Types
|
|
15
|
-
|
|
16
|
-
<!--SECTION START: Main Entry Types-->
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
/// <reference types="react" />
|
|
20
|
-
|
|
21
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
22
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
23
|
-
import type { MentionDescription } from '@atlaskit/mention';
|
|
24
|
-
import type { MentionProvider } from '@atlaskit/mention';
|
|
25
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
26
|
-
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
27
|
-
import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
28
|
-
import type { TypeAheadInputMethod } from '@atlaskit/editor-plugin-type-ahead';
|
|
29
|
-
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
30
|
-
|
|
31
|
-
// @public (undocumented)
|
|
32
|
-
export interface MentionPluginConfig {
|
|
33
|
-
// (undocumented)
|
|
34
|
-
HighlightComponent?: React.ComponentType;
|
|
35
|
-
// (undocumented)
|
|
36
|
-
insertDisplayName?: boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// @public (undocumented)
|
|
40
|
-
interface MentionPluginOptions extends MentionPluginConfig {
|
|
41
|
-
// (undocumented)
|
|
42
|
-
allowZeroWidthSpaceAfter?: boolean;
|
|
43
|
-
// (undocumented)
|
|
44
|
-
sanitizePrivateContent?: boolean;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// @public (undocumented)
|
|
48
|
-
type MentionPluginState = {
|
|
49
|
-
mentionProvider?: MentionProvider;
|
|
50
|
-
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
51
|
-
mentions?: Array<MentionDescription>;
|
|
52
|
-
canInsertMention?: boolean;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
// @public (undocumented)
|
|
56
|
-
type MentionSharedState = MentionPluginState & {
|
|
57
|
-
typeAheadHandler: TypeAheadHandler;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
// @public (undocumented)
|
|
61
|
-
export type MentionsPlugin = NextEditorPlugin<
|
|
62
|
-
'mention',
|
|
63
|
-
{
|
|
64
|
-
pluginConfiguration: MentionPluginOptions | undefined;
|
|
65
|
-
dependencies: [OptionalPlugin<AnalyticsPlugin>, TypeAheadPlugin];
|
|
66
|
-
sharedState: MentionSharedState | undefined;
|
|
67
|
-
actions: {
|
|
68
|
-
openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
>;
|
|
72
|
-
|
|
73
|
-
// @public (undocumented)
|
|
74
|
-
export const mentionsPlugin: MentionsPlugin;
|
|
75
|
-
|
|
76
|
-
// (No @packageDocumentation comment for this package)
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
<!--SECTION END: Main Entry Types-->
|
|
80
|
-
|
|
81
|
-
### Peer Dependencies
|
|
82
|
-
|
|
83
|
-
<!--SECTION START: Peer Dependencies-->
|
|
84
|
-
|
|
85
|
-
```json
|
|
86
|
-
{
|
|
87
|
-
"react": "^16.8.0",
|
|
88
|
-
"react-dom": "^16.8.0",
|
|
89
|
-
"react-intl": "npm:react-intl@^5.18.1"
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
<!--SECTION END: Peer Dependencies-->
|