@digilogiclabs/create-saas-app 2.12.0 → 2.13.0

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.
Files changed (159) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/index.js +1870 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/templates/mobile/base/template/App.tsx +7 -4
  6. package/dist/templates/mobile/base/template/app/checkout.tsx +5 -2
  7. package/dist/templates/mobile/base/template/package.json +2 -2
  8. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/_layout.tsx +6 -2
  9. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/billing.tsx +7 -3
  10. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/index.tsx +5 -2
  11. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/profile.tsx +7 -2
  12. package/dist/templates/mobile/ui-auth-payments/template/app/_layout.tsx +2 -4
  13. package/dist/templates/mobile/ui-auth-payments/template/app/auth/login.tsx +6 -3
  14. package/dist/templates/mobile/ui-auth-payments/template/app/auth/signup.tsx +6 -3
  15. package/dist/templates/mobile/ui-auth-payments/template/package.json +2 -2
  16. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/_layout.tsx +6 -2
  17. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/billing.tsx +7 -3
  18. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/index.tsx +5 -2
  19. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/profile.tsx +7 -2
  20. package/dist/templates/mobile/ui-auth-payments-ai/template/app/_layout.tsx +2 -4
  21. package/dist/templates/mobile/ui-auth-payments-ai/template/app/auth/login.tsx +6 -3
  22. package/dist/templates/mobile/ui-auth-payments-ai/template/app/auth/signup.tsx +6 -3
  23. package/dist/templates/mobile/ui-auth-payments-ai/template/package.json +2 -2
  24. package/dist/templates/shared/config/web/next.config.mjs +0 -1
  25. package/dist/templates/web/ai-platform/template/package.json +3 -4
  26. package/dist/templates/web/ai-platform/template/src/app/chat/page.tsx +5 -2
  27. package/dist/templates/web/ai-platform/template/src/app/playground/page.tsx +5 -2
  28. package/dist/templates/web/ai-platform/template/src/components/providers/app-providers.tsx +2 -5
  29. package/dist/templates/web/base/template/package.json +3 -3
  30. package/dist/templates/web/iot-dashboard/template/package.json +3 -4
  31. package/dist/templates/web/iot-dashboard/template/src/components/providers/app-providers.tsx +2 -5
  32. package/dist/templates/web/marketplace/template/package.json +3 -4
  33. package/dist/templates/web/marketplace/template/src/components/providers/app-providers.tsx +2 -5
  34. package/dist/templates/web/micro-saas/template/package.json +3 -4
  35. package/dist/templates/web/micro-saas/template/src/components/providers/app-providers.tsx +2 -5
  36. package/dist/templates/web/ui-auth/template/package.json +3 -3
  37. package/dist/templates/web/ui-auth-ai/template/package.json +3 -3
  38. package/dist/templates/web/ui-auth-payments/template/package.json +3 -3
  39. package/dist/templates/web/ui-auth-payments-ai/template/package.json +3 -3
  40. package/dist/templates/web/ui-auth-payments-audio/template/package.json +3 -3
  41. package/dist/templates/web/ui-auth-payments-video/template/package.json +3 -3
  42. package/dist/templates/web/ui-only/template/package.json +2 -2
  43. package/dist/templates/web/ui-package-test/template/package.json +3 -3
  44. package/package.json +1 -1
  45. package/src/templates/mobile/base/template/App.tsx +7 -4
  46. package/src/templates/mobile/base/template/app/checkout.tsx +5 -2
  47. package/src/templates/mobile/base/template/package.json +2 -2
  48. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/_layout.tsx +6 -2
  49. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/billing.tsx +7 -3
  50. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/index.tsx +5 -2
  51. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/profile.tsx +7 -2
  52. package/src/templates/mobile/ui-auth-payments/template/app/_layout.tsx +2 -4
  53. package/src/templates/mobile/ui-auth-payments/template/app/auth/login.tsx +6 -3
  54. package/src/templates/mobile/ui-auth-payments/template/app/auth/signup.tsx +6 -3
  55. package/src/templates/mobile/ui-auth-payments/template/package.json +2 -2
  56. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/_layout.tsx +6 -2
  57. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/billing.tsx +7 -3
  58. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/index.tsx +5 -2
  59. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/profile.tsx +7 -2
  60. package/src/templates/mobile/ui-auth-payments-ai/template/app/_layout.tsx +2 -4
  61. package/src/templates/mobile/ui-auth-payments-ai/template/app/auth/login.tsx +6 -3
  62. package/src/templates/mobile/ui-auth-payments-ai/template/app/auth/signup.tsx +6 -3
  63. package/src/templates/mobile/ui-auth-payments-ai/template/package.json +2 -2
  64. package/src/templates/shared/config/web/next.config.mjs +0 -1
  65. package/src/templates/web/ai-platform/template/package.json +3 -4
  66. package/src/templates/web/ai-platform/template/src/app/chat/page.tsx +5 -2
  67. package/src/templates/web/ai-platform/template/src/app/playground/page.tsx +5 -2
  68. package/src/templates/web/ai-platform/template/src/components/providers/app-providers.tsx +2 -5
  69. package/src/templates/web/base/template/package.json +3 -3
  70. package/src/templates/web/iot-dashboard/template/package.json +3 -4
  71. package/src/templates/web/iot-dashboard/template/src/components/providers/app-providers.tsx +2 -5
  72. package/src/templates/web/marketplace/template/package.json +3 -4
  73. package/src/templates/web/marketplace/template/src/components/providers/app-providers.tsx +2 -5
  74. package/src/templates/web/micro-saas/template/package.json +3 -4
  75. package/src/templates/web/micro-saas/template/src/components/providers/app-providers.tsx +2 -5
  76. package/src/templates/web/ui-auth/template/package.json +3 -3
  77. package/src/templates/web/ui-auth-ai/template/package.json +3 -3
  78. package/src/templates/web/ui-auth-payments/template/package.json +3 -3
  79. package/src/templates/web/ui-auth-payments-ai/template/package.json +3 -3
  80. package/src/templates/web/ui-auth-payments-audio/template/package.json +3 -3
  81. package/src/templates/web/ui-auth-payments-video/template/package.json +3 -3
  82. package/src/templates/web/ui-only/template/package.json +2 -2
  83. package/src/templates/web/ui-package-test/template/package.json +3 -3
  84. package/dist/cli/commands/add.d.ts +0 -6
  85. package/dist/cli/commands/add.d.ts.map +0 -1
  86. package/dist/cli/commands/add.js +0 -39
  87. package/dist/cli/commands/add.js.map +0 -1
  88. package/dist/cli/commands/create.d.ts +0 -49
  89. package/dist/cli/commands/create.d.ts.map +0 -1
  90. package/dist/cli/commands/create.js +0 -173
  91. package/dist/cli/commands/create.js.map +0 -1
  92. package/dist/cli/commands/index.d.ts +0 -4
  93. package/dist/cli/commands/index.d.ts.map +0 -1
  94. package/dist/cli/commands/index.js +0 -20
  95. package/dist/cli/commands/index.js.map +0 -1
  96. package/dist/cli/commands/update.d.ts +0 -6
  97. package/dist/cli/commands/update.d.ts.map +0 -1
  98. package/dist/cli/commands/update.js +0 -68
  99. package/dist/cli/commands/update.js.map +0 -1
  100. package/dist/cli/index.d.ts +0 -4
  101. package/dist/cli/index.d.ts.map +0 -1
  102. package/dist/cli/index.js +0 -63
  103. package/dist/cli/index.js.map +0 -1
  104. package/dist/cli/prompts/index.d.ts +0 -2
  105. package/dist/cli/prompts/index.d.ts.map +0 -1
  106. package/dist/cli/prompts/index.js +0 -18
  107. package/dist/cli/prompts/index.js.map +0 -1
  108. package/dist/cli/prompts/project-setup.d.ts +0 -5
  109. package/dist/cli/prompts/project-setup.d.ts.map +0 -1
  110. package/dist/cli/prompts/project-setup.js +0 -359
  111. package/dist/cli/prompts/project-setup.js.map +0 -1
  112. package/dist/cli/utils/git.d.ts +0 -9
  113. package/dist/cli/utils/git.d.ts.map +0 -1
  114. package/dist/cli/utils/git.js +0 -77
  115. package/dist/cli/utils/git.js.map +0 -1
  116. package/dist/cli/utils/index.d.ts +0 -5
  117. package/dist/cli/utils/index.d.ts.map +0 -1
  118. package/dist/cli/utils/index.js +0 -21
  119. package/dist/cli/utils/index.js.map +0 -1
  120. package/dist/cli/utils/logger.d.ts +0 -16
  121. package/dist/cli/utils/logger.d.ts.map +0 -1
  122. package/dist/cli/utils/logger.js +0 -55
  123. package/dist/cli/utils/logger.js.map +0 -1
  124. package/dist/cli/utils/package-manager.d.ts +0 -8
  125. package/dist/cli/utils/package-manager.d.ts.map +0 -1
  126. package/dist/cli/utils/package-manager.js +0 -92
  127. package/dist/cli/utils/package-manager.js.map +0 -1
  128. package/dist/cli/utils/spinner.d.ts +0 -7
  129. package/dist/cli/utils/spinner.d.ts.map +0 -1
  130. package/dist/cli/utils/spinner.js +0 -48
  131. package/dist/cli/utils/spinner.js.map +0 -1
  132. package/dist/cli/validators/dependencies.d.ts +0 -15
  133. package/dist/cli/validators/dependencies.d.ts.map +0 -1
  134. package/dist/cli/validators/dependencies.js +0 -108
  135. package/dist/cli/validators/dependencies.js.map +0 -1
  136. package/dist/cli/validators/index.d.ts +0 -3
  137. package/dist/cli/validators/index.d.ts.map +0 -1
  138. package/dist/cli/validators/index.js +0 -19
  139. package/dist/cli/validators/index.js.map +0 -1
  140. package/dist/cli/validators/project-name.d.ts +0 -5
  141. package/dist/cli/validators/project-name.d.ts.map +0 -1
  142. package/dist/cli/validators/project-name.js +0 -151
  143. package/dist/cli/validators/project-name.js.map +0 -1
  144. package/dist/generators/file-processor.d.ts +0 -28
  145. package/dist/generators/file-processor.d.ts.map +0 -1
  146. package/dist/generators/file-processor.js +0 -224
  147. package/dist/generators/file-processor.js.map +0 -1
  148. package/dist/generators/index.d.ts +0 -4
  149. package/dist/generators/index.d.ts.map +0 -1
  150. package/dist/generators/index.js +0 -20
  151. package/dist/generators/index.js.map +0 -1
  152. package/dist/generators/package-installer.d.ts +0 -29
  153. package/dist/generators/package-installer.d.ts.map +0 -1
  154. package/dist/generators/package-installer.js +0 -177
  155. package/dist/generators/package-installer.js.map +0 -1
  156. package/dist/generators/template-generator.d.ts +0 -86
  157. package/dist/generators/template-generator.d.ts.map +0 -1
  158. package/dist/generators/template-generator.js +0 -943
  159. package/dist/generators/template-generator.js.map +0 -1
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "name": "{{packageName}}",
3
3
  "version": "1.0.0",
