@lumiapassport/ui-kit 1.14.18 → 1.14.20

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.18</title>
18
+ <title>Lumia Passport Secure Wallet - iframe version 1.14.20</title>
19
19
 
20
20
  <!-- Styles will be injected by build process -->
21
21
  <style>
@@ -1514,8 +1514,12 @@ function buildConfirmTxTemplateData(project, origin, transaction, risk, metadata
1514
1514
  if (showContractInteraction) {
1515
1515
  const approveData = parseERC20Approve(callData);
1516
1516
  if (approveData) {
1517
- const formattedAmount = formatApproveAmount(approveData.amount);
1518
- actionDescription = `Approve ${formattedAmount} tokens`;
1517
+ if (approveData.amount === 0n) {
1518
+ actionDescription = "Revoke token approval";
1519
+ } else {
1520
+ const formattedAmount = formatApproveAmount(approveData.amount);
1521
+ actionDescription = `Approve ${formattedAmount} tokens`;
1522
+ }
1519
1523
  }
1520
1524
  }
1521
1525
  const isSponsored = isUserOp && !!transaction.userOpDetails?.paymaster;
@@ -4311,7 +4315,7 @@ var SigningManager = class extends TokenRefreshApiClient {
4311
4315
  };
4312
4316
 
4313
4317
  // src/iframe/main.ts
4314
- var IFRAME_VERSION = "1.14.18";
4318
+ var IFRAME_VERSION = "1.14.20";
4315
4319
  var IframeWallet = class {
4316
4320
  constructor() {
4317
4321
  console.log("=".repeat(60));