@sparkvault/sdk-js 8.8.1 → 8.8.3

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.
@@ -2483,13 +2483,6 @@ function getStyles(options) {
2483
2483
  text-align: left;
2484
2484
  padding: 15px 40px 15px 14px;
2485
2485
  margin-bottom: 9px;
2486
- /* Inset 2px on either side so the focus ring (drawn outside the
2487
- border-box) has room to render without clipping against the
2488
- dialog's container edges. width:auto pairs with this to prevent
2489
- the row from forcing horizontal overflow. */
2490
- margin-left: 2px;
2491
- margin-right: 2px;
2492
- width: calc(100% - 4px);
2493
2486
  transition: background var(--sv-dur-fast) var(--sv-ease-standard), border-color var(--sv-dur-fast) var(--sv-ease-standard);
2494
2487
  }
2495
2488
 
@@ -3446,6 +3439,11 @@ function getStyles(options) {
3446
3439
  min-height: 0;
3447
3440
  padding-left: 0;
3448
3441
  padding-right: 0;
3442
+ /* The host page owns the scroll and the surrounding padding in bare
3443
+ mode, so this body never scrolls internally. Keep overflow visible
3444
+ so a focused control's ring paints into the host padding instead of
3445
+ being clipped flat against this edgeless body's sides. */
3446
+ overflow: visible;
3449
3447
  }
3450
3448
 
3451
3449
  /* ========================================
@@ -7962,8 +7960,12 @@ class DialogLauncher {
7962
7960
  if (this.settled)
7963
7961
  return;
7964
7962
  // Blocked (never opened) or closed (gone) - the popup can't be confirmed,
7965
- // so surface the warning so the user can reopen it.
7963
+ // so surface the warning so the user can reopen it. Either way the opener
7964
+ // observed the end with no result, so there is nothing for the next-load
7965
+ // self-heal to recover (a late success message still wins: this branch
7966
+ // leaves the flow unsettled, and onSuccess re-clears regardless).
7966
7967
  if (error instanceof PopupBlockedError || error instanceof UserCancelledError) {
7968
+ this.callbacks.onPopupClosedUnresolved?.();
7967
7969
  this.showAlert();
7968
7970
  return;
7969
7971
  }
@@ -8018,6 +8020,7 @@ class DialogLauncher {
8018
8020
  }
8019
8021
  /** "Try again": close any current popup and reopen a fresh one. */
8020
8022
  retry() {
8023
+ this.callbacks.onPopupReopened?.();
8021
8024
  this.hideAlert();
8022
8025
  this.closePopup();
8023
8026
  this.openPopup();
@@ -8660,6 +8663,11 @@ class IdentityModule {
8660
8663
  onSuccess: (result) => { this.clearSignInPending(); hostCallbacks.onSuccess(result); },
8661
8664
  onError: (error) => { this.clearSignInPending(); hostCallbacks.onError(error); },
8662
8665
  onCancel: () => { this.clearSignInPending(); hostCallbacks.onCancel(); },
8666
+ // Self-heal exists for a result the opener never observed. An observed
8667
+ // no-result end retires the marker (no spurious bounce on a reload
8668
+ // while the retry alert is up); "Try again" re-arms it.
8669
+ onPopupClosedUnresolved: () => this.clearSignInPending(),
8670
+ onPopupReopened: () => this.markSignInPending(),
8663
8671
  });
8664
8672
  this.launcher.start();
8665
8673
  return settledPromise;