@mercurjs/admin 2.2.0-rc.2 → 2.2.0
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-LI7XFHIN.js → add-campaign-promotions-KXVCLUG2.js} +3 -3
- package/dist/{campaign-detail-JR7EXZWX.js → campaign-detail-G7DKPI5W.js} +4 -4
- package/dist/{categories-metadata-3H2HUUUP.js → categories-metadata-EKGY5IY2.js} +3 -1
- package/dist/{chunk-Z3WQEPTC.js → chunk-6RMCSQBI.js} +23 -22
- package/dist/{chunk-M5DCBNFA.js → chunk-AQCA7HGL.js} +2 -2
- package/dist/{chunk-U5MJIHLY.js → chunk-BNOKKKUU.js} +2 -1
- package/dist/{chunk-XUAWHN6S.js → chunk-FU6XA7IT.js} +1 -1
- package/dist/{chunk-CK4MU7NI.js → chunk-GTFDJLHW.js} +1 -1
- package/dist/{chunk-TZGU32FW.js → chunk-HEXXU3V3.js} +3 -2
- package/dist/{chunk-67KYEPSA.js → chunk-L2HIQAOS.js} +1 -1
- package/dist/{chunk-TIG77LHS.js → chunk-LNBYVXJX.js} +1 -1
- package/dist/{chunk-577LTDI6.js → chunk-NGKC43E3.js} +1 -1
- package/dist/{chunk-BIIQUM77.js → chunk-O3Q2YJNR.js} +4 -4
- package/dist/{chunk-UVF5DZCD.js → chunk-P73BQ56H.js} +1 -1
- package/dist/{chunk-234XHCKP.js → chunk-QHVRUP4S.js} +1 -1
- package/dist/{chunk-HKNL5ARE.js → chunk-S2ZNHDPO.js} +2 -2
- package/dist/{chunk-R2LW5LGL.js → chunk-TDDEAQ3T.js} +36089 -1622
- package/dist/{chunk-MCK4I4JE.js → chunk-YCAPN5F6.js} +1 -1
- package/dist/{chunk-7YBDUUYJ.js → chunk-YDDD3MK5.js} +1 -1
- package/dist/{chunk-WRQ35W52.js → chunk-ZNEC7NSD.js} +1 -1
- package/dist/{collection-metadata-4Q4BECCH.js → collection-metadata-7FOQ22FA.js} +3 -1
- package/dist/{customer-group-metadata-Z6D2CEML.js → customer-group-metadata-V5S6BIXN.js} +3 -1
- package/dist/{customer-metadata-5Q6CQJ5W.js → customer-metadata-4LLZ4ZMR.js} +3 -1
- package/dist/index.js +47 -47
- package/dist/{inventory-metadata-6NCUXAF6.js → inventory-metadata-63TI6TPT.js} +3 -1
- package/dist/{location-service-zone-shipping-option-pricing-ARBOTMUQ.js → location-service-zone-shipping-option-pricing-VNBDBAEC.js} +3 -1
- package/dist/{marketplace-metadata-ZHJANDFF.js → marketplace-metadata-PSMQ7E3O.js} +3 -1
- package/dist/{order-detail-GH25X7LO.js → order-detail-QE4HBQ5W.js} +1 -1
- package/dist/{order-edit-billing-address-FL6JUBHR.js → order-edit-billing-address-7S2QIRSZ.js} +1 -1
- package/dist/{order-metadata-GB2PI4VA.js → order-metadata-UBUSPFTW.js} +3 -1
- package/dist/pages/index.d.ts +1 -1
- package/dist/pages/index.js +16 -16
- package/dist/{price-list-create-QU6R7GRC.js → price-list-create-4TDXQ7UF.js} +3 -3
- package/dist/{price-list-detail-I34YIISJ.js → price-list-detail-TUKXO5WG.js} +2 -2
- package/dist/{price-list-list-4ZY64YQB.js → price-list-list-TSK3TWUX.js} +2 -2
- package/dist/{price-list-prices-add-V5U64Y6Y.js → price-list-prices-add-VEQQYNEA.js} +3 -3
- package/dist/{price-list-prices-edit-DKCX3UBV.js → price-list-prices-edit-ANLZGAY4.js} +2 -2
- package/dist/{product-add-existing-attributes-BZMB7ADH.js → product-add-existing-attributes-3S3E3TDO.js} +2 -1
- package/dist/{product-create-I4USHEJB.js → product-create-KILMAWD7.js} +3 -3
- package/dist/{product-media-B4N3YJQX.js → product-media-QY4RFTYZ.js} +2 -2
- package/dist/{product-metadata-ECF7OSZP.js → product-metadata-TGAAEG4O.js} +3 -1
- package/dist/{product-organization-EJUK4CZC.js → product-organization-JPPQYC5E.js} +1 -1
- package/dist/{product-tag-metadata-UPNJHAHF.js → product-tag-metadata-VNH5GXMK.js} +3 -1
- package/dist/{product-type-metadata-HSIY6LBU.js → product-type-metadata-6KXQSYK5.js} +3 -1
- package/dist/{product-variant-metadata-VREI3USX.js → product-variant-metadata-4BULTZ3M.js} +3 -1
- package/dist/{promotion-create-OJIBTHTJ.js → promotion-create-5BJ4EVAI.js} +1 -1
- package/dist/{promotion-detail-2N75YHYC.js → promotion-detail-S5R5UXJ6.js} +3 -3
- package/dist/{promotion-list-UIWNGEVN.js → promotion-list-22NDDYPQ.js} +4 -4
- package/dist/{region-metadata-CCG5PYAN.js → region-metadata-EFQS2FU6.js} +3 -1
- package/dist/{reservation-metadata-JLX75BPV.js → reservation-metadata-44QNS5IN.js} +3 -1
- package/dist/{reset-password-LUAKAGJO.js → reset-password-CCHTZ4YX.js} +1 -1
- package/dist/{sales-channel-metadata-3SKXKLM4.js → sales-channel-metadata-2LJBDKYI.js} +3 -1
- package/dist/{shipping-profile-metadata-525ENKVW.js → shipping-profile-metadata-O3AG4LS4.js} +3 -1
- package/dist/{store-closure-edit-3HRLONIN.js → store-closure-edit-FXUECFDN.js} +5 -2
- package/dist/{store-edit-ECPS7KNP.js → store-edit-WIAZLSHU.js} +2 -2
- package/dist/{tax-region-create-BNC2BIYK.js → tax-region-create-2NPI4MUT.js} +1 -1
- package/dist/{tax-region-metadata-EDVNCFIM.js → tax-region-metadata-OQX67IIE.js} +3 -1
- package/dist/{tax-region-tax-override-create-G7VXNVNU.js → tax-region-tax-override-create-NRO7QCVL.js} +1 -1
- package/dist/{tax-region-tax-override-edit-NC3WIM7X.js → tax-region-tax-override-edit-POJATJRW.js} +1 -1
- package/dist/{user-metadata-U7UIEIWL.js → user-metadata-PNIWSBYP.js} +3 -1
- package/package.json +6 -6
|
@@ -49,9 +49,11 @@ import "./chunk-NBMM2TZK.js";
|
|
|
49
49
|
|
|
50
50
|
// src/pages/collections/collection-metadata/collection-metadata.tsx
|
|
51
51
|
import { useParams } from "react-router-dom";
|
|
52
|
+
import { useTranslation } from "react-i18next";
|
|
52
53
|
import { ClientError } from "@mercurjs/client";
|
|
53
54
|
import { jsx } from "react/jsx-runtime";
|
|
54
55
|
var CollectionMetadata = () => {
|
|
56
|
+
const { t } = useTranslation();
|
|
55
57
|
const { id } = useParams();
|
|
56
58
|
const { collection, isPending, isError, error } = useCollection(id);
|
|
57
59
|
const { mutateAsync, isPending: isMutating } = useUpdateCollection(id);
|
|
@@ -66,7 +68,7 @@ var CollectionMetadata = () => {
|
|
|
66
68
|
callbacks.onSuccess?.();
|
|
67
69
|
return result;
|
|
68
70
|
} catch (error2) {
|
|
69
|
-
const message = error2 instanceof ClientError ? error2.message : "
|
|
71
|
+
const message = error2 instanceof ClientError ? error2.message : t("errorBoundary.defaultTitle");
|
|
70
72
|
callbacks.onError?.(message);
|
|
71
73
|
throw error2;
|
|
72
74
|
}
|
|
@@ -50,9 +50,11 @@ import "./chunk-NBMM2TZK.js";
|
|
|
50
50
|
|
|
51
51
|
// src/pages/customer-groups/customer-group-metadata/customer-metadata.tsx
|
|
52
52
|
import { useParams } from "react-router-dom";
|
|
53
|
+
import { useTranslation } from "react-i18next";
|
|
53
54
|
import { ClientError } from "@mercurjs/client";
|
|
54
55
|
import { jsx } from "react/jsx-runtime";
|
|
55
56
|
var CustomerGroupMetadata = () => {
|
|
57
|
+
const { t } = useTranslation();
|
|
56
58
|
const { id } = useParams();
|
|
57
59
|
const { customer_group, isPending, isError, error } = useCustomerGroup(id);
|
|
58
60
|
const { mutateAsync, isPending: isMutating } = useUpdateCustomerGroup(id);
|
|
@@ -67,7 +69,7 @@ var CustomerGroupMetadata = () => {
|
|
|
67
69
|
callbacks.onSuccess?.();
|
|
68
70
|
return result;
|
|
69
71
|
} catch (error2) {
|
|
70
|
-
const message = error2 instanceof ClientError ? error2.message : "
|
|
72
|
+
const message = error2 instanceof ClientError ? error2.message : t("errorBoundary.defaultTitle");
|
|
71
73
|
callbacks.onError?.(message);
|
|
72
74
|
throw error2;
|
|
73
75
|
}
|
|
@@ -50,9 +50,11 @@ import "./chunk-NBMM2TZK.js";
|
|
|
50
50
|
|
|
51
51
|
// src/pages/customers/customer-metadata/customer-metadata.tsx
|
|
52
52
|
import { useParams } from "react-router-dom";
|
|
53
|
+
import { useTranslation } from "react-i18next";
|
|
53
54
|
import { ClientError } from "@mercurjs/client";
|
|
54
55
|
import { jsx } from "react/jsx-runtime";
|
|
55
56
|
var CustomerMetadata = () => {
|
|
57
|
+
const { t } = useTranslation();
|
|
56
58
|
const { id } = useParams();
|
|
57
59
|
const { customer, isPending, isError, error } = useCustomer(id);
|
|
58
60
|
const { mutateAsync, isPending: isMutating } = useUpdateCustomer(id);
|
|
@@ -67,7 +69,7 @@ var CustomerMetadata = () => {
|
|
|
67
69
|
callbacks.onSuccess?.();
|
|
68
70
|
return result;
|
|
69
71
|
} catch (error2) {
|
|
70
|
-
const message = error2 instanceof ClientError ? error2.message : "
|
|
72
|
+
const message = error2 instanceof ClientError ? error2.message : t("errorBoundary.defaultTitle");
|
|
71
73
|
callbacks.onError?.(message);
|
|
72
74
|
throw error2;
|
|
73
75
|
}
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-KDE4HKH2.js";
|
|
25
25
|
import {
|
|
26
26
|
I18n
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TDDEAQ3T.js";
|
|
28
28
|
import {
|
|
29
29
|
SwitchBox
|
|
30
30
|
} from "./chunk-2EME4AWX.js";
|
|
@@ -3496,7 +3496,7 @@ function getRouteMap({
|
|
|
3496
3496
|
children: [
|
|
3497
3497
|
{
|
|
3498
3498
|
path: "create",
|
|
3499
|
-
lazy: () => import("./product-create-
|
|
3499
|
+
lazy: () => import("./product-create-KILMAWD7.js")
|
|
3500
3500
|
},
|
|
3501
3501
|
{
|
|
3502
3502
|
path: "bulk-edit",
|
|
@@ -3544,7 +3544,7 @@ function getRouteMap({
|
|
|
3544
3544
|
},
|
|
3545
3545
|
{
|
|
3546
3546
|
path: "attributes/add",
|
|
3547
|
-
lazy: () => import("./product-add-existing-attributes-
|
|
3547
|
+
lazy: () => import("./product-add-existing-attributes-3S3E3TDO.js")
|
|
3548
3548
|
},
|
|
3549
3549
|
{
|
|
3550
3550
|
path: "attributes/:attribute_id/edit",
|
|
@@ -3552,7 +3552,7 @@ function getRouteMap({
|
|
|
3552
3552
|
},
|
|
3553
3553
|
{
|
|
3554
3554
|
path: "organization",
|
|
3555
|
-
lazy: () => import("./product-organization-
|
|
3555
|
+
lazy: () => import("./product-organization-JPPQYC5E.js")
|
|
3556
3556
|
},
|
|
3557
3557
|
{
|
|
3558
3558
|
path: "shipping-profile",
|
|
@@ -3560,7 +3560,7 @@ function getRouteMap({
|
|
|
3560
3560
|
},
|
|
3561
3561
|
{
|
|
3562
3562
|
path: "media",
|
|
3563
|
-
lazy: () => import("./product-media-
|
|
3563
|
+
lazy: () => import("./product-media-QY4RFTYZ.js")
|
|
3564
3564
|
},
|
|
3565
3565
|
{
|
|
3566
3566
|
path: "variants/create",
|
|
@@ -3568,7 +3568,7 @@ function getRouteMap({
|
|
|
3568
3568
|
},
|
|
3569
3569
|
{
|
|
3570
3570
|
path: "metadata/edit",
|
|
3571
|
-
lazy: () => import("./product-metadata-
|
|
3571
|
+
lazy: () => import("./product-metadata-TGAAEG4O.js")
|
|
3572
3572
|
}
|
|
3573
3573
|
]
|
|
3574
3574
|
},
|
|
@@ -3595,7 +3595,7 @@ function getRouteMap({
|
|
|
3595
3595
|
},
|
|
3596
3596
|
{
|
|
3597
3597
|
path: "metadata/edit",
|
|
3598
|
-
lazy: () => import("./product-variant-metadata-
|
|
3598
|
+
lazy: () => import("./product-variant-metadata-4BULTZ3M.js")
|
|
3599
3599
|
}
|
|
3600
3600
|
]
|
|
3601
3601
|
}
|
|
@@ -3665,7 +3665,7 @@ function getRouteMap({
|
|
|
3665
3665
|
},
|
|
3666
3666
|
{
|
|
3667
3667
|
path: "metadata/edit",
|
|
3668
|
-
lazy: () => import("./categories-metadata-
|
|
3668
|
+
lazy: () => import("./categories-metadata-EKGY5IY2.js")
|
|
3669
3669
|
}
|
|
3670
3670
|
]
|
|
3671
3671
|
}
|
|
@@ -3687,7 +3687,7 @@ function getRouteMap({
|
|
|
3687
3687
|
{
|
|
3688
3688
|
path: ":id",
|
|
3689
3689
|
lazy: async () => {
|
|
3690
|
-
const { Breadcrumb, loader } = await import("./order-detail-
|
|
3690
|
+
const { Breadcrumb, loader } = await import("./order-detail-QE4HBQ5W.js");
|
|
3691
3691
|
return {
|
|
3692
3692
|
Component: Outlet4,
|
|
3693
3693
|
loader,
|
|
@@ -3699,7 +3699,7 @@ function getRouteMap({
|
|
|
3699
3699
|
children: [
|
|
3700
3700
|
{
|
|
3701
3701
|
path: "",
|
|
3702
|
-
lazy: () => import("./order-detail-
|
|
3702
|
+
lazy: () => import("./order-detail-QE4HBQ5W.js"),
|
|
3703
3703
|
children: [
|
|
3704
3704
|
{
|
|
3705
3705
|
path: "returns",
|
|
@@ -3735,11 +3735,11 @@ function getRouteMap({
|
|
|
3735
3735
|
},
|
|
3736
3736
|
{
|
|
3737
3737
|
path: "billing-address",
|
|
3738
|
-
lazy: () => import("./order-edit-billing-address-
|
|
3738
|
+
lazy: () => import("./order-edit-billing-address-7S2QIRSZ.js")
|
|
3739
3739
|
},
|
|
3740
3740
|
{
|
|
3741
3741
|
path: "metadata/edit",
|
|
3742
|
-
lazy: () => import("./order-metadata-
|
|
3742
|
+
lazy: () => import("./order-metadata-UBUSPFTW.js")
|
|
3743
3743
|
}
|
|
3744
3744
|
]
|
|
3745
3745
|
}
|
|
@@ -3756,16 +3756,16 @@ function getRouteMap({
|
|
|
3756
3756
|
children: [
|
|
3757
3757
|
{
|
|
3758
3758
|
path: "",
|
|
3759
|
-
lazy: () => import("./promotion-list-
|
|
3759
|
+
lazy: () => import("./promotion-list-22NDDYPQ.js")
|
|
3760
3760
|
},
|
|
3761
3761
|
{
|
|
3762
3762
|
path: "create",
|
|
3763
|
-
lazy: () => import("./promotion-create-
|
|
3763
|
+
lazy: () => import("./promotion-create-5BJ4EVAI.js")
|
|
3764
3764
|
},
|
|
3765
3765
|
{
|
|
3766
3766
|
path: ":id",
|
|
3767
3767
|
lazy: async () => {
|
|
3768
|
-
const { Breadcrumb, loader } = await import("./promotion-detail-
|
|
3768
|
+
const { Breadcrumb, loader } = await import("./promotion-detail-S5R5UXJ6.js");
|
|
3769
3769
|
return {
|
|
3770
3770
|
Component: Outlet4,
|
|
3771
3771
|
loader,
|
|
@@ -3777,7 +3777,7 @@ function getRouteMap({
|
|
|
3777
3777
|
children: [
|
|
3778
3778
|
{
|
|
3779
3779
|
path: "",
|
|
3780
|
-
lazy: () => import("./promotion-detail-
|
|
3780
|
+
lazy: () => import("./promotion-detail-S5R5UXJ6.js"),
|
|
3781
3781
|
children: [
|
|
3782
3782
|
{
|
|
3783
3783
|
path: "edit",
|
|
@@ -3816,7 +3816,7 @@ function getRouteMap({
|
|
|
3816
3816
|
{
|
|
3817
3817
|
path: ":id",
|
|
3818
3818
|
lazy: async () => {
|
|
3819
|
-
const { Breadcrumb, loader } = await import("./campaign-detail-
|
|
3819
|
+
const { Breadcrumb, loader } = await import("./campaign-detail-G7DKPI5W.js");
|
|
3820
3820
|
return {
|
|
3821
3821
|
Component: Outlet4,
|
|
3822
3822
|
loader,
|
|
@@ -3828,7 +3828,7 @@ function getRouteMap({
|
|
|
3828
3828
|
children: [
|
|
3829
3829
|
{
|
|
3830
3830
|
path: "",
|
|
3831
|
-
lazy: () => import("./campaign-detail-
|
|
3831
|
+
lazy: () => import("./campaign-detail-G7DKPI5W.js"),
|
|
3832
3832
|
children: [
|
|
3833
3833
|
{
|
|
3834
3834
|
path: "edit",
|
|
@@ -3844,7 +3844,7 @@ function getRouteMap({
|
|
|
3844
3844
|
},
|
|
3845
3845
|
{
|
|
3846
3846
|
path: "add-promotions",
|
|
3847
|
-
lazy: () => import("./add-campaign-promotions-
|
|
3847
|
+
lazy: () => import("./add-campaign-promotions-KXVCLUG2.js")
|
|
3848
3848
|
}
|
|
3849
3849
|
]
|
|
3850
3850
|
}
|
|
@@ -3904,7 +3904,7 @@ function getRouteMap({
|
|
|
3904
3904
|
},
|
|
3905
3905
|
{
|
|
3906
3906
|
path: "metadata/edit",
|
|
3907
|
-
lazy: () => import("./collection-metadata-
|
|
3907
|
+
lazy: () => import("./collection-metadata-7FOQ22FA.js")
|
|
3908
3908
|
}
|
|
3909
3909
|
]
|
|
3910
3910
|
}
|
|
@@ -3921,18 +3921,18 @@ function getRouteMap({
|
|
|
3921
3921
|
children: [
|
|
3922
3922
|
{
|
|
3923
3923
|
path: "",
|
|
3924
|
-
lazy: () => import("./price-list-list-
|
|
3924
|
+
lazy: () => import("./price-list-list-TSK3TWUX.js"),
|
|
3925
3925
|
children: [
|
|
3926
3926
|
{
|
|
3927
3927
|
path: "create",
|
|
3928
|
-
lazy: () => import("./price-list-create-
|
|
3928
|
+
lazy: () => import("./price-list-create-4TDXQ7UF.js")
|
|
3929
3929
|
}
|
|
3930
3930
|
]
|
|
3931
3931
|
},
|
|
3932
3932
|
{
|
|
3933
3933
|
path: ":id",
|
|
3934
3934
|
lazy: async () => {
|
|
3935
|
-
const { Breadcrumb, loader } = await import("./price-list-detail-
|
|
3935
|
+
const { Breadcrumb, loader } = await import("./price-list-detail-TUKXO5WG.js");
|
|
3936
3936
|
return {
|
|
3937
3937
|
Component: Outlet4,
|
|
3938
3938
|
loader,
|
|
@@ -3944,7 +3944,7 @@ function getRouteMap({
|
|
|
3944
3944
|
children: [
|
|
3945
3945
|
{
|
|
3946
3946
|
path: "",
|
|
3947
|
-
lazy: () => import("./price-list-detail-
|
|
3947
|
+
lazy: () => import("./price-list-detail-TUKXO5WG.js"),
|
|
3948
3948
|
children: [
|
|
3949
3949
|
{
|
|
3950
3950
|
path: "edit",
|
|
@@ -3956,11 +3956,11 @@ function getRouteMap({
|
|
|
3956
3956
|
},
|
|
3957
3957
|
{
|
|
3958
3958
|
path: "products/add",
|
|
3959
|
-
lazy: () => import("./price-list-prices-add-
|
|
3959
|
+
lazy: () => import("./price-list-prices-add-VEQQYNEA.js")
|
|
3960
3960
|
},
|
|
3961
3961
|
{
|
|
3962
3962
|
path: "products/edit",
|
|
3963
|
-
lazy: () => import("./price-list-prices-edit-
|
|
3963
|
+
lazy: () => import("./price-list-prices-edit-ANLZGAY4.js")
|
|
3964
3964
|
}
|
|
3965
3965
|
]
|
|
3966
3966
|
}
|
|
@@ -4024,7 +4024,7 @@ function getRouteMap({
|
|
|
4024
4024
|
},
|
|
4025
4025
|
{
|
|
4026
4026
|
path: "metadata/edit",
|
|
4027
|
-
lazy: () => import("./customer-metadata-
|
|
4027
|
+
lazy: () => import("./customer-metadata-4LLZ4ZMR.js")
|
|
4028
4028
|
}
|
|
4029
4029
|
]
|
|
4030
4030
|
}
|
|
@@ -4076,7 +4076,7 @@ function getRouteMap({
|
|
|
4076
4076
|
},
|
|
4077
4077
|
{
|
|
4078
4078
|
path: "metadata/edit",
|
|
4079
|
-
lazy: () => import("./customer-group-metadata-
|
|
4079
|
+
lazy: () => import("./customer-group-metadata-V5S6BIXN.js")
|
|
4080
4080
|
}
|
|
4081
4081
|
]
|
|
4082
4082
|
}
|
|
@@ -4123,7 +4123,7 @@ function getRouteMap({
|
|
|
4123
4123
|
children: [
|
|
4124
4124
|
{
|
|
4125
4125
|
path: "edit",
|
|
4126
|
-
lazy: () => import("./store-edit-
|
|
4126
|
+
lazy: () => import("./store-edit-WIAZLSHU.js")
|
|
4127
4127
|
},
|
|
4128
4128
|
{
|
|
4129
4129
|
path: "edit-address",
|
|
@@ -4139,7 +4139,7 @@ function getRouteMap({
|
|
|
4139
4139
|
},
|
|
4140
4140
|
{
|
|
4141
4141
|
path: "store-closure",
|
|
4142
|
-
lazy: () => import("./store-closure-edit-
|
|
4142
|
+
lazy: () => import("./store-closure-edit-FXUECFDN.js")
|
|
4143
4143
|
},
|
|
4144
4144
|
{
|
|
4145
4145
|
path: "invite",
|
|
@@ -4223,7 +4223,7 @@ function getRouteMap({
|
|
|
4223
4223
|
},
|
|
4224
4224
|
{
|
|
4225
4225
|
path: "metadata/edit",
|
|
4226
|
-
lazy: () => import("./reservation-metadata-
|
|
4226
|
+
lazy: () => import("./reservation-metadata-44QNS5IN.js")
|
|
4227
4227
|
}
|
|
4228
4228
|
]
|
|
4229
4229
|
}
|
|
@@ -4341,7 +4341,7 @@ function getRouteMap({
|
|
|
4341
4341
|
},
|
|
4342
4342
|
{
|
|
4343
4343
|
path: "metadata/edit",
|
|
4344
|
-
lazy: () => import("./inventory-metadata-
|
|
4344
|
+
lazy: () => import("./inventory-metadata-63TI6TPT.js")
|
|
4345
4345
|
},
|
|
4346
4346
|
{
|
|
4347
4347
|
path: "locations",
|
|
@@ -4445,7 +4445,7 @@ function getRouteMap({
|
|
|
4445
4445
|
},
|
|
4446
4446
|
{
|
|
4447
4447
|
path: "metadata/edit",
|
|
4448
|
-
lazy: () => import("./region-metadata-
|
|
4448
|
+
lazy: () => import("./region-metadata-EFQS2FU6.js")
|
|
4449
4449
|
}
|
|
4450
4450
|
]
|
|
4451
4451
|
}
|
|
@@ -4475,7 +4475,7 @@ function getRouteMap({
|
|
|
4475
4475
|
},
|
|
4476
4476
|
{
|
|
4477
4477
|
path: "metadata/edit",
|
|
4478
|
-
lazy: () => import("./marketplace-metadata-
|
|
4478
|
+
lazy: () => import("./marketplace-metadata-PSMQ7E3O.js")
|
|
4479
4479
|
}
|
|
4480
4480
|
]
|
|
4481
4481
|
}
|
|
@@ -4574,7 +4574,7 @@ function getRouteMap({
|
|
|
4574
4574
|
},
|
|
4575
4575
|
{
|
|
4576
4576
|
path: "metadata/edit",
|
|
4577
|
-
lazy: () => import("./user-metadata-
|
|
4577
|
+
lazy: () => import("./user-metadata-PNIWSBYP.js")
|
|
4578
4578
|
}
|
|
4579
4579
|
]
|
|
4580
4580
|
}
|
|
@@ -4627,7 +4627,7 @@ function getRouteMap({
|
|
|
4627
4627
|
},
|
|
4628
4628
|
{
|
|
4629
4629
|
path: "metadata/edit",
|
|
4630
|
-
lazy: () => import("./sales-channel-metadata-
|
|
4630
|
+
lazy: () => import("./sales-channel-metadata-2LJBDKYI.js")
|
|
4631
4631
|
}
|
|
4632
4632
|
]
|
|
4633
4633
|
}
|
|
@@ -4687,7 +4687,7 @@ function getRouteMap({
|
|
|
4687
4687
|
children: [
|
|
4688
4688
|
{
|
|
4689
4689
|
path: "metadata/edit",
|
|
4690
|
-
lazy: () => import("./shipping-profile-metadata-
|
|
4690
|
+
lazy: () => import("./shipping-profile-metadata-O3AG4LS4.js")
|
|
4691
4691
|
}
|
|
4692
4692
|
]
|
|
4693
4693
|
}
|
|
@@ -4803,7 +4803,7 @@ function getRouteMap({
|
|
|
4803
4803
|
},
|
|
4804
4804
|
{
|
|
4805
4805
|
path: "pricing",
|
|
4806
|
-
lazy: () => import("./location-service-zone-shipping-option-pricing-
|
|
4806
|
+
lazy: () => import("./location-service-zone-shipping-option-pricing-VNBDBAEC.js")
|
|
4807
4807
|
}
|
|
4808
4808
|
]
|
|
4809
4809
|
}
|
|
@@ -4860,7 +4860,7 @@ function getRouteMap({
|
|
|
4860
4860
|
},
|
|
4861
4861
|
{
|
|
4862
4862
|
path: "metadata/edit",
|
|
4863
|
-
lazy: () => import("./product-tag-metadata-
|
|
4863
|
+
lazy: () => import("./product-tag-metadata-VNH5GXMK.js")
|
|
4864
4864
|
}
|
|
4865
4865
|
]
|
|
4866
4866
|
}
|
|
@@ -4966,7 +4966,7 @@ function getRouteMap({
|
|
|
4966
4966
|
},
|
|
4967
4967
|
{
|
|
4968
4968
|
path: "metadata/edit",
|
|
4969
|
-
lazy: () => import("./product-type-metadata-
|
|
4969
|
+
lazy: () => import("./product-type-metadata-6KXQSYK5.js")
|
|
4970
4970
|
}
|
|
4971
4971
|
]
|
|
4972
4972
|
}
|
|
@@ -5091,7 +5091,7 @@ function getRouteMap({
|
|
|
5091
5091
|
children: [
|
|
5092
5092
|
{
|
|
5093
5093
|
path: "create",
|
|
5094
|
-
lazy: () => import("./tax-region-create-
|
|
5094
|
+
lazy: () => import("./tax-region-create-2NPI4MUT.js")
|
|
5095
5095
|
}
|
|
5096
5096
|
]
|
|
5097
5097
|
},
|
|
@@ -5122,11 +5122,11 @@ function getRouteMap({
|
|
|
5122
5122
|
},
|
|
5123
5123
|
{
|
|
5124
5124
|
path: "overrides/create",
|
|
5125
|
-
lazy: () => import("./tax-region-tax-override-create-
|
|
5125
|
+
lazy: () => import("./tax-region-tax-override-create-NRO7QCVL.js")
|
|
5126
5126
|
},
|
|
5127
5127
|
{
|
|
5128
5128
|
path: "overrides/:tax_rate_id/edit",
|
|
5129
|
-
lazy: () => import("./tax-region-tax-override-edit-
|
|
5129
|
+
lazy: () => import("./tax-region-tax-override-edit-POJATJRW.js")
|
|
5130
5130
|
},
|
|
5131
5131
|
{
|
|
5132
5132
|
path: "tax-rates/create",
|
|
@@ -5138,7 +5138,7 @@ function getRouteMap({
|
|
|
5138
5138
|
},
|
|
5139
5139
|
{
|
|
5140
5140
|
path: "metadata/edit",
|
|
5141
|
-
lazy: () => import("./tax-region-metadata-
|
|
5141
|
+
lazy: () => import("./tax-region-metadata-OQX67IIE.js")
|
|
5142
5142
|
}
|
|
5143
5143
|
]
|
|
5144
5144
|
},
|
|
@@ -5169,11 +5169,11 @@ function getRouteMap({
|
|
|
5169
5169
|
},
|
|
5170
5170
|
{
|
|
5171
5171
|
path: "overrides/create",
|
|
5172
|
-
lazy: () => import("./tax-region-tax-override-create-
|
|
5172
|
+
lazy: () => import("./tax-region-tax-override-create-NRO7QCVL.js")
|
|
5173
5173
|
},
|
|
5174
5174
|
{
|
|
5175
5175
|
path: "overrides/:tax_rate_id/edit",
|
|
5176
|
-
lazy: () => import("./tax-region-tax-override-edit-
|
|
5176
|
+
lazy: () => import("./tax-region-tax-override-edit-POJATJRW.js")
|
|
5177
5177
|
}
|
|
5178
5178
|
]
|
|
5179
5179
|
}
|
|
@@ -5257,7 +5257,7 @@ function getRouteMap({
|
|
|
5257
5257
|
},
|
|
5258
5258
|
{
|
|
5259
5259
|
path: "/reset-password",
|
|
5260
|
-
lazy: () => import("./reset-password-
|
|
5260
|
+
lazy: () => import("./reset-password-CCHTZ4YX.js")
|
|
5261
5261
|
},
|
|
5262
5262
|
{
|
|
5263
5263
|
path: "/invite",
|
|
@@ -52,9 +52,11 @@ import "./chunk-NBMM2TZK.js";
|
|
|
52
52
|
|
|
53
53
|
// src/pages/inventory/inventory-metadata/inventory-metadata.tsx
|
|
54
54
|
import { useParams } from "react-router-dom";
|
|
55
|
+
import { useTranslation } from "react-i18next";
|
|
55
56
|
import { ClientError } from "@mercurjs/client";
|
|
56
57
|
import { jsx } from "react/jsx-runtime";
|
|
57
58
|
var InventoryItemMetadata = () => {
|
|
59
|
+
const { t } = useTranslation();
|
|
58
60
|
const { id } = useParams();
|
|
59
61
|
const { inventory_item, isPending, isError, error } = useInventoryItem(id);
|
|
60
62
|
const { mutateAsync, isPending: isMutating } = useUpdateInventoryItem(id);
|
|
@@ -69,7 +71,7 @@ var InventoryItemMetadata = () => {
|
|
|
69
71
|
callbacks.onSuccess?.();
|
|
70
72
|
return result;
|
|
71
73
|
} catch (error2) {
|
|
72
|
-
const message = error2 instanceof ClientError ? error2.message : "
|
|
74
|
+
const message = error2 instanceof ClientError ? error2.message : t("errorBoundary.defaultTitle");
|
|
73
75
|
callbacks.onError?.(message);
|
|
74
76
|
throw error2;
|
|
75
77
|
}
|
|
@@ -52,6 +52,7 @@ import "./chunk-JTAECZCT.js";
|
|
|
52
52
|
import "./chunk-NBMM2TZK.js";
|
|
53
53
|
|
|
54
54
|
// src/pages/locations/location-service-zone-shipping-option-pricing/location-service-zone-shipping-option-pricing.tsx
|
|
55
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
55
56
|
import { useParams } from "react-router-dom";
|
|
56
57
|
|
|
57
58
|
// src/pages/locations/location-service-zone-shipping-option-pricing/components/create-shipping-options-form/edit-shipping-options-pricing-form.tsx
|
|
@@ -339,10 +340,11 @@ var getDefaultValues = (prices) => {
|
|
|
339
340
|
// src/pages/locations/location-service-zone-shipping-option-pricing/location-service-zone-shipping-option-pricing.tsx
|
|
340
341
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
341
342
|
function LocationServiceZoneShippingOptionPricing() {
|
|
343
|
+
const { t } = useTranslation2();
|
|
342
344
|
const { so_id, location_id } = useParams();
|
|
343
345
|
if (!so_id) {
|
|
344
346
|
throw new Response(
|
|
345
|
-
JSON.stringify({ message: "
|
|
347
|
+
JSON.stringify({ message: t("validation.shippingOptionIdMissing") }),
|
|
346
348
|
{ status: 404, headers: { "Content-Type": "application/json" } }
|
|
347
349
|
);
|
|
348
350
|
}
|
|
@@ -51,9 +51,11 @@ import "./chunk-JTAECZCT.js";
|
|
|
51
51
|
import "./chunk-NBMM2TZK.js";
|
|
52
52
|
|
|
53
53
|
// src/pages/marketplace/marketplace-metadata/marketplace-metadata.tsx
|
|
54
|
+
import { useTranslation } from "react-i18next";
|
|
54
55
|
import { ClientError } from "@mercurjs/client";
|
|
55
56
|
import { jsx } from "react/jsx-runtime";
|
|
56
57
|
var MarketplaceMetadata = () => {
|
|
58
|
+
const { t } = useTranslation();
|
|
57
59
|
const { store, isPending, isError, error } = useStore();
|
|
58
60
|
const { mutateAsync, isPending: isMutating } = useUpdateStore(store?.id ?? "");
|
|
59
61
|
if (isError) {
|
|
@@ -71,7 +73,7 @@ var MarketplaceMetadata = () => {
|
|
|
71
73
|
callbacks.onSuccess?.();
|
|
72
74
|
return result;
|
|
73
75
|
} catch (error2) {
|
|
74
|
-
const message = error2 instanceof ClientError ? error2.message : "
|
|
76
|
+
const message = error2 instanceof ClientError ? error2.message : t("errorBoundary.defaultTitle");
|
|
75
77
|
callbacks.onError?.(message);
|
|
76
78
|
throw error2;
|
|
77
79
|
}
|
|
@@ -49,9 +49,11 @@ import "./chunk-NBMM2TZK.js";
|
|
|
49
49
|
|
|
50
50
|
// src/pages/orders/order-metadata/order-metadata.tsx
|
|
51
51
|
import { useParams } from "react-router-dom";
|
|
52
|
+
import { useTranslation } from "react-i18next";
|
|
52
53
|
import { ClientError } from "@mercurjs/client";
|
|
53
54
|
import { jsx } from "react/jsx-runtime";
|
|
54
55
|
var OrderMetadata = () => {
|
|
56
|
+
const { t } = useTranslation();
|
|
55
57
|
const { id } = useParams();
|
|
56
58
|
const { order, isPending, isError, error } = useOrder(id, {
|
|
57
59
|
fields: "id,metadata"
|
|
@@ -68,7 +70,7 @@ var OrderMetadata = () => {
|
|
|
68
70
|
callbacks.onSuccess?.();
|
|
69
71
|
return result;
|
|
70
72
|
} catch (error2) {
|
|
71
|
-
const message = error2 instanceof ClientError ? error2.message : "
|
|
73
|
+
const message = error2 instanceof ClientError ? error2.message : t("errorBoundary.defaultTitle");
|
|
72
74
|
callbacks.onError?.(message);
|
|
73
75
|
throw error2;
|
|
74
76
|
}
|
package/dist/pages/index.d.ts
CHANGED