@mercurjs/vendor 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/{[id]-4HO4S2PX.js → [id]-3GF4DR5K.js} +704 -670
- package/dist/{[id]-4LIIFGET.js → [id]-3HIZGJWE.js} +140 -51
- package/dist/{[id]-XP5KEMNX.js → [id]-AXGVRF7M.js} +99 -62
- package/dist/{[id]-N7JEZFXQ.js → [id]-C7IFTDTJ.js} +4 -3
- package/dist/{[id]-DT5YJVKG.js → [id]-DKF4YEXN.js} +32 -31
- package/dist/{[id]-DCGPICT3.js → [id]-IFWREJVP.js} +37 -36
- package/dist/{[id]-IEBZ6V3W.js → [id]-LJABCC3D.js} +43 -42
- package/dist/{[id]-3LNKC5OJ.js → [id]-MIASQVLP.js} +93 -52
- package/dist/{[id]-U6FKX5UQ.js → [id]-NGB5OLRW.js} +68 -54
- package/dist/{[id]-XB45DY2D.js → [id]-ONBG5DZJ.js} +121 -43
- package/dist/{[id]-CUBGVODE.js → [id]-OV5VX7KD.js} +102 -61
- package/dist/{[id]-5P5LTATX.js → [id]-QWI3RWE6.js} +31 -13
- package/dist/{[id]-AQUUZFRX.js → [id]-RFC2YGFT.js} +142 -44
- package/dist/{[id]-5EECCIRP.js → [id]-VKEADKFV.js} +74 -49
- package/dist/{[location_id]-I4HHUHWY.js → [location_id]-ZG5GZKHC.js} +11 -10
- package/dist/{[province_id]-OYX4MOCF.js → [province_id]-KEDQTW6S.js} +31 -30
- package/dist/{add-RPRJWCYU.js → add-FDIWOFVE.js} +31 -30
- package/dist/{add-3T4GBFMM.js → add-ZIP3VEAV.js} +37 -37
- package/dist/{add-customer-groups-FB5T6PQN.js → add-customer-groups-EJIRM264.js} +25 -25
- package/dist/{add-products-F243SWGD.js → add-products-MW2JYTSJ.js} +30 -30
- package/dist/{add-promotions-TJDK7HLW.js → add-promotions-3BALABRA.js} +7 -7
- package/dist/{add-to-campaign-Q6OAJMUJ.js → add-to-campaign-B7RFNWPF.js} +5 -5
- package/dist/{address-XVBSNMFU.js → address-CP2MSWLA.js} +41 -29
- package/dist/{adjust-inventory-IZLRMQXV.js → adjust-inventory-CQPDV5X7.js} +3 -3
- package/dist/{allocate-items-Q3VALDYT.js → allocate-items-5HHGU3XW.js} +4 -4
- package/dist/{areas-IYGBRCRH.js → areas-XQE3AYPZ.js} +7 -7
- package/dist/{attributes-LGEM2JJW.js → attributes-HU6I723C.js} +2 -2
- package/dist/breadcrumb-3M7RKX5V.js +47 -0
- package/dist/{breadcrumb-WG6TIF4C.js → breadcrumb-4O2P6XRS.js} +5 -3
- package/dist/{breadcrumb-K4HBKZUE.js → breadcrumb-4Z7NR2BO.js} +3 -3
- package/dist/{breadcrumb-BC6XN2SE.js → breadcrumb-4ZZFD3UH.js} +3 -3
- package/dist/{breadcrumb-MOA2DBOE.js → breadcrumb-6VWM2EJF.js} +2 -2
- package/dist/{breadcrumb-YOY6Z36F.js → breadcrumb-75QGQDKN.js} +2 -2
- package/dist/{breadcrumb-FEYGZFJU.js → breadcrumb-C7X6FV2H.js} +3 -3
- package/dist/breadcrumb-EAYZVNKS.js +33 -0
- package/dist/{breadcrumb-H45Z2WNG.js → breadcrumb-FF7H3XPP.js} +4 -4
- package/dist/{breadcrumb-KZPOPXGG.js → breadcrumb-GLBWFHKW.js} +2 -2
- package/dist/{breadcrumb-XEZCMI55.js → breadcrumb-HK53R6S2.js} +2 -2
- package/dist/{breadcrumb-BFNJWOJ4.js → breadcrumb-KV6K64PW.js} +2 -2
- package/dist/{breadcrumb-LEFHXFLT.js → breadcrumb-KZ5TSCXK.js} +3 -3
- package/dist/breadcrumb-TPITDYD7.js +46 -0
- package/dist/{breadcrumb-XGXKCDYS.js → breadcrumb-UVODV3YP.js} +4 -4
- package/dist/{breadcrumb-L262VPBO.js → breadcrumb-WIB5IGST.js} +2 -2
- package/dist/{breadcrumb-BXD3SRM7.js → breadcrumb-X5TTCKIB.js} +2 -2
- package/dist/{campaigns-DZKRNCA4.js → campaigns-JKFMRYZE.js} +6 -6
- package/dist/{categories-JZJA2IBQ.js → categories-2PGWWGP6.js} +7 -7
- package/dist/{chunk-CRYZK4NU.js → chunk-2GVPLCQR.js} +2 -2
- package/dist/{chunk-MJP5V3JN.js → chunk-3IZSQI6K.js} +2 -2
- package/dist/chunk-432S4FGR.js +0 -0
- package/dist/{chunk-HDEOZN2Q.js → chunk-4OQLPIUZ.js} +27 -27
- package/dist/{chunk-JJP6AKMV.js → chunk-4U2BLH45.js} +1 -1
- package/dist/{chunk-WFHGJGCW.js → chunk-4ZWIWI2H.js} +27 -12
- package/dist/{chunk-DSTHXHJ5.js → chunk-52KJSIHS.js} +1358 -1392
- package/dist/{chunk-GSH6ZGI6.js → chunk-54SCBOWD.js} +35 -12
- package/dist/{chunk-MAW6ZT3D.js → chunk-55TS752B.js} +1 -1
- package/dist/{chunk-3ALBZK4M.js → chunk-57ZJ6HTU.js} +18 -4
- package/dist/{chunk-EPRYM3FA.js → chunk-5DKUSZQ7.js} +2 -2
- package/dist/{chunk-L57USMYC.js → chunk-5YZ3G5EZ.js} +1 -1
- package/dist/{chunk-3SH24DGG.js → chunk-656G74I2.js} +2 -2
- package/dist/{chunk-ZLYGEART.js → chunk-65HHU6D3.js} +1 -1
- package/dist/{chunk-ZTOYVPGA.js → chunk-6PSJJHI4.js} +1 -1
- package/dist/{chunk-FCZJAYMM.js → chunk-6RHJFSE3.js} +1 -1
- package/dist/{chunk-W3UHAQCV.js → chunk-7TQNE3E2.js} +1 -1
- package/dist/{chunk-FDKFUIYV.js → chunk-AAKR2CB4.js} +1 -1
- package/dist/{chunk-KTJLJTFO.js → chunk-ASN3XS2R.js} +95 -68
- package/dist/{chunk-UNE4VD5U.js → chunk-B25W27XK.js} +21 -10
- package/dist/{chunk-H6LZ77GX.js → chunk-BEPAXQMU.js} +4 -1
- package/dist/{chunk-PUAWN7SS.js → chunk-BHEU34FL.js} +1 -1
- package/dist/{chunk-634XVU3D.js → chunk-CVXKASWV.js} +2 -2
- package/dist/{chunk-S7NGDLZ3.js → chunk-D6RN3ONJ.js} +3 -3
- package/dist/{chunk-VD27SL7H.js → chunk-DHARUTMI.js} +7 -6
- package/dist/{chunk-6FDPVW7Y.js → chunk-DIAWPVYS.js} +2 -2
- package/dist/{chunk-MT6WOKIW.js → chunk-DREOA2LP.js} +3 -3
- package/dist/{chunk-RILHLBKW.js → chunk-DRKRLQZZ.js} +2 -2
- package/dist/{chunk-IEVN722X.js → chunk-DSY5PNK6.js} +1 -1
- package/dist/{chunk-LXZXXOJ3.js → chunk-DTGEFKK4.js} +14 -1
- package/dist/{chunk-JDNXS37G.js → chunk-E5VLRRZR.js} +2 -2
- package/dist/{chunk-GZ4KTAWS.js → chunk-EPSDO2MJ.js} +1 -1
- package/dist/{chunk-KZQFIPY2.js → chunk-ESXMD6CR.js} +12 -4
- package/dist/{chunk-D76WZZSB.js → chunk-F4ORNDFU.js} +8 -7
- package/dist/{chunk-VE6GRIIN.js → chunk-FV76G2D7.js} +2 -2
- package/dist/{chunk-WBCWER26.js → chunk-G64YUZSL.js} +1 -1
- package/dist/{chunk-Y4PM3IDZ.js → chunk-GGXGKMYK.js} +1 -1
- package/dist/{chunk-7MARNXFG.js → chunk-GHDLST2P.js} +1 -1
- package/dist/{chunk-2NPD4S55.js → chunk-H3PVTKOP.js} +2 -2
- package/dist/{chunk-E6W57UP3.js → chunk-HRUO43BZ.js} +2 -2
- package/dist/{chunk-OYUJYPDF.js → chunk-II3CLUXA.js} +3 -2
- package/dist/{chunk-CUAGC54B.js → chunk-IP6TSKUQ.js} +23 -9
- package/dist/{chunk-KIURBTC4.js → chunk-J2XUEO2E.js} +1 -1
- package/dist/{chunk-QIF4QE7T.js → chunk-K5324KIX.js} +1 -1
- package/dist/{chunk-5BYYDBLS.js → chunk-KGHHGMDU.js} +4 -4
- package/dist/{chunk-QWW6RHZC.js → chunk-KUH5ZX7G.js} +5 -4
- package/dist/{chunk-NTJ3BMOE.js → chunk-L2NJPDUD.js} +1 -1
- package/dist/{chunk-JK4M3ZKY.js → chunk-LFX6R456.js} +5 -5
- package/dist/{chunk-MAVQ636Y.js → chunk-MDFKI2FL.js} +1 -1
- package/dist/{chunk-WFE6CT6M.js → chunk-MDGTQT5D.js} +1 -1
- package/dist/{chunk-ZLHCZ5F2.js → chunk-MR6REQKT.js} +5 -5
- package/dist/{chunk-LWFBBTJ3.js → chunk-N7YRIXJA.js} +22 -11
- package/dist/{chunk-ZQCCVCHB.js → chunk-O72AIZUN.js} +1 -1
- package/dist/{chunk-RPU4UOQK.js → chunk-OATVHDPZ.js} +1 -1
- package/dist/{chunk-JY2XON7H.js → chunk-OCS24TF4.js} +7 -6
- package/dist/{chunk-3TST3EWQ.js → chunk-OQTL7PXK.js} +2 -2
- package/dist/{chunk-V5K6HISS.js → chunk-ORI73OPX.js} +2 -2
- package/dist/{chunk-2KA4TGBQ.js → chunk-OZ2UHCWA.js} +20 -9
- package/dist/{chunk-JTHDMXZV.js → chunk-P27MQBMZ.js} +2 -2
- package/dist/{chunk-4IRQSBA7.js → chunk-P76QYIFF.js} +1 -1
- package/dist/{chunk-5PAUN3PM.js → chunk-P7UBW2EI.js} +3 -3
- package/dist/{chunk-5RMLLTR7.js → chunk-PEXMLTJX.js} +2 -2
- package/dist/chunk-QEFPTNPC.js +81 -0
- package/dist/{chunk-BQHVM46E.js → chunk-RLRWDHME.js} +1 -1
- package/dist/{chunk-7BFQKYCJ.js → chunk-RPMYKDNA.js} +2 -2
- package/dist/{chunk-UX5UYDCY.js → chunk-RSOV55K7.js} +2 -2
- package/dist/{chunk-RTMMO6IU.js → chunk-RZHVUQ7G.js} +25 -13
- package/dist/{chunk-3I6ZAMGN.js → chunk-SFQOECF7.js} +1 -1
- package/dist/{chunk-LQSLDDPT.js → chunk-T35QBLG7.js} +1 -1
- package/dist/{chunk-7EXKHL5L.js → chunk-TDL742KZ.js} +1 -1
- package/dist/{chunk-6Q3J6ZMM.js → chunk-UDPMSL6L.js} +41 -19
- package/dist/{chunk-EDV4MTTT.js → chunk-VQTQILLY.js} +65 -37
- package/dist/{chunk-TPGIMZLI.js → chunk-VR7P4DAZ.js} +1 -1
- package/dist/{chunk-5BQO3YQP.js → chunk-VUWAOX7H.js} +2 -2
- package/dist/{chunk-JR7AABT5.js → chunk-VWPNMEOE.js} +2 -2
- package/dist/{chunk-MVEHWM7K.js → chunk-W34KDYZA.js} +15 -4
- package/dist/{chunk-EAAZV3B7.js → chunk-WJ4KVDFV.js} +24 -12
- package/dist/{chunk-MUGQQY6P.js → chunk-WN2NWWVO.js} +49 -11
- package/dist/chunk-WQTWBXKO.js +23 -0
- package/dist/{chunk-3BXCPHN6.js → chunk-XCHKUSUU.js} +1 -0
- package/dist/{chunk-KG2NUK4J.js → chunk-XEQU2OQP.js} +46 -15
- package/dist/{chunk-AOLE7MBM.js → chunk-XG76XXM2.js} +1 -1
- package/dist/{chunk-O7BGGWW6.js → chunk-XKEYHWBS.js} +5 -5
- package/dist/{chunk-DQ7LZZJX.js → chunk-XQO243HC.js} +24 -13
- package/dist/{chunk-TJKZ5QCJ.js → chunk-XUJUJD2E.js} +3 -3
- package/dist/{chunk-27WLUOI2.js → chunk-Y6S7K3YB.js} +1 -1
- package/dist/{chunk-G6YNCIVF.js → chunk-YAUGB4LD.js} +2 -2
- package/dist/{chunk-WCXFUBEF.js → chunk-YVI3LZ3X.js} +9 -9
- package/dist/{chunk-MNHP6YRC.js → chunk-YVYYOBAE.js} +3 -3
- package/dist/{chunk-3C2T27YW.js → chunk-YXWZT3PX.js} +1 -1
- package/dist/{chunk-QWJTJSIT.js → chunk-ZC2ME3UB.js} +1 -1
- package/dist/{collections-XIHCTMSJ.js → collections-BLDMQOVB.js} +31 -31
- package/dist/{configuration-3GCBMM27.js → configuration-UMRBE5RQ.js} +2 -2
- package/dist/{configuration-FWZTMYXY.js → configuration-YVYVOLSP.js} +4 -4
- package/dist/{create-BV3QDTK2.js → create-3SBSLZQO.js} +3 -3
- package/dist/{create-NF2LPVXA.js → create-3TN2CT6M.js} +2 -2
- package/dist/{create-VL7LDTVE.js → create-3WBHG32J.js} +12 -12
- package/dist/{create-2RGNAVVY.js → create-3ZQFAKYR.js} +27 -27
- package/dist/{create-PJVLJ7T6.js → create-4ZRQVXT5.js} +31 -31
- package/dist/{create-GO7APBBU.js → create-7Z63KA2P.js} +25 -25
- package/dist/{create-N534JQPH.js → create-B4VIR7YP.js} +7 -7
- package/dist/{create-U64NEOEL.js → create-EKDZW233.js} +2 -2
- package/dist/{create-X5SOAPD3.js → create-EMU23LKH.js} +2 -2
- package/dist/{create-RPBHXU32.js → create-FYKFT7TQ.js} +23 -23
- package/dist/{create-32MXB6FD.js → create-NNBIDU4Q.js} +23 -23
- package/dist/{create-FHIFVCSG.js → create-PO2JF7F5.js} +37 -37
- package/dist/{create-NEK6JCKR.js → create-PO3JC6QK.js} +13 -13
- package/dist/{create-YKYLCEAK.js → create-QZVZF3MJ.js} +5 -5
- package/dist/{create-K26SM34L.js → create-T3KSWODJ.js} +2 -2
- package/dist/{create-HEZYB7RF.js → create-TDQISX3H.js} +59 -25
- package/dist/{create-3AMFYYI6.js → create-XORPYXNT.js} +25 -25
- package/dist/{create-AMNH3WXL.js → create-XU35U2HL.js} +36 -32
- package/dist/{create-XLYGW5PN.js → create-ZLYEPOAQ.js} +24 -24
- package/dist/{customer-group-add-customers-2C53NFBJ.js → customer-group-add-customers-UTBBZ6T4.js} +5 -5
- package/dist/{customer-group-create-75QQEQZF.js → customer-group-create-L3H5REVP.js} +2 -2
- package/dist/{customer-group-detail-AOQYYAOG.js → customer-group-detail-WSBXE23J.js} +19 -15
- package/dist/{customer-group-edit-N77RCW6I.js → customer-group-edit-D6FJH5TK.js} +49 -28
- package/dist/{customer-groups-GNFV7VMT.js → customer-groups-TWCYFU3U.js} +37 -16
- package/dist/{customers-HNINO6YL.js → customers-6HDZKARD.js} +7 -7
- package/dist/{edit-UNN3QTEJ.js → edit-2RN3OT27.js} +24 -8
- package/dist/{edit-WEUFBORT.js → edit-5XPDTCB5.js} +25 -25
- package/dist/{edit-TD7QFM4Z.js → edit-CNXA4GKJ.js} +15 -17
- package/dist/{edit-BSD6667Q.js → edit-DCMMX4GW.js} +28 -29
- package/dist/{edit-NHQJLCAK.js → edit-DKUERO2V.js} +2 -2
- package/dist/{edit-I2RJUPWV.js → edit-FF2ZWS6U.js} +3 -3
- package/dist/{edit-3DUCWSLA.js → edit-ISFEI7YX.js} +79 -46
- package/dist/{edit-O65JD54W.js → edit-IVBVZ5NL.js} +6 -6
- package/dist/{edit-IJ6DCBUU.js → edit-K2IP2H25.js} +29 -12
- package/dist/{edit-ZOLSAIKF.js → edit-MUQ37ETA.js} +2 -2
- package/dist/{edit-JB7KVBOL.js → edit-NTTJKLUI.js} +4 -4
- package/dist/{edit-4PWAJ7A3.js → edit-OOY2XGLZ.js} +24 -24
- package/dist/{edit-7SBPHN6P.js → edit-P6YZBA32.js} +24 -8
- package/dist/{edit-3V34KJS2.js → edit-Q7KDO37A.js} +2 -2
- package/dist/{edit-ZGAOUZYP.js → edit-QII5YJ2R.js} +25 -25
- package/dist/{edit-WN2Q3TOX.js → edit-RRA6J5FW.js} +3 -3
- package/dist/{edit-SIKOSSHF.js → edit-Y4XONJJU.js} +23 -23
- package/dist/{edit-ZORE6RUD.js → edit-YDMBLXGU.js} +56 -37
- package/dist/{edit-7CLOJ3UZ.js → edit-YPIJHIGC.js} +37 -37
- package/dist/{edit-budget-D22WMVYR.js → edit-budget-PYPHUJPW.js} +2 -2
- package/dist/{edit-inventory-item-QMYWEBZ3.js → edit-inventory-item-5VBH365V.js} +23 -8
- package/dist/{edit-inventory-item-attributes-HLG6JR6S.js → edit-inventory-item-attributes-RMKG2IRO.js} +2 -2
- package/dist/{edit-price-F7ZWM3FN.js → edit-price-PDS4XN2J.js} +5 -5
- package/dist/{edit-stock-ITAZNHPU.js → edit-stock-UI6HXHJJ.js} +4 -4
- package/dist/extension-targets.d.ts +248 -0
- package/dist/extension-targets.js +1 -0
- package/dist/{fulfillment-U2GRQ6DD.js → fulfillment-6GC3NRFT.js} +33 -24
- package/dist/{fulfillment-providers-CMU2JB5X.js → fulfillment-providers-IND53UPG.js} +28 -28
- package/dist/index.css +24 -12
- package/dist/index.d.ts +2 -0
- package/dist/index.js +257 -230
- package/dist/{inventory-FKEXULLT.js → inventory-BDST2XIX.js} +7 -7
- package/dist/{inventory-4JKLAZ2Q.js → inventory-LSG2IEWD.js} +4 -4
- package/dist/{invite-3R2CEWLN.js → invite-CNJQ27AY.js} +30 -43
- package/dist/{invite-MNAX6EUC.js → invite-DD2G6UUM.js} +27 -27
- package/dist/{loader-MAAMUP2Z.js → loader-BLRQLIJT.js} +13 -11
- package/dist/{loader-HTPUNIOS.js → loader-MJTR2S7V.js} +14 -12
- package/dist/{locations-2VWSMWHL.js → locations-HHP2DZ4N.js} +3 -3
- package/dist/login-FK6ATIQV.js +41 -0
- package/dist/{manage-locations-RWGDXXJQ.js → manage-locations-V2AJVZXA.js} +3 -3
- package/dist/{media-P6WSFHY4.js → media-2Z2UIOQU.js} +27 -27
- package/dist/{media-YB4G5CMV.js → media-T26YU24S.js} +25 -25
- package/dist/{metadata-J447GEBP.js → metadata-3CER2AEK.js} +23 -23
- package/dist/{metadata-6OYHLPLA.js → metadata-BGYWXGMG.js} +23 -23
- package/dist/{metadata-VTQ2CGZX.js → metadata-MSAODJ2T.js} +23 -23
- package/dist/{metadata-5Q6FLVX4.js → metadata-WB37SSTG.js} +23 -23
- package/dist/{metadata-ADXGD4Y6.js → metadata-XS3VAC3N.js} +23 -23
- package/dist/{offer-create-page-ACPKTNHA.js → offer-create-page-QAHHXLLJ.js} +31 -29
- package/dist/{offer-detail-page-S4R4N5GL.js → offer-detail-page-ZLGP4ELR.js} +81 -28
- package/dist/{offer-variant-detail-page-XUMDXZUD.js → offer-variant-detail-page-2A7TRGYS.js} +28 -22
- package/dist/offers-ZBAZOZ7Q.js +54 -0
- package/dist/{onboarding-TUGXFOA6.js → onboarding-XCCZ2TMN.js} +70 -75
- package/dist/orders-VFSDZYOV.js +63 -0
- package/dist/{organization-YIOAVFHN.js → organization-YB45TRUN.js} +25 -25
- package/dist/{organize-OWT5QSJR.js → organize-HQLROEUF.js} +4 -4
- package/dist/{organize-BTA7NJD2.js → organize-T62CDRZC.js} +4 -4
- package/dist/pages/index.d.ts +17 -2
- package/dist/pages/index.js +69 -69
- package/dist/{payment-details-K2XFATEL.js → payment-details-O4EWCOYQ.js} +42 -30
- package/dist/{payouts-K5IDTJV3.js → payouts-7O5W2X5J.js} +8 -8
- package/dist/{price-lists-DNPIPDAW.js → price-lists-5CSCTVWN.js} +9 -9
- package/dist/{pricing-5VUPPNKS.js → pricing-CF3FJP6A.js} +5 -5
- package/dist/{pricing-J5FIDZIY.js → pricing-NHI4NSLA.js} +25 -25
- package/dist/{product-tags-SJYIGXEV.js → product-tags-2TLA7BVO.js} +38 -38
- package/dist/{product-types-4PTJW5DE.js → product-types-LZAMCLGS.js} +7 -7
- package/dist/{product-variant-detail-FO6J3RFA.js → product-variant-detail-UNG6LWDP.js} +27 -26
- package/dist/{product-variant-edit-55TAIBZO.js → product-variant-edit-K5U3JZFW.js} +25 -25
- package/dist/{products-XM57LXJK.js → products-27ASSSVK.js} +43 -42
- package/dist/{products-EQMANSO6.js → products-WJJBC3NI.js} +30 -30
- package/dist/{professional-details-WWZPTXSX.js → professional-details-ZCRAWCXZ.js} +41 -29
- package/dist/{profile-5IADQ727.js → profile-T2QLFLI7.js} +77 -38
- package/dist/{promotions-BYW6TZ5B.js → promotions-E4Z6APSX.js} +9 -9
- package/dist/{receive-MTXKKPKZ.js → receive-QCVCAR3R.js} +6 -6
- package/dist/{refund-3IXGYA7W.js → refund-GAOWE636.js} +74 -50
- package/dist/{register-U5PQZATC.js → register-IKY5DDUR.js} +28 -27
- package/dist/{reset-password-SKUJJLSV.js → reset-password-RMKCQLBX.js} +3 -3
- package/dist/{return-reasons-QDPSIJG3.js → return-reasons-RH6IEU2M.js} +20 -17
- package/dist/{sales-channels-GBSTCWVP.js → sales-channels-C5M2ZA5L.js} +6 -5
- package/dist/{sales-channels-N4NE3FXP.js → sales-channels-ZHYGTRWU.js} +7 -6
- package/dist/{settings-ZUBBFS67.js → settings-5IUDEPUN.js} +42 -42
- package/dist/{shipment-TKSCPC3M.js → shipment-UP2OGESO.js} +23 -23
- package/dist/{shipping-DODEUYOQ.js → shipping-ACK5UOA5.js} +4 -4
- package/dist/{shipping-profile-O4JMJLN7.js → shipping-profile-3US7LC5E.js} +2 -2
- package/dist/shipping-profiles-34432J3C.js +46 -0
- package/dist/{stock-GYK2GHJN.js → stock-VMND7PJY.js} +23 -23
- package/dist/{store-XWOALZ5Q.js → store-BCNSSIO6.js} +130 -60
- package/dist/{store-closure-46B3XZ2I.js → store-closure-QGR3F45Y.js} +23 -23
- package/dist/{store-select-E77E3ZY7.js → store-select-55ZOJGGV.js} +47 -27
- package/dist/{tax-regions-S2LFRTMP.js → tax-regions-RTPVM4IC.js} +11 -8
- package/dist/{team-N2C5JPSU.js → team-DAUWBJAI.js} +32 -31
- package/package.json +21 -16
- package/dist/breadcrumb-ILEAQRW7.js +0 -33
- package/dist/breadcrumb-NZYOCEEM.js +0 -47
- package/dist/breadcrumb-VY5DNTTJ.js +0 -46
- package/dist/chunk-HXGLPDZW.js +0 -34
- package/dist/chunk-KVKO6N4G.js +0 -13
- package/dist/login-YUWOWICV.js +0 -39
- package/dist/offers-OTZJBW43.js +0 -54
- package/dist/orders-PJSJNGZS.js +0 -63
- package/dist/shipping-profiles-4TJ4IH6U.js +0 -46
- /package/dist/{chunk-HFRHHT36.js → chunk-NWU7EGGF.js} +0 -0
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
stockLocationsQueryKeys,
|
|
18
18
|
useDeleteStockLocation,
|
|
19
19
|
useStockLocations
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-O72AIZUN.js";
|
|
21
21
|
import {
|
|
22
22
|
queryClient
|
|
23
23
|
} from "./chunk-RHKRREUU.js";
|
|
24
24
|
import {
|
|
25
25
|
fetchQuery
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DTGEFKK4.js";
|
|
27
27
|
|
|
28
28
|
// src/pages/settings/locations/constants.ts
|
|
29
29
|
var LOCATION_LIST_FIELDS = "name,*sales_channels,*address,*fulfillment_sets,*fulfillment_sets.service_zones,*fulfillment_sets.service_zones.shipping_options,*fulfillment_sets.service_zones.shipping_options.shipping_profile";
|
|
@@ -51,6 +51,7 @@ import { Container as Container3, Heading as Heading2 } from "@medusajs/ui";
|
|
|
51
51
|
import { Children } from "react";
|
|
52
52
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
53
53
|
import { useLoaderData } from "react-router-dom";
|
|
54
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
54
55
|
|
|
55
56
|
// src/pages/settings/locations/_components/location-list-item.tsx
|
|
56
57
|
import { Buildings, PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -226,10 +227,10 @@ var Root = ({ children }) => {
|
|
|
226
227
|
throw error;
|
|
227
228
|
}
|
|
228
229
|
return /* @__PURE__ */ jsx3(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(TwoColumnPage, { children: [
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ jsx3(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "locations.list", children: [
|
|
230
231
|
/* @__PURE__ */ jsx3(LocationListHeader, {}),
|
|
231
232
|
/* @__PURE__ */ jsx3("div", { className: "flex flex-col gap-3 lg:col-span-2", children: stockLocations.map((location) => /* @__PURE__ */ jsx3(location_list_item_default, { location }, location.id)) })
|
|
232
|
-
] }),
|
|
233
|
+
] }) }),
|
|
233
234
|
/* @__PURE__ */ jsx3(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx3(LinksSection, {}) })
|
|
234
235
|
] }) });
|
|
235
236
|
};
|
|
@@ -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-RLRWDHME.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTypes
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L2NJPDUD.js";
|
|
10
10
|
import {
|
|
11
11
|
useCollections
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XKEYHWBS.js";
|
|
13
13
|
import {
|
|
14
14
|
useProductCategories
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-656G74I2.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
18
|
} from "./chunk-NBMM2TZK.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
fetchQuery,
|
|
9
9
|
sdk
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DTGEFKK4.js";
|
|
11
11
|
|
|
12
12
|
// src/hooks/api/promotions.tsx
|
|
13
13
|
import {
|
|
@@ -24,7 +24,7 @@ var REGIONS_QUERY_KEY = "campaigns";
|
|
|
24
24
|
var campaignsQueryKeys = queryKeysFactory(REGIONS_QUERY_KEY);
|
|
25
25
|
var useCampaign = (id, query, options) => {
|
|
26
26
|
const { data, ...rest } = useQuery({
|
|
27
|
-
queryKey: campaignsQueryKeys.detail(id),
|
|
27
|
+
queryKey: campaignsQueryKeys.detail(id, query),
|
|
28
28
|
queryFn: async () => sdk.vendor.campaigns.$id.query({ $id: id, ...query }),
|
|
29
29
|
...options
|
|
30
30
|
});
|
|
@@ -108,10 +108,10 @@ var promotionsQueryKeys = {
|
|
|
108
108
|
],
|
|
109
109
|
listRuleValues: (ruleType, ruleValue, query) => [PROMOTIONS_QUERY_KEY, ruleType, ruleValue, query]
|
|
110
110
|
};
|
|
111
|
-
var usePromotion = (id, options) => {
|
|
111
|
+
var usePromotion = (id, query, options) => {
|
|
112
112
|
const { data, ...rest } = useQuery2({
|
|
113
|
-
queryKey: promotionsQueryKeys.detail(id),
|
|
114
|
-
queryFn: async () => sdk.vendor.promotions.$id.query({ $id: id }),
|
|
113
|
+
queryKey: promotionsQueryKeys.detail(id, query),
|
|
114
|
+
queryFn: async () => sdk.vendor.promotions.$id.query({ $id: id, ...query }),
|
|
115
115
|
...options
|
|
116
116
|
});
|
|
117
117
|
return { ...data, ...rest };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlaceholderCell
|
|
3
3
|
} from "./chunk-PHOCVOZ5.js";
|
|
4
|
-
import {
|
|
5
|
-
_DataTable,
|
|
6
|
-
useDataTable
|
|
7
|
-
} from "./chunk-W3UHAQCV.js";
|
|
8
4
|
import {
|
|
9
5
|
SingleColumnPage
|
|
10
6
|
} from "./chunk-YV6MK4PZ.js";
|
|
7
|
+
import {
|
|
8
|
+
_DataTable,
|
|
9
|
+
useDataTable
|
|
10
|
+
} from "./chunk-7TQNE3E2.js";
|
|
11
11
|
import {
|
|
12
12
|
useQueryParams
|
|
13
13
|
} from "./chunk-THHRRYRS.js";
|
|
@@ -16,14 +16,15 @@ import {
|
|
|
16
16
|
} from "./chunk-BDGZ4EQO.js";
|
|
17
17
|
import {
|
|
18
18
|
useStockLocations
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-O72AIZUN.js";
|
|
20
20
|
import {
|
|
21
21
|
useDeleteInventoryItem,
|
|
22
22
|
useInventoryItems
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YAUGB4LD.js";
|
|
24
24
|
|
|
25
25
|
// src/pages/inventory/inventory-list-page.tsx
|
|
26
26
|
import { Children as Children2 } from "react";
|
|
27
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
27
28
|
|
|
28
29
|
// src/pages/inventory/_components/inventory-list-table.tsx
|
|
29
30
|
import { Children } from "react";
|
|
@@ -51,7 +52,8 @@ var InventoryListCreateButton = () => {
|
|
|
51
52
|
};
|
|
52
53
|
|
|
53
54
|
// src/pages/inventory/_components/inventory-list-data-table.tsx
|
|
54
|
-
import {
|
|
55
|
+
import { useExtendableTable, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
56
|
+
import { useMemo as useMemo2, useState } from "react";
|
|
55
57
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
56
58
|
import { useNavigate } from "react-router-dom";
|
|
57
59
|
|
|
@@ -348,14 +350,23 @@ var InventoryListDataTable = () => {
|
|
|
348
350
|
error
|
|
349
351
|
} = useInventoryItems(
|
|
350
352
|
{
|
|
351
|
-
...searchParams
|
|
353
|
+
...searchParams,
|
|
354
|
+
...useLinkQuery("inventory_item")
|
|
352
355
|
},
|
|
353
356
|
{
|
|
354
357
|
placeholderData: keepPreviousData
|
|
355
358
|
}
|
|
356
359
|
);
|
|
357
|
-
const
|
|
358
|
-
const
|
|
360
|
+
const baseFilters = useInventoryTableFilters();
|
|
361
|
+
const baseColumns = useInventoryTableColumns();
|
|
362
|
+
const { columns, filters: extFilters } = useExtendableTable({
|
|
363
|
+
model: "inventory_item",
|
|
364
|
+
columns: baseColumns
|
|
365
|
+
});
|
|
366
|
+
const filters = useMemo2(
|
|
367
|
+
() => [...baseFilters, ...extFilters],
|
|
368
|
+
[baseFilters, extFilters]
|
|
369
|
+
);
|
|
359
370
|
const { table } = useDataTable({
|
|
360
371
|
data: inventory_items ?? [],
|
|
361
372
|
columns,
|
|
@@ -423,7 +434,7 @@ var InventoryListTable = ({ children }) => {
|
|
|
423
434
|
// src/pages/inventory/inventory-list-page.tsx
|
|
424
435
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
425
436
|
var Root = ({ children }) => {
|
|
426
|
-
return /* @__PURE__ */ jsx6(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx6(InventoryListTable, {}) });
|
|
437
|
+
return /* @__PURE__ */ jsx6(SingleColumnPage, { children: /* @__PURE__ */ jsx6(WidgetZone, { id: "inventory.list", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx6(InventoryListTable, {}) }) });
|
|
427
438
|
};
|
|
428
439
|
var InventoryListPage = Object.assign(Root, {
|
|
429
440
|
Table: InventoryListTable,
|
|
@@ -7,19 +7,20 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
useProductTagTableFilters
|
|
9
9
|
} from "./chunk-HHD2VUED.js";
|
|
10
|
-
import {
|
|
11
|
-
_DataTable,
|
|
12
|
-
useDataTable
|
|
13
|
-
} from "./chunk-W3UHAQCV.js";
|
|
14
10
|
import {
|
|
15
11
|
SingleColumnPage
|
|
16
12
|
} from "./chunk-YV6MK4PZ.js";
|
|
13
|
+
import {
|
|
14
|
+
_DataTable,
|
|
15
|
+
useDataTable
|
|
16
|
+
} from "./chunk-7TQNE3E2.js";
|
|
17
17
|
import {
|
|
18
18
|
useProductTags
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RLRWDHME.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/settings/product-tags/product-tag-list-page.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
23
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
23
24
|
|
|
24
25
|
// src/pages/settings/product-tags/_components/product-tag-list-table.tsx
|
|
25
26
|
import { Children as Children2 } from "react";
|
|
@@ -123,7 +124,7 @@ var ProductTagListTable = ({
|
|
|
123
124
|
// src/pages/settings/product-tags/product-tag-list-page.tsx
|
|
124
125
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
125
126
|
var Root = ({ children }) => {
|
|
126
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { showMetadata: false, showJSON: false, hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(ProductTagListTable, {}) });
|
|
127
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { showMetadata: false, showJSON: false, hasOutlet: true, children: /* @__PURE__ */ jsx4(WidgetZone, { id: "product-tags.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(ProductTagListTable, {}) }) });
|
|
127
128
|
};
|
|
128
129
|
var ProductTagListPage = Object.assign(Root, {
|
|
129
130
|
Table: ProductTagListTable,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ordersQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DIAWPVYS.js";
|
|
4
4
|
import {
|
|
5
5
|
queryClient
|
|
6
6
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-ZA2KFUFR.js";
|
|
10
10
|
import {
|
|
11
11
|
sdk
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DTGEFKK4.js";
|
|
13
13
|
|
|
14
14
|
// src/hooks/api/returns.tsx
|
|
15
15
|
import {
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
categoriesQueryKeys,
|
|
6
6
|
useProductCategories
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-656G74I2.js";
|
|
8
8
|
import {
|
|
9
9
|
queryClient
|
|
10
10
|
} from "./chunk-RHKRREUU.js";
|
|
11
11
|
import {
|
|
12
12
|
fetchQuery
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DTGEFKK4.js";
|
|
14
14
|
|
|
15
15
|
// src/pages/categories/[id]/organize/organize-category-form/organize-category-form.tsx
|
|
16
16
|
import { useMutation } from "@tanstack/react-query";
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePayoutTableColumns
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y6S7K3YB.js";
|
|
4
4
|
import {
|
|
5
5
|
usePayoutTableQuery
|
|
6
6
|
} from "./chunk-N3T24SEK.js";
|
|
7
7
|
import {
|
|
8
8
|
usePayoutTableFilters
|
|
9
9
|
} from "./chunk-UAE6XBYL.js";
|
|
10
|
-
import {
|
|
11
|
-
_DataTable,
|
|
12
|
-
useDataTable
|
|
13
|
-
} from "./chunk-W3UHAQCV.js";
|
|
14
10
|
import {
|
|
15
11
|
SingleColumnPage
|
|
16
12
|
} from "./chunk-YV6MK4PZ.js";
|
|
13
|
+
import {
|
|
14
|
+
_DataTable,
|
|
15
|
+
useDataTable
|
|
16
|
+
} from "./chunk-7TQNE3E2.js";
|
|
17
17
|
import {
|
|
18
18
|
usePayouts
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-J2XUEO2E.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/payouts/payout-list-page.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
23
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
23
24
|
|
|
24
25
|
// src/pages/payouts/_components/payout-list-table/payout-list-table.tsx
|
|
25
26
|
import { Children as Children2 } from "react";
|
|
@@ -46,8 +47,10 @@ var PayoutListHeader = ({
|
|
|
46
47
|
};
|
|
47
48
|
|
|
48
49
|
// src/pages/payouts/_components/payout-list-table/payout-list-data-table.tsx
|
|
50
|
+
import { useMemo } from "react";
|
|
49
51
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
50
52
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
53
|
+
import { useExtendableTable } from "@mercurjs/dashboard-shared";
|
|
51
54
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
52
55
|
var PAGE_SIZE = 10;
|
|
53
56
|
var PayoutListDataTable = () => {
|
|
@@ -61,8 +64,16 @@ var PayoutListDataTable = () => {
|
|
|
61
64
|
initialData: keepPreviousData
|
|
62
65
|
}
|
|
63
66
|
);
|
|
64
|
-
const
|
|
65
|
-
const filters =
|
|
67
|
+
const base = usePayoutTableColumns();
|
|
68
|
+
const { columns, filters: extFilters } = useExtendableTable({
|
|
69
|
+
model: "payout",
|
|
70
|
+
columns: base
|
|
71
|
+
});
|
|
72
|
+
const baseFilters = usePayoutTableFilters();
|
|
73
|
+
const filters = useMemo(
|
|
74
|
+
() => [...baseFilters, ...extFilters],
|
|
75
|
+
[baseFilters, extFilters]
|
|
76
|
+
);
|
|
66
77
|
const { table } = useDataTable({
|
|
67
78
|
data: payouts ?? [],
|
|
68
79
|
columns,
|
|
@@ -114,7 +125,7 @@ var PayoutListTable = ({ children }) => {
|
|
|
114
125
|
// src/pages/payouts/payout-list-page.tsx
|
|
115
126
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
116
127
|
var Root = ({ children }) => {
|
|
117
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(PayoutListTable, {}) });
|
|
128
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: /* @__PURE__ */ jsx4(WidgetZone, { id: "payouts.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(PayoutListTable, {}) }) });
|
|
118
129
|
};
|
|
119
130
|
var PayoutListPage = Object.assign(Root, {
|
|
120
131
|
Table: PayoutListTable,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateCampaignFormFields
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SFQOECF7.js";
|
|
4
4
|
import {
|
|
5
5
|
VisuallyHidden
|
|
6
6
|
} from "./chunk-54TMLQH3.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-GDWBOQI5.js";
|
|
14
14
|
import {
|
|
15
15
|
useCreateCampaign
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MR6REQKT.js";
|
|
17
17
|
|
|
18
18
|
// src/pages/campaigns/create/create-campaign-form/create-campaign-form.tsx
|
|
19
19
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
customerGroupsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-II3CLUXA.js";
|
|
4
4
|
import {
|
|
5
5
|
productsQueryKeys
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YAUGB4LD.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-DTGEFKK4.js";
|
|
16
16
|
|
|
17
17
|
// src/hooks/api/price-lists.tsx
|
|
18
18
|
import {
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-BDGZ4EQO.js";
|
|
14
14
|
import {
|
|
15
15
|
useDeleteTaxRate
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FV76G2D7.js";
|
|
17
17
|
import {
|
|
18
18
|
useDeleteTaxRegion
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GHDLST2P.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/settings/tax-regions/_common/components/tax-region-card.tsx
|
|
22
22
|
import { Heading, Text, Tooltip, clx } from "@medusajs/ui";
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import {
|
|
2
|
+
languages
|
|
3
|
+
} from "./chunk-QHQWEERJ.js";
|
|
4
|
+
import {
|
|
5
|
+
useDocumentDirection
|
|
6
|
+
} from "./chunk-Y7QKP6QU.js";
|
|
7
|
+
import {
|
|
8
|
+
assetUrl
|
|
9
|
+
} from "./chunk-DTGEFKK4.js";
|
|
10
|
+
|
|
11
|
+
// src/components/layout/auth-layout/auth-language-select.tsx
|
|
12
|
+
import { GlobeEurope } from "@medusajs/icons";
|
|
13
|
+
import { DropdownMenu } from "@medusajs/ui";
|
|
14
|
+
import { useTranslation } from "react-i18next";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
var AuthLanguageSelect = () => {
|
|
17
|
+
const { t, i18n } = useTranslation();
|
|
18
|
+
const direction = useDocumentDirection();
|
|
19
|
+
const sortedLanguages = [...languages].sort(
|
|
20
|
+
(a, b) => a.display_name.localeCompare(b.display_name)
|
|
21
|
+
);
|
|
22
|
+
const currentLanguage = sortedLanguages.find(
|
|
23
|
+
(language) => language.code === i18n.language
|
|
24
|
+
);
|
|
25
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { dir: direction, children: [
|
|
26
|
+
/* @__PURE__ */ jsxs(
|
|
27
|
+
DropdownMenu.Trigger,
|
|
28
|
+
{
|
|
29
|
+
className: "text-ui-fg-subtle hover:bg-ui-bg-subtle-hover focus-visible:shadow-borders-focus flex items-center gap-x-2 rounded-md px-2 py-1 outline-none transition-fg",
|
|
30
|
+
"data-testid": "auth-language-select-trigger",
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsx(GlobeEurope, {}),
|
|
33
|
+
/* @__PURE__ */ jsx("span", { className: "txt-compact-small", children: currentLanguage?.display_name ?? t("profile.fields.languageLabel") })
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ jsx(
|
|
38
|
+
DropdownMenu.Content,
|
|
39
|
+
{
|
|
40
|
+
align: "end",
|
|
41
|
+
className: "max-h-[300px] overflow-y-auto",
|
|
42
|
+
children: /* @__PURE__ */ jsx(DropdownMenu.RadioGroup, { value: i18n.language, children: sortedLanguages.map((language) => /* @__PURE__ */ jsx(
|
|
43
|
+
DropdownMenu.RadioItem,
|
|
44
|
+
{
|
|
45
|
+
value: language.code,
|
|
46
|
+
onClick: (e) => {
|
|
47
|
+
e.preventDefault();
|
|
48
|
+
i18n.changeLanguage(language.code);
|
|
49
|
+
},
|
|
50
|
+
"data-testid": `auth-language-select-option-${language.code}`,
|
|
51
|
+
children: language.display_name
|
|
52
|
+
},
|
|
53
|
+
language.code
|
|
54
|
+
)) })
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
] });
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// src/components/layout/auth-layout/auth-layout.tsx
|
|
61
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
62
|
+
var AuthLayout = ({ children }) => {
|
|
63
|
+
return /* @__PURE__ */ jsxs2("div", { className: "flex h-dvh w-dvw overflow-hidden", children: [
|
|
64
|
+
/* @__PURE__ */ jsxs2("div", { className: "bg-ui-bg-base border-ui-border-base flex h-full w-full flex-col overflow-y-auto border-r lg:w-[584px] lg:shrink-0", children: [
|
|
65
|
+
/* @__PURE__ */ jsx2("div", { className: "flex justify-end px-8 pt-8 lg:px-14 lg:pt-12", children: /* @__PURE__ */ jsx2(AuthLanguageSelect, {}) }),
|
|
66
|
+
/* @__PURE__ */ jsx2("div", { className: "flex flex-1 flex-col px-8 pb-8 lg:px-14 lg:pb-12", children })
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ jsx2("div", { className: "relative hidden flex-1 overflow-hidden lg:flex", children: /* @__PURE__ */ jsx2(
|
|
69
|
+
"img",
|
|
70
|
+
{
|
|
71
|
+
src: assetUrl("/onboarding/illustration.svg"),
|
|
72
|
+
alt: "",
|
|
73
|
+
className: "h-full w-full object-cover"
|
|
74
|
+
}
|
|
75
|
+
) })
|
|
76
|
+
] });
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export {
|
|
80
|
+
AuthLayout
|
|
81
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ordersQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DIAWPVYS.js";
|
|
4
4
|
import {
|
|
5
5
|
queryClient
|
|
6
6
|
} from "./chunk-RHKRREUU.js";
|
|
7
7
|
import {
|
|
8
8
|
sdk
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DTGEFKK4.js";
|
|
10
10
|
|
|
11
11
|
// src/hooks/api/order-edits.tsx
|
|
12
12
|
import { useMutation } from "@tanstack/react-query";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
variantsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YAUGB4LD.js";
|
|
4
4
|
import {
|
|
5
5
|
queryClient
|
|
6
6
|
} from "./chunk-RHKRREUU.js";
|
|
7
7
|
import {
|
|
8
8
|
sdk
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DTGEFKK4.js";
|
|
10
10
|
|
|
11
11
|
// src/pages/product-variants/product-variant-detail/loader.ts
|
|
12
12
|
var VARIANT_DETAIL_FIELDS = "+options.id,+options.value,+options.option.id,+options.option.title,+thumbnail,+images.id,+images.url,+images.rank,+images.variants.id,+product.images.id,+product.images.url,+product.images.rank,+product.images.variants.id";
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePromotionTableColumns,
|
|
3
3
|
usePromotionTableQuery
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VR7P4DAZ.js";
|
|
5
5
|
import {
|
|
6
6
|
usePromotionTableFilters
|
|
7
7
|
} from "./chunk-S2WEYEQR.js";
|
|
8
|
-
import {
|
|
9
|
-
_DataTable,
|
|
10
|
-
useDataTable
|
|
11
|
-
} from "./chunk-W3UHAQCV.js";
|
|
12
8
|
import {
|
|
13
9
|
SingleColumnPage
|
|
14
10
|
} from "./chunk-YV6MK4PZ.js";
|
|
11
|
+
import {
|
|
12
|
+
_DataTable,
|
|
13
|
+
useDataTable
|
|
14
|
+
} from "./chunk-7TQNE3E2.js";
|
|
15
15
|
import {
|
|
16
16
|
ActionMenu
|
|
17
17
|
} from "./chunk-BDGZ4EQO.js";
|
|
18
18
|
import {
|
|
19
19
|
useDeletePromotion,
|
|
20
20
|
usePromotions
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MR6REQKT.js";
|
|
22
22
|
|
|
23
23
|
// src/pages/promotions/promotion-list-page.tsx
|
|
24
24
|
import { Children as Children3 } from "react";
|
|
25
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
25
26
|
|
|
26
27
|
// src/pages/promotions/_components/promotion-list-table/promotion-list-table.tsx
|
|
27
28
|
import { Children as Children2 } from "react";
|
|
@@ -59,6 +60,7 @@ var PromotionListHeader = ({
|
|
|
59
60
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
60
61
|
import { usePrompt } from "@medusajs/ui";
|
|
61
62
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
63
|
+
import { useExtendableTable, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
62
64
|
import { useMemo } from "react";
|
|
63
65
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
64
66
|
import { Outlet, useNavigate } from "react-router-dom";
|
|
@@ -69,6 +71,7 @@ var PromotionListDataTable = () => {
|
|
|
69
71
|
const { searchParams, raw } = usePromotionTableQuery({
|
|
70
72
|
pageSize: PAGE_SIZE
|
|
71
73
|
});
|
|
74
|
+
const linkQuery = useLinkQuery("promotion", "+status");
|
|
72
75
|
const {
|
|
73
76
|
promotions: data,
|
|
74
77
|
count,
|
|
@@ -76,12 +79,16 @@ var PromotionListDataTable = () => {
|
|
|
76
79
|
isError,
|
|
77
80
|
error
|
|
78
81
|
} = usePromotions({
|
|
79
|
-
|
|
82
|
+
...linkQuery,
|
|
80
83
|
...searchParams
|
|
81
84
|
});
|
|
82
85
|
const promotions = data?.filter((item) => item !== null);
|
|
83
|
-
const
|
|
84
|
-
const columns = useColumns();
|
|
86
|
+
const baseFilters = usePromotionTableFilters();
|
|
87
|
+
const { columns, filters: extFilters } = useColumns();
|
|
88
|
+
const filters = useMemo(
|
|
89
|
+
() => [...baseFilters, ...extFilters],
|
|
90
|
+
[baseFilters, extFilters]
|
|
91
|
+
);
|
|
85
92
|
const { table } = useDataTable({
|
|
86
93
|
data: promotions ?? [],
|
|
87
94
|
columns,
|
|
@@ -180,9 +187,13 @@ var PromotionActions = ({
|
|
|
180
187
|
var columnHelper = createColumnHelper();
|
|
181
188
|
var useColumns = () => {
|
|
182
189
|
const base = usePromotionTableColumns();
|
|
183
|
-
|
|
190
|
+
const { columns: extended, filters } = useExtendableTable({
|
|
191
|
+
model: "promotion",
|
|
192
|
+
columns: base
|
|
193
|
+
});
|
|
194
|
+
const columns = useMemo(
|
|
184
195
|
() => [
|
|
185
|
-
...
|
|
196
|
+
...extended,
|
|
186
197
|
columnHelper.display({
|
|
187
198
|
id: "actions",
|
|
188
199
|
cell: ({ row }) => {
|
|
@@ -190,8 +201,9 @@ var useColumns = () => {
|
|
|
190
201
|
}
|
|
191
202
|
})
|
|
192
203
|
],
|
|
193
|
-
[
|
|
204
|
+
[extended]
|
|
194
205
|
);
|
|
206
|
+
return { columns, filters };
|
|
195
207
|
};
|
|
196
208
|
|
|
197
209
|
// src/pages/promotions/_components/promotion-list-table/promotion-list-table.tsx
|
|
@@ -206,7 +218,7 @@ var PromotionListTable = ({ children }) => {
|
|
|
206
218
|
// src/pages/promotions/promotion-list-page.tsx
|
|
207
219
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
208
220
|
var Root = ({ children }) => {
|
|
209
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(PromotionListTable, {}) });
|
|
221
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: /* @__PURE__ */ jsx4(WidgetZone, { id: "promotions.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(PromotionListTable, {}) }) });
|
|
210
222
|
};
|
|
211
223
|
var PromotionListPage = Object.assign(Root, {
|
|
212
224
|
Table: PromotionListTable,
|