@lunora/studio 1.0.0-alpha.30 → 1.0.0-alpha.32
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 +3 -3
- package/dist/index.js +10 -10
- package/dist/mount.d.ts +1 -1
- package/dist/mount.js +3 -2
- package/dist/packem_chunks/ApiTab.js +3 -3
- package/dist/packem_chunks/AuditPanel.js +7 -7
- package/dist/packem_chunks/ExportImportPanel.js +5 -4
- package/dist/packem_chunks/FileBrowser.js +2 -2
- package/dist/packem_chunks/FunctionRunner.js +1 -1
- package/dist/packem_chunks/FunctionStatsPanel.js +72 -70
- package/dist/packem_chunks/HealthPanel.js +3 -3
- package/dist/packem_chunks/InsightsPanel.js +4 -3
- package/dist/packem_chunks/LogsPanel.js +6 -6
- package/dist/packem_chunks/MailPanel.js +8 -7
- package/dist/packem_chunks/MetricsPanel.js +3 -3
- package/dist/packem_chunks/MigrationsPanel.js +7 -7
- package/dist/packem_chunks/PitrPanel.js +1 -1
- package/dist/packem_chunks/SchemaViewer.js +3 -2
- package/dist/packem_chunks/SecurityAdvisorPanel.js +11 -8
- package/dist/packem_chunks/SettingsPanel.js +50 -49
- package/dist/packem_chunks/SqlEditorPanel.js +5 -4
- package/dist/packem_chunks/TableEditor.js +3 -3
- package/dist/packem_chunks/analytics-panel.js +1 -1
- package/dist/packem_chunks/auth-config-panel.js +1 -1
- package/dist/packem_chunks/auth-sessions-panel.js +2 -2
- package/dist/packem_chunks/containers-panel.js +247 -0
- package/dist/packem_chunks/dashboards-panel.js +3 -2
- package/dist/packem_chunks/fanout-panel.js +31 -30
- package/dist/packem_chunks/flags-panel.js +6 -6
- package/dist/packem_chunks/kv-browser.js +2 -2
- package/dist/packem_chunks/log-drains-panel.js +1 -1
- package/dist/packem_chunks/organizations-panel.js +3 -3
- package/dist/packem_chunks/payments-panel.js +6 -5
- package/dist/packem_chunks/permissions-panel.js +12 -11
- package/dist/packem_chunks/queues-panel.js +32 -31
- package/dist/packem_chunks/rls-panel.js +86 -84
- package/dist/packem_chunks/schedule-panel.js +3 -3
- package/dist/packem_chunks/sparkline.js +1 -1
- package/dist/packem_chunks/storage-rules-panel.js +27 -25
- package/dist/packem_chunks/subscriptions-panel.js +33 -31
- package/dist/packem_chunks/users-panel.js +3 -3
- package/dist/packem_chunks/vector-browser.js +1 -1
- package/dist/packem_chunks/workflows-panel.js +2 -2
- package/dist/packem_shared/{ApiDocsPanel-B6u_wnz-.js → ApiDocsPanel-Cu6mD4u7.js} +1 -1
- package/dist/packem_shared/{ApiReferencePanel-Drz4UO0a.js → ApiReferencePanel-Co_wpRF2.js} +1 -1
- package/dist/packem_shared/{CommandPalette-B5BertvU.js → CommandPalette-BUPpbpMc.js} +1 -1
- package/dist/packem_shared/{DataBrowser-ANTHLWWh.js → DataBrowser-DSNK1tPg.js} +5 -5
- package/dist/packem_shared/{GlobalDataBrowser-CjgTG_wa.js → GlobalDataBrowser-ErfvIs1S.js} +3 -3
- package/dist/packem_shared/{HomePanel-c2FodE9t.js → HomePanel-DQk3P8xX.js} +3 -3
- package/dist/packem_shared/{OpenRpcReferencePanel-CspFdbUT.js → OpenRpcReferencePanel-DLWzrIx9.js} +1 -1
- package/dist/packem_shared/{ScheduledJobs-BEJXtsBn.js → ScheduledJobs-ClaNpZsg.js} +2 -2
- package/dist/packem_shared/{Studio-CVTtA_sB.js → Studio-CFTYGEUt.js} +4 -4
- package/dist/packem_shared/{StudioApp-BSYV2fz6.js → StudioApp-Cy9vUwVl.js} +1 -1
- package/dist/packem_shared/{advisor-view-DzqyvUU3.js → advisor-view-D3-U4kRR.js} +5 -5
- package/dist/packem_shared/alert-CdAET2K_.js +68 -0
- package/dist/packem_shared/{app.d-B6MyY_al.d.ts → app.d-CNLRTrWw.d.ts} +1 -1
- package/dist/packem_shared/{bar-chart-Bb__F5-u.js → bar-chart-DSwcWIRy.js} +4 -3
- package/dist/packem_shared/{browser-storage-d03UsV7v.js → browser-storage-tLOxkIHd.js} +3 -67
- package/dist/packem_shared/{data-grid-Dsg6nRjo.js → data-grid-Jz8FqQ2C.js} +1 -1
- package/dist/packem_shared/error-alert-BBT6D22d.js +114 -0
- package/dist/packem_shared/{grid-features-D7nNzBYm.js → grid-features-CUr8Z1_O.js} +1 -1
- package/dist/packem_shared/{home-panel-aOR_drVv.js → home-panel-Bo-Mgrkn.js} +4 -2
- package/dist/packem_shared/{internal-FcNZ3beb.js → internal-DTsYVn-g.js} +30 -1
- package/dist/packem_shared/{reference-view-Doy1XlQq.js → reference-view-CSKyUyPl.js} +3 -2
- package/dist/packem_shared/{sparkline-KgMPHS4u.js → sparkline-BnA1kC9X.js} +1 -1
- package/dist/packem_shared/{studio-dMTJ-kRR.js → studio-Dg2e-dsR.js} +587 -560
- package/dist/packem_shared/{table-list-sidebar-VMo0ftxD.js → table-list-sidebar-B5psdSV1.js} +1 -1
- package/dist/packem_shared/{use-admin-query-BViPA3US.js → use-admin-query-BHPKmPuj.js} +2 -1
- package/dist/packem_shared/{use-auth-capabilities-BHkoBnbZ.js → use-auth-capabilities-C-VH0oJJ.js} +1 -1
- package/dist/standalone/{chunk-N4JI6VQD.js → chunk-25VHPD2I.js} +1 -1
- package/dist/standalone/chunk-2GGMGPEP.js +1 -0
- package/dist/standalone/{chunk-BHTPZS7L.js → chunk-3CJW6NWG.js} +1 -1
- package/dist/standalone/chunk-4H2OJBXO.js +1 -0
- package/dist/standalone/chunk-4MLAVZP4.js +1 -0
- package/dist/standalone/chunk-55YA7ZZI.js +76 -0
- package/dist/standalone/chunk-5OH3VPZF.js +1 -0
- package/dist/standalone/chunk-6GFEVKJP.js +1 -0
- package/dist/standalone/{chunk-ITLLHEVG.js → chunk-764T6X6X.js} +1 -1
- package/dist/standalone/chunk-7M3F6U4L.js +1 -0
- package/dist/standalone/{chunk-KGS7KM4A.js → chunk-7VF3IAAW.js} +1 -1
- package/dist/standalone/chunk-AJIUI7DD.js +1 -0
- package/dist/standalone/{chunk-5NSZVXCS.js → chunk-BACPICH6.js} +1 -1
- package/dist/standalone/chunk-BET2625I.js +1 -0
- package/dist/standalone/chunk-BQUQS7QN.js +1 -0
- package/dist/standalone/chunk-CKSHCYGC.js +2 -0
- package/dist/standalone/chunk-DCECRP45.js +1 -0
- package/dist/standalone/chunk-DFP2DADO.js +1 -0
- package/dist/standalone/chunk-DORBUITF.js +1 -0
- package/dist/standalone/chunk-DVKPRFIJ.js +1 -0
- package/dist/standalone/chunk-E6WUCLSI.js +1 -0
- package/dist/standalone/chunk-E7WLF6IU.js +1 -0
- package/dist/standalone/chunk-EVPLBWUT.js +8 -0
- package/dist/standalone/chunk-FCSPAJW4.js +1 -0
- package/dist/standalone/chunk-G2ICR3DL.js +1 -0
- package/dist/standalone/{chunk-2DS7JLWL.js → chunk-GJ6PGSES.js} +5 -5
- package/dist/standalone/chunk-GMSGZDDH.js +13 -0
- package/dist/standalone/chunk-GVRM4U6W.js +2 -0
- package/dist/standalone/chunk-GZDWDDXN.js +1 -0
- package/dist/standalone/chunk-ISJAJWYI.js +1 -0
- package/dist/standalone/{chunk-G2TFEWEQ.js → chunk-JIDZFLTB.js} +1 -1
- package/dist/standalone/{chunk-RMYA7NAH.js → chunk-K3GNLVYK.js} +1 -1
- package/dist/standalone/chunk-K4ZDRTQM.js +1 -0
- package/dist/standalone/{chunk-ASLGNHAX.js → chunk-LI43EKM6.js} +1 -1
- package/dist/standalone/chunk-MFPTVCJ6.js +1 -0
- package/dist/standalone/chunk-MPYFGAOW.js +1 -0
- package/dist/standalone/{chunk-TICVNLPM.js → chunk-O3NAGRTR.js} +1 -1
- package/dist/standalone/chunk-OV2WFAJX.js +1 -0
- package/dist/standalone/chunk-PA3LN4XJ.js +1 -0
- package/dist/standalone/chunk-PD6WPVYU.js +1 -0
- package/dist/standalone/{chunk-7PBZKXYA.js → chunk-PN5NCZDX.js} +1 -1
- package/dist/standalone/{chunk-YJGANMU7.js → chunk-PVZI3CXP.js} +10 -9
- package/dist/standalone/chunk-PZ7HD5T2.js +1 -0
- package/dist/standalone/{chunk-UGMRUEBU.js → chunk-QAFAJBAW.js} +1 -1
- package/dist/standalone/{chunk-6VTGE3WJ.js → chunk-QBAT52GB.js} +1 -1
- package/dist/standalone/chunk-QHIIRFG7.js +1 -0
- package/dist/standalone/chunk-RSEEHNFI.js +1 -0
- package/dist/standalone/chunk-SFJ5F4DX.js +1 -0
- package/dist/standalone/{chunk-3BP4BTLR.js → chunk-SGDQIWAR.js} +3 -3
- package/dist/standalone/chunk-SYEIXTEU.js +1 -0
- package/dist/standalone/chunk-T5HRXUSY.js +1 -0
- package/dist/standalone/{chunk-OD2POGPJ.js → chunk-TDL7NEWA.js} +1 -1
- package/dist/standalone/chunk-TM7CMA7X.js +1 -0
- package/dist/standalone/chunk-U4OAQPBT.js +1 -0
- package/dist/standalone/chunk-UDSVXA42.js +1 -0
- package/dist/standalone/chunk-UK64ZSUW.js +1 -0
- package/dist/standalone/chunk-VEZO7G5Q.js +3 -0
- package/dist/standalone/chunk-VSHUSN6T.js +1 -0
- package/dist/standalone/chunk-VYMCCC6O.js +1 -0
- package/dist/standalone/{chunk-7RYIQKZA.js → chunk-WXPWVBIY.js} +1 -1
- package/dist/standalone/chunk-X72PYOEW.js +1 -0
- package/dist/standalone/chunk-X7MMBSNW.js +1 -0
- package/dist/standalone/{chunk-6RC6L33K.js → chunk-XIGIWZLO.js} +3 -3
- package/dist/standalone/chunk-XNJNSCLM.js +1 -0
- package/dist/standalone/{chunk-NNISYDNI.js → chunk-XUGSA2NG.js} +1 -1
- package/dist/standalone/{chunk-VXBZQIGY.js → chunk-Y2ZPNDL7.js} +1 -1
- package/dist/standalone/chunk-YM6BBZDN.js +1 -0
- package/dist/standalone/chunk-ZHVTQ37P.js +1 -0
- package/dist/standalone/chunk-ZPP2KOR4.js +1 -0
- package/dist/standalone/studio.js +30 -30
- package/dist/styles.css +1 -1
- package/package.json +6 -5
- package/dist/standalone/chunk-2PDQ4KZ6.js +0 -1
- package/dist/standalone/chunk-57LYXHXH.js +0 -1
- package/dist/standalone/chunk-63XKJQTQ.js +0 -1
- package/dist/standalone/chunk-7POIIWC5.js +0 -3
- package/dist/standalone/chunk-AB6QGMBF.js +0 -1
- package/dist/standalone/chunk-D7HKX4DI.js +0 -1
- package/dist/standalone/chunk-DGWTR4G7.js +0 -1
- package/dist/standalone/chunk-DSX53PBM.js +0 -1
- package/dist/standalone/chunk-DV2MNASX.js +0 -1
- package/dist/standalone/chunk-E7AVZZKO.js +0 -1
- package/dist/standalone/chunk-EGJX34WM.js +0 -1
- package/dist/standalone/chunk-FCR3HKFV.js +0 -1
- package/dist/standalone/chunk-FQKNJSRA.js +0 -76
- package/dist/standalone/chunk-GABMIICA.js +0 -1
- package/dist/standalone/chunk-GZXPPJVK.js +0 -1
- package/dist/standalone/chunk-HFBRE65A.js +0 -1
- package/dist/standalone/chunk-HFMQNUBC.js +0 -1
- package/dist/standalone/chunk-HG7Q5B3H.js +0 -1
- package/dist/standalone/chunk-HTQL7AXU.js +0 -1
- package/dist/standalone/chunk-KG3QTFWE.js +0 -1
- package/dist/standalone/chunk-KODWGUAB.js +0 -1
- package/dist/standalone/chunk-MGFEVTRI.js +0 -1
- package/dist/standalone/chunk-N2QDG3MW.js +0 -1
- package/dist/standalone/chunk-O4PXDNR3.js +0 -1
- package/dist/standalone/chunk-OXCK3ZUG.js +0 -1
- package/dist/standalone/chunk-P7DSVO4U.js +0 -1
- package/dist/standalone/chunk-PKAM3N5C.js +0 -1
- package/dist/standalone/chunk-QGXGBHQO.js +0 -1
- package/dist/standalone/chunk-QHA3TAEJ.js +0 -1
- package/dist/standalone/chunk-QQWC62X7.js +0 -1
- package/dist/standalone/chunk-S53RUBW5.js +0 -1
- package/dist/standalone/chunk-SB4GT6PK.js +0 -1
- package/dist/standalone/chunk-SHIOUDOT.js +0 -1
- package/dist/standalone/chunk-SIDRSX7Y.js +0 -1
- package/dist/standalone/chunk-VJPQUBN6.js +0 -8
- package/dist/standalone/chunk-VMJKJWG6.js +0 -1
- package/dist/standalone/chunk-VPDPN5RR.js +0 -2
- package/dist/standalone/chunk-VSEGZA3J.js +0 -1
- package/dist/standalone/chunk-W7PCVQTE.js +0 -1
- package/dist/standalone/chunk-XLILSHPE.js +0 -1
- package/dist/standalone/chunk-XURNGQSS.js +0 -1
- package/dist/standalone/chunk-YQQJ4N6U.js +0 -1
- package/dist/standalone/chunk-ZH7UES4T.js +0 -2
- package/dist/standalone/chunk-ZQCVDXDL.js +0 -1
|
@@ -6,12 +6,12 @@ import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
|
|
|
6
6
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
7
7
|
import { I as Input } from '../packem_shared/input-XH4r1Pt1.js';
|
|
8
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 { a as useClientQuery } from '../packem_shared/use-admin-query-
|
|
10
|
-
import { u as useAuthCapabilities } from '../packem_shared/use-auth-capabilities-
|
|
9
|
+
import { a as useClientQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
10
|
+
import { u as useAuthCapabilities } from '../packem_shared/use-auth-capabilities-C-VH0oJJ.js';
|
|
11
11
|
import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
|
|
12
12
|
import useDebounced from '../packem_shared/useDebounced-Dxncpg6z.js';
|
|
13
13
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
14
|
-
import { f as fireAndForget, e as errorMessage,
|
|
14
|
+
import { f as fireAndForget, e as errorMessage, i as formatTimestamp, h as formatCell } from '../packem_shared/internal-DTsYVn-g.js';
|
|
15
15
|
import { L as Label } from '../packem_shared/label-D8ykjn5J.js';
|
|
16
16
|
import { M as ModalShell } from '../packem_shared/modal-shell-hyaJvIJ6.js';
|
|
17
17
|
import { jsxDEV, Fragment } from 'react/jsx-dev-runtime';
|
|
@@ -7,7 +7,7 @@ import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
|
7
7
|
import { I as Input } from '../packem_shared/input-XH4r1Pt1.js';
|
|
8
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
9
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
10
|
-
import { f as fireAndForget, e as errorMessage,
|
|
10
|
+
import { f as fireAndForget, e as errorMessage, h as formatCell } from '../packem_shared/internal-DTsYVn-g.js';
|
|
11
11
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
12
12
|
|
|
13
13
|
const DEFAULT_TOP_K = 10;
|
|
@@ -6,10 +6,10 @@ import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
|
6
6
|
import { I as Input } from '../packem_shared/input-XH4r1Pt1.js';
|
|
7
7
|
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';
|
|
8
8
|
import { T as Textarea } from '../packem_shared/textarea-D3gaCU_-.js';
|
|
9
|
-
import { u as useAdminQuery } from '../packem_shared/use-admin-query-
|
|
9
|
+
import { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
10
10
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
11
11
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
12
|
-
import { f as fireAndForget, e as errorMessage, c as callOptions, a as adminRef } from '../packem_shared/internal-
|
|
12
|
+
import { f as fireAndForget, e as errorMessage, c as callOptions, a as adminRef } from '../packem_shared/internal-DTsYVn-g.js';
|
|
13
13
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
14
14
|
|
|
15
15
|
const STATUS_FILTERS = ["queued", "running", "paused", "waiting", "complete", "errored", "terminated"];
|
|
@@ -5,7 +5,7 @@ import { B as Button } from './button-BhsN2uZH.js';
|
|
|
5
5
|
import { E as EmptyState } from './empty-state-DY_oe0k6.js';
|
|
6
6
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
7
7
|
import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
8
|
-
import { c as callOptions, a as adminRef,
|
|
8
|
+
import { c as callOptions, a as adminRef, g as copyToClipboard } from './internal-DTsYVn-g.js';
|
|
9
9
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
10
10
|
|
|
11
11
|
const LIST_TABLES = adminRef(ADMIN_FUNCTIONS.listTables);
|
|
@@ -2,7 +2,7 @@ import { c } from 'react/compiler-runtime';
|
|
|
2
2
|
import { useLunora } from '@lunora/react';
|
|
3
3
|
import { E as EmptyState } from './empty-state-DY_oe0k6.js';
|
|
4
4
|
import { S as Skeleton } from './skeleton-CGhL0p20.js';
|
|
5
|
-
import { u as useAdminSpec, R as ReferenceView } from './reference-view-
|
|
5
|
+
import { u as useAdminSpec, R as ReferenceView } from './reference-view-CSKyUyPl.js';
|
|
6
6
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
7
7
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ import { Dialog } from '@base-ui/react/dialog';
|
|
|
3
3
|
import { useNavigate } from '@tanstack/react-router';
|
|
4
4
|
import { useState, useRef, useEffect } from 'react';
|
|
5
5
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
6
|
-
import { f as fireAndForget } from './internal-
|
|
6
|
+
import { f as fireAndForget } from './internal-DTsYVn-g.js';
|
|
7
7
|
import { c as cn } from './utils-B05Dmz_H.js';
|
|
8
8
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
9
9
|
|
|
@@ -6,19 +6,19 @@ import { ShardInput } from './ShardInput-gx_DZXXn.js';
|
|
|
6
6
|
import { E as EmptyState } from './empty-state-DY_oe0k6.js';
|
|
7
7
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
8
|
import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
9
|
-
import {
|
|
9
|
+
import { h as formatCell, f as fireAndForget, c as callOptions, a as adminRef, i as formatTimestamp } from './internal-DTsYVn-g.js';
|
|
10
10
|
import { useReactTable, getSortedRowModel, getCoreRowModel, flexRender } from '@tanstack/react-table';
|
|
11
11
|
import { useVirtualizer } from '@tanstack/react-virtual';
|
|
12
12
|
import { C as Checkbox } from './checkbox-UNkzAxl-.js';
|
|
13
13
|
import { c as cn } from './utils-B05Dmz_H.js';
|
|
14
14
|
import { f as flooredRectObserver } from './virtual-rect-CVMUskSm.js';
|
|
15
|
-
import { G as GridContainer, C as CellValue, T as TransposedTable } from './data-grid-
|
|
15
|
+
import { G as GridContainer, C as CellValue, T as TransposedTable } from './data-grid-Jz8FqQ2C.js';
|
|
16
16
|
import { jsxDEV, Fragment } from 'react/jsx-dev-runtime';
|
|
17
|
-
import { u as useFacets, T as TableListSidebar, G as GridPagination, D as DataFacets } from './table-list-sidebar-
|
|
17
|
+
import { u as useFacets, T as TableListSidebar, G as GridPagination, D as DataFacets } from './table-list-sidebar-B5psdSV1.js';
|
|
18
18
|
import { toFilterClauses, DataFilters } from './DataFilters-FNquMaiu.js';
|
|
19
19
|
import { M as ModalShell } from './modal-shell-hyaJvIJ6.js';
|
|
20
|
-
import { G as GridActionsBar, C as CellDetailDialog } from './grid-features-
|
|
21
|
-
import { u as useAdminQuery } from './use-admin-query-
|
|
20
|
+
import { G as GridActionsBar, C as CellDetailDialog } from './grid-features-CUr8Z1_O.js';
|
|
21
|
+
import { u as useAdminQuery } from './use-admin-query-BHPKmPuj.js';
|
|
22
22
|
import useDebounced from './useDebounced-Dxncpg6z.js';
|
|
23
23
|
import { r as recordShard, l as loadRecentShards } from './shard-history-DyebH1R5.js';
|
|
24
24
|
|
|
@@ -2,12 +2,12 @@ import { useLunora } from '@lunora/react';
|
|
|
2
2
|
import { useState, useRef, useCallback, useEffect } from 'react';
|
|
3
3
|
import { E as EmptyState } from './empty-state-DY_oe0k6.js';
|
|
4
4
|
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from './table-DsCa9Qp9.js';
|
|
5
|
-
import { a as useClientQuery } from './use-admin-query-
|
|
5
|
+
import { a as useClientQuery } from './use-admin-query-BHPKmPuj.js';
|
|
6
6
|
import { useAutoRefresh } from './DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
|
|
7
7
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
8
|
import { C as CLOUDFLARE_D1_URL } from './cf-links-BZfRdxSE.js';
|
|
9
|
-
import { u as useFacets, T as TableListSidebar, G as GridPagination, D as DataFacets } from './table-list-sidebar-
|
|
10
|
-
import { G as GridContainer, C as CellValue } from './data-grid-
|
|
9
|
+
import { u as useFacets, T as TableListSidebar, G as GridPagination, D as DataFacets } from './table-list-sidebar-B5psdSV1.js';
|
|
10
|
+
import { G as GridContainer, C as CellValue } from './data-grid-Jz8FqQ2C.js';
|
|
11
11
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
12
12
|
|
|
13
13
|
const DEFAULT_PAGE_SIZE = 50;
|
|
@@ -4,11 +4,11 @@ import 'react';
|
|
|
4
4
|
import './badge-B2PKA1-5.js';
|
|
5
5
|
import './card-DURq3ElK.js';
|
|
6
6
|
import './empty-state-DY_oe0k6.js';
|
|
7
|
-
import './use-admin-query-
|
|
7
|
+
import './use-admin-query-BHPKmPuj.js';
|
|
8
8
|
import './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
9
9
|
import './ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
10
|
-
import './internal-
|
|
10
|
+
import './internal-DTsYVn-g.js';
|
|
11
11
|
import './utils-B05Dmz_H.js';
|
|
12
12
|
import './DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js';
|
|
13
|
-
export { H as HomePanel } from './home-panel-
|
|
13
|
+
export { H as HomePanel } from './home-panel-Bo-Mgrkn.js';
|
|
14
14
|
import 'react/jsx-dev-runtime';
|
package/dist/packem_shared/{OpenRpcReferencePanel-CspFdbUT.js → OpenRpcReferencePanel-DLWzrIx9.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { c } from 'react/compiler-runtime';
|
|
|
2
2
|
import { useLunora } from '@lunora/react';
|
|
3
3
|
import { E as EmptyState } from './empty-state-DY_oe0k6.js';
|
|
4
4
|
import { S as Skeleton } from './skeleton-CGhL0p20.js';
|
|
5
|
-
import { u as useAdminSpec, R as ReferenceView } from './reference-view-
|
|
5
|
+
import { u as useAdminSpec, R as ReferenceView } from './reference-view-CSKyUyPl.js';
|
|
6
6
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
7
7
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
8
8
|
|
|
@@ -5,10 +5,10 @@ import { ConfirmButton } from './ConfirmButton-C2eVi2Qv.js';
|
|
|
5
5
|
import { C as Card, a as CardContent } from './card-DURq3ElK.js';
|
|
6
6
|
import { E as EmptyState } from './empty-state-DY_oe0k6.js';
|
|
7
7
|
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from './table-DsCa9Qp9.js';
|
|
8
|
-
import { a as useClientQuery } from './use-admin-query-
|
|
8
|
+
import { a as useClientQuery } from './use-admin-query-BHPKmPuj.js';
|
|
9
9
|
import { useAutoRefresh } from './DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
|
|
10
10
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
11
|
-
import { f as fireAndForget,
|
|
11
|
+
import { f as fireAndForget, i as formatTimestamp, e as errorMessage } from './internal-DTsYVn-g.js';
|
|
12
12
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
13
13
|
|
|
14
14
|
const formatScheduledFor = (value) => Number.isFinite(value) ? formatTimestamp(value, "—") : "—";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import 'react/compiler-runtime';
|
|
2
2
|
import '@tanstack/react-router';
|
|
3
3
|
import 'react';
|
|
4
|
-
export { S as Studio } from './studio-
|
|
4
|
+
export { S as Studio } from './studio-Dg2e-dsR.js';
|
|
5
5
|
import './ErrorBoundary-BzAApI7J.js';
|
|
6
6
|
import './badge-B2PKA1-5.js';
|
|
7
7
|
import './input-XH4r1Pt1.js';
|
|
8
8
|
import './skeleton-CGhL0p20.js';
|
|
9
|
-
import './home-panel-
|
|
9
|
+
import './home-panel-Bo-Mgrkn.js';
|
|
10
10
|
import './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
11
11
|
import './StudioI18nProvider-B-tDCZIi.js';
|
|
12
12
|
import './data-view-params-Cd6yRVbv.js';
|
|
13
|
-
import './internal-
|
|
13
|
+
import './internal-DTsYVn-g.js';
|
|
14
14
|
import './utils-B05Dmz_H.js';
|
|
15
|
-
import './CommandPalette-
|
|
15
|
+
import './CommandPalette-BUPpbpMc.js';
|
|
16
16
|
import 'react/jsx-dev-runtime';
|
|
@@ -3,7 +3,7 @@ import { LunoraClient } from '@lunora/client';
|
|
|
3
3
|
import { LunoraProvider } from '@lunora/react';
|
|
4
4
|
import { useState, useEffect } from 'react';
|
|
5
5
|
import { ErrorBoundary } from './ErrorBoundary-BzAApI7J.js';
|
|
6
|
-
import { u as useTheme, B as BrandMark, T as ThemeProvider, a as TooltipProvider, S as Studio } from './studio-
|
|
6
|
+
import { u as useTheme, B as BrandMark, T as ThemeProvider, a as TooltipProvider, S as Studio } from './studio-Dg2e-dsR.js';
|
|
7
7
|
import useDebounced from './useDebounced-Dxncpg6z.js';
|
|
8
8
|
import { useT, createStudioI18n } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
9
9
|
import { StudioI18nProvider } from './StudioI18nProvider-B-tDCZIi.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useState, useMemo } from 'react';
|
|
2
|
+
import { E as ErrorAlert } from './error-alert-BBT6D22d.js';
|
|
2
3
|
import { C as Card, a as CardContent } from './card-DURq3ElK.js';
|
|
3
4
|
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from './table-DsCa9Qp9.js';
|
|
4
5
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
@@ -49,6 +50,7 @@ const emptyTitle = (t, level) => ({
|
|
|
49
50
|
})[level];
|
|
50
51
|
const AdvisorView = ({
|
|
51
52
|
error = null,
|
|
53
|
+
errorSource,
|
|
52
54
|
rows,
|
|
53
55
|
testId,
|
|
54
56
|
toolbar
|
|
@@ -98,11 +100,9 @@ const AdvisorView = ({
|
|
|
98
100
|
}, void 0, false), toolbar !== void 0 && /* @__PURE__ */ jsxDEV("div", {
|
|
99
101
|
className: "flex flex-wrap items-center gap-2",
|
|
100
102
|
children: toolbar
|
|
101
|
-
}, void 0, false), error !== null && /* @__PURE__ */ jsxDEV(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
role: "alert",
|
|
105
|
-
children: error
|
|
103
|
+
}, void 0, false), error !== null && /* @__PURE__ */ jsxDEV(ErrorAlert, {
|
|
104
|
+
error: errorSource ?? error,
|
|
105
|
+
testId: `${testId}-error`
|
|
106
106
|
}, void 0, false), /* @__PURE__ */ jsxDEV(Card, {
|
|
107
107
|
className: "overflow-hidden py-0",
|
|
108
108
|
children: /* @__PURE__ */ jsxDEV(CardContent, {
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { c as cn } from './utils-B05Dmz_H.js';
|
|
4
|
+
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
5
|
+
|
|
6
|
+
const alertVariants = cva("flex items-start gap-2 rounded-md border px-3 py-2 text-sm [&>svg]:mt-0.5 [&>svg]:size-4 [&>svg]:shrink-0", {
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
variant: "default"
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: "border-border bg-muted/40 text-foreground",
|
|
13
|
+
destructive: "border-destructive/40 bg-destructive/5 text-destructive",
|
|
14
|
+
warning: "border-amber-500/40 bg-amber-500/5 text-amber-700 dark:text-amber-400"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
const Alert = (t0) => {
|
|
19
|
+
const $ = c(10);
|
|
20
|
+
const {
|
|
21
|
+
children,
|
|
22
|
+
className,
|
|
23
|
+
icon,
|
|
24
|
+
testId,
|
|
25
|
+
variant
|
|
26
|
+
} = t0;
|
|
27
|
+
let t1;
|
|
28
|
+
if ($[0] !== className || $[1] !== variant) {
|
|
29
|
+
t1 = cn(alertVariants({
|
|
30
|
+
variant
|
|
31
|
+
}), className);
|
|
32
|
+
$[0] = className;
|
|
33
|
+
$[1] = variant;
|
|
34
|
+
$[2] = t1;
|
|
35
|
+
} else {
|
|
36
|
+
t1 = $[2];
|
|
37
|
+
}
|
|
38
|
+
let t2;
|
|
39
|
+
if ($[3] !== children) {
|
|
40
|
+
t2 = /* @__PURE__ */ jsxDEV("div", {
|
|
41
|
+
className: "min-w-0 flex-1",
|
|
42
|
+
children
|
|
43
|
+
}, void 0, false);
|
|
44
|
+
$[3] = children;
|
|
45
|
+
$[4] = t2;
|
|
46
|
+
} else {
|
|
47
|
+
t2 = $[4];
|
|
48
|
+
}
|
|
49
|
+
let t3;
|
|
50
|
+
if ($[5] !== icon || $[6] !== t1 || $[7] !== t2 || $[8] !== testId) {
|
|
51
|
+
t3 = /* @__PURE__ */ jsxDEV("div", {
|
|
52
|
+
className: t1,
|
|
53
|
+
"data-testid": testId,
|
|
54
|
+
role: "alert",
|
|
55
|
+
children: [icon, t2]
|
|
56
|
+
}, void 0, true);
|
|
57
|
+
$[5] = icon;
|
|
58
|
+
$[6] = t1;
|
|
59
|
+
$[7] = t2;
|
|
60
|
+
$[8] = testId;
|
|
61
|
+
$[9] = t3;
|
|
62
|
+
} else {
|
|
63
|
+
t3 = $[9];
|
|
64
|
+
}
|
|
65
|
+
return t3;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { Alert as A };
|
|
@@ -115,7 +115,7 @@ interface FunctionDescriptor {
|
|
|
115
115
|
/** Outcome of a single `FunctionRunner` invocation. */
|
|
116
116
|
type RunStatus = "error" | "idle" | "running" | "success";
|
|
117
117
|
/** Identifier for each built-in studio tab. */
|
|
118
|
-
type StudioTab = "analytics" | "api" | "audit" | "authConfig" | "authSessions" | "dashboards" | "data" | "drains" | "export" | "fanout" | "files" | "flags" | "functions" | "health" | "home" | "insights" | "kv" | "logs" | "mail" | "metrics" | "migrations" | "organizations" | "payments" | "permissions" | "pitr" | "queues" | "realtime" | "rls" | "schedule" | "schema" | "security" | "settings" | "sql" | "storageRules" | "users" | "vectors" | "workflows";
|
|
118
|
+
type StudioTab = "analytics" | "api" | "audit" | "authConfig" | "authSessions" | "containers" | "dashboards" | "data" | "drains" | "export" | "fanout" | "files" | "flags" | "functions" | "health" | "home" | "insights" | "kv" | "logs" | "mail" | "metrics" | "migrations" | "organizations" | "payments" | "permissions" | "pitr" | "queues" | "realtime" | "rls" | "schedule" | "schema" | "security" | "settings" | "sql" | "storageRules" | "users" | "vectors" | "workflows";
|
|
119
119
|
interface StudioProps {
|
|
120
120
|
/**
|
|
121
121
|
* URL path prefix the studio is mounted under, passed to the router as its
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { c } from 'react/compiler-runtime';
|
|
3
|
+
import { LunoraError } from '@lunora/errors';
|
|
3
4
|
import { useMotionValue, useSpring, useTransform, useMotionValueEvent, motion, useReducedMotion } from 'motion/react';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
import { useId, useEffect, useState, use, createContext, useRef } from 'react';
|
|
@@ -554,7 +555,7 @@ function validateChartConfigColors(config) {
|
|
|
554
555
|
if (value.colors) {
|
|
555
556
|
const hasValidThemeKey = VALID_THEME_KEYS.some((themeKey) => value.colors?.[themeKey] !== void 0);
|
|
556
557
|
if (!hasValidThemeKey) {
|
|
557
|
-
throw new
|
|
558
|
+
throw new LunoraError("INTERNAL", `[EvilCharts] Invalid chart config for "${key}": colors object must have at least one theme key (${VALID_THEME_KEYS.join(", ")}). Received empty object or invalid keys.`);
|
|
558
559
|
}
|
|
559
560
|
}
|
|
560
561
|
}
|
|
@@ -563,7 +564,7 @@ const ChartContext = /* @__PURE__ */ React.createContext(null);
|
|
|
563
564
|
function useChart() {
|
|
564
565
|
const context = React.useContext(ChartContext);
|
|
565
566
|
if (!context) {
|
|
566
|
-
throw new
|
|
567
|
+
throw new LunoraError("INTERNAL", "useChart must be used within a <ChartContainer />");
|
|
567
568
|
}
|
|
568
569
|
return context;
|
|
569
570
|
}
|
|
@@ -1521,7 +1522,7 @@ const BarChartContext = /* @__PURE__ */ createContext(null);
|
|
|
1521
1522
|
function useBarChart() {
|
|
1522
1523
|
const context = use(BarChartContext);
|
|
1523
1524
|
if (!context) {
|
|
1524
|
-
throw new
|
|
1525
|
+
throw new LunoraError("INTERNAL", "Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
|
|
1525
1526
|
}
|
|
1526
1527
|
return context;
|
|
1527
1528
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
3
|
-
import {
|
|
4
|
-
import { X as XAxis, B as Bar, T as Tooltip, E as EvilBarChart } from './bar-chart-
|
|
3
|
+
import { h as formatCell } from './internal-DTsYVn-g.js';
|
|
4
|
+
import { X as XAxis, B as Bar, T as Tooltip, E as EvilBarChart } from './bar-chart-DSwcWIRy.js';
|
|
5
5
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
6
|
-
import { cva } from 'class-variance-authority';
|
|
7
|
-
import { c as cn } from './utils-B05Dmz_H.js';
|
|
8
6
|
import { useState, useEffect } from 'react';
|
|
9
7
|
|
|
10
8
|
const MAX_BARS = 50;
|
|
@@ -119,68 +117,6 @@ const SqlResultChart = (t0) => {
|
|
|
119
117
|
return t6;
|
|
120
118
|
};
|
|
121
119
|
|
|
122
|
-
const alertVariants = cva("flex items-start gap-2 rounded-md border px-3 py-2 text-sm [&>svg]:mt-0.5 [&>svg]:size-4 [&>svg]:shrink-0", {
|
|
123
|
-
defaultVariants: {
|
|
124
|
-
variant: "default"
|
|
125
|
-
},
|
|
126
|
-
variants: {
|
|
127
|
-
variant: {
|
|
128
|
-
default: "border-border bg-muted/40 text-foreground",
|
|
129
|
-
destructive: "border-destructive/40 bg-destructive/5 text-destructive",
|
|
130
|
-
warning: "border-amber-500/40 bg-amber-500/5 text-amber-700 dark:text-amber-400"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
const Alert = (t0) => {
|
|
135
|
-
const $ = c(10);
|
|
136
|
-
const {
|
|
137
|
-
children,
|
|
138
|
-
className,
|
|
139
|
-
icon,
|
|
140
|
-
testId,
|
|
141
|
-
variant
|
|
142
|
-
} = t0;
|
|
143
|
-
let t1;
|
|
144
|
-
if ($[0] !== className || $[1] !== variant) {
|
|
145
|
-
t1 = cn(alertVariants({
|
|
146
|
-
variant
|
|
147
|
-
}), className);
|
|
148
|
-
$[0] = className;
|
|
149
|
-
$[1] = variant;
|
|
150
|
-
$[2] = t1;
|
|
151
|
-
} else {
|
|
152
|
-
t1 = $[2];
|
|
153
|
-
}
|
|
154
|
-
let t2;
|
|
155
|
-
if ($[3] !== children) {
|
|
156
|
-
t2 = /* @__PURE__ */ jsxDEV("div", {
|
|
157
|
-
className: "min-w-0 flex-1",
|
|
158
|
-
children
|
|
159
|
-
}, void 0, false);
|
|
160
|
-
$[3] = children;
|
|
161
|
-
$[4] = t2;
|
|
162
|
-
} else {
|
|
163
|
-
t2 = $[4];
|
|
164
|
-
}
|
|
165
|
-
let t3;
|
|
166
|
-
if ($[5] !== icon || $[6] !== t1 || $[7] !== t2 || $[8] !== testId) {
|
|
167
|
-
t3 = /* @__PURE__ */ jsxDEV("div", {
|
|
168
|
-
className: t1,
|
|
169
|
-
"data-testid": testId,
|
|
170
|
-
role: "alert",
|
|
171
|
-
children: [icon, t2]
|
|
172
|
-
}, void 0, true);
|
|
173
|
-
$[5] = icon;
|
|
174
|
-
$[6] = t1;
|
|
175
|
-
$[7] = t2;
|
|
176
|
-
$[8] = testId;
|
|
177
|
-
$[9] = t3;
|
|
178
|
-
} else {
|
|
179
|
-
t3 = $[9];
|
|
180
|
-
}
|
|
181
|
-
return t3;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
120
|
const store = () => {
|
|
185
121
|
try {
|
|
186
122
|
return globalThis.localStorage;
|
|
@@ -246,4 +182,4 @@ const usePersistedList = function(key) {
|
|
|
246
182
|
};
|
|
247
183
|
const newId = (prefix) => globalThis.crypto?.randomUUID?.() ?? `${prefix}-${globalThis.performance.now().toString(36)}`;
|
|
248
184
|
|
|
249
|
-
export {
|
|
185
|
+
export { SqlResultChart as S, newId as n, usePersistedList as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
3
|
-
import {
|
|
3
|
+
import { h as formatCell } from './internal-DTsYVn-g.js';
|
|
4
4
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
5
5
|
|
|
6
6
|
const CellValue = (t0) => {
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { flattenHint } from '@lunora/errors';
|
|
3
|
+
import { b as errorHint, d as errorDocumentationUrl, e as errorMessage } from './internal-DTsYVn-g.js';
|
|
4
|
+
import { A as Alert } from './alert-CdAET2K_.js';
|
|
5
|
+
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
6
|
+
|
|
7
|
+
const ErrorAlert = (t0) => {
|
|
8
|
+
const $ = c(26);
|
|
9
|
+
const {
|
|
10
|
+
className,
|
|
11
|
+
error,
|
|
12
|
+
testId
|
|
13
|
+
} = t0;
|
|
14
|
+
let T0;
|
|
15
|
+
let documentationUrl;
|
|
16
|
+
let t1;
|
|
17
|
+
let t2;
|
|
18
|
+
let t3;
|
|
19
|
+
let t4;
|
|
20
|
+
let t5;
|
|
21
|
+
if ($[0] !== className || $[1] !== error || $[2] !== testId) {
|
|
22
|
+
const hint = errorHint(error);
|
|
23
|
+
let t62;
|
|
24
|
+
if ($[10] !== error) {
|
|
25
|
+
t62 = errorDocumentationUrl(error);
|
|
26
|
+
$[10] = error;
|
|
27
|
+
$[11] = t62;
|
|
28
|
+
} else {
|
|
29
|
+
t62 = $[11];
|
|
30
|
+
}
|
|
31
|
+
documentationUrl = t62;
|
|
32
|
+
T0 = Alert;
|
|
33
|
+
t1 = className;
|
|
34
|
+
t2 = testId;
|
|
35
|
+
t3 = "destructive";
|
|
36
|
+
let t72;
|
|
37
|
+
if ($[12] !== error) {
|
|
38
|
+
t72 = errorMessage(error);
|
|
39
|
+
$[12] = error;
|
|
40
|
+
$[13] = t72;
|
|
41
|
+
} else {
|
|
42
|
+
t72 = $[13];
|
|
43
|
+
}
|
|
44
|
+
if ($[14] !== t72) {
|
|
45
|
+
t4 = /* @__PURE__ */ jsxDEV("p", {
|
|
46
|
+
className: "font-medium",
|
|
47
|
+
children: t72
|
|
48
|
+
}, void 0, false);
|
|
49
|
+
$[14] = t72;
|
|
50
|
+
$[15] = t4;
|
|
51
|
+
} else {
|
|
52
|
+
t4 = $[15];
|
|
53
|
+
}
|
|
54
|
+
t5 = hint === void 0 ? null : /* @__PURE__ */ jsxDEV("p", {
|
|
55
|
+
className: "mt-1 whitespace-pre-wrap text-xs opacity-90",
|
|
56
|
+
children: flattenHint(hint)
|
|
57
|
+
}, void 0, false);
|
|
58
|
+
$[0] = className;
|
|
59
|
+
$[1] = error;
|
|
60
|
+
$[2] = testId;
|
|
61
|
+
$[3] = T0;
|
|
62
|
+
$[4] = documentationUrl;
|
|
63
|
+
$[5] = t1;
|
|
64
|
+
$[6] = t2;
|
|
65
|
+
$[7] = t3;
|
|
66
|
+
$[8] = t4;
|
|
67
|
+
$[9] = t5;
|
|
68
|
+
} else {
|
|
69
|
+
T0 = $[3];
|
|
70
|
+
documentationUrl = $[4];
|
|
71
|
+
t1 = $[5];
|
|
72
|
+
t2 = $[6];
|
|
73
|
+
t3 = $[7];
|
|
74
|
+
t4 = $[8];
|
|
75
|
+
t5 = $[9];
|
|
76
|
+
}
|
|
77
|
+
let t6;
|
|
78
|
+
if ($[16] !== documentationUrl) {
|
|
79
|
+
t6 = documentationUrl === void 0 ? null : /* @__PURE__ */ jsxDEV("a", {
|
|
80
|
+
"aria-label": "View documentation for this error",
|
|
81
|
+
className: "mt-1 inline-block text-xs underline",
|
|
82
|
+
href: documentationUrl,
|
|
83
|
+
rel: "noreferrer",
|
|
84
|
+
target: "_blank",
|
|
85
|
+
children: "View error docs"
|
|
86
|
+
}, void 0, false);
|
|
87
|
+
$[16] = documentationUrl;
|
|
88
|
+
$[17] = t6;
|
|
89
|
+
} else {
|
|
90
|
+
t6 = $[17];
|
|
91
|
+
}
|
|
92
|
+
let t7;
|
|
93
|
+
if ($[18] !== T0 || $[19] !== t1 || $[20] !== t2 || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== t6) {
|
|
94
|
+
t7 = /* @__PURE__ */ jsxDEV(T0, {
|
|
95
|
+
className: t1,
|
|
96
|
+
testId: t2,
|
|
97
|
+
variant: t3,
|
|
98
|
+
children: [t4, t5, t6]
|
|
99
|
+
}, void 0, true);
|
|
100
|
+
$[18] = T0;
|
|
101
|
+
$[19] = t1;
|
|
102
|
+
$[20] = t2;
|
|
103
|
+
$[21] = t3;
|
|
104
|
+
$[22] = t4;
|
|
105
|
+
$[23] = t5;
|
|
106
|
+
$[24] = t6;
|
|
107
|
+
$[25] = t7;
|
|
108
|
+
} else {
|
|
109
|
+
t7 = $[25];
|
|
110
|
+
}
|
|
111
|
+
return t7;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export { ErrorAlert as E };
|
|
@@ -4,7 +4,7 @@ import { ConfirmButton } from './ConfirmButton-C2eVi2Qv.js';
|
|
|
4
4
|
import { D as DropdownMenuTrigger, a as DropdownMenuLabel, b as DropdownMenuItem, c as DropdownMenuContent, d as DropdownMenu, e as DropdownMenuCheckboxItem, f as DropdownMenuSeparator, g as DropdownMenuGroup } from './dropdown-menu-WY4B_eJO.js';
|
|
5
5
|
import { M as ModalShell } from './modal-shell-hyaJvIJ6.js';
|
|
6
6
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
7
|
-
import {
|
|
7
|
+
import { h as formatCell, f as fireAndForget } from './internal-DTsYVn-g.js';
|
|
8
8
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
9
9
|
|
|
10
10
|
const CONTROL_BTN = "inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1 text-xs font-medium text-foreground outline-none transition-colors hover:bg-accent focus-visible:bg-accent disabled:pointer-events-none disabled:opacity-50";
|
|
@@ -4,10 +4,10 @@ import { useState, useEffect, Suspense, lazy } from 'react';
|
|
|
4
4
|
import { B as Badge } from './badge-B2PKA1-5.js';
|
|
5
5
|
import { a as CardContent, C as Card } from './card-DURq3ElK.js';
|
|
6
6
|
import { E as EmptyState } from './empty-state-DY_oe0k6.js';
|
|
7
|
-
import { u as useAdminQuery } from './use-admin-query-
|
|
7
|
+
import { u as useAdminQuery } from './use-admin-query-BHPKmPuj.js';
|
|
8
8
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
9
9
|
import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
10
|
-
import { f as fireAndForget, c as callOptions, a as adminRef,
|
|
10
|
+
import { f as fireAndForget, c as callOptions, a as adminRef, j as formatBytes } from './internal-DTsYVn-g.js';
|
|
11
11
|
import { c as cn } from './utils-B05Dmz_H.js';
|
|
12
12
|
import { deriveInsights } from './DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js';
|
|
13
13
|
import { useLunora } from '@lunora/react';
|
|
@@ -17,6 +17,7 @@ const STUDIO_FEATURES = adminRef(ADMIN_FUNCTIONS.studioFeatures);
|
|
|
17
17
|
const DEFAULT_STUDIO_FEATURES = {
|
|
18
18
|
analytics: true,
|
|
19
19
|
auth: true,
|
|
20
|
+
containers: true,
|
|
20
21
|
flags: true,
|
|
21
22
|
kv: true,
|
|
22
23
|
mail: true,
|
|
@@ -36,6 +37,7 @@ const coerceFeatures = (raw) => {
|
|
|
36
37
|
return {
|
|
37
38
|
analytics: flag("analytics"),
|
|
38
39
|
auth: flag("auth"),
|
|
40
|
+
containers: flag("containers"),
|
|
39
41
|
flags: flag("flags"),
|
|
40
42
|
kv: flag("kv"),
|
|
41
43
|
mail: flag("mail"),
|
|
@@ -10,6 +10,35 @@ const callOptions = (shardKey) => {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
const errorMessage = (error) => error instanceof Error ? error.message : String(error);
|
|
13
|
+
const errorHint = (error) => {
|
|
14
|
+
if (error === null || typeof error !== "object" || !("hint" in error)) {
|
|
15
|
+
return void 0;
|
|
16
|
+
}
|
|
17
|
+
const {
|
|
18
|
+
hint
|
|
19
|
+
} = error;
|
|
20
|
+
if (typeof hint === "string") {
|
|
21
|
+
return hint;
|
|
22
|
+
}
|
|
23
|
+
return Array.isArray(hint) ? hint.filter((line) => typeof line === "string").join("\n") : void 0;
|
|
24
|
+
};
|
|
25
|
+
const errorDocumentationUrl = (error) => {
|
|
26
|
+
if (error === null || typeof error !== "object" || !("docsUrl" in error)) {
|
|
27
|
+
return void 0;
|
|
28
|
+
}
|
|
29
|
+
const value = error.docsUrl;
|
|
30
|
+
if (typeof value !== "string") {
|
|
31
|
+
return void 0;
|
|
32
|
+
}
|
|
33
|
+
try {
|
|
34
|
+
const {
|
|
35
|
+
protocol
|
|
36
|
+
} = new URL(value);
|
|
37
|
+
return protocol === "http:" || protocol === "https:" ? value : void 0;
|
|
38
|
+
} catch {
|
|
39
|
+
return void 0;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
13
42
|
const formatCell = (value) => {
|
|
14
43
|
if (value === null || value === void 0) {
|
|
15
44
|
return "";
|
|
@@ -65,4 +94,4 @@ const formatTimestamp = (value, fallback = "") => {
|
|
|
65
94
|
return Number.isNaN(date.getTime()) ? String(value) : date.toLocaleString();
|
|
66
95
|
};
|
|
67
96
|
|
|
68
|
-
export { adminRef as a,
|
|
97
|
+
export { adminRef as a, errorHint as b, callOptions as c, errorDocumentationUrl as d, errorMessage as e, fireAndForget as f, copyToClipboard as g, formatCell as h, formatTimestamp as i, formatBytes as j };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { useState, useEffect, createContext, use } from 'react';
|
|
3
|
-
import { e as errorMessage,
|
|
3
|
+
import { e as errorMessage, g as copyToClipboard, f as fireAndForget, c as callOptions, a as adminRef } from './internal-DTsYVn-g.js';
|
|
4
4
|
import { SentIcon, Copy01Icon, Search01Icon } from '@hugeicons/core-free-icons';
|
|
5
5
|
import { HugeiconsIcon } from '@hugeicons/react';
|
|
6
6
|
import { I as Input } from './input-XH4r1Pt1.js';
|
|
@@ -11,6 +11,7 @@ import { B as Badge$1 } from './badge-B2PKA1-5.js';
|
|
|
11
11
|
import { ShardInput } from './ShardInput-gx_DZXXn.js';
|
|
12
12
|
import { L as Label } from './label-D8ykjn5J.js';
|
|
13
13
|
import { T as Textarea } from './textarea-D3gaCU_-.js';
|
|
14
|
+
import { LunoraError } from '@lunora/errors';
|
|
14
15
|
import { useLunora } from '@lunora/react';
|
|
15
16
|
import { c as cn } from './utils-B05Dmz_H.js';
|
|
16
17
|
|
|
@@ -815,7 +816,7 @@ const OperationRunContext = /* @__PURE__ */ createContext(null);
|
|
|
815
816
|
const useOperationRun = () => {
|
|
816
817
|
const value = use(OperationRunContext);
|
|
817
818
|
if (value === null) {
|
|
818
|
-
throw new
|
|
819
|
+
throw new LunoraError("INTERNAL", "useOperationRun must be used within an OperationRunProvider");
|
|
819
820
|
}
|
|
820
821
|
return value;
|
|
821
822
|
};
|