@elliemae/ssf-guest 2.21.3 → 2.22.0

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.
Files changed (40) hide show
  1. package/dist/cjs/creditService.html +1 -1
  2. package/dist/cjs/guest.js +1 -1
  3. package/dist/cjs/loanValidation.html +1 -1
  4. package/dist/cjs/pricingService.html +1 -1
  5. package/dist/cjs/titleService.html +1 -1
  6. package/dist/cjs/v1-adapter.js +4 -2
  7. package/dist/cjs/v2-guest.html +1 -1
  8. package/dist/esm/creditService.html +1 -1
  9. package/dist/esm/guest.js +1 -1
  10. package/dist/esm/loanValidation.html +1 -1
  11. package/dist/esm/pricingService.html +1 -1
  12. package/dist/esm/titleService.html +1 -1
  13. package/dist/esm/v1-adapter.js +4 -2
  14. package/dist/esm/v2-guest.html +1 -1
  15. package/dist/public/creditService.html +1 -1
  16. package/dist/public/index.html +1 -1
  17. package/dist/public/js/{emuiSsfGuest.b9cd82e624485fd26fb8.js → emuiSsfGuest.60315897b4b299913718.js} +5 -5
  18. package/dist/public/js/emuiSsfGuest.60315897b4b299913718.js.br +0 -0
  19. package/dist/public/js/emuiSsfGuest.60315897b4b299913718.js.gz +0 -0
  20. package/dist/public/js/emuiSsfGuest.60315897b4b299913718.js.map +1 -0
  21. package/dist/public/loanValidation.html +1 -1
  22. package/dist/public/pricingService.html +1 -1
  23. package/dist/public/titleService.html +1 -1
  24. package/dist/public/v2-guest.html +1 -1
  25. package/dist/types/lib/tests/v1-adapter.test.d.ts +1 -0
  26. package/dist/types/lib/typings/window.d.ts +3 -1
  27. package/dist/types/tsconfig.tsbuildinfo +1 -1
  28. package/dist/umd/creditService.html +1 -1
  29. package/dist/umd/index.js +4 -4
  30. package/dist/umd/index.js.br +0 -0
  31. package/dist/umd/index.js.gz +0 -0
  32. package/dist/umd/index.js.map +1 -1
  33. package/dist/umd/loanValidation.html +1 -1
  34. package/dist/umd/pricingService.html +1 -1
  35. package/dist/umd/titleService.html +1 -1
  36. package/dist/umd/v2-guest.html +1 -1
  37. package/package.json +5 -5
  38. package/dist/public/js/emuiSsfGuest.b9cd82e624485fd26fb8.js.br +0 -0
  39. package/dist/public/js/emuiSsfGuest.b9cd82e624485fd26fb8.js.gz +0 -0
  40. package/dist/public/js/emuiSsfGuest.b9cd82e624485fd26fb8.js.map +0 -1
@@ -10,7 +10,7 @@
10
10
  margin: 0px;
11
11
  }
12
12
  </style>
13
- <script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script>
13
+ <script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script>
14
14
  <script>
