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.
@@ -1,20 +1,20 @@
1
1
  import { useSaltfishStore } from '../core/store';
2
2
  /**
3
- * Safely get the Saltfish store state with error handling
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, with built-in error handling.
6
+ * across all managers and components. It replaces direct calls to
7
+ * getSaltfishStore() throughout the codebase.
7
8
  *
8
- * @returns The current store state, or null if access fails
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
- * if (store) {
14
- * const currentState = store.currentState;
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> | null;
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,GAAG,IAAI,CAOtF"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saltfish",
3
- "version": "0.3.28",
3
+ "version": "0.3.30",
4
4
  "description": "An interactive video-guided tour system for web applications",
5
5
  "main": "dist/saltfish-playlist-player.umd.js",
6
6
  "types": "dist/index.d.ts",