diff --git a/.gitignore b/.gitignore index 760bddf..da6c2f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .psci* bower_components/ +node_modules/ output/ .psc-package .psc-ide-port diff --git a/package.json b/package.json index d6126cc..1e1b0fc 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "purescript-react", "files": [], "peerDependencies": { - "react": "^0.14.3" + "react": "^15.6.1", + "create-react-class": "^15.6.0" } } diff --git a/src/React.js b/src/React.js index 52d3aa2..b4fee1e 100644 --- a/src/React.js +++ b/src/React.js @@ -2,6 +2,7 @@ "use strict"; var React = require("react"); +var createReactClass = require("create-react-class"); function getProps(this_) { return function(){ @@ -117,7 +118,7 @@ function createClass(spec) { } }; - return React.createClass(result); + return createReactClass(result); } exports.createClass = createClass; diff --git a/src/React/DOM/Props.purs b/src/React/DOM/Props.purs index 74136d6..8bac25c 100644 --- a/src/React/DOM/Props.purs +++ b/src/React/DOM/Props.purs @@ -458,6 +458,26 @@ security = unsafeMkProps "security" unselectable :: Boolean -> Props unselectable = unsafeMkProps "unselectable" +onAnimationStart :: forall eff props state result. + (Event -> EventHandlerContext eff props state result) -> Props +onAnimationStart f = unsafeMkProps "onAnimationStart" (handle f) + +onAnimationEnd :: forall eff props state result. + (Event -> EventHandlerContext eff props state result) -> Props +onAnimationEnd f = unsafeMkProps "onAnimationEnd" (handle f) + +onAnimationIteration :: forall eff props state result. + (Event -> EventHandlerContext eff props state result) -> Props +onAnimationIteration f = unsafeMkProps "onAnimationIteration" (handle f) + +onTransitionEnd :: forall eff props state result. + (Event -> EventHandlerContext eff props state result) -> Props +onTransitionEnd f = unsafeMkProps "onTransitionEnd" (handle f) + +onLoad :: forall eff props state result. + (Event -> EventHandlerContext eff props state result) -> Props +onLoad f = unsafeMkProps "onLoad" (handle f) + onCopy :: forall eff props state result. (Event -> EventHandlerContext eff props state result) -> Props onCopy f = unsafeMkProps "onCopy" (handle f) @@ -498,6 +518,10 @@ onInput :: forall eff props state result. (Event -> EventHandlerContext eff props state result) -> Props onInput f = unsafeMkProps "onInput" (handle f) +onInvalid :: forall eff props state result. + (Event -> EventHandlerContext eff props state result) -> Props +onInvalid f = unsafeMkProps "onInvalid" (handle f) + onSubmit :: forall eff props state result. (Event -> EventHandlerContext eff props state result) -> Props onSubmit f = unsafeMkProps "onSubmit" (handle f) @@ -593,3 +617,6 @@ onScroll f = unsafeMkProps "onScroll" (handle f) onWheel :: forall eff props state result. (Event -> EventHandlerContext eff props state result) -> Props onWheel f = unsafeMkProps "onWheel" (handle f) + +suppressContentEditableWarning :: Boolean -> Props +suppressContentEditableWarning = unsafeMkProps "suppressContentEditableWarning"