@mercurjs/admin 2.0.0-canary.40 → 2.0.0-canary.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/dist/{add-campaign-promotions-ZUXBF5G3.js → add-campaign-promotions-7TPECJOT.js} +4 -4
  2. package/dist/{api-key-management-detail-SKJNAZ5L.js → api-key-management-detail-2EFDWJSF.js} +7 -7
  3. package/dist/{api-key-management-list-2D4WKI6Y.js → api-key-management-list-UZLHSM2R.js} +6 -5
  4. package/dist/{api-key-management-sales-channels-C7EWPHC2.js → api-key-management-sales-channels-ER5ZINL7.js} +6 -7
  5. package/dist/{campaign-create-B7XM2FZM.js → campaign-create-AFR3V7P4.js} +3 -3
  6. package/dist/{campaign-detail-7U4CQHU5.js → campaign-detail-UUNEZUY7.js} +9 -8
  7. package/dist/{campaign-list-SC7FLTRM.js → campaign-list-2AAGWYEG.js} +6 -5
  8. package/dist/category-create-LY45Z7YB.js +23 -0
  9. package/dist/{category-detail-HGHR3R2R.js → category-detail-AGTIMI6P.js} +7 -6
  10. package/dist/{category-list-QBBFGHQM.js → category-list-ROM7UTA4.js} +6 -5
  11. package/dist/{chunk-ENMRRG4N.js → chunk-2AWQ4FPA.js} +6 -6
  12. package/dist/{chunk-VBAAYYCS.js → chunk-2HPZJCAF.js} +6 -6
  13. package/dist/{chunk-SFG7JTBH.js → chunk-2LAANNMF.js} +111 -48
  14. package/dist/{chunk-KYUXTS2L.js → chunk-2UN7CNBG.js} +7 -7
  15. package/dist/chunk-3LTXCGNM.js +204 -0
  16. package/dist/{chunk-EDQBUWY7.js → chunk-3NIWL75F.js} +6 -6
  17. package/dist/{product-create-variant-CJPECBV4.js → chunk-4UTK7DZN.js} +63 -69
  18. package/dist/{chunk-5VEYNZSW.js → chunk-5322X23U.js} +9 -4
  19. package/dist/{chunk-U3SFHLUA.js → chunk-53IISBJZ.js} +1 -0
  20. package/dist/{chunk-DGCPYCHU.js → chunk-54RTJBYO.js} +63 -8
  21. package/dist/{chunk-E2AAYIHS.js → chunk-5EFOVNK2.js} +3 -3
  22. package/dist/{chunk-NQPAEBSZ.js → chunk-6E3T6CGY.js} +15 -7
  23. package/dist/{chunk-V2DXJ75C.js → chunk-6OA7JZ5E.js} +1 -1
  24. package/dist/chunk-72IQIAGX.js +245 -0
  25. package/dist/{chunk-3IYIS5UZ.js → chunk-7DOPC5GY.js} +4 -4
  26. package/dist/{chunk-Q6XCCONH.js → chunk-AI6RJGRQ.js} +9 -9
  27. package/dist/{price-list-create-OK7YYLAB.js → chunk-AJZQBGE4.js} +193 -428
  28. package/dist/{chunk-XDVS4B7W.js → chunk-BAV6Y7RC.js} +8 -7
  29. package/dist/{chunk-4WYBW3HK.js → chunk-BCAT7P6B.js} +3 -3
  30. package/dist/{chunk-LYT3RI4O.js → chunk-BHYDGWZ6.js} +18 -9
  31. package/dist/{chunk-DK3U2SRA.js → chunk-BIEYPCHL.js} +5 -5
  32. package/dist/{product-create-NVBKO426.js → chunk-BLG726FI.js} +36 -68
  33. package/dist/chunk-BVRI7YAR.js +100 -0
  34. package/dist/{chunk-2IGCU3KP.js → chunk-DOMRLXOI.js} +2 -2
  35. package/dist/{chunk-K6FXWZ2M.js → chunk-F55UXYYA.js} +10 -0
  36. package/dist/{chunk-AOVEX4EM.js → chunk-FNXSMFGL.js} +5 -5
  37. package/dist/{chunk-IXGP2EEN.js → chunk-FYAYHOCN.js} +2 -3
  38. package/dist/{chunk-QBOXELB5.js → chunk-GJHAVFXL.js} +4 -4
  39. package/dist/{price-list-prices-add-7PGUONDK.js → chunk-GOVOSXUU.js} +90 -290
  40. package/dist/{chunk-66IHH2HG.js → chunk-H6W6Q6YE.js} +3 -3
  41. package/dist/{seller-details-KROISMQC.js → chunk-HVLQFQGD.js} +74 -146
  42. package/dist/{chunk-QD6KYDYH.js → chunk-I6R4I7EF.js} +6 -6
  43. package/dist/{chunk-RIMR3ULR.js → chunk-ISYWL6RZ.js} +64 -33
  44. package/dist/{chunk-HHNJNKCB.js → chunk-KMUEJ3IE.js} +59 -20
  45. package/dist/{chunk-GJTIHFXG.js → chunk-KOILMFJX.js} +29 -31
  46. package/dist/{chunk-3SAH3NUS.js → chunk-LIXRNUG5.js} +1 -1
  47. package/dist/chunk-LOJD5572.js +433 -0
  48. package/dist/{chunk-T25UE7SS.js → chunk-MD56QRKC.js} +6 -6
  49. package/dist/{chunk-S4QUEQQK.js → chunk-MSFNMGFD.js} +48 -48
  50. package/dist/{chunk-YH4VQBAA.js → chunk-MX52GGQO.js} +81 -52
  51. package/dist/{chunk-O6O22BN4.js → chunk-N7BCAAJC.js} +113 -48
  52. package/dist/{chunk-JA2XIIIZ.js → chunk-NXKCVD5F.js} +6 -5
  53. package/dist/{chunk-G4QMLQF2.js → chunk-NZN7PFPB.js} +2 -4
  54. package/dist/{chunk-KUDLPUWR.js → chunk-OFWYMU6K.js} +8 -8
  55. package/dist/chunk-OOAY7PAK.js +1155 -0
  56. package/dist/chunk-PAQH5QQH.js +685 -0
  57. package/dist/{chunk-3H74EI2D.js → chunk-POCHIWE2.js} +100 -40
  58. package/dist/chunk-PXBCTPQO.js +248 -0
  59. package/dist/chunk-QSZ2FIM2.js +223 -0
  60. package/dist/{chunk-23663A2W.js → chunk-R5VKVG6S.js} +1 -1
  61. package/dist/{chunk-DP5U3GQU.js → chunk-RXUUBJSZ.js} +1 -1
  62. package/dist/{chunk-FYB5MS4F.js → chunk-S2GARTQU.js} +6 -6
  63. package/dist/{chunk-7TLEUIAL.js → chunk-SO6PXIPV.js} +21 -16
  64. package/dist/{category-create-UWBJGIED.js → chunk-ST74PSEZ.js} +78 -149
  65. package/dist/{chunk-33FUPXJL.js → chunk-T3OYE2MH.js} +4 -4
  66. package/dist/{chunk-JRWB7VWP.js → chunk-U4RMXPGI.js} +8 -8
  67. package/dist/{chunk-YGSM5PVN.js → chunk-UI2BJVP5.js} +1 -1
  68. package/dist/{chunk-FXU7SL6M.js → chunk-UOIUQC3P.js} +25 -15
  69. package/dist/{chunk-ZU2RNSCP.js → chunk-UONTDHRH.js} +4 -2
  70. package/dist/{chunk-J7SR4GW5.js → chunk-V3SHSLK4.js} +4 -4
  71. package/dist/{chunk-TE5VQBCL.js → chunk-V42ZR4XW.js} +8 -9
  72. package/dist/chunk-V5J73NPW.js +117 -0
  73. package/dist/{chunk-QP6XXG6A.js → chunk-VOFAM7HJ.js} +74 -42
  74. package/dist/{chunk-CR4E2DCR.js → chunk-VT3RBTYK.js} +3 -3
  75. package/dist/{chunk-AOVJTW7M.js → chunk-VWQYMOBM.js} +9 -9
  76. package/dist/{chunk-6L2LSIPR.js → chunk-VXAQZ2ZZ.js} +4 -4
  77. package/dist/{chunk-OSHCUDYY.js → chunk-X3KBQBGW.js} +6 -6
  78. package/dist/{chunk-WZADCDDE.js → chunk-X56THFPA.js} +2 -1
  79. package/dist/{chunk-HZKW7HRU.js → chunk-X7NWBH7T.js} +64 -35
  80. package/dist/{chunk-OFRQZHVQ.js → chunk-XE5ZMNUN.js} +6 -6
  81. package/dist/{chunk-4GVHNYZR.js → chunk-XHVYNMTA.js} +2 -2
  82. package/dist/{chunk-U2UCL2VG.js → chunk-XIZLPYEE.js} +3 -111
  83. package/dist/{chunk-KXPCEVFB.js → chunk-XOKRMMVP.js} +6 -6
  84. package/dist/{chunk-XVKRTPVM.js → chunk-Y5N26ZC3.js} +41 -15
  85. package/dist/{chunk-A6Z2Q7D5.js → chunk-Z2MDPTF2.js} +4 -2
  86. package/dist/{chunk-TKGZBTOS.js → chunk-ZFSZTRZ6.js} +54 -32
  87. package/dist/{chunk-RV6NZTNP.js → chunk-ZZEAWVFX.js} +27 -27
  88. package/dist/{collection-detail-YJ3FV2C6.js → collection-detail-SRR3HSIV.js} +7 -6
  89. package/dist/{collection-list-WDQOBHQN.js → collection-list-MKISW5S4.js} +6 -5
  90. package/dist/{commission-rate-detail-UQDIIMIK.js → commission-rate-detail-GLB733F3.js} +5 -4
  91. package/dist/{commission-rate-list-WTDZLKUR.js → commission-rate-list-5V3FQROA.js} +6 -5
  92. package/dist/{customer-detail-N7CS4IJU.js → customer-detail-SBQF232S.js} +4 -3
  93. package/dist/customer-group-add-customers-LCNDTLXR.js +1 -1
  94. package/dist/{customer-group-detail-UCTY4FF7.js → customer-group-detail-QQSNRM2K.js} +6 -5
  95. package/dist/{customer-group-list-XOQ64CVR.js → customer-group-list-IO7SVK3F.js} +15 -6
  96. package/dist/{customer-list-BUUO6OF7.js → customer-list-TXBAME4V.js} +4 -3
  97. package/dist/customers-add-customer-group-BKEV24N2.js +1 -1
  98. package/dist/index.d.ts +225 -16
  99. package/dist/index.js +581 -387
  100. package/dist/inventory-create-Q4JIXZTT.js +56 -0
  101. package/dist/{inventory-detail-BJT5WEV5.js → inventory-detail-3D37JWQT.js} +7 -6
  102. package/dist/{inventory-list-3LWBPWVK.js → inventory-list-WH42ADNB.js} +6 -5
  103. package/dist/{inventory-stock-G3GP4FZX.js → inventory-stock-DTKOGYT7.js} +6 -6
  104. package/dist/{location-detail-N7J6PEAP.js → location-detail-2SSHXSKL.js} +5 -4
  105. package/dist/location-fulfillment-providers-BHCY2MYC.js +1 -1
  106. package/dist/{location-list-UG6B47NP.js → location-list-LPISOSQI.js} +5 -4
  107. package/dist/{location-sales-channels-3IGHCJEN.js → location-sales-channels-PPH53OHD.js} +6 -7
  108. package/dist/location-service-zone-shipping-option-create-GSXLVEGO.js +57 -0
  109. package/dist/{location-service-zone-shipping-option-pricing-7VMPXDWX.js → location-service-zone-shipping-option-pricing-4CTGXBP3.js} +6 -6
  110. package/dist/marketplace-add-currencies-CIGOPBO6.js +1 -1
  111. package/dist/{marketplace-detail-7KJMXXAJ.js → marketplace-detail-3CBLIYVK.js} +6 -5
  112. package/dist/{order-detail-C25NQSZN.js → order-detail-AJV2PE7J.js} +7 -6
  113. package/dist/{order-edit-billing-address-NVRMPZEU.js → order-edit-billing-address-QQUPIC2H.js} +6 -6
  114. package/dist/{order-list-7NH7LROU.js → order-list-VPQOG5WE.js} +6 -5
  115. package/dist/pages/index.d.ts +2608 -82
  116. package/dist/pages/index.js +238 -156
  117. package/dist/{payout-detail-MDD5SRK5.js → payout-detail-PMR26YQI.js} +5 -4
  118. package/dist/{payout-list-XY2A5KYS.js → payout-list-DMG7MQM7.js} +6 -4
  119. package/dist/price-list-configuration-XK3IZLLX.js +1 -1
  120. package/dist/price-list-create-QS6CVEWS.js +76 -0
  121. package/dist/{price-list-detail-IGFSM77P.js → price-list-detail-IO5ZURVW.js} +7 -6
  122. package/dist/{price-list-list-TBXQ5DOS.js → price-list-list-B3FKB46L.js} +6 -5
  123. package/dist/price-list-prices-add-NSAQWBT6.js +71 -0
  124. package/dist/{price-list-prices-edit-QVGBT6AI.js → price-list-prices-edit-UOAIOS5X.js} +6 -6
  125. package/dist/product-create-UVKMOKRF.js +68 -0
  126. package/dist/product-create-variant-TCXDJ425.js +53 -0
  127. package/dist/{product-detail-ZC37BGPC.js → product-detail-273ME23P.js} +4 -4
  128. package/dist/{product-list-635ZXM2D.js → product-list-2ZHLFSBI.js} +5 -4
  129. package/dist/{product-media-ZMDAVPGI.js → product-media-YMFP6Q6A.js} +3 -3
  130. package/dist/{product-prices-WMRIC7WM.js → product-prices-X6JO3Y5A.js} +5 -5
  131. package/dist/{product-sales-channels-LSN5DVWZ.js → product-sales-channels-2PVBPK6W.js} +2 -3
  132. package/dist/{product-stock-HF42WRSC.js → product-stock-ARRFHDSU.js} +6 -6
  133. package/dist/{product-tag-detail-OJLYO3Q5.js → product-tag-detail-545AVFGA.js} +7 -6
  134. package/dist/{product-tag-list-XFHGJBRF.js → product-tag-list-2Y2Q7K3A.js} +7 -6
  135. package/dist/{product-type-detail-J4UA4AEM.js → product-type-detail-PBP572AM.js} +7 -6
  136. package/dist/{product-type-list-H5EQHCXS.js → product-type-list-XWNUKETZ.js} +6 -5
  137. package/dist/{product-variant-detail-5WKYURFA.js → product-variant-detail-RJUQWBYH.js} +4 -3
  138. package/dist/{profile-detail-EYNXOHGZ.js → profile-detail-H22ZBNOB.js} +5 -4
  139. package/dist/{promotion-add-campaign-B5SF72KC.js → promotion-add-campaign-5LCKEU6H.js} +3 -3
  140. package/dist/promotion-create-KXBEHXPK.js +54 -0
  141. package/dist/{promotion-detail-MVFOMS4E.js → promotion-detail-NZZ2HII7.js} +7 -6
  142. package/dist/{promotion-list-IN4VWEQN.js → promotion-list-KARWNOAQ.js} +9 -8
  143. package/dist/{refund-reason-list-DJZZC7KK.js → refund-reason-list-GTZQBZ7R.js} +3 -2
  144. package/dist/{region-detail-OFZHX57G.js → region-detail-3OPMLS4V.js} +5 -4
  145. package/dist/{region-list-L4FKHVJJ.js → region-list-542EMW5C.js} +6 -5
  146. package/dist/{reservation-detail-LZYEM5NW.js → reservation-detail-IPGIBQW4.js} +5 -4
  147. package/dist/{reservation-list-OGPDB7WG.js → reservation-list-CEFKMB2G.js} +6 -5
  148. package/dist/{reset-password-Q7Y4FWRE.js → reset-password-R5ULRWEM.js} +1 -1
  149. package/dist/{return-reason-list-6ICMSVKF.js → return-reason-list-S7LU655M.js} +5 -4
  150. package/dist/{sales-channel-detail-RRJG7U7R.js → sales-channel-detail-QCJ6OC3H.js} +7 -6
  151. package/dist/{sales-channel-list-LUZ4ZXCY.js → sales-channel-list-KYNBWXUD.js} +7 -7
  152. package/dist/seller-details-A7TYGP67.js +104 -0
  153. package/dist/{seller-list-664H4SI5.js → seller-list-5KPNNC2B.js} +7 -6
  154. package/dist/{shipping-option-type-detail-2RY3NHRO.js → shipping-option-type-detail-OBYOZZWS.js} +5 -4
  155. package/dist/{shipping-option-type-list-IOSOE33S.js → shipping-option-type-list-UGVMQ3DC.js} +6 -5
  156. package/dist/{shipping-profile-detail-RIIAX7VE.js → shipping-profile-detail-RYOFRMLH.js} +5 -4
  157. package/dist/{shipping-profiles-list-AL4EJSJY.js → shipping-profiles-list-XJGQ7AVX.js} +5 -4
  158. package/dist/{tax-region-create-UOTLTCOP.js → tax-region-create-AR2LNF2G.js} +6 -6
  159. package/dist/{tax-region-detail-CA2W5W6A.js → tax-region-detail-PIGY5JQ7.js} +7 -6
  160. package/dist/{tax-region-list-JTZ7KZCX.js → tax-region-list-AMGZWUAI.js} +6 -5
  161. package/dist/{tax-region-province-detail-ZHLX4FF4.js → tax-region-province-detail-D3R4FJT4.js} +6 -5
  162. package/dist/types-DUhfb5tH.d.ts +30 -0
  163. package/dist/{user-detail-YNPBC5MN.js → user-detail-H66ZAR7W.js} +5 -4
  164. package/dist/{user-list-LNTZNT3D.js → user-list-HIUXLIJV.js} +5 -4
  165. package/package.json +1 -1
  166. package/dist/chunk-62ZRA6BZ.js +0 -216
  167. package/dist/chunk-6PNMR6XP.js +0 -192
  168. package/dist/chunk-7COSFMM7.js +0 -163
  169. package/dist/chunk-A2KURGQO.js +0 -151
  170. package/dist/chunk-BHID7W3U.js +0 -78
  171. package/dist/chunk-UKLRBS4W.js +0 -61
  172. package/dist/inventory-create-QLEIHESO.js +0 -620
  173. package/dist/location-service-zone-shipping-option-create-GYPW6SSN.js +0 -811
  174. package/dist/promotion-create-D77SANLX.js +0 -1262
  175. package/dist/{adjust-inventory-HZCWL6SC.js → adjust-inventory-WL7D7TQR.js} +3 -3
  176. package/dist/{campaign-budget-edit-AIXCDGG3.js → campaign-budget-edit-722ECPRI.js} +3 -3
  177. package/dist/{category-products-XLCG2JR7.js → category-products-H3VFYGOU.js} +2 -2
  178. package/dist/{chunk-DEKJJ7NG.js → chunk-OFCUTNGV.js} +3 -3
  179. package/dist/{chunk-KUWNYCGL.js → chunk-U3OWJE7V.js} +0 -0
  180. package/dist/{collection-add-products-IQ7M63BA.js → collection-add-products-BQ2FZKR4.js} +1 -1
  181. package/dist/{commission-rate-create-VC72GTV4.js → commission-rate-create-GFQNADQS.js} +9 -9
  182. package/dist/{commission-rate-edit-AXJKJNFY.js → commission-rate-edit-A2BFZUEI.js} +9 -9
  183. package/dist/{location-service-zone-shipping-option-edit-E3GN4ZF5.js → location-service-zone-shipping-option-edit-KPECMUYB.js} +3 -3
  184. package/dist/{order-create-claim-7WW6MXTT.js → order-create-claim-IWTV2HKL.js} +6 -6
  185. package/dist/{order-create-edit-KAH6ZPLX.js → order-create-edit-H2MHZFIW.js} +5 -5
  186. package/dist/{order-create-exchange-ELLWF3IY.js → order-create-exchange-PPMRSGLD.js} +6 -6
  187. package/dist/{order-create-refund-5QZBOSCA.js → order-create-refund-LZOHRL7T.js} +3 -3
  188. package/dist/{order-create-return-L6DEDPJK.js → order-create-return-WY6R4QMN.js} +6 -6
  189. package/dist/{order-edit-shipping-address-BPU7OL2N.js → order-edit-shipping-address-XQCSN4YO.js} +3 -3
  190. package/dist/{order-receive-return-FW5QZJBM.js → order-receive-return-GKMHYD4G.js} +1 -1
  191. package/dist/{product-edit-LQJDUUVX.js → product-edit-QGRKGJ3H.js} +1 -1
  192. package/dist/{product-variant-edit-66ZUIIMP.js → product-variant-edit-IQLBIHDE.js} +1 -1
  193. package/dist/{product-variant-manage-inventory-items-CV2CC2PV.js → product-variant-manage-inventory-items-C77QHYRT.js} +3 -3
  194. package/dist/{promotion-edit-details-YKS24GBD.js → promotion-edit-details-BFXPUEE6.js} +4 -4
  195. package/dist/{region-create-UMJK3VGL.js → region-create-ZPY6V77Q.js} +3 -3
  196. package/dist/{region-edit-ODVSNJHM.js → region-edit-Q2CBVPR2.js} +3 -3
  197. package/dist/{sales-channel-add-products-EOWFSO35.js → sales-channel-add-products-PIY4PUIW.js} +2 -2
  198. package/dist/{tax-region-province-create-RFYCUDER.js → tax-region-province-create-7BMYABJ6.js} +3 -3
  199. package/dist/{tax-region-tax-override-create-WIWUNXW6.js → tax-region-tax-override-create-EBDKSAXG.js} +6 -6
  200. package/dist/{tax-region-tax-override-edit-SWROFQTP.js → tax-region-tax-override-edit-55ODL7KC.js} +6 -6
