Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update react-modal #1319

Merged
merged 1 commit into from
Sep 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions react-modal/build.boot
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

(require '[cljsjs.boot-cljsjs.packaging :refer :all])

(def +lib-version+ "1.6.5")
(def +lib-version+ "2.3.2")

(def +version+ (str +lib-version+ "-0"))

Expand All @@ -25,7 +25,7 @@

(deftask download-react-modal []
(download :url (format "https://github.com/reactjs/react-modal/archive/v%s.zip" +lib-version+)
:checksum "6e1d66c3bb5bb349d58eef673b7da825"
:checksum "f91e3506bb45f918e557e9f66f8100e1"
:unzip true))

(deftask package []
Expand Down
139 changes: 93 additions & 46 deletions react-modal/resources/cljsjs/react-modal/common/react-modal.ext.js
Original file line number Diff line number Diff line change
@@ -1,50 +1,97 @@
/**********************************************************************
* Extern for ReactModal
* Generated by http://jmmk.github.io/javascript-externs-generator
**********************************************************************/
var ReactModal = {
"Modal": {
"propTypes": {
"isOpen": {
"isRequired": function () {}
},
"onAfterOpen": {
"isRequired": function () {}
},
"style": {
"isRequired": function () {}
},
"onRequestClose": {
"isRequired": function () {}
},
"closeTimeoutMS": {
"isRequired": function () {}
},
"shouldCloseOnOverlayClick": {
"isRequired": function () {}
},
"contentLabel": {
"isRequired": function () {}
},
},
"defaultProps": {
"isActive": {},
"onAfterOpen": function () {},
"style": {},
"onRequestClose": function () {},
"closeTimeoutMS": {},
"shouldCloseOnOverlayClick": {},
"contentLabel": {},
},
"defaultProps": {
"ariaHideApp": {},
"bodyOpenClassName": {},
"closeTimeoutMS": {},
"isOpen": {},
"parentSelector": function () {},
"portalClassName": {},
"shouldCloseOnOverlayClick": {},
"shouldFocusAfterRender": {}
},
"defaultStyles": {
"content": {
"WebkitOverflowScrolling": {},
"background": {},
"border": {},
"borderRadius": {},
"bottom": {},
"left": {},
"outline": {},
"overflow": {},
"padding": {},
"position": {},
"right": {},
"top": {}
},
"overlay": {
"backgroundColor": {},
"bottom": {},
"left": {},
"position": {},
"right": {},
"top": {}
}
},
"propTypes": {
"appElement": {
"isRequired": function () {}
},
"aria": {
"isRequired": function () {}
},
"ariaHideApp": {
"isRequired": function () {}
},
"bodyOpenClassName": {
"isRequired": function () {}
},
"className": {
"isRequired": function () {}
},
"closeTimeoutMS": {
"isRequired": function () {}
},
"contentLabel": function () {},
"isOpen": function () {},
"onAfterOpen": {
"isRequired": function () {}
},
"onRequestClose": {
"isRequired": function () {}
},
"overlayClassName": {
"isRequired": function () {}
},
"parentSelector": {
"isRequired": function () {}
},
"portalClassName": {
"isRequired": function () {}
},
"role": {
"isRequired": function () {}
},
"shouldCloseOnOverlayClick": {
"isRequired": function () {}
},
"shouldFocusAfter": {
"isRequired": function () {}
},
"style": {
"isRequired": function () {}
}
}
};


ReactModal.Modal.prototype = {
"isReactComponent": function () {},
"setState": function () {},
"forceUpdate": function () {}
};


ReactModal.default.prototype = {
"isReactComponent": function () {},
"setState": function () {},
"forceUpdate": function () {}
ReactModal.prototype = {
"forceUpdate": function () {},
"isReactComponent": function () {},
"setState": function () {}
};
/**********************************************************************
* End Generated Extern for ReactModal
/**********************************************************************/