@authing/react-ui-components 3.1.13 → 3.1.14-rc.3
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/lib/index.d.ts +56 -10
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/package.json +2 -3
- package/LICENSE +0 -21
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
declare module '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider' {
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AuthClientContextProps } from '@authing/react-ui-components/components/AuthClientProvider/context';
|
|
4
|
+
export const AuthClientProvider: React.FC<AuthClientContextProps>;
|
|
5
|
+
export const useGlobalAuthClient: () => import("authing-js-sdk").AuthenticationClient | undefined;
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
declare module '@authing/react-ui-components/components/AuthClientProvider/context' {
|
|
9
|
+
import { AuthenticationClient } from 'authing-js-sdk';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
export interface AuthClientContextProps {
|
|
12
|
+
client: AuthenticationClient;
|
|
13
|
+
}
|
|
14
|
+
export const AuthClientContext: React.Context<AuthClientContextProps | undefined>;
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
declare module '@authing/react-ui-components/components/AuthClientProvider/index' {
|
|
18
|
+
export { AuthClientProvider, useGlobalAuthClient } from '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider';
|
|
19
|
+
|
|
20
|
+
}
|
|
1
21
|
declare module '@authing/react-ui-components/components/AuthingDropdown/index' {
|
|
2
22
|
import React, { FC } from 'react';
|
|
3
23
|
import './style.less';
|
|
@@ -425,6 +445,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
425
445
|
defaultISOType: string;
|
|
426
446
|
};
|
|
427
447
|
css: string;
|
|
448
|
+
customLoading?: string;
|
|
428
449
|
name: string;
|
|
429
450
|
logo: string;
|
|
430
451
|
description?: string;
|
|
@@ -1469,12 +1490,19 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1469
1490
|
declare module '@authing/react-ui-components/components/Guard/authClient' {
|
|
1470
1491
|
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1471
1492
|
import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
1472
|
-
export const initGuardAuthClient: (config: GuardLocalConfig, appId: string,
|
|
1493
|
+
export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
|
|
1494
|
+
export const useInitGuardAuthClient: (props: {
|
|
1495
|
+
config?: GuardLocalConfig | undefined;
|
|
1496
|
+
appId: string;
|
|
1497
|
+
setError?: any;
|
|
1498
|
+
tenantId?: string | undefined;
|
|
1499
|
+
}) => AuthenticationClient | undefined;
|
|
1473
1500
|
export const getGuardAuthClient: () => AuthenticationClient;
|
|
1474
1501
|
export const useGuardAuthClient: () => AuthenticationClient;
|
|
1475
1502
|
|
|
1476
1503
|
}
|
|
1477
1504
|
declare module '@authing/react-ui-components/components/Guard/config' {
|
|
1505
|
+
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1478
1506
|
import { ReactNode } from 'react';
|
|
1479
1507
|
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
|
|
1480
1508
|
import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
|
|
@@ -1500,6 +1528,7 @@ declare module '@authing/react-ui-components/components/Guard/config' {
|
|
|
1500
1528
|
*/
|
|
1501
1529
|
openEventsMapping?: boolean;
|
|
1502
1530
|
_qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
|
|
1531
|
+
authClient?: AuthenticationClient;
|
|
1503
1532
|
}
|
|
1504
1533
|
export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
1505
1534
|
|
|
@@ -2431,9 +2460,9 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
|
2431
2460
|
}
|
|
2432
2461
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
|
|
2433
2462
|
import { FC } from 'react';
|
|
2434
|
-
import { EmailScene } from 'authing-js-sdk';
|
|
2435
2463
|
import './style.less';
|
|
2436
2464
|
import { InputProps } from 'antd/lib/input';
|
|
2465
|
+
import { EmailScene } from '@authing/react-ui-components/components/Type/index';
|
|
2437
2466
|
export interface SendCodeByEmailProps extends InputProps {
|
|
2438
2467
|
data: string;
|
|
2439
2468
|
form?: any;
|
|
@@ -2503,6 +2532,7 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
|
2503
2532
|
text?: string;
|
|
2504
2533
|
className?: string;
|
|
2505
2534
|
onClick?: any;
|
|
2535
|
+
disabled?: boolean;
|
|
2506
2536
|
}
|
|
2507
2537
|
const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
|
|
2508
2538
|
export default _default;
|
|
@@ -2562,8 +2592,8 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2562
2592
|
export interface IG2Config {
|
|
2563
2593
|
title?: string;
|
|
2564
2594
|
logo?: string;
|
|
2565
|
-
lang:
|
|
2566
|
-
langRange:
|
|
2595
|
+
lang: string;
|
|
2596
|
+
langRange: string[];
|
|
2567
2597
|
host: string;
|
|
2568
2598
|
isHost?: boolean;
|
|
2569
2599
|
mode: GuardMode;
|
|
@@ -2597,6 +2627,19 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2597
2627
|
showChangeLanguage: boolean;
|
|
2598
2628
|
};
|
|
2599
2629
|
}
|
|
2630
|
+
export enum EmailScene {
|
|
2631
|
+
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
2632
|
+
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
2633
|
+
REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
|
|
2634
|
+
LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
|
|
2635
|
+
MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
|
|
2636
|
+
INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
|
|
2637
|
+
FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
|
|
2638
|
+
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
2639
|
+
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
2640
|
+
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
2641
|
+
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
|
|
2642
|
+
}
|
|
2600
2643
|
|
|
2601
2644
|
}
|
|
2602
2645
|
declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
|
|
@@ -2625,6 +2668,7 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
|
2625
2668
|
form?: FormInstance;
|
|
2626
2669
|
checkRepeat?: boolean;
|
|
2627
2670
|
areaCode?: string;
|
|
2671
|
+
isCheckI18nSms?: boolean;
|
|
2628
2672
|
}
|
|
2629
2673
|
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
2630
2674
|
form?: FormInstance;
|
|
@@ -2708,6 +2752,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2708
2752
|
loadingComponent?: import("react").ReactNode;
|
|
2709
2753
|
openEventsMapping?: boolean | undefined;
|
|
2710
2754
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2755
|
+
authClient?: import("authing-js-sdk").AuthenticationClient | undefined;
|
|
2711
2756
|
disableRegister?: boolean | undefined;
|
|
2712
2757
|
registerMethods?: RegisterMethods[] | undefined;
|
|
2713
2758
|
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
@@ -2717,8 +2762,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2717
2762
|
registerContext?: any;
|
|
2718
2763
|
title?: string | undefined;
|
|
2719
2764
|
logo?: string | undefined;
|
|
2720
|
-
lang:
|
|
2721
|
-
langRange:
|
|
2765
|
+
lang: string;
|
|
2766
|
+
langRange: string[];
|
|
2722
2767
|
isHost?: boolean | undefined;
|
|
2723
2768
|
mode: import("@authing/react-ui-components/components/index").GuardMode;
|
|
2724
2769
|
clickCloseable: boolean;
|
|
@@ -2738,7 +2783,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2738
2783
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
2739
2784
|
enterpriseConnections?: string[] | undefined;
|
|
2740
2785
|
qrCodeScanOptions?: {
|
|
2741
|
-
currentDocument?: Document | undefined;
|
|
2742
2786
|
extIdpConnId?: string | undefined;
|
|
2743
2787
|
autoExchangeUserInfo?: boolean | undefined;
|
|
2744
2788
|
size?: {
|
|
@@ -3041,6 +3085,8 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3041
3085
|
export const isXiaomiBrowser: () => boolean | null;
|
|
3042
3086
|
export const isDingtalkBrowser: () => boolean | null;
|
|
3043
3087
|
export const isQQBrowser: () => boolean | null;
|
|
3088
|
+
export const isQQBuiltInBrowser: () => boolean | null;
|
|
3089
|
+
export const isWeWorkBuiltInBrowser: () => boolean | null;
|
|
3044
3090
|
export const isSpecialBrowser: () => boolean | null;
|
|
3045
3091
|
export const assembledAppHost: (identifier: string, host: string) => string;
|
|
3046
3092
|
export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
|
|
@@ -3079,7 +3125,7 @@ declare module '@authing/react-ui-components/components/_utils/locales/index' {
|
|
|
3079
3125
|
import i18n from 'i18next';
|
|
3080
3126
|
import { LocalesConfig, Lang } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3081
3127
|
export const changeLang: (lang: Lang) => void;
|
|
3082
|
-
const initI18n: (localesConfig?: LocalesConfig, lang?:
|
|
3128
|
+
const initI18n: (localesConfig?: LocalesConfig, lang?: string | undefined) => void;
|
|
3083
3129
|
export { i18n, initI18n };
|
|
3084
3130
|
|
|
3085
3131
|
}
|
|
@@ -3233,7 +3279,7 @@ declare module '@authing/react-ui-components/components/context/module/context'
|
|
|
3233
3279
|
declare module '@authing/react-ui-components/components/index' {
|
|
3234
3280
|
export * from '@authing/react-ui-components/components/_utils/config/index';
|
|
3235
3281
|
export * from '@authing/react-ui-components/components/_utils/responseManagement/interface';
|
|
3236
|
-
export
|
|
3282
|
+
export * from '@authing/react-ui-components/components/AuthClientProvider/index';
|
|
3237
3283
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3238
3284
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3239
3285
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
@@ -3248,7 +3294,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3248
3294
|
|
|
3249
3295
|
}
|
|
3250
3296
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3251
|
-
const _default: "3.1.
|
|
3297
|
+
const _default: "3.1.14-rc.3";
|
|
3252
3298
|
export default _default;
|
|
3253
3299
|
|
|
3254
3300
|
}
|