@acmekit/dashboard 2.13.8 → 2.13.9

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 (57) hide show
  1. package/dist/{api-key-management-create-D57V3NN2.mjs → api-key-management-create-VWUERPPB.mjs} +1 -1
  2. package/dist/{api-key-management-detail-QURSBB6T.mjs → api-key-management-detail-V4ENQHYY.mjs} +19 -20
  3. package/dist/{api-key-management-edit-GG5V77GY.mjs → api-key-management-edit-R44OHS7B.mjs} +1 -1
  4. package/dist/{api-key-management-list-PL64LD22.mjs → api-key-management-list-K2XPKF5E.mjs} +13 -13
  5. package/dist/app.js +2252 -2783
  6. package/dist/app.mjs +52 -205
  7. package/dist/{chunk-VBT5YZ4K.mjs → chunk-EFRMWHRX.mjs} +6 -51
  8. package/dist/{chunk-6SQCO25J.mjs → chunk-ST2YB7JN.mjs} +16 -7
  9. package/dist/{login-YURMNRCS.mjs → login-GNP3QIPI.mjs} +10 -11
  10. package/dist/{translation-list-H5X4DVCC.mjs → translation-list-CCEQJNED.mjs} +18 -24
  11. package/dist/{translations-edit-NPAUN2GZ.mjs → translations-edit-E57GVUFV.mjs} +27 -27
  12. package/dist/{user-invite-OREFWWYL.mjs → user-invite-E3FAAU3V.mjs} +11 -11
  13. package/dist/{chunk-YB52HEIR.mjs → user-metadata-5GQK75DT.mjs} +44 -6
  14. package/dist/{workflow-execution-detail-MWNM25TF.mjs → workflow-execution-detail-LZXCRVNC.mjs} +9 -10
  15. package/dist/{workflow-execution-list-IGYF44UH.mjs → workflow-execution-list-HQ3V6TML.mjs} +12 -12
  16. package/package.json +9 -9
  17. package/src/dashboard-app/routes/get-route.map.tsx +1 -14
  18. package/src/hooks/api/api-keys.tsx +0 -49
  19. package/src/hooks/api/index.ts +0 -1
  20. package/src/providers/keybind-provider/hooks.tsx +0 -145
  21. package/src/routes/translations/translation-list/translation-list.tsx +10 -21
  22. package/src/routes/translations/translations-edit/translations-edit.tsx +14 -11
  23. package/src/vite-env.d.ts +3 -1
  24. package/dist/chunk-OHAFITSB.mjs +0 -54
  25. package/dist/store-detail-SQKV5KBD.mjs +0 -109
  26. package/dist/store-edit-WGGIJMYJ.mjs +0 -97
  27. package/dist/store-metadata-CSBUGX6Z.mjs +0 -49
  28. package/dist/user-metadata-QHUX5SHZ.mjs +0 -51
  29. package/src/components/data-table/helpers/sales-channels/index.ts +0 -4
  30. package/src/components/data-table/helpers/sales-channels/use-sales-channel-table-columns.tsx +0 -61
  31. package/src/components/data-table/helpers/sales-channels/use-sales-channel-table-empty-state.tsx +0 -22
  32. package/src/components/data-table/helpers/sales-channels/use-sales-channel-table-filters.tsx +0 -33
  33. package/src/components/data-table/helpers/sales-channels/use-sales-channel-table-query.tsx +0 -30
  34. package/src/routes/api-key-management/api-key-management-detail/components/api-key-sales-channel-section/api-key-sales-channel-section.tsx +0 -206
  35. package/src/routes/api-key-management/api-key-management-detail/components/api-key-sales-channel-section/index.ts +0 -1
  36. package/src/routes/store/common/hooks/use-currencies-table-columns.tsx +0 -29
  37. package/src/routes/store/common/hooks/use-currencies-table-query.tsx +0 -21
  38. package/src/routes/store/common/hooks/use-locales-table-columns.tsx +0 -29
  39. package/src/routes/store/common/hooks/use-locales-table-query.tsx +0 -21
  40. package/src/routes/store/store-detail/components/store-general-section/index.ts +0 -1
  41. package/src/routes/store/store-detail/components/store-general-section/store-general-section.tsx +0 -48
  42. package/src/routes/store/store-detail/index.ts +0 -2
  43. package/src/routes/store/store-detail/loader.ts +0 -18
  44. package/src/routes/store/store-detail/store-detail.tsx +0 -42
  45. package/src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx +0 -83
  46. package/src/routes/store/store-edit/index.ts +0 -1
  47. package/src/routes/store/store-edit/store-edit.tsx +0 -25
  48. package/src/routes/store/store-metadata/index.ts +0 -1
  49. package/src/routes/store/store-metadata/store-metadata.tsx +0 -24
  50. package/dist/{chunk-7ZHDHEUH.mjs → chunk-YLPAZ2DP.mjs} +3 -3
  51. package/dist/{invite-BAFXQBLJ.mjs → invite-XGPZZBUP.mjs} +3 -3
  52. package/dist/{profile-detail-SJWODS2K.mjs → profile-detail-YX27F7N6.mjs} +8 -8
  53. package/dist/{profile-edit-HSGF4UXZ.mjs → profile-edit-2VRDU75O.mjs} +9 -9
  54. package/dist/{reset-password-RQ5M7HQC.mjs → reset-password-TWRNZO6Z.mjs} +1 -1
  55. package/dist/{user-detail-7SUQ35G7.mjs → user-detail-KUSRRVNX.mjs} +7 -7
  56. package/dist/{user-edit-KUZV37AH.mjs → user-edit-HTN3ZGCL.mjs} +4 -4
  57. package/dist/{user-list-OWUR75OP.mjs → user-list-KNJ5S3IM.mjs} +12 -12
