@atlaskit/editor-plugin-emoji 1.3.2 → 1.3.4

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,14 +1,14 @@
1
1
  module.exports = {
2
- rules: {
3
- '@typescript-eslint/no-duplicate-imports': 'error',
4
- '@typescript-eslint/no-explicit-any': 'error',
5
- },
6
- overrides: [
7
- {
8
- files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
9
- rules: {
10
- '@typescript-eslint/no-explicit-any': 'off',
11
- },
12
- },
13
- ],
2
+ rules: {
3
+ '@typescript-eslint/no-duplicate-imports': 'error',
4
+ '@typescript-eslint/no-explicit-any': 'error',
5
+ },
6
+ overrides: [
7
+ {
8
+ files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
9
+ rules: {
10
+ '@typescript-eslint/no-explicit-any': 'off',
11
+ },
12
+ },
13
+ ],
14
14
  };
package/CHANGELOG.md CHANGED
@@ -1,477 +1,493 @@
1
1
  # @atlaskit/editor-plugin-emoji
2
2
 
3
+ ## 1.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#110390](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110390)
8
+ [`bead123202369`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bead123202369) -
9
+ [ux] [ED-23642] Reordering the typeahead so that date, status, code block & info panel are above
10
+ the fold (in the top 5 results)
11
+ - Updated dependencies
12
+
13
+ ## 1.3.3
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 1.3.2
4
20
 
5
21
  ### Patch Changes
6
22
 
