create-brainerce-store 1.88.0 → 1.89.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 +3 -2
- package/messages/en.json +21 -0
- package/messages/he.json +21 -0
- package/package.json +3 -2
- package/templates/nextjs/base/.eslintrc.json +2 -0
- package/templates/nextjs/base/AI-GUIDE.md +259 -221
- package/templates/nextjs/base/TRANSLATIONS.md +6 -0
- package/templates/nextjs/base/scripts/agent-docs.mjs +76 -0
- package/templates/nextjs/base/scripts/connect.mjs +6 -0
- package/templates/nextjs/base/src/app/api/auth/oauth-callback/route.ts +102 -96
- package/templates/nextjs/base/src/app/blog/[slug]/{page.tsx.ejs → page.tsx} +41 -144
- package/templates/nextjs/base/src/app/blog/page.tsx +187 -0
- package/templates/nextjs/base/src/app/blog/rss.xml/route.ts +7 -3
- package/templates/nextjs/base/src/app/category/[slug]/page.tsx +26 -11
- package/templates/nextjs/base/src/app/faq/page.tsx.ejs +20 -4
- package/templates/nextjs/base/src/app/layout.tsx.ejs +18 -50
- package/templates/nextjs/base/src/app/page.tsx +109 -75
- package/templates/nextjs/base/src/app/pages/[slug]/page.tsx.ejs +7 -0
- package/templates/nextjs/base/src/app/products/[slug]/page.tsx +267 -220
- package/templates/nextjs/base/src/app/products/page.tsx +184 -19
- package/templates/nextjs/base/src/components/auth/oauth-buttons.tsx +9 -1
- package/templates/nextjs/base/src/components/checkout/payment-step.tsx +30 -1
- package/templates/nextjs/base/src/components/seo/article-json-ld.tsx +12 -6
- package/templates/nextjs/base/src/components/seo/category-json-ld.tsx +9 -10
- package/templates/nextjs/base/src/components/seo/product-json-ld.tsx +15 -6
- package/templates/nextjs/base/src/components/seo/product-og-meta.tsx +46 -0
- package/templates/nextjs/base/src/core/hooks/use-home-data.ts +24 -4
- package/templates/nextjs/base/src/core/hooks/use-product-listing.ts +99 -116
- package/templates/nextjs/base/src/core/hooks/use-reviews-enabled.ts +17 -0
- package/templates/nextjs/base/src/core/lib/listing-query.ts +199 -0
- package/templates/nextjs/base/src/core/lib/locale-path.ts +29 -0
- package/templates/nextjs/base/src/core/lib/reviews-disabled.ts +19 -0
- package/templates/nextjs/base/src/core/lib/server-messages.ts.ejs +34 -0
- package/templates/nextjs/base/src/core/lib/store-info.ts +20 -0
- package/templates/nextjs/base/src/core/providers/listing-seed.tsx +66 -0
- package/templates/nextjs/base/src/ui/product/product-card.tsx +7 -2
- package/templates/nextjs/base/src/ui/product/reviews-section.tsx.ejs +6 -2
- package/templates/nextjs/designs/atelier/app-overlay/layout.tsx.ejs +18 -50
- package/templates/nextjs/designs/atelier/ui/home/testimonials-band.tsx +8 -2
- package/templates/nextjs/designs/atelier/ui/product/product-card.tsx +7 -2
- package/templates/nextjs/designs/atelier/ui/product/reviews-section.tsx.ejs +6 -2
- package/templates/nextjs/ui-canvas/product/reviews-section.tsx.ejs +6 -2
- package/templates/nextjs/base/src/app/blog/page.tsx.ejs +0 -277
- package/templates/nextjs/base/src/app/products/layout.tsx.ejs +0 -18
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var require_package = __commonJS({
|
|
|
31
31
|
"package.json"(exports2, module2) {
|
|
32
32
|
module2.exports = {
|
|
33
33
|
name: "create-brainerce-store",
|
|
34
|
-
version: "1.
|
|
34
|
+
version: "1.89.0",
|
|
35
35
|
description: "Scaffold a production-ready e-commerce storefront connected to Brainerce",
|
|
36
36
|
homepage: "https://brainerce.com",
|
|
37
37
|
repository: {
|
|
@@ -57,8 +57,9 @@ var require_package = __commonJS({
|
|
|
57
57
|
clean: "rimraf dist",
|
|
58
58
|
release: "pnpm build && node ../../scripts/publish-workspace-package.js .",
|
|
59
59
|
"check:template-parity": "node scripts/check-template-parity.js",
|
|
60
|
+
"check:agent-docs": "node scripts/check-agent-docs.js",
|
|
60
61
|
"check:sdk-published": "node scripts/check-sdk-published.js",
|
|
61
|
-
prepublishOnly: "node scripts/check-template-parity.js && node scripts/check-sdk-published.js && node ../../scripts/check-publishable.js ./package.json"
|
|
62
|
+
prepublishOnly: "node scripts/check-template-parity.js && node scripts/check-agent-docs.js && node scripts/check-sdk-published.js && node ../../scripts/check-publishable.js ./package.json"
|
|
62
63
|
},
|
|
63
64
|
dependencies: {
|
|
64
65
|
chalk: "^4.1.2",
|
package/messages/en.json
CHANGED
|
@@ -182,6 +182,25 @@
|
|
|
182
182
|
"faq": {
|
|
183
183
|
"title": "Frequently asked questions"
|
|
184
184
|
},
|
|
185
|
+
"seo": {
|
|
186
|
+
"home": "Home",
|
|
187
|
+
"products": "Products",
|
|
188
|
+
"blog": "Blog",
|
|
189
|
+
"categoryNotFound": "Category not found",
|
|
190
|
+
"productNotFound": "Product not found",
|
|
191
|
+
"productsDescription": "Browse our full collection of products.",
|
|
192
|
+
"blogDescription": "Articles and stories from our store",
|
|
193
|
+
"pagination": "Catalog pages",
|
|
194
|
+
"previousPage": "Previous page",
|
|
195
|
+
"nextPage": "Next page"
|
|
196
|
+
},
|
|
197
|
+
"blog": {
|
|
198
|
+
"empty": "No posts yet.",
|
|
199
|
+
"readMore": "Read more",
|
|
200
|
+
"previous": "Previous",
|
|
201
|
+
"next": "Next",
|
|
202
|
+
"backToBlog": "Back to blog"
|
|
203
|
+
},
|
|
185
204
|
"cart": {
|
|
186
205
|
"pageTitle": "Shopping Cart",
|
|
187
206
|
"title": "Shopping Cart",
|
|
@@ -258,6 +277,8 @@
|
|
|
258
277
|
"paymentNotConfiguredDesc": "Payment has not been set up for this store yet. Please contact the store owner.",
|
|
259
278
|
"paymentError": "Payment Error",
|
|
260
279
|
"paymentUnavailable": "Payment is unavailable for this store right now. Please contact the store.",
|
|
280
|
+
"paymentSessionStuck": "This payment could not be continued. Start a new checkout to try again.",
|
|
281
|
+
"startNewCheckout": "Start a new checkout",
|
|
261
282
|
"paymentRedirectBlocked": "Payment redirect blocked for security reasons. Please contact support.",
|
|
262
283
|
"paymentLoadFailed": "The payment form didn't load. You can continue in a new tab instead.",
|
|
263
284
|
"sandboxTitle": "Sandbox Mode",
|
package/messages/he.json
CHANGED
|
@@ -182,6 +182,25 @@
|
|
|
182
182
|
"faq": {
|
|
183
183
|
"title": "שאלות נפוצות"
|
|
184
184
|
},
|
|
185
|
+
"seo": {
|
|
186
|
+
"home": "דף הבית",
|
|
187
|
+
"products": "מוצרים",
|
|
188
|
+
"blog": "בלוג",
|
|
189
|
+
"categoryNotFound": "הקטגוריה לא נמצאה",
|
|
190
|
+
"productNotFound": "המוצר לא נמצא",
|
|
191
|
+
"productsDescription": "כל קטלוג המוצרים שלנו.",
|
|
192
|
+
"blogDescription": "מאמרים וסיפורים מהחנות",
|
|
193
|
+
"pagination": "עמודי הקטלוג",
|
|
194
|
+
"previousPage": "העמוד הקודם",
|
|
195
|
+
"nextPage": "העמוד הבא"
|
|
196
|
+
},
|
|
197
|
+
"blog": {
|
|
198
|
+
"empty": "עדיין אין פוסטים.",
|
|
199
|
+
"readMore": "קרא עוד",
|
|
200
|
+
"previous": "הקודם",
|
|
201
|
+
"next": "הבא",
|
|
202
|
+
"backToBlog": "חזרה לבלוג"
|
|
203
|
+
},
|
|
185
204
|
"cart": {
|
|
186
205
|
"pageTitle": "עגלת קניות",
|
|
187
206
|
"title": "עגלת קניות",
|
|
@@ -258,6 +277,8 @@
|
|
|
258
277
|
"paymentNotConfiguredDesc": "התשלום עדיין לא הוגדר לחנות זו. אנא פנו לבעל החנות.",
|
|
259
278
|
"paymentError": "שגיאת תשלום",
|
|
260
279
|
"paymentUnavailable": "לא ניתן לשלם בחנות זו כרגע. ניתן לפנות לחנות.",
|
|
280
|
+
"paymentSessionStuck": "לא ניתן להמשיך את התשלום הזה. אפשר להתחיל תשלום חדש ולנסות שוב.",
|
|
281
|
+
"startNewCheckout": "להתחיל תשלום חדש",
|
|
261
282
|
"paymentRedirectBlocked": "הפניית התשלום נחסמה מטעמי אבטחה. אנא פנו לתמיכה.",
|
|
262
283
|
"paymentLoadFailed": "טופס התשלום לא נטען. אפשר להמשיך בכרטיסייה חדשה במקום.",
|
|
263
284
|
"sandboxTitle": "מצב בדיקה",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-brainerce-store",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.89.0",
|
|
4
4
|
"description": "Scaffold a production-ready e-commerce storefront connected to Brainerce",
|
|
5
5
|
"homepage": "https://brainerce.com",
|
|
6
6
|
"repository": {
|
|
@@ -26,8 +26,9 @@
|
|
|
26
26
|
"clean": "rimraf dist",
|
|
27
27
|
"release": "pnpm build && node ../../scripts/publish-workspace-package.js .",
|
|
28
28
|
"check:template-parity": "node scripts/check-template-parity.js",
|
|
29
|
+
"check:agent-docs": "node scripts/check-agent-docs.js",
|
|
29
30
|
"check:sdk-published": "node scripts/check-sdk-published.js",
|
|
30
|
-
"prepublishOnly": "node scripts/check-template-parity.js && node scripts/check-sdk-published.js && node ../../scripts/check-publishable.js ./package.json"
|
|
31
|
+
"prepublishOnly": "node scripts/check-template-parity.js && node scripts/check-agent-docs.js && node scripts/check-sdk-published.js && node ../../scripts/check-publishable.js ./package.json"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
34
|
"chalk": "^4.1.2",
|
|
@@ -19,8 +19,10 @@
|
|
|
19
19
|
"!@/core/lib/image-hosts",
|
|
20
20
|
"!@/core/lib/kit",
|
|
21
21
|
"!@/core/lib/add-to-cart-error",
|
|
22
|
+
"!@/core/lib/coupon-error",
|
|
22
23
|
"!@/core/lib/navigation",
|
|
23
24
|
"!@/core/lib/product-options",
|
|
25
|
+
"!@/core/lib/reviews-disabled",
|
|
24
26
|
"!@/core/lib/sanitize",
|
|
25
27
|
"!@/core/lib/tracking",
|
|
26
28
|
"!@/core/lib/sanitize-html",
|