@camox/cli 0.9.1 → 0.10.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.mjs CHANGED
@@ -376,6 +376,7 @@ count.txt
376
376
  .tanstack
377
377
  .output
378
378
  .vinxi
379
+ node_modules
379
380
 
380
381
  # Auto generated by Camox
381
382
  src/camox/app.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camox/cli",
3
- "version": "0.9.1",
3
+ "version": "0.10.0",
4
4
  "bin": {
5
5
  "camox": "./dist/index.mjs"
6
6
  },
@@ -26,7 +26,7 @@
26
26
  "@typescript/native-preview": "7.0.0-dev.20260412.1",
27
27
  "oxlint": "^0.15.0",
28
28
  "tsdown": "^0.21.8",
29
- "@camox/api-contract": "0.9.1"
29
+ "@camox/api-contract": "0.10.0"
30
30
  },
31
31
  "scripts": {
32
32
  "build": "tsdown",
@@ -9,8 +9,11 @@ const defaultLayout = createLayout({
9
9
  id: "default",
10
10
  title: "Default",
11
11
  description: "Default page layout with a navbar and footer",
12
- blocks: { before: [navbarBlock], after: [footerBlock] },
13
- initialBlocks: [heroBlock, statisticsBlock],
12
+ blocks: {
13
+ before: [navbarBlock],
14
+ after: [footerBlock],
15
+ initial: [heroBlock, statisticsBlock],
16
+ },
14
17
  component: DefaultLayout,
15
18
  buildMetaTitle: ({ pageMetaTitle, projectName }) => `${pageMetaTitle} | ${projectName}`,
16
19
  buildOgImage: ({ title, description, projectName }) => (
@@ -75,9 +78,9 @@ const defaultLayout = createLayout({
75
78
  function DefaultLayout({ children }: { children: React.ReactNode }) {
76
79
  return (
77
80
  <main className="flex min-h-screen flex-col">
78
- <defaultLayout.blocks.Navbar />
81
+ <defaultLayout.BeforeBlocks />
79
82
  <div className="flex-1">{children}</div>
80
- <defaultLayout.blocks.Footer />
83
+ <defaultLayout.AfterBlocks />
81
84
  </main>
82
85
  );
83
86
  }