@deneb-ui/create-template 2.0.60 → 2.0.61

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deneb-ui/create-template",
3
- "version": "2.0.60",
3
+ "version": "2.0.61",
4
4
  "description": "Scaffold production-ready DENEB UI storefront templates for Next.js in seconds.",
5
5
  "bin": {
6
6
  "create-deneb-template": "bin/index.js",
@@ -79,6 +79,27 @@ When you run **`npm run lab`**, you can click directly on any element with a `da
79
79
 
80
80
  The root layout wraps your application with `<SiteDataProvider>`, which automatically connects to the Fivora backend (`api.catalogUrl`) on live sites and listens to live visual editing updates in the Lab.
81
81
 
82
+ For product detail navigation in a static export, always use the stable exported
83
+ page `/products/detail/?id=PRODUCT_ID`. Do not generate `/products/PRODUCT_ID`
84
+ links for live catalog rows: products added after the build do not have a
85
+ corresponding static directory and will 404. The package owns the URL parsing,
86
+ live lookup, retries, and fallback states:
87
+
88
+ ```tsx
89
+ // src/app/products/detail/page.tsx
90
+ import { PlatformProductDetail } from '@deneb-ui/ui';
91
+
92
+ export default function ProductDetailPage() {
93
+ return <PlatformProductDetail />;
94
+ }
95
+ ```
96
+
97
+ Use `platformProductDetailHref(product.id)` for card links. To preserve a
98
+ template-specific visual design, pass `renderProduct={(product, context) =>
99
+ <YourProductDetail product={product} index={context.productIndex} />}` or use
100
+ the lower-level `usePlatformProductDetail()` hook. Always verify that the export
101
+ contains `products/detail/index.html`.
102
+
82
103
  Import hooks from `@/lib/siteDataContext` or `@deneb-ui/ui`:
83
104
 
84
105
  ```tsx
@@ -18,7 +18,7 @@
18
18
  "next": "15.5.23",
19
19
  "react": "19.2.8",
20
20
  "react-dom": "19.2.8",
21
- "@deneb-ui/ui": "^2.0.60"
21
+ "@deneb-ui/ui": "^2.0.61"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@eslint/eslintrc": "3.3.6",
@@ -28,7 +28,7 @@
28
28
  "eslint": "9.39.5",
29
29
  "eslint-config-next": "15.5.23",
30
30
  "typescript": "5.8.3",
31
- "@deneb-ui/cli": "^2.0.60",
31
+ "@deneb-ui/cli": "^2.0.61",
32
32
  "tailwindcss": "^3.4.17",
33
33
  "postcss": "8.5.26",
34
34
  "autoprefixer": "^10.4.20"