@mercurjs/admin 2.2.0-canary.38 → 2.2.0-canary.40
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-FWYK3JCR.js → add-campaign-promotions-QK73ARX4.js} +4 -4
- package/dist/{adjust-inventory-TECW4NNX.js → adjust-inventory-X45NEQFK.js} +1 -1
- package/dist/{api-key-management-detail-2LYSINFY.js → api-key-management-detail-HKNZPPR2.js} +3 -4
- package/dist/{api-key-management-list-SXHZJUJB.js → api-key-management-list-5RXBJ24C.js} +2 -2
- package/dist/{api-key-management-sales-channels-EEM7UDTZ.js → api-key-management-sales-channels-4GLVMHU6.js} +1 -2
- package/dist/{attribute-create-HSR7XVKG.js → attribute-create-VGL7LGIH.js} +10 -19
- package/dist/{attribute-detail-7EBAQ26V.js → attribute-detail-EKDAYT4B.js} +15 -6
- package/dist/{attribute-edit-EQH3YMGW.js → attribute-edit-OBNLNOJS.js} +4 -4
- package/dist/{attribute-edit-possible-value-X7XTAVVL.js → attribute-edit-possible-value-QDFVWLA3.js} +2 -2
- package/dist/{attribute-edit-ranking-CHWUVK5Z.js → attribute-edit-ranking-YGR3KCSC.js} +1 -1
- package/dist/{attribute-list-G73VHMFA.js → attribute-list-6A72PBIY.js} +3 -3
- package/dist/{breadcrumb-DZTALOFP.js → breadcrumb-GHBR74WM.js} +2 -2
- package/dist/{breadcrumb-EPNBJF4V.js → breadcrumb-IEEJTH47.js} +1 -1
- package/dist/{campaign-detail-I6KGCHUL.js → campaign-detail-RNB3FEJZ.js} +6 -6
- package/dist/{campaign-list-FFGRXEVJ.js → campaign-list-CDV4GWWD.js} +2 -2
- package/dist/{categories-metadata-SWFS4FL4.js → categories-metadata-4LXL2PWA.js} +2 -2
- package/dist/{category-detail-ZEOXQF7F.js → category-detail-557376TZ.js} +7 -7
- package/dist/{category-list-7ILXI55P.js → category-list-XKRI24VN.js} +2 -2
- package/dist/{category-products-UFKHB7YL.js → category-products-44PCDDNN.js} +6 -6
- package/dist/{chunk-S22SK4KO.js → chunk-25U23TXK.js} +1 -1
- package/dist/{chunk-DI2KBXVH.js → chunk-2Z2M5K5A.js} +2 -2
- package/dist/{chunk-CIKPTKSX.js → chunk-3BTRS4AA.js} +2 -2
- package/dist/{chunk-P4LTLPTK.js → chunk-4346EIRG.js} +1 -1
- package/dist/{chunk-MYJJMHR5.js → chunk-4BPQNCF5.js} +1 -1
- package/dist/{chunk-CB7DBYH4.js → chunk-4C7L7TJT.js} +1 -13
- package/dist/{chunk-5K5VNKSE.js → chunk-56UFDHNO.js} +1 -1
- package/dist/{chunk-5GVJXMOU.js → chunk-5ACJR6WB.js} +2 -2
- package/dist/{chunk-I3ARNGRC.js → chunk-65YE4SVL.js} +1 -1
- package/dist/{chunk-2YAVXVET.js → chunk-6BWJWA2F.js} +1 -1
- package/dist/{chunk-PWLDTJJX.js → chunk-6KWWJE5P.js} +4 -4
- package/dist/{chunk-HSL5IICN.js → chunk-6ZVV2XHU.js} +1 -1
- package/dist/{chunk-72SDBLWQ.js → chunk-7O7LYBHL.js} +4 -4
- package/dist/{chunk-RWAEZQCV.js → chunk-7OKYEA6I.js} +96 -6
- package/dist/{chunk-CE2WRTS7.js → chunk-AMZ2QSSI.js} +1 -1
- package/dist/{chunk-74WEDBZ7.js → chunk-BFUHW56P.js} +1 -1
- package/dist/{chunk-NS3GQ2J6.js → chunk-BILFRATX.js} +0 -9
- package/dist/{chunk-5NC6SI6J.js → chunk-BTJR5RSV.js} +3 -3
- package/dist/{chunk-TAM24IMD.js → chunk-CHMIK6PK.js} +2 -2
- package/dist/{chunk-WBSUHLO7.js → chunk-DI2M3J5Q.js} +1 -1
- package/dist/{chunk-QAWWIM4I.js → chunk-DPG4AWSG.js} +2 -2
- package/dist/{chunk-YZBEJ3CY.js → chunk-DSTHXHJ5.js} +1500 -1370
- package/dist/{chunk-RDUSAVT3.js → chunk-EGHDC6K6.js} +3 -3
- package/dist/{chunk-2DSCC2VR.js → chunk-EOSJHPHN.js} +1 -1
- package/dist/{chunk-PNZI5C5A.js → chunk-EX4AGESR.js} +71 -67
- package/dist/{chunk-VPPUFVFJ.js → chunk-F2SZ4LPF.js} +63 -6
- package/dist/{chunk-NKV5XPNS.js → chunk-FICKHCWL.js} +2 -3
- package/dist/{chunk-OI4DJXUL.js → chunk-FMJBQE56.js} +1 -1
- package/dist/{chunk-KRECA22N.js → chunk-GCU4LHGY.js} +3 -3
- package/dist/{chunk-ZHT3Y47H.js → chunk-GISFIAGQ.js} +2 -2
- package/dist/{chunk-DISTPZNS.js → chunk-GWSRWILC.js} +1 -1
- package/dist/{chunk-TG5BBZ3B.js → chunk-HI7NZVSJ.js} +1 -1
- package/dist/{offers-3HP7SICL.js → chunk-HQM7D57C.js} +126 -255
- package/dist/{chunk-O5MW4WPZ.js → chunk-HRDVGFS7.js} +1 -1
- package/dist/{chunk-4JUT54KO.js → chunk-HT34QVZR.js} +1 -1
- package/dist/{chunk-LRJNSCMR.js → chunk-IVBNI2QE.js} +3 -3
- package/dist/{chunk-S6A4FVM2.js → chunk-IWBQZK6E.js} +0 -4
- package/dist/{chunk-LBLWPBST.js → chunk-IZDTQFCP.js} +3 -1
- package/dist/{chunk-45O5MFCT.js → chunk-J3L2FUIA.js} +6 -5
- package/dist/{chunk-XFKDDRB6.js → chunk-JEDX4KBB.js} +1 -1
- package/dist/{chunk-7DHSWPU2.js → chunk-JSVYNNPF.js} +2 -4
- package/dist/{chunk-2S2SBRZP.js → chunk-JU2O2H7I.js} +7 -6
- package/dist/{chunk-LH4WPKYK.js → chunk-K7H77TA5.js} +1 -1
- package/dist/{chunk-HWWET5ZP.js → chunk-KFYTUQXT.js} +3 -3
- package/dist/{chunk-CYACZXMQ.js → chunk-KGA2XI6W.js} +2 -2
- package/dist/{chunk-FBDAKD4B.js → chunk-KT4DGVRQ.js} +2 -2
- package/dist/{chunk-VSKHV5QF.js → chunk-LQSSUC7W.js} +1 -1
- package/dist/{chunk-Y62TJJ3P.js → chunk-LVRCEGL7.js} +3 -3
- package/dist/{chunk-SIOKPEVN.js → chunk-ML7UVBKL.js} +1 -1
- package/dist/{chunk-6FNIEKSN.js → chunk-MOG7LT73.js} +4 -4
- package/dist/{chunk-23OLYWMR.js → chunk-MZOINNCV.js} +1 -1
- package/dist/{chunk-RNDDYLHV.js → chunk-NISAIYSW.js} +3 -3
- package/dist/{chunk-YNK25LVO.js → chunk-NWSKT55Z.js} +2 -2
- package/dist/{chunk-MANRAV52.js → chunk-NZVS6B77.js} +6 -9
- package/dist/{chunk-DWNUEPMI.js → chunk-OAN4CZKX.js} +3 -10
- package/dist/{chunk-O53E5U52.js → chunk-OYZIFLLC.js} +1 -1
- package/dist/{chunk-SLKOHWKT.js → chunk-PMVWIBTI.js} +1 -1
- package/dist/{chunk-CY263OE4.js → chunk-Q6QXFLUY.js} +1 -1
- package/dist/{chunk-ZPEMWHUW.js → chunk-RIO2IHPE.js} +1 -1
- package/dist/{chunk-5DQED4UT.js → chunk-TDJSZ73V.js} +1 -1
- package/dist/{chunk-LX5XLXPI.js → chunk-TH26CWVG.js} +1 -1
- package/dist/{chunk-EJYLSQVT.js → chunk-THPXRTE5.js} +2 -2
- package/dist/{chunk-QH34LF36.js → chunk-TZM63FZ4.js} +2 -2
- package/dist/{chunk-IRX6RBTE.js → chunk-UZ452ISX.js} +3 -3
- package/dist/{chunk-KC4J2WOM.js → chunk-VBKFXL2Q.js} +1 -1
- package/dist/{chunk-THNFAN23.js → chunk-VGXJXU7X.js} +1 -1
- package/dist/{chunk-Y5JQAKX7.js → chunk-VJ4LQXMA.js} +2 -2
- package/dist/{chunk-IQDZZ5EQ.js → chunk-VPYI4X6C.js} +1 -1
- package/dist/{chunk-3OD3YOA3.js → chunk-VYQ6ASFF.js} +2 -2
- package/dist/{chunk-GUDWUAMT.js → chunk-W3P3RP5R.js} +1 -1
- package/dist/{chunk-JUMT5GX7.js → chunk-W7CJSBDM.js} +3 -3
- package/dist/{chunk-WKTRJNOK.js → chunk-WKDHY2DJ.js} +1 -1
- package/dist/{chunk-AROCMF45.js → chunk-X5PMVI7H.js} +2 -2
- package/dist/{chunk-TBKNLE4M.js → chunk-YRUCTB6M.js} +1 -1
- package/dist/{chunk-7RWFRMQG.js → chunk-ZU74CNL4.js} +1 -1
- package/dist/{collection-add-products-MJYMPNLP.js → collection-add-products-JFUIZEZI.js} +6 -6
- package/dist/{collection-detail-C4ZCH55B.js → collection-detail-2WOLOVWF.js} +7 -7
- package/dist/{collection-list-4UX2LLQV.js → collection-list-B3Y2ALLZ.js} +7 -7
- package/dist/{collection-metadata-UEYHULPR.js → collection-metadata-SBK6SL4C.js} +2 -2
- package/dist/{commission-rule-commission-edit-EXLLNUKM.js → commission-rule-commission-edit-V5JVRNZN.js} +1 -3
- package/dist/{commission-rule-create-3MCNOSWN.js → commission-rule-create-EZ2C6AWK.js} +1 -3
- package/dist/{commission-rule-detail-RO5KXLGT.js → commission-rule-detail-ZQ3OHFA2.js} +3 -3
- package/dist/{commission-rule-edit-X45EQ6BK.js → commission-rule-edit-NQ5EYCGO.js} +1 -3
- package/dist/{commissions-list-MZY7KOP5.js → commissions-list-M5WLJD2P.js} +4 -4
- package/dist/{customer-detail-FRGVVWTZ.js → customer-detail-ZGDPIWA4.js} +5 -5
- package/dist/{customer-group-add-customers-QBRVKXGO.js → customer-group-add-customers-O6A5ZFPM.js} +1 -1
- package/dist/{customer-group-detail-KIC2TWZ3.js → customer-group-detail-FXUICFYC.js} +3 -3
- package/dist/{customer-group-list-BRH6SWRD.js → customer-group-list-R2DP2D42.js} +4 -4
- package/dist/{customer-group-metadata-S6NJRGYO.js → customer-group-metadata-JX7ZBXLJ.js} +2 -2
- package/dist/{customer-list-276YPXTE.js → customer-list-Z4DUQHCH.js} +2 -2
- package/dist/{customer-metadata-C66G3AS7.js → customer-metadata-JT5GGCRV.js} +2 -2
- package/dist/{customers-add-customer-group-C4Y6P45C.js → customers-add-customer-group-KX3XNNMU.js} +3 -3
- package/dist/{edit-inventory-item-IIJH26PK.js → edit-inventory-item-73BY4I5T.js} +1 -1
- package/dist/{edit-inventory-item-attributes-KTMOGG4V.js → edit-inventory-item-attributes-ZMB343AB.js} +1 -1
- package/dist/{edit-rules-WOQNXKZZ.js → edit-rules-4PPNBI7B.js} +2 -2
- package/dist/{global-commission-edit-7ZMMIV7B.js → global-commission-edit-TRSS5JBH.js} +1 -3
- package/dist/index.css +3 -0
- package/dist/index.js +185 -185
- package/dist/{inventory-create-M3YBQVNG.js → inventory-create-XQKH3HZQ.js} +2 -2
- package/dist/{inventory-detail-6PAVKSOK.js → inventory-detail-RZJNTJDF.js} +3 -3
- package/dist/{inventory-list-U4W4AP4E.js → inventory-list-SPSBDJXO.js} +2 -2
- package/dist/{inventory-metadata-OS6KHY52.js → inventory-metadata-W2E4KYG3.js} +2 -2
- package/dist/{inventory-stock-XQWWFVQ3.js → inventory-stock-D2BNT2UL.js} +5 -5
- package/dist/loader-HRFMJ5TM.js +36 -0
- package/dist/{loader-P2HT7LSL.js → loader-TIPLOZF7.js} +2 -2
- package/dist/{location-detail-LK736WHY.js → location-detail-CNETNX3M.js} +1 -1
- package/dist/{location-fulfillment-providers-Z3PR4MQI.js → location-fulfillment-providers-XXZ7AIUF.js} +5 -5
- package/dist/{location-list-HFVPD3JF.js → location-list-RHUT7IRA.js} +1 -1
- package/dist/{location-sales-channels-WZJ3JWQF.js → location-sales-channels-ZQBQ3VDH.js} +1 -2
- package/dist/{location-service-zone-create-U77V3ROT.js → location-service-zone-create-O6GYRZEE.js} +2 -2
- package/dist/{location-service-zone-manage-areas-FUUAAIDJ.js → location-service-zone-manage-areas-DBP3P27I.js} +2 -2
- package/dist/{location-service-zone-shipping-option-create-NFKZT2HM.js → location-service-zone-shipping-option-create-3PQ2EYD7.js} +1 -1
- package/dist/{login-IOW5R2ZZ.js → login-OKBXMSKY.js} +1 -1
- package/dist/{marketplace-add-currencies-KDNMN57C.js → marketplace-add-currencies-IPE5RJF6.js} +1 -1
- package/dist/{marketplace-detail-X5AQWO7P.js → marketplace-detail-IHGJXVZS.js} +3 -3
- package/dist/{marketplace-edit-26PFXTVD.js → marketplace-edit-WG6LMQ2P.js} +1 -1
- package/dist/{marketplace-metadata-RNNA4S3F.js → marketplace-metadata-STYABOTX.js} +2 -2
- package/dist/{offer-detail-page-4GNU35AH.js → offer-detail-page-2G5BUOIB.js} +134 -121
- package/dist/{offer-variant-detail-page-FFPV7N7Y.js → offer-variant-detail-page-V6TKNYZL.js} +5 -5
- package/dist/offers-2QQFKGAX.js +183 -0
- package/dist/{order-create-claim-MEXSDGHW.js → order-create-claim-Y7ESDXLI.js} +4 -4
- package/dist/{order-create-edit-M2F6CG3M.js → order-create-edit-6L5S7KQM.js} +4 -4
- package/dist/{order-create-exchange-HTWFKJOM.js → order-create-exchange-WHO3K2MW.js} +5 -5
- package/dist/{order-create-refund-DWIGXSYJ.js → order-create-refund-4ZO73NWS.js} +1 -1
- package/dist/{order-create-return-DDOYLDT7.js → order-create-return-R5WJBQ5W.js} +1 -1
- package/dist/{order-detail-QYZGM7OO.js → order-detail-QUGH2GXH.js} +3 -3
- package/dist/{order-edit-billing-address-JHJ7PCPC.js → order-edit-billing-address-BEOKFNLZ.js} +2 -2
- package/dist/{order-edit-email-OAU3YX45.js → order-edit-email-GLAQZCIT.js} +1 -1
- package/dist/{order-edit-shipping-address-RAO5IKGM.js → order-edit-shipping-address-PF54SFAG.js} +1 -1
- package/dist/{order-list-5PVFAFJT.js → order-list-GMUOLGZY.js} +6 -6
- package/dist/{order-metadata-IUBTCJQW.js → order-metadata-VQOA3DOL.js} +2 -2
- package/dist/{order-request-transfer-2J4CN5JP.js → order-request-transfer-BLQQ66IF.js} +1 -1
- package/dist/pages/index.d.ts +69 -69
- package/dist/pages/index.js +69 -68
- package/dist/{payout-list-SOWVPSFQ.js → payout-list-3GQJQSVU.js} +2 -2
- package/dist/{price-list-configuration-BIHWXMYS.js → price-list-configuration-BLHIGDSV.js} +4 -4
- package/dist/{price-list-create-XV6OY4A2.js → price-list-create-HKN72A6Q.js} +9 -9
- package/dist/{price-list-detail-IUZU5OA7.js → price-list-detail-6JAMNNJW.js} +7 -7
- package/dist/{price-list-list-A42VGE3L.js → price-list-list-HLWCOORV.js} +2 -2
- package/dist/{price-list-prices-add-KUBO4DCC.js → price-list-prices-add-ST6WNQNH.js} +7 -7
- package/dist/{price-list-prices-edit-PJ4CPB5I.js → price-list-prices-edit-ZQE3Z3NK.js} +1 -1
- package/dist/{product-add-existing-attributes-3BJ5KV2V.js → product-add-existing-attributes-J6MML6MT.js} +3 -3
- package/dist/{product-create-EGL6UJKX.js → product-create-B4DTC2OM.js} +5 -5
- package/dist/{product-create-attribute-DQ2RMDPZ.js → product-create-attribute-BP6NN4GO.js} +1 -1
- package/dist/{product-create-variant-TBJJ74ZR.js → product-create-variant-VDQQNHAK.js} +3 -3
- package/dist/{product-detail-SNS2DQ6Q.js → product-detail-MFJ3AIU6.js} +4 -4
- package/dist/{product-edit-attribute-BSPIDAZJ.js → product-edit-attribute-AXPTES26.js} +2 -2
- package/dist/{product-list-LGS3O2OJ.js → product-list-DMQSLXM4.js} +7 -7
- package/dist/{product-media-JKUDYI32.js → product-media-XRBLOV7D.js} +3 -3
- package/dist/{product-metadata-4O5YDITE.js → product-metadata-LOF6TSJQ.js} +2 -2
- package/dist/{product-organization-AIM3LNQ6.js → product-organization-ISVMEWQG.js} +1 -1
- package/dist/{product-sales-channels-73JEGJIY.js → product-sales-channels-C6UUHWGB.js} +1 -2
- package/dist/{product-tag-create-PSLHVOED.js → product-tag-create-AHG3Y4GE.js} +1 -1
- package/dist/{product-tag-detail-MI7B2MPH.js → product-tag-detail-4FL4CU5S.js} +9 -9
- package/dist/{product-tag-edit-7RYZN7ZP.js → product-tag-edit-ACHNVZZP.js} +1 -1
- package/dist/{product-tag-list-7CE4KJ3G.js → product-tag-list-YPTIDXPX.js} +9 -9
- package/dist/{product-tag-metadata-Z26DWSRN.js → product-tag-metadata-BXC7GMBB.js} +2 -2
- package/dist/{product-type-detail-O2WGGFRT.js → product-type-detail-RAYCHYAF.js} +7 -7
- package/dist/{product-type-list-XTVTT7ZA.js → product-type-list-JN4SKTFE.js} +2 -2
- package/dist/{product-type-metadata-2YKEGWRE.js → product-type-metadata-24JU4JNK.js} +2 -2
- package/dist/{product-variant-detail-OZYQPDVX.js → product-variant-detail-7CFNAI3A.js} +1 -1
- package/dist/{product-variant-edit-M74OAUM5.js → product-variant-edit-C4HXFQFW.js} +3 -3
- package/dist/{product-variant-metadata-VA4NDA53.js → product-variant-metadata-5PUBLPDN.js} +2 -2
- package/dist/{promotion-create-TOOHWR6S.js → promotion-create-7VBA6JFM.js} +3 -3
- package/dist/{promotion-detail-WFB2ZFPH.js → promotion-detail-KXXWEFHW.js} +4 -4
- package/dist/{promotion-edit-details-APVHD6J4.js → promotion-edit-details-YM5JPGEC.js} +2 -7
- package/dist/{promotion-list-VLCRCI2K.js → promotion-list-56ZDROMH.js} +5 -5
- package/dist/{refund-reason-create-NA42SWWI.js → refund-reason-create-UA3XS6DP.js} +1 -1
- package/dist/{refund-reason-edit-WMKHZ6SN.js → refund-reason-edit-3TAGKV3U.js} +1 -1
- package/dist/{refund-reason-list-XMDZO34F.js → refund-reason-list-PBLA5HYO.js} +6 -6
- package/dist/{region-add-countries-IIHNNE76.js → region-add-countries-UO5A42HM.js} +1 -1
- package/dist/{region-create-PHZNUCJR.js → region-create-7NA6RKWS.js} +1 -1
- package/dist/{region-detail-AECQQ62I.js → region-detail-636IAPYK.js} +2 -2
- package/dist/{region-list-IBQW5J3R.js → region-list-GIU6NFI4.js} +2 -2
- package/dist/{region-metadata-GWN4DS4V.js → region-metadata-NRV3L42D.js} +2 -2
- package/dist/{reservation-detail-JSLACR7K.js → reservation-detail-MAWHNY2H.js} +1 -1
- package/dist/{reservation-list-IUYMT4U6.js → reservation-list-UWZRPRPH.js} +2 -2
- package/dist/{reservation-metadata-YNCMFQIX.js → reservation-metadata-ZFKKAOWG.js} +2 -2
- package/dist/{reset-password-OL6EA5F2.js → reset-password-UDA5ZMTZ.js} +1 -1
- package/dist/{return-reason-list-FRHFRNKK.js → return-reason-list-NPAAMB5H.js} +6 -6
- package/dist/{sales-channel-add-products-ZZPVF5CH.js → sales-channel-add-products-2BBIMN6N.js} +6 -6
- package/dist/{sales-channel-detail-DNZXUBSN.js → sales-channel-detail-D5R7HPC7.js} +7 -7
- package/dist/{sales-channel-list-PPESHWHA.js → sales-channel-list-LVW7XE7K.js} +3 -4
- package/dist/{sales-channel-metadata-7HVLURGB.js → sales-channel-metadata-5W4OZZYI.js} +2 -2
- package/dist/{shipping-option-type-create-UFXLX52L.js → shipping-option-type-create-GHOCZT64.js} +1 -1
- package/dist/{shipping-option-type-detail-OCOL5H4I.js → shipping-option-type-detail-W32EHTBS.js} +1 -1
- package/dist/{shipping-option-type-edit-2WVBG2XS.js → shipping-option-type-edit-KRIP6HTC.js} +1 -1
- package/dist/{shipping-option-type-list-AW2ZA4V5.js → shipping-option-type-list-4FML2ZX5.js} +3 -3
- package/dist/{shipping-profile-metadata-N2AXNBZT.js → shipping-profile-metadata-52ZW757T.js} +2 -2
- package/dist/{shipping-profiles-list-4VHKTKIL.js → shipping-profiles-list-PZQVMKR4.js} +2 -2
- package/dist/{store-address-edit-KITVKFMG.js → store-address-edit-IJ2UW6WC.js} +2 -2
- package/dist/{store-bulk-edit-SZ3UEDWJ.js → store-bulk-edit-OIYKZ6AZ.js} +2 -2
- package/dist/{store-closure-edit-MMGDJGV3.js → store-closure-edit-H3EKROXP.js} +1 -1
- package/dist/{store-create-QUGCV5IG.js → store-create-Y3BGG5P5.js} +3 -3
- package/dist/{store-details-4XVEWNIX.js → store-details-56IHJJQV.js} +8 -8
- package/dist/{store-edit-KJTO3ZUP.js → store-edit-HWOGEOCH.js} +4 -4
- package/dist/{store-list-LSADPRI2.js → store-list-5DRW6QZF.js} +7 -7
- package/dist/{store-member-invite-3G4PCBJ2.js → store-member-invite-7ORIMT73.js} +3 -3
- package/dist/{store-payment-details-edit-5LT4OIMA.js → store-payment-details-edit-ERRJDLBO.js} +1 -1
- package/dist/{store-professional-details-edit-ARR5WRGC.js → store-professional-details-edit-VD2J4VYV.js} +1 -1
- package/dist/{tax-region-create-MPKY5KXL.js → tax-region-create-GGDCD2VU.js} +2 -2
- package/dist/{tax-region-detail-Q3NZI26Z.js → tax-region-detail-L7STT6C7.js} +1 -1
- package/dist/{tax-region-edit-UMPFELDL.js → tax-region-edit-6JOV3POI.js} +1 -1
- package/dist/{tax-region-metadata-UAGL3HYV.js → tax-region-metadata-4P667IOY.js} +2 -2
- package/dist/{tax-region-province-detail-JQQQXONY.js → tax-region-province-detail-2GRPOSWS.js} +1 -1
- package/dist/{tax-region-tax-override-create-X3WQVHYV.js → tax-region-tax-override-create-R5GKEOK6.js} +9 -9
- package/dist/{tax-region-tax-override-edit-SYK2O5BK.js → tax-region-tax-override-edit-MLJKNLAR.js} +9 -9
- package/dist/{user-invite-UN6NCCII.js → user-invite-FCWARLW5.js} +1 -1
- package/dist/{user-list-27ZKEJXN.js → user-list-OU6WS25V.js} +2 -2
- package/dist/{user-metadata-EKIWOTII.js → user-metadata-CHHV7S3A.js} +2 -2
- package/package.json +12 -12
- package/dist/chunk-DGCPYCHU.js +0 -98
- package/dist/loader-DHCULYGY.js +0 -32
|
@@ -1,121 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
OFFERS_PAGE_SIZE,
|
|
3
|
-
OFFER_PRODUCT_LIST_FIELDS
|
|
4
|
-
} from "./chunk-S6A4FVM2.js";
|
|
5
1
|
import {
|
|
6
2
|
useBulkDeleteOffers
|
|
7
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IZDTQFCP.js";
|
|
8
4
|
import {
|
|
9
5
|
CategoryCell,
|
|
10
6
|
CategoryHeader,
|
|
11
7
|
ProductStatusCell,
|
|
12
8
|
ProductStatusHeader
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DI2M3J5Q.js";
|
|
14
10
|
import {
|
|
15
11
|
ProductCell,
|
|
16
12
|
ProductHeader
|
|
17
13
|
} from "./chunk-FWPGOIFA.js";
|
|
18
|
-
import "./chunk-DB6ANJBO.js";
|
|
19
14
|
import {
|
|
20
15
|
PlaceholderCell
|
|
21
16
|
} from "./chunk-PHOCVOZ5.js";
|
|
22
|
-
import "./chunk-E74OUNA3.js";
|
|
23
|
-
import "./chunk-WIYFXWRI.js";
|
|
24
|
-
import "./chunk-FQERBIVS.js";
|
|
25
|
-
import {
|
|
26
|
-
_DataTable,
|
|
27
|
-
useDataTable
|
|
28
|
-
} from "./chunk-HSL5IICN.js";
|
|
29
|
-
import "./chunk-YN3FGNJM.js";
|
|
30
|
-
import "./chunk-ZAOEFQ6K.js";
|
|
31
|
-
import "./chunk-PAYQJPGK.js";
|
|
32
|
-
import {
|
|
33
|
-
SingleColumnPage
|
|
34
|
-
} from "./chunk-H6MYB7GB.js";
|
|
35
|
-
import "./chunk-UZWFZMOX.js";
|
|
36
|
-
import "./chunk-XQNVC4Q7.js";
|
|
37
17
|
import {
|
|
38
18
|
useQueryParams
|
|
39
19
|
} from "./chunk-THHRRYRS.js";
|
|
40
20
|
import {
|
|
41
21
|
require_dist
|
|
42
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DSTHXHJ5.js";
|
|
43
23
|
import {
|
|
44
24
|
useProductTags
|
|
45
25
|
} from "./chunk-ABS7HMLY.js";
|
|
46
|
-
import "./chunk-R325CPYC.js";
|
|
47
|
-
import "./chunk-YNN2YNSE.js";
|
|
48
|
-
import "./chunk-J54BZXZX.js";
|
|
49
|
-
import "./chunk-JI7HMGMO.js";
|
|
50
|
-
import "./chunk-F5NW4XBU.js";
|
|
51
|
-
import "./chunk-HLL6GLZO.js";
|
|
52
|
-
import "./chunk-CARSKIPW.js";
|
|
53
|
-
import "./chunk-R4O667NT.js";
|
|
54
|
-
import "./chunk-MO7TNIVQ.js";
|
|
55
26
|
import {
|
|
56
27
|
useProductTypes
|
|
57
28
|
} from "./chunk-EWFOFSF7.js";
|
|
58
|
-
import "./chunk-G5KNNOXX.js";
|
|
59
|
-
import "./chunk-VHCDSNXF.js";
|
|
60
|
-
import "./chunk-A2F5MDPU.js";
|
|
61
|
-
import "./chunk-IC2PLPRP.js";
|
|
62
|
-
import "./chunk-L7DIEO5B.js";
|
|
63
|
-
import "./chunk-LSMTJU6Y.js";
|
|
64
29
|
import {
|
|
65
30
|
useCollections
|
|
66
31
|
} from "./chunk-BNFTJW4L.js";
|
|
67
|
-
import "./chunk-EJY35WBK.js";
|
|
68
|
-
import "./chunk-GYRTURN7.js";
|
|
69
|
-
import "./chunk-GCEOEV6P.js";
|
|
70
|
-
import "./chunk-Q6GUA5VE.js";
|
|
71
|
-
import "./chunk-VXW3BCN2.js";
|
|
72
|
-
import "./chunk-GLZLBHFC.js";
|
|
73
|
-
import "./chunk-WF3ZDT5Z.js";
|
|
74
|
-
import "./chunk-PYF5EER5.js";
|
|
75
32
|
import {
|
|
76
33
|
useSellers
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import "./chunk-RGS5ZOY7.js";
|
|
34
|
+
} from "./chunk-BILFRATX.js";
|
|
79
35
|
import {
|
|
80
36
|
ActionMenu
|
|
81
37
|
} from "./chunk-BDGZ4EQO.js";
|
|
82
|
-
import "./chunk-MW47LDBT.js";
|
|
83
38
|
import {
|
|
84
39
|
useProductCategories
|
|
85
40
|
} from "./chunk-JZJT26E3.js";
|
|
86
|
-
import "./chunk-LAVHRER2.js";
|
|
87
|
-
import "./chunk-Y7QKP6QU.js";
|
|
88
|
-
import "./chunk-INNFZYX2.js";
|
|
89
|
-
import {
|
|
90
|
-
useProducts
|
|
91
|
-
} from "./chunk-ZKHF75MZ.js";
|
|
92
|
-
import "./chunk-RHKRREUU.js";
|
|
93
|
-
import "./chunk-ZA2KFUFR.js";
|
|
94
|
-
import "./chunk-LXZXXOJ3.js";
|
|
95
41
|
import {
|
|
96
42
|
__toESM
|
|
97
43
|
} from "./chunk-NBMM2TZK.js";
|
|
98
44
|
|
|
99
|
-
// src/pages/offers/offer-list-page.tsx
|
|
100
|
-
import { Children as Children2 } from "react";
|
|
101
|
-
|
|
102
|
-
// src/pages/offers/_components/offer-list-table.tsx
|
|
103
|
-
import { Container } from "@medusajs/ui";
|
|
104
|
-
import { Children } from "react";
|
|
105
|
-
import { Outlet } from "react-router-dom";
|
|
106
|
-
|
|
107
|
-
// src/pages/offers/_components/offer-list-data-table.tsx
|
|
108
|
-
import { toast as toast2, usePrompt as usePrompt2 } from "@medusajs/ui";
|
|
109
|
-
import { keepPreviousData } from "@tanstack/react-query";
|
|
110
|
-
import { useState } from "react";
|
|
111
|
-
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
112
|
-
|
|
113
|
-
// src/pages/offers/_components/use-offer-table-columns.tsx
|
|
114
|
-
import { Checkbox, Text } from "@medusajs/ui";
|
|
115
|
-
import { createColumnHelper } from "@tanstack/react-table";
|
|
116
|
-
import { useMemo } from "react";
|
|
117
|
-
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
118
|
-
|
|
119
45
|
// src/pages/offers/_components/offer-actions.tsx
|
|
120
46
|
import { BuildingStorefront, Trash } from "@medusajs/icons";
|
|
121
47
|
import { toast, usePrompt } from "@medusajs/ui";
|
|
@@ -180,24 +106,15 @@ var OfferActions = ({ product }) => {
|
|
|
180
106
|
};
|
|
181
107
|
|
|
182
108
|
// src/pages/offers/_components/use-offer-table-columns.tsx
|
|
109
|
+
import { Checkbox, Text } from "@medusajs/ui";
|
|
110
|
+
import { createColumnHelper } from "@tanstack/react-table";
|
|
111
|
+
import { useMemo } from "react";
|
|
112
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
183
113
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
184
114
|
var columnHelper = createColumnHelper();
|
|
185
|
-
var
|
|
186
|
-
var collectOfferIds = (row) => (row.variants ?? []).flatMap((v) => (v.offers ?? []).map((o) => o.id));
|
|
187
|
-
var collectOfferSellers = (row) => {
|
|
188
|
-
const seen = /* @__PURE__ */ new Map();
|
|
189
|
-
for (const variant of row.variants ?? []) {
|
|
190
|
-
for (const offer of variant.offers ?? []) {
|
|
191
|
-
const seller = offer.seller;
|
|
192
|
-
if (seller?.id && !seen.has(seller.id)) {
|
|
193
|
-
seen.set(seller.id, seller);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return Array.from(seen.values());
|
|
198
|
-
};
|
|
199
|
-
var useOfferTableColumns = () => {
|
|
115
|
+
var useOfferTableColumns = (options) => {
|
|
200
116
|
const { t } = useTranslation2();
|
|
117
|
+
const hideStoreAction = options?.hideStoreAction ?? false;
|
|
201
118
|
return useMemo(
|
|
202
119
|
() => [
|
|
203
120
|
columnHelper.display({
|
|
@@ -225,19 +142,30 @@ var useOfferTableColumns = () => {
|
|
|
225
142
|
ProductCell,
|
|
226
143
|
{
|
|
227
144
|
product: {
|
|
228
|
-
title: row.original.title ?? "",
|
|
229
|
-
thumbnail: row.original.thumbnail ?? null
|
|
145
|
+
title: row.original.product?.title ?? "",
|
|
146
|
+
thumbnail: row.original.product?.thumbnail ?? null
|
|
230
147
|
}
|
|
231
148
|
}
|
|
232
149
|
)
|
|
233
150
|
}),
|
|
151
|
+
...hideStoreAction ? [] : [
|
|
152
|
+
columnHelper.display({
|
|
153
|
+
id: "store",
|
|
154
|
+
header: t("offers.fields.store"),
|
|
155
|
+
cell: ({ row }) => {
|
|
156
|
+
const name = row.original.seller?.name;
|
|
157
|
+
if (!name) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
158
|
+
return /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "truncate", children: name });
|
|
159
|
+
}
|
|
160
|
+
})
|
|
161
|
+
],
|
|
234
162
|
columnHelper.display({
|
|
235
163
|
id: "categories",
|
|
236
164
|
header: () => /* @__PURE__ */ jsx2(CategoryHeader, {}),
|
|
237
165
|
cell: ({ row }) => /* @__PURE__ */ jsx2(
|
|
238
166
|
CategoryCell,
|
|
239
167
|
{
|
|
240
|
-
categories: row.original.categories ?? void 0
|
|
168
|
+
categories: row.original.product?.categories ?? void 0
|
|
241
169
|
}
|
|
242
170
|
)
|
|
243
171
|
}),
|
|
@@ -245,53 +173,105 @@ var useOfferTableColumns = () => {
|
|
|
245
173
|
id: "collection",
|
|
246
174
|
header: t("fields.collection"),
|
|
247
175
|
cell: ({ row }) => {
|
|
248
|
-
const collection = row.original.collection;
|
|
176
|
+
const collection = row.original.product?.collection;
|
|
249
177
|
if (!collection?.title) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
250
178
|
return /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "truncate", children: collection.title });
|
|
251
179
|
}
|
|
252
180
|
}),
|
|
253
181
|
columnHelper.display({
|
|
254
182
|
id: "variants",
|
|
255
|
-
header: t("
|
|
256
|
-
cell: ({ row }) =>
|
|
257
|
-
count
|
|
258
|
-
|
|
183
|
+
header: () => /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx2("span", { children: t("fields.variants") }) }),
|
|
184
|
+
cell: ({ row }) => {
|
|
185
|
+
const count = row.original.variant_count;
|
|
186
|
+
if (!count) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
187
|
+
return /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "truncate", children: t("products.variantCount", { count }) });
|
|
188
|
+
}
|
|
259
189
|
}),
|
|
260
190
|
columnHelper.display({
|
|
261
191
|
id: "status",
|
|
262
192
|
header: () => /* @__PURE__ */ jsx2(ProductStatusHeader, {}),
|
|
263
193
|
cell: ({ row }) => {
|
|
264
|
-
const status = row.original.status;
|
|
194
|
+
const status = row.original.product?.status;
|
|
265
195
|
if (!status) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
266
196
|
return /* @__PURE__ */ jsx2(ProductStatusCell, { status });
|
|
267
197
|
}
|
|
268
198
|
}),
|
|
269
199
|
columnHelper.display({
|
|
270
200
|
id: "actions",
|
|
271
|
-
cell: ({ row }) =>
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
offerIds: collectOfferIds(row.original),
|
|
279
|
-
sellerId: sellers.length === 1 ? sellers[0].id ?? null : null
|
|
280
|
-
}
|
|
201
|
+
cell: ({ row }) => /* @__PURE__ */ jsx2(
|
|
202
|
+
OfferActions,
|
|
203
|
+
{
|
|
204
|
+
product: {
|
|
205
|
+
id: row.original.product_id,
|
|
206
|
+
offerIds: [row.original.id],
|
|
207
|
+
sellerId: hideStoreAction ? null : row.original.seller_id ?? null
|
|
281
208
|
}
|
|
282
|
-
|
|
283
|
-
|
|
209
|
+
}
|
|
210
|
+
)
|
|
284
211
|
})
|
|
285
212
|
],
|
|
286
|
-
[t]
|
|
213
|
+
[t, hideStoreAction]
|
|
214
|
+
);
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
// src/pages/offers/_components/use-offer-table-commands.tsx
|
|
218
|
+
import { toast as toast2, usePrompt as usePrompt2 } from "@medusajs/ui";
|
|
219
|
+
import { useMemo as useMemo2 } from "react";
|
|
220
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
221
|
+
var useOfferTableCommands = (options) => {
|
|
222
|
+
const { t } = useTranslation3();
|
|
223
|
+
const prompt = usePrompt2();
|
|
224
|
+
const { mutateAsync: bulkDelete } = useBulkDeleteOffers();
|
|
225
|
+
const onDeleted = options?.onDeleted;
|
|
226
|
+
return useMemo2(
|
|
227
|
+
() => [
|
|
228
|
+
{
|
|
229
|
+
label: t("offers.actions.bulkDelete"),
|
|
230
|
+
shortcut: "d",
|
|
231
|
+
action: async (currentSelection) => {
|
|
232
|
+
const offerIds = Object.keys(currentSelection);
|
|
233
|
+
if (offerIds.length === 0) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
const confirmed = await prompt({
|
|
237
|
+
title: t("general.areYouSure"),
|
|
238
|
+
description: t("offers.bulkDelete.description", {
|
|
239
|
+
count: offerIds.length
|
|
240
|
+
}),
|
|
241
|
+
confirmText: t("actions.delete"),
|
|
242
|
+
cancelText: t("actions.cancel"),
|
|
243
|
+
variant: "danger"
|
|
244
|
+
});
|
|
245
|
+
if (!confirmed) {
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
const result = await bulkDelete(offerIds);
|
|
249
|
+
if (result.failed.length === 0) {
|
|
250
|
+
toast2.success(
|
|
251
|
+
t("offers.bulkDelete.successToast", {
|
|
252
|
+
count: result.succeeded.length
|
|
253
|
+
})
|
|
254
|
+
);
|
|
255
|
+
onDeleted?.();
|
|
256
|
+
} else {
|
|
257
|
+
toast2.warning(
|
|
258
|
+
t("offers.bulkDelete.errorToast", {
|
|
259
|
+
message: `${result.succeeded.length}/${offerIds.length} succeeded`
|
|
260
|
+
})
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
[t, prompt, bulkDelete, onDeleted]
|
|
287
267
|
);
|
|
288
268
|
};
|
|
289
269
|
|
|
290
270
|
// src/pages/offers/_components/use-offer-table-filters.tsx
|
|
291
271
|
var import_types = __toESM(require_dist(), 1);
|
|
292
|
-
import { useTranslation as
|
|
272
|
+
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
293
273
|
var useOfferTableFilters = () => {
|
|
294
|
-
const { t } =
|
|
274
|
+
const { t } = useTranslation4();
|
|
295
275
|
const { sellers } = useSellers({ limit: 1e3 });
|
|
296
276
|
const { product_categories } = useProductCategories({
|
|
297
277
|
limit: 1e3,
|
|
@@ -409,6 +389,28 @@ var useOfferTableFilters = () => {
|
|
|
409
389
|
};
|
|
410
390
|
|
|
411
391
|
// src/pages/offers/_components/use-offer-table-query.tsx
|
|
392
|
+
var OFFER_LIST_FIELDS = [
|
|
393
|
+
"id",
|
|
394
|
+
"product_id",
|
|
395
|
+
"seller_id",
|
|
396
|
+
"variant_id",
|
|
397
|
+
"sku",
|
|
398
|
+
"variant_count",
|
|
399
|
+
"created_at",
|
|
400
|
+
"updated_at",
|
|
401
|
+
"product.id",
|
|
402
|
+
"product.title",
|
|
403
|
+
"product.handle",
|
|
404
|
+
"product.status",
|
|
405
|
+
"product.thumbnail",
|
|
406
|
+
"product.collection.id",
|
|
407
|
+
"product.collection.title",
|
|
408
|
+
"product.categories.id",
|
|
409
|
+
"product.categories.name",
|
|
410
|
+
"seller.id",
|
|
411
|
+
"seller.name",
|
|
412
|
+
"seller.handle"
|
|
413
|
+
].join(",");
|
|
412
414
|
var useOfferTableQuery = ({
|
|
413
415
|
pageSize = 10,
|
|
414
416
|
prefix
|
|
@@ -445,7 +447,7 @@ var useOfferTableQuery = ({
|
|
|
445
447
|
const searchParams = {
|
|
446
448
|
limit: pageSize,
|
|
447
449
|
offset: offset ? parseInt(offset, 10) : 0,
|
|
448
|
-
order: order || "
|
|
450
|
+
order: order || "-created_at",
|
|
449
451
|
q,
|
|
450
452
|
category_id: category_id ? category_id.split(",") : void 0,
|
|
451
453
|
collection_id: collection_id ? collection_id.split(",") : void 0,
|
|
@@ -455,8 +457,8 @@ var useOfferTableQuery = ({
|
|
|
455
457
|
seller_id: seller_id ? seller_id.split(",") : void 0,
|
|
456
458
|
created_at: created_at ? JSON.parse(created_at) : void 0,
|
|
457
459
|
updated_at: updated_at ? JSON.parse(updated_at) : void 0,
|
|
458
|
-
|
|
459
|
-
fields:
|
|
460
|
+
group_by_seller: "true",
|
|
461
|
+
fields: OFFER_LIST_FIELDS
|
|
460
462
|
};
|
|
461
463
|
return {
|
|
462
464
|
searchParams,
|
|
@@ -464,140 +466,9 @@ var useOfferTableQuery = ({
|
|
|
464
466
|
};
|
|
465
467
|
};
|
|
466
468
|
|
|
467
|
-
// src/pages/offers/_components/offer-list-data-table.tsx
|
|
468
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
469
|
-
var OfferListDataTable = () => {
|
|
470
|
-
const { t } = useTranslation4();
|
|
471
|
-
const prompt = usePrompt2();
|
|
472
|
-
const [selection, setSelection] = useState({});
|
|
473
|
-
const { raw, searchParams } = useOfferTableQuery({
|
|
474
|
-
pageSize: OFFERS_PAGE_SIZE
|
|
475
|
-
});
|
|
476
|
-
const { products, count, isLoading, isError, error } = useProducts(
|
|
477
|
-
searchParams,
|
|
478
|
-
{ placeholderData: keepPreviousData }
|
|
479
|
-
);
|
|
480
|
-
const rows = products ?? [];
|
|
481
|
-
const filters = useOfferTableFilters();
|
|
482
|
-
const columns = useOfferTableColumns();
|
|
483
|
-
const { mutateAsync: bulkDelete } = useBulkDeleteOffers();
|
|
484
|
-
const { table } = useDataTable({
|
|
485
|
-
data: rows,
|
|
486
|
-
columns,
|
|
487
|
-
count,
|
|
488
|
-
enablePagination: true,
|
|
489
|
-
getRowId: (row) => row.id,
|
|
490
|
-
pageSize: OFFERS_PAGE_SIZE,
|
|
491
|
-
enableRowSelection: true,
|
|
492
|
-
rowSelection: {
|
|
493
|
-
state: selection,
|
|
494
|
-
updater: setSelection
|
|
495
|
-
}
|
|
496
|
-
});
|
|
497
|
-
if (isError) {
|
|
498
|
-
throw error;
|
|
499
|
-
}
|
|
500
|
-
return /* @__PURE__ */ jsx3(
|
|
501
|
-
_DataTable,
|
|
502
|
-
{
|
|
503
|
-
table,
|
|
504
|
-
columns,
|
|
505
|
-
pageSize: OFFERS_PAGE_SIZE,
|
|
506
|
-
count,
|
|
507
|
-
isLoading,
|
|
508
|
-
pagination: true,
|
|
509
|
-
search: true,
|
|
510
|
-
filters,
|
|
511
|
-
queryObject: raw,
|
|
512
|
-
orderBy: [
|
|
513
|
-
{ key: "title", label: t("fields.title") },
|
|
514
|
-
{ key: "created_at", label: t("fields.createdAt") },
|
|
515
|
-
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
516
|
-
],
|
|
517
|
-
defaultOrderBy: "title",
|
|
518
|
-
navigateTo: (row) => `${row.id}`,
|
|
519
|
-
noRecords: {
|
|
520
|
-
title: t("offers.empty.heading"),
|
|
521
|
-
message: t("offers.empty.description")
|
|
522
|
-
},
|
|
523
|
-
commands: [
|
|
524
|
-
{
|
|
525
|
-
label: t("offers.actions.bulkDelete"),
|
|
526
|
-
shortcut: "d",
|
|
527
|
-
action: async (currentSelection) => {
|
|
528
|
-
const productIds = Object.keys(currentSelection);
|
|
529
|
-
if (productIds.length === 0) return;
|
|
530
|
-
const selectedRows = rows.filter((r) => productIds.includes(r.id));
|
|
531
|
-
const offerIds = selectedRows.flatMap((r) => collectOfferIds(r));
|
|
532
|
-
if (offerIds.length === 0) return;
|
|
533
|
-
const confirmed = await prompt({
|
|
534
|
-
title: t("general.areYouSure"),
|
|
535
|
-
description: t("offers.bulkDelete.description", {
|
|
536
|
-
count: offerIds.length
|
|
537
|
-
}),
|
|
538
|
-
confirmText: t("actions.delete"),
|
|
539
|
-
cancelText: t("actions.cancel"),
|
|
540
|
-
variant: "danger"
|
|
541
|
-
});
|
|
542
|
-
if (!confirmed) return;
|
|
543
|
-
const result = await bulkDelete(offerIds);
|
|
544
|
-
const succeededCount = result.succeeded.length;
|
|
545
|
-
const failedCount = result.failed.length;
|
|
546
|
-
if (failedCount === 0) {
|
|
547
|
-
toast2.success(
|
|
548
|
-
t("offers.bulkDelete.successToast", { count: succeededCount })
|
|
549
|
-
);
|
|
550
|
-
setSelection({});
|
|
551
|
-
} else {
|
|
552
|
-
toast2.warning(
|
|
553
|
-
t("offers.bulkDelete.errorToast", {
|
|
554
|
-
message: `${succeededCount}/${offerIds.length} succeeded`
|
|
555
|
-
})
|
|
556
|
-
);
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
]
|
|
561
|
-
}
|
|
562
|
-
);
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
// src/pages/offers/_components/offer-list-header.tsx
|
|
566
|
-
import { Heading } from "@medusajs/ui";
|
|
567
|
-
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
568
|
-
import { jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
569
|
-
var OfferListTitle = () => {
|
|
570
|
-
const { t } = useTranslation5();
|
|
571
|
-
return /* @__PURE__ */ jsx4(Heading, { children: t("offers.domain") });
|
|
572
|
-
};
|
|
573
|
-
var OfferListActions = () => null;
|
|
574
|
-
var OfferListHeader = () => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
575
|
-
/* @__PURE__ */ jsx4(OfferListTitle, {}),
|
|
576
|
-
/* @__PURE__ */ jsx4(OfferListActions, {})
|
|
577
|
-
] });
|
|
578
|
-
|
|
579
|
-
// src/pages/offers/_components/offer-list-table.tsx
|
|
580
|
-
import { Fragment, jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
581
|
-
var OfferListTable = ({ children }) => /* @__PURE__ */ jsxs2(Container, { className: "divide-y p-0", "data-testid": "offer-list-table", children: [
|
|
582
|
-
Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
583
|
-
/* @__PURE__ */ jsx5(OfferListHeader, {}),
|
|
584
|
-
/* @__PURE__ */ jsx5(OfferListDataTable, {})
|
|
585
|
-
] }),
|
|
586
|
-
/* @__PURE__ */ jsx5(Outlet, {})
|
|
587
|
-
] });
|
|
588
|
-
|
|
589
|
-
// src/pages/offers/offer-list-page.tsx
|
|
590
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
591
|
-
var Root = ({ children }) => /* @__PURE__ */ jsx6(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx6(OfferListTable, {}) });
|
|
592
|
-
var OfferListPage = Object.assign(Root, {
|
|
593
|
-
Table: OfferListTable,
|
|
594
|
-
Header: OfferListHeader,
|
|
595
|
-
HeaderTitle: OfferListTitle,
|
|
596
|
-
HeaderActions: OfferListActions,
|
|
597
|
-
DataTable: OfferListDataTable
|
|
598
|
-
});
|
|
599
|
-
var Component = Root;
|
|
600
469
|
export {
|
|
601
|
-
|
|
602
|
-
|
|
470
|
+
useOfferTableColumns,
|
|
471
|
+
useOfferTableCommands,
|
|
472
|
+
useOfferTableFilters,
|
|
473
|
+
useOfferTableQuery
|
|
603
474
|
};
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
} from "./chunk-QJCUPZZQ.js";
|
|
17
17
|
import {
|
|
18
18
|
useProductTableColumns
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OYZIFLLC.js";
|
|
20
20
|
import {
|
|
21
21
|
useProductTableFilters
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4346EIRG.js";
|
|
23
23
|
import {
|
|
24
24
|
useProductTableQuery
|
|
25
25
|
} from "./chunk-H7NIKMPE.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
_DataTable,
|
|
31
31
|
useDataTable
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
33
33
|
import {
|
|
34
34
|
ActionMenu
|
|
35
35
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -130,9 +130,6 @@ var OFFER_PRODUCT_DETAIL_FIELDS = [
|
|
|
130
130
|
"variants.options.option.title",
|
|
131
131
|
"variants.offers.id",
|
|
132
132
|
"variants.offers.sku",
|
|
133
|
-
"variants.offers.seller.id",
|
|
134
|
-
"variants.offers.seller.name",
|
|
135
|
-
"variants.offers.seller.handle",
|
|
136
133
|
"variants.offers.prices.amount",
|
|
137
134
|
"variants.offers.prices.currency_code",
|
|
138
135
|
"variants.offers.shipping_profile.id",
|
|
@@ -165,6 +162,5 @@ var OFFER_LIST_FIELDS = [
|
|
|
165
162
|
export {
|
|
166
163
|
OFFERS_PAGE_SIZE,
|
|
167
164
|
OFFER_VARIANT_DETAIL_FIELDS,
|
|
168
|
-
OFFER_PRODUCT_LIST_FIELDS,
|
|
169
165
|
OFFER_PRODUCT_DETAIL_FIELDS
|
|
170
166
|
};
|
|
@@ -17,7 +17,9 @@ var OFFERS_QUERY_KEY = "offers";
|
|
|
17
17
|
var offerQueryKeys = queryKeysFactory(OFFERS_QUERY_KEY);
|
|
18
18
|
var useOffers = (query, options) => {
|
|
19
19
|
const { data, ...rest } = useQuery({
|
|
20
|
-
queryFn: () => sdk.admin.offers.query({
|
|
20
|
+
queryFn: () => sdk.admin.offers.query({
|
|
21
|
+
...query
|
|
22
|
+
}),
|
|
21
23
|
queryKey: offerQueryKeys.list(query),
|
|
22
24
|
...options
|
|
23
25
|
});
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-KOURHC2N.js";
|
|
4
4
|
import {
|
|
5
5
|
useSellersTableQuery
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WKDHY2DJ.js";
|
|
7
7
|
import {
|
|
8
8
|
DateCell
|
|
9
9
|
} from "./chunk-25LYVP3C.js";
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
17
17
|
import {
|
|
18
18
|
SingleColumnPage
|
|
19
19
|
} from "./chunk-H6MYB7GB.js";
|
|
20
20
|
import {
|
|
21
21
|
require_dist
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DSTHXHJ5.js";
|
|
23
23
|
import {
|
|
24
24
|
useSellers
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BILFRATX.js";
|
|
26
26
|
import {
|
|
27
27
|
ActionMenu
|
|
28
28
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -44,7 +44,8 @@ import { useTranslation } from "react-i18next";
|
|
|
44
44
|
import { Link } from "react-router-dom";
|
|
45
45
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
46
46
|
var StoreListTitle = () => {
|
|
47
|
-
|
|
47
|
+
const { t } = useTranslation();
|
|
48
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Heading, { level: "h2", children: t("stores.domain") }) });
|
|
48
49
|
};
|
|
49
50
|
var StoreListActions = ({
|
|
50
51
|
children
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-G5KNNOXX.js";
|
|
7
7
|
import {
|
|
8
8
|
useSellers
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BILFRATX.js";
|
|
10
10
|
import {
|
|
11
11
|
useProductCategories
|
|
12
12
|
} from "./chunk-JZJT26E3.js";
|
|
@@ -36,9 +36,7 @@ var useDeleteCommissionRuleAction = (rule) => {
|
|
|
36
36
|
await mutateAsync(void 0, {
|
|
37
37
|
onSuccess: () => {
|
|
38
38
|
toast.success(
|
|
39
|
-
t("commissions.delete.successToast"
|
|
40
|
-
defaultValue: "Commission rule was successfully deleted."
|
|
41
|
-
})
|
|
39
|
+
t("commissions.delete.successToast")
|
|
42
40
|
);
|
|
43
41
|
navigate("/settings/commissions");
|
|
44
42
|
},
|