@atlaskit/editor-plugin-hyperlink 1.6.1 → 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 +319 -185
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,525 +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
+
11
+ ## 1.6.2
12
+
13
+ ### Patch Changes
14
+
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
18
+
3
19
  ## 1.6.1
4
20
 
5
21
  ### Patch Changes
6
22
 
7
- - [#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
8
26
 
9
27
  ## 1.6.0
10
28
 
11
29
  ### Minor Changes
12
30
 
13
- - [#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
14
34
 
15
35
  ### Patch Changes
16
36
 
17
- - Updated dependencies
37
+ - Updated dependencies
18
38
 
19
39
  ## 1.5.2
20
40
 
21
41
  ### Patch Changes
22
42
 
23
- - [#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
24
46
 
25
47
  ## 1.5.1
26
48
 
27
49
  ### Patch Changes
28
50
 
29
- - [#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
30
- - 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
31
55
 
32
56
  ## 1.5.0
33
57
 
34
58
  ### Minor Changes
35
59
 
36
- - [#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.
37
65
 
38
66
  ### Patch Changes
39
67
 
40
- - Updated dependencies
68
+ - Updated dependencies
41
69
 
42
70
  ## 1.4.0
43
71
 
44
72
  ### Minor Changes
45
73
 
46
- - [#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
47
77
 
48
78
  ### Patch Changes
49
79
 
50
- - Updated dependencies
80
+ - Updated dependencies
51
81
 
52
82
  ## 1.3.1
53
83
 
54
84
  ### Patch Changes
55
85
 
56
- - [#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
57
90
 
58
91
  ## 1.3.0
59
92
 
60
93
  ### Minor Changes
61
94
 
62
- - [#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
63
99
 
64
100
  ### Patch Changes
65
101
 
66
- - Updated dependencies
102
+ - Updated dependencies
67
103
 
68
104
  ## 1.2.0
69
105
 
70
106
  ### Minor Changes
71
107
 
72
- - [#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.
73
112
 
74
113
  ## 1.1.4
75
114
 
76
115
  ### Patch Changes
77
116
 
78
- - [#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
79
120
 
80
121
  ## 1.1.3
81
122
 
82
123
  ### Patch Changes
83
124
 
84
- - [#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`
85
128
 
86
129
  ## 1.1.2
87
130
 
88
131
  ### Patch Changes
89
132
 
90
- - [#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
91
136
 
92
137
  ## 1.1.1
93
138
 
94
139
  ### Patch Changes
95
140
 
96
- - [#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
97
- - 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
98
145
 
99
146
  ## 1.1.0
100
147
 
101
148
  ### Minor Changes
102
149
 
103
- - [#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
104
153
 
105
154
  ## 1.0.2
106
155
 
107
156
  ### Patch Changes
108
157
 
109
- - [#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.
110
161
 
111
- ## WHY?
162
+ ## WHY?
112
163
 
113
- Removing editor-common dependencies from prosemirror-input-rules package.
164
+ Removing editor-common dependencies from prosemirror-input-rules package.
114
165
 
115
- 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.
116
167
 
117
- ## WHAT and HOW?
168
+ ## WHAT and HOW?
118
169
 
119
- 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`:
120
172
 
121
- - InputRuleWrapper
122
- - InputRuleHandler
123
- - OnHandlerApply
124
- - createRule
173
+ - InputRuleWrapper
174
+ - InputRuleHandler
175
+ - OnHandlerApply
176
+ - createRule
125
177
 
126
- 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( ... ))`).
127
180
 
128
- `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
181
+ `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
129
182
 
130
- - createPlugin
131
- - createInputRulePlugin
183
+ - createPlugin
184
+ - createInputRulePlugin
132
185
 
133
- - Updated dependencies
186
+ - Updated dependencies
134
187
 
135
188
  ## 1.0.1
136
189
 
137
190
  ### Patch Changes
138
191
 
139
- - Updated dependencies
192
+ - Updated dependencies
140
193
 
141
194
  ## 1.0.0
142
195
 
143
196
  ### Major Changes
144
197
 
145
- - [#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.
146
202
 
147
203
  ### Patch Changes
148
204
 
149
- - Updated dependencies
205
+ - Updated dependencies
150
206
 
151
207
  ## 0.8.3
152
208
 
153
209
  ### Patch Changes
154
210
 
155
- - [#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
156
214
 
157
215
  ## 0.8.2
158
216
 
159
217
  ### Patch Changes
160
218
 
161
- - [#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
162
222
 
163
223
  ## 0.8.1
164
224
 
165
225
  ### Patch Changes
166
226
 
167
- - Updated dependencies
227
+ - Updated dependencies
168
228
 
169
229
  ## 0.8.0
170
230
 
171
231
  ### Minor Changes
172
232
 
173
- - [#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.
174
237
 
175
238
  ### Patch Changes
176
239
 
177
- - Updated dependencies
240
+ - Updated dependencies
178
241
 
179
242
  ## 0.7.0
180
243
 
181
244
  ### Minor Changes
182
245
 
183
- - [#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
184
249
 
185
250
  ### Patch Changes
186
251
 
187
- - Updated dependencies
252
+ - Updated dependencies
188
253
 
189
254
  ## 0.6.11
190
255
 
191
256
  ### Patch Changes
192
257
 
193
- - [#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
194
- - 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
195
262
 
196
263
  ## 0.6.10
197
264
 
198
265
  ### Patch Changes
199
266
 
200
- - [#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
201
270
 
202
271
  ## 0.6.9
203
272
 
204
273
  ### Patch Changes
205
274
 
206
- - [#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
207
278
 
208
279
  ## 0.6.8
209
280
 
210
281
  ### Patch Changes
211
282
 
212
- - [#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
213
286
 
214
287
  ## 0.6.7
215
288
 
216
289
  ### Patch Changes
217
290
 
218
- - Updated dependencies
291
+ - Updated dependencies
219
292
 
220
293
  ## 0.6.6
221
294
 
222
295
  ### Patch Changes
223
296
 
224
- - [#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).
225
300
 
226
301
  ## 0.6.5
227
302
 
228
303
  ### Patch Changes
229
304
 
230
- - [#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
231
- - 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
232
310
 
233
311
  ## 0.6.4
234
312
 
235
313
  ### Patch Changes
236
314
 
237
- - [#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
238
318
 
239
319
  ## 0.6.3
240
320
 
241
321
  ### Patch Changes
242
322
 
243
- - [#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
244
326
 
245
327
  ## 0.6.2
246
328
 
247
329
  ### Patch Changes
248
330
 
249
- - [#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.
250
335
 
251
336
  ## 0.6.1
252
337
 
253
338
  ### Patch Changes
254
339
 
255
- - [#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:
256
-
257
- - analytics
258
- - base
259
- - card
260
- - code-block
261
- - expand
262
- - extension
263
- - floating-toolbar
264
- - hyperlink
265
- - insert-block
266
- - layout
267
- - layout
268
- - list
269
- - media
270
- - paste
271
- - rule
272
- - table
273
- - tasks-and-decisions
274
-
275
- 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.
276
364
 
277
365
  ## 0.6.0
278
366
 
279
367
  ### Minor Changes
280
368
 
281
- - [#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
282
372
 
283
373
  ## 0.5.9
284
374
 
285
375
  ### Patch Changes
286
376
 
287
- - [#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
288
380
 
289
381
  ## 0.5.8
290
382
 
291
383
  ### Patch Changes
292
384
 
293
- - Updated dependencies
385
+ - Updated dependencies
294
386
 
295
387
  ## 0.5.7
296
388
 
297
389
  ### Patch Changes
298
390
 
299
- - [#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.
300
- - 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
301
395
 
302
396
  ## 0.5.6
303
397
 
304
398
  ### Patch Changes
305
399
 
306
- - [#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.
307
404
 
308
405
  ## 0.5.5
309
406
 
310
407
  ### Patch Changes
311
408
 
312
- - [#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.
313
413
 
314
414
  ## 0.5.4
315
415
 
316
416
  ### Patch Changes
317
417
 
318
- - Updated dependencies
418
+ - Updated dependencies
319
419
 
320
420
  ## 0.5.3
321
421
 
322
422
  ### Patch Changes
323
423
 
324
- - [#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
325
427
 
326
428
  ## 0.5.2
327
429
 
328
430
  ### Patch Changes
329
431
 
330
- - Updated dependencies
432
+ - Updated dependencies
331
433
 
332
434
  ## 0.5.1
333
435
 
334
436
  ### Patch Changes
335
437
 
336
- - [#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.
337
442
 
338
443
  ## 0.5.0
339
444
 
340
445
  ### Minor Changes
341
446
 
342
- - [#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
343
450
 
344
451
  ## 0.4.3
345
452
 
346
453
  ### Patch Changes
347
454
 
348
- - Updated dependencies
455
+ - Updated dependencies
349
456
 
350
457
  ## 0.4.2
351
458
 
352
459
  ### Patch Changes
353
460
 
354
- - [#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
355
- - [`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
356
466
 
357
467
  ## 0.4.1
358
468
 
359
469
  ### Patch Changes
360
470
 
361
- - Updated dependencies
471
+ - Updated dependencies
362
472
 
363
473
  ## 0.4.0
364
474
 
365
475
  ### Minor Changes
366
476
 
367
- - [#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.
368
480
 
369
481
  ### Patch Changes
370
482
 
371
- - Updated dependencies
483
+ - Updated dependencies
372
484
 
373
485
  ## 0.3.5
374
486
 
375
487
  ### Patch Changes
376
488
 
377
- - [#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
378
- 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`.
379
493
 
380
- Previously a `NextEditorPlugin` would be consumed as so:
494
+ Previously a `NextEditorPlugin` would be consumed as so:
381
495
 
382
- ```ts
383
- const plugin: NextEditorPlugin< ... > = (config, api) => {
384
- // Can use api like so:
385
- api.dependencies.core.actions.execute( ... )
386
- return { ... }
387
- }
388
- ```
496
+ ```ts
497
+ const plugin: NextEditorPlugin< ... > = (config, api) => {
498
+ // Can use api like so:
499
+ api.dependencies.core.actions.execute( ... )
500
+ return { ... }
501
+ }
502
+ ```
389
503
 
390
- Now these have become named parameters like so and the `pluginInjectionAPI` is used
391
- without the `dependencies` prop:
504
+ Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
505
+ `dependencies` prop:
392
506
 
393
- ```ts
394
- const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
395
- // Can use api like so:
396
- api.core.actions.execute( ... )
397
- return { ... }
398
- }
399
- ```
507
+ ```ts
508
+ const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
509
+ // Can use api like so:
510
+ api.core.actions.execute( ... )
511
+ return { ... }
512
+ }
513
+ ```
400
514
 
401
- - Updated dependencies
515
+ - Updated dependencies
402
516
 
403
517
  ## 0.3.4
404
518
 
405
519
  ### Patch Changes
406
520
 
407
- - [#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.
408
524
 
409
525
  ## 0.3.3
410
526
 
411
527
  ### Patch Changes
412
528
 
413
- - [#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
414
532
 
415
533
  ## 0.3.2
416
534
 
417
535
  ### Patch Changes
418
536
 
419
- - [#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`.
420
- - 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
421
542
 
422
543
  ## 0.3.1
423
544
 
424
545
  ### Patch Changes
425
546
 
426
- - Updated dependencies
547
+ - Updated dependencies
427
548
 
428
549
  ## 0.3.0
429
550
 
430
551
  ### Minor Changes
431
552
 
432
- - [#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`:
433
557
 
434
- ```ts
435
- type PluginCommand = ({ tr }: { tr: Transaction }) => Transaction | null;
436
- ```
558
+ ```ts
559
+ type PluginCommand = ({ tr }: { tr: Transaction }) => Transaction | null;
560
+ ```
437
561
 
438
- `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.
439
564
 
440
565
  ### Patch Changes
441
566
 
442
- - Updated dependencies
567
+ - Updated dependencies
443
568
 
444
569
  ## 0.2.4
445
570
 
446
571
  ### Patch Changes
447
572
 
448
- - Updated dependencies
573
+ - Updated dependencies
449
574
 
450
575
  ## 0.2.3
451
576
 
452
577
  ### Patch Changes
453
578
 
454
- - Updated dependencies
579
+ - Updated dependencies
455
580
 
456
581
  ## 0.2.2
457
582
 
458
583
  ### Patch Changes
459
584
 
460
- - [#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
461
- - 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
462
589
 
463
590
  ## 0.2.1
464
591
 
465
592
  ### Patch Changes
466
593
 
467
- - [#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
468
597
 
469
598
  ## 0.2.0
470
599
 
471
600
  ### Minor Changes
472
601
 
473
- - [#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:
474
-
475
- - isTextAtPos
476
- - isLinkAtPos
477
- - insertLink
478
- - insertLinkWithAnalyticsMobileNative
479
- - insertLinkWithAnalytics
480
- - updateLink
481
- - hyperlinkStateKey
482
-
483
- If you require `isTextAtPos` or `isLinkAtPos` these can be accessed via `editor-common`:
484
-
485
- ```ts
486
- import { isTextAtPos, isLinkAtPos } from '@atlaskit/editor-common/link`;
487
- ```
488
-
489
- If you require `insertLink`, `updateLink`, or `hyperlinkStateKey` you can access these via the new composable editor using a custom plugin. Here is an example:
490
-
491
- ```ts
492
- import { Editor } from '@atlaskit/editor-core/composable-editor';
493
- import { EditorProps } from '@atlaskit/editor-core';
494
- import { useUniversalPreset } from '@atlaskit/editor-core/preset-universal';
495
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
496
- import type { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
497
-
498
- const customPlugin: NextEditorPlugin<'custom', {
499
- dependencies: [typeof hyperlinkPlugin]
500
- }> = (_, api) => {
501
- // Can access insertLink and updateLink here
502
- api?.dependencies.hyperlink.actions.insertLink( ... )
503
- api?.dependencies.hyperlink.actions.updateLink( ... )
504
-
505
-
506
- // Rather than using the `hyperlinkStateKey` you can access via `sharedState`
507
- api?.dependencies.hyperlink.sharedState.onChange(({ nextSharedState }) => {
508
- // subscribe to changes
509
- })
510
- // OR for current value
511
- api?.dependencies.hyperlink.sharedState.currentState()
512
-
513
- return {
514
- name: 'custom'
515
- }
516
- }
517
-
518
- // This function is the equivalent of `Editor` from `editor-core`
519
- function EditorWrapped(props: EditorProps) {
520
- const preset = useUniversalPreset(props).add(customPlugin)
521
- return <Editor preset={preset} ... />
522
- }
523
- ```
524
-
525
- 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.1",
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.10.0",
35
+ "@atlaskit/adf-schema": "^35.12.2",
36
36
  "@atlaskit/analytics-next": "^9.3.0",
37
- "@atlaskit/editor-common": "^78.31.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",