@medusajs/dashboard 2.11.4-snapshot-20251106122834 → 2.11.4-snapshot-20251107094001
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-UA46MO5M.mjs → add-campaign-promotions-UR3UM3MV.mjs} +6 -6
- package/dist/{adjust-inventory-VNZACU24.mjs → adjust-inventory-7EWRE2HD.mjs} +3 -3
- package/dist/{api-key-management-create-7SOAJ7RX.mjs → api-key-management-create-SPLD3JMO.mjs} +4 -4
- package/dist/{api-key-management-detail-XBQJGUSQ.mjs → api-key-management-detail-Z6V22XWR.mjs} +36 -36
- package/dist/{api-key-management-edit-T5NQY7HV.mjs → api-key-management-edit-2VPL7PHB.mjs} +4 -4
- package/dist/{api-key-management-list-I73SQVMG.mjs → api-key-management-list-TVLEYYQO.mjs} +9 -9
- package/dist/{api-key-management-sales-channels-VBMEK5GK.mjs → api-key-management-sales-channels-Y25FWD5A.mjs} +12 -12
- package/dist/app.js +2748 -2708
- package/dist/app.mjs +33 -33
- package/dist/{campaign-budget-edit-5SZKCLM4.mjs → campaign-budget-edit-V2VMINUO.mjs} +2 -2
- package/dist/{campaign-configuration-363OPXQG.mjs → campaign-configuration-PP4A5ADV.mjs} +2 -2
- package/dist/{campaign-create-6X5ZO67N.mjs → campaign-create-GD2D45NX.mjs} +6 -6
- package/dist/{campaign-detail-WWRFMA6O.mjs → campaign-detail-YDLSCIRO.mjs} +33 -33
- package/dist/{campaign-edit-J5RHCLQT.mjs → campaign-edit-O3LKMLXK.mjs} +2 -2
- package/dist/{campaign-list-4NYUHNDY.mjs → campaign-list-M2462W5W.mjs} +8 -8
- package/dist/{categories-metadata-G5LPX4SG.mjs → categories-metadata-2HM7G27P.mjs} +28 -28
- package/dist/{category-create-XW5WBK3S.mjs → category-create-BC2VUVKO.mjs} +3 -3
- package/dist/{category-detail-LC6MCNMY.mjs → category-detail-IZ3AWOCP.mjs} +34 -34
- package/dist/{category-edit-VV2MDMSN.mjs → category-edit-U5Y5KJ2Y.mjs} +3 -3
- package/dist/{category-list-UY2U7W2O.mjs → category-list-BJLRBYZC.mjs} +8 -8
- package/dist/{category-organize-ZLRKULPP.mjs → category-organize-4NXFDN2I.mjs} +3 -3
- package/dist/{category-products-GMTGQ6IF.mjs → category-products-55LDLRRQ.mjs} +33 -33
- package/dist/{chunk-6WFWT22M.mjs → chunk-2GWGNMAA.mjs} +1 -1
- package/dist/{chunk-4MTDKRXZ.mjs → chunk-2O43G3RH.mjs} +2 -2
- package/dist/{chunk-SDUSE7LQ.mjs → chunk-2VTICXJR.mjs} +1 -1
- package/dist/{chunk-76FLG6KU.mjs → chunk-2X25XWOW.mjs} +1 -1
- package/dist/{chunk-QN6VIPXV.mjs → chunk-2ZKVRTBW.mjs} +1 -1
- package/dist/{chunk-R6ZTODNH.mjs → chunk-32IQRUVY.mjs} +1 -1
- package/dist/{chunk-DU4HQXV4.mjs → chunk-3BE5PBQZ.mjs} +2 -2
- package/dist/{chunk-RYVAFASW.mjs → chunk-3DO2JGVG.mjs} +2 -2
- package/dist/{chunk-A2MVUAWS.mjs → chunk-4BGVSXZZ.mjs} +1 -1
- package/dist/{chunk-N32YWZXM.mjs → chunk-5IFK2ZTA.mjs} +2 -2
- package/dist/{chunk-FP7RSS47.mjs → chunk-6IXLTZ2H.mjs} +3 -3
- package/dist/{chunk-BP6BAFMP.mjs → chunk-6XWHQ6ON.mjs} +2 -2
- package/dist/{chunk-SW4R2ENN.mjs → chunk-7DWBXEH3.mjs} +3 -3
- package/dist/{chunk-KQ4HLAVZ.mjs → chunk-A2UMBW3V.mjs} +1 -1
- package/dist/{chunk-IGHSLFWW.mjs → chunk-AHQI2S2Z.mjs} +1 -1
- package/dist/{chunk-4LDS7KPF.mjs → chunk-ALKTJGWS.mjs} +3 -3
- package/dist/{chunk-WABC6CI6.mjs → chunk-B4GODIOW.mjs} +1 -1
- package/dist/{chunk-TYTNUPXB.mjs → chunk-BYOPZAGX.mjs} +13 -4
- package/dist/{chunk-6H425J3Q.mjs → chunk-C5LYZZZ5.mjs} +1 -1
- package/dist/{chunk-VHFJTEGC.mjs → chunk-CIY65KNH.mjs} +3 -3
- package/dist/{chunk-L7BOZCK7.mjs → chunk-CV65NY6Y.mjs} +1 -1
- package/dist/{chunk-PW3DAC2L.mjs → chunk-DEQUVHHE.mjs} +1 -1
- package/dist/{chunk-3JJBLFYN.mjs → chunk-DODQ3KJT.mjs} +22 -9
- package/dist/{chunk-3OGLDF4U.mjs → chunk-DZWH2RV6.mjs} +1 -1
- package/dist/{chunk-DDA64Z5Z.mjs → chunk-ELPHCFRW.mjs} +2 -2
- package/dist/{chunk-6HP5EYH2.mjs → chunk-ENV6YVOM.mjs} +3 -3
- package/dist/{chunk-QQWDFBIP.mjs → chunk-EQKJ5FSL.mjs} +1 -1
- package/dist/{chunk-NOFMACAV.mjs → chunk-F6PXCY3N.mjs} +1 -1
- package/dist/{chunk-A4C2VYJH.mjs → chunk-GA3UMQMZ.mjs} +1 -1
- package/dist/{chunk-2VAKIUZ7.mjs → chunk-GRNWRTT3.mjs} +2 -2
- package/dist/{chunk-3QAJKSCP.mjs → chunk-GRT22PE5.mjs} +2 -2
- package/dist/{chunk-CB3UMLV2.mjs → chunk-GU5PJRPM.mjs} +1 -1
- package/dist/{chunk-B37E7BMI.mjs → chunk-GXXQ33F7.mjs} +1 -1
- package/dist/{chunk-GNUOKBCP.mjs → chunk-I6E6CALJ.mjs} +1 -1
- package/dist/{chunk-P2BD6TKK.mjs → chunk-IKXQEHLS.mjs} +1 -1
- package/dist/{chunk-MKFZ25UC.mjs → chunk-IXZVR3HG.mjs} +2 -2
- package/dist/{chunk-ZZ2EWIT6.mjs → chunk-KOSCMAIC.mjs} +1 -1
- package/dist/{chunk-AG32AKC7.mjs → chunk-KX4P5L3R.mjs} +1 -1
- package/dist/{chunk-HLM7YH4J.mjs → chunk-KXRW6JRE.mjs} +2 -2
- package/dist/{chunk-XXJVGI3Z.mjs → chunk-L42C44TT.mjs} +228 -220
- package/dist/{chunk-VZZHEKTX.mjs → chunk-LEKWKUIS.mjs} +4 -4
- package/dist/{chunk-J2LAX7WU.mjs → chunk-LOAL44PP.mjs} +1 -1
- package/dist/{chunk-RXXSK34K.mjs → chunk-M4Q5Q4I3.mjs} +2 -2
- package/dist/{chunk-CBKPAUR2.mjs → chunk-MQALAB34.mjs} +2 -2
- package/dist/{chunk-GSNJ5F2J.mjs → chunk-N4N4KGET.mjs} +2 -2
- package/dist/{chunk-XH6DAE6X.mjs → chunk-NDXL7ZT5.mjs} +1 -1
- package/dist/{chunk-EZNWSOIF.mjs → chunk-NL376WAO.mjs} +1 -1
- package/dist/{chunk-D6AQBBX3.mjs → chunk-NQIC7ZFS.mjs} +2 -2
- package/dist/{chunk-XWVD3QIR.mjs → chunk-OGAZYXOV.mjs} +2 -2
- package/dist/{chunk-ZREN2JZD.mjs → chunk-PIR2H25N.mjs} +1 -1
- package/dist/{chunk-YNULA6PU.mjs → chunk-PVW6M64S.mjs} +1 -1
- package/dist/{chunk-5V246MC4.mjs → chunk-QL4XKIVL.mjs} +1 -1
- package/dist/{chunk-XIMLYWX6.mjs → chunk-QTCZFYFH.mjs} +1 -1
- package/dist/{chunk-7OPK4J53.mjs → chunk-QZ6PT4QV.mjs} +2 -2
- package/dist/{chunk-RTIIRX6C.mjs → chunk-R2G2B47Y.mjs} +1 -1
- package/dist/{chunk-HQWG5JDI.mjs → chunk-R2QF6AQX.mjs} +1 -1
- package/dist/{chunk-HO6ZO7NB.mjs → chunk-RLY2SL5E.mjs} +1 -1
- package/dist/{chunk-OMMCX3RN.mjs → chunk-RM6NY572.mjs} +1 -1
- package/dist/{chunk-BBLXCYME.mjs → chunk-ROKB75YP.mjs} +1 -1
- package/dist/{chunk-ECILTBUT.mjs → chunk-S22NYSST.mjs} +1 -1
- package/dist/{chunk-3TFDJIN2.mjs → chunk-S5GNHYAG.mjs} +7 -7
- package/dist/{chunk-FLOWNKXV.mjs → chunk-SNDSWB6B.mjs} +2 -2
- package/dist/{chunk-MHC2COUJ.mjs → chunk-SUYYSKCB.mjs} +18 -18
- package/dist/{chunk-F7E4I7W6.mjs → chunk-T57MRRCF.mjs} +1 -1
- package/dist/{chunk-KD7HQEW5.mjs → chunk-UJXHTZVV.mjs} +1 -1
- package/dist/{chunk-H5X2UU65.mjs → chunk-UKX2FFFV.mjs} +1 -1
- package/dist/{chunk-6MW2EBYM.mjs → chunk-ULQ3V4CC.mjs} +3 -3
- package/dist/{chunk-LGVBA3BT.mjs → chunk-V2LANK5S.mjs} +2 -2
- package/dist/{chunk-ZHYUYZLG.mjs → chunk-VEYZCWO5.mjs} +8 -8
- package/dist/{chunk-GT2YFTRW.mjs → chunk-WGIRB6HY.mjs} +2 -2
- package/dist/{chunk-3BWAYPTZ.mjs → chunk-WT5BXCPV.mjs} +3 -3
- package/dist/{chunk-B6FS55Z7.mjs → chunk-WTK7SR6S.mjs} +3 -3
- package/dist/{chunk-6TLQFNLU.mjs → chunk-X6DSNTTX.mjs} +2 -2
- package/dist/{chunk-HEOZRJG3.mjs → chunk-XYHXWLTJ.mjs} +3 -3
- package/dist/{chunk-ND5FGYV2.mjs → chunk-YA5PS6KW.mjs} +4 -4
- package/dist/{chunk-NJ6OPV6N.mjs → chunk-YGLRZQ4C.mjs} +1 -1
- package/dist/{chunk-43WSJSKM.mjs → chunk-YTN73JYH.mjs} +1 -1
- package/dist/{collection-add-products-DTT7ITJA.mjs → collection-add-products-7CFVTCLK.mjs} +33 -33
- package/dist/{collection-create-7OVRTBRL.mjs → collection-create-CUZFWEOB.mjs} +3 -3
- package/dist/{collection-detail-3V4FIYYV.mjs → collection-detail-3NMMB3CC.mjs} +33 -33
- package/dist/{collection-edit-YIUI5SK4.mjs → collection-edit-22I7EEJG.mjs} +3 -3
- package/dist/{collection-list-7AH5LZRS.mjs → collection-list-VNKB3725.mjs} +35 -35
- package/dist/{collection-metadata-RXRB4RCN.mjs → collection-metadata-ZUFYY4OU.mjs} +28 -28
- package/dist/{customer-create-2RWT77H5.mjs → customer-create-WCBUYT44.mjs} +2 -2
- package/dist/{customer-create-address-X5EP4EQT.mjs → customer-create-address-VWVIJDMK.mjs} +2 -2
- package/dist/{customer-detail-ZDTUY3KL.mjs → customer-detail-PAYUFGP6.mjs} +35 -35
- package/dist/{customer-edit-PXDK272A.mjs → customer-edit-FMK2AWZ5.mjs} +2 -2
- package/dist/{customer-group-add-customers-FOKA5PYP.mjs → customer-group-add-customers-MW2XH2F6.mjs} +9 -9
- package/dist/{customer-group-create-GWEHHTQD.mjs → customer-group-create-Y5O2CJOI.mjs} +2 -2
- package/dist/{customer-group-detail-RC7IO4UD.mjs → customer-group-detail-LJ6YVB2C.mjs} +35 -35
- package/dist/{customer-group-edit-F3XRLAF6.mjs → customer-group-edit-SMVW7PHM.mjs} +2 -2
- package/dist/{customer-group-list-G46JQRRF.mjs → customer-group-list-M2OOZLIZ.mjs} +33 -33
- package/dist/{customer-group-metadata-M63BCTD5.mjs → customer-group-metadata-XJIMV7QU.mjs} +2 -2
- package/dist/{customer-list-7BFRVNU3.mjs → customer-list-MZ7ZRERV.mjs} +9 -9
- package/dist/{customer-metadata-UZ75QGVE.mjs → customer-metadata-E32DPXXE.mjs} +2 -2
- package/dist/{customers-add-customer-group-2BJFPC3A.mjs → customers-add-customer-group-IAIRRQ2I.mjs} +32 -32
- package/dist/{edit-inventory-item-KNWCRG7T.mjs → edit-inventory-item-5RPZHCM7.mjs} +2 -2
- package/dist/{edit-inventory-item-attributes-XLTAPWRB.mjs → edit-inventory-item-attributes-R73ZTBYG.mjs} +2 -2
- package/dist/{edit-reservation-JR62KO2L.mjs → edit-reservation-WMLAFMYU.mjs} +4 -4
- package/dist/{edit-rules-HB4A644O.mjs → edit-rules-KV43O773.mjs} +29 -29
- package/dist/en.json +1 -0
- package/dist/{inventory-create-TM7DRQZG.mjs → inventory-create-NW5WSPBV.mjs} +28 -28
- package/dist/{inventory-detail-PRDW2T5W.mjs → inventory-detail-ZJ5U5FSA.mjs} +34 -34
- package/dist/{inventory-list-REOKWPTA.mjs → inventory-list-HHTQRKQW.mjs} +7 -7
- package/dist/{inventory-metadata-IWGJVSHB.mjs → inventory-metadata-7XR4ON7G.mjs} +28 -28
- package/dist/{inventory-stock-RZAZU4KX.mjs → inventory-stock-VTIDGTOY.mjs} +28 -28
- package/dist/{invite-6JLLYWXZ.mjs → invite-U4I4IUOM.mjs} +3 -3
- package/dist/{location-create-B7JUGANW.mjs → location-create-GZCUNYDT.mjs} +2 -2
- package/dist/{location-detail-35NEWZKT.mjs → location-detail-WZM4EXFM.mjs} +28 -28
- package/dist/{location-edit-XW2XJCZH.mjs → location-edit-VNEMLWGR.mjs} +2 -2
- package/dist/{location-fulfillment-providers-YWEPJ57C.mjs → location-fulfillment-providers-DNIVH7XD.mjs} +35 -35
- package/dist/{location-list-VZOXJEI5.mjs → location-list-W6EHBBE5.mjs} +5 -5
- package/dist/{location-sales-channels-DUPACZLT.mjs → location-sales-channels-3JAXXM3Q.mjs} +12 -12
- package/dist/{location-service-zone-create-JQPQSSVK.mjs → location-service-zone-create-D2HXXX63.mjs} +9 -9
- package/dist/{location-service-zone-edit-PJUPJDEG.mjs → location-service-zone-edit-LCBBZ2OA.mjs} +4 -4
- package/dist/{location-service-zone-manage-areas-5AU66GAH.mjs → location-service-zone-manage-areas-LVVT6XBE.mjs} +9 -9
- package/dist/{location-service-zone-shipping-option-create-HS74DJTQ.mjs → location-service-zone-shipping-option-create-F3EQW67U.mjs} +28 -28
- package/dist/{location-service-zone-shipping-option-edit-JWT5HH5D.mjs → location-service-zone-shipping-option-edit-27MYKN7R.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-pricing-KLOFY44Q.mjs → location-service-zone-shipping-option-pricing-GJIO4RRM.mjs} +6 -6
- package/dist/{login-YVI67KBS.mjs → login-VZALGB6R.mjs} +28 -28
- package/dist/{manage-locations-IWTWVY7H.mjs → manage-locations-WMH3RQMR.mjs} +3 -3
- package/dist/{order-allocate-items-CIJK55LY.mjs → order-allocate-items-MZ7Y4FU4.mjs} +5 -5
- package/dist/{order-create-claim-4JQMTZGT.mjs → order-create-claim-2FPE6XP2.mjs} +35 -35
- package/dist/{order-create-edit-ZC3FZWQZ.mjs → order-create-edit-PVGKIS6G.mjs} +33 -33
- package/dist/{order-create-exchange-RVAH6H2E.mjs → order-create-exchange-G4JY4FSX.mjs} +35 -35
- package/dist/{order-create-fulfillment-F5NOZQ2M.mjs → order-create-fulfillment-VTICR6OE.mjs} +28 -28
- package/dist/{order-create-refund-G4444W43.mjs → order-create-refund-RWDVIXPV.mjs} +28 -28
- package/dist/{order-create-return-OELA6QXR.mjs → order-create-return-VEUCH5BA.mjs} +12 -12
- package/dist/{order-create-shipment-BO2TG4ND.mjs → order-create-shipment-2KNYEHSU.mjs} +28 -28
- package/dist/{order-detail-UOE5NAML.mjs → order-detail-2EFNG3UB.mjs} +35 -35
- package/dist/{order-edit-billing-address-W7T3Z3DG.mjs → order-edit-billing-address-T6BIIRAX.mjs} +28 -28
- package/dist/{order-edit-email-WK7HHXI3.mjs → order-edit-email-SLUOGWRO.mjs} +28 -28
- package/dist/{order-edit-shipping-address-WBEJPXPN.mjs → order-edit-shipping-address-YUES5K5Q.mjs} +28 -28
- package/dist/{order-list-O7N5B5NA.mjs → order-list-ITNDJIV2.mjs} +52 -45
- package/dist/{order-metadata-MXQFEWGS.mjs → order-metadata-HS33MC6S.mjs} +28 -28
- package/dist/{order-receive-return-Q6OY6PUN.mjs → order-receive-return-E6BGSZVL.mjs} +29 -29
- package/dist/{order-request-transfer-YN3R6RX2.mjs → order-request-transfer-7IIDQ37I.mjs} +28 -28
- package/dist/{price-list-configuration-3TSS2JEF.mjs → price-list-configuration-WQEQFG6M.mjs} +9 -9
- package/dist/{price-list-create-I7QC5MFY.mjs → price-list-create-36BOXETM.mjs} +35 -35
- package/dist/{price-list-detail-H6A2TCGU.mjs → price-list-detail-6CJ63F65.mjs} +35 -35
- package/dist/{price-list-edit-OWG6LI2C.mjs → price-list-edit-GXDLVOU4.mjs} +4 -4
- package/dist/{price-list-list-7CIK7S7Z.mjs → price-list-list-2HDOJIC6.mjs} +9 -9
- package/dist/{price-list-prices-add-4Q34KDIJ.mjs → price-list-prices-add-AVPP57TL.mjs} +34 -34
- package/dist/{price-list-prices-edit-I5LZBQID.mjs → price-list-prices-edit-J7HCNDTO.mjs} +8 -8
- package/dist/{product-attributes-ZSMCAMC3.mjs → product-attributes-2MOCN4AC.mjs} +34 -34
- package/dist/{product-create-O3G34UTE.mjs → product-create-4RYWBBFD.mjs} +41 -41
- package/dist/{product-create-option-5EKDKHMF.mjs → product-create-option-D2636LJL.mjs} +2 -2
- package/dist/{product-create-variant-YWJQ4PYL.mjs → product-create-variant-ZWY57BX7.mjs} +28 -28
- package/dist/{product-detail-2BPVPSPW.mjs → product-detail-VUAVAV4Y.mjs} +37 -37
- package/dist/{product-edit-C32USOEK.mjs → product-edit-QRSQ7N2D.mjs} +34 -34
- package/dist/{product-edit-option-HLNX5G7Q.mjs → product-edit-option-DYAFZIT2.mjs} +2 -2
- package/dist/{product-export-EAMS4SKO.mjs → product-export-5WBXPUYP.mjs} +34 -34
- package/dist/{product-image-variants-edit-JTL3BHGL.mjs → product-image-variants-edit-T3STDZJG.mjs} +32 -32
- package/dist/{product-import-ACXCPXD7.mjs → product-import-YC7GJ4BW.mjs} +31 -30
- package/dist/{product-list-GE4VT43B.mjs → product-list-BX2QNNQK.mjs} +38 -38
- package/dist/{product-media-YWNIWBHP.mjs → product-media-UQVTSGI6.mjs} +4 -4
- package/dist/{product-metadata-WVIBMIAW.mjs → product-metadata-LMDEXR3V.mjs} +28 -28
- package/dist/{product-organization-7L23ZMM2.mjs → product-organization-FCLESZIL.mjs} +35 -35
- package/dist/{product-prices-6YVAM4CA.mjs → product-prices-MCZYVPQW.mjs} +5 -5
- package/dist/{product-sales-channels-LRMKWU4C.mjs → product-sales-channels-LRMOPHMH.mjs} +11 -11
- package/dist/{product-shipping-profile-ESJQNEHO.mjs → product-shipping-profile-EKVSMZ6F.mjs} +34 -34
- package/dist/{product-stock-IIV6XKRP.mjs → product-stock-O2BH5R45.mjs} +28 -28
- package/dist/{product-tag-create-QUZWUEQC.mjs → product-tag-create-GOJTE5XA.mjs} +28 -28
- package/dist/{product-tag-detail-BOMQSLM7.mjs → product-tag-detail-LDKRRJWH.mjs} +42 -42
- package/dist/{product-tag-edit-2LY6INKU.mjs → product-tag-edit-IT4GHLSO.mjs} +28 -28
- package/dist/{product-tag-list-DBBA2E7E.mjs → product-tag-list-3ERYK5WE.mjs} +42 -42
- package/dist/{product-tag-metadata-32BC53NM.mjs → product-tag-metadata-QV2BOGP2.mjs} +28 -28
- package/dist/{product-type-create-HA2H5JRC.mjs → product-type-create-AHVZETDR.mjs} +2 -2
- package/dist/{product-type-detail-AGLZX4ZT.mjs → product-type-detail-UJ6QTCGQ.mjs} +34 -34
- package/dist/{product-type-edit-FQZZ44YX.mjs → product-type-edit-2RGFBZPK.mjs} +2 -2
- package/dist/{product-type-list-WCAZPGMV.mjs → product-type-list-73DQPW4H.mjs} +9 -9
- package/dist/{product-type-metadata-KW2QKWRE.mjs → product-type-metadata-5TDBJGNQ.mjs} +28 -28
- package/dist/{product-variant-detail-J66WSXOT.mjs → product-variant-detail-JMPD7LEZ.mjs} +32 -32
- package/dist/{product-variant-edit-MJEWZRRV.mjs → product-variant-edit-DW27AYBX.mjs} +28 -28
- package/dist/{product-variant-manage-inventory-items-4ZW3N6EF.mjs → product-variant-manage-inventory-items-T5OB3YX3.mjs} +2 -2
- package/dist/{product-variant-media-CTVHXXX5.mjs → product-variant-media-PHRCKUDK.mjs} +2 -2
- package/dist/{product-variant-metadata-JNRBBYYG.mjs → product-variant-metadata-4KJE6B2R.mjs} +28 -28
- package/dist/{profile-detail-HEOWUNLV.mjs → profile-detail-MEZKVQAB.mjs} +3 -3
- package/dist/{profile-edit-WSQGWMHA.mjs → profile-edit-XAHDV2DG.mjs} +3 -3
- package/dist/{promotion-add-campaign-I55XNZQ6.mjs → promotion-add-campaign-XJB2ZKZ3.mjs} +6 -6
- package/dist/{promotion-create-FECIHPBJ.mjs → promotion-create-F27AOTVZ.mjs} +32 -32
- package/dist/{promotion-detail-GFJYZ2DN.mjs → promotion-detail-L3FNHH6O.mjs} +31 -31
- package/dist/{promotion-edit-details-QMUHWNFI.mjs → promotion-edit-details-JMZ77QJ4.mjs} +2 -2
- package/dist/{promotion-list-SPCZRAEB.mjs → promotion-list-R5JKSO4I.mjs} +6 -6
- package/dist/{refund-reason-create-3QDXRZW2.mjs → refund-reason-create-5ATQ2IPU.mjs} +28 -28
- package/dist/{refund-reason-edit-GP4QIAPV.mjs → refund-reason-edit-F7AMOTG3.mjs} +28 -28
- package/dist/{refund-reason-list-I3G4VWHS.mjs → refund-reason-list-NS4SVHGZ.mjs} +38 -38
- package/dist/{region-add-countries-RXLJ3UYM.mjs → region-add-countries-G5BOUL2E.mjs} +7 -7
- package/dist/{region-create-MJ5ATAOA.mjs → region-create-MLPUWT5W.mjs} +8 -8
- package/dist/{region-detail-P3AKQRZR.mjs → region-detail-RICQRZUA.mjs} +7 -7
- package/dist/{region-edit-PP2YZS6D.mjs → region-edit-QCN7SMR5.mjs} +4 -4
- package/dist/{region-list-LK57K7DN.mjs → region-list-CJYT43SH.mjs} +7 -7
- package/dist/{region-metadata-2SUKS6MF.mjs → region-metadata-CRAHVHOC.mjs} +28 -28
- package/dist/{reservation-create-JBHLL4U6.mjs → reservation-create-YZMZ6HSS.mjs} +4 -4
- package/dist/{reservation-detail-Q36HIT3K.mjs → reservation-detail-6MCBQZAE.mjs} +28 -28
- package/dist/{reservation-list-VGKXDQW4.mjs → reservation-list-XP4YX4TR.mjs} +9 -9
- package/dist/{reservation-metadata-TCU4LNBY.mjs → reservation-metadata-IQNJPNAX.mjs} +28 -28
- package/dist/{reset-password-PMX6YLXP.mjs → reset-password-CUEG23GU.mjs} +2 -2
- package/dist/{return-reason-create-E5PXPJD4.mjs → return-reason-create-45IARQ5L.mjs} +2 -2
- package/dist/{return-reason-edit-ARXCGC4I.mjs → return-reason-edit-5FIOEJ5Y.mjs} +2 -2
- package/dist/{return-reason-list-LFRL4JWD.mjs → return-reason-list-7MBVORVO.mjs} +12 -12
- package/dist/{sales-channel-add-products-UCCSTQGB.mjs → sales-channel-add-products-GQQ7Z3PT.mjs} +33 -33
- package/dist/{sales-channel-create-M3UD4ZRC.mjs → sales-channel-create-7ISLGNGC.mjs} +3 -3
- package/dist/{sales-channel-detail-B5MZ7VQB.mjs → sales-channel-detail-P2HXFYB4.mjs} +33 -33
- package/dist/{sales-channel-edit-CF3V56EO.mjs → sales-channel-edit-2PEHGAWF.mjs} +3 -3
- package/dist/{sales-channel-list-VEQGGQ52.mjs → sales-channel-list-4PJLCQ77.mjs} +35 -35
- package/dist/{sales-channel-metadata-QDEIKBDZ.mjs → sales-channel-metadata-ZOCPAIGM.mjs} +28 -28
- package/dist/{shipping-option-type-create-7K5PHNTR.mjs → shipping-option-type-create-YR2QV2OG.mjs} +28 -28
- package/dist/{shipping-option-type-detail-EKLOJ27R.mjs → shipping-option-type-detail-TYHGCV2X.mjs} +29 -29
- package/dist/{shipping-option-type-edit-SUVCI7M6.mjs → shipping-option-type-edit-6KL3MHVT.mjs} +28 -28
- package/dist/{shipping-option-type-list-FULQPRP7.mjs → shipping-option-type-list-AWJRR7U5.mjs} +34 -34
- package/dist/{shipping-profile-create-W6X6LXVM.mjs → shipping-profile-create-372EMPUI.mjs} +2 -2
- package/dist/{shipping-profile-detail-MNNTDXB3.mjs → shipping-profile-detail-MRXUOUXK.mjs} +2 -2
- package/dist/{shipping-profile-metadata-BZAFDTKR.mjs → shipping-profile-metadata-A33XKBQN.mjs} +28 -28
- package/dist/{shipping-profiles-list-CHDEMPD5.mjs → shipping-profiles-list-7SVGIP72.mjs} +6 -6
- package/dist/{store-add-currencies-AD3OAHWB.mjs → store-add-currencies-V3IBSI45.mjs} +8 -8
- package/dist/{store-detail-6CDPNRPU.mjs → store-detail-3WFTRPJW.mjs} +32 -32
- package/dist/{store-edit-XFKVNMKQ.mjs → store-edit-FNKVB3UA.mjs} +3 -3
- package/dist/{store-metadata-H6WLUSLR.mjs → store-metadata-LMRFCZ3J.mjs} +28 -28
- package/dist/{tax-region-create-7LXPXXBU.mjs → tax-region-create-5Y6EA7XE.mjs} +28 -28
- package/dist/{tax-region-detail-4F6ET3YB.mjs → tax-region-detail-HXVZA2PP.mjs} +47 -47
- package/dist/{tax-region-edit-OXOISBP2.mjs → tax-region-edit-IKEWHRUK.mjs} +28 -28
- package/dist/{tax-region-list-SVLMREE6.mjs → tax-region-list-HQMSVGDD.mjs} +5 -5
- package/dist/{tax-region-province-create-AMWCXBJJ.mjs → tax-region-province-create-6GZCPPGW.mjs} +2 -2
- package/dist/{tax-region-province-detail-SOTJNENP.mjs → tax-region-province-detail-VT3BUKLS.mjs} +45 -45
- package/dist/{tax-region-tax-override-create-4CPDRZ5H.mjs → tax-region-tax-override-create-RZUVOGNR.mjs} +42 -42
- package/dist/{tax-region-tax-override-edit-CZPXLJAC.mjs → tax-region-tax-override-edit-OEQOEE6I.mjs} +43 -43
- package/dist/{tax-region-tax-rate-create-F73NOM47.mjs → tax-region-tax-rate-create-TJLSRCEC.mjs} +3 -3
- package/dist/{tax-region-tax-rate-edit-VEQJ45KI.mjs → tax-region-tax-rate-edit-DEKCUURK.mjs} +3 -3
- package/dist/{user-detail-3FEQ5DTG.mjs → user-detail-DFZPKHG2.mjs} +3 -3
- package/dist/{user-edit-MWIRC7L3.mjs → user-edit-NFRTYOKO.mjs} +2 -2
- package/dist/{user-invite-VBOCEAZL.mjs → user-invite-QK3ZCSGG.mjs} +6 -6
- package/dist/{user-list-FQG5MKPV.mjs → user-list-RH43CTBN.mjs} +9 -9
- package/dist/{user-metadata-VWWK22Q5.mjs → user-metadata-BQKW4WAU.mjs} +28 -28
- package/dist/{workflow-execution-detail-TXLX5WC3.mjs → workflow-execution-detail-D5QUZFTV.mjs} +28 -28
- package/dist/{workflow-execution-list-RDA4VEJJ.mjs → workflow-execution-list-6UTBTVX4.mjs} +6 -6
- package/package.json +9 -9
- package/src/components/common/file-upload/file-upload.tsx +23 -6
- 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/dashboard-app.tsx +1 -0
- package/src/dashboard-app/types.ts +1 -0
- package/src/i18n/languages.ts +18 -18
- package/src/i18n/translations/$schema.json +3 -0
- package/src/i18n/translations/en.json +1 -0
- package/src/lib/client/client.ts +1 -1
- 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-import/components/upload-import.tsx +1 -0
|
@@ -11,39 +11,39 @@ import "./chunk-LPEUYMRK.mjs";
|
|
|
11
11
|
import "./chunk-OC7BQLYI.mjs";
|
|
12
12
|
import "./chunk-S4DMV3ZT.mjs";
|
|
13
13
|
import "./chunk-OBQI23QM.mjs";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-KXRW6JRE.mjs";
|
|
15
|
+
import "./chunk-KOSCMAIC.mjs";
|
|
16
|
+
import "./chunk-X6DSNTTX.mjs";
|
|
17
|
+
import "./chunk-I6E6CALJ.mjs";
|
|
18
|
+
import "./chunk-B4GODIOW.mjs";
|
|
19
|
+
import "./chunk-N4N4KGET.mjs";
|
|
20
|
+
import "./chunk-QTCZFYFH.mjs";
|
|
21
|
+
import "./chunk-ENV6YVOM.mjs";
|
|
22
|
+
import "./chunk-PIR2H25N.mjs";
|
|
23
|
+
import "./chunk-C5LYZZZ5.mjs";
|
|
24
|
+
import "./chunk-RLY2SL5E.mjs";
|
|
25
25
|
import {
|
|
26
26
|
useUpdateUser,
|
|
27
27
|
useUser
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-2ZKVRTBW.mjs";
|
|
29
|
+
import "./chunk-XYHXWLTJ.mjs";
|
|
30
|
+
import "./chunk-F6PXCY3N.mjs";
|
|
31
|
+
import "./chunk-IXZVR3HG.mjs";
|
|
32
|
+
import "./chunk-R2G2B47Y.mjs";
|
|
33
|
+
import "./chunk-GRT22PE5.mjs";
|
|
34
|
+
import "./chunk-32IQRUVY.mjs";
|
|
35
|
+
import "./chunk-WTK7SR6S.mjs";
|
|
36
|
+
import "./chunk-6XWHQ6ON.mjs";
|
|
37
|
+
import "./chunk-MQALAB34.mjs";
|
|
38
|
+
import "./chunk-OGAZYXOV.mjs";
|
|
39
|
+
import "./chunk-KX4P5L3R.mjs";
|
|
40
|
+
import "./chunk-V2LANK5S.mjs";
|
|
41
|
+
import "./chunk-QZ6PT4QV.mjs";
|
|
42
|
+
import "./chunk-QL4XKIVL.mjs";
|
|
43
|
+
import "./chunk-4BGVSXZZ.mjs";
|
|
44
44
|
import "./chunk-FXYH54JP.mjs";
|
|
45
45
|
import "./chunk-774WSTCC.mjs";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-DEQUVHHE.mjs";
|
|
47
47
|
import "./chunk-QZ7TP4HQ.mjs";
|
|
48
48
|
|
|
49
49
|
// src/routes/users/user-metadata/user-metadata.tsx
|
package/dist/{workflow-execution-detail-TXLX5WC3.mjs → workflow-execution-detail-D5QUZFTV.mjs}
RENAMED
|
@@ -20,43 +20,43 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
useDocumentDirection
|
|
22
22
|
} from "./chunk-S4DMV3ZT.mjs";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-KXRW6JRE.mjs";
|
|
24
|
+
import "./chunk-KOSCMAIC.mjs";
|
|
25
|
+
import "./chunk-X6DSNTTX.mjs";
|
|
26
|
+
import "./chunk-I6E6CALJ.mjs";
|
|
27
|
+
import "./chunk-B4GODIOW.mjs";
|
|
28
|
+
import "./chunk-N4N4KGET.mjs";
|
|
29
29
|
import {
|
|
30
30
|
useWorkflowExecution,
|
|
31
31
|
workflowExecutionsQueryKeys
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
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-
|
|
32
|
+
} from "./chunk-QTCZFYFH.mjs";
|
|
33
|
+
import "./chunk-ENV6YVOM.mjs";
|
|
34
|
+
import "./chunk-PIR2H25N.mjs";
|
|
35
|
+
import "./chunk-C5LYZZZ5.mjs";
|
|
36
|
+
import "./chunk-RLY2SL5E.mjs";
|
|
37
|
+
import "./chunk-2ZKVRTBW.mjs";
|
|
38
|
+
import "./chunk-XYHXWLTJ.mjs";
|
|
39
|
+
import "./chunk-F6PXCY3N.mjs";
|
|
40
|
+
import "./chunk-IXZVR3HG.mjs";
|
|
41
|
+
import "./chunk-R2G2B47Y.mjs";
|
|
42
|
+
import "./chunk-GRT22PE5.mjs";
|
|
43
|
+
import "./chunk-32IQRUVY.mjs";
|
|
44
|
+
import "./chunk-WTK7SR6S.mjs";
|
|
45
|
+
import "./chunk-6XWHQ6ON.mjs";
|
|
46
|
+
import "./chunk-MQALAB34.mjs";
|
|
47
|
+
import "./chunk-OGAZYXOV.mjs";
|
|
48
|
+
import "./chunk-KX4P5L3R.mjs";
|
|
49
|
+
import "./chunk-V2LANK5S.mjs";
|
|
50
|
+
import "./chunk-QZ6PT4QV.mjs";
|
|
51
|
+
import "./chunk-QL4XKIVL.mjs";
|
|
52
|
+
import "./chunk-4BGVSXZZ.mjs";
|
|
53
53
|
import {
|
|
54
54
|
queryClient
|
|
55
55
|
} from "./chunk-FXYH54JP.mjs";
|
|
56
56
|
import "./chunk-774WSTCC.mjs";
|
|
57
57
|
import {
|
|
58
58
|
sdk
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-DEQUVHHE.mjs";
|
|
60
60
|
import "./chunk-QZ7TP4HQ.mjs";
|
|
61
61
|
|
|
62
62
|
// src/routes/workflow-executions/workflow-execution-detail/breadcrumb.tsx
|
|
@@ -9,28 +9,28 @@ 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
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-GU5PJRPM.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SingleColumnPage
|
|
18
18
|
} from "./chunk-GIZFNLKK.mjs";
|
|
19
19
|
import {
|
|
20
20
|
useQueryParams
|
|
21
21
|
} from "./chunk-C76H5USB.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-DZWH2RV6.mjs";
|
|
23
23
|
import {
|
|
24
24
|
useExtension
|
|
25
25
|
} from "./chunk-C5P5PL3E.mjs";
|
|
26
26
|
import "./chunk-LPEUYMRK.mjs";
|
|
27
27
|
import "./chunk-S4DMV3ZT.mjs";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-SUYYSKCB.mjs";
|
|
29
29
|
import {
|
|
30
30
|
useWorkflowExecutions
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QTCZFYFH.mjs";
|
|
32
32
|
import "./chunk-774WSTCC.mjs";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-DEQUVHHE.mjs";
|
|
34
34
|
import "./chunk-QZ7TP4HQ.mjs";
|
|
35
35
|
|
|
36
36
|
// src/routes/workflow-executions/workflow-execution-list/components/workflow-execution-list-table/workflow-execution-list-table.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/dashboard",
|
|
3
|
-
"version": "2.11.4-snapshot-
|
|
3
|
+
"version": "2.11.4-snapshot-20251107094001",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
|
|
6
6
|
"dev": "vite",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@dnd-kit/utilities": "^3.2.2",
|
|
47
47
|
"@hookform/error-message": "^2.0.1",
|
|
48
48
|
"@hookform/resolvers": "3.4.2",
|
|
49
|
-
"@medusajs/admin-shared": "2.11.4-snapshot-
|
|
50
|
-
"@medusajs/icons": "2.11.4-snapshot-
|
|
51
|
-
"@medusajs/js-sdk": "2.11.4-snapshot-
|
|
52
|
-
"@medusajs/ui": "4.0.28-snapshot-
|
|
49
|
+
"@medusajs/admin-shared": "2.11.4-snapshot-20251107094001",
|
|
50
|
+
"@medusajs/icons": "2.11.4-snapshot-20251107094001",
|
|
51
|
+
"@medusajs/js-sdk": "2.11.4-snapshot-20251107094001",
|
|
52
|
+
"@medusajs/ui": "4.0.28-snapshot-20251107094001",
|
|
53
53
|
"@radix-ui/react-dialog": "1.1.4",
|
|
54
54
|
"@radix-ui/react-dismissable-layer": "1.1.4",
|
|
55
55
|
"@tanstack/react-query": "5.64.2",
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"zod": "3.25.76"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@medusajs/admin-shared": "2.11.4-snapshot-
|
|
85
|
-
"@medusajs/admin-vite-plugin": "2.11.4-snapshot-
|
|
86
|
-
"@medusajs/types": "2.11.4-snapshot-
|
|
87
|
-
"@medusajs/ui-preset": "2.11.4-snapshot-
|
|
84
|
+
"@medusajs/admin-shared": "2.11.4-snapshot-20251107094001",
|
|
85
|
+
"@medusajs/admin-vite-plugin": "2.11.4-snapshot-20251107094001",
|
|
86
|
+
"@medusajs/types": "2.11.4-snapshot-20251107094001",
|
|
87
|
+
"@medusajs/ui-preset": "2.11.4-snapshot-20251107094001"
|
|
88
88
|
},
|
|
89
89
|
"packageManager": "yarn@3.2.1"
|
|
90
90
|
}
|
|
@@ -8,21 +8,30 @@ export interface FileType {
|
|
|
8
8
|
file: File
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
export interface RejectedFile {
|
|
12
|
+
file: File
|
|
13
|
+
reason: "size" | "format"
|
|
14
|
+
}
|
|
15
|
+
|
|
11
16
|
export interface FileUploadProps {
|
|
12
17
|
label: string
|
|
13
18
|
multiple?: boolean
|
|
14
19
|
hint?: string
|
|
15
20
|
hasError?: boolean
|
|
16
21
|
formats: string[]
|
|
17
|
-
|
|
22
|
+
maxFileSize?: number // in bytes, defaults to 1MB. Set to Infinity to disable.
|
|
23
|
+
onUploaded: (files: FileType[], rejectedFiles?: RejectedFile[]) => void
|
|
18
24
|
}
|
|
19
25
|
|
|
26
|
+
const DEFAULT_MAX_FILE_SIZE = 1024 * 1024 // 1MB
|
|
27
|
+
|
|
20
28
|
export const FileUpload = ({
|
|
21
29
|
label,
|
|
22
30
|
hint,
|
|
23
31
|
multiple = true,
|
|
24
32
|
hasError,
|
|
25
33
|
formats,
|
|
34
|
+
maxFileSize = DEFAULT_MAX_FILE_SIZE,
|
|
26
35
|
onUploaded,
|
|
27
36
|
}: FileUploadProps) => {
|
|
28
37
|
const [isDragOver, setIsDragOver] = useState<boolean>(false)
|
|
@@ -65,18 +74,26 @@ export const FileUpload = ({
|
|
|
65
74
|
}
|
|
66
75
|
|
|
67
76
|
const fileList = Array.from(files)
|
|
68
|
-
const
|
|
69
|
-
|
|
77
|
+
const validFiles: FileType[] = []
|
|
78
|
+
const rejectedFiles: RejectedFile[] = []
|
|
79
|
+
const normalizedMaxFileSize = Math.min(maxFileSize, Infinity)
|
|
80
|
+
|
|
81
|
+
fileList.forEach((file) => {
|
|
82
|
+
if (file.size > normalizedMaxFileSize) {
|
|
83
|
+
rejectedFiles.push({ file, reason: "size" })
|
|
84
|
+
return
|
|
85
|
+
}
|
|
70
86
|
|
|
87
|
+
const id = Math.random().toString(36).substring(7)
|
|
71
88
|
const previewUrl = URL.createObjectURL(file)
|
|
72
|
-
|
|
89
|
+
validFiles.push({
|
|
73
90
|
id: id,
|
|
74
91
|
url: previewUrl,
|
|
75
92
|
file,
|
|
76
|
-
}
|
|
93
|
+
})
|
|
77
94
|
})
|
|
78
95
|
|
|
79
|
-
onUploaded(
|
|
96
|
+
onUploaded(validFiles, rejectedFiles)
|
|
80
97
|
}
|
|
81
98
|
|
|
82
99
|
const handleDrop = (event: DragEvent) => {
|
|
@@ -17,6 +17,7 @@ type ItemType = "core" | "extension" | "setting"
|
|
|
17
17
|
type NestedItemProps = {
|
|
18
18
|
label: string
|
|
19
19
|
to: string
|
|
20
|
+
translationNs?: string
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
export type INavItem = {
|
|
@@ -27,6 +28,7 @@ export type INavItem = {
|
|
|
27
28
|
type?: ItemType
|
|
28
29
|
from?: string
|
|
29
30
|
nested?: string
|
|
31
|
+
translationNs?: string
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
const BASE_NAV_LINK_CLASSES =
|
|
@@ -90,10 +92,15 @@ export const NavItem = ({
|
|
|
90
92
|
items,
|
|
91
93
|
type = "core",
|
|
92
94
|
from,
|
|
95
|
+
translationNs,
|
|
93
96
|
}: INavItem) => {
|
|
97
|
+
const { t } = useTranslation(translationNs as any)
|
|
94
98
|
const { pathname } = useLocation()
|
|
95
99
|
const [open, setOpen] = useState(getIsOpen(to, items, pathname))
|
|
96
100
|
|
|
101
|
+
// Use translation if translationNs is provided, otherwise use label as-is
|
|
102
|
+
const displayLabel: string = translationNs ? t(label) : label
|
|
103
|
+
|
|
97
104
|
useEffect(() => {
|
|
98
105
|
setOpen(getIsOpen(to, items, pathname))
|
|
99
106
|
}, [pathname, to, items])
|
|
@@ -150,7 +157,7 @@ export const NavItem = ({
|
|
|
150
157
|
</div>
|
|
151
158
|
)}
|
|
152
159
|
<Text size="small" weight="plus" leading="compact">
|
|
153
|
-
{
|
|
160
|
+
{displayLabel}
|
|
154
161
|
</Text>
|
|
155
162
|
</NavLink>
|
|
156
163
|
</NavItemTooltip>
|
|
@@ -166,7 +173,7 @@ export const NavItem = ({
|
|
|
166
173
|
<Icon icon={icon} type={type} />
|
|
167
174
|
</div>
|
|
168
175
|
<Text size="small" weight="plus" leading="compact">
|
|
169
|
-
{
|
|
176
|
+
{displayLabel}
|
|
170
177
|
</Text>
|
|
171
178
|
</RadixCollapsible.Trigger>
|
|
172
179
|
<RadixCollapsible.Content>
|
|
@@ -189,12 +196,15 @@ export const NavItem = ({
|
|
|
189
196
|
}}
|
|
190
197
|
>
|
|
191
198
|
<Text size="small" weight="plus" leading="compact">
|
|
192
|
-
{
|
|
199
|
+
{displayLabel}
|
|
193
200
|
</Text>
|
|
194
201
|
</NavLink>
|
|
195
202
|
</NavItemTooltip>
|
|
196
203
|
</li>
|
|
197
204
|
{items.map((item) => {
|
|
205
|
+
const { t: itemT } = useTranslation(item.translationNs as any)
|
|
206
|
+
const itemLabel: string = item.translationNs ? itemT(item.label) : item.label
|
|
207
|
+
|
|
198
208
|
return (
|
|
199
209
|
<li key={item.to} className="flex h-7 items-center">
|
|
200
210
|
<NavItemTooltip to={item.to}>
|
|
@@ -213,7 +223,7 @@ export const NavItem = ({
|
|
|
213
223
|
}}
|
|
214
224
|
>
|
|
215
225
|
<Text size="small" weight="plus" leading="compact">
|
|
216
|
-
{
|
|
226
|
+
{itemLabel}
|
|
217
227
|
</Text>
|
|
218
228
|
</NavLink>
|
|
219
229
|
</NavItemTooltip>
|
package/src/i18n/languages.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ar,
|
|
3
3
|
bg,
|
|
4
|
+
bs,
|
|
5
|
+
cs,
|
|
6
|
+
de,
|
|
7
|
+
el,
|
|
4
8
|
enUS,
|
|
5
9
|
es,
|
|
10
|
+
faIR,
|
|
6
11
|
fr,
|
|
7
12
|
he,
|
|
13
|
+
hu,
|
|
14
|
+
id,
|
|
8
15
|
it,
|
|
9
16
|
ja,
|
|
17
|
+
ko,
|
|
18
|
+
lt,
|
|
19
|
+
mk,
|
|
20
|
+
mn,
|
|
21
|
+
nl,
|
|
10
22
|
pl,
|
|
23
|
+
pt,
|
|
11
24
|
ptBR,
|
|
12
|
-
|
|
25
|
+
ro,
|
|
26
|
+
ru,
|
|
13
27
|
th,
|
|
14
28
|
tr,
|
|
15
29
|
uk,
|
|
16
|
-
ro,
|
|
17
|
-
mk,
|
|
18
|
-
mn,
|
|
19
|
-
ar,
|
|
20
|
-
zhCN,
|
|
21
|
-
faIR,
|
|
22
|
-
cs,
|
|
23
|
-
ru,
|
|
24
|
-
el,
|
|
25
|
-
lt,
|
|
26
30
|
vi,
|
|
27
|
-
|
|
28
|
-
nl,
|
|
29
|
-
hu,
|
|
30
|
-
bs,
|
|
31
|
-
id,
|
|
31
|
+
zhCN,
|
|
32
32
|
} from "date-fns/locale"
|
|
33
33
|
import { Language } from "./types"
|
|
34
34
|
|
|
@@ -115,7 +115,7 @@ export const languages: Language[] = [
|
|
|
115
115
|
code: "ptPT",
|
|
116
116
|
display_name: "Português (Portugal)",
|
|
117
117
|
ltr: true,
|
|
118
|
-
date_locale:
|
|
118
|
+
date_locale: pt,
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
code: "tr",
|
|
@@ -513,6 +513,7 @@
|
|
|
513
513
|
"uploadImagesLabel": "Upload images",
|
|
514
514
|
"uploadImagesHint": "Drag and drop images here or click to upload.",
|
|
515
515
|
"invalidFileType": "'{{name}}' is not a supported file type. Supported file types are: {{types}}.",
|
|
516
|
+
"fileTooLarge": "One or more files exceed the maximum file size of {{size}}: {{name}}",
|
|
516
517
|
"failedToUpload": "Failed to upload the added media. Please try again.",
|
|
517
518
|
"deleteWarning_one": "You are about to delete {{count}} image. This action cannot be undone.",
|
|
518
519
|
"deleteWarning_other": "You are about to delete {{count}} images. This action cannot be undone.",
|
package/src/lib/client/client.ts
CHANGED
package/src/routes/orders/order-list/components/order-list-table/use-order-table-filters.tsx
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { useMemo } from "react"
|
|
2
2
|
import { useTranslation } from "react-i18next"
|
|
3
|
-
import {
|
|
4
|
-
import { HttpTypes } from "@medusajs/types"
|
|
5
|
-
import { useDataTableDateFilters } from "../../../../../components/data-table/helpers/general/use-data-table-date-filters"
|
|
3
|
+
import { Filter } from "../../../../../components/table/data-table"
|
|
6
4
|
import { useRegions } from "../../../../../hooks/api/regions"
|
|
7
5
|
import { useSalesChannels } from "../../../../../hooks/api/sales-channels"
|
|
8
6
|
|
|
9
|
-
const filterHelper = createDataTableFilterHelper<HttpTypes.AdminOrder>()
|
|
10
|
-
|
|
11
7
|
/**
|
|
12
|
-
* Hook to create filters in the format expected by
|
|
8
|
+
* Hook to create filters in the format expected by the deprecated DataTable component
|
|
13
9
|
*/
|
|
14
10
|
export const useOrderTableFilters = () => {
|
|
15
11
|
const { t } = useTranslation()
|
|
16
|
-
const dateFilters = useDataTableDateFilters()
|
|
17
12
|
|
|
18
13
|
const { regions } = useRegions({
|
|
19
14
|
limit: 1000,
|
|
@@ -25,38 +20,53 @@ export const useOrderTableFilters = () => {
|
|
|
25
20
|
fields: "id,name",
|
|
26
21
|
})
|
|
27
22
|
|
|
23
|
+
// Until we migrate to the new DataTable component, we can't use `createDataTableFilterHelper` filter structure, since th identifier there is `is`
|
|
24
|
+
// while deprecated component expexts `key`. Will be ready to migrate once SUP-2651 is done
|
|
28
25
|
return useMemo(() => {
|
|
29
|
-
const filters = [
|
|
26
|
+
const filters: Filter[] = [
|
|
27
|
+
{
|
|
28
|
+
key: "created_at",
|
|
29
|
+
label: t("fields.createdAt"),
|
|
30
|
+
type: "date",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: "updated_at",
|
|
34
|
+
label: t("fields.updatedAt"),
|
|
35
|
+
type: "date",
|
|
36
|
+
},
|
|
37
|
+
]
|
|
30
38
|
|
|
31
39
|
if (regions?.length) {
|
|
32
|
-
filters.push(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
filters.push({
|
|
41
|
+
key: "region_id",
|
|
42
|
+
label: t("fields.region"),
|
|
43
|
+
type: "select",
|
|
44
|
+
multiple: true,
|
|
45
|
+
searchable: true,
|
|
46
|
+
options: regions.map((r) => ({
|
|
47
|
+
label: r.name,
|
|
48
|
+
value: r.id,
|
|
49
|
+
})),
|
|
50
|
+
})
|
|
42
51
|
}
|
|
43
52
|
|
|
44
53
|
if (sales_channels?.length) {
|
|
45
|
-
filters.push(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
filters.push({
|
|
55
|
+
key: "sales_channel_id",
|
|
56
|
+
label: t("fields.salesChannel"),
|
|
57
|
+
type: "select",
|
|
58
|
+
multiple: true,
|
|
59
|
+
searchable: true,
|
|
60
|
+
options: sales_channels.map((s) => ({
|
|
61
|
+
label: s.name,
|
|
62
|
+
value: s.id,
|
|
63
|
+
})),
|
|
64
|
+
})
|
|
55
65
|
}
|
|
56
66
|
|
|
57
67
|
// TODO: Add payment and fulfillment status filters when they are properly linked to orders
|
|
58
68
|
// Note: These filters are commented out in the legacy implementation as well
|
|
59
69
|
|
|
60
70
|
return filters
|
|
61
|
-
}, [regions, sales_channels,
|
|
62
|
-
}
|
|
71
|
+
}, [regions, sales_channels, t])
|
|
72
|
+
}
|
package/src/routes/products/common/components/upload-media-form-item/upload-media-form-item.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import { z } from "zod"
|
|
|
5
5
|
import {
|
|
6
6
|
FileType,
|
|
7
7
|
FileUpload,
|
|
8
|
+
RejectedFile,
|
|
8
9
|
} from "../../../../../components/common/file-upload"
|
|
9
10
|
import { Form } from "../../../../../components/common/form"
|
|
10
11
|
import { MediaSchema } from "../../../product-create/constants"
|
|
@@ -47,11 +48,13 @@ export const UploadMediaFormItem = ({
|
|
|
47
48
|
const { t } = useTranslation()
|
|
48
49
|
|
|
49
50
|
const hasInvalidFiles = useCallback(
|
|
50
|
-
(fileList: FileType[]) => {
|
|
51
|
+
(fileList: FileType[] = [], rejectedFiles: RejectedFile[] = []) => {
|
|
51
52
|
const invalidFile = fileList.find(
|
|
52
|
-
(f) => !SUPPORTED_FORMATS.includes(f
|
|
53
|
+
(f) => !SUPPORTED_FORMATS.includes(f?.file?.type)
|
|
53
54
|
)
|
|
54
55
|
|
|
56
|
+
let hasInvalidFile = false;
|
|
57
|
+
|
|
55
58
|
if (invalidFile) {
|
|
56
59
|
form.setError("media", {
|
|
57
60
|
type: "invalid_file",
|
|
@@ -61,22 +64,37 @@ export const UploadMediaFormItem = ({
|
|
|
61
64
|
}),
|
|
62
65
|
})
|
|
63
66
|
|
|
64
|
-
|
|
67
|
+
hasInvalidFile = true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const fileSizeRejections = rejectedFiles.filter((f) => f?.reason === "size")
|
|
71
|
+
|
|
72
|
+
if (fileSizeRejections.length) {
|
|
73
|
+
const fileNames = "\n" + fileSizeRejections.slice(0, 5).map((f) => f.file.name).join("\n")
|
|
74
|
+
form.setError("media", {
|
|
75
|
+
type: "file_too_large",
|
|
76
|
+
message: t("products.media.fileTooLarge", {
|
|
77
|
+
name: fileNames,
|
|
78
|
+
size: "1MB",
|
|
79
|
+
}),
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
hasInvalidFile = true;
|
|
65
83
|
}
|
|
66
84
|
|
|
67
|
-
return
|
|
85
|
+
return hasInvalidFile;
|
|
68
86
|
},
|
|
69
87
|
[form, t]
|
|
70
88
|
)
|
|
71
89
|
|
|
72
90
|
const onUploaded = useCallback(
|
|
73
|
-
(files: FileType[]) => {
|
|
91
|
+
(files: FileType[] = [], rejectedFiles: RejectedFile[] = []) => {
|
|
74
92
|
form.clearErrors("media")
|
|
75
|
-
if (hasInvalidFiles(files)) {
|
|
93
|
+
if (hasInvalidFiles(files, rejectedFiles)) {
|
|
76
94
|
return
|
|
77
95
|
}
|
|
78
96
|
|
|
79
|
-
files
|
|
97
|
+
files?.forEach((f) => append({ ...f, isThumbnail: false }))
|
|
80
98
|
},
|
|
81
99
|
[form, append, hasInvalidFiles]
|
|
82
100
|
)
|
|
@@ -106,7 +124,7 @@ export const UploadMediaFormItem = ({
|
|
|
106
124
|
onUploaded={onUploaded}
|
|
107
125
|
/>
|
|
108
126
|
</Form.Control>
|
|
109
|
-
<Form.ErrorMessage />
|
|
127
|
+
<Form.ErrorMessage className="whitespace-pre-line" />
|
|
110
128
|
</div>
|
|
111
129
|
</Form.Item>
|
|
112
130
|
)
|