@burdenoff/microfe-bigconsole 2026.1012.4 → 2026.1012.6

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 (130) hide show
  1. package/dist/bigconsole/BigConsoleRoutes.js +149 -140
  2. package/dist/bigconsole/assistant/assistantProduct.js +4 -1
  3. package/dist/bigconsole/assistant/displayCopy.d.ts +32 -0
  4. package/dist/bigconsole/assistant/pageContext.d.ts +14 -0
  5. package/dist/bigconsole/assistant/pageContext.js +6 -1
  6. package/dist/bigconsole/assistant/pageControls.d.ts +81 -0
  7. package/dist/bigconsole/assistant/pageControls.js +169 -0
  8. package/dist/bigconsole/assistant/previewControl.d.ts +16 -0
  9. package/dist/bigconsole/assistant/previewControl.js +10 -0
  10. package/dist/bigconsole/assistant/recordAdapters.js +27 -26
  11. package/dist/bigconsole/assistant/usePreviewControl.d.ts +2 -0
  12. package/dist/bigconsole/assistant/usePreviewControl.js +20 -0
  13. package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +9 -9
  14. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
  15. package/dist/bigconsole/components/common/SortBySelect.d.ts +11 -0
  16. package/dist/bigconsole/components/common/SortBySelect.js +29 -0
  17. package/dist/bigconsole/components/common/index.d.ts +1 -0
  18. package/dist/bigconsole/components/common/index.js +1 -0
  19. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
  20. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
  21. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
  22. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +15 -15
  23. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
  24. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
  25. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
  26. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
  27. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +153 -153
  28. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
  29. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
  30. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +134 -134
  31. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
  32. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
  33. package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
  34. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
  35. package/dist/bigconsole/components/dashboard/WidgetPalette.js +46 -46
  36. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
  37. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
  38. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
  39. package/dist/bigconsole/components/datasink/DataSinkCard.js +51 -50
  40. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
  41. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
  42. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
  43. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
  44. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
  45. package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
  46. package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
  47. package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
  48. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
  49. package/dist/bigconsole/components/preview/AiPreviewContent.js +0 -1
  50. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +77 -76
  51. package/dist/bigconsole/components/preview/AiPreviewPanel.js +96 -95
  52. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
  53. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
  54. package/dist/bigconsole/components/widgets/PropertiesPanel.js +507 -499
  55. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +14 -14
  56. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +68 -67
  57. package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.d.ts +7 -0
  58. package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.js +12 -0
  59. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
  60. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
  61. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
  62. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
  63. package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
  64. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
  65. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
  66. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
  67. package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
  68. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
  69. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
  70. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
  71. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
  72. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
  73. package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
  74. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
  75. package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
  76. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
  77. package/dist/bigconsole/constants/backendErrors.js +94 -0
  78. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +10 -10
  79. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +67 -67
  80. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +14 -0
  81. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +32 -0
  82. package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +23 -0
  83. package/dist/bigconsole/hooks/useDataSinkAlerts.js +138 -113
  84. package/dist/bigconsole/hooks/useDrilldown.js +3 -3
  85. package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
  86. package/dist/bigconsole/pages/AdminPage.js +130 -130
  87. package/dist/bigconsole/pages/DashboardBuilderPage.js +72 -60
  88. package/dist/bigconsole/pages/DashboardViewPage.js +244 -221
  89. package/dist/bigconsole/pages/DashboardsPage.js +269 -221
  90. package/dist/bigconsole/pages/DataParsersPage.js +180 -157
  91. package/dist/bigconsole/pages/DataSinkAlertsPage.js +62 -55
  92. package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -234
  93. package/dist/bigconsole/pages/DataSinkViewPage.js +1 -1
  94. package/dist/bigconsole/pages/DataSinksPage.js +335 -299
  95. package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
  96. package/dist/bigconsole/pages/InsightsPage.js +279 -265
  97. package/dist/bigconsole/pages/OverviewPage.js +47 -47
  98. package/dist/bigconsole/pages/ParserBuilderPage.js +229 -213
  99. package/dist/bigconsole/pages/ParserViewPage.js +97 -97
  100. package/dist/bigconsole/pages/PipelineBuilderPage.js +256 -214
  101. package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
  102. package/dist/bigconsole/pages/PipelinesPage.js +107 -88
  103. package/dist/bigconsole/pages/SettingsPage.js +179 -173
  104. package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
  105. package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
  106. package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
  107. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
  108. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
  109. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +69 -69
  110. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
  111. package/dist/bigconsole/store/widgetStore.d.ts +12 -0
  112. package/dist/bigconsole/store/widgetStore.js +3 -1
  113. package/dist/bigconsole/utils/backendError.d.ts +18 -0
  114. package/dist/bigconsole/utils/backendError.js +42 -0
  115. package/dist/bigconsole/utils/dashboardList.d.ts +28 -0
  116. package/dist/bigconsole/utils/dashboardList.js +15 -0
  117. package/dist/bigconsole/utils/dataSinkList.d.ts +15 -0
  118. package/dist/bigconsole/utils/dataSinkList.js +15 -0
  119. package/dist/bigconsole/utils/formDirty.d.ts +82 -0
  120. package/dist/bigconsole/utils/formDirty.js +21 -0
  121. package/dist/bigconsole/utils/insightsDraft.d.ts +29 -0
  122. package/dist/bigconsole/utils/insightsDraft.js +8 -0
  123. package/dist/bigconsole/utils/layoutBaseline.d.ts +130 -0
  124. package/dist/bigconsole/utils/layoutBaseline.js +96 -0
  125. package/dist/bigconsole/utils/listSort.d.ts +80 -0
  126. package/dist/bigconsole/utils/listSort.js +85 -0
  127. package/dist/bigconsole/utils/widgetFormDirty.d.ts +16 -0
  128. package/dist/bigconsole/utils/widgetFormDirty.js +13 -0
  129. package/dist/bigconsole/workflowOpen.js +15 -14
  130. package/package.json +3 -3
