@xsolla/login-sdk
Advanced tools
Comparing version 0.80.3 to 0.80.4
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.80.4](https://gitlab.loc/xsolla-login/login-widget-ng/compare/v0.80.3...v0.80.4) (2023-05-18) | ||
**Note:** Version bump only for package @xsolla/login-sdk | ||
## [0.80.3](https://gitlab.loc/xsolla-login/login-widget-ng/compare/v0.80.2...v0.80.3) (2023-05-16) | ||
@@ -8,0 +16,0 @@ |
@@ -20,3 +20,3 @@ import { AgreementProps, ApiInterface, AskProps, AskResponse, Config, ConfirmProps, ConfirmResponse, EmailGetCode, LoginProps, LogoutSessions, Oauth2ConsentValidate, OtpProps, PhoneGetCode, PushCodeParams, Response, SetPasswordProps, SettingsResponse, SignUpProps, UrlResponse, Username, SocialLinkResponse } from './types'; | ||
getAskFields(token: string): Promise<AskFields>; | ||
getSocialLink(socialProvider: Socials): Promise<SocialLinkResponse>; | ||
getSocialLink(socialProvider: Socials, customParams?: Partial<Config>): Promise<SocialLinkResponse>; | ||
otpLogin({ code, remember_me }: OtpProps): Promise<UrlResponse>; | ||
@@ -23,0 +23,0 @@ otpResendCode(): Promise<Response>; |
@@ -129,3 +129,3 @@ import { CancelTokenSource } from 'axios'; | ||
getAskFields: (token: string) => Promise<AskFields>; | ||
getSocialLink: (socialProvider: Socials) => Promise<SocialLinkResponse>; | ||
getSocialLink: (socialProvider: Socials, customParams?: Partial<Config>) => Promise<SocialLinkResponse>; | ||
otpLogin: ({ code, remember_me }: OtpProps) => Promise<UrlResponse>; | ||
@@ -132,0 +132,0 @@ otpResendCode: () => Promise<Response>; |
@@ -102,3 +102,6 @@ import { UserInfo } from './api/types'; | ||
BabkaLogin = "@xsolla-login/sdk:babka-login", | ||
BabkaLoginPopup = "@xsolla-login/sdk:babka-login-popup" | ||
BabkaLoginPopup = "@xsolla-login/sdk:babka-login-popup", | ||
OpenBabkaPopupWidget = "@xsolla-login/sdk:open-babka-popup-widget", | ||
BabkaPopupWidgetLoad = "@xsolla-login/sdk/babka-widget:open", | ||
BabkaPopupWidgetClose = "@xsolla-login/sdk/babka-widget:close" | ||
} | ||
@@ -184,3 +187,10 @@ export declare enum WidgetPages { | ||
} | ||
export declare type Message = Close | ThemeUpdate | Open | IframeOpen | PageOpen | GetRedicrectUrl | WidgetStep | OpenGoogleOneTap | SuccessGoogleOneTap | LoginSuccess | LoginError | SignupSuccess | SignupError | SocialLogin | BabkaLoginPopup | BabkaLogin; | ||
interface OpenBabkaPopupWidget { | ||
type: typeof PostMessageEvents.OpenBabkaPopupWidget; | ||
src?: string; | ||
} | ||
interface BabkaPopupWidgetLoad { | ||
type: typeof PostMessageEvents.BabkaPopupWidgetLoad; | ||
} | ||
export declare type Message = Close | ThemeUpdate | Open | IframeOpen | PageOpen | GetRedicrectUrl | WidgetStep | OpenGoogleOneTap | SuccessGoogleOneTap | LoginSuccess | LoginError | SignupSuccess | SignupError | SocialLogin | BabkaLoginPopup | BabkaLogin | OpenBabkaPopupWidget | BabkaPopupWidgetLoad; | ||
export interface WidgetConfig { | ||
@@ -225,4 +235,5 @@ projectId: string; | ||
babkaLoginPopup?: boolean; | ||
babkaLoginFlow?: 'redirect' | 'popup' | 'dropdown'; | ||
} | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -14,4 +14,7 @@ /// <reference types="node" /> | ||
private handler; | ||
private babkaLoginIframe?; | ||
private postMessageHandler; | ||
constructor(config: WidgetConfig); | ||
mount(elementId: string): void; | ||
unmount(): void; | ||
setLocale(preferredLocale?: string): void; | ||
@@ -23,7 +26,7 @@ setTheme(theme: Theme): void; | ||
private initDispatcher; | ||
private unmount; | ||
private onCloseEvent; | ||
private onOpenGoogleOneTapEvent; | ||
private updateWidget; | ||
private onPostMessage; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@xsolla/login-sdk", | ||
"version": "0.80.3", | ||
"version": "0.80.4", | ||
"description": "Xsolla Login Javascript SDK", | ||
@@ -5,0 +5,0 @@ "author": "Xsolla Login Team <xl@xsolla.com>", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1200367
86
10392