@medusajs/dashboard 3.0.0-snapshot-20251211173847 → 3.0.0-snapshot-20251211180009
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-I45X6X64.mjs → api-key-management-detail-G7O7TDPW.mjs} +6 -6
- 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 +35 -0
- package/dist/app.js +13072 -12057
- 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-P3CSDHZN.mjs → campaign-detail-I2N5WUEC.mjs} +3 -3
- package/dist/{campaign-edit-HN4US7DV.mjs → campaign-edit-K2POQH7M.mjs} +2 -2
- package/dist/{categories-metadata-BCZ463KN.mjs → categories-metadata-DNVBNWAJ.mjs} +6 -6
- package/dist/{category-create-FFIBWXAH.mjs → category-create-L2KJCHPO.mjs} +2 -2
- package/dist/{category-detail-VDUHW3QT.mjs → category-detail-XEFMQSZG.mjs} +24 -8
- 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-VOD3XRPG.mjs → category-products-LF7P7MBF.mjs} +8 -8
- package/dist/{chunk-PNPT4W2F.mjs → chunk-3BJLNORD.mjs} +1 -1
- package/dist/{chunk-QPKW37WR.mjs → chunk-3ESSTIV2.mjs} +188 -13
- package/dist/{chunk-F5NZDW7L.mjs → chunk-4VNR7DND.mjs} +2 -2
- package/dist/chunk-4Y2NYEXF.mjs +0 -0
- package/dist/{chunk-Q6MSICBU.mjs → chunk-6GLZIACV.mjs} +1 -1
- package/dist/{chunk-M4Z2YEYB.mjs → chunk-7GJ5T4R3.mjs} +9 -9
- package/dist/{chunk-YAPTGHGP.mjs → chunk-AFXODJBA.mjs} +1 -1
- package/dist/{chunk-3YPRDSZ6.mjs → chunk-BZKI5J2M.mjs} +1 -1
- package/dist/{chunk-UM4OIJZ3.mjs → chunk-CFQNWTZV.mjs} +1 -1
- package/dist/{chunk-42OOM4DJ.mjs → chunk-D6UW7URG.mjs} +23 -6
- package/dist/{chunk-HFT7Q5Y5.mjs → chunk-DCYB22MH.mjs} +1 -1
- package/dist/{chunk-LHNU4DYZ.mjs → chunk-DS5IRNJY.mjs} +2 -2
- package/dist/{chunk-B3AOQW2B.mjs → chunk-EQBVGH3N.mjs} +1 -1
- package/dist/{chunk-EQTBJSBZ.mjs → chunk-F5I264Q3.mjs} +3 -0
- package/dist/{chunk-W7SLPIO2.mjs → chunk-FEB3ZGTL.mjs} +214 -17
- package/dist/{chunk-Z6NHG5LQ.mjs → chunk-FIFVOKTK.mjs} +1 -1
- package/dist/{chunk-4YAPXPLM.mjs → chunk-FPBKWWSI.mjs} +1 -1
- package/dist/{chunk-RU4ZS47V.mjs → chunk-GN6OCHP4.mjs} +1 -11
- package/dist/{chunk-YWLAUILP.mjs → chunk-HPPR6PXK.mjs} +4 -4
- package/dist/{chunk-HWKLNKOY.mjs → chunk-I6C52ARQ.mjs} +1 -1
- package/dist/{chunk-F63F3FIT.mjs → chunk-JJGE3EV6.mjs} +2 -2
- package/dist/chunk-JQBWAJQZ.mjs +0 -0
- package/dist/{chunk-KF7ZWW4K.mjs → chunk-LCEKY54O.mjs} +2 -2
- package/dist/{chunk-D4J3CEWH.mjs → chunk-N3SAXQVR.mjs} +2 -2
- package/dist/{chunk-EI27JC4V.mjs → chunk-PS5T2R6J.mjs} +3 -3
- package/dist/{chunk-MY6I7UJG.mjs → chunk-R2EBIESZ.mjs} +1 -1
- package/dist/{chunk-25UWYEJX.mjs → chunk-RKUXD6IZ.mjs} +1 -1
- package/dist/{chunk-SKA4AJO4.mjs → chunk-UEJOY5PF.mjs} +3 -3
- package/dist/{chunk-XXBP2Z5M.mjs → chunk-WVA4O7QS.mjs} +1 -1
- package/dist/{chunk-L4NOVTH5.mjs → chunk-YIOBBZUB.mjs} +2 -2
- package/dist/{chunk-GTPX2T3A.mjs → chunk-ZADXDNB3.mjs} +234 -202
- package/dist/{collection-add-products-P5B564HQ.mjs → collection-add-products-EM7SAFEH.mjs} +8 -8
- package/dist/{collection-create-DCRW344Z.mjs → collection-create-4JX4YE47.mjs} +2 -2
- package/dist/{collection-detail-PCL3HYPB.mjs → collection-detail-UQXMMKRW.mjs} +22 -7
- package/dist/{collection-edit-UNFEW6HT.mjs → collection-edit-MXL35GQQ.mjs} +2 -2
- package/dist/{collection-list-ANPFZOFP.mjs → collection-list-EO56ZH4Q.mjs} +29 -14
- package/dist/{collection-metadata-P4A5DXBQ.mjs → collection-metadata-UXEYXJY4.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-ENPJO3DW.mjs → customer-detail-OD5I5YWW.mjs} +6 -6
- package/dist/{customer-edit-BW5GVTQI.mjs → customer-edit-XQ5NWIVX.mjs} +2 -2
- package/dist/{customer-group-add-customers-A7OGFFJ4.mjs → customer-group-add-customers-FRJP6RCY.mjs} +5 -5
- package/dist/{customer-group-create-6YV7W6TI.mjs → customer-group-create-RY4FVEIW.mjs} +2 -2
- package/dist/{customer-group-detail-DVNRFZX5.mjs → customer-group-detail-SOWUWFJ4.mjs} +6 -6
- package/dist/{customer-group-edit-7NXU34BQ.mjs → customer-group-edit-MQWARIQZ.mjs} +2 -2
- package/dist/{customer-group-list-P2QX5AO4.mjs → customer-group-list-A5LER6CN.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-RVR476OP.mjs → customers-add-customer-group-75EEIDW6.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-2W3BXEXR.mjs → edit-rules-IKV4MGHV.mjs} +5 -5
- package/dist/en.json +12 -12
- package/dist/{inventory-create-VQEK7C5T.mjs → inventory-create-DBD7EA7N.mjs} +6 -6
- package/dist/{inventory-detail-UYDDNO24.mjs → inventory-detail-Q2HAUD2Y.mjs} +3 -3
- package/dist/{inventory-metadata-X52VGHA7.mjs → inventory-metadata-NQXJBGAQ.mjs} +6 -6
- package/dist/{inventory-stock-EKTOYN2F.mjs → inventory-stock-WAZ7CXTY.mjs} +7 -7
- package/dist/{invite-VKHAAF4Z.mjs → invite-WISVECE2.mjs} +3 -2
- package/dist/{location-create-RPLEXUZR.mjs → location-create-WZ43K3W7.mjs} +2 -2
- package/dist/{location-detail-UVWYE6Q2.mjs → location-detail-2LKEMZ3X.mjs} +11 -9
- package/dist/{location-edit-L4ISEQHX.mjs → location-edit-VCS7GVWQ.mjs} +2 -2
- package/dist/{location-fulfillment-providers-3BGI2NNW.mjs → location-fulfillment-providers-6WNUCXQL.mjs} +6 -6
- package/dist/{location-list-Z42ZYHUF.mjs → location-list-UK3WRDL5.mjs} +3 -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-M7G4SKNP.mjs → location-service-zone-shipping-option-create-DSLYSNY4.mjs} +7 -7
- package/dist/{location-service-zone-shipping-option-edit-M2HJAASG.mjs → location-service-zone-shipping-option-edit-QCURIIGL.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-NSCAMAU6.mjs → login-2DAZRDSC.mjs} +6 -5
- package/dist/{manage-locations-JD6FSBOT.mjs → manage-locations-MLNMPQ5I.mjs} +2 -2
- package/dist/{order-allocate-items-5T57NZOB.mjs → order-allocate-items-I5KMPZY5.mjs} +3 -3
- package/dist/{order-create-claim-JLCXZNHU.mjs → order-create-claim-E543W2TJ.mjs} +7 -7
- package/dist/{order-create-edit-QB6LIWSF.mjs → order-create-edit-HDWLEUKF.mjs} +6 -6
- package/dist/{order-create-exchange-GOU4AJXP.mjs → order-create-exchange-HBQWTMXR.mjs} +13 -13
- package/dist/{order-create-fulfillment-SRRP6X64.mjs → order-create-fulfillment-PN3HLLB2.mjs} +5 -5
- package/dist/{order-create-refund-PTOM65QK.mjs → order-create-refund-EC7XRI5O.mjs} +5 -5
- package/dist/{order-create-return-3EOY7TOC.mjs → order-create-return-LTGYASZZ.mjs} +4 -4
- package/dist/{order-create-shipment-HNILNFXB.mjs → order-create-shipment-CPEAPIJU.mjs} +5 -5
- package/dist/{order-detail-BCBUUVU7.mjs → order-detail-MPNBAUUI.mjs} +11 -11
- package/dist/{order-edit-billing-address-3IO7GXIK.mjs → order-edit-billing-address-KMV6RJ6F.mjs} +5 -5
- package/dist/{order-edit-email-QIAEOUBV.mjs → order-edit-email-377D6O22.mjs} +5 -5
- package/dist/{order-edit-shipping-address-QGGMHGBC.mjs → order-edit-shipping-address-HEFMKAJP.mjs} +5 -5
- package/dist/{order-list-BPCVUIVY.mjs → order-list-QOYJFYD5.mjs} +71 -29
- package/dist/{order-metadata-ZBDTMBHZ.mjs → order-metadata-QABOWLXK.mjs} +6 -6
- package/dist/{order-receive-return-V42FTCFY.mjs → order-receive-return-4WFBZ2T7.mjs} +6 -6
- package/dist/{order-request-transfer-A6NNIN2O.mjs → order-request-transfer-ISZSSGKO.mjs} +5 -5
- package/dist/{price-list-configuration-54D4JW6G.mjs → price-list-configuration-WZFAJ7ZM.mjs} +4 -4
- package/dist/{price-list-create-5DI6QXFL.mjs → price-list-create-DQFXQ247.mjs} +15 -15
- package/dist/{price-list-detail-7XY3MDV5.mjs → price-list-detail-WWJPFIT2.mjs} +6 -6
- package/dist/{price-list-edit-SW7YIR3Z.mjs → price-list-edit-I5QNCWJP.mjs} +2 -2
- package/dist/{price-list-prices-add-UA2DT4AM.mjs → price-list-prices-add-6BCDF4DE.mjs} +10 -10
- package/dist/{price-list-prices-edit-C6SX2TLJ.mjs → price-list-prices-edit-Z4YJ4YBY.mjs} +4 -4
- package/dist/{product-attributes-56UMJAVF.mjs → product-attributes-RKEXUYKR.mjs} +6 -6
- package/dist/{product-create-NWQ7IXC6.mjs → product-create-S7YVI2MR.mjs} +7 -7
- package/dist/{product-create-option-GEGQNSMQ.mjs → product-create-option-UMZKRNTC.mjs} +2 -2
- package/dist/{product-create-variant-WI6D5CDG.mjs → product-create-variant-JRKDSU6D.mjs} +6 -6
- package/dist/{product-detail-VYXHGYKI.mjs → product-detail-G7ZVDV46.mjs} +52 -10
- package/dist/{product-edit-N4VRGX43.mjs → product-edit-CMHKUDQP.mjs} +6 -6
- package/dist/{product-edit-option-HBIOBQTS.mjs → product-edit-option-ZMTSLRG5.mjs} +2 -2
- package/dist/{product-export-CPL66H6S.mjs → product-export-H7KYYMGI.mjs} +15 -15
- package/dist/{product-image-variants-edit-X3LUMPLJ.mjs → product-image-variants-edit-HU6NVV6T.mjs} +5 -5
- package/dist/{product-import-43UXKCL3.mjs → product-import-5PKTI7YC.mjs} +5 -5
- package/dist/{product-list-47T2IZ3F.mjs → product-list-ABFSFWKV.mjs} +19 -7
- package/dist/{product-media-EGK66SRX.mjs → product-media-ULNJ7JJY.mjs} +2 -2
- package/dist/{product-metadata-55CAQTPS.mjs → product-metadata-GHL5HV37.mjs} +6 -6
- package/dist/{product-organization-YVMSAFBV.mjs → product-organization-Z7SXABDX.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-22S2HGMM.mjs → product-stock-NHC7WD6Z.mjs} +7 -7
- package/dist/{product-tag-create-7GPE246H.mjs → product-tag-create-MQ6AUCQM.mjs} +5 -5
- package/dist/{product-tag-detail-BQG2LJK6.mjs → product-tag-detail-CGURSGJE.mjs} +31 -16
- package/dist/{product-tag-edit-WA6FGSIP.mjs → product-tag-edit-TOJYTW4H.mjs} +5 -5
- package/dist/{product-tag-list-PW7WDCQH.mjs → product-tag-list-2U4CIGK5.mjs} +31 -16
- package/dist/{product-tag-metadata-EJ7FEXSE.mjs → product-tag-metadata-JMFWGTR3.mjs} +6 -6
- package/dist/{product-type-create-HBDROTGB.mjs → product-type-create-KHSNCQCV.mjs} +2 -2
- package/dist/{product-type-detail-TJQS4BVU.mjs → product-type-detail-UY6Y3T3G.mjs} +22 -7
- package/dist/{product-type-edit-H3JCMVRV.mjs → product-type-edit-3LRBWZ3S.mjs} +2 -2
- package/dist/{product-type-list-7WQ5D2KV.mjs → product-type-list-XU6DADMO.mjs} +19 -4
- package/dist/{product-type-metadata-Q6W5GL7Z.mjs → product-type-metadata-EGMTZ622.mjs} +6 -6
- package/dist/{product-variant-detail-LYGQDASG.mjs → product-variant-detail-5EKVJXUT.mjs} +21 -5
- package/dist/{product-variant-edit-BW7QMHC5.mjs → product-variant-edit-KKLHPWXO.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-GDMVC4MZ.mjs → product-variant-metadata-LBOIYBBF.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-HF6DTKCC.mjs → promotion-create-U6CJPBYU.mjs} +12 -12
- package/dist/{promotion-detail-MDVDMQUM.mjs → promotion-detail-BYXN4YXZ.mjs} +3 -3
- package/dist/{promotion-edit-details-AREFQ6O5.mjs → promotion-edit-details-6BSOOWQN.mjs} +2 -2
- package/dist/{refund-reason-create-RKIH46D6.mjs → refund-reason-create-TFC4T4GK.mjs} +5 -5
- package/dist/{refund-reason-edit-V3KC6NMO.mjs → refund-reason-edit-WTM7WR5V.mjs} +5 -5
- package/dist/{refund-reason-list-FR7POQS5.mjs → refund-reason-list-7Q6WDYH6.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-5NGUNAXZ.mjs → region-metadata-EGOMWMMB.mjs} +6 -6
- package/dist/{reservation-create-Z2SUMBGT.mjs → reservation-create-C6HTEF3R.mjs} +2 -2
- package/dist/{reservation-detail-JH77TQHN.mjs → reservation-detail-FYS6LFU6.mjs} +3 -3
- package/dist/{reservation-metadata-ERCWXYVL.mjs → reservation-metadata-LZJV35OW.mjs} +6 -6
- package/dist/{reset-password-5TAYQEUV.mjs → reset-password-XKX43KUT.mjs} +3 -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-SPGDWA44.mjs → sales-channel-add-products-XPS4JTBL.mjs} +8 -8
- package/dist/{sales-channel-create-E7BDTPWD.mjs → sales-channel-create-4XLJDVJO.mjs} +2 -2
- package/dist/{sales-channel-detail-D7VNPSCN.mjs → sales-channel-detail-5YUELAQ5.mjs} +6 -6
- package/dist/{sales-channel-edit-HMPA3Y3L.mjs → sales-channel-edit-UZGSXD5X.mjs} +2 -2
- package/dist/{sales-channel-list-QGWQVXVW.mjs → sales-channel-list-N3KDOVBS.mjs} +3 -3
- package/dist/{sales-channel-metadata-CMZN74K7.mjs → sales-channel-metadata-MU4BVKOJ.mjs} +6 -6
- package/dist/{shipping-option-type-create-4BN2GBHP.mjs → shipping-option-type-create-AS4AVWZV.mjs} +5 -5
- package/dist/{shipping-option-type-detail-YB3TCED2.mjs → shipping-option-type-detail-MCFL4BJE.mjs} +4 -4
- package/dist/{shipping-option-type-edit-MDO7ALAU.mjs → shipping-option-type-edit-PJOD3TA4.mjs} +5 -5
- package/dist/{shipping-option-type-list-6TPD3AMM.mjs → shipping-option-type-list-VD567MQD.mjs} +4 -4
- package/dist/{shipping-profile-create-752TMBBE.mjs → shipping-profile-create-26R64I3Z.mjs} +2 -2
- package/dist/{shipping-profile-metadata-HQI7PCPU.mjs → shipping-profile-metadata-6MHI75CB.mjs} +6 -6
- package/dist/{store-add-currencies-3VMLZ6KB.mjs → store-add-currencies-ZFS3WZHG.mjs} +2 -2
- package/dist/{store-add-locales-XJJCEO6Q.mjs → store-add-locales-ERJXWD4L.mjs} +4 -4
- package/dist/{store-detail-DNK76PXP.mjs → store-detail-EGDXIVWC.mjs} +3 -3
- package/dist/{store-edit-EPAHLLKP.mjs → store-edit-AB5CDUTK.mjs} +2 -2
- package/dist/{store-metadata-ZJD23O4D.mjs → store-metadata-ZBUQ62YT.mjs} +6 -6
- package/dist/{tax-region-create-NCO2OQ3I.mjs → tax-region-create-N4YVNQKV.mjs} +5 -5
- package/dist/{tax-region-detail-C42CLE64.mjs → tax-region-detail-UJASYH57.mjs} +23 -22
- package/dist/{tax-region-edit-YZALLSZY.mjs → tax-region-edit-W3B5EUCJ.mjs} +5 -5
- package/dist/{tax-region-list-BXZBUXRJ.mjs → tax-region-list-4MQMCMKY.mjs} +4 -3
- package/dist/{tax-region-province-create-5JP3PVID.mjs → tax-region-province-create-GKJ7WMRS.mjs} +2 -2
- package/dist/{tax-region-province-detail-G2DPC6XM.mjs → tax-region-province-detail-K4PDPHXP.mjs} +22 -21
- package/dist/{tax-region-tax-override-create-WIVKENVO.mjs → tax-region-tax-override-create-NUI4Z76X.mjs} +16 -16
- package/dist/{tax-region-tax-override-edit-UDEO3UIY.mjs → tax-region-tax-override-edit-Q4GJHUMJ.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-5ZOAGLCT.mjs +146 -0
- package/dist/translations-edit-QPJLE55N.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-4WOICEE7.mjs → user-metadata-2FTA4EB3.mjs} +6 -6
- package/dist/{workflow-execution-detail-OKM6P4SX.mjs → workflow-execution-detail-MGIZSKVA.mjs} +3 -3
- 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 +20 -6
- package/src/hooks/api/index.ts +1 -0
- package/src/hooks/api/orders.tsx +1 -18
- package/src/hooks/api/product-variants.tsx +7 -1
- package/src/hooks/api/translations.tsx +254 -0
- package/src/i18n/translations/$schema.json +36 -40
- package/src/i18n/translations/en.json +12 -12
- package/src/i18n/translations/es.json +12 -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-list/components/order-list-table/configurable-order-list-table.tsx +0 -10
- package/src/routes/orders/order-list/components/order-list-table/order-list-table.tsx +2 -8
- 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/index.tsx +1 -0
- package/src/routes/translations/translation-list/translation-list.tsx +131 -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/chunk-35LSPN2U.mjs +0 -66
- package/dist/order-export-LPAWHHSK.mjs +0 -121
- package/src/routes/orders/order-export/components/export-filters.tsx +0 -22
- package/src/routes/orders/order-export/index.ts +0 -1
- package/src/routes/orders/order-export/order-export.tsx +0 -66
- package/dist/{chunk-6WKBBTKM.mjs → chunk-CTUJXJYA.mjs} +0 -0
- package/dist/{customer-list-TG4D4QOT.mjs → customer-list-ZXCGIXJC.mjs} +3 -3
- package/dist/{region-list-JAQXIBYD.mjs → region-list-XQRIBDMF.mjs} +3 -3
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { FetchError } from "@medusajs/js-sdk"
|
|
2
|
+
import { HttpTypes } from "@medusajs/types"
|
|
3
|
+
import {
|
|
4
|
+
QueryKey,
|
|
5
|
+
useMutation,
|
|
6
|
+
UseMutationOptions,
|
|
7
|
+
useQuery,
|
|
8
|
+
UseQueryOptions,
|
|
9
|
+
UseQueryResult,
|
|
10
|
+
} from "@tanstack/react-query"
|
|
11
|
+
import { sdk } from "../../lib/client"
|
|
12
|
+
import { queryKeysFactory } from "../../lib/query-key-factory"
|
|
13
|
+
import { queryClient } from "../../lib/query-client"
|
|
14
|
+
import { productsQueryKeys, useProducts } from "./products"
|
|
15
|
+
import { productVariantQueryKeys, useVariants } from "./product-variants"
|
|
16
|
+
import { categoriesQueryKeys, useProductCategories } from "./categories"
|
|
17
|
+
import { collectionsQueryKeys, useCollections } from "./collections"
|
|
18
|
+
import { productTagsQueryKeys, useProductTags } from "./tags"
|
|
19
|
+
import { productTypesQueryKeys, useProductTypes } from "./product-types"
|
|
20
|
+
|
|
21
|
+
const TRANSLATIONS_QUERY_KEY = "translations" as const
|
|
22
|
+
export const translationsQueryKeys = queryKeysFactory(TRANSLATIONS_QUERY_KEY)
|
|
23
|
+
|
|
24
|
+
export const useReferenceTranslations = (
|
|
25
|
+
reference: string,
|
|
26
|
+
referenceId?: string | string[],
|
|
27
|
+
options?: Omit<
|
|
28
|
+
UseQueryOptions<any, FetchError, any, QueryKey>,
|
|
29
|
+
"queryFn" | "queryKey"
|
|
30
|
+
>
|
|
31
|
+
) => {
|
|
32
|
+
const referenceHookMap = new Map<
|
|
33
|
+
string,
|
|
34
|
+
() => UseQueryResult<{
|
|
35
|
+
translations: HttpTypes.AdminTranslation[]
|
|
36
|
+
references: { id: string; [key: string]: string }[]
|
|
37
|
+
translatableFields: string[]
|
|
38
|
+
}>
|
|
39
|
+
>([
|
|
40
|
+
[
|
|
41
|
+
"product",
|
|
42
|
+
() => {
|
|
43
|
+
const translatableFields = ["title", "description"]
|
|
44
|
+
const fields = translatableFields.concat(["translations.*"]).join(",")
|
|
45
|
+
|
|
46
|
+
const { products, ...rest } = useProducts(
|
|
47
|
+
{ id: referenceId ?? [], fields },
|
|
48
|
+
options
|
|
49
|
+
)
|
|
50
|
+
return {
|
|
51
|
+
...rest,
|
|
52
|
+
data: {
|
|
53
|
+
translations:
|
|
54
|
+
products?.flatMap((product) => product.translations ?? []) ?? [],
|
|
55
|
+
references: products ?? [],
|
|
56
|
+
translatableFields,
|
|
57
|
+
},
|
|
58
|
+
} as unknown as UseQueryResult<{
|
|
59
|
+
translations: HttpTypes.AdminTranslation[]
|
|
60
|
+
references: { id: string; [key: string]: string }[]
|
|
61
|
+
translatableFields: string[]
|
|
62
|
+
}>
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
"product_variant",
|
|
67
|
+
() => {
|
|
68
|
+
const translatableFields = ["title"]
|
|
69
|
+
const fields = translatableFields.concat(["translations.*"]).join(",")
|
|
70
|
+
|
|
71
|
+
const { variants, ...rest } = useVariants(
|
|
72
|
+
{ id: referenceId ?? [], fields },
|
|
73
|
+
options
|
|
74
|
+
)
|
|
75
|
+
return {
|
|
76
|
+
...rest,
|
|
77
|
+
data: {
|
|
78
|
+
translations:
|
|
79
|
+
variants?.flatMap((variant) => variant.translations ?? []) ?? [],
|
|
80
|
+
references: variants ?? [],
|
|
81
|
+
translatableFields,
|
|
82
|
+
},
|
|
83
|
+
} as unknown as UseQueryResult<{
|
|
84
|
+
translations: HttpTypes.AdminTranslation[]
|
|
85
|
+
references: { id: string; [key: string]: string }[]
|
|
86
|
+
translatableFields: string[]
|
|
87
|
+
}>
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
[
|
|
91
|
+
"product_category",
|
|
92
|
+
() => {
|
|
93
|
+
const translatableFields = ["name", "description"]
|
|
94
|
+
const fields = translatableFields.concat(["translations.*"]).join(",")
|
|
95
|
+
|
|
96
|
+
const { product_categories, ...rest } = useProductCategories(
|
|
97
|
+
{ id: referenceId ?? [], fields },
|
|
98
|
+
options
|
|
99
|
+
)
|
|
100
|
+
return {
|
|
101
|
+
...rest,
|
|
102
|
+
data: {
|
|
103
|
+
translations:
|
|
104
|
+
product_categories?.flatMap(
|
|
105
|
+
(category) => category.translations ?? []
|
|
106
|
+
) ?? [],
|
|
107
|
+
references: product_categories ?? [],
|
|
108
|
+
translatableFields,
|
|
109
|
+
},
|
|
110
|
+
} as unknown as UseQueryResult<{
|
|
111
|
+
translations: HttpTypes.AdminTranslation[]
|
|
112
|
+
references: { id: string; [key: string]: string }[]
|
|
113
|
+
translatableFields: string[]
|
|
114
|
+
}>
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
"product_collection",
|
|
119
|
+
() => {
|
|
120
|
+
const translatableFields = ["title"]
|
|
121
|
+
const fields = translatableFields.concat(["translations.*"]).join(",")
|
|
122
|
+
|
|
123
|
+
const { collections, ...rest } = useCollections(
|
|
124
|
+
{ id: referenceId ?? [], fields },
|
|
125
|
+
options
|
|
126
|
+
)
|
|
127
|
+
return {
|
|
128
|
+
...rest,
|
|
129
|
+
data: {
|
|
130
|
+
translations:
|
|
131
|
+
collections?.flatMap(
|
|
132
|
+
(collection) => collection.translations ?? []
|
|
133
|
+
) ?? [],
|
|
134
|
+
references: collections ?? [],
|
|
135
|
+
translatableFields,
|
|
136
|
+
},
|
|
137
|
+
} as unknown as UseQueryResult<{
|
|
138
|
+
translations: HttpTypes.AdminTranslation[]
|
|
139
|
+
references: { id: string; [key: string]: string }[]
|
|
140
|
+
translatableFields: string[]
|
|
141
|
+
}>
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
[
|
|
145
|
+
"product_type",
|
|
146
|
+
() => {
|
|
147
|
+
const translatableFields = ["value"]
|
|
148
|
+
const fields = translatableFields.concat(["translations.*"]).join(",")
|
|
149
|
+
|
|
150
|
+
const { product_types, ...rest } = useProductTypes(
|
|
151
|
+
{ id: referenceId ?? [], fields },
|
|
152
|
+
options
|
|
153
|
+
)
|
|
154
|
+
return {
|
|
155
|
+
...rest,
|
|
156
|
+
data: {
|
|
157
|
+
translations:
|
|
158
|
+
product_types?.flatMap((type) => type.translations ?? []) ?? [],
|
|
159
|
+
references: product_types ?? [],
|
|
160
|
+
translatableFields,
|
|
161
|
+
},
|
|
162
|
+
} as unknown as UseQueryResult<{
|
|
163
|
+
translations: HttpTypes.AdminTranslation[]
|
|
164
|
+
references: { id: string; [key: string]: string }[]
|
|
165
|
+
translatableFields: string[]
|
|
166
|
+
}>
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
[
|
|
170
|
+
"product_tag",
|
|
171
|
+
() => {
|
|
172
|
+
const translatableFields = ["value"]
|
|
173
|
+
const fields = translatableFields.concat(["translations.*"]).join(",")
|
|
174
|
+
|
|
175
|
+
const { product_tags, ...rest } = useProductTags(
|
|
176
|
+
{ id: referenceId ?? [], fields },
|
|
177
|
+
options
|
|
178
|
+
)
|
|
179
|
+
return {
|
|
180
|
+
...rest,
|
|
181
|
+
data: {
|
|
182
|
+
translations:
|
|
183
|
+
product_tags?.flatMap((tag) => tag.translations ?? []) ?? [],
|
|
184
|
+
references: product_tags ?? [],
|
|
185
|
+
translatableFields,
|
|
186
|
+
},
|
|
187
|
+
} as unknown as UseQueryResult<{
|
|
188
|
+
translations: HttpTypes.AdminTranslation[]
|
|
189
|
+
references: { id: string; [key: string]: string }[]
|
|
190
|
+
translatableFields: string[]
|
|
191
|
+
}>
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
// TODO: product option and option values
|
|
195
|
+
])
|
|
196
|
+
const referenceHook = referenceHookMap.get(reference)
|
|
197
|
+
if (!referenceHook) {
|
|
198
|
+
throw new Error(`No hook found for reference type: ${reference}`)
|
|
199
|
+
}
|
|
200
|
+
const { data, ...rest } = referenceHook()
|
|
201
|
+
return { ...data, ...rest }
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export const useTranslations = (
|
|
205
|
+
query?: HttpTypes.AdminTranslationsListParams,
|
|
206
|
+
options?: Omit<
|
|
207
|
+
UseQueryOptions<
|
|
208
|
+
HttpTypes.AdminTranslationsListResponse,
|
|
209
|
+
FetchError,
|
|
210
|
+
HttpTypes.AdminTranslationsListResponse,
|
|
211
|
+
QueryKey
|
|
212
|
+
>,
|
|
213
|
+
"queryFn" | "queryKey"
|
|
214
|
+
>
|
|
215
|
+
) => {
|
|
216
|
+
const { data, ...rest } = useQuery({
|
|
217
|
+
queryKey: translationsQueryKeys.list(query),
|
|
218
|
+
queryFn: () => sdk.admin.translation.list(query),
|
|
219
|
+
...options,
|
|
220
|
+
})
|
|
221
|
+
|
|
222
|
+
return { ...data, ...rest }
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export const useBatchTranslations = (
|
|
226
|
+
reference: string,
|
|
227
|
+
options?: UseMutationOptions<
|
|
228
|
+
HttpTypes.AdminTranslationsBatchResponse,
|
|
229
|
+
FetchError,
|
|
230
|
+
HttpTypes.AdminBatchTranslations
|
|
231
|
+
>
|
|
232
|
+
) => {
|
|
233
|
+
const referenceInvalidationKeysMap = new Map<string, QueryKey>([
|
|
234
|
+
["product", productsQueryKeys.lists()],
|
|
235
|
+
["product_variant", productVariantQueryKeys.lists()],
|
|
236
|
+
["product_category", categoriesQueryKeys.lists()],
|
|
237
|
+
["product_collection", collectionsQueryKeys.lists()],
|
|
238
|
+
["product_type", productTypesQueryKeys.lists()],
|
|
239
|
+
["product_tag", productTagsQueryKeys.lists()],
|
|
240
|
+
])
|
|
241
|
+
|
|
242
|
+
return useMutation({
|
|
243
|
+
mutationFn: (payload: HttpTypes.AdminBatchTranslations) =>
|
|
244
|
+
sdk.admin.translation.batch(payload),
|
|
245
|
+
onSuccess: (data, variables, context) => {
|
|
246
|
+
queryClient.invalidateQueries({
|
|
247
|
+
queryKey: referenceInvalidationKeysMap.get(reference),
|
|
248
|
+
})
|
|
249
|
+
|
|
250
|
+
options?.onSuccess?.(data, variables, context)
|
|
251
|
+
},
|
|
252
|
+
...options,
|
|
253
|
+
})
|
|
254
|
+
}
|
|
@@ -4049,45 +4049,6 @@
|
|
|
4049
4049
|
"required": ["noRecordsMessage"],
|
|
4050
4050
|
"additionalProperties": false
|
|
4051
4051
|
},
|
|
4052
|
-
"export": {
|
|
4053
|
-
"type": "object",
|
|
4054
|
-
"properties": {
|
|
4055
|
-
"header": {
|
|
4056
|
-
"type": "string"
|
|
4057
|
-
},
|
|
4058
|
-
"description": {
|
|
4059
|
-
"type": "string"
|
|
4060
|
-
},
|
|
4061
|
-
"success": {
|
|
4062
|
-
"type": "object",
|
|
4063
|
-
"properties": {
|
|
4064
|
-
"title": {
|
|
4065
|
-
"type": "string"
|
|
4066
|
-
},
|
|
4067
|
-
"description": {
|
|
4068
|
-
"type": "string"
|
|
4069
|
-
}
|
|
4070
|
-
},
|
|
4071
|
-
"required": ["title", "description"],
|
|
4072
|
-
"additionalProperties": false
|
|
4073
|
-
},
|
|
4074
|
-
"filters": {
|
|
4075
|
-
"type": "object",
|
|
4076
|
-
"properties": {
|
|
4077
|
-
"title": {
|
|
4078
|
-
"type": "string"
|
|
4079
|
-
},
|
|
4080
|
-
"description": {
|
|
4081
|
-
"type": "string"
|
|
4082
|
-
}
|
|
4083
|
-
},
|
|
4084
|
-
"required": ["title", "description"],
|
|
4085
|
-
"additionalProperties": false
|
|
4086
|
-
}
|
|
4087
|
-
},
|
|
4088
|
-
"required": ["header", "description", "success", "filters"],
|
|
4089
|
-
"additionalProperties": false
|
|
4090
|
-
},
|
|
4091
4052
|
"status": {
|
|
4092
4053
|
"type": "object",
|
|
4093
4054
|
"properties": {
|
|
@@ -5779,7 +5740,6 @@
|
|
|
5779
5740
|
"orderCanceled",
|
|
5780
5741
|
"onDateFromSalesChannel",
|
|
5781
5742
|
"list",
|
|
5782
|
-
"export",
|
|
5783
5743
|
"status",
|
|
5784
5744
|
"summary",
|
|
5785
5745
|
"transfer",
|
|
@@ -9328,6 +9288,42 @@
|
|
|
9328
9288
|
],
|
|
9329
9289
|
"additionalProperties": false
|
|
9330
9290
|
},
|
|
9291
|
+
"translations": {
|
|
9292
|
+
"type": "object",
|
|
9293
|
+
"properties": {
|
|
9294
|
+
"domain": {
|
|
9295
|
+
"type": "string"
|
|
9296
|
+
},
|
|
9297
|
+
"subtitle": {
|
|
9298
|
+
"type": "string"
|
|
9299
|
+
},
|
|
9300
|
+
"actions": {
|
|
9301
|
+
"type": "object",
|
|
9302
|
+
"properties": {
|
|
9303
|
+
"manageLocales": {
|
|
9304
|
+
"type": "string"
|
|
9305
|
+
},
|
|
9306
|
+
"manage": {
|
|
9307
|
+
"type": "string"
|
|
9308
|
+
}
|
|
9309
|
+
},
|
|
9310
|
+
"required": ["manageLocales", "manage"]
|
|
9311
|
+
},
|
|
9312
|
+
"bulk": {
|
|
9313
|
+
"type": "object",
|
|
9314
|
+
"properties": {
|
|
9315
|
+
"header": {
|
|
9316
|
+
"type": "string"
|
|
9317
|
+
},
|
|
9318
|
+
"mainColumn": {
|
|
9319
|
+
"type": "string"
|
|
9320
|
+
}
|
|
9321
|
+
},
|
|
9322
|
+
"required": ["header"]
|
|
9323
|
+
}
|
|
9324
|
+
},
|
|
9325
|
+
"required": ["domain", "actions", "subtitle", "bulk"]
|
|
9326
|
+
},
|
|
9331
9327
|
"store": {
|
|
9332
9328
|
"type": "object",
|
|
9333
9329
|
"properties": {
|
|
@@ -1080,18 +1080,6 @@
|
|
|
1080
1080
|
"list": {
|
|
1081
1081
|
"noRecordsMessage": "Your orders will show up here."
|
|
1082
1082
|
},
|
|
1083
|
-
"export": {
|
|
1084
|
-
"header": "Export Order List",
|
|
1085
|
-
"description": "Export the order list to a CSV file.",
|
|
1086
|
-
"success": {
|
|
1087
|
-
"title": "Export started",
|
|
1088
|
-
"description": "You will be notified when the export is ready."
|
|
1089
|
-
},
|
|
1090
|
-
"filters": {
|
|
1091
|
-
"title": "Filters",
|
|
1092
|
-
"description": "The following filters will be applied to the export."
|
|
1093
|
-
}
|
|
1094
|
-
},
|
|
1095
1083
|
"status": {
|
|
1096
1084
|
"not_paid": "Not paid",
|
|
1097
1085
|
"pending": "Pending",
|
|
@@ -2504,6 +2492,18 @@
|
|
|
2504
2492
|
"deleteUserSuccess": "User {{name}} deleted successfully",
|
|
2505
2493
|
"invite": "Invite"
|
|
2506
2494
|
},
|
|
2495
|
+
"translations": {
|
|
2496
|
+
"domain": "Translations",
|
|
2497
|
+
"actions": {
|
|
2498
|
+
"manage": "Manage translations",
|
|
2499
|
+
"manageLocales": "Manage locales"
|
|
2500
|
+
},
|
|
2501
|
+
"subtitle": "Manage translations of your data in Medusa.",
|
|
2502
|
+
"bulk": {
|
|
2503
|
+
"header": "Translations Bulk Editor",
|
|
2504
|
+
"mainColumn": "Locale"
|
|
2505
|
+
}
|
|
2506
|
+
},
|
|
2507
2507
|
"store": {
|
|
2508
2508
|
"domain": "Store",
|
|
2509
2509
|
"manageYourStoresDetails": "Manage your store's details",
|
|
@@ -2443,6 +2443,18 @@
|
|
|
2443
2443
|
"deleteUserSuccess": "Usuario {{name}} eliminado correctamente",
|
|
2444
2444
|
"invite": "Invitar"
|
|
2445
2445
|
},
|
|
2446
|
+
"translations": {
|
|
2447
|
+
"domain": "Traducciones",
|
|
2448
|
+
"actions": {
|
|
2449
|
+
"manage": "Gestionar traducciones",
|
|
2450
|
+
"manageLocales": "Gestionar idiomas"
|
|
2451
|
+
},
|
|
2452
|
+
"subtitle": "Gestiona las traducciones de tus datos en Medusa.",
|
|
2453
|
+
"bulk": {
|
|
2454
|
+
"header": "Editor de Traducciones en Masa",
|
|
2455
|
+
"locale": "Idioma"
|
|
2456
|
+
}
|
|
2457
|
+
},
|
|
2446
2458
|
"store": {
|
|
2447
2459
|
"domain": "Tienda",
|
|
2448
2460
|
"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
|
{
|
package/src/routes/orders/order-list/components/order-list-table/configurable-order-list-table.tsx
CHANGED
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
import { useTranslation } from "react-i18next"
|
|
2
|
-
import { useLocation } from "react-router-dom"
|
|
3
2
|
import { ConfigurableDataTable } from "../../../../../components/table/configurable-data-table"
|
|
4
3
|
import { useOrderTableAdapter } from "./order-table-adapter"
|
|
5
4
|
|
|
6
5
|
export const ConfigurableOrderListTable = () => {
|
|
7
6
|
const { t } = useTranslation()
|
|
8
|
-
const location = useLocation()
|
|
9
7
|
const orderAdapter = useOrderTableAdapter()
|
|
10
8
|
|
|
11
|
-
const actions = [
|
|
12
|
-
{
|
|
13
|
-
label: t("actions.export"),
|
|
14
|
-
to: `export${location.search}`,
|
|
15
|
-
},
|
|
16
|
-
]
|
|
17
|
-
|
|
18
9
|
return (
|
|
19
10
|
<ConfigurableDataTable
|
|
20
11
|
adapter={orderAdapter}
|
|
21
12
|
heading={t("orders.domain")}
|
|
22
13
|
layout="fill"
|
|
23
|
-
actions={actions}
|
|
24
14
|
/>
|
|
25
15
|
)
|
|
26
16
|
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Container, Heading } from "@medusajs/ui"
|
|
2
2
|
import { keepPreviousData } from "@tanstack/react-query"
|
|
3
3
|
import { useTranslation } from "react-i18next"
|
|
4
|
-
import { Link, Outlet, useLocation } from "react-router-dom"
|
|
5
4
|
|
|
6
5
|
import { _DataTable } from "../../../../../components/table/data-table/data-table"
|
|
7
6
|
import { useOrders } from "../../../../../hooks/api/orders"
|
|
8
7
|
import { useOrderTableColumns } from "../../../../../hooks/table/columns/use-order-table-columns"
|
|
8
|
+
import { useOrderTableFilters } from "./use-order-table-filters"
|
|
9
9
|
import { useOrderTableQuery } from "../../../../../hooks/table/query/use-order-table-query"
|
|
10
10
|
import { useDataTable } from "../../../../../hooks/use-data-table"
|
|
11
11
|
import { useFeatureFlag } from "../../../../../providers/feature-flag-provider"
|
|
12
12
|
import { ConfigurableOrderListTable } from "./configurable-order-list-table"
|
|
13
|
-
import { useOrderTableFilters } from "./use-order-table-filters"
|
|
14
13
|
|
|
15
14
|
import { DEFAULT_FIELDS } from "../../const"
|
|
16
15
|
|
|
@@ -18,7 +17,6 @@ const PAGE_SIZE = 20
|
|
|
18
17
|
|
|
19
18
|
export const OrderListTable = () => {
|
|
20
19
|
const { t } = useTranslation()
|
|
21
|
-
const location = useLocation()
|
|
22
20
|
const isViewConfigEnabled = useFeatureFlag("view_configurations")
|
|
23
21
|
|
|
24
22
|
// If feature flag is enabled, use the new configurable table
|
|
@@ -59,9 +57,6 @@ export const OrderListTable = () => {
|
|
|
59
57
|
<Container className="divide-y p-0">
|
|
60
58
|
<div className="flex items-center justify-between px-6 py-4">
|
|
61
59
|
<Heading>{t("orders.domain")}</Heading>
|
|
62
|
-
<Button size="small" variant="secondary" asChild>
|
|
63
|
-
<Link to={`export${location.search}`}>{t("actions.export")}</Link>
|
|
64
|
-
</Button>
|
|
65
60
|
</div>
|
|
66
61
|
<_DataTable
|
|
67
62
|
columns={columns}
|
|
@@ -83,7 +78,6 @@ export const OrderListTable = () => {
|
|
|
83
78
|
message: t("orders.list.noRecordsMessage"),
|
|
84
79
|
}}
|
|
85
80
|
/>
|
|
86
|
-
<Outlet />
|
|
87
81
|
</Container>
|
|
88
82
|
)
|
|
89
83
|
}
|
|
@@ -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
|
{
|