n8n-editor-ui 1.66.0 → 1.68.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.
Files changed (110) hide show
  1. package/dist/assets/{AuthView-31vu0x_3.js → AuthView-C7b2xzS9.js} +17 -19
  2. package/dist/assets/CanvasChat-DKeWqqZz.css +730 -0
  3. package/dist/assets/CanvasChat-QctJb8ta.js +4166 -0
  4. package/dist/assets/{CanvasControls-DkT1iClJ.js → CanvasControls-raoYims4.js} +1 -1
  5. package/dist/assets/{ChangePasswordView-DkhZAh4j.js → ChangePasswordView-BBju88Nm.js} +2 -2
  6. package/dist/assets/CollectionParameter-DNJAimAt.js +4 -0
  7. package/dist/assets/{CredentialsView-Du-lMwPW.js → CredentialsView-BfYXjOVw.js} +11 -10
  8. package/dist/assets/{ErrorView-CROJIl1H.js → ErrorView-BhPrjw7c.js} +1 -1
  9. package/dist/assets/{ExecutionsFilter-BecTg03r.css → ExecutionsTime-DVxRt-Pz.css} +6 -6
  10. package/dist/assets/{ExecutionsFilter-132FKb5o.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-Ba-at9rw.js} +43 -43
  11. package/dist/assets/{ExecutionsView-B41cgHPD.js → ExecutionsView-Dcw07XZ-.js} +26 -31
  12. package/dist/assets/{ExecutionsView-Dfy6JMwb.css → ExecutionsView-DlxsqdiC.css} +44 -38
  13. package/dist/assets/{FileSaver.min-B3lWZPMp.js → FileSaver.min-CKlTVpWB.js} +1 -1
  14. package/dist/assets/FixedCollectionParameter-CkI6mCZG.js +334 -0
  15. package/dist/assets/{FixedCollectionParameter-fI2wTyfY.css → FixedCollectionParameter-DzOGMEdq.css} +10 -10
  16. package/dist/assets/{ForgotMyPasswordView-DKrE7dUn.js → ForgotMyPasswordView--eKPrTSW.js} +4 -3
  17. package/dist/assets/{MainHeader-CW31WCmm.js → MainHeader-Btek9DoL.js} +195 -118
  18. package/dist/assets/{MainHeader-Bc5G9_Uq.css → MainHeader-DJdd17Nh.css} +36 -11
  19. package/dist/assets/{MainSidebar-cNW0UJBC.css → MainSidebar-BRYJRpOA.css} +2 -2
  20. package/dist/assets/{MainSidebar-Dny90RtO.js → MainSidebar-CRjg4yDv.js} +7 -13
  21. package/dist/assets/{NodeCreation-BqSkxffS.js → NodeCreation-CDpNw3BL.js} +14 -11
  22. package/dist/assets/{NodeCreator-CoqcSKC-.js → NodeCreator-DPpQXLHf.js} +79 -65
  23. package/dist/assets/{NodeViewSwitcher-C1Gp-jKb.js → NodeViewSwitcher-CNfOOUof.js} +2891 -2905
  24. package/dist/assets/{NodeViewSwitcher-B8VPj4Rs.css → NodeViewSwitcher-DuVIKqpm.css} +185 -184
  25. package/dist/assets/{ProjectCardBadge-kHyKG50e.js → ProjectCardBadge-DzaTsr93.js} +1 -1
  26. package/dist/assets/{ResourceListHeader-DgE1VPUF.css → ProjectHeader-09VQWBZH.css} +5 -3
  27. package/dist/assets/ProjectHeader-wdvHJxbT.js +196 -0
  28. package/dist/assets/{ProjectSettings-BohhQ-z6.js → ProjectSettings-B6j0VJK5.js} +7 -36
  29. package/dist/assets/PushConnectionTracker.vue_vue_type_script_setup_true_lang-ByoMju5L.js +39 -0
  30. package/dist/assets/ResourcesListLayout-9Vpyt6Ec.js +662 -0
  31. package/dist/assets/{ResourcesListLayout-Bw99IFlO.css → ResourcesListLayout-CuA8O7do.css} +8 -8
  32. package/dist/assets/{RunDataJson-CUsbBWaI.js → RunDataJson-sPhT7c2h.js} +12 -12
  33. package/dist/assets/{RunDataJsonActions-Bnn0o9WH.js → RunDataJsonActions-DiMvLis_.js} +128 -159
  34. package/dist/assets/{RunDataSearch-BiygytJ8.js → RunDataSearch-CF_rpBKx.js} +2 -2
  35. package/dist/assets/RunDataTable-T52TXUHR.js +564 -0
  36. package/dist/assets/{SamlOnboarding-BXYS2fQg.js → SamlOnboarding-BCn53xtf.js} +2 -2
  37. package/dist/assets/SettingsApiView-DumvK072.js +227 -0
  38. package/dist/assets/{SettingsCommunityNodesView-BjakfOB1.js → SettingsCommunityNodesView-Db787Jar.js} +185 -195
  39. package/dist/assets/{SettingsExternalSecrets-BGIt9OQy.js → SettingsExternalSecrets-DKB2o2Dq.js} +3 -3
  40. package/dist/assets/{SettingsLdapView-DBY4YyYE.js → SettingsLdapView-BoKoCT5V.js} +3 -3
  41. package/dist/assets/SettingsLogStreamingView-BGX39Unz.js +500 -0
  42. package/dist/assets/{SettingsPersonalView-CgzznKXi.js → SettingsPersonalView-fTCeSJfu.js} +1 -1
  43. package/dist/assets/{SettingsSourceControl-DNWFyNrX.js → SettingsSourceControl-_G83P363.js} +3 -3
  44. package/dist/assets/{SettingsSso-B8oke872.js → SettingsSso-Bn48qAiX.js} +3 -3
  45. package/dist/assets/{SettingsUsageAndPlan-BUUYApK_.js → SettingsUsageAndPlan-DZkS0RP4.js} +4 -3
  46. package/dist/assets/{SettingsUsageAndPlan-P6SS2mWq.css → SettingsUsageAndPlan-vijI-va0.css} +3 -3
  47. package/dist/assets/{SettingsUsersView-DyuP8V6k.js → SettingsUsersView-BUh2iKEW.js} +4 -3
  48. package/dist/assets/{SettingsView-CD83Adan.js → SettingsView-D_S4x7XG.js} +2 -30
  49. package/dist/assets/{SetupView-C8XYMj2N.js → SetupView-BenKVU0l.js} +2 -2
  50. package/dist/assets/{SetupWorkflowCredentialsButton-u1qhjj5K.js → SetupWorkflowCredentialsButton-DKr9ZPLE.js} +1 -1
  51. package/dist/assets/{SetupWorkflowFromTemplateView-DdxqCGcl.js → SetupWorkflowFromTemplateView-Ce1R_CDh.js} +3 -3
  52. package/dist/assets/{SigninView-CGQ20O_c.js → SigninView-xl5aJqka.js} +4 -3
  53. package/dist/assets/{SignoutView-BZwBBglt.js → SignoutView-Bscz6u1Y.js} +1 -1
  54. package/dist/assets/{SignupView-BCT6dhhZ.js → SignupView-CZN8EhJV.js} +4 -3
  55. package/dist/assets/TemplateDetails-BAQ3vBNJ.js +179 -0
  56. package/dist/assets/TemplateList-DD7sqnpI.js +371 -0
  57. package/dist/assets/{TemplatesCollectionView-BxBSljqH.js → TemplatesCollectionView-CG3ZoY8i.js} +10 -10
  58. package/dist/assets/{TemplatesSearchView-kFcPH-ZH.js → TemplatesSearchView-22jrqI8X.js} +530 -577
  59. package/dist/assets/{TemplatesView-TPTpSdeD.js → TemplatesView-BZFc4hZ1.js} +32 -37
  60. package/dist/assets/{TemplatesWorkflowView-8NdGLWj7.js → TemplatesWorkflowView-DkXtdhUJ.js} +5 -5
  61. package/dist/assets/{VariablesView-CHXdt5-z.css → VariablesView-BPKo50HJ.css} +18 -18
  62. package/dist/assets/{VariablesView-C1NxBxBQ.js → VariablesView-DHu4ZoMN.js} +5 -5
  63. package/dist/assets/WorkerView-BfxdQiAc.js +148 -0
  64. package/dist/assets/WorkerView-Dm0b18Mh.css +22 -0
  65. package/dist/assets/{WorkflowActivator-CalsATsI.js → WorkflowActivator-CvdQVEtW.js} +2 -2
  66. package/dist/assets/{WorkflowExecutionsInfoAccordion-rUnvuY-5.js → WorkflowExecutionsInfoAccordion-D2GFnpq1.js} +1 -1
  67. package/dist/assets/{WorkflowExecutionsLandingPage-C4K7kfqv.js → WorkflowExecutionsLandingPage-D2bvAsxg.js} +2 -2
  68. package/dist/assets/{WorkflowExecutionsPreview-BO31AO7v.js → WorkflowExecutionsPreview-D6WBsbAG.js} +5 -5
  69. package/dist/assets/{WorkflowExecutionsView-B8x2-iOd.css → WorkflowExecutionsView-CZKkPKqJ.css} +9 -1
  70. package/dist/assets/{WorkflowExecutionsView-B-5zbx_n.js → WorkflowExecutionsView-DI6r5OvZ.js} +6 -6
  71. package/dist/assets/{WorkflowHistory-uvlFDwTJ.js → WorkflowHistory-Dc1f2Tsn.js} +5 -4
  72. package/dist/assets/{WorkflowOnboardingView-B869wGVb.js → WorkflowOnboardingView-DyxvWfZ7.js} +1 -1
  73. package/dist/assets/{WorkflowPreview-BlzWpiO1.js → WorkflowPreview-hC6wSe-Y.js} +1 -1
  74. package/dist/assets/{WorkflowsView-IdgMnIZY.js → WorkflowsView-SIDgO47b.js} +10 -10
  75. package/dist/assets/buttons.esm-BOkmSohe.js +477 -0
  76. package/dist/assets/{dateFormatter-BCrxaIdG.js → dateFormatter-BRi2wSZ-.js} +1 -1
  77. package/dist/assets/{index-QAq8Sa9R.js → index-40I5DMGP.js} +196843 -202970
  78. package/dist/assets/{index-DaeOVPzE.css → index-Dr3zFZlC.css} +136 -594
  79. package/dist/assets/{pushConnection.store-Cdssd0uJ.js → pushConnection.store-w_WxpOeH.js} +1 -1
  80. package/dist/assets/{templateActions-ClPy1BRa.js → templateActions-D4EHdA9n.js} +1 -1
  81. package/dist/assets/{useBugReporting-Bvr7bSQt.js → useBugReporting-CFOQlQpP.js} +1 -1
  82. package/dist/assets/{useExecutionDebugging-CwyVwJqO.js → useExecutionDebugging-LQQWXhPj.js} +3 -2
  83. package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-CYMqjryg.js → useExecutionHelpers-CXGl_HIp.js} +55 -55
  84. package/dist/assets/{useNodeViewVersionSwitcher-BPNKvsXw.js → useNodeViewVersionSwitcher-BLo5Qp-N.js} +1 -1
  85. package/dist/assets/{usePushConnection-DDXmzoG8.js → usePushConnection-B5ija5f5.js} +9 -10
  86. package/dist/assets/{RunDataAi-x30tU8-0.css → useRunWorkflow-DH7ZzA8t.css} +97 -57
  87. package/dist/assets/useRunWorkflow-MrEKURG4.js +3710 -0
  88. package/dist/assets/{useWorkflowActivate-DKPQP7qy.js → useWorkflowActivate-CKedJlgZ.js} +1 -1
  89. package/dist/index.html +3 -2
  90. package/index.html +1 -0
  91. package/package.json +1 -1
  92. package/vite.config.mts +1 -17
  93. package/dist/assets/CollectionParameter-BDKfoIMJ.js +0 -4
  94. package/dist/assets/FixedCollectionParameter-DXh-j7zB.js +0 -355
  95. package/dist/assets/ProjectTabs-D-87NPFl.js +0 -88
  96. package/dist/assets/ProjectTabs-DjoIePoM.css +0 -3
  97. package/dist/assets/PushConnectionTracker-Bhnghrmf.js +0 -38
  98. package/dist/assets/ResourceListHeader-Bs6GLg32.js +0 -66
  99. package/dist/assets/ResourcesListLayout-ByBNP70B.js +0 -800
  100. package/dist/assets/RunDataAi-CYTNyRq_.js +0 -1539
  101. package/dist/assets/RunDataTable--RIqj8DU.js +0 -608
  102. package/dist/assets/SettingsApiView-DoibCiLo.js +0 -255
  103. package/dist/assets/SettingsFakeDoorView-DpKZ4qWG.css +0 -14
  104. package/dist/assets/SettingsFakeDoorView-DwXDXgon.js +0 -44
  105. package/dist/assets/SettingsLogStreamingView-DHQWns6I.js +0 -519
  106. package/dist/assets/TemplateDetails-BsLVCpdi.js +0 -199
  107. package/dist/assets/TemplateList-Bn7ePHhc.js +0 -433
  108. package/dist/assets/WorkerView-Bj1cvzLg.js +0 -825
  109. package/dist/assets/WorkerView-C_d54L0W.css +0 -181
  110. package/dist/assets/cloud-B6bxVT9F.js +0 -37
