@authing/react-ui-components 4.0.6-zhihu.0 → 4.0.7-hep.0

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 (55) hide show
  1. package/lib/index.min.css +2 -2
  2. package/lib/index.min.js +1 -1
  3. package/package.json +2 -2
  4. package/types/AccountMerge/UserRadio.d.ts +5 -0
  5. package/types/AccountMerge/index.d.ts +3 -0
  6. package/types/AccountMerge/interface.d.ts +27 -0
  7. package/types/AccountMerge/utils.d.ts +3 -0
  8. package/types/BindTotp/businessRequest.d.ts +1 -1
  9. package/types/ChangeLanguage/index.d.ts +1 -1
  10. package/types/ChangePassword/businessRequest.d.ts +1 -1
  11. package/types/CompleteInfo/businessRequest.d.ts +1 -1
  12. package/types/CompleteInfo/core/components/TreeSelect.d.ts +11 -0
  13. package/types/CompleteInfo/index.d.ts +1 -0
  14. package/types/CompleteInfo/interface.d.ts +10 -6
  15. package/types/ForgetPassword/core/resetPassword.d.ts +0 -2
  16. package/types/ForgetPassword/interface.d.ts +6 -6
  17. package/types/Guard/GuardModule/stateMachine.d.ts +2 -2
  18. package/types/Guard/config.d.ts +0 -2
  19. package/types/Guard/core/renderModule.d.ts +1 -1
  20. package/types/Guard/event.d.ts +10 -8
  21. package/types/Guard/module.d.ts +3 -1
  22. package/types/IdentityBinding/businessRequest.d.ts +2 -2
  23. package/types/Login/interface.d.ts +2 -2
  24. package/types/Login/socialLogin/index.d.ts +1 -1
  25. package/types/MFA/businessRequest.d.ts +1 -1
  26. package/types/MFA/interface.d.ts +2 -1
  27. package/types/RecoveryCode/businessRequest.d.ts +1 -1
  28. package/types/Type/application.d.ts +10 -13
  29. package/types/Type/index.d.ts +6 -6
  30. package/types/_utils/GuardErrorCode.d.ts +1 -1
  31. package/types/_utils/config/index.d.ts +101 -89
  32. package/types/_utils/hooks/index.d.ts +0 -4
  33. package/types/_utils/index.d.ts +1 -3
  34. package/types/_utils/logger/interface.d.ts +1 -1
  35. package/types/_utils/responseManagement/interface.d.ts +3 -2
  36. package/types/version/version.d.ts +1 -1
  37. package/dist/asset-manifest.json +0 -26
  38. package/dist/index.html +0 -1
  39. package/dist/static/css/2.2cdfb9d1.chunk.css +0 -3
  40. package/dist/static/css/2.2cdfb9d1.chunk.css.map +0 -1
  41. package/dist/static/css/main.f438f284.chunk.css +0 -2
  42. package/dist/static/css/main.f438f284.chunk.css.map +0 -1
  43. package/dist/static/js/2.9a1287ca.chunk.js +0 -3
  44. package/dist/static/js/2.9a1287ca.chunk.js.LICENSE.txt +0 -112
  45. package/dist/static/js/2.9a1287ca.chunk.js.map +0 -1
  46. package/dist/static/js/3.d3328d89.chunk.js +0 -2
  47. package/dist/static/js/3.d3328d89.chunk.js.map +0 -1
  48. package/dist/static/js/main.5735e6f1.chunk.js +0 -2
  49. package/dist/static/js/main.5735e6f1.chunk.js.map +0 -1
  50. package/dist/static/js/runtime-main.e75981a3.js +0 -2
  51. package/dist/static/js/runtime-main.e75981a3.js.map +0 -1
  52. package/dist/static/media/loading.3cf0104f.svg +0 -32
  53. package/types/Login/core/withLandrayQrcode.d.ts +0 -11
  54. package/types/Login/core/withWeComQrcode.d.ts +0 -2
  55. package/types/_utils/types.d.ts +0 -13
@@ -1,96 +1,108 @@
1
1
  /// <reference types="react" />
2
- import { GuardComponentConfig, GuardLocalConfig } from '../../Guard/config';
2
+ import { GuardLocalConfig } from '../../Guard/config';
3
3
  import { GuardHttp } from '../guardHttp';
4
4
  import { GuardPageConfig } from '../../Type';
5
- import { ApplicationConfig, RegisterMethods } from '../../Type/application';
5
+ import { ApplicationConfig, LoginMethods, RegisterMethods } from '../../Type/application';
6
6
  export declare const getPublicConfig: (appId: string) => ApplicationConfig;
7
7
  export declare const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
8
- export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
9
- export declare const useMergePublicConfig: (forceUpdate: number, appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
10
- host: string;
11
- isSSO?: boolean | undefined;
12
- defaultScenes?: import("../..").GuardModuleType | undefined;
13
- defaultInitData?: any;
14
- showLoading?: boolean | undefined;
15
- loadingComponent?: import("react").ReactNode;
16
- openEventsMapping?: boolean | undefined;
17
- disableRegister?: boolean | undefined;
18
- registerMethods?: RegisterMethods[] | undefined;
19
- defaultRegisterMethod?: RegisterMethods | undefined;
20
- publicKey?: string | undefined;
21
- agreementEnabled?: boolean | undefined;
22
- agreements?: import("../../Type").Agreement[] | undefined;
23
- registerContext?: any;
24
- title?: string | undefined;
25
- logo?: string | undefined;
26
- lang?: string | undefined;
27
- langRange?: string[] | undefined;
28
- isHost?: boolean | undefined;
29
- mode: import("../../Type").GuardMode;
30
- clickCloseable: boolean;
31
- escCloseable: boolean;
32
- userpool?: string | undefined;
33
- contentCss?: string | undefined;
34
- target?: string | HTMLElement | undefined;
35
- __internalRequest__?: boolean | undefined;
36
- __singleComponent__?: boolean | undefined;
37
- __unAuthFlow__?: boolean | undefined;
38
- autoRegister?: boolean | undefined;
39
- disableResetPwd?: boolean | undefined;
40
- defaultLoginMethod?: import("../../Type").LoginMethods | undefined;
41
- loginMethods?: import("../../Type").LoginMethods[] | undefined;
42
- passwordLoginMethods?: import("../../Type").PasswordLoginMethods[] | undefined;
43
- socialConnections?: import("authing-js-sdk").SocialConnectionProvider[] | undefined;
44
- socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
45
- enterpriseConnections?: string[] | undefined;
46
- qrCodeScanOptions?: {
47
- extIdpConnId?: string | undefined;
48
- autoExchangeUserInfo?: boolean | undefined;
49
- size?: {
50
- height: number;
51
- width: number;
52
- } | undefined;
53
- containerSize?: {
54
- height: number;
55
- width: number;
56
- } | undefined;
57
- interval?: number | undefined;
58
- onStart?: ((timer: any) => any) | undefined;
59
- onResult?: ((data: import("authing-js-sdk").QRCodeStatus) => any) | undefined;
60
- onScanned?: ((userInfo: import("authing-js-sdk").QRCodeUserInfo) => any) | undefined;
61
- onSuccess?: ((userInfo: import("authing-js-sdk").QRCodeUserInfo, ticket: string) => any) | undefined;
62
- onCancel?: (() => any) | undefined;
63
- onError?: ((message: string) => any) | undefined;
64
- onExpired?: (() => any) | undefined;
65
- onCodeShow?: ((random: string, url: string) => any) | undefined;
66
- onCodeLoaded?: ((random: string, url: string) => any) | undefined;
67
- onCodeLoadFailed?: ((message: string) => any) | undefined;
68
- onCodeDestroyed?: ((random: string) => any) | undefined;
69
- onRetry?: (() => any) | undefined;
70
- onMfa?: ((code: number, message: string, data: Record<string, any>) => {}) | undefined;
71
- tips?: {
72
- title?: string | undefined;
73
- scanned?: string | undefined;
74
- succeed?: string | undefined;
75
- canceled?: string | undefined;
76
- expired?: string | undefined;
77
- retry?: string | undefined;
78
- failed?: string | undefined;
79
- middleTitle?: string | undefined;
80
- referText?: string | undefined;
81
- } | undefined;
82
- onAuthFlow?: ((flow: Record<string, any>) => {}) | undefined;
83
- customData?: {
84
- [x: string]: any;
85
- } | undefined;
86
- context?: {
87
- [x: string]: any;
88
- } | undefined;
89
- withCustomData?: boolean | undefined;
90
- } | undefined;
91
- _closeLoopCheckQrcode?: boolean | undefined;
92
- } | undefined;
93
8
  export declare const getPageConfig: (appId: string) => GuardPageConfig;
94
9
  export declare const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
