@4site/engrid-scripts 0.21.2 → 0.21.4

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/engrid.d.ts CHANGED
@@ -17,7 +17,7 @@ export declare abstract class ENGrid {
17
17
  static getPageID(): any;
18
18
  static getClientID(): any;
19
19
  static getDataCenter(): "us" | "ca";
20
- static getPageType(): "DONATION" | "ECARD" | "SURVEY" | "EMAILTOTARGET" | "ADVOCACY" | "SUBSCRIBEFORM" | "SUPPORTERHUB" | "UNSUBSCRIBE" | "TWEETPAGE" | "UNKNOWN";
20
+ static getPageType(): "DONATION" | "ECARD" | "SURVEY" | "EMAILTOTARGET" | "ADVOCACY" | "SUBSCRIBEFORM" | "EVENT" | "SUPPORTERHUB" | "UNSUBSCRIBE" | "TWEETPAGE" | "UNKNOWN";
21
21
  static setBodyData(dataName: string, value: string | boolean): void;
22
22
  static getBodyData(dataName: string): string | null;
23
23
  static hasBodyData(dataName: string): boolean;
package/dist/engrid.js CHANGED
@@ -192,6 +192,7 @@ export class ENGrid {
192
192
  static getPageType() {
193
193
  if ("pageJson" in window && "pageType" in window.pageJson) {
194
194
  switch (window.pageJson.pageType) {
195
+ case "p2pdonation":
195
196
  case "donation":
196
197
  case "premiumgift":
197
198
  return "DONATION";
@@ -212,6 +213,9 @@ export class ENGrid {
212
213
  case "emailsubscribeform":
213
214
  return "SUBSCRIBEFORM";
214
215
  break;
216
+ case "event":
217
+ return "EVENT";
218
+ break;
215
219
  case "supporterhub":
216
220
  return "SUPPORTERHUB";
217
221
  break;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const AppVersion = "0.21.2";
1
+ export declare const AppVersion = "0.21.4";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const AppVersion = "0.21.2";
1
+ export const AppVersion = "0.21.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4site/engrid-scripts",
3
- "version": "0.21.2",
3
+ "version": "0.21.4",
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": "fa9bf06a694efe31da9dd41f70ff1f83de62cc05",
28
+ "gitHead": "d5ec41a975662f25353da781038a1422d2c6cae4",
29
29
  "devDependencies": {
30
30
  "nodemon": "^2.0.20"
31
31
  }