@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProductGeneralSection,
|
|
3
3
|
ProductMediaSection
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5SRG2247.js";
|
|
5
5
|
import {
|
|
6
6
|
SectionRow
|
|
7
7
|
} from "./chunk-4TLP3TAA.js";
|
|
@@ -9,24 +9,24 @@ import {
|
|
|
9
9
|
SidebarLink
|
|
10
10
|
} from "./chunk-4GPAS5GW.js";
|
|
11
11
|
import "./chunk-U2EI2ZLM.js";
|
|
12
|
+
import {
|
|
13
|
+
TwoColumnPage
|
|
14
|
+
} from "./chunk-YV6MK4PZ.js";
|
|
12
15
|
import "./chunk-FQERBIVS.js";
|
|
13
16
|
import {
|
|
14
17
|
_DataTable,
|
|
15
18
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7TQNE3E2.js";
|
|
17
20
|
import "./chunk-YN3FGNJM.js";
|
|
18
21
|
import "./chunk-KCHYLLVG.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
TwoColumnPage
|
|
22
|
-
} from "./chunk-YV6MK4PZ.js";
|
|
22
|
+
import "./chunk-CVXKASWV.js";
|
|
23
23
|
import {
|
|
24
24
|
useQueryParams
|
|
25
25
|
} from "./chunk-THHRRYRS.js";
|
|
26
26
|
import "./chunk-LRD242C7.js";
|
|
27
27
|
import {
|
|
28
28
|
require_dist
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VYSB4CTB.js";
|
|
30
30
|
import {
|
|
31
31
|
Thumbnail
|
|
32
32
|
} from "./chunk-WIYFXWRI.js";
|
|
@@ -47,20 +47,20 @@ import "./chunk-VE6GRIIN.js";
|
|
|
47
47
|
import "./chunk-7MARNXFG.js";
|
|
48
48
|
import "./chunk-MNHP6YRC.js";
|
|
49
49
|
import "./chunk-NTJ3BMOE.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-CLS6PNZY.js";
|
|
51
|
+
import "./chunk-JIXW4WHZ.js";
|
|
52
52
|
import "./chunk-GZ4KTAWS.js";
|
|
53
53
|
import "./chunk-PUAWN7SS.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-4NADEZZQ.js";
|
|
55
|
+
import "./chunk-XWHHBJGS.js";
|
|
56
|
+
import "./chunk-5NVY7JZC.js";
|
|
57
57
|
import "./chunk-KIURBTC4.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-4EAC3GT7.js";
|
|
59
59
|
import "./chunk-JR7AABT5.js";
|
|
60
60
|
import "./chunk-ZQCCVCHB.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-MABIMRLS.js";
|
|
62
|
+
import "./chunk-ULEW54ED.js";
|
|
63
|
+
import "./chunk-UEPUKWD7.js";
|
|
64
64
|
import {
|
|
65
65
|
useSalesChannels
|
|
66
66
|
} from "./chunk-JJP6AKMV.js";
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
useProductChange,
|
|
76
76
|
useProductVariants,
|
|
77
77
|
useRemoveAttributeFromProduct
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-744GLNZW.js";
|
|
79
79
|
import "./chunk-A5DJIOHN.js";
|
|
80
80
|
import {
|
|
81
81
|
queryClient
|
|
@@ -89,13 +89,23 @@ import {
|
|
|
89
89
|
} from "./chunk-NBMM2TZK.js";
|
|
90
90
|
|
|
91
91
|
// src/pages/products/[id]/loader.tsx
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
import { getExtensionRegistry, withLinkFields } from "@mercurjs/dashboard-shared";
|
|
93
|
+
var productDetailQueryWithLinks = () => ({
|
|
94
|
+
fields: withLinkFields(
|
|
95
|
+
PRODUCT_DETAIL_QUERY.fields,
|
|
96
|
+
getExtensionRegistry()?.getLinks("product") ?? []
|
|
97
|
+
)
|
|
98
98
|
});
|
|
99
|
+
var productDetailQuery = (id) => {
|
|
100
|
+
const query = productDetailQueryWithLinks();
|
|
101
|
+
return {
|
|
102
|
+
queryKey: productsQueryKeys.detail(id, query),
|
|
103
|
+
queryFn: async () => sdk.vendor.products.$id.query({
|
|
104
|
+
$id: id,
|
|
105
|
+
...query
|
|
106
|
+
})
|
|
107
|
+
};
|
|
108
|
+
};
|
|
99
109
|
var loader = async ({ params }) => {
|
|
100
110
|
const id = params.id;
|
|
101
111
|
const query = productDetailQuery(id);
|
|
@@ -109,6 +119,7 @@ var loader = async ({ params }) => {
|
|
|
109
119
|
// src/pages/products/[id]/product-detail-page.tsx
|
|
110
120
|
import { Children } from "react";
|
|
111
121
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
122
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
112
123
|
|
|
113
124
|
// src/pages/products/[id]/_components/product-active-edit-section/product-active-edit-section.tsx
|
|
114
125
|
var import_types = __toESM(require_dist(), 1);
|
|
@@ -224,6 +235,7 @@ import { PencilSquare } from "@medusajs/icons";
|
|
|
224
235
|
import { Badge, Container, Heading, Tooltip } from "@medusajs/ui";
|
|
225
236
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
226
237
|
import { Link } from "react-router-dom";
|
|
238
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
227
239
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
228
240
|
var ProductOrganizationSection = ({
|
|
229
241
|
product
|
|
@@ -319,7 +331,8 @@ var ProductOrganizationSection = ({
|
|
|
319
331
|
) : void 0,
|
|
320
332
|
"data-testid": "product-type-row"
|
|
321
333
|
}
|
|
322
|
-
)
|
|
334
|
+
),
|
|
335
|
+
/* @__PURE__ */ jsx2(DisplayExtensionZone, { model: "product", zone: "organize", data: product })
|
|
323
336
|
]
|
|
324
337
|
}
|
|
325
338
|
);
|
|
@@ -347,6 +360,7 @@ import {
|
|
|
347
360
|
Tooltip as Tooltip2,
|
|
348
361
|
usePrompt as usePrompt2
|
|
349
362
|
} from "@medusajs/ui";
|
|
363
|
+
import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
|
|
350
364
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
351
365
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
352
366
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
@@ -426,7 +440,8 @@ var ProductVariantSection = ({
|
|
|
426
440
|
message: t("products.variants.empty.description")
|
|
427
441
|
}
|
|
428
442
|
}
|
|
429
|
-
)
|
|
443
|
+
),
|
|
444
|
+
/* @__PURE__ */ jsx3(DisplayExtensionZone2, { model: "product", zone: "variants", data: product })
|
|
430
445
|
] });
|
|
431
446
|
};
|
|
432
447
|
var columnHelper = createColumnHelper();
|
|
@@ -606,6 +621,7 @@ import {
|
|
|
606
621
|
Tooltip as Tooltip3,
|
|
607
622
|
usePrompt as usePrompt3
|
|
608
623
|
} from "@medusajs/ui";
|
|
624
|
+
import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
|
|
609
625
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
610
626
|
var import_types2 = __toESM(require_dist(), 1);
|
|
611
627
|
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -794,7 +810,8 @@ var ProductAttributeSection = ({
|
|
|
794
810
|
attributes: infoAttributes,
|
|
795
811
|
productId: product.id
|
|
796
812
|
}
|
|
797
|
-
)
|
|
813
|
+
),
|
|
814
|
+
/* @__PURE__ */ jsx4(DisplayExtensionZone3, { model: "product", zone: "attributes", data: product })
|
|
798
815
|
] });
|
|
799
816
|
};
|
|
800
817
|
|
|
@@ -802,6 +819,7 @@ var ProductAttributeSection = ({
|
|
|
802
819
|
import { PencilSquare as PencilSquare4, ShoppingBag } from "@medusajs/icons";
|
|
803
820
|
import { Container as Container4, Heading as Heading4 } from "@medusajs/ui";
|
|
804
821
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
822
|
+
import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
|
|
805
823
|
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
806
824
|
var ProductShippingProfileSection = ({
|
|
807
825
|
product
|
|
@@ -836,7 +854,8 @@ var ProductShippingProfileSection = ({
|
|
|
836
854
|
descriptionKey: shippingProfile.type,
|
|
837
855
|
icon: /* @__PURE__ */ jsx5(ShoppingBag, {})
|
|
838
856
|
}
|
|
839
|
-
)
|
|
857
|
+
),
|
|
858
|
+
/* @__PURE__ */ jsx5(DisplayExtensionZone4, { model: "product", zone: "shipping-profile", data: product })
|
|
840
859
|
] });
|
|
841
860
|
};
|
|
842
861
|
|
|
@@ -844,6 +863,7 @@ var ProductShippingProfileSection = ({
|
|
|
844
863
|
import { Channels, PencilSquare as PencilSquare5 } from "@medusajs/icons";
|
|
845
864
|
import { Container as Container5, Heading as Heading5, Text as Text2, Tooltip as Tooltip4 } from "@medusajs/ui";
|
|
846
865
|
import { Trans, useTranslation as useTranslation6 } from "react-i18next";
|
|
866
|
+
import { DisplayExtensionZone as DisplayExtensionZone5 } from "@mercurjs/dashboard-shared";
|
|
847
867
|
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
848
868
|
var ProductSalesChannelSection = ({
|
|
849
869
|
product
|
|
@@ -922,7 +942,8 @@ var ProductSalesChannelSection = ({
|
|
|
922
942
|
)
|
|
923
943
|
]
|
|
924
944
|
}
|
|
925
|
-
) }) })
|
|
945
|
+
) }) }),
|
|
946
|
+
/* @__PURE__ */ jsx6(DisplayExtensionZone5, { model: "product", zone: "sales-channels", data: product })
|
|
926
947
|
] });
|
|
927
948
|
};
|
|
928
949
|
|
|
@@ -945,16 +966,16 @@ var Root = ({ children }) => {
|
|
|
945
966
|
throw error;
|
|
946
967
|
}
|
|
947
968
|
return Children.count(children) > 0 ? /* @__PURE__ */ jsx7(TwoColumnPage, { data: product, "data-testid": "product-detail-page", children }) : /* @__PURE__ */ jsxs6(TwoColumnPage, { data: product, "data-testid": "product-detail-page", children: [
|
|
948
|
-
/* @__PURE__ */
|
|
969
|
+
/* @__PURE__ */ jsx7(TwoColumnPage.Main, { "data-testid": "product-detail-main", children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "product.detail.main", data: product, children: [
|
|
949
970
|
/* @__PURE__ */ jsx7(ProductActiveEditSection, { product }),
|
|
950
971
|
/* @__PURE__ */ jsx7(ProductGeneralSection, { product }),
|
|
951
972
|
/* @__PURE__ */ jsx7(ProductMediaSection, { product }),
|
|
952
973
|
/* @__PURE__ */ jsx7(ProductVariantSection, { product })
|
|
953
|
-
] }),
|
|
954
|
-
/* @__PURE__ */
|
|
974
|
+
] }) }),
|
|
975
|
+
/* @__PURE__ */ jsx7(TwoColumnPage.Sidebar, { "data-testid": "product-detail-sidebar", children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "product.detail.side", data: product, children: [
|
|
955
976
|
/* @__PURE__ */ jsx7(ProductOrganizationSection, { product }),
|
|
956
977
|
/* @__PURE__ */ jsx7(ProductAttributeSection, { product })
|
|
957
|
-
] })
|
|
978
|
+
] }) })
|
|
958
979
|
] });
|
|
959
980
|
};
|
|
960
981
|
var ProductDetailPage = Object.assign(Root, {
|
|
@@ -971,5 +992,6 @@ var ProductDetailPage = Object.assign(Root, {
|
|
|
971
992
|
});
|
|
972
993
|
export {
|
|
973
994
|
ProductDetailPage,
|
|
974
|
-
loader
|
|
995
|
+
loader,
|
|
996
|
+
productDetailQueryWithLinks
|
|
975
997
|
};
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
usePromotionTableColumns,
|
|
9
9
|
usePromotionTableQuery
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-VR7P4DAZ.js";
|
|
11
|
+
import "./chunk-GGXGKMYK.js";
|
|
12
12
|
import "./chunk-JHIMVLB2.js";
|
|
13
13
|
import {
|
|
14
14
|
usePromotionTableFilters
|
|
@@ -19,18 +19,18 @@ import "./chunk-PHOCVOZ5.js";
|
|
|
19
19
|
import {
|
|
20
20
|
currencies
|
|
21
21
|
} from "./chunk-IQPN4PZJ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-ESXMD6CR.js";
|
|
23
|
+
import {
|
|
24
|
+
TwoColumnPage
|
|
25
|
+
} from "./chunk-YV6MK4PZ.js";
|
|
23
26
|
import "./chunk-FQERBIVS.js";
|
|
24
27
|
import {
|
|
25
28
|
_DataTable,
|
|
26
29
|
useDataTable
|
|
27
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7TQNE3E2.js";
|
|
28
31
|
import "./chunk-YN3FGNJM.js";
|
|
29
32
|
import "./chunk-KCHYLLVG.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
TwoColumnPage
|
|
33
|
-
} from "./chunk-YV6MK4PZ.js";
|
|
33
|
+
import "./chunk-CVXKASWV.js";
|
|
34
34
|
import "./chunk-THHRRYRS.js";
|
|
35
35
|
import "./chunk-LRD242C7.js";
|
|
36
36
|
import {
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
useCampaign,
|
|
49
49
|
useDeleteCampaign,
|
|
50
50
|
useRemovePromotionFromCampaign
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-JIXW4WHZ.js";
|
|
52
52
|
import {
|
|
53
53
|
queryClient
|
|
54
54
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -59,15 +59,17 @@ import {
|
|
|
59
59
|
import "./chunk-NBMM2TZK.js";
|
|
60
60
|
|
|
61
61
|
// src/pages/campaigns/[id]/loader.tsx
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
})
|
|
62
|
+
import { getLinkQuery } from "@mercurjs/dashboard-shared";
|
|
63
|
+
var campaignDetailQuery = (id) => {
|
|
64
|
+
const query = getLinkQuery("campaign", CAMPAIGN_DETAIL_FIELDS);
|
|
65
|
+
return {
|
|
66
|
+
queryKey: campaignsQueryKeys.detail(id, query),
|
|
67
|
+
queryFn: async () => fetchQuery(`/vendor/campaigns/${id}`, {
|
|
68
|
+
method: "GET",
|
|
69
|
+
query
|
|
70
|
+
})
|
|
71
|
+
};
|
|
72
|
+
};
|
|
71
73
|
var loader = async ({ params }) => {
|
|
72
74
|
const id = params.id;
|
|
73
75
|
const query = campaignDetailQuery(id);
|
|
@@ -77,11 +79,13 @@ var loader = async ({ params }) => {
|
|
|
77
79
|
// src/pages/campaigns/[id]/campaign-detail-page.tsx
|
|
78
80
|
import { Children } from "react";
|
|
79
81
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
82
|
+
import { WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
80
83
|
|
|
81
84
|
// src/pages/campaigns/[id]/_components/campaign-budget/campaign-budget.tsx
|
|
82
85
|
import { ChartPie, PencilSquare } from "@medusajs/icons";
|
|
83
86
|
import { Container, Heading, Text } from "@medusajs/ui";
|
|
84
87
|
import { Trans, useTranslation } from "react-i18next";
|
|
88
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
85
89
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
86
90
|
var CampaignBudget = ({ campaign }) => {
|
|
87
91
|
const { t } = useTranslation();
|
|
@@ -148,7 +152,8 @@ var CampaignBudget = ({ campaign }) => {
|
|
|
148
152
|
}
|
|
149
153
|
)
|
|
150
154
|
}
|
|
151
|
-
) })
|
|
155
|
+
) }),
|
|
156
|
+
/* @__PURE__ */ jsx(DisplayExtensionZone, { model: "campaign", zone: "budget", data: campaign })
|
|
152
157
|
] });
|
|
153
158
|
};
|
|
154
159
|
|
|
@@ -156,6 +161,7 @@ var CampaignBudget = ({ campaign }) => {
|
|
|
156
161
|
import { Container as Container2, Heading as Heading2 } from "@medusajs/ui";
|
|
157
162
|
import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
|
|
158
163
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
164
|
+
import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
|
|
159
165
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
160
166
|
var CampaignConfigurationSection = ({
|
|
161
167
|
campaign
|
|
@@ -188,6 +194,14 @@ var CampaignConfigurationSection = ({
|
|
|
188
194
|
endsAt: campaign.ends_at,
|
|
189
195
|
showTime: true
|
|
190
196
|
}
|
|
197
|
+
),
|
|
198
|
+
/* @__PURE__ */ jsx2(
|
|
199
|
+
DisplayExtensionZone2,
|
|
200
|
+
{
|
|
201
|
+
model: "campaign",
|
|
202
|
+
zone: "configuration",
|
|
203
|
+
data: campaign
|
|
204
|
+
}
|
|
191
205
|
)
|
|
192
206
|
] });
|
|
193
207
|
};
|
|
@@ -205,6 +219,7 @@ import {
|
|
|
205
219
|
} from "@medusajs/ui";
|
|
206
220
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
207
221
|
import { useNavigate } from "react-router-dom";
|
|
222
|
+
import { DisplayExtensionZone as DisplayExtensionZone3, DisplayField } from "@mercurjs/dashboard-shared";
|
|
208
223
|
|
|
209
224
|
// src/pages/campaigns/common/utils/campaign-status.ts
|
|
210
225
|
import { isAfter, isBefore } from "date-fns";
|
|
@@ -272,9 +287,18 @@ var CampaignGeneralSection = ({
|
|
|
272
287
|
const status = campaignStatus(campaign);
|
|
273
288
|
return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", children: [
|
|
274
289
|
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
275
|
-
/* @__PURE__ */ jsx3(Heading3, { children: campaign.name }),
|
|
290
|
+
/* @__PURE__ */ jsx3(DisplayField, { model: "campaign", zone: "general", id: "name", data: campaign, children: /* @__PURE__ */ jsx3(Heading3, { children: campaign.name }) }),
|
|
276
291
|
/* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-4", children: [
|
|
277
|
-
/* @__PURE__ */ jsx3(
|
|
292
|
+
/* @__PURE__ */ jsx3(
|
|
293
|
+
DisplayField,
|
|
294
|
+
{
|
|
295
|
+
model: "campaign",
|
|
296
|
+
zone: "general",
|
|
297
|
+
id: "status",
|
|
298
|
+
data: campaign,
|
|
299
|
+
children: /* @__PURE__ */ jsx3(StatusBadge, { color: statusColor(status), children: t(`campaigns.status.${status}`) })
|
|
300
|
+
}
|
|
301
|
+
),
|
|
278
302
|
/* @__PURE__ */ jsx3(
|
|
279
303
|
ActionMenu,
|
|
280
304
|
{
|
|
@@ -302,21 +326,63 @@ var CampaignGeneralSection = ({
|
|
|
302
326
|
)
|
|
303
327
|
] })
|
|
304
328
|
] }),
|
|
305
|
-
/* @__PURE__ */
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
329
|
+
/* @__PURE__ */ jsx3(
|
|
330
|
+
DisplayField,
|
|
331
|
+
{
|
|
332
|
+
model: "campaign",
|
|
333
|
+
zone: "general",
|
|
334
|
+
id: "campaign_identifier",
|
|
335
|
+
data: campaign,
|
|
336
|
+
children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
337
|
+
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("campaigns.fields.identifier") }),
|
|
338
|
+
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", children: campaign.campaign_identifier })
|
|
339
|
+
] })
|
|
340
|
+
}
|
|
341
|
+
),
|
|
342
|
+
/* @__PURE__ */ jsx3(
|
|
343
|
+
DisplayField,
|
|
344
|
+
{
|
|
345
|
+
model: "campaign",
|
|
346
|
+
zone: "general",
|
|
347
|
+
id: "description",
|
|
348
|
+
data: campaign,
|
|
349
|
+
children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
350
|
+
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.description") }),
|
|
351
|
+
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", children: campaign.description || "-" })
|
|
352
|
+
] })
|
|
353
|
+
}
|
|
354
|
+
),
|
|
355
|
+
campaign?.budget && campaign.budget.type === "spend" && /* @__PURE__ */ jsx3(
|
|
356
|
+
DisplayField,
|
|
357
|
+
{
|
|
358
|
+
model: "campaign",
|
|
359
|
+
zone: "general",
|
|
360
|
+
id: "currency_code",
|
|
361
|
+
data: campaign,
|
|
362
|
+
children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
363
|
+
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.currency") }),
|
|
364
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
365
|
+
/* @__PURE__ */ jsx3(Badge, { size: "xsmall", children: campaign?.budget.currency_code }),
|
|
366
|
+
/* @__PURE__ */ jsx3(Text2, { className: "inline pl-3", size: "small", leading: "compact", children: currencies[campaign?.budget.currency_code?.toUpperCase()]?.name })
|
|
367
|
+
] })
|
|
368
|
+
] })
|
|
369
|
+
}
|
|
370
|
+
),
|
|
371
|
+
/* @__PURE__ */ jsx3(
|
|
372
|
+
DisplayExtensionZone3,
|
|
373
|
+
{
|
|
374
|
+
model: "campaign",
|
|
375
|
+
zone: "general",
|
|
376
|
+
data: campaign,
|
|
377
|
+
builtInFieldIds: [
|
|
378
|
+
"name",
|
|
379
|
+
"status",
|
|
380
|
+
"campaign_identifier",
|
|
381
|
+
"description",
|
|
382
|
+
"currency_code"
|
|
383
|
+
]
|
|
384
|
+
}
|
|
385
|
+
)
|
|
320
386
|
] });
|
|
321
387
|
};
|
|
322
388
|
|
|
@@ -327,6 +393,7 @@ import { createColumnHelper } from "@tanstack/react-table";
|
|
|
327
393
|
import { useMemo, useState } from "react";
|
|
328
394
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
329
395
|
import { Link } from "react-router-dom";
|
|
396
|
+
import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
|
|
330
397
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
331
398
|
var PAGE_SIZE = 10;
|
|
332
399
|
var CampaignPromotionSection = ({
|
|
@@ -428,6 +495,14 @@ var CampaignPromotionSection = ({
|
|
|
428
495
|
message: t("campaigns.promotions.list.noRecordsMessage")
|
|
429
496
|
}
|
|
430
497
|
}
|
|
498
|
+
),
|
|
499
|
+
/* @__PURE__ */ jsx4(
|
|
500
|
+
DisplayExtensionZone4,
|
|
501
|
+
{
|
|
502
|
+
model: "campaign",
|
|
503
|
+
zone: "promotions",
|
|
504
|
+
data: campaign
|
|
505
|
+
}
|
|
431
506
|
)
|
|
432
507
|
] });
|
|
433
508
|
};
|
|
@@ -522,6 +597,7 @@ var useColumns = () => {
|
|
|
522
597
|
import { CurrencyDollar } from "@medusajs/icons";
|
|
523
598
|
import { Container as Container5, Heading as Heading5, Text as Text3 } from "@medusajs/ui";
|
|
524
599
|
import { Trans as Trans2, useTranslation as useTranslation5 } from "react-i18next";
|
|
600
|
+
import { DisplayExtensionZone as DisplayExtensionZone5 } from "@mercurjs/dashboard-shared";
|
|
525
601
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
526
602
|
var CampaignSpend = ({ campaign }) => {
|
|
527
603
|
const { t } = useTranslation5();
|
|
@@ -563,7 +639,8 @@ var CampaignSpend = ({ campaign }) => {
|
|
|
563
639
|
}
|
|
564
640
|
)
|
|
565
641
|
}
|
|
566
|
-
) })
|
|
642
|
+
) }),
|
|
643
|
+
/* @__PURE__ */ jsx5(DisplayExtensionZone5, { model: "campaign", zone: "spend", data: campaign })
|
|
567
644
|
] });
|
|
568
645
|
};
|
|
569
646
|
|
|
@@ -573,9 +650,10 @@ var Root = ({ children }) => {
|
|
|
573
650
|
const initialData = useLoaderData();
|
|
574
651
|
const { id } = useParams();
|
|
575
652
|
const { searchParams } = usePromotionTableQuery({});
|
|
653
|
+
const linkQuery = useLinkQuery("campaign", CAMPAIGN_DETAIL_FIELDS);
|
|
576
654
|
const { campaign, isLoading, isError, error } = useCampaign(
|
|
577
655
|
id,
|
|
578
|
-
{ ...searchParams,
|
|
656
|
+
{ ...searchParams, ...linkQuery },
|
|
579
657
|
{
|
|
580
658
|
placeholderData: initialData
|
|
581
659
|
}
|
|
@@ -587,15 +665,15 @@ var Root = ({ children }) => {
|
|
|
587
665
|
throw error;
|
|
588
666
|
}
|
|
589
667
|
return /* @__PURE__ */ jsx6(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs6(TwoColumnPage, { hasOutlet: true, data: campaign, children: [
|
|
590
|
-
/* @__PURE__ */
|
|
668
|
+
/* @__PURE__ */ jsx6(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "campaigns.detail.main", data: campaign, children: [
|
|
591
669
|
/* @__PURE__ */ jsx6(CampaignGeneralSection, { campaign }),
|
|
592
670
|
/* @__PURE__ */ jsx6(CampaignPromotionSection, { campaign })
|
|
593
|
-
] }),
|
|
594
|
-
/* @__PURE__ */
|
|
671
|
+
] }) }),
|
|
672
|
+
/* @__PURE__ */ jsx6(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "campaigns.detail.side", data: campaign, children: [
|
|
595
673
|
/* @__PURE__ */ jsx6(CampaignConfigurationSection, { campaign }),
|
|
596
674
|
/* @__PURE__ */ jsx6(CampaignSpend, { campaign }),
|
|
597
675
|
/* @__PURE__ */ jsx6(CampaignBudget, { campaign })
|
|
598
|
-
] })
|
|
676
|
+
] }) })
|
|
599
677
|
] }) });
|
|
600
678
|
};
|
|
601
679
|
var CampaignDetailPage = Object.assign(Root, {
|
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
IconAvatar
|
|
27
27
|
} from "./chunk-U2EI2ZLM.js";
|
|
28
|
-
import {
|
|
29
|
-
NoRecords
|
|
30
|
-
} from "./chunk-634XVU3D.js";
|
|
31
28
|
import {
|
|
32
29
|
TwoColumnPage
|
|
33
30
|
} from "./chunk-YV6MK4PZ.js";
|
|
31
|
+
import {
|
|
32
|
+
NoRecords
|
|
33
|
+
} from "./chunk-CVXKASWV.js";
|
|
34
34
|
import {
|
|
35
35
|
TwoColumnPageSkeleton
|
|
36
36
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -80,6 +80,7 @@ var locationLoader = async ({ params }) => {
|
|
|
80
80
|
// src/pages/settings/locations/[location_id]/location-detail-page.tsx
|
|
81
81
|
import { Children } from "react";
|
|
82
82
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
83
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
83
84
|
|
|
84
85
|
// src/pages/settings/locations/[location_id]/_components/location-general-section.tsx
|
|
85
86
|
import {
|
|
@@ -668,8 +669,8 @@ var Root = ({ children }) => {
|
|
|
668
669
|
throw error;
|
|
669
670
|
}
|
|
670
671
|
return /* @__PURE__ */ jsx3(Fragment3, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(TwoColumnPage, { data: location, hasOutlet: true, children: [
|
|
671
|
-
/* @__PURE__ */ jsx3(TwoColumnPage.Main, { children: /* @__PURE__ */ jsx3(LocationGeneralSection, { location }) }),
|
|
672
|
-
/* @__PURE__ */ jsx3(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx3(location_fulfillment_providers_section_default, { location }) })
|
|
672
|
+
/* @__PURE__ */ jsx3(TwoColumnPage.Main, { children: /* @__PURE__ */ jsx3(WidgetZone, { id: "locations.detail.main", data: location, children: /* @__PURE__ */ jsx3(LocationGeneralSection, { location }) }) }),
|
|
673
|
+
/* @__PURE__ */ jsx3(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx3(WidgetZone, { id: "locations.detail.side", data: location, children: /* @__PURE__ */ jsx3(location_fulfillment_providers_section_default, { location }) }) })
|
|
673
674
|
] }) });
|
|
674
675
|
};
|
|
675
676
|
var LocationDetailPage = Object.assign(Root, {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
TaxOverrideTable,
|
|
3
3
|
TaxRateLine,
|
|
4
4
|
useTaxOverrideTable
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EX5IIVVN.js";
|
|
6
6
|
import "./chunk-Q4UVXS46.js";
|
|
7
7
|
import {
|
|
8
8
|
TaxRegionCard
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
} from "./chunk-MG4GKUJW.js";
|
|
18
18
|
import "./chunk-JRTZWK77.js";
|
|
19
19
|
import "./chunk-U2EI2ZLM.js";
|
|
20
|
-
import "./chunk-YN3FGNJM.js";
|
|
21
|
-
import "./chunk-KCHYLLVG.js";
|
|
22
|
-
import "./chunk-634XVU3D.js";
|
|
23
20
|
import {
|
|
24
21
|
SingleColumnPage
|
|
25
22
|
} from "./chunk-YV6MK4PZ.js";
|
|
23
|
+
import "./chunk-YN3FGNJM.js";
|
|
24
|
+
import "./chunk-KCHYLLVG.js";
|
|
25
|
+
import "./chunk-CVXKASWV.js";
|
|
26
26
|
import "./chunk-THHRRYRS.js";
|
|
27
27
|
import {
|
|
28
28
|
SingleColumnPageSkeleton
|
|
@@ -41,22 +41,22 @@ import {
|
|
|
41
41
|
} from "./chunk-7MARNXFG.js";
|
|
42
42
|
import "./chunk-MNHP6YRC.js";
|
|
43
43
|
import "./chunk-NTJ3BMOE.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-CLS6PNZY.js";
|
|
45
|
+
import "./chunk-JIXW4WHZ.js";
|
|
46
46
|
import "./chunk-GZ4KTAWS.js";
|
|
47
47
|
import "./chunk-PUAWN7SS.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-4NADEZZQ.js";
|
|
49
|
+
import "./chunk-XWHHBJGS.js";
|
|
50
|
+
import "./chunk-5NVY7JZC.js";
|
|
51
51
|
import "./chunk-KIURBTC4.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-4EAC3GT7.js";
|
|
53
53
|
import "./chunk-JR7AABT5.js";
|
|
54
54
|
import "./chunk-ZQCCVCHB.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-MABIMRLS.js";
|
|
56
|
+
import "./chunk-ULEW54ED.js";
|
|
57
|
+
import "./chunk-UEPUKWD7.js";
|
|
58
58
|
import "./chunk-JJP6AKMV.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-744GLNZW.js";
|
|
60
60
|
import "./chunk-A5DJIOHN.js";
|
|
61
61
|
import {
|
|
62
62
|
queryClient
|
|
@@ -69,6 +69,7 @@ import "./chunk-NBMM2TZK.js";
|
|
|
69
69
|
|
|
70
70
|
// src/pages/settings/tax-regions/[id]/provinces/[province_id]/index.tsx
|
|
71
71
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
72
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
72
73
|
|
|
73
74
|
// src/pages/settings/tax-regions/[id]/provinces/[province_id]/_components/tax-region-detail-section.tsx
|
|
74
75
|
import { Badge, Container, Tooltip } from "@medusajs/ui";
|
|
@@ -194,10 +195,10 @@ var TaxRegionProvinceDetail = () => {
|
|
|
194
195
|
if (isError) {
|
|
195
196
|
throw error;
|
|
196
197
|
}
|
|
197
|
-
return /* @__PURE__ */
|
|
198
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { data: taxRegion, children: /* @__PURE__ */ jsxs2(WidgetZone, { id: "tax-regions.province.detail.main", data: taxRegion, children: [
|
|
198
199
|
/* @__PURE__ */ jsx4(TaxRegionProvinceDetailSection, { taxRegion }),
|
|
199
200
|
/* @__PURE__ */ jsx4(TaxRegionProvinceOverrideSection, { taxRegion })
|
|
200
|
-
] });
|
|
201
|
+
] }) });
|
|
201
202
|
};
|
|
202
203
|
var Component = TaxRegionProvinceDetail;
|
|
203
204
|
export {
|