kmcom-nuxt-layers 2.7.4 → 2.7.5

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.
@@ -16,3 +16,10 @@
16
16
 
17
17
  @import '#layers/core/app/assets/css/layout.css';
18
18
  @import '#layers/core/app/assets/css/base.css';
19
+
20
+ /* Relative path, not the '#layers/typography' alias — that alias only exists
21
+ when the typography layer is in a consumer's `extends`. This file is a CSS
22
+ import (needed so Tailwind treats it as part of this one build root, see
23
+ typography.css's header comment), and must resolve even for consumers that
24
+ only extend core, since it lives in the same single published package. */
25
+ @import '../../../../typography/app/assets/css/typography.css';
@@ -0,0 +1,12 @@
1
+ import { _api } from '@iconify/vue'
2
+
3
+ // @nuxt/icon@2.5.0 wires `_api.setFetch(useRequestFetch().native)`, but this
4
+ // Nuxt/ofetch version doesn't expose `.native` on the request-scoped fetch,
5
+ // so every icon lookup gets `undefined` as its fetch fn and fails instantly.
6
+ // Re-point it at the global fetch after @nuxt/icon's own plugin has run.
7
+ export default defineNuxtPlugin({
8
+ name: 'icon-fetch-fix',
9
+ setup() {
10
+ _api.setFetch(fetch)
11
+ },
12
+ })
@@ -19,6 +19,9 @@
19
19
  "nuxtupdate": "npx nuxi@latest upgrade --dedupe --force",
20
20
  "nuxiupgrade": "npx nuxi upgrade"
21
21
  },
22
+ "dependencies": {
23
+ "@iconify/vue": "catalog:"
24
+ },
22
25
  "devDependencies": {
23
26
  "@vite-pwa/nuxt": "catalog:"
24
27
  }
@@ -1,16 +1,10 @@
1
1
  /*
2
- * Loaded as its own global stylesheet (see layers/typography/nuxt.config.ts
3
- * `css:` array), not @import-chained through core.css's Tailwind root — so
4
- * @utility below is invisible to Tailwind unless this file is its own build
5
- * root. theme+utilities only (no preflight) to avoid double-emitting the
6
- * reset core.css already provides.
2
+ * @import-chained through core.css's single Tailwind build root (see
3
+ * layers/core/app/assets/css/core.css) — must NOT open its own
4
+ * 'tailwindcss/theme'/'tailwindcss/utilities' root, that creates a second
5
+ * parallel Tailwind build and breaks content-scan coverage for @nuxt/ui
6
+ * utilities elsewhere in the app (see kmcom-nuxt-layers-typography-css-bug.md).
7
7
  */
8
- @import 'tailwindcss/theme' layer(theme);
9
- @import 'tailwindcss/utilities' layer(utilities);
10
-
11
- @source '../../../../*/app/**/*.{vue,ts}';
12
- @source '../../../../../apps/*/app/**/*.{vue,ts}';
13
-
14
8
  :root {
15
9
  /* Fluid type scale — rounding interval. rem, never px (see §5 a11y). */
16
10
  --fluid-step: 0.25rem;
@@ -8,8 +8,6 @@ export default defineNuxtConfig({
8
8
  '#layers/typography/types': `${import.meta.dirname}/app/types`,
9
9
  },
10
10
 
11
- css: ['#layers/typography/app/assets/css/typography.css'],
12
-
13
11
  compatibilityDate: '2026-06-06',
14
12
 
15
13
  typescript: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kmcom-nuxt-layers",
3
3
  "private": false,
4
- "version": "2.7.4",
4
+ "version": "2.7.5",
5
5
  "description": "Composable Nuxt 4 layers for building scalable Vue applications",
6
6
  "exports": {
7
7
  "./layers/core": "./layers/core/nuxt.config.ts",