@medusajs/dashboard 2.10.4-snapshot-20250922165717 → 2.10.4-snapshot-20250923121159

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 (48) hide show
  1. package/dist/{add-campaign-promotions-FE4BXGVN.mjs → add-campaign-promotions-JOVLXLS4.mjs} +3 -3
  2. package/dist/{api-key-management-detail-SAVBCKX7.mjs → api-key-management-detail-I7T67TXF.mjs} +1 -1
  3. package/dist/{api-key-management-sales-channels-WL5L5XWM.mjs → api-key-management-sales-channels-6GN6RVZ2.mjs} +1 -1
  4. package/dist/app.css +0 -3
  5. package/dist/app.js +3330 -3318
  6. package/dist/app.mjs +2 -2
  7. package/dist/{campaign-detail-KTOLZNTA.mjs → campaign-detail-NRZHGINV.mjs} +3 -3
  8. package/dist/{chunk-JO6QASTJ.mjs → chunk-37UXEJF2.mjs} +1 -1
  9. package/dist/{chunk-7YZF3THS.mjs → chunk-BHZAQZYP.mjs} +1 -1
  10. package/dist/{chunk-KMUDF36P.mjs → chunk-JIQQKKLO.mjs} +1 -1
  11. package/dist/{chunk-S45XMWVD.mjs → chunk-JMQ6V54O.mjs} +1 -1
  12. package/dist/{chunk-CGK6IVLN.mjs → chunk-OLUNPPBR.mjs} +1 -1
  13. package/dist/{chunk-IINWRJA6.mjs → chunk-RVOPC44F.mjs} +27 -27
  14. package/dist/{chunk-UNM3LPTG.mjs → chunk-YM4QJC6Y.mjs} +24 -11
  15. package/dist/{chunk-JELVERJM.mjs → chunk-ZJA7VBUR.mjs} +6 -2
  16. package/dist/{customer-group-list-GPIKR66X.mjs → customer-group-list-D26UKQMR.mjs} +1 -1
  17. package/dist/{inventory-detail-5433AAQ2.mjs → inventory-detail-QHL7TJFZ.mjs} +1 -1
  18. package/dist/location-list-62KBWY4T.mjs +316 -0
  19. package/dist/{location-sales-channels-2BOIPBBG.mjs → location-sales-channels-O5XLIPAR.mjs} +1 -1
  20. package/dist/{order-list-ZCMNSZYB.mjs → order-list-73DBATIK.mjs} +2 -2
  21. package/dist/{product-attributes-ZZPEBDCK.mjs → product-attributes-FQDJCNUB.mjs} +3 -3
  22. package/dist/{product-create-FCDCIDCH.mjs → product-create-W37RQLON.mjs} +4 -4
  23. package/dist/{product-detail-2ZUONC23.mjs → product-detail-TANIKAEK.mjs} +4 -4
  24. package/dist/{product-edit-G3Z6FCN6.mjs → product-edit-DO76GHBI.mjs} +3 -3
  25. package/dist/{product-list-WGX66SGI.mjs → product-list-KJ3HXPLB.mjs} +2 -2
  26. package/dist/{product-media-APQKPFTT.mjs → product-media-VG4YM2W6.mjs} +2 -2
  27. package/dist/{product-organization-BYT4TKMZ.mjs → product-organization-OOVUGXNP.mjs} +3 -3
  28. package/dist/{product-sales-channels-UGPAXFAV.mjs → product-sales-channels-QEJRSCAU.mjs} +1 -1
  29. package/dist/{product-shipping-profile-YDN4X6S2.mjs → product-shipping-profile-FFMKOF6B.mjs} +3 -3
  30. package/dist/{promotion-detail-6ZD7Z6BF.mjs → promotion-detail-GONXLJZ2.mjs} +112 -63
  31. package/dist/{promotion-list-GI64LDWI.mjs → promotion-list-NNEMVJ6I.mjs} +3 -3
  32. package/dist/{reset-password-SXA6YKTJ.mjs → reset-password-ANJHGYUE.mjs} +1 -1
  33. package/dist/{sales-channel-list-ADIJMXNV.mjs → sales-channel-list-LKVHXUXW.mjs} +1 -1
  34. package/dist/{tax-region-create-W3K5IFD3.mjs → tax-region-create-IWM4755I.mjs} +1 -1
  35. package/dist/{user-list-3YFYZFSK.mjs → user-list-MKJLB5CQ.mjs} +1 -1
  36. package/package.json +9 -9
  37. package/src/components/data-table/data-table.tsx +64 -46
  38. package/src/i18n/translations/$schema.json +90 -67
  39. package/src/i18n/translations/en.json +6 -2
  40. package/src/routes/locations/location-list/index.ts +0 -1
  41. package/src/routes/locations/location-list/location-list.tsx +51 -19
  42. package/src/routes/locations/location-list/use-location-list-table-columns.tsx +185 -0
  43. package/src/routes/locations/location-list/use-location-list-table-query.tsx +22 -0
  44. package/dist/chunk-BKJC5BGQ.mjs +0 -53
  45. package/dist/location-list-BKK2PAKF.mjs +0 -297
  46. package/src/routes/locations/location-list/components/location-list-header/index.ts +0 -1
  47. package/src/routes/locations/location-list/components/location-list-header/location-list-header.tsx +0 -21
  48. package/src/routes/locations/location-list/loader.ts +0 -36
