@burdenoff/microfe-workflows 2026.1123.1 → 2026.1124.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.
@@ -1,153 +1,154 @@
1
1
  import { WorkflowsProvider as e } from "./providers/WorkflowsProvider.js";
2
- import { WorkflowsRoutes as t } from "./WorkflowsRoutes.js";
3
- import { useWorkflowsTranslation as n } from "./i18n.js";
4
- import { useEffect as r } from "react";
5
- import { ErrorBoundary as i } from "@burdenoff/fe-libs/shared/components";
6
- import { AuroraBackground as a, Button as o, IllustratedEmptyState as s } from "@burdenoff/fe-libs/ui";
7
- import { BarChart3 as c, Boxes as l, Database as u, FileCode2 as d, History as f, LayoutDashboard as p, Network as m, PlayCircle as h, RefreshCw as g, Server as _, Settings as v, Sparkles as y, Table2 as b, Variable as x, Workflow as S } from "lucide-react";
8
- import { jsx as C, jsxs as w } from "react/jsx-runtime";
2
+ import { workflowsSessionKey as t } from "./providers/sessionKey.js";
3
+ import { WorkflowsRoutes as n } from "./WorkflowsRoutes.js";
4
+ import { useWorkflowsTranslation as r } from "./i18n.js";
5
+ import { useEffect as i } from "react";
6
+ import { ErrorBoundary as a } from "@burdenoff/fe-libs/shared/components";
7
+ import { AuroraBackground as o, Button as s, IllustratedEmptyState as c } from "@burdenoff/fe-libs/ui";
8
+ import { BarChart3 as l, Boxes as u, Database as d, FileCode2 as f, History as p, LayoutDashboard as m, Network as h, PlayCircle as g, RefreshCw as _, Server as v, Settings as y, Sparkles as b, Table2 as x, Variable as S, Workflow as C } from "lucide-react";
9
+ import { jsx as w, jsxs as T } from "react/jsx-runtime";
9
10
  // src/WorkflowsRoot.tsx
