@gup-fe/js-sdk 2.4.3 → 2.5.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.
package/dist/index.d.ts CHANGED
@@ -43,6 +43,7 @@ declare interface ConfigContextType {
43
43
  styleVars?: StyleVars;
44
44
  currentLoginType?: LoginTypes;
45
45
  defaultLoginType?: LoginTypes;
46
+ defaultAgreeProtocol?: boolean;
46
47
  setCurrentLoginType: (newLoginType: LoginTypes) => void;
47
48
  onUidLoginSuccess?: (data: CallbackLoginData) => void;
48
49
  onPhoneLoginSuccess?: ((data: CallbackLoginData) => void) | ((data: CallbackLoginData) => Promise<void>);
@@ -96,10 +97,11 @@ export declare const isLoggedIn: (gameId?: string) => boolean;
96
97
 
97
98
  export declare function Login({ open, onOpenChange, sceneId, onPhoneLoginSuccess, onAccountLoginSuccess, onUidLoginSuccess, onLoginSuccess, onLoginError, closeable, mountToaster, toastConfigs, ...props }: Props): JSX.Element;
98
99
 
99
- export declare function login({ loginTypes, defaultLoginType, gameId, onLoginSuccess, onLoginError, }: {
100
+ export declare function login({ loginTypes, defaultLoginType, gameId, styleVars, onLoginSuccess, onLoginError, }: {
100
101
  loginTypes?: LoginTypes[];
101
102
  defaultLoginType?: LoginTypes;
102
103
  gameId?: string;
104
+ styleVars?: StyleVars;
103
105
  onLoginSuccess?: (data: CallbackLoginData) => void;
104
106
  onLoginError?: (error: any) => void;
105
107
  }): {
@@ -247,6 +249,7 @@ declare interface StyleVars {
247
249
  '--input-border-color'?: string;
248
250
  '--input-label-color'?: string;
249
251
  '--input-bg-color'?: string;
252
+ '--backdrop-bg-color'?: string;
250
253
  }
251
254
 
252
255
  declare interface ToastConfigs {