dn-react-router-toolkit 0.7.0 → 0.7.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/crud/crud_form.js +1 -10
- package/dist/crud/crud_form.mjs +1 -10
- package/dist/crud/crud_page.js +1 -10
- package/dist/crud/crud_page.mjs +1 -10
- package/dist/crud/index.js +1 -10
- package/dist/crud/index.mjs +1 -10
- package/dist/post/index.js +4 -2
- package/dist/post/index.mjs +4 -2
- package/dist/post/post_form_page.d.mts +6 -1
- package/dist/post/post_form_page.d.ts +6 -1
- package/dist/post/post_form_page.js +4 -2
- package/dist/post/post_form_page.mjs +4 -2
- package/package.json +92 -92
package/dist/crud/crud_form.js
CHANGED
|
@@ -222,14 +222,5 @@ function CrudForm({
|
|
|
222
222
|
}
|
|
223
223
|
return /* @__PURE__ */ import_react8.default.createElement(FormRow, null, /* @__PURE__ */ import_react8.default.createElement(FormEntry, null, /* @__PURE__ */ import_react8.default.createElement(FormLabel, { key: name }, value.label), /* @__PURE__ */ import_react8.default.createElement(InputComponent, null)));
|
|
224
224
|
}
|
|
225
|
-
))
|
|
226
|
-
"button",
|
|
227
|
-
{
|
|
228
|
-
className: "button-dangerous mt-8",
|
|
229
|
-
onClick: () => {
|
|
230
|
-
form.delete();
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
"\uC0AD\uC81C\uD558\uAE30"
|
|
234
|
-
)));
|
|
225
|
+
))));
|
|
235
226
|
}
|
package/dist/crud/crud_form.mjs
CHANGED
|
@@ -188,16 +188,7 @@ function CrudForm({
|
|
|
188
188
|
}
|
|
189
189
|
return /* @__PURE__ */ React6.createElement(FormRow, null, /* @__PURE__ */ React6.createElement(FormEntry, null, /* @__PURE__ */ React6.createElement(FormLabel, { key: name }, value.label), /* @__PURE__ */ React6.createElement(InputComponent, null)));
|
|
190
190
|
}
|
|
191
|
-
))
|
|
192
|
-
"button",
|
|
193
|
-
{
|
|
194
|
-
className: "button-dangerous mt-8",
|
|
195
|
-
onClick: () => {
|
|
196
|
-
form.delete();
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
"\uC0AD\uC81C\uD558\uAE30"
|
|
200
|
-
)));
|
|
191
|
+
))));
|
|
201
192
|
}
|
|
202
193
|
export {
|
|
203
194
|
CrudForm as default
|
package/dist/crud/crud_page.js
CHANGED
|
@@ -765,16 +765,7 @@ function CrudForm({
|
|
|
765
765
|
}
|
|
766
766
|
return /* @__PURE__ */ import_react13.default.createElement(FormRow, null, /* @__PURE__ */ import_react13.default.createElement(FormEntry, null, /* @__PURE__ */ import_react13.default.createElement(FormLabel, { key: name }, value.label), /* @__PURE__ */ import_react13.default.createElement(InputComponent, null)));
|
|
767
767
|
}
|
|
768
|
-
))
|
|
769
|
-
"button",
|
|
770
|
-
{
|
|
771
|
-
className: "button-dangerous mt-8",
|
|
772
|
-
onClick: () => {
|
|
773
|
-
form.delete();
|
|
774
|
-
}
|
|
775
|
-
},
|
|
776
|
-
"\uC0AD\uC81C\uD558\uAE30"
|
|
777
|
-
)));
|
|
768
|
+
))));
|
|
778
769
|
}
|
|
779
770
|
|
|
780
771
|
// src/crud/crud_page.tsx
|
package/dist/crud/crud_page.mjs
CHANGED
|
@@ -739,16 +739,7 @@ function CrudForm({
|
|
|
739
739
|
}
|
|
740
740
|
return /* @__PURE__ */ React11.createElement(FormRow, null, /* @__PURE__ */ React11.createElement(FormEntry, null, /* @__PURE__ */ React11.createElement(FormLabel, { key: name }, value.label), /* @__PURE__ */ React11.createElement(InputComponent, null)));
|
|
741
741
|
}
|
|
742
|
-
))
|
|
743
|
-
"button",
|
|
744
|
-
{
|
|
745
|
-
className: "button-dangerous mt-8",
|
|
746
|
-
onClick: () => {
|
|
747
|
-
form.delete();
|
|
748
|
-
}
|
|
749
|
-
},
|
|
750
|
-
"\uC0AD\uC81C\uD558\uAE30"
|
|
751
|
-
)));
|
|
742
|
+
))));
|
|
752
743
|
}
|
|
753
744
|
|
|
754
745
|
// src/crud/crud_page.tsx
|
package/dist/crud/index.js
CHANGED
|
@@ -7964,16 +7964,7 @@ function CrudForm({
|
|
|
7964
7964
|
}
|
|
7965
7965
|
return /* @__PURE__ */ import_react8.default.createElement(FormRow, null, /* @__PURE__ */ import_react8.default.createElement(FormEntry, null, /* @__PURE__ */ import_react8.default.createElement(FormLabel, { key: name }, value.label), /* @__PURE__ */ import_react8.default.createElement(InputComponent, null)));
|
|
7966
7966
|
}
|
|
7967
|
-
))
|
|
7968
|
-
"button",
|
|
7969
|
-
{
|
|
7970
|
-
className: "button-dangerous mt-8",
|
|
7971
|
-
onClick: () => {
|
|
7972
|
-
form.delete();
|
|
7973
|
-
}
|
|
7974
|
-
},
|
|
7975
|
-
"\uC0AD\uC81C\uD558\uAE30"
|
|
7976
|
-
)));
|
|
7967
|
+
))));
|
|
7977
7968
|
}
|
|
7978
7969
|
|
|
7979
7970
|
// src/table/loader.tsx
|
package/dist/crud/index.mjs
CHANGED
|
@@ -7947,16 +7947,7 @@ function CrudForm({
|
|
|
7947
7947
|
}
|
|
7948
7948
|
return /* @__PURE__ */ React6.createElement(FormRow, null, /* @__PURE__ */ React6.createElement(FormEntry, null, /* @__PURE__ */ React6.createElement(FormLabel, { key: name }, value.label), /* @__PURE__ */ React6.createElement(InputComponent, null)));
|
|
7949
7949
|
}
|
|
7950
|
-
))
|
|
7951
|
-
"button",
|
|
7952
|
-
{
|
|
7953
|
-
className: "button-dangerous mt-8",
|
|
7954
|
-
onClick: () => {
|
|
7955
|
-
form.delete();
|
|
7956
|
-
}
|
|
7957
|
-
},
|
|
7958
|
-
"\uC0AD\uC81C\uD558\uAE30"
|
|
7959
|
-
)));
|
|
7950
|
+
))));
|
|
7960
7951
|
}
|
|
7961
7952
|
|
|
7962
7953
|
// src/table/loader.tsx
|
package/dist/post/index.js
CHANGED
|
@@ -8129,7 +8129,8 @@ var Routes = __toESM(require_routes());
|
|
|
8129
8129
|
// src/post/post_form_page.tsx
|
|
8130
8130
|
var createPostFormPage = ({
|
|
8131
8131
|
header: AdminPageHeader,
|
|
8132
|
-
textEditorClassName
|
|
8132
|
+
textEditorClassName,
|
|
8133
|
+
attachFile
|
|
8133
8134
|
}) => {
|
|
8134
8135
|
return function PostFormPage({ form }) {
|
|
8135
8136
|
const { boards } = (0, import_react_router11.useLoaderData)();
|
|
@@ -8252,7 +8253,8 @@ var createPostFormPage = ({
|
|
|
8252
8253
|
attributes: {
|
|
8253
8254
|
class: (0, import_utils6.cn)(textEditorClassName, "pb-[50vh]")
|
|
8254
8255
|
}
|
|
8255
|
-
}
|
|
8256
|
+
},
|
|
8257
|
+
attachFile
|
|
8256
8258
|
}
|
|
8257
8259
|
)));
|
|
8258
8260
|
};
|
package/dist/post/index.mjs
CHANGED
|
@@ -8135,7 +8135,8 @@ var Routes = __toESM(require_routes());
|
|
|
8135
8135
|
// src/post/post_form_page.tsx
|
|
8136
8136
|
var createPostFormPage = ({
|
|
8137
8137
|
header: AdminPageHeader,
|
|
8138
|
-
textEditorClassName
|
|
8138
|
+
textEditorClassName,
|
|
8139
|
+
attachFile
|
|
8139
8140
|
}) => {
|
|
8140
8141
|
return function PostFormPage({ form }) {
|
|
8141
8142
|
const { boards } = useLoaderData3();
|
|
@@ -8258,7 +8259,8 @@ var createPostFormPage = ({
|
|
|
8258
8259
|
attributes: {
|
|
8259
8260
|
class: cn6(textEditorClassName, "pb-[50vh]")
|
|
8260
8261
|
}
|
|
8261
|
-
}
|
|
8262
|
+
},
|
|
8263
|
+
attachFile
|
|
8262
8264
|
}
|
|
8263
8265
|
)));
|
|
8264
8266
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
+
import { GenerateMetadata, UploadFile } from 'dn-react-text-editor';
|
|
2
3
|
import { FormContextProps } from '../crud/crud_form_provider.mjs';
|
|
3
4
|
import 'react-store-input';
|
|
4
5
|
|
|
@@ -14,12 +15,16 @@ declare const createPostFormPage: <TModel extends {
|
|
|
14
15
|
html: string;
|
|
15
16
|
isPublic: boolean;
|
|
16
17
|
createdAt: Date;
|
|
17
|
-
}>({ header: AdminPageHeader, textEditorClassName, }: {
|
|
18
|
+
}>({ header: AdminPageHeader, textEditorClassName, attachFile, }: {
|
|
18
19
|
header: React__default.FC<{
|
|
19
20
|
title: string;
|
|
20
21
|
actions?: React__default.ReactNode;
|
|
21
22
|
}>;
|
|
22
23
|
textEditorClassName: string;
|
|
24
|
+
attachFile?: {
|
|
25
|
+
generateMetadata?: GenerateMetadata | undefined;
|
|
26
|
+
uploadFile?: UploadFile;
|
|
27
|
+
};
|
|
23
28
|
}) => React__default.FC<{
|
|
24
29
|
form: FormContextProps<TModel>;
|
|
25
30
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
+
import { GenerateMetadata, UploadFile } from 'dn-react-text-editor';
|
|
2
3
|
import { FormContextProps } from '../crud/crud_form_provider.js';
|
|
3
4
|
import 'react-store-input';
|
|
4
5
|
|
|
@@ -14,12 +15,16 @@ declare const createPostFormPage: <TModel extends {
|
|
|
14
15
|
html: string;
|
|
15
16
|
isPublic: boolean;
|
|
16
17
|
createdAt: Date;
|
|
17
|
-
}>({ header: AdminPageHeader, textEditorClassName, }: {
|
|
18
|
+
}>({ header: AdminPageHeader, textEditorClassName, attachFile, }: {
|
|
18
19
|
header: React__default.FC<{
|
|
19
20
|
title: string;
|
|
20
21
|
actions?: React__default.ReactNode;
|
|
21
22
|
}>;
|
|
22
23
|
textEditorClassName: string;
|
|
24
|
+
attachFile?: {
|
|
25
|
+
generateMetadata?: GenerateMetadata | undefined;
|
|
26
|
+
uploadFile?: UploadFile;
|
|
27
|
+
};
|
|
23
28
|
}) => React__default.FC<{
|
|
24
29
|
form: FormContextProps<TModel>;
|
|
25
30
|
}>;
|
|
@@ -8127,7 +8127,8 @@ var Routes = __toESM(require_routes());
|
|
|
8127
8127
|
// src/post/post_form_page.tsx
|
|
8128
8128
|
var createPostFormPage = ({
|
|
8129
8129
|
header: AdminPageHeader,
|
|
8130
|
-
textEditorClassName
|
|
8130
|
+
textEditorClassName,
|
|
8131
|
+
attachFile
|
|
8131
8132
|
}) => {
|
|
8132
8133
|
return function PostFormPage({ form }) {
|
|
8133
8134
|
const { boards } = (0, import_react_router11.useLoaderData)();
|
|
@@ -8250,7 +8251,8 @@ var createPostFormPage = ({
|
|
|
8250
8251
|
attributes: {
|
|
8251
8252
|
class: (0, import_utils6.cn)(textEditorClassName, "pb-[50vh]")
|
|
8252
8253
|
}
|
|
8253
|
-
}
|
|
8254
|
+
},
|
|
8255
|
+
attachFile
|
|
8254
8256
|
}
|
|
8255
8257
|
)));
|
|
8256
8258
|
};
|
|
@@ -8137,7 +8137,8 @@ var Routes = __toESM(require_routes());
|
|
|
8137
8137
|
// src/post/post_form_page.tsx
|
|
8138
8138
|
var createPostFormPage = ({
|
|
8139
8139
|
header: AdminPageHeader,
|
|
8140
|
-
textEditorClassName
|
|
8140
|
+
textEditorClassName,
|
|
8141
|
+
attachFile
|
|
8141
8142
|
}) => {
|
|
8142
8143
|
return function PostFormPage({ form }) {
|
|
8143
8144
|
const { boards } = useLoaderData3();
|
|
@@ -8260,7 +8261,8 @@ var createPostFormPage = ({
|
|
|
8260
8261
|
attributes: {
|
|
8261
8262
|
class: cn6(textEditorClassName, "pb-[50vh]")
|
|
8262
8263
|
}
|
|
8263
|
-
}
|
|
8264
|
+
},
|
|
8265
|
+
attachFile
|
|
8264
8266
|
}
|
|
8265
8267
|
)));
|
|
8266
8268
|
};
|
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.7.2",
|
|
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
|
+
"@react-router/dev": "^7.12.0",
|
|
86
|
+
"typescript": "^5.7.3"
|
|
32
87
|
},
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
88
|
+
"dependencies": {
|
|
89
|
+
"dn-react-text-editor": "^0.3.6",
|
|
90
|
+
"dn-react-toolkit": "^0.2.49",
|
|
91
|
+
"pg": "^8.16.3",
|
|
92
|
+
"react-store-input": "^0.2.0",
|
|
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.12.0"
|
|
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
|
-
"@react-router/dev": "^7.12.0",
|
|
86
|
-
"typescript": "^5.7.3"
|
|
87
|
-
},
|
|
88
|
-
"dependencies": {
|
|
89
|
-
"dn-react-text-editor": "^0.3.6",
|
|
90
|
-
"dn-react-toolkit": "^0.2.49",
|
|
91
|
-
"pg": "^8.16.3",
|
|
92
|
-
"react-store-input": "^0.2.0",
|
|
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.12.0"
|
|
100
|
-
}
|
|
101
101
|
}
|