@digilogiclabs/create-saas-app 2.8.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/templates/web/base/template/package.json +1 -3
  3. package/dist/templates/web/base/template/src/app/auth/callback/route.ts +32 -18
  4. package/dist/templates/web/base/template/src/app/globals.css +158 -157
  5. package/dist/templates/web/ui-auth/template/src/app/globals.css +96 -95
  6. package/dist/templates/web/ui-auth/template/src/app/page.tsx +1 -0
  7. package/dist/templates/web/ui-auth-ai/template/src/app/globals.css +3 -3
  8. package/dist/templates/web/ui-auth-payments/template/src/app/globals.css +212 -211
  9. package/dist/templates/web/ui-auth-payments-ai/template/src/app/globals.css +97 -96
  10. package/dist/templates/web/ui-auth-payments-ai-rag/template/package.json +1 -2
  11. package/dist/templates/web/ui-auth-payments-audio/template/src/app/globals.css +97 -96
  12. package/dist/templates/web/ui-auth-payments-video/template/src/app/globals.css +229 -228
  13. package/dist/templates/web/ui-auth-payments-video/template/src/app/page.tsx +1 -0
  14. package/dist/templates/web/ui-only/template/src/app/globals.css +43 -42
  15. package/package.json +1 -1
  16. package/src/templates/web/base/template/package.json +1 -3
  17. package/src/templates/web/base/template/src/app/auth/callback/route.ts +32 -18
  18. package/src/templates/web/base/template/src/app/globals.css +158 -157
  19. package/src/templates/web/ui-auth/template/src/app/globals.css +96 -95
  20. package/src/templates/web/ui-auth/template/src/app/page.tsx +1 -0
  21. package/src/templates/web/ui-auth-ai/template/src/app/globals.css +3 -3
  22. package/src/templates/web/ui-auth-payments/template/src/app/globals.css +212 -211
  23. package/src/templates/web/ui-auth-payments-ai/template/src/app/globals.css +97 -96
  24. package/src/templates/web/ui-auth-payments-ai-rag/template/package.json +1 -2
  25. package/src/templates/web/ui-auth-payments-audio/template/src/app/globals.css +97 -96
  26. package/src/templates/web/ui-auth-payments-video/template/src/app/globals.css +229 -228
  27. package/src/templates/web/ui-auth-payments-video/template/src/app/page.tsx +1 -0
  28. package/src/templates/web/ui-only/template/src/app/globals.css +43 -42
