@google-recaptcha/react
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../_rollupPluginBabelHelpers-CMomSfla.js"),r=require("react"),t=require("../removeGoogleReCaptchaContainer-CibKk-Zp.js"),a=require("../context/useGoogleReCaptcha.js"),o=require("../utils/hooks/useIsomorphicLayoutEffect.js");require("../context/GoogleReCaptchaContext.js");var c=["id","onChange","action","errorCallback","expiredCallback","size","theme","language"],l=function(l){var i=l.id,n=void 0===i?"google-recaptcha-checkbox-container":i,u=l.onChange,s=l.action,p=l.errorCallback,d=l.expiredCallback,h=l.size,g=l.theme,b=l.language,C=e._objectWithoutProperties(l,c),f=a.useGoogleReCaptcha(),x=f.siteKey,k=f.render,j=f.language,m=r.useRef(null);return o.useIsomorphicLayoutEffect((function(){if(k){var r=document.createElement("div"),a=e._objectSpread2(e._objectSpread2(e._objectSpread2({sitekey:x,callback:u},(null!=b?b:j)&&{hl:null!=b?b:j}),s&&{action:s}),{},{"expired-callback":d,"error-callback":p,size:h,theme:g});return k(r,a),m.current&&m.current.appendChild(r),function(){t.e(n)}}}),[k,b,u,n,x,h,s,g]),r.createElement("div",e._extends({id:n,ref:m},C))};exports.GoogleReCaptchaCheckbox=l,exports.default=l; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../_rollupPluginBabelHelpers-COAzkJsg.js"),r=require("react"),t=require("../removeGoogleReCaptchaContainer-DbYAWtcX.js"),a=require("../context/useGoogleReCaptcha.js"),o=require("../utils/hooks/useIsomorphicLayoutEffect.js");require("../context/GoogleReCaptchaContext.js");var c=["id","onChange","action","errorCallback","expiredCallback","size","theme","language"],l=function(l){var i=l.id,n=void 0===i?"google-recaptcha-checkbox-container":i,u=l.onChange,s=l.action,p=l.errorCallback,d=l.expiredCallback,h=l.size,g=l.theme,b=l.language,C=e._objectWithoutProperties(l,c),f=a.useGoogleReCaptcha(),x=f.siteKey,k=f.render,j=f.language,m=r.useRef(null);return o.useIsomorphicLayoutEffect((function(){if(k){var r=document.createElement("div"),a=e._objectSpread2(e._objectSpread2(e._objectSpread2({sitekey:x,callback:u},(null!=b?b:j)&&{hl:null!=b?b:j}),s&&{action:s}),{},{"expired-callback":d,"error-callback":p,size:h,theme:g});return k(r,a),m.current&&m.current.appendChild(r),function(){t.e(n)}}}),[k,b,u,n,x,h,s,g]),r.createElement("div",e._extends({id:n,ref:m},C))};exports.GoogleReCaptchaCheckbox=l,exports.default=l; | ||
//# sourceMappingURL=GoogleReCaptchaCheckbox.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
"use strict";var e=require("./GoogleReCaptchaCheckbox.js");require("../_rollupPluginBabelHelpers-CMomSfla.js"),require("react"),require("../removeGoogleReCaptchaContainer-CibKk-Zp.js"),require("../context/useGoogleReCaptcha.js"),require("../context/GoogleReCaptchaContext.js"),require("../utils/hooks/useIsomorphicLayoutEffect.js"),exports.GoogleReCaptchaCheckbox=e.GoogleReCaptchaCheckbox; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
"use strict";var e=require("./GoogleReCaptchaCheckbox.js");require("../_rollupPluginBabelHelpers-COAzkJsg.js"),require("react"),require("../removeGoogleReCaptchaContainer-DbYAWtcX.js"),require("../context/useGoogleReCaptcha.js"),require("../context/GoogleReCaptchaContext.js"),require("../utils/hooks/useIsomorphicLayoutEffect.js"),exports.GoogleReCaptchaCheckbox=e.GoogleReCaptchaCheckbox; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
"use strict";var e=require("react"),o="GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider",t=e.createContext({googleReCaptcha:{},siteKey:"",language:"",isLoading:!0,executeV3:function(){throw Error(o)},executeV2Invisible:function(){throw Error(o)},reset:function(){throw Error(o)},getResponse:function(){throw Error(o)},render:function(){throw Error(o)}}),r=t.Provider,n=t.Consumer;exports.GoogleReCaptchaContext=t,exports.GoogleReCaptchaContextConsumer=n,exports.GoogleReCaptchaContextProvider=r; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
"use strict";var e=require("react"),o="GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider",t=e.createContext({googleReCaptcha:{},siteKey:"",language:"",isLoading:!0,executeV3:function(){throw new Error(o)},executeV2Invisible:function(){throw new Error(o)},reset:function(){throw new Error(o)},getResponse:function(){throw new Error(o)},render:function(){throw new Error(o)}}),r=t.Provider,n=t.Consumer;exports.GoogleReCaptchaContext=t,exports.GoogleReCaptchaContextConsumer=n,exports.GoogleReCaptchaContextProvider=r; | ||
//# sourceMappingURL=GoogleReCaptchaContext.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
"use strict";require("../_rollupPluginBabelHelpers-CMomSfla.js"),require("react");var e=require("../GoogleReCaptchaProvider-l2M_68DR.js");require("../removeGoogleReCaptchaContainer-CibKk-Zp.js"),require("./GoogleReCaptchaContext.js"),exports.GoogleReCaptchaProvider=e.GoogleReCaptchaProvider; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
"use strict";require("../_rollupPluginBabelHelpers-COAzkJsg.js"),require("react");var e=require("../GoogleReCaptchaProvider-tUSreHgS.js");require("../removeGoogleReCaptchaContainer-DbYAWtcX.js"),require("./GoogleReCaptchaContext.js"),exports.GoogleReCaptchaProvider=e.GoogleReCaptchaProvider; | ||
//# sourceMappingURL=GoogleReCaptchaProvider.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
"use strict";var e=require("../GoogleReCaptchaProvider-l2M_68DR.js"),o=require("./useGoogleReCaptcha.js"),r=require("./withGoogleReCaptcha.js");require("../_rollupPluginBabelHelpers-CMomSfla.js"),require("react"),require("../removeGoogleReCaptchaContainer-CibKk-Zp.js"),require("./GoogleReCaptchaContext.js"),exports.GoogleReCaptchaProvider=e.GoogleReCaptchaProvider,exports.useGoogleReCaptcha=o.useGoogleReCaptcha,exports.withGoogleReCaptcha=r.withGoogleReCaptcha; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
"use strict";var e=require("../GoogleReCaptchaProvider-tUSreHgS.js"),o=require("./useGoogleReCaptcha.js"),r=require("./withGoogleReCaptcha.js");require("../_rollupPluginBabelHelpers-COAzkJsg.js"),require("react"),require("../removeGoogleReCaptchaContainer-DbYAWtcX.js"),require("./GoogleReCaptchaContext.js"),exports.GoogleReCaptchaProvider=e.GoogleReCaptchaProvider,exports.useGoogleReCaptcha=o.useGoogleReCaptcha,exports.withGoogleReCaptcha=r.withGoogleReCaptcha; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
"use strict";var e=require("react"),t=require("./GoogleReCaptchaContext.js");exports.useGoogleReCaptcha=function(){return e.useContext(t.GoogleReCaptchaContext)}; | ||
//# sourceMappingURL=useGoogleReCaptcha.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
"use strict";var e=require("../_rollupPluginBabelHelpers-CMomSfla.js"),t=require("react"),a=require("./GoogleReCaptchaContext.js");exports.withGoogleReCaptcha=function(r){var n=function(n){return t.createElement(a.GoogleReCaptchaContextConsumer,null,(function(a){return t.createElement(r,e._extends({},n,{googleReCaptcha:a}))}))};return n.displayName="withGoogleReCaptcha(".concat(r.displayName||r.name||"Component",")"),n}; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
"use strict";var e=require("../_rollupPluginBabelHelpers-COAzkJsg.js"),t=require("react"),a=require("./GoogleReCaptchaContext.js");exports.withGoogleReCaptcha=function(r){var n=function(n){return t.createElement(a.GoogleReCaptchaContextConsumer,null,(function(a){return t.createElement(r,e._extends({},n,{googleReCaptcha:a}))}))};return n.displayName="withGoogleReCaptcha(".concat(r.displayName||r.name||"Component",")"),n}; | ||
//# sourceMappingURL=withGoogleReCaptcha.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
"use strict";var e=require("./components/GoogleReCaptchaCheckbox.js"),o=require("./GoogleReCaptchaProvider-l2M_68DR.js"),t=require("./context/useGoogleReCaptcha.js"),a=require("./context/withGoogleReCaptcha.js");require("./_rollupPluginBabelHelpers-CMomSfla.js"),require("react"),require("./removeGoogleReCaptchaContainer-CibKk-Zp.js"),require("./utils/hooks/useIsomorphicLayoutEffect.js"),require("./context/GoogleReCaptchaContext.js"),exports.GoogleReCaptchaCheckbox=e.GoogleReCaptchaCheckbox,exports.GoogleReCaptchaProvider=o.GoogleReCaptchaProvider,exports.generateGoogleReCaptchaHiddenBadgeStyles=o.a,exports.generateGoogleReCaptchaScriptSrc=o.a$1,exports.useGoogleReCaptcha=t.useGoogleReCaptcha,exports.withGoogleReCaptcha=a.withGoogleReCaptcha; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
"use strict";var e=require("./components/GoogleReCaptchaCheckbox.js"),o=require("./GoogleReCaptchaProvider-tUSreHgS.js"),t=require("./context/useGoogleReCaptcha.js"),a=require("./context/withGoogleReCaptcha.js");require("./_rollupPluginBabelHelpers-COAzkJsg.js"),require("react"),require("./removeGoogleReCaptchaContainer-DbYAWtcX.js"),require("./utils/hooks/useIsomorphicLayoutEffect.js"),require("./context/GoogleReCaptchaContext.js"),exports.GoogleReCaptchaCheckbox=e.GoogleReCaptchaCheckbox,exports.GoogleReCaptchaProvider=o.GoogleReCaptchaProvider,exports.generateGoogleReCaptchaHiddenBadgeStyles=o.a,exports.generateGoogleReCaptchaScriptSrc=o.a$1,exports.useGoogleReCaptcha=t.useGoogleReCaptcha,exports.withGoogleReCaptcha=a.withGoogleReCaptcha; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
"use strict";var e=require("./useIsomorphicLayoutEffect.js");require("react"),exports.useIsomorphicLayoutEffect=e.useIsomorphicLayoutEffect; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
"use strict";var e=require("react"),t="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;exports.useIsomorphicLayoutEffect=t; | ||
//# sourceMappingURL=useIsomorphicLayoutEffect.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
"use strict";var e=require("./hooks/useIsomorphicLayoutEffect.js");require("react"),exports.useIsomorphicLayoutEffect=e.useIsomorphicLayoutEffect; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
import{a as e,b as a,_ as r}from"../_rollupPluginBabelHelpers-CUIVQTB-.js";import o from"react";import{e as t}from"../removeGoogleReCaptchaContainer-H85kMNBn.js";import{useGoogleReCaptcha as l}from"../context/useGoogleReCaptcha.js";import{useIsomorphicLayoutEffect as n}from"../utils/hooks/useIsomorphicLayoutEffect.js";import"../context/GoogleReCaptchaContext.js";var c=["id","onChange","action","errorCallback","expiredCallback","size","theme","language"],i=function(i){var u=i.id,s=void 0===u?"google-recaptcha-checkbox-container":u,m=i.onChange,p=i.action,d=i.errorCallback,f=i.expiredCallback,g=i.size,h=i.theme,C=i.language,b=e(i,c),k=l(),x=k.siteKey,v=k.render,j=k.language,R=o.useRef(null);return n((function(){if(v){var e=document.createElement("div"),r=a(a(a({sitekey:x,callback:m},(null!=C?C:j)&&{hl:null!=C?C:j}),p&&{action:p}),{},{"expired-callback":f,"error-callback":d,size:g,theme:h});return v(e,r),R.current&&R.current.appendChild(e),function(){t(s)}}}),[v,C,m,s,x,g,p,h]),o.createElement("div",r({id:s,ref:R},b))};export{i as GoogleReCaptchaCheckbox,i as default}; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
import{a as e,b as a,_ as r}from"../_rollupPluginBabelHelpers-CFdoDcNl.js";import o from"react";import{e as t}from"../removeGoogleReCaptchaContainer-GFJp_jTT.js";import{useGoogleReCaptcha as l}from"../context/useGoogleReCaptcha.js";import{useIsomorphicLayoutEffect as n}from"../utils/hooks/useIsomorphicLayoutEffect.js";import"../context/GoogleReCaptchaContext.js";var c=["id","onChange","action","errorCallback","expiredCallback","size","theme","language"],i=function(i){var u=i.id,s=void 0===u?"google-recaptcha-checkbox-container":u,m=i.onChange,p=i.action,d=i.errorCallback,f=i.expiredCallback,g=i.size,h=i.theme,C=i.language,b=e(i,c),k=l(),x=k.siteKey,v=k.render,j=k.language,R=o.useRef(null);return n((function(){if(v){var e=document.createElement("div"),r=a(a(a({sitekey:x,callback:m},(null!=C?C:j)&&{hl:null!=C?C:j}),p&&{action:p}),{},{"expired-callback":f,"error-callback":d,size:g,theme:h});return v(e,r),R.current&&R.current.appendChild(e),function(){t(s)}}}),[v,C,m,s,x,g,p,h]),o.createElement("div",r({id:s,ref:R},b))};export{i as GoogleReCaptchaCheckbox,i as default}; | ||
//# sourceMappingURL=GoogleReCaptchaCheckbox.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
export{GoogleReCaptchaCheckbox}from"./GoogleReCaptchaCheckbox.js";import"../_rollupPluginBabelHelpers-CUIVQTB-.js";import"react";import"../removeGoogleReCaptchaContainer-H85kMNBn.js";import"../context/useGoogleReCaptcha.js";import"../context/GoogleReCaptchaContext.js";import"../utils/hooks/useIsomorphicLayoutEffect.js"; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
export{GoogleReCaptchaCheckbox}from"./GoogleReCaptchaCheckbox.js";import"../_rollupPluginBabelHelpers-CFdoDcNl.js";import"react";import"../removeGoogleReCaptchaContainer-GFJp_jTT.js";import"../context/useGoogleReCaptcha.js";import"../context/GoogleReCaptchaContext.js";import"../utils/hooks/useIsomorphicLayoutEffect.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
import{createContext as e}from"react";var o="GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider",r=e({googleReCaptcha:{},siteKey:"",language:"",isLoading:!0,executeV3:function(){throw Error(o)},executeV2Invisible:function(){throw Error(o)},reset:function(){throw Error(o)},getResponse:function(){throw Error(o)},render:function(){throw Error(o)}}),t=r.Provider,n=r.Consumer;export{r as GoogleReCaptchaContext,n as GoogleReCaptchaContextConsumer,t as GoogleReCaptchaContextProvider}; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
import{createContext as e}from"react";var o="GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider",r=e({googleReCaptcha:{},siteKey:"",language:"",isLoading:!0,executeV3:function(){throw new Error(o)},executeV2Invisible:function(){throw new Error(o)},reset:function(){throw new Error(o)},getResponse:function(){throw new Error(o)},render:function(){throw new Error(o)}}),n=r.Provider,t=r.Consumer;export{r as GoogleReCaptchaContext,t as GoogleReCaptchaContextConsumer,n as GoogleReCaptchaContextProvider}; | ||
//# sourceMappingURL=GoogleReCaptchaContext.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
import"../_rollupPluginBabelHelpers-CUIVQTB-.js";import"react";export{G as GoogleReCaptchaProvider}from"../GoogleReCaptchaProvider-BlKu8HNi.js";import"../removeGoogleReCaptchaContainer-H85kMNBn.js";import"./GoogleReCaptchaContext.js"; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
import"../_rollupPluginBabelHelpers-CFdoDcNl.js";import"react";export{G as GoogleReCaptchaProvider}from"../GoogleReCaptchaProvider-CTPyyLDV.js";import"../removeGoogleReCaptchaContainer-GFJp_jTT.js";import"./GoogleReCaptchaContext.js"; | ||
//# sourceMappingURL=GoogleReCaptchaProvider.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
export{G as GoogleReCaptchaProvider}from"../GoogleReCaptchaProvider-BlKu8HNi.js";export{useGoogleReCaptcha}from"./useGoogleReCaptcha.js";export{withGoogleReCaptcha}from"./withGoogleReCaptcha.js";import"../_rollupPluginBabelHelpers-CUIVQTB-.js";import"react";import"../removeGoogleReCaptchaContainer-H85kMNBn.js";import"./GoogleReCaptchaContext.js"; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
export{G as GoogleReCaptchaProvider}from"../GoogleReCaptchaProvider-CTPyyLDV.js";export{useGoogleReCaptcha}from"./useGoogleReCaptcha.js";export{withGoogleReCaptcha}from"./withGoogleReCaptcha.js";import"../_rollupPluginBabelHelpers-CFdoDcNl.js";import"react";import"../removeGoogleReCaptchaContainer-GFJp_jTT.js";import"./GoogleReCaptchaContext.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
import t from"react";import{GoogleReCaptchaContext as o}from"./GoogleReCaptchaContext.js";var r=function(){return t.useContext(o)};export{r as useGoogleReCaptcha}; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
import{useContext as o}from"react";import{GoogleReCaptchaContext as r}from"./GoogleReCaptchaContext.js";var t=function(){return o(r)};export{t as useGoogleReCaptcha}; | ||
//# sourceMappingURL=useGoogleReCaptcha.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
import{_ as e}from"../_rollupPluginBabelHelpers-CUIVQTB-.js";import t from"react";import{GoogleReCaptchaContextConsumer as o}from"./GoogleReCaptchaContext.js";var r=function(r){var a=function(a){return t.createElement(o,null,(function(o){return t.createElement(r,e({},a,{googleReCaptcha:o}))}))};return a.displayName="withGoogleReCaptcha(".concat(r.displayName||r.name||"Component",")"),a};export{r as withGoogleReCaptcha}; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
import{_ as e}from"../_rollupPluginBabelHelpers-CFdoDcNl.js";import t from"react";import{GoogleReCaptchaContextConsumer as o}from"./GoogleReCaptchaContext.js";var r=function(r){var a=function(a){return t.createElement(o,null,(function(o){return t.createElement(r,e({},a,{googleReCaptcha:o}))}))};return a.displayName="withGoogleReCaptcha(".concat(r.displayName||r.name||"Component",")"),a};export{r as withGoogleReCaptcha}; | ||
//# sourceMappingURL=withGoogleReCaptcha.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
export{GoogleReCaptchaCheckbox}from"./components/GoogleReCaptchaCheckbox.js";export{G as GoogleReCaptchaProvider,a as generateGoogleReCaptchaHiddenBadgeStyles,b as generateGoogleReCaptchaScriptSrc}from"./GoogleReCaptchaProvider-BlKu8HNi.js";export{useGoogleReCaptcha}from"./context/useGoogleReCaptcha.js";export{withGoogleReCaptcha}from"./context/withGoogleReCaptcha.js";import"./_rollupPluginBabelHelpers-CUIVQTB-.js";import"react";import"./removeGoogleReCaptchaContainer-H85kMNBn.js";import"./utils/hooks/useIsomorphicLayoutEffect.js";import"./context/GoogleReCaptchaContext.js"; | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
export{GoogleReCaptchaCheckbox}from"./components/GoogleReCaptchaCheckbox.js";export{G as GoogleReCaptchaProvider,a as generateGoogleReCaptchaHiddenBadgeStyles,b as generateGoogleReCaptchaScriptSrc}from"./GoogleReCaptchaProvider-CTPyyLDV.js";export{useGoogleReCaptcha}from"./context/useGoogleReCaptcha.js";export{withGoogleReCaptcha}from"./context/withGoogleReCaptcha.js";import"./_rollupPluginBabelHelpers-CFdoDcNl.js";import"react";import"./removeGoogleReCaptchaContainer-GFJp_jTT.js";import"./utils/hooks/useIsomorphicLayoutEffect.js";import"./context/GoogleReCaptchaContext.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
export{useIsomorphicLayoutEffect}from"./useIsomorphicLayoutEffect.js";import"react"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
import{useLayoutEffect as e,useEffect as o}from"react";var r="undefined"!=typeof window?e:o;export{r as useIsomorphicLayoutEffect}; | ||
//# sourceMappingURL=useIsomorphicLayoutEffect.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license @google-recaptcha/react v1.0.4 */ | ||
/* @license @google-recaptcha/react v1.1.0 */ | ||
export{useIsomorphicLayoutEffect}from"./hooks/useIsomorphicLayoutEffect.js";import"react"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import React, { ComponentProps } from 'react'; | ||
import react, { ComponentProps, FC, ReactNode, ComponentType } from 'react'; | ||
import { GoogleReCaptcha, ContainerId, Container } from '@google-recaptcha/core'; | ||
@@ -21,3 +21,3 @@ export { generateGoogleReCaptchaHiddenBadgeStyles, generateGoogleReCaptchaScriptSrc } from '@google-recaptcha/core'; | ||
* @param {string} props.id - The ID of the checkbox container. | ||
* @param {function} props.onChange - The callback function triggered when the checkbox value changes. | ||
* @param {Function} props.onChange - The callback function triggered when the checkbox value changes. | ||
* @param {string} props.action - The action to be performed when the checkbox is clicked. | ||
@@ -27,3 +27,3 @@ * @param {string} props.language - The language for the reCAPTCHA widget. | ||
*/ | ||
declare const GoogleReCaptchaCheckbox: React.FC<GoogleReCaptchaCheckboxProps>; | ||
declare const GoogleReCaptchaCheckbox: react.FC<GoogleReCaptchaCheckboxProps>; | ||
@@ -37,3 +37,3 @@ interface GoogleReCaptchaDefaultProviderProps { | ||
host?: GoogleReCaptcha.Host; | ||
children?: React.ReactNode; | ||
children?: ReactNode; | ||
scriptProps?: GoogleReCaptcha.Script; | ||
@@ -77,3 +77,3 @@ } | ||
*/ | ||
declare const GoogleReCaptchaProvider: React.FC<GoogleReCaptchaProviderProps>; | ||
declare const GoogleReCaptchaProvider: FC<GoogleReCaptchaProviderProps>; | ||
@@ -97,4 +97,4 @@ interface GoogleReCaptchaContextProps { | ||
} | ||
declare const withGoogleReCaptcha: <OwnProps>(Component: React.ComponentType<OwnProps & WithGoogleReCaptchaParams>) => { | ||
(props: OwnProps & Partial<WithGoogleReCaptchaParams>): React.JSX.Element; | ||
declare const withGoogleReCaptcha: <OwnProps>(Component: ComponentType<OwnProps & WithGoogleReCaptchaParams>) => { | ||
(props: OwnProps & Partial<WithGoogleReCaptchaParams>): react.JSX.Element; | ||
displayName: string; | ||
@@ -101,0 +101,0 @@ }; |
{ | ||
"name": "@google-recaptcha/react", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "Tool that easily and quickly add Google ReCaptcha for your website or application\n", | ||
@@ -20,5 +20,10 @@ "author": { | ||
"license": "MIT", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/index.d.ts", | ||
"homepage": "https://github.com/siberiacancode/google-recaptcha", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/siberiacancode/google-recaptcha" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/siberiacancode/google-recaptcha/issues" | ||
}, | ||
"keywords": [ | ||
@@ -36,10 +41,5 @@ "google recaptcha", | ||
], | ||
"homepage": "https://github.com/siberiacancode/google-recaptcha", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/siberiacancode/google-recaptcha" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/siberiacancode/google-recaptcha/issues" | ||
}, | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
@@ -54,16 +54,9 @@ "dist/**/*" | ||
"build": "shx rm -rf dist && rollup -c --bundleConfigAsCjs", | ||
"lint": "eslint . --ext ts --ext tsx --no-error-on-unmatched-pattern --fix", | ||
"lint": "eslint . --fix", | ||
"format": "prettier --write **/*.{ts,tsx,js,jsx}", | ||
"type": "tsc --noEmit", | ||
"pretty": "yarn type && yarn format && yarn lint", | ||
"unit-test": "jest", | ||
"unit-test": "vitest", | ||
"storybook": "storybook dev -p 6010" | ||
}, | ||
"lint-staged": { | ||
"*.js": "prettier --write", | ||
"*.{ts,tsx}": [ | ||
"prettier --write", | ||
"eslint --no-error-on-unmatched-pattern --fix" | ||
] | ||
}, | ||
"peerDependencies": { | ||
@@ -82,31 +75,35 @@ "@types/react": "^18.0.0", | ||
"devDependencies": { | ||
"@siberiacancode/builder": "^1.3.1", | ||
"@siberiacancode/eslint": "^1.1.1", | ||
"@siberiacancode/jest": "^1.1.1", | ||
"@siberiacancode/builder": "^1.3.10", | ||
"@siberiacancode/eslint": "^2.1.0", | ||
"@siberiacancode/prettier": "^1.1.1", | ||
"@storybook/addon-actions": "^8.1.10", | ||
"@storybook/addon-essentials": "^8.1.10", | ||
"@storybook/addon-interactions": "^8.1.10", | ||
"@storybook/addon-links": "^8.1.10", | ||
"@storybook/react": "^8.1.10", | ||
"@storybook/react-vite": "^8.1.10", | ||
"@storybook/testing-library": "^0.2.2", | ||
"@testing-library/jest-dom": "^6.4.6", | ||
"@siberiacancode/vitest": "^1.2.4", | ||
"@storybook/addon-actions": "^8.2.9", | ||
"@storybook/addon-essentials": "^8.2.9", | ||
"@storybook/addon-interactions": "^8.2.9", | ||
"@storybook/addon-links": "^8.2.9", | ||
"@storybook/react": "^8.2.9", | ||
"@storybook/react-vite": "^8.2.9", | ||
"@testing-library/react": "^16.0.0", | ||
"@types/jest": "^29.5.12", | ||
"@types/react": "18.3.3", | ||
"husky": "^9.0.11", | ||
"husky": "^9.1.4", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"lint-staged": "^15.2.7", | ||
"lint-staged": "^15.2.9", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"shx": "^0.3.4", | ||
"storybook": "^8.1.10", | ||
"storybook": "^8.2.9", | ||
"ts-loader": "^9.5.1", | ||
"typescript": "^5.5.2", | ||
"vite": "^5.3.1" | ||
"typescript": "^5.5.4", | ||
"vite": "^5.4.1" | ||
}, | ||
"resolutions": { | ||
"jackspeak": "2.1.1" | ||
}, | ||
"lint-staged": { | ||
"*.js": "prettier --write", | ||
"*.{ts,tsx}": [ | ||
"prettier --write", | ||
"eslint --no-error-on-unmatched-pattern --fix" | ||
] | ||
} | ||
} |
@@ -341,3 +341,3 @@ # 🔑 React Google ReCaptcha | ||
<img src="https://avatars.githubusercontent.com/u/45297354?v=4" | ||
width="100;" | ||
width="100;" | ||
alt="debabin" /> | ||
@@ -351,3 +351,3 @@ <br /> | ||
<img src="https://avatars.githubusercontent.com/u/39154399?s=400&u=7c4fcc6d120f4b13ccbd03a9a384622b6523c376&v=4" | ||
width="100;" | ||
width="100;" | ||
alt="anv296" /> | ||
@@ -354,0 +354,0 @@ <br /> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
22
143486