From 49ca92df4a905c88798765ee4450f57cb53cb864 Mon Sep 17 00:00:00 2001 From: Patrick Stadler Date: Fri, 27 Nov 2020 12:44:09 +0100 Subject: [PATCH] publish 3.0.2 --- lib/main.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.js b/lib/main.js index 0f62630..0708298 100644 --- a/lib/main.js +++ b/lib/main.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Lightbox=e(require("react")):t.Lightbox=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(5),u=function(t){return t&&t.__esModule?t:{default:t}}(o),a=function(t){return t?"https://pay.datatrans.com/upp/payment/js/datatrans-2.0.0.min.js":"https://pay.sandbox.datatrans.com/upp/payment/js/datatrans-2.0.0.min.js"},c=function(t){window.Datatrans.startPayment({transactionId:t.transactionId,loaded:t.onLoaded,opened:t.onOpened,closed:t.onCancelled,error:t.onError})},i=function(){window.Datatrans&&window.setTimeout(function(){try{window.Datatrans.close()}catch(t){}},1)},s=function(t){return(0,r.useEffect)(function(){var e=t.production,n=a(e);if(document.querySelector('script[src="'+n+'"]'))return c(t),i;var r=document.createElement("script");return r.src=n,r.onload=function(){c(t)},document.body.appendChild(r),i}),null};e.default=s,s.propTypes={transactionId:u.default.string.isRequired,production:u.default.bool,onLoaded:u.default.func,onOpened:u.default.func,onCancelled:u.default.func,onError:u.default.func},s.defaultProps={onLoaded:function(){},onOpened:function(){},onCancelled:function(){},onError:function(){},production:!1}},function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){"use strict";function r(t,e,n,r,u,a,c,i){if(o(e),!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,r,u,a,c,i],d=0;s=new Error(e.replace(/%s/g,function(){return f[d++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var o=function(t){};t.exports=r},function(t,e,n){"use strict";var r=n(2),o=n(3),u=n(6);t.exports=function(){function t(t,e,n,r,a,c){c!==u&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){t.exports=n(4)()},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,n){e.exports=t},function(t,e,n){t.exports=n(0)}])}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Lightbox=e(require("react")):t.Lightbox=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(5),u=function(t){return t&&t.__esModule?t:{default:t}}(o),a=function(t){return t?"https://pay.datatrans.com/upp/payment/js/datatrans-2.0.0.min.js":"https://pay.sandbox.datatrans.com/upp/payment/js/datatrans-2.0.0.min.js"},c=function(t){window.Datatrans.startPayment({transactionId:t.transactionId,loaded:t.onLoaded,opened:t.onOpened,closed:t.onCancelled,error:t.onError})},i=function(){if(window.Datatrans)try{window.Datatrans.close()}catch(t){}},s=function(t){return(0,r.useEffect)(function(){var e=t.production,n=a(e);if(document.querySelector('script[src="'+n+'"]'))return c(t),i;var r=document.createElement("script");return r.src=n,r.onload=function(){c(t)},document.body.appendChild(r),i},[]),null};e.default=s,s.propTypes={transactionId:u.default.string.isRequired,production:u.default.bool,onLoaded:u.default.func,onOpened:u.default.func,onCancelled:u.default.func,onError:u.default.func},s.defaultProps={onLoaded:function(){},onOpened:function(){},onCancelled:function(){},onError:function(){},production:!1}},function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){"use strict";function r(t,e,n,r,u,a,c,i){if(o(e),!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,r,u,a,c,i],d=0;s=new Error(e.replace(/%s/g,function(){return f[d++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var o=function(t){};t.exports=r},function(t,e,n){"use strict";var r=n(2),o=n(3),u=n(6);t.exports=function(){function t(t,e,n,r,a,c){c!==u&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){t.exports=n(4)()},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,n){e.exports=t},function(t,e,n){t.exports=n(0)}])}); \ No newline at end of file diff --git a/package.json b/package.json index 8c1bfe7..b802601 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-datatrans-light-box", - "version": "3.0.0", + "version": "3.0.2", "description": "Datatrans Lightbox component for React apps", "main": "lib/main.js", "keywords": [