@4site/engrid-scripts 0.26.0 → 0.27.1
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
CHANGED
|
@@ -256,10 +256,11 @@ export class App extends ENGrid {
|
|
|
256
256
|
// Supporter Hub Features
|
|
257
257
|
new SupporterHub();
|
|
258
258
|
// Digital Wallets Features
|
|
259
|
-
if (ENGrid.getPageType() === "DONATION"
|
|
259
|
+
if (ENGrid.getPageType() === "DONATION" ||
|
|
260
|
+
ENGrid.getPageType() === "EVENT") {
|
|
260
261
|
new DigitalWallets();
|
|
261
|
-
new PreferredPaymentMethod();
|
|
262
262
|
}
|
|
263
|
+
new PreferredPaymentMethod();
|
|
263
264
|
// Mobile CTA
|
|
264
265
|
new MobileCTA();
|
|
265
266
|
// Live Frequency
|
|
@@ -127,7 +127,7 @@ export class ShowHideRadioCheckboxes {
|
|
|
127
127
|
state.push({
|
|
128
128
|
page: ENGrid.getPageID(),
|
|
129
129
|
class: this.classes,
|
|
130
|
-
value: element.value,
|
|
130
|
+
value: element.value.replace(/\W/g, ""),
|
|
131
131
|
});
|
|
132
132
|
this.logger.log("storing radio state", state[state.length - 1]);
|
|
133
133
|
}
|
|
@@ -142,7 +142,7 @@ export class ShowHideRadioCheckboxes {
|
|
|
142
142
|
state.push({
|
|
143
143
|
page: ENGrid.getPageID(),
|
|
144
144
|
class: this.classes,
|
|
145
|
-
value: (_b = (_a = [...this.elements].find((el) => el.checked)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "N", // First checked value or "N" if none
|
|
145
|
+
value: (_b = (_a = [...this.elements].find((el) => el.checked)) === null || _a === void 0 ? void 0 : _a.value.replace(/\W/g, "")) !== null && _b !== void 0 ? _b : "N", // First checked value or "N" if none
|
|
146
146
|
});
|
|
147
147
|
this.logger.log("storing checkbox state", state[state.length - 1]);
|
|
148
148
|
}
|
|
@@ -22,13 +22,16 @@ export class ThankYouPageConditionalContent {
|
|
|
22
22
|
state.forEach((item) => {
|
|
23
23
|
this.logger.log("Processing TY page conditional content item:", item);
|
|
24
24
|
if (ENGrid.getPageID() === item.page) {
|
|
25
|
+
const inputValue = item.value.replace(/\W/g, "");
|
|
26
|
+
const classPrefix = CSS.escape(item.class);
|
|
27
|
+
const selectedClass = CSS.escape(`${item.class}${inputValue}`);
|
|
25
28
|
document
|
|
26
|
-
.querySelectorAll(`[class*="${
|
|
29
|
+
.querySelectorAll(`[class*="${classPrefix}"]`)
|
|
27
30
|
.forEach((el) => {
|
|
28
31
|
el.classList.add("hide");
|
|
29
32
|
});
|
|
30
33
|
document
|
|
31
|
-
.querySelectorAll(`.${
|
|
34
|
+
.querySelectorAll(`.${selectedClass}`)
|
|
32
35
|
.forEach((el) => {
|
|
33
36
|
el.classList.remove("hide");
|
|
34
37
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AppVersion = "0.
|
|
1
|
+
export declare const AppVersion = "0.27.1";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AppVersion = "0.
|
|
1
|
+
export const AppVersion = "0.27.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4site/engrid-scripts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.1",
|
|
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": "b44fa74fbb36e60b9fbfb8be30d041ff9c3b7b0d",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"nodemon": "^2.0.20"
|
|
31
31
|
}
|