@authing/react-ui-components 3.1.7-rc.1 → 3.1.10

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Authing
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/lib/index.d.ts CHANGED
@@ -1173,15 +1173,14 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
1173
1173
 
1174
1174
  }
1175
1175
  declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
1176
- import { User } from 'authing-js-sdk';
1177
- import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
1176
+ import { CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
1178
1177
  export enum CompleteInfoAuthFlowAction {
1179
1178
  Complete = "complete-completion",
1180
1179
  Skip = "skip-completion"
1181
1180
  }
1182
1181
  export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1183
- export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<User> | undefined;
1184
- export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | undefined>;
1182
+ export const registerSkipMethod: (fnName: 'registerByEmail' | 'registerByPhoneCode', content: any) => Promise<import("authing-js-sdk").User> | undefined;
1183
+ export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: 'registerByEmail' | 'registerByPhoneCode', registerContent: any, registerProfile?: any) => Promise<import("authing-js-sdk").User | undefined>;
1185
1184
 
1186
1185
  }
1187
1186
  declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
@@ -1293,7 +1292,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1293
1292
  }
1294
1293
  export interface RegisterCompleteInfoInitData {
1295
1294
  content: any;
1296
- businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
1295
+ businessRequestName: 'registerByEmail' | 'registerByPhoneCode';
1297
1296
  }
1298
1297
  export interface CompleteInfoRequest {
1299
1298
  fieldValues: {
@@ -1304,8 +1303,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1304
1303
  }
1305
1304
  export enum OmitCompleteInfo {
1306
1305
  'registerByEmail' = "email",
1307
- 'registerByPhoneCode' = "phone",
1308
- 'registerByEmailCode' = "email"
1306
+ 'registerByPhoneCode' = "phone"
1309
1307
  }
1310
1308
 
1311
1309
  }
@@ -2339,20 +2337,6 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
2339
2337
  }
2340
2338
  export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
2341
2339
 
2342
- }
2343
- declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
2344
- import React from 'react';
2345
- import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2346
- export interface RegisterWithEmailCodeProps {
2347
- onRegisterSuccess: Function;
2348
- onRegisterFailed: Function;
2349
- onBeforeRegister?: Function;
2350
- agreements: Agreement[];
2351
- publicConfig?: ApplicationConfig;
2352
- registeContext?: any;
2353
- }
2354
- export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
2355
-
2356
2340
  }
2357
2341
  declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
2358
2342
  import React from 'react';
@@ -2424,7 +2408,7 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail
2424
2408
  import './style.less';
2425
2409
  import { InputProps } from 'antd/lib/input';
2426
2410
  export interface SendCodeByEmailProps extends InputProps {
2427
- data?: string;
2411
+ data: string;
2428
2412
  form?: any;
2429
2413
  onSendCodeBefore?: any;
2430
2414
  fieldName?: string;
@@ -3204,7 +3188,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3204
3188
 
3205
3189
  }
3206
3190
  declare module '@authing/react-ui-components/components/version/version' {
3207
- const _default: "3.1.7-rc.1";
3191
+ const _default: "3.1.10";
3208
3192
  export default _default;
3209
3193
 
3210
3194
  }