@dynamic-labs/sdk-react-core 0.19.0-alpha.2 → 0.19.0-alpha.4
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 +21 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +9 -9
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +1 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +1 -1
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.cjs +2 -0
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.d.ts +1 -1
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.js +2 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +1 -1
- package/src/lib/context/DynamicContext/DynamicContext.cjs +1 -1
- package/src/lib/context/DynamicContext/DynamicContext.js +1 -1
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.cjs +28 -2
- package/src/lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.js +28 -2
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.cjs +7 -1
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js +7 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +8 -2
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +9 -3
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.cjs +7 -2
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.d.ts +1 -1
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.js +7 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +4 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +4 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +1 -1
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +1 -1
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +5 -1
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +5 -1
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +1 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +1 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +1 -1
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +1 -1
package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs
CHANGED
|
@@ -89,7 +89,11 @@ const LoginWithEmailForm = ({ currentEmail }) => {
|
|
|
89
89
|
email: emailInput,
|
|
90
90
|
environmentId,
|
|
91
91
|
});
|
|
92
|
-
|
|
92
|
+
// For v0.19 we will support emailOnly and Dynamic as email providers
|
|
93
|
+
// For v0.20/v1 we need to remove emailOnly and leave Dynamic as the only one email provider
|
|
94
|
+
// Ticket: https://linear.app/dynamic-labs/issue/GVTY-213/remove-emailonly-as-a-provider-from-sdk
|
|
95
|
+
if (emailProvider === sdkApi.ProviderEnum.EmailOnly ||
|
|
96
|
+
emailProvider === sdkApi.ProviderEnum.Dynamic) {
|
|
93
97
|
yield handleEmailOnlyLoginSubmit(emailInput);
|
|
94
98
|
return;
|
|
95
99
|
}
|
package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js
CHANGED
|
@@ -85,7 +85,11 @@ const LoginWithEmailForm = ({ currentEmail }) => {
|
|
|
85
85
|
email: emailInput,
|
|
86
86
|
environmentId,
|
|
87
87
|
});
|
|
88
|
-
|
|
88
|
+
// For v0.19 we will support emailOnly and Dynamic as email providers
|
|
89
|
+
// For v0.20/v1 we need to remove emailOnly and leave Dynamic as the only one email provider
|
|
90
|
+
// Ticket: https://linear.app/dynamic-labs/issue/GVTY-213/remove-emailonly-as-a-provider-from-sdk
|
|
91
|
+
if (emailProvider === ProviderEnum.EmailOnly ||
|
|
92
|
+
emailProvider === ProviderEnum.Dynamic) {
|
|
89
93
|
yield handleEmailOnlyLoginSubmit(emailInput);
|
|
90
94
|
return;
|
|
91
95
|
}
|
|
@@ -13,6 +13,7 @@ require('@dynamic-labs/wallet-book');
|
|
|
13
13
|
var getWalletListItemLabel = require('../../../../shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs');
|
|
14
14
|
require('ethers');
|
|
15
15
|
require('../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
16
|
+
require('@dynamic-labs/utils');
|
|
16
17
|
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
17
18
|
var stroke = require('../../../../shared/assets/stroke.cjs');
|
|
18
19
|
require('../../../../shared/consts/index.cjs');
|
|
@@ -9,6 +9,7 @@ import '@dynamic-labs/wallet-book';
|
|
|
9
9
|
import { getWalletListItemLabel } from '../../../../shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js';
|
|
10
10
|
import 'ethers';
|
|
11
11
|
import '../../../../shared/utils/classes/storage/localStorage.js';
|
|
12
|
+
import '@dynamic-labs/utils';
|
|
12
13
|
import '../../../../context/ViewContext/ViewContext.js';
|
|
13
14
|
import { ReactComponent as SvgStroke } from '../../../../shared/assets/stroke.js';
|
|
14
15
|
import '../../../../shared/consts/index.js';
|
|
@@ -16,11 +16,11 @@ require('@dynamic-labs/wallet-connector-core');
|
|
|
16
16
|
var getWalletListItemLabel = require('../../../shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs');
|
|
17
17
|
require('ethers');
|
|
18
18
|
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
19
|
+
require('@dynamic-labs/utils');
|
|
19
20
|
require('../../../shared/consts/index.cjs');
|
|
20
21
|
require('../../../context/DynamicContext/DynamicContext.cjs');
|
|
21
22
|
require('../../../utils/constants/colors.cjs');
|
|
22
23
|
require('@dynamic-labs/multi-wallet');
|
|
23
|
-
require('@dynamic-labs/utils');
|
|
24
24
|
var pixelToRem = require('../../../utils/functions/pixelToRem/pixelToRem.cjs');
|
|
25
25
|
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
26
26
|
require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
@@ -12,11 +12,11 @@ import '@dynamic-labs/wallet-connector-core';
|
|
|
12
12
|
import { getWalletListItemLabel } from '../../../shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js';
|
|
13
13
|
import 'ethers';
|
|
14
14
|
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
15
|
+
import '@dynamic-labs/utils';
|
|
15
16
|
import '../../../shared/consts/index.js';
|
|
16
17
|
import '../../../context/DynamicContext/DynamicContext.js';
|
|
17
18
|
import '../../../utils/constants/colors.js';
|
|
18
19
|
import '@dynamic-labs/multi-wallet';
|
|
19
|
-
import '@dynamic-labs/utils';
|
|
20
20
|
import { pixelToRem } from '../../../utils/functions/pixelToRem/pixelToRem.js';
|
|
21
21
|
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
22
22
|
import '../../../context/ThemeContext/ThemeContext.js';
|