react-reflex
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "react-reflex", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A flex-based React layout component that works", | ||
@@ -5,0 +5,0 @@ "main": "dist/lib/index.min.js", |
@@ -76,2 +76,3 @@ ![re-flex](./resources/img/re-f%7Cex-banner.png) | ||
* Opera | ||
* Edge | ||
@@ -78,0 +79,0 @@ ## Documentation & Samples |
@@ -311,3 +311,3 @@ import ReactDOM from 'react-dom' | ||
</ReflexElement> | ||
<ReflexSplitter {...this.resizeProps}/> | ||
<ReflexSplitter {...this.resizeProps} className="reflex-thin"/> | ||
<ReflexElement {...this.resizeProps}> | ||
@@ -314,0 +314,0 @@ <div className="pane-content"> |
@@ -7,6 +7,6 @@ /////////////////////////////////////////////////////////// | ||
/////////////////////////////////////////////////////////// | ||
import BrowserType from './BrowserType' | ||
import throttle from 'lodash.throttle' | ||
import Measure from 'react-measure' | ||
import ReactDOM from 'react-dom' | ||
import Browser from './Browser' | ||
import React from 'react' | ||
@@ -33,3 +33,3 @@ | ||
static defaultProps = { | ||
renderOnResize: BrowserType.isSafari(), | ||
renderOnResize: Browser.isSafari(), | ||
propagateDimensions: false, | ||
@@ -36,0 +36,0 @@ renderOnResizeRate: 60, |
@@ -8,2 +8,3 @@ /////////////////////////////////////////////////////////// | ||
import ReactDOM from 'react-dom' | ||
import Browser from './Browser' | ||
import React from 'react' | ||
@@ -205,5 +206,5 @@ | ||
if (mobile.isAny()) { | ||
if (Browser.isMobile()) { | ||
classNames.push('mobile') | ||
classNames.push('reflex-thin') | ||
} | ||
@@ -219,36 +220,1 @@ | ||
} | ||
const mobile = { | ||
getUserAgent: function () { | ||
return navigator.userAgent; | ||
}, | ||
isAndroid: function () { | ||
return this.getUserAgent().match(/Android/i); | ||
}, | ||
isBlackBerry: function () { | ||
return this.getUserAgent().match(/BlackBerry/i); | ||
}, | ||
isIOS: function () { | ||
return this.getUserAgent().match(/iPhone|iPad|iPod/i); | ||
}, | ||
isOpera: function () { | ||
return this.getUserAgent().match(/Opera Mini/i); | ||
}, | ||
isWindows: function () { | ||
return this.isWindowsDesktop() || this.isWindowsMobile(); | ||
}, | ||
isWindowsMobile: function () { | ||
return this.getUserAgent().match(/IEMobile/i); | ||
}, | ||
isWindowsDesktop: function () { | ||
return this.getUserAgent().match(/WPDesktop/i); | ||
}, | ||
isAny: function () { | ||
return this.isAndroid() || | ||
this.isBlackBerry() || | ||
this.isIOS() || | ||
this.isWindowsMobile(); | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
95
1
4519122
28
34650