@authing/react-ui-components 4.3.3-zhihu.2 → 4.3.3

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.
Files changed (31) hide show
  1. package/dist/asset-manifest.json +26 -0
  2. package/dist/index.html +1 -0
  3. package/dist/static/css/2.31681d53.chunk.css +3 -0
  4. package/dist/static/css/2.31681d53.chunk.css.map +1 -0
  5. package/dist/static/css/main.5aec6972.chunk.css +2 -0
  6. package/dist/static/css/main.5aec6972.chunk.css.map +1 -0
  7. package/dist/static/js/2.d2a1168e.chunk.js +3 -0
  8. package/dist/static/js/2.d2a1168e.chunk.js.LICENSE.txt +86 -0
  9. package/dist/static/js/2.d2a1168e.chunk.js.map +1 -0
  10. package/dist/static/js/3.b3dd7130.chunk.js +2 -0
  11. package/dist/static/js/3.b3dd7130.chunk.js.map +1 -0
  12. package/dist/static/js/main.b635a15a.chunk.js +2 -0
  13. package/dist/static/js/main.b635a15a.chunk.js.map +1 -0
  14. package/dist/static/js/runtime-main.6f6a6483.js +2 -0
  15. package/dist/static/js/runtime-main.6f6a6483.js.map +1 -0
  16. package/dist/static/media/loading.3cf0104f.svg +32 -0
  17. package/lib/index.min.css +2 -2
  18. package/lib/index.min.js +1 -1
  19. package/package.json +1 -1
  20. package/types/Login/socialLogin/index.d.ts +1 -1
  21. package/types/Type/application.d.ts +15 -8
  22. package/types/_utils/index.d.ts +1 -3
  23. package/types/version/version.d.ts +1 -1
  24. package/types/AccountMerge/UserRadio.d.ts +0 -5
  25. package/types/AccountMerge/index.d.ts +0 -3
  26. package/types/AccountMerge/interface.d.ts +0 -27
  27. package/types/AccountMerge/utils.d.ts +0 -3
  28. package/types/ChangeAccoutType/index.d.ts +0 -3
  29. package/types/CompleteInfo/core/components/TreeSelect.d.ts +0 -11
  30. package/types/Login/core/withLandrayQrcode.d.ts +0 -11
  31. package/types/Login/core/withWeComQrcode.d.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.3.3-zhihu.2",
3
+ "version": "4.3.3",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import './style.less';
3
3
  import { GuardLocalConfig } from '../../Guard';
4
+ import { ApplicationConfig, SocialConnectionItem } from '../../Type/application';
4
5
  import { StoreInstance } from '../../Guard/core/hooks/useMultipleAccounts';