@@ -1,26 +1,25 @@
1
1
  import {
2
2
  IconAvatar
3
3
  } from "./chunk-G2VJOHHV.mjs";
4
- import "./chunk-6SQCO25J.mjs";
5
4
  import {
6
- useTranslationSettings,
7
- useTranslationStatistics
8
- } from "./chunk-ULSPL3DR.mjs";
5
+ TwoColumnPage
6
+ } from "./chunk-22YYMH6M.mjs";
7
+ import {
8
+ useLocales
9
+ } from "./chunk-ST2YB7JN.mjs";
9
10
  import "./chunk-GBFVWROS.mjs";
10
- import "./chunk-VBT5YZ4K.mjs";
11
+ import "./chunk-EFRMWHRX.mjs";
11
12
  import "./chunk-LKWTBYYC.mjs";
12
13
  import {
13
- useStore
14
- } from "./chunk-OHAFITSB.mjs";
15
- import {
16
- TwoColumnPage
17
- } from "./chunk-22YYMH6M.mjs";
14
+ useTranslationSettings,
15
+ useTranslationStatistics
16
+ } from "./chunk-ULSPL3DR.mjs";
18
17
  import "./chunk-DN3MIYQH.mjs";
19
- import "./chunk-YRWSG3YM.mjs";
20
18
  import "./chunk-XIM7X4FB.mjs";
21
19
  import {
22
20
  TwoColumnPageSkeleton
23
21
  } from "./chunk-ITNQKZQQ.mjs";
22
+ import "./chunk-YRWSG3YM.mjs";
24
23
  import "./chunk-FXYH54JP.mjs";
25
24
  import "./chunk-774WSTCC.mjs";
26
25
  import "./chunk-DTY37DDZ.mjs";
