@burdenoff/microfe-workflows 2026.608.1 → 2026.623.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.
- package/dist/WorkflowsRoot.js +58 -60
- package/dist/WorkflowsRoutes.js +54 -123
- package/dist/providers/WorkflowsProvider.js +7 -3
- package/package.json +1 -1
package/dist/WorkflowsRoot.js
CHANGED
|
@@ -1,99 +1,97 @@
|
|
|
1
1
|
import { useWorkflowsTranslation as e } from "./i18n.js";
|
|
2
2
|
import { WorkflowsProvider as t } from "./providers/WorkflowsProvider.js";
|
|
3
3
|
import { WorkflowsRoutes as n } from "./WorkflowsRoutes.js";
|
|
4
|
-
import { useEffect as r
|
|
5
|
-
import { ErrorBoundary as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { Boxes as c, FileCode2 as l, History as u, LayoutDashboard as d, Network as f, PlayCircle as p, Settings as m, Workflow as h } from "lucide-react";
|
|
4
|
+
import { useEffect as r } from "react";
|
|
5
|
+
import { ErrorBoundary as i } from "@burdenoff/fe-libs/shared/components";
|
|
6
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
+
import { Boxes as o, FileCode2 as s, History as c, LayoutDashboard as l, Network as u, PlayCircle as d, Settings as f, Workflow as p } from "lucide-react";
|
|
9
8
|
//#region src/WorkflowsRoot.tsx
|
|
10
|
-
function
|
|
11
|
-
let { basePath:
|
|
9
|
+
function m(m) {
|
|
10
|
+
let { basePath: h = "/", registerNavItems: g, registerFooterItems: _ } = m, v = e();
|
|
12
11
|
return r(() => {
|
|
13
|
-
if (!
|
|
12
|
+
if (!g) return;
|
|
14
13
|
let e = (e, t) => `${e.endsWith("/") ? e.slice(0, -1) : e}/${t}`, t = [
|
|
15
|
-
|
|
14
|
+
{
|
|
16
15
|
id: "workflows-list",
|
|
17
|
-
label:
|
|
18
|
-
path: e(
|
|
19
|
-
icon: /* @__PURE__ */
|
|
16
|
+
label: v("workflows.nav.myWorkflows", "My Workflows"),
|
|
17
|
+
path: e(h, "list"),
|
|
18
|
+
icon: /* @__PURE__ */ a(p, { size: 18 }),
|
|
20
19
|
order: 2
|
|
21
|
-
}
|
|
22
|
-
|
|
20
|
+
},
|
|
21
|
+
{
|
|
23
22
|
id: "workflows-builder",
|
|
24
|
-
label:
|
|
25
|
-
path: e(
|
|
26
|
-
icon: /* @__PURE__ */
|
|
23
|
+
label: v("workflows.nav.builder", "Builder"),
|
|
24
|
+
path: e(h, "new"),
|
|
25
|
+
icon: /* @__PURE__ */ a(o, { size: 18 }),
|
|
27
26
|
order: 3
|
|
28
|
-
}
|
|
29
|
-
|
|
27
|
+
},
|
|
28
|
+
{
|
|
30
29
|
id: "workflows-runs",
|
|
31
|
-
label:
|
|
32
|
-
path: e(
|
|
33
|
-
icon: /* @__PURE__ */
|
|
30
|
+
label: v("workflows.nav.runs", "Runs"),
|
|
31
|
+
path: e(h, "runs"),
|
|
32
|
+
icon: /* @__PURE__ */ a(d, { size: 18 }),
|
|
34
33
|
order: 4
|
|
35
|
-
}
|
|
36
|
-
|
|
34
|
+
},
|
|
35
|
+
{
|
|
37
36
|
id: "workflows-history",
|
|
38
|
-
label:
|
|
39
|
-
path: e(
|
|
40
|
-
icon: /* @__PURE__ */
|
|
37
|
+
label: v("workflows.nav.history", "History"),
|
|
38
|
+
path: e(h, "history"),
|
|
39
|
+
icon: /* @__PURE__ */ a(c, { size: 18 }),
|
|
41
40
|
order: 5
|
|
42
|
-
}
|
|
43
|
-
|
|
41
|
+
},
|
|
42
|
+
{
|
|
44
43
|
id: "workflows-templates",
|
|
45
|
-
label:
|
|
46
|
-
path: e(
|
|
47
|
-
icon: /* @__PURE__ */
|
|
44
|
+
label: v("workflows.nav.templates", "Templates"),
|
|
45
|
+
path: e(h, "templates"),
|
|
46
|
+
icon: /* @__PURE__ */ a(l, { size: 18 }),
|
|
48
47
|
order: 6
|
|
49
|
-
}
|
|
50
|
-
|
|
48
|
+
},
|
|
49
|
+
{
|
|
51
50
|
id: "workflows-nodes",
|
|
52
|
-
label:
|
|
53
|
-
path: e(
|
|
54
|
-
icon: /* @__PURE__ */
|
|
51
|
+
label: v("workflows.nav.nodes", "Nodes"),
|
|
52
|
+
path: e(h, "nodes"),
|
|
53
|
+
icon: /* @__PURE__ */ a(u, { size: 18 }),
|
|
55
54
|
order: 7
|
|
56
|
-
}
|
|
57
|
-
|
|
55
|
+
},
|
|
56
|
+
{
|
|
58
57
|
id: "workflows-settings",
|
|
59
|
-
label:
|
|
60
|
-
path: e(
|
|
61
|
-
icon: /* @__PURE__ */
|
|
58
|
+
label: v("workflows.nav.settings", "Settings"),
|
|
59
|
+
path: e(h, "settings"),
|
|
60
|
+
icon: /* @__PURE__ */ a(f, { size: 18 }),
|
|
62
61
|
order: 8
|
|
63
|
-
}
|
|
62
|
+
}
|
|
64
63
|
];
|
|
65
|
-
return
|
|
64
|
+
return g([{
|
|
66
65
|
id: "workflows",
|
|
67
|
-
label:
|
|
68
|
-
path:
|
|
69
|
-
icon: /* @__PURE__ */ s
|
|
66
|
+
label: v("workflows.nav.title", "Workflows"),
|
|
67
|
+
path: h,
|
|
68
|
+
icon: /* @__PURE__ */ a(s, { size: 20 }),
|
|
70
69
|
order: 200,
|
|
71
70
|
group: "workflows",
|
|
72
71
|
children: t
|
|
73
72
|
}]);
|
|
74
73
|
}, [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
C
|
|
74
|
+
g,
|
|
75
|
+
h,
|
|
76
|
+
v
|
|
79
77
|
]), r(() => {
|
|
80
|
-
if (
|
|
78
|
+
if (_) return _([{
|
|
81
79
|
id: "workflows-status",
|
|
82
|
-
label:
|
|
80
|
+
label: v("workflows.footer.status", "Workflows Ready"),
|
|
83
81
|
type: "status",
|
|
84
82
|
order: 10,
|
|
85
83
|
section: "left"
|
|
86
84
|
}]);
|
|
87
|
-
}, [
|
|
88
|
-
fallback: /* @__PURE__ */
|
|
85
|
+
}, [_, v]), /* @__PURE__ */ a(i, {
|
|
86
|
+
fallback: /* @__PURE__ */ a("div", {
|
|
89
87
|
className: "p-6 text-center text-text-secondary",
|
|
90
|
-
children:
|
|
88
|
+
children: v("workflows.error.loadFailed", "Something went wrong loading this module. Please refresh the page.")
|
|
91
89
|
}),
|
|
92
|
-
children: /* @__PURE__ */
|
|
93
|
-
...
|
|
94
|
-
children: /* @__PURE__ */
|
|
90
|
+
children: /* @__PURE__ */ a(t, {
|
|
91
|
+
...m,
|
|
92
|
+
children: /* @__PURE__ */ a(n, {})
|
|
95
93
|
})
|
|
96
94
|
});
|
|
97
95
|
}
|
|
98
96
|
//#endregion
|
|
99
|
-
export {
|
|
97
|
+
export { m as WorkflowsRoot };
|
package/dist/WorkflowsRoutes.js
CHANGED
|
@@ -1,190 +1,121 @@
|
|
|
1
1
|
import { useWorkflowsTranslation as e } from "./i18n.js";
|
|
2
2
|
import { Suspense as t } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Navigate as m, Route as h, Routes as g, useParams as _ } from "react-router-dom";
|
|
3
|
+
import { ExecutionDetailPage as n, ExecutionsListPage as r, HistoryPage as i, NodesPage as a, SettingsPage as o, TemplatesPage as s, WorkflowBuilderPage as c, WorkflowsList as l } from "@burdenoff/fluidgrids-fe-sdk";
|
|
4
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
|
+
import { Navigate as f, Route as p, Routes as m, useParams as h } from "react-router-dom";
|
|
7
6
|
//#region src/WorkflowsRoutes.tsx
|
|
8
|
-
function
|
|
7
|
+
function g() {
|
|
9
8
|
let t = e();
|
|
10
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ d("div", {
|
|
11
10
|
className: "flex h-full min-h-[200px] w-full flex-col items-center justify-center gap-3 px-6 text-center",
|
|
12
11
|
role: "status",
|
|
13
12
|
"aria-live": "polite",
|
|
14
13
|
"aria-label": t("workflows.routes.loading.ariaLabel", "Loading workflow page"),
|
|
15
|
-
children: [/* @__PURE__ */
|
|
14
|
+
children: [/* @__PURE__ */ u("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" }), /* @__PURE__ */ u("p", {
|
|
16
15
|
className: "text-sm text-text-secondary",
|
|
17
16
|
children: t("workflows.routes.loading.message", "Loading workflow page...")
|
|
18
17
|
})]
|
|
19
18
|
});
|
|
20
19
|
}
|
|
21
|
-
function
|
|
22
|
-
let
|
|
23
|
-
return /* @__PURE__ */ f
|
|
24
|
-
className: "flex h-full items-center justify-center p-8 text-center",
|
|
25
|
-
children: /* @__PURE__ */ p("div", {
|
|
26
|
-
className: "max-w-md",
|
|
27
|
-
children: [/* @__PURE__ */ f("h2", {
|
|
28
|
-
className: "mb-2 text-lg font-semibold text-text-primary",
|
|
29
|
-
children: t("workflows.routes.featureDisabled.title", "Feature not available")
|
|
30
|
-
}), /* @__PURE__ */ f("p", {
|
|
31
|
-
className: "text-sm text-text-secondary",
|
|
32
|
-
children: t("workflows.routes.featureDisabled.description", "This workflow feature is still in preview. Enable it under Feature Previews to access it.")
|
|
33
|
-
})]
|
|
34
|
-
})
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function b() {
|
|
38
|
-
let t = e();
|
|
39
|
-
return /* @__PURE__ */ f("div", {
|
|
40
|
-
className: "flex h-full items-center justify-center p-8 text-center",
|
|
41
|
-
children: /* @__PURE__ */ p("div", {
|
|
42
|
-
className: "max-w-md",
|
|
43
|
-
children: [/* @__PURE__ */ f("h2", {
|
|
44
|
-
className: "mb-2 text-lg font-semibold text-text-primary",
|
|
45
|
-
children: t("workflows.routes.empty.title", "Workflows preview is unavailable")
|
|
46
|
-
}), /* @__PURE__ */ f("p", {
|
|
47
|
-
className: "text-sm text-text-secondary",
|
|
48
|
-
children: t("workflows.routes.empty.description", "No workflow preview pages are enabled for this workspace yet. Turn on a workflow preview feature to continue.")
|
|
49
|
-
})]
|
|
50
|
-
})
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
function x(e, t, r = !1) {
|
|
54
|
-
return /* @__PURE__ */ f(n, {
|
|
55
|
-
flag: e,
|
|
56
|
-
defaultValue: r,
|
|
57
|
-
loading: /* @__PURE__ */ f(v, {}),
|
|
58
|
-
fallback: /* @__PURE__ */ f(y, {}),
|
|
59
|
-
children: t
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function S() {
|
|
63
|
-
let { runId: e } = _();
|
|
64
|
-
return /* @__PURE__ */ f(m, {
|
|
20
|
+
function _() {
|
|
21
|
+
let { runId: e } = h();
|
|
22
|
+
return /* @__PURE__ */ u(f, {
|
|
65
23
|
to: `../runs/${e}`,
|
|
66
24
|
replace: !0
|
|
67
25
|
});
|
|
68
26
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
71
|
-
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
flag: "workflows.builder",
|
|
77
|
-
path: "new"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
flag: "workflows.runs",
|
|
81
|
-
path: "runs"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
flag: "workflows.history",
|
|
85
|
-
path: "history"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
flag: "workflows.templates",
|
|
89
|
-
path: "templates"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
flag: "workflows.nodes",
|
|
93
|
-
path: "nodes"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
flag: "workflows.settings",
|
|
97
|
-
path: "settings"
|
|
98
|
-
}
|
|
99
|
-
].find(({ flag: t }) => e(t))?.path ?? null, y = n ? /* @__PURE__ */ f(v, {}) : _ ? /* @__PURE__ */ f(m, {
|
|
100
|
-
to: _,
|
|
101
|
-
replace: !0
|
|
102
|
-
}) : /* @__PURE__ */ f(b, {});
|
|
103
|
-
return /* @__PURE__ */ f(t, {
|
|
104
|
-
fallback: /* @__PURE__ */ f(v, {}),
|
|
105
|
-
children: /* @__PURE__ */ p(g, { children: [
|
|
106
|
-
/* @__PURE__ */ f(h, {
|
|
27
|
+
function v() {
|
|
28
|
+
return /* @__PURE__ */ u(t, {
|
|
29
|
+
fallback: /* @__PURE__ */ u(g, {}),
|
|
30
|
+
children: /* @__PURE__ */ d(m, { children: [
|
|
31
|
+
/* @__PURE__ */ u(p, {
|
|
107
32
|
index: !0,
|
|
108
|
-
element:
|
|
33
|
+
element: /* @__PURE__ */ u(f, {
|
|
34
|
+
to: "list",
|
|
35
|
+
replace: !0
|
|
36
|
+
})
|
|
109
37
|
}),
|
|
110
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ u(p, {
|
|
111
39
|
path: "list",
|
|
112
|
-
element:
|
|
40
|
+
element: /* @__PURE__ */ u(l, {})
|
|
113
41
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ u(p, {
|
|
115
43
|
path: "new",
|
|
116
|
-
element:
|
|
44
|
+
element: /* @__PURE__ */ u(c, {})
|
|
117
45
|
}),
|
|
118
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ u(p, {
|
|
119
47
|
path: "workflow/:id/:version",
|
|
120
|
-
element:
|
|
48
|
+
element: /* @__PURE__ */ u(c, {})
|
|
121
49
|
}),
|
|
122
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ u(p, {
|
|
123
51
|
path: "builder",
|
|
124
|
-
element: /* @__PURE__ */ f
|
|
52
|
+
element: /* @__PURE__ */ u(f, {
|
|
125
53
|
to: "../new",
|
|
126
54
|
replace: !0
|
|
127
55
|
})
|
|
128
56
|
}),
|
|
129
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ u(p, {
|
|
130
58
|
path: "builder/:id/:version",
|
|
131
|
-
element:
|
|
59
|
+
element: /* @__PURE__ */ u(c, {})
|
|
132
60
|
}),
|
|
133
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ u(p, {
|
|
134
62
|
path: "runs",
|
|
135
|
-
element:
|
|
63
|
+
element: /* @__PURE__ */ u(r, {})
|
|
136
64
|
}),
|
|
137
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ u(p, {
|
|
138
66
|
path: "runs/:runId",
|
|
139
|
-
element:
|
|
67
|
+
element: /* @__PURE__ */ u(n, {})
|
|
140
68
|
}),
|
|
141
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ u(p, {
|
|
142
70
|
path: "history",
|
|
143
|
-
element:
|
|
71
|
+
element: /* @__PURE__ */ u(i, {})
|
|
144
72
|
}),
|
|
145
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ u(p, {
|
|
146
74
|
path: "templates",
|
|
147
|
-
element:
|
|
75
|
+
element: /* @__PURE__ */ u(s, {})
|
|
148
76
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ u(p, {
|
|
150
78
|
path: "nodes",
|
|
151
|
-
element:
|
|
79
|
+
element: /* @__PURE__ */ u(a, {})
|
|
152
80
|
}),
|
|
153
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ u(p, {
|
|
154
82
|
path: "settings",
|
|
155
|
-
element:
|
|
83
|
+
element: /* @__PURE__ */ u(o, {})
|
|
156
84
|
}),
|
|
157
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ u(p, {
|
|
158
86
|
path: "executions",
|
|
159
|
-
element: /* @__PURE__ */ f
|
|
87
|
+
element: /* @__PURE__ */ u(f, {
|
|
160
88
|
to: "../runs",
|
|
161
89
|
replace: !0
|
|
162
90
|
})
|
|
163
91
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ u(p, {
|
|
165
93
|
path: "executions/:runId",
|
|
166
|
-
element: /* @__PURE__ */
|
|
94
|
+
element: /* @__PURE__ */ u(_, {})
|
|
167
95
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ u(p, {
|
|
169
97
|
path: "credentials",
|
|
170
|
-
element: /* @__PURE__ */ f
|
|
98
|
+
element: /* @__PURE__ */ u(f, {
|
|
171
99
|
to: "/integrations/connections",
|
|
172
100
|
replace: !0
|
|
173
101
|
})
|
|
174
102
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ u(p, {
|
|
176
104
|
path: "oauth/callback",
|
|
177
|
-
element: /* @__PURE__ */ f
|
|
105
|
+
element: /* @__PURE__ */ u(f, {
|
|
178
106
|
to: "/integrations/connections",
|
|
179
107
|
replace: !0
|
|
180
108
|
})
|
|
181
109
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ u(p, {
|
|
183
111
|
path: "*",
|
|
184
|
-
element:
|
|
112
|
+
element: /* @__PURE__ */ u(f, {
|
|
113
|
+
to: "list",
|
|
114
|
+
replace: !0
|
|
115
|
+
})
|
|
185
116
|
})
|
|
186
117
|
] })
|
|
187
118
|
});
|
|
188
119
|
}
|
|
189
120
|
//#endregion
|
|
190
|
-
export {
|
|
121
|
+
export { v as WorkflowsRoutes };
|
|
@@ -21,13 +21,16 @@ function g({ children: n, ...g }) {
|
|
|
21
21
|
e({
|
|
22
22
|
workflowSvcUrl: t,
|
|
23
23
|
apiGatewayUrl: n
|
|
24
|
-
})
|
|
24
|
+
});
|
|
25
|
+
let r = g.callbacks?.onWorkflowSaved;
|
|
26
|
+
c({
|
|
25
27
|
apiGatewayUrl: n,
|
|
26
28
|
authToken: g.authToken,
|
|
27
29
|
workspaceId: g.workspaceId ?? "",
|
|
28
30
|
tenantId: g.tenantId,
|
|
29
31
|
productId: g.productId,
|
|
30
|
-
productName: g.productName
|
|
32
|
+
productName: g.productName,
|
|
33
|
+
onWorkflowSaved: r
|
|
31
34
|
});
|
|
32
35
|
}
|
|
33
36
|
}, [
|
|
@@ -36,7 +39,8 @@ function g({ children: n, ...g }) {
|
|
|
36
39
|
g.workspaceId,
|
|
37
40
|
g.tenantId,
|
|
38
41
|
g.productId,
|
|
39
|
-
g.productName
|
|
42
|
+
g.productName,
|
|
43
|
+
g.callbacks
|
|
40
44
|
]), g.workspaceId ? b ? /* @__PURE__ */ f(m.Provider, {
|
|
41
45
|
value: g,
|
|
42
46
|
children: /* @__PURE__ */ f(d, {
|
package/package.json
CHANGED