@ulu/frontend-vue 0.1.0-beta.20 → 0.1.0-beta.22
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.
|
@@ -17,7 +17,7 @@ import { pageTitles } from './usePageTitle.js';
|
|
|
17
17
|
*/
|
|
18
18
|
export function useDocumentTitle(options = {}) {
|
|
19
19
|
const {
|
|
20
|
-
titleTemplate = '%s
|
|
20
|
+
titleTemplate = '%s',
|
|
21
21
|
useRoute = defaultUseRoute,
|
|
22
22
|
useHead = defaultUseHead
|
|
23
23
|
} = options;
|
|
@@ -37,7 +37,7 @@ export function useDocumentTitle(options = {}) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
// Format the title with the template, or provide a default.
|
|
40
|
-
return title ? titleTemplate.replace('%s', title) : '
|
|
40
|
+
return title ? titleTemplate.replace('%s', title) : 'App';
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
// useHead is reactive, so it will automatically update when documentTitle changes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ulu/frontend-vue",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.22",
|
|
4
4
|
"description": "A modular and tree-shakeable Vue 3 component library for the Ulu frontend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"types"
|
|
10
10
|
],
|
|
11
11
|
"module": "./lib/index.js",
|
|
12
|
+
"types": "./types/index.d.ts",
|
|
12
13
|
"exports": {
|
|
13
14
|
".": {
|
|
14
15
|
"import": "./lib/index.js"
|
|
@@ -58,9 +59,9 @@
|
|
|
58
59
|
"peerDependencies": {
|
|
59
60
|
"@headlessui/vue": "^1.7.23",
|
|
60
61
|
"@ulu/frontend": "^0.1.0-beta.102",
|
|
62
|
+
"@unhead/vue": "^2.0.11",
|
|
61
63
|
"vue": "^3.5.17",
|
|
62
|
-
"vue-router": "^4.5.1"
|
|
63
|
-
"@unhead/vue": "^2.0.11"
|
|
64
|
+
"vue-router": "^4.5.1"
|
|
64
65
|
},
|
|
65
66
|
"optionalDependencies": {
|
|
66
67
|
"fuse.js": "^6.6.2",
|
|
@@ -81,6 +82,7 @@
|
|
|
81
82
|
"@storybook/addon-links": "^9.1.1",
|
|
82
83
|
"@storybook/vue3-vite": "^9.1.1",
|
|
83
84
|
"@ulu/frontend": "^0.1.0-beta.102",
|
|
85
|
+
"@unhead/vue": "^2.0.11",
|
|
84
86
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
85
87
|
"ollama": "^0.5.16",
|
|
86
88
|
"react": "^19.1.1",
|
|
@@ -90,8 +92,7 @@
|
|
|
90
92
|
"storybook-addon-vue-mdx": "^2.0.2",
|
|
91
93
|
"typescript": "^5.3.3",
|
|
92
94
|
"vite": "^7.0.0",
|
|
93
|
-
"vue-router": "^4.5.1"
|
|
94
|
-
"@unhead/vue": "^2.0.11"
|
|
95
|
+
"vue-router": "^4.5.1"
|
|
95
96
|
},
|
|
96
97
|
"volta": {
|
|
97
98
|
"node": "22.17.0"
|