@atlaskit/editor-plugin-type-ahead 1.2.3 → 1.2.5
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 +8 -8
- package/CHANGELOG.md +207 -192
- package/LICENSE.md +6 -8
- package/dist/cjs/ui/InputQuery.js +4 -4
- package/dist/cjs/ui/TypeAheadListItem.js +8 -6
- package/dist/cjs/ui/TypeAheadPopup.js +3 -1
- package/dist/es2019/ui/InputQuery.js +4 -4
- package/dist/es2019/ui/TypeAheadListItem.js +26 -24
- package/dist/es2019/ui/TypeAheadPopup.js +3 -1
- package/dist/esm/ui/InputQuery.js +4 -4
- package/dist/esm/ui/TypeAheadListItem.js +8 -6
- package/dist/esm/ui/TypeAheadPopup.js +3 -1
- package/dist/types/pm-plugins/decorations.d.ts +1 -1
- package/dist/types/ui/ContentComponent.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/decorations.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentComponent.d.ts +1 -1
- package/package.json +5 -7
- package/report.api.md +51 -52
package/.eslintrc.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
rules: {
|
|
3
|
+
'@typescript-eslint/no-duplicate-imports': 'error',
|
|
4
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
5
|
+
'@atlaskit/design-system/ensure-design-token-usage/preview': [
|
|
6
|
+
'error',
|
|
7
|
+
{ domains: ['spacing'], shouldEnforceFallbacks: false },
|
|
8
|
+
],
|
|
9
|
+
},
|
|
10
10
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,502 +1,517 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 1.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.2.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
14
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
15
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.2.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
6
21
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
22
|
+
- [#99848](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99848)
|
|
23
|
+
[`add0947043d4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/add0947043d4) -
|
|
24
|
+
ECA11Y-18: Remove inappropriate aria-labels from Typeahead dropdown
|
|
10
25
|
|
|
11
26
|
## 1.2.2
|
|
12
27
|
|
|
13
28
|
### Patch Changes
|
|
14
29
|
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
30
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
|
31
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
|
32
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
|
18
33
|
|
|
19
34
|
## 1.2.1
|
|
20
35
|
|
|
21
36
|
### Patch Changes
|
|
22
37
|
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
-
|
|
38
|
+
- [#99635](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99635)
|
|
39
|
+
[`647b9c0a5da8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/647b9c0a5da8) -
|
|
40
|
+
[ED-23193] Fix typeahead analytics that were not firing to now use EditorAPI to fire events.
|
|
41
|
+
- Updated dependencies
|
|
27
42
|
|
|
28
43
|
## 1.2.0
|
|
29
44
|
|
|
30
45
|
### Minor Changes
|
|
31
46
|
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
47
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
48
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
49
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
35
50
|
|
|
36
51
|
### Patch Changes
|
|
37
52
|
|
|
38
|
-
-
|
|
53
|
+
- Updated dependencies
|
|
39
54
|
|
|
40
55
|
## 1.1.9
|
|
41
56
|
|
|
42
57
|
### Patch Changes
|
|
43
58
|
|
|
44
|
-
-
|
|
59
|
+
- Updated dependencies
|
|
45
60
|
|
|
46
61
|
## 1.1.8
|
|
47
62
|
|
|
48
63
|
### Patch Changes
|
|
49
64
|
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
65
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
66
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
67
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
53
68
|
|
|
54
69
|
## 1.1.7
|
|
55
70
|
|
|
56
71
|
### Patch Changes
|
|
57
72
|
|
|
58
|
-
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
-
|
|
73
|
+
- [#98137](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98137)
|
|
74
|
+
[`b1ddc8df2070`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b1ddc8df2070) -
|
|
75
|
+
[ED-23195] Refactor React components to use useRef inside functional components
|
|
76
|
+
- Updated dependencies
|
|
62
77
|
|
|
63
78
|
## 1.1.6
|
|
64
79
|
|
|
65
80
|
### Patch Changes
|
|
66
81
|
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
82
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
83
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
84
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
85
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
86
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
72
87
|
|
|
73
88
|
## 1.1.5
|
|
74
89
|
|
|
75
90
|
### Patch Changes
|
|
76
91
|
|
|
77
|
-
-
|
|
92
|
+
- Updated dependencies
|
|
78
93
|
|
|
79
94
|
## 1.1.4
|
|
80
95
|
|
|
81
96
|
### Patch Changes
|
|
82
97
|
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
|
|
98
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
99
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
100
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
86
101
|
|
|
87
102
|
## 1.1.3
|
|
88
103
|
|
|
89
104
|
### Patch Changes
|
|
90
105
|
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
|
|
106
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
107
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
108
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
94
109
|
|
|
95
110
|
## 1.1.2
|
|
96
111
|
|
|
97
112
|
### Patch Changes
|
|
98
113
|
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
|
|
114
|
+
- [#94717](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94717)
|
|
115
|
+
[`40f38eb0a512`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40f38eb0a512) -
|
|
116
|
+
Cleaning up feature flag for inserting nodes in ordered list.
|
|
102
117
|
|
|
103
|
-
|
|
118
|
+
Fix bugs for incorrect ordered list order with action & improve selection behaviour on insert
|
|
104
119
|
|
|
105
|
-
-
|
|
120
|
+
- Updated dependencies
|
|
106
121
|
|
|
107
122
|
## 1.1.1
|
|
108
123
|
|
|
109
124
|
### Patch Changes
|
|
110
125
|
|
|
111
|
-
-
|
|
112
|
-
|
|
113
|
-
|
|
126
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
127
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
128
|
+
Updating adf-schema version to 35.10.0
|
|
114
129
|
|
|
115
130
|
## 1.1.0
|
|
116
131
|
|
|
117
132
|
### Minor Changes
|
|
118
133
|
|
|
119
|
-
-
|
|
120
|
-
|
|
121
|
-
|
|
134
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
135
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
136
|
+
bumped editor-prosemirror version to 4.0.0
|
|
122
137
|
|
|
123
138
|
### Patch Changes
|
|
124
139
|
|
|
125
|
-
-
|
|
140
|
+
- Updated dependencies
|
|
126
141
|
|
|
127
142
|
## 1.0.11
|
|
128
143
|
|
|
129
144
|
### Patch Changes
|
|
130
145
|
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
146
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
147
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
148
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
134
149
|
|
|
135
150
|
## 1.0.10
|
|
136
151
|
|
|
137
152
|
### Patch Changes
|
|
138
153
|
|
|
139
|
-
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
-
|
|
154
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
155
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
156
|
+
Bump ADF-schema package to version 35.0.0
|
|
157
|
+
- Updated dependencies
|
|
143
158
|
|
|
144
159
|
## 1.0.9
|
|
145
160
|
|
|
146
161
|
### Patch Changes
|
|
147
162
|
|
|
148
|
-
-
|
|
149
|
-
|
|
150
|
-
|
|
163
|
+
- [#88038](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88038)
|
|
164
|
+
[`19ac4de34153`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/19ac4de34153) -
|
|
165
|
+
update 'w3c-keyname' dependency to 2.1.8
|
|
151
166
|
|
|
152
167
|
## 1.0.8
|
|
153
168
|
|
|
154
169
|
### Patch Changes
|
|
155
170
|
|
|
156
|
-
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
171
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
172
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
173
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
174
|
+
35.7.0 to 35.8.0
|
|
160
175
|
|
|
161
176
|
## 1.0.7
|
|
162
177
|
|
|
163
178
|
### Patch Changes
|
|
164
179
|
|
|
165
|
-
-
|
|
166
|
-
|
|
167
|
-
|
|
180
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
181
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
182
|
+
Bump adf-schema to 35.7.0
|
|
168
183
|
|
|
169
184
|
## 1.0.6
|
|
170
185
|
|
|
171
186
|
### Patch Changes
|
|
172
187
|
|
|
173
|
-
-
|
|
174
|
-
|
|
175
|
-
|
|
188
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
189
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
190
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
176
191
|
|
|
177
192
|
## 1.0.5
|
|
178
193
|
|
|
179
194
|
### Patch Changes
|
|
180
195
|
|
|
181
|
-
-
|
|
182
|
-
|
|
183
|
-
|
|
196
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
197
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
198
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
184
199
|
|
|
185
200
|
## 1.0.4
|
|
186
201
|
|
|
187
202
|
### Patch Changes
|
|
188
203
|
|
|
189
|
-
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
-
|
|
204
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
205
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
206
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
207
|
+
- Updated dependencies
|
|
193
208
|
|
|
194
209
|
## 1.0.3
|
|
195
210
|
|
|
196
211
|
### Patch Changes
|
|
197
212
|
|
|
198
|
-
-
|
|
199
|
-
|
|
200
|
-
|
|
213
|
+
- [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
|
|
214
|
+
[`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
|
|
215
|
+
MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
|
|
201
216
|
|
|
202
|
-
|
|
217
|
+
## WHY?
|
|
203
218
|
|
|
204
|
-
|
|
219
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
|
205
220
|
|
|
206
|
-
|
|
221
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
|
207
222
|
|
|
208
|
-
|
|
223
|
+
## WHAT and HOW?
|
|
209
224
|
|
|
210
|
-
|
|
211
|
-
|
|
225
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
226
|
+
`@atlaskit/editor-common/types`:
|
|
212
227
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
228
|
+
- InputRuleWrapper
|
|
229
|
+
- InputRuleHandler
|
|
230
|
+
- OnHandlerApply
|
|
231
|
+
- createRule
|
|
217
232
|
|
|
218
|
-
|
|
219
|
-
|
|
233
|
+
These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
|
|
234
|
+
need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
|
|
220
235
|
|
|
221
|
-
|
|
236
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
222
237
|
|
|
223
|
-
|
|
224
|
-
|
|
238
|
+
- createPlugin
|
|
239
|
+
- createInputRulePlugin
|
|
225
240
|
|
|
226
|
-
-
|
|
241
|
+
- Updated dependencies
|
|
227
242
|
|
|
228
243
|
## 1.0.2
|
|
229
244
|
|
|
230
245
|
### Patch Changes
|
|
231
246
|
|
|
232
|
-
-
|
|
233
|
-
|
|
234
|
-
|
|
247
|
+
- [#73177](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73177)
|
|
248
|
+
[`22452599ed8f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/22452599ed8f) -
|
|
249
|
+
Move styling for certain packages to tokens.
|
|
235
250
|
|
|
236
251
|
## 1.0.1
|
|
237
252
|
|
|
238
253
|
### Patch Changes
|
|
239
254
|
|
|
240
|
-
-
|
|
255
|
+
- Updated dependencies
|
|
241
256
|
|
|
242
257
|
## 1.0.0
|
|
243
258
|
|
|
244
259
|
### Major Changes
|
|
245
260
|
|
|
246
|
-
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
261
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
262
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
263
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
264
|
+
is to address an issue with Jira plugin consumption.
|
|
250
265
|
|
|
251
266
|
### Patch Changes
|
|
252
267
|
|
|
253
|
-
-
|
|
268
|
+
- Updated dependencies
|
|
254
269
|
|
|
255
270
|
## 0.9.6
|
|
256
271
|
|
|
257
272
|
### Patch Changes
|
|
258
273
|
|
|
259
|
-
-
|
|
260
|
-
|
|
261
|
-
|
|
274
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
275
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
276
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
262
277
|
|
|
263
278
|
## 0.9.5
|
|
264
279
|
|
|
265
280
|
### Patch Changes
|
|
266
281
|
|
|
267
|
-
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
-
|
|
282
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
|
|
283
|
+
[`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
|
|
284
|
+
Move all plugin translations to editor-common
|
|
285
|
+
- Updated dependencies
|
|
271
286
|
|
|
272
287
|
## 0.9.4
|
|
273
288
|
|
|
274
289
|
### Patch Changes
|
|
275
290
|
|
|
276
|
-
-
|
|
277
|
-
|
|
278
|
-
|
|
291
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
292
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
293
|
+
Updating adf-schema version to 35.5.1
|
|
279
294
|
|
|
280
295
|
## 0.9.3
|
|
281
296
|
|
|
282
297
|
### Patch Changes
|
|
283
298
|
|
|
284
|
-
-
|
|
299
|
+
- Updated dependencies
|
|
285
300
|
|
|
286
301
|
## 0.9.2
|
|
287
302
|
|
|
288
303
|
### Patch Changes
|
|
289
304
|
|
|
290
|
-
-
|
|
291
|
-
|
|
292
|
-
|
|
305
|
+
- [#67189](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67189)
|
|
306
|
+
[`93cbf53ca0e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93cbf53ca0e0) -
|
|
307
|
+
Removing instances of WithPluginState from mentions and type-ahead plugins.
|
|
293
308
|
|
|
294
309
|
## 0.9.1
|
|
295
310
|
|
|
296
311
|
### Patch Changes
|
|
297
312
|
|
|
298
|
-
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
-
|
|
313
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
314
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
315
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
316
|
+
- Updated dependencies
|
|
302
317
|
|
|
303
318
|
## 0.9.0
|
|
304
319
|
|
|
305
320
|
### Minor Changes
|
|
306
321
|
|
|
307
|
-
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
322
|
+
- [#64335](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64335)
|
|
323
|
+
[`efc8826c907f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/efc8826c907f) -
|
|
324
|
+
[ux] [ED-16509] Restart numbered list inserting nodes via QUICK INSERT, nodes including : panels,
|
|
325
|
+
expands, decisions, tables, layout, quotes, actions, dividers, headings. Changes are being guarded
|
|
326
|
+
behind feature flag platform.editor.ordered-list-inserting-nodes_bh0vo
|
|
312
327
|
|
|
313
328
|
### Patch Changes
|
|
314
329
|
|
|
315
|
-
-
|
|
330
|
+
- Updated dependencies
|
|
316
331
|
|
|
317
332
|
## 0.8.6
|
|
318
333
|
|
|
319
334
|
### Patch Changes
|
|
320
335
|
|
|
321
|
-
-
|
|
322
|
-
|
|
323
|
-
|
|
336
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
337
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
338
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
324
339
|
|
|
325
340
|
## 0.8.5
|
|
326
341
|
|
|
327
342
|
### Patch Changes
|
|
328
343
|
|
|
329
|
-
-
|
|
330
|
-
|
|
331
|
-
|
|
344
|
+
- [#61655](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61655)
|
|
345
|
+
[`6fec14da1838`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6fec14da1838) -
|
|
346
|
+
ED-21403 Fixed accessiblity issue with TypeAheadItems read by VoiceOver
|
|
332
347
|
|
|
333
348
|
## 0.8.4
|
|
334
349
|
|
|
335
350
|
### Patch Changes
|
|
336
351
|
|
|
337
|
-
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
352
|
+
- [#61465](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61465)
|
|
353
|
+
[`fc0f13b8bc95`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fc0f13b8bc95) -
|
|
354
|
+
Prefix `componentWillMount`, `componentWillUnmount` and `componentWillReceiveProps` with `UNSAFE_`
|
|
355
|
+
in the `AssistiveText` component
|
|
341
356
|
|
|
342
357
|
## 0.8.3
|
|
343
358
|
|
|
344
359
|
### Patch Changes
|
|
345
360
|
|
|
346
|
-
-
|
|
347
|
-
|
|
348
|
-
|
|
361
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
362
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
363
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
349
364
|
|
|
350
365
|
## 0.8.2
|
|
351
366
|
|
|
352
367
|
### Patch Changes
|
|
353
368
|
|
|
354
|
-
-
|
|
355
|
-
|
|
356
|
-
|
|
369
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
370
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
371
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
357
372
|
|
|
358
373
|
## 0.8.1
|
|
359
374
|
|
|
360
375
|
### Patch Changes
|
|
361
376
|
|
|
362
|
-
-
|
|
377
|
+
- Updated dependencies
|
|
363
378
|
|
|
364
379
|
## 0.8.0
|
|
365
380
|
|
|
366
381
|
### Minor Changes
|
|
367
382
|
|
|
368
|
-
-
|
|
369
|
-
|
|
370
|
-
|
|
383
|
+
- [#59258](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59258)
|
|
384
|
+
[`8776707df7cd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8776707df7cd) -
|
|
385
|
+
ECA11Y-48 Updated assistive text
|
|
371
386
|
|
|
372
387
|
## 0.7.8
|
|
373
388
|
|
|
374
389
|
### Patch Changes
|
|
375
390
|
|
|
376
|
-
-
|
|
377
|
-
|
|
378
|
-
|
|
391
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
392
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
393
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
379
394
|
|
|
380
395
|
## 0.7.7
|
|
381
396
|
|
|
382
397
|
### Patch Changes
|
|
383
398
|
|
|
384
|
-
-
|
|
385
|
-
|
|
386
|
-
|
|
399
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
400
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
401
|
+
update ADF schema
|
|
387
402
|
|
|
388
403
|
## 0.7.6
|
|
389
404
|
|
|
390
405
|
### Patch Changes
|
|
391
406
|
|
|
392
|
-
-
|
|
393
|
-
|
|
394
|
-
|
|
407
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
408
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
409
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
395
410
|
|
|
396
411
|
## 0.7.5
|
|
397
412
|
|
|
398
413
|
### Patch Changes
|
|
399
414
|
|
|
400
|
-
-
|
|
401
|
-
|
|
402
|
-
|
|
415
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
|
416
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
|
|
417
|
+
Upgrade adf-schema package to ^34.0.0
|
|
403
418
|
|
|
404
419
|
## 0.7.4
|
|
405
420
|
|
|
406
421
|
### Patch Changes
|
|
407
422
|
|
|
408
|
-
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
-
|
|
423
|
+
- [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
|
|
424
|
+
[`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
|
|
425
|
+
Upgrade ADF schema version to 33.2.3 for MBE nodes.
|
|
426
|
+
- Updated dependencies
|
|
412
427
|
|
|
413
428
|
## 0.7.3
|
|
414
429
|
|
|
415
430
|
### Patch Changes
|
|
416
431
|
|
|
417
|
-
-
|
|
418
|
-
|
|
419
|
-
|
|
432
|
+
- [#42995](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42995)
|
|
433
|
+
[`a527682dee6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a527682dee6) - add in
|
|
434
|
+
missing dependencies for imported types
|
|
420
435
|
|
|
421
436
|
## 0.7.2
|
|
422
437
|
|
|
423
438
|
### Patch Changes
|
|
424
439
|
|
|
425
|
-
-
|
|
440
|
+
- Updated dependencies
|
|
426
441
|
|
|
427
442
|
## 0.7.1
|
|
428
443
|
|
|
429
444
|
### Patch Changes
|
|
430
445
|
|
|
431
|
-
-
|
|
432
|
-
|
|
433
|
-
|
|
446
|
+
- [#41802](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41802)
|
|
447
|
+
[`d20ecc5a9db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d20ecc5a9db) - Apply
|
|
448
|
+
improved linting to type-ahead plugin.
|
|
434
449
|
|
|
435
450
|
## 0.7.0
|
|
436
451
|
|
|
437
452
|
### Minor Changes
|
|
438
453
|
|
|
439
|
-
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
454
|
+
- [#41047](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41047)
|
|
455
|
+
[`8f0b00d165f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f0b00d165f) -
|
|
456
|
+
[ED-20003] Extract TypeAhead from editor-core to its own package
|
|
457
|
+
@atlaskit/editor-plugin-type-ahead
|
|
443
458
|
|
|
444
459
|
## 0.6.0
|
|
445
460
|
|
|
446
461
|
### Minor Changes
|
|
447
462
|
|
|
448
|
-
-
|
|
449
|
-
|
|
450
|
-
|
|
463
|
+
- [#41459](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41459)
|
|
464
|
+
[`9874d0f70b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9874d0f70b0) -
|
|
465
|
+
[ED-20003] TypeAhead extraction: Replace the mobile view-subscription with proper API
|
|
451
466
|
|
|
452
467
|
## 0.5.0
|
|
453
468
|
|
|
454
469
|
### Minor Changes
|
|
455
470
|
|
|
456
|
-
-
|
|
457
|
-
|
|
458
|
-
|
|
471
|
+
- [#41143](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41143)
|
|
472
|
+
[`7d6dfe2befa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d6dfe2befa) -
|
|
473
|
+
[ED-20003] Replace TyepAhead API for Editor Plugin Injection API
|
|
459
474
|
|
|
460
475
|
## 0.4.0
|
|
461
476
|
|
|
462
477
|
### Minor Changes
|
|
463
478
|
|
|
464
|
-
-
|
|
465
|
-
|
|
466
|
-
|
|
479
|
+
- [#40955](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40955)
|
|
480
|
+
[`30dc2b1e6c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/30dc2b1e6c9) -
|
|
481
|
+
[ED-19746] Decoupling mentions plugin from Editor-core libraries
|
|
467
482
|
|
|
468
483
|
## 0.3.2
|
|
469
484
|
|
|
470
485
|
### Patch Changes
|
|
471
486
|
|
|
472
|
-
-
|
|
487
|
+
- Updated dependencies
|
|
473
488
|
|
|
474
489
|
## 0.3.1
|
|
475
490
|
|
|
476
491
|
### Patch Changes
|
|
477
492
|
|
|
478
|
-
-
|
|
493
|
+
- Updated dependencies
|
|
479
494
|
|
|
480
495
|
## 0.3.0
|
|
481
496
|
|
|
482
497
|
### Minor Changes
|
|
483
498
|
|
|
484
|
-
-
|
|
485
|
-
|
|
486
|
-
|
|
499
|
+
- [#39575](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39575)
|
|
500
|
+
[`ef0c2a89c72`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ef0c2a89c72) - Add
|
|
501
|
+
isTypeAheadOpen action to type-ahead plugin. Decouple placeholder plugin from editor-core.
|
|
487
502
|
|
|
488
503
|
## 0.2.0
|
|
489
504
|
|
|
490
505
|
### Minor Changes
|
|
491
506
|
|
|
492
|
-
-
|
|
493
|
-
|
|
494
|
-
|
|
507
|
+
- [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
|
|
508
|
+
[`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating
|
|
509
|
+
all plugins with minor version to correct issue with semver.
|
|
495
510
|
|
|
496
511
|
## 0.1.1
|
|
497
512
|
|
|
498
513
|
### Patch Changes
|
|
499
514
|
|
|
500
|
-
-
|
|
501
|
-
|
|
502
|
-
|
|
515
|
+
- [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
|
|
516
|
+
[`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
|
|
517
|
+
atlaskit docs to all existing plugins.
|
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.
|
|
@@ -365,10 +365,10 @@ var InputQuery = exports.InputQuery = /*#__PURE__*/_react.default.memo(function
|
|
|
365
365
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
366
366
|
|
|
367
367
|
/**
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
368
|
+
When we migrated to emotion from styled component, we started getting this error.
|
|
369
|
+
jsx-a11y/interactive-supports-focus
|
|
370
|
+
Task added in https://product-fabric.atlassian.net/wiki/spaces/E/pages/3182068181/Potential+improvements#Moderate-changes.
|
|
371
|
+
*/
|
|
372
372
|
return (0, _react2.jsx)(_react.Fragment, null, triggerQueryPrefix, (0, _react2.jsx)("span", {
|
|
373
373
|
css: querySpanStyles,
|
|
374
374
|
contentEditable: true,
|
|
@@ -36,10 +36,10 @@ var itemIcon = exports.itemIcon = (0, _react2.css)({
|
|
|
36
36
|
height: "var(--ds-space-500, 40px)"
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
var itemBody = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
40
|
-
var itemText = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
41
|
-
var itemAfter = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
42
|
-
var customRenderItemDivStyle = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
39
|
+
var itemBody = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n"])));
|
|
40
|
+
var itemText = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\twhite-space: initial;\n\tcolor: ", ";\n\t.item-title {\n\t\tline-height: 1.4;\n\t}\n\t.item-description {\n\t\tfont-size: ", ";\n\t\tcolor: ", ";\n\t\tmargin-top: ", ";\n\t}\n"])), "var(--ds-text, ".concat(_colors.N800, ")"), (0, _editorSharedStyles.relativeFontSizeToBase16)(12), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), "var(--ds-space-050, 4px)");
|
|
41
|
+
var itemAfter = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\tflex: 0 0 auto;\n"])));
|
|
42
|
+
var customRenderItemDivStyle = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\toverflow: hidden;\n\t&:focus {\n\t\tbox-shadow: inset 2px 0px 0px ", ";\n\t\tbackground-color: ", ";\n\t\toutline: none;\n\t}\n"])), "var(--ds-border-focused, ".concat(_colors.B400, ")"), "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")"));
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* This CSS emulates the desired behaviour with :focus-visible for firefox.
|
|
@@ -60,7 +60,7 @@ var selectionFrame = {
|
|
|
60
60
|
outline: 'none'
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
var selectedStyle = (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
63
|
+
var selectedStyle = (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n\tbackground-color: ", ";\n\tbox-shadow: inset 2px 0px 0px ", ";\n"])), "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")"), "var(--ds-border-focused, ".concat(_colors.B400, ")"));
|
|
64
64
|
var FallbackIcon = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
65
65
|
var label = _ref.label;
|
|
66
66
|
return (0, _react2.jsx)(_quickInsert.IconFallback, null);
|
|
@@ -85,7 +85,9 @@ var CustomItemComponentWrapper = /*#__PURE__*/_react.default.memo(function (prop
|
|
|
85
85
|
"aria-setsize": itemsLength,
|
|
86
86
|
"aria-posinset": itemIndex,
|
|
87
87
|
tabIndex: 0,
|
|
88
|
-
css: listItemClasses
|
|
88
|
+
css: listItemClasses
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
90
|
+
,
|
|
89
91
|
className: "ak-typeahead-item ".concat(isSelected ? 'typeahead-selected-item' : '')
|
|
90
92
|
//CSS classes added for test cases purpose
|
|
91
93
|
,
|
|
@@ -217,7 +217,9 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
217
217
|
ariaLabel: null
|
|
218
218
|
}, (0, _react2.jsx)("div", {
|
|
219
219
|
css: typeAheadContent,
|
|
220
|
-
tabIndex: 0
|
|
220
|
+
tabIndex: 0
|
|
221
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
222
|
+
,
|
|
221
223
|
className: _constants.TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
222
224
|
ref: ref
|
|
223
225
|
}, (0, _react2.jsx)(Highlight, {
|
|
@@ -357,10 +357,10 @@ export const InputQuery = /*#__PURE__*/React.memo(({
|
|
|
357
357
|
const intl = useIntl();
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
360
|
+
When we migrated to emotion from styled component, we started getting this error.
|
|
361
|
+
jsx-a11y/interactive-supports-focus
|
|
362
|
+
Task added in https://product-fabric.atlassian.net/wiki/spaces/E/pages/3182068181/Potential+improvements#Moderate-changes.
|
|
363
|
+
*/
|
|
364
364
|
return jsx(Fragment, null, triggerQueryPrefix, jsx("span", {
|
|
365
365
|
css: querySpanStyles,
|
|
366
366
|
contentEditable: true,
|
|
@@ -26,33 +26,33 @@ export const itemIcon = css({
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
const itemBody = css`
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
flex-wrap: nowrap;
|
|
32
|
+
justify-content: space-between;
|
|
33
33
|
`;
|
|
34
34
|
const itemText = css`
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
white-space: initial;
|
|
36
|
+
color: ${`var(--ds-text, ${N800})`};
|
|
37
|
+
.item-title {
|
|
38
|
+
line-height: 1.4;
|
|
39
|
+
}
|
|
40
|
+
.item-description {
|
|
41
|
+
font-size: ${relativeFontSizeToBase16(12)};
|
|
42
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
43
|
+
margin-top: ${"var(--ds-space-050, 4px)"};
|
|
44
|
+
}
|
|
45
45
|
`;
|
|
46
46
|
const itemAfter = css`
|
|
47
|
-
|
|
47
|
+
flex: 0 0 auto;
|
|
48
48
|
`;
|
|
49
49
|
const customRenderItemDivStyle = css`
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
&:focus {
|
|
52
|
+
box-shadow: inset 2px 0px 0px ${`var(--ds-border-focused, ${B400})`};
|
|
53
|
+
background-color: ${`var(--ds-background-neutral-subtle-hovered, ${N30})`};
|
|
54
|
+
outline: none;
|
|
55
|
+
}
|
|
56
56
|
`;
|
|
57
57
|
|
|
58
58
|
/**
|
|
@@ -75,8 +75,8 @@ const selectionFrame = {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
const selectedStyle = css`
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
background-color: ${`var(--ds-background-neutral-subtle-hovered, ${N30})`};
|
|
79
|
+
box-shadow: inset 2px 0px 0px ${`var(--ds-border-focused, ${B400})`};
|
|
80
80
|
`;
|
|
81
81
|
const FallbackIcon = /*#__PURE__*/React.memo(({
|
|
82
82
|
label
|
|
@@ -105,7 +105,9 @@ const CustomItemComponentWrapper = /*#__PURE__*/React.memo(props => {
|
|
|
105
105
|
"aria-setsize": itemsLength,
|
|
106
106
|
"aria-posinset": itemIndex,
|
|
107
107
|
tabIndex: 0,
|
|
108
|
-
css: listItemClasses
|
|
108
|
+
css: listItemClasses
|
|
109
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
110
|
+
,
|
|
109
111
|
className: `ak-typeahead-item ${isSelected ? 'typeahead-selected-item' : ''}`
|
|
110
112
|
//CSS classes added for test cases purpose
|
|
111
113
|
,
|
|
@@ -211,7 +211,9 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
211
211
|
ariaLabel: null
|
|
212
212
|
}, jsx("div", {
|
|
213
213
|
css: typeAheadContent,
|
|
214
|
-
tabIndex: 0
|
|
214
|
+
tabIndex: 0
|
|
215
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
216
|
+
,
|
|
215
217
|
className: TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
216
218
|
ref: ref
|
|
217
219
|
}, jsx(Highlight, {
|
|
@@ -354,10 +354,10 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
354
354
|
var intl = useIntl();
|
|
355
355
|
|
|
356
356
|
/**
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
357
|
+
When we migrated to emotion from styled component, we started getting this error.
|
|
358
|
+
jsx-a11y/interactive-supports-focus
|
|
359
|
+
Task added in https://product-fabric.atlassian.net/wiki/spaces/E/pages/3182068181/Potential+improvements#Moderate-changes.
|
|
360
|
+
*/
|
|
361
361
|
return jsx(Fragment, null, triggerQueryPrefix, jsx("span", {
|
|
362
362
|
css: querySpanStyles,
|
|
363
363
|
contentEditable: true,
|
|
@@ -27,10 +27,10 @@ export var itemIcon = css({
|
|
|
27
27
|
height: "var(--ds-space-500, 40px)"
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
var itemBody = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
31
|
-
var itemText = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n
|
|
32
|
-
var itemAfter = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n
|
|
33
|
-
var customRenderItemDivStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n
|
|
30
|
+
var itemBody = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n"])));
|
|
31
|
+
var itemText = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\twhite-space: initial;\n\tcolor: ", ";\n\t.item-title {\n\t\tline-height: 1.4;\n\t}\n\t.item-description {\n\t\tfont-size: ", ";\n\t\tcolor: ", ";\n\t\tmargin-top: ", ";\n\t}\n"])), "var(--ds-text, ".concat(N800, ")"), relativeFontSizeToBase16(12), "var(--ds-text-subtlest, ".concat(N200, ")"), "var(--ds-space-050, 4px)");
|
|
32
|
+
var itemAfter = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\tflex: 0 0 auto;\n"])));
|
|
33
|
+
var customRenderItemDivStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n\toverflow: hidden;\n\t&:focus {\n\t\tbox-shadow: inset 2px 0px 0px ", ";\n\t\tbackground-color: ", ";\n\t\toutline: none;\n\t}\n"])), "var(--ds-border-focused, ".concat(B400, ")"), "var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")"));
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* This CSS emulates the desired behaviour with :focus-visible for firefox.
|
|
@@ -51,7 +51,7 @@ var selectionFrame = {
|
|
|
51
51
|
outline: 'none'
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
var selectedStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
|
|
54
|
+
var selectedStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n\tbackground-color: ", ";\n\tbox-shadow: inset 2px 0px 0px ", ";\n"])), "var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")"), "var(--ds-border-focused, ".concat(B400, ")"));
|
|
55
55
|
var FallbackIcon = /*#__PURE__*/React.memo(function (_ref) {
|
|
56
56
|
var label = _ref.label;
|
|
57
57
|
return jsx(IconFallback, null);
|
|
@@ -76,7 +76,9 @@ var CustomItemComponentWrapper = /*#__PURE__*/React.memo(function (props) {
|
|
|
76
76
|
"aria-setsize": itemsLength,
|
|
77
77
|
"aria-posinset": itemIndex,
|
|
78
78
|
tabIndex: 0,
|
|
79
|
-
css: listItemClasses
|
|
79
|
+
css: listItemClasses
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
81
|
+
,
|
|
80
82
|
className: "ak-typeahead-item ".concat(isSelected ? 'typeahead-selected-item' : '')
|
|
81
83
|
//CSS classes added for test cases purpose
|
|
82
84
|
,
|
|
@@ -206,7 +206,9 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
206
206
|
ariaLabel: null
|
|
207
207
|
}, jsx("div", {
|
|
208
208
|
css: typeAheadContent,
|
|
209
|
-
tabIndex: 0
|
|
209
|
+
tabIndex: 0
|
|
210
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
211
|
+
,
|
|
210
212
|
className: TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
211
213
|
ref: ref
|
|
212
214
|
}, jsx(Highlight, {
|
|
@@ -8,5 +8,5 @@ type FactoryReturn = {
|
|
|
8
8
|
createDecorations: CreateTypeAheadDecorations;
|
|
9
9
|
removeDecorations: RemoveTypeAheadDecorations;
|
|
10
10
|
};
|
|
11
|
-
export declare const factoryDecorations: ({ intl, popupMountRef
|
|
11
|
+
export declare const factoryDecorations: ({ intl, popupMountRef }: FactoryProps) => FactoryReturn;
|
|
12
12
|
export {};
|
|
@@ -7,5 +7,5 @@ interface ContentComponentProps {
|
|
|
7
7
|
editorView: EditorView;
|
|
8
8
|
popupMountRef: PopupMountPointReference;
|
|
9
9
|
}
|
|
10
|
-
export declare function ContentComponent({ api, editorView, popupMountRef
|
|
10
|
+
export declare function ContentComponent({ api, editorView, popupMountRef }: ContentComponentProps): JSX.Element | null;
|
|
11
11
|
export {};
|
|
@@ -8,5 +8,5 @@ type FactoryReturn = {
|
|
|
8
8
|
createDecorations: CreateTypeAheadDecorations;
|
|
9
9
|
removeDecorations: RemoveTypeAheadDecorations;
|
|
10
10
|
};
|
|
11
|
-
export declare const factoryDecorations: ({ intl, popupMountRef
|
|
11
|
+
export declare const factoryDecorations: ({ intl, popupMountRef }: FactoryProps) => FactoryReturn;
|
|
12
12
|
export {};
|
|
@@ -7,5 +7,5 @@ interface ContentComponentProps {
|
|
|
7
7
|
editorView: EditorView;
|
|
8
8
|
popupMountRef: PopupMountPointReference;
|
|
9
9
|
}
|
|
10
|
-
export declare function ContentComponent({ api, editorView, popupMountRef
|
|
10
|
+
export declare function ContentComponent({ api, editorView, popupMountRef }: ContentComponentProps): JSX.Element | null;
|
|
11
11
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^36.
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
36
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
39
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
39
|
+
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
40
40
|
"@atlaskit/menu": "^2.3.0",
|
|
41
41
|
"@atlaskit/prosemirror-input-rules": "^3.1.0",
|
|
42
42
|
"@atlaskit/theme": "^12.8.0",
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"@af/visual-regression": "*",
|
|
59
59
|
"@atlaskit/ssr": "*",
|
|
60
60
|
"@atlaskit/visual-regression": "*",
|
|
61
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
62
61
|
"@testing-library/react": "^12.1.5",
|
|
63
62
|
"@types/react-virtualized": "^9.18.12",
|
|
64
63
|
"react-dom": "^16.8.0",
|
|
@@ -83,6 +82,5 @@
|
|
|
83
82
|
"emotion"
|
|
84
83
|
]
|
|
85
84
|
}
|
|
86
|
-
}
|
|
87
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
85
|
+
}
|
|
88
86
|
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-type-ahead"
|
|
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,59 +31,57 @@ import type { TypeAheadStats } from '@atlaskit/editor-common/types';
|
|
|
30
31
|
|
|
31
32
|
// @public (undocumented)
|
|
32
33
|
type CloseTypeAheadProps = {
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
insertCurrentQueryAsRawText: boolean;
|
|
35
|
+
attachCommand?: Command;
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
// @public (undocumented)
|
|
38
39
|
type InsertTypeAheadItemProps = {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
triggerHandler: TypeAheadHandler;
|
|
41
|
+
contentItem: TypeAheadItem;
|
|
42
|
+
query: string;
|
|
43
|
+
sourceListItem: TypeAheadItem[];
|
|
44
|
+
mode?: SelectItemMode;
|
|
44
45
|
};
|
|
45
46
|
|
|
46
47
|
// @public (undocumented)
|
|
47
48
|
type OpenTypeAheadProps = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
triggerHandler: TypeAheadHandler;
|
|
50
|
+
inputMethod: TypeAheadInputMethod;
|
|
51
|
+
query?: string;
|
|
51
52
|
};
|
|
52
53
|
|
|
53
54
|
export { TypeAheadHandler };
|
|
54
55
|
|
|
55
56
|
// @public (undocumented)
|
|
56
57
|
export type TypeAheadInputMethod =
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
| INPUT_METHOD.INSERT_MENU
|
|
59
|
+
| INPUT_METHOD.KEYBOARD
|
|
60
|
+
| INPUT_METHOD.QUICK_INSERT
|
|
61
|
+
| INPUT_METHOD.TOOLBAR;
|
|
61
62
|
|
|
62
63
|
// @public
|
|
63
64
|
export type TypeAheadPlugin = NextEditorPlugin<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
};
|
|
85
|
-
}
|
|
65
|
+
'typeAhead',
|
|
66
|
+
{
|
|
67
|
+
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
68
|
+
dependencies: [OptionalPlugin<AnalyticsPlugin>];
|
|
69
|
+
sharedState: {
|
|
70
|
+
query: string;
|
|
71
|
+
isOpen: boolean;
|
|
72
|
+
isAllowed: boolean;
|
|
73
|
+
currentHandler?: TypeAheadHandler;
|
|
74
|
+
};
|
|
75
|
+
actions: {
|
|
76
|
+
isOpen: (editorState: EditorState) => boolean;
|
|
77
|
+
isAllowed: (editorState: EditorState) => boolean;
|
|
78
|
+
insert: (props: InsertTypeAheadItemProps) => boolean;
|
|
79
|
+
findHandlerByTrigger: (trigger: string) => TypeAheadHandler | null;
|
|
80
|
+
open: (props: OpenTypeAheadProps) => boolean;
|
|
81
|
+
close: (props: CloseTypeAheadProps) => boolean;
|
|
82
|
+
openAtTransaction: (props: OpenTypeAheadProps) => (tr: Transaction) => boolean;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
86
85
|
>;
|
|
87
86
|
|
|
88
87
|
// @public
|
|
@@ -90,26 +89,26 @@ export const typeAheadPlugin: TypeAheadPlugin;
|
|
|
90
89
|
|
|
91
90
|
// @public (undocumented)
|
|
92
91
|
export type TypeAheadPluginOptions = {
|
|
93
|
-
|
|
92
|
+
isMobile?: boolean;
|
|
94
93
|
};
|
|
95
94
|
|
|
96
95
|
// @public (undocumented)
|
|
97
96
|
export type TypeAheadPluginState = {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
97
|
+
decorationSet: DecorationSet;
|
|
98
|
+
decorationElement: HTMLElement | null;
|
|
99
|
+
typeAheadHandlers: Array<TypeAheadHandler>;
|
|
100
|
+
query: string;
|
|
101
|
+
items: Array<TypeAheadItem>;
|
|
102
|
+
triggerHandler?: TypeAheadHandler;
|
|
103
|
+
selectedIndex: number;
|
|
104
|
+
stats: TypeAheadStatsSerializable | null;
|
|
105
|
+
inputMethod: TypeAheadInputMethod | null;
|
|
107
106
|
};
|
|
108
107
|
|
|
109
108
|
// @public (undocumented)
|
|
110
109
|
interface TypeAheadStatsSerializable extends TypeAheadStats {
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
// (undocumented)
|
|
111
|
+
serialize: () => TypeAheadStats;
|
|
113
112
|
}
|
|
114
113
|
|
|
115
114
|
// (No @packageDocumentation comment for this package)
|
|
@@ -123,9 +122,9 @@ interface TypeAheadStatsSerializable extends TypeAheadStats {
|
|
|
123
122
|
|
|
124
123
|
```json
|
|
125
124
|
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
"react": "^16.8.0",
|
|
126
|
+
"react-dom": "^16.8.0",
|
|
127
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
129
128
|
}
|
|
130
129
|
```
|
|
131
130
|
|