@4site/engrid-scripts 0.23.6 → 0.23.9
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/dist/interfaces/options.d.ts +3 -0
- package/dist/remember-me.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/vgs.js +7 -0
- package/package.json +2 -2
package/dist/remember-me.js
CHANGED
|
@@ -283,6 +283,7 @@ export class RememberMe {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
setFieldValue(field, value, overwrite = false) {
|
|
286
|
+
value = decodeURIComponent(value || "");
|
|
286
287
|
if (field && value !== undefined) {
|
|
287
288
|
if ((field.value && overwrite) || !field.value) {
|
|
288
289
|
field.value = value;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AppVersion = "0.23.
|
|
1
|
+
export declare const AppVersion = "0.23.9";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AppVersion = "0.23.
|
|
1
|
+
export const AppVersion = "0.23.9";
|
package/dist/vgs.js
CHANGED
|
@@ -141,6 +141,7 @@ export class VGS {
|
|
|
141
141
|
// Autocomplete is not customizable
|
|
142
142
|
autoComplete: "cc-number",
|
|
143
143
|
validations: ["required", "validCardNumber"],
|
|
144
|
+
validCardBrands: null
|
|
144
145
|
},
|
|
145
146
|
"transaction.ccvv": {
|
|
146
147
|
showCardIcon: false,
|
|
@@ -158,6 +159,12 @@ export class VGS {
|
|
|
158
159
|
css: styles,
|
|
159
160
|
},
|
|
160
161
|
};
|
|
162
|
+
// Override the validCardBrands if set in the theme options, as this should not be deep merged.
|
|
163
|
+
if (options &&
|
|
164
|
+
options["transaction.ccnumber"] &&
|
|
165
|
+
options["transaction.ccnumber"].validCardBrands) {
|
|
166
|
+
defaultOptions["transaction.ccnumber"].validCardBrands = options["transaction.ccnumber"].validCardBrands;
|
|
167
|
+
}
|
|
161
168
|
// Deep merge the default options with the options set in the theme
|
|
162
169
|
this.options = ENGrid.deepMerge(defaultOptions, options);
|
|
163
170
|
this.logger.log("Options", this.options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4site/engrid-scripts",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.9",
|
|
4
4
|
"description": "Scripts for the ENGRID Project",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"strongly-typed-events": "^2.0.9"
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/4site-interactive-studios/engrid#readme",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "2392b7faf92bf572d7d8160eb1f449cd70af3107",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"nodemon": "^2.0.20"
|
|
31
31
|
}
|