@dynamic-labs/sdk-react-core 2.0.1 → 2.0.2
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,11 @@
|
|
|
1
1
|
|
|
2
|
+
### [2.0.2](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.1...v2.0.2) (2024-04-19)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* buffer polyfill for utils package ([#5404](https://github.com/dynamic-labs/DynamicAuth/issues/5404)) ([#5405](https://github.com/dynamic-labs/DynamicAuth/issues/5405)) ([679c197](https://github.com/dynamic-labs/DynamicAuth/commit/679c197a52969a0db614ed280d7b9a0bf172bf72))
|
|
8
|
+
|
|
2
9
|
### [2.0.1](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0...v2.0.1) (2024-04-18)
|
|
3
10
|
|
|
4
11
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"react-i18next": "13.5.0",
|
|
18
18
|
"yup": "0.32.11",
|
|
19
19
|
"react-international-phone": "4.2.5",
|
|
20
|
-
"@dynamic-labs/ethereum": "2.0.
|
|
21
|
-
"@dynamic-labs/iconic": "2.0.
|
|
22
|
-
"@dynamic-labs/logger": "2.0.
|
|
23
|
-
"@dynamic-labs/multi-wallet": "2.0.
|
|
24
|
-
"@dynamic-labs/rpc-provider-ethereum": "2.0.
|
|
25
|
-
"@dynamic-labs/rpc-provider-solana": "2.0.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "2.0.
|
|
27
|
-
"@dynamic-labs/types": "2.0.
|
|
28
|
-
"@dynamic-labs/utils": "2.0.
|
|
29
|
-
"@dynamic-labs/viem-utils": "2.0.
|
|
30
|
-
"@dynamic-labs/wallet-book": "2.0.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "2.0.
|
|
20
|
+
"@dynamic-labs/ethereum": "2.0.2",
|
|
21
|
+
"@dynamic-labs/iconic": "2.0.2",
|
|
22
|
+
"@dynamic-labs/logger": "2.0.2",
|
|
23
|
+
"@dynamic-labs/multi-wallet": "2.0.2",
|
|
24
|
+
"@dynamic-labs/rpc-provider-ethereum": "2.0.2",
|
|
25
|
+
"@dynamic-labs/rpc-provider-solana": "2.0.2",
|
|
26
|
+
"@dynamic-labs/rpc-providers": "2.0.2",
|
|
27
|
+
"@dynamic-labs/types": "2.0.2",
|
|
28
|
+
"@dynamic-labs/utils": "2.0.2",
|
|
29
|
+
"@dynamic-labs/viem-utils": "2.0.2",
|
|
30
|
+
"@dynamic-labs/wallet-book": "2.0.2",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "2.0.2",
|
|
32
32
|
"eventemitter3": "5.0.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -76,8 +76,9 @@ require('../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCa
|
|
|
76
76
|
var useInternalDynamicContext = require('../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
77
77
|
|
|
78
78
|
const useAuthLayoutChecks = () => {
|
|
79
|
+
var _a;
|
|
79
80
|
const { view } = ViewContext.useViewContext();
|
|
80
|
-
const { user, customPrivacyPolicy, customTermsOfServices, privacyPolicyUrl, termsOfServiceUrl, isBridgeFlow, authMode, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
81
|
+
const { user, customPrivacyPolicy, customTermsOfServices, privacyPolicyUrl, termsOfServiceUrl, isBridgeFlow, authMode, projectSettings, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
81
82
|
const { isFooterExpanded } = index.useFooterAnimationContext();
|
|
82
83
|
const { mockedSDK } = MockContext.useMockContext();
|
|
83
84
|
const { helpHeaderData } = useDynamicLayoutData.useDynamicLayoutData({
|
|
@@ -147,22 +148,23 @@ const useAuthLayoutChecks = () => {
|
|
|
147
148
|
privacyPolicyUrl ||
|
|
148
149
|
customPrivacyPolicy ||
|
|
149
150
|
customTermsOfServices))));
|
|
150
|
-
const showDynamicFooter =
|
|
151
|
-
view.type === 'login-with-email-or-wallet
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
151
|
+
const showDynamicFooter = Boolean((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _a === void 0 ? void 0 : _a.displayDynamicMessaging) &&
|
|
152
|
+
(view.type === 'login-with-email-or-wallet' ||
|
|
153
|
+
view.type === 'login-with-email-or-wallet-full-wallet-list' ||
|
|
154
|
+
view.type === 'login-with-wallet-only' ||
|
|
155
|
+
view.type === 'login-with-email-verification' ||
|
|
156
|
+
view.type === 'login-with-sms-verification' ||
|
|
157
|
+
view.type === 'verify-email' ||
|
|
158
|
+
view.type === 'verify-sms' ||
|
|
159
|
+
view.type === 'pending-connect' ||
|
|
160
|
+
view.type === 'wallet-group' ||
|
|
161
|
+
view.type === 'select-wallet-in-wallet-group' ||
|
|
162
|
+
view.type === 'select-hardware-wallet' ||
|
|
163
|
+
view.type === 'pending-signature' ||
|
|
164
|
+
view.type === 'qr-code' ||
|
|
165
|
+
view.type === 'wallet-used' ||
|
|
166
|
+
view.type === 'email-wallet-otp-verification-view' ||
|
|
167
|
+
view.type === 'farcaster-connect-view');
|
|
166
168
|
const showCloseButton = view.type !== 'login-with-email-or-wallet-full-wallet-list' &&
|
|
167
169
|
view.type !== 'login-with-email-verification' &&
|
|
168
170
|
view.type !== 'login-with-sms-verification' &&
|
|
@@ -72,8 +72,9 @@ import '../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCar
|
|
|
72
72
|
import { useInternalDynamicContext } from '../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
73
73
|
|
|
74
74
|
const useAuthLayoutChecks = () => {
|
|
75
|
+
var _a;
|
|
75
76
|
const { view } = useViewContext();
|
|
76
|
-
const { user, customPrivacyPolicy, customTermsOfServices, privacyPolicyUrl, termsOfServiceUrl, isBridgeFlow, authMode, } = useInternalDynamicContext();
|
|
77
|
+
const { user, customPrivacyPolicy, customTermsOfServices, privacyPolicyUrl, termsOfServiceUrl, isBridgeFlow, authMode, projectSettings, } = useInternalDynamicContext();
|
|
77
78
|
const { isFooterExpanded } = useFooterAnimationContext();
|
|
78
79
|
const { mockedSDK } = useMockContext();
|
|
79
80
|
const { helpHeaderData } = useDynamicLayoutData({
|
|
@@ -143,22 +144,23 @@ const useAuthLayoutChecks = () => {
|
|
|
143
144
|
privacyPolicyUrl ||
|
|
144
145
|
customPrivacyPolicy ||
|
|
145
146
|
customTermsOfServices))));
|
|
146
|
-
const showDynamicFooter =
|
|
147
|
-
view.type === 'login-with-email-or-wallet
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
147
|
+
const showDynamicFooter = Boolean((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _a === void 0 ? void 0 : _a.displayDynamicMessaging) &&
|
|
148
|
+
(view.type === 'login-with-email-or-wallet' ||
|
|
149
|
+
view.type === 'login-with-email-or-wallet-full-wallet-list' ||
|
|
150
|
+
view.type === 'login-with-wallet-only' ||
|
|
151
|
+
view.type === 'login-with-email-verification' ||
|
|
152
|
+
view.type === 'login-with-sms-verification' ||
|
|
153
|
+
view.type === 'verify-email' ||
|
|
154
|
+
view.type === 'verify-sms' ||
|
|
155
|
+
view.type === 'pending-connect' ||
|
|
156
|
+
view.type === 'wallet-group' ||
|
|
157
|
+
view.type === 'select-wallet-in-wallet-group' ||
|
|
158
|
+
view.type === 'select-hardware-wallet' ||
|
|
159
|
+
view.type === 'pending-signature' ||
|
|
160
|
+
view.type === 'qr-code' ||
|
|
161
|
+
view.type === 'wallet-used' ||
|
|
162
|
+
view.type === 'email-wallet-otp-verification-view' ||
|
|
163
|
+
view.type === 'farcaster-connect-view');
|
|
162
164
|
const showCloseButton = view.type !== 'login-with-email-or-wallet-full-wallet-list' &&
|
|
163
165
|
view.type !== 'login-with-email-verification' &&
|
|
164
166
|
view.type !== 'login-with-sms-verification' &&
|