@getsupertab/supertab-js 3.56.0 → 3.57.0

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.
@@ -1,4 +1,4 @@
1
- import { r as ja, T as qa, P as Va, a as Ga, V as Ya } from "./index-BME3dIaH.js";
1
+ import { r as ja, T as qa, P as Va, a as Ga, V as Ya } from "./index-BJV-Nlij.js";
2
2
  const T = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, N = globalThis, Le = "10.36.0";
3
3
  function Tt() {
4
4
  return gn(N), N;
@@ -8,6 +8,8 @@ declare class ApiClient {
8
8
  email: string | null;
9
9
  firstName: string | null;
10
10
  lastName: string | null;
11
+ guestEmail: string | null;
12
+ isGuest: boolean;
11
13
  } | null;
12
14
  tab: {
13
15
  currency: {
@@ -266,10 +268,13 @@ declare class AuthClient {
266
268
  *
267
269
  * @returns Authentication data.
268
270
  */
269
- start({ silently, screenHint, flow, }?: {
271
+ start({ silently, screenHint, flow, offeringId, // offeringId for experiment
272
+ currency, }?: {
270
273
  silently?: boolean;
271
274
  screenHint?: ScreenHint;
272
275
  flow?: "popup" | "redirect";
276
+ offeringId?: string;
277
+ currency?: string;
273
278
  }): Promise<AuthData | null>;
274
279
  /**
275
280
  * Clears auth data from browser storage.
@@ -312,9 +317,11 @@ declare class AuthProvider {
312
317
  get authData(): AuthData | null;
313
318
  set authData(authData: AuthData);
314
319
  get authStatus(): AuthStatus;
315
- startInteractiveFlow({ screenHint, flow, }?: {
320
+ startInteractiveFlow({ screenHint, flow, offeringId, currency, }?: {
316
321
  screenHint?: ScreenHint;
317
322
  flow?: "popup" | "redirect";
323
+ offeringId?: string;
324
+ currency?: string;
318
325
  }): Promise<AuthData | null>;
319
326
  private startRedirectFlow;
320
327
  private startMockRedirectFlow;
@@ -1,4 +1,4 @@
1
- import { S as e, l as o } from "./index-BME3dIaH.js";
1
+ import { S as e, l as o } from "./index-BJV-Nlij.js";
2
2
  export {
3
3
  e as Supertab,
4
4
  o as loadSupertab
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "access": "public",
20
20
  "registry": "https://registry.npmjs.org/"
21
21
  },
22
- "version": "3.56.0",
22
+ "version": "3.57.0",
23
23
  "type": "module",
24
24
  "scripts": {
25
25
  "dev": "vite --config .vite/vite.dev.config.ts",