saltfish 0.3.37 → 0.3.38
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/core/services/PlaylistOrchestrator.d.ts.map +1 -1
- package/dist/managers/InteractionManager.d.ts.map +1 -1
- package/dist/player.js +2 -2
- package/dist/player.min.js +2 -2
- package/dist/saltfish-playlist-player.es.js +7 -4
- package/dist/saltfish-playlist-player.umd.js +1 -1
- package/package.json +1 -1
|
@@ -2846,9 +2846,9 @@ class PlaylistOrchestrator {
|
|
|
2846
2846
|
this.managers.cursorManager.setColor(updatedStore.manifest.cursorColor);
|
|
2847
2847
|
}
|
|
2848
2848
|
const isTriggeredAutomatically = finalOptions._triggeredByTriggerManager === true;
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
if (updatedStore.manifest.compactFirstStep
|
|
2849
|
+
const isFirstStep = updatedStore.currentStepId === ((_e = updatedStore.manifest.steps[0]) == null ? void 0 : _e.id);
|
|
2850
|
+
if (updatedStore.manifest.idleMode && isFirstStep) {
|
|
2851
|
+
if (updatedStore.manifest.compactFirstStep) {
|
|
2852
2852
|
const playerElement = this.managers.uiManager.getPlayerElement();
|
|
2853
2853
|
playerElement == null ? void 0 : playerElement.classList.add("sf-player--compact");
|
|
2854
2854
|
if (updatedStore.manifest.compactLabel) {
|
|
@@ -8262,7 +8262,10 @@ class InteractionManager {
|
|
|
8262
8262
|
anonymousData.watchedPlaylists[currentStore.manifest.id] = {
|
|
8263
8263
|
status: "in_progress",
|
|
8264
8264
|
currentStepId: buttonConfig.action.target,
|
|
8265
|
+
timestamp: Date.now(),
|
|
8266
|
+
// Use timestamp for consistency with checkAndResumeInProgressPlaylist
|
|
8265
8267
|
lastProgressAt: Date.now()
|
|
8268
|
+
// Keep for backward compatibility
|
|
8266
8269
|
};
|
|
8267
8270
|
this.storageManager.setAnonymousUserData(anonymousData);
|
|
8268
8271
|
log(`InteractionManager: Updated anonymous user watchedPlaylists for step ${buttonConfig.action.target}`);
|
|
@@ -11784,7 +11787,7 @@ const SaltfishPlayer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
11784
11787
|
__proto__: null,
|
|
11785
11788
|
SaltfishPlayer
|
|
11786
11789
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11787
|
-
const version = "0.3.
|
|
11790
|
+
const version = "0.3.38";
|
|
11788
11791
|
const packageJson = {
|
|
11789
11792
|
version
|
|
11790
11793
|
};
|