@getsupertab/supertab-js 3.12.7 → 3.12.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.
@@ -220,9 +220,10 @@ declare class AuthClient {
220
220
  *
221
221
  * @returns Authentication data.
222
222
  */
223
- start({ silently, screenHint, flow, }?: {
223
+ start({ silently, screenHint, ssoFlow, flow, }?: {
224
224
  silently?: boolean;
225
225
  screenHint?: ScreenHint;
226
+ ssoFlow?: SsoFlow;
226
227
  flow?: "popup" | "redirect";
227
228
  }): Promise<AuthData | null>;
228
229
  /**
@@ -266,8 +267,9 @@ declare class AuthProvider {
266
267
  get authData(): AuthData | null;
267
268
  set authData(authData: AuthData);
268
269
  get authStatus(): AuthStatus;
269
- startInteractiveFlow({ screenHint, flow, }?: {
270
+ startInteractiveFlow({ screenHint, ssoFlow, flow, }?: {
270
271
  screenHint?: ScreenHint;
272
+ ssoFlow?: SsoFlow;
271
273
  flow?: "popup" | "redirect";
272
274
  }): Promise<AuthData | null>;
273
275
  private startRedirectFlow;
@@ -409,13 +411,18 @@ declare type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Partial<T> &
409
411
 
410
412
  declare type ScreenHint = "login" | "register";
411
413
 
414
+ declare type SsoFlow = "purchase";
415
+
412
416
  export declare class Supertab extends SupertabClient {
413
417
  private supertabConfig;
414
418
  protected apiConfig: Configuration;
415
419
  api: ApiClient;
416
420
  auth: AuthClient;
417
421
  checkout: CheckoutClient;
422
+ private ssoFlow?;
418
423
  constructor(supertabConfig: SupertabConfig);
424
+ setSsoFlow(ssoFlow?: SsoFlow): void;
425
+ getSsoFlow(): SsoFlow | undefined;
419
426
  createPaygate({ merchantName, merchantLogoUrl, language, experienceId, purchaseMetadata, }?: {
420
427
  merchantName?: string;
421
428
  merchantLogoUrl?: string;
@@ -1,4 +1,4 @@
1
- import { S as e } from "./supertab-alMYEYvy.js";
1
+ import { S as e } from "./supertab-Ka6CkyUb.js";
2
2
  export {
3
3
  e as Supertab
4
4
  };
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "engines": {
23
23
  "node": ">=22.13.1"
24
24
  },
25
- "version": "3.12.7",
25
+ "version": "3.12.9",
26
26
  "type": "module",
27
27
  "scripts": {
28
28
  "dev": "vite --config .vite/vite.dev.config.ts",