5
- import { ApplicationConfig, SocialConnectionItem } from '../../Type';
6
6
  export interface SocialLoginProps {
7
7
  appId: string;
8
8
  config: GuardLocalConfig;
@@ -8,8 +8,7 @@ export declare enum LoginMethods {
8
8
  PhoneCode = "phone-code",
9
9
  WxMinQr = "wechat-miniprogram-qrcode",
10
10
  AD = "ad",
11
- WechatMpQrcode = "wechatmp-qrcode",
12
- WechatworkCorpQrconnect = "wechatwork-corp-qrconnect"
11
+ WechatMpQrcode = "wechatmp-qrcode"
13
12
  }
14
13
  export declare enum OIDCConnectionMode {
15
14
  FRONT_CHANNEL = "FRONT_CHANNEL",
@@ -113,12 +112,6 @@ export interface QrCodeItem {
113
112
  id: string;
114
113
  title: string;
115
114
  isDefault?: boolean;
116
- QRConfig?: {
117
- corpId: string;
118
- agentId: string;
119
- redirectUrl: string;
120
- identifier: string;
121
- };
122
115
  }
123
116
  export declare type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
124
117
  export interface OidcClientMetadata {
@@ -184,6 +177,14 @@ export interface TabFieldsI18nItem {
184
177
  [propName in Lang]?: string;
185
178
  };
186
179
  }
180
+ interface LoginTypeI18nProps {
181
+ tab: {
182
+ default: string;
183
+ i18n: {
184
+ [propName: string]: string;
185
+ };
186
+ };
187
+ }
187
188
  export interface ApplicationConfig {
188
189
  id: string;
189
190
  allowedOrigins: string[];
@@ -269,6 +270,12 @@ export interface ApplicationConfig {
269
270
  socialLoginBtns: boolean;
270
271
  userPasswordInput: boolean;
271
272
  wxMpScanTab: boolean;
273
+ loginMethodsI18nDisplaySettings: {
274
+ password?: LoginTypeI18nProps;
275
+ verifyCode?: LoginTypeI18nProps;
276
+ ad?: LoginTypeI18nProps;
277
+ ldap?: LoginTypeI18nProps;
278
+ };
272
279
  };
273
280
  protocol: Protocol;
274
281
  oidcConfig: OidcClientMetadata;
@@ -27,7 +27,7 @@ export declare const getClassnames: (classnames: (string | boolean | undefined)[
27
27
  * @param item
28
28
  * @returns {boolean}
29
29
  */
30
- export declare function isObject(item: any): any;
30
+ export declare function isObject(item: any): boolean;
31
31
  /**
32
32
  * https://www.itranslater.com/qa/details/2115518846294557696
33
33
  * Deep merge two objects.
@@ -92,8 +92,6 @@ export declare const getLoginTypePipe: (publicConfig: ApplicationConfig, registe
92
92
  } | undefined;
93
93
  export declare const getPasswordIdentify: (identity: string) => string;
94
94
  export declare const getCurrentLng: () => Lang;
95
- export declare const isDingTalkOrigin: (origin: string) => boolean;
96
- export declare const isWeComOrigin: (event: MessageEvent) => boolean;
97
95
  export declare const regexFromString: (string: string) => RegExp | null;
98
96
  export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFields: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
99
97
  export declare const getSortLabels: (methods: string[], i18nConfig: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
@@ -1,2 +1,2 @@
1
- declare const _default: "4.3.3-zhihu.2";
1
+ declare const _default: "4.3.3";
2
2
  export default _default;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { UserRadioItemProps, UserRadioProps } from './interface';
3
- import './styles.less';
4
- export declare const UserRadioItem: React.FC<UserRadioItemProps>;
5
- export declare const UserRadio: React.FC<UserRadioProps>;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import './styles.less';
3
- export declare const GuardAccountMergeView: React.FC;
@@ -1,27 +0,0 @@
1
- export interface BriefUserInfo {
2
- displayName: string;
3
- avatar: string;
4
- phone: string;
5
- email: string;
6
- username: string;
7
- name: string;
8
- }
9
- export interface GuardAccountMergeInitData {
10
- currentUserInfo: BriefUserInfo;
11
- existingUserInfo: BriefUserInfo;
12
- mergeToken?: string;
13
- }
14
- export interface UserRadioProps {
15
- currentUserInfo: BriefUserInfo;
16
- existingUserInfo: BriefUserInfo;
17
- onChange?: (value: any) => void;
18
- value?: any;
19
- }
20
- export interface UserRadioItemProps extends BriefUserInfo {
21
- value: boolean;
22
- selected: boolean;
23
- onClick: (value: boolean) => void;
24
- }
25
- export declare enum AuthFlowAction {
26
- MERGE = "confirm-account-merge"
27
- }
@@ -1,3 +0,0 @@
1
- import { User } from 'authing-js-sdk';
2
- export declare const getDisplayName: (user: User) => string;
3
- export declare const getDisplayNameByEmail: (displayName: string) => string;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import './style.less';
3
- export declare const GuardChangeAccoutTypesView: () => JSX.Element;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export declare type OptionType = {
3
- id: string;
4
- name: string;
5
- children: OptionType[];
6
- };
7
- interface TreeSelectProps {
8
- options: OptionType[];
9
- }
10
- declare const TreeSelect: React.FC<TreeSelectProps>;
11
- export default TreeSelect;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { StoreInstance } from '../../Guard/core/hooks/useMultipleAccounts';
3
- interface LoginWithLandrayQrcodeProps {
4
- onLoginSuccess: any;
5
- canLoop: boolean;
6
- qrCodeScanOptions: any;
7
- id: string;
8
- multipleInstance?: StoreInstance;
9
- }
10
- export declare const LoginWithLandrayQrcode: (props: LoginWithLandrayQrcodeProps) => JSX.Element | null;
11
- export {};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const LoginWithWeComQrcode: (props: any) => JSX.Element;