@stardust-ui/react-component-event-listener
Advanced tools
Comparing version 0.31.0 to 0.31.1-alpha.21
@@ -8,3 +8,3 @@ "use strict"; | ||
var shouldUpdateListener_1 = require("./lib/shouldUpdateListener"); | ||
var types_1 = require("./types"); | ||
var types_internal_1 = require("./types.internal"); | ||
var EventListener = /** @class */ (function (_super) { | ||
@@ -34,3 +34,3 @@ tslib_1.__extends(EventListener, _super); | ||
EventListener.displayName = 'EventListener'; | ||
EventListener.propTypes = types_1.listenerPropTypes; | ||
EventListener.propTypes = types_internal_1.listenerPropTypes; | ||
EventListener.defaultProps = { | ||
@@ -37,0 +37,0 @@ capture: false, |
@@ -6,2 +6,2 @@ import { TargetRef } from './types'; | ||
export { default as StackableEventListener } from './StackableEventListener'; | ||
export { EventHandler, EventListenerProps, EventTypes, TargetRef } from './types'; | ||
export * from './types'; |
@@ -1,3 +0,4 @@ | ||
import { EventHandler, ListenerActionOptions } from '../types'; | ||
import { EventHandler } from '../types'; | ||
import { ListenerActionOptions } from '../types.internal'; | ||
declare const addEventListener: (listener: EventHandler<"waiting" | "error" | "abort" | "cancel" | "progress" | "ended" | "change" | "input" | "select" | "fullscreenchange" | "fullscreenerror" | "readystatechange" | "visibilitychange" | "animationcancel" | "animationend" | "animationiteration" | "animationstart" | "auxclick" | "blur" | "canplay" | "canplaythrough" | "click" | "close" | "contextmenu" | "cuechange" | "dblclick" | "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop" | "durationchange" | "emptied" | "focus" | "gotpointercapture" | "invalid" | "keydown" | "keypress" | "keyup" | "load" | "loadeddata" | "loadedmetadata" | "loadend" | "loadstart" | "lostpointercapture" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "pause" | "play" | "playing" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "ratechange" | "reset" | "resize" | "scroll" | "securitypolicyviolation" | "seeked" | "seeking" | "stalled" | "submit" | "suspend" | "timeupdate" | "toggle" | "touchcancel" | "touchend" | "touchmove" | "touchstart" | "transitioncancel" | "transitionend" | "transitionrun" | "transitionstart" | "volumechange" | "wheel" | "copy" | "cut" | "paste">, options: ListenerActionOptions) => void; | ||
export default addEventListener; |
@@ -1,3 +0,4 @@ | ||
import { EventHandler, ListenerActionOptions } from '../types'; | ||
import { EventHandler } from '../types'; | ||
import { ListenerActionOptions } from '../types.internal'; | ||
declare const removeEventListener: (listener: EventHandler<"waiting" | "error" | "abort" | "cancel" | "progress" | "ended" | "change" | "input" | "select" | "fullscreenchange" | "fullscreenerror" | "readystatechange" | "visibilitychange" | "animationcancel" | "animationend" | "animationiteration" | "animationstart" | "auxclick" | "blur" | "canplay" | "canplaythrough" | "click" | "close" | "contextmenu" | "cuechange" | "dblclick" | "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop" | "durationchange" | "emptied" | "focus" | "gotpointercapture" | "invalid" | "keydown" | "keypress" | "keyup" | "load" | "loadeddata" | "loadedmetadata" | "loadend" | "loadstart" | "lostpointercapture" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "pause" | "play" | "playing" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "ratechange" | "reset" | "resize" | "scroll" | "securitypolicyviolation" | "seeked" | "seeking" | "stalled" | "submit" | "suspend" | "timeupdate" | "toggle" | "touchcancel" | "touchend" | "touchmove" | "touchstart" | "transitioncancel" | "transitionend" | "transitionrun" | "transitionstart" | "volumechange" | "wheel" | "copy" | "cut" | "paste">, options: ListenerActionOptions) => void; | ||
export default removeEventListener; |
@@ -9,3 +9,3 @@ "use strict"; | ||
var shouldUpdateListener_1 = require("./lib/shouldUpdateListener"); | ||
var types_1 = require("./types"); | ||
var types_internal_1 = require("./types.internal"); | ||
var StackableEventListener = /** @class */ (function (_super) { | ||
@@ -43,3 +43,3 @@ tslib_1.__extends(StackableEventListener, _super); | ||
StackableEventListener.displayName = 'StackableEventListener'; | ||
StackableEventListener.propTypes = types_1.listenerPropTypes; | ||
StackableEventListener.propTypes = types_internal_1.listenerPropTypes; | ||
StackableEventListener.defaultProps = { | ||
@@ -46,0 +46,0 @@ capture: false, |
@@ -14,8 +14,2 @@ import * as React from 'react'; | ||
export declare type EventTypes = keyof DocumentEventMap; | ||
export declare type ListenerActionOptions = { | ||
capture: boolean; | ||
targetRef: TargetRef; | ||
type: EventTypes; | ||
}; | ||
export declare type TargetRef = React.RefObject<Node | Window>; | ||
export declare const listenerPropTypes: Record<"capture" | "listener" | "targetRef" | "type", any>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var PropTypes = require("prop-types"); | ||
exports.listenerPropTypes = { | ||
capture: PropTypes.bool, | ||
listener: PropTypes.func.isRequired, | ||
targetRef: PropTypes.shape({ | ||
current: PropTypes.object, | ||
}).isRequired, | ||
type: PropTypes.string.isRequired, | ||
}; |
@@ -6,3 +6,3 @@ import * as tslib_1 from "tslib"; | ||
import shouldUpdateListener from './lib/shouldUpdateListener'; | ||
import { listenerPropTypes } from './types'; | ||
import { listenerPropTypes } from './types.internal'; | ||
var EventListener = /** @class */ (function (_super) { | ||
@@ -9,0 +9,0 @@ tslib_1.__extends(EventListener, _super); |
@@ -6,2 +6,2 @@ import { TargetRef } from './types'; | ||
export { default as StackableEventListener } from './StackableEventListener'; | ||
export { EventHandler, EventListenerProps, EventTypes, TargetRef } from './types'; | ||
export * from './types'; |
@@ -1,3 +0,4 @@ | ||
import { EventHandler, ListenerActionOptions } from '../types'; | ||
import { EventHandler } from '../types'; | ||
import { ListenerActionOptions } from '../types.internal'; | ||
declare const addEventListener: (listener: EventHandler<"waiting" | "error" | "abort" | "cancel" | "progress" | "ended" | "change" | "input" | "select" | "fullscreenchange" | "fullscreenerror" | "readystatechange" | "visibilitychange" | "animationcancel" | "animationend" | "animationiteration" | "animationstart" | "auxclick" | "blur" | "canplay" | "canplaythrough" | "click" | "close" | "contextmenu" | "cuechange" | "dblclick" | "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop" | "durationchange" | "emptied" | "focus" | "gotpointercapture" | "invalid" | "keydown" | "keypress" | "keyup" | "load" | "loadeddata" | "loadedmetadata" | "loadend" | "loadstart" | "lostpointercapture" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "pause" | "play" | "playing" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "ratechange" | "reset" | "resize" | "scroll" | "securitypolicyviolation" | "seeked" | "seeking" | "stalled" | "submit" | "suspend" | "timeupdate" | "toggle" | "touchcancel" | "touchend" | "touchmove" | "touchstart" | "transitioncancel" | "transitionend" | "transitionrun" | "transitionstart" | "volumechange" | "wheel" | "copy" | "cut" | "paste">, options: ListenerActionOptions) => void; | ||
export default addEventListener; |
@@ -1,3 +0,4 @@ | ||
import { EventHandler, ListenerActionOptions } from '../types'; | ||
import { EventHandler } from '../types'; | ||
import { ListenerActionOptions } from '../types.internal'; | ||
declare const removeEventListener: (listener: EventHandler<"waiting" | "error" | "abort" | "cancel" | "progress" | "ended" | "change" | "input" | "select" | "fullscreenchange" | "fullscreenerror" | "readystatechange" | "visibilitychange" | "animationcancel" | "animationend" | "animationiteration" | "animationstart" | "auxclick" | "blur" | "canplay" | "canplaythrough" | "click" | "close" | "contextmenu" | "cuechange" | "dblclick" | "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop" | "durationchange" | "emptied" | "focus" | "gotpointercapture" | "invalid" | "keydown" | "keypress" | "keyup" | "load" | "loadeddata" | "loadedmetadata" | "loadend" | "loadstart" | "lostpointercapture" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "pause" | "play" | "playing" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "ratechange" | "reset" | "resize" | "scroll" | "securitypolicyviolation" | "seeked" | "seeking" | "stalled" | "submit" | "suspend" | "timeupdate" | "toggle" | "touchcancel" | "touchend" | "touchmove" | "touchstart" | "transitioncancel" | "transitionend" | "transitionrun" | "transitionstart" | "volumechange" | "wheel" | "copy" | "cut" | "paste">, options: ListenerActionOptions) => void; | ||
export default removeEventListener; |
@@ -7,3 +7,3 @@ import * as tslib_1 from "tslib"; | ||
import shouldUpdateListener from './lib/shouldUpdateListener'; | ||
import { listenerPropTypes } from './types'; | ||
import { listenerPropTypes } from './types.internal'; | ||
var StackableEventListener = /** @class */ (function (_super) { | ||
@@ -10,0 +10,0 @@ tslib_1.__extends(StackableEventListener, _super); |
@@ -14,8 +14,2 @@ import * as React from 'react'; | ||
export declare type EventTypes = keyof DocumentEventMap; | ||
export declare type ListenerActionOptions = { | ||
capture: boolean; | ||
targetRef: TargetRef; | ||
type: EventTypes; | ||
}; | ||
export declare type TargetRef = React.RefObject<Node | Window>; | ||
export declare const listenerPropTypes: Record<"capture" | "listener" | "targetRef" | "type", any>; |
{ | ||
"name": "@stardust-ui/react-component-event-listener", | ||
"description": "React components for binding events on the global scope.", | ||
"version": "0.31.0", | ||
"version": "0.31.1-alpha.21+3cf1e1f65", | ||
"author": "Oleksandr Fediashov <a@fedyashov.com>", | ||
@@ -12,3 +12,3 @@ "bugs": "https://github.com/stardust-ui/react/issues", | ||
"devDependencies": { | ||
"@stardust-ui/internal-tooling": "^0.31.0", | ||
"@stardust-ui/internal-tooling": "^0.31.1-alpha.21+3cf1e1f65", | ||
"lerna-alias": "^3.0.3-0" | ||
@@ -33,7 +33,7 @@ }, | ||
"scripts": { | ||
"build": "cross-env TS_NODE_PROJECT=../../tsconfig.json gulp bundle:package:no-umd --package react-component-event-listener" | ||
"build": "gulp bundle:package:no-umd --package react-component-event-listener" | ||
}, | ||
"sideEffects": false, | ||
"types": "dist/es/index.d.ts", | ||
"gitHead": "696c8b92f877719a03814560fb54748e5cf1f94a" | ||
"gitHead": "3cf1e1f652ec12dbe7ef7f081e2282d8c82fb454" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
54259
50
702
1