@sit-onyx/nuxt 1.0.0-beta.194 → 1.0.0-beta.196

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.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@sit-onyx/nuxt",
3
3
  "configKey": "onyx",
4
- "version": "1.0.0-beta.193",
4
+ "version": "1.0.0-beta.195",
5
5
  "builder": {
6
- "@nuxt/module-builder": "0.8.4",
6
+ "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "unknown"
8
8
  }
9
9
  }
package/dist/module.mjs CHANGED
@@ -58,10 +58,8 @@ const module = defineNuxtModule({
58
58
  function getModuleIndex(modules, ...moduleNames) {
59
59
  for (let i = 0; i < modules.length; i++) {
60
60
  const module = modules[i];
61
- if (typeof module === "string" && moduleNames.includes(module))
62
- return i;
63
- if (Array.isArray(module) && moduleNames.includes(module[0]))
64
- return i;
61
+ if (typeof module === "string" && moduleNames.includes(module)) return i;
62
+ if (Array.isArray(module) && moduleNames.includes(module[0])) return i;
65
63
  }
66
64
  return -1;
67
65
  }
package/dist/types.d.mts CHANGED
@@ -1,7 +1,3 @@
1
- import type { NuxtModule } from '@nuxt/schema'
1
+ export { default } from './module.mjs'
2
2
 
3
- import type { default as Module } from './module.js'
4
-
5
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
-
7
- export { default } from './module.js'
3
+ export { type ModuleOptions } from './module.mjs'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sit-onyx/nuxt",
3
- "version": "1.0.0-beta.194",
3
+ "version": "1.0.0-beta.196",
4
4
  "description": "A Nuxt module to easily integrate onyx into Nuxt projects",
5
5
  "author": "Schwarz IT KG",
6
6
  "license": "Apache-2.0",
@@ -16,29 +16,28 @@
16
16
  "type": "module",
17
17
  "exports": {
18
18
  ".": {
19
- "types": "./dist/types.d.ts",
19
+ "types": "./dist/types.d.mts",
20
20
  "import": "./dist/module.mjs",
21
- "require": "./dist/module.cjs"
21
+ "require": "./dist/module.mjs"
22
22
  }
23
23
  },
24
- "types": "./dist/types.d.ts",
25
24
  "files": [
26
25
  "dist"
27
26
  ],
28
27
  "devDependencies": {
29
28
  "@nuxt/devtools": "^2.3.2",
30
29
  "@nuxt/kit": "^3.16.2",
31
- "@nuxt/module-builder": "~0.8.4",
30
+ "@nuxt/module-builder": "^1.0.1",
32
31
  "@nuxt/schema": "^3.16.2",
33
32
  "@nuxt/test-utils": "^3.17.2",
34
33
  "@nuxtjs/i18n": "^9.5.3",
35
34
  "nuxt": "^3.16.2",
36
35
  "typescript": "5.8.3",
37
36
  "vue-i18n": "^11.1.3",
38
- "sit-onyx": "^1.0.0-beta.192"
37
+ "sit-onyx": "^1.0.0-beta.194"
39
38
  },
40
39
  "peerDependencies": {
41
- "sit-onyx": "^1.0.0-beta.192"
40
+ "sit-onyx": "^1.0.0-beta.194"
42
41
  },
43
42
  "scripts": {
44
43
  "dev": "nuxi dev playground",
package/dist/module.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
package/dist/module.d.ts DELETED
@@ -1,38 +0,0 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
- import { OnyxTheme } from 'sit-onyx';
3
-
4
- interface ModuleOptions {
5
- /**
6
- * The onyx theme to use. See: [https://onyx.schwarz/development/theming.html](https://onyx.schwarz/development/theming.html)
7
- * @default "onyx"
8
- */
9
- theme: OnyxTheme;
10
- /**
11
- * By default, the global onyx styles (`global.css` file) will be included
12
- * which applies some global styles like background color and font styles.
13
- * This is recommended when building a whole application with onyx.
14
- *
15
- * You can set this option to `true` to disable this.
16
- *
17
- * @see https://onyx.schwarz/development/#installation
18
- */
19
- disableGlobalStyles?: boolean;
20
- /**
21
- * Settings related to the integration with @nuxtjs/i18n
22
- */
23
- i18n?: {
24
- /**
25
- * Mapping for registering the translations from onyx with @nuxtjs/i18n.
26
- * @example
27
- * ```ts
28
- * registerLocales: { "en_US": "en-US" }
29
- * ```
30
- * This would register the onyx translations for the language "en-US" to the code "en_US" of your projects locales.
31
- */
32
- registerLocales?: Record<string, "en-US" | "de-DE" | "ko-KR">;
33
- };
34
- }
35
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
36
-
37
- export { _default as default };
38
- export type { ModuleOptions };
package/dist/types.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module } from './module'
4
-
5
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
-
7
- export { default } from './module'