@authing/react-ui-components 3.1.13 → 3.1.14-rc.1
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 +42 -9
- 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
|
|
|
@@ -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;
|
|
@@ -2625,6 +2655,7 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
|
2625
2655
|
form?: FormInstance;
|
|
2626
2656
|
checkRepeat?: boolean;
|
|
2627
2657
|
areaCode?: string;
|
|
2658
|
+
isCheckI18nSms?: boolean;
|
|
2628
2659
|
}
|
|
2629
2660
|
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
2630
2661
|
form?: FormInstance;
|
|
@@ -2708,6 +2739,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2708
2739
|
loadingComponent?: import("react").ReactNode;
|
|
2709
2740
|
openEventsMapping?: boolean | undefined;
|
|
2710
2741
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2742
|
+
authClient?: import("authing-js-sdk").AuthenticationClient | undefined;
|
|
2711
2743
|
disableRegister?: boolean | undefined;
|
|
2712
2744
|
registerMethods?: RegisterMethods[] | undefined;
|
|
2713
2745
|
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
@@ -2717,8 +2749,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2717
2749
|
registerContext?: any;
|
|
2718
2750
|
title?: string | undefined;
|
|
2719
2751
|
logo?: string | undefined;
|
|
2720
|
-
lang:
|
|
2721
|
-
langRange:
|
|
2752
|
+
lang: string;
|
|
2753
|
+
langRange: string[];
|
|
2722
2754
|
isHost?: boolean | undefined;
|
|
2723
2755
|
mode: import("@authing/react-ui-components/components/index").GuardMode;
|
|
2724
2756
|
clickCloseable: boolean;
|
|
@@ -2738,7 +2770,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2738
2770
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
2739
2771
|
enterpriseConnections?: string[] | undefined;
|
|
2740
2772
|
qrCodeScanOptions?: {
|
|
2741
|
-
currentDocument?: Document | undefined;
|
|
2742
2773
|
extIdpConnId?: string | undefined;
|
|
2743
2774
|
autoExchangeUserInfo?: boolean | undefined;
|
|
2744
2775
|
size?: {
|
|
@@ -3041,6 +3072,8 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3041
3072
|
export const isXiaomiBrowser: () => boolean | null;
|
|
3042
3073
|
export const isDingtalkBrowser: () => boolean | null;
|
|
3043
3074
|
export const isQQBrowser: () => boolean | null;
|
|
3075
|
+
export const isQQBuiltInBrowser: () => boolean | null;
|
|
3076
|
+
export const isWeWorkBuiltInBrowser: () => boolean | null;
|
|
3044
3077
|
export const isSpecialBrowser: () => boolean | null;
|
|
3045
3078
|
export const assembledAppHost: (identifier: string, host: string) => string;
|
|
3046
3079
|
export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
|
|
@@ -3079,7 +3112,7 @@ declare module '@authing/react-ui-components/components/_utils/locales/index' {
|
|
|
3079
3112
|
import i18n from 'i18next';
|
|
3080
3113
|
import { LocalesConfig, Lang } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3081
3114
|
export const changeLang: (lang: Lang) => void;
|
|
3082
|
-
const initI18n: (localesConfig?: LocalesConfig, lang?:
|
|
3115
|
+
const initI18n: (localesConfig?: LocalesConfig, lang?: string | undefined) => void;
|
|
3083
3116
|
export { i18n, initI18n };
|
|
3084
3117
|
|
|
3085
3118
|
}
|
|
@@ -3233,7 +3266,7 @@ declare module '@authing/react-ui-components/components/context/module/context'
|
|
|
3233
3266
|
declare module '@authing/react-ui-components/components/index' {
|
|
3234
3267
|
export * from '@authing/react-ui-components/components/_utils/config/index';
|
|
3235
3268
|
export * from '@authing/react-ui-components/components/_utils/responseManagement/interface';
|
|
3236
|
-
export
|
|
3269
|
+
export * from '@authing/react-ui-components/components/AuthClientProvider/index';
|
|
3237
3270
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3238
3271
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3239
3272
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
@@ -3248,7 +3281,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3248
3281
|
|
|
3249
3282
|
}
|
|
3250
3283
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3251
|
-
const _default: "3.1.
|
|
3284
|
+
const _default: "3.1.14-rc.1";
|
|
3252
3285
|
export default _default;
|
|
3253
3286
|
|
|
3254
3287
|
}
|