diff --git a/packages/design-system/package.json b/packages/design-system/package.json index eb7a3467c0..7207be9c0c 100644 --- a/packages/design-system/package.json +++ b/packages/design-system/package.json @@ -7,7 +7,8 @@ "name": "Mutasem Aldmour", "email": "mutasem@n8n.io" }, - "main": "src/main.js", + "main": "src/main.ts", + "import": "src/main.ts", "repository": { "type": "git", "url": "git+https://github.com/n8n-io/n8n.git" diff --git a/packages/design-system/src/components/N8nFormBox/FormBox.vue b/packages/design-system/src/components/N8nFormBox/FormBox.vue index 465fa957f3..3fc3ddcae4 100644 --- a/packages/design-system/src/components/N8nFormBox/FormBox.vue +++ b/packages/design-system/src/components/N8nFormBox/FormBox.vue @@ -43,6 +43,7 @@ import N8nFormInputs from '../N8nFormInputs'; import N8nHeading from '../N8nHeading'; import N8nLink from '../N8nLink'; import N8nButton from '../N8nButton'; +import { createEventBus } from '../../utils'; export default Vue.extend({ name: 'n8n-form-box', @@ -81,7 +82,7 @@ export default Vue.extend({ }, data() { return { - formBus: new Vue(), + formBus: createEventBus(), }; }, methods: { @@ -92,7 +93,7 @@ export default Vue.extend({ this.$emit('submit', e); }, onButtonClick() { - this.formBus.$emit('submit'); + this.formBus.emit('submit'); }, onSecondaryButtonClick(event: Event) { this.$emit('secondaryClick', event); diff --git a/packages/design-system/src/components/N8nFormInputs/FormInputs.vue b/packages/design-system/src/components/N8nFormInputs/FormInputs.vue index 507c308bd8..df85780748 100644 --- a/packages/design-system/src/components/N8nFormInputs/FormInputs.vue +++ b/packages/design-system/src/components/N8nFormInputs/FormInputs.vue @@ -37,10 +37,11 @@ diff --git a/packages/editor-ui/src/components/ImportCurlModal.vue b/packages/editor-ui/src/components/ImportCurlModal.vue index 3723b7be8b..4baa06600e 100644 --- a/packages/editor-ui/src/components/ImportCurlModal.vue +++ b/packages/editor-ui/src/components/ImportCurlModal.vue @@ -40,7 +40,6 @@