@burdenoff/microfe-workflows 2026.803.1 → 2026.828.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/providers/WorkflowsProvider.js +52 -49
- package/dist/workflows.js +2 -2
- package/package.json +4 -4
|
@@ -3,37 +3,37 @@ import { useWorkflowsTranslation as t } from "../i18n.js";
|
|
|
3
3
|
import { createContext as n, useEffect as r, useState as i } from "react";
|
|
4
4
|
import { EmphasisPanel as a, GlassCard as o, IllustratedEmptyState as s, NextSteps as c, PagePurpose as l } from "@burdenoff/fe-libs/ui";
|
|
5
5
|
import { Boxes as u, LayoutDashboard as d, Workflow as f } from "lucide-react";
|
|
6
|
-
import { FluidGridsPermissionsProvider as p,
|
|
7
|
-
import { useGatewayClient as
|
|
8
|
-
import { PermissionProvider as
|
|
9
|
-
import { jsx as
|
|
6
|
+
import { FluidGridsPermissionsProvider as p, FluidGridsTranslationProvider as m, refetchStoreNodes as h, resetFluidGridsClient as g, resetGlobalStoreClient as _, setFluidGridsClient as v, setFluidGridsConfig as y, setGlobalStoreClient as b } from "@burdenoff/fluidgrids-fe-sdk";
|
|
7
|
+
import { useGatewayClient as x } from "@burdenoff/fe-libs/shared/graphql";
|
|
8
|
+
import { PermissionProvider as S, usePermissions as C } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
9
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
10
10
|
//#region src/providers/WorkflowsProvider.tsx
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
let { hasPermission: t, isLoading: n } =
|
|
14
|
-
return /* @__PURE__ */
|
|
11
|
+
var E = n(null);
|
|
12
|
+
function D({ children: e }) {
|
|
13
|
+
let { hasPermission: t, isLoading: n } = C();
|
|
14
|
+
return /* @__PURE__ */ w(p, {
|
|
15
15
|
hasPermission: t,
|
|
16
16
|
isLoading: n,
|
|
17
17
|
children: e
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function O(e) {
|
|
21
21
|
let t = e.endsWith("/") ? e.slice(0, -1) : e;
|
|
22
22
|
return t.endsWith("/graphql") ? t : `${t}/workspaces/graphql`;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
let
|
|
26
|
-
if (r(() => (
|
|
27
|
-
|
|
28
|
-
}), [
|
|
24
|
+
function k({ children: n, ...p }) {
|
|
25
|
+
let C = t(), k = x("workspace"), A = x("global"), [j, M] = i(!1);
|
|
26
|
+
if (r(() => (k && A && (v(k), b(A), h(), M(!0)), () => {
|
|
27
|
+
g(), _(), M(!1);
|
|
28
|
+
}), [k, A]), r(() => {
|
|
29
29
|
if (p.apiGatewayUrl) {
|
|
30
|
-
let t =
|
|
30
|
+
let t = O(p.apiGatewayUrl), n = p.apiGatewayUrl.endsWith("/") ? p.apiGatewayUrl.slice(0, -1) : p.apiGatewayUrl;
|
|
31
31
|
e({
|
|
32
32
|
workflowSvcUrl: t,
|
|
33
33
|
apiGatewayUrl: n
|
|
34
34
|
});
|
|
35
35
|
let r = p.callbacks?.onWorkflowSaved;
|
|
36
|
-
|
|
36
|
+
y({
|
|
37
37
|
apiGatewayUrl: n,
|
|
38
38
|
authToken: p.authToken,
|
|
39
39
|
workspaceId: p.workspaceId ?? "",
|
|
@@ -53,33 +53,33 @@ function O({ children: n, ...p }) {
|
|
|
53
53
|
p.callbacks
|
|
54
54
|
]), !p.workspaceId) {
|
|
55
55
|
let e = (e, t) => `${e.endsWith("/") ? e.slice(0, -1) : e}/${t}`, t = (t) => p.navigate(e(p.basePath ?? "/", t));
|
|
56
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ T("div", {
|
|
57
57
|
className: "mx-auto flex h-full min-h-[60vh] w-full max-w-2xl flex-col justify-center gap-6 px-4 py-10",
|
|
58
58
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
icon: /* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ w(l, {
|
|
60
|
+
icon: /* @__PURE__ */ w(f, {
|
|
61
61
|
className: "size-4",
|
|
62
62
|
"aria-hidden": "true"
|
|
63
63
|
}),
|
|
64
|
-
children:
|
|
64
|
+
children: C("workflows.provider.purpose", "Workflows let you automate multi-step processes — for example, sync a new signup into your CRM, post run results to Slack, or transform and route data between apps. You build them visually by wiring nodes together, then trigger them on a schedule, a webhook, or on demand.")
|
|
65
65
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ w(a, {
|
|
67
67
|
className: "p-6",
|
|
68
|
-
children: /* @__PURE__ */
|
|
68
|
+
children: /* @__PURE__ */ w(s, {
|
|
69
69
|
illustration: "onboarding",
|
|
70
|
-
title:
|
|
71
|
-
description:
|
|
70
|
+
title: C("workflows.provider.workspaceRequired.title", "Pick a workspace to start building"),
|
|
71
|
+
description: C("workflows.provider.workspaceRequired.description", "Workflows live inside a workspace so your automations, runs, and connections stay scoped to the right team. Select or create an active workspace from the shell to load your workflows.")
|
|
72
72
|
})
|
|
73
73
|
}),
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ w(c, {
|
|
75
75
|
storageKey: "workflows-get-started",
|
|
76
|
-
title:
|
|
76
|
+
title: C("workflows.provider.nextSteps.title", "Once your workspace is active"),
|
|
77
77
|
steps: [
|
|
78
78
|
{
|
|
79
79
|
id: "open-workflows",
|
|
80
|
-
label:
|
|
81
|
-
description:
|
|
82
|
-
icon: /* @__PURE__ */
|
|
80
|
+
label: C("workflows.provider.nextSteps.open.label", "Open your workflows"),
|
|
81
|
+
description: C("workflows.provider.nextSteps.open.description", "Browse, search, and manage every automation in this workspace."),
|
|
82
|
+
icon: /* @__PURE__ */ w(f, {
|
|
83
83
|
className: "size-4",
|
|
84
84
|
"aria-hidden": "true"
|
|
85
85
|
}),
|
|
@@ -87,9 +87,9 @@ function O({ children: n, ...p }) {
|
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
id: "start-template",
|
|
90
|
-
label:
|
|
91
|
-
description:
|
|
92
|
-
icon: /* @__PURE__ */
|
|
90
|
+
label: C("workflows.provider.nextSteps.template.label", "Start from a template"),
|
|
91
|
+
description: C("workflows.provider.nextSteps.template.description", "Skip the blank canvas — adapt a ready-made workflow to your use-case."),
|
|
92
|
+
icon: /* @__PURE__ */ w(d, {
|
|
93
93
|
className: "size-4",
|
|
94
94
|
"aria-hidden": "true"
|
|
95
95
|
}),
|
|
@@ -97,9 +97,9 @@ function O({ children: n, ...p }) {
|
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
id: "build-new",
|
|
100
|
-
label:
|
|
101
|
-
description:
|
|
102
|
-
icon: /* @__PURE__ */
|
|
100
|
+
label: C("workflows.provider.nextSteps.build.label", "Build a workflow from scratch"),
|
|
101
|
+
description: C("workflows.provider.nextSteps.build.description", "Open the visual builder and wire nodes together step by step."),
|
|
102
|
+
icon: /* @__PURE__ */ w(u, {
|
|
103
103
|
className: "size-4",
|
|
104
104
|
"aria-hidden": "true"
|
|
105
105
|
}),
|
|
@@ -110,32 +110,35 @@ function O({ children: n, ...p }) {
|
|
|
110
110
|
]
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
return
|
|
113
|
+
return j ? /* @__PURE__ */ w(E.Provider, {
|
|
114
114
|
value: p,
|
|
115
|
-
children: /* @__PURE__ */
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
children: /* @__PURE__ */ w(m, {
|
|
116
|
+
t: C,
|
|
117
|
+
children: /* @__PURE__ */ w(S, {
|
|
118
|
+
scopeId: p.workspaceId ?? null,
|
|
119
|
+
gateway: "workspace",
|
|
120
|
+
children: /* @__PURE__ */ w(D, { children: n })
|
|
121
|
+
})
|
|
119
122
|
})
|
|
120
|
-
}) : /* @__PURE__ */
|
|
123
|
+
}) : /* @__PURE__ */ T("div", {
|
|
121
124
|
className: "mx-auto flex h-full min-h-[60vh] w-full max-w-md flex-col items-center justify-center gap-4 px-4 py-10 text-center",
|
|
122
125
|
role: "status",
|
|
123
126
|
"aria-live": "polite",
|
|
124
127
|
"aria-busy": "true",
|
|
125
|
-
"aria-label":
|
|
126
|
-
children: [/* @__PURE__ */
|
|
128
|
+
"aria-label": C("workflows.provider.loading.ariaLabel", "Loading workflows"),
|
|
129
|
+
children: [/* @__PURE__ */ T(o, {
|
|
127
130
|
treatment: "glass",
|
|
128
131
|
className: "flex w-full flex-col items-center gap-4 border-border-seam p-6",
|
|
129
132
|
children: [
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ w("div", { className: "h-12 w-12 rounded-full bg-muted/60 motion-safe:animate-vc-shimmer" }),
|
|
134
|
+
/* @__PURE__ */ w("div", { className: "h-4 w-40 rounded bg-muted/50 motion-safe:animate-vc-shimmer" }),
|
|
135
|
+
/* @__PURE__ */ w("div", { className: "h-3 w-56 max-w-full rounded bg-muted/30 motion-safe:animate-vc-shimmer" })
|
|
133
136
|
]
|
|
134
|
-
}), /* @__PURE__ */
|
|
137
|
+
}), /* @__PURE__ */ w("p", {
|
|
135
138
|
className: "text-sm text-text-secondary",
|
|
136
|
-
children:
|
|
139
|
+
children: C("workflows.provider.loading.message", "Connecting workflows...")
|
|
137
140
|
})]
|
|
138
141
|
});
|
|
139
142
|
}
|
|
140
143
|
//#endregion
|
|
141
|
-
export {
|
|
144
|
+
export { k as WorkflowsProvider };
|
package/dist/workflows.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { config as e, resetWorkflowsConfig as t, setWorkflowsConfig as n } from "./config/index.js";
|
|
2
2
|
import { WorkflowsRoot as r } from "./WorkflowsRoot.js";
|
|
3
|
-
import { ExecutionDetailPage as i, ExecutionsListPage as a, FluidGridsProvider as o, FluidGridsRoot as s, HistoryPage as c, NodesPage as l, SettingsPage as u,
|
|
4
|
-
export {
|
|
3
|
+
import { ExecutionDetailPage as i, ExecutionsListPage as a, FluidGridsProvider as o, FluidGridsRoot as s, HistoryPage as c, NodesPage as l, SettingsPage as u, TemplatePreview as d, TemplatesPage as f, WorkflowBuilder as p, WorkflowBuilderCore as m, WorkflowBuilderPage as h, WorkflowSearchRedirect as g, WorkflowsList as _, cn as v, createFluidGridsClient as y, fetchAllNodesWithManifests as b, getFluidGridsClient as x, getFluidGridsClient as S, getFluidGridsClientSafe as C, isFluidGridsClientReady as w, resetFluidGridsClient as T, setFluidGridsClient as E, setFluidGridsClient as D, setFluidGridsConfig as O, useCreateWorkflow as k, useCreateWorkflowVersion as A, useDashboardSummary as j, useDeleteWorkflow as M, useDuplicateWorkflow as N, useFlowStore as P, useFluidGridsContext as F, useLazyNodeManifest as I, useLazyWorkflowDefinition as L, useNodeEndpoint as R, useNodeEndpoints as z, useNodeManifest as B, useTriggerWorkflow as V, useUpdateWorkflow as H, useWorkflowDefinition as U, useWorkflowDefinitions as W, useWorkflowRun as G, useWorkflowRuns as K, useWorkflowVersions as q, waitForFluidGridsClient as J } from "@burdenoff/fluidgrids-fe-sdk";
|
|
4
|
+
export { p as EmbeddableWorkflowBuilder, m as EmbeddableWorkflowBuilderCore, o as EmbeddableWorkflowProvider, s as EmbeddableWorkflowRoot, i as ExecutionDetailPage, a as ExecutionsListPage, c as HistoryPage, l as NodesPage, u as SettingsPage, d as TemplatePreview, f as TemplatesPage, h as WorkflowBuilderPage, g as WorkflowSearchRedirect, _ as WorkflowsList, r as WorkflowsRoot, v as cn, e as config, y as createEmbeddableClient, b as fetchAllNodesWithManifests, S as getEmbeddableClient, x as getFluidGridsClient, C as getFluidGridsClientSafe, w as isFluidGridsClientReady, T as resetFluidGridsClient, t as resetWorkflowsConfig, D as setEmbeddableClient, O as setEmbeddableConfig, E as setFluidGridsClient, n as setWorkflowsConfig, k as useCreateWorkflow, A as useCreateWorkflowVersion, j as useDashboardSummary, M as useDeleteWorkflow, N as useDuplicateWorkflow, F as useEmbeddableContext, P as useEmbeddableFlowStore, I as useLazyNodeManifest, L as useLazyWorkflowDefinition, R as useNodeEndpoint, z as useNodeEndpoints, B as useNodeManifest, V as useTriggerWorkflow, H as useUpdateWorkflow, U as useWorkflowDefinition, W as useWorkflowDefinitions, G as useWorkflowRun, K as useWorkflowRuns, q as useWorkflowVersions, J as waitForFluidGridsClient };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-workflows",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.828.1",
|
|
4
4
|
"description": "Workflows microfrontend for Burdenoff products - thin shell over @burdenoff/fluidgrids-fe-sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react-router": "^8.3.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@burdenoff/fluidgrids-fe-sdk": "2026.
|
|
38
|
+
"@burdenoff/fluidgrids-fe-sdk": "2026.804.2",
|
|
39
39
|
"@eslint/js": "^9.39.2",
|
|
40
40
|
"@types/react": "^19.0.2",
|
|
41
41
|
"@types/react-dom": "^19.0.2",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"vite-plugin-dts": "3.9.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@burdenoff/fluidgrids-fe-sdk": "2026.
|
|
58
|
+
"@burdenoff/fluidgrids-fe-sdk": "2026.804.2",
|
|
59
59
|
"react": "^19.0.0",
|
|
60
60
|
"react-dom": "^19.0.0"
|
|
61
61
|
},
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"README.md"
|
|
73
73
|
],
|
|
74
74
|
"publishConfig": {
|
|
75
|
-
"access": "
|
|
75
|
+
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"overrides": {
|
|
78
78
|
"lodash": ">=4.17.21",
|