create-brainerce-store 1.11.1 → 1.12.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/dist/index.js +1 -1
- package/messages/en.json +303 -302
- package/messages/he.json +303 -302
- package/package.json +45 -45
- package/templates/nextjs/base/next.config.ts +31 -31
- package/templates/nextjs/base/src/app/checkout/page.tsx +666 -666
- package/templates/nextjs/base/src/components/checkout/payment-step.tsx +426 -379
package/package.json
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "create-brainerce-store",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Scaffold a production-ready e-commerce storefront connected to Brainerce",
|
|
5
|
-
"bin": {
|
|
6
|
-
"create-brainerce-store": "dist/index.js"
|
|
7
|
-
},
|
|
8
|
-
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"templates",
|
|
11
|
-
"messages"
|
|
12
|
-
],
|
|
13
|
-
"scripts": {
|
|
14
|
-
"build": "tsup src/index.ts --format cjs --dts --clean",
|
|
15
|
-
"dev": "tsup src/index.ts --format cjs --dts --watch",
|
|
16
|
-
"clean": "rimraf dist"
|
|
17
|
-
},
|
|
18
|
-
"dependencies": {
|
|
19
|
-
"chalk": "^4.1.2",
|
|
20
|
-
"commander": "^12.1.0",
|
|
21
|
-
"ejs": "^3.1.10",
|
|
22
|
-
"fs-extra": "^11.2.0",
|
|
23
|
-
"ora": "^5.4.1",
|
|
24
|
-
"prompts": "^2.4.2"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/ejs": "^3.1.5",
|
|
28
|
-
"@types/fs-extra": "^11.0.4",
|
|
29
|
-
"@types/prompts": "^2.4.9",
|
|
30
|
-
"tsup": "^8.0.0",
|
|
31
|
-
"typescript": "^5.4.0"
|
|
32
|
-
},
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": ">=18"
|
|
35
|
-
},
|
|
36
|
-
"keywords": [
|
|
37
|
-
"brainerce",
|
|
38
|
-
"ecommerce",
|
|
39
|
-
"storefront",
|
|
40
|
-
"scaffold",
|
|
41
|
-
"create",
|
|
42
|
-
"nextjs"
|
|
43
|
-
],
|
|
44
|
-
"license": "MIT"
|
|
45
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "create-brainerce-store",
|
|
3
|
+
"version": "1.12.0",
|
|
4
|
+
"description": "Scaffold a production-ready e-commerce storefront connected to Brainerce",
|
|
5
|
+
"bin": {
|
|
6
|
+
"create-brainerce-store": "dist/index.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"templates",
|
|
11
|
+
"messages"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsup src/index.ts --format cjs --dts --clean",
|
|
15
|
+
"dev": "tsup src/index.ts --format cjs --dts --watch",
|
|
16
|
+
"clean": "rimraf dist"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"chalk": "^4.1.2",
|
|
20
|
+
"commander": "^12.1.0",
|
|
21
|
+
"ejs": "^3.1.10",
|
|
22
|
+
"fs-extra": "^11.2.0",
|
|
23
|
+
"ora": "^5.4.1",
|
|
24
|
+
"prompts": "^2.4.2"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/ejs": "^3.1.5",
|
|
28
|
+
"@types/fs-extra": "^11.0.4",
|
|
29
|
+
"@types/prompts": "^2.4.9",
|
|
30
|
+
"tsup": "^8.0.0",
|
|
31
|
+
"typescript": "^5.4.0"
|
|
32
|
+
},
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=18"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"brainerce",
|
|
38
|
+
"ecommerce",
|
|
39
|
+
"storefront",
|
|
40
|
+
"scaffold",
|
|
41
|
+
"create",
|
|
42
|
+
"nextjs"
|
|
43
|
+
],
|
|
44
|
+
"license": "MIT"
|
|
45
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import type { NextConfig } from 'next';
|
|
2
|
-
|
|
3
|
-
const nextConfig: NextConfig = {
|
|
4
|
-
images: {
|
|
5
|
-
remotePatterns: [{ protocol: 'https', hostname: '**' }],
|
|
6
|
-
},
|
|
7
|
-
async headers() {
|
|
8
|
-
return [
|
|
9
|
-
{
|
|
10
|
-
source: '/(.*)',
|
|
11
|
-
headers: [
|
|
12
|
-
{
|
|
13
|
-
key: 'Content-Security-Policy',
|
|
14
|
-
value: [
|
|
15
|
-
"default-src 'self'",
|
|
16
|
-
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.meshulam.co.il https://meshulam.co.il https://*.meshulam.co.il https://grow.link https://*.grow.link https://*.grow.security https://js.stripe.com https://pay.google.com",
|
|
17
|
-
"style-src 'self' 'unsafe-inline'",
|
|
18
|
-
"img-src 'self' data: blob: https:",
|
|
19
|
-
"font-src 'self' data:",
|
|
20
|
-
"frame-src 'self' https://*.meshulam.co.il https://grow.link https://*.grow.link https://*.grow.security https://*.creditguard.co.il https://js.stripe.com https://hooks.stripe.com https://pay.google.com",
|
|
21
|
-
"connect-src 'self' https://*.meshulam.co.il https://grow.link https://*.grow.link https://*.grow.security https://google.com https://pay.google.com https://*.stripe.com https://*.creditguard.co.il",
|
|
22
|
-
"worker-src 'self' blob:",
|
|
23
|
-
].join('; '),
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
];
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default nextConfig;
|
|
1
|
+
import type { NextConfig } from 'next';
|
|
2
|
+
|
|
3
|
+
const nextConfig: NextConfig = {
|
|
4
|
+
images: {
|
|
5
|
+
remotePatterns: [{ protocol: 'https', hostname: '**' }],
|
|
6
|
+
},
|
|
7
|
+
async headers() {
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
source: '/(.*)',
|
|
11
|
+
headers: [
|
|
12
|
+
{
|
|
13
|
+
key: 'Content-Security-Policy',
|
|
14
|
+
value: [
|
|
15
|
+
"default-src 'self'",
|
|
16
|
+
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.meshulam.co.il https://meshulam.co.il https://*.meshulam.co.il https://grow.link https://*.grow.link https://*.grow.security https://js.stripe.com https://pay.google.com",
|
|
17
|
+
"style-src 'self' 'unsafe-inline' https://cdn.meshulam.co.il",
|
|
18
|
+
"img-src 'self' data: blob: https:",
|
|
19
|
+
"font-src 'self' data:",
|
|
20
|
+
"frame-src 'self' https://*.meshulam.co.il https://grow.link https://*.grow.link https://*.grow.security https://*.creditguard.co.il https://js.stripe.com https://hooks.stripe.com https://pay.google.com",
|
|
21
|
+
"connect-src 'self' https://*.meshulam.co.il https://grow.link https://*.grow.link https://*.grow.security https://google.com https://pay.google.com https://*.stripe.com https://*.creditguard.co.il",
|
|
22
|
+
"worker-src 'self' blob:",
|
|
23
|
+
].join('; '),
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default nextConfig;
|