nuance-ui 0.1.58 → 0.1.60

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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.0.0"
6
6
  },
7
- "version": "0.1.58",
7
+ "version": "0.1.60",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -38,7 +38,6 @@ const module$1 = defineNuxtModule({
38
38
  nuxt.options.alias["@nui/helpers"] = resolve("./runtime/helpers");
39
39
  nuxt.options.alias["@nui/types"] = resolve("./runtime/types");
40
40
  nuxt.options.alias["@nui/modals"] = resolve("./runtime/modals");
41
- nuxt.options.appConfig.nui = defu(nuxt.options.appConfig.nui || {}, defaultConfig);
42
41
  nuxt.options.postcss = nuxt.options.postcss || {};
43
42
  nuxt.options.postcss.plugins = nuxt.options.postcss.plugins || {};
44
43
  nuxt.options.postcss.plugins = defu(nuxt.options.postcss.plugins, {
@@ -29,7 +29,7 @@ export interface ModalState<Props extends object = object, Resolve = unknown, Re
29
29
  * const result = await open({ foo: 'bar' }) // result: string
30
30
  * ```
31
31
  */
32
- declare class ModalManager {
32
+ export declare class ModalManager {
33
33
  #private;
34
34
  /** Reactive map of active modals */
35
35
  readonly modals: import("vue").Reactive<Map<string, ModalState<object, unknown, unknown>>>;
@@ -79,4 +79,3 @@ declare class ModalManager {
79
79
  state<Props extends object = object, Resolve = unknown, Reject = unknown>(id: string): ModalState<Props, Resolve, Reject>;
80
80
  }
81
81
  export declare const $modals: import("vue").Raw<ModalManager>;
82
- export {};
@@ -1,5 +1,5 @@
1
1
  import { markRaw, reactive } from "vue";
2
- class ModalManager {
2
+ export class ModalManager {
3
3
  static #instance = null;
4
4
  /** Reactive map of active modals */
5
5
  modals = reactive(/* @__PURE__ */ new Map());
@@ -1,3 +1,9 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import type { ModalManager } from './modal-manager.js';
2
+ type __VLS_Props = {
3
+ manager?: ModalManager;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
6
+ manager: import("vue").Raw<ModalManager>;
7
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
8
  declare const _default: typeof __VLS_export;
3
9
  export default _default;
@@ -1,5 +1,11 @@
1
1
  <script setup>
2
2
  import { $modals } from "./modal-manager";
3
+ defineProps({
4
+ manager: { type: Object, required: false }
5
+ });
6
+ defineExpose({
7
+ manager: $modals
8
+ });
3
9
  </script>
4
10
 
5
11
  <template>
@@ -7,7 +13,7 @@ import { $modals } from "./modal-manager";
7
13
  <div id='nui-modals-root'>
8
14
  <component
9
15
  :is='entry.component'
10
- v-for='[id, entry] in $modals.modals'
16
+ v-for='[id, entry] in $props.manager?.modals ?? $modals.modals'
11
17
  :key='id'
12
18
  v-bind='entry.props'
13
19
  />
@@ -1,3 +1,9 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import type { ModalManager } from './modal-manager.js';
2
+ type __VLS_Props = {
3
+ manager?: ModalManager;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
6
+ manager: import("vue").Raw<ModalManager>;
7
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
8
  declare const _default: typeof __VLS_export;
3
9
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuance-ui",
3
- "version": "0.1.58",
3
+ "version": "0.1.60",
4
4
  "description": "A UI Library for Modern Web Apps, powered by Vue.",
5
5
  "repository": {
6
6
  "type": "git",