saltfish 0.3.26 → 0.3.27
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/SaltfishPlayer.d.ts +1 -1
- package/dist/core/SaltfishPlayer.d.ts.map +1 -1
- package/dist/core/services/PlayerInitializationService.d.ts +5 -5
- package/dist/core/services/PlayerInitializationService.d.ts.map +1 -1
- package/dist/core/services/PlaylistOrchestrator.d.ts +9 -9
- package/dist/core/services/PlaylistOrchestrator.d.ts.map +1 -1
- package/dist/core/services/ServiceInterfaces.d.ts +51 -17
- package/dist/core/services/ServiceInterfaces.d.ts.map +1 -1
- package/dist/core/services/StateMachineActionHandler.d.ts.map +1 -1
- package/dist/core/services/UserManagementService.d.ts +3 -3
- package/dist/core/services/UserManagementService.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 +4 -11
- package/dist/saltfish-playlist-player.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1877,9 +1877,7 @@ class PlayerInitializationService {
|
|
|
1877
1877
|
constructor(managers) {
|
|
1878
1878
|
__publicField(this, "managers");
|
|
1879
1879
|
__publicField(this, "userManagementService");
|
|
1880
|
-
// Will be injected
|
|
1881
1880
|
__publicField(this, "playlistOrchestrator");
|
|
1882
|
-
// Will be injected
|
|
1883
1881
|
__publicField(this, "shareLinkService");
|
|
1884
1882
|
// Store the last config for potential reinitialization
|
|
1885
1883
|
__publicField(this, "lastConfig", null);
|
|
@@ -2042,7 +2040,7 @@ class PlayerInitializationService {
|
|
|
2042
2040
|
const resumedPlaylist = await this.checkAndResumeInProgressPlaylist(data.watchedPlaylists || {});
|
|
2043
2041
|
if (!resumedPlaylist) {
|
|
2044
2042
|
const shareData = await this.shareLinkService.shouldAutoStartSharePlaylist();
|
|
2045
|
-
if (shareData) {
|
|
2043
|
+
if (shareData && this.playlistOrchestrator) {
|
|
2046
2044
|
log("[PlayerInitializationService.fetchUserData] Share link detected, auto-starting playlist:", shareData.flowId);
|
|
2047
2045
|
await this.playlistOrchestrator.startPlaylist(shareData.flowId, {
|
|
2048
2046
|
once: false,
|
|
@@ -2129,7 +2127,7 @@ class PlayerInitializationService {
|
|
|
2129
2127
|
const resumedPlaylist = await this.checkAndResumeInProgressPlaylist(watchedPlaylists);
|
|
2130
2128
|
if (!resumedPlaylist) {
|
|
2131
2129
|
const shareData = await this.shareLinkService.shouldAutoStartSharePlaylist();
|
|
2132
|
-
if (shareData) {
|
|
2130
|
+
if (shareData && this.playlistOrchestrator) {
|
|
2133
2131
|
log("[PlayerInitializationService.loadAnonymousUserData] Share link detected, auto-starting playlist:", shareData.flowId);
|
|
2134
2132
|
await this.playlistOrchestrator.startPlaylist(shareData.flowId, {
|
|
2135
2133
|
once: false,
|
|
@@ -2254,7 +2252,6 @@ class UserManagementService {
|
|
|
2254
2252
|
constructor(managers) {
|
|
2255
2253
|
__publicField(this, "managers");
|
|
2256
2254
|
__publicField(this, "playerInitializationService");
|
|
2257
|
-
// Will be injected
|
|
2258
2255
|
// State for managing user data loading promise
|
|
2259
2256
|
__publicField(this, "userDataLoadedPromise", null);
|
|
2260
2257
|
__publicField(this, "userDataLoadedResolve", null);
|
|
@@ -2645,15 +2642,11 @@ class PlaylistValidator {
|
|
|
2645
2642
|
}
|
|
2646
2643
|
}
|
|
2647
2644
|
class PlaylistOrchestrator {
|
|
2648
|
-
// Will be injected
|
|
2649
2645
|
constructor(managers) {
|
|
2650
2646
|
__publicField(this, "managers");
|
|
2651
2647
|
__publicField(this, "userManagementService");
|
|
2652
|
-
// Will be injected
|
|
2653
2648
|
__publicField(this, "managerOrchestrator");
|
|
2654
|
-
// Will be injected
|
|
2655
2649
|
__publicField(this, "playerInitializationService");
|
|
2656
|
-
// Will be injected
|
|
2657
2650
|
__publicField(this, "stateMachineActionHandler");
|
|
2658
2651
|
this.managers = managers;
|
|
2659
2652
|
}
|
|
@@ -2694,7 +2687,7 @@ class PlaylistOrchestrator {
|
|
|
2694
2687
|
try {
|
|
2695
2688
|
await this.playerInitializationService.initialize(lastConfig);
|
|
2696
2689
|
const lastUserIdentification = (_a = this.userManagementService) == null ? void 0 : _a.getLastUserIdentification();
|
|
2697
|
-
if (lastUserIdentification) {
|
|
2690
|
+
if (lastUserIdentification && this.userManagementService) {
|
|
2698
2691
|
this.userManagementService.identifyUser(
|
|
2699
2692
|
lastUserIdentification.userId,
|
|
2700
2693
|
lastUserIdentification.userData
|
|
@@ -11608,7 +11601,7 @@ const SaltfishPlayer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
11608
11601
|
__proto__: null,
|
|
11609
11602
|
SaltfishPlayer
|
|
11610
11603
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11611
|
-
const version = "0.3.
|
|
11604
|
+
const version = "0.3.27";
|
|
11612
11605
|
const packageJson = {
|
|
11613
11606
|
version
|
|
11614
11607
|
};
|