package/dist/app.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  DashboardApp
3
- } from "./chunk-IINWRJA6.mjs";
3
+ } from "./chunk-RVOPC44F.mjs";
4
4
  import "./chunk-NQIC7ZFS.mjs";
5
5
  import "./chunk-ONB3JEHR.mjs";
6
6
  import "./chunk-4GQOUCX6.mjs";
7
7
  import "./chunk-2VTICXJR.mjs";
8
8
  import "./chunk-D3YQN7HV.mjs";
9
- import "./chunk-JELVERJM.mjs";
9
+ import "./chunk-ZJA7VBUR.mjs";
10
10
  import "./chunk-MNXC6Q4F.mjs";
11
11
  import "./chunk-C5P5PL3E.mjs";
12
12
  import "./chunk-DG7J63J2.mjs";
@@ -4,8 +4,8 @@ import {
4
4
  import {
5
5
  usePromotionTableColumns,
6
6
  usePromotionTableQuery
7
- } from "./chunk-7YZF3THS.mjs";
8
- import "./chunk-KMUDF36P.mjs";
7
+ } from "./chunk-BHZAQZYP.mjs";
8
+ import "./chunk-JIQQKKLO.mjs";
9
9
  import "./chunk-MSDRGCRR.mjs";
10
10
  import "./chunk-ADOCJB6L.mjs";
11
11
  import "./chunk-LQTHYS2Z.mjs";
@@ -31,7 +31,7 @@ import {
31
31
  import "./chunk-C76H5USB.mjs";
32
32
  import "./chunk-PFKKVLZX.mjs";
33
33
  import "./chunk-4GQOUCX6.mjs";
34
- import "./chunk-JELVERJM.mjs";
34
+ import "./chunk-ZJA7VBUR.mjs";
35
35
  import {
36
36
  useExtension
37
37
  } from "./chunk-C5P5PL3E.mjs";
@@ -22,7 +22,7 @@ import {
22
22
  SaveViewDialog,
23
23
  useViewConfiguration,
24
24
  useViewConfigurations
25
- } from "./chunk-UNM3LPTG.mjs";
25
+ } from "./chunk-YM4QJC6Y.mjs";
26
26
  import {
27
27
  useQueryParams
28
28
  } from "./chunk-C76H5USB.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPromotionStatus
3
- } from "./chunk-KMUDF36P.mjs";
3
+ } from "./chunk-JIQQKKLO.mjs";
4
4
  import {
5
5
  TextCell,
6
6
  TextHeader
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  i18n
3
- } from "./chunk-JELVERJM.mjs";
3
+ } from "./chunk-ZJA7VBUR.mjs";
4
4
 
