@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
package/dist/app.mjs CHANGED
@@ -1,49 +1,48 @@
1
1
  import {
2
2
  I18n
3
3
  } from "./chunk-W3WS3HKB.mjs";
4
- import {
5
- notificationQueryKeys,
6
- useNotifications
7
- } from "./chunk-6SQCO25J.mjs";
8
- import "./chunk-ULSPL3DR.mjs";
9
- import {
10
- useLogout
11
- } from "./chunk-GBFVWROS.mjs";
12
- import "./chunk-VBT5YZ4K.mjs";
13
- import "./chunk-LKWTBYYC.mjs";
14
- import "./chunk-OHAFITSB.mjs";
15
4
  import {
16
5
  FeatureFlagProvider,
17
6
  useFeatureFlag
18
7
  } from "./chunk-DQCEH3X2.mjs";
8
+ import {
9
+ isFetchError
10
+ } from "./chunk-TCNCAWYD.mjs";
11
+ import {
12
+ languages
13
+ } from "./chunk-535OVBXR.mjs";
19
14
  import {
20
15
  ExtensionProvider,
21
16
  useExtension
22
17
  } from "./chunk-C5P5PL3E.mjs";
23
- import "./chunk-DN3MIYQH.mjs";
24
18
  import {
25
- useMe
26
- } from "./chunk-YRWSG3YM.mjs";
19
+ ActionMenu
20
+ } from "./chunk-S3REQHPQ.mjs";
27
21
  import {
28
- isFetchError
29
- } from "./chunk-TCNCAWYD.mjs";
22
+ notificationQueryKeys,
23
+ useNotifications
24
+ } from "./chunk-ST2YB7JN.mjs";
25
+ import {
26
+ useLogout
27
+ } from "./chunk-GBFVWROS.mjs";
28
+ import "./chunk-EFRMWHRX.mjs";
29
+ import "./chunk-LKWTBYYC.mjs";
30
+ import "./chunk-ULSPL3DR.mjs";
31
+ import "./chunk-DN3MIYQH.mjs";
30
32
  import "./chunk-XIM7X4FB.mjs";
31
33
  import {
32
34
  Skeleton
33
35
  } from "./chunk-ITNQKZQQ.mjs";
34
- import "./chunk-ND3ODI36.mjs";
35
- import {
36
- languages
37
- } from "./chunk-535OVBXR.mjs";
38
- import {
39
- ActionMenu
40
- } from "./chunk-S3REQHPQ.mjs";
41
36
  import {
42
37
  ConditionalTooltip
43
38
  } from "./chunk-OAHCJFG3.mjs";
44
39
  import {
45
40
  useDocumentDirection
46
41
  } from "./chunk-S4DMV3ZT.mjs";
42
+ import "./chunk-ND3ODI36.mjs";
43
+ import {
44
+ useMe
45
+ } from "./chunk-YRWSG3YM.mjs";
47
46
  import {
48
47
  queryClient
49
48
  } from "./chunk-FXYH54JP.mjs";
@@ -93094,95 +93093,6 @@ var useGlobalShortcuts = () => {
93094
93093
  });
93095
93094
  };
