@dynamic-labs/sdk-react-core 3.0.0-alpha.30 → 3.0.0-alpha.31

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/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ ## [3.0.0-alpha.31](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.30...v3.0.0-alpha.31) (2024-07-27)
3
+
2
4
  ## [3.0.0-alpha.30](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.29...v3.0.0-alpha.30) (2024-07-27)
3
5
 
4
6
 
package/package.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "3.0.0-alpha.30";
6
+ var version = "3.0.0-alpha.31";
7
7
  var dependencies = {
8
8
  "@dynamic-labs/sdk-api-core": "0.0.497",
9
9
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- var version = "3.0.0-alpha.30";
2
+ var version = "3.0.0-alpha.31";
3
3
  var dependencies = {
4
4
  "@dynamic-labs/sdk-api-core": "0.0.497",
5
5
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-react-core",
3
- "version": "3.0.0-alpha.30",
3
+ "version": "3.0.0-alpha.31",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -17,16 +17,16 @@
17
17
  "react-i18next": "13.5.0",
18
18
  "yup": "0.32.11",
19
19
  "react-international-phone": "4.2.5",
20
- "@dynamic-labs/iconic": "3.0.0-alpha.30",
21
- "@dynamic-labs/logger": "3.0.0-alpha.30",
22
- "@dynamic-labs/message-transport": "3.0.0-alpha.30",
23
- "@dynamic-labs/multi-wallet": "3.0.0-alpha.30",
24
- "@dynamic-labs/rpc-providers": "3.0.0-alpha.30",
25
- "@dynamic-labs/store": "3.0.0-alpha.30",
26
- "@dynamic-labs/types": "3.0.0-alpha.30",
27
- "@dynamic-labs/utils": "3.0.0-alpha.30",
28
- "@dynamic-labs/wallet-book": "3.0.0-alpha.30",
29
- "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.30",
20
+ "@dynamic-labs/iconic": "3.0.0-alpha.31",
21
+ "@dynamic-labs/logger": "3.0.0-alpha.31",
22
+ "@dynamic-labs/message-transport": "3.0.0-alpha.31",
23
+ "@dynamic-labs/multi-wallet": "3.0.0-alpha.31",
24
+ "@dynamic-labs/rpc-providers": "3.0.0-alpha.31",
25
+ "@dynamic-labs/store": "3.0.0-alpha.31",
26
+ "@dynamic-labs/types": "3.0.0-alpha.31",
27
+ "@dynamic-labs/utils": "3.0.0-alpha.31",
28
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.31",
29
+ "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.31",
30
30
  "eventemitter3": "5.0.1"
31
31
  },
32
32
  "devDependencies": {
@@ -90,14 +90,14 @@ require('../../../context/ConnectWithOtpContext/constants.cjs');
90
90
  require('../../../context/ReinitializeContext/ReinitializeContextProvider.cjs');
91
91
 
92
92
  const isCookieEnabled = () => {
93
- var _a, _b, _c;
94
- const securitySettings = (_a = projectSettingsActions.getProjectSettings()) === null || _a === void 0 ? void 0 : _a.settings.security;
93
+ var _a, _b, _c, _d;
94
+ const securitySettings = (_b = (_a = projectSettingsActions.getProjectSettings()) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.security;
95
95
  if (!securitySettings)
96
96
  return false;
97
97
  // client uses Dynamic cookies
98
- const dynamicCookiesEnabled = (((_b = securitySettings.auth) === null || _b === void 0 ? void 0 : _b.storage) || []).includes(sdkApiCore.AuthStorageEnum.Cookie);
98
+ const dynamicCookiesEnabled = (((_c = securitySettings.auth) === null || _c === void 0 ? void 0 : _c.storage) || []).includes(sdkApiCore.AuthStorageEnum.Cookie);
99
99
  // BYO JWT client puts their non-Dynamic JWT in a cookie
100
- const byoJwtCookieEnabled = Boolean((_c = securitySettings.externalAuth) === null || _c === void 0 ? void 0 : _c.cookieName);
100
+ const byoJwtCookieEnabled = Boolean((_d = securitySettings.externalAuth) === null || _d === void 0 ? void 0 : _d.cookieName);
101
101
  // should return true for both of these scenarios
102
102
  // because we also need to do `credentials: true` in api.ts when
103
103
  // a byo jwt client sets their named cookie for their jwt and
@@ -86,14 +86,14 @@ import '../../../context/ConnectWithOtpContext/constants.js';
86
86
  import '../../../context/ReinitializeContext/ReinitializeContextProvider.js';
87
87
 
88
88
  const isCookieEnabled = () => {
89
- var _a, _b, _c;
90
- const securitySettings = (_a = getProjectSettings()) === null || _a === void 0 ? void 0 : _a.settings.security;
89
+ var _a, _b, _c, _d;
90
+ const securitySettings = (_b = (_a = getProjectSettings()) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.security;
91
91
  if (!securitySettings)
92
92
  return false;
93
93
  // client uses Dynamic cookies
94
- const dynamicCookiesEnabled = (((_b = securitySettings.auth) === null || _b === void 0 ? void 0 : _b.storage) || []).includes(AuthStorageEnum.Cookie);
94
+ const dynamicCookiesEnabled = (((_c = securitySettings.auth) === null || _c === void 0 ? void 0 : _c.storage) || []).includes(AuthStorageEnum.Cookie);
95
95
  // BYO JWT client puts their non-Dynamic JWT in a cookie
96
- const byoJwtCookieEnabled = Boolean((_c = securitySettings.externalAuth) === null || _c === void 0 ? void 0 : _c.cookieName);
96
+ const byoJwtCookieEnabled = Boolean((_d = securitySettings.externalAuth) === null || _d === void 0 ? void 0 : _d.cookieName);
97
97
  // should return true for both of these scenarios
98
98
  // because we also need to do `credentials: true` in api.ts when
99
99
  // a byo jwt client sets their named cookie for their jwt and