@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
package/dist/app.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DashboardApp
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZADXDNB3.mjs";
|
|
4
4
|
import "./chunk-2SSUH2HJ.mjs";
|
|
5
5
|
import "./chunk-ONB3JEHR.mjs";
|
|
6
6
|
import "./chunk-YCDDT44O.mjs";
|
|
@@ -19,13 +19,13 @@ import "./chunk-OC7BQLYI.mjs";
|
|
|
19
19
|
import "./chunk-S4DMV3ZT.mjs";
|
|
20
20
|
import "./chunk-SUYYSKCB.mjs";
|
|
21
21
|
import "./chunk-OBQI23QM.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-3ESSTIV2.mjs";
|
|
23
23
|
import "./chunk-I4OBEAOJ.mjs";
|
|
24
|
+
import "./chunk-XIVBRONM.mjs";
|
|
24
25
|
import "./chunk-HI6URQ7H.mjs";
|
|
25
26
|
import "./chunk-6CLQKVAU.mjs";
|
|
26
27
|
import "./chunk-KI7TOXBR.mjs";
|
|
27
28
|
import "./chunk-HKIF5HVL.mjs";
|
|
28
|
-
import "./chunk-XIVBRONM.mjs";
|
|
29
29
|
import "./chunk-WAXMT4IY.mjs";
|
|
30
30
|
import "./chunk-DYDGGABK.mjs";
|
|
31
31
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -37,7 +37,7 @@ import "./chunk-NHDFPGQ3.mjs";
|
|
|
37
37
|
import "./chunk-A63RZVX6.mjs";
|
|
38
38
|
import "./chunk-HBXV7ENS.mjs";
|
|
39
39
|
import "./chunk-CDORR33H.mjs";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-GN6OCHP4.mjs";
|
|
41
41
|
import "./chunk-N4O5FAUC.mjs";
|
|
42
42
|
import "./chunk-7AX6R6G6.mjs";
|
|
43
43
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-6HTZNHPT.mjs";
|
|
8
8
|
import {
|
|
9
9
|
RouteDrawer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WVA4O7QS.mjs";
|
|
11
11
|
import {
|
|
12
12
|
useRouteModal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D6UW7URG.mjs";
|
|
14
14
|
import {
|
|
15
15
|
Form
|
|
16
16
|
} from "./chunk-OBQI23QM.mjs";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-6HTZNHPT.mjs";
|
|
5
5
|
import {
|
|
6
6
|
RouteDrawer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WVA4O7QS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
useRouteModal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-D6UW7URG.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Form
|
|
13
13
|
} from "./chunk-OBQI23QM.mjs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateCampaignForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BZKI5J2M.mjs";
|
|
4
4
|
import "./chunk-F6ZOHZVB.mjs";
|
|
5
5
|
import "./chunk-5LGRZSEH.mjs";
|
|
6
6
|
import "./chunk-OFN7DIZA.mjs";
|
|
7
7
|
import "./chunk-DK4WIVY6.mjs";
|
|
8
8
|
import "./chunk-IUCDCPJU.mjs";
|
|
9
9
|
import "./chunk-6HTZNHPT.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-WVA4O7QS.mjs";
|
|
11
11
|
import {
|
|
12
12
|
RouteFocusModal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D6UW7URG.mjs";
|
|
14
14
|
import "./chunk-S4DMV3ZT.mjs";
|
|
15
15
|
import "./chunk-OBQI23QM.mjs";
|
|
16
16
|
import "./chunk-A63RZVX6.mjs";
|
|
@@ -42,13 +42,13 @@ import {
|
|
|
42
42
|
import "./chunk-OC7BQLYI.mjs";
|
|
43
43
|
import "./chunk-S4DMV3ZT.mjs";
|
|
44
44
|
import "./chunk-SUYYSKCB.mjs";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-3ESSTIV2.mjs";
|
|
46
46
|
import "./chunk-I4OBEAOJ.mjs";
|
|
47
|
+
import "./chunk-XIVBRONM.mjs";
|
|
47
48
|
import "./chunk-HI6URQ7H.mjs";
|
|
48
49
|
import "./chunk-6CLQKVAU.mjs";
|
|
49
50
|
import "./chunk-KI7TOXBR.mjs";
|
|
50
51
|
import "./chunk-HKIF5HVL.mjs";
|
|
51
|
-
import "./chunk-XIVBRONM.mjs";
|
|
52
52
|
import "./chunk-WAXMT4IY.mjs";
|
|
53
53
|
import "./chunk-DYDGGABK.mjs";
|
|
54
54
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
} from "./chunk-A63RZVX6.mjs";
|
|
67
67
|
import "./chunk-HBXV7ENS.mjs";
|
|
68
68
|
import "./chunk-CDORR33H.mjs";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-GN6OCHP4.mjs";
|
|
70
70
|
import "./chunk-N4O5FAUC.mjs";
|
|
71
71
|
import "./chunk-7AX6R6G6.mjs";
|
|
72
72
|
import "./chunk-N3FCYZV6.mjs";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-6HTZNHPT.mjs";
|
|
8
8
|
import {
|
|
9
9
|
RouteDrawer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WVA4O7QS.mjs";
|
|
11
11
|
import {
|
|
12
12
|
useRouteModal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D6UW7URG.mjs";
|
|
14
14
|
import {
|
|
15
15
|
Form
|
|
16
16
|
} from "./chunk-OBQI23QM.mjs";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import "./chunk-XRTVFYCW.mjs";
|
|
2
2
|
import {
|
|
3
3
|
MetadataForm
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-N3SAXQVR.mjs";
|
|
5
5
|
import "./chunk-IUCDCPJU.mjs";
|
|
6
6
|
import "./chunk-6HTZNHPT.mjs";
|
|
7
7
|
import {
|
|
8
8
|
RouteDrawer
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-WVA4O7QS.mjs";
|
|
10
|
+
import "./chunk-D6UW7URG.mjs";
|
|
11
11
|
import "./chunk-LPEUYMRK.mjs";
|
|
12
12
|
import "./chunk-OC7BQLYI.mjs";
|
|
13
13
|
import "./chunk-S4DMV3ZT.mjs";
|
|
14
14
|
import "./chunk-OBQI23QM.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-3ESSTIV2.mjs";
|
|
16
16
|
import "./chunk-I4OBEAOJ.mjs";
|
|
17
|
+
import "./chunk-XIVBRONM.mjs";
|
|
17
18
|
import "./chunk-HI6URQ7H.mjs";
|
|
18
19
|
import "./chunk-6CLQKVAU.mjs";
|
|
19
20
|
import "./chunk-KI7TOXBR.mjs";
|
|
20
21
|
import "./chunk-HKIF5HVL.mjs";
|
|
21
|
-
import "./chunk-XIVBRONM.mjs";
|
|
22
22
|
import "./chunk-WAXMT4IY.mjs";
|
|
23
23
|
import "./chunk-DYDGGABK.mjs";
|
|
24
24
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -30,7 +30,7 @@ import "./chunk-NHDFPGQ3.mjs";
|
|
|
30
30
|
import "./chunk-A63RZVX6.mjs";
|
|
31
31
|
import "./chunk-HBXV7ENS.mjs";
|
|
32
32
|
import "./chunk-CDORR33H.mjs";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-GN6OCHP4.mjs";
|
|
34
34
|
import "./chunk-N4O5FAUC.mjs";
|
|
35
35
|
import {
|
|
36
36
|
useProductCategory,
|
|
@@ -15,11 +15,11 @@ import "./chunk-IUCDCPJU.mjs";
|
|
|
15
15
|
import {
|
|
16
16
|
KeyboundForm
|
|
17
17
|
} from "./chunk-6HTZNHPT.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-WVA4O7QS.mjs";
|
|
19
19
|
import {
|
|
20
20
|
RouteFocusModal,
|
|
21
21
|
useRouteModal
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-D6UW7URG.mjs";
|
|
23
23
|
import {
|
|
24
24
|
useDocumentDirection
|
|
25
25
|
} from "./chunk-S4DMV3ZT.mjs";
|
|
@@ -7,9 +7,10 @@ import {
|
|
|
7
7
|
getIsActiveProps,
|
|
8
8
|
getIsInternalProps
|
|
9
9
|
} from "./chunk-54IEHX46.mjs";
|
|
10
|
+
import "./chunk-JQBWAJQZ.mjs";
|
|
10
11
|
import {
|
|
11
12
|
LinkButton
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CTUJXJYA.mjs";
|
|
13
14
|
import {
|
|
14
15
|
useProductTableColumns
|
|
15
16
|
} from "./chunk-BW322BVH.mjs";
|
|
@@ -24,12 +25,12 @@ import {
|
|
|
24
25
|
} from "./chunk-YTN73JYH.mjs";
|
|
25
26
|
import "./chunk-HQKGZADC.mjs";
|
|
26
27
|
import "./chunk-EMIHDNB7.mjs";
|
|
27
|
-
import {
|
|
28
|
-
useProductTableFilters
|
|
29
|
-
} from "./chunk-MY6I7UJG.mjs";
|
|
30
28
|
import {
|
|
31
29
|
useProductTableQuery
|
|
32
30
|
} from "./chunk-R65S6ZZV.mjs";
|
|
31
|
+
import {
|
|
32
|
+
useProductTableFilters
|
|
33
|
+
} from "./chunk-R2EBIESZ.mjs";
|
|
33
34
|
import "./chunk-GU5PJRPM.mjs";
|
|
34
35
|
import {
|
|
35
36
|
TwoColumnPage
|
|
@@ -37,6 +38,9 @@ import {
|
|
|
37
38
|
import "./chunk-C76H5USB.mjs";
|
|
38
39
|
import "./chunk-DZWH2RV6.mjs";
|
|
39
40
|
import "./chunk-MNXC6Q4F.mjs";
|
|
41
|
+
import {
|
|
42
|
+
useFeatureFlag
|
|
43
|
+
} from "./chunk-G4BWCU5P.mjs";
|
|
40
44
|
import {
|
|
41
45
|
useExtension
|
|
42
46
|
} from "./chunk-C5P5PL3E.mjs";
|
|
@@ -50,13 +54,13 @@ import {
|
|
|
50
54
|
import "./chunk-OC7BQLYI.mjs";
|
|
51
55
|
import "./chunk-S4DMV3ZT.mjs";
|
|
52
56
|
import "./chunk-SUYYSKCB.mjs";
|
|
53
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-3ESSTIV2.mjs";
|
|
54
58
|
import "./chunk-I4OBEAOJ.mjs";
|
|
59
|
+
import "./chunk-XIVBRONM.mjs";
|
|
55
60
|
import "./chunk-HI6URQ7H.mjs";
|
|
56
61
|
import "./chunk-6CLQKVAU.mjs";
|
|
57
62
|
import "./chunk-KI7TOXBR.mjs";
|
|
58
63
|
import "./chunk-HKIF5HVL.mjs";
|
|
59
|
-
import "./chunk-XIVBRONM.mjs";
|
|
60
64
|
import "./chunk-WAXMT4IY.mjs";
|
|
61
65
|
import "./chunk-DYDGGABK.mjs";
|
|
62
66
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -68,7 +72,7 @@ import "./chunk-NHDFPGQ3.mjs";
|
|
|
68
72
|
import "./chunk-A63RZVX6.mjs";
|
|
69
73
|
import "./chunk-HBXV7ENS.mjs";
|
|
70
74
|
import "./chunk-CDORR33H.mjs";
|
|
71
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-GN6OCHP4.mjs";
|
|
72
76
|
import "./chunk-N4O5FAUC.mjs";
|
|
73
77
|
import {
|
|
74
78
|
categoriesQueryKeys,
|
|
@@ -116,7 +120,7 @@ var CategoryDetailBreadcrumb = (props) => {
|
|
|
116
120
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
117
121
|
|
|
118
122
|
// src/routes/categories/category-detail/components/category-general-section/category-general-section.tsx
|
|
119
|
-
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
123
|
+
import { GlobeEurope, PencilSquare, Trash } from "@medusajs/icons";
|
|
120
124
|
import { Container, Heading, StatusBadge, Text } from "@medusajs/ui";
|
|
121
125
|
import { useTranslation } from "react-i18next";
|
|
122
126
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
@@ -124,6 +128,7 @@ var CategoryGeneralSection = ({
|
|
|
124
128
|
category
|
|
125
129
|
}) => {
|
|
126
130
|
const { t } = useTranslation();
|
|
131
|
+
const isTranslationsEnabled = useFeatureFlag("translation");
|
|
127
132
|
const activeProps = getIsActiveProps(category.is_active, t);
|
|
128
133
|
const internalProps = getIsInternalProps(category.is_internal, t);
|
|
129
134
|
const handleDelete = useDeleteProductCategoryAction(category);
|
|
@@ -148,6 +153,17 @@ var CategoryGeneralSection = ({
|
|
|
148
153
|
}
|
|
149
154
|
]
|
|
150
155
|
},
|
|
156
|
+
...isTranslationsEnabled ? [
|
|
157
|
+
{
|
|
158
|
+
actions: [
|
|
159
|
+
{
|
|
160
|
+
label: t("translations.actions.manage"),
|
|
161
|
+
to: `/settings/translations/edit?reference=product_category&reference_id=${category.id}`,
|
|
162
|
+
icon: /* @__PURE__ */ jsx2(GlobeEurope, {})
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
] : [],
|
|
151
167
|
{
|
|
152
168
|
actions: [
|
|
153
169
|
{
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-6HTZNHPT.mjs";
|
|
8
8
|
import {
|
|
9
9
|
RouteDrawer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WVA4O7QS.mjs";
|
|
11
11
|
import {
|
|
12
12
|
useRouteModal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D6UW7URG.mjs";
|
|
14
14
|
import {
|
|
15
15
|
useDocumentDirection
|
|
16
16
|
} from "./chunk-S4DMV3ZT.mjs";
|
|
@@ -29,6 +29,9 @@ import {
|
|
|
29
29
|
useQueryParams
|
|
30
30
|
} from "./chunk-C76H5USB.mjs";
|
|
31
31
|
import "./chunk-DZWH2RV6.mjs";
|
|
32
|
+
import {
|
|
33
|
+
useFeatureFlag
|
|
34
|
+
} from "./chunk-G4BWCU5P.mjs";
|
|
32
35
|
import {
|
|
33
36
|
useExtension
|
|
34
37
|
} from "./chunk-C5P5PL3E.mjs";
|
|
@@ -49,7 +52,7 @@ import "./chunk-NFEK63OE.mjs";
|
|
|
49
52
|
import "./chunk-QZ7TP4HQ.mjs";
|
|
50
53
|
|
|
51
54
|
// src/routes/categories/category-list/components/category-list-table/category-list-table.tsx
|
|
52
|
-
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
55
|
+
import { GlobeEurope, PencilSquare, Trash } from "@medusajs/icons";
|
|
53
56
|
import { Button, Container, Heading, Text as Text2 } from "@medusajs/ui";
|
|
54
57
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
55
58
|
import { createColumnHelper as createColumnHelper2 } from "@tanstack/react-table";
|
|
@@ -228,6 +231,7 @@ var CategoryRowActions = ({
|
|
|
228
231
|
category
|
|
229
232
|
}) => {
|
|
230
233
|
const { t } = useTranslation2();
|
|
234
|
+
const isTranslationsEnabled = useFeatureFlag("translation");
|
|
231
235
|
const handleDelete = useDeleteProductCategoryAction(category);
|
|
232
236
|
return /* @__PURE__ */ jsx2(
|
|
233
237
|
ActionMenu,
|
|
@@ -242,6 +246,17 @@ var CategoryRowActions = ({
|
|
|
242
246
|
}
|
|
243
247
|
]
|
|
244
248
|
},
|
|
249
|
+
...isTranslationsEnabled ? [
|
|
250
|
+
{
|
|
251
|
+
actions: [
|
|
252
|
+
{
|
|
253
|
+
icon: /* @__PURE__ */ jsx2(GlobeEurope, {}),
|
|
254
|
+
label: t("translations.actions.manage"),
|
|
255
|
+
to: `/settings/translations/edit?reference=product_category&reference_id=${category.id}`
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
] : [],
|
|
245
260
|
{
|
|
246
261
|
actions: [
|
|
247
262
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CategoryTree
|
|
3
3
|
} from "./chunk-XDCNT5GQ.mjs";
|
|
4
|
-
import "./chunk-
|
|
4
|
+
import "./chunk-WVA4O7QS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
RouteFocusModal
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D6UW7URG.mjs";
|
|
8
8
|
import "./chunk-OBQI23QM.mjs";
|
|
9
9
|
import {
|
|
10
10
|
categoriesQueryKeys,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
} from "./chunk-YTN73JYH.mjs";
|
|
13
13
|
import "./chunk-HQKGZADC.mjs";
|
|
14
14
|
import "./chunk-EMIHDNB7.mjs";
|
|
15
|
-
import {
|
|
16
|
-
useProductTableFilters
|
|
17
|
-
} from "./chunk-MY6I7UJG.mjs";
|
|
18
15
|
import {
|
|
19
16
|
useProductTableQuery
|
|
20
17
|
} from "./chunk-R65S6ZZV.mjs";
|
|
18
|
+
import {
|
|
19
|
+
useProductTableFilters
|
|
20
|
+
} from "./chunk-R2EBIESZ.mjs";
|
|
21
21
|
import "./chunk-GU5PJRPM.mjs";
|
|
22
22
|
import "./chunk-C76H5USB.mjs";
|
|
23
23
|
import "./chunk-DZWH2RV6.mjs";
|
|
@@ -25,23 +25,23 @@ import "./chunk-IUCDCPJU.mjs";
|
|
|
25
25
|
import {
|
|
26
26
|
KeyboundForm
|
|
27
27
|
} from "./chunk-6HTZNHPT.mjs";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-WVA4O7QS.mjs";
|
|
29
29
|
import {
|
|
30
30
|
RouteFocusModal,
|
|
31
31
|
useRouteModal
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-D6UW7URG.mjs";
|
|
33
33
|
import "./chunk-MNXC6Q4F.mjs";
|
|
34
34
|
import "./chunk-LPEUYMRK.mjs";
|
|
35
35
|
import "./chunk-S4DMV3ZT.mjs";
|
|
36
36
|
import "./chunk-SUYYSKCB.mjs";
|
|
37
37
|
import "./chunk-OBQI23QM.mjs";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-3ESSTIV2.mjs";
|
|
39
39
|
import "./chunk-I4OBEAOJ.mjs";
|
|
40
|
+
import "./chunk-XIVBRONM.mjs";
|
|
40
41
|
import "./chunk-HI6URQ7H.mjs";
|
|
41
42
|
import "./chunk-6CLQKVAU.mjs";
|
|
42
43
|
import "./chunk-KI7TOXBR.mjs";
|
|
43
44
|
import "./chunk-HKIF5HVL.mjs";
|
|
44
|
-
import "./chunk-XIVBRONM.mjs";
|
|
45
45
|
import "./chunk-WAXMT4IY.mjs";
|
|
46
46
|
import "./chunk-DYDGGABK.mjs";
|
|
47
47
|
import "./chunk-LGNTHZ5Y.mjs";
|
|
@@ -53,7 +53,7 @@ import "./chunk-NHDFPGQ3.mjs";
|
|
|
53
53
|
import "./chunk-A63RZVX6.mjs";
|
|
54
54
|
import "./chunk-HBXV7ENS.mjs";
|
|
55
55
|
import "./chunk-CDORR33H.mjs";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-GN6OCHP4.mjs";
|
|
57
57
|
import "./chunk-N4O5FAUC.mjs";
|
|
58
58
|
import {
|
|
59
59
|
useProductCategory,
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
productTypesQueryKeys,
|
|
3
|
+
useProductTypes
|
|
4
|
+
} from "./chunk-HKIF5HVL.mjs";
|
|
5
|
+
import {
|
|
6
|
+
collectionsQueryKeys,
|
|
7
|
+
useCollections
|
|
8
|
+
} from "./chunk-NHDFPGQ3.mjs";
|
|
1
9
|
import {
|
|
2
10
|
ordersQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GN6OCHP4.mjs";
|
|
12
|
+
import {
|
|
13
|
+
categoriesQueryKeys,
|
|
14
|
+
useProductCategories
|
|
15
|
+
} from "./chunk-7AX6R6G6.mjs";
|
|
16
|
+
import {
|
|
17
|
+
productsQueryKeys,
|
|
18
|
+
useProducts
|
|
19
|
+
} from "./chunk-LEJUZW3P.mjs";
|
|
4
20
|
import {
|
|
5
21
|
queryClient
|
|
6
22
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -239,17 +255,174 @@ var useDeleteProductTag = (id, options) => {
|
|
|
239
255
|
});
|
|
240
256
|
};
|
|
241
257
|
|
|
258
|
+
// src/hooks/api/translations.tsx
|
|
259
|
+
import {
|
|
260
|
+
useMutation as useMutation4,
|
|
261
|
+
useQuery as useQuery6
|
|
262
|
+
} from "@tanstack/react-query";
|
|
263
|
+
var TRANSLATIONS_QUERY_KEY = "translations";
|
|
264
|
+
var translationsQueryKeys = queryKeysFactory(TRANSLATIONS_QUERY_KEY);
|
|
265
|
+
var useReferenceTranslations = (reference, referenceId, options) => {
|
|
266
|
+
const referenceHookMap = /* @__PURE__ */ new Map([
|
|
267
|
+
[
|
|
268
|
+
"product",
|
|
269
|
+
() => {
|
|
270
|
+
const translatableFields = ["title", "description"];
|
|
271
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
272
|
+
const { products, ...rest2 } = useProducts(
|
|
273
|
+
{ id: referenceId ?? [], fields },
|
|
274
|
+
options
|
|
275
|
+
);
|
|
276
|
+
return {
|
|
277
|
+
...rest2,
|
|
278
|
+
data: {
|
|
279
|
+
translations: products?.flatMap((product) => product.translations ?? []) ?? [],
|
|
280
|
+
references: products ?? [],
|
|
281
|
+
translatableFields
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
[
|
|
287
|
+
"product_variant",
|
|
288
|
+
() => {
|
|
289
|
+
const translatableFields = ["title"];
|
|
290
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
291
|
+
const { variants, ...rest2 } = useVariants(
|
|
292
|
+
{ id: referenceId ?? [], fields },
|
|
293
|
+
options
|
|
294
|
+
);
|
|
295
|
+
return {
|
|
296
|
+
...rest2,
|
|
297
|
+
data: {
|
|
298
|
+
translations: variants?.flatMap((variant) => variant.translations ?? []) ?? [],
|
|
299
|
+
references: variants ?? [],
|
|
300
|
+
translatableFields
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
[
|
|
306
|
+
"product_category",
|
|
307
|
+
() => {
|
|
308
|
+
const translatableFields = ["name", "description"];
|
|
309
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
310
|
+
const { product_categories, ...rest2 } = useProductCategories(
|
|
311
|
+
{ id: referenceId ?? [], fields },
|
|
312
|
+
options
|
|
313
|
+
);
|
|
314
|
+
return {
|
|
315
|
+
...rest2,
|
|
316
|
+
data: {
|
|
317
|
+
translations: product_categories?.flatMap(
|
|
318
|
+
(category) => category.translations ?? []
|
|
319
|
+
) ?? [],
|
|
320
|
+
references: product_categories ?? [],
|
|
321
|
+
translatableFields
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
[
|
|
327
|
+
"product_collection",
|
|
328
|
+
() => {
|
|
329
|
+
const translatableFields = ["title"];
|
|
330
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
331
|
+
const { collections, ...rest2 } = useCollections(
|
|
332
|
+
{ id: referenceId ?? [], fields },
|
|
333
|
+
options
|
|
334
|
+
);
|
|
335
|
+
return {
|
|
336
|
+
...rest2,
|
|
337
|
+
data: {
|
|
338
|
+
translations: collections?.flatMap(
|
|
339
|
+
(collection) => collection.translations ?? []
|
|
340
|
+
) ?? [],
|
|
341
|
+
references: collections ?? [],
|
|
342
|
+
translatableFields
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
[
|
|
348
|
+
"product_type",
|
|
349
|
+
() => {
|
|
350
|
+
const translatableFields = ["value"];
|
|
351
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
352
|
+
const { product_types, ...rest2 } = useProductTypes(
|
|
353
|
+
{ id: referenceId ?? [], fields },
|
|
354
|
+
options
|
|
355
|
+
);
|
|
356
|
+
return {
|
|
357
|
+
...rest2,
|
|
358
|
+
data: {
|
|
359
|
+
translations: product_types?.flatMap((type) => type.translations ?? []) ?? [],
|
|
360
|
+
references: product_types ?? [],
|
|
361
|
+
translatableFields
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
[
|
|
367
|
+
"product_tag",
|
|
368
|
+
() => {
|
|
369
|
+
const translatableFields = ["value"];
|
|
370
|
+
const fields = translatableFields.concat(["translations.*"]).join(",");
|
|
371
|
+
const { product_tags, ...rest2 } = useProductTags(
|
|
372
|
+
{ id: referenceId ?? [], fields },
|
|
373
|
+
options
|
|
374
|
+
);
|
|
375
|
+
return {
|
|
376
|
+
...rest2,
|
|
377
|
+
data: {
|
|
378
|
+
translations: product_tags?.flatMap((tag) => tag.translations ?? []) ?? [],
|
|
379
|
+
references: product_tags ?? [],
|
|
380
|
+
translatableFields
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
// TODO: product option and option values
|
|
386
|
+
]);
|
|
387
|
+
const referenceHook = referenceHookMap.get(reference);
|
|
388
|
+
if (!referenceHook) {
|
|
389
|
+
throw new Error(`No hook found for reference type: ${reference}`);
|
|
390
|
+
}
|
|
391
|
+
const { data, ...rest } = referenceHook();
|
|
392
|
+
return { ...data, ...rest };
|
|
393
|
+
};
|
|
394
|
+
var useBatchTranslations = (reference, options) => {
|
|
395
|
+
const referenceInvalidationKeysMap = /* @__PURE__ */ new Map([
|
|
396
|
+
["product", productsQueryKeys.lists()],
|
|
397
|
+
["product_variant", productVariantQueryKeys.lists()],
|
|
398
|
+
["product_category", categoriesQueryKeys.lists()],
|
|
399
|
+
["product_collection", collectionsQueryKeys.lists()],
|
|
400
|
+
["product_type", productTypesQueryKeys.lists()],
|
|
401
|
+
["product_tag", productTagsQueryKeys.lists()]
|
|
402
|
+
]);
|
|
403
|
+
return useMutation4({
|
|
404
|
+
mutationFn: (payload) => sdk.admin.translation.batch(payload),
|
|
405
|
+
onSuccess: (data, variables, context) => {
|
|
406
|
+
queryClient.invalidateQueries({
|
|
407
|
+
queryKey: referenceInvalidationKeysMap.get(reference)
|
|
408
|
+
});
|
|
409
|
+
options?.onSuccess?.(data, variables, context);
|
|
410
|
+
},
|
|
411
|
+
...options
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
|
|
242
415
|
// src/hooks/api/fulfillment.tsx
|
|
243
|
-
import { useMutation as
|
|
416
|
+
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
|
244
417
|
var FULFILLMENTS_QUERY_KEY = "fulfillments";
|
|
245
418
|
var fulfillmentsQueryKeys = queryKeysFactory(FULFILLMENTS_QUERY_KEY);
|
|
246
419
|
|
|
247
420
|
// src/hooks/api/locales.tsx
|
|
248
|
-
import { useQuery as
|
|
421
|
+
import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
249
422
|
var LOCALES_QUERY_KEY = "locales";
|
|
250
423
|
var localesQueryKeys = queryKeysFactory(LOCALES_QUERY_KEY);
|
|
251
424
|
var useLocales = (query, options) => {
|
|
252
|
-
const { data, ...rest } =
|
|
425
|
+
const { data, ...rest } = useQuery7({
|
|
253
426
|
queryFn: () => sdk.admin.locale.list(query),
|
|
254
427
|
queryKey: localesQueryKeys.list(query),
|
|
255
428
|
...options
|
|
@@ -258,11 +431,11 @@ var useLocales = (query, options) => {
|
|
|
258
431
|
};
|
|
259
432
|
|
|
260
433
|
// src/hooks/api/notification.tsx
|
|
261
|
-
import { useQuery as
|
|
434
|
+
import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
262
435
|
var NOTIFICATION_QUERY_KEY = "notification";
|
|
263
436
|
var notificationQueryKeys = queryKeysFactory(NOTIFICATION_QUERY_KEY);
|
|
264
437
|
var useNotifications = (query, options) => {
|
|
265
|
-
const { data, ...rest } =
|
|
438
|
+
const { data, ...rest } = useQuery8({
|
|
266
439
|
queryFn: () => sdk.admin.notification.list(query),
|
|
267
440
|
queryKey: notificationQueryKeys.list(query),
|
|
268
441
|
...options
|
|
@@ -271,13 +444,13 @@ var useNotifications = (query, options) => {
|
|
|
271
444
|
};
|
|
272
445
|
|
|
273
446
|
// src/hooks/api/payment-collections.tsx
|
|
274
|
-
import { useMutation as
|
|
447
|
+
import { useMutation as useMutation6 } from "@tanstack/react-query";
|
|
275
448
|
var PAYMENT_COLLECTION_QUERY_KEY = "payment-collection";
|
|
276
449
|
var paymentCollectionQueryKeys = queryKeysFactory(
|
|
277
450
|
PAYMENT_COLLECTION_QUERY_KEY
|
|
278
451
|
);
|
|
279
452
|
var useMarkPaymentCollectionAsPaid = (orderId, paymentCollectionId, options) => {
|
|
280
|
-
return
|
|
453
|
+
return useMutation6({
|
|
281
454
|
mutationFn: (payload) => sdk.admin.paymentCollection.markAsPaid(paymentCollectionId, payload),
|
|
282
455
|
onSuccess: (data, variables, context) => {
|
|
283
456
|
queryClient.invalidateQueries({
|
|
@@ -297,8 +470,8 @@ var useMarkPaymentCollectionAsPaid = (orderId, paymentCollectionId, options) =>
|
|
|
297
470
|
|
|
298
471
|
// src/hooks/api/payments.tsx
|
|
299
472
|
import {
|
|
300
|
-
useMutation as
|
|
301
|
-
useQuery as
|
|
473
|
+
useMutation as useMutation7,
|
|
474
|
+
useQuery as useQuery9
|
|
302
475
|
} from "@tanstack/react-query";
|
|
303
476
|
var PAYMENT_QUERY_KEY = "payment";
|
|
304
477
|
var paymentQueryKeys = queryKeysFactory(PAYMENT_QUERY_KEY);
|
|
@@ -307,7 +480,7 @@ var paymentProvidersQueryKeys = queryKeysFactory(
|
|
|
307
480
|
PAYMENT_PROVIDERS_QUERY_KEY
|
|
308
481
|
);
|
|
309
482
|
var useCapturePayment = (orderId, paymentId, options) => {
|
|
310
|
-
return
|
|
483
|
+
return useMutation7({
|
|
311
484
|
mutationFn: (payload) => sdk.admin.payment.capture(paymentId, payload),
|
|
312
485
|
onSuccess: (data, variables, context) => {
|
|
313
486
|
queryClient.invalidateQueries({
|
|
@@ -322,7 +495,7 @@ var useCapturePayment = (orderId, paymentId, options) => {
|
|
|
322
495
|
});
|
|
323
496
|
};
|
|
324
497
|
var useRefundPayment = (orderId, paymentId, options) => {
|
|
325
|
-
return
|
|
498
|
+
return useMutation7({
|
|
326
499
|
mutationFn: (payload) => sdk.admin.payment.refund(paymentId, payload),
|
|
327
500
|
onSuccess: (data, variables, context) => {
|
|
328
501
|
queryClient.invalidateQueries({
|
|
@@ -364,5 +537,7 @@ export {
|
|
|
364
537
|
useProductTags,
|
|
365
538
|
useCreateProductTag,
|
|
366
539
|
useUpdateProductTag,
|
|
367
|
-
useDeleteProductTag
|
|
540
|
+
useDeleteProductTag,
|
|
541
|
+
useReferenceTranslations,
|
|
542
|
+
useBatchTranslations
|
|
368
543
|
};
|