react-i13n
Advanced tools
Comparing version 0.1.30 to 0.2.0-rc1
@@ -9,6 +9,7 @@ /** | ||
var React = require('react'); | ||
var ReactDOM = require('react-dom'); | ||
var debug = require('debug')('I13nMixin'); | ||
var ReactI13n = require('../libs/ReactI13n'); | ||
var clickHandler = require('../utils/clickHandler'); | ||
var EventListener = require('react/lib/EventListener'); | ||
var EventListener = require('fbjs/lib/EventListener'); | ||
var ViewportMixin = require('./viewport/ViewportMixin'); | ||
@@ -105,6 +106,6 @@ var I13nUtils = require('./I13nUtils'); | ||
if (self.props.bindClickEvent) { | ||
self.clickEventListener = EventListener.listen(self.getDOMNode(), 'click', clickHandler.bind(self)); | ||
self.clickEventListener = EventListener.listen(ReactDOM.findDOMNode(self), 'click', clickHandler.bind(self)); | ||
} | ||
self._i13nNode.setDOMNode(self.getDOMNode()); | ||
self._i13nNode.setDOMNode(ReactDOM.findDOMNode(self)); | ||
@@ -182,3 +183,3 @@ // enable viewport checking if enabled | ||
var self = this; | ||
var DOMNode = self.getDOMNode(); | ||
var DOMNode = ReactDOM.findDOMNode(self); | ||
var foundElements = []; | ||
@@ -185,0 +186,0 @@ var reactI13n = self._getReactI13n(); |
@@ -8,3 +8,3 @@ /** | ||
var React = require('react/addons'); | ||
var React = require('react'); | ||
var subscribe = require('subscribe-ui-event').subscribe; | ||
@@ -14,3 +14,3 @@ | ||
var Viewport = { | ||
propTypes: { | ||
@@ -17,0 +17,0 @@ viewport: React.PropTypes.shape({ |
@@ -6,3 +6,3 @@ /** | ||
/* global document, window*/ | ||
var EventListener = require('react/lib/EventListener'); | ||
var EventListener = require('fbjs/lib/EventListener'); | ||
@@ -9,0 +9,0 @@ var uniqueId = 0; |
{ | ||
"name": "react-i13n", | ||
"description": "React I13n provides a performant and scalable solution to application instrumentation.", | ||
"version": "0.1.30", | ||
"version": "0.2.0-rc1", | ||
"main": "index.js", | ||
@@ -17,2 +17,3 @@ "repository": { | ||
"debug": "^2.1.3", | ||
"fbjs": "^0.3.1", | ||
"hoist-non-react-statics": "^1.0.0", | ||
@@ -36,4 +37,4 @@ "object-assign": "^4.0.0", | ||
"grunt-react": "^0.12.2", | ||
"grunt-saucelabs": "^8.3.2", | ||
"grunt-shell": "^1.1.2", | ||
"grunt-saucelabs": "^8.3.2", | ||
"grunt-webpack": "^1.0.8", | ||
@@ -47,3 +48,4 @@ "istanbul": "^0.3.0", | ||
"pre-commit": "^1.0.0", | ||
"react": "<= 0.13.x", | ||
"react": "^0.14.0-rc1", | ||
"react-dom": "^0.14.0-rc1", | ||
"react-tools": "<= 0.13.x", | ||
@@ -59,3 +61,4 @@ "xunit-file": "^0.0.7" | ||
"peerDependencies": { | ||
"react": "<0.14.0" | ||
"react": "^0.14.0 || 0.14.0-rc1", | ||
"react-dom": "^0.14.0 || 0.14.0-rc1" | ||
}, | ||
@@ -62,0 +65,0 @@ "precommit": [ |
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
73528
1758
9
25
+ Addedfbjs@^0.3.1
+ Addedcore-js@1.2.7(transitive)
+ Addedfbjs@0.3.2(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedua-parser-js@0.7.40(transitive)
+ Addedwhatwg-fetch@0.9.0(transitive)
- Removedacorn@5.7.4(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedast-types@0.9.6(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase62@1.2.8(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcommoner@0.10.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddetective@4.7.1(transitive)
- Removedenvify@3.4.1(transitive)
- Removedesprima@3.1.3(transitive)
- Removedesprima-fb@15001.1.0-dev-harmony-fb(transitive)
- Removedglob@5.0.15(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjstransform@11.0.3(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedobject-assign@2.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedprivate@0.1.8(transitive)
- Removedq@1.5.1(transitive)
- Removedreact@0.13.3(transitive)
- Removedrecast@0.11.23(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsource-map@0.4.40.5.7(transitive)
- Removedthrough@2.3.8(transitive)
- Removedwrappy@1.0.2(transitive)