@sit-onyx/nuxt-docs 0.8.0 → 0.8.1-dev-20261109124054
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.
|
@@ -52,7 +52,12 @@ const { data, status } = await useLazyAsyncData(
|
|
|
52
52
|
}),
|
|
53
53
|
);
|
|
54
54
|
|
|
55
|
-
return sections.
|
|
55
|
+
return sections.flat();
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
// do not fetch on the server to not block the hydration since the search is only needed client-side / after interaction
|
|
59
|
+
// and the data can have hundredths of kb in size
|
|
60
|
+
server: false,
|
|
56
61
|
},
|
|
57
62
|
);
|
|
58
63
|
|
|
@@ -65,7 +65,13 @@ export const useSidebarNavigation = async <
|
|
|
65
65
|
const { data } = await useAsyncData(
|
|
66
66
|
() => `navigation-${options.collection.value}-${locale.value}`,
|
|
67
67
|
() => queryCollectionNavigation(options.collection.value, options.fields),
|
|
68
|
-
{
|
|
68
|
+
{
|
|
69
|
+
default: () => [],
|
|
70
|
+
// the navigation for a collection is "static" (always the same for each requests, since it relies on the content file structure)
|
|
71
|
+
// so multiple requests would always return the same value
|
|
72
|
+
// therefore, we "defer" multiple requests so only the first one is completed and all other receive the same value
|
|
73
|
+
dedupe: "defer",
|
|
74
|
+
},
|
|
69
75
|
);
|
|
70
76
|
|
|
71
77
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sit-onyx/nuxt-docs",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1-dev-20261109124054",
|
|
4
4
|
"description": "Nuxt layer/template for creating documentations with the onyx design system",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/SchwarzIT/onyx/issues"
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"@fontsource-variable/source-sans-3": "^5.3.1",
|
|
29
29
|
"@nuxt/content": "^3.16.2",
|
|
30
30
|
"@nuxt/test-utils": "^4.3.4",
|
|
31
|
-
"@nuxtjs/color-mode": "^4.0
|
|
31
|
+
"@nuxtjs/color-mode": "^4.1.0",
|
|
32
32
|
"@nuxtjs/mdc": "~0.23.2",
|
|
33
33
|
"@playwright/experimental-ct-vue": "1.62.1",
|
|
34
34
|
"@playwright/test": "1.62.1",
|
|
35
|
-
"@sit-onyx/icons": "^1.
|
|
35
|
+
"@sit-onyx/icons": "^1.14.0-dev-20261109124054",
|
|
36
36
|
"@sit-onyx/nuxt": "^1.2.0",
|
|
37
37
|
"@sit-onyx/shared": "^0.1.0",
|
|
38
|
-
"nuxt": "4.6.
|
|
39
|
-
"sass-embedded": "1.
|
|
40
|
-
"sit-onyx": "^1.
|
|
38
|
+
"nuxt": "4.6.4",
|
|
39
|
+
"sass-embedded": "1.107.1",
|
|
40
|
+
"sit-onyx": "^1.23.0-dev-20261109124054",
|
|
41
41
|
"typescript": "6.0.3",
|
|
42
42
|
"vue": "3.5.44"
|
|
43
43
|
},
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"@nuxtjs/color-mode": ">= 4",
|
|
49
49
|
"@nuxtjs/i18n": ">= 10",
|
|
50
50
|
"@nuxtjs/mdc": ">= 0.20.2",
|
|
51
|
-
"@sit-onyx/icons": "^1.
|
|
51
|
+
"@sit-onyx/icons": "^1.14.0-dev-20261109124054",
|
|
52
52
|
"@sit-onyx/nuxt": "^1.2.0",
|
|
53
53
|
"sass-embedded": ">= 1",
|
|
54
|
-
"sit-onyx": "^1.
|
|
54
|
+
"sit-onyx": "^1.23.0-dev-20261109124054"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=20"
|