decap-cms-widget-list 3.3.0 → 3.5.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.
@@ -139,6 +139,10 @@ exports[`ListControl should add to list when add button is clicked 1`] = `
139
139
  }
140
140
 
141
141
  .emotion-17 {
142
+ background-color: #dfdfe3;
143
+ }
144
+
145
+ .emotion-19 {
142
146
  display: none;
143
147
  border-top: 0;
144
148
  color: inherit;
@@ -200,8 +204,9 @@ exports[`ListControl should add to list when add button is clicked 1`] = `
200
204
  class="emotion-15 emotion-16"
201
205
  >
202
206
  <mock-list-item-top-bar
203
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
204
- collapsed="false"
207
+ allowremove=""
208
+ allowreorder=""
209
+ class="emotion-17 emotion-18"
205
210
  data-testid="styled-list-item-top-bar-0"
206
211
  id="0"
207
212
  >
@@ -210,17 +215,16 @@ exports[`ListControl should add to list when add button is clicked 1`] = `
210
215
  </button>
211
216
  </mock-list-item-top-bar>
212
217
  <div
213
- class="emotion-17 emotion-18"
218
+ class="emotion-19 emotion-20"
214
219
  >
215
220
  No string
216
221
  </div>
217
222
  <mock-object-control
218
223
  classnamewrapper="classNameWrapper"
219
- collapsed="false"
220
224
  data-testid="object-control-0"
221
225
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
222
226
  fieldserrors="Map {}"
223
- forlist="true"
227
+ forlist=""
224
228
  parentids="forID,0"
225
229
  validationkey="0"
226
230
  value="Map {}"
@@ -241,7 +245,7 @@ exports[`ListControl should add to list when add button is clicked 1`] = `
241
245
  aria-live="assertive"
242
246
  id="DndLiveRegion-19"
243
247
  role="status"
244
- style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
248
+ style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
245
249
  />
246
250
  </div>
247
251
  </div>
@@ -387,6 +391,10 @@ exports[`ListControl should remove from list when remove button is clicked 1`] =
387
391
  }
388
392
 
389
393
  .emotion-17 {
394
+ background-color: #dfdfe3;
395
+ }
396
+
397
+ .emotion-19 {
390
398
  display: none;
391
399
  border-top: 0;
392
400
  color: inherit;
@@ -448,8 +456,9 @@ exports[`ListControl should remove from list when remove button is clicked 1`] =
448
456
  class="emotion-15 emotion-16"
449
457
  >
450
458
  <mock-list-item-top-bar
451
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
452
- collapsed="false"
459
+ allowremove=""
460
+ allowreorder=""
461
+ class="emotion-17 emotion-18"
453
462
  data-testid="styled-list-item-top-bar-0"
454
463
  id="0"
455
464
  >
@@ -458,17 +467,16 @@ exports[`ListControl should remove from list when remove button is clicked 1`] =
458
467
  </button>
459
468
  </mock-list-item-top-bar>
460
469
  <div
461
- class="emotion-17 emotion-18"
470
+ class="emotion-19 emotion-20"
462
471
  >
463
472
  item 1
464
473
  </div>
465
474
  <mock-object-control
466
475
  classnamewrapper="classNameWrapper"
467
- collapsed="false"
468
476
  data-testid="object-control-0"
469
477
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
470
478
  fieldserrors="Map {}"
471
- forlist="true"
479
+ forlist=""
472
480
  parentids="forID,0"
473
481
  validationkey="0"
474
482
  value="Map { \\"string\\": \\"item 1\\" }"
@@ -478,8 +486,9 @@ exports[`ListControl should remove from list when remove button is clicked 1`] =
478
486
  class="emotion-15 emotion-16"
479
487
  >
480
488
  <mock-list-item-top-bar
481
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
482
- collapsed="false"
489
+ allowremove=""
490
+ allowreorder=""
491
+ class="emotion-17 emotion-18"
483
492
  data-testid="styled-list-item-top-bar-1"
484
493
  id="1"
485
494
  >
@@ -488,17 +497,16 @@ exports[`ListControl should remove from list when remove button is clicked 1`] =
488
497
  </button>
489
498
  </mock-list-item-top-bar>
490
499
  <div
491
- class="emotion-17 emotion-18"
500
+ class="emotion-19 emotion-20"
492
501
  >
493
502
  item 2
494
503
  </div>
495
504
  <mock-object-control
496
505
  classnamewrapper="classNameWrapper"
497
- collapsed="false"
498
506
  data-testid="object-control-1"
499
507
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
500
508
  fieldserrors="Map {}"
501
- forlist="true"
509
+ forlist=""
502
510
  parentids="forID,1"
503
511
  validationkey="1"
504
512
  value="Map { \\"string\\": \\"item 2\\" }"
@@ -519,7 +527,7 @@ exports[`ListControl should remove from list when remove button is clicked 1`] =
519
527
  aria-live="assertive"
520
528
  id="DndLiveRegion-20"
521
529
  role="status"
522
- style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
530
+ style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
523
531
  />
524
532
  </div>
525
533
  </div>
@@ -665,6 +673,10 @@ exports[`ListControl should remove from list when remove button is clicked 2`] =
665
673
  }
