@reown/appkit-react-native 0.0.0-feat-multi-social-20250708154835 → 0.0.0-feat-multi-social-20250710154055
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/lib/commonjs/AppKit.js +13 -1
- package/lib/commonjs/AppKit.js.map +1 -1
- package/lib/commonjs/client.js +15 -24
- package/lib/commonjs/client.js.map +1 -1
- package/lib/commonjs/connectors/WalletConnectConnector.js +4 -2
- package/lib/commonjs/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/commonjs/modal/w3m-router/index.js +0 -9
- package/lib/commonjs/modal/w3m-router/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +4 -3
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-header/index.js +0 -3
- package/lib/commonjs/partials/w3m-header/index.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/index.js +11 -4
- package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/index.js +10 -11
- package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/connectors-list.js +47 -32
- package/lib/commonjs/views/w3m-connect-view/components/connectors-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js +12 -21
- package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js +20 -15
- package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-transaction-view/index.js +1 -1
- package/lib/commonjs/views/w3m-onramp-transaction-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-unsupported-chain-view/index.js +7 -20
- package/lib/commonjs/views/w3m-unsupported-chain-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-upgrade-email-wallet-view/index.js +3 -8
- package/lib/commonjs/views/w3m-upgrade-email-wallet-view/index.js.map +1 -1
- package/lib/module/AppKit.js +13 -1
- package/lib/module/AppKit.js.map +1 -1
- package/lib/module/client.js +17 -26
- package/lib/module/client.js.map +1 -1
- package/lib/module/connectors/WalletConnectConnector.js +4 -2
- package/lib/module/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/module/modal/w3m-router/index.js +0 -9
- package/lib/module/modal/w3m-router/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js +5 -4
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/partials/w3m-header/index.js +0 -3
- package/lib/module/partials/w3m-header/index.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/index.js +11 -4
- package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/module/views/w3m-all-wallets-view/index.js +11 -12
- package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/connectors-list.js +47 -32
- package/lib/module/views/w3m-connect-view/components/connectors-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/index.js +13 -22
- package/lib/module/views/w3m-connect-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/index.js +22 -16
- package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-transaction-view/index.js +2 -2
- package/lib/module/views/w3m-onramp-transaction-view/index.js.map +1 -1
- package/lib/module/views/w3m-unsupported-chain-view/index.js +8 -21
- package/lib/module/views/w3m-unsupported-chain-view/index.js.map +1 -1
- package/lib/module/views/w3m-upgrade-email-wallet-view/index.js +3 -8
- package/lib/module/views/w3m-upgrade-email-wallet-view/index.js.map +1 -1
- package/lib/typescript/AppKit.d.ts +2 -1
- package/lib/typescript/AppKit.d.ts.map +1 -1
- package/lib/typescript/client.d.ts +1 -6
- package/lib/typescript/client.d.ts.map +1 -1
- package/lib/typescript/connectors/WalletConnectConnector.d.ts.map +1 -1
- package/lib/typescript/hooks/useAppKitEvents.d.ts +1 -1
- package/lib/typescript/modal/w3m-router/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-qrcode/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-header/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-account-default-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-all-wallets-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/connectors-list.d.ts +1 -7
- package/lib/typescript/views/w3m-connect-view/components/connectors-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-external-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-unsupported-chain-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-upgrade-email-wallet-view/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/AppKit.ts +36 -21
- package/src/client.ts +12 -41
- package/src/connectors/WalletConnectConnector.ts +4 -2
- package/src/modal/w3m-router/index.tsx +0 -9
- package/src/partials/w3m-connecting-qrcode/index.tsx +3 -4
- package/src/partials/w3m-header/index.tsx +0 -3
- package/src/views/w3m-account-default-view/index.tsx +13 -2
- package/src/views/w3m-all-wallets-view/index.tsx +7 -7
- package/src/views/w3m-connect-view/components/connectors-list.tsx +40 -38
- package/src/views/w3m-connect-view/index.tsx +9 -18
- package/src/views/w3m-connecting-external-view/index.tsx +16 -16
- package/src/views/w3m-onramp-transaction-view/index.tsx +2 -2
- package/src/views/w3m-unsupported-chain-view/index.tsx +8 -30
- package/src/views/w3m-upgrade-email-wallet-view/index.tsx +3 -7
- package/lib/commonjs/views/w3m-update-email-primary-otp-view/index.js +0 -56
- package/lib/commonjs/views/w3m-update-email-primary-otp-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-update-email-secondary-otp-view/index.js +0 -62
- package/lib/commonjs/views/w3m-update-email-secondary-otp-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-update-email-wallet-view/index.js +0 -104
- package/lib/commonjs/views/w3m-update-email-wallet-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-update-email-wallet-view/styles.js +0 -30
- package/lib/commonjs/views/w3m-update-email-wallet-view/styles.js.map +0 -1
- package/lib/module/views/w3m-update-email-primary-otp-view/index.js +0 -50
- package/lib/module/views/w3m-update-email-primary-otp-view/index.js.map +0 -1
- package/lib/module/views/w3m-update-email-secondary-otp-view/index.js +0 -56
- package/lib/module/views/w3m-update-email-secondary-otp-view/index.js.map +0 -1
- package/lib/module/views/w3m-update-email-wallet-view/index.js +0 -97
- package/lib/module/views/w3m-update-email-wallet-view/index.js.map +0 -1
- package/lib/module/views/w3m-update-email-wallet-view/styles.js +0 -24
- package/lib/module/views/w3m-update-email-wallet-view/styles.js.map +0 -1
- package/lib/typescript/views/w3m-update-email-primary-otp-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-update-email-primary-otp-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-update-email-secondary-otp-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-update-email-secondary-otp-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-update-email-wallet-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-update-email-wallet-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-update-email-wallet-view/styles.d.ts +0 -23
- package/lib/typescript/views/w3m-update-email-wallet-view/styles.d.ts.map +0 -1
- package/src/views/w3m-update-email-primary-otp-view/index.tsx +0 -55
- package/src/views/w3m-update-email-secondary-otp-view/index.tsx +0 -56
- package/src/views/w3m-update-email-wallet-view/index.tsx +0 -96
- package/src/views/w3m-update-email-wallet-view/styles.ts +0 -24
|
@@ -2,43 +2,22 @@ import { useSnapshot } from 'valtio';
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { FlatList } from 'react-native';
|
|
4
4
|
import { Icon, ListItem, Separator, Text } from '@reown/appkit-ui-react-native';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
AssetUtil,
|
|
8
|
-
ConnectionsController,
|
|
9
|
-
CoreHelperUtil,
|
|
10
|
-
EventsController,
|
|
11
|
-
NetworkController,
|
|
12
|
-
NetworkUtil,
|
|
13
|
-
type NetworkControllerState
|
|
14
|
-
} from '@reown/appkit-core-react-native';
|
|
15
|
-
import type { CaipNetwork } from '@reown/appkit-common-react-native';
|
|
5
|
+
import { ApiController, AssetUtil, ConnectionsController } from '@reown/appkit-core-react-native';
|
|
6
|
+
import type { AppKitNetwork } from '@reown/appkit-common-react-native';
|
|
16
7
|
import { useAppKit } from '../../AppKitContext';
|
|
17
8
|
import styles from './styles';
|
|
18
9
|
|
|
19
10
|
export function UnsupportedChainView() {
|
|
20
|
-
const { supportsAllNetworks, approvedCaipNetworkIds, requestedCaipNetworks } = useSnapshot(
|
|
21
|
-
NetworkController.state
|
|
22
|
-
) as NetworkControllerState;
|
|
23
|
-
|
|
24
11
|
const { activeNetwork } = useSnapshot(ConnectionsController.state);
|
|
25
12
|
const [disconnecting, setDisconnecting] = useState(false);
|
|
26
|
-
|
|
13
|
+
//TODO: should show requested networks disabled
|
|
14
|
+
// const networks = CoreHelperUtil.sortNetworks(approvedCaipNetworkIds, requestedCaipNetworks);
|
|
15
|
+
const networks = ConnectionsController.getConnectedNetworks();
|
|
27
16
|
const imageHeaders = ApiController._getApiHeaders();
|
|
28
|
-
const { disconnect } = useAppKit();
|
|
17
|
+
const { disconnect, switchNetwork } = useAppKit();
|
|
29
18
|
|
|
30
|
-
const onNetworkPress = async (network:
|
|
31
|
-
|
|
32
|
-
const result = await NetworkUtil.handleNetworkSwitch(network);
|
|
33
|
-
if (result?.type === 'SWITCH_NETWORK') {
|
|
34
|
-
EventsController.sendEvent({
|
|
35
|
-
type: 'track',
|
|
36
|
-
event: 'SWITCH_NETWORK',
|
|
37
|
-
properties: {
|
|
38
|
-
network: network.id
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
}
|
|
19
|
+
const onNetworkPress = async (network: AppKitNetwork) => {
|
|
20
|
+
switchNetwork(network);
|
|
42
21
|
};
|
|
43
22
|
|
|
44
23
|
const onDisconnect = async () => {
|
|
@@ -70,7 +49,6 @@ export function UnsupportedChainView() {
|
|
|
70
49
|
testID="button-network"
|
|
71
50
|
style={styles.networkItem}
|
|
72
51
|
contentStyle={styles.networkItemContent}
|
|
73
|
-
disabled={!supportsAllNetworks && !approvedCaipNetworkIds?.includes(item.id)}
|
|
74
52
|
>
|
|
75
53
|
<Text numberOfLines={1} color="fg-100">
|
|
76
54
|
{item.name ?? 'Unknown'}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { useSnapshot } from 'valtio';
|
|
2
1
|
import { Linking, StyleSheet } from 'react-native';
|
|
3
2
|
import { Chip, FlexView, Spacing, Text } from '@reown/appkit-ui-react-native';
|
|
4
|
-
import {
|
|
3
|
+
import { ConstantsUtil } from '@reown/appkit-common-react-native';
|
|
5
4
|
|
|
6
5
|
export function UpgradeEmailWalletView() {
|
|
7
|
-
const { connectors } = useSnapshot(ConnectorController.state);
|
|
8
|
-
const authProvider = connectors.find(c => c.type === 'AUTH')?.provider as AppKitFrameProvider;
|
|
9
|
-
|
|
10
6
|
const onLinkPress = () => {
|
|
11
|
-
const link =
|
|
7
|
+
const link = ConstantsUtil.SECURE_SITE_DASHBOARD;
|
|
12
8
|
Linking.canOpenURL(link).then(supported => {
|
|
13
9
|
if (supported) Linking.openURL(link);
|
|
14
10
|
});
|
|
@@ -20,7 +16,7 @@ export function UpgradeEmailWalletView() {
|
|
|
20
16
|
<Chip
|
|
21
17
|
label="secure.reown.com"
|
|
22
18
|
rightIcon="externalLink"
|
|
23
|
-
imageSrc={
|
|
19
|
+
imageSrc={ConstantsUtil.SECURE_SITE_ICON}
|
|
24
20
|
style={styles.chip}
|
|
25
21
|
onPress={onLinkPress}
|
|
26
22
|
/>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.UpdateEmailPrimaryOtpView = UpdateEmailPrimaryOtpView;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _appkitCoreReactNative = require("@reown/appkit-core-react-native");
|
|
9
|
-
var _w3mOtpCode = require("../../partials/w3m-otp-code");
|
|
10
|
-
function UpdateEmailPrimaryOtpView() {
|
|
11
|
-
const {
|
|
12
|
-
data
|
|
13
|
-
} = _appkitCoreReactNative.RouterController.state;
|
|
14
|
-
const [loading, setLoading] = (0, _react.useState)(false);
|
|
15
|
-
const [error, setError] = (0, _react.useState)('');
|
|
16
|
-
const authProvider = _appkitCoreReactNative.ConnectorController.getAuthConnector()?.provider;
|
|
17
|
-
const onOtpSubmit = async value => {
|
|
18
|
-
if (!authProvider || loading) return;
|
|
19
|
-
setLoading(true);
|
|
20
|
-
setError('');
|
|
21
|
-
try {
|
|
22
|
-
await authProvider.updateEmailPrimaryOtp({
|
|
23
|
-
otp: value
|
|
24
|
-
});
|
|
25
|
-
_appkitCoreReactNative.EventsController.sendEvent({
|
|
26
|
-
type: 'track',
|
|
27
|
-
event: 'EMAIL_VERIFICATION_CODE_PASS'
|
|
28
|
-
});
|
|
29
|
-
_appkitCoreReactNative.RouterController.replace('UpdateEmailSecondaryOtp', data);
|
|
30
|
-
} catch (e) {
|
|
31
|
-
_appkitCoreReactNative.EventsController.sendEvent({
|
|
32
|
-
type: 'track',
|
|
33
|
-
event: 'EMAIL_VERIFICATION_CODE_FAIL'
|
|
34
|
-
});
|
|
35
|
-
const parsedError = _appkitCoreReactNative.CoreHelperUtil.parseError(e);
|
|
36
|
-
if (parsedError?.includes('Invalid Otp')) {
|
|
37
|
-
setError('Invalid code. Try again.');
|
|
38
|
-
} else {
|
|
39
|
-
_appkitCoreReactNative.SnackController.showError(parsedError);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
setLoading(false);
|
|
43
|
-
};
|
|
44
|
-
return /*#__PURE__*/React.createElement(_w3mOtpCode.OtpCodeView, {
|
|
45
|
-
loading: loading,
|
|
46
|
-
error: error,
|
|
47
|
-
email: data?.email,
|
|
48
|
-
onSubmit: onOtpSubmit,
|
|
49
|
-
onRetry: _appkitCoreReactNative.RouterController.goBack,
|
|
50
|
-
codeExpiry: 10,
|
|
51
|
-
retryLabel: "Something wrong?",
|
|
52
|
-
retryDisabledButtonLabel: "Try again",
|
|
53
|
-
retryButtonLabel: "Try again"
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_appkitCoreReactNative","_w3mOtpCode","UpdateEmailPrimaryOtpView","data","RouterController","state","loading","setLoading","useState","error","setError","authProvider","ConnectorController","getAuthConnector","provider","onOtpSubmit","value","updateEmailPrimaryOtp","otp","EventsController","sendEvent","type","event","replace","e","parsedError","CoreHelperUtil","parseError","includes","SnackController","showError","React","createElement","OtpCodeView","email","onSubmit","onRetry","goBack","codeExpiry","retryLabel","retryDisabledButtonLabel","retryButtonLabel"],"sourceRoot":"../../../../src","sources":["views/w3m-update-email-primary-otp-view/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAD,OAAA;AASA,IAAAE,WAAA,GAAAF,OAAA;AAEO,SAASG,yBAAyBA,CAAA,EAAG;EAC1C,MAAM;IAAEC;EAAK,CAAC,GAAGC,uCAAgB,CAACC,KAAK;EACvC,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAC7C,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAF,eAAQ,EAAC,EAAE,CAAC;EACtC,MAAMG,YAAY,GAAGC,0CAAmB,CAACC,gBAAgB,CAAC,CAAC,EAAEC,QAEhD;EAEb,MAAMC,WAAW,GAAG,MAAOC,KAAa,IAAK;IAC3C,IAAI,CAACL,YAAY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|
|
6
|
-
exports.UpdateEmailSecondaryOtpView = UpdateEmailSecondaryOtpView;
|
|
7
|
-
var _valtio = require("valtio");
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _appkitCoreReactNative = require("@reown/appkit-core-react-native");
|
|
10
|
-
var _w3mOtpCode = require("../../partials/w3m-otp-code");
|
|
11
|
-
function UpdateEmailSecondaryOtpView() {
|
|
12
|
-
const {
|
|
13
|
-
data
|
|
14
|
-
} = (0, _valtio.useSnapshot)(_appkitCoreReactNative.RouterController.state);
|
|
15
|
-
const [loading, setLoading] = (0, _react.useState)(false);
|
|
16
|
-
const [error, setError] = (0, _react.useState)('');
|
|
17
|
-
const authConnector = _appkitCoreReactNative.ConnectorController.getAuthConnector();
|
|
18
|
-
const onOtpSubmit = async value => {
|
|
19
|
-
if (!authConnector) return;
|
|
20
|
-
setLoading(true);
|
|
21
|
-
setError('');
|
|
22
|
-
try {
|
|
23
|
-
const provider = authConnector?.provider;
|
|
24
|
-
await provider.updateEmailSecondaryOtp({
|
|
25
|
-
otp: value
|
|
26
|
-
});
|
|
27
|
-
_appkitCoreReactNative.EventsController.sendEvent({
|
|
28
|
-
type: 'track',
|
|
29
|
-
event: 'EMAIL_VERIFICATION_CODE_PASS'
|
|
30
|
-
});
|
|
31
|
-
_appkitCoreReactNative.EventsController.sendEvent({
|
|
32
|
-
type: 'track',
|
|
33
|
-
event: 'EMAIL_EDIT_COMPLETE'
|
|
34
|
-
});
|
|
35
|
-
_appkitCoreReactNative.RouterController.reset('Account');
|
|
36
|
-
} catch (e) {
|
|
37
|
-
_appkitCoreReactNative.EventsController.sendEvent({
|
|
38
|
-
type: 'track',
|
|
39
|
-
event: 'EMAIL_VERIFICATION_CODE_FAIL'
|
|
40
|
-
});
|
|
41
|
-
const parsedError = _appkitCoreReactNative.CoreHelperUtil.parseError(e);
|
|
42
|
-
if (parsedError?.includes('Invalid Otp')) {
|
|
43
|
-
setError('Invalid code. Try again.');
|
|
44
|
-
} else {
|
|
45
|
-
_appkitCoreReactNative.SnackController.showError(parsedError);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
setLoading(false);
|
|
49
|
-
};
|
|
50
|
-
return /*#__PURE__*/React.createElement(_w3mOtpCode.OtpCodeView, {
|
|
51
|
-
loading: loading,
|
|
52
|
-
error: error,
|
|
53
|
-
email: data?.newEmail,
|
|
54
|
-
onSubmit: onOtpSubmit,
|
|
55
|
-
onRetry: _appkitCoreReactNative.RouterController.goBack,
|
|
56
|
-
codeExpiry: 10,
|
|
57
|
-
retryLabel: "Something wrong?",
|
|
58
|
-
retryDisabledButtonLabel: "Try again",
|
|
59
|
-
retryButtonLabel: "Try again"
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_valtio","require","_react","_appkitCoreReactNative","_w3mOtpCode","UpdateEmailSecondaryOtpView","data","useSnapshot","RouterController","state","loading","setLoading","useState","error","setError","authConnector","ConnectorController","getAuthConnector","onOtpSubmit","value","provider","updateEmailSecondaryOtp","otp","EventsController","sendEvent","type","event","reset","e","parsedError","CoreHelperUtil","parseError","includes","SnackController","showError","React","createElement","OtpCodeView","email","newEmail","onSubmit","onRetry","goBack","codeExpiry","retryLabel","retryDisabledButtonLabel","retryButtonLabel"],"sourceRoot":"../../../../src","sources":["views/w3m-update-email-secondary-otp-view/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAF,OAAA;AASA,IAAAG,WAAA,GAAAH,OAAA;AAEO,SAASI,2BAA2BA,CAAA,EAAG;EAC5C,MAAM;IAAEC;EAAK,CAAC,GAAG,IAAAC,mBAAW,EAACC,uCAAgB,CAACC,KAAK,CAAC;EACpD,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAC7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ACtBC,QAAQ,EAAEtB,WAAY;IACtBuB,OAAO,EAAEjC,uCAAgB,CAACkC,MAAO;IACjCC,UAAU,EAAE,EAAG;IACfC,UAAU,EAAC,kBAAkB;IAC7BC,wBAAwB,EAAC,WAAW;IACpCC,gBAAgB,EAAC;EAAW,CAC7B,CAAC;AAEN"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.UpdateEmailWalletView = UpdateEmailWalletView;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _appkitCoreReactNative = require("@reown/appkit-core-react-native");
|
|
10
|
-
var _appkitUiReactNative = require("@reown/appkit-ui-react-native");
|
|
11
|
-
var _useKeyboard = require("../../hooks/useKeyboard");
|
|
12
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
function UpdateEmailWalletView() {
|
|
15
|
-
const {
|
|
16
|
-
data
|
|
17
|
-
} = _appkitCoreReactNative.RouterController.state;
|
|
18
|
-
const [loading, setLoading] = (0, _react.useState)(false);
|
|
19
|
-
const [error, setError] = (0, _react.useState)('');
|
|
20
|
-
const [email, setEmail] = (0, _react.useState)(data?.email || '');
|
|
21
|
-
const [isValidNewEmail, setIsValidNewEmail] = (0, _react.useState)(false);
|
|
22
|
-
const authConnector = _appkitCoreReactNative.ConnectorController.getAuthConnector();
|
|
23
|
-
const {
|
|
24
|
-
keyboardShown,
|
|
25
|
-
keyboardHeight
|
|
26
|
-
} = (0, _useKeyboard.useKeyboard)();
|
|
27
|
-
const paddingBottom = _reactNative.Platform.select({
|
|
28
|
-
android: keyboardShown ? keyboardHeight + _appkitUiReactNative.Spacing.l : _appkitUiReactNative.Spacing.l,
|
|
29
|
-
default: _appkitUiReactNative.Spacing.l
|
|
30
|
-
});
|
|
31
|
-
const onChangeText = value => {
|
|
32
|
-
setIsValidNewEmail(data?.email !== value && _appkitCoreReactNative.CoreHelperUtil.isValidEmail(value));
|
|
33
|
-
setEmail(value);
|
|
34
|
-
setError('');
|
|
35
|
-
};
|
|
36
|
-
const onEmailSubmit = async value => {
|
|
37
|
-
if (!authConnector) return;
|
|
38
|
-
const provider = authConnector.provider;
|
|
39
|
-
setLoading(true);
|
|
40
|
-
setError('');
|
|
41
|
-
try {
|
|
42
|
-
const response = await provider.updateEmail({
|
|
43
|
-
email: value
|
|
44
|
-
});
|
|
45
|
-
_appkitCoreReactNative.EventsController.sendEvent({
|
|
46
|
-
type: 'track',
|
|
47
|
-
event: 'EMAIL_EDIT'
|
|
48
|
-
});
|
|
49
|
-
if (response.action === 'VERIFY_SECONDARY_OTP') {
|
|
50
|
-
_appkitCoreReactNative.RouterController.push('UpdateEmailSecondaryOtp', {
|
|
51
|
-
email: data?.email,
|
|
52
|
-
newEmail: value
|
|
53
|
-
});
|
|
54
|
-
} else {
|
|
55
|
-
_appkitCoreReactNative.RouterController.push('UpdateEmailPrimaryOtp', {
|
|
56
|
-
email: data?.email,
|
|
57
|
-
newEmail: value
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
} catch (e) {
|
|
61
|
-
const parsedError = _appkitCoreReactNative.CoreHelperUtil.parseError(e);
|
|
62
|
-
if (parsedError?.includes('Invalid email')) {
|
|
63
|
-
setError('Invalid email. Try again.');
|
|
64
|
-
} else {
|
|
65
|
-
_appkitCoreReactNative.SnackController.showError(parsedError);
|
|
66
|
-
}
|
|
67
|
-
} finally {
|
|
68
|
-
setLoading(false);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
return /*#__PURE__*/React.createElement(_appkitUiReactNative.FlexView, {
|
|
72
|
-
padding: ['l', 's', '0', 's'],
|
|
73
|
-
style: {
|
|
74
|
-
paddingBottom
|
|
75
|
-
}
|
|
76
|
-
}, /*#__PURE__*/React.createElement(_appkitUiReactNative.EmailInput, {
|
|
77
|
-
initialValue: data?.email,
|
|
78
|
-
onSubmit: onEmailSubmit,
|
|
79
|
-
submitEnabled: isValidNewEmail,
|
|
80
|
-
onChangeText: onChangeText,
|
|
81
|
-
loading: loading,
|
|
82
|
-
errorMessage: error,
|
|
83
|
-
style: _styles.default.emailInput,
|
|
84
|
-
autoFocus: true
|
|
85
|
-
}), /*#__PURE__*/React.createElement(_appkitUiReactNative.FlexView, {
|
|
86
|
-
flexDirection: "row",
|
|
87
|
-
justifyContent: "center",
|
|
88
|
-
alignItems: "center",
|
|
89
|
-
margin: ['0', 'xs', '0', 'xs']
|
|
90
|
-
}, /*#__PURE__*/React.createElement(_appkitUiReactNative.Button, {
|
|
91
|
-
onPress: _appkitCoreReactNative.RouterController.goBack,
|
|
92
|
-
variant: "shade",
|
|
93
|
-
style: _styles.default.cancelButton
|
|
94
|
-
}, /*#__PURE__*/React.createElement(_appkitUiReactNative.Text, {
|
|
95
|
-
variant: "paragraph-600",
|
|
96
|
-
color: "fg-100"
|
|
97
|
-
}, "Cancel")), /*#__PURE__*/React.createElement(_appkitUiReactNative.Button, {
|
|
98
|
-
onPress: () => onEmailSubmit(email),
|
|
99
|
-
variant: "fill",
|
|
100
|
-
style: _styles.default.saveButton,
|
|
101
|
-
disabled: loading || !isValidNewEmail
|
|
102
|
-
}, "Save")));
|
|
103
|
-
}
|
|
104
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_appkitCoreReactNative","_appkitUiReactNative","_useKeyboard","_styles","_interopRequireDefault","e","__esModule","default","UpdateEmailWalletView","data","RouterController","state","loading","setLoading","useState","error","setError","email","setEmail","isValidNewEmail","setIsValidNewEmail","authConnector","ConnectorController","getAuthConnector","keyboardShown","keyboardHeight","useKeyboard","paddingBottom","Platform","select","android","Spacing","l","onChangeText","value","CoreHelperUtil","isValidEmail","onEmailSubmit","provider","response","updateEmail","EventsController","sendEvent","type","event","action","push","newEmail","parsedError","parseError","includes","SnackController","showError","React","createElement","FlexView","padding","style","EmailInput","initialValue","onSubmit","submitEnabled","errorMessage","styles","emailInput","autoFocus","flexDirection","justifyContent","alignItems","margin","Button","onPress","goBack","variant","cancelButton","Text","color","saveButton","disabled"],"sourceRoot":"../../../../src","sources":["views/w3m-update-email-wallet-view/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAQA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAEA,IAAAK,OAAA,GAAAC,sBAAA,CAAAN,OAAA;AAA8B,SAAAM,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEvB,SAASG,qBAAqBA,CAAA,EAAG;EACtC,MAAM;IAAEC;EAAK,CAAC,GAAGC,uCAAgB,CAACC,KAAK;EACvC,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAC7C,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAF,eAAQ,EAAC,EAAE,CAAC;EACtC,MAAM,CAACG,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAJ,eAAQ,EAACL,IAAI,EAAEQ,KAAK,IAAI,EAAE,CAAC;EACrD,MAAM,CAACE,eAAe,EAAEC,kBAAkB,CAAC,GAAG,IAAAN,eAAQ,EAAC,KAAK,CAAC;EAC7D,MAAMO,aAAa,GAAGC,0CAAmB,CAACC,gBAAgB,CAAC,CAAC;EAC5D,MAAM;IAAEC,aAAa;IAAEC;EAAe,CAAC,GAAG,IAAAC,wBAAW,EAAC,CAAC;EACvD,MAAMC,aAAa,GAAGC,qBAAQ,CAACC,MAAM,CAAC;IACpCC,OAA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ACrD,oBAAA,CAAAqE,MAAM;IACLC,OAAO,EAAEA,CAAA,KAAMlC,aAAa,CAACpB,KAAK,CAAE;IACpCwD,OAAO,EAAC,MAAM;IACdhB,KAAK,EAAEM,eAAM,CAACc,UAAW;IACzBC,QAAQ,EAAElE,OAAO,IAAI,CAACO;EAAgB,GACvC,MAEO,CACA,CACF,CAAC;AAEf"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _appkitUiReactNative = require("@reown/appkit-ui-react-native");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _default = exports.default = _reactNative.StyleSheet.create({
|
|
10
|
-
container: {
|
|
11
|
-
justifyContent: 'center',
|
|
12
|
-
alignItems: 'center'
|
|
13
|
-
},
|
|
14
|
-
emailInput: {
|
|
15
|
-
marginBottom: _appkitUiReactNative.Spacing.s
|
|
16
|
-
},
|
|
17
|
-
cancelButton: {
|
|
18
|
-
flex: 1,
|
|
19
|
-
height: 48,
|
|
20
|
-
marginRight: _appkitUiReactNative.Spacing['2xs'],
|
|
21
|
-
borderRadius: _appkitUiReactNative.BorderRadius.xs
|
|
22
|
-
},
|
|
23
|
-
saveButton: {
|
|
24
|
-
flex: 1,
|
|
25
|
-
height: 48,
|
|
26
|
-
marginLeft: _appkitUiReactNative.Spacing['2xs'],
|
|
27
|
-
borderRadius: _appkitUiReactNative.BorderRadius.xs
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_appkitUiReactNative","require","_reactNative","_default","exports","default","StyleSheet","create","container","justifyContent","alignItems","emailInput","marginBottom","Spacing","s","cancelButton","flex","height","marginRight","borderRadius","BorderRadius","xs","saveButton","marginLeft"],"sourceRoot":"../../../../src","sources":["views/w3m-update-email-wallet-view/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAA0C,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE3BC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDC,UAAU,EAAE;IACVC,YAAY,EAAEC,4BAAO,CAACC;EACxB,CAAC;EACDC,YAAY,EAAE;IACZC,IAAI,EAAE,CAAC;IACPC,MAAM,EAAE,EAAE;IACVC,WAAW,EAAEL,4BAAO,CAAC,KAAK,CAAC;IAC3BM,YAAY,EAAEC,iCAAY,CAACC;EAC7B,CAAC;EACDC,UAAU,EAAE;IACVN,IAAI,EAAE,CAAC;IACPC,MAAM,EAAE,EAAE;IACVM,UAAU,EAAEV,4BAAO,CAAC,KAAK,CAAC;IAC1BM,YAAY,EAAEC,iCAAY,CAACC;EAC7B;AACF,CAAC,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import { ConnectorController, CoreHelperUtil, EventsController, RouterController, SnackController } from '@reown/appkit-core-react-native';
|
|
3
|
-
import { OtpCodeView } from '../../partials/w3m-otp-code';
|
|
4
|
-
export function UpdateEmailPrimaryOtpView() {
|
|
5
|
-
const {
|
|
6
|
-
data
|
|
7
|
-
} = RouterController.state;
|
|
8
|
-
const [loading, setLoading] = useState(false);
|
|
9
|
-
const [error, setError] = useState('');
|
|
10
|
-
const authProvider = ConnectorController.getAuthConnector()?.provider;
|
|
11
|
-
const onOtpSubmit = async value => {
|
|
12
|
-
if (!authProvider || loading) return;
|
|
13
|
-
setLoading(true);
|
|
14
|
-
setError('');
|
|
15
|
-
try {
|
|
16
|
-
await authProvider.updateEmailPrimaryOtp({
|
|
17
|
-
otp: value
|
|
18
|
-
});
|
|
19
|
-
EventsController.sendEvent({
|
|
20
|
-
type: 'track',
|
|
21
|
-
event: 'EMAIL_VERIFICATION_CODE_PASS'
|
|
22
|
-
});
|
|
23
|
-
RouterController.replace('UpdateEmailSecondaryOtp', data);
|
|
24
|
-
} catch (e) {
|
|
25
|
-
EventsController.sendEvent({
|
|
26
|
-
type: 'track',
|
|
27
|
-
event: 'EMAIL_VERIFICATION_CODE_FAIL'
|
|
28
|
-
});
|
|
29
|
-
const parsedError = CoreHelperUtil.parseError(e);
|
|
30
|
-
if (parsedError?.includes('Invalid Otp')) {
|
|
31
|
-
setError('Invalid code. Try again.');
|
|
32
|
-
} else {
|
|
33
|
-
SnackController.showError(parsedError);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
setLoading(false);
|
|
37
|
-
};
|
|
38
|
-
return /*#__PURE__*/React.createElement(OtpCodeView, {
|
|
39
|
-
loading: loading,
|
|
40
|
-
error: error,
|
|
41
|
-
email: data?.email,
|
|
42
|
-
onSubmit: onOtpSubmit,
|
|
43
|
-
onRetry: RouterController.goBack,
|
|
44
|
-
codeExpiry: 10,
|
|
45
|
-
retryLabel: "Something wrong?",
|
|
46
|
-
retryDisabledButtonLabel: "Try again",
|
|
47
|
-
retryButtonLabel: "Try again"
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useState","ConnectorController","CoreHelperUtil","EventsController","RouterController","SnackController","OtpCodeView","UpdateEmailPrimaryOtpView","data","state","loading","setLoading","error","setError","authProvider","getAuthConnector","provider","onOtpSubmit","value","updateEmailPrimaryOtp","otp","sendEvent","type","event","replace","e","parsedError","parseError","includes","showError","React","createElement","email","onSubmit","onRetry","goBack","codeExpiry","retryLabel","retryDisabledButtonLabel","retryButtonLabel"],"sourceRoot":"../../../../src","sources":["views/w3m-update-email-primary-otp-view/index.tsx"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,OAAO;AAEhC,SACE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AAU,CAAC,KAAK,CAAC;EACnB,CAAC;EAED,oBACEmB,KAAA,CAAAC,aAAA,CAACzB,WAAW;IACVI,OAAO,EAAEA,OAAQ;IACjBE,KAAK,EAAEA,KAAM;IACboB,KAAK,EAAExB,IAAI,EAAEwB,KAAM;IACnBC,QAAQ,EAAEhB,WAAY;IACtBiB,OAAO,EAAE9B,gBAAgB,CAAC+B,MAAO;IACjCC,UAAU,EAAE,EAAG;IACfC,UAAU,EAAC,kBAAkB;IAC7BC,wBAAwB,EAAC,WAAW;IACpCC,gBAAgB,EAAC;EAAW,CAC7B,CAAC;AAEN"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { useSnapshot } from 'valtio';
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { ConnectorController, CoreHelperUtil, RouterController, SnackController, EventsController } from '@reown/appkit-core-react-native';
|
|
4
|
-
import { OtpCodeView } from '../../partials/w3m-otp-code';
|
|
5
|
-
export function UpdateEmailSecondaryOtpView() {
|
|
6
|
-
const {
|
|
7
|
-
data
|
|
8
|
-
} = useSnapshot(RouterController.state);
|
|
9
|
-
const [loading, setLoading] = useState(false);
|
|
10
|
-
const [error, setError] = useState('');
|
|
11
|
-
const authConnector = ConnectorController.getAuthConnector();
|
|
12
|
-
const onOtpSubmit = async value => {
|
|
13
|
-
if (!authConnector) return;
|
|
14
|
-
setLoading(true);
|
|
15
|
-
setError('');
|
|
16
|
-
try {
|
|
17
|
-
const provider = authConnector?.provider;
|
|
18
|
-
await provider.updateEmailSecondaryOtp({
|
|
19
|
-
otp: value
|
|
20
|
-
});
|
|
21
|
-
EventsController.sendEvent({
|
|
22
|
-
type: 'track',
|
|
23
|
-
event: 'EMAIL_VERIFICATION_CODE_PASS'
|
|
24
|
-
});
|
|
25
|
-
EventsController.sendEvent({
|
|
26
|
-
type: 'track',
|
|
27
|
-
event: 'EMAIL_EDIT_COMPLETE'
|
|
28
|
-
});
|
|
29
|
-
RouterController.reset('Account');
|
|
30
|
-
} catch (e) {
|
|
31
|
-
EventsController.sendEvent({
|
|
32
|
-
type: 'track',
|
|
33
|
-
event: 'EMAIL_VERIFICATION_CODE_FAIL'
|
|
34
|
-
});
|
|
35
|
-
const parsedError = CoreHelperUtil.parseError(e);
|
|
36
|
-
if (parsedError?.includes('Invalid Otp')) {
|
|
37
|
-
setError('Invalid code. Try again.');
|
|
38
|
-
} else {
|
|
39
|
-
SnackController.showError(parsedError);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
setLoading(false);
|
|
43
|
-
};
|
|
44
|
-
return /*#__PURE__*/React.createElement(OtpCodeView, {
|
|
45
|
-
loading: loading,
|
|
46
|
-
error: error,
|
|
47
|
-
email: data?.newEmail,
|
|
48
|
-
onSubmit: onOtpSubmit,
|
|
49
|
-
onRetry: RouterController.goBack,
|
|
50
|
-
codeExpiry: 10,
|
|
51
|
-
retryLabel: "Something wrong?",
|
|
52
|
-
retryDisabledButtonLabel: "Try again",
|
|
53
|
-
retryButtonLabel: "Try again"
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useSnapshot","useState","ConnectorController","CoreHelperUtil","RouterController","SnackController","EventsController","OtpCodeView","UpdateEmailSecondaryOtpView","data","state","loading","setLoading","error","setError","authConnector","getAuthConnector","onOtpSubmit","value","provider","updateEmailSecondaryOtp","otp","sendEvent","type","event","reset","e","parsedError","parseError","includes","showError","React","createElement","email","newEmail","onSubmit","onRetry","goBack","codeExpiry","retryLabel","retryDisabledButtonLabel","retryButtonLabel"],"sourceRoot":"../../../../src","sources":["views/w3m-update-email-secondary-otp-view/index.tsx"],"mappings":"AAAA,SAASA,WAAW,QAAQ,QAAQ;AACpC,SAASC,QAAQ,QAAQ,OAAO;AAEhC,SACEC,mBAAmB,EACnBC,cAAc,EACdC,gBAAgB,EAChBC,eAAe,EACfC,gBAAgB,QAEX,iCAAiC;AAExC,SAASC,W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W,CAAC;MACxC;IACF;IACAf,UAAU,CAAC,KAAK,CAAC;EACnB,CAAC;EAED,oBACEmB,KAAA,CAAAC,aAAA,CAACzB,WAAW;IACVI,OAAO,EAAEA,OAAQ;IACjBE,KAAK,EAAEA,KAAM;IACboB,KAAK,EAAExB,IAAI,EAAEyB,QAAS;IACtBC,QAAQ,EAAElB,WAAY;IACtBmB,OAAO,EAAEhC,gBAAgB,CAACiC,MAAO;IACjCC,UAAU,EAAE,EAAG;IACfC,UAAU,EAAC,kBAAkB;IAC7BC,wBAAwB,EAAC,WAAW;IACpCC,gBAAgB,EAAC;EAAW,CAC7B,CAAC;AAEN"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import { Platform } from 'react-native';
|
|
3
|
-
import { ConnectorController, CoreHelperUtil, RouterController, SnackController, EventsController } from '@reown/appkit-core-react-native';
|
|
4
|
-
import { Button, EmailInput, FlexView, Spacing, Text } from '@reown/appkit-ui-react-native';
|
|
5
|
-
import { useKeyboard } from '../../hooks/useKeyboard';
|
|
6
|
-
import styles from './styles';
|
|
7
|
-
export function UpdateEmailWalletView() {
|
|
8
|
-
const {
|
|
9
|
-
data
|
|
10
|
-
} = RouterController.state;
|
|
11
|
-
const [loading, setLoading] = useState(false);
|
|
12
|
-
const [error, setError] = useState('');
|
|
13
|
-
const [email, setEmail] = useState(data?.email || '');
|
|
14
|
-
const [isValidNewEmail, setIsValidNewEmail] = useState(false);
|
|
15
|
-
const authConnector = ConnectorController.getAuthConnector();
|
|
16
|
-
const {
|
|
17
|
-
keyboardShown,
|
|
18
|
-
keyboardHeight
|
|
19
|
-
} = useKeyboard();
|
|
20
|
-
const paddingBottom = Platform.select({
|
|
21
|
-
android: keyboardShown ? keyboardHeight + Spacing.l : Spacing.l,
|
|
22
|
-
default: Spacing.l
|
|
23
|
-
});
|
|
24
|
-
const onChangeText = value => {
|
|
25
|
-
setIsValidNewEmail(data?.email !== value && CoreHelperUtil.isValidEmail(value));
|
|
26
|
-
setEmail(value);
|
|
27
|
-
setError('');
|
|
28
|
-
};
|
|
29
|
-
const onEmailSubmit = async value => {
|
|
30
|
-
if (!authConnector) return;
|
|
31
|
-
const provider = authConnector.provider;
|
|
32
|
-
setLoading(true);
|
|
33
|
-
setError('');
|
|
34
|
-
try {
|
|
35
|
-
const response = await provider.updateEmail({
|
|
36
|
-
email: value
|
|
37
|
-
});
|
|
38
|
-
EventsController.sendEvent({
|
|
39
|
-
type: 'track',
|
|
40
|
-
event: 'EMAIL_EDIT'
|
|
41
|
-
});
|
|
42
|
-
if (response.action === 'VERIFY_SECONDARY_OTP') {
|
|
43
|
-
RouterController.push('UpdateEmailSecondaryOtp', {
|
|
44
|
-
email: data?.email,
|
|
45
|
-
newEmail: value
|
|
46
|
-
});
|
|
47
|
-
} else {
|
|
48
|
-
RouterController.push('UpdateEmailPrimaryOtp', {
|
|
49
|
-
email: data?.email,
|
|
50
|
-
newEmail: value
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
} catch (e) {
|
|
54
|
-
const parsedError = CoreHelperUtil.parseError(e);
|
|
55
|
-
if (parsedError?.includes('Invalid email')) {
|
|
56
|
-
setError('Invalid email. Try again.');
|
|
57
|
-
} else {
|
|
58
|
-
SnackController.showError(parsedError);
|
|
59
|
-
}
|
|
60
|
-
} finally {
|
|
61
|
-
setLoading(false);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
return /*#__PURE__*/React.createElement(FlexView, {
|
|
65
|
-
padding: ['l', 's', '0', 's'],
|
|
66
|
-
style: {
|
|
67
|
-
paddingBottom
|
|
68
|
-
}
|
|
69
|
-
}, /*#__PURE__*/React.createElement(EmailInput, {
|
|
70
|
-
initialValue: data?.email,
|
|
71
|
-
onSubmit: onEmailSubmit,
|
|
72
|
-
submitEnabled: isValidNewEmail,
|
|
73
|
-
onChangeText: onChangeText,
|
|
74
|
-
loading: loading,
|
|
75
|
-
errorMessage: error,
|
|
76
|
-
style: styles.emailInput,
|
|
77
|
-
autoFocus: true
|
|
78
|
-
}), /*#__PURE__*/React.createElement(FlexView, {
|
|
79
|
-
flexDirection: "row",
|
|
80
|
-
justifyContent: "center",
|
|
81
|
-
alignItems: "center",
|
|
82
|
-
margin: ['0', 'xs', '0', 'xs']
|
|
83
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
84
|
-
onPress: RouterController.goBack,
|
|
85
|
-
variant: "shade",
|
|
86
|
-
style: styles.cancelButton
|
|
87
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
88
|
-
variant: "paragraph-600",
|
|
89
|
-
color: "fg-100"
|
|
90
|
-
}, "Cancel")), /*#__PURE__*/React.createElement(Button, {
|
|
91
|
-
onPress: () => onEmailSubmit(email),
|
|
92
|
-
variant: "fill",
|
|
93
|
-
style: styles.saveButton,
|
|
94
|
-
disabled: loading || !isValidNewEmail
|
|
95
|
-
}, "Save")));
|
|
96
|
-
}
|
|
97
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useState","Platform","ConnectorController","CoreHelperUtil","RouterController","SnackController","EventsController","Button","EmailInput","FlexView","Spacing","Text","useKeyboard","styles","UpdateEmailWalletView","data","state","loading","setLoading","error","setError","email","setEmail","isValidNewEmail","setIsValidNewEmail","authConnector","getAuthConnector","keyboardShown","keyboardHeight","paddingBottom","select","android","l","default","onChangeText","value","isValidEmail","onEmailSubmit","provider","response","updateEmail","sendEvent","type","event","action","push","newEmail","e","parsedError","parseError","includes","showError","React","createElement","padding","style","initialValue","onSubmit","submitEnabled","errorMessage","emailInput","autoFocus","flexDirection","justifyContent","alignItems","margin","onPress","goBack","variant","cancelButton","color","saveButton","disabled"],"sourceRoot":"../../../../src","sources":["views/w3m-update-email-wallet-view/index.tsx"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,OAAO;AAChC,SAASC,QAAQ,QAAQ,cAAc;AACvC,SACEC,mBAAmB,EACnBC,cAAc,EACdC,gBAAgB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A,CAAC7C,UAAU;IACTgD,YAAY,EAAEzC,IAAI,EAAEM,KAAM;IAC1BoC,QAAQ,EAAEpB,aAAc;IACxBqB,aAAa,EAAEnC,eAAgB;IAC/BW,YAAY,EAAEA,YAAa;IAC3BjB,OAAO,EAAEA,OAAQ;IACjB0C,YAAY,EAAExC,KAAM;IACpBoC,KAAK,EAAE1C,MAAM,CAAC+C,UAAW;IACzBC,SAAS;EAAA,CACV,CAAC,eACFT,KAAA,CAAAC,aAAA,CAAC5C,QAAQ;IACPqD,aAAa,EAAC,KAAK;IACnBC,cAAc,EAAC,QAAQ;IACvBC,UAAU,EAAC,QAAQ;IACnBC,MAAM,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI;EAAE,gBAE/Bb,KAAA,CAAAC,aAAA,CAAC9C,MAAM;IAAC2D,OAAO,EAAE9D,gBAAgB,CAAC+D,MAAO;IAACC,OAAO,EAAC,OAAO;IAACb,KAAK,EAAE1C,MAAM,CAACwD;EAAa,gBACnFjB,KAAA,CAAAC,aAAA,CAAC1C,IAAI;IAACyD,OAAO,EAAC,eAAe;IAACE,KAAK,EAAC;EAAQ,GAAC,QAEvC,CACA,CAAC,eACTlB,KAAA,CAAAC,aAAA,CAAC9C,MAAM;IACL2D,OAAO,EAAEA,CAAA,KAAM7B,aAAa,CAAChB,KAAK,CAAE;IACpC+C,OAAO,EAAC,MAAM;IACdb,KAAK,EAAE1C,MAAM,CAAC0D,UAAW;IACzBC,QAAQ,EAAEvD,OAAO,IAAI,CAACM;EAAgB,GACvC,MAEO,CACA,CACF,CAAC;AAEf"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BorderRadius, Spacing } from '@reown/appkit-ui-react-native';
|
|
2
|
-
import { StyleSheet } from 'react-native';
|
|
3
|
-
export default StyleSheet.create({
|
|
4
|
-
container: {
|
|
5
|
-
justifyContent: 'center',
|
|
6
|
-
alignItems: 'center'
|
|
7
|
-
},
|
|
8
|
-
emailInput: {
|
|
9
|
-
marginBottom: Spacing.s
|
|
10
|
-
},
|
|
11
|
-
cancelButton: {
|
|
12
|
-
flex: 1,
|
|
13
|
-
height: 48,
|
|
14
|
-
marginRight: Spacing['2xs'],
|
|
15
|
-
borderRadius: BorderRadius.xs
|
|
16
|
-
},
|
|
17
|
-
saveButton: {
|
|
18
|
-
flex: 1,
|
|
19
|
-
height: 48,
|
|
20
|
-
marginLeft: Spacing['2xs'],
|
|
21
|
-
borderRadius: BorderRadius.xs
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["BorderRadius","Spacing","StyleSheet","create","container","justifyContent","alignItems","emailInput","marginBottom","s","cancelButton","flex","height","marginRight","borderRadius","xs","saveButton","marginLeft"],"sourceRoot":"../../../../src","sources":["views/w3m-update-email-wallet-view/styles.ts"],"mappings":"AAAA,SAASA,YAAY,EAAEC,OAAO,QAAQ,+BAA+B;AACrE,SAASC,UAAU,QAAQ,cAAc;AAEzC,eAAeA,UAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDC,UAAU,EAAE;IACVC,YAAY,EAAEP,OAAO,CAACQ;EACxB,CAAC;EACDC,YAAY,EAAE;IACZC,IAAI,EAAE,CAAC;IACPC,MAAM,EAAE,EAAE;IACVC,WAAW,EAAEZ,OAAO,CAAC,KAAK,CAAC;IAC3Ba,YAAY,EAAEd,YAAY,CAACe;EAC7B,CAAC;EACDC,UAAU,EAAE;IACVL,IAAI,EAAE,CAAC;IACPC,MAAM,EAAE,EAAE;IACVK,UAAU,EAAEhB,OAAO,CAAC,KAAK,CAAC;IAC1Ba,YAAY,EAAEd,YAAY,CAACe;EAC7B;AACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-update-email-primary-otp-view/index.tsx"],"names":[],"mappings":"AAaA,wBAAgB,yBAAyB,4CAyCxC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-update-email-secondary-otp-view/index.tsx"],"names":[],"mappings":"AAcA,wBAAgB,2BAA2B,4CAyC1C"}
|