@authing/react-ui-components 3.0.2-beta.12 → 3.0.2-beta.14

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 CHANGED
@@ -383,6 +383,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
383
383
  name: string;
384
384
  label: string;
385
385
  inputType: string;
386
+ required: boolean;
387
+ validateRules: any[];
386
388
  }
387
389
  export interface UserExtendsField {
388
390
  type: 'user';
@@ -390,6 +392,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
390
392
  name: string;
391
393
  label: string;
392
394
  inputType: string;
395
+ required: boolean;
396
+ validateRules: any[];
393
397
  }
394
398
  export type ExtendsField = InternalExtendsField | UserExtendsField;
395
399
  export interface ApplicationPasswordTabConfig {
@@ -402,6 +406,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
402
406
  lang: Lang;
403
407
  }
404
408
  export type PasswordLoginMethods = 'username-password' | 'email-password' | 'phone-password';
409
+ export type ComplateFiledsPlace = 'register' | 'login';
405
410
  export interface ApplicationConfig {
406
411
  id: string;
407
412
  cdnBase: string;
@@ -431,6 +436,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
431
436
  };
432
437
  };
433
438
  socialConnections: SocialConnectionItem[];
439
+ complateFiledsPlace: ComplateFiledsPlace[];
434
440
  extendsFieldsEnabled: boolean;
435
441
  extendsFields: ExtendsField[];
436
442
  identifier: string;
@@ -1120,11 +1126,18 @@ declare module '@authing/react-ui-components/components/CompleteInfo/core/comple
1120
1126
  import React from 'react';
1121
1127
  import { ExtendsField } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1122
1128
  import { GuardCompleteInfoViewProps } from '@authing/react-ui-components/components/CompleteInfo/interface';
1129
+ import { User } from 'authing-js-sdk';
1123
1130
  export interface CompleteInfoProps {
1131
+ user: User;
1132
+ verifyCodeLength: number | undefined;
1124
1133
  extendsFields: ExtendsField[];
1125
1134
  onRegisterInfoCompleted?: GuardCompleteInfoViewProps['onRegisterInfoCompleted'];
1126
1135
  onRegisterInfoCompletedError?: GuardCompleteInfoViewProps['onRegisterInfoCompletedError'];
1127
1136
  }
1137
+ export interface FieldMetadata {
1138
+ key: string;
1139
+ options: any;
1140
+ }
1128
1141
  export const CompleteInfo: React.FC<CompleteInfoProps>;
1129
1142
 
1130
1143
  }
@@ -1156,8 +1169,25 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1156
1169
  }
1157
1170
  export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
1158
1171
  config: CompleteInfoConfig;
1172
+ initData: any;
1173
+ onLogin?: any;
1174
+ }
1175
+ export type ExtendsFieldType = 'user' | 'internal';
1176
+ export interface ExtendsField {
1177
+ type: ExtendsFieldType;
1178
+ name: string;
1179
+ label: string;
1180
+ inputType: string;
1181
+ required: boolean;
1182
+ validateRules: any[];
1159
1183
  }
1160
1184
 
1185
+ }
1186
+ declare module '@authing/react-ui-components/components/CompleteInfo/utils' {
1187
+ import { User } from 'authing-js-sdk';
1188
+ import { ExtendsField } from '@authing/react-ui-components/components/CompleteInfo/interface';
1189
+ export const completeFieldsFilter: (user: User, field: ExtendsField) => boolean;
1190
+
1161
1191
  }
