Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mangoweb/scripts-base

Package Overview
Dependencies
Maintainers
6
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mangoweb/scripts-base - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

6

lib/componentTypes.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc