rivia 0.0.36 → 0.0.37
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/index.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -79,9 +79,9 @@ function Onboarding(topTitle = "Get Started", subtitle, completion = 0, checklis
|
|
|
79
79
|
user_var1 = "User_" + Math.random().toString(36).substring(2, 8);
|
|
80
80
|
sessionStorage.setItem(user_var, user_var1);
|
|
81
81
|
}
|
|
82
|
-
const backendUrl = `
|
|
82
|
+
const backendUrl = `https://demoapi.rivia.ai/clients/${checklist_id}/${user_var1}`;
|
|
83
83
|
async function getUserProgress22() {
|
|
84
|
-
const backendUrl2 = `
|
|
84
|
+
const backendUrl2 = `https://demoapi.rivia.ai/clients/${checklist_id}/${user_var1}`;
|
|
85
85
|
try {
|
|
86
86
|
const res = await fetch(backendUrl2, { credentials: "include" });
|
|
87
87
|
if (!res.ok) console.warn(`GET failed: ${res.status}`);
|
|
@@ -119,7 +119,7 @@ function Onboarding(topTitle = "Get Started", subtitle, completion = 0, checklis
|
|
|
119
119
|
}
|
|
120
120
|
storedVisited = sessionStorage.getItem("onboardingVisited");
|
|
121
121
|
async function getUserProgress22() {
|
|
122
|
-
const backendUrl2 = `
|
|
122
|
+
const backendUrl2 = `https://demoapi.rivia.ai/clients/${checklist_id}/${user_var1}`;
|
|
123
123
|
try {
|
|
124
124
|
const res = await fetch(backendUrl2, { credentials: "include" });
|
|
125
125
|
if (!res.ok) console.warn(`GET failed: ${res.status}`);
|
|
@@ -851,7 +851,7 @@ transform: translateY(-20%);
|
|
|
851
851
|
function uploadVisitedPagesInBackground(completed2, touched = false) {
|
|
852
852
|
let activeStepId2 = sessionStorage.getItem("activeStepId") || null;
|
|
853
853
|
let user_var22 = user_var;
|
|
854
|
-
const backendUrl22 = `
|
|
854
|
+
const backendUrl22 = `https://demoapi.rivia.ai/clients/${checklist_id}`;
|
|
855
855
|
try {
|
|
856
856
|
const payload = {
|
|
857
857
|
name: user_var22,
|
|
@@ -882,7 +882,7 @@ transform: translateY(-20%);
|
|
|
882
882
|
storedVisited = sessionStorage.getItem("onboardingVisited");
|
|
883
883
|
if (!storedVisited || storedVisited == "[]") {
|
|
884
884
|
async function getUserProgress22() {
|
|
885
|
-
const backendUrl2 = `
|
|
885
|
+
const backendUrl2 = `https://demoapi.rivia.ai/clients/${checklist_id}/${user_var}`;
|
|
886
886
|
try {
|
|
887
887
|
const res = await fetch(backendUrl2, { credentials: "include" });
|
|
888
888
|
if (!res.ok) console.warn(`GET failed: ${res.status}`);
|
|
@@ -1396,7 +1396,7 @@ transform: translateY(-20%);
|
|
|
1396
1396
|
return checklist2;
|
|
1397
1397
|
}
|
|
1398
1398
|
const res = await fetch(
|
|
1399
|
-
`
|
|
1399
|
+
`https://demoapi.rivia.ai/checklists2/${checklist_id}`,
|
|
1400
1400
|
{
|
|
1401
1401
|
method: "GET",
|
|
1402
1402
|
headers: { "Content-Type": "application/json" }
|