@atlaskit/editor-plugin-mentions 4.4.2 → 4.5.0
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 +9 -0
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/index.d.ts +7 -6
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types/index.d.ts +7 -6
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 4.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#145336](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/145336)
|
|
8
|
+
[`7c22413232131`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7c22413232131) -
|
|
9
|
+
[https://product-fabric.atlassian.net/browse/ED-27657](ED-27657) - move the `mentions` and
|
|
10
|
+
`tasksAndDecisions` plugins configuration to `@atlassian/confluence-presets` package
|
|
11
|
+
|
|
3
12
|
## 4.4.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -26,7 +26,7 @@ var ACTIONS = exports.ACTIONS = {
|
|
|
26
26
|
SET_PROVIDER: 'SET_PROVIDER'
|
|
27
27
|
};
|
|
28
28
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
29
|
-
var PACKAGE_VERSION = "4.
|
|
29
|
+
var PACKAGE_VERSION = "4.5.0";
|
|
30
30
|
var setProvider = function setProvider(provider) {
|
|
31
31
|
return function (state, dispatch) {
|
|
32
32
|
if (dispatch) {
|
|
@@ -15,7 +15,7 @@ export const ACTIONS = {
|
|
|
15
15
|
SET_PROVIDER: 'SET_PROVIDER'
|
|
16
16
|
};
|
|
17
17
|
const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
18
|
-
const PACKAGE_VERSION = "4.
|
|
18
|
+
const PACKAGE_VERSION = "4.5.0";
|
|
19
19
|
const setProvider = provider => (state, dispatch) => {
|
|
20
20
|
if (dispatch) {
|
|
21
21
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -18,7 +18,7 @@ export var ACTIONS = {
|
|
|
18
18
|
SET_PROVIDER: 'SET_PROVIDER'
|
|
19
19
|
};
|
|
20
20
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
21
|
-
var PACKAGE_VERSION = "4.
|
|
21
|
+
var PACKAGE_VERSION = "4.5.0";
|
|
22
22
|
var setProvider = function setProvider(provider) {
|
|
23
23
|
return function (state, dispatch) {
|
|
24
24
|
if (dispatch) {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { mentionsPlugin } from './mentionsPlugin';
|
|
2
2
|
export type { MentionsPlugin } from './mentionsPluginType';
|
|
3
|
-
export type { MentionPluginConfig, MentionPluginOptions, MentionsPluginOptions, MentionSharedState, } from './types';
|
|
3
|
+
export type { MentionPluginConfig, MentionPluginOptions, MentionsPluginOptions, MentionSharedState, MentionsChangedHandler, } from './types';
|
|
@@ -15,16 +15,17 @@ export interface MentionPluginConfig {
|
|
|
15
15
|
insertDisplayName?: boolean;
|
|
16
16
|
profilecardProvider?: Promise<ProfilecardProvider>;
|
|
17
17
|
}
|
|
18
|
+
export type MentionsChangedHandler = (changes: {
|
|
19
|
+
type: 'added' | 'deleted';
|
|
20
|
+
localId: string;
|
|
21
|
+
id: string;
|
|
22
|
+
taskLocalId?: string;
|
|
23
|
+
}[]) => void;
|
|
18
24
|
export interface MentionsPluginOptions extends MentionPluginConfig {
|
|
19
25
|
mentionProvider?: Providers['mentionProvider'];
|
|
20
26
|
sanitizePrivateContent?: boolean;
|
|
21
27
|
allowZeroWidthSpaceAfter?: boolean;
|
|
22
|
-
handleMentionsChanged?:
|
|
23
|
-
type: 'added' | 'deleted';
|
|
24
|
-
localId: string;
|
|
25
|
-
id: string;
|
|
26
|
-
taskLocalId?: string;
|
|
27
|
-
}[]) => void;
|
|
28
|
+
handleMentionsChanged?: MentionsChangedHandler;
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* @private
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { mentionsPlugin } from './mentionsPlugin';
|
|
2
2
|
export type { MentionsPlugin } from './mentionsPluginType';
|
|
3
|
-
export type { MentionPluginConfig, MentionPluginOptions, MentionsPluginOptions, MentionSharedState, } from './types';
|
|
3
|
+
export type { MentionPluginConfig, MentionPluginOptions, MentionsPluginOptions, MentionSharedState, MentionsChangedHandler, } from './types';
|
|
@@ -15,16 +15,17 @@ export interface MentionPluginConfig {
|
|
|
15
15
|
insertDisplayName?: boolean;
|
|
16
16
|
profilecardProvider?: Promise<ProfilecardProvider>;
|
|
17
17
|
}
|
|
18
|
+
export type MentionsChangedHandler = (changes: {
|
|
19
|
+
type: 'added' | 'deleted';
|
|
20
|
+
localId: string;
|
|
21
|
+
id: string;
|
|
22
|
+
taskLocalId?: string;
|
|
23
|
+
}[]) => void;
|
|
18
24
|
export interface MentionsPluginOptions extends MentionPluginConfig {
|
|
19
25
|
mentionProvider?: Providers['mentionProvider'];
|
|
20
26
|
sanitizePrivateContent?: boolean;
|
|
21
27
|
allowZeroWidthSpaceAfter?: boolean;
|
|
22
|
-
handleMentionsChanged?:
|
|
23
|
-
type: 'added' | 'deleted';
|
|
24
|
-
localId: string;
|
|
25
|
-
id: string;
|
|
26
|
-
taskLocalId?: string;
|
|
27
|
-
}[]) => void;
|
|
28
|
+
handleMentionsChanged?: MentionsChangedHandler;
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* @private
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
37
|
"@atlaskit/css": "^0.10.0",
|
|
38
|
-
"@atlaskit/editor-common": "^103.
|
|
38
|
+
"@atlaskit/editor-common": "^103.16.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-base": "^2.3.0",
|
|
41
41
|
"@atlaskit/editor-plugin-context-identifier": "^2.1.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/portal": "^5.1.0",
|
|
50
50
|
"@atlaskit/profilecard": "^23.8.0",
|
|
51
51
|
"@atlaskit/theme": "^18.0.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^4.14.0",
|
|
53
53
|
"@atlaskit/tokens": "^4.8.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@compiled/react": "^0.18.3",
|