From 4b6395a8301b0512021695ceb3397e2529367409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Thu, 16 Nov 2023 13:01:26 +0100 Subject: [PATCH 1/2] fix(editor): Set `n8nHooksNext` before the external hook is loaded (no-changelog) --- packages/editor-ui/index.html | 1 + packages/editor-ui/src/hooks/init.ts | 1 - packages/editor-ui/src/main.ts | 2 -- packages/editor-ui/src/shims.d.ts | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 packages/editor-ui/src/hooks/init.ts diff --git a/packages/editor-ui/index.html b/packages/editor-ui/index.html index 12dbfaeb9dc06..8de1fab02462b 100644 --- a/packages/editor-ui/index.html +++ b/packages/editor-ui/index.html @@ -8,6 +8,7 @@ diff --git a/packages/editor-ui/src/hooks/init.ts b/packages/editor-ui/src/hooks/init.ts deleted file mode 100644 index 7310c8e75731d..0000000000000 --- a/packages/editor-ui/src/hooks/init.ts +++ /dev/null @@ -1 +0,0 @@ -window.n8nHooksNext = true; diff --git a/packages/editor-ui/src/main.ts b/packages/editor-ui/src/main.ts index 9ea928fe83bcf..21da68448f35e 100644 --- a/packages/editor-ui/src/main.ts +++ b/packages/editor-ui/src/main.ts @@ -11,8 +11,6 @@ import '@fontsource/open-sans/latin-400.css'; import '@fontsource/open-sans/latin-600.css'; import '@fontsource/open-sans/latin-700.css'; -import './hooks/init'; - import App from '@/App.vue'; import router from './router'; diff --git a/packages/editor-ui/src/shims.d.ts b/packages/editor-ui/src/shims.d.ts index eb553cbf3ecf6..b4da29d5927aa 100644 --- a/packages/editor-ui/src/shims.d.ts +++ b/packages/editor-ui/src/shims.d.ts @@ -20,7 +20,6 @@ declare global { interface Window { BASE_PATH: string; REST_ENDPOINT: string; - n8nHooksNext: boolean; n8nExternalHooks?: PartialDeep; } From be60354e4d36a29351a0aeb8e5d4fac21a2b6946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Thu, 16 Nov 2023 16:10:23 +0100 Subject: [PATCH 2/2] remove n8nHooksNext --- packages/editor-ui/index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/editor-ui/index.html b/packages/editor-ui/index.html index 8de1fab02462b..12dbfaeb9dc06 100644 --- a/packages/editor-ui/index.html +++ b/packages/editor-ui/index.html @@ -8,7 +8,6 @@