@atlaskit/editor-card-provider 3.3.4 → 3.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,312 +1,327 @@
1
1
  # @atlaskit/editor-card-provider
2
2
 
3
+ ## 3.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#107009](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107009)
8
+ [`4eb69d60f58f4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4eb69d60f58f4) -
9
+ Make getHardCodedAppearance protected so that subclasses can override this in order to handle link
10
+ embedded by default
11
+
12
+ ## 3.3.5
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 3.3.4
4
19
 
5
20
  ### Patch Changes
6
21
 
7
- - [#98840](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98840)
8
- [`cff3be4e0774`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cff3be4e0774) -
9
- Default Jira dashboard to embed appearance
22
+ - [#98840](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98840)
23
+ [`cff3be4e0774`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cff3be4e0774) -
24
+ Default Jira dashboard to embed appearance
10
25
 
11
26
  ## 3.3.3
12
27
 
13
28
  ### Patch Changes
14
29
 
15
- - [#86596](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86596)
16
- [`37621cb1f1b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/37621cb1f1b9) -
17
- Update dependency json-ld-types
18
- - Updated dependencies
30
+ - [#86596](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86596)
31
+ [`37621cb1f1b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/37621cb1f1b9) -
32
+ Update dependency json-ld-types
33
+ - Updated dependencies
19
34
 
20
35
  ## 3.3.2
21
36
 
22
37
  ### Patch Changes
23
38
 
24
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
25
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
26
- Upgrade Typescript from `4.9.5` to `5.4.2`
39
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
40
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
41
+ Upgrade Typescript from `4.9.5` to `5.4.2`
27
42
 
28
43
  ## 3.3.1
29
44
 
30
45
  ### Patch Changes
31
46
 
32
- - [#81050](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81050)
33
- [`c15d7331e8b8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c15d7331e8b8) -
34
- We are updating the Jira List URL pattern as we recently update the urls
47
+ - [#81050](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81050)
48
+ [`c15d7331e8b8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c15d7331e8b8) -
49
+ We are updating the Jira List URL pattern as we recently update the urls
35
50
 
36
51
  ## 3.3.0
37
52
 
38
53
  ### Minor Changes
39
54
 
40
- - [#75659](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75659)
41
- [`28d133564298`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/28d133564298) -
42
- Removed duplicated version of environment.ts in editor-card-provider package and all usages were
43
- replaced with the corresponding type/function from linking-common.
55
+ - [#75659](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75659)
56
+ [`28d133564298`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/28d133564298) -
57
+ Removed duplicated version of environment.ts in editor-card-provider package and all usages were
58
+ replaced with the corresponding type/function from linking-common.
44
59
 
45
60
  ## 3.2.0
46
61
 
47
62
  ### Minor Changes
48
63
 
49
- - [#74458](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74458)
50
- [`c40e977de5da`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c40e977de5da) -
51
- [ux] List view links will be converted into smart link embed by default
64
+ - [#74458](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74458)
65
+ [`c40e977de5da`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c40e977de5da) -
66
+ [ux] List view links will be converted into smart link embed by default
52
67
 
53
68
  ## 3.1.17
54
69
 
55
70
  ### Patch Changes
56
71
 
57
- - [#72315](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72315)
58
- [`818ff8704f34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/818ff8704f34) -
59
- Updated default smart card view for Confluence Databases to include default for savedViewId
60
- - [#71047](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71047)
61
- [`931a7edba41e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/931a7edba41e) -
62
- update window.location usage to be compatible with SSR
72
+ - [#72315](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72315)
73
+ [`818ff8704f34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/818ff8704f34) -
74
+ Updated default smart card view for Confluence Databases to include default for savedViewId
75
+ - [#71047](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71047)
76
+ [`931a7edba41e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/931a7edba41e) -
77
+ update window.location usage to be compatible with SSR
63
78
 
64
79
  ## 3.1.16
65
80
 
66
81
  ### Patch Changes
67
82
 
68
- - [#68764](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68764)
69
- [`59b851a5d621`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/59b851a5d621) -
70
- [ux] Render Polaris (Jira Product Discovery) published view as an embed by default
83
+ - [#68764](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68764)
84
+ [`59b851a5d621`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/59b851a5d621) -
85
+ [ux] Render Polaris (Jira Product Discovery) published view as an embed by default
71
86
 
72
87
  ## 3.1.15
73
88
 
74
89
  ### Patch Changes
75
90
 
76
- - [#68194](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68194)
77
- [`c1d4a8fecc4e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c1d4a8fecc4e) -
78
- bump json-ld-types to version 3.11.0
91
+ - [#68194](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68194)
92
+ [`c1d4a8fecc4e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c1d4a8fecc4e) -
93
+ bump json-ld-types to version 3.11.0
79
94
 
80
95
  ## 3.1.14
81
96
 
82
97
  ### Patch Changes
83
98
 
84
- - [#66881](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66881)
85
- [`d940eeab50d9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d940eeab50d9) -
86
- [ux] Updated default smart card view for Confluence Databases to include all-entries for
87
- savedViewId and only uuid for unsavedView
99
+ - [#66881](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66881)
100
+ [`d940eeab50d9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d940eeab50d9) -
101
+ [ux] Updated default smart card view for Confluence Databases to include all-entries for
102
+ savedViewId and only uuid for unsavedView
88
103
 
89
104
  ## 3.1.13
90
105
 
91
106
  ### Patch Changes
92
107
 
93
- - Updated dependencies
108
+ - Updated dependencies
94
109
 
95
110
  ## 3.1.12
96
111
 
97
112
  ### Patch Changes
98
113
 
99
- - [#63428](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63428)
100
- [`441be131933f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/441be131933f) -
101
- [ux] make youtube videos embed by default
114
+ - [#63428](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63428)
115
+ [`441be131933f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/441be131933f) -
116
+ [ux] make youtube videos embed by default
102
117
 
103
118
  ## 3.1.11
104
119
 
105
120
  ### Patch Changes
106
121
 
107
- - [#62385](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62385)
108
- [`f3e422857a54`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f3e422857a54) -
109
- [ux] Updated default smart card view for Confluence Databases to include check for unsavedView
110
- parameter
122
+ - [#62385](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62385)
123
+ [`f3e422857a54`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f3e422857a54) -
124
+ [ux] Updated default smart card view for Confluence Databases to include check for unsavedView
125
+ parameter
111
126
 
112
127
  ## 3.1.10
113
128
 
114
129
  ### Patch Changes
115
130
 
116
- - [#42239](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42239)
117
- [`3ebc0b4f999`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ebc0b4f999) - [ux]
118
- Updated default smart card view for Confluence Databases to include check for entryId and
119
- savedViewId parameters
131
+ - [#42239](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42239)
132
+ [`3ebc0b4f999`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ebc0b4f999) - [ux]
133
+ Updated default smart card view for Confluence Databases to include check for entryId and
134
+ savedViewId parameters
120
135
 
121
136
  ## 3.1.9
122
137
 
123
138
  ### Patch Changes
124
139
 
125
- - [#40406](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40406)
126
- [`542d0dd0b1d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/542d0dd0b1d) - [ux]
127
- Changed default smart card view for Confluence Databases route from inline to embed.
140
+ - [#40406](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40406)
141
+ [`542d0dd0b1d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/542d0dd0b1d) - [ux]
142
+ Changed default smart card view for Confluence Databases route from inline to embed.
128
143
 
129
144
  ## 3.1.8
130
145
 
131
146
  ### Patch Changes
132
147
 
133
- - [#40491](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40491)
134
- [`1fedffbd64b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1fedffbd64b) - Update
135
- json-ld-types dependencies to be compatible with version
148
+ - [#40491](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40491)
149
+ [`1fedffbd64b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1fedffbd64b) - Update
150
+ json-ld-types dependencies to be compatible with version
136
151
 
137
152
  ## 3.1.7
138
153
 
139
154
  ### Patch Changes
140
155
 
141
- - [#40127](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40127)
142
- [`2cd7af71b63`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cd7af71b63) - Bump
143
- json-ld-types 3.8.0 -> 3.9.1
156
+ - [#40127](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40127)
157
+ [`2cd7af71b63`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cd7af71b63) - Bump
158
+ json-ld-types 3.8.0 -> 3.9.1
144
159
 
145
160
  ## 3.1.6
146
161
 
147
162
  ### Patch Changes
148
163
 
149
- - [#37720](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37720)
150
- [`e74ae7f06d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e74ae7f06d4) - Update
151
- dependency json-ld-types@3.8.0
164
+ - [#37720](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37720)
165
+ [`e74ae7f06d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e74ae7f06d4) - Update
166
+ dependency json-ld-types@3.8.0
152
167
 
153
168
  ## 3.1.5
154
169
 
155
170
  ### Patch Changes
156
171
 
157
- - [#37136](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37136)
158
- [`83f06b6e7f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/83f06b6e7f6) - Update
159
- to use 'getStatus' from '@atlaskit/linking-common'
160
- - Updated dependencies
172
+ - [#37136](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37136)
173
+ [`83f06b6e7f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/83f06b6e7f6) - Update
174
+ to use 'getStatus' from '@atlaskit/linking-common'
175
+ - Updated dependencies
161
176
 
162
177
  ## 3.1.4
163
178
 
164
179
  ### Patch Changes
165
180
 
166
- - [#37340](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37340)
167
- [`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt
168
- out of peer dependency enforcement
181
+ - [#37340](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37340)
182
+ [`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt out
183
+ of peer dependency enforcement
169
184
 
170
185
  ## 3.1.3
171
186
 
172
187
  ### Patch Changes
173
188
 
174
- - Updated dependencies
189
+ - Updated dependencies
175
190
 
176
191
  ## 3.1.2
177
192
 
178
193
  ### Patch Changes
179
194
 
180
- - [#36757](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36757)
181
- [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add
182
- postinstall check to enforce internal peer dependencies
195
+ - [#36757](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36757)
196
+ [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add
197
+ postinstall check to enforce internal peer dependencies
183
198
 
184
199
  ## 3.1.1
185
200
 
186
201
  ### Patch Changes
187
202
 
188
- - [#36089](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36089)
189
- [`1e7190077d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e7190077d4) - Move
190
- off deprecated @atlaskit/linking-common/extractors to @atlaskit/link-extractors
191
- - Updated dependencies
203
+ - [#36089](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36089)
204
+ [`1e7190077d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e7190077d4) - Move off
205
+ deprecated @atlaskit/linking-common/extractors to @atlaskit/link-extractors
206
+ - Updated dependencies
192
207
 
193
208
  ## 3.1.0
194
209
 
195
210
  ### Minor Changes
196
211
 
197
- - [#35032](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35032)
198
- [`04295e9d5bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/04295e9d5bc) - [ux]
199
- Updating ORS response to include datasources and facilitating pasting JQL links turning into
200
- datasource tables
212
+ - [#35032](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35032)
213
+ [`04295e9d5bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/04295e9d5bc) - [ux]
214
+ Updating ORS response to include datasources and facilitating pasting JQL links turning into
215
+ datasource tables
201
216
 
202
217
  ### Patch Changes
203
218
 
204
- - Updated dependencies
219
+ - Updated dependencies
205
220
 
206
221
  ## 3.0.5
207
222
 
208
223
  ### Patch Changes
209
224
 
210
- - Updated dependencies
225
+ - Updated dependencies
211
226
 
212
227
  ## 3.0.4
213
228
 
214
229
  ### Patch Changes
215
230
 
216
- - [#35428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35428)
217
- [`1674b5907b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1674b5907b4) - [ux]
218
- Make confluence whiteboard urls default to embed view
231
+ - [#35428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35428)
232
+ [`1674b5907b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1674b5907b4) - [ux]
233
+ Make confluence whiteboard urls default to embed view
219
234
 
220
235
  ## 3.0.3
221
236
 
222
237
  ### Patch Changes
223
238
 
224
- - [#33699](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33699)
225
- [`f10ed88032c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f10ed88032c) - With
226
- the renaming of Jira Roadmaps to Timeline, we are updating the regex rules to match timeline in
227
- conjunction to roadmaps
228
- - Updated dependencies
239
+ - [#33699](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33699)
240
+ [`f10ed88032c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f10ed88032c) - With the
241
+ renaming of Jira Roadmaps to Timeline, we are updating the regex rules to match timeline in
242
+ conjunction to roadmaps
243
+ - Updated dependencies
229
244
 
230
245
  ## 3.0.2
231
246
 
232
247
  ### Patch Changes
233
248
 
234
- - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
235
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
236
- legacy types are published for TS 4.5-4.8
237
- - Updated dependencies
249
+ - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
250
+ [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
251
+ legacy types are published for TS 4.5-4.8
252
+ - Updated dependencies
238
253
 
239
254
  ## 3.0.1
240
255
 
241
256
  ### Patch Changes
242
257
 
243
- - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
244
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) -
245
- Upgrade Typescript from `4.5.5` to `4.9.5`
246
- - Updated dependencies
258
+ - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
259
+ [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
260
+ Typescript from `4.5.5` to `4.9.5`
261
+ - Updated dependencies
247
262
 
248
263
  ## 3.0.0
249
264
 
250
265
  ### Minor Changes
251
266
 
252
- - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
253
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
254
- minor dependency bump
267
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
268
+ [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
269
+ minor dependency bump
255
270
 
256
271
  ### Patch Changes
257
272
 
258
- - Updated dependencies
273
+ - Updated dependencies
259
274
 
260
275
  ## 2.0.4
261
276
 
262
277
  ### Patch Changes
263
278
 
264
- - [#32541](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32541)
265
- [`0624df1ffe1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0624df1ffe1) - Bump
266
- json-ld-types dependency
267
- - Updated dependencies
279
+ - [#32541](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32541)
280
+ [`0624df1ffe1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0624df1ffe1) - Bump
281
+ json-ld-types dependency
282
+ - Updated dependencies
268
283
 
269
284
  ## 2.0.3
270
285
 
271
286
  ### Patch Changes
272
287
 
273
- - [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424)
274
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY
275
- remove before merging to master; dupe adf-schema via adf-utils
276
- - Updated dependencies
288
+ - [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424)
289
+ [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY
290
+ remove before merging to master; dupe adf-schema via adf-utils
291
+ - Updated dependencies
277
292
 
278
293
  ## 2.0.2
279
294
 
280
295
  ### Patch Changes
281
296
 
282
- - [#32360](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32360)
283
- [`0ee9370595a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ee9370595a) - Update
284
- json-ld-types
285
- - Updated dependencies
297
+ - [#32360](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32360)
298
+ [`0ee9370595a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ee9370595a) - Update
299
+ json-ld-types
300
+ - Updated dependencies
286
301
 
287
302
  ## 2.0.1
288
303
 
289
304
  ### Patch Changes
290
305
 
291
- - [#31388](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31388)
292
- [`0af4a6b6426`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0af4a6b6426) -
293
- Dependency update json-ld-types@3.4.0
294
- - Updated dependencies
306
+ - [#31388](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31388)
307
+ [`0af4a6b6426`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0af4a6b6426) -
308
+ Dependency update json-ld-types@3.4.0
309
+ - Updated dependencies
295
310
 
296
311
  ## 2.0.0
297
312
 
298
313
  ### Patch Changes
299
314
 
300
- - Updated dependencies
315
+ - Updated dependencies
301
316
 
302
317
  ## 1.0.0
303
318
 
304
319
  ### Major Changes
305
320
 
306
- - [#30266](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30266)
307
- [`12223b3ee04`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12223b3ee04) - Move
308
- EditorCardProvider to new package instead of using imports from Link Provider and Smart Card
321
+ - [#30266](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30266)
322
+ [`12223b3ee04`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12223b3ee04) - Move
323
+ EditorCardProvider to new package instead of using imports from Link Provider and Smart Card
309
324
 
310
325
  ### Patch Changes
311
326
 
312
- - Updated dependencies
327
+ - Updated dependencies
package/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2022 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
@@ -340,6 +340,15 @@ var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function () {
340
340
  }
341
341
  return findPatternData;
342
342
  }()
343
+ /**
344
+ *
345
+ * Decides whether the url passed in should be embedded by default
346
+ *
347
+ * protected so that subclasses can override this in order to custom handle links embedded by default
348
+ *
349
+ * @param url
350
+ * @returns 'embed' for the card appearance to embed by default
351
+ */
343
352
  }, {
344
353
  key: "getHardCodedAppearance",
345
354
  value: function getHardCodedAppearance(url) {
@@ -124,6 +124,16 @@ export class EditorCardProvider {
124
124
  }
125
125
  return (_this$providersData2 = this.providersData) === null || _this$providersData2 === void 0 ? void 0 : _this$providersData2.patterns.find(pattern => url.match(pattern.source));
126
126
  }
127
+
128
+ /**
129
+ *
130
+ * Decides whether the url passed in should be embedded by default
131
+ *
132
+ * protected so that subclasses can override this in order to custom handle links embedded by default
133
+ *
134
+ * @param url
135
+ * @returns 'embed' for the card appearance to embed by default
136
+ */
127
137
  getHardCodedAppearance(url) {
128
138
  if (isJiraRoadmapOrTimeline(url) || isPolarisView(url) || isJwmView(url) || isJiraList(url) || isGiphyMedia(url) || isProformaView(url) || isConfluenceWhiteboard(url) || isConfluenceDatabase(url) || getBooleanFF('platform.linking-platform.embed-youtube-by-default') && isYoutubeVideo(url) || isLoomUrl(url) || isJiraDashboard(url)) {
129
139
  return 'embed';
@@ -333,6 +333,15 @@ export var EditorCardProvider = /*#__PURE__*/function () {
333
333
  }
334
334
  return findPatternData;
335
335
  }()
336
+ /**
337
+ *
338
+ * Decides whether the url passed in should be embedded by default
339
+ *
340
+ * protected so that subclasses can override this in order to custom handle links embedded by default
341
+ *
342
+ * @param url
343
+ * @returns 'embed' for the card appearance to embed by default
344
+ */
336
345
  }, {
337
346
  key: "getHardCodedAppearance",
338
347
  value: function getHardCodedAppearance(url) {
@@ -1,4 +1,4 @@
1
- import { JsonLd } from 'json-ld-types';
1
+ import { type JsonLd } from 'json-ld-types';
2
2
  export declare class NetworkError extends Error {
3
3
  constructor(error: any);
4
4
  }
@@ -19,7 +19,16 @@ export declare class EditorCardProvider implements CardProvider {
19
19
  private doesUrlMatchPath;
20
20
  private findUserPreference;
21
21
  private findPatternData;
22
- private getHardCodedAppearance;
22
+ /**
23
+ *
24
+ * Decides whether the url passed in should be embedded by default
25
+ *
26
+ * protected so that subclasses can override this in order to custom handle links embedded by default
27
+ *
28
+ * @param url
29
+ * @returns 'embed' for the card appearance to embed by default
30
+ */
31
+ protected getHardCodedAppearance(url: string): CardAppearance | undefined;
23
32
  /**
24
33
  * Make a /resolve call and find out if result has embed capability
25
34
  */
@@ -1,4 +1,4 @@
1
- import { CardAppearance, CardAdf, DatasourceAdf, Datasource } from '@atlaskit/linking-common';
1
+ import { type CardAppearance, type CardAdf, type DatasourceAdf, type Datasource } from '@atlaskit/linking-common';
2
2
  export declare class Transformer {
3
3
  private buildInlineAdf;
4
4
  private buildBlockAdf;
@@ -1,4 +1,4 @@
1
- import { CardAppearance } from '@atlaskit/linking-common';
1
+ import { type CardAppearance } from '@atlaskit/linking-common';
2
2
  export interface CardProvider {
3
3
  resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean): Promise<any>;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { JsonLd } from 'json-ld-types';
1
+ import { type JsonLd } from 'json-ld-types';
2
2
  export declare class NetworkError extends Error {
3
3
  constructor(error: any);
4
4
  }
@@ -19,7 +19,16 @@ export declare class EditorCardProvider implements CardProvider {
19
19
  private doesUrlMatchPath;
20
20
  private findUserPreference;
21
21
  private findPatternData;
22
- private getHardCodedAppearance;
22
+ /**
23
+ *
24
+ * Decides whether the url passed in should be embedded by default
25
+ *
26
+ * protected so that subclasses can override this in order to custom handle links embedded by default
27
+ *
28
+ * @param url
29
+ * @returns 'embed' for the card appearance to embed by default
30
+ */
31
+ protected getHardCodedAppearance(url: string): CardAppearance | undefined;
23
32
  /**
24
33
  * Make a /resolve call and find out if result has embed capability
25
34
  */
@@ -1,4 +1,4 @@
1
- import { CardAppearance, CardAdf, DatasourceAdf, Datasource } from '@atlaskit/linking-common';
1
+ import { type CardAppearance, type CardAdf, type DatasourceAdf, type Datasource } from '@atlaskit/linking-common';
2
2
  export declare class Transformer {
3
3
  private buildInlineAdf;
4
4
  private buildBlockAdf;
@@ -1,4 +1,4 @@
1
- import { CardAppearance } from '@atlaskit/linking-common';
1
+ import { type CardAppearance } from '@atlaskit/linking-common';
2
2
  export interface CardProvider {
3
3
  resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean): Promise<any>;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-card-provider",
3
- "version": "3.3.4",
3
+ "version": "3.3.6",
4
4
  "description": "Contains the EditorCardProvider, for determining smart card behaviour in the editor.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,10 +34,10 @@
34
34
  ".": "./src/index.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/eslint-plugin-platform": "0.6.1",
37
+ "@atlaskit/eslint-plugin-platform": "0.6.2",
38
38
  "@atlaskit/link-client-extension": "^1.8.0",
39
39
  "@atlaskit/link-extractors": "^1.5.0",
40
- "@atlaskit/linking-common": "^5.6.0",
40
+ "@atlaskit/linking-common": "^5.7.0",
41
41
  "@atlaskit/platform-feature-flags": "^0.2.1",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "dataloader": "^2.0.0",
@@ -45,11 +45,10 @@
45
45
  "setimmediate": "^1.0.5"
46
46
  },
47
47
  "peerDependencies": {
48
- "@atlaskit/link-provider": "^1.9.0",
48
+ "@atlaskit/link-provider": "^1.10.0",
49
49
  "react": "^16.8.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
53
52
  "@atlassian/feature-flags-test-utils": "^0.2.0",
54
53
  "typescript": "~5.4.2"
55
54
  },
@@ -63,6 +62,5 @@
63
62
  "platform.linking-platform.jira-dashboard-embed_ycjcj": {
64
63
  "type": "boolean"
65
64
  }
66
- },
67
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
65
+ }
68
66
  }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-card-provider"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -21,36 +22,32 @@ import { DatasourceAdf } from '@atlaskit/linking-common';
21
22
 
22
23
  // @public (undocumented)
23
24
  const BaseUrls: {
24
- dev: string;
25
- development: string;
26
- stg: string;
27
- staging: string;
28
- prd: string;
29
- prod: string;
30
- production: string;
25
+ dev: string;
26
+ development: string;
27
+ stg: string;
28
+ staging: string;
29
+ prd: string;
30
+ prod: string;
31
+ production: string;
31
32
  };
32
33
 
33
34
  // @public (undocumented)
34
35
  interface CardProvider {
35
- // (undocumented)
36
- resolve(
37
- url: string,
38
- appearance: CardAppearance,
39
- shouldForceAppearance?: boolean,
40
- ): Promise<any>;
36
+ // (undocumented)
37
+ resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean): Promise<any>;
41
38
  }
42
39
 
43
40
  // @public (undocumented)
44
41
  export class EditorCardProvider implements CardProvider {
45
- constructor(envKey?: EnvironmentsKeys, baseUrlOverride?: string);
46
- // (undocumented)
47
- findPattern(url: string): Promise<boolean>;
48
- // (undocumented)
49
- resolve(
50
- url: string,
51
- appearance: CardAppearance,
52
- shouldForceAppearance?: boolean,
53
- ): Promise<CardAdf | DatasourceAdf>;
42
+ constructor(envKey?: EnvironmentsKeys, baseUrlOverride?: string);
43
+ // (undocumented)
44
+ findPattern(url: string): Promise<boolean>;
45
+ // (undocumented)
46
+ resolve(
47
+ url: string,
48
+ appearance: CardAppearance,
49
+ shouldForceAppearance?: boolean,
50
+ ): Promise<CardAdf | DatasourceAdf>;
54
51
  }
55
52
 
56
53
  // @public (undocumented)
@@ -70,8 +67,8 @@ type EnvironmentsKeys = keyof typeof BaseUrls;
70
67
 
71
68
  ```json
72
69
  {
73
- "@atlaskit/link-provider": "^1.6.3",
74
- "react": "^16.8.0"
70
+ "@atlaskit/link-provider": "^1.6.3",
71
+ "react": "^16.8.0"
75
72
  }
76
73
  ```
77
74