@mercurjs/admin 2.0.0-canary.34 → 2.0.0-canary.35
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-UVEH25GZ.js → add-campaign-promotions-ZUXBF5G3.js} +10 -10
- package/dist/{adjust-inventory-6Q53EEFB.js → adjust-inventory-HZCWL6SC.js} +10 -10
- package/dist/api-key-management-detail-SKJNAZ5L.js +87 -0
- package/dist/api-key-management-list-2D4WKI6Y.js +33 -0
- package/dist/{campaign-create-2IIU3WTS.js → campaign-create-B7XM2FZM.js} +4 -4
- package/dist/campaign-detail-7U4CQHU5.js +105 -0
- package/dist/campaign-list-SC7FLTRM.js +31 -0
- package/dist/{categories-metadata-G7JDGW6O.js → categories-metadata-LPSJNCME.js} +12 -12
- package/dist/category-detail-HGHR3R2R.js +105 -0
- package/dist/category-list-QBBFGHQM.js +32 -0
- package/dist/{category-products-FH4RIZKA.js → category-products-XLCG2JR7.js} +14 -14
- package/dist/{chunk-36WVODFU.js → chunk-23663A2W.js} +1 -1
- package/dist/chunk-2IGCU3KP.js +170 -0
- package/dist/chunk-33FUPXJL.js +102 -0
- package/dist/{chunk-O5HZRJPB.js → chunk-3B6MTW5G.js} +9 -0
- package/dist/{shipping-profiles-list-FUW4FXLC.js → chunk-3H74EI2D.js} +11 -19
- package/dist/{shipping-profile-detail-WHKHB2OQ.js → chunk-3IYIS5UZ.js} +15 -61
- package/dist/{return-reason-list-MRYG7ZK7.js → chunk-3SAH3NUS.js} +12 -80
- package/dist/chunk-4GVHNYZR.js +294 -0
- package/dist/chunk-4WYBW3HK.js +209 -0
- package/dist/chunk-5GG65TKV.js +335 -0
- package/dist/{customer-group-detail-CPONLZRF.js → chunk-5VEYNZSW.js} +33 -119
- package/dist/{customer-group-list-V2CGT3FT.js → chunk-62ZRA6BZ.js} +2 -37
- package/dist/{category-list-YPRENMVF.js → chunk-66IHH2HG.js} +105 -89
- package/dist/chunk-6L2LSIPR.js +223 -0
- package/dist/{region-list-PGWUOULN.js → chunk-6PNMR6XP.js} +18 -32
- package/dist/{product-type-list-T5KO5J3W.js → chunk-7COSFMM7.js} +17 -30
- package/dist/{api-key-management-detail-RQW5RC5F.js → chunk-7TLEUIAL.js} +22 -80
- package/dist/{product-tag-list-I6M6TAYM.js → chunk-A2KURGQO.js} +16 -131
- package/dist/{chunk-GFZ7GOEU.js → chunk-A6Z2Q7D5.js} +2 -2
- package/dist/{customer-detail-YS265DZS.js → chunk-AOVEX4EM.js} +74 -158
- package/dist/{inventory-detail-42GK24BA.js → chunk-AOVJTW7M.js} +130 -196
- package/dist/{payout-list-GE7E637R.js → chunk-BHID7W3U.js} +12 -22
- package/dist/{price-list-list-VFHHTBLR.js → chunk-CR4E2DCR.js} +98 -78
- package/dist/{chunk-UZVYM65V.js → chunk-D44T5KAE.js} +6 -6
- package/dist/{chunk-BFCAJKRG.js → chunk-DBYUB2YI.js} +28 -56
- package/dist/{user-detail-Q7ST2YKP.js → chunk-DK3U2SRA.js} +17 -62
- package/dist/{refund-reason-list-ECQKWA2M.js → chunk-DP5U3GQU.js} +54 -105
- package/dist/chunk-E2AAYIHS.js +250 -0
- package/dist/{commission-rate-detail-ANI37QHI.js → chunk-EDQBUWY7.js} +46 -106
- package/dist/{region-detail-DIEFHHOM.js → chunk-ENMRRG4N.js} +48 -94
- package/dist/{chunk-UZJ2NQSN.js → chunk-FRRQW7BG.js} +4 -4
- package/dist/{order-detail-V2O5C4CX.js → chunk-FXU7SL6M.js} +413 -423
- package/dist/{product-type-detail-JI4DF7WR.js → chunk-FYB5MS4F.js} +29 -110
- package/dist/{chunk-QNGHZSK3.js → chunk-G644AXKV.js} +1 -1
- package/dist/chunk-GJTIHFXG.js +115 -0
- package/dist/{sales-channel-list-2ZUNUM2T.js → chunk-HHNJNKCB.js} +16 -54
- package/dist/{campaign-list-EAGDQZO3.js → chunk-HZKW7HRU.js} +14 -32
- package/dist/chunk-IXGP2EEN.js +425 -0
- package/dist/{profile-detail-AWZ4EZ6R.js → chunk-J7SR4GW5.js} +10 -15
- package/dist/{product-variant-detail-DXTUM4R7.js → chunk-JA2XIIIZ.js} +96 -178
- package/dist/{price-list-detail-324FZRK5.js → chunk-JRWB7VWP.js} +59 -130
- package/dist/{category-detail-2U65E3CX.js → chunk-KUDLPUWR.js} +70 -146
- package/dist/{collection-detail-Y4GGSHXX.js → chunk-KXPCEVFB.js} +44 -121
- package/dist/{location-list-KVFFPEIV.js → chunk-KYUXTS2L.js} +61 -86
- package/dist/{chunk-M3I52H3M.js → chunk-LU72QEQC.js} +4 -4
- package/dist/{location-detail-XO4RRCAU.js → chunk-LYT3RI4O.js} +90 -155
- package/dist/chunk-NOWUEJ74.js +44 -0
- package/dist/{product-detail-3UWUMNHC.js → chunk-NQPAEBSZ.js} +145 -195
- package/dist/{api-key-management-list-VYQ4AVSX.js → chunk-O6O22BN4.js} +9 -29
- package/dist/{tax-region-province-detail-PB7RFWJ4.js → chunk-OFRQZHVQ.js} +15 -99
- package/dist/{reservation-detail-J4M2EXRY.js → chunk-OSHCUDYY.js} +27 -93
- package/dist/{campaign-detail-4DO3S5UZ.js → chunk-Q6XCCONH.js} +118 -193
- package/dist/{payout-detail-PRYOQSGQ.js → chunk-QBOXELB5.js} +7 -41
- package/dist/chunk-QD6KYDYH.js +169 -0
- package/dist/{commission-rate-list-FCQ3HXC7.js → chunk-QP6XXG6A.js} +11 -20
- package/dist/{promotion-list-SJYMXQXT.js → chunk-RIMR3ULR.js} +14 -51
- package/dist/{shipping-option-type-list-4A7FT4P5.js → chunk-SFG7JTBH.js} +14 -51
- package/dist/{sales-channel-detail-RMU5QW3N.js → chunk-T25UE7SS.js} +39 -120
- package/dist/{tax-region-detail-L3EB6JSF.js → chunk-TE5VQBCL.js} +19 -60
- package/dist/{reservation-list-X33SIPG3.js → chunk-TKGZBTOS.js} +11 -20
- package/dist/{chunk-LQSLDDPT.js → chunk-TZSOL34K.js} +40 -1
- package/dist/{chunk-F5PEK3DA.js → chunk-U3SFHLUA.js} +1 -1
- package/dist/{chunk-IZ5RG5XI.js → chunk-UXD3VNBO.js} +1 -20
- package/dist/{chunk-XE6KSRKQ.js → chunk-V2DXJ75C.js} +1 -1
- package/dist/{marketplace-detail-OVWHCK5W.js → chunk-VBAAYYCS.js} +114 -172
- package/dist/{chunk-5POS4GBN.js → chunk-WZADCDDE.js} +4 -4
- package/dist/{chunk-HOZHWCST.js → chunk-XDVS4B7W.js} +1 -1
- package/dist/{promotion-detail-IO7V5CXR.js → chunk-XVKRTPVM.js} +147 -162
- package/dist/{inventory-list-UJNDJFJS.js → chunk-YH4VQBAA.js} +11 -19
- package/dist/{collection-add-products-RLTEE27D.js → collection-add-products-IQ7M63BA.js} +13 -13
- package/dist/collection-detail-YJ3FV2C6.js +96 -0
- package/dist/collection-list-WDQOBHQN.js +78 -0
- package/dist/{collection-metadata-CQWEZ4EQ.js → collection-metadata-UZ3VN625.js} +10 -10
- package/dist/{commission-rate-create-YK6GCP2R.js → commission-rate-create-VC72GTV4.js} +34 -34
- package/dist/commission-rate-detail-UQDIIMIK.js +82 -0
- package/dist/{commission-rate-edit-5MPI53CE.js → commission-rate-edit-AXJKJNFY.js} +34 -34
- package/dist/commission-rate-list-WTDZLKUR.js +27 -0
- package/dist/customer-detail-N7CS4IJU.js +106 -0
- package/dist/{customer-group-add-customers-FTRCJHE7.js → customer-group-add-customers-LCNDTLXR.js} +6 -6
- package/dist/customer-group-detail-UCTY4FF7.js +105 -0
- package/dist/customer-group-list-XOQ64CVR.js +48 -0
- package/dist/{customer-group-metadata-BITZXXFX.js → customer-group-metadata-FMAZBXIK.js} +11 -11
- package/dist/customer-list-BUUO6OF7.js +32 -0
- package/dist/{customer-metadata-6DDHIGDD.js → customer-metadata-7GW4JRZR.js} +11 -11
- package/dist/{customers-add-customer-group-SD3KK6JE.js → customers-add-customer-group-BKEV24N2.js} +15 -15
- package/dist/{edit-inventory-item-5PZZ3IAH.js → edit-inventory-item-RECBP7OX.js} +7 -7
- package/dist/{edit-inventory-item-attributes-7PJQCUXL.js → edit-inventory-item-attributes-2P3BMQJ5.js} +8 -8
- package/dist/{edit-rules-E2564ZQB.js → edit-rules-DPHJ7PQQ.js} +9 -9
- package/dist/index.d.ts +5 -0
- package/dist/index.js +564 -757
- package/dist/{inventory-create-LYXHQR7Y.js → inventory-create-QLEIHESO.js} +20 -20
- package/dist/inventory-detail-BJT5WEV5.js +106 -0
- package/dist/inventory-list-3LWBPWVK.js +29 -0
- package/dist/{inventory-metadata-OLR5ZMMN.js → inventory-metadata-ZNHZQEMX.js} +11 -11
- package/dist/{inventory-stock-ZOM2ANKJ.js → inventory-stock-G3GP4FZX.js} +17 -17
- package/dist/location-detail-N7J6PEAP.js +99 -0
- package/dist/{location-fulfillment-providers-6T27UNF7.js → location-fulfillment-providers-BHCY2MYC.js} +18 -18
- package/dist/location-list-UG6B47NP.js +52 -0
- package/dist/{location-service-zone-create-IYKQNCNO.js → location-service-zone-create-AIVG7HTM.js} +8 -8
- package/dist/{location-service-zone-manage-areas-L7BQTR7S.js → location-service-zone-manage-areas-EZSV25CP.js} +10 -10
- package/dist/{location-service-zone-shipping-option-create-PSPX634E.js → location-service-zone-shipping-option-create-GYPW6SSN.js} +18 -18
- package/dist/{location-service-zone-shipping-option-pricing-HC7Z4BVU.js → location-service-zone-shipping-option-pricing-7VMPXDWX.js} +8 -8
- package/dist/{login-U5WERLJC.js → login-2HSCF4ZB.js} +16 -10
- package/dist/{marketplace-add-currencies-XQPZT237.js → marketplace-add-currencies-CIGOPBO6.js} +7 -7
- package/dist/marketplace-detail-7KJMXXAJ.js +74 -0
- package/dist/{marketplace-metadata-GIYATM54.js → marketplace-metadata-PHZ4PUWM.js} +11 -11
- package/dist/{order-create-claim-UWNZUBL7.js → order-create-claim-7WW6MXTT.js} +34 -34
- package/dist/{order-create-edit-JD4UZ5GW.js → order-create-edit-KAH6ZPLX.js} +20 -20
- package/dist/{order-create-exchange-OTIDP47E.js → order-create-exchange-ELLWF3IY.js} +31 -31
- package/dist/{order-create-fulfillment-7OP64TNJ.js → order-create-fulfillment-E3J7ILOJ.js} +13 -13
- package/dist/{order-create-refund-U4UK5IZB.js → order-create-refund-5QZBOSCA.js} +13 -13
- package/dist/{order-create-return-LH4LW5BZ.js → order-create-return-L6DEDPJK.js} +17 -17
- package/dist/{order-create-shipment-URYCUNU6.js → order-create-shipment-NBQ226NM.js} +7 -7
- package/dist/order-detail-C25NQSZN.js +122 -0
- package/dist/{order-edit-billing-address-XRUEKX33.js → order-edit-billing-address-NVRMPZEU.js} +14 -14
- package/dist/{order-edit-email-CJ3MEZB6.js → order-edit-email-5FA7X52X.js} +7 -7
- package/dist/{order-edit-shipping-address-SV4UVNBQ.js → order-edit-shipping-address-BPU7OL2N.js} +11 -11
- package/dist/order-list-7NH7LROU.js +48 -0
- package/dist/{order-metadata-HIOSALZT.js → order-metadata-47FUKENZ.js} +10 -10
- package/dist/{order-receive-return-4SRRRBW6.js → order-receive-return-FW5QZJBM.js} +8 -8
- package/dist/{order-request-transfer-5AGKGFVY.js → order-request-transfer-WD327YGL.js} +7 -7
- package/dist/pages/index.d.ts +638 -0
- package/dist/pages/index.js +359 -0
- package/dist/payout-detail-MDD5SRK5.js +51 -0
- package/dist/payout-list-XY2A5KYS.js +28 -0
- package/dist/{price-list-configuration-GK4MA3BE.js → price-list-configuration-XK3IZLLX.js} +8 -8
- package/dist/{price-list-create-3NNWUS6L.js → price-list-create-OK7YYLAB.js} +22 -22
- package/dist/price-list-detail-IGFSM77P.js +102 -0
- package/dist/price-list-list-TBXQ5DOS.js +35 -0
- package/dist/{price-list-prices-add-IBSLTMNK.js → price-list-prices-add-7PGUONDK.js} +18 -18
- package/dist/{price-list-prices-edit-AAVPX34P.js → price-list-prices-edit-QVGBT6AI.js} +14 -14
- package/dist/{product-create-C4GHUEM5.js → product-create-NVBKO426.js} +218 -383
- package/dist/{product-create-variant-5MVBT5ST.js → product-create-variant-CJPECBV4.js} +68 -230
- package/dist/product-detail-ZC37BGPC.js +100 -0
- package/dist/{product-export-XTS7P5AD.js → product-export-ULTY2SNJ.js} +14 -14
- package/dist/{product-import-ZEZE2JE6.js → product-import-Q2CPHVNJ.js} +10 -10
- package/dist/product-list-635ZXM2D.js +85 -0
- package/dist/{product-media-Z2DCRZSU.js → product-media-ZMDAVPGI.js} +4 -4
- package/dist/{product-metadata-NBB5SRDN.js → product-metadata-36JNWKCJ.js} +10 -10
- package/dist/{product-stock-ZXNZZBJI.js → product-stock-HF42WRSC.js} +18 -18
- package/dist/{product-tag-create-LL35OFZM.js → product-tag-create-VCRDLR27.js} +7 -7
- package/dist/product-tag-detail-OJLYO3Q5.js +135 -0
- package/dist/{product-tag-edit-6XBZCCED.js → product-tag-edit-BYE7UP54.js} +7 -7
- package/dist/product-tag-list-XFHGJBRF.js +129 -0
- package/dist/{product-tag-metadata-UGO4RUFU.js → product-tag-metadata-ADHNZA2H.js} +10 -10
- package/dist/product-type-detail-J4UA4AEM.js +97 -0
- package/dist/product-type-list-H5EQHCXS.js +34 -0
- package/dist/{product-type-metadata-ZKOZNZE3.js → product-type-metadata-UY22KDAN.js} +10 -10
- package/dist/product-variant-detail-5WKYURFA.js +111 -0
- package/dist/{product-variant-edit-KGLW5GXD.js → product-variant-edit-66ZUIIMP.js} +10 -10
- package/dist/{product-variant-metadata-H7J7SZNU.js → product-variant-metadata-7N5F7DM5.js} +10 -10
- package/dist/profile-detail-EYNXOHGZ.js +17 -0
- package/dist/{promotion-add-campaign-OEMV62HF.js → promotion-add-campaign-B5SF72KC.js} +4 -4
- package/dist/{promotion-create-P2WR5RPH.js → promotion-create-D77SANLX.js} +17 -17
- package/dist/promotion-detail-MVFOMS4E.js +87 -0
- package/dist/promotion-list-IN4VWEQN.js +57 -0
- package/dist/{refund-reason-create-PTHFUT2D.js → refund-reason-create-BHI5XXZC.js} +7 -7
- package/dist/{refund-reason-edit-WEEQQGYO.js → refund-reason-edit-UWWYC4OB.js} +7 -7
- package/dist/refund-reason-list-DJZZC7KK.js +101 -0
- package/dist/{region-add-countries-GVOTB5YX.js → region-add-countries-YOGU74UR.js} +9 -9
- package/dist/{region-create-3BCYTIDB.js → region-create-UMJK3VGL.js} +14 -14
- package/dist/region-detail-OFZHX57G.js +73 -0
- package/dist/region-list-L4FKHVJJ.js +34 -0
- package/dist/{region-metadata-IYIHJCTK.js → region-metadata-JLHWQGTC.js} +11 -11
- package/dist/reservation-detail-LZYEM5NW.js +82 -0
- package/dist/reservation-list-OGPDB7WG.js +30 -0
- package/dist/{reservation-metadata-MMHE4TPO.js → reservation-metadata-WB42HSMD.js} +11 -11
- package/dist/{reset-password-WNANNJDX.js → reset-password-Q7Y4FWRE.js} +2 -2
- package/dist/return-reason-list-6ICMSVKF.js +80 -0
- package/dist/{sales-channel-add-products-GP7TMMKB.js → sales-channel-add-products-EOWFSO35.js} +14 -14
- package/dist/sales-channel-detail-RRJG7U7R.js +97 -0
- package/dist/sales-channel-list-LUZ4ZXCY.js +50 -0
- package/dist/{sales-channel-metadata-QF5KEN7C.js → sales-channel-metadata-5CLXRNQF.js} +12 -12
- package/dist/{seller-details-EUCYPH4Z.js → seller-details-KROISMQC.js} +48 -48
- package/dist/seller-list-664H4SI5.js +79 -0
- package/dist/{shipping-option-type-create-KBQMPNIW.js → shipping-option-type-create-42URKECR.js} +7 -7
- package/dist/shipping-option-type-detail-2RY3NHRO.js +81 -0
- package/dist/{shipping-option-type-edit-S3R6JBFV.js → shipping-option-type-edit-VLFV2AR4.js} +7 -7
- package/dist/shipping-option-type-list-IOSOE33S.js +59 -0
- package/dist/shipping-profile-detail-RIIAX7VE.js +56 -0
- package/dist/{shipping-profile-metadata-BJFUYS5L.js → shipping-profile-metadata-7WDHFEEH.js} +10 -10
- package/dist/shipping-profiles-list-AL4EJSJY.js +26 -0
- package/dist/{tax-region-create-KTFZNQCZ.js → tax-region-create-UOTLTCOP.js} +14 -14
- package/dist/tax-region-detail-CA2W5W6A.js +67 -0
- package/dist/{tax-region-edit-H2ORQVEW.js → tax-region-edit-7O2Z3EYC.js} +7 -7
- package/dist/tax-region-list-JTZ7KZCX.js +26 -0
- package/dist/{tax-region-metadata-2PYZ5ECB.js → tax-region-metadata-VQ57FSEM.js} +11 -11
- package/dist/tax-region-province-detail-ZHLX4FF4.js +98 -0
- package/dist/{tax-region-tax-override-create-IDGG732M.js → tax-region-tax-override-create-WIWUNXW6.js} +31 -31
- package/dist/{tax-region-tax-override-edit-NSBZBBZA.js → tax-region-tax-override-edit-SWROFQTP.js} +31 -31
- package/dist/user-detail-YNPBC5MN.js +54 -0
- package/dist/{user-invite-ATAF42EH.js → user-invite-OT73USBI.js} +10 -10
- package/dist/user-list-LNTZNT3D.js +27 -0
- package/dist/{user-metadata-QFVK2VJX.js → user-metadata-ZGTN4FRU.js} +11 -11
- package/package.json +1 -1
- package/dist/chunk-RW35OPIA.js +0 -45
- package/dist/collection-list-WUPG6AU2.js +0 -233
- package/dist/customer-list-DYQHKNJV.js +0 -153
- package/dist/order-list-ASHM44MM.js +0 -317
- package/dist/product-list-7WK2AWI2.js +0 -323
- package/dist/product-tag-detail-E7VYBISE.js +0 -288
- package/dist/seller-list-W76S2T27.js +0 -237
- package/dist/shipping-option-type-detail-CFGKF7NV.js +0 -173
- package/dist/tax-region-list-D7HWEZUR.js +0 -92
- package/dist/user-list-S6BMNMKL.js +0 -342
- package/dist/{api-key-management-sales-channels-RDE5YSYK.js → api-key-management-sales-channels-C7EWPHC2.js} +9 -9
- package/dist/{campaign-budget-edit-722ECPRI.js → campaign-budget-edit-AIXCDGG3.js} +3 -3
- package/dist/{category-create-VSH7BLNC.js → category-create-UWBJGIED.js} +7 -7
- package/dist/{category-edit-CCHWEQER.js → category-edit-ZDTTOXKZ.js} +3 -3
- package/dist/{chunk-JISYRXUS.js → chunk-B44E3LJT.js} +7 -7
- package/dist/{chunk-L22DLGNI.js → chunk-DEKJJ7NG.js} +3 -3
- package/dist/{chunk-2PZGY332.js → chunk-LQAAVRET.js} +3 -3
- package/dist/{chunk-GEVYE225.js → chunk-RA4UMZRP.js} +3 -3
- package/dist/{chunk-NIRWGTM3.js → chunk-RV6NZTNP.js} +3 -3
- package/dist/{chunk-SXC5ZMLI.js → chunk-TKEAOWBZ.js} +24 -24
- package/dist/{chunk-FLCYR7E5.js → chunk-ULJ3OMWU.js} +3 -3
- package/dist/{chunk-XDEVXAGC.js → chunk-VBBBIEVH.js} +3 -3
- package/dist/{chunk-FMOQNZFZ.js → chunk-YMKZS2HK.js} +12 -12
- package/dist/{customer-create-address-2LLOW6NZ.js → customer-create-address-GKWNPTZS.js} +1 -1
- package/dist/{customer-edit-F5UBFJIZ.js → customer-edit-WDRZ6YUO.js} +3 -3
- package/dist/{edit-reservation-SAKSTZTE.js → edit-reservation-7UOWKFMF.js} +3 -3
- package/dist/{invite-CSXH7VAO.js → invite-AXGDIENO.js} +1 -1
- package/dist/{location-create-HHOJPTDK.js → location-create-FQT3BJGV.js} +1 -1
- package/dist/{location-edit-2NAOR4DV.js → location-edit-RTPPP4KP.js} +1 -1
- package/dist/{location-sales-channels-BJUJNBQQ.js → location-sales-channels-3IGHCJEN.js} +9 -9
- package/dist/{location-service-zone-shipping-option-edit-SSMGORBF.js → location-service-zone-shipping-option-edit-E3GN4ZF5.js} +3 -3
- package/dist/{marketplace-edit-WPOSY2WN.js → marketplace-edit-GH2GQF3O.js} +3 -3
- package/dist/{order-allocate-items-DLVOSAC2.js → order-allocate-items-VEEANPH7.js} +3 -3
- package/dist/{price-list-edit-UU2XBKT3.js → price-list-edit-KK7SHR7O.js} +3 -3
- package/dist/{product-attributes-HNF4J53T.js → product-attributes-NG4OSBIV.js} +1 -1
- package/dist/{product-edit-6EL6US22.js → product-edit-LQJDUUVX.js} +4 -4
- package/dist/{product-organization-NWS3NMD6.js → product-organization-AFCELJ62.js} +1 -1
- package/dist/{product-prices-V63CFHI3.js → product-prices-WMRIC7WM.js} +7 -7
- package/dist/{product-sales-channels-WU3MSCV5.js → product-sales-channels-LSN5DVWZ.js} +5 -5
- package/dist/{product-variant-manage-inventory-items-C77QHYRT.js → product-variant-manage-inventory-items-CV2CC2PV.js} +3 -3
- package/dist/{profile-edit-3GIVUYUM.js → profile-edit-4HXBRWJ5.js} +6 -6
- package/dist/{promotion-edit-details-7Y2A5PPJ.js → promotion-edit-details-YKS24GBD.js} +6 -6
- package/dist/{region-edit-7XER3THY.js → region-edit-ODVSNJHM.js} +5 -5
- package/dist/{tax-region-province-create-7BMYABJ6.js → tax-region-province-create-RFYCUDER.js} +3 -3
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
getPriceListStatus
|
|
6
6
|
} from "./chunk-U5MJIHLY.js";
|
|
7
|
-
import "./chunk-6IJMSVC6.js";
|
|
8
7
|
import {
|
|
9
8
|
TextCell,
|
|
10
9
|
TextHeader
|
|
@@ -12,61 +11,75 @@ import {
|
|
|
12
11
|
import {
|
|
13
12
|
StatusCell
|
|
14
13
|
} from "./chunk-DB6ANJBO.js";
|
|
15
|
-
import "./chunk-FQERBIVS.js";
|
|
16
|
-
import "./chunk-PHOCVOZ5.js";
|
|
17
14
|
import {
|
|
18
15
|
_DataTable,
|
|
19
16
|
useDataTable
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-YBZWO4ZV.js";
|
|
22
|
-
import "./chunk-KAZ5BYTQ.js";
|
|
23
|
-
import "./chunk-3EF54XFY.js";
|
|
24
|
-
import "./chunk-SMQT3ZNO.js";
|
|
25
|
-
import "./chunk-KBYZLKI4.js";
|
|
26
|
-
import "./chunk-YWWUOGJA.js";
|
|
17
|
+
} from "./chunk-ULJ3OMWU.js";
|
|
27
18
|
import {
|
|
28
19
|
SingleColumnPage
|
|
29
20
|
} from "./chunk-U2UCL2VG.js";
|
|
30
|
-
import "./chunk-INNFZYX2.js";
|
|
31
21
|
import {
|
|
32
22
|
ActionMenu
|
|
33
23
|
} from "./chunk-BDGZ4EQO.js";
|
|
34
|
-
import "./chunk-LAVHRER2.js";
|
|
35
|
-
import "./chunk-Y7QKP6QU.js";
|
|
36
24
|
import {
|
|
37
25
|
useQueryParams
|
|
38
26
|
} from "./chunk-THHRRYRS.js";
|
|
39
|
-
import "./chunk-UZWFZMOX.js";
|
|
40
|
-
import "./chunk-XQNVC4Q7.js";
|
|
41
27
|
import {
|
|
42
28
|
usePriceLists
|
|
43
29
|
} from "./chunk-V534K7G4.js";
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
import "
|
|
47
|
-
import "./chunk-ZA2KFUFR.js";
|
|
48
|
-
import "./chunk-ZYNBKBY3.js";
|
|
49
|
-
import "./chunk-NBMM2TZK.js";
|
|
30
|
+
|
|
31
|
+
// src/pages/price-lists/price-list-list/price-list-list.tsx
|
|
32
|
+
import { Children as Children3 } from "react";
|
|
50
33
|
|
|
51
34
|
// src/pages/price-lists/price-list-list/components/price-list-list-table/price-list-list-table.tsx
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
|
|
35
|
+
import { Children as Children2 } from "react";
|
|
36
|
+
import { Container } from "@medusajs/ui";
|
|
37
|
+
|
|
38
|
+
// src/pages/price-lists/price-list-list/components/price-list-list-table/price-list-list-header.tsx
|
|
39
|
+
import { Children } from "react";
|
|
40
|
+
import { Button, Heading, Text } from "@medusajs/ui";
|
|
41
|
+
import { useTranslation } from "react-i18next";
|
|
55
42
|
import { Link } from "react-router-dom";
|
|
43
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
44
|
+
var PriceListListTitle = () => {
|
|
45
|
+
const { t } = useTranslation();
|
|
46
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
47
|
+
/* @__PURE__ */ jsx(Heading, { children: t("priceLists.domain") }),
|
|
48
|
+
/* @__PURE__ */ jsx(Text, { className: "text-ui-fg-subtle", size: "small", children: t("priceLists.subtitle") })
|
|
49
|
+
] });
|
|
50
|
+
};
|
|
51
|
+
var PriceListListActions = ({
|
|
52
|
+
children
|
|
53
|
+
}) => {
|
|
54
|
+
const { t } = useTranslation();
|
|
55
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx(Link, { to: "create", children: t("actions.create") }) }) });
|
|
56
|
+
};
|
|
57
|
+
var PriceListListHeader = ({
|
|
58
|
+
children
|
|
59
|
+
}) => {
|
|
60
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between px-6 py-4", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
61
|
+
/* @__PURE__ */ jsx(PriceListListTitle, {}),
|
|
62
|
+
/* @__PURE__ */ jsx(PriceListListActions, {})
|
|
63
|
+
] }) });
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// src/pages/price-lists/price-list-list/components/price-list-list-table/price-list-list-data-table.tsx
|
|
67
|
+
import { keepPreviousData } from "@tanstack/react-query";
|
|
68
|
+
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
56
69
|
|
|
57
70
|
// src/pages/price-lists/price-list-list/components/price-list-list-table/use-pricing-table-columns.tsx
|
|
58
71
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
59
72
|
import { useMemo } from "react";
|
|
60
|
-
import { useTranslation as
|
|
73
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
61
74
|
|
|
62
75
|
// src/pages/price-lists/price-list-list/components/price-list-list-table/price-list-list-table-actions.tsx
|
|
63
76
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
64
|
-
import { useTranslation } from "react-i18next";
|
|
65
|
-
import { jsx } from "react/jsx-runtime";
|
|
77
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
78
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
66
79
|
var PriceListListTableActions = ({ priceList }) => {
|
|
67
|
-
const { t } =
|
|
80
|
+
const { t } = useTranslation2();
|
|
68
81
|
const handleDelete = useDeletePriceListAction({ priceList, navigateOnSuccess: false });
|
|
69
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ jsx2(
|
|
70
83
|
ActionMenu,
|
|
71
84
|
{
|
|
72
85
|
groups: [
|
|
@@ -75,7 +88,7 @@ var PriceListListTableActions = ({ priceList }) => {
|
|
|
75
88
|
{
|
|
76
89
|
label: t("actions.edit"),
|
|
77
90
|
to: `${priceList.id}/edit`,
|
|
78
|
-
icon: /* @__PURE__ */
|
|
91
|
+
icon: /* @__PURE__ */ jsx2(PencilSquare, {})
|
|
79
92
|
}
|
|
80
93
|
]
|
|
81
94
|
},
|
|
@@ -84,7 +97,7 @@ var PriceListListTableActions = ({ priceList }) => {
|
|
|
84
97
|
{
|
|
85
98
|
label: t("actions.delete"),
|
|
86
99
|
onClick: handleDelete,
|
|
87
|
-
icon: /* @__PURE__ */
|
|
100
|
+
icon: /* @__PURE__ */ jsx2(Trash, {})
|
|
88
101
|
}
|
|
89
102
|
]
|
|
90
103
|
}
|
|
@@ -94,30 +107,30 @@ var PriceListListTableActions = ({ priceList }) => {
|
|
|
94
107
|
};
|
|
95
108
|
|
|
96
109
|
// src/pages/price-lists/price-list-list/components/price-list-list-table/use-pricing-table-columns.tsx
|
|
97
|
-
import { jsx as
|
|
110
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
98
111
|
var columnHelper = createColumnHelper();
|
|
99
112
|
var usePricingTableColumns = () => {
|
|
100
|
-
const { t } =
|
|
113
|
+
const { t } = useTranslation3();
|
|
101
114
|
return useMemo(
|
|
102
115
|
() => [
|
|
103
116
|
columnHelper.accessor("title", {
|
|
104
|
-
header: () => /* @__PURE__ */
|
|
117
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("fields.title") }),
|
|
105
118
|
cell: (info) => info.getValue()
|
|
106
119
|
}),
|
|
107
120
|
columnHelper.accessor("status", {
|
|
108
121
|
header: t("priceLists.fields.status.label"),
|
|
109
122
|
cell: ({ row }) => {
|
|
110
123
|
const { color, text } = getPriceListStatus(t, row.original);
|
|
111
|
-
return /* @__PURE__ */
|
|
124
|
+
return /* @__PURE__ */ jsx3(StatusCell, { color, children: text });
|
|
112
125
|
}
|
|
113
126
|
}),
|
|
114
127
|
columnHelper.accessor("prices", {
|
|
115
128
|
header: t("priceLists.fields.priceOverrides.header"),
|
|
116
|
-
cell: (info) => /* @__PURE__ */
|
|
129
|
+
cell: (info) => /* @__PURE__ */ jsx3(TextCell, { text: `${info.getValue()?.length || "-"}` })
|
|
117
130
|
}),
|
|
118
131
|
columnHelper.display({
|
|
119
132
|
id: "actions",
|
|
120
|
-
cell: ({ row }) => /* @__PURE__ */
|
|
133
|
+
cell: ({ row }) => /* @__PURE__ */ jsx3(PriceListListTableActions, { priceList: row.original })
|
|
121
134
|
})
|
|
122
135
|
],
|
|
123
136
|
[t]
|
|
@@ -125,9 +138,9 @@ var usePricingTableColumns = () => {
|
|
|
125
138
|
};
|
|
126
139
|
|
|
127
140
|
// src/pages/price-lists/price-list-list/components/price-list-list-table/use-pricing-table-filters.tsx
|
|
128
|
-
import { useTranslation as
|
|
141
|
+
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
129
142
|
var usePricingTableFilters = () => {
|
|
130
|
-
const { t } =
|
|
143
|
+
const { t } = useTranslation4();
|
|
131
144
|
const filters = [
|
|
132
145
|
{ label: t("fields.createdAt"), key: "starts_at", type: "date" },
|
|
133
146
|
{ label: t("fields.updatedAt"), key: "ends_at", type: "date" }
|
|
@@ -159,11 +172,11 @@ var usePricingTableQuery = ({
|
|
|
159
172
|
};
|
|
160
173
|
};
|
|
161
174
|
|
|
162
|
-
// src/pages/price-lists/price-list-list/components/price-list-list-table/price-list-list-table.tsx
|
|
163
|
-
import { jsx as
|
|
175
|
+
// src/pages/price-lists/price-list-list/components/price-list-list-table/price-list-list-data-table.tsx
|
|
176
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
164
177
|
var PAGE_SIZE = 20;
|
|
165
|
-
var
|
|
166
|
-
const { t } =
|
|
178
|
+
var PriceListListDataTable = () => {
|
|
179
|
+
const { t } = useTranslation5();
|
|
167
180
|
const { searchParams, raw } = usePricingTableQuery({
|
|
168
181
|
pageSize: PAGE_SIZE
|
|
169
182
|
});
|
|
@@ -186,44 +199,51 @@ var PriceListListTable = () => {
|
|
|
186
199
|
if (isError) {
|
|
187
200
|
throw error;
|
|
188
201
|
}
|
|
189
|
-
return /* @__PURE__ */
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
] });
|
|
202
|
+
return /* @__PURE__ */ jsx4(
|
|
203
|
+
_DataTable,
|
|
204
|
+
{
|
|
205
|
+
table,
|
|
206
|
+
columns,
|
|
207
|
+
count,
|
|
208
|
+
filters,
|
|
209
|
+
orderBy: [
|
|
210
|
+
{ key: "title", label: t("fields.title") },
|
|
211
|
+
{ key: "status", label: t("fields.status") },
|
|
212
|
+
{ key: "created_at", label: t("fields.createdAt") },
|
|
213
|
+
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
214
|
+
],
|
|
215
|
+
queryObject: raw,
|
|
216
|
+
pageSize: PAGE_SIZE,
|
|
217
|
+
navigateTo: (row) => row.original.id,
|
|
218
|
+
isLoading,
|
|
219
|
+
pagination: true,
|
|
220
|
+
search: true
|
|
221
|
+
}
|
|
222
|
+
);
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
// src/pages/price-lists/price-list-list/components/price-list-list-table/price-list-list-table.tsx
|
|
226
|
+
import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
227
|
+
var PriceListListTable = ({ children }) => {
|
|
228
|
+
return /* @__PURE__ */ jsx5(Container, { className: "divide-y p-0", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
229
|
+
/* @__PURE__ */ jsx5(PriceListListHeader, {}),
|
|
230
|
+
/* @__PURE__ */ jsx5(PriceListListDataTable, {})
|
|
231
|
+
] }) });
|
|
220
232
|
};
|
|
221
233
|
|
|
222
234
|
// src/pages/price-lists/price-list-list/price-list-list.tsx
|
|
223
|
-
import { jsx as
|
|
224
|
-
var
|
|
225
|
-
return /* @__PURE__ */
|
|
235
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
236
|
+
var Root = ({ children }) => {
|
|
237
|
+
return /* @__PURE__ */ jsx6(SingleColumnPage, { children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx6(PriceListListTable, {}) });
|
|
226
238
|
};
|
|
239
|
+
var PriceListList = Object.assign(Root, {
|
|
240
|
+
Table: PriceListListTable,
|
|
241
|
+
Header: PriceListListHeader,
|
|
242
|
+
HeaderTitle: PriceListListTitle,
|
|
243
|
+
HeaderActions: PriceListListActions,
|
|
244
|
+
DataTable: PriceListListDataTable
|
|
245
|
+
});
|
|
246
|
+
|
|
227
247
|
export {
|
|
228
|
-
PriceListList
|
|
248
|
+
PriceListList
|
|
229
249
|
};
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
TaxRateRuleReferenceType
|
|
6
6
|
} from "./chunk-LTBX54CI.js";
|
|
7
|
-
import {
|
|
8
|
-
getFormattedShippingOptionLocationName
|
|
9
|
-
} from "./chunk-HC25LNX7.js";
|
|
10
7
|
import {
|
|
11
8
|
DateCell
|
|
12
9
|
} from "./chunk-25LYVP3C.js";
|
|
10
|
+
import {
|
|
11
|
+
getFormattedShippingOptionLocationName
|
|
12
|
+
} from "./chunk-HC25LNX7.js";
|
|
13
13
|
import {
|
|
14
14
|
TextCell
|
|
15
15
|
} from "./chunk-JHIMVLB2.js";
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
_DataTable,
|
|
21
21
|
useDataTable
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ULJ3OMWU.js";
|
|
23
23
|
import {
|
|
24
24
|
useShippingOptionTableFilters
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YMKZS2HK.js";
|
|
26
26
|
import {
|
|
27
27
|
useProductTypeTableFilters
|
|
28
28
|
} from "./chunk-2ZFELO2L.js";
|
|
29
29
|
import {
|
|
30
30
|
useShippingOptionTableQuery
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TKEAOWBZ.js";
|
|
32
32
|
import {
|
|
33
33
|
useProductTypeTableQuery
|
|
34
34
|
} from "./chunk-VOHEQ7B5.js";
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
DisplayIdCell,
|
|
3
|
+
DisplayIdHeader,
|
|
4
|
+
TotalCell,
|
|
5
|
+
TotalHeader
|
|
6
|
+
} from "./chunk-NOWUEJ74.js";
|
|
4
7
|
import {
|
|
5
8
|
FulfillmentStatusCell,
|
|
6
9
|
FulfillmentStatusHeader,
|
|
7
10
|
PaymentStatusCell,
|
|
8
11
|
PaymentStatusHeader
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TZSOL34K.js";
|
|
10
13
|
import {
|
|
11
14
|
DateCell,
|
|
12
15
|
DateHeader
|
|
@@ -63,116 +66,85 @@ var CustomerHeader = () => {
|
|
|
63
66
|
return /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx2("span", { className: "truncate", children: t("fields.customer") }) });
|
|
64
67
|
};
|
|
65
68
|
|
|
66
|
-
// src/components/table/table-cells/order/display-id-cell/display-id-cell.tsx
|
|
67
|
-
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
68
|
-
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
69
|
-
var DisplayIdCell = ({ displayId }) => {
|
|
70
|
-
if (!displayId) {
|
|
71
|
-
return /* @__PURE__ */ jsx3(PlaceholderCell, {});
|
|
72
|
-
}
|
|
73
|
-
return /* @__PURE__ */ jsx3("div", { className: "text-ui-fg-subtle txt-compact-small flex h-full w-full items-center overflow-hidden", children: /* @__PURE__ */ jsxs("span", { className: "truncate", children: [
|
|
74
|
-
"#",
|
|
75
|
-
displayId
|
|
76
|
-
] }) });
|
|
77
|
-
};
|
|
78
|
-
var DisplayIdHeader = () => {
|
|
79
|
-
const { t } = useTranslation2();
|
|
80
|
-
return /* @__PURE__ */ jsx3("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx3("span", { className: "truncate", children: t("fields.order") }) });
|
|
81
|
-
};
|
|
82
|
-
|
|
83
69
|
// src/components/table/table-cells/order/sales-channel-cell/sales-channel-cell.tsx
|
|
84
|
-
import { useTranslation as
|
|
85
|
-
import { jsx as
|
|
70
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
71
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
86
72
|
var SalesChannelCell = ({
|
|
87
73
|
channel
|
|
88
74
|
}) => {
|
|
89
75
|
if (!channel) {
|
|
90
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ jsx3("span", { className: "text-ui-fg-muted", children: "-" });
|
|
91
77
|
}
|
|
92
78
|
const { name } = channel;
|
|
93
|
-
return /* @__PURE__ */
|
|
79
|
+
return /* @__PURE__ */ jsx3("div", { className: "flex h-full w-full items-center overflow-hidden", children: /* @__PURE__ */ jsx3("span", { className: "truncate", children: name }) });
|
|
94
80
|
};
|
|
95
81
|
var SalesChannelHeader = () => {
|
|
96
|
-
const { t } =
|
|
97
|
-
return /* @__PURE__ */
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// src/components/table/table-cells/order/total-cell/total-cell.tsx
|
|
101
|
-
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
102
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
103
|
-
var TotalCell = ({ currencyCode, total, className }) => {
|
|
104
|
-
if (!total) {
|
|
105
|
-
return /* @__PURE__ */ jsx5(PlaceholderCell, {});
|
|
106
|
-
}
|
|
107
|
-
return /* @__PURE__ */ jsx5(MoneyAmountCell, { currencyCode, amount: total, className, align: "right" });
|
|
108
|
-
};
|
|
109
|
-
var TotalHeader = () => {
|
|
110
|
-
const { t } = useTranslation4();
|
|
111
|
-
return /* @__PURE__ */ jsx5("div", { className: "flex h-full w-full items-center justify-end", children: /* @__PURE__ */ jsx5("span", { className: "truncate", children: t("fields.total") }) });
|
|
82
|
+
const { t } = useTranslation2();
|
|
83
|
+
return /* @__PURE__ */ jsx3("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx3("span", { className: "truncate", children: t("fields.salesChannel") }) });
|
|
112
84
|
};
|
|
113
85
|
|
|
114
86
|
// src/hooks/table/columns/use-order-table-columns.tsx
|
|
115
|
-
import { jsx as
|
|
87
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
116
88
|
var columnHelper = createColumnHelper();
|
|
117
89
|
var useOrderTableColumns = (props) => {
|
|
118
90
|
const { exclude = [] } = props ?? {};
|
|
119
91
|
const columns = useMemo(
|
|
120
92
|
() => [
|
|
121
93
|
columnHelper.accessor("display_id", {
|
|
122
|
-
header: () => /* @__PURE__ */
|
|
94
|
+
header: () => /* @__PURE__ */ jsx4(DisplayIdHeader, {}),
|
|
123
95
|
cell: ({ getValue }) => {
|
|
124
96
|
const id = getValue();
|
|
125
|
-
return /* @__PURE__ */
|
|
97
|
+
return /* @__PURE__ */ jsx4(DisplayIdCell, { displayId: id });
|
|
126
98
|
}
|
|
127
99
|
}),
|
|
128
100
|
columnHelper.accessor("created_at", {
|
|
129
|
-
header: () => /* @__PURE__ */
|
|
101
|
+
header: () => /* @__PURE__ */ jsx4(DateHeader, {}),
|
|
130
102
|
cell: ({ getValue }) => {
|
|
131
103
|
const date = new Date(getValue());
|
|
132
|
-
return /* @__PURE__ */
|
|
104
|
+
return /* @__PURE__ */ jsx4(DateCell, { date });
|
|
133
105
|
}
|
|
134
106
|
}),
|
|
135
107
|
columnHelper.accessor("customer", {
|
|
136
|
-
header: () => /* @__PURE__ */
|
|
108
|
+
header: () => /* @__PURE__ */ jsx4(CustomerHeader, {}),
|
|
137
109
|
cell: ({ getValue }) => {
|
|
138
110
|
const customer = getValue();
|
|
139
|
-
return /* @__PURE__ */
|
|
111
|
+
return /* @__PURE__ */ jsx4(CustomerCell, { customer });
|
|
140
112
|
}
|
|
141
113
|
}),
|
|
142
114
|
columnHelper.accessor("sales_channel", {
|
|
143
|
-
header: () => /* @__PURE__ */
|
|
115
|
+
header: () => /* @__PURE__ */ jsx4(SalesChannelHeader, {}),
|
|
144
116
|
cell: ({ getValue }) => {
|
|
145
117
|
const channel = getValue();
|
|
146
|
-
return /* @__PURE__ */
|
|
118
|
+
return /* @__PURE__ */ jsx4(SalesChannelCell, { channel });
|
|
147
119
|
}
|
|
148
120
|
}),
|
|
149
121
|
columnHelper.accessor("payment_status", {
|
|
150
|
-
header: () => /* @__PURE__ */
|
|
122
|
+
header: () => /* @__PURE__ */ jsx4(PaymentStatusHeader, {}),
|
|
151
123
|
cell: ({ getValue }) => {
|
|
152
124
|
const status = getValue();
|
|
153
|
-
return /* @__PURE__ */
|
|
125
|
+
return /* @__PURE__ */ jsx4(PaymentStatusCell, { status });
|
|
154
126
|
}
|
|
155
127
|
}),
|
|
156
128
|
columnHelper.accessor("fulfillment_status", {
|
|
157
|
-
header: () => /* @__PURE__ */
|
|
129
|
+
header: () => /* @__PURE__ */ jsx4(FulfillmentStatusHeader, {}),
|
|
158
130
|
cell: ({ getValue }) => {
|
|
159
131
|
const status = getValue();
|
|
160
|
-
return /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ jsx4(FulfillmentStatusCell, { status });
|
|
161
133
|
}
|
|
162
134
|
}),
|
|
163
135
|
columnHelper.accessor("total", {
|
|
164
|
-
header: () => /* @__PURE__ */
|
|
136
|
+
header: () => /* @__PURE__ */ jsx4(TotalHeader, {}),
|
|
165
137
|
cell: ({ getValue, row }) => {
|
|
166
138
|
const total = getValue();
|
|
167
139
|
const currencyCode = row.original.currency_code;
|
|
168
|
-
return /* @__PURE__ */
|
|
140
|
+
return /* @__PURE__ */ jsx4(TotalCell, { currencyCode, total });
|
|
169
141
|
}
|
|
170
142
|
}),
|
|
171
143
|
columnHelper.display({
|
|
172
144
|
id: "actions",
|
|
173
145
|
cell: ({ row }) => {
|
|
174
146
|
const country = row.original.shipping_address?.country;
|
|
175
|
-
return /* @__PURE__ */
|
|
147
|
+
return /* @__PURE__ */ jsx4(CountryCell, { country });
|
|
176
148
|
}
|
|
177
149
|
})
|
|
178
150
|
],
|
|
@@ -7,52 +7,13 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
ActionMenu
|
|
9
9
|
} from "./chunk-BDGZ4EQO.js";
|
|
10
|
-
import "./chunk-LAVHRER2.js";
|
|
11
|
-
import "./chunk-Y7QKP6QU.js";
|
|
12
10
|
import {
|
|
13
11
|
useDeleteUser,
|
|
14
12
|
useUser
|
|
15
13
|
} from "./chunk-NNZP4PYP.js";
|
|
16
|
-
import {
|
|
17
|
-
productsQueryKeys
|
|
18
|
-
} from "./chunk-K357FGGP.js";
|
|
19
|
-
import {
|
|
20
|
-
queryClient
|
|
21
|
-
} from "./chunk-RHKRREUU.js";
|
|
22
|
-
import "./chunk-ZA2KFUFR.js";
|
|
23
|
-
import {
|
|
24
|
-
sdk
|
|
25
|
-
} from "./chunk-ZYNBKBY3.js";
|
|
26
|
-
import "./chunk-NBMM2TZK.js";
|
|
27
|
-
|
|
28
|
-
// src/pages/users/user-detail/breadcrumb.tsx
|
|
29
|
-
import { jsx } from "react/jsx-runtime";
|
|
30
|
-
var UserDetailBreadcrumb = (props) => {
|
|
31
|
-
const { id } = props.params || {};
|
|
32
|
-
const { user } = useUser(id, void 0, {
|
|
33
|
-
initialData: props.data,
|
|
34
|
-
enabled: Boolean(id)
|
|
35
|
-
});
|
|
36
|
-
if (!user) {
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
const name = [user.first_name, user.last_name].filter(Boolean).join(" ");
|
|
40
|
-
const display = name || user.email;
|
|
41
|
-
return /* @__PURE__ */ jsx("span", { children: display });
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
// src/pages/users/user-detail/loader.ts
|
|
45
|
-
var userDetailQuery = (id) => ({
|
|
46
|
-
queryKey: productsQueryKeys.detail(id),
|
|
47
|
-
queryFn: async () => sdk.admin.users.$id.query({ $id: id })
|
|
48
|
-
});
|
|
49
|
-
var userLoader = async ({ params }) => {
|
|
50
|
-
const id = params.id;
|
|
51
|
-
const query = userDetailQuery(id);
|
|
52
|
-
return queryClient.ensureQueryData(query);
|
|
53
|
-
};
|
|
54
14
|
|
|
55
15
|
// src/pages/users/user-detail/user-detail.tsx
|
|
16
|
+
import { Children } from "react";
|
|
56
17
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
57
18
|
|
|
58
19
|
// src/pages/users/user-detail/components/user-general-section/user-general-section.tsx
|
|
@@ -60,7 +21,7 @@ import { PencilSquare, Trash } from "@medusajs/icons";
|
|
|
60
21
|
import { Container, Heading, Text, toast, usePrompt } from "@medusajs/ui";
|
|
61
22
|
import { useTranslation } from "react-i18next";
|
|
62
23
|
import { useNavigate } from "react-router-dom";
|
|
63
|
-
import { jsx
|
|
24
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
64
25
|
var UserGeneralSection = ({ user }) => {
|
|
65
26
|
const { t } = useTranslation();
|
|
66
27
|
const navigate = useNavigate();
|
|
@@ -93,8 +54,8 @@ var UserGeneralSection = ({ user }) => {
|
|
|
93
54
|
};
|
|
94
55
|
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", "data-testid": "user-general-section-container", children: [
|
|
95
56
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "user-general-section-header", children: [
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ jsx(Heading, { "data-testid": "user-general-section-email", children: user.email }),
|
|
58
|
+
/* @__PURE__ */ jsx(
|
|
98
59
|
ActionMenu,
|
|
99
60
|
{
|
|
100
61
|
groups: [
|
|
@@ -103,7 +64,7 @@ var UserGeneralSection = ({ user }) => {
|
|
|
103
64
|
{
|
|
104
65
|
label: t("actions.edit"),
|
|
105
66
|
to: "edit",
|
|
106
|
-
icon: /* @__PURE__ */
|
|
67
|
+
icon: /* @__PURE__ */ jsx(PencilSquare, {})
|
|
107
68
|
}
|
|
108
69
|
]
|
|
109
70
|
},
|
|
@@ -112,7 +73,7 @@ var UserGeneralSection = ({ user }) => {
|
|
|
112
73
|
{
|
|
113
74
|
label: t("actions.delete"),
|
|
114
75
|
onClick: handleDeleteUser,
|
|
115
|
-
icon: /* @__PURE__ */
|
|
76
|
+
icon: /* @__PURE__ */ jsx(Trash, {})
|
|
116
77
|
}
|
|
117
78
|
]
|
|
118
79
|
}
|
|
@@ -122,15 +83,15 @@ var UserGeneralSection = ({ user }) => {
|
|
|
122
83
|
)
|
|
123
84
|
] }),
|
|
124
85
|
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "user-general-section-name", children: [
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "user-general-section-name-label", children: t("fields.name") }),
|
|
87
|
+
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", "data-testid": "user-general-section-name-value", children: name ?? "-" })
|
|
127
88
|
] })
|
|
128
89
|
] });
|
|
129
90
|
};
|
|
130
91
|
|
|
131
92
|
// src/pages/users/user-detail/user-detail.tsx
|
|
132
|
-
import { jsx as
|
|
133
|
-
var
|
|
93
|
+
import { Fragment, jsx as jsx2 } from "react/jsx-runtime";
|
|
94
|
+
var Root = ({ children }) => {
|
|
134
95
|
const initialData = useLoaderData();
|
|
135
96
|
const { id } = useParams();
|
|
136
97
|
const {
|
|
@@ -142,23 +103,17 @@ var UserDetail = () => {
|
|
|
142
103
|
initialData
|
|
143
104
|
});
|
|
144
105
|
if (isLoading || !user) {
|
|
145
|
-
return /* @__PURE__ */
|
|
106
|
+
return /* @__PURE__ */ jsx2(SingleColumnPageSkeleton, { sections: 1, showJSON: true, showMetadata: true });
|
|
146
107
|
}
|
|
147
108
|
if (isError) {
|
|
148
109
|
throw error;
|
|
149
110
|
}
|
|
150
|
-
return /* @__PURE__ */
|
|
151
|
-
SingleColumnPage,
|
|
152
|
-
{
|
|
153
|
-
data: user,
|
|
154
|
-
showJSON: true,
|
|
155
|
-
showMetadata: true,
|
|
156
|
-
children: /* @__PURE__ */ jsx3(UserGeneralSection, { user })
|
|
157
|
-
}
|
|
158
|
-
);
|
|
111
|
+
return /* @__PURE__ */ jsx2(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(SingleColumnPage, { data: user, showJSON: true, showMetadata: true, children: /* @__PURE__ */ jsx2(UserGeneralSection, { user }) }) });
|
|
159
112
|
};
|
|
113
|
+
var UserDetail = Object.assign(Root, {
|
|
114
|
+
GeneralSection: UserGeneralSection
|
|
115
|
+
});
|
|
116
|
+
|
|
160
117
|
export {
|
|
161
|
-
|
|
162
|
-
UserDetail as Component,
|
|
163
|
-
userLoader as loader
|
|
118
|
+
UserDetail
|
|
164
119
|
};
|