@sit-onyx/nuxt 1.2.0-dev-20261015143348 → 1.2.0-dev-20261016064123

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/dist/module.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { stat } from 'node:fs/promises';
2
- import { defineNuxtModule, useLogger, createResolver, addComponent, addPlugin, addImports } from '@nuxt/kit';
2
+ import { defineNuxtModule, useLogger, createResolver, addComponent, addPlugin, addImports, addComponentsDir } from '@nuxt/kit';
3
3
  import * as onyx from 'sit-onyx';
4
4
 
5
5
  const module$1 = defineNuxtModule({
@@ -64,6 +64,7 @@ const module$1 = defineNuxtModule({
64
64
  name: "createOnyxScrollBehavior"
65
65
  }
66
66
  ]);
67
+ addComponentsDir({ path: resolve("./runtime/components") });
67
68
  }
68
69
  });
69
70
  function getModuleIndex(modules, ...moduleNames) {
@@ -0,0 +1,7 @@
1
+ type ErrorLike = Pick<Error, "message">;
2
+ type __VLS_Props = {
3
+ error: ErrorLike;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,51 @@
1
+ <script setup>
2
+ import { useLocalePath } from "#i18n";
3
+ import { clearError } from "#imports";
4
+ const props = defineProps({
5
+ error: { type: Object, required: true }
6
+ });
7
+ const localePath = useLocalePath();
8
+ const handleBackHome = () => clearError({ redirect: localePath("/") });
9
+ </script>
10
+
11
+ <template>
12
+ <div class="onyx-error onyx-component">
13
+ <OnyxErrorSVG class="onyx-error__image" />
14
+
15
+ <div class="onyx-error__headline">
16
+ <OnyxHeadline is="h1">{{ props.error.message }}</OnyxHeadline>
17
+ <OnyxButton :label="$t('onyx.errors.backToHome')" @click="handleBackHome" />
18
+ </div>
19
+
20
+ <OnyxAccordion>
21
+ <OnyxAccordionItem value="details">
22
+ <template #header>{{ $t("onyx.errors.technicalDetails") }}</template>
23
+ <pre class="onyx-error__details">{{ JSON.stringify(props.error, null, 2) }}</pre>
24
+ </OnyxAccordionItem>
25
+ </OnyxAccordion>
26
+ </div>
27
+ </template>
28
+
29
+ <style scoped>
30
+ .onyx-error {
31
+ display: flex;
32
+ flex-direction: column;
33
+ align-items: center;
34
+ gap: var(--onyx-density-3xl);
35
+ }
36
+ .onyx-error__image {
37
+ width: 32rem;
38
+ display: block;
39
+ }
40
+ .onyx-error__headline {
41
+ display: flex;
42
+ flex-direction: column;
43
+ align-items: center;
44
+ gap: var(--onyx-density-md);
45
+ }
46
+ .onyx-error__details {
47
+ white-space: pre-wrap;
48
+ overflow-wrap: anywhere;
49
+ font-family: var(--onyx-font-family-mono);
50
+ }
51
+ </style>
@@ -0,0 +1,7 @@
1
+ type ErrorLike = Pick<Error, "message">;
2
+ type __VLS_Props = {
3
+ error: ErrorLike;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sit-onyx/nuxt",
3
- "version": "1.2.0-dev-20261015143348",
3
+ "version": "1.2.0-dev-20261016064123",
4
4
  "description": "A Nuxt module to easily integrate onyx into Nuxt projects",
5
5
  "homepage": "https://onyx.schwarz",
6
6
  "bugs": {
@@ -33,13 +33,13 @@
33
33
  "@nuxtjs/i18n": "^10.6.0",
34
34
  "@sit-onyx/shared": "^0.1.0",
35
35
  "nuxt": "4.5.2",
36
- "sit-onyx": "^1.21.1-dev-20261015143348",
36
+ "sit-onyx": "^1.21.1-dev-20261016064123",
37
37
  "typescript": "6.0.3",
38
38
  "unbuild": "^3.6.1",
39
39
  "vue-i18n": "^11.4.14"
40
40
  },
41
41
  "peerDependencies": {
42
- "sit-onyx": "^1.21.1-dev-20261015143348"
42
+ "sit-onyx": "^1.21.1-dev-20261016064123"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=20"