@lunora/studio 1.0.0-alpha.37 → 1.0.0-alpha.39
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 +10 -10
- package/dist/mount.js +1 -1
- package/dist/packem_chunks/ApiTab.js +3 -3
- package/dist/packem_chunks/AuditPanel.js +3 -3
- package/dist/packem_chunks/ExportImportPanel.js +2 -2
- package/dist/packem_chunks/FileBrowser.js +2 -2
- package/dist/packem_chunks/FunctionRunner.js +1 -1
- package/dist/packem_chunks/FunctionStatsPanel.js +3 -3
- package/dist/packem_chunks/HealthPanel.js +2 -2
- package/dist/packem_chunks/InsightsPanel.js +3 -3
- package/dist/packem_chunks/LogsPanel.js +2 -2
- package/dist/packem_chunks/MailPanel.js +3 -3
- package/dist/packem_chunks/MetricsPanel.js +2 -2
- package/dist/packem_chunks/MigrationsPanel.js +3 -3
- package/dist/packem_chunks/PitrPanel.js +1 -1
- package/dist/packem_chunks/SchemaViewer.js +1 -1
- package/dist/packem_chunks/SecurityAdvisorPanel.js +2 -2
- package/dist/packem_chunks/SettingsPanel.js +2 -2
- package/dist/packem_chunks/SqlEditorPanel.js +149 -139
- 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 +291 -105
- package/dist/packem_chunks/auth-sessions-panel.js +2 -2
- package/dist/packem_chunks/containers-panel.js +1 -1
- package/dist/packem_chunks/dashboards-panel.js +2 -2
- package/dist/packem_chunks/fanout-panel.js +2 -2
- package/dist/packem_chunks/flags-panel.js +2 -2
- 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 +3003 -495
- package/dist/packem_chunks/payments-panel.js +3 -3
- package/dist/packem_chunks/permissions-panel.js +3 -3
- package/dist/packem_chunks/queues-panel.js +242 -219
- package/dist/packem_chunks/rls-panel.js +2 -2
- package/dist/packem_chunks/schedule-panel.js +3 -3
- package/dist/packem_chunks/storage-rules-panel.js +2 -2
- package/dist/packem_chunks/subscriptions-panel.js +2 -2
- package/dist/packem_chunks/users-panel.js +577 -111
- package/dist/packem_chunks/vector-browser.js +1 -1
- package/dist/packem_chunks/workflows-panel.js +2 -2
- package/dist/packem_shared/{ApiDocsPanel-D4CJf2ad.js → ApiDocsPanel-CBma-lnp.js} +1 -1
- package/dist/packem_shared/{ApiReferencePanel-Co_wpRF2.js → ApiReferencePanel-CQM3pPN7.js} +1 -1
- package/dist/packem_shared/{CommandPalette-BUPpbpMc.js → CommandPalette-X2tkbyHk.js} +1 -1
- package/dist/packem_shared/{DataBrowser-BeVNxSVm.js → DataBrowser-D2ywrdId.js} +5 -5
- package/dist/packem_shared/{GlobalDataBrowser-ErfvIs1S.js → GlobalDataBrowser-BkTPLzAY.js} +3 -3
- package/dist/packem_shared/{HomePanel-D9MQk8I7.js → HomePanel-D1Q9LZgK.js} +3 -3
- package/dist/packem_shared/{OpenRpcReferencePanel-DLWzrIx9.js → OpenRpcReferencePanel-Dno-hfDb.js} +1 -1
- package/dist/packem_shared/{ScheduledJobs-ClaNpZsg.js → ScheduledJobs-Ctw4jYtU.js} +2 -2
- package/dist/packem_shared/{Studio-C48P1K5W.js → Studio-lJhzDAze.js} +4 -4
- package/dist/packem_shared/{StudioApp-Cqh-SYm2.js → StudioApp-DiMkupvZ.js} +3 -12
- package/dist/packem_shared/{advisor-view-D3-U4kRR.js → advisor-view-BX8OhG0w.js} +1 -1
- package/dist/packem_shared/{browser-storage-tLOxkIHd.js → browser-storage-BTrX4y3B.js} +32 -2
- package/dist/packem_shared/{data-grid-Jz8FqQ2C.js → data-grid-CdXztApG.js} +1 -1
- package/dist/packem_shared/{error-alert-BBT6D22d.js → error-alert-CXjqyGw9.js} +1 -1
- package/dist/packem_shared/{grid-features-CUr8Z1_O.js → grid-features-BF-KBDFz.js} +128 -65
- package/dist/packem_shared/{home-panel-CoGxi-oj.js → home-panel-TFcRf9Ui.js} +272 -22
- package/dist/packem_shared/{internal-DTsYVn-g.js → internal-CYcbqMjX.js} +15 -3
- package/dist/packem_shared/{reference-view-CSKyUyPl.js → reference-view-DUiJcILV.js} +1 -1
- package/dist/packem_shared/{studio-CPHA_-3I.js → studio-Dh9UlaF_.js} +3 -3
- package/dist/packem_shared/{table-list-sidebar-B5psdSV1.js → table-list-sidebar-UVIXQJdU.js} +1 -1
- package/dist/packem_shared/{use-admin-query-BHPKmPuj.js → use-admin-query-CfHYWx5n.js} +1 -1
- package/dist/packem_shared/use-async-submit-DJQiPc-_.js +91 -0
- package/dist/standalone/{chunk-M55U7NHO.js → chunk-23C4TCRO.js} +1 -1
- package/dist/standalone/{chunk-TO4JQX7W.js → chunk-5ZAA2PVR.js} +1 -1
- package/dist/standalone/{chunk-MPTM7ZU3.js → chunk-676HEBIR.js} +1 -1
- package/dist/standalone/{chunk-Y2ZPNDL7.js → chunk-6VO23MMW.js} +1 -1
- package/dist/standalone/{chunk-OIZ4CHPN.js → chunk-7RE5UW27.js} +1 -1
- package/dist/standalone/chunk-7YXOPTWI.js +1 -0
- package/dist/standalone/{chunk-QLM6FYZW.js → chunk-AAVIFQ4Y.js} +1 -1
- package/dist/standalone/{chunk-ATYUMPDM.js → chunk-AJFQ3LNM.js} +1 -1
- package/dist/standalone/chunk-AJULNB46.js +4 -0
- package/dist/standalone/{chunk-6GFEVKJP.js → chunk-BGXOXASQ.js} +1 -1
- package/dist/standalone/{chunk-2THHW7BC.js → chunk-BKW7FFEO.js} +1 -1
- package/dist/standalone/{chunk-YEVCU7TB.js → chunk-BXOYVWJR.js} +1 -1
- package/dist/standalone/{chunk-DVKPRFIJ.js → chunk-C7WTJLC3.js} +1 -1
- package/dist/standalone/{chunk-AJIUI7DD.js → chunk-CACB34RQ.js} +1 -1
- package/dist/standalone/{chunk-DVC6YWVP.js → chunk-CICVBMEN.js} +1 -1
- package/dist/standalone/{chunk-DWTBY343.js → chunk-CWEAJUHW.js} +1 -1
- package/dist/standalone/{chunk-TOJ3TC35.js → chunk-DECHEGIC.js} +1 -1
- package/dist/standalone/{chunk-PVZI3CXP.js → chunk-E75ANNWX.js} +7 -7
- package/dist/standalone/{chunk-OCHNCAXJ.js → chunk-ERJNDIXC.js} +1 -1
- package/dist/standalone/{chunk-RRAFQ5G2.js → chunk-FKACHRWO.js} +1 -1
- package/dist/standalone/{chunk-46K3NKPA.js → chunk-FSGCANAU.js} +1 -1
- package/dist/standalone/chunk-GLUNBZRI.js +1 -0
- package/dist/standalone/{chunk-5OH3VPZF.js → chunk-H6RKXQZU.js} +1 -1
- package/dist/standalone/chunk-HZTGDL4L.js +1 -0
- package/dist/standalone/{chunk-FCSPAJW4.js → chunk-I7ZZRM7I.js} +1 -1
- package/dist/standalone/{chunk-764T6X6X.js → chunk-IXDH4GL5.js} +1 -1
- package/dist/standalone/{chunk-ZU4DZ6NK.js → chunk-J46WXQYL.js} +1 -1
- package/dist/standalone/{chunk-PACH5AHG.js → chunk-JVODY4EP.js} +1 -1
- package/dist/standalone/chunk-KSKXW5PX.js +1 -0
- package/dist/standalone/chunk-L7SK4ZZD.js +1 -0
- package/dist/standalone/chunk-LNZIB2MD.js +1 -0
- package/dist/standalone/{chunk-LD2R263D.js → chunk-LYB5L53X.js} +1 -1
- package/dist/standalone/chunk-MJWVMKQ4.js +6 -0
- package/dist/standalone/chunk-MT2J3H7O.js +3 -0
- package/dist/standalone/{chunk-VTGBPW24.js → chunk-N746FOQP.js} +1 -1
- package/dist/standalone/{chunk-U4OAQPBT.js → chunk-NC6MBMSI.js} +1 -1
- package/dist/standalone/chunk-NN27EDQB.js +1 -0
- package/dist/standalone/chunk-NY6GDADQ.js +1 -0
- package/dist/standalone/{chunk-JE2YOAB7.js → chunk-OY3HD7BJ.js} +1 -1
- package/dist/standalone/{chunk-ILCTSAOB.js → chunk-P5HJXCZS.js} +1 -1
- package/dist/standalone/chunk-PTS5TW3J.js +1 -0
- package/dist/standalone/chunk-QDBOPDJ7.js +1 -0
- package/dist/standalone/{chunk-7SLSB2TS.js → chunk-QHFTGJPS.js} +2 -2
- package/dist/standalone/chunk-SSI4G2MY.js +1 -0
- package/dist/standalone/chunk-TH45YG6Q.js +1 -0
- package/dist/standalone/{chunk-WXPWVBIY.js → chunk-UGUEC6BC.js} +1 -1
- package/dist/standalone/{chunk-K3GNLVYK.js → chunk-UKDJ4H7I.js} +1 -1
- package/dist/standalone/chunk-V6IWFYAQ.js +1 -0
- package/dist/standalone/{chunk-BQUQS7QN.js → chunk-V7SRH36W.js} +1 -1
- package/dist/standalone/chunk-VON7JUPG.js +1 -0
- package/dist/standalone/{chunk-X5P2WRYI.js → chunk-WPNXY7IS.js} +1 -1
- package/dist/standalone/{chunk-PZ7HD5T2.js → chunk-X33MSJPP.js} +1 -1
- package/dist/standalone/{chunk-BI35RXKQ.js → chunk-XRNXOIVZ.js} +1 -1
- package/dist/standalone/{chunk-TDL7NEWA.js → chunk-YBGC4PPD.js} +1 -1
- package/dist/standalone/{chunk-XLQ4BHBD.js → chunk-YNZ7ARWW.js} +1 -1
- package/dist/standalone/{chunk-SLKF2L74.js → chunk-YTO65GHS.js} +1 -1
- package/dist/standalone/{chunk-6WRZP62V.js → chunk-ZE6FT5Z3.js} +1 -1
- package/dist/standalone/studio.js +31 -31
- package/dist/styles.css +1 -1
- package/package.json +4 -4
- package/dist/packem_shared/use-auth-capabilities-C-VH0oJJ.js +0 -32
- package/dist/standalone/chunk-22W5VKZ6.js +0 -1
- package/dist/standalone/chunk-2GGMGPEP.js +0 -1
- package/dist/standalone/chunk-7VF3IAAW.js +0 -2
- package/dist/standalone/chunk-BACPICH6.js +0 -1
- package/dist/standalone/chunk-DORBUITF.js +0 -1
- package/dist/standalone/chunk-EUIHTPKI.js +0 -1
- package/dist/standalone/chunk-IOFMK4D7.js +0 -1
- package/dist/standalone/chunk-LI43EKM6.js +0 -1
- package/dist/standalone/chunk-MPYFGAOW.js +0 -1
- package/dist/standalone/chunk-NKJDGOM3.js +0 -1
- package/dist/standalone/chunk-OY3GVYS7.js +0 -4
- package/dist/standalone/chunk-PN5NCZDX.js +0 -1
- package/dist/standalone/chunk-RSEEHNFI.js +0 -1
- package/dist/standalone/chunk-X7MMBSNW.js +0 -1
- package/dist/standalone/chunk-XUGSA2NG.js +0 -1
- package/dist/standalone/chunk-ZYRGPDZB.js +0 -1
|
@@ -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, h as formatCell } from '../packem_shared/internal-
|
|
10
|
+
import { f as fireAndForget, e as errorMessage, h as formatCell } from '../packem_shared/internal-CYcbqMjX.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-CfHYWx5n.js';
|
|
10
10
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
11
11
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-BHHJi3Gb.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-CYcbqMjX.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-BHHJi3Gb.js';
|
|
8
|
-
import { c as callOptions, a as adminRef, g as copyToClipboard } from './internal-
|
|
8
|
+
import { c as callOptions, a as adminRef, g as copyToClipboard } from './internal-CYcbqMjX.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-DUiJcILV.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-CYcbqMjX.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-BHHJi3Gb.js';
|
|
9
|
-
import { h as formatCell, f as fireAndForget, c as callOptions, a as adminRef, i as formatTimestamp } from './internal-
|
|
9
|
+
import { h as formatCell, f as fireAndForget, c as callOptions, a as adminRef, i as formatTimestamp } from './internal-CYcbqMjX.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-CdXztApG.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-UVIXQJdU.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-BF-KBDFz.js';
|
|
21
|
+
import { u as useAdminQuery } from './use-admin-query-CfHYWx5n.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-CfHYWx5n.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-UVIXQJdU.js';
|
|
10
|
+
import { G as GridContainer, C as CellValue } from './data-grid-CdXztApG.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-CfHYWx5n.js';
|
|
8
8
|
import './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
9
9
|
import './ADMIN_FUNCTIONS-BHHJi3Gb.js';
|
|
10
|
-
import './internal-
|
|
10
|
+
import './internal-CYcbqMjX.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-TFcRf9Ui.js';
|
|
14
14
|
import 'react/jsx-dev-runtime';
|
package/dist/packem_shared/{OpenRpcReferencePanel-DLWzrIx9.js → OpenRpcReferencePanel-Dno-hfDb.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-DUiJcILV.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-CfHYWx5n.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, i as formatTimestamp, e as errorMessage } from './internal-
|
|
11
|
+
import { f as fireAndForget, i as formatTimestamp, e as errorMessage } from './internal-CYcbqMjX.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-Dh9UlaF_.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-TFcRf9Ui.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-CYcbqMjX.js';
|
|
14
14
|
import './utils-B05Dmz_H.js';
|
|
15
|
-
import './CommandPalette-
|
|
15
|
+
import './CommandPalette-X2tkbyHk.js';
|
|
16
16
|
import 'react/jsx-dev-runtime';
|
|
@@ -3,10 +3,11 @@ 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-Dh9UlaF_.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';
|
|
10
|
+
import { r as resolveOrigin } from './internal-CYcbqMjX.js';
|
|
10
11
|
import STUDIO_ROOT_CLASS from './STUDIO_ROOT_CLASS-D12gX2dV.js';
|
|
11
12
|
import { c as cn } from './utils-B05Dmz_H.js';
|
|
12
13
|
import { B as Button } from './button-BhsN2uZH.js';
|
|
@@ -312,16 +313,6 @@ const StudioLogin = (t0) => {
|
|
|
312
313
|
return t5;
|
|
313
314
|
};
|
|
314
315
|
|
|
315
|
-
const resolveBaseUrl = (explicit) => {
|
|
316
|
-
if (explicit !== void 0 && explicit !== "") {
|
|
317
|
-
return explicit;
|
|
318
|
-
}
|
|
319
|
-
const loc = globalThis.location;
|
|
320
|
-
if (loc?.origin !== void 0 && loc.origin !== "") {
|
|
321
|
-
return loc.origin;
|
|
322
|
-
}
|
|
323
|
-
return "http://localhost:5173";
|
|
324
|
-
};
|
|
325
316
|
const StudioAppBody = (t0) => {
|
|
326
317
|
const $ = c(23);
|
|
327
318
|
const {
|
|
@@ -560,7 +551,7 @@ const StudioApp = (t0) => {
|
|
|
560
551
|
let created;
|
|
561
552
|
if ($[7] !== baseUrl || $[8] !== debouncedToken) {
|
|
562
553
|
created = new LunoraClient({
|
|
563
|
-
url:
|
|
554
|
+
url: resolveOrigin(baseUrl),
|
|
564
555
|
...debouncedToken === "" ? {} : {
|
|
565
556
|
wsToken: debouncedToken
|
|
566
557
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useMemo } from 'react';
|
|
2
|
-
import { E as ErrorAlert } from './error-alert-
|
|
2
|
+
import { E as ErrorAlert } from './error-alert-CXjqyGw9.js';
|
|
3
3
|
import { C as Card, a as CardContent } from './card-DURq3ElK.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
5
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
3
|
-
import { h as formatCell } from './internal-
|
|
3
|
+
import { h as formatCell } from './internal-CYcbqMjX.js';
|
|
4
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
6
|
import { useState, useEffect } from 'react';
|
|
@@ -180,6 +180,36 @@ const usePersistedList = function(key) {
|
|
|
180
180
|
}
|
|
181
181
|
return t3;
|
|
182
182
|
};
|
|
183
|
+
const usePersistedValue = function(key, fallback) {
|
|
184
|
+
const $ = c(6);
|
|
185
|
+
const [list, setList] = usePersistedList(key);
|
|
186
|
+
let t0;
|
|
187
|
+
if ($[0] !== fallback || $[1] !== setList) {
|
|
188
|
+
t0 = (action) => {
|
|
189
|
+
setList((current) => {
|
|
190
|
+
const previous = current[0] ?? fallback;
|
|
191
|
+
return [typeof action === "function" ? action(previous) : action];
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
$[0] = fallback;
|
|
195
|
+
$[1] = setList;
|
|
196
|
+
$[2] = t0;
|
|
197
|
+
} else {
|
|
198
|
+
t0 = $[2];
|
|
199
|
+
}
|
|
200
|
+
const setValue = t0;
|
|
201
|
+
const t1 = list[0] ?? fallback;
|
|
202
|
+
let t2;
|
|
203
|
+
if ($[3] !== setValue || $[4] !== t1) {
|
|
204
|
+
t2 = [t1, setValue];
|
|
205
|
+
$[3] = setValue;
|
|
206
|
+
$[4] = t1;
|
|
207
|
+
$[5] = t2;
|
|
208
|
+
} else {
|
|
209
|
+
t2 = $[5];
|
|
210
|
+
}
|
|
211
|
+
return t2;
|
|
212
|
+
};
|
|
183
213
|
const newId = (prefix) => globalThis.crypto?.randomUUID?.() ?? `${prefix}-${globalThis.performance.now().toString(36)}`;
|
|
184
214
|
|
|
185
|
-
export { SqlResultChart as S, newId as n, usePersistedList as u };
|
|
215
|
+
export { SqlResultChart as S, usePersistedValue as a, 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 { h as formatCell } from './internal-
|
|
3
|
+
import { h as formatCell } from './internal-CYcbqMjX.js';
|
|
4
4
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
5
5
|
|
|
6
6
|
const CellValue = (t0) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { flattenHint } from '@lunora/errors';
|
|
3
|
-
import { b as errorHint, d as errorDocumentationUrl, e as errorMessage } from './internal-
|
|
3
|
+
import { b as errorHint, d as errorDocumentationUrl, e as errorMessage } from './internal-CYcbqMjX.js';
|
|
4
4
|
import { A as Alert } from './alert-CdAET2K_.js';
|
|
5
5
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
6
6
|
|
|
@@ -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 { h as formatCell,
|
|
7
|
+
import { h as formatCell, g as copyToClipboard } from './internal-CYcbqMjX.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";
|
|
@@ -29,6 +29,37 @@ const toCsv = (columns, rows) => {
|
|
|
29
29
|
return [header, ...body].join("\n");
|
|
30
30
|
};
|
|
31
31
|
const toJson = (rows) => JSON.stringify(rows, null, 2);
|
|
32
|
+
const SQL_INSERT_BATCH = 500;
|
|
33
|
+
const sqlIdentifier = (name) => `"${name.replaceAll('"', '""')}"`;
|
|
34
|
+
const sqlLiteral = (value) => {
|
|
35
|
+
if (value === null || value === void 0) {
|
|
36
|
+
return "NULL";
|
|
37
|
+
}
|
|
38
|
+
if (typeof value === "number") {
|
|
39
|
+
return Number.isFinite(value) ? String(value) : "NULL";
|
|
40
|
+
}
|
|
41
|
+
if (typeof value === "bigint") {
|
|
42
|
+
return String(value);
|
|
43
|
+
}
|
|
44
|
+
if (typeof value === "boolean") {
|
|
45
|
+
return value ? "1" : "0";
|
|
46
|
+
}
|
|
47
|
+
const text = typeof value === "string" ? value : JSON.stringify(value);
|
|
48
|
+
return `'${text.replaceAll("'", "''")}'`;
|
|
49
|
+
};
|
|
50
|
+
const toSql = (name, columns, rows) => {
|
|
51
|
+
if (columns.length === 0 || rows.length === 0) {
|
|
52
|
+
return "";
|
|
53
|
+
}
|
|
54
|
+
const columnList = columns.map((column) => sqlIdentifier(column)).join(", ");
|
|
55
|
+
const statements = [];
|
|
56
|
+
for (let start = 0; start < rows.length; start += SQL_INSERT_BATCH) {
|
|
57
|
+
const values = rows.slice(start, start + SQL_INSERT_BATCH).map((row) => ` (${columns.map((column) => sqlLiteral(row[column])).join(", ")})`).join(",\n");
|
|
58
|
+
statements.push(`INSERT INTO ${sqlIdentifier(name)} (${columnList}) VALUES
|
|
59
|
+
${values};`);
|
|
60
|
+
}
|
|
61
|
+
return statements.join("\n\n");
|
|
62
|
+
};
|
|
32
63
|
const downloadFile = (filename, content, mime) => {
|
|
33
64
|
if (!("document" in globalThis)) {
|
|
34
65
|
return;
|
|
@@ -45,7 +76,7 @@ const downloadFile = (filename, content, mime) => {
|
|
|
45
76
|
globalThis.URL.revokeObjectURL(url);
|
|
46
77
|
};
|
|
47
78
|
const ExportMenu = (t0) => {
|
|
48
|
-
const $ = c(
|
|
79
|
+
const $ = c(36);
|
|
49
80
|
const {
|
|
50
81
|
columns,
|
|
51
82
|
name,
|
|
@@ -77,96 +108,131 @@ const ExportMenu = (t0) => {
|
|
|
77
108
|
t2 = $[6];
|
|
78
109
|
}
|
|
79
110
|
const onJson = t2;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
111
|
+
let t3;
|
|
112
|
+
if ($[7] !== columns || $[8] !== name || $[9] !== rows) {
|
|
113
|
+
t3 = () => {
|
|
114
|
+
downloadFile(`${name}.sql`, toSql(name, columns, rows), "application/sql;charset=utf-8");
|
|
115
|
+
};
|
|
116
|
+
$[7] = columns;
|
|
117
|
+
$[8] = name;
|
|
118
|
+
$[9] = rows;
|
|
119
|
+
$[10] = t3;
|
|
120
|
+
} else {
|
|
121
|
+
t3 = $[10];
|
|
122
|
+
}
|
|
123
|
+
const onSql = t3;
|
|
124
|
+
const t4 = rows.length === 0;
|
|
125
|
+
let t5;
|
|
126
|
+
if ($[11] !== t4) {
|
|
127
|
+
t5 = /* @__PURE__ */ jsxDEV(DropdownMenuTrigger, {
|
|
84
128
|
className: CONTROL_BTN,
|
|
85
129
|
"data-testid": "grid-export",
|
|
86
|
-
disabled:
|
|
130
|
+
disabled: t4,
|
|
87
131
|
title: "Exports only the rows loaded on the current page, not the whole table",
|
|
88
132
|
children: "Export page"
|
|
89
133
|
}, void 0, false);
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
134
|
+
$[11] = t4;
|
|
135
|
+
$[12] = t5;
|
|
92
136
|
} else {
|
|
93
|
-
|
|
137
|
+
t5 = $[12];
|
|
94
138
|
}
|
|
95
|
-
let
|
|
96
|
-
if ($[
|
|
97
|
-
|
|
139
|
+
let t6;
|
|
140
|
+
if ($[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
141
|
+
t6 = /* @__PURE__ */ jsxDEV(DropdownMenuLabel, {
|
|
98
142
|
children: "Export loaded rows"
|
|
99
143
|
}, void 0, false);
|
|
100
|
-
$[
|
|
144
|
+
$[13] = t6;
|
|
101
145
|
} else {
|
|
102
|
-
|
|
146
|
+
t6 = $[13];
|
|
103
147
|
}
|
|
104
|
-
let
|
|
105
|
-
if ($[
|
|
106
|
-
|
|
107
|
-
$[
|
|
108
|
-
$[
|
|
148
|
+
let t7;
|
|
149
|
+
if ($[14] !== t) {
|
|
150
|
+
t7 = t("CSV");
|
|
151
|
+
$[14] = t;
|
|
152
|
+
$[15] = t7;
|
|
109
153
|
} else {
|
|
110
|
-
|
|
154
|
+
t7 = $[15];
|
|
111
155
|
}
|
|
112
|
-
let
|
|
113
|
-
if ($[
|
|
114
|
-
|
|
156
|
+
let t8;
|
|
157
|
+
if ($[16] !== onCsv || $[17] !== t7) {
|
|
158
|
+
t8 = /* @__PURE__ */ jsxDEV(DropdownMenuItem, {
|
|
115
159
|
"data-testid": "grid-export-csv",
|
|
116
160
|
onClick: onCsv,
|
|
117
|
-
children:
|
|
161
|
+
children: t7
|
|
118
162
|
}, void 0, false);
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
163
|
+
$[16] = onCsv;
|
|
164
|
+
$[17] = t7;
|
|
165
|
+
$[18] = t8;
|
|
122
166
|
} else {
|
|
123
|
-
|
|
167
|
+
t8 = $[18];
|
|
124
168
|
}
|
|
125
|
-
let
|
|
126
|
-
if ($[
|
|
127
|
-
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
169
|
+
let t9;
|
|
170
|
+
if ($[19] !== t) {
|
|
171
|
+
t9 = t("JSON");
|
|
172
|
+
$[19] = t;
|
|
173
|
+
$[20] = t9;
|
|
130
174
|
} else {
|
|
131
|
-
|
|
175
|
+
t9 = $[20];
|
|
132
176
|
}
|
|
133
|
-
let
|
|
134
|
-
if ($[
|
|
135
|
-
|
|
177
|
+
let t10;
|
|
178
|
+
if ($[21] !== onJson || $[22] !== t9) {
|
|
179
|
+
t10 = /* @__PURE__ */ jsxDEV(DropdownMenuItem, {
|
|
136
180
|
"data-testid": "grid-export-json",
|
|
137
181
|
onClick: onJson,
|
|
138
|
-
children:
|
|
182
|
+
children: t9
|
|
139
183
|
}, void 0, false);
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
184
|
+
$[21] = onJson;
|
|
185
|
+
$[22] = t9;
|
|
186
|
+
$[23] = t10;
|
|
143
187
|
} else {
|
|
144
|
-
|
|
188
|
+
t10 = $[23];
|
|
145
189
|
}
|
|
146
|
-
let
|
|
147
|
-
if ($[
|
|
148
|
-
|
|
190
|
+
let t11;
|
|
191
|
+
if ($[24] !== t) {
|
|
192
|
+
t11 = t("SQL");
|
|
193
|
+
$[24] = t;
|
|
194
|
+
$[25] = t11;
|
|
195
|
+
} else {
|
|
196
|
+
t11 = $[25];
|
|
197
|
+
}
|
|
198
|
+
let t12;
|
|
199
|
+
if ($[26] !== onSql || $[27] !== t11) {
|
|
200
|
+
t12 = /* @__PURE__ */ jsxDEV(DropdownMenuItem, {
|
|
201
|
+
"data-testid": "grid-export-sql",
|
|
202
|
+
onClick: onSql,
|
|
203
|
+
children: t11
|
|
204
|
+
}, void 0, false);
|
|
205
|
+
$[26] = onSql;
|
|
206
|
+
$[27] = t11;
|
|
207
|
+
$[28] = t12;
|
|
208
|
+
} else {
|
|
209
|
+
t12 = $[28];
|
|
210
|
+
}
|
|
211
|
+
let t13;
|
|
212
|
+
if ($[29] !== t10 || $[30] !== t12 || $[31] !== t8) {
|
|
213
|
+
t13 = /* @__PURE__ */ jsxDEV(DropdownMenuContent, {
|
|
149
214
|
align: "end",
|
|
150
|
-
children: [
|
|
215
|
+
children: [t6, t8, t10, t12]
|
|
151
216
|
}, void 0, true);
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
217
|
+
$[29] = t10;
|
|
218
|
+
$[30] = t12;
|
|
219
|
+
$[31] = t8;
|
|
220
|
+
$[32] = t13;
|
|
155
221
|
} else {
|
|
156
|
-
|
|
222
|
+
t13 = $[32];
|
|
157
223
|
}
|
|
158
|
-
let
|
|
159
|
-
if ($[
|
|
160
|
-
|
|
161
|
-
children: [
|
|
224
|
+
let t14;
|
|
225
|
+
if ($[33] !== t13 || $[34] !== t5) {
|
|
226
|
+
t14 = /* @__PURE__ */ jsxDEV(DropdownMenu, {
|
|
227
|
+
children: [t5, t13]
|
|
162
228
|
}, void 0, true);
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
229
|
+
$[33] = t13;
|
|
230
|
+
$[34] = t5;
|
|
231
|
+
$[35] = t14;
|
|
166
232
|
} else {
|
|
167
|
-
|
|
233
|
+
t14 = $[35];
|
|
168
234
|
}
|
|
169
|
-
return
|
|
235
|
+
return t14;
|
|
170
236
|
};
|
|
171
237
|
const ColumnToggle = (t0) => {
|
|
172
238
|
const $ = c(9);
|
|
@@ -458,12 +524,9 @@ const CellDetailDialog = (t0) => {
|
|
|
458
524
|
let t2;
|
|
459
525
|
if ($[2] !== text) {
|
|
460
526
|
t2 = () => {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
return;
|
|
527
|
+
if (copyToClipboard(text)) {
|
|
528
|
+
setCopied(true);
|
|
464
529
|
}
|
|
465
|
-
fireAndForget(clipboard.writeText(text));
|
|
466
|
-
setCopied(true);
|
|
467
530
|
};
|
|
468
531
|
$[2] = text;
|
|
469
532
|
$[3] = t2;
|