@@ -1,14 +1,15 @@
1
1
  import {
2
- TaxRegionsList
3
- } from "./chunk-GJTIHFXG.js";
4
- import "./chunk-ZU2RNSCP.js";
2
+ TaxRegionListPage
3
+ } from "./chunk-KOILMFJX.js";
4
+ import "./chunk-UONTDHRH.js";
5
5
  import "./chunk-D2XBJTUO.js";
6
6
  import "./chunk-N2TQXB44.js";
7
7
  import "./chunk-U2EI2ZLM.js";
8
8
  import "./chunk-JRTZWK77.js";
9
+ import "./chunk-V5J73NPW.js";
9
10
  import "./chunk-KAZ5BYTQ.js";
10
11
  import "./chunk-3EF54XFY.js";
11
- import "./chunk-U2UCL2VG.js";
12
+ import "./chunk-XIZLPYEE.js";
12
13
  import "./chunk-INNFZYX2.js";
13
14
  import "./chunk-BDGZ4EQO.js";
14
15
  import "./chunk-LAVHRER2.js";
@@ -22,5 +23,5 @@ import "./chunk-ZA2KFUFR.js";
22
23
  import "./chunk-ZYNBKBY3.js";
23
24
  import "./chunk-NBMM2TZK.js";
24
25
  export {
25
- TaxRegionsList as Component
26
+ TaxRegionListPage as Component
26
27
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
- TaxRegionDetail
3
- } from "./chunk-OFRQZHVQ.js";
2
+ TaxRegionProvinceDetailPage
3
+ } from "./chunk-XE5ZMNUN.js";
4
4
  import "./chunk-BGDOVLJF.js";
