saltfish 0.3.15 → 0.3.17
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/PlayerInitializationService.d.ts.map +1 -1
- package/dist/index.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 +24 -3
- package/dist/saltfish-playlist-player.umd.js +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/validators/PlaylistValidator.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2043,7 +2043,9 @@ class PlayerInitializationService {
|
|
|
2043
2043
|
await this.playlistOrchestrator.startPlaylist(shareFlowId, {
|
|
2044
2044
|
once: false,
|
|
2045
2045
|
// Always allow playback via share link
|
|
2046
|
-
position: "bottom-right"
|
|
2046
|
+
position: "bottom-right",
|
|
2047
|
+
_startedFromShareLink: true
|
|
2048
|
+
// Bypass backend validation
|
|
2047
2049
|
});
|
|
2048
2050
|
log("[PlayerInitializationService.fetchUserData] Skipped trigger monitoring due to share link auto-start");
|
|
2049
2051
|
} else {
|
|
@@ -2126,7 +2128,9 @@ class PlayerInitializationService {
|
|
|
2126
2128
|
await this.playlistOrchestrator.startPlaylist(shareFlowId, {
|
|
2127
2129
|
once: false,
|
|
2128
2130
|
// Always allow playback via share link
|
|
2129
|
-
position: "bottom-right"
|
|
2131
|
+
position: "bottom-right",
|
|
2132
|
+
_startedFromShareLink: true
|
|
2133
|
+
// Bypass backend validation
|
|
2130
2134
|
});
|
|
2131
2135
|
log("[PlayerInitializationService.loadAnonymousUserData] Skipped trigger monitoring due to share link auto-start");
|
|
2132
2136
|
} else {
|
|
@@ -2409,6 +2413,15 @@ class PlaylistValidator {
|
|
|
2409
2413
|
updatedOptions: options
|
|
2410
2414
|
};
|
|
2411
2415
|
}
|
|
2416
|
+
if ((options == null ? void 0 : options._startedFromShareLink) === true) {
|
|
2417
|
+
log(`[PlaylistValidator] Share link detected. Allowing direct access to playlist '${playlistId}'`);
|
|
2418
|
+
const manifestPath = `https://storage.saltfish.ai/flows2/drafts/${playlistId}.json`;
|
|
2419
|
+
return {
|
|
2420
|
+
isValid: true,
|
|
2421
|
+
manifestPath,
|
|
2422
|
+
updatedOptions: options
|
|
2423
|
+
};
|
|
2424
|
+
}
|
|
2412
2425
|
const backendPlaylists = store.backendPlaylists;
|
|
2413
2426
|
if (!backendPlaylists || backendPlaylists.length === 0) {
|
|
2414
2427
|
ErrorHandler.handlePlaylistError(
|
|
@@ -11353,7 +11366,7 @@ const SaltfishPlayer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
11353
11366
|
__proto__: null,
|
|
11354
11367
|
SaltfishPlayer
|
|
11355
11368
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11356
|
-
const version = "0.3.
|
|
11369
|
+
const version = "0.3.17";
|
|
11357
11370
|
const packageJson = {
|
|
11358
11371
|
version
|
|
11359
11372
|
};
|
|
@@ -11495,6 +11508,14 @@ function createAPI() {
|
|
|
11495
11508
|
return api;
|
|
11496
11509
|
}
|
|
11497
11510
|
const saltfish = createAPI();
|
|
11511
|
+
if (typeof window !== "undefined" && typeof document !== "undefined") {
|
|
11512
|
+
if (!document.querySelector('meta[name="saltfish-player-loaded"]')) {
|
|
11513
|
+
const meta = document.createElement("meta");
|
|
11514
|
+
meta.name = "saltfish-player-loaded";
|
|
11515
|
+
meta.content = "true";
|
|
11516
|
+
document.head.appendChild(meta);
|
|
11517
|
+
}
|
|
11518
|
+
}
|
|
11498
11519
|
if (typeof window !== "undefined") {
|
|
11499
11520
|
window.saltfish = saltfish;
|
|
11500
11521
|
}
|