@burdenoff/microfe-workflows 2026.1101.1 → 2026.1109.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.d.ts +30 -0
- package/dist/WorkflowsRoot.d.ts.map +1 -0
- package/dist/WorkflowsRoot.js +7 -5
- package/dist/WorkflowsRoutes.d.ts +12 -0
- package/dist/WorkflowsRoutes.d.ts.map +1 -0
- package/dist/WorkflowsRoutes.js +111 -96
- package/dist/components/RouteTransition.d.ts +29 -0
- package/dist/components/RouteTransition.d.ts.map +1 -0
- package/dist/config/index.d.ts +24 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/constants/permissions.d.ts +11 -0
- package/dist/constants/permissions.d.ts.map +1 -0
- package/dist/i18n.d.ts +18 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/plugin.d.ts +36 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +1 -1
- package/dist/providers/WorkflowsProvider.d.ts +7 -0
- package/dist/providers/WorkflowsProvider.d.ts.map +1 -0
- package/dist/providers/WorkspaceRequiredGuidance.d.ts +17 -0
- package/dist/providers/WorkspaceRequiredGuidance.d.ts.map +1 -0
- package/dist/providers/WorkspaceRequiredGuidance.js +1 -1
- package/dist/switchRedirectRules.d.ts +26 -0
- package/dist/switchRedirectRules.d.ts.map +1 -0
- package/dist/test-support/happyDomEnv.d.ts +2 -0
- package/dist/test-support/happyDomEnv.d.ts.map +1 -0
- package/dist/test-support/moduleMocks.d.ts +13 -0
- package/dist/test-support/moduleMocks.d.ts.map +1 -0
- package/dist/test-support/render.d.ts +9 -0
- package/dist/test-support/render.d.ts.map +1 -0
- package/dist/translations/en.d.ts +69 -0
- package/dist/translations/en.d.ts.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/workflows.d.ts +2 -0
- package/package.json +33 -29
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NavItem, FooterItem } from '@burdenoff/fe-libs/shared/hooks/shell';
|
|
2
|
+
import { MicrofrontendRootProps } from '@burdenoff/fe-libs/shared/types';
|
|
3
|
+
export type { NavItem, FooterItem };
|
|
4
|
+
/**
|
|
5
|
+
* Props for the WorkflowsRoot component
|
|
6
|
+
*/
|
|
7
|
+
export interface WorkflowsRootProps extends MicrofrontendRootProps {
|
|
8
|
+
/** Workspace JWT supplied by the host after context selection. */
|
|
9
|
+
workspaceToken: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional capabilities flags
|
|
12
|
+
*/
|
|
13
|
+
capabilities?: Record<string, boolean>;
|
|
14
|
+
/**
|
|
15
|
+
* Optional callback functions
|
|
16
|
+
*/
|
|
17
|
+
callbacks?: Record<string, (...args: unknown[]) => unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* Optional function to register navigation items with the shell
|
|
20
|
+
* Injected by the shell app
|
|
21
|
+
*/
|
|
22
|
+
registerNavItems?: (items: NavItem | NavItem[]) => () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Optional function to register footer items with the shell
|
|
25
|
+
* Injected by the shell app
|
|
26
|
+
*/
|
|
27
|
+
registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
|
|
28
|
+
}
|
|
29
|
+
export declare function WorkflowsRoot(props: WorkflowsRootProps): import("react").JSX.Element;
|
|
30
|
+
//# sourceMappingURL=WorkflowsRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowsRoot.d.ts","sourceRoot":"","sources":["../src/WorkflowsRoot.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,kEAAkE;IAClE,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,CAAC;IAE5D;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,KAAK,MAAM,IAAI,CAAC;IAE9D;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,EAAE,KAAK,MAAM,IAAI,CAAC;CACxE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,+BAgLtD"}
|
package/dist/WorkflowsRoot.js
CHANGED
|
@@ -103,8 +103,7 @@ function T(T) {
|
|
|
103
103
|
icon: /* @__PURE__ */ C(v, { size: 18 }),
|
|
104
104
|
order: 12
|
|
105
105
|
}
|
|
106
|
-
]
|
|
107
|
-
return D([{
|
|
106
|
+
], n = [{
|
|
108
107
|
id: "workflows",
|
|
109
108
|
label: k("workflows.nav.title", "Workflows"),
|
|
110
109
|
path: E,
|
|
@@ -112,19 +111,22 @@ function T(T) {
|
|
|
112
111
|
order: 200,
|
|
113
112
|
group: "workflows",
|
|
114
113
|
children: t
|
|
115
|
-
}]
|
|
114
|
+
}];
|
|
115
|
+
return D(n);
|
|
116
116
|
}, [
|
|
117
117
|
D,
|
|
118
118
|
E,
|
|
119
119
|
k
|
|
120
120
|
]), r(() => {
|
|
121
|
-
if (O) return
|
|
121
|
+
if (!O) return;
|
|
122
|
+
let e = [{
|
|
122
123
|
id: "workflows-status",
|
|
123
124
|
label: k("workflows.footer.status", "Workflows Ready"),
|
|
124
125
|
type: "status",
|
|
125
126
|
order: 10,
|
|
126
127
|
section: "left"
|
|
127
|
-
}]
|
|
128
|
+
}];
|
|
129
|
+
return O(e);
|
|
128
130
|
}, [O, k]), /* @__PURE__ */ C(i, {
|
|
129
131
|
fallback: /* @__PURE__ */ w("div", {
|
|
130
132
|
className: "relative flex min-h-[60vh] w-full items-center justify-center overflow-hidden px-4 py-10",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal router for the Workflows microfrontend.
|
|
3
|
+
* Uses relative paths - parent route handles base path (/workflows/*).
|
|
4
|
+
*
|
|
5
|
+
* Workflows is a core module — all pages are always available.
|
|
6
|
+
*
|
|
7
|
+
* NOTE: /credentials and /oauth/callback routes have been removed.
|
|
8
|
+
* Connection management is now handled by microfe-integrations at /integrations/connections.
|
|
9
|
+
* OAuth callbacks are handled by the integrations service REST endpoint.
|
|
10
|
+
*/
|
|
11
|
+
export declare function WorkflowsRoutes(): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=WorkflowsRoutes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowsRoutes.d.ts","sourceRoot":"","sources":["../src/WorkflowsRoutes.tsx"],"names":[],"mappings":"AAgJA;;;;;;;;;GASG;AACH,wBAAgB,eAAe,gCAqP9B"}
|
package/dist/WorkflowsRoutes.js
CHANGED
|
@@ -4,36 +4,36 @@ import { RouteTransition as n } from "./components/RouteTransition.js";
|
|
|
4
4
|
import { Suspense as r } from "react";
|
|
5
5
|
import { AccessDenied as i, PermissionGate as a } from "@burdenoff/fe-libs/shared/components";
|
|
6
6
|
import { GlassCard as o } from "@burdenoff/fe-libs/ui";
|
|
7
|
-
import { AiStudioPage as s, ApprovalInboxPage as c, DataSinkDashboardPage as l, DataTablesPage as u, ErrorAnalyticsPage as d, ExecutionDetailPage as f, ExecutionsListPage as p, HistoryPage as m, InsightsPage as h, NodesPage as g, RunnersPage as _, SettingsPage as v,
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { Navigate as
|
|
7
|
+
import { AiStudioPage as s, ApprovalInboxPage as c, DataSinkDashboardPage as l, DataTablesPage as u, ErrorAnalyticsPage as d, ExecutionDetailPage as f, ExecutionsListPage as p, HistoryPage as m, InsightsPage as h, NodesPage as g, RunnersPage as _, SettingsPage as v, TaskQueuesPage as y, TemplatePreview as b, TemplatesPage as x, VariablesPage as S, WorkflowBuilderPage as C, WorkflowSearchRedirect as w, WorkflowsList as T, useFluidGridsFlagsSettled as E, useSelfHostedWorkersEnabled as D } from "@burdenoff/fluidgrids-fe-sdk";
|
|
8
|
+
import { jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
9
|
+
import { Navigate as A, Route as j, Routes as M, useLocation as N, useParams as P } from "react-router";
|
|
10
10
|
//#region src/WorkflowsRoutes.tsx
|
|
11
|
-
function
|
|
11
|
+
function F() {
|
|
12
12
|
let t = e();
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ k("div", {
|
|
14
14
|
className: "mx-auto flex w-full max-w-6xl flex-col gap-6 px-4 py-6 sm:px-6",
|
|
15
15
|
role: "status",
|
|
16
16
|
"aria-live": "polite",
|
|
17
17
|
"aria-busy": "true",
|
|
18
18
|
"aria-label": t("workflows.routes.loading.ariaLabel", "Loading workflow page"),
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ k("div", {
|
|
21
21
|
className: "flex flex-col gap-3",
|
|
22
|
-
children: [/* @__PURE__ */
|
|
22
|
+
children: [/* @__PURE__ */ O("div", { className: "h-7 w-48 rounded-md bg-muted/60 motion-safe:animate-vc-shimmer" }), /* @__PURE__ */ O("div", { className: "h-4 w-72 max-w-full rounded bg-muted/40 motion-safe:animate-vc-shimmer" })]
|
|
23
23
|
}),
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ O("div", {
|
|
25
25
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
26
26
|
children: [
|
|
27
27
|
0,
|
|
28
28
|
1,
|
|
29
29
|
2
|
|
30
|
-
].map((e) => /* @__PURE__ */
|
|
30
|
+
].map((e) => /* @__PURE__ */ k(o, {
|
|
31
31
|
treatment: "metric",
|
|
32
32
|
className: "flex flex-col gap-3 border-border-seam p-5",
|
|
33
|
-
children: [/* @__PURE__ */
|
|
33
|
+
children: [/* @__PURE__ */ O("div", { className: "h-3 w-20 rounded bg-muted/50 motion-safe:animate-vc-shimmer" }), /* @__PURE__ */ O("div", { className: "h-8 w-24 rounded-md bg-muted/60 motion-safe:animate-vc-shimmer" })]
|
|
34
34
|
}, e))
|
|
35
35
|
}),
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ O(o, {
|
|
37
37
|
treatment: "glass",
|
|
38
38
|
className: "flex flex-col gap-4 border-border-seam p-6",
|
|
39
39
|
children: [
|
|
@@ -41,200 +41,215 @@ function M() {
|
|
|
41
41
|
1,
|
|
42
42
|
2,
|
|
43
43
|
3
|
|
44
|
-
].map((e) => /* @__PURE__ */
|
|
44
|
+
].map((e) => /* @__PURE__ */ k("div", {
|
|
45
45
|
className: "flex items-center gap-4",
|
|
46
|
-
children: [/* @__PURE__ */
|
|
46
|
+
children: [/* @__PURE__ */ O("div", { className: "h-10 w-10 shrink-0 rounded-full bg-muted/50 motion-safe:animate-vc-shimmer" }), /* @__PURE__ */ k("div", {
|
|
47
47
|
className: "flex flex-1 flex-col gap-2",
|
|
48
|
-
children: [/* @__PURE__ */
|
|
48
|
+
children: [/* @__PURE__ */ O("div", { className: "h-4 w-1/3 rounded bg-muted/50 motion-safe:animate-vc-shimmer" }), /* @__PURE__ */ O("div", { className: "h-3 w-2/3 rounded bg-muted/30 motion-safe:animate-vc-shimmer" })]
|
|
49
49
|
})]
|
|
50
50
|
}, e))
|
|
51
51
|
}),
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ O("p", {
|
|
53
53
|
className: "text-center text-sm text-text-secondary",
|
|
54
54
|
children: t("workflows.routes.loading.message", "Loading workflow page...")
|
|
55
55
|
})
|
|
56
56
|
]
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
let { runId: e } =
|
|
61
|
-
return /* @__PURE__ */
|
|
59
|
+
function I() {
|
|
60
|
+
let { runId: e } = P();
|
|
61
|
+
return /* @__PURE__ */ O(A, {
|
|
62
62
|
to: `../runs/${e}`,
|
|
63
63
|
replace: !0
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
let { pathname: e } =
|
|
68
|
-
return /* @__PURE__ */
|
|
66
|
+
function L() {
|
|
67
|
+
let { pathname: e } = N(), t = P()["*"] ?? "", n = t && e.endsWith(t) ? e.slice(0, -t.length) : e;
|
|
68
|
+
return /* @__PURE__ */ O(A, {
|
|
69
69
|
to: `${n.endsWith("/") ? n : `${n}/`}list`,
|
|
70
70
|
replace: !0
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
function R() {
|
|
74
|
+
let e = D(), n = E();
|
|
75
|
+
return !e && !n ? /* @__PURE__ */ O(F, {}) : e ? /* @__PURE__ */ O(a, {
|
|
76
|
+
permission: t.TASK_QUEUE_READ,
|
|
77
|
+
fallback: /* @__PURE__ */ O(i, {}),
|
|
78
|
+
children: /* @__PURE__ */ O(y, {})
|
|
79
|
+
}) : /* @__PURE__ */ O(A, {
|
|
80
|
+
to: "../list",
|
|
81
|
+
replace: !0
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function z() {
|
|
85
|
+
return /* @__PURE__ */ O(r, {
|
|
86
|
+
fallback: /* @__PURE__ */ O(F, {}),
|
|
87
|
+
children: /* @__PURE__ */ k(M, { children: [
|
|
88
|
+
/* @__PURE__ */ O(j, {
|
|
78
89
|
index: !0,
|
|
79
|
-
element: /* @__PURE__ */
|
|
90
|
+
element: /* @__PURE__ */ O(A, {
|
|
80
91
|
to: "list",
|
|
81
92
|
replace: !0
|
|
82
93
|
})
|
|
83
94
|
}),
|
|
84
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ O(j, {
|
|
85
96
|
path: "list",
|
|
86
|
-
element: /* @__PURE__ */
|
|
97
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(T, {}) })
|
|
87
98
|
}),
|
|
88
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ O(j, {
|
|
89
100
|
path: "new",
|
|
90
|
-
element: /* @__PURE__ */
|
|
101
|
+
element: /* @__PURE__ */ O(n, {
|
|
91
102
|
kind: "canvas",
|
|
92
|
-
children: /* @__PURE__ */
|
|
103
|
+
children: /* @__PURE__ */ O(C, {})
|
|
93
104
|
})
|
|
94
105
|
}),
|
|
95
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ O(j, {
|
|
96
107
|
path: "workflow/:id/:version",
|
|
97
|
-
element: /* @__PURE__ */
|
|
108
|
+
element: /* @__PURE__ */ O(n, {
|
|
98
109
|
kind: "canvas",
|
|
99
|
-
children: /* @__PURE__ */
|
|
110
|
+
children: /* @__PURE__ */ O(C, {})
|
|
100
111
|
})
|
|
101
112
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ O(j, {
|
|
103
114
|
path: "builder",
|
|
104
|
-
element: /* @__PURE__ */
|
|
115
|
+
element: /* @__PURE__ */ O(A, {
|
|
105
116
|
to: "../new",
|
|
106
117
|
replace: !0
|
|
107
118
|
})
|
|
108
119
|
}),
|
|
109
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ O(j, {
|
|
110
121
|
path: "builder/:id/:version",
|
|
111
|
-
element: /* @__PURE__ */
|
|
122
|
+
element: /* @__PURE__ */ O(n, {
|
|
112
123
|
kind: "canvas",
|
|
113
|
-
children: /* @__PURE__ */
|
|
124
|
+
children: /* @__PURE__ */ O(C, {})
|
|
114
125
|
})
|
|
115
126
|
}),
|
|
116
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ O(j, {
|
|
117
128
|
path: "resolve/:id",
|
|
118
|
-
element: /* @__PURE__ */
|
|
129
|
+
element: /* @__PURE__ */ O(w, {})
|
|
119
130
|
}),
|
|
120
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ O(j, {
|
|
121
132
|
path: "runs",
|
|
122
|
-
element: /* @__PURE__ */
|
|
133
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(p, {}) })
|
|
123
134
|
}),
|
|
124
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ O(j, {
|
|
125
136
|
path: "runs/:runId",
|
|
126
|
-
element: /* @__PURE__ */
|
|
137
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(f, {}) })
|
|
127
138
|
}),
|
|
128
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ O(j, {
|
|
129
140
|
path: "ai-studio",
|
|
130
|
-
element: /* @__PURE__ */
|
|
141
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(s, {}) })
|
|
131
142
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ O(j, {
|
|
133
144
|
path: "insights",
|
|
134
|
-
element: /* @__PURE__ */
|
|
145
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(h, {}) })
|
|
135
146
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ O(j, {
|
|
137
148
|
path: "insights/errors",
|
|
138
|
-
element: /* @__PURE__ */
|
|
149
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(d, {}) })
|
|
139
150
|
}),
|
|
140
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ O(j, {
|
|
141
152
|
path: "data-sinks",
|
|
142
|
-
element: /* @__PURE__ */
|
|
153
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(l, {}) })
|
|
143
154
|
}),
|
|
144
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ O(j, {
|
|
145
156
|
path: "data-tables",
|
|
146
|
-
element: /* @__PURE__ */
|
|
157
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(u, {}) })
|
|
147
158
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ O(j, {
|
|
149
160
|
path: "approvals",
|
|
150
|
-
element: /* @__PURE__ */
|
|
161
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(a, {
|
|
151
162
|
permission: t.WORKFLOW_RUN_READ,
|
|
152
|
-
fallback: /* @__PURE__ */
|
|
153
|
-
children: /* @__PURE__ */
|
|
163
|
+
fallback: /* @__PURE__ */ O(i, {}),
|
|
164
|
+
children: /* @__PURE__ */ O(c, {})
|
|
154
165
|
}) })
|
|
155
166
|
}),
|
|
156
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ O(j, {
|
|
157
168
|
path: "history",
|
|
158
|
-
element: /* @__PURE__ */
|
|
169
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(m, {}) })
|
|
159
170
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ O(j, {
|
|
161
172
|
path: "templates",
|
|
162
|
-
element: /* @__PURE__ */
|
|
173
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(x, {}) })
|
|
163
174
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ O(j, {
|
|
165
176
|
path: "templates/:productId/preview",
|
|
166
|
-
element: /* @__PURE__ */
|
|
177
|
+
element: /* @__PURE__ */ O(n, {
|
|
167
178
|
kind: "canvas",
|
|
168
|
-
children: /* @__PURE__ */
|
|
179
|
+
children: /* @__PURE__ */ O(b, {})
|
|
169
180
|
})
|
|
170
181
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ O(j, {
|
|
172
183
|
path: "nodes",
|
|
173
|
-
element: /* @__PURE__ */
|
|
184
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(g, {}) })
|
|
174
185
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ O(j, {
|
|
176
187
|
path: "settings",
|
|
177
|
-
element: /* @__PURE__ */
|
|
188
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(a, {
|
|
178
189
|
permission: t.SYSTEM_CONFIG_READ,
|
|
179
|
-
fallback: /* @__PURE__ */
|
|
180
|
-
children: /* @__PURE__ */
|
|
190
|
+
fallback: /* @__PURE__ */ O(i, {}),
|
|
191
|
+
children: /* @__PURE__ */ O(v, {})
|
|
181
192
|
}) })
|
|
182
193
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ O(j, {
|
|
184
195
|
path: "settings/:workflowKey",
|
|
185
|
-
element: /* @__PURE__ */
|
|
196
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(a, {
|
|
186
197
|
permission: t.SYSTEM_CONFIG_READ,
|
|
187
|
-
fallback: /* @__PURE__ */
|
|
188
|
-
children: /* @__PURE__ */
|
|
198
|
+
fallback: /* @__PURE__ */ O(i, {}),
|
|
199
|
+
children: /* @__PURE__ */ O(v, {})
|
|
189
200
|
}) })
|
|
190
201
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ O(j, {
|
|
192
203
|
path: "variables",
|
|
193
|
-
element: /* @__PURE__ */
|
|
204
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(a, {
|
|
194
205
|
permission: t.VARIABLE_READ,
|
|
195
|
-
fallback: /* @__PURE__ */
|
|
196
|
-
children: /* @__PURE__ */
|
|
206
|
+
fallback: /* @__PURE__ */ O(i, {}),
|
|
207
|
+
children: /* @__PURE__ */ O(S, {})
|
|
197
208
|
}) })
|
|
198
209
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ O(j, {
|
|
200
211
|
path: "runners",
|
|
201
|
-
element: /* @__PURE__ */
|
|
212
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(a, {
|
|
202
213
|
permission: t.SANDBOX_READ,
|
|
203
|
-
fallback: /* @__PURE__ */
|
|
204
|
-
children: /* @__PURE__ */
|
|
214
|
+
fallback: /* @__PURE__ */ O(i, {}),
|
|
215
|
+
children: /* @__PURE__ */ O(_, {})
|
|
205
216
|
}) })
|
|
206
217
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ O(j, {
|
|
219
|
+
path: "task-queues",
|
|
220
|
+
element: /* @__PURE__ */ O(n, { children: /* @__PURE__ */ O(R, {}) })
|
|
221
|
+
}),
|
|
222
|
+
/* @__PURE__ */ O(j, {
|
|
208
223
|
path: "executions",
|
|
209
|
-
element: /* @__PURE__ */
|
|
224
|
+
element: /* @__PURE__ */ O(A, {
|
|
210
225
|
to: "../runs",
|
|
211
226
|
replace: !0
|
|
212
227
|
})
|
|
213
228
|
}),
|
|
214
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ O(j, {
|
|
215
230
|
path: "executions/:runId",
|
|
216
|
-
element: /* @__PURE__ */
|
|
231
|
+
element: /* @__PURE__ */ O(I, {})
|
|
217
232
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ O(j, {
|
|
219
234
|
path: "credentials",
|
|
220
|
-
element: /* @__PURE__ */
|
|
235
|
+
element: /* @__PURE__ */ O(A, {
|
|
221
236
|
to: "/integrations/connections",
|
|
222
237
|
replace: !0
|
|
223
238
|
})
|
|
224
239
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ O(j, {
|
|
226
241
|
path: "oauth/callback",
|
|
227
|
-
element: /* @__PURE__ */
|
|
242
|
+
element: /* @__PURE__ */ O(A, {
|
|
228
243
|
to: "/integrations/connections",
|
|
229
244
|
replace: !0
|
|
230
245
|
})
|
|
231
246
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ O(j, {
|
|
233
248
|
path: "*",
|
|
234
|
-
element: /* @__PURE__ */
|
|
249
|
+
element: /* @__PURE__ */ O(L, {})
|
|
235
250
|
})
|
|
236
251
|
] })
|
|
237
252
|
});
|
|
238
253
|
}
|
|
239
254
|
//#endregion
|
|
240
|
-
export {
|
|
255
|
+
export { z as WorkflowsRoutes };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* How a routed page enters:
|
|
4
|
+
*
|
|
5
|
+
* - `page`: list, runs, run detail, templates and the other scrolling pages.
|
|
6
|
+
* Boff UI `fadeUp` (fade plus a short rise), wrapper takes the page's width
|
|
7
|
+
* and leaves its height alone, so tall pages still push the shell footer
|
|
8
|
+
* down.
|
|
9
|
+
* - `canvas`: the workflow builder. Opacity only, so no transform is ever set
|
|
10
|
+
* on an ancestor of the canvas (a transformed ancestor would become the
|
|
11
|
+
* containing block of the builder's fixed-position popovers while the entry
|
|
12
|
+
* plays), and `h-full` keeps the canvas' full-height chain intact.
|
|
13
|
+
*/
|
|
14
|
+
export type RouteTransitionKind = 'page' | 'canvas';
|
|
15
|
+
export interface RouteTransitionProps {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
kind?: RouteTransitionKind;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Entry motion for one Workflows route, built on the shared fe-libs motion
|
|
21
|
+
* primitives (Boff UI durations and easings, reduced-motion aware).
|
|
22
|
+
*
|
|
23
|
+
* It is keyed on the route, never on data: the wrapper mounts with the route
|
|
24
|
+
* element, so a refetch, a poll or a status change re-renders the page inside
|
|
25
|
+
* it without replaying the entry. `MotionPage` also plays at most once per
|
|
26
|
+
* pathname in a session, so a loading-state remount does not replay it either.
|
|
27
|
+
*/
|
|
28
|
+
export declare function RouteTransition({ children, kind }: RouteTransitionProps): import("react").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=RouteTransition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouteTransition.d.ts","sourceRoot":"","sources":["../../src/components/RouteTransition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAYpD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,IAAa,EAAE,EAAE,oBAAoB,+BAMhF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration module for workflows microfrontend
|
|
3
|
+
* This config is typically injected by the shell application at runtime
|
|
4
|
+
*/
|
|
5
|
+
export interface WorkflowsConfig {
|
|
6
|
+
workflowSvcUrl: string;
|
|
7
|
+
fluidgridBackendUrlToken?: string;
|
|
8
|
+
fluidgridBackendUrl?: string;
|
|
9
|
+
apiGatewayUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Get current configuration
|
|
13
|
+
*/
|
|
14
|
+
export declare const config: WorkflowsConfig;
|
|
15
|
+
/**
|
|
16
|
+
* Set runtime configuration (called by shell app)
|
|
17
|
+
* @param newConfig - Configuration object
|
|
18
|
+
*/
|
|
19
|
+
export declare function setWorkflowsConfig(newConfig: Partial<WorkflowsConfig>): void;
|
|
20
|
+
/**
|
|
21
|
+
* Reset configuration to defaults
|
|
22
|
+
*/
|
|
23
|
+
export declare function resetWorkflowsConfig(): void;
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAUD;;GAEG;AACH,eAAO,MAAM,MAAM,iBAIjB,CAAC;AAEH;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI,CAE5E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAO3C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workflows Permission Constants
|
|
3
|
+
*
|
|
4
|
+
* Re-exported from @burdenoff/fluidgrids-fe-sdk so the SDK and this shell
|
|
5
|
+
* share one canonical list (matching the backend @rbac resource/action
|
|
6
|
+
* pairs). Use with the fe-libs usePermissions hook:
|
|
7
|
+
* hasPermission(WORKFLOW_PERMISSIONS.WORKFLOW_CREATE)
|
|
8
|
+
*/
|
|
9
|
+
export { FLUIDGRIDS_PERMISSIONS as WORKFLOW_PERMISSIONS } from '@burdenoff/fluidgrids-fe-sdk';
|
|
10
|
+
export type { FluidGridsPermission as WorkflowPermission } from '@burdenoff/fluidgrids-fe-sdk';
|
|
11
|
+
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/constants/permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,sBAAsB,IAAI,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC9F,YAAY,EAAE,oBAAoB,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useWorkflowsTranslation — MFE translation hook with inline English fallback.
|
|
3
|
+
*
|
|
4
|
+
* Wraps `useI18n().t()` so that when a key has no translation (i.e. the
|
|
5
|
+
* provider returns the key itself), the caller's English fallback is used
|
|
6
|
+
* instead. This keeps consumer call sites consistent and avoids leaking
|
|
7
|
+
* untranslated keys into the UI.
|
|
8
|
+
*
|
|
9
|
+
* Supports optional interpolation params using `{{key}}` placeholders so the
|
|
10
|
+
* same hook can be passed into the FluidGrids SDK's translation provider.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const tr = useWorkflowsTranslation();
|
|
14
|
+
* return <h1>{tr('workflows.nav.title', 'Workflows')}</h1>;
|
|
15
|
+
* return <p>{tr('workflows.items.selected', '{{count}} items selected', { count: 5 })}</p>;
|
|
16
|
+
*/
|
|
17
|
+
export declare function useWorkflowsTranslation(): (key: string, fallback: string, params?: Record<string, string | number>) => string;
|
|
18
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,IAAI,CACzC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACrC,MAAM,CAeV"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { WorkflowsRoot } from './WorkflowsRoot';
|
|
2
|
+
export type { WorkflowsRootProps } from './WorkflowsRoot';
|
|
3
|
+
export { workflowsSwitchRedirectRules } from './switchRedirectRules';
|
|
4
|
+
export { fluidGridsPlugin, createFluidGridsPlugin, FLUIDGRIDS_PLUGIN_ID, FLUIDGRIDS_PLUGIN_COMMANDS, FLUIDGRIDS_ASSISTANT_TOGGLE_EVENT, } from './plugin';
|
|
5
|
+
export type { FluidGridsPluginOptions } from './plugin';
|
|
6
|
+
export { config, setWorkflowsConfig, resetWorkflowsConfig } from './config';
|
|
7
|
+
export type { WorkflowsConfig } from './config';
|
|
8
|
+
export { enTranslations } from './translations/en';
|
|
9
|
+
export { FluidGridsProvider as EmbeddableWorkflowProvider, FluidGridsRoot as EmbeddableWorkflowRoot, WorkflowBuilder as EmbeddableWorkflowBuilder, WorkflowBuilderCore as EmbeddableWorkflowBuilderCore, useFluidGridsContext as useEmbeddableContext, createFluidGridsClient as createEmbeddableClient, setFluidGridsClient as setEmbeddableClient, getFluidGridsClient as getEmbeddableClient, setFluidGridsConfig as setEmbeddableConfig, useFlowStore as useEmbeddableFlowStore, cn, } from '@burdenoff/fluidgrids-fe-sdk';
|
|
10
|
+
export type { WorkflowBuilderProps as EmbeddableWorkflowBuilderProps, WorkflowBuilderCoreProps as EmbeddableWorkflowBuilderCoreProps, FluidGridsProviderProps as EmbeddableWorkflowProviderProps, FluidGridsRootProps as EmbeddableWorkflowRootProps, FluidGridsClientConfig as EmbeddableClientConfig, FluidGridsConfig as EmbeddableConfig, WorkflowDefinition, WorkflowData, FlowNode, FlowEdge, NodeManifest, } from '@burdenoff/fluidgrids-fe-sdk';
|
|
11
|
+
export { useNodeEndpoints, useNodeEndpoint, useNodeManifest, useLazyNodeManifest, fetchAllNodesWithManifests, useWorkflowDefinitions, useWorkflowDefinition, useLazyWorkflowDefinition, useWorkflowVersions, useCreateWorkflow, useUpdateWorkflow, useCreateWorkflowVersion, useDeleteWorkflow, useDuplicateWorkflow, useTriggerWorkflow, useWorkflowRuns, useWorkflowRun, useDashboardSummary, setFluidGridsClient, getFluidGridsClient, getFluidGridsClientSafe, isFluidGridsClientReady, waitForFluidGridsClient, resetFluidGridsClient, } from '@burdenoff/fluidgrids-fe-sdk';
|
|
12
|
+
export { ExecutionsListPage, ExecutionDetailPage, HistoryPage, NodesPage, SettingsPage, TemplatesPage, TemplatePreview, WorkflowBuilderPage, WorkflowSearchRedirect, WorkflowsList, } from '@burdenoff/fluidgrids-fe-sdk';
|
|
13
|
+
export { FLUIDGRIDS_FLAGS, useFluidGridsFlag } from '@burdenoff/fluidgrids-fe-sdk';
|
|
14
|
+
export type { FluidGridsFlagKey } from '@burdenoff/fluidgrids-fe-sdk';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAI1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAKrE,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,0BAA0B,EAC1B,iCAAiC,GAClC,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAGxD,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC5E,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAWnD,OAAO,EACL,kBAAkB,IAAI,0BAA0B,EAChD,cAAc,IAAI,sBAAsB,EACxC,eAAe,IAAI,yBAAyB,EAC5C,mBAAmB,IAAI,6BAA6B,EACpD,oBAAoB,IAAI,oBAAoB,EAC5C,sBAAsB,IAAI,sBAAsB,EAChD,mBAAmB,IAAI,mBAAmB,EAC1C,mBAAmB,IAAI,mBAAmB,EAC1C,mBAAmB,IAAI,mBAAmB,EAC1C,YAAY,IAAI,sBAAsB,EACtC,EAAE,GACH,MAAM,8BAA8B,CAAC;AAGtC,YAAY,EACV,oBAAoB,IAAI,8BAA8B,EACtD,wBAAwB,IAAI,kCAAkC,EAC9D,uBAAuB,IAAI,+BAA+B,EAC1D,mBAAmB,IAAI,2BAA2B,EAClD,sBAAsB,IAAI,sBAAsB,EAChD,gBAAgB,IAAI,gBAAgB,EACpC,kBAAkB,EAClB,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,YAAY,GACb,MAAM,8BAA8B,CAAC;AAStC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,YAAY,EACZ,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,GACd,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACnF,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/plugin.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UIPlugin } from '@burdenoff/fe-libs/shared/plugins';
|
|
2
|
+
/** Plugin id, also the `pluginId` of every contribution. */
|
|
3
|
+
export declare const FLUIDGRIDS_PLUGIN_ID = "fluidgrids";
|
|
4
|
+
/** Command ids contributed by the plugin. */
|
|
5
|
+
export declare const FLUIDGRIDS_PLUGIN_COMMANDS: {
|
|
6
|
+
readonly goToWorkflows: "fg:go-to-workflows";
|
|
7
|
+
readonly goToRuns: "fg:go-to-runs";
|
|
8
|
+
readonly goToCredentials: "fg:go-to-credentials";
|
|
9
|
+
readonly toggleAssistant: "fg:toggle-ai-assistant";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The window event fluidgrids-app's assistant listens for. fe-libs'
|
|
13
|
+
* `AssistantOverlayProvider keyPrefix="fg"` subscribes to
|
|
14
|
+
* `<prefix>:toggle-ai-assistant`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const FLUIDGRIDS_ASSISTANT_TOGGLE_EVENT = "fg:toggle-ai-assistant";
|
|
17
|
+
export interface FluidGridsPluginOptions {
|
|
18
|
+
/** Where the shell mounts `WorkflowsRoot` (default `/workflows`). */
|
|
19
|
+
readonly basePath?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Where workflow credentials live. They moved to the integrations module
|
|
22
|
+
* (BOFF-1906), and `/workflows/credentials` only redirects there.
|
|
23
|
+
*/
|
|
24
|
+
readonly credentialsPath?: string;
|
|
25
|
+
/** Window event that toggles the shell's AI assistant. */
|
|
26
|
+
readonly assistantToggleEvent?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Build the FluidGrids plugin for a shell. Every option has the FluidGrids app
|
|
30
|
+
* shell's value as its default; a shell that mounts the Workflows module
|
|
31
|
+
* elsewhere passes its own.
|
|
32
|
+
*/
|
|
33
|
+
export declare function createFluidGridsPlugin(options?: FluidGridsPluginOptions): UIPlugin;
|
|
34
|
+
/** The plugin as fluidgrids-app registers it (Workflows at `/workflows`). */
|
|
35
|
+
export declare const fluidGridsPlugin: UIPlugin;
|
|
36
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAuB,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAGvF,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB,eAAe,CAAC;AAEjD,6CAA6C;AAC7C,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,2BAA2B,CAAC;AAE1E,MAAM,WAAW,uBAAuB;IACtC,qEAAqE;IACrE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,0DAA0D;IAC1D,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACxC;AAmED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,uBAA4B,GAAG,QAAQ,CAoDtF;AAED,6EAA6E;AAC7E,eAAO,MAAM,gBAAgB,EAAE,QAAmC,CAAC"}
|
package/dist/plugin.js
CHANGED
|
@@ -92,7 +92,7 @@ function u(e = {}) {
|
|
|
92
92
|
contributes: { commands: o }
|
|
93
93
|
},
|
|
94
94
|
activate(e) {
|
|
95
|
-
let i = new Map([
|
|
95
|
+
let i = /* @__PURE__ */ new Map([
|
|
96
96
|
[a.goToWorkflows, () => e.shell.navigate(`${t}/list`)],
|
|
97
97
|
[a.goToRuns, () => e.shell.navigate(`${t}/runs`)],
|
|
98
98
|
[a.goToCredentials, () => e.shell.navigate(n)],
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { WorkflowsRootProps } from '../WorkflowsRoot';
|
|
3
|
+
export declare function WorkflowsProvider({ children, ...props }: WorkflowsRootProps & {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
export declare function useWorkflowsContext(): WorkflowsRootProps;
|
|
7
|
+
//# sourceMappingURL=WorkflowsProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowsProvider.d.ts","sourceRoot":"","sources":["../../src/providers/WorkflowsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAmD3D,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAsI9C;AAED,wBAAgB,mBAAmB,uBAMlC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WorkflowsRootProps } from '../WorkflowsRoot';
|
|
2
|
+
/**
|
|
3
|
+
* The FluidGrids user guide's first page (parity G91). The link is pinned to
|
|
4
|
+
* the fluidgrids product, so it opens the FluidGrids guide in every host shell
|
|
5
|
+
* (VibeControls' Workflows module included); fe-libs resolves
|
|
6
|
+
* docs.fluidgrids.ai in production and alphadocs.fluidgrids.ai in alpha.
|
|
7
|
+
*/
|
|
8
|
+
export declare const GETTING_STARTED_DOCS_PATH = "/users/getting-started";
|
|
9
|
+
export declare const WORKFLOWS_DOCS_PRODUCT = "fluidgrids";
|
|
10
|
+
export type WorkspaceRequiredGuidanceProps = Pick<WorkflowsRootProps, 'basePath' | 'navigate'>;
|
|
11
|
+
/**
|
|
12
|
+
* What the Workflows module shows before a workspace is active: the module's
|
|
13
|
+
* purpose (with a link to the user guide), the workspace callout and the
|
|
14
|
+
* next steps, wired to real routes.
|
|
15
|
+
*/
|
|
16
|
+
export declare function WorkspaceRequiredGuidance({ basePath, navigate }: WorkspaceRequiredGuidanceProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=WorkspaceRequiredGuidance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceRequiredGuidance.d.ts","sourceRoot":"","sources":["../../src/providers/WorkspaceRequiredGuidance.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG3D;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,2BAA2B,CAAC;AAClE,eAAO,MAAM,sBAAsB,eAAe,CAAC;AAEnD,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;AAE/F;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,8BAA8B,+BAmF/F"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ContextSwitchRedirectRule } from '@burdenoff/fe-libs/chrome/contextSwitcher/resolveSwitchTarget';
|
|
2
|
+
/**
|
|
3
|
+
* Context-switch redirect rules for the Workflows routes (BOFF-2821, G14).
|
|
4
|
+
*
|
|
5
|
+
* After a header org / workspace switch the workspace token is re-issued, so a
|
|
6
|
+
* Workflows route that carries a resource id of the OLD workspace (a workflow,
|
|
7
|
+
* a run, a workflow's settings) would load that record under the new context.
|
|
8
|
+
* Pass these rules to fe-libs `useContextSwitchController({ redirectRules })`
|
|
9
|
+
* and the shell replace-navigates such a route to the section's list instead:
|
|
10
|
+
*
|
|
11
|
+
* - `workflow/:id/:version`, legacy `builder/:id/:version`, `resolve/:id` → `list`
|
|
12
|
+
* - `runs/:runId`, legacy `executions/:runId` → `runs`
|
|
13
|
+
* - `settings/:workflowKey` → `settings`
|
|
14
|
+
*
|
|
15
|
+
* Pages that hold no workspace resource id (`list`, `new`, `runs`, `insights`,
|
|
16
|
+
* `settings`, the store's `templates/:productId/preview`, …) stay in place and
|
|
17
|
+
* re-scope through the new selection.
|
|
18
|
+
*
|
|
19
|
+
* The route shapes are owned by `WorkflowsRoutes`, so they are kept next to it
|
|
20
|
+
* and every shell that mounts `WorkflowsRoot` uses the same table.
|
|
21
|
+
*
|
|
22
|
+
* @param basePath where the shell mounts `WorkflowsRoot` — a rooted path without
|
|
23
|
+
* a trailing slash (default `/workflows`).
|
|
24
|
+
*/
|
|
25
|
+
export declare function workflowsSwitchRedirectRules(basePath?: string): ReadonlyArray<ContextSwitchRedirectRule>;
|
|
26
|
+
//# sourceMappingURL=switchRedirectRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switchRedirectRules.d.ts","sourceRoot":"","sources":["../src/switchRedirectRules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+DAA+D,CAAC;AAE/G;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,SAAe,GACtB,aAAa,CAAC,yBAAyB,CAAC,CAe1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"happyDomEnv.d.ts","sourceRoot":"","sources":["../../src/test-support/happyDomEnv.ts"],"names":[],"mappings":"AAgDA,wBAAgB,UAAU,CAAC,GAAG,SAAsB,GAAG,MAAM,IAAI,CAkDhE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const mockState: {
|
|
2
|
+
granted: Set<string>;
|
|
3
|
+
permissionsLoading: boolean;
|
|
4
|
+
/** When set, every page suspends on it (as a lazily loaded SDK page does). */
|
|
5
|
+
pendingPage: Promise<void> | null;
|
|
6
|
+
/** fluidgrids.self-hosted-workers (with its prerequisites) for the workspace. */
|
|
7
|
+
selfHostedWorkers: boolean;
|
|
8
|
+
/** Whether the workspace's flags have settled (false during the first load). */
|
|
9
|
+
flagsSettled: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const SDK_PAGES: readonly ["AiStudioPage", "ApprovalInboxPage", "DataSinkDashboardPage", "DataTablesPage", "ErrorAnalyticsPage", "ExecutionsListPage", "ExecutionDetailPage", "HistoryPage", "InsightsPage", "NodesPage", "RunnersPage", "SettingsPage", "TaskQueuesPage", "TemplatesPage", "TemplatePreview", "VariablesPage", "WorkflowBuilderPage", "WorkflowSearchRedirect", "WorkflowsList"];
|
|
12
|
+
export declare function installModuleMocks(): Promise<void>;
|
|
13
|
+
//# sourceMappingURL=moduleMocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moduleMocks.d.ts","sourceRoot":"","sources":["../../src/test-support/moduleMocks.tsx"],"names":[],"mappings":"AAqBA,eAAO,MAAM,SAAS,EAAE;IACtB,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,8EAA8E;IAC9E,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAClC,iFAAiF;IACjF,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gFAAgF;IAChF,YAAY,EAAE,OAAO,CAAC;CAOvB,CAAC;AAEF,eAAO,MAAM,SAAS,kXAoBZ,CAAC;AA8BX,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CA2BxD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface Mounted {
|
|
3
|
+
container: HTMLElement;
|
|
4
|
+
text: () => string;
|
|
5
|
+
rerender: (node: ReactNode) => Promise<void>;
|
|
6
|
+
unmount: () => Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare function mount(node: ReactNode): Promise<Mounted>;
|
|
9
|
+
//# sourceMappingURL=render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/test-support/render.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAO,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,WAAW,CAAC;IACvB,IAAI,EAAE,MAAM,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED,wBAAsB,KAAK,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,CA6B7D"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bundled English translations for microfe-workflows.
|
|
3
|
+
*
|
|
4
|
+
* These serve as a fallback when the platform i18n API is unavailable or
|
|
5
|
+
* has not yet returned translations for the selected locale. Host shells can
|
|
6
|
+
* merge this bundle into their AppShellConfig.fallbackTranslations.
|
|
7
|
+
*/
|
|
8
|
+
export declare const enTranslations: {
|
|
9
|
+
workflows: {
|
|
10
|
+
nav: {
|
|
11
|
+
title: string;
|
|
12
|
+
myWorkflows: string;
|
|
13
|
+
aiStudio: string;
|
|
14
|
+
builder: string;
|
|
15
|
+
runs: string;
|
|
16
|
+
insights: string;
|
|
17
|
+
dataSinks: string;
|
|
18
|
+
dataTables: string;
|
|
19
|
+
history: string;
|
|
20
|
+
templates: string;
|
|
21
|
+
nodes: string;
|
|
22
|
+
variables: string;
|
|
23
|
+
runners: string;
|
|
24
|
+
settings: string;
|
|
25
|
+
};
|
|
26
|
+
footer: {
|
|
27
|
+
status: string;
|
|
28
|
+
};
|
|
29
|
+
error: {
|
|
30
|
+
title: string;
|
|
31
|
+
loadFailed: string;
|
|
32
|
+
refresh: string;
|
|
33
|
+
};
|
|
34
|
+
routes: {
|
|
35
|
+
loading: {
|
|
36
|
+
ariaLabel: string;
|
|
37
|
+
message: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
provider: {
|
|
41
|
+
learnMore: string;
|
|
42
|
+
purpose: string;
|
|
43
|
+
workspaceRequired: {
|
|
44
|
+
title: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
nextSteps: {
|
|
48
|
+
title: string;
|
|
49
|
+
open: {
|
|
50
|
+
label: string;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
template: {
|
|
54
|
+
label: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
build: {
|
|
58
|
+
label: string;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
loading: {
|
|
63
|
+
ariaLabel: string;
|
|
64
|
+
message: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=en.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/translations/en.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8D1B,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { getPlatform, isNative, isIOS, isAndroid, isWeb, nativeImpact, nativeNotify, nativeToast, nativeConfirm, nativeCopyText, nativeShare, nativeOpenUrl, useNativePlatform, useSafeArea, useNativeKeyboard, useAppState, useDeviceInfo, useHaptics, useStatusBar, } from '@burdenoff/fe-libs/shared/native';
|
|
2
|
+
export type { BurdenoffNativePlatform, BurdenoffNativeBridge, SafeAreaInsets, DeviceInfo, HapticImpactStyle, HapticNotificationType, ToastDuration, ConfirmOptions, ShareOptions, AppState, StatusBarTheme, } from '@burdenoff/fe-libs/shared/native';
|
|
3
|
+
//# sourceMappingURL=nativeBridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nativeBridge.d.ts","sourceRoot":"","sources":["../../src/utils/nativeBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,KAAK,EACL,SAAS,EACT,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,UAAU,EACV,YAAY,GACb,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EACV,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,cAAc,GACf,MAAM,kCAAkC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-workflows",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1109.1",
|
|
4
4
|
"description": "Workflows microfrontend for Burdenoff products - thin shell over @burdenoff/fluidgrids-fe-sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"import": "./dist/workflows.js"
|
|
10
10
|
},
|
|
11
11
|
"./switch-redirect-rules": {
|
|
12
|
+
"types": "./dist/switchRedirectRules.d.ts",
|
|
12
13
|
"import": "./dist/switchRedirectRules.js"
|
|
13
14
|
},
|
|
14
15
|
"./plugin": {
|
|
@@ -23,8 +24,8 @@
|
|
|
23
24
|
"lint:sanity": "if [ \"${CI:-}\" = \"true\" ]; then bun run lint; else bun run lint -- --cache --cache-location .eslintcache; fi",
|
|
24
25
|
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
25
26
|
"type:check": "bash scripts/build-limits.sh tsc --noEmit",
|
|
26
|
-
"test": "bun test ./src",
|
|
27
|
-
"sanity": "bash scripts/build-limits.sh --gate bash -c 'bun run codegen && bun run lint:sanity && bun run format && bun run type:check && bun run test && bun run build'",
|
|
27
|
+
"test": "bun test ./src && bun run test:release-package",
|
|
28
|
+
"sanity": "bash scripts/build-limits.sh --gate bash -c 'bun run codegen && bun run lint:sanity && bun run format && bun run type:check && bun run test && MFE_DTS=1 bun run build && bun run verify:package'",
|
|
28
29
|
"schema:pull": "echo \"No GraphQL operations — skipping schema:pull\"",
|
|
29
30
|
"codegen": "echo \"No GraphQL operations — skipping codegen\"",
|
|
30
31
|
"codegen:all": "echo \"No GraphQL operations — skipping codegen:all\"",
|
|
@@ -33,40 +34,43 @@
|
|
|
33
34
|
"switch:local": "bun scripts/deps-mode.ts local",
|
|
34
35
|
"switch:check": "bun scripts/deps-mode.ts check",
|
|
35
36
|
"prepare": "lefthook install || true",
|
|
36
|
-
"format:check": "prettier --check \"src/**/*.{ts,tsx}\""
|
|
37
|
+
"format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
|
|
38
|
+
"test:release-package": "bun test scripts/check-release-package.test.ts scripts/declaration-importer.test.ts",
|
|
39
|
+
"verify:package": "mkdir -p node_modules/.cache/release-package && npm pack --dry-run --json --ignore-scripts > node_modules/.cache/release-package/pack.json && bun scripts/check-release-package.ts node_modules/.cache/release-package/pack.json"
|
|
37
40
|
},
|
|
38
41
|
"dependencies": {
|
|
39
|
-
"@burdenoff/fe-libs": "2026.
|
|
42
|
+
"@burdenoff/fe-libs": "2026.1106.1",
|
|
40
43
|
"lucide-react": "^0.468.0",
|
|
41
|
-
"react": "^19.
|
|
42
|
-
"react-dom": "^19.
|
|
43
|
-
"react-router": "^8.
|
|
44
|
+
"react": "^19.3.1",
|
|
45
|
+
"react-dom": "^19.3.1",
|
|
46
|
+
"react-router": "^8.5.1"
|
|
44
47
|
},
|
|
45
48
|
"devDependencies": {
|
|
46
|
-
"@burdenoff/fluidgrids-fe-sdk": "2026.
|
|
47
|
-
"@eslint/js": "^9.39.
|
|
48
|
-
"@types/bun": "^1.
|
|
49
|
-
"@types/react": "^19.0
|
|
50
|
-
"@types/react-dom": "^19.0
|
|
51
|
-
"@vitejs/plugin-react": "
|
|
52
|
-
"autoprefixer": "^10.
|
|
53
|
-
"eslint": "^9.
|
|
49
|
+
"@burdenoff/fluidgrids-fe-sdk": "2026.1109.1",
|
|
50
|
+
"@eslint/js": "^9.39.5",
|
|
51
|
+
"@types/bun": "^1.4.4",
|
|
52
|
+
"@types/react": "^19.3.0",
|
|
53
|
+
"@types/react-dom": "^19.3.0",
|
|
54
|
+
"@vitejs/plugin-react": "6.0.1",
|
|
55
|
+
"autoprefixer": "^10.6.2",
|
|
56
|
+
"eslint": "^9.39.5",
|
|
54
57
|
"eslint-plugin-react": "^7.37.5",
|
|
55
|
-
"eslint-plugin-react-hooks": "^7.
|
|
56
|
-
"framer-motion": "^12.
|
|
57
|
-
"globals": "^17.
|
|
58
|
-
"happy-dom": "
|
|
59
|
-
"lefthook": "^2.
|
|
60
|
-
"postcss": "^8.
|
|
61
|
-
"prettier": "^3.
|
|
62
|
-
"tailwindcss": "^4.
|
|
63
|
-
"typescript": "^5.9.
|
|
64
|
-
"typescript-eslint": "^8.
|
|
65
|
-
"vite": "8.
|
|
66
|
-
"vite-plugin-dts": "
|
|
58
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
59
|
+
"framer-motion": "^12.43.0",
|
|
60
|
+
"globals": "^17.14.0",
|
|
61
|
+
"happy-dom": "21.0.4",
|
|
62
|
+
"lefthook": "^2.2.2",
|
|
63
|
+
"postcss": "^8.5.32",
|
|
64
|
+
"prettier": "^3.9.10",
|
|
65
|
+
"tailwindcss": "^4.3.5",
|
|
66
|
+
"typescript": "^5.9.3",
|
|
67
|
+
"typescript-eslint": "^8.72.1",
|
|
68
|
+
"vite": "8.1.6",
|
|
69
|
+
"vite-plugin-dts": "4.5.4",
|
|
70
|
+
"ajv": "8.20.0"
|
|
67
71
|
},
|
|
68
72
|
"peerDependencies": {
|
|
69
|
-
"@burdenoff/fluidgrids-fe-sdk": "2026.
|
|
73
|
+
"@burdenoff/fluidgrids-fe-sdk": "2026.1109.1",
|
|
70
74
|
"framer-motion": "^12.0.0",
|
|
71
75
|
"react": "^19.0.0",
|
|
72
76
|
"react-dom": "^19.0.0"
|