n8n-editor-ui 1.71.3 → 1.72.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/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-C7YrhVc7.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-WpdLQ_Lc.js} +1 -1
- package/dist/assets/{AuthView-Cnr31xHM.css → AuthView-BP3bsQpK.css} +3 -14
- package/dist/assets/{AuthView-BhrVKHQb.js → AuthView-xWm2P-0B.js} +1 -1
- package/dist/assets/{CanvasChat-B2z8TKEq.js → CanvasChat-CpplEK_c.js} +76 -104
- package/dist/assets/{CanvasChat-BuYT3e9G.css → CanvasChat-DhkdJLy7.css} +18 -81
- package/dist/assets/{CanvasControls-Gjw5xMXK.css → CanvasControls-BEOkwFDJ.css} +1 -2
- package/dist/assets/{CanvasControls-D3OVjMCG.js → CanvasControls-CNOZvEmR.js} +1 -1
- package/dist/assets/{ChangePasswordView-BkoEwfgW.js → ChangePasswordView-Bx4HKBs9.js} +2 -2
- package/dist/assets/CollectionParameter-IbNRc-rP.js +4 -0
- package/dist/assets/{ConcurrentExecutionsHeader-D99WmQjD.css → ConcurrentExecutionsHeader-ChCLnjVG.css} +7 -17
- package/dist/assets/{ConcurrentExecutionsHeader-D_jkbuah.js → ConcurrentExecutionsHeader-dMskl4He.js} +51 -47
- package/dist/assets/CredentialsView-CzforIh7.css +36 -0
- package/dist/assets/{CredentialsView-WgZTdwDF.js → CredentialsView-DYmrbOcr.js} +15 -25
- package/dist/assets/ErrorView-DZCz_7-d.css +22 -0
- package/dist/assets/{ErrorView-CCvyR8gc.js → ErrorView-DpKWfKAY.js} +1 -1
- package/dist/assets/{ExecutionsView-DNwpODRj.css → ExecutionsView-CLxQdDnP.css} +16 -43
- package/dist/assets/{ExecutionsView-BsIeNcoc.js → ExecutionsView-a2Slm2v9.js} +123 -38
- package/dist/assets/FileSaver.min-BiLlhrlQ.js +81 -0
- package/dist/assets/{FixedCollectionParameter-DzOGMEdq.css → FixedCollectionParameter-CUxLKPYJ.css} +1 -6
- package/dist/assets/{FixedCollectionParameter-DMpNSKjt.js → FixedCollectionParameter-DMiADFki.js} +5 -9
- package/dist/assets/{ForgotMyPasswordView-m-NI0pKA.js → ForgotMyPasswordView-RLODqWeW.js} +2 -2
- package/dist/assets/{MainHeader-DrUbWzLR.css → MainHeader-Bg4Jr0GW.css} +16 -63
- package/dist/assets/{MainHeader-CzdjrO1j.js → MainHeader-CZBWRbIF.js} +20 -33
- package/dist/assets/{MainSidebar-DL53w2zU.css → MainSidebar-B_Q71vG8.css} +16 -68
- package/dist/assets/{MainSidebar-CWZj9hUz.js → MainSidebar-Cm-l0HUG.js} +86 -71
- package/dist/assets/{NodeCreation-BNsKR1XL.js → NodeCreation-Bycww9rf.js} +10 -14
- package/dist/assets/{NodeCreation-30KXmZi2.css → NodeCreation-DTNNkgVv.css} +1 -5
- package/dist/assets/{NodeCreator-nENM_3bV.js → NodeCreator-BrgHuvb2.js} +54 -90
- package/dist/assets/{NodeCreator-CvOLgSO_.css → NodeCreator-BvqI_pdC.css} +21 -91
- package/dist/assets/{NodeViewSwitcher-tJDzCGJC.js → NodeViewSwitcher-D5JjSNB2.js} +7425 -1780
- package/dist/assets/{NodeViewSwitcher-jLTC590F.css → NodeViewSwitcher-DngiUgY8.css} +323 -950
- package/dist/assets/{ProjectCardBadge-Dwm_41ZR.js → ProjectCardBadge-B6a5Tl_X.js} +8 -13
- package/dist/assets/ProjectHeader-CDl0NBcF.css +21 -0
- package/dist/assets/{ProjectHeader-DTRxu2oO.js → ProjectHeader-CUoGk-wO.js} +61 -44
- package/dist/assets/{ProjectSettings-hzCZqVHM.js → ProjectSettings-BSOa51jE.js} +24 -42
- package/dist/assets/{ProjectSettings-CChpfrTS.css → ProjectSettings-DZws5IzZ.css} +2 -9
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-Bv3nXXk5.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-ouQuoTYp.js} +1 -1
- package/dist/assets/{ResourcesListLayout-CKArPHiS.js → ResourcesListLayout-BKk7DIWo.js} +24 -30
- package/dist/assets/{ResourcesListLayout-I4rYUdFt.css → ResourcesListLayout-NZz6R66g.css} +11 -47
- package/dist/assets/{RunDataJson-jFaJ_yC4.js → RunDataJson-D7Whxi5x.js} +13 -13
- package/dist/assets/{RunDataJson-Dtc8i0I7.css → RunDataJson-DW_khHj4.css} +0 -1
- package/dist/assets/{RunDataJsonActions-zNKrn8z4.css → RunDataJsonActions-CoiM0oFP.css} +0 -1
- package/dist/assets/RunDataJsonActions-hLh8-Su6.js +5514 -0
- package/dist/assets/{RunDataSearch-BA0wlJtp.css → RunDataSearch-B4q8H9Ex.css} +0 -1
- package/dist/assets/{RunDataSearch-C9VyfwRz.js → RunDataSearch-Ds3EGLA6.js} +5 -7
- package/dist/assets/{RunDataTable-enskmmU4.css → RunDataTable-BOaG0Pms.css} +2 -10
- package/dist/assets/{RunDataTable-CK4Z05pd.js → RunDataTable-atOC6vYW.js} +9 -14
- package/dist/assets/{SamlOnboarding-POzPTpcl.js → SamlOnboarding-DuDPZUey.js} +4 -5
- package/dist/assets/{SettingsApiView-BOFUFUqU.js → SettingsApiView-CFlbEwnS.js} +1 -1
- package/dist/assets/{SettingsApiView-5wBxahqI.css → SettingsApiView-DX3S-5pa.css} +2 -8
- package/dist/assets/{SettingsCommunityNodesView-088VPv0r.js → SettingsCommunityNodesView-CJrxi3vi.js} +3 -3
- package/dist/assets/{SettingsCommunityNodesView-BTbugFls.css → SettingsCommunityNodesView-kzxtAoLp.css} +10 -42
- package/dist/assets/SettingsExternalSecrets-BnXyxlJd.css +29 -0
- package/dist/assets/{SettingsExternalSecrets-DlobsnOy.js → SettingsExternalSecrets-BusSlBVI.js} +14 -17
- package/dist/assets/SettingsLdapView-BLPKhtjA.js +2423 -0
- package/dist/assets/{SettingsLdapView-cRgzivq6.css → SettingsLdapView-BPh_inzE.css} +2 -8
- package/dist/assets/{SettingsLogStreamingView-EW9yIYwY.js → SettingsLogStreamingView-DI9OYnte.js} +20 -37
- package/dist/assets/SettingsLogStreamingView-Uz298HNW.css +46 -0
- package/dist/assets/{SettingsPersonalView-BOQgHIYm.css → SettingsPersonalView-CqzRUitO.css} +3 -13
- package/dist/assets/{SettingsPersonalView-DrJJtUL5.js → SettingsPersonalView-CwLPEQe5.js} +7 -10
- package/dist/assets/{SettingsSourceControl-COccchDl.js → SettingsSourceControl-BHiwsbh6.js} +1 -1
- package/dist/assets/{SettingsSourceControl-aZrwFtXG.css → SettingsSourceControl-C7H8sLJN.css} +5 -21
- package/dist/assets/{SettingsSso-BczGJSZo.js → SettingsSso-BUE-Dg9u.js} +10 -11
- package/dist/assets/{SettingsSso-DUkYL_--.css → SettingsSso-Be_ejj46.css} +3 -13
- package/dist/assets/{SettingsUsageAndPlan-vijI-va0.css → SettingsUsageAndPlan-C3fKPMTY.css} +13 -54
- package/dist/assets/{SettingsUsageAndPlan-OepwN_K0.js → SettingsUsageAndPlan-g8SYxLIm.js} +3 -7
- package/dist/assets/{SettingsUsersView-D6xH2uOE.js → SettingsUsersView-DsjbsMkp.js} +8 -15
- package/dist/assets/{SettingsView-D30Stwpp.js → SettingsView-BZqGq_NA.js} +3 -4
- package/dist/assets/{SettingsView-DOWbkj-V.css → SettingsView-o6uNYu0t.css} +1 -5
- package/dist/assets/{SetupView-DLhUy2sO.js → SetupView-DKcifLmN.js} +3 -9
- package/dist/assets/{SetupWorkflowCredentialsButton-FAOxK4hC.js → SetupWorkflowCredentialsButton-1FX7DWWs.js} +3 -5
- package/dist/assets/{SetupWorkflowFromTemplateView-29le4KEi.js → SetupWorkflowFromTemplateView-BI8db6Bn.js} +5 -9
- package/dist/assets/SetupWorkflowFromTemplateView-DjBcyMCl.css +26 -0
- package/dist/assets/{SigninView-B3r5QMqu.js → SigninView-DRl5Z9dU.js} +4 -5
- package/dist/assets/{SigninView-BEBHcgmK.css → SigninView-DzDE1gJb.css} +3 -14
- package/dist/assets/{SignoutView-DiRv1jyS.js → SignoutView-CD6CNCd4.js} +1 -1
- package/dist/assets/{SignupView-DepIL1mr.js → SignupView-BUIFD8_L.js} +2 -2
- package/dist/assets/{TemplateDetails-BG8YmNsP.js → TemplateDetails-BZy8nHAa.js} +1 -1
- package/dist/assets/{TemplateDetails-BjsdeJu8.css → TemplateDetails-p3M6A7jr.css} +1 -4
- package/dist/assets/{TemplateList-4lx8vpYf.css → TemplateList-BR3bpDTv.css} +13 -52
- package/dist/assets/{TemplateList-CEljIT09.js → TemplateList-DdYIfcdc.js} +1 -1
- package/dist/assets/{TemplatesCollectionView-C1BUeMtq.css → TemplatesCollectionView-DJVlK4Bb.css} +1 -5
- package/dist/assets/{TemplatesCollectionView-C1katHqi.js → TemplatesCollectionView-a9gOg1oh.js} +5 -5
- package/dist/assets/{TemplatesSearchView-BiokbeYf.css → TemplatesSearchView-CFrHWGcY.css} +4 -21
- package/dist/assets/{TemplatesSearchView-6ugazm6D.js → TemplatesSearchView-C_qp2w-Y.js} +5 -20
- package/dist/assets/{TemplatesView-BfnDbKo5.css → TemplatesView-CBNZZ_X1.css} +3 -16
- package/dist/assets/{TemplatesView-BnpZqzSI.js → TemplatesView-Srd2qTc6.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-D-rSlrYy.js → TemplatesWorkflowView-CDkCoN9X.js} +35 -39
- package/dist/assets/{TemplatesWorkflowView-BN5JjV6M.css → TemplatesWorkflowView-CVC0fbb6.css} +2 -10
- package/dist/assets/{TestDefinitionEditView-szspUG0t.css → TestDefinitionEditView-CVRXpJ4c.css} +13 -54
- package/dist/assets/{TestDefinitionEditView-Dw2F_7Ku.js → TestDefinitionEditView-CgQpahO7.js} +3 -4
- package/dist/assets/{TestDefinitionListView-Cv9ivpVk.js → TestDefinitionListView-BGJr2Okj.js} +4 -4
- package/dist/assets/{TestDefinitionListView-BfUssieW.css → TestDefinitionListView-BJVxwUdb.css} +9 -46
- package/dist/assets/{VariablesView-meR15bnW.css → VariablesView-BnGnRwcl.css} +3 -13
- package/dist/assets/{VariablesView-BrvfrvgE.js → VariablesView-DBlZthPg.js} +28 -38
- package/dist/assets/{VirtualSchema-Be-DGXEU.css → VirtualSchema-CIfwZj8N.css} +11 -48
- package/dist/assets/VirtualSchema-DkiHWd9N.js +378 -0
- package/dist/assets/{WorkerView-DhAgtBED.js → WorkerView--FWlY_KA.js} +14 -23
- package/dist/assets/WorkerView-CvXMClDD.css +123 -0
- package/dist/assets/{WorkflowActivator-Def_oRg7.js → WorkflowActivator-BbpMhG1U.js} +2 -2
- package/dist/assets/{WorkflowActivator-D8FiI2jP.css → WorkflowActivator-DSBGQvK0.css} +3 -9
- package/dist/assets/{WorkflowExecutionsInfoAccordion-lODxxxtv.js → WorkflowExecutionsInfoAccordion-DOpZ49kK.js} +1 -1
- package/dist/assets/{WorkflowExecutionsInfoAccordion-DfMew6q4.css → WorkflowExecutionsInfoAccordion-f5tIRAwu.css} +2 -14
- package/dist/assets/WorkflowExecutionsLandingPage-BodEQ5Bq.css +23 -0
- package/dist/assets/{WorkflowExecutionsLandingPage-Bidi-y5V.js → WorkflowExecutionsLandingPage-CAbWLqG8.js} +2 -2
- package/dist/assets/{WorkflowExecutionsPreview-DRCpGEbi.css → WorkflowExecutionsPreview-C-e7WZrK.css} +22 -98
- package/dist/assets/{WorkflowExecutionsPreview-d2F04pj8.js → WorkflowExecutionsPreview-CfUWIIgy.js} +39 -71
- package/dist/assets/{WorkflowExecutionsView-C6EMZ-AQ.css → WorkflowExecutionsView-CFOgmzpK.css} +18 -74
- package/dist/assets/{WorkflowExecutionsView-CHr4rzKW.js → WorkflowExecutionsView-DrfZ7QK8.js} +151 -165
- package/dist/assets/{WorkflowHistory-C-lUH0fo.css → WorkflowHistory-D0ufvWsH.css} +14 -57
- package/dist/assets/{WorkflowHistory-BSijDFcx.js → WorkflowHistory-eqsh1yXn.js} +16 -29
- package/dist/assets/{WorkflowOnboardingView-CvuowIe6.js → WorkflowOnboardingView-Kbe8c2_R.js} +22 -5
- package/dist/assets/{WorkflowPreview-CYf78I6t.js → WorkflowPreview-DKTyMYfO.js} +5 -11
- package/dist/assets/{WorkflowPreview-Bpiv2_RO.css → WorkflowPreview-DuLM6rtd.css} +4 -15
- package/dist/assets/{WorkflowsView-Bc1WW7-8.js → WorkflowsView-ClrcrpKc.js} +110 -120
- package/dist/assets/WorkflowsView-D5fBzfD4.css +65 -0
- package/dist/assets/{index-D50gpyk6.css → index-Bo70cRA3.css} +350 -1351
- package/dist/assets/{index-D57HUAs6.js → index-fCEqBD8K.js} +45117 -40863
- package/dist/assets/polyfills-BN5TIqPj.js +5985 -0
- package/dist/assets/{pushConnection.store-BrFt2YWH.js → pushConnection.store-Kmly9nV5.js} +2 -3
- package/dist/assets/{templateActions-BrLvM4wQ.js → templateActions-xeWyRgrU.js} +1 -1
- package/dist/assets/{testDefinition.store.ee-DJ6gErZh.js → testDefinition.store.ee-C9BPbACc.js} +1 -1
- package/dist/assets/{useBugReporting-v6zXxGxR.js → useBugReporting-CbgIVUCL.js} +1 -1
- package/dist/assets/{useExecutionDebugging-Dhwr-oW3.js → useExecutionDebugging-Cuf88DQE.js} +3 -6
- package/dist/assets/{useExecutionHelpers-Ovym9OwA.js → useExecutionHelpers-BIxUwlsh.js} +3 -4
- package/dist/assets/{useGlobalEntityCreation-D_NS7_je.js → useGlobalEntityCreation-DGVSN-Im.js} +29 -14
- package/dist/assets/{useNodeViewVersionSwitcher-ESq0kPP5.js → useNodeViewVersionSwitcher-Eg-dOWbq.js} +1 -1
- package/dist/assets/{usePushConnection-DCkWEVa2.js → usePushConnection-D-iAKJiL.js} +36 -22
- package/dist/assets/{useRunWorkflow-B_S0x25z.css → useRunWorkflow-BDl-2MsN.css} +24 -106
- package/dist/assets/{useRunWorkflow-g1Tw1vWo.js → useRunWorkflow-BXE6bWp2.js} +1547 -1581
- package/dist/assets/{useWorkflowActivate-DibPO-sA.js → useWorkflowActivate-D8cU5eJ_.js} +1 -1
- package/dist/index.html +4 -2
- package/package.json +1 -1
- package/tsconfig.json +2 -1
- package/vite.config.mts +11 -0
- package/dist/assets/CollectionParameter-D7-YFFFP.js +0 -4
- package/dist/assets/CredentialsView-ChjCCSbV.css +0 -56
- package/dist/assets/ErrorView-Dzof6SY8.css +0 -35
- package/dist/assets/FileSaver.min-BsJSdQo9.js +0 -74
- package/dist/assets/ProjectHeader-CTK_rV3h.css +0 -28
- package/dist/assets/RunDataJsonActions-CUYH2C-z.js +0 -5509
- package/dist/assets/SettingsExternalSecrets-BD5PuMIG.css +0 -50
- package/dist/assets/SettingsLdapView-CDm8JWNK.js +0 -2417
- package/dist/assets/SettingsLogStreamingView-CWIuI89G.css +0 -75
- package/dist/assets/SetupWorkflowFromTemplateView-CvsDVBkh.css +0 -44
- package/dist/assets/VirtualSchema-DFybirEh.js +0 -1863
- package/dist/assets/WorkerView-C_d54L0W.css +0 -181
- package/dist/assets/WorkflowExecutionsLandingPage-B1zCnzh_.css +0 -39
- package/dist/assets/WorkflowsView-C1eCTa1K.css +0 -82
- /package/dist/assets/{ProjectCardBadge-DPUG4BoB.css → ProjectCardBadge-DQvW5T7s.css} +0 -0
- /package/dist/assets/{SettingsUsersView-Ba9S2o-I.css → SettingsUsersView-C13eCMjh.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NodeCreator-
|
|
2
|
-
import { bk as useNodeTypesStore,
|
|
3
|
-
import { u as useNodeCreatorStore, t as transformNodeType, s as sortNodeCreateElements } from "./NodeViewSwitcher-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NodeCreator-BrgHuvb2.js","assets/index-fCEqBD8K.js","assets/index-Bo70cRA3.css","assets/NodeViewSwitcher-D5JjSNB2.js","assets/useRunWorkflow-BXE6bWp2.js","assets/useExecutionHelpers-BIxUwlsh.js","assets/useRunWorkflow-BDl-2MsN.css","assets/FileSaver.min-BiLlhrlQ.js","assets/useWorkflowActivate-D8cU5eJ_.js","assets/pushConnection.store-Kmly9nV5.js","assets/useExecutionDebugging-Cuf88DQE.js","assets/useNodeViewVersionSwitcher-Eg-dOWbq.js","assets/useBugReporting-CbgIVUCL.js","assets/NodeViewSwitcher-DngiUgY8.css","assets/NodeCreator-BvqI_pdC.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { bk as useNodeTypesStore, eV as NODE_CREATOR_OPEN_SOURCES, q as computed, g as useI18n, bQ as MANUAL_TRIGGER_NODE_TYPE, im as CHAIN_LLM_LANGCHAIN_NODE_TYPE, bd as NodeConnectionType, b3 as CHAT_TRIGGER_NODE_TYPE, io as OPEN_AI_NODE_MESSAGE_ASSISTANT_TYPE, ip as OPEN_AI_NODE_TYPE, eM as SPLIT_IN_BATCHES_NODE_TYPE, dO as NO_OP_NODE_TYPE, T as useWorkflowsStore, aP as useExternalHooks, bR as WEBHOOK_NODE_TYPE, ep as SCHEDULE_TRIGGER_NODE_TYPE, aC as STICKY_NODE_TYPE, $ as useCanvasStore, eb as AI_CATEGORY_LANGUAGE_MODELS, en as TRIGGER_NODE_CREATOR_VIEW, iq as QA_CHAIN_NODE_TYPE, ir as AGENT_NODE_TYPE, is as BASIC_CHAIN_NODE_TYPE, it as OPEN_AI_ASSISTANT_NODE_TYPE, d as defineComponent, K as useUIStore, r as ref, cg as useThrottleFn, o as onMounted, x as onBeforeUnmount, m as resolveComponent, c as openBlock, h as createElementBlock, n as normalizeClass, j as createBaseVNode, i as createVNode, w as withCtx, l as unref, e_ as KeyboardShortcutTooltip, f as createCommentVNode, e as createBlock, cY as Suspense, F as Fragment, d7 as defineAsyncComponent, as as __vitePreload, iu as getMidCanvasPosition, iv as DEFAULT_STICKY_WIDTH, iw as DEFAULT_STICKY_HEIGHT, _ as _export_sfc } from "./index-fCEqBD8K.js";
|
|
3
|
+
import { u as useNodeCreatorStore, t as transformNodeType, s as sortNodeCreateElements } from "./NodeViewSwitcher-D5JjSNB2.js";
|
|
4
4
|
const useActions = () => {
|
|
5
5
|
const nodeCreatorStore = useNodeCreatorStore();
|
|
6
6
|
const nodeTypesStore = useNodeTypesStore();
|
|
@@ -38,12 +38,11 @@ const useActions = () => {
|
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
function injectActionsLabels(items) {
|
|
41
|
-
var _a, _b, _c, _d;
|
|
42
41
|
const extendedActions = sortNodeCreateElements([...items]);
|
|
43
42
|
const labelsSet = /* @__PURE__ */ new Set();
|
|
44
43
|
for (const action of extendedActions) {
|
|
45
44
|
if (action.type !== "action") continue;
|
|
46
|
-
const label =
|
|
45
|
+
const label = action.properties?.codex?.label;
|
|
47
46
|
labelsSet.add(label);
|
|
48
47
|
}
|
|
49
48
|
if (labelsSet.size <= 1) return extendedActions;
|
|
@@ -51,7 +50,7 @@ const useActions = () => {
|
|
|
51
50
|
for (let i = 0; i < extendedActions.length; i++) {
|
|
52
51
|
const action = extendedActions[i];
|
|
53
52
|
if (action.type !== "action") continue;
|
|
54
|
-
const label =
|
|
53
|
+
const label = action.properties?.codex?.label;
|
|
55
54
|
if (!firstIndexMap.has(label)) {
|
|
56
55
|
firstIndexMap.set(label, i);
|
|
57
56
|
}
|
|
@@ -82,10 +81,9 @@ const useActions = () => {
|
|
|
82
81
|
}
|
|
83
82
|
function getActionData(actionItem) {
|
|
84
83
|
const displayOptions = actionItem.displayOptions;
|
|
85
|
-
const displayConditions = Object.keys(
|
|
84
|
+
const displayConditions = Object.keys(displayOptions?.show ?? {}).reduce(
|
|
86
85
|
(acc, showCondition) => {
|
|
87
|
-
|
|
88
|
-
acc[showCondition] = (_b = (_a = displayOptions == null ? void 0 : displayOptions.show) == null ? void 0 : _a[showCondition]) == null ? void 0 : _b[0];
|
|
86
|
+
acc[showCondition] = displayOptions?.show?.[showCondition]?.[0];
|
|
89
87
|
return acc;
|
|
90
88
|
},
|
|
91
89
|
{}
|
|
@@ -135,9 +133,8 @@ const useActions = () => {
|
|
|
135
133
|
const canvasHasAINodes = useCanvasStore().aiNodes.length > 0;
|
|
136
134
|
if (canvasHasAINodes) return false;
|
|
137
135
|
return addedNodes.some((node) => {
|
|
138
|
-
var _a;
|
|
139
136
|
const nodeType = nodeTypesStore.getNodeType(node.type);
|
|
140
|
-
return Object.keys(
|
|
137
|
+
return Object.keys(nodeType?.codex?.subcategories ?? {}).includes(
|
|
141
138
|
AI_CATEGORY_LANGUAGE_MODELS
|
|
142
139
|
);
|
|
143
140
|
});
|
|
@@ -249,7 +246,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
249
246
|
emits: ["addNodes", "toggleNodeCreator"],
|
|
250
247
|
setup(__props, { emit: __emit }) {
|
|
251
248
|
const LazyNodeCreator = defineAsyncComponent(
|
|
252
|
-
async () => await __vitePreload(() => import("./NodeCreator-
|
|
249
|
+
async () => await __vitePreload(() => import("./NodeCreator-BrgHuvb2.js"), true ? __vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]) : void 0)
|
|
253
250
|
);
|
|
254
251
|
const props = __props;
|
|
255
252
|
const emit = __emit;
|
|
@@ -293,8 +290,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
293
290
|
closeNodeCreator(true);
|
|
294
291
|
}
|
|
295
292
|
onMounted(() => {
|
|
296
|
-
|
|
297
|
-
wrapperBoundingRect.value = (_a = wrapperRef.value) == null ? void 0 : _a.getBoundingClientRect();
|
|
293
|
+
wrapperBoundingRect.value = wrapperRef.value?.getBoundingClientRect();
|
|
298
294
|
document.addEventListener("mousemove", onMouseMove);
|
|
299
295
|
});
|
|
300
296
|
onBeforeUnmount(() => {
|
|
@@ -2,17 +2,13 @@
|
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: 0;
|
|
4
4
|
right: 0;
|
|
5
|
-
display: -webkit-box;
|
|
6
|
-
display: -ms-flexbox;
|
|
7
5
|
display: flex;
|
|
8
6
|
}
|
|
9
7
|
._addStickyButton_zj446_8 {
|
|
10
8
|
margin-top: var(--spacing-2xs);
|
|
11
9
|
opacity: 0;
|
|
12
|
-
-webkit-transition: 0.1s;
|
|
13
10
|
transition: 0.1s;
|
|
14
|
-
|
|
15
|
-
transition-timing-function: linear;
|
|
11
|
+
transition-timing-function: linear;
|
|
16
12
|
}
|
|
17
13
|
._visibleButton_zj446_15 {
|
|
18
14
|
opacity: 1;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as formatTriggerActionName, u as useNodeCreatorStore, a as useViewStacks, c as camelCase, b as useKeyboardNavigation, t as transformNodeType, d as flattenCreateElements, T as TriggerView, R as RegularView, A as AIView, e as AINodesView } from "./NodeViewSwitcher-
|
|
3
|
-
import { d as upperFirst, b as useNodeType } from "./useRunWorkflow-
|
|
4
|
-
import { u as useActions } from "./NodeCreation-
|
|
5
|
-
import "./FileSaver.min-
|
|
6
|
-
import "./useExecutionHelpers-
|
|
7
|
-
import "./useWorkflowActivate-
|
|
8
|
-
import "./pushConnection.store-
|
|
9
|
-
import "./useExecutionDebugging-
|
|
10
|
-
import "./useNodeViewVersionSwitcher-
|
|
11
|
-
import "./useBugReporting-
|
|
1
|
+
import { bn as createCompounder, iK as memoize, e8 as i18n, eO as HTTP_REQUEST_NODE_TYPE, iL as getCredentialOnlyNodeType, dU as CUSTOM_API_CALL_KEY, b6 as AI_SUBCATEGORY, d as defineComponent, e1 as reactive, o as onMounted, x as onBeforeUnmount, aU as toRefs, m as resolveComponent, c as openBlock, h as createElementBlock, j as createBaseVNode, i as createVNode, n as normalizeClass, f as createCommentVNode, aP as useExternalHooks, _ as _export_sfc, r as ref, q as computed, e4 as DEFAULT_SUBCATEGORY, iM as CREDENTIAL_ONLY_NODE_PREFIX, bA as isCommunityPackageName, di as resolveDirective, e as createBlock, aO as createSlots, w as withCtx, ay as withDirectives, l as unref, bD as COMMUNITY_NODES_INSTALLATION_DOCS_URL, bz as _sfc_main$h, B as normalizeStyle, I as withModifiers, az as vShow, g as useI18n, fe as DRAG_EVENT_DATA_KEY, fd as getNewNodePosition, ff as NODE_SIZE, ak as useTelemetry, aX as mergeProps, t as toDisplayString, bR as WEBHOOK_NODE_TYPE, s as renderSlot, T as useWorkflowsStore, H as watch, aV as normalizeProps, aW as guardReactiveProps, b0 as onUnmounted, F as Fragment, A as renderList, es as REGULAR_NODE_CREATOR_VIEW, u as useUsersStore, en as TRIGGER_NODE_CREATOR_VIEW, ip as OPEN_AI_NODE_TYPE, io as OPEN_AI_NODE_MESSAGE_ASSISTANT_TYPE, iN as withMemo, dm as createStaticVNode, k as createTextVNode, iO as REQUEST_NODE_FORM_URL, K as useUIStore, Z as useRootStore, iP as getNodeIconUrl, iQ as getNodeIcon, iR as getNodeIconColor, em as AI_NODE_CREATOR_VIEW, e9 as AI_OTHERS_NODE_CREATOR_VIEW, J as useDebounce, dt as Transition, gy as useAssistantStore, bZ as useCredentialsStore, bk as useNodeTypesStore, iS as SlideTransition } from "./index-fCEqBD8K.js";
|
|
2
|
+
import { f as formatTriggerActionName, u as useNodeCreatorStore, a as useViewStacks, c as camelCase, b as useKeyboardNavigation, t as transformNodeType, d as flattenCreateElements, T as TriggerView, R as RegularView, A as AIView, e as AINodesView } from "./NodeViewSwitcher-D5JjSNB2.js";
|
|
3
|
+
import { d as upperFirst, b as useNodeType } from "./useRunWorkflow-BXE6bWp2.js";
|
|
4
|
+
import { u as useActions } from "./NodeCreation-Bycww9rf.js";
|
|
5
|
+
import "./FileSaver.min-BiLlhrlQ.js";
|
|
6
|
+
import "./useExecutionHelpers-BIxUwlsh.js";
|
|
7
|
+
import "./useWorkflowActivate-D8cU5eJ_.js";
|
|
8
|
+
import "./pushConnection.store-Kmly9nV5.js";
|
|
9
|
+
import "./useExecutionDebugging-Cuf88DQE.js";
|
|
10
|
+
import "./useNodeViewVersionSwitcher-Eg-dOWbq.js";
|
|
11
|
+
import "./useBugReporting-CbgIVUCL.js";
|
|
12
12
|
var startCase = createCompounder(function(result, word, index) {
|
|
13
13
|
return result + (index ? " " : "") + upperFirst(word);
|
|
14
14
|
});
|
|
@@ -19,9 +19,8 @@ function translate(...args) {
|
|
|
19
19
|
const cachedBaseText = memoize(translate, (...args) => JSON.stringify(args));
|
|
20
20
|
const customNodeActionsParsers = {
|
|
21
21
|
["n8n-nodes-base.hubspotTrigger"]: (matchedProperty, nodeTypeDescription) => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return (_c = (_b = collection == null ? void 0 : collection.values[0]) == null ? void 0 : _b.options) == null ? void 0 : _c.map(
|
|
22
|
+
const collection = matchedProperty?.options?.[0];
|
|
23
|
+
return collection?.values[0]?.options?.map(
|
|
25
24
|
(categoryItem) => ({
|
|
26
25
|
...getNodeTypeBase(nodeTypeDescription),
|
|
27
26
|
actionKey: categoryItem.value,
|
|
@@ -55,12 +54,9 @@ function getNodeTypeBase(nodeTypeDescription, label2) {
|
|
|
55
54
|
function operationsCategory(nodeTypeDescription) {
|
|
56
55
|
if (!!nodeTypeDescription.properties.find((property) => property.name === "resource")) return [];
|
|
57
56
|
const matchedProperty = nodeTypeDescription.properties.find(
|
|
58
|
-
(property) =>
|
|
59
|
-
var _a;
|
|
60
|
-
return ((_a = property.name) == null ? void 0 : _a.toLowerCase()) === "operation";
|
|
61
|
-
}
|
|
57
|
+
(property) => property.name?.toLowerCase() === "operation"
|
|
62
58
|
);
|
|
63
|
-
if (!
|
|
59
|
+
if (!matchedProperty?.options) return [];
|
|
64
60
|
const filteredOutItems = matchedProperty.options.filter(
|
|
65
61
|
(categoryItem) => !["*", "", " "].includes(categoryItem.name)
|
|
66
62
|
);
|
|
@@ -78,16 +74,12 @@ function operationsCategory(nodeTypeDescription) {
|
|
|
78
74
|
return items2;
|
|
79
75
|
}
|
|
80
76
|
function modeCategory(nodeTypeDescription) {
|
|
81
|
-
|
|
82
|
-
const isAINode = (_b = (_a = nodeTypeDescription.codex) == null ? void 0 : _a.categories) == null ? void 0 : _b.includes(AI_SUBCATEGORY);
|
|
77
|
+
const isAINode = nodeTypeDescription.codex?.categories?.includes(AI_SUBCATEGORY);
|
|
83
78
|
if (!isAINode) return [];
|
|
84
79
|
const matchedProperty = nodeTypeDescription.properties.find(
|
|
85
|
-
(property) =>
|
|
86
|
-
var _a2;
|
|
87
|
-
return ((_a2 = property.name) == null ? void 0 : _a2.toLowerCase()) === "mode";
|
|
88
|
-
}
|
|
80
|
+
(property) => property.name?.toLowerCase() === "mode"
|
|
89
81
|
);
|
|
90
|
-
if (!
|
|
82
|
+
if (!matchedProperty?.options) return [];
|
|
91
83
|
const modeOptions = matchedProperty.options;
|
|
92
84
|
const items2 = modeOptions.map((item) => ({
|
|
93
85
|
...getNodeTypeBase(nodeTypeDescription),
|
|
@@ -103,17 +95,13 @@ function modeCategory(nodeTypeDescription) {
|
|
|
103
95
|
return items2;
|
|
104
96
|
}
|
|
105
97
|
function triggersCategory(nodeTypeDescription) {
|
|
106
|
-
var _a, _b;
|
|
107
98
|
const matchingKeys = ["event", "events", "trigger on"];
|
|
108
|
-
const isTrigger =
|
|
99
|
+
const isTrigger = nodeTypeDescription.displayName?.toLowerCase().includes("trigger");
|
|
109
100
|
const matchedProperty = nodeTypeDescription.properties.find(
|
|
110
|
-
(property) =>
|
|
111
|
-
var _a2;
|
|
112
|
-
return matchingKeys.includes((_a2 = property.displayName) == null ? void 0 : _a2.toLowerCase());
|
|
113
|
-
}
|
|
101
|
+
(property) => matchingKeys.includes(property.displayName?.toLowerCase())
|
|
114
102
|
);
|
|
115
103
|
if (!isTrigger) return [];
|
|
116
|
-
if (!
|
|
104
|
+
if (!matchedProperty?.options) {
|
|
117
105
|
return [
|
|
118
106
|
{
|
|
119
107
|
...getNodeTypeBase(nodeTypeDescription),
|
|
@@ -128,8 +116,7 @@ function triggersCategory(nodeTypeDescription) {
|
|
|
128
116
|
const filteredOutItems = matchedProperty.options.filter(
|
|
129
117
|
(categoryItem) => !["*", "", " "].includes(categoryItem.name)
|
|
130
118
|
);
|
|
131
|
-
const customParsedItem =
|
|
132
|
-
customNodeActionsParsers,
|
|
119
|
+
const customParsedItem = customNodeActionsParsers[nodeTypeDescription.name]?.(
|
|
133
120
|
matchedProperty,
|
|
134
121
|
nodeTypeDescription
|
|
135
122
|
);
|
|
@@ -150,41 +137,36 @@ function triggersCategory(nodeTypeDescription) {
|
|
|
150
137
|
function resourceCategories(nodeTypeDescription) {
|
|
151
138
|
const transformedNodes = [];
|
|
152
139
|
const matchedProperties = nodeTypeDescription.properties.filter(
|
|
153
|
-
(property) =>
|
|
154
|
-
var _a;
|
|
155
|
-
return ((_a = property.displayName) == null ? void 0 : _a.toLowerCase()) === "resource";
|
|
156
|
-
}
|
|
140
|
+
(property) => property.displayName?.toLowerCase() === "resource"
|
|
157
141
|
);
|
|
158
142
|
matchedProperties.forEach((property) => {
|
|
159
143
|
(property.options || []).filter((option) => option.value !== CUSTOM_API_CALL_KEY).forEach((resourceOption, _i, options) => {
|
|
160
144
|
const isSingleResource = options.length === 1;
|
|
161
145
|
const operations = nodeTypeDescription.properties.find((operation) => {
|
|
162
|
-
var _a, _b, _c, _d, _e;
|
|
163
146
|
const isOperation = operation.name === "operation";
|
|
164
|
-
const isMatchingResource =
|
|
165
|
-
const operationVersions =
|
|
147
|
+
const isMatchingResource = operation.displayOptions?.show?.resource?.includes(resourceOption.value) ?? isSingleResource;
|
|
148
|
+
const operationVersions = operation.displayOptions?.show?.["@version"];
|
|
166
149
|
const nodeTypeVersions = Array.isArray(nodeTypeDescription.version) ? nodeTypeDescription.version : [nodeTypeDescription.version];
|
|
167
150
|
const isMatchingVersion = operationVersions ? operationVersions.some(
|
|
168
151
|
(version) => typeof version === "number" && nodeTypeVersions.includes(version)
|
|
169
152
|
) : true;
|
|
170
153
|
return isOperation && isMatchingResource && isMatchingVersion;
|
|
171
154
|
});
|
|
172
|
-
if (!
|
|
155
|
+
if (!operations?.options) return;
|
|
173
156
|
const items2 = (operations.options || []).map(
|
|
174
157
|
(operationOption) => {
|
|
175
|
-
var _a;
|
|
176
158
|
const displayName = operationOption.action ?? `${resourceOption.name} ${startCase(operationOption.name)}`;
|
|
177
|
-
const displayOptions = isSingleResource ? { show: { resource: [
|
|
159
|
+
const displayOptions = isSingleResource ? { show: { resource: [options[0]?.value] } } : operations?.displayOptions;
|
|
178
160
|
return {
|
|
179
161
|
...getNodeTypeBase(
|
|
180
162
|
nodeTypeDescription,
|
|
181
163
|
`${resourceOption.name} ${cachedBaseText("nodeCreator.actionsCategory.actions")}`
|
|
182
164
|
),
|
|
183
165
|
actionKey: operationOption.value,
|
|
184
|
-
description:
|
|
166
|
+
description: operationOption?.description ?? "",
|
|
185
167
|
displayOptions,
|
|
186
168
|
values: {
|
|
187
|
-
operation:
|
|
169
|
+
operation: operations?.type === "multiOptions" ? [operationOption.value] : operationOption.value
|
|
188
170
|
},
|
|
189
171
|
displayName,
|
|
190
172
|
group: ["trigger"]
|
|
@@ -198,9 +180,8 @@ function resourceCategories(nodeTypeDescription) {
|
|
|
198
180
|
}
|
|
199
181
|
function useActionsGenerator() {
|
|
200
182
|
function generateNodeActions(node) {
|
|
201
|
-
var _a, _b, _c;
|
|
202
183
|
if (!node) return [];
|
|
203
|
-
if (
|
|
184
|
+
if (node.codex?.subcategories?.AI?.includes("Tools")) return [];
|
|
204
185
|
return [
|
|
205
186
|
...triggersCategory(node),
|
|
206
187
|
...operationsCategory(node),
|
|
@@ -270,9 +251,9 @@ function useActionsGenerator() {
|
|
|
270
251
|
visibleNodeTypes.filter((node) => node.group.includes("trigger")).forEach((trigger) => {
|
|
271
252
|
const normalizedName = trigger.name.replace("Trigger", "");
|
|
272
253
|
const triggerActions = generateNodeActions(trigger);
|
|
273
|
-
const appActions =
|
|
254
|
+
const appActions = actions?.[normalizedName] || [];
|
|
274
255
|
const app = mergedNodes.find((node) => node.name === normalizedName);
|
|
275
|
-
if (app &&
|
|
256
|
+
if (app && appActions?.length > 0) {
|
|
276
257
|
const mergedActions = filterActions([...appActions, ...triggerActions]);
|
|
277
258
|
actions[normalizedName] = mergedActions;
|
|
278
259
|
app.description = trigger.description;
|
|
@@ -305,8 +286,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
305
286
|
});
|
|
306
287
|
const externalHooks = useExternalHooks();
|
|
307
288
|
function focus() {
|
|
308
|
-
|
|
309
|
-
(_a = state.inputRef) == null ? void 0 : _a.focus();
|
|
289
|
+
state.inputRef?.focus();
|
|
310
290
|
}
|
|
311
291
|
function onInput(event) {
|
|
312
292
|
const input = event.target;
|
|
@@ -320,8 +300,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
320
300
|
setTimeout(focus, 0);
|
|
321
301
|
});
|
|
322
302
|
onBeforeUnmount(() => {
|
|
323
|
-
|
|
324
|
-
(_a = state.inputRef) == null ? void 0 : _a.remove();
|
|
303
|
+
state.inputRef?.remove();
|
|
325
304
|
});
|
|
326
305
|
const { inputRef } = toRefs(state);
|
|
327
306
|
__expose({
|
|
@@ -660,10 +639,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
660
639
|
left: `${state.draggablePosition.x}px`
|
|
661
640
|
}));
|
|
662
641
|
const actionData = computed(() => getActionData(props.action));
|
|
663
|
-
const isTriggerAction = (action2) =>
|
|
664
|
-
var _a;
|
|
665
|
-
return ((_a = action2.name) == null ? void 0 : _a.toLowerCase().includes("trigger")) || action2.name === WEBHOOK_NODE_TYPE;
|
|
666
|
-
};
|
|
642
|
+
const isTriggerAction = (action2) => action2.name?.toLowerCase().includes("trigger") || action2.name === WEBHOOK_NODE_TYPE;
|
|
667
643
|
function onDragStart(event) {
|
|
668
644
|
document.body.addEventListener("dragover", onDragOver);
|
|
669
645
|
const { pageX: x, pageY: y } = event;
|
|
@@ -923,10 +899,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
923
899
|
const { registerKeyHook } = useKeyboardNavigation();
|
|
924
900
|
const { workflowId } = useWorkflowsStore();
|
|
925
901
|
const nodeCreatorStore = useNodeCreatorStore();
|
|
926
|
-
const activeItemId = computed(() =>
|
|
927
|
-
var _a;
|
|
928
|
-
return (_a = useKeyboardNavigation()) == null ? void 0 : _a.activeItemId;
|
|
929
|
-
});
|
|
902
|
+
const activeItemId = computed(() => useKeyboardNavigation()?.activeItemId);
|
|
930
903
|
const actionCount = computed(() => props.elements.filter(({ type }) => type === "action").length);
|
|
931
904
|
const expanded = ref(props.expanded ?? false);
|
|
932
905
|
function toggleExpanded() {
|
|
@@ -1072,10 +1045,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1072
1045
|
const emit = __emit;
|
|
1073
1046
|
const renderedItems2 = ref([]);
|
|
1074
1047
|
const renderAnimationRequest = ref(0);
|
|
1075
|
-
const activeItemId = computed(() =>
|
|
1076
|
-
var _a;
|
|
1077
|
-
return (_a = useKeyboardNavigation()) == null ? void 0 : _a.activeItemId;
|
|
1078
|
-
});
|
|
1048
|
+
const activeItemId = computed(() => useKeyboardNavigation()?.activeItemId);
|
|
1079
1049
|
function renderItems() {
|
|
1080
1050
|
if (props.elements.length <= LAZY_LOAD_THRESHOLD || !props.lazyRender) {
|
|
1081
1051
|
renderedItems2.value = props.elements;
|
|
@@ -1349,16 +1319,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1349
1319
|
if (activeAction) onSelected(activeAction);
|
|
1350
1320
|
}
|
|
1351
1321
|
function onSelected(actionCreateElement) {
|
|
1352
|
-
var _a, _b, _c;
|
|
1353
1322
|
if (actionCreateElement.type !== "action") return;
|
|
1354
1323
|
const actionData = getActionData(actionCreateElement.properties);
|
|
1355
1324
|
const isPlaceholderTriggerAction = placeholderTriggerActions.some(
|
|
1356
1325
|
(p) => p.key === actionCreateElement.key
|
|
1357
1326
|
);
|
|
1358
1327
|
if (isPlaceholderTriggerAction && isTriggerRootView.value) {
|
|
1359
|
-
const actionNode =
|
|
1328
|
+
const actionNode = actions.value[0]?.key;
|
|
1360
1329
|
if (actionNode) emit("nodeTypeSelected", [actionData.key, actionNode]);
|
|
1361
|
-
} else if (
|
|
1330
|
+
} else if (actionData?.key === OPEN_AI_NODE_TYPE && actionData?.value?.resource === "assistant" && actionData?.value?.operation === "message") {
|
|
1362
1331
|
emit("nodeTypeSelected", [OPEN_AI_NODE_MESSAGE_ASSISTANT_TYPE]);
|
|
1363
1332
|
} else {
|
|
1364
1333
|
emit("nodeTypeSelected", [actionData.key]);
|
|
@@ -1366,18 +1335,17 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1366
1335
|
if (telemetry) setAddedNodeActionParameters(actionData, telemetry, rootView.value);
|
|
1367
1336
|
}
|
|
1368
1337
|
function trackActionsView() {
|
|
1369
|
-
var _a, _b, _c;
|
|
1370
1338
|
const activeViewStack = useViewStacks().activeViewStack;
|
|
1371
|
-
const trigger_action_count = (
|
|
1339
|
+
const trigger_action_count = (activeViewStack.baselineItems || [])?.filter(
|
|
1372
1340
|
(action2) => action2.key.toLowerCase().includes("trigger")
|
|
1373
1341
|
).length;
|
|
1374
1342
|
const appIdentifier = [...actions.value, ...placeholderTriggerActions][0].key;
|
|
1375
1343
|
const trackingPayload = {
|
|
1376
1344
|
app_identifier: appIdentifier,
|
|
1377
|
-
actions: (
|
|
1345
|
+
actions: (activeViewStack.baselineItems || [])?.map(
|
|
1378
1346
|
(action2) => action2.properties.displayName
|
|
1379
1347
|
),
|
|
1380
|
-
regular_action_count: (
|
|
1348
|
+
regular_action_count: (activeViewStack.baselineItems || [])?.length - trigger_action_count,
|
|
1381
1349
|
trigger_action_count
|
|
1382
1350
|
};
|
|
1383
1351
|
void useExternalHooks().run("nodeCreateList.onViewActions", trackingPayload);
|
|
@@ -1387,7 +1355,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1387
1355
|
updateCurrentViewStack({ search: "" });
|
|
1388
1356
|
}
|
|
1389
1357
|
function addHttpNode() {
|
|
1390
|
-
var _a;
|
|
1391
1358
|
const updateData = {
|
|
1392
1359
|
name: "",
|
|
1393
1360
|
key: HTTP_REQUEST_NODE_TYPE,
|
|
@@ -1397,7 +1364,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1397
1364
|
};
|
|
1398
1365
|
emit("nodeTypeSelected", [HTTP_REQUEST_NODE_TYPE]);
|
|
1399
1366
|
if (telemetry) setAddedNodeActionParameters(updateData);
|
|
1400
|
-
const app_identifier =
|
|
1367
|
+
const app_identifier = actions.value[0]?.key;
|
|
1401
1368
|
if (!app_identifier) return;
|
|
1402
1369
|
void useExternalHooks().run("nodeCreateList.onActionsCustmAPIClicked", {
|
|
1403
1370
|
app_identifier
|
|
@@ -1700,7 +1667,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1700
1667
|
emit("nodeTypeSelected", nodeTypes);
|
|
1701
1668
|
}
|
|
1702
1669
|
function onSelected(item) {
|
|
1703
|
-
var _a;
|
|
1704
1670
|
if (item.type === "subcategory") {
|
|
1705
1671
|
const subcategoryKey = camelCase(item.properties.title);
|
|
1706
1672
|
const title2 = i18n2.baseText(`nodeCreator.subcategoryNames.${subcategoryKey}`);
|
|
@@ -1730,14 +1696,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1730
1696
|
});
|
|
1731
1697
|
}
|
|
1732
1698
|
if (item.type === "node") {
|
|
1733
|
-
const nodeActions =
|
|
1699
|
+
const nodeActions = actions?.[item.key] || [];
|
|
1734
1700
|
if (nodeActions.length <= 1 || activeViewStack.value.hideActions) {
|
|
1735
1701
|
selectNodeType([item.key]);
|
|
1736
1702
|
return;
|
|
1737
1703
|
}
|
|
1738
1704
|
const iconUrl = getNodeIconUrl(item.properties, uiStore.appliedTheme);
|
|
1739
|
-
const icon2 = iconUrl ? rootStore.baseUrl + iconUrl :
|
|
1740
|
-
const transformedActions = nodeActions
|
|
1705
|
+
const icon2 = iconUrl ? rootStore.baseUrl + iconUrl : getNodeIcon(item.properties, uiStore.appliedTheme)?.split(":")[1];
|
|
1706
|
+
const transformedActions = nodeActions?.map(
|
|
1741
1707
|
(a) => transformNodeType(a, item.properties.displayName, "action")
|
|
1742
1708
|
);
|
|
1743
1709
|
pushViewStack({
|
|
@@ -1770,8 +1736,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1770
1736
|
const view2 = matchedView(mergedNodes);
|
|
1771
1737
|
pushViewStack({
|
|
1772
1738
|
title: view2.title,
|
|
1773
|
-
subtitle:
|
|
1774
|
-
info:
|
|
1739
|
+
subtitle: view2?.subtitle ?? "",
|
|
1740
|
+
info: view2?.info ?? "",
|
|
1775
1741
|
items: view2.items,
|
|
1776
1742
|
hasSearch: true,
|
|
1777
1743
|
rootView: view2.value,
|
|
@@ -1785,15 +1751,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1785
1751
|
}
|
|
1786
1752
|
}
|
|
1787
1753
|
function subcategoriesMapper(item) {
|
|
1788
|
-
var _a, _b;
|
|
1789
1754
|
if (item.type !== "node") return item;
|
|
1790
1755
|
const hasTriggerGroup = item.properties.group.includes("trigger");
|
|
1791
|
-
const nodeActions =
|
|
1756
|
+
const nodeActions = actions?.[item.key] || [];
|
|
1792
1757
|
const hasActions = nodeActions.length > 0;
|
|
1793
1758
|
if (hasTriggerGroup && hasActions) {
|
|
1794
|
-
if (
|
|
1759
|
+
if (item.properties?.codex) {
|
|
1795
1760
|
item.properties.codex.alias = [
|
|
1796
|
-
...
|
|
1761
|
+
...item.properties.codex?.alias || [],
|
|
1797
1762
|
item.properties.displayName
|
|
1798
1763
|
];
|
|
1799
1764
|
}
|
|
@@ -1805,7 +1770,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1805
1770
|
if (item.type === "section") return true;
|
|
1806
1771
|
if (item.type !== "node") return false;
|
|
1807
1772
|
const hasTriggerGroup = item.properties.group.includes("trigger");
|
|
1808
|
-
const nodeActions =
|
|
1773
|
+
const nodeActions = actions?.[item.key] || [];
|
|
1809
1774
|
const hasActions = nodeActions.length > 0;
|
|
1810
1775
|
const isTriggerRootView = activeViewStack.value.rootView === TRIGGER_NODE_CREATOR_VIEW;
|
|
1811
1776
|
if (isTriggerRootView) {
|
|
@@ -1949,7 +1914,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1949
1914
|
const view2 = matchedView(mergedNodes);
|
|
1950
1915
|
pushViewStack({
|
|
1951
1916
|
title: view2.title,
|
|
1952
|
-
subtitle:
|
|
1917
|
+
subtitle: view2?.subtitle ?? "",
|
|
1953
1918
|
items: view2.items,
|
|
1954
1919
|
info: view2.info,
|
|
1955
1920
|
hasSearch: true,
|
|
@@ -2114,13 +2079,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2114
2079
|
return { top: `${uiStore.bannersHeight + uiStore.headerHeight}px`, right: `${rightPosition}px` };
|
|
2115
2080
|
});
|
|
2116
2081
|
function onMouseUpOutside() {
|
|
2117
|
-
var _a;
|
|
2118
2082
|
if (state.mousedownInsideEvent) {
|
|
2119
2083
|
const clickEvent = new MouseEvent("click", {
|
|
2120
2084
|
bubbles: true,
|
|
2121
2085
|
cancelable: true
|
|
2122
2086
|
});
|
|
2123
|
-
|
|
2087
|
+
state.mousedownInsideEvent.target?.dispatchEvent(clickEvent);
|
|
2124
2088
|
state.mousedownInsideEvent = null;
|
|
2125
2089
|
unBindOnMouseUpOutside();
|
|
2126
2090
|
}
|