7
- - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
8
- [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
9
- [ED-23332] Update adf-schema package to 36.10.1
10
- - Updated dependencies
23
+ - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
24
+ [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
25
+ [ED-23332] Update adf-schema package to 36.10.1
26
+ - Updated dependencies
11
27
 
12
28
  ## 1.3.1
13
29
 
14
30
  ### Patch Changes
15
31
 
16
- - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
17
- [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
18
- ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
32
+ - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
33
+ [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
34
+ ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
19
35
 
20
36
  ## 1.3.0
21
37
 
22
38
  ### Minor Changes
23
39
 
24
- - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
25
- [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
26
- Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
40
+ - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
41
+ [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
42
+ Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
27
43
 
28
44
  ### Patch Changes
29
45
 
30
- - Updated dependencies
46
+ - Updated dependencies
31
47
 
32
48
  ## 1.2.7
33
49
 
34
50
  ### Patch Changes
35
51
 
36
- - Updated dependencies
52
+ - Updated dependencies
37
53
 
38
54
  ## 1.2.6
39
55
 
40
56
  ### Patch Changes
41
57
 
42
- - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
43
- [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
44
- [ED-22282] Bump adf-schema to 36.1.0
58
+ - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
59
+ [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
60
+ [ED-22282] Bump adf-schema to 36.1.0
45
61
 
46
62
  ## 1.2.5
47
63
 
48
64
  ### Patch Changes
49
65
 
50
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
51
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
52
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
53
- language triggering composition on an empty line.This was fixed in a patch bump of
54
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
66
+ - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
67
+ [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
68
+ [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
69
+ language triggering composition on an empty line.This was fixed in a patch bump of
70
+ prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
55
71
 
56
72
  ## 1.2.4
57
73
 
58
74
  ### Patch Changes
59
75
 
60
- - Updated dependencies
76
+ - Updated dependencies
61
77
 
62
78
  ## 1.2.3
63
79
 
64
80
  ### Patch Changes
65
81
 
66
- - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
67
- [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
68
- [ED-23102] Bump ADF schema to version 35.12.2
82
+ - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
83
+ [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
84
+ [ED-23102] Bump ADF schema to version 35.12.2
69
85
 
70
86
  ## 1.2.2
71
87
 
72
88
  ### Patch Changes
73
89
 
74
- - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
75
- [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
76
- [ED-23097] Bump ADF schema to version 35.12.1
90
+ - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
91
+ [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
92
+ [ED-23097] Bump ADF schema to version 35.12.1
77
93
 
78
94
  ## 1.2.1
79
95
 
80
96
  ### Patch Changes
81
97
 
82
- - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
83
- [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
84
- Updating adf-schema version to 35.10.0
98
+ - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
99
+ [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
100
+ Updating adf-schema version to 35.10.0
85
101
 
86
102
  ## 1.2.0
87
103
 
88
104
  ### Minor Changes
89
105
 
90
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
91
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
92
- bumped editor-prosemirror version to 4.0.0
106
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
107
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
108
+ bumped editor-prosemirror version to 4.0.0
93
109
 
94
110
  ### Patch Changes
95
111
 
96
- - Updated dependencies
112
+ - Updated dependencies
97
113
 
98
114
  ## 1.1.13
99
115
 
100
116
  ### Patch Changes
101
117
 
102
- - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
103
- [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
104
- Bump adf-schema to 35.9.2 to support table alignment options
118
+ - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
119
+ [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
120
+ Bump adf-schema to 35.9.2 to support table alignment options
105
121
 
106
122
  ## 1.1.12
107
123
 
108
124
  ### Patch Changes
109
125
 
110
- - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
111
- [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
112
- Bump ADF-schema package to version 35.0.0
113
- - Updated dependencies
126
+ - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
127
+ [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
128
+ Bump ADF-schema package to version 35.0.0
129
+ - Updated dependencies
114
130
 
115
131
  ## 1.1.11
116
132
 
117
133
  ### Patch Changes
118
134
 
119
- - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
120
- [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
121
- [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
122
- 35.7.0 to 35.8.0
135
+ - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
136
+ [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
137
+ [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
138
+ 35.7.0 to 35.8.0
123
139
 
124
140
  ## 1.1.10
125
141
 
126
142
  ### Patch Changes
127
143
 
128
- - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
129
- [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
130
- Bump adf-schema to 35.7.0
144
+ - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
145
+ [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
146
+ Bump adf-schema to 35.7.0
131
147
 
132
148
  ## 1.1.9
133
149
 
134
150
  ### Patch Changes
135
151
 
136
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
137
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
138
- Upgrade Typescript from `4.9.5` to `5.4.2`
152
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
153
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
154
+ Upgrade Typescript from `4.9.5` to `5.4.2`
139
155
 
140
156
  ## 1.1.8
141
157
 
142
158
  ### Patch Changes
143
159
 
144
- - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
145
- [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
146
- ED-22553 Updating adf-schema version to 35.6.0
160
+ - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
161
+ [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
162
+ ED-22553 Updating adf-schema version to 35.6.0
147
163
 
148
164
  ## 1.1.7
149
165
 
150
166
  ### Patch Changes
151
167
 
152
- - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
153
- [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
154
- ED-22219: adf-schema updated to 35.5.2
155
- - Updated dependencies
168
+ - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
169
+ [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
170
+ ED-22219: adf-schema updated to 35.5.2
171
+ - Updated dependencies
156
172
 
157
173
  ## 1.1.6
158
174
 
159
175
  ### Patch Changes
160
176
 
161
- - [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
162
- [`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
163
- MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
177
+ - [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
178
+ [`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
179
+ MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
164
180
 
165
- ## WHY?
181
+ ## WHY?
166
182
 
167
- Removing editor-common dependencies from prosemirror-input-rules package.
183
+ Removing editor-common dependencies from prosemirror-input-rules package.
168
184
 
169
- This makes it easier for editor updates because it simplifies our dependency graph.
185
+ This makes it easier for editor updates because it simplifies our dependency graph.
170
186
 
171
- ## WHAT and HOW?
187
+ ## WHAT and HOW?
172
188
 
173
- These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
174
- `@atlaskit/editor-common/types`:
189
+ These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
190
+ `@atlaskit/editor-common/types`:
175
191
 
176
- - InputRuleWrapper
177
- - InputRuleHandler
178
- - OnHandlerApply
179
- - createRule
192
+ - InputRuleWrapper
193
+ - InputRuleHandler
194
+ - OnHandlerApply
195
+ - createRule
180
196
 
181
- These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
182
- need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
197
+ These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
198
+ need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
183
199
 
184
- `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
200
+ `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
185
201
 
186
- - createPlugin
187
- - createInputRulePlugin
202
+ - createPlugin
203
+ - createInputRulePlugin
188
204
 
189
- - Updated dependencies
205
+ - Updated dependencies
190
206
 
191
207
  ## 1.1.5
192
208
 
193
209
  ### Patch Changes
194
210
 
195
- - Updated dependencies
211
+ - Updated dependencies
196
212
 
197
213
  ## 1.1.4
198
214
 
199
215
  ### Patch Changes
200
216
 
201
- - Updated dependencies
217
+ - Updated dependencies
202
218
 
203
219
  ## 1.1.3
204
220
 
205
221
  ### Patch Changes
206
222
 
207
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
208
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
209
- Upgrading @atlaskit/editor-prosemirror dependency
223
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
224
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
225
+ Upgrading @atlaskit/editor-prosemirror dependency
210
226
 
211
227
  ## 1.1.2
212
228
 
213
229
  ### Patch Changes
214
230
 
215
- - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
216
- [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
217
- Move all plugin translations to editor-common
218
- - Updated dependencies
231
+ - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
232
+ [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
233
+ Move all plugin translations to editor-common
234
+ - Updated dependencies
219
235
 
220
236
  ## 1.1.1
221
237
 
222
238
  ### Patch Changes
223
239
 
224
- - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
225
- [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
226
- Updating adf-schema version to 35.5.1
240
+ - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
241
+ [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
242
+ Updating adf-schema version to 35.5.1
227
243
 
228
244
  ## 1.1.0
229
245
 
230
246
  ### Minor Changes
231
247
 
232
- - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
233
- [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
234
- Support maybeAdd plugins in usePreset. Add typing support for universal preset.
248
+ - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
249
+ [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
250
+ Support maybeAdd plugins in usePreset. Add typing support for universal preset.
235
251
 
236
- Now when using the editor API with the universal preset
252
+ Now when using the editor API with the universal preset
237
253
 
238
254
  ### Patch Changes
239
255
 
240
- - [#69345](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69345)
241
- [`9c8c65dfd75b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9c8c65dfd75b) -
242
- migrating tests out of editor-plugin-emoji into editor-plugin-emoji-tests
243
- - Updated dependencies
256
+ - [#69345](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69345)
257
+ [`9c8c65dfd75b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9c8c65dfd75b) -
258
+ migrating tests out of editor-plugin-emoji into editor-plugin-emoji-tests
259
+ - Updated dependencies
244
260
 
245
261
  ## 1.0.6
246
262
 
247
263
  ### Patch Changes
248
264
 
249
- - Updated dependencies
265
+ - Updated dependencies
250
266
 
251
267
  ## 1.0.5
252
268
 
253
269
  ### Patch Changes
254
270
 
255
- - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
256
- [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
257
- [ED-21835] Change EditorAPI type to always union with undefined
271
+ - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
272
+ [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
273
+ [ED-21835] Change EditorAPI type to always union with undefined
258
274
 
259
275
  ## 1.0.4
260
276
 
261
277
  ### Patch Changes
262
278
 
263
- - [#64647](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64647)
264
- [`f2cd17119b76`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f2cd17119b76) -
265
- [ECA11Y-15] Fixing screen reader announcement for Emoji
279
+ - [#64647](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64647)
280
+ [`f2cd17119b76`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f2cd17119b76) -
281
+ [ECA11Y-15] Fixing screen reader announcement for Emoji
266
282
 
267
283
  ## 1.0.3
268
284
 
269
285
  ### Patch Changes
270
286
 
271
- - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
272
- [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
273
- ED-21609 Update adf-schema to 35.3.0
274
- - Updated dependencies
287
+ - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
288
+ [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
289
+ ED-21609 Update adf-schema to 35.3.0
290
+ - Updated dependencies
275
291
 
276
292
  ## 1.0.2
277
293
 
278
294
  ### Patch Changes
279
295
 
280
- - Updated dependencies
296
+ - Updated dependencies
281
297
 
282
298
  ## 1.0.1
283
299
 
284
300
  ### Patch Changes
285
301
 
286
- - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
287
- [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
288
- [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
302
+ - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
303
+ [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
304
+ [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
289
305
 
290
306
  ## 1.0.0
291
307
 
292
308
  ### Major Changes
293
309
 
294
- - [#61337](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61337)
295
- [`2d827c1d6c40`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d827c1d6c40) -
296
- Remove emojiProvider property from the sharedState of the emoji plugin. This avoids a
297
- performance degradation if the provider is not memoised. It can still be retrieved via the
298
- provider factory if required internally.
310
+ - [#61337](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61337)
311
+ [`2d827c1d6c40`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d827c1d6c40) -
312
+ Remove emojiProvider property from the sharedState of the emoji plugin. This avoids a performance
313
+ degradation if the provider is not memoised. It can still be retrieved via the provider factory if
314
+ required internally.
299
315
 
300
316
  ## 0.4.12
301
317
 
302
318
  ### Patch Changes
303
319
 
304
- - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
305
- [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
306
- ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
320
+ - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
321
+ [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
322
+ ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
307
323
 
308
324
  ## 0.4.11
309
325
 
310
326
  ### Patch Changes
311
327
 
312
- - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
313
- [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
314
- ED-21371 Update adf-schema to 35.1.0
328
+ - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
329
+ [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
330
+ ED-21371 Update adf-schema to 35.1.0
315
331
 
316
332
  ## 0.4.10
317
333
 
318
334
  ### Patch Changes
319
335
 
320
- - Updated dependencies
336
+ - Updated dependencies
321
337
 
322
338
  ## 0.4.9
323
339
 
324
340
  ### Patch Changes
325
341
 
326
- - Updated dependencies
342
+ - Updated dependencies
327
343
 
328
344
  ## 0.4.8
329
345
 
330
346
  ### Patch Changes
331
347
 
332
- - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
333
- [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
334
- Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
348
+ - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
349
+ [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
350
+ Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
335
351
 
336
352
  ## 0.4.7
337
353
 
338
354
  ### Patch Changes
339
355
 
340
- - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
341
- [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
342
- update ADF schema
356
+ - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
357
+ [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
358
+ update ADF schema
343
359
 
344
360
  ## 0.4.6
345
361
 
346
362
  ### Patch Changes
347
363
 
348
- - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
349
- [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
350
- ED-21266: Updated @atlaskit/adf-schema to 34.0.1
364
+ - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
365
+ [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
366
+ ED-21266: Updated @atlaskit/adf-schema to 34.0.1
351
367
 
352
368
  ## 0.4.5
353
369
 
354
370
  ### Patch Changes
355
371
 
356
- - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
357
- [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) -
358
- ED-20971 Upgrade adf-schema package to ^34.0.0
372
+ - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
373
+ [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
374
+ Upgrade adf-schema package to ^34.0.0
359
375
 
360
376
  ## 0.4.4
361
377
 
362
378
  ### Patch Changes
363
379
 
364
- - [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
365
- [`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) -
366
- ED-20763 Upgrade ADF schema version to 33.2.3 for MBE nodes.
367
- - Updated dependencies
380
+ - [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
381
+ [`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
382
+ Upgrade ADF schema version to 33.2.3 for MBE nodes.
383
+ - Updated dependencies
368
384
 
369
385
  ## 0.4.3
370
386
 
371
387
  ### Patch Changes
372
388
 
373
- - Updated dependencies
389
+ - Updated dependencies
374
390
 
375
391
  ## 0.4.2
376
392
 
377
393
  ### Patch Changes
378
394
 
379
- - Updated dependencies
395
+ - Updated dependencies
380
396
 
381
397
  ## 0.4.1
382
398
 
383
399
  ### Patch Changes
384
400
 
385
- - Updated dependencies
401
+ - Updated dependencies
386
402
 
387
403
  ## 0.4.0
388
404
 
389
405
  ### Minor Changes
390
406
 
391
- - [#41143](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41143)
392
- [`7d6dfe2befa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d6dfe2befa) -
393
- [ED-20003] Replace TyepAhead API for Editor Plugin Injection API
407
+ - [#41143](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41143)
408
+ [`7d6dfe2befa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d6dfe2befa) -
409
+ [ED-20003] Replace TyepAhead API for Editor Plugin Injection API
394
410
 
395
411
  ### Patch Changes
396
412
 
397
- - Updated dependencies
413
+ - Updated dependencies
398
414
 
399
415
  ## 0.3.6
400
416
 
401
417
  ### Patch Changes
402
418
 
403
- - Updated dependencies
419
+ - Updated dependencies
404
420
 
405
421
  ## 0.3.5
406
422
 
407
423
  ### Patch Changes
408
424
 
409
- - [#39749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39749)
410
- [`e6b69f455c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6b69f455c3) -
411
- Connect yarn changeset to packages, upgrade adf-schema
425
+ - [#39749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39749)
426
+ [`e6b69f455c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6b69f455c3) - Connect
427
+ yarn changeset to packages, upgrade adf-schema
412
428
 
413
429
  ## 0.3.4
414
430
 
415
431
  ### Patch Changes
416
432
 
417
- - Updated dependencies
433
+ - Updated dependencies
418
434
 
419
435
  ## 0.3.3
420
436
 
421
437
  ### Patch Changes
422
438
 
423
- - Updated dependencies
439
+ - Updated dependencies
424
440
 
425
441
  ## 0.3.2
426
442
 
427
443
  ### Patch Changes
428
444
 
429
- - [#39481](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39481)
430
- [`aeb5c9a01e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aeb5c9a01e8) - Delete
431
- adf-schema from AFE and rely on npm package for adf-schema
432
- - [`dec85b34bcd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dec85b34bcd) - Delete
433
- adf-schema package
434
- - [`4b4dcfe0bba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4b4dcfe0bba) - Delete
435
- adf-schema, use published version
445
+ - [#39481](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39481)
446
+ [`aeb5c9a01e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aeb5c9a01e8) - Delete
447
+ adf-schema from AFE and rely on npm package for adf-schema
448
+ - [`dec85b34bcd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dec85b34bcd) - Delete
449
+ adf-schema package
450
+ - [`4b4dcfe0bba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4b4dcfe0bba) - Delete
451
+ adf-schema, use published version
436
452
 
437
453
  ## 0.3.1
438
454
 
439
455
  ### Patch Changes
440
456
 
441
- - Updated dependencies
457
+ - Updated dependencies
442
458
 
443
459
  ## 0.3.0
444
460
 
445
461
  ### Minor Changes
446
462
 
447
- - [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
448
- [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) -
449
- Updating all plugins with minor version to correct issue with semver.
463
+ - [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
464
+ [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating
465
+ all plugins with minor version to correct issue with semver.
450
466
 
451
467
  ### Patch Changes
452
468
 
453
- - Updated dependencies
469
+ - Updated dependencies
454
470
 
455
471
  ## 0.2.0
456
472
 
457
473
  ### Minor Changes
458
474
 
459
- - [#39154](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39154)
460
- [`113fcc02759`](https://bitbucket.org/atlassian/atlassian-frontend/commits/113fcc02759) -
461
- ED-19433 Extract Emoji Plugin to its own package
475
+ - [#39154](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39154)
476
+ [`113fcc02759`](https://bitbucket.org/atlassian/atlassian-frontend/commits/113fcc02759) - ED-19433
477
+ Extract Emoji Plugin to its own package
462
478
 
463
479
  ## 0.1.2
464
480
 
465
481
  ### Patch Changes
466
482
 
467
- - [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
468
- [`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
469
- atlaskit docs to all existing plugins.
483
+ - [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
484
+ [`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
485
+ atlaskit docs to all existing plugins.
470
486
 
471
487
  ## 0.1.1
472
488
 
473
489
  ### Patch Changes
474
490
 
475
- - [#39095](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39095)
476
- [`2b28c870854`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2b28c870854) - Adding
477
- mssing dependencies to build the package
491
+ - [#39095](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39095)
492
+ [`2b28c870854`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2b28c870854) - Adding
493
+ mssing dependencies to build the package
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.
@@ -12,11 +12,15 @@ var _Emoji = _interopRequireDefault(require("../ui/Emoji"));
12
12
  var EmojiAssistiveTextComponent = /*#__PURE__*/_react.default.memo(function (_ref) {
13
13
  var emojiShortName = _ref.emojiShortName;
14
14
  var intl = (0, _reactIntlNext.useIntl)();
15
- return /*#__PURE__*/_react.default.createElement("span", {
16
- style: {
17
- fontSize: 0
18
- }
19
- }, "".concat(intl.formatMessage(_emoji.messages.emojiNodeLabel), " ").concat(emojiShortName));
15
+ return (
16
+ /*#__PURE__*/
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
18
+ _react.default.createElement("span", {
19
+ style: {
20
+ fontSize: 0
21
+ }
22
+ }, "".concat(intl.formatMessage(_emoji.messages.emojiNodeLabel), " ").concat(emojiShortName))
23
+ );
20
24
  });
21
25
  function EmojiNodeView(props) {
22
26
  var _props$node$attrs = props.node.attrs,
@@ -231,12 +231,13 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
231
231
  },
232
232
  pluginsOptions: {
233
233
  quickInsert: function quickInsert(_ref9) {
234
+ var _options$getEditorFea;
234
235
  var formatMessage = _ref9.formatMessage;
235
236
  return [{
236
237
  id: 'emoji',
237
238
  title: formatMessage(_messages.toolbarInsertBlockMessages.emoji),
238
239
  description: formatMessage(_messages.toolbarInsertBlockMessages.emojiDescription),
239
- priority: 500,
240
+ priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 500,
240
241
  keyshortcut: ':',
241
242
  icon: function icon() {
242
243
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconEmoji, null);
@@ -11,7 +11,7 @@ var _emoji = require("@atlaskit/editor-common/emoji");
11
11
  var _templateObject;
12
12
  /** @jsx jsx */
13
13
  // eslint-disable-next-line
14
- var clickSelectWrapperStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage\n user-select: all;\n"])));
14
+ var clickSelectWrapperStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage\n\tuser-select: all;\n"])));
15
15
  function EmojiNode(props) {
16
16
  return (0, _react.jsx)("span", {
17
17
  css: clickSelectWrapperStyle
@@ -6,11 +6,15 @@ const EmojiAssistiveTextComponent = /*#__PURE__*/React.memo(({
6
6
  emojiShortName
7
7
  }) => {
8
8
  const intl = useIntl();
9
- return /*#__PURE__*/React.createElement("span", {
10
- style: {
11
- fontSize: 0
12
- }
13
- }, `${intl.formatMessage(messages.emojiNodeLabel)} ${emojiShortName}`);
9
+ return (
10
+ /*#__PURE__*/
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
12
+ React.createElement("span", {
13
+ style: {
14
+ fontSize: 0
15
+ }
16
+ }, `${intl.formatMessage(messages.emojiNodeLabel)} ${emojiShortName}`)
17
+ );
14
18
  });
15
19
  export function EmojiNodeView(props) {
16
20
  const {
@@ -214,23 +214,26 @@ export const emojiPlugin = ({
214
214
  pluginsOptions: {
215
215
  quickInsert: ({
216
216
  formatMessage
217
- }) => [{
218
- id: 'emoji',
219
- title: formatMessage(messages.emoji),
220
- description: formatMessage(messages.emojiDescription),
221
- priority: 500,
222
- keyshortcut: ':',
223
- icon: () => /*#__PURE__*/React.createElement(IconEmoji, null),
224
- action(insert, state) {
225
- var _api$typeAhead2;
226
- const tr = insert(undefined);
227
- api === null || api === void 0 ? void 0 : (_api$typeAhead2 = api.typeAhead) === null || _api$typeAhead2 === void 0 ? void 0 : _api$typeAhead2.actions.openAtTransaction({
228
- triggerHandler: typeAhead,
229
- inputMethod: INPUT_METHOD.QUICK_INSERT
230
- })(tr);
231
- return tr;
232
- }
233
- }],
217
+ }) => {
218
+ var _options$getEditorFea;
219
+ return [{
220
+ id: 'emoji',
221
+ title: formatMessage(messages.emoji),
222
+ description: formatMessage(messages.emojiDescription),
223
+ priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 500,
224
+ keyshortcut: ':',
225
+ icon: () => /*#__PURE__*/React.createElement(IconEmoji, null),
226
+ action(insert, state) {
227
+ var _api$typeAhead2;
228
+ const tr = insert(undefined);
229
+ api === null || api === void 0 ? void 0 : (_api$typeAhead2 = api.typeAhead) === null || _api$typeAhead2 === void 0 ? void 0 : _api$typeAhead2.actions.openAtTransaction({
230
+ triggerHandler: typeAhead,
231
+ inputMethod: INPUT_METHOD.QUICK_INSERT
232
+ })(tr);
233
+ return tr;
234
+ }
235
+ }];
236
+ },
234
237
  typeAhead
235
238
  }
236
239
  };
@@ -3,8 +3,8 @@ import { css, jsx } from '@emotion/react';
3
3
  import { Emoji } from '@atlaskit/editor-common/emoji';
4
4
  // eslint-disable-next-line
5
5
  const clickSelectWrapperStyle = css`
6
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
7
- user-select: all;
6
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
7
+ user-select: all;
8
8
  `;
9
9
  export default function EmojiNode(props) {
10
10
  return jsx("span", {
@@ -5,11 +5,15 @@ import Emoji from '../ui/Emoji';
5
5
  var EmojiAssistiveTextComponent = /*#__PURE__*/React.memo(function (_ref) {
6
6
  var emojiShortName = _ref.emojiShortName;
7
7
  var intl = useIntl();
8
- return /*#__PURE__*/React.createElement("span", {
9
- style: {
10
- fontSize: 0
11
- }
12
- }, "".concat(intl.formatMessage(messages.emojiNodeLabel), " ").concat(emojiShortName));
8
+ return (
9
+ /*#__PURE__*/
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
11
+ React.createElement("span", {
12
+ style: {
13
+ fontSize: 0
14
+ }
15
+ }, "".concat(intl.formatMessage(messages.emojiNodeLabel), " ").concat(emojiShortName))
16
+ );
13
17
  });
14
18
  export function EmojiNodeView(props) {
15
19
  var _props$node$attrs = props.node.attrs,
@@ -218,12 +218,13 @@ export var emojiPlugin = function emojiPlugin(_ref2) {
218
218
  },
219
219
  pluginsOptions: {
220
220
  quickInsert: function quickInsert(_ref9) {
221
+ var _options$getEditorFea;
221
222
  var formatMessage = _ref9.formatMessage;
222
223
  return [{
223
224
  id: 'emoji',
224
225
  title: formatMessage(messages.emoji),
225
226
  description: formatMessage(messages.emojiDescription),
226
- priority: 500,
227
+ priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 500,
227
228
  keyshortcut: ':',
228
229
  icon: function icon() {
229
230
  return /*#__PURE__*/React.createElement(IconEmoji, null);
@@ -4,7 +4,7 @@ var _templateObject;
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import { Emoji } from '@atlaskit/editor-common/emoji';
6
6
  // eslint-disable-next-line
7
- var clickSelectWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage\n user-select: all;\n"])));
7
+ var clickSelectWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage\n\tuser-select: all;\n"])));
8
8
  export default function EmojiNode(props) {
9
9
  return jsx("span", {
10
10
  css: clickSelectWrapperStyle
@@ -1,10 +1,11 @@
1
1
  import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import type { EditorCommand, NextEditorPlugin, OptionalPlugin, TypeAheadHandler } from '@atlaskit/editor-common/types';
2
+ import type { EditorCommand, GetEditorFeatureFlags, NextEditorPlugin, OptionalPlugin, TypeAheadHandler } from '@atlaskit/editor-common/types';
3
3
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
4
  import type { TypeAheadInputMethod, TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
5
5
  import type { EmojiDescription, EmojiId, EmojiProvider, EmojiResourceConfig } from '@atlaskit/emoji';
6
6
  export interface EmojiPluginOptions {
7
7
  headless?: boolean;
8
+ getEditorFeatureFlags?: GetEditorFeatureFlags;
8
9
  }
9
10
  export type EmojiPluginState = {
10
11
  emojiProvider?: EmojiProvider;
@@ -1,10 +1,11 @@
1
1
  import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import type { EditorCommand, NextEditorPlugin, OptionalPlugin, TypeAheadHandler } from '@atlaskit/editor-common/types';
2
+ import type { EditorCommand, GetEditorFeatureFlags, NextEditorPlugin, OptionalPlugin, TypeAheadHandler } from '@atlaskit/editor-common/types';
3
3
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
4
  import type { TypeAheadInputMethod, TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
5
5
  import type { EmojiDescription, EmojiId, EmojiProvider, EmojiResourceConfig } from '@atlaskit/emoji';
6
6
  export interface EmojiPluginOptions {
7
7
  headless?: boolean;
8
+ getEditorFeatureFlags?: GetEditorFeatureFlags;
8
9
  }
9
10
  export type EmojiPluginState = {
10
11
  emojiProvider?: EmojiProvider;
package/package.json CHANGED
@@ -1,96 +1,74 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "1.3.2",
4
- "description": "Emoji plugin for @atlaskit/editor-core",
5
- "publishConfig": {
6
- "registry": "https://registry.npmjs.org/"
7
- },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
- "author": "Atlassian Pty Ltd",
10
- "license": "Apache-2.0",
11
- "main": "dist/cjs/index.js",
12
- "module": "dist/esm/index.js",
13
- "module:es2019": "dist/es2019/index.js",
14
- "types": "dist/types/index.d.ts",
15
- "sideEffects": false,
16
- "atlaskit:src": "src/index.ts",
17
- "atlassian": {
18
- "team": "Editor: Media Experience Porygon",
19
- "releaseModel": "continuous",
20
- "singleton": true,
21
- "runReact18": false
22
- },
23
- "dependencies": {
24
- "@atlaskit/adf-schema": "^36.10.7",
25
- "@atlaskit/editor-common": "^81.0.0",
26
- "@atlaskit/editor-plugin-analytics": "^1.2.0",
27
- "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
28
- "@atlaskit/editor-prosemirror": "4.0.1",
29
- "@atlaskit/emoji": "^67.6.0",
30
- "@atlaskit/prosemirror-input-rules": "^3.1.0",
31
- "@babel/runtime": "^7.0.0",
32
- "@emotion/react": "^11.7.1",
33
- "react-intl-next": "npm:react-intl@^5.18.1"
34
- },
35
- "peerDependencies": {
36
- "react": "^16.8.0"
37
- },
38
- "devDependencies": {
39
- "@af/visual-regression": "*",
40
- "@atlaskit/editor-plugin-composition": "^1.1.0",
41
- "@atlaskit/editor-plugin-decorations": "^1.1.0",
42
- "@atlaskit/ssr": "*",
43
- "@atlaskit/util-data-test": "^17.9.0",
44
- "@atlaskit/visual-regression": "*",
45
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
46
- "@testing-library/react": "^12.1.5",
47
- "react-dom": "^16.8.0",
48
- "typescript": "~5.4.2",
49
- "wait-for-expect": "^1.2.0"
50
- },
51
- "techstack": {
52
- "@atlassian/frontend": {
53
- "import-structure": [
54
- "atlassian-conventions"
55
- ],
56
- "circular-dependencies": [
57
- "file-and-folder-level"
58
- ]
59
- },
60
- "@repo/internal": {
61
- "dom-events": "use-bind-event-listener",
62
- "analytics": [
63
- "analytics-next"
64
- ],
65
- "design-tokens": [
66
- "color"
67
- ],
68
- "theming": [
69
- "react-context"
70
- ],
71
- "ui-components": [
72
- "lite-mode"
73
- ],
74
- "deprecation": "no-deprecated-imports",
75
- "styling": [
76
- "emotion",
77
- "emotion"
78
- ],
79
- "imports": [
80
- "import-no-extraneous-disable-for-examples-and-docs"
81
- ]
82
- }
83
- },
84
- "typesVersions": {
85
- ">=4.5 <4.9": {
86
- "*": [
87
- "dist/types-ts4.5/*",
88
- "dist/types-ts4.5/index.d.ts"
89
- ]
90
- }
91
- },
92
- "af:exports": {
93
- ".": "./src/index.ts"
94
- },
95
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
96
- }
2
+ "name": "@atlaskit/editor-plugin-emoji",
3
+ "version": "1.3.4",
4
+ "description": "Emoji plugin for @atlaskit/editor-core",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
+ "author": "Atlassian Pty Ltd",
10
+ "license": "Apache-2.0",
11
+ "main": "dist/cjs/index.js",
12
+ "module": "dist/esm/index.js",
13
+ "module:es2019": "dist/es2019/index.js",
14
+ "types": "dist/types/index.d.ts",
15
+ "sideEffects": false,
16
+ "atlaskit:src": "src/index.ts",
17
+ "atlassian": {
18
+ "team": "Editor: Media Experience Porygon",
19
+ "releaseModel": "continuous",
20
+ "singleton": true,
21
+ "runReact18": false
22
+ },
23
+ "dependencies": {
24
+ "@atlaskit/adf-schema": "^36.10.7",
25
+ "@atlaskit/editor-common": "^82.6.0",
26
+ "@atlaskit/editor-plugin-analytics": "^1.2.0",
27
+ "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
28
+ "@atlaskit/editor-prosemirror": "4.0.1",
29
+ "@atlaskit/emoji": "^67.6.0",
30
+ "@atlaskit/prosemirror-input-rules": "^3.1.0",
31
+ "@babel/runtime": "^7.0.0",
32
+ "@emotion/react": "^11.7.1",
33
+ "react-intl-next": "npm:react-intl@^5.18.1"
34
+ },
35
+ "peerDependencies": {
36
+ "react": "^16.8.0"
37
+ },
38
+ "devDependencies": {
39
+ "@af/visual-regression": "*",
40
+ "@atlaskit/editor-plugin-composition": "^1.1.0",
41
+ "@atlaskit/editor-plugin-decorations": "^1.1.0",
42
+ "@atlaskit/ssr": "*",
43
+ "@atlaskit/util-data-test": "^17.9.0",
44
+ "@atlaskit/visual-regression": "*",
45
+ "@testing-library/react": "^12.1.5",
46
+ "react-dom": "^16.8.0",
47
+ "typescript": "~5.4.2",
48
+ "wait-for-expect": "^1.2.0"
49
+ },
50
+ "techstack": {
51
+ "@atlassian/frontend": {
52
+ "import-structure": ["atlassian-conventions"],
53
+ "circular-dependencies": ["file-and-folder-level"]
54
+ },
55
+ "@repo/internal": {
56
+ "dom-events": "use-bind-event-listener",
57
+ "analytics": ["analytics-next"],
58
+ "design-tokens": ["color"],
59
+ "theming": ["react-context"],
60
+ "ui-components": ["lite-mode"],
61
+ "deprecation": "no-deprecated-imports",
62
+ "styling": ["emotion", "emotion"],
63
+ "imports": ["import-no-extraneous-disable-for-examples-and-docs"]
64
+ }
65
+ },
66
+ "typesVersions": {
67
+ ">=4.5 <4.9": {
68
+ "*": ["dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts"]
69
+ }
70
+ },
71
+ "af:exports": {
72
+ ".": "./src/index.ts"
73
+ }
74
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-plugin-emoji"
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
@@ -30,24 +31,21 @@ import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
30
31
 
31
32
  // @public (undocumented)
32
33
  export type EmojiPlugin = NextEditorPlugin<
33
- 'emoji',
34
- {
35
- pluginConfiguration: EmojiPluginOptions | undefined;
36
- dependencies: [OptionalPlugin<AnalyticsPlugin>, TypeAheadPlugin];
37
- sharedState: EmojiPluginSharedState | undefined;
38
- commands: {
39
- insertEmoji: (
40
- emojiId: EmojiId,
41
- inputMethod?:
42
- | INPUT_METHOD.ASCII
43
- | INPUT_METHOD.PICKER
44
- | INPUT_METHOD.TYPEAHEAD,
45
- ) => EditorCommand;
46
- };
47
- actions: {
48
- openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
49
- };
50
- }
34
+ 'emoji',
35
+ {
36
+ pluginConfiguration: EmojiPluginOptions | undefined;
37
+ dependencies: [OptionalPlugin<AnalyticsPlugin>, TypeAheadPlugin];
38
+ sharedState: EmojiPluginSharedState | undefined;
39
+ commands: {
40
+ insertEmoji: (
41
+ emojiId: EmojiId,
42
+ inputMethod?: INPUT_METHOD.ASCII | INPUT_METHOD.PICKER | INPUT_METHOD.TYPEAHEAD,
43
+ ) => EditorCommand;
44
+ };
45
+ actions: {
46
+ openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
47
+ };
48
+ }
51
49
  >;
52
50
 
53
51
  // @public
@@ -55,20 +53,20 @@ export const emojiPlugin: EmojiPlugin;
55
53
 
56
54
  // @public (undocumented)
57
55
  export interface EmojiPluginOptions {
58
- // (undocumented)
59
- headless?: boolean;
56
+ // (undocumented)
57
+ headless?: boolean;
60
58
  }
61
59
 
62
60
  // @public (undocumented)
63
61
  type EmojiPluginSharedState = EmojiPluginState & {
64
- typeAheadHandler: TypeAheadHandler;
62
+ typeAheadHandler: TypeAheadHandler;
65
63
  };
66
64
 
67
65
  // @public (undocumented)
68
66
  export type EmojiPluginState = {
69
- emojiProvider?: EmojiProvider;
70
- emojiResourceConfig?: EmojiResourceConfig;
71
- asciiMap?: Map<string, EmojiDescription>;
67
+ emojiProvider?: EmojiProvider;
68
+ emojiResourceConfig?: EmojiResourceConfig;
69
+ asciiMap?: Map<string, EmojiDescription>;
72
70
  };
73
71
 
74
72
  // (No @packageDocumentation comment for this package)
@@ -82,7 +80,7 @@ export type EmojiPluginState = {
82
80
 
83
81
  ```json
84
82
  {
85
- "react": "^16.8.0"
83
+ "react": "^16.8.0"
86
84
  }
87
85
  ```
88
86