@burdenoff/fluidgrids-fe-sdk 2026.1111.10 → 2026.1111.12
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/{ExecutionDetailPage-6ddRdNUR.js → ExecutionDetailPage-CDkJeeu2.js} +9 -10
- package/dist/{FailureTriagePanel-CR1BzOrM.js → FailureTriagePanel-BHiduL7A.js} +1 -1
- package/dist/{FluidGridsProvider-BFdGQ1g_.js → FluidGridsProvider-CDZjKmfD.js} +14 -3
- package/dist/{HistoryPage-DFiyqbvw.js → HistoryPage-DnVGN_72.js} +3 -3
- package/dist/{InsightsPage-CXCNQqmV.js → InsightsPage-CGRpZtGu.js} +4 -4
- package/dist/{ManagedAiPolicyAuthority-G1Efbc49.js → ManagedAiPolicyAuthority-DbJBledZ.js} +6 -6
- package/dist/{MissingNodesInstallModal-C-nsV4W7.js → MissingNodesInstallModal-YI57ImRx.js} +2 -2
- package/dist/{NodesPage-C4KtAasX.js → NodesPage-ClvhUfbh.js} +2 -2
- package/dist/{PublishCustomNodeAction-C3fEmWnC.js → PublishCustomNodeAction-D2F7oN0S.js} +1 -1
- package/dist/{TemplateConfigurationModal-CDJFVAho.js → TemplateConfigurationModal-BimyvVH6.js} +2 -2
- package/dist/{TemplateDetailPanel-BU6SzQy0.js → TemplateDetailPanel-CkwB6vrW.js} +2 -2
- package/dist/{TemplatesPage-CXMJntN7.js → TemplatesPage-ZK6cMWur.js} +113 -504
- package/dist/{VersionDiffDialog-ExN-CN6f.js → VersionDiffDialog-Dq2xlPFI.js} +1 -1
- package/dist/{WorkflowProposalCard-DuXQI7UY.js → WorkflowProposalCard-8Vr56kQa.js} +1 -1
- package/dist/{WorkflowSearchRedirect-xe0qc4A3.js → WorkflowSearchRedirect-BHtdF64q.js} +10 -11
- package/dist/{WorkflowShareDialog-FTeBgyb-.js → WorkflowShareDialog-ByTSWwwR.js} +2 -2
- package/dist/{WorkflowsList-DUFwerL1.js → WorkflowsList-B9F2e8M6.js} +5 -6
- package/dist/{agent-form-CzG3vX_q.js → agent-form-BvMWhQ42.js} +1 -1
- package/dist/{agentTools-dDrEjdbB.js → agentTools-Dgrdql-W.js} +2 -2
- package/dist/{codec-client-DiFkc0yn.js → codec-client-DstqyzTN.js} +1 -1
- package/dist/executions.js +1 -1
- package/dist/{flow-builder-vz253WZe.js → flow-builder-CukxgO65.js} +2857 -2555
- package/dist/history.js +1 -1
- package/dist/index.js +23 -23
- package/dist/{node-detail-view-DlbE4ob6.js → node-detail-view-DRk8Ln5L.js} +6 -6
- package/dist/{node-endpoint-configs-DVo9nUOe.js → node-endpoint-configs-DHFGA5MQ.js} +17 -3
- package/dist/nodes.js +1 -1
- package/dist/observability.js +1 -1
- package/dist/{quick-config-panel-DxNYFw66.js → quick-config-panel-40_1utiL.js} +2 -2
- package/dist/settings.js +1 -1
- package/dist/templates.js +1 -1
- package/dist/{useAgentDefinitions-BVTONKpB.js → useAgentDefinitions-NFtLytDR.js} +1 -1
- package/dist/{useExecutions-BeY3w5oZ.js → useExecutions-BqoD7XWi.js} +2 -2
- package/dist/{useObservability-BniBi0zw.js → useObservability-Cs-5_NHh.js} +2 -2
- package/dist/{useRunHistory-C47nRjSE.js → useRunHistory-CEL-CIz-.js} +2 -2
- package/dist/{useWorkflows-BtZBdTmp.js → useWorkflows-Bwpvfdgv.js} +2 -2
- package/dist/workflow-builder.js +2 -2
- package/dist/workflows-list.js +1 -1
- package/package.json +1 -1
- package/dist/rolldown-runtime-hDbaFkMy.js +0 -18
- package/dist/template-input-applicator-C0p6hE4K.js +0 -84
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
|
-
|
|
4
|
-
// src/utils/template-input-applicator.ts
|
|
5
|
-
var template_input_applicator_exports = /* @__PURE__ */ __exportAll({ applyTemplateInputs: () => applyTemplateInputs });
|
|
6
|
-
/**
|
|
7
|
-
* Template Input Applicator
|
|
8
|
-
*
|
|
9
|
-
* Walks a workflow definitionJson and replaces ${variableName} placeholders
|
|
10
|
-
* with user-provided values. Used during template import to apply
|
|
11
|
-
* user-configurable inputs before creating the workflow.
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* Deep-clone an object using structured clone.
|
|
15
|
-
* Falls back to JSON parse/stringify for environments without structuredClone.
|
|
16
|
-
*/
|
|
17
|
-
function deepClone(obj) {
|
|
18
|
-
if (typeof structuredClone === "function") return structuredClone(obj);
|
|
19
|
-
return JSON.parse(JSON.stringify(obj));
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Apply template input values to a definitionJson by replacing
|
|
23
|
-
* ${variableName} placeholders in string values throughout the object tree.
|
|
24
|
-
*
|
|
25
|
-
* @param definitionJson - The workflow definition JSON to process
|
|
26
|
-
* @param inputs - Map of variable names to user-provided values
|
|
27
|
-
* @returns A new definitionJson with placeholders replaced
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* const definition = {
|
|
32
|
-
* nodes: [{
|
|
33
|
-
* data: { url: "${slack_webhook_url}", message: "Hello ${name}" }
|
|
34
|
-
* }]
|
|
35
|
-
* };
|
|
36
|
-
* const result = applyTemplateInputs(definition, {
|
|
37
|
-
* slack_webhook_url: "https://hooks.slack.com/...",
|
|
38
|
-
* name: "World"
|
|
39
|
-
* });
|
|
40
|
-
* // result.nodes[0].data.url === "https://hooks.slack.com/..."
|
|
41
|
-
* // result.nodes[0].data.message === "Hello World"
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
function applyTemplateInputs(definitionJson, inputs) {
|
|
45
|
-
if (!inputs || Object.keys(inputs).length === 0) return definitionJson;
|
|
46
|
-
return walkAndReplace(deepClone(definitionJson), inputs);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Recursively walk an object/array and replace ${variableName} placeholders
|
|
50
|
-
* in string values.
|
|
51
|
-
*/
|
|
52
|
-
function walkAndReplace(obj, inputs) {
|
|
53
|
-
if (typeof obj === "string") return replaceVariables(obj, inputs);
|
|
54
|
-
if (Array.isArray(obj)) return obj.map((item) => walkAndReplace(item, inputs));
|
|
55
|
-
if (obj !== null && typeof obj === "object") {
|
|
56
|
-
const result = {};
|
|
57
|
-
for (const [key, value] of Object.entries(obj)) result[key] = walkAndReplace(value, inputs);
|
|
58
|
-
return result;
|
|
59
|
-
}
|
|
60
|
-
return obj;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Replace ${variableName} patterns in a string with provided values.
|
|
64
|
-
*
|
|
65
|
-
* Supports:
|
|
66
|
-
* - ${variableName} — standard replacement
|
|
67
|
-
* - ${variableName || 'default'} — fallback to default if variable not provided
|
|
68
|
-
*/
|
|
69
|
-
function replaceVariables(str, inputs) {
|
|
70
|
-
return str.replace(/\$\{([^}]+)\}/g, (_match, expression) => {
|
|
71
|
-
const trimmed = expression.trim();
|
|
72
|
-
const fallbackMatch = trimmed.match(/^(\w+)\s*\|\|\s*['"]?(.+?)['"]?$/);
|
|
73
|
-
if (fallbackMatch) {
|
|
74
|
-
const varName = fallbackMatch[1];
|
|
75
|
-
const fallback = fallbackMatch[2];
|
|
76
|
-
if (varName in inputs) return String(inputs[varName]);
|
|
77
|
-
return fallback;
|
|
78
|
-
}
|
|
79
|
-
if (trimmed in inputs) return String(inputs[trimmed]);
|
|
80
|
-
return _match;
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export { deepClone as n, template_input_applicator_exports as r, applyTemplateInputs as t };
|