vasuzex 2.1.2 → 2.1.3
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/framework/index.js +1 -0
- package/frontend/client/package.json +14 -66
- package/frontend/client/package.json.backup +41 -0
- package/frontend/react-ui/hooks/useLocalStorage.js +1 -1
- package/frontend/react-ui/hooks/useValidationErrors.js +1 -1
- package/frontend/react-ui/package.json +11 -107
- package/frontend/react-ui/package.json.backup +114 -0
- package/frontend/react-ui/providers/ApiClientProvider.jsx +1 -1
- package/frontend/react-ui/providers/AppConfigProvider.jsx +1 -1
- package/package.json +4 -2
package/framework/index.js
CHANGED
|
@@ -1,63 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "vasuzex-client",
|
|
3
3
|
"version": "2.0.0",
|
|
4
4
|
"description": "Framework-agnostic JavaScript utilities for Vasuzex v2 frontend applications",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./
|
|
7
|
-
"module": "./dist/index.js",
|
|
6
|
+
"main": "./index.js",
|
|
8
7
|
"exports": {
|
|
9
|
-
".":
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"./
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"./Config": {
|
|
18
|
-
"import": "./dist/Config/index.js",
|
|
19
|
-
"require": "./dist/Config/index.cjs"
|
|
20
|
-
},
|
|
21
|
-
"./Validation": {
|
|
22
|
-
"import": "./dist/Validation/index.js",
|
|
23
|
-
"require": "./dist/Validation/index.cjs"
|
|
24
|
-
},
|
|
25
|
-
"./Formatters": {
|
|
26
|
-
"import": "./dist/Formatters/index.js",
|
|
27
|
-
"require": "./dist/Formatters/index.cjs"
|
|
28
|
-
},
|
|
29
|
-
"./Storage": {
|
|
30
|
-
"import": "./dist/Storage/index.js",
|
|
31
|
-
"require": "./dist/Storage/index.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./Alerts": {
|
|
34
|
-
"import": "./dist/Alerts/index.js",
|
|
35
|
-
"require": "./dist/Alerts/index.cjs"
|
|
36
|
-
},
|
|
37
|
-
"./Errors": {
|
|
38
|
-
"import": "./dist/Errors/index.js",
|
|
39
|
-
"require": "./dist/Errors/index.cjs"
|
|
40
|
-
}
|
|
8
|
+
".": "./index.js",
|
|
9
|
+
"./Http": "./Http/index.js",
|
|
10
|
+
"./Config": "./Config/index.js",
|
|
11
|
+
"./Validation": "./Validation/index.js",
|
|
12
|
+
"./Formatters": "./Formatters/index.js",
|
|
13
|
+
"./Storage": "./Storage/index.js",
|
|
14
|
+
"./Alerts": "./Alerts/index.js",
|
|
15
|
+
"./Errors": "./Errors/index.js"
|
|
41
16
|
},
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"dist"
|
|
45
|
-
],
|
|
46
|
-
"scripts": {
|
|
47
|
-
"build": "tsup",
|
|
48
|
-
"dev": "tsup --watch",
|
|
49
|
-
"test": "jest",
|
|
50
|
-
"test:coverage": "jest --coverage"
|
|
51
|
-
},
|
|
52
|
-
"keywords": [
|
|
53
|
-
"vasuzex",
|
|
54
|
-
"frontend",
|
|
55
|
-
"utilities",
|
|
56
|
-
"api-client",
|
|
57
|
-
"validators",
|
|
58
|
-
"formatters",
|
|
59
|
-
"framework-agnostic"
|
|
60
|
-
],
|
|
17
|
+
"files": ["index.js", "Http", "Config", "Validation", "Formatters", "Storage", "Alerts", "Errors"],
|
|
18
|
+
"keywords": ["vasuzex", "frontend", "utilities", "api-client"],
|
|
61
19
|
"author": "Vasuzex Team",
|
|
62
20
|
"license": "MIT",
|
|
63
21
|
"dependencies": {
|
|
@@ -68,17 +26,7 @@
|
|
|
68
26
|
"yup": "^1.0.0"
|
|
69
27
|
},
|
|
70
28
|
"peerDependenciesMeta": {
|
|
71
|
-
"yup": {
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
"sweetalert2": {
|
|
75
|
-
"optional": true
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"devDependencies": {
|
|
79
|
-
"jest": "^29.7.0",
|
|
80
|
-
"jest-environment-jsdom": "^30.2.0",
|
|
81
|
-
"tsup": "^8.0.0",
|
|
82
|
-
"typescript": "^5.9.3"
|
|
29
|
+
"yup": { "optional": true },
|
|
30
|
+
"sweetalert2": { "optional": true }
|
|
83
31
|
}
|
|
84
32
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vasuzex/client",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Framework-agnostic JavaScript utilities for Vasuzex v2 frontend applications",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.js",
|
|
9
|
+
"./Http": "./Http/index.js",
|
|
10
|
+
"./Config": "./Config/index.js",
|
|
11
|
+
"./Validation": "./Validation/index.js",
|
|
12
|
+
"./Formatters": "./Formatters/index.js",
|
|
13
|
+
"./Storage": "./Storage/index.js",
|
|
14
|
+
"./Alerts": "./Alerts/index.js",
|
|
15
|
+
"./Errors": "./Errors/index.js"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"index.js",
|
|
19
|
+
"Http",
|
|
20
|
+
"Config",
|
|
21
|
+
"Validation",
|
|
22
|
+
"Formatters",
|
|
23
|
+
"Storage",
|
|
24
|
+
"Alerts",
|
|
25
|
+
"Errors"
|
|
26
|
+
],
|
|
27
|
+
"keywords": ["vasuzex", "frontend", "utilities", "api-client"],
|
|
28
|
+
"author": "Vasuzex Team",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"axios": "^1.7.0"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"sweetalert2": "^11.0.0",
|
|
35
|
+
"yup": "^1.0.0"
|
|
36
|
+
},
|
|
37
|
+
"peerDependenciesMeta": {
|
|
38
|
+
"yup": { "optional": true },
|
|
39
|
+
"sweetalert2": { "optional": true }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { useState, useCallback } from 'react';
|
|
10
|
-
import { handleFormError, getValidationErrors } from '
|
|
10
|
+
import { handleFormError, getValidationErrors } from 'vasuzex/client/Errors';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Hook for managing validation errors
|
|
@@ -1,114 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "React
|
|
2
|
+
"name": "vasuzex-react",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "React UI components for Vasuzex v2",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"import": "./dist/index.js",
|
|
13
|
-
"require": "./dist/index.cjs"
|
|
14
|
-
},
|
|
15
|
-
"./components/DataTable": {
|
|
16
|
-
"types": "./dist/components/DataTable/index.d.ts",
|
|
17
|
-
"import": "./dist/components/DataTable/index.js",
|
|
18
|
-
"require": "./dist/components/DataTable/index.cjs"
|
|
19
|
-
},
|
|
20
|
-
"./components/Autocomplete": {
|
|
21
|
-
"types": "./dist/components/Autocomplete/index.d.ts",
|
|
22
|
-
"import": "./dist/components/Autocomplete/index.js",
|
|
23
|
-
"require": "./dist/components/Autocomplete/index.cjs"
|
|
24
|
-
},
|
|
25
|
-
"./components/Forms": {
|
|
26
|
-
"types": "./dist/components/Forms/index.d.ts",
|
|
27
|
-
"import": "./dist/components/Forms/index.js",
|
|
28
|
-
"require": "./dist/components/Forms/index.cjs"
|
|
29
|
-
},
|
|
30
|
-
"./components/PhotoManager": {
|
|
31
|
-
"types": "./dist/components/PhotoManager/index.d.ts",
|
|
32
|
-
"import": "./dist/components/PhotoManager/index.js",
|
|
33
|
-
"require": "./dist/components/PhotoManager/index.cjs"
|
|
34
|
-
},
|
|
35
|
-
"./hooks": {
|
|
36
|
-
"types": "./dist/hooks/index.d.ts",
|
|
37
|
-
"import": "./dist/hooks/index.js",
|
|
38
|
-
"require": "./dist/hooks/index.cjs"
|
|
39
|
-
},
|
|
40
|
-
"./providers": {
|
|
41
|
-
"types": "./dist/providers/index.d.ts",
|
|
42
|
-
"import": "./dist/providers/index.js",
|
|
43
|
-
"require": "./dist/providers/index.cjs"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"files": [
|
|
47
|
-
"dist",
|
|
48
|
-
"README.md",
|
|
49
|
-
"LICENSE"
|
|
50
|
-
],
|
|
51
|
-
"sideEffects": [
|
|
52
|
-
"**/*.css"
|
|
53
|
-
],
|
|
54
|
-
"scripts": {
|
|
55
|
-
"dev": "vite",
|
|
56
|
-
"build": "tsc && vite build",
|
|
57
|
-
"preview": "vite preview",
|
|
58
|
-
"lint": "eslint . --ext js,jsx,ts,tsx",
|
|
59
|
-
"type-check": "tsc --noEmit",
|
|
60
|
-
"test": "vitest",
|
|
61
|
-
"test:ui": "vitest --ui",
|
|
62
|
-
"test:coverage": "vitest --coverage"
|
|
63
|
-
},
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"files": ["index.js", "components", "hooks", "providers", "utils", "styles"],
|
|
8
|
+
"keywords": ["vasuzex", "react", "ui", "components"],
|
|
9
|
+
"author": "Vasuzex Team",
|
|
10
|
+
"license": "MIT",
|
|
64
11
|
"peerDependencies": {
|
|
65
|
-
"react": "^18.0.0",
|
|
66
|
-
"react-dom": "^18.0.0"
|
|
12
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
13
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
67
14
|
},
|
|
68
15
|
"dependencies": {
|
|
69
|
-
"@vasuzex/client": "workspace:*",
|
|
70
16
|
"prop-types": "^15.8.1"
|
|
71
|
-
}
|
|
72
|
-
"devDependencies": {
|
|
73
|
-
"react": "^18.3.1",
|
|
74
|
-
"react-dom": "^18.3.1",
|
|
75
|
-
"@testing-library/jest-dom": "^6.5.0",
|
|
76
|
-
"@testing-library/react": "^16.1.0",
|
|
77
|
-
"@testing-library/user-event": "^14.5.2",
|
|
78
|
-
"@types/node": "^22.10.2",
|
|
79
|
-
"@types/react": "^18.3.17",
|
|
80
|
-
"@types/react-dom": "^18.3.5",
|
|
81
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
82
|
-
"eslint": "^9.17.0",
|
|
83
|
-
"eslint-plugin-react": "^7.37.2",
|
|
84
|
-
"eslint-plugin-react-hooks": "^5.0.0",
|
|
85
|
-
"jsdom": "^25.0.1",
|
|
86
|
-
"typescript": "^5.7.2",
|
|
87
|
-
"vite": "^6.0.3",
|
|
88
|
-
"vite-plugin-dts": "^4.3.0",
|
|
89
|
-
"vitest": "^2.1.8"
|
|
90
|
-
},
|
|
91
|
-
"keywords": [
|
|
92
|
-
"vasuzex",
|
|
93
|
-
"react",
|
|
94
|
-
"components",
|
|
95
|
-
"ui",
|
|
96
|
-
"datatable",
|
|
97
|
-
"autocomplete",
|
|
98
|
-
"forms",
|
|
99
|
-
"framework",
|
|
100
|
-
"hooks",
|
|
101
|
-
"providers"
|
|
102
|
-
],
|
|
103
|
-
"author": "Vasuzex Team",
|
|
104
|
-
"license": "MIT",
|
|
105
|
-
"repository": {
|
|
106
|
-
"type": "git",
|
|
107
|
-
"url": "https://github.com/rishicool/vasuzex-v2.git",
|
|
108
|
-
"directory": "frontend/react-ui"
|
|
109
|
-
},
|
|
110
|
-
"bugs": {
|
|
111
|
-
"url": "https://github.com/rishicool/vasuzex-v2/issues"
|
|
112
|
-
},
|
|
113
|
-
"homepage": "https://github.com/rishicool/vasuzex-v2#readme"
|
|
17
|
+
}
|
|
114
18
|
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vasuzex/react",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "React component library for Vasuzex Framework",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./components/DataTable": {
|
|
16
|
+
"types": "./dist/components/DataTable/index.d.ts",
|
|
17
|
+
"import": "./dist/components/DataTable/index.js",
|
|
18
|
+
"require": "./dist/components/DataTable/index.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./components/Autocomplete": {
|
|
21
|
+
"types": "./dist/components/Autocomplete/index.d.ts",
|
|
22
|
+
"import": "./dist/components/Autocomplete/index.js",
|
|
23
|
+
"require": "./dist/components/Autocomplete/index.cjs"
|
|
24
|
+
},
|
|
25
|
+
"./components/Forms": {
|
|
26
|
+
"types": "./dist/components/Forms/index.d.ts",
|
|
27
|
+
"import": "./dist/components/Forms/index.js",
|
|
28
|
+
"require": "./dist/components/Forms/index.cjs"
|
|
29
|
+
},
|
|
30
|
+
"./components/PhotoManager": {
|
|
31
|
+
"types": "./dist/components/PhotoManager/index.d.ts",
|
|
32
|
+
"import": "./dist/components/PhotoManager/index.js",
|
|
33
|
+
"require": "./dist/components/PhotoManager/index.cjs"
|
|
34
|
+
},
|
|
35
|
+
"./hooks": {
|
|
36
|
+
"types": "./dist/hooks/index.d.ts",
|
|
37
|
+
"import": "./dist/hooks/index.js",
|
|
38
|
+
"require": "./dist/hooks/index.cjs"
|
|
39
|
+
},
|
|
40
|
+
"./providers": {
|
|
41
|
+
"types": "./dist/providers/index.d.ts",
|
|
42
|
+
"import": "./dist/providers/index.js",
|
|
43
|
+
"require": "./dist/providers/index.cjs"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"dist",
|
|
48
|
+
"README.md",
|
|
49
|
+
"LICENSE"
|
|
50
|
+
],
|
|
51
|
+
"sideEffects": [
|
|
52
|
+
"**/*.css"
|
|
53
|
+
],
|
|
54
|
+
"scripts": {
|
|
55
|
+
"dev": "vite",
|
|
56
|
+
"build": "tsc && vite build",
|
|
57
|
+
"preview": "vite preview",
|
|
58
|
+
"lint": "eslint . --ext js,jsx,ts,tsx",
|
|
59
|
+
"type-check": "tsc --noEmit",
|
|
60
|
+
"test": "vitest",
|
|
61
|
+
"test:ui": "vitest --ui",
|
|
62
|
+
"test:coverage": "vitest --coverage"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"react": "^18.0.0",
|
|
66
|
+
"react-dom": "^18.0.0"
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"@vasuzex/client": "workspace:*",
|
|
70
|
+
"prop-types": "^15.8.1"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"react": "^18.3.1",
|
|
74
|
+
"react-dom": "^18.3.1",
|
|
75
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
76
|
+
"@testing-library/react": "^16.1.0",
|
|
77
|
+
"@testing-library/user-event": "^14.5.2",
|
|
78
|
+
"@types/node": "^22.10.2",
|
|
79
|
+
"@types/react": "^18.3.17",
|
|
80
|
+
"@types/react-dom": "^18.3.5",
|
|
81
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
82
|
+
"eslint": "^9.17.0",
|
|
83
|
+
"eslint-plugin-react": "^7.37.2",
|
|
84
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
85
|
+
"jsdom": "^25.0.1",
|
|
86
|
+
"typescript": "^5.7.2",
|
|
87
|
+
"vite": "^6.0.3",
|
|
88
|
+
"vite-plugin-dts": "^4.3.0",
|
|
89
|
+
"vitest": "^2.1.8"
|
|
90
|
+
},
|
|
91
|
+
"keywords": [
|
|
92
|
+
"vasuzex",
|
|
93
|
+
"react",
|
|
94
|
+
"components",
|
|
95
|
+
"ui",
|
|
96
|
+
"datatable",
|
|
97
|
+
"autocomplete",
|
|
98
|
+
"forms",
|
|
99
|
+
"framework",
|
|
100
|
+
"hooks",
|
|
101
|
+
"providers"
|
|
102
|
+
],
|
|
103
|
+
"author": "Vasuzex Team",
|
|
104
|
+
"license": "MIT",
|
|
105
|
+
"repository": {
|
|
106
|
+
"type": "git",
|
|
107
|
+
"url": "https://github.com/rishicool/vasuzex-v2.git",
|
|
108
|
+
"directory": "frontend/react-ui"
|
|
109
|
+
},
|
|
110
|
+
"bugs": {
|
|
111
|
+
"url": "https://github.com/rishicool/vasuzex-v2/issues"
|
|
112
|
+
},
|
|
113
|
+
"homepage": "https://github.com/rishicool/vasuzex-v2#readme"
|
|
114
|
+
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { createContext, useContext, useMemo } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
|
-
import { createApiClient } from '
|
|
11
|
+
import { createApiClient } from 'vasuzex/client/Http';
|
|
12
12
|
|
|
13
13
|
const ApiClientContext = createContext(null);
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { createContext, useContext, useState, useEffect, useCallback } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
|
-
import { loadAppConfig } from '
|
|
11
|
+
import { loadAppConfig } from 'vasuzex/client/Config';
|
|
12
12
|
|
|
13
13
|
const AppConfigContext = createContext(null);
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vasuzex",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Laravel-inspired framework for Node.js monorepos - V2 with optimized dependencies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./framework/index.js",
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"./Support/Facades/*": "./framework/Support/Facades/*.js",
|
|
19
19
|
"./Services/*": "./framework/Services/*/index.js",
|
|
20
20
|
"./client": "./frontend/client/index.js",
|
|
21
|
-
"./client/*": "./frontend/client
|
|
21
|
+
"./client/*": "./frontend/client/*/index.js",
|
|
22
|
+
"./react": "./frontend/react-ui/index.js",
|
|
23
|
+
"./react/*": "./frontend/react-ui/*.js",
|
|
22
24
|
"./package.json": "./package.json"
|
|
23
25
|
},
|
|
24
26
|
"bin": {
|