@burdenoff/microfe-bigconsole 2026.1012.4 → 2026.1012.5

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 (129) 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/AiPreviewMiniPanel.js +77 -76
  50. package/dist/bigconsole/components/preview/AiPreviewPanel.js +96 -95
  51. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
  52. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
  53. package/dist/bigconsole/components/widgets/PropertiesPanel.js +507 -499
  54. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +14 -14
  55. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +68 -67
  56. package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.d.ts +7 -0
  57. package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.js +12 -0
  58. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
  59. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
  60. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
  61. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
  62. package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
  63. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
  64. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
  65. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
  66. package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
  67. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
  68. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
  69. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
  70. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
  71. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
  72. package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
  73. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
  74. package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
  75. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
  76. package/dist/bigconsole/constants/backendErrors.js +94 -0
  77. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +10 -10
  78. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +67 -67
  79. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +14 -0
  80. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +32 -0
  81. package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +23 -0
  82. package/dist/bigconsole/hooks/useDataSinkAlerts.js +138 -113
  83. package/dist/bigconsole/hooks/useDrilldown.js +3 -3
  84. package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
  85. package/dist/bigconsole/pages/AdminPage.js +130 -130
  86. package/dist/bigconsole/pages/DashboardBuilderPage.js +72 -60
  87. package/dist/bigconsole/pages/DashboardViewPage.js +244 -221
  88. package/dist/bigconsole/pages/DashboardsPage.js +269 -221
  89. package/dist/bigconsole/pages/DataParsersPage.js +180 -157
  90. package/dist/bigconsole/pages/DataSinkAlertsPage.js +62 -55
  91. package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -234
  92. package/dist/bigconsole/pages/DataSinkViewPage.js +1 -1
  93. package/dist/bigconsole/pages/DataSinksPage.js +335 -299
  94. package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
  95. package/dist/bigconsole/pages/InsightsPage.js +279 -265
  96. package/dist/bigconsole/pages/OverviewPage.js +47 -47
  97. package/dist/bigconsole/pages/ParserBuilderPage.js +229 -213
  98. package/dist/bigconsole/pages/ParserViewPage.js +97 -97
  99. package/dist/bigconsole/pages/PipelineBuilderPage.js +256 -214
  100. package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
  101. package/dist/bigconsole/pages/PipelinesPage.js +107 -88
  102. package/dist/bigconsole/pages/SettingsPage.js +179 -173
  103. package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
  104. package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
  105. package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
  106. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
  107. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
  108. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +69 -69
  109. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
  110. package/dist/bigconsole/store/widgetStore.d.ts +12 -0
  111. package/dist/bigconsole/store/widgetStore.js +3 -1
  112. package/dist/bigconsole/utils/backendError.d.ts +18 -0
  113. package/dist/bigconsole/utils/backendError.js +42 -0
  114. package/dist/bigconsole/utils/dashboardList.d.ts +28 -0
  115. package/dist/bigconsole/utils/dashboardList.js +15 -0
  116. package/dist/bigconsole/utils/dataSinkList.d.ts +15 -0
  117. package/dist/bigconsole/utils/dataSinkList.js +15 -0
  118. package/dist/bigconsole/utils/formDirty.d.ts +82 -0
  119. package/dist/bigconsole/utils/formDirty.js +21 -0
  120. package/dist/bigconsole/utils/insightsDraft.d.ts +29 -0
  121. package/dist/bigconsole/utils/insightsDraft.js +8 -0
  122. package/dist/bigconsole/utils/layoutBaseline.d.ts +130 -0
  123. package/dist/bigconsole/utils/layoutBaseline.js +96 -0
  124. package/dist/bigconsole/utils/listSort.d.ts +80 -0
  125. package/dist/bigconsole/utils/listSort.js +85 -0
  126. package/dist/bigconsole/utils/widgetFormDirty.d.ts +16 -0
  127. package/dist/bigconsole/utils/widgetFormDirty.js +13 -0
  128. package/dist/bigconsole/workflowOpen.js +15 -14
  129. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
1
  import { openExternalUrl as e } from "../../utils/safeUrl.js";
