@medusajs/dashboard 2.12.3-preview-20251217120154 → 2.12.3-preview-20251217123836
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-4QLXO46G.mjs → add-campaign-promotions-OYPGISTF.mjs} +2 -2
- package/dist/add-locales-GGNZCABB.mjs +81 -0
- package/dist/{adjust-inventory-2MFA656V.mjs → adjust-inventory-26YXAXQL.mjs} +4 -3
- package/dist/{api-key-management-create-ZUVF3SLR.mjs → api-key-management-create-EMP32G2D.mjs} +6 -5
- package/dist/{api-key-management-detail-THD74G7I.mjs → api-key-management-detail-FRUN2KFK.mjs} +11 -10
- package/dist/{api-key-management-edit-42HNUSXL.mjs → api-key-management-edit-IBM3ZXHK.mjs} +6 -5
- package/dist/{api-key-management-list-66CFOILY.mjs → api-key-management-list-KC5GOWAU.mjs} +4 -3
- package/dist/{api-key-management-sales-channels-HN3THM5J.mjs → api-key-management-sales-channels-LUB5G6RC.mjs} +6 -5
- package/dist/app.css +72 -0
- package/dist/app.js +13657 -11324
- package/dist/app.mjs +12 -11
- 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-WR3XHHV2.mjs → campaign-detail-HM3GQJLQ.mjs} +11 -10
- package/dist/{campaign-edit-HN4US7DV.mjs → campaign-edit-K2POQH7M.mjs} +2 -2
- package/dist/{categories-metadata-BCZ463KN.mjs → categories-metadata-WKL3MGD7.mjs} +14 -13
- package/dist/{category-create-FFIBWXAH.mjs → category-create-KHJZSC7G.mjs} +5 -4
- package/dist/{category-detail-4HXJ5Z7N.mjs → category-detail-UTWWDKFP.mjs} +29 -13
- package/dist/{category-edit-74MZ6TXN.mjs → category-edit-CTA2EPDG.mjs} +5 -4
- package/dist/{category-list-OCJY2UJV.mjs → category-list-QBYJ4T3R.mjs} +20 -4
- package/dist/{category-organize-B6EFBFKB.mjs → category-organize-SXP33XET.mjs} +5 -4
- package/dist/{category-products-2HXLZDHL.mjs → category-products-XXBTCXFF.mjs} +14 -13
- package/dist/{chunk-XIVBRONM.mjs → chunk-23GTCEOV.mjs} +1 -1
- package/dist/{chunk-2NZDHAOE.mjs → chunk-27MGH3HR.mjs} +2 -2
- package/dist/{chunk-N3FCYZV6.mjs → chunk-2XTBDCGE.mjs} +1 -1
- package/dist/{chunk-RU4ZS47V.mjs → chunk-4JQR6QNW.mjs} +2 -2
- package/dist/{chunk-F65T2X7G.mjs → chunk-5F427YCP.mjs} +5 -5
- package/dist/{chunk-PNPT4W2F.mjs → chunk-5ISRTMYH.mjs} +1 -1
- package/dist/{chunk-Z6NHG5LQ.mjs → chunk-6P4Q4AAP.mjs} +3 -3
- package/dist/{chunk-F5NZDW7L.mjs → chunk-A2WBKOXJ.mjs} +2 -2
- package/dist/{chunk-F63F3FIT.mjs → chunk-A4XYK3MY.mjs} +2 -2
- package/dist/{chunk-NT6C7CHT.mjs → chunk-AWRCV3ME.mjs} +1 -1
- package/dist/{chunk-5X6SKB2P.mjs → chunk-BMS2QLJY.mjs} +1 -1
- 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-4YAPXPLM.mjs → chunk-DQUXK4WW.mjs} +1 -1
- package/dist/{chunk-MY6I7UJG.mjs → chunk-DTCIBQO2.mjs} +3 -3
- package/dist/{chunk-W7SLPIO2.mjs → chunk-FKNW5MLZ.mjs} +676 -151
- package/dist/{chunk-N4O5FAUC.mjs → chunk-FYWHE3W5.mjs} +1 -1
- package/dist/{chunk-QPKW37WR.mjs → chunk-GLBHPDR4.mjs} +249 -14
- package/dist/chunk-HGRIOEAR.mjs +32 -0
- package/dist/{chunk-PXJFCRIV.mjs → chunk-HNJ65IND.mjs} +4 -4
- package/dist/{chunk-Y5UO73CH.mjs → chunk-HTCYX4VD.mjs} +1 -1
- package/dist/{chunk-34KFHPN6.mjs → chunk-IAV7IKJ6.mjs} +1 -1
- package/dist/{store-add-locales-JLRTXG3Q.mjs → chunk-IKTGFXWR.mjs} +3 -67
- package/dist/{chunk-6W3BKVOC.mjs → chunk-KFYQTOGB.mjs} +1 -1
- package/dist/{chunk-EQTBJSBZ.mjs → chunk-KIIT4BNH.mjs} +3 -0
- package/dist/{chunk-LHNU4DYZ.mjs → chunk-KSDXSKJ7.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-YAPTGHGP.mjs → chunk-OK6NZN2A.mjs} +1 -1
- package/dist/{chunk-7AX6R6G6.mjs → chunk-OSHH5GAS.mjs} +13 -1
- package/dist/{chunk-35LSPN2U.mjs → chunk-QKALAT7P.mjs} +1 -1
- package/dist/{chunk-UM4OIJZ3.mjs → chunk-S22SJRPO.mjs} +1 -1
- package/dist/{chunk-HFT7Q5Y5.mjs → chunk-SG2JZPTG.mjs} +1 -1
- package/dist/{chunk-B3AOQW2B.mjs → chunk-U6G4M5LP.mjs} +1 -1
- package/dist/{chunk-HWKLNKOY.mjs → chunk-U726TGCM.mjs} +1 -1
- package/dist/{chunk-HKIF5HVL.mjs → chunk-UJ2TMPV4.mjs} +12 -0
- package/dist/{chunk-5DUMSVP6.mjs → chunk-UMCJYHAD.mjs} +3 -3
- package/dist/{chunk-NHDFPGQ3.mjs → chunk-UWY5ZV66.mjs} +13 -1
- package/dist/{chunk-7ZYDO3XO.mjs → chunk-VFF5WB7C.mjs} +299 -194
- package/dist/{chunk-XXBP2Z5M.mjs → chunk-WVA4O7QS.mjs} +1 -1
- package/dist/{chunk-AH4DORIW.mjs → chunk-XY7A7GZJ.mjs} +1 -1
- package/dist/{chunk-FQDPOKEK.mjs → chunk-Y2YVTIJI.mjs} +1 -1
- package/dist/{chunk-L4NOVTH5.mjs → chunk-YIOBBZUB.mjs} +2 -2
- package/dist/{chunk-LEJUZW3P.mjs → chunk-Z6BFNHEO.mjs} +12 -0
- package/dist/{collection-add-products-JWAQ277T.mjs → collection-add-products-42F7H77E.mjs} +14 -13
- package/dist/{collection-create-DCRW344Z.mjs → collection-create-GWKWVT7B.mjs} +5 -4
- package/dist/{collection-detail-F4ON763T.mjs → collection-detail-PXIS3G64.mjs} +28 -12
- package/dist/{collection-edit-UNFEW6HT.mjs → collection-edit-EZIO2BR5.mjs} +5 -4
- package/dist/{collection-list-4C5HVO6Y.mjs → collection-list-O74CGY24.mjs} +29 -13
- package/dist/{collection-metadata-P4A5DXBQ.mjs → collection-metadata-U6FMA4IC.mjs} +14 -13
- 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-X3RQJPXP.mjs → customer-detail-OMTFJ6CE.mjs} +12 -11
- package/dist/{customer-edit-BW5GVTQI.mjs → customer-edit-XQ5NWIVX.mjs} +2 -2
- package/dist/{customer-group-add-customers-SOXMSWQH.mjs → customer-group-add-customers-XMR2WBXX.mjs} +2 -2
- package/dist/{customer-group-create-6YV7W6TI.mjs → customer-group-create-RY4FVEIW.mjs} +2 -2
- package/dist/{customer-group-detail-NG32WKJT.mjs → customer-group-detail-ADK3M5LG.mjs} +11 -10
- package/dist/{customer-group-edit-7NXU34BQ.mjs → customer-group-edit-MQWARIQZ.mjs} +2 -2
- package/dist/{customer-group-list-EBETHKKO.mjs → customer-group-list-7ZRQ2HWU.mjs} +11 -10
- 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-7FYD54MZ.mjs → customers-add-customer-group-5U27WHJB.mjs} +13 -12
- package/dist/{edit-inventory-item-Y5W6VTHJ.mjs → edit-inventory-item-H7DAZWIT.mjs} +4 -3
- package/dist/{edit-inventory-item-attributes-NAAZDFEJ.mjs → edit-inventory-item-attributes-7HTXXPGZ.mjs} +4 -3
- package/dist/{edit-reservation-2UD4RZJX.mjs → edit-reservation-OVTRZHJR.mjs} +5 -4
- package/dist/{edit-rules-2W3BXEXR.mjs → edit-rules-BM2ERGVJ.mjs} +13 -12
- package/dist/en.json +38 -0
- package/dist/{inventory-create-VQEK7C5T.mjs → inventory-create-7MA7B5N2.mjs} +14 -13
- package/dist/{inventory-detail-HUHQ6ZNE.mjs → inventory-detail-B4PRHZK3.mjs} +11 -10
- package/dist/{inventory-list-RUSSPKHE.mjs → inventory-list-RXJPSVZE.mjs} +2 -1
- package/dist/{inventory-metadata-X52VGHA7.mjs → inventory-metadata-C7MJ3GY5.mjs} +14 -13
- package/dist/{inventory-stock-EKTOYN2F.mjs → inventory-stock-WVTYPJTX.mjs} +15 -14
- 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-UVWYE6Q2.mjs → location-detail-KO6EBDK5.mjs} +12 -11
- package/dist/{location-edit-L4ISEQHX.mjs → location-edit-VCS7GVWQ.mjs} +2 -2
- package/dist/{location-fulfillment-providers-HZZUHPVL.mjs → location-fulfillment-providers-IORBE3E3.mjs} +15 -14
- package/dist/{location-list-Z42ZYHUF.mjs → location-list-KVBA6J47.mjs} +2 -2
- package/dist/{location-sales-channels-XIMOK66B.mjs → location-sales-channels-P3QJTFDT.mjs} +5 -4
- package/dist/{location-service-zone-create-7ZNVLEE3.mjs → location-service-zone-create-J43WN6G4.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-EOULKRYD.mjs → location-service-zone-manage-areas-6ZPMKMSX.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-create-M7G4SKNP.mjs → location-service-zone-shipping-option-create-2R3ZFLVK.mjs} +15 -14
- package/dist/{location-service-zone-shipping-option-edit-M2HJAASG.mjs → location-service-zone-shipping-option-edit-4CGPQ3VT.mjs} +2 -2
- package/dist/{location-service-zone-shipping-option-pricing-23QLNSBT.mjs → location-service-zone-shipping-option-pricing-5HN2Z5RB.mjs} +4 -4
- package/dist/{login-NSCAMAU6.mjs → login-XKB6OR7I.mjs} +13 -12
- package/dist/{manage-locations-JD6FSBOT.mjs → manage-locations-7HH6R4UP.mjs} +4 -3
- package/dist/{order-allocate-items-5T57NZOB.mjs → order-allocate-items-HZGGYJ42.mjs} +6 -5
- package/dist/{order-create-claim-TE56IE7P.mjs → order-create-claim-NKCOGF4A.mjs} +15 -14
- package/dist/{order-create-edit-RDFYBVFY.mjs → order-create-edit-UNQYXGLL.mjs} +14 -13
- package/dist/{order-create-exchange-B5ZOEQCJ.mjs → order-create-exchange-WI7OA2WO.mjs} +15 -14
- package/dist/{order-create-fulfillment-SRRP6X64.mjs → order-create-fulfillment-2LJTEWDY.mjs} +13 -12
- package/dist/{order-create-refund-PTOM65QK.mjs → order-create-refund-7K6UJXGP.mjs} +13 -12
- package/dist/{order-create-return-3C2QVNYN.mjs → order-create-return-52GHGW5Z.mjs} +7 -6
- package/dist/{order-create-shipment-HNILNFXB.mjs → order-create-shipment-ZTDLLUBY.mjs} +13 -12
- package/dist/{order-detail-3OUZOQ7G.mjs → order-detail-JTRUMRLO.mjs} +15 -14
- package/dist/{order-edit-billing-address-3IO7GXIK.mjs → order-edit-billing-address-YHYNVLOE.mjs} +13 -12
- package/dist/{order-edit-email-QIAEOUBV.mjs → order-edit-email-TCQPEVZY.mjs} +13 -12
- package/dist/{order-edit-shipping-address-QGGMHGBC.mjs → order-edit-shipping-address-CFSYQLKD.mjs} +13 -12
- package/dist/{order-export-JYYFTOWR.mjs → order-export-G4SBNEJ7.mjs} +14 -13
- package/dist/{order-list-RFR3HNDQ.mjs → order-list-GRLQWN4L.mjs} +6 -5
- package/dist/{order-metadata-ZBDTMBHZ.mjs → order-metadata-KGPB37VL.mjs} +14 -13
- package/dist/{order-receive-return-V42FTCFY.mjs → order-receive-return-JER24SEV.mjs} +14 -13
- package/dist/{order-request-transfer-A6NNIN2O.mjs → order-request-transfer-3FBUYZNT.mjs} +13 -12
- package/dist/{price-list-configuration-RTUEJENE.mjs → price-list-configuration-6S3MLNXQ.mjs} +6 -5
- package/dist/{price-list-create-GRT27KOM.mjs → price-list-create-CXZCFFTP.mjs} +17 -16
- package/dist/{price-list-detail-VKIWM7HP.mjs → price-list-detail-XOMU6U5J.mjs} +13 -12
- package/dist/{price-list-edit-SW7YIR3Z.mjs → price-list-edit-53UW35L3.mjs} +5 -4
- package/dist/{price-list-list-LF2PL4B5.mjs → price-list-list-DG5YEZ44.mjs} +4 -3
- package/dist/{price-list-prices-add-ISLZDQNI.mjs → price-list-prices-add-SDX5CQME.mjs} +16 -15
- package/dist/{price-list-prices-edit-C6SX2TLJ.mjs → price-list-prices-edit-EKB6NI5D.mjs} +7 -6
- package/dist/{product-attributes-REJ5NF2D.mjs → product-attributes-MXDPSOWM.mjs} +14 -13
- package/dist/{product-create-4TFE3JHQ.mjs → product-create-3O34JJLS.mjs} +16 -15
- package/dist/{product-create-option-GEGQNSMQ.mjs → product-create-option-7AOXAA4S.mjs} +4 -3
- package/dist/{product-create-variant-WI6D5CDG.mjs → product-create-variant-OTJKT6WI.mjs} +14 -13
- package/dist/{product-detail-BEIDGPKY.mjs → product-detail-SYTLG5D3.mjs} +59 -17
- package/dist/{product-edit-ZRQUK5OQ.mjs → product-edit-W72S22NM.mjs} +14 -13
- package/dist/{product-edit-option-HBIOBQTS.mjs → product-edit-option-LWJT3CYJ.mjs} +4 -3
- package/dist/{product-export-GIEFG4MA.mjs → product-export-57UUAGXF.mjs} +15 -14
- package/dist/{product-image-variants-edit-AAMRK4KQ.mjs → product-image-variants-edit-2BW5BJON.mjs} +13 -12
- package/dist/{product-import-43UXKCL3.mjs → product-import-6EM4VUXP.mjs} +13 -12
- package/dist/{product-list-D4CVUBQQ.mjs → product-list-5V5GEH5K.mjs} +25 -12
- package/dist/{product-media-EGK66SRX.mjs → product-media-3VJ7KENL.mjs} +4 -3
- package/dist/{product-metadata-55CAQTPS.mjs → product-metadata-JZLHBLZQ.mjs} +14 -13
- package/dist/{product-organization-7J7MUM6F.mjs → product-organization-SVXTCWIF.mjs} +15 -14
- package/dist/{product-prices-WQDE4XYT.mjs → product-prices-5ZL2RP7A.mjs} +5 -4
- package/dist/{product-sales-channels-GIJ7Q57M.mjs → product-sales-channels-PPXUG4KT.mjs} +5 -4
- package/dist/{product-shipping-profile-KIDRTPWA.mjs → product-shipping-profile-ETQFZ7DC.mjs} +4 -3
- package/dist/{product-stock-22S2HGMM.mjs → product-stock-SJJABF6I.mjs} +15 -14
- package/dist/{product-tag-create-7GPE246H.mjs → product-tag-create-XXO4AQEC.mjs} +13 -12
- package/dist/{product-tag-detail-R6C2TTA4.mjs → product-tag-detail-BSK64HXL.mjs} +30 -14
- package/dist/{product-tag-edit-WA6FGSIP.mjs → product-tag-edit-ENCGDT7E.mjs} +13 -12
- package/dist/{product-tag-list-U7PLHMLF.mjs → product-tag-list-SLQGCNDZ.mjs} +30 -14
- package/dist/{product-tag-metadata-EJ7FEXSE.mjs → product-tag-metadata-EPXHMU2K.mjs} +14 -13
- package/dist/{product-type-create-HBDROTGB.mjs → product-type-create-DRFXTL5O.mjs} +4 -3
- package/dist/{product-type-detail-TYQ7MJFE.mjs → product-type-detail-4CRRU7YK.mjs} +29 -13
- package/dist/{product-type-edit-H3JCMVRV.mjs → product-type-edit-SRHCZDK7.mjs} +4 -3
- package/dist/{product-type-list-KIKWBPD7.mjs → product-type-list-QQKAHBJ3.mjs} +19 -3
- package/dist/{product-type-metadata-Q6W5GL7Z.mjs → product-type-metadata-73OKOGPP.mjs} +14 -13
- package/dist/{product-variant-detail-SPJ7MZTK.mjs → product-variant-detail-RPHLG4HU.mjs} +27 -11
- package/dist/{product-variant-edit-BW7QMHC5.mjs → product-variant-edit-JF7NN64Y.mjs} +13 -12
- package/dist/{product-variant-manage-inventory-items-BLHCH6QD.mjs → product-variant-manage-inventory-items-Y2VEOHP7.mjs} +4 -3
- package/dist/{product-variant-media-KLSUISGH.mjs → product-variant-media-2WLVNGI4.mjs} +4 -3
- package/dist/{product-variant-metadata-GDMVC4MZ.mjs → product-variant-metadata-HU2CXGPO.mjs} +14 -13
- package/dist/{profile-edit-YBBXXCCK.mjs → profile-edit-ZNXO6WME.mjs} +2 -2
- package/dist/{promotion-add-campaign-JRTM7WBR.mjs → promotion-add-campaign-DO67QK6M.mjs} +3 -3
- package/dist/{promotion-create-HF6DTKCC.mjs → promotion-create-BHA3FQG2.mjs} +15 -14
- package/dist/{promotion-detail-HTM3F2VO.mjs → promotion-detail-F3QSR52W.mjs} +11 -10
- package/dist/{promotion-edit-details-AREFQ6O5.mjs → promotion-edit-details-6BSOOWQN.mjs} +2 -2
- package/dist/{refund-reason-create-RKIH46D6.mjs → refund-reason-create-ZA5TKW2Z.mjs} +13 -12
- package/dist/{refund-reason-edit-V3KC6NMO.mjs → refund-reason-edit-N2CRCLKZ.mjs} +13 -12
- package/dist/{refund-reason-list-M5BOHFWU.mjs → refund-reason-list-SE4TMGMT.mjs} +11 -10
- package/dist/{region-add-countries-OF5RUSYU.mjs → region-add-countries-2VAVXMJQ.mjs} +2 -2
- package/dist/{region-create-BGOWVCTR.mjs → region-create-NA7Y2LN4.mjs} +2 -2
- package/dist/{region-edit-5GO25GDF.mjs → region-edit-WAU347DP.mjs} +2 -2
- package/dist/{region-metadata-5NGUNAXZ.mjs → region-metadata-O5NZBWXP.mjs} +14 -13
- package/dist/{reservation-create-Z2SUMBGT.mjs → reservation-create-ZCIYM6JI.mjs} +5 -4
- package/dist/{reservation-detail-JH77TQHN.mjs → reservation-detail-UFK6XIXE.mjs} +11 -10
- package/dist/{reservation-list-WHBGZSVH.mjs → reservation-list-B47DXTA7.mjs} +3 -2
- package/dist/{reservation-metadata-ERCWXYVL.mjs → reservation-metadata-AEJEKGLV.mjs} +14 -13
- 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/{sales-channel-add-products-DTAXWL6H.mjs → sales-channel-add-products-2LMB7EF5.mjs} +14 -13
- package/dist/{sales-channel-create-E7BDTPWD.mjs → sales-channel-create-MI7HHZYE.mjs} +5 -4
- package/dist/{sales-channel-detail-XWHV7J7X.mjs → sales-channel-detail-EUQ4STQI.mjs} +12 -11
- package/dist/{sales-channel-edit-HMPA3Y3L.mjs → sales-channel-edit-VSHOIR37.mjs} +5 -4
- package/dist/{sales-channel-list-7NSEFCXQ.mjs → sales-channel-list-JXKGHX4G.mjs} +11 -10
- package/dist/{sales-channel-metadata-CMZN74K7.mjs → sales-channel-metadata-AJMQ5SQ2.mjs} +14 -13
- package/dist/{shipping-option-type-create-4BN2GBHP.mjs → shipping-option-type-create-YVVIA2XC.mjs} +13 -12
- package/dist/{shipping-option-type-detail-YB3TCED2.mjs → shipping-option-type-detail-ZZW36XLK.mjs} +12 -11
- package/dist/{shipping-option-type-edit-MDO7ALAU.mjs → shipping-option-type-edit-O6F74T3A.mjs} +13 -12
- package/dist/{shipping-option-type-list-DJAT4RKX.mjs → shipping-option-type-list-SPTE7MT6.mjs} +12 -11
- package/dist/{shipping-profile-create-752TMBBE.mjs → shipping-profile-create-26R64I3Z.mjs} +2 -2
- package/dist/{shipping-profile-metadata-HQI7PCPU.mjs → shipping-profile-metadata-7WFE55VG.mjs} +14 -13
- package/dist/{store-add-currencies-PEWNEWCH.mjs → store-add-currencies-OX2WXFMS.mjs} +2 -2
- package/dist/store-add-locales-GWCGIXHU.mjs +81 -0
- package/dist/{store-detail-MOLAYNQZ.mjs → store-detail-YLJLBBZE.mjs} +11 -10
- package/dist/{store-edit-FTLPT55E.mjs → store-edit-5ZS562ZO.mjs} +2 -2
- package/dist/{store-metadata-ZJD23O4D.mjs → store-metadata-BZ57I2E6.mjs} +14 -13
- package/dist/{tax-region-create-NCO2OQ3I.mjs → tax-region-create-FGTV7VJL.mjs} +13 -12
- package/dist/{tax-region-detail-RIABXU7D.mjs → tax-region-detail-PPIMD7OX.mjs} +21 -20
- package/dist/{tax-region-edit-YZALLSZY.mjs → tax-region-edit-ELZKA7YH.mjs} +13 -12
- 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-UKLRVJS2.mjs → tax-region-province-detail-FV2NDT3E.mjs} +20 -19
- package/dist/{tax-region-tax-override-create-33XGHH7A.mjs → tax-region-tax-override-create-N572MQPZ.mjs} +16 -15
- package/dist/{tax-region-tax-override-edit-WOKZSPTY.mjs → tax-region-tax-override-edit-5DCSJW6D.mjs} +17 -16
- 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-FK7XYLHX.mjs +527 -0
- package/dist/translations-edit-VRXZI5KW.mjs +678 -0
- package/dist/{user-detail-KEDJ7N3Q.mjs → user-detail-BJUXLZZQ.mjs} +2 -1
- package/dist/{user-edit-LXQCTDGA.mjs → user-edit-ZBB4RMTP.mjs} +2 -2
- package/dist/{user-invite-YH33WUC2.mjs → user-invite-GAGIM5DO.mjs} +2 -2
- package/dist/{user-metadata-4WOICEE7.mjs → user-metadata-GRJZZ524.mjs} +14 -13
- package/dist/{workflow-execution-detail-OKM6P4SX.mjs → workflow-execution-detail-HXTFWGKG.mjs} +11 -10
- package/package.json +9 -9
- package/src/components/common/icon-avatar/icon-avatar.tsx +4 -0
- package/src/components/data-grid/components/data-grid-cell-container.tsx +13 -4
- package/src/components/data-grid/components/data-grid-multiline-cell.tsx +103 -0
- package/src/components/data-grid/components/data-grid-readonly-cell.tsx +13 -3
- package/src/components/data-grid/components/data-grid-root.tsx +271 -60
- package/src/components/data-grid/components/data-grid-text-cell.tsx +7 -7
- package/src/components/data-grid/components/data-grid-textarea-modal-cell.tsx +233 -0
- package/src/components/data-grid/components/index.ts +2 -0
- package/src/components/data-grid/data-grid.tsx +16 -1
- package/src/components/data-grid/helpers/create-data-grid-column-helper.ts +18 -0
- package/src/components/data-grid/hooks/use-data-grid-cell.tsx +13 -1
- package/src/components/data-grid/hooks/use-data-grid-form-handlers.tsx +1 -0
- package/src/components/data-grid/hooks/use-data-grid-keydown-event.tsx +65 -7
- package/src/components/data-grid/types.ts +1 -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 +23 -0
- package/src/hooks/api/categories.tsx +32 -0
- package/src/hooks/api/collections.tsx +31 -0
- package/src/hooks/api/index.ts +1 -0
- package/src/hooks/api/product-types.tsx +32 -0
- package/src/hooks/api/product-variants.tsx +47 -3
- package/src/hooks/api/products.tsx +29 -0
- package/src/hooks/api/tags.tsx +32 -0
- package/src/hooks/api/translations.tsx +315 -0
- package/src/hooks/use-infinite-list.tsx +92 -0
- package/src/i18n/translations/$schema.json +122 -0
- package/src/i18n/translations/en.json +38 -0
- package/src/i18n/translations/es.json +38 -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/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/add-locales/add-locales.tsx +29 -0
- package/src/routes/translations/add-locales/index.tsx +1 -0
- package/src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx +93 -0
- package/src/routes/translations/translation-list/components/translation-list-section/translation-list-section.tsx +48 -0
- package/src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx +285 -0
- package/src/routes/translations/translation-list/index.tsx +1 -0
- package/src/routes/translations/translation-list/translation-list.tsx +138 -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 +747 -0
- package/src/routes/translations/translations-edit/index.ts +1 -0
- package/src/routes/translations/translations-edit/translations-edit.tsx +90 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { FetchError } from "@medusajs/js-sdk"
|
|
2
|
+
import { PaginatedResponse } from "@medusajs/types"
|
|
3
|
+
import {
|
|
4
|
+
QueryKey,
|
|
5
|
+
UseInfiniteQueryOptions,
|
|
6
|
+
InfiniteData,
|
|
7
|
+
useInfiniteQuery,
|
|
8
|
+
} from "@tanstack/react-query"
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Generic hook for infinite queries with pagination support.
|
|
12
|
+
*
|
|
13
|
+
* @template TResponse - The response type that must include count, offset, and limit
|
|
14
|
+
* @template TParams - The query parameters type (offset and limit will be handled internally)
|
|
15
|
+
* @template TError - The error type (defaults to FetchError)
|
|
16
|
+
* @template TQueryKey - The query key type (defaults to QueryKey)
|
|
17
|
+
*
|
|
18
|
+
* @param config - Configuration object
|
|
19
|
+
* @param config.queryKey - Function or array that generates the query key
|
|
20
|
+
* @param config.queryFn - Function that fetches data with offset and limit
|
|
21
|
+
* @param config.query - Query parameters (offset is ignored, limit is optional)
|
|
22
|
+
* @param config.options - Additional options for useInfiniteQuery
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const { data, fetchNextPage, hasNextPage } = useInfiniteList({
|
|
27
|
+
* queryKey: (params) => productVariantQueryKeys.list(params),
|
|
28
|
+
* queryFn: async (params) => sdk.admin.productVariant.list(params),
|
|
29
|
+
* query: { status: "published" },
|
|
30
|
+
* })
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export const useInfiniteList = <
|
|
34
|
+
TResponse extends PaginatedResponse<unknown>,
|
|
35
|
+
TParams extends { offset?: number; limit?: number } = {
|
|
36
|
+
offset?: number
|
|
37
|
+
limit?: number
|
|
38
|
+
},
|
|
39
|
+
TError = FetchError,
|
|
40
|
+
TQueryKey extends QueryKey = QueryKey
|
|
41
|
+
>({
|
|
42
|
+
queryKey,
|
|
43
|
+
queryFn,
|
|
44
|
+
query,
|
|
45
|
+
options,
|
|
46
|
+
}: {
|
|
47
|
+
queryKey: ((params: Omit<TParams, "limit">) => TQueryKey) | TQueryKey
|
|
48
|
+
queryFn: (params: TParams) => Promise<TResponse>
|
|
49
|
+
query?: TParams
|
|
50
|
+
options?: Omit<
|
|
51
|
+
UseInfiniteQueryOptions<
|
|
52
|
+
TResponse,
|
|
53
|
+
TError,
|
|
54
|
+
InfiniteData<TResponse, number>,
|
|
55
|
+
TResponse,
|
|
56
|
+
TQueryKey,
|
|
57
|
+
number
|
|
58
|
+
>,
|
|
59
|
+
"queryKey" | "queryFn" | "initialPageParam" | "getNextPageParam"
|
|
60
|
+
>
|
|
61
|
+
}) => {
|
|
62
|
+
const { limit = 50, offset: _, ..._query } = query ?? {}
|
|
63
|
+
const resolvedQueryKey =
|
|
64
|
+
typeof queryKey === "function"
|
|
65
|
+
? queryKey(_query as Omit<TParams, "limit">)
|
|
66
|
+
: queryKey
|
|
67
|
+
const infiniteQueryKey =
|
|
68
|
+
resolvedQueryKey[resolvedQueryKey.length - 1] === "__infinite"
|
|
69
|
+
? resolvedQueryKey
|
|
70
|
+
: ([...resolvedQueryKey, "__infinite"] as unknown as TQueryKey)
|
|
71
|
+
|
|
72
|
+
return useInfiniteQuery<
|
|
73
|
+
TResponse,
|
|
74
|
+
TError,
|
|
75
|
+
InfiniteData<TResponse, number>,
|
|
76
|
+
TQueryKey,
|
|
77
|
+
number
|
|
78
|
+
>({
|
|
79
|
+
// Infinite queries must not share the exact same queryKey as non-infinite queries,
|
|
80
|
+
// since the cached data shape differs (InfiniteData<T> vs T).
|
|
81
|
+
queryKey: infiniteQueryKey,
|
|
82
|
+
queryFn: ({ pageParam = 0 }) => {
|
|
83
|
+
return queryFn({ ..._query, limit, offset: pageParam } as TParams)
|
|
84
|
+
},
|
|
85
|
+
initialPageParam: 0,
|
|
86
|
+
getNextPageParam: (lastPage) => {
|
|
87
|
+
const moreItemsExist = lastPage.count > lastPage.offset + lastPage.limit
|
|
88
|
+
return moreItemsExist ? lastPage.offset + lastPage.limit : undefined
|
|
89
|
+
},
|
|
90
|
+
...options,
|
|
91
|
+
})
|
|
92
|
+
}
|
|
@@ -38,6 +38,9 @@
|
|
|
38
38
|
"search": {
|
|
39
39
|
"type": "string"
|
|
40
40
|
},
|
|
41
|
+
"original": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
41
44
|
"of": {
|
|
42
45
|
"type": "string"
|
|
43
46
|
},
|
|
@@ -104,6 +107,9 @@
|
|
|
104
107
|
"removed": {
|
|
105
108
|
"type": "string"
|
|
106
109
|
},
|
|
110
|
+
"remaining": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
107
113
|
"admin": {
|
|
108
114
|
"type": "string"
|
|
109
115
|
},
|
|
@@ -191,6 +197,7 @@
|
|
|
191
197
|
"apply",
|
|
192
198
|
"range",
|
|
193
199
|
"search",
|
|
200
|
+
"original",
|
|
194
201
|
"of",
|
|
195
202
|
"results",
|
|
196
203
|
"pages",
|
|
@@ -213,6 +220,7 @@
|
|
|
213
220
|
"modified",
|
|
214
221
|
"added",
|
|
215
222
|
"removed",
|
|
223
|
+
"remaining",
|
|
216
224
|
"admin",
|
|
217
225
|
"store",
|
|
218
226
|
"details",
|
|
@@ -381,6 +389,12 @@
|
|
|
381
389
|
"save": {
|
|
382
390
|
"type": "string"
|
|
383
391
|
},
|
|
392
|
+
"saveChanges": {
|
|
393
|
+
"type": "string"
|
|
394
|
+
},
|
|
395
|
+
"saveAndClose": {
|
|
396
|
+
"type": "string"
|
|
397
|
+
},
|
|
384
398
|
"saveAsDraft": {
|
|
385
399
|
"type": "string"
|
|
386
400
|
},
|
|
@@ -513,7 +527,9 @@
|
|
|
513
527
|
},
|
|
514
528
|
"required": [
|
|
515
529
|
"save",
|
|
530
|
+
"saveChanges",
|
|
516
531
|
"saveAsDraft",
|
|
532
|
+
"saveAndClose",
|
|
517
533
|
"copy",
|
|
518
534
|
"copied",
|
|
519
535
|
"duplicate",
|
|
@@ -9328,6 +9344,112 @@
|
|
|
9328
9344
|
],
|
|
9329
9345
|
"additionalProperties": false
|
|
9330
9346
|
},
|
|
9347
|
+
"translations": {
|
|
9348
|
+
"type": "object",
|
|
9349
|
+
"properties": {
|
|
9350
|
+
"domain": {
|
|
9351
|
+
"type": "string"
|
|
9352
|
+
},
|
|
9353
|
+
"subtitle": {
|
|
9354
|
+
"type": "string"
|
|
9355
|
+
},
|
|
9356
|
+
"list": {
|
|
9357
|
+
"type": "object",
|
|
9358
|
+
"properties": {
|
|
9359
|
+
"metrics": {
|
|
9360
|
+
"type": "string"
|
|
9361
|
+
}
|
|
9362
|
+
},
|
|
9363
|
+
"required": ["metrics"]
|
|
9364
|
+
},
|
|
9365
|
+
"actions": {
|
|
9366
|
+
"type": "object",
|
|
9367
|
+
"properties": {
|
|
9368
|
+
"manageLocales": {
|
|
9369
|
+
"type": "string"
|
|
9370
|
+
},
|
|
9371
|
+
"manage": {
|
|
9372
|
+
"type": "string"
|
|
9373
|
+
}
|
|
9374
|
+
},
|
|
9375
|
+
"required": ["manageLocales", "manage"]
|
|
9376
|
+
},
|
|
9377
|
+
"edit": {
|
|
9378
|
+
"type": "object",
|
|
9379
|
+
"properties": {
|
|
9380
|
+
"successToast": {
|
|
9381
|
+
"type": "string"
|
|
9382
|
+
},
|
|
9383
|
+
"unsavedChanges": {
|
|
9384
|
+
"type": "object",
|
|
9385
|
+
"properties": {
|
|
9386
|
+
"title": {
|
|
9387
|
+
"type": "string"
|
|
9388
|
+
},
|
|
9389
|
+
"description": {
|
|
9390
|
+
"type": "string"
|
|
9391
|
+
}
|
|
9392
|
+
},
|
|
9393
|
+
"required": ["title", "description"]
|
|
9394
|
+
}
|
|
9395
|
+
},
|
|
9396
|
+
"required": ["successToast", "unsavedChanges"]
|
|
9397
|
+
},
|
|
9398
|
+
"bulk": {
|
|
9399
|
+
"type": "object",
|
|
9400
|
+
"properties": {
|
|
9401
|
+
"header": {
|
|
9402
|
+
"type": "string"
|
|
9403
|
+
},
|
|
9404
|
+
"mainColumn": {
|
|
9405
|
+
"type": "string"
|
|
9406
|
+
}
|
|
9407
|
+
},
|
|
9408
|
+
"required": ["header"]
|
|
9409
|
+
},
|
|
9410
|
+
"activeLocales": {
|
|
9411
|
+
"type": "object",
|
|
9412
|
+
"properties": {
|
|
9413
|
+
"heading": {
|
|
9414
|
+
"type": "string"
|
|
9415
|
+
},
|
|
9416
|
+
"subtitle": {
|
|
9417
|
+
"type": "string"
|
|
9418
|
+
},
|
|
9419
|
+
"noLocalesTip": {
|
|
9420
|
+
"type": "string"
|
|
9421
|
+
}
|
|
9422
|
+
},
|
|
9423
|
+
"required": ["heading", "subtitle", "noLocalesTip"]
|
|
9424
|
+
},
|
|
9425
|
+
"completion": {
|
|
9426
|
+
"type": "object",
|
|
9427
|
+
"properties": {
|
|
9428
|
+
"heading": {
|
|
9429
|
+
"type": "string"
|
|
9430
|
+
},
|
|
9431
|
+
"translated": {
|
|
9432
|
+
"type": "string"
|
|
9433
|
+
},
|
|
9434
|
+
"toTranslate": {
|
|
9435
|
+
"type": "string"
|
|
9436
|
+
},
|
|
9437
|
+
"footer": {
|
|
9438
|
+
"type": "string"
|
|
9439
|
+
}
|
|
9440
|
+
},
|
|
9441
|
+
"required": ["heading", "translated", "toTranslate", "footer"]
|
|
9442
|
+
}
|
|
9443
|
+
},
|
|
9444
|
+
"required": [
|
|
9445
|
+
"domain",
|
|
9446
|
+
"actions",
|
|
9447
|
+
"subtitle",
|
|
9448
|
+
"bulk",
|
|
9449
|
+
"completion",
|
|
9450
|
+
"edit"
|
|
9451
|
+
]
|
|
9452
|
+
},
|
|
9331
9453
|
"store": {
|
|
9332
9454
|
"type": "object",
|
|
9333
9455
|
"properties": {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"apply": "Apply",
|
|
12
12
|
"range": "Range",
|
|
13
13
|
"search": "Search",
|
|
14
|
+
"original": "Original",
|
|
14
15
|
"of": "of",
|
|
15
16
|
"results": "results",
|
|
16
17
|
"pages": "pages",
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
"modified": "Modified",
|
|
34
35
|
"added": "Added",
|
|
35
36
|
"removed": "Removed",
|
|
37
|
+
"remaining": "Left",
|
|
36
38
|
"admin": "Admin",
|
|
37
39
|
"store": "Store",
|
|
38
40
|
"details": "Details",
|
|
@@ -99,7 +101,9 @@
|
|
|
99
101
|
},
|
|
100
102
|
"actions": {
|
|
101
103
|
"save": "Save",
|
|
104
|
+
"saveChanges": "Save changes",
|
|
102
105
|
"saveAsDraft": "Save as draft",
|
|
106
|
+
"saveAndClose": "Save and close",
|
|
103
107
|
"copy": "Copy",
|
|
104
108
|
"copied": "Copied",
|
|
105
109
|
"duplicate": "Duplicate",
|
|
@@ -2504,6 +2508,40 @@
|
|
|
2504
2508
|
"deleteUserSuccess": "User {{name}} deleted successfully",
|
|
2505
2509
|
"invite": "Invite"
|
|
2506
2510
|
},
|
|
2511
|
+
"translations": {
|
|
2512
|
+
"domain": "Translations",
|
|
2513
|
+
"actions": {
|
|
2514
|
+
"manage": "Manage translations",
|
|
2515
|
+
"manageLocales": "Manage locales"
|
|
2516
|
+
},
|
|
2517
|
+
"title": "Translation domains",
|
|
2518
|
+
"subtitle": "Manage translations of your data in Medusa",
|
|
2519
|
+
"list": {
|
|
2520
|
+
"metrics": "{{translated}} of {{total}} fields translated"
|
|
2521
|
+
},
|
|
2522
|
+
"edit": {
|
|
2523
|
+
"successToast": "Translations updated successfully",
|
|
2524
|
+
"unsavedChanges": {
|
|
2525
|
+
"title": "Unsaved translations",
|
|
2526
|
+
"description": "Don't lose your work. You have changes that haven't been saved yet"
|
|
2527
|
+
}
|
|
2528
|
+
},
|
|
2529
|
+
"bulk": {
|
|
2530
|
+
"header": "Translations Bulk Editor",
|
|
2531
|
+
"mainColumn": "Locale"
|
|
2532
|
+
},
|
|
2533
|
+
"activeLocales": {
|
|
2534
|
+
"heading": "Languages",
|
|
2535
|
+
"subtitle": "Activated translations",
|
|
2536
|
+
"noLocalesTip": "Configure at least one locale to start translating your data"
|
|
2537
|
+
},
|
|
2538
|
+
"completion": {
|
|
2539
|
+
"heading": "Translated fields",
|
|
2540
|
+
"translated": "Translated",
|
|
2541
|
+
"toTranslate": "Missing",
|
|
2542
|
+
"footer": "Languages"
|
|
2543
|
+
}
|
|
2544
|
+
},
|
|
2507
2545
|
"store": {
|
|
2508
2546
|
"domain": "Store",
|
|
2509
2547
|
"manageYourStoresDetails": "Manage your store's details",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"apply": "Aplicar",
|
|
12
12
|
"range": "Rango",
|
|
13
13
|
"search": "Buscar",
|
|
14
|
+
"original": "Original",
|
|
14
15
|
"of": "de",
|
|
15
16
|
"results": "resultados",
|
|
16
17
|
"pages": "páginas",
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
"modified": "Modificado",
|
|
34
35
|
"added": "Agregado",
|
|
35
36
|
"removed": "Eliminado",
|
|
37
|
+
"remaining": "Restantes",
|
|
36
38
|
"admin": "Administrador",
|
|
37
39
|
"store": "Tienda",
|
|
38
40
|
"details": "Detalles",
|
|
@@ -120,7 +122,9 @@
|
|
|
120
122
|
},
|
|
121
123
|
"actions": {
|
|
122
124
|
"save": "Guardar",
|
|
125
|
+
"saveChanges": "Guardar cambios",
|
|
123
126
|
"saveAsDraft": "Guardar como borrador",
|
|
127
|
+
"saveAndClose": "Guardar y cerrar",
|
|
124
128
|
"copy": "Copiar",
|
|
125
129
|
"copied": "Copiado",
|
|
126
130
|
"duplicate": "Duplicar",
|
|
@@ -2443,6 +2447,40 @@
|
|
|
2443
2447
|
"deleteUserSuccess": "Usuario {{name}} eliminado correctamente",
|
|
2444
2448
|
"invite": "Invitar"
|
|
2445
2449
|
},
|
|
2450
|
+
"translations": {
|
|
2451
|
+
"domain": "Traducciones",
|
|
2452
|
+
"list": {
|
|
2453
|
+
"metrics": "{{translated}} de {{total}} textos traducidos"
|
|
2454
|
+
},
|
|
2455
|
+
"actions": {
|
|
2456
|
+
"manage": "Gestionar traducciones",
|
|
2457
|
+
"manageLocales": "Gestionar idiomas"
|
|
2458
|
+
},
|
|
2459
|
+
"title": "Traducción de dominios",
|
|
2460
|
+
"subtitle": "Gestiona las traducciones de tus datos en Medusa",
|
|
2461
|
+
"bulk": {
|
|
2462
|
+
"header": "Editor de Traducciones en Masa",
|
|
2463
|
+
"locale": "Idioma"
|
|
2464
|
+
},
|
|
2465
|
+
"edit": {
|
|
2466
|
+
"successToast": "Traducciones actualizadas exitosamente",
|
|
2467
|
+
"unsavedChanges": {
|
|
2468
|
+
"title": "Traducciones sin guardar",
|
|
2469
|
+
"description": "No pierdas tu trabajo. Tienes cambios que no han sido guardados aún"
|
|
2470
|
+
}
|
|
2471
|
+
},
|
|
2472
|
+
"activeLocales": {
|
|
2473
|
+
"heading": "Idiomas",
|
|
2474
|
+
"subtitle": "Traducciones activas",
|
|
2475
|
+
"noLocalesTip": "Configura al menos un idioma para empezar a traducir tu información"
|
|
2476
|
+
},
|
|
2477
|
+
"completion": {
|
|
2478
|
+
"heading": "Textos traducidos",
|
|
2479
|
+
"translated": "Traducidos",
|
|
2480
|
+
"toTranslate": "Faltantes",
|
|
2481
|
+
"footer": "Idiomas"
|
|
2482
|
+
}
|
|
2483
|
+
},
|
|
2446
2484
|
"store": {
|
|
2447
2485
|
"domain": "Tienda",
|
|
2448
2486
|
"manageYourStoresDetails": "Gestiona los detalles de tu tienda",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { PencilSquare, Trash } from "@medusajs/icons"
|
|
1
|
+
import { GlobeEurope, PencilSquare, Trash } from "@medusajs/icons"
|
|
2
2
|
import { HttpTypes } from "@medusajs/types"
|
|
3
3
|
import { Container, Heading, StatusBadge, Text } from "@medusajs/ui"
|
|
4
4
|
import { useTranslation } from "react-i18next"
|
|
5
5
|
import { ActionMenu } from "../../../../../components/common/action-menu"
|
|
6
6
|
import { useDeleteProductCategoryAction } from "../../../common/hooks/use-delete-product-category-action"
|
|
7
7
|
import { getIsActiveProps, getIsInternalProps } from "../../../common/utils"
|
|
8
|
+
import { useFeatureFlag } from "../../../../../providers/feature-flag-provider"
|
|
8
9
|
|
|
9
10
|
type CategoryGeneralSectionProps = {
|
|
10
11
|
category: HttpTypes.AdminProductCategory
|
|
@@ -14,6 +15,7 @@ export const CategoryGeneralSection = ({
|
|
|
14
15
|
category,
|
|
15
16
|
}: CategoryGeneralSectionProps) => {
|
|
16
17
|
const { t } = useTranslation()
|
|
18
|
+
const isTranslationsEnabled = useFeatureFlag("translation")
|
|
17
19
|
|
|
18
20
|
const activeProps = getIsActiveProps(category.is_active, t)
|
|
19
21
|
const internalProps = getIsInternalProps(category.is_internal, t)
|
|
@@ -44,6 +46,19 @@ export const CategoryGeneralSection = ({
|
|
|
44
46
|
},
|
|
45
47
|
],
|
|
46
48
|
},
|
|
49
|
+
...(isTranslationsEnabled
|
|
50
|
+
? [
|
|
51
|
+
{
|
|
52
|
+
actions: [
|
|
53
|
+
{
|
|
54
|
+
label: t("translations.actions.manage"),
|
|
55
|
+
to: `/settings/translations/edit?reference=product_category&reference_id=${category.id}`,
|
|
56
|
+
icon: <GlobeEurope />,
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
]
|
|
61
|
+
: []),
|
|
47
62
|
{
|
|
48
63
|
actions: [
|
|
49
64
|
{
|
package/src/routes/categories/category-list/components/category-list-table/category-list-table.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PencilSquare, Trash } from "@medusajs/icons"
|
|
1
|
+
import { GlobeEurope, PencilSquare, Trash } from "@medusajs/icons"
|
|
2
2
|
import { AdminProductCategoryResponse } from "@medusajs/types"
|
|
3
3
|
import { Button, Container, Heading, Text } from "@medusajs/ui"
|
|
4
4
|
import { keepPreviousData } from "@tanstack/react-query"
|
|
@@ -14,6 +14,7 @@ import { useDataTable } from "../../../../../hooks/use-data-table"
|
|
|
14
14
|
import { useDeleteProductCategoryAction } from "../../../common/hooks/use-delete-product-category-action"
|
|
15
15
|
import { useCategoryTableColumns } from "./use-category-table-columns"
|
|
16
16
|
import { useCategoryTableQuery } from "./use-category-table-query"
|
|
17
|
+
import { useFeatureFlag } from "../../../../../providers/feature-flag-provider"
|
|
17
18
|
|
|
18
19
|
const PAGE_SIZE = 20
|
|
19
20
|
|
|
@@ -105,6 +106,7 @@ const CategoryRowActions = ({
|
|
|
105
106
|
category: AdminProductCategoryResponse["product_category"]
|
|
106
107
|
}) => {
|
|
107
108
|
const { t } = useTranslation()
|
|
109
|
+
const isTranslationsEnabled = useFeatureFlag("translation")
|
|
108
110
|
const handleDelete = useDeleteProductCategoryAction(category)
|
|
109
111
|
|
|
110
112
|
return (
|
|
@@ -119,6 +121,19 @@ const CategoryRowActions = ({
|
|
|
119
121
|
},
|
|
120
122
|
],
|
|
121
123
|
},
|
|
124
|
+
...(isTranslationsEnabled
|
|
125
|
+
? [
|
|
126
|
+
{
|
|
127
|
+
actions: [
|
|
128
|
+
{
|
|
129
|
+
icon: <GlobeEurope />,
|
|
130
|
+
label: t("translations.actions.manage"),
|
|
131
|
+
to: `/settings/translations/edit?reference=product_category&reference_id=${category.id}`,
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
]
|
|
136
|
+
: []),
|
|
122
137
|
{
|
|
123
138
|
actions: [
|
|
124
139
|
{
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { PencilSquare, Trash } from "@medusajs/icons"
|
|
1
|
+
import { GlobeEurope, PencilSquare, Trash } from "@medusajs/icons"
|
|
2
2
|
import { HttpTypes } from "@medusajs/types"
|
|
3
3
|
import { Container, Heading, Text, usePrompt } from "@medusajs/ui"
|
|
4
4
|
import { useTranslation } from "react-i18next"
|
|
5
5
|
import { ActionMenu } from "../../../../../components/common/action-menu"
|
|
6
6
|
import { useDeleteCollection } from "../../../../../hooks/api/collections"
|
|
7
7
|
import { useNavigate } from "react-router-dom"
|
|
8
|
+
import { useFeatureFlag } from "../../../../../providers/feature-flag-provider"
|
|
8
9
|
|
|
9
10
|
type CollectionGeneralSectionProps = {
|
|
10
11
|
collection: HttpTypes.AdminCollection
|
|
@@ -16,6 +17,7 @@ export const CollectionGeneralSection = ({
|
|
|
16
17
|
const { t } = useTranslation()
|
|
17
18
|
const prompt = usePrompt()
|
|
18
19
|
const navigate = useNavigate()
|
|
20
|
+
const isTranslationsEnabled = useFeatureFlag("translation")
|
|
19
21
|
|
|
20
22
|
const { mutateAsync } = useDeleteCollection(collection.id!)
|
|
21
23
|
|
|
@@ -52,6 +54,19 @@ export const CollectionGeneralSection = ({
|
|
|
52
54
|
},
|
|
53
55
|
],
|
|
54
56
|
},
|
|
57
|
+
...(isTranslationsEnabled
|
|
58
|
+
? [
|
|
59
|
+
{
|
|
60
|
+
actions: [
|
|
61
|
+
{
|
|
62
|
+
label: t("translations.actions.manage"),
|
|
63
|
+
to: `/settings/translations/edit?reference=product_collection&reference_id=${collection.id}`,
|
|
64
|
+
icon: <GlobeEurope />,
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
]
|
|
69
|
+
: []),
|
|
55
70
|
{
|
|
56
71
|
actions: [
|
|
57
72
|
{
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { PencilSquare, Trash } from "@medusajs/icons"
|
|
1
|
+
import { GlobeEurope, PencilSquare, Trash } from "@medusajs/icons"
|
|
2
2
|
import { HttpTypes } from "@medusajs/types"
|
|
3
3
|
import { usePrompt } from "@medusajs/ui"
|
|
4
4
|
import { useTranslation } from "react-i18next"
|
|
5
5
|
|
|
6
6
|
import { ActionMenu } from "../../../../../components/common/action-menu"
|
|
7
7
|
import { useDeleteCollection } from "../../../../../hooks/api/collections"
|
|
8
|
+
import { useFeatureFlag } from "../../../../../providers/feature-flag-provider"
|
|
8
9
|
|
|
9
10
|
export const CollectionRowActions = ({
|
|
10
11
|
collection,
|
|
@@ -13,6 +14,7 @@ export const CollectionRowActions = ({
|
|
|
13
14
|
}) => {
|
|
14
15
|
const { t } = useTranslation()
|
|
15
16
|
const prompt = usePrompt()
|
|
17
|
+
const isTranslationsEnabled = useFeatureFlag("translation")
|
|
16
18
|
|
|
17
19
|
const { mutateAsync } = useDeleteCollection(collection.id!)
|
|
18
20
|
|
|
@@ -47,6 +49,19 @@ export const CollectionRowActions = ({
|
|
|
47
49
|
},
|
|
48
50
|
],
|
|
49
51
|
},
|
|
52
|
+
...(isTranslationsEnabled
|
|
53
|
+
? [
|
|
54
|
+
{
|
|
55
|
+
actions: [
|
|
56
|
+
{
|
|
57
|
+
icon: <GlobeEurope />,
|
|
58
|
+
label: t("translations.actions.manage"),
|
|
59
|
+
to: `/settings/translations/edit?reference=product_collection&reference_id=${collection.id}`,
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
]
|
|
64
|
+
: []),
|
|
50
65
|
{
|
|
51
66
|
actions: [
|
|
52
67
|
{
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { PencilSquare, Trash } from "@medusajs/icons"
|
|
1
|
+
import { GlobeEurope, PencilSquare, Trash } from "@medusajs/icons"
|
|
2
2
|
import { HttpTypes } from "@medusajs/types"
|
|
3
3
|
import { Container, Heading } from "@medusajs/ui"
|
|
4
4
|
import { useTranslation } from "react-i18next"
|
|
5
5
|
import { ActionMenu } from "../../../../../components/common/action-menu"
|
|
6
6
|
import { useDeleteProductTagAction } from "../../../common/hooks/use-delete-product-tag-action"
|
|
7
|
+
import { useFeatureFlag } from "../../../../../providers/feature-flag-provider"
|
|
7
8
|
|
|
8
9
|
type ProductTagGeneralSectionProps = {
|
|
9
10
|
productTag: HttpTypes.AdminProductTag
|
|
@@ -14,6 +15,7 @@ export const ProductTagGeneralSection = ({
|
|
|
14
15
|
}: ProductTagGeneralSectionProps) => {
|
|
15
16
|
const { t } = useTranslation()
|
|
16
17
|
const handleDelete = useDeleteProductTagAction({ productTag })
|
|
18
|
+
const isTranslationsEnabled = useFeatureFlag("translation")
|
|
17
19
|
|
|
18
20
|
return (
|
|
19
21
|
<Container className="flex items-center justify-between">
|
|
@@ -32,6 +34,19 @@ export const ProductTagGeneralSection = ({
|
|
|
32
34
|
},
|
|
33
35
|
],
|
|
34
36
|
},
|
|
37
|
+
...(isTranslationsEnabled
|
|
38
|
+
? [
|
|
39
|
+
{
|
|
40
|
+
actions: [
|
|
41
|
+
{
|
|
42
|
+
label: t("translations.actions.manage"),
|
|
43
|
+
to: `/settings/translations/edit?reference=product_tag&reference_id=${productTag.id}`,
|
|
44
|
+
icon: <GlobeEurope />,
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
]
|
|
49
|
+
: []),
|
|
35
50
|
{
|
|
36
51
|
actions: [
|
|
37
52
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PencilSquare, Trash } from "@medusajs/icons"
|
|
1
|
+
import { GlobeEurope, PencilSquare, Trash } from "@medusajs/icons"
|
|
2
2
|
import { HttpTypes } from "@medusajs/types"
|
|
3
3
|
import { Button, Container, Heading } from "@medusajs/ui"
|
|
4
4
|
import { keepPreviousData } from "@tanstack/react-query"
|
|
@@ -16,6 +16,7 @@ import { useProductTagTableQuery } from "../../../../../hooks/table/query"
|
|
|
16
16
|
import { useDataTable } from "../../../../../hooks/use-data-table"
|
|
17
17
|
import { useDeleteProductTagAction } from "../../../common/hooks/use-delete-product-tag-action"
|
|
18
18
|
import { productTagListLoader } from "../../loader"
|
|
19
|
+
import { useFeatureFlag } from "../../../../../providers/feature-flag-provider"
|
|
19
20
|
|
|
20
21
|
const PAGE_SIZE = 20
|
|
21
22
|
|
|
@@ -88,6 +89,7 @@ const ProductTagRowActions = ({
|
|
|
88
89
|
}) => {
|
|
89
90
|
const { t } = useTranslation()
|
|
90
91
|
const handleDelete = useDeleteProductTagAction({ productTag })
|
|
92
|
+
const isTranslationsEnabled = useFeatureFlag("translation")
|
|
91
93
|
|
|
92
94
|
return (
|
|
93
95
|
<ActionMenu
|
|
@@ -101,6 +103,19 @@ const ProductTagRowActions = ({
|
|
|
101
103
|
},
|
|
102
104
|
],
|
|
103
105
|
},
|
|
106
|
+
...(isTranslationsEnabled
|
|
107
|
+
? [
|
|
108
|
+
{
|
|
109
|
+
actions: [
|
|
110
|
+
{
|
|
111
|
+
icon: <GlobeEurope />,
|
|
112
|
+
label: t("translations.actions.manage"),
|
|
113
|
+
to: `/settings/translations/edit?reference=product_tag&reference_id=${productTag.id}`,
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
]
|
|
118
|
+
: []),
|
|
104
119
|
{
|
|
105
120
|
actions: [
|
|
106
121
|
{
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { PencilSquare, Trash } from "@medusajs/icons"
|
|
1
|
+
import { GlobeEurope, PencilSquare, Trash } from "@medusajs/icons"
|
|
2
2
|
import { HttpTypes } from "@medusajs/types"
|
|
3
3
|
import { Container, Heading } from "@medusajs/ui"
|
|
4
4
|
import { useTranslation } from "react-i18next"
|
|
5
5
|
import { ActionMenu } from "../../../../../components/common/action-menu"
|
|
6
6
|
import { useDeleteProductTypeAction } from "../../../common/hooks/use-delete-product-type-action"
|
|
7
|
+
import { useFeatureFlag } from "../../../../../providers/feature-flag-provider"
|
|
7
8
|
|
|
8
9
|
type ProductTypeGeneralSectionProps = {
|
|
9
10
|
productType: HttpTypes.AdminProductType
|
|
@@ -17,6 +18,7 @@ export const ProductTypeGeneralSection = ({
|
|
|
17
18
|
productType.id,
|
|
18
19
|
productType.value
|
|
19
20
|
)
|
|
21
|
+
const isTranslationsEnabled = useFeatureFlag("translation")
|
|
20
22
|
|
|
21
23
|
return (
|
|
22
24
|
<Container className="flex items-center justify-between">
|
|
@@ -32,6 +34,19 @@ export const ProductTypeGeneralSection = ({
|
|
|
32
34
|
},
|
|
33
35
|
],
|
|
34
36
|
},
|
|
37
|
+
...(isTranslationsEnabled
|
|
38
|
+
? [
|
|
39
|
+
{
|
|
40
|
+
actions: [
|
|
41
|
+
{
|
|
42
|
+
label: t("translations.actions.manage"),
|
|
43
|
+
to: `/settings/translations/edit?reference=product_type&reference_id=${productType.id}`,
|
|
44
|
+
icon: <GlobeEurope />,
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
]
|
|
49
|
+
: []),
|
|
35
50
|
{
|
|
36
51
|
actions: [
|
|
37
52
|
{
|