@govuk-pay/pay-js-commons 3.5.0 → 3.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.
@@ -1,27 +1,7 @@
1
1
  <component name="ProjectCodeStyleConfiguration">
2
2
  <code_scheme name="Project" version="173">
3
- <JSCodeStyleSettings version="0">
4
- <option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
5
- <option name="FORCE_SEMICOLON_STYLE" value="true" />
6
- <option name="SPACE_BEFORE_GENERATOR_MULT" value="true" />
7
- <option name="USE_DOUBLE_QUOTES" value="false" />
8
- <option name="FORCE_QUOTE_STYlE" value="true" />
9
- <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
10
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
11
- </JSCodeStyleSettings>
12
- <codeStyleSettings language="JavaScript">
13
- <option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
14
- <option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
15
- <option name="ALIGN_MULTILINE_FOR" value="false" />
16
- <option name="SPACE_BEFORE_METHOD_PARENTHESES" value="true" />
17
- <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
18
- <option name="KEEP_SIMPLE_BLOCKS_IN_ONE_LINE" value="true" />
19
- <option name="KEEP_SIMPLE_METHODS_IN_ONE_LINE" value="true" />
20
- <indentOptions>
21
- <option name="INDENT_SIZE" value="2" />
22
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
23
- <option name="TAB_SIZE" value="2" />
24
- </indentOptions>
25
- </codeStyleSettings>
3
+ <ScalaCodeStyleSettings>
4
+ <option name="MULTILINE_STRING_CLOSING_QUOTES_ON_NEW_LINE" value="true" />
5
+ </ScalaCodeStyleSettings>
26
6
  </code_scheme>
27
7
  </component>
@@ -1,5 +1,5 @@
1
1
  <component name="ProjectCodeStyleConfiguration">
2
2
  <state>
3
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
3
+ <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
4
4
  </state>
5
5
  </component>
package/.idea/misc.xml CHANGED
@@ -1,6 +1,13 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
- <component name="ProjectRootManager">
3
+ <component name="MavenImportPreferences">
4
+ <option name="generalSettings">
5
+ <MavenGeneralSettings>
6
+ <option name="mavenHome" value="$APPLICATION_HOME_DIR$/plugins/maven/lib/maven3" />
7
+ </MavenGeneralSettings>
8
+ </option>
9
+ </component>
10
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
4
11
  <output url="file://$PROJECT_DIR$/out" />
5
12
  </component>
6
13
  </project>
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-pay/pay-js-commons",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "Reusable js scripts for GOV.UK Pay Node.js projects",
5
5
  "engines": {
6
6
  "node": "^16.14.0"
@@ -134,7 +134,7 @@
134
134
  "standard": "^16.0.3",
135
135
  "uglify-js": "^3.6.0",
136
136
  "watchify": "^4.0.0",
137
- "xo": "^0.49.0"
137
+ "xo": "^0.50.0"
138
138
  },
139
139
  "directories": {
140
140
  "lib": "lib"
@@ -144,6 +144,6 @@
144
144
  "moment-timezone": "0.5.34",
145
145
  "rfc822-validate": "1.0.0",
146
146
  "slugify": "1.6.5",
147
- "winston": "3.7.2"
147
+ "winston": "3.8.1"
148
148
  }
149
149
  }
@@ -0,0 +1,55 @@
1
+ $govuk-font-family: -apple-system,BlinkMacSystemFont,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; // Override font as so not to use New Transport
2
+ @import "application";
3
+
4
+ // CUSTOM BRANDING
5
+ // Use the variables below to control the style
6
+ // Make sure banner colours meet minimum colour contrast levels
7
+
8
+ $custom-banner-colour: #0b0c0c;
9
+ $custom-banner-border-colour: #1d70b8;
10
+ $custom-text-colour: #ffffff;
11
+ $logo-image-height: 2em;
12
+
13
+ .custom-branding {
14
+ @if $logo-image-height != null {
15
+ .custom-branding-image {
16
+ max-height: $logo-image-height;
17
+
18
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
19
+ width: 100%;
20
+ }
21
+ }
22
+ }
23
+
24
+ .govuk-header {
25
+ background-color: $custom-banner-colour;
26
+ }
27
+
28
+ .govuk-header__link{
29
+ &:link,
30
+ &:visited {
31
+ color: $custom-text-colour;
32
+ }
33
+ }
34
+
35
+ .govuk-header__link--service-name {
36
+ color: $custom-text-colour;
37
+ }
38
+
39
+ .govuk-header__container {
40
+ border-bottom-color: $custom-banner-border-colour;
41
+ }
42
+
43
+ @include govuk-media-query($from: tablet) {
44
+ .govuk-header__content {
45
+ width: 66%;
46
+ vertical-align: bottom;
47
+ margin-bottom: 7px;
48
+ }
49
+ }
50
+
51
+ .govuk-button {
52
+ padding: 7px 15px 6px;
53
+ padding: .368421053em .842105263em .315789474em;
54
+ }
55
+ }
@@ -14,6 +14,7 @@ $logo-image-height: 2em;
14
14
  @if $logo-image-height != null {
15
15
  .custom-branding-image {
16
16
  max-height: $logo-image-height;
17
+ min-width: 204px;
17
18
 
18
19
  @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
19
20
  width: 100%;
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="StandardJS" enabled="true" level="ERROR" enabled_by_default="true" />
5
- </profile>
6
- </component>
File without changes