@umituz/react-native-onboarding 3.0.0 → 3.0.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.0.0",
3
+ "version": "3.0.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",
@@ -35,7 +35,7 @@ export function createOnboardingStoreActions(
35
35
  const completionResult = await storageRepository.getString(storageKey, "false");
36
36
  const isComplete = unwrap(completionResult, "false") === "true";
37
37
 
38
- const userDataResult = await storageRepository.getObject<OnboardingUserData>(
38
+ const userDataResult = await storageRepository.getItem<OnboardingUserData>(
39
39
  USER_DATA_STORAGE_KEY,
40
40
  { answers: {} }
41
41
  );
@@ -56,7 +56,7 @@ export function createOnboardingStoreActions(
56
56
  loading: false,
57
57
  error: error instanceof Error ? error.message : "Failed to initialize onboarding",
58
58
  });
59
-
59
+
60
60
  if (__DEV__) {
61
61
  console.error('[OnboardingStore] Initialization error:', error);
62
62
  }
@@ -72,7 +72,7 @@ export function createOnboardingStoreActions(
72
72
  const userData = { ...get().userData };
73
73
  userData.completedAt = new Date().toISOString();
74
74
 
75
- await storageRepository.setObject(USER_DATA_STORAGE_KEY, userData);
75
+ await storageRepository.setItem(USER_DATA_STORAGE_KEY, userData);
76
76
 
77
77
  set({
78
78
  isOnboardingComplete: result.success,
@@ -89,7 +89,7 @@ export function createOnboardingStoreActions(
89
89
  loading: false,
90
90
  error: error instanceof Error ? error.message : "Failed to complete onboarding",
91
91
  });
92
-
92
+
93
93
  if (__DEV__) {
94
94
  console.error('[OnboardingStore] Completion error:', error);
95
95
  }
@@ -105,7 +105,7 @@ export function createOnboardingStoreActions(
105
105
  const userData = { ...get().userData };
106
106
  userData.skipped = true;
107
107
  userData.completedAt = new Date().toISOString();
108
- await storageRepository.setObject(USER_DATA_STORAGE_KEY, userData);
108
+ await storageRepository.setItem(USER_DATA_STORAGE_KEY, userData);
109
109
 
110
110
  set({
111
111
  isOnboardingComplete: result.success,
@@ -122,7 +122,7 @@ export function createOnboardingStoreActions(
122
122
  loading: false,
123
123
  error: error instanceof Error ? error.message : "Failed to skip onboarding",
124
124
  });
125
-
125
+
126
126
  if (__DEV__) {
127
127
  console.error('[OnboardingStore] Skip error:', error);
128
128
  }
@@ -152,7 +152,7 @@ export function createOnboardingStoreActions(
152
152
  loading: false,
153
153
  error: error instanceof Error ? error.message : "Failed to reset onboarding",
154
154
  });
155
-
155
+
156
156
  if (__DEV__) {
157
157
  console.error('[OnboardingStore] Reset error:', error);
158
158
  }
@@ -164,7 +164,7 @@ export function createOnboardingStoreActions(
164
164
  const userData = { ...get().userData };
165
165
  userData.answers[questionId] = answer;
166
166
 
167
- await storageRepository.setObject(USER_DATA_STORAGE_KEY, userData);
167
+ await storageRepository.setItem(USER_DATA_STORAGE_KEY, userData);
168
168
  set({ userData });
169
169
 
170
170
  if (__DEV__) {
@@ -179,7 +179,7 @@ export function createOnboardingStoreActions(
179
179
 
180
180
  setUserData: async (data: OnboardingUserData) => {
181
181
  try {
182
- await storageRepository.setObject(USER_DATA_STORAGE_KEY, data);
182
+ await storageRepository.setItem(USER_DATA_STORAGE_KEY, data);
183
183
  set({ userData: data });
184
184
 
185
185
  if (__DEV__) {