@sit-onyx/nuxt-docs 0.5.2-dev-20260423123216 → 0.6.0-dev-20260423172448

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.
@@ -14,6 +14,15 @@ type SearchGroup = {
14
14
  options: OnyxGlobalSearchOptionProps[];
15
15
  };
16
16
 
17
+ const props = defineProps<{
18
+ /**
19
+ * Options to use when generating the search sections.
20
+ *
21
+ * @see https://content.nuxt.com/docs/utils/query-collection-search-sections#api
22
+ */
23
+ options?: Parameters<typeof queryCollectionSearchSections>[1];
24
+ }>();
25
+
17
26
  const { t, locale, locales } = useI18n();
18
27
  const localePath = useLocalePath();
19
28
 
@@ -24,10 +33,10 @@ watch(isOpen, (open) => {
24
33
  });
25
34
 
26
35
  const { data, status } = await useLazyAsyncData(
27
- () => `search-sections-${locale.value}`,
36
+ () => `search-sections-${locale.value}-${props.options}`,
28
37
  () => {
29
38
  const collection = `content_${locale.value}` as keyof Collections;
30
- return queryCollectionSearchSections(collection);
39
+ return queryCollectionSearchSections(collection, props.options);
31
40
  },
32
41
  );
33
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sit-onyx/nuxt-docs",
3
- "version": "0.5.2-dev-20260423123216",
3
+ "version": "0.6.0-dev-20260423172448",
4
4
  "description": "Nuxt layer/template for creating documentations with the onyx design system",
5
5
  "type": "module",
6
6
  "author": "Schwarz IT KG",
@@ -23,7 +23,7 @@
23
23
  "nuxt.config.ts"
24
24
  ],
25
25
  "dependencies": {
26
- "@sit-onyx/mdc": "^0.2.0-dev-20260423123216"
26
+ "@sit-onyx/mdc": "^0.2.0-dev-20260423172448"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@fontsource-variable/source-code-pro": ">= 5",
@@ -35,7 +35,7 @@
35
35
  "sass-embedded": ">= 1",
36
36
  "@sit-onyx/icons": "^1.9.0",
37
37
  "@sit-onyx/nuxt": "^1.0.1",
38
- "sit-onyx": "^1.12.0"
38
+ "sit-onyx": "^1.13.0-dev-20260423172448"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@fontsource-variable/source-code-pro": "^5.2.7",
@@ -53,7 +53,7 @@
53
53
  "@sit-onyx/icons": "^1.9.0",
54
54
  "@sit-onyx/nuxt": "^1.0.1",
55
55
  "@sit-onyx/shared": "^0.1.0",
56
- "sit-onyx": "^1.12.0"
56
+ "sit-onyx": "^1.13.0-dev-20260423172448"
57
57
  },
58
58
  "scripts": {
59
59
  "dev": "pnpm dev:prepare && nuxi dev playground",