@burdenoff/microfe-bigconsole 2026.1123.7 → 2026.1124.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.
Files changed (88) hide show
  1. package/dist/bigconsole/asof/AsOfControl.js +2 -2
  2. package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
  3. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
  4. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
  5. package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
  6. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
  7. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
  8. package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
  9. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
  10. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
  11. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
  12. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
  13. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
  14. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
  15. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
  16. package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
  17. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
  18. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
  19. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
  20. package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
  21. package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
  22. package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
  23. package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
  24. package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
  25. package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
  26. package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
  27. package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
  28. package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
  29. package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
  30. package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
  31. package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
  32. package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
  33. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
  34. package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
  35. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
  36. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
  37. package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
  38. package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
  39. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
  40. package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
  41. package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
  42. package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
  43. package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
  44. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
  45. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
  46. package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
  47. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  48. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
  49. package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
  50. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
  51. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
  52. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
  53. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
  54. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
  55. package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
  56. package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
  57. package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
  58. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
  59. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
  60. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
  61. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
  62. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
  63. package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
  64. package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
  65. package/dist/bigconsole/pages/AdminPage.js +147 -146
  66. package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
  67. package/dist/bigconsole/pages/DashboardsPage.js +638 -855
  68. package/dist/bigconsole/pages/DataParsersPage.js +5 -0
  69. package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
  70. package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
  71. package/dist/bigconsole/pages/DataSinksPage.js +210 -186
  72. package/dist/bigconsole/pages/InsightsPage.js +386 -383
  73. package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
  74. package/dist/bigconsole/pages/ParserViewPage.js +2 -0
  75. package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
  76. package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
  77. package/dist/bigconsole/pages/PipelinesPage.js +198 -165
  78. package/dist/bigconsole/pages/SettingsPage.js +160 -160
  79. package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
  80. package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
  81. package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
  82. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
  83. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
  84. package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
  85. package/dist/bigconsole/utils/dashboardGallery.js +93 -0
  86. package/dist/bigconsole/utils/statusTone.d.ts +17 -0
  87. package/dist/bigconsole/utils/statusTone.js +44 -0
  88. package/package.json +4 -4
@@ -2,57 +2,58 @@ import e, { themeChoiceFromPolicy as t } from "../../../hooks/useDashboardEmbedP
2
2
  import { BIGCONSOLE_PERMISSIONS as n } from "../../../../constants/permissions.js";
3
3
  import { normalizeHttpsOrigin as r } from "../../../utils/safeUrl.js";
4
4
  import { useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
5
- import { usePermissions as ee } from "@burdenoff/fe-libs/shared/providers/shell";
6
- import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
5
+ import { usePermissions as c } from "@burdenoff/fe-libs/shared/providers/shell";
6
+ import { ThemedSelect as l } from "@burdenoff/fe-libs/ui";
7
+ import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
8
9
  // src/bigconsole/components/dashboard/ShareDialog/EmbedTab.tsx
9
- var te = [
10
+ var m = [
10
11
  "light",
11
12
  "dark",
12
13
  "auto"
13
14
  ];
14
- function f(e, t) {
15
+ function h(e, t) {
15
16
  return t === "light" ? e : e.replace(/(?<=\s)src="([^"]*)"/, (e, n) => {
16
17
  let r = n.indexOf("#"), i = r === -1 ? n : n.slice(0, r), a = r === -1 ? "" : n.slice(r);
17
18
  return `src="${i}${i.includes("?") ? "&" : "?"}theme=${t}${a}"`;
18
19
  });
19
20
  }
