rivia 0.0.43 → 0.0.44

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 (2) hide show
  1. package/dist/index.js +15 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -69,6 +69,9 @@ function Onboarding(topTitle = "Get Started", subtitle, completion = 0, checklis
69
69
  items.forEach((it) => {
70
70
  const cleanUrl = it.url.startsWith("/") ? it.url.slice(1) : it.url;
71
71
  visitedPages[cleanUrl] = it.id;
72
+ if (it.event_name) {
73
+ visitedPages[it.event_name] = it.id;
74
+ }
72
75
  });
73
76
  let storedVisited = JSON.parse(
74
77
  sessionStorage.getItem("onboardingVisited") || "[]"
@@ -264,16 +267,16 @@ async function fetchWithTimeout(topTitle = "Get Started", subtitle, completion =
264
267
  `;
265
268
  }).join("");
266
269
  const labelHTML = `
267
- <div id="checklistRoot" class="checklist-root">
268
- <button id="checklistCloseBtn" class="checklist-close">&times;</button>
269
-
270
- <div class="checklist-header">
271
- <h3 class="checklist-title">${topTitle}</h3>
272
- <p class="checklist-subtitle">${subtitle}</p>
273
-
274
- <div class="checklist-progress">
275
- <div id="progressContainer" style="display: flex; gap: 4px; width: 300px; height: 10px;"></div>
276
- <span id="progressFraction" style="margin-left: 0px; font-size: 13px; color: ${cssConfig.textColor}; min-width: 20px; text-align: right;">0/0 </span>
270
+ <div id="checklistRoot" class="checklist-root">
271
+ <button id="checklistCloseBtn" class="checklist-close">&times;</button>
272
+
273
+ <div class="checklist-header">
274
+ <h3 class="checklist-title">${topTitle}</h3>
275
+ <p class="checklist-subtitle">${subtitle}</p>
276
+
277
+ <div class="checklist-progress">
278
+ <div id="progressContainer" style="display: flex; gap: 4px; width: 300px; height: 10px;"></div>
279
+ <span id="progressFraction" style="margin-left: 0px; font-size: 13px; color: ${cssConfig.textColor}; min-width: 20px; text-align: right;">0/0 </span>
277
280
 
278
281
  </div>
279
282
 
@@ -4068,8 +4071,8 @@ var triggerEvent = async (message) => {
4068
4071
  console.log("Comparing:", item.event_name, "with", message);
4069
4072
  if (item.event_name === message) {
4070
4073
  let clean_item = item.url.startsWith("/") ? item.url.slice(1) : item.url;
4071
- if (!window.storedVisited.includes(clean_item)) {
4072
- window.storedVisited.push(clean_item);
4074
+ if (!window.storedVisited.includes(item.event_name)) {
4075
+ window.storedVisited.push(item.event_name);
4073
4076
  }
4074
4077
  sessionStorage.setItem("onboardingVisited", JSON.stringify(window.storedVisited));
4075
4078
  window.updateProgress(window.storedVisited);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rivia",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",