5
5
  import "./chunk-D2XBJTUO.js";
6
6
  import {
@@ -11,10 +11,11 @@ import "./chunk-LTBX54CI.js";
11
11
  import "./chunk-QDPLZDMX.js";
12
12
  import "./chunk-U2EI2ZLM.js";
13
13
  import "./chunk-JRTZWK77.js";
14
+ import "./chunk-V5J73NPW.js";
14
15
  import "./chunk-YBZWO4ZV.js";
15
16
  import "./chunk-KAZ5BYTQ.js";
16
17
  import "./chunk-3EF54XFY.js";
17
- import "./chunk-U2UCL2VG.js";
18
+ import "./chunk-XIZLPYEE.js";
18
19
  import "./chunk-INNFZYX2.js";
19
20
  import "./chunk-BDGZ4EQO.js";
20
21
  import "./chunk-LAVHRER2.js";
@@ -92,7 +93,7 @@ var taxRegionLoader = async ({ params }) => {
92
93
  };
93
94
  export {
94
95
  TaxRegionDetailBreadcrumb as Breadcrumb,
95
- TaxRegionDetail as Component,
96
- TaxRegionDetail,
96
+ TaxRegionProvinceDetailPage as Component,
97
+ TaxRegionProvinceDetailPage,
97
98
  taxRegionLoader as loader
98
99
  };
@@ -0,0 +1,30 @@
1
+ import { FieldValues, FieldPath, UseFormReturn } from 'react-hook-form';
2
+
3
+ interface TabDefinition<T extends FieldValues = FieldValues> {
4
+ /** Unique tab identifier, used as ProgressTabs value */
5
+ id: string;
6
+ /** i18n key for the tab label (used when `label` is not provided) */
7
+ labelKey: string;
8
+ /** Raw label string (overrides `labelKey`) */
9
+ label?: string;
10
+ /** Fields validated when navigating forward from this tab. If omitted, full form validation is used. */
11
+ validationFields?: FieldPath<T>[];
12
+ /** Predicate to conditionally show/hide this tab at runtime */
13
+ isVisible?: (form: UseFormReturn<T>) => boolean;
14
+ }
15
+ /**
16
+ * Helper to declare tab metadata on a component with type safety.
17
+ *
18
+ * Usage:
19
+ * ```ts
20
+ * const MyTab = () => { ... }
21
+ * MyTab._tabMeta = defineTabMeta<MyFormSchema>({
22
+ * id: "details",
23
+ * labelKey: "products.create.tabs.details",
24
+ * validationFields: ["title", "handle"],
25
+ * })
26
+ * ```
27
+ */
28
+ declare const defineTabMeta: <T extends FieldValues = FieldValues>(meta: TabDefinition<T>) => TabDefinition<T>;
29
+
30
+ export { type TabDefinition as T, defineTabMeta as d };
@@ -1,7 +1,8 @@
1
1
  import {
2
- UserDetail
3
- } from "./chunk-DK3U2SRA.js";
4
- import "./chunk-U2UCL2VG.js";
2
+ UserDetailPage
3
+ } from "./chunk-BIEYPCHL.js";
4
+ import "./chunk-V5J73NPW.js";
5
+ import "./chunk-XIZLPYEE.js";
5
6
  import "./chunk-INNFZYX2.js";
