@atlaskit/editor-plugin-mentions 18.2.7 → 18.2.9
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 +14 -0
- package/dist/cjs/mentionsPlugin.js +2 -2
- package/dist/cjs/pm-plugins/main.js +10 -808
- package/dist/es2019/mentionsPlugin.js +2 -2
- package/dist/es2019/pm-plugins/main.js +3 -772
- package/dist/esm/mentionsPlugin.js +2 -2
- package/dist/esm/pm-plugins/main.js +11 -808
- package/dist/types/pm-plugins/main.d.ts +0 -15
- package/package.json +6 -6
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { ResolvingMentionProvider } from '@atlaskit/mention/resource';
|
|
5
3
|
import type { MentionsPlugin } from '../mentionsPluginType';
|
|
6
4
|
import type { FireElementsChannelEvent, MentionPluginOptions, MentionPluginState } from '../types';
|
|
7
5
|
export declare const ACTIONS: {
|
|
@@ -27,19 +25,6 @@ export declare const ACTIONS: {
|
|
|
27
25
|
*/
|
|
28
26
|
CLEAR_PENDING_PASTED_AGENT_MENTION: string;
|
|
29
27
|
};
|
|
30
|
-
/**
|
|
31
|
-
* Resolves the name of a pasted agent mention via the mention provider and
|
|
32
|
-
* dispatches the appropriate action to update plugin state.
|
|
33
|
-
*
|
|
34
|
-
* Handles both async (Promise) and synchronous cache-hit results:
|
|
35
|
-
* - On OK resolution → dispatches RESOLVE_PASTED_AGENT_MENTION_NAME so the nudge
|
|
36
|
-
* shows the correct agent name.
|
|
37
|
-
* - On non-OK result → dispatches CLEAR_PENDING_PASTED_AGENT_MENTION to prevent
|
|
38
|
-
* an infinite retry loop on subsequent update() calls.
|
|
39
|
-
*
|
|
40
|
-
* Guards against duplicate in-flight requests via pendingResolveMentionIds.
|
|
41
|
-
*/
|
|
42
|
-
export declare const resolveAndDispatchPastedAgentMentionName: (agentId: string, mentionProvider: ResolvingMentionProvider, pendingResolveMentionIds: Set<string>, view: EditorView) => void;
|
|
43
28
|
interface CreateMentionPlugin {
|
|
44
29
|
api?: ExtractInjectionAPI<MentionsPlugin>;
|
|
45
30
|
fireEvent: FireElementsChannelEvent;
|
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.9",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^57.
|
|
24
|
+
"@atlaskit/adf-schema": "^57.3.0",
|
|
25
25
|
"@atlaskit/css": "^1.1.0",
|
|
26
26
|
"@atlaskit/editor-json-transformer": "^9.8.0",
|
|
27
27
|
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"@atlaskit/primitives": "^22.5.0",
|
|
46
46
|
"@atlaskit/profilecard": "^26.21.0",
|
|
47
47
|
"@atlaskit/section-message": "^10.2.0",
|
|
48
|
-
"@atlaskit/teams-app-config": "^3.
|
|
48
|
+
"@atlaskit/teams-app-config": "^3.1.0",
|
|
49
49
|
"@atlaskit/theme": "^28.2.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^174.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^16.11.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.13.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.4.0",
|
|
70
70
|
"@testing-library/react": "^16.3.0",
|
|
71
71
|
"react": "^19.2.0",
|
|
72
72
|
"react-dom": "^19.2.0",
|