@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 +12 -12
- package/CHANGELOG.md +191 -175
- package/LICENSE.md +6 -8
- package/dist/cjs/nodeviews/emoji.js +9 -5
- package/dist/cjs/plugin.js +2 -1
- package/dist/cjs/ui/Emoji/index.js +1 -1
- package/dist/es2019/nodeviews/emoji.js +9 -5
- package/dist/es2019/plugin.js +20 -17
- package/dist/es2019/ui/Emoji/index.js +2 -2
- package/dist/esm/nodeviews/emoji.js +9 -5
- package/dist/esm/plugin.js +2 -1
- package/dist/esm/ui/Emoji/index.js +1 -1
- package/dist/types/types.d.ts +2 -1
- package/dist/types-ts4.5/types.d.ts +2 -1
- package/package.json +73 -95
- package/report.api.md +24 -26
package/.eslintrc.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
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
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
-
|
|
46
|
+
- Updated dependencies
|
|
31
47
|
|
|
32
48
|
## 1.2.7
|
|
33
49
|
|
|
34
50
|
### Patch Changes
|
|
35
51
|
|
|
36
|
-
-
|
|
52
|
+
- Updated dependencies
|
|
37
53
|
|
|
38
54
|
## 1.2.6
|
|
39
55
|
|
|
40
56
|
### Patch Changes
|
|
41
57
|
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
-
|
|
76
|
+
- Updated dependencies
|
|
61
77
|
|
|
62
78
|
## 1.2.3
|
|
63
79
|
|
|
64
80
|
### Patch Changes
|
|
65
81
|
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
-
|
|
112
|
+
- Updated dependencies
|
|
97
113
|
|
|
98
114
|
## 1.1.13
|
|
99
115
|
|
|
100
116
|
### Patch Changes
|
|
101
117
|
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
-
|
|
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
|
-
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
-
|
|
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
|
-
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
|
|
181
|
+
## WHY?
|
|
166
182
|
|
|
167
|
-
|
|
183
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
|
168
184
|
|
|
169
|
-
|
|
185
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
|
170
186
|
|
|
171
|
-
|
|
187
|
+
## WHAT and HOW?
|
|
172
188
|
|
|
173
|
-
|
|
174
|
-
|
|
189
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
190
|
+
`@atlaskit/editor-common/types`:
|
|
175
191
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
192
|
+
- InputRuleWrapper
|
|
193
|
+
- InputRuleHandler
|
|
194
|
+
- OnHandlerApply
|
|
195
|
+
- createRule
|
|
180
196
|
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
|
|
200
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
185
201
|
|
|
186
|
-
|
|
187
|
-
|
|
202
|
+
- createPlugin
|
|
203
|
+
- createInputRulePlugin
|
|
188
204
|
|
|
189
|
-
-
|
|
205
|
+
- Updated dependencies
|
|
190
206
|
|
|
191
207
|
## 1.1.5
|
|
192
208
|
|
|
193
209
|
### Patch Changes
|
|
194
210
|
|
|
195
|
-
-
|
|
211
|
+
- Updated dependencies
|
|
196
212
|
|
|
197
213
|
## 1.1.4
|
|
198
214
|
|
|
199
215
|
### Patch Changes
|
|
200
216
|
|
|
201
|
-
-
|
|
217
|
+
- Updated dependencies
|
|
202
218
|
|
|
203
219
|
## 1.1.3
|
|
204
220
|
|
|
205
221
|
### Patch Changes
|
|
206
222
|
|
|
207
|
-
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
-
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
-
|
|
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
|
-
-
|
|
225
|
-
|
|
226
|
-
|
|
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
|
-
-
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
252
|
+
Now when using the editor API with the universal preset
|
|
237
253
|
|
|
238
254
|
### Patch Changes
|
|
239
255
|
|
|
240
|
-
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
-
|
|
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
|
-
-
|
|
265
|
+
- Updated dependencies
|
|
250
266
|
|
|
251
267
|
## 1.0.5
|
|
252
268
|
|
|
253
269
|
### Patch Changes
|
|
254
270
|
|
|
255
|
-
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
-
-
|
|
264
|
-
|
|
265
|
-
|
|
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
|
-
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
-
|
|
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
|
-
-
|
|
296
|
+
- Updated dependencies
|
|
281
297
|
|
|
282
298
|
## 1.0.1
|
|
283
299
|
|
|
284
300
|
### Patch Changes
|
|
285
301
|
|
|
286
|
-
-
|
|
287
|
-
|
|
288
|
-
|
|
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
|
-
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
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
|
-
-
|
|
305
|
-
|
|
306
|
-
|
|
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
|
-
-
|
|
313
|
-
|
|
314
|
-
|
|
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
|
-
-
|
|
336
|
+
- Updated dependencies
|
|
321
337
|
|
|
322
338
|
## 0.4.9
|
|
323
339
|
|
|
324
340
|
### Patch Changes
|
|
325
341
|
|
|
326
|
-
-
|
|
342
|
+
- Updated dependencies
|
|
327
343
|
|
|
328
344
|
## 0.4.8
|
|
329
345
|
|
|
330
346
|
### Patch Changes
|
|
331
347
|
|
|
332
|
-
-
|
|
333
|
-
|
|
334
|
-
|
|
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
|
-
-
|
|
341
|
-
|
|
342
|
-
|
|
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
|
-
-
|
|
349
|
-
|
|
350
|
-
|
|
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
|
-
-
|
|
357
|
-
|
|
358
|
-
|
|
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
|
-
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
-
|
|
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
|
-
-
|
|
389
|
+
- Updated dependencies
|
|
374
390
|
|
|
375
391
|
## 0.4.2
|
|
376
392
|
|
|
377
393
|
### Patch Changes
|
|
378
394
|
|
|
379
|
-
-
|
|
395
|
+
- Updated dependencies
|
|
380
396
|
|
|
381
397
|
## 0.4.1
|
|
382
398
|
|
|
383
399
|
### Patch Changes
|
|
384
400
|
|
|
385
|
-
-
|
|
401
|
+
- Updated dependencies
|
|
386
402
|
|
|
387
403
|
## 0.4.0
|
|
388
404
|
|
|
389
405
|
### Minor Changes
|
|
390
406
|
|
|
391
|
-
-
|
|
392
|
-
|
|
393
|
-
|
|
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
|
-
-
|
|
413
|
+
- Updated dependencies
|
|
398
414
|
|
|
399
415
|
## 0.3.6
|
|
400
416
|
|
|
401
417
|
### Patch Changes
|
|
402
418
|
|
|
403
|
-
-
|
|
419
|
+
- Updated dependencies
|
|
404
420
|
|
|
405
421
|
## 0.3.5
|
|
406
422
|
|
|
407
423
|
### Patch Changes
|
|
408
424
|
|
|
409
|
-
-
|
|
410
|
-
|
|
411
|
-
|
|
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
|
-
-
|
|
433
|
+
- Updated dependencies
|
|
418
434
|
|
|
419
435
|
## 0.3.3
|
|
420
436
|
|
|
421
437
|
### Patch Changes
|
|
422
438
|
|
|
423
|
-
-
|
|
439
|
+
- Updated dependencies
|
|
424
440
|
|
|
425
441
|
## 0.3.2
|
|
426
442
|
|
|
427
443
|
### Patch Changes
|
|
428
444
|
|
|
429
|
-
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
-
|
|
433
|
-
|
|
434
|
-
-
|
|
435
|
-
|
|
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
|
-
-
|
|
457
|
+
- Updated dependencies
|
|
442
458
|
|
|
443
459
|
## 0.3.0
|
|
444
460
|
|
|
445
461
|
### Minor Changes
|
|
446
462
|
|
|
447
|
-
-
|
|
448
|
-
|
|
449
|
-
|
|
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
|
-
-
|
|
469
|
+
- Updated dependencies
|
|
454
470
|
|
|
455
471
|
## 0.2.0
|
|
456
472
|
|
|
457
473
|
### Minor Changes
|
|
458
474
|
|
|
459
|
-
-
|
|
460
|
-
|
|
461
|
-
|
|
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
|
-
-
|
|
468
|
-
|
|
469
|
-
|
|
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
|
-
-
|
|
476
|
-
|
|
477
|
-
|
|
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
|
-
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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,
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -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
|
|
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
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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 {
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -214,23 +214,26 @@ export const emojiPlugin = ({
|
|
|
214
214
|
pluginsOptions: {
|
|
215
215
|
quickInsert: ({
|
|
216
216
|
formatMessage
|
|
217
|
-
}) =>
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
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
|
-
|
|
7
|
-
|
|
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
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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,
|
package/dist/esm/plugin.js
CHANGED
|
@@ -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
|
|
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
|
package/dist/types/types.d.ts
CHANGED
|
@@ -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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
59
|
-
|
|
56
|
+
// (undocumented)
|
|
57
|
+
headless?: boolean;
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
// @public (undocumented)
|
|
63
61
|
type EmojiPluginSharedState = EmojiPluginState & {
|
|
64
|
-
|
|
62
|
+
typeAheadHandler: TypeAheadHandler;
|
|
65
63
|
};
|
|
66
64
|
|
|
67
65
|
// @public (undocumented)
|
|
68
66
|
export type EmojiPluginState = {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
83
|
+
"react": "^16.8.0"
|
|
86
84
|
}
|
|
87
85
|
```
|
|
88
86
|
|