@squiz/resource-browser 1.69.2 → 2.1.9-rc.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.
Files changed (141) hide show
  1. package/CHANGELOG.md +89 -38
  2. package/LICENSE.md +15 -0
  3. package/README.md +9 -0
  4. package/jest.config.ts +22 -21
  5. package/lib/Hooks/useSelectedState.d.ts +15 -0
  6. package/lib/Hooks/useSelectedState.js +16 -0
  7. package/lib/Hooks/useSources.d.ts +6 -6
  8. package/lib/Hooks/useSources.js +26 -1
  9. package/lib/MainContainer/MainContainer.d.ts +17 -0
  10. package/lib/MainContainer/MainContainer.js +61 -0
  11. package/lib/Plugin/Plugin.d.ts +13 -0
  12. package/lib/Plugin/Plugin.js +17 -0
  13. package/lib/ResourceBrowserContext/ResourceBrowserContext.d.ts +2 -3
  14. package/lib/ResourceBrowserContext/ResourceBrowserContext.js +4 -17
  15. package/lib/ResourceBrowserInput/ResourceBrowserInput.d.ts +24 -0
  16. package/lib/ResourceBrowserInput/ResourceBrowserInput.js +16 -0
  17. package/lib/ResourcePicker/ResourcePicker.d.ts +6 -4
  18. package/lib/ResourcePicker/ResourcePicker.js +14 -8
  19. package/lib/ResourcePicker/States/Selected.d.ts +10 -4
  20. package/lib/ResourcePicker/States/Selected.js +11 -32
  21. package/lib/SourceDropdown/SourceDropdown.d.ts +5 -11
  22. package/lib/SourceDropdown/SourceDropdown.js +20 -99
  23. package/lib/SourceList/SourceList.d.ts +5 -16
  24. package/lib/SourceList/SourceList.js +14 -75
  25. package/lib/index.css +42 -202
  26. package/lib/index.d.ts +7 -7
  27. package/lib/index.js +69 -13
  28. package/lib/types.d.ts +41 -59
  29. package/package.json +82 -80
  30. package/src/Hooks/useSelectedState.spec.ts +46 -0
  31. package/src/Hooks/useSelectedState.ts +22 -0
  32. package/src/Hooks/useSources.spec.ts +60 -13
  33. package/src/Hooks/useSources.ts +35 -5
  34. package/src/Icons/CircledLoopIcon.tsx +8 -8
  35. package/src/MainContainer/MainContainer.spec.tsx +203 -0
  36. package/src/MainContainer/MainContainer.stories.tsx +62 -0
  37. package/src/MainContainer/MainContainer.tsx +101 -0
  38. package/src/Plugin/Plugin.spec.tsx +46 -0
  39. package/src/Plugin/Plugin.tsx +20 -0
  40. package/src/ResourceBrowserContext/ResourceBrowserContext.spec.tsx +65 -106
  41. package/src/ResourceBrowserContext/ResourceBrowserContext.tsx +24 -39
  42. package/src/ResourceBrowserInput/ResourceBrowserInput.spec.tsx +192 -0
  43. package/src/ResourceBrowserInput/ResourceBrowserInput.tsx +81 -0
  44. package/src/ResourcePicker/ResourcePicker.spec.tsx +159 -116
  45. package/src/ResourcePicker/ResourcePicker.stories.tsx +28 -24
  46. package/src/ResourcePicker/ResourcePicker.tsx +79 -59
  47. package/src/ResourcePicker/States/Error.tsx +8 -8
  48. package/src/ResourcePicker/States/Loading.tsx +3 -3
  49. package/src/ResourcePicker/States/Selected.tsx +66 -73
  50. package/src/ResourcePicker/mock-image-resource.json +25 -47
  51. package/src/ResourcePicker/mock-resource.json +11 -13
  52. package/src/ResourcePicker/resource-picker.scss +13 -13
  53. package/src/SourceDropdown/SourceDropdown.spec.tsx +65 -391
  54. package/src/SourceDropdown/SourceDropdown.stories.tsx +21 -24
  55. package/src/SourceDropdown/SourceDropdown.tsx +80 -258
  56. package/src/SourceList/SourceList.spec.tsx +37 -430
  57. package/src/SourceList/SourceList.stories.tsx +17 -37
  58. package/src/SourceList/SourceList.tsx +28 -155
  59. package/src/__mocks__/MockModels.ts +56 -25
  60. package/src/__mocks__/PluginExample.tsx +98 -0
  61. package/src/__mocks__/StorybookHelpers.tsx +141 -0
  62. package/src/__mocks__/renderWithContext.tsx +14 -18
  63. package/src/__mocks__/sample-sources.json +32 -0
  64. package/src/index.scss +18 -8
  65. package/src/index.spec.tsx +277 -99
  66. package/src/index.stories.tsx +65 -39
  67. package/src/index.tsx +119 -57
  68. package/src/types.ts +54 -63
  69. package/tailwind.config.cjs +92 -92
  70. package/vite.config.js +12 -12
  71. package/lib/Hooks/useCategorisedSources.d.ts +0 -14
  72. package/lib/Hooks/useCategorisedSources.js +0 -38
  73. package/lib/Hooks/useChildResources.d.ts +0 -16
  74. package/lib/Hooks/useChildResources.js +0 -13
  75. package/lib/Hooks/usePreselectedResourcePath.d.ts +0 -20
  76. package/lib/Hooks/usePreselectedResourcePath.js +0 -31
  77. package/lib/Hooks/useRecentLocations.d.ts +0 -5
  78. package/lib/Hooks/useRecentLocations.js +0 -38
  79. package/lib/Hooks/useRecentResourcesPaths.d.ts +0 -20
  80. package/lib/Hooks/useRecentResourcesPaths.js +0 -30
  81. package/lib/Hooks/useResource.d.ts +0 -28
  82. package/lib/Hooks/useResource.js +0 -25
  83. package/lib/Hooks/useResourcePath.d.ts +0 -16
  84. package/lib/Hooks/useResourcePath.js +0 -64
  85. package/lib/Icons/HistoryIcon.d.ts +0 -4
  86. package/lib/Icons/HistoryIcon.js +0 -13
  87. package/lib/PreviewPanel/PreviewPanel.d.ts +0 -5
  88. package/lib/PreviewPanel/PreviewPanel.js +0 -8
  89. package/lib/PreviewPanel/details/MatrixResource.d.ts +0 -7
  90. package/lib/PreviewPanel/details/MatrixResource.js +0 -35
  91. package/lib/ResourceBreadcrumb/ResourceBreadcrumb.d.ts +0 -9
  92. package/lib/ResourceBreadcrumb/ResourceBreadcrumb.js +0 -54
  93. package/lib/ResourceList/ResourceList.d.ts +0 -18
  94. package/lib/ResourceList/ResourceList.js +0 -49
  95. package/lib/ResourcePickerContainer/ResourcePickerContainer.d.ts +0 -17
  96. package/lib/ResourcePickerContainer/ResourcePickerContainer.js +0 -166
  97. package/lib/StatusIndicator/StatusIndicator.d.ts +0 -8
  98. package/lib/StatusIndicator/StatusIndicator.js +0 -27
  99. package/lib/utils/findBestMatchLineage.d.ts +0 -2
  100. package/lib/utils/findBestMatchLineage.js +0 -28
  101. package/lib/utils/uuid.d.ts +0 -1
  102. package/lib/utils/uuid.js +0 -6
  103. package/src/Hooks/useCategorisedSources.spec.ts +0 -39
  104. package/src/Hooks/useCategorisedSources.ts +0 -46
  105. package/src/Hooks/useChildResources.spec.ts +0 -29
  106. package/src/Hooks/useChildResources.ts +0 -21
  107. package/src/Hooks/usePreselectedResourcePath.ts +0 -54
  108. package/src/Hooks/useRecentLocations.spec.ts +0 -81
  109. package/src/Hooks/useRecentLocations.ts +0 -44
  110. package/src/Hooks/useRecentResourcesPaths.ts +0 -54
  111. package/src/Hooks/useResource.spec.ts +0 -61
  112. package/src/Hooks/useResource.ts +0 -40
  113. package/src/Hooks/useResourcePath.spec.ts +0 -120
  114. package/src/Hooks/useResourcePath.ts +0 -76
  115. package/src/Icons/HistoryIcon.tsx +0 -17
  116. package/src/PreviewPanel/PreviewPanel.spec.tsx +0 -198
  117. package/src/PreviewPanel/PreviewPanel.stories.tsx +0 -76
  118. package/src/PreviewPanel/PreviewPanel.tsx +0 -6
  119. package/src/PreviewPanel/details/MatrixResource.tsx +0 -54
  120. package/src/PreviewPanel/details/matrix-resource.scss +0 -16
  121. package/src/ResourceBreadcrumb/ResourceBreadcrumb.spec.tsx +0 -133
  122. package/src/ResourceBreadcrumb/ResourceBreadcrumb.stories.tsx +0 -24
  123. package/src/ResourceBreadcrumb/ResourceBreadcrumb.tsx +0 -79
  124. package/src/ResourceBreadcrumb/resource-breadcrumb.scss +0 -28
  125. package/src/ResourceBreadcrumb/sample-hierarchy.json +0 -27
  126. package/src/ResourceList/ResourceList.spec.tsx +0 -202
  127. package/src/ResourceList/ResourceList.stories.tsx +0 -40
  128. package/src/ResourceList/ResourceList.tsx +0 -83
  129. package/src/ResourceList/sample-resources.json +0 -851
  130. package/src/ResourcePickerContainer/ResourcePickerContainer.spec.tsx +0 -780
  131. package/src/ResourcePickerContainer/ResourcePickerContainer.stories.tsx +0 -45
  132. package/src/ResourcePickerContainer/ResourcePickerContainer.tsx +0 -290
  133. package/src/SourceList/sample-sources.json +0 -251
  134. package/src/StatusIndicator/StatusIndicator.stories.tsx +0 -83
  135. package/src/StatusIndicator/StatusIndicator.tsx +0 -38
  136. package/src/__mocks__/JestHelpers.ts +0 -65
  137. package/src/__mocks__/StorybookHelpers.ts +0 -128
  138. package/src/__mocks__/jestHelpers.spec.ts +0 -38
  139. package/src/utils/findBestMatchLineage.spec.ts +0 -81
  140. package/src/utils/findBestMatchLineage.ts +0 -30
  141. package/src/utils/uuid.ts +0 -5