6
7
  import "./chunk-BDGZ4EQO.js";
7
8
  import "./chunk-LAVHRER2.js";
@@ -49,6 +50,6 @@ var userLoader = async ({ params }) => {
49
50
  };
50
51
  export {
51
52
  UserDetailBreadcrumb as Breadcrumb,
52
- UserDetail as Component,
53
+ UserDetailPage as Component,
53
54
  userLoader as loader
54
55
  };
@@ -1,13 +1,14 @@
1
1
  import {
2
- UserList
3
- } from "./chunk-E2AAYIHS.js";
2
+ UserListPage
3
+ } from "./chunk-5EFOVNK2.js";
4
4
  import "./chunk-25LYVP3C.js";
5
5
  import "./chunk-PHOCVOZ5.js";
6
+ import "./chunk-V5J73NPW.js";
6
7
  import "./chunk-ULJ3OMWU.js";
7
8
  import "./chunk-YBZWO4ZV.js";
8
9
  import "./chunk-KAZ5BYTQ.js";
9
10
  import "./chunk-3EF54XFY.js";
10
- import "./chunk-U2UCL2VG.js";
11
+ import "./chunk-XIZLPYEE.js";
11
12
  import "./chunk-INNFZYX2.js";
12
13
  import "./chunk-BDGZ4EQO.js";
