gomtm 0.0.162 → 0.0.163

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.
Files changed (79) hide show
  1. package/dist/esm/components/ListItem.d.ts +6 -0
  2. package/dist/esm/components/ListItem.js +49 -0
  3. package/dist/esm/components/auth/AuthPage.d.ts +2 -0
  4. package/dist/esm/components/auth/AuthPage.js +36 -0
  5. package/dist/esm/components/auth/LoginScreen2.d.ts +2 -0
  6. package/dist/esm/components/auth/LoginScreen2.js +106 -0
  7. package/dist/esm/components/auth/UserAuthForm.d.ts +6 -0
  8. package/dist/esm/components/auth/UserAuthForm.js +76 -0
  9. package/dist/esm/components/blog/BlogPostActions.d.ts +4 -0
  10. package/dist/esm/components/blog/BlogPostActions.js +34 -0
  11. package/dist/esm/components/blog/BlogPostCreateForm.d.ts +2 -0
  12. package/dist/esm/components/blog/BlogPostCreateForm.js +27 -0
  13. package/dist/esm/components/blog/BlogPostImportDlgUrl.d.ts +6 -0
  14. package/dist/esm/components/blog/BlogPostImportDlgUrl.js +94 -0
  15. package/dist/esm/components/blog/PostCard.d.ts +5 -0
  16. package/dist/esm/components/blog/PostCard.js +38 -0
  17. package/dist/esm/components/blog/PostEditForm.d.ts +2 -0
  18. package/dist/esm/components/blog/PostEditForm.js +91 -0
  19. package/dist/esm/components/blog/post-content.d.ts +5 -0
  20. package/dist/esm/components/blog/post-content.js +15 -0
  21. package/dist/esm/components/blog/post.atoms.d.ts +11 -0
  22. package/dist/esm/components/blog/post.atoms.js +9 -0
  23. package/dist/esm/curd/CommonListViewV2.d.ts +4 -3
  24. package/dist/esm/curd/CommonListViewV2.js +6 -6
  25. package/dist/esm/curd/CreateFormV2.d.ts +2 -3
  26. package/dist/esm/curd/CreateFormV2.js +1 -1
  27. package/dist/esm/curd/CurdViewView.d.ts +2 -2
  28. package/dist/esm/curd/CurdViewView.js +3 -6
  29. package/dist/esm/gomtm-clients-ss.d.ts +6 -0
  30. package/dist/esm/gomtm-clients-ss.js +9 -3
  31. package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.d.ts +5 -9
  32. package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.js +20 -63
  33. package/dist/esm/hooks/useAuth.d.ts +5 -0
  34. package/dist/esm/hooks/useAuth.js +43 -0
  35. package/dist/esm/lib/auth/jwt.d.ts +7 -0
  36. package/dist/esm/lib/auth/jwt.js +43 -0
  37. package/dist/esm/ly/DashLayout.d.ts +2 -0
  38. package/dist/esm/ly/DashLayout.js +39 -0
  39. package/dist/esm/ly/UserAvatorMenus.d.ts +2 -0
  40. package/dist/esm/ly/UserAvatorMenus.js +63 -0
  41. package/dist/esm/ly/dash5/aside.d.ts +2 -0
  42. package/dist/esm/ly/dash5/aside.js +40 -0
  43. package/dist/esm/ly/dash5/components/PageCreate.d.ts +4 -0
  44. package/dist/esm/ly/dash5/components/PageCreate.js +8 -0
  45. package/dist/esm/ly/dash5/components/PageEdit.d.ts +4 -0
  46. package/dist/esm/ly/dash5/components/PageEdit.js +8 -0
  47. package/dist/esm/ly/dash5/components/PageList.d.ts +4 -0
  48. package/dist/esm/ly/dash5/components/PageList.js +9 -0
  49. package/dist/esm/ly/dash5/components/PageShow.d.ts +4 -0
  50. package/dist/esm/ly/dash5/components/PageShow.js +8 -0
  51. package/dist/esm/ly/dash5/header.d.ts +2 -0
  52. package/dist/esm/ly/dash5/header.js +123 -0
  53. package/dist/esm/ly/dash5/index.d.ts +2 -0
  54. package/dist/esm/ly/dash5/index.js +21 -0
  55. package/dist/esm/ly/front-layout/PageCmds.d.ts +2 -0
  56. package/dist/esm/ly/front-layout/PageCmds.js +25 -0
  57. package/dist/esm/ly/front-layout/PageSearchCmd.d.ts +2 -0
  58. package/dist/esm/ly/front-layout/PageSearchCmd.js +63 -0
  59. package/dist/esm/ly/front-layout/header.d.ts +2 -0
  60. package/dist/esm/ly/front-layout/header.js +18 -0
  61. package/dist/esm/ly/front-layout/index.d.ts +2 -0
  62. package/dist/esm/ly/front-layout/index.js +13 -0
  63. package/dist/esm/ly/front-layout/main-nav.d.ts +3 -0
  64. package/dist/esm/ly/front-layout/main-nav.js +116 -0
  65. package/dist/esm/providers/GomtmAppSS.js +6 -6
  66. package/dist/esm/providers/GomtmProvider.js +4 -1
  67. package/dist/esm/providers/logger.context.d.ts +4 -0
  68. package/dist/esm/store/CurdListViewV3.d.ts +13 -0
  69. package/dist/esm/store/CurdListViewV3.js +98 -0
  70. package/dist/esm/store/ExampleStoreProvider.d.ts +6 -0
  71. package/dist/esm/store/ExampleStoreProvider.js +43 -0
  72. package/dist/esm/store/GomtmBackendProvider.d.ts +8 -0
  73. package/dist/esm/store/GomtmBackendProvider.js +28 -0
  74. package/dist/esm/validations/env.d.ts +2 -2
  75. package/dist/esm/validations/spContentModi.d.ts +8 -8
  76. package/dist/esm/validations/spRoute.d.ts +8 -8
  77. package/dist/gomtm +0 -0
  78. package/dist/tsconfig.type.tsbuildinfo +1 -1
  79. package/package.json +119 -7
