@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
|
@@ -2,8 +2,12 @@ import {
|
|
|
2
2
|
DateRangeDisplay
|
|
3
3
|
} from "./chunk-RK5N3XIX.js";
|
|
4
4
|
import {
|
|
5
|
-
getPromotionStatus
|
|
6
|
-
|
|
5
|
+
getPromotionStatus,
|
|
6
|
+
getPromotionType
|
|
7
|
+
} from "./chunk-EXZFNGEH.js";
|
|
8
|
+
import {
|
|
9
|
+
PROMOTION_DETAIL_BASE_FIELDS
|
|
10
|
+
} from "./chunk-2IDWFEKH.js";
|
|
7
11
|
import {
|
|
8
12
|
formatPercentage
|
|
9
13
|
} from "./chunk-QDPLZDMX.js";
|
|
@@ -15,12 +19,12 @@ import {
|
|
|
15
19
|
} from "./chunk-E74OUNA3.js";
|
|
16
20
|
import {
|
|
17
21
|
NoRecords
|
|
18
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VBEQXZ2Z.js";
|
|
19
23
|
import {
|
|
20
24
|
useDeletePromotion,
|
|
21
25
|
usePromotion,
|
|
22
26
|
usePromotionRules
|
|
23
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RLOKMTTN.js";
|
|
24
28
|
import {
|
|
25
29
|
ActionMenu
|
|
26
30
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -35,14 +39,16 @@ import { useLinkQuery as useLinkQuery4, WidgetZone } from "@mercurjs/dashboard-s
|
|
|
35
39
|
|
|
36
40
|
// src/pages/promotions/promotion-detail/components/campaign-section/campaign-section.tsx
|
|
37
41
|
import { ArrowUpRightOnBox, PencilSquare } from "@medusajs/icons";
|
|
38
|
-
import { Container, Heading, Text } from "@medusajs/ui";
|
|
42
|
+
import { Container, Heading, InlineTip, Text } from "@medusajs/ui";
|
|
39
43
|
import { useTranslation } from "react-i18next";
|
|
40
44
|
import { useParams } from "react-router-dom";
|
|
41
45
|
import { DisplayExtensionZone, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
42
46
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
43
47
|
var CampaignDetailSection = ({
|
|
44
|
-
campaign
|
|
48
|
+
campaign,
|
|
49
|
+
warning
|
|
45
50
|
}) => {
|
|
51
|
+
const { t } = useTranslation();
|
|
46
52
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-3", children: [
|
|
47
53
|
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-muted flex items-center gap-x-1.5", children: [
|
|
48
54
|
/* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", className: "text-ui-fg-base", children: campaign.name }),
|
|
@@ -56,19 +62,23 @@ var CampaignDetailSection = ({
|
|
|
56
62
|
endsAt: campaign.ends_at,
|
|
57
63
|
showTime: true
|
|
58
64
|
}
|
|
59
|
-
)
|
|
65
|
+
),
|
|
66
|
+
warning && /* @__PURE__ */ jsx(InlineTip, { variant: "warning", label: t("general.warning"), children: warning })
|
|
60
67
|
] });
|
|
61
68
|
};
|
|
62
69
|
var CampaignSection = ({
|
|
63
|
-
campaign: campaignProp
|
|
70
|
+
campaign: campaignProp,
|
|
71
|
+
promotion: promotionProp
|
|
64
72
|
}) => {
|
|
65
73
|
const { t } = useTranslation();
|
|
66
74
|
const { id } = useParams();
|
|
67
|
-
const linkQuery = useLinkQuery("promotion");
|
|
68
|
-
const { promotion } = usePromotion(id, linkQuery, {
|
|
75
|
+
const linkQuery = useLinkQuery("promotion", PROMOTION_DETAIL_BASE_FIELDS);
|
|
76
|
+
const { promotion: fetchedPromotion } = usePromotion(id, linkQuery, {
|
|
69
77
|
enabled: campaignProp === void 0
|
|
70
78
|
});
|
|
79
|
+
const promotion = promotionProp ?? fetchedPromotion;
|
|
71
80
|
const campaign = campaignProp !== void 0 ? campaignProp : promotion?.campaign ?? null;
|
|
81
|
+
const warning = campaign && promotion?.status !== "active" ? t("promotions.campaignSection.warnings.promotionMustBeActive") : campaign?.ends_at ? t("promotions.campaignSection.warnings.promotionExpires") : void 0;
|
|
72
82
|
const actions = [
|
|
73
83
|
{
|
|
74
84
|
label: t("actions.edit"),
|
|
@@ -98,7 +108,7 @@ var CampaignSection = ({
|
|
|
98
108
|
}
|
|
99
109
|
)
|
|
100
110
|
] }),
|
|
101
|
-
campaign ? /* @__PURE__ */ jsx("div", { "data-testid": "promotion-campaign-section-detail", children: /* @__PURE__ */ jsx(CampaignDetailSection, { campaign }) }) : /* @__PURE__ */ jsx("div", { "data-testid": "promotion-campaign-section-no-records", children: /* @__PURE__ */ jsx(
|
|
111
|
+
campaign ? /* @__PURE__ */ jsx("div", { "data-testid": "promotion-campaign-section-detail", children: /* @__PURE__ */ jsx(CampaignDetailSection, { campaign, warning }) }) : /* @__PURE__ */ jsx("div", { "data-testid": "promotion-campaign-section-no-records", children: /* @__PURE__ */ jsx(
|
|
102
112
|
NoRecords,
|
|
103
113
|
{
|
|
104
114
|
className: "h-[180px] pt-4 text-center",
|
|
@@ -108,7 +118,6 @@ var CampaignSection = ({
|
|
|
108
118
|
to: `/promotions/${id}/add-to-campaign`,
|
|
109
119
|
label: t("promotions.campaignSection.addToCampaign")
|
|
110
120
|
},
|
|
111
|
-
buttonVariant: "transparentIconLeft",
|
|
112
121
|
dataTestId: "promotion-campaign-section-add-to-campaign-button"
|
|
113
122
|
}
|
|
114
123
|
) }),
|
|
@@ -204,7 +213,7 @@ var PromotionConditionsSection = ({
|
|
|
204
213
|
}) => {
|
|
205
214
|
const { t } = useTranslation3();
|
|
206
215
|
const { id } = useParams2();
|
|
207
|
-
const linkQuery = useLinkQuery2("promotion");
|
|
216
|
+
const linkQuery = useLinkQuery2("promotion", PROMOTION_DETAIL_BASE_FIELDS);
|
|
208
217
|
const { promotion } = usePromotion(id, linkQuery, {
|
|
209
218
|
enabled: rulesProp === void 0
|
|
210
219
|
});
|
|
@@ -271,13 +280,13 @@ var PromotionConditionsSection = ({
|
|
|
271
280
|
NoRecords,
|
|
272
281
|
{
|
|
273
282
|
className: "h-[180px]",
|
|
274
|
-
|
|
283
|
+
icon: null,
|
|
284
|
+
title: t("promotions.conditions.list.noRecordsTitle"),
|
|
275
285
|
message: t("promotions.conditions.list.noRecordsMessage"),
|
|
276
286
|
action: {
|
|
277
287
|
to: `${ruleType}/edit`,
|
|
278
288
|
label: t("promotions.conditions.add")
|
|
279
289
|
},
|
|
280
|
-
buttonVariant: "transparentIconLeft",
|
|
281
290
|
dataTestId: `promotion-conditions-section-add-condition-button-${ruleType}`
|
|
282
291
|
}
|
|
283
292
|
)
|
|
@@ -316,6 +325,7 @@ import {
|
|
|
316
325
|
Heading as Heading3,
|
|
317
326
|
StatusBadge,
|
|
318
327
|
Text as Text2,
|
|
328
|
+
toast,
|
|
319
329
|
usePrompt
|
|
320
330
|
} from "@medusajs/ui";
|
|
321
331
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
@@ -333,9 +343,12 @@ var GENERAL_FIELD_IDS = [
|
|
|
333
343
|
"is_automatic",
|
|
334
344
|
"code_badge",
|
|
335
345
|
"type",
|
|
346
|
+
"coverage",
|
|
347
|
+
"owner",
|
|
336
348
|
"value",
|
|
337
349
|
"allocation",
|
|
338
|
-
"is_tax_inclusive"
|
|
350
|
+
"is_tax_inclusive",
|
|
351
|
+
"usage_limit"
|
|
339
352
|
];
|
|
340
353
|
function getDisplayValue(promotion) {
|
|
341
354
|
const value = promotion.application_method?.value;
|
|
@@ -360,7 +373,7 @@ var PromotionGeneralSection = ({
|
|
|
360
373
|
const prompt = usePrompt();
|
|
361
374
|
const navigate = useNavigate();
|
|
362
375
|
const { id } = useParams3();
|
|
363
|
-
const linkQuery = useLinkQuery3("promotion");
|
|
376
|
+
const linkQuery = useLinkQuery3("promotion", PROMOTION_DETAIL_BASE_FIELDS);
|
|
364
377
|
const { promotion: fetched } = usePromotion(id, linkQuery, {
|
|
365
378
|
enabled: !promotionProp
|
|
366
379
|
});
|
|
@@ -385,16 +398,21 @@ var PromotionGeneralSection = ({
|
|
|
385
398
|
}
|
|
386
399
|
await mutateAsync(void 0, {
|
|
387
400
|
onSuccess: () => {
|
|
401
|
+
toast.success(t("promotions.toasts.promotionDeleteSuccess"));
|
|
388
402
|
navigate("/promotions", { replace: true });
|
|
403
|
+
},
|
|
404
|
+
onError: (e) => {
|
|
405
|
+
toast.error(e.message);
|
|
389
406
|
}
|
|
390
407
|
});
|
|
391
408
|
};
|
|
409
|
+
const costBearer = promotion.promotion_cost?.cost_bearer;
|
|
392
410
|
const [color, text] = getPromotionStatus(promotion);
|
|
393
411
|
const displayValue = getDisplayValue(promotion);
|
|
394
412
|
return /* @__PURE__ */ jsxs4(Container3, { className: "divide-y p-0", "data-testid": "promotion-general-section-container", children: [
|
|
395
413
|
/* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "promotion-general-section-header", children: [
|
|
396
414
|
/* @__PURE__ */ jsx4("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "code", data: promotion, children: /* @__PURE__ */ jsx4(Heading3, { "data-testid": "promotion-general-section-code", children: promotion.code }) }) }),
|
|
397
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-
|
|
415
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-4", children: [
|
|
398
416
|
/* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "status", data: promotion, children: /* @__PURE__ */ jsx4(StatusBadge, { color, "data-testid": "promotion-general-section-status", children: text }) }),
|
|
399
417
|
/* @__PURE__ */ jsx4(
|
|
400
418
|
ActionMenu,
|
|
@@ -424,6 +442,10 @@ var PromotionGeneralSection = ({
|
|
|
424
442
|
)
|
|
425
443
|
] })
|
|
426
444
|
] }),
|
|
445
|
+
/* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "type", data: promotion, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", "data-testid": "promotion-general-section-type", children: [
|
|
446
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-type-label", children: t("promotions.fields.type") }),
|
|
447
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty", "data-testid": "promotion-general-section-type-value", children: getPromotionType(promotion) })
|
|
448
|
+
] }) }),
|
|
427
449
|
/* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "is_automatic", data: promotion, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", "data-testid": "promotion-general-section-method", children: [
|
|
428
450
|
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-method-label", children: t("promotions.fields.method") }),
|
|
429
451
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty", "data-testid": "promotion-general-section-method-value", children: promotion.is_automatic ? t("promotions.form.method.automatic.title") : t("promotions.form.method.code.title") })
|
|
@@ -450,9 +472,13 @@ var PromotionGeneralSection = ({
|
|
|
450
472
|
}
|
|
451
473
|
)
|
|
452
474
|
] }) }),
|
|
453
|
-
/* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "
|
|
454
|
-
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-
|
|
455
|
-
/* @__PURE__ */ jsx4(
|
|
475
|
+
promotion.application_method?.type === "fixed" && /* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "is_tax_inclusive", data: promotion, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", "data-testid": "promotion-general-section-tax-inclusive", children: [
|
|
476
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-tax-inclusive-label", children: t("promotions.fields.taxInclusive") }),
|
|
477
|
+
/* @__PURE__ */ jsx4("div", { className: "flex items-center gap-x-2", "data-testid": "promotion-general-section-tax-inclusive-value", children: /* @__PURE__ */ jsx4(Text2, { className: "inline", size: "small", leading: "compact", children: promotion.is_tax_inclusive ? t("general.yes") : t("general.no") }) })
|
|
478
|
+
] }) }),
|
|
479
|
+
costBearer && /* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "coverage", data: promotion, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", "data-testid": "promotion-general-section-coverage", children: [
|
|
480
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-coverage-label", children: t("promotions.fields.coverage") }),
|
|
481
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty", "data-testid": "promotion-general-section-coverage-value", children: t(`promotions.form.costBearer.${costBearer}.title`) })
|
|
456
482
|
] }) }),
|
|
457
483
|
/* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "value", data: promotion, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", "data-testid": "promotion-general-section-value", children: [
|
|
458
484
|
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-value-label", children: t("promotions.fields.value") }),
|
|
@@ -465,9 +491,13 @@ var PromotionGeneralSection = ({
|
|
|
465
491
|
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-allocation-label", children: t("promotions.fields.allocation") }),
|
|
466
492
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", "data-testid": "promotion-general-section-allocation-value", children: promotion.application_method?.allocation })
|
|
467
493
|
] }) }),
|
|
468
|
-
|
|
469
|
-
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-
|
|
470
|
-
/* @__PURE__ */ jsx4("
|
|
494
|
+
/* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "usage_limit", data: promotion, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", "data-testid": "promotion-general-section-usage-limit", children: [
|
|
495
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-usage-limit-label", children: t("promotions.fields.usageLimit") }),
|
|
496
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty", "data-testid": "promotion-general-section-usage-limit-value", children: promotion.limit ?? t("promotions.fields.unlimited") })
|
|
497
|
+
] }) }),
|
|
498
|
+
/* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "owner", data: promotion, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", "data-testid": "promotion-general-section-owner", children: [
|
|
499
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-owner-label", children: t("promotions.fields.owner") }),
|
|
500
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty", "data-testid": "promotion-general-section-owner-value", children: promotion.seller?.name ?? t("promotions.fields.platformOwner") })
|
|
471
501
|
] }) }),
|
|
472
502
|
/* @__PURE__ */ jsx4(
|
|
473
503
|
DisplayExtensionZone3,
|
|
@@ -486,7 +516,7 @@ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
|
486
516
|
var Root = ({ children }) => {
|
|
487
517
|
const initialData = useLoaderData();
|
|
488
518
|
const { id } = useParams4();
|
|
489
|
-
const linkQuery = useLinkQuery4("promotion");
|
|
519
|
+
const linkQuery = useLinkQuery4("promotion", PROMOTION_DETAIL_BASE_FIELDS);
|
|
490
520
|
const { promotion, isLoading } = usePromotion(id, linkQuery, {
|
|
491
521
|
initialData
|
|
492
522
|
});
|
|
@@ -527,7 +557,7 @@ var Root = ({ children }) => {
|
|
|
527
557
|
}
|
|
528
558
|
)
|
|
529
559
|
] }) }),
|
|
530
|
-
/* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(WidgetZone, { id: "promotions.detail.side", data: promotion, children: /* @__PURE__ */ jsx5(CampaignSection, { campaign: promotion.campaign }) }) })
|
|
560
|
+
/* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(WidgetZone, { id: "promotions.detail.side", data: promotion, children: /* @__PURE__ */ jsx5(CampaignSection, { campaign: promotion.campaign, promotion }) }) })
|
|
531
561
|
] });
|
|
532
562
|
};
|
|
533
563
|
var PromotionDetailPage = Object.assign(Root, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PriceListCustomerGroupRuleForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6AUFNHJ4.js";
|
|
4
4
|
import {
|
|
5
5
|
PriceListCreateProductsSchema,
|
|
6
6
|
PriceListRulesSchema,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-BNOKKKUU.js";
|
|
14
14
|
import {
|
|
15
15
|
useProductTableColumns
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GBSL5JTZ.js";
|
|
17
17
|
import {
|
|
18
18
|
useProductTableFilters
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6ZVLQ4IK.js";
|
|
20
20
|
import {
|
|
21
21
|
useProductTableQuery
|
|
22
22
|
} from "./chunk-S4IDR46L.js";
|
|
@@ -40,16 +40,16 @@ import {
|
|
|
40
40
|
import {
|
|
41
41
|
_DataTable,
|
|
42
42
|
useDataTable
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-IZYVY2QV.js";
|
|
44
44
|
import {
|
|
45
45
|
useCreatePriceList
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-HRPM4HIB.js";
|
|
47
47
|
import {
|
|
48
48
|
useDocumentDirection
|
|
49
49
|
} from "./chunk-Y7QKP6QU.js";
|
|
50
50
|
import {
|
|
51
51
|
useProducts
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-QE57IFSR.js";
|
|
53
53
|
|
|
54
54
|
// src/pages/price-lists/price-list-create/components/price-list-create-form/schema.ts
|
|
55
55
|
import { z } from "zod";
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
_DataTable,
|
|
24
24
|
useDataTable
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IZYVY2QV.js";
|
|
26
26
|
import {
|
|
27
27
|
useApiKeys,
|
|
28
28
|
useDeleteApiKey,
|
|
29
29
|
useRevokeApiKey
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FRUJ3RNF.js";
|
|
31
31
|
import {
|
|
32
32
|
ActionMenu
|
|
33
33
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-3BZMCD7I.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GBSL5JTZ.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6ZVLQ4IK.js";
|
|
10
10
|
import {
|
|
11
11
|
useProductTableQuery
|
|
12
12
|
} from "./chunk-S4IDR46L.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
_DataTable,
|
|
18
18
|
useDataTable
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IZYVY2QV.js";
|
|
20
20
|
import {
|
|
21
21
|
useProductTag
|
|
22
22
|
} from "./chunk-XQBF2FRT.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-INNFZYX2.js";
|
|
29
29
|
import {
|
|
30
30
|
useProducts
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QE57IFSR.js";
|
|
32
32
|
|
|
33
33
|
// src/pages/product-tags/product-tag-detail/product-tag-detail.tsx
|
|
34
34
|
import { Children } from "react";
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
} from "./chunk-LHIWM2J5.js";
|
|
8
8
|
import {
|
|
9
9
|
useReturnReasonTableQuery
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EKLQ3PFC.js";
|
|
11
11
|
import {
|
|
12
12
|
SingleColumnPage
|
|
13
13
|
} from "./chunk-H6MYB7GB.js";
|
|
14
14
|
import {
|
|
15
15
|
_DataTable,
|
|
16
16
|
useDataTable
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IZYVY2QV.js";
|
|
18
18
|
import {
|
|
19
19
|
ActionMenu
|
|
20
20
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-7AV5EJJ5.js";
|
|
4
4
|
import {
|
|
5
5
|
useDeleteProductCategoryAction
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-53KPM2IF.js";
|
|
7
7
|
import {
|
|
8
8
|
getCategoryChildren,
|
|
9
9
|
getCategoryPath,
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
} from "./chunk-RUHF6QPS.js";
|
|
17
17
|
import {
|
|
18
18
|
useProductTableColumns
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GBSL5JTZ.js";
|
|
20
20
|
import {
|
|
21
21
|
useProductTableFilters
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6ZVLQ4IK.js";
|
|
23
23
|
import {
|
|
24
24
|
useProductTableQuery
|
|
25
25
|
} from "./chunk-S4IDR46L.js";
|
|
@@ -29,21 +29,21 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
_DataTable,
|
|
31
31
|
useDataTable
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-IZYVY2QV.js";
|
|
33
33
|
import {
|
|
34
34
|
ActionMenu
|
|
35
35
|
} from "./chunk-BDGZ4EQO.js";
|
|
36
36
|
import {
|
|
37
37
|
useProductCategory,
|
|
38
38
|
useUpdateProductCategoryProducts
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-C3SCJHQN.js";
|
|
40
40
|
import {
|
|
41
41
|
Skeleton,
|
|
42
42
|
TwoColumnPageSkeleton
|
|
43
43
|
} from "./chunk-INNFZYX2.js";
|
|
44
44
|
import {
|
|
45
45
|
useProducts
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-QE57IFSR.js";
|
|
47
47
|
|
|
48
48
|
// src/pages/categories/category-detail/category-detail.tsx
|
|
49
49
|
import { useLinkQuery, WidgetZone } from "@mercurjs/dashboard-shared";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useProductTableColumns
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GBSL5JTZ.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableFilters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6ZVLQ4IK.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableQuery
|
|
9
9
|
} from "./chunk-S4IDR46L.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IZYVY2QV.js";
|
|
17
17
|
import {
|
|
18
18
|
ActionMenu
|
|
19
19
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
useDeleteSalesChannel,
|
|
22
22
|
useSalesChannel,
|
|
23
23
|
useSalesChannelRemoveProducts
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MXLSIF5V.js";
|
|
25
25
|
import {
|
|
26
26
|
SingleColumnPageSkeleton
|
|
27
27
|
} from "./chunk-INNFZYX2.js";
|
|
28
28
|
import {
|
|
29
29
|
useProducts
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-QE57IFSR.js";
|
|
31
31
|
|
|
32
32
|
// src/pages/sales-channels/sales-channel-detail/sales-channel-detail.tsx
|
|
33
33
|
import { Children } from "react";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-HC25LNX7.js";
|
|
16
16
|
import {
|
|
17
17
|
useShippingOptionTableQuery
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EKLQ3PFC.js";
|
|
19
19
|
import {
|
|
20
20
|
useProductTypeTableQuery
|
|
21
21
|
} from "./chunk-VOHEQ7B5.js";
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
} from "./chunk-JHIMVLB2.js";
|
|
28
28
|
import {
|
|
29
29
|
useProductTableColumns
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GBSL5JTZ.js";
|
|
31
31
|
import {
|
|
32
32
|
useProductTableFilters
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-6ZVLQ4IK.js";
|
|
34
34
|
import {
|
|
35
35
|
useProductTableQuery
|
|
36
36
|
} from "./chunk-S4IDR46L.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
_DataTable,
|
|
43
43
|
useDataTable
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-IZYVY2QV.js";
|
|
45
45
|
import {
|
|
46
46
|
useProductTypes
|
|
47
47
|
} from "./chunk-K6FC5Y72.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import {
|
|
55
55
|
useProduct,
|
|
56
56
|
useProducts
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-QE57IFSR.js";
|
|
58
58
|
|
|
59
59
|
// src/pages/tax-regions/common/components/target-form/target-form.tsx
|
|
60
60
|
import { Button, Checkbox } from "@medusajs/ui";
|
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
} from "./chunk-KOURHC2N.js";
|
|
7
7
|
import {
|
|
8
8
|
useCollectionTableQuery
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EKLQ3PFC.js";
|
|
10
10
|
import {
|
|
11
11
|
SingleColumnPage
|
|
12
12
|
} from "./chunk-H6MYB7GB.js";
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IZYVY2QV.js";
|
|
17
17
|
import {
|
|
18
18
|
useCollections,
|
|
19
19
|
useDeleteCollection
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2W4YIJYV.js";
|
|
21
21
|
import {
|
|
22
22
|
ActionMenu
|
|
23
23
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useOrderGroupTableFilters
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3PWLO7XZ.js";
|
|
4
4
|
import {
|
|
5
5
|
useOrderTableQuery
|
|
6
6
|
} from "./chunk-QUHSHIAC.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
_DataTable,
|
|
29
29
|
useDataTable
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IZYVY2QV.js";
|
|
31
31
|
import {
|
|
32
32
|
useOrderGroups
|
|
33
33
|
} from "./chunk-43C2OEFK.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-BDGZ4EQO.js";
|
|
4
4
|
import {
|
|
5
5
|
useUpdateProduct
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QE57IFSR.js";
|
|
7
7
|
|
|
8
8
|
// src/pages/products/product-detail/components/product-media-section/product-media-section.tsx
|
|
9
9
|
import { PencilSquare, ThumbnailBadge } from "@medusajs/icons";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
decorateVariantsWithDefaultValues,
|
|
11
11
|
generateVariantsFromAttributes,
|
|
12
12
|
normalizeProductFormValues
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YNPIZEWG.js";
|
|
14
14
|
import {
|
|
15
15
|
HandleInput
|
|
16
16
|
} from "./chunk-HJ56YXBU.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-4YWKKCTT.js";
|
|
23
23
|
import {
|
|
24
24
|
SingleCategoryCombobox
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PVNB7ETQ.js";
|
|
26
26
|
import {
|
|
27
27
|
useComboboxData
|
|
28
28
|
} from "./chunk-5KGMGL4N.js";
|
|
@@ -55,14 +55,11 @@ import {
|
|
|
55
55
|
} from "./chunk-3QSRE5LS.js";
|
|
56
56
|
import {
|
|
57
57
|
require_dist
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-4UQMRTSC.js";
|
|
59
59
|
import {
|
|
60
60
|
_DataTable,
|
|
61
61
|
useDataTable
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import {
|
|
64
|
-
useProductAttributes
|
|
65
|
-
} from "./chunk-XPTKT2SY.js";
|
|
62
|
+
} from "./chunk-IZYVY2QV.js";
|
|
66
63
|
import {
|
|
67
64
|
useRegions
|
|
68
65
|
} from "./chunk-IXC4VZBU.js";
|
|
@@ -74,10 +71,13 @@ import {
|
|
|
74
71
|
} from "./chunk-BDGZ4EQO.js";
|
|
75
72
|
import {
|
|
76
73
|
useSalesChannel
|
|
77
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-MXLSIF5V.js";
|
|
75
|
+
import {
|
|
76
|
+
useProductAttributes
|
|
77
|
+
} from "./chunk-XPTKT2SY.js";
|
|
78
78
|
import {
|
|
79
79
|
useCreateProduct
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-QE57IFSR.js";
|
|
81
81
|
import {
|
|
82
82
|
sdk
|
|
83
83
|
} from "./chunk-JTAECZCT.js";
|
|
@@ -461,24 +461,6 @@ var useBatchProductAttributes = (productId, options) => {
|
|
|
461
461
|
...options
|
|
462
462
|
});
|
|
463
463
|
};
|
|
464
|
-
var useRemoveAttributeFromProduct = (productId, attributeId, options) => {
|
|
465
|
-
return useMutation2({
|
|
466
|
-
mutationFn: () => sdk.admin.products.$id.attributes.batch.mutate({
|
|
467
|
-
$id: productId,
|
|
468
|
-
remove: [attributeId]
|
|
469
|
-
}),
|
|
470
|
-
onSuccess: (data, variables, context) => {
|
|
471
|
-
queryClient.invalidateQueries({
|
|
472
|
-
queryKey: scopedProductAttributesQueryKeys.lists()
|
|
473
|
-
});
|
|
474
|
-
queryClient.invalidateQueries({
|
|
475
|
-
queryKey: productsQueryKeys.detail(productId)
|
|
476
|
-
});
|
|
477
|
-
options?.onSuccess?.(data, variables, context);
|
|
478
|
-
},
|
|
479
|
-
...options
|
|
480
|
-
});
|
|
481
|
-
};
|
|
482
464
|
|
|
483
465
|
export {
|
|
484
466
|
inventoryItemsQueryKeys,
|
|
@@ -513,6 +495,5 @@ export {
|
|
|
513
495
|
useUpdateProductVariant,
|
|
514
496
|
useDeleteVariant,
|
|
515
497
|
useDeleteVariantLazy,
|
|
516
|
-
useBatchProductAttributes
|
|
517
|
-
useRemoveAttributeFromProduct
|
|
498
|
+
useBatchProductAttributes
|
|
518
499
|
};
|