@atlaskit/editor-plugin-type-ahead 1.2.4 → 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 +202 -196
- 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 +4 -6
- 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,511 +1,517 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 1.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 1.2.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
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
|
|
11
17
|
|
|
12
18
|
## 1.2.3
|
|
13
19
|
|
|
14
20
|
### Patch Changes
|
|
15
21
|
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
|
19
25
|
|
|
20
26
|
## 1.2.2
|
|
21
27
|
|
|
22
28
|
### Patch Changes
|
|
23
29
|
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
|
27
33
|
|
|
28
34
|
## 1.2.1
|
|
29
35
|
|
|
30
36
|
### Patch Changes
|
|
31
37
|
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
-
|
|
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
|
|
36
42
|
|
|
37
43
|
## 1.2.0
|
|
38
44
|
|
|
39
45
|
### Minor Changes
|
|
40
46
|
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
|
44
50
|
|
|
45
51
|
### Patch Changes
|
|
46
52
|
|
|
47
|
-
-
|
|
53
|
+
- Updated dependencies
|
|
48
54
|
|
|
49
55
|
## 1.1.9
|
|
50
56
|
|
|
51
57
|
### Patch Changes
|
|
52
58
|
|
|
53
|
-
-
|
|
59
|
+
- Updated dependencies
|
|
54
60
|
|
|
55
61
|
## 1.1.8
|
|
56
62
|
|
|
57
63
|
### Patch Changes
|
|
58
64
|
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
|
62
68
|
|
|
63
69
|
## 1.1.7
|
|
64
70
|
|
|
65
71
|
### Patch Changes
|
|
66
72
|
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
-
|
|
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
|
|
71
77
|
|
|
72
78
|
## 1.1.6
|
|
73
79
|
|
|
74
80
|
### Patch Changes
|
|
75
81
|
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
|
81
87
|
|
|
82
88
|
## 1.1.5
|
|
83
89
|
|
|
84
90
|
### Patch Changes
|
|
85
91
|
|
|
86
|
-
-
|
|
92
|
+
- Updated dependencies
|
|
87
93
|
|
|
88
94
|
## 1.1.4
|
|
89
95
|
|
|
90
96
|
### Patch Changes
|
|
91
97
|
|
|
92
|
-
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
|
95
101
|
|
|
96
102
|
## 1.1.3
|
|
97
103
|
|
|
98
104
|
### Patch Changes
|
|
99
105
|
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
|
103
109
|
|
|
104
110
|
## 1.1.2
|
|
105
111
|
|
|
106
112
|
### Patch Changes
|
|
107
113
|
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
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.
|
|
111
117
|
|
|
112
|
-
|
|
118
|
+
Fix bugs for incorrect ordered list order with action & improve selection behaviour on insert
|
|
113
119
|
|
|
114
|
-
-
|
|
120
|
+
- Updated dependencies
|
|
115
121
|
|
|
116
122
|
## 1.1.1
|
|
117
123
|
|
|
118
124
|
### Patch Changes
|
|
119
125
|
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
|
123
129
|
|
|
124
130
|
## 1.1.0
|
|
125
131
|
|
|
126
132
|
### Minor Changes
|
|
127
133
|
|
|
128
|
-
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
|
131
137
|
|
|
132
138
|
### Patch Changes
|
|
133
139
|
|
|
134
|
-
-
|
|
140
|
+
- Updated dependencies
|
|
135
141
|
|
|
136
142
|
## 1.0.11
|
|
137
143
|
|
|
138
144
|
### Patch Changes
|
|
139
145
|
|
|
140
|
-
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
|
143
149
|
|
|
144
150
|
## 1.0.10
|
|
145
151
|
|
|
146
152
|
### Patch Changes
|
|
147
153
|
|
|
148
|
-
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
-
|
|
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
|
|
152
158
|
|
|
153
159
|
## 1.0.9
|
|
154
160
|
|
|
155
161
|
### Patch Changes
|
|
156
162
|
|
|
157
|
-
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
|
160
166
|
|
|
161
167
|
## 1.0.8
|
|
162
168
|
|
|
163
169
|
### Patch Changes
|
|
164
170
|
|
|
165
|
-
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
|
169
175
|
|
|
170
176
|
## 1.0.7
|
|
171
177
|
|
|
172
178
|
### Patch Changes
|
|
173
179
|
|
|
174
|
-
-
|
|
175
|
-
|
|
176
|
-
|
|
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
|
|
177
183
|
|
|
178
184
|
## 1.0.6
|
|
179
185
|
|
|
180
186
|
### Patch Changes
|
|
181
187
|
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
|
|
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`
|
|
185
191
|
|
|
186
192
|
## 1.0.5
|
|
187
193
|
|
|
188
194
|
### Patch Changes
|
|
189
195
|
|
|
190
|
-
-
|
|
191
|
-
|
|
192
|
-
|
|
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
|
|
193
199
|
|
|
194
200
|
## 1.0.4
|
|
195
201
|
|
|
196
202
|
### Patch Changes
|
|
197
203
|
|
|
198
|
-
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
-
|
|
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
|
|
202
208
|
|
|
203
209
|
## 1.0.3
|
|
204
210
|
|
|
205
211
|
### Patch Changes
|
|
206
212
|
|
|
207
|
-
-
|
|
208
|
-
|
|
209
|
-
|
|
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.
|
|
210
216
|
|
|
211
|
-
|
|
217
|
+
## WHY?
|
|
212
218
|
|
|
213
|
-
|
|
219
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
|
214
220
|
|
|
215
|
-
|
|
221
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
|
216
222
|
|
|
217
|
-
|
|
223
|
+
## WHAT and HOW?
|
|
218
224
|
|
|
219
|
-
|
|
220
|
-
|
|
225
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
226
|
+
`@atlaskit/editor-common/types`:
|
|
221
227
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
228
|
+
- InputRuleWrapper
|
|
229
|
+
- InputRuleHandler
|
|
230
|
+
- OnHandlerApply
|
|
231
|
+
- createRule
|
|
226
232
|
|
|
227
|
-
|
|
228
|
-
|
|
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( ... ))`).
|
|
229
235
|
|
|
230
|
-
|
|
236
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
231
237
|
|
|
232
|
-
|
|
233
|
-
|
|
238
|
+
- createPlugin
|
|
239
|
+
- createInputRulePlugin
|
|
234
240
|
|
|
235
|
-
-
|
|
241
|
+
- Updated dependencies
|
|
236
242
|
|
|
237
243
|
## 1.0.2
|
|
238
244
|
|
|
239
245
|
### Patch Changes
|
|
240
246
|
|
|
241
|
-
-
|
|
242
|
-
|
|
243
|
-
|
|
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.
|
|
244
250
|
|
|
245
251
|
## 1.0.1
|
|
246
252
|
|
|
247
253
|
### Patch Changes
|
|
248
254
|
|
|
249
|
-
-
|
|
255
|
+
- Updated dependencies
|
|
250
256
|
|
|
251
257
|
## 1.0.0
|
|
252
258
|
|
|
253
259
|
### Major Changes
|
|
254
260
|
|
|
255
|
-
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
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.
|
|
259
265
|
|
|
260
266
|
### Patch Changes
|
|
261
267
|
|
|
262
|
-
-
|
|
268
|
+
- Updated dependencies
|
|
263
269
|
|
|
264
270
|
## 0.9.6
|
|
265
271
|
|
|
266
272
|
### Patch Changes
|
|
267
273
|
|
|
268
|
-
-
|
|
269
|
-
|
|
270
|
-
|
|
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
|
|
271
277
|
|
|
272
278
|
## 0.9.5
|
|
273
279
|
|
|
274
280
|
### Patch Changes
|
|
275
281
|
|
|
276
|
-
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
-
|
|
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
|
|
280
286
|
|
|
281
287
|
## 0.9.4
|
|
282
288
|
|
|
283
289
|
### Patch Changes
|
|
284
290
|
|
|
285
|
-
-
|
|
286
|
-
|
|
287
|
-
|
|
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
|
|
288
294
|
|
|
289
295
|
## 0.9.3
|
|
290
296
|
|
|
291
297
|
### Patch Changes
|
|
292
298
|
|
|
293
|
-
-
|
|
299
|
+
- Updated dependencies
|
|
294
300
|
|
|
295
301
|
## 0.9.2
|
|
296
302
|
|
|
297
303
|
### Patch Changes
|
|
298
304
|
|
|
299
|
-
-
|
|
300
|
-
|
|
301
|
-
|
|
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.
|
|
302
308
|
|
|
303
309
|
## 0.9.1
|
|
304
310
|
|
|
305
311
|
### Patch Changes
|
|
306
312
|
|
|
307
|
-
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
-
|
|
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
|
|
311
317
|
|
|
312
318
|
## 0.9.0
|
|
313
319
|
|
|
314
320
|
### Minor Changes
|
|
315
321
|
|
|
316
|
-
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
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
|
|
321
327
|
|
|
322
328
|
### Patch Changes
|
|
323
329
|
|
|
324
|
-
-
|
|
330
|
+
- Updated dependencies
|
|
325
331
|
|
|
326
332
|
## 0.8.6
|
|
327
333
|
|
|
328
334
|
### Patch Changes
|
|
329
335
|
|
|
330
|
-
-
|
|
331
|
-
|
|
332
|
-
|
|
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
|
|
333
339
|
|
|
334
340
|
## 0.8.5
|
|
335
341
|
|
|
336
342
|
### Patch Changes
|
|
337
343
|
|
|
338
|
-
-
|
|
339
|
-
|
|
340
|
-
|
|
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
|
|
341
347
|
|
|
342
348
|
## 0.8.4
|
|
343
349
|
|
|
344
350
|
### Patch Changes
|
|
345
351
|
|
|
346
|
-
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
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
|
|
350
356
|
|
|
351
357
|
## 0.8.3
|
|
352
358
|
|
|
353
359
|
### Patch Changes
|
|
354
360
|
|
|
355
|
-
-
|
|
356
|
-
|
|
357
|
-
|
|
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
|
|
358
364
|
|
|
359
365
|
## 0.8.2
|
|
360
366
|
|
|
361
367
|
### Patch Changes
|
|
362
368
|
|
|
363
|
-
-
|
|
364
|
-
|
|
365
|
-
|
|
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
|
|
366
372
|
|
|
367
373
|
## 0.8.1
|
|
368
374
|
|
|
369
375
|
### Patch Changes
|
|
370
376
|
|
|
371
|
-
-
|
|
377
|
+
- Updated dependencies
|
|
372
378
|
|
|
373
379
|
## 0.8.0
|
|
374
380
|
|
|
375
381
|
### Minor Changes
|
|
376
382
|
|
|
377
|
-
-
|
|
378
|
-
|
|
379
|
-
|
|
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
|
|
380
386
|
|
|
381
387
|
## 0.7.8
|
|
382
388
|
|
|
383
389
|
### Patch Changes
|
|
384
390
|
|
|
385
|
-
-
|
|
386
|
-
|
|
387
|
-
|
|
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).
|
|
388
394
|
|
|
389
395
|
## 0.7.7
|
|
390
396
|
|
|
391
397
|
### Patch Changes
|
|
392
398
|
|
|
393
|
-
-
|
|
394
|
-
|
|
395
|
-
|
|
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
|
|
396
402
|
|
|
397
403
|
## 0.7.6
|
|
398
404
|
|
|
399
405
|
### Patch Changes
|
|
400
406
|
|
|
401
|
-
-
|
|
402
|
-
|
|
403
|
-
|
|
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
|
|
404
410
|
|
|
405
411
|
## 0.7.5
|
|
406
412
|
|
|
407
413
|
### Patch Changes
|
|
408
414
|
|
|
409
|
-
-
|
|
410
|
-
|
|
411
|
-
|
|
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
|
|
412
418
|
|
|
413
419
|
## 0.7.4
|
|
414
420
|
|
|
415
421
|
### Patch Changes
|
|
416
422
|
|
|
417
|
-
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
-
|
|
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
|
|
421
427
|
|
|
422
428
|
## 0.7.3
|
|
423
429
|
|
|
424
430
|
### Patch Changes
|
|
425
431
|
|
|
426
|
-
-
|
|
427
|
-
|
|
428
|
-
|
|
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
|
|
429
435
|
|
|
430
436
|
## 0.7.2
|
|
431
437
|
|
|
432
438
|
### Patch Changes
|
|
433
439
|
|
|
434
|
-
-
|
|
440
|
+
- Updated dependencies
|
|
435
441
|
|
|
436
442
|
## 0.7.1
|
|
437
443
|
|
|
438
444
|
### Patch Changes
|
|
439
445
|
|
|
440
|
-
-
|
|
441
|
-
|
|
442
|
-
|
|
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.
|
|
443
449
|
|
|
444
450
|
## 0.7.0
|
|
445
451
|
|
|
446
452
|
### Minor Changes
|
|
447
453
|
|
|
448
|
-
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
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
|
|
452
458
|
|
|
453
459
|
## 0.6.0
|
|
454
460
|
|
|
455
461
|
### Minor Changes
|
|
456
462
|
|
|
457
|
-
-
|
|
458
|
-
|
|
459
|
-
|
|
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
|
|
460
466
|
|
|
461
467
|
## 0.5.0
|
|
462
468
|
|
|
463
469
|
### Minor Changes
|
|
464
470
|
|
|
465
|
-
-
|
|
466
|
-
|
|
467
|
-
|
|
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
|
|
468
474
|
|
|
469
475
|
## 0.4.0
|
|
470
476
|
|
|
471
477
|
### Minor Changes
|
|
472
478
|
|
|
473
|
-
-
|
|
474
|
-
|
|
475
|
-
|
|
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
|
|
476
482
|
|
|
477
483
|
## 0.3.2
|
|
478
484
|
|
|
479
485
|
### Patch Changes
|
|
480
486
|
|
|
481
|
-
-
|
|
487
|
+
- Updated dependencies
|
|
482
488
|
|
|
483
489
|
## 0.3.1
|
|
484
490
|
|
|
485
491
|
### Patch Changes
|
|
486
492
|
|
|
487
|
-
-
|
|
493
|
+
- Updated dependencies
|
|
488
494
|
|
|
489
495
|
## 0.3.0
|
|
490
496
|
|
|
491
497
|
### Minor Changes
|
|
492
498
|
|
|
493
|
-
-
|
|
494
|
-
|
|
495
|
-
|
|
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.
|
|
496
502
|
|
|
497
503
|
## 0.2.0
|
|
498
504
|
|
|
499
505
|
### Minor Changes
|
|
500
506
|
|
|
501
|
-
-
|
|
502
|
-
|
|
503
|
-
|
|
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.
|
|
504
510
|
|
|
505
511
|
## 0.1.1
|
|
506
512
|
|
|
507
513
|
### Patch Changes
|
|
508
514
|
|
|
509
|
-
-
|
|
510
|
-
|
|
511
|
-
|
|
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",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^36.10.7",
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
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
|
|