mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
feat: Add new event hooks (#5530)
* feat: Add new event hooks * fix: update event
This commit is contained in:
parent
3ae005cafe
commit
d47d0086cc
|
@ -89,8 +89,9 @@ import { INodeParameters, INodeProperties, INodePropertyMode, IParameterLabel }
|
|||
import { BaseTextKey } from '@/plugins/i18n';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useNDVStore } from '@/stores/ndv';
|
||||
import { externalHooks } from '@/mixins/externalHooks';
|
||||
|
||||
export default mixins(showMessage).extend({
|
||||
export default mixins(showMessage, externalHooks).extend({
|
||||
name: 'parameter-input-full',
|
||||
components: {
|
||||
ParameterOptions,
|
||||
|
@ -326,6 +327,8 @@ export default mixins(showMessage).extend({
|
|||
hasExpressionMapping(prevValue),
|
||||
success: true,
|
||||
});
|
||||
|
||||
this.$externalHooks().run('parameterInputFull.mappedData');
|
||||
}
|
||||
this.forceShowExpression = false;
|
||||
}, 200);
|
||||
|
|
|
@ -515,7 +515,7 @@ export const ASSUMPTION_EXPERIMENT = {
|
|||
};
|
||||
|
||||
export const ONBOARDING_EXPERIMENT = {
|
||||
name: 'onboarding-checklist',
|
||||
name: 'checklist_001',
|
||||
control: 'control',
|
||||
variant: 'variant',
|
||||
};
|
||||
|
|
|
@ -6,6 +6,8 @@ import { useSettingsStore } from './settings';
|
|||
import { FeatureFlags } from 'n8n-workflow';
|
||||
import { EXPERIMENTS_TO_TRACK } from '@/constants';
|
||||
import { useTelemetryStore } from './telemetry';
|
||||
import { runExternalHook } from '@/mixins/externalHooks';
|
||||
import { useWebhooksStore } from './webhooks';
|
||||
|
||||
export const usePostHogStore = defineStore('posthog', () => {
|
||||
const usersStore = useUsersStore();
|
||||
|
@ -104,6 +106,10 @@ export const usePostHogStore = defineStore('posthog', () => {
|
|||
});
|
||||
|
||||
trackedDemoExp.value[name] = variant;
|
||||
runExternalHook('posthog.featureFlagsUpdated', useWebhooksStore(), {
|
||||
name,
|
||||
variant,
|
||||
});
|
||||
};
|
||||
|
||||
watch(
|
||||
|
|
Loading…
Reference in a new issue