@@ -0,0 +1,28 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { Provider, atom, createStore } from "jotai";
4
+ import { AtomsHydrator } from "mtxlib/jotai/jotai-helper";
5
+ import { useMemo } from "react";
6
+ const gomtmBaseUrlAtom = atom("");
7
+ const GomtmBackendProvider = (props) => {
8
+ const { baseUrl, children } = props;
9
+ const store = useMemo(() => {
10
+ const _store = createStore();
11
+ _store.set(gomtmBaseUrlAtom, baseUrl || "");
12
+ return _store;
13
+ }, [baseUrl]);
14
+ return /* @__PURE__ */ jsx(Provider, { store, children: /* @__PURE__ */ jsxs(AtomsHydrator, { atomValues: [
15
+ [gomtmBaseUrlAtom, baseUrl]
16
+ ], children: [
17
+ "backend: ",
18
+ baseUrl,
19
+ children
20
+ ] }) });
21
+ };
22
+ const useGomtmBackend = () => {
23
+ };
24
+ export {
25
+ GomtmBackendProvider,
26
+ gomtmBaseUrlAtom,
27
+ useGomtmBackend
28
+ };
@@ -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
- sel: string;
25
+ action: string;
27
26
  spRouteId: string;
27
+ sel: string;
28
28
  matchContentType: string;
29
29
  title?: string | undefined;
30
30
  }, {
31
- action: string;
32
31
  value: string;
33
- sel: string;
32
+ action: string;
34
33
  spRouteId: string;
34
+ sel: 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
- sel: string;
51
50
  spRouteId: string;
51
+ sel: 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
- sel: string;
59
58
  spRouteId: string;
59
+ sel: string;
60
60
  matchContentType: string;
61
61
  title?: string | undefined;
62
62
  }>;
@@ -20,17 +20,17 @@ export declare const spRouteCreateInput: z.ZodObject<{
20
20
  pathPattern: z.ZodString;
21
21
  value: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
+ value: string;
23
24
  title: string;
24
- spProjectId: string;
25
25
  hostPattern: string;
26
26
  pathPattern: string;
27
- value: string;
27
+ spProjectId: string;
28
28
  }, {
29
+ value: string;
29
30
  title: string;
30
- spProjectId: string;
31
31
  hostPattern: string;
32
32
  pathPattern: string;
33
- value: 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
+ value: string;
44
45
  id: string;
45
46
  title: string;
46
- spProjectId: string;
47
47
  hostPattern: string;
48
48
  pathPattern: string;
49
- value: string;
49
+ spProjectId: string;
50
50
  }, {
51
+ value: string;
51
52
  id: string;
52
53
  title: string;
53
- spProjectId: string;
54
54
  hostPattern: string;
55
55
  pathPattern: string;
56
- value: string;
56
+ spProjectId: string;
57
57
  }>;
package/dist/gomtm CHANGED
Binary file