@mercurjs/admin 2.2.0 → 2.2.1-canary.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-KXVCLUG2.js → add-campaign-promotions-ARQN65B6.js} +9 -8
- package/dist/{adjust-inventory-5ZJJUEMJ.js → adjust-inventory-4ZOZCMSO.js} +10 -10
- package/dist/{api-key-management-create-OXI6OTIU.js → api-key-management-create-KJAP6KDX.js} +3 -3
- package/dist/{api-key-management-detail-ZTFHZK2W.js → api-key-management-detail-RV5Q45EV.js} +12 -12
- package/dist/{api-key-management-edit-QF5SAQE5.js → api-key-management-edit-N75HXUJF.js} +3 -3
- package/dist/{api-key-management-list-44HTIZDU.js → api-key-management-list-NGPTRNEE.js} +6 -6
- package/dist/{api-key-management-sales-channels-7HNHPB4N.js → api-key-management-sales-channels-A5F3D42D.js} +4 -4
- package/dist/{attribute-create-AGLZ6QOX.js → attribute-create-WDI2GMPM.js} +15 -15
- package/dist/{attribute-detail-62HLJFM3.js → attribute-detail-ZNPHAIL7.js} +18 -18
- package/dist/{attribute-edit-ZJS7KNRQ.js → attribute-edit-LBMZVL3O.js} +2 -2
- package/dist/{attribute-edit-possible-value-XK6DK7C3.js → attribute-edit-possible-value-RWG3U7IG.js} +2 -2
- package/dist/{attribute-list-VKAQ6254.js → attribute-list-QXNNF3NN.js} +13 -13
- package/dist/{breadcrumb-OF67XUWE.js → breadcrumb-2NHCSFUI.js} +1 -1
- package/dist/{campaign-budget-edit-TCWGNELH.js → campaign-budget-edit-7NXMWE2S.js} +1 -1
- package/dist/{campaign-configuration-AFGSG3MV.js → campaign-configuration-67I6NQNR.js} +1 -1
- package/dist/{campaign-create-OZV25GTH.js → campaign-create-NCJ4NA2B.js} +2 -2
- package/dist/{campaign-detail-G7DKPI5W.js → campaign-detail-MM5I4RGN.js} +18 -18
- package/dist/{campaign-edit-F6V6FWKS.js → campaign-edit-Z6A5J2G4.js} +1 -1
- package/dist/{campaign-list-QMEX7LES.js → campaign-list-FHPFFEM5.js} +4 -4
- package/dist/{categories-metadata-EKGY5IY2.js → categories-metadata-UN7P2PDA.js} +10 -10
- package/dist/{category-create-K452J7D3.js → category-create-3F6PHBRW.js} +3 -3
- package/dist/{category-detail-HUZ7MHT5.js → category-detail-RSGX5IKI.js} +18 -18
- package/dist/{category-edit-KP2ZSV6X.js → category-edit-YIGHQ442.js} +2 -2
- package/dist/{category-icon-edit-NNA7WVQV.js → category-icon-edit-6ZVXC4ID.js} +2 -2
- package/dist/{category-list-PXL4RTYP.js → category-list-SUER3DE3.js} +6 -6
- package/dist/{category-media-RFMA5Y5K.js → category-media-IEIIXESO.js} +2 -2
- package/dist/{category-organize-NNIYSZJT.js → category-organize-7QJ4MAA4.js} +2 -2
- package/dist/{category-products-RR5RFHYX.js → category-products-NOZYZHP7.js} +16 -16
- package/dist/chunk-2IDWFEKH.js +30 -0
- package/dist/{chunk-GS7VNGVP.js → chunk-2W4YIJYV.js} +1 -1
- package/dist/{chunk-4EM4RG5L.js → chunk-34AHGPLC.js} +1 -1
- package/dist/{chunk-46WFUTZ7.js → chunk-3FOZERFM.js} +4 -4
- package/dist/{chunk-XQ5IRC23.js → chunk-3PWLO7XZ.js} +4 -4
- package/dist/{chunk-TBZRRZP2.js → chunk-3RM44AH4.js} +2 -2
- package/dist/{chunk-GPACCA4B.js → chunk-4DHTLLPG.js} +2 -2
- package/dist/{chunk-XYLQODIX.js → chunk-4DWSG7TM.js} +2 -2
- package/dist/{chunk-6FZTLQKQ.js → chunk-4JNQHJKX.js} +4 -4
- package/dist/{chunk-52KJSIHS.js → chunk-4UQMRTSC.js} +1393 -1359
- package/dist/{chunk-BAW3F2JM.js → chunk-52C7Q74T.js} +2 -2
- package/dist/{chunk-FEEYWP65.js → chunk-5346HYMP.js} +1 -1
- package/dist/{chunk-2TTWEY5U.js → chunk-53KPM2IF.js} +1 -1
- package/dist/{chunk-EU2CV4TC.js → chunk-5P2YBCU4.js} +1 -1
- package/dist/{chunk-ZYW5QC2S.js → chunk-5SJGXU6J.js} +1 -1
- package/dist/{chunk-H6PRFXGU.js → chunk-5WJ6LPXM.js} +1 -1
- package/dist/{chunk-4TW5RTWO.js → chunk-5YT4OYMI.js} +2 -2
- package/dist/{chunk-IEYTK56D.js → chunk-6AUFNHJ4.js} +1 -1
- package/dist/{chunk-Z6KZDJNZ.js → chunk-6C5EXVG7.js} +4 -4
- package/dist/{chunk-N2WNCZLR.js → chunk-6L6HRSV7.js} +2 -2
- package/dist/{chunk-MSUG6ERE.js → chunk-6ZVLQ4IK.js} +3 -3
- package/dist/{chunk-WRAOTX6G.js → chunk-AJJSAJWK.js} +8 -4
- package/dist/{chunk-PQYZXLKV.js → chunk-AYK22LJU.js} +3 -3
- package/dist/{chunk-NHKZJMNX.js → chunk-BEHI3OYC.js} +2 -2
- package/dist/{chunk-XH2SXM7F.js → chunk-BIMJMDKU.js} +1 -1
- package/dist/{chunk-NGKC43E3.js → chunk-BNT2LEY5.js} +4 -4
- package/dist/{chunk-LAS6SXKB.js → chunk-C3SCJHQN.js} +1 -1
- package/dist/{chunk-3WT5O2NN.js → chunk-COH2G4BO.js} +2 -2
- package/dist/{chunk-LEHORJ76.js → chunk-CZN2FPHR.js} +1 -1
- package/dist/{chunk-TDDEAQ3T.js → chunk-EJNYP4ZP.js} +286 -229
- package/dist/{chunk-6QXSN5IG.js → chunk-EKLQ3PFC.js} +1 -1
- package/dist/{chunk-L2HIQAOS.js → chunk-EXZFNGEH.js} +11 -1
- package/dist/{chunk-CRKA4PUH.js → chunk-F5TGLYES.js} +3 -3
- package/dist/{chunk-PZRHF4NZ.js → chunk-FGHHNTWJ.js} +1 -1
- package/dist/{chunk-Y5RHBN7J.js → chunk-FRUJ3RNF.js} +1 -1
- package/dist/{chunk-P73BQ56H.js → chunk-GAHJUTEI.js} +6 -6
- package/dist/{chunk-D24Q3XHG.js → chunk-GBSL5JTZ.js} +1 -1
- package/dist/{chunk-IHO6OGWR.js → chunk-GINON6FD.js} +1 -1
- package/dist/{chunk-5JHHADVY.js → chunk-GUXBEXAN.js} +1 -1
- package/dist/{chunk-6RMCSQBI.js → chunk-GXKT2GQ7.js} +445 -211
- package/dist/{chunk-6XYDJWNG.js → chunk-GXYCGT7P.js} +1 -1
- package/dist/{chunk-4EBW73IY.js → chunk-GYMFTVB4.js} +1 -1
- package/dist/{chunk-U7XBLL2L.js → chunk-H3PH7ZYY.js} +5 -5
- package/dist/{chunk-HC2TEEKQ.js → chunk-HKHDRY5B.js} +4 -1
- package/dist/{chunk-IB7PFZNA.js → chunk-HRDRZOL4.js} +2 -2
- package/dist/{chunk-XIB2KDE7.js → chunk-HRPM4HIB.js} +1 -1
- package/dist/{chunk-QYPNC3U5.js → chunk-IPC6RQQ7.js} +1 -1
- package/dist/{chunk-QSB2PR6Y.js → chunk-IWS4FEAA.js} +3 -3
- package/dist/{chunk-GRFWCCUW.js → chunk-IZYVY2QV.js} +1 -1
- package/dist/{chunk-ICAXGUPY.js → chunk-J37PJ6OX.js} +15 -44
- package/dist/chunk-JU5ALCEN.js +82 -0
- package/dist/{chunk-7CAQDCJ4.js → chunk-JZZLMXG4.js} +1 -1
- package/dist/{chunk-PYNVCRQK.js → chunk-K4LPEHOH.js} +1 -1
- package/dist/{chunk-3C5EMQWG.js → chunk-LKGRPE3Y.js} +4 -4
- package/dist/{chunk-VWT7NSJO.js → chunk-LU7SPDKK.js} +89 -252
- package/dist/{chunk-YCAPN5F6.js → chunk-LUPIJMZB.js} +56 -26
- package/dist/{chunk-S2ZNHDPO.js → chunk-MUAEOX6S.js} +6 -6
- package/dist/{chunk-YBMTMG47.js → chunk-MXLSIF5V.js} +1 -1
- package/dist/{chunk-XVHXE7GQ.js → chunk-MXVWKV4Z.js} +2 -2
- package/dist/{chunk-JXMEDALI.js → chunk-MZNO6GSW.js} +1 -1
- package/dist/{chunk-7LSEDXCB.js → chunk-NGJUDYMP.js} +1 -1
- package/dist/{chunk-QF22CPST.js → chunk-NSCHKQQL.js} +4 -4
- package/dist/{chunk-O4X3FYQ2.js → chunk-NUD4H2VZ.js} +2 -2
- package/dist/{chunk-QD5I3ZC4.js → chunk-OADEOZJ3.js} +6 -6
- package/dist/{chunk-GSWFRYKT.js → chunk-OPIRMBSK.js} +5 -5
- package/dist/{chunk-O3Q2YJNR.js → chunk-OT323T4H.js} +5 -5
- package/dist/{chunk-SZCQUPC6.js → chunk-OY5QD46V.js} +1 -1
- package/dist/{chunk-HI2UJ43B.js → chunk-OZEICR2S.js} +3 -3
- package/dist/{chunk-CC7MG2B7.js → chunk-PBIJMBAE.js} +2 -2
- package/dist/{chunk-EDCGEQ4V.js → chunk-PEPANIBF.js} +1 -1
- package/dist/{chunk-EITNWVKQ.js → chunk-PVNB7ETQ.js} +1 -1
- package/dist/{chunk-ZNEC7NSD.js → chunk-PW64YRH4.js} +9 -9
- package/dist/{chunk-QRN63LUS.js → chunk-QE57IFSR.js} +1 -20
- package/dist/{chunk-R6433WFI.js → chunk-QMEFPNCA.js} +1 -1
- package/dist/{chunk-2O6SLX2J.js → chunk-R55WKWFH.js} +1 -1
- package/dist/{chunk-BVVZLZBO.js → chunk-R7Q23SWH.js} +3 -3
- package/dist/{chunk-4OMNDHD2.js → chunk-RDDZLUKZ.js} +18 -12
- package/dist/{chunk-AQCA7HGL.js → chunk-RKGGKEPI.js} +5 -5
- package/dist/{chunk-42BAC3EV.js → chunk-RLOKMTTN.js} +11 -0
- package/dist/{chunk-6TJPMF7U.js → chunk-RPWO23NX.js} +2 -2
- package/dist/{chunk-FU6XA7IT.js → chunk-SNRPPG3Z.js} +3 -3
- package/dist/{chunk-LZSUKT5X.js → chunk-TF74ITJS.js} +6 -6
- package/dist/{chunk-UCA7UES2.js → chunk-U4BIWWRA.js} +1 -1
- package/dist/{chunk-I6T244NF.js → chunk-U6EIJREE.js} +1 -1
- package/dist/{chunk-XRSHPAED.js → chunk-UNNSF2VP.js} +1 -1
- package/dist/chunk-UST2RGWB.js +37 -0
- package/dist/{chunk-KX6C5FDB.js → chunk-V52NWX56.js} +1 -1
- package/dist/{chunk-7PPT3477.js → chunk-VBEQXZ2Z.js} +19 -10
- package/dist/{chunk-J5CQ6F6U.js → chunk-VKHGNAFW.js} +1 -1
- package/dist/{chunk-LNBYVXJX.js → chunk-VQN77LKF.js} +59 -10
- package/dist/{chunk-NLLX6JO6.js → chunk-WE4RBSHT.js} +3 -3
- package/dist/{chunk-XJAMGFC5.js → chunk-WIFK6L7P.js} +2 -2
- package/dist/{chunk-HPFFEXS6.js → chunk-WJJBIAJI.js} +2 -2
- package/dist/{chunk-5NC3VFXY.js → chunk-WR3WSUIV.js} +1 -1
- package/dist/{chunk-GNBUH5DG.js → chunk-WX5UZZZD.js} +1 -1
- package/dist/{chunk-GTFDJLHW.js → chunk-Y2UMDTV4.js} +22 -17
- package/dist/{chunk-HEXXU3V3.js → chunk-Y3IDGFA4.js} +3 -3
- package/dist/{chunk-CRHUF6Q6.js → chunk-YG65LX2W.js} +2 -2
- package/dist/{chunk-QHVRUP4S.js → chunk-YNPIZEWG.js} +2 -2
- package/dist/{chunk-4XRTTHJZ.js → chunk-YTBPZ5MO.js} +1 -1
- package/dist/{collection-add-products-CJEX5A53.js → collection-add-products-HPEJTRYI.js} +16 -16
- package/dist/{collection-create-TBEK75Y3.js → collection-create-3ZCR6VGP.js} +2 -2
- package/dist/{collection-detail-H2Q6WOUM.js → collection-detail-W6CGGW5S.js} +17 -17
- package/dist/{collection-edit-7RBQZNQ6.js → collection-edit-LIIDFJ6T.js} +2 -2
- package/dist/{collection-icon-edit-JQZXC2S3.js → collection-icon-edit-GMWBV5EA.js} +2 -2
- package/dist/{collection-list-ZMDJT77J.js → collection-list-AFDLBBLJ.js} +18 -18
- package/dist/{collection-media-H3CQH6DM.js → collection-media-FHD3IAES.js} +2 -2
- package/dist/{collection-metadata-7FOQ22FA.js → collection-metadata-PEBMVFM3.js} +10 -10
- package/dist/{commission-rule-detail-ISEXGPY6.js → commission-rule-detail-FSV6PA6Y.js} +4 -4
- package/dist/{commissions-list-OJ44UKGL.js → commissions-list-PRA3DROC.js} +6 -6
- package/dist/{customer-detail-LB5A5RDI.js → customer-detail-Z63YC3CC.js} +14 -14
- package/dist/{customer-group-add-customers-DK32GSHX.js → customer-group-add-customers-ZROAA2ZG.js} +2 -2
- package/dist/{customer-group-detail-TABEQDDU.js → customer-group-detail-K6TMJ66E.js} +13 -13
- package/dist/{customer-group-list-FLSK5QJD.js → customer-group-list-TJFAFJJA.js} +13 -13
- package/dist/{customer-group-metadata-V5S6BIXN.js → customer-group-metadata-2GHR645Q.js} +10 -10
- package/dist/{customer-list-E72FR2HJ.js → customer-list-BK2SAQES.js} +3 -3
- package/dist/{customer-metadata-4LLZ4ZMR.js → customer-metadata-H2BVMMPM.js} +10 -10
- package/dist/{customers-add-customer-group-FCZYSHXJ.js → customers-add-customer-group-YFNPS2EL.js} +12 -12
- package/dist/{edit-inventory-item-46KQFZVA.js → edit-inventory-item-DD5ZG32Y.js} +10 -10
- package/dist/{edit-inventory-item-attributes-ELHT4C2Y.js → edit-inventory-item-attributes-VNLOF6NO.js} +10 -10
- package/dist/{edit-reservation-PCKNMHXC.js → edit-reservation-CA6SMY3V.js} +2 -2
- package/dist/{edit-rules-GDQHJ3YV.js → edit-rules-F42247KN.js} +20 -12
- package/dist/extension-targets.d.ts +2 -2
- package/dist/index.css +14 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +215 -215
- package/dist/{inventory-create-POFYTZXF.js → inventory-create-VDO4OWZJ.js} +11 -11
- package/dist/{inventory-detail-BKRLIEBM.js → inventory-detail-CBGHNIHH.js} +13 -13
- package/dist/{inventory-list-FEV27NU6.js → inventory-list-YRGVDHKT.js} +4 -4
- package/dist/{inventory-metadata-63TI6TPT.js → inventory-metadata-SVEEQKIY.js} +10 -10
- package/dist/{inventory-stock-KUNNVL4K.js → inventory-stock-3WSWPSMT.js} +10 -10
- package/dist/{loader-MD6G3UZA.js → loader-5VHWG2HX.js} +1 -1
- package/dist/{location-detail-MHJK22BY.js → location-detail-TIHXQBZW.js} +12 -12
- package/dist/{location-fulfillment-providers-5LMLVCH3.js → location-fulfillment-providers-XULTKWDA.js} +16 -16
- package/dist/{location-list-DRCT7MJW.js → location-list-4RNLWRLN.js} +12 -11
- package/dist/{location-sales-channels-5ONDOTKC.js → location-sales-channels-MMRCF6QT.js} +3 -3
- package/dist/{location-service-zone-create-SSMZUELJ.js → location-service-zone-create-AC2PAK2X.js} +3 -3
- package/dist/{location-service-zone-manage-areas-QP3WONCG.js → location-service-zone-manage-areas-WXBQAEGB.js} +3 -3
- package/dist/{location-service-zone-shipping-option-create-QBGIX2IS.js → location-service-zone-shipping-option-create-CJI2IDS2.js} +10 -10
- package/dist/{login-BJNN5BDP.js → login-7R2QVOMB.js} +10 -10
- package/dist/{manage-locations-X76IQE2V.js → manage-locations-E2ODEJC5.js} +1 -1
- package/dist/{marketplace-add-currencies-DNI3AV3A.js → marketplace-add-currencies-GSR5IFFC.js} +2 -2
- package/dist/{marketplace-detail-73DJFMI7.js → marketplace-detail-CYNEUPOG.js} +13 -13
- package/dist/{marketplace-metadata-PSMQ7E3O.js → marketplace-metadata-75DPIUID.js} +10 -10
- package/dist/{offer-detail-page-XJFDKX4Z.js → offer-detail-page-GHSCR452.js} +16 -23
- package/dist/{offer-variant-detail-page-6QPGQSLY.js → offer-variant-detail-page-JLUJ7FQ4.js} +3 -3
- package/dist/{offers-7IRUIP7L.js → offers-NKMURHLM.js} +15 -15
- package/dist/{order-create-claim-UJKXA37S.js → order-create-claim-LF23TJ2Z.js} +2 -2
- package/dist/{order-create-edit-5U2QNJ5S.js → order-create-edit-ZF6YEUAW.js} +5 -5
- package/dist/{order-create-exchange-R5TOVSJZ.js → order-create-exchange-NM2JT5OF.js} +12 -12
- package/dist/{order-create-refund-MEAXQVIZ.js → order-create-refund-FWRG3VIW.js} +10 -10
- package/dist/{order-create-return-MEUIY4VU.js → order-create-return-YV5HXMY7.js} +2 -2
- package/dist/{order-detail-QE4HBQ5W.js → order-detail-S3ENSWQ3.js} +14 -14
- package/dist/{order-edit-billing-address-7S2QIRSZ.js → order-edit-billing-address-UYZNY77G.js} +11 -11
- package/dist/{order-edit-email-EE26NWGK.js → order-edit-email-GVGQLXNK.js} +10 -10
- package/dist/{order-edit-shipping-address-7G5JUVKW.js → order-edit-shipping-address-RS3PRPVM.js} +10 -10
- package/dist/{order-list-QILNDFBC.js → order-list-JBCU6ZZD.js} +9 -9
- package/dist/{order-metadata-UBUSPFTW.js → order-metadata-2TOR4BJY.js} +10 -10
- package/dist/{order-request-transfer-EO76XRGE.js → order-request-transfer-6JJ2FQPA.js} +10 -10
- package/dist/pages/index.d.ts +320 -41
- package/dist/pages/index.js +98 -96
- package/dist/{payout-list-R6ESKT7V.js → payout-list-N6L7HNA5.js} +3 -3
- package/dist/{price-list-configuration-D6IS7UY5.js → price-list-configuration-BGV74K6U.js} +6 -6
- package/dist/{price-list-create-4TDXQ7UF.js → price-list-create-T4P2TWFS.js} +18 -18
- package/dist/{price-list-detail-TUKXO5WG.js → price-list-detail-JBXWXU7K.js} +18 -18
- package/dist/{price-list-edit-YCR47ZXS.js → price-list-edit-FQVZW4FT.js} +2 -2
- package/dist/{price-list-list-TSK3TWUX.js → price-list-list-KINPGGQQ.js} +6 -6
- package/dist/{price-list-prices-add-VEQQYNEA.js → price-list-prices-add-2R4A2UVP.js} +17 -17
- package/dist/{price-list-prices-edit-ANLZGAY4.js → price-list-prices-edit-PZN63VWV.js} +10 -10
- package/dist/{product-add-existing-attributes-3S3E3TDO.js → product-add-existing-attributes-LQ3S5RBE.js} +16 -16
- package/dist/{product-attributes-SY656CC5.js → product-attributes-JUEMRL5V.js} +1 -1
- package/dist/{product-bulk-edit-XU2MFL4U.js → product-bulk-edit-7GWRXFUC.js} +1 -1
- package/dist/{product-create-KILMAWD7.js → product-create-RUMS2AIE.js} +17 -17
- package/dist/{product-create-attribute-XM47T3D6.js → product-create-attribute-7P4LZP5R.js} +2 -2
- package/dist/{product-create-variant-3XVP5IWI.js → product-create-variant-74KLCMEU.js} +4 -4
- package/dist/{product-detail-B4HVVOY3.js → product-detail-XHT5SGCW.js} +15 -15
- package/dist/{product-edit-ZX33LEQM.js → product-edit-GAYL53YC.js} +1 -1
- package/dist/product-edit-attribute-EBES4PJ3.js +90 -0
- package/dist/{product-list-DNZVZ3NC.js → product-list-JQRCIWTE.js} +17 -17
- package/dist/{product-media-QY4RFTYZ.js → product-media-4LDPBVQ5.js} +4 -4
- package/dist/{product-metadata-TGAAEG4O.js → product-metadata-YZKS2MQV.js} +10 -10
- package/dist/{product-organization-JPPQYC5E.js → product-organization-6TQ4HKB2.js} +4 -4
- package/dist/{product-sales-channels-CVAXZ7C7.js → product-sales-channels-K7VOMWUP.js} +3 -3
- package/dist/{product-shipping-profile-7F5GW6PQ.js → product-shipping-profile-SYGR4IF7.js} +1 -1
- package/dist/{product-tag-create-MZV3LCQT.js → product-tag-create-J6SUTGLF.js} +10 -10
- package/dist/{product-tag-detail-SANSVX5Z.js → product-tag-detail-MCHNANH4.js} +20 -20
- package/dist/{product-tag-edit-3BSAEN4H.js → product-tag-edit-XTCRJPYD.js} +10 -10
- package/dist/{product-tag-list-NFOAK7II.js → product-tag-list-4SEHT2NG.js} +20 -20
- package/dist/{product-tag-metadata-VNH5GXMK.js → product-tag-metadata-UMQPCGKY.js} +10 -10
- package/dist/{product-type-detail-ZIGX5HUJ.js → product-type-detail-SHU5N2RG.js} +17 -17
- package/dist/{product-type-list-D7GAIR2E.js → product-type-list-AVAO26QW.js} +3 -3
- package/dist/{product-type-metadata-6KXQSYK5.js → product-type-metadata-RIRSRMDO.js} +10 -10
- package/dist/{product-variant-detail-LIXWU3V2.js → product-variant-detail-XWREJ4EK.js} +11 -11
- package/dist/{product-variant-edit-GK5A2XMB.js → product-variant-edit-PCD66JBM.js} +12 -12
- package/dist/{product-variant-metadata-4BULTZ3M.js → product-variant-metadata-UJOLOTCQ.js} +10 -10
- package/dist/{promotion-add-campaign-AU43PI2F.js → promotion-add-campaign-KS5SSTMP.js} +8 -3
- package/dist/{promotion-create-5BJ4EVAI.js → promotion-create-XYXVAF67.js} +14 -14
- package/dist/{promotion-detail-S5R5UXJ6.js → promotion-detail-EFW4P6N6.js} +21 -37
- package/dist/{promotion-edit-details-GURXKLSK.js → promotion-edit-details-SH27X7GF.js} +293 -143
- package/dist/{promotion-list-22NDDYPQ.js → promotion-list-MVXEOO5I.js} +10 -9
- package/dist/{refund-reason-create-SUJIXZMY.js → refund-reason-create-XEBLTB3C.js} +10 -10
- package/dist/{refund-reason-edit-B3Q2DGXR.js → refund-reason-edit-J3KQ2FVF.js} +10 -10
- package/dist/{refund-reason-list-JLKMODL4.js → refund-reason-list-I2EACZ64.js} +15 -15
- package/dist/{region-add-countries-LF3AV6GE.js → region-add-countries-GKKZVGKH.js} +2 -2
- package/dist/{region-create-CVQVVWVA.js → region-create-2XEJLBWS.js} +2 -2
- package/dist/{region-detail-JGSC4A2U.js → region-detail-LILWL7FN.js} +3 -3
- package/dist/{region-list-ZZJNZWOP.js → region-list-E6OMK3OU.js} +3 -3
- package/dist/{region-metadata-EFQS2FU6.js → region-metadata-GDKM4ND5.js} +10 -10
- package/dist/{reservation-create-WC7RIX5E.js → reservation-create-77EYD2ZZ.js} +2 -2
- package/dist/{reservation-detail-XYRHURYY.js → reservation-detail-M7ZAEO3G.js} +11 -11
- package/dist/{reservation-list-IKDEV3JB.js → reservation-list-EJMYXNZV.js} +5 -5
- package/dist/{reservation-metadata-44QNS5IN.js → reservation-metadata-E6WP6SHE.js} +10 -10
- package/dist/{reset-password-CCHTZ4YX.js → reset-password-P45OKOT4.js} +1 -1
- package/dist/{return-reason-list-6WUNAHM6.js → return-reason-list-QWQUXSXO.js} +7 -7
- package/dist/{sales-channel-add-products-PYO5W5KK.js → sales-channel-add-products-Q6YXGNQB.js} +16 -16
- package/dist/{sales-channel-create-WSROI4MD.js → sales-channel-create-BYCHXO7N.js} +2 -2
- package/dist/{sales-channel-detail-DBVRTBF7.js → sales-channel-detail-EQMYYPW6.js} +17 -17
- package/dist/{sales-channel-edit-SNXG34Z3.js → sales-channel-edit-KHHDBZQG.js} +2 -2
- package/dist/{sales-channel-list-VWXBOQYJ.js → sales-channel-list-J4624AXE.js} +12 -12
- package/dist/{sales-channel-metadata-2LJBDKYI.js → sales-channel-metadata-QAXDOSPG.js} +10 -10
- package/dist/{shipping-option-type-create-ZRWS4PGU.js → shipping-option-type-create-AULMQGRN.js} +10 -10
- package/dist/{shipping-option-type-detail-KUGZH5YF.js → shipping-option-type-detail-EQDAW4GJ.js} +10 -10
- package/dist/{shipping-option-type-edit-24XNCOIH.js → shipping-option-type-edit-NVXGY32I.js} +10 -10
- package/dist/{shipping-option-type-list-4XTVL3AD.js → shipping-option-type-list-PW44GDWO.js} +13 -13
- package/dist/{shipping-profile-metadata-O3AG4LS4.js → shipping-profile-metadata-OW5IGIW3.js} +10 -10
- package/dist/{shipping-profiles-list-4SBV3D52.js → shipping-profiles-list-HP3GZTW6.js} +3 -3
- package/dist/{store-bulk-edit-J5G2TKVA.js → store-bulk-edit-KOBCPVNM.js} +1 -1
- package/dist/{store-create-VKLIAHQL.js → store-create-YPCF45XH.js} +10 -10
- package/dist/{store-details-DWV3WMKC.js → store-details-KDCMXPK2.js} +18 -18
- package/dist/{store-edit-WIAZLSHU.js → store-edit-BGQJW7GH.js} +3 -3
- package/dist/{store-list-HZCRXW5L.js → store-list-SBY73JTY.js} +18 -18
- package/dist/{store-member-invite-6ZIH6B7U.js → store-member-invite-2WGAJVIX.js} +1 -1
- package/dist/{tax-region-create-2NPI4MUT.js → tax-region-create-7UUVKDZM.js} +11 -11
- package/dist/{tax-region-detail-W4RAVJVN.js → tax-region-detail-B2AIDTXD.js} +14 -14
- package/dist/{tax-region-edit-RZRSLGFZ.js → tax-region-edit-UQAMWLO5.js} +10 -10
- package/dist/{tax-region-list-Y2XSQSCD.js → tax-region-list-MVDXWVIK.js} +3 -3
- package/dist/{tax-region-metadata-OQX67IIE.js → tax-region-metadata-UONPCPC6.js} +10 -10
- package/dist/{tax-region-province-detail-BS7INZML.js → tax-region-province-detail-XFUAN2R7.js} +13 -13
- package/dist/{tax-region-tax-override-create-NRO7QCVL.js → tax-region-tax-override-create-7TQVZLLY.js} +20 -20
- package/dist/{tax-region-tax-override-edit-POJATJRW.js → tax-region-tax-override-edit-ZJ6TFQRV.js} +20 -20
- package/dist/{user-detail-RNP7ADME.js → user-detail-IYB2LYGS.js} +1 -1
- package/dist/{user-invite-TUDDN7KP.js → user-invite-ZGB23H4G.js} +2 -2
- package/dist/{user-list-JT3HWEGY.js → user-list-FZ7CGJ5N.js} +3 -3
- package/dist/{user-metadata-PNIWSBYP.js → user-metadata-OXHKB6LT.js} +10 -10
- package/package.json +15 -15
- package/dist/chunk-S2WEYEQR.js +0 -14
- package/dist/product-edit-attribute-QC22TRX4.js +0 -336
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProductMediaSection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PEPANIBF.js";
|
|
4
4
|
import {
|
|
5
5
|
SectionRow
|
|
6
6
|
} from "./chunk-3XPXUIK3.js";
|
|
@@ -18,21 +18,25 @@ import {
|
|
|
18
18
|
} from "./chunk-THHRRYRS.js";
|
|
19
19
|
import {
|
|
20
20
|
require_dist
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4UQMRTSC.js";
|
|
22
22
|
import {
|
|
23
23
|
_DataTable,
|
|
24
24
|
useDataTable
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IZYVY2QV.js";
|
|
26
26
|
import {
|
|
27
27
|
useSeller
|
|
28
28
|
} from "./chunk-6HHMZ2QV.js";
|
|
29
29
|
import {
|
|
30
30
|
ActionMenu
|
|
31
31
|
} from "./chunk-BDGZ4EQO.js";
|
|
32
|
+
import {
|
|
33
|
+
useProductAttributes
|
|
34
|
+
} from "./chunk-XPTKT2SY.js";
|
|
32
35
|
import {
|
|
33
36
|
TwoColumnPageSkeleton
|
|
34
37
|
} from "./chunk-INNFZYX2.js";
|
|
35
38
|
import {
|
|
39
|
+
useBatchProductAttributes,
|
|
36
40
|
useCancelProductChange,
|
|
37
41
|
useConfirmProduct,
|
|
38
42
|
useConfirmProductChange,
|
|
@@ -42,9 +46,8 @@ import {
|
|
|
42
46
|
useProductChange,
|
|
43
47
|
useProductVariants,
|
|
44
48
|
useRejectProduct,
|
|
45
|
-
useRemoveAttributeFromProduct,
|
|
46
49
|
useRequestProductChanges
|
|
47
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-QE57IFSR.js";
|
|
48
51
|
import {
|
|
49
52
|
sdk
|
|
50
53
|
} from "./chunk-JTAECZCT.js";
|
|
@@ -461,216 +464,50 @@ var ProductActiveRequestSection = ({
|
|
|
461
464
|
};
|
|
462
465
|
|
|
463
466
|
// src/pages/products/product-detail/components/product-attribute-section/product-attribute-section.tsx
|
|
467
|
+
import { toast as toast3 } from "@medusajs/ui";
|
|
464
468
|
import {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
PencilSquare
|
|
471
|
-
} from "@medusajs/icons";
|
|
472
|
-
import {
|
|
473
|
-
Badge,
|
|
474
|
-
Container as Container2,
|
|
475
|
-
Heading as Heading2,
|
|
476
|
-
Text as Text3,
|
|
477
|
-
toast as toast3,
|
|
478
|
-
Tooltip,
|
|
479
|
-
usePrompt
|
|
480
|
-
} from "@medusajs/ui";
|
|
481
|
-
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
482
|
-
import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
|
|
483
|
-
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
484
|
-
var AttributeActions = ({
|
|
485
|
-
productId,
|
|
486
|
-
attribute
|
|
469
|
+
ProductAttributeSection as SharedProductAttributeSection
|
|
470
|
+
} from "@mercurjs/dashboard-shared";
|
|
471
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
472
|
+
var ProductAttributeSection = ({
|
|
473
|
+
product
|
|
487
474
|
}) => {
|
|
488
|
-
const
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
475
|
+
const categoryId = product.categories?.[0]?.id;
|
|
476
|
+
const { product_attributes } = useProductAttributes(
|
|
477
|
+
{ category_id: categoryId, is_required: true },
|
|
478
|
+
{ enabled: !!categoryId }
|
|
479
|
+
);
|
|
480
|
+
const { mutateAsync } = useBatchProductAttributes(product.id);
|
|
481
|
+
const onDeleteAttribute = async (attribute) => {
|
|
482
|
+
try {
|
|
483
|
+
await mutateAsync(
|
|
484
|
+
{ remove: [attribute.id] },
|
|
485
|
+
{
|
|
486
|
+
onError: (error) => {
|
|
487
|
+
toast3.error(error.message);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
);
|
|
491
|
+
} catch {
|
|
502
492
|
}
|
|
503
|
-
await mutateAsync(void 0, {
|
|
504
|
-
onError: (error) => {
|
|
505
|
-
toast3.error(error.message);
|
|
506
|
-
}
|
|
507
|
-
});
|
|
508
493
|
};
|
|
509
494
|
return /* @__PURE__ */ jsx4(
|
|
510
|
-
|
|
495
|
+
SharedProductAttributeSection,
|
|
511
496
|
{
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
{
|
|
516
|
-
label: t("actions.edit"),
|
|
517
|
-
to: `attributes/${attribute.id}/edit`,
|
|
518
|
-
icon: /* @__PURE__ */ jsx4(PencilSquare, {})
|
|
519
|
-
}
|
|
520
|
-
]
|
|
521
|
-
},
|
|
522
|
-
...attribute.is_required ? [] : [
|
|
523
|
-
{
|
|
524
|
-
actions: [
|
|
525
|
-
{
|
|
526
|
-
label: t("actions.delete"),
|
|
527
|
-
onClick: handleDelete,
|
|
528
|
-
icon: /* @__PURE__ */ jsx4(Trash, {})
|
|
529
|
-
}
|
|
530
|
-
]
|
|
531
|
-
}
|
|
532
|
-
]
|
|
533
|
-
]
|
|
497
|
+
product,
|
|
498
|
+
requiredAttributes: product_attributes,
|
|
499
|
+
onDeleteAttribute
|
|
534
500
|
}
|
|
535
501
|
);
|
|
536
502
|
};
|
|
537
|
-
var AttributeValue = ({
|
|
538
|
-
attribute
|
|
539
|
-
}) => {
|
|
540
|
-
const { t } = useTranslation4();
|
|
541
|
-
const values = attribute.values?.map((v) => v.name) ?? [];
|
|
542
|
-
if (["single_select", "multi_select"].includes(attribute.type)) {
|
|
543
|
-
return /* @__PURE__ */ jsx4("div", { className: "flex flex-wrap gap-1", children: values.map((val) => /* @__PURE__ */ jsx4(
|
|
544
|
-
Badge,
|
|
545
|
-
{
|
|
546
|
-
size: "2xsmall",
|
|
547
|
-
className: "flex min-w-[20px] items-center justify-center",
|
|
548
|
-
children: val
|
|
549
|
-
},
|
|
550
|
-
val
|
|
551
|
-
)) });
|
|
552
|
-
}
|
|
553
|
-
const textValue = attribute.type === "toggle" ? values.map((val) => val === "true" ? t("general.yes") : t("general.no")).join(", ") || "-" : values.join(", ") || "-";
|
|
554
|
-
return /* @__PURE__ */ jsx4(Tooltip, { content: /* @__PURE__ */ jsx4("span", { className: "break-all", children: textValue }), children: /* @__PURE__ */ jsx4(
|
|
555
|
-
Text3,
|
|
556
|
-
{
|
|
557
|
-
size: "small",
|
|
558
|
-
leading: "compact",
|
|
559
|
-
className: "line-clamp-3 min-w-0 break-words text-ui-fg-subtle",
|
|
560
|
-
children: textValue
|
|
561
|
-
}
|
|
562
|
-
) });
|
|
563
|
-
};
|
|
564
|
-
var AttributeGroup = ({
|
|
565
|
-
icon,
|
|
566
|
-
title,
|
|
567
|
-
description,
|
|
568
|
-
attributes,
|
|
569
|
-
productId
|
|
570
|
-
}) => {
|
|
571
|
-
const { t } = useTranslation4();
|
|
572
|
-
if (!attributes.length) {
|
|
573
|
-
return null;
|
|
574
|
-
}
|
|
575
|
-
return /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-y-4 px-3 py-4", children: [
|
|
576
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-3 px-3", children: [
|
|
577
|
-
/* @__PURE__ */ jsx4("div", { className: "text-ui-fg-muted flex h-8 w-8 items-center justify-center rounded-lg border border-ui-border-base bg-ui-bg-component", children: icon }),
|
|
578
|
-
/* @__PURE__ */ jsxs4("div", { children: [
|
|
579
|
-
/* @__PURE__ */ jsx4(Text3, { size: "small", weight: "plus", leading: "compact", children: title }),
|
|
580
|
-
/* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: description })
|
|
581
|
-
] })
|
|
582
|
-
] }),
|
|
583
|
-
/* @__PURE__ */ jsx4("div", { className: "flex flex-col gap-y-0", children: /* @__PURE__ */ jsx4("div", { className: "overflow-hidden rounded-xl border border-ui-border-base", children: attributes.map((attr, index) => {
|
|
584
|
-
return /* @__PURE__ */ jsx4(
|
|
585
|
-
"div",
|
|
586
|
-
{
|
|
587
|
-
className: index < attributes.length - 1 ? "border-b border-ui-border-base" : "",
|
|
588
|
-
children: /* @__PURE__ */ jsxs4("div", { className: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_28px] items-center gap-4 px-4 py-3 bg-ui-bg-component", children: [
|
|
589
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2 text-ui-fg-subtle", children: [
|
|
590
|
-
/* @__PURE__ */ jsx4(Text3, { size: "small", weight: "plus", leading: "compact", children: attr.name }),
|
|
591
|
-
attr.description && /* @__PURE__ */ jsx4(Tooltip, { content: attr.description, children: /* @__PURE__ */ jsx4("span", { className: "text-ui-fg-muted flex items-center", children: /* @__PURE__ */ jsx4(InformationCircleSolid, {}) }) }),
|
|
592
|
-
attr.is_required && /* @__PURE__ */ jsx4(Tooltip, { content: t("products.attributeRequiredByMarketplace"), children: /* @__PURE__ */ jsx4("span", { className: "text-ui-fg-muted flex items-center", children: /* @__PURE__ */ jsx4(InformationCircleSolid, {}) }) })
|
|
593
|
-
] }),
|
|
594
|
-
/* @__PURE__ */ jsx4(AttributeValue, { attribute: attr }),
|
|
595
|
-
/* @__PURE__ */ jsx4(AttributeActions, { productId, attribute: attr })
|
|
596
|
-
] })
|
|
597
|
-
},
|
|
598
|
-
attr.id
|
|
599
|
-
);
|
|
600
|
-
}) }) })
|
|
601
|
-
] });
|
|
602
|
-
};
|
|
603
|
-
var ProductAttributeSection = ({
|
|
604
|
-
product
|
|
605
|
-
}) => {
|
|
606
|
-
const { t } = useTranslation4();
|
|
607
|
-
const allAttributes = product.attributes ?? [];
|
|
608
|
-
const variantAttributes = allAttributes.filter((a) => a.is_variant_axis);
|
|
609
|
-
const infoAttributes = allAttributes.filter((a) => !a.is_variant_axis);
|
|
610
|
-
const isEmpty = !variantAttributes.length && !infoAttributes.length;
|
|
611
|
-
return /* @__PURE__ */ jsxs4(Container2, { className: "p-0", children: [
|
|
612
|
-
/* @__PURE__ */ jsxs4(
|
|
613
|
-
"div",
|
|
614
|
-
{
|
|
615
|
-
className: `flex items-center justify-between px-6 py-4${isEmpty ? "" : " border-b border-ui-border-base"}`,
|
|
616
|
-
children: [
|
|
617
|
-
/* @__PURE__ */ jsx4(Heading2, { level: "h2", children: t("products.attributes") }),
|
|
618
|
-
/* @__PURE__ */ jsx4(
|
|
619
|
-
ActionMenu,
|
|
620
|
-
{
|
|
621
|
-
groups: [
|
|
622
|
-
{
|
|
623
|
-
actions: [
|
|
624
|
-
{
|
|
625
|
-
label: t("products.create.attributes.addExisting"),
|
|
626
|
-
to: "attributes/add",
|
|
627
|
-
icon: /* @__PURE__ */ jsx4(Plus, {})
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
label: t("products.create.attributes.createNew"),
|
|
631
|
-
to: "attributes/create",
|
|
632
|
-
icon: /* @__PURE__ */ jsx4(PencilSquare, {})
|
|
633
|
-
}
|
|
634
|
-
]
|
|
635
|
-
}
|
|
636
|
-
]
|
|
637
|
-
}
|
|
638
|
-
)
|
|
639
|
-
]
|
|
640
|
-
}
|
|
641
|
-
),
|
|
642
|
-
variantAttributes.length > 0 && /* @__PURE__ */ jsx4(
|
|
643
|
-
AttributeGroup,
|
|
644
|
-
{
|
|
645
|
-
icon: /* @__PURE__ */ jsx4(Swatch, {}),
|
|
646
|
-
title: t("products.attributeVariations"),
|
|
647
|
-
description: t("products.attributeVariantsDescription"),
|
|
648
|
-
attributes: variantAttributes,
|
|
649
|
-
productId: product.id
|
|
650
|
-
}
|
|
651
|
-
),
|
|
652
|
-
variantAttributes.length > 0 && infoAttributes.length > 0 && /* @__PURE__ */ jsx4("div", { className: "border-t border-dashed border-ui-border-base" }),
|
|
653
|
-
infoAttributes.length > 0 && /* @__PURE__ */ jsx4(
|
|
654
|
-
AttributeGroup,
|
|
655
|
-
{
|
|
656
|
-
icon: /* @__PURE__ */ jsx4(DropCap, {}),
|
|
657
|
-
title: t("products.attributeProductInformation"),
|
|
658
|
-
description: t("products.attributeProductInformationDescription"),
|
|
659
|
-
attributes: infoAttributes,
|
|
660
|
-
productId: product.id
|
|
661
|
-
}
|
|
662
|
-
),
|
|
663
|
-
/* @__PURE__ */ jsx4(DisplayExtensionZone2, { model: "product", zone: "attributes", data: product })
|
|
664
|
-
] });
|
|
665
|
-
};
|
|
666
503
|
|
|
667
504
|
// src/pages/products/product-detail/components/product-general-section/product-general-section.tsx
|
|
668
|
-
import { PencilSquare
|
|
669
|
-
import { Container as
|
|
670
|
-
import { useTranslation as
|
|
505
|
+
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
506
|
+
import { Container as Container2, Heading as Heading2, StatusBadge, usePrompt } from "@medusajs/ui";
|
|
507
|
+
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
671
508
|
import { useNavigate } from "react-router-dom";
|
|
672
|
-
import { DisplayExtensionZone as
|
|
673
|
-
import { jsx as jsx5, jsxs as
|
|
509
|
+
import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
|
|
510
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
674
511
|
var GENERAL_FIELD_IDS = [
|
|
675
512
|
"title",
|
|
676
513
|
"status",
|
|
@@ -696,8 +533,8 @@ var productStatusColor = (status) => {
|
|
|
696
533
|
var ProductGeneralSection = ({
|
|
697
534
|
product
|
|
698
535
|
}) => {
|
|
699
|
-
const { t } =
|
|
700
|
-
const prompt =
|
|
536
|
+
const { t } = useTranslation4();
|
|
537
|
+
const prompt = usePrompt();
|
|
701
538
|
const navigate = useNavigate();
|
|
702
539
|
const { mutateAsync } = useDeleteProduct(product.id);
|
|
703
540
|
const handleDelete = async () => {
|
|
@@ -718,15 +555,15 @@ var ProductGeneralSection = ({
|
|
|
718
555
|
}
|
|
719
556
|
});
|
|
720
557
|
};
|
|
721
|
-
return /* @__PURE__ */
|
|
722
|
-
/* @__PURE__ */
|
|
558
|
+
return /* @__PURE__ */ jsxs4(Container2, { className: "divide-y p-0", "data-testid": "product-general-section", children: [
|
|
559
|
+
/* @__PURE__ */ jsxs4(
|
|
723
560
|
"div",
|
|
724
561
|
{
|
|
725
562
|
className: "flex items-center justify-between px-6 py-4",
|
|
726
563
|
"data-testid": "product-general-header",
|
|
727
564
|
children: [
|
|
728
|
-
/* @__PURE__ */ jsx5(DisplayField, { model: "product", zone: "general", id: "title", data: product, children: /* @__PURE__ */ jsx5(
|
|
729
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ jsx5(DisplayField, { model: "product", zone: "general", id: "title", data: product, children: /* @__PURE__ */ jsx5(Heading2, { "data-testid": "product-general-title", children: product.title }) }),
|
|
566
|
+
/* @__PURE__ */ jsxs4(
|
|
730
567
|
"div",
|
|
731
568
|
{
|
|
732
569
|
className: "flex items-center gap-x-4",
|
|
@@ -758,7 +595,7 @@ var ProductGeneralSection = ({
|
|
|
758
595
|
{
|
|
759
596
|
label: t("actions.edit"),
|
|
760
597
|
to: "edit",
|
|
761
|
-
icon: /* @__PURE__ */ jsx5(
|
|
598
|
+
icon: /* @__PURE__ */ jsx5(PencilSquare, {})
|
|
762
599
|
}
|
|
763
600
|
]
|
|
764
601
|
},
|
|
@@ -767,7 +604,7 @@ var ProductGeneralSection = ({
|
|
|
767
604
|
{
|
|
768
605
|
label: t("actions.delete"),
|
|
769
606
|
onClick: handleDelete,
|
|
770
|
-
icon: /* @__PURE__ */ jsx5(
|
|
607
|
+
icon: /* @__PURE__ */ jsx5(Trash, {})
|
|
771
608
|
}
|
|
772
609
|
]
|
|
773
610
|
}
|
|
@@ -823,7 +660,7 @@ var ProductGeneralSection = ({
|
|
|
823
660
|
}
|
|
824
661
|
),
|
|
825
662
|
/* @__PURE__ */ jsx5(
|
|
826
|
-
|
|
663
|
+
DisplayExtensionZone2,
|
|
827
664
|
{
|
|
828
665
|
model: "product",
|
|
829
666
|
zone: "general",
|
|
@@ -835,29 +672,29 @@ var ProductGeneralSection = ({
|
|
|
835
672
|
};
|
|
836
673
|
|
|
837
674
|
// src/pages/products/product-detail/components/product-organization-section/product-organization-section.tsx
|
|
838
|
-
import { PencilSquare as
|
|
839
|
-
import { Badge
|
|
840
|
-
import { useTranslation as
|
|
675
|
+
import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
|
|
676
|
+
import { Badge, Container as Container3, Heading as Heading3, Tooltip } from "@medusajs/ui";
|
|
677
|
+
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
841
678
|
import { Link } from "react-router-dom";
|
|
842
|
-
import { DisplayExtensionZone as
|
|
843
|
-
import { jsx as jsx6, jsxs as
|
|
679
|
+
import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
|
|
680
|
+
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
844
681
|
var ProductOrganizationSection = ({
|
|
845
682
|
product
|
|
846
683
|
}) => {
|
|
847
|
-
const { t } =
|
|
848
|
-
return /* @__PURE__ */
|
|
849
|
-
|
|
684
|
+
const { t } = useTranslation5();
|
|
685
|
+
return /* @__PURE__ */ jsxs5(
|
|
686
|
+
Container3,
|
|
850
687
|
{
|
|
851
688
|
className: "divide-y p-0",
|
|
852
689
|
"data-testid": "product-organization-section",
|
|
853
690
|
children: [
|
|
854
|
-
/* @__PURE__ */
|
|
691
|
+
/* @__PURE__ */ jsxs5(
|
|
855
692
|
"div",
|
|
856
693
|
{
|
|
857
694
|
className: "flex items-center justify-between px-6 py-4",
|
|
858
695
|
"data-testid": "product-organization-header",
|
|
859
696
|
children: [
|
|
860
|
-
/* @__PURE__ */ jsx6(
|
|
697
|
+
/* @__PURE__ */ jsx6(Heading3, { level: "h2", "data-testid": "product-organization-title", children: t("products.organization.header") }),
|
|
861
698
|
/* @__PURE__ */ jsx6(
|
|
862
699
|
ActionMenu,
|
|
863
700
|
{
|
|
@@ -867,7 +704,7 @@ var ProductOrganizationSection = ({
|
|
|
867
704
|
{
|
|
868
705
|
label: t("actions.edit"),
|
|
869
706
|
to: "organization",
|
|
870
|
-
icon: /* @__PURE__ */ jsx6(
|
|
707
|
+
icon: /* @__PURE__ */ jsx6(PencilSquare2, {})
|
|
871
708
|
}
|
|
872
709
|
]
|
|
873
710
|
}
|
|
@@ -936,13 +773,13 @@ var ProductOrganizationSection = ({
|
|
|
936
773
|
"data-testid": "product-type-row"
|
|
937
774
|
}
|
|
938
775
|
),
|
|
939
|
-
/* @__PURE__ */ jsx6(
|
|
776
|
+
/* @__PURE__ */ jsx6(DisplayExtensionZone3, { model: "product", zone: "organize", data: product })
|
|
940
777
|
]
|
|
941
778
|
}
|
|
942
779
|
);
|
|
943
780
|
};
|
|
944
781
|
var OrganizationTag = ({ label, to }) => {
|
|
945
|
-
return /* @__PURE__ */ jsx6(
|
|
782
|
+
return /* @__PURE__ */ jsx6(Tooltip, { content: label, children: /* @__PURE__ */ jsx6(Badge, { size: "2xsmall", className: "block w-fit truncate", asChild: true, children: /* @__PURE__ */ jsx6(
|
|
946
783
|
Link,
|
|
947
784
|
{
|
|
948
785
|
to,
|
|
@@ -954,28 +791,28 @@ var OrganizationTag = ({ label, to }) => {
|
|
|
954
791
|
|
|
955
792
|
// src/pages/products/product-detail/components/product-variant-section/product-variant-section.tsx
|
|
956
793
|
import { useCallback, useMemo } from "react";
|
|
957
|
-
import { PencilSquare as
|
|
958
|
-
import { DisplayExtensionZone as
|
|
794
|
+
import { PencilSquare as PencilSquare3, Trash as Trash2 } from "@medusajs/icons";
|
|
795
|
+
import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
|
|
959
796
|
import {
|
|
960
|
-
Badge as
|
|
797
|
+
Badge as Badge2,
|
|
961
798
|
Button as Button3,
|
|
962
|
-
Container as
|
|
963
|
-
Heading as
|
|
799
|
+
Container as Container4,
|
|
800
|
+
Heading as Heading4,
|
|
964
801
|
toast as toast4,
|
|
965
|
-
Tooltip as
|
|
966
|
-
usePrompt as
|
|
802
|
+
Tooltip as Tooltip2,
|
|
803
|
+
usePrompt as usePrompt2
|
|
967
804
|
} from "@medusajs/ui";
|
|
968
805
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
969
806
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
970
|
-
import { useTranslation as
|
|
807
|
+
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
971
808
|
import { Link as Link2, useNavigate as useNavigate2, useSearchParams } from "react-router-dom";
|
|
972
|
-
import { jsx as jsx7, jsxs as
|
|
809
|
+
import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
973
810
|
var PAGE_SIZE = 10;
|
|
974
811
|
var PREFIX = "pv";
|
|
975
812
|
var ProductVariantSection = ({
|
|
976
813
|
product
|
|
977
814
|
}) => {
|
|
978
|
-
const { t } =
|
|
815
|
+
const { t } = useTranslation6();
|
|
979
816
|
const { q, order, offset, created_at, updated_at } = useQueryParams(
|
|
980
817
|
["q", "order", "offset", "created_at", "updated_at"],
|
|
981
818
|
PREFIX
|
|
@@ -1009,9 +846,9 @@ var ProductVariantSection = ({
|
|
|
1009
846
|
if (isError) {
|
|
1010
847
|
throw error;
|
|
1011
848
|
}
|
|
1012
|
-
return /* @__PURE__ */
|
|
1013
|
-
/* @__PURE__ */
|
|
1014
|
-
/* @__PURE__ */ jsx7(
|
|
849
|
+
return /* @__PURE__ */ jsxs6(Container4, { className: "divide-y p-0", "data-testid": "product-variant-section", children: [
|
|
850
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
851
|
+
/* @__PURE__ */ jsx7(Heading4, { level: "h2", children: t("products.variants.header") }),
|
|
1015
852
|
/* @__PURE__ */ jsx7(
|
|
1016
853
|
Button3,
|
|
1017
854
|
{
|
|
@@ -1044,15 +881,15 @@ var ProductVariantSection = ({
|
|
|
1044
881
|
}
|
|
1045
882
|
}
|
|
1046
883
|
),
|
|
1047
|
-
/* @__PURE__ */ jsx7(
|
|
884
|
+
/* @__PURE__ */ jsx7(DisplayExtensionZone4, { model: "product", zone: "variants", data: product })
|
|
1048
885
|
] });
|
|
1049
886
|
};
|
|
1050
887
|
var columnHelper = createColumnHelper();
|
|
1051
888
|
var useColumns = (product) => {
|
|
1052
|
-
const { t } =
|
|
889
|
+
const { t } = useTranslation6();
|
|
1053
890
|
const navigate = useNavigate2();
|
|
1054
891
|
const { mutateAsync } = useDeleteVariantLazy(product.id);
|
|
1055
|
-
const prompt =
|
|
892
|
+
const prompt = usePrompt2();
|
|
1056
893
|
const [searchParams] = useSearchParams();
|
|
1057
894
|
const tableSearchParams = useMemo(() => {
|
|
1058
895
|
const filtered = new URLSearchParams();
|
|
@@ -1108,8 +945,8 @@ var useColumns = (product) => {
|
|
|
1108
945
|
{
|
|
1109
946
|
className: "flex flex-wrap items-center gap-1",
|
|
1110
947
|
"data-testid": `product-variant-attribute-${attribute.id}-${row.original.id}`,
|
|
1111
|
-
children: /* @__PURE__ */ jsx7(
|
|
1112
|
-
|
|
948
|
+
children: /* @__PURE__ */ jsx7(Tooltip2, { content: variantOpt.value, children: /* @__PURE__ */ jsx7(
|
|
949
|
+
Badge2,
|
|
1113
950
|
{
|
|
1114
951
|
size: "2xsmall",
|
|
1115
952
|
title: variantOpt.value,
|
|
@@ -1131,7 +968,7 @@ var useColumns = (product) => {
|
|
|
1131
968
|
header: t("fields.title"),
|
|
1132
969
|
cell: ({ getValue }) => {
|
|
1133
970
|
const value = getValue();
|
|
1134
|
-
return /* @__PURE__ */
|
|
971
|
+
return /* @__PURE__ */ jsxs6("div", { className: "flex h-full w-full max-w-[250px] items-center gap-x-3 overflow-hidden", children: [
|
|
1135
972
|
/* @__PURE__ */ jsx7("div", { className: "w-fit flex-shrink-0", children: /* @__PURE__ */ jsx7(Thumbnail, { src: product.thumbnail }) }),
|
|
1136
973
|
value ? /* @__PURE__ */ jsx7("span", { title: value, className: "truncate", children: value }) : /* @__PURE__ */ jsx7("span", { className: "text-ui-fg-muted", children: "-" })
|
|
1137
974
|
] });
|
|
@@ -1155,7 +992,7 @@ var useColumns = (product) => {
|
|
|
1155
992
|
{
|
|
1156
993
|
actions: [
|
|
1157
994
|
{
|
|
1158
|
-
icon: /* @__PURE__ */ jsx7(
|
|
995
|
+
icon: /* @__PURE__ */ jsx7(PencilSquare3, {}),
|
|
1159
996
|
label: t("actions.edit"),
|
|
1160
997
|
onClick: () => navigate(
|
|
1161
998
|
`edit-variant?variant_id=${row.original.id}&${tableSearchParams.toString()}`,
|
|
@@ -1171,7 +1008,7 @@ var useColumns = (product) => {
|
|
|
1171
1008
|
{
|
|
1172
1009
|
actions: [
|
|
1173
1010
|
{
|
|
1174
|
-
icon: /* @__PURE__ */ jsx7(
|
|
1011
|
+
icon: /* @__PURE__ */ jsx7(Trash2, {}),
|
|
1175
1012
|
label: t("actions.delete"),
|
|
1176
1013
|
onClick: () => handleDelete(row.original.id, row.original.title ?? "")
|
|
1177
1014
|
}
|
|
@@ -1186,7 +1023,7 @@ var useColumns = (product) => {
|
|
|
1186
1023
|
);
|
|
1187
1024
|
};
|
|
1188
1025
|
var useFilters = () => {
|
|
1189
|
-
const { t } =
|
|
1026
|
+
const { t } = useTranslation6();
|
|
1190
1027
|
return useMemo(
|
|
1191
1028
|
() => [
|
|
1192
1029
|
{ key: "created_at", label: t("fields.createdAt"), type: "date" },
|
|
@@ -1196,7 +1033,7 @@ var useFilters = () => {
|
|
|
1196
1033
|
);
|
|
1197
1034
|
};
|
|
1198
1035
|
var useOrderBy = () => {
|
|
1199
|
-
const { t } =
|
|
1036
|
+
const { t } = useTranslation6();
|
|
1200
1037
|
return useMemo(
|
|
1201
1038
|
() => [
|
|
1202
1039
|
{ key: "title", label: t("fields.title") },
|
|
@@ -1207,7 +1044,7 @@ var useOrderBy = () => {
|
|
|
1207
1044
|
};
|
|
1208
1045
|
|
|
1209
1046
|
// src/pages/products/product-detail/product-detail.tsx
|
|
1210
|
-
import { jsx as jsx8, jsxs as
|
|
1047
|
+
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1211
1048
|
var Root = ({ children }) => {
|
|
1212
1049
|
const initialData = useLoaderData();
|
|
1213
1050
|
const { id } = useParams();
|
|
@@ -1244,7 +1081,7 @@ var Root = ({ children }) => {
|
|
|
1244
1081
|
"data-testid": "product-detail-page",
|
|
1245
1082
|
children
|
|
1246
1083
|
}
|
|
1247
|
-
) : /* @__PURE__ */
|
|
1084
|
+
) : /* @__PURE__ */ jsxs7(
|
|
1248
1085
|
TwoColumnPage,
|
|
1249
1086
|
{
|
|
1250
1087
|
data: product,
|
|
@@ -1252,14 +1089,14 @@ var Root = ({ children }) => {
|
|
|
1252
1089
|
showMetadata: true,
|
|
1253
1090
|
"data-testid": "product-detail-page",
|
|
1254
1091
|
children: [
|
|
1255
|
-
/* @__PURE__ */ jsx8(TwoColumnPage.Main, { "data-testid": "product-detail-main", children: /* @__PURE__ */
|
|
1092
|
+
/* @__PURE__ */ jsx8(TwoColumnPage.Main, { "data-testid": "product-detail-main", children: /* @__PURE__ */ jsxs7(WidgetZone, { id: "product.detail.main", data: product, children: [
|
|
1256
1093
|
/* @__PURE__ */ jsx8(ProductActiveRequestSection, { product }),
|
|
1257
1094
|
/* @__PURE__ */ jsx8(ProductActiveEditSection, { product }),
|
|
1258
1095
|
/* @__PURE__ */ jsx8(ProductGeneralSection, { product }),
|
|
1259
1096
|
/* @__PURE__ */ jsx8(ProductMediaSection, { product }),
|
|
1260
1097
|
/* @__PURE__ */ jsx8(ProductVariantSection, { product })
|
|
1261
1098
|
] }) }),
|
|
1262
|
-
/* @__PURE__ */ jsx8(TwoColumnPage.Sidebar, { "data-testid": "product-detail-sidebar", children: /* @__PURE__ */
|
|
1099
|
+
/* @__PURE__ */ jsx8(TwoColumnPage.Sidebar, { "data-testid": "product-detail-sidebar", children: /* @__PURE__ */ jsxs7(WidgetZone, { id: "product.detail.side", data: product, children: [
|
|
1263
1100
|
/* @__PURE__ */ jsx8(ProductOrganizationSection, { product }),
|
|
1264
1101
|
/* @__PURE__ */ jsx8(ProductAttributeSection, { product })
|
|
1265
1102
|
] }) })
|