@mercurjs/admin 2.2.0-rc.0 → 2.2.0-rc.2
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-LI7XFHIN.js} +8 -8
- package/dist/{adjust-inventory-X45NEQFK.js → adjust-inventory-5ZJJUEMJ.js} +32 -32
- package/dist/{api-key-management-create-LOD37GOQ.js → api-key-management-create-OXI6OTIU.js} +4 -4
- package/dist/{api-key-management-detail-HKNZPPR2.js → api-key-management-detail-ZTFHZK2W.js} +36 -36
- package/dist/{api-key-management-edit-JP2GUMMJ.js → api-key-management-edit-QF5SAQE5.js} +4 -4
- package/dist/{api-key-management-list-5RXBJ24C.js → api-key-management-list-44HTIZDU.js} +9 -9
- package/dist/{api-key-management-sales-channels-4GLVMHU6.js → api-key-management-sales-channels-7HNHPB4N.js} +6 -6
- package/dist/{attribute-create-VGL7LGIH.js → attribute-create-AGLZ6QOX.js} +37 -35
- package/dist/{attribute-create-possible-value-QFXKXZM4.js → attribute-create-possible-value-3D5M2GYE.js} +2 -2
- package/dist/{attribute-detail-EKDAYT4B.js → attribute-detail-62HLJFM3.js} +43 -42
- package/dist/{attribute-edit-OBNLNOJS.js → attribute-edit-ZJS7KNRQ.js} +4 -4
- package/dist/{attribute-edit-possible-value-QDFVWLA3.js → attribute-edit-possible-value-XK6DK7C3.js} +4 -4
- package/dist/{attribute-edit-ranking-YGR3KCSC.js → attribute-edit-ranking-COH6THIE.js} +2 -2
- package/dist/attribute-list-VKAQ6254.js +61 -0
- package/dist/{breadcrumb-GHBR74WM.js → breadcrumb-3YK35VAB.js} +2 -2
- package/dist/{breadcrumb-IEEJTH47.js → breadcrumb-OF67XUWE.js} +2 -2
- package/dist/{campaign-budget-edit-NONE5NMV.js → campaign-budget-edit-TCWGNELH.js} +2 -2
- package/dist/{campaign-configuration-JYSVIQFE.js → campaign-configuration-AFGSG3MV.js} +2 -2
- package/dist/{campaign-create-6U2PONHA.js → campaign-create-OZV25GTH.js} +6 -6
- package/dist/{campaign-detail-RNB3FEJZ.js → campaign-detail-JR7EXZWX.js} +48 -44
- package/dist/{campaign-edit-MAS3DCFB.js → campaign-edit-F6V6FWKS.js} +24 -8
- package/dist/{campaign-list-CDV4GWWD.js → campaign-list-QMEX7LES.js} +7 -7
- package/dist/{categories-metadata-4LXL2PWA.js → categories-metadata-3H2HUUUP.js} +32 -32
- package/dist/{category-create-AIS2MG7E.js → category-create-K452J7D3.js} +5 -5
- package/dist/{category-detail-557376TZ.js → category-detail-HUZ7MHT5.js} +52 -48
- package/dist/{category-edit-LYR2IOTA.js → category-edit-KP2ZSV6X.js} +27 -10
- package/dist/{category-icon-edit-W2TPCSDC.js → category-icon-edit-NNA7WVQV.js} +4 -4
- package/dist/{category-list-XKRI24VN.js → category-list-PXL4RTYP.js} +10 -10
- package/dist/{category-media-PC4V7YU4.js → category-media-RFMA5Y5K.js} +4 -4
- package/dist/category-organize-NNIYSZJT.js +129 -0
- package/dist/{category-products-44PCDDNN.js → category-products-RR5RFHYX.js} +40 -40
- package/dist/{chunk-3BTRS4AA.js → chunk-234XHCKP.js} +2 -2
- package/dist/{chunk-HB3KRNZM.js → chunk-2O6SLX2J.js} +4 -3
- package/dist/{chunk-CW3HYGS5.js → chunk-2TTWEY5U.js} +2 -6
- package/dist/{chunk-EJY35WBK.js → chunk-2Z4JZU5E.js} +2 -2
- package/dist/{chunk-QE4R2KT3.js → chunk-3BZMCD7I.js} +1 -1
- package/dist/{chunk-KFYTUQXT.js → chunk-3C5EMQWG.js} +13 -12
- package/dist/{chunk-VBKFXL2Q.js → chunk-3WT5O2NN.js} +27 -11
- package/dist/{chunk-GCEOEV6P.js → chunk-42BAC3EV.js} +5 -5
- package/dist/{chunk-HLL6GLZO.js → chunk-42VZYFJ5.js} +3 -3
- package/dist/{chunk-PYF5EER5.js → chunk-43C2OEFK.js} +1 -1
- package/dist/{chunk-EOSJHPHN.js → chunk-46WFUTZ7.js} +8 -7
- package/dist/{chunk-HT34QVZR.js → chunk-4EBW73IY.js} +5 -4
- package/dist/{chunk-JSVYNNPF.js → chunk-4EM4RG5L.js} +4 -4
- package/dist/{chunk-K7H77TA5.js → chunk-4OMNDHD2.js} +3 -3
- package/dist/{chunk-FICKHCWL.js → chunk-4TW5RTWO.js} +5 -3
- package/dist/{chunk-JLCA6PWC.js → chunk-4XRTTHJZ.js} +2 -2
- package/dist/{chunk-DSTHXHJ5.js → chunk-52KJSIHS.js} +1358 -1392
- package/dist/{chunk-L7DIEO5B.js → chunk-55NZ2MMZ.js} +1 -1
- package/dist/{chunk-CU4UVEHX.js → chunk-56LEZVAH.js} +1 -1
- package/dist/{chunk-GISFIAGQ.js → chunk-577LTDI6.js} +47 -17
- package/dist/{chunk-6BWJWA2F.js → chunk-5JHHADVY.js} +7 -6
- package/dist/{chunk-BFUHW56P.js → chunk-5NC3VFXY.js} +1 -1
- package/dist/{chunk-RIO2IHPE.js → chunk-67KYEPSA.js} +1 -1
- package/dist/{chunk-HQM7D57C.js → chunk-6FZTLQKQ.js} +11 -9
- package/dist/{chunk-BILFRATX.js → chunk-6HHMZ2QV.js} +2 -2
- package/dist/{chunk-WKDHY2DJ.js → chunk-6QXSN5IG.js} +5 -2
- package/dist/{chunk-2Z2M5K5A.js → chunk-6TJPMF7U.js} +9 -8
- package/dist/{chunk-VPYI4X6C.js → chunk-6XYDJWNG.js} +35 -16
- package/dist/{chunk-6DJQITWV.js → chunk-7CAQDCJ4.js} +3 -3
- package/dist/{chunk-LQSSUC7W.js → chunk-7LSEDXCB.js} +7 -6
- package/dist/{chunk-PAYQJPGK.js → chunk-7PPT3477.js} +2 -2
- package/dist/{chunk-NEGOGYEO.js → chunk-7YBDUUYJ.js} +3 -3
- package/dist/chunk-APAT344J.js +144 -0
- package/dist/{chunk-K6RZE3F7.js → chunk-BAODXM3R.js} +1 -1
- package/dist/{chunk-PFBJWWUA.js → chunk-BAW3F2JM.js} +5 -5
- package/dist/{chunk-6KWWJE5P.js → chunk-BIIQUM77.js} +9 -9
- package/dist/{chunk-IC2PLPRP.js → chunk-BOHYPLFV.js} +1 -1
- package/dist/{chunk-VGXJXU7X.js → chunk-BVVZLZBO.js} +9 -8
- package/dist/{chunk-VYQ6ASFF.js → chunk-CC7MG2B7.js} +26 -11
- package/dist/{chunk-DPG4AWSG.js → chunk-CK4MU7NI.js} +25 -13
- package/dist/{chunk-HI7NZVSJ.js → chunk-CRHUF6Q6.js} +5 -4
- package/dist/{chunk-W3P3RP5R.js → chunk-CRKA4PUH.js} +26 -12
- package/dist/{chunk-OYZIFLLC.js → chunk-D24Q3XHG.js} +1 -1
- package/dist/{chunk-G5KNNOXX.js → chunk-D5FHUQQK.js} +1 -1
- package/dist/{chunk-A2F5MDPU.js → chunk-D6RWXLO6.js} +1 -1
- package/dist/{chunk-Q6GUA5VE.js → chunk-EAYVJOSP.js} +2 -2
- package/dist/{chunk-BVIIRGSW.js → chunk-EDCGEQ4V.js} +4 -2
- package/dist/{chunk-OPSGADQI.js → chunk-EITNWVKQ.js} +1 -1
- package/dist/{chunk-JI7HMGMO.js → chunk-EMZXHZJQ.js} +1 -1
- package/dist/{chunk-HGTPUAHD.js → chunk-ENWEPNEB.js} +1 -1
- package/dist/{chunk-TH26CWVG.js → chunk-EU2CV4TC.js} +1 -1
- package/dist/{chunk-QDUZCJ7F.js → chunk-FEEYWP65.js} +1 -1
- package/dist/{chunk-BLR3NTU6.js → chunk-GNBUH5DG.js} +5 -7
- package/dist/{chunk-DL7ENIQB.js → chunk-GOIUTVZR.js} +3 -2
- package/dist/{chunk-YMOP6JKN.js → chunk-GPACCA4B.js} +4 -4
- package/dist/{chunk-6ZVV2XHU.js → chunk-GRFWCCUW.js} +1 -1
- package/dist/{chunk-BNFTJW4L.js → chunk-GS7VNGVP.js} +3 -3
- package/dist/{chunk-EGHDC6K6.js → chunk-GSWFRYKT.js} +12 -11
- package/dist/{chunk-ZVPTNPLI.js → chunk-H6PRFXGU.js} +2 -2
- package/dist/{chunk-R4O667NT.js → chunk-HI2E3YTU.js} +1 -1
- package/dist/{chunk-KGA2XI6W.js → chunk-HI2UJ43B.js} +34 -16
- package/dist/{chunk-MOG7LT73.js → chunk-HKNL5ARE.js} +10 -8
- package/dist/{chunk-RGS5ZOY7.js → chunk-HOOIU4KF.js} +5 -4
- package/dist/{chunk-2FPQHWJZ.js → chunk-HPFFEXS6.js} +111 -29
- package/dist/{chunk-Q6QXFLUY.js → chunk-I6T244NF.js} +5 -3
- package/dist/{chunk-TDJSZ73V.js → chunk-IB7PFZNA.js} +39 -11
- package/dist/{chunk-CNODWD3F.js → chunk-ICAXGUPY.js} +7 -6
- package/dist/{chunk-CHMIK6PK.js → chunk-IEYTK56D.js} +3 -3
- package/dist/{chunk-VXW3BCN2.js → chunk-IF2MFOIQ.js} +1 -1
- package/dist/{chunk-DI2M3J5Q.js → chunk-IHO6OGWR.js} +1 -1
- package/dist/{chunk-VHCDSNXF.js → chunk-IXC4VZBU.js} +2 -2
- package/dist/{chunk-MO7TNIVQ.js → chunk-J4MVHPVY.js} +1 -1
- package/dist/{chunk-56UFDHNO.js → chunk-J5CQ6F6U.js} +1 -1
- package/dist/{chunk-R325CPYC.js → chunk-J7YEXYZJ.js} +1 -1
- package/dist/{chunk-GYRTURN7.js → chunk-JJKPETJT.js} +1 -1
- package/dist/{chunk-LXZXXOJ3.js → chunk-JTAECZCT.js} +13 -1
- package/dist/{chunk-32ZNZDFT.js → chunk-JXMEDALI.js} +7 -6
- package/dist/{chunk-EWFOFSF7.js → chunk-K6FC5Y72.js} +1 -1
- package/dist/{chunk-AMZ2QSSI.js → chunk-KX6C5FDB.js} +11 -8
- package/dist/{chunk-JZJT26E3.js → chunk-LAS6SXKB.js} +2 -2
- package/dist/{chunk-THPXRTE5.js → chunk-LEHORJ76.js} +34 -13
- package/dist/{chunk-FMJBQE56.js → chunk-LFNC565R.js} +1 -1
- package/dist/{chunk-RQQ53CQJ.js → chunk-LHIWM2J5.js} +1 -1
- package/dist/{chunk-EX4AGESR.js → chunk-LZSUKT5X.js} +97 -36
- package/dist/{chunk-JU2O2H7I.js → chunk-M5DCBNFA.js} +7 -7
- package/dist/{chunk-7O7LYBHL.js → chunk-MCK4I4JE.js} +67 -25
- package/dist/{chunk-4346EIRG.js → chunk-MSUG6ERE.js} +5 -5
- package/dist/{chunk-KT4DGVRQ.js → chunk-N2WNCZLR.js} +9 -8
- package/dist/{chunk-YHEH25IE.js → chunk-NH62M7H7.js} +3 -2
- package/dist/{chunk-HRDVGFS7.js → chunk-NHKZJMNX.js} +21 -11
- package/dist/{chunk-UZ452ISX.js → chunk-NLLX6JO6.js} +43 -28
- package/dist/{chunk-PYZ7VL5X.js → chunk-NVU672HY.js} +3 -3
- package/dist/{chunk-NWSKT55Z.js → chunk-O4X3FYQ2.js} +8 -7
- package/dist/{chunk-Q4R2O7XF.js → chunk-P6EWVML2.js} +6 -6
- package/dist/{chunk-FLFE6HXW.js → chunk-P7IMB5H5.js} +1 -1
- package/dist/{chunk-5Y2AIJ2T.js → chunk-PD34CJ6T.js} +24 -9
- package/dist/{chunk-NOKCLBAL.js → chunk-PMBR7NK4.js} +3 -2
- package/dist/{chunk-5ACJR6WB.js → chunk-PQYZXLKV.js} +3 -3
- package/dist/{chunk-4BPQNCF5.js → chunk-PYNVCRQK.js} +7 -6
- package/dist/{chunk-JEDX4KBB.js → chunk-PZRHF4NZ.js} +8 -7
- package/dist/{chunk-IVBNI2QE.js → chunk-QD5I3ZC4.js} +86 -31
- package/dist/{chunk-NISAIYSW.js → chunk-QF22CPST.js} +13 -12
- package/dist/{chunk-ZKHF75MZ.js → chunk-QRN63LUS.js} +2 -2
- package/dist/{chunk-J3L2FUIA.js → chunk-QSB2PR6Y.js} +57 -39
- package/dist/{chunk-25U23TXK.js → chunk-QYPNC3U5.js} +7 -6
- package/dist/{chunk-F2SZ4LPF.js → chunk-R2LW5LGL.js} +40 -22
- package/dist/{chunk-CARSKIPW.js → chunk-R45DOGQ6.js} +1 -1
- package/dist/{chunk-KXWN75T2.js → chunk-R5O4QT2H.js} +2 -2
- package/dist/{chunk-4BCUGMOR.js → chunk-R6433WFI.js} +2 -2
- package/dist/{chunk-J54BZXZX.js → chunk-R7HPBN4C.js} +2 -2
- package/dist/{chunk-OT5X3VOQ.js → chunk-RTPQHQEK.js} +1 -1
- package/dist/{chunk-QJCUPZZQ.js → chunk-RUHF6QPS.js} +1 -1
- package/dist/{chunk-H7NIKMPE.js → chunk-S4IDR46L.js} +3 -1
- package/dist/{chunk-BF7X4JQT.js → chunk-SZCQUPC6.js} +4 -3
- package/dist/{chunk-ZU74CNL4.js → chunk-TBZRRZP2.js} +13 -12
- package/dist/{chunk-2V74T2WI.js → chunk-TF643ZL6.js} +1 -1
- package/dist/{chunk-ML7UVBKL.js → chunk-TIG77LHS.js} +1 -1
- package/dist/{chunk-YRINVEI3.js → chunk-TLV3AINO.js} +5 -4
- package/dist/{chunk-VM56ZITS.js → chunk-TSM7EZND.js} +1 -1
- package/dist/{chunk-NZVS6B77.js → chunk-TZGU32FW.js} +582 -544
- package/dist/{chunk-LVRCEGL7.js → chunk-U7XBLL2L.js} +53 -27
- package/dist/{chunk-IZDTQFCP.js → chunk-UBME2ENV.js} +1 -1
- package/dist/{chunk-GLZLBHFC.js → chunk-UCA7UES2.js} +3 -3
- package/dist/{chunk-5BSSIDW6.js → chunk-UGKLN2X6.js} +1 -1
- package/dist/{chunk-BTJR5RSV.js → chunk-UVF5DZCD.js} +49 -20
- package/dist/{chunk-QCIDV3AP.js → chunk-VPAMPIAF.js} +3 -3
- package/dist/{chunk-GCU4LHGY.js → chunk-VWT7NSJO.js} +80 -34
- package/dist/{chunk-PMVWIBTI.js → chunk-WRAOTX6G.js} +54 -19
- package/dist/{chunk-VJ4LQXMA.js → chunk-WRQ35W52.js} +100 -73
- package/dist/{chunk-GWSRWILC.js → chunk-XH2SXM7F.js} +8 -7
- package/dist/{chunk-LSMTJU6Y.js → chunk-XIB2KDE7.js} +4 -4
- package/dist/{chunk-XW2BES72.js → chunk-XJAMGFC5.js} +11 -8
- package/dist/{chunk-F5NW4XBU.js → chunk-XPTKT2SY.js} +1 -1
- package/dist/{chunk-4C7L7TJT.js → chunk-XQ5IRC23.js} +3 -3
- package/dist/{chunk-ABS7HMLY.js → chunk-XQBF2FRT.js} +2 -2
- package/dist/{chunk-YRUCTB6M.js → chunk-XRSHPAED.js} +4 -3
- package/dist/{chunk-MZOINNCV.js → chunk-XUAWHN6S.js} +78 -56
- package/dist/{chunk-TZM63FZ4.js → chunk-XVHXE7GQ.js} +7 -6
- package/dist/{chunk-VY72NX26.js → chunk-XYLQODIX.js} +8 -7
- package/dist/{chunk-NQ2RDSI3.js → chunk-Y2WR3O3B.js} +2 -2
- package/dist/{chunk-WF3ZDT5Z.js → chunk-Y4QL7QLU.js} +1 -1
- package/dist/{chunk-YNN2YNSE.js → chunk-Y5RHBN7J.js} +2 -2
- package/dist/{chunk-MW47LDBT.js → chunk-YBMTMG47.js} +2 -2
- package/dist/{chunk-OAN4CZKX.js → chunk-Z3WQEPTC.js} +6 -4
- package/dist/{chunk-W7CJSBDM.js → chunk-Z6KZDJNZ.js} +27 -15
- package/dist/{chunk-YXKHBSQJ.js → chunk-ZIELZO2F.js} +2 -2
- package/dist/{chunk-65YE4SVL.js → chunk-ZYW5QC2S.js} +27 -14
- package/dist/{collection-add-products-JFUIZEZI.js → collection-add-products-CJEX5A53.js} +40 -40
- package/dist/{collection-create-5IGFVQKE.js → collection-create-TBEK75Y3.js} +6 -5
- package/dist/collection-detail-H2Q6WOUM.js +104 -0
- package/dist/{collection-edit-UMZN5JZ6.js → collection-edit-7RBQZNQ6.js} +34 -11
- package/dist/{collection-icon-edit-WCSKUDXE.js → collection-icon-edit-JQZXC2S3.js} +4 -4
- package/dist/collection-list-ZMDJT77J.js +85 -0
- package/dist/{collection-media-YIV5BV3Y.js → collection-media-H3CQH6DM.js} +4 -4
- package/dist/{collection-metadata-SBK6SL4C.js → collection-metadata-4Q4BECCH.js} +32 -32
- package/dist/{commission-rule-commission-edit-V5JVRNZN.js → commission-rule-commission-edit-VAHTLFOO.js} +5 -5
- package/dist/{commission-rule-create-EZ2C6AWK.js → commission-rule-create-3BNKCPVT.js} +5 -5
- package/dist/{commission-rule-detail-ZQ3OHFA2.js → commission-rule-detail-ISEXGPY6.js} +8 -8
- package/dist/{commission-rule-edit-NQ5EYCGO.js → commission-rule-edit-PQFGFD7L.js} +2 -2
- package/dist/{commissions-list-M5WLJD2P.js → commissions-list-OJ44UKGL.js} +12 -12
- package/dist/{customer-create-ZQ4RTXBA.js → customer-create-LGJHCECL.js} +2 -2
- package/dist/{customer-create-address-P2QYUZJ5.js → customer-create-address-MUDSAQXG.js} +10 -5
- package/dist/{customer-detail-ZGDPIWA4.js → customer-detail-LB5A5RDI.js} +48 -45
- package/dist/{customer-edit-D55FJLIN.js → customer-edit-APMIOGMM.js} +26 -8
- package/dist/{customer-edit-address-R5RXDUNZ.js → customer-edit-address-C2XFCA7J.js} +16 -7
- package/dist/{customer-group-add-customers-O6A5ZFPM.js → customer-group-add-customers-DK32GSHX.js} +6 -6
- package/dist/{customer-group-create-44R3DDOT.js → customer-group-create-GEIEIY7G.js} +2 -2
- package/dist/{customer-group-detail-FXUICFYC.js → customer-group-detail-TABEQDDU.js} +50 -47
- package/dist/{customer-group-edit-NZ5SUPFQ.js → customer-group-edit-WY4I5BJ2.js} +42 -21
- package/dist/customer-group-list-FLSK5QJD.js +57 -0
- package/dist/{customer-group-metadata-JX7ZBXLJ.js → customer-group-metadata-Z6D2CEML.js} +32 -32
- package/dist/{customer-list-Z4DUQHCH.js → customer-list-E72FR2HJ.js} +8 -8
- package/dist/{customer-metadata-JT5GGCRV.js → customer-metadata-5Q6CQJ5W.js} +32 -32
- package/dist/{customers-add-customer-group-KX3XNNMU.js → customers-add-customer-group-FCZYSHXJ.js} +36 -36
- package/dist/{edit-inventory-item-73BY4I5T.js → edit-inventory-item-46KQFZVA.js} +54 -39
- package/dist/{edit-inventory-item-attributes-ZMB343AB.js → edit-inventory-item-attributes-ELHT4C2Y.js} +32 -32
- package/dist/{edit-reservation-BC5IOLK6.js → edit-reservation-PCKNMHXC.js} +28 -10
- package/dist/{edit-rules-4PPNBI7B.js → edit-rules-GDQHJ3YV.js} +33 -33
- package/dist/extension-targets.d.ts +275 -0
- package/dist/extension-targets.js +1 -0
- package/dist/{global-commission-edit-TRSS5JBH.js → global-commission-edit-FDRWR3GS.js} +5 -5
- package/dist/index.css +3 -3
- package/dist/index.d.ts +6 -2
- package/dist/index.js +331 -303
- package/dist/inventory-create-POFYTZXF.js +58 -0
- package/dist/{inventory-detail-RZJNTJDF.js → inventory-detail-BKRLIEBM.js} +49 -45
- package/dist/{inventory-list-SPSBDJXO.js → inventory-list-FEV27NU6.js} +8 -8
- package/dist/{inventory-metadata-W2E4KYG3.js → inventory-metadata-6NCUXAF6.js} +32 -32
- package/dist/{inventory-stock-D2BNT2UL.js → inventory-stock-KUNNVL4K.js} +32 -32
- package/dist/{invite-25CGHT4W.js → invite-Z6ZEQ5ZV.js} +3 -3
- package/dist/{loader-HRFMJ5TM.js → loader-MD6G3UZA.js} +16 -12
- package/dist/{loader-TIPLOZF7.js → loader-XDYR2V3I.js} +2 -2
- package/dist/{location-create-GKORXOYD.js → location-create-UJM54XUE.js} +2 -2
- package/dist/{location-detail-CNETNX3M.js → location-detail-MHJK22BY.js} +34 -34
- package/dist/{location-edit-T2CWF6N2.js → location-edit-YT42REFT.js} +2 -2
- package/dist/{location-fulfillment-providers-XXZ7AIUF.js → location-fulfillment-providers-5LMLVCH3.js} +42 -42
- package/dist/location-list-DRCT7MJW.js +54 -0
- package/dist/{location-sales-channels-ZQBQ3VDH.js → location-sales-channels-5ONDOTKC.js} +6 -6
- package/dist/{location-service-zone-create-O6GYRZEE.js → location-service-zone-create-SSMZUELJ.js} +8 -8
- package/dist/{location-service-zone-edit-7ZTB45TD.js → location-service-zone-edit-JI57PTL4.js} +4 -4
- package/dist/{location-service-zone-manage-areas-DBP3P27I.js → location-service-zone-manage-areas-QP3WONCG.js} +8 -8
- package/dist/location-service-zone-shipping-option-create-QBGIX2IS.js +60 -0
- package/dist/{location-service-zone-shipping-option-edit-SLQM4GSH.js → location-service-zone-shipping-option-edit-WPPGPHTR.js} +3 -3
- package/dist/{location-service-zone-shipping-option-pricing-UZ577SNK.js → location-service-zone-shipping-option-pricing-ARBOTMUQ.js} +6 -6
- package/dist/{login-OKBXMSKY.js → login-BJNN5BDP.js} +32 -32
- package/dist/{manage-locations-SUJNIWWF.js → manage-locations-X76IQE2V.js} +3 -3
- package/dist/{marketplace-add-currencies-IPE5RJF6.js → marketplace-add-currencies-DNI3AV3A.js} +7 -7
- package/dist/{marketplace-detail-IHGJXVZS.js → marketplace-detail-73DJFMI7.js} +37 -37
- package/dist/{marketplace-edit-WG6LMQ2P.js → marketplace-edit-LUBE4HXK.js} +3 -3
- package/dist/{marketplace-metadata-STYABOTX.js → marketplace-metadata-ZHJANDFF.js} +32 -32
- package/dist/{offer-detail-page-2G5BUOIB.js → offer-detail-page-XJFDKX4Z.js} +73 -27
- package/dist/{offer-variant-detail-page-V6TKNYZL.js → offer-variant-detail-page-6QPGQSLY.js} +11 -10
- package/dist/{offers-2QQFKGAX.js → offers-7IRUIP7L.js} +61 -46
- package/dist/{order-create-claim-Y7ESDXLI.js → order-create-claim-UJKXA37S.js} +13 -13
- package/dist/{order-create-edit-6L5S7KQM.js → order-create-edit-5U2QNJ5S.js} +11 -11
- package/dist/{order-create-exchange-WHO3K2MW.js → order-create-exchange-R5TOVSJZ.js} +41 -41
- package/dist/{order-create-refund-4ZO73NWS.js → order-create-refund-MEAXQVIZ.js} +32 -32
- package/dist/{order-create-return-R5WJBQ5W.js → order-create-return-MEUIY4VU.js} +11 -11
- package/dist/{order-detail-QUGH2GXH.js → order-detail-GH25X7LO.js} +49 -45
- package/dist/{order-edit-billing-address-BEOKFNLZ.js → order-edit-billing-address-FL6JUBHR.js} +33 -33
- package/dist/{order-edit-email-GLAQZCIT.js → order-edit-email-EE26NWGK.js} +32 -32
- package/dist/{order-edit-shipping-address-PF54SFAG.js → order-edit-shipping-address-7G5JUVKW.js} +32 -32
- package/dist/{order-list-GMUOLGZY.js → order-list-QILNDFBC.js} +15 -15
- package/dist/{order-metadata-VQOA3DOL.js → order-metadata-GB2PI4VA.js} +32 -32
- package/dist/{order-request-transfer-BLQQ66IF.js → order-request-transfer-EO76XRGE.js} +32 -32
- package/dist/pages/index.d.ts +25 -25
- package/dist/pages/index.js +145 -145
- package/dist/{payout-detail-6U2ANWOH.js → payout-detail-E6CFHU6I.js} +3 -3
- package/dist/{payout-list-3GQJQSVU.js → payout-list-R6ESKT7V.js} +7 -7
- package/dist/{price-list-configuration-BLHIGDSV.js → price-list-configuration-D6IS7UY5.js} +10 -10
- package/dist/price-list-create-QU6R7GRC.js +77 -0
- package/dist/{price-list-detail-6JAMNNJW.js → price-list-detail-I34YIISJ.js} +51 -47
- package/dist/{price-list-edit-RZQMPHXU.js → price-list-edit-YCR47ZXS.js} +27 -11
- package/dist/{price-list-list-HLWCOORV.js → price-list-list-4ZY64YQB.js} +10 -10
- package/dist/price-list-prices-add-V5U64Y6Y.js +72 -0
- package/dist/{price-list-prices-edit-ZQE3Z3NK.js → price-list-prices-edit-DKCX3UBV.js} +33 -33
- package/dist/{product-add-existing-attributes-J6MML6MT.js → product-add-existing-attributes-BZMB7ADH.js} +37 -37
- package/dist/{product-attributes-4EPKS6MP.js → product-attributes-SY656CC5.js} +2 -2
- package/dist/{product-bulk-edit-TRI2KKHW.js → product-bulk-edit-XU2MFL4U.js} +2 -2
- package/dist/product-create-I4USHEJB.js +77 -0
- package/dist/{product-create-attribute-BP6NN4GO.js → product-create-attribute-XM47T3D6.js} +3 -3
- package/dist/{product-create-variant-VDQQNHAK.js → product-create-variant-3XVP5IWI.js} +5 -5
- package/dist/{product-detail-MFJ3AIU6.js → product-detail-B4HVVOY3.js} +48 -43
- package/dist/{product-edit-26AWYWUU.js → product-edit-ZX33LEQM.js} +5 -3
- package/dist/{product-edit-attribute-AXPTES26.js → product-edit-attribute-QC22TRX4.js} +4 -4
- package/dist/product-list-DNZVZ3NC.js +89 -0
- package/dist/{product-media-XRBLOV7D.js → product-media-B4N3YJQX.js} +5 -5
- package/dist/{product-metadata-LOF6TSJQ.js → product-metadata-ECF7OSZP.js} +32 -32
- package/dist/{product-organization-ISVMEWQG.js → product-organization-EJUK4CZC.js} +5 -5
- package/dist/{product-sales-channels-C6UUHWGB.js → product-sales-channels-CVAXZ7C7.js} +5 -5
- package/dist/{product-shipping-profile-VTYQ22E4.js → product-shipping-profile-7F5GW6PQ.js} +2 -2
- package/dist/{product-tag-create-AHG3Y4GE.js → product-tag-create-MZV3LCQT.js} +32 -32
- package/dist/{product-tag-detail-4FL4CU5S.js → product-tag-detail-SANSVX5Z.js} +49 -49
- package/dist/{product-tag-edit-ACHNVZZP.js → product-tag-edit-3BSAEN4H.js} +32 -32
- package/dist/{product-tag-list-YPTIDXPX.js → product-tag-list-NFOAK7II.js} +49 -49
- package/dist/{product-tag-metadata-BXC7GMBB.js → product-tag-metadata-UPNJHAHF.js} +32 -32
- package/dist/{product-type-create-PPTAW3DW.js → product-type-create-CWWJMDLN.js} +2 -2
- package/dist/{product-type-detail-RAYCHYAF.js → product-type-detail-ZIGX5HUJ.js} +43 -43
- package/dist/{product-type-edit-55AH3P7G.js → product-type-edit-ZADGA6PV.js} +2 -2
- package/dist/{product-type-list-JN4SKTFE.js → product-type-list-D7GAIR2E.js} +8 -8
- package/dist/{product-type-metadata-24JU4JNK.js → product-type-metadata-HSIY6LBU.js} +32 -32
- package/dist/{product-variant-detail-7CFNAI3A.js → product-variant-detail-LIXWU3V2.js} +33 -33
- package/dist/{product-variant-edit-C4HXFQFW.js → product-variant-edit-GK5A2XMB.js} +34 -34
- package/dist/{product-variant-metadata-5PUBLPDN.js → product-variant-metadata-VREI3USX.js} +32 -32
- package/dist/{profile-detail-PABUO545.js → profile-detail-RLGHULMT.js} +3 -3
- package/dist/{profile-edit-O6Z3XJ4U.js → profile-edit-NWUQUWNW.js} +5 -3
- package/dist/{promotion-add-campaign-WK36UMSF.js → promotion-add-campaign-AU43PI2F.js} +6 -6
- package/dist/promotion-create-OJIBTHTJ.js +57 -0
- package/dist/promotion-detail-2N75YHYC.js +96 -0
- package/dist/{promotion-edit-details-YM5JPGEC.js → promotion-edit-details-GURXKLSK.js} +26 -9
- package/dist/{promotion-list-56ZDROMH.js → promotion-list-UIWNGEVN.js} +10 -10
- package/dist/{refund-reason-create-UA3XS6DP.js → refund-reason-create-SUJIXZMY.js} +32 -32
- package/dist/{refund-reason-edit-3TAGKV3U.js → refund-reason-edit-B3Q2DGXR.js} +32 -32
- package/dist/{refund-reason-list-PBLA5HYO.js → refund-reason-list-JLKMODL4.js} +42 -42
- package/dist/{region-add-countries-UO5A42HM.js → region-add-countries-LF3AV6GE.js} +6 -6
- package/dist/{region-create-7NA6RKWS.js → region-create-CVQVVWVA.js} +7 -7
- package/dist/{region-detail-636IAPYK.js → region-detail-JGSC4A2U.js} +8 -8
- package/dist/{region-edit-Z4VYO3TQ.js → region-edit-BXH6TBJG.js} +4 -4
- package/dist/{region-list-GIU6NFI4.js → region-list-ZZJNZWOP.js} +8 -8
- package/dist/{region-metadata-NRV3L42D.js → region-metadata-CCG5PYAN.js} +32 -32
- package/dist/{reservation-create-ANLVF7EC.js → reservation-create-WC7RIX5E.js} +4 -4
- package/dist/{reservation-detail-MAWHNY2H.js → reservation-detail-XYRHURYY.js} +42 -38
- package/dist/{reservation-list-UWZRPRPH.js → reservation-list-IKDEV3JB.js} +9 -9
- package/dist/{reservation-metadata-ZFKKAOWG.js → reservation-metadata-JLX75BPV.js} +32 -32
- package/dist/{reset-password-UDA5ZMTZ.js → reset-password-LUAKAGJO.js} +3 -3
- package/dist/{return-reason-create-DYJCGEOK.js → return-reason-create-K55MK47K.js} +2 -2
- package/dist/{return-reason-edit-A7ATUTCD.js → return-reason-edit-3N5K4WLG.js} +2 -2
- package/dist/{return-reason-list-NPAAMB5H.js → return-reason-list-6WUNAHM6.js} +14 -14
- package/dist/{sales-channel-add-products-2BBIMN6N.js → sales-channel-add-products-PYO5W5KK.js} +40 -40
- package/dist/{sales-channel-create-OC2BB67N.js → sales-channel-create-WSROI4MD.js} +3 -3
- package/dist/{sales-channel-detail-D5R7HPC7.js → sales-channel-detail-DBVRTBF7.js} +42 -42
- package/dist/{sales-channel-edit-V62TBRC4.js → sales-channel-edit-SNXG34Z3.js} +3 -3
- package/dist/sales-channel-list-VWXBOQYJ.js +52 -0
- package/dist/{sales-channel-metadata-5W4OZZYI.js → sales-channel-metadata-3SKXKLM4.js} +32 -32
- package/dist/{shipping-option-type-create-GHOCZT64.js → shipping-option-type-create-ZRWS4PGU.js} +32 -32
- package/dist/{shipping-option-type-detail-W32EHTBS.js → shipping-option-type-detail-KUGZH5YF.js} +34 -34
- package/dist/{shipping-option-type-edit-KRIP6HTC.js → shipping-option-type-edit-24XNCOIH.js} +32 -32
- package/dist/shipping-option-type-list-4XTVL3AD.js +60 -0
- package/dist/{shipping-profile-create-HKYX4FKJ.js → shipping-profile-create-FKAYICYI.js} +2 -2
- package/dist/{shipping-profile-detail-UFGQ3CCH.js → shipping-profile-detail-2JSKRGVO.js} +3 -3
- package/dist/{shipping-profile-metadata-52ZW757T.js → shipping-profile-metadata-525ENKVW.js} +32 -32
- package/dist/{shipping-profiles-list-PZQVMKR4.js → shipping-profiles-list-4SBV3D52.js} +7 -7
- package/dist/{store-address-edit-IJ2UW6WC.js → store-address-edit-OKIZHTIJ.js} +5 -3
- package/dist/{store-bulk-edit-OIYKZ6AZ.js → store-bulk-edit-J5G2TKVA.js} +3 -3
- package/dist/{store-closure-edit-H3EKROXP.js → store-closure-edit-3HRLONIN.js} +5 -3
- package/dist/{store-create-Y3BGG5P5.js → store-create-VKLIAHQL.js} +33 -33
- package/dist/store-details-DWV3WMKC.js +104 -0
- package/dist/{store-edit-HWOGEOCH.js → store-edit-ECPS7KNP.js} +50 -16
- package/dist/store-list-HZCRXW5L.js +82 -0
- package/dist/{store-member-invite-7ORIMT73.js → store-member-invite-6ZIH6B7U.js} +4 -4
- package/dist/{store-payment-details-edit-ERRJDLBO.js → store-payment-details-edit-AQDLN7BO.js} +5 -3
- package/dist/{store-professional-details-edit-VD2J4VYV.js → store-professional-details-edit-CUHZ7JQM.js} +5 -3
- package/dist/{tax-region-create-GGDCD2VU.js → tax-region-create-BNC2BIYK.js} +33 -33
- package/dist/tax-region-detail-W4RAVJVN.js +69 -0
- package/dist/{tax-region-edit-6JOV3POI.js → tax-region-edit-RZRSLGFZ.js} +32 -32
- package/dist/{tax-region-list-NIAT626R.js → tax-region-list-Y2XSQSCD.js} +8 -8
- package/dist/{tax-region-metadata-4P667IOY.js → tax-region-metadata-EDVNCFIM.js} +32 -32
- package/dist/{tax-region-province-create-7YT2LNJG.js → tax-region-province-create-FNXJVUDS.js} +2 -2
- package/dist/{tax-region-province-detail-2GRPOSWS.js → tax-region-province-detail-BS7INZML.js} +38 -38
- package/dist/{tax-region-tax-override-create-R5GKEOK6.js → tax-region-tax-override-create-G7VXNVNU.js} +47 -47
- package/dist/{tax-region-tax-override-edit-MLJKNLAR.js → tax-region-tax-override-edit-NC3WIM7X.js} +47 -47
- package/dist/{tax-region-tax-rate-create-3ZLVL3X3.js → tax-region-tax-rate-create-N7E2HDJ7.js} +3 -3
- package/dist/{tax-region-tax-rate-edit-XVMPIJOF.js → tax-region-tax-rate-edit-KLVNNKQJ.js} +3 -3
- package/dist/{user-detail-452E7GII.js → user-detail-RNP7ADME.js} +4 -4
- package/dist/{user-edit-T3MZKULQ.js → user-edit-NI6IKAX7.js} +2 -2
- package/dist/{user-invite-FCWARLW5.js → user-invite-TUDDN7KP.js} +5 -5
- package/dist/{user-list-OU6WS25V.js → user-list-JT3HWEGY.js} +7 -7
- package/dist/{user-metadata-CHHV7S3A.js → user-metadata-U7UIEIWL.js} +32 -32
- package/package.json +21 -16
- package/dist/attribute-list-6A72PBIY.js +0 -61
- package/dist/category-organize-H4JYCHDA.js +0 -112
- package/dist/chunk-LFKTHNWI.js +0 -83
- package/dist/collection-detail-2WOLOVWF.js +0 -100
- package/dist/collection-list-B3Y2ALLZ.js +0 -85
- package/dist/customer-group-list-R2DP2D42.js +0 -57
- package/dist/inventory-create-XQKH3HZQ.js +0 -58
- package/dist/location-list-RHUT7IRA.js +0 -54
- package/dist/location-service-zone-shipping-option-create-3PQ2EYD7.js +0 -60
- package/dist/price-list-create-HKN72A6Q.js +0 -77
- package/dist/price-list-prices-add-ST6WNQNH.js +0 -72
- package/dist/product-create-B4DTC2OM.js +0 -71
- package/dist/product-list-DMQSLXM4.js +0 -87
- package/dist/promotion-create-7VBA6JFM.js +0 -57
- package/dist/promotion-detail-KXXWEFHW.js +0 -90
- package/dist/sales-channel-list-LVW7XE7K.js +0 -52
- package/dist/shipping-option-type-list-4FML2ZX5.js +0 -60
- package/dist/store-details-56IHJJQV.js +0 -121
- package/dist/store-list-5DRW6QZF.js +0 -82
- package/dist/tax-region-detail-L7STT6C7.js +0 -69
- 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-42BAC3EV.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, {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_dist
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-52KJSIHS.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTags
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XQBF2FRT.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTypes
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-K6FC5Y72.js";
|
|
10
10
|
import {
|
|
11
11
|
useCollections
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GS7VNGVP.js";
|
|
13
13
|
import {
|
|
14
14
|
useProductCategories
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LAS6SXKB.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
18
|
} from "./chunk-NBMM2TZK.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteCommissionRuleAction,
|
|
3
3
|
useScopeReferenceNames
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4EM4RG5L.js";
|
|
5
5
|
import {
|
|
6
6
|
formatCommissionValue,
|
|
7
7
|
getIsActiveProps,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
SectionRow
|
|
20
20
|
} from "./chunk-3XPXUIK3.js";
|
|
21
|
-
import {
|
|
22
|
-
_DataTable,
|
|
23
|
-
useDataTable
|
|
24
|
-
} from "./chunk-6ZVV2XHU.js";
|
|
25
21
|
import {
|
|
26
22
|
SingleColumnPage
|
|
27
23
|
} from "./chunk-H6MYB7GB.js";
|
|
28
24
|
import {
|
|
29
25
|
useQueryParams
|
|
30
26
|
} from "./chunk-THHRRYRS.js";
|
|
27
|
+
import {
|
|
28
|
+
_DataTable,
|
|
29
|
+
useDataTable
|
|
30
|
+
} from "./chunk-GRFWCCUW.js";
|
|
31
31
|
import {
|
|
32
32
|
useCommissionRules,
|
|
33
33
|
useDefaultCommission
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-D5FHUQQK.js";
|
|
35
35
|
import {
|
|
36
36
|
ActionMenu
|
|
37
37
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
|
|
42
42
|
// src/pages/commissions/commissions-list/commissions-page.tsx
|
|
43
43
|
import { Children } from "react";
|
|
44
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
44
45
|
|
|
45
46
|
// src/pages/commissions/commissions-list/components/global-commission-section/global-commission-section.tsx
|
|
46
47
|
import { PencilSquare } from "@medusajs/icons";
|
|
@@ -366,10 +367,10 @@ var CommissionRulesTable = () => {
|
|
|
366
367
|
// src/pages/commissions/commissions-list/commissions-page.tsx
|
|
367
368
|
import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
368
369
|
var Root = ({ children }) => {
|
|
369
|
-
return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: true, "data-testid": "commissions-page", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs4(Fragment2, { children: [
|
|
370
|
+
return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: true, "data-testid": "commissions-page", children: /* @__PURE__ */ jsx5(WidgetZone, { id: "commissions.list", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs4(Fragment2, { children: [
|
|
370
371
|
/* @__PURE__ */ jsx5(GlobalCommissionSection, {}),
|
|
371
372
|
/* @__PURE__ */ jsx5(CommissionRulesTable, {})
|
|
372
|
-
] }) });
|
|
373
|
+
] }) }) });
|
|
373
374
|
};
|
|
374
375
|
var CommissionsPage = Object.assign(Root, {
|
|
375
376
|
GlobalCommission: GlobalCommissionSection,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-H6MYB7GB.js";
|
|
7
7
|
import {
|
|
8
8
|
usePayout
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-55NZ2MMZ.js";
|
|
10
10
|
import {
|
|
11
11
|
SingleColumnPageSkeleton
|
|
12
12
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
// src/pages/payouts/payout-detail/payout-detail.tsx
|
|
15
15
|
import { Children } from "react";
|
|
16
16
|
import { useParams } from "react-router-dom";
|
|
17
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
17
18
|
|
|
18
19
|
// src/pages/payouts/payout-detail/components/payout-general-section.tsx
|
|
19
20
|
import { Container, Heading, StatusBadge, Text } from "@medusajs/ui";
|
|
@@ -85,7 +86,7 @@ var Root = ({ children }) => {
|
|
|
85
86
|
if (isError) {
|
|
86
87
|
throw error;
|
|
87
88
|
}
|
|
88
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children }) : /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children: /* @__PURE__ */ jsx2(PayoutGeneralSection, { payout }) });
|
|
89
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children }) : /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children: /* @__PURE__ */ jsx2(WidgetZone, { id: "payouts.detail.main", data: payout, children: /* @__PURE__ */ jsx2(PayoutGeneralSection, { payout }) }) });
|
|
89
90
|
};
|
|
90
91
|
var PayoutDetailPage = Object.assign(Root, {
|
|
91
92
|
GeneralSection: PayoutGeneralSection
|
|
@@ -4,29 +4,31 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
useCampaignTableQuery
|
|
6
6
|
} from "./chunk-DY3XQPHC.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
|
useCampaigns,
|
|
16
16
|
useDeleteCampaign
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-42BAC3EV.js";
|
|
18
18
|
import {
|
|
19
19
|
ActionMenu
|
|
20
20
|
} from "./chunk-BDGZ4EQO.js";
|
|
21
21
|
|
|
22
22
|
// src/pages/campaigns/campaign-list/campaign-list.tsx
|
|
23
23
|
import { Children as Children2 } from "react";
|
|
24
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
24
25
|
|
|
25
26
|
// src/pages/campaigns/campaign-list/components/campaign-list-table.tsx
|
|
26
27
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
27
28
|
import { Button, Container, Heading, toast, usePrompt } from "@medusajs/ui";
|
|
28
29
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
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 } from "react-router-dom";
|
|
@@ -59,15 +61,19 @@ var CampaignListHeader = ({ children }) => {
|
|
|
59
61
|
var CampaignListDataTable = () => {
|
|
60
62
|
const { t } = useTranslation();
|
|
61
63
|
const { raw, searchParams } = useCampaignTableQuery({ pageSize: PAGE_SIZE });
|
|
64
|
+
const linkQuery = useLinkQuery("campaign");
|
|
62
65
|
const {
|
|
63
66
|
campaigns,
|
|
64
67
|
count,
|
|
65
68
|
isPending: isLoading,
|
|
66
69
|
isError,
|
|
67
70
|
error
|
|
68
|
-
} = useCampaigns(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
} = useCampaigns(
|
|
72
|
+
{ ...searchParams, ...linkQuery },
|
|
73
|
+
{
|
|
74
|
+
placeholderData: keepPreviousData
|
|
75
|
+
}
|
|
76
|
+
);
|
|
71
77
|
const columns = useColumns();
|
|
72
78
|
const { table } = useDataTable({
|
|
73
79
|
data: campaigns ?? [],
|
|
@@ -166,9 +172,13 @@ var CampaignActions = ({ campaign }) => {
|
|
|
166
172
|
var columnHelper = createColumnHelper();
|
|
167
173
|
var useColumns = () => {
|
|
168
174
|
const base = useCampaignTableColumns();
|
|
175
|
+
const { columns: extended } = useExtendableTable({
|
|
176
|
+
model: "campaign",
|
|
177
|
+
columns: base
|
|
178
|
+
});
|
|
169
179
|
return useMemo(
|
|
170
180
|
() => [
|
|
171
|
-
...
|
|
181
|
+
...extended,
|
|
172
182
|
columnHelper.display({
|
|
173
183
|
id: "actions",
|
|
174
184
|
cell: ({ row }) => {
|
|
@@ -176,14 +186,14 @@ var useColumns = () => {
|
|
|
176
186
|
}
|
|
177
187
|
})
|
|
178
188
|
],
|
|
179
|
-
[
|
|
189
|
+
[extended]
|
|
180
190
|
);
|
|
181
191
|
};
|
|
182
192
|
|
|
183
193
|
// src/pages/campaigns/campaign-list/campaign-list.tsx
|
|
184
194
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
185
195
|
var Root = ({ children }) => {
|
|
186
|
-
return /* @__PURE__ */ jsx2(SingleColumnPage, { hasOutlet: true, children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(CampaignListTable, {}) });
|
|
196
|
+
return /* @__PURE__ */ jsx2(SingleColumnPage, { hasOutlet: true, children: /* @__PURE__ */ jsx2(WidgetZone, { id: "campaigns.list", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(CampaignListTable, {}) }) });
|
|
187
197
|
};
|
|
188
198
|
var CampaignListPage = Object.assign(Root, {
|
|
189
199
|
Table: CampaignListTable,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-54EPH67T.js";
|
|
4
4
|
import {
|
|
5
5
|
useCustomerGroupTableFilters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LFNC565R.js";
|
|
7
7
|
import {
|
|
8
8
|
useOrderGroupTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XQ5IRC23.js";
|
|
10
10
|
import {
|
|
11
11
|
useOrderTableQuery
|
|
12
12
|
} from "./chunk-QUHSHIAC.js";
|
|
@@ -36,13 +36,13 @@ 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
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-43C2OEFK.js";
|
|
46
46
|
import {
|
|
47
47
|
useBatchCustomerCustomerGroups,
|
|
48
48
|
useCustomer,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
useDeleteCustomer,
|
|
51
51
|
useDeleteCustomerAddress,
|
|
52
52
|
useRemoveCustomersFromGroup
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-HOOIU4KF.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,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
returnsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIELZO2F.js";
|
|
4
4
|
import {
|
|
5
5
|
ordersQueryKeys
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y4QL7QLU.js";
|
|
7
7
|
import {
|
|
8
8
|
queryClient
|
|
9
9
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-ZA2KFUFR.js";
|
|
13
13
|
import {
|
|
14
14
|
sdk
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JTAECZCT.js";
|
|
16
16
|
|
|
17
17
|
// src/hooks/api/exchanges.tsx
|
|
18
18
|
import {
|