Skip to content

Commit

Permalink
React 16
Browse files Browse the repository at this point in the history
  • Loading branch information
mathisonian committed Sep 7, 2017
1 parent a65d2ba commit 0acba1f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
5 changes: 3 additions & 2 deletions packages/idyll-components/components/gist.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const React = require('react');
const IdyllComponent = require('idyll-component');
const PropTypes = require('prop-types');

class EmbeddedGist extends IdyllComponent {

Expand Down Expand Up @@ -63,8 +64,8 @@ class EmbeddedGist extends IdyllComponent {
}

EmbeddedGist.propTypes = {
gist: React.PropTypes.string.isRequired, // e.g. "username/id"
file: React.PropTypes.string // to embed a single specific file from the gist
gist: PropTypes.string.isRequired, // e.g. "username/id"
file: PropTypes.string // to embed a single specific file from the gist
};

// Each time we request a Gist, we'll need to generate a new
Expand Down
7 changes: 4 additions & 3 deletions packages/idyll-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@
"d3-format": "^1.2.0",
"d3-selection": "^1.1.0",
"idyll-component": "1.2.0",
"proptypes": "^1.1.0",
"react-inlinesvg": "^0.6.0",
"react-latex": "^1.0.1",
"react-syntax-highlighter": "^5.6.2",
"reactable": "^0.14.1",
"victory": "^0.21.0"
"victory": "^0.21.5"
},
"peerDependencies": {
"react": "^15.5.4",
"react-dom": "^15.5.4"
"react": "next",
"react-dom": "next"
},
"devDependencies": {
"babel-cli": "6.24.1",
Expand Down
5 changes: 3 additions & 2 deletions packages/idyll-document/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"html-tags": "^2.0.0",
"is-class": "^0.0.4",
"memoizee": "^0.4.5",
"react-dom-factories": "^1.0.1",
"scrollmonitor": "^1.2.3"
},
"devDependencies": {
Expand All @@ -35,8 +36,8 @@
"babel-preset-react": "^6.24.1",
"enzyme": "^2.9.1",
"jest": "^20.0.4",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react": "next",
"react-dom": "next",
"react-test-renderer": "^15.6.1"
}
}
3 changes: 2 additions & 1 deletion packages/idyll-document/src/utils/schema2element.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DOM, createElement } from 'React';
import { createElement } from 'React';
import DOM from 'react-dom-factories';

const _componentMap = new WeakMap();

Expand Down
10 changes: 5 additions & 5 deletions packages/idyll-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
"idyll-compiler": "^1.4.6",
"idyll-components": "^2.0.0",
"idyll-document": "^1.0.2",
"react": "^15.6.1",
"react-dom": "^15.6.1"
"react": "next",
"react-dom": "next"
},
"devDependencies": {
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babelify": "^7.3.0",
"budo": "^10.0.3",
"brfs": "^1.4.3",
"budo": "^10.0.3",
"envify": "^4.1.0",
"uglifyify": "^4.0.3",
"uglify-js": "^3.0.25"
"uglify-js": "^3.0.25",
"uglifyify": "^4.0.3"
}
}

0 comments on commit 0acba1f

Please sign in to comment.