@pelcro/react-pelcro-js 2.7.0-beta.5 → 2.7.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -10008,7 +10008,9 @@ const RegisterContainer = ({
10008
10008
  */
10009
10009
 
10010
10010
  function hasSecurityTokenEnabled$1() {
10011
- const hasSecuritySdkLoaded = Boolean(window.grecaptcha);
10011
+ var _window$Pelcro$site$r2;
10012
+
10013
+ const hasSecuritySdkLoaded = Boolean((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.security_key);
10012
10014
  return hasSecuritySdkLoaded;
10013
10015
  }
10014
10016
 
package/dist/index.esm.js CHANGED
@@ -9978,7 +9978,9 @@ const RegisterContainer = ({
9978
9978
  */
9979
9979
 
9980
9980
  function hasSecurityTokenEnabled$1() {
9981
- const hasSecuritySdkLoaded = Boolean(window.grecaptcha);
9981
+ var _window$Pelcro$site$r2;
9982
+
9983
+ const hasSecuritySdkLoaded = Boolean((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.security_key);
9982
9984
  return hasSecuritySdkLoaded;
9983
9985
  }
9984
9986
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "2.7.0-beta.5",
4
+ "version": "2.7.0-beta.6",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",