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

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,842 +0,0 @@
1
- import { c } from 'react/compiler-runtime';
2
- import { useLunora } from '@lunora/react';
3
- import { useState, useEffect } from 'react';
4
- import { B as Button } from './button-BhsN2uZH.js';
5
- import { E as EmptyState } from './empty-state-DY_oe0k6.js';
6
- import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
7
- import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-CZJCZ4c7.js';
8
- import { c as callOptions, a as adminRef, g as copyToClipboard } from './internal-rXJEAhXS.js';
9
- import { jsxDEV } from 'react/jsx-dev-runtime';
10
-
11
- const LIST_TABLES = adminRef(ADMIN_FUNCTIONS.listTables);
12
- const TAB_KEYS = ["react", "client", "cli"];
13
- const REACT_HAS_ACTION_HOOK = false;
14
- const CLIENT_METHOD = {
15
- action: "action",
16
- mutation: "mutation",
17
- query: "query"
18
- };
19
- const splitPath = (path) => {
20
- const index = path.indexOf(":");
21
- if (index === -1) {
22
- return {
23
- file: "",
24
- fn: path
25
- };
26
- }
27
- return {
28
- file: path.slice(0, index),
29
- fn: path.slice(index + 1)
30
- };
31
- };
32
- const buildClientSnippet = ({
33
- file,
34
- fn,
35
- kind
36
- }) => `await client.${CLIENT_METHOD[kind]}(api.${file}.${fn}, { /* args */ });`;
37
- const buildReactSnippet = (input) => {
38
- const reference = `api.${input.file}.${input.fn}`;
39
- switch (input.kind) {
40
- case "action": {
41
- return buildClientSnippet(input);
42
- }
43
- case "mutation": {
44
- return `const ${input.fn} = useMutation(${reference});`;
45
- }
46
- default: {
47
- return `const data = useQuery(${reference}, { /* args */ });`;
48
- }
49
- }
50
- };
51
- const buildCliSnippet = ({
52
- file,
53
- fn
54
- }) => `lunora run ${file}:${fn} --args '{ }'`;
55
- const buildTableSnippet = (table) => [`// Read rows`, `const rows = await ctx.db.query("${table}").collect();`, ``, `// Insert a row`, `const id = await ctx.db.insert("${table}", { /* fields */ });`, ``, `// Generated types`, `type Row = Doc<"${table}">;`, `type RowId = Id<"${table}">;`].join("\n");
56
- const snippetForTab = (tab, input) => {
57
- switch (tab) {
58
- case "cli": {
59
- return buildCliSnippet(input);
60
- }
61
- case "client": {
62
- return buildClientSnippet(input);
63
- }
64
- default: {
65
- return buildReactSnippet(input);
66
- }
67
- }
68
- };
69
- const SnippetBlock = (t0) => {
70
- const $ = c(19);
71
- const {
72
- code,
73
- label,
74
- testId
75
- } = t0;
76
- const t = useT();
77
- let t1;
78
- if ($[0] !== code) {
79
- t1 = () => {
80
- copyToClipboard(code);
81
- };
82
- $[0] = code;
83
- $[1] = t1;
84
- } else {
85
- t1 = $[1];
86
- }
87
- const onCopy = t1;
88
- let t2;
89
- if ($[2] !== label) {
90
- t2 = /* @__PURE__ */ jsxDEV("span", {
91
- className: "text-xs font-medium text-muted-foreground",
92
- children: label
93
- }, void 0, false);
94
- $[2] = label;
95
- $[3] = t2;
96
- } else {
97
- t2 = $[3];
98
- }
99
- const t3 = `${testId}-copy`;
100
- let t4;
101
- if ($[4] !== t) {
102
- t4 = t("Copy");
103
- $[4] = t;
104
- $[5] = t4;
105
- } else {
106
- t4 = $[5];
107
- }
108
- let t5;
109
- if ($[6] !== onCopy || $[7] !== t3 || $[8] !== t4) {
110
- t5 = /* @__PURE__ */ jsxDEV(Button, {
111
- "data-testid": t3,
112
- onClick: onCopy,
113
- size: "xs",
114
- type: "button",
115
- variant: "ghost",
116
- children: t4
117
- }, void 0, false);
118
- $[6] = onCopy;
119
- $[7] = t3;
120
- $[8] = t4;
121
- $[9] = t5;
122
- } else {
123
- t5 = $[9];
124
- }
125
- let t6;
126
- if ($[10] !== t2 || $[11] !== t5) {
127
- t6 = /* @__PURE__ */ jsxDEV("div", {
128
- className: "flex items-center justify-between gap-2",
129
- children: [t2, t5]
130
- }, void 0, true);
131
- $[10] = t2;
132
- $[11] = t5;
133
- $[12] = t6;
134
- } else {
135
- t6 = $[12];
136
- }
137
- let t7;
138
- if ($[13] !== code || $[14] !== testId) {
139
- t7 = /* @__PURE__ */ jsxDEV("pre", {
140
- className: "overflow-auto rounded-md border border-border bg-muted/50 p-3 font-mono text-xs",
141
- "data-testid": testId,
142
- children: code
143
- }, void 0, false);
144
- $[13] = code;
145
- $[14] = testId;
146
- $[15] = t7;
147
- } else {
148
- t7 = $[15];
149
- }
150
- let t8;
151
- if ($[16] !== t6 || $[17] !== t7) {
152
- t8 = /* @__PURE__ */ jsxDEV("div", {
153
- className: "flex flex-col gap-1.5",
154
- children: [t6, t7]
155
- }, void 0, true);
156
- $[16] = t6;
157
- $[17] = t7;
158
- $[18] = t8;
159
- } else {
160
- t8 = $[18];
161
- }
162
- return t8;
163
- };
164
- const FunctionDoc = (t0) => {
165
- const $ = c(50);
166
- const {
167
- file,
168
- fn,
169
- kind
170
- } = t0;
171
- const t = useT();
172
- const [tab, setTab] = useState("react");
173
- let selectTab;
174
- let t1;
175
- let tabLabel;
176
- if ($[0] !== file || $[1] !== fn || $[2] !== kind || $[3] !== t || $[4] !== tab) {
177
- const input = {
178
- file,
179
- fn,
180
- kind
181
- };
182
- let t22;
183
- if ($[8] !== t) {
184
- t22 = t("CLI");
185
- $[8] = t;
186
- $[9] = t22;
187
- } else {
188
- t22 = $[9];
189
- }
190
- let t32;
191
- if ($[10] !== t) {
192
- t32 = t("Client");
193
- $[10] = t;
194
- $[11] = t32;
195
- } else {
196
- t32 = $[11];
197
- }
198
- let t42;
199
- if ($[12] !== t) {
200
- t42 = t("React");
201
- $[12] = t;
202
- $[13] = t42;
203
- } else {
204
- t42 = $[13];
205
- }
206
- let t52;
207
- if ($[14] !== t22 || $[15] !== t32 || $[16] !== t42) {
208
- t52 = {
209
- cli: t22,
210
- client: t32,
211
- react: t42
212
- };
213
- $[14] = t22;
214
- $[15] = t32;
215
- $[16] = t42;
216
- $[17] = t52;
217
- } else {
218
- t52 = $[17];
219
- }
220
- tabLabel = t52;
221
- let t62;
222
- if ($[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
223
- t62 = (event) => {
224
- setTab(event.currentTarget.dataset.tab);
225
- };
226
- $[18] = t62;
227
- } else {
228
- t62 = $[18];
229
- }
230
- selectTab = t62;
231
- t1 = snippetForTab(tab, input);
232
- $[0] = file;
233
- $[1] = fn;
234
- $[2] = kind;
235
- $[3] = t;
236
- $[4] = tab;
237
- $[5] = selectTab;
238
- $[6] = t1;
239
- $[7] = tabLabel;
240
- } else {
241
- selectTab = $[5];
242
- t1 = $[6];
243
- tabLabel = $[7];
244
- }
245
- const code = t1;
246
- const actionFellBack = kind === "action" && tab === "react" && !REACT_HAS_ACTION_HOOK;
247
- const t2 = `api.${file}.${fn}`;
248
- let t3;
249
- if ($[19] !== t2) {
250
- t3 = /* @__PURE__ */ jsxDEV("h2", {
251
- className: "font-mono text-sm font-semibold text-foreground",
252
- "data-testid": "api-fn-title",
253
- children: t2
254
- }, void 0, false);
255
- $[19] = t2;
256
- $[20] = t3;
257
- } else {
258
- t3 = $[20];
259
- }
260
- let t4;
261
- if ($[21] !== kind || $[22] !== t) {
262
- t4 = t("Call this {kind} from your app.", {
263
- kind
264
- });
265
- $[21] = kind;
266
- $[22] = t;
267
- $[23] = t4;
268
- } else {
269
- t4 = $[23];
270
- }
271
- let t5;
272
- if ($[24] !== t4) {
273
- t5 = /* @__PURE__ */ jsxDEV("p", {
274
- className: "text-xs text-muted-foreground",
275
- children: t4
276
- }, void 0, false);
277
- $[24] = t4;
278
- $[25] = t5;
279
- } else {
280
- t5 = $[25];
281
- }
282
- let t6;
283
- if ($[26] !== t3 || $[27] !== t5) {
284
- t6 = /* @__PURE__ */ jsxDEV("div", {
285
- children: [t3, t5]
286
- }, void 0, true);
287
- $[26] = t3;
288
- $[27] = t5;
289
- $[28] = t6;
290
- } else {
291
- t6 = $[28];
292
- }
293
- let t7;
294
- if ($[29] !== t) {
295
- t7 = t("Snippet flavour");
296
- $[29] = t;
297
- $[30] = t7;
298
- } else {
299
- t7 = $[30];
300
- }
301
- let t8;
302
- if ($[31] !== selectTab || $[32] !== tab || $[33] !== tabLabel) {
303
- t8 = TAB_KEYS.map((key) => /* @__PURE__ */ jsxDEV(Button, {
304
- "aria-selected": tab === key,
305
- "data-tab": key,
306
- "data-testid": `api-tab-${key}`,
307
- onClick: selectTab,
308
- role: "tab",
309
- size: "xs",
310
- type: "button",
311
- variant: tab === key ? "default" : "outline",
312
- children: tabLabel[key]
313
- }, key, false));
314
- $[31] = selectTab;
315
- $[32] = tab;
316
- $[33] = tabLabel;
317
- $[34] = t8;
318
- } else {
319
- t8 = $[34];
320
- }
321
- let t9;
322
- if ($[35] !== t7 || $[36] !== t8) {
323
- t9 = /* @__PURE__ */ jsxDEV("div", {
324
- "aria-label": t7,
325
- className: "flex gap-1.5",
326
- "data-testid": "api-tabs",
327
- role: "tablist",
328
- children: t8
329
- }, void 0, false);
330
- $[35] = t7;
331
- $[36] = t8;
332
- $[37] = t9;
333
- } else {
334
- t9 = $[37];
335
- }
336
- const t10 = tabLabel[tab];
337
- const t11 = `api-snippet-${tab}`;
338
- let t12;
339
- if ($[38] !== code || $[39] !== t10 || $[40] !== t11) {
340
- t12 = /* @__PURE__ */ jsxDEV(SnippetBlock, {
341
- code,
342
- label: t10,
343
- testId: t11
344
- }, void 0, false);
345
- $[38] = code;
346
- $[39] = t10;
347
- $[40] = t11;
348
- $[41] = t12;
349
- } else {
350
- t12 = $[41];
351
- }
352
- let t13;
353
- if ($[42] !== actionFellBack || $[43] !== t) {
354
- t13 = actionFellBack && /* @__PURE__ */ jsxDEV("p", {
355
- className: "text-xs text-muted-foreground",
356
- "data-testid": "api-action-note",
357
- children: t("Actions have no React hook — call them through the client.")
358
- }, void 0, false);
359
- $[42] = actionFellBack;
360
- $[43] = t;
361
- $[44] = t13;
362
- } else {
363
- t13 = $[44];
364
- }
365
- let t14;
366
- if ($[45] !== t12 || $[46] !== t13 || $[47] !== t6 || $[48] !== t9) {
367
- t14 = /* @__PURE__ */ jsxDEV("div", {
368
- className: "flex flex-col gap-3",
369
- "data-testid": "api-fn-doc",
370
- children: [t6, t9, t12, t13]
371
- }, void 0, true);
372
- $[45] = t12;
373
- $[46] = t13;
374
- $[47] = t6;
375
- $[48] = t9;
376
- $[49] = t14;
377
- } else {
378
- t14 = $[49];
379
- }
380
- return t14;
381
- };
382
- const TableDoc = (t0) => {
383
- const $ = c(19);
384
- const {
385
- name
386
- } = t0;
387
- const t = useT();
388
- let t1;
389
- if ($[0] !== name) {
390
- t1 = buildTableSnippet(name);
391
- $[0] = name;
392
- $[1] = t1;
393
- } else {
394
- t1 = $[1];
395
- }
396
- const code = t1;
397
- let t2;
398
- if ($[2] !== name) {
399
- t2 = /* @__PURE__ */ jsxDEV("h2", {
400
- className: "font-mono text-sm font-semibold text-foreground",
401
- "data-testid": "api-table-title",
402
- children: name
403
- }, void 0, false);
404
- $[2] = name;
405
- $[3] = t2;
406
- } else {
407
- t2 = $[3];
408
- }
409
- let t3;
410
- if ($[4] !== t) {
411
- t3 = t("Read and write this table through the typed data model.");
412
- $[4] = t;
413
- $[5] = t3;
414
- } else {
415
- t3 = $[5];
416
- }
417
- let t4;
418
- if ($[6] !== t3) {
419
- t4 = /* @__PURE__ */ jsxDEV("p", {
420
- className: "text-xs text-muted-foreground",
421
- children: t3
422
- }, void 0, false);
423
- $[6] = t3;
424
- $[7] = t4;
425
- } else {
426
- t4 = $[7];
427
- }
428
- let t5;
429
- if ($[8] !== t2 || $[9] !== t4) {
430
- t5 = /* @__PURE__ */ jsxDEV("div", {
431
- children: [t2, t4]
432
- }, void 0, true);
433
- $[8] = t2;
434
- $[9] = t4;
435
- $[10] = t5;
436
- } else {
437
- t5 = $[10];
438
- }
439
- let t6;
440
- if ($[11] !== t) {
441
- t6 = t("Data model");
442
- $[11] = t;
443
- $[12] = t6;
444
- } else {
445
- t6 = $[12];
446
- }
447
- let t7;
448
- if ($[13] !== code || $[14] !== t6) {
449
- t7 = /* @__PURE__ */ jsxDEV(SnippetBlock, {
450
- code,
451
- label: t6,
452
- testId: "api-snippet-table"
453
- }, void 0, false);
454
- $[13] = code;
455
- $[14] = t6;
456
- $[15] = t7;
457
- } else {
458
- t7 = $[15];
459
- }
460
- let t8;
461
- if ($[16] !== t5 || $[17] !== t7) {
462
- t8 = /* @__PURE__ */ jsxDEV("div", {
463
- className: "flex flex-col gap-3",
464
- "data-testid": "api-table-doc",
465
- children: [t5, t7]
466
- }, void 0, true);
467
- $[16] = t5;
468
- $[17] = t7;
469
- $[18] = t8;
470
- } else {
471
- t8 = $[18];
472
- }
473
- return t8;
474
- };
475
- const RailButton = (t0) => {
476
- const $ = c(8);
477
- const {
478
- active,
479
- label,
480
- onSelect,
481
- testId,
482
- value
483
- } = t0;
484
- let t1;
485
- if ($[0] !== onSelect || $[1] !== value) {
486
- t1 = () => {
487
- onSelect(value);
488
- };
489
- $[0] = onSelect;
490
- $[1] = value;
491
- $[2] = t1;
492
- } else {
493
- t1 = $[2];
494
- }
495
- const onClick = t1;
496
- const t2 = active ? "page" : void 0;
497
- let t3;
498
- if ($[3] !== label || $[4] !== onClick || $[5] !== t2 || $[6] !== testId) {
499
- t3 = /* @__PURE__ */ jsxDEV("button", {
500
- "aria-current": t2,
501
- className: "w-full truncate rounded-md px-2 py-1 text-start font-mono text-xs text-muted-foreground outline-none transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:bg-sidebar-accent aria-[current=page]:bg-sidebar-accent aria-[current=page]:font-medium aria-[current=page]:text-foreground",
502
- "data-testid": testId,
503
- onClick,
504
- type: "button",
505
- children: label
506
- }, void 0, false);
507
- $[3] = label;
508
- $[4] = onClick;
509
- $[5] = t2;
510
- $[6] = testId;
511
- $[7] = t3;
512
- } else {
513
- t3 = $[7];
514
- }
515
- return t3;
516
- };
517
- const ApiDocsPanel = (t0) => {
518
- const $ = c(67);
519
- const {
520
- functions,
521
- initialShardKey
522
- } = t0;
523
- const t = useT();
524
- const client = useLunora();
525
- const [tables, setTables] = useState(null);
526
- const [selected, setSelected] = useState(null);
527
- let t1;
528
- let t2;
529
- if ($[0] !== client || $[1] !== initialShardKey) {
530
- t1 = () => {
531
- let cancelled = false;
532
- client.query(LIST_TABLES, {}, callOptions(initialShardKey ?? "")).then((result) => {
533
- if (!cancelled) {
534
- setTables(result);
535
- }
536
- return result;
537
- }).catch(() => {
538
- if (!cancelled) {
539
- setTables([]);
540
- }
541
- });
542
- return () => {
543
- cancelled = true;
544
- };
545
- };
546
- t2 = [client, initialShardKey];
547
- $[0] = client;
548
- $[1] = initialShardKey;
549
- $[2] = t1;
550
- $[3] = t2;
551
- } else {
552
- t1 = $[2];
553
- t2 = $[3];
554
- }
555
- useEffect(t1, t2);
556
- let t3;
557
- if ($[4] !== functions) {
558
- t3 = functions ?? [];
559
- $[4] = functions;
560
- $[5] = t3;
561
- } else {
562
- t3 = $[5];
563
- }
564
- const functionList = t3;
565
- let t4;
566
- if ($[6] !== functionList) {
567
- const byFile = /* @__PURE__ */ new Map();
568
- for (const descriptor of functionList) {
569
- const {
570
- file,
571
- fn
572
- } = splitPath(descriptor.path);
573
- const bucket = byFile.get(file) ?? [];
574
- bucket.push({
575
- fn,
576
- kind: descriptor.kind,
577
- path: descriptor.path
578
- });
579
- byFile.set(file, bucket);
580
- }
581
- t4 = [...byFile.entries()].map(_temp2).toSorted(_temp3);
582
- $[6] = functionList;
583
- $[7] = t4;
584
- } else {
585
- t4 = $[7];
586
- }
587
- const grouped = t4;
588
- let hasResources;
589
- let selectedFunction;
590
- let selectedSplit;
591
- let t10;
592
- let t11;
593
- let t5;
594
- let t6;
595
- let t7;
596
- let t8;
597
- let t9;
598
- if ($[8] !== functionList || $[9] !== grouped || $[10] !== selected || $[11] !== t || $[12] !== tables) {
599
- const tableNames = (tables ?? []).map(_temp4).toSorted(_temp5);
600
- let t122;
601
- if ($[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
602
- t122 = (path) => {
603
- setSelected({
604
- kind: "fn",
605
- path
606
- });
607
- };
608
- $[23] = t122;
609
- } else {
610
- t122 = $[23];
611
- }
612
- const selectFunction = t122;
613
- let t132;
614
- if ($[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
615
- t132 = (name) => {
616
- setSelected({
617
- kind: "table",
618
- name
619
- });
620
- };
621
- $[24] = t132;
622
- } else {
623
- t132 = $[24];
624
- }
625
- const selectTable = t132;
626
- selectedFunction = selected?.kind === "fn" ? functionList.find((descriptor_0) => descriptor_0.path === selected.path) : void 0;
627
- hasResources = functionList.length > 0 || tableNames.length > 0;
628
- selectedSplit = selectedFunction === void 0 ? void 0 : splitPath(selectedFunction.path);
629
- t10 = "grid min-h-0 gap-6 md:grid-cols-[16rem_minmax(0,1fr)]";
630
- t11 = "lunora-api-docs";
631
- if ($[25] !== t) {
632
- t5 = t("API resources");
633
- $[25] = t;
634
- $[26] = t5;
635
- } else {
636
- t5 = $[26];
637
- }
638
- t6 = "flex flex-col gap-4 overflow-y-auto";
639
- t7 = "api-rail";
640
- if ($[27] !== grouped || $[28] !== selected || $[29] !== t) {
641
- let t142;
642
- if ($[31] !== selected || $[32] !== t) {
643
- t142 = (group) => /* @__PURE__ */ jsxDEV("div", {
644
- className: "flex flex-col gap-1",
645
- children: [/* @__PURE__ */ jsxDEV("span", {
646
- className: "px-2 font-mono text-[11px] tracking-wide text-muted-foreground uppercase",
647
- children: group.file || t("(root)")
648
- }, void 0, false), group.items.map((item) => /* @__PURE__ */ jsxDEV(RailButton, {
649
- active: selected?.kind === "fn" && selected.path === item.path,
650
- label: item.fn,
651
- onSelect: selectFunction,
652
- testId: `api-rail-fn-${item.path}`,
653
- value: item.path
654
- }, item.path, false))]
655
- }, group.file, true);
656
- $[31] = selected;
657
- $[32] = t;
658
- $[33] = t142;
659
- } else {
660
- t142 = $[33];
661
- }
662
- t8 = grouped.map(t142);
663
- $[27] = grouped;
664
- $[28] = selected;
665
- $[29] = t;
666
- $[30] = t8;
667
- } else {
668
- t8 = $[30];
669
- }
670
- t9 = tableNames.length > 0 && /* @__PURE__ */ jsxDEV("div", {
671
- className: "flex flex-col gap-1",
672
- children: [/* @__PURE__ */ jsxDEV("span", {
673
- className: "px-2 font-mono text-[11px] tracking-wide text-muted-foreground uppercase",
674
- children: t("Tables")
675
- }, void 0, false), tableNames.map((name_0) => /* @__PURE__ */ jsxDEV(RailButton, {
676
- active: selected?.kind === "table" && selected.name === name_0,
677
- label: name_0,
678
- onSelect: selectTable,
679
- testId: `api-rail-table-${name_0}`,
680
- value: name_0
681
- }, name_0, false))]
682
- }, void 0, true);
683
- $[8] = functionList;
684
- $[9] = grouped;
685
- $[10] = selected;
686
- $[11] = t;
687
- $[12] = tables;
688
- $[13] = hasResources;
689
- $[14] = selectedFunction;
690
- $[15] = selectedSplit;
691
- $[16] = t10;
692
- $[17] = t11;
693
- $[18] = t5;
694
- $[19] = t6;
695
- $[20] = t7;
696
- $[21] = t8;
697
- $[22] = t9;
698
- } else {
699
- hasResources = $[13];
700
- selectedFunction = $[14];
701
- selectedSplit = $[15];
702
- t10 = $[16];
703
- t11 = $[17];
704
- t5 = $[18];
705
- t6 = $[19];
706
- t7 = $[20];
707
- t8 = $[21];
708
- t9 = $[22];
709
- }
710
- let t12;
711
- if ($[34] !== hasResources || $[35] !== t) {
712
- t12 = !hasResources && /* @__PURE__ */ jsxDEV("p", {
713
- className: "px-2 text-xs text-muted-foreground",
714
- "data-testid": "api-rail-empty",
715
- children: t("No functions or tables to document yet.")
716
- }, void 0, false);
717
- $[34] = hasResources;
718
- $[35] = t;
719
- $[36] = t12;
720
- } else {
721
- t12 = $[36];
722
- }
723
- let t13;
724
- if ($[37] !== t12 || $[38] !== t5 || $[39] !== t6 || $[40] !== t7 || $[41] !== t8 || $[42] !== t9) {
725
- t13 = /* @__PURE__ */ jsxDEV("nav", {
726
- "aria-label": t5,
727
- className: t6,
728
- "data-testid": t7,
729
- children: [t8, t9, t12]
730
- }, void 0, true);
731
- $[37] = t12;
732
- $[38] = t5;
733
- $[39] = t6;
734
- $[40] = t7;
735
- $[41] = t8;
736
- $[42] = t9;
737
- $[43] = t13;
738
- } else {
739
- t13 = $[43];
740
- }
741
- let t14;
742
- if ($[44] !== selected || $[45] !== t) {
743
- t14 = selected === null && /* @__PURE__ */ jsxDEV(EmptyState, {
744
- description: t("Select a function or table to see how to call it from your app."),
745
- testId: "api-empty",
746
- title: t("API usage snippets")
747
- }, void 0, false);
748
- $[44] = selected;
749
- $[45] = t;
750
- $[46] = t14;
751
- } else {
752
- t14 = $[46];
753
- }
754
- let t15;
755
- if ($[47] !== selected?.kind || $[48] !== selectedFunction || $[49] !== selectedSplit) {
756
- t15 = selected?.kind === "fn" && selectedFunction !== void 0 && selectedSplit !== void 0 && /* @__PURE__ */ jsxDEV(FunctionDoc, {
757
- file: selectedSplit.file,
758
- fn: selectedSplit.fn,
759
- kind: selectedFunction.kind
760
- }, selectedFunction.path, false);
761
- $[47] = selected?.kind;
762
- $[48] = selectedFunction;
763
- $[49] = selectedSplit;
764
- $[50] = t15;
765
- } else {
766
- t15 = $[50];
767
- }
768
- let t16;
769
- if ($[51] !== selected?.kind || $[52] !== selectedFunction || $[53] !== t) {
770
- t16 = selected?.kind === "fn" && selectedFunction === void 0 && /* @__PURE__ */ jsxDEV(EmptyState, {
771
- testId: "api-empty",
772
- title: t("API usage snippets")
773
- }, void 0, false);
774
- $[51] = selected?.kind;
775
- $[52] = selectedFunction;
776
- $[53] = t;
777
- $[54] = t16;
778
- } else {
779
- t16 = $[54];
780
- }
781
- let t17;
782
- if ($[55] !== selected) {
783
- t17 = selected?.kind === "table" && /* @__PURE__ */ jsxDEV(TableDoc, {
784
- name: selected.name
785
- }, void 0, false);
786
- $[55] = selected;
787
- $[56] = t17;
788
- } else {
789
- t17 = $[56];
790
- }
791
- let t18;
792
- if ($[57] !== t14 || $[58] !== t15 || $[59] !== t16 || $[60] !== t17) {
793
- t18 = /* @__PURE__ */ jsxDEV("div", {
794
- className: "min-w-0",
795
- children: [t14, t15, t16, t17]
796
- }, void 0, true);
797
- $[57] = t14;
798
- $[58] = t15;
799
- $[59] = t16;
800
- $[60] = t17;
801
- $[61] = t18;
802
- } else {
803
- t18 = $[61];
804
- }
805
- let t19;
806
- if ($[62] !== t10 || $[63] !== t11 || $[64] !== t13 || $[65] !== t18) {
807
- t19 = /* @__PURE__ */ jsxDEV("div", {
808
- className: t10,
809
- "data-testid": t11,
810
- children: [t13, t18]
811
- }, void 0, true);
812
- $[62] = t10;
813
- $[63] = t11;
814
- $[64] = t13;
815
- $[65] = t18;
816
- $[66] = t19;
817
- } else {
818
- t19 = $[66];
819
- }
820
- return t19;
821
- };
822
- function _temp(a, b) {
823
- return a.fn.localeCompare(b.fn);
824
- }
825
- function _temp2(t0) {
826
- const [file_0, items] = t0;
827
- return {
828
- file: file_0,
829
- items: items.toSorted(_temp)
830
- };
831
- }
832
- function _temp3(a_0, b_0) {
833
- return a_0.file.localeCompare(b_0.file);
834
- }
835
- function _temp4(table) {
836
- return table.name;
837
- }
838
- function _temp5(a_1, b_1) {
839
- return a_1.localeCompare(b_1);
840
- }
841
-
842
- export { REACT_HAS_ACTION_HOOK, buildCliSnippet, buildClientSnippet, buildReactSnippet, buildTableSnippet, ApiDocsPanel as default, splitPath };