@atlaskit/editor-plugin-mentions 1.5.0 → 1.6.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/.eslintrc.js CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
- rules: {
3
- '@atlaskit/design-system/consistent-css-prop-usage': 'warn',
4
- '@repo/internal/react/no-class-components': 'warn',
5
- },
2
+ rules: {
3
+ '@atlaskit/design-system/consistent-css-prop-usage': 'warn',
4
+ '@repo/internal/react/no-class-components': 'warn',
5
+ },
6
6
  };
package/CHANGELOG.md CHANGED
@@ -1,424 +1,438 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 1.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#108100](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108100)
8
+ [`c854f5415176c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c854f5415176c) -
9
+ Add localId to mentionTypeahead click event attributes
10
+
11
+ ## 1.5.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 1.5.0
4
18
 
5
19
  ### Minor Changes
6
20
 
7
- - [#103169](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103169)
8
- [`e9d45fc94064`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9d45fc94064) -
9
- [ux] [ED-23248] -
21
+ - [#103169](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103169)
22
+ [`e9d45fc94064`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9d45fc94064) -
23
+ [ux] [ED-23248] -
10
24
 
11
- **@atlaskit/editor-core**: Added optional profilecardProvider to Mention plugin in universal
12
- composable editor **@atlaskit/editor-plugin-mentions**: Made mentions render with profile cards
13
- on click if the feature flag: `platform.editor.mentions-in-editor-popup-on-click` is turned on
25
+ **@atlaskit/editor-core**: Added optional profilecardProvider to Mention plugin in universal
26
+ composable editor **@atlaskit/editor-plugin-mentions**: Made mentions render with profile cards on
27
+ click if the feature flag: `platform.editor.mentions-in-editor-popup-on-click` is turned on
14
28
 
15
29
  ## 1.4.1
16
30
 
17
31
  ### Patch Changes
18
32
 
19
- - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
20
- [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
21
- [ED-23332] Update adf-schema package to 36.10.1
22
- - Updated dependencies
33
+ - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
34
+ [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
35
+ [ED-23332] Update adf-schema package to 36.10.1
36
+ - Updated dependencies
23
37
 
24
38
  ## 1.4.0
25
39
 
26
40
  ### Minor Changes
27
41
 
28
- - [#103099](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103099)
29
- [`ab382e121799`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ab382e121799) -
30
- [ux] [ED-23248] -
42
+ - [#103099](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103099)
43
+ [`ab382e121799`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ab382e121799) -
44
+ [ux] [ED-23248] -
31
45
 
32
- **@atlaskit/editor-core**: REVERT: Added optional profilecardProvider to Mention plugin in
33
- universal composable editor **@atlaskit/editor-plugin-mentions**: REVERT: Made mentions render
34
- with profile cards on click if the feature flag:
35
- `platform.editor.mentions-in-editor-popup-on-click` is turned on
46
+ **@atlaskit/editor-core**: REVERT: Added optional profilecardProvider to Mention plugin in
47
+ universal composable editor **@atlaskit/editor-plugin-mentions**: REVERT: Made mentions render
48
+ with profile cards on click if the feature flag:
49
+ `platform.editor.mentions-in-editor-popup-on-click` is turned on
36
50
 
37
51
  ## 1.3.0
38
52
 
39
53
  ### Minor Changes
40
54
 
41
- - [#98647](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98647)
42
- [`19eb20751225`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/19eb20751225) -
43
- [ux] [ED-23248] -
55
+ - [#98647](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98647)
56
+ [`19eb20751225`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/19eb20751225) -
57
+ [ux] [ED-23248] -
44
58
 
45
- **@atlaskit/editor-core**: Added optional profilecardProvider to Mention plugin in universal
46
- composable editor **@atlaskit/editor-plugin-mentions**: Made mentions render with profile cards
47
- on click if the feature flag: `platform.editor.mentions-in-editor-popup-on-click` is turned on
59
+ **@atlaskit/editor-core**: Added optional profilecardProvider to Mention plugin in universal
60
+ composable editor **@atlaskit/editor-plugin-mentions**: Made mentions render with profile cards on
61
+ click if the feature flag: `platform.editor.mentions-in-editor-popup-on-click` is turned on
48
62
 
49
63
  ## 1.2.1
50
64
 
51
65
  ### Patch Changes
52
66
 
53
- - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
54
- [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
55
- ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
67
+ - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
68
+ [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
69
+ ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
56
70
 
57
71
  ## 1.2.0
58
72
 
59
73
  ### Minor Changes
60
74
 
61
- - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
62
- [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
63
- Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
75
+ - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
76
+ [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
77
+ Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
64
78
 
65
79
  ### Patch Changes
66
80
 
67
- - Updated dependencies
81
+ - Updated dependencies
68
82
 
69
83
  ## 1.1.8
70
84
 
71
85
  ### Patch Changes
72
86
 
73
- - Updated dependencies
87
+ - Updated dependencies
74
88
 
75
89
  ## 1.1.7
76
90
 
77
91
  ### Patch Changes
78
92
 
79
- - [#98103](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98103)
80
- [`14c055a65f67`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/14c055a65f67) -
81
- removed invite from mention experiment check
93
+ - [#98103](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98103)
94
+ [`14c055a65f67`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/14c055a65f67) -
95
+ removed invite from mention experiment check
82
96
 
83
97
  ## 1.1.6
84
98
 
85
99
  ### Patch Changes
86
100
 
87
- - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
88
- [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
89
- [ED-22282] Bump adf-schema to 36.1.0
101
+ - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
102
+ [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
103
+ [ED-22282] Bump adf-schema to 36.1.0
90
104
 
91
105
  ## 1.1.5
92
106
 
93
107
  ### Patch Changes
94
108
 
95
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
96
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
97
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
98
- language triggering composition on an empty line.This was fixed in a patch bump of
99
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
109
+ - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
110
+ [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
111
+ [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
112
+ language triggering composition on an empty line.This was fixed in a patch bump of
113
+ prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
100
114
 
101
115
  ## 1.1.4
102
116
 
103
117
  ### Patch Changes
104
118
 
105
- - Updated dependencies
119
+ - Updated dependencies
106
120
 
107
121
  ## 1.1.3
108
122
 
109
123
  ### Patch Changes
110
124
 
111
- - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
112
- [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
113
- [ED-23102] Bump ADF schema to version 35.12.2
125
+ - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
126
+ [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
127
+ [ED-23102] Bump ADF schema to version 35.12.2
114
128
 
115
129
  ## 1.1.2
116
130
 
117
131
  ### Patch Changes
118
132
 
119
- - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
120
- [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
121
- [ED-23097] Bump ADF schema to version 35.12.1
133
+ - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
134
+ [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
135
+ [ED-23097] Bump ADF schema to version 35.12.1
122
136
 
123
137
  ## 1.1.1
124
138
 
125
139
  ### Patch Changes
126
140
 
127
- - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
128
- [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
129
- Updating adf-schema version to 35.10.0
141
+ - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
142
+ [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
143
+ Updating adf-schema version to 35.10.0
130
144
 
131
145
  ## 1.1.0
132
146
 
133
147
  ### Minor Changes
134
148
 
135
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
136
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
137
- bumped editor-prosemirror version to 4.0.0
149
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
150
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
151
+ bumped editor-prosemirror version to 4.0.0
138
152
 
139
153
  ### Patch Changes
140
154
 
141
- - Updated dependencies
155
+ - Updated dependencies
142
156
 
143
157
  ## 1.0.10
144
158
 
145
159
  ### Patch Changes
146
160
 
147
- - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
148
- [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
149
- Bump adf-schema to 35.9.2 to support table alignment options
161
+ - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
162
+ [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
163
+ Bump adf-schema to 35.9.2 to support table alignment options
150
164
 
151
165
  ## 1.0.9
152
166
 
153
167
  ### Patch Changes
154
168
 
155
- - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
156
- [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
157
- Bump ADF-schema package to version 35.0.0
158
- - Updated dependencies
169
+ - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
170
+ [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
171
+ Bump ADF-schema package to version 35.0.0
172
+ - Updated dependencies
159
173
 
160
174
  ## 1.0.8
161
175
 
162
176
  ### Patch Changes
163
177
 
164
- - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
165
- [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
166
- [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
167
- 35.7.0 to 35.8.0
178
+ - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
179
+ [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
180
+ [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
181
+ 35.7.0 to 35.8.0
168
182
 
169
183
  ## 1.0.7
170
184
 
171
185
  ### Patch Changes
172
186
 
173
- - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
174
- [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
175
- Bump adf-schema to 35.7.0
187
+ - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
188
+ [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
189
+ Bump adf-schema to 35.7.0
176
190
 
177
191
  ## 1.0.6
178
192
 
179
193
  ### Patch Changes
180
194
 
181
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
182
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
183
- Upgrade Typescript from `4.9.5` to `5.4.2`
195
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
196
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
197
+ Upgrade Typescript from `4.9.5` to `5.4.2`
184
198
 
185
199
  ## 1.0.5
186
200
 
187
201
  ### Patch Changes
188
202
 
189
- - [#81852](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81852)
190
- [`0641eef91f65`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0641eef91f65) -
191
- React 18 types for editor-plugin-mentions
203
+ - [#81852](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81852)
204
+ [`0641eef91f65`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0641eef91f65) -
205
+ React 18 types for editor-plugin-mentions
192
206
 
193
207
  ## 1.0.4
194
208
 
195
209
  ### Patch Changes
196
210
 
197
- - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
198
- [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
199
- ED-22553 Updating adf-schema version to 35.6.0
211
+ - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
212
+ [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
213
+ ED-22553 Updating adf-schema version to 35.6.0
200
214
 
201
215
  ## 1.0.3
202
216
 
203
217
  ### Patch Changes
204
218
 
205
- - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
206
- [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
207
- ED-22219: adf-schema updated to 35.5.2
208
- - Updated dependencies
219
+ - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
220
+ [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
221
+ ED-22219: adf-schema updated to 35.5.2
222
+ - Updated dependencies
209
223
 
210
224
  ## 1.0.2
211
225
 
212
226
  ### Patch Changes
213
227
 
214
- - Updated dependencies
228
+ - Updated dependencies
215
229
 
216
230
  ## 1.0.1
217
231
 
218
232
  ### Patch Changes
219
233
 
220
- - Updated dependencies
234
+ - Updated dependencies
221
235
 
222
236
  ## 1.0.0
223
237
 
224
238
  ### Major Changes
225
239
 
226
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
227
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
228
- This changeset exists to bump all editor plugins that currently don't have a major version. This
229
- is to address an issue with Jira plugin consumption.
240
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
241
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
242
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
243
+ is to address an issue with Jira plugin consumption.
230
244
 
231
245
  ### Patch Changes
232
246
 
233
- - Updated dependencies
247
+ - Updated dependencies
234
248
 
235
249
  ## 0.2.3
236
250
 
237
251
  ### Patch Changes
238
252
 
239
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
240
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
241
- Upgrading @atlaskit/editor-prosemirror dependency
253
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
254
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
255
+ Upgrading @atlaskit/editor-prosemirror dependency
242
256
 
243
257
  ## 0.2.2
244
258
 
245
259
  ### Patch Changes
246
260
 
247
- - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
248
- [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
249
- Updating adf-schema version to 35.5.1
261
+ - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
262
+ [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
263
+ Updating adf-schema version to 35.5.1
250
264
 
251
265
  ## 0.2.1
252
266
 
253
267
  ### Patch Changes
254
268
 
255
- - [#68640](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68640)
256
- [`6a3ea210641a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a3ea210641a) -
257
- Create new context identifier plugin which contains the provider.
258
- - Updated dependencies
269
+ - [#68640](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68640)
270
+ [`6a3ea210641a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a3ea210641a) -
271
+ Create new context identifier plugin which contains the provider.
272
+ - Updated dependencies
259
273
 
260
274
  ## 0.2.0
261
275
 
262
276
  ### Minor Changes
263
277
 
264
- - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
265
- [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
266
- Support maybeAdd plugins in usePreset. Add typing support for universal preset.
278
+ - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
279
+ [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
280
+ Support maybeAdd plugins in usePreset. Add typing support for universal preset.
267
281
 
268
- Now when using the editor API with the universal preset
282
+ Now when using the editor API with the universal preset
269
283
 
270
284
  ### Patch Changes
271
285
 
272
- - Updated dependencies
286
+ - Updated dependencies
273
287
 
274
288
  ## 0.1.20
275
289
 
276
290
  ### Patch Changes
277
291
 
278
- - Updated dependencies
292
+ - Updated dependencies
279
293
 
280
294
  ## 0.1.19
281
295
 
282
296
  ### Patch Changes
283
297
 
284
- - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
285
- [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
286
- [ED-21835] Change EditorAPI type to always union with undefined
298
+ - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
299
+ [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
300
+ [ED-21835] Change EditorAPI type to always union with undefined
287
301
 
288
302
  ## 0.1.18
289
303
 
290
304
  ### Patch Changes
291
305
 
292
- - [#67189](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67189)
293
- [`93cbf53ca0e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93cbf53ca0e0) -
294
- Removing instances of WithPluginState from mentions and type-ahead plugins.
306
+ - [#67189](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67189)
307
+ [`93cbf53ca0e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93cbf53ca0e0) -
308
+ Removing instances of WithPluginState from mentions and type-ahead plugins.
295
309
 
296
310
  ## 0.1.17
297
311
 
298
312
  ### Patch Changes
299
313
 
300
- - [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
301
- [`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
302
- Ensure all editor plugins are marked as singletons
314
+ - [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
315
+ [`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
316
+ Ensure all editor plugins are marked as singletons
303
317
 
304
318
  ## 0.1.16
305
319
 
306
320
  ### Patch Changes
307
321
 
308
- - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
309
- [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
310
- ED-21609 Update adf-schema to 35.3.0
311
- - Updated dependencies
322
+ - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
323
+ [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
324
+ ED-21609 Update adf-schema to 35.3.0
325
+ - Updated dependencies
312
326
 
313
327
  ## 0.1.15
314
328
 
315
329
  ### Patch Changes
316
330
 
317
- - Updated dependencies
331
+ - Updated dependencies
318
332
 
319
333
  ## 0.1.14
320
334
 
321
335
  ### Patch Changes
322
336
 
323
- - [#64538](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64538)
324
- [`264115ce5ec4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/264115ce5ec4) -
325
- DTR-2096: Add taskListId and taskItemId to mention typeAhead clicked and pressed analytic
326
- events, when inserted within actions or tasks
327
- - Updated dependencies
337
+ - [#64538](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64538)
338
+ [`264115ce5ec4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/264115ce5ec4) -
339
+ DTR-2096: Add taskListId and taskItemId to mention typeAhead clicked and pressed analytic events,
340
+ when inserted within actions or tasks
341
+ - Updated dependencies
328
342
 
329
343
  ## 0.1.13
330
344
 
331
345
  ### Patch Changes
332
346
 
333
- - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
334
- [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
335
- [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
347
+ - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
348
+ [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
349
+ [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
336
350
 
337
351
  ## 0.1.12
338
352
 
339
353
  ### Patch Changes
340
354
 
341
- - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
342
- [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
343
- ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
355
+ - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
356
+ [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
357
+ ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
344
358
 
345
359
  ## 0.1.11
346
360
 
347
361
  ### Patch Changes
348
362
 
349
- - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
350
- [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
351
- ED-21371 Update adf-schema to 35.1.0
363
+ - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
364
+ [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
365
+ ED-21371 Update adf-schema to 35.1.0
352
366
 
353
367
  ## 0.1.10
354
368
 
355
369
  ### Patch Changes
356
370
 
357
- - Updated dependencies
371
+ - Updated dependencies
358
372
 
359
373
  ## 0.1.9
360
374
 
361
375
  ### Patch Changes
362
376
 
363
- - Updated dependencies
377
+ - Updated dependencies
364
378
 
365
379
  ## 0.1.8
366
380
 
367
381
  ### Patch Changes
368
382
 
369
- - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
370
- [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
371
- Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
383
+ - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
384
+ [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
385
+ Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
372
386
 
373
387
  ## 0.1.7
374
388
 
375
389
  ### Patch Changes
376
390
 
377
- - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
378
- [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
379
- update ADF schema
391
+ - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
392
+ [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
393
+ update ADF schema
380
394
 
381
395
  ## 0.1.6
382
396
 
383
397
  ### Patch Changes
384
398
 
385
- - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
386
- [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
387
- ED-21266: Updated @atlaskit/adf-schema to 34.0.1
399
+ - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
400
+ [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
401
+ ED-21266: Updated @atlaskit/adf-schema to 34.0.1
388
402
 
389
403
  ## 0.1.5
390
404
 
391
405
  ### Patch Changes
392
406
 
393
- - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
394
- [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) -
395
- ED-20971 Upgrade adf-schema package to ^34.0.0
407
+ - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
408
+ [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
409
+ Upgrade adf-schema package to ^34.0.0
396
410
 
397
411
  ## 0.1.4
398
412
 
399
413
  ### Patch Changes
400
414
 
401
- - Updated dependencies
415
+ - Updated dependencies
402
416
 
403
417
  ## 0.1.3
404
418
 
405
419
  ### Patch Changes
406
420
 
407
- - [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
408
- [`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) -
409
- ED-20763 Upgrade ADF schema version to 33.2.3 for MBE nodes.
410
- - Updated dependencies
421
+ - [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
422
+ [`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
423
+ Upgrade ADF schema version to 33.2.3 for MBE nodes.
424
+ - Updated dependencies
411
425
 
412
426
  ## 0.1.2
413
427
 
414
428
  ### Patch Changes
415
429
 
416
- - [#42451](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42451)
417
- [`36764ad64a9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/36764ad64a9) -
418
- [ECA11Y-87] Mentioned name is not communicated to the users of screen reader
430
+ - [#42451](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42451)
431
+ [`36764ad64a9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/36764ad64a9) -
432
+ [ECA11Y-87] Mentioned name is not communicated to the users of screen reader
419
433
 
420
434
  ## 0.1.1
421
435
 
422
436
  ### Patch Changes
423
437
 
424
- - Updated dependencies
438
+ - Updated dependencies
package/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2023 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
@@ -95,7 +95,7 @@ var buildTypeAheadInviteItemClickedPayload = exports.buildTypeAheadInviteItemCli
95
95
  userRole: userRole
96
96
  });
97
97
  };
98
- var buildTypeAheadInsertedPayload = exports.buildTypeAheadInsertedPayload = function buildTypeAheadInsertedPayload(duration, upKeyCount, downKeyCount, sessionId, insertType, mention, mentionList, query, contextIdentifierProvider, taskListId, taskItemId) {
98
+ var buildTypeAheadInsertedPayload = exports.buildTypeAheadInsertedPayload = function buildTypeAheadInsertedPayload(duration, upKeyCount, downKeyCount, sessionId, insertType, mention, mentionLocalId, mentionList, query, contextIdentifierProvider, taskListId, taskItemId) {
99
99
  var _extractAttributesFro3 = extractAttributesFromQuery(query),
100
100
  queryLength = _extractAttributesFro3.queryLength,
101
101
  spaceInQuery = _extractAttributesFro3.spaceInQuery;
@@ -115,7 +115,8 @@ var buildTypeAheadInsertedPayload = exports.buildTypeAheadInsertedPayload = func
115
115
  memberCount: (0, _utils.isTeamType)(mention.userType) && mention.context ? mention.context.memberCount : null,
116
116
  includesYou: (0, _utils.isTeamType)(mention.userType) && mention.context ? mention.context.includesYou : null,
117
117
  taskListId: taskListId,
118
- taskItemId: taskItemId
118
+ taskItemId: taskItemId,
119
+ localId: mentionLocalId
119
120
  });
120
121
  if (contextIdentifierProvider) {
121
122
  analyticsPayload.containerId = contextIdentifierProvider.containerId || undefined;
@@ -315,7 +315,8 @@ var createTypeAheadConfig = exports.createTypeAheadConfig = function createTypeA
315
315
  taskItemId = taskItem.node.attrs.localId;
316
316
  }
317
317
  }
318
- fireEvent((0, _analytics.buildTypeAheadInsertedPayload)(pickerElapsedTime, stats.keyCount.arrowUp, stats.keyCount.arrowDown, sessionId, mode, item.mention, sourceListItem.map(function (x) {
318
+ var mentionLocalId = (0, _uuid.default)();
319
+ fireEvent((0, _analytics.buildTypeAheadInsertedPayload)(pickerElapsedTime, stats.keyCount.arrowUp, stats.keyCount.arrowDown, sessionId, mode, item.mention, mentionLocalId, sourceListItem.map(function (x) {
319
320
  return x.mention;
320
321
  }), query, contextIdentifierProvider, taskListId, taskItemId));
321
322
  sessionId = (0, _uuid.default)();
@@ -334,7 +335,7 @@ var createTypeAheadConfig = exports.createTypeAheadConfig = function createTypeA
334
335
  id: id,
335
336
  accessLevel: accessLevel,
336
337
  userType: userType === 'DEFAULT' ? null : userType,
337
- localId: (0, _uuid.default)()
338
+ localId: mentionLocalId
338
339
  });
339
340
  var space = schema.text(' ');
340
341
  return insert(_model.Fragment.from([mentionNode, space]));
@@ -82,7 +82,7 @@ export const buildTypeAheadInviteItemClickedPayload = (duration, upKeyCount, dow
82
82
  userRole
83
83
  });
84
84
  };
85
- export const buildTypeAheadInsertedPayload = (duration, upKeyCount, downKeyCount, sessionId, insertType, mention, mentionList, query, contextIdentifierProvider, taskListId, taskItemId) => {
85
+ export const buildTypeAheadInsertedPayload = (duration, upKeyCount, downKeyCount, sessionId, insertType, mention, mentionLocalId, mentionList, query, contextIdentifierProvider, taskListId, taskItemId) => {
86
86
  const {
87
87
  queryLength,
88
88
  spaceInQuery
@@ -103,7 +103,8 @@ export const buildTypeAheadInsertedPayload = (duration, upKeyCount, downKeyCount
103
103
  memberCount: isTeamType(mention.userType) && mention.context ? mention.context.memberCount : null,
104
104
  includesYou: isTeamType(mention.userType) && mention.context ? mention.context.includesYou : null,
105
105
  taskListId,
106
- taskItemId
106
+ taskItemId,
107
+ localId: mentionLocalId
107
108
  });
108
109
  if (contextIdentifierProvider) {
109
110
  analyticsPayload.containerId = contextIdentifierProvider.containerId || undefined;
@@ -301,7 +301,8 @@ export const createTypeAheadConfig = ({
301
301
  taskItemId = taskItem.node.attrs.localId;
302
302
  }
303
303
  }
304
- fireEvent(buildTypeAheadInsertedPayload(pickerElapsedTime, stats.keyCount.arrowUp, stats.keyCount.arrowDown, sessionId, mode, item.mention, sourceListItem.map(x => x.mention), query, contextIdentifierProvider, taskListId, taskItemId));
304
+ const mentionLocalId = uuid();
305
+ fireEvent(buildTypeAheadInsertedPayload(pickerElapsedTime, stats.keyCount.arrowUp, stats.keyCount.arrowDown, sessionId, mode, item.mention, mentionLocalId, sourceListItem.map(x => x.mention), query, contextIdentifierProvider, taskListId, taskItemId));
305
306
  sessionId = uuid();
306
307
  if (mentionProvider && isTeamType(userType)) {
307
308
  return insert(buildNodesForTeamMention(schema, item.mention, mentionProvider, sanitizePrivateContent));
@@ -318,7 +319,7 @@ export const createTypeAheadConfig = ({
318
319
  id,
319
320
  accessLevel,
320
321
  userType: userType === 'DEFAULT' ? null : userType,
321
- localId: uuid()
322
+ localId: mentionLocalId
322
323
  });
323
324
  const space = schema.text(' ');
324
325
  return insert(Fragment.from([mentionNode, space]));
@@ -88,7 +88,7 @@ export var buildTypeAheadInviteItemClickedPayload = function buildTypeAheadInvit
88
88
  userRole: userRole
89
89
  });
90
90
  };
91
- export var buildTypeAheadInsertedPayload = function buildTypeAheadInsertedPayload(duration, upKeyCount, downKeyCount, sessionId, insertType, mention, mentionList, query, contextIdentifierProvider, taskListId, taskItemId) {
91
+ export var buildTypeAheadInsertedPayload = function buildTypeAheadInsertedPayload(duration, upKeyCount, downKeyCount, sessionId, insertType, mention, mentionLocalId, mentionList, query, contextIdentifierProvider, taskListId, taskItemId) {
92
92
  var _extractAttributesFro3 = extractAttributesFromQuery(query),
93
93
  queryLength = _extractAttributesFro3.queryLength,
94
94
  spaceInQuery = _extractAttributesFro3.spaceInQuery;
@@ -108,7 +108,8 @@ export var buildTypeAheadInsertedPayload = function buildTypeAheadInsertedPayloa
108
108
  memberCount: isTeamType(mention.userType) && mention.context ? mention.context.memberCount : null,
109
109
  includesYou: isTeamType(mention.userType) && mention.context ? mention.context.includesYou : null,
110
110
  taskListId: taskListId,
111
- taskItemId: taskItemId
111
+ taskItemId: taskItemId,
112
+ localId: mentionLocalId
112
113
  });
113
114
  if (contextIdentifierProvider) {
114
115
  analyticsPayload.containerId = contextIdentifierProvider.containerId || undefined;
@@ -303,7 +303,8 @@ export var createTypeAheadConfig = function createTypeAheadConfig(_ref6) {
303
303
  taskItemId = taskItem.node.attrs.localId;
304
304
  }
305
305
  }
306
- fireEvent(buildTypeAheadInsertedPayload(pickerElapsedTime, stats.keyCount.arrowUp, stats.keyCount.arrowDown, sessionId, mode, item.mention, sourceListItem.map(function (x) {
306
+ var mentionLocalId = uuid();
307
+ fireEvent(buildTypeAheadInsertedPayload(pickerElapsedTime, stats.keyCount.arrowUp, stats.keyCount.arrowDown, sessionId, mode, item.mention, mentionLocalId, sourceListItem.map(function (x) {
307
308
  return x.mention;
308
309
  }), query, contextIdentifierProvider, taskListId, taskItemId));
309
310
  sessionId = uuid();
@@ -322,7 +323,7 @@ export var createTypeAheadConfig = function createTypeAheadConfig(_ref6) {
322
323
  id: id,
323
324
  accessLevel: accessLevel,
324
325
  userType: userType === 'DEFAULT' ? null : userType,
325
- localId: uuid()
326
+ localId: mentionLocalId
326
327
  });
327
328
  var space = schema.text(' ');
328
329
  return insert(Fragment.from([mentionNode, space]));
@@ -8,5 +8,5 @@ export declare const buildAnalyticsPayload: (actionSubject: string, action: stri
8
8
  export declare const buildTypeAheadCancelPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, query?: string) => GasPayload;
9
9
  export declare const buildTypeAheadInviteItemViewedPayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => GasPayload;
10
10
  export declare const buildTypeAheadInviteItemClickedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, query?: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => GasPayload;
11
- export declare const buildTypeAheadInsertedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, mention: MentionDescription, mentionList?: MentionDescription[], query?: string, contextIdentifierProvider?: ContextIdentifierProvider, taskListId?: string, taskItemId?: string) => GasPayload;
11
+ 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) => GasPayload;
12
12
  export declare const buildTypeAheadRenderedPayload: (duration: number, userIds: Array<string> | null, query: string, teams: TeamInfoAttrAnalytics[] | null) => GasPayload;
@@ -8,5 +8,5 @@ export declare const buildAnalyticsPayload: (actionSubject: string, action: stri
8
8
  export declare const buildTypeAheadCancelPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, query?: string) => GasPayload;
9
9
  export declare const buildTypeAheadInviteItemViewedPayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => GasPayload;
10
10
  export declare const buildTypeAheadInviteItemClickedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, query?: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => GasPayload;
11
- export declare const buildTypeAheadInsertedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, mention: MentionDescription, mentionList?: MentionDescription[], query?: string, contextIdentifierProvider?: ContextIdentifierProvider, taskListId?: string, taskItemId?: string) => GasPayload;
11
+ 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) => GasPayload;
12
12
  export declare const buildTypeAheadRenderedPayload: (duration: number, userIds: Array<string> | null, query: string, teams: TeamInfoAttrAnalytics[] | null) => GasPayload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,15 +35,15 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^36.10.7",
37
37
  "@atlaskit/analytics-gas-types": "^5.1.0",
38
- "@atlaskit/editor-common": "^81.1.0",
38
+ "@atlaskit/editor-common": "^82.1.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.2.0",
40
40
  "@atlaskit/editor-plugin-context-identifier": "^1.1.0",
41
41
  "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
42
42
  "@atlaskit/editor-prosemirror": "4.0.1",
43
43
  "@atlaskit/icon": "^22.3.0",
44
- "@atlaskit/mention": "^23.0.0",
44
+ "@atlaskit/mention": "^23.2.0",
45
45
  "@atlaskit/platform-feature-flags": "^0.2.5",
46
- "@atlaskit/theme": "^12.8.0",
46
+ "@atlaskit/theme": "^12.9.0",
47
47
  "@atlaskit/tokens": "^1.49.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",
@@ -58,7 +58,6 @@
58
58
  "@af/visual-regression": "*",
59
59
  "@atlaskit/ssr": "*",
60
60
  "@atlaskit/visual-regression": "*",
61
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
62
61
  "@testing-library/react": "^12.1.5",
63
62
  "react-dom": "^16.8.0",
64
63
  "typescript": "~5.4.2",
@@ -105,7 +104,6 @@
105
104
  "@atlassian/tangerine/project-structure"
106
105
  ]
107
106
  },
108
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
109
107
  "platform-feature-flags": {
110
108
  "platform.editor.mentions-in-editor-popup-on-click": {
111
109
  "type": "boolean"
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-plugin-mentions"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -29,44 +30,44 @@ import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
29
30
 
30
31
  // @public (undocumented)
31
32
  export interface MentionPluginConfig {
32
- // (undocumented)
33
- HighlightComponent?: React.ComponentType;
34
- // (undocumented)
35
- insertDisplayName?: boolean;
33
+ // (undocumented)
34
+ HighlightComponent?: React.ComponentType;
35
+ // (undocumented)
36
+ insertDisplayName?: boolean;
36
37
  }
37
38
 
38
39
  // @public (undocumented)
39
40
  interface MentionPluginOptions extends MentionPluginConfig {
40
- // (undocumented)
41
- allowZeroWidthSpaceAfter?: boolean;
42
- // (undocumented)
43
- sanitizePrivateContent?: boolean;
41
+ // (undocumented)
42
+ allowZeroWidthSpaceAfter?: boolean;
43
+ // (undocumented)
44
+ sanitizePrivateContent?: boolean;
44
45
  }
45
46
 
46
47
  // @public (undocumented)
47
48
  type MentionPluginState = {
48
- mentionProvider?: MentionProvider;
49
- contextIdentifierProvider?: ContextIdentifierProvider;
50
- mentions?: Array<MentionDescription>;
51
- canInsertMention?: boolean;
49
+ mentionProvider?: MentionProvider;
50
+ contextIdentifierProvider?: ContextIdentifierProvider;
51
+ mentions?: Array<MentionDescription>;
52
+ canInsertMention?: boolean;
52
53
  };
53
54
 
54
55
  // @public (undocumented)
55
56
  type MentionSharedState = MentionPluginState & {
56
- typeAheadHandler: TypeAheadHandler;
57
+ typeAheadHandler: TypeAheadHandler;
57
58
  };
58
59
 
59
60
  // @public (undocumented)
60
61
  export type MentionsPlugin = NextEditorPlugin<
61
- 'mention',
62
- {
63
- pluginConfiguration: MentionPluginOptions | undefined;
64
- dependencies: [OptionalPlugin<AnalyticsPlugin>, TypeAheadPlugin];
65
- sharedState: MentionSharedState | undefined;
66
- actions: {
67
- openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
68
- };
69
- }
62
+ 'mention',
63
+ {
64
+ pluginConfiguration: MentionPluginOptions | undefined;
65
+ dependencies: [OptionalPlugin<AnalyticsPlugin>, TypeAheadPlugin];
66
+ sharedState: MentionSharedState | undefined;
67
+ actions: {
68
+ openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
69
+ };
70
+ }
70
71
  >;
71
72
 
72
73
  // @public (undocumented)
@@ -83,9 +84,9 @@ export const mentionsPlugin: MentionsPlugin;
83
84
 
84
85
  ```json
85
86
  {
86
- "react": "^16.8.0",
87
- "react-dom": "^16.8.0",
88
- "react-intl-next": "npm:react-intl@^5.18.1"
87
+ "react": "^16.8.0",
88
+ "react-dom": "^16.8.0",
89
+ "react-intl-next": "npm:react-intl@^5.18.1"
89
90
  }
90
91
  ```
91
92