Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ministryofjustice/fb-components-core

Package Overview
Dependencies
Maintainers
9
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ministryofjustice/fb-components-core - npm Package Compare versions

Comparing version 0.0.148 to 0.0.149

.circleci/config.yml

3

metadata/string/button.continue.page.summary.json

@@ -5,4 +5,3 @@ {

"description": "Continue button text for summary page",
"value": "Accept and send application",
"value:cy": "Derbyn ac anfon cais"
"value": "{page@summaryOf, select, undefined{[% continue.page.summary %]} other{}}"
}
{
"_id": "cookies.message",
"_id": "cookie.message",
"_type": "string",
"description": "Message displayed to user to notify them of the use of cookies",
"value": "We uses cookies to make the site simpler. [Find out more about cookies](/about/cookies)",
"value:cy": "Croeso mccookies to make the site simpler. [Find out more about cookies](/cy/about/cookies)"
"description": "Condition to determine whether to disply cookie message to user",
"value": "{req@newSession, select, other{[% cookie.message.value %]} undefined{}}"
}

@@ -5,3 +5,3 @@ {

"description": "File uploaded is too large",
"value": "{filename} was not uploaded successfully as it was larger than {maxSize}"
"value": "The selected file must be smaller than {maxSize, bytes}"
}

@@ -5,4 +5,3 @@ {

"description": "Errors summary heading",
"value": "There {errorCount, plural, 1 {was a problem} other {were problems}} on the page",
"value:cy": "Roedd yna broblemau {errorCount, plural, 1 {broblem} other {broblemau}} ar y dudalen"
"value": "There is a problem"
}

@@ -5,4 +5,4 @@ {

"description": "Text displayed to allow user to remove an uploaded file",
"value": "Delete",
"value": "Remove",
"value:cy": "Dileu"
}
{
"_id": "fileupload.hint.timing",
"_type": "string",
"description": "Heading displayed for previously uploaded files",
"description": "Information about when files will be uploaded",
"value": "Your {count, select, 1{document} other{documents}} will upload when you click ‘Continue’.",
"value:cy": "{count, select, 1{Bydd eich dogfen yn llwytho pan fyddwch yn clicio ‘Parhau’.} other{Bydd eich dogfennau'n llwytho pan fyddwch chi'n clicio ‘Parhau’.}}"
}

@@ -9,3 +9,3 @@ {

},
"version": "0.0.148",
"version": "0.0.149",
"description": "Form Builder core components",

@@ -17,6 +17,6 @@ "main": "index.js",

"dependencies": {
"govuk-frontend": "2.10.0"
"govuk-frontend": "2.13.0"
},
"devDependencies": {
"@ministryofjustice/fb-specification": "^0.2.0",
"@ministryofjustice/fb-specification": "^0.3.3",
"npm-run-all": "^4.1.5"

@@ -23,0 +23,0 @@ },

@@ -41,3 +41,4 @@ {

"description": "Button URL",
"type": "string"
"type": "string",
"content": true
},

@@ -44,0 +45,0 @@ "element": {

@@ -82,2 +82,12 @@ {

"multiline": true
},
"sessionDuration": {
"title": "Session duration",
"description": "How many minutes a user’s session should last",
"type": "number"
},
"dataRetentionDuration": {
"title": "User data retention duration",
"description": "How many days a user’s data should be kept for",
"type": "number"
}

@@ -84,0 +94,0 @@ },