5
5
  // src/lib/promotions.ts
6
6
  var promotionStatusMap = {
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-6GU6IDUA.mjs";
11
11
  import {
12
12
  i18n
13
- } from "./chunk-JELVERJM.mjs";
13
+ } from "./chunk-ZJA7VBUR.mjs";
14
14
  import {
15
15
  Form
16
16
  } from "./chunk-OBQI23QM.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getLinkedFields
3
- } from "./chunk-IINWRJA6.mjs";
3
+ } from "./chunk-RVOPC44F.mjs";
4
4
 
5
5
  // src/routes/products/product-detail/constants.ts
6
6
  var PRODUCT_DETAIL_FIELDS = getLinkedFields(
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-D3YQN7HV.mjs";
14
14
  import {
15
15
  I18n
16
- } from "./chunk-JELVERJM.mjs";
16
+ } from "./chunk-ZJA7VBUR.mjs";
17
17
  import {
18
18
  Thumbnail
19
19
  } from "./chunk-MNXC6Q4F.mjs";
@@ -3331,11 +3331,11 @@ function getRouteMap({
3331
3331
  children: [
3332
3332
  {
3333
3333
  path: "",
3334
- lazy: () => import("./product-list-WGX66SGI.mjs"),
3334
+ lazy: () => import("./product-list-KJ3HXPLB.mjs"),
3335
3335
  children: [
3336
3336
  {
3337
3337
  path: "create",
3338
- lazy: () => import("./product-create-FCDCIDCH.mjs")
3338
+ lazy: () => import("./product-create-W37RQLON.mjs")
3339
3339
  },
3340
3340
  {
3341
3341
  path: "import",
@@ -3351,7 +3351,7 @@ function getRouteMap({
3351
3351
  path: ":id",
3352
3352
  errorElement: /* @__PURE__ */ jsx18(ErrorBoundary, {}),
3353
3353
  lazy: async () => {
3354
- const { Breadcrumb, loader } = await import("./product-detail-2ZUONC23.mjs");
3354
+ const { Breadcrumb, loader } = await import("./product-detail-TANIKAEK.mjs");
3355
3355
  return {
3356
3356
  Component: Outlet4,
3357
3357
  loader,
@@ -3363,11 +3363,11 @@ function getRouteMap({
3363
3363
  children: [
3364
3364
  {
3365
3365
  path: "",
3366
- lazy: () => import("./product-detail-2ZUONC23.mjs"),
3366
+ lazy: () => import("./product-detail-TANIKAEK.mjs"),
3367
3367
  children: [
3368
3368
  {
3369
3369
  path: "edit",
3370
- lazy: () => import("./product-edit-G3Z6FCN6.mjs")
3370
+ lazy: () => import("./product-edit-DO76GHBI.mjs")
3371
3371
  },
3372
3372
  {
3373
3373
  path: "edit-variant",
@@ -3375,23 +3375,23 @@ function getRouteMap({
3375
3375
  },
3376
3376
  {
3377
3377
  path: "sales-channels",
3378
- lazy: () => import("./product-sales-channels-UGPAXFAV.mjs")
3378
+ lazy: () => import("./product-sales-channels-QEJRSCAU.mjs")
3379
3379
  },
3380
3380
  {
3381
3381
  path: "attributes",
3382
- lazy: () => import("./product-attributes-ZZPEBDCK.mjs")
3382
+ lazy: () => import("./product-attributes-FQDJCNUB.mjs")
3383
3383
  },
3384
3384
  {
3385
3385
  path: "organization",
3386
- lazy: () => import("./product-organization-BYT4TKMZ.mjs")
3386
+ lazy: () => import("./product-organization-OOVUGXNP.mjs")
3387
3387
  },
3388
3388
  {
3389
3389
  path: "shipping-profile",
3390
- lazy: () => import("./product-shipping-profile-YDN4X6S2.mjs")
3390
+ lazy: () => import("./product-shipping-profile-FFMKOF6B.mjs")
3391
3391
  },
3392
3392
  {
3393
3393
  path: "media",
3394
- lazy: () => import("./product-media-APQKPFTT.mjs")
3394
+ lazy: () => import("./product-media-VG4YM2W6.mjs")
3395
3395
  },
3396
3396
  {
3397
3397
  path: "prices",
@@ -3517,7 +3517,7 @@ function getRouteMap({
3517
3517
  children: [
3518
3518
  {
3519
3519
  path: "",
3520
- lazy: () => import("./order-list-ZCMNSZYB.mjs")
3520
+ lazy: () => import("./order-list-73DBATIK.mjs")
3521
3521
  },
3522
3522
  {
3523
3523
  path: ":id",
@@ -3601,7 +3601,7 @@ function getRouteMap({
3601
3601
  children: [
3602
3602
  {
3603
3603
  path: "",
3604
- lazy: () => import("./promotion-list-GI64LDWI.mjs")
3604
+ lazy: () => import("./promotion-list-NNEMVJ6I.mjs")
3605
3605
  },
3606
3606
  {
3607
3607
  path: "create",
@@ -3610,7 +3610,7 @@ function getRouteMap({
3610
3610
  {
3611
3611
  path: ":id",
3612
3612
  lazy: async () => {
3613
- const { Component, Breadcrumb, loader } = await import("./promotion-detail-6ZD7Z6BF.mjs");
3613
+ const { Component, Breadcrumb, loader } = await import("./promotion-detail-GONXLJZ2.mjs");
3614
3614
  return {
3615
3615
  Component,
3616
3616
  loader,
@@ -3655,7 +3655,7 @@ function getRouteMap({
3655
3655
  {
3656
3656
  path: ":id",
3657
3657
  lazy: async () => {
3658
- const { Component, Breadcrumb, loader } = await import("./campaign-detail-KTOLZNTA.mjs");
3658
+ const { Component, Breadcrumb, loader } = await import("./campaign-detail-NRZHGINV.mjs");
3659
3659
  return {
3660
3660
  Component,
3661
3661
  loader,
@@ -3679,7 +3679,7 @@ function getRouteMap({
3679
3679
  },
3680
3680
  {
3681
3681
  path: "add-promotions",
3682
- lazy: () => import("./add-campaign-promotions-FE4BXGVN.mjs")
3682
+ lazy: () => import("./add-campaign-promotions-JOVLXLS4.mjs")
3683
3683
  }
3684
3684
  ]
3685
3685
  }
@@ -3844,7 +3844,7 @@ function getRouteMap({
3844
3844
  children: [
3845
3845
  {
3846
3846
  path: "",
3847
- lazy: () => import("./customer-group-list-GPIKR66X.mjs"),
3847
+ lazy: () => import("./customer-group-list-D26UKQMR.mjs"),
3848
3848
  children: [
3849
3849
  {
3850
3850
  path: "create",
@@ -3947,7 +3947,7 @@ function getRouteMap({
3947
3947
  {
3948
3948
  path: ":id",
3949
3949
  lazy: async () => {
3950
- const { Component, Breadcrumb, loader } = await import("./inventory-detail-5433AAQ2.mjs");
3950
+ const { Component, Breadcrumb, loader } = await import("./inventory-detail-QHL7TJFZ.mjs");
3951
3951
  return {
3952
3952
  Component,
3953
3953
  loader,
@@ -4095,7 +4095,7 @@ function getRouteMap({
4095
4095
  children: [
4096
4096
  {
4097
4097
  path: "",
4098
- lazy: () => import("./user-list-3YFYZFSK.mjs"),
4098
+ lazy: () => import("./user-list-MKJLB5CQ.mjs"),
4099
4099
  children: [
4100
4100
  {
4101
4101
  path: "invite",
@@ -4138,7 +4138,7 @@ function getRouteMap({
4138
4138
  children: [
4139
4139
  {
4140
4140
  path: "",
4141
- lazy: () => import("./sales-channel-list-ADIJMXNV.mjs"),
4141
+ lazy: () => import("./sales-channel-list-LKVHXUXW.mjs"),
4142
4142
  children: [
4143
4143
  {
4144
4144
  path: "create",
@@ -4185,7 +4185,7 @@ function getRouteMap({
4185
4185
  children: [
4186
4186
  {
4187
4187
  path: "",
4188
- lazy: () => import("./location-list-BKK2PAKF.mjs")
4188
+ lazy: () => import("./location-list-62KBWY4T.mjs")
4189
4189
  },
4190
4190
  {
4191
4191
  path: "create",
@@ -4287,7 +4287,7 @@ function getRouteMap({
4287
4287
  },
4288
4288
  {
4289
4289
  path: "sales-channels",
4290
- lazy: () => import("./location-sales-channels-2BOIPBBG.mjs")
4290
+ lazy: () => import("./location-sales-channels-O5XLIPAR.mjs")
4291
4291
  },
4292
4292
  {
4293
4293
  path: "fulfillment-providers",
@@ -4480,7 +4480,7 @@ function getRouteMap({
4480
4480
  {
4481
4481
  path: ":id",
4482
4482
  lazy: async () => {
4483
- const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-SAVBCKX7.mjs");
4483
+ const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-I7T67TXF.mjs");
4484
4484
  return {
4485
4485
  Component,
4486
4486
  loader,
@@ -4496,7 +4496,7 @@ function getRouteMap({
4496
4496
  },
4497
4497
  {
4498
4498
  path: "sales-channels",
4499
- lazy: () => import("./api-key-management-sales-channels-WL5L5XWM.mjs")
4499
+ lazy: () => import("./api-key-management-sales-channels-6GN6RVZ2.mjs")
4500
4500
  }
4501
4501
  ]
4502
4502
  }
@@ -4528,7 +4528,7 @@ function getRouteMap({
4528
4528
  {
4529
4529
  path: ":id",
4530
4530
  lazy: async () => {
4531
- const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-SAVBCKX7.mjs");
4531
+ const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-I7T67TXF.mjs");
4532
4532
  return {
4533
4533
  Component,
4534
4534
  loader,
@@ -4559,7 +4559,7 @@ function getRouteMap({
4559
4559
  children: [
4560
4560
  {
4561
4561
  path: "create",
4562
- lazy: () => import("./tax-region-create-W3K5IFD3.mjs")
4562
+ lazy: () => import("./tax-region-create-IWM4755I.mjs")
4563
4563
  }
4564
4564
  ]
4565
4565
  },
@@ -4686,7 +4686,7 @@ function getRouteMap({
4686
4686
  },
4687
4687
  {
4688
4688
  path: "/reset-password",
4689
- lazy: () => import("./reset-password-SXA6YKTJ.mjs")
4689
+ lazy: () => import("./reset-password-ANJHGYUE.mjs")
4690
4690
  },
4691
4691
  {
4692
4692
  path: "/invite",
@@ -530,15 +530,20 @@ var DataTable = ({
530
530
  React4.useEffect(() => {
531
531
  const currentKeys = Object.keys(columnVisibility).sort();
532
532
  const newKeys = Object.keys(initialColumnVisibility).sort();
533
- const hasChanged = currentKeys.length !== newKeys.length || currentKeys.some((key, index) => key !== newKeys[index]) || Object.entries(initialColumnVisibility).some(([key, value]) => columnVisibility[key] !== value);
533
+ const hasChanged = currentKeys.length !== newKeys.length || currentKeys.some((key, index) => key !== newKeys[index]) || Object.entries(initialColumnVisibility).some(
534
+ ([key, value]) => columnVisibility[key] !== value
535
+ );
534
536
  if (hasChanged) {
535
537
  setColumnVisibility(initialColumnVisibility);
536
538
  }
537
539
  }, [initialColumnVisibility]);
538
- const handleColumnVisibilityChange = React4.useCallback((visibility) => {
539
- setColumnVisibility(visibility);
540
- onColumnVisibilityChange?.(visibility);
541
- }, [onColumnVisibilityChange]);
540
+ const handleColumnVisibilityChange = React4.useCallback(
541
+ (visibility) => {
542
+ setColumnVisibility(visibility);
543
+ onColumnVisibilityChange?.(visibility);
544
+ },
545
+ [onColumnVisibilityChange]
546
+ );
542
547
  const filterIds = useMemo2(() => filters?.map((f) => f.id) ?? [], [filters]);
543
548
  const prefixedFilterIds = filterIds.map((id) => getQueryParamKey(id, prefix));
544
549
  const { offset, order, q, ...filterParams } = useQueryParams(
@@ -608,11 +613,14 @@ var DataTable = ({
608
613
  const sorting = useMemo2(() => {
609
614
  return order ? parseSortingState(order) : null;
610
615
  }, [order]);
611
- const currentConfiguration = useMemo2(() => ({
612
- filters: filtering,
613
- sorting,
614
- search
615
- }), [filtering, sorting, search]);
616
+ const currentConfiguration = useMemo2(
617
+ () => ({
618
+ filters: filtering,
619
+ sorting,
620
+ search
621
+ }),
622
+ [filtering, sorting, search]
623
+ );
616
624
  const handleSortingChange = (value) => {
617
625
  setSearchParams((prev) => {
618
626
  if (value) {
@@ -726,7 +734,12 @@ var DataTable = ({
726
734
  ),
727
735
  /* @__PURE__ */ jsx4(UiDataTable.Table, { emptyState }),
728
736
  enablePagination && /* @__PURE__ */ jsx4(UiDataTable.Pagination, { translations: paginationTranslations }),
729
- enableCommands && /* @__PURE__ */ jsx4(UiDataTable.CommandBar, { selectedLabel: (count) => `${count} selected` })
737
+ enableCommands && /* @__PURE__ */ jsx4(
738
+ UiDataTable.CommandBar,
739
+ {
740
+ selectedLabel: (count) => `${count} selected`
741
+ }
742
+ )
730
743
  ]
731
744
  }
732
745
  );
@@ -10284,7 +10284,10 @@ var en_default = {
10284
10284
  stockLocations: {
10285
10285
  domain: "Locations & Shipping",
10286
10286
  list: {
10287
- description: "Manage your store's stock locations and shipping options."
10287
+ description: "Manage your store's stock locations and shipping options.",
10288
+ noRecordsMessage: "No records",
10289
+ noRecordsMessageEmpty: "No locations found",
10290
+ noRecordsMessageFiltered: "No locations found matching the filters"
10288
10291
  },
10289
10292
  create: {
10290
10293
  header: "Create Stock Location",
@@ -10297,7 +10300,8 @@ var en_default = {
10297
10300
  successToast: "Location {{name}} was successfully updated."
10298
10301
  },
10299
10302
  delete: {
10300
- confirmation: 'You are about to delete the stock location "{{name}}". This action cannot be undone.'
10303
+ confirmation: 'You are about to delete the stock location "{{name}}". This action cannot be undone.',
10304
+ successToast: 'Location "{{name}}" was successfully deleted.'
10301
10305
  },
10302
10306
  fulfillmentProviders: {
10303
10307
  header: "Fulfillment Providers",
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-Q33G337Z.mjs";
7
7
  import {
8
8
  DataTable
9
- } from "./chunk-UNM3LPTG.mjs";
9
+ } from "./chunk-YM4QJC6Y.mjs";
10
10
  import {
11
11
  useQueryParams
12
12
  } from "./chunk-C76H5USB.mjs";
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-2RQLKDBF.mjs";
31
31
  import {
32
32
  DataTable
33
- } from "./chunk-UNM3LPTG.mjs";
33
+ } from "./chunk-YM4QJC6Y.mjs";
34
34
  import {
35
35
  useQueryParams
36
36
  } from "./chunk-C76H5USB.mjs";