@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-RK5N3XIX.js";
|
|
4
4
|
import {
|
|
5
5
|
getPromotionStatus
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-67KYEPSA.js";
|
|
7
7
|
import {
|
|
8
8
|
formatPercentage
|
|
9
9
|
} from "./chunk-QDPLZDMX.js";
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
} from "./chunk-E74OUNA3.js";
|
|
16
16
|
import {
|
|
17
17
|
NoRecords
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7PPT3477.js";
|
|
19
19
|
import {
|
|
20
20
|
useDeletePromotion,
|
|
21
21
|
usePromotion,
|
|
22
22
|
usePromotionRules
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MTHPNKQ4.js";
|
|
24
24
|
import {
|
|
25
25
|
ActionMenu
|
|
26
26
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -31,12 +31,14 @@ import {
|
|
|
31
31
|
// src/pages/promotions/promotion-detail/promotion-detail.tsx
|
|
32
32
|
import { Children } from "react";
|
|
33
33
|
import { useLoaderData, useParams as useParams4 } from "react-router-dom";
|
|
34
|
+
import { useLinkQuery as useLinkQuery4, WidgetZone } from "@mercurjs/dashboard-shared";
|
|
34
35
|
|
|
35
36
|
// src/pages/promotions/promotion-detail/components/campaign-section/campaign-section.tsx
|
|
36
37
|
import { ArrowUpRightOnBox, PencilSquare } from "@medusajs/icons";
|
|
37
38
|
import { Container, Heading, Text } from "@medusajs/ui";
|
|
38
39
|
import { useTranslation } from "react-i18next";
|
|
39
40
|
import { useParams } from "react-router-dom";
|
|
41
|
+
import { DisplayExtensionZone, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
40
42
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
41
43
|
var CampaignDetailSection = ({
|
|
42
44
|
campaign
|
|
@@ -62,7 +64,8 @@ var CampaignSection = ({
|
|
|
62
64
|
}) => {
|
|
63
65
|
const { t } = useTranslation();
|
|
64
66
|
const { id } = useParams();
|
|
65
|
-
const
|
|
67
|
+
const linkQuery = useLinkQuery("promotion");
|
|
68
|
+
const { promotion } = usePromotion(id, linkQuery, {
|
|
66
69
|
enabled: campaignProp === void 0
|
|
67
70
|
});
|
|
68
71
|
const campaign = campaignProp !== void 0 ? campaignProp : promotion?.campaign ?? null;
|
|
@@ -108,7 +111,8 @@ var CampaignSection = ({
|
|
|
108
111
|
buttonVariant: "transparentIconLeft",
|
|
109
112
|
dataTestId: "promotion-campaign-section-add-to-campaign-button"
|
|
110
113
|
}
|
|
111
|
-
) })
|
|
114
|
+
) }),
|
|
115
|
+
/* @__PURE__ */ jsx(DisplayExtensionZone, { model: "promotion", zone: "campaign", data: campaign })
|
|
112
116
|
] });
|
|
113
117
|
};
|
|
114
118
|
|
|
@@ -117,6 +121,7 @@ import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
|
|
|
117
121
|
import { Badge as Badge2, Container as Container2, Heading as Heading2 } from "@medusajs/ui";
|
|
118
122
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
119
123
|
import { useParams as useParams2 } from "react-router-dom";
|
|
124
|
+
import { DisplayExtensionZone as DisplayExtensionZone2, useLinkQuery as useLinkQuery2 } from "@mercurjs/dashboard-shared";
|
|
120
125
|
|
|
121
126
|
// src/components/common/badge-list-summary/badge-list-summary.tsx
|
|
122
127
|
import { Badge, Tooltip, clx } from "@medusajs/ui";
|
|
@@ -199,7 +204,8 @@ var PromotionConditionsSection = ({
|
|
|
199
204
|
}) => {
|
|
200
205
|
const { t } = useTranslation3();
|
|
201
206
|
const { id } = useParams2();
|
|
202
|
-
const
|
|
207
|
+
const linkQuery = useLinkQuery2("promotion");
|
|
208
|
+
const { promotion } = usePromotion(id, linkQuery, {
|
|
203
209
|
enabled: rulesProp === void 0
|
|
204
210
|
});
|
|
205
211
|
const query = {};
|
|
@@ -287,6 +293,14 @@ var PromotionConditionsSection = ({
|
|
|
287
293
|
))
|
|
288
294
|
]
|
|
289
295
|
}
|
|
296
|
+
),
|
|
297
|
+
/* @__PURE__ */ jsx3(
|
|
298
|
+
DisplayExtensionZone2,
|
|
299
|
+
{
|
|
300
|
+
model: "promotion",
|
|
301
|
+
zone: `conditions-${ruleType}`,
|
|
302
|
+
data: rules
|
|
303
|
+
}
|
|
290
304
|
)
|
|
291
305
|
]
|
|
292
306
|
}
|
|
@@ -307,7 +321,22 @@ import {
|
|
|
307
321
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
308
322
|
import { useNavigate } from "react-router-dom";
|
|
309
323
|
import { useParams as useParams3 } from "react-router-dom";
|
|
324
|
+
import {
|
|
325
|
+
DisplayExtensionZone as DisplayExtensionZone3,
|
|
326
|
+
DisplayField,
|
|
327
|
+
useLinkQuery as useLinkQuery3
|
|
328
|
+
} from "@mercurjs/dashboard-shared";
|
|
310
329
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
330
|
+
var GENERAL_FIELD_IDS = [
|
|
331
|
+
"code",
|
|
332
|
+
"status",
|
|
333
|
+
"is_automatic",
|
|
334
|
+
"code_badge",
|
|
335
|
+
"type",
|
|
336
|
+
"value",
|
|
337
|
+
"allocation",
|
|
338
|
+
"is_tax_inclusive"
|
|
339
|
+
];
|
|
311
340
|
function getDisplayValue(promotion) {
|
|
312
341
|
const value = promotion.application_method?.value;
|
|
313
342
|
if (!value) {
|
|
@@ -331,7 +360,8 @@ var PromotionGeneralSection = ({
|
|
|
331
360
|
const prompt = usePrompt();
|
|
332
361
|
const navigate = useNavigate();
|
|
333
362
|
const { id } = useParams3();
|
|
334
|
-
const
|
|
363
|
+
const linkQuery = useLinkQuery3("promotion");
|
|
364
|
+
const { promotion: fetched } = usePromotion(id, linkQuery, {
|
|
335
365
|
enabled: !promotionProp
|
|
336
366
|
});
|
|
337
367
|
const promotion = promotionProp ?? fetched;
|
|
@@ -363,9 +393,9 @@ var PromotionGeneralSection = ({
|
|
|
363
393
|
const displayValue = getDisplayValue(promotion);
|
|
364
394
|
return /* @__PURE__ */ jsxs4(Container3, { className: "divide-y p-0", "data-testid": "promotion-general-section-container", children: [
|
|
365
395
|
/* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "promotion-general-section-header", children: [
|
|
366
|
-
/* @__PURE__ */ jsx4("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx4(Heading3, { "data-testid": "promotion-general-section-code", children: promotion.code }) }),
|
|
396
|
+
/* @__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 }) }) }),
|
|
367
397
|
/* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2", children: [
|
|
368
|
-
/* @__PURE__ */ jsx4(StatusBadge, { color, "data-testid": "promotion-general-section-status", children: text }),
|
|
398
|
+
/* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "status", data: promotion, children: /* @__PURE__ */ jsx4(StatusBadge, { color, "data-testid": "promotion-general-section-status", children: text }) }),
|
|
369
399
|
/* @__PURE__ */ jsx4(
|
|
370
400
|
ActionMenu,
|
|
371
401
|
{
|
|
@@ -394,11 +424,11 @@ var PromotionGeneralSection = ({
|
|
|
394
424
|
)
|
|
395
425
|
] })
|
|
396
426
|
] }),
|
|
397
|
-
/* @__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: [
|
|
427
|
+
/* @__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: [
|
|
398
428
|
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-method-label", children: t("promotions.fields.method") }),
|
|
399
429
|
/* @__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") })
|
|
400
|
-
] }),
|
|
401
|
-
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "promotion-general-section-code-field", children: [
|
|
430
|
+
] }) }),
|
|
431
|
+
/* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "code_badge", data: promotion, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "promotion-general-section-code-field", children: [
|
|
402
432
|
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-code-label", children: t("fields.code") }),
|
|
403
433
|
/* @__PURE__ */ jsx4(
|
|
404
434
|
Copy,
|
|
@@ -419,26 +449,35 @@ var PromotionGeneralSection = ({
|
|
|
419
449
|
)
|
|
420
450
|
}
|
|
421
451
|
)
|
|
422
|
-
] }),
|
|
423
|
-
/* @__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: [
|
|
452
|
+
] }) }),
|
|
453
|
+
/* @__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: [
|
|
424
454
|
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-type-label", children: t("promotions.fields.type") }),
|
|
425
455
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", "data-testid": "promotion-general-section-type-value", children: promotion.type })
|
|
426
|
-
] }),
|
|
427
|
-
/* @__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: [
|
|
456
|
+
] }) }),
|
|
457
|
+
/* @__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: [
|
|
428
458
|
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-value-label", children: t("promotions.fields.value") }),
|
|
429
459
|
/* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2", "data-testid": "promotion-general-section-value-content", children: [
|
|
430
460
|
/* @__PURE__ */ jsx4(Text2, { className: "inline", size: "small", leading: "compact", "data-testid": "promotion-general-section-value-text", children: displayValue || "-" }),
|
|
431
461
|
promotion?.application_method?.type === "fixed" && /* @__PURE__ */ jsx4(Badge3, { size: "2xsmall", rounded: "full", "data-testid": "promotion-general-section-value-currency", children: promotion?.application_method?.currency_code?.toUpperCase() })
|
|
432
462
|
] })
|
|
433
|
-
] }),
|
|
434
|
-
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", "data-testid": "promotion-general-section-allocation", children: [
|
|
463
|
+
] }) }),
|
|
464
|
+
/* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "allocation", 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-allocation", children: [
|
|
435
465
|
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-allocation-label", children: t("promotions.fields.allocation") }),
|
|
436
466
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", "data-testid": "promotion-general-section-allocation-value", children: promotion.application_method?.allocation })
|
|
437
|
-
] }),
|
|
438
|
-
promotion.application_method?.type === "fixed" && /* @__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: [
|
|
467
|
+
] }) }),
|
|
468
|
+
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: [
|
|
439
469
|
/* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", "data-testid": "promotion-general-section-tax-inclusive-label", children: t("promotions.fields.taxInclusive") }),
|
|
440
470
|
/* @__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("fields.true") : t("fields.false") }) })
|
|
441
|
-
] })
|
|
471
|
+
] }) }),
|
|
472
|
+
/* @__PURE__ */ jsx4(
|
|
473
|
+
DisplayExtensionZone3,
|
|
474
|
+
{
|
|
475
|
+
model: "promotion",
|
|
476
|
+
zone: "general",
|
|
477
|
+
data: promotion,
|
|
478
|
+
builtInFieldIds: GENERAL_FIELD_IDS
|
|
479
|
+
}
|
|
480
|
+
)
|
|
442
481
|
] });
|
|
443
482
|
};
|
|
444
483
|
|
|
@@ -447,7 +486,10 @@ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
|
447
486
|
var Root = ({ children }) => {
|
|
448
487
|
const initialData = useLoaderData();
|
|
449
488
|
const { id } = useParams4();
|
|
450
|
-
const
|
|
489
|
+
const linkQuery = useLinkQuery4("promotion");
|
|
490
|
+
const { promotion, isLoading } = usePromotion(id, linkQuery, {
|
|
491
|
+
initialData
|
|
492
|
+
});
|
|
451
493
|
const query = {};
|
|
452
494
|
if (promotion?.type === "buyget") {
|
|
453
495
|
query.promotion_type = promotion.type;
|
|
@@ -459,7 +501,7 @@ var Root = ({ children }) => {
|
|
|
459
501
|
return /* @__PURE__ */ jsx5(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 1, showJSON: true });
|
|
460
502
|
}
|
|
461
503
|
return Children.count(children) > 0 ? /* @__PURE__ */ jsx5(TwoColumnPage, { data: promotion, hasOutlet: true, showJSON: true, "data-testid": "promotion-detail-page", children }) : /* @__PURE__ */ jsxs5(TwoColumnPage, { data: promotion, hasOutlet: true, showJSON: true, "data-testid": "promotion-detail-page", children: [
|
|
462
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ jsx5(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "promotions.detail.main", data: promotion, children: [
|
|
463
505
|
/* @__PURE__ */ jsx5(PromotionGeneralSection, { promotion }),
|
|
464
506
|
/* @__PURE__ */ jsx5(
|
|
465
507
|
PromotionConditionsSection,
|
|
@@ -484,8 +526,8 @@ var Root = ({ children }) => {
|
|
|
484
526
|
applicationMethodTargetType: "items"
|
|
485
527
|
}
|
|
486
528
|
)
|
|
487
|
-
] }),
|
|
488
|
-
/* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(CampaignSection, { campaign: promotion.campaign }) })
|
|
529
|
+
] }) }),
|
|
530
|
+
/* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(WidgetZone, { id: "promotions.detail.side", data: promotion, children: /* @__PURE__ */ jsx5(CampaignSection, { campaign: promotion.campaign }) }) })
|
|
489
531
|
] });
|
|
490
532
|
};
|
|
491
533
|
var PromotionDetailPage = Object.assign(Root, {
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
useCreateProductCategory,
|
|
36
36
|
useProductCategories
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-QVIX6O76.js";
|
|
38
38
|
import {
|
|
39
39
|
useDocumentDirection
|
|
40
40
|
} from "./chunk-Y7QKP6QU.js";
|
|
@@ -357,11 +357,7 @@ var CreateCategoryForm = ({
|
|
|
357
357
|
},
|
|
358
358
|
{
|
|
359
359
|
onSuccess: ({ product_category }) => {
|
|
360
|
-
toast.success(
|
|
361
|
-
t("categories.create.successToast", {
|
|
362
|
-
name: product_category.name
|
|
363
|
-
})
|
|
364
|
-
);
|
|
360
|
+
toast.success(t("categories.create.successToast"));
|
|
365
361
|
handleSuccess(`/categories/${product_category.id}`);
|
|
366
362
|
},
|
|
367
363
|
onError: (error) => {
|
|
@@ -381,6 +377,8 @@ var CreateCategoryForm = ({
|
|
|
381
377
|
return /* @__PURE__ */ jsx3(
|
|
382
378
|
TabbedForm,
|
|
383
379
|
{
|
|
380
|
+
model: "category",
|
|
381
|
+
zone: "create",
|
|
384
382
|
form,
|
|
385
383
|
onSubmit: handleSubmit,
|
|
386
384
|
isLoading: isPending,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TaxRegionTable,
|
|
3
3
|
useTaxRegionTable
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P3GGL5JL.js";
|
|
5
5
|
import {
|
|
6
6
|
useTaxRegionTableQuery
|
|
7
7
|
} from "./chunk-AYVH6Q5O.js";
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
|
|
15
15
|
// src/pages/tax-regions/tax-region-list/tax-region-list.tsx
|
|
16
16
|
import { Children as Children3 } from "react";
|
|
17
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
17
18
|
|
|
18
19
|
// src/pages/tax-regions/tax-region-list/components/tax-region-list-view/tax-region-list-view.tsx
|
|
19
20
|
import { Children as Children2 } from "react";
|
|
@@ -98,7 +99,7 @@ var TaxRegionListView = ({
|
|
|
98
99
|
// src/pages/tax-regions/tax-region-list/tax-region-list.tsx
|
|
99
100
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
100
101
|
var Root = ({ children }) => {
|
|
101
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(TaxRegionListView, {}) });
|
|
102
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { hasOutlet: true, children: /* @__PURE__ */ jsx4(WidgetZone, { id: "tax-regions.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(TaxRegionListView, {}) }) });
|
|
102
103
|
};
|
|
103
104
|
var TaxRegionListPage = Object.assign(Root, {
|
|
104
105
|
Table: TaxRegionListView,
|
|
@@ -13,27 +13,28 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
StatusCell
|
|
15
15
|
} from "./chunk-DB6ANJBO.js";
|
|
16
|
-
import {
|
|
17
|
-
_DataTable,
|
|
18
|
-
useDataTable
|
|
19
|
-
} from "./chunk-6ZVV2XHU.js";
|
|
20
16
|
import {
|
|
21
17
|
SingleColumnPage
|
|
22
18
|
} from "./chunk-H6MYB7GB.js";
|
|
23
19
|
import {
|
|
24
20
|
useQueryParams
|
|
25
21
|
} from "./chunk-THHRRYRS.js";
|
|
22
|
+
import {
|
|
23
|
+
_DataTable,
|
|
24
|
+
useDataTable
|
|
25
|
+
} from "./chunk-GRFWCCUW.js";
|
|
26
26
|
import {
|
|
27
27
|
useApiKeys,
|
|
28
28
|
useDeleteApiKey,
|
|
29
29
|
useRevokeApiKey
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZAANJVLM.js";
|
|
31
31
|
import {
|
|
32
32
|
ActionMenu
|
|
33
33
|
} from "./chunk-BDGZ4EQO.js";
|
|
34
34
|
|
|
35
35
|
// src/pages/api-key-management/api-key-management-list/api-key-management-list.tsx
|
|
36
36
|
import { Children as Children3 } from "react";
|
|
37
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
37
38
|
|
|
38
39
|
// src/pages/api-key-management/api-key-management-list/components/api-key-management-list-view/api-key-management-list-view.tsx
|
|
39
40
|
import { Children as Children2 } from "react";
|
|
@@ -379,7 +380,7 @@ var Root = ({ children }) => {
|
|
|
379
380
|
{
|
|
380
381
|
hasOutlet: true,
|
|
381
382
|
"data-testid": "publishable-api-keys-list-page",
|
|
382
|
-
children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx6(ApiKeyManagementListView, {})
|
|
383
|
+
children: /* @__PURE__ */ jsx6(WidgetZone, { id: "api-keys.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx6(ApiKeyManagementListView, {}) })
|
|
383
384
|
}
|
|
384
385
|
);
|
|
385
386
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useProductTableColumns
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I5HY5Q3K.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableFilters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-APMBU7ZV.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableQuery
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5NSOIZFB.js";
|
|
10
10
|
import {
|
|
11
11
|
PRODUCT_IDS_KEY
|
|
12
12
|
} from "./chunk-LO2ZWQGL.js";
|
|
13
|
-
import {
|
|
14
|
-
_DataTable,
|
|
15
|
-
useDataTable
|
|
16
|
-
} from "./chunk-6ZVV2XHU.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
|
ActionMenu
|
|
22
22
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -24,10 +24,11 @@ import {
|
|
|
24
24
|
useBatchProducts,
|
|
25
25
|
useDeleteProduct,
|
|
26
26
|
useProducts
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MMKUMSZS.js";
|
|
28
28
|
|
|
29
29
|
// src/pages/products/product-list/product-list.tsx
|
|
30
30
|
import { Children as Children2 } from "react";
|
|
31
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
31
32
|
|
|
32
33
|
// src/pages/products/product-list/components/product-list-table/product-list-table.tsx
|
|
33
34
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -40,7 +41,10 @@ import {
|
|
|
40
41
|
usePrompt
|
|
41
42
|
} from "@medusajs/ui";
|
|
42
43
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
43
|
-
import {
|
|
44
|
+
import {
|
|
45
|
+
createColumnHelper
|
|
46
|
+
} from "@tanstack/react-table";
|
|
47
|
+
import { useExtendableTable } from "@mercurjs/dashboard-shared";
|
|
44
48
|
import { useMemo, useState, Children } from "react";
|
|
45
49
|
import { useTranslation } from "react-i18next";
|
|
46
50
|
import { Link, Outlet, useLoaderData, useNavigate } from "react-router-dom";
|
|
@@ -103,8 +107,12 @@ var ProductListDataTable = () => {
|
|
|
103
107
|
placeholderData: keepPreviousData
|
|
104
108
|
}
|
|
105
109
|
);
|
|
106
|
-
const
|
|
107
|
-
const columns = useColumns();
|
|
110
|
+
const baseFilters = useProductTableFilters();
|
|
111
|
+
const { columns, filters: extFilters } = useColumns();
|
|
112
|
+
const filters = useMemo(
|
|
113
|
+
() => [...baseFilters, ...extFilters],
|
|
114
|
+
[baseFilters, extFilters]
|
|
115
|
+
);
|
|
108
116
|
const { table } = useDataTable({
|
|
109
117
|
data: products ?? [],
|
|
110
118
|
columns,
|
|
@@ -266,6 +274,10 @@ var ProductActions = ({ product }) => {
|
|
|
266
274
|
var columnHelper = createColumnHelper();
|
|
267
275
|
var useColumns = () => {
|
|
268
276
|
const base = useProductTableColumns();
|
|
277
|
+
const { columns: extended, filters } = useExtendableTable({
|
|
278
|
+
model: "product",
|
|
279
|
+
columns: base
|
|
280
|
+
});
|
|
269
281
|
const columns = useMemo(
|
|
270
282
|
() => [
|
|
271
283
|
columnHelper.display({
|
|
@@ -288,7 +300,7 @@ var useColumns = () => {
|
|
|
288
300
|
}
|
|
289
301
|
)
|
|
290
302
|
}),
|
|
291
|
-
...
|
|
303
|
+
...extended,
|
|
292
304
|
columnHelper.display({
|
|
293
305
|
id: "actions",
|
|
294
306
|
header: () => /* @__PURE__ */ jsx(
|
|
@@ -304,15 +316,15 @@ var useColumns = () => {
|
|
|
304
316
|
}
|
|
305
317
|
})
|
|
306
318
|
],
|
|
307
|
-
[
|
|
319
|
+
[extended]
|
|
308
320
|
);
|
|
309
|
-
return columns;
|
|
321
|
+
return { columns, filters };
|
|
310
322
|
};
|
|
311
323
|
|
|
312
324
|
// src/pages/products/product-list/product-list.tsx
|
|
313
325
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
314
326
|
var Root = ({ children }) => {
|
|
315
|
-
return /* @__PURE__ */ jsx2("div", { "data-testid": "products-page", children: /* @__PURE__ */ jsx2(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(ProductListTable, {}) }) });
|
|
327
|
+
return /* @__PURE__ */ jsx2("div", { "data-testid": "products-page", children: /* @__PURE__ */ jsx2(SingleColumnPage, { children: /* @__PURE__ */ jsx2(WidgetZone, { id: "products.list", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(ProductListTable, {}) }) }) });
|
|
316
328
|
};
|
|
317
329
|
var ProductListPage = Object.assign(Root, {
|
|
318
330
|
Table: ProductListTable,
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
SectionRow
|
|
17
17
|
} from "./chunk-3XPXUIK3.js";
|
|
18
|
-
import {
|
|
19
|
-
_DataTable,
|
|
20
|
-
useDataTable
|
|
21
|
-
} from "./chunk-6ZVV2XHU.js";
|
|
22
18
|
import {
|
|
23
19
|
SingleColumnPage
|
|
24
20
|
} from "./chunk-H6MYB7GB.js";
|
|
21
|
+
import {
|
|
22
|
+
_DataTable,
|
|
23
|
+
useDataTable
|
|
24
|
+
} from "./chunk-GRFWCCUW.js";
|
|
25
25
|
import {
|
|
26
26
|
useDeleteRegion,
|
|
27
27
|
useRegion,
|
|
@@ -396,6 +396,9 @@ var RegionActions = ({ region }) => {
|
|
|
396
396
|
);
|
|
397
397
|
};
|
|
398
398
|
|
|
399
|
+
// src/pages/regions/region-detail/region-detail.tsx
|
|
400
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
401
|
+
|
|
399
402
|
// src/pages/regions/region-detail/constants.ts
|
|
400
403
|
var REGION_DETAIL_FIELDS = "*payment_providers,*countries,+automatic_taxes";
|
|
401
404
|
|
|
@@ -437,7 +440,7 @@ var Root = ({ children }) => {
|
|
|
437
440
|
if (isPreferencesError) {
|
|
438
441
|
throw preferencesError;
|
|
439
442
|
}
|
|
440
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { data: region, showMetadata: true, showJSON: true, children }) : /* @__PURE__ */
|
|
443
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { data: region, showMetadata: true, showJSON: true, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { data: region, showMetadata: true, showJSON: true, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "regions.detail.main", data: region, children: [
|
|
441
444
|
/* @__PURE__ */ jsx3(
|
|
442
445
|
RegionGeneralSection,
|
|
443
446
|
{
|
|
@@ -446,7 +449,7 @@ var Root = ({ children }) => {
|
|
|
446
449
|
}
|
|
447
450
|
),
|
|
448
451
|
/* @__PURE__ */ jsx3(RegionCountrySection, { region })
|
|
449
|
-
] });
|
|
452
|
+
] }) });
|
|
450
453
|
};
|
|
451
454
|
var RegionDetailPage = Object.assign(Root, {
|
|
452
455
|
GeneralSection: RegionGeneralSection,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reservationItemsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WX4ABVXL.js";
|
|
4
4
|
import {
|
|
5
5
|
ordersQueryKeys
|
|
6
6
|
} from "./chunk-WF3ZDT5Z.js";
|
|
7
7
|
import {
|
|
8
8
|
inventoryItemsQueryKeys
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MMKUMSZS.js";
|
|
10
10
|
import {
|
|
11
11
|
queryClient
|
|
12
12
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-THHRRYRS.js";
|
|
4
4
|
import {
|
|
5
5
|
require_dist
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VYSB4CTB.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM
|
|
9
9
|
} from "./chunk-NBMM2TZK.js";
|
|
@@ -105,6 +105,7 @@ var useReturnReasonTableQuery = ({
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
// src/hooks/table/query/use-sellers-table-query.tsx
|
|
108
|
+
import { linkFields, useExtension } from "@mercurjs/dashboard-shared";
|
|
108
109
|
var import_types = __toESM(require_dist(), 1);
|
|
109
110
|
var ACTIVE_STATUSES = [
|
|
110
111
|
import_types.SellerStatus.OPEN,
|
|
@@ -115,6 +116,7 @@ var useSellersTableQuery = ({
|
|
|
115
116
|
prefix,
|
|
116
117
|
pageSize = 20
|
|
117
118
|
}) => {
|
|
119
|
+
const links = useExtension().getLinks("seller");
|
|
118
120
|
const queryObject = useQueryParams(
|
|
119
121
|
["offset", "q", "created_at", "updated_at", "status", "is_premium", "order"],
|
|
120
122
|
prefix
|
|
@@ -128,7 +130,8 @@ var useSellersTableQuery = ({
|
|
|
128
130
|
status: status?.split(",") ?? ACTIVE_STATUSES,
|
|
129
131
|
is_premium: is_premium ? is_premium === "true" : void 0,
|
|
130
132
|
q,
|
|
131
|
-
order: order ? order : "-created_at"
|
|
133
|
+
order: order ? order : "-created_at",
|
|
134
|
+
...links.length ? { fields: linkFields(links) } : {}
|
|
132
135
|
};
|
|
133
136
|
return {
|
|
134
137
|
searchParams,
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
} from "./chunk-QE4R2KT3.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
|
useProductTag
|
|
22
22
|
} from "./chunk-ABS7HMLY.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-tags/product-tag-detail/product-tag-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-tags/product-tag-detail/components/product-tag-general-section/product-tag-general-section.tsx
|
|
38
39
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -155,10 +156,10 @@ var Root = ({ children }) => {
|
|
|
155
156
|
if (isError) {
|
|
156
157
|
throw error;
|
|
157
158
|
}
|
|
158
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: product_tag, children }) : /* @__PURE__ */
|
|
159
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: product_tag, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: product_tag, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "product-tags.detail.main", data: product_tag, children: [
|
|
159
160
|
/* @__PURE__ */ jsx3(ProductTagGeneralSection, { productTag: product_tag }),
|
|
160
161
|
/* @__PURE__ */ jsx3(ProductTagProductSection, { productTag: product_tag })
|
|
161
|
-
] });
|
|
162
|
+
] }) });
|
|
162
163
|
};
|
|
163
164
|
var ProductTagDetailPage = Object.assign(Root, {
|
|
164
165
|
GeneralSection: ProductTagGeneralSection,
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
usePayoutTableQuery
|
|
6
6
|
} from "./chunk-GR6JUIRU.js";
|
|
7
|
-
import {
|
|
8
|
-
_DataTable,
|
|
9
|
-
useDataTable
|
|
10
|
-
} from "./chunk-6ZVV2XHU.js";
|
|
11
7
|
import {
|
|
12
8
|
SingleColumnPage
|
|
13
9
|
} from "./chunk-H6MYB7GB.js";
|
|
10
|
+
import {
|
|
11
|
+
_DataTable,
|
|
12
|
+
useDataTable
|
|
13
|
+
} from "./chunk-GRFWCCUW.js";
|
|
14
14
|
import {
|
|
15
15
|
usePayouts
|
|
16
16
|
} from "./chunk-L7DIEO5B.js";
|
|
@@ -20,6 +20,7 @@ import { Children } from "react";
|
|
|
20
20
|
import { Container, Heading } from "@medusajs/ui";
|
|
21
21
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
22
22
|
import { useTranslation } from "react-i18next";
|
|
23
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
23
24
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
24
25
|
var PAGE_SIZE = 10;
|
|
25
26
|
var PayoutListTitle = () => {
|
|
@@ -86,7 +87,7 @@ var PayoutListTable = ({ children }) => {
|
|
|
86
87
|
] }) });
|
|
87
88
|
};
|
|
88
89
|
var Root = ({ children }) => {
|
|
89
|
-
return /* @__PURE__ */ jsx(SingleColumnPage, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx(PayoutListTable, {}) });
|
|
90
|
+
return /* @__PURE__ */ jsx(SingleColumnPage, { children: /* @__PURE__ */ jsx(WidgetZone, { id: "payouts.list", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx(PayoutListTable, {}) }) });
|
|
90
91
|
};
|
|
91
92
|
var PayoutListPage = Object.assign(Root, {
|
|
92
93
|
Table: PayoutListTable,
|