@mercurjs/admin 2.2.0-canary.39 → 2.2.0-canary.41
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-NT4LQZQJ.js → add-campaign-promotions-QK73ARX4.js} +4 -4
- package/dist/{api-key-management-list-SXHZJUJB.js → api-key-management-list-5RXBJ24C.js} +2 -2
- package/dist/{attribute-create-D4RUU5OT.js → attribute-create-VAR6C5GW.js} +11 -18
- package/dist/{attribute-detail-OU6557XI.js → attribute-detail-LBACUDU3.js} +5 -5
- package/dist/{attribute-edit-EQH3YMGW.js → attribute-edit-WXO5FGR6.js} +4 -4
- package/dist/{attribute-edit-possible-value-X7XTAVVL.js → attribute-edit-possible-value-RO7BY3NC.js} +2 -2
- package/dist/{attribute-edit-ranking-CHWUVK5Z.js → attribute-edit-ranking-YGR3KCSC.js} +1 -1
- package/dist/{attribute-list-5LGYNGO7.js → attribute-list-6A72PBIY.js} +2 -2
- package/dist/{campaign-detail-EHNTH6A7.js → campaign-detail-6J7PTIIP.js} +5 -5
- package/dist/{campaign-edit-MAS3DCFB.js → campaign-edit-DBAJFIH4.js} +18 -5
- package/dist/{campaign-list-FFGRXEVJ.js → campaign-list-XH7UM5JJ.js} +2 -2
- package/dist/{categories-metadata-EKY6TSUK.js → categories-metadata-4LXL2PWA.js} +1 -1
- package/dist/{category-create-AIS2MG7E.js → category-create-CJZZZLDD.js} +1 -1
- package/dist/{category-detail-HCRJDDA2.js → category-detail-XV6CDZZL.js} +6 -6
- package/dist/{category-edit-LYR2IOTA.js → category-edit-2NCWDSZY.js} +19 -6
- package/dist/{category-list-7ILXI55P.js → category-list-WYMOJJLW.js} +2 -2
- package/dist/{category-products-LZQATT5Z.js → category-products-CQV2TKLY.js} +5 -5
- package/dist/{chunk-S22SK4KO.js → chunk-25U23TXK.js} +1 -1
- package/dist/{chunk-O5MW4WPZ.js → chunk-27XNPAJP.js} +10 -4
- package/dist/{chunk-CYACZXMQ.js → chunk-2CJIE5MY.js} +19 -8
- package/dist/{chunk-SLKOHWKT.js → chunk-3L4IFGRJ.js} +46 -9
- package/dist/{chunk-MYJJMHR5.js → chunk-4BPQNCF5.js} +1 -1
- package/dist/{chunk-VSLKILOI.js → chunk-4RLXMDIJ.js} +2 -2
- package/dist/{chunk-5GVJXMOU.js → chunk-4XYSIVPO.js} +2 -2
- package/dist/{chunk-PSGHE5YJ.js → chunk-5DAFNAZJ.js} +52 -35
- package/dist/{chunk-BLR3NTU6.js → chunk-5PNM6QNB.js} +2 -0
- package/dist/{chunk-YUUDST4E.js → chunk-5UT374IW.js} +70 -25
- package/dist/{chunk-2YAVXVET.js → chunk-6BWJWA2F.js} +1 -1
- package/dist/{chunk-HSL5IICN.js → chunk-6ZVV2XHU.js} +1 -1
- package/dist/{chunk-5NC6SI6J.js → chunk-7U2JJYMP.js} +42 -14
- package/dist/{chunk-DI2KBXVH.js → chunk-ADTYNS4J.js} +2 -2
- package/dist/{chunk-CE2WRTS7.js → chunk-AMZ2QSSI.js} +1 -1
- package/dist/chunk-APAT344J.js +144 -0
- package/dist/{chunk-74WEDBZ7.js → chunk-BFUHW56P.js} +1 -1
- package/dist/{chunk-YNK25LVO.js → chunk-BQWSY6FS.js} +2 -2
- package/dist/{chunk-MANRAV52.js → chunk-CBD7HK2G.js} +60 -26
- package/dist/{chunk-FLPKTLXN.js → chunk-CHMIK6PK.js} +1 -1
- package/dist/{chunk-WKTRJNOK.js → chunk-COOOOQ2N.js} +1 -1
- package/dist/{chunk-5K5VNKSE.js → chunk-DJD3MWED.js} +1 -1
- package/dist/{chunk-2DSCC2VR.js → chunk-EOSJHPHN.js} +1 -1
- package/dist/{chunk-AVATBB62.js → chunk-F2SZ4LPF.js} +61 -5
- package/dist/{chunk-BVIIRGSW.js → chunk-F3F4JC7E.js} +3 -1
- package/dist/{chunk-7TWARCNU.js → chunk-FNCDMOOR.js} +54 -22
- package/dist/{chunk-DISTPZNS.js → chunk-GWSRWILC.js} +1 -1
- package/dist/{chunk-5DQED4UT.js → chunk-GXU246YJ.js} +32 -5
- package/dist/{chunk-73Y6HKIG.js → chunk-HT34QVZR.js} +1 -1
- package/dist/{chunk-O53E5U52.js → chunk-I5HY5Q3K.js} +1 -1
- package/dist/{chunk-23OLYWMR.js → chunk-IASJSRP5.js} +71 -50
- package/dist/{chunk-FZPSX44L.js → chunk-IMLKFVFH.js} +24 -7
- package/dist/{chunk-LZEEPVQY.js → chunk-IZBV7MCY.js} +71 -37
- package/dist/{chunk-XFKDDRB6.js → chunk-JEDX4KBB.js} +1 -1
- package/dist/{chunk-CY263OE4.js → chunk-JEN37H6L.js} +3 -1
- package/dist/{chunk-PRSTCHB5.js → chunk-JSVYNNPF.js} +1 -3
- package/dist/{chunk-BO4V6CQN.js → chunk-K2JORJRZ.js} +4 -2
- package/dist/{chunk-LH4WPKYK.js → chunk-K7H77TA5.js} +1 -1
- package/dist/{chunk-RNDDYLHV.js → chunk-KRFXBBBU.js} +3 -3
- package/dist/{chunk-CN4FCZPK.js → chunk-KT4DGVRQ.js} +2 -2
- package/dist/{chunk-DWNUEPMI.js → chunk-KUCNCDST.js} +5 -10
- package/dist/{chunk-4NAIC6RG.js → chunk-L2D2AMTK.js} +4 -2
- package/dist/{chunk-WKR3Y2KD.js → chunk-LBDSZT5Q.js} +19 -8
- package/dist/{chunk-P4LTLPTK.js → chunk-LGOPKYNG.js} +1 -1
- package/dist/{chunk-VSKHV5QF.js → chunk-LQSSUC7W.js} +1 -1
- package/dist/{chunk-RIURQMDE.js → chunk-MFCQTAVI.js} +16 -5
- package/dist/{chunk-EUXCKJPT.js → chunk-ML7UVBKL.js} +1 -1
- package/dist/{chunk-LX5XLXPI.js → chunk-NLJ5F7FS.js} +1 -1
- package/dist/{chunk-325DZAT2.js → chunk-NPHYCQMP.js} +6 -4
- package/dist/{chunk-Y62TJJ3P.js → chunk-ORCMDF54.js} +28 -12
- package/dist/{chunk-I3ARNGRC.js → chunk-OVUKVGGD.js} +19 -8
- package/dist/{chunk-IQDZZ5EQ.js → chunk-PLU2GB4L.js} +28 -8
- package/dist/{chunk-FNJEXQ2Z.js → chunk-QAONUPAX.js} +44 -15
- package/dist/{chunk-GUDWUAMT.js → chunk-QFFF542X.js} +10 -4
- package/dist/{chunk-2S2SBRZP.js → chunk-RATQZHCS.js} +7 -6
- package/dist/{chunk-ZO3OJ2UQ.js → chunk-RIO2IHPE.js} +1 -1
- package/dist/{chunk-WBSUHLO7.js → chunk-RMB7MPIT.js} +1 -1
- package/dist/{chunk-HWWET5ZP.js → chunk-S2C6DUQJ.js} +3 -3
- package/dist/{chunk-QH34LF36.js → chunk-TZM63FZ4.js} +2 -2
- package/dist/{chunk-3SHHDCA6.js → chunk-U4MV53CS.js} +33 -15
- package/dist/{chunk-KC4J2WOM.js → chunk-USG4EATH.js} +20 -5
- package/dist/{chunk-LRJNSCMR.js → chunk-VIJXGPDE.js} +79 -25
- package/dist/{chunk-JUMT5GX7.js → chunk-VLYPVR5U.js} +20 -9
- package/dist/{chunk-PWLDTJJX.js → chunk-VXDRQQRZ.js} +4 -4
- package/dist/{chunk-YZBEJ3CY.js → chunk-VYSB4CTB.js} +1500 -1370
- package/dist/{chunk-TBKNLE4M.js → chunk-WEVSVBVF.js} +1 -1
- package/dist/{chunk-WNTHKSLS.js → chunk-WMK3BQPH.js} +2 -2
- package/dist/{chunk-AROCMF45.js → chunk-X5PMVI7H.js} +2 -2
- package/dist/{chunk-RDUSAVT3.js → chunk-X6KFVVHH.js} +3 -3
- package/dist/{chunk-2FPQHWJZ.js → chunk-X7IR2TVL.js} +106 -24
- package/dist/{chunk-7RWFRMQG.js → chunk-ZU74CNL4.js} +1 -1
- package/dist/{collection-add-products-QIEQCILA.js → collection-add-products-XUKFZOCQ.js} +5 -5
- package/dist/{collection-detail-PTVRSXT3.js → collection-detail-ID4FKP22.js} +6 -6
- package/dist/{collection-edit-UMZN5JZ6.js → collection-edit-GPUKISIV.js} +18 -5
- package/dist/{collection-list-O5XBGFTN.js → collection-list-C6U4CPLD.js} +5 -5
- package/dist/{collection-metadata-TOHJL5WW.js → collection-metadata-SBK6SL4C.js} +1 -1
- package/dist/{commission-rule-commission-edit-EXLLNUKM.js → commission-rule-commission-edit-V5JVRNZN.js} +1 -3
- package/dist/{commission-rule-create-3MCNOSWN.js → commission-rule-create-EZ2C6AWK.js} +1 -3
- package/dist/{commission-rule-detail-VTP2JKEG.js → commission-rule-detail-ZQ3OHFA2.js} +2 -2
- package/dist/{commission-rule-edit-X45EQ6BK.js → commission-rule-edit-NQ5EYCGO.js} +1 -3
- package/dist/{commissions-list-T7735Y35.js → commissions-list-M5WLJD2P.js} +3 -3
- package/dist/{customer-detail-IPM3SBHE.js → customer-detail-IG2QAAQL.js} +2 -2
- package/dist/{customer-edit-D55FJLIN.js → customer-edit-TADBOMPB.js} +18 -5
- package/dist/{customer-group-add-customers-QBRVKXGO.js → customer-group-add-customers-O6A5ZFPM.js} +1 -1
- package/dist/{customer-group-detail-3HV3BJOU.js → customer-group-detail-2B7XJ7NT.js} +2 -2
- package/dist/{customer-group-edit-NZ5SUPFQ.js → customer-group-edit-BX4HKVNN.js} +33 -18
- package/dist/{customer-group-list-IR6CW36P.js → customer-group-list-7LN5TN3G.js} +2 -2
- package/dist/{customer-group-metadata-4W32YXXP.js → customer-group-metadata-JX7ZBXLJ.js} +1 -1
- package/dist/{customer-list-276YPXTE.js → customer-list-K5TV3PSF.js} +2 -2
- package/dist/{customer-metadata-L622ZJ43.js → customer-metadata-JT5GGCRV.js} +1 -1
- package/dist/{customers-add-customer-group-PWKJZJBP.js → customers-add-customer-group-KX3XNNMU.js} +1 -1
- package/dist/{edit-inventory-item-73BY4I5T.js → edit-inventory-item-4RXYRJ7O.js} +19 -6
- package/dist/{edit-reservation-BC5IOLK6.js → edit-reservation-HA6J6U2N.js} +18 -5
- package/dist/{edit-rules-OK44K33O.js → edit-rules-4PPNBI7B.js} +1 -1
- package/dist/extension-targets.d.ts +195 -0
- package/dist/extension-targets.js +1 -0
- package/dist/{global-commission-edit-7ZMMIV7B.js → global-commission-edit-TRSS5JBH.js} +1 -3
- package/dist/index.d.ts +6 -2
- package/dist/index.js +199 -171
- package/dist/{inventory-create-66YM6FST.js → inventory-create-B3FHGX6A.js} +1 -1
- package/dist/{inventory-detail-RYFIUKTJ.js → inventory-detail-7VEJHRBB.js} +3 -3
- package/dist/{inventory-list-U4W4AP4E.js → inventory-list-IRQUQD4G.js} +2 -2
- package/dist/{inventory-metadata-W6Z6J2Z2.js → inventory-metadata-W2E4KYG3.js} +1 -1
- package/dist/{inventory-stock-A3TSIGMD.js → inventory-stock-D2BNT2UL.js} +4 -4
- package/dist/{location-fulfillment-providers-TMPZH2KQ.js → location-fulfillment-providers-MFM4SHJJ.js} +3 -3
- package/dist/{location-service-zone-create-U77V3ROT.js → location-service-zone-create-O6GYRZEE.js} +2 -2
- package/dist/{location-service-zone-manage-areas-FUUAAIDJ.js → location-service-zone-manage-areas-DBP3P27I.js} +2 -2
- package/dist/{marketplace-add-currencies-KDNMN57C.js → marketplace-add-currencies-IPE5RJF6.js} +1 -1
- package/dist/{marketplace-detail-KBJSCI2N.js → marketplace-detail-IHGJXVZS.js} +2 -2
- package/dist/{marketplace-edit-26PFXTVD.js → marketplace-edit-WG6LMQ2P.js} +1 -1
- package/dist/{marketplace-metadata-VXFQ3JZW.js → marketplace-metadata-STYABOTX.js} +1 -1
- package/dist/{offer-detail-page-D3J547CC.js → offer-detail-page-THKNBFWZ.js} +62 -17
- package/dist/{offer-variant-detail-page-P4CKF442.js → offer-variant-detail-page-NDGPFP6P.js} +2 -2
- package/dist/{offers-7JTHN6FI.js → offers-LYLEYD3A.js} +23 -8
- package/dist/{order-create-claim-CHXOZH2C.js → order-create-claim-Y7ESDXLI.js} +1 -1
- package/dist/{order-create-edit-O4AOAOF7.js → order-create-edit-6L5S7KQM.js} +1 -1
- package/dist/{order-create-exchange-CG3ODKTK.js → order-create-exchange-WHO3K2MW.js} +1 -1
- package/dist/{order-create-return-DDOYLDT7.js → order-create-return-R5WJBQ5W.js} +1 -1
- package/dist/{order-detail-V6AL4RWB.js → order-detail-NYKOH7OO.js} +2 -2
- package/dist/{order-edit-billing-address-KVX4EPM7.js → order-edit-billing-address-BEOKFNLZ.js} +1 -1
- package/dist/{order-list-WHZJ6B4G.js → order-list-EZWCH5YW.js} +4 -4
- package/dist/{order-metadata-L6SCT4MO.js → order-metadata-VQOA3DOL.js} +1 -1
- package/dist/pages/index.d.ts +60 -60
- package/dist/pages/index.js +66 -66
- package/dist/{payout-list-SOWVPSFQ.js → payout-list-3GQJQSVU.js} +2 -2
- package/dist/{price-list-configuration-OTSYJ3AQ.js → price-list-configuration-BLHIGDSV.js} +2 -2
- package/dist/{price-list-create-2422HUBU.js → price-list-create-YHSA7U3L.js} +7 -7
- package/dist/{price-list-detail-CL3FMPVN.js → price-list-detail-3SS3DGRU.js} +6 -6
- package/dist/{price-list-edit-RZQMPHXU.js → price-list-edit-TRRPPI43.js} +19 -6
- package/dist/{price-list-list-A42VGE3L.js → price-list-list-REIHOWWT.js} +2 -2
- package/dist/{price-list-prices-add-OOG6526Y.js → price-list-prices-add-X2GLUD7O.js} +6 -6
- package/dist/{product-add-existing-attributes-DKKPTZMB.js → product-add-existing-attributes-GPAZOIXH.js} +2 -2
- package/dist/{product-create-IX4TOFNU.js → product-create-6FDBZUB4.js} +4 -4
- package/dist/{product-create-attribute-DQ2RMDPZ.js → product-create-attribute-YFIEH7HD.js} +1 -1
- package/dist/{product-create-variant-TBJJ74ZR.js → product-create-variant-4O22DW7M.js} +3 -3
- package/dist/{product-detail-BLZYOXLS.js → product-detail-VORTX3LT.js} +4 -4
- package/dist/{product-edit-attribute-BSPIDAZJ.js → product-edit-attribute-NUJB7M6R.js} +2 -2
- package/dist/{product-list-PLXUL3YW.js → product-list-2WE2JY4F.js} +16 -13
- package/dist/{product-media-TDEPDO3W.js → product-media-LINHO45U.js} +3 -3
- package/dist/{product-metadata-KBT4QGRF.js → product-metadata-LOF6TSJQ.js} +1 -1
- package/dist/{product-organization-HFC44AOV.js → product-organization-ISVMEWQG.js} +1 -1
- package/dist/{product-tag-detail-222RARIO.js → product-tag-detail-2PMM6RG6.js} +7 -7
- package/dist/{product-tag-list-EZ4JUW4U.js → product-tag-list-KBNI6UDN.js} +7 -7
- package/dist/{product-tag-metadata-4EUBENJ6.js → product-tag-metadata-BXC7GMBB.js} +1 -1
- package/dist/{product-type-detail-SSMTOG47.js → product-type-detail-UKJ6RIHU.js} +6 -6
- package/dist/{product-type-list-XTVTT7ZA.js → product-type-list-JN4SKTFE.js} +2 -2
- package/dist/{product-type-metadata-RAVB4BK2.js → product-type-metadata-24JU4JNK.js} +1 -1
- package/dist/{product-variant-edit-QJK2CLID.js → product-variant-edit-MAM2RQ4V.js} +2 -2
- package/dist/{product-variant-metadata-7VHJ4U6L.js → product-variant-metadata-5PUBLPDN.js} +1 -1
- package/dist/{promotion-create-AWZ7YA5T.js → promotion-create-3EDHAI7E.js} +2 -2
- package/dist/{promotion-detail-EEDQ3GQD.js → promotion-detail-PLGDC3A7.js} +3 -3
- package/dist/{promotion-edit-details-APVHD6J4.js → promotion-edit-details-RTLPOQ4H.js} +22 -13
- package/dist/{promotion-list-SXUXYV6R.js → promotion-list-D6HSZKGU.js} +5 -5
- package/dist/{refund-reason-list-OVTNXVLP.js → refund-reason-list-OWXAGHOQ.js} +5 -5
- package/dist/{region-add-countries-IIHNNE76.js → region-add-countries-UO5A42HM.js} +1 -1
- package/dist/{region-create-PHZNUCJR.js → region-create-7NA6RKWS.js} +1 -1
- package/dist/{region-detail-AECQQ62I.js → region-detail-636IAPYK.js} +2 -2
- package/dist/{region-list-IBQW5J3R.js → region-list-GIU6NFI4.js} +2 -2
- package/dist/{region-metadata-3KASKFZ3.js → region-metadata-NRV3L42D.js} +1 -1
- package/dist/{reservation-detail-MAWHNY2H.js → reservation-detail-PWZ3PLC4.js} +2 -2
- package/dist/{reservation-list-IUYMT4U6.js → reservation-list-URKNAFIX.js} +2 -2
- package/dist/{reservation-metadata-ENY4V2ED.js → reservation-metadata-ZFKKAOWG.js} +1 -1
- package/dist/{reset-password-UIDUOHVW.js → reset-password-UDA5ZMTZ.js} +1 -1
- package/dist/{return-reason-list-FRHFRNKK.js → return-reason-list-4ANB2PXX.js} +6 -6
- package/dist/{sales-channel-add-products-ZCUVTJQN.js → sales-channel-add-products-NATZ7L5S.js} +5 -5
- package/dist/{sales-channel-detail-EZVCWMMS.js → sales-channel-detail-VDYOKH35.js} +6 -6
- package/dist/{sales-channel-metadata-RXC4IDD3.js → sales-channel-metadata-5W4OZZYI.js} +1 -1
- package/dist/{shipping-option-type-list-Y43XD2XM.js → shipping-option-type-list-4FML2ZX5.js} +2 -2
- package/dist/{shipping-profile-metadata-HMQZ6LGB.js → shipping-profile-metadata-52ZW757T.js} +1 -1
- package/dist/{shipping-profiles-list-4VHKTKIL.js → shipping-profiles-list-PZQVMKR4.js} +2 -2
- package/dist/{store-address-edit-B4LWVP73.js → store-address-edit-IJ2UW6WC.js} +1 -1
- package/dist/{store-bulk-edit-IXWGUFY2.js → store-bulk-edit-I2J5YYZK.js} +1 -1
- package/dist/{store-create-PL2XGIR5.js → store-create-4UHISWQE.js} +3 -3
- package/dist/{store-details-4DAUF3CD.js → store-details-4D7MSGVL.js} +6 -6
- package/dist/{store-edit-ESFC2UXE.js → store-edit-MQZMWYXY.js} +23 -9
- package/dist/{store-list-KANREHW5.js → store-list-EBAHJOZO.js} +5 -5
- package/dist/{store-member-invite-U4UQS5VC.js → store-member-invite-J2JFDOHX.js} +2 -2
- package/dist/{tax-region-create-4YEJ3HFY.js → tax-region-create-GGDCD2VU.js} +1 -1
- package/dist/{tax-region-metadata-N3QNTXME.js → tax-region-metadata-4P667IOY.js} +1 -1
- package/dist/{tax-region-tax-override-create-JZHOHCXF.js → tax-region-tax-override-create-5PIUENUZ.js} +7 -7
- package/dist/{tax-region-tax-override-edit-SZRD23P4.js → tax-region-tax-override-edit-GBPRPUTS.js} +7 -7
- package/dist/{user-invite-UN6NCCII.js → user-invite-FCWARLW5.js} +1 -1
- package/dist/{user-list-27ZKEJXN.js → user-list-OU6WS25V.js} +2 -2
- package/dist/{user-metadata-BD73LJWB.js → user-metadata-CHHV7S3A.js} +1 -1
- package/package.json +23 -18
- package/dist/chunk-LFKTHNWI.js +0 -83
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InventoryItemGeneralSection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-APAT344J.js";
|
|
4
4
|
import {
|
|
5
5
|
getFormattedCountry
|
|
6
6
|
} from "./chunk-W6Y3PPU5.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
_DataTable,
|
|
25
25
|
useDataTable
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
27
27
|
import {
|
|
28
28
|
useDate
|
|
29
29
|
} from "./chunk-UZWFZMOX.js";
|
|
@@ -59,10 +59,12 @@ import {
|
|
|
59
59
|
// src/pages/inventory/inventory-detail/inventory-detail.tsx
|
|
60
60
|
import { Children } from "react";
|
|
61
61
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
62
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
62
63
|
|
|
63
64
|
// src/pages/inventory/inventory-detail/components/inventory-item-attributes/attributes-section.tsx
|
|
64
65
|
import { Container, Heading } from "@medusajs/ui";
|
|
65
66
|
import { PencilSquare } from "@medusajs/icons";
|
|
67
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
66
68
|
import { useTranslation } from "react-i18next";
|
|
67
69
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
68
70
|
var InventoryItemAttributeSection = ({
|
|
@@ -104,12 +106,21 @@ var InventoryItemAttributeSection = ({
|
|
|
104
106
|
value: getFormattedCountry(inventoryItem.origin_country),
|
|
105
107
|
"data-testid": "inventory-item-country-of-origin-row"
|
|
106
108
|
}
|
|
109
|
+
),
|
|
110
|
+
/* @__PURE__ */ jsx(
|
|
111
|
+
DisplayExtensionZone,
|
|
112
|
+
{
|
|
113
|
+
model: "inventory_item",
|
|
114
|
+
zone: "attributes",
|
|
115
|
+
data: inventoryItem
|
|
116
|
+
}
|
|
107
117
|
)
|
|
108
118
|
] });
|
|
109
119
|
};
|
|
110
120
|
|
|
111
121
|
// src/pages/inventory/inventory-detail/components/inventory-item-location-levels.tsx
|
|
112
122
|
import { Button, Container as Container2, Heading as Heading2 } from "@medusajs/ui";
|
|
123
|
+
import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
|
|
113
124
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
114
125
|
import { Link } from "react-router-dom";
|
|
115
126
|
|
|
@@ -340,7 +351,15 @@ var InventoryItemLocationLevelsSection = ({
|
|
|
340
351
|
]
|
|
341
352
|
}
|
|
342
353
|
),
|
|
343
|
-
/* @__PURE__ */ jsx4(ItemLocationListTable, { inventory_item_id: inventoryItem.id })
|
|
354
|
+
/* @__PURE__ */ jsx4(ItemLocationListTable, { inventory_item_id: inventoryItem.id }),
|
|
355
|
+
/* @__PURE__ */ jsx4(
|
|
356
|
+
DisplayExtensionZone2,
|
|
357
|
+
{
|
|
358
|
+
model: "inventory_item",
|
|
359
|
+
zone: "locations",
|
|
360
|
+
data: inventoryItem
|
|
361
|
+
}
|
|
362
|
+
)
|
|
344
363
|
]
|
|
345
364
|
}
|
|
346
365
|
);
|
|
@@ -348,6 +367,7 @@ var InventoryItemLocationLevelsSection = ({
|
|
|
348
367
|
|
|
349
368
|
// src/pages/inventory/inventory-detail/components/inventory-item-reservations.tsx
|
|
350
369
|
import { Button as Button2, Container as Container3, Heading as Heading3 } from "@medusajs/ui";
|
|
370
|
+
import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
|
|
351
371
|
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
352
372
|
import { Link as Link2 } from "react-router-dom";
|
|
353
373
|
|
|
@@ -591,13 +611,22 @@ var InventoryItemReservationsSection = ({
|
|
|
591
611
|
/* @__PURE__ */ jsx9(Heading3, { "data-testid": "inventory-item-reservations-title", children: t("reservations.domain") }),
|
|
592
612
|
/* @__PURE__ */ jsx9(Button2, { size: "small", variant: "secondary", asChild: true, "data-testid": "inventory-create-reservation-button", children: /* @__PURE__ */ jsx9(Link2, { to: `/reservations/create?item_id=${inventoryItem.id}`, "data-testid": "inventory-create-reservation-link", children: t("actions.create") }) })
|
|
593
613
|
] }),
|
|
594
|
-
/* @__PURE__ */ jsx9(ReservationItemTable, { inventoryItem })
|
|
614
|
+
/* @__PURE__ */ jsx9(ReservationItemTable, { inventoryItem }),
|
|
615
|
+
/* @__PURE__ */ jsx9(
|
|
616
|
+
DisplayExtensionZone3,
|
|
617
|
+
{
|
|
618
|
+
model: "inventory_item",
|
|
619
|
+
zone: "reservations",
|
|
620
|
+
data: inventoryItem
|
|
621
|
+
}
|
|
622
|
+
)
|
|
595
623
|
] });
|
|
596
624
|
};
|
|
597
625
|
|
|
598
626
|
// src/pages/inventory/inventory-detail/components/inventory-item-variants/variants-section.tsx
|
|
599
627
|
import { TriangleRightMini } from "@medusajs/icons";
|
|
600
628
|
import { Container as Container4, Heading as Heading4 } from "@medusajs/ui";
|
|
629
|
+
import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
|
|
601
630
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
602
631
|
import { Link as Link3 } from "react-router-dom";
|
|
603
632
|
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
@@ -633,7 +662,15 @@ var InventoryItemVariantsSection = ({
|
|
|
633
662
|
},
|
|
634
663
|
variant.id
|
|
635
664
|
);
|
|
636
|
-
}) })
|
|
665
|
+
}) }),
|
|
666
|
+
/* @__PURE__ */ jsx10(
|
|
667
|
+
DisplayExtensionZone4,
|
|
668
|
+
{
|
|
669
|
+
model: "inventory_item",
|
|
670
|
+
zone: "variants",
|
|
671
|
+
data: variants
|
|
672
|
+
}
|
|
673
|
+
)
|
|
637
674
|
] });
|
|
638
675
|
};
|
|
639
676
|
|
|
@@ -674,7 +711,7 @@ var Root = ({ children }) => {
|
|
|
674
711
|
throw error;
|
|
675
712
|
}
|
|
676
713
|
return Children.count(children) > 0 ? /* @__PURE__ */ jsx11(TwoColumnPage, { data: inventory_item, showJSON: true, showMetadata: true, "data-testid": "inventory-detail-page", children }) : /* @__PURE__ */ jsxs5(TwoColumnPage, { data: inventory_item, showJSON: true, showMetadata: true, "data-testid": "inventory-detail-page", children: [
|
|
677
|
-
/* @__PURE__ */
|
|
714
|
+
/* @__PURE__ */ jsx11(TwoColumnPage.Main, { "data-testid": "inventory-detail-main", children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "inventory.detail.main", data: inventory_item, children: [
|
|
678
715
|
/* @__PURE__ */ jsx11(InventoryItemGeneralSection, { inventoryItem: inventory_item }),
|
|
679
716
|
/* @__PURE__ */ jsx11(
|
|
680
717
|
InventoryItemLocationLevelsSection,
|
|
@@ -683,8 +720,8 @@ var Root = ({ children }) => {
|
|
|
683
720
|
}
|
|
684
721
|
),
|
|
685
722
|
/* @__PURE__ */ jsx11(InventoryItemReservationsSection, { inventoryItem: inventory_item })
|
|
686
|
-
] }),
|
|
687
|
-
/* @__PURE__ */
|
|
723
|
+
] }) }),
|
|
724
|
+
/* @__PURE__ */ jsx11(TwoColumnPage.Sidebar, { "data-testid": "inventory-detail-sidebar", children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "inventory.detail.side", data: inventory_item, children: [
|
|
688
725
|
inventory_item.variants && inventory_item.variants?.length > 0 && /* @__PURE__ */ jsx11(
|
|
689
726
|
InventoryItemVariantsSection,
|
|
690
727
|
{
|
|
@@ -692,7 +729,7 @@ var Root = ({ children }) => {
|
|
|
692
729
|
}
|
|
693
730
|
),
|
|
694
731
|
/* @__PURE__ */ jsx11(InventoryItemAttributeSection, { inventoryItem: inventory_item })
|
|
695
|
-
] })
|
|
732
|
+
] }) })
|
|
696
733
|
] });
|
|
697
734
|
};
|
|
698
735
|
var InventoryDetailPage = Object.assign(Root, {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
CategoryHeader,
|
|
7
7
|
ProductStatusCell,
|
|
8
8
|
ProductStatusHeader
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RMB7MPIT.js";
|
|
10
10
|
import {
|
|
11
11
|
ProductCell,
|
|
12
12
|
ProductHeader
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-THHRRYRS.js";
|
|
20
20
|
import {
|
|
21
21
|
require_dist
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VYSB4CTB.js";
|
|
23
23
|
import {
|
|
24
24
|
useProductTags
|
|
25
25
|
} from "./chunk-ABS7HMLY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AttributeValueInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DJD3MWED.js";
|
|
4
4
|
import {
|
|
5
5
|
TabbedForm,
|
|
6
6
|
defineTabMeta,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-6BAPAIQM.js";
|
|
19
19
|
import {
|
|
20
20
|
require_dist
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VYSB4CTB.js";
|
|
22
22
|
import {
|
|
23
23
|
useCreateProductVariant,
|
|
24
24
|
useProduct
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-KOURHC2N.js";
|
|
4
4
|
import {
|
|
5
5
|
useSellersTableQuery
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-COOOOQ2N.js";
|
|
7
7
|
import {
|
|
8
8
|
DateCell
|
|
9
9
|
} from "./chunk-25LYVP3C.js";
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
17
17
|
import {
|
|
18
18
|
SingleColumnPage
|
|
19
19
|
} from "./chunk-H6MYB7GB.js";
|
|
20
20
|
import {
|
|
21
21
|
require_dist
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VYSB4CTB.js";
|
|
23
23
|
import {
|
|
24
24
|
useSellers
|
|
25
25
|
} from "./chunk-BILFRATX.js";
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
|
|
33
33
|
// src/pages/stores/store-list/store-list.tsx
|
|
34
34
|
import { Children as Children3 } from "react";
|
|
35
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
35
36
|
|
|
36
37
|
// src/pages/stores/store-list/components/store-list-table/store-list-table.tsx
|
|
37
38
|
import { Children as Children2 } from "react";
|
|
@@ -44,7 +45,8 @@ import { useTranslation } from "react-i18next";
|
|
|
44
45
|
import { Link } from "react-router-dom";
|
|
45
46
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
46
47
|
var StoreListTitle = () => {
|
|
47
|
-
|
|
48
|
+
const { t } = useTranslation();
|
|
49
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Heading, { level: "h2", children: t("stores.domain") }) });
|
|
48
50
|
};
|
|
49
51
|
var StoreListActions = ({
|
|
50
52
|
children
|
|
@@ -68,7 +70,10 @@ import { useNavigate } from "react-router-dom";
|
|
|
68
70
|
import { Checkbox } from "@medusajs/ui";
|
|
69
71
|
import { PencilSquare } from "@medusajs/icons";
|
|
70
72
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
71
|
-
import {
|
|
73
|
+
import {
|
|
74
|
+
createColumnHelper as createColumnHelper2
|
|
75
|
+
} from "@tanstack/react-table";
|
|
76
|
+
import { useExtendableTable } from "@mercurjs/dashboard-shared";
|
|
72
77
|
|
|
73
78
|
// src/hooks/table/columns/use-seller-table-columns.tsx
|
|
74
79
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
@@ -154,8 +159,12 @@ var StoreListDataTable = () => {
|
|
|
154
159
|
placeholderData: keepPreviousData
|
|
155
160
|
}
|
|
156
161
|
);
|
|
157
|
-
const columns = useColumns();
|
|
158
|
-
const
|
|
162
|
+
const { columns, filters: extFilters } = useColumns();
|
|
163
|
+
const baseFilters = useSellerTableFilters();
|
|
164
|
+
const filters = useMemo2(
|
|
165
|
+
() => [...baseFilters, ...extFilters],
|
|
166
|
+
[baseFilters, extFilters]
|
|
167
|
+
);
|
|
159
168
|
const { table } = useDataTable({
|
|
160
169
|
data: sellers ?? [],
|
|
161
170
|
columns,
|
|
@@ -223,40 +232,48 @@ var StoreActions = ({ seller }) => {
|
|
|
223
232
|
};
|
|
224
233
|
var useColumns = () => {
|
|
225
234
|
const base = useSellersTableColumns();
|
|
226
|
-
|
|
227
|
-
() =>
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
e.stopPropagation();
|
|
247
|
-
}
|
|
235
|
+
const selectColumn = useMemo2(
|
|
236
|
+
() => columnHelper2.display({
|
|
237
|
+
id: "select",
|
|
238
|
+
header: ({ table }) => {
|
|
239
|
+
return /* @__PURE__ */ jsx4(
|
|
240
|
+
Checkbox,
|
|
241
|
+
{
|
|
242
|
+
checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
|
|
243
|
+
onCheckedChange: (value) => table.toggleAllPageRowsSelected(!!value)
|
|
244
|
+
}
|
|
245
|
+
);
|
|
246
|
+
},
|
|
247
|
+
cell: ({ row }) => {
|
|
248
|
+
return /* @__PURE__ */ jsx4(
|
|
249
|
+
Checkbox,
|
|
250
|
+
{
|
|
251
|
+
checked: row.getIsSelected(),
|
|
252
|
+
onCheckedChange: (value) => row.toggleSelected(!!value),
|
|
253
|
+
onClick: (e) => {
|
|
254
|
+
e.stopPropagation();
|
|
248
255
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
256
|
+
}
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
}),
|
|
260
|
+
[]
|
|
261
|
+
);
|
|
262
|
+
const { columns: extended, filters } = useExtendableTable({
|
|
263
|
+
model: "store",
|
|
264
|
+
columns: [selectColumn, ...base]
|
|
265
|
+
});
|
|
266
|
+
const columns = useMemo2(
|
|
267
|
+
() => [
|
|
268
|
+
...extended,
|
|
253
269
|
columnHelper2.display({
|
|
254
270
|
id: "actions",
|
|
255
271
|
cell: ({ row }) => /* @__PURE__ */ jsx4(StoreActions, { seller: row.original })
|
|
256
272
|
})
|
|
257
273
|
],
|
|
258
|
-
[
|
|
274
|
+
[extended]
|
|
259
275
|
);
|
|
276
|
+
return { columns, filters };
|
|
260
277
|
};
|
|
261
278
|
|
|
262
279
|
// src/pages/stores/store-list/components/store-list-table/store-list-table.tsx
|
|
@@ -271,7 +288,7 @@ var StoreListTable = ({ children }) => {
|
|
|
271
288
|
// src/pages/stores/store-list/store-list.tsx
|
|
272
289
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
273
290
|
var Root = ({ children }) => {
|
|
274
|
-
return /* @__PURE__ */ jsx6(SingleColumnPage, { hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx6(StoreListTable, {}) });
|
|
291
|
+
return /* @__PURE__ */ jsx6(SingleColumnPage, { hasOutlet: true, children: /* @__PURE__ */ jsx6(WidgetZone, { id: "stores.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx6(StoreListTable, {}) }) });
|
|
275
292
|
};
|
|
276
293
|
var StoreListPage = Object.assign(Root, {
|
|
277
294
|
Table: StoreListTable,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProductMediaSection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F3F4JC7E.js";
|
|
4
4
|
import {
|
|
5
5
|
SectionRow
|
|
6
6
|
} from "./chunk-3XPXUIK3.js";
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
_DataTable,
|
|
18
18
|
useDataTable
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
20
20
|
import {
|
|
21
21
|
useQueryParams
|
|
22
22
|
} from "./chunk-THHRRYRS.js";
|
|
23
23
|
import {
|
|
24
24
|
require_dist
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VYSB4CTB.js";
|
|
26
26
|
import {
|
|
27
27
|
useSeller
|
|
28
28
|
} from "./chunk-BILFRATX.js";
|
|
@@ -55,6 +55,7 @@ import {
|
|
|
55
55
|
// src/pages/products/product-detail/product-detail.tsx
|
|
56
56
|
import { Children } from "react";
|
|
57
57
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
58
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
58
59
|
|
|
59
60
|
// src/pages/products/product-detail/components/product-active-edit-section/product-active-edit-section.tsx
|
|
60
61
|
var import_types = __toESM(require_dist(), 1);
|
|
@@ -306,6 +307,7 @@ import { useState as useState3 } from "react";
|
|
|
306
307
|
import { Button as Button2, Container, Heading, Text as Text2, toast as toast2 } from "@medusajs/ui";
|
|
307
308
|
import { ExclamationCircleSolid } from "@medusajs/icons";
|
|
308
309
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
310
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
309
311
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
310
312
|
var ProductActiveRequestSection = ({
|
|
311
313
|
product
|
|
@@ -451,7 +453,8 @@ var ProductActiveRequestSection = ({
|
|
|
451
453
|
isLoading: isRejecting,
|
|
452
454
|
onConfirm: handleReject
|
|
453
455
|
}
|
|
454
|
-
)
|
|
456
|
+
),
|
|
457
|
+
/* @__PURE__ */ jsx3(DisplayExtensionZone, { model: "product", zone: "request", data: product })
|
|
455
458
|
]
|
|
456
459
|
}
|
|
457
460
|
);
|
|
@@ -476,6 +479,7 @@ import {
|
|
|
476
479
|
usePrompt
|
|
477
480
|
} from "@medusajs/ui";
|
|
478
481
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
482
|
+
import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
|
|
479
483
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
480
484
|
var AttributeActions = ({
|
|
481
485
|
productId,
|
|
@@ -655,7 +659,8 @@ var ProductAttributeSection = ({
|
|
|
655
659
|
attributes: infoAttributes,
|
|
656
660
|
productId: product.id
|
|
657
661
|
}
|
|
658
|
-
)
|
|
662
|
+
),
|
|
663
|
+
/* @__PURE__ */ jsx4(DisplayExtensionZone2, { model: "product", zone: "attributes", data: product })
|
|
659
664
|
] });
|
|
660
665
|
};
|
|
661
666
|
|
|
@@ -664,7 +669,16 @@ import { PencilSquare as PencilSquare2, Trash as Trash2 } from "@medusajs/icons"
|
|
|
664
669
|
import { Container as Container3, Heading as Heading3, StatusBadge, usePrompt as usePrompt2 } from "@medusajs/ui";
|
|
665
670
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
666
671
|
import { useNavigate } from "react-router-dom";
|
|
672
|
+
import { DisplayExtensionZone as DisplayExtensionZone3, DisplayField } from "@mercurjs/dashboard-shared";
|
|
667
673
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
674
|
+
var GENERAL_FIELD_IDS = [
|
|
675
|
+
"title",
|
|
676
|
+
"status",
|
|
677
|
+
"description",
|
|
678
|
+
"subtitle",
|
|
679
|
+
"handle",
|
|
680
|
+
"discountable"
|
|
681
|
+
];
|
|
668
682
|
var productStatusColor = (status) => {
|
|
669
683
|
switch (status) {
|
|
670
684
|
case "draft":
|
|
@@ -711,7 +725,7 @@ var ProductGeneralSection = ({
|
|
|
711
725
|
className: "flex items-center justify-between px-6 py-4",
|
|
712
726
|
"data-testid": "product-general-header",
|
|
713
727
|
children: [
|
|
714
|
-
/* @__PURE__ */ jsx5(Heading3, { "data-testid": "product-general-title", children: product.title }),
|
|
728
|
+
/* @__PURE__ */ jsx5(DisplayField, { model: "product", zone: "general", id: "title", data: product, children: /* @__PURE__ */ jsx5(Heading3, { "data-testid": "product-general-title", children: product.title }) }),
|
|
715
729
|
/* @__PURE__ */ jsxs5(
|
|
716
730
|
"div",
|
|
717
731
|
{
|
|
@@ -719,11 +733,20 @@ var ProductGeneralSection = ({
|
|
|
719
733
|
"data-testid": "product-general-actions",
|
|
720
734
|
children: [
|
|
721
735
|
/* @__PURE__ */ jsx5(
|
|
722
|
-
|
|
736
|
+
DisplayField,
|
|
723
737
|
{
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
738
|
+
model: "product",
|
|
739
|
+
zone: "general",
|
|
740
|
+
id: "status",
|
|
741
|
+
data: product,
|
|
742
|
+
children: /* @__PURE__ */ jsx5(
|
|
743
|
+
StatusBadge,
|
|
744
|
+
{
|
|
745
|
+
color: productStatusColor(product.status),
|
|
746
|
+
"data-testid": "product-status-badge",
|
|
747
|
+
children: t(`products.productStatus.${product.status}`)
|
|
748
|
+
}
|
|
749
|
+
)
|
|
727
750
|
}
|
|
728
751
|
),
|
|
729
752
|
/* @__PURE__ */ jsx5(
|
|
@@ -758,36 +781,54 @@ var ProductGeneralSection = ({
|
|
|
758
781
|
]
|
|
759
782
|
}
|
|
760
783
|
),
|
|
761
|
-
/* @__PURE__ */ jsx5(
|
|
784
|
+
/* @__PURE__ */ jsx5(DisplayField, { model: "product", zone: "general", id: "description", data: product, children: /* @__PURE__ */ jsx5(
|
|
762
785
|
SectionRow,
|
|
763
786
|
{
|
|
764
787
|
title: t("fields.description"),
|
|
765
788
|
value: product.description,
|
|
766
789
|
"data-testid": "product-description-row"
|
|
767
790
|
}
|
|
768
|
-
),
|
|
769
|
-
/* @__PURE__ */ jsx5(
|
|
791
|
+
) }),
|
|
792
|
+
/* @__PURE__ */ jsx5(DisplayField, { model: "product", zone: "general", id: "subtitle", data: product, children: /* @__PURE__ */ jsx5(
|
|
770
793
|
SectionRow,
|
|
771
794
|
{
|
|
772
795
|
title: t("fields.subtitle"),
|
|
773
796
|
value: product.subtitle,
|
|
774
797
|
"data-testid": "product-subtitle-row"
|
|
775
798
|
}
|
|
776
|
-
),
|
|
777
|
-
/* @__PURE__ */ jsx5(
|
|
799
|
+
) }),
|
|
800
|
+
/* @__PURE__ */ jsx5(DisplayField, { model: "product", zone: "general", id: "handle", data: product, children: /* @__PURE__ */ jsx5(
|
|
778
801
|
SectionRow,
|
|
779
802
|
{
|
|
780
803
|
title: t("fields.handle"),
|
|
781
804
|
value: `/${product.handle}`,
|
|
782
805
|
"data-testid": "product-handle-row"
|
|
783
806
|
}
|
|
807
|
+
) }),
|
|
808
|
+
/* @__PURE__ */ jsx5(
|
|
809
|
+
DisplayField,
|
|
810
|
+
{
|
|
811
|
+
model: "product",
|
|
812
|
+
zone: "general",
|
|
813
|
+
id: "discountable",
|
|
814
|
+
data: product,
|
|
815
|
+
children: /* @__PURE__ */ jsx5(
|
|
816
|
+
SectionRow,
|
|
817
|
+
{
|
|
818
|
+
title: t("fields.discountable"),
|
|
819
|
+
value: product.discountable ? t("fields.true") : t("fields.false"),
|
|
820
|
+
"data-testid": "product-discountable-row"
|
|
821
|
+
}
|
|
822
|
+
)
|
|
823
|
+
}
|
|
784
824
|
),
|
|
785
825
|
/* @__PURE__ */ jsx5(
|
|
786
|
-
|
|
826
|
+
DisplayExtensionZone3,
|
|
787
827
|
{
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
828
|
+
model: "product",
|
|
829
|
+
zone: "general",
|
|
830
|
+
data: product,
|
|
831
|
+
builtInFieldIds: GENERAL_FIELD_IDS
|
|
791
832
|
}
|
|
792
833
|
)
|
|
793
834
|
] });
|
|
@@ -798,6 +839,7 @@ import { PencilSquare as PencilSquare3 } from "@medusajs/icons";
|
|
|
798
839
|
import { Badge as Badge2, Container as Container4, Heading as Heading4, Tooltip as Tooltip2 } from "@medusajs/ui";
|
|
799
840
|
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
800
841
|
import { Link } from "react-router-dom";
|
|
842
|
+
import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
|
|
801
843
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
802
844
|
var ProductOrganizationSection = ({
|
|
803
845
|
product
|
|
@@ -893,7 +935,8 @@ var ProductOrganizationSection = ({
|
|
|
893
935
|
) : void 0,
|
|
894
936
|
"data-testid": "product-type-row"
|
|
895
937
|
}
|
|
896
|
-
)
|
|
938
|
+
),
|
|
939
|
+
/* @__PURE__ */ jsx6(DisplayExtensionZone4, { model: "product", zone: "organize", data: product })
|
|
897
940
|
]
|
|
898
941
|
}
|
|
899
942
|
);
|
|
@@ -912,6 +955,7 @@ var OrganizationTag = ({ label, to }) => {
|
|
|
912
955
|
// src/pages/products/product-detail/components/product-variant-section/product-variant-section.tsx
|
|
913
956
|
import { useCallback, useMemo } from "react";
|
|
914
957
|
import { PencilSquare as PencilSquare4, Trash as Trash3 } from "@medusajs/icons";
|
|
958
|
+
import { DisplayExtensionZone as DisplayExtensionZone5 } from "@mercurjs/dashboard-shared";
|
|
915
959
|
import {
|
|
916
960
|
Badge as Badge3,
|
|
917
961
|
Button as Button3,
|
|
@@ -999,7 +1043,8 @@ var ProductVariantSection = ({
|
|
|
999
1043
|
message: t("products.variants.empty.description")
|
|
1000
1044
|
}
|
|
1001
1045
|
}
|
|
1002
|
-
)
|
|
1046
|
+
),
|
|
1047
|
+
/* @__PURE__ */ jsx7(DisplayExtensionZone5, { model: "product", zone: "variants", data: product })
|
|
1003
1048
|
] });
|
|
1004
1049
|
};
|
|
1005
1050
|
var columnHelper = createColumnHelper();
|
|
@@ -1206,17 +1251,17 @@ var Root = ({ children }) => {
|
|
|
1206
1251
|
showMetadata: true,
|
|
1207
1252
|
"data-testid": "product-detail-page",
|
|
1208
1253
|
children: [
|
|
1209
|
-
/* @__PURE__ */
|
|
1254
|
+
/* @__PURE__ */ jsx8(TwoColumnPage.Main, { "data-testid": "product-detail-main", children: /* @__PURE__ */ jsxs8(WidgetZone, { id: "product.detail.main", data: product, children: [
|
|
1210
1255
|
/* @__PURE__ */ jsx8(ProductActiveRequestSection, { product }),
|
|
1211
1256
|
/* @__PURE__ */ jsx8(ProductActiveEditSection, { product }),
|
|
1212
1257
|
/* @__PURE__ */ jsx8(ProductGeneralSection, { product }),
|
|
1213
1258
|
/* @__PURE__ */ jsx8(ProductMediaSection, { product }),
|
|
1214
1259
|
/* @__PURE__ */ jsx8(ProductVariantSection, { product })
|
|
1215
|
-
] }),
|
|
1216
|
-
/* @__PURE__ */
|
|
1260
|
+
] }) }),
|
|
1261
|
+
/* @__PURE__ */ jsx8(TwoColumnPage.Sidebar, { "data-testid": "product-detail-sidebar", children: /* @__PURE__ */ jsxs8(WidgetZone, { id: "product.detail.side", data: product, children: [
|
|
1217
1262
|
/* @__PURE__ */ jsx8(ProductOrganizationSection, { product }),
|
|
1218
1263
|
/* @__PURE__ */ jsx8(ProductAttributeSection, { product })
|
|
1219
|
-
] })
|
|
1264
|
+
] }) })
|
|
1220
1265
|
]
|
|
1221
1266
|
}
|
|
1222
1267
|
);
|
|
@@ -734,7 +734,7 @@ var SelectFilter = ({
|
|
|
734
734
|
value: search,
|
|
735
735
|
onValueChange: setSearch,
|
|
736
736
|
className: "txt-compact-small placeholder:text-ui-fg-muted bg-transparent outline-none",
|
|
737
|
-
placeholder: "
|
|
737
|
+
placeholder: t2("general.search")
|
|
738
738
|
}
|
|
739
739
|
),
|
|
740
740
|
/* @__PURE__ */ jsx4("div", { className: "flex h-5 w-5 items-center justify-center", children: /* @__PURE__ */ jsx4(
|