@lunora/studio 1.0.0-alpha.7 → 1.0.0-alpha.71

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 (295) hide show
  1. package/LICENSE.md +6 -0
  2. package/dist/index.d.ts +762 -779
  3. package/dist/index.js +1 -41
  4. package/dist/mount.d.ts +10 -10
  5. package/dist/mount.js +1 -26
  6. package/dist/packem_chunks/ApiTab.js +1 -0
  7. package/dist/packem_chunks/AuditPanel.js +1 -0
  8. package/dist/packem_chunks/DeploymentHealthPanel.js +1 -0
  9. package/dist/packem_chunks/ExportImportPanel.js +3 -0
  10. package/dist/packem_chunks/FileBrowser.js +4 -0
  11. package/dist/packem_chunks/FunctionRunner.js +1 -0
  12. package/dist/packem_chunks/FunctionStatsPanel.js +1 -0
  13. package/dist/packem_chunks/HealthPanel.js +1 -0
  14. package/dist/packem_chunks/InsightsPanel.js +1 -0
  15. package/dist/packem_chunks/LogsPanel.js +1 -0
  16. package/dist/packem_chunks/MailPanel.js +2 -0
  17. package/dist/packem_chunks/MetricsPanel.js +1 -0
  18. package/dist/packem_chunks/MigrationsPanel.js +1 -0
  19. package/dist/packem_chunks/NotificationsPanel.js +1 -0
  20. package/dist/packem_chunks/PitrPanel.js +1 -0
  21. package/dist/packem_chunks/SchemaViewer.js +2 -0
  22. package/dist/packem_chunks/SecurityAdvisorPanel.js +1 -0
  23. package/dist/packem_chunks/SettingsPanel.js +1 -0
  24. package/dist/packem_chunks/SqlEditorPanel.js +4 -0
  25. package/dist/packem_chunks/TableEditor.js +1 -0
  26. package/dist/packem_chunks/agents-panel.js +1 -0
  27. package/dist/packem_chunks/analytics-panel.js +1 -0
  28. package/dist/packem_chunks/auth-audit-panel.js +1 -0
  29. package/dist/packem_chunks/auth-config-panel.js +1 -0
  30. package/dist/packem_chunks/auth-sessions-panel.js +1 -0
  31. package/dist/packem_chunks/containers-panel.js +1 -0
  32. package/dist/packem_chunks/dashboards-panel.js +1 -0
  33. package/dist/packem_chunks/fanout-panel.js +1 -0
  34. package/dist/packem_chunks/flags-panel.js +1 -0
  35. package/dist/packem_chunks/issues-panel.js +1 -0
  36. package/dist/packem_chunks/kv-browser.js +1 -0
  37. package/dist/packem_chunks/log-drains-panel.js +4 -0
  38. package/dist/packem_chunks/organizations-panel.js +1 -0
  39. package/dist/packem_chunks/payments-panel.js +1 -0
  40. package/dist/packem_chunks/permissions-panel.js +1 -0
  41. package/dist/packem_chunks/queues-panel.js +1 -0
  42. package/dist/packem_chunks/rls-panel.js +1 -0
  43. package/dist/packem_chunks/schedule-panel.js +1 -0
  44. package/dist/packem_chunks/sparkline.js +1 -0
  45. package/dist/packem_chunks/storage-rules-panel.js +1 -0
  46. package/dist/packem_chunks/subscriptions-panel.js +1 -0
  47. package/dist/packem_chunks/sync-client-panel.js +1 -0
  48. package/dist/packem_chunks/traces-panel.js +1 -0
  49. package/dist/packem_chunks/users-panel.js +1 -0
  50. package/dist/packem_chunks/vector-browser.js +1 -0
  51. package/dist/packem_chunks/workflows-panel.js +1 -0
  52. package/dist/packem_shared/ADMIN_FUNCTIONS-BYNSbBVE.js +1 -0
  53. package/dist/packem_shared/ApiDocsPanel-eJYZlylw.js +2 -0
  54. package/dist/packem_shared/ApiReferencePanel-C42v1jr6.js +1 -0
  55. package/dist/packem_shared/CommandPalette-CVIaY3j8.js +1 -0
  56. package/dist/packem_shared/ConfirmButton-CTL3f3kr.js +1 -0
  57. package/dist/packem_shared/ConnectionBadge-DOk0CQWo.js +1 -0
  58. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-BCC8_4BQ.js +1 -0
  59. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-B-hcFVoi.js +1 -0
  60. package/dist/packem_shared/DEFAULT_LOCALE-BZ4NojpD.js +1 -0
  61. package/dist/packem_shared/DataBrowser-B8J5lHjP.js +1 -0
  62. package/dist/packem_shared/DataFilters-Csb30F0C.js +1 -0
  63. package/dist/packem_shared/ErrorBoundary-DvzYskH7.js +1 -0
  64. package/dist/packem_shared/GlobalDataBrowser-RLJ6NvOs.js +1 -0
  65. package/dist/packem_shared/HomePanel-DL1HupAN.js +1 -0
  66. package/dist/packem_shared/OpenRpcReferencePanel-sGsIgYWj.js +1 -0
  67. package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.js +1 -0
  68. package/dist/packem_shared/ScheduledJobs-DUbo6epc.js +1 -0
  69. package/dist/packem_shared/ShardInput-BVn2iCU0.js +1 -0
  70. package/dist/packem_shared/Studio-BWBclm_C.js +1 -0
  71. package/dist/packem_shared/StudioApp-BFm73yVr.js +1 -0
  72. package/dist/packem_shared/StudioI18nProvider-CZ5h4nrV.js +1 -0
  73. package/dist/packem_shared/advisor-view-DaCX9Jy5.js +1 -0
  74. package/dist/packem_shared/aggregateMetrics-BNfajLa2.js +1 -0
  75. package/dist/packem_shared/alert-CVcOFuDR.js +1 -0
  76. package/dist/packem_shared/app.d-bRPJhby-.d.ts +254 -0
  77. package/dist/packem_shared/badge-BbuuAio7.js +1 -0
  78. package/dist/packem_shared/bar-chart-AryFCeoa.js +9 -0
  79. package/dist/packem_shared/browser-storage-xjTyMKY0.js +1 -0
  80. package/dist/packem_shared/button-BkCrNcAs.js +1 -0
  81. package/dist/packem_shared/card-CIDGUN6K.js +1 -0
  82. package/dist/packem_shared/cf-links-gbDy51nR.js +1 -0
  83. package/dist/packem_shared/checkbox-StT4Gob6.js +1 -0
  84. package/dist/packem_shared/data-grid-BMBKzMEJ.js +1 -0
  85. package/dist/packem_shared/data-view-params-C8T3bW1z.js +1 -0
  86. package/dist/packem_shared/dropdown-menu-C3RQ_HlW.js +2 -0
  87. package/dist/packem_shared/empty-state-Cg7t_8qu.js +1 -0
  88. package/dist/packem_shared/error-alert-B59DnrDI.js +1 -0
  89. package/dist/packem_shared/grid-features-uZCUj955.js +6 -0
  90. package/dist/packem_shared/home-panel-B-8BCffw.js +3 -0
  91. package/dist/packem_shared/input-JHu63lTv.js +1 -0
  92. package/dist/packem_shared/internal-AtZ4bTal.js +2 -0
  93. package/dist/packem_shared/label-6uP1obNF.js +1 -0
  94. package/dist/packem_shared/live-status-CGW2JHf_.js +1 -0
  95. package/dist/packem_shared/log-fields-CoL3hsIQ.js +1 -0
  96. package/dist/packem_shared/modal-shell-CUwwWC2o.js +1 -0
  97. package/dist/packem_shared/reference-view-KvhektwF.js +12 -0
  98. package/dist/packem_shared/result-chart-CwKhhKM0.js +1 -0
  99. package/dist/packem_shared/scroll-area-DTEq6Jec.js +2 -0
  100. package/dist/packem_shared/select-Bul-DeII.js +2 -0
  101. package/dist/packem_shared/shard-history-DMEW5VBE.js +1 -0
  102. package/dist/packem_shared/skeleton-C1wQ9M5t.js +1 -0
  103. package/dist/packem_shared/sparkline-DtcZoU48.js +1 -0
  104. package/dist/packem_shared/storage-tier-DznqOf-q.js +1 -0
  105. package/dist/packem_shared/studio-BHA7hnI3.js +2 -0
  106. package/dist/packem_shared/table-DdJBrClo.js +2 -0
  107. package/dist/packem_shared/table-list-sidebar-CMCcNALK.js +1 -0
  108. package/dist/packem_shared/textarea-Bu2-jKAs.js +1 -0
  109. package/dist/packem_shared/trace-handoff-Dw7mwjxu.js +1 -0
  110. package/dist/packem_shared/use-admin-query-Di3fLE8H.js +1 -0
  111. package/dist/packem_shared/use-async-submit-H68GHPz8.js +1 -0
  112. package/dist/packem_shared/useDebounced-Ihdiid_k.js +1 -0
  113. package/dist/packem_shared/utils-bhneXptQ.js +1 -0
  114. package/dist/packem_shared/virtual-rect-1o1veP7R.js +1 -0
  115. package/dist/standalone/chunk-2F7G7IWQ.js +1 -0
  116. package/dist/standalone/chunk-2OUPA2WJ.js +1 -0
  117. package/dist/standalone/chunk-2PJNAWB3.js +1 -0
  118. package/dist/standalone/chunk-2Y36BVVM.js +4 -0
  119. package/dist/standalone/chunk-34UVAASH.js +1 -0
  120. package/dist/standalone/chunk-35II7U25.js +11 -0
  121. package/dist/standalone/chunk-3FUFEZ65.js +1 -0
  122. package/dist/standalone/chunk-3QRTYSSX.js +1 -0
  123. package/dist/standalone/chunk-3RTTXLMU.js +1 -0
  124. package/dist/standalone/chunk-3XIESWL4.js +1 -0
  125. package/dist/standalone/chunk-4CGALXS3.js +19 -0
  126. package/dist/standalone/chunk-4UOFSGUS.js +1 -0
  127. package/dist/standalone/chunk-4WLYA3XE.js +1 -0
  128. package/dist/standalone/chunk-54MMVNPT.js +1 -0
  129. package/dist/standalone/chunk-5L2MD6F6.js +1 -0
  130. package/dist/standalone/chunk-5OWIOACV.js +13 -0
  131. package/dist/standalone/chunk-5RF4QDDA.js +6 -0
  132. package/dist/standalone/chunk-5U2THBI7.js +1 -0
  133. package/dist/standalone/chunk-5Y3QLNWX.js +1 -0
  134. package/dist/standalone/chunk-65OTWFS3.js +1 -0
  135. package/dist/standalone/chunk-6DWCIIHE.js +1 -0
  136. package/dist/standalone/chunk-6ST5ECQA.js +1 -0
  137. package/dist/standalone/chunk-7J5N6DGQ.js +1 -0
  138. package/dist/standalone/chunk-7LQWFOEU.js +1 -0
  139. package/dist/standalone/chunk-7QIFDWQV.js +1 -0
  140. package/dist/standalone/chunk-7RXOPYR5.js +1 -0
  141. package/dist/standalone/chunk-7T7UOTYK.js +1 -0
  142. package/dist/standalone/chunk-7YEFOSPH.js +1 -0
  143. package/dist/standalone/chunk-AVAC26HJ.js +1 -0
  144. package/dist/standalone/chunk-B43FTQJ7.js +1 -0
  145. package/dist/standalone/chunk-BEH5N5ZA.js +1 -0
  146. package/dist/standalone/chunk-BGBLQ563.js +1 -0
  147. package/dist/standalone/chunk-BNUJ7QMG.js +3 -0
  148. package/dist/standalone/chunk-C43X4M5U.js +1 -0
  149. package/dist/standalone/chunk-CFPZYHPY.js +2 -0
  150. package/dist/standalone/chunk-D7XXWV4E.js +1 -0
  151. package/dist/standalone/chunk-DVOBKIUX.js +1 -0
  152. package/dist/standalone/chunk-EKRN4ZQM.js +1 -0
  153. package/dist/standalone/chunk-ESVP44Y3.js +1 -0
  154. package/dist/standalone/chunk-EVN46TVV.js +1 -0
  155. package/dist/standalone/chunk-EXFBIISG.js +2 -0
  156. package/dist/standalone/chunk-F5QWLENA.js +1 -0
  157. package/dist/standalone/chunk-F6GOKFMU.js +3 -0
  158. package/dist/standalone/chunk-FGTK44LR.js +1 -0
  159. package/dist/standalone/chunk-FXCBF4XT.js +1 -0
  160. package/dist/standalone/chunk-GMR677FL.js +1 -0
  161. package/dist/standalone/chunk-GRL5MG3Z.js +1 -0
  162. package/dist/standalone/chunk-GSPTEMYN.js +1 -0
  163. package/dist/standalone/chunk-GXZAXNZI.js +1 -0
  164. package/dist/standalone/chunk-H7NIIBHH.js +1 -0
  165. package/dist/standalone/chunk-HP2UCWND.js +1 -0
  166. package/dist/standalone/chunk-HPFLBYRI.js +1 -0
  167. package/dist/standalone/chunk-IC4L6G56.js +1 -0
  168. package/dist/standalone/chunk-IDNNI63H.js +1 -0
  169. package/dist/standalone/chunk-ILNELDFC.js +1 -0
  170. package/dist/standalone/chunk-IVFHIQOT.js +1 -0
  171. package/dist/standalone/chunk-JN2Y24PY.js +1 -0
  172. package/dist/standalone/chunk-KDOC2DP5.js +1 -0
  173. package/dist/standalone/chunk-KUVMORDQ.js +1 -0
  174. package/dist/standalone/chunk-KYF2E5CJ.js +1 -0
  175. package/dist/standalone/chunk-L7N7F3DA.js +1 -0
  176. package/dist/standalone/chunk-LE56LPNH.js +13 -0
  177. package/dist/standalone/chunk-LEDWUPXM.js +1 -0
  178. package/dist/standalone/chunk-LFKCLLPT.js +1 -0
  179. package/dist/standalone/chunk-LFXFP4IF.js +1 -0
  180. package/dist/standalone/chunk-LJDP7NRB.js +1 -0
  181. package/dist/standalone/chunk-LLXFYRGQ.js +1 -0
  182. package/dist/standalone/chunk-M536Y2KX.js +1 -0
  183. package/dist/standalone/chunk-MIQTKZAR.js +1 -0
  184. package/dist/standalone/chunk-OHKRN65U.js +1 -0
  185. package/dist/standalone/chunk-P24JBHEZ.js +4 -0
  186. package/dist/standalone/chunk-PF7V3G2Z.js +62 -0
  187. package/dist/standalone/chunk-PWWHP76O.js +1 -0
  188. package/dist/standalone/chunk-QBWRC5YX.js +1 -0
  189. package/dist/standalone/chunk-QGKAJTQQ.js +1 -0
  190. package/dist/standalone/chunk-QLJJ5YYZ.js +1 -0
  191. package/dist/standalone/chunk-QVEHPYA5.js +1 -0
  192. package/dist/standalone/chunk-QWGT25SE.js +1 -0
  193. package/dist/standalone/chunk-QWJ3NPE3.js +1 -0
  194. package/dist/standalone/chunk-RAA2RGG6.js +1 -0
  195. package/dist/standalone/chunk-RBU52M5T.js +1 -0
  196. package/dist/standalone/chunk-SA3MDZC3.js +1 -0
  197. package/dist/standalone/chunk-SD4BERSA.js +1 -0
  198. package/dist/standalone/chunk-SFDOII3B.js +1 -0
  199. package/dist/standalone/chunk-SKHEGARW.js +1 -0
  200. package/dist/standalone/chunk-SMIESS7P.js +1 -0
  201. package/dist/standalone/chunk-T2JIUFOD.js +4 -0
  202. package/dist/standalone/chunk-T6VMSOBB.js +1 -0
  203. package/dist/standalone/chunk-THIXMMZD.js +1 -0
  204. package/dist/standalone/chunk-TJ2WZ5OP.js +1 -0
  205. package/dist/standalone/chunk-TLHJRWNK.js +1 -0
  206. package/dist/standalone/chunk-UIS34ZPB.js +8 -0
  207. package/dist/standalone/chunk-UNUU7CJJ.js +1 -0
  208. package/dist/standalone/chunk-UZERI5YC.js +1 -0
  209. package/dist/standalone/chunk-V53KNYRN.js +1 -0
  210. package/dist/standalone/chunk-VPAXCQ2Y.js +4 -0
  211. package/dist/standalone/chunk-X2FQ6B5V.js +1 -0
  212. package/dist/standalone/chunk-XBDKZZ67.js +1 -0
  213. package/dist/standalone/chunk-XEDU5FO4.js +1 -0
  214. package/dist/standalone/chunk-XQBTNJUQ.js +1 -0
  215. package/dist/standalone/chunk-XQCVZAGU.js +1 -0
  216. package/dist/standalone/chunk-XQGANNLS.js +1 -0
  217. package/dist/standalone/chunk-XSD4Y6SQ.js +1 -0
  218. package/dist/standalone/chunk-XXQUMVWH.js +1 -0
  219. package/dist/standalone/chunk-YD5NF6UT.js +1 -0
  220. package/dist/standalone/chunk-YI3WYUXK.js +1 -0
  221. package/dist/standalone/chunk-ZJGP6EKR.js +1 -0
  222. package/dist/standalone/chunk-ZNNAGR6N.js +1 -0
  223. package/dist/standalone/studio.js +9 -356
  224. package/dist/styles.css +2 -2
  225. package/package.json +17 -15
  226. package/dist/packem_shared/ADMIN_FUNCTIONS-DmBqMZ-z.js +0 -45
  227. package/dist/packem_shared/ApiDocsPanel-C5-yJ1p7.js +0 -842
  228. package/dist/packem_shared/ApiReferencePanel-1vubqG5s.js +0 -229
  229. package/dist/packem_shared/ApiTab-W3no0KOj.js +0 -251
  230. package/dist/packem_shared/AuditPanel-Bq4o_IqT.js +0 -212
  231. package/dist/packem_shared/CommandPalette-BtgkBzZI.js +0 -373
  232. package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
  233. package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
  234. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
  235. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
  236. package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
  237. package/dist/packem_shared/DataBrowser-CtBe1So9.js +0 -4542
  238. package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
  239. package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
  240. package/dist/packem_shared/ExportImportPanel-dxY56TDF.js +0 -193
  241. package/dist/packem_shared/FileBrowser-Dhy4zES8.js +0 -2932
  242. package/dist/packem_shared/FunctionRunner--fQJRPAD.js +0 -343
  243. package/dist/packem_shared/FunctionStatsPanel-BjRUA_G3.js +0 -432
  244. package/dist/packem_shared/GlobalDataBrowser-BTEmGrph.js +0 -318
  245. package/dist/packem_shared/HealthPanel-PxclMWmA.js +0 -640
  246. package/dist/packem_shared/HomePanel-Cw16stjq.js +0 -1273
  247. package/dist/packem_shared/InsightsPanel-CWS_C-xW.js +0 -423
  248. package/dist/packem_shared/LogsPanel-CTW8CFcM.js +0 -839
  249. package/dist/packem_shared/MailPanel-BwkvfIHF.js +0 -447
  250. package/dist/packem_shared/MetricsPanel-BLuOhZQ4.js +0 -1625
  251. package/dist/packem_shared/MigrationsPanel-DT3lnwHF.js +0 -246
  252. package/dist/packem_shared/OpenRpcReferencePanel-vbcYbv3V.js +0 -191
  253. package/dist/packem_shared/PitrPanel-CdErL7EJ.js +0 -252
  254. package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
  255. package/dist/packem_shared/ScheduledJobs-CabfKbyM.js +0 -159
  256. package/dist/packem_shared/SchemaViewer-LJDcmNIO.js +0 -2512
  257. package/dist/packem_shared/SecurityAdvisorPanel-C_ETsPih.js +0 -79
  258. package/dist/packem_shared/SettingsPanel-C0uLRf5P.js +0 -176
  259. package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
  260. package/dist/packem_shared/SqlEditorPanel-CguV7otm.js +0 -13
  261. package/dist/packem_shared/Studio-BmSGSIuY.js +0 -33
  262. package/dist/packem_shared/StudioApp-D4azxYBu.js +0 -657
  263. package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
  264. package/dist/packem_shared/TableEditor-ChfUOZec.js +0 -371
  265. package/dist/packem_shared/advisor-view-CGcfMiPq.js +0 -159
  266. package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
  267. package/dist/packem_shared/app.d-CCmwDEVs.d.ts +0 -300
  268. package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
  269. package/dist/packem_shared/bar-chart-CzJAgqkp.js +0 -3245
  270. package/dist/packem_shared/button-BhsN2uZH.js +0 -49
  271. package/dist/packem_shared/card-DURq3ElK.js +0 -175
  272. package/dist/packem_shared/cf-links-2cktDedA.js +0 -8
  273. package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
  274. package/dist/packem_shared/data-grid-B5CaV3wS.js +0 -183
  275. package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
  276. package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
  277. package/dist/packem_shared/grid-features-CzUfqgsM.js +0 -840
  278. package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
  279. package/dist/packem_shared/internal-rXJEAhXS.js +0 -68
  280. package/dist/packem_shared/label-D8ykjn5J.js +0 -46
  281. package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
  282. package/dist/packem_shared/reference-view-B4E49Lip.js +0 -2180
  283. package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
  284. package/dist/packem_shared/sparkline-10dG-_f0.js +0 -93
  285. package/dist/packem_shared/sql-editor-panel-BFRpzj6r.js +0 -2562
  286. package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
  287. package/dist/packem_shared/studio-H9fuQgSj.js +0 -10303
  288. package/dist/packem_shared/table-_RzNvy3R.js +0 -246
  289. package/dist/packem_shared/table-list-sidebar-Bg7uzbvC.js +0 -832
  290. package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
  291. package/dist/packem_shared/use-live-admin-Dq6g3daN.js +0 -73
  292. package/dist/packem_shared/use-live-shard-seed-Cuk3dnH0.js +0 -76
  293. package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
  294. package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
  295. package/dist/packem_shared/virtual-rect-CVMUskSm.js +0 -10
