@lunora/studio 1.0.0-alpha.31 → 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.
Files changed (183) hide show
  1. package/dist/index.js +10 -10
  2. package/dist/mount.js +3 -2
  3. package/dist/packem_chunks/ApiTab.js +3 -3
  4. package/dist/packem_chunks/AuditPanel.js +7 -7
  5. package/dist/packem_chunks/ExportImportPanel.js +5 -4
  6. package/dist/packem_chunks/FileBrowser.js +2 -2
  7. package/dist/packem_chunks/FunctionRunner.js +1 -1
  8. package/dist/packem_chunks/FunctionStatsPanel.js +72 -70
  9. package/dist/packem_chunks/HealthPanel.js +3 -3
  10. package/dist/packem_chunks/InsightsPanel.js +4 -3
  11. package/dist/packem_chunks/LogsPanel.js +6 -6
  12. package/dist/packem_chunks/MailPanel.js +8 -7
  13. package/dist/packem_chunks/MetricsPanel.js +3 -3
  14. package/dist/packem_chunks/MigrationsPanel.js +7 -7
  15. package/dist/packem_chunks/PitrPanel.js +1 -1
  16. package/dist/packem_chunks/SchemaViewer.js +3 -2
  17. package/dist/packem_chunks/SecurityAdvisorPanel.js +11 -8
  18. package/dist/packem_chunks/SettingsPanel.js +50 -49
  19. package/dist/packem_chunks/SqlEditorPanel.js +5 -4
  20. package/dist/packem_chunks/TableEditor.js +3 -3
  21. package/dist/packem_chunks/analytics-panel.js +1 -1
  22. package/dist/packem_chunks/auth-config-panel.js +1 -1
  23. package/dist/packem_chunks/auth-sessions-panel.js +2 -2
  24. package/dist/packem_chunks/containers-panel.js +1 -1
  25. package/dist/packem_chunks/dashboards-panel.js +3 -2
  26. package/dist/packem_chunks/fanout-panel.js +31 -30
  27. package/dist/packem_chunks/flags-panel.js +6 -6
  28. package/dist/packem_chunks/kv-browser.js +2 -2
  29. package/dist/packem_chunks/log-drains-panel.js +1 -1
  30. package/dist/packem_chunks/organizations-panel.js +3 -3
  31. package/dist/packem_chunks/payments-panel.js +6 -5
  32. package/dist/packem_chunks/permissions-panel.js +12 -11
  33. package/dist/packem_chunks/queues-panel.js +32 -31
  34. package/dist/packem_chunks/rls-panel.js +86 -84
  35. package/dist/packem_chunks/schedule-panel.js +3 -3
  36. package/dist/packem_chunks/sparkline.js +1 -1
  37. package/dist/packem_chunks/storage-rules-panel.js +27 -25
  38. package/dist/packem_chunks/subscriptions-panel.js +33 -31
  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-B6u_wnz-.js → ApiDocsPanel-Cu6mD4u7.js} +1 -1
  43. package/dist/packem_shared/{ApiReferencePanel-Drz4UO0a.js → ApiReferencePanel-Co_wpRF2.js} +1 -1
  44. package/dist/packem_shared/{CommandPalette-B5BertvU.js → CommandPalette-BUPpbpMc.js} +1 -1
  45. package/dist/packem_shared/{DataBrowser-ANTHLWWh.js → DataBrowser-DSNK1tPg.js} +5 -5
  46. package/dist/packem_shared/{GlobalDataBrowser-CjgTG_wa.js → GlobalDataBrowser-ErfvIs1S.js} +3 -3
  47. package/dist/packem_shared/{HomePanel-BRcQVDby.js → HomePanel-DQk3P8xX.js} +3 -3
  48. package/dist/packem_shared/{OpenRpcReferencePanel-CspFdbUT.js → OpenRpcReferencePanel-DLWzrIx9.js} +1 -1
  49. package/dist/packem_shared/{ScheduledJobs-BEJXtsBn.js → ScheduledJobs-ClaNpZsg.js} +2 -2
  50. package/dist/packem_shared/{Studio-B1V0GxTz.js → Studio-CFTYGEUt.js} +4 -4
  51. package/dist/packem_shared/{StudioApp-CR0Tvy81.js → StudioApp-Cy9vUwVl.js} +1 -1
  52. package/dist/packem_shared/{advisor-view-DzqyvUU3.js → advisor-view-D3-U4kRR.js} +5 -5
  53. package/dist/packem_shared/alert-CdAET2K_.js +68 -0
  54. package/dist/packem_shared/{bar-chart-Bb__F5-u.js → bar-chart-DSwcWIRy.js} +4 -3
  55. package/dist/packem_shared/{browser-storage-d03UsV7v.js → browser-storage-tLOxkIHd.js} +3 -67
  56. package/dist/packem_shared/{data-grid-Dsg6nRjo.js → data-grid-Jz8FqQ2C.js} +1 -1
  57. package/dist/packem_shared/error-alert-BBT6D22d.js +114 -0
  58. package/dist/packem_shared/{grid-features-D7nNzBYm.js → grid-features-CUr8Z1_O.js} +1 -1
  59. package/dist/packem_shared/{home-panel-CRIs6x2j.js → home-panel-Bo-Mgrkn.js} +2 -2
  60. package/dist/packem_shared/{internal-FcNZ3beb.js → internal-DTsYVn-g.js} +30 -1
  61. package/dist/packem_shared/{reference-view-Doy1XlQq.js → reference-view-CSKyUyPl.js} +3 -2
  62. package/dist/packem_shared/{sparkline-KgMPHS4u.js → sparkline-BnA1kC9X.js} +1 -1
  63. package/dist/packem_shared/{studio-CQ-rtNhn.js → studio-Dg2e-dsR.js} +6 -5
  64. package/dist/packem_shared/{table-list-sidebar-VMo0ftxD.js → table-list-sidebar-B5psdSV1.js} +1 -1
  65. package/dist/packem_shared/{use-admin-query-BViPA3US.js → use-admin-query-BHPKmPuj.js} +2 -1
  66. package/dist/packem_shared/{use-auth-capabilities-BHkoBnbZ.js → use-auth-capabilities-C-VH0oJJ.js} +1 -1
  67. package/dist/standalone/{chunk-N4JI6VQD.js → chunk-25VHPD2I.js} +1 -1
  68. package/dist/standalone/chunk-2GGMGPEP.js +1 -0
  69. package/dist/standalone/{chunk-BHTPZS7L.js → chunk-3CJW6NWG.js} +1 -1
  70. package/dist/standalone/chunk-4H2OJBXO.js +1 -0
  71. package/dist/standalone/chunk-4MLAVZP4.js +1 -0
  72. package/dist/standalone/chunk-55YA7ZZI.js +76 -0
  73. package/dist/standalone/chunk-5OH3VPZF.js +1 -0
  74. package/dist/standalone/chunk-6GFEVKJP.js +1 -0
  75. package/dist/standalone/{chunk-ITLLHEVG.js → chunk-764T6X6X.js} +1 -1
  76. package/dist/standalone/chunk-7M3F6U4L.js +1 -0
  77. package/dist/standalone/{chunk-KGS7KM4A.js → chunk-7VF3IAAW.js} +1 -1
  78. package/dist/standalone/chunk-AJIUI7DD.js +1 -0
  79. package/dist/standalone/{chunk-5NSZVXCS.js → chunk-BACPICH6.js} +1 -1
  80. package/dist/standalone/chunk-BET2625I.js +1 -0
  81. package/dist/standalone/chunk-BQUQS7QN.js +1 -0
  82. package/dist/standalone/chunk-CKSHCYGC.js +2 -0
  83. package/dist/standalone/chunk-DCECRP45.js +1 -0
  84. package/dist/standalone/chunk-DFP2DADO.js +1 -0
  85. package/dist/standalone/chunk-DORBUITF.js +1 -0
  86. package/dist/standalone/chunk-DVKPRFIJ.js +1 -0
  87. package/dist/standalone/chunk-E6WUCLSI.js +1 -0
  88. package/dist/standalone/chunk-E7WLF6IU.js +1 -0
  89. package/dist/standalone/chunk-EVPLBWUT.js +8 -0
  90. package/dist/standalone/chunk-FCSPAJW4.js +1 -0
  91. package/dist/standalone/chunk-G2ICR3DL.js +1 -0
  92. package/dist/standalone/{chunk-2DS7JLWL.js → chunk-GJ6PGSES.js} +5 -5
  93. package/dist/standalone/chunk-GMSGZDDH.js +13 -0
  94. package/dist/standalone/chunk-GVRM4U6W.js +2 -0
  95. package/dist/standalone/chunk-GZDWDDXN.js +1 -0
  96. package/dist/standalone/chunk-ISJAJWYI.js +1 -0
  97. package/dist/standalone/{chunk-G2TFEWEQ.js → chunk-JIDZFLTB.js} +1 -1
  98. package/dist/standalone/{chunk-RMYA7NAH.js → chunk-K3GNLVYK.js} +1 -1
  99. package/dist/standalone/chunk-K4ZDRTQM.js +1 -0
  100. package/dist/standalone/{chunk-ASLGNHAX.js → chunk-LI43EKM6.js} +1 -1
  101. package/dist/standalone/chunk-MFPTVCJ6.js +1 -0
  102. package/dist/standalone/chunk-MPYFGAOW.js +1 -0
  103. package/dist/standalone/{chunk-TICVNLPM.js → chunk-O3NAGRTR.js} +1 -1
  104. package/dist/standalone/chunk-OV2WFAJX.js +1 -0
  105. package/dist/standalone/chunk-PA3LN4XJ.js +1 -0
  106. package/dist/standalone/chunk-PD6WPVYU.js +1 -0
  107. package/dist/standalone/{chunk-7PBZKXYA.js → chunk-PN5NCZDX.js} +1 -1
  108. package/dist/standalone/{chunk-YJGANMU7.js → chunk-PVZI3CXP.js} +10 -9
  109. package/dist/standalone/chunk-PZ7HD5T2.js +1 -0
  110. package/dist/standalone/{chunk-UGMRUEBU.js → chunk-QAFAJBAW.js} +1 -1
  111. package/dist/standalone/{chunk-6VTGE3WJ.js → chunk-QBAT52GB.js} +1 -1
  112. package/dist/standalone/chunk-QHIIRFG7.js +1 -0
  113. package/dist/standalone/chunk-RSEEHNFI.js +1 -0
  114. package/dist/standalone/chunk-SFJ5F4DX.js +1 -0
  115. package/dist/standalone/{chunk-3BP4BTLR.js → chunk-SGDQIWAR.js} +3 -3
  116. package/dist/standalone/chunk-SYEIXTEU.js +1 -0
  117. package/dist/standalone/chunk-T5HRXUSY.js +1 -0
  118. package/dist/standalone/{chunk-OD2POGPJ.js → chunk-TDL7NEWA.js} +1 -1
  119. package/dist/standalone/chunk-TM7CMA7X.js +1 -0
  120. package/dist/standalone/chunk-U4OAQPBT.js +1 -0
  121. package/dist/standalone/chunk-UDSVXA42.js +1 -0
  122. package/dist/standalone/chunk-UK64ZSUW.js +1 -0
  123. package/dist/standalone/chunk-VEZO7G5Q.js +3 -0
  124. package/dist/standalone/chunk-VSHUSN6T.js +1 -0
  125. package/dist/standalone/chunk-VYMCCC6O.js +1 -0
  126. package/dist/standalone/{chunk-7RYIQKZA.js → chunk-WXPWVBIY.js} +1 -1
  127. package/dist/standalone/chunk-X72PYOEW.js +1 -0
  128. package/dist/standalone/chunk-X7MMBSNW.js +1 -0
  129. package/dist/standalone/{chunk-6RC6L33K.js → chunk-XIGIWZLO.js} +3 -3
  130. package/dist/standalone/chunk-XNJNSCLM.js +1 -0
  131. package/dist/standalone/{chunk-NNISYDNI.js → chunk-XUGSA2NG.js} +1 -1
  132. package/dist/standalone/{chunk-VXBZQIGY.js → chunk-Y2ZPNDL7.js} +1 -1
  133. package/dist/standalone/chunk-YM6BBZDN.js +1 -0
  134. package/dist/standalone/chunk-ZHVTQ37P.js +1 -0
  135. package/dist/standalone/chunk-ZPP2KOR4.js +1 -0
  136. package/dist/standalone/studio.js +30 -30
  137. package/dist/styles.css +1 -1
  138. package/package.json +6 -5
  139. package/dist/standalone/chunk-2PDQ4KZ6.js +0 -1
  140. package/dist/standalone/chunk-45QK5ZPN.js +0 -1
  141. package/dist/standalone/chunk-57LYXHXH.js +0 -1
  142. package/dist/standalone/chunk-63XKJQTQ.js +0 -1
  143. package/dist/standalone/chunk-7POIIWC5.js +0 -3
  144. package/dist/standalone/chunk-AB6QGMBF.js +0 -1
  145. package/dist/standalone/chunk-D6ORSB24.js +0 -1
  146. package/dist/standalone/chunk-DGWTR4G7.js +0 -1
  147. package/dist/standalone/chunk-DSX53PBM.js +0 -1
  148. package/dist/standalone/chunk-DV2MNASX.js +0 -1
  149. package/dist/standalone/chunk-EGJX34WM.js +0 -1
  150. package/dist/standalone/chunk-FCR3HKFV.js +0 -1
  151. package/dist/standalone/chunk-FQKNJSRA.js +0 -76
  152. package/dist/standalone/chunk-GZXPPJVK.js +0 -1
  153. package/dist/standalone/chunk-HFBRE65A.js +0 -1
  154. package/dist/standalone/chunk-HG7Q5B3H.js +0 -1
  155. package/dist/standalone/chunk-HTQL7AXU.js +0 -1
  156. package/dist/standalone/chunk-KG3QTFWE.js +0 -1
  157. package/dist/standalone/chunk-KNRVPCFX.js +0 -1
  158. package/dist/standalone/chunk-KODWGUAB.js +0 -1
  159. package/dist/standalone/chunk-LZWPCZLE.js +0 -1
  160. package/dist/standalone/chunk-N2QDG3MW.js +0 -1
  161. package/dist/standalone/chunk-O4PXDNR3.js +0 -1
  162. package/dist/standalone/chunk-OXCK3ZUG.js +0 -1
  163. package/dist/standalone/chunk-P7DSVO4U.js +0 -1
  164. package/dist/standalone/chunk-PKAM3N5C.js +0 -1
  165. package/dist/standalone/chunk-QGXGBHQO.js +0 -1
  166. package/dist/standalone/chunk-QHA3TAEJ.js +0 -1
  167. package/dist/standalone/chunk-QQWC62X7.js +0 -1
  168. package/dist/standalone/chunk-S53RUBW5.js +0 -1
  169. package/dist/standalone/chunk-SB4GT6PK.js +0 -1
  170. package/dist/standalone/chunk-SHIOUDOT.js +0 -1
  171. package/dist/standalone/chunk-SIDRSX7Y.js +0 -1
  172. package/dist/standalone/chunk-VJPQUBN6.js +0 -8
  173. package/dist/standalone/chunk-VMJKJWG6.js +0 -1
  174. package/dist/standalone/chunk-VPDPN5RR.js +0 -2
  175. package/dist/standalone/chunk-VSEGZA3J.js +0 -1
  176. package/dist/standalone/chunk-W5LWN6IP.js +0 -1
  177. package/dist/standalone/chunk-W7PCVQTE.js +0 -1
  178. package/dist/standalone/chunk-W7SQVLBH.js +0 -1
  179. package/dist/standalone/chunk-XLILSHPE.js +0 -1
  180. package/dist/standalone/chunk-XURNGQSS.js +0 -1
  181. package/dist/standalone/chunk-YQQJ4N6U.js +0 -1
  182. package/dist/standalone/chunk-ZH7UES4T.js +0 -2
  183. package/dist/standalone/chunk-ZQCVDXDL.js +0 -1