@@ -1,851 +0,0 @@
1
- [
2
- {
3
- "id": "1",
4
- "type": {
5
- "code": "root_folder",
6
- "name": "Root Folder"
7
- },
8
- "name": "Root Folder",
9
- "status": {
10
- "code": "live",
11
- "name": "Live"
12
- },
13
- "lineages": [
14
- {
15
- "resourceIds": ["1"]
16
- }
17
- ],
18
- "childCount": 100,
19
- "_children": [
20
- {
21
- "id": "10",
22
- "type": {
23
- "code": "folder",
24
- "name": "Folder"
25
- },
26
- "status": {
27
- "code": "live",
28
- "name": "Live"
29
- },
30
- "name": "Asset types",
31
- "lineages": [
32
- {
33
- "resourceIds": ["1", "10"]
34
- }
35
- ],
36
- "childCount": 100,
37
- "_children": [
38
- {
39
- "id": "100",
40
- "type": {
41
- "code": "unknown",
42
- "name": "Unknown type"
43
- },
44
- "status": {
45
- "code": "live",
46
- "name": "Live"
47
- },
48
- "name": "Unknown",
49
- "lineages": [
50
- {
51
- "resourceIds": ["1", "10", "100"]
52
- }
53
- ],
54
- "childCount": 0
55
- },
56
- {
57
- "id": "101",
58
- "type": {
59
- "code": "audio_file",
60
- "name": "Audio File"
61
- },
62
- "status": {
63
- "code": "live",
64
- "name": "Live"
65
- },
66
- "name": "Audio file",
67
- "lineages": [
68
- {
69
- "resourceIds": ["1", "10", "101"]
70
- }
71
- ],
72
- "childCount": 0
73
- },
74
- {
75
- "id": "102",
76
- "type": {
77
- "code": "excel_doc",
78
- "name": "MS Excel Document"
79
- },
80
- "status": {
81
- "code": "live",
82
- "name": "Live"
83
- },
84
- "name": "Excel document",
85
- "lineages": [
86
- {
87
- "resourceIds": ["1", "10", "102"]
88
- }
89
- ],
90
- "childCount": 0
91
- },
92
- {
93
- "id": "103",
94
- "type": {
95
- "code": "folder",
96
- "name": "Folder"
97
- },
98
- "status": {
99
- "code": "live",
100
- "name": "Live"
101
- },
102
- "name": "Folder",
103
- "lineages": [
104
- {
105
- "resourceIds": ["1", "10", "103"]
106
- }
107
- ],
108
- "childCount": 0
109
- },
110
- {
111
- "id": "104",
112
- "type": {
113
- "code": "image",
114
- "name": "Image"
115
- },
116
- "status": {
117
- "code": "live",
118
- "name": "Live"
119
- },
120
- "name": "Image",
121
- "lineages": [
122
- {
123
- "resourceIds": ["1", "10", "104"]
124
- }
125
- ],
126
- "childCount": 0,
127
- "url": "https://picsum.photos/200/150",
128
- "urls": ["https://picsum.photos/200/150", "http://picsum.photos/200/150"]
129
- },
130
- {
131
- "id": "105",
132
- "type": {
133
- "code": "page_standard",
134
- "name": "Standard Page"
135
- },
136
- "status": {
137
- "code": "live",
138
- "name": "Live"
139
- },
140
- "name": "Page",
141
- "lineages": [
142
- {
143
- "resourceIds": ["1", "10", "105"]
144
- }
145
- ],
146
- "childCount": 0
147
- },
148
- {
149
- "id": "106",
150
- "type": {
151
- "code": "pdf_file",
152
- "name": "PDF File"
153
- },
154
- "status": {
155
- "code": "live",
156
- "name": "Live"
157
- },
158
- "name": "PDF file",
159
- "lineages": [
160
- {
161
- "resourceIds": ["1", "10", "106"]
162
- }
163
- ],
164
- "childCount": 0
165
- },
166
- {
167
- "id": "107",
168
- "type": {
169
- "code": "powerpoint_doc",
170
- "name": "MS PowerPoint Document"
171
- },
172
- "status": {
173
- "code": "live",
174
- "name": "Live"
175
- },
176
- "name": "Powerpoint presentation",
177
- "lineages": [
178
- {
179
- "resourceIds": ["1", "10", "107"]
180
- }
181
- ],
182
- "childCount": 0
183
- },
184
- {
185
- "id": "108",
186
- "type": {
187
- "code": "site",
188
- "name": "Site"
189
- },
190
- "status": {
191
- "code": "live",
192
- "name": "Live"
193
- },
194
- "name": "Site",
195
- "lineages": [
196
- {
197
- "resourceIds": ["1", "10", "108"]
198
- }
199
- ],
200
- "childCount": 0
201
- },
202
- {
203
- "id": "109",
204
- "type": {
205
- "code": "video_file",
206
- "name": "Video File"
207
- },
208
- "status": {
209
- "code": "live",
210
- "name": "Live"
211
- },
212
- "name": "Video file",
213
- "lineages": [
214
- {
215
- "resourceIds": ["1", "10", "109"]
216
- }
217
- ],
218
- "childCount": 0
219
- },
220
- {
221
- "id": "110",
222
- "type": {
223
- "code": "word_doc",
224
- "name": "MS Word Document"
225
- },
226
- "status": {
227
- "code": "live",
228
- "name": "Live"
229
- },
230
- "name": "Word document",
231
- "lineages": [
232
- {
233
- "resourceIds": ["1", "10", "110"]
234
- }
235
- ],
236
- "childCount": 0
237
- },
238
- {
239
- "id": "111",
240
- "type": {
241
- "code": "page_content",
242
- "name": "Content Page"
243
- },
244
- "status": {
245
- "code": "live",
246
- "name": "Live"
247
- },
248
- "name": "Content page",
249
- "lineages": [
250
- {
251
- "resourceIds": ["1", "10", "111"]
252
- }
253
- ],
254
- "childCount": 0
255
- }
256
- ]
257
- },
258
- {
259
- "id": "20",
260
- "type": {
261
- "code": "folder",
262
- "name": "Folder"
263
- },
264
- "status": {
265
- "code": "live",
266
- "name": "Live"
267
- },
268
- "name": "Asset status",
269
- "lineages": [
270
- {
271
- "resourceIds": ["1", "20"]
272
- }
273
- ],
274
- "childCount": 100,
275
- "_children": [
276
- {
277
- "id": "200",
278
- "type": {
279
- "code": "physical_file",
280
- "name": "Physical File"
281
- },
282
- "status": {
283
- "code": "unknown",
284
- "name": "Unknown"
285
- },
286
- "name": "Unknown",
287
- "lineages": [
288
- {
289
- "resourceIds": ["1", "20", "200"]
290
- }
291
- ],
292
- "childCount": 0
293
- },
294
- {
295
- "id": "201",
296
- "type": {
297
- "code": "physical_file",
298
- "name": "Physical File"
299
- },
300
- "status": {
301
- "code": "archived",
302
- "name": "Archived"
303
- },
304
- "name": "Archived",
305
- "lineages": [
306
- {
307
- "resourceIds": ["1", "20", "201"]
308
- }
309
- ],
310
- "childCount": 0
311
- },
312
- {
313
- "id": "202",
314
- "type": {
315
- "code": "physical_file",
316
- "name": "Physical File"
317
- },
318
- "status": {
319
- "code": "under_construction",
320
- "name": "Under Construction"
321
- },
322
- "name": "Under construction",
323
- "lineages": [
324
- {
325
- "resourceIds": ["1", "20", "202"]
326
- }
327
- ],
328
- "childCount": 0
329
- },
330
- {
331
- "id": "203",
332
- "type": {
333
- "code": "physical_file",
334
- "name": "Physical File"
335
- },
336
- "status": {
337
- "code": "pending_approval",
338
- "name": "Pending Approval"
339
- },
340
- "name": "Pending approval",
341
- "lineages": [
342
- {
343
- "resourceIds": ["1", "20", "203"]
344
- }
345
- ],
346
- "childCount": 0
347
- },
348
- {
349
- "id": "204",
350
- "type": {
351
- "code": "physical_file",
352
- "name": "Physical File"
353
- },
354
- "status": {
355
- "code": "approved_to_go_live",
356
- "name": "Approved To Go Live"
357
- },
358
- "name": "Approved to go live",
359
- "lineages": [
360
- {
361
- "resourceIds": ["1", "20", "204"]
362
- }
363
- ],
364
- "childCount": 0
365
- },
366
- {
367
- "id": "205",
368
- "type": {
369
- "code": "physical_file",
370
- "name": "Physical File"
371
- },
372
- "status": {
373
- "code": "live",
374
- "name": "Live"
375
- },
376
- "name": "Live",
377
- "lineages": [
378
- {
379
- "resourceIds": ["1", "20", "205"]
380
- }
381
- ],
382
- "childCount": 0
383
- },
384
- {
385
- "id": "206",
386
- "type": {
387
- "code": "physical_file",
388
- "name": "Physical File"
389
- },
390
- "status": {
391
- "code": "up_for_review",
392
- "name": "Up For Review"
393
- },
394
- "name": "Up for review",
395
- "lineages": [
396
- {
397
- "resourceIds": ["1", "20", "206"]
398
- }
399
- ],
400
- "childCount": 0
401
- },
402
- {
403
- "id": "207",
404
- "type": {
405
- "code": "physical_file",
406
- "name": "Physical File"
407
- },
408
- "status": {
409
- "code": "safe_editing",
410
- "name": "Safe Editing"
411
- },
412
- "name": "Safe editing",
413
- "lineages": [
414
- {
415
- "resourceIds": ["1", "20", "207"]
416
- }
417
- ],
418
- "childCount": 0
419
- },
420
- {
421
- "id": "208",
422
- "type": {
423
- "code": "physical_file",
424
- "name": "Physical File"
425
- },
426
- "status": {
427
- "code": "safe_editing_pending_approval",
428
- "name": "Safe Editing Pending Approval"
429
- },
430
- "name": "Safe editing pending approval",
431
- "lineages": [
432
- {
433
- "resourceIds": ["1", "20", "208"]
434
- }
435
- ],
436
- "childCount": 0
437
- },
438
- {
439
- "id": "209",
440
- "type": {
441
- "code": "physical_file",
442
- "name": "Physical File"
443
- },
444
- "status": {
445
- "code": "safe_edit_approved_to_go_live",
446
- "name": "Safe Edit Approved To Go Live"
447
- },
448
- "name": "Safe edit approved to go live",
449
- "lineages": [
450
- {
451
- "resourceIds": ["1", "20", "209"]
452
- }
453
- ],
454
- "childCount": 0
455
- }
456
- ]
457
- },
458
- {
459
- "id": "30",
460
- "type": {
461
- "code": "folder",
462
- "name": "Folder"
463
- },
464
- "status": {
465
- "code": "live",
466
- "name": "Live"
467
- },
468
- "name": "Deeply nested asset",
469
- "lineages": [
470
- {
471
- "resourceIds": ["1", "30"]
472
- }
473
- ],
474
- "childCount": "1",
475
- "_children": [
476
- {
477
- "id": "31",
478
- "type": {
479
- "code": "folder",
480
- "name": "Folder"
481
- },
482
- "status": {
483
- "code": "live",
484
- "name": "Live"
485
- },
486
- "name": "Level 2",
487
- "lineages": [
488
- {
489
- "resourceIds": ["1", "30", "31"]
490
- }
491
- ],
492
- "childCount": 1,
493
- "_children": [
494
- {
495
- "id": "32",
496
- "type": {
497
- "code": "folder",
498
- "name": "Folder"
499
- },
500
- "status": {
501
- "code": "live",
502
- "name": "Live"
503
- },
504
- "name": "Level 3",
505
- "lineages": [
506
- {
507
- "resourceIds": ["1", "30", "31", "32"]
508
- }
509
- ],
510
- "childCount": 1,
511
- "_children": [
512
- {
513
- "id": "33",
514
- "type": {
515
- "code": "folder",
516
- "name": "Folder"
517
- },
518
- "status": {
519
- "code": "live",
520
- "name": "Live"
521
- },
522
- "name": "Level 4",
523
- "lineages": [
524
- {
525
- "resourceIds": ["1", "30", "31", "32", "33"]
526
- }
527
- ],
528
- "childCount": 1,
529
- "_children": [
530
- {
531
- "id": "34",
532
- "type": {
533
- "code": "folder",
534
- "name": "Folder"
535
- },
536
- "status": {
537
- "code": "live",
538
- "name": "Live"
539
- },
540
- "name": "Level 5",
541
- "lineages": [
542
- {
543
- "resourceIds": ["1", "30", "31", "32", "33", "34"]
544
- }
545
- ],
546
- "childCount": 1,
547
- "_children": [
548
- {
549
- "id": "35",
550
- "type": {
551
- "code": "folder",
552
- "name": "Folder"
553
- },
554
- "status": {
555
- "code": "live",
556
- "name": "Live"
557
- },
558
- "name": "Level 6",
559
- "lineages": [
560
- {
561
- "resourceIds": ["1", "30", "31", "32", "33", "34", "35"]
562
- }
563
- ],
564
- "childCount": 1,
565
- "_children": [
566
- {
567
- "id": "36",
568
- "type": {
569
- "code": "page_standard",
570
- "name": "Standard Page"
571
- },
572
- "status": {
573
- "code": "live",
574
- "name": "Live"
575
- },
576
- "name": "You made it!",
577
- "lineages": [
578
- {
579
- "resourceIds": ["1", "30", "31", "32", "33", "34", "35", "36"]
580
- }
581
- ],
582
- "childCount": 0
583
- }
584
- ]
585
- }
586
- ]
587
- }
588
- ]
589
- }
590
- ]
591
- }
592
- ]
593
- }
594
- ]
595
- },
596
- {
597
- "id": "900",
598
- "type": {
599
- "code": "page",
600
- "name": "Standard Page"
601
- },
602
- "status": {
603
- "code": "live",
604
- "name": "Live"
605
- },
606
- "name": "About us",
607
- "lineages": [
608
- {
609
- "resourceIds": ["1", "900"]
610
- }
611
- ],
612
- "childCount": 0
613
- },
614
- {
615
- "id": "901",
616
- "type": {
617
- "code": "folder",
618
- "name": "Folder"
619
- },
620
- "status": {
621
- "code": "live",
622
- "name": "Live"
623
- },
624
- "name": "So many images",
625
- "lineages": [
626
- {
627
- "resourceIds": ["1", "901"]
628
- }
629
- ],
630
- "childCount": 123456
631
- },
632
- {
633
- "id": "902",
634
- "type": {
635
- "code": "page_standard",
636
- "name": "Standard Page"
637
- },
638
- "status": {
639
- "code": "live",
640
- "name": "Live"
641
- },
642
- "name": "Asset with a slightly long long title to make it wrap over multiple lines, it take a bit of text to that",
643
- "lineages": [
644
- {
645
- "resourceIds": ["1", "902"]
646
- }
647
- ],
648
- "childCount": 0
649
- },
650
- {
651
- "id": "903",
652
- "type": {
653
- "code": "site",
654
- "name": "Site"
655
- },
656
- "status": {
657
- "code": "live",
658
- "name": "Live"
659
- },
660
- "name": "Asset with an even longer title to make it is so long that it causes the container to grow in size. It is truly really just so long and I don't know what else I could possibly say about it to express just how long it is.",
661
- "lineages": [
662
- {
663
- "resourceIds": ["1", "903"]
664
- }
665
- ],
666
- "childCount": 456
667
- },
668
- {
669
- "id": "9033",
670
- "type": {
671
- "code": "image",
672
- "name": "Image"
673
- },
674
- "status": {
675
- "code": "live",
676
- "name": "Live"
677
- },
678
- "name": "image_asset_with_a_silly_long_image_file_name_to_check_that_it_does_not_break_out_of_the_layout.jpg.",
679
- "lineages": [
680
- {
681
- "resourceIds": ["1", "9033"]
682
- }
683
- ],
684
- "childCount": 456,
685
- "url": "https://www.rspcasa.org.au/wp-content/uploads/2020/10/Baby-goat-in-tree.jpg"
686
- },
687
- {
688
- "id": "904",
689
- "type": {
690
- "code": "physical_file",
691
- "name": "Physical File"
692
- },
693
- "status": {
694
- "code": "live",
695
- "name": "Live"
696
- },
697
- "name": "Placeholder file",
698
- "lineages": [
699
- {
700
- "resourceIds": ["1", "904"]
701
- }
702
- ],
703
- "childCount": 0
704
- },
705
- {
706
- "id": "905",
707
- "type": {
708
- "code": "physical_file",
709
- "name": "Physical File"
710
- },
711
- "status": {
712
- "code": "live",
713
- "name": "Live"
714
- },
715
- "name": "Placeholder file 2",
716
- "lineages": [
717
- {
718
- "resourceIds": ["1", "905"]
719
- }
720
- ],
721
- "childCount": 0
722
- },
723
- {
724
- "id": "906",
725
- "type": {
726
- "code": "physical_file",
727
- "name": "Physical File"
728
- },
729
- "status": {
730
- "code": "live",
731
- "name": "Live"
732
- },
733
- "name": "Placeholder file 3",
734
- "lineages": [
735
- {
736
- "resourceIds": ["1", "906"]
737
- }
738
- ],
739
- "childCount": 0
740
- },
741
- {
742
- "id": "907",
743
- "type": {
744
- "code": "physical_file",
745
- "name": "Physical File"
746
- },
747
- "status": {
748
- "code": "live",
749
- "name": "Live"
750
- },
751
- "name": "Placeholder file 4",
752
- "lineages": [
753
- {
754
- "resourceIds": ["1", "907"]
755
- }
756
- ],
757
- "childCount": 0
758
- },
759
- {
760
- "id": "908",
761
- "type": {
762
- "code": "physical_file",
763
- "name": "Physical File"
764
- },
765
- "status": {
766
- "code": "live",
767
- "name": "Live"
768
- },
769
- "name": "Placeholder file 5",
770
- "lineages": [
771
- {
772
- "resourceIds": ["1", "908"]
773
- }
774
- ],
775
- "childCount": 0
776
- },
777
- {
778
- "id": "909",
779
- "type": {
780
- "code": "physical_file",
781
- "name": "Physical File"
782
- },
783
- "status": {
784
- "code": "live",
785
- "name": "Live"
786
- },
787
- "name": "Placeholder file 6",
788
- "lineages": [
789
- {
790
- "resourceIds": ["1", "909"]
791
- }
792
- ],
793
- "childCount": 0
794
- },
795
- {
796
- "id": "910",
797
- "type": {
798
- "code": "physical_file",
799
- "name": "Physical File"
800
- },
801
- "status": {
802
- "code": "live",
803
- "name": "Live"
804
- },
805
- "name": "Placeholder file 7",
806
- "lineages": [
807
- {
808
- "resourceIds": ["1", "910"]
809
- }
810
- ],
811
- "childCount": 0
812
- },
813
- {
814
- "id": "911",
815
- "type": {
816
- "code": "physical_file",
817
- "name": "Physical File"
818
- },
819
- "status": {
820
- "code": "live",
821
- "name": "Live"
822
- },
823
- "name": "Placeholder file 8",
824
- "lineages": [
825
- {
826
- "resourceIds": ["1", "911"]
827
- }
828
- ],
829
- "childCount": 0
830
- },
831
- {
832
- "id": "912",
833
- "type": {
834
- "code": "physical_file",
835
- "name": "Physical File"
836
- },
837
- "status": {
838
- "code": "live",
839
- "name": "Live"
840
- },
841
- "name": "Placeholder file 9",
842
- "lineages": [
843
- {
844
- "resourceIds": ["1", "912"]
845
- }
846
- ],
847
- "childCount": 0
848
- }
849
- ]
850
- }
851
- ]