fix(editor): Fix broken types for globally defined components (no-changelog) (#16505)

Co-authored-by: Mutasem Aldmour <mutasem@n8n.io>
This commit is contained in:
Alex Grozav
2025-06-24 14:01:23 +03:00
committed by GitHub
parent 21ff173070
commit 20c63436d2
150 changed files with 1332 additions and 960 deletions

View File

@@ -4,6 +4,9 @@ import { computed } from 'vue';
import { useI18n } from '@n8n/design-system/composables/useI18n';
import N8nButton from '../N8nButton';
import N8nIcon from '../N8nIcon';
const MIN_LINES = 4;
interface Props {
@@ -106,11 +109,11 @@ const diffs = computed(() => {
</div>
<div :class="$style.actions">
<div v-if="error">
<n8n-icon icon="exclamation-triangle" color="danger" class="mr-5xs" />
<N8nIcon icon="exclamation-triangle" color="danger" class="mr-5xs" />
<span :class="$style.infoText">{{ t('codeDiff.couldNotReplace') }}</span>
</div>
<div v-else-if="replaced">
<n8n-button
<N8nButton
type="secondary"
size="mini"
icon="undo"
@@ -118,13 +121,13 @@ const diffs = computed(() => {
@click="() => emit('undo')"
>
{{ t('codeDiff.undo') }}
</n8n-button>
<n8n-icon icon="check" color="success" class="ml-xs" />
</N8nButton>
<N8nIcon icon="check" color="success" class="ml-xs" />
<span :class="$style.infoText" data-test-id="code-replaced-message">
{{ t('codeDiff.codeReplaced') }}
</span>
</div>
<n8n-button
<N8nButton
v-else
:type="replacing ? 'secondary' : 'primary'"
size="mini"
@@ -133,7 +136,7 @@ const diffs = computed(() => {
:disabled="!content || streaming"
:loading="replacing"
@click="() => emit('replace')"
>{{ replacing ? t('codeDiff.replacing') : t('codeDiff.replaceMyCode') }}</n8n-button
>{{ replacing ? t('codeDiff.replacing') : t('codeDiff.replaceMyCode') }}</N8nButton
>
</div>
</div>