@@ -1,11 +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
4
  import { ShardInput } from '../packem_shared/ShardInput-gx_DZXXn.js';
4
5
  import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
5
6
  import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
6
7
  import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
7
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';
8
- import { u as useAdminQuery } from '../packem_shared/use-admin-query-BViPA3US.js';
9
+ import { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
9
10
  import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
10
11
  import useDebounced from '../packem_shared/useDebounced-Dxncpg6z.js';
11
12
  import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
@@ -49,7 +50,7 @@ const DASH = /* @__PURE__ */ jsxDEV("span", {
49
50
  children: "—"
50
51
  }, void 0, false);
51
52
  const SubscriptionsPanel = (t0) => {
52
- const $ = c(20);
53
+ const $ = c(22);
53
54
  const {
54
55
  initialShardKey
55
56
  } = t0;
@@ -85,26 +86,27 @@ const SubscriptionsPanel = (t0) => {
85
86
  const {
86
87
  data: result,
87
88
  error,
89
+ errorSource,
88
90
  refetch
89
91
  } = useAdminQuery(ADMIN_FUNCTIONS.listSubscriptions, t2, t3);
90
92
  useAutoRefresh(refetch, true);
91
93
  let t4;
92
- if ($[5] !== error || $[6] !== result || $[7] !== shardKey || $[8] !== t) {
94
+ if ($[5] !== error || $[6] !== errorSource || $[7] !== result || $[8] !== shardKey || $[9] !== t) {
93
95
  const rows = result === void 0 ? [] : toRows(result.connections);
94
96
  let t5;
95
- if ($[10] !== shardKey) {
97
+ if ($[11] !== shardKey) {
96
98
  t5 = /* @__PURE__ */ jsxDEV(ShardInput, {
97
99
  onChange: setShardKey,
98
100
  testId: "subs-shard-input",
99
101
  value: shardKey
100
102
  }, void 0, false);
101
- $[10] = shardKey;
102
- $[11] = t5;
103
+ $[11] = shardKey;
104
+ $[12] = t5;
103
105
  } else {
104
- t5 = $[11];
106
+ t5 = $[12];
105
107
  }
106
108
  let t6;
107
- if ($[12] !== result || $[13] !== t) {
109
+ if ($[13] !== result || $[14] !== t) {
108
110
  t6 = result !== void 0 && /* @__PURE__ */ jsxDEV("div", {
109
111
  className: "ml-auto flex items-center gap-2 text-sm text-muted-foreground",
110
112
  "data-testid": "subs-count",
@@ -120,36 +122,35 @@ const SubscriptionsPanel = (t0) => {
120
122
  })
121
123
  }, void 0, false)]
122
124
  }, void 0, true);
123
- $[12] = result;
124
- $[13] = t;
125
- $[14] = t6;
125
+ $[13] = result;
126
+ $[14] = t;
127
+ $[15] = t6;
126
128
  } else {
127
- t6 = $[14];
129
+ t6 = $[15];
128
130
  }
129
131
  let t7;
130
- if ($[15] !== t5 || $[16] !== t6) {
132
+ if ($[16] !== t5 || $[17] !== t6) {
131
133
  t7 = /* @__PURE__ */ jsxDEV("div", {
132
134
  className: "flex flex-wrap items-center gap-2",
133
135
  children: [t5, t6]
134
136
  }, void 0, true);
135
- $[15] = t5;
136
- $[16] = t6;
137
- $[17] = t7;
137
+ $[16] = t5;
138
+ $[17] = t6;
139
+ $[18] = t7;
138
140
  } else {
139
- t7 = $[17];
141
+ t7 = $[18];
140
142
  }
141
143
  let t8;
142
- if ($[18] !== error) {
143
- t8 = error !== null && /* @__PURE__ */ jsxDEV("p", {
144
- className: "text-sm text-destructive",
145
- "data-testid": "subs-error",
146
- role: "alert",
147
- children: error
144
+ if ($[19] !== error || $[20] !== errorSource) {
145
+ t8 = error !== null && /* @__PURE__ */ jsxDEV(ErrorAlert, {
146
+ error: errorSource,
147
+ testId: "subs-error"
148
148
  }, void 0, false);
149
- $[18] = error;
150
- $[19] = t8;
149
+ $[19] = error;
150
+ $[20] = errorSource;
151
+ $[21] = t8;
151
152
  } else {
152
- t8 = $[19];
153
+ t8 = $[21];
153
154
  }
154
155
  t4 = /* @__PURE__ */ jsxDEV("div", {
155
156
  className: "flex flex-col gap-4",
@@ -223,12 +224,13 @@ const SubscriptionsPanel = (t0) => {
223
224
  }, void 0, false)]
224
225
  }, void 0, true);
225
226
  $[5] = error;
226
- $[6] = result;
227
- $[7] = shardKey;
228
- $[8] = t;
229
- $[9] = t4;
227
+ $[6] = errorSource;
228
+ $[7] = result;
229
+ $[8] = shardKey;
230
+ $[9] = t;
231
+ $[10] = t4;
230
232
  } else {
231
- t4 = $[9];
233
+ t4 = $[10];
232
234
  }
233
235
  return t4;
234
236
  };
@@ -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-BViPA3US.js';
10
- import { u as useAuthCapabilities } from '../packem_shared/use-auth-capabilities-BHkoBnbZ.js';
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, g as formatTimestamp, d as formatCell } from '../packem_shared/internal-FcNZ3beb.js';
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, d as formatCell } from '../packem_shared/internal-FcNZ3beb.js';
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-BViPA3US.js';
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-FcNZ3beb.js';
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, b as copyToClipboard } from './internal-FcNZ3beb.js';
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-Doy1XlQq.js';
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-FcNZ3beb.js';
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 { d as formatCell, f as fireAndForget, c as callOptions, a as adminRef, g as formatTimestamp } from './internal-FcNZ3beb.js';
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-Dsg6nRjo.js';
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-VMo0ftxD.js';
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-D7nNzBYm.js';
21
- import { u as useAdminQuery } from './use-admin-query-BViPA3US.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';
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-BViPA3US.js';
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-VMo0ftxD.js';
10
- import { G as GridContainer, C as CellValue } from './data-grid-Dsg6nRjo.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';
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-BViPA3US.js';
7
+ import './use-admin-query-BHPKmPuj.js';
8
8
  import './DEFAULT_LOCALE-CiX4W7Kr.js';
