@lunora/studio 1.0.0-alpha.38 → 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.
Files changed (121) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +10 -10
  3. package/dist/mount.js +1 -1
  4. package/dist/packem_chunks/ApiTab.js +3 -3
  5. package/dist/packem_chunks/AuditPanel.js +3 -3
  6. package/dist/packem_chunks/ExportImportPanel.js +2 -2
  7. package/dist/packem_chunks/FileBrowser.js +2 -2
  8. package/dist/packem_chunks/FunctionRunner.js +1 -1
  9. package/dist/packem_chunks/FunctionStatsPanel.js +3 -3
  10. package/dist/packem_chunks/HealthPanel.js +2 -2
  11. package/dist/packem_chunks/InsightsPanel.js +3 -3
  12. package/dist/packem_chunks/LogsPanel.js +2 -2
  13. package/dist/packem_chunks/MailPanel.js +3 -3
  14. package/dist/packem_chunks/MetricsPanel.js +2 -2
  15. package/dist/packem_chunks/MigrationsPanel.js +3 -3
  16. package/dist/packem_chunks/PitrPanel.js +1 -1
  17. package/dist/packem_chunks/SchemaViewer.js +1 -1
  18. package/dist/packem_chunks/SecurityAdvisorPanel.js +2 -2
  19. package/dist/packem_chunks/SettingsPanel.js +2 -2
  20. package/dist/packem_chunks/SqlEditorPanel.js +149 -139
  21. package/dist/packem_chunks/TableEditor.js +3 -3
  22. package/dist/packem_chunks/analytics-panel.js +1 -1
  23. package/dist/packem_chunks/auth-config-panel.js +1 -1
  24. package/dist/packem_chunks/auth-sessions-panel.js +2 -2
  25. package/dist/packem_chunks/containers-panel.js +1 -1
  26. package/dist/packem_chunks/dashboards-panel.js +2 -2
  27. package/dist/packem_chunks/fanout-panel.js +2 -2
  28. package/dist/packem_chunks/flags-panel.js +2 -2
  29. package/dist/packem_chunks/kv-browser.js +2 -2
  30. package/dist/packem_chunks/log-drains-panel.js +1 -1
  31. package/dist/packem_chunks/organizations-panel.js +3 -3
  32. package/dist/packem_chunks/payments-panel.js +3 -3
  33. package/dist/packem_chunks/permissions-panel.js +3 -3
  34. package/dist/packem_chunks/queues-panel.js +242 -219
  35. package/dist/packem_chunks/rls-panel.js +2 -2
  36. package/dist/packem_chunks/schedule-panel.js +3 -3
  37. package/dist/packem_chunks/storage-rules-panel.js +2 -2
  38. package/dist/packem_chunks/subscriptions-panel.js +2 -2
  39. package/dist/packem_chunks/users-panel.js +3 -3
  40. package/dist/packem_chunks/vector-browser.js +1 -1
  41. package/dist/packem_chunks/workflows-panel.js +2 -2
  42. package/dist/packem_shared/{ApiDocsPanel-D4CJf2ad.js → ApiDocsPanel-CBma-lnp.js} +1 -1
  43. package/dist/packem_shared/{ApiReferencePanel-Co_wpRF2.js → ApiReferencePanel-CQM3pPN7.js} +1 -1
  44. package/dist/packem_shared/{CommandPalette-BUPpbpMc.js → CommandPalette-X2tkbyHk.js} +1 -1
  45. package/dist/packem_shared/{DataBrowser-BeVNxSVm.js → DataBrowser-D2ywrdId.js} +5 -5
  46. package/dist/packem_shared/{GlobalDataBrowser-ErfvIs1S.js → GlobalDataBrowser-BkTPLzAY.js} +3 -3
  47. package/dist/packem_shared/{HomePanel-D9MQk8I7.js → HomePanel-D1Q9LZgK.js} +3 -3
  48. package/dist/packem_shared/{OpenRpcReferencePanel-DLWzrIx9.js → OpenRpcReferencePanel-Dno-hfDb.js} +1 -1
  49. package/dist/packem_shared/{ScheduledJobs-ClaNpZsg.js → ScheduledJobs-Ctw4jYtU.js} +2 -2
  50. package/dist/packem_shared/{Studio-C48P1K5W.js → Studio-lJhzDAze.js} +4 -4
  51. package/dist/packem_shared/{StudioApp-Cqh-SYm2.js → StudioApp-DiMkupvZ.js} +3 -12
  52. package/dist/packem_shared/{advisor-view-D3-U4kRR.js → advisor-view-BX8OhG0w.js} +1 -1
  53. package/dist/packem_shared/{browser-storage-tLOxkIHd.js → browser-storage-BTrX4y3B.js} +32 -2
  54. package/dist/packem_shared/{data-grid-Jz8FqQ2C.js → data-grid-CdXztApG.js} +1 -1
  55. package/dist/packem_shared/{error-alert-BBT6D22d.js → error-alert-CXjqyGw9.js} +1 -1
  56. package/dist/packem_shared/{grid-features-CUr8Z1_O.js → grid-features-BF-KBDFz.js} +128 -65
  57. package/dist/packem_shared/{home-panel-CoGxi-oj.js → home-panel-TFcRf9Ui.js} +272 -22
  58. package/dist/packem_shared/{internal-DTsYVn-g.js → internal-CYcbqMjX.js} +15 -3
  59. package/dist/packem_shared/{reference-view-CSKyUyPl.js → reference-view-DUiJcILV.js} +1 -1
  60. package/dist/packem_shared/{studio-CPHA_-3I.js → studio-Dh9UlaF_.js} +3 -3
  61. package/dist/packem_shared/{table-list-sidebar-B5psdSV1.js → table-list-sidebar-UVIXQJdU.js} +1 -1
  62. package/dist/packem_shared/{use-admin-query-BHPKmPuj.js → use-admin-query-CfHYWx5n.js} +1 -1
  63. package/dist/packem_shared/{use-async-submit-BWMDwRa4.js → use-async-submit-DJQiPc-_.js} +2 -2
  64. package/dist/standalone/{chunk-ZL4E2WVF.js → chunk-23C4TCRO.js} +1 -1
  65. package/dist/standalone/{chunk-NV6RHG5L.js → chunk-5ZAA2PVR.js} +1 -1
  66. package/dist/standalone/{chunk-Q3PTSVVU.js → chunk-676HEBIR.js} +1 -1
  67. package/dist/standalone/{chunk-Y2ZPNDL7.js → chunk-6VO23MMW.js} +1 -1
  68. package/dist/standalone/{chunk-2GFAOIC3.js → chunk-7RE5UW27.js} +1 -1
  69. package/dist/standalone/{chunk-4FL3EDN5.js → chunk-AAVIFQ4Y.js} +1 -1
  70. package/dist/standalone/{chunk-SE2TQAHJ.js → chunk-AJFQ3LNM.js} +1 -1
  71. package/dist/standalone/chunk-AJULNB46.js +4 -0
  72. package/dist/standalone/{chunk-6GFEVKJP.js → chunk-BGXOXASQ.js} +1 -1
  73. package/dist/standalone/{chunk-3DBG4RIV.js → chunk-BKW7FFEO.js} +1 -1
  74. package/dist/standalone/{chunk-OES45DFG.js → chunk-BXOYVWJR.js} +1 -1
  75. package/dist/standalone/{chunk-OIC7EJWI.js → chunk-C7WTJLC3.js} +1 -1
  76. package/dist/standalone/{chunk-AJIUI7DD.js → chunk-CACB34RQ.js} +1 -1
  77. package/dist/standalone/{chunk-TI7SE33D.js → chunk-CICVBMEN.js} +1 -1
  78. package/dist/standalone/{chunk-VFJPO4UO.js → chunk-CWEAJUHW.js} +1 -1
  79. package/dist/standalone/{chunk-FA3CCTXK.js → chunk-DECHEGIC.js} +1 -1
  80. package/dist/standalone/{chunk-PVZI3CXP.js → chunk-E75ANNWX.js} +7 -7
  81. package/dist/standalone/{chunk-MZ756AFF.js → chunk-ERJNDIXC.js} +1 -1
  82. package/dist/standalone/{chunk-I3VXCZZL.js → chunk-FKACHRWO.js} +1 -1
  83. package/dist/standalone/{chunk-X7RPB4K4.js → chunk-FSGCANAU.js} +1 -1
  84. package/dist/standalone/{chunk-34OQUHSV.js → chunk-H6RKXQZU.js} +1 -1
  85. package/dist/standalone/chunk-HZTGDL4L.js +1 -0
  86. package/dist/standalone/{chunk-FCSPAJW4.js → chunk-I7ZZRM7I.js} +1 -1
  87. package/dist/standalone/{chunk-OLE2AYTD.js → chunk-J46WXQYL.js} +1 -1
  88. package/dist/standalone/{chunk-2F4VYKM6.js → chunk-JVODY4EP.js} +1 -1
  89. package/dist/standalone/{chunk-IU6GTBPD.js → chunk-LYB5L53X.js} +1 -1
  90. package/dist/standalone/chunk-MJWVMKQ4.js +6 -0
  91. package/dist/standalone/chunk-MT2J3H7O.js +3 -0
  92. package/dist/standalone/{chunk-P5JW7HKP.js → chunk-N746FOQP.js} +1 -1
  93. package/dist/standalone/{chunk-P3ZMBPCY.js → chunk-NC6MBMSI.js} +1 -1
  94. package/dist/standalone/chunk-NN27EDQB.js +1 -0
  95. package/dist/standalone/{chunk-AJKR6PY7.js → chunk-NY6GDADQ.js} +1 -1
  96. package/dist/standalone/{chunk-R5OQZYSW.js → chunk-OY3HD7BJ.js} +1 -1
  97. package/dist/standalone/{chunk-4JOKDSPU.js → chunk-P5HJXCZS.js} +1 -1
  98. package/dist/standalone/{chunk-GM4NPF3W.js → chunk-PTS5TW3J.js} +1 -1
  99. package/dist/standalone/{chunk-IQ466Q6W.js → chunk-QDBOPDJ7.js} +1 -1
  100. package/dist/standalone/{chunk-KQTCLPLO.js → chunk-QHFTGJPS.js} +1 -1
  101. package/dist/standalone/{chunk-N7G5I47W.js → chunk-SSI4G2MY.js} +1 -1
  102. package/dist/standalone/{chunk-QKQABJBE.js → chunk-TH45YG6Q.js} +1 -1
  103. package/dist/standalone/{chunk-WXPWVBIY.js → chunk-UGUEC6BC.js} +1 -1
  104. package/dist/standalone/{chunk-K3GNLVYK.js → chunk-UKDJ4H7I.js} +1 -1
  105. package/dist/standalone/{chunk-O3I57FXK.js → chunk-V6IWFYAQ.js} +1 -1
  106. package/dist/standalone/{chunk-7FF76BYY.js → chunk-V7SRH36W.js} +1 -1
  107. package/dist/standalone/{chunk-XFSUINL3.js → chunk-WPNXY7IS.js} +1 -1
  108. package/dist/standalone/{chunk-PZ7HD5T2.js → chunk-X33MSJPP.js} +1 -1
  109. package/dist/standalone/{chunk-LEHGGJP2.js → chunk-XRNXOIVZ.js} +1 -1
  110. package/dist/standalone/{chunk-TDL7NEWA.js → chunk-YBGC4PPD.js} +1 -1
  111. package/dist/standalone/{chunk-HLZ4YLRK.js → chunk-YNZ7ARWW.js} +1 -1
  112. package/dist/standalone/{chunk-XGUOXHX4.js → chunk-YTO65GHS.js} +1 -1
  113. package/dist/standalone/{chunk-JTTVXBLU.js → chunk-ZE6FT5Z3.js} +1 -1
  114. package/dist/standalone/studio.js +31 -31
  115. package/dist/styles.css +1 -1
  116. package/package.json +2 -2
  117. package/dist/standalone/chunk-2SAZ5BZ5.js +0 -4
  118. package/dist/standalone/chunk-2SE7II7A.js +0 -1
  119. package/dist/standalone/chunk-3UFZCRWL.js +0 -1
  120. package/dist/standalone/chunk-IJPFHUJK.js +0 -2
  121. package/dist/standalone/chunk-ZYRGPDZB.js +0 -1