@@ -1,167 +1,168 @@
1
1
  import { useBigConsoleNavigate as e } from "../../context/BigConsoleContext.js";
2
2
  import "../../context/index.js";
3
3
  import { PREVIEW_STEPS as t, useAssistantRunStore as n } from "../../assistant/assistantRunStore.js";
4
- import { useAssistantRunWorkspace as r } from "../../assistant/useAssistantRunWorkspace.js";
5
- import { Section as i } from "../common/Section.js";
4
+ import { useBigConsolePreviewControl as r } from "../../assistant/usePreviewControl.js";
5
+ import { useAssistantRunWorkspace as i } from "../../assistant/useAssistantRunWorkspace.js";
6
+ import { Section as a } from "../common/Section.js";
6
7
  import "../common/index.js";
7
- import { DOCK_CLEARANCE as a, PreviewMeta as o, STEP_LABEL as s, formatAgo as c, previewLabels as l } from "./previewShared.js";
8
- import { DashboardContent as u, DataSinkContent as d, ParserContent as f, WidgetsContent as p } from "./AiPreviewContent.js";
9
- import { useEffect as m, useRef as h, useState as g } from "react";
10
- import { ArrowUpRight as _, Loader2 as v, Sparkles as y, X as b } from "lucide-react";
11
- import { Button as x } from "@burdenoff/fe-libs/ui";
12
- import { jsx as S, jsxs as C } from "react/jsx-runtime";
13
- import { useI18n as w } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
- import { AssistantEntityPreview as T } from "@burdenoff/fe-libs/shared/assistant";
8
+ import { DOCK_CLEARANCE as o, PreviewMeta as s, STEP_LABEL as c, formatAgo as l, previewLabels as u } from "./previewShared.js";
9
+ import { DashboardContent as d, DataSinkContent as f, ParserContent as p, WidgetsContent as m } from "./AiPreviewContent.js";
10
+ import { useEffect as h, useRef as g, useState as _ } from "react";
11
+ import { ArrowUpRight as v, Loader2 as y, Sparkles as b, X as x } from "lucide-react";
12
+ import { Button as S } from "@burdenoff/fe-libs/ui";
13
+ import { useI18n as C } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
+ import { jsx as w, jsxs as T } from "react/jsx-runtime";
15
+ import { AssistantEntityPreview as E } from "@burdenoff/fe-libs/shared/assistant";
15
16
  //#region src/bigconsole/components/preview/AiPreviewPanel.tsx
