kmcom-nuxt-layers 4.0.1 → 5.0.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.
Files changed (97) hide show
  1. package/docs/superpowers/plans/2026-09-03-layout-layer-fluid-rebuild.md +8 -8
  2. package/docs/superpowers/specs/2026-08-30-layer-taxonomy-tier-7-design.md +1 -1
  3. package/docs/superpowers/specs/2026-08-31-swiss-grid-layer-design.md +3 -3
  4. package/docs/superpowers/specs/2026-09-03-layout-layer-fluid-rebuild-design.md +3 -3
  5. package/layers/content/app/components/Blog/Article.vue +1 -1
  6. package/layers/content/app/components/Gallery/Detail.vue +8 -8
  7. package/layers/content/app/components/Gallery/Grid.vue +8 -8
  8. package/layers/content/app/components/Gallery/ImageDetail.vue +6 -6
  9. package/layers/content/app/components/Gallery/Lightbox.vue +3 -3
  10. package/layers/content/app/components/NuxtContent/Detail.vue +1 -1
  11. package/layers/content/app/components/NuxtContent/List.vue +1 -1
  12. package/layers/content/app/components/Portfolio/ColorPalette.vue +5 -5
  13. package/layers/content/app/components/Portfolio/Detail.vue +1 -1
  14. package/layers/content/app/components/Portfolio/List.vue +1 -1
  15. package/layers/content/app/components/Portfolio/Typography.vue +5 -5
  16. package/layers/content/app/components/content/Figure.vue +1 -1
  17. package/layers/core/app/assets/css/core.css +9 -9
  18. package/layers/core/app/assets/css/layout.css +1 -1
  19. package/layers/core/app/components/DiagnosticsPage.vue +15 -15
  20. package/layers/core/app/components/Element.test.ts +1 -1
  21. package/layers/core/app/components/ElementTw.test.ts +1 -1
  22. package/layers/core/app/components/ErrorBoundary.vue +5 -5
  23. package/layers/core/app/composables/useElementGrid.test.ts +1 -1
  24. package/layers/core/app/composables/useElementInteraction.test.ts +1 -1
  25. package/layers/core/app/composables/useElementLayout.test.ts +1 -1
  26. package/layers/core/app/composables/useElementSizing.test.ts +1 -1
  27. package/layers/core/app/composables/useElementSurface.test.ts +1 -1
  28. package/layers/core/app/composables/useLayoutAttrs.test.ts +1 -1
  29. package/layers/core/app/error.vue +1 -1
  30. package/layers/core/app/pages/[...slug].vue +2 -2
  31. package/layers/core/app/utils/browserInfo.test.ts +1 -1
  32. package/layers/core/app/utils/featureClasses.test.ts +1 -1
  33. package/layers/core/app/utils/scrollGuardClamp.test.ts +1 -1
  34. package/layers/core/app/utils/styleToTailwindClasses.test.ts +1 -1
  35. package/layers/data/forms/app/utils/contact-schema.test.ts +1 -1
  36. package/layers/data/forms/app/utils/fieldProps.test.ts +1 -1
  37. package/layers/data/metadata/providers/comicvine/server/utils/metadata-comicvine/normalise.test.ts +1 -1
  38. package/layers/data/metadata/providers/google-books/server/utils/metadata-google-books/client.test.ts +1 -1
  39. package/layers/data/metadata/providers/google-books/server/utils/metadata-google-books/normalise.test.ts +1 -1
  40. package/layers/data/metadata/providers/openlibrary/server/utils/metadata-openlibrary/client.test.ts +1 -1
  41. package/layers/data/metadata/providers/openlibrary/server/utils/metadata-openlibrary/normalise.test.ts +1 -1
  42. package/layers/data/metadata/providers/themoviedb/server/utils/metadata-tmdb/client.test.ts +1 -1
  43. package/layers/data/metadata/providers/themoviedb/server/utils/metadata-tmdb/normalise.test.ts +1 -1
  44. package/layers/data/metadata/server/utils/metadata/cache.test.ts +1 -1
  45. package/layers/data/metadata/server/utils/metadata/provider-registry.test.ts +1 -1
  46. package/layers/data/metadata/server/utils/metadata/search.test.ts +1 -1
  47. package/layers/delivery/feeds/app/assets/css/feeds.css +23 -11
  48. package/layers/delivery/feeds/app/components/Feeds/Index.vue +10 -10
  49. package/layers/delivery/feeds/app/components/Feeds/RouteCard.vue +1 -1
  50. package/layers/delivery/feeds/public/feed/style.css +16 -16
  51. package/layers/delivery/feeds/server/utils/content-adapter.test.ts +1 -1
  52. package/layers/delivery/feeds/server/utils/feed-author.test.ts +1 -1
  53. package/layers/delivery/feeds/server/utils/feed-config.test.ts +1 -1
  54. package/layers/delivery/feeds/server/utils/formats.test.ts +1 -1
  55. package/layers/delivery/scripts/app/components/BaselineStatus.vue +3 -1
  56. package/layers/delivery/seo/app/utils/seoConfig.test.ts +1 -1
  57. package/layers/design-system/theming/app/assets/css/theme.css +0 -1
  58. package/layers/design-system/theming/app/components/ThemePicker/AccentButton.vue +2 -2
  59. package/layers/design-system/theming/app/components/ThemePicker/Menu.vue +3 -3
  60. package/layers/design-system/theming/app/composables/useAccentColor.ts +4 -1
  61. package/layers/design-system/theming/app/plugins/theme.client.ts +15 -13
  62. package/layers/design-system/theming/app/utils/themeAdapter.ts +1 -1
  63. package/layers/design-system/theming/nuxt.config.ts +1 -1
  64. package/layers/design-system/theming/server/utils/accent-css.test.ts +1 -1
  65. package/layers/design-system/theming/server/utils/fouc-config.test.ts +1 -1
  66. package/layers/design-system/typography/app/components/Typography/TextStroke.vue +1 -1
  67. package/layers/design-system/visual/app/assets/css/visual.css +0 -1
  68. package/layers/design-system/visual/app/components/Accent/Scene.vue +2 -2
  69. package/layers/design-system/visual/app/components/Tint/Overlay.vue +1 -1
  70. package/layers/design-system/visual/app/utils/colorTokens.test.ts +1 -1
  71. package/layers/design-system/visual/app/utils/gradientStyle.test.ts +1 -1
  72. package/layers/design-system/visual/app/utils/responsiveSizes.test.ts +1 -1
  73. package/layers/motion/animations/app/components/Motion/Marquee.vue +1 -1
  74. package/layers/motion/animations/app/components/Motion/MarqueeText.vue +3 -3
  75. package/layers/motion/scroll/app/components/Motion/HorizontalScroll.vue +1 -1
  76. package/layers/motion/scroll/app/components/Motion/PinnedSection.vue +2 -2
  77. package/layers/motion/scroll/app/components/Motion/ScrollProgress.vue +2 -2
  78. package/layers/motion/scroll/app/components/Motion/ScrollStats.vue +6 -6
  79. package/layers/motion/transitions/app/assets/css/transitions.css +12 -12
  80. package/layers/render/canvas/package.json +2 -1
  81. package/layers/render/shader/app/assets/css/shader.css +5 -5
  82. package/layers/render/shader/app/shaders/common/grain.ts +1 -1
  83. package/layers/render/shader/app/types/tsl.ts +1 -1
  84. package/layers/render/shader/app/utils/tsl/index.ts +2 -0
  85. package/layers/structure/grid/app/assets/css/grid.css +2 -0
  86. package/layers/structure/grid/app/composables/useGridTracks.test.ts +1 -1
  87. package/layers/structure/grid/app/types/tracks.test.ts +1 -1
  88. package/layers/structure/grid/app/utils/placement.test.ts +1 -1
  89. package/layers/structure/layout/app/components/Layout/Grid/Debug.vue +1 -1
  90. package/layers/structure/layout/app/components/Layout/Page/Header.vue +3 -3
  91. package/layers/structure/layout/app/components/Layout/Page/index.vue +16 -11
  92. package/layers/structure/layout/app/utils/gridPlacementStyle.test.ts +1 -1
  93. package/layers/structure/navigation/app/components/Mast/Nav.vue +1 -1
  94. package/layers/structure/navigation/app/components/Mast/NavModal.vue +2 -2
  95. package/layers/structure/navigation/app/utils/site.test.ts +1 -1
  96. package/layers/structure/routing/app/utils/resolveRoute.test.ts +1 -1
  97. package/package.json +20 -32
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import type { GradientConfig } from '../types/gradient'
4
4
  import { buildGradientStyle, resolveGradientColor } from './gradientStyle'
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import type { ResponsiveSizes } from '../types/media'
4
4
  import { buildResponsiveSizesQueries } from './responsiveSizes'
