@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
|
@@ -4,24 +4,24 @@ import "./chunk-VE6GRIIN.js";
|
|
|
4
4
|
import "./chunk-7MARNXFG.js";
|
|
5
5
|
import "./chunk-MNHP6YRC.js";
|
|
6
6
|
import "./chunk-NTJ3BMOE.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-CLS6PNZY.js";
|
|
8
|
+
import "./chunk-JIXW4WHZ.js";
|
|
9
9
|
import "./chunk-GZ4KTAWS.js";
|
|
10
10
|
import "./chunk-PUAWN7SS.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-4NADEZZQ.js";
|
|
12
|
+
import "./chunk-XWHHBJGS.js";
|
|
13
|
+
import "./chunk-5NVY7JZC.js";
|
|
14
14
|
import "./chunk-KIURBTC4.js";
|
|
15
15
|
import {
|
|
16
16
|
useProductCategory
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4EAC3GT7.js";
|
|
18
18
|
import "./chunk-JR7AABT5.js";
|
|
19
19
|
import "./chunk-ZQCCVCHB.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-MABIMRLS.js";
|
|
21
|
+
import "./chunk-ULEW54ED.js";
|
|
22
|
+
import "./chunk-UEPUKWD7.js";
|
|
23
23
|
import "./chunk-JJP6AKMV.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-744GLNZW.js";
|
|
25
25
|
import "./chunk-A5DJIOHN.js";
|
|
26
26
|
import "./chunk-RHKRREUU.js";
|
|
27
27
|
import "./chunk-ZA2KFUFR.js";
|
|
@@ -7,22 +7,22 @@ import "./chunk-VE6GRIIN.js";
|
|
|
7
7
|
import "./chunk-7MARNXFG.js";
|
|
8
8
|
import "./chunk-MNHP6YRC.js";
|
|
9
9
|
import "./chunk-NTJ3BMOE.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-CLS6PNZY.js";
|
|
11
|
+
import "./chunk-JIXW4WHZ.js";
|
|
12
12
|
import "./chunk-GZ4KTAWS.js";
|
|
13
13
|
import "./chunk-PUAWN7SS.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-4NADEZZQ.js";
|
|
15
|
+
import "./chunk-XWHHBJGS.js";
|
|
16
|
+
import "./chunk-5NVY7JZC.js";
|
|
17
17
|
import "./chunk-KIURBTC4.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-4EAC3GT7.js";
|
|
19
19
|
import "./chunk-JR7AABT5.js";
|
|
20
20
|
import "./chunk-ZQCCVCHB.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-MABIMRLS.js";
|
|
22
|
+
import "./chunk-ULEW54ED.js";
|
|
23
|
+
import "./chunk-UEPUKWD7.js";
|
|
24
24
|
import "./chunk-JJP6AKMV.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-744GLNZW.js";
|
|
26
26
|
import "./chunk-A5DJIOHN.js";
|
|
27
27
|
import "./chunk-RHKRREUU.js";
|
|
28
28
|
import "./chunk-ZA2KFUFR.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CustomerGroupDetailBreadcrumb
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7ZNZJIVN.js";
|
|
4
4
|
import "./chunk-SPFLYPY6.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-XWHHBJGS.js";
|
|
6
6
|
import "./chunk-RHKRREUU.js";
|
|
7
7
|
import "./chunk-ZA2KFUFR.js";
|
|
8
8
|
import "./chunk-LXZXXOJ3.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CampaignListPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U5MXCMDR.js";
|
|
4
4
|
import "./chunk-7TIZP4YG.js";
|
|
5
5
|
import "./chunk-DY3XQPHC.js";
|
|
6
6
|
import "./chunk-JHIMVLB2.js";
|
|
7
7
|
import "./chunk-SYNUA6LQ.js";
|
|
8
8
|
import "./chunk-PHOCVOZ5.js";
|
|
9
|
+
import "./chunk-YV6MK4PZ.js";
|
|
9
10
|
import "./chunk-FQERBIVS.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-7TQNE3E2.js";
|
|
11
12
|
import "./chunk-YN3FGNJM.js";
|
|
12
13
|
import "./chunk-KCHYLLVG.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-YV6MK4PZ.js";
|
|
14
|
+
import "./chunk-CVXKASWV.js";
|
|
15
15
|
import "./chunk-THHRRYRS.js";
|
|
16
16
|
import "./chunk-LRD242C7.js";
|
|
17
17
|
import "./chunk-INNFZYX2.js";
|
|
@@ -19,7 +19,7 @@ import "./chunk-BDGZ4EQO.js";
|
|
|
19
19
|
import "./chunk-LAVHRER2.js";
|
|
20
20
|
import "./chunk-QHQWEERJ.js";
|
|
21
21
|
import "./chunk-Y7QKP6QU.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-JIXW4WHZ.js";
|
|
23
23
|
import "./chunk-RHKRREUU.js";
|
|
24
24
|
import "./chunk-ZA2KFUFR.js";
|
|
25
25
|
import "./chunk-LXZXXOJ3.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CategoryListPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7CQ4RKVV.js";
|
|
4
4
|
import "./chunk-JHIMVLB2.js";
|
|
5
5
|
import "./chunk-LYYM7H7H.js";
|
|
6
6
|
import "./chunk-DB6ANJBO.js";
|
|
7
7
|
import "./chunk-PHOCVOZ5.js";
|
|
8
|
+
import "./chunk-YV6MK4PZ.js";
|
|
8
9
|
import "./chunk-FQERBIVS.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-7TQNE3E2.js";
|
|
10
11
|
import "./chunk-YN3FGNJM.js";
|
|
11
12
|
import "./chunk-KCHYLLVG.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-YV6MK4PZ.js";
|
|
13
|
+
import "./chunk-CVXKASWV.js";
|
|
14
14
|
import "./chunk-THHRRYRS.js";
|
|
15
15
|
import "./chunk-LRD242C7.js";
|
|
16
16
|
import "./chunk-WIYFXWRI.js";
|
|
@@ -18,8 +18,8 @@ import "./chunk-INNFZYX2.js";
|
|
|
18
18
|
import "./chunk-LAVHRER2.js";
|
|
19
19
|
import "./chunk-QHQWEERJ.js";
|
|
20
20
|
import "./chunk-Y7QKP6QU.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-4EAC3GT7.js";
|
|
22
|
+
import "./chunk-744GLNZW.js";
|
|
23
23
|
import "./chunk-A5DJIOHN.js";
|
|
24
24
|
import "./chunk-RHKRREUU.js";
|
|
25
25
|
import "./chunk-ZA2KFUFR.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-AJLGY3LQ.js";
|
|
4
4
|
import {
|
|
5
5
|
i18n
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ESXMD6CR.js";
|
|
7
7
|
import {
|
|
8
8
|
require_dist
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VYSB4CTB.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM
|
|
12
12
|
} from "./chunk-NBMM2TZK.js";
|
|
File without changes
|
|
@@ -7,19 +7,20 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
useProductTagTableFilters
|
|
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
|
useProductTags
|
|
19
19
|
} from "./chunk-BQHVM46E.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/settings/product-tags/product-tag-list-page.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
23
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
23
24
|
|
|
24
25
|
// src/pages/settings/product-tags/_components/product-tag-list-table.tsx
|
|
25
26
|
import { Children as Children2 } from "react";
|
|
@@ -123,7 +124,7 @@ var ProductTagListTable = ({
|
|
|
123
124
|
// src/pages/settings/product-tags/product-tag-list-page.tsx
|
|
124
125
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
125
126
|
var Root = ({ children }) => {
|
|
126
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { showMetadata: false, showJSON: false, hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(ProductTagListTable, {}) });
|
|
127
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { showMetadata: false, showJSON: false, hasOutlet: true, children: /* @__PURE__ */ jsx4(WidgetZone, { id: "product-tags.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(ProductTagListTable, {}) }) });
|
|
127
128
|
};
|
|
128
129
|
var ProductTagListPage = Object.assign(Root, {
|
|
129
130
|
Table: ProductTagListTable,
|
|
@@ -18,10 +18,12 @@ var membersQueryKeys = {
|
|
|
18
18
|
...queryKeysFactory(MEMBERS_QUERY_KEY),
|
|
19
19
|
me: () => [MEMBERS_QUERY_KEY, "me"]
|
|
20
20
|
};
|
|
21
|
-
var useMe = (options) => {
|
|
21
|
+
var useMe = (query, options) => {
|
|
22
22
|
const { data, ...rest } = useQuery({
|
|
23
|
-
queryFn: () => sdk.vendor.members.me.query(
|
|
24
|
-
|
|
23
|
+
queryFn: () => sdk.vendor.members.me.query(
|
|
24
|
+
query
|
|
25
|
+
),
|
|
26
|
+
queryKey: query ? [...membersQueryKeys.me(), query] : membersQueryKeys.me(),
|
|
25
27
|
...options
|
|
26
28
|
});
|
|
27
29
|
return {
|
|
@@ -96,6 +98,14 @@ var useCurrentSeller = () => {
|
|
|
96
98
|
error
|
|
97
99
|
};
|
|
98
100
|
};
|
|
101
|
+
var useSeller = (id, query, options) => {
|
|
102
|
+
const { data, ...rest } = useQuery2({
|
|
103
|
+
queryKey: sellersQueryKeys.detail(id, query),
|
|
104
|
+
queryFn: () => sdk.vendor.sellers.$id.query({ $id: id, ...query }),
|
|
105
|
+
...options
|
|
106
|
+
});
|
|
107
|
+
return { ...data, ...rest };
|
|
108
|
+
};
|
|
99
109
|
var useSellers = (query, options) => {
|
|
100
110
|
const { data, ...rest } = useQuery2({
|
|
101
111
|
queryKey: sellersQueryKeys.list(query),
|
|
@@ -200,6 +210,7 @@ export {
|
|
|
200
210
|
useMember,
|
|
201
211
|
useRemoveSellerMember,
|
|
202
212
|
useCurrentSeller,
|
|
213
|
+
useSeller,
|
|
203
214
|
useSellers,
|
|
204
215
|
useSelectSeller,
|
|
205
216
|
useUpdateSeller,
|
|
@@ -1,10 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDataTableDateFilters
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NWU7EGGF.js";
|
|
4
4
|
import {
|
|
5
5
|
useQueryParams
|
|
6
6
|
} from "./chunk-THHRRYRS.js";
|
|
7
7
|
|
|
8
|
+
// src/hooks/table/filters/use-attribute-table-filters.tsx
|
|
9
|
+
import { createDataTableFilterHelper } from "@medusajs/ui";
|
|
10
|
+
import { useMemo } from "react";
|
|
11
|
+
import { useTranslation } from "react-i18next";
|
|
12
|
+
var filterHelper = createDataTableFilterHelper();
|
|
13
|
+
var useAttributeTableFilters = () => {
|
|
14
|
+
const { t } = useTranslation();
|
|
15
|
+
const dateFilters = useDataTableDateFilters();
|
|
16
|
+
return useMemo(
|
|
17
|
+
() => [
|
|
18
|
+
filterHelper.accessor("is_filterable", {
|
|
19
|
+
label: t("attributes.fields.filterable"),
|
|
20
|
+
type: "select",
|
|
21
|
+
options: [
|
|
22
|
+
{ label: t("filters.radio.yes"), value: "true" },
|
|
23
|
+
{ label: t("filters.radio.no"), value: "false" }
|
|
24
|
+
]
|
|
25
|
+
}),
|
|
26
|
+
...dateFilters
|
|
27
|
+
],
|
|
28
|
+
[t, dateFilters]
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
|
|
8
32
|
// src/hooks/table/query/use-attribute-table-query.tsx
|
|
9
33
|
var useAttributeTableQuery = ({
|
|
10
34
|
prefix,
|
|
@@ -30,31 +54,7 @@ var useAttributeTableQuery = ({
|
|
|
30
54
|
};
|
|
31
55
|
};
|
|
32
56
|
|
|
33
|
-
// src/hooks/table/filters/use-attribute-table-filters.tsx
|
|
34
|
-
import { createDataTableFilterHelper } from "@medusajs/ui";
|
|
35
|
-
import { useMemo } from "react";
|
|
36
|
-
import { useTranslation } from "react-i18next";
|
|
37
|
-
var filterHelper = createDataTableFilterHelper();
|
|
38
|
-
var useAttributeTableFilters = () => {
|
|
39
|
-
const { t } = useTranslation();
|
|
40
|
-
const dateFilters = useDataTableDateFilters();
|
|
41
|
-
return useMemo(
|
|
42
|
-
() => [
|
|
43
|
-
filterHelper.accessor("is_filterable", {
|
|
44
|
-
label: t("attributes.fields.filterable"),
|
|
45
|
-
type: "select",
|
|
46
|
-
options: [
|
|
47
|
-
{ label: t("filters.radio.yes"), value: "true" },
|
|
48
|
-
{ label: t("filters.radio.no"), value: "false" }
|
|
49
|
-
]
|
|
50
|
-
}),
|
|
51
|
-
...dateFilters
|
|
52
|
-
],
|
|
53
|
-
[t, dateFilters]
|
|
54
|
-
);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
57
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
useAttributeTableFilters,
|
|
59
|
+
useAttributeTableQuery
|
|
60
60
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
productsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-744GLNZW.js";
|
|
4
4
|
import {
|
|
5
5
|
queryClient
|
|
6
6
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
} from "@tanstack/react-query";
|
|
19
19
|
var COLLECTION_QUERY_KEY = "collections";
|
|
20
20
|
var collectionsQueryKeys = queryKeysFactory(COLLECTION_QUERY_KEY);
|
|
21
|
-
var useCollection = (id, options) => {
|
|
21
|
+
var useCollection = (id, query, options) => {
|
|
22
22
|
const { data, ...rest } = useQuery({
|
|
23
|
-
queryKey: collectionsQueryKeys.detail(id),
|
|
24
|
-
queryFn: async () => sdk.vendor.collections.$id.query({ $id: id }),
|
|
23
|
+
queryKey: collectionsQueryKeys.detail(id, query),
|
|
24
|
+
queryFn: async () => sdk.vendor.collections.$id.query({ $id: id, ...query }),
|
|
25
25
|
...options
|
|
26
26
|
});
|
|
27
27
|
return { ...data, ...rest };
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
useDeleteProduct,
|
|
9
9
|
useUpdateProduct
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-744GLNZW.js";
|
|
11
11
|
|
|
12
12
|
// src/pages/products/[id]/_components/product-media-section/product-media-section.tsx
|
|
13
13
|
import { useState } from "react";
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
} from "@medusajs/ui";
|
|
26
26
|
import { useTranslation } from "react-i18next";
|
|
27
27
|
import { Link } from "react-router-dom";
|
|
28
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
28
29
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
30
|
var ProductMediaSection = ({
|
|
30
31
|
product,
|
|
@@ -186,7 +187,8 @@ var ProductMediaSection = ({
|
|
|
186
187
|
shortcut: "d"
|
|
187
188
|
}
|
|
188
189
|
)
|
|
189
|
-
] }) })
|
|
190
|
+
] }) }),
|
|
191
|
+
/* @__PURE__ */ jsx(DisplayExtensionZone, { model: "product", zone: "media", data: product })
|
|
190
192
|
] });
|
|
191
193
|
};
|
|
192
194
|
var getMedia = (product) => {
|
|
@@ -211,7 +213,16 @@ import { PencilSquare as PencilSquare2, Trash } from "@medusajs/icons";
|
|
|
211
213
|
import { Container as Container2, Heading as Heading2, StatusBadge, usePrompt as usePrompt2 } from "@medusajs/ui";
|
|
212
214
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
213
215
|
import { useNavigate } from "react-router-dom";
|
|
216
|
+
import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
|
|
214
217
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
218
|
+
var GENERAL_FIELD_IDS = [
|
|
219
|
+
"title",
|
|
220
|
+
"status",
|
|
221
|
+
"description",
|
|
222
|
+
"subtitle",
|
|
223
|
+
"handle",
|
|
224
|
+
"discountable"
|
|
225
|
+
];
|
|
215
226
|
var productStatusColor = (status) => {
|
|
216
227
|
switch (status) {
|
|
217
228
|
case "draft":
|
|
@@ -253,9 +264,18 @@ var ProductGeneralSection = ({
|
|
|
253
264
|
};
|
|
254
265
|
return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", children: [
|
|
255
266
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
256
|
-
/* @__PURE__ */ jsx2(Heading2, { children: product.title }),
|
|
267
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "product", zone: "general", id: "title", data: product, children: /* @__PURE__ */ jsx2(Heading2, { children: product.title }) }),
|
|
257
268
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-4", children: [
|
|
258
|
-
/* @__PURE__ */ jsx2(
|
|
269
|
+
/* @__PURE__ */ jsx2(
|
|
270
|
+
DisplayField,
|
|
271
|
+
{
|
|
272
|
+
model: "product",
|
|
273
|
+
zone: "general",
|
|
274
|
+
id: "status",
|
|
275
|
+
data: product,
|
|
276
|
+
children: /* @__PURE__ */ jsx2(StatusBadge, { color: productStatusColor(product.status), children: t(`products.productStatus.${product.status}`) })
|
|
277
|
+
}
|
|
278
|
+
),
|
|
259
279
|
/* @__PURE__ */ jsx2(
|
|
260
280
|
ActionMenu,
|
|
261
281
|
{
|
|
@@ -283,26 +303,44 @@ var ProductGeneralSection = ({
|
|
|
283
303
|
)
|
|
284
304
|
] })
|
|
285
305
|
] }),
|
|
286
|
-
/* @__PURE__ */ jsx2(
|
|
306
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "product", zone: "general", id: "description", data: product, children: /* @__PURE__ */ jsx2(
|
|
287
307
|
SectionRow,
|
|
288
308
|
{
|
|
289
309
|
title: t("fields.description"),
|
|
290
310
|
value: product.description || "-"
|
|
291
311
|
}
|
|
292
|
-
),
|
|
293
|
-
/* @__PURE__ */ jsx2(
|
|
312
|
+
) }),
|
|
313
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "product", zone: "general", id: "subtitle", data: product, children: /* @__PURE__ */ jsx2(
|
|
294
314
|
SectionRow,
|
|
295
315
|
{
|
|
296
316
|
title: t("fields.subtitle"),
|
|
297
317
|
value: product.subtitle || "-"
|
|
298
318
|
}
|
|
319
|
+
) }),
|
|
320
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "product", zone: "general", id: "handle", data: product, children: /* @__PURE__ */ jsx2(SectionRow, { title: t("fields.handle"), value: `/${product.handle}` }) }),
|
|
321
|
+
/* @__PURE__ */ jsx2(
|
|
322
|
+
DisplayField,
|
|
323
|
+
{
|
|
324
|
+
model: "product",
|
|
325
|
+
zone: "general",
|
|
326
|
+
id: "discountable",
|
|
327
|
+
data: product,
|
|
328
|
+
children: /* @__PURE__ */ jsx2(
|
|
329
|
+
SectionRow,
|
|
330
|
+
{
|
|
331
|
+
title: t("fields.discountable"),
|
|
332
|
+
value: product.discountable ? t("general.true") : t("general.false")
|
|
333
|
+
}
|
|
334
|
+
)
|
|
335
|
+
}
|
|
299
336
|
),
|
|
300
|
-
/* @__PURE__ */ jsx2(SectionRow, { title: t("fields.handle"), value: `/${product.handle}` }),
|
|
301
337
|
/* @__PURE__ */ jsx2(
|
|
302
|
-
|
|
338
|
+
DisplayExtensionZone2,
|
|
303
339
|
{
|
|
304
|
-
|
|
305
|
-
|
|
340
|
+
model: "product",
|
|
341
|
+
zone: "general",
|
|
342
|
+
data: product,
|
|
343
|
+
builtInFieldIds: GENERAL_FIELD_IDS
|
|
306
344
|
}
|
|
307
345
|
)
|
|
308
346
|
] });
|
|
@@ -306,7 +306,7 @@ var useInventoryItems = (query, options) => {
|
|
|
306
306
|
var useInventoryItem = (id, query, options) => {
|
|
307
307
|
const { data, ...rest } = useQuery3({
|
|
308
308
|
queryFn: () => sdk.vendor.inventoryItems.$id.query({ $id: id, ...query }),
|
|
309
|
-
queryKey: inventoryItemsQueryKeys.detail(id),
|
|
309
|
+
queryKey: inventoryItemsQueryKeys.detail(id, query),
|
|
310
310
|
...options
|
|
311
311
|
});
|
|
312
312
|
return { ...data, ...rest };
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
StatusCell
|
|
13
13
|
} from "./chunk-DB6ANJBO.js";
|
|
14
|
-
import {
|
|
15
|
-
_DataTable,
|
|
16
|
-
useDataTable
|
|
17
|
-
} from "./chunk-W3UHAQCV.js";
|
|
18
14
|
import {
|
|
19
15
|
SingleColumnPage
|
|
20
16
|
} from "./chunk-YV6MK4PZ.js";
|
|
17
|
+
import {
|
|
18
|
+
_DataTable,
|
|
19
|
+
useDataTable
|
|
20
|
+
} from "./chunk-7TQNE3E2.js";
|
|
21
21
|
import {
|
|
22
22
|
useQueryParams
|
|
23
23
|
} from "./chunk-THHRRYRS.js";
|
|
@@ -26,10 +26,11 @@ import {
|
|
|
26
26
|
} from "./chunk-WIYFXWRI.js";
|
|
27
27
|
import {
|
|
28
28
|
useProductCategories
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4EAC3GT7.js";
|
|
30
30
|
|
|
31
31
|
// src/pages/categories/category-list-page.tsx
|
|
32
32
|
import { Children as Children3 } from "react";
|
|
33
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
33
34
|
|
|
34
35
|
// src/pages/categories/_components/category-list-table/category-list-table.tsx
|
|
35
36
|
import { Children as Children2 } from "react";
|
|
@@ -64,6 +65,7 @@ var CategoryListHeader = ({
|
|
|
64
65
|
|
|
65
66
|
// src/pages/categories/_components/category-list-table/category-list-data-table.tsx
|
|
66
67
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
68
|
+
import { useExtendableTable, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
67
69
|
import { useMemo as useMemo2 } from "react";
|
|
68
70
|
|
|
69
71
|
// src/pages/categories/_components/category-list-table/use-category-table-columns.tsx
|
|
@@ -180,14 +182,22 @@ var CategoryListDataTable = () => {
|
|
|
180
182
|
const { raw, searchParams } = useCategoryTableQuery({
|
|
181
183
|
pageSize: PAGE_SIZE
|
|
182
184
|
});
|
|
185
|
+
const ancestorsLinkQuery = useLinkQuery(
|
|
186
|
+
"category",
|
|
187
|
+
"id,name,handle,is_active,is_internal,parent_category"
|
|
188
|
+
);
|
|
189
|
+
const descendantsLinkQuery = useLinkQuery(
|
|
190
|
+
"category",
|
|
191
|
+
"id,name,category_children,handle,is_internal,is_active"
|
|
192
|
+
);
|
|
183
193
|
const query = raw.q ? {
|
|
184
194
|
include_ancestors_tree: true,
|
|
185
|
-
|
|
195
|
+
...ancestorsLinkQuery,
|
|
186
196
|
...searchParams
|
|
187
197
|
} : {
|
|
188
198
|
include_descendants_tree: true,
|
|
189
199
|
parent_category_id: "null",
|
|
190
|
-
|
|
200
|
+
...descendantsLinkQuery,
|
|
191
201
|
...searchParams
|
|
192
202
|
};
|
|
193
203
|
const { product_categories, count, isLoading, isError, error } = useProductCategories(
|
|
@@ -228,7 +238,11 @@ var CategoryListDataTable = () => {
|
|
|
228
238
|
};
|
|
229
239
|
var useColumns = () => {
|
|
230
240
|
const base = useCategoryTableColumns();
|
|
231
|
-
|
|
241
|
+
const { columns: extended } = useExtendableTable({
|
|
242
|
+
model: "category",
|
|
243
|
+
columns: base
|
|
244
|
+
});
|
|
245
|
+
return useMemo2(() => [...extended], [extended]);
|
|
232
246
|
};
|
|
233
247
|
|
|
234
248
|
// src/pages/categories/_components/category-list-table/category-list-table.tsx
|
|
@@ -246,7 +260,7 @@ var CategoryListTable = ({ children }) => {
|
|
|
246
260
|
// src/pages/categories/category-list-page.tsx
|
|
247
261
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
248
262
|
var Root = ({ children }) => {
|
|
249
|
-
return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(CategoryListTable, {}) });
|
|
263
|
+
return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: true, children: /* @__PURE__ */ jsx5(WidgetZone, { id: "categories.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(CategoryListTable, {}) }) });
|
|
250
264
|
};
|
|
251
265
|
var CategoryListPage = Object.assign(Root, {
|
|
252
266
|
Table: CategoryListTable,
|