@lumiapassport/ui-kit 1.15.13 → 1.16.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/index.d.cts CHANGED
@@ -462,7 +462,7 @@ declare class IframeManager {
462
462
  private iframeUrl;
463
463
  private projectId;
464
464
  private debug;
465
- private sessionToken;
465
+ private channelToken;
466
466
  private isReady;
467
467
  private readyPromise;
468
468
  private readyResolve;
@@ -478,6 +478,9 @@ declare class IframeManager {
478
478
  private providerConnections;
479
479
  private readonly REQUEST_TIMEOUT;
480
480
  private readonly NONCE_EXPIRY;
481
+ private readonly HEARTBEAT_INTERVAL;
482
+ private heartbeatInterval?;
483
+ private isReconnecting;
481
484
  constructor(config: IframeManagerConfig);
482
485
  /**
483
486
  * Initialize iframe and wait for it to be ready
@@ -488,9 +491,25 @@ declare class IframeManager {
488
491
  */
489
492
  setOnWalletReady(callback: (status: WalletReadyStatus) => void): void;
490
493
  /**
491
- * Authenticate SDK with iframe to establish session
494
+ * Authenticate SDK with iframe to establish secure channel
492
495
  */
493
496
  private authenticateSDK;
497
+ /**
498
+ * Start periodic heartbeat to check SDK channel validity
499
+ */
500
+ private startHeartbeat;
501
+ /**
502
+ * Stop heartbeat
503
+ */
504
+ private stopHeartbeat;
505
+ /**
506
+ * Reconnect SDK channel after it becomes invalid
507
+ */
508
+ reconnect(): Promise<void>;
509
+ /**
510
+ * Setup visibility change handler to check channel when tab becomes visible
511
+ */
512
+ private setupVisibilityHandler;
494
513
  /**
495
514
  * Handle incoming postMessage events
496
515
  */
@@ -504,7 +523,7 @@ declare class IframeManager {
504
523
  */
505
524
  sendMessage(type: string, data: Record<string, any>): Promise<any>;
506
525
  /**
507
- * Compute HMAC for message authentication
526
+ * Compute HMAC for message authentication using SDK channel token
508
527
  */
509
528
  private computeHMAC;
510
529
  /**
package/dist/index.d.ts CHANGED
@@ -462,7 +462,7 @@ declare class IframeManager {
462
462
  private iframeUrl;
463
463
  private projectId;
464
464
  private debug;
465
- private sessionToken;
465
+ private channelToken;
466
466
  private isReady;
467
467
  private readyPromise;
468
468
  private readyResolve;
@@ -478,6 +478,9 @@ declare class IframeManager {
478
478
  private providerConnections;
479
479
  private readonly REQUEST_TIMEOUT;
480
480
  private readonly NONCE_EXPIRY;
481
+ private readonly HEARTBEAT_INTERVAL;
482
+ private heartbeatInterval?;
483
+ private isReconnecting;
481
484
  constructor(config: IframeManagerConfig);
482
485
  /**
483
486
  * Initialize iframe and wait for it to be ready
@@ -488,9 +491,25 @@ declare class IframeManager {
488
491
  */
489
492
  setOnWalletReady(callback: (status: WalletReadyStatus) => void): void;
490
493
  /**
491
- * Authenticate SDK with iframe to establish session
494
+ * Authenticate SDK with iframe to establish secure channel
492
495
  */
493
496
  private authenticateSDK;
497
+ /**
498
+ * Start periodic heartbeat to check SDK channel validity
499
+ */
500
+ private startHeartbeat;
501
+ /**
502
+ * Stop heartbeat
503
+ */
504
+ private stopHeartbeat;
505
+ /**
506
+ * Reconnect SDK channel after it becomes invalid
507
+ */
508
+ reconnect(): Promise<void>;
509
+ /**
510
+ * Setup visibility change handler to check channel when tab becomes visible
511
+ */
512
+ private setupVisibilityHandler;
494
513
  /**
495
514
  * Handle incoming postMessage events
496
515
  */
@@ -504,7 +523,7 @@ declare class IframeManager {
504
523
  */
505
524
  sendMessage(type: string, data: Record<string, any>): Promise<any>;
506
525
  /**
507
- * Compute HMAC for message authentication
526
+ * Compute HMAC for message authentication using SDK channel token
508
527
  */
509
528
  private computeHMAC;
510
529
  /**