@embarkai/ui-kit 0.3.0 → 0.3.1
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/dist/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +11 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/iframe/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<meta http-equiv="X-Content-Type-Options" content="nosniff" />
|
|
16
16
|
<meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin" />
|
|
17
17
|
|
|
18
|
-
<title>EmbarkAI Secure Wallet - iframe version 0.3.
|
|
18
|
+
<title>EmbarkAI Secure Wallet - iframe version 0.3.1</title>
|
|
19
19
|
|
|
20
20
|
<!-- Styles will be injected by build process -->
|
|
21
21
|
<style>
|
package/dist/iframe/main.js
CHANGED
|
@@ -4410,7 +4410,7 @@ var SigningManager = class extends TokenRefreshApiClient {
|
|
|
4410
4410
|
};
|
|
4411
4411
|
|
|
4412
4412
|
// src/iframe/main.ts
|
|
4413
|
-
var IFRAME_VERSION = "0.3.
|
|
4413
|
+
var IFRAME_VERSION = "0.3.1";
|
|
4414
4414
|
var IframeWallet = class {
|
|
4415
4415
|
constructor() {
|
|
4416
4416
|
console.log("=".repeat(60));
|
package/dist/index.cjs
CHANGED
|
@@ -15573,7 +15573,7 @@ var init_package = __esm({
|
|
|
15573
15573
|
"package.json"() {
|
|
15574
15574
|
package_default = {
|
|
15575
15575
|
name: "@embarkai/ui-kit",
|
|
15576
|
-
version: "0.3.
|
|
15576
|
+
version: "0.3.1",
|
|
15577
15577
|
description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
|
|
15578
15578
|
type: "module",
|
|
15579
15579
|
main: "./dist/index.cjs",
|
|
@@ -16439,19 +16439,8 @@ function WalletConnectHandler() {
|
|
|
16439
16439
|
});
|
|
16440
16440
|
setHasStartedLinking(true);
|
|
16441
16441
|
setProviderType(null);
|
|
16442
|
-
|
|
16443
|
-
|
|
16444
|
-
setTimeout(() => {
|
|
16445
|
-
setPage(null);
|
|
16446
|
-
if (openConnectModal) {
|
|
16447
|
-
openConnectModal();
|
|
16448
|
-
} else {
|
|
16449
|
-
console.error("[WalletConnectHandler] openConnectModal is undefined!");
|
|
16450
|
-
setIsWalletLinking(false);
|
|
16451
|
-
setHasStartedLinking(false);
|
|
16452
|
-
}
|
|
16453
|
-
}, 500);
|
|
16454
|
-
} else {
|
|
16442
|
+
disconnect();
|
|
16443
|
+
setTimeout(() => {
|
|
16455
16444
|
setPage(null);
|
|
16456
16445
|
if (openConnectModal) {
|
|
16457
16446
|
openConnectModal();
|
|
@@ -16460,7 +16449,7 @@ function WalletConnectHandler() {
|
|
|
16460
16449
|
setIsWalletLinking(false);
|
|
16461
16450
|
setHasStartedLinking(false);
|
|
16462
16451
|
}
|
|
16463
|
-
}
|
|
16452
|
+
}, 500);
|
|
16464
16453
|
}
|
|
16465
16454
|
if (!isWalletLinking && hasStartedLinking) {
|
|
16466
16455
|
setHasStartedLinking(false);
|
|
@@ -16491,6 +16480,13 @@ function WalletConnectHandler() {
|
|
|
16491
16480
|
disconnect();
|
|
16492
16481
|
setIsWalletLinking(false);
|
|
16493
16482
|
setHasStartedLinking(false);
|
|
16483
|
+
if (passportWalletAddress) {
|
|
16484
|
+
setManageWalletLinkError("Wallet connection timed out. Please try again.");
|
|
16485
|
+
setPage("manage-wallet" /* MANAGE_WALLET */);
|
|
16486
|
+
} else {
|
|
16487
|
+
setAuthError({ title: "Connection timed out", message: "Wallet did not respond. Please try again." });
|
|
16488
|
+
setPage("auth" /* AUTH */);
|
|
16489
|
+
}
|
|
16494
16490
|
}, 12e4);
|
|
16495
16491
|
return () => clearTimeout(timeout);
|
|
16496
16492
|
}
|