@mercurjs/vendor 2.2.0-rc.0 → 2.2.0-rc.1
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/{[id]-5P5LTATX.js → [id]-2LOU4IGP.js} +29 -11
- package/dist/{[id]-DT5YJVKG.js → [id]-6K5OJU5T.js} +18 -17
- package/dist/{[id]-N7JEZFXQ.js → [id]-6RTJXOT5.js} +2 -1
- package/dist/{[id]-XP5KEMNX.js → [id]-7T4JCGCZ.js} +86 -49
- package/dist/{[id]-DCGPICT3.js → [id]-BMW6PEZT.js} +23 -22
- package/dist/{[id]-CUBGVODE.js → [id]-FN47ZDW5.js} +89 -48
- package/dist/{[id]-4HO4S2PX.js → [id]-KTJU7CRX.js} +691 -657
- package/dist/{[id]-3LNKC5OJ.js → [id]-NUH6WK7Y.js} +80 -39
- package/dist/{[id]-AQUUZFRX.js → [id]-RRWUTLTP.js} +141 -43
- package/dist/{[id]-4LIIFGET.js → [id]-TJF2WSOF.js} +139 -50
- package/dist/{[id]-IEBZ6V3W.js → [id]-UWBLKWZI.js} +29 -28
- package/dist/{[id]-5EECCIRP.js → [id]-VWIZD2JL.js} +61 -36
- package/dist/{[id]-U6FKX5UQ.js → [id]-XRSZYRKI.js} +55 -33
- package/dist/{[id]-XB45DY2D.js → [id]-YIP2TDVC.js} +120 -42
- package/dist/{[location_id]-I4HHUHWY.js → [location_id]-TUAKRLYQ.js} +6 -5
- package/dist/{[province_id]-OYX4MOCF.js → [province_id]-6VYYS4DZ.js} +17 -16
- package/dist/{add-RPRJWCYU.js → add-KB477RH5.js} +18 -17
- package/dist/{add-3T4GBFMM.js → add-NSLA2RT7.js} +24 -24
- package/dist/{add-customer-groups-FB5T6PQN.js → add-customer-groups-PB4LCA5E.js} +12 -12
- package/dist/{add-products-F243SWGD.js → add-products-O72MJ3N2.js} +17 -17
- package/dist/{add-promotions-TJDK7HLW.js → add-promotions-6X7N3DTU.js} +6 -6
- package/dist/{add-to-campaign-Q6OAJMUJ.js → add-to-campaign-7WAUGNNI.js} +4 -4
- package/dist/{address-XVBSNMFU.js → address-ZR4EM2QA.js} +28 -16
- package/dist/{adjust-inventory-IZLRMQXV.js → adjust-inventory-P4X6PFKW.js} +1 -1
- package/dist/{allocate-items-Q3VALDYT.js → allocate-items-NSQOU2QJ.js} +2 -2
- package/dist/{areas-IYGBRCRH.js → areas-N4ORDJTD.js} +3 -3
- package/dist/{attributes-LGEM2JJW.js → attributes-DRC3WYY6.js} +1 -1
- package/dist/{breadcrumb-XGXKCDYS.js → breadcrumb-4YT6FRUQ.js} +3 -3
- package/dist/{breadcrumb-H45Z2WNG.js → breadcrumb-BKBSL3PC.js} +3 -3
- package/dist/{breadcrumb-K4HBKZUE.js → breadcrumb-ETWGVI34.js} +2 -2
- package/dist/{breadcrumb-KZPOPXGG.js → breadcrumb-F4N5CPRD.js} +1 -1
- package/dist/{breadcrumb-BXD3SRM7.js → breadcrumb-JGDD7EHO.js} +1 -1
- package/dist/{breadcrumb-VY5DNTTJ.js → breadcrumb-JWDW3P6C.js} +10 -10
- package/dist/{breadcrumb-FEYGZFJU.js → breadcrumb-KKWNLFMC.js} +2 -2
- package/dist/{breadcrumb-WG6TIF4C.js → breadcrumb-PJOTRHG7.js} +4 -2
- package/dist/{breadcrumb-NZYOCEEM.js → breadcrumb-PYLGF3AN.js} +10 -10
- package/dist/{breadcrumb-XEZCMI55.js → breadcrumb-TO45VBVD.js} +1 -1
- package/dist/{breadcrumb-L262VPBO.js → breadcrumb-UEUUMDIY.js} +1 -1
- package/dist/{breadcrumb-ILEAQRW7.js → breadcrumb-VCRGVYJR.js} +10 -10
- package/dist/{breadcrumb-BFNJWOJ4.js → breadcrumb-WWLMQQQF.js} +1 -1
- package/dist/{breadcrumb-BC6XN2SE.js → breadcrumb-Y7N7L7DM.js} +2 -2
- package/dist/{campaigns-DZKRNCA4.js → campaigns-GPLRB2AR.js} +5 -5
- package/dist/{categories-JZJA2IBQ.js → categories-53X36JNS.js} +6 -6
- package/dist/{chunk-JDNXS37G.js → chunk-2INANL6V.js} +2 -2
- package/dist/{chunk-3I6ZAMGN.js → chunk-2P5H7EVR.js} +1 -1
- package/dist/{chunk-ZTOYVPGA.js → chunk-3F4MUPGR.js} +1 -1
- package/dist/chunk-432S4FGR.js +0 -0
- package/dist/{chunk-JY2XON7H.js → chunk-4CNLTLQP.js} +6 -5
- package/dist/{chunk-3SH24DGG.js → chunk-4EAC3GT7.js} +1 -1
- package/dist/{chunk-MVEHWM7K.js → chunk-4NADEZZQ.js} +14 -3
- package/dist/{chunk-HDEOZN2Q.js → chunk-4OQLPIUZ.js} +27 -27
- package/dist/{chunk-MAW6ZT3D.js → chunk-55TS752B.js} +1 -1
- package/dist/{chunk-O7BGGWW6.js → chunk-5NVY7JZC.js} +4 -4
- package/dist/{chunk-MUGQQY6P.js → chunk-5SRG2247.js} +49 -11
- package/dist/{chunk-L57USMYC.js → chunk-5YZ3G5EZ.js} +1 -1
- package/dist/{chunk-G6YNCIVF.js → chunk-744GLNZW.js} +1 -1
- package/dist/{chunk-CUAGC54B.js → chunk-7CQ4RKVV.js} +23 -9
- package/dist/{chunk-WBCWER26.js → chunk-7HLAOLG7.js} +1 -1
- package/dist/{chunk-W3UHAQCV.js → chunk-7TQNE3E2.js} +1 -1
- package/dist/{chunk-7EXKHL5L.js → chunk-7ZNZJIVN.js} +1 -1
- package/dist/{chunk-UNE4VD5U.js → chunk-APWPWXWQ.js} +21 -10
- package/dist/{chunk-EAAZV3B7.js → chunk-BXDN7ZA5.js} +24 -12
- package/dist/{chunk-5PAUN3PM.js → chunk-CLS6PNZY.js} +2 -2
- package/dist/{chunk-MJP5V3JN.js → chunk-COGWTNSC.js} +1 -1
- package/dist/{chunk-RPU4UOQK.js → chunk-CQRCUQC4.js} +1 -1
- package/dist/{chunk-634XVU3D.js → chunk-CVXKASWV.js} +2 -2
- package/dist/{chunk-CRYZK4NU.js → chunk-EFKHV25A.js} +1 -1
- package/dist/{chunk-KZQFIPY2.js → chunk-ESXMD6CR.js} +12 -4
- package/dist/{chunk-5BYYDBLS.js → chunk-EX5IIVVN.js} +2 -2
- package/dist/{chunk-TJKZ5QCJ.js → chunk-FXQWGW2J.js} +2 -2
- package/dist/{chunk-Y4PM3IDZ.js → chunk-GGXGKMYK.js} +1 -1
- package/dist/{chunk-EDV4MTTT.js → chunk-GK6X67DV.js} +65 -37
- package/dist/{chunk-2KA4TGBQ.js → chunk-GZRCPKO5.js} +19 -8
- package/dist/{chunk-3TST3EWQ.js → chunk-HLAV55RT.js} +1 -1
- package/dist/{chunk-E6W57UP3.js → chunk-HRUO43BZ.js} +2 -2
- package/dist/{chunk-UX5UYDCY.js → chunk-I3I5IYHO.js} +1 -1
- package/dist/{chunk-3ALBZK4M.js → chunk-ICKOFNHF.js} +5 -2
- package/dist/{chunk-RTMMO6IU.js → chunk-II2GAEVL.js} +25 -13
- package/dist/{chunk-HXGLPDZW.js → chunk-IMVZFBCM.js} +6 -17
- package/dist/{chunk-GSH6ZGI6.js → chunk-IPNO77ZJ.js} +35 -12
- package/dist/{chunk-4IRQSBA7.js → chunk-IWF43LO2.js} +1 -1
- package/dist/{chunk-ZLHCZ5F2.js → chunk-JIXW4WHZ.js} +4 -4
- package/dist/{chunk-IEVN722X.js → chunk-JLLFEA23.js} +1 -1
- package/dist/{chunk-7BFQKYCJ.js → chunk-KEXXZLVI.js} +1 -1
- package/dist/{chunk-JTHDMXZV.js → chunk-LOBDXF34.js} +2 -2
- package/dist/{chunk-5BQO3YQP.js → chunk-MABIMRLS.js} +1 -1
- package/dist/{chunk-WFE6CT6M.js → chunk-MDGTQT5D.js} +1 -1
- package/dist/{chunk-LWFBBTJ3.js → chunk-MJ4B2OFU.js} +21 -10
- package/dist/{chunk-S7NGDLZ3.js → chunk-MK44MYO7.js} +2 -2
- package/dist/{chunk-2NPD4S55.js → chunk-O4N6UK6M.js} +2 -2
- package/dist/{chunk-JK4M3ZKY.js → chunk-OOK3BD5Z.js} +3 -3
- package/dist/{chunk-V5K6HISS.js → chunk-P3ETXWHD.js} +1 -1
- package/dist/{chunk-D76WZZSB.js → chunk-P6XBOWET.js} +6 -5
- package/dist/{chunk-H6LZ77GX.js → chunk-QGZH3D2P.js} +4 -1
- package/dist/{chunk-KTJLJTFO.js → chunk-QMTSINXN.js} +93 -66
- package/dist/{chunk-KG2NUK4J.js → chunk-QU444FAP.js} +46 -15
- package/dist/{chunk-WFHGJGCW.js → chunk-S4ILPAEO.js} +27 -12
- package/dist/{chunk-QWW6RHZC.js → chunk-SYWAMZNQ.js} +3 -2
- package/dist/{chunk-LQSLDDPT.js → chunk-T35QBLG7.js} +1 -1
- package/dist/{chunk-VD27SL7H.js → chunk-TNZMNJRF.js} +6 -5
- package/dist/{chunk-DQ7LZZJX.js → chunk-U5MXCMDR.js} +24 -13
- package/dist/{chunk-6FDPVW7Y.js → chunk-UEPUKWD7.js} +1 -1
- package/dist/{chunk-MT6WOKIW.js → chunk-UKTJEFMZ.js} +1 -1
- package/dist/{chunk-EPRYM3FA.js → chunk-ULEW54ED.js} +1 -1
- package/dist/{chunk-TPGIMZLI.js → chunk-VR7P4DAZ.js} +1 -1
- package/dist/{chunk-DSTHXHJ5.js → chunk-VYSB4CTB.js} +1356 -1356
- package/dist/{chunk-WCXFUBEF.js → chunk-W5LVOEN2.js} +7 -7
- package/dist/{chunk-FDKFUIYV.js → chunk-WQQMCV7M.js} +1 -1
- package/dist/chunk-WQTWBXKO.js +23 -0
- package/dist/{chunk-3BXCPHN6.js → chunk-XCHKUSUU.js} +1 -0
- package/dist/{chunk-OYUJYPDF.js → chunk-XWHHBJGS.js} +2 -1
- package/dist/{chunk-27WLUOI2.js → chunk-Y6S7K3YB.js} +1 -1
- package/dist/{chunk-6Q3J6ZMM.js → chunk-YEPZGGUE.js} +41 -19
- package/dist/{chunk-RILHLBKW.js → chunk-YRXXO2RT.js} +2 -2
- package/dist/{chunk-3C2T27YW.js → chunk-YXWZT3PX.js} +1 -1
- package/dist/{chunk-QWJTJSIT.js → chunk-Z3SPAROE.js} +1 -1
- package/dist/{collections-XIHCTMSJ.js → collections-AE7QLCFD.js} +18 -18
- package/dist/{configuration-3GCBMM27.js → configuration-I6BUESSG.js} +1 -1
- package/dist/{configuration-FWZTMYXY.js → configuration-QVMG6LAM.js} +3 -3
- package/dist/{create-PJVLJ7T6.js → create-2DXKC5OJ.js} +18 -18
- package/dist/{create-2RGNAVVY.js → create-2WFPJBDQ.js} +14 -14
- package/dist/{create-VL7LDTVE.js → create-3PIY2COT.js} +8 -8
- package/dist/{create-HEZYB7RF.js → create-7HXY7U5W.js} +55 -21
- package/dist/{create-FHIFVCSG.js → create-BE2YNVX3.js} +24 -24
- package/dist/{create-YKYLCEAK.js → create-C2WABAJU.js} +4 -4
- package/dist/{create-NEK6JCKR.js → create-EIMV4KCC.js} +9 -9
- package/dist/{create-XLYGW5PN.js → create-F2VZZ7XS.js} +11 -11
- package/dist/{create-N534JQPH.js → create-K7V36IWH.js} +3 -3
- package/dist/{create-32MXB6FD.js → create-KW6KFXGI.js} +10 -10
- package/dist/{create-3AMFYYI6.js → create-MW33P4AB.js} +12 -12
- package/dist/{create-GO7APBBU.js → create-RXIY777H.js} +12 -12
- package/dist/{create-RPBHXU32.js → create-TPNH5U7Z.js} +10 -10
- package/dist/{create-AMNH3WXL.js → create-ZZBMZZQG.js} +23 -19
- package/dist/{customer-group-add-customers-2C53NFBJ.js → customer-group-add-customers-DZ3JYD6S.js} +4 -4
- package/dist/{customer-group-create-75QQEQZF.js → customer-group-create-6YNGAE2W.js} +1 -1
- package/dist/{customer-group-detail-AOQYYAOG.js → customer-group-detail-VZUHEIRY.js} +18 -14
- package/dist/{customer-group-edit-N77RCW6I.js → customer-group-edit-UA36663R.js} +48 -27
- package/dist/{customer-groups-GNFV7VMT.js → customer-groups-RGHBJV55.js} +36 -15
- package/dist/{customers-HNINO6YL.js → customers-7S2MK4VG.js} +6 -6
- package/dist/{edit-BSD6667Q.js → edit-3RDEZH6V.js} +12 -12
- package/dist/{edit-7CLOJ3UZ.js → edit-3XGZNC24.js} +24 -24
- package/dist/{edit-4PWAJ7A3.js → edit-45TYWHR6.js} +11 -11
- package/dist/{edit-3DUCWSLA.js → edit-5IQNX7YB.js} +66 -33
- package/dist/{edit-ZGAOUZYP.js → edit-GBTLRL6H.js} +12 -12
- package/dist/{edit-SIKOSSHF.js → edit-HXCSFGP5.js} +10 -10
- package/dist/{edit-UNN3QTEJ.js → edit-JT4OKP5H.js} +23 -7
- package/dist/{edit-O65JD54W.js → edit-PIOHPBF5.js} +2 -2
- package/dist/{edit-IJ6DCBUU.js → edit-UYYI6HIT.js} +28 -11
- package/dist/{edit-TD7QFM4Z.js → edit-VFHZ6GVR.js} +14 -9
- package/dist/{edit-WEUFBORT.js → edit-W7T5NAFW.js} +12 -12
- package/dist/{edit-ZORE6RUD.js → edit-X4DFAW7S.js} +46 -24
- package/dist/{edit-7SBPHN6P.js → edit-YLWMEXUS.js} +23 -7
- package/dist/{edit-budget-D22WMVYR.js → edit-budget-XVJ65KUO.js} +1 -1
- package/dist/{edit-inventory-item-QMYWEBZ3.js → edit-inventory-item-NHSXZ7UB.js} +22 -7
- package/dist/{edit-inventory-item-attributes-HLG6JR6S.js → edit-inventory-item-attributes-VTFPTLLT.js} +1 -1
- package/dist/{edit-price-F7ZWM3FN.js → edit-price-XCJDZ4CU.js} +3 -3
- package/dist/{edit-stock-ITAZNHPU.js → edit-stock-5SQJH74B.js} +2 -2
- package/dist/extension-targets.d.ts +248 -0
- package/dist/extension-targets.js +1 -0
- package/dist/{fulfillment-U2GRQ6DD.js → fulfillment-5LEDKCH7.js} +20 -11
- package/dist/{fulfillment-providers-CMU2JB5X.js → fulfillment-providers-KUIDFRP4.js} +15 -15
- package/dist/index.css +18 -12
- package/dist/index.d.ts +2 -0
- package/dist/index.js +228 -201
- package/dist/{inventory-4JKLAZ2Q.js → inventory-L26YLIBO.js} +2 -2
- package/dist/{inventory-FKEXULLT.js → inventory-ZWZ2SUYW.js} +5 -5
- package/dist/{invite-3R2CEWLN.js → invite-CQEODMVX.js} +16 -27
- package/dist/{invite-MNAX6EUC.js → invite-VYXX7ICP.js} +14 -14
- package/dist/{loader-HTPUNIOS.js → loader-CDW7SKZP.js} +2 -2
- package/dist/{loader-MAAMUP2Z.js → loader-OGR7BCER.js} +12 -10
- package/dist/{locations-2VWSMWHL.js → locations-UVMY2QLW.js} +1 -1
- package/dist/{login-YUWOWICV.js → login-Z43XSPNR.js} +12 -12
- package/dist/{manage-locations-RWGDXXJQ.js → manage-locations-WD3WRVMF.js} +1 -1
- package/dist/{media-YB4G5CMV.js → media-UAAKHWJZ.js} +12 -12
- package/dist/{media-P6WSFHY4.js → media-VRNKF2TX.js} +14 -14
- package/dist/{metadata-J447GEBP.js → metadata-6FYHGP2P.js} +10 -10
- package/dist/{metadata-5Q6FLVX4.js → metadata-GI4A7XUC.js} +10 -10
- package/dist/{metadata-VTQ2CGZX.js → metadata-GR7QS5N6.js} +10 -10
- package/dist/{metadata-ADXGD4Y6.js → metadata-MRDVKETB.js} +10 -10
- package/dist/{metadata-6OYHLPLA.js → metadata-QZEX5FQH.js} +10 -10
- package/dist/{offer-create-page-ACPKTNHA.js → offer-create-page-LRKRHBRT.js} +18 -16
- package/dist/{offer-detail-page-S4R4N5GL.js → offer-detail-page-RSBA6WJB.js} +80 -27
- package/dist/{offer-variant-detail-page-XUMDXZUD.js → offer-variant-detail-page-KBDN27ZG.js} +25 -16
- package/dist/{offers-OTZJBW43.js → offers-LBJILJQX.js} +17 -17
- package/dist/{onboarding-TUGXFOA6.js → onboarding-4DXHB5KY.js} +58 -59
- package/dist/{orders-PJSJNGZS.js → orders-JGKXRRJ6.js} +21 -21
- package/dist/{organization-YIOAVFHN.js → organization-NQHWLNES.js} +12 -12
- package/dist/{organize-OWT5QSJR.js → organize-PNLFCNY4.js} +3 -3
- package/dist/{organize-BTA7NJD2.js → organize-X4IMS4S5.js} +3 -3
- package/dist/pages/index.d.ts +17 -2
- package/dist/pages/index.js +55 -54
- package/dist/{payment-details-K2XFATEL.js → payment-details-T7CKYYQR.js} +29 -17
- package/dist/{payouts-K5IDTJV3.js → payouts-MGC6Z3AT.js} +6 -6
- package/dist/{price-lists-DNPIPDAW.js → price-lists-QJTMWEEP.js} +8 -8
- package/dist/{pricing-J5FIDZIY.js → pricing-CFDZXHIE.js} +12 -12
- package/dist/{pricing-5VUPPNKS.js → pricing-LEEEQ2TR.js} +3 -3
- package/dist/{product-tags-SJYIGXEV.js → product-tags-Z7DOYERG.js} +25 -25
- package/dist/{product-types-4PTJW5DE.js → product-types-F5YH6TBY.js} +4 -4
- package/dist/{product-variant-detail-FO6J3RFA.js → product-variant-detail-EUWXJWAJ.js} +14 -13
- package/dist/{product-variant-edit-55TAIBZO.js → product-variant-edit-OP7DAKIN.js} +12 -12
- package/dist/{products-EQMANSO6.js → products-QRYZFYMR.js} +17 -17
- package/dist/{products-XM57LXJK.js → products-SGYVJ33I.js} +30 -29
- package/dist/{professional-details-WWZPTXSX.js → professional-details-UVRM7GID.js} +28 -16
- package/dist/{profile-5IADQ727.js → profile-HYJJLO63.js} +58 -24
- package/dist/{promotions-BYW6TZ5B.js → promotions-TF4GPADY.js} +8 -8
- package/dist/{receive-MTXKKPKZ.js → receive-NHOBI4NE.js} +4 -4
- package/dist/{refund-3IXGYA7W.js → refund-6MXXZP2L.js} +73 -49
- package/dist/{register-U5PQZATC.js → register-SC2R7TDT.js} +13 -13
- package/dist/{reset-password-SKUJJLSV.js → reset-password-OIZAI2US.js} +1 -1
- package/dist/{return-reasons-QDPSIJG3.js → return-reasons-L5BFL5WW.js} +18 -15
- package/dist/{sales-channels-GBSTCWVP.js → sales-channels-57VSC3CU.js} +4 -3
- package/dist/{sales-channels-N4NE3FXP.js → sales-channels-VXOZQKLK.js} +4 -3
- package/dist/{settings-ZUBBFS67.js → settings-UZGHDHAR.js} +28 -28
- package/dist/{shipment-TKSCPC3M.js → shipment-KF4M3RDJ.js} +10 -10
- package/dist/{shipping-DODEUYOQ.js → shipping-3KKFZONF.js} +2 -2
- package/dist/{shipping-profile-O4JMJLN7.js → shipping-profile-ZHE4U2MG.js} +1 -1
- package/dist/{shipping-profiles-4TJ4IH6U.js → shipping-profiles-W6ESWKTU.js} +14 -14
- package/dist/{stock-GYK2GHJN.js → stock-JCDE7SMM.js} +10 -10
- package/dist/{store-XWOALZ5Q.js → store-UOOVXKZY.js} +121 -47
- package/dist/{store-closure-46B3XZ2I.js → store-closure-7TG7Y7LW.js} +10 -10
- package/dist/{store-select-E77E3ZY7.js → store-select-SARJSWL4.js} +32 -13
- package/dist/{tax-regions-S2LFRTMP.js → tax-regions-4NK7L6FA.js} +7 -4
- package/dist/{team-N2C5JPSU.js → team-45IARFMH.js} +19 -18
- package/package.json +17 -12
- /package/dist/{chunk-HFRHHT36.js → chunk-NWU7EGGF.js} +0 -0
|
@@ -7,19 +7,20 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
useCollectionTableFilters
|
|
9
9
|
} from "./chunk-HHD2VUED.js";
|
|
10
|
-
import {
|
|
11
|
-
_DataTable,
|
|
12
|
-
useDataTable
|
|
13
|
-
} from "./chunk-W3UHAQCV.js";
|
|
14
10
|
import {
|
|
15
11
|
SingleColumnPage
|
|
16
12
|
} from "./chunk-YV6MK4PZ.js";
|
|
13
|
+
import {
|
|
14
|
+
_DataTable,
|
|
15
|
+
useDataTable
|
|
16
|
+
} from "./chunk-7TQNE3E2.js";
|
|
17
17
|
import {
|
|
18
18
|
useCollections
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5NVY7JZC.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/collections/collection-list-page.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
23
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
23
24
|
|
|
24
25
|
// src/pages/collections/_components/collection-list-table/collection-list-table.tsx
|
|
25
26
|
import { Children as Children2 } from "react";
|
|
@@ -56,6 +57,7 @@ var CollectionListHeader = ({
|
|
|
56
57
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
57
58
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
58
59
|
import { useMemo } from "react";
|
|
60
|
+
import { useExtendableTable, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
59
61
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
60
62
|
var PAGE_SIZE = 20;
|
|
61
63
|
var CollectionListDataTable = () => {
|
|
@@ -66,14 +68,18 @@ var CollectionListDataTable = () => {
|
|
|
66
68
|
const { collections, count, isError, error, isLoading } = useCollections(
|
|
67
69
|
{
|
|
68
70
|
...searchParams,
|
|
69
|
-
|
|
71
|
+
...useLinkQuery("collection", "*products")
|
|
70
72
|
},
|
|
71
73
|
{
|
|
72
74
|
placeholderData: keepPreviousData
|
|
73
75
|
}
|
|
74
76
|
);
|
|
75
|
-
const
|
|
76
|
-
const columns = useColumns();
|
|
77
|
+
const baseFilters = useCollectionTableFilters();
|
|
78
|
+
const { columns, filters: extFilters } = useColumns();
|
|
79
|
+
const filters = useMemo(
|
|
80
|
+
() => [...baseFilters, ...extFilters],
|
|
81
|
+
[baseFilters, extFilters]
|
|
82
|
+
);
|
|
77
83
|
const { table } = useDataTable({
|
|
78
84
|
data: collections ?? [],
|
|
79
85
|
columns,
|
|
@@ -114,7 +120,12 @@ var CollectionListDataTable = () => {
|
|
|
114
120
|
};
|
|
115
121
|
var useColumns = () => {
|
|
116
122
|
const base = useCollectionTableColumns();
|
|
117
|
-
|
|
123
|
+
const { columns: extended, filters } = useExtendableTable({
|
|
124
|
+
model: "collection",
|
|
125
|
+
columns: base
|
|
126
|
+
});
|
|
127
|
+
const columns = useMemo(() => [...extended], [extended]);
|
|
128
|
+
return { columns, filters };
|
|
118
129
|
};
|
|
119
130
|
|
|
120
131
|
// src/pages/collections/_components/collection-list-table/collection-list-table.tsx
|
|
@@ -132,7 +143,7 @@ var CollectionListTable = ({ children }) => {
|
|
|
132
143
|
// src/pages/collections/collection-list-page.tsx
|
|
133
144
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
134
145
|
var Root = ({ children }) => {
|
|
135
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(CollectionListTable, {}) });
|
|
146
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: /* @__PURE__ */ jsx4(WidgetZone, { id: "collections.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(CollectionListTable, {}) }) });
|
|
136
147
|
};
|
|
137
148
|
var CollectionListPage = Object.assign(Root, {
|
|
138
149
|
Table: CollectionListTable,
|
|
@@ -6,20 +6,21 @@ import {
|
|
|
6
6
|
} from "./chunk-GRH7C3QN.js";
|
|
7
7
|
import {
|
|
8
8
|
useCustomerTableFilters
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
_DataTable,
|
|
12
|
-
useDataTable
|
|
13
|
-
} from "./chunk-W3UHAQCV.js";
|
|
9
|
+
} from "./chunk-Z3SPAROE.js";
|
|
14
10
|
import {
|
|
15
11
|
SingleColumnPage
|
|
16
12
|
} from "./chunk-YV6MK4PZ.js";
|
|
13
|
+
import {
|
|
14
|
+
_DataTable,
|
|
15
|
+
useDataTable
|
|
16
|
+
} from "./chunk-7TQNE3E2.js";
|
|
17
17
|
import {
|
|
18
18
|
useCustomers
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XWHHBJGS.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/customers/customer-list-page.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
23
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
23
24
|
|
|
24
25
|
// src/pages/customers/_components/customer-list-table/customer-list-table.tsx
|
|
25
26
|
import { Children as Children2 } from "react";
|
|
@@ -51,6 +52,7 @@ var CustomerListHeader = ({
|
|
|
51
52
|
|
|
52
53
|
// src/pages/customers/_components/customer-list-table/customer-list-data-table.tsx
|
|
53
54
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
55
|
+
import { useExtendableTable, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
54
56
|
import { useMemo } from "react";
|
|
55
57
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
56
58
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
@@ -60,16 +62,22 @@ var CustomerListDataTable = () => {
|
|
|
60
62
|
const { searchParams, raw } = useCustomerTableQuery({
|
|
61
63
|
pageSize: PAGE_SIZE
|
|
62
64
|
});
|
|
65
|
+
const linkQuery = useLinkQuery("customer");
|
|
63
66
|
const { customers, count, isLoading, isError, error } = useCustomers(
|
|
64
67
|
{
|
|
65
|
-
...searchParams
|
|
68
|
+
...searchParams,
|
|
69
|
+
...linkQuery
|
|
66
70
|
},
|
|
67
71
|
{
|
|
68
72
|
placeholderData: keepPreviousData
|
|
69
73
|
}
|
|
70
74
|
);
|
|
71
|
-
const
|
|
72
|
-
const columns = useColumns();
|
|
75
|
+
const baseFilters = useCustomerTableFilters();
|
|
76
|
+
const { columns, filters: extFilters } = useColumns();
|
|
77
|
+
const filters = useMemo(
|
|
78
|
+
() => [...baseFilters, ...extFilters],
|
|
79
|
+
[baseFilters, extFilters]
|
|
80
|
+
);
|
|
73
81
|
const { table } = useDataTable({
|
|
74
82
|
data: customers ?? [],
|
|
75
83
|
columns,
|
|
@@ -121,8 +129,12 @@ var CustomerListDataTable = () => {
|
|
|
121
129
|
);
|
|
122
130
|
};
|
|
123
131
|
var useColumns = () => {
|
|
124
|
-
const
|
|
125
|
-
|
|
132
|
+
const base = useCustomerTableColumns();
|
|
133
|
+
const { columns, filters } = useExtendableTable({
|
|
134
|
+
model: "customer",
|
|
135
|
+
columns: base
|
|
136
|
+
});
|
|
137
|
+
return { columns: useMemo(() => [...columns], [columns]), filters };
|
|
126
138
|
};
|
|
127
139
|
|
|
128
140
|
// src/pages/customers/_components/customer-list-table/customer-list-table.tsx
|
|
@@ -140,7 +152,7 @@ var CustomerListTable = ({ children }) => {
|
|
|
140
152
|
// src/pages/customers/customer-list-page.tsx
|
|
141
153
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
142
154
|
var Root = ({ children }) => {
|
|
143
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(CustomerListTable, {}) });
|
|
155
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: /* @__PURE__ */ jsx4(WidgetZone, { id: "customers.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(CustomerListTable, {}) }) });
|
|
144
156
|
};
|
|
145
157
|
var CustomerListPage = Object.assign(Root, {
|
|
146
158
|
Table: CustomerListTable,
|
|
@@ -10,7 +10,7 @@ var NoResults = ({ title, message, className }) => {
|
|
|
10
10
|
"div",
|
|
11
11
|
{
|
|
12
12
|
className: clx(
|
|
13
|
-
"flex h-[400px]
|
|
13
|
+
"flex min-h-[400px] size-full items-center justify-center",
|
|
14
14
|
className
|
|
15
15
|
),
|
|
16
16
|
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-y-2", children: [
|
|
@@ -40,7 +40,7 @@ var NoRecords = ({
|
|
|
40
40
|
"div",
|
|
41
41
|
{
|
|
42
42
|
className: clx(
|
|
43
|
-
"flex h-[400px]
|
|
43
|
+
"flex min-h-[400px] size-full flex-col items-center justify-center gap-y-4",
|
|
44
44
|
className
|
|
45
45
|
),
|
|
46
46
|
children: [
|
|
@@ -9375,9 +9375,9 @@ var en_default = {
|
|
|
9375
9375
|
valuePlaceholder: "Enter values",
|
|
9376
9376
|
enterValuePlaceholder: "Enter value",
|
|
9377
9377
|
selectValuePlaceholder: "Select value",
|
|
9378
|
-
requiredTooltip: "This attribute is required by the
|
|
9378
|
+
requiredTooltip: "This attribute is required by the marketplace and can't be deselected.",
|
|
9379
9379
|
noAttributesTitle: "No product attributes yet",
|
|
9380
|
-
noAttributesDescription: "There are no attributes defined by the
|
|
9380
|
+
noAttributesDescription: "There are no attributes defined by the marketplace.",
|
|
9381
9381
|
errors: {
|
|
9382
9382
|
titleRequired: "Please enter a title",
|
|
9383
9383
|
valuesRequired: "Please enter at least one value"
|
|
@@ -9639,7 +9639,7 @@ var en_default = {
|
|
|
9639
9639
|
},
|
|
9640
9640
|
primaryCategory: {
|
|
9641
9641
|
label: "Primary Category",
|
|
9642
|
-
tooltip: "Category could define attributes that apply to this product. Attributes are created by the
|
|
9642
|
+
tooltip: "Category could define attributes that apply to this product. Attributes are created by the admin when setting up the marketplace."
|
|
9643
9643
|
}
|
|
9644
9644
|
},
|
|
9645
9645
|
variant: {
|
|
@@ -10298,6 +10298,7 @@ var en_default = {
|
|
|
10298
10298
|
createRefund: "Create Refund",
|
|
10299
10299
|
refundPaymentSuccess: "Refund of amount {{amount}} successful",
|
|
10300
10300
|
createRefundWrongQuantity: "Quantity should be a number between 1 and {{number}}",
|
|
10301
|
+
enterAmount: "Please enter an amount",
|
|
10301
10302
|
refundAmount: "Refund {{ amount }}",
|
|
10302
10303
|
paymentLink: "Copy payment link for {{ amount }}",
|
|
10303
10304
|
copyPaymentLink: "Copy payment link for {{ amount }}",
|
|
@@ -10389,6 +10390,11 @@ var en_default = {
|
|
|
10389
10390
|
damagedItemReceived: "Damaged items received",
|
|
10390
10391
|
damagedItemsReturned: "{{quantity}}x damaged items returned",
|
|
10391
10392
|
activeChangeError: "There is an active order change in progress on this order. Please finish or discard the change first.",
|
|
10393
|
+
emptyState: {
|
|
10394
|
+
title: "No records yet",
|
|
10395
|
+
description: "Add at least one item from the order to create the return"
|
|
10396
|
+
},
|
|
10397
|
+
emptyItemsError: "Please add at least one item from the order",
|
|
10392
10398
|
cancel: {
|
|
10393
10399
|
title: "Cancel Return",
|
|
10394
10400
|
description: "Are you sure you want to cancel the return request?"
|
|
@@ -10610,7 +10616,8 @@ var en_default = {
|
|
|
10610
10616
|
error: {
|
|
10611
10617
|
wrongQuantity: "Only one item is available for fulfillment",
|
|
10612
10618
|
wrongQuantity_other: "Quantity should be a number between 1 and {{number}}",
|
|
10613
|
-
noItems: "
|
|
10619
|
+
noItems: "There are no items to fulfill.",
|
|
10620
|
+
exceedsReservedQuantity: "The quantity you want to fulfill exceeds the reserved quantity for items. Please review your fulfillment.",
|
|
10614
10621
|
noShippingOption: "Shipping option is required",
|
|
10615
10622
|
noLocation: "Location is required"
|
|
10616
10623
|
},
|
|
@@ -12893,6 +12900,7 @@ var en_default = {
|
|
|
12893
12900
|
attributes: {
|
|
12894
12901
|
fields: {
|
|
12895
12902
|
name: "Name",
|
|
12903
|
+
productAttribute: "Product Attribute",
|
|
12896
12904
|
handle: "Handle",
|
|
12897
12905
|
required: "Required",
|
|
12898
12906
|
type: "Type",
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
NoRecords,
|
|
19
19
|
NoResults
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CVXKASWV.js";
|
|
21
21
|
import {
|
|
22
22
|
TableFooterSkeleton
|
|
23
23
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-NTJ3BMOE.js";
|
|
30
30
|
import {
|
|
31
31
|
useProducts
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-744GLNZW.js";
|
|
33
33
|
|
|
34
34
|
// src/pages/settings/tax-regions/_common/components/tax-rate-line.tsx
|
|
35
35
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
usePromotionRuleAttributes,
|
|
12
12
|
usePromotionRules
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JIXW4WHZ.js";
|
|
14
14
|
import {
|
|
15
15
|
useCurrentSeller
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4NADEZZQ.js";
|
|
17
17
|
import {
|
|
18
18
|
sdk
|
|
19
19
|
} from "./chunk-LXZXXOJ3.js";
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
} from "./chunk-GRH7C3QN.js";
|
|
10
10
|
import {
|
|
11
11
|
useCustomerTableFilters
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
_DataTable,
|
|
15
|
-
useDataTable
|
|
16
|
-
} from "./chunk-W3UHAQCV.js";
|
|
12
|
+
} from "./chunk-Z3SPAROE.js";
|
|
17
13
|
import {
|
|
18
14
|
SingleColumnPage
|
|
19
15
|
} from "./chunk-YV6MK4PZ.js";
|
|
16
|
+
import {
|
|
17
|
+
_DataTable,
|
|
18
|
+
useDataTable
|
|
19
|
+
} from "./chunk-7TQNE3E2.js";
|
|
20
20
|
import {
|
|
21
21
|
SingleColumnPageSkeleton
|
|
22
22
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -28,11 +28,12 @@ import {
|
|
|
28
28
|
useCustomers,
|
|
29
29
|
useDeleteCustomerGroup,
|
|
30
30
|
useRemoveCustomersFromGroup
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XWHHBJGS.js";
|
|
32
32
|
|
|
33
33
|
// src/pages/customer-groups/customer-group-detail/customer-group-detail.tsx
|
|
34
34
|
import { Children } from "react";
|
|
35
35
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
36
|
+
import { useLinkQuery, WidgetZone } from "@mercurjs/dashboard-shared";
|
|
36
37
|
|
|
37
38
|
// src/pages/customer-groups/customer-group-detail/components/customer-group-customer-section/customer-group-customer-section.tsx
|
|
38
39
|
import { XCircle } from "@medusajs/icons";
|
|
@@ -48,6 +49,7 @@ import { createColumnHelper } from "@tanstack/react-table";
|
|
|
48
49
|
import { useMemo, useState } from "react";
|
|
49
50
|
import { useTranslation } from "react-i18next";
|
|
50
51
|
import { Link } from "react-router-dom";
|
|
52
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
51
53
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
52
54
|
var PAGE_SIZE = 20;
|
|
53
55
|
var CustomerGroupCustomerSection = ({
|
|
@@ -186,6 +188,14 @@ var CustomerGroupCustomerSection = ({
|
|
|
186
188
|
message: t("customerGroups.customers.list.noRecordsMessage")
|
|
187
189
|
}
|
|
188
190
|
}
|
|
191
|
+
),
|
|
192
|
+
/* @__PURE__ */ jsx(
|
|
193
|
+
DisplayExtensionZone,
|
|
194
|
+
{
|
|
195
|
+
model: "customer_group",
|
|
196
|
+
zone: "customers",
|
|
197
|
+
data: group
|
|
198
|
+
}
|
|
189
199
|
)
|
|
190
200
|
]
|
|
191
201
|
}
|
|
@@ -293,6 +303,7 @@ import { PencilSquare, Trash } from "@medusajs/icons";
|
|
|
293
303
|
import { Container as Container2, Heading as Heading2, Text, toast as toast2, usePrompt as usePrompt2 } from "@medusajs/ui";
|
|
294
304
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
295
305
|
import { useNavigate } from "react-router-dom";
|
|
306
|
+
import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
|
|
296
307
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
297
308
|
var CustomerGroupGeneralSection = ({
|
|
298
309
|
group
|
|
@@ -339,7 +350,7 @@ var CustomerGroupGeneralSection = ({
|
|
|
339
350
|
className: "flex items-center justify-between px-6 py-4",
|
|
340
351
|
"data-testid": "customer-group-general-section-header",
|
|
341
352
|
children: [
|
|
342
|
-
/* @__PURE__ */ jsx2(Heading2, { "data-testid": "customer-group-general-section-name", children: group.name }),
|
|
353
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "customer_group", zone: "general", id: "name", data: group, children: /* @__PURE__ */ jsx2(Heading2, { "data-testid": "customer-group-general-section-name", children: group.name }) }),
|
|
343
354
|
/* @__PURE__ */ jsx2(
|
|
344
355
|
ActionMenu,
|
|
345
356
|
{
|
|
@@ -368,32 +379,50 @@ var CustomerGroupGeneralSection = ({
|
|
|
368
379
|
]
|
|
369
380
|
}
|
|
370
381
|
),
|
|
371
|
-
/* @__PURE__ */
|
|
372
|
-
|
|
382
|
+
/* @__PURE__ */ jsx2(
|
|
383
|
+
DisplayField,
|
|
373
384
|
{
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
385
|
+
model: "customer_group",
|
|
386
|
+
zone: "general",
|
|
387
|
+
id: "customers",
|
|
388
|
+
data: group,
|
|
389
|
+
children: /* @__PURE__ */ jsxs2(
|
|
390
|
+
"div",
|
|
391
|
+
{
|
|
392
|
+
className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4",
|
|
393
|
+
"data-testid": "customer-group-general-section-customers-row",
|
|
394
|
+
children: [
|
|
395
|
+
/* @__PURE__ */ jsx2(
|
|
396
|
+
Text,
|
|
397
|
+
{
|
|
398
|
+
size: "small",
|
|
399
|
+
leading: "compact",
|
|
400
|
+
weight: "plus",
|
|
401
|
+
"data-testid": "customer-group-general-section-customers-label",
|
|
402
|
+
children: t("customers.domain")
|
|
403
|
+
}
|
|
404
|
+
),
|
|
405
|
+
/* @__PURE__ */ jsx2(
|
|
406
|
+
Text,
|
|
407
|
+
{
|
|
408
|
+
size: "small",
|
|
409
|
+
leading: "compact",
|
|
410
|
+
"data-testid": "customer-group-general-section-customers-value",
|
|
411
|
+
children: group.customers?.length || "-"
|
|
412
|
+
}
|
|
413
|
+
)
|
|
414
|
+
]
|
|
415
|
+
}
|
|
416
|
+
)
|
|
417
|
+
}
|
|
418
|
+
),
|
|
419
|
+
/* @__PURE__ */ jsx2(
|
|
420
|
+
DisplayExtensionZone2,
|
|
421
|
+
{
|
|
422
|
+
model: "customer_group",
|
|
423
|
+
zone: "general",
|
|
424
|
+
data: group,
|
|
425
|
+
builtInFieldIds: ["name", "customers"]
|
|
397
426
|
}
|
|
398
427
|
)
|
|
399
428
|
]
|
|
@@ -406,11 +435,10 @@ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
|
406
435
|
var Root = ({ children }) => {
|
|
407
436
|
const initialData = useLoaderData();
|
|
408
437
|
const { id } = useParams();
|
|
438
|
+
const query = useLinkQuery("customer_group", CUSTOMER_GROUP_DETAIL_FIELDS);
|
|
409
439
|
const { customer_group, isLoading, isError, error } = useCustomerGroup(
|
|
410
440
|
id,
|
|
411
|
-
|
|
412
|
-
fields: CUSTOMER_GROUP_DETAIL_FIELDS
|
|
413
|
-
},
|
|
441
|
+
query,
|
|
414
442
|
{ initialData }
|
|
415
443
|
);
|
|
416
444
|
if (isLoading || !customer_group) {
|
|
@@ -419,10 +447,10 @@ var Root = ({ children }) => {
|
|
|
419
447
|
if (isError) {
|
|
420
448
|
throw error;
|
|
421
449
|
}
|
|
422
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, data: customer_group, hasOutlet: true, children }) : /* @__PURE__ */
|
|
450
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, data: customer_group, hasOutlet: true, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, data: customer_group, hasOutlet: true, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "customer-groups.detail.main", data: customer_group, children: [
|
|
423
451
|
/* @__PURE__ */ jsx3(CustomerGroupGeneralSection, { group: customer_group }),
|
|
424
452
|
/* @__PURE__ */ jsx3(CustomerGroupCustomerSection, { group: customer_group })
|
|
425
|
-
] });
|
|
453
|
+
] }) });
|
|
426
454
|
};
|
|
427
455
|
var CustomerGroupDetailPage = Object.assign(Root, {
|
|
428
456
|
GeneralSection: CustomerGroupGeneralSection,
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePayoutTableColumns
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y6S7K3YB.js";
|
|
4
4
|
import {
|
|
5
5
|
usePayoutTableQuery
|
|
6
6
|
} from "./chunk-N3T24SEK.js";
|
|
7
7
|
import {
|
|
8
8
|
usePayoutTableFilters
|
|
9
9
|
} from "./chunk-UAE6XBYL.js";
|
|
10
|
-
import {
|
|
11
|
-
_DataTable,
|
|
12
|
-
useDataTable
|
|
13
|
-
} from "./chunk-W3UHAQCV.js";
|
|
14
10
|
import {
|
|
15
11
|
SingleColumnPage
|
|
16
12
|
} from "./chunk-YV6MK4PZ.js";
|
|
13
|
+
import {
|
|
14
|
+
_DataTable,
|
|
15
|
+
useDataTable
|
|
16
|
+
} from "./chunk-7TQNE3E2.js";
|
|
17
17
|
import {
|
|
18
18
|
usePayouts
|
|
19
19
|
} from "./chunk-KIURBTC4.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/payouts/payout-list-page.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
23
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
23
24
|
|
|
24
25
|
// src/pages/payouts/_components/payout-list-table/payout-list-table.tsx
|
|
25
26
|
import { Children as Children2 } from "react";
|
|
@@ -46,8 +47,10 @@ var PayoutListHeader = ({
|
|
|
46
47
|
};
|
|
47
48
|
|
|
48
49
|
// src/pages/payouts/_components/payout-list-table/payout-list-data-table.tsx
|
|
50
|
+
import { useMemo } from "react";
|
|
49
51
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
50
52
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
53
|
+
import { useExtendableTable } from "@mercurjs/dashboard-shared";
|
|
51
54
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
52
55
|
var PAGE_SIZE = 10;
|
|
53
56
|
var PayoutListDataTable = () => {
|
|
@@ -61,8 +64,16 @@ var PayoutListDataTable = () => {
|
|
|
61
64
|
initialData: keepPreviousData
|
|
62
65
|
}
|
|
63
66
|
);
|
|
64
|
-
const
|
|
65
|
-
const filters =
|
|
67
|
+
const base = usePayoutTableColumns();
|
|
68
|
+
const { columns, filters: extFilters } = useExtendableTable({
|
|
69
|
+
model: "payout",
|
|
70
|
+
columns: base
|
|
71
|
+
});
|
|
72
|
+
const baseFilters = usePayoutTableFilters();
|
|
73
|
+
const filters = useMemo(
|
|
74
|
+
() => [...baseFilters, ...extFilters],
|
|
75
|
+
[baseFilters, extFilters]
|
|
76
|
+
);
|
|
66
77
|
const { table } = useDataTable({
|
|
67
78
|
data: payouts ?? [],
|
|
68
79
|
columns,
|
|
@@ -114,7 +125,7 @@ var PayoutListTable = ({ children }) => {
|
|
|
114
125
|
// src/pages/payouts/payout-list-page.tsx
|
|
115
126
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
116
127
|
var Root = ({ children }) => {
|
|
117
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(PayoutListTable, {}) });
|
|
128
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: /* @__PURE__ */ jsx4(WidgetZone, { id: "payouts.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(PayoutListTable, {}) }) });
|
|
118
129
|
};
|
|
119
130
|
var PayoutListPage = Object.assign(Root, {
|
|
120
131
|
Table: PayoutListTable,
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-SYNUA6LQ.js";
|
|
9
9
|
import {
|
|
10
10
|
MoneyAmountCell
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5YZ3G5EZ.js";
|
|
12
12
|
import {
|
|
13
13
|
getOrderFulfillmentStatus,
|
|
14
14
|
getOrderPaymentStatus
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-T35QBLG7.js";
|
|
16
16
|
import {
|
|
17
17
|
StatusCell
|
|
18
18
|
} from "./chunk-DB6ANJBO.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AuthLayout
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IMVZFBCM.js";
|
|
4
4
|
import {
|
|
5
5
|
AvatarBox
|
|
6
6
|
} from "./chunk-CP5IL4P6.js";
|
|
@@ -23,6 +23,7 @@ import { useForm } from "react-hook-form";
|
|
|
23
23
|
import { Trans, useTranslation } from "react-i18next";
|
|
24
24
|
import { Link, useNavigate, useSearchParams } from "react-router-dom";
|
|
25
25
|
import * as z from "zod";
|
|
26
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
26
27
|
import config from "virtual:mercur/config";
|
|
27
28
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
28
29
|
var LoginSchema = z.object({
|
|
@@ -30,7 +31,7 @@ var LoginSchema = z.object({
|
|
|
30
31
|
password: z.string().min(1, { message: i18n.t("login.validation.passwordRequired") })
|
|
31
32
|
});
|
|
32
33
|
var LoginLogo = () => {
|
|
33
|
-
return /* @__PURE__ */ jsx(AvatarBox, {});
|
|
34
|
+
return /* @__PURE__ */ jsx(WidgetZone, { id: "login.logo", children: /* @__PURE__ */ jsx(AvatarBox, {}) });
|
|
34
35
|
};
|
|
35
36
|
var LoginHeader = () => {
|
|
36
37
|
const { t } = useTranslation();
|
|
@@ -175,10 +176,12 @@ var LoginFooter = () => {
|
|
|
175
176
|
var Root = ({ children }) => {
|
|
176
177
|
return /* @__PURE__ */ jsx(AuthLayout, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
177
178
|
/* @__PURE__ */ jsx(LoginLogo, {}),
|
|
179
|
+
/* @__PURE__ */ jsx(WidgetZone, { id: "login.before" }),
|
|
178
180
|
/* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
|
|
179
181
|
/* @__PURE__ */ jsx(LoginHeader, {}),
|
|
180
182
|
/* @__PURE__ */ jsx(LoginForm, {})
|
|
181
183
|
] }),
|
|
184
|
+
/* @__PURE__ */ jsx(WidgetZone, { id: "login.after" }),
|
|
182
185
|
/* @__PURE__ */ jsx(LoginFooter, {})
|
|
183
186
|
] }) });
|
|
184
187
|
};
|