@atlaskit/editor-plugin-mentions 24.1.0 → 24.1.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 +8 -0
- package/dist/cjs/nodeviews/profileCardRenderer.js +1 -1
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/ui/ProfileCardComponent.js +1 -3
- package/dist/es2019/nodeviews/profileCardRenderer.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/ProfileCardComponent.js +1 -3
- package/dist/esm/nodeviews/profileCardRenderer.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/ProfileCardComponent.js +1 -3
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 24.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a726b246b3166`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a726b246b3166) -
|
|
8
|
+
Clean up feature gate `platform_editor_agent_card_close_on_chat`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 24.1.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -107,7 +107,7 @@ var profileCardRenderer = exports.profileCardRenderer = function profileCardRend
|
|
|
107
107
|
// The mention stays node-selected after the chat opens; collapse the
|
|
108
108
|
// selection to a cursor just after it so it is no longer left selected.
|
|
109
109
|
// Selection-only change, so it does not move focus (EDITOR-8257).
|
|
110
|
-
if (editorView
|
|
110
|
+
if (editorView) {
|
|
111
111
|
var state = editorView.state;
|
|
112
112
|
editorView.dispatch(state.tr.setSelection(_state.TextSelection.create(state.doc, state.selection.to)));
|
|
113
113
|
}
|
|
@@ -45,7 +45,7 @@ var ACTIONS = exports.ACTIONS = {
|
|
|
45
45
|
CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
|
|
46
46
|
};
|
|
47
47
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
48
|
-
var PACKAGE_VERSION = "24.0
|
|
48
|
+
var PACKAGE_VERSION = "24.1.0";
|
|
49
49
|
var setProvider = function setProvider(provider) {
|
|
50
50
|
return function (state, dispatch) {
|
|
51
51
|
if (dispatch) {
|
|
@@ -233,9 +233,7 @@ function ProfileCardComponent(_ref6) {
|
|
|
233
233
|
// closure built by profileCardRenderer at chip-click time via doc.descendants()
|
|
234
234
|
onAgentMentionChatClick(agentStudioId !== null && agentStudioId !== void 0 ? agentStudioId : id);
|
|
235
235
|
// Dismiss the profile card once the Rovo chat panel opens (EDITOR-8257).
|
|
236
|
-
|
|
237
|
-
closeComponent();
|
|
238
|
-
}
|
|
236
|
+
closeComponent();
|
|
239
237
|
} : undefined
|
|
240
238
|
}) : /*#__PURE__*/React.createElement(UserProfileCardContent, {
|
|
241
239
|
accessLevel: accessLevel,
|
|
@@ -96,7 +96,7 @@ export const profileCardRenderer = ({
|
|
|
96
96
|
// The mention stays node-selected after the chat opens; collapse the
|
|
97
97
|
// selection to a cursor just after it so it is no longer left selected.
|
|
98
98
|
// Selection-only change, so it does not move focus (EDITOR-8257).
|
|
99
|
-
if (editorView
|
|
99
|
+
if (editorView) {
|
|
100
100
|
const {
|
|
101
101
|
state
|
|
102
102
|
} = editorView;
|
|
@@ -34,7 +34,7 @@ export const ACTIONS = {
|
|
|
34
34
|
CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
|
|
35
35
|
};
|
|
36
36
|
const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
37
|
-
const PACKAGE_VERSION = "24.0
|
|
37
|
+
const PACKAGE_VERSION = "24.1.0";
|
|
38
38
|
const setProvider = provider => (state, dispatch) => {
|
|
39
39
|
if (dispatch) {
|
|
40
40
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -157,9 +157,7 @@ export function ProfileCardComponent({
|
|
|
157
157
|
// closure built by profileCardRenderer at chip-click time via doc.descendants()
|
|
158
158
|
onAgentMentionChatClick(agentStudioId !== null && agentStudioId !== void 0 ? agentStudioId : id);
|
|
159
159
|
// Dismiss the profile card once the Rovo chat panel opens (EDITOR-8257).
|
|
160
|
-
|
|
161
|
-
closeComponent();
|
|
162
|
-
}
|
|
160
|
+
closeComponent();
|
|
163
161
|
} : undefined
|
|
164
162
|
}) : /*#__PURE__*/React.createElement(UserProfileCardContent, {
|
|
165
163
|
accessLevel: accessLevel,
|
|
@@ -101,7 +101,7 @@ export var profileCardRenderer = function profileCardRenderer(_ref) {
|
|
|
101
101
|
// The mention stays node-selected after the chat opens; collapse the
|
|
102
102
|
// selection to a cursor just after it so it is no longer left selected.
|
|
103
103
|
// Selection-only change, so it does not move focus (EDITOR-8257).
|
|
104
|
-
if (editorView
|
|
104
|
+
if (editorView) {
|
|
105
105
|
var state = editorView.state;
|
|
106
106
|
editorView.dispatch(state.tr.setSelection(TextSelection.create(state.doc, state.selection.to)));
|
|
107
107
|
}
|
|
@@ -37,7 +37,7 @@ export var ACTIONS = {
|
|
|
37
37
|
CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
|
|
38
38
|
};
|
|
39
39
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
40
|
-
var PACKAGE_VERSION = "24.0
|
|
40
|
+
var PACKAGE_VERSION = "24.1.0";
|
|
41
41
|
var setProvider = function setProvider(provider) {
|
|
42
42
|
return function (state, dispatch) {
|
|
43
43
|
if (dispatch) {
|
|
@@ -221,9 +221,7 @@ export function ProfileCardComponent(_ref6) {
|
|
|
221
221
|
// closure built by profileCardRenderer at chip-click time via doc.descendants()
|
|
222
222
|
onAgentMentionChatClick(agentStudioId !== null && agentStudioId !== void 0 ? agentStudioId : id);
|
|
223
223
|
// Dismiss the profile card once the Rovo chat panel opens (EDITOR-8257).
|
|
224
|
-
|
|
225
|
-
closeComponent();
|
|
226
|
-
}
|
|
224
|
+
closeComponent();
|
|
227
225
|
} : undefined
|
|
228
226
|
}) : /*#__PURE__*/React.createElement(UserProfileCardContent, {
|
|
229
227
|
accessLevel: accessLevel,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "24.1.
|
|
3
|
+
"version": "24.1.1",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -102,9 +102,6 @@
|
|
|
102
102
|
"platform_editor_agent_mentions_drop_one_fixes": {
|
|
103
103
|
"type": "boolean"
|
|
104
104
|
},
|
|
105
|
-
"platform_editor_agent_card_close_on_chat": {
|
|
106
|
-
"type": "boolean"
|
|
107
|
-
},
|
|
108
105
|
"platform_editor_mention_typeahead_profilecard": {
|
|
109
106
|
"type": "boolean"
|
|
110
107
|
},
|