@authing/react-ui-components 4.0.2-alpha.0 → 4.0.2-pipeline.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.0.2-alpha.0",
3
+ "version": "4.0.2-pipeline.0",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -235,4 +235,4 @@
235
235
  "webpack-manifest-plugin": "2.2.0",
236
236
  "workbox-webpack-plugin": "5.1.4"
237
237
  }
238
- }
238
+ }
@@ -5,5 +5,5 @@ export declare enum CompleteInfoAuthFlowAction {
5
5
  Skip = "skip-completion"
6
6
  }
7
7
  export declare const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
8
- export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>> | Promise<User> | undefined;
8
+ export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>> | undefined;
9
9
  export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("../_utils/http").AuthingGuardResponse<any> | undefined>;
@@ -4,6 +4,14 @@ import { LoginConfig } from '../Login/interface';
4
4
  import { RegisterConfig } from '../Register/interface';
5
5
  export interface GuardComponentConfig extends Partial<GuardLocalConfig> {
6
6
  }
7
+ export declare enum QrCodeScanType {
8
+ appQrcode = "appQrcode",
9
+ wechatMiniQrcode = "wechatMiniQrcode",
10
+ wechatmpQrcode = "wechatmpQrcode"
11
+ }
12
+ export interface QrCodeScanOptions {
13
+ qrcode: string;
14
+ }
7
15
  export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
8
16
  isSSO?: boolean;
9
17
  defaultScenes?: GuardModuleType;
@@ -14,5 +22,6 @@ export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
14
22
  * @description 是否调用 eventsMapping 中的事件
15
23
  */
16
24
  openEventsMapping?: boolean;
25
+ _qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
17
26
  }
18
27
  export declare const getDefaultGuardLocalConfig: () => GuardLocalConfig;
@@ -16,10 +16,6 @@ export interface LoginConfig extends IG2Config {
16
16
  publicKey?: string;
17
17
  agreementEnabled?: boolean;
18
18
  agreements?: Agreement[];
19
- /**
20
- * 关闭二维码状态check轮询(console上使用)
21
- */
22
- _closeLoopCheckQrcode?: boolean;
23
19
  }
24
20
  export interface LoginEvents extends IG2Events {
25
21
  onLogin?: (user: User, authClient: AuthenticationClient) => void;
@@ -9,4 +9,9 @@ export interface RegisterWithCodeProps {
9
9
  registeContext?: any;
10
10
  methods: any[];
11
11
  }
12
+ /**
13
+ * 手机 Code 注册
14
+ * @param param0
15
+ * @returns
16
+ */
12
17
  export declare const RegisterWithCode: React.FC<RegisterWithCodeProps>;
@@ -14,6 +14,7 @@ export declare const useMergePublicConfig: (forceUpdate: number, appId?: string
14
14
  showLoading?: boolean | undefined;
15
15
  loadingComponent?: import("react").ReactNode;
16
16
  openEventsMapping?: boolean | undefined;
17
+ _qrCodeScanOptions?: Record<import("../../Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
17
18
  disableRegister?: boolean | undefined;
18
19
  registerMethods?: RegisterMethods[] | undefined;
19
20
  defaultRegisterMethod?: RegisterMethods | undefined;
@@ -88,7 +89,6 @@ export declare const useMergePublicConfig: (forceUpdate: number, appId?: string
88
89
  } | undefined;
89
90
  withCustomData?: boolean | undefined;
90
91
  } | undefined;
91
- _closeLoopCheckQrcode?: boolean | undefined;
92
92
  } | undefined;
93
93
  export declare const getPageConfig: (appId: string) => GuardPageConfig;
94
94
  export declare const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.2-alpha.0";
1
+ declare const _default: "4.0.2-pipeline.0";
2
2
  export default _default;