@mangoweb/scripts-base
Advanced tools
Comparing version 0.0.14 to 0.0.15
export declare type ComponentEl = HTMLElement | SVGElement | Window; | ||
export declare type DefaultComponentEl = HTMLElement; | ||
export declare type EventMapByElement<E extends ComponentEl> = E extends Window ? WindowEventMap : E extends SVGElement ? SVGElementEventMap : E extends HTMLBodyElement ? HTMLBodyElementEventMap : E extends HTMLVideoElement ? HTMLVideoElementEventMap : E extends HTMLAudioElement ? HTMLMediaElementEventMap : E extends HTMLElement ? HTMLElementEventMap : never; | ||
export declare type EventMapByElement<E extends ComponentEl> = E extends Window ? WindowEventMap : E extends SVGElement ? SVGElementEventMap : E extends HTMLBodyElement ? HTMLBodyElementEventMap : E extends HTMLVideoElement ? HTMLMediaElementEventMap : E extends HTMLAudioElement ? HTMLMediaElementEventMap : E extends HTMLElement ? HTMLElementEventMap : never; | ||
export declare type DelegateTarget<Container extends ComponentEl> = Container extends Window ? HTMLElement | SVGElement : Container extends SVGElement ? SVGElement : Container extends HTMLElement ? HTMLElement | SVGElement : never; | ||
export declare type EventMap = WindowEventMap | SVGElementEventMap | HTMLBodyElementEventMap | HTMLVideoElementEventMap | HTMLMediaElementEventMap | HTMLElementEventMap; | ||
export declare type CompleteEventMap = WindowEventMap & SVGElementEventMap & HTMLBodyElementEventMap & HTMLVideoElementEventMap & HTMLMediaElementEventMap & HTMLElementEventMap; | ||
export declare type EventMap = WindowEventMap | SVGElementEventMap | HTMLBodyElementEventMap | HTMLMediaElementEventMap | HTMLElementEventMap; | ||
export declare type CompleteEventMap = WindowEventMap & SVGElementEventMap & HTMLBodyElementEventMap & HTMLMediaElementEventMap & HTMLElementEventMap; | ||
export declare type NonBubblingEventType = 'abort' | 'blur' | 'error' | 'focus' | 'load' | 'loadend' | 'loadstart' | 'progress' | 'scroll'; | ||
@@ -8,0 +8,0 @@ export declare type BubblingEventType<EMap extends EventMap> = Exclude<keyof EMap, NonBubblingEventType>; |
{ | ||
"name": "@mangoweb/scripts-base", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Simple component model for small to medium sites. Usable from JS & TS.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -12,3 +12,3 @@ export type ComponentEl = HTMLElement | SVGElement | Window | ||
: E extends HTMLVideoElement | ||
? HTMLVideoElementEventMap | ||
? HTMLMediaElementEventMap | ||
: E extends HTMLAudioElement | ||
@@ -32,3 +32,2 @@ ? HTMLMediaElementEventMap | ||
| HTMLBodyElementEventMap | ||
| HTMLVideoElementEventMap | ||
| HTMLMediaElementEventMap | ||
@@ -40,3 +39,2 @@ | HTMLElementEventMap | ||
HTMLBodyElementEventMap & | ||
HTMLVideoElementEventMap & | ||
HTMLMediaElementEventMap & | ||
@@ -43,0 +41,0 @@ HTMLElementEventMap |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52051
753