@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.
- 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,373 +0,0 @@
|
|
|
1
|
-
import { c } from 'react/compiler-runtime';
|
|
2
|
-
import { Dialog } from '@base-ui/react/dialog';
|
|
3
|
-
import { useNavigate } from '@tanstack/react-router';
|
|
4
|
-
import { useState, useRef, useEffect } from 'react';
|
|
5
|
-
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
6
|
-
import { f as fireAndForget } from './internal-rXJEAhXS.js';
|
|
7
|
-
import { c as cn } from './utils-B05Dmz_H.js';
|
|
8
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
9
|
-
|
|
10
|
-
const OPEN_EVENT = "lunora:command-palette";
|
|
11
|
-
const openCommandPalette = () => {
|
|
12
|
-
if ("window" in globalThis) {
|
|
13
|
-
globalThis.dispatchEvent(new Event(OPEN_EVENT));
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
const CommandRow = (t0) => {
|
|
17
|
-
const $ = c(18);
|
|
18
|
-
const {
|
|
19
|
-
active,
|
|
20
|
-
index,
|
|
21
|
-
item,
|
|
22
|
-
onActivate,
|
|
23
|
-
onSelect
|
|
24
|
-
} = t0;
|
|
25
|
-
let t1;
|
|
26
|
-
if ($[0] !== item || $[1] !== onSelect) {
|
|
27
|
-
t1 = () => {
|
|
28
|
-
onSelect(item);
|
|
29
|
-
};
|
|
30
|
-
$[0] = item;
|
|
31
|
-
$[1] = onSelect;
|
|
32
|
-
$[2] = t1;
|
|
33
|
-
} else {
|
|
34
|
-
t1 = $[2];
|
|
35
|
-
}
|
|
36
|
-
const onClick = t1;
|
|
37
|
-
let t2;
|
|
38
|
-
if ($[3] !== index || $[4] !== onActivate) {
|
|
39
|
-
t2 = () => {
|
|
40
|
-
onActivate(index);
|
|
41
|
-
};
|
|
42
|
-
$[3] = index;
|
|
43
|
-
$[4] = onActivate;
|
|
44
|
-
$[5] = t2;
|
|
45
|
-
} else {
|
|
46
|
-
t2 = $[5];
|
|
47
|
-
}
|
|
48
|
-
const onMouseEnter = t2;
|
|
49
|
-
const t3 = active ? "bg-accent text-accent-foreground" : "text-foreground";
|
|
50
|
-
let t4;
|
|
51
|
-
if ($[6] !== t3) {
|
|
52
|
-
t4 = cn("flex w-full items-center justify-between gap-3 rounded-md px-3 py-2 text-start text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground", t3);
|
|
53
|
-
$[6] = t3;
|
|
54
|
-
$[7] = t4;
|
|
55
|
-
} else {
|
|
56
|
-
t4 = $[7];
|
|
57
|
-
}
|
|
58
|
-
let t5;
|
|
59
|
-
if ($[8] !== item.label) {
|
|
60
|
-
t5 = /* @__PURE__ */ jsxDEV("span", {
|
|
61
|
-
children: item.label
|
|
62
|
-
}, void 0, false);
|
|
63
|
-
$[8] = item.label;
|
|
64
|
-
$[9] = t5;
|
|
65
|
-
} else {
|
|
66
|
-
t5 = $[9];
|
|
67
|
-
}
|
|
68
|
-
let t6;
|
|
69
|
-
if ($[10] !== item.group) {
|
|
70
|
-
t6 = /* @__PURE__ */ jsxDEV("span", {
|
|
71
|
-
className: "text-xs text-muted-foreground",
|
|
72
|
-
children: item.group
|
|
73
|
-
}, void 0, false);
|
|
74
|
-
$[10] = item.group;
|
|
75
|
-
$[11] = t6;
|
|
76
|
-
} else {
|
|
77
|
-
t6 = $[11];
|
|
78
|
-
}
|
|
79
|
-
let t7;
|
|
80
|
-
if ($[12] !== onClick || $[13] !== onMouseEnter || $[14] !== t4 || $[15] !== t5 || $[16] !== t6) {
|
|
81
|
-
t7 = /* @__PURE__ */ jsxDEV("li", {
|
|
82
|
-
children: /* @__PURE__ */ jsxDEV("button", {
|
|
83
|
-
className: t4,
|
|
84
|
-
onClick,
|
|
85
|
-
onMouseEnter,
|
|
86
|
-
type: "button",
|
|
87
|
-
children: [t5, t6]
|
|
88
|
-
}, void 0, true)
|
|
89
|
-
}, void 0, false);
|
|
90
|
-
$[12] = onClick;
|
|
91
|
-
$[13] = onMouseEnter;
|
|
92
|
-
$[14] = t4;
|
|
93
|
-
$[15] = t5;
|
|
94
|
-
$[16] = t6;
|
|
95
|
-
$[17] = t7;
|
|
96
|
-
} else {
|
|
97
|
-
t7 = $[17];
|
|
98
|
-
}
|
|
99
|
-
return t7;
|
|
100
|
-
};
|
|
101
|
-
const CommandPalette = (t0) => {
|
|
102
|
-
const $ = c(39);
|
|
103
|
-
const {
|
|
104
|
-
items
|
|
105
|
-
} = t0;
|
|
106
|
-
const t = useT();
|
|
107
|
-
const navigate = useNavigate();
|
|
108
|
-
const [open, setOpen] = useState(false);
|
|
109
|
-
const [query, setQuery] = useState("");
|
|
110
|
-
const [activeIndex, setActiveIndex] = useState(0);
|
|
111
|
-
const inputRef = useRef(null);
|
|
112
|
-
let t1;
|
|
113
|
-
let t2;
|
|
114
|
-
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
115
|
-
t1 = () => {
|
|
116
|
-
const onKeyDown = (event) => {
|
|
117
|
-
if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "k") {
|
|
118
|
-
event.preventDefault();
|
|
119
|
-
setOpen(true);
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
const onOpen = () => {
|
|
123
|
-
setOpen(true);
|
|
124
|
-
};
|
|
125
|
-
globalThis.addEventListener("keydown", onKeyDown);
|
|
126
|
-
globalThis.addEventListener(OPEN_EVENT, onOpen);
|
|
127
|
-
return () => {
|
|
128
|
-
globalThis.removeEventListener("keydown", onKeyDown);
|
|
129
|
-
globalThis.removeEventListener(OPEN_EVENT, onOpen);
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
t2 = [];
|
|
133
|
-
$[0] = t1;
|
|
134
|
-
$[1] = t2;
|
|
135
|
-
} else {
|
|
136
|
-
t1 = $[0];
|
|
137
|
-
t2 = $[1];
|
|
138
|
-
}
|
|
139
|
-
useEffect(t1, t2);
|
|
140
|
-
let t3;
|
|
141
|
-
if ($[2] !== items || $[3] !== query) {
|
|
142
|
-
bb0: {
|
|
143
|
-
const needle = query.trim().toLowerCase();
|
|
144
|
-
if (needle === "") {
|
|
145
|
-
t3 = items;
|
|
146
|
-
break bb0;
|
|
147
|
-
}
|
|
148
|
-
t3 = items.filter((item) => item.label.toLowerCase().includes(needle) || item.group.toLowerCase().includes(needle));
|
|
149
|
-
}
|
|
150
|
-
$[2] = items;
|
|
151
|
-
$[3] = query;
|
|
152
|
-
$[4] = t3;
|
|
153
|
-
} else {
|
|
154
|
-
t3 = $[4];
|
|
155
|
-
}
|
|
156
|
-
const filtered = t3;
|
|
157
|
-
let t4;
|
|
158
|
-
if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
159
|
-
t4 = (next) => {
|
|
160
|
-
setOpen(next);
|
|
161
|
-
if (!next) {
|
|
162
|
-
setQuery("");
|
|
163
|
-
setActiveIndex(0);
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
$[5] = t4;
|
|
167
|
-
} else {
|
|
168
|
-
t4 = $[5];
|
|
169
|
-
}
|
|
170
|
-
const onOpenChange = t4;
|
|
171
|
-
let t5;
|
|
172
|
-
if ($[6] !== navigate) {
|
|
173
|
-
t5 = (item_0) => {
|
|
174
|
-
onOpenChange(false);
|
|
175
|
-
fireAndForget(navigate({
|
|
176
|
-
to: item_0.to
|
|
177
|
-
}));
|
|
178
|
-
};
|
|
179
|
-
$[6] = navigate;
|
|
180
|
-
$[7] = t5;
|
|
181
|
-
} else {
|
|
182
|
-
t5 = $[7];
|
|
183
|
-
}
|
|
184
|
-
const select = t5;
|
|
185
|
-
let t6;
|
|
186
|
-
if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
187
|
-
t6 = (event_0) => {
|
|
188
|
-
setQuery(event_0.target.value);
|
|
189
|
-
setActiveIndex(0);
|
|
190
|
-
};
|
|
191
|
-
$[8] = t6;
|
|
192
|
-
} else {
|
|
193
|
-
t6 = $[8];
|
|
194
|
-
}
|
|
195
|
-
const onInputChange = t6;
|
|
196
|
-
let t7;
|
|
197
|
-
if ($[9] !== activeIndex || $[10] !== filtered || $[11] !== select) {
|
|
198
|
-
t7 = (event_1) => {
|
|
199
|
-
bb33: switch (event_1.key) {
|
|
200
|
-
case "ArrowDown": {
|
|
201
|
-
event_1.preventDefault();
|
|
202
|
-
setActiveIndex((index_0) => filtered.length === 0 ? 0 : (index_0 + 1) % filtered.length);
|
|
203
|
-
break bb33;
|
|
204
|
-
}
|
|
205
|
-
case "ArrowUp": {
|
|
206
|
-
event_1.preventDefault();
|
|
207
|
-
setActiveIndex((index) => filtered.length === 0 ? 0 : (index - 1 + filtered.length) % filtered.length);
|
|
208
|
-
break bb33;
|
|
209
|
-
}
|
|
210
|
-
case "Enter": {
|
|
211
|
-
event_1.preventDefault();
|
|
212
|
-
const item_1 = filtered[activeIndex];
|
|
213
|
-
if (item_1 !== void 0) {
|
|
214
|
-
select(item_1);
|
|
215
|
-
}
|
|
216
|
-
break bb33;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
$[9] = activeIndex;
|
|
221
|
-
$[10] = filtered;
|
|
222
|
-
$[11] = select;
|
|
223
|
-
$[12] = t7;
|
|
224
|
-
} else {
|
|
225
|
-
t7 = $[12];
|
|
226
|
-
}
|
|
227
|
-
const onInputKeyDown = t7;
|
|
228
|
-
let t8;
|
|
229
|
-
if ($[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
230
|
-
t8 = /* @__PURE__ */ jsxDEV(Dialog.Backdrop, {
|
|
231
|
-
className: "fixed inset-0 z-50 bg-black/40 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"
|
|
232
|
-
}, void 0, false);
|
|
233
|
-
$[13] = t8;
|
|
234
|
-
} else {
|
|
235
|
-
t8 = $[13];
|
|
236
|
-
}
|
|
237
|
-
let t9;
|
|
238
|
-
if ($[14] !== t) {
|
|
239
|
-
t9 = t("Command palette");
|
|
240
|
-
$[14] = t;
|
|
241
|
-
$[15] = t9;
|
|
242
|
-
} else {
|
|
243
|
-
t9 = $[15];
|
|
244
|
-
}
|
|
245
|
-
let t10;
|
|
246
|
-
if ($[16] !== t9) {
|
|
247
|
-
t10 = /* @__PURE__ */ jsxDEV(Dialog.Title, {
|
|
248
|
-
className: "sr-only",
|
|
249
|
-
children: t9
|
|
250
|
-
}, void 0, false);
|
|
251
|
-
$[16] = t9;
|
|
252
|
-
$[17] = t10;
|
|
253
|
-
} else {
|
|
254
|
-
t10 = $[17];
|
|
255
|
-
}
|
|
256
|
-
let t11;
|
|
257
|
-
if ($[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
258
|
-
t11 = /* @__PURE__ */ jsxDEV("svg", {
|
|
259
|
-
"aria-hidden": "true",
|
|
260
|
-
className: "size-4 text-muted-foreground",
|
|
261
|
-
fill: "none",
|
|
262
|
-
stroke: "currentColor",
|
|
263
|
-
strokeWidth: 1.8,
|
|
264
|
-
viewBox: "0 0 24 24",
|
|
265
|
-
children: [/* @__PURE__ */ jsxDEV("circle", {
|
|
266
|
-
cx: "11",
|
|
267
|
-
cy: "11",
|
|
268
|
-
r: "7"
|
|
269
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("path", {
|
|
270
|
-
d: "m21 21-4.3-4.3",
|
|
271
|
-
strokeLinecap: "round"
|
|
272
|
-
}, void 0, false)]
|
|
273
|
-
}, void 0, true);
|
|
274
|
-
$[18] = t11;
|
|
275
|
-
} else {
|
|
276
|
-
t11 = $[18];
|
|
277
|
-
}
|
|
278
|
-
let t12;
|
|
279
|
-
if ($[19] !== t) {
|
|
280
|
-
t12 = t("Search…");
|
|
281
|
-
$[19] = t;
|
|
282
|
-
$[20] = t12;
|
|
283
|
-
} else {
|
|
284
|
-
t12 = $[20];
|
|
285
|
-
}
|
|
286
|
-
let t13;
|
|
287
|
-
if ($[21] !== onInputKeyDown || $[22] !== query || $[23] !== t12) {
|
|
288
|
-
t13 = /* @__PURE__ */ jsxDEV("div", {
|
|
289
|
-
className: "flex items-center gap-2 border-b border-border px-3",
|
|
290
|
-
children: [t11, /* @__PURE__ */ jsxDEV("input", {
|
|
291
|
-
className: "h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground",
|
|
292
|
-
"data-testid": "dash-command-input",
|
|
293
|
-
onChange: onInputChange,
|
|
294
|
-
onKeyDown: onInputKeyDown,
|
|
295
|
-
placeholder: t12,
|
|
296
|
-
ref: inputRef,
|
|
297
|
-
type: "text",
|
|
298
|
-
value: query
|
|
299
|
-
}, void 0, false)]
|
|
300
|
-
}, void 0, true);
|
|
301
|
-
$[21] = onInputKeyDown;
|
|
302
|
-
$[22] = query;
|
|
303
|
-
$[23] = t12;
|
|
304
|
-
$[24] = t13;
|
|
305
|
-
} else {
|
|
306
|
-
t13 = $[24];
|
|
307
|
-
}
|
|
308
|
-
let t14;
|
|
309
|
-
if ($[25] !== activeIndex || $[26] !== filtered || $[27] !== select || $[28] !== t) {
|
|
310
|
-
t14 = filtered.length === 0 ? /* @__PURE__ */ jsxDEV("li", {
|
|
311
|
-
className: "px-3 py-6 text-center text-sm text-muted-foreground",
|
|
312
|
-
children: t("No results.")
|
|
313
|
-
}, void 0, false) : filtered.map((item_2, index_1) => /* @__PURE__ */ jsxDEV(CommandRow, {
|
|
314
|
-
active: index_1 === activeIndex,
|
|
315
|
-
index: index_1,
|
|
316
|
-
item: item_2,
|
|
317
|
-
onActivate: setActiveIndex,
|
|
318
|
-
onSelect: select
|
|
319
|
-
}, item_2.to, false));
|
|
320
|
-
$[25] = activeIndex;
|
|
321
|
-
$[26] = filtered;
|
|
322
|
-
$[27] = select;
|
|
323
|
-
$[28] = t;
|
|
324
|
-
$[29] = t14;
|
|
325
|
-
} else {
|
|
326
|
-
t14 = $[29];
|
|
327
|
-
}
|
|
328
|
-
let t15;
|
|
329
|
-
if ($[30] !== t14) {
|
|
330
|
-
t15 = /* @__PURE__ */ jsxDEV("ul", {
|
|
331
|
-
className: "max-h-80 overflow-y-auto p-1.5",
|
|
332
|
-
"data-testid": "dash-command-list",
|
|
333
|
-
children: t14
|
|
334
|
-
}, void 0, false);
|
|
335
|
-
$[30] = t14;
|
|
336
|
-
$[31] = t15;
|
|
337
|
-
} else {
|
|
338
|
-
t15 = $[31];
|
|
339
|
-
}
|
|
340
|
-
let t16;
|
|
341
|
-
if ($[32] !== t10 || $[33] !== t13 || $[34] !== t15) {
|
|
342
|
-
t16 = /* @__PURE__ */ jsxDEV(Dialog.Portal, {
|
|
343
|
-
children: [t8, /* @__PURE__ */ jsxDEV(Dialog.Popup, {
|
|
344
|
-
className: "fixed start-1/2 top-24 z-50 w-[36rem] max-w-[90vw] -translate-x-1/2 overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-lg outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
345
|
-
"data-testid": "dash-command-palette",
|
|
346
|
-
initialFocus: inputRef,
|
|
347
|
-
children: [t10, t13, t15]
|
|
348
|
-
}, void 0, true)]
|
|
349
|
-
}, void 0, true);
|
|
350
|
-
$[32] = t10;
|
|
351
|
-
$[33] = t13;
|
|
352
|
-
$[34] = t15;
|
|
353
|
-
$[35] = t16;
|
|
354
|
-
} else {
|
|
355
|
-
t16 = $[35];
|
|
356
|
-
}
|
|
357
|
-
let t17;
|
|
358
|
-
if ($[36] !== open || $[37] !== t16) {
|
|
359
|
-
t17 = /* @__PURE__ */ jsxDEV(Dialog.Root, {
|
|
360
|
-
onOpenChange,
|
|
361
|
-
open,
|
|
362
|
-
children: t16
|
|
363
|
-
}, void 0, false);
|
|
364
|
-
$[36] = open;
|
|
365
|
-
$[37] = t16;
|
|
366
|
-
$[38] = t17;
|
|
367
|
-
} else {
|
|
368
|
-
t17 = $[38];
|
|
369
|
-
}
|
|
370
|
-
return t17;
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
export { CommandPalette, openCommandPalette };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
3
|
-
import { B as Button } from './button-BhsN2uZH.js';
|
|
4
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
5
|
-
|
|
6
|
-
const ConfirmButton = ({
|
|
7
|
-
children,
|
|
8
|
-
confirmLabel,
|
|
9
|
-
disabled = false,
|
|
10
|
-
onConfirm,
|
|
11
|
-
testId
|
|
12
|
-
}) => {
|
|
13
|
-
const t = useT();
|
|
14
|
-
const [confirming, setConfirming] = useState(false);
|
|
15
|
-
const startConfirm = () => {
|
|
16
|
-
setConfirming(true);
|
|
17
|
-
};
|
|
18
|
-
const cancelConfirm = () => {
|
|
19
|
-
setConfirming(false);
|
|
20
|
-
};
|
|
21
|
-
const acceptConfirm = () => {
|
|
22
|
-
setConfirming(false);
|
|
23
|
-
onConfirm();
|
|
24
|
-
};
|
|
25
|
-
if (!confirming) {
|
|
26
|
-
return /* @__PURE__ */ jsxDEV(Button, {
|
|
27
|
-
"data-testid": testId,
|
|
28
|
-
disabled,
|
|
29
|
-
onClick: startConfirm,
|
|
30
|
-
size: "sm",
|
|
31
|
-
type: "button",
|
|
32
|
-
variant: "outline",
|
|
33
|
-
children
|
|
34
|
-
}, void 0, false);
|
|
35
|
-
}
|
|
36
|
-
return /* @__PURE__ */ jsxDEV("span", {
|
|
37
|
-
className: "inline-flex items-center gap-1",
|
|
38
|
-
"data-testid": `${testId}-prompt`,
|
|
39
|
-
role: "group",
|
|
40
|
-
children: [/* @__PURE__ */ jsxDEV(Button, {
|
|
41
|
-
"data-testid": `${testId}-confirm`,
|
|
42
|
-
disabled,
|
|
43
|
-
onClick: acceptConfirm,
|
|
44
|
-
size: "sm",
|
|
45
|
-
type: "button",
|
|
46
|
-
variant: "destructive",
|
|
47
|
-
children: confirmLabel ?? t("Confirm")
|
|
48
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(Button, {
|
|
49
|
-
"data-testid": `${testId}-cancel`,
|
|
50
|
-
onClick: cancelConfirm,
|
|
51
|
-
size: "sm",
|
|
52
|
-
type: "button",
|
|
53
|
-
variant: "ghost",
|
|
54
|
-
children: t("Cancel")
|
|
55
|
-
}, void 0, false)]
|
|
56
|
-
}, void 0, true);
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export { ConfirmButton };
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { c } from 'react/compiler-runtime';
|
|
2
|
-
import { useConnectionStatus } from '@lunora/react';
|
|
3
|
-
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
4
|
-
import { c as cn } from './utils-B05Dmz_H.js';
|
|
5
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
6
|
-
|
|
7
|
-
const STATUS_DOT = {
|
|
8
|
-
connected: "bg-success",
|
|
9
|
-
connecting: "bg-warning",
|
|
10
|
-
idle: "bg-muted-foreground",
|
|
11
|
-
offline: "bg-destructive"
|
|
12
|
-
};
|
|
13
|
-
const ConnectionBadge = () => {
|
|
14
|
-
const $ = c(16);
|
|
15
|
-
const t = useT();
|
|
16
|
-
const status = useConnectionStatus();
|
|
17
|
-
let text;
|
|
18
|
-
bb0: switch (status) {
|
|
19
|
-
case "connected": {
|
|
20
|
-
let t02;
|
|
21
|
-
if ($[0] !== t) {
|
|
22
|
-
t02 = t("Connected");
|
|
23
|
-
$[0] = t;
|
|
24
|
-
$[1] = t02;
|
|
25
|
-
} else {
|
|
26
|
-
t02 = $[1];
|
|
27
|
-
}
|
|
28
|
-
text = t02;
|
|
29
|
-
break bb0;
|
|
30
|
-
}
|
|
31
|
-
case "connecting": {
|
|
32
|
-
let t02;
|
|
33
|
-
if ($[2] !== t) {
|
|
34
|
-
t02 = t("Connecting…");
|
|
35
|
-
$[2] = t;
|
|
36
|
-
$[3] = t02;
|
|
37
|
-
} else {
|
|
38
|
-
t02 = $[3];
|
|
39
|
-
}
|
|
40
|
-
text = t02;
|
|
41
|
-
break bb0;
|
|
42
|
-
}
|
|
43
|
-
case "idle": {
|
|
44
|
-
let t02;
|
|
45
|
-
if ($[4] !== t) {
|
|
46
|
-
t02 = t("Idle");
|
|
47
|
-
$[4] = t;
|
|
48
|
-
$[5] = t02;
|
|
49
|
-
} else {
|
|
50
|
-
t02 = $[5];
|
|
51
|
-
}
|
|
52
|
-
text = t02;
|
|
53
|
-
break bb0;
|
|
54
|
-
}
|
|
55
|
-
case "offline": {
|
|
56
|
-
let t02;
|
|
57
|
-
if ($[6] !== t) {
|
|
58
|
-
t02 = t("Offline");
|
|
59
|
-
$[6] = t;
|
|
60
|
-
$[7] = t02;
|
|
61
|
-
} else {
|
|
62
|
-
t02 = $[7];
|
|
63
|
-
}
|
|
64
|
-
text = t02;
|
|
65
|
-
break bb0;
|
|
66
|
-
}
|
|
67
|
-
default: {
|
|
68
|
-
text = status;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
const t0 = STATUS_DOT[status];
|
|
72
|
-
let t1;
|
|
73
|
-
if ($[8] !== t0) {
|
|
74
|
-
t1 = cn("size-2 rounded-full", t0);
|
|
75
|
-
$[8] = t0;
|
|
76
|
-
$[9] = t1;
|
|
77
|
-
} else {
|
|
78
|
-
t1 = $[9];
|
|
79
|
-
}
|
|
80
|
-
let t2;
|
|
81
|
-
if ($[10] !== t1) {
|
|
82
|
-
t2 = /* @__PURE__ */ jsxDEV("span", {
|
|
83
|
-
"aria-hidden": "true",
|
|
84
|
-
className: t1
|
|
85
|
-
}, void 0, false);
|
|
86
|
-
$[10] = t1;
|
|
87
|
-
$[11] = t2;
|
|
88
|
-
} else {
|
|
89
|
-
t2 = $[11];
|
|
90
|
-
}
|
|
91
|
-
let t3;
|
|
92
|
-
if ($[12] !== status || $[13] !== t2 || $[14] !== text) {
|
|
93
|
-
t3 = /* @__PURE__ */ jsxDEV("span", {
|
|
94
|
-
"aria-live": "polite",
|
|
95
|
-
className: "inline-flex items-center gap-1.5 text-xs text-muted-foreground",
|
|
96
|
-
"data-status": status,
|
|
97
|
-
"data-testid": "dash-connection",
|
|
98
|
-
role: "status",
|
|
99
|
-
children: [t2, text]
|
|
100
|
-
}, void 0, true);
|
|
101
|
-
$[12] = status;
|
|
102
|
-
$[13] = t2;
|
|
103
|
-
$[14] = text;
|
|
104
|
-
$[15] = t3;
|
|
105
|
-
} else {
|
|
106
|
-
t3 = $[15];
|
|
107
|
-
}
|
|
108
|
-
return t3;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
export { ConnectionBadge as default };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { c } from 'react/compiler-runtime';
|
|
2
|
-
import { useRef, useEffect } from 'react';
|
|
3
|
-
|
|
4
|
-
const DEFAULT_AUTO_REFRESH_MS = 5e3;
|
|
5
|
-
const useAutoRefresh = (onTick, enabled, t0) => {
|
|
6
|
-
const $ = c(6);
|
|
7
|
-
const intervalMs = t0 === void 0 ? DEFAULT_AUTO_REFRESH_MS : t0;
|
|
8
|
-
const tickRef = useRef(onTick);
|
|
9
|
-
let t1;
|
|
10
|
-
if ($[0] !== onTick) {
|
|
11
|
-
t1 = () => {
|
|
12
|
-
tickRef.current = onTick;
|
|
13
|
-
};
|
|
14
|
-
$[0] = onTick;
|
|
15
|
-
$[1] = t1;
|
|
16
|
-
} else {
|
|
17
|
-
t1 = $[1];
|
|
18
|
-
}
|
|
19
|
-
useEffect(t1);
|
|
20
|
-
let t2;
|
|
21
|
-
let t3;
|
|
22
|
-
if ($[2] !== enabled || $[3] !== intervalMs) {
|
|
23
|
-
t2 = () => {
|
|
24
|
-
if (!enabled) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const id = setInterval(() => {
|
|
28
|
-
const globalDocument = globalThis.document;
|
|
29
|
-
if (globalDocument?.hidden === true) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
tickRef.current();
|
|
33
|
-
}, intervalMs);
|
|
34
|
-
return () => {
|
|
35
|
-
clearInterval(id);
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
t3 = [enabled, intervalMs];
|
|
39
|
-
$[2] = enabled;
|
|
40
|
-
$[3] = intervalMs;
|
|
41
|
-
$[4] = t2;
|
|
42
|
-
$[5] = t3;
|
|
43
|
-
} else {
|
|
44
|
-
t2 = $[4];
|
|
45
|
-
t3 = $[5];
|
|
46
|
-
}
|
|
47
|
-
useEffect(t2, t3);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export { DEFAULT_AUTO_REFRESH_MS, useAutoRefresh };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
const DEFAULT_INSIGHT_THRESHOLDS = {
|
|
2
|
-
highErrorRate: 0.05,
|
|
3
|
-
highWriteContention: 0.1,
|
|
4
|
-
lowCacheHitRate: 0.5,
|
|
5
|
-
minCacheSamples: 10,
|
|
6
|
-
minConflictCalls: 5,
|
|
7
|
-
minErrorCalls: 5,
|
|
8
|
-
slowFunctionMs: 1e3
|
|
9
|
-
};
|
|
10
|
-
const SEVERITY_ORDER = {
|
|
11
|
-
error: 0,
|
|
12
|
-
info: 2,
|
|
13
|
-
warning: 1
|
|
14
|
-
};
|
|
15
|
-
const deriveFunctionInsights = (stat, thresholds) => {
|
|
16
|
-
const insights = [];
|
|
17
|
-
if (stat.maxDurationMs >= thresholds.slowFunctionMs) {
|
|
18
|
-
const scannedTables = stat.scannedTables ?? [];
|
|
19
|
-
if (scannedTables.length > 0) {
|
|
20
|
-
insights.push({
|
|
21
|
-
fn: stat.path,
|
|
22
|
-
kind: "missing-index",
|
|
23
|
-
severity: "warning",
|
|
24
|
-
tables: scannedTables.map((attribution) => attribution.table),
|
|
25
|
-
value: stat.maxDurationMs
|
|
26
|
-
});
|
|
27
|
-
} else {
|
|
28
|
-
insights.push({
|
|
29
|
-
fn: stat.path,
|
|
30
|
-
kind: "slow-function",
|
|
31
|
-
severity: "info",
|
|
32
|
-
value: stat.maxDurationMs
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
if (stat.calls >= thresholds.minErrorCalls && stat.errors / stat.calls >= thresholds.highErrorRate) {
|
|
37
|
-
insights.push({
|
|
38
|
-
fn: stat.path,
|
|
39
|
-
kind: "high-error-rate",
|
|
40
|
-
message: stat.lastErrorMessage ?? void 0,
|
|
41
|
-
severity: "error",
|
|
42
|
-
value: stat.errors / stat.calls
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
const conflicts = stat.conflicts ?? 0;
|
|
46
|
-
if (conflicts > 0 && stat.calls >= thresholds.minConflictCalls && conflicts / stat.calls >= thresholds.highWriteContention) {
|
|
47
|
-
insights.push({
|
|
48
|
-
fn: stat.path,
|
|
49
|
-
kind: "high-write-contention",
|
|
50
|
-
severity: "warning",
|
|
51
|
-
value: conflicts / stat.calls
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
return insights;
|
|
55
|
-
};
|
|
56
|
-
const deriveInsights = (metrics, functions, thresholds = DEFAULT_INSIGHT_THRESHOLDS) => {
|
|
57
|
-
const insights = [];
|
|
58
|
-
if (metrics?.cache) {
|
|
59
|
-
const {
|
|
60
|
-
evictions,
|
|
61
|
-
hits,
|
|
62
|
-
misses
|
|
63
|
-
} = metrics.cache;
|
|
64
|
-
const samples = hits + misses;
|
|
65
|
-
if (samples >= thresholds.minCacheSamples) {
|
|
66
|
-
const rate = hits / samples;
|
|
67
|
-
if (rate < thresholds.lowCacheHitRate) {
|
|
68
|
-
insights.push({
|
|
69
|
-
kind: "low-cache-hit-rate",
|
|
70
|
-
severity: "warning",
|
|
71
|
-
value: rate
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
if (evictions > 0 && evictions > hits) {
|
|
76
|
-
insights.push({
|
|
77
|
-
kind: "high-evictions",
|
|
78
|
-
severity: "warning",
|
|
79
|
-
value: evictions
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
for (const stat of functions ?? []) {
|
|
84
|
-
insights.push(...deriveFunctionInsights(stat, thresholds));
|
|
85
|
-
}
|
|
86
|
-
return insights.toSorted((a, b) => SEVERITY_ORDER[a.severity] - SEVERITY_ORDER[b.severity]);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export { DEFAULT_INSIGHT_THRESHOLDS, deriveInsights };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { setupI18n } from '@lingui/core';
|
|
2
|
-
import { compileMessage } from '@lingui/message-utils/compileMessage';
|
|
3
|
-
import { createContext, use } from 'react';
|
|
4
|
-
|
|
5
|
-
const messages = {};
|
|
6
|
-
|
|
7
|
-
const DEFAULT_LOCALE = "en";
|
|
8
|
-
const BUILTIN_CATALOGS = {
|
|
9
|
-
en: messages
|
|
10
|
-
};
|
|
11
|
-
const createStudioI18n = (locale = DEFAULT_LOCALE, catalogs = BUILTIN_CATALOGS) => {
|
|
12
|
-
const instance = setupI18n();
|
|
13
|
-
instance.setMessagesCompiler(compileMessage);
|
|
14
|
-
for (const [code, catalog] of Object.entries(catalogs)) {
|
|
15
|
-
instance.load(code, catalog);
|
|
16
|
-
}
|
|
17
|
-
instance.activate(catalogs[locale] === void 0 ? DEFAULT_LOCALE : locale);
|
|
18
|
-
return instance;
|
|
19
|
-
};
|
|
20
|
-
const studioI18n = createStudioI18n();
|
|
21
|
-
const StudioI18nContext = /* @__PURE__ */ createContext(studioI18n);
|
|
22
|
-
const useT = () => {
|
|
23
|
-
const i18n = use(StudioI18nContext);
|
|
24
|
-
return (id, values) => i18n._(id, values);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export { DEFAULT_LOCALE, StudioI18nContext, createStudioI18n, studioI18n, useT };
|