@mercurjs/admin 2.3.9-canary.3 → 2.3.9-canary.5
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-XTGK7IRV.js → add-campaign-promotions-HBMPYBWL.js} +8 -9
- package/dist/{adjust-inventory-BZ6UCP4U.js → adjust-inventory-RTMTGO5T.js} +30 -31
- package/dist/{api-key-management-create-BUJVV7WQ.js → api-key-management-create-R2QRXLWU.js} +4 -5
- package/dist/{api-key-management-detail-K6YAPVVA.js → api-key-management-detail-2FMETKXR.js} +32 -33
- package/dist/{api-key-management-edit-72CM42BT.js → api-key-management-edit-3UJ7DIH2.js} +4 -5
- package/dist/{api-key-management-list-RSXFGADN.js → api-key-management-list-3YBD5KNP.js} +5 -6
- package/dist/{api-key-management-sales-channels-DWMMRNXG.js → api-key-management-sales-channels-VP5FPCMF.js} +4 -5
- package/dist/{attribute-create-Z7EA2DU4.js → attribute-create-R56WADNB.js} +33 -34
- package/dist/{attribute-create-possible-value-RZXBKJJZ.js → attribute-create-possible-value-3R4XNSXB.js} +2 -3
- package/dist/{attribute-detail-HVBXRAC4.js → attribute-detail-PU3LWSEC.js} +31 -32
- package/dist/{attribute-edit-Y5LOXAU7.js → attribute-edit-RK2QASAT.js} +4 -5
- package/dist/{attribute-edit-possible-value-ZCA4US7Z.js → attribute-edit-possible-value-WV5FR3A7.js} +4 -5
- package/dist/{attribute-edit-ranking-4USGUKRJ.js → attribute-edit-ranking-53TCHOGF.js} +2 -3
- package/dist/attribute-list-GXZY4A2K.js +59 -0
- package/dist/{breadcrumb-XREPUTQZ.js → breadcrumb-2IXSJGVH.js} +2 -3
- package/dist/{breadcrumb-2PIMELEE.js → breadcrumb-63W4ACRQ.js} +2 -3
- package/dist/{campaign-budget-edit-PLYMCATI.js → campaign-budget-edit-OG4JZ5Q4.js} +2 -3
- package/dist/{campaign-configuration-BJL7O7MB.js → campaign-configuration-ASHJSSD3.js} +2 -3
- package/dist/{campaign-create-NJMOJVIP.js → campaign-create-ZPHJYED3.js} +6 -7
- package/dist/{campaign-detail-RRUFKLZD.js → campaign-detail-ZNFVVNX4.js} +35 -36
- package/dist/{campaign-edit-RJ6PUA64.js → campaign-edit-RIQCPM5M.js} +2 -3
- package/dist/{campaign-list-BW32MXUZ.js → campaign-list-27HCFLS7.js} +5 -6
- package/dist/{categories-metadata-F3WXEYSD.js → categories-metadata-VOKG26IC.js} +30 -31
- package/dist/{category-create-MA263LED.js → category-create-MKENO5UC.js} +4 -5
- package/dist/{category-detail-NCT667Q5.js → category-detail-SJPQSYH2.js} +36 -37
- package/dist/{category-edit-4GY4B6YO.js → category-edit-SKLDLRHW.js} +3 -4
- package/dist/{category-icon-edit-BEJEYUQY.js → category-icon-edit-XJMM3O74.js} +3 -4
- package/dist/{category-list-WIM33ATO.js → category-list-KI2XDQ3A.js} +5 -6
- package/dist/{category-media-JRHFS7AC.js → category-media-HLDRYNWZ.js} +3 -4
- package/dist/{category-organize-M4GT6NTS.js → category-organize-SKRZFHUJ.js} +3 -4
- package/dist/{category-products-VAMYKSSO.js → category-products-6JFOCWYN.js} +34 -35
- package/dist/{chunk-73N655UO.js → chunk-23X5IBGZ.js} +1 -1
- package/dist/{chunk-VUTEJBUV.js → chunk-23XQKZVI.js} +4 -4
- package/dist/{chunk-D7Q23Y3N.js → chunk-2AXXZ6BQ.js} +1 -1
- package/dist/{chunk-PC2KYGGZ.js → chunk-2GD4XTO7.js} +22 -9
- package/dist/{chunk-ZA2KFUFR.js → chunk-2KCF3ZIB.js} +13 -0
- package/dist/{chunk-BHQZHRYK.js → chunk-2MJHJ3VY.js} +2 -2
- package/dist/{chunk-NV6JFZUY.js → chunk-3435VAEX.js} +2 -2
- package/dist/{chunk-4ARPCKNT.js → chunk-35PCKHL7.js} +2 -2
- package/dist/chunk-3EPP7VXZ.js +58 -0
- package/dist/{chunk-LY4EOBD6.js → chunk-3F5TBRXC.js} +4 -4
- package/dist/{chunk-ETZHMA2C.js → chunk-3I2HNULG.js} +1 -1
- package/dist/{chunk-BGQIJMQS.js → chunk-3MT6RTJD.js} +3 -5
- package/dist/{chunk-7OFD2K5S.js → chunk-3QEYOHBB.js} +16 -4
- package/dist/{chunk-HMHKC3Y3.js → chunk-3YHS5YGW.js} +129 -60
- package/dist/{chunk-AUNBNATP.js → chunk-46XA3DMZ.js} +21 -7
- package/dist/{chunk-EB2YI3JW.js → chunk-4BPYFH72.js} +1 -1
- package/dist/{chunk-JM6RKFUC.js → chunk-4KXDWQ5F.js} +2 -4
- package/dist/{chunk-DJ5CPXLV.js → chunk-4TKGJDGK.js} +4 -4
- package/dist/{chunk-Y6XFGGN6.js → chunk-4Y2LVCLK.js} +10 -5
- package/dist/chunk-5CNQLDVS.js +36 -0
- package/dist/{chunk-YSC3YUCQ.js → chunk-5F7OAHRW.js} +1 -1
- package/dist/{chunk-FEQNCTJI.js → chunk-5G4ZVGO7.js} +3 -3
- package/dist/{chunk-VJ2BXTVC.js → chunk-5GXFPPT5.js} +4 -6
- package/dist/{chunk-RBRLCVIY.js → chunk-5QORIQSD.js} +8 -8
- package/dist/{chunk-NHJEIVWT.js → chunk-65S7FFIR.js} +2 -2
- package/dist/{chunk-C3RYDQYL.js → chunk-6GWTUG63.js} +4 -6
- package/dist/{chunk-SF2HYJV3.js → chunk-6NR2MKZT.js} +1 -1
- package/dist/{chunk-QDBRSWFO.js → chunk-6ZNREXHT.js} +1 -1
- package/dist/{chunk-36IQHWEB.js → chunk-6ZQXTLI7.js} +2 -4
- package/dist/chunk-7ASMQGI2.js +92 -0
- package/dist/{chunk-IWXIM6ID.js → chunk-7DEZJGI6.js} +2 -4
- package/dist/{chunk-AMCYOXHT.js → chunk-7ZSLJUXV.js} +1 -1
- package/dist/{chunk-L5LRABUQ.js → chunk-AF4UKAMF.js} +2 -2
- package/dist/{chunk-HSJLKU4G.js → chunk-AQBW6KVN.js} +1 -1
- package/dist/{chunk-A5XBXCY7.js → chunk-BKSRMEDD.js} +2 -4
- package/dist/{chunk-BOGWUBYZ.js → chunk-BXLY5DI3.js} +2 -2
- package/dist/{chunk-CG53DXJH.js → chunk-BYW3OPEN.js} +2 -4
- package/dist/{chunk-WWJPHGHR.js → chunk-C24M2TDZ.js} +3 -3
- package/dist/{chunk-PIIK7BOZ.js → chunk-CCJPJKTY.js} +3 -3
- package/dist/chunk-CEAFREUV.js +79 -0
- package/dist/{chunk-2OBZVIAT.js → chunk-CEW7IUTB.js} +5 -5
- package/dist/{chunk-B6IP4AGA.js → chunk-CYRBIZLI.js} +3 -5
- package/dist/{chunk-2PITQ75C.js → chunk-CYV4ULEF.js} +61 -7
- package/dist/{chunk-JM57BRT5.js → chunk-DGFXNI7G.js} +2 -2
- package/dist/{chunk-Q2KAHVLJ.js → chunk-DPGIKIH6.js} +1 -1
- package/dist/chunk-DQPTTURI.js +41 -0
- package/dist/{chunk-BJHKA3Z2.js → chunk-DRURWEJR.js} +2 -2
- package/dist/{chunk-U5DAQEBO.js → chunk-DTZLKSWU.js} +1 -1
- package/dist/{chunk-KZQV37IG.js → chunk-E2R5JEQC.js} +4 -4
- package/dist/chunk-E6DSHSYR.js +328 -0
- package/dist/{chunk-FRM5FUCX.js → chunk-E7HU64ES.js} +2 -2
- package/dist/{chunk-6NPQUOD5.js → chunk-EKXHGK7S.js} +3 -5
- package/dist/{chunk-3HTGPMNY.js → chunk-ENSULQYA.js} +2 -2
- package/dist/{chunk-UQLOY5ZV.js → chunk-EQKM37O2.js} +3 -5
- package/dist/{chunk-E4VMZ23T.js → chunk-EVWDEDPV.js} +4 -4
- package/dist/{chunk-JPTK7IG4.js → chunk-EYOPD6DG.js} +1 -1
- package/dist/{chunk-RHC3DTT5.js → chunk-FNBJK2TJ.js} +3 -3
- package/dist/{chunk-YNMF33DB.js → chunk-FRU7FNLF.js} +1 -1
- package/dist/{chunk-OJX3CQSK.js → chunk-FT2MLA4F.js} +207 -147
- package/dist/{chunk-U5UHFRSQ.js → chunk-FYON63D2.js} +1 -1
- package/dist/{chunk-VI7SQHZW.js → chunk-GIPLONYW.js} +42 -13
- package/dist/{chunk-Z7EC4L7T.js → chunk-GLQH2FNY.js} +1 -1
- package/dist/{chunk-YRE4FYL4.js → chunk-GUNKK5PA.js} +7 -7
- package/dist/{chunk-R2MDLLRF.js → chunk-GVIW5ZJR.js} +2 -4
- package/dist/{chunk-P2HV6NWL.js → chunk-GY7HAFTG.js} +2 -2
- package/dist/{chunk-4CEAIFZT.js → chunk-H5G6SVUG.js} +1 -1
- package/dist/{chunk-EYIM4SDS.js → chunk-HEHM26GN.js} +1 -1
- package/dist/{chunk-U4DC4COG.js → chunk-HR26PDFY.js} +2 -4
- package/dist/{chunk-YJ35LRQW.js → chunk-HU6Z5HMO.js} +2 -4
- package/dist/{chunk-IA7CRX7T.js → chunk-HZBUSK2N.js} +2 -4
- package/dist/{chunk-UU5EUXNQ.js → chunk-I4UQLLSP.js} +1 -1
- package/dist/{chunk-EEVKZMQQ.js → chunk-I7SKIUQJ.js} +27 -11
- package/dist/{chunk-SWN3TJKT.js → chunk-IIAKP25M.js} +7 -7
- package/dist/chunk-IQZYBCVR.js +109 -0
- package/dist/{chunk-OO7QUK3Y.js → chunk-ITMSX2KQ.js} +3 -5
- package/dist/{chunk-NHLKAUGR.js → chunk-IXSNEWUQ.js} +453 -206
- package/dist/{chunk-OZC7SQYO.js → chunk-J3U2QLEW.js} +1 -1
- package/dist/{chunk-SMC7EMBH.js → chunk-J6FNB3IE.js} +1 -1
- package/dist/{chunk-AONKTYFO.js → chunk-JAW2434H.js} +1 -1
- package/dist/{chunk-HJJXGJDO.js → chunk-JCXX4DNP.js} +2 -2
- package/dist/{chunk-HF2QMR4B.js → chunk-JJUA3AUY.js} +1 -1
- package/dist/{chunk-RELVICQN.js → chunk-JPZ5C6FD.js} +1 -1
- package/dist/{chunk-4SK6CDZZ.js → chunk-JQ6JP5U3.js} +2 -2
- package/dist/{chunk-QM7MOWSV.js → chunk-JT47JVMM.js} +11 -11
- package/dist/{chunk-DKRNK7LD.js → chunk-JV3J45SY.js} +6 -6
- package/dist/{chunk-NQG7WTKF.js → chunk-K2VXSJUF.js} +1 -1
- package/dist/{chunk-GIB6NTQL.js → chunk-KDGQJ37N.js} +2 -4
- package/dist/{chunk-VF3FAO5H.js → chunk-KP3LZSTC.js} +2 -2
- package/dist/{chunk-WNQEL3FE.js → chunk-KPYRXLOI.js} +1 -1
- package/dist/{chunk-YJBT2HTY.js → chunk-KQPZRFFT.js} +4 -4
- package/dist/{chunk-V2FHMPAK.js → chunk-KUR6AQRH.js} +2 -4
- package/dist/{chunk-FVAIWOM4.js → chunk-KVM4YVFU.js} +2 -2
- package/dist/{chunk-6GQUM5K7.js → chunk-KXEXGXFV.js} +4 -4
- package/dist/{chunk-Z7ZJAJMC.js → chunk-L6ZOJ3F5.js} +2 -2
- package/dist/{chunk-SK6XP7NB.js → chunk-L7UVRJU6.js} +2 -2
- package/dist/{chunk-S4QXORRY.js → chunk-LTAR5MLU.js} +30 -25
- package/dist/{chunk-TEPEMC3Z.js → chunk-M24NHTQL.js} +1 -1
- package/dist/{chunk-BTHHPKCS.js → chunk-MAAVSBM6.js} +35 -11
- package/dist/{chunk-ST4AHZAE.js → chunk-MWSL7FLA.js} +1 -1
- package/dist/{chunk-ZN3YPJ7K.js → chunk-N2YEPXWG.js} +4 -4
- package/dist/{chunk-LLDKZKLC.js → chunk-NA2GDOU7.js} +3 -5
- package/dist/{chunk-JU4VN5TD.js → chunk-NMC4FYSN.js} +2 -2
- package/dist/{chunk-QDQHROFM.js → chunk-OA6BLEVL.js} +3 -3
- package/dist/{chunk-TS5KQSNH.js → chunk-OKXPZIGO.js} +2 -2
- package/dist/{chunk-OMUB4HUL.js → chunk-OPMPCYJX.js} +5 -5
- package/dist/{chunk-UXZ27L5P.js → chunk-OUTMAZS3.js} +2 -2
- package/dist/{chunk-CXRUBEFF.js → chunk-PLWBVBQJ.js} +2 -2
- package/dist/{chunk-BNDMVA3T.js → chunk-PSNKTHKS.js} +5 -5
- package/dist/{chunk-LEC3ENGO.js → chunk-PTXXNVII.js} +5 -5
- package/dist/{chunk-D2T6A6TA.js → chunk-PZRMVDNF.js} +1 -1
- package/dist/{chunk-N6FICBF5.js → chunk-PZXHCGSF.js} +2 -2
- package/dist/{chunk-VFP7NP63.js → chunk-QEUNVKSA.js} +4 -4
- package/dist/{chunk-4DU6DHG4.js → chunk-QFZK43H2.js} +2 -2
- package/dist/{chunk-KX73KMNY.js → chunk-RYOXVZEX.js} +1 -1
- package/dist/{chunk-TKCAGTFO.js → chunk-SI47AGBI.js} +2 -2
- package/dist/{chunk-QBQZ3GZP.js → chunk-SQYHUF4Y.js} +3 -3
- package/dist/{chunk-H6YXOK2A.js → chunk-SSHDOORP.js} +2 -2
- package/dist/{chunk-AK7YIEAT.js → chunk-SWLW2RIE.js} +1 -1
- package/dist/{chunk-O4HQWTND.js → chunk-TOAE7XZ7.js} +2 -4
- package/dist/{chunk-P3AG2KXU.js → chunk-TPHZ6MH5.js} +2 -2
- package/dist/{chunk-H4ZFKIVQ.js → chunk-TQ7X7BTA.js} +8 -8
- package/dist/{chunk-RT52JDBU.js → chunk-TVJ5Y6U5.js} +3 -5
- package/dist/chunk-TWDUEIWF.js +51 -0
- package/dist/{chunk-JLAKAWP5.js → chunk-UHHY2ND7.js} +4 -6
- package/dist/{chunk-OKTHVHAN.js → chunk-UKL34M7K.js} +2 -2
- package/dist/{chunk-GR6JUIRU.js → chunk-UPZP4CHG.js} +15 -4
- package/dist/{chunk-FK2KI5EM.js → chunk-VG3FVZJW.js} +4 -4
- package/dist/{chunk-YQV26XP3.js → chunk-VHAJNIVQ.js} +4 -4
- package/dist/{chunk-R4WBTEZL.js → chunk-VKEUZPVJ.js} +1 -1
- package/dist/{chunk-EEXFUHQT.js → chunk-VWFT6TH3.js} +3 -3
- package/dist/{chunk-2MK2FIVX.js → chunk-VYPJCJ5T.js} +75 -17
- package/dist/{chunk-G7GDAD7B.js → chunk-W3FZMS7E.js} +3 -3
- package/dist/{chunk-MW3PXEBW.js → chunk-WCKHI6BO.js} +2 -4
- package/dist/{chunk-KT4JCLQN.js → chunk-WH7WEJMX.js} +3 -3
- package/dist/{chunk-TYE2ULTZ.js → chunk-WJAFVDOO.js} +1 -1
- package/dist/{chunk-VJUBAHQN.js → chunk-XHJ64CM2.js} +3 -5
- package/dist/{chunk-XXNKE6HC.js → chunk-XJV4PVT5.js} +3 -5
- package/dist/{chunk-SWJRT5LI.js → chunk-XPRFPBDC.js} +3 -3
- package/dist/{chunk-MVTNCT5E.js → chunk-XZTJCIW5.js} +1 -1
- package/dist/{chunk-DOOASSS4.js → chunk-Y5ZZOV2D.js} +2 -4
- package/dist/{chunk-WRQPTVAH.js → chunk-YCAFOH7B.js} +1 -1
- package/dist/{chunk-WA5ATPE2.js → chunk-YHSJFILH.js} +5 -5
- package/dist/{chunk-RRDCRGAU.js → chunk-YPPV7PKA.js} +2 -2
- package/dist/{chunk-C2RGTTV6.js → chunk-YQX2GSSA.js} +3 -5
- package/dist/{chunk-J5NKP3PO.js → chunk-YYFBYF3Z.js} +1 -1
- package/dist/{chunk-SNRPCOU4.js → chunk-ZASF7XBG.js} +57 -1
- package/dist/{chunk-XZ4GKMFM.js → chunk-ZEXGMG5L.js} +1 -1
- package/dist/{chunk-LFIP5HLH.js → chunk-ZHI5INXR.js} +4 -6
- package/dist/{chunk-MW5TDV7U.js → chunk-ZPNDXVKU.js} +2 -4
- package/dist/{chunk-ETS5KFYF.js → chunk-ZRVOEBMM.js} +1 -1
- package/dist/{chunk-QB2L7K3U.js → chunk-ZSBHQBTB.js} +2 -2
- package/dist/{chunk-A6JWUPH5.js → chunk-ZTHL4V67.js} +7 -7
- package/dist/{chunk-BT23JEBF.js → chunk-ZTUJNVXJ.js} +3 -5
- package/dist/{chunk-YBZACDZB.js → chunk-ZVOBDGMH.js} +1 -1
- package/dist/{chunk-YGC3WSRP.js → chunk-ZYK6RTG2.js} +4 -4
- package/dist/{collection-add-products-TWJJ35QV.js → collection-add-products-HGAABSQG.js} +34 -35
- package/dist/{collection-create-VMJUEARG.js → collection-create-IROC3TUS.js} +3 -4
- package/dist/{collection-detail-C2VHK6JM.js → collection-detail-POPHBJTD.js} +35 -36
- package/dist/{collection-edit-K25PV4EM.js → collection-edit-VLCCN534.js} +3 -4
- package/dist/{collection-icon-edit-OEQJYX2P.js → collection-icon-edit-HGOORQUL.js} +3 -4
- package/dist/{collection-list-AZW2UZ6K.js → collection-list-QYOZOLH6.js} +39 -40
- package/dist/{collection-media-CIP3D6TK.js → collection-media-YK4XDMDC.js} +3 -4
- package/dist/{collection-metadata-HALVAS56.js → collection-metadata-NAUKYDWG.js} +30 -31
- package/dist/{commission-rule-commission-edit-XGSO5YKM.js → commission-rule-commission-edit-ORXDQKCX.js} +5 -6
- package/dist/{commission-rule-create-E6CMHSIE.js → commission-rule-create-3E62CKHW.js} +5 -6
- package/dist/{commission-rule-detail-5HWHY54Y.js → commission-rule-detail-3NH7ULIN.js} +9 -10
- package/dist/{commission-rule-edit-62EUPAQV.js → commission-rule-edit-4JVK6S76.js} +2 -3
- package/dist/{commissions-list-U43XF7PH.js → commissions-list-BADK7MSY.js} +9 -10
- package/dist/{customer-create-QPQ6CDZ5.js → customer-create-HPOKBBWF.js} +2 -3
- package/dist/{customer-create-address-BXF4BEBH.js → customer-create-address-X74BQEEF.js} +2 -3
- package/dist/{customer-detail-NCF2YMFC.js → customer-detail-SZT2SUP7.js} +33 -34
- package/dist/{customer-edit-GJSVC74Y.js → customer-edit-23V25VEJ.js} +2 -3
- package/dist/{customer-edit-address-T27ZZXZD.js → customer-edit-address-IKTNWMCQ.js} +2 -3
- package/dist/{customer-group-add-customers-ZA743HDV.js → customer-group-add-customers-Z3ZKTWF4.js} +3 -4
- package/dist/{customer-group-create-6UMMLXCU.js → customer-group-create-B33PV7LT.js} +2 -3
- package/dist/{customer-group-detail-EIONHXPW.js → customer-group-detail-FFMUXNIB.js} +32 -33
- package/dist/{customer-group-edit-TMIRTH32.js → customer-group-edit-R7GY2M7U.js} +2 -3
- package/dist/customer-group-list-EOSIHWXE.js +54 -0
- package/dist/{customer-group-metadata-M3LYBHNQ.js → customer-group-metadata-TJIDSJ6Z.js} +30 -31
- package/dist/{customer-list-NLL36VDK.js → customer-list-Y76GVUYI.js} +4 -5
- package/dist/{customer-metadata-AB26NQOY.js → customer-metadata-DE3WIXFE.js} +30 -31
- package/dist/{customers-add-customer-group-3DB5XQBR.js → customers-add-customer-group-6ITTWDUT.js} +31 -32
- package/dist/{edit-inventory-item-ZQRD5OR6.js → edit-inventory-item-JHEJ663F.js} +30 -31
- package/dist/{edit-inventory-item-attributes-CR756I6L.js → edit-inventory-item-attributes-GXSPW442.js} +30 -31
- package/dist/{edit-reservation-CR4IQZFA.js → edit-reservation-FJR7ZYJF.js} +4 -5
- package/dist/{edit-rules-4MSYXDEX.js → edit-rules-ACC2CU4N.js} +32 -33
- package/dist/extension-targets.d.ts +54 -0
- package/dist/{global-commission-edit-E2WVJPW7.js → global-commission-edit-6UEKJHWH.js} +5 -6
- package/dist/home-DBMCSDAX.js +62 -0
- package/dist/index.js +322 -290
- package/dist/{inventory-detail-4O53UJDE.js → inventory-detail-NLQA355J.js} +31 -32
- package/dist/{inventory-list-F546ILKD.js → inventory-list-YH3VIQ4F.js} +6 -7
- package/dist/{inventory-metadata-VYSIDADV.js → inventory-metadata-NGKWP7VG.js} +30 -31
- package/dist/{inventory-stock-3SDSWZ45.js → inventory-stock-MHGGME6C.js} +31 -32
- package/dist/{invite-W27REN73.js → invite-IDVA7HGQ.js} +2 -3
- package/dist/{loader-2DL2TFYB.js → loader-JVCNJIMP.js} +2 -3
- package/dist/{loader-SPPQQOE3.js → loader-PKVN2RNN.js} +2 -3
- package/dist/{location-create-M22DO6QH.js → location-create-6YTSKD7F.js} +2 -3
- package/dist/{location-detail-BQKNTL7R.js → location-detail-5J76LVYZ.js} +31 -32
- package/dist/{location-edit-TJDVZ4GS.js → location-edit-M6MJAFKF.js} +2 -3
- package/dist/{location-fulfillment-providers-XQ4NFOQ6.js → location-fulfillment-providers-BXNGW5FD.js} +36 -37
- package/dist/location-list-SJZNHDQ5.js +51 -0
- package/dist/{location-sales-channels-O2KUGUKX.js → location-sales-channels-TNLIHLYK.js} +4 -5
- package/dist/{location-service-zone-create-DXIMD7MY.js → location-service-zone-create-2UEUMJ33.js} +4 -5
- package/dist/{location-service-zone-edit-ZG3KDRGX.js → location-service-zone-edit-YHMPLIBL.js} +4 -5
- package/dist/{location-service-zone-manage-areas-K5UUU7GT.js → location-service-zone-manage-areas-5ALQ3XTP.js} +4 -5
- package/dist/location-service-zone-shipping-option-create-6D242QKG.js +58 -0
- package/dist/{location-service-zone-shipping-option-edit-KAESWO5Z.js → location-service-zone-shipping-option-edit-K6UP33QH.js} +3 -4
- package/dist/{location-service-zone-shipping-option-pricing-JZAQVSGB.js → location-service-zone-shipping-option-pricing-7PC7CUC4.js} +8 -9
- package/dist/{login-G5M5N64D.js → login-NVTT2EHC.js} +30 -31
- package/dist/{manage-locations-LN32PNLH.js → manage-locations-VKDYHYYV.js} +3 -4
- package/dist/{marketplace-add-currencies-REYRQDDN.js → marketplace-add-currencies-3MQIZY5Q.js} +4 -5
- package/dist/{marketplace-detail-7OOEGKHV.js → marketplace-detail-HT4HIW5I.js} +32 -33
- package/dist/{marketplace-edit-HQNN6PBP.js → marketplace-edit-TTP44LZN.js} +4 -5
- package/dist/{marketplace-metadata-7EC2Q7IV.js → marketplace-metadata-2XEMGXBZ.js} +30 -31
- package/dist/{offer-condition-create-JZKZF3GW.js → offer-condition-create-J5Z3Q5MH.js} +30 -31
- package/dist/{offer-condition-edit-W4QPQQH2.js → offer-condition-edit-CPBKK54R.js} +30 -31
- package/dist/{offer-condition-list-MXQIBLBA.js → offer-condition-list-ELVULPI6.js} +38 -38
- package/dist/{offer-detail-page-4U4PPA7Q.js → offer-detail-page-4P2NUI5V.js} +22 -10
- package/dist/{offer-variant-detail-page-4ZDMBL4R.js → offer-variant-detail-page-WPBDFISE.js} +5 -6
- package/dist/{offers-V4QVHTHJ.js → offers-SQQ5SVNW.js} +35 -36
- package/dist/{order-create-claim-NOAME5ZU.js → order-create-claim-SK6YC7UT.js} +8 -9
- package/dist/{order-create-edit-FE3PB6BD.js → order-create-edit-KSOUDYKT.js} +6 -7
- package/dist/{order-create-exchange-IOFUN65A.js → order-create-exchange-GJ6VZUXC.js} +34 -35
- package/dist/{order-create-refund-AHVWKLIA.js → order-create-refund-I24FCJLL.js} +30 -31
- package/dist/{order-create-return-LDZIJEZO.js → order-create-return-M7UE3KTN.js} +6 -7
- package/dist/{order-detail-XRP4RPTU.js → order-detail-74FNI5EP.js} +36 -37
- package/dist/{order-edit-billing-address-3E5GBDZJ.js → order-edit-billing-address-BQUX6XE4.js} +31 -32
- package/dist/{order-edit-email-X6DQ7NXT.js → order-edit-email-PIF3KMMY.js} +30 -31
- package/dist/{order-edit-shipping-address-W4VQTY7S.js → order-edit-shipping-address-IWAXYN6Y.js} +30 -31
- package/dist/{order-list-C3EDQKC6.js → order-list-X5UIPQ2L.js} +12 -13
- package/dist/{order-metadata-TSUW3WSW.js → order-metadata-4IZB4TSA.js} +30 -31
- package/dist/{order-request-transfer-KPKFNR3L.js → order-request-transfer-RRFZTO2H.js} +30 -31
- package/dist/pages/index.d.ts +46 -3
- package/dist/pages/index.js +167 -163
- package/dist/payout-account-detail-XHWAJWNR.js +412 -0
- package/dist/payout-account-list-XCQFSEMY.js +282 -0
- package/dist/{payout-detail-AW244L2K.js → payout-detail-3Y4CDLYC.js} +24 -4
- package/dist/{payout-list-YDF6MRJQ.js → payout-list-GPITXLNR.js} +15 -5
- package/dist/{price-list-configuration-CPK6OKFW.js → price-list-configuration-TIVJZ4CD.js} +4 -5
- package/dist/price-list-create-2OSDP6YG.js +72 -0
- package/dist/{price-list-customer-availability-HOIAQMPK.js → price-list-customer-availability-XUW5CXVO.js} +4 -5
- package/dist/{price-list-detail-QXHYS6K2.js → price-list-detail-VBGZ56NK.js} +36 -37
- package/dist/{price-list-edit-YBRU66J5.js → price-list-edit-VO6QAM7N.js} +4 -5
- package/dist/{price-list-list-55JZMNAF.js → price-list-list-AOJQ3DYT.js} +6 -7
- package/dist/price-list-prices-add-K6UW7LCI.js +68 -0
- package/dist/{price-list-prices-edit-Q7VBH25K.js → price-list-prices-edit-IR2HYR5F.js} +33 -34
- package/dist/{product-add-existing-attributes-XDORUURH.js → product-add-existing-attributes-SMP52KCJ.js} +32 -33
- package/dist/{product-attributes-VWP2FYD2.js → product-attributes-RREAPT6T.js} +2 -3
- package/dist/{product-bulk-edit-UA4PM7Q5.js → product-bulk-edit-UMEOJQKA.js} +3 -4
- package/dist/{product-create-7OOB5EJF.js → product-create-HBGQNARV.js} +36 -37
- package/dist/{product-create-attribute-P3TI6SQL.js → product-create-attribute-G3AUSBVE.js} +3 -4
- package/dist/{product-create-variant-KUNZRZQL.js → product-create-variant-MO7Z452J.js} +5 -6
- package/dist/{product-detail-YOLJY6UR.js → product-detail-SW2QUQRB.js} +33 -34
- package/dist/{product-edit-H7QSPDVL.js → product-edit-OLKZ6FO2.js} +2 -3
- package/dist/{product-edit-attribute-GX6HCZIO.js → product-edit-attribute-DIZFQ6ZP.js} +3 -4
- package/dist/{product-list-ZTCJZCB5.js → product-list-MEHDACOH.js} +35 -36
- package/dist/{product-media-AE3YKMZI.js → product-media-DNP46LTI.js} +5 -6
- package/dist/{product-metadata-7CLLU5OI.js → product-metadata-SKGGZGMW.js} +30 -31
- package/dist/{product-organization-G3BGNSO3.js → product-organization-DLJBYZU3.js} +5 -6
- package/dist/{product-sales-channels-GLRQ2PFW.js → product-sales-channels-PK2FKY2X.js} +3 -4
- package/dist/{product-shipping-profile-NHGKKGOJ.js → product-shipping-profile-YLE4YIDL.js} +2 -3
- package/dist/{product-tag-create-THJMFS42.js → product-tag-create-BC7ACPGU.js} +30 -31
- package/dist/{product-tag-detail-GQLALAQ3.js → product-tag-detail-74SRZY5I.js} +44 -44
- package/dist/{product-tag-edit-KTHDQFEE.js → product-tag-edit-HSOUEU5D.js} +30 -31
- package/dist/{product-tag-list-ZNZ4I7XB.js → product-tag-list-YC6BIXAJ.js} +44 -44
- package/dist/{product-tag-metadata-2ECSF7NR.js → product-tag-metadata-2AIAO4B3.js} +30 -31
- package/dist/{product-type-create-EL7V3U3E.js → product-type-create-J7ELRHCC.js} +2 -3
- package/dist/{product-type-detail-VJH52I7J.js → product-type-detail-6R4BJSSQ.js} +36 -37
- package/dist/{product-type-edit-KZ4X4E75.js → product-type-edit-Y5ZIXWE4.js} +2 -3
- package/dist/{product-type-list-QSY643MN.js → product-type-list-I3YSKNZ2.js} +4 -5
- package/dist/{product-type-metadata-FTKOTS6A.js → product-type-metadata-34AOQ56P.js} +30 -31
- package/dist/{product-variant-detail-MSE22M45.js → product-variant-detail-Y2JPURSC.js} +31 -32
- package/dist/{product-variant-edit-T4GEXINL.js → product-variant-edit-FYT5JOLH.js} +32 -33
- package/dist/{product-variant-metadata-52ZNCCAV.js → product-variant-metadata-BJ4ESS42.js} +30 -31
- package/dist/{profile-detail-W27TUEFG.js → profile-detail-NJV3B3QG.js} +3 -4
- package/dist/{profile-edit-FRZFIHFU.js → profile-edit-5LG6ZD34.js} +2 -3
- package/dist/{promotion-add-campaign-RBPN5IEO.js → promotion-add-campaign-USH5DBXT.js} +7 -8
- package/dist/promotion-create-SIOUY7KZ.js +56 -0
- package/dist/{promotion-detail-ZF4STPC7.js → promotion-detail-QDF7I6KQ.js} +34 -35
- package/dist/{promotion-edit-details-3L2RCZ4N.js → promotion-edit-details-JUKUUBUL.js} +3 -4
- package/dist/{promotion-list-BISF4UE4.js → promotion-list-35QHP535.js} +9 -10
- package/dist/{refund-reason-create-ZT7YHX3R.js → refund-reason-create-NYGRLVIC.js} +30 -31
- package/dist/{refund-reason-edit-6QC3NVCU.js → refund-reason-edit-C2QOTJSU.js} +30 -31
- package/dist/{refund-reason-list-O6DPFVEN.js → refund-reason-list-QZ2Z7MNL.js} +38 -38
- package/dist/{region-add-countries-V6VN3WEO.js → region-add-countries-OL553I4U.js} +3 -4
- package/dist/{region-add-sellers-N7FDMKT6.js → region-add-sellers-K3AHYJYP.js} +7 -8
- package/dist/{region-create-HNFGBSPE.js → region-create-ISLRLCWK.js} +4 -5
- package/dist/{region-detail-CTJLFHP2.js → region-detail-73CVUMEC.js} +8 -9
- package/dist/{region-edit-PLVSI5SB.js → region-edit-YFHA3XUW.js} +4 -5
- package/dist/{region-list-Q6GVRF6Z.js → region-list-TV3DT5F6.js} +4 -5
- package/dist/{region-metadata-GIIRT3SF.js → region-metadata-MIQHNJWB.js} +30 -31
- package/dist/{reservation-create-PNZ5ABT7.js → reservation-create-UAEX2IIQ.js} +4 -5
- package/dist/{reservation-detail-I5TEWGOX.js → reservation-detail-7LNYITL4.js} +31 -32
- package/dist/{reservation-list-3OJRZFCX.js → reservation-list-HI4E5SD3.js} +7 -8
- package/dist/{reservation-metadata-COMUCD4D.js → reservation-metadata-S3364EKD.js} +30 -31
- package/dist/{reset-password-4NCLZ5NE.js → reset-password-RGFOVPEN.js} +1 -1
- package/dist/{return-reason-create-LDGP3XDZ.js → return-reason-create-5ZLISRAS.js} +2 -3
- package/dist/{return-reason-edit-KWDTHPCC.js → return-reason-edit-XAHTW76W.js} +2 -3
- package/dist/{return-reason-list-XYANUPSO.js → return-reason-list-CVANLLJB.js} +10 -10
- package/dist/{review-detail-5WFU232F.js → review-detail-L6E452SS.js} +4 -5
- package/dist/{review-edit-3UCGTNYH.js → review-edit-P2JB4PTK.js} +2 -3
- package/dist/{review-list-Q3D37L5U.js → review-list-PA6S6M3K.js} +7 -8
- package/dist/{review-respond-OWEXAPZ6.js → review-respond-GZAUHXQJ.js} +2 -3
- package/dist/{sales-channel-add-products-TJN7IRJH.js → sales-channel-add-products-MGVP4FFA.js} +34 -35
- package/dist/{sales-channel-create-DY6WO2AH.js → sales-channel-create-KCEMVUFL.js} +3 -4
- package/dist/{sales-channel-detail-5IFOCREY.js → sales-channel-detail-R7NN5C34.js} +35 -36
- package/dist/{sales-channel-edit-NHJ47CGL.js → sales-channel-edit-EE4HMRMK.js} +3 -4
- package/dist/sales-channel-list-KAGUTX7P.js +48 -0
- package/dist/{sales-channel-metadata-AAIEFOKT.js → sales-channel-metadata-6MT5BCGH.js} +30 -31
- package/dist/settings-5AJC22SM.js +61 -0
- package/dist/{shipping-option-type-create-OTUTEDKI.js → shipping-option-type-create-LGGBUTPM.js} +30 -31
- package/dist/{shipping-option-type-detail-OBHOSDNJ.js → shipping-option-type-detail-RDKLCL3M.js} +32 -33
- package/dist/{shipping-option-type-edit-VLLPUFVQ.js → shipping-option-type-edit-K2DRIE6Q.js} +30 -31
- package/dist/shipping-option-type-list-JIGYSRUS.js +58 -0
- package/dist/{shipping-profile-create-ONX2BVLP.js → shipping-profile-create-RKD7BJGH.js} +2 -3
- package/dist/{shipping-profile-detail-J5QNUKRA.js → shipping-profile-detail-HY362D6V.js} +3 -4
- package/dist/{shipping-profile-metadata-R2BTWLLO.js → shipping-profile-metadata-INM6HD5Y.js} +30 -31
- package/dist/{shipping-profiles-list-G74ZSQIT.js → shipping-profiles-list-4L2FFQ7C.js} +3 -4
- package/dist/{store-add-regions-XRA2RC4C.js → store-add-regions-2D5WXXAC.js} +3 -4
- package/dist/{store-address-edit-EB6SMTDX.js → store-address-edit-3FUQAVO6.js} +3 -4
- package/dist/{store-bulk-edit-5G5STIL2.js → store-bulk-edit-WIPY4OI5.js} +5 -6
- package/dist/{store-closure-edit-AEJYD5MG.js → store-closure-edit-F2UB2UE3.js} +3 -4
- package/dist/{store-create-BEWLUGTH.js → store-create-XWRAEDU5.js} +30 -31
- package/dist/{store-details-DARW5N7Z.js → store-details-VPNLJEQW.js} +47 -40
- package/dist/{store-edit-FXGGXEPH.js → store-edit-6Z2ORG5F.js} +6 -7
- package/dist/store-list-FV2HPPVE.js +80 -0
- package/dist/{store-member-invite-WPKIJFKF.js → store-member-invite-HJ3HSQ6P.js} +5 -6
- package/dist/{store-payment-details-edit-3QIONG2Z.js → store-payment-details-edit-JRHVAWFJ.js} +3 -4
- package/dist/{store-professional-details-edit-2KGP4R4E.js → store-professional-details-edit-623AGHEB.js} +3 -4
- package/dist/{tax-region-create-KRRVZTOB.js → tax-region-create-NRY2FH4O.js} +31 -32
- package/dist/tax-region-detail-JA7S5HWF.js +66 -0
- package/dist/{tax-region-edit-P654YFDA.js → tax-region-edit-KYF2TUAA.js} +30 -31
- package/dist/{tax-region-list-G3DLBZXS.js → tax-region-list-EN2XGZLJ.js} +6 -7
- package/dist/{tax-region-metadata-TOMGHV4L.js → tax-region-metadata-PZNTQZ66.js} +30 -31
- package/dist/{tax-region-province-create-ZQBJSGDY.js → tax-region-province-create-DY7IEM2A.js} +2 -3
- package/dist/{tax-region-province-detail-OAPPLPWH.js → tax-region-province-detail-QPZUP6LC.js} +33 -34
- package/dist/{tax-region-tax-override-create-R4PQ7LV7.js → tax-region-tax-override-create-U5654PKU.js} +43 -43
- package/dist/{tax-region-tax-override-edit-BFSBKLLR.js → tax-region-tax-override-edit-DQCSKCYZ.js} +43 -43
- package/dist/{tax-region-tax-rate-create-GXUR4ROT.js → tax-region-tax-rate-create-N5FHHGV2.js} +3 -4
- package/dist/{tax-region-tax-rate-edit-RWBXWFW3.js → tax-region-tax-rate-edit-7E45DXUP.js} +3 -4
- package/dist/{user-detail-BQSC2WUU.js → user-detail-JVJCU3AN.js} +4 -5
- package/dist/{user-edit-JE4C5CRA.js → user-edit-UJMTZBPX.js} +2 -3
- package/dist/{user-invite-TV2OGAAM.js → user-invite-VDNGXSV3.js} +2 -3
- package/dist/{user-list-JTK5Z673.js → user-list-KBRBDW2H.js} +3 -4
- package/dist/{user-metadata-4XXJXZJO.js → user-metadata-A2GTLQEJ.js} +30 -31
- package/package.json +6 -6
- package/dist/attribute-list-M5IP6VR7.js +0 -60
- package/dist/chunk-6UZQ3NIF.js +0 -33
- package/dist/chunk-BUVPXS25.js +0 -97
- package/dist/chunk-MWEFUPRY.js +0 -61
- package/dist/chunk-RHKRREUU.js +0 -15
- package/dist/customer-group-list-IFM4YEVY.js +0 -55
- package/dist/home-D5MWSO5M.js +0 -63
- package/dist/location-list-YB27PV3R.js +0 -52
- package/dist/location-service-zone-shipping-option-create-PDEJJ6E3.js +0 -59
- package/dist/price-list-create-R2JDXJRG.js +0 -73
- package/dist/price-list-prices-add-Q7UR2HAT.js +0 -69
- package/dist/promotion-create-LIYNZIUS.js +0 -57
- package/dist/sales-channel-list-AR3S2X23.js +0 -49
- package/dist/settings-PDVDZSWL.js +0 -62
- package/dist/shipping-option-type-list-643TZV6H.js +0 -59
- package/dist/store-list-SNHRYJLA.js +0 -81
- package/dist/tax-region-detail-SM4MTPMW.js +0 -67
|
@@ -5,12 +5,15 @@ import {
|
|
|
5
5
|
UploadMediaFormItem
|
|
6
6
|
} from "./chunk-32URSQ4F.js";
|
|
7
7
|
import {
|
|
8
|
+
PRODUCT_CREATE_FIELD_IDS,
|
|
8
9
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
10
|
+
PRODUCT_CREATE_VARIANT_COLUMN_IDS,
|
|
9
11
|
ProductCreateSchema,
|
|
10
12
|
decorateVariantsWithDefaultValues,
|
|
11
13
|
normalizeProductFormValues,
|
|
14
|
+
seedVariantAdditionalData,
|
|
12
15
|
subscribeVariantsToAttributes
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GIPLONYW.js";
|
|
14
17
|
import {
|
|
15
18
|
HandleInput
|
|
16
19
|
} from "./chunk-HJ56YXBU.js";
|
|
@@ -25,7 +28,7 @@ import {
|
|
|
25
28
|
} from "./chunk-4YWKKCTT.js";
|
|
26
29
|
import {
|
|
27
30
|
SingleCategoryCombobox
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XZTJCIW5.js";
|
|
29
32
|
import {
|
|
30
33
|
useComboboxData
|
|
31
34
|
} from "./chunk-5KGMGL4N.js";
|
|
@@ -45,8 +48,9 @@ import {
|
|
|
45
48
|
} from "./chunk-2EME4AWX.js";
|
|
46
49
|
import {
|
|
47
50
|
DataGrid,
|
|
51
|
+
createDataGridExtensionColumn,
|
|
48
52
|
createDataGridHelper
|
|
49
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-ZASF7XBG.js";
|
|
50
54
|
import {
|
|
51
55
|
RouteFocusModal,
|
|
52
56
|
StackedFocusModal,
|
|
@@ -61,7 +65,7 @@ import {
|
|
|
61
65
|
} from "./chunk-LAVHRER2.js";
|
|
62
66
|
import {
|
|
63
67
|
require_dist
|
|
64
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-VYPJCJ5T.js";
|
|
65
69
|
import {
|
|
66
70
|
_DataTable,
|
|
67
71
|
useDataTable
|
|
@@ -71,19 +75,19 @@ import {
|
|
|
71
75
|
} from "./chunk-3UOYBH5O.js";
|
|
72
76
|
import {
|
|
73
77
|
useStore
|
|
74
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-CYRBIZLI.js";
|
|
75
79
|
import {
|
|
76
80
|
useRegions
|
|
77
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-XJV4PVT5.js";
|
|
78
82
|
import {
|
|
79
83
|
useSalesChannel
|
|
80
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-EKXHGK7S.js";
|
|
81
85
|
import {
|
|
82
86
|
useProductAttributes
|
|
83
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-KUR6AQRH.js";
|
|
84
88
|
import {
|
|
85
89
|
useCreateProduct
|
|
86
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-BYW3OPEN.js";
|
|
87
91
|
import {
|
|
88
92
|
sdk
|
|
89
93
|
} from "./chunk-PFJ2C667.js";
|
|
@@ -98,14 +102,20 @@ import { useCan as useCan4 } from "@mercurjs/dashboard-shared";
|
|
|
98
102
|
|
|
99
103
|
// src/pages/products/product-create/components/product-create-form/product-create-form.tsx
|
|
100
104
|
import { Button as Button3, toast } from "@medusajs/ui";
|
|
101
|
-
import { useEffect as useEffect3, useMemo as useMemo4, Children } from "react";
|
|
105
|
+
import { useCallback as useCallback2, useEffect as useEffect3, useMemo as useMemo4, Children } from "react";
|
|
102
106
|
import { useForm } from "react-hook-form";
|
|
103
107
|
import { useTranslation as useTranslation9 } from "react-i18next";
|
|
104
|
-
import {
|
|
108
|
+
import {
|
|
109
|
+
buildScopedAdditionalData,
|
|
110
|
+
isForbidden as isForbidden2,
|
|
111
|
+
refineAdditionalData,
|
|
112
|
+
useCan as useCan3,
|
|
113
|
+
useExtension
|
|
114
|
+
} from "@mercurjs/dashboard-shared";
|
|
105
115
|
|
|
106
116
|
// src/pages/products/product-create/components/product-create-attributes-form/product-create-attributes-form.tsx
|
|
107
117
|
var import_types = __toESM(require_dist(), 1);
|
|
108
|
-
import { useCan as useCan2 } from "@mercurjs/dashboard-shared";
|
|
118
|
+
import { FormExtensionZone, useCan as useCan2 } from "@mercurjs/dashboard-shared";
|
|
109
119
|
import { XMarkMini } from "@medusajs/icons";
|
|
110
120
|
import {
|
|
111
121
|
Button as Button2,
|
|
@@ -474,7 +484,18 @@ var Root = () => {
|
|
|
474
484
|
)
|
|
475
485
|
}
|
|
476
486
|
),
|
|
477
|
-
/* @__PURE__ */ jsx2(RequiredAttributes, {})
|
|
487
|
+
/* @__PURE__ */ jsx2(RequiredAttributes, {}),
|
|
488
|
+
/* @__PURE__ */ jsx2(
|
|
489
|
+
FormExtensionZone,
|
|
490
|
+
{
|
|
491
|
+
model: "product",
|
|
492
|
+
zone: "create",
|
|
493
|
+
tab: "attributes",
|
|
494
|
+
exactTab: true,
|
|
495
|
+
control: form.control,
|
|
496
|
+
builtInFieldIds: PRODUCT_CREATE_FIELD_IDS
|
|
497
|
+
}
|
|
498
|
+
)
|
|
478
499
|
] })
|
|
479
500
|
]
|
|
480
501
|
}
|
|
@@ -975,11 +996,15 @@ var ProductCreateAttributesForm = Root;
|
|
|
975
996
|
|
|
976
997
|
// src/pages/products/product-create/components/product-create-details-form/product-create-details-form.tsx
|
|
977
998
|
import { Heading as Heading3 } from "@medusajs/ui";
|
|
999
|
+
import {
|
|
1000
|
+
ExtendableFormField as ExtendableFormField2,
|
|
1001
|
+
FormExtensionZone as FormExtensionZone2
|
|
1002
|
+
} from "@mercurjs/dashboard-shared";
|
|
978
1003
|
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
979
1004
|
|
|
980
1005
|
// src/pages/products/product-create/components/product-create-details-form/components/product-create-details-general-section/product-create-general-section.tsx
|
|
981
1006
|
import { Input as Input2 } from "@medusajs/ui";
|
|
982
|
-
import { RichTextEditor } from "@mercurjs/dashboard-shared";
|
|
1007
|
+
import { ExtendableFormField, RichTextEditor } from "@mercurjs/dashboard-shared";
|
|
983
1008
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
984
1009
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
985
1010
|
var ProductCreateGeneralSection = () => {
|
|
@@ -988,73 +1013,113 @@ var ProductCreateGeneralSection = () => {
|
|
|
988
1013
|
return /* @__PURE__ */ jsxs3("div", { id: "general", className: "flex flex-col gap-y-6", "data-testid": "product-create-general-section", children: [
|
|
989
1014
|
/* @__PURE__ */ jsx3("div", { className: "flex flex-col gap-y-2", "data-testid": "product-create-general-section-fields", children: /* @__PURE__ */ jsxs3("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-3", "data-testid": "product-create-general-section-title-fields", children: [
|
|
990
1015
|
/* @__PURE__ */ jsx3(
|
|
991
|
-
|
|
1016
|
+
ExtendableFormField,
|
|
992
1017
|
{
|
|
1018
|
+
model: "product",
|
|
1019
|
+
zone: "create",
|
|
1020
|
+
tab: "details",
|
|
1021
|
+
id: "title",
|
|
993
1022
|
control: form.control,
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1023
|
+
children: /* @__PURE__ */ jsx3(
|
|
1024
|
+
Form.Field,
|
|
1025
|
+
{
|
|
1026
|
+
control: form.control,
|
|
1027
|
+
name: "title",
|
|
1028
|
+
render: ({ field }) => {
|
|
1029
|
+
return /* @__PURE__ */ jsxs3(Form.Item, { "data-testid": "product-create-general-section-title-item", children: [
|
|
1030
|
+
/* @__PURE__ */ jsx3(Form.Label, { "data-testid": "product-create-general-section-title-label", children: t("products.fields.title.label") }),
|
|
1031
|
+
/* @__PURE__ */ jsx3(Form.Control, { "data-testid": "product-create-general-section-title-control", children: /* @__PURE__ */ jsx3(Input2, { ...field, placeholder: t("products.fields.title.placeholder"), "data-testid": "product-create-general-section-title-input" }) }),
|
|
1032
|
+
/* @__PURE__ */ jsx3(Form.ErrorMessage, { "data-testid": "product-create-general-section-title-error" })
|
|
1033
|
+
] });
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
)
|
|
1002
1037
|
}
|
|
1003
1038
|
),
|
|
1004
1039
|
/* @__PURE__ */ jsx3(
|
|
1005
|
-
|
|
1040
|
+
ExtendableFormField,
|
|
1006
1041
|
{
|
|
1042
|
+
model: "product",
|
|
1043
|
+
zone: "create",
|
|
1044
|
+
tab: "details",
|
|
1045
|
+
id: "subtitle",
|
|
1007
1046
|
control: form.control,
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1047
|
+
children: /* @__PURE__ */ jsx3(
|
|
1048
|
+
Form.Field,
|
|
1049
|
+
{
|
|
1050
|
+
control: form.control,
|
|
1051
|
+
name: "subtitle",
|
|
1052
|
+
render: ({ field }) => {
|
|
1053
|
+
return /* @__PURE__ */ jsxs3(Form.Item, { "data-testid": "product-create-general-section-subtitle-item", children: [
|
|
1054
|
+
/* @__PURE__ */ jsx3(Form.Label, { optional: true, "data-testid": "product-create-general-section-subtitle-label", children: t("products.fields.subtitle.label") }),
|
|
1055
|
+
/* @__PURE__ */ jsx3(Form.Control, { "data-testid": "product-create-general-section-subtitle-control", children: /* @__PURE__ */ jsx3(Input2, { ...field, placeholder: t("products.fields.subtitle.placeholder"), "data-testid": "product-create-general-section-subtitle-input" }) })
|
|
1056
|
+
] });
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
)
|
|
1015
1060
|
}
|
|
1016
1061
|
),
|
|
1017
1062
|
/* @__PURE__ */ jsx3(
|
|
1018
|
-
|
|
1063
|
+
ExtendableFormField,
|
|
1019
1064
|
{
|
|
1065
|
+
model: "product",
|
|
1066
|
+
zone: "create",
|
|
1067
|
+
tab: "details",
|
|
1068
|
+
id: "handle",
|
|
1020
1069
|
control: form.control,
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1070
|
+
children: /* @__PURE__ */ jsx3(
|
|
1071
|
+
Form.Field,
|
|
1072
|
+
{
|
|
1073
|
+
control: form.control,
|
|
1074
|
+
name: "handle",
|
|
1075
|
+
render: ({ field }) => {
|
|
1076
|
+
return /* @__PURE__ */ jsxs3(Form.Item, { "data-testid": "product-create-general-section-handle-item", children: [
|
|
1077
|
+
/* @__PURE__ */ jsx3(
|
|
1078
|
+
Form.Label,
|
|
1079
|
+
{
|
|
1080
|
+
tooltip: t("products.fields.handle.tooltip"),
|
|
1081
|
+
optional: true,
|
|
1082
|
+
"data-testid": "product-create-general-section-handle-label",
|
|
1083
|
+
children: t("fields.handle")
|
|
1084
|
+
}
|
|
1085
|
+
),
|
|
1086
|
+
/* @__PURE__ */ jsx3(Form.Control, { "data-testid": "product-create-general-section-handle-control", children: /* @__PURE__ */ jsx3(HandleInput, { ...field, placeholder: t("products.fields.handle.placeholder"), "data-testid": "product-create-general-section-handle-input" }) })
|
|
1087
|
+
] });
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
)
|
|
1036
1091
|
}
|
|
1037
1092
|
)
|
|
1038
1093
|
] }) }),
|
|
1039
1094
|
/* @__PURE__ */ jsx3(
|
|
1040
|
-
|
|
1095
|
+
ExtendableFormField,
|
|
1041
1096
|
{
|
|
1097
|
+
model: "product",
|
|
1098
|
+
zone: "create",
|
|
1099
|
+
tab: "details",
|
|
1100
|
+
id: "description",
|
|
1042
1101
|
control: form.control,
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
{
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1102
|
+
children: /* @__PURE__ */ jsx3(
|
|
1103
|
+
Form.Field,
|
|
1104
|
+
{
|
|
1105
|
+
control: form.control,
|
|
1106
|
+
name: "description",
|
|
1107
|
+
render: ({ field }) => {
|
|
1108
|
+
return /* @__PURE__ */ jsxs3(Form.Item, { "data-testid": "product-create-general-section-description-item", children: [
|
|
1109
|
+
/* @__PURE__ */ jsx3(Form.Label, { optional: true, "data-testid": "product-create-general-section-description-label", children: t("products.fields.description.label") }),
|
|
1110
|
+
/* @__PURE__ */ jsx3(Form.Control, { "data-testid": "product-create-general-section-description-control", children: /* @__PURE__ */ jsx3(
|
|
1111
|
+
RichTextEditor,
|
|
1112
|
+
{
|
|
1113
|
+
...field,
|
|
1114
|
+
placeholder: t("products.fields.description.placeholder"),
|
|
1115
|
+
onUpload: uploadRichTextImage,
|
|
1116
|
+
"data-testid": "product-create-general-section-description-input"
|
|
1117
|
+
}
|
|
1118
|
+
) })
|
|
1119
|
+
] });
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
)
|
|
1058
1123
|
}
|
|
1059
1124
|
)
|
|
1060
1125
|
] });
|
|
@@ -1535,6 +1600,7 @@ var ProductCreateVariantsSection = () => {
|
|
|
1535
1600
|
// src/pages/products/product-create/components/product-create-details-form/product-create-details-form.tsx
|
|
1536
1601
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1537
1602
|
var Root2 = () => {
|
|
1603
|
+
const form = useTabbedForm();
|
|
1538
1604
|
return /* @__PURE__ */ jsx6(
|
|
1539
1605
|
"div",
|
|
1540
1606
|
{
|
|
@@ -1554,11 +1620,31 @@ var Root2 = () => {
|
|
|
1554
1620
|
"data-testid": "product-create-details-form-sections",
|
|
1555
1621
|
children: [
|
|
1556
1622
|
/* @__PURE__ */ jsx6(ProductCreateGeneralSection, {}),
|
|
1557
|
-
/* @__PURE__ */ jsx6(
|
|
1623
|
+
/* @__PURE__ */ jsx6(
|
|
1624
|
+
ExtendableFormField2,
|
|
1625
|
+
{
|
|
1626
|
+
model: "product",
|
|
1627
|
+
zone: "create",
|
|
1628
|
+
tab: "details",
|
|
1629
|
+
id: "media",
|
|
1630
|
+
control: form.control,
|
|
1631
|
+
children: /* @__PURE__ */ jsx6(ProductCreateMediaSection, {})
|
|
1632
|
+
}
|
|
1633
|
+
)
|
|
1558
1634
|
]
|
|
1559
1635
|
}
|
|
1560
1636
|
),
|
|
1561
|
-
/* @__PURE__ */ jsx6(ProductCreateVariantsSection, {})
|
|
1637
|
+
/* @__PURE__ */ jsx6(ProductCreateVariantsSection, {}),
|
|
1638
|
+
/* @__PURE__ */ jsx6(
|
|
1639
|
+
FormExtensionZone2,
|
|
1640
|
+
{
|
|
1641
|
+
model: "product",
|
|
1642
|
+
zone: "create",
|
|
1643
|
+
tab: "details",
|
|
1644
|
+
control: form.control,
|
|
1645
|
+
builtInFieldIds: PRODUCT_CREATE_FIELD_IDS
|
|
1646
|
+
}
|
|
1647
|
+
)
|
|
1562
1648
|
]
|
|
1563
1649
|
}
|
|
1564
1650
|
)
|
|
@@ -1583,8 +1669,11 @@ var Header = () => {
|
|
|
1583
1669
|
);
|
|
1584
1670
|
};
|
|
1585
1671
|
|
|
1672
|
+
// src/pages/products/product-create/components/product-create-organize-form/product-create-organize-form.tsx
|
|
1673
|
+
import { FormExtensionZone as FormExtensionZone3 } from "@mercurjs/dashboard-shared";
|
|
1674
|
+
|
|
1586
1675
|
// src/pages/products/product-create/components/product-create-organize-form/components/product-create-organize-section/product-create-details-organize-section.tsx
|
|
1587
|
-
import { usePermissionGate } from "@mercurjs/dashboard-shared";
|
|
1676
|
+
import { ExtendableFormField as ExtendableFormField3, usePermissionGate } from "@mercurjs/dashboard-shared";
|
|
1588
1677
|
import { Heading as Heading4 } from "@medusajs/ui";
|
|
1589
1678
|
import { useWatch as useWatch3 } from "react-hook-form";
|
|
1590
1679
|
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
@@ -1640,198 +1729,282 @@ var ProductCreateOrganizationSection = () => {
|
|
|
1640
1729
|
/* @__PURE__ */ jsx7(Heading4, { "data-testid": "product-create-organize-section-heading", children: t("products.organization.header") }),
|
|
1641
1730
|
/* @__PURE__ */ jsxs7("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2", "data-testid": "product-create-organize-section-category-collection", children: [
|
|
1642
1731
|
/* @__PURE__ */ jsx7(
|
|
1643
|
-
|
|
1732
|
+
ExtendableFormField3,
|
|
1644
1733
|
{
|
|
1734
|
+
model: "product",
|
|
1735
|
+
zone: "create",
|
|
1736
|
+
tab: "organize",
|
|
1737
|
+
id: "category_id",
|
|
1645
1738
|
control: form.control,
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
{
|
|
1653
|
-
|
|
1654
|
-
"data-testid": "product-create-organize-section-category-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1739
|
+
children: /* @__PURE__ */ jsx7(
|
|
1740
|
+
Form.Field,
|
|
1741
|
+
{
|
|
1742
|
+
control: form.control,
|
|
1743
|
+
name: "category_id",
|
|
1744
|
+
render: ({ field }) => {
|
|
1745
|
+
return /* @__PURE__ */ jsxs7(Form.Item, { "data-testid": "product-create-organize-section-category-item", children: [
|
|
1746
|
+
/* @__PURE__ */ jsx7(Form.Label, { "data-testid": "product-create-organize-section-category-label", children: t("fields.category") }),
|
|
1747
|
+
/* @__PURE__ */ jsx7(Form.Control, { "data-testid": "product-create-organize-section-category-control", children: /* @__PURE__ */ jsx7(
|
|
1748
|
+
SingleCategoryCombobox,
|
|
1749
|
+
{
|
|
1750
|
+
...field,
|
|
1751
|
+
"data-testid": "product-create-organize-section-category-input"
|
|
1752
|
+
}
|
|
1753
|
+
) }),
|
|
1754
|
+
/* @__PURE__ */ jsx7(Form.ErrorMessage, {})
|
|
1755
|
+
] });
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
)
|
|
1660
1759
|
}
|
|
1661
1760
|
),
|
|
1662
1761
|
/* @__PURE__ */ jsx7(
|
|
1663
|
-
|
|
1762
|
+
ExtendableFormField3,
|
|
1664
1763
|
{
|
|
1764
|
+
model: "product",
|
|
1765
|
+
zone: "create",
|
|
1766
|
+
tab: "organize",
|
|
1767
|
+
id: "collection_id",
|
|
1665
1768
|
control: form.control,
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
{
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
Combobox,
|
|
1769
|
+
children: /* @__PURE__ */ jsx7(
|
|
1770
|
+
Form.Field,
|
|
1771
|
+
{
|
|
1772
|
+
control: form.control,
|
|
1773
|
+
name: "collection_id",
|
|
1774
|
+
render: ({ field }) => {
|
|
1775
|
+
return /* @__PURE__ */ jsxs7(Form.Item, { "data-testid": "product-create-organize-section-collection-item", children: [
|
|
1776
|
+
/* @__PURE__ */ jsx7(Form.Label, { optional: true, "data-testid": "product-create-organize-section-collection-label", children: t("products.fields.collection.label") }),
|
|
1777
|
+
/* @__PURE__ */ jsx7(
|
|
1778
|
+
ConditionalTooltip,
|
|
1677
1779
|
{
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1780
|
+
showTooltip: collectionsGate.denied,
|
|
1781
|
+
content: collectionsGate.tooltip,
|
|
1782
|
+
children: /* @__PURE__ */ jsx7("div", { children: /* @__PURE__ */ jsx7(Form.Control, { "data-testid": "product-create-organize-section-collection-control", children: /* @__PURE__ */ jsx7(
|
|
1783
|
+
Combobox,
|
|
1784
|
+
{
|
|
1785
|
+
...field,
|
|
1786
|
+
disabled: collectionsGate.denied,
|
|
1787
|
+
options: collections.options,
|
|
1788
|
+
searchValue: collections.searchValue,
|
|
1789
|
+
onSearchValueChange: collections.onSearchValueChange,
|
|
1790
|
+
fetchNextPage: collections.fetchNextPage,
|
|
1791
|
+
"data-testid": "product-create-organize-section-collection-input"
|
|
1792
|
+
}
|
|
1793
|
+
) }) })
|
|
1685
1794
|
}
|
|
1686
|
-
)
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1795
|
+
),
|
|
1796
|
+
/* @__PURE__ */ jsx7(Form.ErrorMessage, {})
|
|
1797
|
+
] });
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
)
|
|
1692
1801
|
}
|
|
1693
1802
|
)
|
|
1694
1803
|
] }),
|
|
1695
1804
|
/* @__PURE__ */ jsxs7("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2", "data-testid": "product-create-organize-section-type-tags", children: [
|
|
1696
1805
|
/* @__PURE__ */ jsx7(
|
|
1697
|
-
|
|
1806
|
+
ExtendableFormField3,
|
|
1698
1807
|
{
|
|
1808
|
+
model: "product",
|
|
1809
|
+
zone: "create",
|
|
1810
|
+
tab: "organize",
|
|
1811
|
+
id: "type_id",
|
|
1699
1812
|
control: form.control,
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
{
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
Combobox,
|
|
1813
|
+
children: /* @__PURE__ */ jsx7(
|
|
1814
|
+
Form.Field,
|
|
1815
|
+
{
|
|
1816
|
+
control: form.control,
|
|
1817
|
+
name: "type_id",
|
|
1818
|
+
render: ({ field }) => {
|
|
1819
|
+
return /* @__PURE__ */ jsxs7(Form.Item, { "data-testid": "product-create-organize-section-type-item", children: [
|
|
1820
|
+
/* @__PURE__ */ jsx7(Form.Label, { optional: true, "data-testid": "product-create-organize-section-type-label", children: t("products.fields.type.label") }),
|
|
1821
|
+
/* @__PURE__ */ jsx7(
|
|
1822
|
+
ConditionalTooltip,
|
|
1711
1823
|
{
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1824
|
+
showTooltip: typesGate.denied,
|
|
1825
|
+
content: typesGate.tooltip,
|
|
1826
|
+
children: /* @__PURE__ */ jsx7("div", { children: /* @__PURE__ */ jsx7(Form.Control, { "data-testid": "product-create-organize-section-type-control", children: /* @__PURE__ */ jsx7(
|
|
1827
|
+
Combobox,
|
|
1828
|
+
{
|
|
1829
|
+
...field,
|
|
1830
|
+
disabled: typesGate.denied,
|
|
1831
|
+
options: types.options,
|
|
1832
|
+
searchValue: types.searchValue,
|
|
1833
|
+
onSearchValueChange: types.onSearchValueChange,
|
|
1834
|
+
fetchNextPage: types.fetchNextPage,
|
|
1835
|
+
"data-testid": "product-create-organize-section-type-input"
|
|
1836
|
+
}
|
|
1837
|
+
) }) })
|
|
1719
1838
|
}
|
|
1720
|
-
)
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1839
|
+
),
|
|
1840
|
+
/* @__PURE__ */ jsx7(Form.ErrorMessage, {})
|
|
1841
|
+
] });
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
)
|
|
1726
1845
|
}
|
|
1727
1846
|
),
|
|
1728
1847
|
/* @__PURE__ */ jsx7(
|
|
1729
|
-
|
|
1848
|
+
ExtendableFormField3,
|
|
1730
1849
|
{
|
|
1850
|
+
model: "product",
|
|
1851
|
+
zone: "create",
|
|
1852
|
+
tab: "organize",
|
|
1853
|
+
id: "tags",
|
|
1731
1854
|
control: form.control,
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
{
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
Combobox,
|
|
1855
|
+
children: /* @__PURE__ */ jsx7(
|
|
1856
|
+
Form.Field,
|
|
1857
|
+
{
|
|
1858
|
+
control: form.control,
|
|
1859
|
+
name: "tags",
|
|
1860
|
+
render: ({ field }) => {
|
|
1861
|
+
return /* @__PURE__ */ jsxs7(Form.Item, { "data-testid": "product-create-organize-section-tags-item", children: [
|
|
1862
|
+
/* @__PURE__ */ jsx7(Form.Label, { optional: true, "data-testid": "product-create-organize-section-tags-label", children: t("products.fields.tags.label") }),
|
|
1863
|
+
/* @__PURE__ */ jsx7(
|
|
1864
|
+
ConditionalTooltip,
|
|
1743
1865
|
{
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1866
|
+
showTooltip: tagsGate.denied,
|
|
1867
|
+
content: tagsGate.tooltip,
|
|
1868
|
+
children: /* @__PURE__ */ jsx7("div", { children: /* @__PURE__ */ jsx7(Form.Control, { "data-testid": "product-create-organize-section-tags-control", children: /* @__PURE__ */ jsx7(
|
|
1869
|
+
Combobox,
|
|
1870
|
+
{
|
|
1871
|
+
...field,
|
|
1872
|
+
disabled: tagsGate.denied,
|
|
1873
|
+
options: tags.options,
|
|
1874
|
+
searchValue: tags.searchValue,
|
|
1875
|
+
onSearchValueChange: tags.onSearchValueChange,
|
|
1876
|
+
fetchNextPage: tags.fetchNextPage,
|
|
1877
|
+
"data-testid": "product-create-organize-section-tags-input"
|
|
1878
|
+
}
|
|
1879
|
+
) }) })
|
|
1751
1880
|
}
|
|
1752
|
-
)
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1881
|
+
),
|
|
1882
|
+
/* @__PURE__ */ jsx7(Form.ErrorMessage, {})
|
|
1883
|
+
] });
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
)
|
|
1758
1887
|
}
|
|
1759
1888
|
)
|
|
1760
1889
|
] }),
|
|
1761
1890
|
/* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-y-4", children: [
|
|
1762
1891
|
/* @__PURE__ */ jsx7(
|
|
1763
|
-
|
|
1892
|
+
ExtendableFormField3,
|
|
1764
1893
|
{
|
|
1894
|
+
model: "product",
|
|
1895
|
+
zone: "create",
|
|
1896
|
+
tab: "organize",
|
|
1897
|
+
id: "discountable",
|
|
1765
1898
|
control: form.control,
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1899
|
+
children: /* @__PURE__ */ jsx7(
|
|
1900
|
+
SwitchBox,
|
|
1901
|
+
{
|
|
1902
|
+
control: form.control,
|
|
1903
|
+
name: "discountable",
|
|
1904
|
+
label: t("products.fields.discountable.label"),
|
|
1905
|
+
description: t("products.fields.discountable.hint"),
|
|
1906
|
+
optional: true,
|
|
1907
|
+
"data-testid": "product-create-organize-section-discountable-switch"
|
|
1908
|
+
}
|
|
1909
|
+
)
|
|
1771
1910
|
}
|
|
1772
1911
|
),
|
|
1773
1912
|
/* @__PURE__ */ jsx7(
|
|
1774
|
-
|
|
1913
|
+
ExtendableFormField3,
|
|
1775
1914
|
{
|
|
1915
|
+
model: "product",
|
|
1916
|
+
zone: "create",
|
|
1917
|
+
tab: "organize",
|
|
1918
|
+
id: "globally_available",
|
|
1776
1919
|
control: form.control,
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1920
|
+
children: /* @__PURE__ */ jsx7(
|
|
1921
|
+
SwitchBox,
|
|
1922
|
+
{
|
|
1923
|
+
control: form.control,
|
|
1924
|
+
name: "globally_available",
|
|
1925
|
+
label: t("products.fields.globally_available.label"),
|
|
1926
|
+
description: t("products.fields.globally_available.hint"),
|
|
1927
|
+
optional: true,
|
|
1928
|
+
"data-testid": "product-create-organize-section-globally-available-switch"
|
|
1929
|
+
}
|
|
1930
|
+
)
|
|
1782
1931
|
}
|
|
1783
1932
|
)
|
|
1784
1933
|
] }),
|
|
1785
1934
|
!isGloballyAvailable && /* @__PURE__ */ jsx7(
|
|
1786
|
-
|
|
1935
|
+
ExtendableFormField3,
|
|
1787
1936
|
{
|
|
1937
|
+
model: "product",
|
|
1938
|
+
zone: "create",
|
|
1939
|
+
tab: "organize",
|
|
1940
|
+
id: "seller_ids",
|
|
1788
1941
|
control: form.control,
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
{
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
Combobox,
|
|
1942
|
+
children: /* @__PURE__ */ jsx7(
|
|
1943
|
+
Form.Field,
|
|
1944
|
+
{
|
|
1945
|
+
control: form.control,
|
|
1946
|
+
name: "seller_ids",
|
|
1947
|
+
render: ({ field }) => {
|
|
1948
|
+
return /* @__PURE__ */ jsxs7(Form.Item, { "data-testid": "product-create-organize-section-stores-item", children: [
|
|
1949
|
+
/* @__PURE__ */ jsx7(Form.Label, { "data-testid": "product-create-organize-section-stores-label", children: t("products.fields.stores.label") }),
|
|
1950
|
+
/* @__PURE__ */ jsx7(
|
|
1951
|
+
ConditionalTooltip,
|
|
1800
1952
|
{
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1953
|
+
showTooltip: sellersGate.denied,
|
|
1954
|
+
content: sellersGate.tooltip,
|
|
1955
|
+
children: /* @__PURE__ */ jsx7("div", { children: /* @__PURE__ */ jsx7(Form.Control, { "data-testid": "product-create-organize-section-stores-control", children: /* @__PURE__ */ jsx7(
|
|
1956
|
+
Combobox,
|
|
1957
|
+
{
|
|
1958
|
+
...field,
|
|
1959
|
+
value: field.value ?? [],
|
|
1960
|
+
disabled: sellersGate.denied,
|
|
1961
|
+
options: sellers.options,
|
|
1962
|
+
searchValue: sellers.searchValue,
|
|
1963
|
+
onSearchValueChange: sellers.onSearchValueChange,
|
|
1964
|
+
fetchNextPage: sellers.fetchNextPage,
|
|
1965
|
+
"data-testid": "product-create-organize-section-stores-input"
|
|
1966
|
+
}
|
|
1967
|
+
) }) })
|
|
1809
1968
|
}
|
|
1810
|
-
)
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1969
|
+
),
|
|
1970
|
+
/* @__PURE__ */ jsx7(Form.ErrorMessage, {})
|
|
1971
|
+
] });
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
)
|
|
1816
1975
|
}
|
|
1817
1976
|
)
|
|
1818
1977
|
] });
|
|
1819
1978
|
};
|
|
1820
1979
|
|
|
1821
1980
|
// src/pages/products/product-create/components/product-create-organize-form/product-create-organize-form.tsx
|
|
1822
|
-
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1981
|
+
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1823
1982
|
var Root3 = () => {
|
|
1983
|
+
const form = useTabbedForm();
|
|
1824
1984
|
return /* @__PURE__ */ jsx8(
|
|
1825
1985
|
"div",
|
|
1826
1986
|
{
|
|
1827
1987
|
className: "flex flex-col items-center p-16",
|
|
1828
1988
|
"data-testid": "product-create-organize-form",
|
|
1829
|
-
children: /* @__PURE__ */
|
|
1989
|
+
children: /* @__PURE__ */ jsxs8(
|
|
1830
1990
|
"div",
|
|
1831
1991
|
{
|
|
1832
1992
|
className: "flex w-full max-w-[720px] flex-col gap-y-8",
|
|
1833
1993
|
"data-testid": "product-create-organize-form-content",
|
|
1834
|
-
children:
|
|
1994
|
+
children: [
|
|
1995
|
+
/* @__PURE__ */ jsx8(ProductCreateOrganizationSection, {}),
|
|
1996
|
+
/* @__PURE__ */ jsx8(
|
|
1997
|
+
FormExtensionZone3,
|
|
1998
|
+
{
|
|
1999
|
+
model: "product",
|
|
2000
|
+
zone: "create",
|
|
2001
|
+
tab: "organize",
|
|
2002
|
+
exactTab: true,
|
|
2003
|
+
control: form.control,
|
|
2004
|
+
builtInFieldIds: PRODUCT_CREATE_FIELD_IDS
|
|
2005
|
+
}
|
|
2006
|
+
)
|
|
2007
|
+
]
|
|
1835
2008
|
}
|
|
1836
2009
|
)
|
|
1837
2010
|
}
|
|
@@ -1861,7 +2034,8 @@ var ProductCreateOrganizeForm = Root3;
|
|
|
1861
2034
|
|
|
1862
2035
|
// src/pages/products/product-create/components/product-create-variants-form/product-create-variants-form.tsx
|
|
1863
2036
|
import { Input as Input3 } from "@medusajs/ui";
|
|
1864
|
-
import {
|
|
2037
|
+
import { useExtendableGrid } from "@mercurjs/dashboard-shared";
|
|
2038
|
+
import { useCallback, useMemo as useMemo3, useState as useState3 } from "react";
|
|
1865
2039
|
import { useWatch as useWatch4 } from "react-hook-form";
|
|
1866
2040
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
1867
2041
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
@@ -1885,9 +2059,22 @@ var Root4 = () => {
|
|
|
1885
2059
|
title: attr.title
|
|
1886
2060
|
}));
|
|
1887
2061
|
}, [watchedAttributes]);
|
|
1888
|
-
const
|
|
2062
|
+
const baseColumns = useColumns2({
|
|
1889
2063
|
variantAxes
|
|
1890
2064
|
});
|
|
2065
|
+
const createColumn = useCallback(
|
|
2066
|
+
createDataGridExtensionColumn,
|
|
2067
|
+
[]
|
|
2068
|
+
);
|
|
2069
|
+
const columns = useExtendableGrid({
|
|
2070
|
+
model: "product",
|
|
2071
|
+
zone: "create",
|
|
2072
|
+
tab: "variants",
|
|
2073
|
+
columns: baseColumns,
|
|
2074
|
+
lockedColumnIds: LOCKED_COLUMN_IDS,
|
|
2075
|
+
getRowPath: rowPath,
|
|
2076
|
+
createColumn
|
|
2077
|
+
});
|
|
1891
2078
|
const variantData = useMemo3(() => {
|
|
1892
2079
|
const ret = [];
|
|
1893
2080
|
variants.forEach((v, i) => {
|
|
@@ -1954,6 +2141,8 @@ Root4._tabMeta = defineTabMeta({
|
|
|
1954
2141
|
validationFields: ["variants"]
|
|
1955
2142
|
});
|
|
1956
2143
|
var ProductCreateVariantsForm = Root4;
|
|
2144
|
+
var LOCKED_COLUMN_IDS = ["attributes"];
|
|
2145
|
+
var rowPath = (row) => `variants.${row.originalIndex}`;
|
|
1957
2146
|
var columnHelper2 = createDataGridHelper();
|
|
1958
2147
|
var useColumns2 = ({
|
|
1959
2148
|
variantAxes
|
|
@@ -1996,8 +2185,10 @@ var useColumns2 = ({
|
|
|
1996
2185
|
|
|
1997
2186
|
// src/pages/products/product-create/components/product-create-form/product-create-form.tsx
|
|
1998
2187
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
1999
|
-
import { jsx as jsx10, jsxs as
|
|
2188
|
+
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2000
2189
|
var SAVE_DRAFT_BUTTON = "save-draft-button";
|
|
2190
|
+
var FORM_TABS = ["details", "organize", "attributes"];
|
|
2191
|
+
var VARIANTS_TAB = "variants";
|
|
2001
2192
|
var ProductCreateForm = ({
|
|
2002
2193
|
children,
|
|
2003
2194
|
schema,
|
|
@@ -2005,12 +2196,48 @@ var ProductCreateForm = ({
|
|
|
2005
2196
|
}) => {
|
|
2006
2197
|
const { t } = useTranslation9();
|
|
2007
2198
|
const { handleSuccess } = useRouteModal();
|
|
2199
|
+
const extension = useExtension();
|
|
2200
|
+
const productAdditionalData = useMemo4(
|
|
2201
|
+
() => buildScopedAdditionalData(extension, {
|
|
2202
|
+
model: "product",
|
|
2203
|
+
zone: "create",
|
|
2204
|
+
tabs: FORM_TABS,
|
|
2205
|
+
builtInFieldIds: PRODUCT_CREATE_FIELD_IDS
|
|
2206
|
+
}),
|
|
2207
|
+
[extension]
|
|
2208
|
+
);
|
|
2209
|
+
const variantAdditionalData = useMemo4(
|
|
2210
|
+
() => buildScopedAdditionalData(extension, {
|
|
2211
|
+
model: "product",
|
|
2212
|
+
zone: "create",
|
|
2213
|
+
tabs: [VARIANTS_TAB],
|
|
2214
|
+
exactTab: true,
|
|
2215
|
+
builtInFieldIds: PRODUCT_CREATE_VARIANT_COLUMN_IDS
|
|
2216
|
+
}),
|
|
2217
|
+
[extension]
|
|
2218
|
+
);
|
|
2219
|
+
const resolverSchema = useMemo4(
|
|
2220
|
+
() => refineAdditionalData(schema ?? ProductCreateSchema, {
|
|
2221
|
+
additionalData: productAdditionalData.schema,
|
|
2222
|
+
rows: {
|
|
2223
|
+
path: "variants",
|
|
2224
|
+
schema: variantAdditionalData.schema,
|
|
2225
|
+
include: (row) => row.should_create === true
|
|
2226
|
+
}
|
|
2227
|
+
}),
|
|
2228
|
+
[schema, productAdditionalData, variantAdditionalData]
|
|
2229
|
+
);
|
|
2008
2230
|
const form = useForm({
|
|
2009
2231
|
defaultValues: {
|
|
2010
2232
|
...PRODUCT_CREATE_FORM_DEFAULTS,
|
|
2011
|
-
|
|
2233
|
+
additional_data: productAdditionalData.defaults,
|
|
2234
|
+
...extraDefaults,
|
|
2235
|
+
variants: seedVariantAdditionalData(
|
|
2236
|
+
extraDefaults?.variants ?? PRODUCT_CREATE_FORM_DEFAULTS.variants ?? [],
|
|
2237
|
+
variantAdditionalData.defaults
|
|
2238
|
+
)
|
|
2012
2239
|
},
|
|
2013
|
-
resolver: zodResolver(
|
|
2240
|
+
resolver: zodResolver(resolverSchema)
|
|
2014
2241
|
});
|
|
2015
2242
|
const { mutateAsync, isPending } = useCreateProduct();
|
|
2016
2243
|
const canViewRegions = useCan3("regions");
|
|
@@ -2036,7 +2263,26 @@ var ProductCreateForm = ({
|
|
|
2036
2263
|
{}
|
|
2037
2264
|
);
|
|
2038
2265
|
}, [regions]);
|
|
2039
|
-
useEffect3(
|
|
2266
|
+
useEffect3(
|
|
2267
|
+
() => subscribeVariantsToAttributes(form, variantAdditionalData.defaults),
|
|
2268
|
+
[form, variantAdditionalData]
|
|
2269
|
+
);
|
|
2270
|
+
const transformTabs = useCallback2(
|
|
2271
|
+
(tabs) => tabs.map((tab, index) => {
|
|
2272
|
+
if (!tab.validationFields || !FORM_TABS.includes(tab.id)) return tab;
|
|
2273
|
+
const custom = extension.getFormFields(
|
|
2274
|
+
"product",
|
|
2275
|
+
"create",
|
|
2276
|
+
tab.id,
|
|
2277
|
+
PRODUCT_CREATE_FIELD_IDS,
|
|
2278
|
+
index > 0
|
|
2279
|
+
).map(
|
|
2280
|
+
({ name }) => `additional_data.${name}`
|
|
2281
|
+
);
|
|
2282
|
+
return custom.length ? { ...tab, validationFields: [...tab.validationFields, ...custom] } : tab;
|
|
2283
|
+
}),
|
|
2284
|
+
[extension]
|
|
2285
|
+
);
|
|
2040
2286
|
const handleSubmit = form.handleSubmit(async (values, e) => {
|
|
2041
2287
|
if (isRegionsPending) {
|
|
2042
2288
|
return;
|
|
@@ -2109,10 +2355,11 @@ var ProductCreateForm = ({
|
|
|
2109
2355
|
{
|
|
2110
2356
|
model: "product",
|
|
2111
2357
|
zone: "create",
|
|
2358
|
+
transformTabs,
|
|
2112
2359
|
form,
|
|
2113
2360
|
onSubmit: handleSubmit,
|
|
2114
2361
|
isLoading: isPending || isRegionsPending,
|
|
2115
|
-
footer: ({ isLastTab, onNext, isLoading }) => /* @__PURE__ */
|
|
2362
|
+
footer: ({ isLastTab, onNext, isLoading }) => /* @__PURE__ */ jsxs9(
|
|
2116
2363
|
"div",
|
|
2117
2364
|
{
|
|
2118
2365
|
className: "flex items-center justify-end gap-x-2",
|
|
@@ -2173,7 +2420,7 @@ var ProductCreateForm = ({
|
|
|
2173
2420
|
};
|
|
2174
2421
|
|
|
2175
2422
|
// src/pages/products/product-create/product-create.tsx
|
|
2176
|
-
import { jsx as jsx11, jsxs as
|
|
2423
|
+
import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2177
2424
|
var Root5 = ({ children }) => {
|
|
2178
2425
|
const { t } = useTranslation10();
|
|
2179
2426
|
const canViewSalesChannels = useCan4("sales_channels");
|
|
@@ -2200,7 +2447,7 @@ var Root5 = ({ children }) => {
|
|
|
2200
2447
|
if (isSalesChannelError) {
|
|
2201
2448
|
throw salesChannelError;
|
|
2202
2449
|
}
|
|
2203
|
-
return /* @__PURE__ */
|
|
2450
|
+
return /* @__PURE__ */ jsxs10(RouteFocusModal, { children: [
|
|
2204
2451
|
/* @__PURE__ */ jsx11(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsx11("span", { className: "sr-only", children: t("products.create.title") }) }),
|
|
2205
2452
|
/* @__PURE__ */ jsx11(RouteFocusModal.Description, { asChild: true, children: /* @__PURE__ */ jsx11("span", { className: "sr-only", children: t("products.create.description") }) }),
|
|
2206
2453
|
ready && (Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx11(ProductCreateForm, {}))
|