govuk_tech_docs 6.6.0.rc.local.tested → 6.6.0

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.
Files changed (675) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -4
  3. data/Rakefile +3 -3
  4. data/govuk_tech_docs.gemspec +82 -24
  5. data/lib/govuk_tech_docs/version.rb +1 -1
  6. data/lib/tasks/lint.rake +24 -30
  7. data/node_modules/.bin/nunjucks-precompile +1 -0
  8. data/node_modules/.package-lock.json +62 -0
  9. data/{documentation → node_modules/a-sync-waterfall}/LICENSE +8 -8
  10. data/node_modules/a-sync-waterfall/README.md +95 -0
  11. data/node_modules/a-sync-waterfall/index.js +83 -0
  12. data/node_modules/a-sync-waterfall/package.json +21 -0
  13. data/node_modules/a-sync-waterfall/test.js +77 -0
  14. data/node_modules/asap/CHANGES.md +70 -0
  15. data/node_modules/asap/LICENSE.md +21 -0
  16. data/node_modules/asap/README.md +237 -0
  17. data/node_modules/asap/asap.js +65 -0
  18. data/node_modules/asap/browser-asap.js +66 -0
  19. data/node_modules/asap/browser-raw.js +223 -0
  20. data/node_modules/asap/package.json +58 -0
  21. data/node_modules/asap/raw.js +101 -0
  22. data/node_modules/commander/CHANGELOG.md +385 -0
  23. data/node_modules/commander/LICENSE +22 -0
  24. data/node_modules/commander/Readme.md +737 -0
  25. data/node_modules/commander/index.js +1756 -0
  26. data/node_modules/commander/package.json +48 -0
  27. data/node_modules/commander/typings/index.d.ts +386 -0
  28. data/node_modules/govuk-frontend/README.md +92 -0
  29. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -0
  30. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -0
  31. data/node_modules/govuk-frontend/dist/govuk/all.mjs.map +1 -0
  32. data/node_modules/govuk-frontend/dist/govuk/common/closest-attribute-value.mjs.map +1 -0
  33. data/node_modules/govuk-frontend/dist/govuk/common/configuration.mjs.map +1 -0
  34. data/node_modules/govuk-frontend/dist/govuk/common/create-element.mjs.map +1 -0
  35. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs.map +1 -0
  36. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs.map +1 -0
  37. data/node_modules/govuk-frontend/dist/govuk/component.mjs.map +1 -0
  38. data/node_modules/govuk-frontend/dist/govuk/components/accordion/README.md +15 -0
  39. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -0
  40. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -0
  41. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs.map +1 -0
  42. data/node_modules/govuk-frontend/dist/govuk/components/accordion/fixtures.json +377 -0
  43. data/node_modules/govuk-frontend/dist/govuk/components/accordion/macro-options.json +142 -0
  44. data/node_modules/govuk-frontend/dist/govuk/components/accordion/macro.njk +3 -0
  45. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-default.html +30 -0
  46. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-additional-descriptions.html +39 -0
  47. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-all-sections-already-open.html +30 -0
  48. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-long-content-and-description.html +36 -0
  49. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template.njk +67 -0
  50. data/node_modules/govuk-frontend/dist/govuk/components/back-link/README.md +15 -0
  51. data/node_modules/govuk-frontend/dist/govuk/components/back-link/fixtures.json +86 -0
  52. data/node_modules/govuk-frontend/dist/govuk/components/back-link/macro-options.json +32 -0
  53. data/node_modules/govuk-frontend/dist/govuk/components/back-link/macro.njk +3 -0
  54. data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-default.html +1 -0
  55. data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-inverse.html +1 -0
  56. data/node_modules/govuk-frontend/dist/govuk/components/back-link/template.njk +6 -0
  57. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/README.md +15 -0
  58. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/fixtures.json +258 -0
  59. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/macro-options.json +58 -0
  60. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/macro.njk +3 -0
  61. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-default.html +16 -0
  62. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-inverse.html +11 -0
  63. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-collapse-on-mobile.html +13 -0
  64. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-last-breadcrumb-as-current-page.html +11 -0
  65. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-one-level.html +7 -0
  66. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-without-the-home-section.html +10 -0
  67. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template.njk +30 -0
  68. data/node_modules/govuk-frontend/dist/govuk/components/button/README.md +15 -0
  69. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js.map +1 -0
  70. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs.map +1 -0
  71. data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs.map +1 -0
  72. data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +496 -0
  73. data/node_modules/govuk-frontend/dist/govuk/components/button/macro-options.json +74 -0
  74. data/node_modules/govuk-frontend/dist/govuk/components/button/macro.njk +3 -0
  75. data/node_modules/govuk-frontend/dist/govuk/components/button/template-default-active-state.html +3 -0
  76. data/node_modules/govuk-frontend/dist/govuk/components/button/template-default-focus-state.html +3 -0
  77. data/node_modules/govuk-frontend/dist/govuk/components/button/template-default-hover-state.html +3 -0
  78. data/node_modules/govuk-frontend/dist/govuk/components/button/template-default.html +3 -0
  79. data/node_modules/govuk-frontend/dist/govuk/components/button/template-disabled.html +3 -0
  80. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-active-state.html +3 -0
  81. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-disabled.html +3 -0
  82. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-focus-state.html +3 -0
  83. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-hover-state.html +3 -0
  84. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse.html +3 -0
  85. data/node_modules/govuk-frontend/dist/govuk/components/button/template-link.html +3 -0
  86. data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-active-state.html +3 -0
  87. data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-disabled.html +3 -0
  88. data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-focus-state.html +3 -0
  89. data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-hover-state.html +3 -0
  90. data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary.html +3 -0
  91. data/node_modules/govuk-frontend/dist/govuk/components/button/template-start.html +6 -0
  92. data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-active-state.html +3 -0
  93. data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-disabled.html +3 -0
  94. data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-focus-state.html +3 -0
  95. data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-hover-state.html +3 -0
  96. data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning.html +3 -0
  97. data/node_modules/govuk-frontend/dist/govuk/components/button/template.njk +58 -0
  98. data/node_modules/govuk-frontend/dist/govuk/components/character-count/README.md +15 -0
  99. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js.map +1 -0
  100. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -0
  101. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -0
  102. data/node_modules/govuk-frontend/dist/govuk/components/character-count/fixtures.json +630 -0
  103. data/node_modules/govuk-frontend/dist/govuk/components/character-count/macro-options.json +206 -0
  104. data/node_modules/govuk-frontend/dist/govuk/components/character-count/macro.njk +3 -0
  105. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-default.html +9 -0
  106. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-count-type-characters-and-error-message.html +12 -0
  107. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-count-type-characters-and-threshold.html +9 -0
  108. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-count-type-characters-and-value.html +9 -0
  109. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-count-type-characters.html +9 -0
  110. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-count-type-length.html +9 -0
  111. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-count-type-words-and-error-message.html +12 -0
  112. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-count-type-words-and-threshold.html +9 -0
  113. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-count-type-words-and-value.html +9 -0
  114. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-count-type-words.html +9 -0
  115. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-custom-rows.html +9 -0
  116. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-default-value-exceeding-limit.html +15 -0
  117. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-default-value.html +12 -0
  118. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-hint-and-error.html +15 -0
  119. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-hint.html +12 -0
  120. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-label-as-page-heading.html +11 -0
  121. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-maxwords.html +9 -0
  122. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-threshold.html +9 -0
  123. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template.njk +128 -0
  124. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/README.md +15 -0
  125. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js.map +1 -0
  126. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs.map +1 -0
  127. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs.map +1 -0
  128. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/fixtures.json +1344 -0
  129. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/macro-options.json +229 -0
  130. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/macro.njk +3 -0
  131. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-default.html +27 -0
  132. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-conditional-reveal.html +25 -0
  133. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-divider-and-none.html +34 -0
  134. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-error.html +30 -0
  135. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-hint.html +30 -0
  136. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-long-text.html +27 -0
  137. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small.html +27 -0
  138. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-items.html +39 -0
  139. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-and-none.html +34 -0
  140. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-none-and-conditional-items.html +44 -0
  141. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message.html +39 -0
  142. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-hint.html +30 -0
  143. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-hints-on-items.html +27 -0
  144. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-legend-as-a-page-heading.html +32 -0
  145. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-optional-form-group-classes-showing-group-error.html +40 -0
  146. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-pre-checked-values.html +39 -0
  147. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-very-long-option-text.html +30 -0
  148. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template.njk +122 -0
  149. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/README.md +15 -0
  150. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +543 -0
  151. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/macro-options.json +132 -0
  152. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/macro.njk +3 -0
  153. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-accepted-confirmation-banner.html +19 -0
  154. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-default.html +26 -0
  155. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-rejected-confirmation-banner.html +19 -0
  156. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-with-html.html +27 -0
  157. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template.njk +57 -0
  158. data/node_modules/govuk-frontend/dist/govuk/components/date-input/README.md +15 -0
  159. data/node_modules/govuk-frontend/dist/govuk/components/date-input/fixtures.json +1314 -0
  160. data/node_modules/govuk-frontend/dist/govuk/components/date-input/macro-options.json +213 -0
  161. data/node_modules/govuk-frontend/dist/govuk/components/date-input/macro.njk +3 -0
  162. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-day-and-month-using-items.html +28 -0
  163. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-day-and-month.html +28 -0
  164. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-default.html +36 -0
  165. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-month-and-year-using-items.html +28 -0
  166. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-month-and-year.html +28 -0
  167. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-message-and-hint-using-items.html +39 -0
  168. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-message-and-hint.html +39 -0
  169. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-on-day-input-using-items.html +39 -0
  170. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-on-day-input.html +39 -0
  171. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-on-month-input-using-items.html +39 -0
  172. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-on-month-input.html +39 -0
  173. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-on-year-input-using-items.html +39 -0
  174. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-on-year-input.html +39 -0
  175. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-errors-only-using-classes.html +33 -0
  176. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-errors-only-using-items-and-classes.html +33 -0
  177. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-errors-only-using-items.html +33 -0
  178. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-errors-only.html +33 -0
  179. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-items.html +36 -0
  180. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-translations.html +36 -0
  181. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-values-and-name-prefix.html +36 -0
  182. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-values-name-prefix-and-custom-names.html +36 -0
  183. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-values.html +36 -0
  184. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template.njk +161 -0
  185. data/node_modules/govuk-frontend/dist/govuk/components/details/README.md +15 -0
  186. data/node_modules/govuk-frontend/dist/govuk/components/details/fixtures.json +133 -0
  187. data/node_modules/govuk-frontend/dist/govuk/components/details/implementation.md +87 -0
  188. data/node_modules/govuk-frontend/dist/govuk/components/details/macro-options.json +56 -0
  189. data/node_modules/govuk-frontend/dist/govuk/components/details/macro.njk +3 -0
  190. data/node_modules/govuk-frontend/dist/govuk/components/details/template-default.html +10 -0
  191. data/node_modules/govuk-frontend/dist/govuk/components/details/template-expanded.html +10 -0
  192. data/node_modules/govuk-frontend/dist/govuk/components/details/template-with-html.html +18 -0
  193. data/node_modules/govuk-frontend/dist/govuk/components/details/template.njk +14 -0
  194. data/node_modules/govuk-frontend/dist/govuk/components/error-message/README.md +15 -0
  195. data/node_modules/govuk-frontend/dist/govuk/components/error-message/fixtures.json +113 -0
  196. data/node_modules/govuk-frontend/dist/govuk/components/error-message/macro-options.json +38 -0
  197. data/node_modules/govuk-frontend/dist/govuk/components/error-message/macro.njk +3 -0
  198. data/node_modules/govuk-frontend/dist/govuk/components/error-message/template-default.html +3 -0
  199. data/node_modules/govuk-frontend/dist/govuk/components/error-message/template-translated.html +3 -0
  200. data/node_modules/govuk-frontend/dist/govuk/components/error-message/template.njk +13 -0
  201. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/README.md +15 -0
  202. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js.map +1 -0
  203. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs.map +1 -0
  204. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs.map +1 -0
  205. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/fixtures.json +326 -0
  206. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/macro-options.json +82 -0
  207. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/macro.njk +3 -0
  208. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-default.html +17 -0
  209. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-mixed-with-and-without-links.html +17 -0
  210. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-with-description-only.html +12 -0
  211. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-with-everything.html +20 -0
  212. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-without-links.html +14 -0
  213. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template.njk +37 -0
  214. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/README.md +15 -0
  215. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -0
  216. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -0
  217. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs.map +1 -0
  218. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/fixtures.json +62 -0
  219. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/macro-options.json +62 -0
  220. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/macro.njk +3 -0
  221. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template-default.html +5 -0
  222. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template.njk +25 -0
  223. data/node_modules/govuk-frontend/dist/govuk/components/feedback/README.md +15 -0
  224. data/node_modules/govuk-frontend/dist/govuk/components/feedback/fixtures.json +95 -0
  225. data/node_modules/govuk-frontend/dist/govuk/components/feedback/macro-options.json +50 -0
  226. data/node_modules/govuk-frontend/dist/govuk/components/feedback/macro.njk +3 -0
  227. data/node_modules/govuk-frontend/dist/govuk/components/feedback/template-default.html +12 -0
  228. data/node_modules/govuk-frontend/dist/govuk/components/feedback/template-silly-example.html +19 -0
  229. data/node_modules/govuk-frontend/dist/govuk/components/feedback/template.njk +24 -0
  230. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/README.md +15 -0
  231. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/fixtures.json +260 -0
  232. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/macro-options.json +70 -0
  233. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/macro.njk +3 -0
  234. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template-as-page-heading-l.html +7 -0
  235. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template-as-page-heading-m.html +7 -0
  236. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template-as-page-heading-s.html +7 -0
  237. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template-as-page-heading-without-class.html +7 -0
  238. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template-as-page-heading-xl.html +7 -0
  239. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template-default.html +5 -0
  240. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template-styled-as-large-text.html +5 -0
  241. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template-styled-as-medium-text.html +5 -0
  242. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template-styled-as-small-text.html +5 -0
  243. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template-styled-as-xl-text.html +5 -0
  244. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template.njk +24 -0
  245. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/README.md +15 -0
  246. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js.map +1 -0
  247. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs.map +1 -0
  248. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs.map +1 -0
  249. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +416 -0
  250. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/macro-options.json +179 -0
  251. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/macro.njk +3 -0
  252. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-default.html +6 -0
  253. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-custom-wrapper-classes-and-attributes.html +11 -0
  254. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-multiple-files.html +11 -0
  255. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-with-error-message-and-hint.html +17 -0
  256. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced.html +11 -0
  257. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-translated.html +11 -0
  258. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-with-error-message-and-hint.html +12 -0
  259. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-with-hint-text.html +9 -0
  260. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-with-label-as-page-heading.html +8 -0
  261. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template.njk +90 -0
  262. data/node_modules/govuk-frontend/dist/govuk/components/footer/README.md +15 -0
  263. data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +773 -0
  264. data/node_modules/govuk-frontend/dist/govuk/components/footer/macro-options.json +164 -0
  265. data/node_modules/govuk-frontend/dist/govuk/components/footer/macro.njk +3 -0
  266. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-default.html +59 -0
  267. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-full-gds-example.html +233 -0
  268. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-three-equal-columns.html +167 -0
  269. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-html-content-licence-and-copyright-notice.html +54 -0
  270. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-meta.html +63 -0
  271. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-text-content-licence-and-copyright-notice.html +54 -0
  272. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-one-column.html +97 -0
  273. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-two-columns.html +97 -0
  274. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta-links-and-meta-content.html +105 -0
  275. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-navigation.html +117 -0
  276. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-no-content-licence.html +37 -0
  277. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-custom-meta.html +41 -0
  278. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-meta-links.html +80 -0
  279. data/node_modules/govuk-frontend/dist/govuk/components/footer/template.njk +104 -0
  280. data/node_modules/govuk-frontend/dist/govuk/components/generic-header/README.md +15 -0
  281. data/node_modules/govuk-frontend/dist/govuk/components/generic-header/fixtures.json +90 -0
  282. data/node_modules/govuk-frontend/dist/govuk/components/generic-header/macro-options.json +38 -0
  283. data/node_modules/govuk-frontend/dist/govuk/components/generic-header/macro.njk +3 -0
  284. data/node_modules/govuk-frontend/dist/govuk/components/generic-header/template-default.html +11 -0
  285. data/node_modules/govuk-frontend/dist/govuk/components/generic-header/template-full-width.html +20 -0
  286. data/node_modules/govuk-frontend/dist/govuk/components/generic-header/template-with-image-logo.html +20 -0
  287. data/node_modules/govuk-frontend/dist/govuk/components/generic-header/template-with-text-and-image-logo.html +20 -0
  288. data/node_modules/govuk-frontend/dist/govuk/components/generic-header/template.njk +14 -0
  289. data/node_modules/govuk-frontend/dist/govuk/components/header/README.md +15 -0
  290. data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +73 -0
  291. data/node_modules/govuk-frontend/dist/govuk/components/header/macro-options.json +32 -0
  292. data/node_modules/govuk-frontend/dist/govuk/components/header/macro.njk +3 -0
  293. data/node_modules/govuk-frontend/dist/govuk/components/header/template-default.html +34 -0
  294. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +34 -0
  295. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-product-name.html +34 -0
  296. data/node_modules/govuk-frontend/dist/govuk/components/header/template.njk +23 -0
  297. data/node_modules/govuk-frontend/dist/govuk/components/hint/README.md +15 -0
  298. data/node_modules/govuk-frontend/dist/govuk/components/hint/fixtures.json +77 -0
  299. data/node_modules/govuk-frontend/dist/govuk/components/hint/macro-options.json +32 -0
  300. data/node_modules/govuk-frontend/dist/govuk/components/hint/macro.njk +3 -0
  301. data/node_modules/govuk-frontend/dist/govuk/components/hint/template-default.html +5 -0
  302. data/node_modules/govuk-frontend/dist/govuk/components/hint/template-with-html.html +4 -0
  303. data/node_modules/govuk-frontend/dist/govuk/components/hint/template.njk +6 -0
  304. data/node_modules/govuk-frontend/dist/govuk/components/input/README.md +15 -0
  305. data/node_modules/govuk-frontend/dist/govuk/components/input/fixtures.json +832 -0
  306. data/node_modules/govuk-frontend/dist/govuk/components/input/macro-options.json +245 -0
  307. data/node_modules/govuk-frontend/dist/govuk/components/input/macro.njk +3 -0
  308. data/node_modules/govuk-frontend/dist/govuk/components/input/template-default.html +6 -0
  309. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-error-and-hint.html +12 -0
  310. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-error-message.html +9 -0
  311. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-extra-letter-spacing.html +6 -0
  312. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-hint-text.html +9 -0
  313. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-label-as-page-heading.html +8 -0
  314. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-prefix-and-suffix-and-error.html +13 -0
  315. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-prefix-and-suffix-and-width-modifier.html +10 -0
  316. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-prefix-and-suffix.html +10 -0
  317. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-prefix.html +9 -0
  318. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-suffix.html +9 -0
  319. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-width-10-class.html +9 -0
  320. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-width-2-class.html +9 -0
  321. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-width-20-class.html +9 -0
  322. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-width-3-class.html +9 -0
  323. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-width-30-class.html +9 -0
  324. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-width-4-class.html +9 -0
  325. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-width-5-class.html +9 -0
  326. data/node_modules/govuk-frontend/dist/govuk/components/input/template.njk +133 -0
  327. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/README.md +15 -0
  328. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/fixtures.json +76 -0
  329. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/macro-options.json +38 -0
  330. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/macro.njk +3 -0
  331. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/template-default.html +3 -0
  332. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/template-with-html.html +11 -0
  333. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/template.njk +6 -0
  334. data/node_modules/govuk-frontend/dist/govuk/components/label/README.md +15 -0
  335. data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +210 -0
  336. data/node_modules/govuk-frontend/dist/govuk/components/label/macro-options.json +38 -0
  337. data/node_modules/govuk-frontend/dist/govuk/components/label/macro.njk +3 -0
  338. data/node_modules/govuk-frontend/dist/govuk/components/label/template-as-page-heading-l.html +5 -0
  339. data/node_modules/govuk-frontend/dist/govuk/components/label/template-as-page-heading-m.html +5 -0
  340. data/node_modules/govuk-frontend/dist/govuk/components/label/template-as-page-heading-s.html +5 -0
  341. data/node_modules/govuk-frontend/dist/govuk/components/label/template-as-page-heading-without-class.html +5 -0
  342. data/node_modules/govuk-frontend/dist/govuk/components/label/template-as-page-heading-xl.html +5 -0
  343. data/node_modules/govuk-frontend/dist/govuk/components/label/template-default.html +3 -0
  344. data/node_modules/govuk-frontend/dist/govuk/components/label/template-styled-as-large-text.html +3 -0
  345. data/node_modules/govuk-frontend/dist/govuk/components/label/template-styled-as-medium-text.html +3 -0
  346. data/node_modules/govuk-frontend/dist/govuk/components/label/template-styled-as-small-text.html +3 -0
  347. data/node_modules/govuk-frontend/dist/govuk/components/label/template-styled-as-xl-text.html +3 -0
  348. data/node_modules/govuk-frontend/dist/govuk/components/label/template-with-bold-text.html +3 -0
  349. data/node_modules/govuk-frontend/dist/govuk/components/label/template.njk +19 -0
  350. data/node_modules/govuk-frontend/dist/govuk/components/language-navigation/README.md +15 -0
  351. data/node_modules/govuk-frontend/dist/govuk/components/language-navigation/fixtures.json +482 -0
  352. data/node_modules/govuk-frontend/dist/govuk/components/language-navigation/macro-options.json +88 -0
  353. data/node_modules/govuk-frontend/dist/govuk/components/language-navigation/macro.njk +3 -0
  354. data/node_modules/govuk-frontend/dist/govuk/components/language-navigation/template-default.html +12 -0
  355. data/node_modules/govuk-frontend/dist/govuk/components/language-navigation/template-inverse.html +12 -0
  356. data/node_modules/govuk-frontend/dist/govuk/components/language-navigation/template-with-language-description.html +12 -0
  357. data/node_modules/govuk-frontend/dist/govuk/components/language-navigation/template-with-large-amount-of-multiple-languages.html +99 -0
  358. data/node_modules/govuk-frontend/dist/govuk/components/language-navigation/template-with-mixed-text-directions.html +12 -0
  359. data/node_modules/govuk-frontend/dist/govuk/components/language-navigation/template-with-multiple-languages.html +24 -0
  360. data/node_modules/govuk-frontend/dist/govuk/components/language-navigation/template-with-translated-navigation-label.html +12 -0
  361. data/node_modules/govuk-frontend/dist/govuk/components/language-navigation/template.njk +33 -0
  362. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/README.md +15 -0
  363. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/fixtures.json +260 -0
  364. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/macro-options.json +74 -0
  365. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/macro.njk +3 -0
  366. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js.map +1 -0
  367. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs.map +1 -0
  368. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs.map +1 -0
  369. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-default.html +12 -0
  370. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-long-heading.html +12 -0
  371. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-lots-of-content.html +19 -0
  372. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-text-as-html.html +21 -0
  373. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-type-as-success.html +12 -0
  374. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template.njk +49 -0
  375. data/node_modules/govuk-frontend/dist/govuk/components/pagination/README.md +15 -0
  376. data/node_modules/govuk-frontend/dist/govuk/components/pagination/fixtures.json +415 -0
  377. data/node_modules/govuk-frontend/dist/govuk/components/pagination/macro-options.json +140 -0
  378. data/node_modules/govuk-frontend/dist/govuk/components/pagination/macro.njk +3 -0
  379. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-default.html +39 -0
  380. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-first-page.html +29 -0
  381. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-last-page.html +29 -0
  382. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-link-and-item-text.html +39 -0
  383. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-many-pages.html +65 -0
  384. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-next-only.html +12 -0
  385. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only-and-labels.html +26 -0
  386. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only-and-very-long-labels.html +26 -0
  387. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only.html +22 -0
  388. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-previous-only.html +12 -0
  389. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template.njk +87 -0
  390. data/node_modules/govuk-frontend/dist/govuk/components/panel/README.md +15 -0
  391. data/node_modules/govuk-frontend/dist/govuk/components/panel/fixtures.json +353 -0
  392. data/node_modules/govuk-frontend/dist/govuk/components/panel/macro-options.json +108 -0
  393. data/node_modules/govuk-frontend/dist/govuk/components/panel/macro.njk +3 -0
  394. data/node_modules/govuk-frontend/dist/govuk/components/panel/template-default.html +8 -0
  395. data/node_modules/govuk-frontend/dist/govuk/components/panel/template-interruption-with-content-with-long-line-length.html +17 -0
  396. data/node_modules/govuk-frontend/dist/govuk/components/panel/template-interruption-with-headings-content-and-lists.html +23 -0
  397. data/node_modules/govuk-frontend/dist/govuk/components/panel/template-interruption.html +14 -0
  398. data/node_modules/govuk-frontend/dist/govuk/components/panel/template.njk +56 -0
  399. data/node_modules/govuk-frontend/dist/govuk/components/password-input/fixtures.json +215 -0
  400. data/node_modules/govuk-frontend/dist/govuk/components/password-input/macro-options.json +181 -0
  401. data/node_modules/govuk-frontend/dist/govuk/components/password-input/macro.njk +3 -0
  402. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -0
  403. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -0
  404. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs.map +1 -0
  405. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-default.html +11 -0
  406. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-error-message.html +17 -0
  407. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-hint-text.html +14 -0
  408. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-input-width-class.html +11 -0
  409. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-label-as-page-heading.html +13 -0
  410. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template.njk +93 -0
  411. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/README.md +15 -0
  412. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +97 -0
  413. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/macro-options.json +33 -0
  414. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/macro.njk +3 -0
  415. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/template-default.html +10 -0
  416. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/template.njk +17 -0
  417. data/node_modules/govuk-frontend/dist/govuk/components/radios/README.md +15 -0
  418. data/node_modules/govuk-frontend/dist/govuk/components/radios/fixtures.json +1339 -0
  419. data/node_modules/govuk-frontend/dist/govuk/components/radios/macro-options.json +211 -0
  420. data/node_modules/govuk-frontend/dist/govuk/components/radios/macro.njk +3 -0
  421. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js.map +1 -0
  422. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs.map +1 -0
  423. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs.map +1 -0
  424. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-default.html +21 -0
  425. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-inline.html +24 -0
  426. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-inline.html +27 -0
  427. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-a-divider.html +28 -0
  428. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-conditional-reveal.html +31 -0
  429. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-error.html +30 -0
  430. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-hint.html +30 -0
  431. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-long-text.html +27 -0
  432. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small.html +27 -0
  433. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-divider.html +28 -0
  434. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-item-checked.html +39 -0
  435. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items-and-pre-checked-value.html +39 -0
  436. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items.html +39 -0
  437. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-fieldset-and-error-message.html +24 -0
  438. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-hint.html +24 -0
  439. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-hints-on-items.html +29 -0
  440. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-legend-as-page-heading.html +26 -0
  441. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-optional-form-group-classes-showing-group-error.html +40 -0
  442. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-very-long-option-text.html +33 -0
  443. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-without-fieldset.html +22 -0
  444. data/node_modules/govuk-frontend/dist/govuk/components/radios/template.njk +115 -0
  445. data/node_modules/govuk-frontend/dist/govuk/components/select/README.md +15 -0
  446. data/node_modules/govuk-frontend/dist/govuk/components/select/fixtures.json +550 -0
  447. data/node_modules/govuk-frontend/dist/govuk/components/select/macro-options.json +163 -0
  448. data/node_modules/govuk-frontend/dist/govuk/components/select/macro.njk +3 -0
  449. data/node_modules/govuk-frontend/dist/govuk/components/select/template-default.html +10 -0
  450. data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-full-width-override.html +10 -0
  451. data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-hint-text-and-error-message.html +16 -0
  452. data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-label-as-page-heading.html +12 -0
  453. data/node_modules/govuk-frontend/dist/govuk/components/select/template.njk +68 -0
  454. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/README.md +15 -0
  455. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +777 -0
  456. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro-options.json +164 -0
  457. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro.njk +3 -0
  458. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js.map +1 -0
  459. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs.map +1 -0
  460. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs.map +1 -0
  461. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-default.html +57 -0
  462. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-inverse-with-language-navigation.html +72 -0
  463. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-inverse.html +63 -0
  464. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-a-single-navigation-item-and-collapsenavigationonmobile-set-to-true.html +38 -0
  465. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-a-single-navigation-item.html +35 -0
  466. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-collapsenavigationonmobile-set-to-false.html +60 -0
  467. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-html-navigation-items.html +49 -0
  468. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-inline-end-slot.html +33 -0
  469. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-language-navigation.html +62 -0
  470. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-large-navigation.html +153 -0
  471. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-long-service-name.html +20 -0
  472. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-navigation-with-a-current-item.html +58 -0
  473. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-non-link-navigation-items.html +49 -0
  474. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-right-aligned-language-navigation.html +62 -0
  475. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-link.html +20 -0
  476. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-name-and-navigation.html +63 -0
  477. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-name.html +18 -0
  478. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template.njk +111 -0
  479. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/README.md +15 -0
  480. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/fixtures.json +113 -0
  481. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/macro-options.json +32 -0
  482. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/macro.njk +3 -0
  483. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js.map +1 -0
  484. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs.map +1 -0
  485. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs.map +1 -0
  486. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/template-default.html +1 -0
  487. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/template-with-focus.html +1 -0
  488. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/template.njk +6 -0
  489. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/README.md +15 -0
  490. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/fixtures.json +1528 -0
  491. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/macro-options.json +248 -0
  492. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/macro.njk +3 -0
  493. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-extreme.html +106 -0
  494. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-a-html-header.html +28 -0
  495. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-a-text-header.html +28 -0
  496. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-actions-plus-summary-list-actions.html +49 -0
  497. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-actions.html +36 -0
  498. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-default.html +35 -0
  499. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-extreme.html +261 -0
  500. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-no-border-on-last-row.html +35 -0
  501. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-no-border.html +35 -0
  502. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-actions.html +58 -0
  503. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template.njk +94 -0
  504. data/node_modules/govuk-frontend/dist/govuk/components/table/README.md +15 -0
  505. data/node_modules/govuk-frontend/dist/govuk/components/table/fixtures.json +651 -0
  506. data/node_modules/govuk-frontend/dist/govuk/components/table/macro-options.json +132 -0
  507. data/node_modules/govuk-frontend/dist/govuk/components/table/macro.njk +3 -0
  508. data/node_modules/govuk-frontend/dist/govuk/components/table/template-default.html +19 -0
  509. data/node_modules/govuk-frontend/dist/govuk/components/table/template-with-head-and-caption.html +27 -0
  510. data/node_modules/govuk-frontend/dist/govuk/components/table/template-with-head.html +26 -0
  511. data/node_modules/govuk-frontend/dist/govuk/components/table/template.njk +57 -0
  512. data/node_modules/govuk-frontend/dist/govuk/components/tabs/README.md +15 -0
  513. data/node_modules/govuk-frontend/dist/govuk/components/tabs/fixtures.json +333 -0
  514. data/node_modules/govuk-frontend/dist/govuk/components/tabs/macro-options.json +84 -0
  515. data/node_modules/govuk-frontend/dist/govuk/components/tabs/macro.njk +3 -0
  516. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js.map +1 -0
  517. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs.map +1 -0
  518. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs.map +1 -0
  519. data/node_modules/govuk-frontend/dist/govuk/components/tabs/template-default.html +117 -0
  520. data/node_modules/govuk-frontend/dist/govuk/components/tabs/template-tabs-with-anchor-in-panel.html +26 -0
  521. data/node_modules/govuk-frontend/dist/govuk/components/tabs/template.njk +48 -0
  522. data/node_modules/govuk-frontend/dist/govuk/components/tag/README.md +15 -0
  523. data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +149 -0
  524. data/node_modules/govuk-frontend/dist/govuk/components/tag/macro-options.json +26 -0
  525. data/node_modules/govuk-frontend/dist/govuk/components/tag/macro.njk +3 -0
  526. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-default.html +3 -0
  527. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-green.html +3 -0
  528. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-grey.html +3 -0
  529. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-orange.html +3 -0
  530. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-pink.html +3 -0
  531. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-purple.html +3 -0
  532. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-red.html +3 -0
  533. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-turquoise.html +3 -0
  534. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-yellow.html +3 -0
  535. data/node_modules/govuk-frontend/dist/govuk/components/tag/template.njk +6 -0
  536. data/node_modules/govuk-frontend/dist/govuk/components/task-list/README.md +15 -0
  537. data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +563 -0
  538. data/node_modules/govuk-frontend/dist/govuk/components/task-list/macro-options.json +119 -0
  539. data/node_modules/govuk-frontend/dist/govuk/components/task-list/macro.njk +3 -0
  540. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-default.html +37 -0
  541. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-forced-hover-state.html +37 -0
  542. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-all-possible-colours.html +131 -0
  543. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-empty-values.html +27 -0
  544. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-hint-text-and-additional-states.html +77 -0
  545. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-very-long-single-word-tags.html +37 -0
  546. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template.njk +41 -0
  547. data/node_modules/govuk-frontend/dist/govuk/components/textarea/README.md +15 -0
  548. data/node_modules/govuk-frontend/dist/govuk/components/textarea/fixtures.json +316 -0
  549. data/node_modules/govuk-frontend/dist/govuk/components/textarea/macro-options.json +143 -0
  550. data/node_modules/govuk-frontend/dist/govuk/components/textarea/macro.njk +3 -0
  551. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-default.html +6 -0
  552. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-custom-rows.html +6 -0
  553. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-default-value.html +9 -0
  554. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-error-message.html +9 -0
  555. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-hint.html +9 -0
  556. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-label-as-page-heading.html +8 -0
  557. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template.njk +56 -0
  558. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/README.md +15 -0
  559. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/fixtures.json +101 -0
  560. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/macro-options.json +32 -0
  561. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/macro.njk +3 -0
  562. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/template-default.html +7 -0
  563. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/template-multiple-lines.html +7 -0
  564. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/template.njk +10 -0
  565. data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs.map +1 -0
  566. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +3 -0
  567. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -0
  568. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -0
  569. data/node_modules/govuk-frontend/dist/govuk/i18n.mjs.map +1 -0
  570. data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -0
  571. data/node_modules/govuk-frontend/dist/govuk/macros/attributes.njk +110 -0
  572. data/node_modules/govuk-frontend/dist/govuk/macros/i18n.njk +21 -0
  573. data/node_modules/govuk-frontend/dist/govuk/macros/logo.njk +56 -0
  574. data/node_modules/govuk-frontend/dist/govuk/template.njk +107 -0
  575. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +188 -0
  576. data/node_modules/govuk-frontend/package.json +99 -0
  577. data/node_modules/nunjucks/LICENSE +26 -0
  578. data/node_modules/nunjucks/README.md +58 -0
  579. data/node_modules/nunjucks/bin/precompile +58 -0
  580. data/node_modules/nunjucks/bin/precompile.cmd +5 -0
  581. data/node_modules/nunjucks/browser/nunjucks-slim.js +3709 -0
  582. data/node_modules/nunjucks/browser/nunjucks-slim.js.map +1 -0
  583. data/node_modules/nunjucks/browser/nunjucks-slim.min.js +3 -0
  584. data/node_modules/nunjucks/browser/nunjucks-slim.min.js.map +1 -0
  585. data/node_modules/nunjucks/browser/nunjucks.js +7021 -0
  586. data/node_modules/nunjucks/browser/nunjucks.js.map +1 -0
  587. data/node_modules/nunjucks/browser/nunjucks.min.js +3 -0
  588. data/node_modules/nunjucks/browser/nunjucks.min.js.map +1 -0
  589. data/node_modules/nunjucks/index.js +82 -0
  590. data/node_modules/nunjucks/package.json +112 -0
  591. data/node_modules/nunjucks/src/compiler.js +1027 -0
  592. data/node_modules/nunjucks/src/environment.js +548 -0
  593. data/node_modules/nunjucks/src/express-app.js +23 -0
  594. data/node_modules/nunjucks/src/filters.js +546 -0
  595. data/node_modules/nunjucks/src/globals.js +65 -0
  596. data/node_modules/nunjucks/src/jinja-compat.js +293 -0
  597. data/node_modules/nunjucks/src/lexer.js +474 -0
  598. data/node_modules/nunjucks/src/lib.js +325 -0
  599. data/node_modules/nunjucks/src/loader.js +21 -0
  600. data/node_modules/nunjucks/src/loaders.js +5 -0
  601. data/node_modules/nunjucks/src/node-loaders.js +139 -0
  602. data/node_modules/nunjucks/src/nodes.js +350 -0
  603. data/node_modules/nunjucks/src/object.js +100 -0
  604. data/node_modules/nunjucks/src/parser.js +1028 -0
  605. data/node_modules/nunjucks/src/precompile-global.js +17 -0
  606. data/node_modules/nunjucks/src/precompile.js +108 -0
  607. data/node_modules/nunjucks/src/precompiled-loader.js +31 -0
  608. data/node_modules/nunjucks/src/runtime.js +333 -0
  609. data/node_modules/nunjucks/src/tests.js +265 -0
  610. data/node_modules/nunjucks/src/transformer.js +166 -0
  611. data/node_modules/nunjucks/src/web-loaders.js +94 -0
  612. metadata +609 -67
  613. data/.github/ISSUE_TEMPLATE/bug.yaml +0 -69
  614. data/.github/ISSUE_TEMPLATE/config.yaml +0 -6
  615. data/.github/ISSUE_TEMPLATE/documentation.yaml +0 -29
  616. data/.github/ISSUE_TEMPLATE/enhancement.yaml +0 -25
  617. data/.github/dependabot.yml +0 -67
  618. data/.github/pull_request_template.md +0 -28
  619. data/.github/workflows/build-middleman-artifact.yaml +0 -41
  620. data/.github/workflows/check-documentation-updates.yaml +0 -33
  621. data/.github/workflows/check-gem-version.yaml +0 -36
  622. data/.github/workflows/npm-vulnerability-scanner.yaml +0 -55
  623. data/.github/workflows/pipeline.yaml +0 -58
  624. data/.github/workflows/publish-gem.yaml +0 -52
  625. data/.github/workflows/publish-github-pages.yaml +0 -38
  626. data/.github/workflows/ruby-vulnerability-scanner.yaml +0 -44
  627. data/.github/workflows/test.yaml +0 -48
  628. data/documentation/.nvmrc +0 -1
  629. data/documentation/Gemfile +0 -11
  630. data/documentation/README.md +0 -30
  631. data/documentation/Staticfile +0 -4
  632. data/documentation/config/tech-docs.yml +0 -56
  633. data/documentation/config.rb +0 -21
  634. data/documentation/source/accessibility/index.html.md.erb +0 -64
  635. data/documentation/source/configure_project/frontmatter/index.html.md.erb +0 -206
  636. data/documentation/source/configure_project/global_configuration/index.html.md.erb +0 -386
  637. data/documentation/source/configure_project/index.html.md.erb +0 -17
  638. data/documentation/source/configure_project/page_expiry_and_review/index.html.md.erb +0 -93
  639. data/documentation/source/configure_project/structure_docs/index.html.md.erb +0 -117
  640. data/documentation/source/create_project/build/index.html.md.erb +0 -20
  641. data/documentation/source/create_project/create_new_project/index.html.md.erb +0 -23
  642. data/documentation/source/create_project/get_started/index.html.md.erb +0 -58
  643. data/documentation/source/create_project/index.html.md.erb +0 -17
  644. data/documentation/source/create_project/preview/index.html.md.erb +0 -26
  645. data/documentation/source/images/Basic multipage.svg +0 -1
  646. data/documentation/source/images/Basic_multipage.svg +0 -1
  647. data/documentation/source/images/Nested multipage.svg +0 -1
  648. data/documentation/source/images/Nested_multipage.svg +0 -1
  649. data/documentation/source/images/Single_page.svg +0 -1
  650. data/documentation/source/images/core-layout-without-sidebar.png +0 -0
  651. data/documentation/source/images/core-layout.png +0 -0
  652. data/documentation/source/images/daniel-the-manual-spaniel-screenshot.svg +0 -1
  653. data/documentation/source/images/expired-page.png +0 -0
  654. data/documentation/source/images/last-reviewed-only.png +0 -0
  655. data/documentation/source/images/last-reviewed-only.svg +0 -1
  656. data/documentation/source/images/layout-layout.png +0 -0
  657. data/documentation/source/images/multipage.svg +0 -3
  658. data/documentation/source/images/not-expired-page.png +0 -0
  659. data/documentation/source/index.html.md.erb +0 -19
  660. data/documentation/source/javascripts/application.js +0 -1
  661. data/documentation/source/maintain_project/index.html.md.erb +0 -18
  662. data/documentation/source/maintain_project/redirects/index.html.md.erb +0 -22
  663. data/documentation/source/maintain_project/review_content/index.html.md.erb +0 -45
  664. data/documentation/source/maintain_project/use_latest_template/index.html.md.erb +0 -34
  665. data/documentation/source/partials/_links.erb +0 -81
  666. data/documentation/source/publish_project/deploy/index.html.md.erb +0 -44
  667. data/documentation/source/publish_project/index.html.md.erb +0 -15
  668. data/documentation/source/publish_project/version/index.html.md.erb +0 -12
  669. data/documentation/source/stylesheets/print.css.scss +0 -3
  670. data/documentation/source/stylesheets/screen-old-ie.css.scss +0 -4
  671. data/documentation/source/stylesheets/screen.css.scss +0 -1
  672. data/documentation/source/support/index.html.md.erb +0 -46
  673. data/documentation/source/write_docs/add_openapi_spec/index.html.md.erb +0 -48
  674. data/documentation/source/write_docs/content/index.html.md.erb +0 -144
  675. data/documentation/source/write_docs/index.html.md.erb +0 -15
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ function precompileGlobal(templates, opts) {
4
+ var out = '';
5
+ opts = opts || {};
6
+ for (var i = 0; i < templates.length; i++) {
7
+ var name = JSON.stringify(templates[i].name);
8
+ var template = templates[i].template;
9
+ out += '(function() {' + '(window.nunjucksPrecompiled = window.nunjucksPrecompiled || {})' + '[' + name + '] = (function() {\n' + template + '\n})();\n';
10
+ if (opts.asFunction) {
11
+ out += 'return function(ctx, cb) { return nunjucks.render(' + name + ', ctx, cb); }\n';
12
+ }
13
+ out += '})();\n';
14
+ }
15
+ return out;
16
+ }
17
+ module.exports = precompileGlobal;
@@ -0,0 +1,108 @@
1
+ 'use strict';
2
+
3
+ var fs = require('fs');
4
+ var path = require('path');
5
+ var _require = require('./lib'),
6
+ _prettifyError = _require._prettifyError;
7
+ var compiler = require('./compiler');
8
+ var _require2 = require('./environment'),
9
+ Environment = _require2.Environment;
10
+ var precompileGlobal = require('./precompile-global');
11
+ function match(filename, patterns) {
12
+ if (!Array.isArray(patterns)) {
13
+ return false;
14
+ }
15
+ return patterns.some(function (pattern) {
16
+ return filename.match(pattern);
17
+ });
18
+ }
19
+ function precompileString(str, opts) {
20
+ opts = opts || {};
21
+ opts.isString = true;
22
+ var env = opts.env || new Environment([]);
23
+ var wrapper = opts.wrapper || precompileGlobal;
24
+ if (!opts.name) {
25
+ throw new Error('the "name" option is required when compiling a string');
26
+ }
27
+ return wrapper([_precompile(str, opts.name, env)], opts);
28
+ }
29
+ function precompile(input, opts) {
30
+ // The following options are available:
31
+ //
32
+ // * name: name of the template (auto-generated when compiling a directory)
33
+ // * isString: input is a string, not a file path
34
+ // * asFunction: generate a callable function
35
+ // * force: keep compiling on error
36
+ // * env: the Environment to use (gets extensions and async filters from it)
37
+ // * include: which file/folders to include (folders are auto-included, files are auto-excluded)
38
+ // * exclude: which file/folders to exclude (folders are auto-included, files are auto-excluded)
39
+ // * wrapper: function(templates, opts) {...}
40
+ // Customize the output format to store the compiled template.
41
+ // By default, templates are stored in a global variable used by the runtime.
42
+ // A custom loader will be necessary to load your custom wrapper.
43
+
44
+ opts = opts || {};
45
+ var env = opts.env || new Environment([]);
46
+ var wrapper = opts.wrapper || precompileGlobal;
47
+ if (opts.isString) {
48
+ return precompileString(input, opts);
49
+ }
50
+ var pathStats = fs.existsSync(input) && fs.statSync(input);
51
+ var precompiled = [];
52
+ var templates = [];
53
+ function addTemplates(dir) {
54
+ fs.readdirSync(dir).forEach(function (file) {
55
+ var filepath = path.join(dir, file);
56
+ var subpath = filepath.substr(path.join(input, '/').length);
57
+ var stat = fs.statSync(filepath);
58
+ if (stat && stat.isDirectory()) {
59
+ subpath += '/';
60
+ if (!match(subpath, opts.exclude)) {
61
+ addTemplates(filepath);
62
+ }
63
+ } else if (match(subpath, opts.include)) {
64
+ templates.push(filepath);
65
+ }
66
+ });
67
+ }
68
+ if (pathStats.isFile()) {
69
+ precompiled.push(_precompile(fs.readFileSync(input, 'utf-8'), opts.name || input, env));
70
+ } else if (pathStats.isDirectory()) {
71
+ addTemplates(input);
72
+ for (var i = 0; i < templates.length; i++) {
73
+ var name = templates[i].replace(path.join(input, '/'), '');
74
+ try {
75
+ precompiled.push(_precompile(fs.readFileSync(templates[i], 'utf-8'), name, env));
76
+ } catch (e) {
77
+ if (opts.force) {
78
+ // Don't stop generating the output if we're
79
+ // forcing compilation.
80
+ console.error(e); // eslint-disable-line no-console
81
+ } else {
82
+ throw e;
83
+ }
84
+ }
85
+ }
86
+ }
87
+ return wrapper(precompiled, opts);
88
+ }
89
+ function _precompile(str, name, env) {
90
+ env = env || new Environment([]);
91
+ var asyncFilters = env.asyncFilters;
92
+ var extensions = env.extensionsList;
93
+ var template;
94
+ name = name.replace(/\\/g, '/');
95
+ try {
96
+ template = compiler.compile(str, asyncFilters, extensions, name, env.opts);
97
+ } catch (err) {
98
+ throw _prettifyError(name, false, err);
99
+ }
100
+ return {
101
+ name: name,
102
+ template: template
103
+ };
104
+ }
105
+ module.exports = {
106
+ precompile: precompile,
107
+ precompileString: precompileString
108
+ };
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
4
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5
+ var Loader = require('./loader');
6
+ var PrecompiledLoader = /*#__PURE__*/function (_Loader) {
7
+ _inheritsLoose(PrecompiledLoader, _Loader);
8
+ function PrecompiledLoader(compiledTemplates) {
9
+ var _this;
10
+ _this = _Loader.call(this) || this;
11
+ _this.precompiled = compiledTemplates || {};
12
+ return _this;
13
+ }
14
+ var _proto = PrecompiledLoader.prototype;
15
+ _proto.getSource = function getSource(name) {
16
+ if (this.precompiled[name]) {
17
+ return {
18
+ src: {
19
+ type: 'code',
20
+ obj: this.precompiled[name]
21
+ },
22
+ path: name
23
+ };
24
+ }
25
+ return null;
26
+ };
27
+ return PrecompiledLoader;
28
+ }(Loader);
29
+ module.exports = {
30
+ PrecompiledLoader: PrecompiledLoader
31
+ };
@@ -0,0 +1,333 @@
1
+ 'use strict';
2
+
3
+ var lib = require('./lib');
4
+ var arrayFrom = Array.from;
5
+ var supportsIterators = typeof Symbol === 'function' && Symbol.iterator && typeof arrayFrom === 'function';
6
+
7
+ // Frames keep track of scoping both at compile-time and run-time so
8
+ // we know how to access variables. Block tags can introduce special
9
+ // variables, for example.
10
+ var Frame = /*#__PURE__*/function () {
11
+ function Frame(parent, isolateWrites) {
12
+ this.variables = Object.create(null);
13
+ this.parent = parent;
14
+ this.topLevel = false;
15
+ // if this is true, writes (set) should never propagate upwards past
16
+ // this frame to its parent (though reads may).
17
+ this.isolateWrites = isolateWrites;
18
+ }
19
+ var _proto = Frame.prototype;
20
+ _proto.set = function set(name, val, resolveUp) {
21
+ // Allow variables with dots by automatically creating the
22
+ // nested structure
23
+ var parts = name.split('.');
24
+ var obj = this.variables;
25
+ var frame = this;
26
+ if (resolveUp) {
27
+ if (frame = this.resolve(parts[0], true)) {
28
+ frame.set(name, val);
29
+ return;
30
+ }
31
+ }
32
+ for (var i = 0; i < parts.length - 1; i++) {
33
+ var id = parts[i];
34
+ if (!obj[id]) {
35
+ obj[id] = {};
36
+ }
37
+ obj = obj[id];
38
+ }
39
+ obj[parts[parts.length - 1]] = val;
40
+ };
41
+ _proto.get = function get(name) {
42
+ var val = this.variables[name];
43
+ if (val !== undefined) {
44
+ return val;
45
+ }
46
+ return null;
47
+ };
48
+ _proto.lookup = function lookup(name) {
49
+ var p = this.parent;
50
+ var val = this.variables[name];
51
+ if (val !== undefined) {
52
+ return val;
53
+ }
54
+ return p && p.lookup(name);
55
+ };
56
+ _proto.resolve = function resolve(name, forWrite) {
57
+ var p = forWrite && this.isolateWrites ? undefined : this.parent;
58
+ var val = this.variables[name];
59
+ if (val !== undefined) {
60
+ return this;
61
+ }
62
+ return p && p.resolve(name);
63
+ };
64
+ _proto.push = function push(isolateWrites) {
65
+ return new Frame(this, isolateWrites);
66
+ };
67
+ _proto.pop = function pop() {
68
+ return this.parent;
69
+ };
70
+ return Frame;
71
+ }();
72
+ function makeMacro(argNames, kwargNames, func) {
73
+ return function macro() {
74
+ for (var _len = arguments.length, macroArgs = new Array(_len), _key = 0; _key < _len; _key++) {
75
+ macroArgs[_key] = arguments[_key];
76
+ }
77
+ var argCount = numArgs(macroArgs);
78
+ var args;
79
+ var kwargs = getKeywordArgs(macroArgs);
80
+ if (argCount > argNames.length) {
81
+ args = macroArgs.slice(0, argNames.length);
82
+
83
+ // Positional arguments that should be passed in as
84
+ // keyword arguments (essentially default values)
85
+ macroArgs.slice(args.length, argCount).forEach(function (val, i) {
86
+ if (i < kwargNames.length) {
87
+ kwargs[kwargNames[i]] = val;
88
+ }
89
+ });
90
+ args.push(kwargs);
91
+ } else if (argCount < argNames.length) {
92
+ args = macroArgs.slice(0, argCount);
93
+ for (var i = argCount; i < argNames.length; i++) {
94
+ var arg = argNames[i];
95
+
96
+ // Keyword arguments that should be passed as
97
+ // positional arguments, i.e. the caller explicitly
98
+ // used the name of a positional arg
99
+ args.push(kwargs[arg]);
100
+ delete kwargs[arg];
101
+ }
102
+ args.push(kwargs);
103
+ } else {
104
+ args = macroArgs;
105
+ }
106
+ return func.apply(this, args);
107
+ };
108
+ }
109
+ function makeKeywordArgs(obj) {
110
+ obj.__keywords = true;
111
+ return obj;
112
+ }
113
+ function isKeywordArgs(obj) {
114
+ return obj && Object.prototype.hasOwnProperty.call(obj, '__keywords');
115
+ }
116
+ function getKeywordArgs(args) {
117
+ var len = args.length;
118
+ if (len) {
119
+ var lastArg = args[len - 1];
120
+ if (isKeywordArgs(lastArg)) {
121
+ return lastArg;
122
+ }
123
+ }
124
+ return {};
125
+ }
126
+ function numArgs(args) {
127
+ var len = args.length;
128
+ if (len === 0) {
129
+ return 0;
130
+ }
131
+ var lastArg = args[len - 1];
132
+ if (isKeywordArgs(lastArg)) {
133
+ return len - 1;
134
+ } else {
135
+ return len;
136
+ }
137
+ }
138
+
139
+ // A SafeString object indicates that the string should not be
140
+ // autoescaped. This happens magically because autoescaping only
141
+ // occurs on primitive string objects.
142
+ function SafeString(val) {
143
+ if (typeof val !== 'string') {
144
+ return val;
145
+ }
146
+ this.val = val;
147
+ this.length = val.length;
148
+ }
149
+ SafeString.prototype = Object.create(String.prototype, {
150
+ length: {
151
+ writable: true,
152
+ configurable: true,
153
+ value: 0
154
+ }
155
+ });
156
+ SafeString.prototype.valueOf = function valueOf() {
157
+ return this.val;
158
+ };
159
+ SafeString.prototype.toString = function toString() {
160
+ return this.val;
161
+ };
162
+ function copySafeness(dest, target) {
163
+ if (dest instanceof SafeString) {
164
+ return new SafeString(target);
165
+ }
166
+ return target.toString();
167
+ }
168
+ function markSafe(val) {
169
+ var type = typeof val;
170
+ if (type === 'string') {
171
+ return new SafeString(val);
172
+ } else if (type !== 'function') {
173
+ return val;
174
+ } else {
175
+ return function wrapSafe(args) {
176
+ var ret = val.apply(this, arguments);
177
+ if (typeof ret === 'string') {
178
+ return new SafeString(ret);
179
+ }
180
+ return ret;
181
+ };
182
+ }
183
+ }
184
+ function suppressValue(val, autoescape) {
185
+ val = val !== undefined && val !== null ? val : '';
186
+ if (autoescape && !(val instanceof SafeString)) {
187
+ val = lib.escape(val.toString());
188
+ }
189
+ return val;
190
+ }
191
+ function ensureDefined(val, lineno, colno) {
192
+ if (val === null || val === undefined) {
193
+ throw new lib.TemplateError('attempted to output null or undefined value', lineno + 1, colno + 1);
194
+ }
195
+ return val;
196
+ }
197
+ function memberLookup(obj, val) {
198
+ if (obj === undefined || obj === null) {
199
+ return undefined;
200
+ }
201
+ if (typeof obj[val] === 'function') {
202
+ return function () {
203
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
204
+ args[_key2] = arguments[_key2];
205
+ }
206
+ return obj[val].apply(obj, args);
207
+ };
208
+ }
209
+ return obj[val];
210
+ }
211
+ function callWrap(obj, name, context, args) {
212
+ if (!obj) {
213
+ throw new Error('Unable to call `' + name + '`, which is undefined or falsey');
214
+ } else if (typeof obj !== 'function') {
215
+ throw new Error('Unable to call `' + name + '`, which is not a function');
216
+ }
217
+ return obj.apply(context, args);
218
+ }
219
+ function contextOrFrameLookup(context, frame, name) {
220
+ var val = frame.lookup(name);
221
+ return val !== undefined ? val : context.lookup(name);
222
+ }
223
+ function handleError(error, lineno, colno) {
224
+ if (error.lineno) {
225
+ return error;
226
+ } else {
227
+ return new lib.TemplateError(error, lineno, colno);
228
+ }
229
+ }
230
+ function asyncEach(arr, dimen, iter, cb) {
231
+ if (lib.isArray(arr)) {
232
+ var len = arr.length;
233
+ lib.asyncIter(arr, function iterCallback(item, i, next) {
234
+ switch (dimen) {
235
+ case 1:
236
+ iter(item, i, len, next);
237
+ break;
238
+ case 2:
239
+ iter(item[0], item[1], i, len, next);
240
+ break;
241
+ case 3:
242
+ iter(item[0], item[1], item[2], i, len, next);
243
+ break;
244
+ default:
245
+ item.push(i, len, next);
246
+ iter.apply(this, item);
247
+ }
248
+ }, cb);
249
+ } else {
250
+ lib.asyncFor(arr, function iterCallback(key, val, i, len, next) {
251
+ iter(key, val, i, len, next);
252
+ }, cb);
253
+ }
254
+ }
255
+ function asyncAll(arr, dimen, func, cb) {
256
+ var finished = 0;
257
+ var len;
258
+ var outputArr;
259
+ function done(i, output) {
260
+ finished++;
261
+ outputArr[i] = output;
262
+ if (finished === len) {
263
+ cb(null, outputArr.join(''));
264
+ }
265
+ }
266
+ if (lib.isArray(arr)) {
267
+ len = arr.length;
268
+ outputArr = new Array(len);
269
+ if (len === 0) {
270
+ cb(null, '');
271
+ } else {
272
+ for (var i = 0; i < arr.length; i++) {
273
+ var item = arr[i];
274
+ switch (dimen) {
275
+ case 1:
276
+ func(item, i, len, done);
277
+ break;
278
+ case 2:
279
+ func(item[0], item[1], i, len, done);
280
+ break;
281
+ case 3:
282
+ func(item[0], item[1], item[2], i, len, done);
283
+ break;
284
+ default:
285
+ item.push(i, len, done);
286
+ func.apply(this, item);
287
+ }
288
+ }
289
+ }
290
+ } else {
291
+ var keys = lib.keys(arr || {});
292
+ len = keys.length;
293
+ outputArr = new Array(len);
294
+ if (len === 0) {
295
+ cb(null, '');
296
+ } else {
297
+ for (var _i = 0; _i < keys.length; _i++) {
298
+ var k = keys[_i];
299
+ func(k, arr[k], _i, len, done);
300
+ }
301
+ }
302
+ }
303
+ }
304
+ function fromIterator(arr) {
305
+ if (typeof arr !== 'object' || arr === null || lib.isArray(arr)) {
306
+ return arr;
307
+ } else if (supportsIterators && Symbol.iterator in arr) {
308
+ return arrayFrom(arr);
309
+ } else {
310
+ return arr;
311
+ }
312
+ }
313
+ module.exports = {
314
+ Frame: Frame,
315
+ makeMacro: makeMacro,
316
+ makeKeywordArgs: makeKeywordArgs,
317
+ numArgs: numArgs,
318
+ suppressValue: suppressValue,
319
+ ensureDefined: ensureDefined,
320
+ memberLookup: memberLookup,
321
+ contextOrFrameLookup: contextOrFrameLookup,
322
+ callWrap: callWrap,
323
+ handleError: handleError,
324
+ isArray: lib.isArray,
325
+ keys: lib.keys,
326
+ SafeString: SafeString,
327
+ copySafeness: copySafeness,
328
+ markSafe: markSafe,
329
+ asyncEach: asyncEach,
330
+ asyncAll: asyncAll,
331
+ inOperator: lib.inOperator,
332
+ fromIterator: fromIterator
333
+ };