@ministryofjustice/fb-components-core
Advanced tools
Comparing version 3.1.0-6 to 3.1.0-7
@@ -6,2 +6,2 @@ { | ||
"value": "The selected file must be smaller than {maxSize, bytes}" | ||
} | ||
} |
@@ -6,2 +6,2 @@ { | ||
"value": "{filename} must be smaller than {maxSize, bytes}" | ||
} | ||
} |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "3.1.0-6", | ||
"version": "3.1.0-7", | ||
"description": "Form Builder core components", | ||
@@ -12,0 +12,0 @@ "main": "index.js", |
@@ -21,15 +21,2 @@ { | ||
"type": "number" | ||
}, | ||
"accept": { | ||
"title": "Accepted types", | ||
"description": "Which file types to accept", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"maxSize": { | ||
"title": "Maximum size", | ||
"description": "Maximum file size as human readable string or bytes", | ||
"type": "string" | ||
} | ||
@@ -43,4 +30,7 @@ }, | ||
"$ref": "http://gov.uk/schema/v1.0.0/definition/widthclass/input" | ||
}, | ||
{ | ||
"$ref": "http://gov.uk/schema/v1.0.0/validations#/definitions/uploadBundle" | ||
} | ||
] | ||
} | ||
} |
@@ -48,2 +48,18 @@ { | ||
}, | ||
"errorsAccept": { | ||
"title": "Error messages for ‘Accept’", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/errorStrings" | ||
} | ||
] | ||
}, | ||
"errorsMaxSize": { | ||
"title": "Error messages for ‘Max Size’", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/errorStrings" | ||
} | ||
] | ||
}, | ||
"minLength": { | ||
@@ -285,2 +301,39 @@ "title": "Minimum length", | ||
}, | ||
"uploadBundle": { | ||
"properties": { | ||
"validation": { | ||
"title": "Validation", | ||
"description": "Values for default validation", | ||
"role": "validation", | ||
"properties": { | ||
"accept": { | ||
"title": "Accepted types", | ||
"description": "Which file types to accept", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"maxSize": { | ||
"title": "Maximum size", | ||
"description": "Maximum file size as human readable string or bytes", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"errors": { | ||
"title": "Errors", | ||
"description": "Strings to override for default error messages", | ||
"role": "errorStrings", | ||
"properties": { | ||
"accept": { | ||
"$ref": "#/definitions/errorsAccept" | ||
}, | ||
"maxSize": { | ||
"$ref": "#/definitions/errorsMaxSize" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"stringBundle": { | ||
@@ -404,2 +457,2 @@ "properties": { | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
402219
413
5445