@mercurjs/admin 2.2.0-canary.14 → 2.2.0-canary.16
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-KOGSYV2W.js → add-campaign-promotions-RUUZFQVO.js} +3 -3
- package/dist/{adjust-inventory-3IQ657W2.js → adjust-inventory-INVLBRJB.js} +11 -11
- package/dist/{api-key-management-create-UD5V7TOU.js → api-key-management-create-JWXWNGWI.js} +3 -3
- package/dist/{api-key-management-detail-V22TYNOF.js → api-key-management-detail-ZRLG6YRB.js} +17 -16
- package/dist/{api-key-management-edit-4TLKJSAE.js → api-key-management-edit-C2LDCO4Q.js} +3 -3
- package/dist/{api-key-management-list-SZUSD6UI.js → api-key-management-list-FVOOICQR.js} +4 -4
- package/dist/{api-key-management-sales-channels-SKKS5BCC.js → api-key-management-sales-channels-E245THAC.js} +6 -5
- package/dist/{attribute-create-IKTP5XRS.js → attribute-create-UAFKYP5S.js} +12 -12
- package/dist/{attribute-detail-V4QI34FV.js → attribute-detail-AKA6OHN5.js} +11 -11
- package/dist/{attribute-list-EMPHZ32M.js → attribute-list-DRVOY6FY.js} +11 -11
- package/dist/breadcrumb-CO5DVI72.js +26 -0
- package/dist/breadcrumb-RYIHOYZE.js +27 -0
- package/dist/{campaign-detail-QY3AALUR.js → campaign-detail-A7ZM4Q7M.js} +15 -15
- package/dist/{categories-metadata-Z5JAWPAK.js → categories-metadata-CBWDAGCZ.js} +11 -11
- package/dist/{category-create-GMCJABRW.js → category-create-Q6IPW7UC.js} +3 -3
- package/dist/{category-detail-IP5EPIUR.js → category-detail-CIEHVR4M.js} +14 -14
- package/dist/{category-edit-GLE4NTFG.js → category-edit-TBMN4JAH.js} +2 -2
- package/dist/{category-list-SNVOQ64L.js → category-list-4YSI36HW.js} +4 -4
- package/dist/{category-organize-UY4M4N7S.js → category-organize-U6UO35Y3.js} +2 -2
- package/dist/{category-products-HWXJR7KR.js → category-products-U7CRTTJQ.js} +12 -12
- package/dist/{chunk-5UPOHLBD.js → chunk-22V5D3VA.js} +1 -1
- package/dist/{chunk-ABWW3JHS.js → chunk-3DMUKRIX.js} +4 -4
- package/dist/{chunk-M572YFDA.js → chunk-3EUF5GRT.js} +2 -2
- package/dist/{chunk-SUVFPJ4J.js → chunk-3KCXKGHX.js} +2 -2
- package/dist/{chunk-KWFKMS4M.js → chunk-3XSMZOVD.js} +4 -4
- package/dist/{chunk-O2XHQTBX.js → chunk-47W2JHOE.js} +3 -3
- package/dist/chunk-4FHHNYIV.js +280 -0
- package/dist/{chunk-NGDOLGBQ.js → chunk-4Q5JHL4V.js} +1 -1
- package/dist/{chunk-3HY4I76Q.js → chunk-5BF5JDWT.js} +2 -2
- package/dist/{chunk-ZXBCWDVM.js → chunk-5T45PYWI.js} +3 -3
- package/dist/{chunk-5FFZQPTT.js → chunk-6PTZK4CH.js} +1 -1
- package/dist/{chunk-HDOWEXDH.js → chunk-A2GVK4VZ.js} +2 -2
- package/dist/{chunk-ZO7A6VYP.js → chunk-AIG4MQL4.js} +3 -3
- package/dist/chunk-AWLDIHXR.js +204 -0
- package/dist/{chunk-D2VXOF46.js → chunk-B4K7H6DH.js} +2 -2
- package/dist/{chunk-EMQP2CNF.js → chunk-D77BYNTQ.js} +1 -1
- package/dist/{chunk-54RTJBYO.js → chunk-DGCPYCHU.js} +8 -63
- package/dist/{chunk-QLEGHL2Q.js → chunk-EB6ZFOTO.js} +2 -2
- package/dist/{chunk-W3FDZPPF.js → chunk-EOLSQKPV.js} +2 -2
- package/dist/{chunk-BPCU5QJE.js → chunk-FBD7WJPO.js} +1 -1
- package/dist/{chunk-NJP3DEE5.js → chunk-FJHAAROU.js} +1 -1
- package/dist/{chunk-N4GJRJF5.js → chunk-FJRNNDZS.js} +1 -1
- package/dist/{chunk-PASEZJC7.js → chunk-FYCIGKVG.js} +1 -1
- package/dist/{chunk-LGL4QSGB.js → chunk-GC5VN6RD.js} +1 -1
- package/dist/{chunk-4GFS57XI.js → chunk-HLJ24XVH.js} +1 -1
- package/dist/{chunk-72PLRAWM.js → chunk-IBX52HBP.js} +1 -1
- package/dist/{chunk-2OF7GB7J.js → chunk-IC3ZLUKY.js} +1 -1
- package/dist/{chunk-KK67WP4G.js → chunk-IEPH6A2W.js} +71 -247
- package/dist/{chunk-3XSC3NEG.js → chunk-J3AMUGGZ.js} +1 -1
- package/dist/{chunk-HQWN3A5L.js → chunk-JRLDKKCM.js} +2 -2
- package/dist/{chunk-R7ESTJHN.js → chunk-K2C42QAV.js} +2 -2
- package/dist/{chunk-DN2K5EAH.js → chunk-KYFWVLWO.js} +1 -1
- package/dist/{chunk-CKNQJPAG.js → chunk-LEHS6RED.js} +4 -2
- package/dist/{chunk-CYGCCNIC.js → chunk-LKW2KWJ4.js} +2 -2
- package/dist/{chunk-H3MAUKL7.js → chunk-M2E3PKA4.js} +183 -183
- package/dist/{chunk-SJGIQGEC.js → chunk-MHVZVF6O.js} +1 -1
- package/dist/{chunk-K4WU4PVL.js → chunk-NZOB3LPA.js} +1 -1
- package/dist/{chunk-QUPUWR42.js → chunk-OAQJNQYL.js} +1 -1
- package/dist/{chunk-6FHQCLHQ.js → chunk-OKWGPKVK.js} +1 -1
- package/dist/{chunk-3AO6X4CE.js → chunk-PE6JFXWU.js} +1 -1
- package/dist/{chunk-A62MTLPR.js → chunk-Q5WTOVZZ.js} +12 -2
- package/dist/{chunk-Z5T5EPLF.js → chunk-QKJGSZI2.js} +1 -1
- package/dist/{chunk-DJWOIRLV.js → chunk-RUSMGNQ6.js} +1 -1
- package/dist/{chunk-MVDPDVMI.js → chunk-RWRL4AXD.js} +4 -4
- package/dist/{chunk-JSH7JEKY.js → chunk-RZ5SFALB.js} +2 -2
- package/dist/chunk-S6A4FVM2.js +170 -0
- package/dist/{chunk-7KZ5X5SU.js → chunk-SEQJOCTT.js} +3 -3
- package/dist/{chunk-W6V2L2FX.js → chunk-SNCZQATG.js} +2 -2
- package/dist/{chunk-EBYWGIOR.js → chunk-T4GL73RP.js} +1 -1
- package/dist/{chunk-N7OVIX55.js → chunk-TH6W26RC.js} +1 -1
- package/dist/{chunk-4PU6GDCE.js → chunk-TWCYZF6X.js} +1 -1
- package/dist/chunk-UKLRBS4W.js +61 -0
- package/dist/{chunk-WTK4MLMF.js → chunk-UVYWKQJF.js} +1 -1
- package/dist/{chunk-PXKDYD3M.js → chunk-VZ7GNMGX.js} +1 -1
- package/dist/{chunk-VY7PT4SI.js → chunk-W6J4SJ3Y.js} +1 -1
- package/dist/{chunk-TE4IF3MM.js → chunk-WJGABDWC.js} +1 -1
- package/dist/{chunk-VT5E7OMM.js → chunk-WUGV75DM.js} +1 -1
- package/dist/{chunk-P5XVG4PY.js → chunk-XGUUM3S6.js} +1 -1
- package/dist/{chunk-7MMLCMV3.js → chunk-XVSJKCCQ.js} +1 -1
- package/dist/{chunk-BQ6ZDY6L.js → chunk-YM523XTD.js} +3 -3
- package/dist/{chunk-453BC56K.js → chunk-Z2UBJXTU.js} +1 -1
- package/dist/{chunk-EGTH3PUK.js → chunk-ZB4TESPP.js} +2 -2
- package/dist/{collection-add-products-ABWXUOFD.js → collection-add-products-G6BQPBXA.js} +12 -12
- package/dist/{collection-create-BRMP6SIZ.js → collection-create-O3RG3BFE.js} +2 -2
- package/dist/{collection-detail-AMGR2B5N.js → collection-detail-TR7TDQZG.js} +13 -13
- package/dist/{collection-edit-YLWUEU4C.js → collection-edit-EKPMNFCK.js} +2 -2
- package/dist/{collection-list-6HZE43AC.js → collection-list-FOWSOTS7.js} +14 -14
- package/dist/{collection-metadata-JS5QP3GD.js → collection-metadata-UEXKSJRF.js} +11 -11
- package/dist/{commission-rate-create-PSPSJZR5.js → commission-rate-create-UX3IFSPP.js} +14 -14
- package/dist/{commission-rate-detail-U72E4ZIO.js → commission-rate-detail-VGYTGWLH.js} +12 -12
- package/dist/{commission-rate-edit-7NJPABVA.js → commission-rate-edit-FTBBWE7F.js} +14 -14
- package/dist/{customer-detail-2RWBN6C4.js → customer-detail-5XGZ2K3H.js} +13 -13
- package/dist/{customer-group-detail-ED66F7JM.js → customer-group-detail-JX3BEYFG.js} +11 -11
- package/dist/{customer-group-list-6YUFKBHH.js → customer-group-list-F5TFLDVH.js} +11 -11
- package/dist/{customer-group-metadata-VQUOWR3P.js → customer-group-metadata-MVD7V6DA.js} +11 -11
- package/dist/{customer-metadata-47AVJXRI.js → customer-metadata-LW6GL25F.js} +11 -11
- package/dist/{customers-add-customer-group-HI7J7YKN.js → customers-add-customer-group-NGPLFWCL.js} +11 -11
- package/dist/{edit-inventory-item-MBPSBJL4.js → edit-inventory-item-6Q2TVHKC.js} +11 -11
- package/dist/{edit-inventory-item-attributes-RVYWOFAC.js → edit-inventory-item-attributes-SZZ65XJ5.js} +11 -11
- package/dist/{edit-reservation-7BLGYXCJ.js → edit-reservation-TUCZRTBN.js} +2 -2
- package/dist/{edit-rules-ZWDKM5M3.js → edit-rules-WJEEV2XB.js} +11 -11
- package/dist/index.js +211 -179
- package/dist/{inventory-create-Q4VBPXSG.js → inventory-create-ZJDSLZ5R.js} +12 -12
- package/dist/{inventory-detail-6CKO3A3Y.js → inventory-detail-LSAJ3ZB5.js} +12 -12
- package/dist/{inventory-list-2JGX6BRI.js → inventory-list-SCRYOBZV.js} +2 -2
- package/dist/{inventory-metadata-COGGE5ZR.js → inventory-metadata-HDLZ6SNH.js} +11 -11
- package/dist/{inventory-stock-2QIKS7LE.js → inventory-stock-EHZJMHOY.js} +11 -11
- package/dist/loader-S77URTQS.js +32 -0
- package/dist/loader-XPJWDZU3.js +32 -0
- package/dist/{location-detail-HOCNTQ7K.js → location-detail-PBCP7BBV.js} +12 -12
- package/dist/{location-fulfillment-providers-YQ2XFPAJ.js → location-fulfillment-providers-NVVLRKJT.js} +13 -13
- package/dist/{location-list-KQQRH4MT.js → location-list-DM4WU57J.js} +11 -11
- package/dist/{location-sales-channels-DRIS6AUX.js → location-sales-channels-T7ZUQ3PA.js} +5 -4
- package/dist/{location-service-zone-shipping-option-create-6GYLJHEC.js → location-service-zone-shipping-option-create-VVD2GMM3.js} +11 -11
- package/dist/{login-N7CVSQNG.js → login-LTASZXSR.js} +11 -11
- package/dist/{manage-locations-TKLOHP3D.js → manage-locations-WW35SVOX.js} +1 -1
- package/dist/{marketplace-detail-K52ALYGT.js → marketplace-detail-GSPPUVR7.js} +12 -12
- package/dist/{marketplace-metadata-ZSX3IQF4.js → marketplace-metadata-35DDUX2Z.js} +11 -11
- package/dist/offer-detail-page-2DG3W7VG.js +572 -0
- package/dist/offer-variant-detail-page-U4LDYFE3.js +143 -0
- package/dist/{offers-UBD6NICA.js → offers-D2QQQD2F.js} +284 -123
- package/dist/{order-create-edit-HEOYCYZO.js → order-create-edit-QBVSHRFO.js} +3 -3
- package/dist/{order-create-exchange-L56VKQBL.js → order-create-exchange-67R63776.js} +11 -11
- package/dist/{order-create-refund-UTJKJ3AJ.js → order-create-refund-4CDCQGXT.js} +11 -11
- package/dist/{order-detail-KAB4MV7X.js → order-detail-A2WC2OZU.js} +13 -13
- package/dist/{order-edit-billing-address-RUURVISC.js → order-edit-billing-address-WFUOLHWY.js} +12 -12
- package/dist/{order-edit-email-OO7AMRHC.js → order-edit-email-CPIRJACP.js} +11 -11
- package/dist/{order-edit-shipping-address-BRRXUE76.js → order-edit-shipping-address-FCEL2URJ.js} +11 -11
- package/dist/{order-list-S3AJC6L5.js → order-list-QR3ZVI4U.js} +3 -3
- package/dist/{order-metadata-OHK6TPAO.js → order-metadata-NFTVCHFD.js} +11 -11
- package/dist/{order-request-transfer-YLMXC7NL.js → order-request-transfer-I6VIJK4L.js} +11 -11
- package/dist/pages/index.d.ts +2 -1
- package/dist/pages/index.js +90 -88
- package/dist/{price-list-configuration-Q5H22ZE2.js → price-list-configuration-I45NPXOI.js} +2 -2
- package/dist/{price-list-create-OYAVGRM5.js → price-list-create-QAEE6CAK.js} +13 -13
- package/dist/{price-list-detail-Q4GFFUFG.js → price-list-detail-77FAEXXO.js} +14 -14
- package/dist/{price-list-edit-YY4SXEI3.js → price-list-edit-A3SLXCYW.js} +2 -2
- package/dist/{price-list-list-OIOY43TF.js → price-list-list-AX7ZW6LL.js} +4 -4
- package/dist/{price-list-prices-add-KONZVSVQ.js → price-list-prices-add-TCW6S4Z3.js} +13 -13
- package/dist/{price-list-prices-edit-SMUKU7Q6.js → price-list-prices-edit-IGHGQ7DO.js} +11 -11
- package/dist/{product-add-existing-attributes-KOPVWK5Q.js → product-add-existing-attributes-BWEKWIWW.js} +11 -11
- package/dist/{product-attributes-C3KHQF2I.js → product-attributes-3VQAHGYZ.js} +1 -1
- package/dist/{product-bulk-edit-J3CMBZN2.js → product-bulk-edit-PLNZZO3C.js} +1 -1
- package/dist/{product-create-KTIQ3UAQ.js → product-create-AGSEC63C.js} +15 -15
- package/dist/{product-create-attribute-XARMC6FJ.js → product-create-attribute-PFIEDJNX.js} +1 -1
- package/dist/{product-create-variant-6VUKYLWE.js → product-create-variant-PP6PQF4T.js} +2 -2
- package/dist/{product-detail-UB3EZRDE.js → product-detail-CNVETME5.js} +15 -13
- package/dist/{product-edit-F4CKOIUO.js → product-edit-LBKIDCQM.js} +1 -1
- package/dist/{product-edit-attribute-LG2ZM6HQ.js → product-edit-attribute-RVNIUPIO.js} +1 -1
- package/dist/{product-list-2BWYAATR.js → product-list-KM37QJ6F.js} +13 -13
- package/dist/{product-media-EUDMCJ75.js → product-media-UWEOWTJT.js} +3 -3
- package/dist/{product-metadata-5WVNFCRL.js → product-metadata-6E6AZTHQ.js} +11 -11
- package/dist/{product-organization-BFWDCHP4.js → product-organization-2ZNTDHWP.js} +3 -3
- package/dist/{product-sales-channels-2J5Q65JS.js → product-sales-channels-7QCAABL4.js} +5 -4
- package/dist/{product-shipping-profile-WDLKA2SN.js → product-shipping-profile-UOQWHIO2.js} +1 -1
- package/dist/{product-tag-create-KQSVCWMC.js → product-tag-create-RDJNNVKB.js} +11 -11
- package/dist/{product-tag-detail-CWDAY7F3.js → product-tag-detail-R6UFJDCW.js} +14 -14
- package/dist/{product-tag-edit-B4SIZCUK.js → product-tag-edit-NQPOV5FR.js} +11 -11
- package/dist/{product-tag-list-2OK3OCMZ.js → product-tag-list-NFPQVVMO.js} +13 -13
- package/dist/{product-tag-metadata-MASTMIKE.js → product-tag-metadata-MYCCUFNT.js} +11 -11
- package/dist/{product-type-detail-3X7ZTZJN.js → product-type-detail-XJPSQDL2.js} +13 -13
- package/dist/{product-type-metadata-6BKTQHQC.js → product-type-metadata-IMMCIWOD.js} +11 -11
- package/dist/{product-variant-detail-PQ4RKPZT.js → product-variant-detail-VCMC4BZP.js} +12 -12
- package/dist/{product-variant-edit-TLF475SH.js → product-variant-edit-OXNWRFST.js} +11 -11
- package/dist/{product-variant-metadata-3M72B3PM.js → product-variant-metadata-ZIJG2HNS.js} +11 -11
- package/dist/{promotion-create-OKZBUSJD.js → promotion-create-CBOD7FVH.js} +11 -11
- package/dist/{promotion-detail-MMNEDRXD.js → promotion-detail-NSOGXQAY.js} +14 -14
- package/dist/{promotion-list-DHWW7FTI.js → promotion-list-7C3SQCSO.js} +4 -4
- package/dist/{refund-reason-create-N4DZ4UHS.js → refund-reason-create-V52L4U5V.js} +11 -11
- package/dist/{refund-reason-edit-OAHRDKXW.js → refund-reason-edit-3U6REVYW.js} +11 -11
- package/dist/{refund-reason-list-3BTQCIYE.js → refund-reason-list-SWU4B2ED.js} +11 -11
- package/dist/{region-metadata-BJSTTZFL.js → region-metadata-5YVOM47I.js} +11 -11
- package/dist/{reservation-create-TXYAY3KF.js → reservation-create-TNZQP7XW.js} +2 -2
- package/dist/{reservation-detail-CEENG76D.js → reservation-detail-BLPISKPA.js} +12 -12
- package/dist/{reservation-list-SORWYHI4.js → reservation-list-3OKWSHWH.js} +3 -3
- package/dist/{reservation-metadata-G3QBZF4K.js → reservation-metadata-VXWNURF4.js} +11 -11
- package/dist/{reset-password-QGQ4GAHK.js → reset-password-6CAYNSJ6.js} +1 -1
- package/dist/{sales-channel-add-products-3VZ5SLLP.js → sales-channel-add-products-LUKSBD5K.js} +12 -12
- package/dist/{sales-channel-create-XBR3QESI.js → sales-channel-create-O5KGQ6DU.js} +2 -2
- package/dist/{sales-channel-detail-PHRSKCNM.js → sales-channel-detail-6JPHP4FZ.js} +13 -13
- package/dist/{sales-channel-edit-ILBZBQP4.js → sales-channel-edit-CG3YUSYW.js} +2 -2
- package/dist/{sales-channel-list-E647FXSZ.js → sales-channel-list-D673ONK2.js} +15 -14
- package/dist/{sales-channel-metadata-HVPGS756.js → sales-channel-metadata-CHYCJOLY.js} +11 -11
- package/dist/{shipping-option-type-create-3ZKT7WAC.js → shipping-option-type-create-P2BCCARC.js} +11 -11
- package/dist/{shipping-option-type-detail-IYXWAK7F.js → shipping-option-type-detail-NVSXILP4.js} +11 -11
- package/dist/{shipping-option-type-edit-QRXYNNRW.js → shipping-option-type-edit-Z4ZLUANO.js} +11 -11
- package/dist/{shipping-option-type-list-MLIDCA3L.js → shipping-option-type-list-OUKJZJ6R.js} +11 -11
- package/dist/{shipping-profile-metadata-T4HPNTLH.js → shipping-profile-metadata-HS7TYNEX.js} +13 -13
- package/dist/{store-create-KFLNOD73.js → store-create-PHLTX6J3.js} +11 -11
- package/dist/{store-details-E347PHAN.js → store-details-V3NMV665.js} +14 -14
- package/dist/{store-edit-Y6NLBIOP.js → store-edit-CUVQLEFL.js} +2 -2
- package/dist/{store-list-S2L44OLB.js → store-list-WV6XHGLU.js} +13 -13
- package/dist/{tax-region-create-MIDQXQS4.js → tax-region-create-7UCI2QDJ.js} +12 -12
- package/dist/{tax-region-detail-AC7B3G57.js → tax-region-detail-OKEK6WNJ.js} +13 -13
- package/dist/{tax-region-edit-5CORTHTC.js → tax-region-edit-7O33SWZQ.js} +11 -11
- package/dist/{tax-region-metadata-QQZIQPAD.js → tax-region-metadata-6LMVFCFW.js} +11 -11
- package/dist/{tax-region-province-detail-2MGX7LEO.js → tax-region-province-detail-WHO3RLUX.js} +13 -13
- package/dist/{tax-region-tax-override-create-IONGD4TG.js → tax-region-tax-override-create-3FBV7DND.js} +14 -14
- package/dist/{tax-region-tax-override-edit-RIT6YRVK.js → tax-region-tax-override-edit-RZPP66BY.js} +14 -14
- package/dist/{user-detail-MMVBN3AE.js → user-detail-6CCQQPFR.js} +1 -1
- package/dist/{user-metadata-OZLU3Y2X.js → user-metadata-OYX24QL7.js} +11 -11
- package/package.json +1 -1
- package/dist/[id]-BAPEFPAO.js +0 -505
- package/dist/chunk-PT5PLV3N.js +0 -78
- package/dist/loader-OU7SKXOD.js +0 -28
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-OMBP3YSV.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RZ5SFALB.js";
|
|
10
10
|
import {
|
|
11
11
|
useProductTableQuery
|
|
12
12
|
} from "./chunk-LYZDVZWA.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-INNFZYX2.js";
|
|
29
29
|
import {
|
|
30
30
|
useProducts
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-M2E3PKA4.js";
|
|
32
32
|
|
|
33
33
|
// src/pages/product-types/product-type-detail/product-type-detail.tsx
|
|
34
34
|
import { Children } from "react";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-OMBP3YSV.js";
|
|
17
17
|
import {
|
|
18
18
|
useProductTableFilters
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RZ5SFALB.js";
|
|
20
20
|
import {
|
|
21
21
|
useProductTableQuery
|
|
22
22
|
} from "./chunk-LYZDVZWA.js";
|
|
@@ -43,13 +43,13 @@ import {
|
|
|
43
43
|
} from "./chunk-3QSRE5LS.js";
|
|
44
44
|
import {
|
|
45
45
|
useCreatePriceList
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-Z2UBJXTU.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-M2E3PKA4.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";
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ActionMenu
|
|
3
|
+
} from "./chunk-BDGZ4EQO.js";
|
|
4
|
+
import {
|
|
5
|
+
useUpdateProduct
|
|
6
|
+
} from "./chunk-M2E3PKA4.js";
|
|
7
|
+
|
|
8
|
+
// src/pages/products/product-detail/components/product-media-section/product-media-section.tsx
|
|
9
|
+
import { PencilSquare, ThumbnailBadge } from "@medusajs/icons";
|
|
10
|
+
import {
|
|
11
|
+
Button,
|
|
12
|
+
Checkbox,
|
|
13
|
+
CommandBar,
|
|
14
|
+
Container,
|
|
15
|
+
Heading,
|
|
16
|
+
Text,
|
|
17
|
+
Tooltip,
|
|
18
|
+
clx,
|
|
19
|
+
usePrompt
|
|
20
|
+
} from "@medusajs/ui";
|
|
21
|
+
import { useState } from "react";
|
|
22
|
+
import { useTranslation } from "react-i18next";
|
|
23
|
+
import { Link } from "react-router-dom";
|
|
24
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
25
|
+
var ProductMediaSection = ({
|
|
26
|
+
product,
|
|
27
|
+
readOnly = false
|
|
28
|
+
}) => {
|
|
29
|
+
const { t } = useTranslation();
|
|
30
|
+
const prompt = usePrompt();
|
|
31
|
+
const [selection, setSelection] = useState({});
|
|
32
|
+
const media = getMedia(product);
|
|
33
|
+
const handleCheckedChange = (id) => {
|
|
34
|
+
setSelection((prev) => {
|
|
35
|
+
if (prev[id]) {
|
|
36
|
+
const { [id]: _, ...rest } = prev;
|
|
37
|
+
return rest;
|
|
38
|
+
} else {
|
|
39
|
+
return { ...prev, [id]: true };
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
const { mutateAsync } = useUpdateProduct(product.id);
|
|
44
|
+
const handleDelete = async () => {
|
|
45
|
+
const ids = Object.keys(selection);
|
|
46
|
+
const includingThumbnail = ids.some(
|
|
47
|
+
(id) => media.find((m) => m.id === id)?.isThumbnail
|
|
48
|
+
);
|
|
49
|
+
const res = await prompt({
|
|
50
|
+
title: t("general.areYouSure"),
|
|
51
|
+
description: includingThumbnail ? t("products.media.deleteWarningWithThumbnail", {
|
|
52
|
+
count: ids.length
|
|
53
|
+
}) : t("products.media.deleteWarning", {
|
|
54
|
+
count: ids.length
|
|
55
|
+
}),
|
|
56
|
+
confirmText: t("actions.delete"),
|
|
57
|
+
cancelText: t("actions.cancel")
|
|
58
|
+
});
|
|
59
|
+
if (!res) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const mediaToKeep = product.images?.filter((i) => !ids.includes(i.id)).map((i) => ({ url: i.url }));
|
|
63
|
+
await mutateAsync(
|
|
64
|
+
{
|
|
65
|
+
images: mediaToKeep,
|
|
66
|
+
thumbnail: includingThumbnail ? "" : void 0
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
onSuccess: () => {
|
|
70
|
+
setSelection({});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", "data-testid": "product-media-section", children: [
|
|
76
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "product-media-header", children: [
|
|
77
|
+
/* @__PURE__ */ jsx(Heading, { level: "h2", "data-testid": "product-media-title", children: t("products.media.label") }),
|
|
78
|
+
!readOnly && /* @__PURE__ */ jsx(
|
|
79
|
+
ActionMenu,
|
|
80
|
+
{
|
|
81
|
+
groups: [
|
|
82
|
+
{
|
|
83
|
+
actions: [
|
|
84
|
+
{
|
|
85
|
+
label: t("actions.edit"),
|
|
86
|
+
to: "media?view=edit",
|
|
87
|
+
icon: /* @__PURE__ */ jsx(PencilSquare, {})
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"data-testid": "product-media-action-menu"
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
] }),
|
|
96
|
+
media.length > 0 ? /* @__PURE__ */ jsx("div", { className: "grid grid-cols-[repeat(auto-fill,minmax(96px,1fr))] gap-4 px-6 py-4", "data-testid": "product-media-grid", children: media.map((i, index) => {
|
|
97
|
+
const isSelected = selection[i.id];
|
|
98
|
+
return /* @__PURE__ */ jsxs(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
className: clx(
|
|
102
|
+
"shadow-elevation-card-rest transition-fg group relative aspect-square size-full overflow-hidden rounded-[8px]",
|
|
103
|
+
{
|
|
104
|
+
"hover:shadow-elevation-card-hover cursor-pointer": !readOnly
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
"data-testid": `product-media-item-${i.id}`,
|
|
108
|
+
children: [
|
|
109
|
+
!readOnly && /* @__PURE__ */ jsx(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
className: clx(
|
|
113
|
+
"transition-fg invisible absolute right-2 top-2 opacity-0 group-hover:visible group-hover:opacity-100",
|
|
114
|
+
{
|
|
115
|
+
"visible opacity-100": isSelected
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
"data-testid": `product-media-checkbox-container-${i.id}`,
|
|
119
|
+
children: /* @__PURE__ */ jsx(
|
|
120
|
+
Checkbox,
|
|
121
|
+
{
|
|
122
|
+
checked: selection[i.id] || false,
|
|
123
|
+
onCheckedChange: () => handleCheckedChange(i.id),
|
|
124
|
+
"data-testid": `product-media-checkbox-${i.id}`
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
i.isThumbnail && /* @__PURE__ */ jsx("div", { className: "absolute left-2 top-2", "data-testid": `product-media-thumbnail-badge-${i.id}`, children: /* @__PURE__ */ jsx(Tooltip, { content: t("fields.thumbnail"), children: /* @__PURE__ */ jsx(ThumbnailBadge, {}) }) }),
|
|
130
|
+
readOnly ? /* @__PURE__ */ jsx(
|
|
131
|
+
"img",
|
|
132
|
+
{
|
|
133
|
+
src: i.url,
|
|
134
|
+
alt: product.title,
|
|
135
|
+
className: "size-full object-cover",
|
|
136
|
+
"data-testid": `product-media-image-${i.id}`
|
|
137
|
+
}
|
|
138
|
+
) : /* @__PURE__ */ jsx(Link, { to: `media`, state: { curr: index }, "data-testid": `product-media-link-${i.id}`, children: /* @__PURE__ */ jsx(
|
|
139
|
+
"img",
|
|
140
|
+
{
|
|
141
|
+
src: i.url,
|
|
142
|
+
alt: product.title,
|
|
143
|
+
className: "size-full object-cover",
|
|
144
|
+
"data-testid": `product-media-image-${i.id}`
|
|
145
|
+
}
|
|
146
|
+
) })
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
i.id
|
|
150
|
+
);
|
|
151
|
+
}) }) : /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-y-4 pb-8 pt-6", "data-testid": "product-media-empty-state", children: [
|
|
152
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
153
|
+
/* @__PURE__ */ jsx(
|
|
154
|
+
Text,
|
|
155
|
+
{
|
|
156
|
+
size: "small",
|
|
157
|
+
leading: "compact",
|
|
158
|
+
weight: "plus",
|
|
159
|
+
className: "text-ui-fg-subtle",
|
|
160
|
+
"data-testid": "product-media-empty-state-header",
|
|
161
|
+
children: t("products.media.emptyState.header")
|
|
162
|
+
}
|
|
163
|
+
),
|
|
164
|
+
/* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-muted", "data-testid": "product-media-empty-state-description", children: t("products.media.emptyState.description") })
|
|
165
|
+
] }),
|
|
166
|
+
!readOnly && /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", asChild: true, "data-testid": "product-media-empty-state-button", children: /* @__PURE__ */ jsx(Link, { to: "media?view=edit", "data-testid": "product-media-empty-state-link", children: t("products.media.emptyState.action") }) })
|
|
167
|
+
] }),
|
|
168
|
+
!readOnly && /* @__PURE__ */ jsx(CommandBar, { open: !!Object.keys(selection).length, "data-testid": "product-media-command-bar", children: /* @__PURE__ */ jsxs(CommandBar.Bar, { "data-testid": "product-media-command-bar-bar", children: [
|
|
169
|
+
/* @__PURE__ */ jsx(CommandBar.Value, { "data-testid": "product-media-command-bar-value", children: t("general.countSelected", {
|
|
170
|
+
count: Object.keys(selection).length
|
|
171
|
+
}) }),
|
|
172
|
+
/* @__PURE__ */ jsx(CommandBar.Seperator, { "data-testid": "product-media-command-bar-separator" }),
|
|
173
|
+
/* @__PURE__ */ jsx(
|
|
174
|
+
CommandBar.Command,
|
|
175
|
+
{
|
|
176
|
+
action: handleDelete,
|
|
177
|
+
label: t("actions.delete"),
|
|
178
|
+
shortcut: "d",
|
|
179
|
+
"data-testid": "product-media-command-bar-delete"
|
|
180
|
+
}
|
|
181
|
+
)
|
|
182
|
+
] }) })
|
|
183
|
+
] });
|
|
184
|
+
};
|
|
185
|
+
var getMedia = (product) => {
|
|
186
|
+
const { images = [], thumbnail } = product;
|
|
187
|
+
const media = images.map((image) => ({
|
|
188
|
+
id: image.id,
|
|
189
|
+
url: image.url,
|
|
190
|
+
isThumbnail: image.url === thumbnail
|
|
191
|
+
}));
|
|
192
|
+
if (thumbnail && !media.some((mediaItem) => mediaItem.url === thumbnail)) {
|
|
193
|
+
media.unshift({
|
|
194
|
+
id: "img_thumbnail",
|
|
195
|
+
url: thumbnail,
|
|
196
|
+
isThumbnail: true
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
return media;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
export {
|
|
203
|
+
ProductMediaSection
|
|
204
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reservationItemsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XGUUM3S6.js";
|
|
4
4
|
import {
|
|
5
5
|
ordersQueryKeys
|
|
6
6
|
} from "./chunk-VT6QIVZW.js";
|
|
7
7
|
import {
|
|
8
8
|
inventoryItemsQueryKeys
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M2E3PKA4.js";
|
|
10
10
|
import {
|
|
11
11
|
queryClient
|
|
12
12
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -2,74 +2,20 @@ import {
|
|
|
2
2
|
useDate
|
|
3
3
|
} from "./chunk-UZWFZMOX.js";
|
|
4
4
|
|
|
5
|
-
// src/components/data-table/helpers/general/use-data-table-date-columns.tsx
|
|
6
|
-
import {
|
|
7
|
-
createDataTableColumnHelper,
|
|
8
|
-
Tooltip
|
|
9
|
-
} from "@medusajs/ui";
|
|
10
|
-
import { useMemo } from "react";
|
|
11
|
-
import { useTranslation } from "react-i18next";
|
|
12
|
-
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
var columnHelper = createDataTableColumnHelper();
|
|
14
|
-
var useDataTableDateColumns = () => {
|
|
15
|
-
const { t } = useTranslation();
|
|
16
|
-
const { getFullDate } = useDate();
|
|
17
|
-
return useMemo(() => {
|
|
18
|
-
return [
|
|
19
|
-
columnHelper.accessor("created_at", {
|
|
20
|
-
header: t("fields.createdAt"),
|
|
21
|
-
cell: ({ row }) => {
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
-
Tooltip,
|
|
24
|
-
{
|
|
25
|
-
content: getFullDate({
|
|
26
|
-
date: row.original.created_at,
|
|
27
|
-
includeTime: true
|
|
28
|
-
}),
|
|
29
|
-
children: /* @__PURE__ */ jsx("span", { children: getFullDate({ date: row.original.created_at }) })
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
},
|
|
33
|
-
enableSorting: true,
|
|
34
|
-
sortAscLabel: t("filters.sorting.dateAsc"),
|
|
35
|
-
sortDescLabel: t("filters.sorting.dateDesc")
|
|
36
|
-
}),
|
|
37
|
-
columnHelper.accessor("updated_at", {
|
|
38
|
-
header: t("fields.updatedAt"),
|
|
39
|
-
cell: ({ row }) => {
|
|
40
|
-
return /* @__PURE__ */ jsx(
|
|
41
|
-
Tooltip,
|
|
42
|
-
{
|
|
43
|
-
content: getFullDate({
|
|
44
|
-
date: row.original.updated_at,
|
|
45
|
-
includeTime: true
|
|
46
|
-
}),
|
|
47
|
-
children: /* @__PURE__ */ jsx("span", { children: getFullDate({ date: row.original.updated_at }) })
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
},
|
|
51
|
-
enableSorting: true,
|
|
52
|
-
sortAscLabel: t("filters.sorting.dateAsc"),
|
|
53
|
-
sortDescLabel: t("filters.sorting.dateDesc")
|
|
54
|
-
})
|
|
55
|
-
];
|
|
56
|
-
}, [t, getFullDate]);
|
|
57
|
-
};
|
|
58
|
-
|
|
59
5
|
// src/components/data-table/helpers/general/use-data-table-date-filters.tsx
|
|
60
6
|
import { createDataTableFilterHelper } from "@medusajs/ui";
|
|
61
7
|
import { subDays, subMonths } from "date-fns";
|
|
62
|
-
import { useMemo
|
|
63
|
-
import { useTranslation
|
|
8
|
+
import { useMemo } from "react";
|
|
9
|
+
import { useTranslation } from "react-i18next";
|
|
64
10
|
var filterHelper = createDataTableFilterHelper();
|
|
65
11
|
var useDateFilterOptions = () => {
|
|
66
|
-
const { t } =
|
|
67
|
-
const today =
|
|
12
|
+
const { t } = useTranslation();
|
|
13
|
+
const today = useMemo(() => {
|
|
68
14
|
const date = /* @__PURE__ */ new Date();
|
|
69
15
|
date.setHours(0, 0, 0, 0);
|
|
70
16
|
return date;
|
|
71
17
|
}, []);
|
|
72
|
-
return
|
|
18
|
+
return useMemo(() => {
|
|
73
19
|
return [
|
|
74
20
|
{
|
|
75
21
|
label: t("filters.date.today"),
|
|
@@ -109,10 +55,10 @@ var useDateFilterOptions = () => {
|
|
|
109
55
|
}, [today, t]);
|
|
110
56
|
};
|
|
111
57
|
var useDataTableDateFilters = (disableRangeOption) => {
|
|
112
|
-
const { t } =
|
|
58
|
+
const { t } = useTranslation();
|
|
113
59
|
const { getFullDate } = useDate();
|
|
114
60
|
const dateFilterOptions = useDateFilterOptions();
|
|
115
|
-
const rangeOptions =
|
|
61
|
+
const rangeOptions = useMemo(() => {
|
|
116
62
|
if (disableRangeOption) {
|
|
117
63
|
return {
|
|
118
64
|
disableRangeOption: true
|
|
@@ -125,7 +71,7 @@ var useDataTableDateFilters = (disableRangeOption) => {
|
|
|
125
71
|
options: dateFilterOptions
|
|
126
72
|
};
|
|
127
73
|
}, [disableRangeOption, t, dateFilterOptions]);
|
|
128
|
-
return
|
|
74
|
+
return useMemo(() => {
|
|
129
75
|
return [
|
|
130
76
|
filterHelper.accessor("created_at", {
|
|
131
77
|
type: "date",
|
|
@@ -148,6 +94,5 @@ var useDataTableDateFilters = (disableRangeOption) => {
|
|
|
148
94
|
};
|
|
149
95
|
|
|
150
96
|
export {
|
|
151
|
-
useDataTableDateColumns,
|
|
152
97
|
useDataTableDateFilters
|
|
153
98
|
};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-OMBP3YSV.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableFilters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RZ5SFALB.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableQuery
|
|
9
9
|
} from "./chunk-LYZDVZWA.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
useBatchProducts,
|
|
25
25
|
useDeleteProduct,
|
|
26
26
|
useProducts
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-M2E3PKA4.js";
|
|
28
28
|
|
|
29
29
|
// src/pages/products/product-list/product-list.tsx
|
|
30
30
|
import { Children as Children2 } from "react";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
useCancelOrderEdit,
|
|
29
29
|
useConfirmOrderEdit
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-B4K7H6DH.js";
|
|
31
31
|
import {
|
|
32
32
|
getPaymentsFromOrder,
|
|
33
33
|
getReservationsLimitCount
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
} from "./chunk-LJDGVBOQ.js";
|
|
89
89
|
import {
|
|
90
90
|
useReservationItems
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-XGUUM3S6.js";
|
|
92
92
|
import {
|
|
93
93
|
useOrderGroupByOrderId
|
|
94
94
|
} from "./chunk-VYMODH6P.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-INNFZYX2.js";
|
|
33
33
|
import {
|
|
34
34
|
useProducts
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-M2E3PKA4.js";
|
|
36
36
|
|
|
37
37
|
// src/pages/tax-regions/common/components/tax-rate-line/tax-rate-line.tsx
|
|
38
38
|
import { PencilSquare, Trash } from "@medusajs/icons";
|