9
9
  import './ADMIN_FUNCTIONS-CdaxLGkE.js';
10
- import './internal-FcNZ3beb.js';
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-CRIs6x2j.js';
13
+ export { H as HomePanel } from './home-panel-Bo-Mgrkn.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-Doy1XlQq.js';
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-BViPA3US.js';
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, g as formatTimestamp, e as errorMessage } from './internal-FcNZ3beb.js';
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-CQ-rtNhn.js';
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-CRIs6x2j.js';
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-FcNZ3beb.js';
13
+ import './internal-DTsYVn-g.js';
14
14
  import './utils-B05Dmz_H.js';
15
- import './CommandPalette-B5BertvU.js';
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-CQ-rtNhn.js';
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("p", {
102
- className: "text-sm text-destructive",
103
- "data-testid": `${testId}-error`,
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 };
@@ -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 Error(`[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
+ 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 Error("useChart must be used within a <ChartContainer />");
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 Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
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 { d as formatCell } from './internal-FcNZ3beb.js';
4
- import { X as XAxis, B as Bar, T as Tooltip, E as EvilBarChart } from './bar-chart-Bb__F5-u.js';
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 { Alert as A, SqlResultChart as S, newId as n, usePersistedList as u };
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 { d as formatCell } from './internal-FcNZ3beb.js';
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) => {