dn-react-router-toolkit 0.8.1 → 0.9.1
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/api/create_api_handler.d.mts +2 -2
- package/dist/api/create_api_handler.d.ts +2 -2
- package/dist/api/create_api_handler.js +55 -52
- package/dist/api/create_api_handler.mjs +61 -59
- package/dist/api/create_handler.d.mts +5 -5
- package/dist/api/create_handler.d.ts +5 -5
- package/dist/api/create_handler.js +41 -44
- package/dist/api/create_handler.mjs +41 -44
- package/dist/api/index.d.mts +4 -3
- package/dist/api/index.d.ts +4 -3
- package/dist/api/index.js +118 -102
- package/dist/api/index.mjs +130 -109
- package/dist/api/item_api_handler.d.mts +4 -3
- package/dist/api/item_api_handler.d.ts +4 -3
- package/dist/api/item_api_handler.js +22 -6
- package/dist/api/item_api_handler.mjs +28 -6
- package/dist/auth/cookie_manager.d.mts +1 -1
- package/dist/auth/cookie_manager.d.ts +1 -1
- package/dist/auth/index.d.mts +2 -2
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +18 -18
- package/dist/auth/index.mjs +18 -18
- package/dist/auth/with_auth.d.mts +2 -2
- package/dist/auth/with_auth.d.ts +2 -2
- package/dist/auth/with_auth.js +18 -18
- package/dist/auth/with_auth.mjs +18 -18
- package/dist/client/editor.d.mts +2 -2
- package/dist/client/editor.d.ts +2 -2
- package/dist/client/editor.js +9 -3
- package/dist/client/editor.mjs +9 -3
- package/dist/client/index.d.mts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +9 -3
- package/dist/client/index.mjs +9 -3
- package/dist/crud/crud_form.js +22 -4
- package/dist/crud/crud_form.mjs +11 -3
- package/dist/crud/crud_form_provider.js +16 -3
- package/dist/crud/crud_form_provider.mjs +14 -1
- package/dist/crud/index.d.mts +0 -20
- package/dist/crud/index.d.ts +0 -20
- package/dist/crud/index.js +32 -8589
- package/dist/crud/index.mjs +11 -8599
- package/dist/db/backup/index.d.mts +1 -1
- package/dist/db/backup/index.d.ts +1 -1
- package/dist/form/create_form_component.js +21 -2
- package/dist/form/create_form_component.mjs +10 -1
- package/dist/form/form_components.js +21 -2
- package/dist/form/form_components.mjs +10 -1
- package/dist/form/index.js +21 -2
- package/dist/form/index.mjs +10 -1
- package/dist/post/editor_toolbar.js +20 -3
- package/dist/post/editor_toolbar.mjs +9 -2
- package/dist/post/index.js +93 -7711
- package/dist/post/index.mjs +69 -7723
- package/dist/post/post_form_page.js +91 -7711
- package/dist/post/post_form_page.mjs +69 -7725
- package/dist/post/thumbnail_picker.js +21 -2
- package/dist/post/thumbnail_picker.mjs +10 -1
- package/dist/table/buttons.js +11 -14
- package/dist/table/buttons.mjs +10 -13
- package/dist/table/index.d.mts +0 -2
- package/dist/table/index.d.ts +0 -2
- package/dist/table/index.js +24 -95
- package/dist/table/index.mjs +23 -92
- package/dist/table/load_table.d.mts +1 -1
- package/dist/table/load_table.d.ts +1 -1
- package/dist/table/load_table.js +2 -2
- package/dist/table/load_table.mjs +2 -2
- package/dist/table/loader.js +2 -2
- package/dist/table/loader.mjs +2 -2
- package/dist/table/table.d.mts +2 -2
- package/dist/table/table.d.ts +2 -2
- package/dist/table/table.js +14 -25
- package/dist/table/table.mjs +11 -24
- package/dist/table/table_form.js +16 -39
- package/dist/table/table_form.mjs +15 -38
- package/dist/utils/cn.d.mts +3 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.js +32 -0
- package/dist/utils/cn.mjs +7 -0
- package/dist/utils/date.d.mts +5 -0
- package/dist/utils/date.d.ts +5 -0
- package/dist/utils/date.js +65 -0
- package/dist/utils/date.mjs +29 -0
- package/dist/utils/index.d.mts +7 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.js +116 -0
- package/dist/utils/index.mjs +73 -0
- package/dist/utils/korean.d.mts +6 -0
- package/dist/utils/korean.d.ts +6 -0
- package/dist/{crud/generate_pages.js → utils/korean.js} +16 -30
- package/dist/utils/korean.mjs +16 -0
- package/dist/utils/singleton.d.mts +3 -0
- package/dist/utils/singleton.d.ts +3 -0
- package/dist/utils/singleton.js +37 -0
- package/dist/utils/singleton.mjs +12 -0
- package/dist/utils/sleep.d.mts +3 -0
- package/dist/utils/sleep.d.ts +3 -0
- package/dist/{table/item_loader.js → utils/sleep.js} +8 -19
- package/dist/utils/sleep.mjs +7 -0
- package/dist/utils/slug.d.mts +3 -0
- package/dist/utils/slug.d.ts +3 -0
- package/dist/{crud/generate_handlers.js → utils/slug.js} +8 -15
- package/dist/utils/slug.mjs +7 -0
- package/package.json +7 -3
- package/dist/crud/crud_loader.d.mts +0 -26
- package/dist/crud/crud_loader.d.ts +0 -26
- package/dist/crud/crud_loader.js +0 -351
- package/dist/crud/crud_loader.mjs +0 -337
- package/dist/crud/crud_page.d.mts +0 -32
- package/dist/crud/crud_page.d.ts +0 -32
- package/dist/crud/crud_page.js +0 -776
- package/dist/crud/crud_page.mjs +0 -758
- package/dist/crud/generate_handlers.d.mts +0 -16
- package/dist/crud/generate_handlers.d.ts +0 -16
- package/dist/crud/generate_handlers.mjs +0 -14
- package/dist/crud/generate_pages.d.mts +0 -19
- package/dist/crud/generate_pages.d.ts +0 -19
- package/dist/crud/generate_pages.mjs +0 -30
- package/dist/crud/generate_routes.d.mts +0 -5
- package/dist/crud/generate_routes.d.ts +0 -5
- package/dist/crud/generate_routes.js +0 -7639
- package/dist/crud/generate_routes.mjs +0 -7627
- package/dist/table/item_loader.d.mts +0 -14
- package/dist/table/item_loader.d.ts +0 -14
- package/dist/table/item_loader.mjs +0 -18
- package/dist/table/page.d.mts +0 -16
- package/dist/table/page.d.ts +0 -16
- package/dist/table/page.js +0 -375
- package/dist/table/page.mjs +0 -350
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/form/create_form_component.tsx
|
|
@@ -23,13 +33,22 @@ __export(create_form_component_exports, {
|
|
|
23
33
|
createComponent: () => createComponent
|
|
24
34
|
});
|
|
25
35
|
module.exports = __toCommonJS(create_form_component_exports);
|
|
26
|
-
var import_utils = require("dn-react-toolkit/utils");
|
|
27
36
|
var import_react = require("react");
|
|
37
|
+
|
|
38
|
+
// src/utils/cn.ts
|
|
39
|
+
function cn(...classes) {
|
|
40
|
+
return classes.filter(Boolean).join(" ").trim();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// src/utils/date.ts
|
|
44
|
+
var import_moment_timezone = __toESM(require("moment-timezone"));
|
|
45
|
+
|
|
46
|
+
// src/form/create_form_component.tsx
|
|
28
47
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
48
|
function createComponent(tag, options) {
|
|
30
49
|
return function FormComponent({ className, ...props }) {
|
|
31
50
|
const Tag = tag;
|
|
32
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tag, { ...props, className:
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tag, { ...props, className: cn(options.className, className) });
|
|
33
52
|
};
|
|
34
53
|
}
|
|
35
54
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
// src/form/create_form_component.tsx
|
|
2
|
-
import { cn } from "dn-react-toolkit/utils";
|
|
3
2
|
import "react";
|
|
3
|
+
|
|
4
|
+
// src/utils/cn.ts
|
|
5
|
+
function cn(...classes) {
|
|
6
|
+
return classes.filter(Boolean).join(" ").trim();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// src/utils/date.ts
|
|
10
|
+
import moment from "moment-timezone";
|
|
11
|
+
|
|
12
|
+
// src/form/create_form_component.tsx
|
|
4
13
|
import { jsx } from "react/jsx-runtime";
|
|
5
14
|
function createComponent(tag, options) {
|
|
6
15
|
return function FormComponent({ className, ...props }) {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/form/form_components.tsx
|
|
@@ -27,13 +37,22 @@ __export(form_components_exports, {
|
|
|
27
37
|
module.exports = __toCommonJS(form_components_exports);
|
|
28
38
|
|
|
29
39
|
// src/form/create_form_component.tsx
|
|
30
|
-
var import_utils = require("dn-react-toolkit/utils");
|
|
31
40
|
var import_react = require("react");
|
|
41
|
+
|
|
42
|
+
// src/utils/cn.ts
|
|
43
|
+
function cn(...classes) {
|
|
44
|
+
return classes.filter(Boolean).join(" ").trim();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// src/utils/date.ts
|
|
48
|
+
var import_moment_timezone = __toESM(require("moment-timezone"));
|
|
49
|
+
|
|
50
|
+
// src/form/create_form_component.tsx
|
|
32
51
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
52
|
function createComponent(tag, options) {
|
|
34
53
|
return function FormComponent({ className, ...props }) {
|
|
35
54
|
const Tag = tag;
|
|
36
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tag, { ...props, className:
|
|
55
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tag, { ...props, className: cn(options.className, className) });
|
|
37
56
|
};
|
|
38
57
|
}
|
|
39
58
|
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
// src/form/create_form_component.tsx
|
|
2
|
-
import { cn } from "dn-react-toolkit/utils";
|
|
3
2
|
import "react";
|
|
3
|
+
|
|
4
|
+
// src/utils/cn.ts
|
|
5
|
+
function cn(...classes) {
|
|
6
|
+
return classes.filter(Boolean).join(" ").trim();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// src/utils/date.ts
|
|
10
|
+
import moment from "moment-timezone";
|
|
11
|
+
|
|
12
|
+
// src/form/create_form_component.tsx
|
|
4
13
|
import { jsx } from "react/jsx-runtime";
|
|
5
14
|
function createComponent(tag, options) {
|
|
6
15
|
return function FormComponent({ className, ...props }) {
|
package/dist/form/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/form/index.ts
|
|
@@ -28,13 +38,22 @@ __export(form_exports, {
|
|
|
28
38
|
module.exports = __toCommonJS(form_exports);
|
|
29
39
|
|
|
30
40
|
// src/form/create_form_component.tsx
|
|
31
|
-
var import_utils = require("dn-react-toolkit/utils");
|
|
32
41
|
var import_react = require("react");
|
|
42
|
+
|
|
43
|
+
// src/utils/cn.ts
|
|
44
|
+
function cn(...classes) {
|
|
45
|
+
return classes.filter(Boolean).join(" ").trim();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// src/utils/date.ts
|
|
49
|
+
var import_moment_timezone = __toESM(require("moment-timezone"));
|
|
50
|
+
|
|
51
|
+
// src/form/create_form_component.tsx
|
|
33
52
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
53
|
function createComponent(tag, options) {
|
|
35
54
|
return function FormComponent({ className, ...props }) {
|
|
36
55
|
const Tag = tag;
|
|
37
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tag, { ...props, className:
|
|
56
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tag, { ...props, className: cn(options.className, className) });
|
|
38
57
|
};
|
|
39
58
|
}
|
|
40
59
|
|
package/dist/form/index.mjs
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
// src/form/create_form_component.tsx
|
|
2
|
-
import { cn } from "dn-react-toolkit/utils";
|
|
3
2
|
import "react";
|
|
3
|
+
|
|
4
|
+
// src/utils/cn.ts
|
|
5
|
+
function cn(...classes) {
|
|
6
|
+
return classes.filter(Boolean).join(" ").trim();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// src/utils/date.ts
|
|
10
|
+
import moment from "moment-timezone";
|
|
11
|
+
|
|
12
|
+
// src/form/create_form_component.tsx
|
|
4
13
|
import { jsx } from "react/jsx-runtime";
|
|
5
14
|
function createComponent(tag, options) {
|
|
6
15
|
return function FormComponent({ className, ...props }) {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/post/editor_toolbar.tsx
|
|
@@ -23,7 +33,6 @@ __export(editor_toolbar_exports, {
|
|
|
23
33
|
EditorToolbar: () => EditorToolbar
|
|
24
34
|
});
|
|
25
35
|
module.exports = __toCommonJS(editor_toolbar_exports);
|
|
26
|
-
var import_utils = require("dn-react-toolkit/utils");
|
|
27
36
|
var import_go = require("react-icons/go");
|
|
28
37
|
|
|
29
38
|
// src/client/env_loader.tsx
|
|
@@ -86,7 +95,15 @@ var import_react2 = require("react");
|
|
|
86
95
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
87
96
|
|
|
88
97
|
// src/client/editor.tsx
|
|
89
|
-
var import_client = require("
|
|
98
|
+
var import_client = require("gw-file/client");
|
|
99
|
+
|
|
100
|
+
// src/utils/cn.ts
|
|
101
|
+
function cn(...classes) {
|
|
102
|
+
return classes.filter(Boolean).join(" ").trim();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// src/utils/date.ts
|
|
106
|
+
var import_moment_timezone = __toESM(require("moment-timezone"));
|
|
90
107
|
|
|
91
108
|
// src/post/editor_toolbar.tsx
|
|
92
109
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
@@ -97,7 +114,7 @@ function EditorToolbar({
|
|
|
97
114
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
98
115
|
"div",
|
|
99
116
|
{
|
|
100
|
-
className:
|
|
117
|
+
className: cn("w-full h-12 flex items-center gap-0.5 px-1", className),
|
|
101
118
|
children: [
|
|
102
119
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
103
120
|
FileInput,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/post/editor_toolbar.tsx
|
|
2
|
-
import { cn } from "dn-react-toolkit/utils";
|
|
3
2
|
import {
|
|
4
3
|
GoFileMedia,
|
|
5
4
|
GoLink,
|
|
@@ -71,7 +70,15 @@ import { useImperativeHandle, useRef as useRef2 } from "react";
|
|
|
71
70
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
72
71
|
|
|
73
72
|
// src/client/editor.tsx
|
|
74
|
-
import { generateMetadata } from "
|
|
73
|
+
import { generateMetadata } from "gw-file/client";
|
|
74
|
+
|
|
75
|
+
// src/utils/cn.ts
|
|
76
|
+
function cn(...classes) {
|
|
77
|
+
return classes.filter(Boolean).join(" ").trim();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// src/utils/date.ts
|
|
81
|
+
import moment from "moment-timezone";
|
|
75
82
|
|
|
76
83
|
// src/post/editor_toolbar.tsx
|
|
77
84
|
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|