93096
93095
  const globalShortcuts = [
93097
- // Pages
93098
- {
93099
- keys: {
93100
- Mac: ["G", "O"]
93101
- },
93102
- label: t2("app.keyboardShortcuts.navigation.goToOrders"),
93103
- type: "pageShortcut",
93104
- to: "/orders"
93105
- },
93106
- {
93107
- keys: {
93108
- Mac: ["G", "P"]
93109
- },
93110
- label: t2("app.keyboardShortcuts.navigation.goToProducts"),
93111
- type: "pageShortcut",
93112
- to: "/products"
93113
- },
93114
- {
93115
- keys: {
93116
- Mac: ["G", "C"]
93117
- },
93118
- label: t2("app.keyboardShortcuts.navigation.goToCollections"),
93119
- type: "pageShortcut",
93120
- to: "/collections"
93121
- },
93122
- {
93123
- keys: {
93124
- Mac: ["G", "A"]
93125
- },
93126
- label: t2("app.keyboardShortcuts.navigation.goToCategories"),
93127
- type: "pageShortcut",
93128
- to: "/categories"
93129
- },
93130
- {
93131
- keys: {
93132
- Mac: ["G", "U"]
93133
- },
93134
- label: t2("app.keyboardShortcuts.navigation.goToCustomers"),
93135
- type: "pageShortcut",
93136
- to: "/customers"
93137
- },
93138
- {
93139
- keys: {
93140
- Mac: ["G", "G"]
93141
- },
93142
- label: t2("app.keyboardShortcuts.navigation.goToCustomerGroups"),
93143
- type: "pageShortcut",
93144
- to: "/customer-groups"
93145
- },
93146
- {
93147
- keys: {
93148
- Mac: ["G", "I"]
93149
- },
93150
- label: t2("app.keyboardShortcuts.navigation.goToInventory"),
93151
- type: "pageShortcut",
93152
- to: "/inventory"
93153
- },
93154
- {
93155
- keys: {
93156
- Mac: ["G", "R"]
93157
- },
93158
- label: t2("app.keyboardShortcuts.navigation.goToReservations"),
93159
- type: "pageShortcut",
93160
- to: "/reservations"
93161
- },
93162
- {
93163
- keys: {
93164
- Mac: ["G", "L"]
93165
- },
93166
- label: t2("app.keyboardShortcuts.navigation.goToPriceLists"),
93167
- type: "pageShortcut",
93168
- to: "/price-lists"
93169
- },
93170
- {
93171
- keys: {
93172
- Mac: ["G", "M"]
93173
- },
93174
- label: t2("app.keyboardShortcuts.navigation.goToPromotions"),
93175
- type: "pageShortcut",
93176
- to: "/promotions"
93177
- },
93178
- {
93179
- keys: {
93180
- Mac: ["G", "K"]
93181
- },
93182
- label: t2("app.keyboardShortcuts.navigation.goToCampaigns"),
93183
- type: "pageShortcut",
93184
- to: "/campaigns"
93185
- },
93186
93096
  // Settings
93187
93097
  {
93188
93098
  keys: {
@@ -93192,14 +93102,6 @@ var useGlobalShortcuts = () => {
93192
93102
  type: "settingShortcut",
93193
93103
  to: "/settings"
93194
93104
  },
93195
- {
93196
- keys: {
93197
- Mac: ["G", ",", "S"]
93198
- },
93199
- label: t2("app.keyboardShortcuts.settings.goToStore"),
93200
- type: "settingShortcut",
93201
- to: "/settings/store"
93202
- },
93203
93105
  {
93204
93106
  keys: {
93205
93107
  Mac: ["G", ",", "U"]
@@ -93208,54 +93110,6 @@ var useGlobalShortcuts = () => {
93208
93110
  type: "settingShortcut",
93209
93111
  to: "/settings/users"
93210
93112
  },
93211
- {
93212
- keys: {
93213
- Mac: ["G", ",", "R"]
93214
- },
93215
- label: t2("app.keyboardShortcuts.settings.goToRegions"),
93216
- type: "settingShortcut",
93217
- to: "/settings/regions"
93218
- },
93219
- {
93220
- keys: {
93221
- Mac: ["G", ",", "T"]
93222
- },
93223
- label: t2("app.keyboardShortcuts.settings.goToTaxRegions"),
93224
- type: "settingShortcut",
93225
- to: "/settings/tax-regions"
93226
- },
93227
- {
93228
- keys: {
93229
- Mac: ["G", ",", "A"]
93230
- },
93231
- label: t2("app.keyboardShortcuts.settings.goToSalesChannels"),
93232
- type: "settingShortcut",
93233
- to: "/settings/sales-channels"
93234
- },
93235
- {
93236
- keys: {
93237
- Mac: ["G", ",", "P"]
93238
- },
93239
- label: t2("app.keyboardShortcuts.settings.goToProductTypes"),
93240
- type: "settingShortcut",
93241
- to: "/settings/product-types"
93242
- },
93243
- {
93244
- keys: {
93245
- Mac: ["G", ",", "L"]
93246
- },
93247
- label: t2("app.keyboardShortcuts.settings.goToLocations"),
93248
- type: "settingShortcut",
93249
- to: "/settings/locations"
93250
- },
93251
- {
93252
- keys: {
93253
- Mac: ["G", ",", "M"]
93254
- },
93255
- label: t2("app.keyboardShortcuts.settings.goToReturnReasons"),
93256
- type: "settingShortcut",
93257
- to: "/settings/return-reasons"
93258
- },
93259
93113
  {
93260
93114
  keys: {
93261
93115
  Mac: ["G", ",", "J"]
@@ -95246,8 +95100,14 @@ var useDeveloperRoutes = () => {
95246
95100
  const { t: t2 } = useTranslation9();
95247
95101
  return useMemo5(
95248
95102
  () => [
95249
- { label: t2("apiKeyManagement.domain.publishable"), to: "/settings/publishable-api-keys" },
95250
- { label: t2("apiKeyManagement.domain.secret"), to: "/settings/secret-api-keys" },
95103
+ {
95104
+ label: t2("apiKeyManagement.domain.publishable"),
95105
+ to: "/settings/publishable-api-keys"
95106
+ },
95107
+ {
95108
+ label: t2("apiKeyManagement.domain.secret"),
95109
+ to: "/settings/secret-api-keys"
95110
+ },
95251
95111
  { label: t2("workflowExecutions.domain"), to: "/settings/workflows" }
95252
95112
  ],
95253
95113
  [t2]
@@ -95428,25 +95288,12 @@ var defaultSettingsRouteChildren = [
95428
95288
  {
95429
95289
  path: "profile",
95430
95290
  errorElement: /* @__PURE__ */ jsx21(ErrorBoundary, {}),
95431
- lazy: () => import("./profile-detail-SJWODS2K.mjs"),
95291
+ lazy: () => import("./profile-detail-YX27F7N6.mjs"),
95432
95292
  handle: { breadcrumb: () => t("profile.domain") },
95433
95293
  children: [
95434
95294
  {
95435
95295
  path: "edit",
95436
- lazy: () => import("./profile-edit-HSGF4UXZ.mjs")
95437
- }
95438
- ]
95439
- },
95440
- {
95441
- path: "store",
95442
- errorElement: /* @__PURE__ */ jsx21(ErrorBoundary, {}),
95443
- lazy: () => import("./store-detail-SQKV5KBD.mjs"),
95444
- handle: { breadcrumb: () => t("store.domain") },
95445
- children: [
95446
- { path: "edit", lazy: () => import("./store-edit-WGGIJMYJ.mjs") },
95447
- {
95448
- path: "metadata/edit",
95449
- lazy: () => import("./store-metadata-CSBUGX6Z.mjs")
95296
+ lazy: () => import("./profile-edit-2VRDU75O.mjs")
95450
95297
  }
95451
95298
  ]
95452
95299
  },
@@ -95458,18 +95305,18 @@ var defaultSettingsRouteChildren = [
95458
95305
  children: [
95459
95306
  {
95460
95307
  path: "",
95461
- lazy: () => import("./user-list-OWUR75OP.mjs"),
95308
+ lazy: () => import("./user-list-KNJ5S3IM.mjs"),
95462
95309
  children: [
95463
95310
  {
95464
95311
  path: "invite",
95465
- lazy: () => import("./user-invite-OREFWWYL.mjs")
95312
+ lazy: () => import("./user-invite-E3FAAU3V.mjs")
95466
95313
  }
95467
95314
  ]
95468
95315
  },
95469
95316
  {
95470
95317
  path: ":id",
95471
95318
  lazy: async () => {
95472
- const { Component, Breadcrumb, loader } = await import("./user-detail-7SUQ35G7.mjs");
95319
+ const { Component, Breadcrumb, loader } = await import("./user-detail-KUSRRVNX.mjs");
95473
95320
  return {
95474
95321
  Component,
95475
95322
  loader,
@@ -95479,10 +95326,10 @@ var defaultSettingsRouteChildren = [
95479
95326
  };
95480
95327
  },
95481
95328
  children: [
95482
- { path: "edit", lazy: () => import("./user-edit-KUZV37AH.mjs") },
95329
+ { path: "edit", lazy: () => import("./user-edit-HTN3ZGCL.mjs") },
95483
95330
  {
95484
95331
  path: "metadata/edit",
95485
- lazy: () => import("./user-metadata-QHUX5SHZ.mjs")
95332
+ lazy: () => import("./user-metadata-5GQK75DT.mjs")
95486
95333
  }
95487
95334
  ]
95488
95335
  }
@@ -95499,11 +95346,11 @@ var defaultSettingsRouteChildren = [
95499
95346
  children: [
95500
95347
  {
95501
95348
  path: "",
95502
- lazy: () => import("./api-key-management-list-PL64LD22.mjs"),
95349
+ lazy: () => import("./api-key-management-list-K2XPKF5E.mjs"),
95503
95350
  children: [
95504
95351
  {
95505
95352
  path: "create",
95506
- lazy: () => import("./api-key-management-create-D57V3NN2.mjs")
95353
+ lazy: () => import("./api-key-management-create-VWUERPPB.mjs")
95507
95354
  }
95508
95355
  ]
95509
95356
  }
@@ -95512,7 +95359,7 @@ var defaultSettingsRouteChildren = [
95512
95359
  {
95513
95360
  path: ":id",
95514
95361
  lazy: async () => {
95515
- const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-QURSBB6T.mjs");
95362
+ const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-V4ENQHYY.mjs");
95516
95363
  return {
95517
95364
  Component,
95518
95365
  loader,
@@ -95524,7 +95371,7 @@ var defaultSettingsRouteChildren = [
95524
95371
  children: [
95525
95372
  {
95526
95373
  path: "edit",
95527
- lazy: () => import("./api-key-management-edit-GG5V77GY.mjs")
95374
+ lazy: () => import("./api-key-management-edit-R44OHS7B.mjs")
95528
95375
  }
95529
95376
  ]
95530
95377
  }
@@ -95541,11 +95388,11 @@ var defaultSettingsRouteChildren = [
95541
95388
  children: [
95542
95389
  {
95543
95390
  path: "",
95544
- lazy: () => import("./api-key-management-list-PL64LD22.mjs"),
95391
+ lazy: () => import("./api-key-management-list-K2XPKF5E.mjs"),
95545
95392
  children: [
95546
95393
  {
95547
95394
  path: "create",
95548
- lazy: () => import("./api-key-management-create-D57V3NN2.mjs")
95395
+ lazy: () => import("./api-key-management-create-VWUERPPB.mjs")
95549
95396
  }
95550
95397
  ]
95551
95398
  }
@@ -95554,7 +95401,7 @@ var defaultSettingsRouteChildren = [
95554
95401
  {
95555
95402
  path: ":id",
95556
95403
  lazy: async () => {
95557
- const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-QURSBB6T.mjs");
95404
+ const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-V4ENQHYY.mjs");
95558
95405
  return {
95559
95406
  Component,
95560
95407
  loader,
@@ -95566,7 +95413,7 @@ var defaultSettingsRouteChildren = [
95566
95413
  children: [
95567
95414
  {
95568
95415
  path: "edit",
95569
- lazy: () => import("./api-key-management-edit-GG5V77GY.mjs")
95416
+ lazy: () => import("./api-key-management-edit-R44OHS7B.mjs")
95570
95417
  }
95571
95418
  ]
95572
95419
  }
@@ -95580,12 +95427,12 @@ var defaultSettingsRouteChildren = [
95580
95427
  children: [
95581
95428
  {
95582
95429
  path: "",
95583
- lazy: () => import("./workflow-execution-list-IGYF44UH.mjs")
95430
+ lazy: () => import("./workflow-execution-list-HQ3V6TML.mjs")
95584
95431
  },
95585
95432
  {
95586
95433
  path: ":id",
95587
95434
  lazy: async () => {
95588
- const { Component, Breadcrumb, loader } = await import("./workflow-execution-detail-MWNM25TF.mjs");
95435
+ const { Component, Breadcrumb, loader } = await import("./workflow-execution-detail-LZXCRVNC.mjs");
95589
95436
  return {
95590
95437
  Component,
95591
95438
  loader,
@@ -95604,7 +95451,7 @@ var defaultSettingsRouteChildren = [
95604
95451
  children: [
95605
95452
  {
95606
95453
  path: "",
95607
- lazy: () => import("./translation-list-H5X4DVCC.mjs"),
95454
+ lazy: () => import("./translation-list-CCEQJNED.mjs"),
95608
95455
  children: [
95609
95456
  {
95610
95457
  path: "settings",
@@ -95614,7 +95461,7 @@ var defaultSettingsRouteChildren = [
95614
95461
  },
95615
95462
  {
95616
95463
  path: "edit",
95617
- lazy: () => import("./translations-edit-NPAUN2GZ.mjs")
95464
+ lazy: () => import("./translations-edit-E57GVUFV.mjs")
95618
95465
  }
95619
95466
  ]
95620
95467
  }
@@ -95666,15 +95513,15 @@ function getRouteMap({
95666
95513
  children: [
95667
95514
  {
95668
95515
  path: "/login",
95669
- lazy: () => import("./login-YURMNRCS.mjs")
95516
+ lazy: () => import("./login-GNP3QIPI.mjs")
95670
95517
  },
95671
95518
  {
95672
95519
  path: "/reset-password",
95673
- lazy: () => import("./reset-password-RQ5M7HQC.mjs")
95520
+ lazy: () => import("./reset-password-TWRNZO6Z.mjs")
95674
95521
  },
95675
95522
  {
95676
95523
  path: "/invite",
95677
- lazy: () => import("./invite-BAFXQBLJ.mjs")
95524
+ lazy: () => import("./invite-XGPZZBUP.mjs")
95678
95525
  },
95679
95526
  {
95680
95527
  path: "*",
@@ -9,59 +9,14 @@ import {
9
9
  } from "./chunk-DTY37DDZ.mjs";
10
10
 
11
11
  // src/hooks/api/api-keys.tsx
12
- import {
13
- useMutation as useMutation4,
14
- useQuery as useQuery4
15
- } from "@tanstack/react-query";
16
-
17
- // src/hooks/api/sales-channels.tsx
18
- import {
19
- useMutation as useMutation3,
20
- useQuery as useQuery3
21
- } from "@tanstack/react-query";
22
-
23
- // src/hooks/api/products.tsx
24
- import {
25
- useMutation as useMutation2,
26
- useQuery as useQuery2
27
- } from "@tanstack/react-query";
28
-
29
- // src/hooks/api/inventory.tsx
30
12
  import {
31
13
  useMutation,
32
14
  useQuery
33
15
  } from "@tanstack/react-query";
34
- var INVENTORY_ITEMS_QUERY_KEY = "inventory_items";
35
- var inventoryItemsQueryKeys = queryKeysFactory(
36
- INVENTORY_ITEMS_QUERY_KEY
37
- );
38
- var INVENTORY_ITEM_LEVELS_QUERY_KEY = "inventory_item_levels";
39
- var inventoryItemLevelsQueryKeys = queryKeysFactory(
40
- INVENTORY_ITEM_LEVELS_QUERY_KEY
41
- );
42
-
43
- // src/hooks/use-infinite-list.tsx
44
- import {
45
- useInfiniteQuery
46
- } from "@tanstack/react-query";
47
-
48
- // src/hooks/api/products.tsx
49
- var PRODUCTS_QUERY_KEY = "products";
50
- var productsQueryKeys = queryKeysFactory(PRODUCTS_QUERY_KEY);
51
- var VARIANTS_QUERY_KEY = "product_variants";
52
- var variantsQueryKeys = queryKeysFactory(VARIANTS_QUERY_KEY);
53
- var OPTIONS_QUERY_KEY = "product_options";
54
- var optionsQueryKeys = queryKeysFactory(OPTIONS_QUERY_KEY);
55
-
56
- // src/hooks/api/sales-channels.tsx
57
- var SALES_CHANNELS_QUERY_KEY = "sales-channels";
58
- var salesChannelsQueryKeys = queryKeysFactory(SALES_CHANNELS_QUERY_KEY);
59
-
60
- // src/hooks/api/api-keys.tsx
61
16
  var API_KEYS_QUERY_KEY = "api_keys";
62
17
  var apiKeysQueryKeys = queryKeysFactory(API_KEYS_QUERY_KEY);
63
18
  var useApiKey = (id, options) => {
64
- const { data, ...rest } = useQuery4({
19
+ const { data, ...rest } = useQuery({
65
20
  queryFn: () => sdk.admin.apiKey.retrieve(id),
66
21
  queryKey: apiKeysQueryKeys.detail(id),
67
22
  ...options
@@ -69,7 +24,7 @@ var useApiKey = (id, options) => {
69
24
  return { ...data, ...rest };
70
25
  };
71
26
  var useApiKeys = (query, options) => {
72
- const { data, ...rest } = useQuery4({
27
+ const { data, ...rest } = useQuery({
73
28
  queryFn: () => sdk.admin.apiKey.list(query),
74
29
  queryKey: apiKeysQueryKeys.list(query),
75
30
  ...options
@@ -77,7 +32,7 @@ var useApiKeys = (query, options) => {
77
32
  return { ...data, ...rest };
78
33
  };
79
34
  var useCreateApiKey = (options) => {
80
- return useMutation4({
35
+ return useMutation({
81
36
  mutationFn: (payload) => sdk.admin.apiKey.create(payload),
82
37
  onSuccess: (data, variables, context) => {
83
38
  queryClient.invalidateQueries({ queryKey: apiKeysQueryKeys.lists() });
@@ -87,7 +42,7 @@ var useCreateApiKey = (options) => {
87
42
  });
88
43
  };
89
44
  var useUpdateApiKey = (id, options) => {
90
- return useMutation4({
45
+ return useMutation({
91
46
  mutationFn: (payload) => sdk.admin.apiKey.update(id, payload),
92
47
  onSuccess: (data, variables, context) => {
93
48
  queryClient.invalidateQueries({ queryKey: apiKeysQueryKeys.lists() });
@@ -98,7 +53,7 @@ var useUpdateApiKey = (id, options) => {
98
53
  });
99
54
  };
100
55
  var useRevokeApiKey = (id, options) => {
101
- return useMutation4({
56
+ return useMutation({
102
57
  mutationFn: () => sdk.admin.apiKey.revoke(id),
103
58
  onSuccess: (data, variables, context) => {
104
59
  queryClient.invalidateQueries({ queryKey: apiKeysQueryKeys.lists() });
@@ -108,7 +63,7 @@ var useRevokeApiKey = (id, options) => {
108
63
  });
109
64
  };
110
65
  var useDeleteApiKey = (id, options) => {
111
- return useMutation4({
66
+ return useMutation({
112
67
  mutationFn: () => sdk.admin.apiKey.delete(id),
113
68
  onSuccess: (data, variables, context) => {
114
69
  queryClient.invalidateQueries({ queryKey: apiKeysQueryKeys.lists() });
@@ -5,17 +5,30 @@ import {
5
5
  sdk
6
6
  } from "./chunk-DTY37DDZ.mjs";
7
7
 
8
+ // src/hooks/api/locales.tsx
9
+ import { useQuery } from "@tanstack/react-query";
10
+ var LOCALES_QUERY_KEY = "locales";
11
+ var localesQueryKeys = queryKeysFactory(LOCALES_QUERY_KEY);
12
+ var useLocales = (query, options) => {
13
+ const { data, ...rest } = useQuery({
14
+ queryFn: () => sdk.admin.locale.list(query),
15
+ queryKey: localesQueryKeys.list(query),
16
+ ...options
17
+ });
18
+ return { ...data, ...rest };
19
+ };
20
+
8
21
  // src/hooks/api/cloud.tsx
9
22
  import {
10
23
  useMutation,
11
- useQuery
24
+ useQuery as useQuery2
12
25
  } from "@tanstack/react-query";
13
26
  var cloudQueryKeys = {
14
27
  all: ["cloud"],
15
28
  auth: () => [...cloudQueryKeys.all, "auth"]
16
29
  };
17
30
  var useCloudAuthEnabled = (options) => {
18
- return useQuery({
31
+ return useQuery2({
19
32
  queryKey: cloudQueryKeys.auth(),
20
33
  queryFn: async () => {
21
34
  return await sdk.client.fetch("/cloud/auth");
@@ -34,11 +47,6 @@ var useCreateCloudAuthUser = (options) => {
34
47
  });
35
48
  };
36
49
 
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
50
  // src/hooks/api/notification.tsx
43
51
  import { useQuery as useQuery3 } from "@tanstack/react-query";
44
52
  var NOTIFICATION_QUERY_KEY = "notification";
@@ -60,6 +68,7 @@ var pluginsQueryKeys = queryKeysFactory(PLUGINS_QUERY_KEY);
60
68
  export {
61
69
  useCloudAuthEnabled,
62
70
  useCreateCloudAuthUser,
71
+ useLocales,
63
72
  notificationQueryKeys,
64
73
  useNotifications
65
74
  };
@@ -2,29 +2,28 @@ import {
2
2
  AvatarBox
3
3
  } from "./chunk-RREPQMYC.mjs";
4
4
  import "./chunk-G2VJOHHV.mjs";
5
+ import {
6
+ isFetchError
7
+ } from "./chunk-TCNCAWYD.mjs";
8
+ import {
9
+ useExtension
10
+ } from "./chunk-C5P5PL3E.mjs";
5
11
  import {
6
12
  useCloudAuthEnabled,
7
13
  useCreateCloudAuthUser
8
- } from "./chunk-6SQCO25J.mjs";
9
- import "./chunk-ULSPL3DR.mjs";
14
+ } from "./chunk-ST2YB7JN.mjs";
10
15
  import {
11
16
  useSignInWithEmailPass
12
17
  } from "./chunk-GBFVWROS.mjs";
13
- import "./chunk-VBT5YZ4K.mjs";
18
+ import "./chunk-EFRMWHRX.mjs";
14
19
  import "./chunk-LKWTBYYC.mjs";
15
- import "./chunk-OHAFITSB.mjs";
16
- import {
17
- useExtension
18
- } from "./chunk-C5P5PL3E.mjs";
20
+ import "./chunk-ULSPL3DR.mjs";
19
21
  import "./chunk-DN3MIYQH.mjs";
20
- import "./chunk-YRWSG3YM.mjs";
21
- import {
22
- isFetchError
23
- } from "./chunk-TCNCAWYD.mjs";
24
22
  import "./chunk-XIM7X4FB.mjs";
25
23
  import {
26
24
  Form
27
25
  } from "./chunk-ND3ODI36.mjs";
26
+ import "./chunk-YRWSG3YM.mjs";
28
27
  import "./chunk-FXYH54JP.mjs";
29
28
  import "./chunk-774WSTCC.mjs";
30
29
  import {