666
674
 
667
675
  .emotion-17 {
676
+ background-color: #dfdfe3;
677
+ }
678
+
679
+ .emotion-19 {
668
680
  display: block;
669
681
  border-top: 0;
670
682
  color: inherit;
@@ -726,8 +738,10 @@ exports[`ListControl should remove from list when remove button is clicked 2`] =
726
738
  class="emotion-15 emotion-16"
727
739
  >
728
740
  <mock-list-item-top-bar
729
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
730
- collapsed="true"
741
+ allowremove=""
742
+ allowreorder=""
743
+ class="emotion-17 emotion-18"
744
+ collapsed=""
731
745
  data-testid="styled-list-item-top-bar-1"
732
746
  id="1"
733
747
  >
@@ -736,17 +750,17 @@ exports[`ListControl should remove from list when remove button is clicked 2`] =
736
750
  </button>
737
751
  </mock-list-item-top-bar>
738
752
  <div
739
- class="emotion-17 emotion-18"
753
+ class="emotion-19 emotion-20"
740
754
  >
741
755
  item 2
742
756
  </div>
743
757
  <mock-object-control
744
758
  classnamewrapper="classNameWrapper css-1pznrxi"
745
- collapsed="true"
759
+ collapsed=""
746
760
  data-testid="object-control-1"
747
761
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
748
762
  fieldserrors="Map {}"
749
- forlist="true"
763
+ forlist=""
750
764
  parentids="forID,1"
751
765
  validationkey="1"
752
766
  value="Map { \\"string\\": \\"item 2\\" }"
@@ -767,7 +781,7 @@ exports[`ListControl should remove from list when remove button is clicked 2`] =
767
781
  aria-live="assertive"
768
782
  id="DndLiveRegion-20"
769
783
  role="status"
770
- style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
784
+ style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
771
785
  />
772
786
  </div>
773
787
  </div>
@@ -924,6 +938,10 @@ exports[`ListControl should render list with fields with collapse = "false" and
924
938
  }
925
939
 
926
940
  .emotion-17 {
941
+ background-color: #dfdfe3;
942
+ }
943
+
944
+ .emotion-19 {
927
945
  display: none;
928
946
  border-top: 0;
929
947
  color: inherit;
@@ -985,8 +1003,9 @@ exports[`ListControl should render list with fields with collapse = "false" and
985
1003
  class="emotion-15 emotion-16"
986
1004
  >
987
1005
  <mock-list-item-top-bar
988
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
989
- collapsed="false"
1006
+ allowremove=""
1007
+ allowreorder=""
1008
+ class="emotion-17 emotion-18"
990
1009
  data-testid="styled-list-item-top-bar-0"
991
1010
  id="0"
992
1011
  >
@@ -995,17 +1014,16 @@ exports[`ListControl should render list with fields with collapse = "false" and
995
1014
  </button>
996
1015
  </mock-list-item-top-bar>
997
1016
  <div
998
- class="emotion-17 emotion-18"
1017
+ class="emotion-19 emotion-20"
999
1018
  >
1000
1019
  item 1
1001
1020
  </div>
1002
1021
  <mock-object-control
1003
1022
  classnamewrapper="classNameWrapper"
1004
- collapsed="false"
1005
1023
  data-testid="object-control-0"
1006
1024
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
1007
1025
  fieldserrors="Map {}"
1008
- forlist="true"
1026
+ forlist=""
1009
1027
  parentids="forID,0"
1010
1028
  validationkey="0"
1011
1029
  value="Map { \\"string\\": \\"item 1\\" }"
@@ -1015,8 +1033,9 @@ exports[`ListControl should render list with fields with collapse = "false" and
1015
1033
  class="emotion-15 emotion-16"
1016
1034
  >
1017
1035
  <mock-list-item-top-bar
1018
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
1019
- collapsed="false"
1036
+ allowremove=""
1037
+ allowreorder=""
1038
+ class="emotion-17 emotion-18"
1020
1039
  data-testid="styled-list-item-top-bar-1"
1021
1040
  id="1"
1022
1041
  >
@@ -1025,17 +1044,16 @@ exports[`ListControl should render list with fields with collapse = "false" and
1025
1044
  </button>
1026
1045
  </mock-list-item-top-bar>
1027
1046
  <div
1028
- class="emotion-17 emotion-18"
1047
+ class="emotion-19 emotion-20"
1029
1048
  >
1030
1049
  item 2
1031
1050
  </div>
1032
1051
  <mock-object-control
1033
1052
  classnamewrapper="classNameWrapper"
1034
- collapsed="false"
1035
1053
  data-testid="object-control-1"
1036
1054
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
1037
1055
  fieldserrors="Map {}"
1038
- forlist="true"
1056
+ forlist=""
1039
1057
  parentids="forID,1"
1040
1058
  validationkey="1"
1041
1059
  value="Map { \\"string\\": \\"item 2\\" }"
@@ -1056,7 +1074,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
1056
1074
  aria-live="assertive"
1057
1075
  id="DndLiveRegion-16"
1058
1076
  role="status"
1059
- style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
1077
+ style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
1060
1078
  />
1061
1079
  </div>
1062
1080
  </div>
@@ -1202,6 +1220,10 @@ exports[`ListControl should render list with fields with collapse = "false" and
1202
1220
  }
1203
1221
 
1204
1222
  .emotion-17 {
1223
+ background-color: #dfdfe3;
1224
+ }
1225
+
1226
+ .emotion-19 {
1205
1227
  display: none;
1206
1228
  border-top: 0;
1207
1229
  color: inherit;
@@ -1263,8 +1285,9 @@ exports[`ListControl should render list with fields with collapse = "false" and
1263
1285
  class="emotion-15 emotion-16"
1264
1286
  >
1265
1287
  <mock-list-item-top-bar
1266
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
1267
- collapsed="false"
1288
+ allowremove=""
1289
+ allowreorder=""
1290
+ class="emotion-17 emotion-18"
1268
1291
  data-testid="styled-list-item-top-bar-0"
1269
1292
  id="0"
1270
1293
  >
@@ -1273,17 +1296,16 @@ exports[`ListControl should render list with fields with collapse = "false" and
1273
1296
  </button>
1274
1297
  </mock-list-item-top-bar>
1275
1298
  <div
1276
- class="emotion-17 emotion-18"
1299
+ class="emotion-19 emotion-20"
1277
1300
  >
1278
1301
  item 1
1279
1302
  </div>
1280
1303
  <mock-object-control
1281
1304
  classnamewrapper="classNameWrapper"
1282
- collapsed="false"
1283
1305
  data-testid="object-control-0"
1284
1306
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
1285
1307
  fieldserrors="Map {}"
1286
- forlist="true"
1308
+ forlist=""
1287
1309
  parentids="forID,0"
1288
1310
  validationkey="0"
1289
1311
  value="Map { \\"string\\": \\"item 1\\" }"
@@ -1293,8 +1315,9 @@ exports[`ListControl should render list with fields with collapse = "false" and
1293
1315
  class="emotion-15 emotion-16"
1294
1316
  >
1295
1317
  <mock-list-item-top-bar
1296
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
1297
- collapsed="false"
1318
+ allowremove=""
1319
+ allowreorder=""
1320
+ class="emotion-17 emotion-18"
1298
1321
  data-testid="styled-list-item-top-bar-1"
1299
1322
  id="1"
1300
1323
  >
@@ -1303,17 +1326,16 @@ exports[`ListControl should render list with fields with collapse = "false" and
1303
1326
  </button>
1304
1327
  </mock-list-item-top-bar>
1305
1328
  <div
1306
- class="emotion-17 emotion-18"
1329
+ class="emotion-19 emotion-20"
1307
1330
  >
1308
1331
  item 2
1309
1332
  </div>
1310
1333
  <mock-object-control
1311
1334
  classnamewrapper="classNameWrapper"
1312
- collapsed="false"
1313
1335
  data-testid="object-control-1"
1314
1336
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
1315
1337
  fieldserrors="Map {}"
1316
- forlist="true"
1338
+ forlist=""
1317
1339
  parentids="forID,1"
1318
1340
  validationkey="1"
1319
1341
  value="Map { \\"string\\": \\"item 2\\" }"
@@ -1334,7 +1356,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
1334
1356
  aria-live="assertive"
1335
1357
  id="DndLiveRegion-18"
1336
1358
  role="status"
1337
- style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
1359
+ style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
1338
1360
  />
1339
1361
  </div>
1340
1362
  </div>
@@ -1480,6 +1502,10 @@ exports[`ListControl should render list with fields with default collapse ("true
1480
1502
  }
1481
1503
 
1482
1504
  .emotion-17 {
1505
+ background-color: #dfdfe3;
1506
+ }
1507
+
1508
+ .emotion-19 {
1483
1509
  display: block;
1484
1510
  border-top: 0;
1485
1511
  color: inherit;
@@ -1541,8 +1567,10 @@ exports[`ListControl should render list with fields with default collapse ("true
1541
1567
  class="emotion-15 emotion-16"
1542
1568
  >
1543
1569
  <mock-list-item-top-bar
1544
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
1545
- collapsed="true"
1570
+ allowremove=""
1571
+ allowreorder=""
1572
+ class="emotion-17 emotion-18"
1573
+ collapsed=""
1546
1574
  data-testid="styled-list-item-top-bar-0"
1547
1575
  id="0"
1548
1576
  >
@@ -1551,17 +1579,17 @@ exports[`ListControl should render list with fields with default collapse ("true
1551
1579
  </button>
1552
1580
  </mock-list-item-top-bar>
1553
1581
  <div
1554
- class="emotion-17 emotion-18"
1582
+ class="emotion-19 emotion-20"
1555
1583
  >
1556
1584
  item 1
1557
1585
  </div>
1558
1586
  <mock-object-control
1559
1587
  classnamewrapper="classNameWrapper css-1pznrxi"
1560
- collapsed="true"
1588
+ collapsed=""
1561
1589
  data-testid="object-control-0"
1562
1590
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
1563
1591
  fieldserrors="Map {}"
1564
- forlist="true"
1592
+ forlist=""
1565
1593
  parentids="forID,0"
1566
1594
  validationkey="0"
1567
1595
  value="Map { \\"string\\": \\"item 1\\" }"
@@ -1571,8 +1599,10 @@ exports[`ListControl should render list with fields with default collapse ("true
1571
1599
  class="emotion-15 emotion-16"
1572
1600
  >
1573
1601
  <mock-list-item-top-bar
1574
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
1575
- collapsed="true"
1602
+ allowremove=""
1603
+ allowreorder=""
1604
+ class="emotion-17 emotion-18"
1605
+ collapsed=""
1576
1606
  data-testid="styled-list-item-top-bar-1"
1577
1607
  id="1"
1578
1608
  >
@@ -1581,17 +1611,17 @@ exports[`ListControl should render list with fields with default collapse ("true
1581
1611
  </button>
1582
1612
  </mock-list-item-top-bar>
1583
1613
  <div
1584
- class="emotion-17 emotion-18"
1614
+ class="emotion-19 emotion-20"
1585
1615
  >
1586
1616
  item 2
1587
1617
  </div>
1588
1618
  <mock-object-control
1589
1619
  classnamewrapper="classNameWrapper css-1pznrxi"
1590
- collapsed="true"
1620
+ collapsed=""
1591
1621
  data-testid="object-control-1"
1592
1622
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
1593
1623
  fieldserrors="Map {}"
1594
- forlist="true"
1624
+ forlist=""
1595
1625
  parentids="forID,1"
1596
1626
  validationkey="1"
1597
1627
  value="Map { \\"string\\": \\"item 2\\" }"
@@ -1612,7 +1642,7 @@ exports[`ListControl should render list with fields with default collapse ("true
1612
1642
  aria-live="assertive"
1613
1643
  id="DndLiveRegion-15"
1614
1644
  role="status"
1615
- style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
1645
+ style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
1616
1646
  />
1617
1647
  </div>
1618
1648
  </div>
@@ -1940,6 +1970,10 @@ exports[`ListControl should render list with nested object 1`] = `
1940
1970
  }
1941
1971
 
1942
1972
  .emotion-17 {
1973
+ background-color: #dfdfe3;
1974
+ }
1975
+
1976
+ .emotion-19 {
1943
1977
  display: block;
1944
1978
  border-top: 0;
1945
1979
  color: inherit;
@@ -2001,8 +2035,10 @@ exports[`ListControl should render list with nested object 1`] = `
2001
2035
  class="emotion-15 emotion-16"
2002
2036
  >
2003
2037
  <mock-list-item-top-bar
2004
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
2005
- collapsed="true"
2038
+ allowremove=""
2039
+ allowreorder=""
2040
+ class="emotion-17 emotion-18"
2041
+ collapsed=""
2006
2042
  data-testid="styled-list-item-top-bar-0"
2007
2043
  id="0"
2008
2044
  >
@@ -2011,17 +2047,17 @@ exports[`ListControl should render list with nested object 1`] = `
2011
2047
  </button>
2012
2048
  </mock-list-item-top-bar>
2013
2049
  <div
2014
- class="emotion-17 emotion-18"
2050
+ class="emotion-19 emotion-20"
2015
2051
  >
2016
2052
  Object
2017
2053
  </div>
2018
2054
  <mock-object-control
2019
2055
  classnamewrapper="classNameWrapper css-1pznrxi"
2020
- collapsed="true"
2056
+ collapsed=""
2021
2057
  data-testid="object-control-0"
2022
2058
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"field\\": Map { \\"name\\": \\"object\\", \\"widget\\": \\"object\\", \\"label\\": \\"Object\\", \\"fields\\": List [ Map { \\"name\\": \\"title\\", \\"widget\\": \\"string\\", \\"label\\": \\"Title\\" } ] } }"
2023
2059
  fieldserrors="Map {}"
2024
- forlist="true"
2060
+ forlist=""
2025
2061
  parentids="forID,0"
2026
2062
  validationkey="0"
2027
2063
  value="Map { \\"object\\": Map { \\"title\\": \\"item 1\\" } }"
@@ -2031,8 +2067,10 @@ exports[`ListControl should render list with nested object 1`] = `
2031
2067
  class="emotion-15 emotion-16"
2032
2068
  >
2033
2069
  <mock-list-item-top-bar
2034
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
2035
- collapsed="true"
2070
+ allowremove=""
2071
+ allowreorder=""
2072
+ class="emotion-17 emotion-18"
2073
+ collapsed=""
2036
2074
  data-testid="styled-list-item-top-bar-1"
2037
2075
  id="1"
2038
2076
  >
@@ -2041,17 +2079,17 @@ exports[`ListControl should render list with nested object 1`] = `
2041
2079
  </button>
2042
2080
  </mock-list-item-top-bar>
2043
2081
  <div
2044
- class="emotion-17 emotion-18"
2082
+ class="emotion-19 emotion-20"
2045
2083
  >
2046
2084
  Object
2047
2085
  </div>
2048
2086
  <mock-object-control
2049
2087
  classnamewrapper="classNameWrapper css-1pznrxi"
2050
- collapsed="true"
2088
+ collapsed=""
2051
2089
  data-testid="object-control-1"
2052
2090
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"field\\": Map { \\"name\\": \\"object\\", \\"widget\\": \\"object\\", \\"label\\": \\"Object\\", \\"fields\\": List [ Map { \\"name\\": \\"title\\", \\"widget\\": \\"string\\", \\"label\\": \\"Title\\" } ] } }"
2053
2091
  fieldserrors="Map {}"
2054
- forlist="true"
2092
+ forlist=""
2055
2093
  parentids="forID,1"
2056
2094
  validationkey="1"
2057
2095
  value="Map { \\"object\\": Map { \\"title\\": \\"item 2\\" } }"
@@ -2072,7 +2110,7 @@ exports[`ListControl should render list with nested object 1`] = `
2072
2110
  aria-live="assertive"
2073
2111
  id="DndLiveRegion-0"
2074
2112
  role="status"
2075
- style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
2113
+ style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
2076
2114
  />
2077
2115
  </div>
2078
2116
  </div>
@@ -2218,6 +2256,10 @@ exports[`ListControl should render list with nested object with collapse = false
2218
2256
  }
2219
2257
 
2220
2258
  .emotion-17 {
2259
+ background-color: #dfdfe3;
2260
+ }
2261
+
2262
+ .emotion-19 {
2221
2263
  display: none;
2222
2264
  border-top: 0;
2223
2265
  color: inherit;
@@ -2279,8 +2321,9 @@ exports[`ListControl should render list with nested object with collapse = false
2279
2321
  class="emotion-15 emotion-16"
2280
2322
  >
2281
2323
  <mock-list-item-top-bar
2282
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
2283
- collapsed="false"
2324
+ allowremove=""
2325
+ allowreorder=""
2326
+ class="emotion-17 emotion-18"
2284
2327
  data-testid="styled-list-item-top-bar-0"
2285
2328
  id="0"
2286
2329
  >
@@ -2289,17 +2332,16 @@ exports[`ListControl should render list with nested object with collapse = false
2289
2332
  </button>
2290
2333
  </mock-list-item-top-bar>
2291
2334
  <div
2292
- class="emotion-17 emotion-18"
2335
+ class="emotion-19 emotion-20"
2293
2336
  >
2294
2337
  Object
2295
2338
  </div>
2296
2339
  <mock-object-control
2297
2340
  classnamewrapper="classNameWrapper"
2298
- collapsed="false"
2299
2341
  data-testid="object-control-0"
2300
2342
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"field\\": Map { \\"name\\": \\"object\\", \\"widget\\": \\"object\\", \\"label\\": \\"Object\\", \\"fields\\": List [ Map { \\"name\\": \\"title\\", \\"widget\\": \\"string\\", \\"label\\": \\"Title\\" } ] } }"
2301
2343
  fieldserrors="Map {}"
2302
- forlist="true"
2344
+ forlist=""
2303
2345
  parentids="forID,0"
2304
2346
  validationkey="0"
2305
2347
  value="Map { \\"object\\": Map { \\"title\\": \\"item 1\\" } }"
@@ -2309,8 +2351,9 @@ exports[`ListControl should render list with nested object with collapse = false
2309
2351
  class="emotion-15 emotion-16"
2310
2352
  >
2311
2353
  <mock-list-item-top-bar
2312
- classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
2313
- collapsed="false"
2354
+ allowremove=""
2355
+ allowreorder=""
2356
+ class="emotion-17 emotion-18"
2314
2357
  data-testid="styled-list-item-top-bar-1"
2315
2358
  id="1"
2316
2359
  >
@@ -2319,17 +2362,16 @@ exports[`ListControl should render list with nested object with collapse = false
2319
2362
  </button>
2320
2363
  </mock-list-item-top-bar>
2321
2364
  <div
2322
- class="emotion-17 emotion-18"
2365
+ class="emotion-19 emotion-20"
2323
2366
  >
2324
2367
  Object
2325
2368
  </div>
2326
2369
  <mock-object-control
2327
2370
  classnamewrapper="classNameWrapper"
2328
- collapsed="false"
2329
2371
  data-testid="object-control-1"
2330
2372
  field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"field\\": Map { \\"name\\": \\"object\\", \\"widget\\": \\"object\\", \\"label\\": \\"Object\\", \\"fields\\": List [ Map { \\"name\\": \\"title\\", \\"widget\\": \\"string\\", \\"label\\": \\"Title\\" } ] } }"
2331
2373
  fieldserrors="Map {}"
2332
- forlist="true"
2374
+ forlist=""
2333
2375
  parentids="forID,1"
2334
2376
  validationkey="1"
2335
2377
  value="Map { \\"object\\": Map { \\"title\\": \\"item 2\\" } }"
@@ -2350,7 +2392,7 @@ exports[`ListControl should render list with nested object with collapse = false
2350
2392
  aria-live="assertive"
2351
2393
  id="DndLiveRegion-1"
2352
2394
  role="status"
2353
- style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
2395
+ style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
2354
2396
  />
2355
2397
  </div>
2356
2398
  </div>
package/src/schema.js CHANGED
@@ -1,6 +1,8 @@
1
1
  export default {
2
2
  properties: {
3
3
  allow_add: { type: 'boolean' },
4
+ allow_remove: { type: 'boolean' },
5
+ allow_reorder: { type: 'boolean' },
4
6
  collapsed: { type: 'boolean' },
5
7
  summary: { type: 'string' },
6
8
  minimize_collapsed: { type: 'boolean' },