@watermarkinsights/ripple-react
Advanced tools
Comparing version 4.5.0 to 4.6.0-0
export declare const attachProps: (node: HTMLElement, newProps: any, oldProps?: any) => void; | ||
export declare const getClassName: (classList: DOMTokenList, newProps: any, oldProps: any) => string; | ||
/** | ||
* Transforms a React event name to a browser event name. | ||
*/ | ||
export declare const transformReactEventName: (eventNameSuffix: string) => string; | ||
/** | ||
* Checks if an event is supported in the current execution environment. | ||
@@ -5,0 +9,0 @@ * @license Modernizr 3.0.0pre (Custom Build) | MIT |
@@ -62,2 +62,12 @@ import { camelToDashCase } from './case'; | ||
/** | ||
* Transforms a React event name to a browser event name. | ||
*/ | ||
export var transformReactEventName = function (eventNameSuffix) { | ||
switch (eventNameSuffix) { | ||
case 'doubleclick': | ||
return 'dblclick'; | ||
} | ||
return eventNameSuffix; | ||
}; | ||
/** | ||
* Checks if an event is supported in the current execution environment. | ||
@@ -71,3 +81,3 @@ * @license Modernizr 3.0.0pre (Custom Build) | MIT | ||
else { | ||
var eventName = 'on' + eventNameSuffix; | ||
var eventName = 'on' + transformReactEventName(eventNameSuffix); | ||
var isSupported = eventName in document; | ||
@@ -74,0 +84,0 @@ if (!isSupported) { |
{ | ||
"name": "@watermarkinsights/ripple-react", | ||
"version": "4.5.0", | ||
"version": "4.6.0-0", | ||
"description": "React specific wrappers for Ripple component library", | ||
@@ -46,4 +46,4 @@ "scripts": { | ||
"dependencies": { | ||
"@watermarkinsights/ripple": "4.5.0" | ||
"@watermarkinsights/ripple": "4.6.0-0" | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
253339
1571
2
+ Added@watermarkinsights/ripple@4.6.0-0(transitive)
- Removed@watermarkinsights/ripple@4.5.0(transitive)