@burdenoff/microfe-bigconsole 2026.1112.2 → 2026.1113.2

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 (40) hide show
  1. package/dist/bigconsole/components/datasink/DataSinkCard.js +60 -58
  2. package/dist/bigconsole/components/widgets/WidgetWrapper.js +123 -121
  3. package/dist/bigconsole/context/BigConsoleContext.d.ts +2 -0
  4. package/dist/bigconsole/context/BigConsoleContext.js +14 -12
  5. package/dist/bigconsole/pages/DashboardViewPage.js +241 -239
  6. package/dist/bigconsole/pages/DashboardsPage.js +265 -262
  7. package/dist/bigconsole/pages/DataSinkViewPage.js +253 -251
  8. package/dist/bigconsole/pages/DataSinksPage.js +162 -160
  9. package/dist/bigconsole/pages/SettingsPage.js +127 -123
  10. package/dist/bigconsole/proactive/actions.d.ts +16 -0
  11. package/dist/bigconsole/proactive/actions.js +34 -0
  12. package/dist/bigconsole/proactive/activityEntity.d.ts +5 -0
  13. package/dist/bigconsole/proactive/activityEntity.js +27 -0
  14. package/dist/bigconsole/proactive/entities.d.ts +16 -0
  15. package/dist/bigconsole/proactive/entities.js +20 -0
  16. package/dist/bigconsole/proactive/index.d.ts +15 -0
  17. package/dist/bigconsole/proactive/index.js +5 -0
  18. package/dist/bigconsole/proactive/routes.d.ts +11 -0
  19. package/dist/bigconsole/proactive/routes.js +6 -0
  20. package/dist/bigconsole/types/index.d.ts +7 -0
  21. package/dist/generated/wspace-operations.js +213 -19
  22. package/dist/node_modules/zod/v4/classic/errors.js +42 -0
  23. package/dist/node_modules/zod/v4/classic/parse.js +5 -0
  24. package/dist/node_modules/zod/v4/classic/schemas.js +622 -0
  25. package/dist/node_modules/zod/v4/core/api.js +427 -0
  26. package/dist/node_modules/zod/v4/core/checks.js +141 -0
  27. package/dist/node_modules/zod/v4/core/core.js +82 -0
  28. package/dist/node_modules/zod/v4/core/doc.js +27 -0
  29. package/dist/node_modules/zod/v4/core/errors.js +88 -0
  30. package/dist/node_modules/zod/v4/core/json-schema-processors.js +190 -0
  31. package/dist/node_modules/zod/v4/core/memoizer.js +186 -0
  32. package/dist/node_modules/zod/v4/core/parse.js +157 -0
  33. package/dist/node_modules/zod/v4/core/regexes.js +32 -0
  34. package/dist/node_modules/zod/v4/core/registries.js +39 -0
  35. package/dist/node_modules/zod/v4/core/schemas.js +856 -0
  36. package/dist/node_modules/zod/v4/core/to-json-schema.js +328 -0
  37. package/dist/node_modules/zod/v4/core/util.js +415 -0
  38. package/dist/node_modules/zod/v4/core/versions.js +7 -0
  39. package/dist/node_modules/zod/v4/locales/en.js +94 -0
  40. package/package.json +8 -4
@@ -3,76 +3,78 @@ import { DataSinkStatusBadge as t } from "./DataSinkStatusBadge.js";
3
3
  import "../common/index.js";
4
4
  import { formatByteSize as n } from "../../utils/format.js";
5
5
  import { describeSetupGaps as r, getSetupGaps as i } from "../../utils/dataSinkSetup.js";
6
- import { memo as a, useCallback as o } from "react";
7
- import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
- import { formatDistanceToNow as u } from "date-fns";
6
+ import { dataSinkSuggestAnchorProps as a } from "../../proactive/entities.js";
7
+ import { memo as o, useCallback as s } from "react";
8
+ import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
10
+ import { formatDistanceToNow as d } from "date-fns";
10
11
  // src/bigconsole/components/datasink/DataSinkCard.tsx
