gomtm 0.0.211 → 0.0.221
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/esm/cli/build.js +3 -3
- package/dist/esm/curd/dlg/DlgCurdDebugInfo.js +1 -1
- package/dist/esm/curd/list-item/ListLayout.d.ts +1 -2
- package/dist/esm/form/SchemaFormView.d.ts +4 -4
- package/dist/esm/providers/GomtmProvider.js +1 -1
- package/dist/esm/validations/auth.d.ts +2 -2
- package/dist/esm/validations/env.d.ts +2 -2
- package/dist/esm/validations/spContentModi.d.ts +8 -8
- package/dist/esm/validations/spRoute.d.ts +6 -6
- package/dist/esm/validations/user.d.ts +6 -6
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/dist/esm/curd/CurdAtomsDebug.d.ts +0 -2
- package/dist/esm/curd/CurdAtomsDebug.js +0 -13
- package/dist/esm/curd/dlg/DlgDebugInfo.d.ts +0 -4
- package/dist/esm/curd/dlg/DlgDebugInfo.js +0 -21
- package/dist/gomtm +0 -0
package/dist/esm/cli/build.js
CHANGED
|
@@ -34,20 +34,20 @@ function registerCommandTurboBuild(program) {
|
|
|
34
34
|
const packagesVersionPatch = [
|
|
35
35
|
"packages/mtxlib",
|
|
36
36
|
"packages/mtxuilib",
|
|
37
|
-
"
|
|
37
|
+
"apps/gomtm",
|
|
38
38
|
// "packages/mtxdb",
|
|
39
|
-
"packages/mtwebworker",
|
|
39
|
+
// "packages/mtwebworker",
|
|
40
40
|
"apps/mtxui",
|
|
41
41
|
"apps/mtxedge"
|
|
42
42
|
// "apps/mtxcli",
|
|
43
43
|
];
|
|
44
|
+
yield exec(`(git commit -a -m "release" || true)`);
|
|
44
45
|
for (const p of packagesVersionPatch) {
|
|
45
46
|
console.log("\u66F4\u65B0\u7248\u672C\u53F7", p);
|
|
46
47
|
yield exec(`pnpm version patch`, {
|
|
47
48
|
cwd: resolve(projectRoot, p)
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
|
-
yield exec(`(git commit -a -m "release" || true)`);
|
|
51
51
|
yield sleep(4e3);
|
|
52
52
|
yield exec(`pnpm run release`, {
|
|
53
53
|
cwd: resolve(projectRoot)
|
|
@@ -3,9 +3,9 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { atom, useAtom } from "jotai";
|
|
4
4
|
import { DebugAtomValue } from "mtxuilib/common/devtools/DebugAtomValue";
|
|
5
5
|
import { flexRender } from "mtxuilib/lib/render";
|
|
6
|
-
import { isDebugAtom } from "mtxuilib/store/app.atoms";
|
|
7
6
|
import { Dialog, DialogContent, DialogTitle } from "mtxuilib/ui/dialog";
|
|
8
7
|
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
8
|
+
import { isDebugAtom } from "../../store/gomtm.atom";
|
|
9
9
|
import { exampleListItemComponent } from "../CommonListViewV2";
|
|
10
10
|
import { createMethodSigAtom, curdActivateIdAtom, removeMethodSigAtom } from "../curd.atoms";
|
|
11
11
|
const openDlgCurdDebugInfoAtom = atom(false);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react/experimental" />
|
|
2
1
|
import { PropsWithChildren } from "react";
|
|
3
2
|
import { ListViewLayout } from "../../gomtmpb/mtm/sppb/mtm_pb";
|
|
4
3
|
export declare const ListLayout: (props: {
|
|
5
4
|
layout: ListViewLayout;
|
|
6
|
-
} & PropsWithChildren) => string | number | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<import("react").AwaitedReactNode> | null | undefined;
|
|
5
|
+
} & PropsWithChildren) => string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<import("react").AwaitedReactNode> | null | undefined;
|
|
@@ -4,11 +4,11 @@ import { MaybePromise } from "mtxlib";
|
|
|
4
4
|
import { FormSchema } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
5
5
|
type SchemaFormViewVaranit = "auto" | "modal" | "card";
|
|
6
6
|
export declare const SchemaFormView: (props: {
|
|
7
|
-
formSchema?: PlainMessage<FormSchema
|
|
7
|
+
formSchema?: PlainMessage<FormSchema>;
|
|
8
8
|
defaultValues?: any;
|
|
9
9
|
onSubmit: (values: any) => MaybePromise<void>;
|
|
10
|
-
onCancel?: (
|
|
11
|
-
isLoading?: boolean
|
|
12
|
-
variants?: SchemaFormViewVaranit
|
|
10
|
+
onCancel?: () => void;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
variants?: SchemaFormViewVaranit;
|
|
13
13
|
}) => import("react").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -7,8 +7,8 @@ import { AtomsHydrator } from "mtxlib/jotai/jotai-helper";
|
|
|
7
7
|
import { useHotkeys } from "react-hotkeys-hook";
|
|
8
8
|
import { TransportProvider } from "../connectquery";
|
|
9
9
|
import { gomtmFetcher } from "../mtmFetcher";
|
|
10
|
-
import { MtReactQueryProvider } from "./ReactQueryProvider";
|
|
11
10
|
import { isDebugAtom } from "../store/gomtm.atom";
|
|
11
|
+
import { MtReactQueryProvider } from "./ReactQueryProvider";
|
|
12
12
|
const mtmAppStore = createStore();
|
|
13
13
|
const gomtmBaseUrlAtom = atom("");
|
|
14
14
|
const curd3BackendUrlAtom = atom((get) => {
|
|
@@ -12,12 +12,12 @@ export declare const AuthLoginInput: z.ZodObject<{
|
|
|
12
12
|
password: z.ZodString;
|
|
13
13
|
persistent: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
username: string;
|
|
16
15
|
password: string;
|
|
16
|
+
username: string;
|
|
17
17
|
persistent?: boolean | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
username: string;
|
|
20
19
|
password: string;
|
|
20
|
+
username: string;
|
|
21
21
|
persistent?: boolean | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
export type AuthLoginOut = z.infer<typeof AuthLoginOut>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const env: z.SafeParseReturnType<{
|
|
3
|
+
NODE_ENV: "production" | "development" | "test";
|
|
3
4
|
DATABASE_URL: string;
|
|
4
|
-
NODE_ENV: "development" | "test" | "production";
|
|
5
5
|
}, {
|
|
6
|
+
NODE_ENV: "production" | "development" | "test";
|
|
6
7
|
DATABASE_URL: string;
|
|
7
|
-
NODE_ENV: "development" | "test" | "production";
|
|
8
8
|
}>;
|
|
@@ -21,17 +21,17 @@ export declare const spContentModiCreateInput: z.ZodObject<{
|
|
|
21
21
|
action: z.ZodString;
|
|
22
22
|
value: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
action: string;
|
|
25
24
|
value: string;
|
|
26
|
-
|
|
25
|
+
action: string;
|
|
27
26
|
sel: string;
|
|
27
|
+
spRouteId: string;
|
|
28
28
|
matchContentType: string;
|
|
29
29
|
title?: string | undefined;
|
|
30
30
|
}, {
|
|
31
|
-
action: string;
|
|
32
31
|
value: string;
|
|
33
|
-
|
|
32
|
+
action: string;
|
|
34
33
|
sel: string;
|
|
34
|
+
spRouteId: string;
|
|
35
35
|
matchContentType: string;
|
|
36
36
|
title?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -44,19 +44,19 @@ export declare const spContentModiSaveInput: z.ZodObject<{
|
|
|
44
44
|
action: z.ZodString;
|
|
45
45
|
value: z.ZodString;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
value: string;
|
|
47
48
|
id: string;
|
|
48
49
|
action: string;
|
|
49
|
-
value: string;
|
|
50
|
-
spRouteId: string;
|
|
51
50
|
sel: string;
|
|
51
|
+
spRouteId: string;
|
|
52
52
|
matchContentType: string;
|
|
53
53
|
title?: string | undefined;
|
|
54
54
|
}, {
|
|
55
|
+
value: string;
|
|
55
56
|
id: string;
|
|
56
57
|
action: string;
|
|
57
|
-
value: string;
|
|
58
|
-
spRouteId: string;
|
|
59
58
|
sel: string;
|
|
59
|
+
spRouteId: string;
|
|
60
60
|
matchContentType: string;
|
|
61
61
|
title?: string | undefined;
|
|
62
62
|
}>;
|
|
@@ -22,15 +22,15 @@ export declare const spRouteCreateInput: z.ZodObject<{
|
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
title: string;
|
|
24
24
|
value: string;
|
|
25
|
+
spProjectId: string;
|
|
25
26
|
hostPattern: string;
|
|
26
27
|
pathPattern: string;
|
|
27
|
-
spProjectId: string;
|
|
28
28
|
}, {
|
|
29
29
|
title: string;
|
|
30
30
|
value: string;
|
|
31
|
+
spProjectId: string;
|
|
31
32
|
hostPattern: string;
|
|
32
33
|
pathPattern: string;
|
|
33
|
-
spProjectId: string;
|
|
34
34
|
}>;
|
|
35
35
|
export type SpRouteSaveInput = z.infer<typeof SpRouteSaveInput>;
|
|
36
36
|
export declare const SpRouteSaveInput: z.ZodObject<{
|
|
@@ -41,17 +41,17 @@ export declare const SpRouteSaveInput: z.ZodObject<{
|
|
|
41
41
|
pathPattern: z.ZodString;
|
|
42
42
|
value: z.ZodString;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
id: string;
|
|
45
44
|
title: string;
|
|
46
45
|
value: string;
|
|
46
|
+
id: string;
|
|
47
|
+
spProjectId: string;
|
|
47
48
|
hostPattern: string;
|
|
48
49
|
pathPattern: string;
|
|
49
|
-
spProjectId: string;
|
|
50
50
|
}, {
|
|
51
|
-
id: string;
|
|
52
51
|
title: string;
|
|
53
52
|
value: string;
|
|
53
|
+
id: string;
|
|
54
|
+
spProjectId: string;
|
|
54
55
|
hostPattern: string;
|
|
55
56
|
pathPattern: string;
|
|
56
|
-
spProjectId: string;
|
|
57
57
|
}>;
|
|
@@ -40,25 +40,25 @@ export declare const Oauth2LoginResponseSchema: z.ZodObject<{
|
|
|
40
40
|
accessToken: z.ZodString;
|
|
41
41
|
roles: z.ZodArray<z.ZodString, "many">;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
accessToken: string;
|
|
44
43
|
id: string;
|
|
45
|
-
|
|
44
|
+
accessToken: string;
|
|
46
45
|
userName: string;
|
|
46
|
+
roles: string[];
|
|
47
47
|
}, {
|
|
48
|
-
accessToken: string;
|
|
49
48
|
id: string;
|
|
50
|
-
|
|
49
|
+
accessToken: string;
|
|
51
50
|
userName: string;
|
|
51
|
+
roles: string[];
|
|
52
52
|
}>;
|
|
53
53
|
export type Oauth2LoginResponse = z.infer<typeof Oauth2LoginResponseSchema>;
|
|
54
54
|
export declare const MeResponseSchema: z.ZodObject<{
|
|
55
55
|
userName: z.ZodString;
|
|
56
56
|
roles: z.ZodArray<z.ZodString, "many">;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
roles: string[];
|
|
59
58
|
userName: string;
|
|
60
|
-
}, {
|
|
61
59
|
roles: string[];
|
|
60
|
+
}, {
|
|
62
61
|
userName: string;
|
|
62
|
+
roles: string[];
|
|
63
63
|
}>;
|
|
64
64
|
export type MeResponse = z.infer<typeof MeResponseSchema>;
|