2
2
  import { CARD_LINK_POLICY as t, CARD_MARKDOWN_CODE_CLASS as n, CARD_MARKDOWN_LINK_CLASS as r, processCardMarkdown as i, removeUnsafeOpenUrlActions as a, scrubRenderedLinks as o } from "./adaptiveCardContent.js";
3
3
  import { memo as s, useCallback as c, useEffect as l, useRef as u, useState as d } from "react";
4
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
5
- import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
4
+ import { useI18n as f } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
5
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
6
6
  import * as h from "adaptivecards";
7
7
  //#region src/bigconsole/renderers/adapters/AdaptiveCardRenderer.tsx
8
8
  function g(e, t, n) {
@@ -289,7 +289,7 @@ var v = new h.HostConfig({
289
289
  lineColor: "#374151"
290
290
  }
291
291
  }), b = s(function({ widget: n, data: r, template: i, isLoading: s, error: _, onAction: b }) {
292
- let { t: x } = m(), S = u(null), C = u(null), [w, T] = d(null), [E, D] = d(!1), [O, k] = d([]), [A, j] = d(null), [M, N] = d(null);
292
+ let { t: x } = f(), S = u(null), C = u(null), [w, T] = d(null), [E, D] = d(!1), [O, k] = d([]), [A, j] = d(null), [M, N] = d(null);
293
293
  l(() => {
294
294
  let e = !0;
295
295
  return import("adaptivecards-templating").then((t) => {
@@ -362,45 +362,45 @@ var v = new h.HostConfig({
362
362
  A,
363
363
  M,
364
364
  x
365
- ]), s ? /* @__PURE__ */ f("div", {
365
+ ]), s ? /* @__PURE__ */ p("div", {
366
366
  className: "flex items-center justify-center h-full p-4 animate-in fade-in duration-200",
367
- children: /* @__PURE__ */ p("div", {
367
+ children: /* @__PURE__ */ m("div", {
368
368
  className: "animate-pulse space-y-3 w-full",
369
369
  children: [
370
- /* @__PURE__ */ f("div", { className: "h-5 bg-bg-sunken rounded w-3/4" }),
371
- /* @__PURE__ */ p("div", {
370
+ /* @__PURE__ */ p("div", { className: "h-5 bg-bg-sunken rounded w-3/4" }),
371
+ /* @__PURE__ */ m("div", {
372
372
  className: "flex gap-3",
373
- children: [/* @__PURE__ */ f("div", { className: "h-10 w-10 bg-bg-sunken rounded-full" }), /* @__PURE__ */ p("div", {
373
+ children: [/* @__PURE__ */ p("div", { className: "h-10 w-10 bg-bg-sunken rounded-full" }), /* @__PURE__ */ m("div", {
374
374
  className: "flex-1 space-y-2",
375
- children: [/* @__PURE__ */ f("div", { className: "h-4 bg-bg-sunken rounded w-1/2" }), /* @__PURE__ */ f("div", { className: "h-3 bg-bg-sunken rounded w-1/3" })]
375
+ children: [/* @__PURE__ */ p("div", { className: "h-4 bg-bg-sunken rounded w-1/2" }), /* @__PURE__ */ p("div", { className: "h-3 bg-bg-sunken rounded w-1/3" })]
376
376
  })]
377
377
  }),
378
- /* @__PURE__ */ f("div", { className: "h-4 bg-bg-sunken rounded w-full" }),
379
- /* @__PURE__ */ f("div", { className: "h-4 bg-bg-sunken rounded w-5/6" }),
380
- /* @__PURE__ */ p("div", {
378
+ /* @__PURE__ */ p("div", { className: "h-4 bg-bg-sunken rounded w-full" }),
379
+ /* @__PURE__ */ p("div", { className: "h-4 bg-bg-sunken rounded w-5/6" }),
380
+ /* @__PURE__ */ m("div", {
381
381
  className: "grid grid-cols-2 gap-2 mt-4",
382
382
  children: [
383
- /* @__PURE__ */ f("div", { className: "h-3 bg-bg-sunken rounded" }),
384
- /* @__PURE__ */ f("div", { className: "h-3 bg-bg-sunken rounded" }),
385
- /* @__PURE__ */ f("div", { className: "h-3 bg-bg-sunken rounded" }),
386
- /* @__PURE__ */ f("div", { className: "h-3 bg-bg-sunken rounded" })
383
+ /* @__PURE__ */ p("div", { className: "h-3 bg-bg-sunken rounded" }),
384
+ /* @__PURE__ */ p("div", { className: "h-3 bg-bg-sunken rounded" }),
385
+ /* @__PURE__ */ p("div", { className: "h-3 bg-bg-sunken rounded" }),
386
+ /* @__PURE__ */ p("div", { className: "h-3 bg-bg-sunken rounded" })
387
387
  ]
388
388
  })
389
389
  ]
390
390
  })
391
- }) : _ || w ? /* @__PURE__ */ f("div", {
391
+ }) : _ || w ? /* @__PURE__ */ p("div", {
392
392
  className: "flex items-center justify-center h-full p-4",
393
- children: /* @__PURE__ */ p("div", {
393
+ children: /* @__PURE__ */ m("div", {
394
394
  className: "text-center max-w-sm",
395
395
  children: [
396
- /* @__PURE__ */ f("div", {
396
+ /* @__PURE__ */ p("div", {
397
397
  className: "w-12 h-12 mx-auto mb-3 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",
398
- children: /* @__PURE__ */ f("svg", {
398
+ children: /* @__PURE__ */ p("svg", {
399
399
  className: "w-6 h-6 text-red-600 dark:text-red-400",
400
400
  fill: "none",
401
401
  viewBox: "0 0 24 24",
402
402
  stroke: "currentColor",
403
- children: /* @__PURE__ */ f("path", {
403
+ children: /* @__PURE__ */ p("path", {
404
404
  strokeLinecap: "round",
405
405
  strokeLinejoin: "round",
406
406
  strokeWidth: 2,
@@ -408,39 +408,39 @@ var v = new h.HostConfig({
408
408
  })
409
409
  })
410
410
  }),
411
- /* @__PURE__ */ f("p", {
411
+ /* @__PURE__ */ p("p", {
412
412
  className: "font-medium text-status-error-text",
413
413
  children: x("bigconsole.widget.renderer.adaptiveCard.errorRendering", "Error rendering card")
414
414
  }),
415
- /* @__PURE__ */ f("p", {
415
+ /* @__PURE__ */ p("p", {
416
416
  className: "text-sm text-secondary mt-1",
417
417
  children: _ || w
418
418
  }),
419
- O.length > 0 && /* @__PURE__ */ p("div", {
419
+ O.length > 0 && /* @__PURE__ */ m("div", {
420
420
  className: "mt-3 p-2 bg-yellow-50 dark:bg-yellow-900/20 rounded text-left",
421
- children: [/* @__PURE__ */ f("p", {
421
+ children: [/* @__PURE__ */ p("p", {
422
422
  className: "text-xs font-medium text-yellow-700 dark:text-yellow-400 mb-1",
423
423
  children: x("bigconsole.widget.renderer.adaptiveCard.templateWarnings", "Template Warnings:")
424
- }), O.map((e, t) => /* @__PURE__ */ f("p", {
424
+ }), O.map((e, t) => /* @__PURE__ */ p("p", {
425
425
  className: "text-xs text-yellow-600 dark:text-yellow-300",
426
426
  children: e
427
427
  }, t))]
428
428
  })
429
429
  ]
430
430
  })
431
- }) : !i && !r ? /* @__PURE__ */ f("div", {
431
+ }) : !i && !r ? /* @__PURE__ */ p("div", {
432
432
  className: "flex items-center justify-center h-full p-4 animate-in fade-in duration-200",
433
- children: /* @__PURE__ */ p("div", {
433
+ children: /* @__PURE__ */ m("div", {
434
434
  className: "text-center max-w-sm",
435
435
  children: [
436
- /* @__PURE__ */ f("div", {
436
+ /* @__PURE__ */ p("div", {
437
437
  className: "w-12 h-12 mx-auto mb-3 rounded-full bg-bg-sunken flex items-center justify-center",
438
- children: /* @__PURE__ */ f("svg", {
438
+ children: /* @__PURE__ */ p("svg", {
439
439
  className: "w-6 h-6 text-text-secondary",
440
440
  fill: "none",
441
441
  viewBox: "0 0 24 24",
442
442
  stroke: "currentColor",
443
- children: /* @__PURE__ */ f("path", {
443
+ children: /* @__PURE__ */ p("path", {
444
444
  strokeLinecap: "round",
445
445
  strokeLinejoin: "round",
446
446
  strokeWidth: 2,
@@ -448,17 +448,17 @@ var v = new h.HostConfig({
448
448
  })
449
449
  })
450
450
  }),
451
- /* @__PURE__ */ f("p", {
451
+ /* @__PURE__ */ p("p", {
452
452
  className: "font-medium text-secondary",
453
453
  children: x("bigconsole.widget.renderer.adaptiveCard.noContent", "No content")
454
454
  }),
455
- /* @__PURE__ */ f("p", {
455
+ /* @__PURE__ */ p("p", {
456
456
  className: "text-sm text-text-secondary mt-1",
457
457
  children: x("bigconsole.widget.renderer.adaptiveCard.noContentHint", "Configure a template or provide data to display an Adaptive Card")
458
458
  })
459
459
  ]
460
460
  })
461
- }) : /* @__PURE__ */ f("div", {
461
+ }) : /* @__PURE__ */ p("div", {
462
462
  ref: S,
463
463
  className: "adaptive-card-wrapper h-full overflow-auto",
464
464
  style: { "--ac-font-family": "Inter, system-ui, -apple-system, sans-serif" }
@@ -1,18 +1,18 @@
1
1
  import { openExternalUrl as e, toSafeHref as t } from "../../utils/safeUrl.js";
2
2
  import n, { memo as r, useCallback as i, useMemo as a } from "react";
3
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
4
- import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
3
+ import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
4
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
5
  //#region src/bigconsole/renderers/adapters/BlockKitRenderer.tsx
6
6
  var l = { allowMailto: !0 };
7
7
  function u(e, r, i) {
8
8
  let a = t(r, l);
9
- return a ? /* @__PURE__ */ o("a", {
9
+ return a ? /* @__PURE__ */ s("a", {
10
10
  href: a,
11
11
  className: "text-blue-600 dark:text-blue-400 underline",
12
12
  target: "_blank",
13
13
  rel: "noopener noreferrer",
14
14
  children: i
15
- }, e) : /* @__PURE__ */ o(n.Fragment, { children: i }, e);
15
+ }, e) : /* @__PURE__ */ s(n.Fragment, { children: i }, e);
16
16
  }
17
17
  function d(e) {
18
18
  if (!e) return null;
@@ -22,22 +22,22 @@ function d(e) {
22
22
  for (; i.length > 0;) {
23
23
  let e = i.match(/^\*([^*]+)\*/);
24
24
  if (e) {
25
- r.push(/* @__PURE__ */ o("strong", { children: e[1] }, a++)), i = i.slice(e[0].length);
25
+ r.push(/* @__PURE__ */ s("strong", { children: e[1] }, a++)), i = i.slice(e[0].length);
26
26
  continue;
27
27
  }
28
28
  let t = i.match(/^_([^_]+)_/);
29
29
  if (t) {
30
- r.push(/* @__PURE__ */ o("em", { children: t[1] }, a++)), i = i.slice(t[0].length);
30
+ r.push(/* @__PURE__ */ s("em", { children: t[1] }, a++)), i = i.slice(t[0].length);
31
31
  continue;
32
32
  }
33
- let s = i.match(/^~([^~]+)~/);
34
- if (s) {
35
- r.push(/* @__PURE__ */ o("del", { children: s[1] }, a++)), i = i.slice(s[0].length);
33
+ let o = i.match(/^~([^~]+)~/);
34
+ if (o) {
35
+ r.push(/* @__PURE__ */ s("del", { children: o[1] }, a++)), i = i.slice(o[0].length);
36
36
  continue;
37
37
  }
38
38
  let c = i.match(/^`([^`]+)`/);
39
39
  if (c) {
40
- r.push(/* @__PURE__ */ o("code", {
40
+ r.push(/* @__PURE__ */ s("code", {
41
41
  className: "bg-bg-sunken px-1 rounded text-sm",
42
42
  children: c[1]
43
43
  }, a++)), i = i.slice(c[0].length);
@@ -55,12 +55,12 @@ function d(e) {
55
55
  }
56
56
  let f = i.match(/^[^*_~`<]+/);
57
57
  if (f) {
58
- r.push(/* @__PURE__ */ o(n.Fragment, { children: f[0] }, a++)), i = i.slice(f[0].length);
58
+ r.push(/* @__PURE__ */ s(n.Fragment, { children: f[0] }, a++)), i = i.slice(f[0].length);
59
59
  continue;
60
60
  }
61
- r.push(/* @__PURE__ */ o(n.Fragment, { children: i[0] }, a++)), i = i.slice(1);
61
+ r.push(/* @__PURE__ */ s(n.Fragment, { children: i[0] }, a++)), i = i.slice(1);
62
62
  }
63
- return /* @__PURE__ */ o("span", { children: r });
63
+ return /* @__PURE__ */ s("span", { children: r });
64
64
  }
65
65
  return e.text;
66
66
  }
@@ -93,68 +93,68 @@ function m(e, t) {
93
93
  }
94
94
  var h = r(function({ block: e, index: t, onAction: n }) {
95
95
  switch (e.type) {
96
- case "header": return /* @__PURE__ */ o("div", {
96
+ case "header": return /* @__PURE__ */ s("div", {
97
97
  className: "py-2",
98
- children: /* @__PURE__ */ o("h2", {
98
+ children: /* @__PURE__ */ s("h2", {
99
99
  className: "text-lg font-bold text-primary",
100
100
  children: d(e.text)
101
101
  })
102
102
  });
103
- case "section": return /* @__PURE__ */ s("div", {
103
+ case "section": return /* @__PURE__ */ c("div", {
104
104
  className: "py-2 flex items-start gap-4",
105
- children: [/* @__PURE__ */ s("div", {
105
+ children: [/* @__PURE__ */ c("div", {
106
106
  className: "flex-1",
107
- children: [e.text && /* @__PURE__ */ o("p", {
107
+ children: [e.text && /* @__PURE__ */ s("p", {
108
108
  className: "text-primary",
109
109
  children: d(e.text)
110
- }), e.fields && e.fields.length > 0 && /* @__PURE__ */ o("div", {
110
+ }), e.fields && e.fields.length > 0 && /* @__PURE__ */ s("div", {
111
111
  className: "grid grid-cols-2 gap-2 mt-2",
112
- children: e.fields.map((e, t) => /* @__PURE__ */ o("div", {
112
+ children: e.fields.map((e, t) => /* @__PURE__ */ s("div", {
113
113
  className: "text-sm",
114
114
  children: d(e)
115
115
  }, t))
116
116
  })]
117
- }), e.accessory && /* @__PURE__ */ o("div", {
117
+ }), e.accessory && /* @__PURE__ */ s("div", {
118
118
  className: "flex-shrink-0",
119
- children: /* @__PURE__ */ o(g, {
119
+ children: /* @__PURE__ */ s(g, {
120
120
  accessory: e.accessory,
121
121
  onAction: n
122
122
  })
123
123
  })]
124
124
  });
125
- case "divider": return /* @__PURE__ */ o("hr", { className: "my-2 border-default" });
126
- case "image": return /* @__PURE__ */ s("div", {
125
+ case "divider": return /* @__PURE__ */ s("hr", { className: "my-2 border-default" });
126
+ case "image": return /* @__PURE__ */ c("div", {
127
127
  className: "py-2",
128
- children: [e.title && /* @__PURE__ */ o("p", {
128
+ children: [e.title && /* @__PURE__ */ s("p", {
129
129
  className: "text-sm text-secondary mb-1",
130
130
  children: d(e.title)
131
- }), /* @__PURE__ */ o("img", {
131
+ }), /* @__PURE__ */ s("img", {
132
132
  src: e.image_url,
133
133
  alt: e.alt_text || "",
134
134
  className: "max-w-full h-auto rounded"
135
135
  })]
136
136
  });
137
- case "context": return /* @__PURE__ */ o("div", {
137
+ case "context": return /* @__PURE__ */ s("div", {
138
138
  className: "py-1 flex items-center gap-2 flex-wrap text-sm text-secondary",
139
- children: e.elements?.map((e, t) => /* @__PURE__ */ o("span", { children: e.type === "image" ? /* @__PURE__ */ o("img", {
139
+ children: e.elements?.map((e, t) => /* @__PURE__ */ s("span", { children: e.type === "image" ? /* @__PURE__ */ s("img", {
140
140
  src: e.image_url,
141
141
  alt: e.alt_text || "",
142
142
  className: "w-5 h-5 rounded inline-block"
143
143
  }) : d(e.text) }, t))
144
144
  });
145
- case "actions": return /* @__PURE__ */ o("div", {
145
+ case "actions": return /* @__PURE__ */ s("div", {
146
146
  className: "py-2 flex gap-2 flex-wrap",
147
- children: e.elements?.map((e, t) => /* @__PURE__ */ o(_, {
147
+ children: e.elements?.map((e, t) => /* @__PURE__ */ s(_, {
148
148
  element: e,
149
149
  onAction: n
150
150
  }, t))
151
151
  });
152
- case "input": return /* @__PURE__ */ s("div", {
152
+ case "input": return /* @__PURE__ */ c("div", {
153
153
  className: "py-2",
154
- children: [e.label ? /* @__PURE__ */ o("label", {
154
+ children: [e.label ? /* @__PURE__ */ s("label", {
155
155
  className: "block text-sm font-medium text-secondary mb-1",
156
156
  children: d(e.label)
157
- }) : null, /* @__PURE__ */ o("input", {
157
+ }) : null, /* @__PURE__ */ s("input", {
158
158
  type: "text",
159
159
  className: "w-full px-3 py-2 border border-default rounded-md bg-surface text-primary transition-colors focus:ring-2 focus:ring-primary/20",
160
160
  placeholder: (() => {
@@ -163,33 +163,33 @@ var h = r(function({ block: e, index: t, onAction: n }) {
163
163
  })()
164
164
  })]
165
165
  });
166
- case "rich_text": return /* @__PURE__ */ o("div", {
166
+ case "rich_text": return /* @__PURE__ */ s("div", {
167
167
  className: "py-2 text-primary",
168
- children: e.elements?.map((e, t) => /* @__PURE__ */ o("span", { children: d(e.text) }, t))
168
+ children: e.elements?.map((e, t) => /* @__PURE__ */ s("span", { children: d(e.text) }, t))
169
169
  });
170
170
  default: return null;
171
171
  }
172
172
  }), g = r(function({ accessory: e, onAction: t }) {
173
173
  switch (e.type) {
174
- case "image": return /* @__PURE__ */ o("img", {
174
+ case "image": return /* @__PURE__ */ s("img", {
175
175
  src: e.image_url,
176
176
  alt: e.alt_text || "",
177
177
  className: "w-12 h-12 rounded object-cover"
178
178
  });
179
- case "button": return /* @__PURE__ */ o("button", {
179
+ case "button": return /* @__PURE__ */ s("button", {
180
180
  type: "button",
181
181
  onClick: () => t?.(e.action_id || "", e.value),
182
182
  className: `px-3 py-1.5 text-sm font-medium rounded ${f(e.style)}`,
183
183
  children: d(e.text)
184
184
  });
185
- case "overflow": return /* @__PURE__ */ o("button", {
185
+ case "overflow": return /* @__PURE__ */ s("button", {
186
186
  type: "button",
187
187
  className: "p-1 text-secondary hover:text-primary transition-colors",
188
- children: /* @__PURE__ */ o("svg", {
188
+ children: /* @__PURE__ */ s("svg", {
189
189
  className: "w-5 h-5",
190
190
  fill: "currentColor",
191
191
  viewBox: "0 0 20 20",
192
- children: /* @__PURE__ */ o("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
192
+ children: /* @__PURE__ */ s("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
193
193
  })
194
194
  });
195
195
  default: return null;
@@ -199,44 +199,44 @@ var h = r(function({ block: e, index: t, onAction: n }) {
199
199
  t.action_id && n?.(t.action_id, t.value), t.url && e(t.url);
200
200
  }, [t, n]);
201
201
  switch (t.type) {
202
- case "button": return /* @__PURE__ */ o("button", {
202
+ case "button": return /* @__PURE__ */ s("button", {
203
203
  type: "button",
204
204
  onClick: r,
205
205
  className: `px-4 py-2 text-sm font-medium rounded ${f(t.style)}`,
206
206
  children: d(t.text)
207
207
  });
208
- case "static_select": return /* @__PURE__ */ s("select", {
208
+ case "static_select": return /* @__PURE__ */ c("select", {
209
209
  className: "px-3 py-2 text-sm border border-default rounded bg-surface text-primary transition-colors focus:ring-2 focus:ring-primary/20",
210
210
  onChange: (e) => n?.(t.action_id || "", e.target.value),
211
- children: [t.placeholder ? /* @__PURE__ */ o("option", {
211
+ children: [t.placeholder ? /* @__PURE__ */ s("option", {
212
212
  value: "",
213
213
  children: d(t.placeholder)
214
- }) : null, t.options?.map((e, t) => /* @__PURE__ */ o("option", {
214
+ }) : null, t.options?.map((e, t) => /* @__PURE__ */ s("option", {
215
215
  value: e.value,
216
216
  children: d(e.text)
217
217
  }, t))]
218
218
  });
219
- case "datepicker": return /* @__PURE__ */ o("input", {
219
+ case "datepicker": return /* @__PURE__ */ s("input", {
220
220
  type: "date",
221
221
  className: "px-3 py-2 text-sm border border-default rounded bg-surface text-primary transition-colors focus:ring-2 focus:ring-primary/20",
222
222
  onChange: (e) => n?.(t.action_id || "", e.target.value)
223
223
  });
224
- case "checkboxes": return /* @__PURE__ */ o("div", {
224
+ case "checkboxes": return /* @__PURE__ */ s("div", {
225
225
  className: "space-y-1",
226
- children: t.options?.map((e, r) => /* @__PURE__ */ s("label", {
226
+ children: t.options?.map((e, r) => /* @__PURE__ */ c("label", {
227
227
  className: "flex items-center gap-2 text-sm",
228
- children: [/* @__PURE__ */ o("input", {
228
+ children: [/* @__PURE__ */ s("input", {
229
229
  type: "checkbox",
230
230
  className: "rounded border-default transition-colors",
231
231
  onChange: (r) => n?.(t.action_id || "", e.value, { checked: r.target.checked })
232
232
  }), d(e.text)]
233
233
  }, r))
234
234
  });
235
- case "radio_buttons": return /* @__PURE__ */ o("div", {
235
+ case "radio_buttons": return /* @__PURE__ */ s("div", {
236
236
  className: "space-y-1",
237
- children: t.options?.map((e, r) => /* @__PURE__ */ s("label", {
237
+ children: t.options?.map((e, r) => /* @__PURE__ */ c("label", {
238
238
  className: "flex items-center gap-2 text-sm",
239
- children: [/* @__PURE__ */ o("input", {
239
+ children: [/* @__PURE__ */ s("input", {
240
240
  type: "radio",
241
241
  name: t.action_id,
242
242
  className: "border-default transition-colors",
@@ -310,7 +310,7 @@ function b(e) {
310
310
  return e == null ? "-" : typeof e == "boolean" ? e ? "Yes" : "No" : typeof e == "object" ? JSON.stringify(e) : String(e);
311
311
  }
312
312
  var x = r(function({ widget: e, data: t, template: n, isLoading: r, error: l, onDrilldown: u, onAction: d }) {
313
- let { t: f } = c(), m = a(() => {
313
+ let { t: f } = o(), m = a(() => {
314
314
  if (n && "blocks" in n) return p(n, t);
315
315
  if (t && "blocks" in t) return t;
316
316
  if (t && Object.keys(t).length > 0) {
@@ -328,51 +328,51 @@ var x = r(function({ widget: e, data: t, template: n, isLoading: r, error: l, on
328
328
  ...n
329
329
  });
330
330
  }, [d]);
331
- return r ? /* @__PURE__ */ o("div", {
331
+ return r ? /* @__PURE__ */ s("div", {
332
332
  className: "flex items-center justify-center h-full p-4 animate-in fade-in duration-200",
333
- children: /* @__PURE__ */ s("div", {
333
+ children: /* @__PURE__ */ c("div", {
334
334
  className: "animate-pulse space-y-2 w-full",
335
335
  children: [
336
- /* @__PURE__ */ o("div", { className: "h-4 bg-bg-sunken rounded w-3/4" }),
337
- /* @__PURE__ */ o("div", { className: "h-4 bg-bg-sunken rounded w-1/2" }),
338
- /* @__PURE__ */ o("div", { className: "h-4 bg-bg-sunken rounded w-5/6" })
336
+ /* @__PURE__ */ s("div", { className: "h-4 bg-bg-sunken rounded w-3/4" }),
337
+ /* @__PURE__ */ s("div", { className: "h-4 bg-bg-sunken rounded w-1/2" }),
338
+ /* @__PURE__ */ s("div", { className: "h-4 bg-bg-sunken rounded w-5/6" })
339
339
  ]
340
340
  })
341
- }) : l ? /* @__PURE__ */ o("div", {
341
+ }) : l ? /* @__PURE__ */ s("div", {
342
342
  className: "flex items-center justify-center h-full p-4 text-red-600 dark:text-red-400",
343
- children: /* @__PURE__ */ s("div", {
343
+ children: /* @__PURE__ */ c("div", {
344
344
  className: "text-center",
345
- children: [/* @__PURE__ */ o("p", {
345
+ children: [/* @__PURE__ */ s("p", {
346
346
  className: "font-medium",
347
347
  children: f("bigconsole.widget.renderer.blockKit.errorRendering", "Error rendering blocks")
348
- }), /* @__PURE__ */ o("p", {
348
+ }), /* @__PURE__ */ s("p", {
349
349
  className: "text-sm mt-1",
350
350
  children: l
351
351
  })]
352
352
  })
353
- }) : m?.blocks?.length ? /* @__PURE__ */ s("div", {
353
+ }) : m?.blocks?.length ? /* @__PURE__ */ c("div", {
354
354
  className: "flex flex-col h-full p-4 bg-surface",
355
- children: [m.blocks.map((e, t) => /* @__PURE__ */ o(h, {
355
+ children: [m.blocks.map((e, t) => /* @__PURE__ */ s(h, {
356
356
  block: e,
357
357
  index: t,
358
358
  onAction: g
359
- }, t)), m.attachments?.map((e, t) => /* @__PURE__ */ s("div", {
359
+ }, t)), m.attachments?.map((e, t) => /* @__PURE__ */ c("div", {
360
360
  className: "mt-4 border-l-4 pl-3",
361
361
  style: { borderLeftColor: e.color || "var(--color-border)" },
362
- children: [e.blocks?.map((e, t) => /* @__PURE__ */ o(h, {
362
+ children: [e.blocks?.map((e, t) => /* @__PURE__ */ s(h, {
363
363
  block: e,
364
364
  index: t,
365
365
  onAction: g
366
- }, t)), e.fallback && !e.blocks && /* @__PURE__ */ o("p", {
366
+ }, t)), e.fallback && !e.blocks && /* @__PURE__ */ s("p", {
367
367
  className: "text-sm text-secondary",
368
368
  children: e.fallback
369
369
  })]
370
370
  }, `attachment-${t}`))]
371
- }) : /* @__PURE__ */ o("div", {
371
+ }) : /* @__PURE__ */ s("div", {
372
372
  className: "flex items-center justify-center h-full p-4 text-secondary animate-in fade-in duration-200",
373
- children: /* @__PURE__ */ s("div", {
373
+ children: /* @__PURE__ */ c("div", {
374
374
  className: "text-center",
375
- children: [/* @__PURE__ */ o("p", { children: f("bigconsole.widget.renderer.blockKit.noContent", "No content to display") }), /* @__PURE__ */ o("p", {
375
+ children: [/* @__PURE__ */ s("p", { children: f("bigconsole.widget.renderer.blockKit.noContent", "No content to display") }), /* @__PURE__ */ s("p", {
376
376
  className: "text-sm mt-1",
377
377
  children: f("bigconsole.widget.renderer.blockKit.configureBlocks", "Configure blocks or provide data")
378
378
  })]