@atlaskit/link-datasource 0.14.4 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +5 -1
  3. package/dist/cjs/ui/issue-like-table/index.js +78 -31
  4. package/dist/cjs/ui/issue-like-table/styled.js +5 -3
  5. package/dist/cjs/version.json +1 -1
  6. package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +5 -1
  7. package/dist/es2019/ui/issue-like-table/index.js +60 -14
  8. package/dist/es2019/ui/issue-like-table/styled.js +3 -0
  9. package/dist/es2019/version.json +1 -1
  10. package/dist/esm/ui/issue-like-table/draggable-table-heading.js +5 -1
  11. package/dist/esm/ui/issue-like-table/index.js +79 -32
  12. package/dist/esm/ui/issue-like-table/styled.js +3 -2
  13. package/dist/esm/version.json +1 -1
  14. package/dist/types/ui/issue-like-table/draggable-table-heading.d.ts +2 -1
  15. package/dist/types/ui/issue-like-table/index.d.ts +1 -0
  16. package/dist/types/ui/issue-like-table/styled.d.ts +4 -0
  17. package/dist/types-ts4.5/ui/issue-like-table/draggable-table-heading.d.ts +2 -1
  18. package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +1 -0
  19. package/dist/types-ts4.5/ui/issue-like-table/styled.d.ts +4 -0
  20. package/examples-helpers/buildIssueLikeTable.tsx +4 -2
  21. package/examples-helpers/buildJiraIssuesTable.tsx +4 -2
  22. package/package.json +4 -4
  23. package/examples-helpers/mockAutocompleteData.ts +0 -54
  24. package/examples-helpers/mockJiraAvailableSites.ts +0 -27
  25. package/examples-helpers/mockJiraData.ts +0 -546
  26. package/examples-helpers/mockSuggestionData.ts +0 -17
  27. package/examples-helpers/setupDatasourcesMocks.ts +0 -199
  28. package/examples-helpers/setupModalExampleMocks.ts +0 -32
