@authing/react-ui-components 3.1.15-rc.1 → 3.1.16-beta.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/lib/index.d.ts +88 -26
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +7 -5
package/lib/index.d.ts
CHANGED
|
@@ -1489,19 +1489,21 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1489
1489
|
declare module '@authing/react-ui-components/components/Guard/authClient' {
|
|
1490
1490
|
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1491
1491
|
import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
1492
|
+
let authClient: AuthenticationClient;
|
|
1492
1493
|
export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
|
|
1493
1494
|
export const useInitGuardAuthClient: (props: {
|
|
1494
1495
|
config?: GuardLocalConfig | undefined;
|
|
1495
|
-
appId
|
|
1496
|
+
appId?: string | undefined;
|
|
1497
|
+
authClient?: AuthenticationClient | undefined;
|
|
1496
1498
|
setError?: any;
|
|
1497
1499
|
tenantId?: string | undefined;
|
|
1498
1500
|
}) => AuthenticationClient | undefined;
|
|
1499
1501
|
export const getGuardAuthClient: () => AuthenticationClient;
|
|
1500
1502
|
export const useGuardAuthClient: () => AuthenticationClient;
|
|
1503
|
+
export {};
|
|
1501
1504
|
|
|
1502
1505
|
}
|
|
1503
1506
|
declare module '@authing/react-ui-components/components/Guard/config' {
|
|
1504
|
-
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1505
1507
|
import { ReactNode } from 'react';
|
|
1506
1508
|
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
|
|
1507
1509
|
import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
|
|
@@ -1527,7 +1529,6 @@ declare module '@authing/react-ui-components/components/Guard/config' {
|
|
|
1527
1529
|
*/
|
|
1528
1530
|
openEventsMapping?: boolean;
|
|
1529
1531
|
_qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
|
|
1530
|
-
authClient?: AuthenticationClient;
|
|
1531
1532
|
}
|
|
1532
1533
|
export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
1533
1534
|
|
|
@@ -1550,7 +1551,6 @@ declare module '@authing/react-ui-components/components/Guard/core/renderContext
|
|
|
1550
1551
|
export const RenderContext: React.FC<{
|
|
1551
1552
|
guardProps: GuardProps;
|
|
1552
1553
|
initState: ModuleState;
|
|
1553
|
-
forceUpdate: number;
|
|
1554
1554
|
}>;
|
|
1555
1555
|
|
|
1556
1556
|
}
|
|
@@ -1568,10 +1568,10 @@ declare module '@authing/react-ui-components/components/Guard/core/renderModule'
|
|
|
1568
1568
|
|
|
1569
1569
|
}
|
|
1570
1570
|
declare module '@authing/react-ui-components/components/Guard/core/useAppendConfig' {
|
|
1571
|
-
import {
|
|
1571
|
+
import { GuardAppendConfig } from '@authing/react-ui-components/components/index';
|
|
1572
1572
|
export const getGuardWindow: () => (Window & typeof globalThis) | undefined;
|
|
1573
1573
|
export const useGuardWindow: () => (Window & typeof globalThis) | undefined;
|
|
1574
|
-
export const useInitGuardAppendConfig: (
|
|
1574
|
+
export const useInitGuardAppendConfig: (appId?: string | undefined, appendConfig?: GuardAppendConfig | undefined) => void;
|
|
1575
1575
|
|
|
1576
1576
|
}
|
|
1577
1577
|
declare module '@authing/react-ui-components/components/Guard/core/usePlugin' {
|
|
@@ -1593,6 +1593,50 @@ declare module '@authing/react-ui-components/components/Guard/event' {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
export const guardEventsFilter: (props: any, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
1595
1595
|
export const guardEventsHijacking: (events: GuardEvents, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
1596
|
+
export const GuardEventsCamelToKebabMapping: {
|
|
1597
|
+
readonly onLoad: "load";
|
|
1598
|
+
readonly onLoadError: "load-error";
|
|
1599
|
+
readonly onLogin: "login";
|
|
1600
|
+
readonly onBeforeLogin: "before-login";
|
|
1601
|
+
readonly onLoginError: "login-error";
|
|
1602
|
+
readonly onRegister: "register";
|
|
1603
|
+
readonly onBeforeRegister: "before-register";
|
|
1604
|
+
readonly onRegisterError: "register-error";
|
|
1605
|
+
readonly onPwdEmailSend: "pwd-email-send";
|
|
1606
|
+
readonly onPwdEmailSendError: "pwd-email-send-error";
|
|
1607
|
+
readonly onPwdPhoneSend: "pwd-phone-send";
|
|
1608
|
+
readonly onPwdPhoneSendError: "pwd-phone-send-error";
|
|
1609
|
+
readonly onPwdReset: "pwd-reset";
|
|
1610
|
+
readonly onPwdResetError: "pwd-reset-error";
|
|
1611
|
+
readonly onClose: "close";
|
|
1612
|
+
readonly onLoginTabChange: "login-tab-change";
|
|
1613
|
+
readonly onRegisterTabChange: "register-tab-change";
|
|
1614
|
+
readonly onRegisterInfoCompleted: "register-info-completed";
|
|
1615
|
+
readonly onRegisterInfoCompletedError: "register-info-completed-error";
|
|
1616
|
+
readonly onLangChange: "lang-change";
|
|
1617
|
+
};
|
|
1618
|
+
export interface GuardEventsKebabToCamelType {
|
|
1619
|
+
load: GuardEvents['onLoad'];
|
|
1620
|
+
'load-error': GuardEvents['onLoadError'];
|
|
1621
|
+
'before-login': GuardEvents['onBeforeLogin'];
|
|
1622
|
+
login: GuardEvents['onLogin'];
|
|
1623
|
+
'login-error': GuardEvents['onLoginError'];
|
|
1624
|
+
'before-register': GuardEvents['onBeforeRegister'];
|
|
1625
|
+
register: GuardEvents['onRegister'];
|
|
1626
|
+
'register-error': GuardEvents['onRegisterError'];
|
|
1627
|
+
'pwd-email-send': GuardEvents['onPwdEmailSend'];
|
|
1628
|
+
'pwd-email-send-error': GuardEvents['onPwdEmailSendError'];
|
|
1629
|
+
'pwd-phone-send': GuardEvents['onPwdPhoneSend'];
|
|
1630
|
+
'pwd-phone-send-error': GuardEvents['onPwdPhoneSendError'];
|
|
1631
|
+
'pwd-reset': GuardEvents['onPwdReset'];
|
|
1632
|
+
'pwd-reset-error': GuardEvents['onPwdResetError'];
|
|
1633
|
+
close: GuardEvents['onClose'];
|
|
1634
|
+
'login-tab-change': GuardEvents['onLoginTabChange'];
|
|
1635
|
+
'register-tab-change': GuardEvents['onRegisterTabChange'];
|
|
1636
|
+
'register-info-completed': GuardEvents['onRegisterInfoCompleted'];
|
|
1637
|
+
'register-info-completed-error': GuardEvents['onRegisterInfoCompletedError'];
|
|
1638
|
+
'lang-change': GuardEvents['onLangChange'];
|
|
1639
|
+
}
|
|
1596
1640
|
|
|
1597
1641
|
}
|
|
1598
1642
|
declare module '@authing/react-ui-components/components/Guard/index' {
|
|
@@ -1695,6 +1739,12 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
|
|
|
1695
1739
|
account: string;
|
|
1696
1740
|
password: string;
|
|
1697
1741
|
}
|
|
1742
|
+
export enum IdentityBindingAction {
|
|
1743
|
+
CreateUser = "create-federation-account",
|
|
1744
|
+
BindByPassword = "bind-identity-by-password",
|
|
1745
|
+
BindByPhoneCode = "bind-identity-by-phone-code",
|
|
1746
|
+
BindByEmailCode = "bind-identity-by-email-code"
|
|
1747
|
+
}
|
|
1698
1748
|
export const PhoneCode: (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1699
1749
|
export const EmailCode: (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1700
1750
|
export const Password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
@@ -2459,9 +2509,9 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
|
2459
2509
|
}
|
|
2460
2510
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
|
|
2461
2511
|
import { FC } from 'react';
|
|
2512
|
+
import { EmailScene } from 'authing-js-sdk';
|
|
2462
2513
|
import './style.less';
|
|
2463
2514
|
import { InputProps } from 'antd/lib/input';
|
|
2464
|
-
import { EmailScene } from '@authing/react-ui-components/components/Type/index';
|
|
2465
2515
|
export interface SendCodeByEmailProps extends InputProps {
|
|
2466
2516
|
data: string;
|
|
2467
2517
|
form?: any;
|
|
@@ -2569,13 +2619,14 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2569
2619
|
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
|
|
2570
2620
|
import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
|
|
2571
2621
|
export interface IG2FCProps extends IG2Events {
|
|
2572
|
-
appId
|
|
2622
|
+
appId?: string;
|
|
2573
2623
|
tenantId?: string;
|
|
2574
2624
|
config?: Partial<IG2Config>;
|
|
2575
2625
|
visible?: boolean;
|
|
2576
2626
|
initData?: any;
|
|
2577
2627
|
appendConfig?: GuardAppendConfig;
|
|
2578
2628
|
facePlugin?: FacePlugin;
|
|
2629
|
+
authClient?: AuthenticationClient;
|
|
2579
2630
|
}
|
|
2580
2631
|
export interface GuardAppendConfig {
|
|
2581
2632
|
internalRequest?: boolean;
|
|
@@ -2625,19 +2676,6 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2625
2676
|
showChangeLanguage: boolean;
|
|
2626
2677
|
};
|
|
2627
2678
|
}
|
|
2628
|
-
export enum EmailScene {
|
|
2629
|
-
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
2630
|
-
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
2631
|
-
REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
|
|
2632
|
-
LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
|
|
2633
|
-
MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
|
|
2634
|
-
INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
|
|
2635
|
-
FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
|
|
2636
|
-
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
2637
|
-
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
2638
|
-
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
2639
|
-
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
|
|
2640
|
-
}
|
|
2641
2679
|
|
|
2642
2680
|
}
|
|
2643
2681
|
declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
|
|
@@ -2740,7 +2778,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2740
2778
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2741
2779
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
2742
2780
|
export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
|
|
2743
|
-
export const useMergePublicConfig: (appId
|
|
2781
|
+
export const useMergePublicConfig: (appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
|
|
2744
2782
|
host: string;
|
|
2745
2783
|
isSSO?: boolean | undefined;
|
|
2746
2784
|
defaultScenes?: import("@authing/react-ui-components/components/index").GuardModuleType | undefined;
|
|
@@ -2749,7 +2787,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2749
2787
|
loadingComponent?: import("react").ReactNode;
|
|
2750
2788
|
openEventsMapping?: boolean | undefined;
|
|
2751
2789
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2752
|
-
authClient?: import("authing-js-sdk").AuthenticationClient | undefined;
|
|
2753
2790
|
disableRegister?: boolean | undefined;
|
|
2754
2791
|
registerMethods?: RegisterMethods[] | undefined;
|
|
2755
2792
|
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
@@ -2780,6 +2817,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2780
2817
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
2781
2818
|
enterpriseConnections?: string[] | undefined;
|
|
2782
2819
|
qrCodeScanOptions?: {
|
|
2820
|
+
currentDocument?: Document | undefined;
|
|
2783
2821
|
extIdpConnId?: string | undefined;
|
|
2784
2822
|
autoExchangeUserInfo?: boolean | undefined;
|
|
2785
2823
|
size?: {
|
|
@@ -2826,7 +2864,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2826
2864
|
export const getPageConfig: (appId: string) => GuardPageConfig;
|
|
2827
2865
|
export const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
|
|
2828
2866
|
export const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
|
|
2829
|
-
export const useGuardPageConfig: (appId
|
|
2867
|
+
export const useGuardPageConfig: (appId?: string | undefined, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
|
|
2830
2868
|
|
|
2831
2869
|
}
|
|
2832
2870
|
declare module '@authing/react-ui-components/components/_utils/context' {
|
|
@@ -2921,6 +2959,13 @@ declare module '@authing/react-ui-components/components/_utils/facePlugin/interf
|
|
|
2921
2959
|
nets: any;
|
|
2922
2960
|
}
|
|
2923
2961
|
|
|
2962
|
+
}
|
|
2963
|
+
declare module '@authing/react-ui-components/components/_utils/flowHandleStorage' {
|
|
2964
|
+
export const getFlowHandle: () => string | undefined;
|
|
2965
|
+
export const useFlowHandle: () => string | undefined;
|
|
2966
|
+
export const updateFlowHandle: (flowHandle: string) => void;
|
|
2967
|
+
export const useUpdateFlowHandle: (flowHandle: string) => void;
|
|
2968
|
+
|
|
2924
2969
|
}
|
|
2925
2970
|
declare module '@authing/react-ui-components/components/_utils/guardDocument' {
|
|
2926
2971
|
export const getGuardDocument: () => Document;
|
|
@@ -3027,6 +3072,7 @@ declare module '@authing/react-ui-components/components/_utils/http' {
|
|
|
3027
3072
|
data?: T;
|
|
3028
3073
|
messages?: string;
|
|
3029
3074
|
message?: string;
|
|
3075
|
+
flowHandle?: string;
|
|
3030
3076
|
}
|
|
3031
3077
|
export interface AuthingGuardResponse<T = any> extends AuthingResponse<T> {
|
|
3032
3078
|
onGuardHandling?: () => CodeAction;
|
|
@@ -3082,7 +3128,13 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3082
3128
|
export const isXiaomiBrowser: () => boolean | null;
|
|
3083
3129
|
export const isDingtalkBrowser: () => boolean | null;
|
|
3084
3130
|
export const isQQBrowser: () => boolean | null;
|
|
3085
|
-
export const
|
|
3131
|
+
export const isEdgeBrowser: () => boolean;
|
|
3132
|
+
export const isWeiboBrowser: () => boolean | null;
|
|
3133
|
+
export const isAlipayBrowser: () => boolean | null;
|
|
3134
|
+
export const isBaiduBrowser: () => boolean | null;
|
|
3135
|
+
export const isWeComeBrowser: () => boolean;
|
|
3136
|
+
export const isMobile: () => RegExpMatchArray | null;
|
|
3137
|
+
export const isSpecialBrowser: () => boolean;
|
|
3086
3138
|
export const assembledAppHost: (identifier: string, host: string) => string;
|
|
3087
3139
|
export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
|
|
3088
3140
|
export enum PasswordStrength {
|
|
@@ -3107,6 +3159,16 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3107
3159
|
export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
|
|
3108
3160
|
export const getDocumentNode: (node: Node & ParentNode) => Document;
|
|
3109
3161
|
|
|
3162
|
+
}
|
|
3163
|
+
declare module '@authing/react-ui-components/components/_utils/initAppId' {
|
|
3164
|
+
import { AuthenticationClient } from 'authing-js-sdk';
|
|
3165
|
+
export interface UseInitAppidProps {
|
|
3166
|
+
propsAppid?: string;
|
|
3167
|
+
propsAuthClient?: AuthenticationClient;
|
|
3168
|
+
setError?: any;
|
|
3169
|
+
}
|
|
3170
|
+
export const useInitAppId: (propsAppid?: string | undefined, propsAuthClient?: AuthenticationClient | undefined, setError?: any) => string | undefined;
|
|
3171
|
+
|
|
3110
3172
|
}
|
|
3111
3173
|
declare module '@authing/react-ui-components/components/_utils/locales/en/index' {
|
|
3112
3174
|
import common from '@authing/react-ui-components/components/_utils/locales/en/common/index';
|
|
@@ -3289,7 +3351,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3289
3351
|
|
|
3290
3352
|
}
|
|
3291
3353
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3292
|
-
const _default: "3.1.
|
|
3354
|
+
const _default: "3.1.16-beta.0";
|
|
3293
3355
|
export default _default;
|
|
3294
3356
|
|
|
3295
3357
|
}
|