@atlaskit/editor-card-provider 3.3.5 → 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,318 +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
+
3
12
  ## 3.3.5
4
13
 
5
14
  ### Patch Changes
6
15
 
7
- - Updated dependencies
16
+ - Updated dependencies
8
17
 
9
18
  ## 3.3.4
10
19
 
11
20
  ### Patch Changes
12
21
 
13
- - [#98840](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98840)
14
- [`cff3be4e0774`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cff3be4e0774) -
15
- 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
16
25
 
17
26
  ## 3.3.3
18
27
 
19
28
  ### Patch Changes
20
29
 
21
- - [#86596](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86596)
22
- [`37621cb1f1b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/37621cb1f1b9) -
23
- Update dependency json-ld-types
24
- - 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
25
34
 
26
35
  ## 3.3.2
27
36
 
28
37
  ### Patch Changes
29
38
 
30
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
31
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
32
- 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`
33
42
 
34
43
  ## 3.3.1
35
44
 
36
45
  ### Patch Changes
37
46
 
38
- - [#81050](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81050)
39
- [`c15d7331e8b8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c15d7331e8b8) -
40
- 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
41
50
 
42
51
  ## 3.3.0
43
52
 
44
53
  ### Minor Changes
45
54
 
46
- - [#75659](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75659)
47
- [`28d133564298`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/28d133564298) -
48
- Removed duplicated version of environment.ts in editor-card-provider package and all usages were
49
- 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.
50
59
 
51
60
  ## 3.2.0
52
61
 
53
62
  ### Minor Changes
54
63
 
55
- - [#74458](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74458)
56
- [`c40e977de5da`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c40e977de5da) -
57
- [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
58
67
 
59
68
  ## 3.1.17
60
69
 
61
70
  ### Patch Changes
62
71
 
63
- - [#72315](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72315)
64
- [`818ff8704f34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/818ff8704f34) -
65
- Updated default smart card view for Confluence Databases to include default for savedViewId
66
- - [#71047](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71047)
67
- [`931a7edba41e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/931a7edba41e) -
68
- 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
69
78
 
70
79
  ## 3.1.16
71
80
 
72
81
  ### Patch Changes
73
82
 
74
- - [#68764](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68764)
75
- [`59b851a5d621`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/59b851a5d621) -
76
- [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
77
86
 
78
87
  ## 3.1.15
79
88
 
80
89
  ### Patch Changes
81
90
 
82
- - [#68194](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68194)
83
- [`c1d4a8fecc4e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c1d4a8fecc4e) -
84
- 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
85
94
 
86
95
  ## 3.1.14
87
96
 
88
97
  ### Patch Changes
89
98
 
90
- - [#66881](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66881)
91
- [`d940eeab50d9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d940eeab50d9) -
92
- [ux] Updated default smart card view for Confluence Databases to include all-entries for
93
- 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
94
103
 
95
104
  ## 3.1.13
96
105
 
97
106
  ### Patch Changes
98
107
 
99
- - Updated dependencies
108
+ - Updated dependencies
100
109
 
101
110
  ## 3.1.12
102
111
 
103
112
  ### Patch Changes
104
113
 
105
- - [#63428](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63428)
106
- [`441be131933f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/441be131933f) -
107
- [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
108
117
 
109
118
  ## 3.1.11
110
119
 
111
120
  ### Patch Changes
112
121
 
113
- - [#62385](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62385)
114
- [`f3e422857a54`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f3e422857a54) -
115
- [ux] Updated default smart card view for Confluence Databases to include check for unsavedView
116
- 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
117
126
 
118
127
  ## 3.1.10
119
128
 
120
129
  ### Patch Changes
121
130
 
122
- - [#42239](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42239)
123
- [`3ebc0b4f999`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ebc0b4f999) - [ux]
124
- Updated default smart card view for Confluence Databases to include check for entryId and
125
- 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
126
135
 
127
136
  ## 3.1.9
128
137
 
129
138
  ### Patch Changes
130
139
 
131
- - [#40406](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40406)
132
- [`542d0dd0b1d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/542d0dd0b1d) - [ux]
133
- 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.
134
143
 
135
144
  ## 3.1.8
136
145
 
137
146
  ### Patch Changes
138
147
 
139
- - [#40491](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40491)
140
- [`1fedffbd64b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1fedffbd64b) - Update
141
- 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
142
151
 
143
152
  ## 3.1.7
144
153
 
145
154
  ### Patch Changes
146
155
 
147
- - [#40127](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40127)
148
- [`2cd7af71b63`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cd7af71b63) - Bump
149
- 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
150
159
 
151
160
  ## 3.1.6
152
161
 
153
162
  ### Patch Changes
154
163
 
155
- - [#37720](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37720)
156
- [`e74ae7f06d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e74ae7f06d4) - Update
157
- 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
158
167
 
159
168
  ## 3.1.5
160
169
 
161
170
  ### Patch Changes
162
171
 
163
- - [#37136](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37136)
164
- [`83f06b6e7f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/83f06b6e7f6) - Update
165
- to use 'getStatus' from '@atlaskit/linking-common'
166
- - 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
167
176
 
168
177
  ## 3.1.4
169
178
 
170
179
  ### Patch Changes
171
180
 
172
- - [#37340](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37340)
173
- [`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt
174
- 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
175
184
 
176
185
  ## 3.1.3
177
186
 
178
187
  ### Patch Changes
179
188
 
180
- - Updated dependencies
189
+ - Updated dependencies
181
190
 
182
191
  ## 3.1.2
183
192
 
184
193
  ### Patch Changes
185
194
 
186
- - [#36757](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36757)
187
- [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add
188
- 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
189
198
 
190
199
  ## 3.1.1
191
200
 
192
201
  ### Patch Changes
193
202
 
194
- - [#36089](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36089)
195
- [`1e7190077d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e7190077d4) - Move
196
- off deprecated @atlaskit/linking-common/extractors to @atlaskit/link-extractors
197
- - 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
198
207
 
199
208
  ## 3.1.0
200
209
 
201
210
  ### Minor Changes
202
211
 
203
- - [#35032](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35032)
204
- [`04295e9d5bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/04295e9d5bc) - [ux]
205
- Updating ORS response to include datasources and facilitating pasting JQL links turning into
206
- 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
207
216
 
208
217
  ### Patch Changes
209
218
 
210
- - Updated dependencies
219
+ - Updated dependencies
211
220
 
212
221
  ## 3.0.5
213
222
 
214
223
  ### Patch Changes
215
224
 
216
- - Updated dependencies
225
+ - Updated dependencies
217
226
 
218
227
  ## 3.0.4
219
228
 
220
229
  ### Patch Changes
221
230
 
222
- - [#35428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35428)
223
- [`1674b5907b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1674b5907b4) - [ux]
224
- 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
225
234
 
226
235
  ## 3.0.3
227
236
 
228
237
  ### Patch Changes
229
238
 
230
- - [#33699](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33699)
231
- [`f10ed88032c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f10ed88032c) - With
232
- the renaming of Jira Roadmaps to Timeline, we are updating the regex rules to match timeline in
233
- conjunction to roadmaps
234
- - 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
235
244
 
236
245
  ## 3.0.2
237
246
 
238
247
  ### Patch Changes
239
248
 
240
- - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
241
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
242
- legacy types are published for TS 4.5-4.8
243
- - 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
244
253
 
245
254
  ## 3.0.1
246
255
 
247
256
  ### Patch Changes
248
257
 
249
- - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
250
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) -
251
- Upgrade Typescript from `4.5.5` to `4.9.5`
252
- - 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
253
262
 
254
263
  ## 3.0.0
255
264
 
256
265
  ### Minor Changes
257
266
 
258
- - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
259
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
260
- 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
261
270
 
262
271
  ### Patch Changes
263
272
 
264
- - Updated dependencies
273
+ - Updated dependencies
265
274
 
266
275
  ## 2.0.4
267
276
 
268
277
  ### Patch Changes
269
278
 
270
- - [#32541](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32541)
271
- [`0624df1ffe1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0624df1ffe1) - Bump
272
- json-ld-types dependency
273
- - 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
274
283
 
275
284
  ## 2.0.3
276
285
 
277
286
  ### Patch Changes
278
287
 
279
- - [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424)
280
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY
281
- remove before merging to master; dupe adf-schema via adf-utils
282
- - 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
283
292
 
284
293
  ## 2.0.2
285
294
 
286
295
  ### Patch Changes
287
296
 
288
- - [#32360](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32360)
289
- [`0ee9370595a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ee9370595a) - Update
290
- json-ld-types
291
- - 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
292
301
 
293
302
  ## 2.0.1
294
303
 
295
304
  ### Patch Changes
296
305
 
297
- - [#31388](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31388)
298
- [`0af4a6b6426`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0af4a6b6426) -
299
- Dependency update json-ld-types@3.4.0
300
- - 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
301
310
 
302
311
  ## 2.0.0
303
312
 
304
313
  ### Patch Changes
305
314
 
306
- - Updated dependencies
315
+ - Updated dependencies
307
316
 
308
317
  ## 1.0.0
309
318
 
310
319
  ### Major Changes
311
320
 
312
- - [#30266](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30266)
313
- [`12223b3ee04`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12223b3ee04) - Move
314
- 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
315
324
 
316
325
  ### Patch Changes
317
326
 
318
- - 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) {
@@ -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
  */
@@ -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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-card-provider",
3
- "version": "3.3.5",
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",
@@ -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