@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.
- package/LICENSE.md +6 -0
- package/dist/index.d.ts +881 -786
- package/dist/index.js +1 -41
- package/dist/mount.d.ts +10 -10
- package/dist/mount.js +1 -26
- package/dist/packem_chunks/AdvisorHealthPanel.js +1 -0
- package/dist/packem_chunks/ApiTab.js +1 -0
- package/dist/packem_chunks/AuditPanel.js +1 -0
- package/dist/packem_chunks/DeploymentHealthPanel.js +1 -0
- package/dist/packem_chunks/ExportImportPanel.js +3 -0
- package/dist/packem_chunks/FileBrowser.js +4 -0
- package/dist/packem_chunks/FunctionRunner.js +1 -0
- package/dist/packem_chunks/FunctionStatsPanel.js +1 -0
- package/dist/packem_chunks/HealthPanel.js +1 -0
- package/dist/packem_chunks/InsightsPanel.js +1 -0
- package/dist/packem_chunks/LogsPanel.js +1 -0
- package/dist/packem_chunks/MailPanel.js +2 -0
- package/dist/packem_chunks/MetricsPanel.js +1 -0
- package/dist/packem_chunks/NotificationsPanel.js +1 -0
- package/dist/packem_chunks/PitrPanel.js +1 -0
- package/dist/packem_chunks/SchemaViewer.js +1 -0
- package/dist/packem_chunks/SecurityAdvisorPanel.js +1 -0
- package/dist/packem_chunks/SettingsPanel.js +1 -0
- package/dist/packem_chunks/SqlEditorPanel.js +9 -0
- package/dist/packem_chunks/TableEditor.js +1 -0
- package/dist/packem_chunks/agents-panel.js +1 -0
- package/dist/packem_chunks/analytics-panel.js +1 -0
- package/dist/packem_chunks/auth-audit-panel.js +1 -0
- package/dist/packem_chunks/auth-config-panel.js +1 -0
- package/dist/packem_chunks/auth-sessions-panel.js +1 -0
- package/dist/packem_chunks/containers-panel.js +1 -0
- package/dist/packem_chunks/dashboards-panel.js +1 -0
- package/dist/packem_chunks/evals-panel.js +1 -0
- package/dist/packem_chunks/fanout-panel.js +1 -0
- package/dist/packem_chunks/flags-panel.js +1 -0
- package/dist/packem_chunks/issues-panel.js +1 -0
- package/dist/packem_chunks/kv-browser.js +1 -0
- package/dist/packem_chunks/log-drains-panel.js +4 -0
- package/dist/packem_chunks/migrations-route.js +1 -0
- package/dist/packem_chunks/organizations-panel.js +1 -0
- package/dist/packem_chunks/payments-panel.js +1 -0
- package/dist/packem_chunks/permissions-panel.js +1 -0
- package/dist/packem_chunks/queues-panel.js +1 -0
- package/dist/packem_chunks/reactors-panel.js +1 -0
- package/dist/packem_chunks/rls-panel.js +1 -0
- package/dist/packem_chunks/schedule-panel.js +1 -0
- package/dist/packem_chunks/sparkline.js +1 -0
- package/dist/packem_chunks/storage-rules-panel.js +1 -0
- package/dist/packem_chunks/subscriptions-panel.js +1 -0
- package/dist/packem_chunks/sync-client-panel.js +1 -0
- package/dist/packem_chunks/traces-panel.js +1 -0
- package/dist/packem_chunks/users-panel.js +1 -0
- package/dist/packem_chunks/vector-browser.js +1 -0
- package/dist/packem_chunks/workflows-panel.js +1 -0
- package/dist/packem_shared/ADMIN_FUNCTIONS-B6z7VLYt.js +1 -0
- package/dist/packem_shared/ApiDocsPanel-Du1L7Ysj.js +2 -0
- package/dist/packem_shared/ApiReferencePanel-uGgGOBYj.js +1 -0
- package/dist/packem_shared/CommandPalette-HqiXrWIm.js +1 -0
- package/dist/packem_shared/ConfirmButton-Cj2SOapE.js +1 -0
- package/dist/packem_shared/ConnectionBadge-Bh16X9-u.js +1 -0
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-DuULO4XM.js +1 -0
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-1Lrg55IV.js +1 -0
- package/dist/packem_shared/DEFAULT_LOCALE-A1Yg5ORA.js +1 -0
- package/dist/packem_shared/DataBrowser-W5TxvLB8.js +4 -0
- package/dist/packem_shared/DataFilters-3nbW0uax.js +1 -0
- package/dist/packem_shared/ErrorBoundary-BWNF98VF.js +1 -0
- package/dist/packem_shared/GlobalDataBrowser-LFznuyGe.js +1 -0
- package/dist/packem_shared/HomePanel-DmB0EKjl.js +1 -0
- package/dist/packem_shared/MigrationsPanel-BDNt136v.js +1 -0
- package/dist/packem_shared/OpenRpcReferencePanel-DgrpASYD.js +1 -0
- package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.js +1 -0
- package/dist/packem_shared/ScheduledJobs-CiO3eXgI.js +1 -0
- package/dist/packem_shared/ShardInput-CdawpUiS.js +1 -0
- package/dist/packem_shared/Studio-CkNE_tEy.js +1 -0
- package/dist/packem_shared/StudioApp-BZP_0E2n.js +1 -0
- package/dist/packem_shared/StudioI18nProvider-Bl547evf.js +1 -0
- package/dist/packem_shared/advisor-view-C1KFTXSH.js +1 -0
- package/dist/packem_shared/aggregateMetrics-A-Y7OH6R.js +1 -0
- package/dist/packem_shared/alert-C2SEhYS9.js +1 -0
- package/dist/packem_shared/app.d-D1bPR8FO.d.ts +252 -0
- package/dist/packem_shared/badge-cAk9Di1Q.js +1 -0
- package/dist/packem_shared/bar-chart-B6gzp_f9.js +6 -0
- package/dist/packem_shared/browser-storage-BH1MxLZs.js +1 -0
- package/dist/packem_shared/button-BOPLD1un.js +1 -0
- package/dist/packem_shared/card-BGlQzQY-.js +1 -0
- package/dist/packem_shared/cf-links-CBJ5SywP.js +1 -0
- package/dist/packem_shared/checkbox-C5w53W-E.js +1 -0
- package/dist/packem_shared/control-button-BOZ5K-FC.js +1 -0
- package/dist/packem_shared/data-grid-BFTQnkXq.js +1 -0
- package/dist/packem_shared/data-view-params-qoSTqjAj.js +1 -0
- package/dist/packem_shared/dropdown-menu-U7Tjg1Nb.js +2 -0
- package/dist/packem_shared/empty-state-B939z6K2.js +1 -0
- package/dist/packem_shared/error-alert-TYdKetJd.js +1 -0
- package/dist/packem_shared/grid-features-jBzZGauv.js +6 -0
- package/dist/packem_shared/home-panel-DHOa3sxt.js +3 -0
- package/dist/packem_shared/input-CY5W3wzv.js +1 -0
- package/dist/packem_shared/internal-CwaF9YNk.js +2 -0
- package/dist/packem_shared/label-BOUo-DP0.js +1 -0
- package/dist/packem_shared/live-status-Bf7rR8o8.js +1 -0
- package/dist/packem_shared/log-fields-SBxKyBug.js +1 -0
- package/dist/packem_shared/log-line-UnE93Ovi.js +1 -0
- package/dist/packem_shared/modal-shell-wGW4CKEW.js +1 -0
- package/dist/packem_shared/operation-console-provider-DoloEvon.js +1 -0
- package/dist/packem_shared/quote-identifier-CGiYFBvY.js +1 -0
- package/dist/packem_shared/recording-client-CKn4-vUx.js +1 -0
- package/dist/packem_shared/reference-view-BU2dNK9Z.js +13 -0
- package/dist/packem_shared/schema-diagram-DOaIh1y6.js +2 -0
- package/dist/packem_shared/scroll-area-DSJftwu_.js +2 -0
- package/dist/packem_shared/select-BPISLTcv.js +2 -0
- package/dist/packem_shared/shard-history-DU5b3QDI.js +1 -0
- package/dist/packem_shared/shortcuts-lH4Vaqjc.js +1 -0
- package/dist/packem_shared/skeleton-DFBBaJU6.js +1 -0
- package/dist/packem_shared/sparkline-CYbJzfA1.js +1 -0
- package/dist/packem_shared/sql-result-table-CqlZo2QN.js +1 -0
- package/dist/packem_shared/stat-card-B9uIvAHg.js +1 -0
- package/dist/packem_shared/storage-tier-C2mKwYRj.js +1 -0
- package/dist/packem_shared/studio-CXai1O2K.js +2 -0
- package/dist/packem_shared/table-BMsuYFhk.js +2 -0
- package/dist/packem_shared/table-list-sidebar-BWq_-gtu.js +1 -0
- package/dist/packem_shared/textarea-DpO3i-Qo.js +1 -0
- package/dist/packem_shared/trace-handoff-z9sy89Ci.js +1 -0
- package/dist/packem_shared/use-admin-query-P0RJrjsD.js +1 -0
- package/dist/packem_shared/use-async-submit-DdLd0MdK.js +1 -0
- package/dist/packem_shared/use-auth-config-z3KRWAqD.js +1 -0
- package/dist/packem_shared/use-open-trace-4mqqFWrn.js +1 -0
- package/dist/packem_shared/use-shard-key-BsP3o5wT.js +1 -0
- package/dist/packem_shared/use-sql-assistant-D1K2LqpO.js +1 -0
- package/dist/packem_shared/useDebounced-DVeQ5-oW.js +1 -0
- package/dist/packem_shared/utils-bhneXptQ.js +1 -0
- package/dist/packem_shared/virtual-rect-D_j7aLxX.js +1 -0
- package/dist/packem_shared/wire-codec-Dl3VeNrd.js +1 -0
- package/dist/standalone/chunk-26VREVWU.js +1 -0
- package/dist/standalone/chunk-2SFSTQS4.js +1 -0
- package/dist/standalone/chunk-2VGV6RPS.js +1 -0
- package/dist/standalone/chunk-2XOGZAF4.js +3 -0
- package/dist/standalone/chunk-333WFRWG.js +1 -0
- package/dist/standalone/chunk-362AVHNC.js +1 -0
- package/dist/standalone/chunk-3NXFFXQ2.js +1 -0
- package/dist/standalone/chunk-3S4VZ2ZM.js +1 -0
- package/dist/standalone/chunk-443UDYWL.js +6 -0
- package/dist/standalone/chunk-4PZEPCO7.js +1 -0
- package/dist/standalone/chunk-4YTSKL4R.js +1 -0
- package/dist/standalone/chunk-4ZCENYC3.js +1 -0
- package/dist/standalone/chunk-57VX76PR.js +1 -0
- package/dist/standalone/chunk-5EW733RQ.js +1 -0
- package/dist/standalone/chunk-5JLIP2HH.js +1 -0
- package/dist/standalone/chunk-6CBLYGXJ.js +1 -0
- package/dist/standalone/chunk-6UPO6ELN.js +1 -0
- package/dist/standalone/chunk-6ZPTNC34.js +19 -0
- package/dist/standalone/chunk-74ASA4WU.js +1 -0
- package/dist/standalone/chunk-76YLMHR3.js +1 -0
- package/dist/standalone/chunk-77JLGJ7V.js +1 -0
- package/dist/standalone/chunk-7PIHTTND.js +1 -0
- package/dist/standalone/chunk-7SROZWKL.js +1 -0
- package/dist/standalone/chunk-AFKLFS74.js +1 -0
- package/dist/standalone/chunk-AOAJGSYZ.js +2 -0
- package/dist/standalone/chunk-AXXNMZQ4.js +1 -0
- package/dist/standalone/chunk-BFCUKERU.js +8 -0
- package/dist/standalone/chunk-BQK2C2Z4.js +1 -0
- package/dist/standalone/chunk-BUIAZFSC.js +1 -0
- package/dist/standalone/chunk-BWEXJENB.js +1 -0
- package/dist/standalone/chunk-CA5ILAW2.js +14 -0
- package/dist/standalone/chunk-CAOUXOL7.js +1 -0
- package/dist/standalone/chunk-CKTKI4IY.js +1 -0
- package/dist/standalone/chunk-CL76PTLM.js +2 -0
- package/dist/standalone/chunk-CN2AINNY.js +1 -0
- package/dist/standalone/chunk-CP4ZFBVW.js +1 -0
- package/dist/standalone/chunk-CSYDKCNQ.js +1 -0
- package/dist/standalone/chunk-CYX3OHJ3.js +1 -0
- package/dist/standalone/chunk-DKSLOJDQ.js +1 -0
- package/dist/standalone/chunk-DPNEFSEC.js +1 -0
- package/dist/standalone/chunk-DUDQV6XJ.js +1 -0
- package/dist/standalone/chunk-DZGOHOOE.js +1 -0
- package/dist/standalone/chunk-EBI7CCQQ.js +1 -0
- package/dist/standalone/chunk-EDHW2EEG.js +1 -0
- package/dist/standalone/chunk-EE63P4VX.js +1 -0
- package/dist/standalone/chunk-ELO3V35K.js +1 -0
- package/dist/standalone/chunk-EVQ6LHI6.js +1 -0
- package/dist/standalone/chunk-EYGF6TQS.js +1 -0
- package/dist/standalone/chunk-F7JOSNAT.js +1 -0
- package/dist/standalone/chunk-FB5DOMZF.js +4 -0
- package/dist/standalone/chunk-FDLSPDIC.js +15 -0
- package/dist/standalone/chunk-FJ6G6FNE.js +1 -0
- package/dist/standalone/chunk-GIQDEWC4.js +1 -0
- package/dist/standalone/chunk-GSQURGCT.js +1 -0
- package/dist/standalone/chunk-H3BH6X3G.js +1 -0
- package/dist/standalone/chunk-H7YVFLA5.js +7 -0
- package/dist/standalone/chunk-HAIBZTXF.js +1 -0
- package/dist/standalone/chunk-HRD2DVIW.js +1 -0
- package/dist/standalone/chunk-IE5S3JMD.js +1 -0
- package/dist/standalone/chunk-INQICZYC.js +1 -0
- package/dist/standalone/chunk-IYWVSMAY.js +1 -0
- package/dist/standalone/chunk-IZXGBTPE.js +1 -0
- package/dist/standalone/chunk-JHXEEPRG.js +1 -0
- package/dist/standalone/chunk-JURAVSE7.js +1 -0
- package/dist/standalone/chunk-JUWOEHDD.js +1 -0
- package/dist/standalone/chunk-JV7KTJPY.js +1 -0
- package/dist/standalone/chunk-KTXD2N6F.js +1 -0
- package/dist/standalone/chunk-KVSQKUWD.js +1 -0
- package/dist/standalone/chunk-L4EZAHCD.js +1 -0
- package/dist/standalone/chunk-M3NNNOD5.js +1 -0
- package/dist/standalone/chunk-MCLM2QJI.js +1 -0
- package/dist/standalone/chunk-METRMDIQ.js +1 -0
- package/dist/standalone/chunk-MPYVZLYP.js +1 -0
- package/dist/standalone/chunk-MSCK3V6U.js +1 -0
- package/dist/standalone/chunk-MVZARXDR.js +1 -0
- package/dist/standalone/chunk-MYFFCV2R.js +1 -0
- package/dist/standalone/chunk-NIX2QSSN.js +1 -0
- package/dist/standalone/chunk-NNLNQKT7.js +59 -0
- package/dist/standalone/chunk-NSOLPNU7.js +1 -0
- package/dist/standalone/chunk-NXXGISFB.js +1 -0
- package/dist/standalone/chunk-O5MAFDY2.js +1 -0
- package/dist/standalone/chunk-OE4KGVJW.js +4 -0
- package/dist/standalone/chunk-OEGE3YDK.js +11 -0
- package/dist/standalone/chunk-OG57FC7W.js +1 -0
- package/dist/standalone/chunk-PQICDSPP.js +1 -0
- package/dist/standalone/chunk-PSPJORP6.js +1 -0
- package/dist/standalone/chunk-PZ4QDWTI.js +1 -0
- package/dist/standalone/chunk-QHQTOESO.js +1 -0
- package/dist/standalone/chunk-QO4SZ4WH.js +1 -0
- package/dist/standalone/chunk-R5ZTCHCE.js +1 -0
- package/dist/standalone/chunk-RCZTUWG3.js +1 -0
- package/dist/standalone/chunk-RJINX3H6.js +1 -0
- package/dist/standalone/chunk-RLRTQOFQ.js +1 -0
- package/dist/standalone/chunk-RPCMQE4A.js +1 -0
- package/dist/standalone/chunk-SJ4CA7QG.js +1 -0
- package/dist/standalone/chunk-SPDZUX4P.js +1 -0
- package/dist/standalone/chunk-SQMJUXBA.js +1 -0
- package/dist/standalone/chunk-SRQP7SLQ.js +1 -0
- package/dist/standalone/chunk-TB5N24CM.js +1 -0
- package/dist/standalone/chunk-TFMQSCGC.js +1 -0
- package/dist/standalone/chunk-TIANWRSD.js +1 -0
- package/dist/standalone/chunk-TNKECJW4.js +1 -0
- package/dist/standalone/chunk-TPAZM36C.js +1 -0
- package/dist/standalone/chunk-TV2M3PHL.js +1 -0
- package/dist/standalone/chunk-TVGQ7K5I.js +1 -0
- package/dist/standalone/chunk-U7LNRJHZ.js +1 -0
- package/dist/standalone/chunk-UANVABQG.js +1 -0
- package/dist/standalone/chunk-V6QPVFDL.js +1 -0
- package/dist/standalone/chunk-VHXQGKA7.js +1 -0
- package/dist/standalone/chunk-VLW547U6.js +1 -0
- package/dist/standalone/chunk-VR3UJA7B.js +1 -0
- package/dist/standalone/chunk-VZCS5GXZ.js +1 -0
- package/dist/standalone/chunk-W2FXNIVC.js +1 -0
- package/dist/standalone/chunk-W2JBKQNU.js +1 -0
- package/dist/standalone/chunk-WUW4ZHRL.js +1 -0
- package/dist/standalone/chunk-WXBTOI6T.js +1 -0
- package/dist/standalone/chunk-WY33QRLH.js +9 -0
- package/dist/standalone/chunk-XJSWM47N.js +1 -0
- package/dist/standalone/chunk-XNBAJ6XA.js +1 -0
- package/dist/standalone/chunk-XQS7KSHL.js +1 -0
- package/dist/standalone/chunk-Y2YQITGI.js +1 -0
- package/dist/standalone/chunk-Z6SECRFO.js +3 -0
- package/dist/standalone/chunk-ZHPDAJBM.js +1 -0
- package/dist/standalone/chunk-ZPGNTTQ3.js +1 -0
- package/dist/standalone/chunk-ZSOLGJFC.js +1 -0
- package/dist/standalone/studio.js +9 -378
- package/dist/styles.css +2 -2
- package/package.json +16 -15
- package/dist/packem_shared/ADMIN_FUNCTIONS-CZJCZ4c7.js +0 -47
- package/dist/packem_shared/ApiDocsPanel-yEz0fiof.js +0 -842
- package/dist/packem_shared/ApiReferencePanel-1vubqG5s.js +0 -229
- package/dist/packem_shared/ApiTab-DdubReQI.js +0 -251
- package/dist/packem_shared/AuditPanel-CE5ofjCc.js +0 -200
- package/dist/packem_shared/CommandPalette-BtgkBzZI.js +0 -373
- package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
- package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
- package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
- package/dist/packem_shared/DataBrowser-DpL8U-Nf.js +0 -4475
- package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
- package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
- package/dist/packem_shared/ExportImportPanel-ChsSUCYZ.js +0 -197
- package/dist/packem_shared/FileBrowser-DsRBnVhZ.js +0 -2932
- package/dist/packem_shared/FunctionRunner-D4cZ6fuA.js +0 -343
- package/dist/packem_shared/FunctionStatsPanel-BVelWgNv.js +0 -375
- package/dist/packem_shared/GlobalDataBrowser-3X9uRfdO.js +0 -289
- package/dist/packem_shared/HealthPanel-CxUVKfvo.js +0 -648
- package/dist/packem_shared/HomePanel-tfqpZxuu.js +0 -1334
- package/dist/packem_shared/InsightsPanel-DNg3K9XN.js +0 -461
- package/dist/packem_shared/LogsPanel-B4LoSRj0.js +0 -827
- package/dist/packem_shared/MailPanel-CcpdyWYs.js +0 -440
- package/dist/packem_shared/MetricsPanel-CxoyWbNb.js +0 -1611
- package/dist/packem_shared/MigrationsPanel-DGwJGWDA.js +0 -239
- package/dist/packem_shared/OpenRpcReferencePanel-vbcYbv3V.js +0 -191
- package/dist/packem_shared/PitrPanel-CKUzyyHi.js +0 -252
- package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
- package/dist/packem_shared/ScheduledJobs-BWNwIN3I.js +0 -262
- package/dist/packem_shared/SchemaViewer-RclXFo9Q.js +0 -2512
- package/dist/packem_shared/SecurityAdvisorPanel-Dqql1Z5O.js +0 -92
- package/dist/packem_shared/SettingsPanel-D5iTY0YE.js +0 -390
- package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
- package/dist/packem_shared/SqlEditorPanel-Dj-In-B3.js +0 -13
- package/dist/packem_shared/Studio-VWvKNOw4.js +0 -33
- package/dist/packem_shared/StudioApp-BhQ6T2pn.js +0 -657
- package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
- package/dist/packem_shared/TableEditor-BY8bTpCl.js +0 -11
- package/dist/packem_shared/advisor-view-CGcfMiPq.js +0 -159
- package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
- package/dist/packem_shared/app.d-BVJFkXyj.d.ts +0 -300
- package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
- package/dist/packem_shared/bar-chart-CzJAgqkp.js +0 -3245
- package/dist/packem_shared/button-BhsN2uZH.js +0 -49
- package/dist/packem_shared/card-DURq3ElK.js +0 -175
- package/dist/packem_shared/cf-links-2cktDedA.js +0 -8
- package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
- package/dist/packem_shared/data-grid-B5CaV3wS.js +0 -183
- package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
- package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
- package/dist/packem_shared/grid-features-CzUfqgsM.js +0 -840
- package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
- package/dist/packem_shared/internal-rXJEAhXS.js +0 -68
- package/dist/packem_shared/label-D8ykjn5J.js +0 -46
- package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
- package/dist/packem_shared/reference-view-B4E49Lip.js +0 -2180
- package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
- package/dist/packem_shared/sparkline-10dG-_f0.js +0 -93
- package/dist/packem_shared/sql-editor-panel-CMdxstu5.js +0 -2562
- package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
- package/dist/packem_shared/studio-D8ry3tJR.js +0 -11043
- package/dist/packem_shared/table-_RzNvy3R.js +0 -246
- package/dist/packem_shared/table-editor-CWx68ZCg.js +0 -407
- package/dist/packem_shared/table-list-sidebar-Bg7uzbvC.js +0 -832
- package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
- package/dist/packem_shared/use-admin-query-BkbdNFNz.js +0 -105
- package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
- package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
- package/dist/packem_shared/virtual-rect-CVMUskSm.js +0 -10
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
import { useLunora } from '@lunora/react';
|
|
2
|
-
import { useState, useEffect } from 'react';
|
|
3
|
-
import { ShardInput } from './ShardInput-gx_DZXXn.js';
|
|
4
|
-
import { B as Badge } from './badge-B2PKA1-5.js';
|
|
5
|
-
import { B as Button } from './button-BhsN2uZH.js';
|
|
6
|
-
import { I as Input } from './input-XH4r1Pt1.js';
|
|
7
|
-
import { L as Label } from './label-D8ykjn5J.js';
|
|
8
|
-
import { T as Textarea } from './textarea-D3gaCU_-.js';
|
|
9
|
-
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
10
|
-
import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-CZJCZ4c7.js';
|
|
11
|
-
import { e as errorMessage, b as formatTimestamp, f as fireAndForget, a as adminRef } from './internal-rXJEAhXS.js';
|
|
12
|
-
import { r as recordShard } from './shard-history-DyebH1R5.js';
|
|
13
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
14
|
-
|
|
15
|
-
const argumentType = (argument) => {
|
|
16
|
-
if (argument.kind === "id") {
|
|
17
|
-
return argument.table === void 0 ? "id" : `id<${argument.table}>`;
|
|
18
|
-
}
|
|
19
|
-
if (argument.kind === "array") {
|
|
20
|
-
return argument.element === void 0 ? "array" : `${argument.element}[]`;
|
|
21
|
-
}
|
|
22
|
-
return argument.kind;
|
|
23
|
-
};
|
|
24
|
-
const formatSignature = (arguments_) => {
|
|
25
|
-
if (arguments_ === void 0 || arguments_.length === 0) {
|
|
26
|
-
return "()";
|
|
27
|
-
}
|
|
28
|
-
return `(${arguments_.map((argument) => `${argument.name}${argument.optional ? "?" : ""}: ${argumentType(argument)}`).join(", ")})`;
|
|
29
|
-
};
|
|
30
|
-
const placeholderValue = (kind) => {
|
|
31
|
-
switch (kind) {
|
|
32
|
-
case "array": {
|
|
33
|
-
return [];
|
|
34
|
-
}
|
|
35
|
-
case "bigint":
|
|
36
|
-
case "number": {
|
|
37
|
-
return 0;
|
|
38
|
-
}
|
|
39
|
-
case "boolean": {
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
case "object":
|
|
43
|
-
case "record": {
|
|
44
|
-
return {};
|
|
45
|
-
}
|
|
46
|
-
// string / id / literal / bytes / date / timestamp / any / unknown
|
|
47
|
-
default: {
|
|
48
|
-
return "";
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const argumentsTemplate = (arguments_) => {
|
|
53
|
-
const template = {};
|
|
54
|
-
for (const argument of arguments_ ?? []) {
|
|
55
|
-
if (!argument.optional) {
|
|
56
|
-
template[argument.name] = placeholderValue(argument.kind);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return JSON.stringify(template, void 0, 2);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
const RUN_AS = adminRef(ADMIN_FUNCTIONS.runAs);
|
|
63
|
-
const MAX_HISTORY = 10;
|
|
64
|
-
const formatResult = (value) => {
|
|
65
|
-
if (value === void 0) {
|
|
66
|
-
return "undefined";
|
|
67
|
-
}
|
|
68
|
-
return JSON.stringify(value, null, 2);
|
|
69
|
-
};
|
|
70
|
-
const FunctionRunner = ({
|
|
71
|
-
functions: functionsProp,
|
|
72
|
-
runAsIdentity = false
|
|
73
|
-
} = {}) => {
|
|
74
|
-
const t = useT();
|
|
75
|
-
const client = useLunora();
|
|
76
|
-
const [discovered, setDiscovered] = useState(null);
|
|
77
|
-
const [discoverError, setDiscoverError] = useState(null);
|
|
78
|
-
const functions = functionsProp ?? discovered ?? [];
|
|
79
|
-
const [selectedPath, setSelectedPath] = useState("");
|
|
80
|
-
const [argsText, setArgsText] = useState("{}");
|
|
81
|
-
const [shardKey, setShardKey] = useState("");
|
|
82
|
-
const [runAsUserId, setRunAsUserId] = useState("");
|
|
83
|
-
const [status, setStatus] = useState("idle");
|
|
84
|
-
const [result, setResult] = useState(void 0);
|
|
85
|
-
const [error, setError] = useState(null);
|
|
86
|
-
const [runs, setRuns] = useState([]);
|
|
87
|
-
useEffect(() => {
|
|
88
|
-
if (functionsProp !== void 0) {
|
|
89
|
-
return void 0;
|
|
90
|
-
}
|
|
91
|
-
let cancelled = false;
|
|
92
|
-
client.listFunctions().then((list) => {
|
|
93
|
-
if (!cancelled) {
|
|
94
|
-
setDiscovered(list);
|
|
95
|
-
}
|
|
96
|
-
return list;
|
|
97
|
-
}).catch((error_) => {
|
|
98
|
-
if (!cancelled) {
|
|
99
|
-
setDiscoverError(errorMessage(error_));
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
return () => {
|
|
103
|
-
cancelled = true;
|
|
104
|
-
};
|
|
105
|
-
}, [client, functionsProp]);
|
|
106
|
-
const effectivePath = selectedPath === "" ? functions[0]?.path ?? "" : selectedPath;
|
|
107
|
-
const selected = functions.find((descriptor) => descriptor.path === effectivePath);
|
|
108
|
-
const run = async () => {
|
|
109
|
-
if (!selected) {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
let parsedArgs;
|
|
113
|
-
try {
|
|
114
|
-
parsedArgs = argsText.trim() === "" ? {} : JSON.parse(argsText);
|
|
115
|
-
} catch (parseError) {
|
|
116
|
-
setStatus("error");
|
|
117
|
-
setResult(void 0);
|
|
118
|
-
setError(t("Invalid JSON args: {message}", {
|
|
119
|
-
message: parseError.message
|
|
120
|
-
}));
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
const reference = {
|
|
124
|
-
__lunoraRef: selected.path
|
|
125
|
-
};
|
|
126
|
-
const options = shardKey.trim() === "" ? {} : {
|
|
127
|
-
shardKey: shardKey.trim()
|
|
128
|
-
};
|
|
129
|
-
const forgedUserId = runAsIdentity ? runAsUserId.trim() : "";
|
|
130
|
-
const record = (runStatus) => {
|
|
131
|
-
setRuns((previous) => {
|
|
132
|
-
const entry = {
|
|
133
|
-
argsText,
|
|
134
|
-
at: Date.now(),
|
|
135
|
-
id: (previous[0]?.id ?? 0) + 1,
|
|
136
|
-
kind: selected.kind,
|
|
137
|
-
path: selected.path,
|
|
138
|
-
shardKey,
|
|
139
|
-
status: runStatus
|
|
140
|
-
};
|
|
141
|
-
return [entry, ...previous].slice(0, MAX_HISTORY);
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
setStatus("running");
|
|
145
|
-
setError(null);
|
|
146
|
-
try {
|
|
147
|
-
let value;
|
|
148
|
-
if (forgedUserId === "") {
|
|
149
|
-
switch (selected.kind) {
|
|
150
|
-
case "action": {
|
|
151
|
-
value = await client.action(reference, parsedArgs, options);
|
|
152
|
-
break;
|
|
153
|
-
}
|
|
154
|
-
case "mutation": {
|
|
155
|
-
value = await client.mutation(reference, parsedArgs, options);
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
default: {
|
|
159
|
-
value = await client.query(reference, parsedArgs, options);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
} else {
|
|
163
|
-
value = await client.query(RUN_AS, {
|
|
164
|
-
args: parsedArgs,
|
|
165
|
-
functionPath: selected.path,
|
|
166
|
-
userId: forgedUserId
|
|
167
|
-
}, options);
|
|
168
|
-
}
|
|
169
|
-
recordShard(shardKey);
|
|
170
|
-
setResult(value);
|
|
171
|
-
setStatus("success");
|
|
172
|
-
record("success");
|
|
173
|
-
} catch (runError) {
|
|
174
|
-
setResult(void 0);
|
|
175
|
-
setError(runError.message);
|
|
176
|
-
setStatus("error");
|
|
177
|
-
record("error");
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
const loadRun = (entry_0) => {
|
|
181
|
-
setSelectedPath(entry_0.path);
|
|
182
|
-
setArgsText(entry_0.argsText);
|
|
183
|
-
setShardKey(entry_0.shardKey);
|
|
184
|
-
};
|
|
185
|
-
const onSelectChange = (event) => {
|
|
186
|
-
setSelectedPath(event.target.value);
|
|
187
|
-
};
|
|
188
|
-
const onArgsChange = (event_0) => {
|
|
189
|
-
setArgsText(event_0.target.value);
|
|
190
|
-
};
|
|
191
|
-
const onRunAsChange = (event_1) => {
|
|
192
|
-
setRunAsUserId(event_1.target.value);
|
|
193
|
-
};
|
|
194
|
-
const runOnce = () => {
|
|
195
|
-
fireAndForget(run());
|
|
196
|
-
};
|
|
197
|
-
const prefillArgs = () => {
|
|
198
|
-
setArgsText(argumentsTemplate(selected?.args));
|
|
199
|
-
};
|
|
200
|
-
return /* @__PURE__ */ jsxDEV("div", {
|
|
201
|
-
className: "flex flex-col gap-4",
|
|
202
|
-
"data-testid": "lunora-function-runner",
|
|
203
|
-
children: [discoverError !== null && /* @__PURE__ */ jsxDEV("p", {
|
|
204
|
-
className: "text-sm text-destructive",
|
|
205
|
-
"data-testid": "function-discover-error",
|
|
206
|
-
role: "alert",
|
|
207
|
-
children: discoverError
|
|
208
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("div", {
|
|
209
|
-
className: "flex flex-col gap-4 rounded-xl border border-border bg-card p-4",
|
|
210
|
-
children: [/* @__PURE__ */ jsxDEV("div", {
|
|
211
|
-
className: "flex flex-col gap-1.5",
|
|
212
|
-
children: [/* @__PURE__ */ jsxDEV(Label, {
|
|
213
|
-
htmlFor: "function-select",
|
|
214
|
-
children: t("Function")
|
|
215
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("select", {
|
|
216
|
-
"aria-label": t("Function"),
|
|
217
|
-
className: "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50",
|
|
218
|
-
"data-testid": "function-select",
|
|
219
|
-
id: "function-select",
|
|
220
|
-
onChange: onSelectChange,
|
|
221
|
-
value: effectivePath,
|
|
222
|
-
children: functions.map((descriptor_0) => /* @__PURE__ */ jsxDEV("option", {
|
|
223
|
-
value: descriptor_0.path,
|
|
224
|
-
children: [descriptor_0.path, " (", descriptor_0.kind, ")"]
|
|
225
|
-
}, descriptor_0.path, true))
|
|
226
|
-
}, void 0, false), selected !== void 0 && /* @__PURE__ */ jsxDEV("p", {
|
|
227
|
-
className: "text-xs text-muted-foreground",
|
|
228
|
-
children: [/* @__PURE__ */ jsxDEV("span", {
|
|
229
|
-
className: "mr-1.5 font-medium",
|
|
230
|
-
children: t("Signature")
|
|
231
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("code", {
|
|
232
|
-
className: "font-mono",
|
|
233
|
-
"data-testid": "function-signature",
|
|
234
|
-
children: formatSignature(selected.args)
|
|
235
|
-
}, void 0, false)]
|
|
236
|
-
}, void 0, true)]
|
|
237
|
-
}, void 0, true), /* @__PURE__ */ jsxDEV("div", {
|
|
238
|
-
className: "flex flex-col gap-1.5",
|
|
239
|
-
children: [/* @__PURE__ */ jsxDEV("div", {
|
|
240
|
-
className: "flex items-center justify-between gap-2",
|
|
241
|
-
children: [/* @__PURE__ */ jsxDEV(Label, {
|
|
242
|
-
htmlFor: "args-input",
|
|
243
|
-
children: t("Arguments")
|
|
244
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(Button, {
|
|
245
|
-
"data-testid": "prefill-button",
|
|
246
|
-
disabled: selected === void 0,
|
|
247
|
-
onClick: prefillArgs,
|
|
248
|
-
size: "xs",
|
|
249
|
-
type: "button",
|
|
250
|
-
variant: "ghost",
|
|
251
|
-
children: t("Prefill")
|
|
252
|
-
}, void 0, false)]
|
|
253
|
-
}, void 0, true), /* @__PURE__ */ jsxDEV(Textarea, {
|
|
254
|
-
"aria-label": t("Arguments"),
|
|
255
|
-
className: "font-mono text-xs",
|
|
256
|
-
"data-testid": "args-input",
|
|
257
|
-
id: "args-input",
|
|
258
|
-
onChange: onArgsChange,
|
|
259
|
-
value: argsText
|
|
260
|
-
}, void 0, false)]
|
|
261
|
-
}, void 0, true), /* @__PURE__ */ jsxDEV(ShardInput, {
|
|
262
|
-
onChange: setShardKey,
|
|
263
|
-
testId: "shard-input",
|
|
264
|
-
value: shardKey
|
|
265
|
-
}, void 0, false), runAsIdentity && /* @__PURE__ */ jsxDEV("div", {
|
|
266
|
-
className: "flex flex-col gap-1.5",
|
|
267
|
-
"data-testid": "run-as-field",
|
|
268
|
-
children: [/* @__PURE__ */ jsxDEV(Label, {
|
|
269
|
-
htmlFor: "run-as-input",
|
|
270
|
-
children: t("Run as identity (userId)")
|
|
271
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(Input, {
|
|
272
|
-
"aria-label": t("Run as identity (userId)"),
|
|
273
|
-
className: "font-mono text-xs",
|
|
274
|
-
"data-testid": "run-as-input",
|
|
275
|
-
id: "run-as-input",
|
|
276
|
-
onChange: onRunAsChange,
|
|
277
|
-
placeholder: t("Leave empty to run as admin"),
|
|
278
|
-
value: runAsUserId
|
|
279
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("p", {
|
|
280
|
-
className: "text-[11px] text-muted-foreground",
|
|
281
|
-
children: t("Dev only: runs the function as this user so you can test auth and RLS. Forged over the admin gate.")
|
|
282
|
-
}, void 0, false)]
|
|
283
|
-
}, void 0, true), /* @__PURE__ */ jsxDEV("div", {
|
|
284
|
-
className: "flex flex-wrap items-center gap-2",
|
|
285
|
-
children: [/* @__PURE__ */ jsxDEV(Button, {
|
|
286
|
-
"data-testid": "run-button",
|
|
287
|
-
disabled: status === "running" || selected === void 0,
|
|
288
|
-
onClick: runOnce,
|
|
289
|
-
type: "button",
|
|
290
|
-
children: t("Run")
|
|
291
|
-
}, void 0, false), selected !== void 0 && /* @__PURE__ */ jsxDEV(Badge, {
|
|
292
|
-
variant: "outline",
|
|
293
|
-
children: selected.kind
|
|
294
|
-
}, void 0, false), runAsIdentity && runAsUserId.trim() !== "" && /* @__PURE__ */ jsxDEV(Badge, {
|
|
295
|
-
"data-testid": "run-as-badge",
|
|
296
|
-
variant: "secondary",
|
|
297
|
-
children: t("as {userId}", {
|
|
298
|
-
userId: runAsUserId.trim()
|
|
299
|
-
})
|
|
300
|
-
}, void 0, false)]
|
|
301
|
-
}, void 0, true)]
|
|
302
|
-
}, void 0, true), status === "error" && error !== null && /* @__PURE__ */ jsxDEV("pre", {
|
|
303
|
-
className: "overflow-auto rounded-md border border-border bg-muted/50 p-3 font-mono text-xs text-destructive",
|
|
304
|
-
"data-testid": "error",
|
|
305
|
-
role: "alert",
|
|
306
|
-
children: error
|
|
307
|
-
}, void 0, false), status === "success" && /* @__PURE__ */ jsxDEV("pre", {
|
|
308
|
-
className: "overflow-auto rounded-md border border-border bg-muted/50 p-3 font-mono text-xs",
|
|
309
|
-
"data-testid": "result",
|
|
310
|
-
children: formatResult(result)
|
|
311
|
-
}, void 0, false), runs.length > 0 && /* @__PURE__ */ jsxDEV("ul", {
|
|
312
|
-
className: "flex flex-col overflow-hidden rounded-xl border border-border",
|
|
313
|
-
"data-testid": "fn-history",
|
|
314
|
-
children: runs.map((entry_1, index) => /* @__PURE__ */ jsxDEV("li", {
|
|
315
|
-
className: "flex flex-wrap items-center gap-2 border-b border-border px-3 py-2 text-sm last:border-b-0",
|
|
316
|
-
"data-testid": "fn-history-row",
|
|
317
|
-
children: [/* @__PURE__ */ jsxDEV("span", {
|
|
318
|
-
className: entry_1.status === "success" ? "text-success" : "text-destructive",
|
|
319
|
-
"data-testid": `fn-history-status-${index.toString()}`,
|
|
320
|
-
children: entry_1.status === "success" ? "✓" : "✗"
|
|
321
|
-
}, void 0, false), " ", /* @__PURE__ */ jsxDEV("span", {
|
|
322
|
-
className: "font-mono text-xs",
|
|
323
|
-
children: [entry_1.path, " (", entry_1.kind, ")"]
|
|
324
|
-
}, void 0, true), " ", /* @__PURE__ */ jsxDEV("time", {
|
|
325
|
-
className: "text-xs text-muted-foreground",
|
|
326
|
-
children: formatTimestamp(entry_1.at)
|
|
327
|
-
}, void 0, false), " ", /* @__PURE__ */ jsxDEV(Button, {
|
|
328
|
-
className: "ml-auto",
|
|
329
|
-
"data-testid": `fn-history-load-${index.toString()}`,
|
|
330
|
-
onClick: () => {
|
|
331
|
-
loadRun(entry_1);
|
|
332
|
-
},
|
|
333
|
-
size: "xs",
|
|
334
|
-
type: "button",
|
|
335
|
-
variant: "ghost",
|
|
336
|
-
children: t("Load")
|
|
337
|
-
}, void 0, false)]
|
|
338
|
-
}, entry_1.id, true))
|
|
339
|
-
}, void 0, false)]
|
|
340
|
-
}, void 0, true);
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
export { FunctionRunner };
|