@@ -1,12 +1,12 @@
1
1
  import { c } from 'react/compiler-runtime';
2
2
  import { useState } from 'react';
3
- import { E as ErrorAlert } from '../packem_shared/error-alert-BBT6D22d.js';
3
+ import { E as ErrorAlert } from '../packem_shared/error-alert-CXjqyGw9.js';
4
4
  import { ShardInput } from '../packem_shared/ShardInput-gx_DZXXn.js';
5
5
  import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
6
6
  import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
7
7
  import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.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 { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
9
+ import { u as useAdminQuery } from '../packem_shared/use-admin-query-CfHYWx5n.js';
10
10
  import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
11
11
  import useDebounced from '../packem_shared/useDebounced-Dxncpg6z.js';
12
12
  import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
@@ -6,13 +6,13 @@ 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-BHPKmPuj.js';
9
+ import { a as useClientQuery } from '../packem_shared/use-admin-query-CfHYWx5n.js';
10
10
  import { c } from 'react/compiler-runtime';
11
- import { a as useAuthConfig, u as useAsyncSubmit } from '../packem_shared/use-async-submit-BWMDwRa4.js';
11
+ import { a as useAuthConfig, u as useAsyncSubmit } from '../packem_shared/use-async-submit-DJQiPc-_.js';
12
12
  import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
13
13
  import useDebounced from '../packem_shared/useDebounced-Dxncpg6z.js';
14
14
  import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
15
- import { i as formatTimestamp, h as formatCell, f as fireAndForget, e as errorMessage } from '../packem_shared/internal-DTsYVn-g.js';
15
+ import { i as formatTimestamp, h as formatCell, f as fireAndForget, e as errorMessage } from '../packem_shared/internal-CYcbqMjX.js';
16
16
  import { C as Checkbox } from '../packem_shared/checkbox-UNkzAxl-.js';
17
17
  import { L as Label } from '../packem_shared/label-D8ykjn5J.js';
18
18
  import { M as ModalShell } from '../packem_shared/modal-shell-hyaJvIJ6.js';
@@ -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-DTsYVn-g.js';
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-BHPKmPuj.js';
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-DTsYVn-g.js';
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-DTsYVn-g.js';
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-CSKyUyPl.js';
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-DTsYVn-g.js';
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-DTsYVn-g.js';
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-Jz8FqQ2C.js';
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-B5psdSV1.js';
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-CUr8Z1_O.js';
21
- import { u as useAdminQuery } from './use-admin-query-BHPKmPuj.js';
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-BHPKmPuj.js';
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-B5psdSV1.js';
10
- import { G as GridContainer, C as CellValue } from './data-grid-Jz8FqQ2C.js';
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-BHPKmPuj.js';
7
+ import './use-admin-query-CfHYWx5n.js';
8
8
  import './DEFAULT_LOCALE-CiX4W7Kr.js';
9
9
  import './ADMIN_FUNCTIONS-BHHJi3Gb.js';
10
- import './internal-DTsYVn-g.js';
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-CoGxi-oj.js';
13
+ export { H as HomePanel } from './home-panel-TFcRf9Ui.js';
14
14
  import 'react/jsx-dev-runtime';
@@ -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-CSKyUyPl.js';
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-BHPKmPuj.js';
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-DTsYVn-g.js';
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-CPHA_-3I.js';
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-CoGxi-oj.js';
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-DTsYVn-g.js';
13
+ import './internal-CYcbqMjX.js';
14
14
  import './utils-B05Dmz_H.js';
15
- import './CommandPalette-BUPpbpMc.js';
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-CPHA_-3I.js';
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: resolveBaseUrl(baseUrl),
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-BBT6D22d.js';
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-DTsYVn-g.js';
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-DTsYVn-g.js';
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-DTsYVn-g.js';
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, f as fireAndForget } from './internal-DTsYVn-g.js';
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(26);
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
- const t3 = rows.length === 0;
81
- let t4;
82
- if ($[7] !== t3) {
83
- t4 = /* @__PURE__ */ jsxDEV(DropdownMenuTrigger, {
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: t3,
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
- $[7] = t3;
91
- $[8] = t4;
134
+ $[11] = t4;
135
+ $[12] = t5;
92
136
  } else {
93
- t4 = $[8];
137
+ t5 = $[12];
94
138
  }
95
- let t5;
96
- if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
97
- t5 = /* @__PURE__ */ jsxDEV(DropdownMenuLabel, {
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
- $[9] = t5;
144
+ $[13] = t6;
101
145
  } else {
102
- t5 = $[9];
146
+ t6 = $[13];
103
147
  }
104
- let t6;
105
- if ($[10] !== t) {
106
- t6 = t("CSV");
107
- $[10] = t;
108
- $[11] = t6;
148
+ let t7;
149
+ if ($[14] !== t) {
150
+ t7 = t("CSV");
151
+ $[14] = t;
152
+ $[15] = t7;
109
153
  } else {
110
- t6 = $[11];
154
+ t7 = $[15];
111
155
  }
112
- let t7;
113
- if ($[12] !== onCsv || $[13] !== t6) {
114
- t7 = /* @__PURE__ */ jsxDEV(DropdownMenuItem, {
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: t6
161
+ children: t7
118
162
  }, void 0, false);
119
- $[12] = onCsv;
120
- $[13] = t6;
121
- $[14] = t7;
163
+ $[16] = onCsv;
164
+ $[17] = t7;
165
+ $[18] = t8;
122
166
  } else {
123
- t7 = $[14];
167
+ t8 = $[18];
124
168
  }
125
- let t8;
126
- if ($[15] !== t) {
127
- t8 = t("JSON");
128
- $[15] = t;
129
- $[16] = t8;
169
+ let t9;
170
+ if ($[19] !== t) {
171
+ t9 = t("JSON");
172
+ $[19] = t;
173
+ $[20] = t9;
130
174
  } else {
131
- t8 = $[16];
175
+ t9 = $[20];
132
176
  }
133
- let t9;
134
- if ($[17] !== onJson || $[18] !== t8) {
135
- t9 = /* @__PURE__ */ jsxDEV(DropdownMenuItem, {
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: t8
182
+ children: t9
139
183
  }, void 0, false);
140
- $[17] = onJson;
141
- $[18] = t8;
142
- $[19] = t9;
184
+ $[21] = onJson;
185
+ $[22] = t9;
186
+ $[23] = t10;
143
187
  } else {
144
- t9 = $[19];
188
+ t10 = $[23];
145
189
  }
146
- let t10;
147
- if ($[20] !== t7 || $[21] !== t9) {
148
- t10 = /* @__PURE__ */ jsxDEV(DropdownMenuContent, {
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: [t5, t7, t9]
215
+ children: [t6, t8, t10, t12]
151
216
  }, void 0, true);
152
- $[20] = t7;
153
- $[21] = t9;
154
- $[22] = t10;
217
+ $[29] = t10;
218
+ $[30] = t12;
219
+ $[31] = t8;
220
+ $[32] = t13;
155
221
  } else {
156
- t10 = $[22];
222
+ t13 = $[32];
157
223
  }
158
- let t11;
159
- if ($[23] !== t10 || $[24] !== t4) {
160
- t11 = /* @__PURE__ */ jsxDEV(DropdownMenu, {
161
- children: [t4, t10]
224
+ let t14;
225
+ if ($[33] !== t13 || $[34] !== t5) {
226
+ t14 = /* @__PURE__ */ jsxDEV(DropdownMenu, {
227
+ children: [t5, t13]
162
228
  }, void 0, true);
163
- $[23] = t10;
164
- $[24] = t4;
165
- $[25] = t11;
229
+ $[33] = t13;
230
+ $[34] = t5;
231
+ $[35] = t14;
166
232
  } else {
167
- t11 = $[25];
233
+ t14 = $[35];
168
234
  }
169
- return t11;
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
- const clipboard = "navigator" in globalThis ? globalThis.navigator.clipboard : void 0;
462
- if (clipboard === void 0) {
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;