@4site/engrid-scripts 0.19.16 → 0.19.19

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.
@@ -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
  }
@@ -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) || !field.value) {
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.16";
1
+ export declare const AppVersion = "0.19.19";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const AppVersion = "0.19.16";
1
+ export const AppVersion = "0.19.19";
@@ -51,6 +51,7 @@ export class WelcomeBack {
51
51
  }
52
52
  shouldRun() {
53
53
  return (!!document.querySelector(".fast-personal-details") &&
54
+ ENGrid.getBodyData("embedded") !== "thank-you-page-donation" &&
54
55
  this.options !== false);
55
56
  }
56
57
  addWelcomeBack() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4site/engrid-scripts",
3
- "version": "0.19.16",
3
+ "version": "0.19.19",
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": "30f8bf96c2278aa0db2ae07fbcdd8d25ac7d2d87",
28
+ "gitHead": "57fb8a349afee7a0c94113cbbd7995e72b19e846",
29
29
  "devDependencies": {
30
30
  "nodemon": "^2.0.20"
31
31
  }