@acmekit/dashboard 2.13.7 → 2.13.8
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-key-management-create-D57V3NN2.mjs +170 -0
- package/dist/api-key-management-detail-QURSBB6T.mjs +307 -0
- package/dist/api-key-management-edit-GG5V77GY.mjs +106 -0
- package/dist/api-key-management-list-PL64LD22.mjs +400 -0
- package/dist/app.js +16930 -1004
- package/dist/app.mjs +793 -884
- package/dist/chunk-22YYMH6M.mjs +382 -0
- package/dist/chunk-2U3RK3JG.mjs +474 -0
- package/dist/chunk-535OVBXR.mjs +226 -0
- package/dist/chunk-6SQCO25J.mjs +65 -0
- package/dist/chunk-774WSTCC.mjs +19 -0
- package/dist/chunk-7ZHDHEUH.mjs +1837 -0
- package/dist/chunk-C76H5USB.mjs +16 -0
- package/dist/chunk-DFFLVEZ5.mjs +40 -0
- package/dist/chunk-DN3MIYQH.mjs +140 -0
- package/dist/chunk-DQCEH3X2.mjs +28 -0
- package/dist/chunk-DTY37DDZ.mjs +20 -0
- package/dist/chunk-FXYH54JP.mjs +16 -0
- package/dist/chunk-G22WWLPG.mjs +44 -0
- package/dist/chunk-G2VJOHHV.mjs +32 -0
- package/dist/chunk-GBFVWROS.mjs +58 -0
- package/dist/chunk-ITNQKZQQ.mjs +142 -0
- package/dist/chunk-IUCDCPJU.mjs +0 -0
- package/dist/chunk-LKWTBYYC.mjs +35 -0
- package/dist/{chunk-4VYJHIB3.mjs → chunk-ND3ODI36.mjs} +0 -72
- package/dist/chunk-OAHCJFG3.mjs +17 -0
- package/dist/chunk-OHAFITSB.mjs +54 -0
- package/dist/chunk-RPAL6FHW.mjs +73 -0
- package/dist/{chunk-JSJZMTQG.mjs → chunk-RREPQMYC.mjs} +14 -41
- package/dist/chunk-S3REQHPQ.mjs +86 -0
- package/dist/chunk-S4DMV3ZT.mjs +35 -0
- package/dist/chunk-TCNCAWYD.mjs +9 -0
- package/dist/chunk-ULSPL3DR.mjs +126 -0
- package/dist/chunk-VBT5YZ4K.mjs +129 -0
- package/dist/chunk-WILMJYUB.mjs +35 -0
- package/dist/chunk-XIM7X4FB.mjs +83 -0
- package/dist/chunk-YB52HEIR.mjs +387 -0
- package/dist/chunk-YRWSG3YM.mjs +80 -0
- package/dist/{invite-S5USGDOZ.mjs → invite-BAFXQBLJ.mjs} +15 -7
- package/dist/{login-AIMR26AL.mjs → login-YURMNRCS.mjs} +23 -9
- package/dist/profile-detail-SJWODS2K.mjs +96 -0
- package/dist/profile-edit-HSGF4UXZ.mjs +173 -0
- package/dist/{reset-password-UQPRHMB3.mjs → reset-password-RQ5M7HQC.mjs} +8 -4
- package/dist/settings-3XWLL5LG.mjs +545 -0
- package/dist/store-detail-SQKV5KBD.mjs +109 -0
- package/dist/store-edit-WGGIJMYJ.mjs +97 -0
- package/dist/store-metadata-CSBUGX6Z.mjs +49 -0
- package/dist/translation-list-H5X4DVCC.mjs +587 -0
- package/dist/translations-edit-NPAUN2GZ.mjs +5376 -0
- package/dist/user-detail-7SUQ35G7.mjs +169 -0
- package/dist/user-edit-KUZV37AH.mjs +114 -0
- package/dist/user-invite-OREFWWYL.mjs +361 -0
- package/dist/user-list-OWUR75OP.mjs +1116 -0
- package/dist/user-metadata-QHUX5SHZ.mjs +51 -0
- package/dist/workflow-execution-detail-MWNM25TF.mjs +820 -0
- package/dist/workflow-execution-list-IGYF44UH.mjs +175 -0
- package/package.json +9 -9
- package/src/components/layout/settings-layout/settings-layout.tsx +8 -2
- package/dist/chunk-FBTP4AJM.mjs +0 -221
- package/dist/chunk-QYOO4QR6.mjs +0 -73
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import "./chunk-IUCDCPJU.mjs";
|
|
2
|
+
import {
|
|
3
|
+
useStore,
|
|
4
|
+
useUpdateStore
|
|
5
|
+
} from "./chunk-OHAFITSB.mjs";
|
|
6
|
+
import {
|
|
7
|
+
KeyboundForm,
|
|
8
|
+
RouteDrawer,
|
|
9
|
+
useRouteModal
|
|
10
|
+
} from "./chunk-2U3RK3JG.mjs";
|
|
11
|
+
import {
|
|
12
|
+
Form
|
|
13
|
+
} from "./chunk-ND3ODI36.mjs";
|
|
14
|
+
import "./chunk-FXYH54JP.mjs";
|
|
15
|
+
import "./chunk-774WSTCC.mjs";
|
|
16
|
+
import "./chunk-DTY37DDZ.mjs";
|
|
17
|
+
import "./chunk-QZ7TP4HQ.mjs";
|
|
18
|
+
|
|
19
|
+
// src/routes/store/store-edit/store-edit.tsx
|
|
20
|
+
import { Heading } from "@acmekit/ui";
|
|
21
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
22
|
+
|
|
23
|
+
// src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx
|
|
24
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
25
|
+
import { Button, Input, toast } from "@acmekit/ui";
|
|
26
|
+
import { useForm } from "react-hook-form";
|
|
27
|
+
import { useTranslation } from "react-i18next";
|
|
28
|
+
import { z } from "zod";
|
|
29
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
+
var EditStoreSchema = z.object({
|
|
31
|
+
name: z.string().min(1)
|
|
32
|
+
});
|
|
33
|
+
var EditStoreForm = ({ store }) => {
|
|
34
|
+
const { t } = useTranslation();
|
|
35
|
+
const { handleSuccess } = useRouteModal();
|
|
36
|
+
const form = useForm({
|
|
37
|
+
defaultValues: {
|
|
38
|
+
name: store.name
|
|
39
|
+
},
|
|
40
|
+
resolver: zodResolver(EditStoreSchema)
|
|
41
|
+
});
|
|
42
|
+
const { mutateAsync, isPending } = useUpdateStore(store.id);
|
|
43
|
+
const handleSubmit = form.handleSubmit(async (values) => {
|
|
44
|
+
await mutateAsync(values, {
|
|
45
|
+
onSuccess: () => {
|
|
46
|
+
toast.success(t("store.toast.update"));
|
|
47
|
+
handleSuccess();
|
|
48
|
+
},
|
|
49
|
+
onError: (error) => {
|
|
50
|
+
toast.error(error.message);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(
|
|
55
|
+
KeyboundForm,
|
|
56
|
+
{
|
|
57
|
+
onSubmit: handleSubmit,
|
|
58
|
+
className: "flex h-full flex-col overflow-hidden",
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx(RouteDrawer.Body, { className: "overflow-y-auto", children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-y-8", children: /* @__PURE__ */ jsx(
|
|
61
|
+
Form.Field,
|
|
62
|
+
{
|
|
63
|
+
control: form.control,
|
|
64
|
+
name: "name",
|
|
65
|
+
render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
66
|
+
/* @__PURE__ */ jsx(Form.Label, { children: t("fields.name") }),
|
|
67
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { placeholder: "ACME", ...field }) }),
|
|
68
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
69
|
+
] })
|
|
70
|
+
}
|
|
71
|
+
) }) }),
|
|
72
|
+
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
73
|
+
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
|
|
74
|
+
/* @__PURE__ */ jsx(Button, { size: "small", isLoading: isPending, type: "submit", children: t("actions.save") })
|
|
75
|
+
] }) })
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
) });
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// src/routes/store/store-edit/store-edit.tsx
|
|
82
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
83
|
+
var StoreEdit = () => {
|
|
84
|
+
const { t } = useTranslation2();
|
|
85
|
+
const { store, isPending: isLoading, isError, error } = useStore();
|
|
86
|
+
if (isError) {
|
|
87
|
+
throw error;
|
|
88
|
+
}
|
|
89
|
+
const ready = !!store && !isLoading;
|
|
90
|
+
return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
|
|
91
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("store.edit.header") }) }),
|
|
92
|
+
ready && /* @__PURE__ */ jsx2(EditStoreForm, { store })
|
|
93
|
+
] });
|
|
94
|
+
};
|
|
95
|
+
export {
|
|
96
|
+
StoreEdit as Component
|
|
97
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MetadataForm
|
|
3
|
+
} from "./chunk-YB52HEIR.mjs";
|
|
4
|
+
import "./chunk-6SQCO25J.mjs";
|
|
5
|
+
import "./chunk-ULSPL3DR.mjs";
|
|
6
|
+
import "./chunk-GBFVWROS.mjs";
|
|
7
|
+
import "./chunk-VBT5YZ4K.mjs";
|
|
8
|
+
import "./chunk-LKWTBYYC.mjs";
|
|
9
|
+
import "./chunk-IUCDCPJU.mjs";
|
|
10
|
+
import {
|
|
11
|
+
useStore,
|
|
12
|
+
useUpdateStore
|
|
13
|
+
} from "./chunk-OHAFITSB.mjs";
|
|
14
|
+
import "./chunk-DN3MIYQH.mjs";
|
|
15
|
+
import "./chunk-YRWSG3YM.mjs";
|
|
16
|
+
import "./chunk-XIM7X4FB.mjs";
|
|
17
|
+
import "./chunk-ITNQKZQQ.mjs";
|
|
18
|
+
import {
|
|
19
|
+
RouteDrawer
|
|
20
|
+
} from "./chunk-2U3RK3JG.mjs";
|
|
21
|
+
import "./chunk-ND3ODI36.mjs";
|
|
22
|
+
import "./chunk-OAHCJFG3.mjs";
|
|
23
|
+
import "./chunk-S4DMV3ZT.mjs";
|
|
24
|
+
import "./chunk-FXYH54JP.mjs";
|
|
25
|
+
import "./chunk-774WSTCC.mjs";
|
|
26
|
+
import "./chunk-DTY37DDZ.mjs";
|
|
27
|
+
import "./chunk-QZ7TP4HQ.mjs";
|
|
28
|
+
|
|
29
|
+
// src/routes/store/store-metadata/store-metadata.tsx
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
31
|
+
var StoreMetadata = () => {
|
|
32
|
+
const { store, isPending, isError, error } = useStore();
|
|
33
|
+
const { mutateAsync, isPending: isMutating } = useUpdateStore(store?.id);
|
|
34
|
+
if (isError) {
|
|
35
|
+
throw error;
|
|
36
|
+
}
|
|
37
|
+
return /* @__PURE__ */ jsx(RouteDrawer, { children: /* @__PURE__ */ jsx(
|
|
38
|
+
MetadataForm,
|
|
39
|
+
{
|
|
40
|
+
isPending,
|
|
41
|
+
isMutating,
|
|
42
|
+
hook: mutateAsync,
|
|
43
|
+
metadata: store?.metadata
|
|
44
|
+
}
|
|
45
|
+
) });
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
StoreMetadata as Component
|
|
49
|
+
};
|