@lunora/studio 1.0.0-alpha.13 → 1.0.0-alpha.131

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 (329) hide show
  1. package/LICENSE.md +6 -0
  2. package/dist/index.d.ts +881 -786
  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/AdvisorHealthPanel.js +1 -0
  7. package/dist/packem_chunks/ApiTab.js +1 -0
  8. package/dist/packem_chunks/AuditPanel.js +1 -0
  9. package/dist/packem_chunks/DeploymentHealthPanel.js +1 -0
  10. package/dist/packem_chunks/ExportImportPanel.js +3 -0
  11. package/dist/packem_chunks/FileBrowser.js +4 -0
  12. package/dist/packem_chunks/FunctionRunner.js +1 -0
  13. package/dist/packem_chunks/FunctionStatsPanel.js +1 -0
  14. package/dist/packem_chunks/HealthPanel.js +1 -0
  15. package/dist/packem_chunks/InsightsPanel.js +1 -0
  16. package/dist/packem_chunks/LogsPanel.js +1 -0
  17. package/dist/packem_chunks/MailPanel.js +2 -0
  18. package/dist/packem_chunks/MetricsPanel.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 +1 -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 +9 -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/evals-panel.js +1 -0
  34. package/dist/packem_chunks/fanout-panel.js +1 -0
  35. package/dist/packem_chunks/flags-panel.js +1 -0
  36. package/dist/packem_chunks/issues-panel.js +1 -0
  37. package/dist/packem_chunks/kv-browser.js +1 -0
  38. package/dist/packem_chunks/log-drains-panel.js +4 -0
  39. package/dist/packem_chunks/migrations-route.js +1 -0
  40. package/dist/packem_chunks/organizations-panel.js +1 -0
  41. package/dist/packem_chunks/payments-panel.js +1 -0
  42. package/dist/packem_chunks/permissions-panel.js +1 -0
  43. package/dist/packem_chunks/queues-panel.js +1 -0
  44. package/dist/packem_chunks/reactors-panel.js +1 -0
  45. package/dist/packem_chunks/rls-panel.js +1 -0
  46. package/dist/packem_chunks/schedule-panel.js +1 -0
  47. package/dist/packem_chunks/sparkline.js +1 -0
  48. package/dist/packem_chunks/storage-rules-panel.js +1 -0
  49. package/dist/packem_chunks/subscriptions-panel.js +1 -0
  50. package/dist/packem_chunks/sync-client-panel.js +1 -0
  51. package/dist/packem_chunks/traces-panel.js +1 -0
  52. package/dist/packem_chunks/users-panel.js +1 -0
  53. package/dist/packem_chunks/vector-browser.js +1 -0
  54. package/dist/packem_chunks/workflows-panel.js +1 -0
  55. package/dist/packem_shared/ADMIN_FUNCTIONS-B6z7VLYt.js +1 -0
  56. package/dist/packem_shared/ApiDocsPanel-Du1L7Ysj.js +2 -0
  57. package/dist/packem_shared/ApiReferencePanel-uGgGOBYj.js +1 -0
  58. package/dist/packem_shared/CommandPalette-HqiXrWIm.js +1 -0
  59. package/dist/packem_shared/ConfirmButton-Cj2SOapE.js +1 -0
  60. package/dist/packem_shared/ConnectionBadge-Bh16X9-u.js +1 -0
  61. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-DuULO4XM.js +1 -0
  62. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-1Lrg55IV.js +1 -0
  63. package/dist/packem_shared/DEFAULT_LOCALE-A1Yg5ORA.js +1 -0
  64. package/dist/packem_shared/DataBrowser-W5TxvLB8.js +4 -0
  65. package/dist/packem_shared/DataFilters-3nbW0uax.js +1 -0
  66. package/dist/packem_shared/ErrorBoundary-BWNF98VF.js +1 -0
  67. package/dist/packem_shared/GlobalDataBrowser-LFznuyGe.js +1 -0
  68. package/dist/packem_shared/HomePanel-DmB0EKjl.js +1 -0
  69. package/dist/packem_shared/MigrationsPanel-BDNt136v.js +1 -0
  70. package/dist/packem_shared/OpenRpcReferencePanel-DgrpASYD.js +1 -0
  71. package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.js +1 -0
  72. package/dist/packem_shared/ScheduledJobs-CiO3eXgI.js +1 -0
  73. package/dist/packem_shared/ShardInput-CdawpUiS.js +1 -0
  74. package/dist/packem_shared/Studio-CkNE_tEy.js +1 -0
  75. package/dist/packem_shared/StudioApp-BZP_0E2n.js +1 -0
  76. package/dist/packem_shared/StudioI18nProvider-Bl547evf.js +1 -0
  77. package/dist/packem_shared/advisor-view-C1KFTXSH.js +1 -0
  78. package/dist/packem_shared/aggregateMetrics-A-Y7OH6R.js +1 -0
  79. package/dist/packem_shared/alert-C2SEhYS9.js +1 -0
  80. package/dist/packem_shared/app.d-D1bPR8FO.d.ts +252 -0
  81. package/dist/packem_shared/badge-cAk9Di1Q.js +1 -0
  82. package/dist/packem_shared/bar-chart-B6gzp_f9.js +6 -0
  83. package/dist/packem_shared/browser-storage-BH1MxLZs.js +1 -0
  84. package/dist/packem_shared/button-BOPLD1un.js +1 -0
  85. package/dist/packem_shared/card-BGlQzQY-.js +1 -0
  86. package/dist/packem_shared/cf-links-CBJ5SywP.js +1 -0
  87. package/dist/packem_shared/checkbox-C5w53W-E.js +1 -0
  88. package/dist/packem_shared/control-button-BOZ5K-FC.js +1 -0
  89. package/dist/packem_shared/data-grid-BFTQnkXq.js +1 -0
  90. package/dist/packem_shared/data-view-params-qoSTqjAj.js +1 -0
  91. package/dist/packem_shared/dropdown-menu-U7Tjg1Nb.js +2 -0
  92. package/dist/packem_shared/empty-state-B939z6K2.js +1 -0
  93. package/dist/packem_shared/error-alert-TYdKetJd.js +1 -0
  94. package/dist/packem_shared/grid-features-jBzZGauv.js +6 -0
  95. package/dist/packem_shared/home-panel-DHOa3sxt.js +3 -0
  96. package/dist/packem_shared/input-CY5W3wzv.js +1 -0
  97. package/dist/packem_shared/internal-CwaF9YNk.js +2 -0
  98. package/dist/packem_shared/label-BOUo-DP0.js +1 -0
  99. package/dist/packem_shared/live-status-Bf7rR8o8.js +1 -0
  100. package/dist/packem_shared/log-fields-SBxKyBug.js +1 -0
  101. package/dist/packem_shared/log-line-UnE93Ovi.js +1 -0
  102. package/dist/packem_shared/modal-shell-wGW4CKEW.js +1 -0
  103. package/dist/packem_shared/operation-console-provider-DoloEvon.js +1 -0
  104. package/dist/packem_shared/quote-identifier-CGiYFBvY.js +1 -0
  105. package/dist/packem_shared/recording-client-CKn4-vUx.js +1 -0
  106. package/dist/packem_shared/reference-view-BU2dNK9Z.js +13 -0
  107. package/dist/packem_shared/schema-diagram-DOaIh1y6.js +2 -0
  108. package/dist/packem_shared/scroll-area-DSJftwu_.js +2 -0
  109. package/dist/packem_shared/select-BPISLTcv.js +2 -0
  110. package/dist/packem_shared/shard-history-DU5b3QDI.js +1 -0
  111. package/dist/packem_shared/shortcuts-lH4Vaqjc.js +1 -0
  112. package/dist/packem_shared/skeleton-DFBBaJU6.js +1 -0
  113. package/dist/packem_shared/sparkline-CYbJzfA1.js +1 -0
  114. package/dist/packem_shared/sql-result-table-CqlZo2QN.js +1 -0
  115. package/dist/packem_shared/stat-card-B9uIvAHg.js +1 -0
  116. package/dist/packem_shared/storage-tier-C2mKwYRj.js +1 -0
  117. package/dist/packem_shared/studio-CXai1O2K.js +2 -0
  118. package/dist/packem_shared/table-BMsuYFhk.js +2 -0
  119. package/dist/packem_shared/table-list-sidebar-BWq_-gtu.js +1 -0
  120. package/dist/packem_shared/textarea-DpO3i-Qo.js +1 -0
  121. package/dist/packem_shared/trace-handoff-z9sy89Ci.js +1 -0
  122. package/dist/packem_shared/use-admin-query-P0RJrjsD.js +1 -0
  123. package/dist/packem_shared/use-async-submit-DdLd0MdK.js +1 -0
  124. package/dist/packem_shared/use-auth-config-z3KRWAqD.js +1 -0
  125. package/dist/packem_shared/use-open-trace-4mqqFWrn.js +1 -0
  126. package/dist/packem_shared/use-shard-key-BsP3o5wT.js +1 -0
  127. package/dist/packem_shared/use-sql-assistant-D1K2LqpO.js +1 -0
  128. package/dist/packem_shared/useDebounced-DVeQ5-oW.js +1 -0
  129. package/dist/packem_shared/utils-bhneXptQ.js +1 -0
  130. package/dist/packem_shared/virtual-rect-D_j7aLxX.js +1 -0
  131. package/dist/packem_shared/wire-codec-Dl3VeNrd.js +1 -0
  132. package/dist/standalone/chunk-26VREVWU.js +1 -0
  133. package/dist/standalone/chunk-2SFSTQS4.js +1 -0
  134. package/dist/standalone/chunk-2VGV6RPS.js +1 -0
  135. package/dist/standalone/chunk-2XOGZAF4.js +3 -0
  136. package/dist/standalone/chunk-333WFRWG.js +1 -0
  137. package/dist/standalone/chunk-362AVHNC.js +1 -0
  138. package/dist/standalone/chunk-3NXFFXQ2.js +1 -0
  139. package/dist/standalone/chunk-3S4VZ2ZM.js +1 -0
  140. package/dist/standalone/chunk-443UDYWL.js +6 -0
  141. package/dist/standalone/chunk-4PZEPCO7.js +1 -0
  142. package/dist/standalone/chunk-4YTSKL4R.js +1 -0
  143. package/dist/standalone/chunk-4ZCENYC3.js +1 -0
  144. package/dist/standalone/chunk-57VX76PR.js +1 -0
  145. package/dist/standalone/chunk-5EW733RQ.js +1 -0
  146. package/dist/standalone/chunk-5JLIP2HH.js +1 -0
  147. package/dist/standalone/chunk-6CBLYGXJ.js +1 -0
  148. package/dist/standalone/chunk-6UPO6ELN.js +1 -0
  149. package/dist/standalone/chunk-6ZPTNC34.js +19 -0
  150. package/dist/standalone/chunk-74ASA4WU.js +1 -0
  151. package/dist/standalone/chunk-76YLMHR3.js +1 -0
  152. package/dist/standalone/chunk-77JLGJ7V.js +1 -0
  153. package/dist/standalone/chunk-7PIHTTND.js +1 -0
  154. package/dist/standalone/chunk-7SROZWKL.js +1 -0
  155. package/dist/standalone/chunk-AFKLFS74.js +1 -0
  156. package/dist/standalone/chunk-AOAJGSYZ.js +2 -0
  157. package/dist/standalone/chunk-AXXNMZQ4.js +1 -0
  158. package/dist/standalone/chunk-BFCUKERU.js +8 -0
  159. package/dist/standalone/chunk-BQK2C2Z4.js +1 -0
  160. package/dist/standalone/chunk-BUIAZFSC.js +1 -0
  161. package/dist/standalone/chunk-BWEXJENB.js +1 -0
  162. package/dist/standalone/chunk-CA5ILAW2.js +14 -0
  163. package/dist/standalone/chunk-CAOUXOL7.js +1 -0
  164. package/dist/standalone/chunk-CKTKI4IY.js +1 -0
  165. package/dist/standalone/chunk-CL76PTLM.js +2 -0
  166. package/dist/standalone/chunk-CN2AINNY.js +1 -0
  167. package/dist/standalone/chunk-CP4ZFBVW.js +1 -0
  168. package/dist/standalone/chunk-CSYDKCNQ.js +1 -0
  169. package/dist/standalone/chunk-CYX3OHJ3.js +1 -0
  170. package/dist/standalone/chunk-DKSLOJDQ.js +1 -0
  171. package/dist/standalone/chunk-DPNEFSEC.js +1 -0
  172. package/dist/standalone/chunk-DUDQV6XJ.js +1 -0
  173. package/dist/standalone/chunk-DZGOHOOE.js +1 -0
  174. package/dist/standalone/chunk-EBI7CCQQ.js +1 -0
  175. package/dist/standalone/chunk-EDHW2EEG.js +1 -0
  176. package/dist/standalone/chunk-EE63P4VX.js +1 -0
  177. package/dist/standalone/chunk-ELO3V35K.js +1 -0
  178. package/dist/standalone/chunk-EVQ6LHI6.js +1 -0
  179. package/dist/standalone/chunk-EYGF6TQS.js +1 -0
  180. package/dist/standalone/chunk-F7JOSNAT.js +1 -0
  181. package/dist/standalone/chunk-FB5DOMZF.js +4 -0
  182. package/dist/standalone/chunk-FDLSPDIC.js +15 -0
  183. package/dist/standalone/chunk-FJ6G6FNE.js +1 -0
  184. package/dist/standalone/chunk-GIQDEWC4.js +1 -0
  185. package/dist/standalone/chunk-GSQURGCT.js +1 -0
  186. package/dist/standalone/chunk-H3BH6X3G.js +1 -0
  187. package/dist/standalone/chunk-H7YVFLA5.js +7 -0
  188. package/dist/standalone/chunk-HAIBZTXF.js +1 -0
  189. package/dist/standalone/chunk-HRD2DVIW.js +1 -0
  190. package/dist/standalone/chunk-IE5S3JMD.js +1 -0
  191. package/dist/standalone/chunk-INQICZYC.js +1 -0
  192. package/dist/standalone/chunk-IYWVSMAY.js +1 -0
  193. package/dist/standalone/chunk-IZXGBTPE.js +1 -0
  194. package/dist/standalone/chunk-JHXEEPRG.js +1 -0
  195. package/dist/standalone/chunk-JURAVSE7.js +1 -0
  196. package/dist/standalone/chunk-JUWOEHDD.js +1 -0
  197. package/dist/standalone/chunk-JV7KTJPY.js +1 -0
  198. package/dist/standalone/chunk-KTXD2N6F.js +1 -0
  199. package/dist/standalone/chunk-KVSQKUWD.js +1 -0
  200. package/dist/standalone/chunk-L4EZAHCD.js +1 -0
  201. package/dist/standalone/chunk-M3NNNOD5.js +1 -0
  202. package/dist/standalone/chunk-MCLM2QJI.js +1 -0
  203. package/dist/standalone/chunk-METRMDIQ.js +1 -0
  204. package/dist/standalone/chunk-MPYVZLYP.js +1 -0
  205. package/dist/standalone/chunk-MSCK3V6U.js +1 -0
  206. package/dist/standalone/chunk-MVZARXDR.js +1 -0
  207. package/dist/standalone/chunk-MYFFCV2R.js +1 -0
  208. package/dist/standalone/chunk-NIX2QSSN.js +1 -0
  209. package/dist/standalone/chunk-NNLNQKT7.js +59 -0
  210. package/dist/standalone/chunk-NSOLPNU7.js +1 -0
  211. package/dist/standalone/chunk-NXXGISFB.js +1 -0
  212. package/dist/standalone/chunk-O5MAFDY2.js +1 -0
  213. package/dist/standalone/chunk-OE4KGVJW.js +4 -0
  214. package/dist/standalone/chunk-OEGE3YDK.js +11 -0
  215. package/dist/standalone/chunk-OG57FC7W.js +1 -0
  216. package/dist/standalone/chunk-PQICDSPP.js +1 -0
  217. package/dist/standalone/chunk-PSPJORP6.js +1 -0
  218. package/dist/standalone/chunk-PZ4QDWTI.js +1 -0
  219. package/dist/standalone/chunk-QHQTOESO.js +1 -0
  220. package/dist/standalone/chunk-QO4SZ4WH.js +1 -0
  221. package/dist/standalone/chunk-R5ZTCHCE.js +1 -0
  222. package/dist/standalone/chunk-RCZTUWG3.js +1 -0
  223. package/dist/standalone/chunk-RJINX3H6.js +1 -0
  224. package/dist/standalone/chunk-RLRTQOFQ.js +1 -0
  225. package/dist/standalone/chunk-RPCMQE4A.js +1 -0
  226. package/dist/standalone/chunk-SJ4CA7QG.js +1 -0
  227. package/dist/standalone/chunk-SPDZUX4P.js +1 -0
  228. package/dist/standalone/chunk-SQMJUXBA.js +1 -0
  229. package/dist/standalone/chunk-SRQP7SLQ.js +1 -0
  230. package/dist/standalone/chunk-TB5N24CM.js +1 -0
  231. package/dist/standalone/chunk-TFMQSCGC.js +1 -0
  232. package/dist/standalone/chunk-TIANWRSD.js +1 -0
  233. package/dist/standalone/chunk-TNKECJW4.js +1 -0
  234. package/dist/standalone/chunk-TPAZM36C.js +1 -0
  235. package/dist/standalone/chunk-TV2M3PHL.js +1 -0
  236. package/dist/standalone/chunk-TVGQ7K5I.js +1 -0
  237. package/dist/standalone/chunk-U7LNRJHZ.js +1 -0
  238. package/dist/standalone/chunk-UANVABQG.js +1 -0
  239. package/dist/standalone/chunk-V6QPVFDL.js +1 -0
  240. package/dist/standalone/chunk-VHXQGKA7.js +1 -0
  241. package/dist/standalone/chunk-VLW547U6.js +1 -0
  242. package/dist/standalone/chunk-VR3UJA7B.js +1 -0
  243. package/dist/standalone/chunk-VZCS5GXZ.js +1 -0
  244. package/dist/standalone/chunk-W2FXNIVC.js +1 -0
  245. package/dist/standalone/chunk-W2JBKQNU.js +1 -0
  246. package/dist/standalone/chunk-WUW4ZHRL.js +1 -0
  247. package/dist/standalone/chunk-WXBTOI6T.js +1 -0
  248. package/dist/standalone/chunk-WY33QRLH.js +9 -0
  249. package/dist/standalone/chunk-XJSWM47N.js +1 -0
  250. package/dist/standalone/chunk-XNBAJ6XA.js +1 -0
  251. package/dist/standalone/chunk-XQS7KSHL.js +1 -0
  252. package/dist/standalone/chunk-Y2YQITGI.js +1 -0
  253. package/dist/standalone/chunk-Z6SECRFO.js +3 -0
  254. package/dist/standalone/chunk-ZHPDAJBM.js +1 -0
  255. package/dist/standalone/chunk-ZPGNTTQ3.js +1 -0
  256. package/dist/standalone/chunk-ZSOLGJFC.js +1 -0
  257. package/dist/standalone/studio.js +9 -378
  258. package/dist/styles.css +2 -2
  259. package/package.json +16 -15
  260. package/dist/packem_shared/ADMIN_FUNCTIONS-CZJCZ4c7.js +0 -47
  261. package/dist/packem_shared/ApiDocsPanel-yEz0fiof.js +0 -842
  262. package/dist/packem_shared/ApiReferencePanel-1vubqG5s.js +0 -229
  263. package/dist/packem_shared/ApiTab-DdubReQI.js +0 -251
  264. package/dist/packem_shared/AuditPanel-CE5ofjCc.js +0 -200
  265. package/dist/packem_shared/CommandPalette-BtgkBzZI.js +0 -373
  266. package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
  267. package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
  268. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
  269. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
  270. package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
  271. package/dist/packem_shared/DataBrowser-DpL8U-Nf.js +0 -4475
  272. package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
  273. package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
  274. package/dist/packem_shared/ExportImportPanel-ChsSUCYZ.js +0 -197
  275. package/dist/packem_shared/FileBrowser-DsRBnVhZ.js +0 -2932
  276. package/dist/packem_shared/FunctionRunner-D4cZ6fuA.js +0 -343
  277. package/dist/packem_shared/FunctionStatsPanel-BVelWgNv.js +0 -375
  278. package/dist/packem_shared/GlobalDataBrowser-3X9uRfdO.js +0 -289
  279. package/dist/packem_shared/HealthPanel-CxUVKfvo.js +0 -648
  280. package/dist/packem_shared/HomePanel-tfqpZxuu.js +0 -1334
  281. package/dist/packem_shared/InsightsPanel-DNg3K9XN.js +0 -461
  282. package/dist/packem_shared/LogsPanel-B4LoSRj0.js +0 -827
  283. package/dist/packem_shared/MailPanel-CcpdyWYs.js +0 -440
  284. package/dist/packem_shared/MetricsPanel-CxoyWbNb.js +0 -1611
  285. package/dist/packem_shared/MigrationsPanel-DGwJGWDA.js +0 -239
  286. package/dist/packem_shared/OpenRpcReferencePanel-vbcYbv3V.js +0 -191
  287. package/dist/packem_shared/PitrPanel-CKUzyyHi.js +0 -252
  288. package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
  289. package/dist/packem_shared/ScheduledJobs-BWNwIN3I.js +0 -262
  290. package/dist/packem_shared/SchemaViewer-RclXFo9Q.js +0 -2512
  291. package/dist/packem_shared/SecurityAdvisorPanel-Dqql1Z5O.js +0 -92
  292. package/dist/packem_shared/SettingsPanel-D5iTY0YE.js +0 -390
  293. package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
  294. package/dist/packem_shared/SqlEditorPanel-Dj-In-B3.js +0 -13
  295. package/dist/packem_shared/Studio-VWvKNOw4.js +0 -33
  296. package/dist/packem_shared/StudioApp-BhQ6T2pn.js +0 -657
  297. package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
  298. package/dist/packem_shared/TableEditor-BY8bTpCl.js +0 -11
  299. package/dist/packem_shared/advisor-view-CGcfMiPq.js +0 -159
  300. package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
  301. package/dist/packem_shared/app.d-BVJFkXyj.d.ts +0 -300
  302. package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
  303. package/dist/packem_shared/bar-chart-CzJAgqkp.js +0 -3245
  304. package/dist/packem_shared/button-BhsN2uZH.js +0 -49
  305. package/dist/packem_shared/card-DURq3ElK.js +0 -175
  306. package/dist/packem_shared/cf-links-2cktDedA.js +0 -8
  307. package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
  308. package/dist/packem_shared/data-grid-B5CaV3wS.js +0 -183
  309. package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
  310. package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
  311. package/dist/packem_shared/grid-features-CzUfqgsM.js +0 -840
  312. package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
  313. package/dist/packem_shared/internal-rXJEAhXS.js +0 -68
  314. package/dist/packem_shared/label-D8ykjn5J.js +0 -46
  315. package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
  316. package/dist/packem_shared/reference-view-B4E49Lip.js +0 -2180
  317. package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
  318. package/dist/packem_shared/sparkline-10dG-_f0.js +0 -93
  319. package/dist/packem_shared/sql-editor-panel-CMdxstu5.js +0 -2562
  320. package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
  321. package/dist/packem_shared/studio-D8ry3tJR.js +0 -11043
  322. package/dist/packem_shared/table-_RzNvy3R.js +0 -246
  323. package/dist/packem_shared/table-editor-CWx68ZCg.js +0 -407
  324. package/dist/packem_shared/table-list-sidebar-Bg7uzbvC.js +0 -832
  325. package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
  326. package/dist/packem_shared/use-admin-query-BkbdNFNz.js +0 -105
  327. package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
  328. package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
  329. 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-yEz0fiof.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,200 +0,0 @@