4
4
  "description": "{{description}}",
@@ -22,7 +22,7 @@
22
22
  "react-native-screens": "~3.22.0",
23
23
  "react-native-safe-area-context": "4.6.3",
24
24
  "react-native-gesture-handler": "~2.12.0",
25
- "@digilogiclabs/saas-factory-ui": "^1.4.0",
25
+ "@digilogiclabs/saas-factory-ui": "^1.27.0",
26
26
  "firebase": "^10.0.0",
27
27
  "@supabase/supabase-js": "^2.0.0",
28
28
  "@react-native-community/netinfo": "^11.0.0",
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { View } from 'react-native';
3
3
  import { Tabs } from 'expo-router';
4
- import { useAuth } from '@digilogiclabs/app-sdk';
4
+ // TODO: Replace with direct @digilogiclabs/saas-factory-auth usage
5
+ // import { useAuth } from '@digilogiclabs/app-sdk';
5
6
  import { Redirect } from 'expo-router';
6
7
 
7
8
  // UI Components - Updated for v0.22.0
@@ -69,7 +70,10 @@ const tabConfig = [
69
70
  ];
70
71
 
71
72
  export default function TabLayout() {
72
- const { user, loading } = useAuth();
73
+ // TODO: Replace with direct auth provider hook
74
+ // const { user, loading } = useAuth();
75
+ const user = null as any; // placeholder — wire up your auth provider
76
+ const loading = false;
73
77
  const { colors } = useTheme();
74
78
 
75
79
  // Show loading state while checking authentication
@@ -19,8 +19,8 @@ import {
19
19
  useTheme
20
20
  } from '@digilogiclabs/saas-factory-ui/native';
21
21
 
22
- // Payments Hook
23
- import { usePayments } from '@digilogiclabs/app-sdk';
22
+ // TODO: Replace with direct @digilogiclabs/saas-factory-payments usage
23
+ // import { usePayments } from '@digilogiclabs/app-sdk';
24
24
 
25
25
  // Icons
26
26
  import {
@@ -129,7 +129,11 @@ const mockInvoices: Invoice[] = [
129
129
 
130
130
  export default function BillingScreen() {
131
131
  const { initPaymentSheet, presentPaymentSheet } = useStripe();
132
- const { createPaymentMethod, deletePaymentMethod, updateSubscription } = usePayments();
132
+ // TODO: Replace with direct payments provider hook
133
+ // const { createPaymentMethod, deletePaymentMethod, updateSubscription } = usePayments();
134
+ const createPaymentMethod = async (_data: any) => { throw new Error('Wire up payments provider'); };
135
+ const deletePaymentMethod = async (_id: string) => { throw new Error('Wire up payments provider'); };
136
+ const updateSubscription = async (_data: any) => { throw new Error('Wire up payments provider'); };
133
137
  const { theme, isDark } = useTheme();
134
138
 
135
139
  const [paymentMethods, setPaymentMethods] = useState<PaymentMethod[]>(mockPaymentMethods);
@@ -1,6 +1,7 @@
1
1
  import React, { useState, useEffect } from 'react';
2
2
  import { View, Text, StyleSheet, ScrollView, RefreshControl, Dimensions, Animated } from 'react-native';
3
- import { useAuth } from '@digilogiclabs/app-sdk';
3
+ // TODO: Replace with direct @digilogiclabs/saas-factory-auth usage
4
+ // import { useAuth } from '@digilogiclabs/app-sdk';
4
5
  import { LinearGradient } from 'expo-linear-gradient';
5
6
  import { BlurView } from 'expo-blur';
6
7
  import * as Haptics from 'expo-haptics';
@@ -65,7 +66,9 @@ interface DashboardData {
65
66
  }
66
67
 
67
68
  export default function HomeScreen() {
68
- const { user } = useAuth();
69
+ // TODO: Replace with direct auth provider hook
70
+ // const { user } = useAuth();
71
+ const user = null as any; // placeholder — wire up your auth provider
69
72
  const { colors, isDark } = useTheme();
70
73
  const [data, setData] = useState<DashboardData | null>(null);
71
74
  const [loading, setLoading] = useState(true);
@@ -1,7 +1,8 @@
1
1
  import React, { useState } from 'react';
2
2
  import { View, Text, StyleSheet, ScrollView, Alert, RefreshControl, Animated } from 'react-native';
3
3
  import { router } from 'expo-router';
4
- import { useAuth } from '@digilogiclabs/app-sdk';
4
+ // TODO: Replace with direct @digilogiclabs/saas-factory-auth usage
5
+ // import { useAuth } from '@digilogiclabs/app-sdk';
5
6
  import { LinearGradient } from 'expo-linear-gradient';
6
7
  import { BlurView } from 'expo-blur';
7
8
  import * as Haptics from 'expo-haptics';
@@ -40,7 +41,11 @@ import {
40
41
  } from 'react-native-heroicons/outline';
41
42
 
42
43
  export default function ProfileScreen() {
43
- const { user, signOut, updateProfile } = useAuth();
44
+ // TODO: Replace with direct auth provider hook
45
+ // const { user, signOut, updateProfile } = useAuth();
46
+ const user = null as any; // placeholder — wire up your auth provider
47
+ const signOut = async () => { throw new Error('Wire up auth provider'); };
48
+ const updateProfile = async (_data: any) => { throw new Error('Wire up auth provider'); };
44
49
  const { theme, isDark } = useTheme();
45
50
  const [notificationsEnabled, setNotificationsEnabled] = useState(true);
46
51
  const [emailUpdates, setEmailUpdates] = useState(true);
@@ -16,8 +16,8 @@ import {
16
16
  AppShell
17
17
  } from '@digilogiclabs/saas-factory-ui/native';
18
18
 
19
- // App SDK Provider
20
- import { DLLProvider } from '@digilogiclabs/app-sdk';
19
+ // TODO: Replace with direct auth/payments provider setup
20
+ // DLLProvider from @digilogiclabs/app-sdk has been deprecated
21
21
 
22
22
  // Prevent the splash screen from auto-hiding before asset loading is complete
23
23
  SplashScreen.preventAutoHideAsync();
@@ -53,7 +53,6 @@ export default function RootLayout() {
53
53
  backgroundSync={true}
54
54
  >
55
55
  <NetworkAwareContent>
56
- <DLLProvider>
57
56
  <StripeProvider
58
57
  publishableKey={process.env.EXPO_PUBLIC_STRIPE_PUBLISHABLE_KEY!}
59
58
  merchantIdentifier="merchant.com.{{packageName}}.app"
@@ -113,7 +112,6 @@ export default function RootLayout() {
113
112
  <Toast />
114
113
  <StatusBar style="auto" />
115
114
  </StripeProvider>
116
- </DLLProvider>
117
115
  </NetworkAwareContent>
118
116
  </OfflineWrapper>
119
117
  </HapticsProvider>
@@ -16,8 +16,8 @@ import {
16
16
  NativeMobileHero as MobileHero
17
17
  } from '@digilogiclabs/saas-factory-ui/native';
18
18
 
19
- // Auth Hook
20
- import { useAuth } from '@digilogiclabs/app-sdk';
19
+ // TODO: Replace with direct @digilogiclabs/saas-factory-auth usage
20
+ // import { useAuth } from '@digilogiclabs/app-sdk';
21
21
 
22
22
  // Validation Schema
23
23
  const loginSchema = z.object({
@@ -28,7 +28,10 @@ const loginSchema = z.object({
28
28
  type LoginFormData = z.infer<typeof loginSchema>;
29
29
 
30
30
  export default function LoginScreen() {
31
- const { signIn, loading } = useAuth();
31
+ // TODO: Replace with direct auth provider hook
32
+ // const { signIn, loading } = useAuth();
33
+ const signIn = async (_email: string, _password: string) => { throw new Error('Wire up auth provider'); };
34
+ const loading = false;
32
35
  const [error, setError] = useState<string | null>(null);
33
36
 
34
37
  const { control, handleSubmit, formState: { errors, isValid } } = useForm<LoginFormData>({
@@ -16,8 +16,8 @@ import {
16
16
  NativeCheckbox as Checkbox
17
17
  } from '@digilogiclabs/saas-factory-ui/native';
18
18
 
19
- // Auth Hook
20
- import { useAuth } from '@digilogiclabs/app-sdk';
19
+ // TODO: Replace with direct @digilogiclabs/saas-factory-auth usage
20
+ // import { useAuth } from '@digilogiclabs/app-sdk';
21
21
 
22
22
  // Validation Schema
23
23
  const signupSchema = z.object({
@@ -36,7 +36,10 @@ const signupSchema = z.object({
36
36
  type SignupFormData = z.infer<typeof signupSchema>;
37
37
 
38
38
  export default function SignupScreen() {
39
- const { signUp, loading } = useAuth();
39
+ // TODO: Replace with direct auth provider hook
40
+ // const { signUp, loading } = useAuth();
41
+ const signUp = async (_email: string, _password: string, _meta?: any) => { throw new Error('Wire up auth provider'); };
42
+ const loading = false;
40
43
  const [error, setError] = useState<string | null>(null);
41
44
  const [success, setSuccess] = useState<string | null>(null);
42
45
 
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "name": "{{packageName}}",
3
3
  "version": "1.0.0",
4
4
  "description": "{{description}} - Mobile App with UI, Auth, and Payments",
@@ -35,7 +35,7 @@
35
35
  "react-native-gesture-handler": "~2.14.0",
36
36
  "react-native-reanimated": "~3.6.2",
37
37
 
38
- "@digilogiclabs/saas-factory-ui": "^1.4.0",
38
+ "@digilogiclabs/saas-factory-ui": "^1.27.0",
39
39
 
40
40
  "@supabase/supabase-js": "^2.39.0",
41
41
  "@react-native-async-storage/async-storage": "1.21.0",
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { View } from 'react-native';
3
3
  import { Tabs } from 'expo-router';
4
- import { useAuth } from '@digilogiclabs/app-sdk';
4
+ // TODO: Replace with direct @digilogiclabs/saas-factory-auth usage
5
+ // import { useAuth } from '@digilogiclabs/app-sdk';
5
6
  import { Redirect } from 'expo-router';
6
7
 
7
8
  // UI Components - Updated for v0.22.0
@@ -79,7 +80,10 @@ const tabConfig = [
79
80
  ];
80
81
 
81
82
  export default function TabLayout() {
82
- const { user, loading } = useAuth();
83
+ // TODO: Replace with direct auth provider hook
84
+ // const { user, loading } = useAuth();
85
+ const user = null as any; // placeholder — wire up your auth provider
86
+ const loading = false;
83
87
  const { colors } = useTheme();
84
88
 
85
89
  // Show loading state while checking authentication
@@ -19,8 +19,8 @@ import {
19
19
  useTheme
20
20
  } from '@digilogiclabs/saas-factory-ui/native';
21
21
 
22
- // Payments Hook
23
- import { usePayments } from '@digilogiclabs/app-sdk';
22
+ // TODO: Replace with direct @digilogiclabs/saas-factory-payments usage
23
+ // import { usePayments } from '@digilogiclabs/app-sdk';
24
24
 
25
25
  // Icons
26
26
  import {
@@ -129,7 +129,11 @@ const mockInvoices: Invoice[] = [
129
129
 
130
130
  export default function BillingScreen() {
131
131
  const { initPaymentSheet, presentPaymentSheet } = useStripe();
132
- const { createPaymentMethod, deletePaymentMethod, updateSubscription } = usePayments();
132
+ // TODO: Replace with direct payments provider hook
133
+ // const { createPaymentMethod, deletePaymentMethod, updateSubscription } = usePayments();
134
+ const createPaymentMethod = async (_data: any) => { throw new Error('Wire up payments provider'); };
135
+ const deletePaymentMethod = async (_id: string) => { throw new Error('Wire up payments provider'); };
136
+ const updateSubscription = async (_data: any) => { throw new Error('Wire up payments provider'); };
133
137
  const { theme, isDark } = useTheme();
134
138
 
135
139
  const [paymentMethods, setPaymentMethods] = useState<PaymentMethod[]>(mockPaymentMethods);
@@ -1,6 +1,7 @@
1
1
  import React, { useState, useEffect } from 'react';
2
2
  import { View, Text, StyleSheet, ScrollView, RefreshControl, Dimensions, Animated } from 'react-native';
3
- import { useAuth } from '@digilogiclabs/app-sdk';
3
+ // TODO: Replace with direct @digilogiclabs/saas-factory-auth usage
4
+ // import { useAuth } from '@digilogiclabs/app-sdk';
4
5
  import { LinearGradient } from 'expo-linear-gradient';
5
6
  import { BlurView } from 'expo-blur';
6
7
  import * as Haptics from 'expo-haptics';
@@ -63,7 +64,9 @@ interface DashboardData {
63
64
  }
64
65
 
65
66
  export default function HomeScreen() {
66
- const { user } = useAuth();
67
+ // TODO: Replace with direct auth provider hook
68
+ // const { user } = useAuth();
69
+ const user = null as any; // placeholder — wire up your auth provider
67
70
  const { colors, isDark } = useTheme();
68
71
  const [data, setData] = useState<DashboardData | null>(null);
69
72
  const [loading, setLoading] = useState(true);
@@ -1,7 +1,8 @@
1
1
  import React, { useState } from 'react';
2
2
  import { View, Text, StyleSheet, ScrollView, Alert, RefreshControl, Animated } from 'react-native';
3
3
  import { router } from 'expo-router';
4
- import { useAuth } from '@digilogiclabs/app-sdk';
4
+ // TODO: Replace with direct @digilogiclabs/saas-factory-auth usage
5
+ // import { useAuth } from '@digilogiclabs/app-sdk';
5
6
  import { LinearGradient } from 'expo-linear-gradient';
6
7
  import { BlurView } from 'expo-blur';
7
8
  import * as Haptics from 'expo-haptics';
@@ -40,7 +41,11 @@ import {
40
41
  } from 'react-native-heroicons/outline';
41
42
 
42
43
  export default function ProfileScreen() {
43
- const { user, signOut, updateProfile } = useAuth();
44
+ // TODO: Replace with direct auth provider hook
45
+ // const { user, signOut, updateProfile } = useAuth();
46
+ const user = null as any; // placeholder — wire up your auth provider
47
+ const signOut = async () => { throw new Error('Wire up auth provider'); };
48
+ const updateProfile = async (_data: any) => { throw new Error('Wire up auth provider'); };
44
49
  const { theme, isDark } = useTheme();
45
50
  const [notificationsEnabled, setNotificationsEnabled] = useState(true);
46
51
  const [emailUpdates, setEmailUpdates] = useState(true);
@@ -16,8 +16,8 @@ import {
16
16
  AppShell
17
17
  } from '@digilogiclabs/saas-factory-ui/native';
18
18
 
19
- // App SDK Provider
20
- import { DLLProvider } from '@digilogiclabs/app-sdk';
19
+ // TODO: Replace with direct auth/payments provider setup
20
+ // DLLProvider from @digilogiclabs/app-sdk has been deprecated
21
21
 
22
22
  // Prevent the splash screen from auto-hiding before asset loading is complete
23
23
  SplashScreen.preventAutoHideAsync();
@@ -53,7 +53,6 @@ export default function RootLayout() {
53
53
  backgroundSync={true}
54
54
  >
55
55
  <NetworkAwareContent>
56
- <DLLProvider>
57
56
  <StripeProvider
58
57
  publishableKey={process.env.EXPO_PUBLIC_STRIPE_PUBLISHABLE_KEY!}
59
58
  merchantIdentifier="merchant.com.{{packageName}}.app"
@@ -113,7 +112,6 @@ export default function RootLayout() {
113
112
  <Toast />
114
113
  <StatusBar style="auto" />
115
114
  </StripeProvider>
116
- </DLLProvider>
117
115
  </NetworkAwareContent>
118
116
  </OfflineWrapper>
119
117
  </HapticsProvider>
@@ -16,8 +16,8 @@ import {
16
16
  NativeMobileHero as MobileHero
17
17
  } from '@digilogiclabs/saas-factory-ui/native';
18
18
 
19
- // Auth Hook
20
- import { useAuth } from '@digilogiclabs/app-sdk';
19
+ // TODO: Replace with direct @digilogiclabs/saas-factory-auth usage
20
+ // import { useAuth } from '@digilogiclabs/app-sdk';
21
21
 
22
22
  // Validation Schema
23
23
  const loginSchema = z.object({
@@ -28,7 +28,10 @@ const loginSchema = z.object({
28
28
  type LoginFormData = z.infer<typeof loginSchema>;
29
29
 
30
30
  export default function LoginScreen() {
31
- const { signIn, loading } = useAuth();
31
+ // TODO: Replace with direct auth provider hook
32
+ // const { signIn, loading } = useAuth();
33
+ const signIn = async (_email: string, _password: string) => { throw new Error('Wire up auth provider'); };
34
+ const loading = false;
32
35
  const [error, setError] = useState<string | null>(null);
33
36
 
34
37
  const { control, handleSubmit, formState: { errors, isValid } } = useForm<LoginFormData>({
@@ -16,8 +16,8 @@ import {
16
16
  NativeCheckbox as Checkbox
17
17
  } from '@digilogiclabs/saas-factory-ui/native';
18
18
 
19
- // Auth Hook
20
- import { useAuth } from '@digilogiclabs/app-sdk';
19
+ // TODO: Replace with direct @digilogiclabs/saas-factory-auth usage
20
+ // import { useAuth } from '@digilogiclabs/app-sdk';
21
21
 
22
22
  // Validation Schema
23
23
  const signupSchema = z.object({
@@ -36,7 +36,10 @@ const signupSchema = z.object({
36
36
  type SignupFormData = z.infer<typeof signupSchema>;
37
37
 
38
38
  export default function SignupScreen() {
39
- const { signUp, loading } = useAuth();
39
+ // TODO: Replace with direct auth provider hook
40
+ // const { signUp, loading } = useAuth();
41
+ const signUp = async (_email: string, _password: string, _meta?: any) => { throw new Error('Wire up auth provider'); };
42
+ const loading = false;
40
43
  const [error, setError] = useState<string | null>(null);
41
44
  const [success, setSuccess] = useState<string | null>(null);
42
45
 
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "name": "{{packageName}}",
3
3
  "version": "1.0.0",
4
4
  "description": "{{description}} - Mobile AI App with UI, Auth, Payments, and AI Generation",
@@ -35,7 +35,7 @@
35
35
  "react-native-gesture-handler": "~2.14.0",
36
36
  "react-native-reanimated": "~3.6.2",
37
37
 
38
- "@digilogiclabs/saas-factory-ui": "^1.4.0",
38
+ "@digilogiclabs/saas-factory-ui": "^1.27.0",
39
39
  "@digilogiclabs/saas-factory-ai": "^4.0.2",
40
40
  "@digilogiclabs/saas-factory-ai-types": "^4.0.2",
41
41
 
@@ -48,7 +48,6 @@ const nextConfig = {
48
48
  // Stub main barrel only — subpaths like /auth and /security-headers
49
49
  // are Edge-safe and must NOT be stubbed.
50
50
  '@digilogiclabs/platform-core$': false,
51
- '@digilogiclabs/app-sdk$': false,
52
51
  'ioredis$': false,
53
52
  'pg$': false,
54
53
  'nodemailer$': false,
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "name": "{{packageName}}",
3
3
  "version": "0.1.0",
4
4
  "description": "{{description}} - AI Platform",
@@ -14,9 +14,8 @@
14
14
  "next": "^15.5.0",
15
15
  "react": "^19.0.0",
16
16
  "react-dom": "^19.0.0",
17
- "@digilogiclabs/platform-core": "^1.14.0",
18
- "@digilogiclabs/app-sdk": "^1.1.0",
19
- "@digilogiclabs/saas-factory-ui": "^1.8.1",
17
+ "@digilogiclabs/platform-core": "^1.17.3",
18
+ "@digilogiclabs/saas-factory-ui": "^1.27.0",
20
19
  "tailwindcss": "^4.1.0",
21
20
  "@tailwindcss/postcss": "^4.1.0",
22
21
  "clsx": "^2.1.0",
@@ -3,7 +3,8 @@
3
3
  import { useState, useRef, useEffect } from 'react'
4
4
  import { Button, Card } from '@digilogiclabs/saas-factory-ui'
5
5
  import { Send, Bot, User, Loader2, Sparkles } from 'lucide-react'
6
- import { useAuth } from '@digilogiclabs/app-sdk'
6
+ // TODO: Replace with direct @digilogiclabs/saas-factory-auth or Auth.js usage
7
+ // import { useAuth } from '@digilogiclabs/app-sdk'
7
8
  import Link from 'next/link'
8
9
 
9
10
  interface Message {
@@ -20,7 +21,9 @@ const MODELS = [
20
21
  ]
21
22
 
22
23
  export default function ChatPage() {
23
- const { user, loading: authLoading } = useAuth()
24
+ // TODO: Replace with direct auth provider usage
25
+ const user = null as any // placeholder — wire up your auth provider
26
+ const authLoading = false
24
27
  const [messages, setMessages] = useState<Message[]>([])
25
28
  const [input, setInput] = useState('')
26
29
  const [isLoading, setIsLoading] = useState(false)
@@ -3,7 +3,8 @@
3
3
  import { useState } from 'react'
4
4
  import { Button, Card } from '@digilogiclabs/saas-factory-ui'
5
5
  import { Play, Loader2, Clock, Hash, Bot } from 'lucide-react'
6
- import { useAuth } from '@digilogiclabs/app-sdk'
6
+ // TODO: Replace with direct @digilogiclabs/saas-factory-auth or Auth.js usage
7
+ // import { useAuth } from '@digilogiclabs/app-sdk'
7
8
  import Link from 'next/link'
8
9
 
9
10
  const MODELS = [
@@ -25,7 +26,9 @@ const DEMO_RESPONSES: Record<string, string> = {
25
26
  }
26
27
 
27
28
  export default function PlaygroundPage() {
28
- const { user, loading: authLoading } = useAuth()
29
+ // TODO: Replace with direct auth provider usage
30
+ const user = null as any // placeholder — wire up your auth provider
31
+ const authLoading = false
29
32
  const [model, setModel] = useState(MODELS[0].id)
30
33
  const [systemPrompt, setSystemPrompt] = useState('You are a helpful AI assistant.')
31
34
  const [userMessage, setUserMessage] = useState('')
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { ThemeProvider } from 'next-themes'
4
4
  import { Toaster } from '@digilogiclabs/saas-factory-ui'
5
- import { DLLProvider } from '@digilogiclabs/app-sdk'
6
5
 
7
6
  interface AppProvidersProps {
8
7
  children: React.ReactNode
@@ -11,10 +10,8 @@ interface AppProvidersProps {
11
10
  export function AppProviders({ children }: AppProvidersProps) {
12
11
  return (
13
12
  <ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
14
- <DLLProvider>
15
- {children}
16
- <Toaster />
17
- </DLLProvider>
13
+ {children}
14
+ <Toaster />
18
15
  </ThemeProvider>
19
16
  )
20
17
  }
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "name": "{{packageName}}",
3
3
  "version": "0.1.0",
4
4
  "description": "{{description}}",
@@ -14,8 +14,8 @@
14
14
  "next": "^15.5.0",
15
15
  "react": "^19.0.0",
16
16
  "react-dom": "^19.0.0",
17
- "@digilogiclabs/platform-core": "^1.14.0",
18
- "@digilogiclabs/saas-factory-ui": "^1.8.1",
17
+ "@digilogiclabs/platform-core": "^1.17.3",
18
+ "@digilogiclabs/saas-factory-ui": "^1.27.0",
19
19
  "tailwindcss": "^4.1.0",
20
20
  "@tailwindcss/postcss": "^4.1.0",
21
21
  "clsx": "^2.1.0",
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "name": "{{packageName}}",
3
3
  "version": "0.1.0",
4
4
  "description": "{{description}} - IoT Dashboard",
@@ -14,9 +14,8 @@
14
14
  "next": "^15.5.0",
15
15
  "react": "^19.0.0",
16
16
  "react-dom": "^19.0.0",
17
- "@digilogiclabs/platform-core": "^1.14.0",
18
- "@digilogiclabs/app-sdk": "^1.1.0",
19
- "@digilogiclabs/saas-factory-ui": "^1.8.1",
17
+ "@digilogiclabs/platform-core": "^1.17.3",
18
+ "@digilogiclabs/saas-factory-ui": "^1.27.0",
20
19
  "tailwindcss": "^4.1.0",
21
20
  "@tailwindcss/postcss": "^4.1.0",
22
21
  "clsx": "^2.1.0",
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { ThemeProvider } from 'next-themes'
4
4
  import { Toaster } from '@digilogiclabs/saas-factory-ui'
5
- import { DLLProvider } from '@digilogiclabs/app-sdk'
6
5
 
7
6
  interface AppProvidersProps {
8
7
  children: React.ReactNode
@@ -11,10 +10,8 @@ interface AppProvidersProps {
11
10
  export function AppProviders({ children }: AppProvidersProps) {
12
11
  return (
13
12
  <ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
14
- <DLLProvider>
15
- {children}
16
- <Toaster />
17
- </DLLProvider>
13
+ {children}
14
+ <Toaster />
18
15
  </ThemeProvider>
19
16
  )
20
17
  }
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "name": "{{packageName}}",
3
3
  "version": "0.1.0",
4
4
  "description": "{{description}} - Multi-vendor Marketplace",
@@ -14,9 +14,8 @@
14
14
  "next": "^15.5.0",
15
15
  "react": "^19.0.0",
16
16
  "react-dom": "^19.0.0",
17
- "@digilogiclabs/platform-core": "^1.14.0",
18
- "@digilogiclabs/app-sdk": "^1.1.0",
19
- "@digilogiclabs/saas-factory-ui": "^1.8.1",
17
+ "@digilogiclabs/platform-core": "^1.17.3",
18
+ "@digilogiclabs/saas-factory-ui": "^1.27.0",
20
19
  "tailwindcss": "^4.1.0",
21
20
  "@tailwindcss/postcss": "^4.1.0",
22
21
  "clsx": "^2.1.0",
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { ThemeProvider } from 'next-themes'
4
4
  import { Toaster } from '@digilogiclabs/saas-factory-ui'
5
- import { DLLProvider } from '@digilogiclabs/app-sdk'
6
5
 
7
6
  interface AppProvidersProps {
8
7
  children: React.ReactNode
@@ -11,10 +10,8 @@ interface AppProvidersProps {
11
10
  export function AppProviders({ children }: AppProvidersProps) {
12
11
  return (
13
12
  <ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
14
- <DLLProvider>
15
- {children}
16
- <Toaster />
17
- </DLLProvider>
13
+ {children}
14
+ <Toaster />
18
15
  </ThemeProvider>
19
16
  )
20
17
  }
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "name": "{{packageName}}",
3
3
  "version": "0.1.0",
4
4
  "description": "{{description}} - Micro SaaS MVP",
@@ -14,9 +14,8 @@
14
14
  "next": "^15.5.0",
15
15
  "react": "^19.0.0",
16
16
  "react-dom": "^19.0.0",
17
- "@digilogiclabs/platform-core": "^1.14.0",
18
- "@digilogiclabs/app-sdk": "^1.1.0",
19
- "@digilogiclabs/saas-factory-ui": "^1.8.1",
17
+ "@digilogiclabs/platform-core": "^1.17.3",
18
+ "@digilogiclabs/saas-factory-ui": "^1.27.0",
20
19
  "tailwindcss": "^4.1.0",
21
20
  "@tailwindcss/postcss": "^4.1.0",
22
21
  "clsx": "^2.1.0",
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { ThemeProvider } from 'next-themes'
4
4
  import { Toaster } from '@digilogiclabs/saas-factory-ui'
5
- import { DLLProvider } from '@digilogiclabs/app-sdk'
6
5
 
7
6
  interface AppProvidersProps {
8
7
  children: React.ReactNode
@@ -11,10 +10,8 @@ interface AppProvidersProps {
11
10
  export function AppProviders({ children }: AppProvidersProps) {
12
11
  return (
13
12
  <ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
14
- <DLLProvider>
15
- {children}
16
- <Toaster />
17
- </DLLProvider>
13
+ {children}
14
+ <Toaster />
18
15
  </ThemeProvider>
19
16
  )
20
17
  }
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "name": "{{packageName}}",
3
3
  "version": "0.1.0",
4
4
  "description": "{{description}}",
@@ -14,8 +14,8 @@
14
14
  "next": "^15.5.0",
15
15
  "react": "^19.0.0",
16
16
  "react-dom": "^19.0.0",
17
- "@digilogiclabs/platform-core": "^1.14.0",
18
- "@digilogiclabs/saas-factory-ui": "^1.8.1",
17
+ "@digilogiclabs/platform-core": "^1.17.3",
18
+ "@digilogiclabs/saas-factory-ui": "^1.27.0",
19
19
  "tailwindcss": "^4.1.0",
20
20
  "@tailwindcss/postcss": "^4.1.0",
21
21
  "clsx": "^2.1.0",