@atlaskit/editor-plugin-mentions 19.0.1 → 19.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 +17 -0
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/ui/PopperWrapper.js +2 -2
- package/dist/cjs/ui/ProfileCardComponent.js +1 -1
- package/dist/cjs/ui/type-ahead/index.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/PopperWrapper.js +2 -2
- package/dist/es2019/ui/ProfileCardComponent.js +1 -1
- package/dist/es2019/ui/type-ahead/index.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/PopperWrapper.js +2 -2
- package/dist/esm/ui/ProfileCardComponent.js +1 -1
- package/dist/esm/ui/type-ahead/index.js +1 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 19.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 19.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`58af51ca2cc2f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/58af51ca2cc2f) -
|
|
14
|
+
Add agent profile card to mention typeahead in Jira
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 19.0.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -43,7 +43,7 @@ var ACTIONS = exports.ACTIONS = {
|
|
|
43
43
|
CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
|
|
44
44
|
};
|
|
45
45
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
46
|
-
var PACKAGE_VERSION = "19.
|
|
46
|
+
var PACKAGE_VERSION = "19.1.0";
|
|
47
47
|
var setProvider = function setProvider(provider) {
|
|
48
48
|
return function (state, dispatch) {
|
|
49
49
|
if (dispatch) {
|
|
@@ -108,7 +108,7 @@ function Popup(_ref3) {
|
|
|
108
108
|
strategy: "fixed"
|
|
109
109
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
110
110
|
,
|
|
111
|
-
modifiers: (0, _expVal.expVal)('platform_editor_agent_mentions', 'isEnabled', false) ? [{
|
|
111
|
+
modifiers: (0, _expVal.expVal)('platform_editor_agent_mentions', 'isEnabled', false) || (0, _fg.fg)('platform_editor_agent_card_fixes') ? [{
|
|
112
112
|
name: 'flip',
|
|
113
113
|
options: {
|
|
114
114
|
rootBoundary: 'viewport',
|
|
@@ -130,7 +130,7 @@ function Popup(_ref3) {
|
|
|
130
130
|
ref: ref,
|
|
131
131
|
style: style,
|
|
132
132
|
update: update,
|
|
133
|
-
forceUpdate: (0, _expVal.expVal)('platform_editor_agent_mentions', 'isEnabled', false) ? forceUpdate : undefined,
|
|
133
|
+
forceUpdate: (0, _expVal.expVal)('platform_editor_agent_mentions', 'isEnabled', false) || (0, _fg.fg)('platform_editor_agent_card_fixes') ? forceUpdate : undefined,
|
|
134
134
|
setPopupRef: setPopupRef
|
|
135
135
|
}, children);
|
|
136
136
|
})));
|
|
@@ -183,7 +183,7 @@ function ProfileCardComponent(_ref5) {
|
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
});
|
|
186
|
-
if (!(0, _expVal.expVal)('platform_editor_agent_mentions', 'isEnabled', false)) {
|
|
186
|
+
if (!(0, _expVal.expVal)('platform_editor_agent_mentions', 'isEnabled', false) && !(0, _fg.fg)('platform_editor_agent_card_fixes')) {
|
|
187
187
|
return /*#__PURE__*/React.createElement(_PopperWrapper.Popup, {
|
|
188
188
|
referenceElement: dom,
|
|
189
189
|
placement: placement,
|
|
@@ -167,7 +167,7 @@ var makeMentionToTypeaheadItem = function makeMentionToTypeaheadItem(_ref4) {
|
|
|
167
167
|
var isSelected = _ref7.isSelected,
|
|
168
168
|
onClick = _ref7.onClick,
|
|
169
169
|
onHover = _ref7.onHover;
|
|
170
|
-
return (0, _expVal.expVal)('platform_editor_agent_mentions', 'isEnabled', false) && (0, _fg.fg)('platform_editor_mention_typeahead_profilecard') ? /*#__PURE__*/_react.default.createElement(_MentionItemWithProfileCard.MentionItemWithProfileCard, {
|
|
170
|
+
return (0, _expVal.expVal)('platform_editor_agent_mentions', 'isEnabled', false) && (0, _fg.fg)('platform_editor_mention_typeahead_profilecard') || (0, _fg.fg)('platform_editor_agent_card_fixes') ? /*#__PURE__*/_react.default.createElement(_MentionItemWithProfileCard.MentionItemWithProfileCard, {
|
|
171
171
|
mention: mention,
|
|
172
172
|
selected: isSelected,
|
|
173
173
|
onSelection: onClick,
|
|
@@ -32,7 +32,7 @@ export const ACTIONS = {
|
|
|
32
32
|
CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
|
|
33
33
|
};
|
|
34
34
|
const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
35
|
-
const PACKAGE_VERSION = "19.
|
|
35
|
+
const PACKAGE_VERSION = "19.1.0";
|
|
36
36
|
const setProvider = provider => (state, dispatch) => {
|
|
37
37
|
if (dispatch) {
|
|
38
38
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -92,7 +92,7 @@ export function Popup({
|
|
|
92
92
|
strategy: "fixed"
|
|
93
93
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
94
94
|
,
|
|
95
|
-
modifiers: expVal('platform_editor_agent_mentions', 'isEnabled', false) ? [{
|
|
95
|
+
modifiers: expVal('platform_editor_agent_mentions', 'isEnabled', false) || fg('platform_editor_agent_card_fixes') ? [{
|
|
96
96
|
name: 'flip',
|
|
97
97
|
options: {
|
|
98
98
|
rootBoundary: 'viewport',
|
|
@@ -114,7 +114,7 @@ export function Popup({
|
|
|
114
114
|
ref: ref,
|
|
115
115
|
style: style,
|
|
116
116
|
update: update,
|
|
117
|
-
forceUpdate: expVal('platform_editor_agent_mentions', 'isEnabled', false) ? forceUpdate : undefined,
|
|
117
|
+
forceUpdate: expVal('platform_editor_agent_mentions', 'isEnabled', false) || fg('platform_editor_agent_card_fixes') ? forceUpdate : undefined,
|
|
118
118
|
setPopupRef: setPopupRef
|
|
119
119
|
}, children))));
|
|
120
120
|
}
|
|
@@ -113,7 +113,7 @@ export function ProfileCardComponent({
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
|
-
if (!expVal('platform_editor_agent_mentions', 'isEnabled', false)) {
|
|
116
|
+
if (!expVal('platform_editor_agent_mentions', 'isEnabled', false) && !fg('platform_editor_agent_card_fixes')) {
|
|
117
117
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
118
118
|
referenceElement: dom,
|
|
119
119
|
placement: placement,
|
|
@@ -134,7 +134,7 @@ const makeMentionToTypeaheadItem = ({
|
|
|
134
134
|
isSelected,
|
|
135
135
|
onClick,
|
|
136
136
|
onHover
|
|
137
|
-
}) => expVal('platform_editor_agent_mentions', 'isEnabled', false) && fg('platform_editor_mention_typeahead_profilecard') ? /*#__PURE__*/React.createElement(MentionItemWithProfileCard, {
|
|
137
|
+
}) => expVal('platform_editor_agent_mentions', 'isEnabled', false) && fg('platform_editor_mention_typeahead_profilecard') || fg('platform_editor_agent_card_fixes') ? /*#__PURE__*/React.createElement(MentionItemWithProfileCard, {
|
|
138
138
|
mention: mention,
|
|
139
139
|
selected: isSelected,
|
|
140
140
|
onSelection: onClick,
|
|
@@ -35,7 +35,7 @@ export var ACTIONS = {
|
|
|
35
35
|
CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
|
|
36
36
|
};
|
|
37
37
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
38
|
-
var PACKAGE_VERSION = "19.
|
|
38
|
+
var PACKAGE_VERSION = "19.1.0";
|
|
39
39
|
var setProvider = function setProvider(provider) {
|
|
40
40
|
return function (state, dispatch) {
|
|
41
41
|
if (dispatch) {
|
|
@@ -98,7 +98,7 @@ export function Popup(_ref3) {
|
|
|
98
98
|
strategy: "fixed"
|
|
99
99
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
100
100
|
,
|
|
101
|
-
modifiers: expVal('platform_editor_agent_mentions', 'isEnabled', false) ? [{
|
|
101
|
+
modifiers: expVal('platform_editor_agent_mentions', 'isEnabled', false) || fg('platform_editor_agent_card_fixes') ? [{
|
|
102
102
|
name: 'flip',
|
|
103
103
|
options: {
|
|
104
104
|
rootBoundary: 'viewport',
|
|
@@ -120,7 +120,7 @@ export function Popup(_ref3) {
|
|
|
120
120
|
ref: ref,
|
|
121
121
|
style: style,
|
|
122
122
|
update: update,
|
|
123
|
-
forceUpdate: expVal('platform_editor_agent_mentions', 'isEnabled', false) ? forceUpdate : undefined,
|
|
123
|
+
forceUpdate: expVal('platform_editor_agent_mentions', 'isEnabled', false) || fg('platform_editor_agent_card_fixes') ? forceUpdate : undefined,
|
|
124
124
|
setPopupRef: setPopupRef
|
|
125
125
|
}, children);
|
|
126
126
|
})));
|
|
@@ -172,7 +172,7 @@ export function ProfileCardComponent(_ref5) {
|
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
});
|
|
175
|
-
if (!expVal('platform_editor_agent_mentions', 'isEnabled', false)) {
|
|
175
|
+
if (!expVal('platform_editor_agent_mentions', 'isEnabled', false) && !fg('platform_editor_agent_card_fixes')) {
|
|
176
176
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
177
177
|
referenceElement: dom,
|
|
178
178
|
placement: placement,
|
|
@@ -158,7 +158,7 @@ var makeMentionToTypeaheadItem = function makeMentionToTypeaheadItem(_ref4) {
|
|
|
158
158
|
var isSelected = _ref7.isSelected,
|
|
159
159
|
onClick = _ref7.onClick,
|
|
160
160
|
onHover = _ref7.onHover;
|
|
161
|
-
return expVal('platform_editor_agent_mentions', 'isEnabled', false) && fg('platform_editor_mention_typeahead_profilecard') ? /*#__PURE__*/React.createElement(MentionItemWithProfileCard, {
|
|
161
|
+
return expVal('platform_editor_agent_mentions', 'isEnabled', false) && fg('platform_editor_mention_typeahead_profilecard') || fg('platform_editor_agent_card_fixes') ? /*#__PURE__*/React.createElement(MentionItemWithProfileCard, {
|
|
162
162
|
mention: mention,
|
|
163
163
|
selected: isSelected,
|
|
164
164
|
onSelection: onClick,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.1.1",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@atlaskit/popup": "^6.3.0",
|
|
44
44
|
"@atlaskit/portal": "^6.4.0",
|
|
45
45
|
"@atlaskit/primitives": "^22.5.0",
|
|
46
|
-
"@atlaskit/profilecard": "^26.
|
|
46
|
+
"@atlaskit/profilecard": "^26.22.0",
|
|
47
47
|
"@atlaskit/section-message": "^10.2.0",
|
|
48
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": "^182.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^16.11.0",
|
|
52
52
|
"@atlaskit/tooltip": "^24.3.0",
|
|
53
53
|
"@atlaskit/user-picker": "^13.12.0",
|
|
@@ -106,6 +106,9 @@
|
|
|
106
106
|
},
|
|
107
107
|
"platform_editor_agent_mentions_no_task_autofire": {
|
|
108
108
|
"type": "boolean"
|
|
109
|
+
},
|
|
110
|
+
"platform_editor_agent_card_fixes": {
|
|
111
|
+
"type": "boolean"
|
|
109
112
|
}
|
|
110
113
|
},
|
|
111
114
|
"platform-experiments": {
|