@lunora/studio 1.0.0-alpha.30 → 1.0.0-alpha.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/mount.d.ts +1 -1
- package/dist/mount.js +3 -2
- package/dist/packem_chunks/ApiTab.js +3 -3
- package/dist/packem_chunks/AuditPanel.js +7 -7
- package/dist/packem_chunks/ExportImportPanel.js +5 -4
- package/dist/packem_chunks/FileBrowser.js +2 -2
- package/dist/packem_chunks/FunctionRunner.js +1 -1
- package/dist/packem_chunks/FunctionStatsPanel.js +72 -70
- package/dist/packem_chunks/HealthPanel.js +3 -3
- package/dist/packem_chunks/InsightsPanel.js +4 -3
- package/dist/packem_chunks/LogsPanel.js +6 -6
- package/dist/packem_chunks/MailPanel.js +8 -7
- package/dist/packem_chunks/MetricsPanel.js +3 -3
- package/dist/packem_chunks/MigrationsPanel.js +7 -7
- package/dist/packem_chunks/PitrPanel.js +1 -1
- package/dist/packem_chunks/SchemaViewer.js +3 -2
- package/dist/packem_chunks/SecurityAdvisorPanel.js +11 -8
- package/dist/packem_chunks/SettingsPanel.js +50 -49
- package/dist/packem_chunks/SqlEditorPanel.js +5 -4
- package/dist/packem_chunks/TableEditor.js +3 -3
- package/dist/packem_chunks/analytics-panel.js +1 -1
- package/dist/packem_chunks/auth-config-panel.js +1 -1
- package/dist/packem_chunks/auth-sessions-panel.js +2 -2
- package/dist/packem_chunks/containers-panel.js +247 -0
- package/dist/packem_chunks/dashboards-panel.js +3 -2
- package/dist/packem_chunks/fanout-panel.js +31 -30
- package/dist/packem_chunks/flags-panel.js +6 -6
- package/dist/packem_chunks/kv-browser.js +2 -2
- package/dist/packem_chunks/log-drains-panel.js +1 -1
- package/dist/packem_chunks/organizations-panel.js +3 -3
- package/dist/packem_chunks/payments-panel.js +6 -5
- package/dist/packem_chunks/permissions-panel.js +12 -11
- package/dist/packem_chunks/queues-panel.js +32 -31
- package/dist/packem_chunks/rls-panel.js +86 -84
- package/dist/packem_chunks/schedule-panel.js +3 -3
- package/dist/packem_chunks/sparkline.js +1 -1
- package/dist/packem_chunks/storage-rules-panel.js +27 -25
- package/dist/packem_chunks/subscriptions-panel.js +33 -31
- package/dist/packem_chunks/users-panel.js +3 -3
- package/dist/packem_chunks/vector-browser.js +1 -1
- package/dist/packem_chunks/workflows-panel.js +2 -2
- package/dist/packem_shared/{ApiDocsPanel-B6u_wnz-.js → ApiDocsPanel-Cu6mD4u7.js} +1 -1
- package/dist/packem_shared/{ApiReferencePanel-Drz4UO0a.js → ApiReferencePanel-Co_wpRF2.js} +1 -1
- package/dist/packem_shared/{CommandPalette-B5BertvU.js → CommandPalette-BUPpbpMc.js} +1 -1
- package/dist/packem_shared/{DataBrowser-ANTHLWWh.js → DataBrowser-DSNK1tPg.js} +5 -5
- package/dist/packem_shared/{GlobalDataBrowser-CjgTG_wa.js → GlobalDataBrowser-ErfvIs1S.js} +3 -3
- package/dist/packem_shared/{HomePanel-c2FodE9t.js → HomePanel-DQk3P8xX.js} +3 -3
- package/dist/packem_shared/{OpenRpcReferencePanel-CspFdbUT.js → OpenRpcReferencePanel-DLWzrIx9.js} +1 -1
- package/dist/packem_shared/{ScheduledJobs-BEJXtsBn.js → ScheduledJobs-ClaNpZsg.js} +2 -2
- package/dist/packem_shared/{Studio-CVTtA_sB.js → Studio-CFTYGEUt.js} +4 -4
- package/dist/packem_shared/{StudioApp-BSYV2fz6.js → StudioApp-Cy9vUwVl.js} +1 -1
- package/dist/packem_shared/{advisor-view-DzqyvUU3.js → advisor-view-D3-U4kRR.js} +5 -5
- package/dist/packem_shared/alert-CdAET2K_.js +68 -0
- package/dist/packem_shared/{app.d-B6MyY_al.d.ts → app.d-CNLRTrWw.d.ts} +1 -1
- package/dist/packem_shared/{bar-chart-Bb__F5-u.js → bar-chart-DSwcWIRy.js} +4 -3
- package/dist/packem_shared/{browser-storage-d03UsV7v.js → browser-storage-tLOxkIHd.js} +3 -67
- package/dist/packem_shared/{data-grid-Dsg6nRjo.js → data-grid-Jz8FqQ2C.js} +1 -1
- package/dist/packem_shared/error-alert-BBT6D22d.js +114 -0
- package/dist/packem_shared/{grid-features-D7nNzBYm.js → grid-features-CUr8Z1_O.js} +1 -1
- package/dist/packem_shared/{home-panel-aOR_drVv.js → home-panel-Bo-Mgrkn.js} +4 -2
- package/dist/packem_shared/{internal-FcNZ3beb.js → internal-DTsYVn-g.js} +30 -1
- package/dist/packem_shared/{reference-view-Doy1XlQq.js → reference-view-CSKyUyPl.js} +3 -2
- package/dist/packem_shared/{sparkline-KgMPHS4u.js → sparkline-BnA1kC9X.js} +1 -1
- package/dist/packem_shared/{studio-dMTJ-kRR.js → studio-Dg2e-dsR.js} +587 -560
- package/dist/packem_shared/{table-list-sidebar-VMo0ftxD.js → table-list-sidebar-B5psdSV1.js} +1 -1
- package/dist/packem_shared/{use-admin-query-BViPA3US.js → use-admin-query-BHPKmPuj.js} +2 -1
- package/dist/packem_shared/{use-auth-capabilities-BHkoBnbZ.js → use-auth-capabilities-C-VH0oJJ.js} +1 -1
- package/dist/standalone/{chunk-N4JI6VQD.js → chunk-25VHPD2I.js} +1 -1
- package/dist/standalone/chunk-2GGMGPEP.js +1 -0
- package/dist/standalone/{chunk-BHTPZS7L.js → chunk-3CJW6NWG.js} +1 -1
- package/dist/standalone/chunk-4H2OJBXO.js +1 -0
- package/dist/standalone/chunk-4MLAVZP4.js +1 -0
- package/dist/standalone/chunk-55YA7ZZI.js +76 -0
- package/dist/standalone/chunk-5OH3VPZF.js +1 -0
- package/dist/standalone/chunk-6GFEVKJP.js +1 -0
- package/dist/standalone/{chunk-ITLLHEVG.js → chunk-764T6X6X.js} +1 -1
- package/dist/standalone/chunk-7M3F6U4L.js +1 -0
- package/dist/standalone/{chunk-KGS7KM4A.js → chunk-7VF3IAAW.js} +1 -1
- package/dist/standalone/chunk-AJIUI7DD.js +1 -0
- package/dist/standalone/{chunk-5NSZVXCS.js → chunk-BACPICH6.js} +1 -1
- package/dist/standalone/chunk-BET2625I.js +1 -0
- package/dist/standalone/chunk-BQUQS7QN.js +1 -0
- package/dist/standalone/chunk-CKSHCYGC.js +2 -0
- package/dist/standalone/chunk-DCECRP45.js +1 -0
- package/dist/standalone/chunk-DFP2DADO.js +1 -0
- package/dist/standalone/chunk-DORBUITF.js +1 -0
- package/dist/standalone/chunk-DVKPRFIJ.js +1 -0
- package/dist/standalone/chunk-E6WUCLSI.js +1 -0
- package/dist/standalone/chunk-E7WLF6IU.js +1 -0
- package/dist/standalone/chunk-EVPLBWUT.js +8 -0
- package/dist/standalone/chunk-FCSPAJW4.js +1 -0
- package/dist/standalone/chunk-G2ICR3DL.js +1 -0
- package/dist/standalone/{chunk-2DS7JLWL.js → chunk-GJ6PGSES.js} +5 -5
- package/dist/standalone/chunk-GMSGZDDH.js +13 -0
- package/dist/standalone/chunk-GVRM4U6W.js +2 -0
- package/dist/standalone/chunk-GZDWDDXN.js +1 -0
- package/dist/standalone/chunk-ISJAJWYI.js +1 -0
- package/dist/standalone/{chunk-G2TFEWEQ.js → chunk-JIDZFLTB.js} +1 -1
- package/dist/standalone/{chunk-RMYA7NAH.js → chunk-K3GNLVYK.js} +1 -1
- package/dist/standalone/chunk-K4ZDRTQM.js +1 -0
- package/dist/standalone/{chunk-ASLGNHAX.js → chunk-LI43EKM6.js} +1 -1
- package/dist/standalone/chunk-MFPTVCJ6.js +1 -0
- package/dist/standalone/chunk-MPYFGAOW.js +1 -0
- package/dist/standalone/{chunk-TICVNLPM.js → chunk-O3NAGRTR.js} +1 -1
- package/dist/standalone/chunk-OV2WFAJX.js +1 -0
- package/dist/standalone/chunk-PA3LN4XJ.js +1 -0
- package/dist/standalone/chunk-PD6WPVYU.js +1 -0
- package/dist/standalone/{chunk-7PBZKXYA.js → chunk-PN5NCZDX.js} +1 -1
- package/dist/standalone/{chunk-YJGANMU7.js → chunk-PVZI3CXP.js} +10 -9
- package/dist/standalone/chunk-PZ7HD5T2.js +1 -0
- package/dist/standalone/{chunk-UGMRUEBU.js → chunk-QAFAJBAW.js} +1 -1
- package/dist/standalone/{chunk-6VTGE3WJ.js → chunk-QBAT52GB.js} +1 -1
- package/dist/standalone/chunk-QHIIRFG7.js +1 -0
- package/dist/standalone/chunk-RSEEHNFI.js +1 -0
- package/dist/standalone/chunk-SFJ5F4DX.js +1 -0
- package/dist/standalone/{chunk-3BP4BTLR.js → chunk-SGDQIWAR.js} +3 -3
- package/dist/standalone/chunk-SYEIXTEU.js +1 -0
- package/dist/standalone/chunk-T5HRXUSY.js +1 -0
- package/dist/standalone/{chunk-OD2POGPJ.js → chunk-TDL7NEWA.js} +1 -1
- package/dist/standalone/chunk-TM7CMA7X.js +1 -0
- package/dist/standalone/chunk-U4OAQPBT.js +1 -0
- package/dist/standalone/chunk-UDSVXA42.js +1 -0
- package/dist/standalone/chunk-UK64ZSUW.js +1 -0
- package/dist/standalone/chunk-VEZO7G5Q.js +3 -0
- package/dist/standalone/chunk-VSHUSN6T.js +1 -0
- package/dist/standalone/chunk-VYMCCC6O.js +1 -0
- package/dist/standalone/{chunk-7RYIQKZA.js → chunk-WXPWVBIY.js} +1 -1
- package/dist/standalone/chunk-X72PYOEW.js +1 -0
- package/dist/standalone/chunk-X7MMBSNW.js +1 -0
- package/dist/standalone/{chunk-6RC6L33K.js → chunk-XIGIWZLO.js} +3 -3
- package/dist/standalone/chunk-XNJNSCLM.js +1 -0
- package/dist/standalone/{chunk-NNISYDNI.js → chunk-XUGSA2NG.js} +1 -1
- package/dist/standalone/{chunk-VXBZQIGY.js → chunk-Y2ZPNDL7.js} +1 -1
- package/dist/standalone/chunk-YM6BBZDN.js +1 -0
- package/dist/standalone/chunk-ZHVTQ37P.js +1 -0
- package/dist/standalone/chunk-ZPP2KOR4.js +1 -0
- package/dist/standalone/studio.js +30 -30
- package/dist/styles.css +1 -1
- package/package.json +6 -5
- package/dist/standalone/chunk-2PDQ4KZ6.js +0 -1
- package/dist/standalone/chunk-57LYXHXH.js +0 -1
- package/dist/standalone/chunk-63XKJQTQ.js +0 -1
- package/dist/standalone/chunk-7POIIWC5.js +0 -3
- package/dist/standalone/chunk-AB6QGMBF.js +0 -1
- package/dist/standalone/chunk-D7HKX4DI.js +0 -1
- package/dist/standalone/chunk-DGWTR4G7.js +0 -1
- package/dist/standalone/chunk-DSX53PBM.js +0 -1
- package/dist/standalone/chunk-DV2MNASX.js +0 -1
- package/dist/standalone/chunk-E7AVZZKO.js +0 -1
- package/dist/standalone/chunk-EGJX34WM.js +0 -1
- package/dist/standalone/chunk-FCR3HKFV.js +0 -1
- package/dist/standalone/chunk-FQKNJSRA.js +0 -76
- package/dist/standalone/chunk-GABMIICA.js +0 -1
- package/dist/standalone/chunk-GZXPPJVK.js +0 -1
- package/dist/standalone/chunk-HFBRE65A.js +0 -1
- package/dist/standalone/chunk-HFMQNUBC.js +0 -1
- package/dist/standalone/chunk-HG7Q5B3H.js +0 -1
- package/dist/standalone/chunk-HTQL7AXU.js +0 -1
- package/dist/standalone/chunk-KG3QTFWE.js +0 -1
- package/dist/standalone/chunk-KODWGUAB.js +0 -1
- package/dist/standalone/chunk-MGFEVTRI.js +0 -1
- package/dist/standalone/chunk-N2QDG3MW.js +0 -1
- package/dist/standalone/chunk-O4PXDNR3.js +0 -1
- package/dist/standalone/chunk-OXCK3ZUG.js +0 -1
- package/dist/standalone/chunk-P7DSVO4U.js +0 -1
- package/dist/standalone/chunk-PKAM3N5C.js +0 -1
- package/dist/standalone/chunk-QGXGBHQO.js +0 -1
- package/dist/standalone/chunk-QHA3TAEJ.js +0 -1
- package/dist/standalone/chunk-QQWC62X7.js +0 -1
- package/dist/standalone/chunk-S53RUBW5.js +0 -1
- package/dist/standalone/chunk-SB4GT6PK.js +0 -1
- package/dist/standalone/chunk-SHIOUDOT.js +0 -1
- package/dist/standalone/chunk-SIDRSX7Y.js +0 -1
- package/dist/standalone/chunk-VJPQUBN6.js +0 -8
- package/dist/standalone/chunk-VMJKJWG6.js +0 -1
- package/dist/standalone/chunk-VPDPN5RR.js +0 -2
- package/dist/standalone/chunk-VSEGZA3J.js +0 -1
- package/dist/standalone/chunk-W7PCVQTE.js +0 -1
- package/dist/standalone/chunk-XLILSHPE.js +0 -1
- package/dist/standalone/chunk-XURNGQSS.js +0 -1
- package/dist/standalone/chunk-YQQJ4N6U.js +0 -1
- package/dist/standalone/chunk-ZH7UES4T.js +0 -2
- package/dist/standalone/chunk-ZQCVDXDL.js +0 -1
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
+
import { E as ErrorAlert } from '../packem_shared/error-alert-BBT6D22d.js';
|
|
3
4
|
import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
|
|
4
5
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
5
6
|
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';
|
|
6
|
-
import { u as useAdminQuery } from '../packem_shared/use-admin-query-
|
|
7
|
+
import { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
7
8
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
9
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
9
10
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
10
11
|
|
|
11
12
|
const QueuesPanel = () => {
|
|
12
|
-
const $ = c(
|
|
13
|
+
const $ = c(18);
|
|
13
14
|
const t = useT();
|
|
14
15
|
let t0;
|
|
15
16
|
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -20,7 +21,8 @@ const QueuesPanel = () => {
|
|
|
20
21
|
}
|
|
21
22
|
const {
|
|
22
23
|
data,
|
|
23
|
-
error
|
|
24
|
+
error,
|
|
25
|
+
errorSource
|
|
24
26
|
} = useAdminQuery(ADMIN_FUNCTIONS.listQueues, t0);
|
|
25
27
|
const loaded = data !== void 0;
|
|
26
28
|
let t1;
|
|
@@ -33,39 +35,38 @@ const QueuesPanel = () => {
|
|
|
33
35
|
}
|
|
34
36
|
const queues = t1;
|
|
35
37
|
let t2;
|
|
36
|
-
if ($[3] !== error) {
|
|
37
|
-
t2 = error !== null && /* @__PURE__ */ jsxDEV(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
role: "alert",
|
|
41
|
-
children: error
|
|
38
|
+
if ($[3] !== error || $[4] !== errorSource) {
|
|
39
|
+
t2 = error !== null && /* @__PURE__ */ jsxDEV(ErrorAlert, {
|
|
40
|
+
error: errorSource,
|
|
41
|
+
testId: "queues-error"
|
|
42
42
|
}, void 0, false);
|
|
43
43
|
$[3] = error;
|
|
44
|
-
$[4] =
|
|
44
|
+
$[4] = errorSource;
|
|
45
|
+
$[5] = t2;
|
|
45
46
|
} else {
|
|
46
|
-
t2 = $[
|
|
47
|
+
t2 = $[5];
|
|
47
48
|
}
|
|
48
49
|
let t3;
|
|
49
|
-
if ($[
|
|
50
|
+
if ($[6] !== t) {
|
|
50
51
|
t3 = t("Queues are declared in code with defineQueue. Enqueue from a mutation or action with ctx.queues.<name>.send(...); push consumers process batches in the worker.");
|
|
51
|
-
$[
|
|
52
|
-
$[
|
|
52
|
+
$[6] = t;
|
|
53
|
+
$[7] = t3;
|
|
53
54
|
} else {
|
|
54
|
-
t3 = $[
|
|
55
|
+
t3 = $[7];
|
|
55
56
|
}
|
|
56
57
|
let t4;
|
|
57
|
-
if ($[
|
|
58
|
+
if ($[8] !== t3) {
|
|
58
59
|
t4 = /* @__PURE__ */ jsxDEV("p", {
|
|
59
60
|
className: "text-sm text-muted-foreground",
|
|
60
61
|
children: t3
|
|
61
62
|
}, void 0, false);
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
63
|
+
$[8] = t3;
|
|
64
|
+
$[9] = t4;
|
|
64
65
|
} else {
|
|
65
|
-
t4 = $[
|
|
66
|
+
t4 = $[9];
|
|
66
67
|
}
|
|
67
68
|
let t5;
|
|
68
|
-
if ($[
|
|
69
|
+
if ($[10] !== loaded || $[11] !== queues || $[12] !== t) {
|
|
69
70
|
t5 = loaded && queues.length === 0 ? /* @__PURE__ */ jsxDEV(EmptyState, {
|
|
70
71
|
description: t("No defineQueue is declared in lunora/queues.ts in this deployment. Add one to offload async work to a Cloudflare Queue."),
|
|
71
72
|
testId: "queues-empty",
|
|
@@ -96,26 +97,26 @@ const QueuesPanel = () => {
|
|
|
96
97
|
}, void 0, true)
|
|
97
98
|
}, void 0, false)
|
|
98
99
|
}, void 0, false);
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
100
|
+
$[10] = loaded;
|
|
101
|
+
$[11] = queues;
|
|
102
|
+
$[12] = t;
|
|
103
|
+
$[13] = t5;
|
|
103
104
|
} else {
|
|
104
|
-
t5 = $[
|
|
105
|
+
t5 = $[13];
|
|
105
106
|
}
|
|
106
107
|
let t6;
|
|
107
|
-
if ($[
|
|
108
|
+
if ($[14] !== t2 || $[15] !== t4 || $[16] !== t5) {
|
|
108
109
|
t6 = /* @__PURE__ */ jsxDEV("div", {
|
|
109
110
|
className: "flex flex-col gap-6",
|
|
110
111
|
"data-testid": "lunora-queues-panel",
|
|
111
112
|
children: [t2, t4, t5]
|
|
112
113
|
}, void 0, true);
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
114
|
+
$[14] = t2;
|
|
115
|
+
$[15] = t4;
|
|
116
|
+
$[16] = t5;
|
|
117
|
+
$[17] = t6;
|
|
117
118
|
} else {
|
|
118
|
-
t6 = $[
|
|
119
|
+
t6 = $[17];
|
|
119
120
|
}
|
|
120
121
|
return t6;
|
|
121
122
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { E as ErrorAlert } from '../packem_shared/error-alert-BBT6D22d.js';
|
|
2
3
|
import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
|
|
3
4
|
import { a as CardContent, C as Card } from '../packem_shared/card-DURq3ElK.js';
|
|
4
5
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
5
6
|
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';
|
|
6
|
-
import { u as useAdminQuery } from '../packem_shared/use-admin-query-
|
|
7
|
+
import { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
7
8
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
9
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
9
10
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
@@ -32,7 +33,7 @@ const groupByTable = (policies) => {
|
|
|
32
33
|
return [...byTable.values()].toSorted((a, b) => a.table.localeCompare(b.table));
|
|
33
34
|
};
|
|
34
35
|
const RlsPanel = () => {
|
|
35
|
-
const $ = c(
|
|
36
|
+
const $ = c(49);
|
|
36
37
|
const t = useT();
|
|
37
38
|
let t0;
|
|
38
39
|
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -43,7 +44,8 @@ const RlsPanel = () => {
|
|
|
43
44
|
}
|
|
44
45
|
const {
|
|
45
46
|
data,
|
|
46
|
-
error
|
|
47
|
+
error,
|
|
48
|
+
errorSource
|
|
47
49
|
} = useAdminQuery(ADMIN_FUNCTIONS.rlsPolicies, t0);
|
|
48
50
|
const loaded = data !== void 0;
|
|
49
51
|
let T0;
|
|
@@ -55,43 +57,42 @@ const RlsPanel = () => {
|
|
|
55
57
|
let t5;
|
|
56
58
|
let t6;
|
|
57
59
|
let t7;
|
|
58
|
-
if ($[1] !== data || $[2] !== error || $[3] !==
|
|
60
|
+
if ($[1] !== data || $[2] !== error || $[3] !== errorSource || $[4] !== loaded || $[5] !== t) {
|
|
59
61
|
const tables = groupByTable(Array.isArray(data?.policies) ? data.policies : []);
|
|
60
62
|
let t82;
|
|
61
|
-
if ($[
|
|
63
|
+
if ($[15] !== data) {
|
|
62
64
|
t82 = Array.isArray(data?.roles) ? data.roles : [];
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
+
$[15] = data;
|
|
66
|
+
$[16] = t82;
|
|
65
67
|
} else {
|
|
66
|
-
t82 = $[
|
|
68
|
+
t82 = $[16];
|
|
67
69
|
}
|
|
68
70
|
roles = t82;
|
|
69
71
|
t5 = "flex flex-col gap-6";
|
|
70
72
|
t6 = "lunora-rls-panel";
|
|
71
|
-
if ($[
|
|
72
|
-
t7 = error !== null && /* @__PURE__ */ jsxDEV(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
role: "alert",
|
|
76
|
-
children: error
|
|
73
|
+
if ($[17] !== error || $[18] !== errorSource) {
|
|
74
|
+
t7 = error !== null && /* @__PURE__ */ jsxDEV(ErrorAlert, {
|
|
75
|
+
error: errorSource,
|
|
76
|
+
testId: "rls-error"
|
|
77
77
|
}, void 0, false);
|
|
78
|
-
$[
|
|
79
|
-
$[
|
|
78
|
+
$[17] = error;
|
|
79
|
+
$[18] = errorSource;
|
|
80
|
+
$[19] = t7;
|
|
80
81
|
} else {
|
|
81
|
-
t7 = $[
|
|
82
|
+
t7 = $[19];
|
|
82
83
|
}
|
|
83
84
|
t4 = "flex flex-col gap-2";
|
|
84
85
|
T0 = Card;
|
|
85
86
|
t1 = "overflow-hidden py-0";
|
|
86
87
|
let t92;
|
|
87
|
-
if ($[
|
|
88
|
+
if ($[20] !== t) {
|
|
88
89
|
t92 = t("Policies");
|
|
89
|
-
$[
|
|
90
|
-
$[
|
|
90
|
+
$[20] = t;
|
|
91
|
+
$[21] = t92;
|
|
91
92
|
} else {
|
|
92
|
-
t92 = $[
|
|
93
|
+
t92 = $[21];
|
|
93
94
|
}
|
|
94
|
-
if ($[
|
|
95
|
+
if ($[22] !== t92) {
|
|
95
96
|
t2 = /* @__PURE__ */ jsxDEV("header", {
|
|
96
97
|
className: "border-b border-border px-4 py-3",
|
|
97
98
|
children: /* @__PURE__ */ jsxDEV("span", {
|
|
@@ -99,10 +100,10 @@ const RlsPanel = () => {
|
|
|
99
100
|
children: t92
|
|
100
101
|
}, void 0, false)
|
|
101
102
|
}, void 0, false);
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
103
|
+
$[22] = t92;
|
|
104
|
+
$[23] = t2;
|
|
104
105
|
} else {
|
|
105
|
-
t2 = $[
|
|
106
|
+
t2 = $[23];
|
|
106
107
|
}
|
|
107
108
|
t3 = loaded && tables.length === 0 ? /* @__PURE__ */ jsxDEV(EmptyState, {
|
|
108
109
|
description: t("No `definePolicy` is wired through `.use(rls(...))` in this deployment. Add one to guard a table's rows."),
|
|
@@ -147,64 +148,65 @@ const RlsPanel = () => {
|
|
|
147
148
|
}, void 0, false);
|
|
148
149
|
$[1] = data;
|
|
149
150
|
$[2] = error;
|
|
150
|
-
$[3] =
|
|
151
|
-
$[4] =
|
|
152
|
-
$[5] =
|
|
153
|
-
$[6] =
|
|
154
|
-
$[7] =
|
|
155
|
-
$[8] =
|
|
156
|
-
$[9] =
|
|
157
|
-
$[10] =
|
|
158
|
-
$[11] =
|
|
159
|
-
$[12] =
|
|
160
|
-
$[13] =
|
|
151
|
+
$[3] = errorSource;
|
|
152
|
+
$[4] = loaded;
|
|
153
|
+
$[5] = t;
|
|
154
|
+
$[6] = T0;
|
|
155
|
+
$[7] = roles;
|
|
156
|
+
$[8] = t1;
|
|
157
|
+
$[9] = t2;
|
|
158
|
+
$[10] = t3;
|
|
159
|
+
$[11] = t4;
|
|
160
|
+
$[12] = t5;
|
|
161
|
+
$[13] = t6;
|
|
162
|
+
$[14] = t7;
|
|
161
163
|
} else {
|
|
162
|
-
T0 = $[
|
|
163
|
-
roles = $[
|
|
164
|
-
t1 = $[
|
|
165
|
-
t2 = $[
|
|
166
|
-
t3 = $[
|
|
167
|
-
t4 = $[
|
|
168
|
-
t5 = $[
|
|
169
|
-
t6 = $[
|
|
170
|
-
t7 = $[
|
|
164
|
+
T0 = $[6];
|
|
165
|
+
roles = $[7];
|
|
166
|
+
t1 = $[8];
|
|
167
|
+
t2 = $[9];
|
|
168
|
+
t3 = $[10];
|
|
169
|
+
t4 = $[11];
|
|
170
|
+
t5 = $[12];
|
|
171
|
+
t6 = $[13];
|
|
172
|
+
t7 = $[14];
|
|
171
173
|
}
|
|
172
174
|
let t8;
|
|
173
|
-
if ($[
|
|
175
|
+
if ($[24] !== T0 || $[25] !== t1 || $[26] !== t2 || $[27] !== t3) {
|
|
174
176
|
t8 = /* @__PURE__ */ jsxDEV(T0, {
|
|
175
177
|
className: t1,
|
|
176
178
|
children: [t2, t3]
|
|
177
179
|
}, void 0, true);
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
180
|
+
$[24] = T0;
|
|
181
|
+
$[25] = t1;
|
|
182
|
+
$[26] = t2;
|
|
183
|
+
$[27] = t3;
|
|
184
|
+
$[28] = t8;
|
|
183
185
|
} else {
|
|
184
|
-
t8 = $[
|
|
186
|
+
t8 = $[28];
|
|
185
187
|
}
|
|
186
188
|
let t9;
|
|
187
|
-
if ($[
|
|
189
|
+
if ($[29] !== t4 || $[30] !== t8) {
|
|
188
190
|
t9 = /* @__PURE__ */ jsxDEV("section", {
|
|
189
191
|
className: t4,
|
|
190
192
|
children: t8
|
|
191
193
|
}, void 0, false);
|
|
192
|
-
$[
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
194
|
+
$[29] = t4;
|
|
195
|
+
$[30] = t8;
|
|
196
|
+
$[31] = t9;
|
|
195
197
|
} else {
|
|
196
|
-
t9 = $[
|
|
198
|
+
t9 = $[31];
|
|
197
199
|
}
|
|
198
200
|
let t10;
|
|
199
|
-
if ($[
|
|
201
|
+
if ($[32] !== t) {
|
|
200
202
|
t10 = t("Roles");
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
+
$[32] = t;
|
|
204
|
+
$[33] = t10;
|
|
203
205
|
} else {
|
|
204
|
-
t10 = $[
|
|
206
|
+
t10 = $[33];
|
|
205
207
|
}
|
|
206
208
|
let t11;
|
|
207
|
-
if ($[
|
|
209
|
+
if ($[34] !== t10) {
|
|
208
210
|
t11 = /* @__PURE__ */ jsxDEV("header", {
|
|
209
211
|
className: "border-b border-border px-4 py-3",
|
|
210
212
|
children: /* @__PURE__ */ jsxDEV("span", {
|
|
@@ -212,13 +214,13 @@ const RlsPanel = () => {
|
|
|
212
214
|
children: t10
|
|
213
215
|
}, void 0, false)
|
|
214
216
|
}, void 0, false);
|
|
215
|
-
$[
|
|
216
|
-
$[
|
|
217
|
+
$[34] = t10;
|
|
218
|
+
$[35] = t11;
|
|
217
219
|
} else {
|
|
218
|
-
t11 = $[
|
|
220
|
+
t11 = $[35];
|
|
219
221
|
}
|
|
220
222
|
let t12;
|
|
221
|
-
if ($[
|
|
223
|
+
if ($[36] !== loaded || $[37] !== roles || $[38] !== t) {
|
|
222
224
|
t12 = loaded && roles.length === 0 ? /* @__PURE__ */ jsxDEV(EmptyState, {
|
|
223
225
|
description: t("No `defineRole` is registered via `rls(policies, { roles })`. Roles back `ctx.auth.can(...)` permission checks."),
|
|
224
226
|
testId: "rls-roles-empty",
|
|
@@ -242,15 +244,15 @@ const RlsPanel = () => {
|
|
|
242
244
|
}, void 0, false)]
|
|
243
245
|
}, void 0, true)
|
|
244
246
|
}, void 0, false);
|
|
245
|
-
$[
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
247
|
+
$[36] = loaded;
|
|
248
|
+
$[37] = roles;
|
|
249
|
+
$[38] = t;
|
|
250
|
+
$[39] = t12;
|
|
249
251
|
} else {
|
|
250
|
-
t12 = $[
|
|
252
|
+
t12 = $[39];
|
|
251
253
|
}
|
|
252
254
|
let t13;
|
|
253
|
-
if ($[
|
|
255
|
+
if ($[40] !== t11 || $[41] !== t12) {
|
|
254
256
|
t13 = /* @__PURE__ */ jsxDEV("section", {
|
|
255
257
|
className: "flex flex-col gap-2",
|
|
256
258
|
children: /* @__PURE__ */ jsxDEV(Card, {
|
|
@@ -258,27 +260,27 @@ const RlsPanel = () => {
|
|
|
258
260
|
children: [t11, t12]
|
|
259
261
|
}, void 0, true)
|
|
260
262
|
}, void 0, false);
|
|
261
|
-
$[
|
|
262
|
-
$[
|
|
263
|
-
$[
|
|
263
|
+
$[40] = t11;
|
|
264
|
+
$[41] = t12;
|
|
265
|
+
$[42] = t13;
|
|
264
266
|
} else {
|
|
265
|
-
t13 = $[
|
|
267
|
+
t13 = $[42];
|
|
266
268
|
}
|
|
267
269
|
let t14;
|
|
268
|
-
if ($[
|
|
270
|
+
if ($[43] !== t13 || $[44] !== t5 || $[45] !== t6 || $[46] !== t7 || $[47] !== t9) {
|
|
269
271
|
t14 = /* @__PURE__ */ jsxDEV("div", {
|
|
270
272
|
className: t5,
|
|
271
273
|
"data-testid": t6,
|
|
272
274
|
children: [t7, t9, t13]
|
|
273
275
|
}, void 0, true);
|
|
274
|
-
$[
|
|
275
|
-
$[
|
|
276
|
-
$[
|
|
277
|
-
$[
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
276
|
+
$[43] = t13;
|
|
277
|
+
$[44] = t5;
|
|
278
|
+
$[45] = t6;
|
|
279
|
+
$[46] = t7;
|
|
280
|
+
$[47] = t9;
|
|
281
|
+
$[48] = t14;
|
|
280
282
|
} else {
|
|
281
|
-
t14 = $[
|
|
283
|
+
t14 = $[48];
|
|
282
284
|
}
|
|
283
285
|
return t14;
|
|
284
286
|
};
|
|
@@ -8,11 +8,11 @@ import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
|
|
|
8
8
|
import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
|
|
9
9
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
10
10
|
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';
|
|
11
|
-
import { a as useClientQuery } from '../packem_shared/use-admin-query-
|
|
12
|
-
import { f as fireAndForget, e as errorMessage,
|
|
11
|
+
import { a as useClientQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
12
|
+
import { f as fireAndForget, e as errorMessage, i as formatTimestamp } from '../packem_shared/internal-DTsYVn-g.js';
|
|
13
13
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
14
14
|
import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
|
|
15
|
-
import { ScheduledJobs } from '../packem_shared/ScheduledJobs-
|
|
15
|
+
import { ScheduledJobs } from '../packem_shared/ScheduledJobs-ClaNpZsg.js';
|
|
16
16
|
|
|
17
17
|
const IDLE = {
|
|
18
18
|
kind: "idle"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
|
-
import { B as Bar, E as EvilBarChart } from '../packem_shared/bar-chart-
|
|
2
|
+
import { B as Bar, E as EvilBarChart } from '../packem_shared/bar-chart-DSwcWIRy.js';
|
|
3
3
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
4
4
|
|
|
5
5
|
const SPARKLINE_CONFIG = {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { E as ErrorAlert } from '../packem_shared/error-alert-BBT6D22d.js';
|
|
2
3
|
import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
|
|
3
4
|
import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
|
|
4
5
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
5
6
|
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';
|
|
6
|
-
import { u as useAdminQuery } from '../packem_shared/use-admin-query-
|
|
7
|
+
import { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
7
8
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
9
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
9
10
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
@@ -22,7 +23,7 @@ const OPERATION_ORDER = {
|
|
|
22
23
|
};
|
|
23
24
|
const sortRules = (rules) => [...rules].toSorted((a, b) => a.bucket.localeCompare(b.bucket) || OPERATION_ORDER[a.on] - OPERATION_ORDER[b.on] || (a.prefix ?? "").localeCompare(b.prefix ?? ""));
|
|
24
25
|
const StorageRulesPanel = () => {
|
|
25
|
-
const $ = c(
|
|
26
|
+
const $ = c(14);
|
|
26
27
|
const t = useT();
|
|
27
28
|
let t0;
|
|
28
29
|
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -33,44 +34,44 @@ const StorageRulesPanel = () => {
|
|
|
33
34
|
}
|
|
34
35
|
const {
|
|
35
36
|
data,
|
|
36
|
-
error
|
|
37
|
+
error,
|
|
38
|
+
errorSource
|
|
37
39
|
} = useAdminQuery(ADMIN_FUNCTIONS.storageRules, t0);
|
|
38
40
|
const loaded = data !== void 0;
|
|
39
41
|
let t1;
|
|
40
|
-
if ($[1] !== data || $[2] !== error || $[3] !==
|
|
42
|
+
if ($[1] !== data || $[2] !== error || $[3] !== errorSource || $[4] !== loaded || $[5] !== t) {
|
|
41
43
|
const rules = sortRules(Array.isArray(data?.rules) ? data.rules : []);
|
|
42
44
|
let t2;
|
|
43
|
-
if ($[
|
|
44
|
-
t2 = error !== null && /* @__PURE__ */ jsxDEV(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
role: "alert",
|
|
48
|
-
children: error
|
|
45
|
+
if ($[7] !== error || $[8] !== errorSource) {
|
|
46
|
+
t2 = error !== null && /* @__PURE__ */ jsxDEV(ErrorAlert, {
|
|
47
|
+
error: errorSource,
|
|
48
|
+
testId: "storage-rules-error"
|
|
49
49
|
}, void 0, false);
|
|
50
|
-
$[
|
|
51
|
-
$[
|
|
50
|
+
$[7] = error;
|
|
51
|
+
$[8] = errorSource;
|
|
52
|
+
$[9] = t2;
|
|
52
53
|
} else {
|
|
53
|
-
t2 = $[
|
|
54
|
+
t2 = $[9];
|
|
54
55
|
}
|
|
55
56
|
let t3;
|
|
56
|
-
if ($[
|
|
57
|
+
if ($[10] !== t) {
|
|
57
58
|
t3 = t("Storage rules are declared in code with defineStorageRule and gate ctx.storage access per bucket. This view is read-only.");
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
59
|
+
$[10] = t;
|
|
60
|
+
$[11] = t3;
|
|
60
61
|
} else {
|
|
61
|
-
t3 = $[
|
|
62
|
+
t3 = $[11];
|
|
62
63
|
}
|
|
63
64
|
let t4;
|
|
64
|
-
if ($[
|
|
65
|
+
if ($[12] !== t3) {
|
|
65
66
|
t4 = /* @__PURE__ */ jsxDEV("p", {
|
|
66
67
|
className: "text-sm text-muted-foreground",
|
|
67
68
|
"data-testid": "storage-rules-note",
|
|
68
69
|
children: t3
|
|
69
70
|
}, void 0, false);
|
|
70
|
-
$[
|
|
71
|
-
$[
|
|
71
|
+
$[12] = t3;
|
|
72
|
+
$[13] = t4;
|
|
72
73
|
} else {
|
|
73
|
-
t4 = $[
|
|
74
|
+
t4 = $[13];
|
|
74
75
|
}
|
|
75
76
|
t1 = /* @__PURE__ */ jsxDEV("div", {
|
|
76
77
|
className: "flex flex-col gap-4",
|
|
@@ -126,11 +127,12 @@ const StorageRulesPanel = () => {
|
|
|
126
127
|
}, void 0, true);
|
|
127
128
|
$[1] = data;
|
|
128
129
|
$[2] = error;
|
|
129
|
-
$[3] =
|
|
130
|
-
$[4] =
|
|
131
|
-
$[5] =
|
|
130
|
+
$[3] = errorSource;
|
|
131
|
+
$[4] = loaded;
|
|
132
|
+
$[5] = t;
|
|
133
|
+
$[6] = t1;
|
|
132
134
|
} else {
|
|
133
|
-
t1 = $[
|
|
135
|
+
t1 = $[6];
|
|
134
136
|
}
|
|
135
137
|
return t1;
|
|
136
138
|
};
|
|
@@ -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-
|
|
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(
|
|
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] !==
|
|
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 ($[
|
|
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
|
-
$[
|
|
102
|
-
$[
|
|
103
|
+
$[11] = shardKey;
|
|
104
|
+
$[12] = t5;
|
|
103
105
|
} else {
|
|
104
|
-
t5 = $[
|
|
106
|
+
t5 = $[12];
|
|
105
107
|
}
|
|
106
108
|
let t6;
|
|
107
|
-
if ($[
|
|
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
|
-
$[
|
|
124
|
-
$[
|
|
125
|
-
$[
|
|
125
|
+
$[13] = result;
|
|
126
|
+
$[14] = t;
|
|
127
|
+
$[15] = t6;
|
|
126
128
|
} else {
|
|
127
|
-
t6 = $[
|
|
129
|
+
t6 = $[15];
|
|
128
130
|
}
|
|
129
131
|
let t7;
|
|
130
|
-
if ($[
|
|
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
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
137
|
+
$[16] = t5;
|
|
138
|
+
$[17] = t6;
|
|
139
|
+
$[18] = t7;
|
|
138
140
|
} else {
|
|
139
|
-
t7 = $[
|
|
141
|
+
t7 = $[18];
|
|
140
142
|
}
|
|
141
143
|
let t8;
|
|
142
|
-
if ($[
|
|
143
|
-
t8 = error !== null && /* @__PURE__ */ jsxDEV(
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
$[
|
|
150
|
-
$[
|
|
149
|
+
$[19] = error;
|
|
150
|
+
$[20] = errorSource;
|
|
151
|
+
$[21] = t8;
|
|
151
152
|
} else {
|
|
152
|
-
t8 = $[
|
|
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] =
|
|
227
|
-
$[7] =
|
|
228
|
-
$[8] =
|
|
229
|
-
$[9] =
|
|
227
|
+
$[6] = errorSource;
|
|
228
|
+
$[7] = result;
|
|
229
|
+
$[8] = shardKey;
|
|
230
|
+
$[9] = t;
|
|
231
|
+
$[10] = t4;
|
|
230
232
|
} else {
|
|
231
|
-
t4 = $[
|
|
233
|
+
t4 = $[10];
|
|
232
234
|
}
|
|
233
235
|
return t4;
|
|
234
236
|
};
|