@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.
- package/CHANGELOG.md +17 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.js +1870 -0
- package/dist/index.js.map +1 -0
- package/dist/templates/mobile/base/template/App.tsx +7 -4
- package/dist/templates/mobile/base/template/app/checkout.tsx +5 -2
- package/dist/templates/mobile/base/template/package.json +2 -2
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/_layout.tsx +6 -2
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/billing.tsx +7 -3
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/index.tsx +5 -2
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/profile.tsx +7 -2
- package/dist/templates/mobile/ui-auth-payments/template/app/_layout.tsx +2 -4
- package/dist/templates/mobile/ui-auth-payments/template/app/auth/login.tsx +6 -3
- package/dist/templates/mobile/ui-auth-payments/template/app/auth/signup.tsx +6 -3
- package/dist/templates/mobile/ui-auth-payments/template/package.json +2 -2
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/_layout.tsx +6 -2
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/billing.tsx +7 -3
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/index.tsx +5 -2
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/profile.tsx +7 -2
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/_layout.tsx +2 -4
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/auth/login.tsx +6 -3
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/auth/signup.tsx +6 -3
- package/dist/templates/mobile/ui-auth-payments-ai/template/package.json +2 -2
- package/dist/templates/shared/config/web/next.config.mjs +0 -1
- package/dist/templates/web/ai-platform/template/package.json +3 -4
- package/dist/templates/web/ai-platform/template/src/app/chat/page.tsx +5 -2
- package/dist/templates/web/ai-platform/template/src/app/playground/page.tsx +5 -2
- package/dist/templates/web/ai-platform/template/src/components/providers/app-providers.tsx +2 -5
- package/dist/templates/web/base/template/package.json +3 -3
- package/dist/templates/web/iot-dashboard/template/package.json +3 -4
- package/dist/templates/web/iot-dashboard/template/src/components/providers/app-providers.tsx +2 -5
- package/dist/templates/web/marketplace/template/package.json +3 -4
- package/dist/templates/web/marketplace/template/src/components/providers/app-providers.tsx +2 -5
- package/dist/templates/web/micro-saas/template/package.json +3 -4
- package/dist/templates/web/micro-saas/template/src/components/providers/app-providers.tsx +2 -5
- package/dist/templates/web/ui-auth/template/package.json +3 -3
- package/dist/templates/web/ui-auth-ai/template/package.json +3 -3
- package/dist/templates/web/ui-auth-payments/template/package.json +3 -3
- package/dist/templates/web/ui-auth-payments-ai/template/package.json +3 -3
- package/dist/templates/web/ui-auth-payments-audio/template/package.json +3 -3
- package/dist/templates/web/ui-auth-payments-video/template/package.json +3 -3
- package/dist/templates/web/ui-only/template/package.json +2 -2
- package/dist/templates/web/ui-package-test/template/package.json +3 -3
- package/package.json +1 -1
- package/src/templates/mobile/base/template/App.tsx +7 -4
- package/src/templates/mobile/base/template/app/checkout.tsx +5 -2
- package/src/templates/mobile/base/template/package.json +2 -2
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/_layout.tsx +6 -2
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/billing.tsx +7 -3
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/index.tsx +5 -2
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/profile.tsx +7 -2
- package/src/templates/mobile/ui-auth-payments/template/app/_layout.tsx +2 -4
- package/src/templates/mobile/ui-auth-payments/template/app/auth/login.tsx +6 -3
- package/src/templates/mobile/ui-auth-payments/template/app/auth/signup.tsx +6 -3
- package/src/templates/mobile/ui-auth-payments/template/package.json +2 -2
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/_layout.tsx +6 -2
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/billing.tsx +7 -3
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/index.tsx +5 -2
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/profile.tsx +7 -2
- package/src/templates/mobile/ui-auth-payments-ai/template/app/_layout.tsx +2 -4
- package/src/templates/mobile/ui-auth-payments-ai/template/app/auth/login.tsx +6 -3
- package/src/templates/mobile/ui-auth-payments-ai/template/app/auth/signup.tsx +6 -3
- package/src/templates/mobile/ui-auth-payments-ai/template/package.json +2 -2
- package/src/templates/shared/config/web/next.config.mjs +0 -1
- package/src/templates/web/ai-platform/template/package.json +3 -4
- package/src/templates/web/ai-platform/template/src/app/chat/page.tsx +5 -2
- package/src/templates/web/ai-platform/template/src/app/playground/page.tsx +5 -2
- package/src/templates/web/ai-platform/template/src/components/providers/app-providers.tsx +2 -5
- package/src/templates/web/base/template/package.json +3 -3
- package/src/templates/web/iot-dashboard/template/package.json +3 -4
- package/src/templates/web/iot-dashboard/template/src/components/providers/app-providers.tsx +2 -5
- package/src/templates/web/marketplace/template/package.json +3 -4
- package/src/templates/web/marketplace/template/src/components/providers/app-providers.tsx +2 -5
- package/src/templates/web/micro-saas/template/package.json +3 -4
- package/src/templates/web/micro-saas/template/src/components/providers/app-providers.tsx +2 -5
- package/src/templates/web/ui-auth/template/package.json +3 -3
- package/src/templates/web/ui-auth-ai/template/package.json +3 -3
- package/src/templates/web/ui-auth-payments/template/package.json +3 -3
- package/src/templates/web/ui-auth-payments-ai/template/package.json +3 -3
- package/src/templates/web/ui-auth-payments-audio/template/package.json +3 -3
- package/src/templates/web/ui-auth-payments-video/template/package.json +3 -3
- package/src/templates/web/ui-only/template/package.json +2 -2
- package/src/templates/web/ui-package-test/template/package.json +3 -3
- package/dist/cli/commands/add.d.ts +0 -6
- package/dist/cli/commands/add.d.ts.map +0 -1
- package/dist/cli/commands/add.js +0 -39
- package/dist/cli/commands/add.js.map +0 -1
- package/dist/cli/commands/create.d.ts +0 -49
- package/dist/cli/commands/create.d.ts.map +0 -1
- package/dist/cli/commands/create.js +0 -173
- package/dist/cli/commands/create.js.map +0 -1
- package/dist/cli/commands/index.d.ts +0 -4
- package/dist/cli/commands/index.d.ts.map +0 -1
- package/dist/cli/commands/index.js +0 -20
- package/dist/cli/commands/index.js.map +0 -1
- package/dist/cli/commands/update.d.ts +0 -6
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js +0 -68
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/cli/index.d.ts +0 -4
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -63
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/prompts/index.d.ts +0 -2
- package/dist/cli/prompts/index.d.ts.map +0 -1
- package/dist/cli/prompts/index.js +0 -18
- package/dist/cli/prompts/index.js.map +0 -1
- package/dist/cli/prompts/project-setup.d.ts +0 -5
- package/dist/cli/prompts/project-setup.d.ts.map +0 -1
- package/dist/cli/prompts/project-setup.js +0 -359
- package/dist/cli/prompts/project-setup.js.map +0 -1
- package/dist/cli/utils/git.d.ts +0 -9
- package/dist/cli/utils/git.d.ts.map +0 -1
- package/dist/cli/utils/git.js +0 -77
- package/dist/cli/utils/git.js.map +0 -1
- package/dist/cli/utils/index.d.ts +0 -5
- package/dist/cli/utils/index.d.ts.map +0 -1
- package/dist/cli/utils/index.js +0 -21
- package/dist/cli/utils/index.js.map +0 -1
- package/dist/cli/utils/logger.d.ts +0 -16
- package/dist/cli/utils/logger.d.ts.map +0 -1
- package/dist/cli/utils/logger.js +0 -55
- package/dist/cli/utils/logger.js.map +0 -1
- package/dist/cli/utils/package-manager.d.ts +0 -8
- package/dist/cli/utils/package-manager.d.ts.map +0 -1
- package/dist/cli/utils/package-manager.js +0 -92
- package/dist/cli/utils/package-manager.js.map +0 -1
- package/dist/cli/utils/spinner.d.ts +0 -7
- package/dist/cli/utils/spinner.d.ts.map +0 -1
- package/dist/cli/utils/spinner.js +0 -48
- package/dist/cli/utils/spinner.js.map +0 -1
- package/dist/cli/validators/dependencies.d.ts +0 -15
- package/dist/cli/validators/dependencies.d.ts.map +0 -1
- package/dist/cli/validators/dependencies.js +0 -108
- package/dist/cli/validators/dependencies.js.map +0 -1
- package/dist/cli/validators/index.d.ts +0 -3
- package/dist/cli/validators/index.d.ts.map +0 -1
- package/dist/cli/validators/index.js +0 -19
- package/dist/cli/validators/index.js.map +0 -1
- package/dist/cli/validators/project-name.d.ts +0 -5
- package/dist/cli/validators/project-name.d.ts.map +0 -1
- package/dist/cli/validators/project-name.js +0 -151
- package/dist/cli/validators/project-name.js.map +0 -1
- package/dist/generators/file-processor.d.ts +0 -28
- package/dist/generators/file-processor.d.ts.map +0 -1
- package/dist/generators/file-processor.js +0 -224
- package/dist/generators/file-processor.js.map +0 -1
- package/dist/generators/index.d.ts +0 -4
- package/dist/generators/index.d.ts.map +0 -1
- package/dist/generators/index.js +0 -20
- package/dist/generators/index.js.map +0 -1
- package/dist/generators/package-installer.d.ts +0 -29
- package/dist/generators/package-installer.d.ts.map +0 -1
- package/dist/generators/package-installer.js +0 -177
- package/dist/generators/package-installer.js.map +0 -1
- package/dist/generators/template-generator.d.ts +0 -86
- package/dist/generators/template-generator.d.ts.map +0 -1
- package/dist/generators/template-generator.js +0 -943
- 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}} - 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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
//
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
//
|
|
20
|
-
|
|
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
|
-
//
|
|
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
|
-
|
|
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
|
-
//
|
|
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
|
-
|
|
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.
|
|
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.
|
|
18
|
-
"@digilogiclabs/
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
15
|
-
|
|
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.
|
|
18
|
-
"@digilogiclabs/saas-factory-ui": "^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.
|
|
18
|
-
"@digilogiclabs/
|
|
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",
|
package/dist/templates/web/iot-dashboard/template/src/components/providers/app-providers.tsx
CHANGED
|
@@ -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
|
-
|
|
15
|
-
|
|
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.
|
|
18
|
-
"@digilogiclabs/
|
|
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
|
-
|
|
15
|
-
|
|
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.
|
|
18
|
-
"@digilogiclabs/
|
|
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
|
-
|
|
15
|
-
|
|
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.
|
|
18
|
-
"@digilogiclabs/saas-factory-ui": "^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}}",
|
|
@@ -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.
|
|
18
|
-
"@digilogiclabs/saas-factory-ui": "^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}}",
|
|
@@ -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.
|
|
18
|
-
"@digilogiclabs/saas-factory-ui": "^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}}",
|
|
@@ -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.
|
|
18
|
-
"@digilogiclabs/saas-factory-ui": "^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}}",
|
|
@@ -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.
|
|
18
|
-
"@digilogiclabs/saas-factory-ui": "^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}}",
|
|
@@ -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.
|
|
18
|
-
"@digilogiclabs/saas-factory-ui": "^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}}",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"next": "^15.5.0",
|
|
15
15
|
"react": "^19.0.0",
|
|
16
16
|
"react-dom": "^19.0.0",
|
|
17
|
-
"@digilogiclabs/saas-factory-ui": "^1.
|
|
17
|
+
"@digilogiclabs/saas-factory-ui": "^1.27.0",
|
|
18
18
|
"tailwindcss": "^4.1.0",
|
|
19
19
|
"@tailwindcss/postcss": "^4.1.0",
|
|
20
20
|
"clsx": "^2.1.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
2
|
"name": "{{packageName}}",
|
|
3
3
|
"version": "0.1.0",
|
|
4
|
-
"description": "{{description}}
|
|
4
|
+
"description": "{{description}} — UI package test app",
|
|
5
5
|
"private": true,
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "next dev",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"next": "^15.5.0",
|
|
15
15
|
"react": "^19.0.0",
|
|
16
16
|
"react-dom": "^19.0.0",
|
|
17
|
-
"@digilogiclabs/saas-factory-ui": "^1.
|
|
17
|
+
"@digilogiclabs/saas-factory-ui": "^1.27.0",
|
|
18
18
|
"tailwindcss": "^4.1.0",
|
|
19
19
|
"@tailwindcss/postcss": "^4.1.0",
|
|
20
20
|
"clsx": "^2.1.0",
|
package/package.json
CHANGED
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { StatusBar } from 'expo-status-bar';
|
|
3
3
|
import { StyleSheet, Text, View, Button } from 'react-native';
|
|
4
4
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
5
|
-
|
|
5
|
+
// TODO: Replace with direct @digilogiclabs/saas-factory-auth usage
|
|
6
|
+
// import { DLLProvider, useAuth } from '@digilogiclabs/app-sdk';
|
|
6
7
|
import { StripeProvider } from '@stripe/stripe-react-native';
|
|
7
8
|
import { Link, Slot } from 'expo-router';
|
|
8
9
|
import {
|
|
@@ -17,7 +18,10 @@ import {
|
|
|
17
18
|
} from '@digilogiclabs/saas-factory-ui/native';
|
|
18
19
|
|
|
19
20
|
function AppContent() {
|
|
20
|
-
|
|
21
|
+
// TODO: Replace with direct auth provider hook
|
|
22
|
+
// const { user, signOut } = useAuth();
|
|
23
|
+
const user = null as any; // placeholder — wire up your auth provider
|
|
24
|
+
const signOut = async () => { throw new Error('Wire up auth provider'); };
|
|
21
25
|
const networkInfo = useNetworkInfo();
|
|
22
26
|
const isOnline = useOfflineState();
|
|
23
27
|
|
|
@@ -99,14 +103,13 @@ function AppContent() {
|
|
|
99
103
|
export default function App() {
|
|
100
104
|
return (
|
|
101
105
|
<SafeAreaProvider>
|
|
102
|
-
|
|
106
|
+
{/* TODO: Replace DLLProvider with direct auth/payments provider setup */}
|
|
103
107
|
<StripeProvider
|
|
104
108
|
publishableKey={process.env.EXPO_PUBLIC_STRIPE_PUBLISHABLE_KEY!}
|
|
105
109
|
merchantIdentifier="merchant.com.{{packageName}}.app"
|
|
106
110
|
>
|
|
107
111
|
<AppContent />
|
|
108
112
|
</StripeProvider>
|
|
109
|
-
</DLLProvider>
|
|
110
113
|
</SafeAreaProvider>
|
|
111
114
|
);
|
|
112
115
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, Button } from 'react-native';
|
|
3
|
-
|
|
3
|
+
// TODO: Replace with direct @digilogiclabs/saas-factory-payments usage
|
|
4
|
+
// import { usePayments } from '@digilogiclabs/app-sdk';
|
|
4
5
|
|
|
5
6
|
export default function CheckoutScreen() {
|
|
6
|
-
|
|
7
|
+
// TODO: Replace with direct payments provider hook
|
|
8
|
+
// const { handleCheckout } = usePayments();
|
|
9
|
+
const handleCheckout = async (_opts: any) => { throw new Error('Wire up payments provider'); };
|
|
7
10
|
|
|
8
11
|
const onCheckout = async () => {
|
|
9
12
|
await handleCheckout({
|