@umituz/react-native-onboarding 3.5.0 → 3.5.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-onboarding",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "Advanced onboarding flow for React Native apps with personalization questions, theme-aware colors, animations, and customizable slides. SOLID, DRY, KISS principles applied.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -41,7 +41,7 @@
41
41
  "react": ">=18.2.0",
42
42
  "react-native": ">=0.74.0",
43
43
  "react-native-safe-area-context": ">=4.0.0",
44
- "zustand": ">=5.0.0"
44
+ "zustand": "^4.5.0 || ^5.0.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@umituz/react-native-storage": "latest",
@@ -5,7 +5,7 @@
5
5
  * Uses @umituz/react-native-storage for persistence
6
6
  */
7
7
 
8
- import { create } from "zustand";
8
+ import { create, StoreApi } from "zustand";
9
9
  import type { OnboardingStoreState } from "./OnboardingStoreState";
10
10
  import { initialOnboardingState } from "./OnboardingStoreState";
11
11
  import { createOnboardingStoreActions } from "./OnboardingStoreActions";
@@ -27,8 +27,8 @@ interface OnboardingStore extends OnboardingStoreState {
27
27
  setUserData: (data: any) => Promise<void>;
28
28
  }
29
29
 
30
- export const useOnboardingStore = create<OnboardingStore>((set, get) => {
31
- const actions = createOnboardingStoreActions(set as any, get);
30
+ export const useOnboardingStore = create<OnboardingStore>((set: StoreApi<OnboardingStore>['setState'], get: StoreApi<OnboardingStore>['getState']) => {
31
+ const actions = createOnboardingStoreActions(set, get);
32
32
 
33
33
  return {
34
34
  ...initialOnboardingState,
@@ -54,7 +54,7 @@ export const useOnboardingStore = create<OnboardingStore>((set, get) => {
54
54
  */
55
55
  export const useOnboarding = () => {
56
56
  const store = useOnboardingStore();
57
- const setState = store.setState as any;
57
+ const setState = store.setState;
58
58
  const getState = () => store;
59
59
  const actions = createOnboardingStoreActions(setState, getState);
60
60
  const selectors = createOnboardingStoreSelectors(getState);