react-semaphor 0.1.578 → 0.1.580
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/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +75 -70
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/add-to-dashboard-DhP8wVtM.js +291 -0
- package/dist/chunks/{assistant-chat-B_tmsxEK.js → assistant-chat-CUwGURJj.js} +2261 -2184
- package/dist/chunks/{bookmark-impact-DUWw3wlA.js → bookmark-impact-BNyR-yDX.js} +1 -1
- package/dist/chunks/{card-filter-builder-CwnMUZU2.js → card-filter-builder-k9yqDSw8.js} +168 -180
- package/dist/chunks/{comparison-window-caption-PtcDWvkN.js → comparison-window-caption-DdLqMgiG.js} +180 -183
- package/dist/chunks/{context-R31TSL5V.js → context-BTLBjQNh.js} +99 -83
- package/dist/chunks/{dashboard-BcIIBCTP.js → dashboard-DvcAk8uJ.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BBpECqg2.js → dashboard-briefing-launcher-DBgS97ZH.js} +155 -155
- package/dist/chunks/{dashboard-controls-CONzvjmO.js → dashboard-controls-BiZ1rlNC.js} +7 -7
- package/dist/chunks/{dashboard-json-BF2chEVd.js → dashboard-json-B25xzYcJ.js} +1 -1
- package/dist/chunks/{dates-DlYMDaF2.js → dates-3Pah03_l.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-Bf-RcbuD.js → edit-dashboard-visual-DYuO3mEU.js} +9 -10
- package/dist/chunks/{filter-reach-copy-BTAXnbwQ.js → filter-reach-copy-CzLt96tq.js} +125 -125
- package/dist/chunks/{index-8BxDk8EP.js → index-BMZq6JT6.js} +2 -2
- package/dist/chunks/{report-preferences-dialog-RN4g9PEN.js → report-preferences-dialog-DpAetrdY.js} +7 -7
- package/dist/chunks/{resolve-dashboard-input-context-DBFuNhZo.js → resolve-dashboard-input-context-CNxtkCzj.js} +6266 -6191
- package/dist/chunks/{saved-dashboard-context-AChHk4tw.js → saved-dashboard-context-Bnt0H7mi.js} +3 -3
- package/dist/chunks/{semaphor-ready-indicator-DtivanBy.js → semaphor-ready-indicator-Dwmvmf0S.js} +15010 -14990
- package/dist/chunks/{shelf-drop-preview-context-BTjYxbHC.js → shelf-drop-preview-context-CiveteBS.js} +2 -2
- package/dist/chunks/{stored-dashboard-rpLzf4mk.js → stored-dashboard-D3gu-D7A.js} +67 -67
- package/dist/chunks/{table-export-sheet-CP8zSOhj.js → table-export-sheet-BNGSJA2N.js} +1 -1
- package/dist/chunks/{variable-draft-DPSMDwqt.js → variable-draft-C3_RL2gI.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +357 -350
- package/dist/format-utils/index.js +4 -4
- package/dist/index.js +12 -12
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/shared/assistant-protocol/answer-text.d.ts +5 -1
- package/dist/types/shared/assistant-protocol/context.d.ts +2 -1
- package/dist/types/shared/assistant-protocol/model-change.d.ts +23 -3
- package/dist/types/shared/assistant-protocol/parts.d.ts +12 -2
- package/dist/types/shared/dashboard-authoring/changes/aggregates.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +9 -58
- package/dist/types/shared/dashboard-authoring/changes/domain-change.d.ts +1738 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/usage-events/catalog.d.ts +5 -3
- package/dist/types/shared/usage-events/details.d.ts +66 -0
- package/dist/types/shared/usage-events/envelope.d.ts +5 -5
- package/dist/usage-events/index.js +154 -115
- package/package.json +1 -1
- package/dist/chunks/add-to-dashboard-B6Ah8Lub.js +0 -267
|
@@ -3,26 +3,40 @@ var q = (e, a, i) => a in e ? T(e, a, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var b = (e, a, i) => q(e, typeof a != "symbol" ? a + "" : a, i);
|
|
4
4
|
import { z as t } from "zod";
|
|
5
5
|
import { s as k } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
6
|
-
const J = 1
|
|
7
|
-
|
|
6
|
+
const J = 1, Y = [
|
|
7
|
+
// before streaming (HTTP status in spec section 10)
|
|
8
|
+
"assistant_unavailable",
|
|
9
|
+
"context_invalid",
|
|
10
|
+
"context_too_large",
|
|
11
|
+
"conversation_not_found",
|
|
12
|
+
"conversation_full",
|
|
13
|
+
"turn_in_progress",
|
|
14
|
+
"daily_limit_reached",
|
|
15
|
+
// inside the stream
|
|
16
|
+
"budget_exhausted",
|
|
17
|
+
"not_permitted",
|
|
18
|
+
"no_data_found",
|
|
19
|
+
"model_unavailable"
|
|
20
|
+
];
|
|
21
|
+
function _(e) {
|
|
8
22
|
return `You've used ${e === void 0 ? "today's questions" : `today's ${e} questions`}. They reset tomorrow. To keep going, contact your administrator.`;
|
|
9
23
|
}
|
|
10
|
-
function
|
|
11
|
-
return e === "daily_limit_reached" ?
|
|
24
|
+
function z(e, a = {}) {
|
|
25
|
+
return e === "daily_limit_reached" ? _(a.dailyLimit) : $[e];
|
|
12
26
|
}
|
|
13
|
-
const
|
|
27
|
+
const $ = {
|
|
14
28
|
assistant_unavailable: "The assistant is not available here.",
|
|
15
29
|
context_invalid: "Something on this page changed. Try again.",
|
|
16
30
|
context_too_large: "There is too much on this page to send with your question. Ask about one card, or clear some filters.",
|
|
17
31
|
conversation_not_found: "This conversation has ended. Start a new one.",
|
|
18
32
|
conversation_full: "This conversation is full. Start a new one.",
|
|
19
33
|
turn_in_progress: "Still answering your last question.",
|
|
20
|
-
daily_limit_reached:
|
|
34
|
+
daily_limit_reached: _(),
|
|
21
35
|
budget_exhausted: "This question needed more steps than one answer allows. Try asking for less at once.",
|
|
22
36
|
not_permitted: "You do not have access to the data this needs.",
|
|
23
37
|
no_data_found: "No data matched this question.",
|
|
24
38
|
model_unavailable: "The assistant could not answer right now. Try again."
|
|
25
|
-
},
|
|
39
|
+
}, A = {
|
|
26
40
|
messageChars: 4e3,
|
|
27
41
|
/** The whole serialized AssistantContext, in UTF-8 bytes. */
|
|
28
42
|
contextBytes: 48 * 1024,
|
|
@@ -60,22 +74,22 @@ const y = {
|
|
|
60
74
|
// rows kept on an artifact (D4-6: several fit in a conversation's 1 MB)
|
|
61
75
|
conversationTtlSeconds: 24 * 60 * 60
|
|
62
76
|
};
|
|
63
|
-
function
|
|
77
|
+
function G(e) {
|
|
64
78
|
return new TextEncoder().encode(JSON.stringify(e)).length;
|
|
65
79
|
}
|
|
66
|
-
function
|
|
80
|
+
function H(e, a) {
|
|
67
81
|
if (e.length <= a) return e;
|
|
68
|
-
const i = (
|
|
82
|
+
const i = (n) => ` [${n} more characters not shown]`, s = a - i(e.length).length;
|
|
69
83
|
return `${e.slice(0, s)}${i(e.length - s)}`;
|
|
70
84
|
}
|
|
71
|
-
class
|
|
85
|
+
class X extends Error {
|
|
72
86
|
constructor(i) {
|
|
73
|
-
super(
|
|
87
|
+
super($.context_too_large);
|
|
74
88
|
b(this, "code", "context_too_large");
|
|
75
89
|
this.bytes = i, this.name = "AssistantContextTooLargeError";
|
|
76
90
|
}
|
|
77
91
|
}
|
|
78
|
-
const
|
|
92
|
+
const j = 1, N = ["dashboard", "editor", "none"], r = A, p = t.string().min(1).max(r.idChars), h = t.string().max(r.labelChars), u = t.string().max(r.textChars), g = t.number().int().positive(), v = t.string().min(1).max(100), S = t.object({ id: p, title: h }).strict(), E = t.object({
|
|
79
93
|
inputId: p,
|
|
80
94
|
label: h,
|
|
81
95
|
value: t.discriminatedUnion("kind", [
|
|
@@ -89,61 +103,61 @@ const A = 1, n = j, p = t.string().min(1).max(n.idChars), h = t.string().max(n.l
|
|
|
89
103
|
t.object({ kind: t.literal("varies") }).strict()
|
|
90
104
|
]),
|
|
91
105
|
globalDate: t.literal(!0).optional()
|
|
92
|
-
}).strict(),
|
|
106
|
+
}).strict(), y = {
|
|
93
107
|
id: p,
|
|
94
108
|
title: h,
|
|
95
109
|
visualType: t.string().max(100),
|
|
96
110
|
source: k.optional()
|
|
97
|
-
},
|
|
111
|
+
}, F = t.object(y).strict(), I = (e) => t.object(Object.fromEntries(e.map((a) => [a, g.optional()]))).strict().optional(), L = t.object({
|
|
98
112
|
role: t.enum(["row", "column", "measure", "detail"]),
|
|
99
113
|
label: h,
|
|
100
114
|
name: h,
|
|
101
115
|
aggregate: t.string().max(40).optional(),
|
|
102
116
|
granularity: t.string().max(40).optional()
|
|
103
|
-
}).strict(),
|
|
117
|
+
}).strict(), x = t.discriminatedUnion("status", [
|
|
104
118
|
t.object({
|
|
105
119
|
status: t.literal("described"),
|
|
106
|
-
fields: t.array(
|
|
120
|
+
fields: t.array(L).max(r.cardFields),
|
|
107
121
|
filters: t.array(
|
|
108
122
|
t.object({
|
|
109
123
|
origin: t.enum(["dashboard_input", "card_input", "card", "drill", "selection"]),
|
|
110
124
|
text: u,
|
|
111
125
|
omittedValues: g.optional()
|
|
112
126
|
}).strict()
|
|
113
|
-
).max(
|
|
114
|
-
controls: t.array(t.object({ label: h, valueText: u }).strict()).max(
|
|
115
|
-
drillPath: t.array(u).max(
|
|
127
|
+
).max(r.cardFilters),
|
|
128
|
+
controls: t.array(t.object({ label: h, valueText: u }).strict()).max(r.cardControls),
|
|
129
|
+
drillPath: t.array(u).max(r.drillSteps),
|
|
116
130
|
sql: t.object({
|
|
117
|
-
text: t.string().max(
|
|
118
|
-
parameters: t.array(t.object({ name: h, valueText: u }).strict()).max(
|
|
131
|
+
text: t.string().max(r.sqlChars),
|
|
132
|
+
parameters: t.array(t.object({ name: h, valueText: u }).strict()).max(r.sqlParameters)
|
|
119
133
|
}).strict().optional(),
|
|
120
|
-
comparisons: t.array(u).max(
|
|
121
|
-
omitted:
|
|
134
|
+
comparisons: t.array(u).max(r.cardFields).optional(),
|
|
135
|
+
omitted: I(["fields", "filters", "controls", "drillSteps", "sqlParameters", "comparisons"])
|
|
122
136
|
}).strict(),
|
|
123
137
|
t.object({
|
|
124
138
|
status: t.literal("not_described"),
|
|
125
139
|
reason: t.enum(["matrix", "custom_visual", "python", "snapshot_blocked", "snapshot_pending"]),
|
|
126
140
|
message: u.optional()
|
|
127
141
|
}).strict()
|
|
128
|
-
]),
|
|
129
|
-
...
|
|
142
|
+
]), R = t.object({
|
|
143
|
+
...y,
|
|
130
144
|
fingerprint: v,
|
|
131
|
-
description:
|
|
132
|
-
}).strict(),
|
|
133
|
-
version: t.literal(
|
|
134
|
-
surface: t.enum(
|
|
145
|
+
description: x
|
|
146
|
+
}).strict(), K = t.object({
|
|
147
|
+
version: t.literal(j),
|
|
148
|
+
surface: t.enum(N),
|
|
135
149
|
dashboard: t.object({
|
|
136
150
|
id: p,
|
|
137
151
|
title: h,
|
|
138
152
|
unsavedEdits: t.boolean()
|
|
139
153
|
}).strict().optional(),
|
|
140
154
|
sheet: S.optional(),
|
|
141
|
-
otherSheets: t.array(S).max(
|
|
142
|
-
activeInputs: t.array(
|
|
143
|
-
cards: t.array(
|
|
144
|
-
selectedCard:
|
|
155
|
+
otherSheets: t.array(S).max(r.otherSheets),
|
|
156
|
+
activeInputs: t.array(E).max(r.activeInputs),
|
|
157
|
+
cards: t.array(F).max(r.summaryCards),
|
|
158
|
+
selectedCard: R.optional(),
|
|
145
159
|
editing: t.object({ mode: t.enum(["visual", "sql"]) }).strict().optional(),
|
|
146
|
-
omitted:
|
|
160
|
+
omitted: I(["otherSheets", "activeInputs", "cards"]),
|
|
147
161
|
timeZone: t.string().min(1).max(100)
|
|
148
162
|
}).strict().superRefine((e, a) => {
|
|
149
163
|
e.surface !== "none" && !e.dashboard && a.addIssue({
|
|
@@ -160,7 +174,7 @@ const A = 1, n = j, p = t.string().min(1).max(n.idChars), h = t.string().max(n.l
|
|
|
160
174
|
message: "required on the editor surface, and only there"
|
|
161
175
|
});
|
|
162
176
|
});
|
|
163
|
-
function
|
|
177
|
+
function ee(e, a) {
|
|
164
178
|
if (!e) return [];
|
|
165
179
|
const i = [];
|
|
166
180
|
e.surface !== a.surface && i.push({
|
|
@@ -172,26 +186,26 @@ function X(e, a) {
|
|
|
172
186
|
fromSheetId: e.sheet.id,
|
|
173
187
|
toSheetId: a.sheet.id
|
|
174
188
|
});
|
|
175
|
-
const s = e.selectedCard,
|
|
176
|
-
(s == null ? void 0 : s.id) !== (
|
|
189
|
+
const s = e.selectedCard, n = a.selectedCard;
|
|
190
|
+
(s == null ? void 0 : s.id) !== (n == null ? void 0 : n.id) ? i.push({
|
|
177
191
|
kind: "selection_changed",
|
|
178
192
|
...s ? { fromCardId: s.id } : {},
|
|
179
|
-
...
|
|
180
|
-
}) : s &&
|
|
181
|
-
const d =
|
|
193
|
+
...n ? { toCardId: n.id } : {}
|
|
194
|
+
}) : s && n && s.fingerprint !== n.fingerprint && i.push({ kind: "card_changed", cardId: n.id });
|
|
195
|
+
const d = O(
|
|
182
196
|
e.activeInputs ?? [],
|
|
183
197
|
a.activeInputs
|
|
184
198
|
);
|
|
185
199
|
return d.length > 0 && i.push({ kind: "inputs_changed", inputIds: d }), i;
|
|
186
200
|
}
|
|
187
|
-
function
|
|
188
|
-
const i = (o) => o ? o.value.kind === "set" ? o.value.fingerprint : "varies" : void 0, s = new Map(e.map((o) => [o.inputId, o])),
|
|
189
|
-
return [.../* @__PURE__ */ new Set([...s.keys(), ...
|
|
190
|
-
(o) => i(s.get(o)) !== i(
|
|
201
|
+
function O(e, a) {
|
|
202
|
+
const i = (o) => o ? o.value.kind === "set" ? o.value.fingerprint : "varies" : void 0, s = new Map(e.map((o) => [o.inputId, o])), n = new Map(a.map((o) => [o.inputId, o]));
|
|
203
|
+
return [.../* @__PURE__ */ new Set([...s.keys(), ...n.keys()])].filter(
|
|
204
|
+
(o) => i(s.get(o)) !== i(n.get(o))
|
|
191
205
|
);
|
|
192
206
|
}
|
|
193
|
-
function
|
|
194
|
-
var
|
|
207
|
+
function te(e, a, i) {
|
|
208
|
+
var n, d, o;
|
|
195
209
|
const s = [];
|
|
196
210
|
if (e.surface === "none" || !e.dashboard)
|
|
197
211
|
s.push(
|
|
@@ -204,7 +218,7 @@ function K(e, a, i) {
|
|
|
204
218
|
), e.sheet && s.push(
|
|
205
219
|
`Current sheet: ${l(e.sheet.title)} (id ${e.sheet.id}).`
|
|
206
220
|
), e.otherSheets.length > 0 && s.push(
|
|
207
|
-
`Other sheets: ${e.otherSheets.map((C) => l(C.title)).join(", ")}${m((
|
|
221
|
+
`Other sheets: ${e.otherSheets.map((C) => l(C.title)).join(", ")}${m((n = e.omitted) == null ? void 0 : n.otherSheets, "sheets")}.`
|
|
208
222
|
);
|
|
209
223
|
}
|
|
210
224
|
if (e.activeInputs.length > 0) {
|
|
@@ -222,7 +236,7 @@ function K(e, a, i) {
|
|
|
222
236
|
s.push(`- ${f(c)}`);
|
|
223
237
|
(o = e.omitted) != null && o.cards && s.push(`- ${e.omitted.cards} more cards are not listed.`);
|
|
224
238
|
}
|
|
225
|
-
if (e.selectedCard && s.push("", ...
|
|
239
|
+
if (e.selectedCard && s.push("", ...Q(e.selectedCard, e.editing)), i.length > 0) {
|
|
226
240
|
s.push("", "Sources the user added:");
|
|
227
241
|
for (const c of i)
|
|
228
242
|
s.push(`- ${w(c)}`);
|
|
@@ -230,12 +244,12 @@ function K(e, a, i) {
|
|
|
230
244
|
if (a.length > 0) {
|
|
231
245
|
s.push("", "Since the last question:");
|
|
232
246
|
for (const c of a)
|
|
233
|
-
s.push(`- ${
|
|
247
|
+
s.push(`- ${V(c, e)}`);
|
|
234
248
|
}
|
|
235
249
|
return s.push("", `The user's time zone is ${e.timeZone}.`), s.join(`
|
|
236
250
|
`);
|
|
237
251
|
}
|
|
238
|
-
function
|
|
252
|
+
function P(e) {
|
|
239
253
|
const a = [e.name, e.aggregate, e.granularity ? `by ${e.granularity}` : void 0].filter(Boolean);
|
|
240
254
|
return `${e.role} ${l(e.label)} (${a.join(", ")})`;
|
|
241
255
|
}
|
|
@@ -252,55 +266,55 @@ function B(e) {
|
|
|
252
266
|
const { value: a } = e;
|
|
253
267
|
return a.kind === "varies" ? `${l(e.label)}: differs by card; ask about a card to see its value` : a.notApplied ? `${a.text} (not applied in this view: it was opened from another dashboard without this dashboard's own filters)` : `${a.text}${e.globalDate ? ", applied to each card's own date field, on cards that have one" : ""}`;
|
|
254
268
|
}
|
|
255
|
-
const
|
|
269
|
+
const D = {
|
|
256
270
|
matrix: "it is a Matrix card",
|
|
257
271
|
custom_visual: "it is a custom visual",
|
|
258
272
|
python: "it is computed with Python",
|
|
259
273
|
snapshot_blocked: "the dashboard could not compile it",
|
|
260
274
|
snapshot_pending: "it was still loading when the question was sent"
|
|
261
|
-
},
|
|
275
|
+
}, M = {
|
|
262
276
|
dashboard_input: "dashboard input",
|
|
263
277
|
card_input: "the card's own input",
|
|
264
278
|
card: "the card's own filter",
|
|
265
279
|
drill: "drill",
|
|
266
280
|
selection: "selection on another card"
|
|
267
281
|
};
|
|
268
|
-
function
|
|
282
|
+
function Q(e, a) {
|
|
269
283
|
var d;
|
|
270
284
|
const i = a ? [
|
|
271
285
|
`The user is editing the visual ${f(e)} in ${a.mode === "sql" ? "SQL" : "visual"} mode. What follows is their draft as it is on screen, which may not be saved: fromCard on this card runs the draft, and its rows are the draft's, not the saved card's. You cannot change the visual; to help change it, explain the steps in the editor or write SQL for them to paste.`
|
|
272
286
|
] : [`The user is asking about the card ${f(e)}.`], s = e.description;
|
|
273
287
|
if (s.status === "not_described")
|
|
274
288
|
return i.push(
|
|
275
|
-
`How this card is built is not available to you: ${
|
|
289
|
+
`How this card is built is not available to you: ${D[s.reason]}${s.message ? ` (${s.message})` : ""}. Answer with the tools, and say that you could not read the card's definition.`
|
|
276
290
|
), i;
|
|
277
|
-
const
|
|
291
|
+
const n = s.omitted ?? {};
|
|
278
292
|
if (i.push(a ? "What the draft runs, as the editor compiled it:" : "What the card runs, as the dashboard compiled it:"), s.fields.length > 0) {
|
|
279
|
-
const o = s.fields.map(
|
|
280
|
-
i.push(`- Fields: ${o.join("; ")}${m(
|
|
293
|
+
const o = s.fields.map(P);
|
|
294
|
+
i.push(`- Fields: ${o.join("; ")}${m(n.fields, "fields not listed")}.`);
|
|
281
295
|
} else
|
|
282
296
|
i.push("- Fields: none.");
|
|
283
297
|
if (s.filters.length > 0) {
|
|
284
298
|
i.push("- Filters, all applied together:");
|
|
285
299
|
for (const o of s.filters)
|
|
286
|
-
i.push(` - ${
|
|
287
|
-
|
|
300
|
+
i.push(` - ${M[o.origin]}: ${o.text}`);
|
|
301
|
+
n.filters && i.push(` - ${n.filters} more filters are not listed.`);
|
|
288
302
|
} else
|
|
289
303
|
i.push("- Filters: none.");
|
|
290
304
|
if (s.drillPath.length > 0 && i.push(
|
|
291
|
-
`- Drilled into: ${s.drillPath.join(", then ")}${m(
|
|
305
|
+
`- Drilled into: ${s.drillPath.join(", then ")}${m(n.drillSteps, "steps")}.`
|
|
292
306
|
), s.controls.length > 0) {
|
|
293
307
|
i.push("- Controls:");
|
|
294
308
|
for (const o of s.controls)
|
|
295
309
|
i.push(` - ${l(o.label)}: ${o.valueText}`);
|
|
296
|
-
|
|
310
|
+
n.controls && i.push(` - ${n.controls} more controls are not listed.`);
|
|
297
311
|
}
|
|
298
312
|
if (s.sql && (i.push("- SQL:", "```sql", s.sql.text, "```"), s.sql.parameters.length > 0 && i.push(
|
|
299
|
-
`- SQL parameters: ${s.sql.parameters.map((o) => `${o.name} = ${o.valueText}`).join("; ")}${m(
|
|
313
|
+
`- SQL parameters: ${s.sql.parameters.map((o) => `${o.name} = ${o.valueText}`).join("; ")}${m(n.sqlParameters, "parameters")}.`
|
|
300
314
|
)), (d = s.comparisons) != null && d.length) {
|
|
301
315
|
i.push("- Comparisons (the windows are known only once a query runs):");
|
|
302
316
|
for (const o of s.comparisons) i.push(` - ${o}`);
|
|
303
|
-
|
|
317
|
+
n.comparisons && i.push(` - ${n.comparisons} more comparisons are not listed.`);
|
|
304
318
|
}
|
|
305
319
|
return i.push(
|
|
306
320
|
"This lists the card's fields, filters, drill path, controls, SQL and comparisons; it does not include the card's sorting, row limit or calculated-field formulas. A query you build yourself can differ from the card."
|
|
@@ -316,7 +330,7 @@ function w(e) {
|
|
|
316
330
|
return `SQL on ${e.label ? l(e.label) : "a connection"} (connectionId ${e.connectionId})`;
|
|
317
331
|
}
|
|
318
332
|
}
|
|
319
|
-
function
|
|
333
|
+
function V(e, a) {
|
|
320
334
|
var i;
|
|
321
335
|
switch (e.kind) {
|
|
322
336
|
case "surface_changed":
|
|
@@ -328,26 +342,28 @@ function Q(e, a) {
|
|
|
328
342
|
case "card_changed":
|
|
329
343
|
return `card ${e.cardId} now runs differently (its fields, filters, controls or SQL changed).`;
|
|
330
344
|
case "inputs_changed":
|
|
331
|
-
return `these dashboard inputs changed: ${e.inputIds.map((
|
|
332
|
-
const d = a.activeInputs.find((o) => o.inputId ===
|
|
333
|
-
return d ? l(d.label) : `input ${
|
|
345
|
+
return `these dashboard inputs changed: ${e.inputIds.map((n) => {
|
|
346
|
+
const d = a.activeInputs.find((o) => o.inputId === n);
|
|
347
|
+
return d ? l(d.label) : `input ${n} (now cleared)`;
|
|
334
348
|
}).join(", ")}.`;
|
|
335
349
|
}
|
|
336
350
|
}
|
|
337
351
|
export {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
352
|
+
A,
|
|
353
|
+
K as a,
|
|
354
|
+
L as b,
|
|
355
|
+
G as c,
|
|
356
|
+
X as d,
|
|
357
|
+
j as e,
|
|
358
|
+
H as f,
|
|
359
|
+
N as g,
|
|
360
|
+
ee as h,
|
|
361
|
+
P as i,
|
|
362
|
+
w as j,
|
|
363
|
+
J as k,
|
|
364
|
+
Y as l,
|
|
365
|
+
_ as m,
|
|
366
|
+
z as n,
|
|
367
|
+
$ as o,
|
|
368
|
+
te as r
|
|
353
369
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-
|
|
2
|
+
import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-Dwmvmf0S.js";
|
|
3
3
|
function u(e) {
|
|
4
4
|
if (typeof window > "u")
|
|
5
5
|
return null;
|