@mercurjs/admin 2.2.0-canary.15 → 2.2.0-canary.17
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-KOGSYV2W.js → add-campaign-promotions-4QP4LF7G.js} +4 -4
- package/dist/{adjust-inventory-3IQ657W2.js → adjust-inventory-AHIKDW7M.js} +12 -12
- package/dist/{api-key-management-create-UD5V7TOU.js → api-key-management-create-7SIKAXEH.js} +4 -4
- package/dist/{api-key-management-detail-V22TYNOF.js → api-key-management-detail-ZRLG6YRB.js} +17 -16
- package/dist/{api-key-management-edit-4TLKJSAE.js → api-key-management-edit-C4FYJZGH.js} +4 -4
- package/dist/{api-key-management-list-SZUSD6UI.js → api-key-management-list-FVOOICQR.js} +4 -4
- package/dist/{api-key-management-sales-channels-SKKS5BCC.js → api-key-management-sales-channels-JLSDZRG6.js} +7 -6
- package/dist/{attribute-create-IKTP5XRS.js → attribute-create-NIYUQEHQ.js} +14 -14
- package/dist/{attribute-detail-V4QI34FV.js → attribute-detail-GA4FDSAG.js} +15 -12
- package/dist/{attribute-edit-LUY66TG3.js → attribute-edit-KJL36HQ4.js} +1 -1
- package/dist/{attribute-edit-possible-value-IOS3625C.js → attribute-edit-possible-value-LGOD3ZKQ.js} +1 -1
- package/dist/{attribute-list-EMPHZ32M.js → attribute-list-A3RFO32Z.js} +12 -12
- package/dist/breadcrumb-CO5DVI72.js +26 -0
- package/dist/breadcrumb-RYIHOYZE.js +27 -0
- package/dist/{campaign-budget-edit-WKSYXTBX.js → campaign-budget-edit-N2WWGO2G.js} +1 -1
- package/dist/{campaign-configuration-ZTK46EB5.js → campaign-configuration-MFFZXUEN.js} +1 -1
- package/dist/{campaign-create-VFFIIRE4.js → campaign-create-NMIOUGXQ.js} +2 -2
- package/dist/{campaign-detail-QY3AALUR.js → campaign-detail-A7ZM4Q7M.js} +15 -15
- package/dist/{campaign-edit-ZGLDY4X4.js → campaign-edit-PA7FGIY3.js} +1 -1
- package/dist/{categories-metadata-Z5JAWPAK.js → categories-metadata-FCV4YK74.js} +13 -13
- package/dist/{category-create-GMCJABRW.js → category-create-S3K54WKP.js} +5 -5
- package/dist/{category-detail-IP5EPIUR.js → category-detail-CIEHVR4M.js} +14 -14
- package/dist/{category-edit-GLE4NTFG.js → category-edit-XKANIIH5.js} +3 -3
- package/dist/{category-list-SNVOQ64L.js → category-list-4YSI36HW.js} +4 -4
- package/dist/{category-organize-UY4M4N7S.js → category-organize-U6UO35Y3.js} +2 -2
- package/dist/{category-products-HWXJR7KR.js → category-products-AB3YAGSW.js} +13 -13
- package/dist/{chunk-3JSAS7QP.js → chunk-22EOFXNK.js} +16 -0
- package/dist/{chunk-5UPOHLBD.js → chunk-2LKMOTLX.js} +2 -2
- package/dist/{chunk-ZO7A6VYP.js → chunk-2PUBUYFG.js} +6 -6
- package/dist/{chunk-26UTIAAZ.js → chunk-32URSQ4F.js} +1 -1
- package/dist/{chunk-ABWW3JHS.js → chunk-3DMUKRIX.js} +4 -4
- package/dist/{chunk-M572YFDA.js → chunk-3EUF5GRT.js} +2 -2
- package/dist/{chunk-SUVFPJ4J.js → chunk-3KCXKGHX.js} +2 -2
- package/dist/{chunk-O2XHQTBX.js → chunk-47W2JHOE.js} +3 -3
- package/dist/chunk-4FHHNYIV.js +280 -0
- package/dist/{chunk-IQZ3T2Q4.js → chunk-4IKESXD3.js} +3 -3
- package/dist/{chunk-UXGLM3B4.js → chunk-4OEYCLBE.js} +1 -1
- package/dist/{chunk-NGDOLGBQ.js → chunk-4Q5JHL4V.js} +1 -1
- package/dist/{chunk-3HY4I76Q.js → chunk-5BF5JDWT.js} +2 -2
- package/dist/{chunk-ZXBCWDVM.js → chunk-5T45PYWI.js} +3 -3
- package/dist/{chunk-5FFZQPTT.js → chunk-6PTZK4CH.js} +1 -1
- package/dist/{chunk-KWFKMS4M.js → chunk-7Y6A7XK6.js} +10 -10
- package/dist/{chunk-LGL4QSGB.js → chunk-7ZL46D3W.js} +3 -3
- package/dist/{chunk-HDOWEXDH.js → chunk-A2GVK4VZ.js} +2 -2
- package/dist/{chunk-WYA62MUL.js → chunk-AROCMF45.js} +1 -1
- package/dist/chunk-AWLDIHXR.js +204 -0
- package/dist/{chunk-D2VXOF46.js → chunk-B4K7H6DH.js} +2 -2
- package/dist/{chunk-QUPUWR42.js → chunk-B5OMHYJ5.js} +6 -4
- package/dist/{chunk-EMQP2CNF.js → chunk-D77BYNTQ.js} +1 -1
- package/dist/{chunk-54RTJBYO.js → chunk-DGCPYCHU.js} +8 -63
- package/dist/{chunk-QLEGHL2Q.js → chunk-EB6ZFOTO.js} +2 -2
- package/dist/{chunk-W3FDZPPF.js → chunk-EOLSQKPV.js} +2 -2
- package/dist/{chunk-2OF7GB7J.js → chunk-ESZN3ELN.js} +2 -2
- package/dist/{chunk-BPCU5QJE.js → chunk-FBD7WJPO.js} +1 -1
- package/dist/{chunk-NJP3DEE5.js → chunk-FJHAAROU.js} +1 -1
- package/dist/{chunk-N4GJRJF5.js → chunk-FJRNNDZS.js} +1 -1
- package/dist/{chunk-4LXBQTFN.js → chunk-FREUYHMS.js} +1 -1
- package/dist/{chunk-PASEZJC7.js → chunk-FYCIGKVG.js} +1 -1
- package/dist/{chunk-5AZCIOS4.js → chunk-GQUGCSJV.js} +2 -2
- package/dist/{chunk-KT7X72J4.js → chunk-HHW4PPNH.js} +1 -0
- package/dist/{chunk-4GFS57XI.js → chunk-HLJ24XVH.js} +1 -1
- package/dist/{chunk-72PLRAWM.js → chunk-IBX52HBP.js} +1 -1
- package/dist/{chunk-KK67WP4G.js → chunk-IEPH6A2W.js} +71 -247
- package/dist/{chunk-3XSC3NEG.js → chunk-J3AMUGGZ.js} +1 -1
- package/dist/{chunk-X7H7TIOT.js → chunk-JR4T4OQU.js} +3 -3
- package/dist/{chunk-HQWN3A5L.js → chunk-JRLDKKCM.js} +2 -2
- package/dist/{chunk-R7ESTJHN.js → chunk-K2C42QAV.js} +2 -2
- package/dist/{chunk-YGRTRAWX.js → chunk-KDE4HKH2.js} +1 -0
- package/dist/{chunk-DN2K5EAH.js → chunk-KYFWVLWO.js} +1 -1
- package/dist/{chunk-CKNQJPAG.js → chunk-LEHS6RED.js} +4 -2
- package/dist/{chunk-FB7DDNCA.js → chunk-LHVXXHPO.js} +1 -1
- package/dist/{chunk-CYGCCNIC.js → chunk-LKW2KWJ4.js} +2 -2
- package/dist/{chunk-H3MAUKL7.js → chunk-M2E3PKA4.js} +183 -183
- package/dist/{chunk-SJGIQGEC.js → chunk-MHVZVF6O.js} +1 -1
- package/dist/{chunk-K4WU4PVL.js → chunk-NZOB3LPA.js} +1 -1
- package/dist/{chunk-BQ6ZDY6L.js → chunk-OCRKS4Z7.js} +6 -6
- package/dist/{chunk-6FHQCLHQ.js → chunk-OKWGPKVK.js} +1 -1
- package/dist/{chunk-3AO6X4CE.js → chunk-PE6JFXWU.js} +1 -1
- package/dist/{chunk-A62MTLPR.js → chunk-Q5WTOVZZ.js} +12 -2
- package/dist/{chunk-Z5T5EPLF.js → chunk-QKJGSZI2.js} +1 -1
- package/dist/{chunk-DJWOIRLV.js → chunk-RUSMGNQ6.js} +1 -1
- package/dist/{chunk-MVDPDVMI.js → chunk-RWRL4AXD.js} +4 -4
- package/dist/{chunk-JSH7JEKY.js → chunk-RZ5SFALB.js} +2 -2
- package/dist/chunk-S6A4FVM2.js +170 -0
- package/dist/{chunk-7KZ5X5SU.js → chunk-SEQJOCTT.js} +3 -3
- package/dist/{chunk-U2ZFCAPX.js → chunk-SITRHMZZ.js} +11 -8
- package/dist/{chunk-RQPDD3RI.js → chunk-SKKF3CU6.js} +1 -1
- package/dist/{chunk-W6V2L2FX.js → chunk-SNCZQATG.js} +2 -2
- package/dist/{chunk-EBYWGIOR.js → chunk-T4GL73RP.js} +1 -1
- package/dist/{chunk-N7OVIX55.js → chunk-TH6W26RC.js} +1 -1
- package/dist/{chunk-4PU6GDCE.js → chunk-TWCYZF6X.js} +1 -1
- package/dist/chunk-UKLRBS4W.js +61 -0
- package/dist/{chunk-WTK4MLMF.js → chunk-UVYWKQJF.js} +1 -1
- package/dist/{chunk-4KX6CBJ4.js → chunk-VSLHL2AZ.js} +2 -0
- package/dist/{chunk-PXKDYD3M.js → chunk-VZ7GNMGX.js} +1 -1
- package/dist/{chunk-VY7PT4SI.js → chunk-W6J4SJ3Y.js} +1 -1
- package/dist/{chunk-TE4IF3MM.js → chunk-WJGABDWC.js} +1 -1
- package/dist/{chunk-VT5E7OMM.js → chunk-WUGV75DM.js} +1 -1
- package/dist/{chunk-P5XVG4PY.js → chunk-XGUUM3S6.js} +1 -1
- package/dist/{chunk-7MMLCMV3.js → chunk-XVSJKCCQ.js} +1 -1
- package/dist/{chunk-453BC56K.js → chunk-Z2UBJXTU.js} +1 -1
- package/dist/{chunk-EGTH3PUK.js → chunk-ZB4TESPP.js} +2 -2
- package/dist/{collection-add-products-ABWXUOFD.js → collection-add-products-KTUW23TD.js} +13 -13
- package/dist/{collection-create-BRMP6SIZ.js → collection-create-7G3MHBVQ.js} +3 -3
- package/dist/{collection-detail-AMGR2B5N.js → collection-detail-TR7TDQZG.js} +13 -13
- package/dist/{collection-edit-YLWUEU4C.js → collection-edit-LQEQ6YGD.js} +3 -3
- package/dist/{collection-list-6HZE43AC.js → collection-list-FOWSOTS7.js} +14 -14
- package/dist/{collection-metadata-JS5QP3GD.js → collection-metadata-DS32TGOK.js} +13 -13
- package/dist/{commission-rate-create-PSPSJZR5.js → commission-rate-create-G42ZUJPH.js} +15 -15
- package/dist/{commission-rate-detail-U72E4ZIO.js → commission-rate-detail-VGYTGWLH.js} +12 -12
- package/dist/{commission-rate-edit-7NJPABVA.js → commission-rate-edit-3CYWYOMS.js} +15 -15
- package/dist/{customer-create-QHA4KM6N.js → customer-create-RW63XPQ6.js} +1 -1
- package/dist/{customer-create-address-TYWVWNUE.js → customer-create-address-SZCOIGDP.js} +1 -1
- package/dist/{customer-detail-2RWBN6C4.js → customer-detail-5XGZ2K3H.js} +13 -13
- package/dist/{customer-edit-JZ4PQTIN.js → customer-edit-ZBIZ4FKT.js} +1 -1
- package/dist/{customer-group-add-customers-VJUBEN7M.js → customer-group-add-customers-SG7EU4D7.js} +1 -1
- package/dist/{customer-group-create-NA2UKCF6.js → customer-group-create-LFGY5HR6.js} +1 -1
- package/dist/{customer-group-detail-ED66F7JM.js → customer-group-detail-JX3BEYFG.js} +11 -11
- package/dist/{customer-group-edit-3O6HAYYN.js → customer-group-edit-CXWQSMDZ.js} +1 -1
- package/dist/{customer-group-list-6YUFKBHH.js → customer-group-list-F5TFLDVH.js} +11 -11
- package/dist/{customer-group-metadata-VQUOWR3P.js → customer-group-metadata-CHOTUAS2.js} +13 -13
- package/dist/{customer-metadata-47AVJXRI.js → customer-metadata-LG6HA56I.js} +13 -13
- package/dist/{customers-add-customer-group-HI7J7YKN.js → customers-add-customer-group-3YKZEZKJ.js} +12 -12
- package/dist/{edit-inventory-item-MBPSBJL4.js → edit-inventory-item-5EYVQ6CM.js} +12 -12
- package/dist/{edit-inventory-item-attributes-RVYWOFAC.js → edit-inventory-item-attributes-7QM4YHAQ.js} +12 -12
- package/dist/{edit-reservation-7BLGYXCJ.js → edit-reservation-C3NXAKSE.js} +3 -3
- package/dist/{edit-rules-ZWDKM5M3.js → edit-rules-2S5H7MC2.js} +12 -12
- package/dist/index.js +262 -230
- package/dist/{inventory-create-Q4VBPXSG.js → inventory-create-RBMMOSC3.js} +15 -15
- package/dist/{inventory-detail-6CKO3A3Y.js → inventory-detail-LSAJ3ZB5.js} +12 -12
- package/dist/{inventory-list-2JGX6BRI.js → inventory-list-SCRYOBZV.js} +2 -2
- package/dist/{inventory-metadata-COGGE5ZR.js → inventory-metadata-OZAKLWNY.js} +13 -13
- package/dist/{inventory-stock-2QIKS7LE.js → inventory-stock-WUAIUFQS.js} +13 -13
- package/dist/loader-S77URTQS.js +32 -0
- package/dist/loader-XPJWDZU3.js +32 -0
- package/dist/{location-create-ZMNB7YKR.js → location-create-SO2CURZL.js} +1 -1
- package/dist/{location-detail-HOCNTQ7K.js → location-detail-PBCP7BBV.js} +12 -12
- package/dist/{location-edit-DMBF3CYZ.js → location-edit-XA53657R.js} +1 -1
- package/dist/{location-fulfillment-providers-YQ2XFPAJ.js → location-fulfillment-providers-D4EFIF3Z.js} +14 -14
- package/dist/{location-list-KQQRH4MT.js → location-list-DM4WU57J.js} +11 -11
- package/dist/{location-sales-channels-DRIS6AUX.js → location-sales-channels-46SPET7R.js} +6 -5
- package/dist/{location-service-zone-create-ZS3UWJAA.js → location-service-zone-create-IOB7DWBR.js} +1 -1
- package/dist/{location-service-zone-edit-MTGU2O4C.js → location-service-zone-edit-X37BNDRP.js} +1 -1
- package/dist/{location-service-zone-manage-areas-S7QZTIFT.js → location-service-zone-manage-areas-CWWABV5M.js} +1 -1
- package/dist/{location-service-zone-shipping-option-create-6GYLJHEC.js → location-service-zone-shipping-option-create-T4LT4E6M.js} +16 -16
- package/dist/{location-service-zone-shipping-option-edit-3PGSNKYT.js → location-service-zone-shipping-option-edit-O3B3H5OC.js} +1 -1
- package/dist/{location-service-zone-shipping-option-pricing-POBJOF3Z.js → location-service-zone-shipping-option-pricing-FZNCTVT6.js} +3 -3
- package/dist/{login-N7CVSQNG.js → login-LTASZXSR.js} +11 -11
- package/dist/{manage-locations-TKLOHP3D.js → manage-locations-WW35SVOX.js} +1 -1
- package/dist/{marketplace-add-currencies-6ANNBGZM.js → marketplace-add-currencies-YVJA6G6V.js} +1 -1
- package/dist/{marketplace-detail-K52ALYGT.js → marketplace-detail-GSPPUVR7.js} +12 -12
- package/dist/{marketplace-edit-6Q3G2OY5.js → marketplace-edit-QNFCTDUC.js} +1 -1
- package/dist/{marketplace-metadata-ZSX3IQF4.js → marketplace-metadata-PB7JEK2K.js} +13 -13
- package/dist/offer-detail-page-2DG3W7VG.js +572 -0
- package/dist/offer-variant-detail-page-U4LDYFE3.js +143 -0
- package/dist/{offers-UBD6NICA.js → offers-D2QQQD2F.js} +284 -123
- package/dist/{order-create-claim-OVHMMR3J.js → order-create-claim-HND7RODU.js} +1 -1
- package/dist/{order-create-edit-HEOYCYZO.js → order-create-edit-LIQGALQ2.js} +4 -4
- package/dist/{order-create-exchange-L56VKQBL.js → order-create-exchange-QE2TJ36U.js} +12 -12
- package/dist/{order-create-refund-UTJKJ3AJ.js → order-create-refund-37JJA6MM.js} +12 -12
- package/dist/{order-create-return-FLGYGUTQ.js → order-create-return-AVVT3OUO.js} +1 -1
- package/dist/{order-detail-KAB4MV7X.js → order-detail-A2WC2OZU.js} +13 -13
- package/dist/{order-edit-billing-address-RUURVISC.js → order-edit-billing-address-IPWVSYR2.js} +13 -13
- package/dist/{order-edit-email-OO7AMRHC.js → order-edit-email-ZQZNTV4P.js} +12 -12
- package/dist/{order-edit-shipping-address-BRRXUE76.js → order-edit-shipping-address-YPYWT3YN.js} +12 -12
- package/dist/{order-list-S3AJC6L5.js → order-list-QR3ZVI4U.js} +3 -3
- package/dist/{order-metadata-OHK6TPAO.js → order-metadata-E25YHGCC.js} +13 -13
- package/dist/{order-request-transfer-YLMXC7NL.js → order-request-transfer-XDNXRB66.js} +12 -12
- package/dist/pages/index.d.ts +2 -1
- package/dist/pages/index.js +103 -101
- package/dist/{price-list-configuration-Q5H22ZE2.js → price-list-configuration-SNL2LNV2.js} +3 -3
- package/dist/{price-list-create-OYAVGRM5.js → price-list-create-GBUUE3NP.js} +17 -17
- package/dist/{price-list-detail-Q4GFFUFG.js → price-list-detail-77FAEXXO.js} +14 -14
- package/dist/{price-list-edit-YY4SXEI3.js → price-list-edit-BOEBNVGM.js} +3 -3
- package/dist/{price-list-list-OIOY43TF.js → price-list-list-AX7ZW6LL.js} +4 -4
- package/dist/{price-list-prices-add-KONZVSVQ.js → price-list-prices-add-2XS5TX5X.js} +17 -17
- package/dist/{price-list-prices-edit-SMUKU7Q6.js → price-list-prices-edit-C2C3I64A.js} +14 -14
- package/dist/{product-add-existing-attributes-KOPVWK5Q.js → product-add-existing-attributes-NFXKW6SW.js} +12 -12
- package/dist/{product-attributes-C3KHQF2I.js → product-attributes-2LAKXXX6.js} +2 -2
- package/dist/{product-bulk-edit-J3CMBZN2.js → product-bulk-edit-G7QTYQHG.js} +3 -3
- package/dist/{product-create-KTIQ3UAQ.js → product-create-AG4AYDM3.js} +21 -21
- package/dist/{product-create-attribute-XARMC6FJ.js → product-create-attribute-ELMLVRUB.js} +3 -3
- package/dist/{product-create-variant-6VUKYLWE.js → product-create-variant-7DVYYUDX.js} +4 -4
- package/dist/{product-detail-UB3EZRDE.js → product-detail-CNVETME5.js} +15 -13
- package/dist/{product-edit-F4CKOIUO.js → product-edit-3Q5E5E5L.js} +2 -2
- package/dist/{product-edit-attribute-LG2ZM6HQ.js → product-edit-attribute-GXFMVPCQ.js} +2 -2
- package/dist/{product-list-2BWYAATR.js → product-list-KM37QJ6F.js} +13 -13
- package/dist/{product-media-EUDMCJ75.js → product-media-H5DAWUYR.js} +7 -6
- package/dist/{product-metadata-5WVNFCRL.js → product-metadata-4ZLL42UF.js} +13 -13
- package/dist/{product-organization-BFWDCHP4.js → product-organization-ILQCXL7B.js} +4 -4
- package/dist/{product-sales-channels-2J5Q65JS.js → product-sales-channels-7QCAABL4.js} +5 -4
- package/dist/{product-shipping-profile-WDLKA2SN.js → product-shipping-profile-4K7LTJ5K.js} +2 -2
- package/dist/{product-tag-create-KQSVCWMC.js → product-tag-create-KKRQQT3A.js} +12 -12
- package/dist/{product-tag-detail-CWDAY7F3.js → product-tag-detail-R6UFJDCW.js} +14 -14
- package/dist/{product-tag-edit-B4SIZCUK.js → product-tag-edit-TISDF4FQ.js} +12 -12
- package/dist/{product-tag-list-2OK3OCMZ.js → product-tag-list-NFPQVVMO.js} +13 -13
- package/dist/{product-tag-metadata-MASTMIKE.js → product-tag-metadata-GJFYX5HU.js} +13 -13
- package/dist/{product-type-create-RHG4KEAV.js → product-type-create-A7SUR2OX.js} +1 -1
- package/dist/{product-type-detail-3X7ZTZJN.js → product-type-detail-XJPSQDL2.js} +13 -13
- package/dist/{product-type-edit-CABB7R7Y.js → product-type-edit-DM4U2VB4.js} +1 -1
- package/dist/{product-type-metadata-6BKTQHQC.js → product-type-metadata-GKVLFBF6.js} +13 -13
- package/dist/{product-variant-detail-PQ4RKPZT.js → product-variant-detail-VCMC4BZP.js} +12 -12
- package/dist/{product-variant-edit-TLF475SH.js → product-variant-edit-QLDFN6LI.js} +12 -12
- package/dist/{product-variant-metadata-3M72B3PM.js → product-variant-metadata-VZZMPRRG.js} +13 -13
- package/dist/{profile-edit-HQTWYWZ7.js → profile-edit-H5QZ66PF.js} +1 -1
- package/dist/{promotion-add-campaign-S3JJSFHT.js → promotion-add-campaign-V3RJ634F.js} +2 -2
- package/dist/{promotion-create-OKZBUSJD.js → promotion-create-POBB7B23.js} +16 -16
- package/dist/{promotion-detail-MMNEDRXD.js → promotion-detail-NSOGXQAY.js} +14 -14
- package/dist/{promotion-edit-details-TKRC5HES.js → promotion-edit-details-NWOBD3YD.js} +1 -1
- package/dist/{promotion-list-DHWW7FTI.js → promotion-list-7C3SQCSO.js} +4 -4
- package/dist/{refund-reason-create-N4DZ4UHS.js → refund-reason-create-HPLJOL6S.js} +12 -12
- package/dist/{refund-reason-edit-OAHRDKXW.js → refund-reason-edit-JI4U4RWO.js} +12 -12
- package/dist/{refund-reason-list-3BTQCIYE.js → refund-reason-list-SWU4B2ED.js} +11 -11
- package/dist/{region-add-countries-COXN4LP3.js → region-add-countries-5I2UDAJU.js} +1 -1
- package/dist/{region-create-P66Q65XY.js → region-create-SIB6WZPV.js} +1 -1
- package/dist/{region-edit-XFE54SAO.js → region-edit-YQZCZIX3.js} +1 -1
- package/dist/{region-metadata-BJSTTZFL.js → region-metadata-LDWMTB7G.js} +13 -13
- package/dist/{reservation-create-TXYAY3KF.js → reservation-create-NPR2FMPA.js} +3 -3
- package/dist/{reservation-detail-CEENG76D.js → reservation-detail-BLPISKPA.js} +12 -12
- package/dist/{reservation-list-SORWYHI4.js → reservation-list-3OKWSHWH.js} +3 -3
- package/dist/{reservation-metadata-G3QBZF4K.js → reservation-metadata-AZ265HZI.js} +13 -13
- package/dist/{reset-password-QGQ4GAHK.js → reset-password-6CAYNSJ6.js} +1 -1
- package/dist/{return-reason-create-KED7446I.js → return-reason-create-G7ON7U3A.js} +1 -1
- package/dist/{return-reason-edit-57EU3XSE.js → return-reason-edit-77RVRFF6.js} +1 -1
- package/dist/{sales-channel-add-products-3VZ5SLLP.js → sales-channel-add-products-S47CQCJF.js} +13 -13
- package/dist/{sales-channel-create-XBR3QESI.js → sales-channel-create-TAKKGGK3.js} +3 -3
- package/dist/{sales-channel-detail-PHRSKCNM.js → sales-channel-detail-6JPHP4FZ.js} +13 -13
- package/dist/{sales-channel-edit-ILBZBQP4.js → sales-channel-edit-HEESIKZH.js} +3 -3
- package/dist/{sales-channel-list-E647FXSZ.js → sales-channel-list-D673ONK2.js} +15 -14
- package/dist/{sales-channel-metadata-HVPGS756.js → sales-channel-metadata-OY47MCFI.js} +13 -13
- package/dist/{shipping-option-type-create-3ZKT7WAC.js → shipping-option-type-create-H2YRDETZ.js} +12 -12
- package/dist/{shipping-option-type-detail-IYXWAK7F.js → shipping-option-type-detail-NVSXILP4.js} +11 -11
- package/dist/{shipping-option-type-edit-QRXYNNRW.js → shipping-option-type-edit-KBPDYAUJ.js} +12 -12
- package/dist/{shipping-option-type-list-MLIDCA3L.js → shipping-option-type-list-OUKJZJ6R.js} +11 -11
- package/dist/{shipping-profile-create-UJNCCKKK.js → shipping-profile-create-JYRXTOBF.js} +1 -1
- package/dist/{shipping-profile-metadata-T4HPNTLH.js → shipping-profile-metadata-CQCDC45M.js} +15 -15
- package/dist/{store-address-edit-PKIBRFH4.js → store-address-edit-SWLACMPC.js} +1 -1
- package/dist/{store-bulk-edit-BNF3HH5K.js → store-bulk-edit-DXWHZMGL.js} +2 -2
- package/dist/{store-closure-edit-OK7MTUHY.js → store-closure-edit-Y3FOCDRX.js} +1 -1
- package/dist/{store-create-KFLNOD73.js → store-create-MVHUY3I3.js} +13 -13
- package/dist/{store-details-E347PHAN.js → store-details-V3NMV665.js} +14 -14
- package/dist/{store-edit-Y6NLBIOP.js → store-edit-6CC2GBFY.js} +4 -4
- package/dist/{store-list-S2L44OLB.js → store-list-WV6XHGLU.js} +13 -13
- package/dist/{store-member-invite-J5XSPWMW.js → store-member-invite-7YIXFC56.js} +1 -1
- package/dist/{store-payment-details-edit-HOGHZMZC.js → store-payment-details-edit-DF2WURRI.js} +1 -1
- package/dist/{store-professional-details-edit-DPJ4ZFDR.js → store-professional-details-edit-FPOLORSE.js} +1 -1
- package/dist/{tax-region-create-MIDQXQS4.js → tax-region-create-RGE5ZIBR.js} +13 -13
- package/dist/{tax-region-detail-AC7B3G57.js → tax-region-detail-OKEK6WNJ.js} +13 -13
- package/dist/{tax-region-edit-5CORTHTC.js → tax-region-edit-QQ3LB74P.js} +12 -12
- package/dist/{tax-region-metadata-QQZIQPAD.js → tax-region-metadata-GPTD6KZB.js} +13 -13
- package/dist/{tax-region-province-create-OVLIZPNP.js → tax-region-province-create-SEPY4OAZ.js} +1 -1
- package/dist/{tax-region-province-detail-2MGX7LEO.js → tax-region-province-detail-WHO3RLUX.js} +13 -13
- package/dist/{tax-region-tax-override-create-IONGD4TG.js → tax-region-tax-override-create-223MPYUG.js} +15 -15
- package/dist/{tax-region-tax-override-edit-RIT6YRVK.js → tax-region-tax-override-edit-WFOXP6A7.js} +15 -15
- package/dist/{tax-region-tax-rate-create-KDN6G52Y.js → tax-region-tax-rate-create-ZITIAU3K.js} +1 -1
- package/dist/{tax-region-tax-rate-edit-D4BFDDJ7.js → tax-region-tax-rate-edit-RQLUPHD4.js} +1 -1
- package/dist/{user-detail-MMVBN3AE.js → user-detail-6CCQQPFR.js} +1 -1
- package/dist/{user-edit-MXS2DV37.js → user-edit-DVIMNODF.js} +1 -1
- package/dist/{user-invite-HLZJ7FST.js → user-invite-NJZWT4M5.js} +1 -1
- package/dist/{user-metadata-OZLU3Y2X.js → user-metadata-A3JS6O4K.js} +13 -13
- package/package.json +1 -1
- package/dist/[id]-BAPEFPAO.js +0 -505
- package/dist/chunk-PT5PLV3N.js +0 -78
- package/dist/loader-OU7SKXOD.js +0 -28
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ProductMediaSection
|
|
3
|
+
} from "./chunk-AWLDIHXR.js";
|
|
1
4
|
import {
|
|
2
5
|
SectionRow
|
|
3
6
|
} from "./chunk-3XPXUIK3.js";
|
|
4
7
|
import {
|
|
5
|
-
useDataTableDateColumns
|
|
8
|
+
useDataTableDateColumns
|
|
9
|
+
} from "./chunk-UKLRBS4W.js";
|
|
10
|
+
import {
|
|
6
11
|
useDataTableDateFilters
|
|
7
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DGCPYCHU.js";
|
|
8
13
|
import {
|
|
9
14
|
PRODUCT_DETAIL_QUERY
|
|
10
15
|
} from "./chunk-GVEF6UDT.js";
|
|
@@ -26,16 +31,16 @@ import {
|
|
|
26
31
|
import {
|
|
27
32
|
useProductTag
|
|
28
33
|
} from "./chunk-LJDGVBOQ.js";
|
|
29
|
-
import {
|
|
30
|
-
useProductType
|
|
31
|
-
} from "./chunk-46M463BR.js";
|
|
32
34
|
import {
|
|
33
35
|
productAttributesQueryKeys,
|
|
34
36
|
useProductAttribute
|
|
35
37
|
} from "./chunk-533GMKEG.js";
|
|
38
|
+
import {
|
|
39
|
+
useProductType
|
|
40
|
+
} from "./chunk-46M463BR.js";
|
|
36
41
|
import {
|
|
37
42
|
useCollection
|
|
38
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-QKJGSZI2.js";
|
|
39
44
|
import {
|
|
40
45
|
useSeller
|
|
41
46
|
} from "./chunk-LEG67A2R.js";
|
|
@@ -44,7 +49,7 @@ import {
|
|
|
44
49
|
} from "./chunk-BDGZ4EQO.js";
|
|
45
50
|
import {
|
|
46
51
|
useProductCategory
|
|
47
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-KYFWVLWO.js";
|
|
48
53
|
import {
|
|
49
54
|
TwoColumnPageSkeleton
|
|
50
55
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -60,9 +65,8 @@ import {
|
|
|
60
65
|
useRejectProduct,
|
|
61
66
|
useRemoveAttributeFromProduct,
|
|
62
67
|
useRequestProductChanges,
|
|
63
|
-
useUpdateProduct,
|
|
64
68
|
variantsQueryKeys
|
|
65
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-M2E3PKA4.js";
|
|
66
70
|
import {
|
|
67
71
|
sdk
|
|
68
72
|
} from "./chunk-ZBWL72TB.js";
|
|
@@ -1177,210 +1181,30 @@ var ProductGeneralSection = ({
|
|
|
1177
1181
|
] });
|
|
1178
1182
|
};
|
|
1179
1183
|
|
|
1180
|
-
// src/pages/products/product-detail/components/product-
|
|
1181
|
-
import { PencilSquare as PencilSquare3
|
|
1182
|
-
import {
|
|
1183
|
-
Button as Button3,
|
|
1184
|
-
Checkbox,
|
|
1185
|
-
CommandBar,
|
|
1186
|
-
Container as Container5,
|
|
1187
|
-
Heading as Heading5,
|
|
1188
|
-
Text as Text4,
|
|
1189
|
-
Tooltip as Tooltip2,
|
|
1190
|
-
clx,
|
|
1191
|
-
usePrompt as usePrompt3
|
|
1192
|
-
} from "@medusajs/ui";
|
|
1193
|
-
import { useState as useState4 } from "react";
|
|
1184
|
+
// src/pages/products/product-detail/components/product-organization-section/product-organization-section.tsx
|
|
1185
|
+
import { PencilSquare as PencilSquare3 } from "@medusajs/icons";
|
|
1186
|
+
import { Badge as Badge2, Container as Container5, Heading as Heading5, Tooltip as Tooltip2 } from "@medusajs/ui";
|
|
1194
1187
|
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
1195
1188
|
import { Link } from "react-router-dom";
|
|
1196
1189
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1197
|
-
var ProductMediaSection = ({
|
|
1198
|
-
product
|
|
1199
|
-
}) => {
|
|
1200
|
-
const { t } = useTranslation6();
|
|
1201
|
-
const prompt = usePrompt3();
|
|
1202
|
-
const [selection, setSelection] = useState4({});
|
|
1203
|
-
const media = getMedia(product);
|
|
1204
|
-
const handleCheckedChange = (id) => {
|
|
1205
|
-
setSelection((prev) => {
|
|
1206
|
-
if (prev[id]) {
|
|
1207
|
-
const { [id]: _, ...rest } = prev;
|
|
1208
|
-
return rest;
|
|
1209
|
-
} else {
|
|
1210
|
-
return { ...prev, [id]: true };
|
|
1211
|
-
}
|
|
1212
|
-
});
|
|
1213
|
-
};
|
|
1214
|
-
const { mutateAsync } = useUpdateProduct(product.id);
|
|
1215
|
-
const handleDelete = async () => {
|
|
1216
|
-
const ids = Object.keys(selection);
|
|
1217
|
-
const includingThumbnail = ids.some(
|
|
1218
|
-
(id) => media.find((m) => m.id === id)?.isThumbnail
|
|
1219
|
-
);
|
|
1220
|
-
const res = await prompt({
|
|
1221
|
-
title: t("general.areYouSure"),
|
|
1222
|
-
description: includingThumbnail ? t("products.media.deleteWarningWithThumbnail", {
|
|
1223
|
-
count: ids.length
|
|
1224
|
-
}) : t("products.media.deleteWarning", {
|
|
1225
|
-
count: ids.length
|
|
1226
|
-
}),
|
|
1227
|
-
confirmText: t("actions.delete"),
|
|
1228
|
-
cancelText: t("actions.cancel")
|
|
1229
|
-
});
|
|
1230
|
-
if (!res) {
|
|
1231
|
-
return;
|
|
1232
|
-
}
|
|
1233
|
-
const mediaToKeep = product.images?.filter((i) => !ids.includes(i.id)).map((i) => ({ url: i.url }));
|
|
1234
|
-
await mutateAsync(
|
|
1235
|
-
{
|
|
1236
|
-
images: mediaToKeep,
|
|
1237
|
-
thumbnail: includingThumbnail ? "" : void 0
|
|
1238
|
-
},
|
|
1239
|
-
{
|
|
1240
|
-
onSuccess: () => {
|
|
1241
|
-
setSelection({});
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
);
|
|
1245
|
-
};
|
|
1246
|
-
return /* @__PURE__ */ jsxs6(Container5, { className: "divide-y p-0", "data-testid": "product-media-section", children: [
|
|
1247
|
-
/* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "product-media-header", children: [
|
|
1248
|
-
/* @__PURE__ */ jsx6(Heading5, { level: "h2", "data-testid": "product-media-title", children: t("products.media.label") }),
|
|
1249
|
-
/* @__PURE__ */ jsx6(
|
|
1250
|
-
ActionMenu,
|
|
1251
|
-
{
|
|
1252
|
-
groups: [
|
|
1253
|
-
{
|
|
1254
|
-
actions: [
|
|
1255
|
-
{
|
|
1256
|
-
label: t("actions.edit"),
|
|
1257
|
-
to: "media?view=edit",
|
|
1258
|
-
icon: /* @__PURE__ */ jsx6(PencilSquare3, {})
|
|
1259
|
-
}
|
|
1260
|
-
]
|
|
1261
|
-
}
|
|
1262
|
-
],
|
|
1263
|
-
"data-testid": "product-media-action-menu"
|
|
1264
|
-
}
|
|
1265
|
-
)
|
|
1266
|
-
] }),
|
|
1267
|
-
media.length > 0 ? /* @__PURE__ */ jsx6("div", { className: "grid grid-cols-[repeat(auto-fill,minmax(96px,1fr))] gap-4 px-6 py-4", "data-testid": "product-media-grid", children: media.map((i, index) => {
|
|
1268
|
-
const isSelected = selection[i.id];
|
|
1269
|
-
return /* @__PURE__ */ jsxs6(
|
|
1270
|
-
"div",
|
|
1271
|
-
{
|
|
1272
|
-
className: "shadow-elevation-card-rest hover:shadow-elevation-card-hover transition-fg group relative aspect-square size-full cursor-pointer overflow-hidden rounded-[8px]",
|
|
1273
|
-
"data-testid": `product-media-item-${i.id}`,
|
|
1274
|
-
children: [
|
|
1275
|
-
/* @__PURE__ */ jsx6(
|
|
1276
|
-
"div",
|
|
1277
|
-
{
|
|
1278
|
-
className: clx(
|
|
1279
|
-
"transition-fg invisible absolute right-2 top-2 opacity-0 group-hover:visible group-hover:opacity-100",
|
|
1280
|
-
{
|
|
1281
|
-
"visible opacity-100": isSelected
|
|
1282
|
-
}
|
|
1283
|
-
),
|
|
1284
|
-
"data-testid": `product-media-checkbox-container-${i.id}`,
|
|
1285
|
-
children: /* @__PURE__ */ jsx6(
|
|
1286
|
-
Checkbox,
|
|
1287
|
-
{
|
|
1288
|
-
checked: selection[i.id] || false,
|
|
1289
|
-
onCheckedChange: () => handleCheckedChange(i.id),
|
|
1290
|
-
"data-testid": `product-media-checkbox-${i.id}`
|
|
1291
|
-
}
|
|
1292
|
-
)
|
|
1293
|
-
}
|
|
1294
|
-
),
|
|
1295
|
-
i.isThumbnail && /* @__PURE__ */ jsx6("div", { className: "absolute left-2 top-2", "data-testid": `product-media-thumbnail-badge-${i.id}`, children: /* @__PURE__ */ jsx6(Tooltip2, { content: t("fields.thumbnail"), children: /* @__PURE__ */ jsx6(ThumbnailBadge, {}) }) }),
|
|
1296
|
-
/* @__PURE__ */ jsx6(Link, { to: `media`, state: { curr: index }, "data-testid": `product-media-link-${i.id}`, children: /* @__PURE__ */ jsx6(
|
|
1297
|
-
"img",
|
|
1298
|
-
{
|
|
1299
|
-
src: i.url,
|
|
1300
|
-
alt: product.title,
|
|
1301
|
-
className: "size-full object-cover",
|
|
1302
|
-
"data-testid": `product-media-image-${i.id}`
|
|
1303
|
-
}
|
|
1304
|
-
) })
|
|
1305
|
-
]
|
|
1306
|
-
},
|
|
1307
|
-
i.id
|
|
1308
|
-
);
|
|
1309
|
-
}) }) : /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center gap-y-4 pb-8 pt-6", "data-testid": "product-media-empty-state", children: [
|
|
1310
|
-
/* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center", children: [
|
|
1311
|
-
/* @__PURE__ */ jsx6(
|
|
1312
|
-
Text4,
|
|
1313
|
-
{
|
|
1314
|
-
size: "small",
|
|
1315
|
-
leading: "compact",
|
|
1316
|
-
weight: "plus",
|
|
1317
|
-
className: "text-ui-fg-subtle",
|
|
1318
|
-
"data-testid": "product-media-empty-state-header",
|
|
1319
|
-
children: t("products.media.emptyState.header")
|
|
1320
|
-
}
|
|
1321
|
-
),
|
|
1322
|
-
/* @__PURE__ */ jsx6(Text4, { size: "small", className: "text-ui-fg-muted", "data-testid": "product-media-empty-state-description", children: t("products.media.emptyState.description") })
|
|
1323
|
-
] }),
|
|
1324
|
-
/* @__PURE__ */ jsx6(Button3, { size: "small", variant: "secondary", asChild: true, "data-testid": "product-media-empty-state-button", children: /* @__PURE__ */ jsx6(Link, { to: "media?view=edit", "data-testid": "product-media-empty-state-link", children: t("products.media.emptyState.action") }) })
|
|
1325
|
-
] }),
|
|
1326
|
-
/* @__PURE__ */ jsx6(CommandBar, { open: !!Object.keys(selection).length, "data-testid": "product-media-command-bar", children: /* @__PURE__ */ jsxs6(CommandBar.Bar, { "data-testid": "product-media-command-bar-bar", children: [
|
|
1327
|
-
/* @__PURE__ */ jsx6(CommandBar.Value, { "data-testid": "product-media-command-bar-value", children: t("general.countSelected", {
|
|
1328
|
-
count: Object.keys(selection).length
|
|
1329
|
-
}) }),
|
|
1330
|
-
/* @__PURE__ */ jsx6(CommandBar.Seperator, { "data-testid": "product-media-command-bar-separator" }),
|
|
1331
|
-
/* @__PURE__ */ jsx6(
|
|
1332
|
-
CommandBar.Command,
|
|
1333
|
-
{
|
|
1334
|
-
action: handleDelete,
|
|
1335
|
-
label: t("actions.delete"),
|
|
1336
|
-
shortcut: "d",
|
|
1337
|
-
"data-testid": "product-media-command-bar-delete"
|
|
1338
|
-
}
|
|
1339
|
-
)
|
|
1340
|
-
] }) })
|
|
1341
|
-
] });
|
|
1342
|
-
};
|
|
1343
|
-
var getMedia = (product) => {
|
|
1344
|
-
const { images = [], thumbnail } = product;
|
|
1345
|
-
const media = images.map((image) => ({
|
|
1346
|
-
id: image.id,
|
|
1347
|
-
url: image.url,
|
|
1348
|
-
isThumbnail: image.url === thumbnail
|
|
1349
|
-
}));
|
|
1350
|
-
if (thumbnail && !media.some((mediaItem) => mediaItem.url === thumbnail)) {
|
|
1351
|
-
media.unshift({
|
|
1352
|
-
id: "img_thumbnail",
|
|
1353
|
-
url: thumbnail,
|
|
1354
|
-
isThumbnail: true
|
|
1355
|
-
});
|
|
1356
|
-
}
|
|
1357
|
-
return media;
|
|
1358
|
-
};
|
|
1359
|
-
|
|
1360
|
-
// src/pages/products/product-detail/components/product-organization-section/product-organization-section.tsx
|
|
1361
|
-
import { PencilSquare as PencilSquare4 } from "@medusajs/icons";
|
|
1362
|
-
import { Badge as Badge2, Container as Container6, Heading as Heading6, Tooltip as Tooltip3 } from "@medusajs/ui";
|
|
1363
|
-
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
1364
|
-
import { Link as Link2 } from "react-router-dom";
|
|
1365
|
-
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1366
1190
|
var ProductOrganizationSection = ({
|
|
1367
1191
|
product
|
|
1368
1192
|
}) => {
|
|
1369
|
-
const { t } =
|
|
1370
|
-
return /* @__PURE__ */
|
|
1371
|
-
|
|
1193
|
+
const { t } = useTranslation6();
|
|
1194
|
+
return /* @__PURE__ */ jsxs6(
|
|
1195
|
+
Container5,
|
|
1372
1196
|
{
|
|
1373
1197
|
className: "divide-y p-0",
|
|
1374
1198
|
"data-testid": "product-organization-section",
|
|
1375
1199
|
children: [
|
|
1376
|
-
/* @__PURE__ */
|
|
1200
|
+
/* @__PURE__ */ jsxs6(
|
|
1377
1201
|
"div",
|
|
1378
1202
|
{
|
|
1379
1203
|
className: "flex items-center justify-between px-6 py-4",
|
|
1380
1204
|
"data-testid": "product-organization-header",
|
|
1381
1205
|
children: [
|
|
1382
|
-
/* @__PURE__ */
|
|
1383
|
-
/* @__PURE__ */
|
|
1206
|
+
/* @__PURE__ */ jsx6(Heading5, { level: "h2", "data-testid": "product-organization-title", children: t("products.organization.header") }),
|
|
1207
|
+
/* @__PURE__ */ jsx6(
|
|
1384
1208
|
ActionMenu,
|
|
1385
1209
|
{
|
|
1386
1210
|
groups: [
|
|
@@ -1389,7 +1213,7 @@ var ProductOrganizationSection = ({
|
|
|
1389
1213
|
{
|
|
1390
1214
|
label: t("actions.edit"),
|
|
1391
1215
|
to: "organization",
|
|
1392
|
-
icon: /* @__PURE__ */
|
|
1216
|
+
icon: /* @__PURE__ */ jsx6(PencilSquare3, {})
|
|
1393
1217
|
}
|
|
1394
1218
|
]
|
|
1395
1219
|
}
|
|
@@ -1400,11 +1224,11 @@ var ProductOrganizationSection = ({
|
|
|
1400
1224
|
]
|
|
1401
1225
|
}
|
|
1402
1226
|
),
|
|
1403
|
-
/* @__PURE__ */
|
|
1227
|
+
/* @__PURE__ */ jsx6(
|
|
1404
1228
|
SectionRow,
|
|
1405
1229
|
{
|
|
1406
1230
|
title: t("fields.tags"),
|
|
1407
|
-
value: product.tags?.length ? product.tags.map((tag) => /* @__PURE__ */
|
|
1231
|
+
value: product.tags?.length ? product.tags.map((tag) => /* @__PURE__ */ jsx6(
|
|
1408
1232
|
OrganizationTag,
|
|
1409
1233
|
{
|
|
1410
1234
|
label: tag.value,
|
|
@@ -1415,11 +1239,11 @@ var ProductOrganizationSection = ({
|
|
|
1415
1239
|
"data-testid": "product-tags-row"
|
|
1416
1240
|
}
|
|
1417
1241
|
),
|
|
1418
|
-
/* @__PURE__ */
|
|
1242
|
+
/* @__PURE__ */ jsx6(
|
|
1419
1243
|
SectionRow,
|
|
1420
1244
|
{
|
|
1421
1245
|
title: t("fields.type"),
|
|
1422
|
-
value: product.type ? /* @__PURE__ */
|
|
1246
|
+
value: product.type ? /* @__PURE__ */ jsx6(
|
|
1423
1247
|
OrganizationTag,
|
|
1424
1248
|
{
|
|
1425
1249
|
label: product.type.value,
|
|
@@ -1429,11 +1253,11 @@ var ProductOrganizationSection = ({
|
|
|
1429
1253
|
"data-testid": "product-type-row"
|
|
1430
1254
|
}
|
|
1431
1255
|
),
|
|
1432
|
-
/* @__PURE__ */
|
|
1256
|
+
/* @__PURE__ */ jsx6(
|
|
1433
1257
|
SectionRow,
|
|
1434
1258
|
{
|
|
1435
1259
|
title: t("fields.collection"),
|
|
1436
|
-
value: product.collection ? /* @__PURE__ */
|
|
1260
|
+
value: product.collection ? /* @__PURE__ */ jsx6(
|
|
1437
1261
|
OrganizationTag,
|
|
1438
1262
|
{
|
|
1439
1263
|
label: product.collection.title,
|
|
@@ -1443,11 +1267,11 @@ var ProductOrganizationSection = ({
|
|
|
1443
1267
|
"data-testid": "product-collection-row"
|
|
1444
1268
|
}
|
|
1445
1269
|
),
|
|
1446
|
-
/* @__PURE__ */
|
|
1270
|
+
/* @__PURE__ */ jsx6(
|
|
1447
1271
|
SectionRow,
|
|
1448
1272
|
{
|
|
1449
1273
|
title: t("fields.categories"),
|
|
1450
|
-
value: product.categories?.length ? product.categories.map((pcat) => /* @__PURE__ */
|
|
1274
|
+
value: product.categories?.length ? product.categories.map((pcat) => /* @__PURE__ */ jsx6(
|
|
1451
1275
|
OrganizationTag,
|
|
1452
1276
|
{
|
|
1453
1277
|
label: pcat.name,
|
|
@@ -1463,8 +1287,8 @@ var ProductOrganizationSection = ({
|
|
|
1463
1287
|
);
|
|
1464
1288
|
};
|
|
1465
1289
|
var OrganizationTag = ({ label, to }) => {
|
|
1466
|
-
return /* @__PURE__ */
|
|
1467
|
-
|
|
1290
|
+
return /* @__PURE__ */ jsx6(Tooltip2, { content: label, children: /* @__PURE__ */ jsx6(Badge2, { size: "2xsmall", className: "block w-fit truncate", asChild: true, children: /* @__PURE__ */ jsx6(
|
|
1291
|
+
Link,
|
|
1468
1292
|
{
|
|
1469
1293
|
to,
|
|
1470
1294
|
"data-testid": `organization-tag-${label.toLowerCase().replace(/\s+/g, "-")}`,
|
|
@@ -1475,26 +1299,26 @@ var OrganizationTag = ({ label, to }) => {
|
|
|
1475
1299
|
|
|
1476
1300
|
// src/pages/products/product-detail/components/product-variant-section/product-variant-section.tsx
|
|
1477
1301
|
import { useCallback, useMemo as useMemo2 } from "react";
|
|
1478
|
-
import { PencilSquare as
|
|
1302
|
+
import { PencilSquare as PencilSquare4, Trash as Trash3 } from "@medusajs/icons";
|
|
1479
1303
|
import {
|
|
1480
1304
|
Badge as Badge3,
|
|
1481
|
-
Button as
|
|
1482
|
-
Container as
|
|
1305
|
+
Button as Button3,
|
|
1306
|
+
Container as Container6,
|
|
1483
1307
|
createDataTableColumnHelper,
|
|
1484
|
-
Heading as
|
|
1485
|
-
Tooltip as
|
|
1486
|
-
usePrompt as
|
|
1308
|
+
Heading as Heading6,
|
|
1309
|
+
Tooltip as Tooltip3,
|
|
1310
|
+
usePrompt as usePrompt3
|
|
1487
1311
|
} from "@medusajs/ui";
|
|
1488
1312
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
1489
|
-
import { useTranslation as
|
|
1490
|
-
import { Link as
|
|
1491
|
-
import { jsx as
|
|
1313
|
+
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
1314
|
+
import { Link as Link2, useNavigate as useNavigate2, useSearchParams } from "react-router-dom";
|
|
1315
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1492
1316
|
var PAGE_SIZE = 10;
|
|
1493
1317
|
var PREFIX = "pv";
|
|
1494
1318
|
var ProductVariantSection = ({
|
|
1495
1319
|
product
|
|
1496
1320
|
}) => {
|
|
1497
|
-
const { t } =
|
|
1321
|
+
const { t } = useTranslation7();
|
|
1498
1322
|
const { q, order, offset, created_at, updated_at } = useQueryParams(
|
|
1499
1323
|
["q", "order", "offset", "created_at", "updated_at"],
|
|
1500
1324
|
PREFIX
|
|
@@ -1519,21 +1343,21 @@ var ProductVariantSection = ({
|
|
|
1519
1343
|
if (isError) {
|
|
1520
1344
|
throw error;
|
|
1521
1345
|
}
|
|
1522
|
-
return /* @__PURE__ */
|
|
1523
|
-
/* @__PURE__ */
|
|
1524
|
-
/* @__PURE__ */
|
|
1525
|
-
/* @__PURE__ */
|
|
1526
|
-
|
|
1346
|
+
return /* @__PURE__ */ jsxs7(Container6, { className: "p-0", "data-testid": "product-variant-section", children: [
|
|
1347
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
1348
|
+
/* @__PURE__ */ jsx7(Heading6, { level: "h2", children: t("products.variants.header") }),
|
|
1349
|
+
/* @__PURE__ */ jsx7(
|
|
1350
|
+
Button3,
|
|
1527
1351
|
{
|
|
1528
1352
|
size: "small",
|
|
1529
1353
|
variant: "secondary",
|
|
1530
1354
|
asChild: true,
|
|
1531
1355
|
"data-testid": "product-variants-create-button",
|
|
1532
|
-
children: /* @__PURE__ */
|
|
1356
|
+
children: /* @__PURE__ */ jsx7(Link2, { to: "variants/create", children: t("actions.create") })
|
|
1533
1357
|
}
|
|
1534
1358
|
)
|
|
1535
1359
|
] }),
|
|
1536
|
-
/* @__PURE__ */
|
|
1360
|
+
/* @__PURE__ */ jsx7("div", { "data-testid": "product-variants-table-container", children: /* @__PURE__ */ jsx7(
|
|
1537
1361
|
DataTable,
|
|
1538
1362
|
{
|
|
1539
1363
|
data: variants,
|
|
@@ -1561,10 +1385,10 @@ var ProductVariantSection = ({
|
|
|
1561
1385
|
};
|
|
1562
1386
|
var columnHelper = createDataTableColumnHelper();
|
|
1563
1387
|
var useColumns = (product) => {
|
|
1564
|
-
const { t } =
|
|
1388
|
+
const { t } = useTranslation7();
|
|
1565
1389
|
const navigate = useNavigate2();
|
|
1566
1390
|
const { mutateAsync } = useDeleteVariantLazy(product.id);
|
|
1567
|
-
const prompt =
|
|
1391
|
+
const prompt = usePrompt3();
|
|
1568
1392
|
const [searchParams] = useSearchParams();
|
|
1569
1393
|
const tableSearchParams = useMemo2(() => {
|
|
1570
1394
|
const filtered = new URLSearchParams();
|
|
@@ -1607,14 +1431,14 @@ var useColumns = (product) => {
|
|
|
1607
1431
|
(opt) => opt.option?.title === attribute.name
|
|
1608
1432
|
);
|
|
1609
1433
|
if (!variantOpt?.value) {
|
|
1610
|
-
return /* @__PURE__ */
|
|
1434
|
+
return /* @__PURE__ */ jsx7("span", { className: "text-ui-fg-muted", children: "-" });
|
|
1611
1435
|
}
|
|
1612
|
-
return /* @__PURE__ */
|
|
1436
|
+
return /* @__PURE__ */ jsx7(
|
|
1613
1437
|
"div",
|
|
1614
1438
|
{
|
|
1615
1439
|
className: "flex flex-wrap items-center gap-1",
|
|
1616
1440
|
"data-testid": `product-variant-attribute-${attribute.id}-${row.original.id}`,
|
|
1617
|
-
children: /* @__PURE__ */
|
|
1441
|
+
children: /* @__PURE__ */ jsx7(Tooltip3, { content: variantOpt.value, children: /* @__PURE__ */ jsx7(
|
|
1618
1442
|
Badge3,
|
|
1619
1443
|
{
|
|
1620
1444
|
size: "2xsmall",
|
|
@@ -1635,7 +1459,7 @@ var useColumns = (product) => {
|
|
|
1635
1459
|
const variant = ctx.row.original;
|
|
1636
1460
|
const mainActions = [
|
|
1637
1461
|
{
|
|
1638
|
-
icon: /* @__PURE__ */
|
|
1462
|
+
icon: /* @__PURE__ */ jsx7(PencilSquare4, {}),
|
|
1639
1463
|
label: t("actions.edit"),
|
|
1640
1464
|
onClick: (row) => {
|
|
1641
1465
|
navigate(
|
|
@@ -1651,7 +1475,7 @@ var useColumns = (product) => {
|
|
|
1651
1475
|
];
|
|
1652
1476
|
const secondaryActions = [
|
|
1653
1477
|
{
|
|
1654
|
-
icon: /* @__PURE__ */
|
|
1478
|
+
icon: /* @__PURE__ */ jsx7(Trash3, {}),
|
|
1655
1479
|
label: t("actions.delete"),
|
|
1656
1480
|
onClick: () => handleDelete(variant.id, variant.title)
|
|
1657
1481
|
}
|
|
@@ -1672,7 +1496,7 @@ var useColumns = (product) => {
|
|
|
1672
1496
|
header: t("fields.sku"),
|
|
1673
1497
|
cell: ({ getValue }) => {
|
|
1674
1498
|
const value = getValue();
|
|
1675
|
-
return value ? value : /* @__PURE__ */
|
|
1499
|
+
return value ? value : /* @__PURE__ */ jsx7("span", { className: "text-ui-fg-muted", children: "-" });
|
|
1676
1500
|
}
|
|
1677
1501
|
}),
|
|
1678
1502
|
...attributeColumns,
|
|
@@ -1693,7 +1517,7 @@ var useFilters = () => {
|
|
|
1693
1517
|
};
|
|
1694
1518
|
|
|
1695
1519
|
// src/pages/products/product-detail/product-detail.tsx
|
|
1696
|
-
import { jsx as
|
|
1520
|
+
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1697
1521
|
var Root = ({ children }) => {
|
|
1698
1522
|
const initialData = useLoaderData();
|
|
1699
1523
|
const { id } = useParams();
|
|
@@ -1707,7 +1531,7 @@ var Root = ({ children }) => {
|
|
|
1707
1531
|
});
|
|
1708
1532
|
const product = rawProduct;
|
|
1709
1533
|
if (isLoading || !product) {
|
|
1710
|
-
return /* @__PURE__ */
|
|
1534
|
+
return /* @__PURE__ */ jsx8(
|
|
1711
1535
|
TwoColumnPageSkeleton,
|
|
1712
1536
|
{
|
|
1713
1537
|
mainSections: 4,
|
|
@@ -1720,7 +1544,7 @@ var Root = ({ children }) => {
|
|
|
1720
1544
|
if (isError) {
|
|
1721
1545
|
throw error;
|
|
1722
1546
|
}
|
|
1723
|
-
return Children.count(children) > 0 ? /* @__PURE__ */
|
|
1547
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx8(
|
|
1724
1548
|
TwoColumnPage,
|
|
1725
1549
|
{
|
|
1726
1550
|
data: product,
|
|
@@ -1729,7 +1553,7 @@ var Root = ({ children }) => {
|
|
|
1729
1553
|
"data-testid": "product-detail-page",
|
|
1730
1554
|
children
|
|
1731
1555
|
}
|
|
1732
|
-
) : /* @__PURE__ */
|
|
1556
|
+
) : /* @__PURE__ */ jsxs8(
|
|
1733
1557
|
TwoColumnPage,
|
|
1734
1558
|
{
|
|
1735
1559
|
data: product,
|
|
@@ -1737,16 +1561,16 @@ var Root = ({ children }) => {
|
|
|
1737
1561
|
showMetadata: true,
|
|
1738
1562
|
"data-testid": "product-detail-page",
|
|
1739
1563
|
children: [
|
|
1740
|
-
/* @__PURE__ */
|
|
1741
|
-
/* @__PURE__ */
|
|
1742
|
-
/* @__PURE__ */
|
|
1743
|
-
/* @__PURE__ */
|
|
1744
|
-
/* @__PURE__ */
|
|
1745
|
-
/* @__PURE__ */
|
|
1564
|
+
/* @__PURE__ */ jsxs8(TwoColumnPage.Main, { "data-testid": "product-detail-main", children: [
|
|
1565
|
+
/* @__PURE__ */ jsx8(ProductActiveRequestSection, { product }),
|
|
1566
|
+
/* @__PURE__ */ jsx8(ProductActiveEditSection, { product }),
|
|
1567
|
+
/* @__PURE__ */ jsx8(ProductGeneralSection, { product }),
|
|
1568
|
+
/* @__PURE__ */ jsx8(ProductMediaSection, { product }),
|
|
1569
|
+
/* @__PURE__ */ jsx8(ProductVariantSection, { product })
|
|
1746
1570
|
] }),
|
|
1747
|
-
/* @__PURE__ */
|
|
1748
|
-
/* @__PURE__ */
|
|
1749
|
-
/* @__PURE__ */
|
|
1571
|
+
/* @__PURE__ */ jsxs8(TwoColumnPage.Sidebar, { "data-testid": "product-detail-sidebar", children: [
|
|
1572
|
+
/* @__PURE__ */ jsx8(ProductOrganizationSection, { product }),
|
|
1573
|
+
/* @__PURE__ */ jsx8(ProductAttributeSection, { product })
|
|
1750
1574
|
] })
|
|
1751
1575
|
]
|
|
1752
1576
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ShippingOptionPriceProvider,
|
|
5
5
|
buildShippingOptionPriceRules,
|
|
6
6
|
useShippingOptionPriceColumns
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GQUGCSJV.js";
|
|
8
8
|
import {
|
|
9
9
|
CONDITIONAL_PRICES_STACKED_MODAL_ID,
|
|
10
10
|
ShippingOptionPriceType
|
|
@@ -25,13 +25,13 @@ import {
|
|
|
25
25
|
TabbedForm,
|
|
26
26
|
defineTabMeta,
|
|
27
27
|
useTabbedForm
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FREUYHMS.js";
|
|
29
29
|
import {
|
|
30
30
|
SwitchBox
|
|
31
31
|
} from "./chunk-2EME4AWX.js";
|
|
32
32
|
import {
|
|
33
33
|
DataGrid
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HHW4PPNH.js";
|
|
35
35
|
import {
|
|
36
36
|
RouteFocusModal,
|
|
37
37
|
StackedFocusModal,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
useSalesChannelTableEmptyState,
|
|
4
4
|
useSalesChannelTableFilters,
|
|
5
5
|
useSalesChannelTableQuery
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LEHS6RED.js";
|
|
7
7
|
import {
|
|
8
8
|
SingleColumnPage
|
|
9
9
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
useDeleteSalesChannelLazy,
|
|
18
18
|
useSalesChannels
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OKWGPKVK.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/sales-channels/sales-channel-list/sales-channel-list.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-OMBP3YSV.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RZ5SFALB.js";
|
|
10
10
|
import {
|
|
11
11
|
useProductTableQuery
|
|
12
12
|
} from "./chunk-LYZDVZWA.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-INNFZYX2.js";
|
|
29
29
|
import {
|
|
30
30
|
useProducts
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-M2E3PKA4.js";
|
|
32
32
|
|
|
33
33
|
// src/pages/product-tags/product-tag-detail/product-tag-detail.tsx
|
|
34
34
|
import { Children } from "react";
|
|
@@ -135,6 +135,7 @@ var ChipInput = forwardRef(
|
|
|
135
135
|
/* @__PURE__ */ jsx(
|
|
136
136
|
"input",
|
|
137
137
|
{
|
|
138
|
+
"aria-label": "Chip input",
|
|
138
139
|
className: clx(
|
|
139
140
|
"caret-ui-fg-base text-ui-fg-base txt-compact-small flex-1 appearance-none bg-transparent",
|
|
140
141
|
"disabled:text-ui-fg-disabled disabled:cursor-not-allowed",
|
|
@@ -2,9 +2,11 @@ import {
|
|
|
2
2
|
DataTableStatusCell
|
|
3
3
|
} from "./chunk-MDABSESI.js";
|
|
4
4
|
import {
|
|
5
|
-
useDataTableDateColumns
|
|
5
|
+
useDataTableDateColumns
|
|
6
|
+
} from "./chunk-UKLRBS4W.js";
|
|
7
|
+
import {
|
|
6
8
|
useDataTableDateFilters
|
|
7
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DGCPYCHU.js";
|
|
8
10
|
import {
|
|
9
11
|
useQueryParams
|
|
10
12
|
} from "./chunk-THHRRYRS.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteProductCategoryAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WJGABDWC.js";
|
|
4
4
|
import {
|
|
5
5
|
TextCell,
|
|
6
6
|
TextHeader
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-BDGZ4EQO.js";
|
|
29
29
|
import {
|
|
30
30
|
useProductCategories
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KYFWVLWO.js";
|
|
32
32
|
|
|
33
33
|
// src/pages/categories/category-list/category-list.tsx
|
|
34
34
|
import { Children as Children3 } from "react";
|