@mercurjs/admin 2.2.0-canary.29 → 2.2.0-canary.30
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-PBKYGW67.js → add-campaign-promotions-7VQ4YSDF.js} +11 -11
- package/dist/{adjust-inventory-KNHM7QEV.js → adjust-inventory-DOJ66E2D.js} +8 -8
- package/dist/{api-key-management-create-7SIKAXEH.js → api-key-management-create-6FLITJ2S.js} +3 -3
- package/dist/{api-key-management-detail-ELMPBXEB.js → api-key-management-detail-ANVRI5YV.js} +12 -13
- package/dist/{api-key-management-edit-C4FYJZGH.js → api-key-management-edit-Z5F3GSZO.js} +3 -3
- package/dist/{api-key-management-list-CUL3EU54.js → api-key-management-list-AIFIEFQX.js} +5 -5
- package/dist/{api-key-management-sales-channels-JLSDZRG6.js → api-key-management-sales-channels-NLFQSL4H.js} +8 -9
- package/dist/{attribute-create-VR3TJH5H.js → attribute-create-BCNSJO5F.js} +11 -11
- package/dist/{attribute-create-possible-value-EXVHC272.js → attribute-create-possible-value-MLUBL2LB.js} +1 -1
- package/dist/{attribute-detail-AIARG6IK.js → attribute-detail-E7IQZW7F.js} +13 -13
- package/dist/{attribute-edit-3PISS3NP.js → attribute-edit-UYGZZCMQ.js} +3 -3
- package/dist/{attribute-edit-possible-value-QZWGVFK2.js → attribute-edit-possible-value-MVYVVF23.js} +3 -3
- package/dist/{attribute-edit-ranking-7AAAYEC7.js → attribute-edit-ranking-WHFPAM7T.js} +1 -1
- package/dist/{attribute-list-TH4VPJUA.js → attribute-list-XDW6VE4J.js} +12 -12
- package/dist/{breadcrumb-CO5DVI72.js → breadcrumb-OYF6FUUL.js} +1 -1
- package/dist/{campaign-detail-UIDRN6TA.js → campaign-detail-YEX2W33U.js} +14 -14
- package/dist/{categories-metadata-INVMU224.js → categories-metadata-WSFKMQSW.js} +8 -8
- package/dist/{category-create-AR33DJYX.js → category-create-QNQKIXYH.js} +3 -3
- package/dist/{category-detail-M7SYPDPA.js → category-detail-UHTEDGZ4.js} +18 -18
- package/dist/{category-edit-XKANIIH5.js → category-edit-6D6RZ7V2.js} +2 -2
- package/dist/{category-icon-edit-SP5TQYA7.js → category-icon-edit-SRCDLZ65.js} +2 -2
- package/dist/{category-list-XAINIL74.js → category-list-KNBCMJPI.js} +7 -7
- package/dist/{category-media-IGRRTZ65.js → category-media-MBK52QCA.js} +2 -2
- package/dist/{category-organize-U6UO35Y3.js → category-organize-7WFAJ46F.js} +2 -2
- package/dist/{category-products-LWPBSQMC.js → category-products-5VEHSKOC.js} +21 -21
- package/dist/{chunk-AWLDIHXR.js → chunk-27PAP64U.js} +1 -1
- package/dist/{chunk-3TZWLHMQ.js → chunk-3KL4OL3I.js} +1 -1
- package/dist/{chunk-CPL24ZKA.js → chunk-3MQJARVG.js} +5 -5
- package/dist/{chunk-7JLBIALC.js → chunk-3V54HZK7.js} +4 -4
- package/dist/{chunk-TKFNBBX7.js → chunk-3ZKJ4F7B.js} +6 -6
- package/dist/{chunk-GVEF6UDT.js → chunk-46MOMKPW.js} +1 -1
- package/dist/{chunk-6ERWTLAW.js → chunk-4XGB5NDV.js} +2 -2
- package/dist/{chunk-KYFWVLWO.js → chunk-5I6YZOBU.js} +1 -1
- package/dist/{chunk-QPLEFEOZ.js → chunk-5K5VNKSE.js} +1 -1
- package/dist/{chunk-FJHAAROU.js → chunk-6MZPZ5KV.js} +1 -1
- package/dist/{chunk-M2E3PKA4.js → chunk-AM5XDEIN.js} +22 -42
- package/dist/{chunk-WJGABDWC.js → chunk-ARAK63IS.js} +1 -1
- package/dist/{chunk-M3YII6OB.js → chunk-B33LL4AM.js} +1 -1
- package/dist/{chunk-GSIFJY3P.js → chunk-B4YTTIYS.js} +1 -1
- package/dist/{chunk-VS4LCJLY.js → chunk-BVWAWPJO.js} +1 -1
- package/dist/{chunk-JRLDKKCM.js → chunk-DBZV75X3.js} +5 -5
- package/dist/{chunk-ORWIYNP2.js → chunk-DCD5KNOW.js} +4 -4
- package/dist/{chunk-PJVUDTJF.js → chunk-DWAAPLKD.js} +6 -6
- package/dist/{chunk-LC3QY7KZ.js → chunk-EAJMQKL5.js} +1 -1
- package/dist/{chunk-CGG4U2MZ.js → chunk-ELYCSQWC.js} +10 -10
- package/dist/{chunk-533GMKEG.js → chunk-ER7GGJ5A.js} +22 -2
- package/dist/{chunk-UUTACMA5.js → chunk-ERQBTOAZ.js} +2 -2
- package/dist/{chunk-GY7LZODD.js → chunk-EXPDYI26.js} +9 -9
- package/dist/{chunk-PT3DTHQK.js → chunk-FDXE4XDD.js} +1 -1
- package/dist/{chunk-6IZ5YBWE.js → chunk-GFMTZ5O3.js} +9 -2
- package/dist/{chunk-3JN4WUVU.js → chunk-GK6V5XL3.js} +3 -3
- package/dist/{chunk-ZUW6LUA4.js → chunk-GKWXWN6R.js} +7 -7
- package/dist/{chunk-W6SVRN6P.js → chunk-GME72WUF.js} +68 -61
- package/dist/{chunk-RDTFLHYO.js → chunk-GV2Z3IHA.js} +1 -1
- package/dist/{chunk-4UWPTSZK.js → chunk-GX7OEF7F.js} +263 -625
- package/dist/{chunk-3C5MNNUD.js → chunk-HVDBP2QZ.js} +1 -1
- package/dist/{chunk-3MC3ZGY2.js → chunk-JFXAJYAT.js} +1 -1
- package/dist/{chunk-EWTSVKNN.js → chunk-KIQM7FNE.js} +1 -1
- package/dist/{chunk-3RKBBZGV.js → chunk-KOOVZT22.js} +44 -29
- package/dist/{chunk-4DP2SPYG.js → chunk-LPETBANQ.js} +5 -5
- package/dist/{chunk-PL44IXBM.js → chunk-LTYARVER.js} +5 -5
- package/dist/{chunk-RJNZPFXH.js → chunk-LX5XLXPI.js} +1 -1
- package/dist/{chunk-W7ZOQUWH.js → chunk-M674QP3K.js} +5 -5
- package/dist/{chunk-OQTFMCR7.js → chunk-MBWL2AUF.js} +9 -9
- package/dist/{chunk-QJSKG6JE.js → chunk-MHTSIOQS.js} +4 -4
- package/dist/{chunk-LMTZHAXQ.js → chunk-NK2VVZGH.js} +1 -1
- package/dist/{chunk-RF3LELGM.js → chunk-NNIU5SUY.js} +9 -9
- package/dist/{chunk-4INT6ILW.js → chunk-O4NME2PB.js} +1 -1
- package/dist/{chunk-LULXENH7.js → chunk-P4TBXTHK.js} +12 -12
- package/dist/{chunk-RNBZLAMF.js → chunk-PQZWP6CW.js} +1 -1
- package/dist/{chunk-5T45PYWI.js → chunk-PXETYIW2.js} +6 -6
- package/dist/{chunk-J3AMUGGZ.js → chunk-Q4Q5BKCY.js} +1 -1
- package/dist/{chunk-QKJGSZI2.js → chunk-Q5HXKDZG.js} +1 -1
- package/dist/{chunk-X4RTQG5W.js → chunk-QD5LDTJ3.js} +1 -1
- package/dist/{chunk-XGUUM3S6.js → chunk-QJ4J5F6T.js} +1 -1
- package/dist/{chunk-P23LLUTC.js → chunk-QKUCVPQ2.js} +2 -2
- package/dist/{chunk-XVSJKCCQ.js → chunk-QPFQLFKV.js} +1 -1
- package/dist/{chunk-S55ACYBL.js → chunk-R6MM5UOX.js} +4 -4
- package/dist/{chunk-45HY2CTD.js → chunk-RCOMAL7R.js} +4 -4
- package/dist/{chunk-I7OXXHTR.js → chunk-RUVEMICX.js} +1 -1
- package/dist/{chunk-LEHS6RED.js → chunk-RWAEZQCV.js} +77 -21
- package/dist/{chunk-55TMW3GW.js → chunk-SCYPLUXT.js} +8 -4
- package/dist/{chunk-FWWPSH6V.js → chunk-SU444Q24.js} +21 -53
- package/dist/{chunk-MASXQMJY.js → chunk-TKC3RDRT.js} +4 -4
- package/dist/{chunk-5AC76XY6.js → chunk-U5UXL42H.js} +2 -2
- package/dist/{chunk-UESUZHNN.js → chunk-VJ32NGUB.js} +1 -1
- package/dist/{chunk-N6R2WOJ7.js → chunk-WBSUHLO7.js} +1 -1
- package/dist/{chunk-7ZL46D3W.js → chunk-WE66XPIF.js} +1 -1
- package/dist/{chunk-2L4W75VS.js → chunk-WKTRJNOK.js} +1 -1
- package/dist/{chunk-B5OMHYJ5.js → chunk-WV43FOTY.js} +5 -5
- package/dist/{chunk-DZO3C6BC.js → chunk-XBMSMHRJ.js} +1 -1
- package/dist/{chunk-FNGPOGDR.js → chunk-XGWYGDQN.js} +4 -4
- package/dist/{chunk-LYZDVZWA.js → chunk-XH5GIQOS.js} +1 -1
- package/dist/{chunk-OKWGPKVK.js → chunk-XKRR5ALR.js} +1 -1
- package/dist/{chunk-TLMVUH67.js → chunk-XNGAFAQ7.js} +5 -5
- package/dist/{chunk-XZRINNEK.js → chunk-Y7KAW3E7.js} +1 -1
- package/dist/{chunk-7GSUDIU3.js → chunk-YTTITSCF.js} +9 -9
- package/dist/{chunk-CKQPO2SN.js → chunk-YW2P62WD.js} +2 -2
- package/dist/{chunk-6FLSBL4Q.js → chunk-YZBEJ3CY.js} +1914 -1625
- package/dist/{collection-add-products-JEV3HTQA.js → collection-add-products-QBUVYWEK.js} +20 -20
- package/dist/{collection-create-UNGPKT7H.js → collection-create-LTCUNTEN.js} +2 -2
- package/dist/{collection-detail-ZGKHTJ5H.js → collection-detail-CNMO72V2.js} +17 -17
- package/dist/{collection-edit-LQEQ6YGD.js → collection-edit-XB7XNWKT.js} +2 -2
- package/dist/{collection-icon-edit-HNYGQJXC.js → collection-icon-edit-SJUTX7SL.js} +2 -2
- package/dist/{collection-list-TRNIZE2V.js → collection-list-2LWAVDXE.js} +19 -19
- package/dist/{collection-media-G42DRQ6K.js → collection-media-NXMSBVNW.js} +2 -2
- package/dist/{collection-metadata-6SD67JUV.js → collection-metadata-4UP7MB2G.js} +8 -8
- package/dist/{commission-rule-commission-edit-AMJAHLPW.js → commission-rule-commission-edit-CPBCAN6K.js} +1 -1
- package/dist/{commission-rule-create-A2N3JNUI.js → commission-rule-create-6YJX5BRC.js} +10 -3
- package/dist/{commission-rule-detail-4RULHWYE.js → commission-rule-detail-QF2TJ6WF.js} +4 -4
- package/dist/{commissions-list-QDBOLLAF.js → commissions-list-ENBXDOND.js} +7 -7
- package/dist/{constants-Bahlh59D.d.ts → constants-DINN0J9x.d.ts} +12 -5
- package/dist/{customer-detail-HSVYFZN7.js → customer-detail-ASONGOEE.js} +11 -11
- package/dist/{customer-group-detail-YHWFAT2F.js → customer-group-detail-Z5DFQHBD.js} +9 -9
- package/dist/{customer-group-list-GAG6CY33.js → customer-group-list-NEN5EBVH.js} +9 -9
- package/dist/{customer-group-metadata-ELFKJMYK.js → customer-group-metadata-MWI6PEIS.js} +8 -8
- package/dist/{customer-metadata-4H6ADARR.js → customer-metadata-AAANMDFW.js} +8 -8
- package/dist/{customers-add-customer-group-DBKMGNEY.js → customers-add-customer-group-WU4TPDZL.js} +16 -16
- package/dist/{edit-inventory-item-NL5WNNI3.js → edit-inventory-item-DNSEIVDG.js} +8 -8
- package/dist/{edit-inventory-item-attributes-2JEH72WW.js → edit-inventory-item-attributes-NNSYKNZS.js} +8 -8
- package/dist/{edit-reservation-TBZL2REV.js → edit-reservation-UBOAYKRO.js} +2 -2
- package/dist/{edit-rules-XYTK7DQ2.js → edit-rules-DFLANIHQ.js} +8 -8
- package/dist/{global-commission-edit-444IQHQS.js → global-commission-edit-QDPLLFM5.js} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +220 -220
- package/dist/{inventory-create-7RQSCNCQ.js → inventory-create-TADTOF5K.js} +9 -9
- package/dist/{inventory-detail-BT3EEWZT.js → inventory-detail-SYC6STHZ.js} +13 -13
- package/dist/{inventory-list-JCSZES64.js → inventory-list-QK4YHPQ6.js} +3 -3
- package/dist/{inventory-metadata-ZGLTDSQB.js → inventory-metadata-FRVMXW4Q.js} +8 -8
- package/dist/{inventory-stock-US7LGBC4.js → inventory-stock-RD6RJLAY.js} +8 -8
- package/dist/{loader-XPJWDZU3.js → loader-PQ4CT5ZD.js} +1 -1
- package/dist/{location-detail-MPSZ6VYO.js → location-detail-WN5HVKYF.js} +10 -10
- package/dist/{location-fulfillment-providers-6SHQJMAO.js → location-fulfillment-providers-ABZ65GIC.js} +19 -19
- package/dist/{location-list-QXIHD6NJ.js → location-list-CZA5V424.js} +10 -10
- package/dist/{location-sales-channels-46SPET7R.js → location-sales-channels-J7ZV7RHB.js} +7 -8
- package/dist/{location-service-zone-create-R6OUVLOC.js → location-service-zone-create-7AQNNBIB.js} +6 -6
- package/dist/{location-service-zone-manage-areas-V5QULP5K.js → location-service-zone-manage-areas-FW7DW6C4.js} +6 -6
- package/dist/{location-service-zone-shipping-option-create-AUNZVIGU.js → location-service-zone-shipping-option-create-IPQF3VMS.js} +8 -8
- package/dist/{login-NFPUZDAL.js → login-J6UNTZII.js} +8 -8
- package/dist/{manage-locations-WW35SVOX.js → manage-locations-3IXLBRY5.js} +1 -1
- package/dist/{marketplace-detail-BIYPD5HW.js → marketplace-detail-HYZKPGFP.js} +10 -10
- package/dist/{marketplace-metadata-FYJ7TJLZ.js → marketplace-metadata-XWMSFSLY.js} +8 -8
- package/dist/{offer-detail-page-CHPMMAI3.js → offer-detail-page-563ISJ2A.js} +13 -13
- package/dist/{offers-GLTALPMB.js → offers-VAGLCRW6.js} +12 -12
- package/dist/{order-create-edit-AIE4ULOL.js → order-create-edit-A52YVMEP.js} +11 -11
- package/dist/{order-create-exchange-NUTFZBDA.js → order-create-exchange-MVNQIEXK.js} +16 -16
- package/dist/{order-create-refund-A4AXOFZC.js → order-create-refund-XXHC5LFS.js} +8 -8
- package/dist/{order-detail-5AT6CB7Y.js → order-detail-O327KLZC.js} +13 -13
- package/dist/{order-edit-billing-address-Y55XBPZI.js → order-edit-billing-address-ER7MGZEB.js} +9 -9
- package/dist/{order-edit-email-44O3ARQ4.js → order-edit-email-XYHRJQ2T.js} +8 -8
- package/dist/{order-edit-shipping-address-UI2AHBXW.js → order-edit-shipping-address-YPEC2Q6U.js} +8 -8
- package/dist/{order-list-YHFF6DGL.js → order-list-43LBG6AQ.js} +9 -9
- package/dist/{order-metadata-3U5KT3MW.js → order-metadata-EAGVYWZL.js} +8 -8
- package/dist/{order-request-transfer-OM3BPIWZ.js → order-request-transfer-O4Q73SK5.js} +8 -8
- package/dist/pages/index.d.ts +290 -280
- package/dist/pages/index.js +83 -84
- package/dist/{price-list-configuration-CNNPJPFF.js → price-list-configuration-XAQ2OEG4.js} +8 -8
- package/dist/{price-list-create-WA62TKA2.js → price-list-create-H7WBDAC5.js} +20 -20
- package/dist/{price-list-detail-GUKZPZ5N.js → price-list-detail-BYXRB2ND.js} +18 -18
- package/dist/{price-list-edit-MEM47NGY.js → price-list-edit-BYSFESIX.js} +2 -2
- package/dist/{price-list-list-GQ5KMQOH.js → price-list-list-NNCTFTSJ.js} +6 -6
- package/dist/{price-list-prices-add-3TR5HL2I.js → price-list-prices-add-RN5RKGF6.js} +19 -19
- package/dist/{price-list-prices-edit-R52K4MBL.js → price-list-prices-edit-P3HBNQVA.js} +8 -8
- package/dist/{product-add-existing-attributes-AC4643LI.js → product-add-existing-attributes-3DKKBGKG.js} +27 -24
- package/dist/{product-attributes-2LAKXXX6.js → product-attributes-CGLY56QN.js} +2 -2
- package/dist/{product-bulk-edit-G7QTYQHG.js → product-bulk-edit-L5VJUWHK.js} +1 -1
- package/dist/{product-create-JAZJIOHI.js → product-create-BJPAN5FR.js} +15 -15
- package/dist/{product-create-attribute-ELMLVRUB.js → product-create-attribute-LBQENHSF.js} +18 -8
- package/dist/{product-create-variant-FQSREC66.js → product-create-variant-4PS7DJUI.js} +5 -5
- package/dist/{product-detail-77DV4TAW.js → product-detail-JKPHVZT5.js} +17 -15
- package/dist/{product-edit-3Q5E5E5L.js → product-edit-P6XH3L6L.js} +2 -2
- package/dist/product-edit-attribute-VGOXQKZ3.js +368 -0
- package/dist/{product-list-33W3IZGZ.js → product-list-XSNCYJWP.js} +18 -18
- package/dist/{product-media-ZG5KTNVK.js → product-media-AH6H4HJX.js} +8 -5
- package/dist/{product-metadata-H53ZIWBS.js → product-metadata-NGELJKS3.js} +9 -9
- package/dist/{product-organization-ILQCXL7B.js → product-organization-CKUJWI3D.js} +84 -8
- package/dist/{product-sales-channels-7QCAABL4.js → product-sales-channels-5BL5U76N.js} +8 -9
- package/dist/{product-shipping-profile-4K7LTJ5K.js → product-shipping-profile-GOXQTNIA.js} +2 -2
- package/dist/{product-tag-create-4OT4PMCG.js → product-tag-create-26GJFMP3.js} +8 -8
- package/dist/{product-tag-detail-UG55ECBZ.js → product-tag-detail-GI7UI22V.js} +21 -21
- package/dist/{product-tag-edit-RXF6ZZ6E.js → product-tag-edit-LJ5LOAB4.js} +8 -8
- package/dist/{product-tag-list-ZCXPJR6Z.js → product-tag-list-H3BEJC3T.js} +21 -21
- package/dist/{product-tag-metadata-HN5QRCYY.js → product-tag-metadata-VUQYHROC.js} +8 -8
- package/dist/{product-type-detail-5U53ERTD.js → product-type-detail-YLTHK3WR.js} +16 -16
- package/dist/{product-type-metadata-QUCMB3ZJ.js → product-type-metadata-GX45OZJN.js} +8 -8
- package/dist/{product-variant-detail-6XBLXEXQ.js → product-variant-detail-NTZAL233.js} +9 -9
- package/dist/{product-variant-edit-3KAFS4OC.js → product-variant-edit-QJDI34H5.js} +10 -10
- package/dist/{product-variant-metadata-N5H2VPGQ.js → product-variant-metadata-7YFMPPB6.js} +8 -8
- package/dist/{promotion-create-Y2XVWGAT.js → promotion-create-4CYXDQ4X.js} +8 -8
- package/dist/{promotion-detail-CPZLLTKU.js → promotion-detail-NFNBZ6YZ.js} +12 -12
- package/dist/{promotion-list-TVXL23BH.js → promotion-list-QWALFJWV.js} +5 -5
- package/dist/{refund-reason-create-CIXYHBRC.js → refund-reason-create-UKEEJ47T.js} +8 -8
- package/dist/{refund-reason-edit-AXMEDPRT.js → refund-reason-edit-5TIFGV34.js} +8 -8
- package/dist/{refund-reason-list-LDLZ4JL6.js → refund-reason-list-T55XZNAP.js} +15 -15
- package/dist/{region-detail-2HFBXNZX.js → region-detail-4MELDU2I.js} +4 -4
- package/dist/{region-metadata-QGH7IBQU.js → region-metadata-ZCPAAMLY.js} +8 -8
- package/dist/{reservation-create-F6YDCLCG.js → reservation-create-WWGZ5A7Z.js} +2 -2
- package/dist/{reservation-detail-7TL2OFEM.js → reservation-detail-K7LQX5TT.js} +9 -9
- package/dist/{reservation-list-RM6QUKG7.js → reservation-list-AQFSNZNN.js} +4 -4
- package/dist/{reservation-metadata-UXACXYO6.js → reservation-metadata-4W5SP7OA.js} +8 -8
- package/dist/{reset-password-WLZSNWHV.js → reset-password-37QWVIGC.js} +1 -1
- package/dist/{return-reason-list-IXHFGQUJ.js → return-reason-list-IZNMWPEM.js} +11 -11
- package/dist/{sales-channel-add-products-76RTGNYX.js → sales-channel-add-products-RDYMBNAE.js} +21 -21
- package/dist/{sales-channel-create-TAKKGGK3.js → sales-channel-create-APJ6UXEW.js} +2 -2
- package/dist/{sales-channel-detail-QBCCXUMD.js → sales-channel-detail-XF3WPMVT.js} +16 -16
- package/dist/{sales-channel-edit-HEESIKZH.js → sales-channel-edit-CBZZQ2VG.js} +2 -2
- package/dist/{sales-channel-list-I72W2XTH.js → sales-channel-list-46AJDQZ6.js} +12 -13
- package/dist/{sales-channel-metadata-RD6QDHRW.js → sales-channel-metadata-AWVCB7DX.js} +8 -8
- package/dist/{shipping-option-type-create-LXYYXNSQ.js → shipping-option-type-create-NSGPERMQ.js} +8 -8
- package/dist/{shipping-option-type-detail-2IQSQ5BQ.js → shipping-option-type-detail-IZ2XRP3S.js} +8 -8
- package/dist/{shipping-option-type-edit-4XKXWCN3.js → shipping-option-type-edit-KFVTVVGH.js} +8 -8
- package/dist/{shipping-option-type-list-QLBJ333L.js → shipping-option-type-list-2P65XUH5.js} +9 -9
- package/dist/{shipping-profile-metadata-PVNYV7DY.js → shipping-profile-metadata-FPD35TQ3.js} +8 -8
- package/dist/{store-bulk-edit-JAOT5GY2.js → store-bulk-edit-N4XSW6UA.js} +1 -1
- package/dist/{store-create-F6W5CSH2.js → store-create-VFXM4O7E.js} +8 -8
- package/dist/{store-details-SNDIUE5E.js → store-details-2V46HEJD.js} +20 -20
- package/dist/{store-edit-BRS7YYE5.js → store-edit-G6JFYGXK.js} +3 -3
- package/dist/{store-list-IPMJOHOA.js → store-list-5FPJV3KV.js} +17 -17
- package/dist/{store-member-invite-MNRTPHUB.js → store-member-invite-7ORH52T4.js} +1 -1
- package/dist/{tax-region-create-3RBWOWVG.js → tax-region-create-HUF2FCLU.js} +9 -9
- package/dist/{tax-region-detail-L5AKP2R6.js → tax-region-detail-UZ776HBC.js} +11 -11
- package/dist/{tax-region-edit-XHO3ELVD.js → tax-region-edit-M24WWMU6.js} +8 -8
- package/dist/tax-region-list-6LH6TYQZ.js +1 -1
- package/dist/{tax-region-metadata-NYTCYO6D.js → tax-region-metadata-XJFQE3XR.js} +8 -8
- package/dist/{tax-region-province-detail-INTRLPOC.js → tax-region-province-detail-7JRSANC2.js} +11 -11
- package/dist/{tax-region-tax-override-create-M4NJX2F4.js → tax-region-tax-override-create-G5DAVZDV.js} +21 -21
- package/dist/{tax-region-tax-override-edit-LMMRTZZG.js → tax-region-tax-override-edit-D52MNBCS.js} +21 -21
- package/dist/{user-detail-6CCQQPFR.js → user-detail-JV2BQ43X.js} +1 -1
- package/dist/user-list-IUJTQS5X.js +1 -1
- package/dist/{user-metadata-VCWUSKHV.js → user-metadata-ZBON4ZVS.js} +8 -8
- package/package.json +7 -7
- package/dist/chunk-UKLRBS4W.js +0 -61
- package/dist/product-edit-attribute-WW4LCYD7.js +0 -175
- package/dist/{campaign-list-RSWCOH4J.js → campaign-list-IJCTNMOH.js} +1 -1
- package/dist/{chunk-3C53G3UL.js → chunk-24WHXAR7.js} +4 -4
- package/dist/{chunk-K5UDB76J.js → chunk-7WAQRY46.js} +4 -4
- package/dist/{chunk-ISS4LS3E.js → chunk-EW77LP7P.js} +3 -3
- package/dist/{chunk-3YVZLXH7.js → chunk-IOXHJONC.js} +4 -4
- package/dist/{chunk-PSM56FCC.js → chunk-UZO3CIEN.js} +3 -3
- package/dist/{customer-group-add-customers-MOWMJ7PG.js → customer-group-add-customers-CVFWLLP3.js} +8 -8
- package/dist/{customer-list-4Y27FCH6.js → customer-list-TBV4DHXV.js} +1 -1
- package/dist/{marketplace-add-currencies-J5NZQFVS.js → marketplace-add-currencies-7MNMK5MD.js} +8 -8
- package/dist/{offer-variant-detail-page-DW4L5LZW.js → offer-variant-detail-page-UNWZBHXM.js} +7 -7
- package/dist/{order-create-claim-CQ7ECVA6.js → order-create-claim-J5L46I5K.js} +8 -8
- package/dist/{order-create-return-LDLSBK3K.js → order-create-return-65KF5A2N.js} +8 -8
- package/dist/{payout-list-OJCFABOS.js → payout-list-6HQJM5YW.js} +2 -2
- package/dist/{product-type-list-3QPADFNI.js → product-type-list-FCPUCMHZ.js} +1 -1
- package/dist/{region-add-countries-UPRSJ6ZY.js → region-add-countries-C23C6QUJ.js} +8 -8
- package/dist/{region-create-3YST5TQW.js → region-create-L2JYP7DK.js} +8 -8
- package/dist/{region-list-Z6PIQFHM.js → region-list-SDMLAQCG.js} +1 -1
- package/dist/{shipping-profiles-list-LI6KACDB.js → shipping-profiles-list-VUUGBT24.js} +1 -1
- package/dist/{user-invite-RER7BW6S.js → user-invite-KYSDELAV.js} +8 -8
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
useSalesChannelTableEmptyState,
|
|
4
4
|
useSalesChannelTableFilters,
|
|
5
5
|
useSalesChannelTableQuery
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
SingleColumnPage
|
|
9
|
-
} from "./chunk-H6MYB7GB.js";
|
|
6
|
+
} from "./chunk-RWAEZQCV.js";
|
|
10
7
|
import {
|
|
11
8
|
DataTable
|
|
12
9
|
} from "./chunk-C4XKPQ6T.js";
|
|
10
|
+
import {
|
|
11
|
+
SingleColumnPage
|
|
12
|
+
} from "./chunk-H6MYB7GB.js";
|
|
13
13
|
import {
|
|
14
14
|
useStore
|
|
15
15
|
} from "./chunk-FXWKGNRV.js";
|
|
16
16
|
import {
|
|
17
17
|
useDeleteSalesChannelLazy,
|
|
18
18
|
useSalesChannels
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XKRR5ALR.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/sales-channels/sales-channel-list/sales-channel-list.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
countries
|
|
22
22
|
} from "./chunk-JRTZWK77.js";
|
|
23
|
-
import {
|
|
24
|
-
NoRecords
|
|
25
|
-
} from "./chunk-PAYQJPGK.js";
|
|
26
23
|
import {
|
|
27
24
|
TwoColumnPage
|
|
28
25
|
} from "./chunk-E74OUNA3.js";
|
|
26
|
+
import {
|
|
27
|
+
NoRecords
|
|
28
|
+
} from "./chunk-PAYQJPGK.js";
|
|
29
29
|
import {
|
|
30
30
|
useDeleteFulfillmentServiceZone,
|
|
31
31
|
useDeleteFulfillmentSet
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./chunk-BDGZ4EQO.js";
|
|
45
45
|
import {
|
|
46
46
|
useSalesChannels
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-XKRR5ALR.js";
|
|
48
48
|
import {
|
|
49
49
|
TwoColumnPageSkeleton
|
|
50
50
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
useCancelOrderEdit,
|
|
35
35
|
useConfirmOrderEdit
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ERQBTOAZ.js";
|
|
37
37
|
import {
|
|
38
38
|
getPaymentsFromOrder,
|
|
39
39
|
getReservationsLimitCount
|
|
@@ -69,16 +69,16 @@ import {
|
|
|
69
69
|
TextCell,
|
|
70
70
|
TextHeader
|
|
71
71
|
} from "./chunk-JHIMVLB2.js";
|
|
72
|
-
import {
|
|
73
|
-
_DataTable,
|
|
74
|
-
useDataTable
|
|
75
|
-
} from "./chunk-JGCGVEFZ.js";
|
|
76
72
|
import {
|
|
77
73
|
TwoColumnPage
|
|
78
74
|
} from "./chunk-E74OUNA3.js";
|
|
79
75
|
import {
|
|
80
76
|
Thumbnail
|
|
81
77
|
} from "./chunk-WIYFXWRI.js";
|
|
78
|
+
import {
|
|
79
|
+
_DataTable,
|
|
80
|
+
useDataTable
|
|
81
|
+
} from "./chunk-JGCGVEFZ.js";
|
|
82
82
|
import {
|
|
83
83
|
useDate
|
|
84
84
|
} from "./chunk-UZWFZMOX.js";
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
} from "./chunk-EPHVGD5Z.js";
|
|
92
92
|
import {
|
|
93
93
|
useReservationItems
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-QJ4J5F6T.js";
|
|
95
95
|
import {
|
|
96
96
|
useCancelOrder,
|
|
97
97
|
useCancelOrderTransfer,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PriceListCustomerGroupRuleForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IOXHJONC.js";
|
|
4
4
|
import {
|
|
5
5
|
PriceListCreateProductsSchema,
|
|
6
6
|
PriceListRulesSchema,
|
|
@@ -13,17 +13,13 @@ import {
|
|
|
13
13
|
} from "./chunk-U5MJIHLY.js";
|
|
14
14
|
import {
|
|
15
15
|
useProductTableColumns
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SU444Q24.js";
|
|
17
17
|
import {
|
|
18
18
|
useProductTableFilters
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GK6V5XL3.js";
|
|
20
20
|
import {
|
|
21
21
|
useProductTableQuery
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
_DataTable,
|
|
25
|
-
useDataTable
|
|
26
|
-
} from "./chunk-JGCGVEFZ.js";
|
|
22
|
+
} from "./chunk-XH5GIQOS.js";
|
|
27
23
|
import {
|
|
28
24
|
TabbedForm,
|
|
29
25
|
defineTabMeta,
|
|
@@ -41,15 +37,19 @@ import {
|
|
|
41
37
|
import {
|
|
42
38
|
Form
|
|
43
39
|
} from "./chunk-3QSRE5LS.js";
|
|
40
|
+
import {
|
|
41
|
+
_DataTable,
|
|
42
|
+
useDataTable
|
|
43
|
+
} from "./chunk-JGCGVEFZ.js";
|
|
44
44
|
import {
|
|
45
45
|
useCreatePriceList
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GV2Z3IHA.js";
|
|
47
47
|
import {
|
|
48
48
|
useDocumentDirection
|
|
49
49
|
} from "./chunk-Y7QKP6QU.js";
|
|
50
50
|
import {
|
|
51
51
|
useProducts
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-AM5XDEIN.js";
|
|
53
53
|
|
|
54
54
|
// src/pages/price-lists/price-list-create/components/price-list-create-form/schema.ts
|
|
55
55
|
import { z } from "zod";
|
|
@@ -17,10 +17,26 @@ var PRODUCT_ATTRIBUTES_QUERY_KEY = "product_attributes";
|
|
|
17
17
|
var productAttributesQueryKeys = queryKeysFactory(
|
|
18
18
|
PRODUCT_ATTRIBUTES_QUERY_KEY
|
|
19
19
|
);
|
|
20
|
+
var sortAttributeValuesByRank = (attributes) => {
|
|
21
|
+
attributes?.forEach((attribute) => {
|
|
22
|
+
if (Array.isArray(attribute.values)) {
|
|
23
|
+
attribute.values.sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
20
27
|
var useProductAttribute = (id, query, options) => {
|
|
21
28
|
const { data, ...rest } = useQuery({
|
|
22
29
|
queryKey: productAttributesQueryKeys.detail(id, query),
|
|
23
|
-
queryFn: async () =>
|
|
30
|
+
queryFn: async () => {
|
|
31
|
+
const res = await sdk.admin.productAttributes.$id.query({
|
|
32
|
+
$id: id,
|
|
33
|
+
...query
|
|
34
|
+
});
|
|
35
|
+
sortAttributeValuesByRank(
|
|
36
|
+
res?.product_attribute ? [res.product_attribute] : void 0
|
|
37
|
+
);
|
|
38
|
+
return res;
|
|
39
|
+
},
|
|
24
40
|
...options
|
|
25
41
|
});
|
|
26
42
|
return { ...data, ...rest };
|
|
@@ -28,7 +44,11 @@ var useProductAttribute = (id, query, options) => {
|
|
|
28
44
|
var useProductAttributes = (query, options) => {
|
|
29
45
|
const { data, ...rest } = useQuery({
|
|
30
46
|
queryKey: productAttributesQueryKeys.list(query),
|
|
31
|
-
queryFn: async () =>
|
|
47
|
+
queryFn: async () => {
|
|
48
|
+
const res = await sdk.admin.productAttributes.query({ ...query });
|
|
49
|
+
sortAttributeValuesByRank(res?.product_attributes);
|
|
50
|
+
return res;
|
|
51
|
+
},
|
|
32
52
|
...options
|
|
33
53
|
});
|
|
34
54
|
return { ...data, ...rest };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reservationItemsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QJ4J5F6T.js";
|
|
4
4
|
import {
|
|
5
5
|
ordersQueryKeys
|
|
6
6
|
} from "./chunk-RMAQKNBA.js";
|
|
7
7
|
import {
|
|
8
8
|
inventoryItemsQueryKeys
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AM5XDEIN.js";
|
|
10
10
|
import {
|
|
11
11
|
queryClient
|
|
12
12
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-HC25LNX7.js";
|
|
16
16
|
import {
|
|
17
17
|
useShippingOptionTableQuery
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WKTRJNOK.js";
|
|
19
19
|
import {
|
|
20
20
|
useProductTypeTableQuery
|
|
21
21
|
} from "./chunk-VOHEQ7B5.js";
|
|
@@ -27,21 +27,21 @@ import {
|
|
|
27
27
|
} from "./chunk-JHIMVLB2.js";
|
|
28
28
|
import {
|
|
29
29
|
useProductTableColumns
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SU444Q24.js";
|
|
31
31
|
import {
|
|
32
32
|
useProductTableFilters
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-GK6V5XL3.js";
|
|
34
34
|
import {
|
|
35
35
|
useProductTableQuery
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import {
|
|
38
|
-
_DataTable,
|
|
39
|
-
useDataTable
|
|
40
|
-
} from "./chunk-JGCGVEFZ.js";
|
|
36
|
+
} from "./chunk-XH5GIQOS.js";
|
|
41
37
|
import {
|
|
42
38
|
StackedDrawer,
|
|
43
39
|
StackedFocusModal
|
|
44
40
|
} from "./chunk-FWJLS7XD.js";
|
|
41
|
+
import {
|
|
42
|
+
_DataTable,
|
|
43
|
+
useDataTable
|
|
44
|
+
} from "./chunk-JGCGVEFZ.js";
|
|
45
45
|
import {
|
|
46
46
|
useProductTypes
|
|
47
47
|
} from "./chunk-46M463BR.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import {
|
|
55
55
|
useProduct,
|
|
56
56
|
useProducts
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-AM5XDEIN.js";
|
|
58
58
|
|
|
59
59
|
// src/pages/tax-regions/common/components/target-form/target-form.tsx
|
|
60
60
|
import { Button, Checkbox } from "@medusajs/ui";
|
|
@@ -9260,7 +9260,8 @@ var en_default = {
|
|
|
9260
9260
|
variants: "Please select at least one variant.",
|
|
9261
9261
|
options: "Please create at least one option.",
|
|
9262
9262
|
uniqueSku: "SKU must be unique.",
|
|
9263
|
-
requiredAttribute: "This attribute is required."
|
|
9263
|
+
requiredAttribute: "This attribute is required.",
|
|
9264
|
+
requiredStore: "Please select at least one store."
|
|
9264
9265
|
},
|
|
9265
9266
|
inventory: {
|
|
9266
9267
|
heading: "Inventory kits",
|
|
@@ -9284,6 +9285,8 @@ var en_default = {
|
|
|
9284
9285
|
useForVariantsDescription: "If checked, you will be able to create variants using this attribute. If not, the attribute will be used for informational purposes only.",
|
|
9285
9286
|
tip: "Tip",
|
|
9286
9287
|
variantAxisTip: "This attribute will create variants. You can define them in the next step.",
|
|
9288
|
+
warning: "Warning",
|
|
9289
|
+
editWarning: "Changes to this attribute may affect existing product variants or details. Review your variants and product details after saving.",
|
|
9287
9290
|
errors: {
|
|
9288
9291
|
titleRequired: "Please enter a title",
|
|
9289
9292
|
valuesRequired: "Please enter at least one value"
|
|
@@ -9523,6 +9526,10 @@ var en_default = {
|
|
|
9523
9526
|
stores: {
|
|
9524
9527
|
label: "Stores"
|
|
9525
9528
|
},
|
|
9529
|
+
globally_available: {
|
|
9530
|
+
label: "Globally available",
|
|
9531
|
+
hint: "When unchecked, only the selected stores will be able to offer this product"
|
|
9532
|
+
},
|
|
9526
9533
|
categories: {
|
|
9527
9534
|
label: "Categories"
|
|
9528
9535
|
},
|
|
@@ -11980,7 +11987,7 @@ var en_default = {
|
|
|
11980
11987
|
required: "Required",
|
|
11981
11988
|
global: "Global",
|
|
11982
11989
|
category: "Category",
|
|
11983
|
-
categories: "
|
|
11990
|
+
categories: "Categories",
|
|
11984
11991
|
productAttribute: "Product Attribute",
|
|
11985
11992
|
values: "Values",
|
|
11986
11993
|
possibleValues: "Possible values",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_dist
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YZBEJ3CY.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTags
|
|
6
6
|
} from "./chunk-PJR6W35H.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk-46M463BR.js";
|
|
10
10
|
import {
|
|
11
11
|
useCollections
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Q5HXKDZG.js";
|
|
13
13
|
import {
|
|
14
14
|
useProductCategories
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5I6YZOBU.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
18
|
} from "./chunk-NBMM2TZK.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useProductTableColumns
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SU444Q24.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableFilters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GK6V5XL3.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableQuery
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XH5GIQOS.js";
|
|
10
|
+
import {
|
|
11
|
+
PRODUCT_IDS_KEY
|
|
12
|
+
} from "./chunk-LO2ZWQGL.js";
|
|
10
13
|
import {
|
|
11
14
|
_DataTable,
|
|
12
15
|
useDataTable
|
|
13
16
|
} from "./chunk-JGCGVEFZ.js";
|
|
14
|
-
import {
|
|
15
|
-
PRODUCT_IDS_KEY
|
|
16
|
-
} from "./chunk-LO2ZWQGL.js";
|
|
17
17
|
import {
|
|
18
18
|
SingleColumnPage
|
|
19
19
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
useBatchProducts,
|
|
25
25
|
useDeleteProduct,
|
|
26
26
|
useProducts
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AM5XDEIN.js";
|
|
28
28
|
|
|
29
29
|
// src/pages/products/product-list/product-list.tsx
|
|
30
30
|
import { Children as Children2 } from "react";
|
|
@@ -3,16 +3,34 @@ import {
|
|
|
3
3
|
} from "./chunk-AJLGY3LQ.js";
|
|
4
4
|
import {
|
|
5
5
|
i18n
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GFMTZ5O3.js";
|
|
7
|
+
import {
|
|
8
|
+
require_dist
|
|
9
|
+
} from "./chunk-YZBEJ3CY.js";
|
|
10
|
+
import {
|
|
11
|
+
__toESM
|
|
12
|
+
} from "./chunk-NBMM2TZK.js";
|
|
7
13
|
|
|
8
14
|
// src/pages/products/product-create/constants.ts
|
|
9
15
|
import { z } from "zod";
|
|
10
16
|
|
|
11
17
|
// src/pages/products/product-create/utils.ts
|
|
18
|
+
var import_types = __toESM(require_dist(), 1);
|
|
12
19
|
var normalizeProductFormValues = (values) => {
|
|
13
20
|
const thumbnail = values.media?.find((media) => media.isThumbnail)?.url;
|
|
14
21
|
const images = values.media?.filter((media) => !media.isThumbnail).map((media) => ({ url: media.url }));
|
|
15
|
-
const
|
|
22
|
+
const hasAxis = (values.attributes ?? []).some(
|
|
23
|
+
(a) => a.use_for_variants && toValueArray(a.values).length > 0
|
|
24
|
+
);
|
|
25
|
+
const attributes = normalizeFormAttributes(values.attributes ?? []);
|
|
26
|
+
if (!hasAxis) {
|
|
27
|
+
attributes.push({
|
|
28
|
+
title: "Default Option",
|
|
29
|
+
type: import_types.AttributeType.MULTI_SELECT,
|
|
30
|
+
values: ["Default"],
|
|
31
|
+
is_variant_axis: true
|
|
32
|
+
});
|
|
33
|
+
}
|
|
16
34
|
return {
|
|
17
35
|
is_giftcard: false,
|
|
18
36
|
status: values.status,
|
|
@@ -21,7 +39,7 @@ var normalizeProductFormValues = (values) => {
|
|
|
21
39
|
collection_id: values.collection_id || void 0,
|
|
22
40
|
categories: values.category_id ? [{ id: values.category_id }] : void 0,
|
|
23
41
|
type_id: values.type_id || void 0,
|
|
24
|
-
seller_ids: values.seller_ids?.length ? values.seller_ids : void 0,
|
|
42
|
+
seller_ids: !values.globally_available && values.seller_ids?.length ? values.seller_ids : void 0,
|
|
25
43
|
handle: values.handle?.trim(),
|
|
26
44
|
origin_country: values.origin_country || void 0,
|
|
27
45
|
material: values.material || void 0,
|
|
@@ -36,93 +54,73 @@ var normalizeProductFormValues = (values) => {
|
|
|
36
54
|
length: values.length ? parseFloat(values.length) : void 0,
|
|
37
55
|
height: values.height ? parseFloat(values.height) : void 0,
|
|
38
56
|
weight: values.weight ? parseFloat(values.weight) : void 0,
|
|
39
|
-
|
|
40
|
-
product_attributes: productAttributes.length ? productAttributes : void 0,
|
|
41
|
-
attribute_values: Object.keys(attributeValues).length ? attributeValues : void 0,
|
|
57
|
+
attributes: attributes.length ? attributes : void 0,
|
|
42
58
|
variants: normalizeVariants(
|
|
43
59
|
values.variants.filter((variant) => variant.should_create),
|
|
60
|
+
hasAxis,
|
|
44
61
|
values.regionsCurrencyMap
|
|
45
62
|
)
|
|
46
63
|
};
|
|
47
64
|
};
|
|
48
|
-
var normalizeVariants = (variants, _regionsCurrencyMap) => {
|
|
65
|
+
var normalizeVariants = (variants, hasAxis, _regionsCurrencyMap) => {
|
|
49
66
|
return variants.map((variant) => {
|
|
50
67
|
const opts = variant.options;
|
|
51
68
|
const hasOpts = opts && Object.keys(opts).length > 0;
|
|
52
69
|
return {
|
|
53
70
|
title: variant.title || (hasOpts ? Object.values(opts).join(" / ") : "Default variant"),
|
|
54
|
-
options: hasOpts ? opts : void 0,
|
|
71
|
+
options: hasOpts ? opts : hasAxis ? void 0 : { "Default Option": "Default" },
|
|
55
72
|
sku: variant.sku || void 0,
|
|
56
73
|
variant_rank: variant.variant_rank
|
|
57
74
|
};
|
|
58
75
|
});
|
|
59
76
|
};
|
|
77
|
+
var toValueArray = (values) => Array.isArray(values) ? values.filter(Boolean) : values ? [values] : [];
|
|
60
78
|
var normalizeFormAttributes = (attributes) => {
|
|
61
|
-
const
|
|
62
|
-
const productAttributes = [];
|
|
63
|
-
const attributeValues = {};
|
|
79
|
+
const result = [];
|
|
64
80
|
for (const attr of attributes) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
81
|
+
const vals = toValueArray(attr.values);
|
|
82
|
+
const type = attr.type;
|
|
83
|
+
const isSelect = type === "single_select" || type === "multi_select";
|
|
84
|
+
if (attr.attribute_id) {
|
|
85
|
+
if (isSelect || attr.use_for_variants) {
|
|
68
86
|
const nameToId = new Map(
|
|
69
87
|
(attr.available_values ?? []).map((v) => [v.name, v.id])
|
|
70
88
|
);
|
|
71
|
-
const valueIds =
|
|
89
|
+
const valueIds = vals.map((name) => nameToId.get(name)).filter(Boolean);
|
|
72
90
|
if (!valueIds.length) continue;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
91
|
+
result.push({ id: attr.attribute_id, value_ids: valueIds });
|
|
92
|
+
} else {
|
|
93
|
+
if (!vals.length || !vals[0]) continue;
|
|
94
|
+
result.push({
|
|
95
|
+
id: attr.attribute_id,
|
|
96
|
+
value: type === "toggle" ? vals[0] === "true" : vals[0]
|
|
76
97
|
});
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
98
|
+
}
|
|
99
|
+
} else if (attr.is_custom && attr.title) {
|
|
100
|
+
if (!vals.length) continue;
|
|
101
|
+
if (attr.use_for_variants) {
|
|
102
|
+
result.push({
|
|
103
|
+
title: attr.title,
|
|
104
|
+
type: type ?? import_types.AttributeType.MULTI_SELECT,
|
|
83
105
|
values: vals,
|
|
84
106
|
is_variant_axis: true
|
|
85
107
|
});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
} else if (attr.attribute_id) {
|
|
101
|
-
const vals = Array.isArray(attr.values) ? attr.values : attr.values ? [attr.values] : [];
|
|
102
|
-
if (!vals.length || vals.every((v) => !v)) continue;
|
|
103
|
-
const type = attr.type;
|
|
104
|
-
const hasPresetValues = type === "single_select" || type === "multi_select";
|
|
105
|
-
if (hasPresetValues) {
|
|
106
|
-
const nameToId = new Map(
|
|
107
|
-
(attr.available_values ?? []).map((v) => [v.name, v.id])
|
|
108
|
-
);
|
|
109
|
-
const valueIds = vals.map((name) => nameToId.get(name)).filter(Boolean);
|
|
110
|
-
if (valueIds.length) {
|
|
111
|
-
productAttributes.push({
|
|
112
|
-
attribute_id: attr.attribute_id,
|
|
113
|
-
value_ids: valueIds
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
} else {
|
|
117
|
-
productAttributes.push({
|
|
118
|
-
attribute_id: attr.attribute_id,
|
|
119
|
-
values: vals
|
|
120
|
-
});
|
|
121
|
-
}
|
|
108
|
+
} else if (isSelect) {
|
|
109
|
+
result.push({
|
|
110
|
+
title: attr.title,
|
|
111
|
+
type,
|
|
112
|
+
values: vals
|
|
113
|
+
});
|
|
114
|
+
} else {
|
|
115
|
+
result.push({
|
|
116
|
+
title: attr.title,
|
|
117
|
+
type: type ?? import_types.AttributeType.TEXT,
|
|
118
|
+
value: type === "toggle" ? vals[0] === "true" : vals[0]
|
|
119
|
+
});
|
|
122
120
|
}
|
|
123
121
|
}
|
|
124
122
|
}
|
|
125
|
-
return
|
|
123
|
+
return result;
|
|
126
124
|
};
|
|
127
125
|
var decorateVariantsWithDefaultValues = (variants) => {
|
|
128
126
|
return variants.map((variant) => ({
|
|
@@ -227,6 +225,7 @@ var ProductCreateSchema = z.object({
|
|
|
227
225
|
handle: z.string().optional(),
|
|
228
226
|
description: z.string().optional(),
|
|
229
227
|
discountable: z.boolean(),
|
|
228
|
+
globally_available: z.boolean(),
|
|
230
229
|
type_id: z.string().optional(),
|
|
231
230
|
collection_id: z.string().optional(),
|
|
232
231
|
category_id: z.string().min(1),
|
|
@@ -256,6 +255,13 @@ var ProductCreateSchema = z.object({
|
|
|
256
255
|
variants: z.array(ProductCreateVariantSchema).min(1),
|
|
257
256
|
media: z.array(MediaSchema).optional()
|
|
258
257
|
}).superRefine((data, ctx) => {
|
|
258
|
+
if (!data.globally_available && !data.seller_ids?.length) {
|
|
259
|
+
ctx.addIssue({
|
|
260
|
+
code: z.ZodIssueCode.custom,
|
|
261
|
+
path: ["seller_ids"],
|
|
262
|
+
message: i18n.t("products.create.errors.requiredStore")
|
|
263
|
+
});
|
|
264
|
+
}
|
|
259
265
|
data.attributes?.forEach((attr, index) => {
|
|
260
266
|
if (!attr.is_required) return;
|
|
261
267
|
const isEmpty = attr.values === void 0 || attr.values === "" || Array.isArray(attr.values) && attr.values.length === 0;
|
|
@@ -293,6 +299,7 @@ var EditProductMediaSchema = z.object({
|
|
|
293
299
|
});
|
|
294
300
|
var PRODUCT_CREATE_FORM_DEFAULTS = {
|
|
295
301
|
discountable: true,
|
|
302
|
+
globally_available: true,
|
|
296
303
|
seller_ids: [],
|
|
297
304
|
tags: [],
|
|
298
305
|
variants: decorateVariantsWithDefaultValues([
|