@altafusion/fugue-ui-base 0.8.0 → 0.9.1
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/CHANGELOG.md +15 -0
- package/nuxt.config.ts +11 -0
- package/package.json +4 -4
- package/types/nuxt-fonts.d.ts +28 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @altafusion/fugue-nuxt-ui
|
|
2
2
|
|
|
3
|
+
## 0.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3bea6c3: Type the top-level `fonts` option of `nuxt.config` for every site that extends `fugue-ui-base`. It was only typed inside the monorepo (the shell's own config loaded the declaration), so a site built from published packages got `'fonts' does not exist in type 'NuxtConfigInput'` once it declared its own fonts. The declaration moves from `fugue-app-shell` to `fugue-ui-base` and ships through a `prepare:types` hook.
|
|
8
|
+
- @altafusion/eslint-config-preset@0.9.1
|
|
9
|
+
- @altafusion/nuxt-base@0.9.1
|
|
10
|
+
|
|
11
|
+
## 0.9.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- @altafusion/eslint-config-preset@0.9.0
|
|
16
|
+
- @altafusion/nuxt-base@0.9.0
|
|
17
|
+
|
|
3
18
|
## 0.8.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/nuxt.config.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { resolve } from 'node:path'
|
|
11
|
+
import { fileURLToPath } from 'node:url'
|
|
11
12
|
|
|
12
13
|
export default defineNuxtConfig({
|
|
13
14
|
extends: ['@altafusion/nuxt-base'],
|
|
@@ -22,4 +23,14 @@ export default defineNuxtConfig({
|
|
|
22
23
|
css: [
|
|
23
24
|
resolve(__dirname, './assets/css/nuxt-ui.css'),
|
|
24
25
|
],
|
|
26
|
+
|
|
27
|
+
// Ship the `fonts` option types to every site that extends this layer (see types/nuxt-fonts.d.ts).
|
|
28
|
+
hooks: {
|
|
29
|
+
// `nodeReferences` is the project that type-checks `nuxt.config.ts` itself, which is where `fonts` is written.
|
|
30
|
+
'prepare:types': ({ references, nodeReferences }) => {
|
|
31
|
+
const path = fileURLToPath(new URL('./types/nuxt-fonts.d.ts', import.meta.url))
|
|
32
|
+
references.push({ path })
|
|
33
|
+
nodeReferences.push({ path })
|
|
34
|
+
},
|
|
35
|
+
},
|
|
25
36
|
})
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altafusion/fugue-ui-base",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "0.9.1",
|
|
5
|
+
"description": "Nuxt UI + Tailwind foundation layer. Extends nuxt-base. No brand tokens, fonts or widgets",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/altafusion/fugue/tree/main/packages-fugue/fugue-ui-base#readme",
|
|
8
8
|
"bugs": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"nuxt": ">=4.0.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@altafusion/eslint-config-preset": "0.
|
|
29
|
-
"@altafusion/nuxt-base": "0.
|
|
28
|
+
"@altafusion/eslint-config-preset": "0.9.1",
|
|
29
|
+
"@altafusion/nuxt-base": "0.9.1",
|
|
30
30
|
"@nuxt/eslint": "^1.17.0",
|
|
31
31
|
"@nuxt/icon": "^2.6.3",
|
|
32
32
|
"@nuxt/ui": "^4.13.1",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types the top-level `fonts` option of `nuxt.config`. Nuxt UI registers @nuxt/fonts, but the module does not type the key
|
|
3
|
+
* for a site's own config unless the site lists it in `modules`. Loosely typed on purpose: @nuxt/fonts is not a dependency here.
|
|
4
|
+
*/
|
|
5
|
+
interface FugueFontFamily {
|
|
6
|
+
name: string
|
|
7
|
+
provider?: string
|
|
8
|
+
weights?: Array<number | string>
|
|
9
|
+
styles?: string[]
|
|
10
|
+
global?: boolean
|
|
11
|
+
[key: string]: unknown
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface FugueFontsConfig {
|
|
15
|
+
families?: FugueFontFamily[]
|
|
16
|
+
[key: string]: unknown
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare module '@nuxt/schema' {
|
|
20
|
+
interface NuxtConfig {
|
|
21
|
+
fonts?: FugueFontsConfig | false
|
|
22
|
+
}
|
|
23
|
+
interface NuxtConfigInput {
|
|
24
|
+
fonts?: FugueFontsConfig | false
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export {}
|