1162
1192
  declare module '@authing/react-ui-components/components/CopyAbleText/index' {
1163
1193
  import React, { FC } from 'react';
@@ -1898,6 +1928,7 @@ declare module '@authing/react-ui-components/components/SendCode/index' {
1898
1928
  data: string;
1899
1929
  form?: any;
1900
1930
  onSendCodeBefore?: any;
1931
+ fieldName?: string;
1901
1932
  }
1902
1933
  export const SendCode: FC<SendPhoneCodeProps>;
1903
1934
 
@@ -1911,12 +1942,6 @@ declare module '@authing/react-ui-components/components/ShieldSpin/index' {
1911
1942
  export const Spin: () => JSX.Element;
1912
1943
  export {};
1913
1944
 
1914
- }
1915
- declare module '@authing/react-ui-components/components/ShieldSpin/loading' {
1916
- /// <reference types="react" />
1917
- import './style.less';
1918
- export const ShieldSpinLoading: () => JSX.Element;
1919
-
1920
1945
  }
1921
1946
  declare module '@authing/react-ui-components/components/SubmitButton/index' {
1922
1947
  import React from 'react';
@@ -2000,13 +2025,14 @@ declare module '@authing/react-ui-components/components/ValidatorRules/Validator
2000
2025
  import { ICheckProps, ValidatorFormItemProps } from '@authing/react-ui-components/components/ValidatorRules/index';
2001
2026
  export const EmailFormItem: React.ForwardRefExoticComponent<ValidatorFormItemProps & React.RefAttributes<ICheckProps>>;
2002
2027
  export const PhoneFormItem: React.ForwardRefExoticComponent<ValidatorFormItemProps & React.RefAttributes<ICheckProps>>;
2028
+ export const UserNameFormItem: React.ForwardRefExoticComponent<ValidatorFormItemProps & React.RefAttributes<ICheckProps>>;
2003
2029
 
2004
2030
  }
2005
2031
  declare module '@authing/react-ui-components/components/ValidatorRules/index' {
2006
2032
  import { FormInstance, FormItemProps } from 'antd/lib/form';
2007
2033
  import FormItem from 'antd/lib/form/FormItem';
2008
2034
  import { PasswordFormItem } from '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem';
2009
- import { EmailFormItem, PhoneFormItem } from '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem';
2035
+ import { EmailFormItem, PhoneFormItem, UserNameFormItem } from '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem';
2010
2036
  export interface ValidatorFormItemProps extends FormItemProps {
2011
2037
  form?: FormInstance;
2012
2038
  checkRepeat?: boolean;
@@ -2014,7 +2040,7 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
2014
2040
  export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
2015
2041
  form?: FormInstance;
2016
2042
  checkRepeat?: boolean;
2017
- method: 'email' | 'phone';
2043
+ method: 'email' | 'phone' | 'username';
2018
2044
  }
2019
2045
  export interface PasswordFormItemProps extends FormItemProps {
2020
2046
  }
@@ -2026,6 +2052,7 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
2026
2052
  Password: typeof PasswordFormItem;
2027
2053
  Email: typeof EmailFormItem;
2028
2054
  Phone: typeof PhoneFormItem;
2055
+ UserName: typeof UserNameFormItem;
2029
2056
  }
2030
2057
  const CustomFormItem: FormItemInterface;
2031
2058
  export default CustomFormItem;
@@ -2141,6 +2168,8 @@ declare module '@authing/react-ui-components/components/_utils/http' {
2141
2168
  declare module '@authing/react-ui-components/components/_utils/index' {
2142
2169
  import { Rule } from 'antd/lib/form';
2143
2170
  import qs from 'qs';
2171
+ import { User } from 'authing-js-sdk';
2172
+ import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2144
2173
  export * from '@authing/react-ui-components/components/_utils/popupCenter';
2145
2174
  export * from '@authing/react-ui-components/components/_utils/clipboard';
2146
2175
  export const VALIDATE_PATTERN: {
@@ -2148,6 +2177,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
2148
2177
  readonly phone: RegExp;
2149
2178
  readonly ip: RegExp;
2150
2179
  readonly host: RegExp;
2180
+ readonly username: RegExp;
2151
2181
  };
2152
2182
  export const validate: (type: keyof typeof VALIDATE_PATTERN, val: string) => boolean;
2153
2183
  export const getRequiredRules: (msg: string) => Rule[];
@@ -2192,6 +2222,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
2192
2222
  export const getSymbolTypeLength: (pwd: string) => number;
2193
2223
  export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any) => Rule[];
2194
2224
  export const sleep: (delay: number) => Promise<unknown>;
2225
+ export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined) => boolean;
2195
2226
 
2196
2227
  }
2197
2228
  declare module '@authing/react-ui-components/components/_utils/locales/en/index' {
@@ -2321,7 +2352,7 @@ declare module '@authing/react-ui-components/components/version/index' {
2321
2352
 
2322
2353
  }
2323
2354
  declare module '@authing/react-ui-components/components/version/version' {
2324
- const _default: "3.0.2-beta.12";
2355
+ const _default: "3.0.2-beta.14";
2325
2356
  export default _default;
2326
2357
 
2327
2358
  }