@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getStylizedAmount
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XCHKUSUU.js";
|
|
4
4
|
import "./chunk-IQPN4PZJ.js";
|
|
5
5
|
import {
|
|
6
6
|
SingleColumnPage
|
|
@@ -10,19 +10,28 @@ import {
|
|
|
10
10
|
} from "./chunk-INNFZYX2.js";
|
|
11
11
|
import {
|
|
12
12
|
usePayout
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-J2XUEO2E.js";
|
|
14
14
|
import "./chunk-ZA2KFUFR.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-DTGEFKK4.js";
|
|
16
16
|
import "./chunk-NBMM2TZK.js";
|
|
17
17
|
|
|
18
18
|
// src/pages/payouts/[id]/payout-detail-page.tsx
|
|
19
19
|
import { Children } from "react";
|
|
20
20
|
import { useParams } from "react-router-dom";
|
|
21
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
21
22
|
|
|
22
23
|
// src/pages/payouts/[id]/_components/payout-general-section.tsx
|
|
23
24
|
import { Container, Heading, StatusBadge, Text } from "@medusajs/ui";
|
|
25
|
+
import { DisplayExtensionZone, DisplayField } from "@mercurjs/dashboard-shared";
|
|
24
26
|
import { useTranslation } from "react-i18next";
|
|
25
27
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
28
|
+
var GENERAL_FIELD_IDS = [
|
|
29
|
+
"display_id",
|
|
30
|
+
"status",
|
|
31
|
+
"amount",
|
|
32
|
+
"created_at",
|
|
33
|
+
"updated_at"
|
|
34
|
+
];
|
|
26
35
|
var payoutStatusColor = (status) => {
|
|
27
36
|
switch (status) {
|
|
28
37
|
case "paid":
|
|
@@ -45,17 +54,17 @@ var PayoutGeneralSection = ({ payout }) => {
|
|
|
45
54
|
});
|
|
46
55
|
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
|
|
47
56
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
48
|
-
/* @__PURE__ */ jsxs(Heading, { children: [
|
|
57
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "payout", zone: "general", id: "display_id", data: payout, children: /* @__PURE__ */ jsxs(Heading, { children: [
|
|
49
58
|
"#",
|
|
50
59
|
payout.display_id
|
|
51
|
-
] }),
|
|
52
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ jsx(StatusBadge, { color: payoutStatusColor(payout.status), children: statusText }) })
|
|
60
|
+
] }) }),
|
|
61
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ jsx(DisplayField, { model: "payout", zone: "general", id: "status", data: payout, children: /* @__PURE__ */ jsx(StatusBadge, { color: payoutStatusColor(payout.status), children: statusText }) }) })
|
|
53
62
|
] }),
|
|
54
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
63
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "payout", zone: "general", id: "amount", data: payout, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
55
64
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.amount") }),
|
|
56
65
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: getStylizedAmount(payout.amount, payout.currency_code) })
|
|
57
|
-
] }),
|
|
58
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
66
|
+
] }) }),
|
|
67
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "payout", zone: "general", id: "created_at", data: payout, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
59
68
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.createdAt") }),
|
|
60
69
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: new Date(payout.created_at).toLocaleDateString(void 0, {
|
|
61
70
|
year: "numeric",
|
|
@@ -64,8 +73,8 @@ var PayoutGeneralSection = ({ payout }) => {
|
|
|
64
73
|
hour: "2-digit",
|
|
65
74
|
minute: "2-digit"
|
|
66
75
|
}) })
|
|
67
|
-
] }),
|
|
68
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
76
|
+
] }) }),
|
|
77
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "payout", zone: "general", id: "updated_at", data: payout, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
69
78
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.updatedAt") }),
|
|
70
79
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: new Date(payout.updated_at).toLocaleDateString(void 0, {
|
|
71
80
|
year: "numeric",
|
|
@@ -74,7 +83,16 @@ var PayoutGeneralSection = ({ payout }) => {
|
|
|
74
83
|
hour: "2-digit",
|
|
75
84
|
minute: "2-digit"
|
|
76
85
|
}) })
|
|
77
|
-
] })
|
|
86
|
+
] }) }),
|
|
87
|
+
/* @__PURE__ */ jsx(
|
|
88
|
+
DisplayExtensionZone,
|
|
89
|
+
{
|
|
90
|
+
model: "payout",
|
|
91
|
+
zone: "general",
|
|
92
|
+
data: payout,
|
|
93
|
+
builtInFieldIds: GENERAL_FIELD_IDS
|
|
94
|
+
}
|
|
95
|
+
)
|
|
78
96
|
] });
|
|
79
97
|
};
|
|
80
98
|
|
|
@@ -89,7 +107,7 @@ var Root = ({ children }) => {
|
|
|
89
107
|
if (isError) {
|
|
90
108
|
throw error;
|
|
91
109
|
}
|
|
92
|
-
return /* @__PURE__ */ jsx2(SingleColumnPage, { showMetadata: true, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(PayoutGeneralSection, { payout }) });
|
|
110
|
+
return /* @__PURE__ */ jsx2(SingleColumnPage, { showMetadata: true, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(WidgetZone, { id: "payouts.detail.main", data: payout, children: /* @__PURE__ */ jsx2(PayoutGeneralSection, { payout }) }) });
|
|
93
111
|
};
|
|
94
112
|
var PayoutDetailPage = Object.assign(Root, {
|
|
95
113
|
GeneralSection: PayoutGeneralSection
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
SectionRow
|
|
13
13
|
} from "./chunk-4TLP3TAA.js";
|
|
14
|
+
import {
|
|
15
|
+
TwoColumnPage
|
|
16
|
+
} from "./chunk-YV6MK4PZ.js";
|
|
14
17
|
import "./chunk-FQERBIVS.js";
|
|
15
18
|
import {
|
|
16
19
|
_DataTable,
|
|
17
20
|
useDataTable
|
|
18
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7TQNE3E2.js";
|
|
19
22
|
import "./chunk-YN3FGNJM.js";
|
|
20
23
|
import "./chunk-KCHYLLVG.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
TwoColumnPage
|
|
24
|
-
} from "./chunk-YV6MK4PZ.js";
|
|
24
|
+
import "./chunk-CVXKASWV.js";
|
|
25
25
|
import {
|
|
26
26
|
useQueryParams
|
|
27
27
|
} from "./chunk-THHRRYRS.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
useDeleteInventoryItemLevel,
|
|
44
44
|
useInventoryItem,
|
|
45
45
|
useInventoryItemLevels
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-YAUGB4LD.js";
|
|
47
47
|
import "./chunk-A5DJIOHN.js";
|
|
48
48
|
import {
|
|
49
49
|
queryClient
|
|
@@ -51,17 +51,21 @@ import {
|
|
|
51
51
|
import "./chunk-ZA2KFUFR.js";
|
|
52
52
|
import {
|
|
53
53
|
fetchQuery
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-DTGEFKK4.js";
|
|
55
55
|
import "./chunk-NBMM2TZK.js";
|
|
56
56
|
|
|
57
57
|
// src/pages/inventory/[id]/loader.tsx
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
58
|
+
import { getLinkQuery } from "@mercurjs/dashboard-shared";
|
|
59
|
+
var inventoryDetailQuery = (id) => {
|
|
60
|
+
const query = getLinkQuery("inventory_item", INVENTORY_DETAIL_FIELDS);
|
|
61
|
+
return {
|
|
62
|
+
queryKey: inventoryItemsQueryKeys.detail(id, query),
|
|
63
|
+
queryFn: async () => fetchQuery(
|
|
64
|
+
`/vendor/inventory-items/${id}?fields=${query.fields}`,
|
|
65
|
+
{ method: "GET" }
|
|
66
|
+
)
|
|
67
|
+
};
|
|
68
|
+
};
|
|
65
69
|
var loader = async ({ params }) => {
|
|
66
70
|
const id = params.id;
|
|
67
71
|
const query = inventoryDetailQuery(id);
|
|
@@ -71,9 +75,11 @@ var loader = async ({ params }) => {
|
|
|
71
75
|
// src/pages/inventory/[id]/inventory-detail-page.tsx
|
|
72
76
|
import { Children } from "react";
|
|
73
77
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
78
|
+
import { useLinkQuery, WidgetZone } from "@mercurjs/dashboard-shared";
|
|
74
79
|
|
|
75
80
|
// src/pages/inventory/[id]/_components/inventory-item-attributes/attributes-section.tsx
|
|
76
81
|
import { Container, Heading } from "@medusajs/ui";
|
|
82
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
77
83
|
import { PencilSquare } from "@medusajs/icons";
|
|
78
84
|
import { useTranslation } from "react-i18next";
|
|
79
85
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -113,6 +119,14 @@ var InventoryItemAttributeSection = ({
|
|
|
113
119
|
title: t("fields.countryOfOrigin"),
|
|
114
120
|
value: getFormattedCountry(inventoryItem.origin_country)
|
|
115
121
|
}
|
|
122
|
+
),
|
|
123
|
+
/* @__PURE__ */ jsx(
|
|
124
|
+
DisplayExtensionZone,
|
|
125
|
+
{
|
|
126
|
+
model: "inventory_item",
|
|
127
|
+
zone: "attributes",
|
|
128
|
+
data: inventoryItem
|
|
129
|
+
}
|
|
116
130
|
)
|
|
117
131
|
] });
|
|
118
132
|
};
|
|
@@ -121,7 +135,9 @@ var InventoryItemAttributeSection = ({
|
|
|
121
135
|
import { Container as Container2, Heading as Heading2 } from "@medusajs/ui";
|
|
122
136
|
import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
|
|
123
137
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
138
|
+
import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
|
|
124
139
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
140
|
+
var GENERAL_FIELD_IDS = ["title", "sku", "in_stock", "reserved", "available"];
|
|
125
141
|
var InventoryItemGeneralSection = ({
|
|
126
142
|
inventoryItem
|
|
127
143
|
}) => {
|
|
@@ -137,11 +153,20 @@ var InventoryItemGeneralSection = ({
|
|
|
137
153
|
const availableQuantity = stockedQuantity - reservedQuantity;
|
|
138
154
|
return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", children: [
|
|
139
155
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
156
|
+
/* @__PURE__ */ jsx2(
|
|
157
|
+
DisplayField,
|
|
158
|
+
{
|
|
159
|
+
model: "inventory_item",
|
|
160
|
+
zone: "general",
|
|
161
|
+
id: "title",
|
|
162
|
+
data: inventoryItem,
|
|
163
|
+
children: /* @__PURE__ */ jsxs2(Heading2, { children: [
|
|
164
|
+
inventoryItem.title ?? inventoryItem.sku,
|
|
165
|
+
" ",
|
|
166
|
+
t("fields.details")
|
|
167
|
+
] })
|
|
168
|
+
}
|
|
169
|
+
),
|
|
145
170
|
/* @__PURE__ */ jsx2(
|
|
146
171
|
ActionMenu,
|
|
147
172
|
{
|
|
@@ -159,36 +184,81 @@ var InventoryItemGeneralSection = ({
|
|
|
159
184
|
}
|
|
160
185
|
)
|
|
161
186
|
] }),
|
|
162
|
-
/* @__PURE__ */ jsx2(SectionRow, { title: t("fields.sku"), value: inventoryItem.sku ?? "-" }),
|
|
163
187
|
/* @__PURE__ */ jsx2(
|
|
164
|
-
|
|
188
|
+
DisplayField,
|
|
189
|
+
{
|
|
190
|
+
model: "inventory_item",
|
|
191
|
+
zone: "general",
|
|
192
|
+
id: "sku",
|
|
193
|
+
data: inventoryItem,
|
|
194
|
+
children: /* @__PURE__ */ jsx2(SectionRow, { title: t("fields.sku"), value: inventoryItem.sku ?? "-" })
|
|
195
|
+
}
|
|
196
|
+
),
|
|
197
|
+
/* @__PURE__ */ jsx2(
|
|
198
|
+
DisplayField,
|
|
165
199
|
{
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
200
|
+
model: "inventory_item",
|
|
201
|
+
zone: "general",
|
|
202
|
+
id: "in_stock",
|
|
203
|
+
data: inventoryItem,
|
|
204
|
+
children: /* @__PURE__ */ jsx2(
|
|
205
|
+
SectionRow,
|
|
206
|
+
{
|
|
207
|
+
title: t("fields.inStock"),
|
|
208
|
+
value: getQuantityFormat(
|
|
209
|
+
stockedQuantity,
|
|
210
|
+
inventoryItem.location_levels?.length
|
|
211
|
+
)
|
|
212
|
+
}
|
|
170
213
|
)
|
|
171
214
|
}
|
|
172
215
|
),
|
|
173
216
|
/* @__PURE__ */ jsx2(
|
|
174
|
-
|
|
217
|
+
DisplayField,
|
|
175
218
|
{
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
219
|
+
model: "inventory_item",
|
|
220
|
+
zone: "general",
|
|
221
|
+
id: "reserved",
|
|
222
|
+
data: inventoryItem,
|
|
223
|
+
children: /* @__PURE__ */ jsx2(
|
|
224
|
+
SectionRow,
|
|
225
|
+
{
|
|
226
|
+
title: t("inventory.reserved"),
|
|
227
|
+
value: getQuantityFormat(
|
|
228
|
+
reservedQuantity,
|
|
229
|
+
inventoryItem.location_levels?.length
|
|
230
|
+
)
|
|
231
|
+
}
|
|
180
232
|
)
|
|
181
233
|
}
|
|
182
234
|
),
|
|
183
235
|
/* @__PURE__ */ jsx2(
|
|
184
|
-
|
|
236
|
+
DisplayField,
|
|
185
237
|
{
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
238
|
+
model: "inventory_item",
|
|
239
|
+
zone: "general",
|
|
240
|
+
id: "available",
|
|
241
|
+
data: inventoryItem,
|
|
242
|
+
children: /* @__PURE__ */ jsx2(
|
|
243
|
+
SectionRow,
|
|
244
|
+
{
|
|
245
|
+
title: t("inventory.available"),
|
|
246
|
+
value: getQuantityFormat(
|
|
247
|
+
availableQuantity,
|
|
248
|
+
inventoryItem.location_levels?.length
|
|
249
|
+
)
|
|
250
|
+
}
|
|
190
251
|
)
|
|
191
252
|
}
|
|
253
|
+
),
|
|
254
|
+
/* @__PURE__ */ jsx2(
|
|
255
|
+
DisplayExtensionZone2,
|
|
256
|
+
{
|
|
257
|
+
model: "inventory_item",
|
|
258
|
+
zone: "general",
|
|
259
|
+
data: inventoryItem,
|
|
260
|
+
builtInFieldIds: GENERAL_FIELD_IDS
|
|
261
|
+
}
|
|
192
262
|
)
|
|
193
263
|
] });
|
|
194
264
|
};
|
|
@@ -203,6 +273,7 @@ var getQuantityFormat = (quantity, locations) => {
|
|
|
203
273
|
import { Button, Container as Container3, Heading as Heading3 } from "@medusajs/ui";
|
|
204
274
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
205
275
|
import { Link } from "react-router-dom";
|
|
276
|
+
import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
|
|
206
277
|
|
|
207
278
|
// src/pages/inventory/[id]/_components/location-levels-table/use-location-list-table-columns.tsx
|
|
208
279
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
@@ -404,7 +475,15 @@ var InventoryItemLocationLevelsSection = ({
|
|
|
404
475
|
/* @__PURE__ */ jsx6(Heading3, { children: t("inventory.locationLevels") }),
|
|
405
476
|
/* @__PURE__ */ jsx6(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx6(Link, { to: "locations", children: t("inventory.manageLocations") }) })
|
|
406
477
|
] }),
|
|
407
|
-
/* @__PURE__ */ jsx6(ItemLocationListTable, { inventory_item_id: inventoryItem.id })
|
|
478
|
+
/* @__PURE__ */ jsx6(ItemLocationListTable, { inventory_item_id: inventoryItem.id }),
|
|
479
|
+
/* @__PURE__ */ jsx6(
|
|
480
|
+
DisplayExtensionZone3,
|
|
481
|
+
{
|
|
482
|
+
model: "inventory_item",
|
|
483
|
+
zone: "locations",
|
|
484
|
+
data: inventoryItem
|
|
485
|
+
}
|
|
486
|
+
)
|
|
408
487
|
] });
|
|
409
488
|
};
|
|
410
489
|
|
|
@@ -413,6 +492,7 @@ import { TriangleRightMini } from "@medusajs/icons";
|
|
|
413
492
|
import { Container as Container4, Heading as Heading4 } from "@medusajs/ui";
|
|
414
493
|
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
415
494
|
import { Link as Link2 } from "react-router-dom";
|
|
495
|
+
import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
|
|
416
496
|
import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
417
497
|
var InventoryItemVariantsSection = ({
|
|
418
498
|
variants
|
|
@@ -445,7 +525,15 @@ var InventoryItemVariantsSection = ({
|
|
|
445
525
|
},
|
|
446
526
|
variant.id
|
|
447
527
|
);
|
|
448
|
-
}) })
|
|
528
|
+
}) }),
|
|
529
|
+
/* @__PURE__ */ jsx7(
|
|
530
|
+
DisplayExtensionZone4,
|
|
531
|
+
{
|
|
532
|
+
model: "inventory_item",
|
|
533
|
+
zone: "variants",
|
|
534
|
+
data: variants
|
|
535
|
+
}
|
|
536
|
+
)
|
|
449
537
|
] });
|
|
450
538
|
};
|
|
451
539
|
|
|
@@ -456,7 +544,7 @@ var Root = ({ children }) => {
|
|
|
456
544
|
const initialData = useLoaderData();
|
|
457
545
|
const { inventory_item, isPending: isLoading } = useInventoryItem(
|
|
458
546
|
id,
|
|
459
|
-
|
|
547
|
+
useLinkQuery("inventory_item", INVENTORY_DETAIL_FIELDS),
|
|
460
548
|
{ initialData }
|
|
461
549
|
);
|
|
462
550
|
if (isLoading || !inventory_item) {
|
|
@@ -471,19 +559,29 @@ var Root = ({ children }) => {
|
|
|
471
559
|
);
|
|
472
560
|
}
|
|
473
561
|
return /* @__PURE__ */ jsx8(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs5(TwoColumnPage, { data: inventory_item, children: [
|
|
474
|
-
/* @__PURE__ */
|
|
562
|
+
/* @__PURE__ */ jsx8(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "inventory.detail.main", data: inventory_item, children: [
|
|
475
563
|
/* @__PURE__ */ jsx8(InventoryItemGeneralSection, { inventoryItem: inventory_item }),
|
|
476
|
-
/* @__PURE__ */ jsx8(
|
|
477
|
-
|
|
478
|
-
|
|
564
|
+
/* @__PURE__ */ jsx8(
|
|
565
|
+
InventoryItemLocationLevelsSection,
|
|
566
|
+
{
|
|
567
|
+
inventoryItem: inventory_item
|
|
568
|
+
}
|
|
569
|
+
)
|
|
570
|
+
] }) }),
|
|
571
|
+
/* @__PURE__ */ jsx8(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "inventory.detail.side", data: inventory_item, children: [
|
|
479
572
|
/* @__PURE__ */ jsx8(
|
|
480
573
|
InventoryItemVariantsSection,
|
|
481
574
|
{
|
|
482
575
|
variants: inventory_item.variants
|
|
483
576
|
}
|
|
484
577
|
),
|
|
485
|
-
/* @__PURE__ */ jsx8(
|
|
486
|
-
|
|
578
|
+
/* @__PURE__ */ jsx8(
|
|
579
|
+
InventoryItemAttributeSection,
|
|
580
|
+
{
|
|
581
|
+
inventoryItem: inventory_item
|
|
582
|
+
}
|
|
583
|
+
)
|
|
584
|
+
] }) })
|
|
487
585
|
] }) });
|
|
488
586
|
};
|
|
489
587
|
var InventoryDetailPage = Object.assign(Root, {
|
|
@@ -4,31 +4,31 @@ import {
|
|
|
4
4
|
} from "./chunk-42R54Z2X.js";
|
|
5
5
|
import {
|
|
6
6
|
useProductTableColumns
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-AAKR2CB4.js";
|
|
8
|
+
import "./chunk-G64YUZSL.js";
|
|
9
9
|
import {
|
|
10
10
|
useProductTableQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BEPAXQMU.js";
|
|
12
12
|
import "./chunk-FWPGOIFA.js";
|
|
13
13
|
import {
|
|
14
14
|
useProductTableFilters
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LFX6R456.js";
|
|
16
16
|
import "./chunk-DB6ANJBO.js";
|
|
17
17
|
import "./chunk-PHOCVOZ5.js";
|
|
18
|
+
import {
|
|
19
|
+
SingleColumnPage
|
|
20
|
+
} from "./chunk-YV6MK4PZ.js";
|
|
18
21
|
import "./chunk-FQERBIVS.js";
|
|
19
22
|
import {
|
|
20
23
|
_DataTable,
|
|
21
24
|
useDataTable
|
|
22
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-7TQNE3E2.js";
|
|
23
26
|
import "./chunk-YN3FGNJM.js";
|
|
24
27
|
import "./chunk-KCHYLLVG.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import {
|
|
27
|
-
SingleColumnPage
|
|
28
|
-
} from "./chunk-YV6MK4PZ.js";
|
|
28
|
+
import "./chunk-CVXKASWV.js";
|
|
29
29
|
import "./chunk-THHRRYRS.js";
|
|
30
30
|
import "./chunk-LRD242C7.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-52KJSIHS.js";
|
|
32
32
|
import "./chunk-WIYFXWRI.js";
|
|
33
33
|
import {
|
|
34
34
|
SingleColumnPageSkeleton
|
|
@@ -39,34 +39,34 @@ import {
|
|
|
39
39
|
import "./chunk-LAVHRER2.js";
|
|
40
40
|
import "./chunk-QHQWEERJ.js";
|
|
41
41
|
import "./chunk-Y7QKP6QU.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-RLRWDHME.js";
|
|
43
|
+
import "./chunk-K5324KIX.js";
|
|
44
|
+
import "./chunk-FV76G2D7.js";
|
|
45
|
+
import "./chunk-GHDLST2P.js";
|
|
46
|
+
import "./chunk-YVYYOBAE.js";
|
|
47
|
+
import "./chunk-L2NJPDUD.js";
|
|
48
|
+
import "./chunk-P7UBW2EI.js";
|
|
49
|
+
import "./chunk-MR6REQKT.js";
|
|
50
|
+
import "./chunk-EPSDO2MJ.js";
|
|
51
|
+
import "./chunk-BHEU34FL.js";
|
|
52
|
+
import "./chunk-W34KDYZA.js";
|
|
53
|
+
import "./chunk-II3CLUXA.js";
|
|
54
54
|
import {
|
|
55
55
|
collectionsQueryKeys,
|
|
56
56
|
useCollection,
|
|
57
57
|
useUpdateCollectionProducts
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-XKEYHWBS.js";
|
|
59
|
+
import "./chunk-J2XUEO2E.js";
|
|
60
|
+
import "./chunk-656G74I2.js";
|
|
61
|
+
import "./chunk-VWPNMEOE.js";
|
|
62
|
+
import "./chunk-O72AIZUN.js";
|
|
63
|
+
import "./chunk-VUWAOX7H.js";
|
|
64
|
+
import "./chunk-5DKUSZQ7.js";
|
|
65
|
+
import "./chunk-DIAWPVYS.js";
|
|
66
|
+
import "./chunk-4U2BLH45.js";
|
|
67
67
|
import {
|
|
68
68
|
useProducts
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-YAUGB4LD.js";
|
|
70
70
|
import "./chunk-A5DJIOHN.js";
|
|
71
71
|
import {
|
|
72
72
|
queryClient
|
|
@@ -74,14 +74,18 @@ import {
|
|
|
74
74
|
import "./chunk-ZA2KFUFR.js";
|
|
75
75
|
import {
|
|
76
76
|
sdk
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-DTGEFKK4.js";
|
|
78
78
|
import "./chunk-NBMM2TZK.js";
|
|
79
79
|
|
|
80
80
|
// src/pages/collections/[id]/loader.tsx
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
import { getLinkQuery } from "@mercurjs/dashboard-shared";
|
|
82
|
+
var collectionDetailQuery = (id) => {
|
|
83
|
+
const query = getLinkQuery("collection");
|
|
84
|
+
return {
|
|
85
|
+
queryKey: collectionsQueryKeys.detail(id, query),
|
|
86
|
+
queryFn: async () => sdk.vendor.collections.$id.query({ $id: id, ...query })
|
|
87
|
+
};
|
|
88
|
+
};
|
|
85
89
|
var loader = async ({ params }) => {
|
|
86
90
|
const id = params.id;
|
|
87
91
|
const query = collectionDetailQuery(id);
|
|
@@ -91,30 +95,43 @@ var loader = async ({ params }) => {
|
|
|
91
95
|
// src/pages/collections/[id]/collection-detail-page.tsx
|
|
92
96
|
import { Children } from "react";
|
|
93
97
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
98
|
+
import { WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
94
99
|
|
|
95
100
|
// src/pages/collections/[id]/_components/collection-general-section/collection-general-section.tsx
|
|
96
101
|
import { Container, Heading, Text } from "@medusajs/ui";
|
|
97
102
|
import { useTranslation } from "react-i18next";
|
|
103
|
+
import { DisplayExtensionZone, DisplayField } from "@mercurjs/dashboard-shared";
|
|
98
104
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
105
|
+
var GENERAL_FIELD_IDS = ["title", "handle"];
|
|
99
106
|
var CollectionGeneralSection = ({
|
|
100
107
|
collection
|
|
101
108
|
}) => {
|
|
102
109
|
const { t } = useTranslation();
|
|
103
110
|
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
|
|
104
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx(Heading, { children: collection.title }) }),
|
|
105
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
111
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "collection", zone: "general", id: "title", data: collection, children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx(Heading, { children: collection.title }) }) }),
|
|
112
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "collection", zone: "general", id: "handle", data: collection, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
106
113
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
|
|
107
114
|
/* @__PURE__ */ jsxs(Text, { size: "small", children: [
|
|
108
115
|
"/",
|
|
109
116
|
collection.handle
|
|
110
117
|
] })
|
|
111
|
-
] })
|
|
118
|
+
] }) }),
|
|
119
|
+
/* @__PURE__ */ jsx(
|
|
120
|
+
DisplayExtensionZone,
|
|
121
|
+
{
|
|
122
|
+
model: "collection",
|
|
123
|
+
zone: "general",
|
|
124
|
+
data: collection,
|
|
125
|
+
builtInFieldIds: GENERAL_FIELD_IDS
|
|
126
|
+
}
|
|
127
|
+
)
|
|
112
128
|
] });
|
|
113
129
|
};
|
|
114
130
|
|
|
115
131
|
// src/pages/collections/[id]/_components/collection-icon-section/collection-icon-section.tsx
|
|
116
132
|
import { Container as Container2, Heading as Heading2, Text as Text2 } from "@medusajs/ui";
|
|
117
133
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
134
|
+
import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
|
|
118
135
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
119
136
|
var CollectionIconSection = ({
|
|
120
137
|
collection
|
|
@@ -143,13 +160,14 @@ var CollectionIconSection = ({
|
|
|
143
160
|
}
|
|
144
161
|
),
|
|
145
162
|
/* @__PURE__ */ jsx2(Text2, { size: "small", className: "text-ui-fg-muted", children: t("collections.icon.empty.description") })
|
|
146
|
-
] }) })
|
|
163
|
+
] }) }),
|
|
164
|
+
/* @__PURE__ */ jsx2(DisplayExtensionZone2, { model: "collection", zone: "icon", data: collection })
|
|
147
165
|
] });
|
|
148
166
|
};
|
|
149
167
|
|
|
150
168
|
// src/pages/collections/[id]/_components/collection-media-section/collection-media-section.tsx
|
|
151
169
|
import { ThumbnailBadge } from "@medusajs/icons";
|
|
152
|
-
import { ListBadge } from "@mercurjs/dashboard-shared";
|
|
170
|
+
import { DisplayExtensionZone as DisplayExtensionZone3, ListBadge } from "@mercurjs/dashboard-shared";
|
|
153
171
|
import { Container as Container3, Heading as Heading3, Text as Text3, Tooltip } from "@medusajs/ui";
|
|
154
172
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
155
173
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -193,7 +211,8 @@ var CollectionMediaSection = ({
|
|
|
193
211
|
}
|
|
194
212
|
),
|
|
195
213
|
/* @__PURE__ */ jsx3(Text3, { size: "small", className: "text-ui-fg-muted", children: t("collections.media.empty.description") })
|
|
196
|
-
] }) })
|
|
214
|
+
] }) }),
|
|
215
|
+
/* @__PURE__ */ jsx3(DisplayExtensionZone3, { model: "collection", zone: "media", data: collection })
|
|
197
216
|
] });
|
|
198
217
|
};
|
|
199
218
|
|
|
@@ -203,6 +222,7 @@ import { Checkbox, Container as Container4, Heading as Heading4, toast, usePromp
|
|
|
203
222
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
204
223
|
import { useMemo } from "react";
|
|
205
224
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
225
|
+
import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
|
|
206
226
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
207
227
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
208
228
|
var PAGE_SIZE = 10;
|
|
@@ -307,7 +327,8 @@ var CollectionProductSection = ({
|
|
|
307
327
|
message: t("collections.products.list.noRecordsMessage")
|
|
308
328
|
}
|
|
309
329
|
}
|
|
310
|
-
)
|
|
330
|
+
),
|
|
331
|
+
/* @__PURE__ */ jsx4(DisplayExtensionZone4, { model: "collection", zone: "products", data: collection })
|
|
311
332
|
] });
|
|
312
333
|
};
|
|
313
334
|
var ProductActions = ({
|
|
@@ -426,19 +447,23 @@ import { Fragment, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
|
426
447
|
var Root = ({ children }) => {
|
|
427
448
|
const initialData = useLoaderData();
|
|
428
449
|
const { id } = useParams();
|
|
429
|
-
const { collection, isLoading, isError, error } = useCollection(
|
|
430
|
-
|
|
431
|
-
|
|
450
|
+
const { collection, isLoading, isError, error } = useCollection(
|
|
451
|
+
id,
|
|
452
|
+
useLinkQuery("collection"),
|
|
453
|
+
{
|
|
454
|
+
initialData
|
|
455
|
+
}
|
|
456
|
+
);
|
|
432
457
|
if (isLoading || !collection) {
|
|
433
458
|
return /* @__PURE__ */ jsx5(SingleColumnPageSkeleton, { sections: 4 });
|
|
434
459
|
}
|
|
435
460
|
if (isError) throw error;
|
|
436
|
-
return /* @__PURE__ */ jsx5(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */
|
|
461
|
+
return /* @__PURE__ */ jsx5(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx5(SingleColumnPage, { data: collection, children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "collections.detail.main", data: collection, children: [
|
|
437
462
|
/* @__PURE__ */ jsx5(CollectionGeneralSection, { collection }),
|
|
438
463
|
/* @__PURE__ */ jsx5(CollectionMediaSection, { collection }),
|
|
439
464
|
/* @__PURE__ */ jsx5(CollectionIconSection, { collection }),
|
|
440
465
|
/* @__PURE__ */ jsx5(CollectionProductSection, { collection })
|
|
441
|
-
] }) });
|
|
466
|
+
] }) }) });
|
|
442
467
|
};
|
|
443
468
|
var CollectionDetailPage = Object.assign(Root, {
|
|
444
469
|
GeneralSection: CollectionGeneralSection,
|