@4site/engrid-scripts 0.19.18 → 0.19.20
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/app.js +2 -2
- package/dist/autosubmit.js +2 -0
- package/dist/url-to-form.js +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/dist/app.js
CHANGED
|
@@ -69,6 +69,8 @@ export class App extends ENGrid {
|
|
|
69
69
|
new Advocacy();
|
|
70
70
|
new InputPlaceholders();
|
|
71
71
|
new InputHasValueAndFocus();
|
|
72
|
+
// Give By Select
|
|
73
|
+
new GiveBySelect();
|
|
72
74
|
new ShowHideRadioCheckboxes("transaction.giveBySelect", "giveBySelect-");
|
|
73
75
|
new ShowHideRadioCheckboxes("transaction.inmem", "inmem-");
|
|
74
76
|
new ShowHideRadioCheckboxes("transaction.recurrpay", "recurrpay-");
|
|
@@ -259,8 +261,6 @@ export class App extends ENGrid {
|
|
|
259
261
|
// Plaid
|
|
260
262
|
if (this.options.Plaid)
|
|
261
263
|
new Plaid();
|
|
262
|
-
// Give By Select
|
|
263
|
-
new GiveBySelect();
|
|
264
264
|
//Exit Intent Lightbox
|
|
265
265
|
new ExitIntentLightbox();
|
|
266
266
|
new UrlParamsToBodyAttrs();
|
package/dist/autosubmit.js
CHANGED
|
@@ -8,6 +8,8 @@ export class Autosubmit {
|
|
|
8
8
|
!window.EngagingNetworks.require._defined.enjs.checkSubmissionFailed() &&
|
|
9
9
|
ENGrid.getUrlParameter("autosubmit") === "Y") {
|
|
10
10
|
this.logger.log("Autosubmitting Form");
|
|
11
|
+
// Fix EN ?chain parameter not working with email addresses with + in them
|
|
12
|
+
ENGrid.setFieldValue("supporter.emailAddress", ENGrid.getFieldValue("supporter.emailAddress").replace(/\s/g, "+"));
|
|
11
13
|
this._form.submitForm();
|
|
12
14
|
}
|
|
13
15
|
}
|
package/dist/url-to-form.js
CHANGED
|
@@ -13,7 +13,8 @@ export class UrlToForm {
|
|
|
13
13
|
this.urlParams.forEach((value, key) => {
|
|
14
14
|
const field = document.getElementsByName(key)[0];
|
|
15
15
|
if (field) {
|
|
16
|
-
if (!["text", "textarea"].includes(field.type) ||
|
|
16
|
+
if (!["text", "textarea", "email"].includes(field.type) ||
|
|
17
|
+
!field.value) {
|
|
17
18
|
ENGrid.setFieldValue(key, value);
|
|
18
19
|
this.logger.log(`Set: ${key} to ${value}`);
|
|
19
20
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AppVersion = "0.19.
|
|
1
|
+
export declare const AppVersion = "0.19.20";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AppVersion = "0.19.
|
|
1
|
+
export const AppVersion = "0.19.20";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4site/engrid-scripts",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.20",
|
|
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": "f67fb5e4d8b19226a595e08dd281e09f246108d7",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"nodemon": "^2.0.20"
|
|
31
31
|
}
|