@@ -1,42 +1,43 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- /* Import SaaS Factory UI styles */
6
- @import '@digilogiclabs/saas-factory-ui/dist/index.css';
7
-
8
- @layer base {
9
- :root {
10
- --background: 0 0% 100%;
11
- --foreground: 222.2 84% 4.9%;
12
- --card: 0 0% 100%;
13
- --card-foreground: 222.2 84% 4.9%;
14
- --primary: 221.2 83.2% 53.3%;
15
- --primary-foreground: 210 40% 98%;
16
- --secondary: 210 40% 96%;
17
- --secondary-foreground: 222.2 84% 4.9%;
18
- --border: 214.3 31.8% 91.4%;
19
- --radius: 0.5rem;
20
- }
21
-
22
- .dark {
23
- --background: 222.2 84% 4.9%;
24
- --foreground: 210 40% 98%;
25
- --card: 222.2 84% 4.9%;
26
- --card-foreground: 210 40% 98%;
27
- --primary: 217.2 91.2% 59.8%;
28
- --primary-foreground: 222.2 84% 4.9%;
29
- --secondary: 217.2 32.6% 17.5%;
30
- --secondary-foreground: 210 40% 98%;
31
- --border: 217.2 32.6% 17.5%;
32
- }
33
- }
34
-
35
- @layer base {
36
- * {
37
- @apply border-border;
38
- }
39
- body {
40
- @apply bg-background text-foreground;
41
- }
42
- }
1
+ /* Import SaaS Factory UI styles */
2
+ @import '@digilogiclabs/saas-factory-ui/dist/index.css';
3
+
4
+ @tailwind base;
5
+ @tailwind components;
6
+ @tailwind utilities;
7
+
8
+
9
+ @layer base {
10
+ :root {
11
+ --background: 0 0% 100%;
12
+ --foreground: 222.2 84% 4.9%;
13
+ --card: 0 0% 100%;
14
+ --card-foreground: 222.2 84% 4.9%;
15
+ --primary: 221.2 83.2% 53.3%;
16
+ --primary-foreground: 210 40% 98%;
17
+ --secondary: 210 40% 96%;
18
+ --secondary-foreground: 222.2 84% 4.9%;
19
+ --border: 214.3 31.8% 91.4%;
20
+ --radius: 0.5rem;
21
+ }
22
+
23
+ .dark {
24
+ --background: 222.2 84% 4.9%;
25
+ --foreground: 210 40% 98%;
26
+ --card: 222.2 84% 4.9%;
27
+ --card-foreground: 210 40% 98%;
28
+ --primary: 217.2 91.2% 59.8%;
29
+ --primary-foreground: 222.2 84% 4.9%;
30
+ --secondary: 217.2 32.6% 17.5%;
31
+ --secondary-foreground: 210 40% 98%;
32
+ --border: 217.2 32.6% 17.5%;
33
+ }
34
+ }
35
+
36
+ @layer base {
37
+ * {
38
+ @apply border-border;
39
+ }
40
+ body {
41
+ @apply bg-background text-foreground;
42
+ }
43
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digilogiclabs/create-saas-app",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "Create modern SaaS applications with DLL Platform - tier-aware scaffolding with platform-core and app-sdk",
5
5
  "main": "dist/cli/index.js",
6
6
  "bin": {
@@ -38,10 +38,8 @@
38
38
  "@types/node": "^20.0.0",
39
39
  "@types/react": "^19.0.0",
40
40
  "@types/react-dom": "^19.0.0",
41
- "eslint": "^8.0.0",
41
+ "eslint": "^9.0.0",
42
42
  "eslint-config-next": "^15.0.0",
43
- "@typescript-eslint/eslint-plugin": "^6.0.0",
44
- "@typescript-eslint/parser": "^6.0.0",
45
43
  "prettier": "^3.0.0",
46
44
  "prettier-plugin-tailwindcss": "^0.5.0",
47
45
  "vitest": "^1.0.0",
@@ -1,18 +1,32 @@
1
- import { createRouteHandlerClient } from '@supabase/auth-helpers-nextjs';
2
- import { cookies } from 'next/headers';
3
- import { NextResponse } from 'next/server';
4
-
5
- import type { NextRequest } from 'next/server';
6
-
7
- export async function GET(request: NextRequest) {
8
- const requestUrl = new URL(request.url);
9
- const code = requestUrl.searchParams.get('code');
10
-
11
- if (code) {
12
- const supabase = createRouteHandlerClient({ cookies });
13
- await supabase.auth.exchangeCodeForSession(code);
14
- }
15
-
16
- // URL to redirect to after sign in process completes
17
- return NextResponse.redirect(requestUrl.origin);
18
- }
1
+ import { createServerClient } from '@supabase/ssr';
2
+ import { cookies } from 'next/headers';
3
+ import { NextResponse } from 'next/server';
4
+
5
+ import type { NextRequest } from 'next/server';
6
+
7
+ export async function GET(request: NextRequest) {
8
+ const requestUrl = new URL(request.url);
9
+ const code = requestUrl.searchParams.get('code');
10
+
11
+ if (code) {
12
+ const cookieStore = await cookies();
13
+ const supabase = createServerClient(
14
+ process.env.NEXT_PUBLIC_SUPABASE_URL!,
15
+ process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
16
+ {
17
+ cookies: {
18
+ getAll: () => cookieStore.getAll(),
19
+ setAll: (cookiesToSet) => {
20
+ cookiesToSet.forEach(({ name, value, options }) =>
21
+ cookieStore.set(name, value, options)
22
+ );
23
+ },
24
+ },
25
+ }
26
+ );
27
+ await supabase.auth.exchangeCodeForSession(code);
28
+ }
29
+
30
+ // URL to redirect to after sign in process completes
31
+ return NextResponse.redirect(requestUrl.origin);
32
+ }
@@ -1,157 +1,158 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- /* Import SaaS Factory UI styles */
6
- @import '@digilogiclabs/saas-factory-ui/styles.css';
7
-
8
- @layer base {
9
- :root {
10
- --background: 0 0% 100%;
11
- --foreground: 222.2 84% 4.9%;
12
- --card: 0 0% 100%;
13
- --card-foreground: 222.2 84% 4.9%;
14
- --popover: 0 0% 100%;
15
- --popover-foreground: 222.2 84% 4.9%;
16
- --primary: 221.2 83.2% 53.3%;
17
- --primary-foreground: 210 40% 98%;
18
- --secondary: 210 40% 96%;
19
- --secondary-foreground: 222.2 84% 4.9%;
20
- --muted: 210 40% 96%;
21
- --muted-foreground: 215.4 16.3% 46.9%;
22
- --accent: 210 40% 96%;
23
- --accent-foreground: 222.2 84% 4.9%;
24
- --destructive: 0 84.2% 60.2%;
25
- --destructive-foreground: 210 40% 98%;
26
- --border: 214.3 31.8% 91.4%;
27
- --input: 214.3 31.8% 91.4%;
28
- --ring: 221.2 83.2% 53.3%;
29
- --radius: 0.5rem;
30
- }
31
-
32
- .dark {
33
- --background: 222.2 84% 4.9%;
34
- --foreground: 210 40% 98%;
35
- --card: 222.2 84% 4.9%;
36
- --card-foreground: 210 40% 98%;
37
- --popover: 222.2 84% 4.9%;
38
- --popover-foreground: 210 40% 98%;
39
- --primary: 217.2 91.2% 59.8%;
40
- --primary-foreground: 222.2 84% 4.9%;
41
- --secondary: 217.2 32.6% 17.5%;
42
- --secondary-foreground: 210 40% 98%;
43
- --muted: 217.2 32.6% 17.5%;
44
- --muted-foreground: 215 20.2% 65.1%;
45
- --accent: 217.2 32.6% 17.5%;
46
- --accent-foreground: 210 40% 98%;
47
- --destructive: 0 62.8% 30.6%;
48
- --destructive-foreground: 210 40% 98%;
49
- --border: 217.2 32.6% 17.5%;
50
- --input: 217.2 32.6% 17.5%;
51
- --ring: 224.3 76.3% 94.1%;
52
- }
53
- }
54
-
55
- @layer base {
56
- * {
57
- @apply border-border;
58
- }
59
-
60
- body {
61
- @apply bg-background text-foreground;
62
- }
63
- }
64
-
65
- /* Mobile-first optimizations */
66
- @media (max-width: 768px) {
67
- .mobile-optimized {
68
- touch-action: manipulation;
69
- -webkit-tap-highlight-color: transparent;
70
- }
71
-
72
- /* Better touch targets */
73
- button,
74
- a,
75
- input,
76
- select,
77
- textarea {
78
- min-height: 44px;
79
- min-width: 44px;
80
- }
81
-
82
- /* Smooth scrolling for mobile */
83
- html {
84
- scroll-behavior: smooth;
85
- -webkit-overflow-scrolling: touch;
86
- }
87
- }
88
-
89
- /* Network-aware styles */
90
- @media (prefers-reduced-data: reduce) {
91
- .high-bandwidth-content {
92
- display: none;
93
- }
94
- }
95
-
96
- /* Reduced motion preferences */
97
- @media (prefers-reduced-motion: reduce) {
98
- *,
99
- *::before,
100
- *::after {
101
- animation-duration: 0.01ms !important;
102
- animation-iteration-count: 1 !important;
103
- transition-duration: 0.01ms !important;
104
- }
105
- }
106
-
107
- /* Custom animations for mobile interactions */
108
- @keyframes haptic-feedback {
109
- 0% { transform: scale(1); }
110
- 50% { transform: scale(0.95); }
111
- 100% { transform: scale(1); }
112
- }
113
-
114
- .haptic-feedback {
115
- animation: haptic-feedback 0.1s ease-in-out;
116
- }
117
-
118
- /* Offline indicator styles */
119
- .offline-indicator {
120
- position: fixed;
121
- top: 0;
122
- left: 0;
123
- right: 0;
124
- background: #f59e0b;
125
- color: white;
126
- text-align: center;
127
- padding: 8px;
128
- font-size: 14px;
129
- z-index: 9999;
130
- }
131
-
132
- /* Loading states */
133
- .loading-skeleton {
134
- background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
135
- background-size: 200% 100%;
136
- animation: loading 1.5s infinite;
137
- }
138
-
139
- @keyframes loading {
140
- 0% {
141
- background-position: 200% 0;
142
- }
143
- 100% {
144
- background-position: -200% 0;
145
- }
146
- }
147
-
148
- /* Progressive image loading */
149
- .progressive-image {
150
- filter: blur(5px);
151
- transition: filter 0.3s;
152
- }
153
-
154
- .progressive-image.loaded {
155
- filter: blur(0);
156
- }
157
-
1
+ /* Import SaaS Factory UI styles */
2
+ @import '@digilogiclabs/saas-factory-ui/styles.css';
3
+
4
+ @tailwind base;
5
+ @tailwind components;
6
+ @tailwind utilities;
7
+
8
+
9
+ @layer base {
10
+ :root {
11
+ --background: 0 0% 100%;
12
+ --foreground: 222.2 84% 4.9%;
13
+ --card: 0 0% 100%;
14
+ --card-foreground: 222.2 84% 4.9%;
15
+ --popover: 0 0% 100%;
16
+ --popover-foreground: 222.2 84% 4.9%;
17
+ --primary: 221.2 83.2% 53.3%;
18
+ --primary-foreground: 210 40% 98%;
19
+ --secondary: 210 40% 96%;
20
+ --secondary-foreground: 222.2 84% 4.9%;
21
+ --muted: 210 40% 96%;
22
+ --muted-foreground: 215.4 16.3% 46.9%;
23
+ --accent: 210 40% 96%;
24
+ --accent-foreground: 222.2 84% 4.9%;
25
+ --destructive: 0 84.2% 60.2%;
26
+ --destructive-foreground: 210 40% 98%;
27
+ --border: 214.3 31.8% 91.4%;
28
+ --input: 214.3 31.8% 91.4%;
29
+ --ring: 221.2 83.2% 53.3%;
30
+ --radius: 0.5rem;
31
+ }
32
+
33
+ .dark {
34
+ --background: 222.2 84% 4.9%;
35
+ --foreground: 210 40% 98%;
36
+ --card: 222.2 84% 4.9%;
37
+ --card-foreground: 210 40% 98%;
38
+ --popover: 222.2 84% 4.9%;
39
+ --popover-foreground: 210 40% 98%;
40
+ --primary: 217.2 91.2% 59.8%;
41
+ --primary-foreground: 222.2 84% 4.9%;
42
+ --secondary: 217.2 32.6% 17.5%;
43
+ --secondary-foreground: 210 40% 98%;
44
+ --muted: 217.2 32.6% 17.5%;
45
+ --muted-foreground: 215 20.2% 65.1%;
46
+ --accent: 217.2 32.6% 17.5%;
47
+ --accent-foreground: 210 40% 98%;
48
+ --destructive: 0 62.8% 30.6%;
49
+ --destructive-foreground: 210 40% 98%;
50
+ --border: 217.2 32.6% 17.5%;
51
+ --input: 217.2 32.6% 17.5%;
52
+ --ring: 224.3 76.3% 94.1%;
53
+ }
54
+ }
55
+
56
+ @layer base {
57
+ * {
58
+ @apply border-border;
59
+ }
60
+
61
+ body {
62
+ @apply bg-background text-foreground;
63
+ }
64
+ }
65
+
66
+ /* Mobile-first optimizations */
67
+ @media (max-width: 768px) {
68
+ .mobile-optimized {
69
+ touch-action: manipulation;
70
+ -webkit-tap-highlight-color: transparent;
71
+ }
72
+
73
+ /* Better touch targets */
74
+ button,
75
+ a,
76
+ input,
77
+ select,
78
+ textarea {
79
+ min-height: 44px;
80
+ min-width: 44px;
81
+ }
82
+
83
+ /* Smooth scrolling for mobile */
84
+ html {
85
+ scroll-behavior: smooth;
86
+ -webkit-overflow-scrolling: touch;
87
+ }
88
+ }
89
+
90
+ /* Network-aware styles */
91
+ @media (prefers-reduced-data: reduce) {
92
+ .high-bandwidth-content {
93
+ display: none;
94
+ }
95
+ }
96
+
97
+ /* Reduced motion preferences */
98
+ @media (prefers-reduced-motion: reduce) {
99
+ *,
100
+ *::before,
101
+ *::after {
102
+ animation-duration: 0.01ms !important;
103
+ animation-iteration-count: 1 !important;
104
+ transition-duration: 0.01ms !important;
105
+ }
106
+ }
107
+
108
+ /* Custom animations for mobile interactions */
109
+ @keyframes haptic-feedback {
110
+ 0% { transform: scale(1); }
111
+ 50% { transform: scale(0.95); }
112
+ 100% { transform: scale(1); }
113
+ }
114
+
115
+ .haptic-feedback {
116
+ animation: haptic-feedback 0.1s ease-in-out;
117
+ }
118
+
119
+ /* Offline indicator styles */
120
+ .offline-indicator {
121
+ position: fixed;
122
+ top: 0;
123
+ left: 0;
124
+ right: 0;
125
+ background: #f59e0b;
126
+ color: white;
127
+ text-align: center;
128
+ padding: 8px;
129
+ font-size: 14px;
130
+ z-index: 9999;
131
+ }
132
+
133
+ /* Loading states */
134
+ .loading-skeleton {
135
+ background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
136
+ background-size: 200% 100%;
137
+ animation: loading 1.5s infinite;
138
+ }
139
+
140
+ @keyframes loading {
141
+ 0% {
142
+ background-position: 200% 0;
143
+ }
144
+ 100% {
145
+ background-position: -200% 0;
146
+ }
147
+ }
148
+
149
+ /* Progressive image loading */
150
+ .progressive-image {
151
+ filter: blur(5px);
152
+ transition: filter 0.3s;
153
+ }
154
+
155
+ .progressive-image.loaded {
156
+ filter: blur(0);
157
+ }
158
+