@reown/appkit-react-native 0.0.0-develop-20251114152149 → 0.0.0-develop-20251114173726
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/views/w3m-connecting-view/index.js +7 -9
- package/lib/commonjs/views/w3m-connecting-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-view/index.js +7 -9
- package/lib/module/views/w3m-connecting-view/index.js.map +1 -1
- package/lib/typescript/views/w3m-connecting-view/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/views/w3m-connecting-view/index.tsx +8 -12
|
@@ -32,7 +32,6 @@ function ConnectingView() {
|
|
|
32
32
|
const onRetry = () => {
|
|
33
33
|
if (_appkitCoreReactNative.CoreHelperUtil.isAllowedRetry(lastRetry)) {
|
|
34
34
|
setLastRetry(Date.now());
|
|
35
|
-
_appkitCoreReactNative.WcController.clearUri();
|
|
36
35
|
initializeConnection(true);
|
|
37
36
|
} else {
|
|
38
37
|
_appkitCoreReactNative.SnackController.showError('Please wait a second before retrying');
|
|
@@ -49,6 +48,7 @@ function ConnectingView() {
|
|
|
49
48
|
const isPairingExpired = _appkitCoreReactNative.CoreHelperUtil.isPairingExpired(wcPairingExpiry);
|
|
50
49
|
if (retry || isPairingExpired) {
|
|
51
50
|
_appkitCoreReactNative.WcController.setWcError(false);
|
|
51
|
+
_appkitCoreReactNative.WcController.clearUri();
|
|
52
52
|
const connectPromise = connect({
|
|
53
53
|
wallet: routeData?.wallet
|
|
54
54
|
});
|
|
@@ -58,14 +58,6 @@ function ConnectingView() {
|
|
|
58
58
|
} catch (error) {
|
|
59
59
|
_appkitCoreReactNative.LogController.sendError(error, 'ConnectingView.tsx', 'initializeConnection');
|
|
60
60
|
_appkitCoreReactNative.WcController.setWcError(true);
|
|
61
|
-
_appkitCoreReactNative.WcController.clearUri();
|
|
62
|
-
const currentRetryTime = retryTimestamp ?? lastRetry;
|
|
63
|
-
if (isQr && _appkitCoreReactNative.CoreHelperUtil.isAllowedRetry(currentRetryTime)) {
|
|
64
|
-
const newRetryTime = Date.now();
|
|
65
|
-
setLastRetry(newRetryTime);
|
|
66
|
-
initializeConnection(true, newRetryTime);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
61
|
const isUserRejected = _appkitCommonReactNative.ErrorUtil.isUserRejectedRequestError(error);
|
|
70
62
|
const isProposalExpired = _appkitCommonReactNative.ErrorUtil.isProposalExpiredError(error);
|
|
71
63
|
if (!isProposalExpired) {
|
|
@@ -78,6 +70,12 @@ function ConnectingView() {
|
|
|
78
70
|
message: error?.message ?? 'Unknown'
|
|
79
71
|
}
|
|
80
72
|
});
|
|
73
|
+
const currentRetryTime = retryTimestamp ?? lastRetry;
|
|
74
|
+
if (isQr && _appkitCoreReactNative.CoreHelperUtil.isAllowedRetry(currentRetryTime)) {
|
|
75
|
+
const newRetryTime = Date.now();
|
|
76
|
+
setLastRetry(newRetryTime);
|
|
77
|
+
initializeConnection(true, newRetryTime);
|
|
78
|
+
}
|
|
81
79
|
}
|
|
82
80
|
};
|
|
83
81
|
const onCopyUri = uri => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_valtio","require","_react","_appkitCommonReactNative","_appkitCoreReactNative","_AppKitContext","_w3mConnectingQrcode","_w3mConnectingMobile","_w3mConnectingWeb","_w3mConnectingHeader","_jsxRuntime","ConnectingView","connect","useInternalAppKit","installed","useSnapshot","ApiController","state","data","RouterController","lastRetry","setLastRetry","useState","Date","now","isQr","wallet","isInstalled","find","id","platform","setPlatform","platforms","setPlatforms","onRetry","CoreHelperUtil","isAllowedRetry","
|
|
1
|
+
{"version":3,"names":["_valtio","require","_react","_appkitCommonReactNative","_appkitCoreReactNative","_AppKitContext","_w3mConnectingQrcode","_w3mConnectingMobile","_w3mConnectingWeb","_w3mConnectingHeader","_jsxRuntime","ConnectingView","connect","useInternalAppKit","installed","useSnapshot","ApiController","state","data","RouterController","lastRetry","setLastRetry","useState","Date","now","isQr","wallet","isInstalled","find","id","platform","setPlatform","platforms","setPlatforms","onRetry","CoreHelperUtil","isAllowedRetry","initializeConnection","SnackController","showError","retry","retryTimestamp","wcPairingExpiry","WcController","routeData","isPairingExpired","setWcError","clearUri","connectPromise","setWcPromise","error","LogController","sendError","isUserRejected","ErrorUtil","isUserRejectedRequestError","isProposalExpired","isProposalExpiredError","EventsController","sendEvent","type","event","properties","message","currentRetryTime","newRetryTime","onCopyUri","uri","OptionsController","isClipboardAvailable","copyToClipboard","showSuccess","onSelectPlatform","tab","useLayoutEffect","_platforms","mobile_link","push","webapp_link","useEffect","_interval","setInterval","ConstantsUtil","TEN_SEC_MS","clearInterval","jsxs","Fragment","children","length","jsx","ConnectingHeader","ConnectingQrCode","ConnectingMobile","ConnectingWeb"],"sourceRoot":"../../../../src","sources":["views/w3m-connecting-view/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AAWA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,oBAAA,GAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAN,OAAA;AACA,IAAAO,iBAAA,GAAAP,OAAA;AACA,IAAAQ,oBAAA,GAAAR,OAAA;AAAwE,IAAAS,WAAA,GAAAT,OAAA;AAEjE,SAASU,cAAcA,CAAA,EAAG;EAC/B,MAAM;IAAEC;EAAQ,CAAC,GAAG,IAAAC,gCAAiB,EAAC,CAAC;EACvC,MAAM;IAAEC;EAAU,CAAC,GAAG,IAAAC,mBAAW,EAACC,oCAAa,CAACC,KAAK,CAAC;EACtD,MAAM;IAAEC;EAAK,CAAC,GAAGC,uCAAgB,CAACF,KAAK;EACvC,MAAM,CAACG,SAAS,EAAEC,YAAY,CAAC,GAAG,IAAAC,eAAQ,EAACC,IAAI,CAACC,GAAG,CAAC,CAAC,CAAC;EACtD,MAAMC,IAAI,G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,gBACpB,IAAApB,WAAA,CAAA+E,GAAA,EAACjF,iBAAA,CAAAqF,aAAa;MAAC3B,SAAS,EAAEA;IAAU,CAAE,CAAC,GACrC,IAAI;EAAA,CACR,CAAC;AAEP","ignoreList":[]}
|
|
@@ -28,7 +28,6 @@ export function ConnectingView() {
|
|
|
28
28
|
const onRetry = () => {
|
|
29
29
|
if (CoreHelperUtil.isAllowedRetry(lastRetry)) {
|
|
30
30
|
setLastRetry(Date.now());
|
|
31
|
-
WcController.clearUri();
|
|
32
31
|
initializeConnection(true);
|
|
33
32
|
} else {
|
|
34
33
|
SnackController.showError('Please wait a second before retrying');
|
|
@@ -45,6 +44,7 @@ export function ConnectingView() {
|
|
|
45
44
|
const isPairingExpired = CoreHelperUtil.isPairingExpired(wcPairingExpiry);
|
|
46
45
|
if (retry || isPairingExpired) {
|
|
47
46
|
WcController.setWcError(false);
|
|
47
|
+
WcController.clearUri();
|
|
48
48
|
const connectPromise = connect({
|
|
49
49
|
wallet: routeData?.wallet
|
|
50
50
|
});
|
|
@@ -54,14 +54,6 @@ export function ConnectingView() {
|
|
|
54
54
|
} catch (error) {
|
|
55
55
|
LogController.sendError(error, 'ConnectingView.tsx', 'initializeConnection');
|
|
56
56
|
WcController.setWcError(true);
|
|
57
|
-
WcController.clearUri();
|
|
58
|
-
const currentRetryTime = retryTimestamp ?? lastRetry;
|
|
59
|
-
if (isQr && CoreHelperUtil.isAllowedRetry(currentRetryTime)) {
|
|
60
|
-
const newRetryTime = Date.now();
|
|
61
|
-
setLastRetry(newRetryTime);
|
|
62
|
-
initializeConnection(true, newRetryTime);
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
57
|
const isUserRejected = ErrorUtil.isUserRejectedRequestError(error);
|
|
66
58
|
const isProposalExpired = ErrorUtil.isProposalExpiredError(error);
|
|
67
59
|
if (!isProposalExpired) {
|
|
@@ -74,6 +66,12 @@ export function ConnectingView() {
|
|
|
74
66
|
message: error?.message ?? 'Unknown'
|
|
75
67
|
}
|
|
76
68
|
});
|
|
69
|
+
const currentRetryTime = retryTimestamp ?? lastRetry;
|
|
70
|
+
if (isQr && CoreHelperUtil.isAllowedRetry(currentRetryTime)) {
|
|
71
|
+
const newRetryTime = Date.now();
|
|
72
|
+
setLastRetry(newRetryTime);
|
|
73
|
+
initializeConnection(true, newRetryTime);
|
|
74
|
+
}
|
|
77
75
|
}
|
|
78
76
|
};
|
|
79
77
|
const onCopyUri = uri => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useSnapshot","useEffect","useLayoutEffect","useState","ErrorUtil","WcController","ConstantsUtil","CoreHelperUtil","RouterController","SnackController","OptionsController","ApiController","EventsController","LogController","useInternalAppKit","ConnectingQrCode","ConnectingMobile","ConnectingWeb","ConnectingHeader","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ConnectingView","connect","installed","state","data","lastRetry","setLastRetry","Date","now","isQr","wallet","isInstalled","find","id","platform","setPlatform","platforms","setPlatforms","onRetry","isAllowedRetry","
|
|
1
|
+
{"version":3,"names":["useSnapshot","useEffect","useLayoutEffect","useState","ErrorUtil","WcController","ConstantsUtil","CoreHelperUtil","RouterController","SnackController","OptionsController","ApiController","EventsController","LogController","useInternalAppKit","ConnectingQrCode","ConnectingMobile","ConnectingWeb","ConnectingHeader","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ConnectingView","connect","installed","state","data","lastRetry","setLastRetry","Date","now","isQr","wallet","isInstalled","find","id","platform","setPlatform","platforms","setPlatforms","onRetry","isAllowedRetry","initializeConnection","showError","retry","retryTimestamp","wcPairingExpiry","routeData","isPairingExpired","setWcError","clearUri","connectPromise","setWcPromise","error","sendError","isUserRejected","isUserRejectedRequestError","isProposalExpired","isProposalExpiredError","sendEvent","type","event","properties","message","currentRetryTime","newRetryTime","onCopyUri","uri","isClipboardAvailable","copyToClipboard","showSuccess","onSelectPlatform","tab","_platforms","mobile_link","push","webapp_link","_interval","setInterval","TEN_SEC_MS","clearInterval","children","length"],"s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AC,CAAC,CAAC;EAC5B,CAAC,EAAE,CAAC/C,IAAI,EAAEO,WAAW,CAAC,CAAC;EAEvBnC,SAAS,CAAC,MAAM;IACd4C,oBAAoB,CAAC,CAAC;IACtB,IAAImC,SAAyB;;IAE7B;IACA,IAAI9C,IAAI,EAAE;MACR8C,SAAS,GAAGC,WAAW,CAACpC,oBAAoB,EAAEvC,aAAa,CAAC4E,UAAU,CAAC;IACzE;IAEA,OAAO,MAAMC,aAAa,CAACH,SAAS,CAAC;IACrC;EACF,CAAC,EAAE,CAAC9C,IAAI,CAAC,CAAC;EAEV,oBACEV,KAAA,CAAAF,SAAA;IAAA8D,QAAA,GACG3C,SAAS,CAAC4C,MAAM,GAAG,CAAC,gBACnBjE,IAAA,CAACF,gBAAgB;MAACuB,SAAS,EAAEA,SAAU;MAACiC,gBAAgB,EAAEA;IAAiB,CAAE,CAAC,GAC5E,IAAI,EACPxC,IAAI,gBACHd,IAAA,CAACL,gBAAgB,IAAE,CAAC,GAClBwB,QAAQ,KAAK,QAAQ,gBACvBnB,IAAA,CAACJ,gBAAgB;MAAC2B,OAAO,EAAEA,OAAQ;MAAC0B,SAAS,EAAEA,SAAU;MAACjC,WAAW,EAAEA;IAAY,CAAE,CAAC,GACpFG,QAAQ,KAAK,KAAK,gBACpBnB,IAAA,CAACH,aAAa;MAACoD,SAAS,EAAEA;IAAU,CAAE,CAAC,GACrC,IAAI;EAAA,CACR,CAAC;AAEP","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-view/index.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-view/index.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,cAAc,4CAmH7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-react-native",
|
|
3
|
-
"version": "0.0.0-develop-
|
|
3
|
+
"version": "0.0.0-develop-20251114173726",
|
|
4
4
|
"main": "lib/commonjs/index.js",
|
|
5
5
|
"types": "lib/typescript/index.d.ts",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"provenance": true
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@reown/appkit-common-react-native": "0.0.0-develop-
|
|
44
|
-
"@reown/appkit-core-react-native": "0.0.0-develop-
|
|
45
|
-
"@reown/appkit-ui-react-native": "0.0.0-develop-
|
|
43
|
+
"@reown/appkit-common-react-native": "0.0.0-develop-20251114173726",
|
|
44
|
+
"@reown/appkit-core-react-native": "0.0.0-develop-20251114173726",
|
|
45
|
+
"@reown/appkit-ui-react-native": "0.0.0-develop-20251114173726",
|
|
46
46
|
"@walletconnect/universal-provider": "2.21.10",
|
|
47
47
|
"valtio": "2.1.8"
|
|
48
48
|
},
|
|
@@ -32,7 +32,6 @@ export function ConnectingView() {
|
|
|
32
32
|
const onRetry = () => {
|
|
33
33
|
if (CoreHelperUtil.isAllowedRetry(lastRetry)) {
|
|
34
34
|
setLastRetry(Date.now());
|
|
35
|
-
WcController.clearUri();
|
|
36
35
|
initializeConnection(true);
|
|
37
36
|
} else {
|
|
38
37
|
SnackController.showError('Please wait a second before retrying');
|
|
@@ -46,6 +45,7 @@ export function ConnectingView() {
|
|
|
46
45
|
const isPairingExpired = CoreHelperUtil.isPairingExpired(wcPairingExpiry);
|
|
47
46
|
if (retry || isPairingExpired) {
|
|
48
47
|
WcController.setWcError(false);
|
|
48
|
+
WcController.clearUri();
|
|
49
49
|
|
|
50
50
|
const connectPromise = connect({
|
|
51
51
|
wallet: routeData?.wallet
|
|
@@ -56,17 +56,6 @@ export function ConnectingView() {
|
|
|
56
56
|
} catch (error) {
|
|
57
57
|
LogController.sendError(error, 'ConnectingView.tsx', 'initializeConnection');
|
|
58
58
|
WcController.setWcError(true);
|
|
59
|
-
WcController.clearUri();
|
|
60
|
-
|
|
61
|
-
const currentRetryTime = retryTimestamp ?? lastRetry;
|
|
62
|
-
|
|
63
|
-
if (isQr && CoreHelperUtil.isAllowedRetry(currentRetryTime)) {
|
|
64
|
-
const newRetryTime = Date.now();
|
|
65
|
-
setLastRetry(newRetryTime);
|
|
66
|
-
initializeConnection(true, newRetryTime);
|
|
67
|
-
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
59
|
|
|
71
60
|
const isUserRejected = ErrorUtil.isUserRejectedRequestError(error);
|
|
72
61
|
const isProposalExpired = ErrorUtil.isProposalExpiredError(error);
|
|
@@ -83,6 +72,13 @@ export function ConnectingView() {
|
|
|
83
72
|
message: (error as Error)?.message ?? 'Unknown'
|
|
84
73
|
}
|
|
85
74
|
});
|
|
75
|
+
|
|
76
|
+
const currentRetryTime = retryTimestamp ?? lastRetry;
|
|
77
|
+
if (isQr && CoreHelperUtil.isAllowedRetry(currentRetryTime)) {
|
|
78
|
+
const newRetryTime = Date.now();
|
|
79
|
+
setLastRetry(newRetryTime);
|
|
80
|
+
initializeConnection(true, newRetryTime);
|
|
81
|
+
}
|
|
86
82
|
}
|
|
87
83
|
};
|
|
88
84
|
|