@defra/forms-model 3.0.565 → 3.0.566
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.
| 
         @@ -54,6 +54,12 @@ export const PageTypes = Object.freeze([{ 
     | 
|
| 
       54 
54 
     | 
    
         
             
              controller: ControllerType.Summary,
         
     | 
| 
       55 
55 
     | 
    
         
             
              section: undefined,
         
     | 
| 
       56 
56 
     | 
    
         
             
              components: []
         
     | 
| 
      
 57 
     | 
    
         
            +
            }, {
         
     | 
| 
      
 58 
     | 
    
         
            +
              title: 'Summary page with confirmation email',
         
     | 
| 
      
 59 
     | 
    
         
            +
              path: ControllerPath.Summary,
         
     | 
| 
      
 60 
     | 
    
         
            +
              controller: ControllerType.SummaryWithConfirmationEmail,
         
     | 
| 
      
 61 
     | 
    
         
            +
              section: undefined,
         
     | 
| 
      
 62 
     | 
    
         
            +
              components: []
         
     | 
| 
       57 
63 
     | 
    
         
             
            }, {
         
     | 
| 
       58 
64 
     | 
    
         
             
              title: 'Status page',
         
     | 
| 
       59 
65 
     | 
    
         
             
              path: ControllerPath.Status,
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"page-types.js","names":["ControllerPath","ControllerType","PageTypes","Object","freeze","title","path","Start","controller","section","undefined","next","components","Page","Terminal","Repeat","repeat","options","name","schema","min","max","FileUpload","Summary","Status"],"sources":["../../../src/pages/page-types.ts"],"sourcesContent":["import { type Page } from '~/src/form/form-definition/types.js'\nimport { ControllerPath, ControllerType } from '~/src/pages/enums.js'\n\n/**\n * Defaults for creating new pages\n */\nexport const PageTypes: readonly Page[] = Object.freeze([\n  {\n    title: 'Start page',\n    path: ControllerPath.Start,\n    controller: ControllerType.Start,\n    section: undefined,\n    next: [],\n    components: []\n  },\n  {\n    title: 'Question page',\n    path: '/question-page',\n    controller: ControllerType.Page,\n    section: undefined,\n    next: [],\n    components: []\n  },\n  {\n    title: 'Terminal page',\n    path: '/terminal-page',\n    controller: ControllerType.Terminal,\n    section: undefined,\n    next: [],\n    components: []\n  },\n  {\n    title: 'Add another',\n    path: '/add-another-page',\n    controller: ControllerType.Repeat,\n    repeat: {\n      options: { name: '', title: '' },\n      schema: { min: 1, max: 25 }\n    },\n    section: undefined,\n    next: [],\n    components: []\n  },\n  {\n    title: 'File upload page',\n    path: '/file-upload-page',\n    controller: ControllerType.FileUpload,\n    section: undefined,\n    next: [],\n    components: []\n  },\n  {\n    title: 'Summary page',\n    path: ControllerPath.Summary,\n    controller: ControllerType.Summary,\n    section: undefined,\n    components: []\n  },\n  {\n    title: 'Status page',\n    path: ControllerPath.Status,\n    controller: ControllerType.Status,\n    section: undefined\n  }\n])\n"],"mappings":"AACA,SAASA,cAAc,EAAEC,cAAc;;AAEvC;AACA;AACA;AACA,OAAO,MAAMC,SAA0B,GAAGC,MAAM,CAACC,MAAM,CAAC,CACtD;EACEC,KAAK,EAAE,YAAY;EACnBC,IAAI,EAAEN,cAAc,CAACO,KAAK;EAC1BC,UAAU,EAAEP,cAAc,CAACM,KAAK;EAChCE,OAAO,EAAEC,SAAS;EAClBC,IAAI,EAAE,EAAE;EACRC,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,eAAe;EACtBC,IAAI,EAAE,gBAAgB;EACtBE,UAAU,EAAEP,cAAc,CAACY,IAAI;EAC/BJ,OAAO,EAAEC,SAAS;EAClBC,IAAI,EAAE,EAAE;EACRC,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,eAAe;EACtBC,IAAI,EAAE,gBAAgB;EACtBE,UAAU,EAAEP,cAAc,CAACa,QAAQ;EACnCL,OAAO,EAAEC,SAAS;EAClBC,IAAI,EAAE,EAAE;EACRC,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,aAAa;EACpBC,IAAI,EAAE,mBAAmB;EACzBE,UAAU,EAAEP,cAAc,CAACc,MAAM;EACjCC,MAAM,EAAE;IACNC,OAAO,EAAE;MAAEC,IAAI,EAAE,EAAE;MAAEb,KAAK,EAAE;IAAG,CAAC;IAChCc,MAAM,EAAE;MAAEC,GAAG,EAAE,CAAC;MAAEC,GAAG,EAAE;IAAG;EAC5B,CAAC;EACDZ,OAAO,EAAEC,SAAS;EAClBC,IAAI,EAAE,EAAE;EACRC,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,kBAAkB;EACzBC,IAAI,EAAE,mBAAmB;EACzBE,UAAU,EAAEP,cAAc,CAACqB,UAAU;EACrCb,OAAO,EAAEC,SAAS;EAClBC,IAAI,EAAE,EAAE;EACRC,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,cAAc;EACrBC,IAAI,EAAEN,cAAc,CAACuB,OAAO;EAC5Bf,UAAU,EAAEP,cAAc,CAACsB,OAAO;EAClCd,OAAO,EAAEC,SAAS;EAClBE,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,aAAa;EACpBC,IAAI,EAAEN,cAAc, 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"page-types.js","names":["ControllerPath","ControllerType","PageTypes","Object","freeze","title","path","Start","controller","section","undefined","next","components","Page","Terminal","Repeat","repeat","options","name","schema","min","max","FileUpload","Summary","SummaryWithConfirmationEmail","Status"],"sources":["../../../src/pages/page-types.ts"],"sourcesContent":["import { type Page } from '~/src/form/form-definition/types.js'\nimport { ControllerPath, ControllerType } from '~/src/pages/enums.js'\n\n/**\n * Defaults for creating new pages\n */\nexport const PageTypes: readonly Page[] = Object.freeze([\n  {\n    title: 'Start page',\n    path: ControllerPath.Start,\n    controller: ControllerType.Start,\n    section: undefined,\n    next: [],\n    components: []\n  },\n  {\n    title: 'Question page',\n    path: '/question-page',\n    controller: ControllerType.Page,\n    section: undefined,\n    next: [],\n    components: []\n  },\n  {\n    title: 'Terminal page',\n    path: '/terminal-page',\n    controller: ControllerType.Terminal,\n    section: undefined,\n    next: [],\n    components: []\n  },\n  {\n    title: 'Add another',\n    path: '/add-another-page',\n    controller: ControllerType.Repeat,\n    repeat: {\n      options: { name: '', title: '' },\n      schema: { min: 1, max: 25 }\n    },\n    section: undefined,\n    next: [],\n    components: []\n  },\n  {\n    title: 'File upload page',\n    path: '/file-upload-page',\n    controller: ControllerType.FileUpload,\n    section: undefined,\n    next: [],\n    components: []\n  },\n  {\n    title: 'Summary page',\n    path: ControllerPath.Summary,\n    controller: ControllerType.Summary,\n    section: undefined,\n    components: []\n  },\n  {\n    title: 'Summary page with confirmation email',\n    path: ControllerPath.Summary,\n    controller: ControllerType.SummaryWithConfirmationEmail,\n    section: undefined,\n    components: []\n  },\n  {\n    title: 'Status page',\n    path: ControllerPath.Status,\n    controller: ControllerType.Status,\n    section: undefined\n  }\n])\n"],"mappings":"AACA,SAASA,cAAc,EAAEC,cAAc;;AAEvC;AACA;AACA;AACA,OAAO,MAAMC,SAA0B,GAAGC,MAAM,CAACC,MAAM,CAAC,CACtD;EACEC,KAAK,EAAE,YAAY;EACnBC,IAAI,EAAEN,cAAc,CAACO,KAAK;EAC1BC,UAAU,EAAEP,cAAc,CAACM,KAAK;EAChCE,OAAO,EAAEC,SAAS;EAClBC,IAAI,EAAE,EAAE;EACRC,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,eAAe;EACtBC,IAAI,EAAE,gBAAgB;EACtBE,UAAU,EAAEP,cAAc,CAACY,IAAI;EAC/BJ,OAAO,EAAEC,SAAS;EAClBC,IAAI,EAAE,EAAE;EACRC,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,eAAe;EACtBC,IAAI,EAAE,gBAAgB;EACtBE,UAAU,EAAEP,cAAc,CAACa,QAAQ;EACnCL,OAAO,EAAEC,SAAS;EAClBC,IAAI,EAAE,EAAE;EACRC,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,aAAa;EACpBC,IAAI,EAAE,mBAAmB;EACzBE,UAAU,EAAEP,cAAc,CAACc,MAAM;EACjCC,MAAM,EAAE;IACNC,OAAO,EAAE;MAAEC,IAAI,EAAE,EAAE;MAAEb,KAAK,EAAE;IAAG,CAAC;IAChCc,MAAM,EAAE;MAAEC,GAAG,EAAE,CAAC;MAAEC,GAAG,EAAE;IAAG;EAC5B,CAAC;EACDZ,OAAO,EAAEC,SAAS;EAClBC,IAAI,EAAE,EAAE;EACRC,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,kBAAkB;EACzBC,IAAI,EAAE,mBAAmB;EACzBE,UAAU,EAAEP,cAAc,CAACqB,UAAU;EACrCb,OAAO,EAAEC,SAAS;EAClBC,IAAI,EAAE,EAAE;EACRC,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,cAAc;EACrBC,IAAI,EAAEN,cAAc,CAACuB,OAAO;EAC5Bf,UAAU,EAAEP,cAAc,CAACsB,OAAO;EAClCd,OAAO,EAAEC,SAAS;EAClBE,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,sCAAsC;EAC7CC,IAAI,EAAEN,cAAc,CAACuB,OAAO;EAC5Bf,UAAU,EAAEP,cAAc,CAACuB,4BAA4B;EACvDf,OAAO,EAAEC,SAAS;EAClBE,UAAU,EAAE;AACd,CAAC,EACD;EACEP,KAAK,EAAE,aAAa;EACpBC,IAAI,EAAEN,cAAc,CAACyB,MAAM;EAC3BjB,UAAU,EAAEP,cAAc,CAACwB,MAAM;EACjChB,OAAO,EAAEC;AACX,CAAC,CACF,CAAC","ignoreList":[]}
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"page-types.d.ts","sourceRoot":"","sources":["../../../src/pages/page-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,qCAAqC,CAAA;AAG/D;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,SAAS,IAAI, 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"page-types.d.ts","sourceRoot":"","sources":["../../../src/pages/page-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,qCAAqC,CAAA;AAG/D;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,SAAS,IAAI,EAiEnC,CAAA"}
         
     | 
    
        package/package.json
    CHANGED
    
    
    
        package/src/pages/page-types.ts
    CHANGED
    
    | 
         @@ -56,6 +56,13 @@ export const PageTypes: readonly Page[] = Object.freeze([ 
     | 
|
| 
       56 
56 
     | 
    
         
             
                section: undefined,
         
     | 
| 
       57 
57 
     | 
    
         
             
                components: []
         
     | 
| 
       58 
58 
     | 
    
         
             
              },
         
     | 
| 
      
 59 
     | 
    
         
            +
              {
         
     | 
| 
      
 60 
     | 
    
         
            +
                title: 'Summary page with confirmation email',
         
     | 
| 
      
 61 
     | 
    
         
            +
                path: ControllerPath.Summary,
         
     | 
| 
      
 62 
     | 
    
         
            +
                controller: ControllerType.SummaryWithConfirmationEmail,
         
     | 
| 
      
 63 
     | 
    
         
            +
                section: undefined,
         
     | 
| 
      
 64 
     | 
    
         
            +
                components: []
         
     | 
| 
      
 65 
     | 
    
         
            +
              },
         
     | 
| 
       59 
66 
     | 
    
         
             
              {
         
     | 
| 
       60 
67 
     | 
    
         
             
                title: 'Status page',
         
     | 
| 
       61 
68 
     | 
    
         
             
                path: ControllerPath.Status,
         
     |