95
- export declare const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
96
- export declare const useGuardPageConfig: (forceUpdate: number, appId?: string | undefined, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
10
+ export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: Partial<GuardLocalConfig> | undefined) => GuardLocalConfig | undefined;
11
+ /**
12
+ * 请求服务console关于guard的配置
13
+ * @param forceUpdate
14
+ * @param appId
15
+ * @param config
16
+ * @param httpClient
17
+ * @param setError
18
+ */
19
+ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
20
+ finallyConfig: {
21
+ host: string;
22
+ isSSO?: boolean | undefined;
23
+ defaultScenes?: import("../..").GuardModuleType | undefined;
24
+ defaultInitData?: any;
25
+ showLoading?: boolean | undefined;
26
+ loadingComponent?: import("react").ReactNode;
27
+ openEventsMapping?: boolean | undefined;
28
+ disableRegister?: boolean | undefined;
29
+ registerMethods?: RegisterMethods[] | undefined;
30
+ defaultRegisterMethod?: RegisterMethods | undefined;
31
+ publicKey?: string | undefined;
32
+ agreementEnabled?: boolean | undefined;
33
+ agreements?: import("../../Type").Agreement[] | undefined;
34
+ registerContext?: any;
35
+ title?: string | undefined;
36
+ logo?: string | undefined;
37
+ lang?: string | undefined;
38
+ langRange?: import("../../Type").Lang[] | undefined;
39
+ isHost?: boolean | undefined;
40
+ mode: import("../../Type").GuardMode;
41
+ clickCloseable: boolean;
42
+ escCloseable: boolean;
43
+ userpool?: string | undefined;
44
+ contentCss?: string | undefined;
45
+ target?: string | HTMLElement | undefined;
46
+ __internalRequest__?: boolean | undefined;
47
+ __singleComponent__?: boolean | undefined;
48
+ __unAuthFlow__?: boolean | undefined;
49
+ autoRegister?: boolean | undefined;
50
+ disableResetPwd?: boolean | undefined;
51
+ defaultLoginMethod?: LoginMethods | undefined;
52
+ loginMethods?: LoginMethods[] | undefined;
53
+ passwordLoginMethods?: import("../../Type").PasswordLoginMethods[] | undefined;
54
+ socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
55
+ socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
56
+ enterpriseConnections?: string[] | undefined;
57
+ qrCodeScanOptions?: {
58
+ extIdpConnId?: string | undefined;
59
+ autoExchangeUserInfo?: boolean | undefined;
60
+ size?: {
61
+ height: number;
62
+ width: number;
63
+ } | undefined;
64
+ containerSize?: {
65
+ height: number;
66
+ width: number;
67
+ } | undefined;
68
+ interval?: number | undefined;
69
+ onStart?: ((timer: any) => any) | undefined;
70
+ onResult?: ((data: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeStatus) => any) | undefined;
71
+ onScanned?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo) => any) | undefined;
72
+ onSuccess?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo, ticket: string) => any) | undefined;
73
+ onCancel?: (() => any) | undefined;
74
+ onError?: ((message: string) => any) | undefined;
75
+ onExpired?: (() => any) | undefined;
76
+ onCodeShow?: ((random: string, url: string) => any) | undefined;
77
+ onCodeLoaded?: ((random: string, url: string) => any) | undefined;
78
+ onCodeLoadFailed?: ((message: string) => any) | undefined;
79
+ onCodeDestroyed?: ((random: string) => any) | undefined;
80
+ onRetry?: (() => any) | undefined;
81
+ onMfa?: ((code: number, message: string, data: Record<string, any>) => {}) | undefined;
82
+ tips?: {
83
+ title?: string | undefined;
84
+ scanned?: string | undefined;
85
+ succeed?: string | undefined;
86
+ canceled?: string | undefined;
87
+ expired?: string | undefined;
88
+ retry?: string | undefined;
89
+ failed?: string | undefined;
90
+ middleTitle?: string | undefined;
91
+ referText?: string | undefined;
92
+ } | undefined;
93
+ onAuthFlow?: ((flow: Record<string, any>) => {}) | undefined;
94
+ customData?: {
95
+ [x: string]: any;
96
+ } | undefined;
97
+ context?: {
98
+ [x: string]: any;
99
+ } | undefined;
100
+ withCustomData?: boolean | undefined;
101
+ } | undefined;
102
+ _closeLoopCheckQrcode?: boolean | undefined;
103
+ };
104
+ guardPageConfig: GuardPageConfig;
105
+ } | {
106
+ finallyConfig: undefined;
107
+ guardPageConfig: undefined;
108
+ };
@@ -28,10 +28,6 @@ export declare const parsePhone: (isInternationSms: boolean, fieldValue: string,
28
28
  countryCode: string | undefined;
29
29
  phoneNumber: string;
30
30
  };
