rivia 0.0.40 → 0.0.41
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 +15 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1204,7 +1204,7 @@ transform: translateY(-20%);
|
|
|
1204
1204
|
if (label.style.display !== "none") positionCloseBtn();
|
|
1205
1205
|
});
|
|
1206
1206
|
}
|
|
1207
|
-
async function
|
|
1207
|
+
async function Checklist(checklist_id, user_var) {
|
|
1208
1208
|
window.checklist_id = checklist_id;
|
|
1209
1209
|
window.user_var = user_var;
|
|
1210
1210
|
try {
|
|
@@ -1627,7 +1627,7 @@ transform: translateY(-20%);
|
|
|
1627
1627
|
throw err;
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
|
-
var rivia_default =
|
|
1630
|
+
var rivia_default = Checklist;
|
|
1631
1631
|
|
|
1632
1632
|
// src/utils/rivia-tour.js
|
|
1633
1633
|
var RIVIA_TOUR = function() {
|
|
@@ -4061,20 +4061,20 @@ var banner_default = Banner;
|
|
|
4061
4061
|
|
|
4062
4062
|
// src/utils/trigger-event.js
|
|
4063
4063
|
var triggerEvent = async (message) => {
|
|
4064
|
-
let checklist_id = window.checklist_id;
|
|
4065
|
-
let user_name = window.user_var;
|
|
4066
4064
|
try {
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4065
|
+
let checklist_id = window.checklist_id;
|
|
4066
|
+
let user_name = window.user_var;
|
|
4067
|
+
for (let item of window.items) {
|
|
4068
|
+
console.log("Comparing:", item.event_name, "with", message);
|
|
4069
|
+
if (item.event_name === message) {
|
|
4070
|
+
window.storedVisited.push(item.url.startsWith("/") ? item.url.slice(1) : item.url);
|
|
4071
|
+
sessionStorage.setItem("onboardingVisited", JSON.stringify(window.storedVisited));
|
|
4072
|
+
window.updateProgress(window.storedVisited);
|
|
4073
|
+
window.updateProgress2(window.storedVisited);
|
|
4074
|
+
window.updateUIFromVisited();
|
|
4075
|
+
window.uploadVisitedPagesInBackground(window.storedVisited);
|
|
4076
|
+
}
|
|
4077
|
+
}
|
|
4078
4078
|
} catch (error) {
|
|
4079
4079
|
console.error("\u274C Error triggering event:", error);
|
|
4080
4080
|
throw error;
|