@@ -1,546 +0,0 @@
1
- // not sure what BE schema looks like so just using my mock schema for now
2
- export const mockJiraData = {
3
- nextPageCursor: 'c3RhcnRBdD01',
4
- totalIssues: 1357,
5
- data: [
6
- {
7
- type: {
8
- label: 'task',
9
- source:
10
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium',
11
- },
12
- issueNumber: 'DONUT-1172',
13
- summary: 'FIRST! This level contains five Dragon coins',
14
- assignee: {
15
- displayName: 'Scott Farquhar',
16
- source:
17
- 'https://pbs.twimg.com/profile_images/803832195970433027/aaoG6PJI_400x400.jpg',
18
- },
19
- priority: {
20
- label: 'major',
21
- source:
22
- 'https://product-fabric.atlassian.net/images/icons/priorities/major.svg',
23
- },
24
- status: {
25
- text: 'To do',
26
- status: 'new',
27
- },
28
- resolution: 'Unresolved',
29
- created: '23/Jul/20',
30
- updated: '23/Jul/20',
31
- due: '24/Jul/20',
32
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
33
- labels: ['label', 'another', 'third'],
34
- },
35
- {
36
- type: {
37
- label: 'story',
38
- source:
39
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10315?size=medium',
40
- },
41
- issueNumber: 'DONUT-1173',
42
- summary: "Audio in meeting room K909 doesn't work",
43
- assignee: undefined,
44
- priority: {
45
- label: 'high',
46
- source:
47
- 'https://product-fabric.atlassian.net/images/icons/priorities/high.svg',
48
- },
49
- status: {
50
- text: 'In progress',
51
- status: 'inprogress',
52
- },
53
- resolution: 'Unresolved',
54
- created: '23/Jul/20',
55
- updated: '23/Jul/20',
56
- due: '24/Jul/20',
57
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
58
- },
59
- {
60
- type: {
61
- label: 'bug',
62
- source:
63
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium',
64
- },
65
- issueNumber: 'DONUT-1174',
66
- summary: 'In the underground area, under three Rotating spheres',
67
- assignee: undefined,
68
- priority: {
69
- label: 'medium',
70
- source:
71
- 'https://product-fabric.atlassian.net/images/icons/priorities/medium.svg',
72
- },
73
- status: {
74
- text: 'Done',
75
- status: 'success',
76
- },
77
- resolution: 'Done',
78
- created: '23/Jul/20',
79
- updated: '23/Jul/20',
80
- due: '24/Jul/20',
81
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
82
- },
83
- {
84
- type: {
85
- label: 'task',
86
- source:
87
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium',
88
- },
89
- issueNumber: 'DONUT-1175',
90
- summary: 'This level is hard',
91
- assignee: undefined,
92
- priority: {
93
- label: 'low',
94
- source:
95
- 'https://product-fabric.atlassian.net/images/icons/priorities/low.svg',
96
- },
97
- status: {
98
- text: 'Closed',
99
- status: 'removed',
100
- },
101
- resolution: 'Unresolved',
102
- created: '23/Jul/20',
103
- updated: '23/Jul/20',
104
- due: '24/Jul/20',
105
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
106
- },
107
- {
108
- type: {
109
- label: 'story',
110
- source:
111
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10315?size=medium',
112
- },
113
- issueNumber: 'DONUT-1176',
114
- summary:
115
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ultricies accumsan justo, eget pretium quam aliquet semper.',
116
- assignee: {
117
- displayName: 'Scott Farquhar',
118
- source:
119
- 'https://pbs.twimg.com/profile_images/803832195970433027/aaoG6PJI_400x400.jpg',
120
- },
121
- priority: {
122
- label: 'trivial',
123
- source:
124
- 'https://product-fabric.atlassian.net/images/icons/priorities/trivial.svg',
125
- },
126
- status: {
127
- text: 'To do',
128
- status: 'default',
129
- },
130
- resolution: 'Unresolved',
131
- created: '23/Jul/20',
132
- updated: '23/Jul/20',
133
- due: '24/Jul/20',
134
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
135
- },
136
- {
137
- type: {
138
- label: 'epic',
139
- source:
140
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10307?size=medium',
141
- },
142
- issueNumber: 'DONUT-1177',
143
- summary: 'This level is hard',
144
- assignee: undefined,
145
- priority: {
146
- label: 'blocker',
147
- source:
148
- 'https://product-fabric.atlassian.net/images/icons/priorities/blocker.svg',
149
- },
150
- status: {
151
- text: 'To do',
152
- status: 'default',
153
- },
154
- resolution: 'Unresolved',
155
- created: '23/Jul/20',
156
- updated: '23/Jul/20',
157
- due: '24/Jul/20',
158
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
159
- },
160
- {
161
- type: {
162
- label: 'task',
163
- source:
164
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium',
165
- },
166
- issueNumber: 'DONUT-1178',
167
- summary: 'This level is hard',
168
- assignee: undefined,
169
- priority: {
170
- label: 'high',
171
- source:
172
- 'https://product-fabric.atlassian.net/images/icons/priorities/high.svg',
173
- },
174
- status: {
175
- text: 'To do',
176
- status: 'default',
177
- },
178
- resolution: 'Unresolved',
179
- created: '23/Jul/20',
180
- updated: '23/Jul/20',
181
- due: '24/Jul/20',
182
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
183
- },
184
- {
185
- type: {
186
- label: 'epic',
187
- source:
188
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10307?size=medium',
189
- },
190
- issueNumber: 'DONUT-1179',
191
- summary: 'This level is hard',
192
- assignee: {
193
- displayName: 'Scott Farquhar',
194
- source:
195
- 'https://pbs.twimg.com/profile_images/803832195970433027/aaoG6PJI_400x400.jpg',
196
- },
197
- priority: {
198
- label: 'high',
199
- source:
200
- 'https://product-fabric.atlassian.net/images/icons/priorities/high.svg',
201
- },
202
- status: {
203
- text: 'To do',
204
- status: 'default',
205
- },
206
- resolution: 'Unresolved',
207
- created: '23/Jul/20',
208
- updated: '23/Jul/20',
209
- due: '24/Jul/20',
210
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
211
- },
212
- {
213
- type: {
214
- label: 'story',
215
- source:
216
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10315?size=medium',
217
- },
218
- issueNumber: 'DONUT-1180',
219
- summary: 'This level is hard',
220
- assignee: undefined,
221
- priority: {
222
- label: 'high',
223
- source:
224
- 'https://product-fabric.atlassian.net/images/icons/priorities/high.svg',
225
- },
226
- status: {
227
- text: 'To do',
228
- status: 'default',
229
- },
230
- resolution: 'Unresolved',
231
- created: '23/Jul/20',
232
- updated: '23/Jul/20',
233
- due: '24/Jul/20',
234
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
235
- },
236
- {
237
- type: {
238
- label: 'task',
239
- source:
240
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium',
241
- },
242
- issueNumber: 'DONUT-1181',
243
- summary: 'This level is hard',
244
- assignee: undefined,
245
- priority: {
246
- label: 'high',
247
- source:
248
- 'https://product-fabric.atlassian.net/images/icons/priorities/high.svg',
249
- },
250
- status: {
251
- text: 'To do',
252
- status: 'default',
253
- },
254
- resolution: 'Unresolved',
255
- created: '23/Jul/20',
256
- updated: '23/Jul/20',
257
- due: '24/Jul/20',
258
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
259
- },
260
- {
261
- type: {
262
- label: 'task',
263
- source:
264
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium',
265
- },
266
- issueNumber: 'DONUT-1182',
267
- summary: 'This level is hard',
268
- assignee: {
269
- displayName: 'Scott Farquhar',
270
- source:
271
- 'https://pbs.twimg.com/profile_images/803832195970433027/aaoG6PJI_400x400.jpg',
272
- },
273
- priority: {
274
- label: 'high',
275
- source:
276
- 'https://product-fabric.atlassian.net/images/icons/priorities/high.svg',
277
- },
278
- status: {
279
- text: 'Closed',
280
- status: 'removed',
281
- },
282
- resolution: 'Unresolved',
283
- created: '23/Jul/20',
284
- updated: '23/Jul/20',
285
- due: '24/Jul/20',
286
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
287
- },
288
- {
289
- type: {
290
- label: 'task',
291
- source:
292
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium',
293
- },
294
- issueNumber: 'DONUT-1183',
295
- summary: 'This level contains five Dragon coins',
296
- assignee: {
297
- displayName: 'Scott Farquhar',
298
- source:
299
- 'https://pbs.twimg.com/profile_images/803832195970433027/aaoG6PJI_400x400.jpg',
300
- },
301
- priority: {
302
- label: 'major',
303
- source:
304
- 'https://product-fabric.atlassian.net/images/icons/priorities/major.svg',
305
- },
306
- status: {
307
- text: 'To do',
308
- status: 'new',
309
- },
310
- resolution: 'Unresolved',
311
- created: '23/Jul/20',
312
- updated: '23/Jul/20',
313
- due: '24/Jul/20',
314
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
315
- },
316
- {
317
- type: {
318
- label: 'story',
319
- source:
320
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10315?size=medium',
321
- },
322
- issueNumber: 'DONUT-1184',
323
- summary: "Audio in meeting room K909 doesn't work",
324
- assignee: undefined,
325
- priority: {
326
- label: 'high',
327
- source:
328
- 'https://product-fabric.atlassian.net/images/icons/priorities/high.svg',
329
- },
330
- status: {
331
- text: 'In progress',
332
- status: 'inprogress',
333
- },
334
- resolution: 'Unresolved',
335
- created: '23/Jul/20',
336
- updated: '23/Jul/20',
337
- due: '24/Jul/20',
338
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
339
- },
340
- {
341
- type: {
342
- label: 'task',
343
- source:
344
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium',
345
- },
346
- issueNumber: 'DONUT-1185',
347
- summary: 'This level is hard',
348
- assignee: undefined,
349
- priority: {
350
- label: 'low',
351
- source:
352
- 'https://product-fabric.atlassian.net/images/icons/priorities/low.svg',
353
- },
354
- status: {
355
- text: 'Closed',
356
- status: 'removed',
357
- },
358
- resolution: 'Unresolved',
359
- created: '23/Jul/20',
360
- updated: '23/Jul/20',
361
- due: '24/Jul/20',
362
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
363
- },
364
- {
365
- type: {
366
- label: 'story',
367
- source:
368
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10315?size=medium',
369
- },
370
- issueNumber: 'DONUT-1186',
371
- summary:
372
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ultricies accumsan justo, eget pretium quam aliquet semper.',
373
- assignee: {
374
- displayName: 'Scott Farquhar',
375
- source:
376
- 'https://pbs.twimg.com/profile_images/803832195970433027/aaoG6PJI_400x400.jpg',
377
- },
378
- priority: {
379
- label: 'trivial',
380
- source:
381
- 'https://product-fabric.atlassian.net/images/icons/priorities/trivial.svg',
382
- },
383
- status: {
384
- text: 'To do',
385
- status: 'new',
386
- },
387
- resolution: 'Unresolved',
388
- created: '23/Jul/20',
389
- updated: '23/Jul/20',
390
- due: '24/Jul/20',
391
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
392
- },
393
- {
394
- type: {
395
- label: 'task',
396
- source:
397
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium',
398
- },
399
- issueNumber: 'DONUT-1187',
400
- summary: 'This level is hard',
401
- assignee: undefined,
402
- priority: {
403
- label: 'blocker',
404
- source:
405
- 'https://product-fabric.atlassian.net/images/icons/priorities/blocker.svg',
406
- },
407
- status: {
408
- text: 'To do',
409
- status: 'new',
410
- },
411
- resolution: 'Unresolved',
412
- created: '23/Jul/20',
413
- updated: '23/Jul/20',
414
- due: '24/Jul/20',
415
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
416
- },
417
- {
418
- type: {
419
- label: 'task',
420
- source:
421
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium',
422
- },
423
- issueNumber: 'DONUT-1188',
424
- summary: 'This level is hard',
425
- assignee: undefined,
426
- priority: {
427
- label: 'high',
428
- source:
429
- 'https://product-fabric.atlassian.net/images/icons/priorities/high.svg',
430
- },
431
- status: {
432
- text: 'To do',
433
- status: 'new',
434
- },
435
- resolution: 'Unresolved',
436
- created: '23/Jul/20',
437
- updated: '23/Jul/20',
438
- due: '24/Jul/20',
439
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
440
- },
441
- {
442
- type: {
443
- label: 'task',
444
- source:
445
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium',
446
- },
447
- issueNumber: 'DONUT-1189',
448
- summary: 'This level is hard',
449
- assignee: {
450
- displayName: 'Scott Farquhar',
451
- source:
452
- 'https://pbs.twimg.com/profile_images/803832195970433027/aaoG6PJI_400x400.jpg',
453
- },
454
- priority: {
455
- label: 'high',
456
- source:
457
- 'https://product-fabric.atlassian.net/images/icons/priorities/high.svg',
458
- },
459
- status: {
460
- text: 'To do',
461
- status: 'new',
462
- },
463
- resolution: 'Unresolved',
464
- created: '23/Jul/20',
465
- updated: '23/Jul/20',
466
- due: '24/Jul/20',
467
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
468
- },
469
- {
470
- type: {
471
- label: 'story',
472
- source:
473
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10315?size=medium',
474
- },
475
- issueNumber: 'DONUT-1190',
476
- summary: 'This level is hard',
477
- assignee: undefined,
478
- priority: {
479
- label: 'high',
480
- source:
481
- 'https://product-fabric.atlassian.net/images/icons/priorities/high.svg',
482
- },
483
- status: {
484
- text: 'To do',
485
- status: 'new',
486
- },
487
- resolution: 'Unresolved',
488
- created: '23/Jul/20',
489
- updated: '23/Jul/20',
490
- due: '24/Jul/20',
491
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
492
- },
493
- {
494
- type: {
495
- label: 'epic',
496
- source:
497
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10307?size=medium',
498
- },
499
- issueNumber: 'DONUT-1191',
500
- summary: 'This level is hard',
501
- assignee: undefined,
502
- priority: {
503
- label: 'high',
504
- source:
505
- 'https://product-fabric.atlassian.net/images/icons/priorities/high.svg',
506
- },
507
- status: {
508
- text: 'To do',
509
- status: 'new',
510
- },
511
- resolution: 'Unresolved',
512
- created: '23/Jul/20',
513
- updated: '23/Jul/20',
514
- due: '24/Jul/20',
515
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
516
- },
517
- {
518
- type: {
519
- label: 'task',
520
- source:
521
- 'https://product-fabric.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium',
522
- },
523
- issueNumber: 'DONUT-1192',
524
- summary: 'This level is hard',
525
- assignee: {
526
- displayName: 'Scott Farquhar',
527
- source:
528
- 'https://pbs.twimg.com/profile_images/803832195970433027/aaoG6PJI_400x400.jpg',
529
- },
530
- priority: {
531
- label: 'high',
532
- source:
533
- 'https://product-fabric.atlassian.net/images/icons/priorities/high.svg',
534
- },
535
- status: {
536
- text: 'Closed',
537
- status: 'removed',
538
- },
539
- resolution: 'Unresolved',
540
- created: '23/Jul/20',
541
- updated: '23/Jul/20',
542
- due: '24/Jul/20',
543
- link: 'https://product-fabric.atlassian.net/browse/EDM-5591',
544
- },
545
- ],
546
- };
@@ -1,17 +0,0 @@
1
- // https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-jql/#api-rest-api-3-jql-autocompletedata-suggestions-get
2
- export const mockSuggestionData = {
3
- results: [
4
- {
5
- value: '"0. On Hold"',
6
- displayName: '0. On Hold',
7
- },
8
- {
9
- value: '"0. Parking Lot"',
10
- displayName: '0. Parking Lot',
11
- },
12
- {
13
- value: '"0 - Paused"',
14
- displayName: '0 - Paused',
15
- },
16
- ],
17
- };