@atlaskit/editor-plugin-hyperlink 1.6.2 → 1.6.4

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