@mercurjs/vendor 2.1.2 → 2.2.0-canary.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.
Files changed (230) hide show
  1. package/dist/{[id]-PDGHF5J2.js → [id]-2DQX3YWJ.js} +35 -31
  2. package/dist/{[id]-TO6KT3ZE.js → [id]-4OBGG7OH.js} +23 -21
  3. package/dist/{[id]-X4DDKOMQ.js → [id]-4PKMKNJH.js} +26 -22
  4. package/dist/[id]-4STHLE4N.js +1442 -0
  5. package/dist/{[id]-4VCL3MMM.js → [id]-5UFO4RKF.js} +26 -22
  6. package/dist/{[id]-H3C3ZSC6.js → [id]-6MXCVV5J.js} +25 -21
  7. package/dist/{[id]-6PXEWRG7.js → [id]-7BAKUHUO.js} +13 -13
  8. package/dist/{[id]-7RUAH3TI.js → [id]-K2CT7BXQ.js} +4 -4
  9. package/dist/{[id]-3G5G7ZFV.js → [id]-KJIQTFGE.js} +22 -20
  10. package/dist/{[id]-INOFZHL7.js → [id]-LTNOHLGE.js} +16 -16
  11. package/dist/{[id]-B3LHVQM5.js → [id]-PGIT5WJC.js} +25 -21
  12. package/dist/{[id]-T2ROPEGY.js → [id]-Y2ISCLUD.js} +7 -7
  13. package/dist/{[id]-Y7GAMNC5.js → [id]-ZCMSBEVM.js} +4 -4
  14. package/dist/{[id]-UTKO3VG4.js → [id]-ZWWMJAKI.js} +9 -9
  15. package/dist/{[location_id]-D55RQOXT.js → [location_id]-NUBXDDJC.js} +9 -9
  16. package/dist/{[province_id]-OFH2ZOFQ.js → [province_id]-H2QAPKVH.js} +20 -18
  17. package/dist/{add-C6OX5C54.js → add-GZJ7OMV3.js} +34 -30
  18. package/dist/add-KQAABWCR.js +392 -0
  19. package/dist/{add-customer-groups-PJRJUWS2.js → add-customer-groups-RAHCP67U.js} +16 -14
  20. package/dist/{add-products-INOLNPO6.js → add-products-TSVQHC67.js} +23 -19
  21. package/dist/{add-promotions-AHDOP52Q.js → add-promotions-CSCAJZHV.js} +7 -7
  22. package/dist/{add-to-campaign-HL6NGRR4.js → add-to-campaign-DLP7PSQB.js} +4 -4
  23. package/dist/{address-KRENKSLP.js → address-7F5SN7PV.js} +17 -15
  24. package/dist/{adjust-inventory-H4EUP7J3.js → adjust-inventory-SZF4W7LR.js} +2 -2
  25. package/dist/{allocate-items-SUCUZU4D.js → allocate-items-SDFS5GYN.js} +6 -6
  26. package/dist/{areas-UUMZDXLX.js → areas-7Y6BVS5A.js} +8 -8
  27. package/dist/{attributes-CALEHJJG.js → attributes-MBZ76HVZ.js} +3 -3
  28. package/dist/{breadcrumb-BS7Y5OKF.js → breadcrumb-65SAGUUL.js} +2 -2
  29. package/dist/{breadcrumb-6W2VP3OZ.js → breadcrumb-7PURSRTT.js} +13 -11
  30. package/dist/{breadcrumb-M5Z5WA6I.js → breadcrumb-EDPMEN2P.js} +2 -2
  31. package/dist/breadcrumb-FLDHJRVY.js +26 -0
  32. package/dist/{breadcrumb-VNNZ3TTW.js → breadcrumb-HND5FFWC.js} +2 -2
  33. package/dist/{breadcrumb-OIGGCB3L.js → breadcrumb-QV2IAX7N.js} +8 -2
  34. package/dist/{breadcrumb-KQSFIXQ4.js → breadcrumb-VWELWDB2.js} +1 -1
  35. package/dist/{breadcrumb-IG7VZGW2.js → breadcrumb-WRG4SITG.js} +13 -11
  36. package/dist/{breadcrumb-TW5JEOYS.js → breadcrumb-ZCG2RHIU.js} +12 -10
  37. package/dist/{campaigns-HS6MIO7X.js → campaigns-L6ULR6KR.js} +5 -5
  38. package/dist/{categories-PKWR3FM3.js → categories-FUZQKBXV.js} +6 -6
  39. package/dist/{chunk-PDQSPKG5.js → chunk-2DXNJURE.js} +1 -1
  40. package/dist/{chunk-ZZO3INVE.js → chunk-2MDGYHWN.js} +128 -25
  41. package/dist/{chunk-5UD4P6YL.js → chunk-2USXZSTK.js} +4 -4
  42. package/dist/{chunk-6SBMVLJ2.js → chunk-36L54SQQ.js} +1 -1
  43. package/dist/chunk-37G4Y5I7.js +101 -0
  44. package/dist/{chunk-5M3SL4UZ.js → chunk-3CVJA5UE.js} +9 -104
  45. package/dist/chunk-432S4FGR.js +0 -0
  46. package/dist/{chunk-KQGVSLUI.js → chunk-44RQ5PTN.js} +1803 -914
  47. package/dist/{chunk-Y2QI7KWS.js → chunk-4LVP635F.js} +408 -664
  48. package/dist/{chunk-UL4O5M4S.js → chunk-4S6XGIC6.js} +1 -18
  49. package/dist/chunk-5ZVWOCAC.js +426 -0
  50. package/dist/{chunk-WITQNQXN.js → chunk-6BS2AVGJ.js} +3 -3
  51. package/dist/{chunk-ZYOXKUKZ.js → chunk-7LBY5JLV.js} +1 -1
  52. package/dist/chunk-7SLWXX6L.js +811 -0
  53. package/dist/{chunk-LQYMBSRQ.js → chunk-AIZM66CG.js} +1 -1
  54. package/dist/{chunk-IZ5RG5XI.js → chunk-AJLGY3LQ.js} +1 -21
  55. package/dist/{chunk-WFE6CT6M.js → chunk-AVOIZO63.js} +21 -77
  56. package/dist/chunk-C2FG3SX2.js +68 -0
  57. package/dist/chunk-CFRWIQIZ.js +43 -0
  58. package/dist/{chunk-WNVEMFIK.js → chunk-CNMY5HVP.js} +2 -2
  59. package/dist/{chunk-BLVJAKBA.js → chunk-DDH7ULIQ.js} +1 -1
  60. package/dist/chunk-DIW4GRTI.js +503 -0
  61. package/dist/{chunk-JQP7MOFH.js → chunk-DVEKYLPV.js} +1 -1
  62. package/dist/{chunk-QX45GVAL.js → chunk-EIUYXS7E.js} +8 -8
  63. package/dist/{chunk-N7OVXN72.js → chunk-EROX26D4.js} +1 -1
  64. package/dist/{chunk-2RHAI7WK.js → chunk-EZ3JOAUS.js} +1 -1
  65. package/dist/{chunk-HFRHHT36.js → chunk-FDR22JMM.js} +63 -8
  66. package/dist/{chunk-PEKANQ3T.js → chunk-FJUUGFXL.js} +2 -2
  67. package/dist/{chunk-3CK6OINO.js → chunk-GDWBOQI5.js} +3 -5
  68. package/dist/{chunk-47SXTGLN.js → chunk-GXIAIITP.js} +63 -200
  69. package/dist/{chunk-4MFMCZEJ.js → chunk-H6LZ77GX.js} +2 -2
  70. package/dist/chunk-IWLDKGYQ.js +95 -0
  71. package/dist/chunk-K4X324QP.js +18 -0
  72. package/dist/{chunk-VQ5EKDA3.js → chunk-KD7RYE6R.js} +1 -1
  73. package/dist/chunk-LEWA4BPH.js +18 -0
  74. package/dist/{chunk-7Q5SDEK7.js → chunk-LNM2D2I4.js} +4 -4
  75. package/dist/{chunk-LPOAVK6Y.js → chunk-LQD232FW.js} +47 -12
  76. package/dist/{chunk-OXXL4WQU.js → chunk-M7KSRYRI.js} +5 -5
  77. package/dist/chunk-MBFHMJHN.js +2063 -0
  78. package/dist/{chunk-I2IKYOZX.js → chunk-N4MVIBFM.js} +19 -19
  79. package/dist/{chunk-PCMNEUMV.js → chunk-NHFEY3EI.js} +1 -1
  80. package/dist/{chunk-RTAWYMQP.js → chunk-NJMNYS7G.js} +1 -1
  81. package/dist/{chunk-HGQTL7NX.js → chunk-NSZQERLE.js} +2 -2
  82. package/dist/{chunk-RL7SFZOF.js → chunk-NXNJQZCP.js} +1 -1
  83. package/dist/{chunk-CNLP35S7.js → chunk-OD3U3TX4.js} +16 -31
  84. package/dist/{chunk-D2MA5TAP.js → chunk-PBD36EZJ.js} +2 -2
  85. package/dist/{chunk-4ZGFODSC.js → chunk-PZ44R4AS.js} +1 -1
  86. package/dist/{chunk-ZEVYT6IX.js → chunk-QNNJN4H6.js} +116 -286
  87. package/dist/{chunk-WBI7FEGI.js → chunk-QS6RWIBL.js} +1 -1
  88. package/dist/chunk-QT7YFHCA.js +198 -0
  89. package/dist/{chunk-GYV6SKY7.js → chunk-QXLRABYH.js} +4 -6
  90. package/dist/chunk-RXZFEFNV.js +73 -0
  91. package/dist/{chunk-RUE5BPC2.js → chunk-RZLN2Q6G.js} +1 -1
  92. package/dist/{chunk-NYDJTWRL.js → chunk-SGR4DMCW.js} +4 -4
  93. package/dist/chunk-T6LHVNWO.js +27 -0
  94. package/dist/{chunk-DKQ4XMSN.js → chunk-TNVYTMBL.js} +6 -6
  95. package/dist/{chunk-32RYSB2V.js → chunk-TODJFRLH.js} +2 -2
  96. package/dist/{chunk-P3ZTO6T2.js → chunk-UAF2S447.js} +1 -1
  97. package/dist/{chunk-J6BRLL3F.js → chunk-UCQKXXLD.js} +2 -2
  98. package/dist/chunk-UORPTGV2.js +114 -0
  99. package/dist/{chunk-CYTNBXWF.js → chunk-UX7J5NZG.js} +9 -9
  100. package/dist/{chunk-X4FLOQ45.js → chunk-WBHFU3MG.js} +2 -2
  101. package/dist/chunk-WLT7K7K7.js +63 -0
  102. package/dist/{chunk-4URLUCTD.js → chunk-WUPJADSO.js} +2 -2
  103. package/dist/{chunk-ITI54CII.js → chunk-X4INVIWL.js} +5 -5
  104. package/dist/{chunk-PTW7JNAP.js → chunk-XFQJU6FA.js} +4 -4
  105. package/dist/{collections-DJZI2RM2.js → collections-3OPR3DSD.js} +22 -19
  106. package/dist/{configuration-RHPIO2QT.js → configuration-C4IGBNXH.js} +1 -1
  107. package/dist/{configuration-GN3TO77H.js → configuration-UOSNP45I.js} +3 -3
  108. package/dist/{create-3EK5CNNX.js → create-2MQFQHTE.js} +33 -29
  109. package/dist/{create-YO55Z3YD.js → create-2PCLG7TV.js} +32 -38
  110. package/dist/{create-G4T2PAJH.js → create-35MYQPVM.js} +23 -21
  111. package/dist/{create-HKJVSFB7.js → create-BJ4OO6LS.js} +23 -21
  112. package/dist/create-DDPIXCXT.js +210 -0
  113. package/dist/{create-7S7CZWEN.js → create-GB3ZA4LH.js} +4 -4
  114. package/dist/create-JDGM5KXE.js +193 -0
  115. package/dist/{create-IDVCZHIX.js → create-ORXYT74H.js} +14 -12
  116. package/dist/{create-GHM7OTCR.js → create-R7K3ECN6.js} +1 -1
  117. package/dist/{create-D6EW3EWC.js → create-SFU3W3ZH.js} +1 -1
  118. package/dist/{create-3ZVXEPX5.js → create-SQ3FYMGI.js} +25 -21
  119. package/dist/{create-33TRLASX.js → create-UPYB65PD.js} +1 -1
  120. package/dist/{create-OCFPLNNY.js → create-UQNYMVBM.js} +6 -6
  121. package/dist/{create-OGLPDVOI.js → create-XAD5NMSJ.js} +37 -35
  122. package/dist/{create-KGYL7FBM.js → create-XVHOCZHJ.js} +1 -1
  123. package/dist/{create-4AE3VTWN.js → create-YBF4YGWG.js} +2 -2
  124. package/dist/{customers-6ZLE65UX.js → customers-ETXVNM3G.js} +5 -5
  125. package/dist/{edit-QBISX7D3.js → edit-2Q7TRUTL.js} +14 -12
  126. package/dist/{edit-B5B3XKDM.js → edit-522DG3BY.js} +1 -1
  127. package/dist/{edit-ATXE6CM5.js → edit-C4OCKQVU.js} +1 -1
  128. package/dist/{edit-IR6V2IDN.js → edit-FKXIQ6ZI.js} +19 -17
  129. package/dist/{edit-4HZHLYI3.js → edit-GQNIINRR.js} +1 -1
  130. package/dist/{edit-LRRJTHV2.js → edit-KAKVPHZZ.js} +1 -1
  131. package/dist/{edit-ZSOI56BQ.js → edit-L5ZZLMAY.js} +22 -22
  132. package/dist/{edit-FNDDSSMT.js → edit-NYD45J2Q.js} +37 -8
  133. package/dist/{edit-GIJXLMC3.js → edit-O4JLGKQR.js} +2 -2
  134. package/dist/{edit-5CJZRHAA.js → edit-ORXS3A2Y.js} +1 -1
  135. package/dist/{edit-FC64DWB2.js → edit-Q3UQIOLS.js} +1 -1
  136. package/dist/{edit-7HTH2UJF.js → edit-REDDBLTA.js} +3 -3
  137. package/dist/{edit-2KRJIPRK.js → edit-SGUY2CCK.js} +19 -17
  138. package/dist/{edit-B75KK5ZX.js → edit-SWRWWFW6.js} +35 -31
  139. package/dist/{edit-7GVP6SRA.js → edit-ZAHCMF5U.js} +1 -1
  140. package/dist/{edit-RNT555GP.js → edit-ZCXUG42Q.js} +13 -11
  141. package/dist/{edit-MYSWY6W4.js → edit-ZMERG3L7.js} +1 -1
  142. package/dist/{edit-budget-J27CSEZH.js → edit-budget-L3CCEWNF.js} +1 -1
  143. package/dist/{edit-inventory-item-US77M2FF.js → edit-inventory-item-6B7ITDGD.js} +2 -2
  144. package/dist/{edit-inventory-item-attributes-UGAE2NAZ.js → edit-inventory-item-attributes-Y7MQZLXI.js} +3 -3
  145. package/dist/{fulfillment-DCS67LTK.js → fulfillment-75Z4H23W.js} +16 -14
  146. package/dist/{fulfillment-providers-GM5PO6N3.js → fulfillment-providers-KCQWL62T.js} +20 -17
  147. package/dist/index.css +27 -62
  148. package/dist/index.d.ts +3 -10
  149. package/dist/index.js +522 -458
  150. package/dist/{inventory-OPZ2FSEE.js → inventory-KAUVPMPZ.js} +6 -6
  151. package/dist/{invite-764K3TJS.js → invite-6CPYVHDX.js} +24 -21
  152. package/dist/{invite-KEJLNXEZ.js → invite-CI2P4GF6.js} +15 -12
  153. package/dist/loader-FBB5OQRT.js +31 -0
  154. package/dist/{locations-ZVPTQCQY.js → locations-INS6FTMJ.js} +4 -4
  155. package/dist/{login-OUHRNNXA.js → login-KY342RMK.js} +12 -10
  156. package/dist/{manage-locations-YUKEFCBJ.js → manage-locations-WNHEBS3A.js} +2 -2
  157. package/dist/{media-4KYFHB5V.js → media-KOYAOXG6.js} +41 -9
  158. package/dist/{metadata-NYYL26MQ.js → metadata-2CMH4I6U.js} +16 -14
  159. package/dist/{metadata-AWUKZ25V.js → metadata-5BPOBBU2.js} +3 -3
  160. package/dist/{metadata-OCE6A3JE.js → metadata-GWI6R4ES.js} +15 -13
  161. package/dist/{metadata-G7KZXVNE.js → metadata-NUXUC2JA.js} +15 -13
  162. package/dist/{metadata-XP3ZYW2M.js → metadata-TLDUF5KV.js} +17 -15
  163. package/dist/{metadata-PYY4IB7K.js → metadata-WR4RFXO5.js} +16 -14
  164. package/dist/offer-create-page-YKMHHTU5.js +743 -0
  165. package/dist/offer-detail-page-6MAHNNIO.js +488 -0
  166. package/dist/offer-edit-page-DYQFU6JU.js +151 -0
  167. package/dist/offer-inventory-batch-page-WKCWNDNK.js +290 -0
  168. package/dist/offer-pricing-edit-page-4TYGGSOE.js +195 -0
  169. package/dist/offers-UGQJNGTD.js +32 -0
  170. package/dist/{onboarding-WXZHW62K.js → onboarding-43LQQQGQ.js} +22 -20
  171. package/dist/{orders-LWJ472VM.js → orders-R2LOJ6N5.js} +24 -21
  172. package/dist/organization-XGFU4YDG.js +375 -0
  173. package/dist/{organize-RFOMQCBG.js → organize-HNJUHEEG.js} +4 -4
  174. package/dist/{organize-OVKJ3HZO.js → organize-K6QMAMEN.js} +4 -4
  175. package/dist/pages/index.d.ts +415 -758
  176. package/dist/pages/index.js +81 -77
  177. package/dist/{payment-details-UVXYCTUK.js → payment-details-64US5XWD.js} +17 -15
  178. package/dist/{payouts-TR7K5I37.js → payouts-UXJDTXDL.js} +6 -6
  179. package/dist/{price-lists-S2WNELFZ.js → price-lists-KBPUVSZI.js} +8 -8
  180. package/dist/{pricing-UF27DAXA.js → pricing-DF6C5XK4.js} +35 -32
  181. package/dist/{product-tags-2CKH2M6D.js → product-tags-CL7HSEDI.js} +32 -28
  182. package/dist/{product-types-FX43JEO2.js → product-types-UUHBV4IZ.js} +5 -5
  183. package/dist/product-variant-detail-RVWEYVPC.js +220 -0
  184. package/dist/{product-variant-edit-P3DSIFE3.js → product-variant-edit-MNCS7ZYW.js} +126 -66
  185. package/dist/{products-H5EMRJYS.js → products-4KV5Y2JY.js} +23 -19
  186. package/dist/{products-2LHGS7X3.js → products-SXYTQFJ3.js} +40 -43
  187. package/dist/{professional-details-HYKTH44B.js → professional-details-5T2VS6MM.js} +16 -14
  188. package/dist/{profile-PB27WIRW.js → profile-6XGHAT7H.js} +20 -18
  189. package/dist/{promotions-5EYPGHJP.js → promotions-O7U4BTK6.js} +8 -8
  190. package/dist/{register-4O4F6YZK.js → register-GDKN3SKM.js} +16 -14
  191. package/dist/{reset-password-GTWLBOFK.js → reset-password-EICPAY2N.js} +1 -1
  192. package/dist/{return-reasons-LOKYRGMI.js → return-reasons-M6IR77XW.js} +16 -14
  193. package/dist/{sales-channels-7R2IY3KG.js → sales-channels-B6FULRWI.js} +8 -7
  194. package/dist/{sales-channels-Y4LRP7JC.js → sales-channels-JW3QUYR7.js} +8 -7
  195. package/dist/{settings-2XDLFYMS.js → settings-SAAHTUZZ.js} +39 -35
  196. package/dist/{shipment-4GW2JFWB.js → shipment-Q33QBMXX.js} +13 -11
  197. package/dist/{shipping-profile-R3NABPQF.js → shipping-profile-Y4SNEPZX.js} +2 -2
  198. package/dist/{shipping-profiles-QVKNFLCW.js → shipping-profiles-2NWKCEJK.js} +18 -16
  199. package/dist/{stock-5RXNUPUT.js → stock-7CSVEJJU.js} +19 -17
  200. package/dist/{store-DE2RGX7T.js → store-GHFWU7EV.js} +28 -25
  201. package/dist/{store-closure-DNMCHUXD.js → store-closure-P5PD2RSV.js} +16 -14
  202. package/dist/{store-select-GZEJHRZ7.js → store-select-KDT6USQA.js} +17 -15
  203. package/dist/{tax-regions-UD6P5FVC.js → tax-regions-YXZW7UVX.js} +5 -5
  204. package/dist/{team-JXKAVRPU.js → team-EDJ62747.js} +25 -23
  205. package/dist/types-CtCEtTE6.d.ts +16 -0
  206. package/package.json +3 -3
  207. package/dist/[id]-BYP37PU4.js +0 -1314
  208. package/dist/add-KRAGFFBJ.js +0 -158
  209. package/dist/bulk-edit-3SMBLIOA.js +0 -244
  210. package/dist/chunk-4KX6CBJ4.js +0 -178
  211. package/dist/chunk-DLNNTQRY.js +0 -217
  212. package/dist/chunk-FX4V5JCF.js +0 -37
  213. package/dist/chunk-GC33DBKG.js +0 -143
  214. package/dist/chunk-NK4NR6MN.js +0 -173
  215. package/dist/chunk-PFU6FSXY.js +0 -430
  216. package/dist/chunk-QJEOPT2P.js +0 -330
  217. package/dist/chunk-QSGR43JM.js +0 -30
  218. package/dist/chunk-STR3NGWE.js +0 -3736
  219. package/dist/create-3DOO3RNH.js +0 -716
  220. package/dist/create-I7HV3RM6.js +0 -150
  221. package/dist/edit-K2AD335I.js +0 -237
  222. package/dist/edit-VO5XLIEL.js +0 -362
  223. package/dist/edit-stocks-and-prices-MHHQFWFA.js +0 -408
  224. package/dist/organization-LPYQRTQC.js +0 -303
  225. package/dist/prices-3OXV5RGY.js +0 -270
  226. package/dist/product-variant-detail-WV4KXVXR.js +0 -590
  227. package/dist/stock-GPC3BCL6.js +0 -500
  228. package/dist/{chunk-SDSEW72R.js → chunk-E2HQPY32.js} +3 -3
  229. package/dist/{chunk-6WY5X4PE.js → chunk-L7QKFC5N.js} +7 -7
  230. /package/dist/{chunk-CAS74NLJ.js → chunk-YV6MK4PZ.js} +0 -0
