From d67d812f0e920445eb8bd2c9ccff5cb10459d411 Mon Sep 17 00:00:00 2001 From: hlolli Date: Thu, 7 Sep 2017 12:02:10 +0200 Subject: [PATCH] update react-modal --- react-modal/build.boot | 4 +- .../react-modal/common/react-modal.ext.js | 139 ++++++++++++------ 2 files changed, 95 insertions(+), 48 deletions(-) diff --git a/react-modal/build.boot b/react-modal/build.boot index e7fc5eb6d..894ac9b1a 100644 --- a/react-modal/build.boot +++ b/react-modal/build.boot @@ -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")) @@ -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 [] diff --git a/react-modal/resources/cljsjs/react-modal/common/react-modal.ext.js b/react-modal/resources/cljsjs/react-modal/common/react-modal.ext.js index 8519ac520..ebd9b17e8 100644 --- a/react-modal/resources/cljsjs/react-modal/common/react-modal.ext.js +++ b/react-modal/resources/cljsjs/react-modal/common/react-modal.ext.js @@ -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 +/**********************************************************************/ \ No newline at end of file