@finema/core 2.12.1 → 2.12.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "2.12.1",
3
+ "version": "2.12.2",
4
4
  "configKey": "core",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import defu from 'defu';
3
3
  import * as theme from '../dist/runtime/theme/index.js';
4
4
 
5
5
  const name = "@finema/core";
6
- const version = "2.12.1";
6
+ const version = "2.12.2";
7
7
 
8
8
  const nuxtAppOptions = {
9
9
  head: {
@@ -1,11 +1,14 @@
1
1
  <template>
2
- <NuxtLoadingIndicator :color="coreConfig.color" />
3
- <UApp :locale="th">
4
- <slot />
5
- </UApp>
6
- <DevOnly>
7
- <DevToolsWindow />
8
- </DevOnly>
2
+ <NuxtLoadingIndicator :color="coreConfig.color" />
3
+ <UApp
4
+ :locale="th"
5
+ :toaster="toaster"
6
+ >
7
+ <slot />
8
+ </UApp>
9
+ <DevOnly>
10
+ <DevToolsWindow />
11
+ </DevOnly>
9
12
  </template>
10
13
 
11
14
  <script setup>
@@ -14,6 +17,9 @@ import UApp from "#ui/components/App";
14
17
  import { useHead } from "#imports";
15
18
  import { useCoreConfig } from "#core/composables/useConfig";
16
19
  import DevToolsWindow from "#core/components/DevToolsWindow/index.vue";
20
+ defineProps({
21
+ toaster: { type: null, required: false }
22
+ });
17
23
  const coreConfig = useCoreConfig();
18
24
  useHead({
19
25
  titleTemplate: (titleChunk) => {
@@ -1,8 +1,12 @@
1
+ import type { ToasterProps } from '@nuxt/ui';
2
+ type __VLS_Props = {
3
+ toaster?: ToasterProps | null;
4
+ };
1
5
  declare var __VLS_9: {};
2
6
  type __VLS_Slots = {} & {
3
7
  default?: (props: typeof __VLS_9) => any;
4
8
  };
5
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ declare const __VLS_component: 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
10
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
7
11
  export default _default;
8
12
  type __VLS_WithSlots<T, S> = T & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "2.12.1",
3
+ "version": "2.12.2",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",