saltfish 0.2.30 → 0.2.32

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.
@@ -943,11 +943,11 @@ const playerStateMachineConfig = {
943
943
  on: {
944
944
  "INITIALIZE": { target: "idle" }
945
945
  },
946
- entry: ["logStateEntry", "trackPlaylistComplete", "hidePlayButton"]
946
+ entry: ["logStateEntry", "trackPlaylistComplete"]
947
947
  },
948
948
  "closing": {
949
949
  on: {},
950
- entry: ["logStateEntry", "triggerPlaylistDismissed", "scheduleDestroy"]
950
+ entry: ["logStateEntry", "triggerPlaylistDismissed"]
951
951
  }
952
952
  }
953
953
  };
@@ -2575,8 +2575,8 @@ class PlaylistOrchestrator {
2575
2575
  this.stateMachineActionHandler.registerStateMachineActions();
2576
2576
  }
2577
2577
  }
2578
- if (store.currentState === "completed") {
2579
- log("PlaylistOrchestrator: Resetting from completed state to start new playlist");
2578
+ if (store.currentState === "completed" || store.currentState === "closing") {
2579
+ log(`PlaylistOrchestrator: Resetting from ${store.currentState} state to start new playlist`);
2580
2580
  store.resetForNewPlaylist();
2581
2581
  if (this.stateMachineActionHandler) {
2582
2582
  this.stateMachineActionHandler.registerStateMachineActions();
@@ -3494,7 +3494,7 @@ const _ManagerOrchestrator = class _ManagerOrchestrator {
3494
3494
  this.managers.cursorManager.setShouldShowCursor(true);
3495
3495
  this.managers.cursorManager.animate(currentStep.cursorAnimations[0]);
3496
3496
  }
3497
- } else if (store.currentState === "completed") {
3497
+ } else if (store.currentState === "completed" || store.currentState === "closing") {
3498
3498
  this.cleanupPlaylist();
3499
3499
  }
3500
3500
  if (store.isMinimized !== _ManagerOrchestrator.prevState.isMinimized) {
@@ -3710,7 +3710,6 @@ class ShadowDOMManager {
3710
3710
  this.shadowRoot.appendChild(this.styleElement);
3711
3711
  const rootElement = document.createElement("div");
3712
3712
  rootElement.id = "sf-player-root";
3713
- rootElement.style.opacity = "0";
3714
3713
  this.shadowRoot.appendChild(rootElement);
3715
3714
  }
3716
3715
  /**
@@ -9576,9 +9575,6 @@ class UIManager {
9576
9575
  } else {
9577
9576
  this.playerRoot.classList.add("sf-player-root--bottom-right");
9578
9577
  }
9579
- if (store.currentStepId) {
9580
- this.playerRoot.style.opacity = "1";
9581
- }
9582
9578
  if (store.isMinimized) {
9583
9579
  this.playerElement.classList.add(CSS_CLASSES.PLAYER_MINIMIZED);
9584
9580
  } else {