@atlaskit/editor-plugin-hyperlink 1.6.2 → 1.6.3

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