@altafusion/fugue-app-shell 0.8.0 → 0.9.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/CHANGELOG.md +16 -0
- package/app/layouts/default.vue +12 -0
- package/nuxt.config.ts +2 -16
- package/package.json +5 -5
- package/themes/tailwind-shell.css +1 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @altafusion/shell
|
|
2
2
|
|
|
3
|
+
## 0.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5470fe8: Typography now belongs to the site, not to a layer. **Sites that relied on the shell's Noto fonts must declare them.**
|
|
8
|
+
|
|
9
|
+
- `fugue-app-shell` no longer declares the Noto Sans, Noto Sans Display and DM Mono families, and `themes/tailwind-shell.css` no longer sets `--font-*`. The runtime brand switcher (`useBrandTheme`, the `brand-theme` plugin, `brand-variants.css`) stays.
|
|
10
|
+
- `fugue-theme` defaults to neutral system fonts. A site sets `--site-font-sans`, `--site-font-heading`, `--site-font-serif` and `--site-font-mono` in its own unlayered `:root`, and declares families in `fonts.families` in its `nuxt.config`. See `templates/fugue-content-site`.
|
|
11
|
+
- Why: layer array config concatenates and cannot be subtracted, so brand fonts in a layer could not be replaced by a site.
|
|
12
|
+
- Package descriptions rewritten to say what each layer adds and extends.
|
|
13
|
+
- 95b58c2: The default footer shows the site's version (`v1.2.3`) after the copyright line when the `@altafusion/fugue-devtools` layer is extended (it reads the site's `package.json` at build time). Without that layer nothing is shown. `templates/fugue-content-site` now extends `@altafusion/fugue-devtools`, like the Camila site.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- @altafusion/fugue-ui@0.9.0
|
|
18
|
+
|
|
3
19
|
## 0.8.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/app/layouts/default.vue
CHANGED
|
@@ -3,6 +3,8 @@ const { title } = usePageChrome()
|
|
|
3
3
|
const { showHeader, showFooter, mainPadding } = useShellChrome()
|
|
4
4
|
const { brand } = useShellSiteHeader()
|
|
5
5
|
const footerRight = useShellFooterRight()
|
|
6
|
+
// The site's own version, when the fugue-devtools layer is extended (it reads package.json at build time). Nothing without it.
|
|
7
|
+
const appVersion = (useRuntimeConfig().public as { fugueDevtools?: { app?: { version?: string } } }).fugueDevtools?.app?.version
|
|
6
8
|
</script>
|
|
7
9
|
|
|
8
10
|
<template>
|
|
@@ -32,6 +34,10 @@ const footerRight = useShellFooterRight()
|
|
|
32
34
|
<div class="shell-footer__inner">
|
|
33
35
|
<p class="shell-footer__default">
|
|
34
36
|
© {{ new Date().getFullYear() }} {{ brand.name }}
|
|
37
|
+
<span
|
|
38
|
+
v-if="appVersion"
|
|
39
|
+
class="shell-footer__version"
|
|
40
|
+
>v{{ appVersion }}</span>
|
|
35
41
|
</p>
|
|
36
42
|
<Component
|
|
37
43
|
:is="footerRight"
|
|
@@ -60,6 +66,12 @@ const footerRight = useShellFooterRight()
|
|
|
60
66
|
gap: var(--space-4, 1rem);
|
|
61
67
|
}
|
|
62
68
|
|
|
69
|
+
.shell-footer__version {
|
|
70
|
+
margin-inline-start: var(--space-2, 0.5rem);
|
|
71
|
+
opacity: 0.55;
|
|
72
|
+
font-size: 0.75rem;
|
|
73
|
+
}
|
|
74
|
+
|
|
63
75
|
.shell-footer__default {
|
|
64
76
|
margin: 0;
|
|
65
77
|
font-size: var(--font-size-sm, 0.875rem);
|
package/nuxt.config.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @altafusion/fugue-app-shell — Nuxt layer
|
|
3
3
|
*
|
|
4
4
|
* Site layouts (default, minimal), product layout (Nuxt UI page chrome),
|
|
5
|
-
* shell composables,
|
|
6
|
-
* landing/shell section CSS
|
|
5
|
+
* shell composables, runtime brand switcher with its CSS (`assets/css/brand-variants.css`),
|
|
6
|
+
* and landing/shell section CSS. No fonts: sites declare their own (see fugue-theme `--site-font-*`).
|
|
7
7
|
* Extends fugue-ui for generic widgets.
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -18,20 +18,6 @@ const layerRoot = fileURLToPath(new URL('.', import.meta.url))
|
|
|
18
18
|
export default defineNuxtConfig({
|
|
19
19
|
extends: ['@altafusion/fugue-ui'],
|
|
20
20
|
|
|
21
|
-
/** Product sans/serif/mono — declared in themes/tailwind-shell.css @theme; loaded by @nuxt/fonts. */
|
|
22
|
-
fonts: {
|
|
23
|
-
families: [
|
|
24
|
-
{
|
|
25
|
-
name: 'Noto Sans',
|
|
26
|
-
provider: 'google',
|
|
27
|
-
weights: [300, 400, 500, 600, 700],
|
|
28
|
-
global: true
|
|
29
|
-
},
|
|
30
|
-
{ name: 'Noto Sans Display', provider: 'google' },
|
|
31
|
-
{ name: 'DM Mono', provider: 'google' }
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
|
|
35
21
|
css: [
|
|
36
22
|
resolve(layerRoot, './assets/css/brand-variants.css'),
|
|
37
23
|
resolve(layerRoot, './assets/css/shell-sections.css')
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altafusion/fugue-app-shell",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "0.9.0",
|
|
5
|
+
"description": "Site chrome layer on fugue-ui: layouts, header/footer, nav composables and a runtime brand switcher. No fonts; sites own typography",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/altafusion/fugue/tree/main/packages-product/fugue-app-shell#readme",
|
|
8
8
|
"bugs": {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"vue-router": "^5.0.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@altafusion/fugue-ui": "0.
|
|
34
|
+
"@altafusion/fugue-ui": "0.9.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@altafusion/eslint-config-preset": "0.
|
|
38
|
-
"@altafusion/nuxt-base": "0.
|
|
37
|
+
"@altafusion/eslint-config-preset": "0.9.0",
|
|
38
|
+
"@altafusion/nuxt-base": "0.9.0",
|
|
39
39
|
"@iconify-json/lucide": "^1.2.161",
|
|
40
40
|
"@types/node": "^26.6.11",
|
|
41
41
|
"eslint": "^10.16.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Shell Tailwind extensions: header height and page overflow. Fonts are not set here; sites own them.
|
|
3
3
|
* Import after `@altafusion/fugue-theme/themes/tailwind.css` in app `main.css`.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -15,13 +15,6 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
@theme {
|
|
19
|
-
--font-sans: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
|
|
20
|
-
--font-heading: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
|
|
21
|
-
--font-serif: 'Noto Sans Display', ui-serif, Georgia, serif;
|
|
22
|
-
--font-mono: 'DM Mono', ui-monospace, monospace;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
18
|
@layer base {
|
|
26
19
|
html {
|
|
27
20
|
font-family: var(--font-sans);
|