@@ -243,11 +243,6 @@ var RouteDrawer = Object.assign(Root, {
243
243
  Form: Form2
244
244
  });
245
245
 
246
- // src/components/modals/route-focus-modal/route-focus-modal.tsx
247
- import { FocusModal, clx as clx2 } from "@medusajs/ui";
248
- import { useEffect as useEffect2, useState as useState4 } from "react";
249
- import { useNavigate as useNavigate3 } from "react-router-dom";
250
-
251
246
  // src/components/modals/route-modal-provider/use-route-modal.tsx
252
247
  import { useContext as useContext2 } from "react";
253
248
  var useRouteModal = () => {
@@ -259,6 +254,9 @@ var useRouteModal = () => {
259
254
  };
260
255
 
261
256
  // src/components/modals/route-focus-modal/route-focus-modal.tsx
257
+ import { FocusModal, clx as clx2 } from "@medusajs/ui";
258
+ import { useEffect as useEffect2, useState as useState4 } from "react";
259
+ import { useNavigate as useNavigate3 } from "react-router-dom";
262
260
  import { jsx as jsx5 } from "react/jsx-runtime";
263
261
  var Root2 = ({ prev = "..", children }) => {
264
262
  const navigate = useNavigate3();
@@ -9,73 +9,15 @@ import {
9
9
  sdk
10
10
  } from "./chunk-RIN4CBRB.js";
11
11
 
12
- // src/hooks/api/members.tsx
12
+ // src/hooks/api/tags.tsx
13
13
  import {
14
14
  useMutation,
15
15
  useQuery
16
16
  } from "@tanstack/react-query";
17
- var MEMBERS_QUERY_KEY = "members";
18
- var membersQueryKeys = {
19
- ...queryKeysFactory(MEMBERS_QUERY_KEY),
20
- me: () => [MEMBERS_QUERY_KEY, "me"]
21
- };
22
- var useMe = (options) => {
23
- const { data, ...rest } = useQuery({
24
- queryFn: () => sdk.vendor.members.me.query(),
25
- queryKey: membersQueryKeys.me(),
26
- ...options
27
- });
28
- return {
29
- ...data,
30
- ...rest
31
- };
32
- };
33
- var useUpdateMe = (options) => {
34
- return useMutation({
35
- mutationFn: (payload) => sdk.vendor.members.me.mutate(payload),
36
- onSuccess: (data, variables, context) => {
37
- queryClient.invalidateQueries({ queryKey: membersQueryKeys.me() });
38
- options?.onSuccess?.(data, variables, context);
39
- },
40
- ...options
41
- });
42
- };
43
- var useSellerMembers = (sellerId, query, options) => {
44
- const { data, ...rest } = useQuery({
45
- queryFn: () => sdk.vendor.sellers.$id.members.query({ $id: sellerId, ...query }),
46
- queryKey: membersQueryKeys.list({ sellerId, ...query }),
47
- ...options
48
- });
49
- return {
50
- ...data,
51
- ...rest
52
- };
53
- };
54
- var useRemoveSellerMember = (sellerId, memberId, options) => {
55
- return useMutation({
56
- mutationFn: () => sdk.vendor.sellers.$id.members.$memberId.delete({
57
- $id: sellerId,
58
- $memberId: memberId
59
- }),
60
- onSuccess: (data, variables, context) => {
61
- queryClient.invalidateQueries({
62
- queryKey: membersQueryKeys.lists()
63
- });
64
- options?.onSuccess?.(data, variables, context);
65
- },
66
- ...options
67
- });
68
- };
69
-
70
- // src/hooks/api/tags.tsx
71
- import {
72
- useMutation as useMutation2,
73
- useQuery as useQuery2
74
- } from "@tanstack/react-query";
75
17
  var TAGS_QUERY_KEY = "tags";
76
18
  var productTagsQueryKeys = queryKeysFactory(TAGS_QUERY_KEY);
77
19
  var useProductTag = (id, query, options) => {
78
- const { data, ...rest } = useQuery2({
20
+ const { data, ...rest } = useQuery({
79
21
  queryKey: productTagsQueryKeys.detail(id, query),
80
22
  queryFn: async () => sdk.vendor.productTags.$id.query({ $id: id, ...query }),
81
23
  ...options
@@ -83,7 +25,7 @@ var useProductTag = (id, query, options) => {
83
25
  return { ...data, ...rest };
84
26
  };
85
27
  var useProductTags = (query, options) => {
86
- const { data, ...rest } = useQuery2({
28
+ const { data, ...rest } = useQuery({
87
29
  queryKey: productTagsQueryKeys.list(query),
88
30
  queryFn: async () => sdk.vendor.productTags.query({ ...query }),
89
31
  ...options
@@ -91,7 +33,7 @@ var useProductTags = (query, options) => {
91
33
  return { ...data, ...rest };
92
34
  };
93
35
  var useUpdateProductTag = (id, options) => {
94
- return useMutation2({
36
+ return useMutation({
95
37
  mutationFn: (payload) => sdk.vendor.productTags.$id.mutate({ $id: id, ...payload }),
96
38
  onSuccess: (data, variables, context) => {
97
39
  queryClient.invalidateQueries({
@@ -106,7 +48,7 @@ var useUpdateProductTag = (id, options) => {
106
48
  });
107
49
  };
108
50
  var useDeleteProductTag = (id, options) => {
109
- return useMutation2({
51
+ return useMutation({
110
52
  mutationFn: () => sdk.vendor.productTags.$id.delete({ $id: id }),
111
53
  onSuccess: (data, variables, context) => {
112
54
  queryClient.invalidateQueries({
@@ -122,16 +64,16 @@ var useDeleteProductTag = (id, options) => {
122
64
  };
123
65
 
124
66
  // src/hooks/api/currencies.tsx
125
- import { useQuery as useQuery3 } from "@tanstack/react-query";
67
+ import { useQuery as useQuery2 } from "@tanstack/react-query";
126
68
  var CURRENCIES_QUERY_KEY = "currencies";
127
69
  var currenciesQueryKeys = queryKeysFactory(CURRENCIES_QUERY_KEY);
128
70
 
129
71
  // src/hooks/api/feature-flags.tsx
130
- import { useQuery as useQuery4 } from "@tanstack/react-query";
72
+ import { useQuery as useQuery3 } from "@tanstack/react-query";
131
73
  var FEATURE_FLAGS_QUERY_KEY = "feature_flags";
132
74
  var featureFlagsQueryKeys = queryKeysFactory(FEATURE_FLAGS_QUERY_KEY);
133
75
  var useFeatureFlags = (options) => {
134
- const { data, ...rest } = useQuery4({
76
+ const { data, ...rest } = useQuery3({
135
77
  queryFn: () => sdk.vendor.featureFlags.query(),
136
78
  queryKey: featureFlagsQueryKeys.lists(),
137
79
  ...options
@@ -140,19 +82,19 @@ var useFeatureFlags = (options) => {
140
82
  };
141
83
 
142
84
  // src/hooks/api/fulfillment.tsx
143
- import { useMutation as useMutation3 } from "@tanstack/react-query";
85
+ import { useMutation as useMutation2 } from "@tanstack/react-query";
144
86
  var FULFILLMENTS_QUERY_KEY = "fulfillments";
145
87
  var fulfillmentsQueryKeys = queryKeysFactory(FULFILLMENTS_QUERY_KEY);
146
88
 
147
89
  // src/hooks/api/invites.tsx
148
90
  import {
149
- useMutation as useMutation4,
150
- useQuery as useQuery5
91
+ useMutation as useMutation3,
92
+ useQuery as useQuery4
151
93
  } from "@tanstack/react-query";
152
94
  var INVITES_QUERY_KEY = "invites";
153
95
  var invitesQueryKeys = queryKeysFactory(INVITES_QUERY_KEY);
154
96
  var useInvites = (sellerId, query, options) => {
155
- const { data, ...rest } = useQuery5({
97
+ const { data, ...rest } = useQuery4({
156
98
  queryFn: () => sdk.vendor.sellers.$id.members.invites.query({
157
99
  $id: sellerId,
158
100
  ...query
@@ -163,7 +105,7 @@ var useInvites = (sellerId, query, options) => {
163
105
  return { ...data, ...rest };
164
106
  };
165
107
  var useAcceptInvite = (options) => {
166
- return useMutation4({
108
+ return useMutation3({
167
109
  mutationFn: (payload) => sdk.vendor.members.invites.accept.mutate({
168
110
  invite_token: payload.invite_token,
169
111
  first_name: payload.first_name,
@@ -178,7 +120,7 @@ var useAcceptInvite = (options) => {
178
120
  });
179
121
  };
180
122
  var useCreateInvite = (sellerId, options) => {
181
- return useMutation4({
123
+ return useMutation3({
182
124
  mutationFn: (payload) => sdk.vendor.sellers.$id.members.mutate({ $id: sellerId, ...payload }),
183
125
  onSuccess: (data, variables, context) => {
184
126
  queryClient.invalidateQueries({ queryKey: invitesQueryKeys.lists() });
@@ -189,11 +131,11 @@ var useCreateInvite = (sellerId, options) => {
189
131
  };
190
132
 
191
133
  // src/hooks/api/notification.tsx
192
- import { useQuery as useQuery6 } from "@tanstack/react-query";
134
+ import { useQuery as useQuery5 } from "@tanstack/react-query";
193
135
  var NOTIFICATION_QUERY_KEY = "notification";
194
136
  var notificationQueryKeys = queryKeysFactory(NOTIFICATION_QUERY_KEY);
195
137
  var useNotifications = (query, options) => {
196
- const { data, ...rest } = useQuery6({
138
+ const { data, ...rest } = useQuery5({
197
139
  queryFn: () => fetchQuery(`/vendor/notifications`, {
198
140
  method: "GET",
199
141
  query
@@ -205,7 +147,7 @@ var useNotifications = (query, options) => {
205
147
  };
206
148
 
207
149
  // src/hooks/api/payment-collections.tsx
208
- import { useMutation as useMutation5 } from "@tanstack/react-query";
150
+ import { useMutation as useMutation4 } from "@tanstack/react-query";
209
151
  var PAYMENT_COLLECTION_QUERY_KEY = "payment-collection";
210
152
  var paymentCollectionQueryKeys = queryKeysFactory(
211
153
  PAYMENT_COLLECTION_QUERY_KEY
@@ -213,8 +155,8 @@ var paymentCollectionQueryKeys = queryKeysFactory(
213
155
 
214
156
  // src/hooks/api/payments.tsx
215
157
  import {
216
- useMutation as useMutation6,
217
- useQuery as useQuery7
158
+ useMutation as useMutation5,
159
+ useQuery as useQuery6
218
160
  } from "@tanstack/react-query";
219
161
  var PAYMENT_QUERY_KEY = "payment";
220
162
  var paymentQueryKeys = queryKeysFactory(PAYMENT_QUERY_KEY);
@@ -223,144 +165,73 @@ var paymentProvidersQueryKeys = queryKeysFactory(
223
165
  PAYMENT_PROVIDERS_QUERY_KEY
224
166
  );
225
167
 
226
- // src/hooks/api/product-variants.tsx
227
- import {
228
- useQuery as useQuery8
229
- } from "@tanstack/react-query";
230
- var PRODUCT_VARIANT_QUERY_KEY = "product_variant";
231
- var productVariantQueryKeys = queryKeysFactory(
232
- PRODUCT_VARIANT_QUERY_KEY
233
- );
234
-
235
168
  // src/hooks/api/refund-reasons.tsx
236
169
  import {
237
- useMutation as useMutation7,
238
- useQuery as useQuery9
170
+ useMutation as useMutation6,
171
+ useQuery as useQuery7
239
172
  } from "@tanstack/react-query";
240
173
  var REFUND_REASONS_QUERY_KEY = "refund_reasons";
241
174
  var refundReasonsQueryKeys = queryKeysFactory(
242
175
  REFUND_REASONS_QUERY_KEY
243
176
  );
244
177
 
245
- // src/hooks/api/sellers.tsx
178
+ // src/hooks/api/regions.tsx
246
179
  import {
247
- useMutation as useMutation8,
248
- useQuery as useQuery10
180
+ useMutation as useMutation7,
181
+ useQuery as useQuery8
249
182
  } from "@tanstack/react-query";
250
- var SELLERS_QUERY_KEY = "sellers";
251
- var sellersQueryKeys = queryKeysFactory(SELLERS_QUERY_KEY);
252
- var useSellers = (query, options) => {
253
- const { data, ...rest } = useQuery10({
254
- queryKey: sellersQueryKeys.list(query),
255
- queryFn: () => sdk.vendor.sellers.query({ ...query }),
183
+ var REGIONS_QUERY_KEY = "regions";
184
+ var regionsQueryKeys = queryKeysFactory(REGIONS_QUERY_KEY);
185
+ var useRegions = (query, options) => {
186
+ const { data, ...rest } = useQuery8({
187
+ queryFn: () => sdk.vendor.regions.query({ ...query }),
188
+ queryKey: regionsQueryKeys.list(query),
256
189
  ...options
257
190
  });
258
191
  return { ...data, ...rest };
259
192
  };
260
- var useSelectSeller = (options) => {
261
- return useMutation8({
262
- mutationFn: (payload) => sdk.vendor.sellers.select.mutate(payload),
263
- onSuccess: (data, variables, context) => {
264
- queryClient.invalidateQueries({
265
- queryKey: membersQueryKeys.me()
266
- });
267
- options?.onSuccess?.(data, variables, context);
268
- },
269
- ...options
270
- });
271
- };
272
- var useUpdateSeller = (id, options) => {
273
- return useMutation8({
274
- mutationFn: (payload) => sdk.vendor.sellers.$id.mutate({ $id: id, ...payload }),
275
- onSuccess: (data, variables, context) => {
276
- queryClient.invalidateQueries({
277
- queryKey: sellersQueryKeys.all
278
- });
279
- queryClient.invalidateQueries({
280
- queryKey: membersQueryKeys.me()
281
- });
282
- options?.onSuccess?.(data, variables, context);
283
- },
284
- ...options
285
- });
286
- };
287
- var useUpdateSellerAddress = (id, options) => {
288
- return useMutation8({
289
- mutationFn: (payload) => sdk.vendor.sellers.$id.address.mutate({ $id: id, ...payload }),
290
- onSuccess: (data, variables, context) => {
291
- queryClient.invalidateQueries({
292
- queryKey: sellersQueryKeys.all
293
- });
294
- queryClient.invalidateQueries({
295
- queryKey: membersQueryKeys.me()
296
- });
297
- options?.onSuccess?.(data, variables, context);
298
- },
299
- ...options
300
- });
301
- };
302
- var useUpdateSellerPaymentDetails = (id, options) => {
303
- return useMutation8({
304
- mutationFn: (payload) => sdk.vendor.sellers.$id.paymentDetails.mutate({ $id: id, ...payload }),
305
- onSuccess: (data, variables, context) => {
306
- queryClient.invalidateQueries({
307
- queryKey: sellersQueryKeys.all
308
- });
309
- queryClient.invalidateQueries({
310
- queryKey: membersQueryKeys.me()
311
- });
312
- options?.onSuccess?.(data, variables, context);
313
- },
314
- ...options
315
- });
316
- };
317
- var useUpdateSellerProfessionalDetails = (id, options) => {
318
- return useMutation8({
319
- mutationFn: (payload) => sdk.vendor.sellers.$id.professionalDetails.mutate({
320
- $id: id,
321
- ...payload
322
- }),
323
- onSuccess: (data, variables, context) => {
324
- queryClient.invalidateQueries({
325
- queryKey: sellersQueryKeys.all
326
- });
327
- queryClient.invalidateQueries({
328
- queryKey: membersQueryKeys.me()
329
- });
330
- options?.onSuccess?.(data, variables, context);
331
- },
332
- ...options
333
- });
334
- };
335
- var useCreateSellerAccount = (options) => {
336
- return useMutation8({
337
- mutationFn: (payload) => sdk.vendor.sellers.mutate(payload),
338
- onSuccess: (data, variables, context) => {
339
- queryClient.invalidateQueries({
340
- queryKey: sellersQueryKeys.all
341
- });
342
- options?.onSuccess?.(data, variables, context);
343
- },
344
- ...options
345
- });
346
- };
347
193
 
348
194
  // src/hooks/api/shipping-option-types.tsx
349
195
  import {
350
- useMutation as useMutation9,
351
- useQuery as useQuery11
196
+ useMutation as useMutation8,
197
+ useQuery as useQuery9
352
198
  } from "@tanstack/react-query";
353
199
  var SHIPPING_OPTION_TYPES_QUERY_KEY = "shipping_option_types";
354
200
  var shippingOptionTypesQueryKeys = queryKeysFactory(
355
201
  SHIPPING_OPTION_TYPES_QUERY_KEY
356
202
  );
357
203
 
204
+ // src/hooks/api/store.tsx
205
+ import { useQuery as useQuery10 } from "@tanstack/react-query";
206
+ import { ClientError } from "@mercurjs/client";
207
+ var STORE_QUERY_KEY = "store";
208
+ var storeQueryKeys = queryKeysFactory(STORE_QUERY_KEY);
209
+ async function retrieveActiveStore(query) {
210
+ const response = await sdk.vendor.stores.query({ ...query });
211
+ const activeStore = response.stores?.[0];
212
+ if (!activeStore) {
213
+ throw new ClientError("No active store found", "Not Found", 404);
214
+ }
215
+ return { store: activeStore };
216
+ }
217
+ var useStore = (query, options) => {
218
+ const { data, ...rest } = useQuery10({
219
+ queryFn: () => retrieveActiveStore(query),
220
+ queryKey: storeQueryKeys.details(),
221
+ ...options
222
+ });
223
+ return {
224
+ ...data,
225
+ ...rest
226
+ };
227
+ };
228
+
358
229
  // src/hooks/api/subscription.tsx
359
- import { useQuery as useQuery12 } from "@tanstack/react-query";
230
+ import { useQuery as useQuery11 } from "@tanstack/react-query";
360
231
  var SUBSCRIPTION_QUERY_KEY = "subscription";
361
232
  var subscriptionQueryKeys = queryKeysFactory(SUBSCRIPTION_QUERY_KEY);
362
233
  var useSubscription = (query, options) => {
363
- const { data, ...rest } = useQuery12({
234
+ const { data, ...rest } = useQuery11({
364
235
  queryKey: subscriptionQueryKeys.details(),
365
236
  queryFn: () => sdk.vendor.subscription.query({ ...query }),
366
237
  ...options
@@ -375,18 +246,10 @@ export {
375
246
  useCreateInvite,
376
247
  notificationQueryKeys,
377
248
  useNotifications,
378
- membersQueryKeys,
379
- useMe,
380
- useUpdateMe,
381
- useSellerMembers,
382
- useRemoveSellerMember,
383
- useSellers,
384
- useSelectSeller,
385
- useUpdateSeller,
386
- useUpdateSellerAddress,
387
- useUpdateSellerPaymentDetails,
388
- useUpdateSellerProfessionalDetails,
389
- useCreateSellerAccount,
249
+ useRegions,
250
+ storeQueryKeys,
251
+ retrieveActiveStore,
252
+ useStore,
390
253
  subscriptionQueryKeys,
391
254
  useSubscription,
392
255
  productTagsQueryKeys,
@@ -5,7 +5,7 @@ import {
5
5
  // src/hooks/table/query/use-product-table-query.tsx
6
6
  var DEFAULT_FIELDS = (
7
7
  // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
8
- "id,title,handle,status,*collection,*sales_channels,variants.id,thumbnail,-type,-options,-tags,-images,-variants"
8
+ "id,title,handle,status,*collection,categories.id,categories.name,variants.id,thumbnail,-type,-tags,-images,-variants"
9
9
  );
10
10
  var useProductTableQuery = ({
11
11
  prefix,
@@ -52,7 +52,7 @@ var useProductTableQuery = ({
52
52
  category_id: category_id?.split(","),
53
53
  collection_id: collection_id?.split(","),
54
54
  is_giftcard: is_giftcard ? is_giftcard === "true" : void 0,
55
- order,
55
+ order: order || "-created_at",
56
56
  tag_id: tag_id ? tag_id.split(",") : void 0,
57
57
  type_id: type_id?.split(","),
58
58
  status: status?.split(","),
@@ -0,0 +1,95 @@
1
+ import {
2
+ CategoryCell,
3
+ CategoryHeader,
4
+ ProductStatusCell,
5
+ ProductStatusHeader
6
+ } from "./chunk-C2FG3SX2.js";
7
+ import {
8
+ PlaceholderCell
9
+ } from "./chunk-PHOCVOZ5.js";
10
+ import {
11
+ Thumbnail
12
+ } from "./chunk-WIYFXWRI.js";
13
+
14
+ // src/hooks/table/columns/use-product-table-columns.tsx
15
+ import { createColumnHelper } from "@tanstack/react-table";
16
+ import { useMemo } from "react";
17
+
18
+ // src/components/table/table-cells/product/collection-cell/collection-cell.tsx
19
+ import { useTranslation } from "react-i18next";
20
+ import { jsx } from "react/jsx-runtime";
21
+ var CollectionCell = ({ collection }) => {
22
+ if (!collection) {
23
+ return /* @__PURE__ */ jsx(PlaceholderCell, {});
24
+ }
25
+ return /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: collection.title }) });
26
+ };
27
+ var CollectionHeader = () => {
28
+ const { t } = useTranslation();
29
+ return /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx("span", { children: t("fields.collection") }) });
30
+ };
31
+
32
+ // src/components/table/table-cells/product/product-cell/product-cell.tsx
33
+ import { useTranslation as useTranslation2 } from "react-i18next";
34
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
35
+ var ProductCell = ({ product }) => {
36
+ return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full max-w-[250px] items-center gap-x-3 overflow-hidden", children: [
37
+ /* @__PURE__ */ jsx2("div", { className: "w-fit flex-shrink-0", children: /* @__PURE__ */ jsx2(Thumbnail, { src: product.thumbnail }) }),
38
+ /* @__PURE__ */ jsx2("span", { title: product.title, className: "truncate", children: product.title })
39
+ ] });
40
+ };
41
+ var ProductHeader = () => {
42
+ const { t } = useTranslation2();
43
+ return /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx2("span", { children: t("fields.product") }) });
44
+ };
45
+
46
+ // src/components/table/table-cells/product/variant-cell/variant-cell.tsx
47
+ import { useTranslation as useTranslation3 } from "react-i18next";
48
+ import { jsx as jsx3 } from "react/jsx-runtime";
49
+ var VariantCell = ({ variants }) => {
50
+ const { t } = useTranslation3();
51
+ if (!variants || !variants.length) {
52
+ return /* @__PURE__ */ jsx3(PlaceholderCell, {});
53
+ }
54
+ return /* @__PURE__ */ jsx3("div", { className: "flex h-full w-full items-center overflow-hidden", children: /* @__PURE__ */ jsx3("span", { className: "truncate", children: t("products.variantCount", { count: variants.length }) }) });
55
+ };
56
+ var VariantHeader = () => {
57
+ const { t } = useTranslation3();
58
+ return /* @__PURE__ */ jsx3("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx3("span", { children: t("fields.variants") }) });
59
+ };
60
+
61
+ // src/hooks/table/columns/use-product-table-columns.tsx
62
+ import { jsx as jsx4 } from "react/jsx-runtime";
63
+ var columnHelper = createColumnHelper();
64
+ var useProductTableColumns = () => {
65
+ return useMemo(
66
+ () => [
67
+ columnHelper.display({
68
+ id: "product",
69
+ header: () => /* @__PURE__ */ jsx4(ProductHeader, {}),
70
+ cell: ({ row }) => /* @__PURE__ */ jsx4(ProductCell, { product: row.original })
71
+ }),
72
+ columnHelper.accessor("categories", {
73
+ header: () => /* @__PURE__ */ jsx4(CategoryHeader, {}),
74
+ cell: ({ row }) => /* @__PURE__ */ jsx4(CategoryCell, { categories: row.original.categories })
75
+ }),
76
+ columnHelper.accessor("collection", {
77
+ header: () => /* @__PURE__ */ jsx4(CollectionHeader, {}),
78
+ cell: ({ row }) => /* @__PURE__ */ jsx4(CollectionCell, { collection: row.original.collection })
79
+ }),
80
+ columnHelper.accessor("variants", {
81
+ header: () => /* @__PURE__ */ jsx4(VariantHeader, {}),
82
+ cell: ({ row }) => /* @__PURE__ */ jsx4(VariantCell, { variants: row.original.variants })
83
+ }),
84
+ columnHelper.accessor("status", {
85
+ header: () => /* @__PURE__ */ jsx4(ProductStatusHeader, {}),
86
+ cell: ({ row }) => /* @__PURE__ */ jsx4(ProductStatusCell, { status: row.original.status })
87
+ })
88
+ ],
89
+ []
90
+ );
91
+ };
92
+
93
+ export {
94
+ useProductTableColumns
95
+ };
@@ -0,0 +1,18 @@
1
+ // src/pages/products/common/constants.ts
2
+ var PRODUCT_DETAIL_FIELDS = [
3
+ "*variants.images",
4
+ "*categories",
5
+ "*brand",
6
+ "+additional_data",
7
+ "*variant_attributes",
8
+ "*variant_attributes.values",
9
+ "*custom_attributes",
10
+ "*custom_attributes.values",
11
+ "+attribute_values.*",
12
+ "+attribute_values.attribute.*"
13
+ ].join(",");
14
+ var PRODUCT_DETAIL_QUERY = { fields: PRODUCT_DETAIL_FIELDS };
15
+
16
+ export {
17
+ PRODUCT_DETAIL_QUERY
18
+ };
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-AIF2KTEE.js";
14
14
  import {
15
15
  SingleColumnPage
16
- } from "./chunk-CAS74NLJ.js";
16
+ } from "./chunk-YV6MK4PZ.js";
17
17
  import {
18
18
  usePayouts
19
19
  } from "./chunk-VXWN37PT.js";
@@ -0,0 +1,18 @@
1
+ // src/components/tabbed-form/types.ts
2
+ var defineTabMeta = (meta) => {
3
+ if (process.env.NODE_ENV !== "production") {
4
+ if (!meta.id) {
5
+ console.warn("[TabbedForm] Tab meta is missing required 'id' field");
6
+ }
7
+ if (!meta.labelKey && !meta.label) {
8
+ console.warn(
9
+ `[TabbedForm] Tab "${meta.id}" has neither 'labelKey' nor 'label' \u2014 the tab header will be empty`
10
+ );
11
+ }
12
+ }
13
+ return meta;
14
+ };
15
+
16
+ export {
17
+ defineTabMeta
18
+ };
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  useOrderTableColumns
3
- } from "./chunk-6WY5X4PE.js";
3
+ } from "./chunk-L7QKFC5N.js";
4
4
  import {
5
5
  useOrderTableQuery
6
6
  } from "./chunk-6YA3C4NB.js";
7
7
  import {
8
8
  useOrderTableFilters
9
- } from "./chunk-LQYMBSRQ.js";
9
+ } from "./chunk-AIZM66CG.js";
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
13
13
  } from "./chunk-AIF2KTEE.js";
14
14
  import {
15
15
  SingleColumnPage
16
- } from "./chunk-CAS74NLJ.js";
16
+ } from "./chunk-YV6MK4PZ.js";
17
17
  import {
18
18
  useOrders
19
- } from "./chunk-WBI7FEGI.js";
19
+ } from "./chunk-QS6RWIBL.js";
20
20
 
21
21
  // src/pages/orders/order-list-page.tsx
22
22
  import { Children as Children3 } from "react";