@gup-fe/js-sdk 2.4.4 → 2.6.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
@@ -97,10 +97,11 @@ export declare const isLoggedIn: (gameId?: string) => boolean;
97
97
 
98
98
  export declare function Login({ open, onOpenChange, sceneId, onPhoneLoginSuccess, onAccountLoginSuccess, onUidLoginSuccess, onLoginSuccess, onLoginError, closeable, mountToaster, toastConfigs, ...props }: Props): JSX.Element;
99
99
 
100
- export declare function login({ loginTypes, defaultLoginType, gameId, onLoginSuccess, onLoginError, }: {
100
+ export declare function login({ loginTypes, defaultLoginType, gameId, styleVars, onLoginSuccess, onLoginError, }: {
101
101
  loginTypes?: LoginTypes[];
102
102
  defaultLoginType?: LoginTypes;
103
103
  gameId?: string;
104
+ styleVars?: StyleVars;
104
105
  onLoginSuccess?: (data: CallbackLoginData) => void;
105
106
  onLoginError?: (error: any) => void;
106
107
  }): {
@@ -130,6 +131,12 @@ export declare const logout: (gameId?: string) => void;
130
131
 
131
132
  export declare function MobileLogin(): JSX.Element;
132
133
 
134
+ export declare function openUserCenter({ gameId }?: {
135
+ gameId?: string;
136
+ }): {
137
+ close: () => void;
138
+ };
139
+
133
140
  export declare interface PassAccount {
134
141
  type: number;
135
142
  uid: string;
@@ -240,6 +247,7 @@ export declare const SDK: {
240
247
  logout: (gameId?: string) => void;
241
248
  getUserInfo: (gameId?: string) => UserInfo;
242
249
  isLoggedIn: (gameId?: string) => boolean;
250
+ openUserCenter: typeof openUserCenter;
243
251
  };
244
252
 
245
253
  declare interface StyleVars {