@@ -147,7 +147,7 @@
147
147
  >
148
148
  <div
149
149
  ref="contentRef"
150
- class="motion-marquee__content flex will-change-transform w-max"
150
+ class="motion-marquee__content flex w-max will-change-transform"
151
151
  :style="{ gap }"
152
152
  >
153
153
  <slot />
@@ -95,8 +95,8 @@
95
95
  onMounted(async () => {
96
96
  await nextTick()
97
97
 
98
- baseX.value = new Array(texts.length).fill(0)
99
- directionFactors.value = new Array(texts.length).fill(1)
98
+ baseX.value = Array.from({ length: texts.length }, () => 0)
99
+ directionFactors.value = Array.from({ length: texts.length }, () => 1)
100
100
  animLastTime = performance.now()
101
101
 
102
102
  const firstContainer = containerRef.value?.[0]
@@ -131,7 +131,7 @@
131
131
  :style="parallaxStyle"
132
132
  >
133
133
  <div
134
- :class="`${scrollerClassName} font-styles-logo flex py-2 text-center font-sans text-4xl font-medium tracking-[-0.02em] whitespace-nowrap text-neutral drop-shadow md:text-[5rem] md:leading-20`"
134
+ :class="`${scrollerClassName} font-styles-logo text-neutral flex py-2 text-center font-sans text-4xl font-medium tracking-[-0.02em] whitespace-nowrap drop-shadow md:text-[5rem] md:leading-20`"
135
135
  :style="{ transform: `translateX(${scrollTransforms[index] ?? '0px'})`, ...scrollerStyle }"
136
136
  >
137
137
  <span
@@ -57,7 +57,7 @@
57
57
 
58
58
  <template>
59
59
  <section ref="sectionRef" class="motion-horizontal-scroll h-screen overflow-hidden">
60
- <div ref="trackRef" class="h-full flex items-center will-change-transform">
60
+ <div ref="trackRef" class="flex h-full items-center will-change-transform">
61
61
  <slot />
62
62
  </div>
63
63
  </section>
@@ -72,8 +72,8 @@
72
72
  </script>
73
73
 
74
74
  <template>
75
- <section ref="sectionRef" class="motion-pinned-section h-screen relative">
76
- <div ref="contentRef" class="motion-pinned-content h-full flex items-center justify-center">
75
+ <section ref="sectionRef" class="motion-pinned-section relative h-screen">
76
+ <div ref="contentRef" class="motion-pinned-content flex h-full items-center justify-center">
77
77
  <slot />
78
78
  </div>
79
79
  </section>
@@ -49,7 +49,7 @@
49
49
  <!-- Linear Progress -->
50
50
  <div v-if="type === 'linear'" class="motion-scroll-progress-linear" v-bind="$attrs">
51
51
  <div
52
- class="w-full rounded-full overflow-hidden"
52
+ class="w-full overflow-hidden rounded-full"
53
53
  :style="{ height: `${height}px`, backgroundColor: bgColor }"
54
54
  >
55
55
  <div
@@ -60,7 +60,7 @@
60
60
  }"
61
61
  />
62
62
  </div>
63
- <span v-if="showPercentage" class="text-sm font-medium tabular-nums mt-2 block text-center">
63
+ <span v-if="showPercentage" class="mt-2 block text-center text-sm font-medium tabular-nums">
64
64
  {{ percentage }}%
65
65
  </span>
66
66
  </div>
@@ -51,7 +51,7 @@
51
51
 
52
52
  <template>
53
53
  <div
54
- class="bg-black/80 backdrop-blur-sm text-white rounded-xl transition-opacity duration-300"
54
+ class="rounded-xl bg-black/80 text-white backdrop-blur-sm transition-opacity duration-300"
55
55
  :class="[
56
56
  ...positionClasses,
57
57
  isScrolling ? 'opacity-100' : 'opacity-60',
@@ -61,31 +61,31 @@
61
61
  <div class="flex items-center" :class="[compact ? 'gap-4 text-xs' : 'gap-6 text-sm']">
62
62
  <!-- Scrolling indicator -->
63
63
  <div
64
- class="w-2 h-2 rounded-full transition-colors duration-100"
64
+ class="h-2 w-2 rounded-full transition-colors duration-100"
65
65
  :class="isScrolling ? 'bg-green-500' : 'bg-gray-600'"
66
66
  />
67
67
 
68
68
  <!-- Velocity -->
69
69
  <div v-if="show.includes('velocity')" class="text-center">
70
- <div v-if="!compact" class="text-gray-500 text-xs mb-0.5">VEL</div>
70
+ <div v-if="!compact" class="mb-0.5 text-xs text-gray-500">VEL</div>
71
71
  <div class="font-medium tabular-nums">{{ velocity.toFixed(2) }}</div>
72
72
  </div>
73
73
 
74
74
  <!-- Progress -->
75
75
  <div v-if="show.includes('progress')" class="text-center">
76
- <div v-if="!compact" class="text-gray-500 text-xs mb-0.5">PROG</div>
76
+ <div v-if="!compact" class="mb-0.5 text-xs text-gray-500">PROG</div>
77
77
  <div class="font-medium tabular-nums">{{ (progress * 100).toFixed(0) }}%</div>
78
78
  </div>
79
79
 
80
80
  <!-- Direction -->
81
81
  <div v-if="show.includes('direction')" class="text-center">
82
- <div v-if="!compact" class="text-gray-500 text-xs mb-0.5">DIR</div>
82
+ <div v-if="!compact" class="mb-0.5 text-xs text-gray-500">DIR</div>
83
83
  <div class="font-medium">{{ directionLabel }}</div>
84
84
  </div>
85
85
 
86
86
  <!-- Scroll Y -->
87
87
  <div v-if="show.includes('scrollY')" class="text-center">
88
- <div v-if="!compact" class="text-gray-500 text-xs mb-0.5">Y</div>
88
+ <div v-if="!compact" class="mb-0.5 text-xs text-gray-500">Y</div>
89
89
  <div class="font-medium tabular-nums">{{ Math.round(scrollY) }}px</div>
90
90
  </div>
91
91
  </div>
@@ -21,31 +21,31 @@
21
21
 
22
22
  /* Animation classes */
23
23
  .animate-fade-in {
24
- animation: fadeIn 0.3s ease-out forwards;
24
+ animation: fade-in 0.3s ease-out forwards;
25
25
  }
26
26
 
27
27
  .animate-fade-out {
28
- animation: fadeOut 0.3s ease-out forwards;
28
+ animation: fade-out 0.3s ease-out forwards;
29
29
  }
30
30
 
31
31
  .animate-slide-in-up {
32
- animation: slideInUp 0.3s ease-out forwards;
32
+ animation: slide-in-up 0.3s ease-out forwards;
33
33
  }
34
34
 
35
35
  .animate-slide-in-down {
36
- animation: slideInDown 0.3s ease-out forwards;
36
+ animation: slide-in-down 0.3s ease-out forwards;
37
37
  }
38
38
 
39
39
  .animate-slide-in-left {
40
- animation: slideInLeft 0.3s ease-out forwards;
40
+ animation: slide-in-left 0.3s ease-out forwards;
41
41
  }
42
42
 
43
43
  .animate-slide-in-right {
44
- animation: slideInRight 0.3s ease-out forwards;
44
+ animation: slide-in-right 0.3s ease-out forwards;
45
45
  }
46
46
 
47
47
  /* Keyframes */
48
- @keyframes fadeIn {
48
+ @keyframes fade-in {
49
49
  from {
50
50
  opacity: 0;
51
51
  }
@@ -55,7 +55,7 @@
55
55
  }
56
56
  }
57
57
 
58
- @keyframes fadeOut {
58
+ @keyframes fade-out {
59
59
  from {
60
60
  opacity: 1;
61
61
  }
@@ -65,7 +65,7 @@
65
65
  }
66
66
  }
67
67
 
68
- @keyframes slideInUp {
68
+ @keyframes slide-in-up {
69
69
  from {
70
70
  transform: translateY(20px);
71
71
  opacity: 0;
@@ -77,7 +77,7 @@
77
77
  }
78
78
  }
79
79
 
80
- @keyframes slideInDown {
80
+ @keyframes slide-in-down {
81
81
  from {
82
82
  transform: translateY(-20px);
83
83
  opacity: 0;
@@ -89,7 +89,7 @@
89
89
  }
90
90
  }
91
91
 
92
- @keyframes slideInLeft {
92
+ @keyframes slide-in-left {
93
93
  from {
94
94
  transform: translateX(-20px);
95
95
  opacity: 0;
@@ -101,7 +101,7 @@
101
101
  }
102
102
  }
103
103
 
104
- @keyframes slideInRight {
104
+ @keyframes slide-in-right {
105
105
  from {
106
106
  transform: translateX(20px);
107
107
  opacity: 0;
@@ -19,6 +19,7 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/three": "catalog:",
22
- "vite": "catalog:"
22
+ "vite": "catalog:",
23
+ "vite-plus": "catalog:"
23
24
  }
24
25
  }
@@ -12,17 +12,17 @@
12
12
  z-index: 9999;
13
13
  backdrop-filter: blur(8px);
14
14
  border-radius: 0.5rem;
15
- background: rgb(0 0 0 / 0.8);
15
+ background: oklch(0% 0 0deg / 0.8);
16
16
  padding: 0.75rem 1rem;
17
17
  min-width: 200px;
18
- color: #fff;
18
+ color: oklch(100% 0 0deg);
19
19
  font-size: 0.75rem;
20
20
  font-family: ui-monospace, monospace;
21
21
  }
22
22
 
23
23
  .shader-debug-title {
24
24
  margin-bottom: 0.5rem;
25
- color: #a78bfa;
25
+ color: oklch(70.9% 0.1592 293.54deg);
26
26
  font-weight: 600;
27
27
  }
28
28
 
@@ -33,9 +33,9 @@
33
33
  }
34
34
 
35
35
  .shader-debug-label {
36
- color: #94a3b8;
36
+ color: oklch(71.07% 0.0351 256.79deg);
37
37
  }
38
38
 
39
39
  .shader-debug-value {
40
- color: #22c55e;
40
+ color: oklch(72.27% 0.192 149.58deg);
41
41
  }
@@ -334,7 +334,7 @@ export function crtEffect(
334
334
 
335
335
  // 8x8 Bayer matrix values (normalized to 0-1 range)
336
336
  const BAYER_8X8_MATRIX = [
337
- 0.0 / 64.0,
337
+ 0, // 0 / 64
338
338
  48.0 / 64.0,
339
339
  12.0 / 64.0,
340
340
  60.0 / 64.0,
@@ -37,7 +37,7 @@ export type TSLMat4 = any
37
37
 
38
38
  export type GradientStop = {
39
39
  position: number
40
- color: TSLColor | TSLVec3
40
+ color: TSLColor
41
41
  }
42
42
 
43
43
  export type FBMOptions = {
@@ -1,2 +1,4 @@
1
1
  // Auto-imports are sourced directly from individual files in this directory.
2
2
  // See: noise.ts, math.ts, color.ts, uv.ts, animation.ts, patterns.ts, tween.ts, oklch.ts
3
+
4
+ export {}
@@ -12,6 +12,7 @@
12
12
  :root {
13
13
  /* rem term keeps this WCAG 1.4.4 zoom-safe; svi never vw (viewport-bar-collapse safe) */
14
14
  --fs: clamp(1rem, 0.95rem + 0.25svi, 1.125rem);
15
+
15
16
  /* rounded, not raw, so grid boundaries land on-pixel */
16
17
  line-height: round(nearest, var(--fs) * 1.5, 1px);
17
18
  }
@@ -21,6 +22,7 @@
21
22
  line-height */
22
23
  --unit: 1rlh;
23
24
  --measure-min: 22rem;
25
+
24
26
  /* margin floor > 0, steep svi slope so it shrinks fast on narrow screens */
25
27
  --edge-min: clamp(1rlh, 8svi, 3rlh);
26
28
  --avail-b: calc(100svh - 2 * var(--edge-min));
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import type { GridPreset, TrackConfig } from '../types/tracks'
4
4
  import { resolve, toColumnsCss } from './useGridTracks'
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import type { GridPreset, TrackConfig, TrackSegment } from './tracks'
4
4
 
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import { placementFromIndex, placementFromLines } from './placement'
4
4
 
@@ -72,7 +72,7 @@
72
72
 
73
73
  <template>
74
74
  <Teleport to="body">
75
- <div v-if="visible" :style class="grid-debug z-9999 fixed inset-0" aria-hidden="true">
75
+ <div v-if="visible" :style class="grid-debug fixed inset-0 z-9999" aria-hidden="true">
76
76
  <div v-for="i in cols" :key="i" :style="{ backgroundColor: color }" class="h-full" />
77
77
  </div>
78
78
  </Teleport>
@@ -30,15 +30,15 @@
30
30
  <template v-if="back">
31
31
  <UButton :to="back" variant="ghost" icon="i-lucide-arrow-left" />
32
32
  <div>
33
- <h1 class="text-3xl font-bold text-highlighted">{{ title }}</h1>
33
+ <h1 class="text-highlighted text-3xl font-bold">{{ title }}</h1>
34
34
  <p v-if="description" class="text-muted">{{ description }}</p>
35
35
  </div>
36
36
  </template>
37
37
 
38
38
  <!-- Centered page header (homepage, section intros) -->
39
39
  <template v-else>
40
- <h1 class="text-4xl font-bold text-highlighted">{{ title }}</h1>
41
- <p v-if="description" class="mt-3 text-lg text-muted">{{ description }}</p>
40
+ <h1 class="text-highlighted text-4xl font-bold">{{ title }}</h1>
41
+ <p v-if="description" class="text-muted mt-3 text-lg">{{ description }}</p>
42
42
  </template>
43
43
  </div>
44
44
  </template>
@@ -2,9 +2,12 @@
2
2
  /**
3
3
  * LayoutPage — canonical page wrapper for the Swiss Grid System.
4
4
  *
5
- * This is a fragment component (no wrapper element). The grid root is already
6
- * provided by LayoutMain at the layout level via <main class="grid-root">.
7
- * Adding another grid-root wrapper here would nest grids and misalign everything.
5
+ * The grid root is already provided by LayoutMain at the layout level via
6
+ * <main class="grid-root">. Adding another grid-root wrapper here would nest grids and
7
+ * misalign everything, so the single root element below is `display: contents` — it
8
+ * generates no box, and the header section and slot content still lay out as direct
9
+ * children of the grid root. A real root element (rather than a fragment) is what Vue's
10
+ * <Transition> and Nuxt's page-root check (NUXT_E4004) require.
8
11
  *
9
12
  * Responsibilities:
10
13
  * - SEO via useHead()
@@ -57,13 +60,15 @@
57
60
  </script>
58
61
 
59
62
  <template>
60
- <!-- Optional visible page header — rendered as a grid section -->
61
- <LayoutSection v-if="showHeader">
62
- <LayoutGridItem preset="centered">
63
- <LayoutPageHeader :title v-bind="description !== undefined ? { description } : {}" />
64
- </LayoutGridItem>
65
- </LayoutSection>
63
+ <div class="contents">
64
+ <!-- Optional visible page header — rendered as a grid section -->
65
+ <LayoutSection v-if="showHeader">
66
+ <LayoutGridItem preset="centered">
67
+ <LayoutPageHeader :title v-bind="description !== undefined ? { description } : {}" />
68
+ </LayoutGridItem>
69
+ </LayoutSection>
66
70
 
67
- <!-- Page content — direct children of grid-root (via LayoutMain in the layout) -->
68
- <slot />
71
+ <!-- Page content — grid items of grid-root (via LayoutMain in the layout) -->
72
+ <slot />
73
+ </div>
69
74
  </template>
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import {
4
4
  buildGridPlacementClasses,
@@ -6,7 +6,7 @@
6
6
  <template>
7
7
  <button
8
8
  aria-label="Open navigation menu"
9
- class="fixed right-0 top-0 flex cursor-pointer items-center justify-center border-0 bg-transparent p-4"
9
+ class="fixed top-0 right-0 flex cursor-pointer items-center justify-center border-0 bg-transparent p-4"
10
10
  :style="{ zIndex: z }"
11
11
  @click="() => open()"
12
12
  >
@@ -41,7 +41,7 @@
41
41
  :style="{ zIndex: useGridConfig().useZIndex('modal') }"
42
42
  >
43
43
  <button
44
- class="absolute right-[5vw] top-[3vh] cursor-pointer border-0 bg-transparent p-2"
44
+ class="absolute top-[3vh] right-[5vw] cursor-pointer border-0 bg-transparent p-2"
45
45
  aria-label="Close navigation"
46
46
  @click="dismiss"
47
47
  >
@@ -52,7 +52,7 @@
52
52
  <button
53
53
  v-for="link in links"
54
54
  :key="link.id"
55
- class="cursor-pointer border-0 bg-transparent px-4 py-3 text-3xl uppercase tracking-widest transition-all"
55
+ class="cursor-pointer border-0 bg-transparent px-4 py-3 text-3xl tracking-widest uppercase transition-all"
56
56
  :class="activeSection === link.id ? 'font-normal' : 'font-light'"
57
57
  @click="() => handleNav(link)"
58
58
  >
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import { resolveSiteConfig } from './site'
4
4
 
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import type { FeatureValue, RouteResolution, RoutingLayerConfig } from '../types/routing'
4
4
  import { resolveRoute } from './resolveRoute'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kmcom-nuxt-layers",
3
3
  "private": false,
4
- "version": "4.0.1",
4
+ "version": "5.0.0",
5
5
  "description": "Composable Nuxt 4 layers for building scalable Vue applications",
6
6
  "exports": {
7
7
  "./layers/core": "./layers/core/nuxt.config.ts",
@@ -153,7 +153,6 @@
153
153
  "@culur/config-stylelint": "^1.7.2",
154
154
  "@eslint/json": "^1.2.0",
155
155
  "@eslint/markdown": "^8.0.3",
156
- "@ianvs/prettier-plugin-sort-imports": "^4.7.1",
157
156
  "@iconify-json/lucide": "^1.2.126",
158
157
  "@netlify/nuxt": "0.3.7",
159
158
  "@nuxt/eslint": "^1.15.2",
@@ -171,7 +170,7 @@
171
170
  "@typescript-eslint/eslint-plugin": "^8.60.1",
172
171
  "@typescript-eslint/parser": "^8.60.1",
173
172
  "@vitejs/plugin-vue": "^6.0.8",
174
- "@vitest/coverage-v8": "^4.1.11",
173
+ "@vitest/coverage-v8": "5.0.4",
175
174
  "@vue/eslint-config-typescript": "^14.7.0",
176
175
  "@vue/test-utils": "^2.4.10",
177
176
  "@vueuse/core": "^14.3.0",
@@ -188,7 +187,6 @@
188
187
  "eslint-plugin-compat": "^7.0.2",
189
188
  "eslint-plugin-glsl": "0.0.0-wip",
190
189
  "eslint-plugin-pnpm": "^1.6.1",
191
- "eslint-plugin-prettier": "^5.5.6",
192
190
  "eslint-plugin-unicorn": "^64.0.0",
193
191
  "eslint-plugin-unused-imports": "^4.4.1",
194
192
  "eslint-plugin-vue": "^10.9.2",
@@ -196,32 +194,26 @@
196
194
  "happy-dom": "^20.10.3",
197
195
  "netlify-cli": "^26.1.0",
198
196
  "npm-check-updates": "^22.2.2",
199
- "nuxt": "latest",
197
+ "nuxt": "4.6.1",
200
198
  "pinia": "^4.0.3",
201
199
  "postcss-html": "^1.8.1",
202
- "prettier": "^3.8.3",
203
- "prettier-plugin-css-order": "^2.2.0",
204
- "prettier-plugin-glsl": "^0.3.1",
205
- "prettier-plugin-organize-attributes": "^1.0.0",
206
- "prettier-plugin-tailwind-styled-components": "^2.0.2",
207
- "prettier-plugin-tailwindcss": "^0.8.1",
208
200
  "stylelint": "^17.12.0",
209
201
  "stylelint-config-recommended-vue": "^1.6.1",
210
202
  "stylelint-config-standard": "^40.0.0",
211
203
  "stylelint-config-standard-vue": "^1.0.0",
212
204
  "stylelint-config-tailwindcss": "^1.0.1",
213
205
  "stylelint-no-unsupported-browser-features": "^8.1.1",
214
- "stylelint-prettier": "^5.0.3",
215
206
  "tailwindcss": "latest",
216
- "turbo": "^2.9.18",
207
+ "turbo": "^2.11.8",
217
208
  "type-fest": "^5.7.0",
218
209
  "typescript": "^6",
219
210
  "vite-plugin-checker": "^0.14.5",
220
- "vitest": "^4.1.11",
211
+ "vitest": "5.0.4",
221
212
  "vue": "3.5.35",
222
213
  "vue-tsc": "3.3.11",
223
214
  "zod": "^4.4.3",
224
- "zod-to-json-schema": "^3.25.2"
215
+ "zod-to-json-schema": "^3.25.2",
216
+ "vite-plus": "1.2.0"
225
217
  },
226
218
  "browserslist": [
227
219
  "last 2 Chrome major versions",
@@ -237,10 +229,6 @@
237
229
  "engines": {
238
230
  "node": ">=24 <25"
239
231
  },
240
- "volta": {
241
- "node": "24.16.0",
242
- "pnpm": "11.5.3"
243
- },
244
232
  "scripts": {
245
233
  "dev": "pnpm -F playground dev",
246
234
  "dev:debug": "pnpm -F debug dev",
@@ -251,25 +239,25 @@
251
239
  "dev:database": "PLAYGROUND_LAYERS=core,database pnpm -F playground dev",
252
240
  "dev:auth": "PLAYGROUND_LAYERS=core,auth pnpm -F playground dev",
253
241
  "build": "turbo run build",
254
- "lint": "turbo run lint",
255
- "lint:fix": "turbo run lint -- --fix",
242
+ "lint": "vp lint && turbo run lint",
243
+ "lint:fix": "vp lint --fix && turbo run lint -- --fix",
256
244
  "lint:style": "stylelint \"**/*.{vue,scss,css}\"",
257
245
  "lint:style:fix": "stylelint \"**/*.{vue,scss,css}\" --fix",
258
- "format": "prettier --write .",
259
- "format:check": "prettier --check .",
246
+ "format": "vp fmt .",
247
+ "format:check": "vp fmt --check .",
260
248
  "check": "pnpm run lint && pnpm run typecheck && pnpm run format:check",
261
249
  "fix": "pnpm run format && pnpm run lint:fix && pnpm run lint:style:fix",
262
- "fix:layer": "f(){ pnpm turbo run lint --filter \"./layers/$1\" -- --fix && prettier --write \"layers/$1\"; }; f",
263
- "fix:app": "f(){ pnpm turbo run lint --filter \"./apps/$1\" -- --fix && prettier --write \"apps/$1\"; }; f",
250
+ "fix:layer": "f(){ pnpm turbo run lint --filter \"./layers/$1\" -- --fix && vp fmt \"layers/$1\"; }; f",
251
+ "fix:app": "f(){ pnpm turbo run lint --filter \"./apps/$1\" -- --fix && vp fmt \"apps/$1\"; }; f",
264
252
  "validate": "pnpm run check && pnpm run build",
265
253
  "typecheck": "vue-tsc --noEmit -p tsconfig.typecheck.json",
266
- "test": "vitest run",
267
- "test:coverage": "vitest run --coverage",
268
- "test:watch": "vitest",
269
- "test:unit": "vitest run --project unit",
270
- "test:vitest": "vitest run --project vitest",
271
- "test:vue": "vitest run --project vue",
272
- "test:nuxt": "vitest run --project nuxt",
254
+ "test": "vp test run",
255
+ "test:coverage": "vp test run --coverage",
256
+ "test:watch": "vp test",
257
+ "test:unit": "vp test run --project unit",
258
+ "test:vitest": "vp test run --project vitest",
259
+ "test:vue": "vp test run --project vue",
260
+ "test:nuxt": "vp test run --project nuxt",
273
261
  "test:playwright": "playwright test",
274
262
  "test:e2e": "playwright test",
275
263
  "clean": "pnpm -r exec rm -rf .nuxt .output .data",