@tinacms/schema-tools 1.3.3 → 1.3.4

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/dist/index.es.js CHANGED
@@ -414,6 +414,16 @@ const resolveField = (field, schema) => {
414
414
  ...extraFields
415
415
  };
416
416
  case "image":
417
+ if (field.list) {
418
+ return {
419
+ component: "list",
420
+ field: {
421
+ component: "image"
422
+ },
423
+ ...field,
424
+ ...extraFields
425
+ };
426
+ }
417
427
  return {
418
428
  component: "image",
419
429
  clearable: true,
package/dist/index.js CHANGED
@@ -441,6 +441,16 @@
441
441
  ...extraFields
442
442
  };
443
443
  case "image":
444
+ if (field.list) {
445
+ return {
446
+ component: "list",
447
+ field: {
448
+ component: "image"
449
+ },
450
+ ...field,
451
+ ...extraFields
452
+ };
453
+ }
444
454
  return {
445
455
  component: "image",
446
456
  clearable: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/schema-tools",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "exports": {
@@ -23,7 +23,7 @@
23
23
  ]
24
24
  },
25
25
  "devDependencies": {
26
- "@tinacms/scripts": "1.0.3",
26
+ "@tinacms/scripts": "1.0.4",
27
27
  "@types/yup": "^0.29.10",
28
28
  "jest": "^27.0.6",
29
29
  "react": "17.0.2",