@atlaskit/editor-plugin-mentions 13.3.7 → 13.3.10
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 +20 -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/entry-points/types.d.ts +1 -1
- package/dist/types/mentionsPluginType.d.ts +2 -8
- package/dist/types/types/index.d.ts +5 -2
- package/dist/types/ui/type-ahead/index.d.ts +2 -9
- package/dist/types-ts4.5/entry-points/types.d.ts +1 -1
- package/dist/types-ts4.5/mentionsPluginType.d.ts +2 -8
- package/dist/types-ts4.5/types/index.d.ts +5 -2
- package/dist/types-ts4.5/ui/type-ahead/index.d.ts +2 -9
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 13.3.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.3.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 13.3.8
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`ebfe7dee1573c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ebfe7dee1573c) -
|
|
20
|
+
Suppress pasted agent mention notifications
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 13.3.7
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -32,7 +32,7 @@ var ACTIONS = exports.ACTIONS = {
|
|
|
32
32
|
var AGENT_USER_TYPES = new Set(['APP', 'AGENT']);
|
|
33
33
|
var AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
|
|
34
34
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
35
|
-
var PACKAGE_VERSION = "13.3.
|
|
35
|
+
var PACKAGE_VERSION = "13.3.9";
|
|
36
36
|
var setProvider = function setProvider(provider) {
|
|
37
37
|
return function (state, dispatch) {
|
|
38
38
|
if (dispatch) {
|
|
@@ -17,7 +17,7 @@ export const ACTIONS = {
|
|
|
17
17
|
const AGENT_USER_TYPES = new Set(['APP', 'AGENT']);
|
|
18
18
|
const AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
|
|
19
19
|
const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
20
|
-
const PACKAGE_VERSION = "13.3.
|
|
20
|
+
const PACKAGE_VERSION = "13.3.9";
|
|
21
21
|
const setProvider = provider => (state, dispatch) => {
|
|
22
22
|
if (dispatch) {
|
|
23
23
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -24,7 +24,7 @@ export var ACTIONS = {
|
|
|
24
24
|
var AGENT_USER_TYPES = new Set(['APP', 'AGENT']);
|
|
25
25
|
var AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
|
|
26
26
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
27
|
-
var PACKAGE_VERSION = "13.3.
|
|
27
|
+
var PACKAGE_VERSION = "13.3.9";
|
|
28
28
|
var setProvider = function setProvider(provider) {
|
|
29
29
|
return function (state, dispatch) {
|
|
30
30
|
if (dispatch) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { MentionPluginConfig, MentionPluginOptions, MentionsPluginOptions, MentionSharedState, MentionsChangedHandler, } from '../types/index';
|
|
1
|
+
export type { MentionPluginConfig, MentionPluginOptions, MentionChange, MentionsPluginOptions, MentionSharedState, MentionsChangedHandler, } from '../types/index';
|
|
@@ -6,15 +6,9 @@ import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
|
6
6
|
import type { TypeAheadInputMethod, TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
7
7
|
import type { MentionProvider } from '@atlaskit/mention/resource';
|
|
8
8
|
import type { InsertMentionParameters } from './editor-commands';
|
|
9
|
-
import type { MentionPluginOptions, MentionSharedState } from './types';
|
|
9
|
+
import type { MentionChange, MentionPluginOptions, MentionSharedState } from './types';
|
|
10
10
|
export type MentionActionOpenTypeAhead = (inputMethod: TypeAheadInputMethod) => boolean;
|
|
11
|
-
export type MentionActionAnnounceMentionsInsertion = (mentionIds:
|
|
12
|
-
id: string;
|
|
13
|
-
localId: string;
|
|
14
|
-
shouldSuppressMentionNotification?: boolean;
|
|
15
|
-
taskLocalId?: string;
|
|
16
|
-
type: 'added' | 'deleted';
|
|
17
|
-
}[]) => void;
|
|
11
|
+
export type MentionActionAnnounceMentionsInsertion = (mentionIds: MentionChange[]) => void;
|
|
18
12
|
export type MentionActionSetProvider = (provider: Promise<MentionProvider>) => Promise<boolean>;
|
|
19
13
|
export type MentionActionUpdateSectionTitle = (props: TypeAheadSectionTitleUpdate) => boolean;
|
|
20
14
|
export type MentionActions = {
|
|
@@ -14,12 +14,15 @@ export interface MentionPluginConfig {
|
|
|
14
14
|
insertDisplayName?: boolean;
|
|
15
15
|
profilecardProvider?: Promise<ProfilecardProvider>;
|
|
16
16
|
}
|
|
17
|
-
export type
|
|
17
|
+
export type MentionChange = {
|
|
18
18
|
id: string;
|
|
19
19
|
localId: string;
|
|
20
|
+
method?: 'pasted' | 'typed';
|
|
21
|
+
shouldSuppressMentionNotification?: boolean;
|
|
20
22
|
taskLocalId?: string;
|
|
21
23
|
type: 'added' | 'deleted';
|
|
22
|
-
}
|
|
24
|
+
};
|
|
25
|
+
export type MentionsChangedHandler = (changes: MentionChange[]) => void;
|
|
23
26
|
export interface MentionsPluginOptions extends MentionPluginConfig {
|
|
24
27
|
allowZeroWidthSpaceAfter?: boolean;
|
|
25
28
|
/**
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ExtractInjectionAPI, TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { MentionDescription } from '@atlaskit/mention/resource';
|
|
4
4
|
import type { MentionsPlugin } from '../../mentionsPluginType';
|
|
5
|
-
import type { FireElementsChannelEvent } from '../../types';
|
|
5
|
+
import type { FireElementsChannelEvent, MentionChange } from '../../types';
|
|
6
6
|
export declare const mentionToTypeaheadItem: (mention: MentionDescription) => TypeAheadItem;
|
|
7
7
|
export declare function memoize<ResultFn extends (mention: MentionDescription) => TypeAheadItem>(fn: ResultFn): {
|
|
8
8
|
call: ResultFn;
|
|
@@ -11,14 +11,7 @@ export declare function memoize<ResultFn extends (mention: MentionDescription) =
|
|
|
11
11
|
type Props = {
|
|
12
12
|
api: ExtractInjectionAPI<MentionsPlugin> | undefined;
|
|
13
13
|
fireEvent: FireElementsChannelEvent;
|
|
14
|
-
handleMentionsChanged?: (mentionChanges:
|
|
15
|
-
id: string;
|
|
16
|
-
localId: string;
|
|
17
|
-
method?: 'pasted' | 'typed';
|
|
18
|
-
shouldSuppressMentionNotification?: boolean;
|
|
19
|
-
taskLocalId?: string;
|
|
20
|
-
type: 'added' | 'deleted';
|
|
21
|
-
}[]) => void;
|
|
14
|
+
handleMentionsChanged?: (mentionChanges: MentionChange[]) => void;
|
|
22
15
|
HighlightComponent?: React.ComponentType<React.PropsWithChildren<unknown>>;
|
|
23
16
|
mentionInsertDisplayName?: boolean;
|
|
24
17
|
sanitizePrivateContent?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { MentionPluginConfig, MentionPluginOptions, MentionsPluginOptions, MentionSharedState, MentionsChangedHandler, } from '../types/index';
|
|
1
|
+
export type { MentionPluginConfig, MentionPluginOptions, MentionChange, MentionsPluginOptions, MentionSharedState, MentionsChangedHandler, } from '../types/index';
|
|
@@ -6,15 +6,9 @@ import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
|
6
6
|
import type { TypeAheadInputMethod, TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
7
7
|
import type { MentionProvider } from '@atlaskit/mention/resource';
|
|
8
8
|
import type { InsertMentionParameters } from './editor-commands';
|
|
9
|
-
import type { MentionPluginOptions, MentionSharedState } from './types';
|
|
9
|
+
import type { MentionChange, MentionPluginOptions, MentionSharedState } from './types';
|
|
10
10
|
export type MentionActionOpenTypeAhead = (inputMethod: TypeAheadInputMethod) => boolean;
|
|
11
|
-
export type MentionActionAnnounceMentionsInsertion = (mentionIds:
|
|
12
|
-
id: string;
|
|
13
|
-
localId: string;
|
|
14
|
-
shouldSuppressMentionNotification?: boolean;
|
|
15
|
-
taskLocalId?: string;
|
|
16
|
-
type: 'added' | 'deleted';
|
|
17
|
-
}[]) => void;
|
|
11
|
+
export type MentionActionAnnounceMentionsInsertion = (mentionIds: MentionChange[]) => void;
|
|
18
12
|
export type MentionActionSetProvider = (provider: Promise<MentionProvider>) => Promise<boolean>;
|
|
19
13
|
export type MentionActionUpdateSectionTitle = (props: TypeAheadSectionTitleUpdate) => boolean;
|
|
20
14
|
export type MentionActions = {
|
|
@@ -14,12 +14,15 @@ export interface MentionPluginConfig {
|
|
|
14
14
|
insertDisplayName?: boolean;
|
|
15
15
|
profilecardProvider?: Promise<ProfilecardProvider>;
|
|
16
16
|
}
|
|
17
|
-
export type
|
|
17
|
+
export type MentionChange = {
|
|
18
18
|
id: string;
|
|
19
19
|
localId: string;
|
|
20
|
+
method?: 'pasted' | 'typed';
|
|
21
|
+
shouldSuppressMentionNotification?: boolean;
|
|
20
22
|
taskLocalId?: string;
|
|
21
23
|
type: 'added' | 'deleted';
|
|
22
|
-
}
|
|
24
|
+
};
|
|
25
|
+
export type MentionsChangedHandler = (changes: MentionChange[]) => void;
|
|
23
26
|
export interface MentionsPluginOptions extends MentionPluginConfig {
|
|
24
27
|
allowZeroWidthSpaceAfter?: boolean;
|
|
25
28
|
/**
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ExtractInjectionAPI, TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { MentionDescription } from '@atlaskit/mention/resource';
|
|
4
4
|
import type { MentionsPlugin } from '../../mentionsPluginType';
|
|
5
|
-
import type { FireElementsChannelEvent } from '../../types';
|
|
5
|
+
import type { FireElementsChannelEvent, MentionChange } from '../../types';
|
|
6
6
|
export declare const mentionToTypeaheadItem: (mention: MentionDescription) => TypeAheadItem;
|
|
7
7
|
export declare function memoize<ResultFn extends (mention: MentionDescription) => TypeAheadItem>(fn: ResultFn): {
|
|
8
8
|
call: ResultFn;
|
|
@@ -11,14 +11,7 @@ export declare function memoize<ResultFn extends (mention: MentionDescription) =
|
|
|
11
11
|
type Props = {
|
|
12
12
|
api: ExtractInjectionAPI<MentionsPlugin> | undefined;
|
|
13
13
|
fireEvent: FireElementsChannelEvent;
|
|
14
|
-
handleMentionsChanged?: (mentionChanges:
|
|
15
|
-
id: string;
|
|
16
|
-
localId: string;
|
|
17
|
-
method?: 'pasted' | 'typed';
|
|
18
|
-
shouldSuppressMentionNotification?: boolean;
|
|
19
|
-
taskLocalId?: string;
|
|
20
|
-
type: 'added' | 'deleted';
|
|
21
|
-
}[]) => void;
|
|
14
|
+
handleMentionsChanged?: (mentionChanges: MentionChange[]) => void;
|
|
22
15
|
HighlightComponent?: React.ComponentType<React.PropsWithChildren<unknown>>;
|
|
23
16
|
mentionInsertDisplayName?: boolean;
|
|
24
17
|
sanitizePrivateContent?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.10",
|
|
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
|
"@atlaskit/editor-plugin-base": "^12.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-context-identifier": "^11.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-selection": "^11.0.0",
|
|
38
|
-
"@atlaskit/editor-plugin-type-ahead": "^11.
|
|
38
|
+
"@atlaskit/editor-plugin-type-ahead": "^11.3.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
40
40
|
"@atlaskit/icon": "^35.4.0",
|
|
41
41
|
"@atlaskit/insm": "^0.4.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/profilecard": "^25.9.0",
|
|
49
49
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
50
50
|
"@atlaskit/theme": "^25.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^98.0.0",
|
|
52
52
|
"@atlaskit/tokens": "^13.3.0",
|
|
53
53
|
"@atlaskit/tooltip": "^22.6.0",
|
|
54
54
|
"@atlaskit/user-picker": "^12.1.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"uuid": "^3.1.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@atlaskit/editor-common": "^115.
|
|
63
|
+
"@atlaskit/editor-common": "^115.12.0",
|
|
64
64
|
"react": "^18.2.0",
|
|
65
65
|
"react-dom": "^18.2.0",
|
|
66
66
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|