@atlaskit/editor-plugin-hyperlink 1.7.1 → 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 +347 -329
- 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 +5 -6
- package/report.api.md +38 -47
package/CHANGELOG.md
CHANGED
|
@@ -1,717 +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
|
+
|
|
16
|
+
## 1.7.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
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
|
|
24
|
+
|
|
3
25
|
## 1.7.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
6
28
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
10
32
|
|
|
11
33
|
## 1.7.0
|
|
12
34
|
|
|
13
35
|
### Minor Changes
|
|
14
36
|
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
18
40
|
|
|
19
41
|
### Patch Changes
|
|
20
42
|
|
|
21
|
-
-
|
|
43
|
+
- Updated dependencies
|
|
22
44
|
|
|
23
45
|
## 1.6.8
|
|
24
46
|
|
|
25
47
|
### Patch Changes
|
|
26
48
|
|
|
27
|
-
-
|
|
49
|
+
- Updated dependencies
|
|
28
50
|
|
|
29
51
|
## 1.6.7
|
|
30
52
|
|
|
31
53
|
### Patch Changes
|
|
32
54
|
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
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.
|
|
36
58
|
|
|
37
59
|
## 1.6.6
|
|
38
60
|
|
|
39
61
|
### Patch Changes
|
|
40
62
|
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
|
44
66
|
|
|
45
67
|
## 1.6.5
|
|
46
68
|
|
|
47
69
|
### Patch Changes
|
|
48
70
|
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
|
54
76
|
|
|
55
77
|
## 1.6.4
|
|
56
78
|
|
|
57
79
|
### Patch Changes
|
|
58
80
|
|
|
59
|
-
-
|
|
81
|
+
- Updated dependencies
|
|
60
82
|
|
|
61
83
|
## 1.6.3
|
|
62
84
|
|
|
63
85
|
### Patch Changes
|
|
64
86
|
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
|
68
90
|
|
|
69
91
|
## 1.6.2
|
|
70
92
|
|
|
71
93
|
### Patch Changes
|
|
72
94
|
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
|
76
98
|
|
|
77
99
|
## 1.6.1
|
|
78
100
|
|
|
79
101
|
### Patch Changes
|
|
80
102
|
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
|
84
106
|
|
|
85
107
|
## 1.6.0
|
|
86
108
|
|
|
87
109
|
### Minor Changes
|
|
88
110
|
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
|
92
114
|
|
|
93
115
|
### Patch Changes
|
|
94
116
|
|
|
95
|
-
-
|
|
117
|
+
- Updated dependencies
|
|
96
118
|
|
|
97
119
|
## 1.5.2
|
|
98
120
|
|
|
99
121
|
### Patch Changes
|
|
100
122
|
|
|
101
|
-
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
|
104
126
|
|
|
105
127
|
## 1.5.1
|
|
106
128
|
|
|
107
129
|
### Patch Changes
|
|
108
130
|
|
|
109
|
-
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
-
|
|
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
|
|
113
135
|
|
|
114
136
|
## 1.5.0
|
|
115
137
|
|
|
116
138
|
### Minor Changes
|
|
117
139
|
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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.
|
|
123
145
|
|
|
124
146
|
### Patch Changes
|
|
125
147
|
|
|
126
|
-
-
|
|
148
|
+
- Updated dependencies
|
|
127
149
|
|
|
128
150
|
## 1.4.0
|
|
129
151
|
|
|
130
152
|
### Minor Changes
|
|
131
153
|
|
|
132
|
-
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
|
135
157
|
|
|
136
158
|
### Patch Changes
|
|
137
159
|
|
|
138
|
-
-
|
|
160
|
+
- Updated dependencies
|
|
139
161
|
|
|
140
162
|
## 1.3.1
|
|
141
163
|
|
|
142
164
|
### Patch Changes
|
|
143
165
|
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
|
148
170
|
|
|
149
171
|
## 1.3.0
|
|
150
172
|
|
|
151
173
|
### Minor Changes
|
|
152
174
|
|
|
153
|
-
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
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
|
|
157
178
|
|
|
158
179
|
### Patch Changes
|
|
159
180
|
|
|
160
|
-
-
|
|
181
|
+
- Updated dependencies
|
|
161
182
|
|
|
162
183
|
## 1.2.0
|
|
163
184
|
|
|
164
185
|
### Minor Changes
|
|
165
186
|
|
|
166
|
-
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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.
|
|
170
191
|
|
|
171
192
|
## 1.1.4
|
|
172
193
|
|
|
173
194
|
### Patch Changes
|
|
174
195
|
|
|
175
|
-
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
|
178
199
|
|
|
179
200
|
## 1.1.3
|
|
180
201
|
|
|
181
202
|
### Patch Changes
|
|
182
203
|
|
|
183
|
-
-
|
|
184
|
-
|
|
185
|
-
|
|
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`
|
|
186
207
|
|
|
187
208
|
## 1.1.2
|
|
188
209
|
|
|
189
210
|
### Patch Changes
|
|
190
211
|
|
|
191
|
-
-
|
|
192
|
-
|
|
193
|
-
|
|
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
|
|
194
215
|
|
|
195
216
|
## 1.1.1
|
|
196
217
|
|
|
197
218
|
### Patch Changes
|
|
198
219
|
|
|
199
|
-
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
-
|
|
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
|
|
203
224
|
|
|
204
225
|
## 1.1.0
|
|
205
226
|
|
|
206
227
|
### Minor Changes
|
|
207
228
|
|
|
208
|
-
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
|
211
232
|
|
|
212
233
|
## 1.0.2
|
|
213
234
|
|
|
214
235
|
### Patch Changes
|
|
215
236
|
|
|
216
|
-
-
|
|
217
|
-
|
|
218
|
-
|
|
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.
|
|
219
240
|
|
|
220
|
-
|
|
241
|
+
## WHY?
|
|
221
242
|
|
|
222
|
-
|
|
243
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
|
223
244
|
|
|
224
|
-
|
|
245
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
|
225
246
|
|
|
226
|
-
|
|
247
|
+
## WHAT and HOW?
|
|
227
248
|
|
|
228
|
-
|
|
229
|
-
|
|
249
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
250
|
+
`@atlaskit/editor-common/types`:
|
|
230
251
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
252
|
+
- InputRuleWrapper
|
|
253
|
+
- InputRuleHandler
|
|
254
|
+
- OnHandlerApply
|
|
255
|
+
- createRule
|
|
235
256
|
|
|
236
|
-
|
|
237
|
-
|
|
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( ... ))`).
|
|
238
259
|
|
|
239
|
-
|
|
260
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
240
261
|
|
|
241
|
-
|
|
242
|
-
|
|
262
|
+
- createPlugin
|
|
263
|
+
- createInputRulePlugin
|
|
243
264
|
|
|
244
|
-
-
|
|
265
|
+
- Updated dependencies
|
|
245
266
|
|
|
246
267
|
## 1.0.1
|
|
247
268
|
|
|
248
269
|
### Patch Changes
|
|
249
270
|
|
|
250
|
-
-
|
|
271
|
+
- Updated dependencies
|
|
251
272
|
|
|
252
273
|
## 1.0.0
|
|
253
274
|
|
|
254
275
|
### Major Changes
|
|
255
276
|
|
|
256
|
-
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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.
|
|
260
281
|
|
|
261
282
|
### Patch Changes
|
|
262
283
|
|
|
263
|
-
-
|
|
284
|
+
- Updated dependencies
|
|
264
285
|
|
|
265
286
|
## 0.8.3
|
|
266
287
|
|
|
267
288
|
### Patch Changes
|
|
268
289
|
|
|
269
|
-
-
|
|
270
|
-
|
|
271
|
-
|
|
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
|
|
272
293
|
|
|
273
294
|
## 0.8.2
|
|
274
295
|
|
|
275
296
|
### Patch Changes
|
|
276
297
|
|
|
277
|
-
-
|
|
278
|
-
|
|
279
|
-
|
|
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
|
|
280
301
|
|
|
281
302
|
## 0.8.1
|
|
282
303
|
|
|
283
304
|
### Patch Changes
|
|
284
305
|
|
|
285
|
-
-
|
|
306
|
+
- Updated dependencies
|
|
286
307
|
|
|
287
308
|
## 0.8.0
|
|
288
309
|
|
|
289
310
|
### Minor Changes
|
|
290
311
|
|
|
291
|
-
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
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.
|
|
295
316
|
|
|
296
317
|
### Patch Changes
|
|
297
318
|
|
|
298
|
-
-
|
|
319
|
+
- Updated dependencies
|
|
299
320
|
|
|
300
321
|
## 0.7.0
|
|
301
322
|
|
|
302
323
|
### Minor Changes
|
|
303
324
|
|
|
304
|
-
-
|
|
305
|
-
|
|
306
|
-
|
|
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
|
|
307
328
|
|
|
308
329
|
### Patch Changes
|
|
309
330
|
|
|
310
|
-
-
|
|
331
|
+
- Updated dependencies
|
|
311
332
|
|
|
312
333
|
## 0.6.11
|
|
313
334
|
|
|
314
335
|
### Patch Changes
|
|
315
336
|
|
|
316
|
-
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
-
|
|
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
|
|
320
341
|
|
|
321
342
|
## 0.6.10
|
|
322
343
|
|
|
323
344
|
### Patch Changes
|
|
324
345
|
|
|
325
|
-
-
|
|
326
|
-
|
|
327
|
-
|
|
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
|
|
328
349
|
|
|
329
350
|
## 0.6.9
|
|
330
351
|
|
|
331
352
|
### Patch Changes
|
|
332
353
|
|
|
333
|
-
-
|
|
334
|
-
|
|
335
|
-
|
|
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
|
|
336
357
|
|
|
337
358
|
## 0.6.8
|
|
338
359
|
|
|
339
360
|
### Patch Changes
|
|
340
361
|
|
|
341
|
-
-
|
|
342
|
-
|
|
343
|
-
|
|
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
|
|
344
365
|
|
|
345
366
|
## 0.6.7
|
|
346
367
|
|
|
347
368
|
### Patch Changes
|
|
348
369
|
|
|
349
|
-
-
|
|
370
|
+
- Updated dependencies
|
|
350
371
|
|
|
351
372
|
## 0.6.6
|
|
352
373
|
|
|
353
374
|
### Patch Changes
|
|
354
375
|
|
|
355
|
-
-
|
|
356
|
-
|
|
357
|
-
|
|
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).
|
|
358
379
|
|
|
359
380
|
## 0.6.5
|
|
360
381
|
|
|
361
382
|
### Patch Changes
|
|
362
383
|
|
|
363
|
-
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
-
|
|
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
|
|
368
389
|
|
|
369
390
|
## 0.6.4
|
|
370
391
|
|
|
371
392
|
### Patch Changes
|
|
372
393
|
|
|
373
|
-
-
|
|
374
|
-
|
|
375
|
-
|
|
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
|
|
376
397
|
|
|
377
398
|
## 0.6.3
|
|
378
399
|
|
|
379
400
|
### Patch Changes
|
|
380
401
|
|
|
381
|
-
-
|
|
382
|
-
|
|
383
|
-
|
|
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
|
|
384
405
|
|
|
385
406
|
## 0.6.2
|
|
386
407
|
|
|
387
408
|
### Patch Changes
|
|
388
409
|
|
|
389
|
-
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
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.
|
|
393
414
|
|
|
394
415
|
## 0.6.1
|
|
395
416
|
|
|
396
417
|
### Patch Changes
|
|
397
418
|
|
|
398
|
-
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
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.
|
|
422
443
|
|
|
423
444
|
## 0.6.0
|
|
424
445
|
|
|
425
446
|
### Minor Changes
|
|
426
447
|
|
|
427
|
-
-
|
|
428
|
-
|
|
429
|
-
|
|
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
|
|
430
451
|
|
|
431
452
|
## 0.5.9
|
|
432
453
|
|
|
433
454
|
### Patch Changes
|
|
434
455
|
|
|
435
|
-
-
|
|
436
|
-
|
|
437
|
-
|
|
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
|
|
438
459
|
|
|
439
460
|
## 0.5.8
|
|
440
461
|
|
|
441
462
|
### Patch Changes
|
|
442
463
|
|
|
443
|
-
-
|
|
464
|
+
- Updated dependencies
|
|
444
465
|
|
|
445
466
|
## 0.5.7
|
|
446
467
|
|
|
447
468
|
### Patch Changes
|
|
448
469
|
|
|
449
|
-
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
-
|
|
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
|
|
453
474
|
|
|
454
475
|
## 0.5.6
|
|
455
476
|
|
|
456
477
|
### Patch Changes
|
|
457
478
|
|
|
458
|
-
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
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.
|
|
462
483
|
|
|
463
484
|
## 0.5.5
|
|
464
485
|
|
|
465
486
|
### Patch Changes
|
|
466
487
|
|
|
467
|
-
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
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.
|
|
471
491
|
|
|
472
492
|
## 0.5.4
|
|
473
493
|
|
|
474
494
|
### Patch Changes
|
|
475
495
|
|
|
476
|
-
-
|
|
496
|
+
- Updated dependencies
|
|
477
497
|
|
|
478
498
|
## 0.5.3
|
|
479
499
|
|
|
480
500
|
### Patch Changes
|
|
481
501
|
|
|
482
|
-
-
|
|
483
|
-
|
|
484
|
-
|
|
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
|
|
485
505
|
|
|
486
506
|
## 0.5.2
|
|
487
507
|
|
|
488
508
|
### Patch Changes
|
|
489
509
|
|
|
490
|
-
-
|
|
510
|
+
- Updated dependencies
|
|
491
511
|
|
|
492
512
|
## 0.5.1
|
|
493
513
|
|
|
494
514
|
### Patch Changes
|
|
495
515
|
|
|
496
|
-
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
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.
|
|
500
519
|
|
|
501
520
|
## 0.5.0
|
|
502
521
|
|
|
503
522
|
### Minor Changes
|
|
504
523
|
|
|
505
|
-
-
|
|
506
|
-
|
|
507
|
-
|
|
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
|
|
508
527
|
|
|
509
528
|
## 0.4.3
|
|
510
529
|
|
|
511
530
|
### Patch Changes
|
|
512
531
|
|
|
513
|
-
-
|
|
532
|
+
- Updated dependencies
|
|
514
533
|
|
|
515
534
|
## 0.4.2
|
|
516
535
|
|
|
517
536
|
### Patch Changes
|
|
518
537
|
|
|
519
|
-
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
-
|
|
523
|
-
|
|
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
|
|
524
543
|
|
|
525
544
|
## 0.4.1
|
|
526
545
|
|
|
527
546
|
### Patch Changes
|
|
528
547
|
|
|
529
|
-
-
|
|
548
|
+
- Updated dependencies
|
|
530
549
|
|
|
531
550
|
## 0.4.0
|
|
532
551
|
|
|
533
552
|
### Minor Changes
|
|
534
553
|
|
|
535
|
-
-
|
|
536
|
-
|
|
537
|
-
|
|
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.
|
|
538
557
|
|
|
539
558
|
### Patch Changes
|
|
540
559
|
|
|
541
|
-
-
|
|
560
|
+
- Updated dependencies
|
|
542
561
|
|
|
543
562
|
## 0.3.5
|
|
544
563
|
|
|
545
564
|
### Patch Changes
|
|
546
565
|
|
|
547
|
-
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
`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`.
|
|
551
569
|
|
|
552
|
-
|
|
570
|
+
Previously a `NextEditorPlugin` would be consumed as so:
|
|
553
571
|
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
572
|
+
```ts
|
|
573
|
+
const plugin: NextEditorPlugin< ... > = (config, api) => {
|
|
574
|
+
// Can use api like so:
|
|
575
|
+
api.dependencies.core.actions.execute( ... )
|
|
576
|
+
return { ... }
|
|
577
|
+
}
|
|
578
|
+
```
|
|
561
579
|
|
|
562
|
-
|
|
563
|
-
|
|
580
|
+
Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
|
|
581
|
+
`dependencies` prop:
|
|
564
582
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
583
|
+
```ts
|
|
584
|
+
const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
|
|
585
|
+
// Can use api like so:
|
|
586
|
+
api.core.actions.execute( ... )
|
|
587
|
+
return { ... }
|
|
588
|
+
}
|
|
589
|
+
```
|
|
572
590
|
|
|
573
|
-
-
|
|
591
|
+
- Updated dependencies
|
|
574
592
|
|
|
575
593
|
## 0.3.4
|
|
576
594
|
|
|
577
595
|
### Patch Changes
|
|
578
596
|
|
|
579
|
-
-
|
|
580
|
-
|
|
581
|
-
|
|
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.
|
|
582
600
|
|
|
583
601
|
## 0.3.3
|
|
584
602
|
|
|
585
603
|
### Patch Changes
|
|
586
604
|
|
|
587
|
-
-
|
|
588
|
-
|
|
589
|
-
|
|
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
|
|
590
608
|
|
|
591
609
|
## 0.3.2
|
|
592
610
|
|
|
593
611
|
### Patch Changes
|
|
594
612
|
|
|
595
|
-
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
-
|
|
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
|
|
600
618
|
|
|
601
619
|
## 0.3.1
|
|
602
620
|
|
|
603
621
|
### Patch Changes
|
|
604
622
|
|
|
605
|
-
-
|
|
623
|
+
- Updated dependencies
|
|
606
624
|
|
|
607
625
|
## 0.3.0
|
|
608
626
|
|
|
609
627
|
### Minor Changes
|
|
610
628
|
|
|
611
|
-
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
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`:
|
|
615
633
|
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
634
|
+
```ts
|
|
635
|
+
type PluginCommand = ({ tr }: { tr: Transaction }) => Transaction | null;
|
|
636
|
+
```
|
|
619
637
|
|
|
620
|
-
|
|
621
|
-
|
|
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.
|
|
622
640
|
|
|
623
641
|
### Patch Changes
|
|
624
642
|
|
|
625
|
-
-
|
|
643
|
+
- Updated dependencies
|
|
626
644
|
|
|
627
645
|
## 0.2.4
|
|
628
646
|
|
|
629
647
|
### Patch Changes
|
|
630
648
|
|
|
631
|
-
-
|
|
649
|
+
- Updated dependencies
|
|
632
650
|
|
|
633
651
|
## 0.2.3
|
|
634
652
|
|
|
635
653
|
### Patch Changes
|
|
636
654
|
|
|
637
|
-
-
|
|
655
|
+
- Updated dependencies
|
|
638
656
|
|
|
639
657
|
## 0.2.2
|
|
640
658
|
|
|
641
659
|
### Patch Changes
|
|
642
660
|
|
|
643
|
-
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
-
|
|
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
|
|
647
665
|
|
|
648
666
|
## 0.2.1
|
|
649
667
|
|
|
650
668
|
### Patch Changes
|
|
651
669
|
|
|
652
|
-
-
|
|
653
|
-
|
|
654
|
-
|
|
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
|
|
655
673
|
|
|
656
674
|
## 0.2.0
|
|
657
675
|
|
|
658
676
|
### Minor Changes
|
|
659
677
|
|
|
660
|
-
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
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
|
-
|
|
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).
|