@embarkai/ui-kit 0.2.5 → 0.2.7

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.
@@ -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.2.5</title>
18
+ <title>EmbarkAI Secure Wallet - iframe version 0.2.7</title>
19
19
 
20
20
  <!-- Styles will be injected by build process -->
21
21
  <style>
@@ -1763,12 +1763,6 @@ var AuthorizationManager = class {
1763
1763
  }
1764
1764
  };
1765
1765
 
1766
- // src/internal/constants.ts
1767
- import { Key, Mail, Wallet2 } from "lucide-react";
1768
- var LOOCAL_BACKUP_STATUS_KEY = "passport-backup-status";
1769
- var BLOCKSCOUT_QUERY_STALE_TIME = 30 * 1e3;
1770
- var BLOCKSCOUT_QUERY_GC_TIME = 5 * 60 * 1e3;
1771
-
1772
1766
  // src/iframe/lib/backup/cloudStorage.ts
1773
1767
  var GoogleDriveProvider = class {
1774
1768
  constructor() {
@@ -2116,7 +2110,8 @@ var TokenRefreshApiClient = class {
2116
2110
  }, 3e4);
2117
2111
  const messageHandler = (event) => {
2118
2112
  const message = event.data;
2119
- if (message && message.type === "IFRAME_MSG_TOKEN_REFRESHED" && message.messageId === messageId) {
2113
+ const type = message?.type?.startsWith?.("LUMIA_PASSPORT_") ? message.type.replace("LUMIA_PASSPORT_", "IFRAME_MSG_") : message?.type;
2114
+ if (message && type === "IFRAME_MSG_TOKEN_REFRESHED" && message.messageId === messageId) {
2120
2115
  cleanup();
2121
2116
  if (message.accessToken) {
2122
2117
  console.log("[iframe][TokenRefresh] \u2705 Received new token from parent");
@@ -2162,6 +2157,7 @@ var TokenRefreshApiClient = class {
2162
2157
  };
2163
2158
 
2164
2159
  // src/iframe/lib/backup-manager.ts
2160
+ var LOOCAL_BACKUP_STATUS_KEY = "passport-backup-status";
2165
2161
  var BACKUP_VERSION = "1.0";
2166
2162
  var BackupManager = class {
2167
2163
  constructor() {
@@ -4399,7 +4395,7 @@ var SigningManager = class extends TokenRefreshApiClient {
4399
4395
  };
4400
4396
 
4401
4397
  // src/iframe/main.ts
4402
- var IFRAME_VERSION = "0.2.5";
4398
+ var IFRAME_VERSION = "0.2.7";
4403
4399
  var IframeWallet = class {
4404
4400
  constructor() {
4405
4401
  console.log("=".repeat(60));