@@ -1,229 +0,0 @@
1
- import { c } from 'react/compiler-runtime';
2
- import { useLunora } from '@lunora/react';
3
- import { E as EmptyState } from './empty-state-DY_oe0k6.js';
4
- import { u as useAdminSpec, S as Skeleton, R as ReferenceView } from './reference-view-B4E49Lip.js';
5
- import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
6
- import { jsxDEV } from 'react/jsx-dev-runtime';
7
-
8
- const HTTP_METHODS = ["get", "post", "put", "patch", "delete", "head", "options", "trace"];
9
- const jsonSchemaOf = (media) => media?.content?.["application/json"]?.schema;
10
- const buildResponses = (operation, document) => Object.entries(operation.responses ?? {}).map(([status, raw]) => {
11
- const name = raw.$ref?.replace("#/components/responses/", "");
12
- const resolved = name === void 0 ? raw : document.components?.responses?.[name] ?? raw;
13
- return {
14
- description: resolved.description,
15
- schema: jsonSchemaOf(resolved),
16
- status
17
- };
18
- });
19
- const flattenOperation = (pathKey, httpPath, method, operation, document) => {
20
- const requestSchema = jsonSchemaOf(operation.requestBody);
21
- const functionPathConst = requestSchema?.properties?.["functionPath"]?.const;
22
- const functionPath = typeof functionPathConst === "string" ? functionPathConst : void 0;
23
- const argsSchema = functionPath === void 0 ? requestSchema : requestSchema?.properties?.["args"];
24
- const operationId = operation.operationId ?? `${method} ${httpPath}`;
25
- return {
26
- argsSchema,
27
- description: operation.description,
28
- functionPath,
29
- httpPath,
30
- key: pathKey,
31
- kind: operation["x-lunora-function-kind"],
32
- method: method.toUpperCase(),
33
- operationId,
34
- requestSchema,
35
- responses: buildResponses(operation, document),
36
- summary: operation.summary ?? operationId,
37
- tags: operation.tags ?? [],
38
- title: operation.summary ?? operationId
39
- };
40
- };
41
- const collectOperations = (document) => {
42
- const operations = [];
43
- for (const [pathKey, pathItem] of Object.entries(document.paths ?? {})) {
44
- const httpPath = pathKey.includes("#") ? pathKey.slice(0, pathKey.indexOf("#")) : pathKey;
45
- for (const method of HTTP_METHODS) {
46
- const operation = pathItem[method];
47
- if (operation !== void 0) {
48
- operations.push(flattenOperation(pathKey, httpPath, method, operation, document));
49
- }
50
- }
51
- }
52
- return operations;
53
- };
54
- const parseOpenApi = (raw) => {
55
- const document = raw ?? {};
56
- const operations = collectOperations(document);
57
- const tagMeta = new Map((document.tags ?? []).map((tag) => [tag.name, tag.description]));
58
- const seenTags = /* @__PURE__ */ new Set();
59
- const groups = [];
60
- const pushGroup = (name) => {
61
- if (seenTags.has(name)) {
62
- return;
63
- }
64
- seenTags.add(name);
65
- const members = operations.filter((operation) => (operation.tags[0] ?? "") === name);
66
- if (members.length > 0) {
67
- groups.push({
68
- description: tagMeta.get(name),
69
- name,
70
- operations: members
71
- });
72
- }
73
- };
74
- for (const tag of document.tags ?? []) {
75
- pushGroup(tag.name);
76
- }
77
- for (const operation of operations) {
78
- pushGroup(operation.tags[0] ?? "");
79
- }
80
- return {
81
- groups,
82
- operationByKey: new Map(operations.map((operation) => [operation.key, operation])),
83
- server: document.servers?.[0]?.url,
84
- title: document.info?.title ?? "API reference",
85
- version: document.info?.version
86
- };
87
- };
88
-
89
- const isEmptySpec = (spec) => {
90
- const {
91
- paths
92
- } = spec;
93
- return paths === void 0 || typeof paths === "object" && paths !== null && Object.keys(paths).length === 0;
94
- };
95
- const classifySpec = (spec) => {
96
- const document = spec;
97
- return isEmptySpec(document) ? {
98
- kind: "empty"
99
- } : {
100
- kind: "ready",
101
- spec: document
102
- };
103
- };
104
- const ApiReferencePanel = (t0) => {
105
- const $ = c(23);
106
- const {
107
- spec: inlineSpec
108
- } = t0;
109
- const t = useT();
110
- const client = useLunora();
111
- let t1;
112
- if ($[0] !== client) {
113
- t1 = () => client.fetchOpenApi();
114
- $[0] = client;
115
- $[1] = t1;
116
- } else {
117
- t1 = $[1];
118
- }
119
- const fetchOpenApi = t1;
120
- const state = useAdminSpec(inlineSpec, fetchOpenApi, classifySpec);
121
- let t2;
122
- if ($[2] !== state.kind || $[3] !== state.spec) {
123
- t2 = state.kind === "ready" ? parseOpenApi(state.spec) : void 0;
124
- $[2] = state.kind;
125
- $[3] = state.spec;
126
- $[4] = t2;
127
- } else {
128
- t2 = $[4];
129
- }
130
- const model = t2;
131
- if (state.kind === "loading") {
132
- let t32;
133
- if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
134
- t32 = /* @__PURE__ */ jsxDEV("div", {
135
- className: "flex flex-col gap-4",
136
- "data-testid": "api-reference-loading",
137
- children: [/* @__PURE__ */ jsxDEV(Skeleton, {
138
- className: "h-8 w-48"
139
- }, void 0, false), /* @__PURE__ */ jsxDEV(Skeleton, {
140
- className: "h-64 w-full"
141
- }, void 0, false)]
142
- }, void 0, true);
143
- $[5] = t32;
144
- } else {
145
- t32 = $[5];
146
- }
147
- return t32;
148
- }
149
- if (state.kind === "error") {
150
- let t32;
151
- if ($[6] !== state.message || $[7] !== t) {
152
- t32 = t("Couldn't load the OpenAPI spec: {message}", {
153
- message: state.message
154
- });
155
- $[6] = state.message;
156
- $[7] = t;
157
- $[8] = t32;
158
- } else {
159
- t32 = $[8];
160
- }
161
- let t4;
162
- if ($[9] !== t) {
163
- t4 = t("API reference unavailable");
164
- $[9] = t;
165
- $[10] = t4;
166
- } else {
167
- t4 = $[10];
168
- }
169
- let t5;
170
- if ($[11] !== t32 || $[12] !== t4) {
171
- t5 = /* @__PURE__ */ jsxDEV(EmptyState, {
172
- description: t32,
173
- testId: "api-reference-error",
174
- title: t4
175
- }, void 0, false);
176
- $[11] = t32;
177
- $[12] = t4;
178
- $[13] = t5;
179
- } else {
180
- t5 = $[13];
181
- }
182
- return t5;
183
- }
184
- if (state.kind === "empty" || model === void 0) {
185
- let t32;
186
- if ($[14] !== t) {
187
- t32 = t("Run `lunora codegen` and wire `_generated/openapi.json` to the worker to render the API reference here.");
188
- $[14] = t;
189
- $[15] = t32;
190
- } else {
191
- t32 = $[15];
192
- }
193
- let t4;
194
- if ($[16] !== t) {
195
- t4 = t("No OpenAPI spec configured");
196
- $[16] = t;
197
- $[17] = t4;
198
- } else {
199
- t4 = $[17];
200
- }
201
- let t5;
202
- if ($[18] !== t32 || $[19] !== t4) {
203
- t5 = /* @__PURE__ */ jsxDEV(EmptyState, {
204
- description: t32,
205
- testId: "api-reference-empty",
206
- title: t4
207
- }, void 0, false);
208
- $[18] = t32;
209
- $[19] = t4;
210
- $[20] = t5;
211
- } else {
212
- t5 = $[20];
213
- }
214
- return t5;
215
- }
216
- let t3;
217
- if ($[21] !== model) {
218
- t3 = /* @__PURE__ */ jsxDEV(ReferenceView, {
219
- model
220
- }, void 0, false);
221
- $[21] = model;
222
- $[22] = t3;
223
- } else {
224
- t3 = $[22];
225
- }
226
- return t3;
227
- };
228
-
229
- export { ApiReferencePanel as default };
@@ -1,251 +0,0 @@
1
- import { c } from 'react/compiler-runtime';
2
- import { useState } from 'react';
3
- import { B as Button } from './button-BhsN2uZH.js';
4
- import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
5
- import ApiDocsPanel from './ApiDocsPanel-C5-yJ1p7.js';
6
- import ApiReferencePanel from './ApiReferencePanel-1vubqG5s.js';
7
- import OpenRpcReferencePanel from './OpenRpcReferencePanel-vbcYbv3V.js';
8
- import { jsxDEV } from 'react/jsx-dev-runtime';
9
-
10
- const VIEW_KEYS = ["reference", "snippets"];
11
- const FORMAT_KEYS = ["openapi", "openrpc"];
12
- const ApiTab = (t0) => {
13
- const $ = c(51);
14
- const {
15
- functions,
16
- initialShardKey,
17
- openApiSpec,
18
- openRpcSpec
19
- } = t0;
20
- const t = useT();
21
- const [view, setView] = useState("reference");
22
- const [format, setFormat] = useState("openapi");
23
- let t1;
24
- if ($[0] !== t) {
25
- t1 = t("Reference");
26
- $[0] = t;
27
- $[1] = t1;
28
- } else {
29
- t1 = $[1];
30
- }
31
- let t2;
32
- if ($[2] !== t) {
33
- t2 = t("Snippets");
34
- $[2] = t;
35
- $[3] = t2;
36
- } else {
37
- t2 = $[3];
38
- }
39
- let t3;
40
- if ($[4] !== t1 || $[5] !== t2) {
41
- t3 = {
42
- reference: t1,
43
- snippets: t2
44
- };
45
- $[4] = t1;
46
- $[5] = t2;
47
- $[6] = t3;
48
- } else {
49
- t3 = $[6];
50
- }
51
- const viewLabel = t3;
52
- let t4;
53
- if ($[7] !== t) {
54
- t4 = t("OpenAPI");
55
- $[7] = t;
56
- $[8] = t4;
57
- } else {
58
- t4 = $[8];
59
- }
60
- let t5;
61
- if ($[9] !== t) {
62
- t5 = t("OpenRPC");
63
- $[9] = t;
64
- $[10] = t5;
65
- } else {
66
- t5 = $[10];
67
- }
68
- let t6;
69
- if ($[11] !== t4 || $[12] !== t5) {
70
- t6 = {
71
- openapi: t4,
72
- openrpc: t5
73
- };
74
- $[11] = t4;
75
- $[12] = t5;
76
- $[13] = t6;
77
- } else {
78
- t6 = $[13];
79
- }
80
- const formatLabel = t6;
81
- let t7;
82
- if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
83
- t7 = (event) => {
84
- setView(event.currentTarget.dataset.view);
85
- };
86
- $[14] = t7;
87
- } else {
88
- t7 = $[14];
89
- }
90
- const selectView = t7;
91
- let t8;
92
- if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
93
- t8 = (event_0) => {
94
- setFormat(event_0.currentTarget.dataset.format);
95
- };
96
- $[15] = t8;
97
- } else {
98
- t8 = $[15];
99
- }
100
- const selectFormat = t8;
101
- let t9;
102
- if ($[16] !== t) {
103
- t9 = t("API view");
104
- $[16] = t;
105
- $[17] = t9;
106
- } else {
107
- t9 = $[17];
108
- }
109
- let t10;
110
- if ($[18] !== view || $[19] !== viewLabel) {
111
- t10 = VIEW_KEYS.map((key) => /* @__PURE__ */ jsxDEV(Button, {
112
- "aria-selected": view === key,
113
- "data-testid": `api-view-${key}`,
114
- "data-view": key,
115
- onClick: selectView,
116
- role: "tab",
117
- size: "sm",
118
- type: "button",
119
- variant: view === key ? "default" : "outline",
120
- children: viewLabel[key]
121
- }, key, false));
122
- $[18] = view;
123
- $[19] = viewLabel;
124
- $[20] = t10;
125
- } else {
126
- t10 = $[20];
127
- }
128
- let t11;
129
- if ($[21] !== t10 || $[22] !== t9) {
130
- t11 = /* @__PURE__ */ jsxDEV("div", {
131
- "aria-label": t9,
132
- className: "flex gap-1.5",
133
- "data-testid": "api-view-toggle",
134
- role: "tablist",
135
- children: t10
136
- }, void 0, false);
137
- $[21] = t10;
138
- $[22] = t9;
139
- $[23] = t11;
140
- } else {
141
- t11 = $[23];
142
- }
143
- let t12;
144
- if ($[24] !== format || $[25] !== formatLabel || $[26] !== t || $[27] !== view) {
145
- t12 = view === "reference" && /* @__PURE__ */ jsxDEV("div", {
146
- "aria-label": t("API spec format"),
147
- className: "flex gap-1.5",
148
- "data-testid": "api-format-toggle",
149
- role: "tablist",
150
- children: FORMAT_KEYS.map((key_0) => /* @__PURE__ */ jsxDEV(Button, {
151
- "aria-selected": format === key_0,
152
- "data-format": key_0,
153
- "data-testid": `api-format-${key_0}`,
154
- onClick: selectFormat,
155
- role: "tab",
156
- size: "sm",
157
- type: "button",
158
- variant: format === key_0 ? "default" : "outline",
159
- children: formatLabel[key_0]
160
- }, key_0, false))
161
- }, void 0, false);
162
- $[24] = format;
163
- $[25] = formatLabel;
164
- $[26] = t;
165
- $[27] = view;
166
- $[28] = t12;
167
- } else {
168
- t12 = $[28];
169
- }
170
- let t13;
171
- if ($[29] !== t11 || $[30] !== t12) {
172
- t13 = /* @__PURE__ */ jsxDEV("div", {
173
- className: "flex shrink-0 flex-wrap items-center gap-3 border-b border-border px-6 py-3",
174
- children: [t11, t12]
175
- }, void 0, true);
176
- $[29] = t11;
177
- $[30] = t12;
178
- $[31] = t13;
179
- } else {
180
- t13 = $[31];
181
- }
182
- let t14;
183
- if ($[32] !== functions || $[33] !== initialShardKey || $[34] !== view) {
184
- t14 = view === "snippets" && /* @__PURE__ */ jsxDEV("div", {
185
- className: "min-h-0 flex-1 overflow-y-auto p-6",
186
- children: /* @__PURE__ */ jsxDEV(ApiDocsPanel, {
187
- functions,
188
- initialShardKey
189
- }, void 0, false)
190
- }, void 0, false);
191
- $[32] = functions;
192
- $[33] = initialShardKey;
193
- $[34] = view;
194
- $[35] = t14;
195
- } else {
196
- t14 = $[35];
197
- }
198
- let t15;
199
- if ($[36] !== format || $[37] !== openApiSpec || $[38] !== view) {
200
- t15 = view === "reference" && format === "openapi" && /* @__PURE__ */ jsxDEV(ApiReferencePanel, {
201
- spec: openApiSpec
202
- }, void 0, false);
203
- $[36] = format;
204
- $[37] = openApiSpec;
205
- $[38] = view;
206
- $[39] = t15;
207
- } else {
208
- t15 = $[39];
209
- }
210
- let t16;
211
- if ($[40] !== format || $[41] !== openRpcSpec || $[42] !== view) {
212
- t16 = view === "reference" && format === "openrpc" && /* @__PURE__ */ jsxDEV(OpenRpcReferencePanel, {
213
- spec: openRpcSpec
214
- }, void 0, false);
215
- $[40] = format;
216
- $[41] = openRpcSpec;
217
- $[42] = view;
218
- $[43] = t16;
219
- } else {
220
- t16 = $[43];
221
- }
222
- let t17;
223
- if ($[44] !== t14 || $[45] !== t15 || $[46] !== t16) {
224
- t17 = /* @__PURE__ */ jsxDEV("div", {
225
- className: "flex min-h-0 flex-1 flex-col overflow-hidden",
226
- children: [t14, t15, t16]
227
- }, void 0, true);
228
- $[44] = t14;
229
- $[45] = t15;
230
- $[46] = t16;
231
- $[47] = t17;
232
- } else {
233
- t17 = $[47];
234
- }
235
- let t18;
236
- if ($[48] !== t13 || $[49] !== t17) {
237
- t18 = /* @__PURE__ */ jsxDEV("div", {
238
- className: "flex min-h-0 flex-1 flex-col",
239
- "data-testid": "lunora-api-tab",
240
- children: [t13, t17]
241
- }, void 0, true);
242
- $[48] = t13;
243
- $[49] = t17;
244
- $[50] = t18;
245
- } else {
246
- t18 = $[50];
247
- }
248
- return t18;
249
- };
250
-
251
- export { ApiTab as default };
@@ -1,212 +0,0 @@
1
- import { useLunora } from '@lunora/react';
2
- import { useVirtualizer, observeElementRect } from '@tanstack/react-virtual';
3
- import { useState, useMemo, useRef } from 'react';
4
- import { L as LiveError } from './live-status-FZ0psC1z.js';
5
- import { ShardInput } from './ShardInput-gx_DZXXn.js';
6
- import { B as Badge } from './badge-B2PKA1-5.js';
7
- import { C as Card, a as CardContent } from './card-DURq3ElK.js';
8
- import { E as EmptyState } from './empty-state-DY_oe0k6.js';
9
- import { I as Input } from './input-XH4r1Pt1.js';
10
- import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from './table-_RzNvy3R.js';
11
- import { u as useLiveAdmin } from './use-live-admin-Dq6g3daN.js';
12
- import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
13
- import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-DmBqMZ-z.js';
14
- import { b as formatTimestamp, c as callOptions, e as errorMessage, a as adminRef } from './internal-rXJEAhXS.js';
15
- import { u as useLiveShardSeed } from './use-live-shard-seed-Cuk3dnH0.js';
16
- import { jsxDEV } from 'react/jsx-dev-runtime';
17
-
18
- const GET_AUDIT_LOG = adminRef(ADMIN_FUNCTIONS.getAuditLog);
19
- const DETAIL_MAX = 80;
20
- const formatDetail = (detail) => {
21
- if (detail === void 0) {
22
- return "";
23
- }
24
- const json = JSON.stringify(detail);
25
- return json.length > DETAIL_MAX ? `${json.slice(0, DETAIL_MAX)}…` : json;
26
- };
27
- const ROW_HEIGHT = 41;
28
- const SCROLL_HEIGHT = 480;
29
- const COLUMN_COUNT = 5;
30
- const observeViewportRect = (instance, callback) => observeElementRect(instance, (rect) => {
31
- callback(rect.height > 0 ? rect : {
32
- height: SCROLL_HEIGHT,
33
- width: rect.width
34
- });
35
- });
36
- const AuditPanel = ({
37
- initialShardKey
38
- }) => {
39
- const client = useLunora();
40
- const t = useT();
41
- const [shardKey, setShardKey] = useState(initialShardKey ?? "");
42
- const [entries, setEntries] = useState([]);
43
- const [error, setError] = useState(null);
44
- const [search, setSearch] = useState("");
45
- const [liveError, setLiveError] = useState(void 0);
46
- const refresh = async (shard) => {
47
- setError(null);
48
- try {
49
- const result = await client.query(GET_AUDIT_LOG, {}, callOptions(shard));
50
- setEntries(result.entries);
51
- } catch (error_) {
52
- setEntries([]);
53
- setError(errorMessage(error_));
54
- throw error_;
55
- }
56
- };
57
- const committedShard = useLiveShardSeed(shardKey, refresh);
58
- useLiveAdmin(ADMIN_FUNCTIONS.getAuditLog, {}, committedShard ?? "", (result_0) => {
59
- setError(null);
60
- setLiveError(void 0);
61
- setEntries(result_0.entries);
62
- }, committedShard !== void 0, setLiveError);
63
- const filtered = useMemo(() => {
64
- const needle = search.trim().toLowerCase();
65
- if (needle === "") {
66
- return entries;
67
- }
68
- return entries.filter((entry) => entry.op.toLowerCase().includes(needle) || (entry.table ?? "").toLowerCase().includes(needle) || (entry.id ?? "").toLowerCase().includes(needle));
69
- }, [entries, search]);
70
- const scrollRef = useRef(null);
71
- const virtualizer = useVirtualizer({
72
- count: filtered.length,
73
- estimateSize: () => ROW_HEIGHT,
74
- getScrollElement: () => scrollRef.current,
75
- initialRect: {
76
- height: SCROLL_HEIGHT,
77
- width: 800
78
- },
79
- observeElementRect: observeViewportRect,
80
- overscan: 8
81
- });
82
- const virtualRows = virtualizer.getVirtualItems();
83
- const totalSize = virtualizer.getTotalSize();
84
- const paddingTop = virtualRows[0]?.start ?? 0;
85
- const paddingBottom = totalSize - (virtualRows.at(-1)?.end ?? 0);
86
- const topSpacerStyle = {
87
- height: paddingTop
88
- };
89
- const bottomSpacerStyle = {
90
- height: paddingBottom
91
- };
92
- const onSearchChange = (event) => {
93
- setSearch(event.target.value);
94
- };
95
- return /* @__PURE__ */ jsxDEV("div", {
96
- className: "flex flex-col gap-4",
97
- "data-testid": "lunora-audit",
98
- children: [/* @__PURE__ */ jsxDEV("div", {
99
- className: "flex flex-wrap items-center gap-2",
100
- children: [/* @__PURE__ */ jsxDEV(ShardInput, {
101
- onChange: setShardKey,
102
- testId: "au-shard-input",
103
- value: shardKey
104
- }, void 0, false), /* @__PURE__ */ jsxDEV(LiveError, {
105
- message: liveError,
106
- prefix: "au"
107
- }, void 0, false), /* @__PURE__ */ jsxDEV(Input, {
108
- "aria-label": t("Filter audit log"),
109
- className: "h-8 w-48",
110
- "data-testid": "au-search",
111
- onChange: onSearchChange,
112
- placeholder: t("filter op, table, id"),
113
- value: search
114
- }, void 0, false)]
115
- }, void 0, true), error !== null && /* @__PURE__ */ jsxDEV("p", {
116
- className: "text-sm text-destructive",
117
- "data-testid": "au-error",
118
- role: "alert",
119
- children: error
120
- }, void 0, false), error === null && filtered.length === 0 && /* @__PURE__ */ jsxDEV(EmptyState, {
121
- description: t("State-changing admin operations are recorded here."),
122
- icon: /* @__PURE__ */ jsxDEV("svg", {
123
- "aria-hidden": "true",
124
- fill: "none",
125
- stroke: "currentColor",
126
- strokeLinecap: "round",
127
- strokeLinejoin: "round",
128
- strokeWidth: 1.6,
129
- viewBox: "0 0 24 24",
130
- children: /* @__PURE__ */ jsxDEV("path", {
131
- d: "M8 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2h-2M9 3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V3Zm-1 9h8m-8 4h5"
132
- }, void 0, false)
133
- }, void 0, false),
134
- testId: "au-empty",
135
- title: t("No audit entries.")
136
- }, void 0, false), filtered.length > 0 && /* @__PURE__ */ jsxDEV(Card, {
137
- className: "overflow-hidden py-0",
138
- children: /* @__PURE__ */ jsxDEV(CardContent, {
139
- className: "max-h-[30rem] overflow-auto px-0",
140
- ref: scrollRef,
141
- children: /* @__PURE__ */ jsxDEV(Table, {
142
- "data-testid": "au-table",
143
- children: [/* @__PURE__ */ jsxDEV(TableHeader, {
144
- children: /* @__PURE__ */ jsxDEV(TableRow, {
145
- children: [/* @__PURE__ */ jsxDEV(TableHead, {
146
- children: t("time")
147
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
148
- children: t("op")
149
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
150
- children: t("table")
151
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
152
- children: t("id")
153
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
154
- children: t("detail")
155
- }, void 0, false)]
156
- }, void 0, true)
157
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
158
- children: [paddingTop > 0 && /* @__PURE__ */ jsxDEV("tr", {
159
- "aria-hidden": "true",
160
- children: /* @__PURE__ */ jsxDEV("td", {
161
- colSpan: COLUMN_COUNT,
162
- style: topSpacerStyle
163
- }, void 0, false)
164
- }, void 0, false), virtualRows.map((virtualRow) => {
165
- const entry_0 = filtered[virtualRow.index];
166
- const detail = formatDetail(entry_0.detail);
167
- return /* @__PURE__ */ jsxDEV(TableRow, {
168
- "data-testid": "au-row",
169
- children: [/* @__PURE__ */ jsxDEV(TableCell, {
170
- className: "text-muted-foreground tabular-nums",
171
- children: formatTimestamp(entry_0.ts, "—")
172
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
173
- children: /* @__PURE__ */ jsxDEV(Badge, {
174
- variant: "secondary",
175
- children: entry_0.op
176
- }, void 0, false)
177
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
178
- className: "font-medium",
179
- children: entry_0.table ?? /* @__PURE__ */ jsxDEV("span", {
180
- className: "text-muted-foreground",
181
- children: "—"
182
- }, void 0, false)
183
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
184
- className: "max-w-[20ch] truncate font-mono text-xs",
185
- children: entry_0.id ?? /* @__PURE__ */ jsxDEV("span", {
186
- className: "text-muted-foreground",
187
- children: "—"
188
- }, void 0, false)
189
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
190
- className: "max-w-[32ch] truncate font-mono text-xs text-muted-foreground",
191
- title: detail || void 0,
192
- children: detail || /* @__PURE__ */ jsxDEV("span", {
193
- className: "text-muted-foreground",
194
- children: "—"
195
- }, void 0, false)
196
- }, void 0, false)]
197
- }, entry_0.seq, true);
198
- }), paddingBottom > 0 && /* @__PURE__ */ jsxDEV("tr", {
199
- "aria-hidden": "true",
200
- children: /* @__PURE__ */ jsxDEV("td", {
201
- colSpan: COLUMN_COUNT,
202
- style: bottomSpacerStyle
203
- }, void 0, false)
204
- }, void 0, false)]
205
- }, void 0, true)]
206
- }, void 0, true)
207
- }, void 0, false)
208
- }, void 0, false)]
209
- }, void 0, true);
210
- };
211
-
212
- export { AuditPanel };