15
15
  window.addEventListener('DOMContentLoaded', async () => {
16
16
  window.__ICE__ = {
package/dist/cjs/guest.js CHANGED
@@ -76,7 +76,7 @@ const userInteractionEvents = ["click", "scroll", "keypress", "touchstart"];
76
76
  const getDiagnosticsAPIUrl = () => {
77
77
  const scriptUrl = document.currentScript?.src || import_meta.url;
78
78
  const hostName = scriptUrl ? new URL(scriptUrl).hostname : "localhost";
79
- return diagnosticsEndpoint[hostName] || diagnosticsEndpoint["cdn.qa1.ice.com"];
79
+ return diagnosticsEndpoint[hostName] || diagnosticsEndpoint["cdn.mortgagetech.q1.ice.com"];
80
80
  };
81
81
  class SSFGuest {
82
82
  /* eslint-enable indent */
@@ -10,7 +10,7 @@
10
10
  margin: 0px;
11
11
  }
12
12
  </style>
13
- <script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script>
13
+ <script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script>
14
14
  </head>
15
15
  <body class="px-2">
16
16
  <script src="./loanValidation.js" type="module"></script>
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Pricing Service</title>
8
8
  <script src="https://cdn.tailwindcss.com?plugins=forms"></script>
9
- <script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script>
9
+ <script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script>
10
10
  </head>
11
11
  <body class="px-2">
12
12
  <main>
@@ -11,7 +11,7 @@
11
11
  }
12
12
  </style>
13
13
  <script src="https://cdn.tailwindcss.com?plugins=forms"></script>
14
- <script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script>
14
+ <script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script>
15
15
  </head>
16
16
 
17
17
  <body class="px-2">
@@ -62,7 +62,8 @@ const setupV1Adapter = (guestV2 = null) => {
62
62
  );
63
63
  return getGuest().setLogLevel(level);
64
64
  },
65
- subscribe: (objectId, eventName, callback) => {
65
+ // eslint-disable-next-line max-params
66
+ subscribe: (objectId, eventName, callback, options) => {
66
67
  if (!scriptOnlyGuest)
67
68
  console.warn(
68
69
  // eslint-disable-next-line no-template-curly-in-string
@@ -71,8 +72,9 @@ const setupV1Adapter = (guestV2 = null) => {
71
72
  return getGuest().subscribe({
72
73
  eventId: `${objectId}.${eventName}`,
73
74
  // eslint-disable-line @typescript-eslint/no-unsafe-assignment
74
- callback: (event) => callback(event?.obj, event?.eventParams, event?.eventOptions)
75
+ callback: (event) => callback(event?.obj, event?.eventParams, event?.eventOptions),
75
76
  // eslint-disable-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-call
77
+ criteria: options?.criteria
76
78
  });
77
79
  },
78
80
  unsubscribe: (objectId, eventName, token) => {
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Guest V2</title>
7
- <script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script>
7
+ <script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script>
8
8
  </head>
9
9
  <body>
10
10
  <h2>Guest V2</h2>
@@ -10,7 +10,7 @@
10
10
  margin: 0px;
11
11
  }
12
12
  </style>
13
- <script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script>
13
+ <script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script>
14
14
  <script>
15
15
  window.addEventListener('DOMContentLoaded', async () => {
16
16
  window.__ICE__ = {
package/dist/esm/guest.js CHANGED
@@ -72,7 +72,7 @@ const userInteractionEvents = ["click", "scroll", "keypress", "touchstart"];
72
72
  const getDiagnosticsAPIUrl = () => {
73
73
  const scriptUrl = document.currentScript?.src || import.meta.url;
74
74
  const hostName = scriptUrl ? new URL(scriptUrl).hostname : "localhost";
75
- return diagnosticsEndpoint[hostName] || diagnosticsEndpoint["cdn.qa1.ice.com"];
75
+ return diagnosticsEndpoint[hostName] || diagnosticsEndpoint["cdn.mortgagetech.q1.ice.com"];
76
76
  };
77
77
  class SSFGuest {
78
78
  /* eslint-enable indent */
@@ -10,7 +10,7 @@
10
10
  margin: 0px;
11
11
  }
12
12
  </style>
13
- <script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script>
13
+ <script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script>
14
14
  </head>
15
15
  <body class="px-2">
16
16
  <script src="./loanValidation.js" type="module"></script>
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Pricing Service</title>
8
8
  <script src="https://cdn.tailwindcss.com?plugins=forms"></script>
9
- <script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script>
9
+ <script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script>
10
10
  </head>
11
11
  <body class="px-2">
12
12
  <main>
@@ -11,7 +11,7 @@
11
11
  }
12
12
  </style>
13
13
  <script src="https://cdn.tailwindcss.com?plugins=forms"></script>
14
- <script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script>
14
+ <script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script>
15
15
  </head>
16
16
 
17
17
  <body class="px-2">
@@ -38,7 +38,8 @@ const setupV1Adapter = (guestV2 = null) => {
38
38
  );
39
39
  return getGuest().setLogLevel(level);
40
40
  },
41
- subscribe: (objectId, eventName, callback) => {
41
+ // eslint-disable-next-line max-params
42
+ subscribe: (objectId, eventName, callback, options) => {
42
43
  if (!scriptOnlyGuest)
43
44
  console.warn(
44
45
  // eslint-disable-next-line no-template-curly-in-string
@@ -47,8 +48,9 @@ const setupV1Adapter = (guestV2 = null) => {
47
48
  return getGuest().subscribe({
48
49
  eventId: `${objectId}.${eventName}`,
49
50
  // eslint-disable-line @typescript-eslint/no-unsafe-assignment
50
- callback: (event) => callback(event?.obj, event?.eventParams, event?.eventOptions)
51
+ callback: (event) => callback(event?.obj, event?.eventParams, event?.eventOptions),
51
52
  // eslint-disable-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-call
53
+ criteria: options?.criteria
52
54
  });
53
55
  },
54
56
  unsubscribe: (objectId, eventName, token) => {
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Guest V2</title>
7
- <script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script>
7
+ <script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script>
8
8
  </head>
9
9
  <body>
10
10
  <h2>Guest V2</h2>
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Credit Service</title><style>body{margin:0}</style><script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script><script>window.addEventListener("DOMContentLoaded",async()=>{window.__ICE__={diagnosticsUrl:"https://int.api.ellielabs.com/diagnostics/v2/logging"};const e=new URL(window.location),i=e?.searchParams?.get?.("src");window.__ICE__.ssfGuest=new ice.guest.SSFGuest({logger:{index:"creditServiceGuest",team:"ui platform",appName:"credit-service"}}),await window.__ICE__.ssfGuest.addScript(i,document.body)})</script><script defer="defer" src="js/emuiSsfGuest.b9cd82e624485fd26fb8.js"></script></head><body></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Credit Service</title><style>body{margin:0}</style><script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script><script>window.addEventListener("DOMContentLoaded",async()=>{window.__ICE__={diagnosticsUrl:"https://int.api.ellielabs.com/diagnostics/v2/logging"};const e=new URL(window.location),i=e?.searchParams?.get?.("src");window.__ICE__.ssfGuest=new ice.guest.SSFGuest({logger:{index:"creditServiceGuest",team:"ui platform",appName:"credit-service"}}),await window.__ICE__.ssfGuest.addScript(i,document.body)})</script><script defer="defer" src="js/emuiSsfGuest.60315897b4b299913718.js"></script></head><body></body></html>
@@ -1 +1 @@
1
- <!doctype html><html lang="en" style="height:100%"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Plugin</title><script src="https://cdn.tailwindcss.com?plugins=forms"></script><script defer="defer" src="js/emuiSsfGuest.b9cd82e624485fd26fb8.js"></script></head><body class="px-2 h-full"><main class="h-full"><h1 class="text-md font-bold">Credit Score Service</h1><div class="h-full mt-2"><output id="msg" class="mt-2 p-2"></output></div></main></body></html>
1
+ <!doctype html><html lang="en" style="height:100%"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Plugin</title><script src="https://cdn.tailwindcss.com?plugins=forms"></script><script defer="defer" src="js/emuiSsfGuest.60315897b4b299913718.js"></script></head><body class="px-2 h-full"><main class="h-full"><h1 class="text-md font-bold">Credit Score Service</h1><div class="h-full mt-2"><output id="msg" class="mt-2 p-2"></output></div></main></body></html>