@authing/react-ui-components 3.0.0-rc.43 → 3.0.0-rc.44

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
@@ -1143,10 +1143,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/core/comple
1143
1143
  extendsFields: ExtendsField[];
1144
1144
  onRegisterInfoCompleted?: GuardCompleteInfoViewProps['onRegisterInfoCompleted'];
1145
1145
  onRegisterInfoCompletedError?: GuardCompleteInfoViewProps['onRegisterInfoCompletedError'];
1146
- onMergeAccountEvent?: (phone: string, udfs: {
1147
- definition: any;
1148
- value: any;
1149
- }[], user: User) => void;
1146
+ onMergeAccountEvent?: (phone: string, user: User) => void;
1150
1147
  }
1151
1148
  export interface FieldMetadata {
1152
1149
  key: string;
@@ -1172,7 +1169,10 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1172
1169
  onRegisterInfoCompleted?: (user: User, udfs: {
1173
1170
  definition: any;
1174
1171
  value: any;
1175
- }[], authClient: AuthenticationClient) => void;
1172
+ }[], authClient: AuthenticationClient, opts?: {
1173
+ phone?: string;
1174
+ canMergeUser?: boolean;
1175
+ }) => void;
1176
1176
  onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
1177
1177
  definition: any;
1178
1178
  value: any;
@@ -1836,6 +1836,7 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
1836
1836
  nickme?: string;
1837
1837
  username?: string;
1838
1838
  current?: MFAType;
1839
+ thirdPartyOrigin?: boolean;
1839
1840
  }
1840
1841
  export interface GuardMFAProps extends IG2FCProps, MFAEvents {
1841
1842
  config: Partial<MFAConfig>;
@@ -1867,33 +1868,20 @@ declare module '@authing/react-ui-components/components/MergeAccount/index' {
1867
1868
 
1868
1869
  }
1869
1870
  declare module '@authing/react-ui-components/components/MergeAccount/interface' {
1870
- import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
1871
- import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1871
+ import { User } from 'authing-js-sdk';
1872
+ import { IG2Config, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1872
1873
  export interface CompleteInfoConfig extends IG2Config {
1873
1874
  }
1874
- export interface UserMergeEvents extends IG2Events {
1875
- onRegisterInfoCompleted?: (user: User, udfs: {
1876
- definition: any;
1877
- value: any;
1878
- }[], authClient: AuthenticationClient) => void;
1879
- onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
1880
- definition: any;
1881
- value: any;
1882
- }[], authClient: AuthenticationClient) => void;
1883
- }
1884
- export interface GuardUserMergeProps extends IG2FCProps, UserMergeEvents {
1875
+ export interface GuardUserMergeProps extends IG2FCProps {
1885
1876
  config: Partial<CompleteInfoConfig>;
1886
1877
  }
1887
1878
  export interface GuardUserMergeViewProps extends GuardUserMergeProps {
1888
1879
  config: CompleteInfoConfig;
1889
1880
  initData: {
1890
1881
  phone: string;
1891
- udfs: {
1892
- definition: any;
1893
- value: any;
1894
- }[];
1895
1882
  user: User;
1896
1883
  context: string;
1884
+ thirdPartyOrigin?: boolean;
1897
1885
  };
1898
1886
  onLogin?: any;
1899
1887
  }
@@ -1911,6 +1899,7 @@ declare module '@authing/react-ui-components/components/MergeAccount/interface'
1911
1899
  declare module '@authing/react-ui-components/components/MergeAccount/utils' {
1912
1900
  import { User } from 'authing-js-sdk';
1913
1901
  export const getDisplayName: (user: User) => string;
1902
+ export const getDisplayNameByEmail: (displayName: string) => string;
1914
1903
 
1915
1904
  }
1916
1905
  declare module '@authing/react-ui-components/components/NeedHelpView/core/describeQuestions' {
@@ -2578,7 +2567,7 @@ declare module '@authing/react-ui-components/components/version/index' {
2578
2567
 
2579
2568
  }
2580
2569
  declare module '@authing/react-ui-components/components/version/version' {
2581
- const _default: "3.0.0-rc.43";
2570
+ const _default: "3.0.0-rc.44";
2582
2571
  export default _default;
2583
2572
 
2584
2573
  }