@medusajs/dashboard 3.0.0-snapshot-20251106181920 → 3.0.0-snapshot-20251114155958
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-ZUJD7HBF.mjs → add-campaign-promotions-I7HDYMBX.mjs} +6 -6
- package/dist/{adjust-inventory-MEJEPP4Y.mjs → adjust-inventory-ZB3AVET7.mjs} +3 -3
- package/dist/{api-key-management-create-4OZWVOSF.mjs → api-key-management-create-U6VGZK7R.mjs} +4 -4
- package/dist/{api-key-management-detail-K3A3T6ET.mjs → api-key-management-detail-B5XNEGKF.mjs} +36 -36
- package/dist/{api-key-management-edit-FYLVVQOA.mjs → api-key-management-edit-TJM737A7.mjs} +4 -4
- package/dist/{api-key-management-list-6YG52LWY.mjs → api-key-management-list-ZRYMMTF5.mjs} +9 -9
- package/dist/{api-key-management-sales-channels-S5IFH7LP.mjs → api-key-management-sales-channels-D2RAHI7W.mjs} +12 -12
- package/dist/app.js +4574 -1022
- package/dist/app.mjs +33 -33
- package/dist/{campaign-budget-edit-V2VMINUO.mjs → campaign-budget-edit-H2KQKD7B.mjs} +2 -2
- package/dist/{campaign-configuration-PP4A5ADV.mjs → campaign-configuration-A452A22M.mjs} +2 -2
- package/dist/{campaign-create-NEKUWDGF.mjs → campaign-create-IXOWJQ4L.mjs} +7 -7
- package/dist/{campaign-detail-2H2W4W5B.mjs → campaign-detail-RCA3TBE4.mjs} +33 -33
- package/dist/{campaign-edit-O3LKMLXK.mjs → campaign-edit-LZV56AYF.mjs} +2 -2
- package/dist/{campaign-list-3452F4Y6.mjs → campaign-list-OH566KWW.mjs} +8 -8
- package/dist/{categories-metadata-ZEYU33GV.mjs → categories-metadata-5NBC7HX4.mjs} +28 -28
- package/dist/{category-create-N7PP3GWU.mjs → category-create-BTMZYQ5R.mjs} +3 -3
- package/dist/{category-detail-DKY37LPO.mjs → category-detail-RBUJVFPN.mjs} +34 -34
- package/dist/{category-edit-IFDQP7EZ.mjs → category-edit-Q3KEELHO.mjs} +3 -3
- package/dist/{category-list-2M4BCRAL.mjs → category-list-Z6HS6N75.mjs} +8 -8
- package/dist/{category-organize-76I7PO24.mjs → category-organize-45NPSRNG.mjs} +3 -3
- package/dist/{category-products-VVRGW25X.mjs → category-products-KREOO2KQ.mjs} +33 -33
- package/dist/{chunk-UKX2FFFV.mjs → chunk-25UWYEJX.mjs} +1 -1
- package/dist/{chunk-Q33G337Z.mjs → chunk-2GWGNMAA.mjs} +1 -1
- package/dist/{chunk-SMDWWXCD.mjs → chunk-2QH2TBJ2.mjs} +2 -2
- package/dist/{chunk-NQIC7ZFS.mjs → chunk-2SSUH2HJ.mjs} +2 -2
- package/dist/{chunk-P5RVJWPK.mjs → chunk-2WLOIS3L.mjs} +3 -3
- package/dist/{chunk-2D44OO7A.mjs → chunk-2X25XWOW.mjs} +1 -1
- package/dist/{chunk-KX4P5L3R.mjs → chunk-3BF5SC66.mjs} +1 -1
- package/dist/{chunk-OI4W5AEL.mjs → chunk-3RRA56WC.mjs} +26 -12
- package/dist/{chunk-7DWBXEH3.mjs → chunk-42TMWI76.mjs} +4 -4
- package/dist/{chunk-3EGEJ6Q2.mjs → chunk-4YAPXPLM.mjs} +1 -1
- package/dist/{chunk-F6PXCY3N.mjs → chunk-5AFMB7XQ.mjs} +1 -1
- package/dist/{chunk-OFN7DIZA.mjs → chunk-5AM254NB.mjs} +83 -3
- package/dist/{chunk-2ZKVRTBW.mjs → chunk-5BQQRHQS.mjs} +1 -1
- package/dist/{chunk-Y2XQE25L.mjs → chunk-5IFK2ZTA.mjs} +2 -2
- package/dist/{chunk-7PWZ5GMG.mjs → chunk-5N33TBBX.mjs} +2 -2
- package/dist/{chunk-S22NYSST.mjs → chunk-5X6SKB2P.mjs} +1 -1
- package/dist/{chunk-AHQI2S2Z.mjs → chunk-67RC6SEX.mjs} +2 -2
- package/dist/{chunk-I6E6CALJ.mjs → chunk-6CLQKVAU.mjs} +1 -1
- package/dist/{chunk-A2UMBW3V.mjs → chunk-6OU4CHZI.mjs} +1 -1
- package/dist/{chunk-GBKLLUUX.mjs → chunk-7H6DB666.mjs} +2 -2
- package/dist/{chunk-R2G2B47Y.mjs → chunk-A63RZVX6.mjs} +1 -1
- package/dist/{chunk-YSQG2JDM.mjs → chunk-BKJMQ6RP.mjs} +2 -2
- package/dist/{chunk-TYTNUPXB.mjs → chunk-BYOPZAGX.mjs} +13 -4
- package/dist/{chunk-HGFZAXHD.mjs → chunk-BYZSMXJ7.mjs} +2 -2
- package/dist/{chunk-32IQRUVY.mjs → chunk-CDORR33H.mjs} +1 -1
- package/dist/{chunk-RLY2SL5E.mjs → chunk-CN7JXSGW.mjs} +1 -1
- package/dist/{chunk-2WZUO66T.mjs → chunk-CV65NY6Y.mjs} +1 -1
- package/dist/{chunk-227DWSFF.mjs → chunk-CWIMWR6L.mjs} +9 -9
- package/dist/{chunk-PIR2H25N.mjs → chunk-DYDGGABK.mjs} +1 -1
- package/dist/{chunk-PFKKVLZX.mjs → chunk-DZWH2RV6.mjs} +1 -1
- package/dist/{chunk-LYTIMAIZ.mjs → chunk-FJHAGJ5G.mjs} +2 -2
- package/dist/{chunk-NGR5XU3K.mjs → chunk-FNQ227BC.mjs} +2 -2
- package/dist/{chunk-IVZ6BMDB.mjs → chunk-GA3UMQMZ.mjs} +1 -1
- package/dist/{chunk-TNMXAPPT.mjs → chunk-GHBURGZC.mjs} +1 -1
- package/dist/{chunk-FKIOYL3D.mjs → chunk-GU5PJRPM.mjs} +1 -1
- package/dist/{chunk-GRT22PE5.mjs → chunk-HBXV7ENS.mjs} +2 -2
- package/dist/{chunk-X6DSNTTX.mjs → chunk-HI6URQ7H.mjs} +2 -2
- package/dist/{chunk-B4GODIOW.mjs → chunk-HKIF5HVL.mjs} +1 -1
- package/dist/{chunk-QZ6PT4QV.mjs → chunk-HP2JH45P.mjs} +2 -2
- package/dist/{chunk-KOSCMAIC.mjs → chunk-I4OBEAOJ.mjs} +1 -1
- package/dist/{chunk-FA5QNPXE.mjs → chunk-K75OQ7QA.mjs} +3 -3
- package/dist/{chunk-3G33PZVQ.mjs → chunk-KF22R23X.mjs} +1 -1
- package/dist/{chunk-QTCZFYFH.mjs → chunk-KI7TOXBR.mjs} +1 -1
- package/dist/{chunk-GI6XX5VU.mjs → chunk-KJU3T6BK.mjs} +3 -3
- package/dist/{chunk-C5LYZZZ5.mjs → chunk-LGNTHZ5Y.mjs} +1 -1
- package/dist/{chunk-RM6NY572.mjs → chunk-M32MJOJN.mjs} +1 -1
- package/dist/{chunk-S34JJVBQ.mjs → chunk-M4Q5Q4I3.mjs} +2 -2
- package/dist/{chunk-GVVAVAXG.mjs → chunk-MOGV3UZD.mjs} +2 -2
- package/dist/{chunk-DEQUVHHE.mjs → chunk-NFEK63OE.mjs} +4 -1
- package/dist/{chunk-IBSMG7AF.mjs → chunk-NFEW5CVI.mjs} +6 -6
- package/dist/{chunk-VAIHVNV6.mjs → chunk-NL376WAO.mjs} +1 -1
- package/dist/{chunk-JC75WAC7.mjs → chunk-NZNJSGGE.mjs} +4 -4
- package/dist/{chunk-JAXWGF4M.mjs → chunk-O5DGX2NZ.mjs} +1 -1
- package/dist/{chunk-MK4E5XQX.mjs → chunk-OMRGW7JS.mjs} +2 -2
- package/dist/{chunk-WT5BXCPV.mjs → chunk-P23S5LDK.mjs} +4 -4
- package/dist/{chunk-GXXQ33F7.mjs → chunk-PCV2O6DU.mjs} +1 -1
- package/dist/{chunk-P777A4W3.mjs → chunk-PMJJI6GO.mjs} +1 -1
- package/dist/{chunk-CIY65KNH.mjs → chunk-PNPT4W2F.mjs} +4 -4
- package/dist/{chunk-GLVCH422.mjs → chunk-PVW6M64S.mjs} +1 -1
- package/dist/{chunk-JDA2MYND.mjs → chunk-QPJUVTKW.mjs} +1 -1
- package/dist/{chunk-GVPJPLE2.mjs → chunk-QW4SQVMT.mjs} +125 -33
- package/dist/{chunk-W77EPLUD.mjs → chunk-RAZ6EKFT.mjs} +4 -4
- package/dist/{chunk-SJ3E4T6B.mjs → chunk-ROKB75YP.mjs} +1 -1
- package/dist/{chunk-2VTICXJR.mjs → chunk-RYJ2UVJE.mjs} +1 -1
- package/dist/{chunk-JDEH6Z4M.mjs → chunk-SAZHCRHS.mjs} +1 -1
- package/dist/{chunk-QL4XKIVL.mjs → chunk-SQDIZZDW.mjs} +1 -1
- package/dist/{chunk-67ORSRVT.mjs → chunk-SUYYSKCB.mjs} +23 -16
- package/dist/{chunk-ORMX5RJQ.mjs → chunk-T57MRRCF.mjs} +1 -1
- package/dist/{chunk-GRNWRTT3.mjs → chunk-TBEGSDLQ.mjs} +2 -2
- package/dist/{chunk-SNDSWB6B.mjs → chunk-UM4OIJZ3.mjs} +2 -2
- package/dist/{chunk-V2LANK5S.mjs → chunk-VCSSQVPD.mjs} +2 -2
- package/dist/{chunk-SBFWPL42.mjs → chunk-VW34SZWE.mjs} +3 -3
- package/dist/{chunk-UTVAHVAY.mjs → chunk-W4TIFG3A.mjs} +7 -7
- package/dist/{chunk-WEMXXZMY.mjs → chunk-W7SLPIO2.mjs} +19 -7
- package/dist/{chunk-ENV6YVOM.mjs → chunk-WAXMT4IY.mjs} +3 -3
- package/dist/{chunk-Y6ZQFV7H.mjs → chunk-Y5TTJDGO.mjs} +1 -1
- package/dist/{chunk-WWQZD7WM.mjs → chunk-YGEJFHC3.mjs} +2 -2
- package/dist/{chunk-QXXHLVRQ.mjs → chunk-YGLRZQ4C.mjs} +1 -1
- package/dist/{chunk-PJ5EUKOB.mjs → chunk-YTN73JYH.mjs} +1 -1
- package/dist/{chunk-ET6EGRW3.mjs → chunk-YVQIO3JS.mjs} +3487 -227
- package/dist/{chunk-3MPO56OL.mjs → chunk-ZE34KAKV.mjs} +3 -3
- package/dist/{chunk-WOFUOGLO.mjs → chunk-ZOJRDXH3.mjs} +34 -124
- package/dist/{collection-add-products-QCSFXELK.mjs → collection-add-products-KM4VO5G5.mjs} +33 -33
- package/dist/{collection-create-45RYGDW7.mjs → collection-create-RIGJHEX5.mjs} +3 -3
- package/dist/{collection-detail-OLC6DMBZ.mjs → collection-detail-MLVNULUS.mjs} +33 -33
- package/dist/{collection-edit-YBPBHLLZ.mjs → collection-edit-WX5G3FHR.mjs} +3 -3
- package/dist/{collection-list-6UJNE2QB.mjs → collection-list-KWAHQGFE.mjs} +37 -37
- package/dist/{collection-metadata-QG55V5ZM.mjs → collection-metadata-OMFOP3LA.mjs} +28 -28
- package/dist/{customer-create-WCBUYT44.mjs → customer-create-VL6SIRZ2.mjs} +2 -2
- package/dist/{customer-create-address-VWVIJDMK.mjs → customer-create-address-V5C6M52P.mjs} +2 -2
- package/dist/{customer-detail-XOCZDUJL.mjs → customer-detail-SVDGB2QD.mjs} +35 -35
- package/dist/{customer-edit-FMK2AWZ5.mjs → customer-edit-WTBPVWOF.mjs} +2 -2
- package/dist/{customer-group-add-customers-TQAH4IPM.mjs → customer-group-add-customers-2Y2GVCDV.mjs} +9 -9
- package/dist/{customer-group-create-Y5O2CJOI.mjs → customer-group-create-A3CB3Z4K.mjs} +2 -2
- package/dist/{customer-group-detail-EWSDTVTQ.mjs → customer-group-detail-OCQTI4GG.mjs} +35 -35
- package/dist/{customer-group-edit-SMVW7PHM.mjs → customer-group-edit-7KV2PNLE.mjs} +2 -2
- package/dist/{customer-group-list-NFXAELFY.mjs → customer-group-list-K5MTMFLG.mjs} +33 -33
- package/dist/{customer-group-metadata-XJIMV7QU.mjs → customer-group-metadata-4F2SZF4M.mjs} +2 -2
- package/dist/{customer-list-TXAB4URJ.mjs → customer-list-TG4D4QOT.mjs} +9 -9
- package/dist/{customer-metadata-E32DPXXE.mjs → customer-metadata-LZ3TAXCV.mjs} +2 -2
- package/dist/{customers-add-customer-group-EYZMFVBS.mjs → customers-add-customer-group-2LLBHTX3.mjs} +32 -32
- package/dist/{edit-inventory-item-TFJL5H5X.mjs → edit-inventory-item-O6JLGZE4.mjs} +2 -2
- package/dist/{edit-inventory-item-attributes-O3K7OB56.mjs → edit-inventory-item-attributes-AUVR3GYY.mjs} +2 -2
- package/dist/{edit-reservation-Z5TFZERY.mjs → edit-reservation-GQ6R6GVA.mjs} +4 -4
- package/dist/{edit-rules-IE77WUXD.mjs → edit-rules-G7YMD5RC.mjs} +30 -30
- package/dist/en.json +3 -3
- package/dist/{inventory-create-HQ5XLKOJ.mjs → inventory-create-GMFEGLE4.mjs} +29 -29
- package/dist/{inventory-detail-DAINM7WP.mjs → inventory-detail-3BTAVXLJ.mjs} +34 -34
- package/dist/{inventory-list-5ROSUTXF.mjs → inventory-list-ADJQDNX5.mjs} +7 -7
- package/dist/{inventory-metadata-HUL56OD2.mjs → inventory-metadata-JJBXLQJG.mjs} +28 -28
- package/dist/{inventory-stock-5VIUWKTQ.mjs → inventory-stock-RHLN6ARK.mjs} +30 -30
- package/dist/{invite-U4I4IUOM.mjs → invite-VKHAAF4Z.mjs} +3 -3
- package/dist/{location-create-GZCUNYDT.mjs → location-create-GDOHM4T3.mjs} +2 -2
- package/dist/{location-detail-QMLCFID5.mjs → location-detail-F5QYFPUH.mjs} +28 -28
- package/dist/{location-edit-VNEMLWGR.mjs → location-edit-4SEMGQXA.mjs} +2 -2
- package/dist/{location-fulfillment-providers-NAFFMP3P.mjs → location-fulfillment-providers-7JXNE6YT.mjs} +37 -37
- package/dist/{location-list-MVIK73QC.mjs → location-list-ZJMZZ6T3.mjs} +5 -5
- package/dist/{location-sales-channels-D37LXTKQ.mjs → location-sales-channels-JPH5BTUY.mjs} +12 -12
- package/dist/{location-service-zone-create-27MNMKPQ.mjs → location-service-zone-create-35TTX636.mjs} +9 -9
- package/dist/{location-service-zone-edit-LCBBZ2OA.mjs → location-service-zone-edit-RWZS2XYW.mjs} +4 -4
- package/dist/{location-service-zone-manage-areas-U3EPNWSI.mjs → location-service-zone-manage-areas-RGMM5Y6C.mjs} +9 -9
- package/dist/{location-service-zone-shipping-option-create-VM4TEJHY.mjs → location-service-zone-shipping-option-create-7VTPJAPA.mjs} +31 -31
- package/dist/{location-service-zone-shipping-option-edit-WN4MTZSB.mjs → location-service-zone-shipping-option-edit-OYTEZGGC.mjs} +4 -4
- package/dist/{location-service-zone-shipping-option-pricing-GJIO4RRM.mjs → location-service-zone-shipping-option-pricing-NQRIEGTX.mjs} +8 -8
- package/dist/{login-MTGOV7KC.mjs → login-BGH5LSM4.mjs} +28 -28
- package/dist/{manage-locations-OHDFBORX.mjs → manage-locations-ATCDVTSR.mjs} +3 -3
- package/dist/{order-allocate-items-NU65ZXHE.mjs → order-allocate-items-PHIW64XK.mjs} +5 -5
- package/dist/{order-create-claim-LTE2E75R.mjs → order-create-claim-NPQ6E5DR.mjs} +36 -36
- package/dist/{order-create-edit-TPU3CKUU.mjs → order-create-edit-R4ZITC5I.mjs} +33 -33
- package/dist/{order-create-exchange-FVSBZI7P.mjs → order-create-exchange-6XPYKVYN.mjs} +36 -36
- package/dist/{order-create-fulfillment-NFGPDCBV.mjs → order-create-fulfillment-7DVPBUES.mjs} +29 -29
- package/dist/{order-create-refund-DC7C3R4Y.mjs → order-create-refund-7KEOYZTF.mjs} +28 -28
- package/dist/{order-create-return-RLXYVZLO.mjs → order-create-return-J23AFCKP.mjs} +13 -13
- package/dist/{order-create-shipment-RDYWCG3A.mjs → order-create-shipment-KNXCANID.mjs} +28 -28
- package/dist/{order-detail-VVOZ6E2R.mjs → order-detail-7ATBL7GN.mjs} +49 -41
- package/dist/{order-edit-billing-address-LV7453CS.mjs → order-edit-billing-address-VS75YMUY.mjs} +28 -28
- package/dist/{order-edit-email-4U5C6UKX.mjs → order-edit-email-GEE7SF2E.mjs} +28 -28
- package/dist/{order-edit-shipping-address-6IQC2CVP.mjs → order-edit-shipping-address-HSRXSRLU.mjs} +28 -28
- package/dist/{order-list-INSYF52F.mjs → order-list-GJTJHLZF.mjs} +52 -45
- package/dist/{order-metadata-EEV4IWOM.mjs → order-metadata-LUBKP5Y4.mjs} +28 -28
- package/dist/{order-receive-return-IWHR3EBF.mjs → order-receive-return-FLI44JN2.mjs} +29 -29
- package/dist/{order-request-transfer-65R4A7HS.mjs → order-request-transfer-NH2XCHMV.mjs} +29 -29
- package/dist/{price-list-configuration-L5XYCVP2.mjs → price-list-configuration-SS2VMD4N.mjs} +9 -9
- package/dist/{price-list-create-5GIMBRG2.mjs → price-list-create-DZR7JCDG.mjs} +36 -36
- package/dist/{price-list-detail-7AL2EBRL.mjs → price-list-detail-4INABJQQ.mjs} +35 -35
- package/dist/{price-list-edit-DHG5STG4.mjs → price-list-edit-VRI5T4W3.mjs} +4 -4
- package/dist/{price-list-list-QQKZEFSU.mjs → price-list-list-S2HWTXKV.mjs} +9 -9
- package/dist/{price-list-prices-add-2OO4QEZB.mjs → price-list-prices-add-DO43IEAD.mjs} +35 -35
- package/dist/{price-list-prices-edit-2FB25KWU.mjs → price-list-prices-edit-TRCLLGU4.mjs} +9 -9
- package/dist/{product-attributes-CCQ6WAOD.mjs → product-attributes-D6MNCAJB.mjs} +34 -34
- package/dist/{product-create-AIRCVZAE.mjs → product-create-JQQTUEQL.mjs} +82 -53
- package/dist/{product-create-variant-7BD5KQHQ.mjs → product-create-variant-6UQRMACE.mjs} +30 -30
- package/dist/{product-detail-IYMXYAPH.mjs → product-detail-JMOULY3O.mjs} +50 -38
- package/dist/{product-edit-PDGQHCQ2.mjs → product-edit-CC4OUBEC.mjs} +34 -34
- package/dist/{product-export-5EINLQDF.mjs → product-export-BVREOXJT.mjs} +36 -36
- package/dist/{product-image-variants-edit-DDSEBG5H.mjs → product-image-variants-edit-7BBTFZO7.mjs} +32 -32
- package/dist/{product-import-IQJWHNYN.mjs → product-import-UEXWOHOZ.mjs} +31 -30
- package/dist/{product-list-PUQEGU75.mjs → product-list-RHHY3NAS.mjs} +38 -38
- package/dist/{product-media-Q5XFYZRS.mjs → product-media-EKXMOSO4.mjs} +4 -4
- package/dist/{product-metadata-WCKNOZXX.mjs → product-metadata-DU2CNDKQ.mjs} +28 -28
- package/dist/{product-option-create-MWFWB2SU.mjs → product-option-create-ML66ZKF3.mjs} +28 -28
- package/dist/{product-option-detail-UKKEZPG7.mjs → product-option-detail-DT7HJF5Q.mjs} +39 -40
- package/dist/{product-option-edit-NHAF7B4P.mjs → product-option-edit-GUKWRQQH.mjs} +28 -28
- package/dist/{product-option-list-C6ZR2WIX.mjs → product-option-list-KF3JSQ6Y.mjs} +40 -44
- package/dist/{product-option-metadata-OWSGHNDC.mjs → product-option-metadata-BWWRRSAW.mjs} +28 -28
- package/dist/product-options-manage-QYWBIHJA.mjs +304 -0
- package/dist/{product-organization-HHME5F2C.mjs → product-organization-HU6YVPPV.mjs} +36 -36
- package/dist/{product-prices-GVEPABHQ.mjs → product-prices-UMEIS5AZ.mjs} +6 -6
- package/dist/{product-sales-channels-ZC5ONPG7.mjs → product-sales-channels-2SALTLTF.mjs} +11 -11
- package/dist/{product-shipping-profile-KXSBDGRD.mjs → product-shipping-profile-T4ZKHINJ.mjs} +35 -35
- package/dist/{product-stock-LXRLD7FA.mjs → product-stock-CKBS4YDA.mjs} +30 -30
- package/dist/{product-tag-create-RAJEWM5O.mjs → product-tag-create-GFGPI7ML.mjs} +28 -28
- package/dist/{product-tag-detail-EOW2GMOL.mjs → product-tag-detail-TTEWVF3I.mjs} +44 -44
- package/dist/{product-tag-edit-ZOO56XMF.mjs → product-tag-edit-3XNTLATZ.mjs} +28 -28
- package/dist/{product-tag-list-B2UX2OHB.mjs → product-tag-list-24IJRVFR.mjs} +44 -44
- package/dist/{product-tag-metadata-OZB7SVDN.mjs → product-tag-metadata-JANWHZ3K.mjs} +28 -28
- package/dist/{product-type-create-AHVZETDR.mjs → product-type-create-Y752WGBV.mjs} +2 -2
- package/dist/{product-type-detail-4YZUC6ZS.mjs → product-type-detail-MAUHCM3C.mjs} +34 -34
- package/dist/{product-type-edit-2RGFBZPK.mjs → product-type-edit-SMPJ5ZEF.mjs} +2 -2
- package/dist/{product-type-list-J2WDYTZK.mjs → product-type-list-7WQ5D2KV.mjs} +9 -9
- package/dist/{product-type-metadata-6QT47ZSR.mjs → product-type-metadata-FAKUWQQF.mjs} +28 -28
- package/dist/{product-variant-detail-HOOYZSS2.mjs → product-variant-detail-WHPECDUY.mjs} +32 -32
- package/dist/{product-variant-edit-J2MTJA75.mjs → product-variant-edit-GR4RNE5G.mjs} +29 -29
- package/dist/{product-variant-manage-inventory-items-P4QUORRH.mjs → product-variant-manage-inventory-items-IGDCLZQE.mjs} +3 -3
- package/dist/{product-variant-media-U5RG7AOW.mjs → product-variant-media-EKI4BTEV.mjs} +2 -2
- package/dist/{product-variant-metadata-ZRSZO2D4.mjs → product-variant-metadata-DA2HKXXB.mjs} +28 -28
- package/dist/{profile-detail-UTJBWZSA.mjs → profile-detail-BMC7IZBY.mjs} +3 -3
- package/dist/{profile-edit-OOYMTKX6.mjs → profile-edit-NFVR5Y4I.mjs} +3 -3
- package/dist/{promotion-add-campaign-XJB2ZKZ3.mjs → promotion-add-campaign-DOALJUKJ.mjs} +7 -7
- package/dist/{promotion-create-2E4EF4SP.mjs → promotion-create-GGZULF2B.mjs} +33 -33
- package/dist/{promotion-detail-P2BHIQDG.mjs → promotion-detail-XK7U73XH.mjs} +31 -31
- package/dist/{promotion-edit-details-JMZ77QJ4.mjs → promotion-edit-details-AKKNOCLM.mjs} +2 -2
- package/dist/{promotion-list-MN6YJCYA.mjs → promotion-list-TMWKPLMJ.mjs} +6 -6
- package/dist/{refund-reason-create-I3BIJFJH.mjs → refund-reason-create-H7MHJ5C5.mjs} +28 -28
- package/dist/{refund-reason-edit-2BEZASQH.mjs → refund-reason-edit-QY36CQVS.mjs} +28 -28
- package/dist/{refund-reason-list-NIJHHOXJ.mjs → refund-reason-list-KSQW33QC.mjs} +38 -38
- package/dist/{region-add-countries-KGFPZSRE.mjs → region-add-countries-6GB2QDJK.mjs} +7 -7
- package/dist/{region-create-YJJRTAYO.mjs → region-create-UVJICJRX.mjs} +9 -9
- package/dist/{region-detail-ERE4ZF2I.mjs → region-detail-D3JBW34A.mjs} +7 -7
- package/dist/{region-edit-QCN7SMR5.mjs → region-edit-3NVXQECN.mjs} +5 -5
- package/dist/{region-list-KE5HCKOR.mjs → region-list-JAQXIBYD.mjs} +7 -7
- package/dist/{region-metadata-RLZSQNGW.mjs → region-metadata-4KQG6UL6.mjs} +28 -28
- package/dist/{reservation-create-4R2XEEZU.mjs → reservation-create-Z7TWUE2L.mjs} +5 -5
- package/dist/{reservation-detail-7OYGNK4L.mjs → reservation-detail-W3FULMXT.mjs} +28 -28
- package/dist/{reservation-list-VY44QEH6.mjs → reservation-list-MN22JYAW.mjs} +9 -9
- package/dist/{reservation-metadata-VJIAGIMF.mjs → reservation-metadata-AKAN5XNE.mjs} +28 -28
- package/dist/{reset-password-CUEG23GU.mjs → reset-password-5TAYQEUV.mjs} +2 -2
- package/dist/{return-reason-create-45IARQ5L.mjs → return-reason-create-PLQNC4KW.mjs} +2 -2
- package/dist/{return-reason-edit-5FIOEJ5Y.mjs → return-reason-edit-XJCPMZ6U.mjs} +2 -2
- package/dist/{return-reason-list-6UKR2BLW.mjs → return-reason-list-ATE2XU4H.mjs} +12 -12
- package/dist/{sales-channel-add-products-KAUMNKMD.mjs → sales-channel-add-products-POHTQHMV.mjs} +33 -33
- package/dist/{sales-channel-create-I6ME6QBM.mjs → sales-channel-create-UFFXX5HK.mjs} +3 -3
- package/dist/{sales-channel-detail-5SXDKP6P.mjs → sales-channel-detail-AACIFU2E.mjs} +33 -33
- package/dist/{sales-channel-edit-O7GM2B6O.mjs → sales-channel-edit-SP2HF4E3.mjs} +3 -3
- package/dist/{sales-channel-list-JKZ6TIY7.mjs → sales-channel-list-BY3KTVV6.mjs} +35 -35
- package/dist/{sales-channel-metadata-33P5SKDI.mjs → sales-channel-metadata-KGOLI4BZ.mjs} +28 -28
- package/dist/{shipping-option-type-create-KVYNWD2Q.mjs → shipping-option-type-create-PSQZW3RN.mjs} +28 -28
- package/dist/{shipping-option-type-detail-YX3HMXNI.mjs → shipping-option-type-detail-WAW6TKJU.mjs} +29 -29
- package/dist/{shipping-option-type-edit-ODXQMHYJ.mjs → shipping-option-type-edit-2I44YHND.mjs} +28 -28
- package/dist/{shipping-option-type-list-XCQNWDDA.mjs → shipping-option-type-list-F4FRLW3P.mjs} +34 -34
- package/dist/{shipping-profile-create-372EMPUI.mjs → shipping-profile-create-NKFUOBVZ.mjs} +2 -2
- package/dist/{shipping-profile-detail-MRXUOUXK.mjs → shipping-profile-detail-WTKQSOIX.mjs} +2 -2
- package/dist/{shipping-profile-metadata-K34DAKGY.mjs → shipping-profile-metadata-AZXPMPHG.mjs} +28 -28
- package/dist/{shipping-profiles-list-KYYSHLSZ.mjs → shipping-profiles-list-H3CBZKRH.mjs} +6 -6
- package/dist/{store-add-currencies-SNSW7A6O.mjs → store-add-currencies-QVG2SI26.mjs} +8 -8
- package/dist/{store-detail-3Z3BK2BH.mjs → store-detail-AKRR64I6.mjs} +32 -32
- package/dist/{store-edit-FNKVB3UA.mjs → store-edit-Q25HCMCQ.mjs} +4 -4
- package/dist/{store-metadata-FESGAO7E.mjs → store-metadata-VLEDLAIJ.mjs} +28 -28
- package/dist/{tax-region-create-EVFVC6HN.mjs → tax-region-create-JTM53LCS.mjs} +29 -29
- package/dist/{tax-region-detail-ULHK52CD.mjs → tax-region-detail-XBFYCVSH.mjs} +49 -49
- package/dist/{tax-region-edit-CXEPD2F2.mjs → tax-region-edit-2RRF7C7P.mjs} +29 -29
- package/dist/{tax-region-list-HQMSVGDD.mjs → tax-region-list-BXZBUXRJ.mjs} +5 -5
- package/dist/{tax-region-province-create-6GZCPPGW.mjs → tax-region-province-create-T2LKEDTK.mjs} +2 -2
- package/dist/{tax-region-province-detail-VUY4PDGN.mjs → tax-region-province-detail-LGCYSFKE.mjs} +47 -47
- package/dist/{tax-region-tax-override-create-WWZZVAG5.mjs → tax-region-tax-override-create-2W25EZNZ.mjs} +44 -44
- package/dist/{tax-region-tax-override-edit-HVZRD44G.mjs → tax-region-tax-override-edit-ZSYNTYUG.mjs} +45 -45
- package/dist/{tax-region-tax-rate-create-TJLSRCEC.mjs → tax-region-tax-rate-create-UEOU5QRU.mjs} +3 -3
- package/dist/{tax-region-tax-rate-edit-DEKCUURK.mjs → tax-region-tax-rate-edit-ILCDNXHV.mjs} +3 -3
- package/dist/{user-detail-YTVBPRH5.mjs → user-detail-K5UMPO2L.mjs} +3 -3
- package/dist/{user-edit-NFRTYOKO.mjs → user-edit-25HD3BYT.mjs} +2 -2
- package/dist/{user-invite-FQNKJKMD.mjs → user-invite-CRQTVEYA.mjs} +6 -6
- package/dist/{user-list-73SJSKYT.mjs → user-list-KPI3BTOA.mjs} +9 -9
- package/dist/{user-metadata-33W3JSHN.mjs → user-metadata-KOGHOQTW.mjs} +28 -28
- package/dist/{workflow-execution-detail-SHEXD5OL.mjs → workflow-execution-detail-4QAQ44YB.mjs} +28 -28
- package/dist/{workflow-execution-list-JOVBPL45.mjs → workflow-execution-list-IZVF2XMJ.mjs} +6 -6
- package/package.json +10 -11
- package/src/components/common/file-upload/file-upload.tsx +23 -6
- package/src/components/data-grid/hooks/use-data-grid-form-handlers.tsx +21 -9
- package/src/components/inputs/combobox/combobox.tsx +173 -92
- package/src/components/layout/main-layout/main-layout.tsx +1 -0
- package/src/components/layout/nav-item/nav-item.tsx +14 -4
- package/src/dashboard-app/__tests__/sort-menu-items-by-rank.spec.ts +169 -0
- package/src/dashboard-app/dashboard-app.tsx +10 -1
- package/src/dashboard-app/types.ts +2 -0
- package/src/dashboard-app/utils/sort-menu-items-by-rank.ts +43 -0
- package/src/hooks/api/products.tsx +4 -4
- package/src/hooks/table/columns/use-product-option-table-columns.tsx +5 -4
- package/src/hooks/table/filters/use-product-option-table-filters.tsx +5 -5
- package/src/i18n/languages.ts +23 -16
- package/src/i18n/translations/$schema.json +5 -5
- package/src/i18n/translations/en.json +3 -3
- package/src/i18n/translations/index.ts +4 -0
- package/src/i18n/translations/ptPT.json +3219 -0
- package/src/lib/client/client.ts +4 -1
- package/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx +19 -9
- package/src/routes/orders/order-list/components/order-list-table/use-order-table-filters.tsx +40 -30
- package/src/routes/products/common/components/upload-media-form-item/upload-media-form-item.tsx +26 -8
- package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-general-section/product-create-general-section.tsx +16 -4
- package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx +7 -1
- package/src/routes/products/product-create/constants.ts +1 -0
- package/src/routes/products/product-create/utils.ts +2 -2
- package/src/routes/products/product-detail/components/product-general-section/product-general-section.tsx +1 -0
- package/src/routes/products/product-detail/components/product-option-section/product-option-section.tsx +24 -11
- package/src/routes/products/product-import/components/upload-import.tsx +1 -0
- package/src/routes/products/product-options-manage/components/product-options-manage-form/product-options-manage-form.tsx +145 -8
- package/src/vite-env.d.ts +2 -0
- package/dist/product-options-manage-N73G5IXY.mjs +0 -206
|
@@ -9,18 +9,18 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
9
9
|
import {
|
|
10
10
|
_DataTable,
|
|
11
11
|
useDataTable
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YTN73JYH.mjs";
|
|
13
13
|
import "./chunk-HQKGZADC.mjs";
|
|
14
14
|
import "./chunk-EMIHDNB7.mjs";
|
|
15
15
|
import {
|
|
16
16
|
useProductTableFilters
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-K75OQ7QA.mjs";
|
|
18
18
|
import {
|
|
19
19
|
useProductTableQuery
|
|
20
20
|
} from "./chunk-PCFUZKDS.mjs";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-GU5PJRPM.mjs";
|
|
22
22
|
import "./chunk-C76H5USB.mjs";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-DZWH2RV6.mjs";
|
|
24
24
|
import "./chunk-IUCDCPJU.mjs";
|
|
25
25
|
import {
|
|
26
26
|
KeyboundForm
|
|
@@ -32,43 +32,43 @@ import {
|
|
|
32
32
|
import "./chunk-MNXC6Q4F.mjs";
|
|
33
33
|
import "./chunk-LPEUYMRK.mjs";
|
|
34
34
|
import "./chunk-S4DMV3ZT.mjs";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-SUYYSKCB.mjs";
|
|
36
36
|
import "./chunk-OBQI23QM.mjs";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
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-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-ZOJRDXH3.mjs";
|
|
38
|
+
import "./chunk-I4OBEAOJ.mjs";
|
|
39
|
+
import "./chunk-YGEJFHC3.mjs";
|
|
40
|
+
import "./chunk-HI6URQ7H.mjs";
|
|
41
|
+
import "./chunk-6CLQKVAU.mjs";
|
|
42
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
43
|
+
import "./chunk-HKIF5HVL.mjs";
|
|
44
|
+
import "./chunk-WAXMT4IY.mjs";
|
|
45
|
+
import "./chunk-DYDGGABK.mjs";
|
|
46
|
+
import "./chunk-LGNTHZ5Y.mjs";
|
|
47
|
+
import "./chunk-CN7JXSGW.mjs";
|
|
48
|
+
import "./chunk-5BQQRHQS.mjs";
|
|
49
|
+
import "./chunk-7H6DB666.mjs";
|
|
50
|
+
import "./chunk-2WLOIS3L.mjs";
|
|
51
|
+
import "./chunk-5AFMB7XQ.mjs";
|
|
52
|
+
import "./chunk-A63RZVX6.mjs";
|
|
53
|
+
import "./chunk-HBXV7ENS.mjs";
|
|
54
|
+
import "./chunk-CDORR33H.mjs";
|
|
55
|
+
import "./chunk-VW34SZWE.mjs";
|
|
56
|
+
import "./chunk-MOGV3UZD.mjs";
|
|
57
57
|
import {
|
|
58
58
|
useProductCategory,
|
|
59
59
|
useUpdateProductCategoryProducts
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-5N33TBBX.mjs";
|
|
61
|
+
import "./chunk-FNQ227BC.mjs";
|
|
62
|
+
import "./chunk-3BF5SC66.mjs";
|
|
63
|
+
import "./chunk-VCSSQVPD.mjs";
|
|
64
|
+
import "./chunk-HP2JH45P.mjs";
|
|
65
|
+
import "./chunk-SQDIZZDW.mjs";
|
|
66
66
|
import {
|
|
67
67
|
useProducts
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
69
69
|
import "./chunk-FXYH54JP.mjs";
|
|
70
70
|
import "./chunk-774WSTCC.mjs";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-NFEK63OE.mjs";
|
|
72
72
|
import "./chunk-QZ7TP4HQ.mjs";
|
|
73
73
|
|
|
74
74
|
// src/routes/categories/category-products/category-products.tsx
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
_DataTable,
|
|
6
6
|
useDataTable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YTN73JYH.mjs";
|
|
8
8
|
import {
|
|
9
9
|
useCustomerGroupTableFilters
|
|
10
10
|
} from "./chunk-DLZWPHHO.mjs";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-AERWK3TJ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
useCustomerGroups
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5AFMB7XQ.mjs";
|
|
21
21
|
|
|
22
22
|
// src/routes/price-lists/common/components/price-list-customer-group-rule-form/price-list-customer-group-rule-form.tsx
|
|
23
23
|
import { Button, Checkbox } from "@medusajs/ui";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
taxRegionsQueryKeys,
|
|
6
6
|
useTaxRegion
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6CLQKVAU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
queryClient
|
|
10
10
|
} from "./chunk-FXYH54JP.mjs";
|
|
11
11
|
import {
|
|
12
12
|
sdk
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NFEK63OE.mjs";
|
|
14
14
|
|
|
15
15
|
// src/routes/tax-regions/tax-region-detail/breadcrumb.tsx
|
|
16
16
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
customerGroupsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5AFMB7XQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
productsQueryKeys
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
7
7
|
import {
|
|
8
8
|
queryClient
|
|
9
9
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-774WSTCC.mjs";
|
|
13
13
|
import {
|
|
14
14
|
sdk
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NFEK63OE.mjs";
|
|
16
16
|
|
|
17
17
|
// src/hooks/api/price-lists.tsx
|
|
18
18
|
import {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-ZQRKUG6J.mjs";
|
|
5
5
|
import {
|
|
6
6
|
FileUpload
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BYOPZAGX.mjs";
|
|
8
8
|
import {
|
|
9
9
|
castNumber
|
|
10
10
|
} from "./chunk-6GU6IDUA.mjs";
|
|
@@ -45,8 +45,8 @@ var normalizeProductFormValues = (values) => {
|
|
|
45
45
|
height: values.height ? parseFloat(values.height) : void 0,
|
|
46
46
|
weight: values.weight ? parseFloat(values.weight) : void 0,
|
|
47
47
|
options: options.map((option) => {
|
|
48
|
-
const { id, ...rest } = option;
|
|
49
|
-
return id ? { id } : rest;
|
|
48
|
+
const { id, value_ids, ...rest } = option;
|
|
49
|
+
return id ? { id, value_ids } : { ...rest, is_exclusive: true };
|
|
50
50
|
}),
|
|
51
51
|
variants: normalizeVariants(
|
|
52
52
|
values.variants.filter((variant) => variant.should_create),
|
|
@@ -145,7 +145,8 @@ var ProductCreateVariantSchema = z.object({
|
|
|
145
145
|
var ProductCreateOptionSchema = z.object({
|
|
146
146
|
id: z.string().optional(),
|
|
147
147
|
title: z.string(),
|
|
148
|
-
values: z.array(z.string()).min(1)
|
|
148
|
+
values: z.array(z.string()).min(1),
|
|
149
|
+
value_ids: z.array(z.string()).optional()
|
|
149
150
|
});
|
|
150
151
|
var ProductCreateSchema = z.object({
|
|
151
152
|
title: z.string().min(1),
|
|
@@ -270,10 +271,11 @@ var UploadMediaFormItem = ({
|
|
|
270
271
|
}) => {
|
|
271
272
|
const { t } = useTranslation();
|
|
272
273
|
const hasInvalidFiles = useCallback(
|
|
273
|
-
(fileList) => {
|
|
274
|
+
(fileList = [], rejectedFiles = []) => {
|
|
274
275
|
const invalidFile = fileList.find(
|
|
275
|
-
(f) => !SUPPORTED_FORMATS.includes(f
|
|
276
|
+
(f) => !SUPPORTED_FORMATS.includes(f?.file?.type)
|
|
276
277
|
);
|
|
278
|
+
let hasInvalidFile = false;
|
|
277
279
|
if (invalidFile) {
|
|
278
280
|
form.setError("media", {
|
|
279
281
|
type: "invalid_file",
|
|
@@ -282,19 +284,31 @@ var UploadMediaFormItem = ({
|
|
|
282
284
|
types: SUPPORTED_FORMATS_FILE_EXTENSIONS.join(", ")
|
|
283
285
|
})
|
|
284
286
|
});
|
|
285
|
-
|
|
287
|
+
hasInvalidFile = true;
|
|
286
288
|
}
|
|
287
|
-
|
|
289
|
+
const fileSizeRejections = rejectedFiles.filter((f) => f?.reason === "size");
|
|
290
|
+
if (fileSizeRejections.length) {
|
|
291
|
+
const fileNames = "\n" + fileSizeRejections.slice(0, 5).map((f) => f.file.name).join("\n");
|
|
292
|
+
form.setError("media", {
|
|
293
|
+
type: "file_too_large",
|
|
294
|
+
message: t("products.media.fileTooLarge", {
|
|
295
|
+
name: fileNames,
|
|
296
|
+
size: "1MB"
|
|
297
|
+
})
|
|
298
|
+
});
|
|
299
|
+
hasInvalidFile = true;
|
|
300
|
+
}
|
|
301
|
+
return hasInvalidFile;
|
|
288
302
|
},
|
|
289
303
|
[form, t]
|
|
290
304
|
);
|
|
291
305
|
const onUploaded = useCallback(
|
|
292
|
-
(files) => {
|
|
306
|
+
(files = [], rejectedFiles = []) => {
|
|
293
307
|
form.clearErrors("media");
|
|
294
|
-
if (hasInvalidFiles(files)) {
|
|
308
|
+
if (hasInvalidFiles(files, rejectedFiles)) {
|
|
295
309
|
return;
|
|
296
310
|
}
|
|
297
|
-
files
|
|
311
|
+
files?.forEach((f) => append({ ...f, isThumbnail: false }));
|
|
298
312
|
},
|
|
299
313
|
[form, append, hasInvalidFiles]
|
|
300
314
|
);
|
|
@@ -319,7 +333,7 @@ var UploadMediaFormItem = ({
|
|
|
319
333
|
onUploaded
|
|
320
334
|
}
|
|
321
335
|
) }),
|
|
322
|
-
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
336
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, { className: "whitespace-pre-line" })
|
|
323
337
|
] }) });
|
|
324
338
|
}
|
|
325
339
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-3TZOFKX2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Combobox
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5AM254NB.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useDocumentDirection
|
|
9
9
|
} from "./chunk-S4DMV3ZT.mjs";
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
usePromotionRuleAttributes,
|
|
15
15
|
usePromotionRules
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-A63RZVX6.mjs";
|
|
17
17
|
import {
|
|
18
18
|
useStore
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VCSSQVPD.mjs";
|
|
20
20
|
import {
|
|
21
21
|
sdk
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NFEK63OE.mjs";
|
|
23
23
|
|
|
24
24
|
// src/routes/promotions/common/edit-rules/components/rules-form-field/rules-form-field.tsx
|
|
25
25
|
import { XMarkMini } from "@medusajs/icons";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
TrianglesMini,
|
|
17
17
|
XMarkMini
|
|
18
18
|
} from "@medusajs/icons";
|
|
19
|
-
import { clx, Text } from "@medusajs/ui";
|
|
19
|
+
import { Badge, clx, Text } from "@medusajs/ui";
|
|
20
20
|
import { matchSorter } from "match-sorter";
|
|
21
21
|
import {
|
|
22
22
|
Fragment,
|
|
@@ -54,6 +54,7 @@ var ComboboxImpl = ({
|
|
|
54
54
|
noResultsPlaceholder,
|
|
55
55
|
allowClear,
|
|
56
56
|
forceHideInput,
|
|
57
|
+
displayMode = "count",
|
|
57
58
|
...inputProps
|
|
58
59
|
}, ref) => {
|
|
59
60
|
const [open, setOpen] = useState(false);
|
|
@@ -97,6 +98,13 @@ var ComboboxImpl = ({
|
|
|
97
98
|
onSearchValueChange(query);
|
|
98
99
|
}
|
|
99
100
|
};
|
|
101
|
+
const handleRemoveValue = (valueToRemove) => {
|
|
102
|
+
if (!isArrayValue || !Array.isArray(selectedValues)) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const newValues = selectedValues.filter((v) => v !== valueToRemove);
|
|
106
|
+
handleValueChange(newValues);
|
|
107
|
+
};
|
|
100
108
|
const matches = useMemo(() => {
|
|
101
109
|
if (isSearchControlled) {
|
|
102
110
|
return [];
|
|
@@ -168,7 +176,80 @@ var ComboboxImpl = ({
|
|
|
168
176
|
startTransition(() => handleSearchChange(query));
|
|
169
177
|
},
|
|
170
178
|
children: [
|
|
171
|
-
/* @__PURE__ */ jsxs(
|
|
179
|
+
displayMode === "chips" && isArrayValue ? /* @__PURE__ */ jsxs(
|
|
180
|
+
"div",
|
|
181
|
+
{
|
|
182
|
+
className: clx(
|
|
183
|
+
"relative flex cursor-pointer flex-wrap items-center gap-1.5",
|
|
184
|
+
"min-h-8 w-full rounded-md",
|
|
185
|
+
"bg-ui-bg-field transition-fg shadow-borders-base",
|
|
186
|
+
"has-[input:focus]:shadow-borders-interactive-with-active",
|
|
187
|
+
"has-[:invalid]:shadow-borders-error has-[[aria-invalid=true]]:shadow-borders-error",
|
|
188
|
+
"has-[:disabled]:bg-ui-bg-disabled has-[:disabled]:text-ui-fg-disabled has-[:disabled]:cursor-not-allowed",
|
|
189
|
+
"p-1",
|
|
190
|
+
className
|
|
191
|
+
),
|
|
192
|
+
children: [
|
|
193
|
+
Array.isArray(selectedValues) && selectedValues.map((value) => {
|
|
194
|
+
const option = options.find((o) => o.value === value);
|
|
195
|
+
if (!option) return null;
|
|
196
|
+
return /* @__PURE__ */ jsxs(
|
|
197
|
+
Badge,
|
|
198
|
+
{
|
|
199
|
+
size: "2xsmall",
|
|
200
|
+
className: "gap-x-0.5 pl-1.5 pr-1 transition-fg",
|
|
201
|
+
children: [
|
|
202
|
+
option.label,
|
|
203
|
+
/* @__PURE__ */ jsx(
|
|
204
|
+
"button",
|
|
205
|
+
{
|
|
206
|
+
tabIndex: -1,
|
|
207
|
+
type: "button",
|
|
208
|
+
onClick: (e) => {
|
|
209
|
+
e.preventDefault();
|
|
210
|
+
handleRemoveValue(value);
|
|
211
|
+
},
|
|
212
|
+
className: "text-ui-fg-subtle transition-fg outline-none",
|
|
213
|
+
children: /* @__PURE__ */ jsx(XMarkMini, {})
|
|
214
|
+
}
|
|
215
|
+
)
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
value
|
|
219
|
+
);
|
|
220
|
+
}),
|
|
221
|
+
/* @__PURE__ */ jsx("div", { className: "relative flex flex-1 items-center min-w-[120px]", children: /* @__PURE__ */ jsx(
|
|
222
|
+
PrimitiveCombobox,
|
|
223
|
+
{
|
|
224
|
+
autoSelect: true,
|
|
225
|
+
ref: comboboxRef,
|
|
226
|
+
onFocus: () => setOpen(true),
|
|
227
|
+
className: clx(
|
|
228
|
+
"txt-compact-small text-ui-fg-base !placeholder:text-ui-fg-muted transition-fg size-full cursor-pointer bg-transparent pe-8 ps-1 outline-none focus:cursor-text"
|
|
229
|
+
),
|
|
230
|
+
placeholder: Array.isArray(selectedValues) && selectedValues.length > 0 ? void 0 : placeholder,
|
|
231
|
+
...inputProps
|
|
232
|
+
}
|
|
233
|
+
) }),
|
|
234
|
+
/* @__PURE__ */ jsx(
|
|
235
|
+
PrimitiveComboboxDisclosure,
|
|
236
|
+
{
|
|
237
|
+
render: (props) => {
|
|
238
|
+
return /* @__PURE__ */ jsx(
|
|
239
|
+
"button",
|
|
240
|
+
{
|
|
241
|
+
...props,
|
|
242
|
+
type: "button",
|
|
243
|
+
className: "text-ui-fg-muted transition-fg hover:bg-ui-bg-field-hover absolute end-0 top-0 flex h-8 w-8 items-center justify-center rounded-r outline-none",
|
|
244
|
+
children: /* @__PURE__ */ jsx(TrianglesMini, {})
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
)
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
) : /* @__PURE__ */ jsxs(
|
|
172
253
|
"div",
|
|
173
254
|
{
|
|
174
255
|
className: clx(
|
|
@@ -234,7 +315,6 @@ var ComboboxImpl = ({
|
|
|
234
315
|
onFocus: () => setOpen(true),
|
|
235
316
|
className: clx(
|
|
236
317
|
"txt-compact-small text-ui-fg-base !placeholder:text-ui-fg-muted transition-fg size-full cursor-pointer bg-transparent pe-8 ps-2 outline-none focus:cursor-text",
|
|
237
|
-
"hover:bg-ui-bg-field-hover",
|
|
238
318
|
{
|
|
239
319
|
"opacity-0": hideInput,
|
|
240
320
|
"ps-2": !showTag,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDataTableDateColumns
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2X25XWOW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useDataTableDateFilters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2GWGNMAA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useQueryParams
|
|
9
9
|
} from "./chunk-C76H5USB.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
productsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
4
4
|
import {
|
|
5
5
|
queryClient
|
|
6
6
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-774WSTCC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
sdk
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NFEK63OE.mjs";
|
|
13
13
|
|
|
14
14
|
// src/hooks/api/categories.tsx
|
|
15
15
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Combobox
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5AM254NB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
currencies,
|
|
6
6
|
getCurrencySymbol
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-OBQI23QM.mjs";
|
|
14
14
|
import {
|
|
15
15
|
useStore
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VCSSQVPD.mjs";
|
|
17
17
|
|
|
18
18
|
// src/routes/campaigns/common/components/create-campaign-form-fields/create-campaign-form-fields.tsx
|
|
19
19
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
productsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
4
4
|
import {
|
|
5
5
|
queryClient
|
|
6
6
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-774WSTCC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
sdk
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NFEK63OE.mjs";
|
|
13
13
|
|
|
14
14
|
// src/hooks/api/collections.tsx
|
|
15
15
|
import {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
TargetItem,
|
|
4
4
|
TaxRateRuleReferenceSchema,
|
|
5
5
|
createTaxRulePayload
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CWIMWR6L.mjs";
|
|
7
7
|
import {
|
|
8
8
|
PercentageInput
|
|
9
9
|
} from "./chunk-KEQOAJC2.mjs";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-OBQI23QM.mjs";
|
|
28
28
|
import {
|
|
29
29
|
useUpdateTaxRate
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HI6URQ7H.mjs";
|
|
31
31
|
|
|
32
32
|
// src/routes/tax-regions/tax-region-tax-override-edit/components/tax-region-tax-override-edit-form/tax-region-tax-override-edit-form.tsx
|
|
33
33
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
@@ -3,12 +3,14 @@ import { ArrowDownTray } from "@medusajs/icons";
|
|
|
3
3
|
import { Text, clx } from "@medusajs/ui";
|
|
4
4
|
import { useRef, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var DEFAULT_MAX_FILE_SIZE = 1024 * 1024;
|
|
6
7
|
var FileUpload = ({
|
|
7
8
|
label,
|
|
8
9
|
hint,
|
|
9
10
|
multiple = true,
|
|
10
11
|
hasError,
|
|
11
12
|
formats,
|
|
13
|
+
maxFileSize = DEFAULT_MAX_FILE_SIZE,
|
|
12
14
|
onUploaded
|
|
13
15
|
}) => {
|
|
14
16
|
const [isDragOver, setIsDragOver] = useState(false);
|
|
@@ -39,16 +41,23 @@ var FileUpload = ({
|
|
|
39
41
|
return;
|
|
40
42
|
}
|
|
41
43
|
const fileList = Array.from(files);
|
|
42
|
-
const
|
|
44
|
+
const validFiles = [];
|
|
45
|
+
const rejectedFiles = [];
|
|
46
|
+
const normalizedMaxFileSize = Math.min(maxFileSize, Infinity);
|
|
47
|
+
fileList.forEach((file) => {
|
|
48
|
+
if (file.size > normalizedMaxFileSize) {
|
|
49
|
+
rejectedFiles.push({ file, reason: "size" });
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
43
52
|
const id = Math.random().toString(36).substring(7);
|
|
44
53
|
const previewUrl = URL.createObjectURL(file);
|
|
45
|
-
|
|
54
|
+
validFiles.push({
|
|
46
55
|
id,
|
|
47
56
|
url: previewUrl,
|
|
48
57
|
file
|
|
49
|
-
};
|
|
58
|
+
});
|
|
50
59
|
});
|
|
51
|
-
onUploaded(
|
|
60
|
+
onUploaded(validFiles, rejectedFiles);
|
|
52
61
|
};
|
|
53
62
|
const handleDrop = (event) => {
|
|
54
63
|
event.preventDefault();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ordersQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VW34SZWE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
queryClient
|
|
6
6
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-774WSTCC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
sdk
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NFEK63OE.mjs";
|
|
13
13
|
|
|
14
14
|
// src/hooks/api/returns.tsx
|
|
15
15
|
import {
|