@medusajs/dashboard 2.10.4-preview-20250924060154 → 2.10.4-preview-20250924090158
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.
- package/dist/{add-campaign-promotions-BWIP24MA.mjs → add-campaign-promotions-62IIOR5K.mjs} +3 -3
- package/dist/{api-key-management-detail-WGWZQCFC.mjs → api-key-management-detail-TEW653QF.mjs} +1 -1
- package/dist/{api-key-management-sales-channels-H5TVIHTV.mjs → api-key-management-sales-channels-ESGRJKDT.mjs} +1 -1
- package/dist/app.css +0 -3
- package/dist/app.js +3490 -3464
- package/dist/app.mjs +2 -2
- package/dist/{campaign-detail-EJD7LQCW.mjs → campaign-detail-XYLU3HF4.mjs} +3 -3
- package/dist/{chunk-2252SSK6.mjs → chunk-6W7OL4TX.mjs} +1 -1
- package/dist/{chunk-OQPVQGSH.mjs → chunk-7GBCLBMX.mjs} +24 -11
- package/dist/{chunk-YPSSUJUZ.mjs → chunk-HEBATBOH.mjs} +6 -2
- package/dist/{chunk-U2FXUMKA.mjs → chunk-NDNUJ2UK.mjs} +1 -1
- package/dist/{chunk-CAZKNJTG.mjs → chunk-NKM6CHK6.mjs} +30 -30
- package/dist/{chunk-WP5CXGGO.mjs → chunk-TWP4GTKM.mjs} +1 -1
- package/dist/{chunk-V53HAFWH.mjs → chunk-UOEALCPZ.mjs} +1 -1
- package/dist/{chunk-6RWF7BPW.mjs → chunk-V6JXTITD.mjs} +1 -1
- package/dist/{customer-group-list-UTC5ZCJZ.mjs → customer-group-list-6XY7YF5E.mjs} +1 -1
- package/dist/{inventory-detail-BO5E7KXO.mjs → inventory-detail-WI5T47QL.mjs} +1 -1
- package/dist/{location-edit-RNGPJ26L.mjs → location-edit-X6JBEWIF.mjs} +1 -1
- package/dist/location-list-VNEYHAKV.mjs +323 -0
- package/dist/{location-sales-channels-NSXV65ZM.mjs → location-sales-channels-HVZHZMBY.mjs} +1 -1
- package/dist/{order-detail-6XQLJ5TU.mjs → order-detail-CNQ7HP32.mjs} +30 -22
- package/dist/{order-list-OTPVQKU6.mjs → order-list-YWPAJ7FR.mjs} +2 -2
- package/dist/{product-attributes-5PLACMXK.mjs → product-attributes-6ELSX5OH.mjs} +3 -3
- package/dist/{product-create-6FMLIS5X.mjs → product-create-6NWXJ7AY.mjs} +4 -4
- package/dist/{product-detail-2BJJMCCO.mjs → product-detail-G53SUBEP.mjs} +4 -4
- package/dist/{product-edit-N5P7RVNS.mjs → product-edit-ZYUXMIZP.mjs} +3 -3
- package/dist/{product-list-EUQX3NBE.mjs → product-list-R6IDCNRV.mjs} +2 -2
- package/dist/{product-media-XJGAON6B.mjs → product-media-AKHSFDJQ.mjs} +2 -2
- package/dist/{product-organization-FB6BVKKL.mjs → product-organization-J2UYHJ6I.mjs} +3 -3
- package/dist/{product-sales-channels-QBQDLU7Z.mjs → product-sales-channels-UX7AOJIF.mjs} +1 -1
- package/dist/{product-shipping-profile-UZQSV54B.mjs → product-shipping-profile-FN7L2V4X.mjs} +3 -3
- package/dist/{promotion-detail-VB5GZDCC.mjs → promotion-detail-RISSMGU5.mjs} +112 -63
- package/dist/{promotion-list-NAUTWXNU.mjs → promotion-list-UPVSOD6R.mjs} +3 -3
- package/dist/{refund-reason-list-VBHGRLJJ.mjs → refund-reason-list-RGRFZ5DU.mjs} +9 -4
- package/dist/{reset-password-ZCKXQZNQ.mjs → reset-password-AYCPBCKE.mjs} +1 -1
- package/dist/{sales-channel-list-R4HT6A7P.mjs → sales-channel-list-KNLMJ67Q.mjs} +1 -1
- package/dist/{tax-region-create-2GDG36NQ.mjs → tax-region-create-SP46RW2E.mjs} +1 -1
- package/dist/{user-list-TPBPZ7KJ.mjs → user-list-G4H2RSDX.mjs} +1 -1
- package/package.json +9 -9
- package/src/components/data-table/data-table.tsx +64 -46
- package/src/i18n/translations/$schema.json +19 -2
- package/src/i18n/translations/en.json +6 -2
- package/src/routes/locations/location-edit/components/edit-location-form/edit-location-form.tsx +1 -1
- package/src/routes/locations/location-list/index.ts +0 -1
- package/src/routes/locations/location-list/location-list.tsx +52 -14
- package/src/routes/locations/location-list/use-location-list-table-columns.tsx +185 -0
- package/src/routes/locations/location-list/use-location-list-table-query.tsx +22 -0
- package/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx +13 -5
- package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx +12 -4
- package/dist/chunk-BKJC5BGQ.mjs +0 -53
- package/dist/location-list-NKIOBHG4.mjs +0 -298
- package/src/routes/locations/location-list/components/location-list-header/index.ts +0 -1
- package/src/routes/locations/location-list/components/location-list-header/location-list-header.tsx +0 -21
- 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-
|
3
|
+
} from "./chunk-NKM6CHK6.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-
|
9
|
+
import "./chunk-HEBATBOH.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-
|
8
|
-
import "./chunk-
|
7
|
+
} from "./chunk-UOEALCPZ.mjs";
|
8
|
+
import "./chunk-6W7OL4TX.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-
|
34
|
+
import "./chunk-HEBATBOH.mjs";
|
35
35
|
import {
|
36
36
|
useExtension
|
37
37
|
} from "./chunk-C5P5PL3E.mjs";
|
@@ -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(
|
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(
|
539
|
-
|
540
|
-
|
541
|
-
|
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
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
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(
|
737
|
+
enableCommands && /* @__PURE__ */ jsx4(
|
738
|
+
UiDataTable.CommandBar,
|
739
|
+
{
|
740
|
+
selectedLabel: (count) => `${count} selected`
|
741
|
+
}
|
742
|
+
)
|
730
743
|
]
|
731
744
|
}
|
732
745
|
);
|
@@ -10285,7 +10285,10 @@ var en_default = {
|
|
10285
10285
|
stockLocations: {
|
10286
10286
|
domain: "Locations & Shipping",
|
10287
10287
|
list: {
|
10288
|
-
description: "Manage your store's stock locations and shipping options."
|
10288
|
+
description: "Manage your store's stock locations and shipping options.",
|
10289
|
+
noRecordsMessage: "No records",
|
10290
|
+
noRecordsMessageEmpty: "No locations found",
|
10291
|
+
noRecordsMessageFiltered: "No locations found matching the filters"
|
10289
10292
|
},
|
10290
10293
|
create: {
|
10291
10294
|
header: "Create Stock Location",
|
@@ -10298,7 +10301,8 @@ var en_default = {
|
|
10298
10301
|
successToast: "Location {{name}} was successfully updated."
|
10299
10302
|
},
|
10300
10303
|
delete: {
|
10301
|
-
confirmation: 'You are about to delete the stock location "{{name}}". This action cannot be undone.'
|
10304
|
+
confirmation: 'You are about to delete the stock location "{{name}}". This action cannot be undone.',
|
10305
|
+
successToast: 'Location "{{name}}" was successfully deleted.'
|
10302
10306
|
},
|
10303
10307
|
fulfillmentProviders: {
|
10304
10308
|
header: "Fulfillment Providers",
|
@@ -13,7 +13,7 @@ import {
|
|
13
13
|
} from "./chunk-D3YQN7HV.mjs";
|
14
14
|
import {
|
15
15
|
I18n
|
16
|
-
} from "./chunk-
|
16
|
+
} from "./chunk-HEBATBOH.mjs";
|
17
17
|
import {
|
18
18
|
Thumbnail
|
19
19
|
} from "./chunk-MNXC6Q4F.mjs";
|
@@ -3353,11 +3353,11 @@ function getRouteMap({
|
|
3353
3353
|
children: [
|
3354
3354
|
{
|
3355
3355
|
path: "",
|
3356
|
-
lazy: () => import("./product-list-
|
3356
|
+
lazy: () => import("./product-list-R6IDCNRV.mjs"),
|
3357
3357
|
children: [
|
3358
3358
|
{
|
3359
3359
|
path: "create",
|
3360
|
-
lazy: () => import("./product-create-
|
3360
|
+
lazy: () => import("./product-create-6NWXJ7AY.mjs")
|
3361
3361
|
},
|
3362
3362
|
{
|
3363
3363
|
path: "import",
|
@@ -3373,7 +3373,7 @@ function getRouteMap({
|
|
3373
3373
|
path: ":id",
|
3374
3374
|
errorElement: /* @__PURE__ */ jsx18(ErrorBoundary, {}),
|
3375
3375
|
lazy: async () => {
|
3376
|
-
const { Breadcrumb, loader } = await import("./product-detail-
|
3376
|
+
const { Breadcrumb, loader } = await import("./product-detail-G53SUBEP.mjs");
|
3377
3377
|
return {
|
3378
3378
|
Component: Outlet4,
|
3379
3379
|
loader,
|
@@ -3385,11 +3385,11 @@ function getRouteMap({
|
|
3385
3385
|
children: [
|
3386
3386
|
{
|
3387
3387
|
path: "",
|
3388
|
-
lazy: () => import("./product-detail-
|
3388
|
+
lazy: () => import("./product-detail-G53SUBEP.mjs"),
|
3389
3389
|
children: [
|
3390
3390
|
{
|
3391
3391
|
path: "edit",
|
3392
|
-
lazy: () => import("./product-edit-
|
3392
|
+
lazy: () => import("./product-edit-ZYUXMIZP.mjs")
|
3393
3393
|
},
|
3394
3394
|
{
|
3395
3395
|
path: "edit-variant",
|
@@ -3397,23 +3397,23 @@ function getRouteMap({
|
|
3397
3397
|
},
|
3398
3398
|
{
|
3399
3399
|
path: "sales-channels",
|
3400
|
-
lazy: () => import("./product-sales-channels-
|
3400
|
+
lazy: () => import("./product-sales-channels-UX7AOJIF.mjs")
|
3401
3401
|
},
|
3402
3402
|
{
|
3403
3403
|
path: "attributes",
|
3404
|
-
lazy: () => import("./product-attributes-
|
3404
|
+
lazy: () => import("./product-attributes-6ELSX5OH.mjs")
|
3405
3405
|
},
|
3406
3406
|
{
|
3407
3407
|
path: "organization",
|
3408
|
-
lazy: () => import("./product-organization-
|
3408
|
+
lazy: () => import("./product-organization-J2UYHJ6I.mjs")
|
3409
3409
|
},
|
3410
3410
|
{
|
3411
3411
|
path: "shipping-profile",
|
3412
|
-
lazy: () => import("./product-shipping-profile-
|
3412
|
+
lazy: () => import("./product-shipping-profile-FN7L2V4X.mjs")
|
3413
3413
|
},
|
3414
3414
|
{
|
3415
3415
|
path: "media",
|
3416
|
-
lazy: () => import("./product-media-
|
3416
|
+
lazy: () => import("./product-media-AKHSFDJQ.mjs")
|
3417
3417
|
},
|
3418
3418
|
{
|
3419
3419
|
path: "prices",
|
@@ -3539,12 +3539,12 @@ function getRouteMap({
|
|
3539
3539
|
children: [
|
3540
3540
|
{
|
3541
3541
|
path: "",
|
3542
|
-
lazy: () => import("./order-list-
|
3542
|
+
lazy: () => import("./order-list-YWPAJ7FR.mjs")
|
3543
3543
|
},
|
3544
3544
|
{
|
3545
3545
|
path: ":id",
|
3546
3546
|
lazy: async () => {
|
3547
|
-
const { Component, Breadcrumb, loader } = await import("./order-detail-
|
3547
|
+
const { Component, Breadcrumb, loader } = await import("./order-detail-CNQ7HP32.mjs");
|
3548
3548
|
return {
|
3549
3549
|
Component,
|
3550
3550
|
loader,
|
@@ -3623,7 +3623,7 @@ function getRouteMap({
|
|
3623
3623
|
children: [
|
3624
3624
|
{
|
3625
3625
|
path: "",
|
3626
|
-
lazy: () => import("./promotion-list-
|
3626
|
+
lazy: () => import("./promotion-list-UPVSOD6R.mjs")
|
3627
3627
|
},
|
3628
3628
|
{
|
3629
3629
|
path: "create",
|
@@ -3632,7 +3632,7 @@ function getRouteMap({
|
|
3632
3632
|
{
|
3633
3633
|
path: ":id",
|
3634
3634
|
lazy: async () => {
|
3635
|
-
const { Component, Breadcrumb, loader } = await import("./promotion-detail-
|
3635
|
+
const { Component, Breadcrumb, loader } = await import("./promotion-detail-RISSMGU5.mjs");
|
3636
3636
|
return {
|
3637
3637
|
Component,
|
3638
3638
|
loader,
|
@@ -3677,7 +3677,7 @@ function getRouteMap({
|
|
3677
3677
|
{
|
3678
3678
|
path: ":id",
|
3679
3679
|
lazy: async () => {
|
3680
|
-
const { Component, Breadcrumb, loader } = await import("./campaign-detail-
|
3680
|
+
const { Component, Breadcrumb, loader } = await import("./campaign-detail-XYLU3HF4.mjs");
|
3681
3681
|
return {
|
3682
3682
|
Component,
|
3683
3683
|
loader,
|
@@ -3701,7 +3701,7 @@ function getRouteMap({
|
|
3701
3701
|
},
|
3702
3702
|
{
|
3703
3703
|
path: "add-promotions",
|
3704
|
-
lazy: () => import("./add-campaign-promotions-
|
3704
|
+
lazy: () => import("./add-campaign-promotions-62IIOR5K.mjs")
|
3705
3705
|
}
|
3706
3706
|
]
|
3707
3707
|
}
|
@@ -3866,7 +3866,7 @@ function getRouteMap({
|
|
3866
3866
|
children: [
|
3867
3867
|
{
|
3868
3868
|
path: "",
|
3869
|
-
lazy: () => import("./customer-group-list-
|
3869
|
+
lazy: () => import("./customer-group-list-6XY7YF5E.mjs"),
|
3870
3870
|
children: [
|
3871
3871
|
{
|
3872
3872
|
path: "create",
|
@@ -3969,7 +3969,7 @@ function getRouteMap({
|
|
3969
3969
|
{
|
3970
3970
|
path: ":id",
|
3971
3971
|
lazy: async () => {
|
3972
|
-
const { Component, Breadcrumb, loader } = await import("./inventory-detail-
|
3972
|
+
const { Component, Breadcrumb, loader } = await import("./inventory-detail-WI5T47QL.mjs");
|
3973
3973
|
return {
|
3974
3974
|
Component,
|
3975
3975
|
loader,
|
@@ -4117,7 +4117,7 @@ function getRouteMap({
|
|
4117
4117
|
children: [
|
4118
4118
|
{
|
4119
4119
|
path: "",
|
4120
|
-
lazy: () => import("./user-list-
|
4120
|
+
lazy: () => import("./user-list-G4H2RSDX.mjs"),
|
4121
4121
|
children: [
|
4122
4122
|
{
|
4123
4123
|
path: "invite",
|
@@ -4160,7 +4160,7 @@ function getRouteMap({
|
|
4160
4160
|
children: [
|
4161
4161
|
{
|
4162
4162
|
path: "",
|
4163
|
-
lazy: () => import("./sales-channel-list-
|
4163
|
+
lazy: () => import("./sales-channel-list-KNLMJ67Q.mjs"),
|
4164
4164
|
children: [
|
4165
4165
|
{
|
4166
4166
|
path: "create",
|
@@ -4207,7 +4207,7 @@ function getRouteMap({
|
|
4207
4207
|
children: [
|
4208
4208
|
{
|
4209
4209
|
path: "",
|
4210
|
-
lazy: () => import("./location-list-
|
4210
|
+
lazy: () => import("./location-list-VNEYHAKV.mjs")
|
4211
4211
|
},
|
4212
4212
|
{
|
4213
4213
|
path: "create",
|
@@ -4305,11 +4305,11 @@ function getRouteMap({
|
|
4305
4305
|
children: [
|
4306
4306
|
{
|
4307
4307
|
path: "edit",
|
4308
|
-
lazy: () => import("./location-edit-
|
4308
|
+
lazy: () => import("./location-edit-X6JBEWIF.mjs")
|
4309
4309
|
},
|
4310
4310
|
{
|
4311
4311
|
path: "sales-channels",
|
4312
|
-
lazy: () => import("./location-sales-channels-
|
4312
|
+
lazy: () => import("./location-sales-channels-HVZHZMBY.mjs")
|
4313
4313
|
},
|
4314
4314
|
{
|
4315
4315
|
path: "fulfillment-providers",
|
@@ -4502,7 +4502,7 @@ function getRouteMap({
|
|
4502
4502
|
{
|
4503
4503
|
path: ":id",
|
4504
4504
|
lazy: async () => {
|
4505
|
-
const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-
|
4505
|
+
const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-TEW653QF.mjs");
|
4506
4506
|
return {
|
4507
4507
|
Component,
|
4508
4508
|
loader,
|
@@ -4518,7 +4518,7 @@ function getRouteMap({
|
|
4518
4518
|
},
|
4519
4519
|
{
|
4520
4520
|
path: "sales-channels",
|
4521
|
-
lazy: () => import("./api-key-management-sales-channels-
|
4521
|
+
lazy: () => import("./api-key-management-sales-channels-ESGRJKDT.mjs")
|
4522
4522
|
}
|
4523
4523
|
]
|
4524
4524
|
}
|
@@ -4550,7 +4550,7 @@ function getRouteMap({
|
|
4550
4550
|
{
|
4551
4551
|
path: ":id",
|
4552
4552
|
lazy: async () => {
|
4553
|
-
const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-
|
4553
|
+
const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-TEW653QF.mjs");
|
4554
4554
|
return {
|
4555
4555
|
Component,
|
4556
4556
|
loader,
|
@@ -4581,7 +4581,7 @@ function getRouteMap({
|
|
4581
4581
|
children: [
|
4582
4582
|
{
|
4583
4583
|
path: "create",
|
4584
|
-
lazy: () => import("./tax-region-create-
|
4584
|
+
lazy: () => import("./tax-region-create-SP46RW2E.mjs")
|
4585
4585
|
}
|
4586
4586
|
]
|
4587
4587
|
},
|
@@ -4700,7 +4700,7 @@ function getRouteMap({
|
|
4700
4700
|
children: [
|
4701
4701
|
{
|
4702
4702
|
path: "",
|
4703
|
-
lazy: () => import("./refund-reason-list-
|
4703
|
+
lazy: () => import("./refund-reason-list-RGRFZ5DU.mjs"),
|
4704
4704
|
children: [
|
4705
4705
|
{
|
4706
4706
|
path: "create",
|
@@ -4736,7 +4736,7 @@ function getRouteMap({
|
|
4736
4736
|
},
|
4737
4737
|
{
|
4738
4738
|
path: "/reset-password",
|
4739
|
-
lazy: () => import("./reset-password-
|
4739
|
+
lazy: () => import("./reset-password-AYCPBCKE.mjs")
|
4740
4740
|
},
|
4741
4741
|
{
|
4742
4742
|
path: "/invite",
|