@lunora/studio 1.0.0-alpha.36 → 1.0.0-alpha.360

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 (475) hide show
  1. package/LICENSE.md +6 -0
  2. package/README.md +4 -4
  3. package/dist/index.d.mts +1621 -0
  4. package/dist/index.d.ts +1013 -809
  5. package/dist/index.mjs +1 -0
  6. package/dist/mount.d.mts +23 -0
  7. package/dist/mount.d.ts +13 -11
  8. package/dist/mount.mjs +1 -0
  9. package/dist/packem_chunks/AdvisorHealthPanel.mjs +1 -0
  10. package/dist/packem_chunks/ApiTab.mjs +1 -0
  11. package/dist/packem_chunks/AuditPanel.mjs +1 -0
  12. package/dist/packem_chunks/DeploymentHealthPanel.mjs +1 -0
  13. package/dist/packem_chunks/ExportImportPanel.mjs +8 -0
  14. package/dist/packem_chunks/FileBrowser.mjs +4 -0
  15. package/dist/packem_chunks/FunctionRunner.mjs +1 -0
  16. package/dist/packem_chunks/FunctionStatsPanel.mjs +1 -0
  17. package/dist/packem_chunks/HealthPanel.mjs +1 -0
  18. package/dist/packem_chunks/InsightsPanel.mjs +1 -0
  19. package/dist/packem_chunks/LogsPanel.mjs +1 -0
  20. package/dist/packem_chunks/MailPanel.mjs +2 -0
  21. package/dist/packem_chunks/MetricsPanel.mjs +1 -0
  22. package/dist/packem_chunks/NotificationsPanel.mjs +1 -0
  23. package/dist/packem_chunks/PitrPanel.mjs +1 -0
  24. package/dist/packem_chunks/SchemaViewer.mjs +1 -0
  25. package/dist/packem_chunks/SecurityAdvisorPanel.mjs +1 -0
  26. package/dist/packem_chunks/SettingsPanel.mjs +1 -0
  27. package/dist/packem_chunks/SqlEditorPanel.mjs +10 -0
  28. package/dist/packem_chunks/TableEditor.mjs +1 -0
  29. package/dist/packem_chunks/agents-panel.mjs +1 -0
  30. package/dist/packem_chunks/ai-usage-panel.mjs +1 -0
  31. package/dist/packem_chunks/analytics-panel.mjs +1 -0
  32. package/dist/packem_chunks/architecture-panel.mjs +1 -0
  33. package/dist/packem_chunks/auth-audit-panel.mjs +1 -0
  34. package/dist/packem_chunks/auth-config-panel.mjs +1 -0
  35. package/dist/packem_chunks/auth-sessions-panel.mjs +1 -0
  36. package/dist/packem_chunks/containers-panel.mjs +1 -0
  37. package/dist/packem_chunks/dashboards-panel.mjs +1 -0
  38. package/dist/packem_chunks/evals-panel.mjs +1 -0
  39. package/dist/packem_chunks/fanout-panel.mjs +1 -0
  40. package/dist/packem_chunks/flags-panel.mjs +1 -0
  41. package/dist/packem_chunks/issues-panel.mjs +1 -0
  42. package/dist/packem_chunks/kv-browser.mjs +1 -0
  43. package/dist/packem_chunks/log-drains-panel.mjs +4 -0
  44. package/dist/packem_chunks/migrations-route.mjs +1 -0
  45. package/dist/packem_chunks/organizations-panel.mjs +1 -0
  46. package/dist/packem_chunks/payments-panel.mjs +1 -0
  47. package/dist/packem_chunks/permissions-panel.mjs +1 -0
  48. package/dist/packem_chunks/privacy-requests-panel.mjs +1 -0
  49. package/dist/packem_chunks/queues-panel.mjs +1 -0
  50. package/dist/packem_chunks/reactors-panel.mjs +1 -0
  51. package/dist/packem_chunks/rls-panel.mjs +1 -0
  52. package/dist/packem_chunks/schedule-panel.mjs +1 -0
  53. package/dist/packem_chunks/storage-rules-panel.mjs +1 -0
  54. package/dist/packem_chunks/subscriptions-panel.mjs +1 -0
  55. package/dist/packem_chunks/sync-client-panel.mjs +1 -0
  56. package/dist/packem_chunks/theme-indicator.mjs +1 -0
  57. package/dist/packem_chunks/traces-panel.mjs +1 -0
  58. package/dist/packem_chunks/users-panel.mjs +1 -0
  59. package/dist/packem_chunks/vector-browser.mjs +1 -0
  60. package/dist/packem_chunks/workflows-panel.mjs +1 -0
  61. package/dist/packem_shared/ADMIN_FUNCTIONS-4aGsMs95.mjs +1 -0
  62. package/dist/packem_shared/ApiDocsPanel-DD2Uns6b.mjs +2 -0
  63. package/dist/packem_shared/ApiReferencePanel-CQxU1Ocx.mjs +1 -0
  64. package/dist/packem_shared/CommandPalette-BZCHLpst.mjs +1 -0
  65. package/dist/packem_shared/ConfirmButton-CIXYF6Mg.mjs +1 -0
  66. package/dist/packem_shared/ConnectionBadge-BfcoN-VE.mjs +1 -0
  67. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Py5Yx7rP.mjs +1 -0
  68. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-D5YMT0gM.mjs +1 -0
  69. package/dist/packem_shared/DEFAULT_LOCALE-BQ3jRT74.mjs +1 -0
  70. package/dist/packem_shared/DataBrowser-CVRWnNWu.mjs +4 -0
  71. package/dist/packem_shared/DataFilters--ocFTVT2.mjs +1 -0
  72. package/dist/packem_shared/ErrorBoundary-BWNF98VF.mjs +1 -0
  73. package/dist/packem_shared/GlobalDataBrowser-DC47T6Zl.mjs +1 -0
  74. package/dist/packem_shared/HomePanel-D12HxHQo.mjs +1 -0
  75. package/dist/packem_shared/MigrationsPanel-DMkxSXNl.mjs +1 -0
  76. package/dist/packem_shared/OpenRpcReferencePanel-BFDG91tn.mjs +1 -0
  77. package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.mjs +1 -0
  78. package/dist/packem_shared/ScheduledJobs-QCTRdugp.mjs +1 -0
  79. package/dist/packem_shared/ShardInput-CoySruKZ.mjs +1 -0
  80. package/dist/packem_shared/Studio-MA8kKZLu.mjs +1 -0
  81. package/dist/packem_shared/StudioApp-isdWpF9P.mjs +1 -0
  82. package/dist/packem_shared/StudioI18nProvider-CGXCPnQn.mjs +1 -0
  83. package/dist/packem_shared/advisor-view-tBumWci_.mjs +1 -0
  84. package/dist/packem_shared/aggregateMetrics-DKFJc-o5.mjs +1 -0
  85. package/dist/packem_shared/alert-PB5W11MM.mjs +1 -0
  86. package/dist/packem_shared/app.d-D425h1XO.d.mts +352 -0
  87. package/dist/packem_shared/app.d-D425h1XO.d.ts +352 -0
  88. package/dist/packem_shared/auth-pager-DW77WeZw.mjs +1 -0
  89. package/dist/packem_shared/badge-r_5B4LHP.mjs +1 -0
  90. package/dist/packem_shared/bar-chart-BCsEIQoQ.mjs +6 -0
  91. package/dist/packem_shared/browser-storage-BH1MxLZs.mjs +1 -0
  92. package/dist/packem_shared/button-q0UYSmrn.mjs +1 -0
  93. package/dist/packem_shared/card-By2O8ULa.mjs +1 -0
  94. package/dist/packem_shared/cf-links-CBJ5SywP.mjs +1 -0
  95. package/dist/packem_shared/checkbox-CnS9cyCz.mjs +1 -0
  96. package/dist/packem_shared/control-button-BOZ5K-FC.mjs +1 -0
  97. package/dist/packem_shared/data-grid-B5m1OosL.mjs +1 -0
  98. package/dist/packem_shared/data-view-params-C-_G-biH.mjs +1 -0
  99. package/dist/packem_shared/diagram-export-panel-Vdt-DZnO.mjs +2 -0
  100. package/dist/packem_shared/dropdown-menu-jLZenfWH.mjs +2 -0
  101. package/dist/packem_shared/empty-state-D7jEML_T.mjs +1 -0
  102. package/dist/packem_shared/error-alert-C0R39DO1.mjs +1 -0
  103. package/dist/packem_shared/grid-features-Drvfswwy.mjs +6 -0
  104. package/dist/packem_shared/grid-pagination-DY2erU65.mjs +1 -0
  105. package/dist/packem_shared/home-panel-CDVTuTF8.mjs +3 -0
  106. package/dist/packem_shared/input-CXhxesPC.mjs +1 -0
  107. package/dist/packem_shared/internal-hIuTpSbx.mjs +2 -0
  108. package/dist/packem_shared/label-DKFzyHq6.mjs +1 -0
  109. package/dist/packem_shared/live-status-D1GasNsH.mjs +1 -0
  110. package/dist/packem_shared/log-fields-BolUoZ9g.mjs +1 -0
  111. package/dist/packem_shared/log-line-BH0iWiBv.mjs +1 -0
  112. package/dist/packem_shared/metrics-format-1sNGG47R.mjs +1 -0
  113. package/dist/packem_shared/modal-shell-CDztwLnv.mjs +1 -0
  114. package/dist/packem_shared/operation-console-provider-DoloEvon.mjs +1 -0
  115. package/dist/packem_shared/recording-client-DAipTA_n.mjs +1 -0
  116. package/dist/packem_shared/reference-view-DENugPcj.mjs +13 -0
  117. package/dist/packem_shared/schema-diagram-CtVPhOGj.mjs +2 -0
  118. package/dist/packem_shared/scroll-area-CXCQH7VT.mjs +2 -0
  119. package/dist/packem_shared/select-DPyS18Vy.mjs +2 -0
  120. package/dist/packem_shared/shard-history-CaO3C4KQ.mjs +1 -0
  121. package/dist/packem_shared/shortcuts-B9gDaXmw.mjs +1 -0
  122. package/dist/packem_shared/skeleton-DX1gfixl.mjs +1 -0
  123. package/dist/packem_shared/sparkline-B_sPPO_8.mjs +1 -0
  124. package/dist/packem_shared/sql-result-table-DCwooMGW.mjs +1 -0
  125. package/dist/packem_shared/stat-card-BAv73QtB.mjs +1 -0
  126. package/dist/packem_shared/storage-tier-C2mKwYRj.mjs +1 -0
  127. package/dist/packem_shared/studio-UhUrPz5J.mjs +2 -0
  128. package/dist/packem_shared/table-D0SBiDu-.mjs +2 -0
  129. package/dist/packem_shared/table-list-sidebar-CNadcIgG.mjs +1 -0
  130. package/dist/packem_shared/textarea--40GKAyz.mjs +1 -0
  131. package/dist/packem_shared/trace-handoff-BV3EWqy_.mjs +1 -0
  132. package/dist/packem_shared/use-admin-query-CaOm4JS3.mjs +1 -0
  133. package/dist/packem_shared/use-admin-spec-CK7mk3Ui.mjs +1 -0
  134. package/dist/packem_shared/use-async-submit-D0r7-m2J.mjs +1 -0
  135. package/dist/packem_shared/use-auth-config-CG7VvAvQ.mjs +1 -0
  136. package/dist/packem_shared/use-mirrored-ref-CVDf2z1M.mjs +1 -0
  137. package/dist/packem_shared/use-open-trace-BJKMJjeS.mjs +1 -0
  138. package/dist/packem_shared/use-shard-key-BsP3o5wT.mjs +1 -0
  139. package/dist/packem_shared/use-sql-assistant-rZPs3LC3.mjs +1 -0
  140. package/dist/packem_shared/use-studio-client-DCA50tF2.mjs +1 -0
  141. package/dist/packem_shared/useDebounced-DVeQ5-oW.mjs +1 -0
  142. package/dist/packem_shared/utils-bhneXptQ.mjs +1 -0
  143. package/dist/packem_shared/virtual-rect-D_j7aLxX.mjs +1 -0
  144. package/dist/standalone/chunk-2AH4ABE5.js +1 -0
  145. package/dist/standalone/chunk-2G57ENH5.js +1 -0
  146. package/dist/standalone/chunk-3FS22LNI.js +4 -0
  147. package/dist/standalone/chunk-3GXPALXG.js +1 -0
  148. package/dist/standalone/chunk-3GYLOE4V.js +1 -0
  149. package/dist/standalone/chunk-3PAYDWHN.js +8 -0
  150. package/dist/standalone/chunk-473JK2PQ.js +1 -0
  151. package/dist/standalone/chunk-4C4THJUD.js +1 -0
  152. package/dist/standalone/chunk-4DAKKAK7.js +1 -0
  153. package/dist/standalone/chunk-4M57OYFX.js +1 -0
  154. package/dist/standalone/chunk-4SQBAPY6.js +1 -0
  155. package/dist/standalone/chunk-5DNGK3NT.js +1 -0
  156. package/dist/standalone/chunk-5GIQ6C5N.js +1 -0
  157. package/dist/standalone/chunk-5R2YO7HF.js +4 -0
  158. package/dist/standalone/chunk-5WJG7FMH.js +1 -0
  159. package/dist/standalone/chunk-63KDHS3H.js +1 -0
  160. package/dist/standalone/chunk-6B6ARRMI.js +1 -0
  161. package/dist/standalone/chunk-6LMO2D54.js +1 -0
  162. package/dist/standalone/chunk-6M7FLLMT.js +1 -0
  163. package/dist/standalone/chunk-6QEXGYWH.js +1 -0
  164. package/dist/standalone/chunk-6UTZXEW3.js +1 -0
  165. package/dist/standalone/chunk-6VAY6L4J.js +1 -0
  166. package/dist/standalone/chunk-7PADVGQX.js +1 -0
  167. package/dist/standalone/chunk-7RGYCU6F.js +1 -0
  168. package/dist/standalone/chunk-7UM5ROG6.js +1 -0
  169. package/dist/standalone/chunk-7ZIYHKLX.js +5 -0
  170. package/dist/standalone/chunk-A566HCBX.js +1 -0
  171. package/dist/standalone/chunk-A5JISKHE.js +1 -0
  172. package/dist/standalone/chunk-ADNRFCMZ.js +1 -0
  173. package/dist/standalone/chunk-AP4PC2M4.js +1 -0
  174. package/dist/standalone/chunk-BFE2DRP6.js +33 -0
  175. package/dist/standalone/chunk-BPEB4KFE.js +1 -0
  176. package/dist/standalone/chunk-BVX45MU5.js +7 -0
  177. package/dist/standalone/chunk-BYOGQ2IV.js +3 -0
  178. package/dist/standalone/chunk-C6GN7ZXJ.js +1 -0
  179. package/dist/standalone/chunk-CL2VZNDI.js +1 -0
  180. package/dist/standalone/chunk-CNA3TVUK.js +1 -0
  181. package/dist/standalone/chunk-CZ6HBDIL.js +1 -0
  182. package/dist/standalone/chunk-D6S7MXW4.js +1 -0
  183. package/dist/standalone/chunk-DBVJ5VLI.js +1 -0
  184. package/dist/standalone/chunk-DX55P3KZ.js +1 -0
  185. package/dist/standalone/chunk-E26OT26O.js +1 -0
  186. package/dist/standalone/chunk-FCAXVYAX.js +1 -0
  187. package/dist/standalone/chunk-FXPAJDES.js +1 -0
  188. package/dist/standalone/chunk-H7HZ42JY.js +1 -0
  189. package/dist/standalone/chunk-HHRYM6UW.js +1 -0
  190. package/dist/standalone/chunk-HPRF5LMA.js +1 -0
  191. package/dist/standalone/chunk-IB22LETR.js +1 -0
  192. package/dist/standalone/chunk-IBJVVHV5.js +1 -0
  193. package/dist/standalone/chunk-IENQRRQT.js +1 -0
  194. package/dist/standalone/chunk-IH2CJZF2.js +1 -0
  195. package/dist/standalone/chunk-IQ4TTHQT.js +1 -0
  196. package/dist/standalone/chunk-ITH5LRWM.js +1 -0
  197. package/dist/standalone/chunk-J6VFG6M5.js +1 -0
  198. package/dist/standalone/chunk-JSDKOE4U.js +1 -0
  199. package/dist/standalone/chunk-JTGGWF7R.js +1 -0
  200. package/dist/standalone/chunk-JZD7ZN3F.js +1 -0
  201. package/dist/standalone/chunk-K3CWB3AM.js +1 -0
  202. package/dist/standalone/chunk-KNFB3FGW.js +1 -0
  203. package/dist/standalone/chunk-KNXWDE4N.js +1 -0
  204. package/dist/standalone/chunk-KRPXOSBL.js +1 -0
  205. package/dist/standalone/chunk-KRY7BYHT.js +1 -0
  206. package/dist/standalone/chunk-KYAG2YMF.js +1 -0
  207. package/dist/standalone/chunk-KZCEJFZF.js +1 -0
  208. package/dist/standalone/chunk-KZILJQX3.js +8 -0
  209. package/dist/standalone/chunk-LEYUH5TS.js +1 -0
  210. package/dist/standalone/chunk-LFM672WN.js +1 -0
  211. package/dist/standalone/chunk-LIGOLZND.js +1 -0
  212. package/dist/standalone/chunk-LPU6YTSU.js +1 -0
  213. package/dist/standalone/chunk-LUHXNZI4.js +2 -0
  214. package/dist/standalone/chunk-MWJC3S62.js +1 -0
  215. package/dist/standalone/chunk-NGVP66OH.js +1 -0
  216. package/dist/standalone/chunk-NP2AQOLE.js +1 -0
  217. package/dist/standalone/chunk-NVKLYDOH.js +1 -0
  218. package/dist/standalone/chunk-O2NMPIV2.js +59 -0
  219. package/dist/standalone/chunk-O2X2XYCM.js +1 -0
  220. package/dist/standalone/chunk-O3MDWYXF.js +1 -0
  221. package/dist/standalone/chunk-ONG4JEZD.js +1 -0
  222. package/dist/standalone/chunk-ONWGX5Y4.js +6 -0
  223. package/dist/standalone/chunk-OS26JXYA.js +1 -0
  224. package/dist/standalone/chunk-OXFKZ4BM.js +1 -0
  225. package/dist/standalone/chunk-PGTEGUAB.js +1 -0
  226. package/dist/standalone/chunk-PQH2LSJX.js +1 -0
  227. package/dist/standalone/chunk-PTBUWRBY.js +1 -0
  228. package/dist/standalone/chunk-Q6HA3L2H.js +1 -0
  229. package/dist/standalone/chunk-QGV5ARD2.js +1 -0
  230. package/dist/standalone/chunk-QWRK4ESB.js +1 -0
  231. package/dist/standalone/chunk-R36QXQZX.js +1 -0
  232. package/dist/standalone/chunk-RL2ITK2N.js +1 -0
  233. package/dist/standalone/chunk-RTJO3AR4.js +1 -0
  234. package/dist/standalone/chunk-SFY646MC.js +1 -0
  235. package/dist/standalone/chunk-SLIDAWNX.js +1 -0
  236. package/dist/standalone/chunk-SU5DTRGK.js +3 -0
  237. package/dist/standalone/{chunk-BJGBHGK3.js → chunk-SYGCASPT.js} +1 -1
  238. package/dist/standalone/chunk-T5UMHPAB.js +1 -0
  239. package/dist/standalone/chunk-T6HV2FQP.js +2 -0
  240. package/dist/standalone/chunk-T7ZKNNGX.js +1 -0
  241. package/dist/standalone/chunk-TCYPNSTV.js +1 -0
  242. package/dist/standalone/chunk-TDVDZ7XQ.js +1 -0
  243. package/dist/standalone/chunk-TQM6XHBA.js +1 -0
  244. package/dist/standalone/chunk-TRMWBRRU.js +1 -0
  245. package/dist/standalone/chunk-TW7KJSMR.js +15 -0
  246. package/dist/standalone/chunk-TYD3V4NB.js +1 -0
  247. package/dist/standalone/chunk-TZKLK52W.js +1 -0
  248. package/dist/standalone/chunk-U4RXQSQ7.js +1 -0
  249. package/dist/standalone/chunk-UNZ2UBVL.js +1 -0
  250. package/dist/standalone/chunk-UYEZR3BI.js +1 -0
  251. package/dist/standalone/chunk-VEWQWS3J.js +1 -0
  252. package/dist/standalone/chunk-VJRNOSRY.js +1 -0
  253. package/dist/standalone/chunk-W2BCSK5S.js +1 -0
  254. package/dist/standalone/chunk-W7MRISE3.js +1 -0
  255. package/dist/standalone/chunk-WM72PRE3.js +1 -0
  256. package/dist/standalone/chunk-WS36BO4R.js +1 -0
  257. package/dist/standalone/chunk-X4WHMCOZ.js +1 -0
  258. package/dist/standalone/chunk-X74GEPSG.js +1 -0
  259. package/dist/standalone/chunk-XIRKBJPD.js +14 -0
  260. package/dist/standalone/chunk-XKPD4SFN.js +1 -0
  261. package/dist/standalone/chunk-XMSNLMWU.js +1 -0
  262. package/dist/standalone/chunk-XOPFDWXX.js +1 -0
  263. package/dist/standalone/chunk-XQLOVFPP.js +1 -0
  264. package/dist/standalone/chunk-XSHYZPGF.js +1 -0
  265. package/dist/standalone/chunk-XST3UEHU.js +1 -0
  266. package/dist/standalone/chunk-XYR5NST4.js +1 -0
  267. package/dist/standalone/chunk-Y74LIFSL.js +1 -0
  268. package/dist/standalone/chunk-YHTHRYP5.js +1 -0
  269. package/dist/standalone/chunk-YMEKCV27.js +1 -0
  270. package/dist/standalone/chunk-Z5EV64KS.js +1 -0
  271. package/dist/standalone/chunk-ZBON5T5A.js +1 -0
  272. package/dist/standalone/chunk-ZGSL4DPP.js +1 -0
  273. package/dist/standalone/chunk-ZOQTXWPK.js +1 -0
  274. package/dist/standalone/chunk-ZTOREMGH.js +1 -0
  275. package/dist/standalone/chunk-ZZ5GICTF.js +1 -0
  276. package/dist/standalone/studio.js +9 -214
  277. package/dist/styles.css +2 -2
  278. package/package.json +26 -22
  279. package/dist/index.js +0 -41
  280. package/dist/mount.js +0 -27
  281. package/dist/packem_chunks/ApiTab.js +0 -251
  282. package/dist/packem_chunks/AuditPanel.js +0 -200
  283. package/dist/packem_chunks/ExportImportPanel.js +0 -198
  284. package/dist/packem_chunks/FileBrowser.js +0 -2932
  285. package/dist/packem_chunks/FunctionRunner.js +0 -343
  286. package/dist/packem_chunks/FunctionStatsPanel.js +0 -377
  287. package/dist/packem_chunks/HealthPanel.js +0 -648
  288. package/dist/packem_chunks/InsightsPanel.js +0 -462
  289. package/dist/packem_chunks/LogsPanel.js +0 -827
  290. package/dist/packem_chunks/MailPanel.js +0 -353
  291. package/dist/packem_chunks/MetricsPanel.js +0 -1344
  292. package/dist/packem_chunks/MigrationsPanel.js +0 -239
  293. package/dist/packem_chunks/PitrPanel.js +0 -252
  294. package/dist/packem_chunks/SchemaViewer.js +0 -2513
  295. package/dist/packem_chunks/SecurityAdvisorPanel.js +0 -95
  296. package/dist/packem_chunks/SettingsPanel.js +0 -391
  297. package/dist/packem_chunks/SqlEditorPanel.js +0 -2323
  298. package/dist/packem_chunks/TableEditor.js +0 -313
  299. package/dist/packem_chunks/analytics-panel.js +0 -261
  300. package/dist/packem_chunks/auth-config-panel.js +0 -179
  301. package/dist/packem_chunks/auth-sessions-panel.js +0 -175
  302. package/dist/packem_chunks/containers-panel.js +0 -247
  303. package/dist/packem_chunks/dashboards-panel.js +0 -780
  304. package/dist/packem_chunks/fanout-panel.js +0 -482
  305. package/dist/packem_chunks/flags-panel.js +0 -176
  306. package/dist/packem_chunks/kv-browser.js +0 -1896
  307. package/dist/packem_chunks/log-drains-panel.js +0 -273
  308. package/dist/packem_chunks/organizations-panel.js +0 -670
  309. package/dist/packem_chunks/payments-panel.js +0 -186
  310. package/dist/packem_chunks/permissions-panel.js +0 -805
  311. package/dist/packem_chunks/queues-panel.js +0 -1052
  312. package/dist/packem_chunks/rls-panel.js +0 -315
  313. package/dist/packem_chunks/schedule-panel.js +0 -831
  314. package/dist/packem_chunks/sparkline.js +0 -79
  315. package/dist/packem_chunks/storage-rules-panel.js +0 -140
  316. package/dist/packem_chunks/subscriptions-panel.js +0 -238
  317. package/dist/packem_chunks/users-panel.js +0 -1265
  318. package/dist/packem_chunks/vector-browser.js +0 -281
  319. package/dist/packem_chunks/workflows-panel.js +0 -562
  320. package/dist/packem_shared/ADMIN_FUNCTIONS-BHHJi3Gb.js +0 -52
  321. package/dist/packem_shared/ApiDocsPanel-D4CJf2ad.js +0 -842
  322. package/dist/packem_shared/ApiReferencePanel-Co_wpRF2.js +0 -230
  323. package/dist/packem_shared/CommandPalette-BUPpbpMc.js +0 -373
  324. package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
  325. package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
  326. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
  327. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
  328. package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
  329. package/dist/packem_shared/DataBrowser-BeVNxSVm.js +0 -4493
  330. package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
  331. package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
  332. package/dist/packem_shared/GlobalDataBrowser-ErfvIs1S.js +0 -289
  333. package/dist/packem_shared/HomePanel-D9MQk8I7.js +0 -14
  334. package/dist/packem_shared/OpenRpcReferencePanel-DLWzrIx9.js +0 -192
  335. package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
  336. package/dist/packem_shared/ScheduledJobs-ClaNpZsg.js +0 -262
  337. package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
  338. package/dist/packem_shared/Studio-C48P1K5W.js +0 -16
  339. package/dist/packem_shared/StudioApp-Cqh-SYm2.js +0 -657
  340. package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
  341. package/dist/packem_shared/advisor-view-D3-U4kRR.js +0 -159
  342. package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
  343. package/dist/packem_shared/alert-CdAET2K_.js +0 -68
  344. package/dist/packem_shared/app.d-CNLRTrWw.d.ts +0 -300
  345. package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
  346. package/dist/packem_shared/bar-chart-DSwcWIRy.js +0 -3246
  347. package/dist/packem_shared/browser-storage-tLOxkIHd.js +0 -185
  348. package/dist/packem_shared/button-BhsN2uZH.js +0 -49
  349. package/dist/packem_shared/card-DURq3ElK.js +0 -175
  350. package/dist/packem_shared/cf-links-BZfRdxSE.js +0 -8
  351. package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
  352. package/dist/packem_shared/data-grid-Jz8FqQ2C.js +0 -183
  353. package/dist/packem_shared/data-view-params-Cd6yRVbv.js +0 -96
  354. package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
  355. package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
  356. package/dist/packem_shared/error-alert-BBT6D22d.js +0 -114
  357. package/dist/packem_shared/grid-features-CUr8Z1_O.js +0 -745
  358. package/dist/packem_shared/home-panel-CoGxi-oj.js +0 -1639
  359. package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
  360. package/dist/packem_shared/internal-DTsYVn-g.js +0 -97
  361. package/dist/packem_shared/label-D8ykjn5J.js +0 -46
  362. package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
  363. package/dist/packem_shared/modal-shell-hyaJvIJ6.js +0 -100
  364. package/dist/packem_shared/reference-view-CSKyUyPl.js +0 -2141
  365. package/dist/packem_shared/scroll-area-DLhcy-ml.js +0 -93
  366. package/dist/packem_shared/select-UkNYCT3s.js +0 -273
  367. package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
  368. package/dist/packem_shared/skeleton-CGhL0p20.js +0 -45
  369. package/dist/packem_shared/sparkline-BnA1kC9X.js +0 -93
  370. package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
  371. package/dist/packem_shared/studio-CPHA_-3I.js +0 -4015
  372. package/dist/packem_shared/table-DsCa9Qp9.js +0 -246
  373. package/dist/packem_shared/table-list-sidebar-B5psdSV1.js +0 -832
  374. package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
  375. package/dist/packem_shared/use-admin-query-BHPKmPuj.js +0 -106
  376. package/dist/packem_shared/use-auth-capabilities-C-VH0oJJ.js +0 -32
  377. package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
  378. package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
  379. package/dist/packem_shared/virtual-rect-CVMUskSm.js +0 -10
  380. package/dist/standalone/chunk-22W5VKZ6.js +0 -1
  381. package/dist/standalone/chunk-2GGMGPEP.js +0 -1
  382. package/dist/standalone/chunk-2K47A3P6.js +0 -1
  383. package/dist/standalone/chunk-2NGUNNGW.js +0 -1
  384. package/dist/standalone/chunk-2THHW7BC.js +0 -1
  385. package/dist/standalone/chunk-3CJW6NWG.js +0 -4
  386. package/dist/standalone/chunk-3OA7PECS.js +0 -6
  387. package/dist/standalone/chunk-46K3NKPA.js +0 -1
  388. package/dist/standalone/chunk-4QHKBC77.js +0 -1
  389. package/dist/standalone/chunk-5OH3VPZF.js +0 -1
  390. package/dist/standalone/chunk-5OIBXYZM.js +0 -1
  391. package/dist/standalone/chunk-6GFEVKJP.js +0 -1
  392. package/dist/standalone/chunk-6WRZP62V.js +0 -1
  393. package/dist/standalone/chunk-764T6X6X.js +0 -1
  394. package/dist/standalone/chunk-7SLSB2TS.js +0 -4
  395. package/dist/standalone/chunk-7TJJXVSE.js +0 -1
  396. package/dist/standalone/chunk-7VF3IAAW.js +0 -2
  397. package/dist/standalone/chunk-AHILM3ZP.js +0 -1
  398. package/dist/standalone/chunk-AJIUI7DD.js +0 -1
  399. package/dist/standalone/chunk-ATYUMPDM.js +0 -1
  400. package/dist/standalone/chunk-BACPICH6.js +0 -1
  401. package/dist/standalone/chunk-BI35RXKQ.js +0 -1
  402. package/dist/standalone/chunk-BOXSWNXZ.js +0 -1
  403. package/dist/standalone/chunk-BQUQS7QN.js +0 -1
  404. package/dist/standalone/chunk-CKSHCYGC.js +0 -2
  405. package/dist/standalone/chunk-DC72CQY4.js +0 -76
  406. package/dist/standalone/chunk-DORBUITF.js +0 -1
  407. package/dist/standalone/chunk-DVC6YWVP.js +0 -1
  408. package/dist/standalone/chunk-DVKPRFIJ.js +0 -1
  409. package/dist/standalone/chunk-DWDILV2E.js +0 -1
  410. package/dist/standalone/chunk-DWTBY343.js +0 -1
  411. package/dist/standalone/chunk-EUIHTPKI.js +0 -1
  412. package/dist/standalone/chunk-FCSPAJW4.js +0 -1
  413. package/dist/standalone/chunk-GMSGZDDH.js +0 -13
  414. package/dist/standalone/chunk-GTM65MVX.js +0 -1
  415. package/dist/standalone/chunk-HV7G6DFP.js +0 -5
  416. package/dist/standalone/chunk-ILCTSAOB.js +0 -1
  417. package/dist/standalone/chunk-IOFMK4D7.js +0 -1
  418. package/dist/standalone/chunk-J6J54MBP.js +0 -1
  419. package/dist/standalone/chunk-JE2YOAB7.js +0 -4
  420. package/dist/standalone/chunk-JSEXCW5Q.js +0 -1
  421. package/dist/standalone/chunk-K3GNLVYK.js +0 -1
  422. package/dist/standalone/chunk-KEGAWN6Y.js +0 -1
  423. package/dist/standalone/chunk-KJJ3WM6H.js +0 -4
  424. package/dist/standalone/chunk-KZ6INM5M.js +0 -1
  425. package/dist/standalone/chunk-LAK5VSPI.js +0 -1
  426. package/dist/standalone/chunk-LD2R263D.js +0 -1
  427. package/dist/standalone/chunk-LI43EKM6.js +0 -1
  428. package/dist/standalone/chunk-M55U7NHO.js +0 -1
  429. package/dist/standalone/chunk-MPTM7ZU3.js +0 -3
  430. package/dist/standalone/chunk-MPYFGAOW.js +0 -1
  431. package/dist/standalone/chunk-NKJDGOM3.js +0 -1
  432. package/dist/standalone/chunk-O3NAGRTR.js +0 -1
  433. package/dist/standalone/chunk-OCHNCAXJ.js +0 -1
  434. package/dist/standalone/chunk-OIZ4CHPN.js +0 -8
  435. package/dist/standalone/chunk-OY3GVYS7.js +0 -4
  436. package/dist/standalone/chunk-PACH5AHG.js +0 -1
  437. package/dist/standalone/chunk-PN5NCZDX.js +0 -1
  438. package/dist/standalone/chunk-PVZI3CXP.js +0 -19
  439. package/dist/standalone/chunk-PZ7HD5T2.js +0 -1
  440. package/dist/standalone/chunk-Q52CHOSY.js +0 -1
  441. package/dist/standalone/chunk-QAFAJBAW.js +0 -1
  442. package/dist/standalone/chunk-QBAT52GB.js +0 -1
  443. package/dist/standalone/chunk-QLM6FYZW.js +0 -2
  444. package/dist/standalone/chunk-RRAFQ5G2.js +0 -1
  445. package/dist/standalone/chunk-RRCPZMC2.js +0 -22
  446. package/dist/standalone/chunk-RSEEHNFI.js +0 -1
  447. package/dist/standalone/chunk-SEU5V7I6.js +0 -1
  448. package/dist/standalone/chunk-SG3ALJJU.js +0 -1
  449. package/dist/standalone/chunk-SLKF2L74.js +0 -1
  450. package/dist/standalone/chunk-TAD43CG5.js +0 -1
  451. package/dist/standalone/chunk-TBMYIZIO.js +0 -1
  452. package/dist/standalone/chunk-TDL7NEWA.js +0 -1
  453. package/dist/standalone/chunk-TO4JQX7W.js +0 -1
  454. package/dist/standalone/chunk-TOJ3TC35.js +0 -1
  455. package/dist/standalone/chunk-TQ36RWOP.js +0 -1
  456. package/dist/standalone/chunk-U4OAQPBT.js +0 -1
  457. package/dist/standalone/chunk-UK64ZSUW.js +0 -1
  458. package/dist/standalone/chunk-VLXV72QE.js +0 -1
  459. package/dist/standalone/chunk-VTGBPW24.js +0 -1
  460. package/dist/standalone/chunk-WI7GWFEG.js +0 -1
  461. package/dist/standalone/chunk-WXPWVBIY.js +0 -1
  462. package/dist/standalone/chunk-X5P2WRYI.js +0 -1
  463. package/dist/standalone/chunk-X7MMBSNW.js +0 -1
  464. package/dist/standalone/chunk-XLQ4BHBD.js +0 -1
  465. package/dist/standalone/chunk-XNJNSCLM.js +0 -1
  466. package/dist/standalone/chunk-XUGSA2NG.js +0 -1
  467. package/dist/standalone/chunk-Y2ZPNDL7.js +0 -4
  468. package/dist/standalone/chunk-YAECF5LW.js +0 -1
  469. package/dist/standalone/chunk-YEVCU7TB.js +0 -13
  470. package/dist/standalone/chunk-ZHVTQ37P.js +0 -1
  471. package/dist/standalone/chunk-ZIGWVHCS.js +0 -1
  472. package/dist/standalone/chunk-ZPP2KOR4.js +0 -1
  473. package/dist/standalone/chunk-ZPUO7FNI.js +0 -1
  474. package/dist/standalone/chunk-ZU4DZ6NK.js +0 -1
  475. package/dist/standalone/chunk-ZYRGPDZB.js +0 -1