@@ -0,0 +1,227 @@
1
+ import { d as defineComponent, m as useSettingsStore, aD as useCloudPlanStore, Z as useRootStore, a as useToast, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, r as ref, p as computed, o as onMounted, iq as DOCS_DOMAIN, c as openBlock, h as createElementBlock, j as createBaseVNode, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, A as unref, n as normalizeClass, eT as CopyInput, e as createBlock, f as createCommentVNode, g as useI18n, ae as MODAL_CONFIRM, l as resolveComponent, al as useMessage, ak as useTelemetry, _ as _export_sfc } from "./index-40I5DMGP.js";
2
+ const _hoisted_1 = { style: { fontSize: "var(--font-size-s)", color: "var(--color-text-light)" } };
3
+ const _hoisted_2 = { key: 0 };
4
+ const _hoisted_3 = { class: "mb-s" };
5
+ const _hoisted_4 = ["textContent"];
6
+ const _hoisted_5 = ["textContent"];
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "SettingsApiView",
9
+ setup(__props) {
10
+ const settingsStore = useSettingsStore();
11
+ const cloudPlanStore = useCloudPlanStore();
12
+ const { baseUrl } = useRootStore();
13
+ const { showError, showMessage } = useToast();
14
+ const { confirm } = useMessage();
15
+ const documentTitle = useDocumentTitle();
16
+ const i18n = useI18n();
17
+ const { goToUpgrade } = usePageRedirectionHelper();
18
+ const telemetry = useTelemetry();
19
+ const loading = ref(false);
20
+ const mounted = ref(false);
21
+ const apiKeys = ref([]);
22
+ const apiDocsURL = ref("");
23
+ const { isPublicApiEnabled, isSwaggerUIEnabled, publicApiPath, publicApiLatestVersion } = settingsStore;
24
+ const isRedactedApiKey = computed(() => {
25
+ if (!apiKeys.value) return false;
26
+ return apiKeys.value[0].apiKey.includes("*");
27
+ });
28
+ onMounted(() => {
29
+ documentTitle.set(i18n.baseText("settings.api"));
30
+ if (!isPublicApiEnabled) return;
31
+ void getApiKeys();
32
+ apiDocsURL.value = isSwaggerUIEnabled ? `${baseUrl}${publicApiPath}/v${publicApiLatestVersion}/docs` : `https://${DOCS_DOMAIN}/api/api-reference/`;
33
+ });
34
+ function onUpgrade() {
35
+ void goToUpgrade("settings-n8n-api", "upgrade-api", "redirect");
36
+ }
37
+ async function showDeleteModal() {
38
+ const confirmed = await confirm(
39
+ i18n.baseText("settings.api.delete.description"),
40
+ i18n.baseText("settings.api.delete.title"),
41
+ {
42
+ confirmButtonText: i18n.baseText("settings.api.delete.button"),
43
+ cancelButtonText: i18n.baseText("generic.cancel")
44
+ }
45
+ );
46
+ if (confirmed === MODAL_CONFIRM) {
47
+ await deleteApiKey();
48
+ }
49
+ }
50
+ async function getApiKeys() {
51
+ try {
52
+ apiKeys.value = await settingsStore.getApiKeys();
53
+ } catch (error) {
54
+ showError(error, i18n.baseText("settings.api.view.error"));
55
+ } finally {
56
+ mounted.value = true;
57
+ }
58
+ }
59
+ async function createApiKey() {
60
+ loading.value = true;
61
+ try {
62
+ const newApiKey = await settingsStore.createApiKey();
63
+ apiKeys.value.push(newApiKey);
64
+ } catch (error) {
65
+ showError(error, i18n.baseText("settings.api.create.error"));
66
+ } finally {
67
+ loading.value = false;
68
+ telemetry.track("User clicked create API key button");
69
+ }
70
+ }
71
+ async function deleteApiKey() {
72
+ try {
73
+ await settingsStore.deleteApiKey(apiKeys.value[0].id);
74
+ showMessage({
75
+ title: i18n.baseText("settings.api.delete.toast"),
76
+ type: "success"
77
+ });
78
+ apiKeys.value = [];
79
+ } catch (error) {
80
+ showError(error, i18n.baseText("settings.api.delete.error"));
81
+ } finally {
82
+ telemetry.track("User clicked delete API key button");
83
+ }
84
+ }
85
+ function onCopy() {
86
+ telemetry.track("User clicked copy API key button");
87
+ }
88
+ return (_ctx, _cache) => {
89
+ const _component_n8n_heading = resolveComponent("n8n-heading");
90
+ const _component_i18n_t = resolveComponent("i18n-t");
91
+ const _component_n8n_info_tip = resolveComponent("n8n-info-tip");
92
+ const _component_n8n_link = resolveComponent("n8n-link");
93
+ const _component_n8n_card = resolveComponent("n8n-card");
94
+ const _component_n8n_text = resolveComponent("n8n-text");
95
+ const _component_n8n_action_box = resolveComponent("n8n-action-box");
96
+ return openBlock(), createElementBlock("div", {
97
+ class: normalizeClass(_ctx.$style.container)
98
+ }, [
99
+ createBaseVNode("div", {
100
+ class: normalizeClass(_ctx.$style.header)
101
+ }, [
102
+ createVNode(_component_n8n_heading, { size: "2xlarge" }, {
103
+ default: withCtx(() => [
104
+ createTextVNode(toDisplayString(unref(i18n).baseText("settings.api")) + " ", 1),
105
+ createBaseVNode("span", _hoisted_1, " (" + toDisplayString(unref(i18n).baseText("generic.beta")) + ") ", 1)
106
+ ]),
107
+ _: 1
108
+ })
109
+ ], 2),
110
+ apiKeys.value.length ? (openBlock(), createElementBlock("div", _hoisted_2, [
111
+ createBaseVNode("p", _hoisted_3, [
112
+ createVNode(_component_n8n_info_tip, { bold: false }, {
113
+ default: withCtx(() => [
114
+ createVNode(_component_i18n_t, {
115
+ keypath: "settings.api.view.info",
116
+ tag: "span"
117
+ }, {
118
+ apiAction: withCtx(() => [
119
+ createBaseVNode("a", {
120
+ href: "https://docs.n8n.io/api",
121
+ target: "_blank",
122
+ textContent: toDisplayString(unref(i18n).baseText("settings.api.view.info.api"))
123
+ }, null, 8, _hoisted_4)
124
+ ]),
125
+ webhookAction: withCtx(() => [
126
+ createBaseVNode("a", {
127
+ href: "https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.webhook/",
128
+ target: "_blank",
129
+ textContent: toDisplayString(unref(i18n).baseText("settings.api.view.info.webhook"))
130
+ }, null, 8, _hoisted_5)
131
+ ]),
132
+ _: 1
133
+ })
134
+ ]),
135
+ _: 1
136
+ })
137
+ ]),
138
+ createVNode(_component_n8n_card, {
139
+ class: normalizeClass(["mb-4xs", _ctx.$style.card])
140
+ }, {
141
+ default: withCtx(() => [
142
+ createBaseVNode("span", {
143
+ class: normalizeClass(_ctx.$style.delete)
144
+ }, [
145
+ createVNode(_component_n8n_link, {
146
+ bold: true,
147
+ onClick: showDeleteModal
148
+ }, {
149
+ default: withCtx(() => [
150
+ createTextVNode(toDisplayString(unref(i18n).baseText("generic.delete")), 1)
151
+ ]),
152
+ _: 1
153
+ })
154
+ ], 2),
155
+ createBaseVNode("div", null, [
156
+ createVNode(CopyInput, {
157
+ label: apiKeys.value[0].label,
158
+ value: apiKeys.value[0].apiKey,
159
+ "copy-button-text": unref(i18n).baseText("generic.clickToCopy"),
160
+ "toast-title": unref(i18n).baseText("settings.api.view.copy.toast"),
161
+ "redact-value": true,
162
+ "disable-copy": isRedactedApiKey.value,
163
+ hint: !isRedactedApiKey.value ? unref(i18n).baseText("settings.api.view.copy") : "",
164
+ onCopy
165
+ }, null, 8, ["label", "value", "copy-button-text", "toast-title", "disable-copy", "hint"])
166
+ ])
167
+ ]),
168
+ _: 1
169
+ }, 8, ["class"]),
170
+ createBaseVNode("div", {
171
+ class: normalizeClass(_ctx.$style.hint)
172
+ }, [
173
+ createVNode(_component_n8n_text, { size: "small" }, {
174
+ default: withCtx(() => [
175
+ createTextVNode(toDisplayString(unref(i18n).baseText(`settings.api.view.${unref(isSwaggerUIEnabled) ? "tryapi" : "more-details"}`)), 1)
176
+ ]),
177
+ _: 1
178
+ }),
179
+ _cache[0] || (_cache[0] = createTextVNode(" " + toDisplayString(" ") + " ")),
180
+ createVNode(_component_n8n_link, {
181
+ to: apiDocsURL.value,
182
+ "new-window": true,
183
+ size: "small"
184
+ }, {
185
+ default: withCtx(() => [
186
+ createTextVNode(toDisplayString(unref(i18n).baseText(
187
+ `settings.api.view.${unref(isSwaggerUIEnabled) ? "apiPlayground" : "external-docs"}`
188
+ )), 1)
189
+ ]),
190
+ _: 1
191
+ }, 8, ["to"])
192
+ ], 2)
193
+ ])) : !unref(isPublicApiEnabled) && unref(cloudPlanStore).userIsTrialing ? (openBlock(), createBlock(_component_n8n_action_box, {
194
+ key: 1,
195
+ "data-test-id": "public-api-upgrade-cta",
196
+ heading: unref(i18n).baseText("settings.api.trial.upgradePlan.title"),
197
+ description: unref(i18n).baseText("settings.api.trial.upgradePlan.description"),
198
+ "button-text": unref(i18n).baseText("settings.api.trial.upgradePlan.cta"),
199
+ "onClick:button": onUpgrade
200
+ }, null, 8, ["heading", "description", "button-text"])) : mounted.value && !unref(cloudPlanStore).state.loadingPlan ? (openBlock(), createBlock(_component_n8n_action_box, {
201
+ key: 2,
202
+ "button-text": unref(i18n).baseText(loading.value ? "settings.api.create.button.loading" : "settings.api.create.button"),
203
+ description: unref(i18n).baseText("settings.api.create.description"),
204
+ "onClick:button": createApiKey
205
+ }, null, 8, ["button-text", "description"])) : createCommentVNode("", true)
206
+ ], 2);
207
+ };
208
+ }
209
+ });
210
+ const container = "_container_1xc1f_1";
211
+ const header = "_header_1xc1f_5";
212
+ const card = "_card_1xc1f_14";
213
+ const hint = "_hint_1xc1f_25";
214
+ const style0 = {
215
+ container,
216
+ header,
217
+ card,
218
+ "delete": "_delete_1xc1f_18",
219
+ hint
220
+ };
221
+ const cssModules = {
222
+ "$style": style0
223
+ };
224
+ const SettingsApiView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
225
+ export {
226
+ SettingsApiView as default
227
+ };
@@ -1,57 +1,197 @@
1
- import { d as defineComponent, hJ as COMMUNITY_PACKAGE_MANAGE_ACTIONS, e0 as mapStores, K as useUIStore, d5 as NPM_PACKAGE_DOCS_BASE_URL, _ as _export_sfc, c as openBlock, h as createElementBlock, n as normalizeClass, i as createVNode, j as createBaseVNode, w as withCtx, k as createTextVNode, t as toDisplayString, F as Fragment, z as renderList, f as createCommentVNode, e as createBlock, l as resolveComponent, r as ref, b as useRouter, a as useToast, a3 as useDocumentTitle, hK as useCommunityNodesStore, p as computed, aq as onBeforeMount, o as onMounted, y as onBeforeUnmount, A as unref, g as useI18n, aj as useTelemetry, hL as COMMUNITY_PACKAGE_INSTALL_MODAL_KEY, aF as useExternalHooks, d7 as COMMUNITY_NODES_INSTALLATION_DOCS_URL } from "./index-QAq8Sa9R.js";
2
- import { u as usePushConnection } from "./usePushConnection-DDXmzoG8.js";
3
- import { u as usePushConnectionStore } from "./pushConnection.store-Cdssd0uJ.js";
4
- const _sfc_main$1 = defineComponent({
5
- name: "CommunityPackageCard",
1
+ import { d as defineComponent, K as useUIStore, im as COMMUNITY_PACKAGE_MANAGE_ACTIONS, c as openBlock, h as createElementBlock, n as normalizeClass, i as createVNode, j as createBaseVNode, w as withCtx, k as createTextVNode, t as toDisplayString, A as unref, F as Fragment, z as renderList, f as createCommentVNode, e as createBlock, g as useI18n, du as NPM_PACKAGE_DOCS_BASE_URL, l as resolveComponent, ak as useTelemetry, _ as _export_sfc, r as ref, b as useRouter, a as useToast, a3 as useDocumentTitle, io as useCommunityNodesStore, p as computed, av as onBeforeMount, o as onMounted, v as onBeforeUnmount, ip as COMMUNITY_PACKAGE_INSTALL_MODAL_KEY, aK as useExternalHooks, dw as COMMUNITY_NODES_INSTALLATION_DOCS_URL } from "./index-40I5DMGP.js";
2
+ import { u as usePushConnection } from "./usePushConnection-B5ija5f5.js";
3
+ import { u as usePushConnectionStore } from "./pushConnection.store-w_WxpOeH.js";
4
+ const _hoisted_1 = { key: 0 };
5
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
6
+ __name: "CommunityPackageCard",
6
7
  props: {
7
- communityPackage: {
8
- type: Object,
9
- required: false,
10
- default: null
11
- },
12
- loading: {
13
- type: Boolean,
14
- default: false
15
- }
16
- },
17
- data() {
18
- return {
19
- packageActions: [
20
- {
21
- label: this.$locale.baseText("settings.communityNodes.viewDocsAction.label"),
22
- value: COMMUNITY_PACKAGE_MANAGE_ACTIONS.VIEW_DOCS,
23
- type: "external-link"
24
- },
25
- {
26
- label: this.$locale.baseText("settings.communityNodes.uninstallAction.label"),
27
- value: COMMUNITY_PACKAGE_MANAGE_ACTIONS.UNINSTALL
28
- }
29
- ]
30
- };
31
- },
32
- computed: {
33
- ...mapStores(useUIStore)
8
+ communityPackage: { default: null },
9
+ loading: { type: Boolean, default: false }
34
10
  },
35
- methods: {
36
- async onAction(value) {
37
- if (!this.communityPackage) return;
11
+ setup(__props) {
12
+ const props = __props;
13
+ const { openCommunityPackageUpdateConfirmModal, openCommunityPackageUninstallConfirmModal } = useUIStore();
14
+ const i18n = useI18n();
15
+ const telemetry = useTelemetry();
16
+ const packageActions = [
17
+ {
18
+ label: i18n.baseText("settings.communityNodes.viewDocsAction.label"),
19
+ value: COMMUNITY_PACKAGE_MANAGE_ACTIONS.VIEW_DOCS,
20
+ type: "external-link"
21
+ },
22
+ {
23
+ label: i18n.baseText("settings.communityNodes.uninstallAction.label"),
24
+ value: COMMUNITY_PACKAGE_MANAGE_ACTIONS.UNINSTALL
25
+ }
26
+ ];
27
+ async function onAction(value) {
28
+ if (!props.communityPackage) return;
38
29
  switch (value) {
39
30
  case COMMUNITY_PACKAGE_MANAGE_ACTIONS.VIEW_DOCS:
40
- this.$telemetry.track("user clicked to browse the cnr package documentation", {
41
- package_name: this.communityPackage.packageName,
42
- package_version: this.communityPackage.installedVersion
31
+ telemetry.track("user clicked to browse the cnr package documentation", {
32
+ package_name: props.communityPackage.packageName,
33
+ package_version: props.communityPackage.installedVersion
43
34
  });
44
- window.open(`${NPM_PACKAGE_DOCS_BASE_URL}${this.communityPackage.packageName}`, "_blank");
35
+ window.open(`${NPM_PACKAGE_DOCS_BASE_URL}${props.communityPackage.packageName}`, "_blank");
45
36
  break;
46
37
  case COMMUNITY_PACKAGE_MANAGE_ACTIONS.UNINSTALL:
47
- this.uiStore.openCommunityPackageUninstallConfirmModal(this.communityPackage.packageName);
38
+ openCommunityPackageUninstallConfirmModal(props.communityPackage.packageName);
48
39
  break;
49
40
  }
50
- },
51
- onUpdateClick() {
52
- if (!this.communityPackage) return;
53
- this.uiStore.openCommunityPackageUpdateConfirmModal(this.communityPackage.packageName);
54
41
  }
42
+ function onUpdateClick() {
43
+ if (!props.communityPackage) return;
44
+ openCommunityPackageUpdateConfirmModal(props.communityPackage.packageName);
45
+ }
46
+ return (_ctx, _cache) => {
47
+ const _component_n8n_loading = resolveComponent("n8n-loading");
48
+ const _component_n8n_text = resolveComponent("n8n-text");
49
+ const _component_n8n_icon = resolveComponent("n8n-icon");
50
+ const _component_n8n_tooltip = resolveComponent("n8n-tooltip");
51
+ const _component_n8n_button = resolveComponent("n8n-button");
52
+ const _component_n8n_action_toggle = resolveComponent("n8n-action-toggle");
53
+ return openBlock(), createElementBlock("div", {
54
+ class: normalizeClass(_ctx.$style.cardContainer),
55
+ "data-test-id": "community-package-card"
56
+ }, [
57
+ _ctx.loading ? (openBlock(), createElementBlock("div", {
58
+ key: 0,
59
+ class: normalizeClass(_ctx.$style.cardSkeleton)
60
+ }, [
61
+ createVNode(_component_n8n_loading, {
62
+ class: normalizeClass(_ctx.$style.loader),
63
+ variant: "p",
64
+ rows: 1
65
+ }, null, 8, ["class"]),
66
+ createVNode(_component_n8n_loading, {
67
+ class: normalizeClass(_ctx.$style.loader),
68
+ variant: "p",
69
+ rows: 1
70
+ }, null, 8, ["class"])
71
+ ], 2)) : _ctx.communityPackage ? (openBlock(), createElementBlock("div", {
72
+ key: 1,
73
+ class: normalizeClass(_ctx.$style.packageCard)
74
+ }, [
75
+ createBaseVNode("div", {
76
+ class: normalizeClass(_ctx.$style.cardInfoContainer)
77
+ }, [
78
+ createBaseVNode("div", {
79
+ class: normalizeClass(_ctx.$style.cardTitle)
80
+ }, [
81
+ createVNode(_component_n8n_text, {
82
+ bold: true,
83
+ size: "large"
84
+ }, {
85
+ default: withCtx(() => [
86
+ createTextVNode(toDisplayString(_ctx.communityPackage.packageName), 1)
87
+ ]),
88
+ _: 1
89
+ })
90
+ ], 2),
91
+ createBaseVNode("div", {
92
+ class: normalizeClass(_ctx.$style.cardSubtitle)
93
+ }, [
94
+ createVNode(_component_n8n_text, {
95
+ bold: true,
96
+ size: "small",
97
+ color: "text-light"
98
+ }, {
99
+ default: withCtx(() => [
100
+ createTextVNode(toDisplayString(unref(i18n).baseText("settings.communityNodes.packageNodes.label", {
101
+ adjustToNumber: _ctx.communityPackage.installedNodes.length
102
+ })) + ":  ", 1)
103
+ ]),
104
+ _: 1
105
+ }),
106
+ createVNode(_component_n8n_text, {
107
+ size: "small",
108
+ color: "text-light"
109
+ }, {
110
+ default: withCtx(() => [
111
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.communityPackage.installedNodes, (node, index) => {
112
+ return openBlock(), createElementBlock("span", {
113
+ key: node.name
114
+ }, [
115
+ createTextVNode(toDisplayString(node.name), 1),
116
+ index != _ctx.communityPackage.installedNodes.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_1, ",")) : createCommentVNode("", true)
117
+ ]);
118
+ }), 128))
119
+ ]),
120
+ _: 1
121
+ })
122
+ ], 2)
123
+ ], 2),
124
+ createBaseVNode("div", {
125
+ class: normalizeClass(_ctx.$style.cardControlsContainer)
126
+ }, [
127
+ createVNode(_component_n8n_text, {
128
+ bold: true,
129
+ size: "large",
130
+ color: "text-light"
131
+ }, {
132
+ default: withCtx(() => [
133
+ createTextVNode(" v" + toDisplayString(_ctx.communityPackage.installedVersion), 1)
134
+ ]),
135
+ _: 1
136
+ }),
137
+ _ctx.communityPackage.failedLoading === true ? (openBlock(), createBlock(_component_n8n_tooltip, {
138
+ key: 0,
139
+ placement: "top"
140
+ }, {
141
+ content: withCtx(() => [
142
+ createBaseVNode("div", null, toDisplayString(unref(i18n).baseText("settings.communityNodes.failedToLoad.tooltip")), 1)
143
+ ]),
144
+ default: withCtx(() => [
145
+ createVNode(_component_n8n_icon, {
146
+ icon: "exclamation-triangle",
147
+ color: "danger",
148
+ size: "large"
149
+ })
150
+ ]),
151
+ _: 1
152
+ })) : _ctx.communityPackage.updateAvailable ? (openBlock(), createBlock(_component_n8n_tooltip, {
153
+ key: 1,
154
+ placement: "top"
155
+ }, {
156
+ content: withCtx(() => [
157
+ createBaseVNode("div", null, toDisplayString(unref(i18n).baseText("settings.communityNodes.updateAvailable.tooltip")), 1)
158
+ ]),
159
+ default: withCtx(() => [
160
+ createVNode(_component_n8n_button, {
161
+ outline: "",
162
+ label: "Update",
163
+ onClick: onUpdateClick
164
+ })
165
+ ]),
166
+ _: 1
167
+ })) : (openBlock(), createBlock(_component_n8n_tooltip, {
168
+ key: 2,
169
+ placement: "top"
170
+ }, {
171
+ content: withCtx(() => [
172
+ createBaseVNode("div", null, toDisplayString(unref(i18n).baseText("settings.communityNodes.upToDate.tooltip")), 1)
173
+ ]),
174
+ default: withCtx(() => [
175
+ createVNode(_component_n8n_icon, {
176
+ icon: "check-circle",
177
+ color: "text-light",
178
+ size: "large"
179
+ })
180
+ ]),
181
+ _: 1
182
+ })),
183
+ createBaseVNode("div", {
184
+ class: normalizeClass(_ctx.$style.cardActions)
185
+ }, [
186
+ createVNode(_component_n8n_action_toggle, {
187
+ actions: packageActions,
188
+ onAction
189
+ })
190
+ ], 2)
191
+ ], 2)
192
+ ], 2)) : createCommentVNode("", true)
193
+ ], 2);
194
+ };
55
195
  }
56
196
  });
