@sparkvault/sdk 1.23.3 → 1.23.5

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.
@@ -803,6 +803,7 @@ class IdentityApi {
803
803
  success_url: authContext.simpleMode.successUrl,
804
804
  failure_url: authContext.simpleMode.failureUrl,
805
805
  state: authContext.simpleMode.state,
806
+ session_id: authContext.simpleMode.sessionId,
806
807
  };
807
808
  }
808
809
  return params;
@@ -1324,12 +1325,12 @@ class PasskeyHandler {
1324
1325
  params.set('auth_request_id', authContext.authRequestId);
1325
1326
  }
1326
1327
  if (authContext?.simpleMode) {
1327
- params.set('simple_mode', 'true');
1328
- params.set('success_url', authContext.simpleMode.successUrl);
1329
- params.set('failure_url', authContext.simpleMode.failureUrl);
1330
- if (authContext.simpleMode.state) {
1331
- params.set('state', authContext.simpleMode.state);
1332
- }
1328
+ params.set('simple_mode', JSON.stringify({
1329
+ success_url: authContext.simpleMode.successUrl,
1330
+ failure_url: authContext.simpleMode.failureUrl,
1331
+ state: authContext.simpleMode.state,
1332
+ session_id: authContext.simpleMode.sessionId,
1333
+ }));
1333
1334
  }
1334
1335
  const popupUrl = `${this.baseUrl}/${this.accountId}/passkey/popup?${params}`;
1335
1336
  // Calculate popup position (centered)
@@ -1963,6 +1964,21 @@ function getStyles(options) {
1963
1964
  text-align: left;
1964
1965
  padding: 12px 14px;
1965
1966
  margin-bottom: 8px;
1967
+ /* Inset 2px on either side so the focus outline (drawn outside the
1968
+ border-box) has room to render without clipping against the
1969
+ dialog's container edges. width:auto pairs with this to prevent
1970
+ the row from forcing horizontal overflow. */
1971
+ margin-left: 2px;
1972
+ margin-right: 2px;
1973
+ width: calc(100% - 4px);
1974
+ }
1975
+
1976
+ /* The shared .sv-btn focus rule sets outline-offset:2px which sits
1977
+ outside the row's edges and gets clipped by the parent. Method
1978
+ rows are full-width by design, so render the focus indicator
1979
+ flush against the border instead. */
1980
+ .sv-btn-method:focus-visible {
1981
+ outline-offset: 0;
1966
1982
  }
1967
1983
 
1968
1984
  .sv-btn-method:hover:not(:disabled) {