saltfish 0.3.28 → 0.3.30
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/ManagerOrchestrator.d.ts.map +1 -1
- package/dist/core/services/PlaylistOrchestrator.d.ts.map +1 -1
- package/dist/managers/InteractionManager.d.ts.map +1 -1
- package/dist/managers/PlaylistManager.d.ts.map +1 -1
- package/dist/managers/UIManager.d.ts +5 -0
- package/dist/managers/UIManager.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 +125 -142
- package/dist/saltfish-playlist-player.umd.js +1 -1
- package/dist/utils/storeUtils.d.ts +8 -8
- package/dist/utils/storeUtils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { useSaltfishStore } from '../core/store';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Get the Saltfish store state with consistent error handling
|
|
4
4
|
*
|
|
5
5
|
* This utility provides a consistent way to access the Zustand store
|
|
6
|
-
* across all managers and components
|
|
6
|
+
* across all managers and components. It replaces direct calls to
|
|
7
|
+
* getSaltfishStore() throughout the codebase.
|
|
7
8
|
*
|
|
8
|
-
* @returns The current store state
|
|
9
|
+
* @returns The current store state
|
|
10
|
+
* @throws Error if store access fails (which should never happen in practice)
|
|
9
11
|
*
|
|
10
12
|
* @example
|
|
11
13
|
* ```typescript
|
|
12
14
|
* const store = getSaltfishStore();
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* // Use store data...
|
|
16
|
-
* }
|
|
15
|
+
* const currentState = store.currentState;
|
|
16
|
+
* // Use store data...
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare function getSaltfishStore(): ReturnType<typeof useSaltfishStore.getState
|
|
19
|
+
export declare function getSaltfishStore(): ReturnType<typeof useSaltfishStore.getState>;
|
|
20
20
|
//# sourceMappingURL=storeUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storeUtils.d.ts","sourceRoot":"","sources":["../../src/utils/storeUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGjD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,IAAI,UAAU,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"storeUtils.d.ts","sourceRoot":"","sources":["../../src/utils/storeUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGjD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,IAAI,UAAU,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,CAQ/E"}
|