@burdenoff/microfe-bigconsole 2026.1012.2 → 2026.1012.4
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/bigconsole/assistant/assistantApi.js +5 -5
- package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +33 -18
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +123 -121
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +241 -267
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +154 -150
- package/dist/bigconsole/components/embed/renderer-manifest.js +12 -0
- package/dist/bigconsole/components/widgets/WidgetRegistry.js +122 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +227 -224
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.d.ts +10 -0
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +113 -0
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.d.ts +10 -0
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +186 -0
- package/dist/bigconsole/components/widgets/advanced/data.d.ts +36 -0
- package/dist/bigconsole/components/widgets/advanced/data.js +113 -0
- package/dist/bigconsole/components/widgets/advanced/mapData.d.ts +10 -0
- package/dist/bigconsole/components/widgets/advanced/mapData.js +22 -0
- package/dist/bigconsole/components/widgets/advanced/waterfallData.d.ts +15 -0
- package/dist/bigconsole/components/widgets/advanced/waterfallData.js +28 -0
- package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.js +34 -37
- package/dist/bigconsole/components/widgets/index.js +1 -1
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.d.ts +2 -0
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +64 -63
- package/dist/bigconsole/graphql/widgetCapabilities.d.ts +7 -0
- package/dist/bigconsole/graphql/widgetCapabilities.js +37 -0
- package/dist/bigconsole/hooks/useExportDashboard.js +62 -38
- package/dist/bigconsole/hooks/useImportDashboard.d.ts +2 -12
- package/dist/bigconsole/hooks/useImportDashboard.js +95 -126
- package/dist/bigconsole/hooks/useWidgetCatalog.js +46 -41
- package/dist/bigconsole/hooks/useWidgetOperations.js +113 -88
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js +8 -5
- package/dist/bigconsole/types/index.d.ts +1 -1
- package/dist/bigconsole/utils/advancedWidgetCapabilities.d.ts +14 -0
- package/dist/bigconsole/utils/advancedWidgetCapabilities.js +36 -0
- package/dist/bigconsole/utils/widgetTypeMapping.d.ts +1 -1
- package/dist/bigconsole/utils/widgetTypeMapping.js +13 -2
- package/dist/generated/wspace-operations.d.ts +61 -2
- package/dist/generated/wspace-operations.js +44 -18
- package/dist/generated/wspace-types.d.ts +34 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreateSandboxDocument as e, ExtendSandboxTtlDocument as t, GetActiveSandboxesDocument as n, GetReusableAssistantSandboxDocument as r, GetSandboxDocument as i, ProxySandboxRequestDocument as a } from "../../generated/wspace-operations.js";
|
|
2
2
|
import { BIGCONSOLE_PRODUCT as o } from "./product.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { graphqlFetch as s } from "@burdenoff/fe-libs/shared/graphql";
|
|
4
|
+
import { Kind as c, print as l } from "graphql";
|
|
5
5
|
import { ASSISTANT_API_AUTH_STRATEGY as u, getImageForMode as d, getImageTagForMode as f, resolveSandboxAssistantMode as p } from "@burdenoff/fe-libs/shared/assistant/images";
|
|
6
6
|
//#region src/bigconsole/assistant/assistantApi.ts
|
|
7
7
|
var m = o;
|
|
@@ -33,7 +33,7 @@ function v(e) {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
function y(e) {
|
|
36
|
-
return e.definitions.find((e) => e.kind ===
|
|
36
|
+
return e.definitions.find((e) => e.kind === c.OPERATION_DEFINITION)?.name?.value;
|
|
37
37
|
}
|
|
38
38
|
function b() {
|
|
39
39
|
try {
|
|
@@ -67,9 +67,9 @@ async function S(e) {
|
|
|
67
67
|
throw t;
|
|
68
68
|
}
|
|
69
69
|
async function C(e) {
|
|
70
|
-
let t = y(e.document), n = await
|
|
70
|
+
let t = y(e.document), n = await s({
|
|
71
71
|
gateway: "workspace",
|
|
72
|
-
query:
|
|
72
|
+
query: l(e.document),
|
|
73
73
|
variables: e.variables,
|
|
74
74
|
operationName: t,
|
|
75
75
|
authToken: e.authContext?.accessToken ?? void 0,
|
|
@@ -7,48 +7,63 @@ import i from "../../widgets/list/ListConfig.js";
|
|
|
7
7
|
import a from "../../widgets/metric-card/MetricCardConfig.js";
|
|
8
8
|
import o from "../../widgets/progress/ProgressConfig.js";
|
|
9
9
|
import s from "../../widgets/table/TableConfig.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { AdvancedWidgetConfig as c } from "../../widgets/advanced/AdvancedWidgetConfig.js";
|
|
11
|
+
import { memo as l } from "react";
|
|
12
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
13
|
+
import { useI18n as d } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
12
14
|
//#region src/bigconsole/components/builder/inspector/AppearanceSection.tsx
|
|
13
|
-
function
|
|
15
|
+
function f(e) {
|
|
14
16
|
return e;
|
|
15
17
|
}
|
|
16
|
-
function
|
|
18
|
+
function p(e) {
|
|
17
19
|
switch (e) {
|
|
18
20
|
case "metric_card":
|
|
19
|
-
case "kpi_card_comparison": return
|
|
21
|
+
case "kpi_card_comparison": return f(a);
|
|
20
22
|
case "chart":
|
|
21
|
-
case "funnel_chart": return
|
|
23
|
+
case "funnel_chart": return f(t);
|
|
22
24
|
case "table":
|
|
23
|
-
case "pivot_table": return
|
|
24
|
-
case "gauge": return
|
|
25
|
-
case "progress": return
|
|
26
|
-
case "list": return
|
|
27
|
-
case "heatmap": return
|
|
25
|
+
case "pivot_table": return f(s);
|
|
26
|
+
case "gauge": return f(n);
|
|
27
|
+
case "progress": return f(o);
|
|
28
|
+
case "list": return f(i);
|
|
29
|
+
case "heatmap": return f(r);
|
|
28
30
|
default: return null;
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
|
-
var
|
|
32
|
-
let i = d(t);
|
|
33
|
-
return
|
|
33
|
+
var m = l(function({ widgetType: t, config: n, onChange: r }) {
|
|
34
|
+
let { t: i } = d(), a = p(t);
|
|
35
|
+
return [
|
|
36
|
+
"map",
|
|
37
|
+
"waterfall",
|
|
38
|
+
"sankey",
|
|
39
|
+
"box_plot"
|
|
40
|
+
].includes(t) ? /* @__PURE__ */ u(e, {
|
|
41
|
+
title: i("bigconsole.widget.advanced.fieldMappings", "Field mappings"),
|
|
42
|
+
"data-testid": "advanced-widget-config",
|
|
43
|
+
children: /* @__PURE__ */ u(c, {
|
|
44
|
+
type: t,
|
|
45
|
+
config: n,
|
|
46
|
+
onChange: r
|
|
47
|
+
})
|
|
48
|
+
}) : a ? /* @__PURE__ */ u(e, {
|
|
34
49
|
title: "Style",
|
|
35
50
|
description: "Presentation options for this widget type. Data and identity live on the other tabs.",
|
|
36
51
|
"data-testid": "widget-inspector-style",
|
|
37
|
-
children: /* @__PURE__ */
|
|
52
|
+
children: /* @__PURE__ */ u(a, {
|
|
38
53
|
config: n,
|
|
39
54
|
onChange: r
|
|
40
55
|
})
|
|
41
|
-
}) : /* @__PURE__ */
|
|
56
|
+
}) : /* @__PURE__ */ u(e, {
|
|
42
57
|
tone: "info",
|
|
43
58
|
padding: "compact",
|
|
44
59
|
title: "No style options",
|
|
45
60
|
headingLevel: 3,
|
|
46
61
|
"data-testid": "widget-inspector-style-empty",
|
|
47
|
-
children: /* @__PURE__ */
|
|
62
|
+
children: /* @__PURE__ */ u("p", {
|
|
48
63
|
className: "text-sm text-text-secondary",
|
|
49
64
|
children: "This widget type renders from its data and template, so there is nothing to style here."
|
|
50
65
|
})
|
|
51
66
|
});
|
|
52
67
|
});
|
|
53
68
|
//#endregion
|
|
54
|
-
export {
|
|
69
|
+
export { m as AppearanceSection };
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useBigConsole as e } from "../../context/BigConsoleContext.js";
|
|
2
|
+
import "../../context/index.js";
|
|
3
|
+
import { Section as t, SectionStack as n } from "../common/Section.js";
|
|
2
4
|
import "../common/index.js";
|
|
3
|
-
import
|
|
5
|
+
import r from "../../hooks/useExportDashboard.js";
|
|
4
6
|
import "../../hooks/index.js";
|
|
5
|
-
import { nativeCopyText as
|
|
6
|
-
import { memo as
|
|
7
|
-
import { Check as
|
|
8
|
-
import { ResponsiveDialog as
|
|
9
|
-
import { Fragment as
|
|
7
|
+
import { nativeCopyText as i } from "../../../utils/nativeBridge.js";
|
|
8
|
+
import { memo as a, useCallback as o, useEffect as s, useState as c } from "react";
|
|
9
|
+
import { Check as l, Copy as u, Download as d, FileJson as f } from "lucide-react";
|
|
10
|
+
import { ResponsiveDialog as p, ResponsiveDialogContent as m, ResponsiveDialogDescription as h, ResponsiveDialogTitle as g, Spinner as _ } from "@burdenoff/fe-libs/ui";
|
|
11
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
10
12
|
//#region src/bigconsole/components/dashboard/ExportDashboardDialog.tsx
|
|
11
|
-
var
|
|
13
|
+
var x = {
|
|
12
14
|
dialogContent: {
|
|
13
15
|
maxWidth: "640px",
|
|
14
16
|
width: "95vw",
|
|
@@ -168,15 +170,15 @@ var b = {
|
|
|
168
170
|
opacity: .5,
|
|
169
171
|
cursor: "not-allowed"
|
|
170
172
|
}
|
|
171
|
-
},
|
|
172
|
-
return /* @__PURE__ */
|
|
173
|
+
}, S = a(function({ checked: e, onChange: t, disabled: n, label: r, description: i }) {
|
|
174
|
+
return /* @__PURE__ */ b("label", {
|
|
173
175
|
style: {
|
|
174
|
-
...
|
|
175
|
-
...e ?
|
|
176
|
+
...x.optionItem,
|
|
177
|
+
...e ? x.optionItemActive : {},
|
|
176
178
|
opacity: n ? .6 : 1,
|
|
177
179
|
cursor: n ? "not-allowed" : "pointer"
|
|
178
180
|
},
|
|
179
|
-
children: [/* @__PURE__ */
|
|
181
|
+
children: [/* @__PURE__ */ y("input", {
|
|
180
182
|
type: "checkbox",
|
|
181
183
|
checked: e,
|
|
182
184
|
onChange: (e) => t(e.target.checked),
|
|
@@ -188,204 +190,204 @@ var b = {
|
|
|
188
190
|
flexShrink: 0,
|
|
189
191
|
accentColor: "var(--color-action-primary-bg)"
|
|
190
192
|
}
|
|
191
|
-
}), /* @__PURE__ */
|
|
192
|
-
style:
|
|
193
|
-
children: [/* @__PURE__ */
|
|
193
|
+
}), /* @__PURE__ */ b("span", {
|
|
194
|
+
style: x.optionText,
|
|
195
|
+
children: [/* @__PURE__ */ y("span", {
|
|
194
196
|
className: "block",
|
|
195
|
-
style:
|
|
197
|
+
style: x.optionLabel,
|
|
196
198
|
children: r
|
|
197
|
-
}), /* @__PURE__ */
|
|
199
|
+
}), /* @__PURE__ */ y("span", {
|
|
198
200
|
className: "block",
|
|
199
|
-
style:
|
|
201
|
+
style: x.optionDescription,
|
|
200
202
|
children: i
|
|
201
203
|
})]
|
|
202
204
|
})]
|
|
203
205
|
});
|
|
204
|
-
}),
|
|
205
|
-
let [
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}, [
|
|
209
|
-
if (!
|
|
206
|
+
}), C = a(function({ isOpen: a, dashboardId: C, dashboardName: w, onClose: T, onSuccess: E }) {
|
|
207
|
+
let [D, O] = c(!1), [k, A] = c(!1), [j, M] = c(!0), [N, P] = c(null), [F, I] = c(null), { loading: L, error: R, downloadDashboard: z, clearError: B } = r(), { currentUser: V, workspaceId: H } = e(), { loading: U, error: W, exportDashboard: G } = r(), K = `${V?.id ?? ""}|${H ?? ""}|${C}|${D}|${k}|${j}`, q = N?.key === K ? N.json : null, J = F === K;
|
|
208
|
+
s(() => {
|
|
209
|
+
a && (O(!1), A(!1), M(!0), B());
|
|
210
|
+
}, [a, B]), s(() => {
|
|
211
|
+
if (!a || !C) return;
|
|
210
212
|
let e = !1;
|
|
211
|
-
return
|
|
212
|
-
includeDataSourceRefs:
|
|
213
|
-
includeWebhookMappings:
|
|
214
|
-
prettyPrint:
|
|
213
|
+
return G(C, {
|
|
214
|
+
includeDataSourceRefs: D,
|
|
215
|
+
includeWebhookMappings: k,
|
|
216
|
+
prettyPrint: j
|
|
215
217
|
}).then((t) => {
|
|
216
|
-
e ||
|
|
217
|
-
key:
|
|
218
|
+
e || P({
|
|
219
|
+
key: K,
|
|
218
220
|
json: t
|
|
219
221
|
});
|
|
220
222
|
}), () => {
|
|
221
223
|
e = !0;
|
|
222
224
|
};
|
|
223
225
|
}, [
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
226
|
+
a,
|
|
227
|
+
C,
|
|
228
|
+
D,
|
|
229
|
+
k,
|
|
230
|
+
j,
|
|
231
|
+
K,
|
|
232
|
+
G
|
|
231
233
|
]);
|
|
232
|
-
let
|
|
233
|
-
|
|
234
|
-
}, [
|
|
235
|
-
!
|
|
236
|
-
includeDataSourceRefs:
|
|
237
|
-
includeWebhookMappings:
|
|
238
|
-
prettyPrint:
|
|
239
|
-
preparedContent:
|
|
240
|
-
}) && (
|
|
234
|
+
let Y = o(async () => {
|
|
235
|
+
q && await i(q) && (I(K), window.setTimeout(() => I(null), 2e3));
|
|
236
|
+
}, [q, K]), X = o(async () => {
|
|
237
|
+
!C || !q || U || await z(C, w, {
|
|
238
|
+
includeDataSourceRefs: D,
|
|
239
|
+
includeWebhookMappings: k,
|
|
240
|
+
prettyPrint: j,
|
|
241
|
+
preparedContent: q
|
|
242
|
+
}) && (E?.(), T());
|
|
241
243
|
}, [
|
|
242
|
-
S,
|
|
243
244
|
C,
|
|
245
|
+
w,
|
|
246
|
+
D,
|
|
247
|
+
k,
|
|
248
|
+
j,
|
|
249
|
+
z,
|
|
250
|
+
q,
|
|
251
|
+
U,
|
|
244
252
|
E,
|
|
245
|
-
|
|
246
|
-
A,
|
|
247
|
-
R,
|
|
248
|
-
W,
|
|
249
|
-
B,
|
|
250
|
-
T,
|
|
251
|
-
w
|
|
253
|
+
T
|
|
252
254
|
]);
|
|
253
|
-
return
|
|
254
|
-
open:
|
|
255
|
-
onOpenChange: (e) => !e && !
|
|
256
|
-
children: /* @__PURE__ */
|
|
257
|
-
style:
|
|
255
|
+
return C ? /* @__PURE__ */ y(p, {
|
|
256
|
+
open: a,
|
|
257
|
+
onOpenChange: (e) => !e && !L && T(),
|
|
258
|
+
children: /* @__PURE__ */ b(m, {
|
|
259
|
+
style: x.dialogContent,
|
|
258
260
|
children: [
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
style:
|
|
261
|
-
children: [/* @__PURE__ */
|
|
262
|
-
style:
|
|
263
|
-
children: /* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ b("div", {
|
|
262
|
+
style: x.header,
|
|
263
|
+
children: [/* @__PURE__ */ y("div", {
|
|
264
|
+
style: x.iconWrapper,
|
|
265
|
+
children: /* @__PURE__ */ y(f, { style: {
|
|
264
266
|
width: "22px",
|
|
265
267
|
height: "22px"
|
|
266
268
|
} })
|
|
267
|
-
}), /* @__PURE__ */
|
|
268
|
-
style:
|
|
269
|
-
children: [/* @__PURE__ */
|
|
269
|
+
}), /* @__PURE__ */ b("div", {
|
|
270
|
+
style: x.headerText,
|
|
271
|
+
children: [/* @__PURE__ */ y(g, {
|
|
270
272
|
asChild: !0,
|
|
271
|
-
children: /* @__PURE__ */
|
|
272
|
-
style:
|
|
273
|
+
children: /* @__PURE__ */ y("h2", {
|
|
274
|
+
style: x.title,
|
|
273
275
|
children: "Export Dashboard"
|
|
274
276
|
})
|
|
275
|
-
}), /* @__PURE__ */
|
|
277
|
+
}), /* @__PURE__ */ y(h, {
|
|
276
278
|
asChild: !0,
|
|
277
|
-
children: /* @__PURE__ */
|
|
278
|
-
style:
|
|
279
|
+
children: /* @__PURE__ */ y("p", {
|
|
280
|
+
style: x.description,
|
|
279
281
|
children: "Export your dashboard configuration to a JSON file."
|
|
280
282
|
})
|
|
281
283
|
})]
|
|
282
284
|
})]
|
|
283
285
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
style:
|
|
286
|
-
children: /* @__PURE__ */
|
|
287
|
-
|
|
286
|
+
/* @__PURE__ */ y("div", {
|
|
287
|
+
style: x.content,
|
|
288
|
+
children: /* @__PURE__ */ b(n, { children: [
|
|
289
|
+
w && /* @__PURE__ */ y(t, {
|
|
288
290
|
headingLevel: 3,
|
|
289
291
|
emphasis: "muted",
|
|
290
292
|
padding: "compact",
|
|
291
293
|
title: "Exporting",
|
|
292
|
-
description:
|
|
294
|
+
description: w,
|
|
293
295
|
"data-testid": "export-target"
|
|
294
296
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ b(t, {
|
|
296
298
|
headingLevel: 3,
|
|
297
299
|
title: "Export options",
|
|
298
300
|
description: "What to include in the JSON file.",
|
|
299
301
|
"data-testid": "export-options",
|
|
300
302
|
bodyClassName: "flex flex-col gap-form-gap",
|
|
301
303
|
children: [
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
checked:
|
|
304
|
-
onChange:
|
|
304
|
+
/* @__PURE__ */ y(S, {
|
|
305
|
+
checked: D,
|
|
306
|
+
onChange: O,
|
|
305
307
|
disabled: !0,
|
|
306
308
|
label: "Include Data Source References",
|
|
307
309
|
description: "Not available for exports from this session."
|
|
308
310
|
}),
|
|
309
|
-
/* @__PURE__ */
|
|
310
|
-
checked:
|
|
311
|
-
onChange:
|
|
311
|
+
/* @__PURE__ */ y(S, {
|
|
312
|
+
checked: k,
|
|
313
|
+
onChange: A,
|
|
312
314
|
disabled: !0,
|
|
313
315
|
label: "Include Webhook Mappings",
|
|
314
316
|
description: "Not available for exports from this session."
|
|
315
317
|
}),
|
|
316
|
-
/* @__PURE__ */
|
|
317
|
-
checked:
|
|
318
|
-
onChange:
|
|
319
|
-
disabled:
|
|
318
|
+
/* @__PURE__ */ y(S, {
|
|
319
|
+
checked: j,
|
|
320
|
+
onChange: M,
|
|
321
|
+
disabled: L,
|
|
320
322
|
label: "Format JSON (Pretty Print)",
|
|
321
323
|
description: "Makes the export file human-readable (larger file size)"
|
|
322
324
|
})
|
|
323
325
|
]
|
|
324
326
|
}),
|
|
325
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ b(t, {
|
|
326
328
|
headingLevel: 3,
|
|
327
329
|
title: "Preview",
|
|
328
330
|
description: "The exact JSON the download writes. Credentials are never serialized — only data source references.",
|
|
329
331
|
"data-testid": "export-preview",
|
|
330
|
-
actions:
|
|
332
|
+
actions: q ? /* @__PURE__ */ b("button", {
|
|
331
333
|
type: "button",
|
|
332
|
-
style:
|
|
333
|
-
onClick:
|
|
334
|
-
children: [
|
|
334
|
+
style: x.previewAction,
|
|
335
|
+
onClick: Y,
|
|
336
|
+
children: [y(J ? l : u, {
|
|
335
337
|
style: {
|
|
336
338
|
width: "14px",
|
|
337
339
|
height: "14px"
|
|
338
340
|
},
|
|
339
341
|
"aria-hidden": "true"
|
|
340
|
-
}),
|
|
342
|
+
}), J ? "Copied" : "Copy"]
|
|
341
343
|
}) : void 0,
|
|
342
344
|
children: [
|
|
343
|
-
|
|
345
|
+
U && !q && /* @__PURE__ */ b("div", {
|
|
344
346
|
style: {
|
|
345
347
|
display: "flex",
|
|
346
348
|
alignItems: "center",
|
|
347
349
|
gap: "8px",
|
|
348
350
|
color: "var(--color-text-secondary)"
|
|
349
351
|
},
|
|
350
|
-
children: [/* @__PURE__ */
|
|
352
|
+
children: [/* @__PURE__ */ y(_, { style: {
|
|
351
353
|
width: "16px",
|
|
352
354
|
height: "16px"
|
|
353
|
-
} }), /* @__PURE__ */
|
|
355
|
+
} }), /* @__PURE__ */ y("span", {
|
|
354
356
|
style: { fontSize: "13px" },
|
|
355
357
|
children: "Building the export…"
|
|
356
358
|
})]
|
|
357
359
|
}),
|
|
358
|
-
!
|
|
360
|
+
!U && W && /* @__PURE__ */ b("p", {
|
|
359
361
|
style: {
|
|
360
362
|
margin: 0,
|
|
361
363
|
fontSize: "13px",
|
|
362
364
|
color: "var(--color-status-error-text)"
|
|
363
365
|
},
|
|
364
|
-
children: ["Preview unavailable: ",
|
|
366
|
+
children: ["Preview unavailable: ", W.message]
|
|
365
367
|
}),
|
|
366
|
-
|
|
367
|
-
style:
|
|
368
|
+
q && /* @__PURE__ */ y("pre", {
|
|
369
|
+
style: x.previewBlock,
|
|
368
370
|
"data-testid": "export-preview-json",
|
|
369
|
-
children:
|
|
371
|
+
children: q
|
|
370
372
|
})
|
|
371
373
|
]
|
|
372
374
|
}),
|
|
373
|
-
|
|
375
|
+
R && /* @__PURE__ */ y(t, {
|
|
374
376
|
headingLevel: 3,
|
|
375
377
|
tone: "danger",
|
|
376
378
|
padding: "compact",
|
|
377
379
|
title: "Export failed",
|
|
378
|
-
description:
|
|
380
|
+
description: R.message,
|
|
379
381
|
"data-testid": "export-error"
|
|
380
382
|
})
|
|
381
383
|
] })
|
|
382
384
|
}),
|
|
383
|
-
/* @__PURE__ */
|
|
384
|
-
style:
|
|
385
|
-
children: [/* @__PURE__ */
|
|
386
|
-
style:
|
|
387
|
-
onClick:
|
|
388
|
-
disabled:
|
|
385
|
+
/* @__PURE__ */ b("div", {
|
|
386
|
+
style: x.footer,
|
|
387
|
+
children: [/* @__PURE__ */ y("button", {
|
|
388
|
+
style: x.cancelButton,
|
|
389
|
+
onClick: T,
|
|
390
|
+
disabled: L,
|
|
389
391
|
onMouseEnter: (e) => {
|
|
390
392
|
e.currentTarget.style.backgroundColor = "var(--color-bg-muted)";
|
|
391
393
|
},
|
|
@@ -393,23 +395,23 @@ var b = {
|
|
|
393
395
|
e.currentTarget.style.backgroundColor = "var(--color-bg-surface)";
|
|
394
396
|
},
|
|
395
397
|
children: "Cancel"
|
|
396
|
-
}), /* @__PURE__ */
|
|
398
|
+
}), /* @__PURE__ */ y("button", {
|
|
397
399
|
style: {
|
|
398
|
-
...
|
|
399
|
-
...
|
|
400
|
+
...x.exportButton,
|
|
401
|
+
...L || U || !q ? x.exportButtonDisabled : {}
|
|
400
402
|
},
|
|
401
|
-
onClick:
|
|
402
|
-
disabled:
|
|
403
|
+
onClick: X,
|
|
404
|
+
disabled: L || U || !q,
|
|
403
405
|
onMouseEnter: (e) => {
|
|
404
|
-
|
|
406
|
+
L || (e.currentTarget.style.opacity = "0.9");
|
|
405
407
|
},
|
|
406
408
|
onMouseLeave: (e) => {
|
|
407
|
-
|
|
409
|
+
L || (e.currentTarget.style.opacity = "1");
|
|
408
410
|
},
|
|
409
|
-
children:
|
|
411
|
+
children: L ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(_, { style: {
|
|
410
412
|
width: "16px",
|
|
411
413
|
height: "16px"
|
|
412
|
-
} }), "Exporting..."] }) : /* @__PURE__ */
|
|
414
|
+
} }), "Exporting..."] }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(d, { style: {
|
|
413
415
|
width: "16px",
|
|
414
416
|
height: "16px"
|
|
415
417
|
} }), "Download Export"] })
|
|
@@ -420,4 +422,4 @@ var b = {
|
|
|
420
422
|
}) : null;
|
|
421
423
|
});
|
|
422
424
|
//#endregion
|
|
423
|
-
export {
|
|
425
|
+
export { C as default };
|