@acmekit/dashboard 2.13.6 → 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.
Files changed (64) hide show
  1. package/dist/api-key-management-create-D57V3NN2.mjs +170 -0
  2. package/dist/api-key-management-detail-QURSBB6T.mjs +307 -0
  3. package/dist/api-key-management-edit-GG5V77GY.mjs +106 -0
  4. package/dist/api-key-management-list-PL64LD22.mjs +400 -0
  5. package/dist/app.js +16930 -1004
  6. package/dist/app.mjs +793 -884
  7. package/dist/chunk-22YYMH6M.mjs +382 -0
  8. package/dist/chunk-2U3RK3JG.mjs +474 -0
  9. package/dist/chunk-535OVBXR.mjs +226 -0
  10. package/dist/chunk-6SQCO25J.mjs +65 -0
  11. package/dist/chunk-774WSTCC.mjs +19 -0
  12. package/dist/chunk-7ZHDHEUH.mjs +1837 -0
  13. package/dist/chunk-C76H5USB.mjs +16 -0
  14. package/dist/chunk-DFFLVEZ5.mjs +40 -0
  15. package/dist/chunk-DN3MIYQH.mjs +140 -0
  16. package/dist/chunk-DQCEH3X2.mjs +28 -0
  17. package/dist/chunk-DTY37DDZ.mjs +20 -0
  18. package/dist/chunk-FXYH54JP.mjs +16 -0
  19. package/dist/chunk-G22WWLPG.mjs +44 -0
  20. package/dist/chunk-G2VJOHHV.mjs +32 -0
  21. package/dist/chunk-GBFVWROS.mjs +58 -0
  22. package/dist/chunk-ITNQKZQQ.mjs +142 -0
  23. package/dist/chunk-IUCDCPJU.mjs +0 -0
  24. package/dist/chunk-LKWTBYYC.mjs +35 -0
  25. package/dist/{chunk-4VYJHIB3.mjs → chunk-ND3ODI36.mjs} +0 -72
  26. package/dist/chunk-OAHCJFG3.mjs +17 -0
  27. package/dist/chunk-OHAFITSB.mjs +54 -0
  28. package/dist/chunk-RPAL6FHW.mjs +73 -0
  29. package/dist/{chunk-JSJZMTQG.mjs → chunk-RREPQMYC.mjs} +14 -41
  30. package/dist/chunk-S3REQHPQ.mjs +86 -0
  31. package/dist/chunk-S4DMV3ZT.mjs +35 -0
  32. package/dist/chunk-TCNCAWYD.mjs +9 -0
  33. package/dist/chunk-ULSPL3DR.mjs +126 -0
  34. package/dist/chunk-VBT5YZ4K.mjs +129 -0
  35. package/dist/chunk-WILMJYUB.mjs +35 -0
  36. package/dist/chunk-XIM7X4FB.mjs +83 -0
  37. package/dist/chunk-YB52HEIR.mjs +387 -0
  38. package/dist/chunk-YRWSG3YM.mjs +80 -0
  39. package/dist/{invite-S5USGDOZ.mjs → invite-BAFXQBLJ.mjs} +15 -7
  40. package/dist/{login-BRUR5XXN.mjs → login-YURMNRCS.mjs} +23 -9
  41. package/dist/profile-detail-SJWODS2K.mjs +96 -0
  42. package/dist/profile-edit-HSGF4UXZ.mjs +173 -0
  43. package/dist/{reset-password-UQPRHMB3.mjs → reset-password-RQ5M7HQC.mjs} +8 -4
  44. package/dist/settings-3XWLL5LG.mjs +545 -0
  45. package/dist/store-detail-SQKV5KBD.mjs +109 -0
  46. package/dist/store-edit-WGGIJMYJ.mjs +97 -0
  47. package/dist/store-metadata-CSBUGX6Z.mjs +49 -0
  48. package/dist/translation-list-H5X4DVCC.mjs +587 -0
  49. package/dist/translations-edit-NPAUN2GZ.mjs +5376 -0
  50. package/dist/user-detail-7SUQ35G7.mjs +169 -0
  51. package/dist/user-edit-KUZV37AH.mjs +114 -0
  52. package/dist/user-invite-OREFWWYL.mjs +361 -0
  53. package/dist/user-list-OWUR75OP.mjs +1116 -0
  54. package/dist/user-metadata-QHUX5SHZ.mjs +51 -0
  55. package/dist/workflow-execution-detail-MWNM25TF.mjs +820 -0
  56. package/dist/workflow-execution-list-IGYF44UH.mjs +175 -0
  57. package/package.json +9 -9
  58. package/src/components/layout/settings-layout/settings-layout.tsx +74 -6
  59. package/src/dashboard-app/routes/get-route.map.tsx +225 -0
  60. package/src/routes/login/login.tsx +1 -1
  61. package/dist/chunk-FBTP4AJM.mjs +0 -221
  62. package/dist/chunk-NQEMGMWU.mjs +0 -159
  63. package/dist/chunk-QYOO4QR6.mjs +0 -73
  64. package/dist/login-AIMR26AL.mjs +0 -291
@@ -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
+ };