@lumiapassport/ui-kit 1.14.8 → 1.14.9

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>Lumia Passport Secure Wallet - iframe version 1.14.8</title>
18
+ <title>Lumia Passport Secure Wallet - iframe version 1.14.9</title>
19
19
 
20
20
  <!-- Styles will be injected by build process -->
21
21
  <style>
@@ -3547,8 +3547,8 @@ var TrustedAppsManager = class {
3547
3547
  /**
3548
3548
  * Add app to trusted list
3549
3549
  */
3550
- addTrustedApp(userId, projectId, origin) {
3551
- console.log("[TrustedApps] Adding trusted app:", { userId, projectId, origin });
3550
+ addTrustedApp(userId, projectId, origin, appName, appLogo) {
3551
+ console.log("[TrustedApps] Adding trusted app:", { userId, projectId, origin, appName });
3552
3552
  const trustedApps = this.getTrustedApps();
3553
3553
  const exists = trustedApps.some(
3554
3554
  (app) => app.userId === userId && app.projectId === projectId && app.origin === origin
@@ -3561,7 +3561,9 @@ var TrustedAppsManager = class {
3561
3561
  userId,
3562
3562
  projectId,
3563
3563
  origin,
3564
- trustedAt: Date.now()
3564
+ trustedAt: Date.now(),
3565
+ appName,
3566
+ appLogo
3565
3567
  });
3566
3568
  this.saveTrustedApps(trustedApps);
3567
3569
  console.log("[TrustedApps] \u2705 App added to trusted list");
@@ -3749,7 +3751,7 @@ var SigningManager = class extends TokenRefreshApiClient {
3749
3751
  throw new Error("User rejected transaction");
3750
3752
  }
3751
3753
  if (confirmResult.trustApp) {
3752
- this.trustedApps.addTrustedApp(userId, projectId, origin);
3754
+ this.trustedApps.addTrustedApp(userId, projectId, origin, confirmResult.appName, confirmResult.appLogo);
3753
3755
  }
3754
3756
  } else if (isMinimalOperation) {
3755
3757
  console.log("[iframe][Sign] Auto-approving minimal safe operation (account deployment)");
@@ -3869,7 +3871,7 @@ var SigningManager = class extends TokenRefreshApiClient {
3869
3871
  const trustApp = trustCheckbox?.checked || false;
3870
3872
  modal.remove();
3871
3873
  this.hideIframe();
3872
- resolve({ confirmed: true, trustApp });
3874
+ resolve({ confirmed: true, trustApp, appName: metadata?.name, appLogo: metadata?.logo });
3873
3875
  }
3874
3876
  });
3875
3877
  cancelBtn?.addEventListener("click", () => {
@@ -4123,7 +4125,7 @@ var SigningManager = class extends TokenRefreshApiClient {
4123
4125
  throw new Error("User rejected signature request");
4124
4126
  }
4125
4127
  if (confirmResult.trustApp) {
4126
- this.trustedApps.addTrustedApp(userId, projectId, origin);
4128
+ this.trustedApps.addTrustedApp(userId, projectId, origin, confirmResult.appName, confirmResult.appLogo);
4127
4129
  }
4128
4130
  }
4129
4131
  const keyshareData = this.storage.loadKeyshare(userId);
@@ -4158,7 +4160,7 @@ var SigningManager = class extends TokenRefreshApiClient {
4158
4160
  const trustApp = trustCheckbox?.checked || false;
4159
4161
  modal.remove();
4160
4162
  this.hideIframe();
4161
- resolve({ confirmed: true, trustApp });
4163
+ resolve({ confirmed: true, trustApp, appName: metadata?.name, appLogo: metadata?.logo });
4162
4164
  }
4163
4165
  });
4164
4166
  cancelBtn?.addEventListener("click", () => {
@@ -4286,7 +4288,7 @@ var SigningManager = class extends TokenRefreshApiClient {
4286
4288
  };
4287
4289
 
4288
4290
  // src/iframe/main.ts
4289
- var IFRAME_VERSION = "1.14.8";
4291
+ var IFRAME_VERSION = "1.14.9";
4290
4292
  var IframeWallet = class {
4291
4293
  constructor() {
4292
4294
  console.log("=".repeat(60));