10
- function T(T) {
11
- let { basePath: E = "/", registerNavItems: D, registerFooterItems: O } = T, k = n();
12
- return r(() => {
13
- if (!D) return;
11
+ function E(E) {
12
+ let { basePath: D = "/", registerNavItems: O, registerFooterItems: k } = E, A = r();
13
+ return i(() => {
14
+ if (!O) return;
14
15
  let e = (e, t) => `${e.endsWith("/") ? e.slice(0, -1) : e}/${t}`, t = [
15
16
  {
16
17
  id: "workflows-list",
17
- label: k("workflows.nav.myWorkflows", "My Workflows"),
18
- path: e(E, "list"),
19
- icon: /* @__PURE__ */ C(S, { size: 18 }),
18
+ label: A("workflows.nav.myWorkflows", "My Workflows"),
19
+ path: e(D, "list"),
20
+ icon: /* @__PURE__ */ w(C, { size: 18 }),
20
21
  order: 2
21
22
  },
22
23
  {
23
24
  id: "workflows-ai-studio",
24
- label: k("workflows.nav.aiStudio", "AI Studio"),
25
- path: e(E, "ai-studio"),
26
- icon: /* @__PURE__ */ C(y, { size: 18 }),
25
+ label: A("workflows.nav.aiStudio", "AI Studio"),
26
+ path: e(D, "ai-studio"),
27
+ icon: /* @__PURE__ */ w(b, { size: 18 }),
27
28
  order: 2.5
28
29
  },
29
30
  {
30
31
  id: "workflows-builder",
31
- label: k("workflows.nav.builder", "Builder"),
32
- path: e(E, "new"),
33
- icon: /* @__PURE__ */ C(l, { size: 18 }),
32
+ label: A("workflows.nav.builder", "Builder"),
33
+ path: e(D, "new"),
34
+ icon: /* @__PURE__ */ w(u, { size: 18 }),
34
35
  order: 3
35
36
  },
36
37
  {
37
38
  id: "workflows-runs",
38
- label: k("workflows.nav.runs", "Runs"),
39
- path: e(E, "runs"),
40
- icon: /* @__PURE__ */ C(h, { size: 18 }),
39
+ label: A("workflows.nav.runs", "Runs"),
40
+ path: e(D, "runs"),
41
+ icon: /* @__PURE__ */ w(g, { size: 18 }),
41
42
  order: 4
42
43
  },
43
44
  {
44
45
  id: "workflows-insights",
45
- label: k("workflows.nav.insights", "Insights"),
46
- path: e(E, "insights"),
47
- icon: /* @__PURE__ */ C(c, { size: 18 }),
46
+ label: A("workflows.nav.insights", "Insights"),
47
+ path: e(D, "insights"),
48
+ icon: /* @__PURE__ */ w(l, { size: 18 }),
48
49
  order: 5
49
50
  },
50
51
  {
51
52
  id: "workflows-data-sinks",
52
- label: k("workflows.nav.dataSinks", "DataSinks"),
53
- path: e(E, "data-sinks"),
54
- icon: /* @__PURE__ */ C(u, { size: 18 }),
53
+ label: A("workflows.nav.dataSinks", "DataSinks"),
54
+ path: e(D, "data-sinks"),
55
+ icon: /* @__PURE__ */ w(d, { size: 18 }),
55
56
  order: 6
56
57
  },
57
58
  {
58
59
  id: "workflows-data-tables",
59
- label: k("workflows.nav.dataTables", "Data Tables"),
60
- path: e(E, "data-tables"),
61
- icon: /* @__PURE__ */ C(b, { size: 18 }),
60
+ label: A("workflows.nav.dataTables", "Data Tables"),
61
+ path: e(D, "data-tables"),
62
+ icon: /* @__PURE__ */ w(x, { size: 18 }),
62
63
  order: 7
63
64
  },
64
65
  {
65
66
  id: "workflows-history",
66
- label: k("workflows.nav.history", "History"),
67
- path: e(E, "history"),
68
- icon: /* @__PURE__ */ C(f, { size: 18 }),
67
+ label: A("workflows.nav.history", "History"),
68
+ path: e(D, "history"),
69
+ icon: /* @__PURE__ */ w(p, { size: 18 }),
69
70
  order: 7
70
71
  },
71
72
  {
72
73
  id: "workflows-templates",
73
- label: k("workflows.nav.templates", "Templates"),
74
- path: e(E, "templates"),
75
- icon: /* @__PURE__ */ C(p, { size: 18 }),
74
+ label: A("workflows.nav.templates", "Templates"),
75
+ path: e(D, "templates"),
76
+ icon: /* @__PURE__ */ w(m, { size: 18 }),
76
77
  order: 8
77
78
  },
78
79
  {
79
80
  id: "workflows-nodes",
80
- label: k("workflows.nav.nodes", "Nodes"),
81
- path: e(E, "nodes"),
82
- icon: /* @__PURE__ */ C(m, { size: 18 }),
81
+ label: A("workflows.nav.nodes", "Nodes"),
82
+ path: e(D, "nodes"),
83
+ icon: /* @__PURE__ */ w(h, { size: 18 }),
83
84
  order: 9
84
85
  },
85
86
  {
86
87
  id: "workflows-variables",
87
- label: k("workflows.nav.variables", "Variables"),
88
- path: e(E, "variables"),
89
- icon: /* @__PURE__ */ C(x, { size: 18 }),
88
+ label: A("workflows.nav.variables", "Variables"),
89
+ path: e(D, "variables"),
90
+ icon: /* @__PURE__ */ w(S, { size: 18 }),
90
91
  order: 10
91
92
  },
92
93
  {
93
94
  id: "workflows-runners",
94
- label: k("workflows.nav.runners", "Runners"),
95
- path: e(E, "runners"),
96
- icon: /* @__PURE__ */ C(_, { size: 18 }),
95
+ label: A("workflows.nav.runners", "Runners"),
96
+ path: e(D, "runners"),
97
+ icon: /* @__PURE__ */ w(v, { size: 18 }),
97
98
  order: 11
98
99
  },
99
100
  {
100
101
  id: "workflows-settings",
101
- label: k("workflows.nav.settings", "Settings"),
102
- path: e(E, "settings"),
103
- icon: /* @__PURE__ */ C(v, { size: 18 }),
102
+ label: A("workflows.nav.settings", "Settings"),
103
+ path: e(D, "settings"),
104
+ icon: /* @__PURE__ */ w(y, { size: 18 }),
104
105
  order: 12
105
106
  }
106
107
  ], n = [{
107
108
  id: "workflows",
108
- label: k("workflows.nav.title", "Workflows"),
109
- path: E,
110
- icon: /* @__PURE__ */ C(d, { size: 20 }),
109
+ label: A("workflows.nav.title", "Workflows"),
110
+ path: D,
111
+ icon: /* @__PURE__ */ w(f, { size: 20 }),
111
112
  order: 200,
112
113
  group: "workflows",
113
114
  children: t
114
115
  }];
115
- return D(n);
116
+ return O(n);
116
117
  }, [
118
+ O,
117
119
  D,
118
- E,
119
- k
120
- ]), r(() => {
121
- if (!O) return;
120
+ A
121
+ ]), i(() => {
122
+ if (!k) return;
122
123
  let e = [{
123
124
  id: "workflows-status",
124
- label: k("workflows.footer.status", "Workflows Ready"),
125
+ label: A("workflows.footer.status", "Workflows Ready"),
125
126
  type: "status",
126
127
  order: 10,
127
128
  section: "left"
128
129
  }];
129
- return O(e);
130
- }, [O, k]), /* @__PURE__ */ C(i, {
131
- fallback: /* @__PURE__ */ w("div", {
130
+ return k(e);
131
+ }, [k, A]), /* @__PURE__ */ w(a, {
132
+ fallback: /* @__PURE__ */ T("div", {
132
133
  className: "relative flex min-h-[60vh] w-full items-center justify-center overflow-hidden px-4 py-10",
133
- children: [/* @__PURE__ */ C(a, { intensity: "subtle" }), /* @__PURE__ */ C(s, {
134
+ children: [/* @__PURE__ */ w(o, { intensity: "subtle" }), /* @__PURE__ */ w(c, {
134
135
  illustration: "empty-generic",
135
- title: k("workflows.error.title", "Workflows hit a snag"),
136
- description: k("workflows.error.loadFailed", "Something went wrong loading this module. Please refresh the page."),
137
- action: /* @__PURE__ */ w(o, {
136
+ title: A("workflows.error.title", "Workflows hit a snag"),
137
+ description: A("workflows.error.loadFailed", "Something went wrong loading this module. Please refresh the page."),
138
+ action: /* @__PURE__ */ T(s, {
138
139
  onClick: () => window.location.reload(),
139
- children: [/* @__PURE__ */ C(g, {
140
+ children: [/* @__PURE__ */ w(_, {
140
141
  className: "size-4",
141
142
  "aria-hidden": "true"
142
- }), k("workflows.error.refresh", "Refresh page")]
143
+ }), A("workflows.error.refresh", "Refresh page")]
143
144
  }),
144
145
  kind: "error"
145
146
  })]
146
147
  }),
147
- children: /* @__PURE__ */ C(e, {
148
- ...T,
149
- children: /* @__PURE__ */ C(t, {})
150
- }, `${T.apiGatewayUrl ?? ""}:${T.tenantId ?? ""}:${T.workspaceId ?? ""}:${T.productId ?? ""}:${T.currentUser?.id ?? ""}`)
148
+ children: /* @__PURE__ */ w(e, {
149
+ ...E,
150
+ children: /* @__PURE__ */ w(n, {})
151
+ }, t(E))
151
152
  });
152
153
  }
153
- export { T as WorkflowsRoot };
154
+ export { E as WorkflowsRoot };
@@ -0,0 +1,15 @@
1
+ import { WorkflowsRootProps } from '../WorkflowsRoot';
2
+ /**
3
+ * The identity a provider session belongs to: the gateway, workspace, product
4
+ * and signed-in user. A change of any of them remounts the provider, which
5
+ * drops every page's in-memory state (open forms, run filters).
6
+ *
7
+ * The tenant is deliberately not part of it (BOFF-15004). A workspace belongs
8
+ * to exactly one tenant, so a real tenant switch always changes `workspaceId`
9
+ * too. The tenant prop on its own does change while the host resolves it: on
10
+ * a deep link the FluidGrids shell first passes a placeholder and then the
11
+ * tenant's id once the active context loads. Keying on it remounted the whole
12
+ * module a moment after the first render, and anything typed by then was lost.
13
+ * The provider applies a new `tenantId` to the SDK config without a remount.
14
+ */
15
+ export declare function workflowsSessionKey(props: Pick<WorkflowsRootProps, 'apiGatewayUrl' | 'workspaceId' | 'productId' | 'currentUser'>): string;
@@ -0,0 +1,10 @@
1
+ // src/providers/sessionKey.ts
2
+ function e(e) {
3
+ return [
4
+ e.apiGatewayUrl ?? "",
5
+ e.workspaceId ?? "",
6
+ e.productId ?? "",
7
+ e.currentUser?.id ?? ""
8
+ ].join("|");
9
+ }
10
+ export { e as workflowsSessionKey };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-workflows",
3
- "version": "2026.1123.1",
3
+ "version": "2026.1124.1",
4
4
  "description": "Workflows microfrontend for Burdenoff products - thin shell over @burdenoff/fluidgrids-fe-sdk",
5
5
  "type": "module",
6
6
  "exports": {