dn-react-router-toolkit 0.6.2 → 0.6.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.
|
@@ -113,13 +113,12 @@ function CrudFormProvider({
|
|
|
113
113
|
}) {
|
|
114
114
|
const apiPrefix = `/api${prefix}`;
|
|
115
115
|
const store = (0, import_react_store_input.useStore)({
|
|
116
|
-
...item || {},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
key
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
)
|
|
116
|
+
...Object.entries(item || {}).reduce((acc, [key, value]) => {
|
|
117
|
+
return {
|
|
118
|
+
...acc,
|
|
119
|
+
[key]: value ?? columns[key]?.defaultValue
|
|
120
|
+
};
|
|
121
|
+
}, {})
|
|
123
122
|
});
|
|
124
123
|
const navigate = (0, import_react_router.useNavigate)();
|
|
125
124
|
const submit = async () => {
|
|
@@ -77,13 +77,12 @@ function CrudFormProvider({
|
|
|
77
77
|
}) {
|
|
78
78
|
const apiPrefix = `/api${prefix}`;
|
|
79
79
|
const store = useStore({
|
|
80
|
-
...item || {},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
key
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
)
|
|
80
|
+
...Object.entries(item || {}).reduce((acc, [key, value]) => {
|
|
81
|
+
return {
|
|
82
|
+
...acc,
|
|
83
|
+
[key]: value ?? columns[key]?.defaultValue
|
|
84
|
+
};
|
|
85
|
+
}, {})
|
|
87
86
|
});
|
|
88
87
|
const navigate = useNavigate();
|
|
89
88
|
const submit = async () => {
|
package/dist/crud/crud_page.js
CHANGED
|
@@ -114,13 +114,12 @@ function CrudFormProvider({
|
|
|
114
114
|
}) {
|
|
115
115
|
const apiPrefix = `/api${prefix}`;
|
|
116
116
|
const store = (0, import_react_store_input.useStore)({
|
|
117
|
-
...item || {},
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
key
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
)
|
|
117
|
+
...Object.entries(item || {}).reduce((acc, [key, value]) => {
|
|
118
|
+
return {
|
|
119
|
+
...acc,
|
|
120
|
+
[key]: value ?? columns[key]?.defaultValue
|
|
121
|
+
};
|
|
122
|
+
}, {})
|
|
124
123
|
});
|
|
125
124
|
const navigate = (0, import_react_router.useNavigate)();
|
|
126
125
|
const submit = async () => {
|
package/dist/crud/crud_page.mjs
CHANGED
|
@@ -80,13 +80,12 @@ function CrudFormProvider({
|
|
|
80
80
|
}) {
|
|
81
81
|
const apiPrefix = `/api${prefix}`;
|
|
82
82
|
const store = useStore({
|
|
83
|
-
...item || {},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
key
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
)
|
|
83
|
+
...Object.entries(item || {}).reduce((acc, [key, value]) => {
|
|
84
|
+
return {
|
|
85
|
+
...acc,
|
|
86
|
+
[key]: value ?? columns[key]?.defaultValue
|
|
87
|
+
};
|
|
88
|
+
}, {})
|
|
90
89
|
});
|
|
91
90
|
const navigate = useNavigate();
|
|
92
91
|
const submit = async () => {
|
package/dist/crud/index.js
CHANGED
|
@@ -154,13 +154,12 @@ function CrudFormProvider({
|
|
|
154
154
|
}) {
|
|
155
155
|
const apiPrefix = `/api${prefix2}`;
|
|
156
156
|
const store = (0, import_react_store_input.useStore)({
|
|
157
|
-
...item || {},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
key
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
)
|
|
157
|
+
...Object.entries(item || {}).reduce((acc, [key, value]) => {
|
|
158
|
+
return {
|
|
159
|
+
...acc,
|
|
160
|
+
[key]: value ?? columns[key]?.defaultValue
|
|
161
|
+
};
|
|
162
|
+
}, {})
|
|
164
163
|
});
|
|
165
164
|
const navigate = (0, import_react_router.useNavigate)();
|
|
166
165
|
const submit = async () => {
|
package/dist/crud/index.mjs
CHANGED
|
@@ -112,13 +112,12 @@ function CrudFormProvider({
|
|
|
112
112
|
}) {
|
|
113
113
|
const apiPrefix = `/api${prefix2}`;
|
|
114
114
|
const store = useStore({
|
|
115
|
-
...item || {},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
key
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
)
|
|
115
|
+
...Object.entries(item || {}).reduce((acc, [key, value]) => {
|
|
116
|
+
return {
|
|
117
|
+
...acc,
|
|
118
|
+
[key]: value ?? columns[key]?.defaultValue
|
|
119
|
+
};
|
|
120
|
+
}, {})
|
|
122
121
|
});
|
|
123
122
|
const navigate = useNavigate();
|
|
124
123
|
const submit = async () => {
|
package/package.json
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"name": "dn-react-router-toolkit",
|
|
3
|
+
"version": "0.6.3",
|
|
4
|
+
"types": "./dist/index.d.ts",
|
|
5
|
+
"main": "./dist/index.mjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./auth": {
|
|
14
|
+
"types": "./dist/auth/index.d.ts",
|
|
15
|
+
"import": "./dist/auth/index.mjs",
|
|
16
|
+
"require": "./dist/auth/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./api": {
|
|
19
|
+
"types": "./dist/api/index.d.ts",
|
|
20
|
+
"import": "./dist/api/index.mjs",
|
|
21
|
+
"require": "./dist/api/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./client": {
|
|
24
|
+
"types": "./dist/client/index.d.ts",
|
|
25
|
+
"import": "./dist/client/index.mjs",
|
|
26
|
+
"require": "./dist/client/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./seo": {
|
|
29
|
+
"types": "./dist/seo/index.d.ts",
|
|
30
|
+
"import": "./dist/seo/index.mjs",
|
|
31
|
+
"require": "./dist/seo/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./db": {
|
|
34
|
+
"types": "./dist/db/index.d.ts",
|
|
35
|
+
"import": "./dist/db/index.mjs",
|
|
36
|
+
"require": "./dist/db/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./db/backup": {
|
|
39
|
+
"types": "./dist/db/backup/index.d.ts",
|
|
40
|
+
"import": "./dist/db/backup/index.mjs",
|
|
41
|
+
"require": "./dist/db/backup/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./table": {
|
|
44
|
+
"types": "./dist/table/index.d.ts",
|
|
45
|
+
"import": "./dist/table/index.mjs",
|
|
46
|
+
"require": "./dist/table/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./crud": {
|
|
49
|
+
"types": "./dist/crud/index.d.ts",
|
|
50
|
+
"import": "./dist/crud/index.mjs",
|
|
51
|
+
"require": "./dist/crud/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./post": {
|
|
54
|
+
"types": "./dist/post/index.d.ts",
|
|
55
|
+
"import": "./dist/post/index.mjs",
|
|
56
|
+
"require": "./dist/post/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./form": {
|
|
59
|
+
"types": "./dist/form/index.d.ts",
|
|
60
|
+
"import": "./dist/form/index.mjs",
|
|
61
|
+
"require": "./dist/form/index.js"
|
|
62
|
+
}
|
|
12
63
|
},
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"require": "./dist/auth/index.js"
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build": "tsup",
|
|
66
|
+
"dev": "tsup --watch"
|
|
17
67
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"require": "./dist/api/index.js"
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "git+https://github.com/dndnsoft/dn-react-router-toolkit.git"
|
|
22
71
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
72
|
+
"author": "",
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"bugs": {
|
|
75
|
+
"url": "https://github.com/dndnsoft/dn-react-router-toolkit/issues"
|
|
27
76
|
},
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
77
|
+
"homepage": "https://github.com/dndnsoft/dn-react-router-toolkit#readme",
|
|
78
|
+
"description": "",
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@types/node": "^24.10.1",
|
|
81
|
+
"@types/react": "^19",
|
|
82
|
+
"@types/react-dom": "^19",
|
|
83
|
+
"schema-dts": "^1.1.5",
|
|
84
|
+
"tsup": "^8.5.1",
|
|
85
|
+
"typescript": "^5.7.3"
|
|
32
86
|
},
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"@react-router/dev": "^7.11.0",
|
|
89
|
+
"dn-react-text-editor": "^0.2.4",
|
|
90
|
+
"dn-react-toolkit": "^0.2.49",
|
|
91
|
+
"pg": "^8.16.3",
|
|
92
|
+
"react-store-input": "^0.1.7",
|
|
93
|
+
"uuid": "^13.0.0"
|
|
37
94
|
},
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"./table": {
|
|
44
|
-
"types": "./dist/table/index.d.ts",
|
|
45
|
-
"import": "./dist/table/index.mjs",
|
|
46
|
-
"require": "./dist/table/index.js"
|
|
47
|
-
},
|
|
48
|
-
"./crud": {
|
|
49
|
-
"types": "./dist/crud/index.d.ts",
|
|
50
|
-
"import": "./dist/crud/index.mjs",
|
|
51
|
-
"require": "./dist/crud/index.js"
|
|
52
|
-
},
|
|
53
|
-
"./post": {
|
|
54
|
-
"types": "./dist/post/index.d.ts",
|
|
55
|
-
"import": "./dist/post/index.mjs",
|
|
56
|
-
"require": "./dist/post/index.js"
|
|
57
|
-
},
|
|
58
|
-
"./form": {
|
|
59
|
-
"types": "./dist/form/index.d.ts",
|
|
60
|
-
"import": "./dist/form/index.mjs",
|
|
61
|
-
"require": "./dist/form/index.js"
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"drizzle-orm": "^0.45.1",
|
|
97
|
+
"react": "^19",
|
|
98
|
+
"react-dom": "^19",
|
|
99
|
+
"react-router": "^7"
|
|
62
100
|
}
|
|
63
|
-
|
|
64
|
-
"scripts": {
|
|
65
|
-
"build": "tsup",
|
|
66
|
-
"dev": "tsup --watch"
|
|
67
|
-
},
|
|
68
|
-
"repository": {
|
|
69
|
-
"type": "git",
|
|
70
|
-
"url": "git+https://github.com/dndnsoft/dn-react-router-toolkit.git"
|
|
71
|
-
},
|
|
72
|
-
"author": "",
|
|
73
|
-
"license": "MIT",
|
|
74
|
-
"bugs": {
|
|
75
|
-
"url": "https://github.com/dndnsoft/dn-react-router-toolkit/issues"
|
|
76
|
-
},
|
|
77
|
-
"homepage": "https://github.com/dndnsoft/dn-react-router-toolkit#readme",
|
|
78
|
-
"description": "",
|
|
79
|
-
"devDependencies": {
|
|
80
|
-
"@types/node": "^24.10.1",
|
|
81
|
-
"@types/react": "^19",
|
|
82
|
-
"@types/react-dom": "^19",
|
|
83
|
-
"schema-dts": "^1.1.5",
|
|
84
|
-
"tsup": "^8.5.1",
|
|
85
|
-
"typescript": "^5.7.3"
|
|
86
|
-
},
|
|
87
|
-
"dependencies": {
|
|
88
|
-
"@react-router/dev": "^7.11.0",
|
|
89
|
-
"dn-react-text-editor": "^0.2.3",
|
|
90
|
-
"dn-react-toolkit": "^0.2.49",
|
|
91
|
-
"pg": "^8.16.3",
|
|
92
|
-
"react-store-input": "^0.1.7",
|
|
93
|
-
"uuid": "^13.0.0"
|
|
94
|
-
},
|
|
95
|
-
"peerDependencies": {
|
|
96
|
-
"drizzle-orm": "^0.45.1",
|
|
97
|
-
"react": "^19",
|
|
98
|
-
"react-dom": "^19",
|
|
99
|
-
"react-router": "^7"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
101
|
+
}
|