@atlaskit/editor-plugin-hyperlink 1.7.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +3 -3
- package/CHANGELOG.md +342 -333
- package/LICENSE.md +6 -8
- package/dist/cjs/Toolbar.js +16 -32
- package/dist/cjs/commands.js +20 -19
- package/dist/cjs/plugin.js +9 -5
- package/dist/cjs/pm-plugins/toolbar-buttons.js +4 -69
- package/dist/es2019/Toolbar.js +15 -21
- package/dist/es2019/commands.js +8 -10
- package/dist/es2019/plugin.js +10 -6
- package/dist/es2019/pm-plugins/toolbar-buttons.js +3 -75
- package/dist/esm/Toolbar.js +15 -31
- package/dist/esm/commands.js +20 -19
- package/dist/esm/plugin.js +10 -6
- package/dist/esm/pm-plugins/toolbar-buttons.js +3 -68
- package/dist/types/Toolbar.d.ts +1 -5
- package/dist/types/commands.d.ts +4 -3
- package/dist/types/index.d.ts +0 -1
- package/dist/types/plugin.d.ts +2 -15
- package/dist/types/pm-plugins/toolbar-buttons.d.ts +3 -30
- package/dist/types-ts4.5/Toolbar.d.ts +1 -5
- package/dist/types-ts4.5/commands.d.ts +4 -3
- package/dist/types-ts4.5/index.d.ts +0 -1
- package/dist/types-ts4.5/plugin.d.ts +3 -15
- package/dist/types-ts4.5/pm-plugins/toolbar-buttons.d.ts +3 -30
- package/package.json +3 -4
- package/report.api.md +38 -47
package/CHANGELOG.md
CHANGED
|
@@ -1,726 +1,735 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#106543](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/106543)
|
|
8
|
+
[`2141b277161c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2141b277161c) -
|
|
9
|
+
Re-factored the plugin to directly call @atlaskit/editor-plugin-card actions, instead of savings
|
|
10
|
+
its actions via injection.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 1.7.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
6
19
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
20
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
21
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
22
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
23
|
+
- Updated dependencies
|
|
11
24
|
|
|
12
25
|
## 1.7.1
|
|
13
26
|
|
|
14
27
|
### Patch Changes
|
|
15
28
|
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
29
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
|
30
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
|
31
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
|
19
32
|
|
|
20
33
|
## 1.7.0
|
|
21
34
|
|
|
22
35
|
### Minor Changes
|
|
23
36
|
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
37
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
38
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
39
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
27
40
|
|
|
28
41
|
### Patch Changes
|
|
29
42
|
|
|
30
|
-
-
|
|
43
|
+
- Updated dependencies
|
|
31
44
|
|
|
32
45
|
## 1.6.8
|
|
33
46
|
|
|
34
47
|
### Patch Changes
|
|
35
48
|
|
|
36
|
-
-
|
|
49
|
+
- Updated dependencies
|
|
37
50
|
|
|
38
51
|
## 1.6.7
|
|
39
52
|
|
|
40
53
|
### Patch Changes
|
|
41
54
|
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
55
|
+
- [#98080](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98080)
|
|
56
|
+
[`23c03580e38c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/23c03580e38c) -
|
|
57
|
+
[ux] [ED-23247] Allow floating toolbar copy buttons in live pages view mode.
|
|
45
58
|
|
|
46
59
|
## 1.6.6
|
|
47
60
|
|
|
48
61
|
### Patch Changes
|
|
49
62
|
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
63
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
64
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
65
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
53
66
|
|
|
54
67
|
## 1.6.5
|
|
55
68
|
|
|
56
69
|
### Patch Changes
|
|
57
70
|
|
|
58
|
-
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
71
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
72
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
73
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
74
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
75
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
63
76
|
|
|
64
77
|
## 1.6.4
|
|
65
78
|
|
|
66
79
|
### Patch Changes
|
|
67
80
|
|
|
68
|
-
-
|
|
81
|
+
- Updated dependencies
|
|
69
82
|
|
|
70
83
|
## 1.6.3
|
|
71
84
|
|
|
72
85
|
### Patch Changes
|
|
73
86
|
|
|
74
|
-
-
|
|
75
|
-
|
|
76
|
-
|
|
87
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
88
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
89
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
77
90
|
|
|
78
91
|
## 1.6.2
|
|
79
92
|
|
|
80
93
|
### Patch Changes
|
|
81
94
|
|
|
82
|
-
-
|
|
83
|
-
|
|
84
|
-
|
|
95
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
96
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
97
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
85
98
|
|
|
86
99
|
## 1.6.1
|
|
87
100
|
|
|
88
101
|
### Patch Changes
|
|
89
102
|
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
103
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
104
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
105
|
+
Updating adf-schema version to 35.10.0
|
|
93
106
|
|
|
94
107
|
## 1.6.0
|
|
95
108
|
|
|
96
109
|
### Minor Changes
|
|
97
110
|
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
111
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
112
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
113
|
+
bumped editor-prosemirror version to 4.0.0
|
|
101
114
|
|
|
102
115
|
### Patch Changes
|
|
103
116
|
|
|
104
|
-
-
|
|
117
|
+
- Updated dependencies
|
|
105
118
|
|
|
106
119
|
## 1.5.2
|
|
107
120
|
|
|
108
121
|
### Patch Changes
|
|
109
122
|
|
|
110
|
-
-
|
|
111
|
-
|
|
112
|
-
|
|
123
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
124
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
125
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
113
126
|
|
|
114
127
|
## 1.5.1
|
|
115
128
|
|
|
116
129
|
### Patch Changes
|
|
117
130
|
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
-
|
|
131
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
132
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
133
|
+
Bump ADF-schema package to version 35.0.0
|
|
134
|
+
- Updated dependencies
|
|
122
135
|
|
|
123
136
|
## 1.5.0
|
|
124
137
|
|
|
125
138
|
### Minor Changes
|
|
126
139
|
|
|
127
|
-
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
140
|
+
- [#89386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89386)
|
|
141
|
+
[`567378286049`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/567378286049) -
|
|
142
|
+
Adds `addToolbarItems` action to hyperlink toolbar plugin in order to support adding addition
|
|
143
|
+
toolbar items to the end of the floating toolbar for blue links. Requires
|
|
144
|
+
platform.editor.card.inject-settings-button platform feature flag for usage.
|
|
132
145
|
|
|
133
146
|
### Patch Changes
|
|
134
147
|
|
|
135
|
-
-
|
|
148
|
+
- Updated dependencies
|
|
136
149
|
|
|
137
150
|
## 1.4.0
|
|
138
151
|
|
|
139
152
|
### Minor Changes
|
|
140
153
|
|
|
141
|
-
-
|
|
142
|
-
|
|
143
|
-
|
|
154
|
+
- [#84430](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84430)
|
|
155
|
+
[`2981b2835973`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2981b2835973) -
|
|
156
|
+
[ux] EDM-9111 Prevent linkification of links with suspicious tlds
|
|
144
157
|
|
|
145
158
|
### Patch Changes
|
|
146
159
|
|
|
147
|
-
-
|
|
160
|
+
- Updated dependencies
|
|
148
161
|
|
|
149
162
|
## 1.3.1
|
|
150
163
|
|
|
151
164
|
### Patch Changes
|
|
152
165
|
|
|
153
|
-
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
166
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
167
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
168
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
169
|
+
35.7.0 to 35.8.0
|
|
157
170
|
|
|
158
171
|
## 1.3.0
|
|
159
172
|
|
|
160
173
|
### Minor Changes
|
|
161
174
|
|
|
162
|
-
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
link
|
|
175
|
+
- [#84733](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84733)
|
|
176
|
+
[`de779b2d9543`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/de779b2d9543) -
|
|
177
|
+
Modify link-preferences to factor in CLOUD_ENV environment varaible when fetching preferences link
|
|
166
178
|
|
|
167
179
|
### Patch Changes
|
|
168
180
|
|
|
169
|
-
-
|
|
181
|
+
- Updated dependencies
|
|
170
182
|
|
|
171
183
|
## 1.2.0
|
|
172
184
|
|
|
173
185
|
### Minor Changes
|
|
174
186
|
|
|
175
|
-
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
187
|
+
- [#84054](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84054)
|
|
188
|
+
[`43605c45b445`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/43605c45b445) -
|
|
189
|
+
EDF-468 Added disableFloatingToolbar plugin option to disable showing floating toolbar when
|
|
190
|
+
hyperlink is clicked.
|
|
179
191
|
|
|
180
192
|
## 1.1.4
|
|
181
193
|
|
|
182
194
|
### Patch Changes
|
|
183
195
|
|
|
184
|
-
-
|
|
185
|
-
|
|
186
|
-
|
|
196
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
197
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
198
|
+
Bump adf-schema to 35.7.0
|
|
187
199
|
|
|
188
200
|
## 1.1.3
|
|
189
201
|
|
|
190
202
|
### Patch Changes
|
|
191
203
|
|
|
192
|
-
-
|
|
193
|
-
|
|
194
|
-
|
|
204
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
205
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
206
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
195
207
|
|
|
196
208
|
## 1.1.2
|
|
197
209
|
|
|
198
210
|
### Patch Changes
|
|
199
211
|
|
|
200
|
-
-
|
|
201
|
-
|
|
202
|
-
|
|
212
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
213
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
214
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
203
215
|
|
|
204
216
|
## 1.1.1
|
|
205
217
|
|
|
206
218
|
### Patch Changes
|
|
207
219
|
|
|
208
|
-
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
-
|
|
220
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
221
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
222
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
223
|
+
- Updated dependencies
|
|
212
224
|
|
|
213
225
|
## 1.1.0
|
|
214
226
|
|
|
215
227
|
### Minor Changes
|
|
216
228
|
|
|
217
|
-
-
|
|
218
|
-
|
|
219
|
-
|
|
229
|
+
- [#76379](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76379)
|
|
230
|
+
[`1550bb6f5bde`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1550bb6f5bde) -
|
|
231
|
+
Updating links for link-preferences to be dependent on staging environment
|
|
220
232
|
|
|
221
233
|
## 1.0.2
|
|
222
234
|
|
|
223
235
|
### Patch Changes
|
|
224
236
|
|
|
225
|
-
-
|
|
226
|
-
|
|
227
|
-
|
|
237
|
+
- [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
|
|
238
|
+
[`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
|
|
239
|
+
MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
|
|
228
240
|
|
|
229
|
-
|
|
241
|
+
## WHY?
|
|
230
242
|
|
|
231
|
-
|
|
243
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
|
232
244
|
|
|
233
|
-
|
|
245
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
|
234
246
|
|
|
235
|
-
|
|
247
|
+
## WHAT and HOW?
|
|
236
248
|
|
|
237
|
-
|
|
238
|
-
|
|
249
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
250
|
+
`@atlaskit/editor-common/types`:
|
|
239
251
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
252
|
+
- InputRuleWrapper
|
|
253
|
+
- InputRuleHandler
|
|
254
|
+
- OnHandlerApply
|
|
255
|
+
- createRule
|
|
244
256
|
|
|
245
|
-
|
|
246
|
-
|
|
257
|
+
These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
|
|
258
|
+
need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
|
|
247
259
|
|
|
248
|
-
|
|
260
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
249
261
|
|
|
250
|
-
|
|
251
|
-
|
|
262
|
+
- createPlugin
|
|
263
|
+
- createInputRulePlugin
|
|
252
264
|
|
|
253
|
-
-
|
|
265
|
+
- Updated dependencies
|
|
254
266
|
|
|
255
267
|
## 1.0.1
|
|
256
268
|
|
|
257
269
|
### Patch Changes
|
|
258
270
|
|
|
259
|
-
-
|
|
271
|
+
- Updated dependencies
|
|
260
272
|
|
|
261
273
|
## 1.0.0
|
|
262
274
|
|
|
263
275
|
### Major Changes
|
|
264
276
|
|
|
265
|
-
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
277
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
278
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
279
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
280
|
+
is to address an issue with Jira plugin consumption.
|
|
269
281
|
|
|
270
282
|
### Patch Changes
|
|
271
283
|
|
|
272
|
-
-
|
|
284
|
+
- Updated dependencies
|
|
273
285
|
|
|
274
286
|
## 0.8.3
|
|
275
287
|
|
|
276
288
|
### Patch Changes
|
|
277
289
|
|
|
278
|
-
-
|
|
279
|
-
|
|
280
|
-
|
|
290
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
291
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
292
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
281
293
|
|
|
282
294
|
## 0.8.2
|
|
283
295
|
|
|
284
296
|
### Patch Changes
|
|
285
297
|
|
|
286
|
-
-
|
|
287
|
-
|
|
288
|
-
|
|
298
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
299
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
300
|
+
Updating adf-schema version to 35.5.1
|
|
289
301
|
|
|
290
302
|
## 0.8.1
|
|
291
303
|
|
|
292
304
|
### Patch Changes
|
|
293
305
|
|
|
294
|
-
-
|
|
306
|
+
- Updated dependencies
|
|
295
307
|
|
|
296
308
|
## 0.8.0
|
|
297
309
|
|
|
298
310
|
### Minor Changes
|
|
299
311
|
|
|
300
|
-
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
312
|
+
- [#66364](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66364)
|
|
313
|
+
[`212c782cb7a6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/212c782cb7a6) -
|
|
314
|
+
No longer require `cardOptions` to be passed to the hyperlink plugin configuration, it exposes a
|
|
315
|
+
new optional way to skip analytics via the prependToolbarButtons action.
|
|
304
316
|
|
|
305
317
|
### Patch Changes
|
|
306
318
|
|
|
307
|
-
-
|
|
319
|
+
- Updated dependencies
|
|
308
320
|
|
|
309
321
|
## 0.7.0
|
|
310
322
|
|
|
311
323
|
### Minor Changes
|
|
312
324
|
|
|
313
|
-
-
|
|
314
|
-
|
|
315
|
-
|
|
325
|
+
- [#65019](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65019)
|
|
326
|
+
[`7290a6f8d435`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7290a6f8d435) -
|
|
327
|
+
Adding lpLinkPicker param to card and hyperlink plugins instead of using feature flag
|
|
316
328
|
|
|
317
329
|
### Patch Changes
|
|
318
330
|
|
|
319
|
-
-
|
|
331
|
+
- Updated dependencies
|
|
320
332
|
|
|
321
333
|
## 0.6.11
|
|
322
334
|
|
|
323
335
|
### Patch Changes
|
|
324
336
|
|
|
325
|
-
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
-
|
|
337
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
338
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
339
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
340
|
+
- Updated dependencies
|
|
329
341
|
|
|
330
342
|
## 0.6.10
|
|
331
343
|
|
|
332
344
|
### Patch Changes
|
|
333
345
|
|
|
334
|
-
-
|
|
335
|
-
|
|
336
|
-
|
|
346
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
347
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
348
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
337
349
|
|
|
338
350
|
## 0.6.9
|
|
339
351
|
|
|
340
352
|
### Patch Changes
|
|
341
353
|
|
|
342
|
-
-
|
|
343
|
-
|
|
344
|
-
|
|
354
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
355
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
356
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
345
357
|
|
|
346
358
|
## 0.6.8
|
|
347
359
|
|
|
348
360
|
### Patch Changes
|
|
349
361
|
|
|
350
|
-
-
|
|
351
|
-
|
|
352
|
-
|
|
362
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
363
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
364
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
353
365
|
|
|
354
366
|
## 0.6.7
|
|
355
367
|
|
|
356
368
|
### Patch Changes
|
|
357
369
|
|
|
358
|
-
-
|
|
370
|
+
- Updated dependencies
|
|
359
371
|
|
|
360
372
|
## 0.6.6
|
|
361
373
|
|
|
362
374
|
### Patch Changes
|
|
363
375
|
|
|
364
|
-
-
|
|
365
|
-
|
|
366
|
-
|
|
376
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
377
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
378
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
367
379
|
|
|
368
380
|
## 0.6.5
|
|
369
381
|
|
|
370
382
|
### Patch Changes
|
|
371
383
|
|
|
372
|
-
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
-
|
|
384
|
+
- [#58193](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58193)
|
|
385
|
+
[`4bf69e3255f8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4bf69e3255f8) -
|
|
386
|
+
NO-ISSUE Added the capability to override the default card type of inline when inserting links, so
|
|
387
|
+
we can have Loom links convert to embed cards
|
|
388
|
+
- Updated dependencies
|
|
377
389
|
|
|
378
390
|
## 0.6.4
|
|
379
391
|
|
|
380
392
|
### Patch Changes
|
|
381
393
|
|
|
382
|
-
-
|
|
383
|
-
|
|
384
|
-
|
|
394
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
395
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
396
|
+
update ADF schema
|
|
385
397
|
|
|
386
398
|
## 0.6.3
|
|
387
399
|
|
|
388
400
|
### Patch Changes
|
|
389
401
|
|
|
390
|
-
-
|
|
391
|
-
|
|
392
|
-
|
|
402
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
403
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
404
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
393
405
|
|
|
394
406
|
## 0.6.2
|
|
395
407
|
|
|
396
408
|
### Patch Changes
|
|
397
409
|
|
|
398
|
-
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
410
|
+
- [#42839](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42839)
|
|
411
|
+
[`7324375d4fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7324375d4fa) - [ux]
|
|
412
|
+
Cleansup feature flag `prevent-popup-overflow` so that it is permanently enabled when
|
|
413
|
+
`lp-link-picker` flag is enabled, improving the positioning of the link picker.
|
|
402
414
|
|
|
403
415
|
## 0.6.1
|
|
404
416
|
|
|
405
417
|
### Patch Changes
|
|
406
418
|
|
|
407
|
-
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
419
|
+
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
|
|
420
|
+
[`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
|
|
421
|
+
feature flags plugin optional in all plugins including:
|
|
422
|
+
|
|
423
|
+
- analytics
|
|
424
|
+
- base
|
|
425
|
+
- card
|
|
426
|
+
- code-block
|
|
427
|
+
- expand
|
|
428
|
+
- extension
|
|
429
|
+
- floating-toolbar
|
|
430
|
+
- hyperlink
|
|
431
|
+
- insert-block
|
|
432
|
+
- layout
|
|
433
|
+
- layout
|
|
434
|
+
- list
|
|
435
|
+
- media
|
|
436
|
+
- paste
|
|
437
|
+
- rule
|
|
438
|
+
- table
|
|
439
|
+
- tasks-and-decisions
|
|
440
|
+
|
|
441
|
+
We already treat it as optional in the plugins, so this is just ensuring that the plugin is not
|
|
442
|
+
mandatory to be added to the preset.
|
|
431
443
|
|
|
432
444
|
## 0.6.0
|
|
433
445
|
|
|
434
446
|
### Minor Changes
|
|
435
447
|
|
|
436
|
-
-
|
|
437
|
-
|
|
438
|
-
|
|
448
|
+
- [#43139](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43139)
|
|
449
|
+
[`633ac70ce16`](https://bitbucket.org/atlassian/atlassian-frontend/commits/633ac70ce16) - Removed
|
|
450
|
+
floatingToolbarLinkSettingsButton feature flag
|
|
439
451
|
|
|
440
452
|
## 0.5.9
|
|
441
453
|
|
|
442
454
|
### Patch Changes
|
|
443
455
|
|
|
444
|
-
-
|
|
445
|
-
|
|
446
|
-
|
|
456
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
|
457
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
|
|
458
|
+
Upgrade adf-schema package to ^34.0.0
|
|
447
459
|
|
|
448
460
|
## 0.5.8
|
|
449
461
|
|
|
450
462
|
### Patch Changes
|
|
451
463
|
|
|
452
|
-
-
|
|
464
|
+
- Updated dependencies
|
|
453
465
|
|
|
454
466
|
## 0.5.7
|
|
455
467
|
|
|
456
468
|
### Patch Changes
|
|
457
469
|
|
|
458
|
-
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
-
|
|
470
|
+
- [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
|
|
471
|
+
[`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
|
|
472
|
+
Upgrade ADF schema version to 33.2.3 for MBE nodes.
|
|
473
|
+
- Updated dependencies
|
|
462
474
|
|
|
463
475
|
## 0.5.6
|
|
464
476
|
|
|
465
477
|
### Patch Changes
|
|
466
478
|
|
|
467
|
-
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
479
|
+
- [#42848](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42848)
|
|
480
|
+
[`f2f8428f703`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2f8428f703) - Abandons
|
|
481
|
+
feature flag lp-link-picker-focus-trap as it was not successfully rolled out. Will re-introduce as
|
|
482
|
+
platform feature flag as/when necessary.
|
|
471
483
|
|
|
472
484
|
## 0.5.5
|
|
473
485
|
|
|
474
486
|
### Patch Changes
|
|
475
487
|
|
|
476
|
-
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
changes.
|
|
488
|
+
- [#42680](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42680)
|
|
489
|
+
[`1174ff1745b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1174ff1745b) - Cleans
|
|
490
|
+
up ff platform.linking-platform.editor.fix-link-insert-analytics. No expected functional changes.
|
|
480
491
|
|
|
481
492
|
## 0.5.4
|
|
482
493
|
|
|
483
494
|
### Patch Changes
|
|
484
495
|
|
|
485
|
-
-
|
|
496
|
+
- Updated dependencies
|
|
486
497
|
|
|
487
498
|
## 0.5.3
|
|
488
499
|
|
|
489
500
|
### Patch Changes
|
|
490
501
|
|
|
491
|
-
-
|
|
492
|
-
|
|
493
|
-
|
|
502
|
+
- [#39749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39749)
|
|
503
|
+
[`e6b69f455c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6b69f455c3) - Connect
|
|
504
|
+
yarn changeset to packages, upgrade adf-schema
|
|
494
505
|
|
|
495
506
|
## 0.5.2
|
|
496
507
|
|
|
497
508
|
### Patch Changes
|
|
498
509
|
|
|
499
|
-
-
|
|
510
|
+
- Updated dependencies
|
|
500
511
|
|
|
501
512
|
## 0.5.1
|
|
502
513
|
|
|
503
514
|
### Patch Changes
|
|
504
515
|
|
|
505
|
-
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
links.
|
|
516
|
+
- [#40199](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40199)
|
|
517
|
+
[`553b34b5fd4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/553b34b5fd4) - Small
|
|
518
|
+
analytics bug fixes relating to auto-linking on enter, legacy link picker, and unresolvable links.
|
|
509
519
|
|
|
510
520
|
## 0.5.0
|
|
511
521
|
|
|
512
522
|
### Minor Changes
|
|
513
523
|
|
|
514
|
-
-
|
|
515
|
-
|
|
516
|
-
|
|
524
|
+
- [#40089](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40089)
|
|
525
|
+
[`9a62c110c14`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a62c110c14) - [ux]
|
|
526
|
+
ECA11Y-65: Removed aria-pressed from the Hyperlink floating controls toolbar buttons
|
|
517
527
|
|
|
518
528
|
## 0.4.3
|
|
519
529
|
|
|
520
530
|
### Patch Changes
|
|
521
531
|
|
|
522
|
-
-
|
|
532
|
+
- Updated dependencies
|
|
523
533
|
|
|
524
534
|
## 0.4.2
|
|
525
535
|
|
|
526
536
|
### Patch Changes
|
|
527
537
|
|
|
528
|
-
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
-
|
|
532
|
-
|
|
538
|
+
- [#39481](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39481)
|
|
539
|
+
[`aeb5c9a01e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aeb5c9a01e8) - Delete
|
|
540
|
+
adf-schema from AFE and rely on npm package for adf-schema
|
|
541
|
+
- [`4b4dcfe0bba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4b4dcfe0bba) - Delete
|
|
542
|
+
adf-schema, use published version
|
|
533
543
|
|
|
534
544
|
## 0.4.1
|
|
535
545
|
|
|
536
546
|
### Patch Changes
|
|
537
547
|
|
|
538
|
-
-
|
|
548
|
+
- Updated dependencies
|
|
539
549
|
|
|
540
550
|
## 0.4.0
|
|
541
551
|
|
|
542
552
|
### Minor Changes
|
|
543
553
|
|
|
544
|
-
-
|
|
545
|
-
|
|
546
|
-
|
|
554
|
+
- [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
|
|
555
|
+
[`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating
|
|
556
|
+
all plugins with minor version to correct issue with semver.
|
|
547
557
|
|
|
548
558
|
### Patch Changes
|
|
549
559
|
|
|
550
|
-
-
|
|
560
|
+
- Updated dependencies
|
|
551
561
|
|
|
552
562
|
## 0.3.5
|
|
553
563
|
|
|
554
564
|
### Patch Changes
|
|
555
565
|
|
|
556
|
-
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
`NextEditorPlugin`.
|
|
566
|
+
- [#39010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39010)
|
|
567
|
+
[`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) - Removing
|
|
568
|
+
`dependencies` prop from PluginInjectionAPI and changing signature of `NextEditorPlugin`.
|
|
560
569
|
|
|
561
|
-
|
|
570
|
+
Previously a `NextEditorPlugin` would be consumed as so:
|
|
562
571
|
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
572
|
+
```ts
|
|
573
|
+
const plugin: NextEditorPlugin< ... > = (config, api) => {
|
|
574
|
+
// Can use api like so:
|
|
575
|
+
api.dependencies.core.actions.execute( ... )
|
|
576
|
+
return { ... }
|
|
577
|
+
}
|
|
578
|
+
```
|
|
570
579
|
|
|
571
|
-
|
|
572
|
-
|
|
580
|
+
Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
|
|
581
|
+
`dependencies` prop:
|
|
573
582
|
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
583
|
+
```ts
|
|
584
|
+
const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
|
|
585
|
+
// Can use api like so:
|
|
586
|
+
api.core.actions.execute( ... )
|
|
587
|
+
return { ... }
|
|
588
|
+
}
|
|
589
|
+
```
|
|
581
590
|
|
|
582
|
-
-
|
|
591
|
+
- Updated dependencies
|
|
583
592
|
|
|
584
593
|
## 0.3.4
|
|
585
594
|
|
|
586
595
|
### Patch Changes
|
|
587
596
|
|
|
588
|
-
-
|
|
589
|
-
|
|
590
|
-
|
|
597
|
+
- [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
|
|
598
|
+
[`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
|
|
599
|
+
atlaskit docs to all existing plugins.
|
|
591
600
|
|
|
592
601
|
## 0.3.3
|
|
593
602
|
|
|
594
603
|
### Patch Changes
|
|
595
604
|
|
|
596
|
-
-
|
|
597
|
-
|
|
598
|
-
|
|
605
|
+
- [#38976](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38976)
|
|
606
|
+
[`33cb07de05f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/33cb07de05f) - change
|
|
607
|
+
adf-schema to fixed versioning
|
|
599
608
|
|
|
600
609
|
## 0.3.2
|
|
601
610
|
|
|
602
611
|
### Patch Changes
|
|
603
612
|
|
|
604
|
-
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
-
|
|
613
|
+
- [#38495](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38495)
|
|
614
|
+
[`24fc3925d73`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24fc3925d73) - Add a
|
|
615
|
+
new hook called `usePreset` accesed via `@atlaskit/editor-core/use-preset`. This hook can be used
|
|
616
|
+
to safely access state and commands from outside the editor using `EditorContext`.
|
|
617
|
+
- Updated dependencies
|
|
609
618
|
|
|
610
619
|
## 0.3.1
|
|
611
620
|
|
|
612
621
|
### Patch Changes
|
|
613
622
|
|
|
614
|
-
-
|
|
623
|
+
- Updated dependencies
|
|
615
624
|
|
|
616
625
|
## 0.3.0
|
|
617
626
|
|
|
618
627
|
### Minor Changes
|
|
619
628
|
|
|
620
|
-
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
629
|
+
- [#38001](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38001)
|
|
630
|
+
[`a675f834911`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a675f834911) -
|
|
631
|
+
Introduce `commands` optional parameter to `NextEditorPlugin`. It can be used similarly to
|
|
632
|
+
`actions` in `NextEditorPlugin` but `commands` must adhere to the type of `PluginCommand`:
|
|
624
633
|
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
634
|
+
```ts
|
|
635
|
+
type PluginCommand = ({ tr }: { tr: Transaction }) => Transaction | null;
|
|
636
|
+
```
|
|
628
637
|
|
|
629
|
-
|
|
630
|
-
|
|
638
|
+
`PluginCommand`s are specifically used for code that is executed to modify a Transaction. They
|
|
639
|
+
should be used in preference to the existing prosemirror `Command` type.
|
|
631
640
|
|
|
632
641
|
### Patch Changes
|
|
633
642
|
|
|
634
|
-
-
|
|
643
|
+
- Updated dependencies
|
|
635
644
|
|
|
636
645
|
## 0.2.4
|
|
637
646
|
|
|
638
647
|
### Patch Changes
|
|
639
648
|
|
|
640
|
-
-
|
|
649
|
+
- Updated dependencies
|
|
641
650
|
|
|
642
651
|
## 0.2.3
|
|
643
652
|
|
|
644
653
|
### Patch Changes
|
|
645
654
|
|
|
646
|
-
-
|
|
655
|
+
- Updated dependencies
|
|
647
656
|
|
|
648
657
|
## 0.2.2
|
|
649
658
|
|
|
650
659
|
### Patch Changes
|
|
651
660
|
|
|
652
|
-
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
-
|
|
661
|
+
- [#37650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37650)
|
|
662
|
+
[`d8c1bcdc71a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d8c1bcdc71a) - ED-19217
|
|
663
|
+
decoupled lists related util functions from editor-core
|
|
664
|
+
- Updated dependencies
|
|
656
665
|
|
|
657
666
|
## 0.2.1
|
|
658
667
|
|
|
659
668
|
### Patch Changes
|
|
660
669
|
|
|
661
|
-
-
|
|
662
|
-
|
|
663
|
-
|
|
670
|
+
- [#37785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37785)
|
|
671
|
+
[`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) -
|
|
672
|
+
[ED-19233] Import prosemirror libraries from internal facade package
|
|
664
673
|
|
|
665
674
|
## 0.2.0
|
|
666
675
|
|
|
667
676
|
### Minor Changes
|
|
668
677
|
|
|
669
|
-
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
678
|
+
- [#37010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37010)
|
|
679
|
+
[`8e084d87da5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8e084d87da5) - Remove
|
|
680
|
+
deprecated hyperlink commands and plugin key including:
|
|
681
|
+
|
|
682
|
+
- isTextAtPos
|
|
683
|
+
- isLinkAtPos
|
|
684
|
+
- insertLink
|
|
685
|
+
- insertLinkWithAnalyticsMobileNative
|
|
686
|
+
- insertLinkWithAnalytics
|
|
687
|
+
- updateLink
|
|
688
|
+
- hyperlinkStateKey
|
|
689
|
+
|
|
690
|
+
If you require `isTextAtPos` or `isLinkAtPos` these can be accessed via `editor-common`:
|
|
691
|
+
|
|
692
|
+
```ts
|
|
693
|
+
import { isTextAtPos, isLinkAtPos } from '@atlaskit/editor-common/link`;
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+
If you require `insertLink`, `updateLink`, or `hyperlinkStateKey` you can access these via the new
|
|
697
|
+
composable editor using a custom plugin. Here is an example:
|
|
698
|
+
|
|
699
|
+
```ts
|
|
700
|
+
import { Editor } from '@atlaskit/editor-core/composable-editor';
|
|
701
|
+
import { EditorProps } from '@atlaskit/editor-core';
|
|
702
|
+
import { useUniversalPreset } from '@atlaskit/editor-core/preset-universal';
|
|
703
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
704
|
+
import type { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
705
|
+
|
|
706
|
+
const customPlugin: NextEditorPlugin<'custom', {
|
|
707
|
+
dependencies: [typeof hyperlinkPlugin]
|
|
708
|
+
}> = (_, api) => {
|
|
709
|
+
// Can access insertLink and updateLink here
|
|
710
|
+
api?.dependencies.hyperlink.actions.insertLink( ... )
|
|
711
|
+
api?.dependencies.hyperlink.actions.updateLink( ... )
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
// Rather than using the `hyperlinkStateKey` you can access via `sharedState`
|
|
715
|
+
api?.dependencies.hyperlink.sharedState.onChange(({ nextSharedState }) => {
|
|
716
|
+
// subscribe to changes
|
|
717
|
+
})
|
|
718
|
+
// OR for current value
|
|
719
|
+
api?.dependencies.hyperlink.sharedState.currentState()
|
|
720
|
+
|
|
721
|
+
return {
|
|
722
|
+
name: 'custom'
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// This function is the equivalent of `Editor` from `editor-core`
|
|
727
|
+
function EditorWrapped(props: EditorProps) {
|
|
728
|
+
const preset = useUniversalPreset(props).add(customPlugin)
|
|
729
|
+
return <Editor preset={preset} ... />
|
|
730
|
+
}
|
|
731
|
+
```
|
|
732
|
+
|
|
733
|
+
Note: By default `insertLink` via this interface is `insertLinkWithAnalytics`, however if you want
|
|
734
|
+
to disable analytics disable them via the `EditorProps` and if you want to run
|
|
735
|
+
`insertLinkWithAnalyticsMobileNative` pass `cardsAvailable` parameter as `false` (default).
|