kmcom-nuxt-layers 1.6.47 → 1.6.48

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.
@@ -1,69 +1,66 @@
1
1
  <script setup lang="ts">
2
- /**
3
- * LayoutPage — canonical page wrapper for the Swiss Grid System.
4
- *
5
- * This is a fragment component (no wrapper element). The grid root is already
6
- * provided by MastMain at the layout level via <div class="mastmain">.
7
- * Adding another mastmain wrapper here would nest grids and misalign everything.
8
- *
9
- * Responsibilities:
10
- * - SEO via useHead()
11
- * - provides 'pageTitle' to child components
12
- * - optional visible header (LayoutSection + LayoutPageHeader)
13
- *
14
- * LayoutGridDebug is owned by the default layout — do NOT add it here.
15
- *
16
- * @prop {string} title — Page title: sets <title> and optional visible heading
17
- * @prop {string} description — Optional meta description for SEO
18
- * @prop {boolean} showHeader — Render a LayoutPageHeader block (default: false)
19
- *
20
- * @example
21
- * <LayoutPage title="Home">
22
- * <LayoutSectionHero>
23
- * <h1>Welcome</h1>
24
- * </LayoutSectionHero>
25
- * </LayoutPage>
26
- *
27
- * @example
28
- * <LayoutPage title="About" description="Learn more." :show-header="true">
29
- * <LayoutSection>
30
- * <LayoutGridItem preset="centered">
31
- * <p>Content here.</p>
32
- * </LayoutGridItem>
33
- * </LayoutSection>
34
- * </LayoutPage>
35
- */
2
+ /**
3
+ * LayoutPage — canonical page wrapper for the Swiss Grid System.
4
+ *
5
+ * This is a fragment component (no wrapper element). The grid root is already
6
+ * provided by MastMain at the layout level via <div class="mastmain">.
7
+ * Adding another mastmain wrapper here would nest grids and misalign everything.
8
+ *
9
+ * Responsibilities:
10
+ * - SEO via useHead()
11
+ * - provides 'pageTitle' to child components
12
+ * - optional visible header (LayoutSection + LayoutPageHeader)
13
+ *
14
+ * LayoutGridDebug is owned by the default layout — do NOT add it here.
15
+ *
16
+ * @prop {string} title — Page title: sets <title> and optional visible heading
17
+ * @prop {string} description — Optional meta description for SEO
18
+ * @prop {boolean} showHeader — Render a LayoutPageHeader block (default: false)
19
+ *
20
+ * @example
21
+ * <LayoutPage title="Home">
22
+ * <LayoutSectionHero>
23
+ * <h1>Welcome</h1>
24
+ * </LayoutSectionHero>
25
+ * </LayoutPage>
26
+ *
27
+ * @example
28
+ * <LayoutPage title="About" description="Learn more." :show-header="true">
29
+ * <LayoutSection>
30
+ * <LayoutGridItem preset="centered">
31
+ * <p>Content here.</p>
32
+ * </LayoutGridItem>
33
+ * </LayoutSection>
34
+ * </LayoutPage>
35
+ */
36
36
 
37
- interface Props {
38
- title: string
39
- description?: string
40
- showHeader?: boolean
41
- }
37
+ interface Props {
38
+ title: string
39
+ description?: string
40
+ showHeader?: boolean
41
+ }
42
42
 
43
- const { title, description, showHeader = false } = defineProps<Props>()
43
+ const { title, description, showHeader = false } = defineProps<Props>()
44
44
 
45
- useHead({
46
- title,
47
- meta: description
48
- ? [
49
- { name: 'description', content: description },
50
- { property: 'og:title', content: title },
51
- { property: 'og:description', content: description },
52
- ]
53
- : undefined,
54
- })
45
+ useHead({
46
+ title,
47
+ meta: description
48
+ ? [
49
+ { name: 'description', content: description },
50
+ { property: 'og:title', content: title },
51
+ { property: 'og:description', content: description },
52
+ ]
53
+ : undefined,
54
+ })
55
55
 
56
- provide('pageTitle', title)
56
+ provide('pageTitle', title)
57
57
  </script>
58
58
 
59
59
  <template>
60
60
  <!-- Optional visible page header — rendered as a grid section -->
61
61
  <LayoutSection v-if="showHeader">
62
62
  <LayoutGridItem preset="centered">
63
- <LayoutPageHeader
64
- :title
65
- v-bind="description !== undefined ? { description } : {}"
66
- />
63
+ <LayoutPageHeader :title v-bind="description !== undefined ? { description } : {}" />
67
64
  </LayoutGridItem>
68
65
  </LayoutSection>
69
66
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kmcom-nuxt-layers",
3
3
  "private": false,
4
- "version": "1.6.47",
4
+ "version": "1.6.48",
5
5
  "description": "Composable Nuxt 4 layers for building scalable Vue applications",
6
6
  "exports": {
7
7
  "./layers/core": "./layers/core/nuxt.config.ts",
@@ -121,7 +121,7 @@
121
121
  "@nuxtjs/device": "^4.0.0",
122
122
  "@perplex-digital/stylelint-config": "^17.4.0",
123
123
  "@pinia/nuxt": "^0.11.3",
124
- "@types/node": "^25.9.1",
124
+ "@types/node": "^20",
125
125
  "@types/three": "^0.184.1",
126
126
  "@typescript-eslint/eslint-plugin": "^8.59.4",
127
127
  "@typescript-eslint/parser": "^8.59.4",
@@ -141,6 +141,7 @@
141
141
  "eslint-plugin-unicorn": "^64.0.0",
142
142
  "eslint-plugin-unused-imports": "^4.4.1",
143
143
  "eslint-plugin-vue": "^10.9.1",
144
+ "netlify-cli": "^26.1.0",
144
145
  "npm-check-updates": "^22.2.1",
145
146
  "nuxt": "^4.4.6",
146
147
  "pinia": "^3.0.4",
@@ -161,7 +162,7 @@
161
162
  "stylelint-prettier": "^5.0.3",
162
163
  "tailwindcss": "^4.3.0",
163
164
  "turbo": "^2.9.16",
164
- "typescript": "^6.0.3",
165
+ "typescript": "^5",
165
166
  "vite-plugin-checker": "^0.14.1",
166
167
  "vitest": "^4.1.7",
167
168
  "vue": "latest",
@@ -180,7 +181,7 @@
180
181
  "skills": "^1.5.9"
181
182
  },
182
183
  "engines": {
183
- "node": ">=21 <23"
184
+ "node": ">=20 <21"
184
185
  },
185
186
  "scripts": {
186
187
  "dev": "pnpm -F playground dev",
@@ -222,6 +223,8 @@
222
223
  "layer:rebuild:layout": "pnpm build:layout && pnpm layer:generate:layout && pnpm layer:layout",
223
224
  "layer:rebuild:motion": "pnpm build:motion && pnpm layer:generate:motion && pnpm layer:motion",
224
225
  "browserlist": "npx update-browserslist-db@latest",
225
- "deploy": "turbo run build --filter playground"
226
+ "deploy": "turbo run build --filter playground",
227
+ "build:netlify": "pnpm -F playground build:netlify",
228
+ "dev:netlify": "pnpm -F playground dev:netlify"
226
229
  }
227
230
  }