@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,65 @@
1
+ import {
2
+ queryKeysFactory
3
+ } from "./chunk-774WSTCC.mjs";
4
+ import {
5
+ sdk
6
+ } from "./chunk-DTY37DDZ.mjs";
7
+
8
+ // src/hooks/api/cloud.tsx
9
+ import {
10
+ useMutation,
11
+ useQuery
12
+ } from "@tanstack/react-query";
13
+ var cloudQueryKeys = {
14
+ all: ["cloud"],
15
+ auth: () => [...cloudQueryKeys.all, "auth"]
16
+ };
17
+ var useCloudAuthEnabled = (options) => {
18
+ return useQuery({
19
+ queryKey: cloudQueryKeys.auth(),
20
+ queryFn: async () => {
21
+ return await sdk.client.fetch("/cloud/auth");
22
+ },
23
+ ...options
24
+ });
25
+ };
26
+ var useCreateCloudAuthUser = (options) => {
27
+ return useMutation({
28
+ mutationFn: async () => {
29
+ await sdk.client.fetch("/cloud/auth/users", {
30
+ method: "POST"
31
+ });
32
+ },
33
+ ...options
34
+ });
35
+ };
36
+
37
+ // src/hooks/api/locales.tsx
38
+ import { useQuery as useQuery2 } from "@tanstack/react-query";
39
+ var LOCALES_QUERY_KEY = "locales";
40
+ var localesQueryKeys = queryKeysFactory(LOCALES_QUERY_KEY);
41
+
42
+ // src/hooks/api/notification.tsx
43
+ import { useQuery as useQuery3 } from "@tanstack/react-query";
44
+ var NOTIFICATION_QUERY_KEY = "notification";
45
+ var notificationQueryKeys = queryKeysFactory(NOTIFICATION_QUERY_KEY);
46
+ var useNotifications = (query, options) => {
47
+ const { data, ...rest } = useQuery3({
48
+ queryFn: () => sdk.admin.notification.list(query),
49
+ queryKey: notificationQueryKeys.list(query),
50
+ ...options
51
+ });
52
+ return { ...data, ...rest };
53
+ };
54
+
55
+ // src/hooks/api/plugins.tsx
56
+ import { useQuery as useQuery4 } from "@tanstack/react-query";
57
+ var PLUGINS_QUERY_KEY = "plugins";
58
+ var pluginsQueryKeys = queryKeysFactory(PLUGINS_QUERY_KEY);
59
+
60
+ export {
61
+ useCloudAuthEnabled,
62
+ useCreateCloudAuthUser,
63
+ notificationQueryKeys,
64
+ useNotifications
65
+ };
@@ -0,0 +1,19 @@
1
+ // src/lib/query-key-factory.ts
2
+ var queryKeysFactory = (globalKey) => {
3
+ const queryKeyFactory = {
4
+ all: [globalKey],
5
+ lists: () => [...queryKeyFactory.all, "list"],
6
+ list: (query) => [...queryKeyFactory.lists(), query ? { query } : void 0].filter(
7
+ (k) => !!k
8
+ ),
9
+ details: () => [...queryKeyFactory.all, "detail"],
10
+ detail: (id, query) => [...queryKeyFactory.details(), id, query ? { query } : void 0].filter(
11
+ (k) => !!k
12
+ )
13
+ };
14
+ return queryKeyFactory;
15
+ };
16
+
17
+ export {
18
+ queryKeysFactory
19
+ };