@atlaskit/editor-card-provider 3.3.3 → 3.3.5

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,234 +1,318 @@
1
1
  # @atlaskit/editor-card-provider
2
2
 
3
+ ## 3.3.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.3.4
10
+
11
+ ### Patch Changes
12
+
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
16
+
3
17
  ## 3.3.3
4
18
 
5
19
  ### Patch Changes
6
20
 
7
- - [#86596](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86596) [`37621cb1f1b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/37621cb1f1b9) - Update dependency json-ld-types
8
- - Updated dependencies
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
9
25
 
10
26
  ## 3.3.2
11
27
 
12
28
  ### Patch Changes
13
29
 
14
- - [#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`
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`
15
33
 
16
34
  ## 3.3.1
17
35
 
18
36
  ### Patch Changes
19
37
 
20
- - [#81050](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81050) [`c15d7331e8b8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c15d7331e8b8) - We are updating the Jira List URL pattern as we recently update the urls
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
21
41
 
22
42
  ## 3.3.0
23
43
 
24
44
  ### Minor Changes
25
45
 
26
- - [#75659](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75659) [`28d133564298`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/28d133564298) - Removed duplicated version of environment.ts in editor-card-provider package and all usages were replaced with the corresponding type/function from linking-common.
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.
27
50
 
28
51
  ## 3.2.0
29
52
 
30
53
  ### Minor Changes
31
54
 
32
- - [#74458](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74458) [`c40e977de5da`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c40e977de5da) - [ux] List view links will be converted into smart link embed by default
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
33
58
 
34
59
  ## 3.1.17
35
60
 
36
61
  ### Patch Changes
37
62
 
38
- - [#72315](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72315) [`818ff8704f34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/818ff8704f34) - Updated default smart card view for Confluence Databases to include default for savedViewId
39
- - [#71047](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71047) [`931a7edba41e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/931a7edba41e) - update window.location usage to be compatible with SSR
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
40
69
 
41
70
  ## 3.1.16
42
71
 
43
72
  ### Patch Changes
44
73
 
45
- - [#68764](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68764) [`59b851a5d621`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/59b851a5d621) - [ux] Render Polaris (Jira Product Discovery) published view as an embed by default
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
46
77
 
47
78
  ## 3.1.15
48
79
 
49
80
  ### Patch Changes
50
81
 
51
- - [#68194](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68194) [`c1d4a8fecc4e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c1d4a8fecc4e) - bump json-ld-types to version 3.11.0
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
52
85
 
53
86
  ## 3.1.14
54
87
 
55
88
  ### Patch Changes
56
89
 
57
- - [#66881](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66881) [`d940eeab50d9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d940eeab50d9) - [ux] Updated default smart card view for Confluence Databases to include all-entries for savedViewId and only uuid for unsavedView
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
58
94
 
59
95
  ## 3.1.13
60
96
 
61
97
  ### Patch Changes
62
98
 
63
- - Updated dependencies
99
+ - Updated dependencies
64
100
 
65
101
  ## 3.1.12
66
102
 
67
103
  ### Patch Changes
68
104
 
69
- - [#63428](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63428) [`441be131933f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/441be131933f) - [ux] make youtube videos embed by default
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
70
108
 
71
109
  ## 3.1.11
72
110
 
73
111
  ### Patch Changes
74
112
 
75
- - [#62385](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62385) [`f3e422857a54`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f3e422857a54) - [ux] Updated default smart card view for Confluence Databases to include check for unsavedView parameter
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
76
117
 
77
118
  ## 3.1.10
78
119
 
79
120
  ### Patch Changes
80
121
 
81
- - [#42239](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42239) [`3ebc0b4f999`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ebc0b4f999) - [ux] Updated default smart card view for Confluence Databases to include check for entryId and savedViewId parameters
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
82
126
 
83
127
  ## 3.1.9
84
128
 
85
129
  ### Patch Changes
86
130
 
87
- - [#40406](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40406) [`542d0dd0b1d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/542d0dd0b1d) - [ux] Changed default smart card view for Confluence Databases route from inline to embed.
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.
88
134
 
89
135
  ## 3.1.8
90
136
 
91
137
  ### Patch Changes
92
138
 
93
- - [#40491](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40491) [`1fedffbd64b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1fedffbd64b) - Update json-ld-types dependencies to be compatible with version
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
94
142
 
95
143
  ## 3.1.7
96
144
 
97
145
  ### Patch Changes
98
146
 
99
- - [#40127](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40127) [`2cd7af71b63`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cd7af71b63) - Bump json-ld-types 3.8.0 -> 3.9.1
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
100
150
 
101
151
  ## 3.1.6
102
152
 
103
153
  ### Patch Changes
104
154
 
105
- - [#37720](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37720) [`e74ae7f06d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e74ae7f06d4) - Update dependency json-ld-types@3.8.0
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
106
158
 
107
159
  ## 3.1.5
108
160
 
109
161
  ### Patch Changes
110
162
 
111
- - [#37136](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37136) [`83f06b6e7f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/83f06b6e7f6) - Update to use 'getStatus' from '@atlaskit/linking-common'
112
- - Updated dependencies
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
113
167
 
114
168
  ## 3.1.4
115
169
 
116
170
  ### Patch Changes
117
171
 
118
- - [#37340](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37340) [`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt out of peer dependency enforcement
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
119
175
 
120
176
  ## 3.1.3
121
177
 
122
178
  ### Patch Changes
123
179
 
124
- - Updated dependencies
180
+ - Updated dependencies
125
181
 
126
182
  ## 3.1.2
127
183
 
128
184
  ### Patch Changes
129
185
 
130
- - [#36757](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36757) [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
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
131
189
 
132
190
  ## 3.1.1
133
191
 
134
192
  ### Patch Changes
135
193
 
136
- - [#36089](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36089) [`1e7190077d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e7190077d4) - Move off deprecated @atlaskit/linking-common/extractors to @atlaskit/link-extractors
137
- - Updated dependencies
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
138
198
 
139
199
  ## 3.1.0
140
200
 
141
201
  ### Minor Changes
142
202
 
143
- - [#35032](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35032) [`04295e9d5bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/04295e9d5bc) - [ux] Updating ORS response to include datasources and facilitating pasting JQL links turning into datasource tables
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
144
207
 
145
208
  ### Patch Changes
146
209
 
147
- - Updated dependencies
210
+ - Updated dependencies
148
211
 
149
212
  ## 3.0.5
150
213
 
151
214
  ### Patch Changes
152
215
 
153
- - Updated dependencies
216
+ - Updated dependencies
154
217
 
155
218
  ## 3.0.4
156
219
 
157
220
  ### Patch Changes
158
221
 
159
- - [#35428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35428) [`1674b5907b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1674b5907b4) - [ux] Make confluence whiteboard urls default to embed view
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
160
225
 
161
226
  ## 3.0.3
162
227
 
163
228
  ### Patch Changes
164
229
 
165
- - [#33699](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33699) [`f10ed88032c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f10ed88032c) - With the renaming of Jira Roadmaps to Timeline, we are updating the regex rules to match timeline in conjunction to roadmaps
166
- - Updated dependencies
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
167
235
 
168
236
  ## 3.0.2
169
237
 
170
238
  ### Patch Changes
171
239
 
172
- - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
173
- - Updated dependencies
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
174
244
 
175
245
  ## 3.0.1
176
246
 
177
247
  ### Patch Changes
178
248
 
179
- - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
180
- - Updated dependencies
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
181
253
 
182
254
  ## 3.0.0
183
255
 
184
256
  ### Minor Changes
185
257
 
186
- - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
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
187
261
 
188
262
  ### Patch Changes
189
263
 
190
- - Updated dependencies
264
+ - Updated dependencies
191
265
 
192
266
  ## 2.0.4
193
267
 
194
268
  ### Patch Changes
195
269
 
196
- - [#32541](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32541) [`0624df1ffe1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0624df1ffe1) - Bump json-ld-types dependency
197
- - Updated dependencies
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
198
274
 
199
275
  ## 2.0.3
200
276
 
201
277
  ### Patch Changes
202
278
 
203
- - [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
204
- - Updated dependencies
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
205
283
 
206
284
  ## 2.0.2
207
285
 
208
286
  ### Patch Changes
209
287
 
210
- - [#32360](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32360) [`0ee9370595a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ee9370595a) - Update json-ld-types
211
- - Updated dependencies
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
212
292
 
213
293
  ## 2.0.1
214
294
 
215
295
  ### Patch Changes
216
296
 
217
- - [#31388](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31388) [`0af4a6b6426`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0af4a6b6426) - Dependency update json-ld-types@3.4.0
218
- - Updated dependencies
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
219
301
 
220
302
  ## 2.0.0
221
303
 
222
304
  ### Patch Changes
223
305
 
224
- - Updated dependencies
306
+ - Updated dependencies
225
307
 
226
308
  ## 1.0.0
227
309
 
228
310
  ### Major Changes
229
311
 
230
- - [#30266](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30266) [`12223b3ee04`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12223b3ee04) - Move EditorCardProvider to new package instead of using imports from Link Provider and Smart Card
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
231
315
 
232
316
  ### Patch Changes
233
317
 
234
- - Updated dependencies
318
+ - Updated dependencies
@@ -60,6 +60,20 @@ var isConfluenceDatabase = function isConfluenceDatabase(url) {
60
60
  var isYoutubeVideo = function isYoutubeVideo(url) {
61
61
  return url.match(/^https:\/\/(.*?\.)?(youtube\..*?\/(watch\?|v\/|shorts\/)|youtu\.be)/);
62
62
  };
63
+ var isLoomUrl = function isLoomUrl(url) {
64
+ if (!(0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.embed-loom-by-default')) {
65
+ return null;
66
+ }
67
+ return url.match( /*#__PURE__*/_wrapRegExp(/^https:\/\/(.*?\.)?(loom\..*?\/(share|embed))\/([a-zA-Z0-9-]*\x2D)?([a-f0-9]{32})/, {
68
+ videoId: 5
69
+ }));
70
+ };
71
+ var isJiraDashboard = function isJiraDashboard(url) {
72
+ if (!(0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.jira-dashboard-embed_ycjcj')) {
73
+ return null;
74
+ }
75
+ return url.match(/^https:\/\/.*?\/jira\/dashboards\/[0-9]+.*/);
76
+ };
63
77
  var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function () {
64
78
  function EditorCardProvider(envKey, baseUrlOverride) {
65
79
  var _this = this;
@@ -329,7 +343,7 @@ var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function () {
329
343
  }, {
330
344
  key: "getHardCodedAppearance",
331
345
  value: function getHardCodedAppearance(url) {
332
- if (isJiraRoadmapOrTimeline(url) || isPolarisView(url) || isJwmView(url) || isJiraList(url) || isGiphyMedia(url) || isProformaView(url) || isConfluenceWhiteboard(url) || isConfluenceDatabase(url) || (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.embed-youtube-by-default') && isYoutubeVideo(url)) {
346
+ if (isJiraRoadmapOrTimeline(url) || isPolarisView(url) || isJwmView(url) || isJiraList(url) || isGiphyMedia(url) || isProformaView(url) || isConfluenceWhiteboard(url) || isConfluenceDatabase(url) || (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.embed-youtube-by-default') && isYoutubeVideo(url) || isLoomUrl(url) || isJiraDashboard(url)) {
333
347
  return 'embed';
334
348
  }
335
349
  }
@@ -22,6 +22,18 @@ const isProformaView = url => url.match(/^https:\/\/[^/]+\/jira\/(core|software(
22
22
  const isConfluenceWhiteboard = url => url.match(/\/wiki\/spaces\/?.*\/whiteboard\/(?<resourceId>\d+)(\?\/)?/) || url.match(/\/wiki\/spaces\/?.*\/whiteboard\/(?<resourceId>[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12})(\?\/)?/);
23
23
  const isConfluenceDatabase = url => url.match(/\/wiki\/spaces\/~?[\d\w]+\/database\/\d+(\?.*(savedViewId=([0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}|all-entries|default)|entryId=[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}|unsavedView=[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}).*)?$/);
24
24
  const isYoutubeVideo = url => url.match(/^https:\/\/(.*?\.)?(youtube\..*?\/(watch\?|v\/|shorts\/)|youtu\.be)/);
25
+ const isLoomUrl = url => {
26
+ if (!getBooleanFF('platform.linking-platform.embed-loom-by-default')) {
27
+ return null;
28
+ }
29
+ return url.match(/^https:\/\/(.*?\.)?(loom\..*?\/(share|embed))\/([a-zA-Z0-9-]*-)?(?<videoId>[a-f0-9]{32})/);
30
+ };
31
+ const isJiraDashboard = url => {
32
+ if (!getBooleanFF('platform.linking-platform.jira-dashboard-embed_ycjcj')) {
33
+ return null;
34
+ }
35
+ return url.match(/^https:\/\/.*?\/jira\/dashboards\/[0-9]+.*/);
36
+ };
25
37
  export class EditorCardProvider {
26
38
  constructor(envKey, baseUrlOverride) {
27
39
  this.baseUrl = baseUrlOverride || getBaseUrl(envKey);
@@ -113,7 +125,7 @@ export class EditorCardProvider {
113
125
  return (_this$providersData2 = this.providersData) === null || _this$providersData2 === void 0 ? void 0 : _this$providersData2.patterns.find(pattern => url.match(pattern.source));
114
126
  }
115
127
  getHardCodedAppearance(url) {
116
- 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)) {
128
+ 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)) {
117
129
  return 'embed';
118
130
  }
119
131
  }
@@ -53,6 +53,20 @@ var isConfluenceDatabase = function isConfluenceDatabase(url) {
53
53
  var isYoutubeVideo = function isYoutubeVideo(url) {
54
54
  return url.match(/^https:\/\/(.*?\.)?(youtube\..*?\/(watch\?|v\/|shorts\/)|youtu\.be)/);
55
55
  };
56
+ var isLoomUrl = function isLoomUrl(url) {
57
+ if (!getBooleanFF('platform.linking-platform.embed-loom-by-default')) {
58
+ return null;
59
+ }
60
+ return url.match( /*#__PURE__*/_wrapRegExp(/^https:\/\/(.*?\.)?(loom\..*?\/(share|embed))\/([a-zA-Z0-9-]*\x2D)?([a-f0-9]{32})/, {
61
+ videoId: 5
62
+ }));
63
+ };
64
+ var isJiraDashboard = function isJiraDashboard(url) {
65
+ if (!getBooleanFF('platform.linking-platform.jira-dashboard-embed_ycjcj')) {
66
+ return null;
67
+ }
68
+ return url.match(/^https:\/\/.*?\/jira\/dashboards\/[0-9]+.*/);
69
+ };
56
70
  export var EditorCardProvider = /*#__PURE__*/function () {
57
71
  function EditorCardProvider(envKey, baseUrlOverride) {
58
72
  var _this = this;
@@ -322,7 +336,7 @@ export var EditorCardProvider = /*#__PURE__*/function () {
322
336
  }, {
323
337
  key: "getHardCodedAppearance",
324
338
  value: function getHardCodedAppearance(url) {
325
- 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)) {
339
+ 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)) {
326
340
  return 'embed';
327
341
  }
328
342
  }
@@ -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
  }
@@ -1,7 +1,7 @@
1
1
  import 'setimmediate';
2
- import { CardAdf, CardAppearance, DatasourceAdf } from '@atlaskit/linking-common';
3
- import { CardProvider } from './types';
4
- import { EnvironmentsKeys } from '@atlaskit/linking-common';
2
+ import { type CardAdf, type CardAppearance, type DatasourceAdf } from '@atlaskit/linking-common';
3
+ import { type CardProvider } from './types';
4
+ import { type EnvironmentsKeys } from '@atlaskit/linking-common';
5
5
  export declare class EditorCardProvider implements CardProvider {
6
6
  private baseUrl;
7
7
  private resolverUrl;
@@ -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
  }
@@ -1,7 +1,7 @@
1
1
  import 'setimmediate';
2
- import { CardAdf, CardAppearance, DatasourceAdf } from '@atlaskit/linking-common';
3
- import { CardProvider } from './types';
4
- import { EnvironmentsKeys } from '@atlaskit/linking-common';
2
+ import { type CardAdf, type CardAppearance, type DatasourceAdf } from '@atlaskit/linking-common';
3
+ import { type CardProvider } from './types';
4
+ import { type EnvironmentsKeys } from '@atlaskit/linking-common';
5
5
  export declare class EditorCardProvider implements CardProvider {
6
6
  private baseUrl;
7
7
  private resolverUrl;
@@ -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.3",
3
+ "version": "3.3.5",
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,9 +34,10 @@
34
34
  ".": "./src/index.ts"
35
35
  },
36
36
  "dependencies": {
37
+ "@atlaskit/eslint-plugin-platform": "0.6.2",
37
38
  "@atlaskit/link-client-extension": "^1.8.0",
38
- "@atlaskit/link-extractors": "^1.3.0",
39
- "@atlaskit/linking-common": "^5.6.0",
39
+ "@atlaskit/link-extractors": "^1.5.0",
40
+ "@atlaskit/linking-common": "^5.7.0",
40
41
  "@atlaskit/platform-feature-flags": "^0.2.1",
41
42
  "@babel/runtime": "^7.0.0",
42
43
  "dataloader": "^2.0.0",
@@ -55,6 +56,12 @@
55
56
  "platform-feature-flags": {
56
57
  "platform.linking-platform.embed-youtube-by-default": {
57
58
  "type": "boolean"
59
+ },
60
+ "platform.linking-platform.embed-loom-by-default": {
61
+ "type": "boolean"
62
+ },
63
+ "platform.linking-platform.jira-dashboard-embed_ycjcj": {
64
+ "type": "boolean"
58
65
  }
59
66
  },
60
67
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"