@authing/react-ui-components 4.4.3-wecom.5 → 4.4.3-wecom.6
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 +3 -1
- package/types/_utils/context.d.ts +87 -1
- package/types/_utils/signRequestParams.d.ts +8 -0
- package/types/version/version.d.ts +1 -1
- package/lib/index.min.css +0 -2
- package/lib/index.min.js +0 -2
- package/lib/index.min.js.LICENSE.txt +0 -59
- package/lib/static/media/ey_loading.24d3e4d0.gif +0 -0
- package/lib/static/media/loading.3cf0104f.svg +0 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authing/react-ui-components",
|
|
3
|
-
"version": "4.4.3-wecom.
|
|
3
|
+
"version": "4.4.3-wecom.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/index.min.js",
|
|
6
6
|
"typings": "types/index.d.ts",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"antd": "^4.8.0",
|
|
15
15
|
"authing-js-sdk": "4.23.48",
|
|
16
16
|
"classnames": "^2.3.1",
|
|
17
|
+
"crypto-js": "^4.1.1",
|
|
17
18
|
"fastclick": "^1.0.6",
|
|
18
19
|
"global": "^4.4.0",
|
|
19
20
|
"phone": "^3.1.12",
|
|
@@ -144,6 +145,7 @@
|
|
|
144
145
|
"@testing-library/jest-dom": "^5.11.4",
|
|
145
146
|
"@testing-library/react": "^11.1.0",
|
|
146
147
|
"@testing-library/user-event": "^12.1.10",
|
|
148
|
+
"@types/crypto-js": "^4.1.2",
|
|
147
149
|
"@types/jest": "^26.0.15",
|
|
148
150
|
"@types/lodash": "^4.14.175",
|
|
149
151
|
"@types/node": "^12.0.0",
|
|
@@ -87,7 +87,93 @@ export declare const useGuardModule: () => {
|
|
|
87
87
|
backModule: (() => void) | undefined;
|
|
88
88
|
currentModule: ModuleState;
|
|
89
89
|
};
|
|
90
|
-
export declare const useGuardFinallyConfig: () =>
|
|
90
|
+
export declare const useGuardFinallyConfig: () => {
|
|
91
|
+
title: string;
|
|
92
|
+
isInvited?: boolean | undefined;
|
|
93
|
+
isSSO?: boolean | undefined;
|
|
94
|
+
defaultScenes?: GuardModuleType | undefined;
|
|
95
|
+
defaultInitData?: any;
|
|
96
|
+
showLoading?: boolean | undefined;
|
|
97
|
+
loadingComponent?: React.ReactNode;
|
|
98
|
+
openEventsMapping?: boolean | undefined;
|
|
99
|
+
disableRegister?: boolean | undefined;
|
|
100
|
+
registerMethods?: string[] | undefined;
|
|
101
|
+
defaultRegisterMethod?: string | undefined;
|
|
102
|
+
publicKey?: string | undefined;
|
|
103
|
+
agreementEnabled?: boolean | undefined;
|
|
104
|
+
agreements?: import("..").Agreement[] | undefined;
|
|
105
|
+
registerContext?: any;
|
|
106
|
+
logo?: string | undefined;
|
|
107
|
+
lang?: string | undefined;
|
|
108
|
+
langRange?: Lang[] | undefined;
|
|
109
|
+
host: string;
|
|
110
|
+
isHost?: boolean | undefined;
|
|
111
|
+
mode: import("..").GuardMode;
|
|
112
|
+
clickCloseable: boolean;
|
|
113
|
+
escCloseable: boolean;
|
|
114
|
+
userpool?: string | undefined;
|
|
115
|
+
contentCss?: string | undefined;
|
|
116
|
+
target?: string | HTMLElement | undefined;
|
|
117
|
+
style?: React.CSSProperties | undefined;
|
|
118
|
+
__internalRequest__?: boolean | undefined;
|
|
119
|
+
__singleComponent__?: boolean | undefined;
|
|
120
|
+
__unAuthFlow__?: boolean | undefined;
|
|
121
|
+
autoRegister?: boolean | undefined;
|
|
122
|
+
disableResetPwd?: boolean | undefined;
|
|
123
|
+
defaultLoginMethod?: import("..").LoginMethods | undefined;
|
|
124
|
+
loginMethods?: import("..").LoginMethods[] | undefined;
|
|
125
|
+
passwordLoginMethods?: string[] | undefined;
|
|
126
|
+
socialConnections?: import("..").SocialConnectionProvider[] | undefined;
|
|
127
|
+
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
128
|
+
enterpriseConnections?: string[] | undefined;
|
|
129
|
+
qrCodeScanOptions?: {
|
|
130
|
+
extIdpConnId?: string | undefined;
|
|
131
|
+
autoExchangeUserInfo?: boolean | undefined;
|
|
132
|
+
size?: {
|
|
133
|
+
height: number;
|
|
134
|
+
width: number;
|
|
135
|
+
} | undefined;
|
|
136
|
+
containerSize?: {
|
|
137
|
+
height: number;
|
|
138
|
+
width: number;
|
|
139
|
+
} | undefined;
|
|
140
|
+
interval?: number | undefined;
|
|
141
|
+
onStart?: ((timer: any) => any) | undefined;
|
|
142
|
+
onResult?: ((data: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeStatus) => any) | undefined;
|
|
143
|
+
onScanned?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo) => any) | undefined;
|
|
144
|
+
onSuccess?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo, ticket: string) => any) | undefined;
|
|
145
|
+
onCancel?: (() => any) | undefined;
|
|
146
|
+
onError?: ((message: string) => any) | undefined;
|
|
147
|
+
onExpired?: (() => any) | undefined;
|
|
148
|
+
onCodeShow?: ((random: string, url: string) => any) | undefined;
|
|
149
|
+
onCodeLoaded?: ((random: string, url: string) => any) | undefined;
|
|
150
|
+
onCodeLoadFailed?: ((message: string) => any) | undefined;
|
|
151
|
+
onCodeDestroyed?: ((random: string) => any) | undefined;
|
|
152
|
+
onRetry?: (() => any) | undefined;
|
|
153
|
+
onMfa?: ((code: number, message: string, data: Record<string, any>) => {}) | undefined;
|
|
154
|
+
tips?: {
|
|
155
|
+
title?: string | undefined;
|
|
156
|
+
scanned?: string | undefined;
|
|
157
|
+
succeed?: string | undefined;
|
|
158
|
+
canceled?: string | undefined;
|
|
159
|
+
expired?: string | undefined;
|
|
160
|
+
retry?: string | undefined;
|
|
161
|
+
failed?: string | undefined;
|
|
162
|
+
middleTitle?: string | undefined;
|
|
163
|
+
referText?: string | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
onAuthFlow?: ((flow: Record<string, any>) => {}) | undefined;
|
|
166
|
+
customData?: {
|
|
167
|
+
[x: string]: any;
|
|
168
|
+
} | undefined;
|
|
169
|
+
context?: {
|
|
170
|
+
[x: string]: any;
|
|
171
|
+
} | undefined;
|
|
172
|
+
withCustomData?: boolean | undefined;
|
|
173
|
+
} | undefined;
|
|
174
|
+
_closeLoopCheckQrcode?: boolean | undefined;
|
|
175
|
+
goBack?: (() => void) | null | undefined;
|
|
176
|
+
};
|
|
91
177
|
export declare const useGuardContextLoaded: () => boolean;
|
|
92
178
|
export declare const useGuardIsAuthFlow: () => boolean;
|
|
93
179
|
export declare const useGuardPageConfig: () => Partial<GuardPageConfig>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const generateRandomStr: (length?: number) => string;
|
|
2
|
+
export declare const md5: (text: string) => any;
|
|
3
|
+
export declare const signRequestParams: (params: Record<string, any>) => Record<string, any> & {
|
|
4
|
+
_random: string;
|
|
5
|
+
_timestamp: number;
|
|
6
|
+
} & {
|
|
7
|
+
_sign: any;
|
|
8
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.4.3-wecom.
|
|
1
|
+
declare const _default: "4.4.3-wecom.6";
|
|
2
2
|
export default _default;
|