saltfish 0.1.23 → 0.1.24
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/index.d.ts +3 -3
- package/dist/managers/TransitionManager.d.ts +2 -2
- package/dist/managers/TriggerManager.d.ts +3 -3
- package/dist/managers/TriggerManager.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 +35 -32
- package/dist/saltfish-playlist-player.umd.js +1 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/validators/PlaylistValidator.d.ts +2 -2
- package/dist/validators/PlaylistValidator.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export interface SaltfishAPI {
|
|
|
39
39
|
* Identifies the current user anonymously (localStorage only, no backend communication)
|
|
40
40
|
* This method provides the same functionality as identify() but stores user data in localStorage
|
|
41
41
|
* instead of communicating with the backend. It automatically generates and persists an anonymous
|
|
42
|
-
* user ID. It still supports
|
|
42
|
+
* user ID. It still supports triggered playlists functionality by using localStorage-based user data for
|
|
43
43
|
* playlist triggers and watched playlist tracking.
|
|
44
44
|
* @param userData - Optional additional user data
|
|
45
45
|
* @example
|
|
@@ -49,8 +49,8 @@ export interface SaltfishAPI {
|
|
|
49
49
|
* // Or with no additional data
|
|
50
50
|
* saltfish.identifyAnonymous();
|
|
51
51
|
*
|
|
52
|
-
* // Still supports
|
|
53
|
-
* //
|
|
52
|
+
* // Still supports triggered playlists with once conditions
|
|
53
|
+
* // Triggered playlists will work using localStorage watched playlist data
|
|
54
54
|
*/
|
|
55
55
|
identifyAnonymous: (userData?: Record<string, any>) => void;
|
|
56
56
|
/**
|
|
@@ -10,7 +10,7 @@ export declare class TransitionManager {
|
|
|
10
10
|
private triggerManager;
|
|
11
11
|
constructor();
|
|
12
12
|
/**
|
|
13
|
-
* Sets the TriggerManager reference for coordinating
|
|
13
|
+
* Sets the TriggerManager reference for coordinating playlist triggers
|
|
14
14
|
* @param triggerManager - The TriggerManager instance
|
|
15
15
|
*/
|
|
16
16
|
setTriggerManager(triggerManager: TriggerManager): void;
|
|
@@ -19,7 +19,7 @@ export declare class TransitionManager {
|
|
|
19
19
|
*/
|
|
20
20
|
private monitorHistoryChanges;
|
|
21
21
|
/**
|
|
22
|
-
* Handles URL changes by checking active URL path transitions and
|
|
22
|
+
* Handles URL changes by checking active URL path transitions and playlist triggers
|
|
23
23
|
*/
|
|
24
24
|
private handleURLChange;
|
|
25
25
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { PlaylistPathInfo } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* Manages
|
|
3
|
+
* Manages playlist triggers for playlists with hasTriggers enabled
|
|
4
4
|
* Evaluates trigger conditions and launches playlists automatically
|
|
5
5
|
*/
|
|
6
6
|
export declare class TriggerManager {
|
|
7
|
-
private autoStartPlaylists;
|
|
8
7
|
private triggeredPlaylists;
|
|
8
|
+
private triggeredPlaylistsSet;
|
|
9
9
|
private isMonitoring;
|
|
10
10
|
constructor();
|
|
11
11
|
/**
|
|
12
|
-
* Registers
|
|
12
|
+
* Registers playlists with triggers and their trigger configurations
|
|
13
13
|
* @param playlists - List of all playlists from backend
|
|
14
14
|
*/
|
|
15
15
|
registerTriggers(playlists: PlaylistPathInfo[]): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggerManager.d.ts","sourceRoot":"","sources":["../../src/managers/TriggerManager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD;;;GAGG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,kBAAkB,CAA0B;IACpD,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"TriggerManager.d.ts","sourceRoot":"","sources":["../../src/managers/TriggerManager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD;;;GAGG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,kBAAkB,CAA0B;IACpD,OAAO,CAAC,qBAAqB,CAA0B;IACvD,OAAO,CAAC,YAAY,CAAkB;;IAMtC;;;OAGG;IACI,gBAAgB,CAAC,SAAS,EAAE,gBAAgB,EAAE,GAAG,IAAI;IAe5D;;OAEG;IACI,eAAe,IAAI,IAAI;IAa9B;;OAEG;IACI,cAAc,IAAI,IAAI;IAK7B;;;OAGG;IACI,mBAAmB,IAAI,IAAI;IAYlC;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAwD/B;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAW7B;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IA4B5B;;;;;OAKG;IACH,OAAO,CAAC,6BAA6B;IAwBrC;;;;;OAKG;IACH,OAAO,CAAC,gCAAgC;IAwBxC;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAuBtB;;;OAGG;YACW,eAAe;IAsB7B;;;OAGG;IACI,uBAAuB,IAAI,IAAI;IAKtC;;OAEG;IACI,qBAAqB,IAAI,MAAM,EAAE;IAIxC;;OAEG;IACI,OAAO,IAAI,IAAI;CAMvB"}
|