@atlaskit/editor-plugin-mentions 2.13.0 → 2.14.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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 2.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
8
+ [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
9
+ Update `React` from v16 to v18
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 2.13.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#104847](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104847)
20
+ [`b55fc11242d17`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b55fc11242d17) -
21
+ Consolidate duplicate import statements
22
+
3
23
  ## 2.13.0
4
24
 
5
25
  ### Minor Changes
@@ -24,7 +24,7 @@ var ACTIONS = exports.ACTIONS = {
24
24
  SET_PROVIDER: 'SET_PROVIDER'
25
25
  };
26
26
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
27
- var PACKAGE_VERSION = "2.13.0";
27
+ var PACKAGE_VERSION = "2.14.0";
28
28
  var setProvider = function setProvider(provider) {
29
29
  return function (state, dispatch) {
30
30
  if (dispatch) {
@@ -44,10 +44,7 @@ function createMentionPlugin(_ref) {
44
44
  options = _ref.options,
45
45
  api = _ref.api;
46
46
  var mentionProvider;
47
- var sendAnalytics = function sendAnalytics(event, actionSubject, action, attributes
48
- // Ignored via go/ees005
49
- // eslint-disable-next-line @typescript-eslint/max-params
50
- ) {
47
+ var sendAnalytics = function sendAnalytics(event, actionSubject, action, attributes) {
51
48
  if (event === _resource.SLI_EVENT_TYPE || event === _resource.SMART_EVENT_TYPE) {
52
49
  fireEvent({
53
50
  action: action,
@@ -70,8 +67,6 @@ function createMentionPlugin(_ref) {
70
67
  canInsertMention: canInsertMention
71
68
  };
72
69
  },
73
- // Ignored via go/ees005
74
- // eslint-disable-next-line @typescript-eslint/max-params
75
70
  apply: function apply(tr, pluginState, oldState, newState) {
76
71
  var _ref2 = tr.getMeta(_key.mentionPluginKey) || {
77
72
  action: null,
@@ -21,10 +21,7 @@ var extractAttributesFromQuery = function extractAttributesFromQuery(query) {
21
21
  }
22
22
  return emptyQueryResponse;
23
23
  };
24
- var buildTypeAheadCancelPayload = exports.buildTypeAheadCancelPayload = function buildTypeAheadCancelPayload(duration, upKeyCount, downKeyCount, sessionId, query
25
- // Ignored via go/ees005
26
- // eslint-disable-next-line @typescript-eslint/max-params
27
- ) {
24
+ var buildTypeAheadCancelPayload = exports.buildTypeAheadCancelPayload = function buildTypeAheadCancelPayload(duration, upKeyCount, downKeyCount, sessionId, query) {
28
25
  var _extractAttributesFro = extractAttributesFromQuery(query),
29
26
  queryLength = _extractAttributesFro.queryLength,
30
27
  spaceInQuery = _extractAttributesFro.spaceInQuery;
@@ -74,10 +71,7 @@ var buildTypeAheadInviteItemViewedPayload = exports.buildTypeAheadInviteItemView
74
71
  }
75
72
  };
76
73
  };
77
- var buildTypeAheadInviteItemClickedPayload = exports.buildTypeAheadInviteItemClickedPayload = function buildTypeAheadInviteItemClickedPayload(duration, upKeyCount, downKeyCount, sessionId, insertType, query, contextIdentifierProvider, userRole
78
- // Ignored via go/ees005
79
- // eslint-disable-next-line @typescript-eslint/max-params
80
- ) {
74
+ var buildTypeAheadInviteItemClickedPayload = exports.buildTypeAheadInviteItemClickedPayload = function buildTypeAheadInviteItemClickedPayload(duration, upKeyCount, downKeyCount, sessionId, insertType, query, contextIdentifierProvider, userRole) {
81
75
  var _extractAttributesFro2 = extractAttributesFromQuery(query),
82
76
  queryLength = _extractAttributesFro2.queryLength,
83
77
  spaceInQuery = _extractAttributesFro2.spaceInQuery;
@@ -105,10 +99,7 @@ var buildTypeAheadInviteItemClickedPayload = exports.buildTypeAheadInviteItemCli
105
99
  }
106
100
  };
107
101
  };
108
- var buildTypeAheadInsertedPayload = exports.buildTypeAheadInsertedPayload = function buildTypeAheadInsertedPayload(duration, upKeyCount, downKeyCount, sessionId, insertType, mention, mentionLocalId, mentionList, query, contextIdentifierProvider, taskListId, taskItemId
109
- // Ignored via go/ees005
110
- // eslint-disable-next-line @typescript-eslint/max-params
111
- ) {
102
+ var buildTypeAheadInsertedPayload = exports.buildTypeAheadInsertedPayload = function buildTypeAheadInsertedPayload(duration, upKeyCount, downKeyCount, sessionId, insertType, mention, mentionLocalId, mentionList, query, contextIdentifierProvider, taskListId, taskItemId) {
112
103
  var _extractAttributesFro3 = extractAttributesFromQuery(query),
113
104
  queryLength = _extractAttributesFro3.queryLength,
114
105
  spaceInQuery = _extractAttributesFro3.spaceInQuery;
@@ -149,10 +140,7 @@ var buildTypeAheadInsertedPayload = exports.buildTypeAheadInsertedPayload = func
149
140
  }
150
141
  };
151
142
  };
152
- var buildTypeAheadRenderedPayload = exports.buildTypeAheadRenderedPayload = function buildTypeAheadRenderedPayload(duration, userIds, query, teams
153
- // Ignored via go/ees005
154
- // eslint-disable-next-line @typescript-eslint/max-params
155
- ) {
143
+ var buildTypeAheadRenderedPayload = exports.buildTypeAheadRenderedPayload = function buildTypeAheadRenderedPayload(duration, userIds, query, teams, xProductMentionsLength) {
156
144
  var _extractAttributesFro4 = extractAttributesFromQuery(query),
157
145
  queryLength = _extractAttributesFro4.queryLength,
158
146
  spaceInQuery = _extractAttributesFro4.spaceInQuery;
@@ -167,7 +155,8 @@ var buildTypeAheadRenderedPayload = exports.buildTypeAheadRenderedPayload = func
167
155
  userIds: userIds,
168
156
  teams: teams,
169
157
  queryLength: queryLength,
170
- spaceInQuery: spaceInQuery
158
+ spaceInQuery: spaceInQuery,
159
+ xProductMentionsLength: xProductMentionsLength
171
160
  }
172
161
  };
173
162
  };
@@ -119,6 +119,7 @@ var buildAndSendElementsTypeAheadAnalytics = function buildAndSendElementsTypeAh
119
119
  var duration = 0;
120
120
  var userOrTeamIds = null;
121
121
  var teams = null;
122
+ var xProductMentionsLength = 0;
122
123
  if (!(0, _utils4.isTeamStats)(stats)) {
123
124
  // is from primary mention endpoint which could be just user mentions or user/team mentions
124
125
  duration = stats && stats.duration;
@@ -126,6 +127,9 @@ var buildAndSendElementsTypeAheadAnalytics = function buildAndSendElementsTypeAh
126
127
  userOrTeamIds = mentions.map(function (mention) {
127
128
  return mention.id;
128
129
  });
130
+ xProductMentionsLength = mentions.filter(function (mention) {
131
+ return mention.isXProductUser;
132
+ }).length;
129
133
  } else {
130
134
  // is from dedicated team-only mention endpoint
131
135
  duration = stats && stats.teamMentionDuration;
@@ -144,7 +148,7 @@ var buildAndSendElementsTypeAheadAnalytics = function buildAndSendElementsTypeAh
144
148
  return !!m;
145
149
  });
146
150
  }
147
- var payload = (0, _analytics.buildTypeAheadRenderedPayload)(duration, userOrTeamIds, query, teams);
151
+ var payload = (0, _analytics.buildTypeAheadRenderedPayload)(duration, userOrTeamIds, query, teams, xProductMentionsLength);
148
152
  fireEvent(payload, 'fabric-elements');
149
153
  };
150
154
  };
@@ -153,10 +157,7 @@ var buildAndSendElementsTypeAheadAnalytics = function buildAndSendElementsTypeAh
153
157
  * When a team mention is selected, we render a team link and list of member/user mentions
154
158
  * in editor content
155
159
  */
156
- var buildNodesForTeamMention = function buildNodesForTeamMention(schema, selectedMention, mentionProvider, sanitizePrivateContent
157
- // Ignored via go/ees005
158
- // eslint-disable-next-line @typescript-eslint/max-params
159
- ) {
160
+ var buildNodesForTeamMention = function buildNodesForTeamMention(schema, selectedMention, mentionProvider, sanitizePrivateContent) {
160
161
  var nodes = schema.nodes,
161
162
  marks = schema.marks;
162
163
  var name = selectedMention.name,
@@ -290,8 +291,6 @@ var createTypeAheadConfig = exports.createTypeAheadConfig = function createTypeA
290
291
  onOpen: function onOpen() {
291
292
  firstQueryWithoutResults = null;
292
293
  },
293
- // Ignored via go/ees005
294
- // eslint-disable-next-line @typescript-eslint/max-params
295
294
  selectItem: function selectItem(state, item, insert, _ref9) {
296
295
  var _api$contextIdentifie3, _api$contextIdentifie4;
297
296
  var mode = _ref9.mode,
@@ -13,7 +13,7 @@ export const ACTIONS = {
13
13
  SET_PROVIDER: 'SET_PROVIDER'
14
14
  };
15
15
  const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
16
- const PACKAGE_VERSION = "2.13.0";
16
+ const PACKAGE_VERSION = "2.14.0";
17
17
  const setProvider = provider => (state, dispatch) => {
18
18
  if (dispatch) {
19
19
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -32,10 +32,7 @@ export function createMentionPlugin({
32
32
  api
33
33
  }) {
34
34
  let mentionProvider;
35
- const sendAnalytics = (event, actionSubject, action, attributes
36
- // Ignored via go/ees005
37
- // eslint-disable-next-line @typescript-eslint/max-params
38
- ) => {
35
+ const sendAnalytics = (event, actionSubject, action, attributes) => {
39
36
  if (event === SLI_EVENT_TYPE || event === SMART_EVENT_TYPE) {
40
37
  fireEvent({
41
38
  action: action,
@@ -59,8 +56,6 @@ export function createMentionPlugin({
59
56
  canInsertMention
60
57
  };
61
58
  },
62
- // Ignored via go/ees005
63
- // eslint-disable-next-line @typescript-eslint/max-params
64
59
  apply(tr, pluginState, oldState, newState) {
65
60
  const {
66
61
  action,
@@ -15,10 +15,7 @@ const extractAttributesFromQuery = query => {
15
15
  }
16
16
  return emptyQueryResponse;
17
17
  };
18
- export const buildTypeAheadCancelPayload = (duration, upKeyCount, downKeyCount, sessionId, query
19
- // Ignored via go/ees005
20
- // eslint-disable-next-line @typescript-eslint/max-params
21
- ) => {
18
+ export const buildTypeAheadCancelPayload = (duration, upKeyCount, downKeyCount, sessionId, query) => {
22
19
  const {
23
20
  queryLength,
24
21
  spaceInQuery
@@ -66,10 +63,7 @@ export const buildTypeAheadInviteItemViewedPayload = (sessionId, contextIdentifi
66
63
  }
67
64
  };
68
65
  };
69
- export const buildTypeAheadInviteItemClickedPayload = (duration, upKeyCount, downKeyCount, sessionId, insertType, query, contextIdentifierProvider, userRole
70
- // Ignored via go/ees005
71
- // eslint-disable-next-line @typescript-eslint/max-params
72
- ) => {
66
+ export const buildTypeAheadInviteItemClickedPayload = (duration, upKeyCount, downKeyCount, sessionId, insertType, query, contextIdentifierProvider, userRole) => {
73
67
  const {
74
68
  queryLength,
75
69
  spaceInQuery
@@ -99,10 +93,7 @@ export const buildTypeAheadInviteItemClickedPayload = (duration, upKeyCount, dow
99
93
  }
100
94
  };
101
95
  };
102
- export const buildTypeAheadInsertedPayload = (duration, upKeyCount, downKeyCount, sessionId, insertType, mention, mentionLocalId, mentionList, query, contextIdentifierProvider, taskListId, taskItemId
103
- // Ignored via go/ees005
104
- // eslint-disable-next-line @typescript-eslint/max-params
105
- ) => {
96
+ export const buildTypeAheadInsertedPayload = (duration, upKeyCount, downKeyCount, sessionId, insertType, mention, mentionLocalId, mentionList, query, contextIdentifierProvider, taskListId, taskItemId) => {
106
97
  const {
107
98
  queryLength,
108
99
  spaceInQuery
@@ -144,10 +135,7 @@ export const buildTypeAheadInsertedPayload = (duration, upKeyCount, downKeyCount
144
135
  }
145
136
  };
146
137
  };
147
- export const buildTypeAheadRenderedPayload = (duration, userIds, query, teams
148
- // Ignored via go/ees005
149
- // eslint-disable-next-line @typescript-eslint/max-params
150
- ) => {
138
+ export const buildTypeAheadRenderedPayload = (duration, userIds, query, teams, xProductMentionsLength) => {
151
139
  const {
152
140
  queryLength,
153
141
  spaceInQuery
@@ -163,7 +151,8 @@ export const buildTypeAheadRenderedPayload = (duration, userIds, query, teams
163
151
  userIds,
164
152
  teams,
165
153
  queryLength,
166
- spaceInQuery
154
+ spaceInQuery,
155
+ xProductMentionsLength
167
156
  }
168
157
  };
169
158
  };
@@ -96,11 +96,13 @@ const buildAndSendElementsTypeAheadAnalytics = fireEvent => ({
96
96
  let duration = 0;
97
97
  let userOrTeamIds = null;
98
98
  let teams = null;
99
+ let xProductMentionsLength = 0;
99
100
  if (!isTeamStats(stats)) {
100
101
  // is from primary mention endpoint which could be just user mentions or user/team mentions
101
102
  duration = stats && stats.duration;
102
103
  teams = null;
103
104
  userOrTeamIds = mentions.map(mention => mention.id);
105
+ xProductMentionsLength = mentions.filter(mention => mention.isXProductUser).length;
104
106
  } else {
105
107
  // is from dedicated team-only mention endpoint
106
108
  duration = stats && stats.teamMentionDuration;
@@ -115,7 +117,7 @@ const buildAndSendElementsTypeAheadAnalytics = fireEvent => ({
115
117
  memberCount: mention.context.memberCount
116
118
  } : null).filter(m => !!m);
117
119
  }
118
- const payload = buildTypeAheadRenderedPayload(duration, userOrTeamIds, query, teams);
120
+ const payload = buildTypeAheadRenderedPayload(duration, userOrTeamIds, query, teams, xProductMentionsLength);
119
121
  fireEvent(payload, 'fabric-elements');
120
122
  };
121
123
 
@@ -123,10 +125,7 @@ const buildAndSendElementsTypeAheadAnalytics = fireEvent => ({
123
125
  * When a team mention is selected, we render a team link and list of member/user mentions
124
126
  * in editor content
125
127
  */
126
- const buildNodesForTeamMention = (schema, selectedMention, mentionProvider, sanitizePrivateContent
127
- // Ignored via go/ees005
128
- // eslint-disable-next-line @typescript-eslint/max-params
129
- ) => {
128
+ const buildNodesForTeamMention = (schema, selectedMention, mentionProvider, sanitizePrivateContent) => {
130
129
  const {
131
130
  nodes,
132
131
  marks
@@ -268,8 +267,6 @@ export const createTypeAheadConfig = ({
268
267
  onOpen: () => {
269
268
  firstQueryWithoutResults = null;
270
269
  },
271
- // Ignored via go/ees005
272
- // eslint-disable-next-line @typescript-eslint/max-params
273
270
  selectItem(state, item, insert, {
274
271
  mode,
275
272
  stats,
@@ -16,7 +16,7 @@ export var ACTIONS = {
16
16
  SET_PROVIDER: 'SET_PROVIDER'
17
17
  };
18
18
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
19
- var PACKAGE_VERSION = "2.13.0";
19
+ var PACKAGE_VERSION = "2.14.0";
20
20
  var setProvider = function setProvider(provider) {
21
21
  return function (state, dispatch) {
22
22
  if (dispatch) {
@@ -36,10 +36,7 @@ export function createMentionPlugin(_ref) {
36
36
  options = _ref.options,
37
37
  api = _ref.api;
38
38
  var mentionProvider;
39
- var sendAnalytics = function sendAnalytics(event, actionSubject, action, attributes
40
- // Ignored via go/ees005
41
- // eslint-disable-next-line @typescript-eslint/max-params
42
- ) {
39
+ var sendAnalytics = function sendAnalytics(event, actionSubject, action, attributes) {
43
40
  if (event === SLI_EVENT_TYPE || event === SMART_EVENT_TYPE) {
44
41
  fireEvent({
45
42
  action: action,
@@ -62,8 +59,6 @@ export function createMentionPlugin(_ref) {
62
59
  canInsertMention: canInsertMention
63
60
  };
64
61
  },
65
- // Ignored via go/ees005
66
- // eslint-disable-next-line @typescript-eslint/max-params
67
62
  apply: function apply(tr, pluginState, oldState, newState) {
68
63
  var _ref2 = tr.getMeta(mentionPluginKey) || {
69
64
  action: null,
@@ -15,10 +15,7 @@ var extractAttributesFromQuery = function extractAttributesFromQuery(query) {
15
15
  }
16
16
  return emptyQueryResponse;
17
17
  };
18
- export var buildTypeAheadCancelPayload = function buildTypeAheadCancelPayload(duration, upKeyCount, downKeyCount, sessionId, query
19
- // Ignored via go/ees005
20
- // eslint-disable-next-line @typescript-eslint/max-params
21
- ) {
18
+ export var buildTypeAheadCancelPayload = function buildTypeAheadCancelPayload(duration, upKeyCount, downKeyCount, sessionId, query) {
22
19
  var _extractAttributesFro = extractAttributesFromQuery(query),
23
20
  queryLength = _extractAttributesFro.queryLength,
24
21
  spaceInQuery = _extractAttributesFro.spaceInQuery;
@@ -68,10 +65,7 @@ export var buildTypeAheadInviteItemViewedPayload = function buildTypeAheadInvite
68
65
  }
69
66
  };
70
67
  };
71
- export var buildTypeAheadInviteItemClickedPayload = function buildTypeAheadInviteItemClickedPayload(duration, upKeyCount, downKeyCount, sessionId, insertType, query, contextIdentifierProvider, userRole
72
- // Ignored via go/ees005
73
- // eslint-disable-next-line @typescript-eslint/max-params
74
- ) {
68
+ export var buildTypeAheadInviteItemClickedPayload = function buildTypeAheadInviteItemClickedPayload(duration, upKeyCount, downKeyCount, sessionId, insertType, query, contextIdentifierProvider, userRole) {
75
69
  var _extractAttributesFro2 = extractAttributesFromQuery(query),
76
70
  queryLength = _extractAttributesFro2.queryLength,
77
71
  spaceInQuery = _extractAttributesFro2.spaceInQuery;
@@ -99,10 +93,7 @@ export var buildTypeAheadInviteItemClickedPayload = function buildTypeAheadInvit
99
93
  }
100
94
  };
101
95
  };
102
- export var buildTypeAheadInsertedPayload = function buildTypeAheadInsertedPayload(duration, upKeyCount, downKeyCount, sessionId, insertType, mention, mentionLocalId, mentionList, query, contextIdentifierProvider, taskListId, taskItemId
103
- // Ignored via go/ees005
104
- // eslint-disable-next-line @typescript-eslint/max-params
105
- ) {
96
+ export var buildTypeAheadInsertedPayload = function buildTypeAheadInsertedPayload(duration, upKeyCount, downKeyCount, sessionId, insertType, mention, mentionLocalId, mentionList, query, contextIdentifierProvider, taskListId, taskItemId) {
106
97
  var _extractAttributesFro3 = extractAttributesFromQuery(query),
107
98
  queryLength = _extractAttributesFro3.queryLength,
108
99
  spaceInQuery = _extractAttributesFro3.spaceInQuery;
@@ -143,10 +134,7 @@ export var buildTypeAheadInsertedPayload = function buildTypeAheadInsertedPayloa
143
134
  }
144
135
  };
145
136
  };
146
- export var buildTypeAheadRenderedPayload = function buildTypeAheadRenderedPayload(duration, userIds, query, teams
147
- // Ignored via go/ees005
148
- // eslint-disable-next-line @typescript-eslint/max-params
149
- ) {
137
+ export var buildTypeAheadRenderedPayload = function buildTypeAheadRenderedPayload(duration, userIds, query, teams, xProductMentionsLength) {
150
138
  var _extractAttributesFro4 = extractAttributesFromQuery(query),
151
139
  queryLength = _extractAttributesFro4.queryLength,
152
140
  spaceInQuery = _extractAttributesFro4.spaceInQuery;
@@ -161,7 +149,8 @@ export var buildTypeAheadRenderedPayload = function buildTypeAheadRenderedPayloa
161
149
  userIds: userIds,
162
150
  teams: teams,
163
151
  queryLength: queryLength,
164
- spaceInQuery: spaceInQuery
152
+ spaceInQuery: spaceInQuery,
153
+ xProductMentionsLength: xProductMentionsLength
165
154
  }
166
155
  };
167
156
  };
@@ -107,6 +107,7 @@ var buildAndSendElementsTypeAheadAnalytics = function buildAndSendElementsTypeAh
107
107
  var duration = 0;
108
108
  var userOrTeamIds = null;
109
109
  var teams = null;
110
+ var xProductMentionsLength = 0;
110
111
  if (!isTeamStats(stats)) {
111
112
  // is from primary mention endpoint which could be just user mentions or user/team mentions
112
113
  duration = stats && stats.duration;
@@ -114,6 +115,9 @@ var buildAndSendElementsTypeAheadAnalytics = function buildAndSendElementsTypeAh
114
115
  userOrTeamIds = mentions.map(function (mention) {
115
116
  return mention.id;
116
117
  });
118
+ xProductMentionsLength = mentions.filter(function (mention) {
119
+ return mention.isXProductUser;
120
+ }).length;
117
121
  } else {
118
122
  // is from dedicated team-only mention endpoint
119
123
  duration = stats && stats.teamMentionDuration;
@@ -132,7 +136,7 @@ var buildAndSendElementsTypeAheadAnalytics = function buildAndSendElementsTypeAh
132
136
  return !!m;
133
137
  });
134
138
  }
135
- var payload = buildTypeAheadRenderedPayload(duration, userOrTeamIds, query, teams);
139
+ var payload = buildTypeAheadRenderedPayload(duration, userOrTeamIds, query, teams, xProductMentionsLength);
136
140
  fireEvent(payload, 'fabric-elements');
137
141
  };
138
142
  };
@@ -141,10 +145,7 @@ var buildAndSendElementsTypeAheadAnalytics = function buildAndSendElementsTypeAh
141
145
  * When a team mention is selected, we render a team link and list of member/user mentions
142
146
  * in editor content
143
147
  */
144
- var buildNodesForTeamMention = function buildNodesForTeamMention(schema, selectedMention, mentionProvider, sanitizePrivateContent
145
- // Ignored via go/ees005
146
- // eslint-disable-next-line @typescript-eslint/max-params
147
- ) {
148
+ var buildNodesForTeamMention = function buildNodesForTeamMention(schema, selectedMention, mentionProvider, sanitizePrivateContent) {
148
149
  var nodes = schema.nodes,
149
150
  marks = schema.marks;
150
151
  var name = selectedMention.name,
@@ -278,8 +279,6 @@ export var createTypeAheadConfig = function createTypeAheadConfig(_ref6) {
278
279
  onOpen: function onOpen() {
279
280
  firstQueryWithoutResults = null;
280
281
  },
281
- // Ignored via go/ees005
282
- // eslint-disable-next-line @typescript-eslint/max-params
283
282
  selectItem: function selectItem(state, item, insert, _ref9) {
284
283
  var _api$contextIdentifie3, _api$contextIdentifie4;
285
284
  var mode = _ref9.mode,
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
3
- import { type ProfilecardProvider } from '@atlaskit/editor-common/provider-factory';
4
- import type { Providers } from '@atlaskit/editor-common/provider-factory';
3
+ import type { Providers, ProfilecardProvider } from '@atlaskit/editor-common/provider-factory';
5
4
  import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
6
5
  import type { MentionDescription, MentionProvider } from '@atlaskit/mention';
7
6
  export declare const MENTION_PROVIDER_REJECTED = "REJECTED";
@@ -8,4 +8,4 @@ export declare const buildTypeAheadCancelPayload: (duration: number, upKeyCount:
8
8
  export declare const buildTypeAheadInviteItemViewedPayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => AnalyticsEventPayload;
9
9
  export declare const buildTypeAheadInviteItemClickedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, query?: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => AnalyticsEventPayload;
10
10
  export declare const buildTypeAheadInsertedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, mention: MentionDescription, mentionLocalId: string, mentionList?: MentionDescription[], query?: string, contextIdentifierProvider?: ContextIdentifierProvider, taskListId?: string, taskItemId?: string) => AnalyticsEventPayload;
11
- export declare const buildTypeAheadRenderedPayload: (duration: number, userIds: Array<string> | null, query: string, teams: TeamInfoAttrAnalytics[] | null) => AnalyticsEventPayload;
11
+ export declare const buildTypeAheadRenderedPayload: (duration: number, userIds: Array<string> | null, query: string, teams: TeamInfoAttrAnalytics[] | null, xProductMentionsLength: number) => AnalyticsEventPayload;
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
3
- import { type ProfilecardProvider } from '@atlaskit/editor-common/provider-factory';
4
- import type { Providers } from '@atlaskit/editor-common/provider-factory';
3
+ import type { Providers, ProfilecardProvider } from '@atlaskit/editor-common/provider-factory';
5
4
  import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
6
5
  import type { MentionDescription, MentionProvider } from '@atlaskit/mention';
7
6
  export declare const MENTION_PROVIDER_REJECTED = "REJECTED";
@@ -8,4 +8,4 @@ export declare const buildTypeAheadCancelPayload: (duration: number, upKeyCount:
8
8
  export declare const buildTypeAheadInviteItemViewedPayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => AnalyticsEventPayload;
9
9
  export declare const buildTypeAheadInviteItemClickedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, query?: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => AnalyticsEventPayload;
10
10
  export declare const buildTypeAheadInsertedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, mention: MentionDescription, mentionLocalId: string, mentionList?: MentionDescription[], query?: string, contextIdentifierProvider?: ContextIdentifierProvider, taskListId?: string, taskItemId?: string) => AnalyticsEventPayload;
11
- export declare const buildTypeAheadRenderedPayload: (duration: number, userIds: Array<string> | null, query: string, teams: TeamInfoAttrAnalytics[] | null) => AnalyticsEventPayload;
11
+ export declare const buildTypeAheadRenderedPayload: (duration: number, userIds: Array<string> | null, query: string, teams: TeamInfoAttrAnalytics[] | null, xProductMentionsLength: number) => AnalyticsEventPayload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "2.13.0",
3
+ "version": "2.14.0",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,17 +32,17 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^46.1.0",
35
- "@atlaskit/editor-common": "^99.3.0",
36
- "@atlaskit/editor-plugin-analytics": "^1.10.0",
35
+ "@atlaskit/editor-common": "^99.6.0",
36
+ "@atlaskit/editor-plugin-analytics": "^1.11.0",
37
37
  "@atlaskit/editor-plugin-base": "^2.1.0",
38
38
  "@atlaskit/editor-plugin-context-identifier": "^1.3.0",
39
- "@atlaskit/editor-plugin-type-ahead": "^1.11.0",
39
+ "@atlaskit/editor-plugin-type-ahead": "^1.12.0",
40
40
  "@atlaskit/editor-prosemirror": "6.2.1",
41
- "@atlaskit/icon": "^23.4.0",
42
- "@atlaskit/mention": "^23.9.0",
41
+ "@atlaskit/icon": "^23.5.0",
42
+ "@atlaskit/mention": "^23.11.0",
43
43
  "@atlaskit/platform-feature-flags": "^0.3.0",
44
- "@atlaskit/theme": "^14.0.0",
45
- "@atlaskit/tokens": "^3.1.0",
44
+ "@atlaskit/theme": "^14.1.0",
45
+ "@atlaskit/tokens": "^3.3.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@emotion/react": "^11.7.1",
48
48
  "uuid": "^3.1.0"
@@ -56,7 +56,7 @@
56
56
  "@af/visual-regression": "*",
57
57
  "@atlaskit/ssr": "*",
58
58
  "@atlaskit/visual-regression": "*",
59
- "@testing-library/react": "^12.1.5",
59
+ "@testing-library/react": "^13.4.0",
60
60
  "typescript": "~5.4.2",
61
61
  "wait-for-expect": "^1.2.0"
62
62
  },