@@ -14,2 +14,5 @@ {

},
"hint": {
"default": "[% hint.date %]"
},
"dateType": {

@@ -16,0 +19,0 @@ "title": "Date type",

@@ -20,2 +20,38 @@ {

"properties": {
"redact": {
"title": "Redaction pattern",
"description": "Pattern specifying that user input should be redacted and how",
"type": "string",
"category": [
"userinput"
]
},
"optionalText": {
"title": "Optional text",
"description": "Additional text to display if control is optional",
"type": "string",
"category": [
"content"
]
},
"autocomplete": {
"title": "Autocomplete",
"description": "Instructions how to suggest (or not) values",
"type": "string",
"category": [
"userinput"
]
},
"spellcheck": {
"title": "Spellcheck",
"description": "Whether the element may be checked for spelling errors",
"type": "string",
"enum": [
"true",
"false"
],
"category": [
"userinput"
]
},
"disabled": {

@@ -22,0 +58,0 @@ "title": "Disabled",

@@ -20,2 +20,3 @@ {

"type": "string",
"content": true,
"category": [

@@ -22,0 +23,0 @@ "htmlattributes"

@@ -8,3 +8,3 @@ {

"namespace": {
"title": "Namespace name",
"title": "Namespace",
"description": "Namespace under which to store user inputs - combines with input names of child components",

@@ -11,0 +11,0 @@ "type": "string",

@@ -21,6 +21,7 @@ {

"title": "Title",
"description": "The text to use as the page’s title in the document title element - uses heading value by default",
"type": "string",
"content": true,
"category": [
"additional"
"content"
]

@@ -52,5 +53,32 @@ },

"content": true,
"default": "[% cookie.message %]",
"category": [
"dynamic"
]
},
"actionType": {
"title": "Primary action",
"description": "Text for primary action button",
"type": "string",
"enum": [
"continue",
"saveContinue",
"save",
"confirm",
"send.email",
"send.sms"
],
"default": "continue",
"category": [
"additional"
]
},
"backLink": {
"title": "Back link text",
"type": "string",
"default": "[% link.back %]",
"content": true,
"category": [
"additional"
]
}

@@ -57,0 +85,0 @@ },

@@ -10,2 +10,8 @@ {

"const": "email"
},
"autocomplete": {
"const": "email"
},
"spellcheck": {
"const": "false"
}

@@ -12,0 +18,0 @@ },

@@ -16,3 +16,4 @@ {

"type": "string",
"default": "/"
"content": true,
"url": true
},

@@ -22,3 +23,4 @@ "serviceName": {

"description": "Header title that is placed next to GOV.UK. Used for product names (i.e. Pay, Verify)",
"type": "string"
"type": "string",
"content": true
},

@@ -28,3 +30,5 @@ "serviceUrl": {

"description": "Url for the service name anchor",
"type": "string"
"type": "string",
"content": true,
"url": true
},

@@ -34,3 +38,4 @@ "productName": {

"description": "Header title that is placed next to GOV.UK. Used for product names (i.e. Pay, Verify) - IS THIS NOT DUPLICATING serviceName???",
"type": "string"
"type": "string",
"content": true
},

@@ -44,19 +49,14 @@ "assetsPath": {

"navigation": {
"title": "Navigation",
"description": "An array of navigation item objects",
"type": "array",
"items": {
"$id": "http://gov.uk/schema/v1.0.0/header/navigation",
"allOf": [{
"$ref": "http://gov.uk/schema/v1.0.0/definition/linklist"
}],
"properties": {
"text": {
"title": "Navigation text",
"description": "Text of the navigation item",
"type": "string"
"_type": {
"const": "header.navigation"
},
"href": {
"title": "Navigation URL",
"description": "URL of the navigation item",
"type": "string"
"title": {
"type": "null"
}
}
}
},

@@ -79,2 +79,7 @@ "navigationClasses": {

],
"required": [
"homepageUrl",
"serviceName",
"serviceUrl"
],
"category": [

@@ -81,0 +86,0 @@ "content"

@@ -20,3 +20,14 @@ {

"type": "string",
"content": true,
"url": true
},
"active": {
"title": "Active",
"description": "Whether link is active",
"type": "boolean"
},
"attributes": {
"title": "Link attributes",
"description": "Attributes to pass to link",
"type": "object"
}

@@ -23,0 +34,0 @@ },

@@ -11,7 +11,4 @@ {

},
"continue": {
"const": "redundant",
"category": [
"additional"
]
"lede": {
"multiline": true
}

@@ -18,0 +15,0 @@ },

@@ -10,19 +10,2 @@ {

"const": "page.form"
},
"actionType": {
"title": "Primary action",
"description": "Text for primary action button",
"type": "string",
"enum": [
"continue",
"saveContinue",
"save",
"confirm",
"send.email",
"send.sms"
],
"default": "continue",
"category": [
"additional"
]
}

@@ -29,0 +12,0 @@ },

@@ -10,2 +10,18 @@ {

"const": "textarea"
},
"maxwords": {
"type": "number",
"title": "Maximum words",
"description": "Set a word limit",
"category": [
"userinput"
]
},
"threshold": {
"type": "number",
"title": "Threshold percentage",
"description": "Display the message about maximum length or words after a user has entered a certain amount",
"category": [
"userinput"
]
}

@@ -12,0 +28,0 @@ },

@@ -10,5 +10,11 @@ {

"properties": {
"any": {
"title": "Error message",
"description": "Error message users see if their answer fails validation - write {control} to show the question in the message",
"type": "string",
"role": "errorString"
},
"inline": {
"title": "Input error",
"description": "Error message users see next to the input if their answer fails validation",
"description": "Specific error message users see next to the input if their answer fails validation - only set if your input message absolutely must be different to that shown in the summary",
"type": "string",

@@ -19,3 +25,3 @@ "role": "errorString"

"title": "Summary error",
"description": "Error message users see at the top of a page if their answer fails validation - write {control} to show the question in the message",
"description": "Specific error message users see at the top of a page if their answer fails validation - only set if your summary message absolutely must be different to that shown for the input",
"type": "string",

@@ -85,2 +91,15 @@ "role": "errorString"

},
"format": {
"title": "Format to match string against",
"description": "Format used for validating users’ answers",
"type": "string"
},
"errorsFormat": {
"title": "Error messages for format",
"allOf": [
{
"$ref": "#/definitions/errorStrings"
}
]
},
"multipleOf": {

@@ -280,2 +299,5 @@ "title": "Multiple of",

"$ref": "#/definitions/pattern"
},
"format": {
"$ref": "#/definitions/format"
}

@@ -294,2 +316,5 @@ }

"$ref": "#/definitions/errorsPattern"
},
"format": {
"$ref": "#/definitions/errorsFormat"
}

@@ -296,0 +321,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc