@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,230 +0,0 @@
|
|
|
1
|
-
import { c } from 'react/compiler-runtime';
|
|
2
|
-
import { useLunora } from '@lunora/react';
|
|
3
|
-
import { E as EmptyState } from './empty-state-DY_oe0k6.js';
|
|
4
|
-
import { S as Skeleton } from './skeleton-CGhL0p20.js';
|
|
5
|
-
import { u as useAdminSpec, R as ReferenceView } from './reference-view-DfXN7oWP.js';
|
|
6
|
-
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
7
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
8
|
-
|
|
9
|
-
const HTTP_METHODS = ["get", "post", "put", "patch", "delete", "head", "options", "trace"];
|
|
10
|
-
const jsonSchemaOf = (media) => media?.content?.["application/json"]?.schema;
|
|
11
|
-
const buildResponses = (operation, document) => Object.entries(operation.responses ?? {}).map(([status, raw]) => {
|
|
12
|
-
const name = raw.$ref?.replace("#/components/responses/", "");
|
|
13
|
-
const resolved = name === void 0 ? raw : document.components?.responses?.[name] ?? raw;
|
|
14
|
-
return {
|
|
15
|
-
description: resolved.description,
|
|
16
|
-
schema: jsonSchemaOf(resolved),
|
|
17
|
-
status
|
|
18
|
-
};
|
|
19
|
-
});
|
|
20
|
-
const flattenOperation = (pathKey, httpPath, method, operation, document) => {
|
|
21
|
-
const requestSchema = jsonSchemaOf(operation.requestBody);
|
|
22
|
-
const functionPathConst = requestSchema?.properties?.["functionPath"]?.const;
|
|
23
|
-
const functionPath = typeof functionPathConst === "string" ? functionPathConst : void 0;
|
|
24
|
-
const argsSchema = functionPath === void 0 ? requestSchema : requestSchema?.properties?.["args"];
|
|
25
|
-
const operationId = operation.operationId ?? `${method} ${httpPath}`;
|
|
26
|
-
return {
|
|
27
|
-
argsSchema,
|
|
28
|
-
description: operation.description,
|
|
29
|
-
functionPath,
|
|
30
|
-
httpPath,
|
|
31
|
-
key: pathKey,
|
|
32
|
-
kind: operation["x-lunora-function-kind"],
|
|
33
|
-
method: method.toUpperCase(),
|
|
34
|
-
operationId,
|
|
35
|
-
requestSchema,
|
|
36
|
-
responses: buildResponses(operation, document),
|
|
37
|
-
summary: operation.summary ?? operationId,
|
|
38
|
-
tags: operation.tags ?? [],
|
|
39
|
-
title: operation.summary ?? operationId
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
const collectOperations = (document) => {
|
|
43
|
-
const operations = [];
|
|
44
|
-
for (const [pathKey, pathItem] of Object.entries(document.paths ?? {})) {
|
|
45
|
-
const httpPath = pathKey.includes("#") ? pathKey.slice(0, pathKey.indexOf("#")) : pathKey;
|
|
46
|
-
for (const method of HTTP_METHODS) {
|
|
47
|
-
const operation = pathItem[method];
|
|
48
|
-
if (operation !== void 0) {
|
|
49
|
-
operations.push(flattenOperation(pathKey, httpPath, method, operation, document));
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return operations;
|
|
54
|
-
};
|
|
55
|
-
const parseOpenApi = (raw) => {
|
|
56
|
-
const document = raw ?? {};
|
|
57
|
-
const operations = collectOperations(document);
|
|
58
|
-
const tagMeta = new Map((document.tags ?? []).map((tag) => [tag.name, tag.description]));
|
|
59
|
-
const seenTags = /* @__PURE__ */ new Set();
|
|
60
|
-
const groups = [];
|
|
61
|
-
const pushGroup = (name) => {
|
|
62
|
-
if (seenTags.has(name)) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
seenTags.add(name);
|
|
66
|
-
const members = operations.filter((operation) => (operation.tags[0] ?? "") === name);
|
|
67
|
-
if (members.length > 0) {
|
|
68
|
-
groups.push({
|
|
69
|
-
description: tagMeta.get(name),
|
|
70
|
-
name,
|
|
71
|
-
operations: members
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
for (const tag of document.tags ?? []) {
|
|
76
|
-
pushGroup(tag.name);
|
|
77
|
-
}
|
|
78
|
-
for (const operation of operations) {
|
|
79
|
-
pushGroup(operation.tags[0] ?? "");
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
groups,
|
|
83
|
-
operationByKey: new Map(operations.map((operation) => [operation.key, operation])),
|
|
84
|
-
server: document.servers?.[0]?.url,
|
|
85
|
-
title: document.info?.title ?? "API reference",
|
|
86
|
-
version: document.info?.version
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
const isEmptySpec = (spec) => {
|
|
91
|
-
const {
|
|
92
|
-
paths
|
|
93
|
-
} = spec;
|
|
94
|
-
return paths === void 0 || typeof paths === "object" && paths !== null && Object.keys(paths).length === 0;
|
|
95
|
-
};
|
|
96
|
-
const classifySpec = (spec) => {
|
|
97
|
-
const document = spec;
|
|
98
|
-
return isEmptySpec(document) ? {
|
|
99
|
-
kind: "empty"
|
|
100
|
-
} : {
|
|
101
|
-
kind: "ready",
|
|
102
|
-
spec: document
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
const ApiReferencePanel = (t0) => {
|
|
106
|
-
const $ = c(23);
|
|
107
|
-
const {
|
|
108
|
-
spec: inlineSpec
|
|
109
|
-
} = t0;
|
|
110
|
-
const t = useT();
|
|
111
|
-
const client = useLunora();
|
|
112
|
-
let t1;
|
|
113
|
-
if ($[0] !== client) {
|
|
114
|
-
t1 = () => client.fetchOpenApi();
|
|
115
|
-
$[0] = client;
|
|
116
|
-
$[1] = t1;
|
|
117
|
-
} else {
|
|
118
|
-
t1 = $[1];
|
|
119
|
-
}
|
|
120
|
-
const fetchOpenApi = t1;
|
|
121
|
-
const state = useAdminSpec(inlineSpec, fetchOpenApi, classifySpec);
|
|
122
|
-
let t2;
|
|
123
|
-
if ($[2] !== state.kind || $[3] !== state.spec) {
|
|
124
|
-
t2 = state.kind === "ready" ? parseOpenApi(state.spec) : void 0;
|
|
125
|
-
$[2] = state.kind;
|
|
126
|
-
$[3] = state.spec;
|
|
127
|
-
$[4] = t2;
|
|
128
|
-
} else {
|
|
129
|
-
t2 = $[4];
|
|
130
|
-
}
|
|
131
|
-
const model = t2;
|
|
132
|
-
if (state.kind === "loading") {
|
|
133
|
-
let t32;
|
|
134
|
-
if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
135
|
-
t32 = /* @__PURE__ */ jsxDEV("div", {
|
|
136
|
-
className: "flex flex-col gap-4",
|
|
137
|
-
"data-testid": "api-reference-loading",
|
|
138
|
-
children: [/* @__PURE__ */ jsxDEV(Skeleton, {
|
|
139
|
-
className: "h-8 w-48"
|
|
140
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(Skeleton, {
|
|
141
|
-
className: "h-64 w-full"
|
|
142
|
-
}, void 0, false)]
|
|
143
|
-
}, void 0, true);
|
|
144
|
-
$[5] = t32;
|
|
145
|
-
} else {
|
|
146
|
-
t32 = $[5];
|
|
147
|
-
}
|
|
148
|
-
return t32;
|
|
149
|
-
}
|
|
150
|
-
if (state.kind === "error") {
|
|
151
|
-
let t32;
|
|
152
|
-
if ($[6] !== state.message || $[7] !== t) {
|
|
153
|
-
t32 = t("Couldn't load the OpenAPI spec: {message}", {
|
|
154
|
-
message: state.message
|
|
155
|
-
});
|
|
156
|
-
$[6] = state.message;
|
|
157
|
-
$[7] = t;
|
|
158
|
-
$[8] = t32;
|
|
159
|
-
} else {
|
|
160
|
-
t32 = $[8];
|
|
161
|
-
}
|
|
162
|
-
let t4;
|
|
163
|
-
if ($[9] !== t) {
|
|
164
|
-
t4 = t("API reference unavailable");
|
|
165
|
-
$[9] = t;
|
|
166
|
-
$[10] = t4;
|
|
167
|
-
} else {
|
|
168
|
-
t4 = $[10];
|
|
169
|
-
}
|
|
170
|
-
let t5;
|
|
171
|
-
if ($[11] !== t32 || $[12] !== t4) {
|
|
172
|
-
t5 = /* @__PURE__ */ jsxDEV(EmptyState, {
|
|
173
|
-
description: t32,
|
|
174
|
-
testId: "api-reference-error",
|
|
175
|
-
title: t4
|
|
176
|
-
}, void 0, false);
|
|
177
|
-
$[11] = t32;
|
|
178
|
-
$[12] = t4;
|
|
179
|
-
$[13] = t5;
|
|
180
|
-
} else {
|
|
181
|
-
t5 = $[13];
|
|
182
|
-
}
|
|
183
|
-
return t5;
|
|
184
|
-
}
|
|
185
|
-
if (state.kind === "empty" || model === void 0) {
|
|
186
|
-
let t32;
|
|
187
|
-
if ($[14] !== t) {
|
|
188
|
-
t32 = t("Run `lunora codegen` and wire `_generated/openapi.json` to the worker to render the API reference here.");
|
|
189
|
-
$[14] = t;
|
|
190
|
-
$[15] = t32;
|
|
191
|
-
} else {
|
|
192
|
-
t32 = $[15];
|
|
193
|
-
}
|
|
194
|
-
let t4;
|
|
195
|
-
if ($[16] !== t) {
|
|
196
|
-
t4 = t("No OpenAPI spec configured");
|
|
197
|
-
$[16] = t;
|
|
198
|
-
$[17] = t4;
|
|
199
|
-
} else {
|
|
200
|
-
t4 = $[17];
|
|
201
|
-
}
|
|
202
|
-
let t5;
|
|
203
|
-
if ($[18] !== t32 || $[19] !== t4) {
|
|
204
|
-
t5 = /* @__PURE__ */ jsxDEV(EmptyState, {
|
|
205
|
-
description: t32,
|
|
206
|
-
testId: "api-reference-empty",
|
|
207
|
-
title: t4
|
|
208
|
-
}, void 0, false);
|
|
209
|
-
$[18] = t32;
|
|
210
|
-
$[19] = t4;
|
|
211
|
-
$[20] = t5;
|
|
212
|
-
} else {
|
|
213
|
-
t5 = $[20];
|
|
214
|
-
}
|
|
215
|
-
return t5;
|
|
216
|
-
}
|
|
217
|
-
let t3;
|
|
218
|
-
if ($[21] !== model) {
|
|
219
|
-
t3 = /* @__PURE__ */ jsxDEV(ReferenceView, {
|
|
220
|
-
model
|
|
221
|
-
}, void 0, false);
|
|
222
|
-
$[21] = model;
|
|
223
|
-
$[22] = t3;
|
|
224
|
-
} else {
|
|
225
|
-
t3 = $[22];
|
|
226
|
-
}
|
|
227
|
-
return t3;
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
export { ApiReferencePanel as default };
|
|
@@ -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-DzHCc2Rq.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 };
|