n8n-editor-ui 1.77.3 → 1.79.0
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/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-C9LVFaJT.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-DKtXGQ8b.js} +1 -1
- package/dist/assets/{AuthView-C383xWYW.js → AuthView-DC9bB5r3.js} +2 -2
- package/dist/assets/{CanvasChat-BGlghV3T.js → CanvasChat-D3lTBObM.js} +5 -4
- package/dist/assets/{CanvasControls-Crujpx17.js → CanvasControls-3_c-idq1.js} +1 -1
- package/dist/assets/{ChangePasswordView-DXzIgEaK.js → ChangePasswordView-hTCZFDsu.js} +3 -3
- package/dist/assets/CollectionParameter-BJPPrJT6.js +4 -0
- package/dist/assets/{ConcurrentExecutionsHeader-D9E-tPI2.js → ConcurrentExecutionsHeader-SdaUSwM5.js} +2 -2
- package/dist/assets/{CredentialsView-Db-yh1UW.js → CredentialsView-s41qhyQi.js} +4 -4
- package/dist/assets/{ErrorView-DVEUcXeM.js → ErrorView-BPR4tLUF.js} +1 -1
- package/dist/assets/{ExecutionsView-CqcJ1jBb.js → ExecutionsView-CTGQ4_xb.js} +5 -5
- package/dist/assets/{FileSaver.min-DRMcruyG.js → FileSaver.min-BYPjeNsQ.js} +1 -1
- package/dist/assets/{FixedCollectionParameter-rnJQitY7.js → FixedCollectionParameter-kIB2Fa5A.js} +1 -1
- package/dist/assets/{ForgotMyPasswordView-CCuBQ23v.js → ForgotMyPasswordView-2fgritvN.js} +3 -3
- package/dist/assets/{Logo-vj6e7OLa.js → Logo-hPeyHcb-.js} +1 -1
- package/dist/assets/{MainHeader-Bz40v4tX.js → MainHeader-Box9TeIZ.js} +10 -9
- package/dist/assets/{MainSidebar-7b7uQIcC.js → MainSidebar-B50zuWdl.js} +10 -10
- package/dist/assets/{MainSidebar-Djaxwdmm.css → MainSidebar-BQVC8zBU.css} +13 -13
- package/dist/assets/{NodeCreation-KBmCqr6_.js → NodeCreation-Ceo0bVoB.js} +4 -4
- package/dist/assets/{NodeCreator-DTMPwVj5.js → NodeCreator-B2c_Rd6j.js} +18 -6
- package/dist/assets/{NodeViewSwitcher-DApULbEt.css → NodeViewSwitcher-9WCdidKb.css} +106 -106
- package/dist/assets/{NodeViewSwitcher-O6VqzxIl.js → NodeViewSwitcher-CzTWzm1u.js} +113 -70
- package/dist/assets/{ProjectCardBadge-OKM1Xgdw.js → ProjectCardBadge-COQxXr59.js} +1 -1
- package/dist/assets/{ProjectHeader-6S5uaHXh.js → ProjectHeader-CE7TnWTW.js} +1 -1
- package/dist/assets/{ProjectSettings-BnHtiDEV.js → ProjectSettings-MOBpI-14.js} +2 -2
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-IciN-pmV.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-3s6oaYcd.js} +7 -4
- package/dist/assets/{ResourcesListLayout-d7mMNhOL.css → ResourcesListLayout-CvrwoZYS.css} +6 -6
- package/dist/assets/{ResourcesListLayout-D4r1wqjJ.js → ResourcesListLayout-qO3XuEfV.js} +14 -2
- package/dist/assets/{useRunWorkflow-CoRVHZg2.js → RunDataAi-CH-Sjvla.js} +4 -317
- package/dist/assets/{RunDataJson-wyo45w7C.js → RunDataJson-B6NXnfu2.js} +16 -14
- package/dist/assets/{RunDataJsonActions-D46WL4YN.js → RunDataJsonActions-CuA1XQyQ.js} +4 -5
- package/dist/assets/{RunDataSearch-B3EyVssL.js → RunDataSearch-CUG23MTn.js} +1 -1
- package/dist/assets/{RunDataTable-DGMN5nF6.js → RunDataTable-Bc0J9GkT.js} +2 -2
- package/dist/assets/{SamlOnboarding-CnXUkDfT.js → SamlOnboarding-BJ9WtdP1.js} +3 -3
- package/dist/assets/SettingsApiView-BB3Lm3bi.css +301 -0
- package/dist/assets/SettingsApiView-DBxgGFH0.js +292 -0
- package/dist/assets/{SettingsCommunityNodesView-9KrggWFu.js → SettingsCommunityNodesView-BomJXH9c.js} +5 -4
- package/dist/assets/{SettingsExternalSecrets-DBPzjP3z.js → SettingsExternalSecrets-D4rqzyAM.js} +1 -1
- package/dist/assets/{SettingsLdapView-Bg2KWXN0.js → SettingsLdapView-DiXHZhqV.js} +1 -1
- package/dist/assets/{SettingsLogStreamingView-tgIsDBAk.js → SettingsLogStreamingView-Bt-LEIIQ.js} +1 -1
- package/dist/assets/{SettingsPersonalView-CDJ8_Cuz.js → SettingsPersonalView-BvEc_axB.js} +1 -1
- package/dist/assets/{SettingsSourceControl-ap8XMKcG.js → SettingsSourceControl-DPlmwsou.js} +1 -1
- package/dist/assets/{SettingsSso-B91oi5bN.js → SettingsSso-zllqGFae.js} +1 -1
- package/dist/assets/{SettingsUsageAndPlan-Bb6yK99X.js → SettingsUsageAndPlan-C-iqlwdT.js} +1 -1
- package/dist/assets/{SettingsUsersView-Ci2z6Jpz.js → SettingsUsersView-DPpywObQ.js} +1 -1
- package/dist/assets/{SettingsView-CStRsQ-w.js → SettingsView-Do0ZcFE1.js} +1 -1
- package/dist/assets/{SetupView-B5zAoB3c.js → SetupView-BSTPJreH.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-Cro6GHxL.js → SetupWorkflowCredentialsButton-DiQzzioV.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-CcwL92Id.js → SetupWorkflowFromTemplateView-Dth4uXJ3.js} +3 -3
- package/dist/assets/{SigninView-DsPEhU2L.js → SigninView-DU81K-a8.js} +3 -3
- package/dist/assets/{SignoutView-BIckw4fs.js → SignoutView-NOUoiBhH.js} +1 -1
- package/dist/assets/{SignupView-DdJWtYpI.js → SignupView-D06cun4d.js} +3 -3
- package/dist/assets/{TemplateDetails-C41VgGvk.js → TemplateDetails-rk_My4uB.js} +1 -1
- package/dist/assets/{TemplateList-DkS7PdQW.js → TemplateList-BdriMiIx.js} +1 -1
- package/dist/assets/{TemplatesCollectionView-BV7HXuai.js → TemplatesCollectionView-Bm07hQFM.js} +5 -5
- package/dist/assets/{TemplatesSearchView-BKY_Lw-C.js → TemplatesSearchView-Bf3SRbIa.js} +3 -3
- package/dist/assets/{TemplatesView-C312c1EZ.js → TemplatesView-DxMjsDBv.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-BfzWwupR.js → TemplatesWorkflowView-CP1jwG6W.js} +5 -5
- package/dist/assets/{TestDefinitionEditView-CwoHUF5w.js → TestDefinitionEditView-BntbT16p.js} +16 -3
- package/dist/assets/{TestDefinitionListView-2tWTEUz0.js → TestDefinitionListView-CLiFw2i4.js} +1 -1
- package/dist/assets/{TestDefinitionRootView-gJRxCHz3.js → TestDefinitionRootView-Dq2vyM8t.js} +1 -1
- package/dist/assets/{VariablesView-DqbIksP3.js → VariablesView-C-mPkz2b.js} +2 -2
- package/dist/assets/{WorkerView-DSPfcsXN.js → WorkerView-DOIKhi2W.js} +6 -5
- package/dist/assets/{WorkflowActivator-Bm8OihqN.js → WorkflowActivator-CcQuszbk.js} +2 -2
- package/dist/assets/{WorkflowExecutionsInfoAccordion-B78-cQSW.js → WorkflowExecutionsInfoAccordion-AONJXhOM.js} +1 -1
- package/dist/assets/{WorkflowExecutionsLandingPage-C39BBF2o.js → WorkflowExecutionsLandingPage-C8XFRzTf.js} +2 -2
- package/dist/assets/{WorkflowExecutionsPreview-CdlK3mFb.js → WorkflowExecutionsPreview-CqgapiEE.js} +5 -5
- package/dist/assets/{WorkflowExecutionsView-a-Pjy5V5.js → WorkflowExecutionsView-DLBbg4s6.js} +5 -5
- package/dist/assets/{WorkflowHistory-Bwqmh22i.js → WorkflowHistory-Xzp1cgz9.js} +3 -3
- package/dist/assets/{WorkflowOnboardingView-CipWLUUf.js → WorkflowOnboardingView-CM5jKrBr.js} +1 -1
- package/dist/assets/{WorkflowPreview-CAjmdxrY.js → WorkflowPreview-CLrfHawQ.js} +1 -1
- package/dist/assets/{WorkflowsView-DP6J_TRf.js → WorkflowsView-B8QO2U4z.js} +7 -7
- package/dist/assets/_commonjs-dynamic-modules-TGKdzP3c.js +6 -0
- package/dist/assets/{easyAiWorkflowUtils-BLdDr_bc.js → easyAiWorkflowUtils-BEjLgBYH.js} +2 -2
- package/dist/assets/global-link-actions-CmKpJf6C.js +5 -0
- package/dist/assets/import-curl-Dm0tXAal.js +5 -0
- package/dist/assets/{index-DablXALM.js → index-BgTszcKd.js} +6084 -4282
- package/dist/assets/{index-Bs_8II2j.css → index-xKO0gQfI.css} +1174 -540
- package/dist/assets/{polyfills-DfOJfMlf.js → polyfills-C7eMRNFe.js} +92 -39
- package/dist/assets/pushConnection.store-Z13Buj1P.js +238 -0
- package/dist/assets/{templateActions--1waaCku.js → templateActions-BsBOWAkR.js} +1 -1
- package/dist/assets/{useBeforeUnload-C9Q3IFHU.js → useBeforeUnload-BzdqZUNR.js} +1 -1
- package/dist/assets/{useCanvasOperations-CEWecDkR.css → useCanvasMapping-DeC609A4.css} +213 -160
- package/dist/assets/{useCanvasOperations-CEPzjX8I.js → useCanvasMapping-Dj_ctboo.js} +3447 -3225
- package/dist/assets/{useExecutionDebugging-Pzj1BQ1f.js → useExecutionDebugging-DV8arYl7.js} +1 -1
- package/dist/assets/{useExecutionHelpers-F_WL-Kvp.js → useExecutionHelpers-OayET-Qz.js} +1 -1
- package/dist/assets/useImportCurlCommand-CKdAqJ54.js +9055 -0
- package/dist/assets/{usePushConnection-BlvBVLFC.js → usePushConnection-DT6QRFOS.js} +4 -3
- package/dist/assets/useRunWorkflow-g6q3R4P4.js +616 -0
- package/dist/assets/{useWorkflowActivate-wvqU9rPU.js → useWorkflowActivate-B4fObrrf.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/static/og_image.png +0 -0
- package/dist/tree-sitter-bash.wasm +0 -0
- package/dist/tree-sitter.wasm +0 -0
- package/package.json +1 -1
- package/tsconfig.json +10 -13
- package/vite.config.mts +20 -3
- package/dist/assets/CollectionParameter-C_1RVSJv.js +0 -4
- package/dist/assets/SettingsApiView-DJKJO7zM.css +0 -145
- package/dist/assets/SettingsApiView-EFylgnqH.js +0 -227
- package/dist/assets/pushConnection.store-DmLr_C_P.js +0 -117
- package/dist/assets/usePinnedData-BEOJK2e-.js +0 -274
- /package/dist/assets/{useRunWorkflow-DWoFsQdi.css → RunDataAi-DWoFsQdi.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ce as getDefaultExportFromCjs, d as defineComponent, b6 as useClipboard, a as useToast,
|
|
2
|
-
import { c as capitalize } from "./
|
|
3
|
-
import { u as useExecutionHelpers } from "./useExecutionHelpers-
|
|
1
|
+
import { ce as getDefaultExportFromCjs, d as defineComponent, b6 as useClipboard, a as useToast, eW as useAIAssistantHelpers, bo as useNodeTypesStore, as as useNDVStore, Z as useRootStore, eX as useAssistantStore, K as useUIStore, q as computed, c as openBlock, h as createElementBlock, j as createBaseVNode, t as toDisplayString, ax as withDirectives, f as createCommentVNode, i as createVNode, l as unref, eY as InlineAskAssistantButton, w as withCtx, k as createTextVNode, F as Fragment, A as renderList, g as useI18n, cp as MAX_DISPLAY_DATA_SIZE, bt as isCommunityPackageName, eZ as NEW_ASSISTANT_SESSION_MODAL, m as resolveComponent, cT as resolveDirective, e_ as sanitizeHtml, bh as NodeConnectionType, e$ as isObjectEmpty, r as ref, o as onMounted, n as normalizeClass, e as createBlock, b1 as VueMarkdown, _ as _export_sfc, T as useWorkflowsStore, bs as _sfc_main$4, I as withModifiers, H as watch, B as normalizeStyle, f0 as ElTree } from "./index-BgTszcKd.js";
|
|
2
|
+
import { c as capitalize } from "./useRunWorkflow-g6q3R4P4.js";
|
|
3
|
+
import { u as useExecutionHelpers } from "./useExecutionHelpers-OayET-Qz.js";
|
|
4
4
|
var core;
|
|
5
5
|
var hasRequiredCore;
|
|
6
6
|
function requireCore() {
|
|
@@ -3023,321 +3023,8 @@ const cssModules = {
|
|
|
3023
3023
|
"$style": style0
|
|
3024
3024
|
};
|
|
3025
3025
|
const RunDataAi = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
3026
|
-
const getDirtyNodeNames = (runData2, getParametersLastUpdate) => {
|
|
3027
|
-
const dirtyNodeNames = Object.entries(runData2).reduce((acc, [nodeName, tasks]) => {
|
|
3028
|
-
if (!tasks.length) return acc;
|
|
3029
|
-
const updatedAt = getParametersLastUpdate(nodeName) ?? 0;
|
|
3030
|
-
if (updatedAt > tasks[0].startTime) {
|
|
3031
|
-
acc.push(nodeName);
|
|
3032
|
-
}
|
|
3033
|
-
return acc;
|
|
3034
|
-
}, []);
|
|
3035
|
-
return dirtyNodeNames.length ? dirtyNodeNames : void 0;
|
|
3036
|
-
};
|
|
3037
|
-
function useRunWorkflow(useRunWorkflowOpts) {
|
|
3038
|
-
const nodeHelpers = useNodeHelpers();
|
|
3039
|
-
const workflowHelpers = useWorkflowHelpers({ router: useRunWorkflowOpts.router });
|
|
3040
|
-
const i18n = useI18n();
|
|
3041
|
-
const toast = useToast();
|
|
3042
|
-
const rootStore = useRootStore();
|
|
3043
|
-
const uiStore = useUIStore();
|
|
3044
|
-
const workflowsStore = useWorkflowsStore();
|
|
3045
|
-
const executionsStore = useExecutionsStore();
|
|
3046
|
-
async function runWorkflowApi(runData2) {
|
|
3047
|
-
if (!rootStore.pushConnectionActive) {
|
|
3048
|
-
throw new Error(i18n.baseText("workflowRun.noActiveConnectionToTheServer"));
|
|
3049
|
-
}
|
|
3050
|
-
workflowsStore.subWorkflowExecutionError = null;
|
|
3051
|
-
uiStore.addActiveAction("workflowRunning");
|
|
3052
|
-
let response;
|
|
3053
|
-
try {
|
|
3054
|
-
response = await workflowsStore.runWorkflow(runData2);
|
|
3055
|
-
} catch (error2) {
|
|
3056
|
-
uiStore.removeActiveAction("workflowRunning");
|
|
3057
|
-
throw error2;
|
|
3058
|
-
}
|
|
3059
|
-
if (response.executionId !== void 0) {
|
|
3060
|
-
workflowsStore.activeExecutionId = response.executionId;
|
|
3061
|
-
}
|
|
3062
|
-
if (response.waitingForWebhook === true && useWorkflowsStore().nodesIssuesExist) {
|
|
3063
|
-
uiStore.removeActiveAction("workflowRunning");
|
|
3064
|
-
throw new Error(i18n.baseText("workflowRun.showError.resolveOutstandingIssues"));
|
|
3065
|
-
}
|
|
3066
|
-
if (response.waitingForWebhook === true) {
|
|
3067
|
-
workflowsStore.executionWaitingForWebhook = true;
|
|
3068
|
-
}
|
|
3069
|
-
return response;
|
|
3070
|
-
}
|
|
3071
|
-
async function runWorkflow(options) {
|
|
3072
|
-
const workflow = workflowHelpers.getCurrentWorkflow();
|
|
3073
|
-
if (uiStore.isActionActive["workflowRunning"]) {
|
|
3074
|
-
return;
|
|
3075
|
-
}
|
|
3076
|
-
toast.clearAllStickyNotifications();
|
|
3077
|
-
try {
|
|
3078
|
-
let directParentNodes = [];
|
|
3079
|
-
if (options.destinationNode !== void 0) {
|
|
3080
|
-
directParentNodes = workflow.getParentNodes(
|
|
3081
|
-
options.destinationNode,
|
|
3082
|
-
NodeConnectionType.Main,
|
|
3083
|
-
-1
|
|
3084
|
-
);
|
|
3085
|
-
}
|
|
3086
|
-
const runData2 = workflowsStore.getWorkflowRunData;
|
|
3087
|
-
if (workflowsStore.isNewWorkflow) {
|
|
3088
|
-
await workflowHelpers.saveCurrentWorkflow();
|
|
3089
|
-
}
|
|
3090
|
-
const workflowData = await workflowHelpers.getWorkflowDataToSave();
|
|
3091
|
-
const consolidatedData = consolidateRunDataAndStartNodes(
|
|
3092
|
-
directParentNodes,
|
|
3093
|
-
runData2,
|
|
3094
|
-
workflowData.pinData,
|
|
3095
|
-
workflow
|
|
3096
|
-
);
|
|
3097
|
-
const { startNodeNames } = consolidatedData;
|
|
3098
|
-
const destinationNodeType = options.destinationNode ? workflowsStore.getNodeByName(options.destinationNode)?.type : "";
|
|
3099
|
-
let { runData: newRunData } = consolidatedData;
|
|
3100
|
-
let executedNode;
|
|
3101
|
-
let triggerToStartFrom;
|
|
3102
|
-
if (startNodeNames.length === 0 && "destinationNode" in options && options.destinationNode !== void 0) {
|
|
3103
|
-
executedNode = options.destinationNode;
|
|
3104
|
-
startNodeNames.push(options.destinationNode);
|
|
3105
|
-
} else if (options.triggerNode && options.nodeData) {
|
|
3106
|
-
startNodeNames.push(
|
|
3107
|
-
...workflow.getChildNodes(options.triggerNode, NodeConnectionType.Main, 1)
|
|
3108
|
-
);
|
|
3109
|
-
newRunData = { [options.triggerNode]: [options.nodeData] };
|
|
3110
|
-
executedNode = options.triggerNode;
|
|
3111
|
-
}
|
|
3112
|
-
if (options.triggerNode && options.nodeData) {
|
|
3113
|
-
triggerToStartFrom = {
|
|
3114
|
-
name: options.triggerNode,
|
|
3115
|
-
data: options.nodeData
|
|
3116
|
-
};
|
|
3117
|
-
}
|
|
3118
|
-
if (options.destinationNode && (workflowsStore.checkIfNodeHasChatParent(options.destinationNode) || destinationNodeType === CHAT_TRIGGER_NODE_TYPE) && options.source !== "RunData.ManualChatMessage") {
|
|
3119
|
-
const startNode = workflow.getStartNode(options.destinationNode);
|
|
3120
|
-
if (startNode && startNode.type === CHAT_TRIGGER_NODE_TYPE) {
|
|
3121
|
-
const chatHasInputData = nodeHelpers.getNodeInputData(startNode, 0, 0, "input")?.length > 0;
|
|
3122
|
-
const chatHasPinData = !!workflowData.pinData?.[startNode.name];
|
|
3123
|
-
if (!chatHasInputData && !chatHasPinData) {
|
|
3124
|
-
workflowsStore.chatPartialExecutionDestinationNode = options.destinationNode;
|
|
3125
|
-
workflowsStore.setPanelOpen("chat", true);
|
|
3126
|
-
return;
|
|
3127
|
-
}
|
|
3128
|
-
}
|
|
3129
|
-
}
|
|
3130
|
-
const triggers = workflowData.nodes.filter(
|
|
3131
|
-
(node) => node.type.toLowerCase().includes("trigger") && !node.disabled
|
|
3132
|
-
);
|
|
3133
|
-
if (!options.destinationNode && options.source !== "RunData.ManualChatMessage" && workflowData.nodes.some((node) => node.type === CHAT_TRIGGER_NODE_TYPE)) {
|
|
3134
|
-
const otherTriggers = triggers.filter((node) => node.type !== CHAT_TRIGGER_NODE_TYPE);
|
|
3135
|
-
if (otherTriggers.length) {
|
|
3136
|
-
const chatTriggerNode = workflowData.nodes.find(
|
|
3137
|
-
(node) => node.type === CHAT_TRIGGER_NODE_TYPE
|
|
3138
|
-
);
|
|
3139
|
-
if (chatTriggerNode) {
|
|
3140
|
-
chatTriggerNode.disabled = true;
|
|
3141
|
-
}
|
|
3142
|
-
}
|
|
3143
|
-
}
|
|
3144
|
-
const startNodes = startNodeNames.map((name) => {
|
|
3145
|
-
let sourceData = get(runData2, [name, 0, "source", 0], null);
|
|
3146
|
-
if (sourceData === null) {
|
|
3147
|
-
const parentNodes = workflow.getParentNodes(name, NodeConnectionType.Main, 1);
|
|
3148
|
-
const executeData = workflowHelpers.executeData(
|
|
3149
|
-
parentNodes,
|
|
3150
|
-
name,
|
|
3151
|
-
NodeConnectionType.Main,
|
|
3152
|
-
0
|
|
3153
|
-
);
|
|
3154
|
-
sourceData = get(executeData, ["source", NodeConnectionType.Main, 0], null);
|
|
3155
|
-
}
|
|
3156
|
-
return {
|
|
3157
|
-
name,
|
|
3158
|
-
sourceData
|
|
3159
|
-
};
|
|
3160
|
-
});
|
|
3161
|
-
const singleWebhookTrigger = triggers.find(
|
|
3162
|
-
(node) => SINGLE_WEBHOOK_TRIGGERS.includes(node.type)
|
|
3163
|
-
);
|
|
3164
|
-
if (singleWebhookTrigger && workflowsStore.isWorkflowActive && !workflowData.pinData?.[singleWebhookTrigger.name]) {
|
|
3165
|
-
toast.showMessage({
|
|
3166
|
-
title: i18n.baseText("workflowRun.showError.deactivate"),
|
|
3167
|
-
message: i18n.baseText("workflowRun.showError.productionActive", {
|
|
3168
|
-
interpolate: { nodeName: singleWebhookTrigger.name }
|
|
3169
|
-
}),
|
|
3170
|
-
type: "error"
|
|
3171
|
-
});
|
|
3172
|
-
return void 0;
|
|
3173
|
-
}
|
|
3174
|
-
const partialExecutionVersion = useLocalStorage("PartialExecution.version", -1);
|
|
3175
|
-
const isPartialExecution = options.destinationNode !== void 0;
|
|
3176
|
-
const startRunData = {
|
|
3177
|
-
workflowData,
|
|
3178
|
-
runData: !isPartialExecution ? (
|
|
3179
|
-
// if it's a full execution we don't want to send any run data
|
|
3180
|
-
void 0
|
|
3181
|
-
) : partialExecutionVersion.value === 1 ? (
|
|
3182
|
-
// With the new partial execution version the backend decides
|
|
3183
|
-
//what run data to use and what to ignore.
|
|
3184
|
-
runData2 ?? void 0
|
|
3185
|
-
) : (
|
|
3186
|
-
// for v0 we send the run data the FE constructed
|
|
3187
|
-
newRunData
|
|
3188
|
-
),
|
|
3189
|
-
startNodes,
|
|
3190
|
-
triggerToStartFrom
|
|
3191
|
-
};
|
|
3192
|
-
if ("destinationNode" in options) {
|
|
3193
|
-
startRunData.destinationNode = options.destinationNode;
|
|
3194
|
-
}
|
|
3195
|
-
if (startRunData.runData) {
|
|
3196
|
-
startRunData.dirtyNodeNames = getDirtyNodeNames(
|
|
3197
|
-
startRunData.runData,
|
|
3198
|
-
workflowsStore.getParametersLastUpdate
|
|
3199
|
-
);
|
|
3200
|
-
}
|
|
3201
|
-
const executionData = {
|
|
3202
|
-
id: "__IN_PROGRESS__",
|
|
3203
|
-
finished: false,
|
|
3204
|
-
mode: "manual",
|
|
3205
|
-
status: "running",
|
|
3206
|
-
createdAt: /* @__PURE__ */ new Date(),
|
|
3207
|
-
startedAt: /* @__PURE__ */ new Date(),
|
|
3208
|
-
stoppedAt: void 0,
|
|
3209
|
-
workflowId: workflow.id,
|
|
3210
|
-
executedNode,
|
|
3211
|
-
data: {
|
|
3212
|
-
resultData: {
|
|
3213
|
-
runData: startRunData.runData ?? {},
|
|
3214
|
-
pinData: workflowData.pinData,
|
|
3215
|
-
workflowData
|
|
3216
|
-
}
|
|
3217
|
-
},
|
|
3218
|
-
workflowData: {
|
|
3219
|
-
id: workflowsStore.workflowId,
|
|
3220
|
-
name: workflowData.name,
|
|
3221
|
-
active: workflowData.active,
|
|
3222
|
-
createdAt: 0,
|
|
3223
|
-
updatedAt: 0,
|
|
3224
|
-
...workflowData
|
|
3225
|
-
}
|
|
3226
|
-
};
|
|
3227
|
-
workflowsStore.setWorkflowExecutionData(executionData);
|
|
3228
|
-
nodeHelpers.updateNodesExecutionIssues();
|
|
3229
|
-
workflowHelpers.setDocumentTitle(workflow.name, "EXECUTING");
|
|
3230
|
-
const runWorkflowApiResponse = await runWorkflowApi(startRunData);
|
|
3231
|
-
const pinData = workflowData.pinData ?? {};
|
|
3232
|
-
const getTestUrl = /* @__PURE__ */ (() => {
|
|
3233
|
-
return (node) => {
|
|
3234
|
-
const path = node.parameters.path || node.parameters.options?.path || node.webhookId;
|
|
3235
|
-
return `${rootStore.formTestUrl}/${path}`;
|
|
3236
|
-
};
|
|
3237
|
-
})();
|
|
3238
|
-
try {
|
|
3239
|
-
displayForm({
|
|
3240
|
-
nodes: workflowData.nodes,
|
|
3241
|
-
runData: workflowsStore.getWorkflowExecution?.data?.resultData?.runData,
|
|
3242
|
-
destinationNode: options.destinationNode,
|
|
3243
|
-
pinData,
|
|
3244
|
-
directParentNodes,
|
|
3245
|
-
source: options.source,
|
|
3246
|
-
getTestUrl
|
|
3247
|
-
});
|
|
3248
|
-
} catch (error2) {
|
|
3249
|
-
}
|
|
3250
|
-
await useExternalHooks().run("workflowRun.runWorkflow", {
|
|
3251
|
-
nodeName: options.destinationNode,
|
|
3252
|
-
source: options.source
|
|
3253
|
-
});
|
|
3254
|
-
return runWorkflowApiResponse;
|
|
3255
|
-
} catch (error2) {
|
|
3256
|
-
workflowHelpers.setDocumentTitle(workflow.name, "ERROR");
|
|
3257
|
-
toast.showError(error2, i18n.baseText("workflowRun.showError.title"));
|
|
3258
|
-
return void 0;
|
|
3259
|
-
}
|
|
3260
|
-
}
|
|
3261
|
-
function consolidateRunDataAndStartNodes(directParentNodes, runData2, pinData, workflow) {
|
|
3262
|
-
const startNodeNames = /* @__PURE__ */ new Set();
|
|
3263
|
-
let newRunData;
|
|
3264
|
-
if (runData2 !== null && Object.keys(runData2).length !== 0) {
|
|
3265
|
-
newRunData = {};
|
|
3266
|
-
for (const directParentNode of directParentNodes) {
|
|
3267
|
-
const parentNodes = workflow.getParentNodes(directParentNode, NodeConnectionType.Main);
|
|
3268
|
-
if (workflow.nodes[directParentNode].disabled) continue;
|
|
3269
|
-
parentNodes.push(directParentNode);
|
|
3270
|
-
for (const parentNode of parentNodes) {
|
|
3271
|
-
if (!runData2[parentNode]?.length && !pinData?.[parentNode]?.length || runData2[parentNode]?.[0]?.error !== void 0) {
|
|
3272
|
-
startNodeNames.add(parentNode);
|
|
3273
|
-
break;
|
|
3274
|
-
}
|
|
3275
|
-
if (runData2[parentNode] && !runData2[parentNode]?.[0]?.error) {
|
|
3276
|
-
newRunData[parentNode] = runData2[parentNode]?.slice(0, 1);
|
|
3277
|
-
}
|
|
3278
|
-
}
|
|
3279
|
-
}
|
|
3280
|
-
if (isEmpty(newRunData)) {
|
|
3281
|
-
newRunData = void 0;
|
|
3282
|
-
}
|
|
3283
|
-
}
|
|
3284
|
-
return { runData: newRunData, startNodeNames: [...startNodeNames] };
|
|
3285
|
-
}
|
|
3286
|
-
async function stopCurrentExecution() {
|
|
3287
|
-
const executionId = workflowsStore.activeExecutionId;
|
|
3288
|
-
if (executionId === null) {
|
|
3289
|
-
return;
|
|
3290
|
-
}
|
|
3291
|
-
try {
|
|
3292
|
-
await executionsStore.stopCurrentExecution(executionId);
|
|
3293
|
-
} catch (error2) {
|
|
3294
|
-
const execution = await workflowsStore.getExecution(executionId);
|
|
3295
|
-
if (execution === void 0) {
|
|
3296
|
-
toast.showMessage({
|
|
3297
|
-
title: i18n.baseText("nodeView.showMessage.stopExecutionCatch.unsaved.title"),
|
|
3298
|
-
message: i18n.baseText("nodeView.showMessage.stopExecutionCatch.unsaved.message"),
|
|
3299
|
-
type: "success"
|
|
3300
|
-
});
|
|
3301
|
-
} else if (execution?.finished) {
|
|
3302
|
-
const executedData = {
|
|
3303
|
-
data: execution.data,
|
|
3304
|
-
finished: execution.finished,
|
|
3305
|
-
mode: execution.mode,
|
|
3306
|
-
startedAt: execution.startedAt,
|
|
3307
|
-
stoppedAt: execution.stoppedAt
|
|
3308
|
-
};
|
|
3309
|
-
workflowsStore.setWorkflowExecutionData(executedData);
|
|
3310
|
-
toast.showMessage({
|
|
3311
|
-
title: i18n.baseText("nodeView.showMessage.stopExecutionCatch.title"),
|
|
3312
|
-
message: i18n.baseText("nodeView.showMessage.stopExecutionCatch.message"),
|
|
3313
|
-
type: "success"
|
|
3314
|
-
});
|
|
3315
|
-
} else {
|
|
3316
|
-
toast.showError(error2, i18n.baseText("nodeView.showError.stopExecution.title"));
|
|
3317
|
-
}
|
|
3318
|
-
} finally {
|
|
3319
|
-
workflowsStore.markExecutionAsStopped();
|
|
3320
|
-
}
|
|
3321
|
-
}
|
|
3322
|
-
async function stopWaitingForWebhook() {
|
|
3323
|
-
try {
|
|
3324
|
-
await workflowsStore.removeTestWebhook(workflowsStore.workflowId);
|
|
3325
|
-
} catch (error2) {
|
|
3326
|
-
toast.showError(error2, i18n.baseText("nodeView.showError.stopWaitingForWebhook.title"));
|
|
3327
|
-
return;
|
|
3328
|
-
}
|
|
3329
|
-
}
|
|
3330
|
-
return {
|
|
3331
|
-
consolidateRunDataAndStartNodes,
|
|
3332
|
-
runWorkflow,
|
|
3333
|
-
runWorkflowApi,
|
|
3334
|
-
stopCurrentExecution,
|
|
3335
|
-
stopWaitingForWebhook
|
|
3336
|
-
};
|
|
3337
|
-
}
|
|
3338
3026
|
export {
|
|
3339
3027
|
HighlightJS as H,
|
|
3340
3028
|
RunDataAi as R,
|
|
3341
|
-
_sfc_main$3 as _
|
|
3342
|
-
useRunWorkflow as u
|
|
3029
|
+
_sfc_main$3 as _
|
|
3343
3030
|
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RunDataJsonActions-
|
|
2
|
-
import { d as defineComponent, as as useNDVStore, r as ref,
|
|
3
|
-
import { V as VueJsonPretty } from "./NodeViewSwitcher-
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./FileSaver.min-
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RunDataJsonActions-CuA1XQyQ.js","assets/index-BgTszcKd.js","assets/index-xKO0gQfI.css","assets/_commonjs-dynamic-modules-TGKdzP3c.js","assets/useRunWorkflow-g6q3R4P4.js","assets/pushConnection.store-Z13Buj1P.js","assets/RunDataJsonActions-DrgwFS0W.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { d as defineComponent, as as useNDVStore, r as ref, iK as nonExistingJsonPath, iL as useElementSize, q as computed, cG as executionDataToJson, c as openBlock, h as createElementBlock, e as createBlock, w as withCtx, l as unref, f as createCommentVNode, ct as Suspense, i as createVNode, iF as MappingPill, iG as TextWithHighlights, n as normalizeClass, c8 as Draggable, cE as defineAsyncComponent, ar as __vitePreload, v as shorten, iJ as getMappedExpression, dq as isString, aT as useExternalHooks, aj as useTelemetry, _ as _export_sfc } from "./index-BgTszcKd.js";
|
|
3
|
+
import { V as VueJsonPretty } from "./NodeViewSwitcher-CzTWzm1u.js";
|
|
4
|
+
import "./useCanvasMapping-Dj_ctboo.js";
|
|
5
|
+
import "./useRunWorkflow-g6q3R4P4.js";
|
|
6
|
+
import "./pushConnection.store-Z13Buj1P.js";
|
|
7
|
+
import "./import-curl-Dm0tXAal.js";
|
|
8
|
+
import "./FileSaver.min-BYPjeNsQ.js";
|
|
9
|
+
import "./RunDataAi-CH-Sjvla.js";
|
|
10
|
+
import "./useExecutionHelpers-OayET-Qz.js";
|
|
11
|
+
import "./useWorkflowActivate-B4fObrrf.js";
|
|
12
|
+
import "./global-link-actions-CmKpJf6C.js";
|
|
13
|
+
import "./useExecutionDebugging-DV8arYl7.js";
|
|
14
|
+
import "./useBeforeUnload-BzdqZUNR.js";
|
|
15
|
+
import "./easyAiWorkflowUtils-BEjLgBYH.js";
|
|
14
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
17
|
__name: "RunDataJson",
|
|
16
18
|
props: {
|
|
@@ -27,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
29
|
},
|
|
28
30
|
setup(__props) {
|
|
29
31
|
const LazyRunDataJsonActions = defineAsyncComponent(
|
|
30
|
-
async () => await __vitePreload(() => import("./RunDataJsonActions-
|
|
32
|
+
async () => await __vitePreload(() => import("./RunDataJsonActions-CuA1XQyQ.js"), true ? __vite__mapDeps([0,1,2,3,4,5,6]) : void 0)
|
|
31
33
|
);
|
|
32
34
|
const props = __props;
|
|
33
35
|
const ndvStore = useNDVStore();
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import { ge as commonjsGlobal, ce as getDefaultExportFromCjs, d as defineComponent, iK as nonExistingJsonPath, as as useNDVStore, T as useWorkflowsStore, bp as useNodeHelpers, b6 as useClipboard, a as useToast, U as useRoute, q as computed, m as resolveComponent, c as openBlock, h as createElementBlock, e as createBlock, l as unref, w as withCtx, i as createVNode, k as createTextVNode, t as toDisplayString, j as createBaseVNode, n as normalizeClass, g as useI18n, aj as useTelemetry, cQ as clearJsonKey, cG as executionDataToJson, iV as convertPath, _ as _export_sfc } from "./index-BgTszcKd.js";
|
|
2
|
+
import { c as commonjsRequire } from "./_commonjs-dynamic-modules-TGKdzP3c.js";
|
|
3
|
+
import { u as usePinnedData } from "./useRunWorkflow-g6q3R4P4.js";
|
|
4
|
+
import "./pushConnection.store-Z13Buj1P.js";
|
|
6
5
|
var jsonpath = { exports: {} };
|
|
7
6
|
/*! jsonpath 1.1.1 */
|
|
8
7
|
var hasRequiredJsonpath;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, J as useDebounce, r as ref, q as computed, o as onMounted, b4 as onUnmounted, H as watch, m as resolveComponent, c as openBlock, e as createBlock, w as withCtx, i as createVNode, n as normalizeClass, B as normalizeStyle, g as useI18n, _ as _export_sfc } from "./index-
|
|
1
|
+
import { d as defineComponent, J as useDebounce, r as ref, q as computed, o as onMounted, b4 as onUnmounted, H as watch, m as resolveComponent, c as openBlock, e as createBlock, w as withCtx, i as createVNode, n as normalizeClass, B as normalizeStyle, g as useI18n, _ as _export_sfc } from "./index-BgTszcKd.js";
|
|
2
2
|
const COLLAPSED_WIDTH = "30px";
|
|
3
3
|
const OPEN_WIDTH = "204px";
|
|
4
4
|
const OPEN_MIN_WIDTH = "120px";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineComponent, r as ref, as as useNDVStore, T as useWorkflowsStore,
|
|
2
|
-
import { u as useExecutionHelpers } from "./useExecutionHelpers-
|
|
1
|
+
import { d as defineComponent, r as ref, as as useNDVStore, T as useWorkflowsStore, cl as storeToRefs, q as computed, o as onMounted, H as watch, m as resolveComponent, c as openBlock, h as createElementBlock, n as normalizeClass, j as createBaseVNode, f as createCommentVNode, F as Fragment, A as renderList, i as createVNode, w as withCtx, ax as withDirectives, e as createBlock, l as unref, aQ as _sfc_main$1, ay as vShow, aP as N8nTooltip, k as createTextVNode, t as toDisplayString, cB as InfoTip, c8 as Draggable, iF as MappingPill, v as shorten, iG as TextWithHighlights, iH as Tree, g as useI18n, iI as getPairedItemId, iJ as getMappedExpression, aT as useExternalHooks, aj as useTelemetry, _ as _export_sfc } from "./index-BgTszcKd.js";
|
|
2
|
+
import { u as useExecutionHelpers } from "./useExecutionHelpers-OayET-Qz.js";
|
|
3
3
|
const _imports_0 = "/%7B%7BBASE_PATH%7D%7D/static/data-mapping-gif.gif";
|
|
4
4
|
const _hoisted_1 = ["data-row"];
|
|
5
5
|
const _hoisted_2 = ["data-row"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as defineComponent, b as useRouter, a as useToast,
|
|
2
|
-
import { A as AuthView } from "./AuthView-
|
|
3
|
-
import "./Logo-
|
|
1
|
+
import { d as defineComponent, b as useRouter, a as useToast, fk as useSSOStore, r as ref, dC as reactive, c as openBlock, e as createBlock, g as useI18n, V as VIEWS } from "./index-BgTszcKd.js";
|
|
2
|
+
import { A as AuthView } from "./AuthView-DC9bB5r3.js";
|
|
3
|
+
import "./Logo-hPeyHcb-.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "SamlOnboarding",
|
|
6
6
|
setup(__props) {
|