20
- function p({ dashboardId: p, colors: m }) {
21
- let { t: h } = c(), { policy: g, secret: _, loading: v, error: y, fetchPolicy: b, publishToWeb: x, applyPresentation: S, setAllowedOrigins: C, rotateKey: w, unpublish: T } = e(), { hasPermission: E } = ee(), D = E(n.DASHBOARD_MANAGE_EMBED), [O, k] = s(""), [A, j] = s([]), [M, N] = s(!1), [P, F] = s(!1), [I, L] = s("light"), [R, z] = s(!1), [B, V] = s(!1), [H, U] = s(null), W = o(null), G = o(null);
21
+ function g({ dashboardId: g, colors: _ }) {
22
+ let { t: v } = u(), { policy: y, secret: b, loading: x, error: S, fetchPolicy: C, publishToWeb: w, applyPresentation: ee, setAllowedOrigins: T, rotateKey: E, unpublish: D } = e(), { hasPermission: te } = c(), O = te(n.DASHBOARD_MANAGE_EMBED), [k, A] = s(""), [j, M] = s([]), [N, P] = s(!1), [F, I] = s(!1), [L, R] = s("light"), [z, B] = s(!1), [V, H] = s(!1), [U, W] = s(null), G = o(null), K = o(null);
22
23
  i(() => {
23
- p && b(p);
24
- }, [p, b]), i(() => {
25
- g && W.current !== g.id && (W.current = g.id, L(t(g.presentationTheme)), z(g.showDashboardTitle));
26
- }, [g]), i(() => () => {
27
- G.current && clearTimeout(G.current);
24
+ g && C(g);
25
+ }, [g, C]), i(() => {
26
+ y && G.current !== y.id && (G.current = y.id, R(t(y.presentationTheme)), B(y.showDashboardTitle));
27
+ }, [y]), i(() => () => {
28
+ K.current && clearTimeout(K.current);
28
29
  }, []);
29
- let K = g?.status === "ACTIVE", q = K ? g?.allowedParentOrigins ?? [] : A, J = a(() => _?.iframeSnippet ? f(_.iframeSnippet, I) : null, [_, I]), Y = () => {
30
- U(null);
31
- let e = r(O);
32
- e ? (q.includes(e) || (K && g ? C(g.id, [...q, e]) : j((t) => [...t, e])), k("")) : U(h("bigconsole.dashboards.embed.error.invalidOrigin", "Enter a valid https origin, e.g. https://example.com"));
33
- }, X = (e) => {
34
- K && g ? C(g.id, q.filter((t) => t !== e)) : j((t) => t.filter((t) => t !== e));
35
- }, Z = async () => {
36
- U(null), A.length === 0 ? U(h("bigconsole.dashboards.embed.error.noDomains", "Add at least one allowed website domain before publishing.")) : M ? await x(p, A, !0, {
37
- theme: I,
38
- showTitle: R
39
- }) : U(h("bigconsole.dashboards.embed.error.notAttested", "Please confirm this dashboard is safe to be public."));
30
+ let q = y?.status === "ACTIVE", J = q ? y?.allowedParentOrigins ?? [] : j, Y = a(() => b?.iframeSnippet ? h(b.iframeSnippet, L) : null, [b, L]), X = () => {
31
+ W(null);
32
+ let e = r(k);
33
+ e ? (J.includes(e) || (q && y ? T(y.id, [...J, e]) : M((t) => [...t, e])), A("")) : W(v("bigconsole.dashboards.embed.error.invalidOrigin", "Enter a valid https origin, e.g. https://example.com"));
34
+ }, Z = (e) => {
35
+ q && y ? T(y.id, J.filter((t) => t !== e)) : M((t) => t.filter((t) => t !== e));
40
36
  }, ne = async () => {
41
- g && (U(null), await S(g.id, {
42
- theme: I,
43
- showTitle: R
44
- }) && (V(!0), G.current && clearTimeout(G.current), G.current = setTimeout(() => V(!1), 1500)));
45
- }, re = async (e) => {
37
+ W(null), j.length === 0 ? W(v("bigconsole.dashboards.embed.error.noDomains", "Add at least one allowed website domain before publishing.")) : N ? await w(g, j, !0, {
38
+ theme: L,
39
+ showTitle: z
40
+ }) : W(v("bigconsole.dashboards.embed.error.notAttested", "Please confirm this dashboard is safe to be public."));
41
+ }, re = async () => {
42
+ y && (W(null), await ee(y.id, {
43
+ theme: L,
44
+ showTitle: z
45
+ }) && (H(!0), K.current && clearTimeout(K.current), K.current = setTimeout(() => H(!1), 1500)));
46
+ }, ie = async (e) => {
46
47
  try {
47
- await navigator.clipboard.writeText(e), F(!0), setTimeout(() => F(!1), 1500);
48
+ await navigator.clipboard.writeText(e), I(!0), setTimeout(() => I(!1), 1500);
48
49
  } catch {
49
- U(h("bigconsole.dashboards.embed.error.copyFailed", "Could not copy — select and copy manually."));
50
+ W(v("bigconsole.dashboards.embed.error.copyFailed", "Could not copy — select and copy manually."));
50
51
  }
51
- }, ie = {
52
+ }, ae = {
52
53
  padding: "8px 14px",
53
54
  borderRadius: "8px",
54
55
  border: "none",
55
- background: m.actionPrimaryBg,
56
+ background: _.actionPrimaryBg,
56
57
  color: "#fff",
57
58
  fontSize: "13px",
58
59
  fontWeight: 600,
@@ -60,371 +61,372 @@ function p({ dashboardId: p, colors: m }) {
60
61
  }, Q = {
61
62
  padding: "8px 14px",
62
63
  borderRadius: "8px",
63
- border: `1px solid ${m.borderDefault}`,
64
+ border: `1px solid ${_.borderDefault}`,
64
65
  background: "transparent",
65
- color: m.textPrimary,
66
+ color: _.textPrimary,
66
67
  fontSize: "13px",
67
68
  cursor: "pointer"
68
- }, ae = {
69
+ }, oe = {
69
70
  flex: 1,
70
71
  padding: "8px 10px",
71
72
  borderRadius: "8px",
72
- border: `1px solid ${m.borderDefault}`,
73
- background: m.bgSecondary,
74
- color: m.textPrimary,
73
+ border: `1px solid ${_.borderDefault}`,
74
+ background: _.bgSecondary,
75
+ color: _.textPrimary,
75
76
  fontSize: "13px"
76
- }, oe = {
77
+ }, se = {
77
78
  padding: "4px 8px",
78
79
  borderRadius: "6px",
79
- border: `1px solid ${m.borderDefault}`,
80
- background: m.bgSecondary,
81
- color: m.textPrimary,
80
+ border: `1px solid ${_.borderDefault}`,
81
+ background: _.bgSecondary,
82
+ color: _.textPrimary,
82
83
  fontSize: "12px",
83
84
  cursor: "pointer"
84
- }, se = {
85
+ }, ce = {
85
86
  display: "flex",
86
87
  gap: "8px",
87
88
  alignItems: "flex-start",
88
89
  fontSize: "12px",
89
- color: m.textSecondary
90
- }, ce = a(() => te.map((e) => ({
90
+ color: _.textSecondary
91
+ }, le = a(() => m.map((e) => ({
91
92
  value: e,
92
- label: e === "light" ? h("bigconsole.dashboards.embed.theme.option.light", "Light") : e === "dark" ? h("bigconsole.dashboards.embed.theme.option.dark", "Dark") : h("bigconsole.dashboards.embed.theme.option.auto", "Auto (match viewer)")
93
- })), [h]), $ = /* @__PURE__ */ d("div", {
93
+ label: e === "light" ? v("bigconsole.dashboards.embed.theme.option.light", "Light") : e === "dark" ? v("bigconsole.dashboards.embed.theme.option.dark", "Dark") : v("bigconsole.dashboards.embed.theme.option.auto", "Auto (match viewer)")
94
+ })), [v]), $ = /* @__PURE__ */ p("div", {
94
95
  style: {
95
96
  display: "flex",
96
97
  flexDirection: "column",
97
98
  gap: "10px"
98
99
  },
99
100
  children: [
100
- /* @__PURE__ */ d("label", {
101
+ /* @__PURE__ */ p("label", {
101
102
  style: {
102
103
  display: "flex",
103
104
  alignItems: "center",
104
105
  justifyContent: "space-between",
105
106
  gap: "8px"
106
107
  },
107
- children: [/* @__PURE__ */ u("span", {
108
+ children: [/* @__PURE__ */ f("span", {
108
109
  style: {
109
110
  fontSize: "12px",
110
- color: m.textSecondary
111
+ color: _.textSecondary
111
112
  },
112
- children: h("bigconsole.dashboards.embed.theme.label", "Theme")
113
- }), /* @__PURE__ */ u("select", {
114
- value: I,
113
+ children: v("bigconsole.dashboards.embed.theme.label", "Theme")
114
+ }), /* @__PURE__ */ f(l, {
115
+ value: L,
115
116
  onChange: (e) => {
116
117
  let t = e.target.value;
117
- (t === "light" || t === "dark" || t === "auto") && L(t);
118
+ (t === "light" || t === "dark" || t === "auto") && R(t);
118
119
  },
119
- style: oe,
120
- children: ce.map((e) => /* @__PURE__ */ u("option", {
120
+ style: se,
121
+ children: le.map((e) => /* @__PURE__ */ f("option", {
121
122
  value: e.value,
122
123
  children: e.label
123
124
  }, e.value))
124
125
  })]
125
126
  }),
126
- /* @__PURE__ */ d("label", {
127
- style: se,
128
- children: [/* @__PURE__ */ u("input", {
127
+ /* @__PURE__ */ p("label", {
128
+ style: ce,
129
+ children: [/* @__PURE__ */ f("input", {
129
130
  type: "checkbox",
130
- checked: R,
131
- onChange: (e) => z(e.target.checked)
132
- }), /* @__PURE__ */ u("span", { children: h("bigconsole.dashboards.embed.presentation.showTitle", "Show the dashboard title as a header") })]
131
+ checked: z,
132
+ onChange: (e) => B(e.target.checked)
133
+ }), /* @__PURE__ */ f("span", { children: v("bigconsole.dashboards.embed.presentation.showTitle", "Show the dashboard title as a header") })]
133
134
  }),
134
- /* @__PURE__ */ u("div", {
135
+ /* @__PURE__ */ f("div", {
135
136
  style: {
136
137
  fontSize: "11px",
137
- color: m.textTertiary
138
+ color: _.textTertiary
138
139
  },
139
- children: h("bigconsole.dashboards.embed.presentation.brandingNote", "Embeds always carry a “Powered by BigConsole” footer.")
140
+ children: v("bigconsole.dashboards.embed.presentation.brandingNote", "Embeds always carry a “Powered by BigConsole” footer.")
140
141
  })
141
142
  ]
142
143
  });
143
- return /* @__PURE__ */ d("div", {
144
+ return /* @__PURE__ */ p("div", {
144
145
  style: { padding: "20px 24px" },
145
146
  children: [
146
- /* @__PURE__ */ d("div", {
147
+ /* @__PURE__ */ p("div", {
147
148
  style: {
148
149
  display: "flex",
149
150
  alignItems: "center",
150
151
  justifyContent: "space-between",
151
152
  padding: "12px 14px",
152
153
  borderRadius: "10px",
153
- background: m.bgSecondary,
154
+ background: _.bgSecondary,
154
155
  marginBottom: "16px"
155
156
  },
156
- children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("div", {
157
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("div", {
157
158
  style: {
158
159
  fontSize: "14px",
159
160
  fontWeight: 600,
160
- color: m.textPrimary
161
+ color: _.textPrimary
161
162
  },
162
- children: h("bigconsole.dashboards.embed.heading", "Publish to the web")
163
- }), /* @__PURE__ */ u("div", {
163
+ children: v("bigconsole.dashboards.embed.heading", "Publish to the web")
164
+ }), /* @__PURE__ */ f("div", {
164
165
  style: {
165
166
  fontSize: "12px",
166
- color: m.textSecondary,
167
+ color: _.textSecondary,
167
168
  marginTop: "2px"
168
169
  },
169
- children: K ? h("bigconsole.dashboards.embed.status.liveDescription", "This dashboard is live. Anyone with the link on an allowed website sees its live data.") : h("bigconsole.dashboards.embed.status.privateDescription", "Embed this dashboard on your website. Viewers see live data — no login required.")
170
- })] }), /* @__PURE__ */ u("span", {
170
+ children: q ? v("bigconsole.dashboards.embed.status.liveDescription", "This dashboard is live. Anyone with the link on an allowed website sees its live data.") : v("bigconsole.dashboards.embed.status.privateDescription", "Embed this dashboard on your website. Viewers see live data — no login required.")
171
+ })] }), /* @__PURE__ */ f("span", {
171
172
  style: {
172
173
  fontSize: "11px",
173
174
  fontWeight: 700,
174
175
  padding: "3px 8px",
175
176
  borderRadius: "999px",
176
- color: "#fff",
177
- background: K ? m.statusSuccessBg : m.textTertiary
177
+ border: `1px solid ${q ? "var(--color-status-success-border)" : "var(--color-border-subtle)"}`,
178
+ color: q ? "var(--color-status-success-text)" : "var(--color-text-secondary)",
179
+ background: q ? "var(--color-status-success-bgSubtle)" : "var(--color-bg-sunken)"
178
180
  },
179
- children: K ? h("bigconsole.dashboards.embed.badge.published", "PUBLISHED") : h("bigconsole.dashboards.embed.badge.private", "PRIVATE")
181
+ children: q ? v("bigconsole.dashboards.embed.badge.published", "PUBLISHED") : v("bigconsole.dashboards.embed.badge.private", "PRIVATE")
180
182
  })]
181
183
  }),
182
- /* @__PURE__ */ d("div", {
184
+ /* @__PURE__ */ p("div", {
183
185
  style: { marginBottom: "16px" },
184
186
  children: [
185
- /* @__PURE__ */ u("div", {
187
+ /* @__PURE__ */ f("div", {
186
188
  style: {
187
189
  fontSize: "12px",
188
190
  fontWeight: 600,
189
- color: m.textSecondary,
191
+ color: _.textSecondary,
190
192
  marginBottom: "6px"
191
193
  },
192
- children: h("bigconsole.dashboards.embed.domains.label", "Allowed website domains")
194
+ children: v("bigconsole.dashboards.embed.domains.label", "Allowed website domains")
193
195
  }),
194
- /* @__PURE__ */ d("div", {
196
+ /* @__PURE__ */ p("div", {
195
197
  style: {
196
198
  display: "flex",
197
199
  gap: "8px",
198
200
  marginBottom: "8px"
199
201
  },
200
- children: [/* @__PURE__ */ u("input", {
201
- style: ae,
202
- placeholder: h("bigconsole.dashboards.embed.domains.placeholder", "https://yoursite.com"),
203
- value: O,
204
- onChange: (e) => k(e.target.value),
202
+ children: [/* @__PURE__ */ f("input", {
203
+ style: oe,
204
+ placeholder: v("bigconsole.dashboards.embed.domains.placeholder", "https://yoursite.com"),
205
+ value: k,
206
+ onChange: (e) => A(e.target.value),
205
207
  onKeyDown: (e) => {
206
- e.key === "Enter" && Y();
208
+ e.key === "Enter" && X();
207
209
  }
208
- }), /* @__PURE__ */ u("button", {
210
+ }), /* @__PURE__ */ f("button", {
209
211
  style: Q,
210
- onClick: Y,
212
+ onClick: X,
211
213
  type: "button",
212
- disabled: !D,
213
- children: h("bigconsole.dashboards.embed.domains.add", "Add")
214
+ disabled: !O,
215
+ children: v("bigconsole.dashboards.embed.domains.add", "Add")
214
216
  })]
215
217
  }),
216
- q.length === 0 ? /* @__PURE__ */ u("div", {
218
+ J.length === 0 ? /* @__PURE__ */ f("div", {
217
219
  style: {
218
220
  fontSize: "12px",
219
- color: m.textTertiary
221
+ color: _.textTertiary
220
222
  },
221
- children: h("bigconsole.dashboards.embed.domains.empty", "No domains yet. Only listed https domains may frame this dashboard.")
222
- }) : /* @__PURE__ */ u("div", {
223
+ children: v("bigconsole.dashboards.embed.domains.empty", "No domains yet. Only listed https domains may frame this dashboard.")
224
+ }) : /* @__PURE__ */ f("div", {
223
225
  style: {
224
226
  display: "flex",
225
227
  flexDirection: "column",
226
228
  gap: "6px"
227
229
  },
228
- children: q.map((e) => /* @__PURE__ */ d("div", {
230
+ children: J.map((e) => /* @__PURE__ */ p("div", {
229
231
  style: {
230
232
  display: "flex",
231
233
  alignItems: "center",
232
234
  justifyContent: "space-between",
233
235
  padding: "6px 10px",
234
236
  borderRadius: "8px",
235
- background: m.bgTertiary
237
+ background: _.bgTertiary
236
238
  },
237
- children: [/* @__PURE__ */ u("span", {
239
+ children: [/* @__PURE__ */ f("span", {
238
240
  style: {
239
241
  fontSize: "13px",
240
- color: m.textPrimary
242
+ color: _.textPrimary
241
243
  },
242
244
  children: e
243
- }), D && /* @__PURE__ */ u("button", {
245
+ }), O && /* @__PURE__ */ f("button", {
244
246
  style: {
245
247
  ...Q,
246
248
  padding: "2px 8px",
247
- color: m.statusErrorText
249
+ color: _.statusErrorText
248
250
  },
249
- onClick: () => X(e),
251
+ onClick: () => Z(e),
250
252
  type: "button",
251
- children: h("bigconsole.dashboards.embed.domains.remove", "Remove")
253
+ children: v("bigconsole.dashboards.embed.domains.remove", "Remove")
252
254
  })]
253
255
  }, e))
254
256
  })
255
257
  ]
256
258
  }),
257
- !K && /* @__PURE__ */ d("div", {
259
+ !q && /* @__PURE__ */ p("div", {
258
260
  style: { marginBottom: "16px" },
259
- children: [/* @__PURE__ */ u("div", {
261
+ children: [/* @__PURE__ */ f("div", {
260
262
  style: {
261
263
  fontSize: "12px",
262
264
  fontWeight: 600,
263
- color: m.textSecondary,
265
+ color: _.textSecondary,
264
266
  marginBottom: "8px"
265
267
  },
266
- children: h("bigconsole.dashboards.embed.presentation.heading", "Presentation")
268
+ children: v("bigconsole.dashboards.embed.presentation.heading", "Presentation")
267
269
  }), $]
268
270
  }),
269
- !K && /* @__PURE__ */ d("div", {
271
+ !q && /* @__PURE__ */ p("div", {
270
272
  style: { marginBottom: "8px" },
271
- children: [/* @__PURE__ */ d("label", {
273
+ children: [/* @__PURE__ */ p("label", {
272
274
  style: {
273
275
  display: "flex",
274
276
  gap: "8px",
275
277
  alignItems: "flex-start",
276
278
  marginBottom: "12px"
277
279
  },
278
- children: [/* @__PURE__ */ u("input", {
280
+ children: [/* @__PURE__ */ f("input", {
279
281
  type: "checkbox",
280
- checked: M,
281
- onChange: (e) => N(e.target.checked)
282
- }), /* @__PURE__ */ u("span", {
282
+ checked: N,
283
+ onChange: (e) => P(e.target.checked)
284
+ }), /* @__PURE__ */ f("span", {
283
285
  style: {
284
286
  fontSize: "12px",
285
- color: m.textSecondary
287
+ color: _.textSecondary
286
288
  },
287
- children: h("bigconsole.dashboards.embed.attestation", "I understand this makes the dashboard’s live data visible to anyone with the link, and I confirm it is safe to be public.")
289
+ children: v("bigconsole.dashboards.embed.attestation", "I understand this makes the dashboard’s live data visible to anyone with the link, and I confirm it is safe to be public.")
288
290
  })]
289
- }), /* @__PURE__ */ u("button", {
290
- style: ie,
291
- onClick: Z,
292
- disabled: v || !D,
291
+ }), /* @__PURE__ */ f("button", {
292
+ style: ae,
293
+ onClick: ne,
294
+ disabled: x || !O,
293
295
  type: "button",
294
- children: v ? h("bigconsole.dashboards.embed.publishing", "Publishing…") : h("bigconsole.dashboards.embed.publish", "Publish to web")
296
+ children: x ? v("bigconsole.dashboards.embed.publishing", "Publishing…") : v("bigconsole.dashboards.embed.publish", "Publish to web")
295
297
  })]
296
298
  }),
297
- K && /* @__PURE__ */ d(l, { children: [
298
- J ? /* @__PURE__ */ d("div", {
299
+ q && /* @__PURE__ */ p(d, { children: [
300
+ Y ? /* @__PURE__ */ p("div", {
299
301
  style: { marginBottom: "16px" },
300
302
  children: [
301
- /* @__PURE__ */ u("div", {
303
+ /* @__PURE__ */ f("div", {
302
304
  style: { marginBottom: "6px" },
303
- children: /* @__PURE__ */ u("span", {
305
+ children: /* @__PURE__ */ f("span", {
304
306
  style: {
305
307
  fontSize: "12px",
306
308
  fontWeight: 600,
307
- color: m.textSecondary
309
+ color: _.textSecondary
308
310
  },
309
- children: h("bigconsole.dashboards.embed.snippet.label", "Embed snippet")
311
+ children: v("bigconsole.dashboards.embed.snippet.label", "Embed snippet")
310
312
  })
311
313
  }),
312
- /* @__PURE__ */ u("textarea", {
314
+ /* @__PURE__ */ f("textarea", {
313
315
  readOnly: !0,
314
- value: J,
316
+ value: Y,
315
317
  style: {
316
318
  width: "100%",
317
319
  minHeight: "96px",
318
320
  padding: "10px",
319
321
  borderRadius: "8px",
320
- border: `1px solid ${m.borderDefault}`,
321
- background: m.bgSecondary,
322
- color: m.textPrimary,
322
+ border: `1px solid ${_.borderDefault}`,
323
+ background: _.bgSecondary,
324
+ color: _.textPrimary,
323
325
  fontFamily: "monospace",
324
326
  fontSize: "12px",
325
327
  resize: "vertical"
326
328
  }
327
329
  }),
328
- /* @__PURE__ */ u("button", {
330
+ /* @__PURE__ */ f("button", {
329
331
  style: {
330
332
  ...Q,
331
333
  marginTop: "8px"
332
334
  },
333
- onClick: () => re(J),
335
+ onClick: () => ie(Y),
334
336
  type: "button",
335
- children: P ? h("bigconsole.dashboards.embed.snippet.copied", "Copied ✓") : h("bigconsole.dashboards.embed.snippet.copy", "Copy snippet")
337
+ children: F ? v("bigconsole.dashboards.embed.snippet.copied", "Copied ✓") : v("bigconsole.dashboards.embed.snippet.copy", "Copy snippet")
336
338
  })
337
339
  ]
338
- }) : /* @__PURE__ */ u("div", {
340
+ }) : /* @__PURE__ */ f("div", {
339
341
  style: {
340
342
  fontSize: "12px",
341
- color: m.textSecondary,
342
- background: m.bgSecondary,
343
+ color: _.textSecondary,
344
+ background: _.bgSecondary,
343
345
  borderRadius: "8px",
344
346
  padding: "10px 12px",
345
347
  marginBottom: "16px"
346
348
  },
347
- children: h("bigconsole.dashboards.embed.snippet.alreadyActive", "The embed link is already active. For security the snippet (which contains the secret key) is only shown once at publish time — use {{rotateLabel}} to generate a fresh snippet.", { rotateLabel: h("bigconsole.dashboards.embed.rotate", "Rotate link") })
349
+ children: v("bigconsole.dashboards.embed.snippet.alreadyActive", "The embed link is already active. For security the snippet (which contains the secret key) is only shown once at publish time — use {{rotateLabel}} to generate a fresh snippet.", { rotateLabel: v("bigconsole.dashboards.embed.rotate", "Rotate link") })
348
350
  }),
349
- /* @__PURE__ */ d("div", {
351
+ /* @__PURE__ */ p("div", {
350
352
  style: { marginBottom: "16px" },
351
353
  children: [
352
- /* @__PURE__ */ u("div", {
354
+ /* @__PURE__ */ f("div", {
353
355
  style: {
354
356
  fontSize: "12px",
355
357
  fontWeight: 600,
356
- color: m.textSecondary,
358
+ color: _.textSecondary,
357
359
  marginBottom: "8px"
358
360
  },
359
- children: h("bigconsole.dashboards.embed.presentation.heading", "Presentation")
361
+ children: v("bigconsole.dashboards.embed.presentation.heading", "Presentation")
360
362
  }),
361
363
  $,
362
- /* @__PURE__ */ d("div", {
364
+ /* @__PURE__ */ p("div", {
363
365
  style: {
364
366
  display: "flex",
365
367
  alignItems: "center",
366
368
  gap: "10px",
367
369
  marginTop: "10px"
368
370
  },
369
- children: [/* @__PURE__ */ u("button", {
371
+ children: [/* @__PURE__ */ f("button", {
370
372
  style: Q,
371
- onClick: ne,
372
- disabled: v || !D,
373
+ onClick: re,
374
+ disabled: x || !O,
373
375
  type: "button",
374
- children: v ? h("bigconsole.dashboards.embed.applying", "Applying…") : h("bigconsole.dashboards.embed.apply", "Apply changes")
375
- }), B && /* @__PURE__ */ u("span", {
376
+ children: x ? v("bigconsole.dashboards.embed.applying", "Applying…") : v("bigconsole.dashboards.embed.apply", "Apply changes")
377
+ }), V && /* @__PURE__ */ f("span", {
376
378
  style: {
377
379
  fontSize: "12px",
378
- color: m.textTertiary
380
+ color: _.textTertiary
379
381
  },
380
- children: h("bigconsole.dashboards.embed.updated", "Updated ✓")
382
+ children: v("bigconsole.dashboards.embed.updated", "Updated ✓")
381
383
  })]
382
384
  }),
383
- /* @__PURE__ */ u("div", {
385
+ /* @__PURE__ */ f("div", {
384
386
  style: {
385
387
  fontSize: "11px",
386
- color: m.textTertiary,
388
+ color: _.textTertiary,
387
389
  marginTop: "6px"
388
390
  },
389
- children: h("bigconsole.dashboards.embed.presentation.applyHelp", "Changes apply to live embeds within a few seconds — no re-publish needed, and the embed link stays the same.")
391
+ children: v("bigconsole.dashboards.embed.presentation.applyHelp", "Changes apply to live embeds within a few seconds — no re-publish needed, and the embed link stays the same.")
390
392
  })
391
393
  ]
392
394
  }),
393
- D && /* @__PURE__ */ d("div", {
395
+ O && /* @__PURE__ */ p("div", {
394
396
  style: {
395
397
  display: "flex",
396
398
  gap: "8px"
397
399
  },
398
- children: [/* @__PURE__ */ u("button", {
400
+ children: [/* @__PURE__ */ f("button", {
399
401
  style: Q,
400
- onClick: () => g && w(g.id),
401
- disabled: v,
402
+ onClick: () => y && E(y.id),
403
+ disabled: x,
402
404
  type: "button",
403
- children: h("bigconsole.dashboards.embed.rotate", "Rotate link")
404
- }), /* @__PURE__ */ u("button", {
405
+ children: v("bigconsole.dashboards.embed.rotate", "Rotate link")
406
+ }), /* @__PURE__ */ f("button", {
405
407
  style: {
406
408
  ...Q,
407
- color: m.statusErrorText,
408
- borderColor: m.statusErrorText
409
+ color: _.statusErrorText,
410
+ borderColor: _.statusErrorText
409
411
  },
410
412
  onClick: () => {
411
- g && window.confirm(h("bigconsole.dashboards.embed.unpublishConfirm", "Unpublish this dashboard? The embed will stop working immediately for anyone using the link.")) && T(g.id);
413
+ y && window.confirm(v("bigconsole.dashboards.embed.unpublishConfirm", "Unpublish this dashboard? The embed will stop working immediately for anyone using the link.")) && D(y.id);
412
414
  },
413
- disabled: v,
415
+ disabled: x,
414
416
  type: "button",
415
- children: h("bigconsole.dashboards.embed.unpublish", "Unpublish")
417
+ children: v("bigconsole.dashboards.embed.unpublish", "Unpublish")
416
418
  })]
417
419
  })
418
420
  ] }),
419
- (H || y) && /* @__PURE__ */ u("div", {
421
+ (U || S) && /* @__PURE__ */ f("div", {
420
422
  style: {
421
423
  marginTop: "12px",
422
424
  fontSize: "12px",
423
- color: m.statusErrorText
425
+ color: _.statusErrorText
424
426
  },
425
- children: H ?? y?.message
427
+ children: U ?? S?.message
426
428
  })
427
429
  ]
428
430
  });
429
431
  }
430
- export { p as EmbedTab, p as default, f as withThemeInSnippet };
432
+ export { g as EmbedTab, g as default, h as withThemeInSnippet };