@authing/guard-shim-react 4.4.0-alpha.2 → 4.4.0-alpha.20

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.
Files changed (106) hide show
  1. package/dist/guard.min.js +9943 -9960
  2. package/dist/typings/src/AuthClientProvider/AuthClientProvider.d.ts +1 -0
  3. package/dist/typings/src/AuthClientProvider/context.d.ts +1 -0
  4. package/dist/typings/src/Back/index.d.ts +1 -0
  5. package/dist/typings/src/BindTotp/core/bindSuccess.d.ts +1 -0
  6. package/dist/typings/src/BindTotp/core/securityCode.d.ts +1 -0
  7. package/dist/typings/src/BindTotp/index.d.ts +1 -0
  8. package/dist/typings/src/ChangePassword/core/PasswordNotSafeReset.d.ts +1 -0
  9. package/dist/typings/src/ChangePassword/core/completePassword.d.ts +1 -0
  10. package/dist/typings/src/ChangePassword/core/firstLoginReset.d.ts +1 -0
  11. package/dist/typings/src/ChangePassword/index.d.ts +1 -0
  12. package/dist/typings/src/CompleteInfo/businessRequest.d.ts +1 -1
  13. package/dist/typings/src/CompleteInfo/core/completeInfo.d.ts +1 -0
  14. package/dist/typings/src/CompleteInfo/index.d.ts +1 -0
  15. package/dist/typings/src/CompleteInfo/interface.d.ts +1 -1
  16. package/dist/typings/src/CopyAbleText/index.d.ts +1 -0
  17. package/dist/typings/src/DownloadAuthenticator/index.d.ts +1 -0
  18. package/dist/typings/src/Error/index.d.ts +1 -0
  19. package/dist/typings/src/ForgetPassword/InputPassword/index.d.ts +2 -1
  20. package/dist/typings/src/ForgetPassword/core/inputIdentify.d.ts +1 -0
  21. package/dist/typings/src/ForgetPassword/core/resetPassword.d.ts +1 -0
  22. package/dist/typings/src/ForgetPassword/index.d.ts +1 -0
  23. package/dist/typings/src/Guard/Guard.d.ts +2 -2
  24. package/dist/typings/src/Guard/GuardModule/stateMachine.d.ts +1 -1
  25. package/dist/typings/src/Guard/config.d.ts +1 -0
  26. package/dist/typings/src/Guard/core/hooks/useGuardView.d.ts +1 -0
  27. package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +4 -4
  28. package/dist/typings/src/Guard/core/index.d.ts +1 -0
  29. package/dist/typings/src/Guard/core/renderContext.d.ts +1 -0
  30. package/dist/typings/src/Guard/core/renderModule.d.ts +1 -0
  31. package/dist/typings/src/GuardButton/GuardButton.d.ts +1 -0
  32. package/dist/typings/src/GuardFace/index.d.ts +1 -0
  33. package/dist/typings/src/GuardSelect/index.d.ts +1 -0
  34. package/dist/typings/src/IconFont/index.d.ts +1 -0
  35. package/dist/typings/src/IdentityBinding/IdentityBinding.d.ts +1 -0
  36. package/dist/typings/src/IdentityBindingAsk/IdentityBindingAsk.d.ts +1 -0
  37. package/dist/typings/src/ImagePro/index.d.ts +1 -0
  38. package/dist/typings/src/InputNumber/index.d.ts +2 -1
  39. package/dist/typings/src/LazyloadImage/index.d.ts +1 -0
  40. package/dist/typings/src/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +1 -0
  41. package/dist/typings/src/Login/core/withAuthingOtpPush/HowBindClient.d.ts +1 -0
  42. package/dist/typings/src/Login/core/withAuthingOtpPush/HowGetAppLoginUrl.d.ts +1 -0
  43. package/dist/typings/src/Login/core/withAuthingOtpPush/HowUsePushLogin.d.ts +1 -0
  44. package/dist/typings/src/Login/core/withAuthingOtpPush/PendingLogin.d.ts +1 -0
  45. package/dist/typings/src/Login/core/withAuthingOtpPush/PushLoginGuideModal.d.ts +1 -0
  46. package/dist/typings/src/Login/core/withAuthingOtpPush/PushLoginGuideSelector.d.ts +1 -0
  47. package/dist/typings/src/Login/core/withAuthingOtpPush/index.d.ts +1 -0
  48. package/dist/typings/src/Login/core/withAuthingOtpPush/types.d.ts +3 -3
  49. package/dist/typings/src/Login/core/withPassword/FormItemAccount.d.ts +1 -0
  50. package/dist/typings/src/Login/core/withPassword/GraphicVerifyCode.d.ts +1 -0
  51. package/dist/typings/src/Login/core/withPassword/InputAccount.d.ts +1 -0
  52. package/dist/typings/src/Login/core/withVerifyCode/FormItemIdentify.d.ts +1 -0
  53. package/dist/typings/src/Login/core/withVerifyCode/InputInternationPhone.d.ts +1 -0
  54. package/dist/typings/src/Login/core/withVerifyCode/VirtualDropdown.d.ts +1 -0
  55. package/dist/typings/src/Login/core/withVerifyCode/inputIdentify.d.ts +1 -0
  56. package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +2 -1
  57. package/dist/typings/src/Login/index.d.ts +1 -0
  58. package/dist/typings/src/Login/multipleAccounts/index.d.ts +1 -0
  59. package/dist/typings/src/Login/multipleAccounts/panel.d.ts +1 -0
  60. package/dist/typings/src/Login/resetAccountName/index.d.ts +1 -0
  61. package/dist/typings/src/Login/socialLogin/index.d.ts +1 -0
  62. package/dist/typings/src/MFA/VerifyCodeInput/VerifyCodeFormItem.d.ts +1 -0
  63. package/dist/typings/src/MFA/VerifyCodeInput/index.d.ts +1 -0
  64. package/dist/typings/src/MFA/context.d.ts +1 -0
  65. package/dist/typings/src/MFA/core/email.d.ts +1 -0
  66. package/dist/typings/src/MFA/core/sms.d.ts +1 -0
  67. package/dist/typings/src/MFA/core/totp.d.ts +1 -0
  68. package/dist/typings/src/MFA/index.d.ts +1 -0
  69. package/dist/typings/src/MFA/mfaMethods/index.d.ts +1 -0
  70. package/dist/typings/src/NewSubmitSuccess/index.d.ts +1 -0
  71. package/dist/typings/src/Qrcode/UiQrCode.d.ts +2 -1
  72. package/dist/typings/src/Qrcode/WorkQrCode.d.ts +2 -1
  73. package/dist/typings/src/Qrcode/hooks/usePostQrCode.d.ts +1 -0
  74. package/dist/typings/src/Qrcode/hooks/usePreQrCode.d.ts +2 -2
  75. package/dist/typings/src/Qrcode/index.d.ts +1 -1
  76. package/dist/typings/src/RecoveryCode/core/saveCode.d.ts +1 -0
  77. package/dist/typings/src/RecoveryCode/core/useCode.d.ts +1 -0
  78. package/dist/typings/src/RecoveryCode/index.d.ts +1 -0
  79. package/dist/typings/src/Register/components/Agreements/index.d.ts +1 -0
  80. package/dist/typings/src/Register/core/WithCode.d.ts +1 -0
  81. package/dist/typings/src/Register/core/WithEmail.d.ts +1 -0
  82. package/dist/typings/src/Register/core/WithEmailCode.d.ts +1 -0
  83. package/dist/typings/src/Register/core/WithPhone.d.ts +1 -0
  84. package/dist/typings/src/Register/index.d.ts +1 -0
  85. package/dist/typings/src/SelfUnlock/index.d.ts +1 -0
  86. package/dist/typings/src/SendCode/SendCodeBtn.d.ts +1 -0
  87. package/dist/typings/src/SendCode/SendCodeByEmail.d.ts +1 -0
  88. package/dist/typings/src/SendCode/SendCodeByPhone.d.ts +1 -0
  89. package/dist/typings/src/SendCode/index.d.ts +1 -0
  90. package/dist/typings/src/SingleComponent/SingleComponent.d.ts +1 -0
  91. package/dist/typings/src/SingleComponent/index.d.ts +1 -0
  92. package/dist/typings/src/SubmitButton/index.d.ts +2 -1
  93. package/dist/typings/src/SubmitSuccess/index.d.ts +1 -0
  94. package/dist/typings/src/TenantPortalSelect/interface.d.ts +1 -0
  95. package/dist/typings/src/Type/application.d.ts +6 -6
  96. package/dist/typings/src/Type/index.d.ts +1 -0
  97. package/dist/typings/src/UploadImage/index.d.ts +1 -0
  98. package/dist/typings/src/ValidatorRules/PasswordFormItem.d.ts +1 -0
  99. package/dist/typings/src/ValidatorRules/ValidatorFormItem.d.ts +1 -0
  100. package/dist/typings/src/ValidatorRules/index.d.ts +1 -1
  101. package/dist/typings/src/VerifyCodeInput/index.d.ts +1 -0
  102. package/dist/typings/src/_utils/config/index.d.ts +1 -0
  103. package/dist/typings/src/_utils/context.d.ts +2 -1
  104. package/dist/typings/src/_utils/index.d.ts +1 -1
  105. package/package.json +1 -1
  106. package/dist/typings/shim-react18/index.d.ts +0 -8
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React, ReactNode } from 'shim-react';
2
3
  import { AuthClientContextProps } from './context';
