@nuxt-ignis/ui 0.0.3 → 0.0.5

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.d.mts CHANGED
@@ -11,7 +11,7 @@ interface IgnisUIOptions {
11
11
  }
12
12
  declare module 'nuxt/schema' {
13
13
  interface PublicRuntimeConfig {
14
- ignis?: {
14
+ ignis: {
15
15
  ui?: IgnisUIOptions;
16
16
  };
17
17
  }
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt-ignis/ui",
3
- "configKey": "ignis",
4
- "version": "0.0.3",
3
+ "configKey": "@nuxt-ignis/ui",
4
+ "version": "0.0.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -7,8 +7,7 @@ import { ignisTailwindcssFix } from '../dist/runtime/tailwind.js';
7
7
 
8
8
  const module$1 = defineNuxtModule({
9
9
  meta: {
10
- name: "@nuxt-ignis/ui",
11
- configKey: "ignis"
10
+ name: "@nuxt-ignis/ui"
12
11
  },
13
12
  moduleDependencies(nuxt) {
14
13
  console.debug("@nuxt-ignis/ui - module dependencies are being resolved");
@@ -60,14 +59,16 @@ const module$1 = defineNuxtModule({
60
59
  }
61
60
  return modules;
62
61
  },
63
- setup(options, nuxt) {
62
+ setup(_options, nuxt) {
64
63
  const resolver = createResolver(import.meta.url);
64
+ const nuxtOpts = nuxt.options;
65
+ const options = nuxtOpts.ignis?.ui;
65
66
  nuxt.options.runtimeConfig.public.ignis ||= {};
66
67
  nuxt.options.runtimeConfig.public.ignis.ui ||= {
67
- ui: options.ui || false,
68
- tailwind: options.tailwind || false,
69
- openprops: options.openprops || false,
70
- charts: options.charts || false
68
+ ui: options?.ui || false,
69
+ tailwind: options?.tailwind || false,
70
+ openprops: options?.openprops || false,
71
+ charts: options?.charts || false
71
72
  };
72
73
  addPlugin(resolver.resolve("./runtime/plugin"));
73
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt-ignis/ui",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Nuxt Ignis module - UI features",
5
5
  "publishConfig": {
6
6
  "access": "public"