@mercurjs/admin 2.2.0-canary.1 → 2.2.0-canary.12
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/{[id]-YI7UXOO2.js → [id]-BAPEFPAO.js} +10 -4
- package/dist/{add-campaign-promotions-OLNTDP26.js → add-campaign-promotions-KOGSYV2W.js} +3 -3
- package/dist/{adjust-inventory-CVWSBMHU.js → adjust-inventory-3IQ657W2.js} +12 -13
- package/dist/{api-key-management-create-7RWOCVAO.js → api-key-management-create-UD5V7TOU.js} +3 -3
- package/dist/{api-key-management-detail-ZIIDMHFI.js → api-key-management-detail-NBNHERF6.js} +14 -15
- package/dist/{api-key-management-edit-ACH6TJAX.js → api-key-management-edit-4TLKJSAE.js} +3 -3
- package/dist/{api-key-management-list-JHBBXGHH.js → api-key-management-list-SZUSD6UI.js} +4 -4
- package/dist/{api-key-management-sales-channels-XEBTUB5V.js → api-key-management-sales-channels-TK6XEGF3.js} +3 -3
- package/dist/{attribute-create-BYO7BDF5.js → attribute-create-IKTP5XRS.js} +57 -36
- package/dist/{attribute-detail-36XP35P6.js → attribute-detail-V4QI34FV.js} +15 -16
- package/dist/{attribute-edit-WMJWHT7Z.js → attribute-edit-LUY66TG3.js} +2 -2
- package/dist/{attribute-edit-possible-value-KTUZ7YLW.js → attribute-edit-possible-value-IOS3625C.js} +2 -2
- package/dist/{attribute-list-OHU2QMUG.js → attribute-list-EMPHZ32M.js} +12 -13
- package/dist/campaign-create-VFFIIRE4.js +1 -1
- package/dist/{campaign-detail-AZKBPDLC.js → campaign-detail-QY3AALUR.js} +16 -17
- package/dist/{categories-metadata-YZUP43OH.js → categories-metadata-Z5JAWPAK.js} +12 -13
- package/dist/{category-create-2MRYTSYM.js → category-create-GMCJABRW.js} +3 -3
- package/dist/{category-detail-KTFD3VVR.js → category-detail-IP5EPIUR.js} +19 -20
- package/dist/{category-edit-QLOS2LBA.js → category-edit-GLE4NTFG.js} +2 -2
- package/dist/{category-list-U7ZQBSZN.js → category-list-SNVOQ64L.js} +4 -4
- package/dist/{category-organize-TIKTYJFZ.js → category-organize-UY4M4N7S.js} +2 -2
- package/dist/{category-products-7P5DSQN4.js → category-products-HWXJR7KR.js} +16 -17
- package/dist/{chunk-YLKG7W4P.js → chunk-2OF7GB7J.js} +1 -1
- package/dist/{chunk-EJTB2SLE.js → chunk-3AO6X4CE.js} +1 -1
- package/dist/{chunk-PCLSODMO.js → chunk-3HY4I76Q.js} +115 -180
- package/dist/{chunk-CYGIJOA5.js → chunk-3VDLE5GA.js} +12 -4
- package/dist/{chunk-JQBSPUH2.js → chunk-3XSC3NEG.js} +14 -1
- package/dist/{chunk-OSEIN4Y2.js → chunk-453BC56K.js} +1 -1
- package/dist/{chunk-ALATTLBM.js → chunk-4GFS57XI.js} +1 -1
- package/dist/{chunk-BCVUMATY.js → chunk-4PU6GDCE.js} +3 -3
- package/dist/{chunk-ZSFJVRRS.js → chunk-5AZCIOS4.js} +1 -1
- package/dist/{chunk-2S6VXFBZ.js → chunk-5FFZQPTT.js} +4 -4
- package/dist/chunk-5UPOHLBD.js +213 -0
- package/dist/{chunk-LLOKYZMI.js → chunk-623TMW36.js} +1 -1
- package/dist/{chunk-S5BJ5CMF.js → chunk-6FHQCLHQ.js} +1 -1
- package/dist/{chunk-TITPJHIL.js → chunk-72PLRAWM.js} +1 -1
- package/dist/{chunk-H23AKDB2.js → chunk-7KZ5X5SU.js} +4 -4
- package/dist/chunk-7MMLCMV3.js +142 -0
- package/dist/{chunk-637OFDFC.js → chunk-A62MTLPR.js} +52 -76
- package/dist/{chunk-DOSKHIRH.js → chunk-ABWW3JHS.js} +8 -8
- package/dist/{chunk-UXD3VNBO.js → chunk-AJLGY3LQ.js} +1 -2
- package/dist/{chunk-TP7L6M7V.js → chunk-BPCU5QJE.js} +1 -1
- package/dist/{chunk-RKH3A4O3.js → chunk-BQ6ZDY6L.js} +6 -6
- package/dist/{chunk-LCGLQNOI.js → chunk-CVZA23ES.js} +3 -3
- package/dist/{chunk-UPNMDPFX.js → chunk-CYGCCNIC.js} +4 -4
- package/dist/{chunk-WS63IRBI.js → chunk-D2VXOF46.js} +6 -6
- package/dist/{chunk-GKW445WA.js → chunk-DELK6EWH.js} +13 -187
- package/dist/{chunk-AB2LHP3M.js → chunk-DJWOIRLV.js} +1 -1
- package/dist/{chunk-H5PYBIOZ.js → chunk-DN2K5EAH.js} +1 -1
- package/dist/{chunk-EREXPX6I.js → chunk-EBYWGIOR.js} +23 -37
- package/dist/{chunk-W7NN2EFL.js → chunk-EGTH3PUK.js} +4 -4
- package/dist/{chunk-XODRTI2W.js → chunk-EMQP2CNF.js} +4 -4
- package/dist/{chunk-PXTJJQKJ.js → chunk-ENFXIYIH.js} +1 -1
- package/dist/{chunk-BLYJZMNE.js → chunk-EYFWEKFJ.js} +2 -2
- package/dist/{chunk-LT3REHJG.js → chunk-F52JLHE3.js} +101 -405
- package/dist/{chunk-WKCYMDTV.js → chunk-FDD7TANX.js} +1 -1
- package/dist/{chunk-3EDQIZV6.js → chunk-G5DQCCPL.js} +2 -2
- package/dist/chunk-GVEF6UDT.js +8 -0
- package/dist/{chunk-2YYXP6XI.js → chunk-H3MAUKL7.js} +13 -29
- package/dist/{chunk-77T2UI6L.js → chunk-H4EHUOWL.js} +308 -209
- package/dist/{chunk-A4UQKKGC.js → chunk-HDOWEXDH.js} +3 -3
- package/dist/{chunk-Y3NVKGGI.js → chunk-HEGPAGJT.js} +2 -2
- package/dist/{chunk-3P4VTL4S.js → chunk-IQZ3T2Q4.js} +1 -1
- package/dist/{chunk-Y2M536WR.js → chunk-JHBNG7OD.js} +17 -0
- package/dist/{chunk-GLPS6QFG.js → chunk-JSH7JEKY.js} +4 -8
- package/dist/{chunk-57BHSFNA.js → chunk-JSMUFZZN.js} +1 -1
- package/dist/{chunk-QIU6DJY6.js → chunk-K4WU4PVL.js} +1 -1
- package/dist/{chunk-V6OGMYAI.js → chunk-KT7X72J4.js} +158 -169
- package/dist/{chunk-G4PROEJI.js → chunk-LGL4QSGB.js} +3 -3
- package/dist/{chunk-AXTQMIIK.js → chunk-LJDGVBOQ.js} +8 -27
- package/dist/{chunk-YGAX72XV.js → chunk-LO2ZWQGL.js} +0 -2
- package/dist/{chunk-NQBSSM5V.js → chunk-M572YFDA.js} +4 -4
- package/dist/{chunk-K4TGNN4P.js → chunk-MEXH366L.js} +2 -2
- package/dist/{chunk-NZ2LHIKD.js → chunk-MR3MLNWV.js} +3 -3
- package/dist/{chunk-TGFZ4UBK.js → chunk-MVDPDVMI.js} +5 -5
- package/dist/{chunk-P25PIADJ.js → chunk-N4GJRJF5.js} +1 -1
- package/dist/{chunk-BE6JLTMI.js → chunk-N6YOACEW.js} +1 -1
- package/dist/{chunk-ED7XNGZD.js → chunk-N7OVIX55.js} +1 -1
- package/dist/{chunk-2LQ5SCPB.js → chunk-NGDOLGBQ.js} +18 -6
- package/dist/{chunk-FTAR3BDS.js → chunk-NJP3DEE5.js} +1 -1
- package/dist/{chunk-MN3AEVR7.js → chunk-O2XHQTBX.js} +4 -4
- package/dist/{chunk-GNLPUGYK.js → chunk-OFOKVLV3.js} +2 -2
- package/dist/{chunk-CBG4E3M3.js → chunk-OMBP3YSV.js} +1 -1
- package/dist/{chunk-A772RAKB.js → chunk-P5XVG4PY.js} +1 -1
- package/dist/{chunk-CKACZXMP.js → chunk-PASEZJC7.js} +1 -1
- package/dist/chunk-PT5PLV3N.js +78 -0
- package/dist/{chunk-3IVTUFBM.js → chunk-PXKDYD3M.js} +1 -1
- package/dist/{chunk-HWBUIBJD.js → chunk-QLEGHL2Q.js} +6 -6
- package/dist/{chunk-3B6MTW5G.js → chunk-QUHSHIAC.js} +3 -0
- package/dist/{chunk-BHOZKBYY.js → chunk-QUPUWR42.js} +1 -1
- package/dist/{chunk-6AZKWCVL.js → chunk-R7ESTJHN.js} +5 -5
- package/dist/{chunk-6FIU2V6Y.js → chunk-SJGIQGEC.js} +1 -1
- package/dist/{chunk-SRDK3XX7.js → chunk-SUVFPJ4J.js} +5 -5
- package/dist/{chunk-WDH5C2NS.js → chunk-TE4IF3MM.js} +1 -1
- package/dist/{chunk-ELM74U2R.js → chunk-TZDRRTAX.js} +2 -2
- package/dist/{chunk-IRTI3AS3.js → chunk-UCX2T4BQ.js} +2 -2
- package/dist/{chunk-2MDGYHWN.js → chunk-UCYSCKZV.js} +1328 -1379
- package/dist/chunk-UIVWOKWT.js +63 -0
- package/dist/{chunk-ZHOI4QMK.js → chunk-UXGLM3B4.js} +1 -1
- package/dist/{chunk-D5T7QOVY.js → chunk-VT5E7OMM.js} +2 -2
- package/dist/{chunk-B3EEDC47.js → chunk-VT6QIVZW.js} +0 -93
- package/dist/{chunk-CBGXKU7Z.js → chunk-VY7PT4SI.js} +4 -4
- package/dist/{chunk-BGGUVHDG.js → chunk-W3FDZPPF.js} +82 -271
- package/dist/{chunk-Q6I2IKJB.js → chunk-W6V2L2FX.js} +2 -2
- package/dist/{chunk-SG76L7C7.js → chunk-WPVDACTL.js} +1 -2
- package/dist/{chunk-UXQAHUGZ.js → chunk-WTK4MLMF.js} +1 -1
- package/dist/{chunk-N2LH7A4X.js → chunk-X7H7TIOT.js} +9 -9
- package/dist/{chunk-S4SVK5DE.js → chunk-YVLANFBK.js} +29 -1
- package/dist/{chunk-XZZTC7E5.js → chunk-Z5T5EPLF.js} +1 -1
- package/dist/{chunk-WNYDGJ3E.js → chunk-ZO7A6VYP.js} +6 -6
- package/dist/{collection-add-products-XL2TAKQD.js → collection-add-products-ABWXUOFD.js} +16 -17
- package/dist/{collection-create-HUNYHKUJ.js → collection-create-BRMP6SIZ.js} +2 -2
- package/dist/{collection-detail-2DSZVOI7.js → collection-detail-AMGR2B5N.js} +17 -18
- package/dist/{collection-edit-OQGYTQDO.js → collection-edit-YLWUEU4C.js} +2 -2
- package/dist/{collection-list-NGCW7OTG.js → collection-list-6HZE43AC.js} +18 -19
- package/dist/{collection-metadata-47N7TUOH.js → collection-metadata-JS5QP3GD.js} +12 -13
- package/dist/{commission-rate-create-BQY3UGKV.js → commission-rate-create-PSPSJZR5.js} +23 -24
- package/dist/{commission-rate-detail-LAZZLZVX.js → commission-rate-detail-U72E4ZIO.js} +13 -14
- package/dist/{commission-rate-edit-DAFXNYYN.js → commission-rate-edit-7NJPABVA.js} +23 -24
- package/dist/{constants-26tEckuq.d.ts → constants-Bahlh59D.d.ts} +8 -4
- package/dist/{customer-detail-D5SSLNFT.js → customer-detail-2RWBN6C4.js} +16 -17
- package/dist/{customer-group-detail-KRT7E2JA.js → customer-group-detail-ED66F7JM.js} +12 -13
- package/dist/{customer-group-list-KKDIESQ6.js → customer-group-list-6YUFKBHH.js} +12 -13
- package/dist/{customer-group-metadata-J6JY7DZ3.js → customer-group-metadata-VQUOWR3P.js} +12 -13
- package/dist/{customer-metadata-AH2LBK4T.js → customer-metadata-47AVJXRI.js} +12 -13
- package/dist/{customers-add-customer-group-AHGAPEIS.js → customers-add-customer-group-HI7J7YKN.js} +12 -13
- package/dist/{edit-inventory-item-ADNLKLCN.js → edit-inventory-item-MBPSBJL4.js} +12 -13
- package/dist/{edit-inventory-item-attributes-XVR2WLDU.js → edit-inventory-item-attributes-RVYWOFAC.js} +12 -13
- package/dist/{edit-reservation-HQQL42QX.js → edit-reservation-7BLGYXCJ.js} +5 -5
- package/dist/{edit-rules-YMKM5JPI.js → edit-rules-ZWDKM5M3.js} +13 -14
- package/dist/index.d.ts +2 -2
- package/dist/index.js +500 -566
- package/dist/{inventory-create-IVESXFSV.js → inventory-create-Q4VBPXSG.js} +15 -16
- package/dist/{inventory-detail-TINIAFVB.js → inventory-detail-6CKO3A3Y.js} +13 -14
- package/dist/{inventory-list-YLIAKQXI.js → inventory-list-2JGX6BRI.js} +2 -2
- package/dist/{inventory-metadata-6INRH2JC.js → inventory-metadata-COGGE5ZR.js} +12 -13
- package/dist/{inventory-stock-6YGTATID.js → inventory-stock-2QIKS7LE.js} +196 -35
- package/dist/{loader-6KDBTRVR.js → loader-OU7SKXOD.js} +4 -2
- package/dist/{location-detail-EK2S7WOK.js → location-detail-HOCNTQ7K.js} +14 -15
- package/dist/{location-fulfillment-providers-KUUNC2KP.js → location-fulfillment-providers-YQ2XFPAJ.js} +15 -16
- package/dist/{location-list-IV323QW2.js → location-list-I2UMU25V.js} +12 -13
- package/dist/{location-sales-channels-EYUXMTW7.js → location-sales-channels-GKIWX6B2.js} +2 -2
- package/dist/{location-service-zone-shipping-option-create-36JZFRGY.js → location-service-zone-shipping-option-create-6GYLJHEC.js} +15 -16
- package/dist/{location-service-zone-shipping-option-pricing-JLGCOZGS.js → location-service-zone-shipping-option-pricing-POBJOF3Z.js} +7 -7
- package/dist/{login-6L3RMREO.js → login-N7CVSQNG.js} +12 -13
- package/dist/{manage-locations-CFTM6DNH.js → manage-locations-TKLOHP3D.js} +1 -1
- package/dist/{marketplace-detail-BAU2MEJT.js → marketplace-detail-K52ALYGT.js} +16 -17
- package/dist/{marketplace-metadata-KRCGKOCA.js → marketplace-metadata-ZSX3IQF4.js} +15 -16
- package/dist/{offers-IFKM6EQT.js → offers-UBD6NICA.js} +6 -4
- package/dist/{order-create-claim-RMDDCUZ6.js → order-create-claim-OVHMMR3J.js} +268 -243
- package/dist/{order-create-edit-PQ54JFZZ.js → order-create-edit-HEOYCYZO.js} +205 -110
- package/dist/{order-create-exchange-T6DBVS75.js → order-create-exchange-L56VKQBL.js} +269 -242
- package/dist/{order-create-refund-OW3MIXBY.js → order-create-refund-UTJKJ3AJ.js} +16 -17
- package/dist/{order-create-return-YCX6C3VP.js → order-create-return-FLGYGUTQ.js} +45 -18
- package/dist/{order-detail-2OAEGBQG.js → order-detail-KAB4MV7X.js} +20 -22
- package/dist/{order-edit-billing-address-VGZBQHF5.js → order-edit-billing-address-RUURVISC.js} +14 -15
- package/dist/{order-edit-email-OOCXVRET.js → order-edit-email-OO7AMRHC.js} +13 -14
- package/dist/{order-edit-shipping-address-B4F3E5RE.js → order-edit-shipping-address-BRRXUE76.js} +13 -14
- package/dist/{order-list-DQTMCEFD.js → order-list-S3AJC6L5.js} +7 -7
- package/dist/{order-metadata-AN6MPHHT.js → order-metadata-OHK6TPAO.js} +12 -13
- package/dist/{order-request-transfer-A2NJSQ4H.js → order-request-transfer-YLMXC7NL.js} +13 -14
- package/dist/pages/index.d.ts +36 -316
- package/dist/pages/index.js +103 -114
- package/dist/{price-list-configuration-XAHXLCXR.js → price-list-configuration-Q5H22ZE2.js} +2 -2
- package/dist/{price-list-create-37SCDSPN.js → price-list-create-OYAVGRM5.js} +19 -20
- package/dist/{price-list-detail-4Q2HBLAM.js → price-list-detail-Q4GFFUFG.js} +18 -19
- package/dist/{price-list-edit-ZVLD4M5T.js → price-list-edit-YY4SXEI3.js} +2 -2
- package/dist/{price-list-list-ER4TOZTY.js → price-list-list-OIOY43TF.js} +4 -4
- package/dist/{price-list-prices-add-UASPZXKT.js → price-list-prices-add-KONZVSVQ.js} +19 -20
- package/dist/{price-list-prices-edit-WHCIGSB2.js → price-list-prices-edit-SMUKU7Q6.js} +14 -15
- package/dist/{product-add-existing-attributes-7HEJUR6J.js → product-add-existing-attributes-GGRRNFDK.js} +57 -21
- package/dist/{product-attributes-MHRXZK5S.js → product-attributes-C3KHQF2I.js} +2 -2
- package/dist/{product-bulk-edit-J6ZP7GGM.js → product-bulk-edit-J3CMBZN2.js} +5 -7
- package/dist/{product-create-KHJWRSUB.js → product-create-UR5OFGUY.js} +20 -21
- package/dist/{product-create-attribute-ZT3VZDNZ.js → product-create-attribute-XARMC6FJ.js} +73 -45
- package/dist/product-create-variant-6VUKYLWE.js +20 -0
- package/dist/{product-detail-GLISGO65.js → product-detail-5IEJPONZ.js} +15 -17
- package/dist/{product-edit-EKAZRIJ6.js → product-edit-F4CKOIUO.js} +2 -4
- package/dist/product-edit-attribute-LG2ZM6HQ.js +175 -0
- package/dist/{product-list-2CTGPDDT.js → product-list-2BWYAATR.js} +18 -19
- package/dist/{product-media-KREKRDOC.js → product-media-EUDMCJ75.js} +5 -5
- package/dist/{product-metadata-O3BAEUYB.js → product-metadata-5WVNFCRL.js} +13 -14
- package/dist/{product-organization-SBQY44IF.js → product-organization-BFWDCHP4.js} +4 -47
- package/dist/{product-sales-channels-TFOGXCMI.js → product-sales-channels-WKQSYOEX.js} +3 -3
- package/dist/{product-shipping-profile-E4HJ4EYW.js → product-shipping-profile-WDLKA2SN.js} +2 -2
- package/dist/{product-tag-create-7JBM6I3V.js → product-tag-create-KQSVCWMC.js} +12 -13
- package/dist/{product-tag-detail-MTFAPSG2.js → product-tag-detail-CWDAY7F3.js} +22 -23
- package/dist/{product-tag-edit-O2ADFDD6.js → product-tag-edit-B4SIZCUK.js} +12 -13
- package/dist/{product-tag-list-EOULJIYQ.js → product-tag-list-2OK3OCMZ.js} +22 -23
- package/dist/{product-tag-metadata-SBOUTUXY.js → product-tag-metadata-MASTMIKE.js} +12 -13
- package/dist/{product-type-detail-H4CZN27J.js → product-type-detail-3X7ZTZJN.js} +17 -18
- package/dist/{product-type-metadata-KN5OXR6J.js → product-type-metadata-6BKTQHQC.js} +12 -13
- package/dist/{product-variant-detail-H2YRFDAU.js → product-variant-detail-PQ4RKPZT.js} +17 -27
- package/dist/{product-variant-edit-6W7LKCEE.js → product-variant-edit-TLF475SH.js} +163 -254
- package/dist/{product-variant-metadata-QESZ7VS2.js → product-variant-metadata-3M72B3PM.js} +12 -13
- package/dist/{promotion-create-TGC6BVWF.js → promotion-create-OKZBUSJD.js} +14 -15
- package/dist/{promotion-detail-VYIXZMMD.js → promotion-detail-MMNEDRXD.js} +15 -16
- package/dist/{promotion-list-C3SKV5BJ.js → promotion-list-DHWW7FTI.js} +4 -4
- package/dist/{refund-reason-create-2KEQFOID.js → refund-reason-create-N4DZ4UHS.js} +12 -13
- package/dist/{refund-reason-edit-E7CB7SM3.js → refund-reason-edit-OAHRDKXW.js} +12 -13
- package/dist/{refund-reason-list-TAHJK4OX.js → refund-reason-list-YLH4LD4S.js} +19 -20
- package/dist/{region-metadata-723RQGHS.js → region-metadata-BJSTTZFL.js} +15 -16
- package/dist/{reservation-create-Y3HG4AZA.js → reservation-create-TXYAY3KF.js} +4 -4
- package/dist/{reservation-detail-HQMADZ56.js → reservation-detail-CEENG76D.js} +16 -17
- package/dist/{reservation-list-YKC3JJ6K.js → reservation-list-SORWYHI4.js} +3 -3
- package/dist/{reservation-metadata-UG4YTEMY.js → reservation-metadata-G3QBZF4K.js} +15 -16
- package/dist/{reset-password-2VNU52CE.js → reset-password-QGQ4GAHK.js} +1 -1
- package/dist/{return-reason-list-IHFO2LJK.js → return-reason-list-7HTIV7NK.js} +7 -7
- package/dist/{sales-channel-add-products-YZTQ2SDS.js → sales-channel-add-products-3VZ5SLLP.js} +16 -17
- package/dist/{sales-channel-create-BSNCLZWR.js → sales-channel-create-XBR3QESI.js} +2 -2
- package/dist/{sales-channel-detail-67G7K3IE.js → sales-channel-detail-PHRSKCNM.js} +17 -18
- package/dist/{sales-channel-edit-FUDXMZYV.js → sales-channel-edit-ILBZBQP4.js} +2 -2
- package/dist/{sales-channel-list-GYLGH4U7.js → sales-channel-list-3GCESYAM.js} +13 -14
- package/dist/{sales-channel-metadata-H6RSHKVP.js → sales-channel-metadata-HVPGS756.js} +12 -13
- package/dist/{shipping-option-type-create-QAOW7753.js → shipping-option-type-create-3ZKT7WAC.js} +12 -13
- package/dist/{shipping-option-type-detail-QGWVDTDU.js → shipping-option-type-detail-IYXWAK7F.js} +14 -15
- package/dist/{shipping-option-type-edit-WXYBDRNY.js → shipping-option-type-edit-QRXYNNRW.js} +12 -13
- package/dist/{shipping-option-type-list-YSWP6DSC.js → shipping-option-type-list-MLIDCA3L.js} +14 -15
- package/dist/{shipping-profile-metadata-UE53IA3J.js → shipping-profile-metadata-T4HPNTLH.js} +12 -13
- package/dist/{store-bulk-edit-UYNQ2CPG.js → store-bulk-edit-BNF3HH5K.js} +2 -2
- package/dist/{store-create-WNFRHXWR.js → store-create-KFLNOD73.js} +15 -16
- package/dist/{store-details-R2GQU7HE.js → store-details-E347PHAN.js} +21 -36
- package/dist/{store-edit-UW3QOFFX.js → store-edit-Y6NLBIOP.js} +6 -6
- package/dist/{store-list-5CV7VJLO.js → store-list-S2L44OLB.js} +18 -19
- package/dist/{store-member-invite-M4NVBUXM.js → store-member-invite-J5XSPWMW.js} +1 -1
- package/dist/{tax-region-create-3KVECMFN.js → tax-region-create-MIDQXQS4.js} +13 -14
- package/dist/{tax-region-detail-AOT4X4DZ.js → tax-region-detail-AC7B3G57.js} +14 -15
- package/dist/{tax-region-edit-5T7VHKIA.js → tax-region-edit-5CORTHTC.js} +12 -13
- package/dist/{tax-region-metadata-RSZCJGJT.js → tax-region-metadata-QQZIQPAD.js} +12 -13
- package/dist/{tax-region-province-detail-XEMIX5SQ.js → tax-region-province-detail-2MGX7LEO.js} +14 -15
- package/dist/{tax-region-tax-override-create-KVVY4AF2.js → tax-region-tax-override-create-IONGD4TG.js} +21 -22
- package/dist/{tax-region-tax-override-edit-TVX7SMJD.js → tax-region-tax-override-edit-RIT6YRVK.js} +21 -22
- package/dist/{user-detail-W7DGVXDZ.js → user-detail-MMVBN3AE.js} +1 -1
- package/dist/{user-metadata-3AFZX3DM.js → user-metadata-OZLU3Y2X.js} +12 -13
- package/package.json +5 -5
- package/dist/chunk-ABFL4ACD.js +0 -207
- package/dist/chunk-IEPNHH7Z.js +0 -170
- package/dist/chunk-J65IXAGI.js +0 -292
- package/dist/chunk-QSGR43JM.js +0 -30
- package/dist/chunk-RQ4NMLSS.js +0 -8
- package/dist/chunk-RXM4B6HR.js +0 -8
- package/dist/chunk-U7XILJH6.js +0 -423
- package/dist/chunk-UM7ZR3VU.js +0 -14
- package/dist/chunk-UR6HGBFE.js +0 -652
- package/dist/chunk-V5XHY5LP.js +0 -39
- package/dist/chunk-WV4SQ57G.js +0 -141
- package/dist/chunk-ZZ3XFIEM.js +0 -84
- package/dist/order-allocate-items-DJ2V4B7A.js +0 -563
- package/dist/order-create-fulfillment-SMSUJSBN.js +0 -644
- package/dist/order-create-shipment-5ZAWH5CZ.js +0 -215
- package/dist/order-receive-return-DZ4IUOHY.js +0 -563
- package/dist/product-brand-create-B3ZJGHUQ.js +0 -171
- package/dist/product-brand-detail-6MPQ3UFN.js +0 -100
- package/dist/product-brand-edit-3TQDHZNN.js +0 -179
- package/dist/product-brand-list-ZBPBSRQN.js +0 -30
- package/dist/product-brand-metadata-EAMW6PQJ.js +0 -87
- package/dist/product-create-option-NIAP75EE.js +0 -130
- package/dist/product-create-variant-LCE47YFO.js +0 -60
- package/dist/product-edit-option-OZUZGMIM.js +0 -166
- package/dist/product-prices-R5JOHVGS.js +0 -267
- package/dist/product-stock-EIP2XJUR.js +0 -545
- package/dist/product-variant-manage-inventory-items-Q5MJG3EJ.js +0 -337
- package/dist/{chunk-WVKVPGJW.js → chunk-FNKBJCNF.js} +3 -3
- package/dist/{promotion-add-campaign-O3RTMS3W.js → promotion-add-campaign-S3JJSFHT.js} +2 -2
|
@@ -6,28 +6,25 @@ import {
|
|
|
6
6
|
} from "./chunk-DBYUB2YI.js";
|
|
7
7
|
import {
|
|
8
8
|
useOrderTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3XSC3NEG.js";
|
|
10
10
|
import {
|
|
11
11
|
useMemberTableQuery
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MR3MLNWV.js";
|
|
13
13
|
import {
|
|
14
14
|
useOrderTableQuery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QUHSHIAC.js";
|
|
16
16
|
import {
|
|
17
17
|
DateCell
|
|
18
18
|
} from "./chunk-25LYVP3C.js";
|
|
19
|
-
import {
|
|
20
|
-
getStylizedAmount
|
|
21
|
-
} from "./chunk-PXYDR7WQ.js";
|
|
22
19
|
import {
|
|
23
20
|
DataTableStatusCell
|
|
24
21
|
} from "./chunk-MDABSESI.js";
|
|
25
22
|
import {
|
|
26
23
|
useProductTableColumns
|
|
27
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OMBP3YSV.js";
|
|
28
25
|
import {
|
|
29
26
|
useProductTableFilters
|
|
30
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JSH7JEKY.js";
|
|
31
28
|
import {
|
|
32
29
|
useProductTableQuery
|
|
33
30
|
} from "./chunk-LYZDVZWA.js";
|
|
@@ -46,10 +43,7 @@ import {
|
|
|
46
43
|
} from "./chunk-E74OUNA3.js";
|
|
47
44
|
import {
|
|
48
45
|
require_dist
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import {
|
|
51
|
-
useSubscriptionPlans
|
|
52
|
-
} from "./chunk-AXTQMIIK.js";
|
|
46
|
+
} from "./chunk-UCYSCKZV.js";
|
|
53
47
|
import {
|
|
54
48
|
useApproveSeller,
|
|
55
49
|
useDeleteSellerInvite,
|
|
@@ -63,7 +57,7 @@ import {
|
|
|
63
57
|
} from "./chunk-LEG67A2R.js";
|
|
64
58
|
import {
|
|
65
59
|
useOrders
|
|
66
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-VT6QIVZW.js";
|
|
67
61
|
import {
|
|
68
62
|
ActionMenu
|
|
69
63
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -77,7 +71,7 @@ import {
|
|
|
77
71
|
// src/pages/stores/store-details/components/store-details.tsx
|
|
78
72
|
import { Children as Children3, useState as useState2 } from "react";
|
|
79
73
|
import { useParams } from "react-router-dom";
|
|
80
|
-
import { useTranslation as
|
|
74
|
+
import { useTranslation as useTranslation12 } from "react-i18next";
|
|
81
75
|
var import_types3 = __toESM(require_dist(), 1);
|
|
82
76
|
|
|
83
77
|
// src/pages/stores/store-details/components/store-general-section.tsx
|
|
@@ -451,67 +445,10 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
451
445
|
] });
|
|
452
446
|
};
|
|
453
447
|
|
|
454
|
-
// src/pages/stores/store-details/components/store-subscription-section.tsx
|
|
455
|
-
import { CurrencyDollar, TriangleRightMini } from "@medusajs/icons";
|
|
456
|
-
import { Container as Container6, Heading as Heading6, Text as Text5 } from "@medusajs/ui";
|
|
457
|
-
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
458
|
-
import { Link } from "react-router-dom";
|
|
459
|
-
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
460
|
-
var StoreSubscriptionSection = ({
|
|
461
|
-
seller
|
|
462
|
-
}) => {
|
|
463
|
-
const { t } = useTranslation7();
|
|
464
|
-
const { subscription_plans } = useSubscriptionPlans({
|
|
465
|
-
currency_code: seller.currency_code,
|
|
466
|
-
limit: 100,
|
|
467
|
-
offset: 0
|
|
468
|
-
});
|
|
469
|
-
const plan = subscription_plans?.find(
|
|
470
|
-
(p) => p.currency_code === seller.currency_code
|
|
471
|
-
);
|
|
472
|
-
if (!plan) {
|
|
473
|
-
return null;
|
|
474
|
-
}
|
|
475
|
-
const override = plan.overrides?.find(
|
|
476
|
-
(o) => o.reference === "seller" && o.reference_id === seller.id
|
|
477
|
-
);
|
|
478
|
-
const effectiveAmount = override?.monthly_amount ?? plan.monthly_amount;
|
|
479
|
-
return /* @__PURE__ */ jsxs7(Container6, { className: "p-0", children: [
|
|
480
|
-
/* @__PURE__ */ jsx7("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx7(Heading6, { level: "h2", children: t("store.subscription.header") }) }),
|
|
481
|
-
/* @__PURE__ */ jsx7("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx7(
|
|
482
|
-
Link,
|
|
483
|
-
{
|
|
484
|
-
to: `/subscription-plans/${plan.id}`,
|
|
485
|
-
className: "group outline-none rounded-md focus-within:shadow-borders-interactive-with-focus [&:hover>div]:bg-ui-bg-component-hover",
|
|
486
|
-
children: /* @__PURE__ */ jsx7("div", { className: "shadow-elevation-card-rest bg-ui-bg-component rounded-md px-4 py-2 transition-colors", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-4", children: [
|
|
487
|
-
/* @__PURE__ */ jsx7(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx7(CurrencyDollar, {}) }),
|
|
488
|
-
/* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col", children: [
|
|
489
|
-
/* @__PURE__ */ jsx7(Text5, { size: "small", leading: "compact", weight: "plus", children: plan.currency_code.toUpperCase() }),
|
|
490
|
-
/* @__PURE__ */ jsxs7(
|
|
491
|
-
Text5,
|
|
492
|
-
{
|
|
493
|
-
size: "small",
|
|
494
|
-
leading: "compact",
|
|
495
|
-
className: "text-ui-fg-subtle",
|
|
496
|
-
children: [
|
|
497
|
-
getStylizedAmount(effectiveAmount, plan.currency_code),
|
|
498
|
-
"/",
|
|
499
|
-
t("store.subscription.month")
|
|
500
|
-
]
|
|
501
|
-
}
|
|
502
|
-
)
|
|
503
|
-
] }),
|
|
504
|
-
/* @__PURE__ */ jsx7("div", { className: "flex size-7 items-center justify-center", children: /* @__PURE__ */ jsx7(TriangleRightMini, { className: "text-ui-fg-muted" }) })
|
|
505
|
-
] }) })
|
|
506
|
-
}
|
|
507
|
-
) })
|
|
508
|
-
] });
|
|
509
|
-
};
|
|
510
|
-
|
|
511
448
|
// src/pages/stores/store-details/components/store-members-section/store-members-section.tsx
|
|
512
|
-
import { Button, Container as
|
|
513
|
-
import { useTranslation as
|
|
514
|
-
import { Link
|
|
449
|
+
import { Button, Container as Container6, Heading as Heading6 } from "@medusajs/ui";
|
|
450
|
+
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
451
|
+
import { Link } from "react-router-dom";
|
|
515
452
|
|
|
516
453
|
// src/pages/stores/store-details/components/store-members-section/store-members-data-table.tsx
|
|
517
454
|
import { useMemo } from "react";
|
|
@@ -519,9 +456,9 @@ import { ArrowPath, Link as LinkIcon, Trash, User } from "@medusajs/icons";
|
|
|
519
456
|
import { Badge as Badge2, toast } from "@medusajs/ui";
|
|
520
457
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
521
458
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
522
|
-
import { useTranslation as
|
|
459
|
+
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
523
460
|
var import_types2 = __toESM(require_dist(), 1);
|
|
524
|
-
import { jsx as
|
|
461
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
525
462
|
var PAGE_SIZE = 20;
|
|
526
463
|
var ROLE_TRANSLATION_MAP = {
|
|
527
464
|
[import_types2.SellerRole.SELLER_ADMINISTRATION]: "users.roles.administration",
|
|
@@ -549,7 +486,7 @@ var buildVendorInviteUrl = (token) => {
|
|
|
549
486
|
var StoreMembersDataTable = ({
|
|
550
487
|
sellerId
|
|
551
488
|
}) => {
|
|
552
|
-
const { t } =
|
|
489
|
+
const { t } = useTranslation7();
|
|
553
490
|
const { raw } = useMemberTableQuery({ pageSize: PAGE_SIZE });
|
|
554
491
|
const {
|
|
555
492
|
seller_members,
|
|
@@ -600,7 +537,7 @@ var StoreMembersDataTable = ({
|
|
|
600
537
|
if (isError) {
|
|
601
538
|
throw error;
|
|
602
539
|
}
|
|
603
|
-
return /* @__PURE__ */
|
|
540
|
+
return /* @__PURE__ */ jsx7(
|
|
604
541
|
_DataTable,
|
|
605
542
|
{
|
|
606
543
|
table,
|
|
@@ -620,21 +557,21 @@ var StoreMembersDataTable = ({
|
|
|
620
557
|
"stores.emptyStates.users.message",
|
|
621
558
|
"Invite the first user to manage this store."
|
|
622
559
|
),
|
|
623
|
-
icon: /* @__PURE__ */
|
|
560
|
+
icon: /* @__PURE__ */ jsx7(User, { className: "text-ui-fg-subtle" })
|
|
624
561
|
}
|
|
625
562
|
}
|
|
626
563
|
);
|
|
627
564
|
};
|
|
628
565
|
var columnHelper = createColumnHelper();
|
|
629
566
|
var useColumns = (sellerId) => {
|
|
630
|
-
const { t } =
|
|
567
|
+
const { t } = useTranslation7();
|
|
631
568
|
return useMemo(
|
|
632
569
|
() => [
|
|
633
570
|
columnHelper.accessor("email", {
|
|
634
|
-
header: () => /* @__PURE__ */
|
|
635
|
-
cell: ({ row }) => /* @__PURE__ */
|
|
636
|
-
/* @__PURE__ */
|
|
637
|
-
row.original.is_owner && /* @__PURE__ */
|
|
571
|
+
header: () => /* @__PURE__ */ jsx7("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx7("span", { children: t("fields.email") }) }),
|
|
572
|
+
cell: ({ row }) => /* @__PURE__ */ jsxs7("div", { className: "flex size-full items-center gap-x-2 overflow-hidden", children: [
|
|
573
|
+
/* @__PURE__ */ jsx7("span", { className: "truncate", children: row.original.email }),
|
|
574
|
+
row.original.is_owner && /* @__PURE__ */ jsx7(
|
|
638
575
|
Badge2,
|
|
639
576
|
{
|
|
640
577
|
size: "2xsmall",
|
|
@@ -646,20 +583,20 @@ var useColumns = (sellerId) => {
|
|
|
646
583
|
] })
|
|
647
584
|
}),
|
|
648
585
|
columnHelper.accessor("role_id", {
|
|
649
|
-
header: () => /* @__PURE__ */
|
|
586
|
+
header: () => /* @__PURE__ */ jsx7("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx7("span", { children: t("fields.role") }) }),
|
|
650
587
|
cell: ({ row }) => {
|
|
651
588
|
const roleId = row.original.role_id;
|
|
652
589
|
const translationKey = ROLE_TRANSLATION_MAP[roleId];
|
|
653
590
|
const label = translationKey ? t(translationKey) : "-";
|
|
654
|
-
return /* @__PURE__ */
|
|
591
|
+
return /* @__PURE__ */ jsx7("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx7("span", { className: "truncate", children: label }) });
|
|
655
592
|
}
|
|
656
593
|
}),
|
|
657
594
|
columnHelper.display({
|
|
658
595
|
id: "status",
|
|
659
|
-
header: () => /* @__PURE__ */
|
|
596
|
+
header: () => /* @__PURE__ */ jsx7("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx7("span", { children: t("fields.status") }) }),
|
|
660
597
|
cell: ({ row }) => {
|
|
661
598
|
const isPending = row.original.kind === "invite";
|
|
662
|
-
return /* @__PURE__ */
|
|
599
|
+
return /* @__PURE__ */ jsx7(DataTableStatusCell, { color: isPending ? "orange" : "green", children: isPending ? t("users.status.pending") : t("users.status.active") });
|
|
663
600
|
}
|
|
664
601
|
}),
|
|
665
602
|
columnHelper.display({
|
|
@@ -667,7 +604,7 @@ var useColumns = (sellerId) => {
|
|
|
667
604
|
cell: ({ row }) => {
|
|
668
605
|
if (row.original.kind === "member") {
|
|
669
606
|
if (row.original.is_owner) return null;
|
|
670
|
-
return /* @__PURE__ */
|
|
607
|
+
return /* @__PURE__ */ jsx7(
|
|
671
608
|
MemberActions,
|
|
672
609
|
{
|
|
673
610
|
member: row.original.member,
|
|
@@ -675,7 +612,7 @@ var useColumns = (sellerId) => {
|
|
|
675
612
|
}
|
|
676
613
|
);
|
|
677
614
|
}
|
|
678
|
-
return /* @__PURE__ */
|
|
615
|
+
return /* @__PURE__ */ jsx7(InviteActions, { invite: row.original, sellerId });
|
|
679
616
|
}
|
|
680
617
|
})
|
|
681
618
|
],
|
|
@@ -686,7 +623,7 @@ var InviteActions = ({
|
|
|
686
623
|
invite,
|
|
687
624
|
sellerId
|
|
688
625
|
}) => {
|
|
689
|
-
const { t } =
|
|
626
|
+
const { t } = useTranslation7();
|
|
690
627
|
const { mutateAsync: resend } = useResendSellerInvite(sellerId);
|
|
691
628
|
const { mutateAsync: deleteInvite } = useDeleteSellerInvite(sellerId);
|
|
692
629
|
const handleResend = async () => {
|
|
@@ -730,12 +667,12 @@ var InviteActions = ({
|
|
|
730
667
|
{
|
|
731
668
|
actions: [
|
|
732
669
|
{
|
|
733
|
-
icon: /* @__PURE__ */
|
|
670
|
+
icon: /* @__PURE__ */ jsx7(ArrowPath, {}),
|
|
734
671
|
label: t("users.resendInvite"),
|
|
735
672
|
onClick: handleResend
|
|
736
673
|
},
|
|
737
674
|
{
|
|
738
|
-
icon: /* @__PURE__ */
|
|
675
|
+
icon: /* @__PURE__ */ jsx7(LinkIcon, {}),
|
|
739
676
|
label: t("users.copyInviteLink"),
|
|
740
677
|
onClick: handleCopyLink
|
|
741
678
|
}
|
|
@@ -744,20 +681,20 @@ var InviteActions = ({
|
|
|
744
681
|
{
|
|
745
682
|
actions: [
|
|
746
683
|
{
|
|
747
|
-
icon: /* @__PURE__ */
|
|
684
|
+
icon: /* @__PURE__ */ jsx7(Trash, {}),
|
|
748
685
|
label: t("actions.delete"),
|
|
749
686
|
onClick: handleDelete
|
|
750
687
|
}
|
|
751
688
|
]
|
|
752
689
|
}
|
|
753
690
|
];
|
|
754
|
-
return /* @__PURE__ */
|
|
691
|
+
return /* @__PURE__ */ jsx7(ActionMenu, { groups });
|
|
755
692
|
};
|
|
756
693
|
var MemberActions = ({
|
|
757
694
|
member,
|
|
758
695
|
sellerId
|
|
759
696
|
}) => {
|
|
760
|
-
const { t } =
|
|
697
|
+
const { t } = useTranslation7();
|
|
761
698
|
const { mutateAsync: removeMember } = useRemoveSellerMember(
|
|
762
699
|
sellerId,
|
|
763
700
|
member.id
|
|
@@ -774,14 +711,14 @@ var MemberActions = ({
|
|
|
774
711
|
toast.error(e.message);
|
|
775
712
|
}
|
|
776
713
|
};
|
|
777
|
-
return /* @__PURE__ */
|
|
714
|
+
return /* @__PURE__ */ jsx7(
|
|
778
715
|
ActionMenu,
|
|
779
716
|
{
|
|
780
717
|
groups: [
|
|
781
718
|
{
|
|
782
719
|
actions: [
|
|
783
720
|
{
|
|
784
|
-
icon: /* @__PURE__ */
|
|
721
|
+
icon: /* @__PURE__ */ jsx7(Trash, {}),
|
|
785
722
|
label: t("actions.remove"),
|
|
786
723
|
onClick: handleRemove
|
|
787
724
|
}
|
|
@@ -793,15 +730,15 @@ var MemberActions = ({
|
|
|
793
730
|
};
|
|
794
731
|
|
|
795
732
|
// src/pages/stores/store-details/components/store-members-section/store-members-section.tsx
|
|
796
|
-
import { jsx as
|
|
733
|
+
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
797
734
|
var StoreMembersSection = ({ sellerId }) => {
|
|
798
|
-
const { t } =
|
|
799
|
-
return /* @__PURE__ */
|
|
800
|
-
/* @__PURE__ */
|
|
801
|
-
/* @__PURE__ */
|
|
802
|
-
/* @__PURE__ */
|
|
735
|
+
const { t } = useTranslation8();
|
|
736
|
+
return /* @__PURE__ */ jsxs8(Container6, { className: "divide-y p-0", children: [
|
|
737
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
738
|
+
/* @__PURE__ */ jsx8(Heading6, { level: "h2", children: t("users.domain", "Users") }),
|
|
739
|
+
/* @__PURE__ */ jsx8(Link, { to: "invite", children: /* @__PURE__ */ jsx8(Button, { size: "small", variant: "secondary", children: t("stores.members.addUser.action", "Add") }) })
|
|
803
740
|
] }),
|
|
804
|
-
/* @__PURE__ */
|
|
741
|
+
/* @__PURE__ */ jsx8(StoreMembersDataTable, { sellerId })
|
|
805
742
|
] });
|
|
806
743
|
};
|
|
807
744
|
|
|
@@ -810,17 +747,17 @@ import { useState } from "react";
|
|
|
810
747
|
import { ExclamationCircleSolid } from "@medusajs/icons";
|
|
811
748
|
import {
|
|
812
749
|
Button as Button2,
|
|
813
|
-
Container as
|
|
814
|
-
Heading as
|
|
750
|
+
Container as Container7,
|
|
751
|
+
Heading as Heading7,
|
|
815
752
|
Prompt,
|
|
816
|
-
Text as
|
|
753
|
+
Text as Text5,
|
|
817
754
|
Textarea,
|
|
818
755
|
toast as toast2
|
|
819
756
|
} from "@medusajs/ui";
|
|
820
|
-
import { useTranslation as
|
|
821
|
-
import { jsx as
|
|
757
|
+
import { useTranslation as useTranslation9 } from "react-i18next";
|
|
758
|
+
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
822
759
|
var StoreRequestSection = ({ seller }) => {
|
|
823
|
-
const { t } =
|
|
760
|
+
const { t } = useTranslation9();
|
|
824
761
|
const { mutateAsync: approveSeller, isPending: isApproving } = useApproveSeller(seller.id);
|
|
825
762
|
const { mutateAsync: suspendSeller, isPending: isRejecting } = useSuspendSeller(seller.id);
|
|
826
763
|
const { seller_members } = useSellerMembers(seller.id, { limit: 100 });
|
|
@@ -829,17 +766,17 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
829
766
|
);
|
|
830
767
|
const ownerFullName = [owner?.member?.first_name, owner?.member?.last_name].filter(Boolean).join(" ").trim();
|
|
831
768
|
const requesterLabel = ownerFullName || owner?.member?.email || seller.email || seller.name;
|
|
832
|
-
return /* @__PURE__ */
|
|
833
|
-
/* @__PURE__ */
|
|
834
|
-
/* @__PURE__ */
|
|
835
|
-
/* @__PURE__ */
|
|
769
|
+
return /* @__PURE__ */ jsxs9(Container7, { className: "p-0", children: [
|
|
770
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-x-3 border-b border-ui-border-base px-6 py-4", children: [
|
|
771
|
+
/* @__PURE__ */ jsx9(ExclamationCircleSolid, { className: "text-ui-tag-blue-icon" }),
|
|
772
|
+
/* @__PURE__ */ jsx9(Heading7, { level: "h2", children: t("stores.request.title") })
|
|
836
773
|
] }),
|
|
837
|
-
/* @__PURE__ */
|
|
838
|
-
/* @__PURE__ */
|
|
839
|
-
/* @__PURE__ */
|
|
774
|
+
/* @__PURE__ */ jsx9("div", { className: "px-6 py-4", children: /* @__PURE__ */ jsx9(Text5, { className: "text-ui-fg-subtle", children: t("stores.request.description", { requester: requesterLabel }) }) }),
|
|
775
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex items-center justify-end gap-x-2 rounded-b-lg border-t border-ui-border-base bg-ui-bg-subtle px-6 py-4", children: [
|
|
776
|
+
/* @__PURE__ */ jsx9(
|
|
840
777
|
RequestActionPrompt,
|
|
841
778
|
{
|
|
842
|
-
trigger: /* @__PURE__ */
|
|
779
|
+
trigger: /* @__PURE__ */ jsx9(Button2, { size: "small", variant: "secondary", children: t("stores.request.confirm") }),
|
|
843
780
|
title: t("stores.request.confirmTitle", "Confirm request"),
|
|
844
781
|
description: t(
|
|
845
782
|
"stores.request.confirmDescription",
|
|
@@ -862,10 +799,10 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
862
799
|
}
|
|
863
800
|
}
|
|
864
801
|
),
|
|
865
|
-
/* @__PURE__ */
|
|
802
|
+
/* @__PURE__ */ jsx9(
|
|
866
803
|
RequestActionPrompt,
|
|
867
804
|
{
|
|
868
|
-
trigger: /* @__PURE__ */
|
|
805
|
+
trigger: /* @__PURE__ */ jsx9(Button2, { size: "small", variant: "secondary", children: t("stores.request.reject") }),
|
|
869
806
|
title: t("stores.request.rejectTitle", "Reject request"),
|
|
870
807
|
description: t(
|
|
871
808
|
"stores.request.rejectDescription",
|
|
@@ -900,7 +837,7 @@ var RequestActionPrompt = ({
|
|
|
900
837
|
isLoading,
|
|
901
838
|
onConfirm
|
|
902
839
|
}) => {
|
|
903
|
-
const { t } =
|
|
840
|
+
const { t } = useTranslation9();
|
|
904
841
|
const [open, setOpen] = useState(false);
|
|
905
842
|
const [note, setNote] = useState("");
|
|
906
843
|
const handleSubmit = async () => {
|
|
@@ -911,25 +848,25 @@ var RequestActionPrompt = ({
|
|
|
911
848
|
} catch {
|
|
912
849
|
}
|
|
913
850
|
};
|
|
914
|
-
return /* @__PURE__ */
|
|
915
|
-
/* @__PURE__ */
|
|
916
|
-
/* @__PURE__ */
|
|
917
|
-
/* @__PURE__ */
|
|
918
|
-
/* @__PURE__ */
|
|
919
|
-
/* @__PURE__ */
|
|
851
|
+
return /* @__PURE__ */ jsxs9(Prompt, { open, onOpenChange: setOpen, children: [
|
|
852
|
+
/* @__PURE__ */ jsx9(Prompt.Trigger, { asChild: true, children: trigger }),
|
|
853
|
+
/* @__PURE__ */ jsxs9(Prompt.Content, { children: [
|
|
854
|
+
/* @__PURE__ */ jsxs9(Prompt.Header, { children: [
|
|
855
|
+
/* @__PURE__ */ jsx9(Prompt.Title, { children: title }),
|
|
856
|
+
/* @__PURE__ */ jsx9(Prompt.Description, { children: description })
|
|
920
857
|
] }),
|
|
921
|
-
/* @__PURE__ */
|
|
922
|
-
/* @__PURE__ */
|
|
923
|
-
/* @__PURE__ */
|
|
858
|
+
/* @__PURE__ */ jsx9("div", { className: "border-ui-border-base border-t mt-3" }),
|
|
859
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-y-3 px-6 py-3", children: [
|
|
860
|
+
/* @__PURE__ */ jsxs9(Text5, { size: "small", weight: "plus", className: "text-ui-fg-base", children: [
|
|
924
861
|
t("stores.request.noteLabel", "Notes for vendor"),
|
|
925
862
|
" ",
|
|
926
|
-
/* @__PURE__ */
|
|
863
|
+
/* @__PURE__ */ jsxs9("span", { className: "text-ui-fg-muted font-normal", children: [
|
|
927
864
|
"(",
|
|
928
865
|
t("fields.optional", "Optional"),
|
|
929
866
|
")"
|
|
930
867
|
] })
|
|
931
868
|
] }),
|
|
932
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ jsx9(
|
|
933
870
|
Textarea,
|
|
934
871
|
{
|
|
935
872
|
placeholder: notePlaceholder,
|
|
@@ -938,10 +875,10 @@ var RequestActionPrompt = ({
|
|
|
938
875
|
}
|
|
939
876
|
)
|
|
940
877
|
] }),
|
|
941
|
-
/* @__PURE__ */
|
|
942
|
-
/* @__PURE__ */
|
|
943
|
-
/* @__PURE__ */
|
|
944
|
-
/* @__PURE__ */
|
|
878
|
+
/* @__PURE__ */ jsx9("div", { className: "border-ui-border-base border-t mt-2" }),
|
|
879
|
+
/* @__PURE__ */ jsxs9(Prompt.Footer, { children: [
|
|
880
|
+
/* @__PURE__ */ jsx9(Prompt.Cancel, { disabled: isLoading, children: t("actions.cancel") }),
|
|
881
|
+
/* @__PURE__ */ jsx9(
|
|
945
882
|
Button2,
|
|
946
883
|
{
|
|
947
884
|
size: "small",
|
|
@@ -958,16 +895,16 @@ var RequestActionPrompt = ({
|
|
|
958
895
|
|
|
959
896
|
// src/pages/stores/store-details/components/store-orders-section.tsx
|
|
960
897
|
import { ShoppingCart } from "@medusajs/icons";
|
|
961
|
-
import { Container as
|
|
898
|
+
import { Container as Container8, Heading as Heading8 } from "@medusajs/ui";
|
|
962
899
|
import { keepPreviousData as keepPreviousData2 } from "@tanstack/react-query";
|
|
963
|
-
import { useTranslation as
|
|
964
|
-
import { jsx as
|
|
900
|
+
import { useTranslation as useTranslation10 } from "react-i18next";
|
|
901
|
+
import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
965
902
|
var PAGE_SIZE2 = 10;
|
|
966
903
|
var PREFIX = "store-orders";
|
|
967
904
|
var DEFAULT_RELATIONS = "*customer,*items,*sales_channel";
|
|
968
905
|
var DEFAULT_FIELDS = "id,status,display_id,created_at,email,fulfillment_status,payment_status,total,currency_code";
|
|
969
906
|
var StoreOrdersSection = ({ sellerId }) => {
|
|
970
|
-
const { t } =
|
|
907
|
+
const { t } = useTranslation10();
|
|
971
908
|
const { searchParams, raw } = useOrderTableQuery({
|
|
972
909
|
pageSize: PAGE_SIZE2,
|
|
973
910
|
prefix: PREFIX
|
|
@@ -997,16 +934,16 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
997
934
|
if (isError) {
|
|
998
935
|
throw error;
|
|
999
936
|
}
|
|
1000
|
-
return /* @__PURE__ */
|
|
1001
|
-
/* @__PURE__ */
|
|
937
|
+
return /* @__PURE__ */ jsxs10(Container8, { className: "divide-y p-0", "data-testid": "store-orders-section", children: [
|
|
938
|
+
/* @__PURE__ */ jsx10(
|
|
1002
939
|
"div",
|
|
1003
940
|
{
|
|
1004
941
|
className: "flex items-center justify-between px-6 py-4",
|
|
1005
942
|
"data-testid": "store-orders-section-header",
|
|
1006
|
-
children: /* @__PURE__ */
|
|
943
|
+
children: /* @__PURE__ */ jsx10(Heading8, { level: "h2", "data-testid": "store-orders-section-heading", children: t("orders.domain") })
|
|
1007
944
|
}
|
|
1008
945
|
),
|
|
1009
|
-
/* @__PURE__ */
|
|
946
|
+
/* @__PURE__ */ jsx10(
|
|
1010
947
|
_DataTable,
|
|
1011
948
|
{
|
|
1012
949
|
columns,
|
|
@@ -1031,7 +968,7 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
1031
968
|
"stores.emptyStates.orders.message",
|
|
1032
969
|
"Orders placed at this store will appear here."
|
|
1033
970
|
),
|
|
1034
|
-
icon: /* @__PURE__ */
|
|
971
|
+
icon: /* @__PURE__ */ jsx10(ShoppingCart, { className: "text-ui-fg-subtle" })
|
|
1035
972
|
}
|
|
1036
973
|
}
|
|
1037
974
|
)
|
|
@@ -1040,16 +977,16 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
1040
977
|
|
|
1041
978
|
// src/pages/stores/store-details/components/store-products-section.tsx
|
|
1042
979
|
import { Tag } from "@medusajs/icons";
|
|
1043
|
-
import { Container as
|
|
980
|
+
import { Container as Container9, Heading as Heading9 } from "@medusajs/ui";
|
|
1044
981
|
import { keepPreviousData as keepPreviousData3 } from "@tanstack/react-query";
|
|
1045
|
-
import { useTranslation as
|
|
1046
|
-
import { jsx as
|
|
982
|
+
import { useTranslation as useTranslation11 } from "react-i18next";
|
|
983
|
+
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1047
984
|
var PAGE_SIZE3 = 10;
|
|
1048
985
|
var PREFIX2 = "store-products";
|
|
1049
986
|
var StoreProductsSection = ({
|
|
1050
987
|
sellerId
|
|
1051
988
|
}) => {
|
|
1052
|
-
const { t } =
|
|
989
|
+
const { t } = useTranslation11();
|
|
1053
990
|
const { searchParams, raw } = useProductTableQuery({
|
|
1054
991
|
pageSize: PAGE_SIZE3,
|
|
1055
992
|
prefix: PREFIX2
|
|
@@ -1074,16 +1011,16 @@ var StoreProductsSection = ({
|
|
|
1074
1011
|
if (isError) {
|
|
1075
1012
|
throw error;
|
|
1076
1013
|
}
|
|
1077
|
-
return /* @__PURE__ */
|
|
1078
|
-
/* @__PURE__ */
|
|
1014
|
+
return /* @__PURE__ */ jsxs11(Container9, { className: "divide-y p-0", "data-testid": "store-products-section", children: [
|
|
1015
|
+
/* @__PURE__ */ jsx11(
|
|
1079
1016
|
"div",
|
|
1080
1017
|
{
|
|
1081
1018
|
className: "flex items-center justify-between px-6 py-4",
|
|
1082
1019
|
"data-testid": "store-products-section-header",
|
|
1083
|
-
children: /* @__PURE__ */
|
|
1020
|
+
children: /* @__PURE__ */ jsx11(Heading9, { level: "h2", "data-testid": "store-products-section-heading", children: t("products.domain") })
|
|
1084
1021
|
}
|
|
1085
1022
|
),
|
|
1086
|
-
/* @__PURE__ */
|
|
1023
|
+
/* @__PURE__ */ jsx11(
|
|
1087
1024
|
_DataTable,
|
|
1088
1025
|
{
|
|
1089
1026
|
table,
|
|
@@ -1108,7 +1045,7 @@ var StoreProductsSection = ({
|
|
|
1108
1045
|
"stores.emptyStates.products.message",
|
|
1109
1046
|
"Products published by this store will appear here."
|
|
1110
1047
|
),
|
|
1111
|
-
icon: /* @__PURE__ */
|
|
1048
|
+
icon: /* @__PURE__ */ jsx11(Tag, { className: "text-ui-fg-subtle" })
|
|
1112
1049
|
}
|
|
1113
1050
|
}
|
|
1114
1051
|
)
|
|
@@ -1116,20 +1053,20 @@ var StoreProductsSection = ({
|
|
|
1116
1053
|
};
|
|
1117
1054
|
|
|
1118
1055
|
// src/pages/stores/store-details/components/store-details.tsx
|
|
1119
|
-
import { jsx as
|
|
1056
|
+
import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1120
1057
|
var TABS = ["orders", "products", "users", "timeOff"];
|
|
1121
1058
|
var TabBar = ({
|
|
1122
1059
|
activeTab,
|
|
1123
1060
|
onTabChange
|
|
1124
1061
|
}) => {
|
|
1125
|
-
const { t } =
|
|
1062
|
+
const { t } = useTranslation12();
|
|
1126
1063
|
const labels = {
|
|
1127
1064
|
orders: t("orders.domain"),
|
|
1128
1065
|
users: t("users.domain"),
|
|
1129
1066
|
products: t("products.domain"),
|
|
1130
1067
|
timeOff: t("store.timeOff.header")
|
|
1131
1068
|
};
|
|
1132
|
-
return /* @__PURE__ */
|
|
1069
|
+
return /* @__PURE__ */ jsx12(
|
|
1133
1070
|
"div",
|
|
1134
1071
|
{
|
|
1135
1072
|
role: "tablist",
|
|
@@ -1138,7 +1075,7 @@ var TabBar = ({
|
|
|
1138
1075
|
"data-testid": "store-detail-tabs",
|
|
1139
1076
|
children: TABS.map((tab) => {
|
|
1140
1077
|
const isActive = activeTab === tab;
|
|
1141
|
-
return /* @__PURE__ */
|
|
1078
|
+
return /* @__PURE__ */ jsx12(
|
|
1142
1079
|
"button",
|
|
1143
1080
|
{
|
|
1144
1081
|
type: "button",
|
|
@@ -1162,61 +1099,60 @@ var Root = ({ children }) => {
|
|
|
1162
1099
|
const [activeTab, setActiveTab] = useState2("orders");
|
|
1163
1100
|
const { seller, isLoading, isError, error } = useSeller(id);
|
|
1164
1101
|
if (isLoading || !seller) {
|
|
1165
|
-
return /* @__PURE__ */
|
|
1102
|
+
return /* @__PURE__ */ jsx12(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 3 });
|
|
1166
1103
|
}
|
|
1167
1104
|
if (isError) {
|
|
1168
1105
|
throw error;
|
|
1169
1106
|
}
|
|
1170
1107
|
if (Children3.count(children) > 0) {
|
|
1171
|
-
return /* @__PURE__ */
|
|
1108
|
+
return /* @__PURE__ */ jsx12(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children });
|
|
1172
1109
|
}
|
|
1173
|
-
return /* @__PURE__ */
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
seller.status === import_types3.SellerStatus.PENDING_APPROVAL && !seller.approved_at && !seller.rejected_at && /* @__PURE__ */
|
|
1176
|
-
/* @__PURE__ */
|
|
1177
|
-
/* @__PURE__ */
|
|
1178
|
-
activeTab === "orders" && /* @__PURE__ */
|
|
1110
|
+
return /* @__PURE__ */ jsxs12(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children: [
|
|
1111
|
+
/* @__PURE__ */ jsxs12(TwoColumnPage.Main, { children: [
|
|
1112
|
+
seller.status === import_types3.SellerStatus.PENDING_APPROVAL && !seller.approved_at && !seller.rejected_at && /* @__PURE__ */ jsx12(StoreRequestSection, { seller }),
|
|
1113
|
+
/* @__PURE__ */ jsx12(StoreGeneralSection, { seller }),
|
|
1114
|
+
/* @__PURE__ */ jsx12(TabBar, { activeTab, onTabChange: setActiveTab }),
|
|
1115
|
+
activeTab === "orders" && /* @__PURE__ */ jsx12(
|
|
1179
1116
|
"div",
|
|
1180
1117
|
{
|
|
1181
1118
|
role: "tabpanel",
|
|
1182
1119
|
id: "store-detail-tab-panel-orders",
|
|
1183
1120
|
"aria-labelledby": "store-detail-tab-orders",
|
|
1184
|
-
children: /* @__PURE__ */
|
|
1121
|
+
children: /* @__PURE__ */ jsx12(StoreOrdersSection, { sellerId: seller.id })
|
|
1185
1122
|
}
|
|
1186
1123
|
),
|
|
1187
|
-
activeTab === "users" && /* @__PURE__ */
|
|
1124
|
+
activeTab === "users" && /* @__PURE__ */ jsx12(
|
|
1188
1125
|
"div",
|
|
1189
1126
|
{
|
|
1190
1127
|
role: "tabpanel",
|
|
1191
1128
|
id: "store-detail-tab-panel-users",
|
|
1192
1129
|
"aria-labelledby": "store-detail-tab-users",
|
|
1193
|
-
children: /* @__PURE__ */
|
|
1130
|
+
children: /* @__PURE__ */ jsx12(StoreMembersSection, { sellerId: seller.id })
|
|
1194
1131
|
}
|
|
1195
1132
|
),
|
|
1196
|
-
activeTab === "products" && /* @__PURE__ */
|
|
1133
|
+
activeTab === "products" && /* @__PURE__ */ jsx12(
|
|
1197
1134
|
"div",
|
|
1198
1135
|
{
|
|
1199
1136
|
role: "tabpanel",
|
|
1200
1137
|
id: "store-detail-tab-panel-products",
|
|
1201
1138
|
"aria-labelledby": "store-detail-tab-products",
|
|
1202
|
-
children: /* @__PURE__ */
|
|
1139
|
+
children: /* @__PURE__ */ jsx12(StoreProductsSection, { sellerId: seller.id })
|
|
1203
1140
|
}
|
|
1204
1141
|
),
|
|
1205
|
-
activeTab === "timeOff" && /* @__PURE__ */
|
|
1142
|
+
activeTab === "timeOff" && /* @__PURE__ */ jsx12(
|
|
1206
1143
|
"div",
|
|
1207
1144
|
{
|
|
1208
1145
|
role: "tabpanel",
|
|
1209
1146
|
id: "store-detail-tab-panel-timeOff",
|
|
1210
1147
|
"aria-labelledby": "store-detail-tab-timeOff",
|
|
1211
|
-
children: /* @__PURE__ */
|
|
1148
|
+
children: /* @__PURE__ */ jsx12(StoreConfigurationSection, { seller })
|
|
1212
1149
|
}
|
|
1213
1150
|
)
|
|
1214
1151
|
] }),
|
|
1215
|
-
/* @__PURE__ */
|
|
1216
|
-
/* @__PURE__ */
|
|
1217
|
-
/* @__PURE__ */
|
|
1218
|
-
/* @__PURE__ */
|
|
1219
|
-
/* @__PURE__ */ jsx13(StoreSubscriptionSection, { seller })
|
|
1152
|
+
/* @__PURE__ */ jsxs12(TwoColumnPage.Sidebar, { children: [
|
|
1153
|
+
/* @__PURE__ */ jsx12(StoreAddressSection, { seller }),
|
|
1154
|
+
/* @__PURE__ */ jsx12(StoreCompanyDetailsSection, { seller }),
|
|
1155
|
+
/* @__PURE__ */ jsx12(StorePaymentDetailsSection, { seller })
|
|
1220
1156
|
] })
|
|
1221
1157
|
] });
|
|
1222
1158
|
};
|
|
@@ -1228,7 +1164,6 @@ var StoreDetailPage = Object.assign(Root, {
|
|
|
1228
1164
|
MainPaymentDetailsSection: StorePaymentDetailsSection,
|
|
1229
1165
|
MainCompanyDetailsSection: StoreCompanyDetailsSection,
|
|
1230
1166
|
SidebarAddressSection: StoreAddressSection,
|
|
1231
|
-
SidebarSubscriptionSection: StoreSubscriptionSection,
|
|
1232
1167
|
SidebarMembersSection: StoreMembersSection,
|
|
1233
1168
|
Header: StoreDetailHeader,
|
|
1234
1169
|
HeaderTitle: StoreDetailTitle,
|