57
197
  const cardContainer = "_cardContainer_1cg0i_1";
@@ -74,160 +214,10 @@ const style0$1 = {
74
214
  cardControlsContainer,
75
215
  cardActions
76
216
  };
77
- const _hoisted_1 = { key: 0 };
78
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
79
- const _component_n8n_loading = resolveComponent("n8n-loading");
80
- const _component_n8n_text = resolveComponent("n8n-text");
81
- const _component_n8n_icon = resolveComponent("n8n-icon");
82
- const _component_n8n_tooltip = resolveComponent("n8n-tooltip");
83
- const _component_n8n_button = resolveComponent("n8n-button");
84
- const _component_n8n_action_toggle = resolveComponent("n8n-action-toggle");
85
- return openBlock(), createElementBlock("div", {
86
- class: normalizeClass(_ctx.$style.cardContainer),
87
- "data-test-id": "community-package-card"
88
- }, [
89
- _ctx.loading ? (openBlock(), createElementBlock("div", {
90
- key: 0,
91
- class: normalizeClass(_ctx.$style.cardSkeleton)
92
- }, [
93
- createVNode(_component_n8n_loading, {
94
- class: normalizeClass(_ctx.$style.loader),
95
- variant: "p",
96
- rows: 1
97
- }, null, 8, ["class"]),
98
- createVNode(_component_n8n_loading, {
99
- class: normalizeClass(_ctx.$style.loader),
100
- variant: "p",
101
- rows: 1
102
- }, null, 8, ["class"])
103
- ], 2)) : _ctx.communityPackage ? (openBlock(), createElementBlock("div", {
104
- key: 1,
105
- class: normalizeClass(_ctx.$style.packageCard)
106
- }, [
107
- createBaseVNode("div", {
108
- class: normalizeClass(_ctx.$style.cardInfoContainer)
109
- }, [
110
- createBaseVNode("div", {
111
- class: normalizeClass(_ctx.$style.cardTitle)
112
- }, [
113
- createVNode(_component_n8n_text, {
114
- bold: true,
115
- size: "large"
116
- }, {
117
- default: withCtx(() => [
118
- createTextVNode(toDisplayString(_ctx.communityPackage.packageName), 1)
119
- ]),
120
- _: 1
121
- })
122
- ], 2),
123
- createBaseVNode("div", {
124
- class: normalizeClass(_ctx.$style.cardSubtitle)
125
- }, [
126
- createVNode(_component_n8n_text, {
127
- bold: true,
128
- size: "small",
129
- color: "text-light"
130
- }, {
131
- default: withCtx(() => [
132
- createTextVNode(toDisplayString(_ctx.$locale.baseText("settings.communityNodes.packageNodes.label", {
133
- adjustToNumber: _ctx.communityPackage.installedNodes.length
134
- })) + ":  ", 1)
135
- ]),
136
- _: 1
137
- }),
138
- createVNode(_component_n8n_text, {
139
- size: "small",
140
- color: "text-light"
141
- }, {
142
- default: withCtx(() => [
143
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.communityPackage.installedNodes, (node, index) => {
144
- return openBlock(), createElementBlock("span", {
145
- key: node.name
146
- }, [
147
- createTextVNode(toDisplayString(node.name), 1),
148
- index != _ctx.communityPackage.installedNodes.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_1, ",")) : createCommentVNode("", true)
149
- ]);
150
- }), 128))
151
- ]),
152
- _: 1
153
- })
154
- ], 2)
155
- ], 2),
156
- createBaseVNode("div", {
157
- class: normalizeClass(_ctx.$style.cardControlsContainer)
158
- }, [
159
- createVNode(_component_n8n_text, {
160
- bold: true,
161
- size: "large",
162
- color: "text-light"
163
- }, {
164
- default: withCtx(() => [
165
- createTextVNode(" v" + toDisplayString(_ctx.communityPackage.installedVersion), 1)
166
- ]),
167
- _: 1
168
- }),
169
- _ctx.communityPackage.failedLoading === true ? (openBlock(), createBlock(_component_n8n_tooltip, {
170
- key: 0,
171
- placement: "top"
172
- }, {
173
- content: withCtx(() => [
174
- createBaseVNode("div", null, toDisplayString(_ctx.$locale.baseText("settings.communityNodes.failedToLoad.tooltip")), 1)
175
- ]),
176
- default: withCtx(() => [
177
- createVNode(_component_n8n_icon, {
178
- icon: "exclamation-triangle",
179
- color: "danger",
180
- size: "large"
181
- })
182
- ]),
183
- _: 1
184
- })) : _ctx.communityPackage.updateAvailable ? (openBlock(), createBlock(_component_n8n_tooltip, {
185
- key: 1,
186
- placement: "top"
187
- }, {
188
- content: withCtx(() => [
189
- createBaseVNode("div", null, toDisplayString(_ctx.$locale.baseText("settings.communityNodes.updateAvailable.tooltip")), 1)
190
- ]),
191
- default: withCtx(() => [
192
- createVNode(_component_n8n_button, {
193
- outline: "",
194
- label: "Update",
195
- onClick: _ctx.onUpdateClick
196
- }, null, 8, ["onClick"])
197
- ]),
198
- _: 1
199
- })) : (openBlock(), createBlock(_component_n8n_tooltip, {
200
- key: 2,
201
- placement: "top"
202
- }, {
203
- content: withCtx(() => [
204
- createBaseVNode("div", null, toDisplayString(_ctx.$locale.baseText("settings.communityNodes.upToDate.tooltip")), 1)
205
- ]),
206
- default: withCtx(() => [
207
- createVNode(_component_n8n_icon, {
208
- icon: "check-circle",
209
- color: "text-light",
210
- size: "large"
211
- })
212
- ]),
213
- _: 1
214
- })),
215
- createBaseVNode("div", {
216
- class: normalizeClass(_ctx.$style.cardActions)
217
- }, [
218
- createVNode(_component_n8n_action_toggle, {
219
- actions: _ctx.packageActions,
220
- onAction: _ctx.onAction
221
- }, null, 8, ["actions", "onAction"])
222
- ], 2)
223
- ], 2)
224
- ], 2)) : createCommentVNode("", true)
225
- ], 2);
226
- }
227
217
  const cssModules$1 = {
228
218
  "$style": style0$1
229
219
  };