@@ -438,7 +437,8 @@ import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
438
437
  var TranslationList = () => {
439
438
  const { t } = useTranslation4();
440
439
  const navigate = useNavigate();
441
- const { store, isPending, isError, error } = useStore();
440
+ const { locales: localesList, isPending, isError, error } = useLocales();
441
+ const supportedLocales = localesList?.map((l) => ({ locale_code: l.code, locale: l.code })) ?? [];
442
442
  const {
443
443
  translation_settings,
444
444
  isPending: isTranslationSettingsPending,
@@ -454,19 +454,17 @@ var TranslationList = () => {
454
454
  error: translationStatisticsError
455
455
  } = useTranslationStatistics(
456
456
  {
457
- locales: store?.supported_locales?.map(
458
- (suportedLocale) => suportedLocale.locale_code
459
- ) ?? [],
457
+ locales: supportedLocales.map((l) => l.locale_code),
460
458
  entity_types: Object.keys(translation_settings ?? {})
461
459
  },
462
460
  {
463
- enabled: !!translation_settings && !!store && store.supported_locales?.length > 0
461
+ enabled: !!translation_settings && supportedLocales.length > 0
464
462
  }
465
463
  );
466
464
  if (isError || isTranslationSettingsError || isTranslationStatisticsError) {
467
465
  throw error || translationSettingsError || translationStatisticsError;
468
466
  }
469
- const hasLocales = (store?.supported_locales ?? []).length > 0;
467
+ const hasLocales = supportedLocales.length > 0;
470
468
  const translatableEntities = useMemo2(() => {
471
469
  if (!translation_settings) {
472
470
  return [];
@@ -493,7 +491,7 @@ var TranslationList = () => {
493
491
  const handleManageEntities = useCallback2(() => {
494
492
  navigate("/settings/translations/settings");
495
493
  }, [navigate]);
496
- const isReady = !!store && !isPending && !isTranslationSettingsPending && !!translation_settings && (!!statistics && !isTranslationStatisticsPending || !hasLocales);
494
+ const isReady = !!localesList && !isPending && !isTranslationSettingsPending && !!translation_settings && (!!statistics && !isTranslationStatisticsPending || !hasLocales);
497
495
  if (!isReady) {
498
496
  return /* @__PURE__ */ jsx5(TwoColumnPageSkeleton, { sidebarSections: 2 });
499
497
  }
@@ -563,18 +561,14 @@ var TranslationList = () => {
563
561
  /* @__PURE__ */ jsx5(
564
562
  ActiveLocalesSection,
565
563
  {
566
- locales: store?.supported_locales?.map(
567
- (suportedLocale) => suportedLocale.locale
568
- ) ?? []
564
+ locales: supportedLocales.map((l) => l.locale)
569
565
  }
570
566
  ),
571
567
  /* @__PURE__ */ jsx5(
572
568
  TranslationsCompletionSection,
573
569
  {
574
570
  statistics: statistics ?? {},
575
- locales: store?.supported_locales?.map(
576
- (supportedLocale) => supportedLocale.locale
577
- ) ?? []
571
+ locales: supportedLocales.map((l) => l.locale)
578
572
  }
579
573
  )
580
574
  ] })
@@ -1,37 +1,36 @@
1
- import "./chunk-6SQCO25J.mjs";
1
+ import {
2
+ useFeatureFlag
3
+ } from "./chunk-DQCEH3X2.mjs";
4
+ import {
5
+ useLocales
6
+ } from "./chunk-ST2YB7JN.mjs";
7
+ import "./chunk-GBFVWROS.mjs";
8
+ import "./chunk-EFRMWHRX.mjs";
9
+ import "./chunk-LKWTBYYC.mjs";
2
10
  import {
3
11
  useBatchTranslations,
4
12
  useReferenceTranslations,
5
13
  useTranslationSettings
6
14
  } from "./chunk-ULSPL3DR.mjs";
7
- import "./chunk-GBFVWROS.mjs";
8
- import "./chunk-VBT5YZ4K.mjs";
9
- import "./chunk-LKWTBYYC.mjs";
10
- import "./chunk-IUCDCPJU.mjs";
11
- import {
12
- useStore
13
- } from "./chunk-OHAFITSB.mjs";
14
- import {
15
- useFeatureFlag
16
- } from "./chunk-DQCEH3X2.mjs";
17
15
  import "./chunk-DN3MIYQH.mjs";
18
- import "./chunk-YRWSG3YM.mjs";
19
16
  import "./chunk-XIM7X4FB.mjs";
20
17
  import {
21
18
  Skeleton
22
19
  } from "./chunk-ITNQKZQQ.mjs";
23
- import {
24
- KeyboundForm,
25
- RouteFocusModal,
26
- useRouteModal
27
- } from "./chunk-2U3RK3JG.mjs";
28
- import "./chunk-ND3ODI36.mjs";
29
20
  import {
30
21
  ConditionalTooltip
31
22
  } from "./chunk-OAHCJFG3.mjs";
32
23
  import {
33
24
  useDocumentDirection
34
25
  } from "./chunk-S4DMV3ZT.mjs";
26
+ import "./chunk-IUCDCPJU.mjs";
27
+ import {
28
+ KeyboundForm,
29
+ RouteFocusModal,
30
+ useRouteModal
31
+ } from "./chunk-2U3RK3JG.mjs";
32
+ import "./chunk-ND3ODI36.mjs";
33
+ import "./chunk-YRWSG3YM.mjs";
35
34
  import "./chunk-FXYH54JP.mjs";
36
35
  import "./chunk-774WSTCC.mjs";
37
36
  import "./chunk-DTY37DDZ.mjs";
@@ -5347,14 +5346,15 @@ var TranslationsEdit = () => {
5347
5346
  placeholderData: keepPreviousData
5348
5347
  });
5349
5348
  const {
5350
- store,
5351
- isPending: isStorePending,
5352
- isError: isStoreError,
5353
- error: storeError
5354
- } = useStore();
5355
- const ready = !isPending && !!translations && !!translation_settings && !isTranslationSettingsPending && !!references && !isStorePending && !!store;
5356
- if (isError || isStoreError || isTranslationSettingsError) {
5357
- throw error || storeError || translationSettingsError;
5349
+ locales: localesList,
5350
+ isPending: isLocalesPending,
5351
+ isError: isLocalesError,
5352
+ error: localesError
5353
+ } = useLocales();
5354
+ const availableLocales = localesList?.map((l) => ({ locale_code: l.code, locale: l.code })) ?? [];
5355
+ const ready = !isPending && !!translations && !!translation_settings && !isTranslationSettingsPending && !!references && !isLocalesPending && !!localesList;
5356
+ if (isError || isLocalesError || isTranslationSettingsError) {
5357
+ throw error || localesError || translationSettingsError;
5358
5358
  }
5359
5359
  return /* @__PURE__ */ jsx17(RouteFocusModal, { prev: referenceIdParam.length ? -1 : "..", children: ready && /* @__PURE__ */ jsx17(
5360
5360
  TranslationsEditForm,
@@ -5362,7 +5362,7 @@ var TranslationsEdit = () => {
5362
5362
  translations,
5363
5363
  references,
5364
5364
  entityType: reference,
5365
- availableLocales: store?.supported_locales ?? [],
5365
+ availableLocales,
5366
5366
  translatableFields: translation_settings[reference]?.fields ?? [],
5367
5367
  fetchNextPage,
5368
5368
  hasNextPage,
@@ -1,10 +1,18 @@
1
1
  import {
2
2
  _DataTable,
3
3
  useDataTable
4
- } from "./chunk-7ZHDHEUH.mjs";
4
+ } from "./chunk-YLPAZ2DP.mjs";
5
5
  import {
6
6
  isFetchError
7
7
  } from "./chunk-TCNCAWYD.mjs";
8
+ import {
9
+ useQueryParams
10
+ } from "./chunk-C76H5USB.mjs";
11
+ import "./chunk-DFFLVEZ5.mjs";
12
+ import "./chunk-535OVBXR.mjs";
13
+ import {
14
+ ActionMenu
15
+ } from "./chunk-S3REQHPQ.mjs";
8
16
  import {
9
17
  useCreateInvite,
10
18
  useDeleteInvite,
@@ -12,6 +20,8 @@ import {
12
20
  useResendInvite
13
21
  } from "./chunk-XIM7X4FB.mjs";
14
22
  import "./chunk-ITNQKZQQ.mjs";
23
+ import "./chunk-OAHCJFG3.mjs";
24
+ import "./chunk-S4DMV3ZT.mjs";
15
25
  import {
16
26
  KeyboundForm,
17
27
  RouteFocusModal
@@ -19,16 +29,6 @@ import {
19
29
  import {
20
30
  Form
21
31
  } from "./chunk-ND3ODI36.mjs";
22
- import {
23
- useQueryParams
24
- } from "./chunk-C76H5USB.mjs";
25
- import "./chunk-DFFLVEZ5.mjs";
26
- import "./chunk-535OVBXR.mjs";
27
- import {
28
- ActionMenu
29
- } from "./chunk-S3REQHPQ.mjs";
30
- import "./chunk-OAHCJFG3.mjs";
31
- import "./chunk-S4DMV3ZT.mjs";
32
32
  import "./chunk-FXYH54JP.mjs";
33
33
  import "./chunk-774WSTCC.mjs";
34
34
  import "./chunk-DTY37DDZ.mjs";
@@ -1,6 +1,20 @@
1
+ import "./chunk-ST2YB7JN.mjs";
2
+ import "./chunk-GBFVWROS.mjs";
3
+ import "./chunk-EFRMWHRX.mjs";
4
+ import "./chunk-LKWTBYYC.mjs";
5
+ import "./chunk-ULSPL3DR.mjs";
6
+ import "./chunk-DN3MIYQH.mjs";
7
+ import "./chunk-XIM7X4FB.mjs";
1
8
  import {
2
9
  Skeleton
3
10
  } from "./chunk-ITNQKZQQ.mjs";
11
+ import {
12
+ ConditionalTooltip
13
+ } from "./chunk-OAHCJFG3.mjs";
14
+ import {
15
+ useDocumentDirection
16
+ } from "./chunk-S4DMV3ZT.mjs";
17
+ import "./chunk-IUCDCPJU.mjs";
4
18
  import {
5
19
  KeyboundForm,
6
20
  RouteDrawer,
@@ -10,11 +24,16 @@ import {
10
24
  Form
11
25
  } from "./chunk-ND3ODI36.mjs";
12
26
  import {
13
- ConditionalTooltip
14
- } from "./chunk-OAHCJFG3.mjs";
15
- import {
16
- useDocumentDirection
17
- } from "./chunk-S4DMV3ZT.mjs";
27
+ useUpdateUser,
28
+ useUser
29
+ } from "./chunk-YRWSG3YM.mjs";
30
+ import "./chunk-FXYH54JP.mjs";
31
+ import "./chunk-774WSTCC.mjs";
32
+ import "./chunk-DTY37DDZ.mjs";
33
+ import "./chunk-QZ7TP4HQ.mjs";
34
+
35
+ // src/routes/users/user-metadata/user-metadata.tsx
36
+ import { useParams } from "react-router-dom";
18
37
 
19
38
  // src/components/forms/metadata-form/metadata-form.tsx
20
39
  import { zodResolver } from "@hookform/resolvers/zod";
@@ -382,6 +401,25 @@ function getHasUneditableRows(metadata) {
382
401
  );
383
402
  }
384
403
 
404
+ // src/routes/users/user-metadata/user-metadata.tsx
405
+ import { jsx as jsx2 } from "react/jsx-runtime";
406
+ var UserMetadata = () => {
407
+ const { id } = useParams();
408
+ const { user, isPending, isError, error } = useUser(id);
409
+ const { mutateAsync, isPending: isMutating } = useUpdateUser(id);
410
+ if (isError) {
411
+ throw error;
412
+ }
413
+ return /* @__PURE__ */ jsx2(RouteDrawer, { children: /* @__PURE__ */ jsx2(
414
+ MetadataForm,
415
+ {
416
+ isPending,
417
+ isMutating,
418
+ hook: mutateAsync,
419
+ metadata: user?.metadata
420
+ }
421
+ ) });
422
+ };
385
423
  export {
386
- MetadataForm
424
+ UserMetadata as Component
387
425
  };
@@ -7,15 +7,6 @@ import {
7
7
  getTransactionState,
8
8
  getTransactionStateColor
9
9
  } from "./chunk-RPAL6FHW.mjs";
10
- import "./chunk-6SQCO25J.mjs";
11
- import "./chunk-ULSPL3DR.mjs";
12
- import "./chunk-GBFVWROS.mjs";
13
- import "./chunk-VBT5YZ4K.mjs";
14
- import {
15
- useWorkflowExecution,
16
- workflowExecutionsQueryKeys
17
- } from "./chunk-LKWTBYYC.mjs";
18
- import "./chunk-OHAFITSB.mjs";
19
10
  import {
20
11
  JsonViewSection,
21
12
  SingleColumnPage
@@ -23,8 +14,15 @@ import {
23
14
  import {
24
15
  useExtension
25
16
  } from "./chunk-C5P5PL3E.mjs";
17
+ import "./chunk-ST2YB7JN.mjs";
18
+ import "./chunk-GBFVWROS.mjs";
19
+ import "./chunk-EFRMWHRX.mjs";
20
+ import {
21
+ useWorkflowExecution,
22
+ workflowExecutionsQueryKeys
23
+ } from "./chunk-LKWTBYYC.mjs";
24
+ import "./chunk-ULSPL3DR.mjs";
26
25
  import "./chunk-DN3MIYQH.mjs";
27
- import "./chunk-YRWSG3YM.mjs";
28
26
  import "./chunk-XIM7X4FB.mjs";
29
27
  import {
30
28
  SingleColumnPageSkeleton
@@ -32,6 +30,7 @@ import {
32
30
  import {
33
31
  useDocumentDirection
34
32
  } from "./chunk-S4DMV3ZT.mjs";
33
+ import "./chunk-YRWSG3YM.mjs";
35
34
  import {
36
35
  queryClient
37
36
  } from "./chunk-FXYH54JP.mjs";
@@ -1,13 +1,19 @@
1
+ import {
2
+ StatusCell
3
+ } from "./chunk-WILMJYUB.mjs";
1
4
  import {
2
5
  getTransactionState,
3
6
  getTransactionStateColor
4
7
  } from "./chunk-RPAL6FHW.mjs";
5
8
  import {
6
- StatusCell
7
- } from "./chunk-WILMJYUB.mjs";
9
+ _DataTable,
10
+ useDataTable
11
+ } from "./chunk-YLPAZ2DP.mjs";
8
12
  import {
9
- useWorkflowExecutions
10
- } from "./chunk-LKWTBYYC.mjs";
13
+ useQueryParams
14
+ } from "./chunk-C76H5USB.mjs";
15
+ import "./chunk-DFFLVEZ5.mjs";
16
+ import "./chunk-535OVBXR.mjs";
11
17
  import {
12
18
  SingleColumnPage
13
19
  } from "./chunk-22YYMH6M.mjs";
@@ -15,15 +21,9 @@ import {
15
21
  useExtension
16
22
  } from "./chunk-C5P5PL3E.mjs";
17
23
  import {
18
- _DataTable,
19
- useDataTable
20
- } from "./chunk-7ZHDHEUH.mjs";
24
+ useWorkflowExecutions
25
+ } from "./chunk-LKWTBYYC.mjs";
21
26
  import "./chunk-ITNQKZQQ.mjs";
22
- import {
23
- useQueryParams
24
- } from "./chunk-C76H5USB.mjs";
25
- import "./chunk-DFFLVEZ5.mjs";
26
- import "./chunk-535OVBXR.mjs";
27
27
  import "./chunk-S4DMV3ZT.mjs";
28
28
  import "./chunk-774WSTCC.mjs";
29
29
  import "./chunk-DTY37DDZ.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acmekit/dashboard",
3
- "version": "2.13.8",
3
+ "version": "2.13.9",
4
4
  "scripts": {
5
5
  "generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
6
6
  "dev": "../../../node_modules/.bin/vite",
@@ -39,10 +39,10 @@
39
39
  "dist"
40
40
  ],
41
41
  "dependencies": {
42
- "@acmekit/admin-shared": "2.13.8",
43
- "@acmekit/icons": "2.13.8",
44
- "@acmekit/js-sdk": "2.13.8",
45
- "@acmekit/ui": "4.1.8",
42
+ "@acmekit/admin-shared": "2.13.9",
43
+ "@acmekit/icons": "2.13.9",
44
+ "@acmekit/js-sdk": "2.13.9",
45
+ "@acmekit/ui": "4.1.9",
46
46
  "@ariakit/react": "^0.4.15",
47
47
  "@babel/runtime": "^7.26.10",
48
48
  "@dnd-kit/core": "^6.1.0",
@@ -80,10 +80,10 @@
80
80
  "zod": "3.25.76"
81
81
  },
82
82
  "devDependencies": {
83
- "@acmekit/admin-shared": "2.13.8",
84
- "@acmekit/admin-vite-plugin": "2.13.8",
85
- "@acmekit/types": "2.13.8",
86
- "@acmekit/ui-preset": "2.13.8"
83
+ "@acmekit/admin-shared": "2.13.9",
84
+ "@acmekit/admin-vite-plugin": "2.13.9",
85
+ "@acmekit/types": "2.13.9",
86
+ "@acmekit/ui-preset": "2.13.9"
87
87
  },
88
88
  "packageManager": "yarn@3.2.1"
89
89
  }
@@ -18,7 +18,7 @@ function mergeSettingsRouteChildren(
18
18
  .flatMap((r) => r.children ?? [])
19
19
  }
20
20
 
21
- /** Default framework settings routes (profile, store, users, api-keys, workflows, translations). */
21
+ /** Default framework settings routes (profile, users, api-keys, workflows, translations). */
22
22
  const defaultSettingsRouteChildren: RouteObject[] = [
23
23
  {
24
24
  path: "profile",
@@ -32,19 +32,6 @@ const defaultSettingsRouteChildren: RouteObject[] = [
32
32
  },
33
33
  ],
34
34
  },
35
- {
36
- path: "store",
37
- errorElement: <ErrorBoundary />,
38
- lazy: () => import("../../routes/store/store-detail"),
39
- handle: { breadcrumb: () => t("store.domain") },
40
- children: [
41
- { path: "edit", lazy: () => import("../../routes/store/store-edit") },
42
- {
43
- path: "metadata/edit",
44
- lazy: () => import("../../routes/store/store-metadata"),
45
- },
46
- ],
47
- },
48
35
  {
49
36
  path: "users",
50
37
  errorElement: <ErrorBoundary />,
@@ -11,7 +11,6 @@ import {
11
11
  import { sdk } from "../../lib/client"
12
12
  import { queryClient } from "../../lib/query-client"
13
13
  import { queryKeysFactory } from "../../lib/query-key-factory"
14
- import { salesChannelsQueryKeys } from "./sales-channels"
15
14
 
16
15
  const API_KEYS_QUERY_KEY = "api_keys" as const
17
16
  export const apiKeysQueryKeys = queryKeysFactory(API_KEYS_QUERY_KEY)
@@ -129,51 +128,3 @@ export const useDeleteApiKey = (
129
128
  },
130
129
  })
131
130
  }
132
-
133
- export const useBatchRemoveSalesChannelsFromApiKey = (
134
- id: string,
135
- options?: UseMutationOptions<
136
- HttpTypes.AdminApiKeyResponse,
137
- FetchError,
138
- HttpTypes.AdminBatchLink["remove"]
139
- >
140
- ) => {
141
- return useMutation({
142
- mutationFn: (payload) =>
143
- sdk.admin.apiKey.batchSalesChannels(id, { remove: payload }),
144
- onSuccess: (data, variables, context) => {
145
- queryClient.invalidateQueries({ queryKey: apiKeysQueryKeys.lists() })
146
- queryClient.invalidateQueries({ queryKey: apiKeysQueryKeys.detail(id) })
147
- queryClient.invalidateQueries({
148
- queryKey: salesChannelsQueryKeys.lists(),
149
- })
150
-
151
- options?.onSuccess?.(data, variables, context)
152
- },
153
- ...options,
154
- })
155
- }
156
-
157
- export const useBatchAddSalesChannelsToApiKey = (
158
- id: string,
159
- options?: UseMutationOptions<
160
- HttpTypes.AdminApiKeyResponse,
161
- FetchError,
162
- HttpTypes.AdminBatchLink["add"]
163
- >
164
- ) => {
165
- return useMutation({
166
- mutationFn: (payload) =>
167
- sdk.admin.apiKey.batchSalesChannels(id, { add: payload }),
168
- onSuccess: (data, variables, context) => {
169
- queryClient.invalidateQueries({ queryKey: apiKeysQueryKeys.lists() })
170
- queryClient.invalidateQueries({ queryKey: apiKeysQueryKeys.detail(id) })
171
- queryClient.invalidateQueries({
172
- queryKey: salesChannelsQueryKeys.lists(),
173
- })
174
-
175
- options?.onSuccess?.(data, variables, context)
176
- },
177
- ...options,
178
- })
179
- }
@@ -6,7 +6,6 @@ export * from "./invites"
6
6
  export * from "./locales"
7
7
  export * from "./notification"
8
8
  export * from "./plugins"
9
- export * from "./store"
10
9
  export * from "./translations"
11
10
  export * from "./users"
12
11
  export * from "./views"
@@ -110,95 +110,6 @@ export const useGlobalShortcuts = () => {
110
110
  }
111
111
 
112
112
  const globalShortcuts: Shortcut[] = [
113
- // Pages
114
- {
115
- keys: {
116
- Mac: ["G", "O"],
117
- },
118
- label: t("app.keyboardShortcuts.navigation.goToOrders"),
119
- type: "pageShortcut",
120
- to: "/orders",
121
- },
122
- {
123
- keys: {
124
- Mac: ["G", "P"],
125
- },
126
- label: t("app.keyboardShortcuts.navigation.goToProducts"),
127
- type: "pageShortcut",
128
- to: "/products",
129
- },
130
- {
131
- keys: {
132
- Mac: ["G", "C"],
133
- },
134
- label: t("app.keyboardShortcuts.navigation.goToCollections"),
135
- type: "pageShortcut",
136
- to: "/collections",
137
- },
138
- {
139
- keys: {
140
- Mac: ["G", "A"],
141
- },
142
- label: t("app.keyboardShortcuts.navigation.goToCategories"),
143
- type: "pageShortcut",
144
- to: "/categories",
145
- },
146
- {
147
- keys: {
148
- Mac: ["G", "U"],
149
- },
150
- label: t("app.keyboardShortcuts.navigation.goToCustomers"),
151
- type: "pageShortcut",
152
- to: "/customers",
153
- },
154
- {
155
- keys: {
156
- Mac: ["G", "G"],
157
- },
158
- label: t("app.keyboardShortcuts.navigation.goToCustomerGroups"),
159
- type: "pageShortcut",
160
- to: "/customer-groups",
161
- },
162
- {
163
- keys: {
164
- Mac: ["G", "I"],
165
- },
166
- label: t("app.keyboardShortcuts.navigation.goToInventory"),
167
- type: "pageShortcut",
168
- to: "/inventory",
169
- },
170
- {
171
- keys: {
172
- Mac: ["G", "R"],
173
- },
174
- label: t("app.keyboardShortcuts.navigation.goToReservations"),
175
- type: "pageShortcut",
176
- to: "/reservations",
177
- },
178
- {
179
- keys: {
180
- Mac: ["G", "L"],
181
- },
182
- label: t("app.keyboardShortcuts.navigation.goToPriceLists"),
183
- type: "pageShortcut",
184
- to: "/price-lists",
185
- },
186
- {
187
- keys: {
188
- Mac: ["G", "M"],
189
- },
190
- label: t("app.keyboardShortcuts.navigation.goToPromotions"),
191
- type: "pageShortcut",
192
- to: "/promotions",
193
- },
194
- {
195
- keys: {
196
- Mac: ["G", "K"],
197
- },
198
- label: t("app.keyboardShortcuts.navigation.goToCampaigns"),
199
- type: "pageShortcut",
200
- to: "/campaigns",
201
- },
202
113
  // Settings
203
114
  {
204
115
  keys: {
@@ -208,14 +119,6 @@ export const useGlobalShortcuts = () => {
208
119
  type: "settingShortcut",
209
120
  to: "/settings",
210
121
  },
211
- {
212
- keys: {
213
- Mac: ["G", ",", "S"],
214
- },
215
- label: t("app.keyboardShortcuts.settings.goToStore"),
216
- type: "settingShortcut",
217
- to: "/settings/store",
218
- },
219
122
  {
220
123
  keys: {
221
124
  Mac: ["G", ",", "U"],
@@ -224,54 +127,6 @@ export const useGlobalShortcuts = () => {
224
127
  type: "settingShortcut",
225
128
  to: "/settings/users",
226
129
  },
227
- {
228
- keys: {
229
- Mac: ["G", ",", "R"],
230
- },
231
- label: t("app.keyboardShortcuts.settings.goToRegions"),
232
- type: "settingShortcut",
233
- to: "/settings/regions",
234
- },
235
- {
236
- keys: {
237
- Mac: ["G", ",", "T"],
238
- },
239
- label: t("app.keyboardShortcuts.settings.goToTaxRegions"),
240
- type: "settingShortcut",
241
- to: "/settings/tax-regions",
242
- },
243
- {
244
- keys: {
245
- Mac: ["G", ",", "A"],
246
- },
247
- label: t("app.keyboardShortcuts.settings.goToSalesChannels"),
248
- type: "settingShortcut",
249
- to: "/settings/sales-channels",
250
- },
251
- {
252
- keys: {
253
- Mac: ["G", ",", "P"],
254
- },
255
- label: t("app.keyboardShortcuts.settings.goToProductTypes"),
256
- type: "settingShortcut",
257
- to: "/settings/product-types",
258
- },
259
- {
260
- keys: {
261
- Mac: ["G", ",", "L"],
262
- },
263
- label: t("app.keyboardShortcuts.settings.goToLocations"),
264
- type: "settingShortcut",
265
- to: "/settings/locations",
266
- },
267
- {
268
- keys: {
269
- Mac: ["G", ",", "M"],
270
- },
271
- label: t("app.keyboardShortcuts.settings.goToReturnReasons"),
272
- type: "settingShortcut",
273
- to: "/settings/return-reasons",
274
- },
275
130
  {
276
131
  keys: {
277
132
  Mac: ["G", ",", "J"],