@medusajs/dashboard 3.0.0-snapshot-20251216145629 → 3.0.0-snapshot-20260102134455
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-locales-2OZXZCT5.mjs +81 -0
- package/dist/{adjust-inventory-26YXAXQL.mjs → adjust-inventory-47KGDWME.mjs} +2 -2
- package/dist/{api-key-management-create-EMP32G2D.mjs → api-key-management-create-EFPPZPZ7.mjs} +4 -4
- package/dist/{api-key-management-detail-6RCDH73M.mjs → api-key-management-detail-4IFED7SF.mjs} +15 -15
- package/dist/{api-key-management-edit-IBM3ZXHK.mjs → api-key-management-edit-QGVBNLUL.mjs} +4 -4
- package/dist/{api-key-management-list-KC5GOWAU.mjs → api-key-management-list-ROIJIIPQ.mjs} +4 -4
- package/dist/{api-key-management-sales-channels-LUB5G6RC.mjs → api-key-management-sales-channels-7P5L45AT.mjs} +6 -6
- package/dist/app.css +33 -3
- package/dist/app.js +18467 -16698
- package/dist/app.mjs +13 -13
- package/dist/{campaign-create-FJOECKGT.mjs → campaign-create-EZGZ4SBQ.mjs} +3 -3
- package/dist/{campaign-detail-5Q4BYCPX.mjs → campaign-detail-NFKLFPY4.mjs} +12 -12
- package/dist/{categories-metadata-J7M3XWI7.mjs → categories-metadata-G7BACZ26.mjs} +12 -12
- package/dist/{category-create-KHJZSC7G.mjs → category-create-7MV25HYX.mjs} +6 -6
- package/dist/{category-detail-S5IPXMHX.mjs → category-detail-XJQQ7UU4.mjs} +14 -14
- package/dist/{category-edit-CTA2EPDG.mjs → category-edit-LV7EARAB.mjs} +3 -3
- package/dist/{category-list-QBYJ4T3R.mjs → category-list-NIVLV5S3.mjs} +6 -6
- package/dist/{category-organize-SXP33XET.mjs → category-organize-SCRGWKDG.mjs} +3 -3
- package/dist/{category-products-KPW6BA5J.mjs → category-products-FXFSMCR6.mjs} +13 -13
- package/dist/{chunk-OXPE5TAY.mjs → chunk-24C2YVFU.mjs} +1 -1
- package/dist/{chunk-4JQR6QNW.mjs → chunk-333HK6Y6.mjs} +2 -2
- package/dist/{chunk-DODQ3KJT.mjs → chunk-3RRA56WC.mjs} +8 -3
- package/dist/{chunk-5LGRZSEH.mjs → chunk-3YPZ3R4U.mjs} +1 -1
- package/dist/chunk-5BUFAGKR.mjs +13 -0
- package/dist/{chunk-2DULKOPN.mjs → chunk-5ISRTMYH.mjs} +1 -1
- package/dist/{chunk-PHLCT2HA.mjs → chunk-5ZPKY5XP.mjs} +1 -1
- package/dist/{chunk-U6G4M5LP.mjs → chunk-6EXKKRZY.mjs} +1 -1
- package/dist/{chunk-GRZSG4EP.mjs → chunk-74WPAWMW.mjs} +127 -226
- package/dist/{chunk-UULAOAFM.mjs → chunk-772OR7OQ.mjs} +358 -242
- package/dist/chunk-7AXHHXCX.mjs +4 -0
- package/dist/{chunk-BMS2QLJY.mjs → chunk-BMJ5RYIO.mjs} +1 -1
- package/dist/{chunk-Y2YVTIJI.mjs → chunk-CW5PQUJ6.mjs} +1 -1
- package/dist/{chunk-IAV7IKJ6.mjs → chunk-DN5BRKVN.mjs} +1 -1
- package/dist/{chunk-RS7DWLEP.mjs → chunk-DQUXK4WW.mjs} +1 -1
- package/dist/{chunk-2XTBDCGE.mjs → chunk-DWH2OQFK.mjs} +1 -1
- package/dist/{chunk-CCQD65EY.mjs → chunk-FKNW5MLZ.mjs} +360 -288
- package/dist/{chunk-HTCYX4VD.mjs → chunk-G35UUG2P.mjs} +1 -1
- package/dist/{chunk-QKALAT7P.mjs → chunk-GGONMC2N.mjs} +1 -1
- package/dist/{chunk-FYWHE3W5.mjs → chunk-GJN5SXGZ.mjs} +1 -1
- package/dist/{chunk-CVHJAKLQ.mjs → chunk-HDO2UCKF.mjs} +1 -1
- package/dist/{chunk-3C6WQ7NH.mjs → chunk-IWNNQ6HA.mjs} +37 -3
- package/dist/{chunk-OL24RDYM.mjs → chunk-KHJL6MUQ.mjs} +8 -8
- package/dist/{chunk-6P4Q4AAP.mjs → chunk-KPI4WFJU.mjs} +3 -3
- package/dist/{chunk-AHZLMCZF.mjs → chunk-KSDXSKJ7.mjs} +1 -1
- package/dist/{chunk-BZKI5J2M.mjs → chunk-L7A2JIQY.mjs} +3 -3
- package/dist/{chunk-XY7A7GZJ.mjs → chunk-LEAMWI5H.mjs} +1 -1
- package/dist/{chunk-A4XYK3MY.mjs → chunk-LG5B2BVB.mjs} +2 -2
- package/dist/{chunk-23GTCEOV.mjs → chunk-ML7BA2NY.mjs} +1 -1
- package/dist/{chunk-OFN7DIZA.mjs → chunk-OYHFHBNL.mjs} +94 -7
- package/dist/{chunk-OSHH5GAS.mjs → chunk-Q34TRFIW.mjs} +1 -13
- package/dist/{chunk-UJ2TMPV4.mjs → chunk-QBIQEVTU.mjs} +0 -12
- package/dist/{chunk-YYOPBKME.mjs → chunk-QHRAWZGA.mjs} +3 -3
- package/dist/{chunk-A2WBKOXJ.mjs → chunk-SO2DE6MM.mjs} +2 -2
- package/dist/{chunk-EHU67PIM.mjs → chunk-TOCMU7UV.mjs} +7 -3
- package/dist/{chunk-YIOBBZUB.mjs → chunk-U7KANQ5A.mjs} +2 -2
- package/dist/{chunk-Z6BFNHEO.mjs → chunk-UCYUWNJL.mjs} +109 -62
- package/dist/{chunk-WYATCUOM.mjs → chunk-V2RGYIAG.mjs} +10 -10
- package/dist/{chunk-UWY5ZV66.mjs → chunk-VQ73B7ZZ.mjs} +1 -13
- package/dist/chunk-XD72PXRS.mjs +329 -0
- package/dist/{store-add-locales-VJ4RJ7UI.mjs → chunk-YFXI6CWD.mjs} +2 -67
- package/dist/{chunk-AWRCV3ME.mjs → chunk-YM4XGCHB.mjs} +1 -1
- package/dist/{chunk-ZMG5B4FG.mjs → chunk-ZGV5NOTE.mjs} +1 -1
- package/dist/{collection-add-products-FU2BS3D3.mjs → collection-add-products-YDMBU2JY.mjs} +13 -13
- package/dist/{collection-create-GWKWVT7B.mjs → collection-create-RXHEXU6T.mjs} +3 -3
- package/dist/{collection-detail-VJE7XHLV.mjs → collection-detail-75XPGVOX.mjs} +13 -13
- package/dist/{collection-edit-EZIO2BR5.mjs → collection-edit-CGF47VIN.mjs} +3 -3
- package/dist/{collection-list-IGA6SCNF.mjs → collection-list-75N5NYXQ.mjs} +18 -17
- package/dist/{collection-metadata-QK7MI3D2.mjs → collection-metadata-TGGC6HM2.mjs} +12 -12
- package/dist/{customer-detail-MOV2T3LF.mjs → customer-detail-KDLZ23B3.mjs} +17 -16
- package/dist/{customer-group-detail-6T7OXGQD.mjs → customer-group-detail-ZIAVMOYS.mjs} +12 -12
- package/dist/{customer-group-list-AJEAF5D2.mjs → customer-group-list-BDDC5VVZ.mjs} +15 -15
- package/dist/{customers-add-customer-group-QVTVSQYM.mjs → customers-add-customer-group-B3ASQGP6.mjs} +12 -12
- package/dist/{edit-inventory-item-H7DAZWIT.mjs → edit-inventory-item-OKAXQRJ5.mjs} +2 -2
- package/dist/{edit-inventory-item-attributes-7HTXXPGZ.mjs → edit-inventory-item-attributes-FVWDV6O5.mjs} +2 -2
- package/dist/{edit-reservation-OVTRZHJR.mjs → edit-reservation-3PU6YSNJ.mjs} +3 -3
- package/dist/{edit-rules-SMVRTCUP.mjs → edit-rules-LOJ3P4YB.mjs} +14 -14
- package/dist/en.json +73 -5
- package/dist/{inventory-create-ANYUM4P5.mjs → inventory-create-C2WWS7QR.mjs} +13 -13
- package/dist/{inventory-detail-ZPSEMYI2.mjs → inventory-detail-AKOZ4T3Z.mjs} +12 -12
- package/dist/{inventory-list-RXJPSVZE.mjs → inventory-list-DRFJIU2O.mjs} +2 -2
- package/dist/{inventory-metadata-FNEJ3RAT.mjs → inventory-metadata-N6CJZEWD.mjs} +12 -12
- package/dist/{inventory-stock-FD4ZM4BB.mjs → inventory-stock-IJ2N7LKC.mjs} +14 -14
- package/dist/{location-detail-N3GUZSY7.mjs → location-detail-PL4Y43RS.mjs} +16 -16
- package/dist/{location-fulfillment-providers-7ZUJAGNY.mjs → location-fulfillment-providers-2PLOVSXC.mjs} +17 -16
- package/dist/{location-sales-channels-P3QJTFDT.mjs → location-sales-channels-SZARSLWT.mjs} +5 -5
- package/dist/{location-service-zone-shipping-option-create-ZJ4GIBTJ.mjs → location-service-zone-shipping-option-create-CUNSAP24.mjs} +15 -15
- package/dist/{location-service-zone-shipping-option-edit-4CGPQ3VT.mjs → location-service-zone-shipping-option-edit-OJ462SVM.mjs} +1 -1
- package/dist/{location-service-zone-shipping-option-pricing-CR4BVYG3.mjs → location-service-zone-shipping-option-pricing-5HN2Z5RB.mjs} +2 -2
- package/dist/login-VBUNWZHI.mjs +301 -0
- package/dist/{manage-locations-7HH6R4UP.mjs → manage-locations-JPCSBA5D.mjs} +2 -2
- package/dist/{order-allocate-items-HZGGYJ42.mjs → order-allocate-items-6QHQASQJ.mjs} +4 -4
- package/dist/{order-create-claim-SCDJGM46.mjs → order-create-claim-ECVSH5GC.mjs} +22 -22
- package/dist/{order-create-edit-JIE3HDHP.mjs → order-create-edit-EVIOJIXE.mjs} +14 -13
- package/dist/{order-create-exchange-LQU4YN7F.mjs → order-create-exchange-ZVYYOGI3.mjs} +22 -22
- package/dist/{order-create-fulfillment-OWUVTZXW.mjs → order-create-fulfillment-FDIFEV6X.mjs} +16 -16
- package/dist/{order-create-refund-Q6HQY42R.mjs → order-create-refund-TNPGKR5P.mjs} +17 -17
- package/dist/{order-create-return-52GHGW5Z.mjs → order-create-return-NR6XQLDD.mjs} +9 -9
- package/dist/{order-create-shipment-WAGGEPRW.mjs → order-create-shipment-UP3WGRWB.mjs} +12 -12
- package/dist/{order-detail-PVPGEWGY.mjs → order-detail-F6D5DV74.mjs} +28 -28
- package/dist/{order-edit-billing-address-UM76J4KX.mjs → order-edit-billing-address-D4AJ6Z5Q.mjs} +44 -12
- package/dist/{order-edit-email-CL3KNOCM.mjs → order-edit-email-MXYA5BII.mjs} +12 -12
- package/dist/{order-edit-shipping-address-PIESTGVL.mjs → order-edit-shipping-address-GKW2ZPGR.mjs} +42 -12
- package/dist/{order-export-LE363ZLB.mjs → order-export-KQUI2TK7.mjs} +14 -14
- package/dist/{order-list-GRLQWN4L.mjs → order-list-7A5UKGXR.mjs} +11 -11
- package/dist/{order-metadata-FHBB7MTG.mjs → order-metadata-2IXELA7C.mjs} +12 -12
- package/dist/{order-receive-return-PRVKP6J2.mjs → order-receive-return-XXHOXGDC.mjs} +13 -13
- package/dist/{order-request-transfer-XSAGRUMT.mjs → order-request-transfer-2ENR64VR.mjs} +13 -13
- package/dist/{price-list-configuration-6S3MLNXQ.mjs → price-list-configuration-BZ3ZH5FY.mjs} +3 -3
- package/dist/{price-list-create-MFRUQADC.mjs → price-list-create-GFGNP6OS.mjs} +16 -16
- package/dist/{price-list-detail-Q5VG5VGW.mjs → price-list-detail-SNNOR5N7.mjs} +17 -17
- package/dist/{price-list-edit-53UW35L3.mjs → price-list-edit-YW5BXBF2.mjs} +3 -3
- package/dist/{price-list-list-DG5YEZ44.mjs → price-list-list-OF562HME.mjs} +4 -4
- package/dist/{price-list-prices-add-SDU5YZAT.mjs → price-list-prices-add-F7A2EV7L.mjs} +15 -15
- package/dist/{price-list-prices-edit-5USQR4D4.mjs → price-list-prices-edit-PQ26MOJE.mjs} +5 -5
- package/dist/{product-attributes-K4FGFORS.mjs → product-attributes-HO2B4OHP.mjs} +13 -13
- package/dist/{product-create-7YTRHZQQ.mjs → product-create-UEVW5JO4.mjs} +485 -561
- package/dist/{product-create-variant-ERKHTEJZ.mjs → product-create-variant-PLZ5Q2R6.mjs} +14 -14
- package/dist/{product-detail-32ZXNWOP.mjs → product-detail-Z7K5TGZY.mjs} +45 -66
- package/dist/{product-edit-FBAKONMR.mjs → product-edit-6I6JG4GP.mjs} +13 -13
- package/dist/{product-export-5AD7NELI.mjs → product-export-UMMROQ7T.mjs} +18 -17
- package/dist/{product-image-variants-edit-M6QF2RLE.mjs → product-image-variants-edit-VRG3AJID.mjs} +12 -12
- package/dist/{product-import-V3KQN4TV.mjs → product-import-EPS4KDID.mjs} +12 -12
- package/dist/{product-list-EUWZIFTM.mjs → product-list-37O7VB2L.mjs} +20 -20
- package/dist/{product-media-3VJ7KENL.mjs → product-media-IV5NUSLW.mjs} +3 -3
- package/dist/{product-metadata-GL2MVPDI.mjs → product-metadata-KTVRI7B3.mjs} +12 -12
- package/dist/product-option-create-C5BPN6P6.mjs +268 -0
- package/dist/product-option-detail-VVK3YBCE.mjs +331 -0
- package/dist/product-option-edit-7FQSKI2R.mjs +325 -0
- package/dist/product-option-list-YHGRI7OJ.mjs +268 -0
- package/dist/product-option-metadata-P2DHDGYR.mjs +73 -0
- package/dist/product-options-manage-B4N54NCR.mjs +358 -0
- package/dist/{product-organization-IUSVX22S.mjs → product-organization-L23V4JA7.mjs} +15 -15
- package/dist/{product-prices-4C36AG4R.mjs → product-prices-GUO3KM2U.mjs} +3 -3
- package/dist/{product-sales-channels-PPXUG4KT.mjs → product-sales-channels-BOZD3AC3.mjs} +5 -5
- package/dist/{product-shipping-profile-ETQFZ7DC.mjs → product-shipping-profile-FNFRDY47.mjs} +3 -3
- package/dist/{product-stock-VEGE6SUZ.mjs → product-stock-2DNYG73L.mjs} +14 -14
- package/dist/{product-tag-create-PQMDDKWH.mjs → product-tag-create-CW7GUCZW.mjs} +12 -12
- package/dist/{product-tag-detail-I3MBZX7U.mjs → product-tag-detail-IB5VIZ3K.mjs} +26 -25
- package/dist/{product-tag-edit-K3BBQLJR.mjs → product-tag-edit-ZSXD3DOC.mjs} +12 -12
- package/dist/{product-tag-list-JUWSOMB7.mjs → product-tag-list-MJO5PURP.mjs} +24 -23
- package/dist/{product-tag-metadata-MJH5LH7E.mjs → product-tag-metadata-DAKCXWZF.mjs} +12 -12
- package/dist/{product-type-create-DRFXTL5O.mjs → product-type-create-NRLNMABQ.mjs} +2 -2
- package/dist/{product-type-detail-RKHT5NBL.mjs → product-type-detail-J2IMAZW6.mjs} +14 -14
- package/dist/{product-type-edit-SRHCZDK7.mjs → product-type-edit-BHTPMMVI.mjs} +2 -2
- package/dist/{product-type-list-QQKAHBJ3.mjs → product-type-list-MQ2PW2IE.mjs} +3 -3
- package/dist/{product-type-metadata-CDJDFFGQ.mjs → product-type-metadata-BCZMUG3K.mjs} +12 -12
- package/dist/{product-variant-detail-XAYG5CKE.mjs → product-variant-detail-4L6DHT3K.mjs} +12 -12
- package/dist/{product-variant-edit-DEZEY2H2.mjs → product-variant-edit-PZU4P65H.mjs} +13 -13
- package/dist/{product-variant-manage-inventory-items-Y2VEOHP7.mjs → product-variant-manage-inventory-items-E3GPBPEZ.mjs} +3 -3
- package/dist/{product-variant-media-2WLVNGI4.mjs → product-variant-media-BSNCO642.mjs} +2 -2
- package/dist/{product-variant-metadata-VTZDNWUT.mjs → product-variant-metadata-FHGGZGPV.mjs} +12 -12
- package/dist/{promotion-add-campaign-DO67QK6M.mjs → promotion-add-campaign-NQSIFI33.mjs} +3 -3
- package/dist/{promotion-create-HWFNUQXG.mjs → promotion-create-GBZWJVAI.mjs} +24 -21
- package/dist/{promotion-detail-QC36KXB3.mjs → promotion-detail-W2OGUESO.mjs} +12 -12
- package/dist/{refund-reason-create-YHCDEHGQ.mjs → refund-reason-create-DLVRT5OU.mjs} +12 -12
- package/dist/{refund-reason-edit-CZ5QZ2SZ.mjs → refund-reason-edit-XCSU7RMH.mjs} +12 -12
- package/dist/{refund-reason-list-OJYYEYJE.mjs → refund-reason-list-G6UNVGPG.mjs} +18 -18
- package/dist/{region-create-NA7Y2LN4.mjs → region-create-2CRTF7HJ.mjs} +1 -1
- package/dist/{region-edit-WAU347DP.mjs → region-edit-IB3PJE7V.mjs} +1 -1
- package/dist/{region-metadata-H6XXUQ4S.mjs → region-metadata-WBEUKOI6.mjs} +12 -12
- package/dist/{reservation-create-ZCIYM6JI.mjs → reservation-create-ERFJUBME.mjs} +4 -4
- package/dist/{reservation-detail-LZAQL4XA.mjs → reservation-detail-Y6UZRZXY.mjs} +12 -12
- package/dist/{reservation-list-B47DXTA7.mjs → reservation-list-LEDZB7KL.mjs} +3 -3
- package/dist/{reservation-metadata-5HZSDDOK.mjs → reservation-metadata-7KH4EXMN.mjs} +12 -12
- package/dist/{return-reason-list-SCBGTOEI.mjs → return-reason-list-UUQAL464.mjs} +6 -6
- package/dist/{sales-channel-add-products-F7YV4MO5.mjs → sales-channel-add-products-GSPG7OTK.mjs} +14 -14
- package/dist/{sales-channel-create-MI7HHZYE.mjs → sales-channel-create-MM237EBQ.mjs} +3 -3
- package/dist/{sales-channel-detail-MXIPZCGA.mjs → sales-channel-detail-65ZFV2OI.mjs} +14 -14
- package/dist/{sales-channel-edit-VSHOIR37.mjs → sales-channel-edit-AC2J4N3M.mjs} +3 -3
- package/dist/{sales-channel-list-RLGL7FM3.mjs → sales-channel-list-LXLW7X3U.mjs} +14 -14
- package/dist/{sales-channel-metadata-M364R4RJ.mjs → sales-channel-metadata-QUAL2RH6.mjs} +13 -13
- package/dist/{shipping-option-type-create-C5WUWON7.mjs → shipping-option-type-create-EU75JC2Q.mjs} +12 -12
- package/dist/{shipping-option-type-detail-PENS2K73.mjs → shipping-option-type-detail-5GYEWATD.mjs} +13 -13
- package/dist/{shipping-option-type-edit-CIU5EHRP.mjs → shipping-option-type-edit-YR4JXT5M.mjs} +12 -12
- package/dist/{shipping-option-type-list-DIOX7VG7.mjs → shipping-option-type-list-BLC4Z5QW.mjs} +13 -13
- package/dist/{shipping-profile-metadata-75G2NNMA.mjs → shipping-profile-metadata-64YRWPDA.mjs} +12 -12
- package/dist/store-add-locales-TSMLNFZP.mjs +81 -0
- package/dist/{store-detail-JSNPOB2F.mjs → store-detail-3SS53LZR.mjs} +13 -13
- package/dist/{store-edit-5ZS562ZO.mjs → store-edit-SMEWFETF.mjs} +1 -1
- package/dist/{store-metadata-CYXTVJUE.mjs → store-metadata-IJGVDDA6.mjs} +12 -12
- package/dist/{tax-region-create-DWGL4EUT.mjs → tax-region-create-XLYIS5XX.mjs} +13 -13
- package/dist/{tax-region-detail-2AE2EFI3.mjs → tax-region-detail-66FKEGFB.mjs} +29 -28
- package/dist/{tax-region-edit-EEVEEU2Q.mjs → tax-region-edit-GBR4EDW7.mjs} +13 -13
- package/dist/{tax-region-province-detail-4ERSEQFF.mjs → tax-region-province-detail-OBA7Q7MQ.mjs} +29 -28
- package/dist/{tax-region-tax-override-create-PHCGEF7V.mjs → tax-region-tax-override-create-34WYD2QZ.mjs} +28 -27
- package/dist/{tax-region-tax-override-edit-SMRPSILC.mjs → tax-region-tax-override-edit-6WJVOGWA.mjs} +27 -26
- package/dist/translation-list-J65VNNAX.mjs +527 -0
- package/dist/{translations-edit-KECSHYZY.mjs → translations-edit-6P3KC4MO.mjs} +280 -304
- package/dist/{user-detail-BJUXLZZQ.mjs → user-detail-VMOJFHIJ.mjs} +2 -2
- package/dist/{user-metadata-2WPJOEJA.mjs → user-metadata-UOPVFX2L.mjs} +12 -12
- package/dist/{workflow-execution-detail-H2AKEZJX.mjs → workflow-execution-detail-WAQ7IG4T.mjs} +12 -12
- package/package.json +9 -9
- package/src/components/data-grid/components/data-grid-cell-container.tsx +7 -10
- package/src/components/data-grid/components/data-grid-multiline-cell.tsx +103 -0
- package/src/components/data-grid/components/data-grid-readonly-cell.tsx +1 -4
- package/src/components/data-grid/components/data-grid-root.tsx +68 -51
- package/src/components/data-grid/components/data-grid-text-cell.tsx +6 -76
- package/src/components/data-grid/components/index.ts +1 -0
- package/src/components/data-grid/data-grid.tsx +2 -0
- package/src/components/data-grid/hooks/use-data-grid-cell.tsx +12 -0
- package/src/components/data-grid/hooks/use-data-grid-form-handlers.tsx +1 -0
- package/src/components/data-grid/hooks/use-data-grid-keydown-event.tsx +65 -7
- package/src/components/data-grid/types.ts +1 -0
- package/src/components/inputs/combobox/combobox.tsx +185 -95
- package/src/components/layout/main-layout/main-layout.tsx +7 -4
- package/src/components/table/table-cells/order/country-cell/country-cell.tsx +5 -1
- package/src/dashboard-app/routes/get-route.map.tsx +68 -12
- package/src/hooks/api/cloud.tsx +41 -0
- package/src/hooks/api/index.ts +3 -1
- package/src/hooks/api/product-options.tsx +151 -0
- package/src/hooks/api/products.tsx +26 -66
- package/src/hooks/api/translations.tsx +103 -191
- package/src/hooks/table/columns/use-order-table-columns.tsx +5 -3
- package/src/hooks/table/columns/use-product-option-table-columns.tsx +44 -0
- package/src/hooks/table/filters/index.ts +1 -0
- package/src/hooks/table/filters/use-product-option-table-filters.tsx +33 -0
- package/src/hooks/table/query/use-product-option-table-query.tsx +34 -0
- package/src/i18n/translations/$schema.json +290 -32
- package/src/i18n/translations/en.json +73 -5
- package/src/i18n/translations/es.json +9 -1
- package/src/routes/customers/customer-detail/components/customer-order-section/customer-order-section.tsx +1 -1
- package/src/routes/login/components/cloud-auth-login.tsx +114 -0
- package/src/routes/login/login.tsx +9 -1
- package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-item.tsx +1 -0
- package/src/routes/orders/order-edit-billing-address/components/edit-order-billing-address-form/edit-order-billing-address-form.tsx +34 -0
- package/src/routes/orders/order-edit-shipping-address/components/edit-order-shipping-address-form/edit-order-shipping-address-form.tsx +32 -0
- package/src/routes/product-options/common/hooks/use-delete-product-option-action.tsx +41 -0
- package/src/routes/product-options/product-option-create/components/create-product-option-form/create-product-option-details.tsx +71 -0
- package/src/routes/product-options/product-option-create/components/create-product-option-form/create-product-option-form.tsx +97 -0
- package/src/routes/product-options/product-option-create/components/create-product-option-form/create-product-option-organize.tsx +92 -0
- package/src/routes/product-options/product-option-create/components/create-product-option-form/index.ts +1 -0
- package/src/routes/product-options/product-option-create/components/create-product-option-form/schema.ts +15 -0
- package/src/routes/product-options/product-option-create/index.ts +1 -0
- package/src/routes/product-options/product-option-create/product-option-create.tsx +10 -0
- package/src/routes/product-options/product-option-detail/breadcrumb.tsx +14 -0
- package/src/routes/product-options/product-option-detail/components/product-option-general-section/index.ts +1 -0
- package/src/routes/product-options/product-option-detail/components/product-option-general-section/product-option-general-section.tsx +84 -0
- package/src/routes/product-options/product-option-detail/components/product-option-product-section/index.ts +1 -0
- package/src/routes/product-options/product-option-detail/components/product-option-product-section/product-option-product-section.tsx +82 -0
- package/src/routes/product-options/product-option-detail/index.ts +3 -0
- package/src/routes/product-options/product-option-detail/loader.ts +18 -0
- package/src/routes/product-options/product-option-detail/product-option-detail.tsx +50 -0
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/edit-product-option-details.tsx +94 -0
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/edit-product-option-form.tsx +116 -0
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/edit-product-option-organize.tsx +77 -0
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/index.ts +1 -0
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/schema.ts +13 -0
- package/src/routes/product-options/product-option-edit/index.ts +1 -0
- package/src/routes/product-options/product-option-edit/product-option-edit.tsx +34 -0
- package/src/routes/product-options/product-option-list/components/product-option-list-table/index.ts +1 -0
- package/src/routes/product-options/product-option-list/components/product-option-list-table/product-option-list-table.tsx +140 -0
- package/src/routes/product-options/product-option-list/index.ts +1 -0
- package/src/routes/product-options/product-option-list/product-option-list.tsx +19 -0
- package/src/routes/product-options/product-option-metadata/index.ts +1 -0
- package/src/routes/product-options/product-option-metadata/product-option-metadata.tsx +27 -0
- package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-general-section/product-create-general-section.tsx +16 -4
- package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx +327 -194
- package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +4 -7
- package/src/routes/products/product-create/constants.ts +2 -0
- package/src/routes/products/product-create/utils.ts +6 -1
- package/src/routes/products/product-detail/components/product-option-section/product-option-section.tsx +33 -51
- package/src/routes/products/product-options-manage/components/product-options-manage-form/index.ts +1 -0
- package/src/routes/products/product-options-manage/components/product-options-manage-form/product-options-manage-form.tsx +328 -0
- package/src/routes/products/product-options-manage/index.ts +1 -0
- package/src/routes/products/product-options-manage/product-options-manage.tsx +35 -0
- package/src/routes/promotions/promotion-create/components/create-promotion-form/create-promotion-form.tsx +6 -0
- package/src/routes/translations/add-locales/add-locales.tsx +29 -0
- package/src/routes/translations/add-locales/index.tsx +1 -0
- package/src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx +42 -17
- package/src/routes/translations/translation-list/components/translation-list-section/translation-list-section.tsx +5 -1
- package/src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx +182 -121
- package/src/routes/translations/translations-edit/components/translations-edit-form/translations-edit-form.tsx +330 -361
- package/src/routes/translations/translations-edit/translations-edit.tsx +8 -13
- package/dist/chunk-HGRIOEAR.mjs +0 -32
- package/dist/chunk-XDJ7OMBR.mjs +0 -160
- package/dist/login-VNOLI5YG.mjs +0 -201
- package/dist/product-create-option-7AOXAA4S.mjs +0 -151
- package/dist/product-edit-option-LWJT3CYJ.mjs +0 -156
- package/dist/translation-list-UF7FLXOW.mjs +0 -441
- package/src/routes/products/product-create-option/components/create-product-option-form/create-product-option-form.tsx +0 -122
- package/src/routes/products/product-create-option/components/create-product-option-form/index.ts +0 -1
- package/src/routes/products/product-create-option/index.ts +0 -1
- package/src/routes/products/product-create-option/product-create-option.tsx +0 -30
- package/src/routes/products/product-edit-option/components/edit-product-option-form/edit-product-option-form.tsx +0 -123
- package/src/routes/products/product-edit-option/components/edit-product-option-form/index.ts +0 -1
- package/src/routes/products/product-edit-option/index.ts +0 -1
- package/src/routes/products/product-edit-option/product-edit-option.tsx +0 -35
- package/dist/{chunk-FBYTX6K7.mjs → chunk-ORWRXJJT.mjs} +4 -4
- package/dist/{location-list-KVBA6J47.mjs → location-list-3WP65J3E.mjs} +1 -1
- package/dist/{user-list-YTZQNYSO.mjs → user-list-3EAKK4XC.mjs} +3 -3
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useInfiniteList
|
|
3
|
-
} from "./chunk-HGRIOEAR.mjs";
|
|
4
1
|
import {
|
|
5
2
|
queryClient
|
|
6
3
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -12,69 +9,107 @@ import {
|
|
|
12
9
|
} from "./chunk-NFEK63OE.mjs";
|
|
13
10
|
|
|
14
11
|
// src/hooks/api/inventory.tsx
|
|
12
|
+
import {
|
|
13
|
+
useMutation as useMutation3,
|
|
14
|
+
useQuery as useQuery3
|
|
15
|
+
} from "@tanstack/react-query";
|
|
16
|
+
|
|
17
|
+
// src/hooks/api/products.tsx
|
|
15
18
|
import {
|
|
16
19
|
useMutation as useMutation2,
|
|
17
20
|
useQuery as useQuery2
|
|
18
21
|
} from "@tanstack/react-query";
|
|
19
22
|
|
|
20
|
-
// src/hooks/api/
|
|
23
|
+
// src/hooks/api/product-options.tsx
|
|
21
24
|
import {
|
|
22
25
|
useMutation,
|
|
23
26
|
useQuery
|
|
24
27
|
} from "@tanstack/react-query";
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
var PRODUCT_OPTIONS_QUERY_KEY = "product_options";
|
|
29
|
+
var productOptionsQueryKeys = queryKeysFactory(
|
|
30
|
+
PRODUCT_OPTIONS_QUERY_KEY
|
|
31
|
+
);
|
|
32
|
+
var useProductOption = (id, query, options) => {
|
|
33
|
+
const { data, ...rest } = useQuery({
|
|
34
|
+
queryKey: productOptionsQueryKeys.detail(id, query),
|
|
35
|
+
queryFn: () => sdk.admin.productOption.retrieve(id, query),
|
|
36
|
+
...options
|
|
37
|
+
});
|
|
38
|
+
return { ...data, ...rest };
|
|
39
|
+
};
|
|
40
|
+
var useProductOptions = (query, options) => {
|
|
41
|
+
const { data, ...rest } = useQuery({
|
|
42
|
+
queryFn: () => sdk.admin.productOption.list(query),
|
|
43
|
+
queryKey: productOptionsQueryKeys.list(query),
|
|
44
|
+
...options
|
|
45
|
+
});
|
|
46
|
+
return { ...data, ...rest };
|
|
47
|
+
};
|
|
48
|
+
var useCreateProductOption = (options) => {
|
|
32
49
|
return useMutation({
|
|
33
|
-
mutationFn: (payload) => sdk.admin.
|
|
50
|
+
mutationFn: (payload) => sdk.admin.productOption.create(payload),
|
|
34
51
|
onSuccess: (data, variables, context) => {
|
|
35
|
-
queryClient.invalidateQueries({ queryKey: optionsQueryKeys.lists() });
|
|
36
52
|
queryClient.invalidateQueries({
|
|
37
|
-
queryKey:
|
|
53
|
+
queryKey: productOptionsQueryKeys.lists()
|
|
38
54
|
});
|
|
39
55
|
options?.onSuccess?.(data, variables, context);
|
|
40
56
|
},
|
|
41
57
|
...options
|
|
42
58
|
});
|
|
43
59
|
};
|
|
44
|
-
var useUpdateProductOption = (
|
|
60
|
+
var useUpdateProductOption = (id, options) => {
|
|
45
61
|
return useMutation({
|
|
46
|
-
mutationFn: (payload) => sdk.admin.
|
|
62
|
+
mutationFn: (payload) => sdk.admin.productOption.update(id, payload),
|
|
47
63
|
onSuccess: (data, variables, context) => {
|
|
48
|
-
queryClient.invalidateQueries({ queryKey: optionsQueryKeys.lists() });
|
|
49
64
|
queryClient.invalidateQueries({
|
|
50
|
-
queryKey:
|
|
65
|
+
queryKey: productOptionsQueryKeys.lists()
|
|
51
66
|
});
|
|
52
67
|
queryClient.invalidateQueries({
|
|
53
|
-
queryKey:
|
|
68
|
+
queryKey: productOptionsQueryKeys.detail(id)
|
|
54
69
|
});
|
|
55
70
|
options?.onSuccess?.(data, variables, context);
|
|
56
71
|
},
|
|
57
72
|
...options
|
|
58
73
|
});
|
|
59
74
|
};
|
|
60
|
-
var useDeleteProductOption = (
|
|
75
|
+
var useDeleteProductOption = (id, options) => {
|
|
61
76
|
return useMutation({
|
|
62
|
-
mutationFn: () => sdk.admin.
|
|
77
|
+
mutationFn: () => sdk.admin.productOption.delete(id),
|
|
63
78
|
onSuccess: (data, variables, context) => {
|
|
64
|
-
queryClient.invalidateQueries({ queryKey: optionsQueryKeys.lists() });
|
|
65
79
|
queryClient.invalidateQueries({
|
|
66
|
-
queryKey:
|
|
80
|
+
queryKey: productOptionsQueryKeys.lists()
|
|
67
81
|
});
|
|
68
82
|
queryClient.invalidateQueries({
|
|
69
|
-
queryKey:
|
|
83
|
+
queryKey: productOptionsQueryKeys.detail(id)
|
|
70
84
|
});
|
|
71
85
|
options?.onSuccess?.(data, variables, context);
|
|
72
86
|
},
|
|
73
87
|
...options
|
|
74
88
|
});
|
|
75
89
|
};
|
|
90
|
+
var useDeleteProductOptionLazy = (options) => {
|
|
91
|
+
return useMutation({
|
|
92
|
+
mutationFn: (id) => sdk.admin.productOption.delete(id),
|
|
93
|
+
onSuccess: (data, variables, context) => {
|
|
94
|
+
queryClient.invalidateQueries({
|
|
95
|
+
queryKey: productOptionsQueryKeys.lists()
|
|
96
|
+
});
|
|
97
|
+
queryClient.invalidateQueries({
|
|
98
|
+
queryKey: productOptionsQueryKeys.details()
|
|
99
|
+
});
|
|
100
|
+
options?.onSuccess?.(data, variables, context);
|
|
101
|
+
},
|
|
102
|
+
...options
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
// src/hooks/api/products.tsx
|
|
107
|
+
var PRODUCTS_QUERY_KEY = "products";
|
|
108
|
+
var productsQueryKeys = queryKeysFactory(PRODUCTS_QUERY_KEY);
|
|
109
|
+
var VARIANTS_QUERY_KEY = "product_variants";
|
|
110
|
+
var variantsQueryKeys = queryKeysFactory(VARIANTS_QUERY_KEY);
|
|
76
111
|
var useProductVariant = (productId, variantId, query, options) => {
|
|
77
|
-
const { data, ...rest } =
|
|
112
|
+
const { data, ...rest } = useQuery2({
|
|
78
113
|
queryFn: () => sdk.admin.product.retrieveVariant(productId, variantId, query),
|
|
79
114
|
queryKey: variantsQueryKeys.detail(variantId, query),
|
|
80
115
|
...options
|
|
@@ -82,7 +117,7 @@ var useProductVariant = (productId, variantId, query, options) => {
|
|
|
82
117
|
return { ...data, ...rest };
|
|
83
118
|
};
|
|
84
119
|
var useProductVariants = (productId, query, options) => {
|
|
85
|
-
const { data, ...rest } =
|
|
120
|
+
const { data, ...rest } = useQuery2({
|
|
86
121
|
queryFn: () => sdk.admin.product.listVariants(productId, query),
|
|
87
122
|
queryKey: variantsQueryKeys.list({ productId, ...query }),
|
|
88
123
|
...options
|
|
@@ -90,7 +125,7 @@ var useProductVariants = (productId, query, options) => {
|
|
|
90
125
|
return { ...data, ...rest };
|
|
91
126
|
};
|
|
92
127
|
var useCreateProductVariant = (productId, options) => {
|
|
93
|
-
return
|
|
128
|
+
return useMutation2({
|
|
94
129
|
mutationFn: (payload) => sdk.admin.product.createVariant(productId, payload),
|
|
95
130
|
onSuccess: (data, variables, context) => {
|
|
96
131
|
queryClient.invalidateQueries({ queryKey: variantsQueryKeys.lists() });
|
|
@@ -103,7 +138,7 @@ var useCreateProductVariant = (productId, options) => {
|
|
|
103
138
|
});
|
|
104
139
|
};
|
|
105
140
|
var useUpdateProductVariant = (productId, variantId, options) => {
|
|
106
|
-
return
|
|
141
|
+
return useMutation2({
|
|
107
142
|
mutationFn: (payload) => sdk.admin.product.updateVariant(productId, variantId, payload),
|
|
108
143
|
onSuccess: (data, variables, context) => {
|
|
109
144
|
queryClient.invalidateQueries({ queryKey: variantsQueryKeys.lists() });
|
|
@@ -119,7 +154,7 @@ var useUpdateProductVariant = (productId, variantId, options) => {
|
|
|
119
154
|
});
|
|
120
155
|
};
|
|
121
156
|
var useUpdateProductVariantsBatch = (productId, options) => {
|
|
122
|
-
return
|
|
157
|
+
return useMutation2({
|
|
123
158
|
mutationFn: (payload) => sdk.admin.product.batchVariants(productId, {
|
|
124
159
|
update: payload
|
|
125
160
|
}),
|
|
@@ -135,7 +170,7 @@ var useUpdateProductVariantsBatch = (productId, options) => {
|
|
|
135
170
|
});
|
|
136
171
|
};
|
|
137
172
|
var useProductVariantsInventoryItemsBatch = (productId, options) => {
|
|
138
|
-
return
|
|
173
|
+
return useMutation2({
|
|
139
174
|
mutationFn: (payload) => sdk.admin.product.batchVariantInventoryItems(productId, payload),
|
|
140
175
|
onSuccess: (data, variables, context) => {
|
|
141
176
|
queryClient.invalidateQueries({ queryKey: variantsQueryKeys.lists() });
|
|
@@ -149,7 +184,7 @@ var useProductVariantsInventoryItemsBatch = (productId, options) => {
|
|
|
149
184
|
});
|
|
150
185
|
};
|
|
151
186
|
var useDeleteVariant = (productId, variantId, options) => {
|
|
152
|
-
return
|
|
187
|
+
return useMutation2({
|
|
153
188
|
mutationFn: () => sdk.admin.product.deleteVariant(productId, variantId),
|
|
154
189
|
onSuccess: (data, variables, context) => {
|
|
155
190
|
queryClient.invalidateQueries({ queryKey: variantsQueryKeys.lists() });
|
|
@@ -165,7 +200,7 @@ var useDeleteVariant = (productId, variantId, options) => {
|
|
|
165
200
|
});
|
|
166
201
|
};
|
|
167
202
|
var useDeleteVariantLazy = (productId, options) => {
|
|
168
|
-
return
|
|
203
|
+
return useMutation2({
|
|
169
204
|
mutationFn: ({ variantId }) => sdk.admin.product.deleteVariant(productId, variantId),
|
|
170
205
|
onSuccess: (data, variables, context) => {
|
|
171
206
|
queryClient.invalidateQueries({ queryKey: variantsQueryKeys.lists() });
|
|
@@ -181,7 +216,7 @@ var useDeleteVariantLazy = (productId, options) => {
|
|
|
181
216
|
});
|
|
182
217
|
};
|
|
183
218
|
var useProduct = (id, query, options) => {
|
|
184
|
-
const { data, ...rest } =
|
|
219
|
+
const { data, ...rest } = useQuery2({
|
|
185
220
|
queryFn: () => sdk.admin.product.retrieve(id, query),
|
|
186
221
|
queryKey: productsQueryKeys.detail(id, query),
|
|
187
222
|
...options
|
|
@@ -189,23 +224,15 @@ var useProduct = (id, query, options) => {
|
|
|
189
224
|
return { ...data, ...rest };
|
|
190
225
|
};
|
|
191
226
|
var useProducts = (query, options) => {
|
|
192
|
-
const { data, ...rest } =
|
|
227
|
+
const { data, ...rest } = useQuery2({
|
|
193
228
|
queryFn: () => sdk.admin.product.list(query),
|
|
194
229
|
queryKey: productsQueryKeys.list(query),
|
|
195
230
|
...options
|
|
196
231
|
});
|
|
197
232
|
return { ...data, ...rest };
|
|
198
233
|
};
|
|
199
|
-
var useInfiniteProducts = (query, options) => {
|
|
200
|
-
return useInfiniteList({
|
|
201
|
-
queryKey: (params) => productsQueryKeys.list(params),
|
|
202
|
-
queryFn: (params) => sdk.admin.product.list(params),
|
|
203
|
-
query,
|
|
204
|
-
options
|
|
205
|
-
});
|
|
206
|
-
};
|
|
207
234
|
var useCreateProduct = (options) => {
|
|
208
|
-
return
|
|
235
|
+
return useMutation2({
|
|
209
236
|
mutationFn: (payload) => sdk.admin.product.create(payload),
|
|
210
237
|
onSuccess: (data, variables, context) => {
|
|
211
238
|
queryClient.invalidateQueries({ queryKey: productsQueryKeys.lists() });
|
|
@@ -218,7 +245,7 @@ var useCreateProduct = (options) => {
|
|
|
218
245
|
});
|
|
219
246
|
};
|
|
220
247
|
var useUpdateProduct = (id, options) => {
|
|
221
|
-
return
|
|
248
|
+
return useMutation2({
|
|
222
249
|
mutationFn: (payload) => sdk.admin.product.update(id, payload, {
|
|
223
250
|
fields: "-type,-collection,-options,-tags,-images,-variants,-sales_channels"
|
|
224
251
|
}),
|
|
@@ -235,7 +262,7 @@ var useUpdateProduct = (id, options) => {
|
|
|
235
262
|
});
|
|
236
263
|
};
|
|
237
264
|
var useDeleteProduct = (id, options) => {
|
|
238
|
-
return
|
|
265
|
+
return useMutation2({
|
|
239
266
|
mutationFn: () => sdk.admin.product.delete(id),
|
|
240
267
|
onSuccess: (data, variables, context) => {
|
|
241
268
|
queryClient.invalidateQueries({ queryKey: productsQueryKeys.lists() });
|
|
@@ -245,8 +272,24 @@ var useDeleteProduct = (id, options) => {
|
|
|
245
272
|
...options
|
|
246
273
|
});
|
|
247
274
|
};
|
|
275
|
+
var useLinkProductOptions = (productId, options) => {
|
|
276
|
+
return useMutation2({
|
|
277
|
+
mutationFn: (payload) => sdk.admin.product.linkOptions(productId, payload),
|
|
278
|
+
onSuccess: (data, variables, context) => {
|
|
279
|
+
queryClient.invalidateQueries({ queryKey: productsQueryKeys.lists() });
|
|
280
|
+
queryClient.invalidateQueries({
|
|
281
|
+
queryKey: productsQueryKeys.detail(productId)
|
|
282
|
+
});
|
|
283
|
+
queryClient.invalidateQueries({
|
|
284
|
+
queryKey: productOptionsQueryKeys.lists()
|
|
285
|
+
});
|
|
286
|
+
options?.onSuccess?.(data, variables, context);
|
|
287
|
+
},
|
|
288
|
+
...options
|
|
289
|
+
});
|
|
290
|
+
};
|
|
248
291
|
var useExportProducts = (query, options) => {
|
|
249
|
-
return
|
|
292
|
+
return useMutation2({
|
|
250
293
|
mutationFn: (payload) => sdk.admin.product.export(payload, query),
|
|
251
294
|
onSuccess: (data, variables, context) => {
|
|
252
295
|
options?.onSuccess?.(data, variables, context);
|
|
@@ -255,7 +298,7 @@ var useExportProducts = (query, options) => {
|
|
|
255
298
|
});
|
|
256
299
|
};
|
|
257
300
|
var useImportProducts = (options) => {
|
|
258
|
-
return
|
|
301
|
+
return useMutation2({
|
|
259
302
|
mutationFn: (payload) => sdk.admin.product.createImport(payload),
|
|
260
303
|
onSuccess: (data, variables, context) => {
|
|
261
304
|
options?.onSuccess?.(data, variables, context);
|
|
@@ -264,7 +307,7 @@ var useImportProducts = (options) => {
|
|
|
264
307
|
});
|
|
265
308
|
};
|
|
266
309
|
var useConfirmImportProducts = (options) => {
|
|
267
|
-
return
|
|
310
|
+
return useMutation2({
|
|
268
311
|
mutationFn: (payload) => sdk.admin.product.confirmImport(payload),
|
|
269
312
|
onSuccess: (data, variables, context) => {
|
|
270
313
|
options?.onSuccess?.(data, variables, context);
|
|
@@ -273,7 +316,7 @@ var useConfirmImportProducts = (options) => {
|
|
|
273
316
|
});
|
|
274
317
|
};
|
|
275
318
|
var useBatchImageVariants = (productId, imageId, options) => {
|
|
276
|
-
return
|
|
319
|
+
return useMutation2({
|
|
277
320
|
mutationFn: (payload) => sdk.admin.product.batchImageVariants(productId, imageId, payload),
|
|
278
321
|
onSuccess: (data, variables, context) => {
|
|
279
322
|
queryClient.invalidateQueries({
|
|
@@ -287,7 +330,7 @@ var useBatchImageVariants = (productId, imageId, options) => {
|
|
|
287
330
|
});
|
|
288
331
|
};
|
|
289
332
|
var useBatchVariantImages = (productId, variantId, options) => {
|
|
290
|
-
return
|
|
333
|
+
return useMutation2({
|
|
291
334
|
mutationFn: (payload) => sdk.admin.product.batchVariantImages(productId, variantId, payload),
|
|
292
335
|
onSuccess: (data, variables, context) => {
|
|
293
336
|
queryClient.invalidateQueries({
|
|
@@ -315,7 +358,7 @@ var inventoryItemLevelsQueryKeys = queryKeysFactory(
|
|
|
315
358
|
INVENTORY_ITEM_LEVELS_QUERY_KEY
|
|
316
359
|
);
|
|
317
360
|
var useInventoryItems = (query, options) => {
|
|
318
|
-
const { data, ...rest } =
|
|
361
|
+
const { data, ...rest } = useQuery3({
|
|
319
362
|
queryFn: () => sdk.admin.inventoryItem.list(query),
|
|
320
363
|
queryKey: inventoryItemsQueryKeys.list(query),
|
|
321
364
|
...options
|
|
@@ -323,7 +366,7 @@ var useInventoryItems = (query, options) => {
|
|
|
323
366
|
return { ...data, ...rest };
|
|
324
367
|
};
|
|
325
368
|
var useInventoryItem = (id, query, options) => {
|
|
326
|
-
const { data, ...rest } =
|
|
369
|
+
const { data, ...rest } = useQuery3({
|
|
327
370
|
queryFn: () => sdk.admin.inventoryItem.retrieve(id, query),
|
|
328
371
|
queryKey: inventoryItemsQueryKeys.detail(id),
|
|
329
372
|
...options
|
|
@@ -331,7 +374,7 @@ var useInventoryItem = (id, query, options) => {
|
|
|
331
374
|
return { ...data, ...rest };
|
|
332
375
|
};
|
|
333
376
|
var useCreateInventoryItem = (options) => {
|
|
334
|
-
return
|
|
377
|
+
return useMutation3({
|
|
335
378
|
mutationFn: (payload) => sdk.admin.inventoryItem.create(payload),
|
|
336
379
|
onSuccess: (data, variables, context) => {
|
|
337
380
|
queryClient.invalidateQueries({
|
|
@@ -343,7 +386,7 @@ var useCreateInventoryItem = (options) => {
|
|
|
343
386
|
});
|
|
344
387
|
};
|
|
345
388
|
var useUpdateInventoryItem = (id, options) => {
|
|
346
|
-
return
|
|
389
|
+
return useMutation3({
|
|
347
390
|
mutationFn: (payload) => sdk.admin.inventoryItem.update(id, payload),
|
|
348
391
|
onSuccess: (data, variables, context) => {
|
|
349
392
|
queryClient.invalidateQueries({
|
|
@@ -358,7 +401,7 @@ var useUpdateInventoryItem = (id, options) => {
|
|
|
358
401
|
});
|
|
359
402
|
};
|
|
360
403
|
var useDeleteInventoryItem = (id, options) => {
|
|
361
|
-
return
|
|
404
|
+
return useMutation3({
|
|
362
405
|
mutationFn: () => sdk.admin.inventoryItem.delete(id),
|
|
363
406
|
onSuccess: (data, variables, context) => {
|
|
364
407
|
queryClient.invalidateQueries({
|
|
@@ -373,7 +416,7 @@ var useDeleteInventoryItem = (id, options) => {
|
|
|
373
416
|
});
|
|
374
417
|
};
|
|
375
418
|
var useInventoryItemLevels = (inventoryItemId, query, options) => {
|
|
376
|
-
const { data, ...rest } =
|
|
419
|
+
const { data, ...rest } = useQuery3({
|
|
377
420
|
queryFn: () => sdk.admin.inventoryItem.listLevels(inventoryItemId, query),
|
|
378
421
|
queryKey: inventoryItemLevelsQueryKeys.list({
|
|
379
422
|
...query || {},
|
|
@@ -384,7 +427,7 @@ var useInventoryItemLevels = (inventoryItemId, query, options) => {
|
|
|
384
427
|
return { ...data, ...rest };
|
|
385
428
|
};
|
|
386
429
|
var useUpdateInventoryLevel = (inventoryItemId, locationId, options) => {
|
|
387
|
-
return
|
|
430
|
+
return useMutation3({
|
|
388
431
|
mutationFn: (payload) => sdk.admin.inventoryItem.updateLevel(inventoryItemId, locationId, payload),
|
|
389
432
|
onSuccess: (data, variables, context) => {
|
|
390
433
|
queryClient.invalidateQueries({
|
|
@@ -405,7 +448,7 @@ var useUpdateInventoryLevel = (inventoryItemId, locationId, options) => {
|
|
|
405
448
|
});
|
|
406
449
|
};
|
|
407
450
|
var useBatchInventoryItemLocationLevels = (inventoryItemId, options) => {
|
|
408
|
-
return
|
|
451
|
+
return useMutation3({
|
|
409
452
|
mutationFn: (payload) => sdk.admin.inventoryItem.batchInventoryItemLocationLevels(
|
|
410
453
|
inventoryItemId,
|
|
411
454
|
payload
|
|
@@ -429,7 +472,7 @@ var useBatchInventoryItemLocationLevels = (inventoryItemId, options) => {
|
|
|
429
472
|
});
|
|
430
473
|
};
|
|
431
474
|
var useBatchInventoryItemsLocationLevels = (options) => {
|
|
432
|
-
return
|
|
475
|
+
return useMutation3({
|
|
433
476
|
mutationFn: (payload) => sdk.admin.inventoryItem.batchInventoryItemsLocationLevels(payload),
|
|
434
477
|
onSuccess: (data, variables, context) => {
|
|
435
478
|
queryClient.invalidateQueries({
|
|
@@ -456,11 +499,15 @@ export {
|
|
|
456
499
|
useUpdateInventoryLevel,
|
|
457
500
|
useBatchInventoryItemLocationLevels,
|
|
458
501
|
useBatchInventoryItemsLocationLevels,
|
|
459
|
-
|
|
460
|
-
|
|
502
|
+
productOptionsQueryKeys,
|
|
503
|
+
useProductOption,
|
|
504
|
+
useProductOptions,
|
|
461
505
|
useCreateProductOption,
|
|
462
506
|
useUpdateProductOption,
|
|
463
507
|
useDeleteProductOption,
|
|
508
|
+
useDeleteProductOptionLazy,
|
|
509
|
+
productsQueryKeys,
|
|
510
|
+
variantsQueryKeys,
|
|
464
511
|
useProductVariant,
|
|
465
512
|
useProductVariants,
|
|
466
513
|
useCreateProductVariant,
|
|
@@ -471,10 +518,10 @@ export {
|
|
|
471
518
|
useDeleteVariantLazy,
|
|
472
519
|
useProduct,
|
|
473
520
|
useProducts,
|
|
474
|
-
useInfiniteProducts,
|
|
475
521
|
useCreateProduct,
|
|
476
522
|
useUpdateProduct,
|
|
477
523
|
useDeleteProduct,
|
|
524
|
+
useLinkProductOptions,
|
|
478
525
|
useExportProducts,
|
|
479
526
|
useImportProducts,
|
|
480
527
|
useConfirmImportProducts,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useProductTypeTableColumns
|
|
3
|
-
} from "./chunk-QOCJPBRB.mjs";
|
|
4
1
|
import {
|
|
5
2
|
getFormattedShippingOptionLocationName
|
|
6
3
|
} from "./chunk-UC26CCHZ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
useProductTypeTableColumns
|
|
6
|
+
} from "./chunk-QOCJPBRB.mjs";
|
|
7
7
|
import {
|
|
8
8
|
TextCell
|
|
9
9
|
} from "./chunk-MSDRGCRR.mjs";
|
|
10
|
-
import {
|
|
11
|
-
DateCell
|
|
12
|
-
} from "./chunk-VT2JJ5C2.mjs";
|
|
13
10
|
import {
|
|
14
11
|
useProductTableColumns
|
|
15
12
|
} from "./chunk-BW322BVH.mjs";
|
|
13
|
+
import {
|
|
14
|
+
DateCell
|
|
15
|
+
} from "./chunk-VT2JJ5C2.mjs";
|
|
16
16
|
import {
|
|
17
17
|
_DataTable,
|
|
18
18
|
useDataTable
|
|
19
19
|
} from "./chunk-DTZXEQXZ.mjs";
|
|
20
20
|
import {
|
|
21
21
|
useShippingOptionTableFilters
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IWNNQ6HA.mjs";
|
|
23
23
|
import {
|
|
24
24
|
useProductTypeTableFilters
|
|
25
25
|
} from "./chunk-CBSCX7RE.mjs";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-TDK3JDOB.mjs";
|
|
32
32
|
import {
|
|
33
33
|
useProductTableFilters
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-QHRAWZGA.mjs";
|
|
35
35
|
import {
|
|
36
36
|
useProductTableQuery
|
|
37
37
|
} from "./chunk-R65S6ZZV.mjs";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-WVA4O7QS.mjs";
|
|
42
42
|
import {
|
|
43
43
|
useProductTypes
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-QBIQEVTU.mjs";
|
|
45
45
|
import {
|
|
46
46
|
useShippingOptions
|
|
47
47
|
} from "./chunk-HBXV7ENS.mjs";
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
import {
|
|
52
52
|
useProduct,
|
|
53
53
|
useProducts
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-UCYUWNJL.mjs";
|
|
55
55
|
|
|
56
56
|
// src/routes/tax-regions/common/constants.ts
|
|
57
57
|
var TaxRateRuleReferenceType = /* @__PURE__ */ ((TaxRateRuleReferenceType2) => {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
productsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
useInfiniteList
|
|
6
|
-
} from "./chunk-HGRIOEAR.mjs";
|
|
3
|
+
} from "./chunk-UCYUWNJL.mjs";
|
|
7
4
|
import {
|
|
8
5
|
queryClient
|
|
9
6
|
} from "./chunk-FXYH54JP.mjs";
|
|
@@ -37,14 +34,6 @@ var useCollections = (query, options) => {
|
|
|
37
34
|
});
|
|
38
35
|
return { ...data, ...rest };
|
|
39
36
|
};
|
|
40
|
-
var useInfiniteCollections = (query, options) => {
|
|
41
|
-
return useInfiniteList({
|
|
42
|
-
queryKey: (params) => collectionsQueryKeys.list(params),
|
|
43
|
-
queryFn: (params) => sdk.admin.productCollection.list(params),
|
|
44
|
-
query,
|
|
45
|
-
options
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
37
|
var useUpdateCollection = (id, options) => {
|
|
49
38
|
return useMutation({
|
|
50
39
|
mutationFn: (payload) => sdk.admin.productCollection.update(id, payload),
|
|
@@ -102,7 +91,6 @@ export {
|
|
|
102
91
|
collectionsQueryKeys,
|
|
103
92
|
useCollection,
|
|
104
93
|
useCollections,
|
|
105
|
-
useInfiniteCollections,
|
|
106
94
|
useUpdateCollection,
|
|
107
95
|
useUpdateCollectionProducts,
|
|
108
96
|
useCreateCollection,
|