create-brainerce-store 1.27.5 → 1.28.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 (35) hide show
  1. package/dist/index.js +95 -22
  2. package/messages/en.json +12 -1
  3. package/messages/he.json +12 -1
  4. package/package.json +1 -1
  5. package/templates/nextjs/base/.env.local.ejs +3 -3
  6. package/templates/nextjs/base/next.config.ts +13 -12
  7. package/templates/nextjs/base/package.json.ejs +2 -1
  8. package/templates/nextjs/base/src/app/api/auth/logout/route.ts +15 -14
  9. package/templates/nextjs/base/src/app/api/auth/oauth-callback/route.ts +66 -59
  10. package/templates/nextjs/base/src/app/api/auth/reset-password/route.ts +76 -77
  11. package/templates/nextjs/base/src/app/api/store/[...path]/route.ts +229 -198
  12. package/templates/nextjs/base/src/app/checkout/page.tsx +975 -972
  13. package/templates/nextjs/base/src/app/layout.tsx.ejs +29 -13
  14. package/templates/nextjs/base/src/app/order-confirmation/page.tsx +271 -271
  15. package/templates/nextjs/base/src/app/payment-complete/page.tsx +59 -59
  16. package/templates/nextjs/base/src/app/products/[slug]/product-client-section.tsx +501 -486
  17. package/templates/nextjs/base/src/app/products/page.tsx +475 -475
  18. package/templates/nextjs/base/src/app/reset-password/page.tsx +138 -131
  19. package/templates/nextjs/base/src/components/auth/register-form.tsx +245 -232
  20. package/templates/nextjs/base/src/components/checkout/checkout-form.tsx +416 -415
  21. package/templates/nextjs/base/src/components/checkout/custom-fields-step.tsx +258 -184
  22. package/templates/nextjs/base/src/components/checkout/payment-step.tsx +84 -20
  23. package/templates/nextjs/base/src/components/seo/product-json-ld.tsx +86 -72
  24. package/templates/nextjs/base/src/lib/csrf.ts +11 -0
  25. package/templates/nextjs/base/src/lib/navigation.tsx.ejs +60 -60
  26. package/templates/nextjs/base/src/lib/nonce.ts +10 -0
  27. package/templates/nextjs/base/src/lib/safe-redirect.ts +45 -0
  28. package/templates/nextjs/base/src/lib/sanitize-html.ts +93 -0
  29. package/templates/nextjs/base/src/lib/validation.ts +37 -0
  30. package/templates/nextjs/base/src/middleware.ts.ejs +91 -8
  31. package/templates/nextjs/base/tsconfig.tsbuildinfo +1 -0
  32. package/templates/nextjs/themes/luxury/globals.css +399 -399
  33. package/templates/nextjs/themes/luxury/theme.json +23 -23
  34. package/templates/nextjs/themes/playful/globals.css +400 -400
  35. package/templates/nextjs/themes/playful/theme.json +23 -23
@@ -1,23 +1,23 @@
1
- {
2
- "name": "Playful",
3
- "description": "Warm, vibrant design with Nunito rounded font and energetic pink-purple palette",
4
- "font": {
5
- "family": "Nunito",
6
- "import": "next/font/google"
7
- },
8
- "colors": {
9
- "background": "0 0% 99%",
10
- "foreground": "260 25% 16%",
11
- "primary": "330 75% 56%",
12
- "primary-foreground": "0 0% 100%",
13
- "secondary": "260 50% 94%",
14
- "secondary-foreground": "260 25% 16%",
15
- "muted": "270 30% 95%",
16
- "muted-foreground": "260 10% 45%",
17
- "accent": "280 60% 60%",
18
- "accent-foreground": "0 0% 100%",
19
- "destructive": "0 84% 60%",
20
- "border": "270 20% 88%"
21
- },
22
- "radius": "1rem"
23
- }
1
+ {
2
+ "name": "Playful",
3
+ "description": "Warm, vibrant design with Nunito rounded font and energetic pink-purple palette",
4
+ "font": {
5
+ "family": "Nunito",
6
+ "import": "next/font/google"
7
+ },
8
+ "colors": {
9
+ "background": "0 0% 99%",
10
+ "foreground": "260 25% 16%",
11
+ "primary": "330 75% 56%",
12
+ "primary-foreground": "0 0% 100%",
13
+ "secondary": "260 50% 94%",
14
+ "secondary-foreground": "260 25% 16%",
15
+ "muted": "270 30% 95%",
16
+ "muted-foreground": "260 10% 45%",
17
+ "accent": "280 60% 60%",
18
+ "accent-foreground": "0 0% 100%",
19
+ "destructive": "0 84% 60%",
20
+ "border": "270 20% 88%"
21
+ },
22
+ "radius": "1rem"
23
+ }