@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
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useProductTableColumns
|
|
3
|
-
} from "./chunk-3CKTAFTR.js";
|
|
4
|
-
import "./chunk-G5OVX555.js";
|
|
5
|
-
import "./chunk-FWPGOIFA.js";
|
|
6
|
-
import "./chunk-DB6ANJBO.js";
|
|
7
|
-
import "./chunk-FQERBIVS.js";
|
|
8
|
-
import "./chunk-PHOCVOZ5.js";
|
|
9
|
-
import {
|
|
10
|
-
_DataTable,
|
|
11
|
-
useDataTable
|
|
12
|
-
} from "./chunk-FLCYR7E5.js";
|
|
13
|
-
import "./chunk-YBZWO4ZV.js";
|
|
14
|
-
import "./chunk-KAZ5BYTQ.js";
|
|
15
|
-
import "./chunk-3EF54XFY.js";
|
|
16
|
-
import "./chunk-WIYFXWRI.js";
|
|
17
|
-
import {
|
|
18
|
-
useProductTableFilters
|
|
19
|
-
} from "./chunk-FBUH5OLD.js";
|
|
20
|
-
import {
|
|
21
|
-
useProductTableQuery
|
|
22
|
-
} from "./chunk-VVWB3GIK.js";
|
|
23
|
-
import "./chunk-KBYZLKI4.js";
|
|
24
|
-
import "./chunk-YWWUOGJA.js";
|
|
25
|
-
import {
|
|
26
|
-
SingleColumnPage
|
|
27
|
-
} from "./chunk-U2UCL2VG.js";
|
|
28
|
-
import "./chunk-INNFZYX2.js";
|
|
29
|
-
import {
|
|
30
|
-
ActionMenu
|
|
31
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
32
|
-
import "./chunk-LAVHRER2.js";
|
|
33
|
-
import "./chunk-Y7QKP6QU.js";
|
|
34
|
-
import "./chunk-THHRRYRS.js";
|
|
35
|
-
import "./chunk-UZWFZMOX.js";
|
|
36
|
-
import "./chunk-XQNVC4Q7.js";
|
|
37
|
-
import "./chunk-XM6GCWNF.js";
|
|
38
|
-
import "./chunk-ODBDAABQ.js";
|
|
39
|
-
import "./chunk-CDQJKJMX.js";
|
|
40
|
-
import "./chunk-JLATVDLM.js";
|
|
41
|
-
import "./chunk-GPRBBA7S.js";
|
|
42
|
-
import "./chunk-E7ZBQO6E.js";
|
|
43
|
-
import "./chunk-XGHM75N2.js";
|
|
44
|
-
import "./chunk-U2GCSKW3.js";
|
|
45
|
-
import "./chunk-RTAIDSDS.js";
|
|
46
|
-
import "./chunk-LW3UWYZU.js";
|
|
47
|
-
import "./chunk-A4X5VP3G.js";
|
|
48
|
-
import "./chunk-NNZP4PYP.js";
|
|
49
|
-
import "./chunk-GF4QHVX3.js";
|
|
50
|
-
import "./chunk-JOQ3RTF5.js";
|
|
51
|
-
import "./chunk-V534K7G4.js";
|
|
52
|
-
import "./chunk-A5XOYSDC.js";
|
|
53
|
-
import "./chunk-TQI3DOQ5.js";
|
|
54
|
-
import "./chunk-5PB7KCTF.js";
|
|
55
|
-
import "./chunk-YOIARITB.js";
|
|
56
|
-
import "./chunk-W7G64ULL.js";
|
|
57
|
-
import "./chunk-6C7TCU42.js";
|
|
58
|
-
import "./chunk-4YF3GAKE.js";
|
|
59
|
-
import "./chunk-M3I52H3M.js";
|
|
60
|
-
import "./chunk-LORVU5II.js";
|
|
61
|
-
import "./chunk-36ORDF7W.js";
|
|
62
|
-
import "./chunk-QSM56ZOP.js";
|
|
63
|
-
import "./chunk-MIHEJ6Y6.js";
|
|
64
|
-
import "./chunk-3VZV6SJQ.js";
|
|
65
|
-
import {
|
|
66
|
-
productsQueryKeys,
|
|
67
|
-
useDeleteProduct,
|
|
68
|
-
useProducts
|
|
69
|
-
} from "./chunk-K357FGGP.js";
|
|
70
|
-
import {
|
|
71
|
-
queryClient
|
|
72
|
-
} from "./chunk-RHKRREUU.js";
|
|
73
|
-
import "./chunk-ZA2KFUFR.js";
|
|
74
|
-
import {
|
|
75
|
-
sdk
|
|
76
|
-
} from "./chunk-ZYNBKBY3.js";
|
|
77
|
-
import "./chunk-NBMM2TZK.js";
|
|
78
|
-
|
|
79
|
-
// src/pages/products/product-list/loader.ts
|
|
80
|
-
var productsListQuery = () => ({
|
|
81
|
-
queryKey: productsQueryKeys.list({
|
|
82
|
-
limit: 20,
|
|
83
|
-
offset: 0,
|
|
84
|
-
is_giftcard: false
|
|
85
|
-
}),
|
|
86
|
-
queryFn: async () => sdk.admin.products.query({ limit: 20, offset: 0, is_giftcard: false })
|
|
87
|
-
});
|
|
88
|
-
var productsLoader = (client) => {
|
|
89
|
-
return async () => {
|
|
90
|
-
const query = productsListQuery();
|
|
91
|
-
return queryClient.getQueryData(query.queryKey) ?? await client.fetchQuery(query);
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
// src/pages/products/product-list/components/product-list-table/product-list-table.tsx
|
|
96
|
-
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
97
|
-
import { Button, Container, Heading, toast, usePrompt } from "@medusajs/ui";
|
|
98
|
-
import { keepPreviousData } from "@tanstack/react-query";
|
|
99
|
-
import { createColumnHelper } from "@tanstack/react-table";
|
|
100
|
-
import { useMemo } from "react";
|
|
101
|
-
import { useTranslation } from "react-i18next";
|
|
102
|
-
import { Link, Outlet, useLoaderData, useLocation } from "react-router-dom";
|
|
103
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
104
|
-
var PAGE_SIZE = 20;
|
|
105
|
-
var ProductListTable = () => {
|
|
106
|
-
const { t } = useTranslation();
|
|
107
|
-
const location = useLocation();
|
|
108
|
-
const initialData = useLoaderData();
|
|
109
|
-
const { searchParams, raw } = useProductTableQuery({ pageSize: PAGE_SIZE });
|
|
110
|
-
const { products, count, isLoading, isError, error } = useProducts(
|
|
111
|
-
{
|
|
112
|
-
...searchParams,
|
|
113
|
-
is_giftcard: false
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
initialData,
|
|
117
|
-
placeholderData: keepPreviousData
|
|
118
|
-
}
|
|
119
|
-
);
|
|
120
|
-
const filters = useProductTableFilters();
|
|
121
|
-
const columns = useColumns();
|
|
122
|
-
const { table } = useDataTable({
|
|
123
|
-
data: products ?? [],
|
|
124
|
-
columns,
|
|
125
|
-
count,
|
|
126
|
-
enablePagination: true,
|
|
127
|
-
pageSize: PAGE_SIZE,
|
|
128
|
-
getRowId: (row) => row.id
|
|
129
|
-
});
|
|
130
|
-
if (isError) {
|
|
131
|
-
throw error;
|
|
132
|
-
}
|
|
133
|
-
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", "data-testid": "products-list-table", children: [
|
|
134
|
-
/* @__PURE__ */ jsxs(
|
|
135
|
-
"div",
|
|
136
|
-
{
|
|
137
|
-
className: "flex items-center justify-between px-6 py-4",
|
|
138
|
-
"data-testid": "products-list-header",
|
|
139
|
-
children: [
|
|
140
|
-
/* @__PURE__ */ jsx(Heading, { level: "h2", "data-testid": "products-list-title", children: t("products.domain") }),
|
|
141
|
-
/* @__PURE__ */ jsxs(
|
|
142
|
-
"div",
|
|
143
|
-
{
|
|
144
|
-
className: "flex items-center justify-center gap-x-2",
|
|
145
|
-
"data-testid": "products-list-actions",
|
|
146
|
-
children: [
|
|
147
|
-
/* @__PURE__ */ jsx(
|
|
148
|
-
Button,
|
|
149
|
-
{
|
|
150
|
-
size: "small",
|
|
151
|
-
variant: "secondary",
|
|
152
|
-
asChild: true,
|
|
153
|
-
"data-testid": "products-export-button",
|
|
154
|
-
children: /* @__PURE__ */ jsx(
|
|
155
|
-
Link,
|
|
156
|
-
{
|
|
157
|
-
to: `export${location.search}`,
|
|
158
|
-
"data-testid": "products-export-link",
|
|
159
|
-
children: t("actions.export")
|
|
160
|
-
}
|
|
161
|
-
)
|
|
162
|
-
}
|
|
163
|
-
),
|
|
164
|
-
/* @__PURE__ */ jsx(
|
|
165
|
-
Button,
|
|
166
|
-
{
|
|
167
|
-
size: "small",
|
|
168
|
-
variant: "secondary",
|
|
169
|
-
asChild: true,
|
|
170
|
-
"data-testid": "products-import-button",
|
|
171
|
-
children: /* @__PURE__ */ jsx(
|
|
172
|
-
Link,
|
|
173
|
-
{
|
|
174
|
-
to: `import${location.search}`,
|
|
175
|
-
"data-testid": "products-import-link",
|
|
176
|
-
children: t("actions.import")
|
|
177
|
-
}
|
|
178
|
-
)
|
|
179
|
-
}
|
|
180
|
-
),
|
|
181
|
-
/* @__PURE__ */ jsx(
|
|
182
|
-
Button,
|
|
183
|
-
{
|
|
184
|
-
size: "small",
|
|
185
|
-
variant: "secondary",
|
|
186
|
-
asChild: true,
|
|
187
|
-
"data-testid": "products-create-button",
|
|
188
|
-
children: /* @__PURE__ */ jsx(Link, { to: "create", "data-testid": "products-create-link", children: t("actions.create") })
|
|
189
|
-
}
|
|
190
|
-
)
|
|
191
|
-
]
|
|
192
|
-
}
|
|
193
|
-
)
|
|
194
|
-
]
|
|
195
|
-
}
|
|
196
|
-
),
|
|
197
|
-
/* @__PURE__ */ jsx("div", { "data-testid": "products-data-table", children: /* @__PURE__ */ jsx(
|
|
198
|
-
_DataTable,
|
|
199
|
-
{
|
|
200
|
-
table,
|
|
201
|
-
columns,
|
|
202
|
-
count,
|
|
203
|
-
pageSize: PAGE_SIZE,
|
|
204
|
-
filters,
|
|
205
|
-
search: true,
|
|
206
|
-
pagination: true,
|
|
207
|
-
isLoading,
|
|
208
|
-
queryObject: raw,
|
|
209
|
-
navigateTo: (row) => `${row.original.id}`,
|
|
210
|
-
orderBy: [
|
|
211
|
-
{ key: "title", label: t("fields.title") },
|
|
212
|
-
{ key: "created_at", label: t("fields.createdAt") },
|
|
213
|
-
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
214
|
-
],
|
|
215
|
-
noRecords: {
|
|
216
|
-
message: t("products.list.noRecordsMessage")
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
) }),
|
|
220
|
-
/* @__PURE__ */ jsx(Outlet, {})
|
|
221
|
-
] });
|
|
222
|
-
};
|
|
223
|
-
var ProductActions = ({ product }) => {
|
|
224
|
-
const { t } = useTranslation();
|
|
225
|
-
const prompt = usePrompt();
|
|
226
|
-
const { mutateAsync } = useDeleteProduct(product.id);
|
|
227
|
-
const handleDelete = async () => {
|
|
228
|
-
const res = await prompt({
|
|
229
|
-
title: t("general.areYouSure"),
|
|
230
|
-
description: t("products.deleteWarning", {
|
|
231
|
-
title: product.title
|
|
232
|
-
}),
|
|
233
|
-
confirmText: t("actions.delete"),
|
|
234
|
-
cancelText: t("actions.cancel")
|
|
235
|
-
});
|
|
236
|
-
if (!res) {
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
await mutateAsync(void 0, {
|
|
240
|
-
onSuccess: () => {
|
|
241
|
-
toast.success(t("products.toasts.delete.success.header"), {
|
|
242
|
-
description: t("products.toasts.delete.success.description", {
|
|
243
|
-
title: product.title
|
|
244
|
-
})
|
|
245
|
-
});
|
|
246
|
-
},
|
|
247
|
-
onError: (e) => {
|
|
248
|
-
toast.error(t("products.toasts.delete.error.header"), {
|
|
249
|
-
description: e.message
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
};
|
|
254
|
-
return /* @__PURE__ */ jsx(
|
|
255
|
-
ActionMenu,
|
|
256
|
-
{
|
|
257
|
-
groups: [
|
|
258
|
-
{
|
|
259
|
-
actions: [
|
|
260
|
-
{
|
|
261
|
-
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
262
|
-
label: t("actions.edit"),
|
|
263
|
-
to: `/products/${product.id}/edit`
|
|
264
|
-
}
|
|
265
|
-
]
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
actions: [
|
|
269
|
-
{
|
|
270
|
-
icon: /* @__PURE__ */ jsx(Trash, {}),
|
|
271
|
-
label: t("actions.delete"),
|
|
272
|
-
onClick: handleDelete
|
|
273
|
-
}
|
|
274
|
-
]
|
|
275
|
-
}
|
|
276
|
-
],
|
|
277
|
-
"data-testid": `product-actions-${product.id}`
|
|
278
|
-
}
|
|
279
|
-
);
|
|
280
|
-
};
|
|
281
|
-
var columnHelper = createColumnHelper();
|
|
282
|
-
var useColumns = () => {
|
|
283
|
-
const base = useProductTableColumns();
|
|
284
|
-
const columns = useMemo(
|
|
285
|
-
() => [
|
|
286
|
-
...base,
|
|
287
|
-
columnHelper.display({
|
|
288
|
-
id: "seller",
|
|
289
|
-
header: "Seller",
|
|
290
|
-
cell: ({ row }) => {
|
|
291
|
-
const seller = row.original.seller;
|
|
292
|
-
return seller?.name || "-";
|
|
293
|
-
}
|
|
294
|
-
}),
|
|
295
|
-
columnHelper.display({
|
|
296
|
-
id: "actions",
|
|
297
|
-
header: () => /* @__PURE__ */ jsx(
|
|
298
|
-
"div",
|
|
299
|
-
{
|
|
300
|
-
className: "flex h-full w-full items-center",
|
|
301
|
-
"data-testid": "products-table-header-actions",
|
|
302
|
-
children: /* @__PURE__ */ jsx("span", { "data-testid": "products-table-header-actions-text" })
|
|
303
|
-
}
|
|
304
|
-
),
|
|
305
|
-
cell: ({ row }) => {
|
|
306
|
-
return /* @__PURE__ */ jsx(ProductActions, { product: row.original });
|
|
307
|
-
}
|
|
308
|
-
})
|
|
309
|
-
],
|
|
310
|
-
[base]
|
|
311
|
-
);
|
|
312
|
-
return columns;
|
|
313
|
-
};
|
|
314
|
-
|
|
315
|
-
// src/pages/products/product-list/product-list.tsx
|
|
316
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
317
|
-
var ProductList = () => {
|
|
318
|
-
return /* @__PURE__ */ jsx2("div", { "data-testid": "products-page", children: /* @__PURE__ */ jsx2(SingleColumnPage, { children: /* @__PURE__ */ jsx2(ProductListTable, {}) }) });
|
|
319
|
-
};
|
|
320
|
-
export {
|
|
321
|
-
ProductList as Component,
|
|
322
|
-
productsLoader as productLoader
|
|
323
|
-
};
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useDeleteProductTagAction
|
|
3
|
-
} from "./chunk-XXXE6VUX.js";
|
|
4
|
-
import "./chunk-5A4JNOK3.js";
|
|
5
|
-
import "./chunk-O5VKW5FL.js";
|
|
6
|
-
import "./chunk-2PZGY332.js";
|
|
7
|
-
import "./chunk-AFQS6E4N.js";
|
|
8
|
-
import "./chunk-QG6PLWNH.js";
|
|
9
|
-
import "./chunk-BFCAJKRG.js";
|
|
10
|
-
import "./chunk-4F5GP7J7.js";
|
|
11
|
-
import "./chunk-54EPH67T.js";
|
|
12
|
-
import "./chunk-JQV7CXEC.js";
|
|
13
|
-
import "./chunk-HINXQTCW.js";
|
|
14
|
-
import "./chunk-VW56KWO2.js";
|
|
15
|
-
import "./chunk-2Y3WMGN6.js";
|
|
16
|
-
import "./chunk-RW35OPIA.js";
|
|
17
|
-
import "./chunk-25LYVP3C.js";
|
|
18
|
-
import "./chunk-LQSLDDPT.js";
|
|
19
|
-
import "./chunk-JHIMVLB2.js";
|
|
20
|
-
import "./chunk-PXYDR7WQ.js";
|
|
21
|
-
import {
|
|
22
|
-
useProductTableColumns
|
|
23
|
-
} from "./chunk-3CKTAFTR.js";
|
|
24
|
-
import "./chunk-G5OVX555.js";
|
|
25
|
-
import "./chunk-FWPGOIFA.js";
|
|
26
|
-
import "./chunk-DB6ANJBO.js";
|
|
27
|
-
import "./chunk-FQERBIVS.js";
|
|
28
|
-
import "./chunk-PHOCVOZ5.js";
|
|
29
|
-
import {
|
|
30
|
-
_DataTable,
|
|
31
|
-
useDataTable
|
|
32
|
-
} from "./chunk-FLCYR7E5.js";
|
|
33
|
-
import "./chunk-YBZWO4ZV.js";
|
|
34
|
-
import "./chunk-KAZ5BYTQ.js";
|
|
35
|
-
import "./chunk-3EF54XFY.js";
|
|
36
|
-
import "./chunk-WIYFXWRI.js";
|
|
37
|
-
import "./chunk-IQPN4PZJ.js";
|
|
38
|
-
import "./chunk-FMOQNZFZ.js";
|
|
39
|
-
import "./chunk-2ZFELO2L.js";
|
|
40
|
-
import "./chunk-26OOAKQ6.js";
|
|
41
|
-
import "./chunk-ZQZHFMD7.js";
|
|
42
|
-
import "./chunk-K3GJ266Z.js";
|
|
43
|
-
import "./chunk-GEVYE225.js";
|
|
44
|
-
import "./chunk-CMHI2RPL.js";
|
|
45
|
-
import "./chunk-S2WEYEQR.js";
|
|
46
|
-
import "./chunk-SXC5ZMLI.js";
|
|
47
|
-
import "./chunk-MG4GKUJW.js";
|
|
48
|
-
import "./chunk-AYVH6Q5O.js";
|
|
49
|
-
import "./chunk-VOHEQ7B5.js";
|
|
50
|
-
import "./chunk-N5IUYCUZ.js";
|
|
51
|
-
import "./chunk-7SVLKK6Q.js";
|
|
52
|
-
import "./chunk-GR6JUIRU.js";
|
|
53
|
-
import "./chunk-PVZBDWLK.js";
|
|
54
|
-
import "./chunk-O5HZRJPB.js";
|
|
55
|
-
import "./chunk-VKOE5J66.js";
|
|
56
|
-
import "./chunk-DY3XQPHC.js";
|
|
57
|
-
import {
|
|
58
|
-
useProductTableFilters
|
|
59
|
-
} from "./chunk-FBUH5OLD.js";
|
|
60
|
-
import {
|
|
61
|
-
useProductTableQuery
|
|
62
|
-
} from "./chunk-VVWB3GIK.js";
|
|
63
|
-
import "./chunk-KBYZLKI4.js";
|
|
64
|
-
import "./chunk-YWWUOGJA.js";
|
|
65
|
-
import "./chunk-JRTZWK77.js";
|
|
66
|
-
import {
|
|
67
|
-
SingleColumnPage
|
|
68
|
-
} from "./chunk-U2UCL2VG.js";
|
|
69
|
-
import {
|
|
70
|
-
SingleColumnPageSkeleton
|
|
71
|
-
} from "./chunk-INNFZYX2.js";
|
|
72
|
-
import {
|
|
73
|
-
ActionMenu
|
|
74
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
75
|
-
import "./chunk-LAVHRER2.js";
|
|
76
|
-
import "./chunk-Y7QKP6QU.js";
|
|
77
|
-
import "./chunk-THHRRYRS.js";
|
|
78
|
-
import "./chunk-UZWFZMOX.js";
|
|
79
|
-
import "./chunk-XQNVC4Q7.js";
|
|
80
|
-
import {
|
|
81
|
-
productTagsQueryKeys,
|
|
82
|
-
useProductTag
|
|
83
|
-
} from "./chunk-XM6GCWNF.js";
|
|
84
|
-
import "./chunk-ODBDAABQ.js";
|
|
85
|
-
import "./chunk-CDQJKJMX.js";
|
|
86
|
-
import "./chunk-JLATVDLM.js";
|
|
87
|
-
import "./chunk-GPRBBA7S.js";
|
|
88
|
-
import "./chunk-E7ZBQO6E.js";
|
|
89
|
-
import "./chunk-XGHM75N2.js";
|
|
90
|
-
import "./chunk-U2GCSKW3.js";
|
|
91
|
-
import "./chunk-RTAIDSDS.js";
|
|
92
|
-
import "./chunk-LW3UWYZU.js";
|
|
93
|
-
import "./chunk-A4X5VP3G.js";
|
|
94
|
-
import "./chunk-NNZP4PYP.js";
|
|
95
|
-
import "./chunk-GF4QHVX3.js";
|
|
96
|
-
import "./chunk-JOQ3RTF5.js";
|
|
97
|
-
import "./chunk-V534K7G4.js";
|
|
98
|
-
import "./chunk-A5XOYSDC.js";
|
|
99
|
-
import "./chunk-TQI3DOQ5.js";
|
|
100
|
-
import "./chunk-5PB7KCTF.js";
|
|
101
|
-
import "./chunk-YOIARITB.js";
|
|
102
|
-
import "./chunk-W7G64ULL.js";
|
|
103
|
-
import "./chunk-6C7TCU42.js";
|
|
104
|
-
import "./chunk-4YF3GAKE.js";
|
|
105
|
-
import "./chunk-M3I52H3M.js";
|
|
106
|
-
import "./chunk-LORVU5II.js";
|
|
107
|
-
import "./chunk-36ORDF7W.js";
|
|
108
|
-
import "./chunk-QSM56ZOP.js";
|
|
109
|
-
import "./chunk-MIHEJ6Y6.js";
|
|
110
|
-
import "./chunk-3VZV6SJQ.js";
|
|
111
|
-
import {
|
|
112
|
-
useProducts
|
|
113
|
-
} from "./chunk-K357FGGP.js";
|
|
114
|
-
import {
|
|
115
|
-
queryClient
|
|
116
|
-
} from "./chunk-RHKRREUU.js";
|
|
117
|
-
import "./chunk-ZA2KFUFR.js";
|
|
118
|
-
import {
|
|
119
|
-
sdk
|
|
120
|
-
} from "./chunk-ZYNBKBY3.js";
|
|
121
|
-
import "./chunk-NBMM2TZK.js";
|
|
122
|
-
|
|
123
|
-
// src/pages/product-tags/product-tag-detail/breadcrumb.tsx
|
|
124
|
-
import { jsx } from "react/jsx-runtime";
|
|
125
|
-
var ProductTagDetailBreadcrumb = (props) => {
|
|
126
|
-
const { id } = props.params || {};
|
|
127
|
-
const { product_tag } = useProductTag(id, void 0, {
|
|
128
|
-
initialData: props.data,
|
|
129
|
-
enabled: Boolean(id)
|
|
130
|
-
});
|
|
131
|
-
if (!product_tag) {
|
|
132
|
-
return null;
|
|
133
|
-
}
|
|
134
|
-
return /* @__PURE__ */ jsx("span", { children: product_tag.value });
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
// src/pages/product-tags/product-tag-detail/loader.ts
|
|
138
|
-
var productTagDetailQuery = (id) => ({
|
|
139
|
-
queryKey: productTagsQueryKeys.detail(id),
|
|
140
|
-
queryFn: async () => sdk.admin.productTags.$id.query({ $id: id })
|
|
141
|
-
});
|
|
142
|
-
var productTagLoader = async ({ params }) => {
|
|
143
|
-
const id = params.id;
|
|
144
|
-
const query = productTagDetailQuery(id);
|
|
145
|
-
return queryClient.ensureQueryData(query);
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
// src/pages/product-tags/product-tag-detail/product-tag-detail.tsx
|
|
149
|
-
import { useLoaderData, useParams } from "react-router-dom";
|
|
150
|
-
|
|
151
|
-
// src/pages/product-tags/product-tag-detail/components/product-tag-general-section/product-tag-general-section.tsx
|
|
152
|
-
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
153
|
-
import { Container, Heading } from "@medusajs/ui";
|
|
154
|
-
import { useTranslation } from "react-i18next";
|
|
155
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
156
|
-
var ProductTagGeneralSection = ({
|
|
157
|
-
productTag
|
|
158
|
-
}) => {
|
|
159
|
-
const { t } = useTranslation();
|
|
160
|
-
const handleDelete = useDeleteProductTagAction({ productTag });
|
|
161
|
-
return /* @__PURE__ */ jsxs(Container, { className: "flex items-center justify-between", "data-testid": "product-tag-general-section-container", children: [
|
|
162
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-1.5", "data-testid": "product-tag-general-section-heading-container", children: [
|
|
163
|
-
/* @__PURE__ */ jsx2("span", { className: "text-ui-fg-muted h1-core", children: "#" }),
|
|
164
|
-
/* @__PURE__ */ jsx2(Heading, { "data-testid": "product-tag-general-section-heading", children: productTag.value })
|
|
165
|
-
] }),
|
|
166
|
-
/* @__PURE__ */ jsx2(
|
|
167
|
-
ActionMenu,
|
|
168
|
-
{
|
|
169
|
-
groups: [
|
|
170
|
-
{
|
|
171
|
-
actions: [
|
|
172
|
-
{
|
|
173
|
-
icon: /* @__PURE__ */ jsx2(PencilSquare, {}),
|
|
174
|
-
label: t("actions.edit"),
|
|
175
|
-
to: "edit"
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
actions: [
|
|
181
|
-
{
|
|
182
|
-
icon: /* @__PURE__ */ jsx2(Trash, {}),
|
|
183
|
-
label: t("actions.delete"),
|
|
184
|
-
onClick: handleDelete
|
|
185
|
-
}
|
|
186
|
-
]
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
"data-testid": "product-tag-general-section-action-menu"
|
|
190
|
-
}
|
|
191
|
-
)
|
|
192
|
-
] });
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
// src/pages/product-tags/product-tag-detail/components/product-tag-product-section/product-tag-product-section.tsx
|
|
196
|
-
import { Container as Container2, Heading as Heading2 } from "@medusajs/ui";
|
|
197
|
-
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
198
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
199
|
-
var PAGE_SIZE = 10;
|
|
200
|
-
var PREFIX = "pt";
|
|
201
|
-
var ProductTagProductSection = ({
|
|
202
|
-
productTag
|
|
203
|
-
}) => {
|
|
204
|
-
const { t } = useTranslation2();
|
|
205
|
-
const { searchParams, raw } = useProductTableQuery({
|
|
206
|
-
pageSize: PAGE_SIZE,
|
|
207
|
-
prefix: PREFIX
|
|
208
|
-
});
|
|
209
|
-
const { products, count, isPending, isError, error } = useProducts({
|
|
210
|
-
...searchParams,
|
|
211
|
-
tag_id: productTag.id
|
|
212
|
-
});
|
|
213
|
-
const filters = useProductTableFilters(["product_tags"]);
|
|
214
|
-
const columns = useProductTableColumns();
|
|
215
|
-
const { table } = useDataTable({
|
|
216
|
-
data: products,
|
|
217
|
-
count,
|
|
218
|
-
columns,
|
|
219
|
-
getRowId: (row) => row.id,
|
|
220
|
-
pageSize: PAGE_SIZE,
|
|
221
|
-
prefix: PREFIX
|
|
222
|
-
});
|
|
223
|
-
if (isError) {
|
|
224
|
-
throw error;
|
|
225
|
-
}
|
|
226
|
-
return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y px-0 py-0", "data-testid": "product-tag-product-section-container", children: [
|
|
227
|
-
/* @__PURE__ */ jsx3("div", { className: "px-6 py-4", "data-testid": "product-tag-product-section-header", children: /* @__PURE__ */ jsx3(Heading2, { level: "h2", "data-testid": "product-tag-product-section-heading", children: t("products.domain") }) }),
|
|
228
|
-
/* @__PURE__ */ jsx3(
|
|
229
|
-
_DataTable,
|
|
230
|
-
{
|
|
231
|
-
table,
|
|
232
|
-
filters,
|
|
233
|
-
queryObject: raw,
|
|
234
|
-
isLoading: isPending,
|
|
235
|
-
columns,
|
|
236
|
-
pageSize: PAGE_SIZE,
|
|
237
|
-
count,
|
|
238
|
-
navigateTo: (row) => `/products/${row.original.id}`,
|
|
239
|
-
search: true,
|
|
240
|
-
pagination: true,
|
|
241
|
-
orderBy: [
|
|
242
|
-
{ key: "title", label: t("fields.title") },
|
|
243
|
-
{ key: "status", label: t("fields.status") },
|
|
244
|
-
{ key: "created_at", label: t("fields.createdAt") },
|
|
245
|
-
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
246
|
-
],
|
|
247
|
-
"data-testid": "product-tag-product-section-table"
|
|
248
|
-
}
|
|
249
|
-
)
|
|
250
|
-
] });
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
// src/pages/product-tags/product-tag-detail/product-tag-detail.tsx
|
|
254
|
-
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
255
|
-
var ProductTagDetail = () => {
|
|
256
|
-
const { id } = useParams();
|
|
257
|
-
const initialData = useLoaderData();
|
|
258
|
-
const { product_tag, isPending, isError, error } = useProductTag(
|
|
259
|
-
id,
|
|
260
|
-
void 0,
|
|
261
|
-
{
|
|
262
|
-
initialData
|
|
263
|
-
}
|
|
264
|
-
);
|
|
265
|
-
if (isPending || !product_tag) {
|
|
266
|
-
return /* @__PURE__ */ jsx4(SingleColumnPageSkeleton, { showJSON: true, sections: 2 });
|
|
267
|
-
}
|
|
268
|
-
if (isError) {
|
|
269
|
-
throw error;
|
|
270
|
-
}
|
|
271
|
-
return /* @__PURE__ */ jsxs3(
|
|
272
|
-
SingleColumnPage,
|
|
273
|
-
{
|
|
274
|
-
showJSON: true,
|
|
275
|
-
showMetadata: true,
|
|
276
|
-
data: product_tag,
|
|
277
|
-
children: [
|
|
278
|
-
/* @__PURE__ */ jsx4(ProductTagGeneralSection, { productTag: product_tag }),
|
|
279
|
-
/* @__PURE__ */ jsx4(ProductTagProductSection, { productTag: product_tag })
|
|
280
|
-
]
|
|
281
|
-
}
|
|
282
|
-
);
|
|
283
|
-
};
|
|
284
|
-
export {
|
|
285
|
-
ProductTagDetailBreadcrumb as Breadcrumb,
|
|
286
|
-
ProductTagDetail as Component,
|
|
287
|
-
productTagLoader as loader
|
|
288
|
-
};
|