@elliemae/pui-app-sdk 5.11.2 → 5.11.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/cjs/analytics/index.js +1 -3
- package/dist/cjs/utils/micro-frontend/host.js +1 -0
- package/dist/cjs/utils/micro-frontend/scripting-objects/analytics.js +1 -3
- package/dist/cjs/utils/redact-pii.js +1 -1
- package/dist/esm/analytics/index.js +1 -3
- package/dist/esm/utils/micro-frontend/host.js +1 -0
- package/dist/esm/utils/micro-frontend/scripting-objects/analytics.js +1 -3
- package/dist/esm/utils/redact-pii.js +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +36 -36
|
@@ -23,11 +23,9 @@ __export(analytics_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(analytics_exports);
|
|
24
24
|
var import_guest = require("../utils/micro-frontend/guest.js");
|
|
25
25
|
var import_web_analytics = require("../utils/micro-frontend/scripting-objects/web-analytics.js");
|
|
26
|
-
var import_redact_pii = require("../utils/redact-pii.js");
|
|
27
26
|
const sendBAEventToSelf = (data) => {
|
|
28
|
-
const redactedData = (0, import_redact_pii.redactPii)(data);
|
|
29
27
|
window.gtmDataLayer = window.gtmDataLayer || [];
|
|
30
|
-
window.gtmDataLayer.push(
|
|
28
|
+
window.gtmDataLayer.push(data);
|
|
31
29
|
};
|
|
32
30
|
const sendBAEvent = ({
|
|
33
31
|
data,
|
|
@@ -75,6 +75,7 @@ class CMicroAppHost {
|
|
|
75
75
|
this.getObject = this.getObject.bind(this);
|
|
76
76
|
this.renewSessionTimer = this.renewSessionTimer.bind(this);
|
|
77
77
|
this.setSystemVersion = this.setSystemVersion.bind(this);
|
|
78
|
+
this.sendBAEvent = this.sendBAEvent.bind(this);
|
|
78
79
|
(0, import_app_config.loadAppConfig)().then(() => {
|
|
79
80
|
if (this.onInit) this.onInit(this.props);
|
|
80
81
|
}).catch(() => {
|
|
@@ -32,7 +32,6 @@ __export(analytics_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(analytics_exports);
|
|
34
34
|
var import_em_ssf_host = __toESM(require("@elliemae/em-ssf-host"));
|
|
35
|
-
var import_redact_pii = require("../../redact-pii.js");
|
|
36
35
|
var import_web_analytics = require("./web-analytics.js");
|
|
37
36
|
class Analytics extends import_em_ssf_host.default.ScriptingObject {
|
|
38
37
|
/**
|
|
@@ -87,9 +86,8 @@ class Analytics extends import_em_ssf_host.default.ScriptingObject {
|
|
|
87
86
|
*/
|
|
88
87
|
sendBAEvent = (event) => {
|
|
89
88
|
const eventEx = { ...(0, import_web_analytics.getBAEventParameters)(), ...event };
|
|
90
|
-
const redactedData = (0, import_redact_pii.redactPii)(eventEx);
|
|
91
89
|
window.gtmDataLayer = window.gtmDataLayer || [];
|
|
92
|
-
window.gtmDataLayer.push(
|
|
90
|
+
window.gtmDataLayer.push(eventEx);
|
|
93
91
|
return Promise.resolve();
|
|
94
92
|
};
|
|
95
93
|
/**
|
|
@@ -30,7 +30,7 @@ const piiPatterns = {
|
|
|
30
30
|
`(\\d+\\s*(\\w+ ){1,2}${roadRegex.source}(\\s+${aptRegex.source})?)|(${poBoxRegex.source})`,
|
|
31
31
|
"gi"
|
|
32
32
|
),
|
|
33
|
-
zipcode: /\b\d{5}
|
|
33
|
+
zipcode: /\b\d{5}(?:[-\s]\d{4})\b/g,
|
|
34
34
|
phoneNumber: /(\(?\+?[0-9]{1,2}\)?[-. ]?)?(\(?[0-9]{3}\)?|[0-9]{3})[-. ]?([0-9]{3}[-. ]?[0-9]{4}|\b[A-Z0-9]{7}\b)/g,
|
|
35
35
|
ipAddress: /(\d{1,3}(\.\d{1,3}){3}|[0-9A-F]{4}(:[0-9A-F]{4}){5}(::|(:0000)+))/gi,
|
|
36
36
|
usSocialSecurityNumber: /\b\d{3}[ -.]\d{2}[ -.]\d{4}\b/g,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { CMicroAppGuest } from "../utils/micro-frontend/guest.js";
|
|
2
2
|
import { getBAEventParameters } from "../utils/micro-frontend/scripting-objects/web-analytics.js";
|
|
3
|
-
import { redactPii } from "../utils/redact-pii.js";
|
|
4
3
|
const sendBAEventToSelf = (data) => {
|
|
5
|
-
const redactedData = redactPii(data);
|
|
6
4
|
window.gtmDataLayer = window.gtmDataLayer || [];
|
|
7
|
-
window.gtmDataLayer.push(
|
|
5
|
+
window.gtmDataLayer.push(data);
|
|
8
6
|
};
|
|
9
7
|
const sendBAEvent = ({
|
|
10
8
|
data,
|
|
@@ -59,6 +59,7 @@ class CMicroAppHost {
|
|
|
59
59
|
this.getObject = this.getObject.bind(this);
|
|
60
60
|
this.renewSessionTimer = this.renewSessionTimer.bind(this);
|
|
61
61
|
this.setSystemVersion = this.setSystemVersion.bind(this);
|
|
62
|
+
this.sendBAEvent = this.sendBAEvent.bind(this);
|
|
62
63
|
loadAppConfig().then(() => {
|
|
63
64
|
if (this.onInit) this.onInit(this.props);
|
|
64
65
|
}).catch(() => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import ssfHost from "@elliemae/em-ssf-host";
|
|
2
|
-
import { redactPii } from "../../redact-pii.js";
|
|
3
2
|
import { getBAEventParameters } from "./web-analytics.js";
|
|
4
3
|
class Analytics extends ssfHost.ScriptingObject {
|
|
5
4
|
/**
|
|
@@ -54,9 +53,8 @@ class Analytics extends ssfHost.ScriptingObject {
|
|
|
54
53
|
*/
|
|
55
54
|
sendBAEvent = (event) => {
|
|
56
55
|
const eventEx = { ...getBAEventParameters(), ...event };
|
|
57
|
-
const redactedData = redactPii(eventEx);
|
|
58
56
|
window.gtmDataLayer = window.gtmDataLayer || [];
|
|
59
|
-
window.gtmDataLayer.push(
|
|
57
|
+
window.gtmDataLayer.push(eventEx);
|
|
60
58
|
return Promise.resolve();
|
|
61
59
|
};
|
|
62
60
|
/**
|
|
@@ -7,7 +7,7 @@ const piiPatterns = {
|
|
|
7
7
|
`(\\d+\\s*(\\w+ ){1,2}${roadRegex.source}(\\s+${aptRegex.source})?)|(${poBoxRegex.source})`,
|
|
8
8
|
"gi"
|
|
9
9
|
),
|
|
10
|
-
zipcode: /\b\d{5}
|
|
10
|
+
zipcode: /\b\d{5}(?:[-\s]\d{4})\b/g,
|
|
11
11
|
phoneNumber: /(\(?\+?[0-9]{1,2}\)?[-. ]?)?(\(?[0-9]{3}\)?|[0-9]{3})[-. ]?([0-9]{3}[-. ]?[0-9]{4}|\b[A-Z0-9]{7}\b)/g,
|
|
12
12
|
ipAddress: /(\d{1,3}(\.\d{1,3}){3}|[0-9A-F]{4}(:[0-9A-F]{4}){5}(::|(:0000)+))/gi,
|
|
13
13
|
usSocialSecurityNumber: /\b\d{3}[ -.]\d{2}[ -.]\d{4}\b/g,
|