@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
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Combobox
|
|
3
|
+
} from "./chunk-5AM254NB.mjs";
|
|
4
|
+
import "./chunk-IUCDCPJU.mjs";
|
|
5
|
+
import {
|
|
6
|
+
KeyboundForm
|
|
7
|
+
} from "./chunk-6HTZNHPT.mjs";
|
|
8
|
+
import {
|
|
9
|
+
RouteDrawer,
|
|
10
|
+
useRouteModal
|
|
11
|
+
} from "./chunk-AERWK3TJ.mjs";
|
|
12
|
+
import {
|
|
13
|
+
PRODUCT_DETAIL_FIELDS
|
|
14
|
+
} from "./chunk-QPJUVTKW.mjs";
|
|
15
|
+
import {
|
|
16
|
+
useExtendableForm
|
|
17
|
+
} from "./chunk-YVQIO3JS.mjs";
|
|
18
|
+
import "./chunk-2SSUH2HJ.mjs";
|
|
19
|
+
import "./chunk-ONB3JEHR.mjs";
|
|
20
|
+
import "./chunk-YCDDT44O.mjs";
|
|
21
|
+
import "./chunk-4GQOUCX6.mjs";
|
|
22
|
+
import "./chunk-RYJ2UVJE.mjs";
|
|
23
|
+
import "./chunk-D3YQN7HV.mjs";
|
|
24
|
+
import "./chunk-PMA2D6IL.mjs";
|
|
25
|
+
import "./chunk-MNXC6Q4F.mjs";
|
|
26
|
+
import "./chunk-DG7J63J2.mjs";
|
|
27
|
+
import "./chunk-M32MJOJN.mjs";
|
|
28
|
+
import {
|
|
29
|
+
useExtension
|
|
30
|
+
} from "./chunk-C5P5PL3E.mjs";
|
|
31
|
+
import "./chunk-LPEUYMRK.mjs";
|
|
32
|
+
import "./chunk-ZCARHA6C.mjs";
|
|
33
|
+
import "./chunk-OZPB6JBL.mjs";
|
|
34
|
+
import "./chunk-OC7BQLYI.mjs";
|
|
35
|
+
import "./chunk-S4DMV3ZT.mjs";
|
|
36
|
+
import "./chunk-SUYYSKCB.mjs";
|
|
37
|
+
import {
|
|
38
|
+
Form
|
|
39
|
+
} from "./chunk-OBQI23QM.mjs";
|
|
40
|
+
import "./chunk-ZOJRDXH3.mjs";
|
|
41
|
+
import "./chunk-I4OBEAOJ.mjs";
|
|
42
|
+
import "./chunk-YGEJFHC3.mjs";
|
|
43
|
+
import "./chunk-HI6URQ7H.mjs";
|
|
44
|
+
import "./chunk-6CLQKVAU.mjs";
|
|
45
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
46
|
+
import "./chunk-HKIF5HVL.mjs";
|
|
47
|
+
import "./chunk-WAXMT4IY.mjs";
|
|
48
|
+
import "./chunk-DYDGGABK.mjs";
|
|
49
|
+
import "./chunk-LGNTHZ5Y.mjs";
|
|
50
|
+
import "./chunk-CN7JXSGW.mjs";
|
|
51
|
+
import "./chunk-5BQQRHQS.mjs";
|
|
52
|
+
import "./chunk-7H6DB666.mjs";
|
|
53
|
+
import "./chunk-2WLOIS3L.mjs";
|
|
54
|
+
import "./chunk-5AFMB7XQ.mjs";
|
|
55
|
+
import "./chunk-A63RZVX6.mjs";
|
|
56
|
+
import "./chunk-HBXV7ENS.mjs";
|
|
57
|
+
import "./chunk-CDORR33H.mjs";
|
|
58
|
+
import "./chunk-VW34SZWE.mjs";
|
|
59
|
+
import "./chunk-MOGV3UZD.mjs";
|
|
60
|
+
import "./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
|
+
import {
|
|
67
|
+
useLinkProductOptions,
|
|
68
|
+
useProduct,
|
|
69
|
+
useProductOptions
|
|
70
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
71
|
+
import "./chunk-FXYH54JP.mjs";
|
|
72
|
+
import "./chunk-774WSTCC.mjs";
|
|
73
|
+
import "./chunk-NFEK63OE.mjs";
|
|
74
|
+
import "./chunk-QZ7TP4HQ.mjs";
|
|
75
|
+
|
|
76
|
+
// src/routes/products/product-options-manage/product-options-manage.tsx
|
|
77
|
+
import { Heading } from "@medusajs/ui";
|
|
78
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
79
|
+
import { useParams } from "react-router-dom";
|
|
80
|
+
|
|
81
|
+
// src/routes/products/product-options-manage/components/product-options-manage-form/product-options-manage-form.tsx
|
|
82
|
+
import { Button, Hint, Label, toast } from "@medusajs/ui";
|
|
83
|
+
import { useMemo, useState } from "react";
|
|
84
|
+
import { useTranslation } from "react-i18next";
|
|
85
|
+
import * as zod from "zod";
|
|
86
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
87
|
+
var ProductOptionsManageSchema = zod.object({
|
|
88
|
+
option_ids: zod.array(zod.string()),
|
|
89
|
+
option_values: zod.record(zod.array(zod.string())).optional()
|
|
90
|
+
});
|
|
91
|
+
var ProductOptionsManageForm = ({
|
|
92
|
+
product
|
|
93
|
+
}) => {
|
|
94
|
+
const { t } = useTranslation();
|
|
95
|
+
const { handleSuccess } = useRouteModal();
|
|
96
|
+
const { getFormConfigs } = useExtension();
|
|
97
|
+
const configs = getFormConfigs("product", "edit");
|
|
98
|
+
const { product_options = [], isLoading } = useProductOptions({
|
|
99
|
+
is_exclusive: false
|
|
100
|
+
});
|
|
101
|
+
const productOptionChoices = useMemo(() => {
|
|
102
|
+
return product_options.map((option) => ({
|
|
103
|
+
value: option.id,
|
|
104
|
+
label: option.title
|
|
105
|
+
}));
|
|
106
|
+
}, [product_options]);
|
|
107
|
+
const [selectedOptionIds, setSelectedOptionIds] = useState(
|
|
108
|
+
product.options?.map((opt) => opt.id) || []
|
|
109
|
+
);
|
|
110
|
+
const [selectedOptionValues, setSelectedOptionValues] = useState(() => {
|
|
111
|
+
const initialValues = {};
|
|
112
|
+
product.options?.forEach((opt) => {
|
|
113
|
+
initialValues[opt.id] = opt.values?.map((v) => v.id) || [];
|
|
114
|
+
});
|
|
115
|
+
return initialValues;
|
|
116
|
+
});
|
|
117
|
+
const form = useExtendableForm({
|
|
118
|
+
defaultValues: {
|
|
119
|
+
option_ids: product.options?.map((opt) => opt.id) || [],
|
|
120
|
+
option_values: (() => {
|
|
121
|
+
const initialValues = {};
|
|
122
|
+
product.options?.forEach((opt) => {
|
|
123
|
+
initialValues[opt.id] = opt.values?.map((v) => v.id) || [];
|
|
124
|
+
});
|
|
125
|
+
return initialValues;
|
|
126
|
+
})()
|
|
127
|
+
},
|
|
128
|
+
schema: ProductOptionsManageSchema,
|
|
129
|
+
configs,
|
|
130
|
+
data: product
|
|
131
|
+
});
|
|
132
|
+
const { mutateAsync, isPending } = useLinkProductOptions(product.id);
|
|
133
|
+
const handleProductOptionSelect = (optionIds) => {
|
|
134
|
+
setSelectedOptionIds(optionIds);
|
|
135
|
+
form.setValue("option_ids", optionIds);
|
|
136
|
+
const newSelectedValues = {};
|
|
137
|
+
const selectedProductOptions = product_options.filter(
|
|
138
|
+
(option) => optionIds.includes(option.id)
|
|
139
|
+
);
|
|
140
|
+
selectedProductOptions.forEach((option) => {
|
|
141
|
+
if (selectedOptionValues[option.id]) {
|
|
142
|
+
newSelectedValues[option.id] = selectedOptionValues[option.id];
|
|
143
|
+
} else {
|
|
144
|
+
newSelectedValues[option.id] = option.values?.map((v) => v.id) || [];
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
setSelectedOptionValues(newSelectedValues);
|
|
148
|
+
form.setValue("option_values", newSelectedValues);
|
|
149
|
+
};
|
|
150
|
+
const handleValueChange = (optionId, valueIds) => {
|
|
151
|
+
if (valueIds.length === 0) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const updatedSelectedValues = {
|
|
155
|
+
...selectedOptionValues,
|
|
156
|
+
[optionId]: valueIds
|
|
157
|
+
};
|
|
158
|
+
setSelectedOptionValues(updatedSelectedValues);
|
|
159
|
+
form.setValue("option_values", updatedSelectedValues);
|
|
160
|
+
};
|
|
161
|
+
const handleSubmit = form.handleSubmit(async (data) => {
|
|
162
|
+
const currentOptionIds = product.options?.map((opt) => opt.id) || [];
|
|
163
|
+
const newOptionIds = data.option_ids;
|
|
164
|
+
const optionsToAdd = [];
|
|
165
|
+
const optionsToRemove = [];
|
|
166
|
+
for (const currentId of currentOptionIds) {
|
|
167
|
+
if (!newOptionIds.includes(currentId)) {
|
|
168
|
+
optionsToRemove.push(currentId);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
for (const newId of newOptionIds) {
|
|
172
|
+
const isNewOption = !currentOptionIds.includes(newId);
|
|
173
|
+
if (isNewOption) {
|
|
174
|
+
optionsToAdd.push(
|
|
175
|
+
data.option_values ? {
|
|
176
|
+
id: newId,
|
|
177
|
+
value_ids: data.option_values[newId]
|
|
178
|
+
} : newId
|
|
179
|
+
);
|
|
180
|
+
} else {
|
|
181
|
+
const currentOption = product.options?.find((opt) => opt.id === newId);
|
|
182
|
+
const currentValueIds = currentOption?.values?.map((v) => v.id).sort() || [];
|
|
183
|
+
const newValueIds = [...data.option_values?.[newId] || []].sort();
|
|
184
|
+
const valuesChanged = currentValueIds.length !== newValueIds.length || currentValueIds.some((id, index) => id !== newValueIds[index]);
|
|
185
|
+
if (valuesChanged) {
|
|
186
|
+
optionsToRemove.push(newId);
|
|
187
|
+
optionsToAdd.push(
|
|
188
|
+
data.option_values ? {
|
|
189
|
+
id: newId,
|
|
190
|
+
value_ids: data.option_values[newId]
|
|
191
|
+
} : newId
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
await mutateAsync(
|
|
197
|
+
{
|
|
198
|
+
add: optionsToAdd,
|
|
199
|
+
remove: optionsToRemove
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
onSuccess: ({ product: product2 }) => {
|
|
203
|
+
toast.success(
|
|
204
|
+
t("products.organization.edit.toasts.success", {
|
|
205
|
+
title: product2.title
|
|
206
|
+
})
|
|
207
|
+
);
|
|
208
|
+
handleSuccess();
|
|
209
|
+
},
|
|
210
|
+
onError: (error) => {
|
|
211
|
+
toast.error(error.message);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
});
|
|
216
|
+
return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(KeyboundForm, { onSubmit: handleSubmit, className: "flex h-full flex-col", children: [
|
|
217
|
+
/* @__PURE__ */ jsx(RouteDrawer.Body, { children: /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col gap-y-4", children: [
|
|
218
|
+
/* @__PURE__ */ jsx(
|
|
219
|
+
Form.Field,
|
|
220
|
+
{
|
|
221
|
+
control: form.control,
|
|
222
|
+
name: "option_ids",
|
|
223
|
+
render: ({ field }) => {
|
|
224
|
+
return /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
225
|
+
/* @__PURE__ */ jsx(Form.Label, { children: t("products.options.manage.label") }),
|
|
226
|
+
/* @__PURE__ */ jsx(Form.Hint, { children: t("products.options.manage.hint") }),
|
|
227
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
|
|
228
|
+
Combobox,
|
|
229
|
+
{
|
|
230
|
+
...field,
|
|
231
|
+
value: selectedOptionIds,
|
|
232
|
+
onChange: (value) => handleProductOptionSelect(value),
|
|
233
|
+
options: productOptionChoices,
|
|
234
|
+
placeholder: t("products.options.manage.placeholder"),
|
|
235
|
+
disabled: isLoading,
|
|
236
|
+
displayMode: "chips"
|
|
237
|
+
}
|
|
238
|
+
) }),
|
|
239
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
240
|
+
] });
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
),
|
|
244
|
+
selectedOptionIds.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-4", children: [
|
|
245
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
246
|
+
/* @__PURE__ */ jsx(Label, { weight: "plus", children: t("fields.values") }),
|
|
247
|
+
/* @__PURE__ */ jsx(Hint, { children: t("products.create.variants.selectValuesHint") })
|
|
248
|
+
] }),
|
|
249
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-y-3", children: product_options.filter((option) => selectedOptionIds.includes(option.id)).map((option) => {
|
|
250
|
+
const valueOptions = option.values?.sort((a, b) => {
|
|
251
|
+
const rankA = a.rank ?? Number.MAX_VALUE;
|
|
252
|
+
const rankB = b.rank ?? Number.MAX_VALUE;
|
|
253
|
+
return rankA - rankB;
|
|
254
|
+
}).map((v) => ({
|
|
255
|
+
value: v.id,
|
|
256
|
+
label: v.value
|
|
257
|
+
})) || [];
|
|
258
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-2", children: [
|
|
259
|
+
/* @__PURE__ */ jsx(Label, { size: "small", weight: "plus", children: option.title }),
|
|
260
|
+
/* @__PURE__ */ jsx(
|
|
261
|
+
Combobox,
|
|
262
|
+
{
|
|
263
|
+
value: selectedOptionValues[option.id] || [],
|
|
264
|
+
onChange: (value) => handleValueChange(option.id, value),
|
|
265
|
+
options: valueOptions,
|
|
266
|
+
placeholder: t(
|
|
267
|
+
"products.fields.options.variantionsPlaceholder"
|
|
268
|
+
),
|
|
269
|
+
displayMode: "chips"
|
|
270
|
+
}
|
|
271
|
+
)
|
|
272
|
+
] }, option.id);
|
|
273
|
+
}) })
|
|
274
|
+
] })
|
|
275
|
+
] }) }),
|
|
276
|
+
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
277
|
+
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
|
|
278
|
+
/* @__PURE__ */ jsx(Button, { size: "small", type: "submit", isLoading: isPending, children: t("actions.save") })
|
|
279
|
+
] }) })
|
|
280
|
+
] }) });
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
// src/routes/products/product-options-manage/product-options-manage.tsx
|
|
284
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
285
|
+
var ProductOptionsManage = () => {
|
|
286
|
+
const { id } = useParams();
|
|
287
|
+
const { t } = useTranslation2();
|
|
288
|
+
const { product, isLoading, isError, error } = useProduct(id, {
|
|
289
|
+
fields: PRODUCT_DETAIL_FIELDS
|
|
290
|
+
});
|
|
291
|
+
if (isError) {
|
|
292
|
+
throw error;
|
|
293
|
+
}
|
|
294
|
+
return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
|
|
295
|
+
/* @__PURE__ */ jsxs2(RouteDrawer.Header, { children: [
|
|
296
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("products.options.manage.header") }) }),
|
|
297
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Description, { className: "sr-only", children: t("products.options.manage.description") })
|
|
298
|
+
] }),
|
|
299
|
+
!isLoading && product && /* @__PURE__ */ jsx2(ProductOptionsManageForm, { product })
|
|
300
|
+
] });
|
|
301
|
+
};
|
|
302
|
+
export {
|
|
303
|
+
ProductOptionsManage as Component
|
|
304
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CategoryCombobox
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GHBURGZC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useComboboxData
|
|
6
6
|
} from "./chunk-3TZOFKX2.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Combobox
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5AM254NB.mjs";
|
|
10
10
|
import "./chunk-IUCDCPJU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
KeyboundForm
|
|
@@ -17,21 +17,21 @@ import {
|
|
|
17
17
|
} from "./chunk-AERWK3TJ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
PRODUCT_DETAIL_FIELDS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QPJUVTKW.mjs";
|
|
21
21
|
import {
|
|
22
22
|
FormExtensionZone,
|
|
23
23
|
useExtendableForm
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-YVQIO3JS.mjs";
|
|
25
|
+
import "./chunk-2SSUH2HJ.mjs";
|
|
26
26
|
import "./chunk-ONB3JEHR.mjs";
|
|
27
27
|
import "./chunk-YCDDT44O.mjs";
|
|
28
28
|
import "./chunk-4GQOUCX6.mjs";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-RYJ2UVJE.mjs";
|
|
30
30
|
import "./chunk-D3YQN7HV.mjs";
|
|
31
31
|
import "./chunk-PMA2D6IL.mjs";
|
|
32
32
|
import "./chunk-MNXC6Q4F.mjs";
|
|
33
33
|
import "./chunk-DG7J63J2.mjs";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-M32MJOJN.mjs";
|
|
35
35
|
import {
|
|
36
36
|
useExtension
|
|
37
37
|
} from "./chunk-C5P5PL3E.mjs";
|
|
@@ -40,45 +40,45 @@ import "./chunk-ZCARHA6C.mjs";
|
|
|
40
40
|
import "./chunk-OZPB6JBL.mjs";
|
|
41
41
|
import "./chunk-OC7BQLYI.mjs";
|
|
42
42
|
import "./chunk-S4DMV3ZT.mjs";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-SUYYSKCB.mjs";
|
|
44
44
|
import {
|
|
45
45
|
Form
|
|
46
46
|
} from "./chunk-OBQI23QM.mjs";
|
|
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-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./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-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-ZOJRDXH3.mjs";
|
|
48
|
+
import "./chunk-I4OBEAOJ.mjs";
|
|
49
|
+
import "./chunk-YGEJFHC3.mjs";
|
|
50
|
+
import "./chunk-HI6URQ7H.mjs";
|
|
51
|
+
import "./chunk-6CLQKVAU.mjs";
|
|
52
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
53
|
+
import "./chunk-HKIF5HVL.mjs";
|
|
54
|
+
import "./chunk-WAXMT4IY.mjs";
|
|
55
|
+
import "./chunk-DYDGGABK.mjs";
|
|
56
|
+
import "./chunk-LGNTHZ5Y.mjs";
|
|
57
|
+
import "./chunk-CN7JXSGW.mjs";
|
|
58
|
+
import "./chunk-5BQQRHQS.mjs";
|
|
59
|
+
import "./chunk-7H6DB666.mjs";
|
|
60
|
+
import "./chunk-2WLOIS3L.mjs";
|
|
61
|
+
import "./chunk-5AFMB7XQ.mjs";
|
|
62
|
+
import "./chunk-A63RZVX6.mjs";
|
|
63
|
+
import "./chunk-HBXV7ENS.mjs";
|
|
64
|
+
import "./chunk-CDORR33H.mjs";
|
|
65
|
+
import "./chunk-VW34SZWE.mjs";
|
|
66
|
+
import "./chunk-MOGV3UZD.mjs";
|
|
67
|
+
import "./chunk-5N33TBBX.mjs";
|
|
68
|
+
import "./chunk-FNQ227BC.mjs";
|
|
69
|
+
import "./chunk-3BF5SC66.mjs";
|
|
70
|
+
import "./chunk-VCSSQVPD.mjs";
|
|
71
|
+
import "./chunk-HP2JH45P.mjs";
|
|
72
|
+
import "./chunk-SQDIZZDW.mjs";
|
|
73
73
|
import {
|
|
74
74
|
useProduct,
|
|
75
75
|
useUpdateProduct
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
77
77
|
import "./chunk-FXYH54JP.mjs";
|
|
78
78
|
import "./chunk-774WSTCC.mjs";
|
|
79
79
|
import {
|
|
80
80
|
sdk
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-NFEK63OE.mjs";
|
|
82
82
|
import "./chunk-QZ7TP4HQ.mjs";
|
|
83
83
|
|
|
84
84
|
// src/routes/products/product-organization/product-organization.tsx
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DataGrid,
|
|
3
3
|
createDataGridHelper,
|
|
4
4
|
createDataGridPriceColumns
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W7SLPIO2.mjs";
|
|
6
6
|
import "./chunk-DK4WIVY6.mjs";
|
|
7
7
|
import {
|
|
8
8
|
castNumber
|
|
@@ -21,20 +21,20 @@ import "./chunk-S4DMV3ZT.mjs";
|
|
|
21
21
|
import "./chunk-OBQI23QM.mjs";
|
|
22
22
|
import {
|
|
23
23
|
useStore
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VCSSQVPD.mjs";
|
|
25
25
|
import {
|
|
26
26
|
useRegions
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-HP2JH45P.mjs";
|
|
28
28
|
import {
|
|
29
29
|
usePricePreferences
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SQDIZZDW.mjs";
|
|
31
31
|
import {
|
|
32
32
|
useProduct,
|
|
33
33
|
useUpdateProductVariantsBatch
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
35
35
|
import "./chunk-FXYH54JP.mjs";
|
|
36
36
|
import "./chunk-774WSTCC.mjs";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-NFEK63OE.mjs";
|
|
38
38
|
import "./chunk-QZ7TP4HQ.mjs";
|
|
39
39
|
|
|
40
40
|
// src/routes/products/product-prices/product-prices.tsx
|
|
@@ -3,35 +3,35 @@ import {
|
|
|
3
3
|
useSalesChannelTableEmptyState,
|
|
4
4
|
useSalesChannelTableFilters,
|
|
5
5
|
useSalesChannelTableQuery
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-5IFK2ZTA.mjs";
|
|
7
|
+
import "./chunk-2X25XWOW.mjs";
|
|
8
8
|
import {
|
|
9
9
|
DataTable
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-TBEGSDLQ.mjs";
|
|
11
|
+
import "./chunk-2GWGNMAA.mjs";
|
|
12
12
|
import "./chunk-C76H5USB.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-DZWH2RV6.mjs";
|
|
14
14
|
import {
|
|
15
15
|
RouteFocusModal,
|
|
16
16
|
useRouteModal
|
|
17
17
|
} from "./chunk-AERWK3TJ.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-M32MJOJN.mjs";
|
|
19
19
|
import "./chunk-OZPB6JBL.mjs";
|
|
20
20
|
import "./chunk-OC7BQLYI.mjs";
|
|
21
21
|
import "./chunk-S4DMV3ZT.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-SUYYSKCB.mjs";
|
|
23
23
|
import "./chunk-OBQI23QM.mjs";
|
|
24
24
|
import {
|
|
25
25
|
useSalesChannels
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-FNQ227BC.mjs";
|
|
27
|
+
import "./chunk-3BF5SC66.mjs";
|
|
28
28
|
import {
|
|
29
29
|
useProduct,
|
|
30
30
|
useUpdateProduct
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
32
32
|
import "./chunk-FXYH54JP.mjs";
|
|
33
33
|
import "./chunk-774WSTCC.mjs";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-NFEK63OE.mjs";
|
|
35
35
|
import "./chunk-QZ7TP4HQ.mjs";
|
|
36
36
|
|
|
37
37
|
// src/routes/products/product-sales-channels/product-sales-channels.tsx
|
package/dist/{product-shipping-profile-KXSBDGRD.mjs → product-shipping-profile-T4ZKHINJ.mjs}
RENAMED
|
@@ -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 "./chunk-IUCDCPJU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
KeyboundForm
|
|
@@ -14,63 +14,63 @@ import {
|
|
|
14
14
|
} from "./chunk-AERWK3TJ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
PRODUCT_DETAIL_FIELDS
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-QPJUVTKW.mjs";
|
|
18
|
+
import "./chunk-YVQIO3JS.mjs";
|
|
19
|
+
import "./chunk-2SSUH2HJ.mjs";
|
|
20
20
|
import "./chunk-ONB3JEHR.mjs";
|
|
21
21
|
import "./chunk-YCDDT44O.mjs";
|
|
22
22
|
import "./chunk-4GQOUCX6.mjs";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-RYJ2UVJE.mjs";
|
|
24
24
|
import "./chunk-D3YQN7HV.mjs";
|
|
25
25
|
import "./chunk-PMA2D6IL.mjs";
|
|
26
26
|
import "./chunk-MNXC6Q4F.mjs";
|
|
27
27
|
import "./chunk-DG7J63J2.mjs";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-M32MJOJN.mjs";
|
|
29
29
|
import "./chunk-C5P5PL3E.mjs";
|
|
30
30
|
import "./chunk-LPEUYMRK.mjs";
|
|
31
31
|
import "./chunk-ZCARHA6C.mjs";
|
|
32
32
|
import "./chunk-OZPB6JBL.mjs";
|
|
33
33
|
import "./chunk-OC7BQLYI.mjs";
|
|
34
34
|
import "./chunk-S4DMV3ZT.mjs";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-SUYYSKCB.mjs";
|
|
36
36
|
import {
|
|
37
37
|
Form
|
|
38
38
|
} from "./chunk-OBQI23QM.mjs";
|
|
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-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-ZOJRDXH3.mjs";
|
|
40
|
+
import "./chunk-I4OBEAOJ.mjs";
|
|
41
|
+
import "./chunk-YGEJFHC3.mjs";
|
|
42
|
+
import "./chunk-HI6URQ7H.mjs";
|
|
43
|
+
import "./chunk-6CLQKVAU.mjs";
|
|
44
|
+
import "./chunk-KI7TOXBR.mjs";
|
|
45
|
+
import "./chunk-HKIF5HVL.mjs";
|
|
46
|
+
import "./chunk-WAXMT4IY.mjs";
|
|
47
|
+
import "./chunk-DYDGGABK.mjs";
|
|
48
|
+
import "./chunk-LGNTHZ5Y.mjs";
|
|
49
|
+
import "./chunk-CN7JXSGW.mjs";
|
|
50
|
+
import "./chunk-5BQQRHQS.mjs";
|
|
51
|
+
import "./chunk-7H6DB666.mjs";
|
|
52
|
+
import "./chunk-2WLOIS3L.mjs";
|
|
53
|
+
import "./chunk-5AFMB7XQ.mjs";
|
|
54
|
+
import "./chunk-A63RZVX6.mjs";
|
|
55
|
+
import "./chunk-HBXV7ENS.mjs";
|
|
56
|
+
import "./chunk-CDORR33H.mjs";
|
|
57
|
+
import "./chunk-VW34SZWE.mjs";
|
|
58
|
+
import "./chunk-MOGV3UZD.mjs";
|
|
59
|
+
import "./chunk-5N33TBBX.mjs";
|
|
60
|
+
import "./chunk-FNQ227BC.mjs";
|
|
61
|
+
import "./chunk-3BF5SC66.mjs";
|
|
62
|
+
import "./chunk-VCSSQVPD.mjs";
|
|
63
|
+
import "./chunk-HP2JH45P.mjs";
|
|
64
|
+
import "./chunk-SQDIZZDW.mjs";
|
|
65
65
|
import {
|
|
66
66
|
useProduct,
|
|
67
67
|
useUpdateProduct
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-QW4SQVMT.mjs";
|
|
69
69
|
import "./chunk-FXYH54JP.mjs";
|
|
70
70
|
import "./chunk-774WSTCC.mjs";
|
|
71
71
|
import {
|
|
72
72
|
sdk
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-NFEK63OE.mjs";
|
|
74
74
|
import "./chunk-QZ7TP4HQ.mjs";
|
|
75
75
|
|
|
76
76
|
// src/routes/products/product-shipping-profile/product-shipping-profile.tsx
|