1
- import { useVirtualizer, observeElementRect } from '@tanstack/react-virtual';
2
- import { useState, useMemo, useRef } from 'react';
3
- import { L as LiveError } from './live-status-FZ0psC1z.js';
4
- import { ShardInput } from './ShardInput-gx_DZXXn.js';
5
- import { B as Badge } from './badge-B2PKA1-5.js';
6
- import { C as Card, a as CardContent } from './card-DURq3ElK.js';
7
- import { E as EmptyState } from './empty-state-DY_oe0k6.js';
8
- import { I as Input } from './input-XH4r1Pt1.js';
9
- import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from './table-_RzNvy3R.js';
10
- import { u as useAdminQuery } from './use-admin-query-BkbdNFNz.js';
11
- import useDebounced from './useDebounced-Dxncpg6z.js';
12
- import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
13
- import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-CZJCZ4c7.js';
14
- import { b as formatTimestamp } from './internal-rXJEAhXS.js';
15
- import { jsxDEV } from 'react/jsx-dev-runtime';
16
-
17
- const DETAIL_MAX = 80;
18
- const formatDetail = (detail) => {
19
- if (detail === void 0) {
20
- return "";
21
- }
22
- const json = JSON.stringify(detail);
23
- return json.length > DETAIL_MAX ? `${json.slice(0, DETAIL_MAX)}…` : json;
24
- };
25
- const ROW_HEIGHT = 41;
26
- const SCROLL_HEIGHT = 480;
27
- const COLUMN_COUNT = 5;
28
- const observeViewportRect = (instance, callback) => observeElementRect(instance, (rect) => {
29
- callback(rect.height > 0 ? rect : {
30
- height: SCROLL_HEIGHT,
31
- width: rect.width
32
- });
33
- });
34
- const AuditPanel = ({
35
- initialShardKey
36
- }) => {
37
- const t = useT();
38
- const [shardKey, setShardKey] = useState(initialShardKey ?? "");
39
- const [search, setSearch] = useState("");
40
- const debouncedShard = useDebounced(shardKey.trim(), 400);
41
- const {
42
- data,
43
- error,
44
- isLoading,
45
- liveError
46
- } = useAdminQuery(ADMIN_FUNCTIONS.getAuditLog, {}, {
47
- live: true,
48
- shardKey: debouncedShard
49
- });
50
- const entries = useMemo(() => data?.entries ?? [], [data]);
51
- const filtered = useMemo(() => {
52
- const needle = search.trim().toLowerCase();
53
- if (needle === "") {
54
- return entries;
55
- }
56
- return entries.filter((entry) => entry.op.toLowerCase().includes(needle) || (entry.table ?? "").toLowerCase().includes(needle) || (entry.id ?? "").toLowerCase().includes(needle));
57
- }, [entries, search]);
58
- const scrollRef = useRef(null);
59
- const virtualizer = useVirtualizer({
60
- count: filtered.length,
61
- estimateSize: () => ROW_HEIGHT,
62
- getScrollElement: () => scrollRef.current,
63
- initialRect: {
64
- height: SCROLL_HEIGHT,
65
- width: 800
66
- },
67
- observeElementRect: observeViewportRect,
68
- overscan: 8
69
- });
70
- const virtualRows = virtualizer.getVirtualItems();
71
- const totalSize = virtualizer.getTotalSize();
72
- const paddingTop = virtualRows[0]?.start ?? 0;
73
- const paddingBottom = totalSize - (virtualRows.at(-1)?.end ?? 0);
74
- const topSpacerStyle = {
75
- height: paddingTop
76
- };
77
- const bottomSpacerStyle = {
78
- height: paddingBottom
79
- };
80
- const onSearchChange = (event) => {
81
- setSearch(event.target.value);
82
- };
83
- return /* @__PURE__ */ jsxDEV("div", {
84
- className: "flex flex-col gap-4",
85
- "data-testid": "lunora-audit",
86
- children: [/* @__PURE__ */ jsxDEV("div", {
87
- className: "flex flex-wrap items-center gap-2",
88
- children: [/* @__PURE__ */ jsxDEV(ShardInput, {
89
- onChange: setShardKey,
90
- testId: "au-shard-input",
91
- value: shardKey
92
- }, void 0, false), /* @__PURE__ */ jsxDEV(LiveError, {
93
- message: liveError,
94
- prefix: "au"
95
- }, void 0, false), /* @__PURE__ */ jsxDEV(Input, {
96
- "aria-label": t("Filter audit log"),
97
- className: "h-8 w-48",
98
- "data-testid": "au-search",
99
- onChange: onSearchChange,
100
- placeholder: t("filter op, table, id"),
101
- value: search
102
- }, void 0, false)]
103
- }, void 0, true), error !== null && /* @__PURE__ */ jsxDEV("p", {
104
- className: "text-sm text-destructive",
105
- "data-testid": "au-error",
106
- role: "alert",
107
- children: error
108
- }, void 0, false), error === null && !isLoading && filtered.length === 0 && /* @__PURE__ */ jsxDEV(EmptyState, {
109
- description: t("State-changing admin operations are recorded here."),
110
- icon: /* @__PURE__ */ jsxDEV("svg", {
111
- "aria-hidden": "true",
112
- fill: "none",
113
- stroke: "currentColor",
114
- strokeLinecap: "round",
115
- strokeLinejoin: "round",
116
- strokeWidth: 1.6,
117
- viewBox: "0 0 24 24",
118
- children: /* @__PURE__ */ jsxDEV("path", {
119
- 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"
120
- }, void 0, false)
121
- }, void 0, false),
122
- testId: "au-empty",
123
- title: t("No audit entries.")
124
- }, void 0, false), filtered.length > 0 && /* @__PURE__ */ jsxDEV(Card, {
125
- className: "overflow-hidden py-0",
126
- children: /* @__PURE__ */ jsxDEV(CardContent, {
127
- className: "max-h-[30rem] overflow-auto px-0",
128
- ref: scrollRef,
129
- children: /* @__PURE__ */ jsxDEV(Table, {
130
- "data-testid": "au-table",
131
- children: [/* @__PURE__ */ jsxDEV(TableHeader, {
132
- children: /* @__PURE__ */ jsxDEV(TableRow, {
133
- children: [/* @__PURE__ */ jsxDEV(TableHead, {
134
- children: t("time")
135
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
136
- children: t("op")
137
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
138
- children: t("table")
139
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
140
- children: t("id")
141
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
142
- children: t("detail")
143
- }, void 0, false)]
144
- }, void 0, true)
145
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
146
- children: [paddingTop > 0 && /* @__PURE__ */ jsxDEV("tr", {
147
- "aria-hidden": "true",
148
- children: /* @__PURE__ */ jsxDEV("td", {
149
- colSpan: COLUMN_COUNT,
150
- style: topSpacerStyle
151
- }, void 0, false)
152
- }, void 0, false), virtualRows.map((virtualRow) => {
153
- const entry_0 = filtered[virtualRow.index];
154
- const detail = formatDetail(entry_0.detail);
155
- return /* @__PURE__ */ jsxDEV(TableRow, {
156
- "data-testid": "au-row",
157
- children: [/* @__PURE__ */ jsxDEV(TableCell, {
158
- className: "text-muted-foreground tabular-nums",
159
- children: formatTimestamp(entry_0.ts, "—")
160
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
161
- children: /* @__PURE__ */ jsxDEV(Badge, {
162
- variant: "secondary",
163
- children: entry_0.op
164
- }, void 0, false)
165
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
166
- className: "font-medium",
167
- children: entry_0.table ?? /* @__PURE__ */ jsxDEV("span", {
168
- className: "text-muted-foreground",
169
- children: "—"
170
- }, void 0, false)
171
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
172
- className: "max-w-[20ch] truncate font-mono text-xs",
173
- children: entry_0.id ?? /* @__PURE__ */ jsxDEV("span", {
174
- className: "text-muted-foreground",
175
- children: "—"
176
- }, void 0, false)
177
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
178
- className: "max-w-[32ch] truncate font-mono text-xs text-muted-foreground",
179
- title: detail || void 0,
180
- children: detail || /* @__PURE__ */ jsxDEV("span", {
181
- className: "text-muted-foreground",
182
- children: "—"
183
- }, void 0, false)
184
- }, void 0, false)]
185
- }, entry_0.seq, true);
186
- }), paddingBottom > 0 && /* @__PURE__ */ jsxDEV("tr", {
187
- "aria-hidden": "true",
188
- children: /* @__PURE__ */ jsxDEV("td", {
189
- colSpan: COLUMN_COUNT,
190
- style: bottomSpacerStyle
191
- }, void 0, false)
192
- }, void 0, false)]
193
- }, void 0, true)]
194
- }, void 0, true)
195
- }, void 0, false)
196
- }, void 0, false)]
197
- }, void 0, true);
198
- };
199
-
200
- export { AuditPanel };