@burdenoff/fluidgrids-fe-sdk 2026.1111.16 → 2026.1111.17
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/README.md +41 -0
- package/dist/AiStudioPage-kJHSsIcj.js +774 -0
- package/dist/ApprovalInboxPage-dbBDSJ-f.js +558 -0
- package/dist/DataSinkDashboardPage-1h2QsMzH.js +270 -0
- package/dist/DataTablesPage-BZy2z0LB.js +1690 -0
- package/dist/EntityTagPicker-BqRNsLCQ.js +135 -0
- package/dist/{ExecutionDetailPage-D-0_POAf.js → ExecutionDetailPage-BdcZmLT4.js} +799 -4420
- package/dist/ExecutionDetailPage-DvQ667OE.d.ts +10 -0
- package/dist/ExecutionsListPage-BCUJoAIE.js +2742 -0
- package/dist/{FailureTriagePanel-BHiduL7A.js → FailureTriagePanel-B9hDQymi.js} +4 -97
- package/dist/{FluidGridsProvider-DmvFADFa.js → FluidGridsProvider-dvZSNtSW.js} +10 -350
- package/dist/HistoryPage-BLoRpJ1R.d.ts +6 -0
- package/dist/{HistoryPage-BbUgxx1I.js → HistoryPage-U0tqupBN.js} +6 -4
- package/dist/HumanRequestCard-D-ooVPDn.js +439 -0
- package/dist/{InsightsPage-s6f5bU-8.js → InsightsPage-CALo16eB.js} +17 -328
- package/dist/ManagedAiPolicyAuthority-BxwJ3ptd.js +40 -0
- package/dist/{ManagedAiPolicyAuthority-CGux_DaV.d.ts → ManagedAiPolicyAuthority-DM3t3wNr.d.ts} +1 -5
- package/dist/ManagedAiPolicyAuthorityContext-CNkxIOZ1.js +10 -0
- package/dist/{MissingNodesInstallModal-B-9gHy2K.js → MissingNodesInstallModal-CMybsI8h.js} +3 -2
- package/dist/{NodesPage-ClvhUfbh.js → NodesPage-Bf5PhfBK.js} +7 -3
- package/dist/NodesPage-DEbnz9iU.d.ts +6 -0
- package/dist/{PublishCustomNodeAction-D2F7oN0S.js → PublishCustomNodeAction-5XXnSA3H.js} +3 -45
- package/dist/QuotaExhaustedDialog-7IFSaLyi.js +54 -0
- package/dist/RunnerStatusPill-Ctg4TJcP.js +187 -0
- package/dist/RunnersPage-CLCOCclc.js +467 -0
- package/dist/{ManagedAiPolicyAuthority-DsSaz-vg.js → SettingsPage-CgkRlCM5.js} +19 -50
- package/dist/SettingsPage-DMHQFj5-.d.ts +9 -0
- package/dist/TagFilterSelect-DCBOH6Ou.js +41 -0
- package/dist/TaskQueuesPage-9VgSnLdL.js +951 -0
- package/dist/TemplateCard-DsC0KNH1.js +1416 -0
- package/dist/{TemplateConfigurationModal-D_Mvgxqa.js → TemplateConfigurationModal-BhGWIzpm.js} +3 -2
- package/dist/{TemplateDetailPanel-DfFfUcOe.js → TemplateDetailPanel-D4cUVr-m.js} +3 -3
- package/dist/TemplatePreview-GthzCOSo.js +231 -0
- package/dist/TemplatesPage-BG3H-6v6.d.ts +10 -0
- package/dist/{TemplatesPage-Cku13bav.js → TemplatesPage-CsDNT54N.js} +11 -228
- package/dist/VariablesPage-67WR_lVE.js +949 -0
- package/dist/{VersionDiffDialog-Dq2xlPFI.js → VersionDiffDialog-DSN0mU0f.js} +2 -1
- package/dist/WorkflowBuilder-DEi_9YOb.js +555 -0
- package/dist/{WorkflowSearchRedirect-CaoOOpEl.js → WorkflowBuilder-iPqXgbYr.js} +19 -585
- package/dist/{WorkflowProposalCard-8Vr56kQa.js → WorkflowProposalCard-qrEeNyYG.js} +4 -405
- package/dist/WorkflowSearchRedirect-DwDNZ_q5.js +36 -0
- package/dist/{WorkflowShareDialog-6RRDe-_v.js → WorkflowShareDialog-B_gn968c.js} +6 -52
- package/dist/{WorkflowsList-B2j1Pehb.js → WorkflowsList-CA20dVIl.js} +11 -6
- package/dist/WorkflowsList-CcNDQge5.d.ts +6 -0
- package/dist/agent-form-Bfvm32j1.js +83 -0
- package/dist/{agentTools-DJ5o2ekg.js → agentTools-CkRJB7r5.js} +3 -2
- package/dist/{ai-usage-D5p7ZeRR.js → ai-usage-glCwHyQz.js} +1 -1
- package/dist/api-BrCHB5oA.js +224 -0
- package/dist/api-C8e0iV-Q.js +55 -0
- package/dist/button-DG7y_FVJ.js +48 -0
- package/dist/{canvasNoteTools-D3zUdEeg.js → canvasNoteTools-CQIc7Oxg.js} +2 -2
- package/dist/client-C9XSzSXr.js +1147 -0
- package/dist/{codec-client-DstqyzTN.js → codec-client-CJ95Rmqo.js} +1 -1
- package/dist/constants-B2lhWNoN.js +202 -0
- package/dist/constants-XdvUxeWK.d.ts +162 -0
- package/dist/dialog-Cjb4lB4D.js +105 -0
- package/dist/executions.d.ts +1 -1
- package/dist/executions.js +2 -1
- package/dist/feature-flags-DM5myWaD.js +296 -0
- package/dist/flags.d.ts +3 -0
- package/dist/flags.js +4 -0
- package/dist/{flow-builder-DEzT8TQu.js → flow-builder-y2Y1iG4Y.js} +70 -1731
- package/dist/{node-endpoint-configs-DHFGA5MQ.js → graphql-operation-types-kX-MMjgW.js} +1 -1194
- package/dist/{graphql-types-XcDLtFwU.js → graphql-types-CDKVWH2R.js} +2 -202
- package/dist/history.d.ts +1 -1
- package/dist/history.js +1 -1
- package/dist/index-72XFgvbn.d.ts +132 -0
- package/dist/index-BcdtKBM-.d.ts +56 -0
- package/dist/{index-B3BWqafN.d.ts → index-DjiFgEQl.d.ts} +5 -131
- package/dist/{index-DRf25-D3.d.ts → index-W2o__Nm6.d.ts} +32 -214
- package/dist/index.d.ts +13 -9
- package/dist/index.js +50 -5300
- package/dist/{node-detail-view-LNqeIqN-.js → node-detail-view-B91kXzIy.js} +11 -8
- package/dist/node-endpoint-configs-B5bjNMDW.js +37 -0
- package/dist/node-registry-refresh-Dy0uRg9f.js +84 -0
- package/dist/nodes.d.ts +1 -1
- package/dist/nodes.js +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/observability.js +2 -1
- package/dist/{quick-config-panel-D3ogsaFL.js → quick-config-panel-DggPl1vY.js} +2 -2
- package/dist/rolldown-runtime-hDbaFkMy.js +18 -0
- package/dist/run-display-BycKYSU0.js +46 -0
- package/dist/run-list-links-ByYC0OlV.js +98 -0
- package/dist/settings.d.ts +2 -1
- package/dist/settings.js +2 -1
- package/dist/shared-CMfn30xT.js +196 -0
- package/dist/templates.d.ts +1 -1
- package/dist/templates.js +2 -1
- package/dist/theme-provider-B3mIuz2d.js +11 -0
- package/dist/{useAgentDefinitions-NFtLytDR.js → useAgentDefinitions-Dpz0HDTq.js} +2 -1
- package/dist/useDurableParity-CzUQMFJ3.js +415 -0
- package/dist/useEntityTags-DhnsZcTl.js +236 -0
- package/dist/{useExecutions-DAzeWHS6.js → useExecutions-9aLuOt1c.js} +4 -3
- package/dist/{useObservability-COCZ0hUS.js → useObservability-CfEw3ZFD.js} +2 -2
- package/dist/{useRunHistory-CsYUbouO.js → useRunHistory-B1xJDwl1.js} +4 -3
- package/dist/{useWorkflows-w4Dx2fF2.js → useWorkflows-BlVVu8NM.js} +3 -2
- package/dist/utils-uaL5UVxb.js +65 -0
- package/dist/workflow-builder.d.ts +1 -1
- package/dist/workflow-builder.js +4 -2
- package/dist/workflow-host.d.ts +6 -0
- package/dist/workflow-host.js +9 -0
- package/dist/workflow-pages.d.ts +55 -0
- package/dist/workflow-pages.js +113 -0
- package/dist/workflows-list.d.ts +1 -1
- package/dist/workflows-list.js +1 -1
- package/package.json +13 -1
- package/dist/ExecutionDetailPage-MvsnOnE1.d.ts +0 -4
- package/dist/HistoryPage-BqUizaFv.d.ts +0 -3
- package/dist/NodesPage-C97-9K2Y.d.ts +0 -3
- package/dist/TemplatesPage-D0qnXzHh.d.ts +0 -4
- package/dist/WorkflowsList-0d5GSKdh.d.ts +0 -3
- package/dist/agent-form-BvMWhQ42.js +0 -496
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { _ as throwIfResultError, d as emitFluidGridsEvent, f as emitOperationErrorEvent, n as getFluidGridsClient, x as getFluidGridsConfig } from "./client-C9XSzSXr.js";
|
|
3
|
+
import { $ as DuplicateWorkflowDocument, A as CreateWorkflowDefinitionDocument, B as DeactivateWorkflowDefinitionDocument, Bt as PreviewN8nImportDocument, Dr as WorkflowDefinitionForBuilderDocument, Er as WorkflowDefinitionDocument, L as CreateWorkflowVersionDocument, Or as WorkflowDefinitionsDocument, R as DashboardSummaryDocument, Si as WorkflowVersionsDocument, W as DeleteWorkflowDefinitionDocument, bt as ImportWorkflowDocument, n as ActivateWorkflowDefinitionDocument, on as RestoreWorkflowVersionDocument, or as UpdateWorkflowDefinitionDocument, qn as TriggerWorkflowDocument, qr as WorkflowRunDocument, ri as WorkflowRunsDocument } from "./graphql-operation-types-kX-MMjgW.js";
|
|
4
|
+
import { mn as openRunQuotaUpgradePrompt, pn as useFluidGridsAnalytics } from "./FluidGridsProvider-dvZSNtSW.js";
|
|
4
5
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
5
6
|
import { d as runTriggerFromMode, i as emitRunStarted, l as emitWorkflowPublished, s as emitWorkflowCreated } from "./fluidgridsEvents-CNdcrUNN.js";
|
|
6
7
|
import { s as takePrefetchedWorkflowForBuilder } from "./workflowRouteData-BkfVOc-O.js";
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// src/modules/observability/utils.ts
|
|
3
|
+
function percentage(value, total) {
|
|
4
|
+
if (total <= 0) return 0;
|
|
5
|
+
return Math.round(value / total * 1e3) / 10;
|
|
6
|
+
}
|
|
7
|
+
function getFailureBreakdown(runs) {
|
|
8
|
+
const counts = /* @__PURE__ */ new Map();
|
|
9
|
+
for (const run of runs) {
|
|
10
|
+
const key = run.errorType || "UNKNOWN";
|
|
11
|
+
counts.set(key, (counts.get(key) ?? 0) + 1);
|
|
12
|
+
}
|
|
13
|
+
return [...counts.entries()].map(([key, count]) => ({
|
|
14
|
+
key,
|
|
15
|
+
count
|
|
16
|
+
})).sort((a, b) => b.count - a.count || a.key.localeCompare(b.key));
|
|
17
|
+
}
|
|
18
|
+
function getTopFailingWorkflows(runs) {
|
|
19
|
+
const counts = /* @__PURE__ */ new Map();
|
|
20
|
+
for (const run of runs) {
|
|
21
|
+
const current = counts.get(run.workflowKey);
|
|
22
|
+
if (current) current.count += 1;
|
|
23
|
+
else counts.set(run.workflowKey, {
|
|
24
|
+
workflowKey: run.workflowKey,
|
|
25
|
+
label: run.workflow?.name || run.workflowKey,
|
|
26
|
+
count: 1
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return [...counts.values()].sort((a, b) => b.count - a.count || a.label.localeCompare(b.label));
|
|
30
|
+
}
|
|
31
|
+
function getTopFailingNodes(nodeUsageStats) {
|
|
32
|
+
return [...nodeUsageStats].filter((stat) => stat.failureCount > 0).sort((a, b) => b.failureCount - a.failureCount || a.nodeType.localeCompare(b.nodeType));
|
|
33
|
+
}
|
|
34
|
+
function formatDuration(seconds) {
|
|
35
|
+
if (seconds === null || seconds === void 0 || !Number.isFinite(seconds)) return "—";
|
|
36
|
+
if (seconds < 1) return `${Math.round(seconds * 1e3)}ms`;
|
|
37
|
+
if (seconds < 60) return `${seconds.toFixed(1)}s`;
|
|
38
|
+
return `${Math.floor(seconds / 60)}m ${Math.round(seconds % 60)}s`;
|
|
39
|
+
}
|
|
40
|
+
function formatBytes(bytes) {
|
|
41
|
+
if (!Number.isFinite(bytes) || bytes < 0) return "—";
|
|
42
|
+
if (bytes < 1024) return `${bytes} B`;
|
|
43
|
+
const units = [
|
|
44
|
+
"KB",
|
|
45
|
+
"MB",
|
|
46
|
+
"GB",
|
|
47
|
+
"TB"
|
|
48
|
+
];
|
|
49
|
+
let value = bytes / 1024;
|
|
50
|
+
let unit = units[0];
|
|
51
|
+
for (let i = 1; i < units.length && value >= 1024; i += 1) {
|
|
52
|
+
value /= 1024;
|
|
53
|
+
unit = units[i];
|
|
54
|
+
}
|
|
55
|
+
return `${value.toFixed(value >= 10 ? 0 : 1)} ${unit}`;
|
|
56
|
+
}
|
|
57
|
+
function prettyJson(value) {
|
|
58
|
+
try {
|
|
59
|
+
return JSON.stringify(value, null, 2) ?? "null";
|
|
60
|
+
} catch {
|
|
61
|
+
return String(value);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { getTopFailingWorkflows as a, getTopFailingNodes as i, formatDuration as n, percentage as o, getFailureBreakdown as r, prettyJson as s, formatBytes as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { c as WorkflowBuilderProps, i as WorkflowSearchRedirect, l as WorkflowBuilderCore, n as IFlowState, o as WorkflowBuilder$1, r as useFlowStore, s as WorkflowBuilder, t as refetchStoreNodes, u as WorkflowBuilderCoreProps } from "./index-DjiFgEQl.js";
|
|
3
3
|
export { type IFlowState, WorkflowBuilder, WorkflowBuilderCore, type WorkflowBuilderCoreProps, WorkflowBuilder$1 as WorkflowBuilderPage, type WorkflowBuilderProps, WorkflowSearchRedirect, refetchStoreNodes, useFlowStore };
|
package/dist/workflow-builder.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { n as WorkflowBuilderCore, t as WorkflowBuilder } from "./WorkflowBuilder-DEi_9YOb.js";
|
|
3
|
+
import { t as WorkflowBuilder$1 } from "./WorkflowBuilder-iPqXgbYr.js";
|
|
3
4
|
import { H as useFlowStore } from "./node-operation-selection--oy-yEq_.js";
|
|
4
|
-
import { m as refetchStoreNodes } from "./FluidGridsProvider-
|
|
5
|
+
import { m as refetchStoreNodes } from "./FluidGridsProvider-dvZSNtSW.js";
|
|
6
|
+
import { t as WorkflowSearchRedirect } from "./WorkflowSearchRedirect-DwDNZ_q5.js";
|
|
5
7
|
|
|
6
8
|
export { WorkflowBuilder, WorkflowBuilderCore, WorkflowBuilder$1 as WorkflowBuilderPage, WorkflowSearchRedirect, refetchStoreNodes, useFlowStore };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
|
|
2
|
+
import { c as resetFluidGridsConfig, i as WorkflowSavedResult, l as resetFluidGridsExecutionState, n as FluidGridsConfig, u as setFluidGridsConfig } from "./index-72XFgvbn.js";
|
|
3
|
+
import { A as FluidGridsTranslationProviderProps, D as refreshNodeRegistry, T as setFluidGridsClient, _ as resetGlobalStoreClient, a as FluidGridsPermissionsProviderProps, i as FluidGridsPermissionsProvider, j as Translator, k as FluidGridsTranslationProvider, n as FluidGridsPermission, t as FLUIDGRIDS_PERMISSIONS, v as setGlobalStoreClient, w as resetFluidGridsClient } from "./constants-XdvUxeWK.js";
|
|
4
|
+
import { n as ManagedAiRequestScope, t as ManagedAiPolicyAuthorityProvider } from "./ManagedAiPolicyAuthority-DM3t3wNr.js";
|
|
5
|
+
import { f as useFluidGridsFlagsSettled, h as useSelfHostedWorkersEnabled } from "./index-BcdtKBM-.js";
|
|
6
|
+
export { FLUIDGRIDS_PERMISSIONS, type FluidGridsConfig, type FluidGridsPermission, FluidGridsPermissionsProvider, type FluidGridsPermissionsProviderProps, FluidGridsTranslationProvider, type FluidGridsTranslationProviderProps, ManagedAiPolicyAuthorityProvider, type ManagedAiRequestScope, type Translator, type WorkflowSavedResult, refreshNodeRegistry, resetFluidGridsClient, resetFluidGridsConfig, resetFluidGridsExecutionState, resetGlobalStoreClient, setFluidGridsClient, setFluidGridsConfig, setGlobalStoreClient, useFluidGridsFlagsSettled, useSelfHostedWorkersEnabled };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { C as resetFluidGridsConfig, T as setFluidGridsConfig, a as resetFluidGridsClient, o as setFluidGridsClient, w as resetFluidGridsExecutionState } from "./client-C9XSzSXr.js";
|
|
3
|
+
import { n as refreshNodeRegistry, o as resetGlobalStoreClient, s as setGlobalStoreClient } from "./node-registry-refresh-Dy0uRg9f.js";
|
|
4
|
+
import { n as FluidGridsTranslationProvider } from "./TranslationBridge-Da-TPgQm.js";
|
|
5
|
+
import { r as FluidGridsPermissionsProvider, t as FLUIDGRIDS_PERMISSIONS } from "./constants-B2lhWNoN.js";
|
|
6
|
+
import { t as ManagedAiPolicyAuthorityProvider } from "./ManagedAiPolicyAuthority-BxwJ3ptd.js";
|
|
7
|
+
import { p as useSelfHostedWorkersEnabled, u as useFluidGridsFlagsSettled } from "./feature-flags-DM5myWaD.js";
|
|
8
|
+
|
|
9
|
+
export { FLUIDGRIDS_PERMISSIONS, FluidGridsPermissionsProvider, FluidGridsTranslationProvider, ManagedAiPolicyAuthorityProvider, refreshNodeRegistry, resetFluidGridsClient, resetFluidGridsConfig, resetFluidGridsExecutionState, resetGlobalStoreClient, setFluidGridsClient, setFluidGridsConfig, setGlobalStoreClient, useFluidGridsFlagsSettled, useSelfHostedWorkersEnabled };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
import { n as WorkflowsList_d_exports } from "./WorkflowsList-CcNDQge5.js";
|
|
3
|
+
import { a as WorkflowSearchRedirect_d_exports, o as WorkflowBuilder } from "./index-DjiFgEQl.js";
|
|
4
|
+
import { i as TemplatePreview_d_exports, n as TemplatesPage_d_exports } from "./TemplatesPage-BG3H-6v6.js";
|
|
5
|
+
import { Li as ApprovalInboxPage_d_exports, Qi as RunnersPage_d_exports, Sa as VariablesPage_d_exports, cAa as InsightsPageProps, dAa as DataSinkDashboardPage_d_exports, gi as DataTablesPage_d_exports, jAa as AiStudioPage_d_exports, lAa as InsightsPage_d_exports, qi as TaskQueuesPage_d_exports } from "./index-W2o__Nm6.js";
|
|
6
|
+
import { i as ExecutionsListPage_d_exports, n as ExecutionDetailPage_d_exports } from "./ExecutionDetailPage-DvQ667OE.js";
|
|
7
|
+
import { n as HistoryPage_d_exports } from "./HistoryPage-BLoRpJ1R.js";
|
|
8
|
+
import { n as NodesPage_d_exports } from "./NodesPage-DEbnz9iU.js";
|
|
9
|
+
import { n as SettingsPageProps, r as SettingsPage_d_exports } from "./SettingsPage-DMHQFj5-.js";
|
|
10
|
+
declare const importers: {
|
|
11
|
+
WorkflowsList: () => Promise<typeof WorkflowsList_d_exports>;
|
|
12
|
+
WorkflowBuilderPage: () => Promise<{
|
|
13
|
+
WorkflowBuilderPage: typeof WorkflowBuilder;
|
|
14
|
+
}>;
|
|
15
|
+
WorkflowSearchRedirect: () => Promise<typeof WorkflowSearchRedirect_d_exports>;
|
|
16
|
+
TemplatePreview: () => Promise<typeof TemplatePreview_d_exports>;
|
|
17
|
+
AiStudioPage: () => Promise<typeof AiStudioPage_d_exports>;
|
|
18
|
+
ExecutionsListPage: () => Promise<typeof ExecutionsListPage_d_exports>;
|
|
19
|
+
ExecutionDetailPage: () => Promise<typeof ExecutionDetailPage_d_exports>;
|
|
20
|
+
HistoryPage: () => Promise<typeof HistoryPage_d_exports>;
|
|
21
|
+
TemplatesPage: () => Promise<typeof TemplatesPage_d_exports>;
|
|
22
|
+
NodesPage: () => Promise<typeof NodesPage_d_exports>;
|
|
23
|
+
SettingsPage: () => Promise<typeof SettingsPage_d_exports>;
|
|
24
|
+
InsightsPage: () => Promise<typeof InsightsPage_d_exports>;
|
|
25
|
+
ErrorAnalyticsPage: () => Promise<typeof InsightsPage_d_exports>;
|
|
26
|
+
DataSinkDashboardPage: () => Promise<typeof DataSinkDashboardPage_d_exports>;
|
|
27
|
+
VariablesPage: () => Promise<typeof VariablesPage_d_exports>;
|
|
28
|
+
RunnersPage: () => Promise<typeof RunnersPage_d_exports>;
|
|
29
|
+
TaskQueuesPage: () => Promise<typeof TaskQueuesPage_d_exports>;
|
|
30
|
+
ApprovalInboxPage: () => Promise<typeof ApprovalInboxPage_d_exports>;
|
|
31
|
+
DataTablesPage: () => Promise<typeof DataTablesPage_d_exports>;
|
|
32
|
+
};
|
|
33
|
+
export type WorkflowPageName = keyof typeof importers;
|
|
34
|
+
export declare const WORKFLOW_PAGE_NAMES: ReadonlyArray<WorkflowPageName>;
|
|
35
|
+
export declare const preloadWorkflowPage: (name: WorkflowPageName) => Promise<void>;
|
|
36
|
+
export declare const WorkflowsList: import("react").ExoticComponent<unknown>;
|
|
37
|
+
export declare const WorkflowBuilderPage: import("react").ExoticComponent<unknown>;
|
|
38
|
+
export declare const WorkflowSearchRedirect: import("react").ExoticComponent<unknown>;
|
|
39
|
+
export declare const TemplatePreview: import("react").ExoticComponent<unknown>;
|
|
40
|
+
export declare const AiStudioPage: import("react").ExoticComponent<unknown>;
|
|
41
|
+
export declare const ExecutionsListPage: import("react").ExoticComponent<unknown>;
|
|
42
|
+
export declare const ExecutionDetailPage: import("react").ExoticComponent<unknown>;
|
|
43
|
+
export declare const HistoryPage: import("react").ExoticComponent<unknown>;
|
|
44
|
+
export declare const TemplatesPage: import("react").ExoticComponent<unknown>;
|
|
45
|
+
export declare const NodesPage: import("react").ExoticComponent<unknown>;
|
|
46
|
+
export declare const SettingsPage: import("react").ExoticComponent<SettingsPageProps | undefined>;
|
|
47
|
+
export declare const InsightsPage: import("react").ExoticComponent<InsightsPageProps>;
|
|
48
|
+
export declare const ErrorAnalyticsPage: import("react").ExoticComponent<unknown>;
|
|
49
|
+
export declare const DataSinkDashboardPage: import("react").ExoticComponent<unknown>;
|
|
50
|
+
export declare const VariablesPage: import("react").ExoticComponent<unknown>;
|
|
51
|
+
export declare const RunnersPage: import("react").ExoticComponent<unknown>;
|
|
52
|
+
export declare const TaskQueuesPage: import("react").ExoticComponent<unknown>;
|
|
53
|
+
export declare const ApprovalInboxPage: import("react").ExoticComponent<unknown>;
|
|
54
|
+
export declare const DataTablesPage: import("react").ExoticComponent<unknown>;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { lazyWithRetry } from "@burdenoff/fe-libs/shared/utils/lazyWithRetry";
|
|
3
|
+
|
|
4
|
+
// src/routing/lazyWorkflowPage.ts
|
|
5
|
+
function workflowPageLoader(importPage) {
|
|
6
|
+
let pending = null;
|
|
7
|
+
return { load: () => {
|
|
8
|
+
pending ??= importPage().then((component) => ({ default: component }), (error) => {
|
|
9
|
+
pending = null;
|
|
10
|
+
throw error;
|
|
11
|
+
});
|
|
12
|
+
return pending;
|
|
13
|
+
} };
|
|
14
|
+
}
|
|
15
|
+
function isRecord(value) {
|
|
16
|
+
return typeof value === "object" && value !== null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The lazy pages for a table of page-module importers, keyed by page name.
|
|
20
|
+
* Each page is read from its module by its name.
|
|
21
|
+
*/
|
|
22
|
+
function createWorkflowPages(importers) {
|
|
23
|
+
const loaders = /* @__PURE__ */ new Map();
|
|
24
|
+
for (const [name, importModule] of Object.entries(importers)) loaders.set(name, workflowPageLoader(() => importModule().then((module) => {
|
|
25
|
+
const page = isRecord(module) ? module[name] : void 0;
|
|
26
|
+
if (page === void 0) throw new Error(`The ${name} module does not export ${name}`);
|
|
27
|
+
return page;
|
|
28
|
+
})));
|
|
29
|
+
return {
|
|
30
|
+
names: Object.freeze(Object.keys(importers)),
|
|
31
|
+
lazyPage: (name) => {
|
|
32
|
+
const loader = loaders.get(name);
|
|
33
|
+
if (!loader) throw new Error(`Unknown workflow page: ${name}`);
|
|
34
|
+
const load = loader.load;
|
|
35
|
+
return lazyWithRetry(load);
|
|
36
|
+
},
|
|
37
|
+
preload: (name) => {
|
|
38
|
+
const loader = loaders.get(name);
|
|
39
|
+
if (!loader) return Promise.resolve();
|
|
40
|
+
return loader.load().then(() => void 0, () => void 0);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// src/workflow-pages.ts
|
|
46
|
+
/**
|
|
47
|
+
* Workflow pages subpath export (BOFF-11826): every page a host mounts for
|
|
48
|
+
* FluidGrids' workflow routes, each as its own lazy module.
|
|
49
|
+
*
|
|
50
|
+
* Importing the pages from the main barrel put all of them (builder, runs,
|
|
51
|
+
* insights, history, AI Studio, adaptive cards, CodeMirror) into the code a
|
|
52
|
+
* workflow route loads before it can draw: on a builder address that was about
|
|
53
|
+
* 3.9 MB of JavaScript beyond the shell, downloaded while the builder's read
|
|
54
|
+
* was in flight. Here each page is its own module, loaded when its route
|
|
55
|
+
* renders, so a route loads only its own page and the code it needs.
|
|
56
|
+
*
|
|
57
|
+
* The page components keep the main barrel's names, so a host switches by
|
|
58
|
+
* changing the import path. Render them inside a `<Suspense>` boundary. A
|
|
59
|
+
* host that knows the route before rendering it (on a cold load, at boot) can
|
|
60
|
+
* start the page's code early with {@link preloadWorkflowPage}; the page then
|
|
61
|
+
* renders from the same load. Statically the entry imports only its small
|
|
62
|
+
* loader, so it costs a host's first load about a kilobyte.
|
|
63
|
+
*/
|
|
64
|
+
const pages = createWorkflowPages({
|
|
65
|
+
WorkflowsList: () => import("./WorkflowsList-CA20dVIl.js").then((n) => n.n),
|
|
66
|
+
WorkflowBuilderPage: () => import("./WorkflowBuilder-iPqXgbYr.js").then((n) => n.n).then((m) => ({ WorkflowBuilderPage: m.WorkflowBuilder })),
|
|
67
|
+
WorkflowSearchRedirect: () => import("./WorkflowSearchRedirect-DwDNZ_q5.js").then((n) => n.n),
|
|
68
|
+
TemplatePreview: () => import("./TemplatePreview-GthzCOSo.js").then((n) => n.n),
|
|
69
|
+
AiStudioPage: () => import("./AiStudioPage-kJHSsIcj.js").then((n) => n.n),
|
|
70
|
+
ExecutionsListPage: () => import("./ExecutionsListPage-BCUJoAIE.js").then((n) => n.n),
|
|
71
|
+
ExecutionDetailPage: () => import("./ExecutionDetailPage-BdcZmLT4.js").then((n) => n.n),
|
|
72
|
+
HistoryPage: () => import("./HistoryPage-U0tqupBN.js").then((n) => n.n),
|
|
73
|
+
TemplatesPage: () => import("./TemplatesPage-CsDNT54N.js").then((n) => n.n),
|
|
74
|
+
NodesPage: () => import("./NodesPage-Bf5PhfBK.js").then((n) => n.n),
|
|
75
|
+
SettingsPage: () => import("./SettingsPage-CgkRlCM5.js").then((n) => n.n),
|
|
76
|
+
InsightsPage: () => import("./InsightsPage-CALo16eB.js").then((n) => n.r),
|
|
77
|
+
ErrorAnalyticsPage: () => import("./InsightsPage-CALo16eB.js").then((n) => n.r),
|
|
78
|
+
DataSinkDashboardPage: () => import("./DataSinkDashboardPage-1h2QsMzH.js").then((n) => n.n),
|
|
79
|
+
VariablesPage: () => import("./VariablesPage-67WR_lVE.js").then((n) => n.n),
|
|
80
|
+
RunnersPage: () => import("./RunnersPage-CLCOCclc.js").then((n) => n.n),
|
|
81
|
+
TaskQueuesPage: () => import("./TaskQueuesPage-9VgSnLdL.js").then((n) => n.r),
|
|
82
|
+
ApprovalInboxPage: () => import("./ApprovalInboxPage-dbBDSJ-f.js").then((n) => n.n),
|
|
83
|
+
DataTablesPage: () => import("./DataTablesPage-BZy2z0LB.js").then((n) => n.n)
|
|
84
|
+
});
|
|
85
|
+
/** Every workflow page this entry exports. */
|
|
86
|
+
const WORKFLOW_PAGE_NAMES = pages.names;
|
|
87
|
+
/**
|
|
88
|
+
* Starts loading a page's code without rendering it. The page renders from the
|
|
89
|
+
* same load when its route mounts. Best effort: it never rejects, and a load
|
|
90
|
+
* that fails is left to the page's own load, which retries and reports it.
|
|
91
|
+
*/
|
|
92
|
+
const preloadWorkflowPage = pages.preload;
|
|
93
|
+
const WorkflowsList = pages.lazyPage("WorkflowsList");
|
|
94
|
+
const WorkflowBuilderPage = pages.lazyPage("WorkflowBuilderPage");
|
|
95
|
+
const WorkflowSearchRedirect = pages.lazyPage("WorkflowSearchRedirect");
|
|
96
|
+
const TemplatePreview = pages.lazyPage("TemplatePreview");
|
|
97
|
+
const AiStudioPage = pages.lazyPage("AiStudioPage");
|
|
98
|
+
const ExecutionsListPage = pages.lazyPage("ExecutionsListPage");
|
|
99
|
+
const ExecutionDetailPage = pages.lazyPage("ExecutionDetailPage");
|
|
100
|
+
const HistoryPage = pages.lazyPage("HistoryPage");
|
|
101
|
+
const TemplatesPage = pages.lazyPage("TemplatesPage");
|
|
102
|
+
const NodesPage = pages.lazyPage("NodesPage");
|
|
103
|
+
const SettingsPage = pages.lazyPage("SettingsPage");
|
|
104
|
+
const InsightsPage = pages.lazyPage("InsightsPage");
|
|
105
|
+
const ErrorAnalyticsPage = pages.lazyPage("ErrorAnalyticsPage");
|
|
106
|
+
const DataSinkDashboardPage = pages.lazyPage("DataSinkDashboardPage");
|
|
107
|
+
const VariablesPage = pages.lazyPage("VariablesPage");
|
|
108
|
+
const RunnersPage = pages.lazyPage("RunnersPage");
|
|
109
|
+
const TaskQueuesPage = pages.lazyPage("TaskQueuesPage");
|
|
110
|
+
const ApprovalInboxPage = pages.lazyPage("ApprovalInboxPage");
|
|
111
|
+
const DataTablesPage = pages.lazyPage("DataTablesPage");
|
|
112
|
+
|
|
113
|
+
export { AiStudioPage, ApprovalInboxPage, DataSinkDashboardPage, DataTablesPage, ErrorAnalyticsPage, ExecutionDetailPage, ExecutionsListPage, HistoryPage, InsightsPage, NodesPage, RunnersPage, SettingsPage, TaskQueuesPage, TemplatePreview, TemplatesPage, VariablesPage, WORKFLOW_PAGE_NAMES, WorkflowBuilderPage, WorkflowSearchRedirect, WorkflowsList, preloadWorkflowPage };
|
package/dist/workflows-list.d.ts
CHANGED
package/dist/workflows-list.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/fluidgrids-fe-sdk",
|
|
3
|
-
"version": "2026.1111.
|
|
3
|
+
"version": "2026.1111.17",
|
|
4
4
|
"description": "FluidGrids Workflow Builder SDK - Embeddable visual workflow automation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
@@ -62,6 +62,18 @@
|
|
|
62
62
|
"types": "./dist/workflow-route.d.ts",
|
|
63
63
|
"import": "./dist/workflow-route.js"
|
|
64
64
|
},
|
|
65
|
+
"./workflow-pages": {
|
|
66
|
+
"types": "./dist/workflow-pages.d.ts",
|
|
67
|
+
"import": "./dist/workflow-pages.js"
|
|
68
|
+
},
|
|
69
|
+
"./workflow-host": {
|
|
70
|
+
"types": "./dist/workflow-host.d.ts",
|
|
71
|
+
"import": "./dist/workflow-host.js"
|
|
72
|
+
},
|
|
73
|
+
"./flags": {
|
|
74
|
+
"types": "./dist/flags.d.ts",
|
|
75
|
+
"import": "./dist/flags.js"
|
|
76
|
+
},
|
|
65
77
|
"./styles.css": "./dist/styles.css"
|
|
66
78
|
},
|
|
67
79
|
"files": [
|