3
4
  export declare const AuthClientProvider: React.FC<AuthClientContextProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AuthenticationClient } from 'authing-js-sdk';
2
3
  import { React } from 'shim-react';
3
4
  export interface AuthClientContextProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export interface BackProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export interface BindSuccessProps {
3
4
  onBind: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export interface SecurityCodeProps {
3
4
  mfaToken: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export declare const GuardBindTotpView: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  interface PasswordNotSafeResetProps {
3
4
  onReset: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const CompletePassword: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  interface FirstLoginResetProps {
3
4
  onReset: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React, ReactNode } from 'shim-react';
2
3
  export declare const GuardChangePassword: React.FC<{
3
4
  title: string;
@@ -6,4 +6,4 @@ export declare enum CompleteInfoAuthFlowAction {
6
6
  }
7
7
  export declare const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
8
8
  export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'] | string, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
9
- export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<import("../_utils/http").AuthingGuardResponse<any> | User | undefined>;
9
+ export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("../_utils/http").AuthingGuardResponse<any> | undefined>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { CompleteInfoMetaData, CompleteInfoRequest } from '../interface';
3
4
  export interface CompleteInfoProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { CompleteInfoMetaData, CompleteInfoRequest } from './interface';
3
4
  import './styles.less';
@@ -21,7 +21,7 @@ export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
21
21
  initData: any;
22
22
  onLogin?: any;
23
23
  }
24
- export type ExtendsFieldType = 'user' | 'internal';
24
+ export declare type ExtendsFieldType = 'user' | 'internal';
25
25
  export interface ExtendsField {
26
26
  type: ExtendsFieldType;
27
27
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  export interface CopyTextProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export declare const GuardDownloadATView: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export interface ErrorProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { PasswordProps, InputProps } from 'shim-antd/lib/input';
3
- export declare const InputPasswordForget: React.ForwardRefExoticComponent<Pick<PasswordProps, keyof PasswordProps> & React.RefAttributes<React.RefObject<InputProps>>>;
4
+ export declare const InputPasswordForget: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<React.RefObject<InputProps>>>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  import { VerifyLoginMethods } from '../../Type/application';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare enum InputMethodMap {
3
4
  email = "email-code",
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const GuardForgetPassword: React.FC;
@@ -1,4 +1,4 @@
1
- import { React } from 'shim-react';
1
+ /// <reference types="react" />
2
2
  import { GuardEvents } from './event';
3
3
  import { GuardAppendConfig, IG2FCProps } from '../Type';
4
4
  import { GuardLocalConfig } from './config';
@@ -7,4 +7,4 @@ export interface GuardProps extends GuardEvents, IG2FCProps {
7
7
  config?: Partial<GuardLocalConfig>;
8
8
  appendConfig?: GuardAppendConfig;
9
9
  }
10
- export declare const Guard: React.MemoExoticComponent<(props: GuardProps) => JSX.Element>;
10
+ export declare function Guard(props: GuardProps): JSX.Element;
@@ -14,7 +14,7 @@ export interface StateMachineLog {
14
14
  date: number;
15
15
  dataSource: ModuleState;
16
16
  }
17
- export type ChangeModuleEvent = (nextModule: GuardModuleType, initData?: any) => void;
17
+ export declare type ChangeModuleEvent = (nextModule: GuardModuleType, initData?: any) => void;
18
18
  export declare class GuardStateMachine {
19
19
  private order;
20
20
  private config;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReactNode } from 'shim-react';
2
3
  import { GuardModuleType } from './module';
3
4
  import { ForgetPasswordConfig } from '../ForgetPassword/interface';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  interface Options {
3
4
  changeTab?: React.Dispatch<any>;
@@ -13,7 +13,7 @@ export declare const QR_CODE_WAY: LoginWay[];
13
13
  * 登录时所有支持的登录列表(前端定义列表)
14
14
  * 这里稍微有点乱 因为Login中的登录方式和这里的不匹配,暂时放在了一起
15
15
  */
16
- export type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone' | 'authing-otp-push';
16
+ export declare type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone' | 'authing-otp-push';
17
17
  /**
18
18
  * when: 多账号页面跳转进入登录页面
19
19
  * 携带的回填数据信息
@@ -27,7 +27,7 @@ export interface BackFillMultipleState extends Omit<User, 'id' | 'name' | 'nickn
27
27
  /**
28
28
  * Store instance
29
29
  */
30
- export type StoreInstance = ReturnType<MultipleAccount['getStore']>;
30
+ export declare type StoreInstance = ReturnType<MultipleAccount['getStore']>;
31
31
  /**
32
32
  * 当前 userId 对应的类型
33
33
  */
@@ -249,7 +249,7 @@ declare class MultipleAccount {
249
249
  setUserInfo: (user: Omit<User & {
250
250
  id: string;
251
251
  loginAccount?: string | undefined;
252
- }, "tab" | "way" | "phoneCountryCode">) => void;
252
+ }, "phoneCountryCode" | "way" | "tab">) => void;
253
253
  setLoginWayByHttpData: (account: string, data: {
254
254
  username?: string | undefined;
255
255
  phone?: string | undefined;
@@ -292,7 +292,7 @@ declare const useMultipleAccounts: ({ appId, finallyConfig, }: {
292
292
  setUserInfo: (user: Omit<User & {
293
293
  id: string;
294
294
  loginAccount?: string | undefined;
295
- }, "tab" | "way" | "phoneCountryCode">) => void;
295
+ }, "phoneCountryCode" | "way" | "tab">) => void;
296
296
  setLoginWayByHttpData: (account: string, data: {
297
297
  username?: string | undefined;
298
298
  phone?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GuardProps } from '../Guard';
2
3
  import { ModuleState } from '../GuardModule/stateMachine';
3
4
  export interface GuardCoreProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GuardProps } from '../Guard';
2
3
  import { React, ReactNode } from 'shim-react';
3
4
  import { ModuleState } from '../GuardModule/stateMachine';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { GuardProps } from '../Guard';
3
4
  import '../styles.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  import './styles.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AvatarProps } from 'shim-antd/lib/avatar';
2
3
  import { TagProps } from 'shim-antd/lib/tag';
3
4
  import { React } from 'shim-react';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './styles.less';
2
3
  import { AvatarProps } from 'shim-antd/lib/avatar';
3
4
  import { ListItemProps, ListProps } from 'shim-antd/lib/list';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './iconfont';
3
4
  import './style.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export declare const GuardIdentityBindingView: React.FC<{
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export declare const GuardIdentityBindingAskView: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export interface ImageProProps extends React.ImgHTMLAttributes<HTMLImageElement> {
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  export interface InputNumberProps extends InputProps {
4
5
  }
5
- export declare const InputNumber: React.ForwardRefExoticComponent<Pick<InputNumberProps, keyof InputNumberProps> & React.RefAttributes<any>>;
6
+ export declare const InputNumber: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<any>>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CSSProperties, ReactNode } from 'shim-react';
2
3
  interface LazyloadImageProps {
3
4
  src: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { OnPushSuccessProps, OnLoginProps } from './types';
3
4
  import { AuthingGuardResponse } from '../../../_utils/http';
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function HowBindClient(): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function HowGetAppLoginUrl(): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function HowUsePushLogin(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './styles.less';
2
3
  interface PendingLoginProps {
3
4
  onCancelLogin: () => void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { PushLoginGudeModalProps } from './types';
2
3
  export declare function PushLoginGudeModal(props: PushLoginGudeModalProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectorOptions, Selector } from './types';
2
3
  interface PushLoginGuideSelectorProps {
3
4
  defaultValue: Selector;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { LoginWithAuthingOtpPushProps } from './types';
2
3
  export declare function LoginWithAuthingOtpPush(props: LoginWithAuthingOtpPushProps): JSX.Element;
@@ -9,7 +9,7 @@ export interface CheckPushCodeStatusProps {
9
9
  export interface OnLoginProps {
10
10
  account: string;
11
11
  }
12
- export type LoginStatus = 'before' | 'pending';
12
+ export declare type LoginStatus = 'before' | 'pending';
13
13
  export interface LoginWithAuthingOtpPushProps {
14
14
  onLoginSuccess?: any;
15
15
  multipleInstance?: StoreInstance;
@@ -20,9 +20,9 @@ export interface PushLoginGudeModalProps {
20
20
  visible: boolean;
21
21
  onClose: () => void;
22
22
  }
23
- export type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
23
+ export declare type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
24
24
  export interface SelectorOption {
25
25
  value: Selector;
26
26
  label: string;
27
27
  }
28
- export type SelectorOptions = SelectorOption[];
28
+ export declare type SelectorOptions = SelectorOption[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormItemProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  export interface FormItemAccountProps extends FormItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  export interface GraphicVerifyCodeProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { InputProps } from 'shim-antd';
3
4
  export interface InputAccountProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormItemProps } from 'shim-antd/lib/form';
2
3
  import { React } from 'shim-react';
3
4
  import { VerifyLoginMethods } from '../../../Type/application';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  export interface InputInternationPhoneProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export interface VirtualDropdownProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  import { VerifyLoginMethods } from '../../../Type/application';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormInstance } from 'shim-antd/lib/form';
2
3
  import { React } from 'shim-react';
3
4
  import { BackFillMultipleState, LoginWay } from '../../Guard/core/hooks/useMultipleAccounts';
@@ -35,7 +36,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
35
36
  setUserInfo: (user: Omit<import("../../Guard/core/hooks/useMultipleAccounts").User & {
36
37
  id: string;
37
38
  loginAccount?: string | undefined;
38
- }, "tab" | "way" | "phoneCountryCode">) => void;
39
+ }, "phoneCountryCode" | "way" | "tab">) => void;
39
40
  setLoginWayByHttpData: (account: string, data: {
40
41
  username?: string | undefined;
41
42
  phone?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export declare const GuardLoginView: React.FC<{
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { LoginWay, StoreInstance } from '../../Guard/core/hooks/useMultipleAccounts';
3
4
  import { GuardModuleType } from '../../Guard';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  interface SelectPanelProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  export declare const ResetAccountName: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  import { GuardLocalConfig } from '../../Guard';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormItemProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  import './style.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  interface MFABackStateContextType {
3
4
  setMfaBackState: React.Dispatch<React.SetStateAction<string>>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { MFAConfig } from '../interface';
3
4
  interface BindMFAEmailProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { GuardMFAInitData, MFAConfig } from '../interface';
3
4
  export interface BindMFASmsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { GuardMFAInitData, MFAConfig } from '../interface';
3
4
  export interface BindMFATotpProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export declare const GuardMFAView: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { MFAType } from '../interface';
3
4
  import './style.less';
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const GuardNewSubmitSuccessView: React.FC;
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './index.less';
3
4
  import { CodeStatusDescriptions } from './WorkQrCode';
4
- export type CodeStatus = 'loading' | 'ready' | 'already' | 'success' | 'error' | 'expired' | 'cancel' | 'MFA';
5
+ export declare type CodeStatus = 'loading' | 'ready' | 'already' | 'success' | 'error' | 'expired' | 'cancel' | 'MFA';
5
6
  export declare const prefix = "refactor";
6
7
  export interface UiQrProps {
7
8
  /**
@@ -1,10 +1,11 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { QrCodeResponse } from './hooks/usePostQrCode';
3
4
  import { CodeStatus, UiQrProps } from './UiQrCode';
4
5
  /**
5
6
  * 二维码不同状态下的底部描述文字
6
7
  */
7
- export type CodeStatusDescriptions = Partial<Record<Exclude<CodeStatus, 'loading'>, React.ReactNode | ((referQrCode?: () => void) => React.ReactNode)>>;
8
+ export declare type CodeStatusDescriptions = Partial<Record<Exclude<CodeStatus, 'loading'>, React.ReactNode | ((referQrCode?: () => void) => React.ReactNode)>>;
8
9
  export interface WorkQrCodeRef {
9
10
  referQrCode: () => Promise<{
10
11
  random: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { AuthingGuardResponse, AuthingResponse } from '../../_utils/http';
3
4
  import { CodeStatus } from '../UiQrCode';
@@ -1,7 +1,7 @@
1
1
  import { React } from 'shim-react';
2
2
  import { CodeStatus } from '../UiQrCode';
3
- export type ReducerType = 'change' | 'changeStatus' | 'changeDesc';
4
- export type RootState = {
3
+ export declare type ReducerType = 'change' | 'changeStatus' | 'changeDesc';
4
+ export declare type RootState = {
5
5
  /**
6
6
  * 状态
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import { UiQrCode } from './UiQrCode';
2
2
  import { WorkQrCode } from './WorkQrCode';
3
- type IQrCode = typeof WorkQrCode & {
3
+ declare type IQrCode = typeof WorkQrCode & {
4
4
  UI: typeof UiQrCode;
5
5
  };
6
6
  declare const QrCode: IQrCode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const SaveCode: React.FC<{
3
4
  secret: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { User } from 'authing-js-sdk';
3
4
  export interface UseCodeProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  export declare const RecoveryCode: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  import { Agreement } from '../../../Type/application';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { Agreement, ApplicationConfig } from '../../Type/application';
3
4
  export interface RegisterWithCodeProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { Agreement, ApplicationConfig } from '../../Type/application';
3
4
  export interface RegisterWithEmailProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { Agreement, ApplicationConfig } from '../../Type/application';
3
4
  export interface RegisterWithEmailCodeProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { Agreement, ApplicationConfig } from '../../Type/application';
3
4
  export interface RegisterWithPhoneProps {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const GuardRegisterView: React.FC;