File tree Expand file tree Collapse file tree 10 files changed +1034
-197
lines changed Expand file tree Collapse file tree 10 files changed +1034
-197
lines changed Original file line number Diff line number Diff line change 72
72
"@types/node" : " ^18.17.17" ,
73
73
"@vitejs/plugin-vue" : " ^4.2.1" ,
74
74
"vite" : " ^5.0.10" ,
75
- "vue" : " ^3.3.12 " ,
76
- "vue-router" : " ^4" ,
77
- "vue-tsc" : " ^1.6.4 "
75
+ "vue" : " ^3.4.18 " ,
76
+ "vue-router" : " ^4.2.5 " ,
77
+ "vue-tsc" : " ^1.8.27 "
78
78
},
79
79
"peerDependencies" : {
80
- "vue" : " ^3.3.12" ,
81
- "vue-router" : " ^4"
80
+ "vue" : " ^3.4.18" ,
81
+ "vue-router" : " ^4.2.5"
82
+ },
83
+ "peerDependenciesMeta" : {
84
+ "vue-router" : {
85
+ "optional" : true
86
+ }
82
87
},
83
88
"engines" : {
84
89
"node" : " >=18" ,
Original file line number Diff line number Diff line change 1
1
imports.autoImport=false
2
2
typescript.includeWorkspace=true
3
+
4
+ # enable TypeScript bundler module resolution - https://www.typescriptlang.org/docs/handbook/modules/reference.html#bundler
5
+ experimental.typescriptBundlerResolution=true
Original file line number Diff line number Diff line change 43
43
},
44
44
"dependencies" : {
45
45
"@nuxt/image" : " ^1.1.0" ,
46
- "@nuxt/kit" : " ^3.8.2 " ,
46
+ "@nuxt/kit" : " ^3.10.1 " ,
47
47
"@open-xamu-co/ui-common-enums" : " link:../common-enums" ,
48
48
"@open-xamu-co/ui-common-helpers" : " link:../common-helpers" ,
49
- "@open-xamu-co/ui-components-vue" : " link:../components-vue" ,
50
49
"@open-xamu-co/ui-common-types" : " link:../common-types" ,
50
+ "@open-xamu-co/ui-components-vue" : " link:../components-vue" ,
51
51
"@types/lodash" : " ^4.14.192" ,
52
52
"lodash" : " ^4.17.21" ,
53
53
"sweetalert2" : " ^11.7.5"
59
59
"@nuxt/test-utils" : " ^3.8.1" ,
60
60
"@open-xamu-co/ui-styles" : " link:../styles" ,
61
61
"@types/node" : " ^18.17.17" ,
62
- "nuxt" : " ^3.8.2 " ,
62
+ "nuxt" : " ^3.10.1 " ,
63
63
"vitest" : " ^0.33.0"
64
64
},
65
65
"engines" : {
Original file line number Diff line number Diff line change 1
1
/* eslint-disable @typescript-eslint/ban-ts-comment */
2
- import type { DefineComponent , FunctionalComponent , Component as VueComponent } from "vue" ;
3
2
import {
4
3
defineNuxtModule ,
5
4
addPlugin ,
@@ -10,35 +9,13 @@ import {
10
9
addImportsDir ,
11
10
} from "@nuxt/kit" ;
12
11
import _ from "lodash" ;
13
- import type { ModuleOptions as NuxtImageOptions } from "@nuxt/image" ;
14
12
15
- import type { iPluginOptions } from "@open-xamu-co/ui-common-types" ;
16
13
import locale from "@open-xamu-co/ui-common-helpers/en" ;
17
14
import { componentNames } from "@open-xamu-co/ui-common-enums" ;
18
15
19
- /**
20
- * Nuxt specific configuration
21
- */
22
- interface ModuleOptions
23
- extends iPluginOptions < VueComponent | FunctionalComponent | DefineComponent > {
24
- /**
25
- * Nuxt image plugin options
26
- */
27
- image ?: Partial < NuxtImageOptions > ;
28
- }
16
+ import type { XamuModuleOptions } from "./types.js" ;
29
17
30
- declare module "nuxt/schema" {
31
- interface AppConfigInput {
32
- xamu ?: ModuleOptions ;
33
- }
34
- }
35
- declare module "@nuxt/schema" {
36
- interface AppConfigInput {
37
- xamu ?: ModuleOptions ;
38
- }
39
- }
40
-
41
- export default defineNuxtModule < ModuleOptions > ( {
18
+ export default defineNuxtModule < XamuModuleOptions > ( {
42
19
meta : {
43
20
name : "@open-xamu-co/ui-nuxt" ,
44
21
configKey : "xamu" ,
Original file line number Diff line number Diff line change
1
+ /* eslint-disable import/no-unresolved */
2
+
1
3
import { useForm } from "@open-xamu-co/ui-common-helpers" ;
2
4
5
+ import { useAppConfig } from "#imports" ;
6
+
3
7
/**
4
8
* xamu form composable
5
9
*/
Original file line number Diff line number Diff line change
1
+ /* eslint-disable import/no-unresolved */
2
+
1
3
import type { SweetAlertOptions } from "sweetalert2/dist/sweetalert2" ;
2
4
3
5
import { useSwal as originalUseSwal } from "@open-xamu-co/ui-common-helpers" ;
4
6
import type { tSwal } from "@open-xamu-co/ui-common-types" ;
5
7
8
+ import { useAppConfig } from "#imports" ;
9
+
6
10
/**
7
11
* Extended SweetAlert2 composable
8
12
*/
Original file line number Diff line number Diff line change
1
+ /* eslint-disable import/no-unresolved */
2
+
1
3
import { timeAgo } from "@open-xamu-co/ui-common-helpers" ;
2
4
5
+ import { useAppConfig } from "#imports" ;
6
+
3
7
/**
4
8
* Time ago composable
5
9
*/
Original file line number Diff line number Diff line change 1
1
/* eslint-disable import/no-unresolved */
2
+
2
3
import type { Component as VueComponent } from "vue" ;
3
4
4
5
import type { iPluginOptions } from "@open-xamu-co/ui-common-types" ;
Original file line number Diff line number Diff line change
1
+ import type { DefineComponent , FunctionalComponent , Component as VueComponent } from "vue" ;
2
+ import type { ModuleOptions as NuxtImageOptions } from "@nuxt/image" ;
3
+
4
+ import type { iPluginOptions } from "@open-xamu-co/ui-common-types" ;
5
+
6
+ /**
7
+ * Nuxt specific configuration
8
+ */
9
+ export interface XamuModuleOptions
10
+ extends iPluginOptions < VueComponent | FunctionalComponent | DefineComponent > {
11
+ /**
12
+ * Nuxt image plugin options
13
+ */
14
+ image ?: Partial < NuxtImageOptions > ;
15
+ }
16
+
17
+ declare module "nuxt/schema" {
18
+ interface AppConfigInput {
19
+ xamu ?: XamuModuleOptions ;
20
+ }
21
+ }
22
+ declare module "@nuxt/schema" {
23
+ interface AppConfigInput {
24
+ xamu ?: XamuModuleOptions ;
25
+ }
26
+ }
You can’t perform that action at this time.
0 commit comments