@vitnode/core 1.2.0-canary.48 → 1.2.0-canary.49
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/scripts/plugin.d.ts.map +1 -1
- package/dist/scripts/prepare-database.d.ts.map +1 -1
- package/dist/scripts/prepare-plugins-files.d.ts +1 -1
- package/dist/scripts/prepare-plugins-files.d.ts.map +1 -1
- package/dist/scripts/scripts.js +4 -4
- package/dist/src/api/config.d.ts.map +1 -1
- package/dist/src/api/config.js +3 -1
- package/dist/src/api/lib/check-plugin-id.d.ts.map +1 -1
- package/dist/src/api/lib/check-plugin-id.js +2 -0
- package/dist/src/api/lib/with-pagination.d.ts +2 -24
- package/dist/src/api/lib/with-pagination.d.ts.map +1 -1
- package/dist/src/api/middlewares/global.middleware.d.ts +7 -1
- package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/global.middleware.js +6 -2
- package/dist/src/api/models/email.d.ts +3 -1
- package/dist/src/api/models/email.d.ts.map +1 -1
- package/dist/src/api/models/email.js +25 -2
- package/dist/src/api/modules/admin/admin.module.d.ts +41 -288
- package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts +23 -131
- package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts +23 -131
- package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/routes/session.route.d.ts +2 -52
- package/dist/src/api/modules/admin/routes/session.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/users/routes/list.route.d.ts +16 -105
- package/dist/src/api/modules/admin/users/routes/list.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/users/routes/users.route.d.ts +18 -105
- package/dist/src/api/modules/admin/users/routes/users.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/users/users.admin.module.d.ts +16 -105
- package/dist/src/api/modules/admin/users/users.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/middleware/middleware.module.d.ts +7 -36
- package/dist/src/api/modules/middleware/middleware.module.d.ts.map +1 -1
- package/dist/src/api/modules/middleware/route.d.ts +14 -72
- package/dist/src/api/modules/middleware/route.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/session.route.d.ts +2 -54
- package/dist/src/api/modules/users/routes/session.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/sign-in.route.d.ts +5 -27
- package/dist/src/api/modules/users/routes/sign-in.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/sign-in.route.js +1 -1
- package/dist/src/api/modules/users/routes/sign-out.route.d.ts +1 -5
- package/dist/src/api/modules/users/routes/sign-out.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/sign-up.route.d.ts +8 -36
- package/dist/src/api/modules/users/routes/sign-up.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/sign-up.route.js +2 -2
- package/dist/src/api/modules/users/routes/test.route.js +1 -1
- package/dist/src/api/modules/users/sso/routes/callback.route.d.ts +3 -19
- package/dist/src/api/modules/users/sso/routes/callback.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/sso/routes/create-url.route.d.ts +2 -10
- package/dist/src/api/modules/users/sso/routes/create-url.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/sso/sso.module.d.ts +5 -29
- package/dist/src/api/modules/users/sso/sso.module.d.ts.map +1 -1
- package/dist/src/api/modules/users/users.module.d.ts +16 -128
- package/dist/src/api/modules/users/users.module.d.ts.map +1 -1
- package/dist/src/components/form/auto-form.d.ts +28 -6
- package/dist/src/components/form/auto-form.d.ts.map +1 -1
- package/dist/src/components/form/auto-form.js +46 -12
- package/dist/src/components/form/fields/checkbox.d.ts +3 -7
- package/dist/src/components/form/fields/checkbox.d.ts.map +1 -1
- package/dist/src/components/form/fields/checkbox.js +5 -4
- package/dist/src/components/form/fields/combobox-async.d.ts +3 -6
- package/dist/src/components/form/fields/combobox-async.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox-async.js +4 -4
- package/dist/src/components/form/fields/combobox.d.ts +3 -6
- package/dist/src/components/form/fields/combobox.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox.js +4 -5
- package/dist/src/components/form/fields/input.d.ts +3 -8
- package/dist/src/components/form/fields/input.d.ts.map +1 -1
- package/dist/src/components/form/fields/input.js +8 -4
- package/dist/src/components/form/fields/radio-group.d.ts +3 -6
- package/dist/src/components/form/fields/radio-group.d.ts.map +1 -1
- package/dist/src/components/form/fields/radio-group.js +4 -5
- package/dist/src/components/form/fields/select.d.ts +3 -6
- package/dist/src/components/form/fields/select.d.ts.map +1 -1
- package/dist/src/components/form/fields/select.js +4 -5
- package/dist/src/components/form/fields/switch.d.ts +2 -6
- package/dist/src/components/form/fields/switch.d.ts.map +1 -1
- package/dist/src/components/form/fields/switch.js +9 -9
- package/dist/src/components/form/fields/textarea.d.ts +3 -4
- package/dist/src/components/form/fields/textarea.d.ts.map +1 -1
- package/dist/src/components/form/fields/textarea.js +5 -3
- package/dist/src/components/ui/button-client.d.ts +3 -0
- package/dist/src/components/ui/button-client.d.ts.map +1 -0
- package/dist/src/components/ui/button-client.js +57 -0
- package/dist/src/components/ui/button.d.ts +2 -3
- package/dist/src/components/ui/button.d.ts.map +1 -1
- package/dist/src/components/ui/button.js +5 -39
- package/dist/src/components/ui/form.d.ts +2 -2
- package/dist/src/components/ui/form.d.ts.map +1 -1
- package/dist/src/components/ui/form.js +2 -2
- package/dist/src/components/ui/loader.js +1 -1
- package/dist/src/emails/default-template.d.ts +5 -1
- package/dist/src/emails/default-template.d.ts.map +1 -1
- package/dist/src/emails/default-template.js +10 -11
- package/dist/src/lib/api/get-middleware-api.d.ts +1 -1
- package/dist/src/lib/api/get-session-admin-api.d.ts +2 -2
- package/dist/src/lib/api/get-session-api.d.ts +2 -2
- package/dist/src/lib/helpers/auto-form.d.ts +18 -8
- package/dist/src/lib/helpers/auto-form.d.ts.map +1 -1
- package/dist/src/lib/helpers/auto-form.js +90 -86
- package/dist/src/lib/helpers/auto-form.test.js +299 -138
- package/dist/src/lib/navigation.d.ts +5 -5
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts +9 -9
- package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.d.ts +10 -10
- package/dist/src/views/admin/views/core/test.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/test.js +6 -6
- package/dist/src/views/auth/components/password-input.d.ts +2 -1
- package/dist/src/views/auth/components/password-input.d.ts.map +1 -1
- package/dist/src/views/auth/components/password-input.js +15 -8
- package/dist/src/views/auth/sign-in/form/use-form.d.ts +4 -16
- package/dist/src/views/auth/sign-in/form/use-form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-in/form/use-form.js +1 -1
- package/dist/src/views/auth/sign-up/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/form.js +22 -9
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts +1 -1
- package/dist/src/views/auth/sign-up/form/use-form.d.ts +18 -36
- package/dist/src/views/auth/sign-up/form/use-form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/use-form.js +10 -7
- package/dist/src/vitnode.config.d.ts +3 -0
- package/dist/src/vitnode.config.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +21 -18
- package/dist/src/components/form/fields/item.d.ts +0 -14
- package/dist/src/components/form/fields/item.d.ts.map +0 -1
- package/dist/src/components/form/fields/item.js +0 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitnode/core",
|
|
3
|
-
"version": "1.2.0-canary.
|
|
3
|
+
"version": "1.2.0-canary.49",
|
|
4
4
|
"description": "Core package for VitNode, providing essential functionalities and configurations.",
|
|
5
5
|
"author": "VitNode Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"core"
|
|
20
20
|
],
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@hono/zod-openapi": "0.
|
|
22
|
+
"@hono/zod-openapi": "1.0.x",
|
|
23
23
|
"@swc/cli": "0.6.x",
|
|
24
24
|
"@swc/core": "1.12.x",
|
|
25
25
|
"@types/react": "19.1.x",
|
|
@@ -27,43 +27,44 @@
|
|
|
27
27
|
"drizzle-kit": "0.31.x",
|
|
28
28
|
"drizzle-orm": "^0.44.x",
|
|
29
29
|
"hono": "4.8.x",
|
|
30
|
+
"motion": "^12.x.x",
|
|
30
31
|
"next": "15.3.x",
|
|
31
32
|
"next-intl": "4.x.x",
|
|
32
33
|
"react": "19.1.x",
|
|
33
34
|
"react-dom": "19.1.x",
|
|
34
35
|
"react-hook-form": "^7.x.x",
|
|
35
36
|
"typescript": "^5.8.x",
|
|
36
|
-
"zod": "
|
|
37
|
+
"zod": "4.x.x"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
|
-
"@hono/zod-openapi": "^0.
|
|
40
|
-
"@hono/zod-validator": "^0.7.
|
|
40
|
+
"@hono/zod-openapi": "^1.0.2",
|
|
41
|
+
"@hono/zod-validator": "^0.7.2",
|
|
41
42
|
"@hookform/resolvers": "^5.1.1",
|
|
42
|
-
"@react-email/components": "^0.2
|
|
43
|
+
"@react-email/components": "^0.3.2",
|
|
43
44
|
"@swc/cli": "0.6.0",
|
|
44
|
-
"@swc/core": "^1.
|
|
45
|
+
"@swc/core": "^1.13.1",
|
|
45
46
|
"@testing-library/dom": "^10.4.0",
|
|
46
47
|
"@testing-library/react": "^16.3.0",
|
|
47
|
-
"@types/node": "^24.0
|
|
48
|
+
"@types/node": "^24.1.0",
|
|
48
49
|
"@types/nodemailer": "^6.4.17",
|
|
49
50
|
"@types/react": "^19.1.8",
|
|
50
51
|
"@types/react-dom": "^19.1.6",
|
|
51
|
-
"@vitejs/plugin-react": "^4.
|
|
52
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
52
53
|
"@vitest/coverage-v8": "^3.2.4",
|
|
53
54
|
"chokidar": "^4.0.3",
|
|
54
55
|
"concurrently": "^9.2.0",
|
|
55
56
|
"dotenv": "^17.2.0",
|
|
56
57
|
"drizzle-kit": "^0.31.4",
|
|
57
|
-
"drizzle-orm": "^0.44.
|
|
58
|
-
"eslint": "^9.
|
|
59
|
-
"hono": "^4.8.
|
|
58
|
+
"drizzle-orm": "^0.44.3",
|
|
59
|
+
"eslint": "^9.31.0",
|
|
60
|
+
"hono": "^4.8.5",
|
|
60
61
|
"jsdom": "^26.1.0",
|
|
61
62
|
"lucide-react": "^0.525.0",
|
|
62
|
-
"next": "^15.
|
|
63
|
+
"next": "^15.4.2",
|
|
63
64
|
"next-intl": "^4.3.4",
|
|
64
65
|
"react": "^19.1.0",
|
|
65
66
|
"react-dom": "^19.1.0",
|
|
66
|
-
"react-email": "^4.
|
|
67
|
+
"react-email": "^4.2.3",
|
|
67
68
|
"react-hook-form": "^7.60.0",
|
|
68
69
|
"sonner": "^2.0.6",
|
|
69
70
|
"tailwindcss": "^4.1.11",
|
|
@@ -74,8 +75,8 @@
|
|
|
74
75
|
"typescript": "^5.8.3",
|
|
75
76
|
"vite-tsconfig-paths": "^5.1.4",
|
|
76
77
|
"vitest": "^3.2.4",
|
|
77
|
-
"zod": "^
|
|
78
|
-
"@vitnode/eslint-config": "1.2.0-canary.
|
|
78
|
+
"zod": "^4.0.5",
|
|
79
|
+
"@vitnode/eslint-config": "1.2.0-canary.49"
|
|
79
80
|
},
|
|
80
81
|
"bin": {
|
|
81
82
|
"vitnode": "./dist/scripts/scripts.js"
|
|
@@ -98,20 +99,22 @@
|
|
|
98
99
|
"dependencies": {
|
|
99
100
|
"@dnd-kit/core": "^6.3.1",
|
|
100
101
|
"@hono/swagger-ui": "^0.5.2",
|
|
101
|
-
"@tanstack/react-query": "^5.
|
|
102
|
+
"@tanstack/react-query": "^5.83.0",
|
|
102
103
|
"class-variance-authority": "^0.7.1",
|
|
103
104
|
"clsx": "^2.1.1",
|
|
104
105
|
"cmdk": "^1.1.1",
|
|
105
106
|
"input-otp": "^1.4.2",
|
|
107
|
+
"motion": "^12.23.6",
|
|
106
108
|
"next-themes": "^0.4.6",
|
|
107
109
|
"nodemailer": "^7.0.5",
|
|
108
110
|
"postgres": "^3.4.7",
|
|
109
111
|
"radix-ui": "^1.4.2",
|
|
110
112
|
"rate-limiter-flexible": "^7.1.1",
|
|
111
113
|
"react-scan": "^0.4.3",
|
|
112
|
-
"resend": "^4.
|
|
114
|
+
"resend": "^4.7.0",
|
|
113
115
|
"tailwind-merge": "^3.3.1",
|
|
114
116
|
"use-debounce": "^10.0.5",
|
|
117
|
+
"use-intl": "^4.3.4",
|
|
115
118
|
"vaul": "^1.1.2"
|
|
116
119
|
},
|
|
117
120
|
"scripts": {
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ControllerRenderProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
2
|
-
import type { z } from 'zod';
|
|
3
|
-
export interface ItemAutoFormComponentProps<T extends z.ZodTypeAny, TName extends FieldPath<z.infer<T>> = FieldPath<z.infer<T>>> {
|
|
4
|
-
field: ControllerRenderProps<FieldValues, TName>;
|
|
5
|
-
shape: z.ZodAny;
|
|
6
|
-
}
|
|
7
|
-
export interface ItemAutoFormProps<T extends z.ZodTypeAny, TName extends FieldPath<z.infer<T>> = FieldPath<z.infer<T>>> {
|
|
8
|
-
component: (props: ItemAutoFormComponentProps<T, TName>) => React.ReactNode;
|
|
9
|
-
id: TName;
|
|
10
|
-
}
|
|
11
|
-
export declare function ItemAutoForm<T extends z.ZodEffects<z.ZodObject<z.ZodRawShape>> | z.ZodObject<z.ZodRawShape>, TName extends FieldPath<z.infer<T>> = FieldPath<z.infer<T>>>({ id, component, formSchema, }: ItemAutoFormProps<T, TName> & {
|
|
12
|
-
formSchema: T;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
-
//# sourceMappingURL=item.d.ts.map
|
|
@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AAE,iBAAiB,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG;IAAE,UAAU,EAAE,CAAC,CAAA;CAAE,kDAmBjD"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { FormField } from "../../ui/form.js";
|
|
3
|
-
import { getShapeFromSchema } from "../../../lib/helpers/auto-form.js";
|
|
4
|
-
export function ItemAutoForm({ id, component, formSchema }) {
|
|
5
|
-
let shape = null;
|
|
6
|
-
const ids = id.split('.');
|
|
7
|
-
for (const id of ids){
|
|
8
|
-
shape = getShapeFromSchema(shape ? shape : formSchema, id);
|
|
9
|
-
}
|
|
10
|
-
if (!shape) return null;
|
|
11
|
-
return /*#__PURE__*/ _jsx(FormField, {
|
|
12
|
-
name: id,
|
|
13
|
-
render: ({ field })=>{
|
|
14
|
-
return /*#__PURE__*/ _jsx(_Fragment, {
|
|
15
|
-
children: component({
|
|
16
|
-
field,
|
|
17
|
-
shape
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|