@gov-cy/govcy-express-services 1.13.2 → 1.13.3

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/README.md CHANGED
@@ -453,7 +453,7 @@ Here is an example JSON config:
453
453
  "tr": ""
454
454
  },
455
455
  "layout": "layouts/govcyBase.njk", // Page layout
456
- "mainLayout": "two-third", // Page main layout
456
+ "mainLayout": "two-thirds", // Page main layout
457
457
  "nextPage": "data-entry-radios" // The next page's URL
458
458
  },
459
459
  "pageTemplate": { //<-- Page template
@@ -561,7 +561,7 @@ Here is an example JSON config:
561
561
  "tr": ""
562
562
  },
563
563
  "layout": "layouts/govcyBase.njk",
564
- "mainLayout": "two-third",
564
+ "mainLayout": "two-thirds",
565
565
  "nextPage": "review"
566
566
  },
567
567
  "pageTemplate": {
@@ -686,7 +686,7 @@ Here is an example JSON config:
686
686
  "tr": ""
687
687
  },
688
688
  "layout": "layouts/govcyBase.njk",
689
- "mainLayout": "two-third"
689
+ "mainLayout": "two-thirds"
690
690
  },
691
691
  "pageTemplate": {
692
692
  "sections": [
@@ -732,7 +732,7 @@ Here is an example JSON config:
732
732
  "tr": ""
733
733
  },
734
734
  "layout": "layouts/govcyBase.njk",
735
- "mainLayout": "two-third"
735
+ "mainLayout": "two-thirds"
736
736
  },
737
737
  "pageTemplate": {
738
738
  "sections": [
@@ -868,7 +868,7 @@ Here's an example of a page defined in the JSON file:
868
868
  "en": "Το email σας"
869
869
  },
870
870
  "layout": "layouts/govcyBase.njk",
871
- "mainLayout": "two-third",
871
+ "mainLayout": "two-thirds",
872
872
  "nextPage": "telephone-number",
873
873
  "conditions": [
874
874
  {
@@ -967,7 +967,7 @@ Lets break down the JSON config for this page:
967
967
  - `pageData.url` is the URL of the page, in this case it's `:siteId/index`
968
968
  - `pageData.title` is the title of the page, in this case it's `Your email`. This will be used in the `review`, `success` pages, the PDF, the email, and the submission platform.
969
969
  - `pageData.layout` is the layout used to render the page. The project only supports the default layout `layouts/govcyBase.njk`
970
- - `pageData.mainLayout` is the layout of the `main` section of the page, in this case it's `two-third`. It can be either `two-third` or `max-width`,
970
+ - `pageData.mainLayout` is the layout of the `main` section of the page, in this case it's `two-thirds`. It can be either `two-thirds` or `max-width`,
971
971
  - `pageData.nextPage` is the next page to redirect to when the user clicks the `continue` button and all validations pass, in this case it will redirect to `/:siteId/telephone-number`
972
972
  - `pageData.conditions` is the array that defines the [conditional logic](#-conditional-logic)
973
973
  - **pageTemplate** is the page's template, which is a JSON object that contains the sections and elements of the page. Check out the [govcy-frontend-renderer's documentation](https://github.com/gov-cy/govcy-frontend-renderer/blob/main/README.md) for more details.
@@ -991,7 +991,7 @@ Task lists act as navigation hubs that show the completion state of one or more
991
991
  "en": "Your application"
992
992
  },
993
993
  "layout": "layouts/govcyBase.njk",
994
- "mainLayout": "two-third",
994
+ "mainLayout": "two-thirds",
995
995
  "nextPage": "options"
996
996
  },
997
997
  "taskList": {
@@ -1101,7 +1101,7 @@ If the `scope` also includes the `email` element, the system will also use that
1101
1101
  "pageData": {
1102
1102
  "url": "index", // Page URL
1103
1103
  "layout": "layouts/govcyBase.njk",
1104
- "mainLayout": "two-third",
1104
+ "mainLayout": "two-thirds",
1105
1105
  "nextPage": "next-page"
1106
1106
  },
1107
1107
  "updateMyDetails": {
@@ -1257,7 +1257,7 @@ Here’s how to define a page that collects multiple academic qualifications:
1257
1257
  "tr": ""
1258
1258
  },
1259
1259
  "layout": "layouts/govcyBase.njk", // Page layout for all pages (add, edit, hub page)
1260
- "mainLayout": "two-third", // Page main layout for all pages (add, edit, hub page)
1260
+ "mainLayout": "two-thirds", // Page main layout for all pages (add, edit, hub page)
1261
1261
  "nextPage": "memberships" // The next page's URL
1262
1262
  },
1263
1263
  "pageTemplate" : { // Page template for the input pages (add, edit)
@@ -2043,7 +2043,7 @@ Here is the same example as part of the page config:
2043
2043
  "tr": ""
2044
2044
  },
2045
2045
  "layout": "layouts/govcyBase.njk",
2046
- "mainLayout": "two-third",
2046
+ "mainLayout": "two-thirds",
2047
2047
  "conditions": [ //---- conditionals start here
2048
2048
  {
2049
2049
  "expression": "dataLayer['my-service.inputData.step1.formData.showExtra'] == 'no'",
@@ -2475,7 +2475,7 @@ Here is a sample code section of a page definition with a file input field:
2475
2475
  "en": "Utility bill"
2476
2476
  },
2477
2477
  "layout": "layouts/govcyBase.njk",
2478
- "mainLayout": "two-third",
2478
+ "mainLayout": "two-thirds",
2479
2479
  "nextPage": "data-entry-all"
2480
2480
  },
2481
2481
  "pageTemplate": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gov-cy/govcy-express-services",
3
- "version": "1.13.2",
3
+ "version": "1.13.3",
4
4
  "description": "An Express-based system that dynamically renders services using @gov-cy/govcy-frontend-renderer and posts data to a submission API.",
5
5
  "author": "DMRID - DSF Team",
6
6
  "license": "MIT",
@@ -232,7 +232,7 @@ export function govcyMultipleThingsHubHandler(req, res, next, page, serviceCopy)
232
232
  pageData: {
233
233
  title: mtConfig.listPage.title,
234
234
  layout: page?.pageData?.layout || "layouts/govcyBase.njk",
235
- mainLayout: page?.pageData?.mainLayout || "two-third"
235
+ mainLayout: page?.pageData?.mainLayout || "two-thirds"
236
236
  }
237
237
  },
238
238
  pageTemplate: hubTemplate
@@ -107,7 +107,7 @@ export function govcyTaskListHandler(req, res, next, page, service) {
107
107
  pageData: {
108
108
  title: page?.pageData?.title,
109
109
  layout: page?.pageData?.layout || "layouts/govcyBase.njk",
110
- mainLayout: page?.pageData?.mainLayout || "two-third"
110
+ mainLayout: page?.pageData?.mainLayout || "two-thirds"
111
111
  }
112
112
  },
113
113
  pageTemplate
@@ -239,7 +239,7 @@ export async function govcyUpdateMyDetailsHandler(req, res, next, page, serviceC
239
239
  pageData: {
240
240
  title: govcyResources.staticResources.text.updateMyDetailsTitle,
241
241
  layout: page?.pageData?.layout || "layouts/govcyBase.njk",
242
- mainLayout: page?.pageData?.mainLayout || "two-third"
242
+ mainLayout: page?.pageData?.mainLayout || "two-thirds"
243
243
  }
244
244
  },
245
245
  pageTemplate: pageTemplateCopy