saltfish 0.3.47 → 0.3.49

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.
@@ -2535,7 +2535,7 @@ class PlaylistValidator {
2535
2535
  const hasTriggers = foundPlaylist.hasTriggers ?? foundPlaylist.autoStart ?? false;
2536
2536
  const playlistData = watchedPlaylists[playlistId];
2537
2537
  const maxVisits = (_b = foundPlaylist.triggers) == null ? void 0 : _b.maxVisits;
2538
- const visitCount = (playlistData == null ? void 0 : playlistData.visitCount) ?? 0;
2538
+ const visitCount = (playlistData == null ? void 0 : playlistData.visitCount) ?? ((playlistData == null ? void 0 : playlistData.status) === "completed" || (playlistData == null ? void 0 : playlistData.status) === "dismissed" ? 1 : 0);
2539
2539
  if (hasTriggers && maxVisits !== null && maxVisits !== void 0 && visitCount >= maxVisits) {
2540
2540
  info(`Playlist ${playlistId} has hasTriggers enabled with maxVisits:${maxVisits} and user has ${visitCount} visits. Skipping playlist start.`, {
2541
2541
  watchedPlaylists,
@@ -7126,6 +7126,8 @@ class CursorManager {
7126
7126
  document.body.appendChild(this.flashlightOverlay);
7127
7127
  this.boundScrollHandler = this.handleScroll.bind(this);
7128
7128
  window.addEventListener("scroll", this.boundScrollHandler, { passive: true });
7129
+ this.lastCursorX = window.innerWidth - 50;
7130
+ this.lastCursorY = window.innerHeight - 50;
7129
7131
  }
7130
7132
  /**
7131
7133
  * Injects cursor styles into the main document for CSP compliance
@@ -9779,7 +9781,7 @@ class TriggerManager {
9779
9781
  return true;
9780
9782
  }
9781
9783
  const playlistData = watchedPlaylists && watchedPlaylists[playlistId];
9782
- const visitCount = (playlistData == null ? void 0 : playlistData.visitCount) ?? 0;
9784
+ const visitCount = (playlistData == null ? void 0 : playlistData.visitCount) ?? ((playlistData == null ? void 0 : playlistData.status) === "completed" || (playlistData == null ? void 0 : playlistData.status) === "dismissed" ? 1 : 0);
9783
9785
  return visitCount < maxVisits;
9784
9786
  }
9785
9787
  /**
@@ -12038,7 +12040,7 @@ const SaltfishPlayer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
12038
12040
  __proto__: null,
12039
12041
  SaltfishPlayer
12040
12042
  }, Symbol.toStringTag, { value: "Module" }));
12041
- const version = "0.3.47";
12043
+ const version = "0.3.49";
12042
12044
  const packageJson = {
12043
12045
  version
12044
12046
  };