16
- function E({ children: e }) {
17
- return /* @__PURE__ */ S("div", {
17
+ function D({ children: e }) {
18
+ return /* @__PURE__ */ w("div", {
18
19
  className: "min-w-0 overflow-y-auto p-3",
19
20
  style: { maxHeight: "min(440px, 60vh)" },
20
21
  children: e
21
22
  });
22
23
  }
23
- function D({ onOpen: e }) {
24
- let { t } = w();
25
- return /* @__PURE__ */ C(x, {
24
+ function O({ onOpen: e }) {
25
+ let { t } = C();
26
+ return /* @__PURE__ */ T(S, {
26
27
  size: "sm",
27
28
  variant: "outline",
28
29
  onClick: e,
29
30
  "data-testid": "ai-preview-open-entity",
30
- children: [t("bigconsole.widget.aiPreview.open", "Open"), /* @__PURE__ */ S(_, { className: "ml-1 size-3.5" })]
31
+ children: [t("bigconsole.widget.aiPreview.open", "Open"), /* @__PURE__ */ w(v, { className: "ml-1 size-3.5" })]
31
32
  });
32
33
  }
33
- function O() {
34
- let { t: _ } = w();
35
- r();
36
- let O = e(), k = n((e) => e.isRunning), A = n((e) => e.previewOpen), j = n((e) => e.hasRun), M = n((e) => e.steps), N = n((e) => e.entityIds), P = n((e) => e.caption), F = n((e) => e.error), I = n((e) => e.updatedAt), L = n((e) => e.openPreview), R = n((e) => e.closePreview), z = n((e) => e.setRichMounted);
37
- m(() => (z(!0), () => {
38
- z(!1);
39
- }), [z]);
40
- let [B, V] = g(0), H = h(!1);
41
- if (m(() => {
42
- k && !H.current && V((e) => e + 1), H.current = k;
43
- }, [k]), !j) return null;
44
- if (!A) return /* @__PURE__ */ C("div", {
34
+ function k() {
35
+ let { t: v } = C();
36
+ i(), r();
37
+ let k = e(), A = n((e) => e.isRunning), j = n((e) => e.previewOpen), M = n((e) => e.hasRun), N = n((e) => e.steps), P = n((e) => e.entityIds), F = n((e) => e.caption), I = n((e) => e.error), L = n((e) => e.updatedAt), R = n((e) => e.openPreview), z = n((e) => e.closePreview), B = n((e) => e.setRichMounted);
38
+ h(() => (B(!0), () => {
39
+ B(!1);
40
+ }), [B]);
41
+ let [V, H] = _(0), U = g(!1);
42
+ if (h(() => {
43
+ A && !U.current && H((e) => e + 1), U.current = A;
44
+ }, [A]), !M) return null;
45
+ if (!j) return /* @__PURE__ */ T("div", {
45
46
  className: "flex flex-wrap items-center justify-end gap-control-gap px-4 pt-3 md:px-6",
46
- style: { marginRight: a },
47
- children: [/* @__PURE__ */ S("span", {
47
+ style: { marginRight: o },
48
+ children: [/* @__PURE__ */ w("span", {
48
49
  className: "text-xs text-text-muted",
49
- children: k ? _("bigconsole.widget.aiPreview.buildRunning", "AI build running") : _("bigconsole.widget.aiPreview.buildFinished", "AI build finished")
50
- }), /* @__PURE__ */ C(x, {
50
+ children: A ? v("bigconsole.widget.aiPreview.buildRunning", "AI build running") : v("bigconsole.widget.aiPreview.buildFinished", "AI build finished")
51
+ }), /* @__PURE__ */ T(S, {
51
52
  size: "sm",
52
53
  variant: "outline",
53
- onClick: L,
54
+ onClick: R,
54
55
  "data-testid": "ai-preview-open",
55
56
  children: [
56
- /* @__PURE__ */ S(y, { className: "mr-1.5 size-4" }),
57
- _("bigconsole.widget.aiPreview.previewButton", "Preview"),
58
- k ? /* @__PURE__ */ S(v, { className: "ml-1.5 size-3.5 animate-spin" }) : null
57
+ /* @__PURE__ */ w(b, { className: "mr-1.5 size-4" }),
58
+ v("bigconsole.widget.aiPreview.previewButton", "Preview"),
59
+ A ? /* @__PURE__ */ w(y, { className: "ml-1.5 size-3.5 animate-spin" }) : null
59
60
  ]
60
61
  })]
61
62
  });
62
- let U = N.dashboard, W = t.map((e) => ({
63
+ let W = P.dashboard, G = t.map((e) => ({
63
64
  id: e,
64
- label: _(s[e].key, s[e].fallback),
65
- status: M[e]
66
- })), G = [
65
+ label: v(c[e].key, c[e].fallback),
66
+ status: N[e]
67
+ })), K = [
67
68
  {
68
69
  id: "datasink",
69
- label: _("bigconsole.widget.aiPreview.tab.dataSink", "Data Sink"),
70
- render: () => /* @__PURE__ */ S(E, { children: /* @__PURE__ */ S(i, {
70
+ label: v("bigconsole.widget.aiPreview.tab.dataSink", "Data Sink"),
71
+ render: () => /* @__PURE__ */ w(D, { children: /* @__PURE__ */ w(a, {
71
72
  emphasis: "standard",
72
73
  padding: "compact",
73
74
  headingLevel: 3,
74
- title: _("bigconsole.widget.aiPreview.dataSinkRows", "Data sink rows"),
75
- description: _("bigconsole.widget.aiPreview.dataSinkRowsHint", "The rows the assistant just landed, straight from the sink."),
76
- actions: N.datasink ? /* @__PURE__ */ S(D, { onOpen: () => O(`/datasinks/${N.datasink}`) }) : void 0,
77
- children: /* @__PURE__ */ S(d, {
78
- id: N.datasink,
79
- live: k
75
+ title: v("bigconsole.widget.aiPreview.dataSinkRows", "Data sink rows"),
76
+ description: v("bigconsole.widget.aiPreview.dataSinkRowsHint", "The rows the assistant just landed, straight from the sink."),
77
+ actions: P.datasink ? /* @__PURE__ */ w(O, { onOpen: () => k(`/datasinks/${P.datasink}`) }) : void 0,
78
+ children: /* @__PURE__ */ w(f, {
79
+ id: P.datasink,
80
+ live: A
80
81
  })
81
82
  }) })
82
83
  },
83
84
  {
84
85
  id: "dashboard",
85
- label: _("bigconsole.widget.aiPreview.tab.dashboard", "Dashboard"),
86
- render: () => /* @__PURE__ */ S(E, { children: /* @__PURE__ */ S(i, {
86
+ label: v("bigconsole.widget.aiPreview.tab.dashboard", "Dashboard"),
87
+ render: () => /* @__PURE__ */ w(D, { children: /* @__PURE__ */ w(a, {
87
88
  emphasis: "standard",
88
89
  padding: "compact",
89
90
  headingLevel: 3,
90
- title: _("bigconsole.widget.aiPreview.tab.dashboard", "Dashboard"),
91
- description: _("bigconsole.widget.aiPreview.dashboardHint", "The live board, rendered exactly as the real page renders it."),
92
- actions: U ? /* @__PURE__ */ S(D, { onOpen: () => O(`/dashboards/${U}`) }) : void 0,
93
- children: /* @__PURE__ */ S(u, {
94
- dashboardId: U,
95
- live: k
91
+ title: v("bigconsole.widget.aiPreview.tab.dashboard", "Dashboard"),
92
+ description: v("bigconsole.widget.aiPreview.dashboardHint", "The live board, rendered exactly as the real page renders it."),
93
+ actions: W ? /* @__PURE__ */ w(O, { onOpen: () => k(`/dashboards/${W}`) }) : void 0,
94
+ children: /* @__PURE__ */ w(d, {
95
+ dashboardId: W,
96
+ live: A
96
97
  })
97
98
  }) })
98
99
  },
99
100
  {
100
101
  id: "parser",
101
- label: _("bigconsole.widget.aiPreview.tab.parser", "Parser"),
102
- render: () => /* @__PURE__ */ S(E, { children: /* @__PURE__ */ S(i, {
102
+ label: v("bigconsole.widget.aiPreview.tab.parser", "Parser"),
103
+ render: () => /* @__PURE__ */ w(D, { children: /* @__PURE__ */ w(a, {
103
104
  emphasis: "standard",
104
105
  padding: "compact",
105
106
  headingLevel: 3,
106
- title: _("bigconsole.widget.aiPreview.parserOutput", "Parser output"),
107
- description: _("bigconsole.widget.aiPreview.parserOutputHint", "The rows after the parser's transform, so you can check the shape."),
108
- actions: N.parser ? /* @__PURE__ */ S(D, { onOpen: () => O(`/parsers/${N.parser}`) }) : void 0,
109
- children: /* @__PURE__ */ S(f, {
110
- parserId: N.parser,
111
- live: k
107
+ title: v("bigconsole.widget.aiPreview.parserOutput", "Parser output"),
108
+ description: v("bigconsole.widget.aiPreview.parserOutputHint", "The rows after the parser's transform, so you can check the shape."),
109
+ actions: P.parser ? /* @__PURE__ */ w(O, { onOpen: () => k(`/parsers/${P.parser}`) }) : void 0,
110
+ children: /* @__PURE__ */ w(p, {
111
+ parserId: P.parser,
112
+ live: A
112
113
  })
113
114
  }) })
114
115
  },
115
116
  {
116
117
  id: "widget",
117
- label: _("bigconsole.widget.aiPreview.tab.widget", "Widget"),
118
- render: () => /* @__PURE__ */ S(E, { children: /* @__PURE__ */ S(i, {
118
+ label: v("bigconsole.widget.aiPreview.tab.widget", "Widget"),
119
+ render: () => /* @__PURE__ */ w(D, { children: /* @__PURE__ */ w(a, {
119
120
  emphasis: "standard",
120
121
  padding: "compact",
121
122
  headingLevel: 3,
122
- title: _("bigconsole.widget.aiPreview.widgets", "Widgets"),
123
- description: _("bigconsole.widget.aiPreview.widgetsHint", "Every widget on the new dashboard, rendered live."),
124
- actions: U ? /* @__PURE__ */ S(D, { onOpen: () => O(`/dashboards/${U}`) }) : void 0,
125
- children: /* @__PURE__ */ S(p, {
126
- dashboardId: U,
127
- live: k
123
+ title: v("bigconsole.widget.aiPreview.widgets", "Widgets"),
124
+ description: v("bigconsole.widget.aiPreview.widgetsHint", "Every widget on the new dashboard, rendered live."),
125
+ actions: W ? /* @__PURE__ */ w(O, { onOpen: () => k(`/dashboards/${W}`) }) : void 0,
126
+ children: /* @__PURE__ */ w(m, {
127
+ dashboardId: W,
128
+ live: A
128
129
  })
129
130
  }) })
130
131
  }
131
132
  ];
132
- return /* @__PURE__ */ C("div", {
133
+ return /* @__PURE__ */ T("div", {
133
134
  "data-testid": "ai-preview-panel",
134
- style: { paddingRight: a },
135
+ style: { paddingRight: o },
135
136
  className: "mx-4 mt-3 min-w-0 md:mx-6",
136
- children: [/* @__PURE__ */ S("h2", {
137
+ children: [/* @__PURE__ */ w("h2", {
137
138
  className: "sr-only",
138
- children: _("bigconsole.widget.aiPreview.title", "AI Preview")
139
- }), /* @__PURE__ */ S(T, {
140
- title: _("bigconsole.widget.aiPreview.title", "AI Preview"),
141
- runKey: String(B),
142
- steps: W,
143
- tabs: G,
139
+ children: v("bigconsole.widget.aiPreview.title", "AI Preview")
140
+ }), /* @__PURE__ */ w(E, {
141
+ title: v("bigconsole.widget.aiPreview.title", "AI Preview"),
142
+ runKey: String(V),
143
+ steps: G,
144
+ tabs: K,
144
145
  follow: "produced",
145
- caption: k ? P || _("bigconsole.widget.aiPreview.working", "Working…") : _("bigconsole.widget.aiPreview.done", "Done"),
146
- error: F,
147
- meta: /* @__PURE__ */ S(o, {
148
- state: k ? "running" : F ? "stopped" : "idle",
149
- stateLabel: k ? _("bigconsole.widget.aiPreview.live", "Live") : F ? _("bigconsole.widget.aiPreview.stopped", "Stopped") : null,
150
- updatedLabel: _("bigconsole.widget.aiPreview.updated", "updated"),
151
- updatedAt: I,
152
- ago: (e) => c(e, _)
146
+ caption: A ? F || v("bigconsole.widget.aiPreview.working", "Working…") : v("bigconsole.widget.aiPreview.done", "Done"),
147
+ error: I,
148
+ meta: /* @__PURE__ */ w(s, {
149
+ state: A ? "running" : I ? "stopped" : "idle",
150
+ stateLabel: A ? v("bigconsole.widget.aiPreview.live", "Live") : I ? v("bigconsole.widget.aiPreview.stopped", "Stopped") : null,
151
+ updatedLabel: v("bigconsole.widget.aiPreview.updated", "updated"),
152
+ updatedAt: L,
153
+ ago: (e) => l(e, v)
153
154
  }),
154
- headerActions: /* @__PURE__ */ S(x, {
155
+ headerActions: /* @__PURE__ */ w(S, {
155
156
  size: "sm",
156
157
  variant: "ghost",
157
- onClick: R,
158
- "aria-label": _("bigconsole.widget.aiPreview.closeAriaLabel", "Close preview"),
158
+ onClick: z,
159
+ "aria-label": v("bigconsole.widget.aiPreview.closeAriaLabel", "Close preview"),
159
160
  "data-testid": "ai-preview-close",
160
- children: /* @__PURE__ */ S(b, { className: "size-4" })
161
+ children: /* @__PURE__ */ w(x, { className: "size-4" })
161
162
  }),
162
- labels: l(_)
163
+ labels: u(v)
163
164
  })]
164
165
  });
165
166
  }
166
167
  //#endregion
167
- export { O as AiPreviewPanel };
168
+ export { k as AiPreviewPanel };
@@ -6,8 +6,8 @@ import { memo as r, useCallback as i, useEffect as ne, useId as re, useMemo as i
6
6
  import { PermissionButton as ae } from "@burdenoff/fe-libs/shared/components";
7
7
  import { ChevronDown as oe, ChevronRight as se } from "lucide-react";
8
8
  import { Button as ce, Checkbox as s, Input as c, ResponsiveDialog as le, ResponsiveDialogContent as ue, ResponsiveDialogDescription as de, ResponsiveDialogFooter as fe, ResponsiveDialogHeader as pe, ResponsiveDialogTitle as me, Select as l, SelectContent as u, SelectItem as he, SelectTrigger as ge, SelectValue as _e, Spinner as ve, Textarea as ye } from "@burdenoff/fe-libs/ui";
9
- import { Fragment as be, jsx as d, jsxs as f } from "react/jsx-runtime";
10
- import { useI18n as xe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
+ import { useI18n as be } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
+ import { Fragment as xe, jsx as d, jsxs as f } from "react/jsx-runtime";
11
11
  //#region src/bigconsole/components/widgets/ActionConfigDialog.tsx
12
12
  var Se = [
13
13
  "POST",
@@ -83,7 +83,7 @@ var Se = [
83
83
  boxShadow: "var(--shadow-elevation-3)",
84
84
  borderRadius: "var(--radius-button)"
85
85
  }, g = r(function({ isOpen: r, action: g, initialWebhook: _, isLoading: v = !1, saveError: Ee, onClose: De, onSave: Oe }) {
86
- let { t: y } = xe(), b = !!g, x = a(null), ke = a(null), Ae = a(null), S = re(), C = a(""), w = a(!1), [T, E] = o(""), [D, O] = o(""), [k, A] = o(!1), [j, M] = o("PRIMARY"), [N, je] = o(""), [P, F] = o("WEBHOOK"), [I, L] = o(""), [R, z] = o("POST"), [B, V] = o(!1), [H, U] = o(!1), [W, G] = o(!1), [K, Me] = o(!1), [Ne, q] = o(() => y("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), [Pe, J] = o(() => y("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), [Y, X] = o(() => y("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), [Fe, Z] = o(() => y("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")), [Q, $] = o(null), Ie = ie(() => {
86
+ let { t: y } = be(), b = !!g, x = a(null), ke = a(null), Ae = a(null), S = re(), C = a(""), w = a(!1), [T, E] = o(""), [D, O] = o(""), [k, A] = o(!1), [j, M] = o("PRIMARY"), [N, je] = o(""), [P, F] = o("WEBHOOK"), [I, L] = o(""), [R, z] = o("POST"), [B, V] = o(!1), [H, U] = o(!1), [W, G] = o(!1), [K, Me] = o(!1), [Ne, q] = o(() => y("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), [Pe, J] = o(() => y("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), [Y, X] = o(() => y("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), [Fe, Z] = o(() => y("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")), [Q, $] = o(null), Ie = ie(() => {
87
87
  let e = {
88
88
  PRIMARY: y("bigconsole.widget.actions.style.primary", "Primary"),
89
89
  SECONDARY: y("bigconsole.widget.actions.style.secondary", "Secondary"),
@@ -547,7 +547,7 @@ var Se = [
547
547
  children: /* @__PURE__ */ d(ce, {
548
548
  type: "submit",
549
549
  disabled: v,
550
- children: v ? /* @__PURE__ */ f(be, { children: [/* @__PURE__ */ d(ve, { className: "size-4" }), y("bigconsole.widget.actions.footer.saving", "Saving...")] }) : b ? y("bigconsole.widget.actions.footer.updateButton", "Update Button") : y("bigconsole.widget.actions.footer.addButton", "Add Button")
550
+ children: v ? /* @__PURE__ */ f(xe, { children: [/* @__PURE__ */ d(ve, { className: "size-4" }), y("bigconsole.widget.actions.footer.saving", "Saving...")] }) : b ? y("bigconsole.widget.actions.footer.updateButton", "Update Button") : y("bigconsole.widget.actions.footer.addButton", "Add Button")
551
551
  })
552
552
  })]
553
553
  })]