@govuk-pay/pay-js-commons 7.0.53 → 7.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/images/custom/belfast-city-council.png +0 -0
- package/lib/utils/axios-base-client/axios-base-client.js +3 -3
- package/lib/utils/axios-base-client/errors.js +1 -1
- package/lib/utils/middleware/csrf.middleware.js +1 -1
- package/package.json +1 -1
- package/sass/custom/belfast-city-council.scss +80 -0
|
Binary file
|
|
@@ -84,8 +84,8 @@ var Client = /*#__PURE__*/function () {
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
});
|
|
87
|
-
this._axios.interceptors.response.use(
|
|
88
|
-
var _ref3 = _asyncToGenerator(
|
|
87
|
+
this._axios.interceptors.response.use(/*#__PURE__*/function () {
|
|
88
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
89
89
|
var responseContext, retryCount;
|
|
90
90
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
91
91
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -138,7 +138,7 @@ var Client = /*#__PURE__*/function () {
|
|
|
138
138
|
return _ref3.apply(this, arguments);
|
|
139
139
|
};
|
|
140
140
|
}(), /*#__PURE__*/function () {
|
|
141
|
-
var _ref4 = _asyncToGenerator(
|
|
141
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(error) {
|
|
142
142
|
var config, message, errorContext, errorCode, retryCount;
|
|
143
143
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
144
144
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30,7 +30,7 @@ var RESTClientError = /*#__PURE__*/function (_Error) {
|
|
|
30
30
|
}
|
|
31
31
|
_inherits(RESTClientError, _Error);
|
|
32
32
|
return _createClass(RESTClientError);
|
|
33
|
-
}(
|
|
33
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
34
34
|
module.exports = {
|
|
35
35
|
RESTClientError: RESTClientError
|
|
36
36
|
};
|
|
@@ -27,7 +27,7 @@ var CsrfError = /*#__PURE__*/function (_Error) {
|
|
|
27
27
|
}
|
|
28
28
|
_inherits(CsrfError, _Error);
|
|
29
29
|
return _createClass(CsrfError);
|
|
30
|
-
}(
|
|
30
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
31
31
|
/**
|
|
32
32
|
* @param logger {Logger}
|
|
33
33
|
* @param sessionName {string} the name of the object on the request where the secret key will be stored
|
package/package.json
CHANGED
|
@@ -0,0 +1,80 @@
|
|
|
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: #ffffff;
|
|
9
|
+
$custom-banner-border-colour: #008996;
|
|
10
|
+
$custom-text-colour: #ffffff;
|
|
11
|
+
$logo-image-height: 2em;
|
|
12
|
+
|
|
13
|
+
.govuk-template--rebranded {
|
|
14
|
+
.custom-branding {
|
|
15
|
+
@if $logo-image-height != null {
|
|
16
|
+
.custom-branding-image {
|
|
17
|
+
max-height: $logo-image-height;
|
|
18
|
+
|
|
19
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.govuk-header {
|
|
26
|
+
background-color: $custom-banner-colour;
|
|
27
|
+
border-bottom: 10px solid #ffffff;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.govuk-header__logo {
|
|
31
|
+
margin-bottom: 10px;
|
|
32
|
+
padding-top: 0;
|
|
33
|
+
padding-bottom: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.govuk-header__service-name {
|
|
37
|
+
margin: 0 0 15px;
|
|
38
|
+
color: $custom-text-colour;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.govuk-header__link{
|
|
42
|
+
&:link,
|
|
43
|
+
&:visited {
|
|
44
|
+
color: $custom-text-colour;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.govuk-header__link--homepage {
|
|
49
|
+
&:hover,
|
|
50
|
+
&:active {
|
|
51
|
+
border-bottom: none;
|
|
52
|
+
margin-bottom: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:not(:focus) {
|
|
56
|
+
background-color: transparent;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
.govuk-header__container {
|
|
62
|
+
border-bottom: 10px solid $custom-banner-border-colour;
|
|
63
|
+
margin-bottom: -10px;
|
|
64
|
+
padding-top: 10px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@include govuk-media-query($from: tablet) {
|
|
68
|
+
.govuk-header__content {
|
|
69
|
+
width: 66%;
|
|
70
|
+
vertical-align: bottom;
|
|
71
|
+
margin-bottom: 7px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.govuk-button {
|
|
76
|
+
padding: 7px 15px 6px;
|
|
77
|
+
padding: .368421053em .842105263em .315789474em;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|