@atlaskit/editor-card-provider 3.3.5 → 3.4.0
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 +141 -123
- package/LICENSE.md +6 -8
- package/dist/cjs/provider.js +13 -1
- package/dist/es2019/provider.js +14 -1
- package/dist/esm/provider.js +13 -1
- package/dist/types/provider.d.ts +12 -3
- package/dist/types-ts4.5/provider.d.ts +12 -3
- package/package.json +65 -67
- package/report.api.md +22 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,318 +1,336 @@
|
|
|
1
1
|
# @atlaskit/editor-card-provider
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#112094](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112094)
|
|
8
|
+
[`b19771fec1a43`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b19771fec1a43) -
|
|
9
|
+
Accept additional optional product arg in provider that will be forwarded as X-Product header to
|
|
10
|
+
ORSbatch resolve endpoint
|
|
11
|
+
|
|
12
|
+
## 3.3.6
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#107009](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107009)
|
|
17
|
+
[`4eb69d60f58f4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4eb69d60f58f4) -
|
|
18
|
+
Make getHardCodedAppearance protected so that subclasses can override this in order to handle link
|
|
19
|
+
embedded by default
|
|
20
|
+
|
|
3
21
|
## 3.3.5
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
6
24
|
|
|
7
|
-
-
|
|
25
|
+
- Updated dependencies
|
|
8
26
|
|
|
9
27
|
## 3.3.4
|
|
10
28
|
|
|
11
29
|
### Patch Changes
|
|
12
30
|
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
31
|
+
- [#98840](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98840)
|
|
32
|
+
[`cff3be4e0774`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cff3be4e0774) -
|
|
33
|
+
Default Jira dashboard to embed appearance
|
|
16
34
|
|
|
17
35
|
## 3.3.3
|
|
18
36
|
|
|
19
37
|
### Patch Changes
|
|
20
38
|
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
39
|
+
- [#86596](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86596)
|
|
40
|
+
[`37621cb1f1b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/37621cb1f1b9) -
|
|
41
|
+
Update dependency json-ld-types
|
|
42
|
+
- Updated dependencies
|
|
25
43
|
|
|
26
44
|
## 3.3.2
|
|
27
45
|
|
|
28
46
|
### Patch Changes
|
|
29
47
|
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
48
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
49
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
50
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
33
51
|
|
|
34
52
|
## 3.3.1
|
|
35
53
|
|
|
36
54
|
### Patch Changes
|
|
37
55
|
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
56
|
+
- [#81050](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81050)
|
|
57
|
+
[`c15d7331e8b8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c15d7331e8b8) -
|
|
58
|
+
We are updating the Jira List URL pattern as we recently update the urls
|
|
41
59
|
|
|
42
60
|
## 3.3.0
|
|
43
61
|
|
|
44
62
|
### Minor Changes
|
|
45
63
|
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
64
|
+
- [#75659](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75659)
|
|
65
|
+
[`28d133564298`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/28d133564298) -
|
|
66
|
+
Removed duplicated version of environment.ts in editor-card-provider package and all usages were
|
|
67
|
+
replaced with the corresponding type/function from linking-common.
|
|
50
68
|
|
|
51
69
|
## 3.2.0
|
|
52
70
|
|
|
53
71
|
### Minor Changes
|
|
54
72
|
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
73
|
+
- [#74458](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74458)
|
|
74
|
+
[`c40e977de5da`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c40e977de5da) -
|
|
75
|
+
[ux] List view links will be converted into smart link embed by default
|
|
58
76
|
|
|
59
77
|
## 3.1.17
|
|
60
78
|
|
|
61
79
|
### Patch Changes
|
|
62
80
|
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
81
|
+
- [#72315](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72315)
|
|
82
|
+
[`818ff8704f34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/818ff8704f34) -
|
|
83
|
+
Updated default smart card view for Confluence Databases to include default for savedViewId
|
|
84
|
+
- [#71047](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71047)
|
|
85
|
+
[`931a7edba41e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/931a7edba41e) -
|
|
86
|
+
update window.location usage to be compatible with SSR
|
|
69
87
|
|
|
70
88
|
## 3.1.16
|
|
71
89
|
|
|
72
90
|
### Patch Changes
|
|
73
91
|
|
|
74
|
-
-
|
|
75
|
-
|
|
76
|
-
|
|
92
|
+
- [#68764](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68764)
|
|
93
|
+
[`59b851a5d621`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/59b851a5d621) -
|
|
94
|
+
[ux] Render Polaris (Jira Product Discovery) published view as an embed by default
|
|
77
95
|
|
|
78
96
|
## 3.1.15
|
|
79
97
|
|
|
80
98
|
### Patch Changes
|
|
81
99
|
|
|
82
|
-
-
|
|
83
|
-
|
|
84
|
-
|
|
100
|
+
- [#68194](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68194)
|
|
101
|
+
[`c1d4a8fecc4e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c1d4a8fecc4e) -
|
|
102
|
+
bump json-ld-types to version 3.11.0
|
|
85
103
|
|
|
86
104
|
## 3.1.14
|
|
87
105
|
|
|
88
106
|
### Patch Changes
|
|
89
107
|
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
108
|
+
- [#66881](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66881)
|
|
109
|
+
[`d940eeab50d9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d940eeab50d9) -
|
|
110
|
+
[ux] Updated default smart card view for Confluence Databases to include all-entries for
|
|
111
|
+
savedViewId and only uuid for unsavedView
|
|
94
112
|
|
|
95
113
|
## 3.1.13
|
|
96
114
|
|
|
97
115
|
### Patch Changes
|
|
98
116
|
|
|
99
|
-
-
|
|
117
|
+
- Updated dependencies
|
|
100
118
|
|
|
101
119
|
## 3.1.12
|
|
102
120
|
|
|
103
121
|
### Patch Changes
|
|
104
122
|
|
|
105
|
-
-
|
|
106
|
-
|
|
107
|
-
|
|
123
|
+
- [#63428](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63428)
|
|
124
|
+
[`441be131933f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/441be131933f) -
|
|
125
|
+
[ux] make youtube videos embed by default
|
|
108
126
|
|
|
109
127
|
## 3.1.11
|
|
110
128
|
|
|
111
129
|
### Patch Changes
|
|
112
130
|
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
131
|
+
- [#62385](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62385)
|
|
132
|
+
[`f3e422857a54`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f3e422857a54) -
|
|
133
|
+
[ux] Updated default smart card view for Confluence Databases to include check for unsavedView
|
|
134
|
+
parameter
|
|
117
135
|
|
|
118
136
|
## 3.1.10
|
|
119
137
|
|
|
120
138
|
### Patch Changes
|
|
121
139
|
|
|
122
|
-
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
140
|
+
- [#42239](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42239)
|
|
141
|
+
[`3ebc0b4f999`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ebc0b4f999) - [ux]
|
|
142
|
+
Updated default smart card view for Confluence Databases to include check for entryId and
|
|
143
|
+
savedViewId parameters
|
|
126
144
|
|
|
127
145
|
## 3.1.9
|
|
128
146
|
|
|
129
147
|
### Patch Changes
|
|
130
148
|
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
149
|
+
- [#40406](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40406)
|
|
150
|
+
[`542d0dd0b1d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/542d0dd0b1d) - [ux]
|
|
151
|
+
Changed default smart card view for Confluence Databases route from inline to embed.
|
|
134
152
|
|
|
135
153
|
## 3.1.8
|
|
136
154
|
|
|
137
155
|
### Patch Changes
|
|
138
156
|
|
|
139
|
-
-
|
|
140
|
-
|
|
141
|
-
|
|
157
|
+
- [#40491](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40491)
|
|
158
|
+
[`1fedffbd64b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1fedffbd64b) - Update
|
|
159
|
+
json-ld-types dependencies to be compatible with version
|
|
142
160
|
|
|
143
161
|
## 3.1.7
|
|
144
162
|
|
|
145
163
|
### Patch Changes
|
|
146
164
|
|
|
147
|
-
-
|
|
148
|
-
|
|
149
|
-
|
|
165
|
+
- [#40127](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40127)
|
|
166
|
+
[`2cd7af71b63`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cd7af71b63) - Bump
|
|
167
|
+
json-ld-types 3.8.0 -> 3.9.1
|
|
150
168
|
|
|
151
169
|
## 3.1.6
|
|
152
170
|
|
|
153
171
|
### Patch Changes
|
|
154
172
|
|
|
155
|
-
-
|
|
156
|
-
|
|
157
|
-
|
|
173
|
+
- [#37720](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37720)
|
|
174
|
+
[`e74ae7f06d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e74ae7f06d4) - Update
|
|
175
|
+
dependency json-ld-types@3.8.0
|
|
158
176
|
|
|
159
177
|
## 3.1.5
|
|
160
178
|
|
|
161
179
|
### Patch Changes
|
|
162
180
|
|
|
163
|
-
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
-
|
|
181
|
+
- [#37136](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37136)
|
|
182
|
+
[`83f06b6e7f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/83f06b6e7f6) - Update
|
|
183
|
+
to use 'getStatus' from '@atlaskit/linking-common'
|
|
184
|
+
- Updated dependencies
|
|
167
185
|
|
|
168
186
|
## 3.1.4
|
|
169
187
|
|
|
170
188
|
### Patch Changes
|
|
171
189
|
|
|
172
|
-
-
|
|
173
|
-
|
|
174
|
-
|
|
190
|
+
- [#37340](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37340)
|
|
191
|
+
[`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt out
|
|
192
|
+
of peer dependency enforcement
|
|
175
193
|
|
|
176
194
|
## 3.1.3
|
|
177
195
|
|
|
178
196
|
### Patch Changes
|
|
179
197
|
|
|
180
|
-
-
|
|
198
|
+
- Updated dependencies
|
|
181
199
|
|
|
182
200
|
## 3.1.2
|
|
183
201
|
|
|
184
202
|
### Patch Changes
|
|
185
203
|
|
|
186
|
-
-
|
|
187
|
-
|
|
188
|
-
|
|
204
|
+
- [#36757](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36757)
|
|
205
|
+
[`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add
|
|
206
|
+
postinstall check to enforce internal peer dependencies
|
|
189
207
|
|
|
190
208
|
## 3.1.1
|
|
191
209
|
|
|
192
210
|
### Patch Changes
|
|
193
211
|
|
|
194
|
-
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
-
|
|
212
|
+
- [#36089](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36089)
|
|
213
|
+
[`1e7190077d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e7190077d4) - Move off
|
|
214
|
+
deprecated @atlaskit/linking-common/extractors to @atlaskit/link-extractors
|
|
215
|
+
- Updated dependencies
|
|
198
216
|
|
|
199
217
|
## 3.1.0
|
|
200
218
|
|
|
201
219
|
### Minor Changes
|
|
202
220
|
|
|
203
|
-
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
221
|
+
- [#35032](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35032)
|
|
222
|
+
[`04295e9d5bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/04295e9d5bc) - [ux]
|
|
223
|
+
Updating ORS response to include datasources and facilitating pasting JQL links turning into
|
|
224
|
+
datasource tables
|
|
207
225
|
|
|
208
226
|
### Patch Changes
|
|
209
227
|
|
|
210
|
-
-
|
|
228
|
+
- Updated dependencies
|
|
211
229
|
|
|
212
230
|
## 3.0.5
|
|
213
231
|
|
|
214
232
|
### Patch Changes
|
|
215
233
|
|
|
216
|
-
-
|
|
234
|
+
- Updated dependencies
|
|
217
235
|
|
|
218
236
|
## 3.0.4
|
|
219
237
|
|
|
220
238
|
### Patch Changes
|
|
221
239
|
|
|
222
|
-
-
|
|
223
|
-
|
|
224
|
-
|
|
240
|
+
- [#35428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35428)
|
|
241
|
+
[`1674b5907b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1674b5907b4) - [ux]
|
|
242
|
+
Make confluence whiteboard urls default to embed view
|
|
225
243
|
|
|
226
244
|
## 3.0.3
|
|
227
245
|
|
|
228
246
|
### Patch Changes
|
|
229
247
|
|
|
230
|
-
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
-
|
|
248
|
+
- [#33699](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33699)
|
|
249
|
+
[`f10ed88032c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f10ed88032c) - With the
|
|
250
|
+
renaming of Jira Roadmaps to Timeline, we are updating the regex rules to match timeline in
|
|
251
|
+
conjunction to roadmaps
|
|
252
|
+
- Updated dependencies
|
|
235
253
|
|
|
236
254
|
## 3.0.2
|
|
237
255
|
|
|
238
256
|
### Patch Changes
|
|
239
257
|
|
|
240
|
-
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
-
|
|
258
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
259
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
260
|
+
legacy types are published for TS 4.5-4.8
|
|
261
|
+
- Updated dependencies
|
|
244
262
|
|
|
245
263
|
## 3.0.1
|
|
246
264
|
|
|
247
265
|
### Patch Changes
|
|
248
266
|
|
|
249
|
-
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
-
|
|
267
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
268
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
|
|
269
|
+
Typescript from `4.5.5` to `4.9.5`
|
|
270
|
+
- Updated dependencies
|
|
253
271
|
|
|
254
272
|
## 3.0.0
|
|
255
273
|
|
|
256
274
|
### Minor Changes
|
|
257
275
|
|
|
258
|
-
-
|
|
259
|
-
|
|
260
|
-
|
|
276
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
277
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
278
|
+
minor dependency bump
|
|
261
279
|
|
|
262
280
|
### Patch Changes
|
|
263
281
|
|
|
264
|
-
-
|
|
282
|
+
- Updated dependencies
|
|
265
283
|
|
|
266
284
|
## 2.0.4
|
|
267
285
|
|
|
268
286
|
### Patch Changes
|
|
269
287
|
|
|
270
|
-
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
-
|
|
288
|
+
- [#32541](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32541)
|
|
289
|
+
[`0624df1ffe1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0624df1ffe1) - Bump
|
|
290
|
+
json-ld-types dependency
|
|
291
|
+
- Updated dependencies
|
|
274
292
|
|
|
275
293
|
## 2.0.3
|
|
276
294
|
|
|
277
295
|
### Patch Changes
|
|
278
296
|
|
|
279
|
-
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
-
|
|
297
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424)
|
|
298
|
+
[`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY
|
|
299
|
+
remove before merging to master; dupe adf-schema via adf-utils
|
|
300
|
+
- Updated dependencies
|
|
283
301
|
|
|
284
302
|
## 2.0.2
|
|
285
303
|
|
|
286
304
|
### Patch Changes
|
|
287
305
|
|
|
288
|
-
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
-
|
|
306
|
+
- [#32360](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32360)
|
|
307
|
+
[`0ee9370595a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ee9370595a) - Update
|
|
308
|
+
json-ld-types
|
|
309
|
+
- Updated dependencies
|
|
292
310
|
|
|
293
311
|
## 2.0.1
|
|
294
312
|
|
|
295
313
|
### Patch Changes
|
|
296
314
|
|
|
297
|
-
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
-
|
|
315
|
+
- [#31388](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31388)
|
|
316
|
+
[`0af4a6b6426`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0af4a6b6426) -
|
|
317
|
+
Dependency update json-ld-types@3.4.0
|
|
318
|
+
- Updated dependencies
|
|
301
319
|
|
|
302
320
|
## 2.0.0
|
|
303
321
|
|
|
304
322
|
### Patch Changes
|
|
305
323
|
|
|
306
|
-
-
|
|
324
|
+
- Updated dependencies
|
|
307
325
|
|
|
308
326
|
## 1.0.0
|
|
309
327
|
|
|
310
328
|
### Major Changes
|
|
311
329
|
|
|
312
|
-
-
|
|
313
|
-
|
|
314
|
-
|
|
330
|
+
- [#30266](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30266)
|
|
331
|
+
[`12223b3ee04`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12223b3ee04) - Move
|
|
332
|
+
EditorCardProvider to new package instead of using imports from Link Provider and Smart Card
|
|
315
333
|
|
|
316
334
|
### Patch Changes
|
|
317
335
|
|
|
318
|
-
-
|
|
336
|
+
- 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
|
-
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
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.
|
package/dist/cjs/provider.js
CHANGED
|
@@ -75,7 +75,7 @@ var isJiraDashboard = function isJiraDashboard(url) {
|
|
|
75
75
|
return url.match(/^https:\/\/.*?\/jira\/dashboards\/[0-9]+.*/);
|
|
76
76
|
};
|
|
77
77
|
var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function () {
|
|
78
|
-
function EditorCardProvider(envKey, baseUrlOverride) {
|
|
78
|
+
function EditorCardProvider(envKey, baseUrlOverride, product) {
|
|
79
79
|
var _this = this;
|
|
80
80
|
(0, _classCallCheck2.default)(this, EditorCardProvider);
|
|
81
81
|
this.baseUrl = baseUrlOverride || (0, _linkingCommon.getBaseUrl)(envKey);
|
|
@@ -92,6 +92,9 @@ var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function () {
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
this.cardClient = new _linkProvider.CardClient(envKey, baseUrlOverride);
|
|
95
|
+
if (product) {
|
|
96
|
+
this.cardClient.setProduct(product);
|
|
97
|
+
}
|
|
95
98
|
}
|
|
96
99
|
(0, _createClass2.default)(EditorCardProvider, [{
|
|
97
100
|
key: "batchProviders",
|
|
@@ -340,6 +343,15 @@ var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function () {
|
|
|
340
343
|
}
|
|
341
344
|
return findPatternData;
|
|
342
345
|
}()
|
|
346
|
+
/**
|
|
347
|
+
*
|
|
348
|
+
* Decides whether the url passed in should be embedded by default
|
|
349
|
+
*
|
|
350
|
+
* protected so that subclasses can override this in order to custom handle links embedded by default
|
|
351
|
+
*
|
|
352
|
+
* @param url
|
|
353
|
+
* @returns 'embed' for the card appearance to embed by default
|
|
354
|
+
*/
|
|
343
355
|
}, {
|
|
344
356
|
key: "getHardCodedAppearance",
|
|
345
357
|
value: function getHardCodedAppearance(url) {
|
package/dist/es2019/provider.js
CHANGED
|
@@ -35,7 +35,7 @@ const isJiraDashboard = url => {
|
|
|
35
35
|
return url.match(/^https:\/\/.*?\/jira\/dashboards\/[0-9]+.*/);
|
|
36
36
|
};
|
|
37
37
|
export class EditorCardProvider {
|
|
38
|
-
constructor(envKey, baseUrlOverride) {
|
|
38
|
+
constructor(envKey, baseUrlOverride, product) {
|
|
39
39
|
this.baseUrl = baseUrlOverride || getBaseUrl(envKey);
|
|
40
40
|
this.resolverUrl = getResolverUrl(envKey, baseUrlOverride);
|
|
41
41
|
this.transformer = new Transformer();
|
|
@@ -46,6 +46,9 @@ export class EditorCardProvider {
|
|
|
46
46
|
batchScheduleFn: callback => setTimeout(callback, BATCH_WAIT_TIME)
|
|
47
47
|
});
|
|
48
48
|
this.cardClient = new CardClient(envKey, baseUrlOverride);
|
|
49
|
+
if (product) {
|
|
50
|
+
this.cardClient.setProduct(product);
|
|
51
|
+
}
|
|
49
52
|
}
|
|
50
53
|
async batchProviders(keys) {
|
|
51
54
|
// EDM-2205: Batch requests in the case that user paste multiple links at
|
|
@@ -124,6 +127,16 @@ export class EditorCardProvider {
|
|
|
124
127
|
}
|
|
125
128
|
return (_this$providersData2 = this.providersData) === null || _this$providersData2 === void 0 ? void 0 : _this$providersData2.patterns.find(pattern => url.match(pattern.source));
|
|
126
129
|
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* Decides whether the url passed in should be embedded by default
|
|
134
|
+
*
|
|
135
|
+
* protected so that subclasses can override this in order to custom handle links embedded by default
|
|
136
|
+
*
|
|
137
|
+
* @param url
|
|
138
|
+
* @returns 'embed' for the card appearance to embed by default
|
|
139
|
+
*/
|
|
127
140
|
getHardCodedAppearance(url) {
|
|
128
141
|
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
142
|
return 'embed';
|
package/dist/esm/provider.js
CHANGED
|
@@ -68,7 +68,7 @@ var isJiraDashboard = function isJiraDashboard(url) {
|
|
|
68
68
|
return url.match(/^https:\/\/.*?\/jira\/dashboards\/[0-9]+.*/);
|
|
69
69
|
};
|
|
70
70
|
export var EditorCardProvider = /*#__PURE__*/function () {
|
|
71
|
-
function EditorCardProvider(envKey, baseUrlOverride) {
|
|
71
|
+
function EditorCardProvider(envKey, baseUrlOverride, product) {
|
|
72
72
|
var _this = this;
|
|
73
73
|
_classCallCheck(this, EditorCardProvider);
|
|
74
74
|
this.baseUrl = baseUrlOverride || getBaseUrl(envKey);
|
|
@@ -85,6 +85,9 @@ export var EditorCardProvider = /*#__PURE__*/function () {
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
this.cardClient = new CardClient(envKey, baseUrlOverride);
|
|
88
|
+
if (product) {
|
|
89
|
+
this.cardClient.setProduct(product);
|
|
90
|
+
}
|
|
88
91
|
}
|
|
89
92
|
_createClass(EditorCardProvider, [{
|
|
90
93
|
key: "batchProviders",
|
|
@@ -333,6 +336,15 @@ export var EditorCardProvider = /*#__PURE__*/function () {
|
|
|
333
336
|
}
|
|
334
337
|
return findPatternData;
|
|
335
338
|
}()
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* Decides whether the url passed in should be embedded by default
|
|
342
|
+
*
|
|
343
|
+
* protected so that subclasses can override this in order to custom handle links embedded by default
|
|
344
|
+
*
|
|
345
|
+
* @param url
|
|
346
|
+
* @returns 'embed' for the card appearance to embed by default
|
|
347
|
+
*/
|
|
336
348
|
}, {
|
|
337
349
|
key: "getHardCodedAppearance",
|
|
338
350
|
value: function getHardCodedAppearance(url) {
|
package/dist/types/provider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'setimmediate';
|
|
2
|
-
import { type CardAdf, type CardAppearance, type DatasourceAdf } from '@atlaskit/linking-common';
|
|
2
|
+
import { type CardAdf, type CardAppearance, type DatasourceAdf, type ProductType } from '@atlaskit/linking-common';
|
|
3
3
|
import { type CardProvider } from './types';
|
|
4
4
|
import { type EnvironmentsKeys } from '@atlaskit/linking-common';
|
|
5
5
|
export declare class EditorCardProvider implements CardProvider {
|
|
@@ -10,7 +10,7 @@ export declare class EditorCardProvider implements CardProvider {
|
|
|
10
10
|
private transformer;
|
|
11
11
|
private providersLoader;
|
|
12
12
|
private cardClient;
|
|
13
|
-
constructor(envKey?: EnvironmentsKeys, baseUrlOverride?: string);
|
|
13
|
+
constructor(envKey?: EnvironmentsKeys, baseUrlOverride?: string, product?: ProductType);
|
|
14
14
|
private batchProviders;
|
|
15
15
|
private checkLinkResolved;
|
|
16
16
|
private fetchProvidersData;
|
|
@@ -19,7 +19,16 @@ export declare class EditorCardProvider implements CardProvider {
|
|
|
19
19
|
private doesUrlMatchPath;
|
|
20
20
|
private findUserPreference;
|
|
21
21
|
private findPatternData;
|
|
22
|
-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import 'setimmediate';
|
|
2
|
-
import { type CardAdf, type CardAppearance, type DatasourceAdf } from '@atlaskit/linking-common';
|
|
2
|
+
import { type CardAdf, type CardAppearance, type DatasourceAdf, type ProductType } from '@atlaskit/linking-common';
|
|
3
3
|
import { type CardProvider } from './types';
|
|
4
4
|
import { type EnvironmentsKeys } from '@atlaskit/linking-common';
|
|
5
5
|
export declare class EditorCardProvider implements CardProvider {
|
|
@@ -10,7 +10,7 @@ export declare class EditorCardProvider implements CardProvider {
|
|
|
10
10
|
private transformer;
|
|
11
11
|
private providersLoader;
|
|
12
12
|
private cardClient;
|
|
13
|
-
constructor(envKey?: EnvironmentsKeys, baseUrlOverride?: string);
|
|
13
|
+
constructor(envKey?: EnvironmentsKeys, baseUrlOverride?: string, product?: ProductType);
|
|
14
14
|
private batchProviders;
|
|
15
15
|
private checkLinkResolved;
|
|
16
16
|
private fetchProvidersData;
|
|
@@ -19,7 +19,16 @@ export declare class EditorCardProvider implements CardProvider {
|
|
|
19
19
|
private doesUrlMatchPath;
|
|
20
20
|
private findUserPreference;
|
|
21
21
|
private findPatternData;
|
|
22
|
-
|
|
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,68 +1,66 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
68
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-card-provider",
|
|
3
|
+
"version": "3.4.0",
|
|
4
|
+
"description": "Contains the EditorCardProvider, for determining smart card behaviour in the editor.",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Linking Platform",
|
|
12
|
+
"inPublicMirror": false,
|
|
13
|
+
"releaseModel": "continuous",
|
|
14
|
+
"website": {
|
|
15
|
+
"name": "EditorCardProvider"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
19
|
+
"main": "dist/cjs/index.js",
|
|
20
|
+
"module": "dist/esm/index.js",
|
|
21
|
+
"module:es2019": "dist/es2019/index.js",
|
|
22
|
+
"types": "dist/types/index.d.ts",
|
|
23
|
+
"typesVersions": {
|
|
24
|
+
">=4.5 <4.9": {
|
|
25
|
+
"*": [
|
|
26
|
+
"dist/types-ts4.5/*",
|
|
27
|
+
"dist/types-ts4.5/index.d.ts"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"atlaskit:src": "src/index.ts",
|
|
33
|
+
"af:exports": {
|
|
34
|
+
".": "./src/index.ts"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@atlaskit/eslint-plugin-platform": "0.6.2",
|
|
38
|
+
"@atlaskit/link-client-extension": "^1.9.0",
|
|
39
|
+
"@atlaskit/link-extractors": "^1.5.0",
|
|
40
|
+
"@atlaskit/linking-common": "^5.7.0",
|
|
41
|
+
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
42
|
+
"@babel/runtime": "^7.0.0",
|
|
43
|
+
"dataloader": "^2.0.0",
|
|
44
|
+
"json-ld-types": "^4.1.0",
|
|
45
|
+
"setimmediate": "^1.0.5"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@atlaskit/link-provider": "^1.11.0",
|
|
49
|
+
"react": "^16.8.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
53
|
+
"typescript": "~5.4.2"
|
|
54
|
+
},
|
|
55
|
+
"platform-feature-flags": {
|
|
56
|
+
"platform.linking-platform.embed-youtube-by-default": {
|
|
57
|
+
"type": "boolean"
|
|
58
|
+
},
|
|
59
|
+
"platform.linking-platform.embed-loom-by-default": {
|
|
60
|
+
"type": "boolean"
|
|
61
|
+
},
|
|
62
|
+
"platform.linking-platform.jira-dashboard-embed_ycjcj": {
|
|
63
|
+
"type": "boolean"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
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
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
36
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
74
|
-
|
|
70
|
+
"@atlaskit/link-provider": "^1.6.3",
|
|
71
|
+
"react": "^16.8.0"
|
|
75
72
|
}
|
|
76
73
|
```
|
|
77
74
|
|