@digilogiclabs/create-saas-app 2.3.0 → 2.5.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 +9 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/generators/template-generator.d.ts.map +1 -1
- package/dist/generators/template-generator.js +6 -15
- package/dist/generators/template-generator.js.map +1 -1
- package/dist/templates/mobile/base/template/App.tsx +8 -13
- package/dist/templates/mobile/base/template/app/(auth)/login.tsx +1 -2
- package/dist/templates/mobile/base/template/app/(auth)/signup.tsx +1 -2
- package/dist/templates/mobile/base/template/app/checkout.tsx +2 -2
- package/dist/templates/mobile/base/template/package.json +1 -3
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/_layout.tsx +1 -1
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/billing.tsx +1 -1
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/index.tsx +1 -1
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/profile.tsx +1 -1
- package/dist/templates/mobile/ui-auth-payments/template/app/_layout.tsx +4 -14
- package/dist/templates/mobile/ui-auth-payments/template/app/auth/login.tsx +1 -1
- package/dist/templates/mobile/ui-auth-payments/template/app/auth/signup.tsx +1 -1
- package/dist/templates/mobile/ui-auth-payments/template/package.json +2 -4
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/_layout.tsx +1 -1
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/billing.tsx +1 -1
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/index.tsx +1 -1
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/profile.tsx +1 -1
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/_layout.tsx +4 -14
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/auth/login.tsx +1 -1
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/auth/signup.tsx +1 -1
- package/dist/templates/mobile/ui-auth-payments-ai/template/package.json +1 -3
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/app/_layout.tsx +5 -15
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/package.json +1 -3
- package/dist/templates/web/ai-platform/template/package.json +2 -4
- package/dist/templates/web/ai-platform/template/src/app/error.tsx +75 -0
- package/dist/templates/web/ai-platform/template/src/app/loading.tsx +71 -0
- package/dist/templates/web/ai-platform/template/src/app/page.tsx +24 -20
- package/dist/templates/web/base/template/package.json +2 -4
- package/dist/templates/web/base/template/src/app/checkout/page.tsx +2 -2
- package/dist/templates/web/base/template/src/app/dashboard/page.tsx +1 -1
- package/dist/templates/web/base/template/src/app/login/page.tsx +1 -2
- package/dist/templates/web/base/template/src/app/page.tsx +1 -1
- package/dist/templates/web/base/template/src/app/signup/page.tsx +1 -2
- package/dist/templates/web/base/template/src/components/providers/app-providers.tsx +14 -19
- package/dist/templates/web/base/template/src/components/shared/header.tsx +1 -1
- package/dist/templates/web/base/template/src/lib/platform.ts +0 -25
- package/dist/templates/web/base/template/src/test/setup.ts +3 -8
- package/dist/templates/web/iot-dashboard/template/package.json +2 -3
- package/dist/templates/web/iot-dashboard/template/src/app/dashboard/page.tsx +6 -11
- package/dist/templates/web/iot-dashboard/template/src/app/error.tsx +75 -0
- package/dist/templates/web/iot-dashboard/template/src/app/loading.tsx +78 -0
- package/dist/templates/web/iot-dashboard/template/src/app/page.tsx +6 -8
- package/dist/templates/web/marketplace/template/package.json +2 -4
- package/dist/templates/web/marketplace/template/src/app/error.tsx +75 -0
- package/dist/templates/web/marketplace/template/src/app/loading.tsx +57 -0
- package/dist/templates/web/marketplace/template/src/app/page.tsx +13 -11
- package/dist/templates/web/micro-saas/template/package.json +2 -3
- package/dist/templates/web/micro-saas/template/src/app/error.tsx +75 -0
- package/dist/templates/web/micro-saas/template/src/app/loading.tsx +39 -0
- package/dist/templates/web/ui-auth/template/.claude +1 -1
- package/dist/templates/web/ui-auth/template/context.md +5 -5
- package/dist/templates/web/ui-auth/template/package.json +2 -3
- package/dist/templates/web/ui-auth/template/src/app/dev-setup/page.tsx +3 -3
- package/dist/templates/web/ui-auth/template/src/app/login/page.tsx +1 -1
- package/dist/templates/web/ui-auth/template/src/app/page.tsx +1 -1
- package/dist/templates/web/ui-auth/template/src/app/signup/page.tsx +1 -1
- package/dist/templates/web/ui-auth/template/src/components/providers/app-providers.tsx +3 -3
- package/dist/templates/web/ui-auth/template/src/lib/platform.ts +0 -16
- package/dist/templates/web/ui-auth/template/src/test/setup.ts +3 -8
- package/dist/templates/web/ui-auth-ai/template/package.json +1 -2
- package/dist/templates/web/ui-auth-payments/template/package.json +2 -4
- package/dist/templates/web/ui-auth-payments/template/src/app/billing/page.tsx +2 -1
- package/dist/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +2 -1
- package/dist/templates/web/ui-auth-payments/template/src/app/dev-setup/page.tsx +3 -3
- package/dist/templates/web/ui-auth-payments/template/src/app/login/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments/template/src/app/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments/template/src/components/client/auth-status.tsx +1 -1
- package/dist/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +1 -1
- package/dist/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +1 -1
- package/dist/templates/web/ui-auth-payments/template/src/components/providers/app-providers.tsx +7 -10
- package/dist/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +1 -1
- package/dist/templates/web/ui-auth-payments/template/src/lib/platform.ts +0 -25
- package/dist/templates/web/ui-auth-payments/template/src/test/setup.ts +3 -8
- package/dist/templates/web/ui-auth-payments-ai/template/.claude +1 -1
- package/dist/templates/web/ui-auth-payments-ai/template/context.md +11 -11
- package/dist/templates/web/ui-auth-payments-ai/template/package.json +2 -4
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/ai/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/billing/page.tsx +2 -1
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/checkout/page.tsx +2 -1
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/dev-setup/page.tsx +3 -3
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/onboarding/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/settings/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/auth-status.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/login-form.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/signup-form.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/providers/app-providers.tsx +7 -10
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/shared/header.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-ai/template/src/lib/platform.ts +0 -18
- package/dist/templates/web/ui-auth-payments-ai/template/src/test/setup.ts +3 -8
- package/dist/templates/web/ui-auth-payments-ai-rag/template/package.json +1 -3
- package/dist/templates/web/ui-auth-payments-ai-rag/template/src/app/ai/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-audio/template/package.json +1 -3
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/billing/page.tsx +2 -1
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/checkout/page.tsx +2 -1
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/auth-status.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +7 -10
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-audio/template/src/test/setup.ts +3 -8
- package/dist/templates/web/ui-auth-payments-video/template/package.json +1 -3
- package/dist/templates/web/ui-auth-payments-video/template/src/app/billing/page.tsx +2 -1
- package/dist/templates/web/ui-auth-payments-video/template/src/app/checkout/page.tsx +2 -1
- package/dist/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-video/template/src/app/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-video/template/src/components/providers/app-providers.tsx +7 -10
- package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-video/template/src/test/setup.ts +3 -8
- package/dist/templates/web/ui-only/template/package.json +1 -1
- package/dist/templates/web/ui-only/template/src/test/setup.ts +3 -8
- package/dist/templates/web/ui-package-test/template/package.json +1 -1
- package/package.json +1 -1
- package/src/templates/mobile/base/template/App.tsx +8 -13
- package/src/templates/mobile/base/template/app/(auth)/login.tsx +1 -2
- package/src/templates/mobile/base/template/app/(auth)/signup.tsx +1 -2
- package/src/templates/mobile/base/template/app/checkout.tsx +2 -2
- package/src/templates/mobile/base/template/package.json +1 -3
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/_layout.tsx +1 -1
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/billing.tsx +1 -1
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/index.tsx +1 -1
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/profile.tsx +1 -1
- package/src/templates/mobile/ui-auth-payments/template/app/_layout.tsx +4 -14
- package/src/templates/mobile/ui-auth-payments/template/app/auth/login.tsx +1 -1
- package/src/templates/mobile/ui-auth-payments/template/app/auth/signup.tsx +1 -1
- package/src/templates/mobile/ui-auth-payments/template/package.json +2 -4
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/_layout.tsx +1 -1
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/billing.tsx +1 -1
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/index.tsx +1 -1
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/profile.tsx +1 -1
- package/src/templates/mobile/ui-auth-payments-ai/template/app/_layout.tsx +4 -14
- package/src/templates/mobile/ui-auth-payments-ai/template/app/auth/login.tsx +1 -1
- package/src/templates/mobile/ui-auth-payments-ai/template/app/auth/signup.tsx +1 -1
- package/src/templates/mobile/ui-auth-payments-ai/template/package.json +1 -3
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/app/_layout.tsx +5 -15
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/package.json +1 -3
- package/src/templates/web/ai-platform/template/package.json +2 -4
- package/src/templates/web/ai-platform/template/src/app/error.tsx +75 -0
- package/src/templates/web/ai-platform/template/src/app/loading.tsx +71 -0
- package/src/templates/web/ai-platform/template/src/app/page.tsx +24 -20
- package/src/templates/web/base/template/package.json +2 -4
- package/src/templates/web/base/template/src/app/checkout/page.tsx +2 -2
- package/src/templates/web/base/template/src/app/dashboard/page.tsx +1 -1
- package/src/templates/web/base/template/src/app/login/page.tsx +1 -2
- package/src/templates/web/base/template/src/app/page.tsx +1 -1
- package/src/templates/web/base/template/src/app/signup/page.tsx +1 -2
- package/src/templates/web/base/template/src/components/providers/app-providers.tsx +14 -19
- package/src/templates/web/base/template/src/components/shared/header.tsx +1 -1
- package/src/templates/web/base/template/src/lib/platform.ts +0 -25
- package/src/templates/web/base/template/src/test/setup.ts +3 -8
- package/src/templates/web/iot-dashboard/template/package.json +2 -3
- package/src/templates/web/iot-dashboard/template/src/app/dashboard/page.tsx +6 -11
- package/src/templates/web/iot-dashboard/template/src/app/error.tsx +75 -0
- package/src/templates/web/iot-dashboard/template/src/app/loading.tsx +78 -0
- package/src/templates/web/iot-dashboard/template/src/app/page.tsx +6 -8
- package/src/templates/web/marketplace/template/package.json +2 -4
- package/src/templates/web/marketplace/template/src/app/error.tsx +75 -0
- package/src/templates/web/marketplace/template/src/app/loading.tsx +57 -0
- package/src/templates/web/marketplace/template/src/app/page.tsx +13 -11
- package/src/templates/web/micro-saas/template/package.json +2 -3
- package/src/templates/web/micro-saas/template/src/app/error.tsx +75 -0
- package/src/templates/web/micro-saas/template/src/app/loading.tsx +39 -0
- package/src/templates/web/ui-auth/template/.claude +1 -1
- package/src/templates/web/ui-auth/template/context.md +5 -5
- package/src/templates/web/ui-auth/template/package.json +2 -3
- package/src/templates/web/ui-auth/template/src/app/dev-setup/page.tsx +3 -3
- package/src/templates/web/ui-auth/template/src/app/login/page.tsx +1 -1
- package/src/templates/web/ui-auth/template/src/app/page.tsx +1 -1
- package/src/templates/web/ui-auth/template/src/app/signup/page.tsx +1 -1
- package/src/templates/web/ui-auth/template/src/components/providers/app-providers.tsx +3 -3
- package/src/templates/web/ui-auth/template/src/lib/platform.ts +0 -16
- package/src/templates/web/ui-auth/template/src/test/setup.ts +3 -8
- package/src/templates/web/ui-auth-ai/template/package.json +1 -2
- package/src/templates/web/ui-auth-payments/template/package.json +2 -4
- package/src/templates/web/ui-auth-payments/template/src/app/billing/page.tsx +2 -1
- package/src/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +2 -1
- package/src/templates/web/ui-auth-payments/template/src/app/dev-setup/page.tsx +3 -3
- package/src/templates/web/ui-auth-payments/template/src/app/login/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments/template/src/app/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments/template/src/components/client/auth-status.tsx +1 -1
- package/src/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +1 -1
- package/src/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +1 -1
- package/src/templates/web/ui-auth-payments/template/src/components/providers/app-providers.tsx +7 -10
- package/src/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +1 -1
- package/src/templates/web/ui-auth-payments/template/src/lib/platform.ts +0 -25
- package/src/templates/web/ui-auth-payments/template/src/test/setup.ts +3 -8
- package/src/templates/web/ui-auth-payments-ai/template/.claude +1 -1
- package/src/templates/web/ui-auth-payments-ai/template/context.md +11 -11
- package/src/templates/web/ui-auth-payments-ai/template/package.json +2 -4
- package/src/templates/web/ui-auth-payments-ai/template/src/app/ai/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments-ai/template/src/app/billing/page.tsx +2 -1
- package/src/templates/web/ui-auth-payments-ai/template/src/app/checkout/page.tsx +2 -1
- package/src/templates/web/ui-auth-payments-ai/template/src/app/dev-setup/page.tsx +3 -3
- package/src/templates/web/ui-auth-payments-ai/template/src/app/onboarding/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments-ai/template/src/app/settings/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments-ai/template/src/components/client/auth-status.tsx +1 -1
- package/src/templates/web/ui-auth-payments-ai/template/src/components/client/login-form.tsx +1 -1
- package/src/templates/web/ui-auth-payments-ai/template/src/components/client/signup-form.tsx +1 -1
- package/src/templates/web/ui-auth-payments-ai/template/src/components/providers/app-providers.tsx +7 -10
- package/src/templates/web/ui-auth-payments-ai/template/src/components/shared/header.tsx +1 -1
- package/src/templates/web/ui-auth-payments-ai/template/src/lib/platform.ts +0 -18
- package/src/templates/web/ui-auth-payments-ai/template/src/test/setup.ts +3 -8
- package/src/templates/web/ui-auth-payments-ai-rag/template/package.json +1 -3
- package/src/templates/web/ui-auth-payments-ai-rag/template/src/app/ai/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments-audio/template/package.json +1 -3
- package/src/templates/web/ui-auth-payments-audio/template/src/app/billing/page.tsx +2 -1
- package/src/templates/web/ui-auth-payments-audio/template/src/app/checkout/page.tsx +2 -1
- package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments-audio/template/src/components/client/auth-status.tsx +1 -1
- package/src/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +1 -1
- package/src/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +1 -1
- package/src/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +7 -10
- package/src/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +1 -1
- package/src/templates/web/ui-auth-payments-audio/template/src/test/setup.ts +3 -8
- package/src/templates/web/ui-auth-payments-video/template/package.json +1 -3
- package/src/templates/web/ui-auth-payments-video/template/src/app/billing/page.tsx +2 -1
- package/src/templates/web/ui-auth-payments-video/template/src/app/checkout/page.tsx +2 -1
- package/src/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments-video/template/src/app/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments-video/template/src/components/providers/app-providers.tsx +7 -10
- package/src/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +1 -1
- package/src/templates/web/ui-auth-payments-video/template/src/test/setup.ts +3 -8
- package/src/templates/web/ui-only/template/package.json +1 -1
- package/src/templates/web/ui-only/template/src/test/setup.ts +3 -8
- package/src/templates/web/ui-package-test/template/package.json +1 -1
- package/src/templates/web/base/template.backup/.env.example +0 -15
- package/src/templates/web/ui-auth/template.backup/.env.example +0 -15
- package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx.backup +0 -391
- package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx.bak +0 -391
- package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx.backup +0 -391
- package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx.bak +0 -391
- package/src/templates/web/ui-only/template.backup/.env.example +0 -15
|
@@ -15,8 +15,8 @@ vi.mock('next/navigation', () => ({
|
|
|
15
15
|
usePathname: () => '/',
|
|
16
16
|
}))
|
|
17
17
|
|
|
18
|
-
// Mock
|
|
19
|
-
vi.mock('@digilogiclabs/
|
|
18
|
+
// Mock App SDK (optional - only if testing auth/payment components)
|
|
19
|
+
vi.mock('@digilogiclabs/app-sdk', () => ({
|
|
20
20
|
useAuth: () => ({
|
|
21
21
|
user: null,
|
|
22
22
|
loading: false,
|
|
@@ -26,18 +26,13 @@ vi.mock('@digilogiclabs/saas-factory-auth', () => ({
|
|
|
26
26
|
signOut: vi.fn(),
|
|
27
27
|
signInWithOAuth: vi.fn(),
|
|
28
28
|
}),
|
|
29
|
-
AuthProvider: ({ children }: { children: React.ReactNode }) => children,
|
|
30
|
-
}))
|
|
31
|
-
|
|
32
|
-
// Mock SaaS Factory Payments (optional - only if testing payment components)
|
|
33
|
-
vi.mock('@digilogiclabs/saas-factory-payments', () => ({
|
|
34
29
|
usePayments: () => ({
|
|
35
30
|
createCheckoutSession: vi.fn(),
|
|
36
31
|
createPortalSession: vi.fn(),
|
|
37
32
|
subscription: null,
|
|
38
33
|
loading: false,
|
|
39
34
|
}),
|
|
40
|
-
|
|
35
|
+
DLLProvider: ({ children }: { children: React.ReactNode }) => children,
|
|
41
36
|
}))
|
|
42
37
|
|
|
43
38
|
// Global test utilities
|
|
@@ -17,9 +17,7 @@
|
|
|
17
17
|
"next": "^15.0.0",
|
|
18
18
|
"react": "^19.0.0",
|
|
19
19
|
"react-dom": "^19.0.0",
|
|
20
|
-
"@digilogiclabs/saas-factory-ui": "^
|
|
21
|
-
"@digilogiclabs/saas-factory-auth": "^1.0.3",
|
|
22
|
-
"@digilogiclabs/saas-factory-payments": "^1.2.3",
|
|
20
|
+
"@digilogiclabs/saas-factory-ui": "^1.4.0",
|
|
23
21
|
"stripe": "^14.0.0",
|
|
24
22
|
"@stripe/react-stripe-js": "^2.0.0",
|
|
25
23
|
"@stripe/stripe-js": "^2.0.0",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { usePayments
|
|
4
|
+
import { usePayments } from '@digilogiclabs/app-sdk';
|
|
5
|
+
import { formatCurrency, formatDate } from '@/lib/utils';
|
|
5
6
|
import { Button, Card } from '@digilogiclabs/saas-factory-ui';
|
|
6
7
|
|
|
7
8
|
export default function BillingPage() {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { usePayments
|
|
4
|
+
import { usePayments } from '@digilogiclabs/app-sdk';
|
|
5
|
+
import { formatCurrency } from '@/lib/utils';
|
|
5
6
|
import { Button, Card } from '@digilogiclabs/saas-factory-ui';
|
|
6
7
|
|
|
7
8
|
export default function CheckoutPage() {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
4
|
import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui';
|
|
5
|
-
import { useAuth } from '@digilogiclabs/
|
|
5
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
6
6
|
import { useRouter } from 'next/navigation';
|
|
7
7
|
|
|
8
8
|
export default function LoginPage() {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
useOfflineState
|
|
18
18
|
} from '@digilogiclabs/saas-factory-ui'
|
|
19
19
|
import { ArrowRight, Zap, Shield, Rocket, CheckCircle, LogOut, User, Video, Wifi, WifiOff, Play, Pause } from 'lucide-react'
|
|
20
|
-
import { useAuth } from '@digilogiclabs/
|
|
20
|
+
import { useAuth } from '@digilogiclabs/app-sdk'
|
|
21
21
|
import Link from 'next/link'
|
|
22
22
|
import { useState } from 'react'
|
|
23
23
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
4
|
import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui';
|
|
5
|
-
import { useAuth } from '@digilogiclabs/
|
|
5
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
6
6
|
import { useRouter } from 'next/navigation';
|
|
7
7
|
|
|
8
8
|
export default function SignupPage() {
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react'
|
|
4
4
|
import { ThemeProvider } from 'next-themes'
|
|
5
|
-
import {
|
|
6
|
-
import { PaymentsProvider } from '@digilogiclabs/saas-factory-payments'
|
|
5
|
+
import { DLLProvider } from '@digilogiclabs/app-sdk'
|
|
7
6
|
import { Toaster } from '@digilogiclabs/saas-factory-ui'
|
|
8
7
|
import { AppThemeProvider } from './theme-provider'
|
|
9
8
|
|
|
@@ -20,14 +19,12 @@ export function AppProviders({ children }: AppProvidersProps) {
|
|
|
20
19
|
disableTransitionOnChange
|
|
21
20
|
storageKey="{{packageName}}-theme"
|
|
22
21
|
>
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</PaymentsProvider>
|
|
30
|
-
</AuthProvider>
|
|
22
|
+
<DLLProvider>
|
|
23
|
+
<AppThemeProvider themeColor="{{themeColor}}">
|
|
24
|
+
{children}
|
|
25
|
+
<Toaster />
|
|
26
|
+
</AppThemeProvider>
|
|
27
|
+
</DLLProvider>
|
|
31
28
|
</ThemeProvider>
|
|
32
29
|
)
|
|
33
30
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
4
|
import Link from 'next/link';
|
|
5
5
|
import { LogOut, CreditCard, User, Settings, Home, Video, Film, Play, Menu, X } from 'lucide-react';
|
|
6
|
-
import { useAuth } from '@digilogiclabs/
|
|
6
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
7
7
|
import {
|
|
8
8
|
ResponsiveHeader,
|
|
9
9
|
MobileNavigation,
|
|
@@ -15,8 +15,8 @@ vi.mock('next/navigation', () => ({
|
|
|
15
15
|
usePathname: () => '/',
|
|
16
16
|
}))
|
|
17
17
|
|
|
18
|
-
// Mock
|
|
19
|
-
vi.mock('@digilogiclabs/
|
|
18
|
+
// Mock App SDK (optional - only if testing auth/payment components)
|
|
19
|
+
vi.mock('@digilogiclabs/app-sdk', () => ({
|
|
20
20
|
useAuth: () => ({
|
|
21
21
|
user: null,
|
|
22
22
|
loading: false,
|
|
@@ -26,18 +26,13 @@ vi.mock('@digilogiclabs/saas-factory-auth', () => ({
|
|
|
26
26
|
signOut: vi.fn(),
|
|
27
27
|
signInWithOAuth: vi.fn(),
|
|
28
28
|
}),
|
|
29
|
-
AuthProvider: ({ children }: { children: React.ReactNode }) => children,
|
|
30
|
-
}))
|
|
31
|
-
|
|
32
|
-
// Mock SaaS Factory Payments (optional - only if testing payment components)
|
|
33
|
-
vi.mock('@digilogiclabs/saas-factory-payments', () => ({
|
|
34
29
|
usePayments: () => ({
|
|
35
30
|
createCheckoutSession: vi.fn(),
|
|
36
31
|
createPortalSession: vi.fn(),
|
|
37
32
|
subscription: null,
|
|
38
33
|
loading: false,
|
|
39
34
|
}),
|
|
40
|
-
|
|
35
|
+
DLLProvider: ({ children }: { children: React.ReactNode }) => children,
|
|
41
36
|
}))
|
|
42
37
|
|
|
43
38
|
// Global test utilities
|
|
@@ -15,8 +15,8 @@ vi.mock('next/navigation', () => ({
|
|
|
15
15
|
usePathname: () => '/',
|
|
16
16
|
}))
|
|
17
17
|
|
|
18
|
-
// Mock
|
|
19
|
-
vi.mock('@digilogiclabs/
|
|
18
|
+
// Mock App SDK (optional - only if testing auth/payment components)
|
|
19
|
+
vi.mock('@digilogiclabs/app-sdk', () => ({
|
|
20
20
|
useAuth: () => ({
|
|
21
21
|
user: null,
|
|
22
22
|
loading: false,
|
|
@@ -26,18 +26,13 @@ vi.mock('@digilogiclabs/saas-factory-auth', () => ({
|
|
|
26
26
|
signOut: vi.fn(),
|
|
27
27
|
signInWithOAuth: vi.fn(),
|
|
28
28
|
}),
|
|
29
|
-
AuthProvider: ({ children }: { children: React.ReactNode }) => children,
|
|
30
|
-
}))
|
|
31
|
-
|
|
32
|
-
// Mock SaaS Factory Payments (optional - only if testing payment components)
|
|
33
|
-
vi.mock('@digilogiclabs/saas-factory-payments', () => ({
|
|
34
29
|
usePayments: () => ({
|
|
35
30
|
createCheckoutSession: vi.fn(),
|
|
36
31
|
createPortalSession: vi.fn(),
|
|
37
32
|
subscription: null,
|
|
38
33
|
loading: false,
|
|
39
34
|
}),
|
|
40
|
-
|
|
35
|
+
DLLProvider: ({ children }: { children: React.ReactNode }) => children,
|
|
41
36
|
}))
|
|
42
37
|
|
|
43
38
|
// Global test utilities
|
package/package.json
CHANGED
|
@@ -2,8 +2,7 @@ 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
|
-
import {
|
|
6
|
-
import { PaymentsProvider } from '@digilogiclabs/saas-factory-payments/native';
|
|
5
|
+
import { DLLProvider, useAuth } from '@digilogiclabs/app-sdk';
|
|
7
6
|
import { StripeProvider } from '@stripe/stripe-react-native';
|
|
8
7
|
import { Link, Slot } from 'expo-router';
|
|
9
8
|
import {
|
|
@@ -100,18 +99,14 @@ function AppContent() {
|
|
|
100
99
|
export default function App() {
|
|
101
100
|
return (
|
|
102
101
|
<SafeAreaProvider>
|
|
103
|
-
<
|
|
104
|
-
<
|
|
105
|
-
|
|
102
|
+
<DLLProvider>
|
|
103
|
+
<StripeProvider
|
|
104
|
+
publishableKey={process.env.EXPO_PUBLIC_STRIPE_PUBLISHABLE_KEY!}
|
|
105
|
+
merchantIdentifier="merchant.com.{{packageName}}.app"
|
|
106
106
|
>
|
|
107
|
-
<
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
>
|
|
111
|
-
<AppContent />
|
|
112
|
-
</StripeProvider>
|
|
113
|
-
</PaymentsProvider>
|
|
114
|
-
</AuthProvider>
|
|
107
|
+
<AppContent />
|
|
108
|
+
</StripeProvider>
|
|
109
|
+
</DLLProvider>
|
|
115
110
|
</SafeAreaProvider>
|
|
116
111
|
);
|
|
117
112
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LoginForm } from '@digilogiclabs/saas-factory-ui/native';
|
|
2
|
-
import { AuthProvider } from '@digilogiclabs/saas-factory-auth/native';
|
|
3
2
|
import { createBrowserClient } from '@supabase/ssr';
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import { View } from 'react-native';
|
|
@@ -37,7 +36,7 @@ export default function LoginPage() {
|
|
|
37
36
|
<LoginForm
|
|
38
37
|
onSubmit={handleLogin}
|
|
39
38
|
onGoogleSignIn={handleGoogleLogin}
|
|
40
|
-
authProvider=
|
|
39
|
+
authProvider="supabase"
|
|
41
40
|
/>
|
|
42
41
|
</View>
|
|
43
42
|
);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SignupForm } from '@digilogiclabs/saas-factory-ui/native';
|
|
2
|
-
import { AuthProvider } from '@digilogiclabs/saas-factory-auth/native';
|
|
3
2
|
import { createBrowserClient } from '@supabase/ssr';
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import { View } from 'react-native';
|
|
@@ -36,7 +35,7 @@ export default function SignupPage() {
|
|
|
36
35
|
<SignupForm
|
|
37
36
|
onSubmit={handleSignup}
|
|
38
37
|
onGoogleSignIn={handleGoogleSignup}
|
|
39
|
-
authProvider=
|
|
38
|
+
authProvider="supabase"
|
|
40
39
|
/>
|
|
41
40
|
</View>
|
|
42
41
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, Button } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { usePayments } from '@digilogiclabs/app-sdk';
|
|
4
4
|
|
|
5
5
|
export default function CheckoutScreen() {
|
|
6
|
-
const { handleCheckout } =
|
|
6
|
+
const { handleCheckout } = usePayments();
|
|
7
7
|
|
|
8
8
|
const onCheckout = async () => {
|
|
9
9
|
await handleCheckout({
|
|
@@ -22,9 +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": "^
|
|
26
|
-
"@digilogiclabs/saas-factory-auth": "^1.0.5",
|
|
27
|
-
"@digilogiclabs/saas-factory-payments": "^1.2.7",
|
|
25
|
+
"@digilogiclabs/saas-factory-ui": "^1.4.0",
|
|
28
26
|
"firebase": "^10.0.0",
|
|
29
27
|
"@supabase/supabase-js": "^2.0.0",
|
|
30
28
|
"@react-native-community/netinfo": "^11.0.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
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/
|
|
4
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
5
5
|
import { Redirect } from 'expo-router';
|
|
6
6
|
|
|
7
7
|
// UI Components - Updated for v0.22.0
|
|
@@ -1,6 +1,6 @@
|
|
|
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/
|
|
3
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
4
4
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
5
5
|
import { BlurView } from 'expo-blur';
|
|
6
6
|
import * as Haptics from 'expo-haptics';
|
|
@@ -1,7 +1,7 @@
|
|
|
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/
|
|
4
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
5
5
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
6
6
|
import { BlurView } from 'expo-blur';
|
|
7
7
|
import * as Haptics from 'expo-haptics';
|
|
@@ -16,11 +16,8 @@ import {
|
|
|
16
16
|
AppShell
|
|
17
17
|
} from '@digilogiclabs/saas-factory-ui/native';
|
|
18
18
|
|
|
19
|
-
//
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
// Payments Provider
|
|
23
|
-
import { PaymentsProvider } from '@digilogiclabs/saas-factory-payments/native';
|
|
19
|
+
// App SDK Provider
|
|
20
|
+
import { DLLProvider } from '@digilogiclabs/app-sdk';
|
|
24
21
|
|
|
25
22
|
// Prevent the splash screen from auto-hiding before asset loading is complete
|
|
26
23
|
SplashScreen.preventAutoHideAsync();
|
|
@@ -56,13 +53,7 @@ export default function RootLayout() {
|
|
|
56
53
|
backgroundSync={true}
|
|
57
54
|
>
|
|
58
55
|
<NetworkAwareContent>
|
|
59
|
-
<
|
|
60
|
-
supabaseUrl={process.env.EXPO_PUBLIC_SUPABASE_URL!}
|
|
61
|
-
supabaseAnonKey={process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY!}
|
|
62
|
-
>
|
|
63
|
-
<PaymentsProvider
|
|
64
|
-
apiUrl={process.env.EXPO_PUBLIC_API_URL || 'http://localhost:3000'}
|
|
65
|
-
>
|
|
56
|
+
<DLLProvider>
|
|
66
57
|
<StripeProvider
|
|
67
58
|
publishableKey={process.env.EXPO_PUBLIC_STRIPE_PUBLISHABLE_KEY!}
|
|
68
59
|
merchantIdentifier="merchant.com.{{packageName}}.app"
|
|
@@ -122,8 +113,7 @@ export default function RootLayout() {
|
|
|
122
113
|
<Toast />
|
|
123
114
|
<StatusBar style="auto" />
|
|
124
115
|
</StripeProvider>
|
|
125
|
-
|
|
126
|
-
</AuthProvider>
|
|
116
|
+
</DLLProvider>
|
|
127
117
|
</NetworkAwareContent>
|
|
128
118
|
</OfflineWrapper>
|
|
129
119
|
</HapticsProvider>
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from '@digilogiclabs/saas-factory-ui/native';
|
|
18
18
|
|
|
19
19
|
// Auth Hook
|
|
20
|
-
import { useAuth } from '@digilogiclabs/
|
|
20
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
21
21
|
|
|
22
22
|
// Validation Schema
|
|
23
23
|
const loginSchema = z.object({
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from '@digilogiclabs/saas-factory-ui/native';
|
|
18
18
|
|
|
19
19
|
// Auth Hook
|
|
20
|
-
import { useAuth } from '@digilogiclabs/
|
|
20
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
21
21
|
|
|
22
22
|
// Validation Schema
|
|
23
23
|
const signupSchema = z.object({
|
|
@@ -35,10 +35,8 @@
|
|
|
35
35
|
"react-native-gesture-handler": "~2.14.0",
|
|
36
36
|
"react-native-reanimated": "~3.6.2",
|
|
37
37
|
|
|
38
|
-
"@digilogiclabs/saas-factory-ui": "^
|
|
39
|
-
|
|
40
|
-
"@digilogiclabs/saas-factory-payments": "^1.2.7",
|
|
41
|
-
|
|
38
|
+
"@digilogiclabs/saas-factory-ui": "^1.4.0",
|
|
39
|
+
|
|
42
40
|
"@supabase/supabase-js": "^2.39.0",
|
|
43
41
|
"@react-native-async-storage/async-storage": "1.21.0",
|
|
44
42
|
|
|
@@ -1,7 +1,7 @@
|
|
|
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/
|
|
4
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
5
5
|
import { Redirect } from 'expo-router';
|
|
6
6
|
|
|
7
7
|
// UI Components - Updated for v0.22.0
|
|
@@ -1,6 +1,6 @@
|
|
|
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/
|
|
3
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
4
4
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
5
5
|
import { BlurView } from 'expo-blur';
|
|
6
6
|
import * as Haptics from 'expo-haptics';
|
|
@@ -1,7 +1,7 @@
|
|
|
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/
|
|
4
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
5
5
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
6
6
|
import { BlurView } from 'expo-blur';
|
|
7
7
|
import * as Haptics from 'expo-haptics';
|
|
@@ -16,11 +16,8 @@ import {
|
|
|
16
16
|
AppShell
|
|
17
17
|
} from '@digilogiclabs/saas-factory-ui/native';
|
|
18
18
|
|
|
19
|
-
//
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
// Payments Provider
|
|
23
|
-
import { PaymentsProvider } from '@digilogiclabs/saas-factory-payments/native';
|
|
19
|
+
// App SDK Provider
|
|
20
|
+
import { DLLProvider } from '@digilogiclabs/app-sdk';
|
|
24
21
|
|
|
25
22
|
// Prevent the splash screen from auto-hiding before asset loading is complete
|
|
26
23
|
SplashScreen.preventAutoHideAsync();
|
|
@@ -56,13 +53,7 @@ export default function RootLayout() {
|
|
|
56
53
|
backgroundSync={true}
|
|
57
54
|
>
|
|
58
55
|
<NetworkAwareContent>
|
|
59
|
-
<
|
|
60
|
-
supabaseUrl={process.env.EXPO_PUBLIC_SUPABASE_URL!}
|
|
61
|
-
supabaseAnonKey={process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY!}
|
|
62
|
-
>
|
|
63
|
-
<PaymentsProvider
|
|
64
|
-
apiUrl={process.env.EXPO_PUBLIC_API_URL || 'http://localhost:3000'}
|
|
65
|
-
>
|
|
56
|
+
<DLLProvider>
|
|
66
57
|
<StripeProvider
|
|
67
58
|
publishableKey={process.env.EXPO_PUBLIC_STRIPE_PUBLISHABLE_KEY!}
|
|
68
59
|
merchantIdentifier="merchant.com.{{packageName}}.app"
|
|
@@ -122,8 +113,7 @@ export default function RootLayout() {
|
|
|
122
113
|
<Toast />
|
|
123
114
|
<StatusBar style="auto" />
|
|
124
115
|
</StripeProvider>
|
|
125
|
-
|
|
126
|
-
</AuthProvider>
|
|
116
|
+
</DLLProvider>
|
|
127
117
|
</NetworkAwareContent>
|
|
128
118
|
</OfflineWrapper>
|
|
129
119
|
</HapticsProvider>
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from '@digilogiclabs/saas-factory-ui/native';
|
|
18
18
|
|
|
19
19
|
// Auth Hook
|
|
20
|
-
import { useAuth } from '@digilogiclabs/
|
|
20
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
21
21
|
|
|
22
22
|
// Validation Schema
|
|
23
23
|
const loginSchema = z.object({
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from '@digilogiclabs/saas-factory-ui/native';
|
|
18
18
|
|
|
19
19
|
// Auth Hook
|
|
20
|
-
import { useAuth } from '@digilogiclabs/
|
|
20
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
21
21
|
|
|
22
22
|
// Validation Schema
|
|
23
23
|
const signupSchema = z.object({
|
|
@@ -35,9 +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": "^
|
|
39
|
-
"@digilogiclabs/saas-factory-auth": "^1.0.5",
|
|
40
|
-
"@digilogiclabs/saas-factory-payments": "^1.2.7",
|
|
38
|
+
"@digilogiclabs/saas-factory-ui": "^1.4.0",
|
|
41
39
|
"@digilogiclabs/saas-factory-ai": "^4.0.2",
|
|
42
40
|
"@digilogiclabs/saas-factory-ai-types": "^4.0.2",
|
|
43
41
|
|
|
@@ -16,11 +16,8 @@ import {
|
|
|
16
16
|
AppShell
|
|
17
17
|
} from '@digilogiclabs/saas-factory-ui/native';
|
|
18
18
|
|
|
19
|
-
//
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
// Payments Provider
|
|
23
|
-
import { PaymentsProvider } from '@digilogiclabs/saas-factory-payments/native';
|
|
19
|
+
// App SDK Provider
|
|
20
|
+
import { DLLProvider } from '@digilogiclabs/app-sdk';
|
|
24
21
|
|
|
25
22
|
// Prevent the splash screen from auto-hiding before asset loading is complete
|
|
26
23
|
SplashScreen.preventAutoHideAsync();
|
|
@@ -56,16 +53,10 @@ export default function RootLayout() {
|
|
|
56
53
|
backgroundSync={true}
|
|
57
54
|
>
|
|
58
55
|
<NetworkAwareContent>
|
|
59
|
-
<
|
|
60
|
-
supabaseUrl={process.env.EXPO_PUBLIC_SUPABASE_URL!}
|
|
61
|
-
supabaseAnonKey={process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY!}
|
|
62
|
-
>
|
|
63
|
-
<PaymentsProvider
|
|
64
|
-
apiUrl={process.env.EXPO_PUBLIC_API_URL || 'http://localhost:3000'}
|
|
65
|
-
>
|
|
56
|
+
<DLLProvider>
|
|
66
57
|
<StripeProvider
|
|
67
58
|
publishableKey={process.env.EXPO_PUBLIC_STRIPE_PUBLISHABLE_KEY!}
|
|
68
|
-
merchantIdentifier="merchant.com.{{packageName}}
|
|
59
|
+
merchantIdentifier="merchant.com.{{packageName}}-app"
|
|
69
60
|
>
|
|
70
61
|
<AppShell
|
|
71
62
|
navigationMode="tabs"
|
|
@@ -122,8 +113,7 @@ export default function RootLayout() {
|
|
|
122
113
|
<Toast />
|
|
123
114
|
<StatusBar style="auto" />
|
|
124
115
|
</StripeProvider>
|
|
125
|
-
|
|
126
|
-
</AuthProvider>
|
|
116
|
+
</DLLProvider>
|
|
127
117
|
</NetworkAwareContent>
|
|
128
118
|
</OfflineWrapper>
|
|
129
119
|
</HapticsProvider>
|
|
@@ -38,9 +38,7 @@
|
|
|
38
38
|
"react-native-gesture-handler": "~2.14.0",
|
|
39
39
|
"react-native-reanimated": "~3.6.2",
|
|
40
40
|
|
|
41
|
-
"@digilogiclabs/saas-factory-ui": "^
|
|
42
|
-
"@digilogiclabs/saas-factory-auth": "^1.0.5",
|
|
43
|
-
"@digilogiclabs/saas-factory-payments": "^1.2.7",
|
|
41
|
+
"@digilogiclabs/saas-factory-ui": "^1.4.0",
|
|
44
42
|
"@digilogiclabs/saas-factory-ai": "^4.0.2",
|
|
45
43
|
"@digilogiclabs/saas-factory-ai-types": "^4.0.2",
|
|
46
44
|
|
|
@@ -16,12 +16,10 @@
|
|
|
16
16
|
"next": "^15.0.0",
|
|
17
17
|
"react": "^19.0.0",
|
|
18
18
|
"react-dom": "^19.0.0",
|
|
19
|
-
"@digilogiclabs/platform-core": "^1.
|
|
19
|
+
"@digilogiclabs/platform-core": "^1.13.0",
|
|
20
20
|
"@digilogiclabs/app-sdk": "^1.0.0",
|
|
21
|
-
"@digilogiclabs/saas-factory-auth": "^1.0.7",
|
|
22
|
-
"@digilogiclabs/saas-factory-payments": "^1.2.9",
|
|
23
21
|
"@digilogiclabs/saas-factory-ai": "^1.0.0",
|
|
24
|
-
"@digilogiclabs/saas-factory-ui": "^1.0
|
|
22
|
+
"@digilogiclabs/saas-factory-ui": "^1.4.0",
|
|
25
23
|
"ai": "^3.4.0",
|
|
26
24
|
"@ai-sdk/openai": "^0.0.70",
|
|
27
25
|
"@ai-sdk/anthropic": "^0.0.57",
|