react-semaphor 0.1.260 → 0.1.262
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/chunks/dashboard-controls-AFlpiHtC.js +42 -0
- package/dist/chunks/dashboard-controls-Cq2fQ7bv.js +1979 -0
- package/dist/chunks/dashboard-filter-controls-button-Cedz-YZx.js +11 -0
- package/dist/chunks/dashboard-filter-controls-button-udrHABi3.js +1066 -0
- package/dist/chunks/{dashboard-json-BUrApiYl.js → dashboard-json-BU6cvmRP.js} +1 -1
- package/dist/chunks/{dashboard-json-U7VmojaR.js → dashboard-json-RKwWONKm.js} +1 -1
- package/dist/chunks/dashboard-summary-settings-dialog-Bl-XplTR.js +1 -0
- package/dist/chunks/dashboard-summary-settings-dialog-DDxHxKjp.js +535 -0
- package/dist/chunks/{edit-dashboard-visual-N2r5ObJ_.js → edit-dashboard-visual-B1r0Ho9B.js} +5970 -5492
- package/dist/chunks/edit-dashboard-visual-BwDFI3hI.js +188 -0
- package/dist/chunks/{index-BNdZjo5d.js → index-BtbNfaQD.js} +50751 -47206
- package/dist/chunks/index-DZ93VE76.js +1114 -0
- package/dist/chunks/{normalize-dashboard-for-dirty-check-Bn27S0PN.js → normalize-dashboard-for-dirty-check-5KpZN8xr.js} +20 -19
- package/dist/chunks/normalize-dashboard-for-dirty-check-BXRUMVb2.js +1 -0
- package/dist/chunks/{resource-management-panel-C_ZqsVMH.js → resource-management-panel-Cz7MYBC7.js} +1 -1
- package/dist/chunks/{resource-management-panel-zF23gLOJ.js → resource-management-panel-DxG6-naG.js} +70 -70
- package/dist/chunks/use-create-flow-overlay-state-BcMrPzMc.js +1445 -0
- package/dist/chunks/use-create-flow-overlay-state-D13D1vB_.js +21 -0
- package/dist/chunks/{use-visual-utils-BBTQGDdB.js → use-visual-utils-DScc5-p_.js} +1 -1
- package/dist/chunks/{use-visual-utils-K1k39w2U.js → use-visual-utils-DmxEKpor.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +5 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +102 -99
- package/dist/shared/index.cjs +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +5 -4
- package/dist/types/dashboard.d.ts +105 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +4 -3
- package/dist/types/main.d.ts +175 -1
- package/dist/types/shared.d.ts +89 -0
- package/dist/types/surfboard.d.ts +105 -0
- package/dist/types/types.d.ts +113 -0
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-CIdYp98a.js +0 -47
- package/dist/chunks/dashboard-controls-DOqBYrkB.js +0 -1847
- package/dist/chunks/dashboard-summary-settings-dialog-CaxmCNyy.js +0 -1
- package/dist/chunks/dashboard-summary-settings-dialog-DlVBUQmC.js +0 -544
- package/dist/chunks/edit-dashboard-visual-uA-0wLnR.js +0 -193
- package/dist/chunks/editor-action-buttons-B6lABkRB.js +0 -412
- package/dist/chunks/editor-action-buttons-Dh7Xndgk.js +0 -21
- package/dist/chunks/index-DOeggx0V.js +0 -1109
- package/dist/chunks/normalize-dashboard-for-dirty-check-B7NQDI1H.js +0 -1
- package/dist/chunks/notification-bell-BxyeaeRc.js +0 -839
- package/dist/chunks/notification-bell-tJRds5JJ.js +0 -6
package/dist/index.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { aT as Me, aV as Fe, bB as Le, aX as
|
|
3
|
-
import { DEFAULT_CALENDAR_CONTEXT as
|
|
4
|
-
import { C as
|
|
1
|
+
import { b as j, V as q, W as H, Y as W, Z as G, _ as K, $ as Y, a0 as X, a1 as J, a2 as Z, u as F, a3 as O, a4 as ee, P as ae, k as te, B as T, c as _, a5 as se, l as re, m as ne, n as ie, a6 as Q, a7 as oe, o as le, p as de, q as ce, r as ue, s as me, a8 as he, a9 as pe, aa as fe, ab as E, ac as be, ad as ge } from "./chunks/index-BtbNfaQD.js";
|
|
2
|
+
import { aT as Me, aV as Fe, bB as Le, aX as Ue, aU as ze, aw as Be, aY as Oe, D as je, au as We, ao as Qe, bH as Ve, b0 as $e, ag as qe, aj as He, aj as Ge, ak as Ke, av as Ye, a as Xe, bG as Je, ar as Ze, bm as ea, bj as aa, bC as ta, b7 as sa, bo as ra, at as na, ap as ia, aq as oa, b1 as la, bK as da, bl as ca, bv as ua, bs as ma, bz as ha, bt as pa, bu as fa, br as ba, bq as ga, b9 as xa, bF as Na, bE as va, bD as ya, b8 as Aa, bc as Ca, bd as Sa, b6 as Da, as as Ea, b5 as Ta, a_ as wa, a$ as Ra, aZ as Ia, ba as _a, b4 as Pa, bJ as ka, bI as Ma, b3 as Fa, b2 as La, by as Ua, bk as za, bx as Ba, be as Oa, bb as ja, bp as Wa, bn as Qa, bw as Va, bA as $a, aD as qa, aA as Ha, aM as Ga, aK as Ka, aS as Ya, aR as Xa, aJ as Ja, aI as Za, aH as et, aL as at, aW as tt, aF as st, aG as rt, aN as nt, aP as it, an as ot, aO as lt, ay as dt, bg as ct, bi as ut, bh as mt, N as ht, am as pt, af as ft, ax as bt, az as gt, ah as xt, M as Nt, bf as vt, U as yt, aC as At, aB as Ct, aE as St, ae as Dt, al as Et, aQ as Tt, ai as wt } from "./chunks/index-BtbNfaQD.js";
|
|
3
|
+
import { CONTROL_CARD_DEFAULT_VALUE as It, DEFAULT_CALENDAR_CONTEXT as _t, DEFAULT_SEMANTIC_DOMAIN_ACCESS as Pt, EMPTY_SELECTION as kt } from "./types/index.js";
|
|
4
|
+
import { C as Ft, D as Lt } from "./chunks/dashboard-summary-settings-dialog-DDxHxKjp.js";
|
|
5
5
|
import { jsx as e, jsxs as r, Fragment as xe } from "react/jsx-runtime";
|
|
6
|
-
import * as
|
|
7
|
-
import { useMemo as V, useState as
|
|
8
|
-
import { ResourceManagementPanel as zt } from "./chunks/resource-management-panel-
|
|
9
|
-
import { u as
|
|
6
|
+
import * as R from "react";
|
|
7
|
+
import { useMemo as V, useState as P, useEffect as L, useCallback as M } from "react";
|
|
8
|
+
import { ResourceManagementPanel as zt } from "./chunks/resource-management-panel-DxG6-naG.js";
|
|
9
|
+
import { u as Ot } from "./chunks/use-debounced-dirty-check-BwAbnX_5.js";
|
|
10
10
|
import "react-dom";
|
|
11
|
-
import { A as
|
|
12
|
-
import { n as
|
|
11
|
+
import { A as Wt, D as Qt, c as Vt, a as $t, E as qt, N as Ht, U as Gt, V as Kt, u as Yt, b as Xt, d as Jt } from "./chunks/dashboard-filter-controls-button-udrHABi3.js";
|
|
12
|
+
import { n as es, s as as } from "./chunks/normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
13
13
|
function De(a) {
|
|
14
|
-
const { authToken: s, tokenProps:
|
|
14
|
+
const { authToken: s, tokenProps: i } = j();
|
|
15
15
|
return q({
|
|
16
|
-
mutationFn: async (
|
|
17
|
-
|
|
16
|
+
mutationFn: async (l) => H(
|
|
17
|
+
i.apiServiceUrl,
|
|
18
18
|
s.accessToken,
|
|
19
19
|
a,
|
|
20
|
-
|
|
20
|
+
l
|
|
21
21
|
)
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
function Ee(a) {
|
|
25
|
-
const { displayPreferences: s, ...
|
|
26
|
-
...
|
|
25
|
+
const { displayPreferences: s, cardId: i, ...l } = a, n = {
|
|
26
|
+
...l,
|
|
27
27
|
id: a.dashboardId
|
|
28
28
|
// override the id to the dashboard id so that the dashboard is not loaded
|
|
29
29
|
};
|
|
30
|
-
return /* @__PURE__ */ e(W, { FallbackComponent: G, children: /* @__PURE__ */ r(K, { dashboardProps:
|
|
30
|
+
return /* @__PURE__ */ e(W, { FallbackComponent: G, children: /* @__PURE__ */ r(K, { dashboardProps: n, children: [
|
|
31
31
|
/* @__PURE__ */ e(Y, { componentType: "visual", componentId: a.cardId }),
|
|
32
|
-
/* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(J, { displayPreferences: s, children: /* @__PURE__ */ e(Z, { type: "visual",
|
|
32
|
+
/* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(J, { displayPreferences: s, children: /* @__PURE__ */ e(Z, { type: "visual", cardId: i, ...n, children: /* @__PURE__ */ e(Ne, { cardId: i }) }) }) })
|
|
33
33
|
] }) });
|
|
34
34
|
}
|
|
35
35
|
function Ne({ cardId: a }) {
|
|
36
|
-
const s = F((
|
|
36
|
+
const s = F((n) => {
|
|
37
37
|
var c;
|
|
38
|
-
return (c =
|
|
39
|
-
}), { card:
|
|
40
|
-
const
|
|
38
|
+
return (c = n.dashboard) == null ? void 0 : c.sheets;
|
|
39
|
+
}), { card: i, frame: l } = V(() => {
|
|
40
|
+
const n = s == null ? void 0 : s.flatMap((o) => o.frames), c = n == null ? void 0 : n.flatMap((o) => o == null ? void 0 : o.cards), u = c == null ? void 0 : c.find((o) => (o == null ? void 0 : o.id) === a), t = n == null ? void 0 : n.find(
|
|
41
41
|
(o) => {
|
|
42
42
|
var m;
|
|
43
43
|
return (m = o == null ? void 0 : o.cards) == null ? void 0 : m.find((b) => (b == null ? void 0 : b.id) === a);
|
|
@@ -45,8 +45,8 @@ function Ne({ cardId: a }) {
|
|
|
45
45
|
);
|
|
46
46
|
return { card: u, frame: t };
|
|
47
47
|
}, [s, a]);
|
|
48
|
-
return !
|
|
49
|
-
|
|
48
|
+
return !i || !l ? /* @__PURE__ */ e(
|
|
49
|
+
O,
|
|
50
50
|
{
|
|
51
51
|
error: new Error("Card not found"),
|
|
52
52
|
resetErrorBoundary: () => {
|
|
@@ -57,42 +57,42 @@ function Ne({ cardId: a }) {
|
|
|
57
57
|
W,
|
|
58
58
|
{
|
|
59
59
|
FallbackComponent: ({
|
|
60
|
-
error:
|
|
60
|
+
error: n,
|
|
61
61
|
resetErrorBoundary: c
|
|
62
62
|
}) => /* @__PURE__ */ e(
|
|
63
|
-
|
|
63
|
+
O,
|
|
64
64
|
{
|
|
65
|
-
error:
|
|
65
|
+
error: n,
|
|
66
66
|
resetErrorBoundary: c,
|
|
67
67
|
customerFacingMessage: "Error creating visual. Please try again."
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
|
-
children: /* @__PURE__ */ e(ee, { card:
|
|
70
|
+
children: /* @__PURE__ */ e(ee, { card: i, frame: l })
|
|
71
71
|
}
|
|
72
72
|
) });
|
|
73
73
|
}
|
|
74
74
|
function Te({
|
|
75
75
|
name: a,
|
|
76
76
|
items: s,
|
|
77
|
-
value:
|
|
78
|
-
onChange:
|
|
79
|
-
isLoading:
|
|
77
|
+
value: i,
|
|
78
|
+
onChange: l,
|
|
79
|
+
isLoading: n,
|
|
80
80
|
isError: c,
|
|
81
81
|
refetch: u,
|
|
82
82
|
className: t,
|
|
83
83
|
icon: o,
|
|
84
84
|
showNone: m = !1
|
|
85
85
|
}) {
|
|
86
|
-
const b =
|
|
87
|
-
|
|
86
|
+
const b = R.useRef(null), [v, g] = R.useState(!1), [y, A] = R.useState("100%"), x = m ? [...s || [], { id: "none", name: "None" }] : s;
|
|
87
|
+
R.useLayoutEffect(() => {
|
|
88
88
|
b.current && A(b.current.offsetWidth);
|
|
89
89
|
}, []);
|
|
90
|
-
function
|
|
90
|
+
function k() {
|
|
91
91
|
var h;
|
|
92
|
-
return
|
|
92
|
+
return n ? "Loading..." : c ? "Error" : i ? (h = s == null ? void 0 : s.find((N) => N.id === i)) == null ? void 0 : h.name : `Select ${a}`;
|
|
93
93
|
}
|
|
94
94
|
function w(h, N) {
|
|
95
|
-
|
|
95
|
+
l(N), g(!1);
|
|
96
96
|
}
|
|
97
97
|
return /* @__PURE__ */ r(ae, { open: v, onOpenChange: g, children: [
|
|
98
98
|
/* @__PURE__ */ e(te, { asChild: !0, children: /* @__PURE__ */ r(
|
|
@@ -102,11 +102,11 @@ function Te({
|
|
|
102
102
|
variant: "outline",
|
|
103
103
|
role: "combobox",
|
|
104
104
|
"aria-expanded": v,
|
|
105
|
-
className:
|
|
105
|
+
className: _("flex h-9 w-full justify-between", t),
|
|
106
106
|
children: [
|
|
107
107
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
|
|
108
108
|
o && /* @__PURE__ */ e("div", { className: "mr-2", children: o }),
|
|
109
|
-
/* @__PURE__ */ e("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children:
|
|
109
|
+
/* @__PURE__ */ e("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children: k() })
|
|
110
110
|
] }),
|
|
111
111
|
/* @__PURE__ */ e(se, { className: "size-4 opacity-50" })
|
|
112
112
|
]
|
|
@@ -123,9 +123,9 @@ function Te({
|
|
|
123
123
|
/* @__PURE__ */ e(Q, { className: "h-7", onClick: u, children: /* @__PURE__ */ e(
|
|
124
124
|
oe,
|
|
125
125
|
{
|
|
126
|
-
className:
|
|
126
|
+
className: _(
|
|
127
127
|
"size-3.5 opacity-50",
|
|
128
|
-
|
|
128
|
+
n && "animate-spin"
|
|
129
129
|
)
|
|
130
130
|
}
|
|
131
131
|
) })
|
|
@@ -146,9 +146,9 @@ function Te({
|
|
|
146
146
|
/* @__PURE__ */ e(
|
|
147
147
|
me,
|
|
148
148
|
{
|
|
149
|
-
className:
|
|
149
|
+
className: _(
|
|
150
150
|
"size-4",
|
|
151
|
-
|
|
151
|
+
i === h.id ? "opacity-100" : "opacity-0"
|
|
152
152
|
)
|
|
153
153
|
}
|
|
154
154
|
),
|
|
@@ -167,43 +167,43 @@ function we({
|
|
|
167
167
|
triggerButtonClassName: a,
|
|
168
168
|
variant: s = "ghost"
|
|
169
169
|
}) {
|
|
170
|
-
const [
|
|
170
|
+
const [i, l] = P(!1), n = F((u) => {
|
|
171
171
|
var t;
|
|
172
172
|
return (t = u.dashboard) == null ? void 0 : t.id;
|
|
173
173
|
}), c = F((u) => {
|
|
174
174
|
var t;
|
|
175
175
|
return (t = u.dashboard) == null ? void 0 : t.title;
|
|
176
176
|
});
|
|
177
|
-
return
|
|
177
|
+
return n ? /* @__PURE__ */ r(xe, { children: [
|
|
178
178
|
/* @__PURE__ */ e(
|
|
179
179
|
Q,
|
|
180
180
|
{
|
|
181
181
|
tooltip: "Schedule Dashboard",
|
|
182
|
-
className:
|
|
182
|
+
className: _("h-7 p-2", a),
|
|
183
183
|
buttonProps: { variant: s },
|
|
184
|
-
onClick: () =>
|
|
184
|
+
onClick: () => l(!0),
|
|
185
185
|
children: /* @__PURE__ */ e(he, { className: "size-4" })
|
|
186
186
|
}
|
|
187
187
|
),
|
|
188
188
|
/* @__PURE__ */ e(
|
|
189
189
|
pe,
|
|
190
190
|
{
|
|
191
|
-
open:
|
|
192
|
-
onOpenChange:
|
|
193
|
-
dashboardId:
|
|
191
|
+
open: i,
|
|
192
|
+
onOpenChange: l,
|
|
193
|
+
dashboardId: n,
|
|
194
194
|
dashboardName: c
|
|
195
195
|
}
|
|
196
196
|
)
|
|
197
197
|
] }) : null;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Re(a, s) {
|
|
200
200
|
L(() => (a && s && (window.__SEMAPHOR_PRINT_STATE__ = {
|
|
201
201
|
...s
|
|
202
202
|
}), () => {
|
|
203
203
|
a && window.__SEMAPHOR_PRINT_STATE__ && delete window.__SEMAPHOR_PRINT_STATE__;
|
|
204
204
|
}), [a, s]);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function I(a) {
|
|
207
207
|
if (!a) return "--";
|
|
208
208
|
const s = new Date(a);
|
|
209
209
|
return Number.isNaN(s.getTime()) ? "--" : s.toLocaleString();
|
|
@@ -212,11 +212,11 @@ function ve(a) {
|
|
|
212
212
|
var s;
|
|
213
213
|
return ((s = a.alertState) == null ? void 0 : s.currentState) === "FIRING" ? "Signal surfaced" : a.status === "ACTIVE" ? "Watching" : a.status === "PAUSED" ? "Paused" : a.status;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
var h, N,
|
|
217
|
-
const { authToken:
|
|
215
|
+
function Ie({ alertId: a, onBack: s }) {
|
|
216
|
+
var h, N, U, z;
|
|
217
|
+
const { authToken: i, tokenProps: l } = j(), { data: n, isLoading: c, refetch: u } = fe(a), t = (n == null ? void 0 : n.alert) ?? null, [o, m] = P([]), [b, v] = P([]), [g, y] = P(null), A = M(async () => {
|
|
218
218
|
var f;
|
|
219
|
-
const d =
|
|
219
|
+
const d = l == null ? void 0 : l.apiServiceUrl, p = i == null ? void 0 : i.accessToken;
|
|
220
220
|
if (!d || !p || !a) return null;
|
|
221
221
|
try {
|
|
222
222
|
const S = await fetch(`${d}/v1/alerts/${a}/runs?limit=20`, {
|
|
@@ -231,8 +231,8 @@ function Re({ alertId: a, onBack: s }) {
|
|
|
231
231
|
return v([]), y(null), null;
|
|
232
232
|
}
|
|
233
233
|
return null;
|
|
234
|
-
}, [a,
|
|
235
|
-
const p =
|
|
234
|
+
}, [a, i, g, l]), x = M(async (d) => {
|
|
235
|
+
const p = l == null ? void 0 : l.apiServiceUrl, f = i == null ? void 0 : i.accessToken, S = d ?? g;
|
|
236
236
|
if (!p || !f || !a || !S) {
|
|
237
237
|
m([]);
|
|
238
238
|
return;
|
|
@@ -252,7 +252,7 @@ function Re({ alertId: a, onBack: s }) {
|
|
|
252
252
|
} catch {
|
|
253
253
|
m([]);
|
|
254
254
|
}
|
|
255
|
-
}, [a,
|
|
255
|
+
}, [a, i, g, l]), k = M(async () => {
|
|
256
256
|
await u();
|
|
257
257
|
const d = await A();
|
|
258
258
|
await x(d);
|
|
@@ -278,7 +278,7 @@ function Re({ alertId: a, onBack: s }) {
|
|
|
278
278
|
/* @__PURE__ */ e(E, { variant: t.status === "ACTIVE" ? "default" : "secondary", children: ve(t) }),
|
|
279
279
|
((h = t.alertState) == null ? void 0 : h.currentState) && /* @__PURE__ */ e(E, { variant: t.alertState.currentState === "FIRING" ? "destructive" : "outline", children: t.alertState.currentState === "FIRING" ? "Signal surfaced" : "Stable" })
|
|
280
280
|
] }),
|
|
281
|
-
/* @__PURE__ */ e(T, { variant: "outline", size: "sm", onClick: () => void
|
|
281
|
+
/* @__PURE__ */ e(T, { variant: "outline", size: "sm", onClick: () => void k(), children: "Refresh" })
|
|
282
282
|
] }),
|
|
283
283
|
t.description && /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: t.description }),
|
|
284
284
|
/* @__PURE__ */ r("div", { className: "rounded-md border bg-muted/30 p-4 text-sm", children: [
|
|
@@ -301,16 +301,16 @@ function Re({ alertId: a, onBack: s }) {
|
|
|
301
301
|
/* @__PURE__ */ r("div", { children: [
|
|
302
302
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Last Evaluated:" }),
|
|
303
303
|
" ",
|
|
304
|
-
|
|
304
|
+
I((N = t.alertState) == null ? void 0 : N.lastEvaluatedAt)
|
|
305
305
|
] }),
|
|
306
306
|
/* @__PURE__ */ r("div", { children: [
|
|
307
307
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Last Surfaced:" }),
|
|
308
308
|
" ",
|
|
309
|
-
|
|
309
|
+
I((U = t.alertState) == null ? void 0 : U.lastTriggeredAt)
|
|
310
310
|
] })
|
|
311
311
|
] })
|
|
312
312
|
] }),
|
|
313
|
-
((
|
|
313
|
+
((z = t.deliveryConfig) == null ? void 0 : z.channels) && t.deliveryConfig.channels.length > 0 && /* @__PURE__ */ r("div", { className: "rounded-md border bg-background p-4 space-y-2", children: [
|
|
314
314
|
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold", children: "Where It Surfaces" }),
|
|
315
315
|
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: t.deliveryConfig.channels.map((d) => /* @__PURE__ */ e(E, { variant: "outline", children: d }, d)) })
|
|
316
316
|
] }),
|
|
@@ -322,7 +322,7 @@ function Re({ alertId: a, onBack: s }) {
|
|
|
322
322
|
variant: d.id === g ? "default" : "outline",
|
|
323
323
|
size: "sm",
|
|
324
324
|
onClick: () => y(d.id),
|
|
325
|
-
children:
|
|
325
|
+
children: I(d.scheduledFor)
|
|
326
326
|
},
|
|
327
327
|
d.id
|
|
328
328
|
)) }),
|
|
@@ -345,7 +345,7 @@ function Re({ alertId: a, onBack: s }) {
|
|
|
345
345
|
children: f.status
|
|
346
346
|
}
|
|
347
347
|
) }),
|
|
348
|
-
/* @__PURE__ */ e("td", { className: "px-2 py-1", children:
|
|
348
|
+
/* @__PURE__ */ e("td", { className: "px-2 py-1", children: I(f.createdAt) }),
|
|
349
349
|
/* @__PURE__ */ e("td", { className: "px-2 py-1 text-muted-foreground", children: f.error || "--" })
|
|
350
350
|
] }, f.id)) })
|
|
351
351
|
] }) })
|
|
@@ -353,9 +353,9 @@ function Re({ alertId: a, onBack: s }) {
|
|
|
353
353
|
] })
|
|
354
354
|
] }) : /* @__PURE__ */ e("div", { className: "p-4 text-sm text-muted-foreground", children: "Signal not found." });
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function _e() {
|
|
357
357
|
var c, u;
|
|
358
|
-
const { quotasQuery: a, usageQuery: s } = ge(),
|
|
358
|
+
const { quotasQuery: a, usageQuery: s } = ge(), i = ((c = a.data) == null ? void 0 : c.quotas) || [], l = ((u = s.data) == null ? void 0 : u.usage) || [], n = new Map(l.map((t) => [t.tenantId || "org", t]));
|
|
359
359
|
return /* @__PURE__ */ r("div", { className: "space-y-4 p-4", children: [
|
|
360
360
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-between", children: [
|
|
361
361
|
/* @__PURE__ */ e("h2", { className: "text-xl font-semibold", children: "Alert Quotas" }),
|
|
@@ -380,8 +380,8 @@ function Pe() {
|
|
|
380
380
|
/* @__PURE__ */ e("th", { className: "px-3 py-2 text-left font-medium", children: "Min Cadence" }),
|
|
381
381
|
/* @__PURE__ */ e("th", { className: "px-3 py-2 text-left font-medium", children: "Max Context Sources" })
|
|
382
382
|
] }) }),
|
|
383
|
-
/* @__PURE__ */ e("tbody", { children:
|
|
384
|
-
const o = t.tenantId || "org", m =
|
|
383
|
+
/* @__PURE__ */ e("tbody", { children: i.map((t) => {
|
|
384
|
+
const o = t.tenantId || "org", m = n.get(o);
|
|
385
385
|
return /* @__PURE__ */ r("tr", { className: "border-t", children: [
|
|
386
386
|
/* @__PURE__ */ e("td", { className: "px-3 py-2", children: o }),
|
|
387
387
|
/* @__PURE__ */ e("td", { className: "px-3 py-2", children: (m == null ? void 0 : m.activeAlerts) ?? 0 }),
|
|
@@ -397,29 +397,32 @@ function Pe() {
|
|
|
397
397
|
] });
|
|
398
398
|
}
|
|
399
399
|
export {
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
Wt as AdvancedModeToggle,
|
|
401
|
+
Ie as AlertDetailPageEmbedded,
|
|
402
402
|
Me as AlertManagementPage,
|
|
403
403
|
Fe as AlertWizardDialog,
|
|
404
404
|
Le as AlertsApiError,
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
405
|
+
Ue as CALCULATED_FIELD_ENTITY_MARKER,
|
|
406
|
+
It as CONTROL_CARD_DEFAULT_VALUE,
|
|
407
|
+
Ft as CalendarPreferencesDialog,
|
|
408
|
+
ze as CardAlertIndicator,
|
|
408
409
|
Be as CardSummary,
|
|
409
410
|
Te as Combobox,
|
|
410
|
-
|
|
411
|
-
|
|
411
|
+
Oe as DATE_FORMAT_VALUES,
|
|
412
|
+
_t as DEFAULT_CALENDAR_CONTEXT,
|
|
412
413
|
Pt as DEFAULT_SEMANTIC_DOMAIN_ACCESS,
|
|
413
|
-
|
|
414
|
+
je as Dashboard,
|
|
415
|
+
Qt as DashboardControlsSettings,
|
|
414
416
|
We as DashboardExportDialog,
|
|
415
|
-
|
|
417
|
+
Vt as DashboardFilterControlsButton,
|
|
418
|
+
Lt as DashboardSummarySettingsDialog,
|
|
416
419
|
Qe as DashboardWC,
|
|
417
420
|
kt as EMPTY_SELECTION,
|
|
418
421
|
pe as EmailScheduleDialog,
|
|
419
422
|
Ve as ExportError,
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
+
$t as ExportNotificationItem,
|
|
424
|
+
qt as ExportNotificationList,
|
|
425
|
+
Ht as NotificationBell,
|
|
423
426
|
$e as PivotMarkerEnum,
|
|
424
427
|
zt as ResourceManagementPanel,
|
|
425
428
|
qe as ResourceType,
|
|
@@ -430,10 +433,10 @@ export {
|
|
|
430
433
|
Ke as ShareDialog,
|
|
431
434
|
Ye as SummaryCard,
|
|
432
435
|
Xe as Surfboard,
|
|
433
|
-
|
|
434
|
-
|
|
436
|
+
_e as TenantQuotaPage,
|
|
437
|
+
Gt as UnsavedChangesAlert,
|
|
435
438
|
Ee as Visual,
|
|
436
|
-
|
|
439
|
+
Kt as VisualEditingControls,
|
|
437
440
|
H as backtestAlert,
|
|
438
441
|
Je as cancelExport,
|
|
439
442
|
Ze as cloneDeep,
|
|
@@ -466,21 +469,21 @@ export {
|
|
|
466
469
|
Ea as invalidateToken,
|
|
467
470
|
Ta as isBooleanDataType,
|
|
468
471
|
wa as isCalculatedDimension,
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
472
|
+
Ra as isCalculatedField,
|
|
473
|
+
Ia as isCalculatedMetric,
|
|
474
|
+
_a as isColumnInSqlGen,
|
|
475
|
+
Pa as isDateDataType,
|
|
476
|
+
ka as isExportComplete,
|
|
474
477
|
Ma as isExportInProgress,
|
|
475
478
|
Fa as isNumberDataType,
|
|
476
479
|
La as isTextDataType,
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
+
Ua as listAlertQuotas,
|
|
481
|
+
za as listAlerts,
|
|
482
|
+
es as normalizeDashboardForDirtyCheck,
|
|
480
483
|
Ba as previewAlertDeliverable,
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
+
Oa as resolveDataType,
|
|
485
|
+
ja as resolveDatamodelName,
|
|
486
|
+
as as serializeDashboardForDirtyCheck,
|
|
484
487
|
Wa as triggerAlertNow,
|
|
485
488
|
Qa as updateAlert,
|
|
486
489
|
Va as updateAlertContextSources,
|
|
@@ -516,18 +519,18 @@ export {
|
|
|
516
519
|
bt as useDashboardSummary,
|
|
517
520
|
gt as useDataColumns,
|
|
518
521
|
xt as useDateFilterHook,
|
|
519
|
-
|
|
522
|
+
Ot as useDebouncedDirtyCheck,
|
|
520
523
|
Nt as useEditorActions,
|
|
521
524
|
vt as useEditorAside,
|
|
522
525
|
yt as useEditorStore,
|
|
523
526
|
At as useExportActions,
|
|
524
|
-
|
|
525
|
-
|
|
527
|
+
Yt as useExportPolling,
|
|
528
|
+
Xt as useExportRecovery,
|
|
526
529
|
Ct as useExportStore,
|
|
527
|
-
|
|
530
|
+
Re as useExposePrintState,
|
|
528
531
|
St as useInProgressExportsCount,
|
|
529
532
|
Dt as useManagementStore,
|
|
530
|
-
|
|
533
|
+
Jt as usePristineSnapshotInitializer,
|
|
531
534
|
Et as useResourceManagement,
|
|
532
535
|
Tt as useSelectedAlertId,
|
|
533
536
|
wt as useTextFilterHook
|
package/dist/shared/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/use-debounced-dirty-check-XHSwAefL.js"),e=require("../chunks/normalize-dashboard-for-dirty-check-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/use-debounced-dirty-check-XHSwAefL.js"),e=require("../chunks/normalize-dashboard-for-dirty-check-BXRUMVb2.js");exports.useDebouncedDirtyCheck=r.useDebouncedDirtyCheck;exports.normalizeDashboardForDirtyCheck=e.normalizeDashboardForDirtyCheck;exports.serializeDashboardForDirtyCheck=e.serializeDashboardForDirtyCheck;
|
package/dist/shared/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as o } from "../chunks/use-debounced-dirty-check-BwAbnX_5.js";
|
|
2
|
-
import { n as s, s as i } from "../chunks/normalize-dashboard-for-dirty-check-
|
|
2
|
+
import { n as s, s as i } from "../chunks/normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
3
3
|
export {
|
|
4
4
|
s as normalizeDashboardForDirtyCheck,
|
|
5
5
|
i as serializeDashboardForDirtyCheck,
|