@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
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
_DataTable,
|
|
9
9
|
useDataTable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
11
11
|
import {
|
|
12
12
|
SingleColumnPage
|
|
13
13
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
|
|
25
25
|
// src/pages/customer-groups/customer-group-list/customer-group-list.tsx
|
|
26
26
|
import { Children as Children2 } from "react";
|
|
27
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
27
28
|
|
|
28
29
|
// src/pages/customer-groups/customer-group-list/components/customer-group-list-table/customer-group-list-table.tsx
|
|
29
30
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -34,6 +35,7 @@ import {
|
|
|
34
35
|
toast,
|
|
35
36
|
usePrompt
|
|
36
37
|
} from "@medusajs/ui";
|
|
38
|
+
import { useExtendableTable } from "@mercurjs/dashboard-shared";
|
|
37
39
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
38
40
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
39
41
|
import { Children, useCallback, useMemo } from "react";
|
|
@@ -77,8 +79,12 @@ var CustomerGroupListDataTable = () => {
|
|
|
77
79
|
placeholderData: keepPreviousData
|
|
78
80
|
}
|
|
79
81
|
);
|
|
80
|
-
const
|
|
81
|
-
const columns = useColumns();
|
|
82
|
+
const baseFilters = useCustomerGroupTableFilters();
|
|
83
|
+
const { columns, filters: extFilters } = useColumns();
|
|
84
|
+
const filters = useMemo(
|
|
85
|
+
() => [...baseFilters, ...extFilters],
|
|
86
|
+
[baseFilters, extFilters]
|
|
87
|
+
);
|
|
82
88
|
const { table } = useDataTable({
|
|
83
89
|
data: customer_groups ?? [],
|
|
84
90
|
columns,
|
|
@@ -190,7 +196,7 @@ var columnHelper = createColumnHelper();
|
|
|
190
196
|
var useColumns = () => {
|
|
191
197
|
const { t } = useTranslation();
|
|
192
198
|
const { getFullDate } = useDate();
|
|
193
|
-
|
|
199
|
+
const base = useMemo(
|
|
194
200
|
() => [
|
|
195
201
|
columnHelper.accessor("name", {
|
|
196
202
|
header: t("fields.name")
|
|
@@ -226,20 +232,31 @@ var useColumns = () => {
|
|
|
226
232
|
includeTime: true
|
|
227
233
|
}) });
|
|
228
234
|
}
|
|
229
|
-
})
|
|
235
|
+
})
|
|
236
|
+
],
|
|
237
|
+
[t, getFullDate]
|
|
238
|
+
);
|
|
239
|
+
const { columns: extended, filters } = useExtendableTable({
|
|
240
|
+
model: "customer_group",
|
|
241
|
+
columns: base
|
|
242
|
+
});
|
|
243
|
+
const columns = useMemo(
|
|
244
|
+
() => [
|
|
245
|
+
...extended,
|
|
230
246
|
columnHelper.display({
|
|
231
247
|
id: "actions",
|
|
232
248
|
cell: ({ row }) => /* @__PURE__ */ jsx(CustomerGroupActions, { group: row.original })
|
|
233
249
|
})
|
|
234
250
|
],
|
|
235
|
-
[
|
|
251
|
+
[extended]
|
|
236
252
|
);
|
|
253
|
+
return { columns, filters };
|
|
237
254
|
};
|
|
238
255
|
|
|
239
256
|
// src/pages/customer-groups/customer-group-list/customer-group-list.tsx
|
|
240
257
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
241
258
|
var Root = ({ children }) => {
|
|
242
|
-
return /* @__PURE__ */ jsx2(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(CustomerGroupListTable, {}) });
|
|
259
|
+
return /* @__PURE__ */ jsx2(SingleColumnPage, { children: /* @__PURE__ */ jsx2(WidgetZone, { id: "customer-groups.list", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(CustomerGroupListTable, {}) }) });
|
|
243
260
|
};
|
|
244
261
|
var CustomerGroupListPage = Object.assign(Root, {
|
|
245
262
|
Table: CustomerGroupListTable,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
useOfferTableCommands,
|
|
10
10
|
useOfferTableFilters,
|
|
11
11
|
useOfferTableQuery
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4RLXMDIJ.js";
|
|
13
13
|
import {
|
|
14
14
|
useOrderTableFilters
|
|
15
15
|
} from "./chunk-4BCUGMOR.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-IZDTQFCP.js";
|
|
19
19
|
import {
|
|
20
20
|
useMemberTableQuery
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-COOOOQ2N.js";
|
|
22
22
|
import {
|
|
23
23
|
useOrderTableQuery
|
|
24
24
|
} from "./chunk-QUHSHIAC.js";
|
|
@@ -37,13 +37,13 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
_DataTable,
|
|
39
39
|
useDataTable
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
41
41
|
import {
|
|
42
42
|
NoRecords
|
|
43
43
|
} from "./chunk-PAYQJPGK.js";
|
|
44
44
|
import {
|
|
45
45
|
require_dist
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-VYSB4CTB.js";
|
|
47
47
|
import {
|
|
48
48
|
useOrders
|
|
49
49
|
} from "./chunk-WF3ZDT5Z.js";
|
|
@@ -71,12 +71,14 @@ import {
|
|
|
71
71
|
import { Children as Children3, useState as useState3 } from "react";
|
|
72
72
|
import { useParams } from "react-router-dom";
|
|
73
73
|
import { useTranslation as useTranslation12 } from "react-i18next";
|
|
74
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
74
75
|
var import_types3 = __toESM(require_dist(), 1);
|
|
75
76
|
|
|
76
77
|
// src/pages/stores/store-details/components/store-general-section.tsx
|
|
77
78
|
import { Children as Children2 } from "react";
|
|
78
79
|
import { Badge, Container, Text } from "@medusajs/ui";
|
|
79
80
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
81
|
+
import { DisplayExtensionZone, DisplayField } from "@mercurjs/dashboard-shared";
|
|
80
82
|
|
|
81
83
|
// src/pages/stores/store-details/components/store-detail-header.tsx
|
|
82
84
|
import { Children } from "react";
|
|
@@ -215,33 +217,49 @@ var StoreGeneralSection = ({
|
|
|
215
217
|
}
|
|
216
218
|
) }) }),
|
|
217
219
|
/* @__PURE__ */ jsx2(StoreDetailHeader, { seller }),
|
|
218
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
220
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "store", zone: "general", id: "description", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
219
221
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.description") }),
|
|
220
222
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.description || "-" })
|
|
221
|
-
] }),
|
|
222
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
223
|
+
] }) }),
|
|
224
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "store", zone: "general", id: "handle", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
223
225
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
|
|
224
226
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.handle ? `/${seller.handle}` : "-" })
|
|
225
|
-
] }),
|
|
226
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
227
|
+
] }) }),
|
|
228
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "store", zone: "general", id: "email", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
227
229
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.email") }),
|
|
228
230
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.email || "-" })
|
|
229
|
-
] }),
|
|
230
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
231
|
+
] }) }),
|
|
232
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "store", zone: "general", id: "phone", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
231
233
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.phone") }),
|
|
232
234
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.phone || "-" })
|
|
233
|
-
] }),
|
|
234
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
235
|
+
] }) }),
|
|
236
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "store", zone: "general", id: "website_url", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
235
237
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.website") }),
|
|
236
238
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.website_url || "-" })
|
|
237
|
-
] }),
|
|
238
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
239
|
+
] }) }),
|
|
240
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "store", zone: "general", id: "currency_code", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
239
241
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.currency") }),
|
|
240
242
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-2", children: [
|
|
241
243
|
/* @__PURE__ */ jsx2(Badge, { size: "2xsmall", children: seller.currency_code?.toUpperCase() }),
|
|
242
244
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: currencies[seller.currency_code?.toUpperCase()]?.name || "-" })
|
|
243
245
|
] })
|
|
244
|
-
] })
|
|
246
|
+
] }) }),
|
|
247
|
+
/* @__PURE__ */ jsx2(
|
|
248
|
+
DisplayExtensionZone,
|
|
249
|
+
{
|
|
250
|
+
model: "store",
|
|
251
|
+
zone: "general",
|
|
252
|
+
data: seller,
|
|
253
|
+
builtInFieldIds: [
|
|
254
|
+
"description",
|
|
255
|
+
"handle",
|
|
256
|
+
"email",
|
|
257
|
+
"phone",
|
|
258
|
+
"website_url",
|
|
259
|
+
"currency_code"
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
)
|
|
245
263
|
] }) });
|
|
246
264
|
};
|
|
247
265
|
|
|
@@ -249,6 +267,7 @@ var StoreGeneralSection = ({
|
|
|
249
267
|
import { CreditCard, PencilSquare as PencilSquare2 } from "@medusajs/icons";
|
|
250
268
|
import { Container as Container2, Heading as Heading2, Text as Text2 } from "@medusajs/ui";
|
|
251
269
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
270
|
+
import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
|
|
252
271
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
253
272
|
var StorePaymentDetailsSection = ({
|
|
254
273
|
seller
|
|
@@ -295,7 +314,8 @@ var StorePaymentDetailsSection = ({
|
|
|
295
314
|
] }) }) }) : /* @__PURE__ */ jsxs3("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
|
|
296
315
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("store.paymentDetails.empty.title") }),
|
|
297
316
|
/* @__PURE__ */ jsx3(Text2, { size: "small", className: "text-ui-fg-muted", children: t("store.paymentDetails.empty.message") })
|
|
298
|
-
] })
|
|
317
|
+
] }),
|
|
318
|
+
/* @__PURE__ */ jsx3(DisplayExtensionZone2, { model: "store", zone: "payment-details", data: seller })
|
|
299
319
|
] });
|
|
300
320
|
};
|
|
301
321
|
|
|
@@ -303,6 +323,7 @@ var StorePaymentDetailsSection = ({
|
|
|
303
323
|
import { Buildings, PencilSquare as PencilSquare3 } from "@medusajs/icons";
|
|
304
324
|
import { Container as Container3, Heading as Heading3, Text as Text3 } from "@medusajs/ui";
|
|
305
325
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
326
|
+
import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
|
|
306
327
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
307
328
|
var StoreCompanyDetailsSection = ({
|
|
308
329
|
seller
|
|
@@ -347,7 +368,8 @@ var StoreCompanyDetailsSection = ({
|
|
|
347
368
|
] }) }) }) : /* @__PURE__ */ jsxs4("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
|
|
348
369
|
/* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", weight: "plus", children: t("store.professionalDetails.empty.title") }),
|
|
349
370
|
/* @__PURE__ */ jsx4(Text3, { size: "small", className: "text-ui-fg-muted", children: t("store.professionalDetails.empty.message") })
|
|
350
|
-
] })
|
|
371
|
+
] }),
|
|
372
|
+
/* @__PURE__ */ jsx4(DisplayExtensionZone3, { model: "store", zone: "company-details", data: seller })
|
|
351
373
|
] });
|
|
352
374
|
};
|
|
353
375
|
|
|
@@ -355,6 +377,7 @@ var StoreCompanyDetailsSection = ({
|
|
|
355
377
|
import { CalendarMini } from "@medusajs/icons";
|
|
356
378
|
import { Container as Container4, Heading as Heading4, Table } from "@medusajs/ui";
|
|
357
379
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
380
|
+
import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
|
|
358
381
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
359
382
|
var StoreConfigurationSection = ({
|
|
360
383
|
seller
|
|
@@ -381,7 +404,8 @@ var StoreConfigurationSection = ({
|
|
|
381
404
|
title: t("store.timeOff.empty.title"),
|
|
382
405
|
message: t("store.timeOff.empty.message")
|
|
383
406
|
}
|
|
384
|
-
)
|
|
407
|
+
),
|
|
408
|
+
/* @__PURE__ */ jsx5(DisplayExtensionZone4, { model: "store", zone: "configuration", data: seller })
|
|
385
409
|
] });
|
|
386
410
|
};
|
|
387
411
|
|
|
@@ -389,6 +413,7 @@ var StoreConfigurationSection = ({
|
|
|
389
413
|
import { BuildingStorefront, PencilSquare as PencilSquare4 } from "@medusajs/icons";
|
|
390
414
|
import { Container as Container5, Heading as Heading5, Text as Text4 } from "@medusajs/ui";
|
|
391
415
|
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
416
|
+
import { DisplayExtensionZone as DisplayExtensionZone5 } from "@mercurjs/dashboard-shared";
|
|
392
417
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
393
418
|
var StoreAddressSection = ({ seller }) => {
|
|
394
419
|
const { t } = useTranslation6();
|
|
@@ -440,7 +465,8 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
440
465
|
] }) }) }) : /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
|
|
441
466
|
/* @__PURE__ */ jsx6(Text4, { size: "small", leading: "compact", weight: "plus", children: t("store.address.empty.title") }),
|
|
442
467
|
/* @__PURE__ */ jsx6(Text4, { size: "small", className: "text-ui-fg-muted", children: t("store.address.empty.message") })
|
|
443
|
-
] })
|
|
468
|
+
] }),
|
|
469
|
+
/* @__PURE__ */ jsx6(DisplayExtensionZone5, { model: "store", zone: "address", data: seller })
|
|
444
470
|
] });
|
|
445
471
|
};
|
|
446
472
|
|
|
@@ -448,6 +474,7 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
448
474
|
import { Button, Container as Container6, Heading as Heading6 } from "@medusajs/ui";
|
|
449
475
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
450
476
|
import { Link } from "react-router-dom";
|
|
477
|
+
import { DisplayExtensionZone as DisplayExtensionZone6 } from "@mercurjs/dashboard-shared";
|
|
451
478
|
|
|
452
479
|
// src/pages/stores/store-details/components/store-members-section/store-members-data-table.tsx
|
|
453
480
|
import { useMemo } from "react";
|
|
@@ -551,7 +578,7 @@ var StoreMembersDataTable = ({
|
|
|
551
578
|
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
552
579
|
],
|
|
553
580
|
noRecords: {
|
|
554
|
-
title: t("stores.emptyStates.users.title"
|
|
581
|
+
title: t("stores.emptyStates.users.title"),
|
|
555
582
|
message: t(
|
|
556
583
|
"stores.emptyStates.users.message",
|
|
557
584
|
"Invite the first user to manage this store."
|
|
@@ -576,7 +603,7 @@ var useColumns = (sellerId) => {
|
|
|
576
603
|
size: "2xsmall",
|
|
577
604
|
color: "grey",
|
|
578
605
|
className: "flex-shrink-0",
|
|
579
|
-
children: t("stores.members.mainAdmin"
|
|
606
|
+
children: t("stores.members.mainAdmin")
|
|
580
607
|
}
|
|
581
608
|
)
|
|
582
609
|
] })
|
|
@@ -734,10 +761,11 @@ var StoreMembersSection = ({ sellerId }) => {
|
|
|
734
761
|
const { t } = useTranslation8();
|
|
735
762
|
return /* @__PURE__ */ jsxs8(Container6, { className: "divide-y p-0", children: [
|
|
736
763
|
/* @__PURE__ */ jsxs8("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
737
|
-
/* @__PURE__ */ jsx8(Heading6, { level: "h2", children: t("users.domain"
|
|
738
|
-
/* @__PURE__ */ jsx8(Link, { to: "invite", children: /* @__PURE__ */ jsx8(Button, { size: "small", variant: "secondary", children: t("stores.members.addUser.action"
|
|
764
|
+
/* @__PURE__ */ jsx8(Heading6, { level: "h2", children: t("users.domain") }),
|
|
765
|
+
/* @__PURE__ */ jsx8(Link, { to: "invite", children: /* @__PURE__ */ jsx8(Button, { size: "small", variant: "secondary", children: t("stores.members.addUser.action") }) })
|
|
739
766
|
] }),
|
|
740
|
-
/* @__PURE__ */ jsx8(StoreMembersDataTable, { sellerId })
|
|
767
|
+
/* @__PURE__ */ jsx8(StoreMembersDataTable, { sellerId }),
|
|
768
|
+
/* @__PURE__ */ jsx8(DisplayExtensionZone6, { model: "store", zone: "members", data: sellerId })
|
|
741
769
|
] });
|
|
742
770
|
};
|
|
743
771
|
|
|
@@ -754,6 +782,7 @@ import {
|
|
|
754
782
|
toast as toast2
|
|
755
783
|
} from "@medusajs/ui";
|
|
756
784
|
import { useTranslation as useTranslation9 } from "react-i18next";
|
|
785
|
+
import { DisplayExtensionZone as DisplayExtensionZone7 } from "@mercurjs/dashboard-shared";
|
|
757
786
|
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
758
787
|
var StoreRequestSection = ({ seller }) => {
|
|
759
788
|
const { t } = useTranslation9();
|
|
@@ -776,7 +805,7 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
776
805
|
RequestActionPrompt,
|
|
777
806
|
{
|
|
778
807
|
trigger: /* @__PURE__ */ jsx9(Button2, { size: "small", variant: "secondary", children: t("stores.request.confirm") }),
|
|
779
|
-
title: t("stores.request.confirmTitle"
|
|
808
|
+
title: t("stores.request.confirmTitle"),
|
|
780
809
|
description: t(
|
|
781
810
|
"stores.request.confirmDescription",
|
|
782
811
|
"You are about to confirm this store request."
|
|
@@ -802,7 +831,7 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
802
831
|
RequestActionPrompt,
|
|
803
832
|
{
|
|
804
833
|
trigger: /* @__PURE__ */ jsx9(Button2, { size: "small", variant: "secondary", children: t("stores.request.reject") }),
|
|
805
|
-
title: t("stores.request.rejectTitle"
|
|
834
|
+
title: t("stores.request.rejectTitle"),
|
|
806
835
|
description: t(
|
|
807
836
|
"stores.request.rejectDescription",
|
|
808
837
|
"You are about to reject this store request."
|
|
@@ -824,7 +853,8 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
824
853
|
}
|
|
825
854
|
}
|
|
826
855
|
)
|
|
827
|
-
] })
|
|
856
|
+
] }),
|
|
857
|
+
/* @__PURE__ */ jsx9(DisplayExtensionZone7, { model: "store", zone: "requests", data: seller })
|
|
828
858
|
] });
|
|
829
859
|
};
|
|
830
860
|
var RequestActionPrompt = ({
|
|
@@ -857,11 +887,11 @@ var RequestActionPrompt = ({
|
|
|
857
887
|
/* @__PURE__ */ jsx9("div", { className: "border-ui-border-base border-t mt-3" }),
|
|
858
888
|
/* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-y-3 px-6 py-3", children: [
|
|
859
889
|
/* @__PURE__ */ jsxs9(Text5, { size: "small", weight: "plus", className: "text-ui-fg-base", children: [
|
|
860
|
-
t("stores.request.noteLabel"
|
|
890
|
+
t("stores.request.noteLabel"),
|
|
861
891
|
" ",
|
|
862
892
|
/* @__PURE__ */ jsxs9("span", { className: "text-ui-fg-muted font-normal", children: [
|
|
863
893
|
"(",
|
|
864
|
-
t("fields.optional"
|
|
894
|
+
t("fields.optional"),
|
|
865
895
|
")"
|
|
866
896
|
] })
|
|
867
897
|
] }),
|
|
@@ -897,6 +927,7 @@ import { ShoppingCart } from "@medusajs/icons";
|
|
|
897
927
|
import { Container as Container8, Heading as Heading8 } from "@medusajs/ui";
|
|
898
928
|
import { keepPreviousData as keepPreviousData2 } from "@tanstack/react-query";
|
|
899
929
|
import { useTranslation as useTranslation10 } from "react-i18next";
|
|
930
|
+
import { DisplayExtensionZone as DisplayExtensionZone8 } from "@mercurjs/dashboard-shared";
|
|
900
931
|
import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
901
932
|
var PAGE_SIZE2 = 10;
|
|
902
933
|
var PREFIX = "store-orders";
|
|
@@ -962,7 +993,7 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
962
993
|
queryObject: raw,
|
|
963
994
|
prefix: PREFIX,
|
|
964
995
|
noRecords: {
|
|
965
|
-
title: t("stores.emptyStates.orders.title"
|
|
996
|
+
title: t("stores.emptyStates.orders.title"),
|
|
966
997
|
message: t(
|
|
967
998
|
"stores.emptyStates.orders.message",
|
|
968
999
|
"Orders placed at this store will appear here."
|
|
@@ -970,7 +1001,8 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
970
1001
|
icon: /* @__PURE__ */ jsx10(ShoppingCart, { className: "text-ui-fg-subtle" })
|
|
971
1002
|
}
|
|
972
1003
|
}
|
|
973
|
-
)
|
|
1004
|
+
),
|
|
1005
|
+
/* @__PURE__ */ jsx10(DisplayExtensionZone8, { model: "store", zone: "orders", data: sellerId })
|
|
974
1006
|
] });
|
|
975
1007
|
};
|
|
976
1008
|
|
|
@@ -980,6 +1012,7 @@ import { Container as Container9, Heading as Heading9 } from "@medusajs/ui";
|
|
|
980
1012
|
import { keepPreviousData as keepPreviousData3 } from "@tanstack/react-query";
|
|
981
1013
|
import { useState as useState2 } from "react";
|
|
982
1014
|
import { useTranslation as useTranslation11 } from "react-i18next";
|
|
1015
|
+
import { DisplayExtensionZone as DisplayExtensionZone9 } from "@mercurjs/dashboard-shared";
|
|
983
1016
|
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
984
1017
|
var PAGE_SIZE3 = 10;
|
|
985
1018
|
var PREFIX2 = "store-offers";
|
|
@@ -1052,7 +1085,8 @@ var StoreOffersSection = ({ sellerId }) => {
|
|
|
1052
1085
|
},
|
|
1053
1086
|
commands
|
|
1054
1087
|
}
|
|
1055
|
-
)
|
|
1088
|
+
),
|
|
1089
|
+
/* @__PURE__ */ jsx11(DisplayExtensionZone9, { model: "store", zone: "offers", data: sellerId })
|
|
1056
1090
|
] });
|
|
1057
1091
|
};
|
|
1058
1092
|
|
|
@@ -1112,7 +1146,7 @@ var Root = ({ children }) => {
|
|
|
1112
1146
|
return /* @__PURE__ */ jsx12(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children });
|
|
1113
1147
|
}
|
|
1114
1148
|
return /* @__PURE__ */ jsxs12(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children: [
|
|
1115
|
-
/* @__PURE__ */
|
|
1149
|
+
/* @__PURE__ */ jsx12(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs12(WidgetZone, { id: "stores.detail.main", data: seller, children: [
|
|
1116
1150
|
seller.status === import_types3.SellerStatus.PENDING_APPROVAL && !seller.approved_at && !seller.rejected_at && /* @__PURE__ */ jsx12(StoreRequestSection, { seller }),
|
|
1117
1151
|
/* @__PURE__ */ jsx12(StoreGeneralSection, { seller }),
|
|
1118
1152
|
/* @__PURE__ */ jsx12(TabBar, { activeTab, onTabChange: setActiveTab }),
|
|
@@ -1152,12 +1186,12 @@ var Root = ({ children }) => {
|
|
|
1152
1186
|
children: /* @__PURE__ */ jsx12(StoreConfigurationSection, { seller })
|
|
1153
1187
|
}
|
|
1154
1188
|
)
|
|
1155
|
-
] }),
|
|
1156
|
-
/* @__PURE__ */
|
|
1189
|
+
] }) }),
|
|
1190
|
+
/* @__PURE__ */ jsx12(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs12(WidgetZone, { id: "stores.detail.side", data: seller, children: [
|
|
1157
1191
|
/* @__PURE__ */ jsx12(StoreAddressSection, { seller }),
|
|
1158
1192
|
/* @__PURE__ */ jsx12(StoreCompanyDetailsSection, { seller }),
|
|
1159
1193
|
/* @__PURE__ */ jsx12(StorePaymentDetailsSection, { seller })
|
|
1160
|
-
] })
|
|
1194
|
+
] }) })
|
|
1161
1195
|
] });
|
|
1162
1196
|
};
|
|
1163
1197
|
var StoreDetailPage = Object.assign(Root, {
|
|
@@ -173,7 +173,7 @@ var Root2 = () => {
|
|
|
173
173
|
name: "description",
|
|
174
174
|
render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "inventory-create-form-description-item", children: [
|
|
175
175
|
/* @__PURE__ */ jsx2(Form.Label, { optional: true, "data-testid": "inventory-create-form-description-label", children: t("products.fields.description.label") }),
|
|
176
|
-
/* @__PURE__ */ jsx2(Form.Control, { "data-testid": "inventory-create-form-description-control", children: /* @__PURE__ */ jsx2(Textarea, { ...field, placeholder: "
|
|
176
|
+
/* @__PURE__ */ jsx2(Form.Control, { "data-testid": "inventory-create-form-description-control", children: /* @__PURE__ */ jsx2(Textarea, { ...field, placeholder: t("inventory.create.descriptionPlaceholder"), "data-testid": "inventory-create-form-description-textarea" }) }),
|
|
177
177
|
/* @__PURE__ */ jsx2(Form.ErrorMessage, { "data-testid": "inventory-create-form-description-error" })
|
|
178
178
|
] })
|
|
179
179
|
}
|
|
@@ -397,6 +397,8 @@ function InventoryCreateForm({
|
|
|
397
397
|
return /* @__PURE__ */ jsx3(
|
|
398
398
|
TabbedForm,
|
|
399
399
|
{
|
|
400
|
+
model: "inventory_item",
|
|
401
|
+
zone: "create",
|
|
400
402
|
form,
|
|
401
403
|
onSubmit: handleSubmit,
|
|
402
404
|
isLoading,
|
|
@@ -36,9 +36,7 @@ var useDeleteCommissionRuleAction = (rule) => {
|
|
|
36
36
|
await mutateAsync(void 0, {
|
|
37
37
|
onSuccess: () => {
|
|
38
38
|
toast.success(
|
|
39
|
-
t("commissions.delete.successToast"
|
|
40
|
-
defaultValue: "Commission rule was successfully deleted."
|
|
41
|
-
})
|
|
39
|
+
t("commissions.delete.successToast")
|
|
42
40
|
);
|
|
43
41
|
navigate("/settings/commissions");
|
|
44
42
|
},
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
_DataTable,
|
|
9
9
|
useDataTable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
11
11
|
import {
|
|
12
12
|
NoRecords
|
|
13
13
|
} from "./chunk-PAYQJPGK.js";
|
|
@@ -211,6 +211,7 @@ var OfferPricingSection = ({ offer }) => {
|
|
|
211
211
|
// src/pages/offers/[id]/_components/offer-store-sidebar.tsx
|
|
212
212
|
import { TriangleRightMini } from "@medusajs/icons";
|
|
213
213
|
import { Avatar, Container as Container3, Heading as Heading3 } from "@medusajs/ui";
|
|
214
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
214
215
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
215
216
|
import { Link } from "react-router-dom";
|
|
216
217
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -268,7 +269,8 @@ var OfferStoreSidebar = ({ seller }) => {
|
|
|
268
269
|
"data-testid": "offer-detail-store-link",
|
|
269
270
|
children: Inner
|
|
270
271
|
}
|
|
271
|
-
) })
|
|
272
|
+
) }),
|
|
273
|
+
/* @__PURE__ */ jsx3(DisplayExtensionZone, { model: "offer", zone: "store", data: seller })
|
|
272
274
|
] });
|
|
273
275
|
};
|
|
274
276
|
|
|
@@ -472,7 +472,7 @@ var RulesFormField = ({
|
|
|
472
472
|
ref,
|
|
473
473
|
className: "bg-ui-bg-base",
|
|
474
474
|
"data-testid": `rules-form-field-rule-${ruleType}-${index}-operator-select-trigger`,
|
|
475
|
-
children: /* @__PURE__ */ jsx2(Select.Value, { placeholder: "
|
|
475
|
+
children: /* @__PURE__ */ jsx2(Select.Value, { placeholder: t("promotions.form.selectOperator") })
|
|
476
476
|
}
|
|
477
477
|
),
|
|
478
478
|
/* @__PURE__ */ jsx2(
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
} from "./chunk-QE4R2KT3.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I5HY5Q3K.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LGOPKYNG.js";
|
|
10
10
|
import {
|
|
11
11
|
useProductTableQuery
|
|
12
12
|
} from "./chunk-H7NIKMPE.js";
|
|
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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteCommissionRuleAction,
|
|
3
3
|
useScopeReferenceNames
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JSVYNNPF.js";
|
|
5
5
|
import {
|
|
6
6
|
formatCommissionValue,
|
|
7
7
|
getIsActiveProps,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
_DataTable,
|
|
23
23
|
useDataTable
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
25
25
|
import {
|
|
26
26
|
SingleColumnPage
|
|
27
27
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RulesFormField
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K7H77TA5.js";
|
|
4
4
|
import {
|
|
5
5
|
CreateCampaignSchema,
|
|
6
6
|
DEFAULT_CAMPAIGN_VALUES
|
|
@@ -683,15 +683,8 @@ var Root2 = ({ currentTemplate }) => {
|
|
|
683
683
|
RadioGroup.ChoiceBox,
|
|
684
684
|
{
|
|
685
685
|
value: "once",
|
|
686
|
-
label: t("promotions.form.allocation.once.title",
|
|
687
|
-
|
|
688
|
-
}),
|
|
689
|
-
description: t(
|
|
690
|
-
"promotions.form.allocation.once.description",
|
|
691
|
-
{
|
|
692
|
-
defaultValue: "Limit discount to max quantity"
|
|
693
|
-
}
|
|
694
|
-
),
|
|
686
|
+
label: t("promotions.form.allocation.once.title"),
|
|
687
|
+
description: t("promotions.form.allocation.once.description"),
|
|
695
688
|
className: clx("basis-1/2"),
|
|
696
689
|
"data-testid": "promotion-create-form-allocation-option-once"
|
|
697
690
|
}
|
|
@@ -1126,6 +1119,8 @@ function CreatePromotionForm({
|
|
|
1126
1119
|
return /* @__PURE__ */ jsx4(
|
|
1127
1120
|
TabbedForm,
|
|
1128
1121
|
{
|
|
1122
|
+
model: "promotion",
|
|
1123
|
+
zone: "create",
|
|
1129
1124
|
form,
|
|
1130
1125
|
onSubmit: handleSubmit,
|
|
1131
1126
|
isLoading,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
decorateVariantsWithDefaultValues,
|
|
11
11
|
generateVariantsFromAttributes,
|
|
12
12
|
normalizeProductFormValues
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WMK3BQPH.js";
|
|
14
14
|
import {
|
|
15
15
|
HandleInput
|
|
16
16
|
} from "./chunk-HJ56YXBU.js";
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
} from "./chunk-3QSRE5LS.js";
|
|
59
59
|
import {
|
|
60
60
|
require_dist
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-VYSB4CTB.js";
|
|
62
62
|
import {
|
|
63
63
|
useProductAttributes
|
|
64
64
|
} from "./chunk-F5NW4XBU.js";
|
|
@@ -2006,6 +2006,8 @@ var ProductCreateForm = ({
|
|
|
2006
2006
|
return /* @__PURE__ */ jsx10(
|
|
2007
2007
|
TabbedForm,
|
|
2008
2008
|
{
|
|
2009
|
+
model: "product",
|
|
2010
|
+
zone: "create",
|
|
2009
2011
|
form,
|
|
2010
2012
|
onSubmit: handleSubmit,
|
|
2011
2013
|
isLoading: isPending || isRegionsPending,
|