@mercurjs/admin 2.2.0-rc.0 → 2.2.0-rc.1
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-QK73ARX4.js → add-campaign-promotions-RH5L6VMH.js} +7 -7
- package/dist/{adjust-inventory-X45NEQFK.js → adjust-inventory-P2M7KZ77.js} +10 -10
- package/dist/{api-key-management-create-LOD37GOQ.js → api-key-management-create-KDKSGJ4C.js} +3 -3
- package/dist/{api-key-management-detail-HKNZPPR2.js → api-key-management-detail-2RZ6NOYH.js} +13 -13
- package/dist/{api-key-management-edit-JP2GUMMJ.js → api-key-management-edit-NOGBLKBT.js} +3 -3
- package/dist/{api-key-management-list-5RXBJ24C.js → api-key-management-list-CGHUURWX.js} +8 -8
- package/dist/{api-key-management-sales-channels-4GLVMHU6.js → api-key-management-sales-channels-VJMUPYV3.js} +5 -5
- package/dist/{attribute-create-VGL7LGIH.js → attribute-create-KR4DSDH2.js} +15 -13
- package/dist/{attribute-detail-EKDAYT4B.js → attribute-detail-6FMX7IDW.js} +21 -20
- package/dist/{attribute-edit-OBNLNOJS.js → attribute-edit-WXO5FGR6.js} +2 -2
- package/dist/{attribute-edit-possible-value-QDFVWLA3.js → attribute-edit-possible-value-RO7BY3NC.js} +2 -2
- package/dist/{attribute-list-6A72PBIY.js → attribute-list-PJXWYS4C.js} +15 -15
- package/dist/{breadcrumb-IEEJTH47.js → breadcrumb-OBHTESQD.js} +1 -1
- package/dist/{campaign-budget-edit-NONE5NMV.js → campaign-budget-edit-QXAXRI6B.js} +1 -1
- package/dist/{campaign-configuration-JYSVIQFE.js → campaign-configuration-A3E6G2VQ.js} +1 -1
- package/dist/{campaign-create-6U2PONHA.js → campaign-create-TZH66JVU.js} +2 -2
- package/dist/{campaign-detail-RNB3FEJZ.js → campaign-detail-3PNOOUGP.js} +26 -22
- package/dist/{campaign-edit-MAS3DCFB.js → campaign-edit-6CIGS4ZU.js} +23 -7
- package/dist/{campaign-list-CDV4GWWD.js → campaign-list-TNJDWTM5.js} +6 -6
- package/dist/{categories-metadata-4LXL2PWA.js → categories-metadata-AIT33J5U.js} +10 -10
- package/dist/{category-create-AIS2MG7E.js → category-create-NTSIOKLK.js} +3 -3
- package/dist/{category-detail-557376TZ.js → category-detail-3WUCMDWO.js} +29 -25
- package/dist/{category-edit-LYR2IOTA.js → category-edit-4PGWERPJ.js} +26 -9
- package/dist/{category-icon-edit-W2TPCSDC.js → category-icon-edit-C2VAH5JA.js} +2 -2
- package/dist/{category-list-XKRI24VN.js → category-list-D4J4G6HW.js} +8 -8
- package/dist/{category-media-PC4V7YU4.js → category-media-E5UUDN3I.js} +2 -2
- package/dist/category-organize-T45BC4HL.js +129 -0
- package/dist/{category-products-44PCDDNN.js → category-products-TTQGSVUC.js} +18 -18
- package/dist/{chunk-LVRCEGL7.js → chunk-2KERYQNF.js} +52 -26
- package/dist/{chunk-KGA2XI6W.js → chunk-3F4Z4BNA.js} +33 -15
- package/dist/{chunk-3BTRS4AA.js → chunk-3FKB6UTO.js} +2 -2
- package/dist/{chunk-GCU4LHGY.js → chunk-3KS7PC2Z.js} +79 -33
- package/dist/{chunk-HI7NZVSJ.js → chunk-3LDOWS4A.js} +4 -3
- package/dist/{chunk-HT34QVZR.js → chunk-3LGGCLSO.js} +4 -3
- package/dist/{chunk-UZ452ISX.js → chunk-3WCK2FT4.js} +42 -27
- package/dist/{chunk-DPG4AWSG.js → chunk-4DJL3XN7.js} +25 -13
- package/dist/{chunk-PFBJWWUA.js → chunk-4QQ6BFWQ.js} +2 -2
- package/dist/{chunk-NOKCLBAL.js → chunk-4TNOZ4VH.js} +2 -1
- package/dist/{chunk-FICKHCWL.js → chunk-4TW5RTWO.js} +5 -3
- package/dist/{chunk-6DJQITWV.js → chunk-5CHUXS7G.js} +1 -1
- package/dist/{chunk-QDUZCJ7F.js → chunk-5EOYDQAS.js} +1 -1
- package/dist/{chunk-CNODWD3F.js → chunk-5NAX6LXB.js} +5 -4
- package/dist/{chunk-BFUHW56P.js → chunk-5NC3VFXY.js} +1 -1
- package/dist/{chunk-H7NIKMPE.js → chunk-5NSOIZFB.js} +3 -1
- package/dist/{chunk-RIO2IHPE.js → chunk-67KYEPSA.js} +1 -1
- package/dist/{chunk-EOSJHPHN.js → chunk-6DDS7IRR.js} +6 -5
- package/dist/{chunk-XW2BES72.js → chunk-6R767EBC.js} +8 -5
- package/dist/{chunk-EGHDC6K6.js → chunk-6S5RUSUU.js} +12 -11
- package/dist/{chunk-TDJSZ73V.js → chunk-6TMGHMZ2.js} +38 -10
- package/dist/{chunk-CW3HYGS5.js → chunk-7CQD5AQ6.js} +2 -6
- package/dist/{chunk-JSVYNNPF.js → chunk-7IGLZARZ.js} +2 -2
- package/dist/{chunk-PAYQJPGK.js → chunk-7PPT3477.js} +2 -2
- package/dist/{chunk-JLCA6PWC.js → chunk-AASCLZ5N.js} +1 -1
- package/dist/{chunk-RGS5ZOY7.js → chunk-AFYILTAC.js} +4 -3
- package/dist/chunk-APAT344J.js +144 -0
- package/dist/{chunk-4346EIRG.js → chunk-APMBU7ZV.js} +3 -3
- package/dist/{chunk-VGXJXU7X.js → chunk-AW5OKJQZ.js} +7 -6
- package/dist/{chunk-VY72NX26.js → chunk-BBD4WOUK.js} +5 -4
- package/dist/{chunk-JU2O2H7I.js → chunk-BHF4TD3T.js} +6 -6
- package/dist/{chunk-THPXRTE5.js → chunk-BHSY6RCN.js} +34 -13
- package/dist/{chunk-VYQ6ASFF.js → chunk-CWQKHTH6.js} +26 -10
- package/dist/{chunk-56UFDHNO.js → chunk-DJD3MWED.js} +1 -1
- package/dist/{chunk-EX4AGESR.js → chunk-DMZDXTS5.js} +95 -34
- package/dist/{chunk-OPSGADQI.js → chunk-DP6YFZHP.js} +1 -1
- package/dist/{chunk-HGTPUAHD.js → chunk-DUVYF37J.js} +1 -1
- package/dist/{chunk-BTJR5RSV.js → chunk-F57NIOVJ.js} +49 -20
- package/dist/{chunk-CHMIK6PK.js → chunk-F6DGTW4E.js} +3 -3
- package/dist/{chunk-BNFTJW4L.js → chunk-FVG5DTS6.js} +2 -2
- package/dist/{chunk-LSMTJU6Y.js → chunk-G2LHEJLS.js} +3 -3
- package/dist/{chunk-7O7LYBHL.js → chunk-G67PGZDM.js} +67 -25
- package/dist/{chunk-6ZVV2XHU.js → chunk-GRFWCCUW.js} +1 -1
- package/dist/{chunk-BLR3NTU6.js → chunk-GVPKRQWI.js} +4 -6
- package/dist/{chunk-BF7X4JQT.js → chunk-H3D6V3KM.js} +3 -2
- package/dist/{chunk-TZM63FZ4.js → chunk-HC7FWIMY.js} +7 -6
- package/dist/{chunk-W7CJSBDM.js → chunk-HYDXR5K4.js} +27 -15
- package/dist/{chunk-AMZ2QSSI.js → chunk-I5FOWDOM.js} +9 -6
- package/dist/{chunk-OYZIFLLC.js → chunk-I5HY5Q3K.js} +1 -1
- package/dist/{chunk-YMOP6JKN.js → chunk-IGTR66D2.js} +2 -2
- package/dist/{chunk-WKDHY2DJ.js → chunk-IJ2CSCLP.js} +5 -2
- package/dist/{chunk-NISAIYSW.js → chunk-JJOITP32.js} +11 -10
- package/dist/{chunk-25U23TXK.js → chunk-KT7CXVLT.js} +6 -5
- package/dist/{chunk-BVIIRGSW.js → chunk-KUBTN5TC.js} +4 -2
- package/dist/{chunk-DL7ENIQB.js → chunk-LEQINL55.js} +2 -1
- package/dist/{chunk-FMJBQE56.js → chunk-LPIPSLR7.js} +1 -1
- package/dist/{chunk-KFYTUQXT.js → chunk-LQQERWMM.js} +11 -10
- package/dist/{chunk-4C7L7TJT.js → chunk-LXNWSQOE.js} +3 -3
- package/dist/{chunk-VBKFXL2Q.js → chunk-MEDZM6N7.js} +26 -10
- package/dist/{chunk-ZKHF75MZ.js → chunk-MMKUMSZS.js} +1 -1
- package/dist/{chunk-GISFIAGQ.js → chunk-MPRW23TB.js} +47 -17
- package/dist/{chunk-GCEOEV6P.js → chunk-MTHPNKQ4.js} +4 -4
- package/dist/{chunk-ZU74CNL4.js → chunk-MUKW4VRI.js} +8 -7
- package/dist/{chunk-TH26CWVG.js → chunk-NLJ5F7FS.js} +1 -1
- package/dist/{chunk-6KWWJE5P.js → chunk-O7SDCQD6.js} +6 -6
- package/dist/{chunk-HQM7D57C.js → chunk-ODDJZVYL.js} +8 -6
- package/dist/{chunk-2FPQHWJZ.js → chunk-OG5AVHPY.js} +110 -28
- package/dist/{chunk-HRDVGFS7.js → chunk-OX6HZPVY.js} +21 -11
- package/dist/{chunk-5ACJR6WB.js → chunk-P2DFLKCN.js} +3 -3
- package/dist/{chunk-NWSKT55Z.js → chunk-P2JA3QTQ.js} +7 -6
- package/dist/{chunk-ZVPTNPLI.js → chunk-P3GGL5JL.js} +1 -1
- package/dist/{chunk-NZVS6B77.js → chunk-PDID73QY.js} +574 -536
- package/dist/{chunk-5Y2AIJ2T.js → chunk-PEUWV5YK.js} +2 -1
- package/dist/{chunk-K7H77TA5.js → chunk-PHWYJ26A.js} +1 -1
- package/dist/{chunk-W3P3RP5R.js → chunk-PPRIEP4H.js} +25 -11
- package/dist/{chunk-JEDX4KBB.js → chunk-Q5DRFJPI.js} +6 -5
- package/dist/{chunk-J3L2FUIA.js → chunk-QA7S7WVH.js} +54 -38
- package/dist/{chunk-Q6QXFLUY.js → chunk-QEX45BI3.js} +3 -1
- package/dist/{chunk-JZJT26E3.js → chunk-QVIX6O76.js} +1 -1
- package/dist/{chunk-F2SZ4LPF.js → chunk-R2LW5LGL.js} +40 -22
- package/dist/{chunk-DI2M3J5Q.js → chunk-RMB7MPIT.js} +1 -1
- package/dist/{chunk-2Z2M5K5A.js → chunk-RT2MBSJQ.js} +7 -6
- package/dist/{chunk-65YE4SVL.js → chunk-RYISNVIR.js} +27 -14
- package/dist/{chunk-BILFRATX.js → chunk-SAU35JEB.js} +1 -1
- package/dist/{chunk-PMVWIBTI.js → chunk-SLAWONP2.js} +52 -17
- package/dist/{chunk-ML7UVBKL.js → chunk-TIG77LHS.js} +1 -1
- package/dist/{chunk-YRINVEI3.js → chunk-TJJ7S3GL.js} +3 -2
- package/dist/{chunk-4BCUGMOR.js → chunk-UK5BVJI7.js} +1 -1
- package/dist/{chunk-MOG7LT73.js → chunk-UK5CZJ4A.js} +9 -7
- package/dist/{chunk-4BPQNCF5.js → chunk-UVH7PC5B.js} +6 -5
- package/dist/{chunk-HB3KRNZM.js → chunk-VH4W6LKI.js} +4 -3
- package/dist/{chunk-YRUCTB6M.js → chunk-VHOCBKSA.js} +3 -2
- package/dist/{chunk-IVBNI2QE.js → chunk-VQ6OPDS3.js} +85 -30
- package/dist/{chunk-LQSSUC7W.js → chunk-VX6OCQLN.js} +6 -5
- package/dist/{chunk-DSTHXHJ5.js → chunk-VYSB4CTB.js} +1356 -1356
- package/dist/{chunk-6BWJWA2F.js → chunk-WF2PHYTE.js} +6 -5
- package/dist/{chunk-GLZLBHFC.js → chunk-WX4ABVXL.js} +2 -2
- package/dist/{chunk-VPYI4X6C.js → chunk-X4SSIHH7.js} +35 -16
- package/dist/{chunk-VJ4LQXMA.js → chunk-XDMCPTDG.js} +96 -69
- package/dist/{chunk-KT4DGVRQ.js → chunk-XNUH2AOW.js} +8 -7
- package/dist/{chunk-OAN4CZKX.js → chunk-XWP4ZGKN.js} +6 -4
- package/dist/{chunk-32ZNZDFT.js → chunk-XXV6ZSWY.js} +4 -3
- package/dist/{chunk-GWSRWILC.js → chunk-YLQ63F5E.js} +6 -5
- package/dist/{chunk-MZOINNCV.js → chunk-YNR25MNM.js} +78 -56
- package/dist/{chunk-YHEH25IE.js → chunk-Z6CIQQUZ.js} +2 -1
- package/dist/{chunk-YNN2YNSE.js → chunk-ZAANJVLM.js} +1 -1
- package/dist/{chunk-MW47LDBT.js → chunk-ZOTBKQLG.js} +1 -1
- package/dist/{collection-add-products-JFUIZEZI.js → collection-add-products-TXJAEXUT.js} +18 -18
- package/dist/{collection-create-5IGFVQKE.js → collection-create-7ZQONUJL.js} +4 -3
- package/dist/{collection-detail-2WOLOVWF.js → collection-detail-FGXNWXAN.js} +28 -24
- package/dist/{collection-edit-UMZN5JZ6.js → collection-edit-ZFAECPWC.js} +33 -10
- package/dist/{collection-icon-edit-WCSKUDXE.js → collection-icon-edit-642AZRHR.js} +2 -2
- package/dist/{collection-list-B3Y2ALLZ.js → collection-list-ZLBRTQAC.js} +22 -22
- package/dist/{collection-media-YIV5BV3Y.js → collection-media-LMJFEFVY.js} +2 -2
- package/dist/{collection-metadata-SBK6SL4C.js → collection-metadata-AZRN32RU.js} +10 -10
- package/dist/{commission-rule-detail-ZQ3OHFA2.js → commission-rule-detail-FOLHANWL.js} +5 -5
- package/dist/{commissions-list-M5WLJD2P.js → commissions-list-SGVCP2O4.js} +9 -9
- package/dist/{customer-create-ZQ4RTXBA.js → customer-create-SC6LAEVJ.js} +1 -1
- package/dist/{customer-create-address-P2QYUZJ5.js → customer-create-address-VZMOF5AE.js} +9 -4
- package/dist/{customer-detail-ZGDPIWA4.js → customer-detail-3KIDRBLW.js} +26 -23
- package/dist/{customer-edit-D55FJLIN.js → customer-edit-RAWO66UL.js} +25 -7
- package/dist/{customer-edit-address-R5RXDUNZ.js → customer-edit-address-ZEVUPAYN.js} +15 -6
- package/dist/{customer-group-add-customers-O6A5ZFPM.js → customer-group-add-customers-LKFLDXVO.js} +5 -5
- package/dist/{customer-group-create-44R3DDOT.js → customer-group-create-3KAC3R3N.js} +1 -1
- package/dist/{customer-group-detail-FXUICFYC.js → customer-group-detail-KWHS7V6F.js} +28 -25
- package/dist/{customer-group-edit-NZ5SUPFQ.js → customer-group-edit-E7JX2L4J.js} +41 -20
- package/dist/{customer-group-list-R2DP2D42.js → customer-group-list-3FCJBXFY.js} +16 -16
- package/dist/{customer-group-metadata-JX7ZBXLJ.js → customer-group-metadata-3QRU7FIE.js} +10 -10
- package/dist/{customer-list-Z4DUQHCH.js → customer-list-JT6YE2IW.js} +7 -7
- package/dist/{customer-metadata-JT5GGCRV.js → customer-metadata-7DMBCQXW.js} +10 -10
- package/dist/{customers-add-customer-group-KX3XNNMU.js → customers-add-customer-group-IAGH6MJJ.js} +14 -14
- package/dist/{edit-inventory-item-73BY4I5T.js → edit-inventory-item-QPWV4MSP.js} +32 -17
- package/dist/{edit-inventory-item-attributes-ZMB343AB.js → edit-inventory-item-attributes-J7WHYKMK.js} +10 -10
- package/dist/{edit-reservation-BC5IOLK6.js → edit-reservation-PTUSCC6C.js} +26 -8
- package/dist/{edit-rules-4PPNBI7B.js → edit-rules-2WZOLTL7.js} +11 -11
- package/dist/extension-targets.d.ts +269 -0
- package/dist/extension-targets.js +1 -0
- package/dist/index.css +3 -3
- package/dist/index.d.ts +6 -2
- package/dist/index.js +280 -252
- package/dist/{inventory-create-XQKH3HZQ.js → inventory-create-RDVKGH2S.js} +11 -11
- package/dist/{inventory-detail-RZJNTJDF.js → inventory-detail-LHWQTJ7S.js} +27 -23
- package/dist/{inventory-list-SPSBDJXO.js → inventory-list-Q2CCGYI5.js} +6 -6
- package/dist/{inventory-metadata-W2E4KYG3.js → inventory-metadata-CQHLKX4T.js} +10 -10
- package/dist/{inventory-stock-D2BNT2UL.js → inventory-stock-3TR47RNA.js} +10 -10
- package/dist/{loader-HRFMJ5TM.js → loader-ZYV22XGC.js} +15 -11
- package/dist/{location-detail-CNETNX3M.js → location-detail-ZRLP4XVJ.js} +12 -12
- package/dist/{location-fulfillment-providers-XXZ7AIUF.js → location-fulfillment-providers-CL7PKPTT.js} +20 -20
- package/dist/{location-list-RHUT7IRA.js → location-list-HW5F37YZ.js} +12 -12
- package/dist/{location-sales-channels-ZQBQ3VDH.js → location-sales-channels-Z4E5VA7M.js} +4 -4
- package/dist/{location-service-zone-create-O6GYRZEE.js → location-service-zone-create-WZXZFMA2.js} +4 -4
- package/dist/{location-service-zone-manage-areas-DBP3P27I.js → location-service-zone-manage-areas-5SYZKBQK.js} +4 -4
- package/dist/{location-service-zone-shipping-option-create-3PQ2EYD7.js → location-service-zone-shipping-option-create-Z3S7EUYH.js} +10 -10
- package/dist/{login-OKBXMSKY.js → login-JNIVGP2G.js} +10 -10
- package/dist/{manage-locations-SUJNIWWF.js → manage-locations-NGNUXP3N.js} +1 -1
- package/dist/{marketplace-add-currencies-IPE5RJF6.js → marketplace-add-currencies-ZBLGQQCX.js} +3 -3
- package/dist/{marketplace-detail-IHGJXVZS.js → marketplace-detail-RZWOCVGF.js} +15 -15
- package/dist/{marketplace-metadata-STYABOTX.js → marketplace-metadata-74YUQ6UC.js} +10 -10
- package/dist/{offer-detail-page-2G5BUOIB.js → offer-detail-page-XS52BE5U.js} +71 -25
- package/dist/{offer-variant-detail-page-V6TKNYZL.js → offer-variant-detail-page-QQGOMRUY.js} +9 -8
- package/dist/{offers-2QQFKGAX.js → offers-UUFYROYV.js} +38 -23
- package/dist/{order-create-claim-Y7ESDXLI.js → order-create-claim-AG3GMAE2.js} +5 -5
- package/dist/{order-create-edit-6L5S7KQM.js → order-create-edit-N3TDQQIT.js} +8 -8
- package/dist/{order-create-exchange-WHO3K2MW.js → order-create-exchange-ZCQBC54O.js} +15 -15
- package/dist/{order-create-refund-4ZO73NWS.js → order-create-refund-HXFCDZV5.js} +10 -10
- package/dist/{order-create-return-R5WJBQ5W.js → order-create-return-VUHKWVQM.js} +5 -5
- package/dist/{order-detail-QUGH2GXH.js → order-detail-CTZELMAQ.js} +23 -19
- package/dist/{order-edit-billing-address-BEOKFNLZ.js → order-edit-billing-address-S4YOG2EE.js} +11 -11
- package/dist/{order-edit-email-GLAQZCIT.js → order-edit-email-VSAS3M2E.js} +10 -10
- package/dist/{order-edit-shipping-address-PF54SFAG.js → order-edit-shipping-address-FZMDRJU5.js} +10 -10
- package/dist/{order-list-GMUOLGZY.js → order-list-EFBU3W6N.js} +13 -13
- package/dist/{order-metadata-VQOA3DOL.js → order-metadata-FKM3ZDNM.js} +10 -10
- package/dist/{order-request-transfer-BLQQ66IF.js → order-request-transfer-BCE6ED5E.js} +10 -10
- package/dist/pages/index.d.ts +25 -25
- package/dist/pages/index.js +107 -107
- package/dist/{payout-detail-6U2ANWOH.js → payout-detail-LY7SRCKO.js} +1 -1
- package/dist/{payout-list-3GQJQSVU.js → payout-list-WE3H7FKO.js} +5 -5
- package/dist/{price-list-configuration-BLHIGDSV.js → price-list-configuration-4UNGTKCM.js} +9 -9
- package/dist/{price-list-create-HKN72A6Q.js → price-list-create-XGRFJ74B.js} +21 -21
- package/dist/{price-list-detail-6JAMNNJW.js → price-list-detail-AE6S3CEM.js} +29 -25
- package/dist/{price-list-edit-RZQMPHXU.js → price-list-edit-4JPSL2NL.js} +26 -10
- package/dist/{price-list-list-HLWCOORV.js → price-list-list-EM3TNZQG.js} +9 -9
- package/dist/{price-list-prices-add-ST6WNQNH.js → price-list-prices-add-DF6W4N6L.js} +19 -19
- package/dist/{price-list-prices-edit-ZQE3Z3NK.js → price-list-prices-edit-AXJJTMKL.js} +10 -10
- package/dist/{product-add-existing-attributes-J6MML6MT.js → product-add-existing-attributes-UVVJDOEN.js} +15 -15
- package/dist/{product-attributes-4EPKS6MP.js → product-attributes-PCZDEFHM.js} +1 -1
- package/dist/{product-bulk-edit-TRI2KKHW.js → product-bulk-edit-FGB4T2KQ.js} +1 -1
- package/dist/{product-create-B4DTC2OM.js → product-create-3PZNLIDT.js} +22 -16
- package/dist/{product-create-attribute-BP6NN4GO.js → product-create-attribute-6AJPI6IJ.js} +2 -2
- package/dist/{product-create-variant-VDQQNHAK.js → product-create-variant-2OCZA6GW.js} +4 -4
- package/dist/{product-detail-MFJ3AIU6.js → product-detail-IVRD2OHL.js} +26 -21
- package/dist/{product-edit-26AWYWUU.js → product-edit-KMK7CMLI.js} +6 -2
- package/dist/{product-edit-attribute-AXPTES26.js → product-edit-attribute-FCEYWZWL.js} +3 -3
- package/dist/{product-list-DMQSLXM4.js → product-list-IMKQUEIM.js} +30 -27
- package/dist/{product-media-XRBLOV7D.js → product-media-B5D2HUQF.js} +4 -4
- package/dist/{product-metadata-LOF6TSJQ.js → product-metadata-6EFF4IPX.js} +10 -10
- package/dist/{product-organization-ISVMEWQG.js → product-organization-5FUCDOGD.js} +4 -4
- package/dist/{product-sales-channels-C6UUHWGB.js → product-sales-channels-GUK6FTDA.js} +4 -4
- package/dist/{product-shipping-profile-VTYQ22E4.js → product-shipping-profile-UFIRKPTG.js} +1 -1
- package/dist/{product-tag-create-AHG3Y4GE.js → product-tag-create-PSY5Q437.js} +10 -10
- package/dist/{product-tag-detail-4FL4CU5S.js → product-tag-detail-L5RXBCPS.js} +24 -24
- package/dist/{product-tag-edit-ACHNVZZP.js → product-tag-edit-NVGUS3CY.js} +10 -10
- package/dist/{product-tag-list-YPTIDXPX.js → product-tag-list-UX2GZALX.js} +24 -24
- package/dist/{product-tag-metadata-BXC7GMBB.js → product-tag-metadata-T4ZYOIXY.js} +10 -10
- package/dist/{product-type-detail-RAYCHYAF.js → product-type-detail-LJWSJ6V5.js} +20 -20
- package/dist/{product-type-list-JN4SKTFE.js → product-type-list-AQ3GEAZX.js} +5 -5
- package/dist/{product-type-metadata-24JU4JNK.js → product-type-metadata-OJJYUALT.js} +10 -10
- package/dist/{product-variant-detail-7CFNAI3A.js → product-variant-detail-FZL5OZFE.js} +11 -11
- package/dist/{product-variant-edit-C4HXFQFW.js → product-variant-edit-LSSJW4DS.js} +12 -12
- package/dist/{product-variant-metadata-5PUBLPDN.js → product-variant-metadata-D5AUINFJ.js} +10 -10
- package/dist/{profile-detail-PABUO545.js → profile-detail-PFJX3LPX.js} +1 -1
- package/dist/{promotion-add-campaign-WK36UMSF.js → promotion-add-campaign-PYEBYRHK.js} +2 -2
- package/dist/{promotion-create-7VBA6JFM.js → promotion-create-OFLXF3RZ.js} +14 -14
- package/dist/{promotion-detail-KXXWEFHW.js → promotion-detail-N7JHJGSW.js} +25 -19
- package/dist/{promotion-edit-details-YM5JPGEC.js → promotion-edit-details-GXA4FDTK.js} +25 -8
- package/dist/{promotion-list-56ZDROMH.js → promotion-list-MIL2B752.js} +9 -9
- package/dist/{refund-reason-create-UA3XS6DP.js → refund-reason-create-HTTX2UGC.js} +10 -10
- package/dist/{refund-reason-edit-3TAGKV3U.js → refund-reason-edit-I7XXP4EP.js} +10 -10
- package/dist/{refund-reason-list-PBLA5HYO.js → refund-reason-list-YYCNRERE.js} +18 -18
- package/dist/{region-add-countries-UO5A42HM.js → region-add-countries-WIJCJPOX.js} +3 -3
- package/dist/{region-create-7NA6RKWS.js → region-create-B3I3W7QJ.js} +3 -3
- package/dist/{region-detail-636IAPYK.js → region-detail-3OFMBGML.js} +5 -5
- package/dist/{region-list-GIU6NFI4.js → region-list-DD5S5BD2.js} +5 -5
- package/dist/{region-metadata-NRV3L42D.js → region-metadata-RRUP56B2.js} +10 -10
- package/dist/{reservation-create-ANLVF7EC.js → reservation-create-3RVQVMRF.js} +2 -2
- package/dist/{reservation-detail-MAWHNY2H.js → reservation-detail-QOVPIIMC.js} +20 -16
- package/dist/{reservation-list-UWZRPRPH.js → reservation-list-EJPMH7UX.js} +7 -7
- package/dist/{reservation-metadata-ZFKKAOWG.js → reservation-metadata-OAEUUCRG.js} +10 -10
- package/dist/{reset-password-UDA5ZMTZ.js → reset-password-AZ2RPOG5.js} +1 -1
- package/dist/{return-reason-list-NPAAMB5H.js → return-reason-list-PFDQCDWA.js} +10 -10
- package/dist/{sales-channel-add-products-2BBIMN6N.js → sales-channel-add-products-FXWQ4LZ6.js} +18 -18
- package/dist/{sales-channel-create-OC2BB67N.js → sales-channel-create-77PRY5T6.js} +2 -2
- package/dist/{sales-channel-detail-D5R7HPC7.js → sales-channel-detail-HVPDMOUJ.js} +20 -20
- package/dist/{sales-channel-edit-V62TBRC4.js → sales-channel-edit-PBN2XYEI.js} +2 -2
- package/dist/{sales-channel-list-LVW7XE7K.js → sales-channel-list-WBG6DUZJ.js} +13 -13
- package/dist/{sales-channel-metadata-5W4OZZYI.js → sales-channel-metadata-RXT26TCT.js} +10 -10
- package/dist/{shipping-option-type-create-GHOCZT64.js → shipping-option-type-create-2EVIHSGN.js} +10 -10
- package/dist/{shipping-option-type-detail-W32EHTBS.js → shipping-option-type-detail-BKFYUX2T.js} +11 -11
- package/dist/{shipping-option-type-edit-KRIP6HTC.js → shipping-option-type-edit-LTH6PE7B.js} +10 -10
- package/dist/{shipping-option-type-list-4FML2ZX5.js → shipping-option-type-list-7F5R6ACH.js} +15 -15
- package/dist/{shipping-profile-detail-UFGQ3CCH.js → shipping-profile-detail-FOPCKNOZ.js} +1 -1
- package/dist/{shipping-profile-metadata-52ZW757T.js → shipping-profile-metadata-WRFZ55C3.js} +10 -10
- package/dist/{shipping-profiles-list-PZQVMKR4.js → shipping-profiles-list-KXXYHJIY.js} +5 -5
- package/dist/{store-address-edit-IJ2UW6WC.js → store-address-edit-M6A37RFY.js} +1 -1
- package/dist/{store-bulk-edit-OIYKZ6AZ.js → store-bulk-edit-SYHKAJ6D.js} +2 -2
- package/dist/{store-closure-edit-H3EKROXP.js → store-closure-edit-VE7D5F7I.js} +1 -1
- package/dist/{store-create-Y3BGG5P5.js → store-create-6OQW7F4U.js} +11 -11
- package/dist/{store-details-56IHJJQV.js → store-details-YV4U4GZK.js} +25 -42
- package/dist/{store-edit-HWOGEOCH.js → store-edit-33N7EQE2.js} +49 -15
- package/dist/{store-list-5DRW6QZF.js → store-list-VTV3TYJN.js} +22 -22
- package/dist/{store-member-invite-7ORIMT73.js → store-member-invite-T5GCT6HV.js} +2 -2
- package/dist/{store-payment-details-edit-ERRJDLBO.js → store-payment-details-edit-JUM745OG.js} +1 -1
- package/dist/{store-professional-details-edit-VD2J4VYV.js → store-professional-details-edit-NKBYKBCA.js} +1 -1
- package/dist/{tax-region-create-GGDCD2VU.js → tax-region-create-7FXHJKVB.js} +11 -11
- package/dist/{tax-region-detail-L7STT6C7.js → tax-region-detail-6AFMQQP7.js} +16 -16
- package/dist/{tax-region-edit-6JOV3POI.js → tax-region-edit-N64TGNAG.js} +10 -10
- package/dist/{tax-region-list-NIAT626R.js → tax-region-list-IBT5YP3U.js} +4 -4
- package/dist/{tax-region-metadata-4P667IOY.js → tax-region-metadata-MKXFQ5B7.js} +10 -10
- package/dist/{tax-region-province-detail-2GRPOSWS.js → tax-region-province-detail-CBCYMSGF.js} +15 -15
- package/dist/{tax-region-tax-override-create-R5GKEOK6.js → tax-region-tax-override-create-DFOUTYWV.js} +23 -23
- package/dist/{tax-region-tax-override-edit-MLJKNLAR.js → tax-region-tax-override-edit-PY7XG5KR.js} +23 -23
- package/dist/{user-detail-452E7GII.js → user-detail-4FDNMJ6W.js} +2 -2
- package/dist/{user-invite-FCWARLW5.js → user-invite-LSWNFFLT.js} +3 -3
- package/dist/{user-list-OU6WS25V.js → user-list-B66HEMCD.js} +5 -5
- package/dist/{user-metadata-CHHV7S3A.js → user-metadata-5UFWFXLX.js} +10 -10
- package/package.json +17 -12
- package/dist/category-organize-H4JYCHDA.js +0 -112
- package/dist/chunk-LFKTHNWI.js +0 -83
- package/dist/{chunk-7OKYEA6I.js → chunk-HC2TEEKQ.js} +3 -3
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-BDGZ4EQO.js";
|
|
4
4
|
import {
|
|
5
5
|
useUpdateProduct
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MMKUMSZS.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";
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
import { useState } from "react";
|
|
22
22
|
import { useTranslation } from "react-i18next";
|
|
23
23
|
import { Link } from "react-router-dom";
|
|
24
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
24
25
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
25
26
|
var ProductMediaSection = ({
|
|
26
27
|
product,
|
|
@@ -179,7 +180,8 @@ var ProductMediaSection = ({
|
|
|
179
180
|
"data-testid": "product-media-command-bar-delete"
|
|
180
181
|
}
|
|
181
182
|
)
|
|
182
|
-
] }) })
|
|
183
|
+
] }) }),
|
|
184
|
+
/* @__PURE__ */ jsx(DisplayExtensionZone, { model: "product", zone: "media", data: product })
|
|
183
185
|
] });
|
|
184
186
|
};
|
|
185
187
|
var getMedia = (product) => {
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
// src/pages/shipping-profiles/shipping-profile-detail/shipping-profile-detail.tsx
|
|
19
19
|
import { Children } from "react";
|
|
20
20
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
21
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
21
22
|
|
|
22
23
|
// src/pages/shipping-profiles/shipping-profile-detail/components/shipping-profile-general-section/shipping-profile-general-section.tsx
|
|
23
24
|
import { Trash } from "@medusajs/icons";
|
|
@@ -101,7 +102,7 @@ var Root = ({ children }) => {
|
|
|
101
102
|
if (isError) {
|
|
102
103
|
throw error;
|
|
103
104
|
}
|
|
104
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx2(SingleColumnPage, { showMetadata: true, showJSON: true, data: shipping_profile, children }) : /* @__PURE__ */ jsx2(SingleColumnPage, { showMetadata: true, showJSON: true, data: shipping_profile, children: /* @__PURE__ */ jsx2(ShippingProfileGeneralSection, { profile: shipping_profile }) });
|
|
105
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx2(SingleColumnPage, { showMetadata: true, showJSON: true, data: shipping_profile, children }) : /* @__PURE__ */ jsx2(SingleColumnPage, { showMetadata: true, showJSON: true, data: shipping_profile, children: /* @__PURE__ */ jsx2(WidgetZone, { id: "shipping-profiles.detail.main", data: shipping_profile, children: /* @__PURE__ */ jsx2(ShippingProfileGeneralSection, { profile: shipping_profile }) }) });
|
|
105
106
|
};
|
|
106
107
|
var ShippingProfileDetailPage = Object.assign(Root, {
|
|
107
108
|
GeneralSection: ShippingProfileGeneralSection
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
} from "./chunk-K6RZE3F7.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I5HY5Q3K.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-APMBU7ZV.js";
|
|
10
10
|
import {
|
|
11
11
|
useProductTableQuery
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
_DataTable,
|
|
15
|
-
useDataTable
|
|
16
|
-
} from "./chunk-6ZVV2XHU.js";
|
|
12
|
+
} from "./chunk-5NSOIZFB.js";
|
|
17
13
|
import {
|
|
18
14
|
SingleColumnPage
|
|
19
15
|
} from "./chunk-H6MYB7GB.js";
|
|
16
|
+
import {
|
|
17
|
+
_DataTable,
|
|
18
|
+
useDataTable
|
|
19
|
+
} from "./chunk-GRFWCCUW.js";
|
|
20
20
|
import {
|
|
21
21
|
useProductType
|
|
22
22
|
} from "./chunk-EWFOFSF7.js";
|
|
@@ -28,11 +28,12 @@ import {
|
|
|
28
28
|
} from "./chunk-INNFZYX2.js";
|
|
29
29
|
import {
|
|
30
30
|
useProducts
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MMKUMSZS.js";
|
|
32
32
|
|
|
33
33
|
// src/pages/product-types/product-type-detail/product-type-detail.tsx
|
|
34
34
|
import { Children } from "react";
|
|
35
35
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
36
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
36
37
|
|
|
37
38
|
// src/pages/product-types/product-type-detail/components/product-type-general-section/product-type-general-section.tsx
|
|
38
39
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -150,10 +151,10 @@ var Root = ({ children }) => {
|
|
|
150
151
|
if (isError) {
|
|
151
152
|
throw error;
|
|
152
153
|
}
|
|
153
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: product_type, children }) : /* @__PURE__ */
|
|
154
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: product_type, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: product_type, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "product-types.detail.main", data: product_type, children: [
|
|
154
155
|
/* @__PURE__ */ jsx3(ProductTypeGeneralSection, { productType: product_type }),
|
|
155
156
|
/* @__PURE__ */ jsx3(ProductTypeProductSection, { productType: product_type })
|
|
156
|
-
] });
|
|
157
|
+
] }) });
|
|
157
158
|
};
|
|
158
159
|
var ProductTypeDetailPage = Object.assign(Root, {
|
|
159
160
|
GeneralSection: ProductTypeGeneralSection,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useSellers
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SAU35JEB.js";
|
|
4
4
|
import {
|
|
5
5
|
useCustomers
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AFYILTAC.js";
|
|
7
7
|
import {
|
|
8
8
|
useSalesChannels
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZOTBKQLG.js";
|
|
10
10
|
|
|
11
11
|
// src/pages/orders/order-list/components/order-list-table/use-order-table-filters.tsx
|
|
12
12
|
import { useMemo } from "react";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
PlaceholderCell
|
|
6
6
|
} from "./chunk-PHOCVOZ5.js";
|
|
7
|
-
import {
|
|
8
|
-
_DataTable,
|
|
9
|
-
useDataTable
|
|
10
|
-
} from "./chunk-6ZVV2XHU.js";
|
|
11
7
|
import {
|
|
12
8
|
SingleColumnPage
|
|
13
9
|
} from "./chunk-H6MYB7GB.js";
|
|
14
10
|
import {
|
|
15
11
|
useQueryParams
|
|
16
12
|
} from "./chunk-THHRRYRS.js";
|
|
13
|
+
import {
|
|
14
|
+
_DataTable,
|
|
15
|
+
useDataTable
|
|
16
|
+
} from "./chunk-GRFWCCUW.js";
|
|
17
17
|
import {
|
|
18
18
|
useStockLocations
|
|
19
19
|
} from "./chunk-VXW3BCN2.js";
|
|
@@ -23,14 +23,16 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
useDeleteInventoryItem,
|
|
25
25
|
useInventoryItems
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MMKUMSZS.js";
|
|
27
27
|
|
|
28
28
|
// src/pages/inventory/inventory-list/inventory-list.tsx
|
|
29
29
|
import { Children as Children2 } from "react";
|
|
30
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
30
31
|
|
|
31
32
|
// src/pages/inventory/inventory-list/components/inventory-list-table.tsx
|
|
32
33
|
import { Button, Container, Heading, Text } from "@medusajs/ui";
|
|
33
|
-
import {
|
|
34
|
+
import { useExtendableTable, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
35
|
+
import { Children, useMemo as useMemo2, useState } from "react";
|
|
34
36
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
35
37
|
import { Link, useNavigate } from "react-router-dom";
|
|
36
38
|
|
|
@@ -373,10 +375,24 @@ var InventoryListDataTable = () => {
|
|
|
373
375
|
isError,
|
|
374
376
|
error
|
|
375
377
|
} = useInventoryItems({
|
|
376
|
-
...searchParams
|
|
378
|
+
...searchParams,
|
|
379
|
+
...useLinkQuery("inventory_item")
|
|
380
|
+
});
|
|
381
|
+
const baseFilters = useInventoryTableFilters();
|
|
382
|
+
const baseColumns = useInventoryTableColumns();
|
|
383
|
+
const actionsColumn = baseColumns[baseColumns.length - 1];
|
|
384
|
+
const { columns: extended, filters: extFilters } = useExtendableTable({
|
|
385
|
+
model: "inventory_item",
|
|
386
|
+
columns: baseColumns.slice(0, -1)
|
|
377
387
|
});
|
|
378
|
-
const
|
|
379
|
-
|
|
388
|
+
const columns = useMemo2(
|
|
389
|
+
() => [...extended, actionsColumn],
|
|
390
|
+
[extended, actionsColumn]
|
|
391
|
+
);
|
|
392
|
+
const filters = useMemo2(
|
|
393
|
+
() => [...baseFilters, ...extFilters],
|
|
394
|
+
[baseFilters, extFilters]
|
|
395
|
+
);
|
|
380
396
|
const { table } = useDataTable({
|
|
381
397
|
data: inventory_items ?? [],
|
|
382
398
|
columns,
|
|
@@ -438,7 +454,7 @@ var InventoryListTable = ({ children }) => {
|
|
|
438
454
|
// src/pages/inventory/inventory-list/inventory-list.tsx
|
|
439
455
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
440
456
|
var Root = ({ children }) => {
|
|
441
|
-
return /* @__PURE__ */ jsx4("div", { "data-testid": "inventory-page", children: /* @__PURE__ */ jsx4(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx4(InventoryListTable, {}) }) });
|
|
457
|
+
return /* @__PURE__ */ jsx4("div", { "data-testid": "inventory-page", children: /* @__PURE__ */ jsx4(SingleColumnPage, { children: /* @__PURE__ */ jsx4(WidgetZone, { id: "inventory.list", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx4(InventoryListTable, {}) }) }) });
|
|
442
458
|
};
|
|
443
459
|
var InventoryListPage = Object.assign(Root, {
|
|
444
460
|
Table: InventoryListTable,
|
|
@@ -38,7 +38,7 @@ var useInventoryItems = (query, options) => {
|
|
|
38
38
|
var useInventoryItem = (id, query, options) => {
|
|
39
39
|
const { data, ...rest } = useQuery({
|
|
40
40
|
queryFn: () => sdk.admin.inventoryItems.$id.query({ $id: id, ...query }),
|
|
41
|
-
queryKey: inventoryItemsQueryKeys.detail(id),
|
|
41
|
+
queryKey: inventoryItemsQueryKeys.detail(id, query),
|
|
42
42
|
...options
|
|
43
43
|
});
|
|
44
44
|
return { ...data, ...rest };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePromotionTableColumns,
|
|
3
3
|
usePromotionTableQuery
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TIG77LHS.js";
|
|
5
5
|
import {
|
|
6
6
|
usePromotionTableFilters
|
|
7
7
|
} from "./chunk-S2WEYEQR.js";
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
_DataTable,
|
|
19
19
|
useDataTable
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GRFWCCUW.js";
|
|
21
21
|
import {
|
|
22
22
|
useAddOrRemoveCampaignPromotions,
|
|
23
23
|
useCampaign,
|
|
24
24
|
useDeleteCampaign,
|
|
25
25
|
usePromotions
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MTHPNKQ4.js";
|
|
27
27
|
import {
|
|
28
28
|
ActionMenu
|
|
29
29
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
// src/pages/campaigns/campaign-detail/campaign-detail.tsx
|
|
35
35
|
import { Children } from "react";
|
|
36
36
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
37
|
+
import { WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
37
38
|
|
|
38
39
|
// src/pages/campaigns/campaign-detail/components/campaign-budget/campaign-budget.tsx
|
|
39
40
|
import { ChartPie, PencilSquare } from "@medusajs/icons";
|
|
@@ -120,6 +121,7 @@ var CampaignBudget = ({ campaign }) => {
|
|
|
120
121
|
import { Container as Container2, Heading as Heading2 } from "@medusajs/ui";
|
|
121
122
|
import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
|
|
122
123
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
124
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
123
125
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
124
126
|
var CampaignConfigurationSection = ({
|
|
125
127
|
campaign
|
|
@@ -154,6 +156,14 @@ var CampaignConfigurationSection = ({
|
|
|
154
156
|
showTime: true,
|
|
155
157
|
"data-testid": "campaign-configuration-section-date-range"
|
|
156
158
|
}
|
|
159
|
+
),
|
|
160
|
+
/* @__PURE__ */ jsx2(
|
|
161
|
+
DisplayExtensionZone,
|
|
162
|
+
{
|
|
163
|
+
model: "campaign",
|
|
164
|
+
zone: "configuration",
|
|
165
|
+
data: campaign
|
|
166
|
+
}
|
|
157
167
|
)
|
|
158
168
|
] });
|
|
159
169
|
};
|
|
@@ -171,6 +181,7 @@ import {
|
|
|
171
181
|
} from "@medusajs/ui";
|
|
172
182
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
173
183
|
import { useNavigate } from "react-router-dom";
|
|
184
|
+
import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
|
|
174
185
|
|
|
175
186
|
// src/pages/campaigns/common/utils/campaign-status.ts
|
|
176
187
|
import { isAfter, isBefore } from "date-fns";
|
|
@@ -202,6 +213,13 @@ var statusColor = (status) => {
|
|
|
202
213
|
|
|
203
214
|
// src/pages/campaigns/campaign-detail/components/campaign-general-section/campaign-general-section.tsx
|
|
204
215
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
216
|
+
var GENERAL_FIELD_IDS = [
|
|
217
|
+
"name",
|
|
218
|
+
"status",
|
|
219
|
+
"campaign_identifier",
|
|
220
|
+
"description",
|
|
221
|
+
"currency_code"
|
|
222
|
+
];
|
|
205
223
|
var CampaignGeneralSection = ({
|
|
206
224
|
campaign
|
|
207
225
|
}) => {
|
|
@@ -238,9 +256,9 @@ var CampaignGeneralSection = ({
|
|
|
238
256
|
const status = campaignStatus(campaign);
|
|
239
257
|
return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", "data-testid": "campaign-general-section-container", children: [
|
|
240
258
|
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "campaign-general-section-header", children: [
|
|
241
|
-
/* @__PURE__ */ jsx3(Heading3, { "data-testid": "campaign-general-section-name", children: campaign.name }),
|
|
259
|
+
/* @__PURE__ */ jsx3(DisplayField, { model: "campaign", zone: "general", id: "name", data: campaign, children: /* @__PURE__ */ jsx3(Heading3, { "data-testid": "campaign-general-section-name", children: campaign.name }) }),
|
|
242
260
|
/* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-4", children: [
|
|
243
|
-
/* @__PURE__ */ jsx3(StatusBadge, { color: statusColor(status), "data-testid": "campaign-general-section-status", children: t(`campaigns.status.${status}`) }),
|
|
261
|
+
/* @__PURE__ */ jsx3(DisplayField, { model: "campaign", zone: "general", id: "status", data: campaign, children: /* @__PURE__ */ jsx3(StatusBadge, { color: statusColor(status), "data-testid": "campaign-general-section-status", children: t(`campaigns.status.${status}`) }) }),
|
|
244
262
|
/* @__PURE__ */ jsx3(
|
|
245
263
|
ActionMenu,
|
|
246
264
|
{
|
|
@@ -269,21 +287,30 @@ var CampaignGeneralSection = ({
|
|
|
269
287
|
)
|
|
270
288
|
] })
|
|
271
289
|
] }),
|
|
272
|
-
/* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-identifier", children: [
|
|
290
|
+
/* @__PURE__ */ jsx3(DisplayField, { model: "campaign", zone: "general", id: "campaign_identifier", data: campaign, children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-identifier", children: [
|
|
273
291
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", "data-testid": "campaign-general-section-identifier-label", children: t("campaigns.fields.identifier") }),
|
|
274
292
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", "data-testid": "campaign-general-section-identifier-value", children: campaign.campaign_identifier })
|
|
275
|
-
] }),
|
|
276
|
-
/* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-description", children: [
|
|
293
|
+
] }) }),
|
|
294
|
+
/* @__PURE__ */ jsx3(DisplayField, { model: "campaign", zone: "general", id: "description", data: campaign, children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-description", children: [
|
|
277
295
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", "data-testid": "campaign-general-section-description-label", children: t("fields.description") }),
|
|
278
296
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", "data-testid": "campaign-general-section-description-value", children: campaign.description || "-" })
|
|
279
|
-
] }),
|
|
280
|
-
campaign?.budget && campaign.budget.type === "spend" && /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-currency", children: [
|
|
297
|
+
] }) }),
|
|
298
|
+
campaign?.budget && campaign.budget.type === "spend" && /* @__PURE__ */ jsx3(DisplayField, { model: "campaign", zone: "general", id: "currency_code", data: campaign, children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-currency", children: [
|
|
281
299
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", "data-testid": "campaign-general-section-currency-label", children: t("fields.currency") }),
|
|
282
300
|
/* @__PURE__ */ jsxs3("div", { "data-testid": "campaign-general-section-currency-value", children: [
|
|
283
301
|
/* @__PURE__ */ jsx3(Badge, { size: "xsmall", "data-testid": "campaign-general-section-currency-badge", children: campaign?.budget.currency_code }),
|
|
284
302
|
/* @__PURE__ */ jsx3(Text2, { className: "inline pl-3", size: "small", leading: "compact", "data-testid": "campaign-general-section-currency-name", children: currencies[campaign?.budget.currency_code?.toUpperCase()]?.name })
|
|
285
303
|
] })
|
|
286
|
-
] })
|
|
304
|
+
] }) }),
|
|
305
|
+
/* @__PURE__ */ jsx3(
|
|
306
|
+
DisplayExtensionZone2,
|
|
307
|
+
{
|
|
308
|
+
model: "campaign",
|
|
309
|
+
zone: "general",
|
|
310
|
+
data: campaign,
|
|
311
|
+
builtInFieldIds: GENERAL_FIELD_IDS
|
|
312
|
+
}
|
|
313
|
+
)
|
|
287
314
|
] });
|
|
288
315
|
};
|
|
289
316
|
|
|
@@ -294,6 +321,7 @@ import { createColumnHelper } from "@tanstack/react-table";
|
|
|
294
321
|
import { useMemo, useState } from "react";
|
|
295
322
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
296
323
|
import { Link } from "react-router-dom";
|
|
324
|
+
import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
|
|
297
325
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
298
326
|
var PAGE_SIZE = 10;
|
|
299
327
|
var CampaignPromotionSection = ({
|
|
@@ -381,7 +409,8 @@ var CampaignPromotionSection = ({
|
|
|
381
409
|
},
|
|
382
410
|
"data-testid": "campaign-promotion-section-table"
|
|
383
411
|
}
|
|
384
|
-
)
|
|
412
|
+
),
|
|
413
|
+
/* @__PURE__ */ jsx4(DisplayExtensionZone3, { model: "campaign", zone: "promotions", data: campaign })
|
|
385
414
|
] });
|
|
386
415
|
};
|
|
387
416
|
var PromotionActions = ({
|
|
@@ -546,9 +575,10 @@ import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
|
546
575
|
var Root = ({ children }) => {
|
|
547
576
|
const initialData = useLoaderData();
|
|
548
577
|
const { id } = useParams();
|
|
578
|
+
const query = useLinkQuery("campaign", CAMPAIGN_DETAIL_FIELDS);
|
|
549
579
|
const { campaign, isLoading, isError, error } = useCampaign(
|
|
550
580
|
id,
|
|
551
|
-
|
|
581
|
+
query,
|
|
552
582
|
{ initialData }
|
|
553
583
|
);
|
|
554
584
|
if (isLoading || !campaign) {
|
|
@@ -566,15 +596,15 @@ var Root = ({ children }) => {
|
|
|
566
596
|
throw error;
|
|
567
597
|
}
|
|
568
598
|
return Children.count(children) > 0 ? /* @__PURE__ */ jsx6(TwoColumnPage, { hasOutlet: true, showJSON: true, showMetadata: true, data: campaign, "data-testid": "campaign-detail-page", children }) : /* @__PURE__ */ jsxs6(TwoColumnPage, { hasOutlet: true, showJSON: true, showMetadata: true, data: campaign, "data-testid": "campaign-detail-page", children: [
|
|
569
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ jsx6(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "campaigns.detail.main", data: campaign, children: [
|
|
570
600
|
/* @__PURE__ */ jsx6(CampaignGeneralSection, { campaign }),
|
|
571
601
|
/* @__PURE__ */ jsx6(CampaignPromotionSection, { campaign })
|
|
572
|
-
] }),
|
|
573
|
-
/* @__PURE__ */
|
|
602
|
+
] }) }),
|
|
603
|
+
/* @__PURE__ */ jsx6(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "campaigns.detail.side", data: campaign, children: [
|
|
574
604
|
/* @__PURE__ */ jsx6(CampaignConfigurationSection, { campaign }),
|
|
575
605
|
/* @__PURE__ */ jsx6(CampaignSpend, { campaign }),
|
|
576
606
|
/* @__PURE__ */ jsx6(CampaignBudget, { campaign })
|
|
577
|
-
] })
|
|
607
|
+
] }) })
|
|
578
608
|
] });
|
|
579
609
|
};
|
|
580
610
|
var CampaignDetailPage = Object.assign(Root, {
|
|
@@ -23,7 +23,7 @@ var REGIONS_QUERY_KEY = "campaigns";
|
|
|
23
23
|
var campaignsQueryKeys = queryKeysFactory(REGIONS_QUERY_KEY);
|
|
24
24
|
var useCampaign = (id, query, options) => {
|
|
25
25
|
const { data, ...rest } = useQuery({
|
|
26
|
-
queryKey: campaignsQueryKeys.detail(id),
|
|
26
|
+
queryKey: campaignsQueryKeys.detail(id, query),
|
|
27
27
|
queryFn: () => sdk.admin.campaigns.$id.query({ $id: id, ...query }),
|
|
28
28
|
...options
|
|
29
29
|
});
|
|
@@ -98,10 +98,10 @@ var promotionsQueryKeys = {
|
|
|
98
98
|
],
|
|
99
99
|
listRuleValues: (ruleType, ruleValue, query) => [PROMOTIONS_QUERY_KEY, ruleType, ruleValue, query]
|
|
100
100
|
};
|
|
101
|
-
var usePromotion = (id, options) => {
|
|
101
|
+
var usePromotion = (id, query, options) => {
|
|
102
102
|
const { data, ...rest } = useQuery2({
|
|
103
|
-
queryKey: promotionsQueryKeys.detail(id),
|
|
104
|
-
queryFn: async () => sdk.admin.promotions.$id.query({ $id: id }),
|
|
103
|
+
queryKey: promotionsQueryKeys.detail(id, query),
|
|
104
|
+
queryFn: async () => sdk.admin.promotions.$id.query({ $id: id, ...query }),
|
|
105
105
|
...options
|
|
106
106
|
});
|
|
107
107
|
return { ...data, ...rest };
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
StatusCell
|
|
7
7
|
} from "./chunk-DB6ANJBO.js";
|
|
8
|
-
import {
|
|
9
|
-
_DataTable,
|
|
10
|
-
useDataTable
|
|
11
|
-
} from "./chunk-6ZVV2XHU.js";
|
|
12
8
|
import {
|
|
13
9
|
SingleColumnPage
|
|
14
10
|
} from "./chunk-H6MYB7GB.js";
|
|
11
|
+
import {
|
|
12
|
+
_DataTable,
|
|
13
|
+
useDataTable
|
|
14
|
+
} from "./chunk-GRFWCCUW.js";
|
|
15
15
|
import {
|
|
16
16
|
useCurrencies
|
|
17
17
|
} from "./chunk-MO7TNIVQ.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-BDGZ4EQO.js";
|
|
34
34
|
import {
|
|
35
35
|
useSalesChannel
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ZOTBKQLG.js";
|
|
37
37
|
import {
|
|
38
38
|
SingleColumnPageSkeleton
|
|
39
39
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
// src/pages/marketplace/marketplace-detail/marketplace-detail.tsx
|
|
42
42
|
import { Children } from "react";
|
|
43
43
|
import { useLoaderData } from "react-router-dom";
|
|
44
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
44
45
|
|
|
45
46
|
// src/pages/marketplace/marketplace-detail/components/marketplace-currency-section/marketplace-currency-section.tsx
|
|
46
47
|
import { CheckCircle, Plus, Trash, XCircle } from "@medusajs/icons";
|
|
@@ -456,10 +457,10 @@ var Root = ({ children }) => {
|
|
|
456
457
|
if (isError) {
|
|
457
458
|
throw error;
|
|
458
459
|
}
|
|
459
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { data: store, hasOutlet: true, showMetadata: true, showJSON: true, children }) : /* @__PURE__ */
|
|
460
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { data: store, hasOutlet: true, showMetadata: true, showJSON: true, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { data: store, hasOutlet: true, showMetadata: true, showJSON: true, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "marketplace.detail.main", data: store, children: [
|
|
460
461
|
/* @__PURE__ */ jsx3(MarketplaceGeneralSection, { store }),
|
|
461
462
|
/* @__PURE__ */ jsx3(MarketplaceCurrencySection, { store })
|
|
462
|
-
] });
|
|
463
|
+
] }) });
|
|
463
464
|
};
|
|
464
465
|
var MarketplaceDetailPage = Object.assign(Root, {
|
|
465
466
|
GeneralSection: MarketplaceGeneralSection,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-HC25LNX7.js";
|
|
16
16
|
import {
|
|
17
17
|
useShippingOptionTableQuery
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IJ2CSCLP.js";
|
|
19
19
|
import {
|
|
20
20
|
useProductTypeTableQuery
|
|
21
21
|
} from "./chunk-VOHEQ7B5.js";
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
} from "./chunk-JHIMVLB2.js";
|
|
28
28
|
import {
|
|
29
29
|
useProductTableColumns
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-I5HY5Q3K.js";
|
|
31
31
|
import {
|
|
32
32
|
useProductTableFilters
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-APMBU7ZV.js";
|
|
34
34
|
import {
|
|
35
35
|
useProductTableQuery
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-5NSOIZFB.js";
|
|
37
37
|
import {
|
|
38
38
|
StackedDrawer,
|
|
39
39
|
StackedFocusModal
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
_DataTable,
|
|
43
43
|
useDataTable
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-GRFWCCUW.js";
|
|
45
45
|
import {
|
|
46
46
|
useProductTypes
|
|
47
47
|
} from "./chunk-EWFOFSF7.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import {
|
|
55
55
|
useProduct,
|
|
56
56
|
useProducts
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-MMKUMSZS.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,7 +6,7 @@ import {
|
|
|
6
6
|
CategoryHeader,
|
|
7
7
|
ProductStatusCell,
|
|
8
8
|
ProductStatusHeader
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RMB7MPIT.js";
|
|
10
10
|
import {
|
|
11
11
|
ProductCell,
|
|
12
12
|
ProductHeader
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-THHRRYRS.js";
|
|
20
20
|
import {
|
|
21
21
|
require_dist
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VYSB4CTB.js";
|
|
23
23
|
import {
|
|
24
24
|
useProductTags
|
|
25
25
|
} from "./chunk-ABS7HMLY.js";
|
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
} from "./chunk-EWFOFSF7.js";
|
|
29
29
|
import {
|
|
30
30
|
useCollections
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FVG5DTS6.js";
|
|
32
32
|
import {
|
|
33
33
|
useSellers
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SAU35JEB.js";
|
|
35
35
|
import {
|
|
36
36
|
ActionMenu
|
|
37
37
|
} from "./chunk-BDGZ4EQO.js";
|
|
38
38
|
import {
|
|
39
39
|
useProductCategories
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-QVIX6O76.js";
|
|
41
41
|
import {
|
|
42
42
|
__toESM
|
|
43
43
|
} from "./chunk-NBMM2TZK.js";
|
|
@@ -389,6 +389,7 @@ var useOfferTableFilters = () => {
|
|
|
389
389
|
};
|
|
390
390
|
|
|
391
391
|
// src/pages/offers/_components/use-offer-table-query.tsx
|
|
392
|
+
import { useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
392
393
|
var OFFER_LIST_FIELDS = [
|
|
393
394
|
"id",
|
|
394
395
|
"product_id",
|
|
@@ -444,6 +445,7 @@ var useOfferTableQuery = ({
|
|
|
444
445
|
order,
|
|
445
446
|
q
|
|
446
447
|
} = raw;
|
|
448
|
+
const { fields } = useLinkQuery("offer", OFFER_LIST_FIELDS);
|
|
447
449
|
const searchParams = {
|
|
448
450
|
limit: pageSize,
|
|
449
451
|
offset: offset ? parseInt(offset, 10) : 0,
|
|
@@ -458,7 +460,7 @@ var useOfferTableQuery = ({
|
|
|
458
460
|
created_at: created_at ? JSON.parse(created_at) : void 0,
|
|
459
461
|
updated_at: updated_at ? JSON.parse(updated_at) : void 0,
|
|
460
462
|
group_by_seller: "true",
|
|
461
|
-
fields
|
|
463
|
+
fields
|
|
462
464
|
};
|
|
463
465
|
return {
|
|
464
466
|
searchParams,
|