31
- export declare enum SocialConnectionEvent {
32
- Message = "message",
33
- Auth = "auth"
34
- }
35
31
  /**
36
32
  *
37
33
  * @param config
@@ -60,7 +60,7 @@ export declare const isMobile: () => RegExpMatchArray | null;
60
60
  export declare const isSpecialBrowser: () => boolean;
61
61
  export declare const assembledAppHost: (identifier: string, host: string) => string;
62
62
  export declare const assembledRequestHost: (requestHostname: string, configHost: string) => string;
63
- export declare enum PasswordStrength {
63
+ export declare const enum PasswordStrength {
64
64
  NoCheck = 0,
65
65
  Low = 1,
66
66
  Middle = 2,
@@ -90,5 +90,3 @@ export declare const getLoginTypePipe: (publicConfig: ApplicationConfig, registe
90
90
  } | undefined;
91
91
  export declare const getPasswordIdentify: (identity: string) => string;
92
92
  export declare const getCurrentLng: () => Lang;
93
- export declare const isDingTalkOrigin: (origin: string) => boolean;
94
- export declare const isWeComOrigin: (event: MessageEvent) => boolean;
@@ -1,4 +1,4 @@
1
- export declare enum LoggerType {
1
+ export declare const enum LoggerType {
2
2
  INFO = "INFO",
3
3
  WARN = "WARN",
4
4
  ERROR = "ERROR"
@@ -1,10 +1,10 @@
1
1
  import { GuardModuleType } from '../../Guard';
2
- export declare enum CodeAction {
2
+ export declare const enum CodeAction {
3
3
  CHANGE_MODULE = "changeModule",
4
4
  RENDER_MESSAGE = "renderMessage",
5
5
  FLOW_END = "flowEnd"
6
6
  }
7
- export declare enum ApiCode {
7
+ export declare const enum ApiCode {
8
8
  IDENTITY_BINDING_ASK = 1641,
9
9
  IDENTITY_BINDING = 1640,
10
10
  APP_MFA = 1636,
@@ -15,6 +15,7 @@ export declare enum ApiCode {
15
15
  FLOW_END = 1600,
16
16
  FIRST_LOGIN_PASSWORD = 1639,
17
17
  FORCED_PASSWORD_RESET = 2058,
18
+ ACCOUNT_MERGE = 10000,
18
19
  UNSAFE_PASSWORD_TIP = 2061,
19
20
  UNSAFE_PASSWORD_RESET = 2071
20
21
  }
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.6-zhihu.0";
1
+ declare const _default: "4.0.7-hep.0";
2
2
  export default _default;
@@ -1,26 +0,0 @@
1
- {
2
- "files": {
3
- "main.css": "/static/css/main.f438f284.chunk.css",
4
- "main.js": "/static/js/main.5735e6f1.chunk.js",
5
- "main.js.map": "/static/js/main.5735e6f1.chunk.js.map",
6
- "runtime-main.js": "/static/js/runtime-main.e75981a3.js",
7
- "runtime-main.js.map": "/static/js/runtime-main.e75981a3.js.map",
8
- "static/css/2.2cdfb9d1.chunk.css": "/static/css/2.2cdfb9d1.chunk.css",
9
- "static/js/2.9a1287ca.chunk.js": "/static/js/2.9a1287ca.chunk.js",
10
- "static/js/2.9a1287ca.chunk.js.map": "/static/js/2.9a1287ca.chunk.js.map",
11
- "static/js/3.d3328d89.chunk.js": "/static/js/3.d3328d89.chunk.js",
12
- "static/js/3.d3328d89.chunk.js.map": "/static/js/3.d3328d89.chunk.js.map",
13
- "index.html": "/index.html",
14
- "static/css/2.2cdfb9d1.chunk.css.map": "/static/css/2.2cdfb9d1.chunk.css.map",
15
- "static/css/main.f438f284.chunk.css.map": "/static/css/main.f438f284.chunk.css.map",
16
- "static/js/2.9a1287ca.chunk.js.LICENSE.txt": "/static/js/2.9a1287ca.chunk.js.LICENSE.txt",
17
- "static/media/loading.3cf0104f.svg": "/static/media/loading.3cf0104f.svg"
18
- },
19
- "entrypoints": [
20
- "static/js/runtime-main.e75981a3.js",
21
- "static/css/2.2cdfb9d1.chunk.css",
22
- "static/js/2.9a1287ca.chunk.js",
23
- "static/css/main.f438f284.chunk.css",
24
- "static/js/main.5735e6f1.chunk.js"
25
- ]
26
- }
package/dist/index.html DELETED
@@ -1 +0,0 @@
1
- <!doctype html><html lang="zh"><head><meta charset="utf-8"/><link rel="icon" href="https://files.authing.co/authing-console/login_logo.svg"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Guard Examples</title><link href="/static/css/2.2cdfb9d1.chunk.css" rel="stylesheet"><link href="/static/css/main.f438f284.chunk.css" rel="stylesheet"></head><body><div id="root"></div><script>!function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);p.length;)p.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"d3328d89"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,r[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this["webpackJsonp@authing/react-ui-components"]=this["webpackJsonp@authing/react-ui-components"]||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var f=c;r()}([])</script><script src="/static/js/2.9a1287ca.chunk.js"></script><script src="/static/js/main.5735e6f1.chunk.js"></script></body></html>