react-semaphor 0.1.311 → 0.1.314
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/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/chunks/{braces-CSECDaJQ.js → braces-CWi8x9ww.js} +1 -1
- package/dist/chunks/{braces-DwaAt32i.js → braces-NfG5hX2c.js} +1 -1
- package/dist/chunks/calendar-preferences-dialog-BzpQ5u4h.js +1 -0
- package/dist/chunks/calendar-preferences-dialog-D70CuT-1.js +456 -0
- package/dist/chunks/{chevrons-up-down-DJhB8JNW.js → chevrons-up-down-B2viXO2I.js} +1 -1
- package/dist/chunks/{chevrons-up-down-3vBEM7eI.js → chevrons-up-down-DiWloubI.js} +1 -1
- package/dist/chunks/dashboard-controls-BS_aZcxs.js +57 -0
- package/dist/chunks/dashboard-controls-DbKtbw1V.js +2021 -0
- package/dist/chunks/dashboard-filter-controls-launcher-C8Wm2Smj.js +1540 -0
- package/dist/chunks/dashboard-filter-controls-launcher-CMXpudFJ.js +11 -0
- package/dist/chunks/{dashboard-json-GL_IXTCk.js → dashboard-json-CJCAen1R.js} +2 -2
- package/dist/chunks/{dashboard-json-B_rQbUUz.js → dashboard-json-v2C6Tmqf.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-nGSsSTYx.js → edit-dashboard-visual-DljWvnMy.js} +4758 -4694
- package/dist/chunks/edit-dashboard-visual-lRn3FeaP.js +183 -0
- package/dist/chunks/{index-9v7DehZd.js → index-P5hPTTzm.js} +33681 -33108
- package/dist/chunks/{index-CGCrm-dj.js → index-XYIIY48z.js} +228 -228
- package/dist/chunks/{palette-CI2J34i6.js → palette-CIuwlEiG.js} +1 -1
- package/dist/chunks/{palette-C5o9bLo6.js → palette-CJTdBzJB.js} +1 -1
- package/dist/chunks/{resource-management-panel-CNmVHnCz.js → resource-management-panel-CAxXzMdi.js} +1 -1
- package/dist/chunks/{resource-management-panel-DTg9_DI9.js → resource-management-panel-Dk0DzgVm.js} +18 -18
- package/dist/chunks/{save-CMv91_Hz.js → save-B8x5Vi0W.js} +1 -1
- package/dist/chunks/{save-Cpz6BWx9.js → save-_ALpoMy6.js} +1 -1
- package/dist/chunks/{switch-Dhoqe3OE.js → switch-B6fh8nb-.js} +139 -138
- package/dist/chunks/{switch-otrSiyjH.js → switch-DPaKnsb8.js} +14 -14
- package/dist/chunks/{use-create-flow-overlay-state-C8WGfC8T.js → use-create-flow-overlay-state-Cqf7GaFm.js} +511 -483
- package/dist/chunks/use-create-flow-overlay-state-DMZTflFt.js +16 -0
- package/dist/chunks/{use-visual-utils-RkPa2gqQ.js → use-visual-utils-CPMQLBYR.js} +12 -12
- package/dist/chunks/{use-visual-utils-BeJ73yvV.js → use-visual-utils-CQQ3jvDn.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +118 -117
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +7 -8
- package/dist/types/dashboard.d.ts +1 -1
- package/dist/types/main.d.ts +76 -34
- package/dist/types/shared.d.ts +1 -1
- package/dist/types/surfboard.d.ts +1 -11
- package/dist/types/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-CeKjYa7s.js +0 -2274
- package/dist/chunks/dashboard-controls-Ds8Hmo3Q.js +0 -57
- package/dist/chunks/dashboard-filter-controls-button-CWL2jJcu.js +0 -11
- package/dist/chunks/dashboard-filter-controls-button-Tk5lhwVV.js +0 -1116
- package/dist/chunks/dashboard-summary-settings-dialog-CcszMc1A.js +0 -545
- package/dist/chunks/dashboard-summary-settings-dialog-DgqFlYl9.js +0 -1
- package/dist/chunks/edit-dashboard-visual-Bu2rxJjm.js +0 -183
- package/dist/chunks/use-create-flow-overlay-state-DiH6M1Cd.js +0 -16
package/dist/index.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { E as j, F as H, S as G, y as q, U as K, z as Y, A as X, B, G as J, H as Z, C as ee, h as ae, I as Q, J as te, i as se, j as re, k as ne, l as
|
|
2
|
-
import { av as Oe, ax as ze, aR as Be, aw as je, a8 as Qe, D as We, a6 as Ve, a3 as $e, aX as He, X as Ge, _ as qe, _ as Ke, $ as Ye, a7 as Xe, a as Je, aW as Ze, aC as ea, aS as aa, aE as ta, a5 as sa, a4 as ra, a_ as na, aB as
|
|
3
|
-
import { a as rt, C as nt, D as
|
|
4
|
-
import { C as gt
|
|
1
|
+
import { E as j, F as H, S as G, y as q, U as K, z as Y, A as X, B, G as J, H as Z, C as ee, h as ae, I as Q, J as te, i as se, j as re, k as ne, l as oe, K as ie, L as le, u as W, M as de, N as ce, O as ue, P as E, Q as me, T as he } from "./chunks/index-P5hPTTzm.js";
|
|
2
|
+
import { av as Oe, ax as ze, aR as Be, aw as je, a8 as Qe, D as We, a6 as Ve, a3 as $e, aX as He, X as Ge, _ as qe, _ as Ke, $ as Ye, a7 as Xe, a as Je, aW as Ze, aC as ea, aS as aa, aE as ta, a5 as sa, a4 as ra, a_ as na, aB as oa, aL as ia, aI as la, aP as da, aJ as ca, aK as ua, aH as ma, aG as ha, aV as pa, aU as fa, aT as ga, aZ as xa, aY as Na, aO as va, aA as ya, aN as Ca, aF as Aa, aD as ba, aM as Sa, aQ as Da, af as Ea, ac as Ta, ao as wa, am as Ra, au as Ia, at as _a, al as Pa, ak as Fa, aj as ka, an as Ma, ay as La, ah as Ua, ai as Oa, ap as za, ar as Ba, a2 as ja, aq as Qa, aa as Wa, a1 as Va, W as $a, a9 as Ha, ab as Ga, Y as qa, az as Ka, ae as Ya, ad as Xa, ag as Ja, V as Za, a0 as et, as as at, Z as tt } from "./chunks/index-P5hPTTzm.js";
|
|
3
|
+
import { a as rt, C as nt, D as ot, E as it, P as lt, g as dt, d as ct, h as ut, b as mt, c as ht, i as pt } from "./chunks/common-types-4bjoIgvm.js";
|
|
4
|
+
import { C as gt } from "./chunks/calendar-preferences-dialog-D70CuT-1.js";
|
|
5
5
|
import { jsx as e, jsxs as r, Fragment as pe } from "react/jsx-runtime";
|
|
6
|
-
import { u as L, P as fe, b as ge, B as T, a as _, G as xe, d as Ne, e as
|
|
7
|
-
import { a7 as
|
|
6
|
+
import { u as L, P as fe, b as ge, B as T, a as _, G as xe, d as Ne, e as ve } from "./chunks/switch-B6fh8nb-.js";
|
|
7
|
+
import { a7 as Nt, Y as vt, H as yt, J as Ct, M as At, _ as bt, Z as St, a1 as Dt, a2 as Et, W as Tt, K as wt, V as Rt, $ as It, Q as _t, O as Pt, N as Ft, a3 as kt, a0 as Mt, a4 as Lt, a6 as Ut, a5 as Ot, h as zt, g as Bt, i as jt } from "./chunks/switch-B6fh8nb-.js";
|
|
8
8
|
import * as R from "react";
|
|
9
|
-
import { useMemo as V, useEffect as
|
|
10
|
-
import { ResourceManagementPanel as
|
|
11
|
-
import { DEFAULT_CALENDAR_CONTEXT as
|
|
12
|
-
import { u as
|
|
9
|
+
import { useMemo as V, useEffect as F, useState as P, useCallback as M } from "react";
|
|
10
|
+
import { ResourceManagementPanel as Wt } from "./chunks/resource-management-panel-Dk0DzgVm.js";
|
|
11
|
+
import { DEFAULT_CALENDAR_CONTEXT as $t, DEFAULT_SEMANTIC_DOMAIN_ACCESS as Ht } from "./types/index.js";
|
|
12
|
+
import { u as qt } from "./chunks/use-debounced-dirty-check-BwAbnX_5.js";
|
|
13
13
|
import "react-dom";
|
|
14
14
|
import "./chunks/index-CJdxSyQq.js";
|
|
15
|
-
import { A as
|
|
16
|
-
import { n as
|
|
15
|
+
import { A as Yt, D as Xt, d as Jt, e as Zt, c as es, a as as, E as ts, N as ss, U as rs, V as ns, u as os, b as is } from "./chunks/dashboard-filter-controls-launcher-C8Wm2Smj.js";
|
|
16
|
+
import { n as ds, s as cs } from "./chunks/normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
17
17
|
function we(a) {
|
|
18
|
-
const { displayPreferences: t, cardId: n, ...
|
|
19
|
-
...
|
|
18
|
+
const { displayPreferences: t, cardId: n, ...o } = a, i = {
|
|
19
|
+
...o,
|
|
20
20
|
id: a.dashboardId
|
|
21
21
|
// override the id to the dashboard id so that the dashboard is not loaded
|
|
22
22
|
};
|
|
23
|
-
return /* @__PURE__ */ e(j, { FallbackComponent: H, children: /* @__PURE__ */ r(G, { dashboardProps:
|
|
23
|
+
return /* @__PURE__ */ e(j, { FallbackComponent: H, children: /* @__PURE__ */ r(G, { dashboardProps: i, children: [
|
|
24
24
|
/* @__PURE__ */ e(q, { componentType: "visual", componentId: a.cardId }),
|
|
25
|
-
/* @__PURE__ */ e(K, { appearance: a.appearance, children: /* @__PURE__ */ e(Y, { displayPreferences: t, children: /* @__PURE__ */ e(X, { type: "visual", cardId: n, ...
|
|
25
|
+
/* @__PURE__ */ e(K, { appearance: a.appearance, children: /* @__PURE__ */ e(Y, { displayPreferences: t, children: /* @__PURE__ */ e(X, { type: "visual", cardId: n, ...i, children: /* @__PURE__ */ e(ye, { cardId: n }) }) }) })
|
|
26
26
|
] }) });
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
const t = L((
|
|
28
|
+
function ye({ cardId: a }) {
|
|
29
|
+
const t = L((i) => {
|
|
30
30
|
var c;
|
|
31
|
-
return (c =
|
|
32
|
-
}), { card: n, frame:
|
|
33
|
-
const
|
|
31
|
+
return (c = i.dashboard) == null ? void 0 : c.sheets;
|
|
32
|
+
}), { card: n, frame: o } = V(() => {
|
|
33
|
+
const i = t == null ? void 0 : t.flatMap((l) => l.frames), c = i == null ? void 0 : i.flatMap((l) => l == null ? void 0 : l.cards), u = c == null ? void 0 : c.find((l) => (l == null ? void 0 : l.id) === a), s = i == null ? void 0 : i.find(
|
|
34
34
|
(l) => {
|
|
35
35
|
var m;
|
|
36
36
|
return (m = l == null ? void 0 : l.cards) == null ? void 0 : m.find((g) => (g == null ? void 0 : g.id) === a);
|
|
@@ -38,7 +38,7 @@ function ve({ cardId: a }) {
|
|
|
38
38
|
);
|
|
39
39
|
return { card: u, frame: s };
|
|
40
40
|
}, [t, a]);
|
|
41
|
-
return !n || !
|
|
41
|
+
return !n || !o ? /* @__PURE__ */ e(
|
|
42
42
|
B,
|
|
43
43
|
{
|
|
44
44
|
error: new Error("Card not found"),
|
|
@@ -50,61 +50,61 @@ function ve({ cardId: a }) {
|
|
|
50
50
|
j,
|
|
51
51
|
{
|
|
52
52
|
FallbackComponent: ({
|
|
53
|
-
error:
|
|
53
|
+
error: i,
|
|
54
54
|
resetErrorBoundary: c
|
|
55
55
|
}) => /* @__PURE__ */ e(
|
|
56
56
|
B,
|
|
57
57
|
{
|
|
58
|
-
error:
|
|
58
|
+
error: i,
|
|
59
59
|
resetErrorBoundary: c,
|
|
60
60
|
customerFacingMessage: "Error creating visual. Please try again."
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
children: /* @__PURE__ */ e(J, { card: n, frame:
|
|
63
|
+
children: /* @__PURE__ */ e(J, { card: n, frame: o })
|
|
64
64
|
}
|
|
65
65
|
) });
|
|
66
66
|
}
|
|
67
|
-
function Re(a, t, n,
|
|
68
|
-
|
|
69
|
-
a && !n && t &&
|
|
70
|
-
}, [a, n, t,
|
|
67
|
+
function Re(a, t, n, o) {
|
|
68
|
+
F(() => {
|
|
69
|
+
a && !n && t && o(Z(t));
|
|
70
|
+
}, [a, n, t, o]);
|
|
71
71
|
}
|
|
72
72
|
function Ie({
|
|
73
73
|
name: a,
|
|
74
74
|
items: t,
|
|
75
75
|
value: n,
|
|
76
|
-
onChange:
|
|
77
|
-
isLoading:
|
|
76
|
+
onChange: o,
|
|
77
|
+
isLoading: i,
|
|
78
78
|
isError: c,
|
|
79
79
|
refetch: u,
|
|
80
80
|
className: s,
|
|
81
81
|
icon: l,
|
|
82
82
|
showNone: m = !1
|
|
83
83
|
}) {
|
|
84
|
-
const g = R.useRef(null), [
|
|
84
|
+
const g = R.useRef(null), [y, x] = R.useState(!1), [C, A] = R.useState("100%"), N = m ? [...t || [], { id: "none", name: "None" }] : t;
|
|
85
85
|
R.useLayoutEffect(() => {
|
|
86
86
|
g.current && A(g.current.offsetWidth);
|
|
87
87
|
}, []);
|
|
88
|
-
function
|
|
88
|
+
function k() {
|
|
89
89
|
var h;
|
|
90
|
-
return
|
|
90
|
+
return i ? "Loading..." : c ? "Error" : n ? (h = t == null ? void 0 : t.find((v) => v.id === n)) == null ? void 0 : h.name : `Select ${a}`;
|
|
91
91
|
}
|
|
92
|
-
function w(h,
|
|
93
|
-
|
|
92
|
+
function w(h, v) {
|
|
93
|
+
o(v), x(!1);
|
|
94
94
|
}
|
|
95
|
-
return /* @__PURE__ */ r(fe, { open:
|
|
95
|
+
return /* @__PURE__ */ r(fe, { open: y, onOpenChange: x, children: [
|
|
96
96
|
/* @__PURE__ */ e(ge, { asChild: !0, children: /* @__PURE__ */ r(
|
|
97
97
|
T,
|
|
98
98
|
{
|
|
99
99
|
ref: g,
|
|
100
100
|
variant: "outline",
|
|
101
101
|
role: "combobox",
|
|
102
|
-
"aria-expanded":
|
|
102
|
+
"aria-expanded": y,
|
|
103
103
|
className: _("flex h-9 w-full justify-between", s),
|
|
104
104
|
children: [
|
|
105
105
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
|
|
106
106
|
l && /* @__PURE__ */ e("div", { className: "mr-2", children: l }),
|
|
107
|
-
/* @__PURE__ */ e("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children:
|
|
107
|
+
/* @__PURE__ */ e("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children: k() })
|
|
108
108
|
] }),
|
|
109
109
|
/* @__PURE__ */ e(xe, { className: "size-4 opacity-50" })
|
|
110
110
|
]
|
|
@@ -123,7 +123,7 @@ function Ie({
|
|
|
123
123
|
{
|
|
124
124
|
className: _(
|
|
125
125
|
"size-3.5 opacity-50",
|
|
126
|
-
|
|
126
|
+
i && "animate-spin"
|
|
127
127
|
)
|
|
128
128
|
}
|
|
129
129
|
) })
|
|
@@ -135,14 +135,14 @@ function Ie({
|
|
|
135
135
|
" found."
|
|
136
136
|
] }),
|
|
137
137
|
/* @__PURE__ */ e(ne, { children: N == null ? void 0 : N.map((h) => /* @__PURE__ */ e(
|
|
138
|
-
|
|
138
|
+
oe,
|
|
139
139
|
{
|
|
140
140
|
className: "overflow-x-auto",
|
|
141
141
|
value: h.name,
|
|
142
|
-
onSelect: (
|
|
142
|
+
onSelect: (v) => w(v, h.id),
|
|
143
143
|
children: /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
|
|
144
144
|
/* @__PURE__ */ e(
|
|
145
|
-
|
|
145
|
+
ve,
|
|
146
146
|
{
|
|
147
147
|
className: _(
|
|
148
148
|
"size-4",
|
|
@@ -165,30 +165,30 @@ function _e({
|
|
|
165
165
|
triggerButtonClassName: a,
|
|
166
166
|
variant: t = "ghost"
|
|
167
167
|
}) {
|
|
168
|
-
const [n,
|
|
168
|
+
const [n, o] = P(!1), i = L((u) => {
|
|
169
169
|
var s;
|
|
170
170
|
return (s = u.dashboard) == null ? void 0 : s.id;
|
|
171
171
|
}), c = L((u) => {
|
|
172
172
|
var s;
|
|
173
173
|
return (s = u.dashboard) == null ? void 0 : s.title;
|
|
174
174
|
});
|
|
175
|
-
return
|
|
175
|
+
return i ? /* @__PURE__ */ r(pe, { children: [
|
|
176
176
|
/* @__PURE__ */ e(
|
|
177
177
|
Q,
|
|
178
178
|
{
|
|
179
179
|
tooltip: "Schedule Dashboard",
|
|
180
180
|
className: _("h-7 p-2", a),
|
|
181
181
|
buttonProps: { variant: t },
|
|
182
|
-
onClick: () =>
|
|
183
|
-
children: /* @__PURE__ */ e(
|
|
182
|
+
onClick: () => o(!0),
|
|
183
|
+
children: /* @__PURE__ */ e(ie, { className: "size-4" })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
186
|
/* @__PURE__ */ e(
|
|
187
187
|
le,
|
|
188
188
|
{
|
|
189
189
|
open: n,
|
|
190
|
-
onOpenChange:
|
|
191
|
-
dashboardId:
|
|
190
|
+
onOpenChange: o,
|
|
191
|
+
dashboardId: i,
|
|
192
192
|
dashboardName: c
|
|
193
193
|
}
|
|
194
194
|
)
|
|
@@ -197,16 +197,16 @@ function _e({
|
|
|
197
197
|
function Pe(a) {
|
|
198
198
|
const { authToken: t, tokenProps: n } = W();
|
|
199
199
|
return de({
|
|
200
|
-
mutationFn: async (
|
|
200
|
+
mutationFn: async (o) => ce(
|
|
201
201
|
n.apiServiceUrl,
|
|
202
202
|
t.accessToken,
|
|
203
203
|
a,
|
|
204
|
-
|
|
204
|
+
o
|
|
205
205
|
)
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
|
|
208
|
+
function Fe(a, t) {
|
|
209
|
+
F(() => (a && t && (window.__SEMAPHOR_PRINT_STATE__ = {
|
|
210
210
|
...t
|
|
211
211
|
}), () => {
|
|
212
212
|
a && window.__SEMAPHOR_PRINT_STATE__ && delete window.__SEMAPHOR_PRINT_STATE__;
|
|
@@ -221,11 +221,11 @@ function Ce(a) {
|
|
|
221
221
|
var t;
|
|
222
222
|
return ((t = a.alertState) == null ? void 0 : t.currentState) === "FIRING" ? "Signal surfaced" : a.status === "ACTIVE" ? "Watching" : a.status === "PAUSED" ? "Paused" : a.status;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
var h,
|
|
226
|
-
const { authToken: n, tokenProps:
|
|
224
|
+
function ke({ alertId: a, onBack: t }) {
|
|
225
|
+
var h, v, U, O;
|
|
226
|
+
const { authToken: n, tokenProps: o } = W(), { data: i, isLoading: c, refetch: u } = ue(a), s = (i == null ? void 0 : i.alert) ?? null, [l, m] = P([]), [g, y] = P([]), [x, C] = P(null), A = M(async () => {
|
|
227
227
|
var f;
|
|
228
|
-
const d =
|
|
228
|
+
const d = o == null ? void 0 : o.apiServiceUrl, p = n == null ? void 0 : n.accessToken;
|
|
229
229
|
if (!d || !p || !a) return null;
|
|
230
230
|
try {
|
|
231
231
|
const S = await fetch(`${d}/v1/alerts/${a}/runs?limit=20`, {
|
|
@@ -233,15 +233,15 @@ function Fe({ alertId: a, onBack: t }) {
|
|
|
233
233
|
});
|
|
234
234
|
if (S.ok) {
|
|
235
235
|
const D = await S.json(), b = Array.isArray(D.runs) ? D.runs : [], z = x && b.some(($) => $.id === x) ? x : ((f = b[0]) == null ? void 0 : f.id) ?? null;
|
|
236
|
-
return
|
|
236
|
+
return y(b), C(z), z;
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
y([]), C(null);
|
|
239
239
|
} catch {
|
|
240
|
-
return
|
|
240
|
+
return y([]), C(null), null;
|
|
241
241
|
}
|
|
242
242
|
return null;
|
|
243
|
-
}, [a, n, x,
|
|
244
|
-
const p =
|
|
243
|
+
}, [a, n, x, o]), N = M(async (d) => {
|
|
244
|
+
const p = o == null ? void 0 : o.apiServiceUrl, f = n == null ? void 0 : n.accessToken, S = d ?? x;
|
|
245
245
|
if (!p || !f || !a || !S) {
|
|
246
246
|
m([]);
|
|
247
247
|
return;
|
|
@@ -261,15 +261,15 @@ function Fe({ alertId: a, onBack: t }) {
|
|
|
261
261
|
} catch {
|
|
262
262
|
m([]);
|
|
263
263
|
}
|
|
264
|
-
}, [a, n, x,
|
|
264
|
+
}, [a, n, x, o]), k = M(async () => {
|
|
265
265
|
await u();
|
|
266
266
|
const d = await A();
|
|
267
267
|
await N(d);
|
|
268
268
|
}, [N, A, u]);
|
|
269
|
-
|
|
269
|
+
F(() => {
|
|
270
270
|
A().catch(() => {
|
|
271
271
|
});
|
|
272
|
-
}, [A]),
|
|
272
|
+
}, [A]), F(() => {
|
|
273
273
|
N().catch(() => {
|
|
274
274
|
});
|
|
275
275
|
}, [N]);
|
|
@@ -287,7 +287,7 @@ function Fe({ alertId: a, onBack: t }) {
|
|
|
287
287
|
/* @__PURE__ */ e(E, { variant: s.status === "ACTIVE" ? "default" : "secondary", children: Ce(s) }),
|
|
288
288
|
((h = s.alertState) == null ? void 0 : h.currentState) && /* @__PURE__ */ e(E, { variant: s.alertState.currentState === "FIRING" ? "destructive" : "outline", children: s.alertState.currentState === "FIRING" ? "Signal surfaced" : "Stable" })
|
|
289
289
|
] }),
|
|
290
|
-
/* @__PURE__ */ e(T, { variant: "outline", size: "sm", onClick: () => void
|
|
290
|
+
/* @__PURE__ */ e(T, { variant: "outline", size: "sm", onClick: () => void k(), children: "Refresh" })
|
|
291
291
|
] }),
|
|
292
292
|
s.description && /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: s.description }),
|
|
293
293
|
/* @__PURE__ */ r("div", { className: "rounded-md border bg-muted/30 p-4 text-sm", children: [
|
|
@@ -310,7 +310,7 @@ function Fe({ alertId: a, onBack: t }) {
|
|
|
310
310
|
/* @__PURE__ */ r("div", { children: [
|
|
311
311
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Last Evaluated:" }),
|
|
312
312
|
" ",
|
|
313
|
-
I((
|
|
313
|
+
I((v = s.alertState) == null ? void 0 : v.lastEvaluatedAt)
|
|
314
314
|
] }),
|
|
315
315
|
/* @__PURE__ */ r("div", { children: [
|
|
316
316
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Last Surfaced:" }),
|
|
@@ -364,7 +364,7 @@ function Fe({ alertId: a, onBack: t }) {
|
|
|
364
364
|
}
|
|
365
365
|
function Me() {
|
|
366
366
|
var c, u;
|
|
367
|
-
const { quotasQuery: a, usageQuery: t } = he(), n = ((c = a.data) == null ? void 0 : c.quotas) || [],
|
|
367
|
+
const { quotasQuery: a, usageQuery: t } = he(), n = ((c = a.data) == null ? void 0 : c.quotas) || [], o = ((u = t.data) == null ? void 0 : u.usage) || [], i = new Map(o.map((s) => [s.tenantId || "org", s]));
|
|
368
368
|
return /* @__PURE__ */ r("div", { className: "space-y-4 p-4", children: [
|
|
369
369
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-between", children: [
|
|
370
370
|
/* @__PURE__ */ e("h2", { className: "text-xl font-semibold", children: "Alert Quotas" }),
|
|
@@ -390,7 +390,7 @@ function Me() {
|
|
|
390
390
|
/* @__PURE__ */ e("th", { className: "px-3 py-2 text-left font-medium", children: "Max Context Sources" })
|
|
391
391
|
] }) }),
|
|
392
392
|
/* @__PURE__ */ e("tbody", { children: n.map((s) => {
|
|
393
|
-
const l = s.tenantId || "org", m =
|
|
393
|
+
const l = s.tenantId || "org", m = i.get(l);
|
|
394
394
|
return /* @__PURE__ */ r("tr", { className: "border-t", children: [
|
|
395
395
|
/* @__PURE__ */ e("td", { className: "px-3 py-2", children: l }),
|
|
396
396
|
/* @__PURE__ */ e("td", { className: "px-3 py-2", children: (m == null ? void 0 : m.activeAlerts) ?? 0 }),
|
|
@@ -406,8 +406,8 @@ function Me() {
|
|
|
406
406
|
] });
|
|
407
407
|
}
|
|
408
408
|
export {
|
|
409
|
-
|
|
410
|
-
|
|
409
|
+
Yt as AdvancedModeToggle,
|
|
410
|
+
ke as AlertDetailPageEmbedded,
|
|
411
411
|
Oe as AlertManagementPage,
|
|
412
412
|
ze as AlertWizardDialog,
|
|
413
413
|
Be as AlertsApiError,
|
|
@@ -417,23 +417,24 @@ export {
|
|
|
417
417
|
je as CardAlertIndicator,
|
|
418
418
|
Qe as CardSummary,
|
|
419
419
|
Ie as Combobox,
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
420
|
+
ot as DATE_FORMAT_VALUES,
|
|
421
|
+
$t as DEFAULT_CALENDAR_CONTEXT,
|
|
422
|
+
Ht as DEFAULT_SEMANTIC_DOMAIN_ACCESS,
|
|
423
423
|
We as Dashboard,
|
|
424
|
-
|
|
424
|
+
Xt as DashboardControlsSettings,
|
|
425
425
|
Ve as DashboardExportDialog,
|
|
426
|
-
|
|
427
|
-
|
|
426
|
+
Jt as DashboardFilterControlsButton,
|
|
427
|
+
Zt as DashboardFilterControlsLauncher,
|
|
428
428
|
$e as DashboardWC,
|
|
429
|
-
|
|
429
|
+
es as DocumentControlsSettings,
|
|
430
|
+
it as EMPTY_SELECTION,
|
|
430
431
|
le as EmailScheduleDialog,
|
|
431
432
|
He as ExportError,
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
433
|
+
as as ExportNotificationItem,
|
|
434
|
+
ts as ExportNotificationList,
|
|
435
|
+
ss as NotificationBell,
|
|
435
436
|
lt as PivotMarkerEnum,
|
|
436
|
-
|
|
437
|
+
Wt as ResourceManagementPanel,
|
|
437
438
|
Ge as ResourceType,
|
|
438
439
|
_e as ScheduleDashboard,
|
|
439
440
|
G as SemaphorContextProvider,
|
|
@@ -443,60 +444,60 @@ export {
|
|
|
443
444
|
Xe as SummaryCard,
|
|
444
445
|
Je as Surfboard,
|
|
445
446
|
Me as TenantQuotaPage,
|
|
446
|
-
|
|
447
|
+
rs as UnsavedChangesAlert,
|
|
447
448
|
we as Visual,
|
|
448
|
-
|
|
449
|
+
ns as VisualEditingControls,
|
|
449
450
|
ce as backtestAlert,
|
|
450
451
|
Ze as cancelExport,
|
|
451
452
|
Z as cloneDeep,
|
|
452
453
|
ea as createAlert,
|
|
453
|
-
|
|
454
|
+
Nt as createEmptyKpiConfig,
|
|
454
455
|
aa as createExport,
|
|
455
456
|
vt as createSqlGenConfig,
|
|
456
457
|
ta as deleteAlert,
|
|
457
458
|
sa as downloadDocumentPdf,
|
|
458
459
|
ra as downloadPdf,
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
460
|
+
yt as emitDashboardLoad,
|
|
461
|
+
Ct as emitDashboardUnload,
|
|
462
|
+
At as fmt,
|
|
462
463
|
na as formatFileSize,
|
|
463
|
-
|
|
464
|
-
|
|
464
|
+
oa as getAlert,
|
|
465
|
+
ia as getAlertContextSources,
|
|
465
466
|
la as getAlertHistory,
|
|
466
467
|
da as getAlertQuotaUsage,
|
|
467
468
|
ca as getAlertRunDeliveries,
|
|
468
469
|
ua as getAlertRunSteps,
|
|
469
470
|
ma as getAlertRuns,
|
|
470
471
|
ha as getAlertState,
|
|
471
|
-
|
|
472
|
+
bt as getColumnDataType,
|
|
472
473
|
pa as getDownloadUrl,
|
|
473
474
|
fa as getExportStatus,
|
|
474
475
|
ga as getExports,
|
|
475
476
|
dt as getFieldRuntimeColumnName,
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
477
|
+
St as getFilterValueType,
|
|
478
|
+
Dt as getFormattedTableNameForQuery,
|
|
479
|
+
Et as getQualifiedTableName,
|
|
480
|
+
Tt as getSql,
|
|
480
481
|
ct as hasCalculatedFieldMarker,
|
|
481
482
|
ut as hasCalculatedFormulaInputs,
|
|
482
|
-
|
|
483
|
-
|
|
483
|
+
wt as invalidateToken,
|
|
484
|
+
Rt as isBooleanDataType,
|
|
484
485
|
mt as isCalculatedDimension,
|
|
485
486
|
ht as isCalculatedField,
|
|
486
487
|
pt as isCalculatedMetric,
|
|
487
|
-
|
|
488
|
-
|
|
488
|
+
It as isColumnInSqlGen,
|
|
489
|
+
_t as isDateDataType,
|
|
489
490
|
xa as isExportComplete,
|
|
490
491
|
Na as isExportInProgress,
|
|
491
|
-
|
|
492
|
+
Pt as isNumberDataType,
|
|
492
493
|
Ft as isTextDataType,
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
494
|
+
va as listAlertQuotas,
|
|
495
|
+
ya as listAlerts,
|
|
496
|
+
ds as normalizeDashboardForDirtyCheck,
|
|
496
497
|
Ca as previewAlertDeliverable,
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
498
|
+
kt as resolveDataType,
|
|
499
|
+
Mt as resolveDatamodelName,
|
|
500
|
+
cs as serializeDashboardForDirtyCheck,
|
|
500
501
|
Aa as triggerAlertNow,
|
|
501
502
|
ba as updateAlert,
|
|
502
503
|
Sa as updateAlertContextSources,
|
|
@@ -511,8 +512,8 @@ export {
|
|
|
511
512
|
_a as useAlertFilters,
|
|
512
513
|
Pa as useAlertHistory,
|
|
513
514
|
he as useAlertQuotas,
|
|
514
|
-
|
|
515
|
-
|
|
515
|
+
Fa as useAlertRuns,
|
|
516
|
+
ka as useAlertState,
|
|
516
517
|
Ma as useAlertStore,
|
|
517
518
|
La as useAlertWizard,
|
|
518
519
|
Ua as useAlerts,
|
|
@@ -522,25 +523,25 @@ export {
|
|
|
522
523
|
ja as useCard,
|
|
523
524
|
Qa as useCardAlertMap,
|
|
524
525
|
Wa as useCardSummary,
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
526
|
+
Lt as useCurrentActiveCard,
|
|
527
|
+
Ut as useCurrentCardConfig,
|
|
528
|
+
Ot as useCurrentSheetActiveCards,
|
|
529
|
+
zt as useDashboardActions,
|
|
529
530
|
Va as useDashboardById,
|
|
530
531
|
$a as useDashboardQuery,
|
|
531
532
|
L as useDashboardStore,
|
|
532
533
|
Ha as useDashboardSummary,
|
|
533
534
|
Ga as useDataColumns,
|
|
534
535
|
qa as useDateFilterHook,
|
|
535
|
-
|
|
536
|
-
|
|
536
|
+
qt as useDebouncedDirtyCheck,
|
|
537
|
+
Bt as useEditorActions,
|
|
537
538
|
Ka as useEditorAside,
|
|
538
|
-
|
|
539
|
+
jt as useEditorStore,
|
|
539
540
|
Ya as useExportActions,
|
|
540
|
-
|
|
541
|
+
os as useExportPolling,
|
|
541
542
|
is as useExportRecovery,
|
|
542
543
|
Xa as useExportStore,
|
|
543
|
-
|
|
544
|
+
Fe as useExposePrintState,
|
|
544
545
|
Ja as useInProgressExportsCount,
|
|
545
546
|
Za as useManagementStore,
|
|
546
547
|
Re as usePristineSnapshotInitializer,
|