@stencil/vue-output-target
Advanced tools
Comparing version 0.9.4 to 0.9.5
@@ -143,2 +143,13 @@ 'use strict'; | ||
const classes = new Set(getComponentClasses(attrs.class)); | ||
vue.onMounted(() => { | ||
/** | ||
* we register the event emmiter for @Event definitions | ||
* so we can use @event | ||
*/ | ||
emitProps.forEach((eventName) => { | ||
containerRef.value.addEventListener(eventName, (e) => { | ||
emit(eventName, e); | ||
}); | ||
}); | ||
}); | ||
/** | ||
@@ -158,3 +169,3 @@ * This directive is responsible for updating any reactive | ||
eventsNames.forEach((eventName) => { | ||
el.addEventListener(eventName.toLowerCase(), (e) => { | ||
el.addEventListener(eventName, (e) => { | ||
/** | ||
@@ -173,11 +184,2 @@ * Only update the v-model binding if the event's target is the element we are | ||
}); | ||
/** | ||
* we register the event emmiter for @Event definitions | ||
* so we can use @event | ||
*/ | ||
emitProps.forEach((eventName) => { | ||
el.addEventListener(eventName, (e) => { | ||
emit(eventName, e); | ||
}); | ||
}); | ||
}, | ||
@@ -184,0 +186,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { defineComponent, useSlots, createSSRApp, compile, ref, getCurrentInstance, inject, h, withDirectives } from 'vue'; | ||
import { defineComponent, useSlots, createSSRApp, compile, ref, onMounted, getCurrentInstance, inject, h, withDirectives } from 'vue'; | ||
@@ -141,2 +141,13 @@ const LOG_PREFIX = '[vue-output-target]'; | ||
const classes = new Set(getComponentClasses(attrs.class)); | ||
onMounted(() => { | ||
/** | ||
* we register the event emmiter for @Event definitions | ||
* so we can use @event | ||
*/ | ||
emitProps.forEach((eventName) => { | ||
containerRef.value.addEventListener(eventName, (e) => { | ||
emit(eventName, e); | ||
}); | ||
}); | ||
}); | ||
/** | ||
@@ -156,3 +167,3 @@ * This directive is responsible for updating any reactive | ||
eventsNames.forEach((eventName) => { | ||
el.addEventListener(eventName.toLowerCase(), (e) => { | ||
el.addEventListener(eventName, (e) => { | ||
/** | ||
@@ -171,11 +182,2 @@ * Only update the v-model binding if the event's target is the element we are | ||
}); | ||
/** | ||
* we register the event emmiter for @Event definitions | ||
* so we can use @event | ||
*/ | ||
emitProps.forEach((eventName) => { | ||
el.addEventListener(eventName, (e) => { | ||
emit(eventName, e); | ||
}); | ||
}); | ||
}, | ||
@@ -182,0 +184,0 @@ }; |
{ | ||
"name": "@stencil/vue-output-target", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"description": "Vue output target for @stencil/core components.", | ||
@@ -5,0 +5,0 @@ "author": "Ionic Team", |
Unstable ownership
Supply chain riskA new collaborator has begun publishing package versions. Package stability and security risk may be elevated.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
70718
1359
1
1