@burdenoff/microfe-bigconsole 2026.1113.1 → 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.
- package/dist/bigconsole/components/datasink/DataSinkCard.js +60 -58
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +123 -121
- package/dist/bigconsole/context/BigConsoleContext.d.ts +2 -0
- package/dist/bigconsole/context/BigConsoleContext.js +14 -12
- package/dist/bigconsole/pages/DashboardViewPage.js +241 -239
- package/dist/bigconsole/pages/DashboardsPage.js +265 -262
- package/dist/bigconsole/pages/DataSinkViewPage.js +253 -251
- package/dist/bigconsole/pages/DataSinksPage.js +162 -160
- package/dist/bigconsole/pages/SettingsPage.js +127 -123
- package/dist/bigconsole/proactive/actions.d.ts +16 -0
- package/dist/bigconsole/proactive/actions.js +34 -0
- package/dist/bigconsole/proactive/activityEntity.d.ts +5 -0
- package/dist/bigconsole/proactive/activityEntity.js +27 -0
- package/dist/bigconsole/proactive/entities.d.ts +16 -0
- package/dist/bigconsole/proactive/entities.js +20 -0
- package/dist/bigconsole/proactive/index.d.ts +15 -0
- package/dist/bigconsole/proactive/index.js +5 -0
- package/dist/bigconsole/proactive/routes.d.ts +11 -0
- package/dist/bigconsole/proactive/routes.js +6 -0
- package/dist/bigconsole/types/index.d.ts +7 -0
- package/dist/generated/wspace-operations.js +213 -19
- package/dist/node_modules/zod/v4/classic/errors.js +42 -0
- package/dist/node_modules/zod/v4/classic/parse.js +5 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +622 -0
- package/dist/node_modules/zod/v4/core/api.js +427 -0
- package/dist/node_modules/zod/v4/core/checks.js +141 -0
- package/dist/node_modules/zod/v4/core/core.js +82 -0
- package/dist/node_modules/zod/v4/core/doc.js +27 -0
- package/dist/node_modules/zod/v4/core/errors.js +88 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +190 -0
- package/dist/node_modules/zod/v4/core/memoizer.js +186 -0
- package/dist/node_modules/zod/v4/core/parse.js +157 -0
- package/dist/node_modules/zod/v4/core/regexes.js +32 -0
- package/dist/node_modules/zod/v4/core/registries.js +39 -0
- package/dist/node_modules/zod/v4/core/schemas.js +856 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +328 -0
- package/dist/node_modules/zod/v4/core/util.js +415 -0
- package/dist/node_modules/zod/v4/core/versions.js +7 -0
- package/dist/node_modules/zod/v4/locales/en.js +94 -0
- 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 {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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
|
|
12
|
-
let
|
|
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 =
|
|
15
|
+
}, [e.id, p]), C = s((t) => {
|
|
17
16
|
t.stopPropagation(), m?.(e.id);
|
|
18
|
-
}, [e.id, m]), w =
|
|
17
|
+
}, [e.id, m]), w = s((t) => {
|
|
19
18
|
t.stopPropagation(), h?.(e.id);
|
|
20
|
-
}, [e.id, h]), T =
|
|
19
|
+
}, [e.id, h]), T = s((t) => {
|
|
21
20
|
t.stopPropagation(), g?.(e.id);
|
|
22
|
-
}, [e.id, g]), E =
|
|
21
|
+
}, [e.id, g]), E = s((t) => {
|
|
23
22
|
t.stopPropagation(), _?.(e.id);
|
|
24
|
-
}, [e.id, _]),
|
|
25
|
-
|
|
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:
|
|
29
|
+
onClick: S,
|
|
28
30
|
children: [
|
|
29
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ u("div", {
|
|
30
32
|
className: "mb-3 flex items-start justify-between gap-icon-gap",
|
|
31
|
-
children: [/* @__PURE__ */
|
|
33
|
+
children: [/* @__PURE__ */ u("div", {
|
|
32
34
|
className: "min-w-0 flex-1",
|
|
33
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
42
|
+
}), /* @__PURE__ */ l(t, {
|
|
41
43
|
status: e.status,
|
|
42
44
|
size: "sm"
|
|
43
45
|
})]
|
|
44
46
|
}),
|
|
45
|
-
e.description && /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
54
|
+
/* @__PURE__ */ u("span", {
|
|
53
55
|
className: "flex items-center gap-1",
|
|
54
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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
|
-
}),
|
|
67
|
+
}), j]
|
|
66
68
|
}),
|
|
67
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ u("span", {
|
|
68
70
|
className: "flex items-center gap-1",
|
|
69
71
|
title: "Stored payload size",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
85
|
+
e.linkedWorkflowCount !== void 0 && e.linkedWorkflowCount > 0 && /* @__PURE__ */ u("span", {
|
|
84
86
|
className: "flex items-center gap-1",
|
|
85
87
|
children: [
|
|
86
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
-
!
|
|
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__ */
|
|
109
|
+
children: [/* @__PURE__ */ l("span", {
|
|
108
110
|
className: "text-xs text-[var(--color-status-warning-text)]",
|
|
109
|
-
children:
|
|
110
|
-
}),
|
|
111
|
+
children: A
|
|
112
|
+
}), y && v && /* @__PURE__ */ l("button", {
|
|
111
113
|
type: "button",
|
|
112
|
-
onClick:
|
|
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:
|
|
116
|
+
children: O("bigconsole.dataSinks.setup.continue", "Continue")
|
|
115
117
|
})]
|
|
116
118
|
}),
|
|
117
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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: `${
|
|
130
|
-
children:
|
|
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__ */
|
|
128
|
+
y && /* @__PURE__ */ l("button", {
|
|
133
129
|
type: "button",
|
|
134
130
|
onClick: C,
|
|
135
|
-
className: `${
|
|
136
|
-
children:
|
|
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
|
-
|
|
134
|
+
b && /* @__PURE__ */ l("button", {
|
|
139
135
|
type: "button",
|
|
140
136
|
onClick: w,
|
|
141
|
-
className: `${
|
|
142
|
-
children:
|
|
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
|
-
|
|
140
|
+
g && /* @__PURE__ */ l("button", {
|
|
145
141
|
type: "button",
|
|
146
142
|
onClick: T,
|
|
147
|
-
className: `${
|
|
148
|
-
children:
|
|
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 {
|
|
157
|
+
export { p as DataSinkCard, p as default };
|