@lunora/studio 1.0.0-alpha.59 → 1.0.0-alpha.60
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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -43
- package/dist/mount.js +1 -27
- package/dist/packem_chunks/ApiTab.js +1 -251
- package/dist/packem_chunks/AuditPanel.js +1 -200
- package/dist/packem_chunks/DeploymentHealthPanel.js +1 -664
- package/dist/packem_chunks/ExportImportPanel.js +3 -198
- package/dist/packem_chunks/FileBrowser.js +4 -2955
- package/dist/packem_chunks/FunctionRunner.js +1 -326
- package/dist/packem_chunks/FunctionStatsPanel.js +1 -377
- package/dist/packem_chunks/HealthPanel.js +1 -648
- package/dist/packem_chunks/InsightsPanel.js +1 -462
- package/dist/packem_chunks/LogsPanel.js +1 -1303
- package/dist/packem_chunks/MailPanel.js +2 -353
- package/dist/packem_chunks/MetricsPanel.js +1 -1960
- package/dist/packem_chunks/MigrationsPanel.js +1 -239
- package/dist/packem_chunks/NotificationsPanel.js +1 -306
- package/dist/packem_chunks/PitrPanel.js +1 -252
- package/dist/packem_chunks/SchemaViewer.js +1 -2512
- package/dist/packem_chunks/SecurityAdvisorPanel.js +1 -95
- package/dist/packem_chunks/SettingsPanel.js +1 -391
- package/dist/packem_chunks/SqlEditorPanel.js +4 -2340
- package/dist/packem_chunks/TableEditor.js +1 -290
- package/dist/packem_chunks/agents-panel.js +1 -326
- package/dist/packem_chunks/analytics-panel.js +1 -261
- package/dist/packem_chunks/auth-audit-panel.js +1 -247
- package/dist/packem_chunks/auth-config-panel.js +1 -365
- package/dist/packem_chunks/auth-sessions-panel.js +1 -175
- package/dist/packem_chunks/containers-panel.js +1 -261
- package/dist/packem_chunks/dashboards-panel.js +1 -781
- package/dist/packem_chunks/fanout-panel.js +1 -482
- package/dist/packem_chunks/flags-panel.js +1 -176
- package/dist/packem_chunks/issues-panel.js +1 -427
- package/dist/packem_chunks/kv-browser.js +1 -1896
- package/dist/packem_chunks/log-drains-panel.js +4 -273
- package/dist/packem_chunks/organizations-panel.js +1 -3209
- package/dist/packem_chunks/payments-panel.js +1 -213
- package/dist/packem_chunks/permissions-panel.js +1 -805
- package/dist/packem_chunks/queues-panel.js +1 -1075
- package/dist/packem_chunks/rls-panel.js +1 -315
- package/dist/packem_chunks/schedule-panel.js +1 -831
- package/dist/packem_chunks/sparkline.js +1 -79
- package/dist/packem_chunks/storage-rules-panel.js +1 -140
- package/dist/packem_chunks/subscriptions-panel.js +1 -238
- package/dist/packem_chunks/sync-client-panel.js +1 -0
- package/dist/packem_chunks/traces-panel.js +1 -747
- package/dist/packem_chunks/users-panel.js +1 -1731
- package/dist/packem_chunks/vector-browser.js +1 -281
- package/dist/packem_chunks/workflows-panel.js +1 -562
- package/dist/packem_shared/ADMIN_FUNCTIONS-BYNSbBVE.js +1 -0
- package/dist/packem_shared/ApiDocsPanel-eJYZlylw.js +2 -0
- package/dist/packem_shared/ApiReferencePanel-C42v1jr6.js +1 -0
- package/dist/packem_shared/CommandPalette-CVIaY3j8.js +1 -0
- package/dist/packem_shared/ConfirmButton-CTL3f3kr.js +1 -0
- package/dist/packem_shared/ConnectionBadge-DOk0CQWo.js +1 -0
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-BCC8_4BQ.js +1 -0
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-B-hcFVoi.js +1 -0
- package/dist/packem_shared/DEFAULT_LOCALE-BZ4NojpD.js +1 -0
- package/dist/packem_shared/DataBrowser-B8J5lHjP.js +1 -0
- package/dist/packem_shared/DataFilters-Csb30F0C.js +1 -0
- package/dist/packem_shared/ErrorBoundary-DvzYskH7.js +1 -0
- package/dist/packem_shared/GlobalDataBrowser-RLJ6NvOs.js +1 -0
- package/dist/packem_shared/HomePanel-DL1HupAN.js +1 -0
- package/dist/packem_shared/OpenRpcReferencePanel-sGsIgYWj.js +1 -0
- package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.js +1 -0
- package/dist/packem_shared/ScheduledJobs-DUbo6epc.js +1 -0
- package/dist/packem_shared/ShardInput-BVn2iCU0.js +1 -0
- package/dist/packem_shared/Studio-BWBclm_C.js +1 -0
- package/dist/packem_shared/StudioApp-BFm73yVr.js +1 -0
- package/dist/packem_shared/StudioI18nProvider-CZ5h4nrV.js +1 -0
- package/dist/packem_shared/advisor-view-DaCX9Jy5.js +1 -0
- package/dist/packem_shared/aggregateMetrics-BNfajLa2.js +1 -0
- package/dist/packem_shared/alert-CVcOFuDR.js +1 -0
- package/dist/packem_shared/badge-BbuuAio7.js +1 -0
- package/dist/packem_shared/bar-chart-AryFCeoa.js +9 -0
- package/dist/packem_shared/browser-storage-xjTyMKY0.js +1 -0
- package/dist/packem_shared/button-BkCrNcAs.js +1 -0
- package/dist/packem_shared/card-CIDGUN6K.js +1 -0
- package/dist/packem_shared/cf-links-gbDy51nR.js +1 -0
- package/dist/packem_shared/checkbox-StT4Gob6.js +1 -0
- package/dist/packem_shared/data-grid-BMBKzMEJ.js +1 -0
- package/dist/packem_shared/data-view-params-C8T3bW1z.js +1 -0
- package/dist/packem_shared/dropdown-menu-C3RQ_HlW.js +2 -0
- package/dist/packem_shared/empty-state-Cg7t_8qu.js +1 -0
- package/dist/packem_shared/error-alert-B59DnrDI.js +1 -0
- package/dist/packem_shared/grid-features-uZCUj955.js +6 -0
- package/dist/packem_shared/home-panel-B-8BCffw.js +3 -0
- package/dist/packem_shared/input-JHu63lTv.js +1 -0
- package/dist/packem_shared/internal-AtZ4bTal.js +2 -0
- package/dist/packem_shared/label-6uP1obNF.js +1 -0
- package/dist/packem_shared/live-status-CGW2JHf_.js +1 -0
- package/dist/packem_shared/log-fields-CoL3hsIQ.js +1 -0
- package/dist/packem_shared/modal-shell-CUwwWC2o.js +1 -0
- package/dist/packem_shared/reference-view-KvhektwF.js +12 -0
- package/dist/packem_shared/result-chart-CwKhhKM0.js +1 -0
- package/dist/packem_shared/scroll-area-DTEq6Jec.js +2 -0
- package/dist/packem_shared/select-Bul-DeII.js +2 -0
- package/dist/packem_shared/shard-history-DMEW5VBE.js +1 -0
- package/dist/packem_shared/skeleton-C1wQ9M5t.js +1 -0
- package/dist/packem_shared/sparkline-DtcZoU48.js +1 -0
- package/dist/packem_shared/storage-tier-DznqOf-q.js +1 -0
- package/dist/packem_shared/studio-BHA7hnI3.js +2 -0
- package/dist/packem_shared/table-DdJBrClo.js +2 -0
- package/dist/packem_shared/table-list-sidebar-CMCcNALK.js +1 -0
- package/dist/packem_shared/textarea-Bu2-jKAs.js +1 -0
- package/dist/packem_shared/trace-handoff-Dw7mwjxu.js +1 -0
- package/dist/packem_shared/use-admin-query-Di3fLE8H.js +1 -0
- package/dist/packem_shared/use-async-submit-H68GHPz8.js +1 -0
- package/dist/packem_shared/useDebounced-Ihdiid_k.js +1 -0
- package/dist/packem_shared/utils-bhneXptQ.js +1 -0
- package/dist/packem_shared/virtual-rect-1o1veP7R.js +1 -0
- package/dist/standalone/chunk-23HKRH5H.js +13 -0
- package/dist/standalone/chunk-2A4RKII2.js +1 -0
- package/dist/standalone/chunk-3DTM4GI5.js +1 -0
- package/dist/standalone/chunk-3MHKT76P.js +1 -0
- package/dist/standalone/chunk-46IB4C4Q.js +1 -0
- package/dist/standalone/chunk-4AYEV5UN.js +1 -0
- package/dist/standalone/chunk-4FNHHFWR.js +1 -0
- package/dist/standalone/chunk-6CLVIOCB.js +1 -0
- package/dist/standalone/chunk-6I62RSI5.js +1 -0
- package/dist/standalone/chunk-6OKDCV7J.js +1 -0
- package/dist/standalone/chunk-6P7HIPUE.js +1 -0
- package/dist/standalone/chunk-6UYILUSX.js +1 -0
- package/dist/standalone/chunk-725RLB7D.js +1 -0
- package/dist/standalone/chunk-7AZZ7OJO.js +1 -0
- package/dist/standalone/chunk-7CRLAMGB.js +1 -0
- package/dist/standalone/chunk-7Z5QEFR4.js +2 -0
- package/dist/standalone/chunk-AGVJJQFL.js +1 -0
- package/dist/standalone/chunk-AKTGRZXN.js +1 -0
- package/dist/standalone/chunk-BAIN7UJ4.js +1 -0
- package/dist/standalone/chunk-BHWSIIDT.js +1 -0
- package/dist/standalone/{chunk-L7SK4ZZD.js → chunk-C4O5UR4Y.js} +1 -1
- package/dist/standalone/chunk-C4VURT57.js +1 -0
- package/dist/standalone/chunk-CKO3F55C.js +4 -0
- package/dist/standalone/chunk-CVMRZUF5.js +4 -0
- package/dist/standalone/chunk-CWWGDW4V.js +1 -0
- package/dist/standalone/chunk-CYET4BRZ.js +1 -0
- package/dist/standalone/chunk-CZEUVNCQ.js +1 -0
- package/dist/standalone/chunk-FXFK4M4E.js +1 -0
- package/dist/standalone/chunk-FYAJPWE7.js +1 -0
- package/dist/standalone/chunk-GS7OBQO5.js +1 -0
- package/dist/standalone/chunk-GTXVH7I5.js +1 -0
- package/dist/standalone/chunk-H6SIM4BT.js +1 -0
- package/dist/standalone/chunk-H6WOFY6A.js +8 -0
- package/dist/standalone/chunk-HA34GYEX.js +1 -0
- package/dist/standalone/chunk-HMIOF5GV.js +1 -0
- package/dist/standalone/chunk-HY46NTNW.js +6 -0
- package/dist/standalone/chunk-IBCKC2BO.js +1 -0
- package/dist/standalone/chunk-ICKBVXPP.js +1 -0
- package/dist/standalone/chunk-IE4ROTQD.js +1 -0
- package/dist/standalone/chunk-IYYTWZ2E.js +2 -0
- package/dist/standalone/chunk-J2LMP2A7.js +1 -0
- package/dist/standalone/chunk-JC6WYIHM.js +1 -0
- package/dist/standalone/chunk-JKPK25JO.js +1 -0
- package/dist/standalone/chunk-JLFCXBNQ.js +1 -0
- package/dist/standalone/chunk-JRWBGR5B.js +1 -0
- package/dist/standalone/chunk-K5PFWU5J.js +1 -0
- package/dist/standalone/chunk-KJTLW5W2.js +11 -0
- package/dist/standalone/{chunk-HBGS4SEX.js → chunk-KLLYGWNF.js} +9 -9
- package/dist/standalone/chunk-KNN3ZEQ7.js +1 -0
- package/dist/standalone/{chunk-4QHKBC77.js → chunk-KOC5KV3E.js} +1 -1
- package/dist/standalone/chunk-KSRXMTBV.js +1 -0
- package/dist/standalone/chunk-KYCAYNXM.js +1 -0
- package/dist/standalone/chunk-KZ2YUNMR.js +1 -0
- package/dist/standalone/chunk-LKHUVEHX.js +1 -0
- package/dist/standalone/chunk-LPOKAJT4.js +4 -0
- package/dist/standalone/chunk-MZEK4SGD.js +1 -0
- package/dist/standalone/chunk-NCCUM26H.js +1 -0
- package/dist/standalone/chunk-O62HJZV3.js +1 -0
- package/dist/standalone/chunk-OTJOI23O.js +62 -0
- package/dist/standalone/chunk-P2NBOUGZ.js +1 -0
- package/dist/standalone/chunk-P4J6XNG3.js +1 -0
- package/dist/standalone/chunk-PGDWFWH5.js +1 -0
- package/dist/standalone/chunk-PR2SE2MD.js +1 -0
- package/dist/standalone/chunk-PTTDIYGP.js +1 -0
- package/dist/standalone/chunk-PWDMXMRD.js +1 -0
- package/dist/standalone/chunk-Q34MSC2F.js +1 -0
- package/dist/standalone/chunk-Q5WXTZWX.js +1 -0
- package/dist/standalone/chunk-QC5HCNJZ.js +4 -0
- package/dist/standalone/chunk-QJKRHZYV.js +1 -0
- package/dist/standalone/chunk-R43KHQDA.js +1 -0
- package/dist/standalone/chunk-RC2K5RBE.js +1 -0
- package/dist/standalone/chunk-RE6UWCMG.js +1 -0
- package/dist/standalone/chunk-RUP3M2GF.js +3 -0
- package/dist/standalone/chunk-SA6MBPBL.js +1 -0
- package/dist/standalone/{chunk-BJGBHGK3.js → chunk-SEDZDNQF.js} +1 -1
- package/dist/standalone/chunk-SKHEGARW.js +1 -0
- package/dist/standalone/chunk-SKJZDOHG.js +1 -0
- package/dist/standalone/chunk-SNDYNCAA.js +1 -0
- package/dist/standalone/chunk-SZUHZ2OG.js +1 -0
- package/dist/standalone/chunk-TAE2H7PU.js +1 -0
- package/dist/standalone/chunk-TEIBKU46.js +1 -0
- package/dist/standalone/chunk-TO6NLVFD.js +1 -0
- package/dist/standalone/chunk-TYTJDFX2.js +1 -0
- package/dist/standalone/{chunk-LXULVPEM.js → chunk-UDZY7MKE.js} +3 -3
- package/dist/standalone/chunk-UHHTEBC3.js +1 -0
- package/dist/standalone/chunk-UNDFOYRI.js +1 -0
- package/dist/standalone/chunk-UNN4CESU.js +1 -0
- package/dist/standalone/chunk-UNXX5GQH.js +1 -0
- package/dist/standalone/{chunk-ZHVTQ37P.js → chunk-UREY4GLG.js} +1 -1
- package/dist/standalone/chunk-UWF5DOGV.js +1 -0
- package/dist/standalone/chunk-UY2Y5CXB.js +1 -0
- package/dist/standalone/{chunk-VLXV72QE.js → chunk-UZYGEOWY.js} +1 -1
- package/dist/standalone/chunk-V66TSUKV.js +1 -0
- package/dist/standalone/chunk-VEFNSN7P.js +1 -0
- package/dist/standalone/chunk-VUJGR4PB.js +1 -0
- package/dist/standalone/chunk-VUXJER3D.js +1 -0
- package/dist/standalone/chunk-W572365D.js +1 -0
- package/dist/standalone/chunk-WYFLGXZ3.js +3 -0
- package/dist/standalone/chunk-XDKFPBIL.js +1 -0
- package/dist/standalone/chunk-XRKCGQM2.js +1 -0
- package/dist/standalone/chunk-YNBJ6ICE.js +1 -0
- package/dist/standalone/chunk-YQ5PILIJ.js +1 -0
- package/dist/standalone/chunk-YT7VXQVX.js +1 -0
- package/dist/standalone/chunk-Z7MUQMLE.js +1 -0
- package/dist/standalone/chunk-ZFWEPGWG.js +1 -0
- package/dist/standalone/chunk-ZMFZRGAN.js +1 -0
- package/dist/standalone/studio.js +9 -214
- package/package.json +4 -4
- package/dist/packem_shared/ADMIN_FUNCTIONS-P2UzJscH.js +0 -62
- package/dist/packem_shared/ApiDocsPanel-DNDpeR5O.js +0 -842
- package/dist/packem_shared/ApiReferencePanel-ChlRsAXU.js +0 -230
- package/dist/packem_shared/CommandPalette-BpkopP5f.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-obTn4sKX.js +0 -4493
- package/dist/packem_shared/DataFilters-B1Q7mrt7.js +0 -253
- package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
- package/dist/packem_shared/GlobalDataBrowser-BCaohHZ5.js +0 -293
- package/dist/packem_shared/HomePanel-DCRj3hGB.js +0 -14
- package/dist/packem_shared/OpenRpcReferencePanel-CIeQE1aE.js +0 -192
- package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
- package/dist/packem_shared/ScheduledJobs-BQzQo84k.js +0 -262
- package/dist/packem_shared/ShardInput-CZnpHILL.js +0 -107
- package/dist/packem_shared/Studio-DnlPCbID.js +0 -16
- package/dist/packem_shared/StudioApp-CzqlB4zO.js +0 -708
- package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
- package/dist/packem_shared/advisor-view-D95sN-wO.js +0 -159
- package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
- package/dist/packem_shared/alert-CdAET2K_.js +0 -68
- package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
- package/dist/packem_shared/bar-chart-DSwcWIRy.js +0 -3246
- package/dist/packem_shared/browser-storage-L4gOP5gJ.js +0 -105
- package/dist/packem_shared/button-BhsN2uZH.js +0 -49
- package/dist/packem_shared/card-F2vH_aj2.js +0 -175
- package/dist/packem_shared/cf-links-SIbyi4Y1.js +0 -8
- package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
- package/dist/packem_shared/data-grid-BywzWfek.js +0 -183
- package/dist/packem_shared/data-view-params-Cd6yRVbv.js +0 -96
- 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/error-alert-D9uIFJUS.js +0 -114
- package/dist/packem_shared/grid-features-ZOLhHKrR.js +0 -809
- package/dist/packem_shared/home-panel-BRAA2UlM.js +0 -1889
- package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
- package/dist/packem_shared/internal-DzHCc2Rq.js +0 -131
- package/dist/packem_shared/label-D8ykjn5J.js +0 -46
- package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
- package/dist/packem_shared/log-fields-jEH83H2G.js +0 -18
- package/dist/packem_shared/modal-shell-hyaJvIJ6.js +0 -100
- package/dist/packem_shared/reference-view-DfXN7oWP.js +0 -2127
- package/dist/packem_shared/result-chart-Bf9mbCIo.js +0 -119
- package/dist/packem_shared/scroll-area-DLhcy-ml.js +0 -93
- package/dist/packem_shared/select-D9OwHEch.js +0 -273
- package/dist/packem_shared/shard-history-AxiJ1WPP.js +0 -16
- package/dist/packem_shared/skeleton-CGhL0p20.js +0 -45
- package/dist/packem_shared/sparkline-BnA1kC9X.js +0 -93
- package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
- package/dist/packem_shared/studio-8QSXbZ98.js +0 -4192
- package/dist/packem_shared/table-DsCa9Qp9.js +0 -246
- package/dist/packem_shared/table-list-sidebar-gCE17v9B.js +0 -842
- package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
- package/dist/packem_shared/trace-handoff-CGolF3KS.js +0 -38
- package/dist/packem_shared/use-admin-query-C7JNuQp-.js +0 -106
- package/dist/packem_shared/use-async-submit-rnSk_jXl.js +0 -91
- 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
- package/dist/standalone/chunk-2K47A3P6.js +0 -1
- package/dist/standalone/chunk-2MLA6WFH.js +0 -1
- package/dist/standalone/chunk-2NGUNNGW.js +0 -1
- package/dist/standalone/chunk-2TJVFKD2.js +0 -1
- package/dist/standalone/chunk-2YTF6LJ6.js +0 -1
- package/dist/standalone/chunk-3GXGLNKW.js +0 -1
- package/dist/standalone/chunk-3HGNPZBN.js +0 -1
- package/dist/standalone/chunk-3LJEGSMK.js +0 -11
- package/dist/standalone/chunk-3OA7PECS.js +0 -6
- package/dist/standalone/chunk-4PC7IXNY.js +0 -1
- package/dist/standalone/chunk-56XQYNUJ.js +0 -1
- package/dist/standalone/chunk-5OIBXYZM.js +0 -1
- package/dist/standalone/chunk-5QT5JRXD.js +0 -3
- package/dist/standalone/chunk-6RLPR7PL.js +0 -1
- package/dist/standalone/chunk-6V74EUPK.js +0 -1
- package/dist/standalone/chunk-7EE33WLB.js +0 -1
- package/dist/standalone/chunk-7TJJXVSE.js +0 -1
- package/dist/standalone/chunk-AHILM3ZP.js +0 -1
- package/dist/standalone/chunk-AN4RKMKW.js +0 -1
- package/dist/standalone/chunk-APSSZB6Z.js +0 -1
- package/dist/standalone/chunk-AXNGWSBM.js +0 -1
- package/dist/standalone/chunk-AXZILWRM.js +0 -1
- package/dist/standalone/chunk-C7RHEBOH.js +0 -1
- package/dist/standalone/chunk-CKSHCYGC.js +0 -2
- package/dist/standalone/chunk-CSWIYOB3.js +0 -1
- package/dist/standalone/chunk-D3VAON25.js +0 -1
- package/dist/standalone/chunk-DDLQN67F.js +0 -1
- package/dist/standalone/chunk-DGHW5JG5.js +0 -1
- package/dist/standalone/chunk-DMCSOTAE.js +0 -3
- package/dist/standalone/chunk-E3BKETAS.js +0 -1
- package/dist/standalone/chunk-E3OXNN6O.js +0 -1
- package/dist/standalone/chunk-E6BOGDIS.js +0 -1
- package/dist/standalone/chunk-F2YMCQ6B.js +0 -1
- package/dist/standalone/chunk-F7GE4X2U.js +0 -1
- package/dist/standalone/chunk-FAVUOGJR.js +0 -1
- package/dist/standalone/chunk-FXP6256Q.js +0 -1
- package/dist/standalone/chunk-G6CTAYHJ.js +0 -1
- package/dist/standalone/chunk-GTM65MVX.js +0 -1
- package/dist/standalone/chunk-H42W62SE.js +0 -1
- package/dist/standalone/chunk-HTF5ZX4I.js +0 -8
- package/dist/standalone/chunk-HV7G6DFP.js +0 -5
- package/dist/standalone/chunk-I2PS4L74.js +0 -1
- package/dist/standalone/chunk-IYHPYY4A.js +0 -1
- package/dist/standalone/chunk-J6J54MBP.js +0 -1
- package/dist/standalone/chunk-J7OGP4NN.js +0 -1
- package/dist/standalone/chunk-JSEXCW5Q.js +0 -1
- package/dist/standalone/chunk-JZLGLG4T.js +0 -1
- package/dist/standalone/chunk-KEGAWN6Y.js +0 -1
- package/dist/standalone/chunk-KZ6INM5M.js +0 -1
- package/dist/standalone/chunk-L2LN3MK4.js +0 -4
- package/dist/standalone/chunk-LT3FH6MW.js +0 -1
- package/dist/standalone/chunk-LZUWZBPE.js +0 -1
- package/dist/standalone/chunk-M4JM3TOY.js +0 -1
- package/dist/standalone/chunk-MLA5ZAEB.js +0 -1
- package/dist/standalone/chunk-MRBI5HNQ.js +0 -1
- package/dist/standalone/chunk-N5XX4HOL.js +0 -6
- package/dist/standalone/chunk-N7SVJOHN.js +0 -1
- package/dist/standalone/chunk-NKFXMDOD.js +0 -1
- package/dist/standalone/chunk-NPSNKFHE.js +0 -1
- package/dist/standalone/chunk-O3NAGRTR.js +0 -1
- package/dist/standalone/chunk-O7FVPUCO.js +0 -1
- package/dist/standalone/chunk-OKQXTLFX.js +0 -1
- package/dist/standalone/chunk-OXHHSUXO.js +0 -1
- package/dist/standalone/chunk-QAFAJBAW.js +0 -1
- package/dist/standalone/chunk-QAIM6KWT.js +0 -1
- package/dist/standalone/chunk-QCPMTB6W.js +0 -1
- package/dist/standalone/chunk-QQ2LOSZL.js +0 -1
- package/dist/standalone/chunk-QVIPA6UJ.js +0 -1
- package/dist/standalone/chunk-QVUQXJCT.js +0 -4
- package/dist/standalone/chunk-R2GMHLJY.js +0 -1
- package/dist/standalone/chunk-RD5UG2YL.js +0 -1
- package/dist/standalone/chunk-RJTIP3WF.js +0 -1
- package/dist/standalone/chunk-RRCPZMC2.js +0 -22
- package/dist/standalone/chunk-SHERR7ZP.js +0 -1
- package/dist/standalone/chunk-SOC5CY3F.js +0 -1
- package/dist/standalone/chunk-SS7JLF2I.js +0 -4
- package/dist/standalone/chunk-SWWYUGPL.js +0 -2
- package/dist/standalone/chunk-TAD43CG5.js +0 -1
- package/dist/standalone/chunk-TTXRHJUP.js +0 -4
- package/dist/standalone/chunk-UK64ZSUW.js +0 -1
- package/dist/standalone/chunk-UKDHGVOC.js +0 -1
- package/dist/standalone/chunk-UPNTMJFF.js +0 -1
- package/dist/standalone/chunk-V43BLH4J.js +0 -1
- package/dist/standalone/chunk-VL23Y44O.js +0 -4
- package/dist/standalone/chunk-VXM5H542.js +0 -4
- package/dist/standalone/chunk-WMDH2CIZ.js +0 -1
- package/dist/standalone/chunk-WVTPZ6CM.js +0 -1
- package/dist/standalone/chunk-XN6QYJQ6.js +0 -13
- package/dist/standalone/chunk-XNJNSCLM.js +0 -1
- package/dist/standalone/chunk-Y4U6CC22.js +0 -1
- package/dist/standalone/chunk-Y572GMZE.js +0 -1
- package/dist/standalone/chunk-Y7PD5KP4.js +0 -76
- package/dist/standalone/chunk-YFIPHCEC.js +0 -1
- package/dist/standalone/chunk-YJXOWLFJ.js +0 -1
- package/dist/standalone/chunk-YNN6NFRZ.js +0 -1
- package/dist/standalone/chunk-YUGHRVPD.js +0 -1
- package/dist/standalone/chunk-ZIGWVHCS.js +0 -1
- package/dist/standalone/chunk-ZPP2KOR4.js +0 -1
- package/dist/standalone/chunk-ZPUO7FNI.js +0 -1
- /package/dist/standalone/{chunk-TEWVD66F.js → chunk-GXZAXNZI.js} +0 -0
|
@@ -1,79 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { B as Bar, E as EvilBarChart } from '../packem_shared/bar-chart-DSwcWIRy.js';
|
|
3
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
4
|
-
|
|
5
|
-
const SPARKLINE_CONFIG = {
|
|
6
|
-
value: {
|
|
7
|
-
colors: {
|
|
8
|
-
dark: ["var(--foreground)"],
|
|
9
|
-
light: ["var(--foreground)"]
|
|
10
|
-
},
|
|
11
|
-
label: ""
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
const Sparkline = (t0) => {
|
|
15
|
-
const $ = c(6);
|
|
16
|
-
const {
|
|
17
|
-
data
|
|
18
|
-
} = t0;
|
|
19
|
-
let t1;
|
|
20
|
-
let t2;
|
|
21
|
-
if ($[0] !== data) {
|
|
22
|
-
t2 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
23
|
-
bb0: {
|
|
24
|
-
const bars = data.slice(-16);
|
|
25
|
-
if (bars.length < 3) {
|
|
26
|
-
t2 = null;
|
|
27
|
-
break bb0;
|
|
28
|
-
}
|
|
29
|
-
t1 = bars.map(_temp);
|
|
30
|
-
}
|
|
31
|
-
$[0] = data;
|
|
32
|
-
$[1] = t1;
|
|
33
|
-
$[2] = t2;
|
|
34
|
-
} else {
|
|
35
|
-
t1 = $[1];
|
|
36
|
-
t2 = $[2];
|
|
37
|
-
}
|
|
38
|
-
if (t2 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
|
|
39
|
-
return t2;
|
|
40
|
-
}
|
|
41
|
-
const rows = t1;
|
|
42
|
-
let t3;
|
|
43
|
-
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
44
|
-
t3 = /* @__PURE__ */ jsxDEV(Bar, {
|
|
45
|
-
dataKey: "value"
|
|
46
|
-
}, void 0, false);
|
|
47
|
-
$[3] = t3;
|
|
48
|
-
} else {
|
|
49
|
-
t3 = $[3];
|
|
50
|
-
}
|
|
51
|
-
let t4;
|
|
52
|
-
if ($[4] !== rows) {
|
|
53
|
-
t4 = /* @__PURE__ */ jsxDEV("div", {
|
|
54
|
-
"aria-hidden": "true",
|
|
55
|
-
className: "h-8 w-28",
|
|
56
|
-
children: /* @__PURE__ */ jsxDEV(EvilBarChart, {
|
|
57
|
-
animationType: "none",
|
|
58
|
-
barCategoryGap: 1,
|
|
59
|
-
className: "h-8 w-full",
|
|
60
|
-
config: SPARKLINE_CONFIG,
|
|
61
|
-
data: rows,
|
|
62
|
-
children: t3
|
|
63
|
-
}, void 0, false)
|
|
64
|
-
}, void 0, false);
|
|
65
|
-
$[4] = rows;
|
|
66
|
-
$[5] = t4;
|
|
67
|
-
} else {
|
|
68
|
-
t4 = $[5];
|
|
69
|
-
}
|
|
70
|
-
return t4;
|
|
71
|
-
};
|
|
72
|
-
function _temp(value, index) {
|
|
73
|
-
return {
|
|
74
|
-
index,
|
|
75
|
-
value
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export { Sparkline };
|
|
1
|
+
import{c as m}from"react/compiler-runtime";import{B as u,E as f}from"../packem_shared/bar-chart-AryFCeoa.js";import{jsx as c}from"react/jsx-runtime";const d={value:{colors:{dark:["var(--foreground)"],light:["var(--foreground)"]},label:""}},b=n=>{const e=m(6),{data:o}=n;let a,r;if(e[0]!==o){r=Symbol.for("react.early_return_sentinel");e:{const s=o.slice(-16);if(s.length<3){r=null;break e}a=s.map(h)}e[0]=o,e[1]=a,e[2]=r}else a=e[1],r=e[2];if(r!==Symbol.for("react.early_return_sentinel"))return r;const i=a;let t;e[3]===Symbol.for("react.memo_cache_sentinel")?(t=c(u,{dataKey:"value"}),e[3]=t):t=e[3];let l;return e[4]!==i?(l=c("div",{"aria-hidden":"true",className:"h-8 w-28",children:c(f,{animationType:"none",barCategoryGap:1,className:"h-8 w-full",config:d,data:i,children:t})}),e[4]=i,e[5]=l):l=e[5],l};function h(n,e){return{index:e,value:n}}export{b as Sparkline};
|
|
@@ -1,140 +1 @@
|
|
|
1
|
-
import { c } from
|
|
2
|
-
import { E as ErrorAlert } from '../packem_shared/error-alert-D9uIFJUS.js';
|
|
3
|
-
import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
|
|
4
|
-
import { C as Card, a as CardContent } from '../packem_shared/card-F2vH_aj2.js';
|
|
5
|
-
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
6
|
-
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
|
|
7
|
-
import { u as useAdminQuery } from '../packem_shared/use-admin-query-C7JNuQp-.js';
|
|
8
|
-
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
9
|
-
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-P2UzJscH.js';
|
|
10
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
11
|
-
|
|
12
|
-
const operationLabel = (t, operation) => ({
|
|
13
|
-
delete: t("Delete"),
|
|
14
|
-
list: t("List"),
|
|
15
|
-
read: t("Read"),
|
|
16
|
-
write: t("Write")
|
|
17
|
-
})[operation];
|
|
18
|
-
const OPERATION_ORDER = {
|
|
19
|
-
delete: 2,
|
|
20
|
-
list: 3,
|
|
21
|
-
read: 0,
|
|
22
|
-
write: 1
|
|
23
|
-
};
|
|
24
|
-
const sortRules = (rules) => [...rules].toSorted((a, b) => a.bucket.localeCompare(b.bucket) || OPERATION_ORDER[a.on] - OPERATION_ORDER[b.on] || (a.prefix ?? "").localeCompare(b.prefix ?? ""));
|
|
25
|
-
const StorageRulesPanel = () => {
|
|
26
|
-
const $ = c(14);
|
|
27
|
-
const t = useT();
|
|
28
|
-
let t0;
|
|
29
|
-
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
30
|
-
t0 = {};
|
|
31
|
-
$[0] = t0;
|
|
32
|
-
} else {
|
|
33
|
-
t0 = $[0];
|
|
34
|
-
}
|
|
35
|
-
const {
|
|
36
|
-
data,
|
|
37
|
-
error,
|
|
38
|
-
errorSource
|
|
39
|
-
} = useAdminQuery(ADMIN_FUNCTIONS.storageRules, t0);
|
|
40
|
-
const loaded = data !== void 0;
|
|
41
|
-
let t1;
|
|
42
|
-
if ($[1] !== data || $[2] !== error || $[3] !== errorSource || $[4] !== loaded || $[5] !== t) {
|
|
43
|
-
const rules = sortRules(Array.isArray(data?.rules) ? data.rules : []);
|
|
44
|
-
let t2;
|
|
45
|
-
if ($[7] !== error || $[8] !== errorSource) {
|
|
46
|
-
t2 = error !== null && /* @__PURE__ */ jsxDEV(ErrorAlert, {
|
|
47
|
-
error: errorSource,
|
|
48
|
-
testId: "storage-rules-error"
|
|
49
|
-
}, void 0, false);
|
|
50
|
-
$[7] = error;
|
|
51
|
-
$[8] = errorSource;
|
|
52
|
-
$[9] = t2;
|
|
53
|
-
} else {
|
|
54
|
-
t2 = $[9];
|
|
55
|
-
}
|
|
56
|
-
let t3;
|
|
57
|
-
if ($[10] !== t) {
|
|
58
|
-
t3 = t("Storage rules are declared in code with defineStorageRule and gate ctx.storage access per bucket. This view is read-only.");
|
|
59
|
-
$[10] = t;
|
|
60
|
-
$[11] = t3;
|
|
61
|
-
} else {
|
|
62
|
-
t3 = $[11];
|
|
63
|
-
}
|
|
64
|
-
let t4;
|
|
65
|
-
if ($[12] !== t3) {
|
|
66
|
-
t4 = /* @__PURE__ */ jsxDEV("p", {
|
|
67
|
-
className: "text-sm text-muted-foreground",
|
|
68
|
-
"data-testid": "storage-rules-note",
|
|
69
|
-
children: t3
|
|
70
|
-
}, void 0, false);
|
|
71
|
-
$[12] = t3;
|
|
72
|
-
$[13] = t4;
|
|
73
|
-
} else {
|
|
74
|
-
t4 = $[13];
|
|
75
|
-
}
|
|
76
|
-
t1 = /* @__PURE__ */ jsxDEV("div", {
|
|
77
|
-
className: "flex flex-col gap-4",
|
|
78
|
-
"data-testid": "lunora-storage-rules-panel",
|
|
79
|
-
children: [t2, t4, loaded && rules.length === 0 ? /* @__PURE__ */ jsxDEV(EmptyState, {
|
|
80
|
-
description: t("No defineStorageRule is wired through .use(storageRules(...)) in this deployment. Add one to gate object access by key prefix."),
|
|
81
|
-
testId: "storage-rules-empty",
|
|
82
|
-
title: t("No storage rules defined")
|
|
83
|
-
}, void 0, false) : /* @__PURE__ */ jsxDEV(Card, {
|
|
84
|
-
className: "overflow-hidden py-0",
|
|
85
|
-
children: /* @__PURE__ */ jsxDEV(CardContent, {
|
|
86
|
-
className: "px-0",
|
|
87
|
-
children: /* @__PURE__ */ jsxDEV(Table, {
|
|
88
|
-
"data-testid": "storage-rules-table",
|
|
89
|
-
children: [/* @__PURE__ */ jsxDEV(TableHeader, {
|
|
90
|
-
children: /* @__PURE__ */ jsxDEV(TableRow, {
|
|
91
|
-
children: [/* @__PURE__ */ jsxDEV(TableHead, {
|
|
92
|
-
children: t("Bucket")
|
|
93
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
94
|
-
children: t("Operation")
|
|
95
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
96
|
-
children: t("Key prefix")
|
|
97
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
98
|
-
children: t("Guarded by")
|
|
99
|
-
}, void 0, false)]
|
|
100
|
-
}, void 0, true)
|
|
101
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
|
|
102
|
-
children: rules.map((rule) => /* @__PURE__ */ jsxDEV(TableRow, {
|
|
103
|
-
"data-testid": `storage-rule-${rule.bucket}-${rule.on}-${rule.prefix ?? ""}`,
|
|
104
|
-
children: [/* @__PURE__ */ jsxDEV(TableCell, {
|
|
105
|
-
className: "font-mono text-xs",
|
|
106
|
-
children: rule.bucket
|
|
107
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
108
|
-
children: /* @__PURE__ */ jsxDEV(Badge, {
|
|
109
|
-
variant: "secondary",
|
|
110
|
-
children: operationLabel(t, rule.on)
|
|
111
|
-
}, void 0, false)
|
|
112
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
113
|
-
className: "font-mono text-xs",
|
|
114
|
-
children: rule.prefix ?? /* @__PURE__ */ jsxDEV("span", {
|
|
115
|
-
className: "text-muted-foreground",
|
|
116
|
-
children: t("(whole bucket)")
|
|
117
|
-
}, void 0, false)
|
|
118
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
119
|
-
className: "font-mono text-xs text-muted-foreground",
|
|
120
|
-
children: rule.procedure
|
|
121
|
-
}, void 0, false)]
|
|
122
|
-
}, `${rule.bucket}:${rule.on}:${rule.prefix ?? ""}:${rule.procedure}`, true))
|
|
123
|
-
}, void 0, false)]
|
|
124
|
-
}, void 0, true)
|
|
125
|
-
}, void 0, false)
|
|
126
|
-
}, void 0, false)]
|
|
127
|
-
}, void 0, true);
|
|
128
|
-
$[1] = data;
|
|
129
|
-
$[2] = error;
|
|
130
|
-
$[3] = errorSource;
|
|
131
|
-
$[4] = loaded;
|
|
132
|
-
$[5] = t;
|
|
133
|
-
$[6] = t1;
|
|
134
|
-
} else {
|
|
135
|
-
t1 = $[6];
|
|
136
|
-
}
|
|
137
|
-
return t1;
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
export { StorageRulesPanel };
|
|
1
|
+
import{c as b}from"react/compiler-runtime";import{E as y}from"../packem_shared/error-alert-B59DnrDI.js";import{g as N}from"../packem_shared/badge-BbuuAio7.js";import{c as k,u as S}from"../packem_shared/card-CIDGUN6K.js";import{E as w}from"../packem_shared/empty-state-Cg7t_8qu.js";import{n as R,d as v,m as x,p as u,f as A,u as p}from"../packem_shared/table-DdJBrClo.js";import{K as E}from"../packem_shared/use-admin-query-Di3fLE8H.js";import{useT as j}from"../packem_shared/DEFAULT_LOCALE-BZ4NojpD.js";import{ADMIN_FUNCTIONS as I}from"../packem_shared/ADMIN_FUNCTIONS-BYNSbBVE.js";import{jsx as t,jsxs as f}from"react/jsx-runtime";const C=(e,r)=>({delete:e("Delete"),list:e("List"),read:e("Read"),write:e("Write")})[r],$={delete:2,list:3,read:0,write:1},T=e=>[...e].toSorted((r,s)=>r.bucket.localeCompare(s.bucket)||$[r.on]-$[s.on]||(r.prefix??"").localeCompare(s.prefix??"")),U=()=>{const e=b(14),r=j();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={},e[0]=s):s=e[0];const{data:l,error:i,errorSource:d}=E(I.storageRules,s),h=l!==void 0;let n;if(e[1]!==l||e[2]!==i||e[3]!==d||e[4]!==h||e[5]!==r){const g=T(Array.isArray(l?.rules)?l.rules:[]);let c;e[7]!==i||e[8]!==d?(c=i!==null&&t(y,{error:d,testId:"storage-rules-error"}),e[7]=i,e[8]=d,e[9]=c):c=e[9];let a;e[10]!==r?(a=r("Storage rules are declared in code with defineStorageRule and gate ctx.storage access per bucket. This view is read-only."),e[10]=r,e[11]=a):a=e[11];let m;e[12]!==a?(m=t("p",{className:"text-sm text-muted-foreground","data-testid":"storage-rules-note",children:a}),e[12]=a,e[13]=m):m=e[13],n=f("div",{className:"flex flex-col gap-4","data-testid":"lunora-storage-rules-panel",children:[c,m,h&&g.length===0?t(w,{description:r("No defineStorageRule is wired through .use(storageRules(...)) in this deployment. Add one to gate object access by key prefix."),testId:"storage-rules-empty",title:r("No storage rules defined")}):t(k,{className:"overflow-hidden py-0",children:t(S,{className:"px-0",children:f(R,{"data-testid":"storage-rules-table",children:[t(v,{children:f(x,{children:[t(u,{children:r("Bucket")}),t(u,{children:r("Operation")}),t(u,{children:r("Key prefix")}),t(u,{children:r("Guarded by")})]})}),t(A,{children:g.map(o=>f(x,{"data-testid":`storage-rule-${o.bucket}-${o.on}-${o.prefix??""}`,children:[t(p,{className:"font-mono text-xs",children:o.bucket}),t(p,{children:t(N,{variant:"secondary",children:C(r,o.on)})}),t(p,{className:"font-mono text-xs",children:o.prefix??t("span",{className:"text-muted-foreground",children:r("(whole bucket)")})}),t(p,{className:"font-mono text-xs text-muted-foreground",children:o.procedure})]},`${o.bucket}:${o.on}:${o.prefix??""}:${o.procedure}`))})]})})})]}),e[1]=l,e[2]=i,e[3]=d,e[4]=h,e[5]=r,e[6]=n}else n=e[6];return n};export{U as StorageRulesPanel};
|
|
@@ -1,238 +1 @@
|
|
|
1
|
-
import { c } from
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { E as ErrorAlert } from '../packem_shared/error-alert-D9uIFJUS.js';
|
|
4
|
-
import { ShardInput } from '../packem_shared/ShardInput-CZnpHILL.js';
|
|
5
|
-
import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
|
|
6
|
-
import { C as Card, a as CardContent } from '../packem_shared/card-F2vH_aj2.js';
|
|
7
|
-
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
8
|
-
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
|
|
9
|
-
import { u as useAdminQuery } from '../packem_shared/use-admin-query-C7JNuQp-.js';
|
|
10
|
-
import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
|
|
11
|
-
import useDebounced from '../packem_shared/useDebounced-Dxncpg6z.js';
|
|
12
|
-
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
13
|
-
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-P2UzJscH.js';
|
|
14
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
15
|
-
|
|
16
|
-
const ARGS_MAX = 80;
|
|
17
|
-
const formatArguments = (args) => {
|
|
18
|
-
if (args === void 0) {
|
|
19
|
-
return "";
|
|
20
|
-
}
|
|
21
|
-
const json = JSON.stringify(args);
|
|
22
|
-
return json.length > ARGS_MAX ? `${json.slice(0, ARGS_MAX)}…` : json;
|
|
23
|
-
};
|
|
24
|
-
const toRows = (connections) => {
|
|
25
|
-
const rows = [];
|
|
26
|
-
for (const connection of connections) {
|
|
27
|
-
const connectionId = connection.id.toString();
|
|
28
|
-
if (connection.subscriptions.length === 0) {
|
|
29
|
-
rows.push({
|
|
30
|
-
admin: connection.admin,
|
|
31
|
-
connectionId: connection.id,
|
|
32
|
-
key: `c${connectionId}`,
|
|
33
|
-
subscription: null
|
|
34
|
-
});
|
|
35
|
-
continue;
|
|
36
|
-
}
|
|
37
|
-
connection.subscriptions.forEach((subscription, index) => {
|
|
38
|
-
rows.push({
|
|
39
|
-
admin: connection.admin,
|
|
40
|
-
connectionId: connection.id,
|
|
41
|
-
key: `c${connectionId}-s${index.toString()}`,
|
|
42
|
-
subscription
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
return rows;
|
|
47
|
-
};
|
|
48
|
-
const DASH = /* @__PURE__ */ jsxDEV("span", {
|
|
49
|
-
className: "text-muted-foreground",
|
|
50
|
-
children: "—"
|
|
51
|
-
}, void 0, false);
|
|
52
|
-
const SubscriptionsPanel = (t0) => {
|
|
53
|
-
const $ = c(22);
|
|
54
|
-
const {
|
|
55
|
-
initialShardKey
|
|
56
|
-
} = t0;
|
|
57
|
-
const t = useT();
|
|
58
|
-
const [shardKey, setShardKey] = useState(initialShardKey ?? "");
|
|
59
|
-
let t1;
|
|
60
|
-
if ($[0] !== shardKey) {
|
|
61
|
-
t1 = shardKey.trim();
|
|
62
|
-
$[0] = shardKey;
|
|
63
|
-
$[1] = t1;
|
|
64
|
-
} else {
|
|
65
|
-
t1 = $[1];
|
|
66
|
-
}
|
|
67
|
-
const debouncedShard = useDebounced(t1, 400);
|
|
68
|
-
let t2;
|
|
69
|
-
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
70
|
-
t2 = {};
|
|
71
|
-
$[2] = t2;
|
|
72
|
-
} else {
|
|
73
|
-
t2 = $[2];
|
|
74
|
-
}
|
|
75
|
-
let t3;
|
|
76
|
-
if ($[3] !== debouncedShard) {
|
|
77
|
-
t3 = {
|
|
78
|
-
keepPreviousData: true,
|
|
79
|
-
shardKey: debouncedShard
|
|
80
|
-
};
|
|
81
|
-
$[3] = debouncedShard;
|
|
82
|
-
$[4] = t3;
|
|
83
|
-
} else {
|
|
84
|
-
t3 = $[4];
|
|
85
|
-
}
|
|
86
|
-
const {
|
|
87
|
-
data: result,
|
|
88
|
-
error,
|
|
89
|
-
errorSource,
|
|
90
|
-
refetch
|
|
91
|
-
} = useAdminQuery(ADMIN_FUNCTIONS.listSubscriptions, t2, t3);
|
|
92
|
-
useAutoRefresh(refetch, true);
|
|
93
|
-
let t4;
|
|
94
|
-
if ($[5] !== error || $[6] !== errorSource || $[7] !== result || $[8] !== shardKey || $[9] !== t) {
|
|
95
|
-
const rows = result === void 0 ? [] : toRows(result.connections);
|
|
96
|
-
let t5;
|
|
97
|
-
if ($[11] !== shardKey) {
|
|
98
|
-
t5 = /* @__PURE__ */ jsxDEV(ShardInput, {
|
|
99
|
-
onChange: setShardKey,
|
|
100
|
-
testId: "subs-shard-input",
|
|
101
|
-
value: shardKey
|
|
102
|
-
}, void 0, false);
|
|
103
|
-
$[11] = shardKey;
|
|
104
|
-
$[12] = t5;
|
|
105
|
-
} else {
|
|
106
|
-
t5 = $[12];
|
|
107
|
-
}
|
|
108
|
-
let t6;
|
|
109
|
-
if ($[13] !== result || $[14] !== t) {
|
|
110
|
-
t6 = result !== void 0 && /* @__PURE__ */ jsxDEV("div", {
|
|
111
|
-
className: "ml-auto flex items-center gap-2 text-sm text-muted-foreground",
|
|
112
|
-
"data-testid": "subs-count",
|
|
113
|
-
children: [/* @__PURE__ */ jsxDEV(Badge, {
|
|
114
|
-
variant: "secondary",
|
|
115
|
-
children: t("{count} connections", {
|
|
116
|
-
count: result.totalConnections
|
|
117
|
-
})
|
|
118
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(Badge, {
|
|
119
|
-
variant: "secondary",
|
|
120
|
-
children: t("{count} subscriptions", {
|
|
121
|
-
count: result.totalSubscriptions
|
|
122
|
-
})
|
|
123
|
-
}, void 0, false)]
|
|
124
|
-
}, void 0, true);
|
|
125
|
-
$[13] = result;
|
|
126
|
-
$[14] = t;
|
|
127
|
-
$[15] = t6;
|
|
128
|
-
} else {
|
|
129
|
-
t6 = $[15];
|
|
130
|
-
}
|
|
131
|
-
let t7;
|
|
132
|
-
if ($[16] !== t5 || $[17] !== t6) {
|
|
133
|
-
t7 = /* @__PURE__ */ jsxDEV("div", {
|
|
134
|
-
className: "flex flex-wrap items-center gap-2",
|
|
135
|
-
children: [t5, t6]
|
|
136
|
-
}, void 0, true);
|
|
137
|
-
$[16] = t5;
|
|
138
|
-
$[17] = t6;
|
|
139
|
-
$[18] = t7;
|
|
140
|
-
} else {
|
|
141
|
-
t7 = $[18];
|
|
142
|
-
}
|
|
143
|
-
let t8;
|
|
144
|
-
if ($[19] !== error || $[20] !== errorSource) {
|
|
145
|
-
t8 = error !== null && /* @__PURE__ */ jsxDEV(ErrorAlert, {
|
|
146
|
-
error: errorSource,
|
|
147
|
-
testId: "subs-error"
|
|
148
|
-
}, void 0, false);
|
|
149
|
-
$[19] = error;
|
|
150
|
-
$[20] = errorSource;
|
|
151
|
-
$[21] = t8;
|
|
152
|
-
} else {
|
|
153
|
-
t8 = $[21];
|
|
154
|
-
}
|
|
155
|
-
t4 = /* @__PURE__ */ jsxDEV("div", {
|
|
156
|
-
className: "flex flex-col gap-4",
|
|
157
|
-
"data-testid": "subs-panel",
|
|
158
|
-
children: [t7, t8, error === null && result !== void 0 && rows.length === 0 && /* @__PURE__ */ jsxDEV(EmptyState, {
|
|
159
|
-
description: t("Active WebSocket subscriptions on this shard."),
|
|
160
|
-
icon: /* @__PURE__ */ jsxDEV("svg", {
|
|
161
|
-
"aria-hidden": "true",
|
|
162
|
-
fill: "none",
|
|
163
|
-
stroke: "currentColor",
|
|
164
|
-
strokeLinecap: "round",
|
|
165
|
-
strokeLinejoin: "round",
|
|
166
|
-
strokeWidth: 1.6,
|
|
167
|
-
viewBox: "0 0 24 24",
|
|
168
|
-
children: /* @__PURE__ */ jsxDEV("path", {
|
|
169
|
-
d: "M5 12a7 7 0 0 1 14 0M8 12a4 4 0 0 1 8 0M12 12v8m0-8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
|
|
170
|
-
}, void 0, false)
|
|
171
|
-
}, void 0, false),
|
|
172
|
-
testId: "subs-empty",
|
|
173
|
-
title: t("No active subscriptions.")
|
|
174
|
-
}, void 0, false), error === null && rows.length > 0 && /* @__PURE__ */ jsxDEV(Card, {
|
|
175
|
-
className: "overflow-hidden py-0",
|
|
176
|
-
children: /* @__PURE__ */ jsxDEV(CardContent, {
|
|
177
|
-
className: "px-0",
|
|
178
|
-
children: /* @__PURE__ */ jsxDEV(Table, {
|
|
179
|
-
"data-testid": "subs-table",
|
|
180
|
-
children: [/* @__PURE__ */ jsxDEV(TableHeader, {
|
|
181
|
-
children: /* @__PURE__ */ jsxDEV(TableRow, {
|
|
182
|
-
children: [/* @__PURE__ */ jsxDEV(TableHead, {
|
|
183
|
-
children: t("Connection")
|
|
184
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
185
|
-
children: t("Function path")
|
|
186
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
187
|
-
children: t("Table")
|
|
188
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
189
|
-
children: t("Arguments")
|
|
190
|
-
}, void 0, false)]
|
|
191
|
-
}, void 0, true)
|
|
192
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
|
|
193
|
-
children: rows.map((row) => {
|
|
194
|
-
const {
|
|
195
|
-
subscription
|
|
196
|
-
} = row;
|
|
197
|
-
const args = formatArguments(subscription?.args);
|
|
198
|
-
return /* @__PURE__ */ jsxDEV(TableRow, {
|
|
199
|
-
"data-testid": "subs-row",
|
|
200
|
-
children: [/* @__PURE__ */ jsxDEV(TableCell, {
|
|
201
|
-
className: "font-medium tabular-nums",
|
|
202
|
-
children: /* @__PURE__ */ jsxDEV("span", {
|
|
203
|
-
className: "inline-flex items-center gap-1.5",
|
|
204
|
-
children: ["#", row.connectionId, row.admin && /* @__PURE__ */ jsxDEV(Badge, {
|
|
205
|
-
variant: "outline",
|
|
206
|
-
children: t("admin")
|
|
207
|
-
}, void 0, false)]
|
|
208
|
-
}, void 0, true)
|
|
209
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
210
|
-
className: "font-mono text-xs",
|
|
211
|
-
children: subscription?.functionPath ?? DASH
|
|
212
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
213
|
-
children: subscription?.table ?? DASH
|
|
214
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
215
|
-
className: "max-w-[32ch] truncate font-mono text-xs text-muted-foreground",
|
|
216
|
-
title: args || void 0,
|
|
217
|
-
children: args || DASH
|
|
218
|
-
}, void 0, false)]
|
|
219
|
-
}, row.key, true);
|
|
220
|
-
})
|
|
221
|
-
}, void 0, false)]
|
|
222
|
-
}, void 0, true)
|
|
223
|
-
}, void 0, false)
|
|
224
|
-
}, void 0, false)]
|
|
225
|
-
}, void 0, true);
|
|
226
|
-
$[5] = error;
|
|
227
|
-
$[6] = errorSource;
|
|
228
|
-
$[7] = result;
|
|
229
|
-
$[8] = shardKey;
|
|
230
|
-
$[9] = t;
|
|
231
|
-
$[10] = t4;
|
|
232
|
-
} else {
|
|
233
|
-
t4 = $[10];
|
|
234
|
-
}
|
|
235
|
-
return t4;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
export { SubscriptionsPanel as default };
|
|
1
|
+
import{c as T}from"react/compiler-runtime";import{useState as j}from"react";import{E as K}from"../packem_shared/error-alert-B59DnrDI.js";import{ShardInput as P}from"../packem_shared/ShardInput-BVn2iCU0.js";import{g as $}from"../packem_shared/badge-BbuuAio7.js";import{c as _,u as D}from"../packem_shared/card-CIDGUN6K.js";import{E as F}from"../packem_shared/empty-state-Cg7t_8qu.js";import{n as L,d as O,m as C,p as g,f as U,u as N}from"../packem_shared/table-DdJBrClo.js";import{K as W}from"../packem_shared/use-admin-query-Di3fLE8H.js";import{useAutoRefresh as B}from"../packem_shared/DEFAULT_AUTO_REFRESH_MS-BCC8_4BQ.js";import J from"../packem_shared/useDebounced-Ihdiid_k.js";import{useT as Q}from"../packem_shared/DEFAULT_LOCALE-BZ4NojpD.js";import{ADMIN_FUNCTIONS as R}from"../packem_shared/ADMIN_FUNCTIONS-BYNSbBVE.js";import{jsx as e,jsxs as c}from"react/jsx-runtime";const E=80,X=a=>{if(a===void 0)return"";const t=JSON.stringify(a);return t.length>E?`${t.slice(0,E)}…`:t},Z=a=>{const t=[];for(const o of a){const n=o.id.toString();if(o.subscriptions.length===0){t.push({admin:o.admin,connectionId:o.id,key:`c${n}`,subscription:null});continue}o.subscriptions.forEach((r,S)=>{t.push({admin:o.admin,connectionId:o.id,key:`c${n}-s${S.toString()}`,subscription:r})})}return t},w=e("span",{className:"text-muted-foreground",children:"—"}),at=a=>{const t=T(22),{initialShardKey:o}=a,n=Q(),[r,S]=j(o??"");let u;t[0]!==r?(u=r.trim(),t[0]=r,t[1]=u):u=t[1];const y=J(u,400);let h;t[2]===Symbol.for("react.memo_cache_sentinel")?(h={},t[2]=h):h=t[2];let p;t[3]!==y?(p={keepPreviousData:!0,shardKey:y},t[3]=y,t[4]=p):p=t[4];const{data:i,error:s,errorSource:m,refetch:M}=W(R.listSubscriptions,h,p);B(M,!0);let f;if(t[5]!==s||t[6]!==m||t[7]!==i||t[8]!==r||t[9]!==n){const k=i===void 0?[]:Z(i.connections);let l;t[11]!==r?(l=e(P,{onChange:S,testId:"subs-shard-input",value:r}),t[11]=r,t[12]=l):l=t[12];let d;t[13]!==i||t[14]!==n?(d=i!==void 0&&c("div",{className:"ml-auto flex items-center gap-2 text-sm text-muted-foreground","data-testid":"subs-count",children:[e($,{variant:"secondary",children:n("{count} connections",{count:i.totalConnections})}),e($,{variant:"secondary",children:n("{count} subscriptions",{count:i.totalSubscriptions})})]}),t[13]=i,t[14]=n,t[15]=d):d=t[15];let b;t[16]!==l||t[17]!==d?(b=c("div",{className:"flex flex-wrap items-center gap-2",children:[l,d]}),t[16]=l,t[17]=d,t[18]=b):b=t[18];let v;t[19]!==s||t[20]!==m?(v=s!==null&&e(K,{error:m,testId:"subs-error"}),t[19]=s,t[20]=m,t[21]=v):v=t[21],f=c("div",{className:"flex flex-col gap-4","data-testid":"subs-panel",children:[b,v,s===null&&i!==void 0&&k.length===0&&e(F,{description:n("Active WebSocket subscriptions on this shard."),icon:e("svg",{"aria-hidden":"true",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:e("path",{d:"M5 12a7 7 0 0 1 14 0M8 12a4 4 0 0 1 8 0M12 12v8m0-8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),testId:"subs-empty",title:n("No active subscriptions.")}),s===null&&k.length>0&&e(_,{className:"overflow-hidden py-0",children:e(D,{className:"px-0",children:c(L,{"data-testid":"subs-table",children:[e(O,{children:c(C,{children:[e(g,{children:n("Connection")}),e(g,{children:n("Function path")}),e(g,{children:n("Table")}),e(g,{children:n("Arguments")})]})}),e(U,{children:k.map(x=>{const{subscription:I}=x,A=X(I?.args);return c(C,{"data-testid":"subs-row",children:[e(N,{className:"font-medium tabular-nums",children:c("span",{className:"inline-flex items-center gap-1.5",children:["#",x.connectionId,x.admin&&e($,{variant:"outline",children:n("admin")})]})}),e(N,{className:"font-mono text-xs",children:I?.functionPath??w}),e(N,{children:I?.table??w}),e(N,{className:"max-w-[32ch] truncate font-mono text-xs text-muted-foreground",title:A||void 0,children:A||w})]},x.key)})})]})})})]}),t[5]=s,t[6]=m,t[7]=i,t[8]=r,t[9]=n,t[10]=f}else f=t[10];return f};export{at as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as D}from"react/compiler-runtime";import{useLunora as O}from"@lunora/react";import{g as C}from"../packem_shared/badge-BbuuAio7.js";import{c as K,u as L}from"../packem_shared/card-CIDGUN6K.js";import{E as j}from"../packem_shared/empty-state-Cg7t_8qu.js";import{n as A,d as E,m as T,p as i,f as M,u as c}from"../packem_shared/table-DdJBrClo.js";import{T as Y}from"../packem_shared/use-admin-query-Di3fLE8H.js";import{useAutoRefresh as B}from"../packem_shared/DEFAULT_AUTO_REFRESH_MS-BCC8_4BQ.js";import{useT as F}from"../packem_shared/DEFAULT_LOCALE-BZ4NojpD.js";import{jsx as t,jsxs as s}from"react/jsx-runtime";const G=2e3,H=new Set(["open"]),re=W=>{const e=D(41),{read:x}=W,n=F(),_=O();let S;e[0]!==_||e[1]!==x?(S=()=>Promise.resolve(x?x():_.debug()),e[0]=_,e[1]=x,e[2]=S):S=e[2];const q=S,P=x?"injected":"live";let v;e[3]!==P?(v=["lunora-studio","sync-client-debug",P],e[3]=P,e[4]=v):v=e[4];const{data:l,refetch:z}=Y(v,q);if(B(z,!0,G),!l){let r;e[5]!==n?(r=n("Reading the sync client's state…"),e[5]=n,e[6]=r):r=e[6];let y;e[7]!==n?(y=n("Sync client"),e[7]=n,e[8]=y):y=e[8];let w;return e[9]!==r||e[10]!==y?(w=t(K,{children:t(L,{children:t(j,{description:r,title:y})})}),e[9]=r,e[10]=y,e[11]=w):w=e[11],w}const{pendingWrites:$,shards:b,subscriptions:N}=l;let o;e[12]!==n?(o=n("This Studio session's sync client"),e[12]=n,e[13]=o):o=e[13];let d;e[14]!==o?(d=t("span",{className:"text-sm font-medium",children:o}),e[14]=o,e[15]=d):d=e[15];const R=l.connectionStatus==="connected"?"default":"secondary";let a;e[16]!==l.connectionStatus||e[17]!==R?(a=t(C,{variant:R,children:l.connectionStatus}),e[16]=l.connectionStatus,e[17]=R,e[18]=a):a=e[18];let h;e[19]!==$||e[20]!==n?(h=$>0?t(C,{variant:"secondary",children:n("{count} pending writes",{count:$})}):null,e[19]=$,e[20]=n,e[21]=h):h=e[21];let u;e[22]!==d||e[23]!==a||e[24]!==h?(u=s("div",{className:"flex flex-wrap items-center gap-2",children:[d,a,h]}),e[22]=d,e[23]=a,e[24]=h,e[25]=u):u=e[25];let m;e[26]!==n?(m=n("Reads client.debug() for the client running in this page — not your application's client. Call client.debug() in your app to diagnose a specific stuck overlay there."),e[26]=n,e[27]=m):m=e[27];let p;e[28]!==m?(p=t("p",{className:"text-muted-foreground text-xs",children:m}),e[28]=m,e[29]=p):p=e[29];let f;e[30]!==b||e[31]!==n?(f=b.length===0?t(j,{description:n("No shard connection has been opened yet."),title:n("No shards")}):s(A,{children:[t(E,{children:s(T,{children:[t(i,{children:n("Shard")}),t(i,{children:n("Socket")}),t(i,{children:n("Confirmed watermark")})]})}),t(M,{children:b.map(r=>s(T,{children:[t(c,{children:r.shardKey??n("(default)")}),t(c,{children:t(C,{variant:H.has(r.wsState)?"default":"secondary",children:r.wsState})}),t(c,{children:r.confirmedMutationWatermark})]},r.shardKey??"__default__"))})]}),e[30]=b,e[31]=n,e[32]=f):f=e[32];let g;e[33]!==N||e[34]!==n?(g=N.length===0?t(j,{description:n("This client holds no live queries or shapes."),title:n("No subscriptions")}):s(A,{children:[t(E,{children:s(T,{children:[t(i,{children:n("Subscription")}),t(i,{children:n("Kind")}),t(i,{children:n("Acked")}),t(i,{children:n("Cursor")}),t(i,{children:n("Pending overlays")})]})}),t(M,{children:N.map(r=>s(T,{children:[t(c,{className:"font-mono text-xs",children:r.functionPath}),t(c,{children:r.kind}),t(c,{children:t(C,{variant:r.acked?"default":"secondary",children:r.acked?n("yes"):n("no")})}),t(c,{children:r.serverCursor??"—"}),t(c,{children:r.pendingOptimisticLayers})]},r.id))})]}),e[33]=N,e[34]=n,e[35]=g):g=e[35];let k;return e[36]!==p||e[37]!==f||e[38]!==g||e[39]!==u?(k=t(K,{children:s(L,{className:"flex flex-col gap-4",children:[u,p,f,g]})}),e[36]=p,e[37]=f,e[38]=g,e[39]=u,e[40]=k):k=e[40],k};export{re as default};
|