@gravitee/gamma-lib-observability 6.3.0 → 6.4.0
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/INTEGRATION.md +43 -25
- package/dist/components/FailureDetailsSheet.d.ts +13 -0
- package/dist/components/FailureDetailsSheet.d.ts.map +1 -0
- package/dist/components/LoadFailedState.d.ts +40 -0
- package/dist/components/LoadFailedState.d.ts.map +1 -0
- package/dist/components/QueryErrorBanner.d.ts +5 -3
- package/dist/components/QueryErrorBanner.d.ts.map +1 -1
- package/dist/components/failure-wording.d.ts +61 -0
- package/dist/components/failure-wording.d.ts.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/refusal-wording.d.ts +9 -4
- package/dist/components/refusal-wording.d.ts.map +1 -1
- package/dist/dashboard-access-provider.js +151 -104
- package/dist/dashboards/DashboardView.d.ts.map +1 -1
- package/dist/dashboards/analytics-table/use-analytics-table-query.d.ts +3 -0
- package/dist/dashboards/analytics-table/use-analytics-table-query.d.ts.map +1 -1
- package/dist/dashboards/editor/DashboardEditorPage.d.ts.map +1 -1
- package/dist/dashboards/index.d.ts +2 -1
- package/dist/dashboards/index.d.ts.map +1 -1
- package/dist/dashboards/renderers/BarWidgetRenderer.d.ts.map +1 -1
- package/dist/dashboards/renderers/BreakdownWidgetRenderer.d.ts.map +1 -1
- package/dist/dashboards/renderers/CartesianWidgetRenderer.d.ts.map +1 -1
- package/dist/dashboards/renderers/DoughnutWidgetRenderer.d.ts.map +1 -1
- package/dist/dashboards/renderers/MetricGroupWidgetRenderer.d.ts.map +1 -1
- package/dist/dashboards/renderers/MetricWidgetRenderer.d.ts.map +1 -1
- package/dist/dashboards/renderers/TableWidgetRenderer.d.ts.map +1 -1
- package/dist/dashboards/renderers/WidgetAccessDenied.d.ts +0 -12
- package/dist/dashboards/renderers/WidgetAccessDenied.d.ts.map +1 -1
- package/dist/dashboards/renderers/WidgetLoadFailed.d.ts +23 -0
- package/dist/dashboards/renderers/WidgetLoadFailed.d.ts.map +1 -0
- package/dist/dashboards/renderers/widget-question.d.ts +9 -0
- package/dist/dashboards/renderers/widget-question.d.ts.map +1 -0
- package/dist/dashboards/renderers/widget-trouble.d.ts +33 -0
- package/dist/dashboards/renderers/widget-trouble.d.ts.map +1 -0
- package/dist/data-sources/http-errors.d.ts +16 -3
- package/dist/data-sources/http-errors.d.ts.map +1 -1
- package/dist/filters/FilterAsyncValueField.d.ts +3 -2
- package/dist/filters/FilterAsyncValueField.d.ts.map +1 -1
- package/dist/filters/FilterBar.d.ts.map +1 -1
- package/dist/filters/FilterValueCombobox.d.ts +1 -2
- package/dist/filters/FilterValueCombobox.d.ts.map +1 -1
- package/dist/filters/FilterValueField.d.ts.map +1 -1
- package/dist/filters/filter-providers-context.d.ts +4 -0
- package/dist/filters/filter-providers-context.d.ts.map +1 -1
- package/dist/hooks/retry-policy.d.ts +3 -2
- package/dist/hooks/retry-policy.d.ts.map +1 -1
- package/dist/hooks/use-filter-catalog-load.d.ts +16 -0
- package/dist/hooks/use-filter-catalog-load.d.ts.map +1 -0
- package/dist/hooks/use-infinite-options.d.ts +6 -0
- package/dist/hooks/use-infinite-options.d.ts.map +1 -1
- package/dist/hooks/use-kept-answer.d.ts +52 -0
- package/dist/hooks/use-kept-answer.d.ts.map +1 -0
- package/dist/hooks/use-log-detail-query.d.ts +4 -0
- package/dist/hooks/use-log-detail-query.d.ts.map +1 -1
- package/dist/hooks/use-logs-paged-query.d.ts +4 -0
- package/dist/hooks/use-logs-paged-query.d.ts.map +1 -1
- package/dist/hooks/use-resume-live-data.d.ts +17 -0
- package/dist/hooks/use-resume-live-data.d.ts.map +1 -0
- package/dist/hooks/use-retry-failed-queries.d.ts +9 -0
- package/dist/hooks/use-retry-failed-queries.d.ts.map +1 -0
- package/dist/hooks/use-trace-detail-query.d.ts +4 -0
- package/dist/hooks/use-trace-detail-query.d.ts.map +1 -1
- package/dist/hooks/use-traces-paged-query.d.ts +4 -0
- package/dist/hooks/use-traces-paged-query.d.ts.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4629 -4062
- package/dist/live/LiveIndicator.d.ts +4 -0
- package/dist/live/LiveIndicator.d.ts.map +1 -1
- package/dist/live/format-clock.d.ts +5 -0
- package/dist/live/format-clock.d.ts.map +1 -0
- package/dist/live/use-live-retry-countdown.d.ts +12 -0
- package/dist/live/use-live-retry-countdown.d.ts.map +1 -0
- package/dist/logs/LogsExplorerPage.d.ts.map +1 -1
- package/dist/logs/detail/components/LogDetailContextChart.d.ts.map +1 -1
- package/dist/logs/detail/components/LogDetailDrawer.d.ts.map +1 -1
- package/dist/logs/detail/components/LogDetailError.d.ts +5 -1
- package/dist/logs/detail/components/LogDetailError.d.ts.map +1 -1
- package/dist/logs/detail/components/LogDetailPage.d.ts.map +1 -1
- package/dist/logs/detail/presets/message-log-preset.d.ts.map +1 -1
- package/dist/providers/live-refresh-provider.d.ts +17 -0
- package/dist/providers/live-refresh-provider.d.ts.map +1 -1
- package/dist/routing/DashboardListPage.d.ts.map +1 -1
- package/dist/routing/ObservabilityDashboardPage.d.ts.map +1 -1
- package/dist/routing/ObservabilityRoutes.d.ts.map +1 -1
- package/dist/routing/TracingFilterProvider.d.ts.map +1 -1
- package/dist/routing/TracingScreen.d.ts.map +1 -1
- package/dist/shared/ExplorerTable.d.ts.map +1 -1
- package/dist/styles/observability.css +1 -1
- package/dist/testing/graphene-charts-mock.d.ts +1 -0
- package/dist/testing/graphene-charts-mock.d.ts.map +1 -1
- package/dist/testing/graphene-core-mock.d.ts +2 -0
- package/dist/testing/graphene-core-mock.d.ts.map +1 -1
- package/dist/testing.js +6 -6
- package/dist/traces/TraceExplorerPage.d.ts.map +1 -1
- package/dist/traces/TracingApiSelector.d.ts +4 -1
- package/dist/traces/TracingApiSelector.d.ts.map +1 -1
- package/dist/traces/detail/TraceDetailDrawer.d.ts.map +1 -1
- package/dist/traces/detail/TraceDetailPage.d.ts.map +1 -1
- package/dist/traces/detail/TraceDetailStates.d.ts +5 -1
- package/dist/traces/detail/TraceDetailStates.d.ts.map +1 -1
- package/dist/traces/use-tracing-api-paginated-options.d.ts +5 -1
- package/dist/traces/use-tracing-api-paginated-options.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ function h(e) {
|
|
|
49
49
|
a
|
|
50
50
|
].every((e) => Number.isFinite(e)) ? t === void 0 && n + i > p ? "current-unmarked" : "legacy" : "unreadable";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function te(e) {
|
|
53
53
|
switch (h(e)) {
|
|
54
54
|
case "legacy": return {
|
|
55
55
|
x: e.x * m,
|
|
@@ -68,10 +68,10 @@ function g(e) {
|
|
|
68
68
|
case "unreadable": return e;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function g(e) {
|
|
72
72
|
if (!e || !Array.isArray(e.widgets)) return e;
|
|
73
73
|
let t = !1, n = e.widgets.map((e) => {
|
|
74
|
-
let n =
|
|
74
|
+
let n = te(e.layout);
|
|
75
75
|
return n === e.layout ? e : (t = !0, {
|
|
76
76
|
...e,
|
|
77
77
|
layout: n
|
|
@@ -84,63 +84,110 @@ function _(e) {
|
|
|
84
84
|
}
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region src/data-sources/http-errors.ts
|
|
87
|
-
var
|
|
87
|
+
var _ = class extends Error {
|
|
88
88
|
status;
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
call;
|
|
90
|
+
detail;
|
|
91
|
+
constructor(e, t, n, r) {
|
|
92
|
+
super(t), this.name = "ObservabilityHttpError", this.status = e, n !== void 0 && (this.call = n), r !== void 0 && (this.detail = r);
|
|
91
93
|
}
|
|
92
|
-
};
|
|
93
|
-
function
|
|
94
|
-
|
|
94
|
+
}, v = 300;
|
|
95
|
+
function ne(e) {
|
|
96
|
+
if (typeof e != "object" || !e) return;
|
|
97
|
+
let { message: t, detail: n, error: r } = e, i = [
|
|
98
|
+
t,
|
|
99
|
+
n,
|
|
100
|
+
r
|
|
101
|
+
].find((e) => typeof e == "string" && e.trim());
|
|
102
|
+
return typeof i == "string" ? i : void 0;
|
|
95
103
|
}
|
|
96
104
|
function y(e) {
|
|
105
|
+
try {
|
|
106
|
+
return JSON.parse(e);
|
|
107
|
+
} catch {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
async function b(e) {
|
|
112
|
+
if (typeof e.text != "function") return;
|
|
113
|
+
let t;
|
|
114
|
+
try {
|
|
115
|
+
t = (await e.text()).trim();
|
|
116
|
+
} catch (e) {
|
|
117
|
+
console.warn("[gamma-lib-observability] Could not read the body of a failed response", e);
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
if (!t || t.startsWith("<")) return;
|
|
121
|
+
let n = t.startsWith("{") ? ne(y(t)) : t;
|
|
122
|
+
if (!n) return;
|
|
123
|
+
let r = n.replace(/\s+/g, " ").trim();
|
|
124
|
+
return r.length > v ? `${r.slice(0, v - 1)}…` : r;
|
|
125
|
+
}
|
|
126
|
+
async function re(e, t) {
|
|
127
|
+
return new _(e.status, `[gamma-lib-observability] HTTP ${e.status} on ${t}`, t, await b(e));
|
|
128
|
+
}
|
|
129
|
+
function x(e) {
|
|
97
130
|
if (typeof e != "object" || !e || !("status" in e)) return;
|
|
98
131
|
let { status: t } = e;
|
|
99
132
|
return typeof t == "number" ? t : void 0;
|
|
100
133
|
}
|
|
101
|
-
function
|
|
102
|
-
|
|
134
|
+
function S(e) {
|
|
135
|
+
if (typeof e != "object" || !e || !("call" in e)) return;
|
|
136
|
+
let { call: t } = e;
|
|
137
|
+
return typeof t == "string" ? t : void 0;
|
|
103
138
|
}
|
|
104
|
-
function
|
|
105
|
-
|
|
139
|
+
function C(e) {
|
|
140
|
+
if (typeof e != "object" || !e || !("detail" in e)) return;
|
|
141
|
+
let { detail: t } = e;
|
|
142
|
+
return typeof t == "string" && t ? t : void 0;
|
|
143
|
+
}
|
|
144
|
+
function w(e) {
|
|
145
|
+
let t = x(e);
|
|
146
|
+
return t !== void 0 && t >= 400 && t < 500;
|
|
147
|
+
}
|
|
148
|
+
function T(e) {
|
|
149
|
+
return x(e) === 403;
|
|
150
|
+
}
|
|
151
|
+
function E(e) {
|
|
152
|
+
return x(e) === 404;
|
|
106
153
|
}
|
|
107
154
|
//#endregion
|
|
108
155
|
//#region src/data-sources/dashboard-errors.ts
|
|
109
|
-
var
|
|
156
|
+
var D = class extends Error {
|
|
110
157
|
status;
|
|
111
158
|
constructor(e, t) {
|
|
112
159
|
super(t), this.name = "DashboardPersistenceError", this.status = e;
|
|
113
160
|
}
|
|
114
|
-
},
|
|
161
|
+
}, ie = class extends D {
|
|
115
162
|
constructor(e) {
|
|
116
163
|
super(403, e), this.name = "DashboardForbiddenError";
|
|
117
164
|
}
|
|
118
|
-
},
|
|
165
|
+
}, ae = class extends D {
|
|
119
166
|
dashboardId;
|
|
120
167
|
constructor(e, t) {
|
|
121
168
|
super(404, t), this.name = "DashboardNotFoundError", this.dashboardId = e;
|
|
122
169
|
}
|
|
123
|
-
},
|
|
170
|
+
}, O = class extends D {
|
|
124
171
|
currentVersion;
|
|
125
172
|
currentDashboard;
|
|
126
173
|
constructor(e, t, n) {
|
|
127
174
|
super(412, e), this.name = "DashboardConflictError", this.currentDashboard = t, this.currentVersion = n;
|
|
128
175
|
}
|
|
129
176
|
};
|
|
130
|
-
function
|
|
131
|
-
return
|
|
177
|
+
function oe(e) {
|
|
178
|
+
return E(e);
|
|
132
179
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
180
|
+
function se(e) {
|
|
181
|
+
return T(e);
|
|
135
182
|
}
|
|
136
183
|
//#endregion
|
|
137
184
|
//#region src/data-sources/with-grid-migration.ts
|
|
138
|
-
function
|
|
139
|
-
let t = (e) => Promise.resolve(e).then(
|
|
185
|
+
function ce(e) {
|
|
186
|
+
let t = (e) => Promise.resolve(e).then(g, le);
|
|
140
187
|
return {
|
|
141
188
|
...e.module !== void 0 && { module: e.module },
|
|
142
|
-
fetchDashboard: (t, n) => Promise.resolve(e.fetchDashboard(t, n)).then(
|
|
143
|
-
fetchDashboards: (t) => Promise.resolve(e.fetchDashboards(t)).then((e) => Array.isArray(e) ? e.map(
|
|
189
|
+
fetchDashboard: (t, n) => Promise.resolve(e.fetchDashboard(t, n)).then(g),
|
|
190
|
+
fetchDashboards: (t) => Promise.resolve(e.fetchDashboards(t)).then((e) => Array.isArray(e) ? e.map(g) : e),
|
|
144
191
|
createDashboard: (n, r) => t(e.createDashboard(n, r)),
|
|
145
192
|
updateDashboard: (n, r, i) => t(e.updateDashboard(n, r, i)),
|
|
146
193
|
deleteDashboard: (t, n) => e.deleteDashboard(t, n),
|
|
@@ -148,12 +195,12 @@ function re(e) {
|
|
|
148
195
|
...e.takeReadRevision && { takeReadRevision: (t) => e.takeReadRevision?.(t) }
|
|
149
196
|
};
|
|
150
197
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!(e instanceof
|
|
153
|
-
let t =
|
|
154
|
-
throw t === e.currentDashboard ? e :
|
|
198
|
+
function le(e) {
|
|
199
|
+
if (!(e instanceof O)) throw e;
|
|
200
|
+
let t = g(e.currentDashboard);
|
|
201
|
+
throw t === e.currentDashboard ? e : ue(e, t);
|
|
155
202
|
}
|
|
156
|
-
function
|
|
203
|
+
function ue(e, t) {
|
|
157
204
|
return Object.create(Object.getPrototypeOf(e), {
|
|
158
205
|
...Object.getOwnPropertyDescriptors(e),
|
|
159
206
|
stack: {
|
|
@@ -172,84 +219,84 @@ function ae(e, t) {
|
|
|
172
219
|
}
|
|
173
220
|
//#endregion
|
|
174
221
|
//#region src/providers/dashboard-persistence-provider.tsx
|
|
175
|
-
var
|
|
176
|
-
function
|
|
177
|
-
let n = r(() =>
|
|
178
|
-
return /* @__PURE__ */ a(
|
|
222
|
+
var k = e(null);
|
|
223
|
+
function A({ persistence: e, children: t }) {
|
|
224
|
+
let n = r(() => ce(e), [e]);
|
|
225
|
+
return /* @__PURE__ */ a(k.Provider, {
|
|
179
226
|
value: n,
|
|
180
227
|
children: t
|
|
181
228
|
});
|
|
182
229
|
}
|
|
183
|
-
function
|
|
184
|
-
return n(
|
|
230
|
+
function j() {
|
|
231
|
+
return n(k);
|
|
185
232
|
}
|
|
186
|
-
function
|
|
187
|
-
let e = n(
|
|
233
|
+
function M() {
|
|
234
|
+
let e = n(k);
|
|
188
235
|
if (!e) throw Error("[gamma-lib-observability] useDashboardPersistence must be used within a <DashboardPersistenceProvider>. Wrap your component tree with <DashboardPersistenceProvider persistence={yourImpl}>.");
|
|
189
236
|
return e;
|
|
190
237
|
}
|
|
191
238
|
//#endregion
|
|
192
239
|
//#region src/providers/ContextFiltersProvider.tsx
|
|
193
|
-
var
|
|
194
|
-
function
|
|
240
|
+
var N = e([]);
|
|
241
|
+
function P({ filters: e, children: t }) {
|
|
195
242
|
let n = r(() => e, [JSON.stringify(e)]);
|
|
196
|
-
return /* @__PURE__ */ a(
|
|
243
|
+
return /* @__PURE__ */ a(N.Provider, {
|
|
197
244
|
value: n,
|
|
198
245
|
children: t
|
|
199
246
|
});
|
|
200
247
|
}
|
|
201
|
-
function
|
|
202
|
-
return n(
|
|
248
|
+
function F() {
|
|
249
|
+
return n(N);
|
|
203
250
|
}
|
|
204
251
|
//#endregion
|
|
205
252
|
//#region src/dashboards/merge-filters.ts
|
|
206
|
-
var
|
|
207
|
-
function
|
|
208
|
-
return
|
|
253
|
+
var I = new Set(["gte", "lte"]);
|
|
254
|
+
function L(e) {
|
|
255
|
+
return I.has(e.operator);
|
|
209
256
|
}
|
|
210
|
-
function
|
|
257
|
+
function R(...e) {
|
|
211
258
|
let t = /* @__PURE__ */ new Map();
|
|
212
|
-
for (let n of e) if (n) for (let [e, r] of
|
|
259
|
+
for (let n of e) if (n) for (let [e, r] of z(n)) t.set(e, B(r));
|
|
213
260
|
return Array.from(t.values()).flat();
|
|
214
261
|
}
|
|
215
|
-
function
|
|
262
|
+
function z(e) {
|
|
216
263
|
let t = /* @__PURE__ */ new Map();
|
|
217
264
|
for (let n of e) t.set(n.field, [...t.get(n.field) ?? [], n]);
|
|
218
265
|
return t;
|
|
219
266
|
}
|
|
220
|
-
function
|
|
221
|
-
return e.every(
|
|
267
|
+
function B(e) {
|
|
268
|
+
return e.every(L) ? e.filter((t, n) => e.slice(n + 1).every((e) => e.operator !== t.operator)) : [e[e.length - 1]];
|
|
222
269
|
}
|
|
223
270
|
//#endregion
|
|
224
271
|
//#region src/filters/scope-ceiling.ts
|
|
225
|
-
var
|
|
226
|
-
function
|
|
227
|
-
let n =
|
|
272
|
+
var V = new Set(["eq", "in"]);
|
|
273
|
+
function H(e, t) {
|
|
274
|
+
let n = R(e, t), r = new Map(e.filter((e) => V.has(e.operator) && e.value.length > 0).map((e) => [e.field, e]));
|
|
228
275
|
if (r.size === 0) return n;
|
|
229
276
|
let i = /* @__PURE__ */ new Set();
|
|
230
277
|
return n.flatMap((e) => {
|
|
231
278
|
let t = r.get(e.field);
|
|
232
279
|
if (!t || e === t) return [e];
|
|
233
|
-
let n =
|
|
280
|
+
let n = fe(e, t);
|
|
234
281
|
return n === t ? i.has(e.field) ? [] : (i.add(e.field), [t]) : [n];
|
|
235
282
|
});
|
|
236
283
|
}
|
|
237
|
-
function
|
|
284
|
+
function U(e, t) {
|
|
238
285
|
let n = /* @__PURE__ */ new Set();
|
|
239
286
|
return [...e, ...t ?? []].filter((e) => {
|
|
240
|
-
let t =
|
|
287
|
+
let t = de(e);
|
|
241
288
|
return n.has(t) ? !1 : (n.add(t), !0);
|
|
242
289
|
});
|
|
243
290
|
}
|
|
244
|
-
function
|
|
291
|
+
function de(e) {
|
|
245
292
|
return JSON.stringify([
|
|
246
293
|
e.field,
|
|
247
294
|
e.operator,
|
|
248
295
|
[...e.value].sort()
|
|
249
296
|
]);
|
|
250
297
|
}
|
|
251
|
-
function
|
|
252
|
-
if (!
|
|
298
|
+
function fe(e, t) {
|
|
299
|
+
if (!V.has(e.operator)) return t;
|
|
253
300
|
let n = new Set(t.value), r = e.value.map((e, t) => n.has(e) ? t : -1).filter((e) => e >= 0);
|
|
254
301
|
return r.length === 0 ? t : r.length === e.value.length ? e : {
|
|
255
302
|
...e,
|
|
@@ -259,112 +306,112 @@ function B(e, t) {
|
|
|
259
306
|
}
|
|
260
307
|
//#endregion
|
|
261
308
|
//#region src/providers/clamped-data-sources.ts
|
|
262
|
-
function
|
|
309
|
+
function pe(e, t) {
|
|
263
310
|
return {
|
|
264
311
|
fetchTimeSeries: (n) => e.fetchTimeSeries({
|
|
265
312
|
...n,
|
|
266
|
-
filters:
|
|
313
|
+
filters: U(t, n.filters)
|
|
267
314
|
}),
|
|
268
315
|
fetchFacets: (n) => e.fetchFacets({
|
|
269
316
|
...n,
|
|
270
|
-
filters:
|
|
317
|
+
filters: U(t, n.filters)
|
|
271
318
|
}),
|
|
272
319
|
fetchMeasures: (n) => e.fetchMeasures({
|
|
273
320
|
...n,
|
|
274
|
-
filters:
|
|
321
|
+
filters: U(t, n.filters)
|
|
275
322
|
})
|
|
276
323
|
};
|
|
277
324
|
}
|
|
278
|
-
function
|
|
325
|
+
function W(e, t) {
|
|
279
326
|
let n = e.getById;
|
|
280
327
|
return {
|
|
281
328
|
fetchLogs: (n) => e.fetchLogs({
|
|
282
329
|
...n,
|
|
283
|
-
filters:
|
|
330
|
+
filters: H(t, n.filters)
|
|
284
331
|
}),
|
|
285
332
|
...n ? { getById: (t, r, i) => n.call(e, t, r, i) } : {}
|
|
286
333
|
};
|
|
287
334
|
}
|
|
288
335
|
//#endregion
|
|
289
336
|
//#region src/providers/logs-data-source-provider.tsx
|
|
290
|
-
var
|
|
291
|
-
function
|
|
292
|
-
return /* @__PURE__ */ a(
|
|
337
|
+
var G = e(null);
|
|
338
|
+
function me({ dataSource: e, children: t }) {
|
|
339
|
+
return /* @__PURE__ */ a(G.Provider, {
|
|
293
340
|
value: e,
|
|
294
341
|
children: t
|
|
295
342
|
});
|
|
296
343
|
}
|
|
297
|
-
function
|
|
298
|
-
let e =
|
|
344
|
+
function he() {
|
|
345
|
+
let e = K();
|
|
299
346
|
if (!e) throw Error("[gamma-lib-observability] useLogsDataSource must be used within a <LogsDataSourceProvider>. Wrap your component tree with <LogsDataSourceProvider dataSource={yourImpl}>.");
|
|
300
347
|
return e;
|
|
301
348
|
}
|
|
302
|
-
function
|
|
303
|
-
let e = n(
|
|
304
|
-
return r(() => e ?
|
|
349
|
+
function K() {
|
|
350
|
+
let e = n(G), t = F();
|
|
351
|
+
return r(() => e ? W(e, t) : null, [e, t]);
|
|
305
352
|
}
|
|
306
353
|
//#endregion
|
|
307
354
|
//#region src/providers/metrics-data-source-provider.tsx
|
|
308
|
-
var
|
|
309
|
-
function
|
|
310
|
-
return /* @__PURE__ */ a(
|
|
355
|
+
var q = e(null);
|
|
356
|
+
function ge({ dataSource: e, children: t }) {
|
|
357
|
+
return /* @__PURE__ */ a(q.Provider, {
|
|
311
358
|
value: e,
|
|
312
359
|
children: t
|
|
313
360
|
});
|
|
314
361
|
}
|
|
315
|
-
function
|
|
316
|
-
let e =
|
|
362
|
+
function _e() {
|
|
363
|
+
let e = J();
|
|
317
364
|
if (!e) throw Error("[gamma-lib-observability] useMetricsDataSource must be used within a <MetricsDataSourceProvider>. Wrap your component tree with <MetricsDataSourceProvider dataSource={yourImpl}>.");
|
|
318
365
|
return e;
|
|
319
366
|
}
|
|
320
|
-
function
|
|
321
|
-
let e = n(
|
|
322
|
-
return r(() => e ?
|
|
367
|
+
function J() {
|
|
368
|
+
let e = n(q), t = F();
|
|
369
|
+
return r(() => e ? pe(e, t) : null, [e, t]);
|
|
323
370
|
}
|
|
324
371
|
//#endregion
|
|
325
372
|
//#region src/providers/traces-data-source-provider.tsx
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
return /* @__PURE__ */ a(
|
|
373
|
+
var Y = e(null);
|
|
374
|
+
function ve({ dataSource: e, children: t }) {
|
|
375
|
+
return /* @__PURE__ */ a(Y.Provider, {
|
|
329
376
|
value: e,
|
|
330
377
|
children: t
|
|
331
378
|
});
|
|
332
379
|
}
|
|
333
|
-
function
|
|
334
|
-
let e = n(
|
|
380
|
+
function ye() {
|
|
381
|
+
let e = n(Y);
|
|
335
382
|
if (!e) throw Error("[gamma-lib-observability] useTracesDataSource must be used within a <TracesDataSourceProvider>. Wrap your component tree with <TracesDataSourceProvider dataSource={yourImpl}>.");
|
|
336
383
|
return e;
|
|
337
384
|
}
|
|
338
|
-
function
|
|
339
|
-
return n(
|
|
385
|
+
function be() {
|
|
386
|
+
return n(Y);
|
|
340
387
|
}
|
|
341
388
|
//#endregion
|
|
342
389
|
//#region src/filters/filter-providers-context.tsx
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
let o = r(() => e, [e]), s = n(
|
|
346
|
-
return /* @__PURE__ */ a(
|
|
390
|
+
var X = e(null), Z = e(null);
|
|
391
|
+
function xe({ providers: e, load: t, children: i }) {
|
|
392
|
+
let o = r(() => e, [e]), s = n(Z);
|
|
393
|
+
return /* @__PURE__ */ a(Z.Provider, {
|
|
347
394
|
value: t ?? s,
|
|
348
|
-
children: /* @__PURE__ */ a(
|
|
395
|
+
children: /* @__PURE__ */ a(X.Provider, {
|
|
349
396
|
value: o,
|
|
350
397
|
children: i
|
|
351
398
|
})
|
|
352
399
|
});
|
|
353
400
|
}
|
|
354
|
-
function
|
|
355
|
-
let e = n(
|
|
401
|
+
function Se() {
|
|
402
|
+
let e = n(Z);
|
|
356
403
|
return e !== null && e.error !== null && e.error !== void 0 ? e : null;
|
|
357
404
|
}
|
|
358
405
|
function Q() {
|
|
359
|
-
let e = n(
|
|
406
|
+
let e = n(X);
|
|
360
407
|
if (!e) throw Error("[gamma-lib-observability] useFilterProviders must be used within a <FilterProvidersProvider>. Wrap your component tree with <FilterProvidersProvider providers={[...]}>.");
|
|
361
408
|
return e;
|
|
362
409
|
}
|
|
363
|
-
function
|
|
364
|
-
return n(
|
|
410
|
+
function Ce() {
|
|
411
|
+
return n(X) ?? we;
|
|
365
412
|
}
|
|
366
|
-
var
|
|
367
|
-
function
|
|
413
|
+
var we = Object.freeze([]);
|
|
414
|
+
function Te(e) {
|
|
368
415
|
let t = Q();
|
|
369
416
|
if (e) return t.find((t) => t.field === e);
|
|
370
417
|
}
|
|
@@ -376,7 +423,7 @@ var $ = e({
|
|
|
376
423
|
reportRefused: () => {},
|
|
377
424
|
reportGranted: () => {}
|
|
378
425
|
});
|
|
379
|
-
function
|
|
426
|
+
function Ee({ children: e }) {
|
|
380
427
|
let [n, o] = i({
|
|
381
428
|
read: !1,
|
|
382
429
|
write: !1
|
|
@@ -406,8 +453,8 @@ function ye({ children: e }) {
|
|
|
406
453
|
children: e
|
|
407
454
|
});
|
|
408
455
|
}
|
|
409
|
-
function
|
|
456
|
+
function De() {
|
|
410
457
|
return n($);
|
|
411
458
|
}
|
|
412
459
|
//#endregion
|
|
413
|
-
export {
|
|
460
|
+
export { se as A, ee as B, A as C, ie as D, O as E, C as F, d as G, g as H, x as I, s as K, w as L, _ as M, re as N, ae as O, S as P, T as R, F as S, j as T, l as U, f as V, u as W, U as _, Te as a, R as b, ve as c, ge as d, _e as f, K as g, he as h, Se as i, oe as j, D as k, be as l, me as m, De as n, Q as o, J as p, o as q, xe as r, Ce as s, Ee as t, ye as u, H as v, M as w, P as x, L as y, E as z };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardView.d.ts","sourceRoot":"","sources":["../../src/dashboards/DashboardView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAwB,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"DashboardView.d.ts","sourceRoot":"","sources":["../../src/dashboards/DashboardView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAwB,MAAM,0CAA0C,CAAC;AASrG,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,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TableSort, TimeRange } from '../../types/domain';
|
|
2
3
|
import { FacetMetricRequest } from '../../types/requests';
|
|
3
4
|
import { AnalyticsTableRow, ResolvedTableColumn } from './analytics-table-model';
|
|
@@ -35,6 +36,8 @@ export interface AnalyticsTableQueryResult {
|
|
|
35
36
|
readonly isError: boolean;
|
|
36
37
|
/** Why the rows did not load, so a refusal can be told from a failure. */
|
|
37
38
|
readonly error: Error | null;
|
|
39
|
+
/** The failure, for its details, whenever `isError` is. */
|
|
40
|
+
readonly failure: LoadFailure | undefined;
|
|
38
41
|
}
|
|
39
42
|
/**
|
|
40
43
|
* One facets request for the whole table, however many columns it has, plus one
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-analytics-table-query.d.ts","sourceRoot":"","sources":["../../../src/dashboards/analytics-table/use-analytics-table-query.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-analytics-table-query.d.ts","sourceRoot":"","sources":["../../../src/dashboards/analytics-table/use-analytics-table-query.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAIpE,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC9F,OAAO,KAAK,EAAE,kBAAkB,EAAiB,MAAM,sBAAsB,CAAC;AAE9E,OAAO,EAAmB,KAAK,iBAAiB,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE5G;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,SAAS,mBAAmB,EAAE,EACvC,IAAI,EAAE,SAAS,GAAG,SAAS,GAC1B,kBAAkB,EAAE,CAiBtB;AAoBD,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,EAAE,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACjD,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IAC1C;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,IAAI,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC5C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAC9D,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,0EAA0E;IAC1E,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAC7B,2DAA2D;IAC3D,QAAQ,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;CAC3C;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,EAAE,EACF,OAAO,EACP,IAAI,EACJ,SAAS,EACT,OAAO,EACP,KAAK,EACL,MAAM,EACN,UAAkB,EAClB,OAAO,GACR,EAAE,4BAA4B,GAAG,yBAAyB,CAqD1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardEditorPage.d.ts","sourceRoot":"","sources":["../../../src/dashboards/editor/DashboardEditorPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DashboardEditorPage.d.ts","sourceRoot":"","sources":["../../../src/dashboards/editor/DashboardEditorPage.tsx"],"names":[],"mappings":"AAoFA;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,gBAAgB,EAAE,EAAE,wBAAwB,2CAYjF"}
|
|
@@ -19,7 +19,8 @@ export { useMergedWidgetFilters } from './use-merged-widget-filters';
|
|
|
19
19
|
export { registerDefaultRenderers } from './register-default-renderers';
|
|
20
20
|
export { clearWidgetRenderers, getWidgetRenderer, registerWidgetRenderer, type WidgetRenderer, type WidgetRendererProps, } from './widget-renderer-registry';
|
|
21
21
|
export { WidgetAccessDenied, type WidgetAccessDeniedProps } from './renderers/WidgetAccessDenied';
|
|
22
|
-
export type
|
|
22
|
+
export { WidgetLoadFailed, type WidgetLoadFailedProps } from './renderers/WidgetLoadFailed';
|
|
23
|
+
export type { DataKind, RefusedDataKind } from '../components/refusal-wording';
|
|
23
24
|
export { computeBucketInterval, DASHBOARD_BUCKET_TARGET } from './compute-bucket-interval';
|
|
24
25
|
export { computePreviousTimeRange } from './compute-previous-time-range';
|
|
25
26
|
export { resolveStableTimeRange } from './resolve-stable-time-range';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dashboards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,YAAY,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAEhF,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC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CAAC;AAE/E,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC3F,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACnG,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACL,KAAK,aAAa,EAClB,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,gCAAgC,EAChC,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGpH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AAGzE,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,EAC5B,oBAAoB,EACpB,qBAAqB,EACrB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,GACrC,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/BarWidgetRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BarWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/BarWidgetRenderer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAKpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAOvE,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,mBAAmB,CAAC,SAAS,CAAC,2CAgF/F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreakdownWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/BreakdownWidgetRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BreakdownWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/BreakdownWidgetRenderer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAA6B,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AA2CvE,wBAAgB,uBAAuB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,mBAAmB,CAAC,eAAe,CAAC,2CAgI3G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartesianWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/CartesianWidgetRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CartesianWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/CartesianWidgetRenderer.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,eAAe,EAAoB,MAAM,oBAAoB,CAAC;AAO5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAMvE,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,SAAS,EACT,OAAO,EACP,eAAe,GAChB,EAAE,mBAAmB,CAAC,eAAe,CAAC,2CAoItC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DoughnutWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/DoughnutWidgetRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DoughnutWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/DoughnutWidgetRenderer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAOvE,wBAAgB,sBAAsB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,mBAAmB,CAAC,cAAc,CAAC,2CAoGzG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetricGroupWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/MetricGroupWidgetRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MetricGroupWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/MetricGroupWidgetRenderer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAA6B,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AASvF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAMvE,wBAAgB,yBAAyB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,mBAAmB,CAAC,iBAAiB,CAAC,2CAkH/G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetricWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/MetricWidgetRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MetricWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/MetricWidgetRenderer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAWvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAMvE,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,mBAAmB,CAAC,YAAY,CAAC,2CAsFrG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/TableWidgetRenderer.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAQjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"TableWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/TableWidgetRenderer.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAQjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AA0BvE,wBAAgB,mBAAmB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,mBAAmB,CAAC,WAAW,CAAC,2CAgH/G"}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { RefusedDataKind } from '../../components/refusal-wording';
|
|
3
|
-
export interface WidgetRefusalProviderProps {
|
|
4
|
-
readonly onRefusedChange?: (refused: boolean, kind: RefusedDataKind) => void;
|
|
5
|
-
/** Draw nothing on a refusal: the page or the dashboard shows a single state for it. @default false */
|
|
6
|
-
readonly silent?: boolean;
|
|
7
|
-
readonly children: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Lets the page or the dashboard around a widget learn of its refusal, to show
|
|
11
|
-
* one state for the whole of it when everything it holds is refused.
|
|
12
|
-
*/
|
|
13
|
-
export declare function WidgetRefusalProvider({ onRefusedChange, silent, children }: WidgetRefusalProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
2
|
export interface WidgetAccessDeniedProps {
|
|
15
3
|
/** The kind of data the widget's refused request was for. @default 'analytics' */
|
|
16
4
|
readonly dataKind?: RefusedDataKind;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetAccessDenied.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/WidgetAccessDenied.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WidgetAccessDenied.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/WidgetAccessDenied.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAGtF,MAAM,WAAW,uBAAuB;IACtC,kFAAkF;IAClF,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC;CACrC;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,QAAsB,EAAE,EAAE,uBAAuB,kDAWrF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DataKind } from '../../components/refusal-wording';
|
|
2
|
+
export interface WidgetLoadFailedProps {
|
|
3
|
+
/**
|
|
4
|
+
* Why the widget's data did not load, shown in its "View details". The
|
|
5
|
+
* same object from one render to the next, as a query's `error` is: a new
|
|
6
|
+
* one each render reports a new failure each time.
|
|
7
|
+
*/
|
|
8
|
+
readonly error: unknown;
|
|
9
|
+
/** When it failed, in epoch milliseconds: a query's `errorUpdatedAt`. */
|
|
10
|
+
readonly failedAt?: number;
|
|
11
|
+
/** The data is being loaded again right now: the dashboard's single state says so. */
|
|
12
|
+
readonly retrying?: boolean;
|
|
13
|
+
/** The kind of data the widget reads. @default 'analytics' */
|
|
14
|
+
readonly dataKind?: DataKind;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* What a widget shows when its data failed to load (5xx, network), in place
|
|
18
|
+
* of the "no data" a failure used to read as. No retry on a tile: one widget
|
|
19
|
+
* failing is part of a page, the next refresh asks again, and a dashboard
|
|
20
|
+
* whose every widget failed shows one state with the page's "Try again".
|
|
21
|
+
*/
|
|
22
|
+
export declare function WidgetLoadFailed({ error, failedAt, retrying, dataKind }: WidgetLoadFailedProps): import("react/jsx-runtime").JSX.Element | null;
|
|
23
|
+
//# sourceMappingURL=WidgetLoadFailed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetLoadFailed.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/WidgetLoadFailed.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAGjE,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,sFAAsF;IACtF,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAgB,EAAE,QAAsB,EAAE,EAAE,qBAAqB,kDAYpH"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FilterCondition, TimeRange, Widget } from '../../types/domain';
|
|
2
|
+
/**
|
|
3
|
+
* What a widget's data answers, for `useKeptAnswer`: its definition, the time
|
|
4
|
+
* range as the reader set it, and the filters it is read under. Live mode
|
|
5
|
+
* moving the window on keeps the question; anything the reader changes is a
|
|
6
|
+
* new one.
|
|
7
|
+
*/
|
|
8
|
+
export declare function widgetQuestion(widget: Widget, timeRange: TimeRange, filters: readonly FilterCondition[], part?: string): string;
|
|
9
|
+
//# sourceMappingURL=widget-question.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-question.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/widget-question.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE7E;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,SAAS,eAAe,EAAE,EACnC,IAAI,CAAC,EAAE,MAAM,GACZ,MAAM,CAER"}
|