@@ -44,7 +44,7 @@ exports[`Hcaptcha snapshot tests Theme test object 1`] = `
4444 <meta name = " viewport" content = " width=device-width, initial-scale=1.0" >
4545 <meta http-equiv = " X-UA-Compatible" content = " ie=edge" >
4646 <script type = " text/javascript" >
47- Object.entries({ " rnver_0_0_0" :true ," dep_mocked-md5" :true ," sdk_2_0_5 " :true } ).forEach(function (entry) { window [entry [0 ]] = entry [1 ] } )
47+ Object.entries({ " rnver_0_0_0" :true ," dep_mocked-md5" :true ," sdk_2_1_0 " :true } ).forEach(function (entry) { window [entry [0 ]] = entry [1 ] } )
4848 </script >
4949 <script src = " https://hcaptcha.com/1/api.js?render=explicit& onload=onloadCallback& host=00000000-0000-0000-0000-000000000000.react-native.hcaptcha.com& hl=en& custom=true" async defer ></script >
5050 <script type = " text/javascript" >
@@ -100,10 +100,19 @@ exports[`Hcaptcha snapshot tests Theme test object 1`] = `
100100 return config ;
101101 } ;
102102 const getExecuteOpts = function() {
103- var opts ;
103+ var opts = {} ;
104104 const rqdata = undefined ;
105+ const phonePrefix = null ;
106+ const phoneNumber = null ;
107+
105108 if (rqdata ) {
106- opts = {" rqdata" : rqdata };
109+ opts.rqdata = rqdata;
110+ }
111+ if (phonePrefix ) {
112+ opts.mfa_phoneprefix = phonePrefix;
113+ }
114+ if (phoneNumber ) {
115+ opts.mfa_phone = phoneNumber;
107116 }
108117 return opts ;
109118 } ;
@@ -172,7 +181,7 @@ exports[`Hcaptcha snapshot tests Theme test string 1`] = `
172181 <meta name = " viewport" content = " width=device-width, initial-scale=1.0" >
173182 <meta http-equiv = " X-UA-Compatible" content = " ie=edge" >
174183 <script type = " text/javascript" >
175- Object.entries({ " rnver_0_0_0" :true ," dep_mocked-md5" :true ," sdk_2_0_5 " :true } ).forEach(function (entry) { window [entry [0 ]] = entry [1 ] } )
184+ Object.entries({ " rnver_0_0_0" :true ," dep_mocked-md5" :true ," sdk_2_1_0 " :true } ).forEach(function (entry) { window [entry [0 ]] = entry [1 ] } )
176185 </script >
177186 <script src = " https://hcaptcha.com/1/api.js?render=explicit& onload=onloadCallback& host=00000000-0000-0000-0000-000000000000.react-native.hcaptcha.com& hl=en" async defer ></script >
178187 <script type = " text/javascript" >
@@ -228,10 +237,19 @@ exports[`Hcaptcha snapshot tests Theme test string 1`] = `
228237 return config ;
229238 } ;
230239 const getExecuteOpts = function() {
231- var opts ;
240+ var opts = {} ;
232241 const rqdata = undefined ;
242+ const phonePrefix = null ;
243+ const phoneNumber = null ;
244+
233245 if (rqdata ) {
234- opts = {" rqdata" : rqdata };
246+ opts.rqdata = rqdata;
247+ }
248+ if (phonePrefix ) {
249+ opts.mfa_phoneprefix = phonePrefix;
250+ }
251+ if (phoneNumber ) {
252+ opts.mfa_phone = phoneNumber;
235253 }
236254 return opts ;
237255 } ;
@@ -300,7 +318,7 @@ exports[`Hcaptcha snapshot tests Theme test undefined 1`] = `
300318 <meta name = " viewport" content = " width=device-width, initial-scale=1.0" >
301319 <meta http-equiv = " X-UA-Compatible" content = " ie=edge" >
302320 <script type = " text/javascript" >
303- Object.entries({ " rnver_0_0_0" :true ," dep_mocked-md5" :true ," sdk_2_0_5 " :true } ).forEach(function (entry) { window [entry [0 ]] = entry [1 ] } )
321+ Object.entries({ " rnver_0_0_0" :true ," dep_mocked-md5" :true ," sdk_2_1_0 " :true } ).forEach(function (entry) { window [entry [0 ]] = entry [1 ] } )
304322 </script >
305323 <script src = " https://hcaptcha.com/1/api.js?render=explicit& onload=onloadCallback& host=00000000-0000-0000-0000-000000000000.react-native.hcaptcha.com& hl=en" async defer ></script >
306324 <script type = " text/javascript" >
@@ -356,10 +374,19 @@ exports[`Hcaptcha snapshot tests Theme test undefined 1`] = `
356374 return config ;
357375 } ;
358376 const getExecuteOpts = function() {
359- var opts ;
377+ var opts = {} ;
360378 const rqdata = undefined ;
379+ const phonePrefix = null ;
380+ const phoneNumber = null ;
381+
361382 if (rqdata ) {
362- opts = {" rqdata" : rqdata };
383+ opts.rqdata = rqdata;
384+ }
385+ if (phonePrefix ) {
386+ opts.mfa_phoneprefix = phonePrefix;
387+ }
388+ if (phoneNumber ) {
389+ opts.mfa_phone = phoneNumber;
363390 }
364391 return opts ;
365392 } ;
@@ -428,7 +455,7 @@ exports[`Hcaptcha snapshot tests renders Hcaptcha with all props 1`] = `
428455 <meta name = " viewport" content = " width=device-width, initial-scale=1.0" >
429456 <meta http-equiv = " X-UA-Compatible" content = " ie=edge" >
430457 <script type = " text/javascript" >
431- Object.entries({ " rnver_0_0_0" :true ," dep_mocked-md5" :true ," sdk_2_0_5 " :true } ).forEach(function (entry) { window [entry [0 ]] = entry [1 ] } )
458+ Object.entries({ " rnver_0_0_0" :true ," dep_mocked-md5" :true ," sdk_2_1_0 " :true } ).forEach(function (entry) { window [entry [0 ]] = entry [1 ] } )
432459 </script >
433460 <script src = " https://all.props/api-endpoint?render=explicit& onload=onloadCallback& host=all-props-host& hl=fr& endpoint=https%3A%2F%2Fall.props%2Fendpoint& assethost=https%3A%2F%2Fall.props%2Fassethost& imghost=https%3A%2F%2Fall.props%2Fimghost& reportapi=https%3A%2F%2Fall.props%2Freportapi" async defer ></script >
434461 <script type = " text/javascript" >
@@ -484,10 +511,19 @@ exports[`Hcaptcha snapshot tests renders Hcaptcha with all props 1`] = `
484511 return config ;
485512 } ;
486513 const getExecuteOpts = function() {
487- var opts ;
514+ var opts = {} ;
488515 const rqdata = " {}" ;
516+ const phonePrefix = null ;
517+ const phoneNumber = null ;
518+
489519 if (rqdata ) {
490- opts = {" rqdata" : rqdata };
520+ opts.rqdata = rqdata;
521+ }
522+ if (phonePrefix ) {
523+ opts.mfa_phoneprefix = phonePrefix;
524+ }
525+ if (phoneNumber ) {
526+ opts.mfa_phone = phoneNumber;
491527 }
492528 return opts ;
493529 } ;
@@ -591,7 +627,7 @@ exports[`Hcaptcha snapshot tests renders Hcaptcha with debug 1`] = `
591627 <meta name = " viewport" content = " width=device-width, initial-scale=1.0" >
592628 <meta http-equiv = " X-UA-Compatible" content = " ie=edge" >
593629 <script type = " text/javascript" >
594- Object.entries({ " a" :1 ," rnver_0_0_0" :true ," dep_mocked-md5" :true ," sdk_2_0_5 " :true } ).forEach(function (entry) { window [entry [0 ]] = entry [1 ] } )
630+ Object.entries({ " a" :1 ," rnver_0_0_0" :true ," dep_mocked-md5" :true ," sdk_2_1_0 " :true } ).forEach(function (entry) { window [entry [0 ]] = entry [1 ] } )
595631 </script >
596632 <script src = " https://hcaptcha.com/1/api.js?render=explicit& onload=onloadCallback& host=00000000-0000-0000-0000-000000000000.react-native.hcaptcha.com& hl=en" async defer ></script >
597633 <script type = " text/javascript" >
@@ -647,10 +683,19 @@ exports[`Hcaptcha snapshot tests renders Hcaptcha with debug 1`] = `
647683 return config ;
648684 } ;
649685 const getExecuteOpts = function() {
650- var opts ;
686+ var opts = {} ;
651687 const rqdata = undefined ;
688+ const phonePrefix = null ;
689+ const phoneNumber = null ;
690+
652691 if (rqdata ) {
653- opts = {" rqdata" : rqdata };
692+ opts.rqdata = rqdata;
693+ }
694+ if (phonePrefix ) {
695+ opts.mfa_phoneprefix = phonePrefix;
696+ }
697+ if (phoneNumber ) {
698+ opts.mfa_phone = phoneNumber;
654699 }
655700 return opts ;
656701 } ;
@@ -775,10 +820,19 @@ exports[`Hcaptcha snapshot tests renders Hcaptcha with minimum props 1`] = `
775820 return config ;
776821 } ;
777822 const getExecuteOpts = function() {
778- var opts ;
823+ var opts = {} ;
779824 const rqdata = undefined ;
825+ const phonePrefix = null ;
826+ const phoneNumber = null ;
827+
780828 if (rqdata ) {
781- opts = {" rqdata" : rqdata };
829+ opts.rqdata = rqdata;
830+ }
831+ if (phonePrefix ) {
832+ opts.mfa_phoneprefix = phonePrefix;
833+ }
834+ if (phoneNumber ) {
835+ opts.mfa_phone = phoneNumber;
782836 }
783837 return opts ;
784838 } ;
0 commit comments