gomtm 0.0.200 → 0.0.201
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/curd/curd.atoms.d.ts +4 -0
- package/dist/esm/curd/curd.atoms.js +7 -0
- package/dist/esm/curd/list-item/PostCardListItem.js +3 -6
- package/dist/esm/providers/GomtmProvider.d.ts +4 -0
- package/dist/esm/providers/GomtmProvider.js +7 -0
- package/dist/gomtm +0 -0
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,10 @@ export declare const curdActivateIdAtom: import("jotai").PrimitiveAtom<string> &
|
|
|
6
6
|
export declare const curd3ListParamsAtom: import("jotai").PrimitiveAtom<PlainMessage<AnyMessage>> & {
|
|
7
7
|
init: PlainMessage<AnyMessage>;
|
|
8
8
|
};
|
|
9
|
+
export declare const activateItemValueAtom: import("jotai").PrimitiveAtom<any> & {
|
|
10
|
+
init: any;
|
|
11
|
+
};
|
|
12
|
+
export declare const activateItemAtom: import("jotai").Atom<any>;
|
|
9
13
|
export declare const paramsAtom: import("jotai").Atom<any>;
|
|
10
14
|
export declare const curdPathAtom: import("jotai").PrimitiveAtom<string> & {
|
|
11
15
|
init: string;
|
|
@@ -26,6 +26,11 @@ import { CommontListRes } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
|
26
26
|
import { gomtmBaseUrlAtom } from "../providers/GomtmProvider";
|
|
27
27
|
const curdActivateIdAtom = atom("");
|
|
28
28
|
const curd3ListParamsAtom = atom({});
|
|
29
|
+
const activateItemValueAtom = atom(void 0);
|
|
30
|
+
const activateItemAtom = atom((get) => {
|
|
31
|
+
const v = get(activateItemValueAtom);
|
|
32
|
+
return v;
|
|
33
|
+
});
|
|
29
34
|
const paramsValueAtom = atom(void 0);
|
|
30
35
|
const paramsAtom = atom((get) => {
|
|
31
36
|
const v = get(paramsValueAtom);
|
|
@@ -53,6 +58,8 @@ const useCurdSlugName = () => {
|
|
|
53
58
|
return nameSlug;
|
|
54
59
|
};
|
|
55
60
|
export {
|
|
61
|
+
activateItemAtom,
|
|
62
|
+
activateItemValueAtom,
|
|
56
63
|
curd3ItemsV2Atom,
|
|
57
64
|
curd3ListParamsAtom,
|
|
58
65
|
curdActivateIdAtom,
|
|
@@ -6,7 +6,7 @@ import { cn } from "mtxuilib/lib/utils";
|
|
|
6
6
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "mtxuilib/ui/card";
|
|
7
7
|
import { curdActivateIdAtom } from "../curd.atoms";
|
|
8
8
|
import { Icons } from "mtxuilib/icons/icons";
|
|
9
|
-
import { DropdownMenu, DropdownMenuContent,
|
|
9
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuSeparator, DropdownMenuTrigger } from "mtxuilib/ui/dropdown-menu";
|
|
10
10
|
import { DropdownMenuItemLink } from "mtxuilib/ui/ui-mt/DropdownMenuItemLink";
|
|
11
11
|
import { curdSlugPathAtom } from "../CommonListViewV2";
|
|
12
12
|
const PostCardListItem = (props) => {
|
|
@@ -72,11 +72,8 @@ const PostCardItemActions = (props) => {
|
|
|
72
72
|
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: "w-[160px]", children: [
|
|
73
73
|
/* @__PURE__ */ jsx(DropdownMenuItemLink, { href: `${curdSlugPath}/create/${id}`, children: "create" }),
|
|
74
74
|
/* @__PURE__ */ jsx(DropdownMenuItemLink, { href: `${curdSlugPath}/edit/${id}`, children: "edit" }),
|
|
75
|
-
/* @__PURE__ */ jsx(
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
"Delete",
|
|
78
|
-
/* @__PURE__ */ jsx(DropdownMenuShortcut, { children: "\u2318\u232B" })
|
|
79
|
-
] })
|
|
75
|
+
/* @__PURE__ */ jsx(DropdownMenuItemLink, { href: `/remove`, children: "remove" }),
|
|
76
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {})
|
|
80
77
|
] })
|
|
81
78
|
] });
|
|
82
79
|
};
|
|
@@ -46,6 +46,10 @@ export type ActionHandler = (props: {
|
|
|
46
46
|
export declare const gomtmBaseUrlAtom: import("jotai").PrimitiveAtom<string> & {
|
|
47
47
|
init: string;
|
|
48
48
|
};
|
|
49
|
+
export declare const cookiesValueAtom: import("jotai").PrimitiveAtom<string | undefined> & {
|
|
50
|
+
init: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
export declare const cookiesAtom: import("jotai").Atom<string | undefined>;
|
|
49
53
|
export declare const transportAtom: import("jotai").Atom<Transport>;
|
|
50
54
|
export declare const useGomtmBackend: () => {
|
|
51
55
|
gomtmBaseUrl: string;
|
|
@@ -22,6 +22,11 @@ const curd3BackendUrlAtom = atom((get) => {
|
|
|
22
22
|
}
|
|
23
23
|
return "";
|
|
24
24
|
});
|
|
25
|
+
const cookiesValueAtom = atom(void 0);
|
|
26
|
+
const cookiesAtom = atom((get) => {
|
|
27
|
+
const v = get(cookiesValueAtom);
|
|
28
|
+
return v;
|
|
29
|
+
});
|
|
25
30
|
const transportAtom = atom((get) => {
|
|
26
31
|
const baseUrl = get(curd3BackendUrlAtom);
|
|
27
32
|
const baseUrl2 = new URL("/api", baseUrl).toString();
|
|
@@ -75,6 +80,8 @@ const MtConnectProvider = (props) => {
|
|
|
75
80
|
export {
|
|
76
81
|
GomtmProvider,
|
|
77
82
|
MtConnectProvider,
|
|
83
|
+
cookiesAtom,
|
|
84
|
+
cookiesValueAtom,
|
|
78
85
|
gomtmBaseUrlAtom,
|
|
79
86
|
mtmAppStore,
|
|
80
87
|
transportAtom,
|
package/dist/gomtm
CHANGED
|
Binary file
|