11
- var d = `inline-flex min-h-[var(--size-controlHeight-md)] items-center justify-center rounded-button px-3 py-1.5 text-xs font-medium motion-safe:transition-colors ${e}`, f = a(function({ dataSink: e, setupState: a, onView: f, onEdit: p, onRefresh: m, onExport: h, onDelete: g, onContinueSetup: _, canEdit: v = !0, canRefresh: y = !0, canDelete: b = !0 }) {
12
- let x = o((t) => {
13
- t.stopPropagation(), f?.(e.id);
14
- }, [e.id, f]), S = o((t) => {
12
+ var f = `inline-flex min-h-[var(--size-controlHeight-md)] items-center justify-center rounded-button px-3 py-1.5 text-xs font-medium motion-safe:transition-colors ${e}`, p = o(function({ dataSink: e, setupState: o, onView: p, onEdit: m, onRefresh: h, onExport: g, onDelete: _, onContinueSetup: v, canEdit: y = !0, canRefresh: b = !0, canDelete: x = !0 }) {
13
+ let S = s((t) => {
15
14
  t.stopPropagation(), p?.(e.id);
16
- }, [e.id, p]), C = o((t) => {
15
+ }, [e.id, p]), C = s((t) => {
17
16
  t.stopPropagation(), m?.(e.id);
18
- }, [e.id, m]), w = o((t) => {
17
+ }, [e.id, m]), w = s((t) => {
19
18
  t.stopPropagation(), h?.(e.id);
20
- }, [e.id, h]), T = o((t) => {
19
+ }, [e.id, h]), T = s((t) => {
21
20
  t.stopPropagation(), g?.(e.id);
22
- }, [e.id, g]), E = o((t) => {
21
+ }, [e.id, g]), E = s((t) => {
23
22
  t.stopPropagation(), _?.(e.id);
24
- }, [e.id, _]), { t: D } = s(), O = (a ?? e.setupState) === "completed", k = r(i(e), D), A = e.lastRefreshedAt ? u(new Date(e.lastRefreshedAt), { addSuffix: !0 }) : D("bigconsole.dataSinks.view.never", "Never");
25
- return /* @__PURE__ */ l("article", {
23
+ }, [e.id, _]), D = s((t) => {
24
+ t.stopPropagation(), v?.(e.id);
25
+ }, [e.id, v]), { t: O } = c(), k = (o ?? e.setupState) === "completed", A = r(i(e), O), j = e.lastRefreshedAt ? d(new Date(e.lastRefreshedAt), { addSuffix: !0 }) : O("bigconsole.dataSinks.view.never", "Never");
26
+ return /* @__PURE__ */ u("article", {
27
+ ...a(e.id),
26
28
  className: "\n min-w-0\n cursor-pointer\n rounded-card\n border border-transparent\n bg-bg-sunken\n p-card-padding\n hover:border-[var(--color-action-primary-bg)]\n motion-safe:transition-colors\n ",
27
- onClick: x,
29
+ onClick: S,
28
30
  children: [
29
- /* @__PURE__ */ l("div", {
31
+ /* @__PURE__ */ u("div", {
30
32
  className: "mb-3 flex items-start justify-between gap-icon-gap",
31
- children: [/* @__PURE__ */ l("div", {
33
+ children: [/* @__PURE__ */ u("div", {
32
34
  className: "min-w-0 flex-1",
33
- children: [/* @__PURE__ */ c("h3", {
35
+ children: [/* @__PURE__ */ l("h3", {
34
36
  className: "truncate text-sm font-semibold text-text-primary",
35
37
  children: e.name || "Untitled data sink"
36
- }), /* @__PURE__ */ c("p", {
38
+ }), /* @__PURE__ */ l("p", {
37
39
  className: "mt-0.5 truncate font-mono text-xs text-text-secondary",
38
40
  children: e.key
39
41
  })]
40
- }), /* @__PURE__ */ c(t, {
42
+ }), /* @__PURE__ */ l(t, {
41
43
  status: e.status,
42
44
  size: "sm"
43
45
  })]
44
46
  }),
45
- e.description && /* @__PURE__ */ c("p", {
47
+ e.description && /* @__PURE__ */ l("p", {
46
48
  className: "mb-3 line-clamp-2 text-xs text-text-secondary",
47
49
  children: e.description
48
50
  }),
49
- /* @__PURE__ */ l("div", {
51
+ /* @__PURE__ */ u("div", {
50
52
  className: "mb-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-text-secondary",
51
53
  children: [
52
- /* @__PURE__ */ l("span", {
54
+ /* @__PURE__ */ u("span", {
53
55
  className: "flex items-center gap-1",
54
- children: [/* @__PURE__ */ c("svg", {
56
+ children: [/* @__PURE__ */ l("svg", {
55
57
  className: "w-3.5 h-3.5",
56
58
  fill: "none",
57
59
  stroke: "currentColor",
58
60
  viewBox: "0 0 24 24",
59
- children: /* @__PURE__ */ c("path", {
61
+ children: /* @__PURE__ */ l("path", {
60
62
  strokeLinecap: "round",
61
63
  strokeLinejoin: "round",
62
64
  strokeWidth: 2,
63
65
  d: "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"
64
66
  })
65
- }), A]
67
+ }), j]
66
68
  }),
67
- /* @__PURE__ */ l("span", {
69
+ /* @__PURE__ */ u("span", {
68
70
  className: "flex items-center gap-1",
69
71
  title: "Stored payload size",
70
- children: [/* @__PURE__ */ c("svg", {
72
+ children: [/* @__PURE__ */ l("svg", {
71
73
  className: "w-3.5 h-3.5",
72
74
  fill: "none",
73
75
  stroke: "currentColor",
74
76
  viewBox: "0 0 24 24",
75
- children: /* @__PURE__ */ c("path", {
77
+ children: /* @__PURE__ */ l("path", {
76
78
  strokeLinecap: "round",
77
79
  strokeLinejoin: "round",
78
80
  strokeWidth: 2,
@@ -80,15 +82,15 @@ var d = `inline-flex min-h-[var(--size-controlHeight-md)] items-center justify-c
80
82
  })
81
83
  }), n(e.sizeBytes)]
82
84
  }),
83
- e.linkedWorkflowCount !== void 0 && e.linkedWorkflowCount > 0 && /* @__PURE__ */ l("span", {
85
+ e.linkedWorkflowCount !== void 0 && e.linkedWorkflowCount > 0 && /* @__PURE__ */ u("span", {
84
86
  className: "flex items-center gap-1",
85
87
  children: [
86
- /* @__PURE__ */ c("svg", {
88
+ /* @__PURE__ */ l("svg", {
87
89
  className: "w-3.5 h-3.5",
88
90
  fill: "none",
89
91
  stroke: "currentColor",
90
92
  viewBox: "0 0 24 24",
91
- children: /* @__PURE__ */ c("path", {
93
+ children: /* @__PURE__ */ l("path", {
92
94
  strokeLinecap: "round",
93
95
  strokeLinejoin: "round",
94
96
  strokeWidth: 2,
@@ -102,54 +104,54 @@ var d = `inline-flex min-h-[var(--size-controlHeight-md)] items-center justify-c
102
104
  })
103
105
  ]
104
106
  }),
105
- !O && /* @__PURE__ */ l("div", {
107
+ !k && /* @__PURE__ */ u("div", {
106
108
  className: "mb-3 flex items-center justify-between gap-icon-gap rounded-input border border-[var(--color-status-warning-border)] bg-[var(--color-status-warning-bgSubtle)] p-2",
107
- children: [/* @__PURE__ */ c("span", {
109
+ children: [/* @__PURE__ */ l("span", {
108
110
  className: "text-xs text-[var(--color-status-warning-text)]",
109
- children: k
110
- }), v && _ && /* @__PURE__ */ c("button", {
111
+ children: A
112
+ }), y && v && /* @__PURE__ */ l("button", {
111
113
  type: "button",
112
- onClick: E,
114
+ onClick: D,
113
115
  className: "rounded-button px-1 text-xs font-medium text-text-link hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface",
114
- children: D("bigconsole.dataSinks.setup.continue", "Continue")
116
+ children: O("bigconsole.dataSinks.setup.continue", "Continue")
115
117
  })]
116
118
  }),
117
- /* @__PURE__ */ l("div", {
119
+ /* @__PURE__ */ u("div", {
118
120
  className: "flex flex-wrap items-center gap-2 border-t border-[var(--color-border-subtle)] pt-2",
119
121
  children: [
120
- /* @__PURE__ */ c("button", {
121
- type: "button",
122
- onClick: x,
123
- className: `${d} flex-1 bg-bg-surface text-text-primary hover:bg-bg-elevated`,
124
- children: D("bigconsole.dataSinks.actions.view", "View")
125
- }),
126
- v && /* @__PURE__ */ c("button", {
122
+ /* @__PURE__ */ l("button", {
127
123
  type: "button",
128
124
  onClick: S,
129
- className: `${d} text-text-secondary hover:bg-bg-surface hover:text-text-primary`,
130
- children: D("bigconsole.dataSinks.actions.edit", "Edit")
125
+ className: `${f} flex-1 bg-bg-surface text-text-primary hover:bg-bg-elevated`,
126
+ children: O("bigconsole.dataSinks.actions.view", "View")
131
127
  }),
132
- y && /* @__PURE__ */ c("button", {
128
+ y && /* @__PURE__ */ l("button", {
133
129
  type: "button",
134
130
  onClick: C,
135
- className: `${d} text-text-secondary hover:bg-bg-surface hover:text-text-primary`,
136
- children: D("bigconsole.dataSinks.actions.refresh", "Refresh")
131
+ className: `${f} text-text-secondary hover:bg-bg-surface hover:text-text-primary`,
132
+ children: O("bigconsole.dataSinks.actions.edit", "Edit")
137
133
  }),
138
- h && /* @__PURE__ */ c("button", {
134
+ b && /* @__PURE__ */ l("button", {
139
135
  type: "button",
140
136
  onClick: w,
141
- className: `${d} text-text-secondary hover:bg-bg-surface hover:text-text-primary`,
142
- children: D("bigconsole.dataSinks.actions.export", "Export")
137
+ className: `${f} text-text-secondary hover:bg-bg-surface hover:text-text-primary`,
138
+ children: O("bigconsole.dataSinks.actions.refresh", "Refresh")
143
139
  }),
144
- b && /* @__PURE__ */ c("button", {
140
+ g && /* @__PURE__ */ l("button", {
145
141
  type: "button",
146
142
  onClick: T,
147
- className: `${d} text-status-error-text hover:bg-[var(--color-status-error-bgSubtle)]`,
148
- children: D("bigconsole.dataSinks.actions.delete", "Delete")
143
+ className: `${f} text-text-secondary hover:bg-bg-surface hover:text-text-primary`,
144
+ children: O("bigconsole.dataSinks.actions.export", "Export")
145
+ }),
146
+ x && /* @__PURE__ */ l("button", {
147
+ type: "button",
148
+ onClick: E,
149
+ className: `${f} text-status-error-text hover:bg-[var(--color-status-error-bgSubtle)]`,
150
+ children: O("bigconsole.dataSinks.actions.delete", "Delete")
149
151
  })
150
152
  ]
151
153
  })
152
154
  ]
153
155
  });
154
156
  });
155
- export { f as DataSinkCard, f as default };
157
+ export { p as DataSinkCard, p as default };