13
14
  import "./chunk-LAVHRER2.js";
@@ -23,5 +24,5 @@ import "./chunk-ZA2KFUFR.js";
23
24
  import "./chunk-ZYNBKBY3.js";
24
25
  import "./chunk-NBMM2TZK.js";
25
26
  export {
26
- UserList as Component
27
+ UserListPage as Component
27
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/admin",
3
- "version": "2.0.0-canary.40",
3
+ "version": "2.0.0-canary.41",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",
@@ -1,216 +0,0 @@
1
- import {
2
- SingleColumnPage
3
- } from "./chunk-U2UCL2VG.js";
4
- import {
5
- useDataTableDateFilters
6
- } from "./chunk-DGCPYCHU.js";
7
- import {
8
- DataTable
9
- } from "./chunk-UQITHKTH.js";
10
- import {
11
- useQueryParams
12
- } from "./chunk-THHRRYRS.js";
13
- import {
14
- useDate
15
- } from "./chunk-UZWFZMOX.js";
16
- import {
17
- useCustomerGroups,
18
- useDeleteCustomerGroupLazy
19
- } from "./chunk-A5XOYSDC.js";
20
-
21
- // src/pages/customer-groups/customer-group-list/components/customer-group-list-table/customer-group-list-table.tsx
22
- import { PencilSquare, Trash } from "@medusajs/icons";
23
- import {
24
- Container,
25
- createDataTableColumnHelper,
26
- toast,
27
- usePrompt
28
- } from "@medusajs/ui";
29
- import { keepPreviousData } from "@tanstack/react-query";
30
- import { useCallback, useMemo } from "react";
31
- import { useTranslation } from "react-i18next";
32
- import { useNavigate } from "react-router-dom";
33
- import { jsx } from "react/jsx-runtime";
34
- var PAGE_SIZE = 10;
35
- var CustomerGroupListTable = () => {
36
- const { t } = useTranslation();
37
- const { q, order, offset, created_at, updated_at } = useQueryParams([
38
- "q",
39
- "order",
40
- "offset",
41
- "created_at",
42
- "updated_at"
43
- ]);
44
- const columns = useColumns();
45
- const filters = useFilters();
46
- const { customer_groups, count, isPending, isError, error } = useCustomerGroups(
47
- {
48
- q,
49
- order,
50
- offset: offset ? parseInt(offset) : void 0,
51
- limit: PAGE_SIZE,
52
- created_at: created_at ? JSON.parse(created_at) : void 0,
53
- updated_at: updated_at ? JSON.parse(updated_at) : void 0,
54
- fields: "id,name,created_at,updated_at,customers.id"
55
- },
56
- {
57
- placeholderData: keepPreviousData
58
- }
59
- );
60
- if (isError) {
61
- throw error;
62
- }
63
- return /* @__PURE__ */ jsx(SingleColumnPage, { children: /* @__PURE__ */ jsx(
64
- Container,
65
- {
66
- className: "overflow-hidden p-0",
67
- "data-testid": "customer-group-list-container",
68
- children: /* @__PURE__ */ jsx("div", { "data-testid": "customer-group-list-table", children: /* @__PURE__ */ jsx(
69
- DataTable,
70
- {
71
- data: customer_groups,
72
- columns,
73
- filters,
74
- heading: t("customerGroups.domain"),
75
- rowCount: count,
76
- getRowId: (row) => row.id,
77
- rowHref: (row) => `/customer-groups/${row.id}`,
78
- action: {
79
- label: t("actions.create"),
80
- to: "/customer-groups/create"
81
- },
82
- emptyState: {
83
- empty: {
84
- heading: t("customerGroups.list.empty.heading"),
85
- description: t("customerGroups.list.empty.description")
86
- },
87
- filtered: {
88
- heading: t("customerGroups.list.filtered.heading"),
89
- description: t("customerGroups.list.filtered.description")
90
- }
91
- },
92
- pageSize: PAGE_SIZE,
93
- isLoading: isPending
94
- }
95
- ) })
96
- }
97
- ) });
98
- };
99
- var columnHelper = createDataTableColumnHelper();
100
- var useColumns = () => {
101
- const { t } = useTranslation();
102
- const { getFullDate } = useDate();
103
- const navigate = useNavigate();
104
- const prompt = usePrompt();
105
- const { mutateAsync: deleteCustomerGroup } = useDeleteCustomerGroupLazy();
106
- const handleDeleteCustomerGroup = useCallback(
107
- async ({ id, name }) => {
108
- const res = await prompt({
109
- title: t("customerGroups.delete.title"),
110
- description: t("customerGroups.delete.description", {
111
- name
112
- }),
113
- verificationText: name,
114
- verificationInstruction: t("general.typeToConfirm"),
115
- confirmText: t("actions.delete"),
116
- cancelText: t("actions.cancel")
117
- });
118
- if (!res) {
119
- return;
120
- }
121
- await deleteCustomerGroup(
122
- { id },
123
- {
124
- onSuccess: () => {
125
- toast.success(t("customerGroups.delete.successToast", { name }));
126
- },
127
- onError: (e) => {
128
- toast.error(e.message);
129
- }
130
- }
131
- );
132
- },
133
- [t, prompt, deleteCustomerGroup]
134
- );
135
- return useMemo(() => {
136
- return [
137
- columnHelper.accessor("name", {
138
- header: t("fields.name"),
139
- enableSorting: true,
140
- sortAscLabel: t("filters.sorting.alphabeticallyAsc"),
141
- sortDescLabel: t("filters.sorting.alphabeticallyDesc")
142
- }),
143
- columnHelper.accessor("customers", {
144
- header: t("customers.domain"),
145
- cell: ({ row }) => {
146
- return /* @__PURE__ */ jsx("span", { children: row.original.customers?.length ?? 0 });
147
- }
148
- }),
149
- columnHelper.accessor("created_at", {
150
- header: t("fields.createdAt"),
151
- cell: ({ row }) => {
152
- return /* @__PURE__ */ jsx("span", { children: getFullDate({
153
- date: row.original.created_at,
154
- includeTime: true
155
- }) });
156
- },
157
- enableSorting: true,
158
- sortAscLabel: t("filters.sorting.dateAsc"),
159
- sortDescLabel: t("filters.sorting.dateDesc")
160
- }),
161
- columnHelper.accessor("updated_at", {
162
- header: t("fields.updatedAt"),
163
- cell: ({ row }) => {
164
- return /* @__PURE__ */ jsx("span", { children: getFullDate({
165
- date: row.original.updated_at,
166
- includeTime: true
167
- }) });
168
- },
169
- enableSorting: true,
170
- sortAscLabel: t("filters.sorting.dateAsc"),
171
- sortDescLabel: t("filters.sorting.dateDesc")
172
- }),
173
- columnHelper.action({
174
- actions: [
175
- [
176
- {
177
- icon: /* @__PURE__ */ jsx(PencilSquare, {}),
178
- label: t("actions.edit"),
179
- onClick: (row) => {
180
- navigate(`/customer-groups/${row.row.original.id}/edit`);
181
- }
182
- }
183
- ],
184
- [
185
- {
186
- icon: /* @__PURE__ */ jsx(Trash, {}),
187
- label: t("actions.delete"),
188
- onClick: (row) => {
189
- handleDeleteCustomerGroup({
190
- id: row.row.original.id,
191
- name: row.row.original.name ?? ""
192
- });
193
- }
194
- }
195
- ]
196
- ]
197
- })
198
- ];
199
- }, [t, navigate, getFullDate, handleDeleteCustomerGroup]);
200
- };
201
- var useFilters = () => {
202
- const dateFilters = useDataTableDateFilters();
203
- return useMemo(() => {
204
- return dateFilters;
205
- }, [dateFilters]);
206
- };
207
-
208
- // src/pages/customer-groups/customer-group-list/customer-group-list.tsx
209
- import { jsx as jsx2 } from "react/jsx-runtime";
210
- var CustomerGroupsList = () => {
211
- return /* @__PURE__ */ jsx2(SingleColumnPage, { children: /* @__PURE__ */ jsx2(CustomerGroupListTable, {}) });
212
- };
213
-
214
- export {
215
- CustomerGroupsList
216
- };
@@ -1,192 +0,0 @@
1
- import {
2
- useRegionTableColumns
3
- } from "./chunk-LQAAVRET.js";
4
- import {
5
- _DataTable,
6
- useDataTable
7
- } from "./chunk-ULJ3OMWU.js";
8
- import {
9
- SingleColumnPage
10
- } from "./chunk-U2UCL2VG.js";
11
- import {
12
- ActionMenu
13
- } from "./chunk-BDGZ4EQO.js";
14
- import {
15
- useRegionTableFilters
16
- } from "./chunk-ZQZHFMD7.js";
17
- import {
18
- useRegionTableQuery
19
- } from "./chunk-7SVLKK6Q.js";
20
- import {
21
- useDeleteRegion,
22
- useRegions
23
- } from "./chunk-QSM56ZOP.js";
24
-
25
- // src/pages/regions/region-list/region-list.tsx
26
- import { Children } from "react";
27
-
28
- // src/pages/regions/region-list/components/region-list-table/region-list-table.tsx
29
- import { PencilSquare, Trash } from "@medusajs/icons";
30
- import {
31
- Button,
32
- Container,
33
- Heading,
34
- Text,
35
- toast,
36
- usePrompt
37
- } from "@medusajs/ui";
38
- import { keepPreviousData } from "@tanstack/react-query";
39
- import { createColumnHelper } from "@tanstack/react-table";
40
- import { useMemo } from "react";
41
- import { useTranslation } from "react-i18next";
42
- import { Link } from "react-router-dom";
43
- import { jsx, jsxs } from "react/jsx-runtime";
44
- var PAGE_SIZE = 20;
45
- var RegionListTable = () => {
46
- const { t } = useTranslation();
47
- const { searchParams, raw } = useRegionTableQuery({ pageSize: PAGE_SIZE });
48
- const {
49
- regions,
50
- count,
51
- isPending: isLoading,
52
- isError,
53
- error
54
- } = useRegions(
55
- {
56
- ...searchParams,
57
- fields: "*payment_providers"
58
- },
59
- {
60
- placeholderData: keepPreviousData
61
- }
62
- );
63
- const filters = useRegionTableFilters();
64
- const columns = useColumns();
65
- const { table } = useDataTable({
66
- data: regions ?? [],
67
- columns,
68
- count,
69
- enablePagination: true,
70
- getRowId: (row) => row.id,
71
- pageSize: PAGE_SIZE
72
- });
73
- if (isError) {
74
- throw error;
75
- }
76
- return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", "data-testid": "region-list-table-container", children: [
77
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "region-list-table-header", children: [
78
- /* @__PURE__ */ jsxs("div", { children: [
79
- /* @__PURE__ */ jsx(Heading, { "data-testid": "region-list-table-heading", children: t("regions.domain") }),
80
- /* @__PURE__ */ jsx(Text, { className: "text-ui-fg-subtle", size: "small", "data-testid": "region-list-table-subtitle", children: t("regions.subtitle") })
81
- ] }),
82
- /* @__PURE__ */ jsx(Link, { to: "/settings/regions/create", children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", "data-testid": "region-list-table-create-button", children: t("actions.create") }) })
83
- ] }),
84
- /* @__PURE__ */ jsx(
85
- _DataTable,
86
- {
87
- table,
88
- columns,
89
- count,
90
- pageSize: PAGE_SIZE,
91
- isLoading,
92
- filters,
93
- orderBy: [
94
- { key: "name", label: t("fields.name") },
95
- { key: "created_at", label: t("fields.createdAt") },
96
- { key: "updated_at", label: t("fields.updatedAt") }
97
- ],
98
- navigateTo: (row) => `${row.original.id}`,
99
- pagination: true,
100
- search: true,
101
- queryObject: raw,
102
- noRecords: {
103
- message: t("regions.list.noRecordsMessage")
104
- },
105
- "data-testid": "region-list-table"
106
- }
107
- )
108
- ] });
109
- };
110
- var RegionActions = ({ region }) => {
111
- const { t } = useTranslation();
112
- const prompt = usePrompt();
113
- const { mutateAsync } = useDeleteRegion(region.id);
114
- const handleDelete = async () => {
115
- const res = await prompt({
116
- title: t("general.areYouSure"),
117
- description: t("regions.deleteRegionWarning", {
118
- name: region.name
119
- }),
120
- verificationText: region.name,
121
- verificationInstruction: t("general.typeToConfirm"),
122
- confirmText: t("actions.delete"),
123
- cancelText: t("actions.cancel")
124
- });
125
- if (!res) {
126
- return;
127
- }
128
- await mutateAsync(void 0, {
129
- onSuccess: () => {
130
- toast.success(t("regions.toast.delete"));
131
- },
132
- onError: (e) => {
133
- toast.error(e.message);
134
- }
135
- });
136
- };
137
- return /* @__PURE__ */ jsx(
138
- ActionMenu,
139
- {
140
- groups: [
141
- {
142
- actions: [
143
- {
144
- label: t("actions.edit"),
145
- to: `/settings/regions/${region.id}/edit`,
146
- icon: /* @__PURE__ */ jsx(PencilSquare, {})
147
- }
148
- ]
149
- },
150
- {
151
- actions: [
152
- {
153
- label: t("actions.delete"),
154
- onClick: handleDelete,
155
- icon: /* @__PURE__ */ jsx(Trash, {})
156
- }
157
- ]
158
- }
159
- ],
160
- "data-testid": `region-list-table-action-menu-${region.id}`
161
- }
162
- );
163
- };
164
- var columnHelper = createColumnHelper();
165
- var useColumns = () => {
166
- const base = useRegionTableColumns();
167
- return useMemo(
168
- () => [
169
- ...base,
170
- columnHelper.display({
171
- id: "actions",
172
- cell: ({ row }) => {
173
- return /* @__PURE__ */ jsx(RegionActions, { region: row.original });
174
- }
175
- })
176
- ],
177
- [base]
178
- );
179
- };
180
-
181
- // src/pages/regions/region-list/region-list.tsx
182
- import { jsx as jsx2 } from "react/jsx-runtime";
183
- var Root = ({ children }) => {
184
- return /* @__PURE__ */ jsx2(SingleColumnPage, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(RegionListTable, {}) });
185
- };
186
- var RegionList = Object.assign(Root, {
187
- Table: RegionListTable
188
- });
189
-
190
- export {
191
- RegionList
192
- };