230
- const CommunityPackageCard = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__cssModules", cssModules$1]]);
220
+ const CommunityPackageCard = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__cssModules", cssModules$1]]);
231
221
  const PACKAGE_COUNT_THRESHOLD = 31;
232
222
  const _sfc_main = /* @__PURE__ */ defineComponent({
233
223
  __name: "SettingsCommunityNodesView",
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, g2 as useExternalSecretsStore, K as useUIStore, a as useToast, cp as toRef, p as computed, iG as useExternalSecretsProvider, o as onMounted, c as openBlock, e as createBlock, w as withCtx, j as createBaseVNode, i as createVNode, n as normalizeClass, iH as _sfc_main$2, k as createTextVNode, t as toDisplayString, A as unref, f as createCommentVNode, h as createElementBlock, iI as ExternalSecretsProviderConnectionSwitch, g as useI18n, C as nextTick, iJ as EXTERNAL_SECRETS_PROVIDER_MODAL_KEY, l as resolveComponent, aA as DateTime, iK as isDateObject, _ as _export_sfc, a3 as useDocumentTitle, F as Fragment, z as renderList } from "./index-QAq8Sa9R.js";
1
+ import { d as defineComponent, gp as useExternalSecretsStore, K as useUIStore, a as useToast, cS as toRef, p as computed, iT as useExternalSecretsProvider, o as onMounted, c as openBlock, e as createBlock, w as withCtx, j as createBaseVNode, i as createVNode, n as normalizeClass, iU as _sfc_main$2, k as createTextVNode, t as toDisplayString, A as unref, f as createCommentVNode, h as createElementBlock, iV as ExternalSecretsProviderConnectionSwitch, g as useI18n, x as nextTick, iW as EXTERNAL_SECRETS_PROVIDER_MODAL_KEY, l as resolveComponent, aF as DateTime, iX as isDateObject, _ as _export_sfc, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, F as Fragment, z as renderList } from "./index-40I5DMGP.js";
2
2
  const _hoisted_1$1 = { key: 0 };
3
3
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4
4
  __name: "ExternalSecretsProviderCard.ee",
@@ -208,10 +208,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
208
208
  __name: "SettingsExternalSecrets",
209
209
  setup(__props) {
210
210
  const i18n = useI18n();
211
- const uiStore = useUIStore();
212
211
  const externalSecretsStore = useExternalSecretsStore();
213
212
  const toast = useToast();
214
213
  const documentTitle = useDocumentTitle();
214
+ const pageRedirectionHelper = usePageRedirectionHelper();
215
215
  const sortedProviders = computed(() => {
216
216
  return [...externalSecretsStore.providers].sort((a, b) => {
217
217
  return b.name.localeCompare(a.name);
@@ -228,7 +228,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
228
228
  }
229
229
  });
230
230
  function goToUpgrade() {
231
- void uiStore.goToUpgrade("external-secrets", "upgrade-external-secrets");
231
+ void pageRedirectionHelper.goToUpgrade("external-secrets", "upgrade-external-secrets");
232
232
  }
233
233
  return (_ctx, _cache) => {
234
234
  const _component_n8n_heading = resolveComponent("n8n-heading");