@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProductMediaSection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KUBTN5TC.js";
|
|
4
4
|
import {
|
|
5
5
|
SectionRow
|
|
6
6
|
} from "./chunk-3XPXUIK3.js";
|
|
@@ -13,19 +13,19 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
Thumbnail
|
|
15
15
|
} from "./chunk-WIYFXWRI.js";
|
|
16
|
-
import {
|
|
17
|
-
_DataTable,
|
|
18
|
-
useDataTable
|
|
19
|
-
} from "./chunk-6ZVV2XHU.js";
|
|
20
16
|
import {
|
|
21
17
|
useQueryParams
|
|
22
18
|
} from "./chunk-THHRRYRS.js";
|
|
23
19
|
import {
|
|
24
20
|
require_dist
|
|
25
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VYSB4CTB.js";
|
|
22
|
+
import {
|
|
23
|
+
_DataTable,
|
|
24
|
+
useDataTable
|
|
25
|
+
} from "./chunk-GRFWCCUW.js";
|
|
26
26
|
import {
|
|
27
27
|
useSeller
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-SAU35JEB.js";
|
|
29
29
|
import {
|
|
30
30
|
ActionMenu
|
|
31
31
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
useRejectProduct,
|
|
45
45
|
useRemoveAttributeFromProduct,
|
|
46
46
|
useRequestProductChanges
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-MMKUMSZS.js";
|
|
48
48
|
import {
|
|
49
49
|
sdk
|
|
50
50
|
} from "./chunk-LXZXXOJ3.js";
|
|
@@ -55,6 +55,7 @@ import {
|
|
|
55
55
|
// src/pages/products/product-detail/product-detail.tsx
|
|
56
56
|
import { Children } from "react";
|
|
57
57
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
58
|
+
import { WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
58
59
|
|
|
59
60
|
// src/pages/products/product-detail/components/product-active-edit-section/product-active-edit-section.tsx
|
|
60
61
|
var import_types = __toESM(require_dist(), 1);
|
|
@@ -104,11 +105,11 @@ var ConfirmPrompt = ({
|
|
|
104
105
|
await onConfirm(showNoteField && trimmed ? trimmed : void 0);
|
|
105
106
|
};
|
|
106
107
|
return /* @__PURE__ */ jsx(Prompt, { open, onOpenChange: handleOpenChange, variant, children: /* @__PURE__ */ jsxs(Prompt.Content, { children: [
|
|
107
|
-
/* @__PURE__ */ jsxs(Prompt.Header, { children: [
|
|
108
|
+
/* @__PURE__ */ jsxs(Prompt.Header, { className: showNoteField ? "pb-6" : void 0, children: [
|
|
108
109
|
/* @__PURE__ */ jsx(Prompt.Title, { children: title }),
|
|
109
110
|
description ? /* @__PURE__ */ jsx(Prompt.Description, { children: description }) : null
|
|
110
111
|
] }),
|
|
111
|
-
showNoteField ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-2 px-6 py-4", children: [
|
|
112
|
+
showNoteField ? /* @__PURE__ */ jsxs("div", { className: "border-ui-border-base flex flex-col gap-y-2 border-y px-6 py-4", children: [
|
|
112
113
|
/* @__PURE__ */ jsxs(Label, { size: "small", weight: "plus", children: [
|
|
113
114
|
noteLabel,
|
|
114
115
|
noteOptional ? /* @__PURE__ */ jsxs("span", { className: "text-ui-fg-muted ml-1 font-normal", children: [
|
|
@@ -306,6 +307,7 @@ import { useState as useState3 } from "react";
|
|
|
306
307
|
import { Button as Button2, Container, Heading, Text as Text2, toast as toast2 } from "@medusajs/ui";
|
|
307
308
|
import { ExclamationCircleSolid } from "@medusajs/icons";
|
|
308
309
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
310
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
309
311
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
310
312
|
var ProductActiveRequestSection = ({
|
|
311
313
|
product
|
|
@@ -451,7 +453,8 @@ var ProductActiveRequestSection = ({
|
|
|
451
453
|
isLoading: isRejecting,
|
|
452
454
|
onConfirm: handleReject
|
|
453
455
|
}
|
|
454
|
-
)
|
|
456
|
+
),
|
|
457
|
+
/* @__PURE__ */ jsx3(DisplayExtensionZone, { model: "product", zone: "request", data: product })
|
|
455
458
|
]
|
|
456
459
|
}
|
|
457
460
|
);
|
|
@@ -476,6 +479,7 @@ import {
|
|
|
476
479
|
usePrompt
|
|
477
480
|
} from "@medusajs/ui";
|
|
478
481
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
482
|
+
import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
|
|
479
483
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
480
484
|
var AttributeActions = ({
|
|
481
485
|
productId,
|
|
@@ -655,7 +659,8 @@ var ProductAttributeSection = ({
|
|
|
655
659
|
attributes: infoAttributes,
|
|
656
660
|
productId: product.id
|
|
657
661
|
}
|
|
658
|
-
)
|
|
662
|
+
),
|
|
663
|
+
/* @__PURE__ */ jsx4(DisplayExtensionZone2, { model: "product", zone: "attributes", data: product })
|
|
659
664
|
] });
|
|
660
665
|
};
|
|
661
666
|
|
|
@@ -664,7 +669,16 @@ import { PencilSquare as PencilSquare2, Trash as Trash2 } from "@medusajs/icons"
|
|
|
664
669
|
import { Container as Container3, Heading as Heading3, StatusBadge, usePrompt as usePrompt2 } from "@medusajs/ui";
|
|
665
670
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
666
671
|
import { useNavigate } from "react-router-dom";
|
|
672
|
+
import { DisplayExtensionZone as DisplayExtensionZone3, DisplayField } from "@mercurjs/dashboard-shared";
|
|
667
673
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
674
|
+
var GENERAL_FIELD_IDS = [
|
|
675
|
+
"title",
|
|
676
|
+
"status",
|
|
677
|
+
"description",
|
|
678
|
+
"subtitle",
|
|
679
|
+
"handle",
|
|
680
|
+
"discountable"
|
|
681
|
+
];
|
|
668
682
|
var productStatusColor = (status) => {
|
|
669
683
|
switch (status) {
|
|
670
684
|
case "draft":
|
|
@@ -711,7 +725,7 @@ var ProductGeneralSection = ({
|
|
|
711
725
|
className: "flex items-center justify-between px-6 py-4",
|
|
712
726
|
"data-testid": "product-general-header",
|
|
713
727
|
children: [
|
|
714
|
-
/* @__PURE__ */ jsx5(Heading3, { "data-testid": "product-general-title", children: product.title }),
|
|
728
|
+
/* @__PURE__ */ jsx5(DisplayField, { model: "product", zone: "general", id: "title", data: product, children: /* @__PURE__ */ jsx5(Heading3, { "data-testid": "product-general-title", children: product.title }) }),
|
|
715
729
|
/* @__PURE__ */ jsxs5(
|
|
716
730
|
"div",
|
|
717
731
|
{
|
|
@@ -719,11 +733,20 @@ var ProductGeneralSection = ({
|
|
|
719
733
|
"data-testid": "product-general-actions",
|
|
720
734
|
children: [
|
|
721
735
|
/* @__PURE__ */ jsx5(
|
|
722
|
-
|
|
736
|
+
DisplayField,
|
|
723
737
|
{
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
738
|
+
model: "product",
|
|
739
|
+
zone: "general",
|
|
740
|
+
id: "status",
|
|
741
|
+
data: product,
|
|
742
|
+
children: /* @__PURE__ */ jsx5(
|
|
743
|
+
StatusBadge,
|
|
744
|
+
{
|
|
745
|
+
color: productStatusColor(product.status),
|
|
746
|
+
"data-testid": "product-status-badge",
|
|
747
|
+
children: t(`products.productStatus.${product.status}`)
|
|
748
|
+
}
|
|
749
|
+
)
|
|
727
750
|
}
|
|
728
751
|
),
|
|
729
752
|
/* @__PURE__ */ jsx5(
|
|
@@ -758,36 +781,54 @@ var ProductGeneralSection = ({
|
|
|
758
781
|
]
|
|
759
782
|
}
|
|
760
783
|
),
|
|
761
|
-
/* @__PURE__ */ jsx5(
|
|
784
|
+
/* @__PURE__ */ jsx5(DisplayField, { model: "product", zone: "general", id: "description", data: product, children: /* @__PURE__ */ jsx5(
|
|
762
785
|
SectionRow,
|
|
763
786
|
{
|
|
764
787
|
title: t("fields.description"),
|
|
765
788
|
value: product.description,
|
|
766
789
|
"data-testid": "product-description-row"
|
|
767
790
|
}
|
|
768
|
-
),
|
|
769
|
-
/* @__PURE__ */ jsx5(
|
|
791
|
+
) }),
|
|
792
|
+
/* @__PURE__ */ jsx5(DisplayField, { model: "product", zone: "general", id: "subtitle", data: product, children: /* @__PURE__ */ jsx5(
|
|
770
793
|
SectionRow,
|
|
771
794
|
{
|
|
772
795
|
title: t("fields.subtitle"),
|
|
773
796
|
value: product.subtitle,
|
|
774
797
|
"data-testid": "product-subtitle-row"
|
|
775
798
|
}
|
|
776
|
-
),
|
|
777
|
-
/* @__PURE__ */ jsx5(
|
|
799
|
+
) }),
|
|
800
|
+
/* @__PURE__ */ jsx5(DisplayField, { model: "product", zone: "general", id: "handle", data: product, children: /* @__PURE__ */ jsx5(
|
|
778
801
|
SectionRow,
|
|
779
802
|
{
|
|
780
803
|
title: t("fields.handle"),
|
|
781
804
|
value: `/${product.handle}`,
|
|
782
805
|
"data-testid": "product-handle-row"
|
|
783
806
|
}
|
|
807
|
+
) }),
|
|
808
|
+
/* @__PURE__ */ jsx5(
|
|
809
|
+
DisplayField,
|
|
810
|
+
{
|
|
811
|
+
model: "product",
|
|
812
|
+
zone: "general",
|
|
813
|
+
id: "discountable",
|
|
814
|
+
data: product,
|
|
815
|
+
children: /* @__PURE__ */ jsx5(
|
|
816
|
+
SectionRow,
|
|
817
|
+
{
|
|
818
|
+
title: t("fields.discountable"),
|
|
819
|
+
value: product.discountable ? t("fields.true") : t("fields.false"),
|
|
820
|
+
"data-testid": "product-discountable-row"
|
|
821
|
+
}
|
|
822
|
+
)
|
|
823
|
+
}
|
|
784
824
|
),
|
|
785
825
|
/* @__PURE__ */ jsx5(
|
|
786
|
-
|
|
826
|
+
DisplayExtensionZone3,
|
|
787
827
|
{
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
828
|
+
model: "product",
|
|
829
|
+
zone: "general",
|
|
830
|
+
data: product,
|
|
831
|
+
builtInFieldIds: GENERAL_FIELD_IDS
|
|
791
832
|
}
|
|
792
833
|
)
|
|
793
834
|
] });
|
|
@@ -798,6 +839,7 @@ import { PencilSquare as PencilSquare3 } from "@medusajs/icons";
|
|
|
798
839
|
import { Badge as Badge2, Container as Container4, Heading as Heading4, Tooltip as Tooltip2 } from "@medusajs/ui";
|
|
799
840
|
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
800
841
|
import { Link } from "react-router-dom";
|
|
842
|
+
import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
|
|
801
843
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
802
844
|
var ProductOrganizationSection = ({
|
|
803
845
|
product
|
|
@@ -893,7 +935,8 @@ var ProductOrganizationSection = ({
|
|
|
893
935
|
) : void 0,
|
|
894
936
|
"data-testid": "product-type-row"
|
|
895
937
|
}
|
|
896
|
-
)
|
|
938
|
+
),
|
|
939
|
+
/* @__PURE__ */ jsx6(DisplayExtensionZone4, { model: "product", zone: "organize", data: product })
|
|
897
940
|
]
|
|
898
941
|
}
|
|
899
942
|
);
|
|
@@ -912,6 +955,7 @@ var OrganizationTag = ({ label, to }) => {
|
|
|
912
955
|
// src/pages/products/product-detail/components/product-variant-section/product-variant-section.tsx
|
|
913
956
|
import { useCallback, useMemo } from "react";
|
|
914
957
|
import { PencilSquare as PencilSquare4, Trash as Trash3 } from "@medusajs/icons";
|
|
958
|
+
import { DisplayExtensionZone as DisplayExtensionZone5 } from "@mercurjs/dashboard-shared";
|
|
915
959
|
import {
|
|
916
960
|
Badge as Badge3,
|
|
917
961
|
Button as Button3,
|
|
@@ -999,7 +1043,8 @@ var ProductVariantSection = ({
|
|
|
999
1043
|
message: t("products.variants.empty.description")
|
|
1000
1044
|
}
|
|
1001
1045
|
}
|
|
1002
|
-
)
|
|
1046
|
+
),
|
|
1047
|
+
/* @__PURE__ */ jsx7(DisplayExtensionZone5, { model: "product", zone: "variants", data: product })
|
|
1003
1048
|
] });
|
|
1004
1049
|
};
|
|
1005
1050
|
var columnHelper = createColumnHelper();
|
|
@@ -1166,12 +1211,13 @@ import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
|
1166
1211
|
var Root = ({ children }) => {
|
|
1167
1212
|
const initialData = useLoaderData();
|
|
1168
1213
|
const { id } = useParams();
|
|
1214
|
+
const query = useLinkQuery("product", PRODUCT_DETAIL_QUERY.fields);
|
|
1169
1215
|
const {
|
|
1170
1216
|
product: rawProduct,
|
|
1171
1217
|
isLoading,
|
|
1172
1218
|
isError,
|
|
1173
1219
|
error
|
|
1174
|
-
} = useProduct(id,
|
|
1220
|
+
} = useProduct(id, query, {
|
|
1175
1221
|
initialData
|
|
1176
1222
|
});
|
|
1177
1223
|
const product = rawProduct;
|
|
@@ -1206,17 +1252,17 @@ var Root = ({ children }) => {
|
|
|
1206
1252
|
showMetadata: true,
|
|
1207
1253
|
"data-testid": "product-detail-page",
|
|
1208
1254
|
children: [
|
|
1209
|
-
/* @__PURE__ */
|
|
1255
|
+
/* @__PURE__ */ jsx8(TwoColumnPage.Main, { "data-testid": "product-detail-main", children: /* @__PURE__ */ jsxs8(WidgetZone, { id: "product.detail.main", data: product, children: [
|
|
1210
1256
|
/* @__PURE__ */ jsx8(ProductActiveRequestSection, { product }),
|
|
1211
1257
|
/* @__PURE__ */ jsx8(ProductActiveEditSection, { product }),
|
|
1212
1258
|
/* @__PURE__ */ jsx8(ProductGeneralSection, { product }),
|
|
1213
1259
|
/* @__PURE__ */ jsx8(ProductMediaSection, { product }),
|
|
1214
1260
|
/* @__PURE__ */ jsx8(ProductVariantSection, { product })
|
|
1215
|
-
] }),
|
|
1216
|
-
/* @__PURE__ */
|
|
1261
|
+
] }) }),
|
|
1262
|
+
/* @__PURE__ */ jsx8(TwoColumnPage.Sidebar, { "data-testid": "product-detail-sidebar", children: /* @__PURE__ */ jsxs8(WidgetZone, { id: "product.detail.side", data: product, children: [
|
|
1217
1263
|
/* @__PURE__ */ jsx8(ProductOrganizationSection, { product }),
|
|
1218
1264
|
/* @__PURE__ */ jsx8(ProductAttributeSection, { product })
|
|
1219
|
-
] })
|
|
1265
|
+
] }) })
|
|
1220
1266
|
]
|
|
1221
1267
|
}
|
|
1222
1268
|
);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
useSalesChannelTableEmptyState,
|
|
4
4
|
useSalesChannelTableFilters,
|
|
5
5
|
useSalesChannelTableQuery
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HC2TEEKQ.js";
|
|
7
7
|
import {
|
|
8
8
|
DataTable
|
|
9
9
|
} from "./chunk-C4XKPQ6T.js";
|
|
@@ -16,10 +16,11 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
useDeleteSalesChannelLazy,
|
|
18
18
|
useSalesChannels
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZOTBKQLG.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/sales-channels/sales-channel-list/sales-channel-list.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
23
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
23
24
|
|
|
24
25
|
// src/pages/sales-channels/sales-channel-list/components/sales-channel-list-view/sales-channel-list-view.tsx
|
|
25
26
|
import { Children as Children2 } from "react";
|
|
@@ -184,7 +185,7 @@ var SalesChannelListView = ({
|
|
|
184
185
|
// src/pages/sales-channels/sales-channel-list/sales-channel-list.tsx
|
|
185
186
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
186
187
|
var Root = ({ children }) => {
|
|
187
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(SalesChannelListView, {}) });
|
|
188
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { hasOutlet: true, children: /* @__PURE__ */ jsx4(WidgetZone, { id: "sales-channels.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(SalesChannelListView, {}) }) });
|
|
188
189
|
};
|
|
189
190
|
var SalesChannelListPage = Object.assign(Root, {
|
|
190
191
|
Table: SalesChannelListView,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteCommissionRuleAction,
|
|
3
3
|
useScopeReferenceNames
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7IGLZARZ.js";
|
|
5
5
|
import {
|
|
6
6
|
formatCommissionValue,
|
|
7
7
|
getIsActiveProps,
|
|
@@ -27,6 +27,7 @@ import { PencilSquare, Trash } from "@medusajs/icons";
|
|
|
27
27
|
import { Container, Heading, StatusBadge } from "@medusajs/ui";
|
|
28
28
|
import { useTranslation } from "react-i18next";
|
|
29
29
|
import { useParams } from "react-router-dom";
|
|
30
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
30
31
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
31
32
|
var ScopeSection = ({ rule }) => {
|
|
32
33
|
const { t } = useTranslation();
|
|
@@ -173,10 +174,10 @@ var CommissionRuleDetail = () => {
|
|
|
173
174
|
if (isLoading || !commission_rate) {
|
|
174
175
|
return null;
|
|
175
176
|
}
|
|
176
|
-
return /* @__PURE__ */
|
|
177
|
+
return /* @__PURE__ */ jsx(SingleColumnPage, { hasOutlet: true, data: commission_rate, children: /* @__PURE__ */ jsxs(WidgetZone, { id: "commissions.detail.main", data: commission_rate, children: [
|
|
177
178
|
/* @__PURE__ */ jsx(ScopeSection, { rule: commission_rate }),
|
|
178
179
|
/* @__PURE__ */ jsx(CommissionSection, { rule: commission_rate })
|
|
179
|
-
] });
|
|
180
|
+
] }) });
|
|
180
181
|
};
|
|
181
182
|
|
|
182
183
|
export {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-54EPH67T.js";
|
|
4
4
|
import {
|
|
5
5
|
useCustomerGroupTableFilters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LPIPSLR7.js";
|
|
7
7
|
import {
|
|
8
8
|
useOrderGroupTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LXNWSQOE.js";
|
|
10
10
|
import {
|
|
11
11
|
useOrderTableQuery
|
|
12
12
|
} from "./chunk-QUHSHIAC.js";
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
_DataTable,
|
|
38
38
|
useDataTable
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-GRFWCCUW.js";
|
|
40
40
|
import {
|
|
41
41
|
NoRecords
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7PPT3477.js";
|
|
43
43
|
import {
|
|
44
44
|
useOrderGroups
|
|
45
45
|
} from "./chunk-PYF5EER5.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
useDeleteCustomer,
|
|
51
51
|
useDeleteCustomerAddress,
|
|
52
52
|
useRemoveCustomersFromGroup
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-AFYILTAC.js";
|
|
54
54
|
import {
|
|
55
55
|
ActionMenu
|
|
56
56
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -61,11 +61,13 @@ import {
|
|
|
61
61
|
// src/pages/customers/customer-detail/customer-detail.tsx
|
|
62
62
|
import { Children } from "react";
|
|
63
63
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
64
|
+
import { WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
64
65
|
|
|
65
66
|
// src/pages/customers/customer-detail/components/customer-address-section/customer-address-section.tsx
|
|
66
67
|
import { Button, clx, Container, Heading, toast, usePrompt } from "@medusajs/ui";
|
|
67
68
|
import { useTranslation } from "react-i18next";
|
|
68
69
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
70
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
69
71
|
import { Link, useNavigate } from "react-router-dom";
|
|
70
72
|
|
|
71
73
|
// src/components/common/listicle/listicle.tsx
|
|
@@ -112,9 +114,7 @@ var CustomerAddressSection = ({
|
|
|
112
114
|
}
|
|
113
115
|
await deleteAddress(address.id, {
|
|
114
116
|
onSuccess: () => {
|
|
115
|
-
toast.success(
|
|
116
|
-
t2("general.success", { name: address.address_name ?? "address" })
|
|
117
|
-
);
|
|
117
|
+
toast.success(t2("customers.addresses.delete.successToast"));
|
|
118
118
|
navigate(`/customers/${customer.id}`, { replace: true });
|
|
119
119
|
},
|
|
120
120
|
onError: (e) => {
|
|
@@ -174,7 +174,8 @@ var CustomerAddressSection = ({
|
|
|
174
174
|
)
|
|
175
175
|
}
|
|
176
176
|
) }, address.id);
|
|
177
|
-
})
|
|
177
|
+
}),
|
|
178
|
+
/* @__PURE__ */ jsx2(DisplayExtensionZone, { model: "customer", zone: "addresses", data: customer })
|
|
178
179
|
] });
|
|
179
180
|
};
|
|
180
181
|
|
|
@@ -190,7 +191,9 @@ import {
|
|
|
190
191
|
} from "@medusajs/ui";
|
|
191
192
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
192
193
|
import { useNavigate as useNavigate2 } from "react-router-dom";
|
|
194
|
+
import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
|
|
193
195
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
196
|
+
var GENERAL_FIELD_IDS = ["email", "status", "name", "company_name", "phone"];
|
|
194
197
|
var CustomerGeneralSection = ({
|
|
195
198
|
customer
|
|
196
199
|
}) => {
|
|
@@ -231,9 +234,9 @@ var CustomerGeneralSection = ({
|
|
|
231
234
|
};
|
|
232
235
|
return /* @__PURE__ */ jsxs3(Container2, { className: "divide-y p-0", "data-testid": "customer-general-section", children: [
|
|
233
236
|
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "customer-general-section-header", children: [
|
|
234
|
-
/* @__PURE__ */ jsx3(Heading2, { "data-testid": "customer-general-section-email", children: customer.email }),
|
|
237
|
+
/* @__PURE__ */ jsx3(DisplayField, { model: "customer", zone: "general", id: "email", data: customer, children: /* @__PURE__ */ jsx3(Heading2, { "data-testid": "customer-general-section-email", children: customer.email }) }),
|
|
235
238
|
/* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", "data-testid": "customer-general-section-actions", children: [
|
|
236
|
-
/* @__PURE__ */ jsx3(StatusBadge, { color: statusColor, "data-testid": "customer-general-section-status-badge", children: statusText }),
|
|
239
|
+
/* @__PURE__ */ jsx3(DisplayField, { model: "customer", zone: "general", id: "status", data: customer, children: /* @__PURE__ */ jsx3(StatusBadge, { color: statusColor, "data-testid": "customer-general-section-status-badge", children: statusText }) }),
|
|
237
240
|
/* @__PURE__ */ jsx3(
|
|
238
241
|
ActionMenu,
|
|
239
242
|
{
|
|
@@ -262,18 +265,27 @@ var CustomerGeneralSection = ({
|
|
|
262
265
|
)
|
|
263
266
|
] })
|
|
264
267
|
] }),
|
|
265
|
-
/* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-general-section-name-row", children: [
|
|
268
|
+
/* @__PURE__ */ jsx3(DisplayField, { model: "customer", zone: "general", id: "name", data: customer, children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-general-section-name-row", children: [
|
|
266
269
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", "data-testid": "customer-general-section-name-label", children: t2("fields.name") }),
|
|
267
270
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", "data-testid": "customer-general-section-name-value", children: name || "-" })
|
|
268
|
-
] }),
|
|
269
|
-
/* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-general-section-company-row", children: [
|
|
271
|
+
] }) }),
|
|
272
|
+
/* @__PURE__ */ jsx3(DisplayField, { model: "customer", zone: "general", id: "company_name", data: customer, children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-general-section-company-row", children: [
|
|
270
273
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", "data-testid": "customer-general-section-company-label", children: t2("fields.company") }),
|
|
271
274
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", "data-testid": "customer-general-section-company-value", children: customer.company_name || "-" })
|
|
272
|
-
] }),
|
|
273
|
-
/* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-general-section-phone-row", children: [
|
|
275
|
+
] }) }),
|
|
276
|
+
/* @__PURE__ */ jsx3(DisplayField, { model: "customer", zone: "general", id: "phone", data: customer, children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-general-section-phone-row", children: [
|
|
274
277
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", "data-testid": "customer-general-section-phone-label", children: t2("fields.phone") }),
|
|
275
278
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", "data-testid": "customer-general-section-phone-value", children: customer.phone || "-" })
|
|
276
|
-
] })
|
|
279
|
+
] }) }),
|
|
280
|
+
/* @__PURE__ */ jsx3(
|
|
281
|
+
DisplayExtensionZone2,
|
|
282
|
+
{
|
|
283
|
+
model: "customer",
|
|
284
|
+
zone: "general",
|
|
285
|
+
data: customer,
|
|
286
|
+
builtInFieldIds: GENERAL_FIELD_IDS
|
|
287
|
+
}
|
|
288
|
+
)
|
|
277
289
|
] });
|
|
278
290
|
};
|
|
279
291
|
|
|
@@ -290,6 +302,7 @@ import { createColumnHelper } from "@tanstack/react-table";
|
|
|
290
302
|
import { t } from "i18next";
|
|
291
303
|
import { useMemo, useState } from "react";
|
|
292
304
|
import { PencilSquare as PencilSquare3, Trash as Trash3 } from "@medusajs/icons";
|
|
305
|
+
import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
|
|
293
306
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
294
307
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
295
308
|
import { Link as Link2 } from "react-router-dom";
|
|
@@ -405,7 +418,8 @@ var CustomerGroupSection = ({
|
|
|
405
418
|
icon: null
|
|
406
419
|
}
|
|
407
420
|
}
|
|
408
|
-
)
|
|
421
|
+
),
|
|
422
|
+
/* @__PURE__ */ jsx4(DisplayExtensionZone3, { model: "customer", zone: "groups", data: customer })
|
|
409
423
|
] });
|
|
410
424
|
};
|
|
411
425
|
var CustomerGroupRowActions = ({
|
|
@@ -521,6 +535,7 @@ import { keepPreviousData as keepPreviousData2 } from "@tanstack/react-query";
|
|
|
521
535
|
import { createColumnHelper as createColumnHelper2 } from "@tanstack/react-table";
|
|
522
536
|
import { useMemo as useMemo2 } from "react";
|
|
523
537
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
538
|
+
import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
|
|
524
539
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
525
540
|
var PREFIX2 = "cusord";
|
|
526
541
|
var PAGE_SIZE2 = 10;
|
|
@@ -645,7 +660,8 @@ var CustomerOrderSection = ({
|
|
|
645
660
|
queryObject: raw,
|
|
646
661
|
prefix: PREFIX2
|
|
647
662
|
}
|
|
648
|
-
)
|
|
663
|
+
),
|
|
664
|
+
/* @__PURE__ */ jsx5(DisplayExtensionZone4, { model: "customer", zone: "orders", data: customer })
|
|
649
665
|
] });
|
|
650
666
|
};
|
|
651
667
|
var CustomerOrderActions = ({ orderId }) => {
|
|
@@ -780,11 +796,10 @@ import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
|
780
796
|
var Root = ({ children }) => {
|
|
781
797
|
const { id } = useParams();
|
|
782
798
|
const initialData = useLoaderData();
|
|
783
|
-
const
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
);
|
|
799
|
+
const query = useLinkQuery("customer", "+*addresses");
|
|
800
|
+
const { customer, isLoading, isError, error } = useCustomer(id, query, {
|
|
801
|
+
initialData
|
|
802
|
+
});
|
|
788
803
|
if (isLoading || !customer) {
|
|
789
804
|
return /* @__PURE__ */ jsx6(SingleColumnPageSkeleton, { sections: 2, showJSON: true, showMetadata: true });
|
|
790
805
|
}
|
|
@@ -792,12 +807,12 @@ var Root = ({ children }) => {
|
|
|
792
807
|
throw error;
|
|
793
808
|
}
|
|
794
809
|
return Children.count(children) > 0 ? /* @__PURE__ */ jsx6(TwoColumnPage, { data: customer, hasOutlet: true, showJSON: true, showMetadata: true, children }) : /* @__PURE__ */ jsxs6(TwoColumnPage, { data: customer, hasOutlet: true, showJSON: true, showMetadata: true, children: [
|
|
795
|
-
/* @__PURE__ */
|
|
810
|
+
/* @__PURE__ */ jsx6(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "customers.detail.main", data: customer, children: [
|
|
796
811
|
/* @__PURE__ */ jsx6(CustomerGeneralSection, { customer }),
|
|
797
812
|
/* @__PURE__ */ jsx6(CustomerOrderSection, { customer }),
|
|
798
813
|
/* @__PURE__ */ jsx6(CustomerGroupSection, { customer })
|
|
799
|
-
] }),
|
|
800
|
-
/* @__PURE__ */ jsx6(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx6(CustomerAddressSection, { customer }) })
|
|
814
|
+
] }) }),
|
|
815
|
+
/* @__PURE__ */ jsx6(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx6(WidgetZone, { id: "customers.detail.side", data: customer, children: /* @__PURE__ */ jsx6(CustomerAddressSection, { customer }) }) })
|
|
801
816
|
] });
|
|
802
817
|
};
|
|
803
818
|
var CustomerDetailPage = Object.assign(Root, {
|
|
@@ -1,32 +1,34 @@
|
|
|
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";
|
|
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
|
useDeletePromotion,
|
|
17
17
|
usePromotions
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MTHPNKQ4.js";
|
|
19
19
|
import {
|
|
20
20
|
ActionMenu
|
|
21
21
|
} from "./chunk-BDGZ4EQO.js";
|
|
22
22
|
|
|
23
23
|
// src/pages/promotions/promotion-list/promotions-list.tsx
|
|
24
24
|
import { Children as Children2 } from "react";
|
|
25
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
25
26
|
|
|
26
27
|
// src/pages/promotions/promotion-list/components/promotion-list-table/promotion-list-table.tsx
|
|
27
28
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
28
29
|
import { Button, Container, Heading, usePrompt } from "@medusajs/ui";
|
|
29
30
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
31
|
+
import { useExtendableTable, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
30
32
|
import { Children, useMemo } from "react";
|
|
31
33
|
import { useTranslation } from "react-i18next";
|
|
32
34
|
import { Link, Outlet, useLoaderData, useNavigate } from "react-router-dom";
|
|
@@ -61,15 +63,20 @@ var PromotionListDataTable = () => {
|
|
|
61
63
|
const { t } = useTranslation();
|
|
62
64
|
const initialData = useLoaderData();
|
|
63
65
|
const { searchParams, raw } = usePromotionTableQuery({ pageSize: PAGE_SIZE });
|
|
66
|
+
const linkQuery = useLinkQuery("promotion");
|
|
64
67
|
const { promotions, count, isLoading, isError, error } = usePromotions(
|
|
65
|
-
{ ...searchParams },
|
|
68
|
+
{ ...searchParams, ...linkQuery },
|
|
66
69
|
{
|
|
67
70
|
initialData,
|
|
68
71
|
placeholderData: keepPreviousData
|
|
69
72
|
}
|
|
70
73
|
);
|
|
71
|
-
const
|
|
72
|
-
const columns = useColumns();
|
|
74
|
+
const baseFilters = usePromotionTableFilters();
|
|
75
|
+
const { columns, filters: extFilters } = useColumns();
|
|
76
|
+
const filters = useMemo(
|
|
77
|
+
() => [...baseFilters, ...extFilters],
|
|
78
|
+
[baseFilters, extFilters]
|
|
79
|
+
);
|
|
73
80
|
const { table } = useDataTable({
|
|
74
81
|
data: promotions ?? [],
|
|
75
82
|
columns,
|
|
@@ -166,9 +173,13 @@ var PromotionActions = ({ promotion }) => {
|
|
|
166
173
|
var columnHelper = createColumnHelper();
|
|
167
174
|
var useColumns = () => {
|
|
168
175
|
const base = usePromotionTableColumns();
|
|
169
|
-
|
|
176
|
+
const { columns: extended, filters } = useExtendableTable({
|
|
177
|
+
model: "promotion",
|
|
178
|
+
columns: base
|
|
179
|
+
});
|
|
180
|
+
const columns = useMemo(
|
|
170
181
|
() => [
|
|
171
|
-
...
|
|
182
|
+
...extended,
|
|
172
183
|
columnHelper.display({
|
|
173
184
|
id: "actions",
|
|
174
185
|
cell: ({ row }) => {
|
|
@@ -176,14 +187,15 @@ var useColumns = () => {
|
|
|
176
187
|
}
|
|
177
188
|
})
|
|
178
189
|
],
|
|
179
|
-
[
|
|
190
|
+
[extended]
|
|
180
191
|
);
|
|
192
|
+
return { columns, filters };
|
|
181
193
|
};
|
|
182
194
|
|
|
183
195
|
// src/pages/promotions/promotion-list/promotions-list.tsx
|
|
184
196
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
185
197
|
var Root = ({ children }) => {
|
|
186
|
-
return /* @__PURE__ */ jsx2(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(PromotionListTable, {}) });
|
|
198
|
+
return /* @__PURE__ */ jsx2(SingleColumnPage, { children: /* @__PURE__ */ jsx2(WidgetZone, { id: "promotions.list", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(PromotionListTable, {}) }) });
|
|
187
199
|
};
|
|
188
200
|
var PromotionListPage = Object.assign(Root, {
|
|
189
201
|
Table: PromotionListTable,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
NoRecords,
|
|
19
19
|
NoResults
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7PPT3477.js";
|
|
21
21
|
import {
|
|
22
22
|
useProductTypes
|
|
23
23
|
} from "./chunk-EWFOFSF7.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-INNFZYX2.js";
|
|
33
33
|
import {
|
|
34
34
|
useProducts
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-MMKUMSZS.js";
|
|
36
36
|
|
|
37
37
|
// src/pages/tax-regions/common/components/tax-rate-line/tax-rate-line.tsx
|
|
38
38
|
import { PencilSquare, Trash } from "@medusajs/icons";
|