@medusajs/dashboard 3.0.0-snapshot-20251212142124 → 3.0.0-snapshot-20251214110905
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-JQKPED4U.mjs → add-campaign-promotions-PHAHMGXP.mjs} +2 -2
- package/dist/{adjust-inventory-2MFA656V.mjs → adjust-inventory-I5VYMAI4.mjs} +2 -2
- package/dist/{api-key-management-create-ZUVF3SLR.mjs → api-key-management-create-CVRFY4PL.mjs} +2 -2
- package/dist/{api-key-management-detail-F7ZRCFPA.mjs → api-key-management-detail-HRVP6HRC.mjs} +3 -3
- package/dist/{api-key-management-edit-42HNUSXL.mjs → api-key-management-edit-JMU3WEPX.mjs} +2 -2
- package/dist/{api-key-management-sales-channels-7FVABESO.mjs → api-key-management-sales-channels-4OU5VGIG.mjs} +2 -2
- package/dist/app.css +45 -0
- package/dist/app.js +13473 -12039
- package/dist/app.mjs +4 -4
- package/dist/{campaign-budget-edit-6DMZGUCI.mjs → campaign-budget-edit-B5MSE26J.mjs} +2 -2
- package/dist/{campaign-configuration-UNFRB5HR.mjs → campaign-configuration-QOE3D2BE.mjs} +2 -2
- package/dist/{campaign-create-QXG7PD3S.mjs → campaign-create-FJOECKGT.mjs} +3 -3
- package/dist/{campaign-detail-6VNSVZHQ.mjs → campaign-detail-BDI3P2SF.mjs} +3 -3
- package/dist/{campaign-edit-HN4US7DV.mjs → campaign-edit-K2POQH7M.mjs} +2 -2
- package/dist/{categories-metadata-ORPB2LIW.mjs → categories-metadata-BARTITD5.mjs} +6 -6
- package/dist/{category-create-FFIBWXAH.mjs → category-create-L2KJCHPO.mjs} +2 -2
- package/dist/{category-detail-RICXPIVS.mjs → category-detail-CUMEBNXU.mjs} +22 -7
- package/dist/{category-edit-74MZ6TXN.mjs → category-edit-U6SLZSAX.mjs} +2 -2
- package/dist/{category-list-AH2EGTI7.mjs → category-list-W7JW4PWA.mjs} +16 -1
- package/dist/{category-organize-B6EFBFKB.mjs → category-organize-LLSVAO3U.mjs} +2 -2
- package/dist/{category-products-L4XIX3IQ.mjs → category-products-GYXTDDBQ.mjs} +8 -8
- package/dist/{chunk-XTQ7UFA3.mjs → chunk-2HDKZN4Q.mjs} +1 -1
- package/dist/chunk-35LSPN2U.mjs +66 -0
- package/dist/{chunk-PNPT4W2F.mjs → chunk-3BJLNORD.mjs} +1 -1
- package/dist/{chunk-4G2UHUXX.mjs → chunk-67KHYLIQ.mjs} +9 -9
- package/dist/{chunk-AMOGGDOW.mjs → chunk-AIZ6W4QI.mjs} +1 -1
- package/dist/{chunk-EQBVGH3N.mjs → chunk-B3AOQW2B.mjs} +1 -1
- package/dist/{chunk-UKECZ5PA.mjs → chunk-BBTE6VKD.mjs} +3 -3
- package/dist/{chunk-3YPRDSZ6.mjs → chunk-BZKI5J2M.mjs} +1 -1
- package/dist/{chunk-25UWYEJX.mjs → chunk-CQOOXWPZ.mjs} +1 -1
- package/dist/{chunk-42OOM4DJ.mjs → chunk-D6UW7URG.mjs} +23 -6
- package/dist/{chunk-LHNU4DYZ.mjs → chunk-DS5IRNJY.mjs} +2 -2
- package/dist/{chunk-4VNR7DND.mjs → chunk-F5NZDW7L.mjs} +2 -2
- package/dist/{chunk-JJGE3EV6.mjs → chunk-F63F3FIT.mjs} +2 -2
- package/dist/{chunk-W7SLPIO2.mjs → chunk-FEB3ZGTL.mjs} +214 -17
- package/dist/{chunk-4YAPXPLM.mjs → chunk-FPBKWWSI.mjs} +1 -1
- package/dist/{chunk-EXDBX4YX.mjs → chunk-GC3QXC6D.mjs} +3 -3
- package/dist/{chunk-JUVGXLY5.mjs → chunk-HKKZJTRO.mjs} +188 -13
- package/dist/{chunk-EQTBJSBZ.mjs → chunk-KIIT4BNH.mjs} +3 -0
- package/dist/{chunk-KF7ZWW4K.mjs → chunk-LCEKY54O.mjs} +2 -2
- package/dist/{chunk-D4J3CEWH.mjs → chunk-N3SAXQVR.mjs} +2 -2
- package/dist/{chunk-Q6MSICBU.mjs → chunk-O333RR6K.mjs} +1 -1
- package/dist/{chunk-YV4ANEZF.mjs → chunk-PXZEQZ6Q.mjs} +1 -1
- package/dist/{chunk-Q4E6LV6K.mjs → chunk-Q4AXBDFH.mjs} +269 -182
- package/dist/{chunk-CZFLKMYE.mjs → chunk-RMDYKRWW.mjs} +4 -4
- package/dist/{chunk-GN6OCHP4.mjs → chunk-RU4ZS47V.mjs} +11 -1
- package/dist/{chunk-UM4OIJZ3.mjs → chunk-S22SJRPO.mjs} +1 -1
- package/dist/{chunk-HWKLNKOY.mjs → chunk-U726TGCM.mjs} +1 -1
- package/dist/{chunk-XXBP2Z5M.mjs → chunk-WVA4O7QS.mjs} +1 -1
- package/dist/{chunk-L4NOVTH5.mjs → chunk-YIOBBZUB.mjs} +2 -2
- package/dist/{chunk-FIFVOKTK.mjs → chunk-Z6NHG5LQ.mjs} +1 -1
- package/dist/{collection-add-products-MO4FGYD5.mjs → collection-add-products-4WBPS6PY.mjs} +8 -8
- package/dist/{collection-create-DCRW344Z.mjs → collection-create-4JX4YE47.mjs} +2 -2
- package/dist/{collection-detail-ZCHVPXW5.mjs → collection-detail-HT4SSV32.mjs} +22 -7
- package/dist/{collection-edit-UNFEW6HT.mjs → collection-edit-MXL35GQQ.mjs} +2 -2
- package/dist/{collection-list-3UUFO7AP.mjs → collection-list-FYONEBDN.mjs} +29 -14
- package/dist/{collection-metadata-ZOYQDOOT.mjs → collection-metadata-YEZ2TBRX.mjs} +6 -6
- package/dist/{customer-create-XCLZENJS.mjs → customer-create-IA56MXE6.mjs} +2 -2
- package/dist/{customer-create-address-4HZUIAM7.mjs → customer-create-address-27M25HTO.mjs} +2 -2
- package/dist/{customer-detail-RMZTHQIQ.mjs → customer-detail-MB7CS7OG.mjs} +6 -6
- package/dist/{customer-edit-BW5GVTQI.mjs → customer-edit-XQ5NWIVX.mjs} +2 -2
- package/dist/{customer-group-add-customers-HUGHHMU6.mjs → customer-group-add-customers-DM4VLTNB.mjs} +5 -5
- package/dist/{customer-group-create-6YV7W6TI.mjs → customer-group-create-RY4FVEIW.mjs} +2 -2
- package/dist/{customer-group-detail-4S7WB3WV.mjs → customer-group-detail-U5UAP7QS.mjs} +6 -6
- package/dist/{customer-group-edit-7NXU34BQ.mjs → customer-group-edit-MQWARIQZ.mjs} +2 -2
- package/dist/{customer-group-list-JQX6PW6E.mjs → customer-group-list-KAS6JSCQ.mjs} +3 -3
- package/dist/{customer-group-metadata-WK2BGEGO.mjs → customer-group-metadata-JQJRLLXG.mjs} +3 -3
- package/dist/{customer-metadata-ZUWCUTM7.mjs → customer-metadata-HN2DYD5I.mjs} +3 -3
- package/dist/{customers-add-customer-group-JKTM33OU.mjs → customers-add-customer-group-UKLSPYEU.mjs} +8 -8
- package/dist/{edit-inventory-item-Y5W6VTHJ.mjs → edit-inventory-item-RATTNP2Y.mjs} +2 -2
- package/dist/{edit-inventory-item-attributes-NAAZDFEJ.mjs → edit-inventory-item-attributes-JHH5GSNL.mjs} +2 -2
- package/dist/{edit-reservation-2UD4RZJX.mjs → edit-reservation-UZCSNLHY.mjs} +2 -2
- package/dist/{edit-rules-AXG2NQNS.mjs → edit-rules-VMEHCXYQ.mjs} +5 -5
- package/dist/en.json +34 -0
- package/dist/{inventory-create-6SKU4TZL.mjs → inventory-create-KN72V2KK.mjs} +6 -6
- package/dist/{inventory-detail-LAYYI2QT.mjs → inventory-detail-7OHCFAJO.mjs} +3 -3
- package/dist/{inventory-metadata-Q6E6SZF3.mjs → inventory-metadata-I3IRRMLH.mjs} +6 -6
- package/dist/{inventory-stock-SNAWXRBE.mjs → inventory-stock-5IUICNEH.mjs} +7 -7
- package/dist/{invite-VKHAAF4Z.mjs → invite-FVE4ZBKB.mjs} +2 -2
- package/dist/{location-create-RPLEXUZR.mjs → location-create-WZ43K3W7.mjs} +2 -2
- package/dist/{location-detail-XXH22FLG.mjs → location-detail-3MSUGB4W.mjs} +8 -8
- package/dist/{location-edit-L4ISEQHX.mjs → location-edit-VCS7GVWQ.mjs} +2 -2
- package/dist/{location-fulfillment-providers-FSC27EK7.mjs → location-fulfillment-providers-ZVZMLCIC.mjs} +6 -6
- package/dist/{location-list-Z42ZYHUF.mjs → location-list-KVBA6J47.mjs} +2 -2
- package/dist/{location-sales-channels-YMABMECM.mjs → location-sales-channels-NKNM5TQK.mjs} +2 -2
- package/dist/{location-service-zone-create-NSMZCD5N.mjs → location-service-zone-create-3FWF3DG5.mjs} +3 -3
- package/dist/{location-service-zone-edit-6OUAFEZD.mjs → location-service-zone-edit-KHHMSPXD.mjs} +2 -2
- package/dist/{location-service-zone-manage-areas-SEC6LKCZ.mjs → location-service-zone-manage-areas-YFEAZUUN.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-create-GWNLLSM5.mjs → location-service-zone-shipping-option-create-CZWEHKVJ.mjs} +7 -7
- package/dist/{location-service-zone-shipping-option-edit-QS6HTWST.mjs → location-service-zone-shipping-option-edit-4CGPQ3VT.mjs} +5 -5
- package/dist/{location-service-zone-shipping-option-pricing-23QLNSBT.mjs → location-service-zone-shipping-option-pricing-Z5IFOLFJ.mjs} +4 -4
- package/dist/{login-MFUCIAT6.mjs → login-OCYZM7SI.mjs} +5 -5
- package/dist/{manage-locations-JD6FSBOT.mjs → manage-locations-MLNMPQ5I.mjs} +2 -2
- package/dist/{order-allocate-items-3DDI4V3W.mjs → order-allocate-items-VRPPVPP3.mjs} +3 -3
- package/dist/{order-create-claim-G7BDA7WR.mjs → order-create-claim-O3ZYTAIC.mjs} +7 -7
- package/dist/{order-create-edit-BXYPZRZV.mjs → order-create-edit-HUS7IRS3.mjs} +6 -6
- package/dist/{order-create-exchange-AGEXEKOF.mjs → order-create-exchange-TUP4NHHX.mjs} +13 -13
- package/dist/{order-create-fulfillment-GMLSBCEK.mjs → order-create-fulfillment-4BGDYHBB.mjs} +5 -5
- package/dist/{order-create-refund-BT33POIN.mjs → order-create-refund-FA5ERI7M.mjs} +5 -5
- package/dist/{order-create-return-QGXWSPMP.mjs → order-create-return-7GPHJ2WU.mjs} +4 -4
- package/dist/{order-create-shipment-ZVTOKNC4.mjs → order-create-shipment-27UBYPKT.mjs} +5 -5
- package/dist/{order-detail-MORQRSHL.mjs → order-detail-2J7KDTKG.mjs} +11 -11
- package/dist/{order-edit-billing-address-IUVC4GSZ.mjs → order-edit-billing-address-E7CD5FBQ.mjs} +5 -5
- package/dist/{order-edit-email-MKLJPREH.mjs → order-edit-email-ELRIQYVN.mjs} +5 -5
- package/dist/{order-edit-shipping-address-GFSRTDFG.mjs → order-edit-shipping-address-HVNAJUZI.mjs} +5 -5
- package/dist/order-export-TRMFVBFO.mjs +121 -0
- package/dist/{order-list-QOYJFYD5.mjs → order-list-Y4FET3XV.mjs} +38 -82
- package/dist/{order-metadata-BRSYOGKE.mjs → order-metadata-THARHEJC.mjs} +6 -6
- package/dist/{order-receive-return-NI345L43.mjs → order-receive-return-X5ASB7DL.mjs} +6 -6
- package/dist/{order-request-transfer-ZGGIUFRV.mjs → order-request-transfer-PKF4ULJY.mjs} +5 -5
- package/dist/{price-list-configuration-CWTP3Y5X.mjs → price-list-configuration-SZRY7CXO.mjs} +4 -4
- package/dist/{price-list-create-HDYM5ZGW.mjs → price-list-create-TYNSJDDM.mjs} +15 -15
- package/dist/{price-list-detail-GVGNB5AY.mjs → price-list-detail-ORYFRNB6.mjs} +6 -6
- package/dist/{price-list-edit-SW7YIR3Z.mjs → price-list-edit-I5QNCWJP.mjs} +2 -2
- package/dist/{price-list-prices-add-P4XHE3F4.mjs → price-list-prices-add-MWAUNUBF.mjs} +10 -10
- package/dist/{price-list-prices-edit-C6SX2TLJ.mjs → price-list-prices-edit-Z4YJ4YBY.mjs} +4 -4
- package/dist/{product-attributes-AXSXHPI5.mjs → product-attributes-5QW6ZEYB.mjs} +6 -6
- package/dist/{product-create-CAGTWFTS.mjs → product-create-YQ76CEF3.mjs} +7 -7
- package/dist/{product-create-option-GEGQNSMQ.mjs → product-create-option-UMZKRNTC.mjs} +2 -2
- package/dist/{product-create-variant-5DLZZQPL.mjs → product-create-variant-IASRY2JX.mjs} +6 -6
- package/dist/{product-detail-FSORFVRL.mjs → product-detail-NVLJQGGK.mjs} +51 -10
- package/dist/{product-edit-EYQIREZ6.mjs → product-edit-DP42G3EU.mjs} +6 -6
- package/dist/{product-edit-option-HBIOBQTS.mjs → product-edit-option-ZMTSLRG5.mjs} +2 -2
- package/dist/{product-export-4XRDDWZQ.mjs → product-export-OK5FCD42.mjs} +15 -15
- package/dist/{product-image-variants-edit-KCFCTXE2.mjs → product-image-variants-edit-VEWNL52X.mjs} +5 -5
- package/dist/{product-import-JTEXWYY7.mjs → product-import-LX625CIX.mjs} +5 -5
- package/dist/{product-list-T4OZG4OC.mjs → product-list-TXEPE6NL.mjs} +19 -7
- package/dist/{product-media-EGK66SRX.mjs → product-media-ULNJ7JJY.mjs} +2 -2
- package/dist/{product-metadata-5BLG4EIR.mjs → product-metadata-ZKKBE6GG.mjs} +6 -6
- package/dist/{product-organization-BEXN2KXC.mjs → product-organization-NMA2WJNT.mjs} +6 -6
- package/dist/{product-prices-WQDE4XYT.mjs → product-prices-5WCCQDS6.mjs} +3 -3
- package/dist/{product-sales-channels-ZICOOOKY.mjs → product-sales-channels-2PN4L7II.mjs} +2 -2
- package/dist/{product-shipping-profile-KIDRTPWA.mjs → product-shipping-profile-45XXB7FM.mjs} +2 -2
- package/dist/{product-stock-SSJVQPBZ.mjs → product-stock-KUHH6MFA.mjs} +7 -7
- package/dist/{product-tag-create-ZPYRJTC4.mjs → product-tag-create-7EVRE5BL.mjs} +5 -5
- package/dist/{product-tag-detail-VRGVJNDT.mjs → product-tag-detail-WULO55NT.mjs} +31 -16
- package/dist/{product-tag-edit-2KFYOID4.mjs → product-tag-edit-J4ODRLXN.mjs} +5 -5
- package/dist/{product-tag-list-WTX6GV7O.mjs → product-tag-list-V4CCQTL6.mjs} +31 -16
- package/dist/{product-tag-metadata-Y7YHTUKM.mjs → product-tag-metadata-KHDYQMSG.mjs} +6 -6
- package/dist/{product-type-create-HBDROTGB.mjs → product-type-create-KHSNCQCV.mjs} +2 -2
- package/dist/{product-type-detail-3ZLSMENL.mjs → product-type-detail-F35MUSLD.mjs} +22 -7
- package/dist/{product-type-edit-H3JCMVRV.mjs → product-type-edit-3LRBWZ3S.mjs} +2 -2
- package/dist/{product-type-list-QX7QC6RI.mjs → product-type-list-K2GULUPF.mjs} +19 -4
- package/dist/{product-type-metadata-GJACA4N6.mjs → product-type-metadata-CGXFFEJO.mjs} +6 -6
- package/dist/{product-variant-detail-L5G4CPVH.mjs → product-variant-detail-NT2MB3Z4.mjs} +19 -4
- package/dist/{product-variant-edit-YXALQPQT.mjs → product-variant-edit-KZ6D5CSA.mjs} +5 -5
- package/dist/{product-variant-manage-inventory-items-BLHCH6QD.mjs → product-variant-manage-inventory-items-OGM64KYP.mjs} +2 -2
- package/dist/{product-variant-media-KLSUISGH.mjs → product-variant-media-C3KCFODU.mjs} +2 -2
- package/dist/{product-variant-metadata-OQOE34VY.mjs → product-variant-metadata-I2PN64TH.mjs} +6 -6
- package/dist/{profile-edit-5EEKOEO5.mjs → profile-edit-YZCUGEXF.mjs} +2 -2
- package/dist/{promotion-add-campaign-JRTM7WBR.mjs → promotion-add-campaign-DO67QK6M.mjs} +3 -3
- package/dist/{promotion-create-OXNLKBL7.mjs → promotion-create-4KVSXYAI.mjs} +12 -12
- package/dist/{promotion-detail-N6VHHN3X.mjs → promotion-detail-NGNVELME.mjs} +3 -3
- package/dist/{promotion-edit-details-AREFQ6O5.mjs → promotion-edit-details-6BSOOWQN.mjs} +2 -2
- package/dist/{refund-reason-create-L36EUXXM.mjs → refund-reason-create-CTAPBK3X.mjs} +5 -5
- package/dist/{refund-reason-edit-364ALB4G.mjs → refund-reason-edit-B6HRNXGE.mjs} +5 -5
- package/dist/{refund-reason-list-ICO2GYRP.mjs → refund-reason-list-7OUHUORB.mjs} +4 -4
- package/dist/{region-add-countries-AFWXMQ6W.mjs → region-add-countries-7U4J5RW6.mjs} +2 -2
- package/dist/{region-create-YC4VZ4AS.mjs → region-create-IUGX33M5.mjs} +2 -2
- package/dist/{region-edit-5GO25GDF.mjs → region-edit-WAU347DP.mjs} +2 -2
- package/dist/{region-metadata-VNLW6NYZ.mjs → region-metadata-GRG3QSJY.mjs} +6 -6
- package/dist/{reservation-create-Z2SUMBGT.mjs → reservation-create-C6HTEF3R.mjs} +2 -2
- package/dist/{reservation-detail-YXIUIN5I.mjs → reservation-detail-KAI7N5UP.mjs} +3 -3
- package/dist/{reservation-metadata-7H7TYWZW.mjs → reservation-metadata-TWV7KLOB.mjs} +6 -6
- package/dist/{reset-password-5TAYQEUV.mjs → reset-password-Y5WVXV4Q.mjs} +2 -2
- package/dist/{return-reason-create-NXWDC6AC.mjs → return-reason-create-HM54WRJY.mjs} +2 -2
- package/dist/{return-reason-edit-M6IKNNKB.mjs → return-reason-edit-VSIRHVQ6.mjs} +2 -2
- package/dist/return-reason-list-IFFIDA5O.mjs +1 -1
- package/dist/{sales-channel-add-products-N7EPWF2N.mjs → sales-channel-add-products-CBECZU46.mjs} +8 -8
- package/dist/{sales-channel-create-E7BDTPWD.mjs → sales-channel-create-4XLJDVJO.mjs} +2 -2
- package/dist/{sales-channel-detail-DV6BKC5B.mjs → sales-channel-detail-NQSBPPIE.mjs} +6 -6
- package/dist/{sales-channel-edit-HMPA3Y3L.mjs → sales-channel-edit-UZGSXD5X.mjs} +2 -2
- package/dist/{sales-channel-list-33QC2ZXP.mjs → sales-channel-list-UYN2OCBR.mjs} +3 -3
- package/dist/{sales-channel-metadata-HYYQEVRZ.mjs → sales-channel-metadata-4XWXYN2E.mjs} +6 -6
- package/dist/{shipping-option-type-create-IXYDKBKG.mjs → shipping-option-type-create-U7PIKVMV.mjs} +5 -5
- package/dist/{shipping-option-type-detail-WMZ3DEY6.mjs → shipping-option-type-detail-QNZLQGI6.mjs} +4 -4
- package/dist/{shipping-option-type-edit-YYO3Q2QV.mjs → shipping-option-type-edit-BP6HLZ7B.mjs} +5 -5
- package/dist/{shipping-option-type-list-YAL6IQF2.mjs → shipping-option-type-list-L274RM6A.mjs} +4 -4
- package/dist/{shipping-profile-create-752TMBBE.mjs → shipping-profile-create-26R64I3Z.mjs} +2 -2
- package/dist/{shipping-profile-metadata-YBXPOVZF.mjs → shipping-profile-metadata-BZKPLXHO.mjs} +6 -6
- package/dist/{store-add-currencies-3VMLZ6KB.mjs → store-add-currencies-ZFS3WZHG.mjs} +2 -2
- package/dist/{store-add-locales-AYY44DB3.mjs → store-add-locales-EXR3NLOM.mjs} +4 -4
- package/dist/{store-detail-4YVABC3P.mjs → store-detail-T4YY5NHG.mjs} +3 -3
- package/dist/{store-edit-EPAHLLKP.mjs → store-edit-AB5CDUTK.mjs} +2 -2
- package/dist/{store-metadata-QQD2NP5U.mjs → store-metadata-FN3WZLXA.mjs} +6 -6
- package/dist/{tax-region-create-AFGAIC3C.mjs → tax-region-create-PWXTFE3Q.mjs} +5 -5
- package/dist/{tax-region-detail-LM7VIA2N.mjs → tax-region-detail-GJW63AMV.mjs} +22 -22
- package/dist/{tax-region-edit-ZLSY22NQ.mjs → tax-region-edit-WOUO7TPQ.mjs} +5 -5
- package/dist/{tax-region-list-BXZBUXRJ.mjs → tax-region-list-P4LDOPZD.mjs} +3 -3
- package/dist/{tax-region-province-create-5JP3PVID.mjs → tax-region-province-create-GKJ7WMRS.mjs} +2 -2
- package/dist/{tax-region-province-detail-ZF75A3Z2.mjs → tax-region-province-detail-FCHPIRXW.mjs} +21 -21
- package/dist/{tax-region-tax-override-create-JVMTMMWB.mjs → tax-region-tax-override-create-ZLWXRNLN.mjs} +16 -16
- package/dist/{tax-region-tax-override-edit-HS4BCVC7.mjs → tax-region-tax-override-edit-ZM2JUFNJ.mjs} +17 -17
- package/dist/{tax-region-tax-rate-create-O2SDSXCH.mjs → tax-region-tax-rate-create-MECFGVPL.mjs} +2 -2
- package/dist/{tax-region-tax-rate-edit-W62VEVKT.mjs → tax-region-tax-rate-edit-7DYSPYOD.mjs} +2 -2
- package/dist/translation-list-Y2GWTRGW.mjs +302 -0
- package/dist/translations-edit-PM4PSMRF.mjs +390 -0
- package/dist/{user-edit-LXQCTDGA.mjs → user-edit-ZBB4RMTP.mjs} +2 -2
- package/dist/{user-invite-2OKB7SCF.mjs → user-invite-XB635N26.mjs} +2 -2
- package/dist/{user-metadata-U3WGLABX.mjs → user-metadata-LNADHFTW.mjs} +6 -6
- package/dist/{workflow-execution-detail-L4IESFKA.mjs → workflow-execution-detail-POTSURJX.mjs} +4 -4
- package/package.json +9 -9
- package/src/components/common/icon-avatar/icon-avatar.tsx +4 -0
- package/src/components/data-grid/components/data-grid-textarea-modal-cell.tsx +233 -0
- package/src/components/data-grid/components/index.ts +1 -0
- package/src/components/data-grid/data-grid.tsx +2 -0
- package/src/components/layout/settings-layout/settings-layout.tsx +11 -1
- package/src/components/modals/route-focus-modal/route-focus-modal.tsx +8 -3
- package/src/components/modals/route-modal-form/route-modal-form.tsx +6 -1
- package/src/components/modals/route-modal-provider/route-provider.tsx +16 -4
- package/src/dashboard-app/routes/get-route.map.tsx +25 -0
- package/src/hooks/api/index.ts +1 -0
- package/src/hooks/api/orders.tsx +18 -1
- package/src/hooks/api/product-variants.tsx +7 -1
- package/src/hooks/api/translations.tsx +254 -0
- package/src/i18n/translations/$schema.json +104 -0
- package/src/i18n/translations/en.json +34 -0
- package/src/i18n/translations/es.json +22 -0
- package/src/routes/categories/category-detail/components/category-general-section/category-general-section.tsx +16 -1
- package/src/routes/categories/category-list/components/category-list-table/category-list-table.tsx +16 -1
- package/src/routes/collections/collection-detail/components/collection-general-section/collection-general-section.tsx +16 -1
- package/src/routes/collections/collection-list/components/collection-list-table/collection-row-actions.tsx +16 -1
- package/src/routes/orders/order-export/components/export-filters.tsx +22 -0
- package/src/routes/orders/order-export/index.ts +1 -0
- package/src/routes/orders/order-export/order-export.tsx +66 -0
- package/src/routes/orders/order-list/components/order-list-table/configurable-order-list-table.tsx +14 -6
- package/src/routes/orders/order-list/components/order-list-table/order-list-table.tsx +8 -2
- package/src/routes/product-tags/product-tag-detail/components/product-tag-general-section/product-tag-general-section.tsx +16 -1
- package/src/routes/product-tags/product-tag-list/components/product-tag-list-table/product-tag-list-table.tsx +16 -1
- package/src/routes/product-types/product-type-detail/components/product-type-general-section/product-type-general-section.tsx +16 -1
- package/src/routes/product-types/product-type-list/components/product-type-list-table/product-table-row-actions.tsx +16 -1
- package/src/routes/product-variants/product-variant-detail/components/variant-general-section/variant-general-section.tsx +16 -1
- package/src/routes/products/product-detail/components/product-general-section/product-general-section.tsx +16 -1
- package/src/routes/products/product-detail/components/product-variant-section/product-variant-section.tsx +32 -1
- package/src/routes/products/product-list/components/product-list-table/product-list-table.tsx +15 -1
- package/src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx +68 -0
- package/src/routes/translations/translation-list/components/translation-list-section/translation-list-section.tsx +46 -0
- package/src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx +67 -0
- package/src/routes/translations/translation-list/index.tsx +1 -0
- package/src/routes/translations/translation-list/translation-list.tsx +128 -0
- package/src/routes/translations/translations-edit/components/translations-edit-form/index.ts +1 -0
- package/src/routes/translations/translations-edit/components/translations-edit-form/translations-edit-form.tsx +423 -0
- package/src/routes/translations/translations-edit/index.ts +1 -0
- package/src/routes/translations/translations-edit/translations-edit.tsx +67 -0
- package/src/routes/translations/translations-edit/utils/index.ts +1 -0
- package/src/routes/translations/translations-edit/utils/reference-label-map.ts +10 -0
- package/dist/{customer-list-ZXCGIXJC.mjs → customer-list-TG4D4QOT.mjs} +3 -3
- package/dist/{region-list-XQRIBDMF.mjs → region-list-JAQXIBYD.mjs} +3 -3
|
@@ -3413,23 +3413,220 @@ var Inner4 = ({
|
|
|
3413
3413
|
);
|
|
3414
3414
|
};
|
|
3415
3415
|
|
|
3416
|
+
// src/components/data-grid/components/data-grid-textarea-modal-cell.tsx
|
|
3417
|
+
import { clx as clx7, Textarea } from "@medusajs/ui";
|
|
3418
|
+
import { Popover as RadixPopover } from "radix-ui";
|
|
3419
|
+
import { useCallback as useCallback15, useEffect as useEffect7, useRef as useRef4, useState as useState10 } from "react";
|
|
3420
|
+
import { Controller as Controller5 } from "react-hook-form";
|
|
3421
|
+
import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
3422
|
+
var DataGridExpandableTextCell = ({
|
|
3423
|
+
context,
|
|
3424
|
+
fieldLabel
|
|
3425
|
+
}) => {
|
|
3426
|
+
const { field, control, renderProps } = useDataGridCell({
|
|
3427
|
+
context
|
|
3428
|
+
});
|
|
3429
|
+
const errorProps = useDataGridCellError({ context });
|
|
3430
|
+
const { container, input } = renderProps;
|
|
3431
|
+
return /* @__PURE__ */ jsx11(
|
|
3432
|
+
Controller5,
|
|
3433
|
+
{
|
|
3434
|
+
control,
|
|
3435
|
+
name: field,
|
|
3436
|
+
render: ({ field: field2 }) => {
|
|
3437
|
+
return /* @__PURE__ */ jsx11(
|
|
3438
|
+
Inner5,
|
|
3439
|
+
{
|
|
3440
|
+
field: field2,
|
|
3441
|
+
inputProps: input,
|
|
3442
|
+
fieldLabel,
|
|
3443
|
+
container,
|
|
3444
|
+
errorProps
|
|
3445
|
+
}
|
|
3446
|
+
);
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
);
|
|
3450
|
+
};
|
|
3451
|
+
var Inner5 = ({
|
|
3452
|
+
field,
|
|
3453
|
+
inputProps,
|
|
3454
|
+
fieldLabel: _fieldLabel,
|
|
3455
|
+
container,
|
|
3456
|
+
errorProps
|
|
3457
|
+
}) => {
|
|
3458
|
+
const { onChange: _, onBlur, ref, value, ...rest } = field;
|
|
3459
|
+
const { ref: inputRef, onBlur: onInputBlur, onChange, ...input } = inputProps;
|
|
3460
|
+
const { setSingleRange, anchor } = useDataGridContext();
|
|
3461
|
+
const { row, col } = anchor || { row: 0, col: 0 };
|
|
3462
|
+
const [localValue, setLocalValue] = useState10(value || "");
|
|
3463
|
+
const [isPopoverOpen, setIsPopoverOpen] = useState10(false);
|
|
3464
|
+
const [popoverValue, setPopoverValue] = useState10(value || "");
|
|
3465
|
+
const popoverContentRef = useRef4(null);
|
|
3466
|
+
useEffect7(() => {
|
|
3467
|
+
setLocalValue(value || "");
|
|
3468
|
+
}, [value]);
|
|
3469
|
+
useEffect7(() => {
|
|
3470
|
+
if (isPopoverOpen) {
|
|
3471
|
+
setPopoverValue(value || "");
|
|
3472
|
+
}
|
|
3473
|
+
}, [isPopoverOpen, value]);
|
|
3474
|
+
useEffect7(() => {
|
|
3475
|
+
if (!isPopoverOpen || !popoverContentRef.current) {
|
|
3476
|
+
return;
|
|
3477
|
+
}
|
|
3478
|
+
const handleKeyDownCapture = (e) => {
|
|
3479
|
+
const target = e.target;
|
|
3480
|
+
const isTextarea = target.tagName === "TEXTAREA";
|
|
3481
|
+
const isInPopover = popoverContentRef.current && popoverContentRef.current.contains(target);
|
|
3482
|
+
if (isTextarea || isInPopover) {
|
|
3483
|
+
const dataGridKeys = [
|
|
3484
|
+
"Enter",
|
|
3485
|
+
"Delete",
|
|
3486
|
+
"Backspace",
|
|
3487
|
+
"ArrowUp",
|
|
3488
|
+
"ArrowDown",
|
|
3489
|
+
"ArrowLeft",
|
|
3490
|
+
"ArrowRight",
|
|
3491
|
+
"Tab",
|
|
3492
|
+
" "
|
|
3493
|
+
];
|
|
3494
|
+
if (dataGridKeys.includes(e.key) && e.key !== "Escape") {
|
|
3495
|
+
e.stopImmediatePropagation();
|
|
3496
|
+
}
|
|
3497
|
+
}
|
|
3498
|
+
};
|
|
3499
|
+
window.addEventListener("keydown", handleKeyDownCapture, true);
|
|
3500
|
+
return () => {
|
|
3501
|
+
window.removeEventListener("keydown", handleKeyDownCapture, true);
|
|
3502
|
+
};
|
|
3503
|
+
}, [isPopoverOpen]);
|
|
3504
|
+
const combinedRefs = useCombinedRefs(inputRef, ref);
|
|
3505
|
+
const handleOverlayMouseDown = useCallback15(
|
|
3506
|
+
(e) => {
|
|
3507
|
+
if (e.detail === 2) {
|
|
3508
|
+
e.preventDefault();
|
|
3509
|
+
e.stopPropagation();
|
|
3510
|
+
setSingleRange({ row, col });
|
|
3511
|
+
setIsPopoverOpen(true);
|
|
3512
|
+
return;
|
|
3513
|
+
}
|
|
3514
|
+
container.overlayProps.onMouseDown?.(e);
|
|
3515
|
+
},
|
|
3516
|
+
[container.overlayProps, setSingleRange, row, col]
|
|
3517
|
+
);
|
|
3518
|
+
const customContainer = {
|
|
3519
|
+
...container,
|
|
3520
|
+
overlayProps: {
|
|
3521
|
+
...container.overlayProps,
|
|
3522
|
+
onMouseDown: handleOverlayMouseDown
|
|
3523
|
+
}
|
|
3524
|
+
};
|
|
3525
|
+
const handlePopoverSave = () => {
|
|
3526
|
+
onChange(popoverValue, value);
|
|
3527
|
+
setLocalValue(popoverValue);
|
|
3528
|
+
setIsPopoverOpen(false);
|
|
3529
|
+
onBlur();
|
|
3530
|
+
onInputBlur();
|
|
3531
|
+
};
|
|
3532
|
+
const handlePopoverKeyDown = useCallback15((e) => {
|
|
3533
|
+
if (e.key !== "Escape") {
|
|
3534
|
+
e.stopPropagation();
|
|
3535
|
+
}
|
|
3536
|
+
}, []);
|
|
3537
|
+
const displayValue = localValue || "";
|
|
3538
|
+
const truncatedValue = displayValue.length > 50 ? `${displayValue.substring(0, 50)}...` : displayValue;
|
|
3539
|
+
return /* @__PURE__ */ jsxs8(
|
|
3540
|
+
RadixPopover.Root,
|
|
3541
|
+
{
|
|
3542
|
+
open: isPopoverOpen,
|
|
3543
|
+
onOpenChange: (open) => {
|
|
3544
|
+
if (!open) {
|
|
3545
|
+
handlePopoverSave();
|
|
3546
|
+
} else {
|
|
3547
|
+
setIsPopoverOpen(true);
|
|
3548
|
+
}
|
|
3549
|
+
},
|
|
3550
|
+
children: [
|
|
3551
|
+
/* @__PURE__ */ jsxs8(DataGridCellContainer, { ...customContainer, ...errorProps, children: [
|
|
3552
|
+
/* @__PURE__ */ jsx11(RadixPopover.Anchor, { asChild: true, children: /* @__PURE__ */ jsx11(
|
|
3553
|
+
"div",
|
|
3554
|
+
{
|
|
3555
|
+
className: clx7(
|
|
3556
|
+
"txt-compact-small text-ui-fg-subtle flex size-full cursor-pointer items-center justify-center bg-transparent outline-none",
|
|
3557
|
+
"focus:cursor-text"
|
|
3558
|
+
),
|
|
3559
|
+
children: /* @__PURE__ */ jsx11("span", { className: "w-full truncate text-center", children: truncatedValue })
|
|
3560
|
+
}
|
|
3561
|
+
) }),
|
|
3562
|
+
/* @__PURE__ */ jsx11(
|
|
3563
|
+
"input",
|
|
3564
|
+
{
|
|
3565
|
+
className: "sr-only",
|
|
3566
|
+
autoComplete: "off",
|
|
3567
|
+
tabIndex: -1,
|
|
3568
|
+
value: localValue,
|
|
3569
|
+
onChange: (e) => setLocalValue(e.target.value),
|
|
3570
|
+
ref: combinedRefs,
|
|
3571
|
+
onBlur: () => {
|
|
3572
|
+
onBlur();
|
|
3573
|
+
onInputBlur();
|
|
3574
|
+
onChange(localValue, value);
|
|
3575
|
+
},
|
|
3576
|
+
...input,
|
|
3577
|
+
...rest
|
|
3578
|
+
}
|
|
3579
|
+
)
|
|
3580
|
+
] }),
|
|
3581
|
+
/* @__PURE__ */ jsx11(RadixPopover.Portal, { children: /* @__PURE__ */ jsx11(
|
|
3582
|
+
RadixPopover.Content,
|
|
3583
|
+
{
|
|
3584
|
+
className: clx7(
|
|
3585
|
+
"bg-ui-bg-base shadow-elevation-flyout flex max-h-[80vh] w-[600px] overflow-hidden p-0 outline-none"
|
|
3586
|
+
),
|
|
3587
|
+
align: "start",
|
|
3588
|
+
side: "bottom",
|
|
3589
|
+
sideOffset: -29,
|
|
3590
|
+
alignOffset: -16,
|
|
3591
|
+
collisionPadding: 24,
|
|
3592
|
+
onEscapeKeyDown: handlePopoverSave,
|
|
3593
|
+
onKeyDown: handlePopoverKeyDown,
|
|
3594
|
+
children: /* @__PURE__ */ jsx11("div", { ref: popoverContentRef, className: "h-full w-full", children: /* @__PURE__ */ jsx11(
|
|
3595
|
+
Textarea,
|
|
3596
|
+
{
|
|
3597
|
+
value: popoverValue,
|
|
3598
|
+
onChange: (e) => setPopoverValue(e.target.value),
|
|
3599
|
+
onKeyDown: (e) => {
|
|
3600
|
+
e.stopPropagation();
|
|
3601
|
+
},
|
|
3602
|
+
className: "!bg-ui-bg-base h-full min-h-[300px] w-full resize-none border-0 p-4 !shadow-none focus-visible:!shadow-none"
|
|
3603
|
+
}
|
|
3604
|
+
) })
|
|
3605
|
+
}
|
|
3606
|
+
) })
|
|
3607
|
+
]
|
|
3608
|
+
}
|
|
3609
|
+
);
|
|
3610
|
+
};
|
|
3611
|
+
|
|
3416
3612
|
// src/components/data-grid/data-grid.tsx
|
|
3417
|
-
import { jsx as
|
|
3613
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
3418
3614
|
var _DataGrid = ({
|
|
3419
3615
|
isLoading,
|
|
3420
3616
|
...props
|
|
3421
3617
|
}) => {
|
|
3422
|
-
return isLoading ? /* @__PURE__ */
|
|
3618
|
+
return isLoading ? /* @__PURE__ */ jsx12(
|
|
3423
3619
|
DataGridSkeleton,
|
|
3424
3620
|
{
|
|
3425
3621
|
columns: props.columns,
|
|
3426
3622
|
rows: props.data?.length && props.data.length > 0 ? props.data.length : 10
|
|
3427
3623
|
}
|
|
3428
|
-
) : /* @__PURE__ */
|
|
3624
|
+
) : /* @__PURE__ */ jsx12(DataGridRoot, { ...props });
|
|
3429
3625
|
};
|
|
3430
3626
|
var DataGrid = Object.assign(_DataGrid, {
|
|
3431
3627
|
BooleanCell: DataGridBooleanCell,
|
|
3432
3628
|
TextCell: DataGridTextCell,
|
|
3629
|
+
ExpandableTextCell: DataGridExpandableTextCell,
|
|
3433
3630
|
NumberCell: DataGridNumberCell,
|
|
3434
3631
|
CurrencyCell: DataGridCurrencyCell,
|
|
3435
3632
|
ReadonlyCell: DataGridReadonlyCell
|
|
@@ -3468,23 +3665,23 @@ function createDataGridHelper() {
|
|
|
3468
3665
|
import { TaxExclusive, TaxInclusive } from "@medusajs/icons";
|
|
3469
3666
|
import { Tooltip as Tooltip3 } from "@medusajs/ui";
|
|
3470
3667
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
3471
|
-
import { jsx as
|
|
3668
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
3472
3669
|
var IncludesTaxTooltip = ({
|
|
3473
3670
|
includesTax
|
|
3474
3671
|
}) => {
|
|
3475
3672
|
const { t } = useTranslation4();
|
|
3476
|
-
return /* @__PURE__ */
|
|
3673
|
+
return /* @__PURE__ */ jsx13(
|
|
3477
3674
|
Tooltip3,
|
|
3478
3675
|
{
|
|
3479
3676
|
maxWidth: 999,
|
|
3480
3677
|
content: includesTax ? t("general.includesTaxTooltip") : t("general.excludesTaxTooltip"),
|
|
3481
|
-
children: includesTax ? /* @__PURE__ */
|
|
3678
|
+
children: includesTax ? /* @__PURE__ */ jsx13(TaxInclusive, { className: "text-ui-fg-muted shrink-0" }) : /* @__PURE__ */ jsx13(TaxExclusive, { className: "text-ui-fg-muted shrink-0" })
|
|
3482
3679
|
}
|
|
3483
3680
|
);
|
|
3484
3681
|
};
|
|
3485
3682
|
|
|
3486
3683
|
// src/components/data-grid/helpers/create-data-grid-price-columns.tsx
|
|
3487
|
-
import { jsx as
|
|
3684
|
+
import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3488
3685
|
var createDataGridPriceColumns = ({
|
|
3489
3686
|
currencies: currencies2,
|
|
3490
3687
|
regions,
|
|
@@ -3515,15 +3712,15 @@ var createDataGridPriceColumns = ({
|
|
|
3515
3712
|
return getFieldName(context, currency);
|
|
3516
3713
|
},
|
|
3517
3714
|
type: "number",
|
|
3518
|
-
header: () => /* @__PURE__ */
|
|
3519
|
-
/* @__PURE__ */
|
|
3520
|
-
/* @__PURE__ */
|
|
3715
|
+
header: () => /* @__PURE__ */ jsxs9("div", { className: "flex w-full items-center justify-between gap-3", children: [
|
|
3716
|
+
/* @__PURE__ */ jsx14("span", { className: "truncate", title: translatedCurrencyName, children: translatedCurrencyName }),
|
|
3717
|
+
/* @__PURE__ */ jsx14(IncludesTaxTooltip, { includesTax: preference?.is_tax_inclusive })
|
|
3521
3718
|
] }),
|
|
3522
3719
|
cell: (context) => {
|
|
3523
3720
|
if (isReadyOnly?.(context)) {
|
|
3524
|
-
return /* @__PURE__ */
|
|
3721
|
+
return /* @__PURE__ */ jsx14(DataGridReadonlyCell, { context });
|
|
3525
3722
|
}
|
|
3526
|
-
return /* @__PURE__ */
|
|
3723
|
+
return /* @__PURE__ */ jsx14(DataGridCurrencyCell, { code: currency, context });
|
|
3527
3724
|
}
|
|
3528
3725
|
});
|
|
3529
3726
|
}) ?? [],
|
|
@@ -3547,19 +3744,19 @@ var createDataGridPriceColumns = ({
|
|
|
3547
3744
|
return getFieldName(context, region.id);
|
|
3548
3745
|
},
|
|
3549
3746
|
type: "number",
|
|
3550
|
-
header: () => /* @__PURE__ */
|
|
3551
|
-
/* @__PURE__ */
|
|
3552
|
-
/* @__PURE__ */
|
|
3747
|
+
header: () => /* @__PURE__ */ jsxs9("div", { className: "flex w-full items-center justify-between gap-3", children: [
|
|
3748
|
+
/* @__PURE__ */ jsx14("span", { className: "truncate", title: translatedRegionName, children: translatedRegionName }),
|
|
3749
|
+
/* @__PURE__ */ jsx14(IncludesTaxTooltip, { includesTax: preference?.is_tax_inclusive })
|
|
3553
3750
|
] }),
|
|
3554
3751
|
cell: (context) => {
|
|
3555
3752
|
if (isReadyOnly?.(context)) {
|
|
3556
|
-
return /* @__PURE__ */
|
|
3753
|
+
return /* @__PURE__ */ jsx14(DataGridReadonlyCell, { context });
|
|
3557
3754
|
}
|
|
3558
3755
|
const currency = currencies2?.find((c) => c === region.currency_code);
|
|
3559
3756
|
if (!currency) {
|
|
3560
3757
|
return null;
|
|
3561
3758
|
}
|
|
3562
|
-
return /* @__PURE__ */
|
|
3759
|
+
return /* @__PURE__ */ jsx14(
|
|
3563
3760
|
DataGridCurrencyCell,
|
|
3564
3761
|
{
|
|
3565
3762
|
code: region.currency_code,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DISPLAY_OVERRIDE_ITEMS_LIMIT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BBTE6VKD.mjs";
|
|
4
4
|
import {
|
|
5
5
|
TaxRateRuleReferenceType
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-67KHYLIQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
LocalizedTablePagination,
|
|
9
9
|
useDeleteTaxRateAction
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S22SJRPO.mjs";
|
|
11
11
|
import {
|
|
12
12
|
formatPercentage
|
|
13
13
|
} from "./chunk-4FM6S5CX.mjs";
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
productTypesQueryKeys,
|
|
3
|
+
useProductTypes
|
|
4
|
+
} from "./chunk-HKIF5HVL.mjs";
|
|
5
|
+
import {
|
|
6
|
+
collectionsQueryKeys,
|
|
7
|
+
useCollections
|
|
8
|
+
} from "./chunk-NHDFPGQ3.mjs";
|
|
1
9
|
import {
|
|
2
10
|
ordersQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RU4ZS47V.mjs";
|
|
12
|
+
import {
|
|
13
|
+
categoriesQueryKeys,
|
|
14
|
+
useProductCategories
|
|
15
|
+
} from "./chunk-7AX6R6G6.mjs";
|
|
16
|
+
import {
|
|
17
|
+
productsQueryKeys,
|
|
18
|
+
useProducts
|
|
19
|
+
} from "./chunk-LEJUZW3P.mjs";
|
|
4
20
|
import {
|
|
5
21
|
queryClient
|
|
6
22
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -239,17 +255,174 @@ var useDeleteProductTag = (id, options) => {
|
|
|
239
255
|
});
|
|
240
256
|
};
|
|
241
257
|
|
|
258
|
+
// src/hooks/api/translations.tsx
|
|
259
|
+
import {
|
|
260
|
+
useMutation as useMutation4,
|
|
261
|
+
useQuery as useQuery6
|
|
262
|
+
} from "@tanstack/react-query";
|
|
263
|
+
var TRANSLATIONS_QUERY_KEY = "translations";
|
|
264
|
+
var translationsQueryKeys = queryKeysFactory(TRANSLATIONS_QUERY_KEY);
|
|
265
|
+
var useReferenceTranslations = (reference, referenceId, options) => {
|
|
266
|
+
const referenceHookMap = /* @__PURE__ */ new Map([
|
|
267
|
+
[
|
|
268
|
+
"product",
|
|
269
|
+
() => {
|
|
270
|
+
const translatableFields = ["title", "description"];
|
|
271
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
272
|
+
const { products, ...rest2 } = useProducts(
|
|
273
|
+
{ id: referenceId ?? [], fields },
|
|
274
|
+
options
|
|
275
|
+
);
|
|
276
|
+
return {
|
|
277
|
+
...rest2,
|
|
278
|
+
data: {
|
|
279
|
+
translations: products?.flatMap((product) => product.translations ?? []) ?? [],
|
|
280
|
+
references: products ?? [],
|
|
281
|
+
translatableFields
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
[
|
|
287
|
+
"product_variant",
|
|
288
|
+
() => {
|
|
289
|
+
const translatableFields = ["title"];
|
|
290
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
291
|
+
const { variants, ...rest2 } = useVariants(
|
|
292
|
+
{ id: referenceId ?? [], fields },
|
|
293
|
+
options
|
|
294
|
+
);
|
|
295
|
+
return {
|
|
296
|
+
...rest2,
|
|
297
|
+
data: {
|
|
298
|
+
translations: variants?.flatMap((variant) => variant.translations ?? []) ?? [],
|
|
299
|
+
references: variants ?? [],
|
|
300
|
+
translatableFields
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
[
|
|
306
|
+
"product_category",
|
|
307
|
+
() => {
|
|
308
|
+
const translatableFields = ["name", "description"];
|
|
309
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
310
|
+
const { product_categories, ...rest2 } = useProductCategories(
|
|
311
|
+
{ id: referenceId ?? [], fields },
|
|
312
|
+
options
|
|
313
|
+
);
|
|
314
|
+
return {
|
|
315
|
+
...rest2,
|
|
316
|
+
data: {
|
|
317
|
+
translations: product_categories?.flatMap(
|
|
318
|
+
(category) => category.translations ?? []
|
|
319
|
+
) ?? [],
|
|
320
|
+
references: product_categories ?? [],
|
|
321
|
+
translatableFields
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
[
|
|
327
|
+
"product_collection",
|
|
328
|
+
() => {
|
|
329
|
+
const translatableFields = ["title"];
|
|
330
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
331
|
+
const { collections, ...rest2 } = useCollections(
|
|
332
|
+
{ id: referenceId ?? [], fields },
|
|
333
|
+
options
|
|
334
|
+
);
|
|
335
|
+
return {
|
|
336
|
+
...rest2,
|
|
337
|
+
data: {
|
|
338
|
+
translations: collections?.flatMap(
|
|
339
|
+
(collection) => collection.translations ?? []
|
|
340
|
+
) ?? [],
|
|
341
|
+
references: collections ?? [],
|
|
342
|
+
translatableFields
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
[
|
|
348
|
+
"product_type",
|
|
349
|
+
() => {
|
|
350
|
+
const translatableFields = ["value"];
|
|
351
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
352
|
+
const { product_types, ...rest2 } = useProductTypes(
|
|
353
|
+
{ id: referenceId ?? [], fields },
|
|
354
|
+
options
|
|
355
|
+
);
|
|
356
|
+
return {
|
|
357
|
+
...rest2,
|
|
358
|
+
data: {
|
|
359
|
+
translations: product_types?.flatMap((type) => type.translations ?? []) ?? [],
|
|
360
|
+
references: product_types ?? [],
|
|
361
|
+
translatableFields
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
[
|
|
367
|
+
"product_tag",
|
|
368
|
+
() => {
|
|
369
|
+
const translatableFields = ["value"];
|
|
370
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
371
|
+
const { product_tags, ...rest2 } = useProductTags(
|
|
372
|
+
{ id: referenceId ?? [], fields },
|
|
373
|
+
options
|
|
374
|
+
);
|
|
375
|
+
return {
|
|
376
|
+
...rest2,
|
|
377
|
+
data: {
|
|
378
|
+
translations: product_tags?.flatMap((tag) => tag.translations ?? []) ?? [],
|
|
379
|
+
references: product_tags ?? [],
|
|
380
|
+
translatableFields
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
// TODO: product option and option values
|
|
386
|
+
]);
|
|
387
|
+
const referenceHook = referenceHookMap.get(reference);
|
|
388
|
+
if (!referenceHook) {
|
|
389
|
+
throw new Error(`No hook found for reference type: ${reference}`);
|
|
390
|
+
}
|
|
391
|
+
const { data, ...rest } = referenceHook();
|
|
392
|
+
return { ...data, ...rest };
|
|
393
|
+
};
|
|
394
|
+
var useBatchTranslations = (reference, options) => {
|
|
395
|
+
const referenceInvalidationKeysMap = /* @__PURE__ */ new Map([
|
|
396
|
+
["product", productsQueryKeys.lists()],
|
|
397
|
+
["product_variant", productVariantQueryKeys.lists()],
|
|
398
|
+
["product_category", categoriesQueryKeys.lists()],
|
|
399
|
+
["product_collection", collectionsQueryKeys.lists()],
|
|
400
|
+
["product_type", productTypesQueryKeys.lists()],
|
|
401
|
+
["product_tag", productTagsQueryKeys.lists()]
|
|
402
|
+
]);
|
|
403
|
+
return useMutation4({
|
|
404
|
+
mutationFn: (payload) => sdk.admin.translation.batch(payload),
|
|
405
|
+
onSuccess: (data, variables, context) => {
|
|
406
|
+
queryClient.invalidateQueries({
|
|
407
|
+
queryKey: referenceInvalidationKeysMap.get(reference)
|
|
408
|
+
});
|
|
409
|
+
options?.onSuccess?.(data, variables, context);
|
|
410
|
+
},
|
|
411
|
+
...options
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
|
|
242
415
|
// src/hooks/api/fulfillment.tsx
|
|
243
|
-
import { useMutation as
|
|
416
|
+
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
|
244
417
|
var FULFILLMENTS_QUERY_KEY = "fulfillments";
|
|
245
418
|
var fulfillmentsQueryKeys = queryKeysFactory(FULFILLMENTS_QUERY_KEY);
|
|
246
419
|
|
|
247
420
|
// src/hooks/api/locales.tsx
|
|
248
|
-
import { useQuery as
|
|
421
|
+
import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
249
422
|
var LOCALES_QUERY_KEY = "locales";
|
|
250
423
|
var localesQueryKeys = queryKeysFactory(LOCALES_QUERY_KEY);
|
|
251
424
|
var useLocales = (query, options) => {
|
|
252
|
-
const { data, ...rest } =
|
|
425
|
+
const { data, ...rest } = useQuery7({
|
|
253
426
|
queryFn: () => sdk.admin.locale.list(query),
|
|
254
427
|
queryKey: localesQueryKeys.list(query),
|
|
255
428
|
...options
|
|
@@ -258,11 +431,11 @@ var useLocales = (query, options) => {
|
|
|
258
431
|
};
|
|
259
432
|
|
|
260
433
|
// src/hooks/api/notification.tsx
|
|
261
|
-
import { useQuery as
|
|
434
|
+
import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
262
435
|
var NOTIFICATION_QUERY_KEY = "notification";
|
|
263
436
|
var notificationQueryKeys = queryKeysFactory(NOTIFICATION_QUERY_KEY);
|
|
264
437
|
var useNotifications = (query, options) => {
|
|
265
|
-
const { data, ...rest } =
|
|
438
|
+
const { data, ...rest } = useQuery8({
|
|
266
439
|
queryFn: () => sdk.admin.notification.list(query),
|
|
267
440
|
queryKey: notificationQueryKeys.list(query),
|
|
268
441
|
...options
|
|
@@ -271,13 +444,13 @@ var useNotifications = (query, options) => {
|
|
|
271
444
|
};
|
|
272
445
|
|
|
273
446
|
// src/hooks/api/payment-collections.tsx
|
|
274
|
-
import { useMutation as
|
|
447
|
+
import { useMutation as useMutation6 } from "@tanstack/react-query";
|
|
275
448
|
var PAYMENT_COLLECTION_QUERY_KEY = "payment-collection";
|
|
276
449
|
var paymentCollectionQueryKeys = queryKeysFactory(
|
|
277
450
|
PAYMENT_COLLECTION_QUERY_KEY
|
|
278
451
|
);
|
|
279
452
|
var useMarkPaymentCollectionAsPaid = (orderId, paymentCollectionId, options) => {
|
|
280
|
-
return
|
|
453
|
+
return useMutation6({
|
|
281
454
|
mutationFn: (payload) => sdk.admin.paymentCollection.markAsPaid(paymentCollectionId, payload),
|
|
282
455
|
onSuccess: (data, variables, context) => {
|
|
283
456
|
queryClient.invalidateQueries({
|
|
@@ -297,8 +470,8 @@ var useMarkPaymentCollectionAsPaid = (orderId, paymentCollectionId, options) =>
|
|
|
297
470
|
|
|
298
471
|
// src/hooks/api/payments.tsx
|
|
299
472
|
import {
|
|
300
|
-
useMutation as
|
|
301
|
-
useQuery as
|
|
473
|
+
useMutation as useMutation7,
|
|
474
|
+
useQuery as useQuery9
|
|
302
475
|
} from "@tanstack/react-query";
|
|
303
476
|
var PAYMENT_QUERY_KEY = "payment";
|
|
304
477
|
var paymentQueryKeys = queryKeysFactory(PAYMENT_QUERY_KEY);
|
|
@@ -307,7 +480,7 @@ var paymentProvidersQueryKeys = queryKeysFactory(
|
|
|
307
480
|
PAYMENT_PROVIDERS_QUERY_KEY
|
|
308
481
|
);
|
|
309
482
|
var useCapturePayment = (orderId, paymentId, options) => {
|
|
310
|
-
return
|
|
483
|
+
return useMutation7({
|
|
311
484
|
mutationFn: (payload) => sdk.admin.payment.capture(paymentId, payload),
|
|
312
485
|
onSuccess: (data, variables, context) => {
|
|
313
486
|
queryClient.invalidateQueries({
|
|
@@ -322,7 +495,7 @@ var useCapturePayment = (orderId, paymentId, options) => {
|
|
|
322
495
|
});
|
|
323
496
|
};
|
|
324
497
|
var useRefundPayment = (orderId, paymentId, options) => {
|
|
325
|
-
return
|
|
498
|
+
return useMutation7({
|
|
326
499
|
mutationFn: (payload) => sdk.admin.payment.refund(paymentId, payload),
|
|
327
500
|
onSuccess: (data, variables, context) => {
|
|
328
501
|
queryClient.invalidateQueries({
|
|
@@ -364,5 +537,7 @@ export {
|
|
|
364
537
|
useProductTags,
|
|
365
538
|
useCreateProductTag,
|
|
366
539
|
useUpdateProductTag,
|
|
367
|
-
useDeleteProductTag
|
|
540
|
+
useDeleteProductTag,
|
|
541
|
+
useReferenceTranslations,
|
|
542
|
+
useBatchTranslations
|
|
368
543
|
};
|
|
@@ -3,6 +3,7 @@ import { clx } from "@medusajs/ui";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var IconAvatar = ({
|
|
5
5
|
size = "small",
|
|
6
|
+
variant = "rounded",
|
|
6
7
|
children,
|
|
7
8
|
className
|
|
8
9
|
}) => {
|
|
@@ -11,6 +12,8 @@ var IconAvatar = ({
|
|
|
11
12
|
{
|
|
12
13
|
className: clx(
|
|
13
14
|
"shadow-borders-base flex size-7 items-center justify-center",
|
|
15
|
+
variant === "squared" && "rounded-md",
|
|
16
|
+
variant === "rounded" && "rounded-full",
|
|
14
17
|
"[&>div]:bg-ui-bg-field [&>div]:text-ui-fg-subtle [&>div]:flex [&>div]:size-6 [&>div]:items-center [&>div]:justify-center",
|
|
15
18
|
{
|
|
16
19
|
"size-7 rounded-md [&>div]:size-6 [&>div]:rounded-[4px]": size === "small",
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from "./chunk-X5VECN6S.mjs";
|
|
16
16
|
import {
|
|
17
17
|
StackedFocusModal
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WVA4O7QS.mjs";
|
|
19
19
|
import {
|
|
20
20
|
useStackedModal
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-D6UW7URG.mjs";
|
|
22
22
|
import {
|
|
23
23
|
countries
|
|
24
24
|
} from "./chunk-DG7J63J2.mjs";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-6HTZNHPT.mjs";
|
|
4
4
|
import {
|
|
5
5
|
RouteDrawer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WVA4O7QS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useRouteModal
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D6UW7URG.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Skeleton
|
|
12
12
|
} from "./chunk-LPEUYMRK.mjs";
|