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