@@ -1,1052 +0,0 @@
1
- import { c } from 'react/compiler-runtime';
2
- import { useLunora } from '@lunora/react';
3
- import { useState } from 'react';
4
- import { E as ErrorAlert } from '../packem_shared/error-alert-BBT6D22d.js';
5
- import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
6
- import { B as Button } from '../packem_shared/button-BhsN2uZH.js';
7
- import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
8
- import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
9
- import { I as Input } from '../packem_shared/input-XH4r1Pt1.js';
10
- import { S as ScrollArea } from '../packem_shared/scroll-area-DLhcy-ml.js';
11
- import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
12
- import { T as Textarea } from '../packem_shared/textarea-D3gaCU_-.js';
13
- import { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
14
- import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
15
- import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
16
- import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-BHHJi3Gb.js';
17
- import { c as callOptions, e as errorMessage, f as fireAndForget, a as adminRef, i as formatTimestamp } from '../packem_shared/internal-DTsYVn-g.js';
18
- import { jsxDEV, Fragment } from 'react/jsx-dev-runtime';
19
-
20
- const DEFAULT_MESSAGE_LIMIT = 200;
21
- const SEND_QUEUE_MESSAGE = adminRef(ADMIN_FUNCTIONS.sendQueueMessage);
22
- const REPLAY_QUEUE_MESSAGE = adminRef(ADMIN_FUNCTIONS.replayQueueMessage);
23
- const CLEAR_QUEUE_MESSAGES = adminRef(ADMIN_FUNCTIONS.clearQueueMessages);
24
- const BODY_PREVIEW_MAX = 96;
25
- const formatBody = (value) => {
26
- if (value === void 0) {
27
- return "—";
28
- }
29
- try {
30
- return JSON.stringify(value);
31
- } catch {
32
- return "[unserializable]";
33
- }
34
- };
35
- const truncate = (text) => text.length > BODY_PREVIEW_MAX ? `${text.slice(0, BODY_PREVIEW_MAX)}…` : text;
36
- const outcomeVariant = (outcome) => {
37
- if (outcome === "error") {
38
- return "destructive";
39
- }
40
- if (outcome === "retry") {
41
- return "outline";
42
- }
43
- return "secondary";
44
- };
45
- const tabLabel = (value, t) => {
46
- if (value === "messages") {
47
- return t("Messages");
48
- }
49
- if (value === "send") {
50
- return t("Send");
51
- }
52
- return t("Declared");
53
- };
54
- const QueuesDeclaredTab = (t0) => {
55
- const $ = c(11);
56
- const {
57
- loaded,
58
- queues
59
- } = t0;
60
- const t = useT();
61
- let t1;
62
- if ($[0] !== t) {
63
- t1 = t("Queues are declared in code with defineQueue. Enqueue from a mutation or action with ctx.queues.<name>.send(...); push consumers process batches in the worker.");
64
- $[0] = t;
65
- $[1] = t1;
66
- } else {
67
- t1 = $[1];
68
- }
69
- let t2;
70
- if ($[2] !== t1) {
71
- t2 = /* @__PURE__ */ jsxDEV("p", {
72
- className: "text-sm text-muted-foreground",
73
- children: t1
74
- }, void 0, false);
75
- $[2] = t1;
76
- $[3] = t2;
77
- } else {
78
- t2 = $[3];
79
- }
80
- let t3;
81
- if ($[4] !== loaded || $[5] !== queues || $[6] !== t) {
82
- t3 = loaded && queues.length === 0 ? /* @__PURE__ */ jsxDEV(EmptyState, {
83
- description: t("No defineQueue is declared in lunora/queues.ts in this deployment. Add one to offload async work to a Cloudflare Queue."),
84
- testId: "queues-empty",
85
- title: t("No queues defined")
86
- }, void 0, false) : /* @__PURE__ */ jsxDEV(Card, {
87
- className: "overflow-hidden py-0",
88
- children: /* @__PURE__ */ jsxDEV(CardContent, {
89
- className: "px-0",
90
- children: /* @__PURE__ */ jsxDEV(Table, {
91
- "data-testid": "queues-table",
92
- children: [/* @__PURE__ */ jsxDEV(TableHeader, {
93
- children: /* @__PURE__ */ jsxDEV(TableRow, {
94
- children: [/* @__PURE__ */ jsxDEV(TableHead, {
95
- children: t("Export")
96
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
97
- children: t("Queue")
98
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
99
- children: t("Mode")
100
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
101
- children: t("Binding")
102
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
103
- children: t("Dead-letter")
104
- }, void 0, false)]
105
- }, void 0, true)
106
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
107
- children: queues.map(_temp)
108
- }, void 0, false)]
109
- }, void 0, true)
110
- }, void 0, false)
111
- }, void 0, false);
112
- $[4] = loaded;
113
- $[5] = queues;
114
- $[6] = t;
115
- $[7] = t3;
116
- } else {
117
- t3 = $[7];
118
- }
119
- let t4;
120
- if ($[8] !== t2 || $[9] !== t3) {
121
- t4 = /* @__PURE__ */ jsxDEV("div", {
122
- className: "flex flex-col gap-4",
123
- "data-testid": "queues-declared",
124
- children: [t2, t3]
125
- }, void 0, true);
126
- $[8] = t2;
127
- $[9] = t3;
128
- $[10] = t4;
129
- } else {
130
- t4 = $[10];
131
- }
132
- return t4;
133
- };
134
- const QueueLogRow = (t0) => {
135
- const $ = c(67);
136
- const {
137
- message,
138
- onReplay,
139
- replayingId
140
- } = t0;
141
- const t = useT();
142
- let T0;
143
- let T1;
144
- let t1;
145
- let t2;
146
- let t3;
147
- let t4;
148
- let t5;
149
- let t6;
150
- let t7;
151
- let t8;
152
- if ($[0] !== message.attempts || $[1] !== message.body || $[2] !== message.deadLettered || $[3] !== message.exportName || $[4] !== message.id || $[5] !== message.messageId || $[6] !== message.outcome || $[7] !== message.queue || $[8] !== t) {
153
- const body = formatBody(message.body);
154
- T1 = TableRow;
155
- t4 = `queues-message-${message.id}`;
156
- const t92 = message.exportName ?? message.queue;
157
- if ($[19] !== t92) {
158
- t5 = /* @__PURE__ */ jsxDEV(TableCell, {
159
- className: "font-mono text-xs",
160
- children: t92
161
- }, void 0, false);
162
- $[19] = t92;
163
- $[20] = t5;
164
- } else {
165
- t5 = $[20];
166
- }
167
- if ($[21] !== message.messageId) {
168
- t6 = /* @__PURE__ */ jsxDEV(TableCell, {
169
- className: "max-w-[16ch] truncate font-mono text-xs text-muted-foreground",
170
- title: message.messageId,
171
- children: message.messageId
172
- }, void 0, false);
173
- $[21] = message.messageId;
174
- $[22] = t6;
175
- } else {
176
- t6 = $[22];
177
- }
178
- if ($[23] !== message.attempts) {
179
- t7 = /* @__PURE__ */ jsxDEV(TableCell, {
180
- className: "font-mono text-xs tabular-nums",
181
- children: message.attempts
182
- }, void 0, false);
183
- $[23] = message.attempts;
184
- $[24] = t7;
185
- } else {
186
- t7 = $[24];
187
- }
188
- const t102 = `queues-outcome-${message.id}`;
189
- let t112;
190
- if ($[25] !== message.outcome) {
191
- t112 = outcomeVariant(message.outcome);
192
- $[25] = message.outcome;
193
- $[26] = t112;
194
- } else {
195
- t112 = $[26];
196
- }
197
- let t122;
198
- if ($[27] !== message.outcome || $[28] !== t102 || $[29] !== t112) {
199
- t122 = /* @__PURE__ */ jsxDEV(Badge, {
200
- "data-testid": t102,
201
- variant: t112,
202
- children: message.outcome
203
- }, void 0, false);
204
- $[27] = message.outcome;
205
- $[28] = t102;
206
- $[29] = t112;
207
- $[30] = t122;
208
- } else {
209
- t122 = $[30];
210
- }
211
- let t132;
212
- if ($[31] !== message.deadLettered || $[32] !== message.id || $[33] !== t) {
213
- t132 = message.deadLettered && /* @__PURE__ */ jsxDEV(Badge, {
214
- "data-testid": `queues-dlq-${message.id}`,
215
- variant: "destructive",
216
- children: t("DLQ")
217
- }, void 0, false);
218
- $[31] = message.deadLettered;
219
- $[32] = message.id;
220
- $[33] = t;
221
- $[34] = t132;
222
- } else {
223
- t132 = $[34];
224
- }
225
- if ($[35] !== t122 || $[36] !== t132) {
226
- t8 = /* @__PURE__ */ jsxDEV(TableCell, {
227
- children: /* @__PURE__ */ jsxDEV("span", {
228
- className: "inline-flex items-center gap-1",
229
- children: [t122, t132]
230
- }, void 0, true)
231
- }, void 0, false);
232
- $[35] = t122;
233
- $[36] = t132;
234
- $[37] = t8;
235
- } else {
236
- t8 = $[37];
237
- }
238
- T0 = TableCell;
239
- t1 = "max-w-[32ch] truncate font-mono text-xs text-muted-foreground";
240
- t2 = body;
241
- t3 = truncate(body);
242
- $[0] = message.attempts;
243
- $[1] = message.body;
244
- $[2] = message.deadLettered;
245
- $[3] = message.exportName;
246
- $[4] = message.id;
247
- $[5] = message.messageId;
248
- $[6] = message.outcome;
249
- $[7] = message.queue;
250
- $[8] = t;
251
- $[9] = T0;
252
- $[10] = T1;
253
- $[11] = t1;
254
- $[12] = t2;
255
- $[13] = t3;
256
- $[14] = t4;
257
- $[15] = t5;
258
- $[16] = t6;
259
- $[17] = t7;
260
- $[18] = t8;
261
- } else {
262
- T0 = $[9];
263
- T1 = $[10];
264
- t1 = $[11];
265
- t2 = $[12];
266
- t3 = $[13];
267
- t4 = $[14];
268
- t5 = $[15];
269
- t6 = $[16];
270
- t7 = $[17];
271
- t8 = $[18];
272
- }
273
- let t9;
274
- if ($[38] !== T0 || $[39] !== t1 || $[40] !== t2 || $[41] !== t3) {
275
- t9 = /* @__PURE__ */ jsxDEV(T0, {
276
- className: t1,
277
- title: t2,
278
- children: t3
279
- }, void 0, false);
280
- $[38] = T0;
281
- $[39] = t1;
282
- $[40] = t2;
283
- $[41] = t3;
284
- $[42] = t9;
285
- } else {
286
- t9 = $[42];
287
- }
288
- let t10;
289
- if ($[43] !== message.capturedAt) {
290
- t10 = formatTimestamp(message.capturedAt, "—");
291
- $[43] = message.capturedAt;
292
- $[44] = t10;
293
- } else {
294
- t10 = $[44];
295
- }
296
- let t11;
297
- if ($[45] !== t10) {
298
- t11 = /* @__PURE__ */ jsxDEV(TableCell, {
299
- className: "text-xs text-muted-foreground tabular-nums",
300
- children: t10
301
- }, void 0, false);
302
- $[45] = t10;
303
- $[46] = t11;
304
- } else {
305
- t11 = $[46];
306
- }
307
- const t12 = `queues-replay-${message.id}`;
308
- const t13 = replayingId !== null;
309
- let t14;
310
- if ($[47] !== message.id || $[48] !== replayingId || $[49] !== t) {
311
- t14 = replayingId === message.id ? t("Replaying…") : t("Replay");
312
- $[47] = message.id;
313
- $[48] = replayingId;
314
- $[49] = t;
315
- $[50] = t14;
316
- } else {
317
- t14 = $[50];
318
- }
319
- let t15;
320
- if ($[51] !== message.id || $[52] !== onReplay || $[53] !== t12 || $[54] !== t13 || $[55] !== t14) {
321
- t15 = /* @__PURE__ */ jsxDEV(TableCell, {
322
- children: /* @__PURE__ */ jsxDEV(Button, {
323
- "data-id": message.id,
324
- "data-testid": t12,
325
- disabled: t13,
326
- onClick: onReplay,
327
- size: "xs",
328
- type: "button",
329
- variant: "outline",
330
- children: t14
331
- }, void 0, false)
332
- }, void 0, false);
333
- $[51] = message.id;
334
- $[52] = onReplay;
335
- $[53] = t12;
336
- $[54] = t13;
337
- $[55] = t14;
338
- $[56] = t15;
339
- } else {
340
- t15 = $[56];
341
- }
342
- let t16;
343
- if ($[57] !== T1 || $[58] !== t11 || $[59] !== t15 || $[60] !== t4 || $[61] !== t5 || $[62] !== t6 || $[63] !== t7 || $[64] !== t8 || $[65] !== t9) {
344
- t16 = /* @__PURE__ */ jsxDEV(T1, {
345
- "data-testid": t4,
346
- children: [t5, t6, t7, t8, t9, t11, t15]
347
- }, void 0, true);
348
- $[57] = T1;
349
- $[58] = t11;
350
- $[59] = t15;
351
- $[60] = t4;
352
- $[61] = t5;
353
- $[62] = t6;
354
- $[63] = t7;
355
- $[64] = t8;
356
- $[65] = t9;
357
- $[66] = t16;
358
- } else {
359
- t16 = $[66];
360
- }
361
- return t16;
362
- };
363
- const QueuesMessagesTab = (t0) => {
364
- const $ = c(26);
365
- const {
366
- hasError,
367
- messages,
368
- onClear,
369
- onReplay,
370
- replayingId
371
- } = t0;
372
- const t = useT();
373
- let t1;
374
- if ($[0] !== t) {
375
- t1 = t("Cloudflare Queues have no peek API, so this is what push consumers actually processed — not pending depth.");
376
- $[0] = t;
377
- $[1] = t1;
378
- } else {
379
- t1 = $[1];
380
- }
381
- let t2;
382
- if ($[2] !== t1) {
383
- t2 = /* @__PURE__ */ jsxDEV("p", {
384
- className: "text-sm text-muted-foreground",
385
- children: t1
386
- }, void 0, false);
387
- $[2] = t1;
388
- $[3] = t2;
389
- } else {
390
- t2 = $[3];
391
- }
392
- const t3 = messages.length === 0;
393
- let t4;
394
- if ($[4] !== t) {
395
- t4 = t("Clear log");
396
- $[4] = t;
397
- $[5] = t4;
398
- } else {
399
- t4 = $[5];
400
- }
401
- let t5;
402
- if ($[6] !== onClear || $[7] !== t3 || $[8] !== t4) {
403
- t5 = /* @__PURE__ */ jsxDEV(Button, {
404
- className: "ml-auto",
405
- "data-testid": "queues-clear",
406
- disabled: t3,
407
- onClick: onClear,
408
- size: "sm",
409
- type: "button",
410
- variant: "outline",
411
- children: t4
412
- }, void 0, false);
413
- $[6] = onClear;
414
- $[7] = t3;
415
- $[8] = t4;
416
- $[9] = t5;
417
- } else {
418
- t5 = $[9];
419
- }
420
- let t6;
421
- if ($[10] !== messages.length || $[11] !== t) {
422
- t6 = messages.length > 0 && /* @__PURE__ */ jsxDEV(Badge, {
423
- "data-testid": "queues-count",
424
- variant: "secondary",
425
- children: t("{count} messages", {
426
- count: messages.length
427
- })
428
- }, void 0, false);
429
- $[10] = messages.length;
430
- $[11] = t;
431
- $[12] = t6;
432
- } else {
433
- t6 = $[12];
434
- }
435
- let t7;
436
- if ($[13] !== t2 || $[14] !== t5 || $[15] !== t6) {
437
- t7 = /* @__PURE__ */ jsxDEV("div", {
438
- className: "flex flex-wrap items-center gap-2",
439
- children: [t2, t5, t6]
440
- }, void 0, true);
441
- $[13] = t2;
442
- $[14] = t5;
443
- $[15] = t6;
444
- $[16] = t7;
445
- } else {
446
- t7 = $[16];
447
- }
448
- let t8;
449
- if ($[17] !== hasError || $[18] !== messages || $[19] !== onReplay || $[20] !== replayingId || $[21] !== t) {
450
- t8 = !hasError && messages.length === 0 ? /* @__PURE__ */ jsxDEV(EmptyState, {
451
- description: t("Consumed messages appear here once a push consumer processes a batch in dev. Send one from the Send tab to see it captured."),
452
- testId: "queues-messages-empty",
453
- title: t("No consumed messages yet.")
454
- }, void 0, false) : /* @__PURE__ */ jsxDEV(Card, {
455
- className: "overflow-hidden py-0",
456
- children: /* @__PURE__ */ jsxDEV(CardContent, {
457
- className: "px-0",
458
- children: /* @__PURE__ */ jsxDEV(ScrollArea, {
459
- className: "max-h-[32rem]",
460
- "data-testid": "queues-messages-scroll",
461
- children: /* @__PURE__ */ jsxDEV(Table, {
462
- "data-testid": "queues-messages-table",
463
- children: [/* @__PURE__ */ jsxDEV(TableHeader, {
464
- children: /* @__PURE__ */ jsxDEV(TableRow, {
465
- children: [/* @__PURE__ */ jsxDEV(TableHead, {
466
- children: t("Export")
467
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
468
- children: t("Message")
469
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
470
- children: t("Attempts")
471
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
472
- children: t("Outcome")
473
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
474
- children: t("Body")
475
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
476
- children: t("Captured")
477
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {}, void 0, false)]
478
- }, void 0, true)
479
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
480
- children: messages.map((message) => /* @__PURE__ */ jsxDEV(QueueLogRow, {
481
- message,
482
- onReplay,
483
- replayingId
484
- }, message.id, false))
485
- }, void 0, false)]
486
- }, void 0, true)
487
- }, void 0, false)
488
- }, void 0, false)
489
- }, void 0, false);
490
- $[17] = hasError;
491
- $[18] = messages;
492
- $[19] = onReplay;
493
- $[20] = replayingId;
494
- $[21] = t;
495
- $[22] = t8;
496
- } else {
497
- t8 = $[22];
498
- }
499
- let t9;
500
- if ($[23] !== t7 || $[24] !== t8) {
501
- t9 = /* @__PURE__ */ jsxDEV("div", {
502
- className: "flex flex-col gap-4",
503
- "data-testid": "queues-messages",
504
- children: [t7, t8]
505
- }, void 0, true);
506
- $[23] = t7;
507
- $[24] = t8;
508
- $[25] = t9;
509
- } else {
510
- t9 = $[25];
511
- }
512
- return t9;
513
- };
514
- const QueuesSendTab = (t0) => {
515
- const $ = c(20);
516
- const {
517
- batchMode,
518
- bodyText,
519
- delayText,
520
- onBatchModeChange,
521
- onBodyChange,
522
- onDelayChange,
523
- onSelectExport,
524
- onSend,
525
- queues,
526
- selectedExportName,
527
- sending
528
- } = t0;
529
- const t = useT();
530
- let t1;
531
- if ($[0] !== t) {
532
- t1 = t("Enqueue a JSON message to a declared producer to exercise its consumer. Nothing is captured until the consumer processes it.");
533
- $[0] = t;
534
- $[1] = t1;
535
- } else {
536
- t1 = $[1];
537
- }
538
- let t2;
539
- if ($[2] !== t1) {
540
- t2 = /* @__PURE__ */ jsxDEV("p", {
541
- className: "text-sm text-muted-foreground",
542
- children: t1
543
- }, void 0, false);
544
- $[2] = t1;
545
- $[3] = t2;
546
- } else {
547
- t2 = $[3];
548
- }
549
- let t3;
550
- if ($[4] !== batchMode || $[5] !== bodyText || $[6] !== delayText || $[7] !== onBatchModeChange || $[8] !== onBodyChange || $[9] !== onDelayChange || $[10] !== onSelectExport || $[11] !== onSend || $[12] !== queues || $[13] !== selectedExportName || $[14] !== sending || $[15] !== t) {
551
- t3 = queues.length === 0 ? /* @__PURE__ */ jsxDEV(EmptyState, {
552
- description: t("Declare a queue with defineQueue in lunora/queues.ts to enqueue a test message."),
553
- testId: "queues-send-empty",
554
- title: t("No queues to send to")
555
- }, void 0, false) : /* @__PURE__ */ jsxDEV(Fragment, {
556
- children: [/* @__PURE__ */ jsxDEV("div", {
557
- className: "flex flex-wrap items-center gap-2",
558
- children: [/* @__PURE__ */ jsxDEV("select", {
559
- "aria-label": t("Queue"),
560
- className: "h-8 rounded-md border border-input bg-transparent px-2.5 py-1 text-xs outline-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50",
561
- "data-testid": "queues-send-select",
562
- onChange: onSelectExport,
563
- value: selectedExportName,
564
- children: queues.map(_temp2)
565
- }, void 0, false), /* @__PURE__ */ jsxDEV(Input, {
566
- "aria-label": t("Delay (seconds)"),
567
- className: "max-w-36",
568
- "data-testid": "queues-send-delay",
569
- min: 0,
570
- onChange: onDelayChange,
571
- placeholder: t("Delay (s)"),
572
- type: "number",
573
- value: delayText
574
- }, void 0, false), /* @__PURE__ */ jsxDEV("label", {
575
- className: "flex items-center gap-1.5 text-xs text-muted-foreground",
576
- htmlFor: "queues-send-batch",
577
- children: [/* @__PURE__ */ jsxDEV("input", {
578
- checked: batchMode,
579
- "data-testid": "queues-send-batch",
580
- id: "queues-send-batch",
581
- onChange: onBatchModeChange,
582
- type: "checkbox"
583
- }, void 0, false), t("Send as batch (JSON array)")]
584
- }, void 0, true), /* @__PURE__ */ jsxDEV(Button, {
585
- className: "ml-auto",
586
- "data-testid": "queues-send-button",
587
- disabled: sending || selectedExportName === "",
588
- onClick: onSend,
589
- type: "button",
590
- children: sending ? t("Sending…") : t("Send message")
591
- }, void 0, false)]
592
- }, void 0, true), /* @__PURE__ */ jsxDEV(Textarea, {
593
- "aria-label": t("Message body (JSON)"),
594
- className: "font-mono",
595
- "data-testid": "queues-send-body",
596
- onChange: onBodyChange,
597
- placeholder: batchMode ? '[ { "hello": "world" } ]' : '{ "hello": "world" }',
598
- value: bodyText
599
- }, void 0, false)]
600
- }, void 0, true);
601
- $[4] = batchMode;
602
- $[5] = bodyText;
603
- $[6] = delayText;
604
- $[7] = onBatchModeChange;
605
- $[8] = onBodyChange;
606
- $[9] = onDelayChange;
607
- $[10] = onSelectExport;
608
- $[11] = onSend;
609
- $[12] = queues;
610
- $[13] = selectedExportName;
611
- $[14] = sending;
612
- $[15] = t;
613
- $[16] = t3;
614
- } else {
615
- t3 = $[16];
616
- }
617
- let t4;
618
- if ($[17] !== t2 || $[18] !== t3) {
619
- t4 = /* @__PURE__ */ jsxDEV("div", {
620
- className: "flex flex-col gap-3",
621
- "data-testid": "queues-send",
622
- children: [t2, t3]
623
- }, void 0, true);
624
- $[17] = t2;
625
- $[18] = t3;
626
- $[19] = t4;
627
- } else {
628
- t4 = $[19];
629
- }
630
- return t4;
631
- };
632
- const QueuesPanel = (t0) => {
633
- const $ = c(74);
634
- const {
635
- limit
636
- } = t0;
637
- const messageLimit = limit ?? DEFAULT_MESSAGE_LIMIT;
638
- const client = useLunora();
639
- const t = useT();
640
- const [tab, setTab] = useState("declared");
641
- const [actionError, setActionError] = useState(null);
642
- let t1;
643
- if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
644
- t1 = {};
645
- $[0] = t1;
646
- } else {
647
- t1 = $[0];
648
- }
649
- const {
650
- data: queuesData,
651
- error: queuesError,
652
- errorSource: queuesErrorSource
653
- } = useAdminQuery(ADMIN_FUNCTIONS.listQueues, t1);
654
- let t2;
655
- if ($[1] !== messageLimit) {
656
- t2 = {
657
- limit: messageLimit
658
- };
659
- $[1] = messageLimit;
660
- $[2] = t2;
661
- } else {
662
- t2 = $[2];
663
- }
664
- const {
665
- data: messagesData,
666
- error: messagesError,
667
- errorSource: messagesErrorSource,
668
- refetch: refetchMessages
669
- } = useAdminQuery(ADMIN_FUNCTIONS.getQueueMessages, t2);
670
- const queues = Array.isArray(queuesData?.queues) ? [...queuesData.queues].toSorted(_temp3) : [];
671
- let t3;
672
- if ($[3] !== messagesData?.entries) {
673
- t3 = messagesData?.entries ?? [];
674
- $[3] = messagesData?.entries;
675
- $[4] = t3;
676
- } else {
677
- t3 = $[4];
678
- }
679
- const messages = t3;
680
- const [selectedExport, setSelectedExport] = useState("");
681
- const [bodyText, setBodyText] = useState("");
682
- const [delayText, setDelayText] = useState("");
683
- const [batchMode, setBatchMode] = useState(false);
684
- const [sending, setSending] = useState(false);
685
- const [replayingId, setReplayingId] = useState(null);
686
- const selectedExportName = queues.some((queue) => queue.exportName === selectedExport) ? selectedExport : queues[0]?.exportName ?? "";
687
- const readError = tab === "messages" ? messagesError : queuesError;
688
- const readErrorSource = tab === "messages" ? messagesErrorSource : queuesErrorSource;
689
- const error = readError ?? actionError;
690
- const errorSource = readError === null ? actionError : readErrorSource;
691
- let t4;
692
- if ($[5] !== refetchMessages) {
693
- t4 = () => {
694
- refetchMessages();
695
- };
696
- $[5] = refetchMessages;
697
- $[6] = t4;
698
- } else {
699
- t4 = $[6];
700
- }
701
- useAutoRefresh(t4, tab === "messages");
702
- let t5;
703
- if ($[7] !== batchMode || $[8] !== bodyText || $[9] !== client || $[10] !== delayText || $[11] !== refetchMessages || $[12] !== selectedExportName || $[13] !== setSending || $[14] !== t) {
704
- t5 = async () => {
705
- setActionError(null);
706
- const exportName = selectedExportName;
707
- if (exportName === "") {
708
- return;
709
- }
710
- let body = null;
711
- const trimmedBody = bodyText.trim();
712
- if (trimmedBody !== "") {
713
- try {
714
- body = JSON.parse(trimmedBody);
715
- } catch {
716
- setActionError(t("Body must be valid JSON."));
717
- return;
718
- }
719
- }
720
- let delaySeconds;
721
- const trimmedDelay = delayText.trim();
722
- if (trimmedDelay !== "") {
723
- const parsed = Number(trimmedDelay);
724
- if (!Number.isFinite(parsed) || parsed < 0) {
725
- setActionError(t("Delay must be a non-negative number of seconds."));
726
- return;
727
- }
728
- delaySeconds = parsed;
729
- }
730
- if (batchMode && !Array.isArray(body)) {
731
- setActionError(t("Batch mode needs a JSON array body — each element is enqueued as one message."));
732
- return;
733
- }
734
- setSending(true);
735
- const args = batchMode ? {
736
- batch: body,
737
- delaySeconds,
738
- exportName
739
- } : {
740
- body,
741
- delaySeconds,
742
- exportName
743
- };
744
- try {
745
- await client.query(SEND_QUEUE_MESSAGE, args, callOptions(""));
746
- refetchMessages();
747
- } catch (t62) {
748
- const error_ = t62;
749
- setActionError(errorMessage(error_));
750
- }
751
- setSending(false);
752
- };
753
- $[7] = batchMode;
754
- $[8] = bodyText;
755
- $[9] = client;
756
- $[10] = delayText;
757
- $[11] = refetchMessages;
758
- $[12] = selectedExportName;
759
- $[13] = setSending;
760
- $[14] = t;
761
- $[15] = t5;
762
- } else {
763
- t5 = $[15];
764
- }
765
- const send = t5;
766
- let t6;
767
- if ($[16] !== client || $[17] !== refetchMessages || $[18] !== setReplayingId) {
768
- t6 = async (id) => {
769
- setActionError(null);
770
- setReplayingId(id);
771
- try {
772
- await client.query(REPLAY_QUEUE_MESSAGE, {
773
- id
774
- }, callOptions(""));
775
- refetchMessages();
776
- } catch (t72) {
777
- const error__0 = t72;
778
- setActionError(errorMessage(error__0));
779
- }
780
- setReplayingId(null);
781
- };
782
- $[16] = client;
783
- $[17] = refetchMessages;
784
- $[18] = setReplayingId;
785
- $[19] = t6;
786
- } else {
787
- t6 = $[19];
788
- }
789
- const replay = t6;
790
- let t7;
791
- if ($[20] !== client || $[21] !== refetchMessages) {
792
- t7 = async () => {
793
- setActionError(null);
794
- try {
795
- await client.query(CLEAR_QUEUE_MESSAGES, {}, callOptions(""));
796
- refetchMessages();
797
- } catch (t82) {
798
- const error__1 = t82;
799
- setActionError(errorMessage(error__1));
800
- }
801
- };
802
- $[20] = client;
803
- $[21] = refetchMessages;
804
- $[22] = t7;
805
- } else {
806
- t7 = $[22];
807
- }
808
- const clearLog = t7;
809
- let t8;
810
- if ($[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
811
- t8 = (event) => {
812
- const next = event.currentTarget.dataset.tab;
813
- if (next === "declared" || next === "messages" || next === "send") {
814
- setTab(next);
815
- }
816
- };
817
- $[23] = t8;
818
- } else {
819
- t8 = $[23];
820
- }
821
- const onSelectTab = t8;
822
- let t9;
823
- if ($[24] !== setSelectedExport) {
824
- t9 = (event_0) => {
825
- setSelectedExport(event_0.currentTarget.value);
826
- };
827
- $[24] = setSelectedExport;
828
- $[25] = t9;
829
- } else {
830
- t9 = $[25];
831
- }
832
- const onSelectExport = t9;
833
- let t10;
834
- if ($[26] !== setBodyText) {
835
- t10 = (event_1) => {
836
- setBodyText(event_1.currentTarget.value);
837
- };
838
- $[26] = setBodyText;
839
- $[27] = t10;
840
- } else {
841
- t10 = $[27];
842
- }
843
- const onBodyChange = t10;
844
- let t11;
845
- if ($[28] !== setDelayText) {
846
- t11 = (event_2) => {
847
- setDelayText(event_2.currentTarget.value);
848
- };
849
- $[28] = setDelayText;
850
- $[29] = t11;
851
- } else {
852
- t11 = $[29];
853
- }
854
- const onDelayChange = t11;
855
- let t12;
856
- if ($[30] !== setBatchMode) {
857
- t12 = (event_3) => {
858
- setBatchMode(event_3.currentTarget.checked);
859
- };
860
- $[30] = setBatchMode;
861
- $[31] = t12;
862
- } else {
863
- t12 = $[31];
864
- }
865
- const onBatchModeChange = t12;
866
- let t13;
867
- if ($[32] !== send) {
868
- t13 = () => {
869
- fireAndForget(send());
870
- };
871
- $[32] = send;
872
- $[33] = t13;
873
- } else {
874
- t13 = $[33];
875
- }
876
- const onSend = t13;
877
- let t14;
878
- if ($[34] !== replay) {
879
- t14 = (event_4) => {
880
- const {
881
- id: id_0
882
- } = event_4.currentTarget.dataset;
883
- if (id_0 !== void 0) {
884
- fireAndForget(replay(id_0));
885
- }
886
- };
887
- $[34] = replay;
888
- $[35] = t14;
889
- } else {
890
- t14 = $[35];
891
- }
892
- const onReplay = t14;
893
- let t15;
894
- if ($[36] !== clearLog) {
895
- t15 = () => {
896
- fireAndForget(clearLog());
897
- };
898
- $[36] = clearLog;
899
- $[37] = t15;
900
- } else {
901
- t15 = $[37];
902
- }
903
- const onClear = t15;
904
- let t16;
905
- if ($[38] !== t || $[39] !== tab) {
906
- t16 = /* @__PURE__ */ jsxDEV("div", {
907
- className: "flex items-center gap-1",
908
- "data-testid": "queues-tabs",
909
- role: "tablist",
910
- children: ["declared", "messages", "send"].map((value) => /* @__PURE__ */ jsxDEV(Button, {
911
- "aria-selected": tab === value,
912
- "data-tab": value,
913
- "data-testid": `queues-tab-${value}`,
914
- onClick: onSelectTab,
915
- role: "tab",
916
- size: "sm",
917
- type: "button",
918
- variant: tab === value ? "secondary" : "ghost",
919
- children: tabLabel(value, t)
920
- }, value, false))
921
- }, void 0, false);
922
- $[38] = t;
923
- $[39] = tab;
924
- $[40] = t16;
925
- } else {
926
- t16 = $[40];
927
- }
928
- let t17;
929
- if ($[41] !== error || $[42] !== errorSource) {
930
- t17 = error !== null && /* @__PURE__ */ jsxDEV(ErrorAlert, {
931
- error: errorSource,
932
- testId: "queues-error"
933
- }, void 0, false);
934
- $[41] = error;
935
- $[42] = errorSource;
936
- $[43] = t17;
937
- } else {
938
- t17 = $[43];
939
- }
940
- let t18;
941
- if ($[44] !== queues || $[45] !== queuesData || $[46] !== tab) {
942
- t18 = tab === "declared" && /* @__PURE__ */ jsxDEV(QueuesDeclaredTab, {
943
- loaded: queuesData !== void 0,
944
- queues
945
- }, void 0, false);
946
- $[44] = queues;
947
- $[45] = queuesData;
948
- $[46] = tab;
949
- $[47] = t18;
950
- } else {
951
- t18 = $[47];
952
- }
953
- let t19;
954
- if ($[48] !== messages || $[49] !== messagesError || $[50] !== onClear || $[51] !== onReplay || $[52] !== replayingId || $[53] !== tab) {
955
- t19 = tab === "messages" && /* @__PURE__ */ jsxDEV(QueuesMessagesTab, {
956
- hasError: messagesError !== null,
957
- messages,
958
- onClear,
959
- onReplay,
960
- replayingId
961
- }, void 0, false);
962
- $[48] = messages;
963
- $[49] = messagesError;
964
- $[50] = onClear;
965
- $[51] = onReplay;
966
- $[52] = replayingId;
967
- $[53] = tab;
968
- $[54] = t19;
969
- } else {
970
- t19 = $[54];
971
- }
972
- let t20;
973
- if ($[55] !== batchMode || $[56] !== bodyText || $[57] !== delayText || $[58] !== onBatchModeChange || $[59] !== onBodyChange || $[60] !== onDelayChange || $[61] !== onSelectExport || $[62] !== onSend || $[63] !== queues || $[64] !== selectedExportName || $[65] !== sending || $[66] !== tab) {
974
- t20 = tab === "send" && /* @__PURE__ */ jsxDEV(QueuesSendTab, {
975
- batchMode,
976
- bodyText,
977
- delayText,
978
- onBatchModeChange,
979
- onBodyChange,
980
- onDelayChange,
981
- onSelectExport,
982
- onSend,
983
- queues,
984
- selectedExportName,
985
- sending
986
- }, void 0, false);
987
- $[55] = batchMode;
988
- $[56] = bodyText;
989
- $[57] = delayText;
990
- $[58] = onBatchModeChange;
991
- $[59] = onBodyChange;
992
- $[60] = onDelayChange;
993
- $[61] = onSelectExport;
994
- $[62] = onSend;
995
- $[63] = queues;
996
- $[64] = selectedExportName;
997
- $[65] = sending;
998
- $[66] = tab;
999
- $[67] = t20;
1000
- } else {
1001
- t20 = $[67];
1002
- }
1003
- let t21;
1004
- if ($[68] !== t16 || $[69] !== t17 || $[70] !== t18 || $[71] !== t19 || $[72] !== t20) {
1005
- t21 = /* @__PURE__ */ jsxDEV("div", {
1006
- className: "flex flex-col gap-6",
1007
- "data-testid": "lunora-queues-panel",
1008
- children: [t16, t17, t18, t19, t20]
1009
- }, void 0, true);
1010
- $[68] = t16;
1011
- $[69] = t17;
1012
- $[70] = t18;
1013
- $[71] = t19;
1014
- $[72] = t20;
1015
- $[73] = t21;
1016
- } else {
1017
- t21 = $[73];
1018
- }
1019
- return t21;
1020
- };
1021
- function _temp(queue) {
1022
- return /* @__PURE__ */ jsxDEV(TableRow, {
1023
- "data-testid": `queues-row-${queue.exportName}`,
1024
- children: [/* @__PURE__ */ jsxDEV(TableCell, {
1025
- className: "font-mono text-xs",
1026
- children: queue.exportName
1027
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
1028
- className: "font-mono text-xs text-muted-foreground",
1029
- children: queue.name
1030
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
1031
- className: "font-mono text-xs text-muted-foreground",
1032
- children: queue.mode
1033
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
1034
- className: "font-mono text-xs text-muted-foreground",
1035
- children: queue.binding
1036
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
1037
- className: "font-mono text-xs text-muted-foreground",
1038
- children: queue.deadLetterQueue ?? "—"
1039
- }, void 0, false)]
1040
- }, queue.exportName, true);
1041
- }
1042
- function _temp2(queue) {
1043
- return /* @__PURE__ */ jsxDEV("option", {
1044
- value: queue.exportName,
1045
- children: queue.exportName
1046
- }, queue.exportName, false);
1047
- }
1048
- function _temp3(a, b) {
1049
- return a.exportName.localeCompare(b.exportName);
1050
- }
1051
-
1052
- export { QueuesPanel as default };