@burdenoff/microfe-bigconsole 2026.1011.10 → 2026.1012.1
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/README.md +19 -0
- package/dist/bigconsole/BigConsoleRoot.js +88 -82
- package/dist/bigconsole/BigConsoleRoutes.js +163 -136
- package/dist/bigconsole/assistant/assistantProduct.js +1 -4
- package/dist/bigconsole/assistant/pageContext.d.ts +0 -14
- package/dist/bigconsole/assistant/pageContext.js +1 -6
- package/dist/bigconsole/assistant/recordAdapters.js +26 -27
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
- package/dist/bigconsole/components/common/index.d.ts +0 -1
- package/dist/bigconsole/components/common/index.js +0 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +58 -57
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +110 -110
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +164 -173
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
- package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +165 -163
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkCard.js +50 -51
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +76 -77
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -96
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +499 -507
- package/dist/bigconsole/components/widgets/WidgetRegistry.js +0 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
- package/dist/bigconsole/components/widgets/custom/CustomWidget.js +73 -131
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
- package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +28 -9
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +115 -42
- package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.d.ts +20 -0
- package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.js +10 -0
- package/dist/bigconsole/components/widgets/iframe-widget/index.d.ts +2 -1
- package/dist/bigconsole/components/widgets/iframe-widget/index.js +3 -2
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
- package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
- package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +110 -27
- package/dist/bigconsole/components/widgets/text-widget/textData.d.ts +6 -0
- package/dist/bigconsole/components/widgets/text-widget/textData.js +17 -14
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
- package/dist/bigconsole/context/BigConsoleContext.d.ts +10 -0
- package/dist/bigconsole/context/BigConsoleContext.js +47 -30
- package/dist/bigconsole/context/index.d.ts +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +58 -49
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +74 -72
- package/dist/bigconsole/customWidget/proposalPreview.d.ts +5 -0
- package/dist/bigconsole/customWidget/proposalPreview.js +31 -0
- package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +0 -23
- package/dist/bigconsole/hooks/useDataSinkAlerts.js +113 -138
- package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +7 -0
- package/dist/bigconsole/hooks/useDataSinkOperations.js +109 -98
- package/dist/bigconsole/hooks/useDataSinkSubscription.js +0 -1
- package/dist/bigconsole/hooks/useDrilldown.js +68 -67
- package/dist/bigconsole/hooks/useExportDataSink.js +1 -1
- package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
- package/dist/bigconsole/hooks/useImportDataSink.js +102 -90
- package/dist/bigconsole/pages/AdminPage.js +130 -130
- package/dist/bigconsole/pages/DashboardBuilderPage.js +60 -72
- package/dist/bigconsole/pages/DashboardViewPage.js +235 -258
- package/dist/bigconsole/pages/DashboardsPage.js +221 -269
- package/dist/bigconsole/pages/DataParsersPage.js +157 -180
- package/dist/bigconsole/pages/DataSinkAlertsPage.js +55 -62
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +318 -295
- package/dist/bigconsole/pages/DataSinkViewPage.js +256 -255
- package/dist/bigconsole/pages/DataSinksPage.js +216 -251
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +265 -279
- package/dist/bigconsole/pages/OverviewPage.js +47 -47
- package/dist/bigconsole/pages/ParserBuilderPage.js +213 -229
- package/dist/bigconsole/pages/ParserViewPage.js +97 -97
- package/dist/bigconsole/pages/PipelineBuilderPage.js +214 -256
- package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
- package/dist/bigconsole/pages/PipelinesPage.js +88 -107
- package/dist/bigconsole/pages/SettingsPage.js +173 -179
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +235 -122
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +6 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +151 -151
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/renderers/adapters/adaptiveCardContent.d.ts +29 -0
- package/dist/bigconsole/renderers/adapters/adaptiveCardContent.js +51 -0
- package/dist/bigconsole/store/widgetStore.d.ts +0 -12
- package/dist/bigconsole/store/widgetStore.js +1 -3
- package/dist/bigconsole/types/index.d.ts +17 -2
- package/dist/bigconsole/utils/backendError.d.ts +0 -18
- package/dist/bigconsole/utils/dataSinkPayload.d.ts +48 -0
- package/dist/bigconsole/utils/dataSinkPayload.js +38 -0
- package/dist/bigconsole/utils/index.d.ts +2 -0
- package/dist/bigconsole/utils/safeUrl.d.ts +79 -0
- package/dist/bigconsole/utils/safeUrl.js +93 -0
- package/dist/bigconsole/utils/sanitizeHtml.d.ts +16 -0
- package/dist/bigconsole/utils/sanitizeHtml.js +67 -0
- package/dist/bigconsole/workflowOpen.js +14 -15
- package/dist/generated/wspace-operations.d.ts +138 -8
- package/dist/generated/wspace-operations.js +281 -240
- package/dist/node_modules/dompurify/dist/purify.es.js +800 -0
- package/package.json +9 -5
- package/dist/bigconsole/assistant/displayCopy.d.ts +0 -32
- package/dist/bigconsole/assistant/pageControls.d.ts +0 -81
- package/dist/bigconsole/assistant/pageControls.js +0 -169
- package/dist/bigconsole/assistant/previewControl.d.ts +0 -16
- package/dist/bigconsole/assistant/previewControl.js +0 -10
- package/dist/bigconsole/assistant/usePreviewControl.d.ts +0 -2
- package/dist/bigconsole/assistant/usePreviewControl.js +0 -20
- package/dist/bigconsole/components/common/SortBySelect.d.ts +0 -11
- package/dist/bigconsole/components/common/SortBySelect.js +0 -29
- package/dist/bigconsole/constants/backendErrors.js +0 -94
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +0 -14
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +0 -32
- package/dist/bigconsole/utils/backendError.js +0 -42
- package/dist/bigconsole/utils/dashboardList.d.ts +0 -28
- package/dist/bigconsole/utils/dashboardList.js +0 -15
- package/dist/bigconsole/utils/dataSinkList.d.ts +0 -15
- package/dist/bigconsole/utils/dataSinkList.js +0 -15
- package/dist/bigconsole/utils/formDirty.d.ts +0 -82
- package/dist/bigconsole/utils/formDirty.js +0 -21
- package/dist/bigconsole/utils/insightsDraft.d.ts +0 -29
- package/dist/bigconsole/utils/insightsDraft.js +0 -8
- package/dist/bigconsole/utils/layoutBaseline.d.ts +0 -130
- package/dist/bigconsole/utils/layoutBaseline.js +0 -96
- package/dist/bigconsole/utils/listSort.d.ts +0 -80
- package/dist/bigconsole/utils/listSort.js +0 -85
- package/dist/bigconsole/utils/widgetFormDirty.d.ts +0 -16
- package/dist/bigconsole/utils/widgetFormDirty.js +0 -13
package/README.md
CHANGED
|
@@ -31,6 +31,25 @@ import { WorkflowsRoot } from '@burdenoff/micro-fe/workflows';
|
|
|
31
31
|
/>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
+
## Widget content
|
|
35
|
+
|
|
36
|
+
Widget configuration and parser output are rendered as data:
|
|
37
|
+
|
|
38
|
+
- **Text widgets** render markdown through the shared fe-libs `Markdown`
|
|
39
|
+
component (raw HTML inside markdown is not rendered, images show their alt
|
|
40
|
+
text). The `html` format is available only when the widget is configured for
|
|
41
|
+
it, and the markup is sanitised with DOMPurify before it is rendered.
|
|
42
|
+
- **Links** in text, custom, Adaptive Card and Block Kit content are limited to
|
|
43
|
+
`https:`, `http:` and `mailto:` URLs; text and custom-widget content may also
|
|
44
|
+
link to in-app paths and fragments.
|
|
45
|
+
- **Iframe and custom-widget embeds** accept absolute `https:` URLs on another
|
|
46
|
+
origin only, and always use the same sandbox
|
|
47
|
+
(`allow-scripts allow-popups allow-forms`) with
|
|
48
|
+
`referrerpolicy="no-referrer"`. Hosts can restrict the embeddable sites with
|
|
49
|
+
the `iframeAllowedOrigins` root prop, a list of exact https origins such as
|
|
50
|
+
`['https://reports.example.com']`. An empty or missing list allows any https
|
|
51
|
+
origin.
|
|
52
|
+
|
|
34
53
|
## Development
|
|
35
54
|
|
|
36
55
|
```bash
|
|
@@ -16,67 +16,71 @@ import { useSearchParams as v } from "react-router";
|
|
|
16
16
|
import { ErrorBoundary as y } from "@burdenoff/fe-libs/shared/components";
|
|
17
17
|
import { FeatureFlagProvider as b } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
18
18
|
import { PermissionProvider as x } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
19
|
-
import { BarChart3 as S, Boxes as C, Database as w, LayoutDashboard as T, Lightbulb as E, Settings as
|
|
20
|
-
import { jsx as
|
|
21
|
-
import {
|
|
22
|
-
import { useGatewayClient as
|
|
19
|
+
import { BarChart3 as S, Boxes as C, Database as w, LayoutDashboard as T, Lightbulb as E, Settings as D } from "lucide-react";
|
|
20
|
+
import { jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
21
|
+
import { setFluidGridsClient as A, setFluidGridsConfig as j, setGlobalStoreClient as M } from "@burdenoff/fluidgrids-fe-sdk";
|
|
22
|
+
import { useGatewayClient as N } from "@burdenoff/fe-libs/shared/graphql";
|
|
23
23
|
//#region src/bigconsole/BigConsoleRoot.tsx
|
|
24
|
-
var
|
|
25
|
-
let { registerNavItems: i, registerFooterItems: a, basePath:
|
|
24
|
+
var P = i, F = r, I = a, L = /* @__PURE__ */ new Set(), R = (r) => {
|
|
25
|
+
let { registerNavItems: i, registerFooterItems: a, basePath: R = "/bigconsole", navigate: z } = r, B = r.dashboardOnly ?? !1, V = N("workspace"), H = N("global"), [U, W] = _(B), [G, K] = _(null), q = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
|
|
26
26
|
m(() => {
|
|
27
27
|
if (i) return i({
|
|
28
28
|
id: "bigconsole",
|
|
29
29
|
label: "Analytics",
|
|
30
|
-
path:
|
|
31
|
-
icon: /* @__PURE__ */
|
|
30
|
+
path: R,
|
|
31
|
+
icon: /* @__PURE__ */ O(S, { size: 20 }),
|
|
32
32
|
order: 15,
|
|
33
33
|
group: "bigconsole",
|
|
34
34
|
children: [
|
|
35
35
|
{
|
|
36
36
|
id: "bigconsole-home",
|
|
37
37
|
label: "Overview",
|
|
38
|
-
path:
|
|
39
|
-
icon: /* @__PURE__ */
|
|
38
|
+
path: R,
|
|
39
|
+
icon: /* @__PURE__ */ O(S, { size: 16 }),
|
|
40
40
|
order: 10
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
id: "bigconsole-dashboards",
|
|
44
44
|
label: "Dashboards",
|
|
45
|
-
path:
|
|
46
|
-
icon: /* @__PURE__ */
|
|
45
|
+
path: q(R, "dashboards"),
|
|
46
|
+
icon: /* @__PURE__ */ O(T, { size: 16 }),
|
|
47
47
|
order: 20
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
id: "bigconsole-datasources",
|
|
51
51
|
label: "Data Sources",
|
|
52
|
-
path:
|
|
53
|
-
icon: /* @__PURE__ */
|
|
52
|
+
path: q(R, "datasources"),
|
|
53
|
+
icon: /* @__PURE__ */ O(w, { size: 16 }),
|
|
54
54
|
order: 30
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
id: "bigconsole-insights",
|
|
58
58
|
label: "AI Insights",
|
|
59
|
-
path:
|
|
60
|
-
icon: /* @__PURE__ */
|
|
59
|
+
path: q(R, "insights"),
|
|
60
|
+
icon: /* @__PURE__ */ O(E, { size: 16 }),
|
|
61
61
|
order: 40
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
id: "bigconsole-widgets",
|
|
65
65
|
label: "Widget Demo",
|
|
66
|
-
path:
|
|
67
|
-
icon: /* @__PURE__ */
|
|
66
|
+
path: q(R, "widgets/demo"),
|
|
67
|
+
icon: /* @__PURE__ */ O(C, { size: 16 }),
|
|
68
68
|
order: 50
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
id: "bigconsole-settings",
|
|
72
72
|
label: "Settings",
|
|
73
|
-
path:
|
|
74
|
-
icon: /* @__PURE__ */ D
|
|
73
|
+
path: q(R, "settings"),
|
|
74
|
+
icon: /* @__PURE__ */ O(D, { size: 16 }),
|
|
75
75
|
order: 60
|
|
76
76
|
}
|
|
77
|
-
]
|
|
77
|
+
].filter((e) => !B || e.id === "bigconsole-dashboards")
|
|
78
78
|
});
|
|
79
|
-
}, [
|
|
79
|
+
}, [
|
|
80
|
+
i,
|
|
81
|
+
R,
|
|
82
|
+
B
|
|
83
|
+
]), m(() => {
|
|
80
84
|
if (a) return a([{
|
|
81
85
|
id: "bigconsole-status",
|
|
82
86
|
label: "Analytics Ready",
|
|
@@ -84,51 +88,55 @@ var I = i, L = r, R = a, z = /* @__PURE__ */ new Set(), B = (r) => {
|
|
|
84
88
|
order: 15,
|
|
85
89
|
section: "left"
|
|
86
90
|
}]);
|
|
87
|
-
}, [a]), m(() =>
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
+
}, [a]), m(() => {
|
|
92
|
+
B || V && H && (A(V), M(H), W(!0));
|
|
93
|
+
}, [
|
|
94
|
+
V,
|
|
95
|
+
H,
|
|
96
|
+
B
|
|
97
|
+
]), m(() => {
|
|
98
|
+
if (U) return;
|
|
91
99
|
let e = setTimeout(() => {
|
|
92
|
-
|
|
100
|
+
U || K("BigConsole could not connect to the gateway. Please refresh the page or check your configuration.");
|
|
93
101
|
}, 1e4);
|
|
94
102
|
return () => clearTimeout(e);
|
|
95
|
-
}, [
|
|
96
|
-
let
|
|
103
|
+
}, [U]);
|
|
104
|
+
let J = p(async (e) => {
|
|
97
105
|
if (e.operation === "created") {
|
|
98
|
-
if (!
|
|
106
|
+
if (!V) {
|
|
99
107
|
console.warn("[BigConsole] onWorkflowSaved: workspace client not ready");
|
|
100
108
|
return;
|
|
101
109
|
}
|
|
102
|
-
if (!
|
|
103
|
-
|
|
110
|
+
if (!L.has(e.workflowKey)) {
|
|
111
|
+
L.add(e.workflowKey);
|
|
104
112
|
try {
|
|
105
|
-
if ((await
|
|
106
|
-
query:
|
|
113
|
+
if ((await V.query({
|
|
114
|
+
query: P,
|
|
107
115
|
variables: { key: e.workflowKey },
|
|
108
116
|
fetchPolicy: "network-only"
|
|
109
117
|
})).data?.workflowByKey) return;
|
|
110
|
-
await
|
|
111
|
-
mutation:
|
|
118
|
+
await V.mutate({
|
|
119
|
+
mutation: F,
|
|
112
120
|
variables: { input: {
|
|
113
121
|
name: e.name,
|
|
114
122
|
key: e.workflowKey,
|
|
115
123
|
description: e.description,
|
|
116
124
|
externalWorkflowId: e.dbId
|
|
117
125
|
} },
|
|
118
|
-
refetchQueries: [{ query:
|
|
126
|
+
refetchQueries: [{ query: I }]
|
|
119
127
|
});
|
|
120
128
|
} catch (e) {
|
|
121
129
|
console.warn("[BigConsole] onWorkflowSaved: failed to create record:", e);
|
|
122
130
|
} finally {
|
|
123
|
-
|
|
131
|
+
L.delete(e.workflowKey);
|
|
124
132
|
}
|
|
125
133
|
}
|
|
126
134
|
}
|
|
127
|
-
}, [
|
|
135
|
+
}, [V]), Y = g(J);
|
|
128
136
|
h(() => {
|
|
129
|
-
|
|
130
|
-
}, [
|
|
131
|
-
if (r.apiGatewayUrl) {
|
|
137
|
+
Y.current = J;
|
|
138
|
+
}, [J]), m(() => {
|
|
139
|
+
if (!B && r.apiGatewayUrl) {
|
|
132
140
|
let e = r.apiGatewayUrl.endsWith("/") ? r.apiGatewayUrl.slice(0, -1) : r.apiGatewayUrl;
|
|
133
141
|
console.log("[BigConsole] Setting FluidGrids config", {
|
|
134
142
|
apiGatewayUrl: e,
|
|
@@ -136,83 +144,81 @@ var I = i, L = r, R = a, z = /* @__PURE__ */ new Set(), B = (r) => {
|
|
|
136
144
|
tenantId: r.tenantId,
|
|
137
145
|
productId: r.productId,
|
|
138
146
|
productName: r.productName
|
|
139
|
-
}),
|
|
147
|
+
}), j({
|
|
140
148
|
apiGatewayUrl: e,
|
|
141
149
|
authToken: r.authToken,
|
|
142
150
|
workspaceId: r.workspaceId ?? "",
|
|
143
151
|
tenantId: r.tenantId,
|
|
144
152
|
productId: r.productId ?? "bigconsole",
|
|
145
153
|
productName: r.productName ?? "BigConsole",
|
|
146
|
-
onWorkflowSaved: (e) =>
|
|
154
|
+
onWorkflowSaved: (e) => Y.current(e)
|
|
147
155
|
});
|
|
148
156
|
}
|
|
149
|
-
return () => {
|
|
150
|
-
A();
|
|
151
|
-
};
|
|
152
157
|
}, [
|
|
153
158
|
r.apiGatewayUrl,
|
|
154
159
|
r.authToken,
|
|
155
160
|
r.workspaceId,
|
|
156
161
|
r.tenantId,
|
|
157
162
|
r.productId,
|
|
158
|
-
r.productName
|
|
163
|
+
r.productName,
|
|
164
|
+
B
|
|
159
165
|
]);
|
|
160
|
-
let [
|
|
166
|
+
let [X, Z] = v(), Q = e((e) => e.isOpen), $ = e((e) => e.closeModal);
|
|
161
167
|
l();
|
|
162
|
-
let
|
|
168
|
+
let ee = p(() => {
|
|
163
169
|
$();
|
|
164
|
-
let e = new URLSearchParams(
|
|
170
|
+
let e = new URLSearchParams(X);
|
|
165
171
|
Array.from(e.keys()).forEach((t) => {
|
|
166
172
|
(t.startsWith("filter_") || t.startsWith("ctx_")) && e.delete(t);
|
|
167
|
-
}),
|
|
173
|
+
}), Z(e, { replace: !0 }), document.activeElement instanceof HTMLElement && document.activeElement.blur();
|
|
168
174
|
}, [
|
|
169
175
|
$,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
]),
|
|
176
|
+
X,
|
|
177
|
+
Z
|
|
178
|
+
]), te = p((e) => {
|
|
173
179
|
let t = new URLSearchParams();
|
|
174
180
|
for (let e of [
|
|
175
181
|
"org",
|
|
176
182
|
"workspace",
|
|
177
183
|
"project"
|
|
178
184
|
]) {
|
|
179
|
-
let n =
|
|
185
|
+
let n = X.get(e);
|
|
180
186
|
n && t.set(e, n);
|
|
181
187
|
}
|
|
182
188
|
let n = t.toString(), r = n ? `${e}?${n}` : e;
|
|
183
|
-
if (
|
|
184
|
-
|
|
189
|
+
if (z) {
|
|
190
|
+
z(r);
|
|
185
191
|
return;
|
|
186
192
|
}
|
|
187
193
|
window.location.assign(r);
|
|
188
|
-
}, [
|
|
194
|
+
}, [z, X]), ne = p((e, t) => /* @__PURE__ */ O(u, {
|
|
189
195
|
dashboardId: e,
|
|
190
196
|
params: t
|
|
191
197
|
}), []);
|
|
192
|
-
return
|
|
193
|
-
fallback: /* @__PURE__ */
|
|
198
|
+
return U ? /* @__PURE__ */ O(y, {
|
|
199
|
+
fallback: /* @__PURE__ */ O("div", {
|
|
194
200
|
className: "p-6 text-center text-text-secondary",
|
|
195
201
|
children: "Something went wrong loading BigConsole. Please refresh the page."
|
|
196
202
|
}),
|
|
197
|
-
children: /* @__PURE__ */
|
|
203
|
+
children: /* @__PURE__ */ O(b, {
|
|
198
204
|
workspaceId: null,
|
|
199
205
|
gateway: "global",
|
|
200
206
|
defaultEnabled: !0,
|
|
201
|
-
children: /* @__PURE__ */
|
|
207
|
+
children: /* @__PURE__ */ O(x, {
|
|
202
208
|
scopeId: r.workspaceId ?? null,
|
|
203
209
|
gateway: "workspace",
|
|
204
|
-
children: /* @__PURE__ */
|
|
210
|
+
children: /* @__PURE__ */ O(s, {
|
|
205
211
|
props: r,
|
|
206
|
-
children: /* @__PURE__ */
|
|
207
|
-
onViewBilling:
|
|
208
|
-
children: /* @__PURE__ */
|
|
209
|
-
basePath:
|
|
210
|
-
children: /* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
|
|
214
|
-
onClose:
|
|
215
|
-
renderDashboard:
|
|
212
|
+
children: /* @__PURE__ */ O(c, {
|
|
213
|
+
onViewBilling: te,
|
|
214
|
+
children: /* @__PURE__ */ O(n, {
|
|
215
|
+
basePath: R,
|
|
216
|
+
children: /* @__PURE__ */ k(t, { children: [
|
|
217
|
+
!B && /* @__PURE__ */ O(d, {}),
|
|
218
|
+
/* @__PURE__ */ O(o, { ...r }),
|
|
219
|
+
Q && /* @__PURE__ */ O(f, {
|
|
220
|
+
onClose: ee,
|
|
221
|
+
renderDashboard: ne
|
|
216
222
|
})
|
|
217
223
|
] })
|
|
218
224
|
})
|
|
@@ -220,24 +226,24 @@ var I = i, L = r, R = a, z = /* @__PURE__ */ new Set(), B = (r) => {
|
|
|
220
226
|
})
|
|
221
227
|
})
|
|
222
228
|
})
|
|
223
|
-
}) :
|
|
229
|
+
}) : G ? /* @__PURE__ */ O("div", {
|
|
224
230
|
className: "flex h-full min-h-[200px] w-full items-center justify-center p-6",
|
|
225
|
-
children: /* @__PURE__ */
|
|
231
|
+
children: /* @__PURE__ */ k("div", {
|
|
226
232
|
className: "text-center",
|
|
227
|
-
children: [/* @__PURE__ */
|
|
233
|
+
children: [/* @__PURE__ */ O("p", {
|
|
228
234
|
className: "text-sm text-text-secondary mb-4",
|
|
229
|
-
children:
|
|
230
|
-
}), /* @__PURE__ */
|
|
235
|
+
children: G
|
|
236
|
+
}), /* @__PURE__ */ O("button", {
|
|
231
237
|
type: "button",
|
|
232
238
|
onClick: () => window.location.reload(),
|
|
233
239
|
className: "px-4 py-2 text-sm font-medium text-white bg-action-primary-bg hover:bg-action-primary-bg/90 rounded-md transition-colors",
|
|
234
240
|
children: "Reload Page"
|
|
235
241
|
})]
|
|
236
242
|
})
|
|
237
|
-
}) : /* @__PURE__ */
|
|
243
|
+
}) : /* @__PURE__ */ O("div", {
|
|
238
244
|
className: "flex h-full min-h-[200px] w-full items-center justify-center",
|
|
239
|
-
children: /* @__PURE__ */
|
|
245
|
+
children: /* @__PURE__ */ O("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-gray-300 border-t-blue-600" })
|
|
240
246
|
});
|
|
241
247
|
};
|
|
242
248
|
//#endregion
|
|
243
|
-
export {
|
|
249
|
+
export { R as BigConsoleRoot };
|