@authing/react-ui-components 4.0.7-rc.0 → 4.0.7-rc.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.
Files changed (46) hide show
  1. package/lib/index.min.js +1 -1
  2. package/package.json +2 -2
  3. package/types/BindTotp/businessRequest.d.ts +1 -1
  4. package/types/ChangeLanguage/index.d.ts +1 -1
  5. package/types/ChangePassword/businessRequest.d.ts +1 -1
  6. package/types/CompleteInfo/businessRequest.d.ts +1 -1
  7. package/types/Guard/GuardModule/stateMachine.d.ts +1 -1
  8. package/types/Guard/core/renderModule.d.ts +1 -1
  9. package/types/Guard/module.d.ts +1 -1
  10. package/types/IdentityBinding/businessRequest.d.ts +2 -2
  11. package/types/MFA/businessRequest.d.ts +1 -1
  12. package/types/MFA/interface.d.ts +1 -1
  13. package/types/RecoveryCode/businessRequest.d.ts +1 -1
  14. package/types/Type/application.d.ts +6 -5
  15. package/types/Type/index.d.ts +5 -5
  16. package/types/_utils/GuardErrorCode.d.ts +1 -1
  17. package/types/_utils/config/index.d.ts +7 -7
  18. package/types/_utils/hooks/index.d.ts +1 -1
  19. package/types/_utils/index.d.ts +1 -1
  20. package/types/_utils/logger/interface.d.ts +1 -1
  21. package/types/_utils/responseManagement/interface.d.ts +2 -2
  22. package/types/version/version.d.ts +1 -1
  23. package/dist/asset-manifest.json +0 -26
  24. package/dist/index.html +0 -1
  25. package/dist/static/css/2.2cdfb9d1.chunk.css +0 -3
  26. package/dist/static/css/2.2cdfb9d1.chunk.css.map +0 -1
  27. package/dist/static/css/main.f438f284.chunk.css +0 -2
  28. package/dist/static/css/main.f438f284.chunk.css.map +0 -1
  29. package/dist/static/js/2.9a1287ca.chunk.js +0 -3
  30. package/dist/static/js/2.9a1287ca.chunk.js.LICENSE.txt +0 -112
  31. package/dist/static/js/2.9a1287ca.chunk.js.map +0 -1
  32. package/dist/static/js/3.d3328d89.chunk.js +0 -2
  33. package/dist/static/js/3.d3328d89.chunk.js.map +0 -1
  34. package/dist/static/js/main.5735e6f1.chunk.js +0 -2
  35. package/dist/static/js/main.5735e6f1.chunk.js.map +0 -1
  36. package/dist/static/js/runtime-main.e75981a3.js +0 -2
  37. package/dist/static/js/runtime-main.e75981a3.js.map +0 -1
  38. package/dist/static/media/loading.3cf0104f.svg +0 -32
  39. package/types/AccountMerge/UserRadio.d.ts +0 -5
  40. package/types/AccountMerge/index.d.ts +0 -3
  41. package/types/AccountMerge/interface.d.ts +0 -27
  42. package/types/AccountMerge/utils.d.ts +0 -3
  43. package/types/CompleteInfo/core/components/TreeSelect.d.ts +0 -11
  44. package/types/Login/core/withLandrayQrcode.d.ts +0 -11
  45. package/types/Login/core/withWeComQrcode.d.ts +0 -2
  46. package/types/_utils/types.d.ts +0 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.0.7-rc.0",
3
+ "version": "4.0.7-rc.10",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "dependencies": {
13
13
  "antd": "^4.8.0",
14
- "authing-js-sdk": "4.23.35",
14
+ "authing-js-sdk": "4.23.36-alpha.1",
15
15
  "classnames": "^2.3.1",
16
16
  "fastclick": "^1.0.6",
17
17
  "global": "^4.4.0",
@@ -1,4 +1,4 @@
1
- export declare enum BindTotpBusinessAction {
1
+ export declare const enum BindTotpBusinessAction {
2
2
  VerifyTotpFirstTime = "verify-totp-first-time",
3
3
  ConfirmTotpRecoveryCode = "confirm-totp-recovery-code"
4
4
  }
@@ -6,5 +6,5 @@ export declare const LngTextMapping: Record<Lang, {
6
6
  }>;
7
7
  export declare const ChangeLanguage: (props: {
8
8
  onLangChange?: ((lang: Lang) => void) | undefined;
9
- langRange?: string[] | undefined;
9
+ langRange?: Lang[] | undefined;
10
10
  }) => JSX.Element | null;
@@ -1,4 +1,4 @@
1
- export declare enum ChangePasswordBusinessAction {
1
+ export declare const enum ChangePasswordBusinessAction {
2
2
  ResetPassword = "reset-password-first-time",
3
3
  FirstLoginReset = "reset-password-forced",
4
4
  ResetPasswordStrengthDetection = "reset-password-strength-detection"
@@ -1,6 +1,6 @@
1
1
  import { User } from 'authing-js-sdk';
2
2
  import { CompleteInfoRequest, RegisterCompleteInfoInitData } from './interface';
3
- export declare enum CompleteInfoAuthFlowAction {
3
+ export declare const enum CompleteInfoAuthFlowAction {
4
4
  Complete = "complete-completion",
5
5
  Skip = "skip-completion"
6
6
  }
@@ -4,7 +4,7 @@ export interface ModuleState {
4
4
  moduleName: GuardModuleType;
5
5
  initData?: any;
6
6
  }
7
- export declare enum ActionType {
7
+ export declare const enum ActionType {
8
8
  ChangeModule = "ChangeModule",
9
9
  Back = "Back",
10
10
  Init = "Init"
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { GuardProps } from '..';
3
3
  import '../styles.less';
4
- export declare enum LangMAP {
4
+ export declare const enum LangMAP {
5
5
  zhCn = "zh-CN",
6
6
  enUs = "en-US",
7
7
  jaJp = "ja-JP"
@@ -1,4 +1,4 @@
1
- export declare enum GuardModuleType {
1
+ export declare const enum GuardModuleType {
2
2
  ERROR = "error",
3
3
  LOGIN = "login",
4
4
  REGISTER = "register",
@@ -1,4 +1,4 @@
1
- export declare enum IdentityBindingBusinessAction {
1
+ export declare const enum IdentityBindingBusinessAction {
2
2
  PhoneCode = "phone-code",
3
3
  EmailCode = "emial-code",
4
4
  Password = "password"
@@ -17,7 +17,7 @@ export interface PasswordParams {
17
17
  password: string;
18
18
  captchaCode: string;
19
19
  }
20
- export declare enum IdentityBindingAction {
20
+ export declare const enum IdentityBindingAction {
21
21
  CreateUser = "create-federation-account",
22
22
  BindByPassword = "bind-identity-by-password",
23
23
  BindByPhoneCode = "bind-identity-by-phone-code",
@@ -1,4 +1,4 @@
1
- export declare enum MfaBusinessAction {
1
+ export declare const enum MfaBusinessAction {
2
2
  VerifyEmail = "verify-email",
3
3
  VerifySms = "verify-sms",
4
4
  VerifyTotp = "verify-totp",
@@ -7,7 +7,7 @@ export declare const getDefaultMFAConfig: () => MFAConfig;
7
7
  export interface MFAEvents extends IG2Events {
8
8
  onLogin?: (user: User, authClient: AuthenticationClient) => void;
9
9
  }
10
- export declare enum MFAType {
10
+ export declare const enum MFAType {
11
11
  SMS = "SMS",
12
12
  EMAIL = "EMAIL",
13
13
  TOTP = "OTP",
@@ -1,4 +1,4 @@
1
- export declare enum TotpRecoveryCodeBusinessAction {
1
+ export declare const enum TotpRecoveryCodeBusinessAction {
2
2
  RecoveryTotp = "recovery-totp",
3
3
  ConfirmTotpRecoveryCode = "confirm-totp-recovery-code"
4
4
  }
@@ -1,6 +1,7 @@
1
1
  import { Lang } from '..';
2
2
  import { PasswordStrength } from '../_utils';
3
- export declare enum LoginMethods {
3
+ export * from 'authing-js-sdk';
4
+ export declare const enum LoginMethods {
4
5
  LDAP = "ldap",
5
6
  AppQr = "app-qrcode",
6
7
  Password = "password",
@@ -9,11 +10,11 @@ export declare enum LoginMethods {
9
10
  AD = "ad",
10
11
  WechatMpQrcode = "wechatmp-qrcode"
11
12
  }
12
- export declare enum OIDCConnectionMode {
13
+ export declare const enum OIDCConnectionMode {
13
14
  FRONT_CHANNEL = "FRONT_CHANNEL",
14
15
  BACK_CHANNEL = "BACK_CHANNEL"
15
16
  }
16
- export declare enum SocialConnectionProvider {
17
+ export declare const enum SocialConnectionProvider {
17
18
  ALIPAY = "alipay",
18
19
  GOOGLE = "google",
19
20
  WECHATPC = "wechat:pc",
@@ -40,7 +41,7 @@ export declare enum SocialConnectionProvider {
40
41
  QINGCLOUD = "qingcloud",
41
42
  FACEBOOK = "facebook"
42
43
  }
43
- export declare enum Protocol {
44
+ export declare const enum Protocol {
44
45
  AD = "ad",
45
46
  CAS = "cas",
46
47
  LDAP = "ldap",
@@ -97,7 +98,7 @@ export interface SocialConnectionItem {
97
98
  authorizationUrl: string;
98
99
  tooltip: Record<Lang, string>;
99
100
  }
100
- export declare enum RegisterMethods {
101
+ export declare const enum RegisterMethods {
101
102
  Email = "email",
102
103
  Phone = "phone",
103
104
  EmailCode = "emailCode"
@@ -5,7 +5,7 @@ import { ApplicationConfig } from './application';
5
5
  export * from './application';
6
6
  export type { CommonMessage, User };
7
7
  export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW' | 'ja-JP';
8
- export declare enum GuardMode {
8
+ export declare const enum GuardMode {
9
9
  Modal = "modal",
10
10
  Normal = "normal"
11
11
  }
@@ -33,7 +33,7 @@ export interface IG2Config {
33
33
  title?: string;
34
34
  logo?: string;
35
35
  lang?: string;
36
- langRange?: string[];
36
+ langRange?: Lang[];
37
37
  host: string;
38
38
  isHost?: boolean;
39
39
  mode: GuardMode;
@@ -55,11 +55,11 @@ export interface IG2Events {
55
55
  }
56
56
  export declare const getDefaultG2Config: () => IG2Config;
57
57
  export declare const LanguageMap: any;
58
- export declare enum InputMethod {
58
+ export declare const enum InputMethod {
59
59
  EmailCode = "email-code",
60
60
  PhoneCode = "phone-code"
61
61
  }
62
- export declare enum GuardPageSene {
62
+ export declare const enum GuardPageSene {
63
63
  Global = "global"
64
64
  }
65
65
  export interface GuardPageConfig {
@@ -68,7 +68,7 @@ export interface GuardPageConfig {
68
68
  defaultLanguage: Lang | 'browser';
69
69
  };
70
70
  }
71
- export declare enum EmailScene {
71
+ export declare const enum EmailScene {
72
72
  WELCOME_EMAIL = "WELCOME_EMAIL",
73
73
  FIRST_CREATED_USER = "FIRST_CREATED_USER",
74
74
  REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
@@ -1,4 +1,4 @@
1
- export declare enum ErrorCode {
1
+ export declare const enum ErrorCode {
2
2
  OTP_MFA_CODE = 1635,
3
3
  APP_MFA_CODE = 1636,
4
4
  INPUT_CAPTCHACODE = 2000,
@@ -2,7 +2,7 @@
2
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
8
  export declare const getPageConfig: (appId: string) => GuardPageConfig;
@@ -35,7 +35,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
35
35
  title?: string | undefined;
36
36
  logo?: string | undefined;
37
37
  lang?: string | undefined;
38
- langRange?: string[] | undefined;
38
+ langRange?: import("../../Type").Lang[] | undefined;
39
39
  isHost?: boolean | undefined;
40
40
  mode: import("../../Type").GuardMode;
41
41
  clickCloseable: boolean;
@@ -48,8 +48,8 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
48
48
  __unAuthFlow__?: boolean | undefined;
49
49
  autoRegister?: boolean | undefined;
50
50
  disableResetPwd?: boolean | undefined;
51
- defaultLoginMethod?: import("../../Type").LoginMethods | undefined;
52
- loginMethods?: import("../../Type").LoginMethods[] | undefined;
51
+ defaultLoginMethod?: LoginMethods | undefined;
52
+ loginMethods?: LoginMethods[] | undefined;
53
53
  passwordLoginMethods?: import("../../Type").PasswordLoginMethods[] | undefined;
54
54
  socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
55
55
  socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
@@ -67,9 +67,9 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
67
67
  } | undefined;
68
68
  interval?: number | undefined;
69
69
  onStart?: ((timer: any) => any) | undefined;
70
- onResult?: ((data: import("authing-js-sdk").QRCodeStatus) => any) | undefined;
71
- onScanned?: ((userInfo: import("authing-js-sdk").QRCodeUserInfo) => any) | undefined;
72
- onSuccess?: ((userInfo: import("authing-js-sdk").QRCodeUserInfo, ticket: string) => 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
73
  onCancel?: (() => any) | undefined;
74
74
  onError?: ((message: string) => any) | undefined;
75
75
  onExpired?: (() => any) | undefined;
@@ -28,7 +28,7 @@ export declare const parsePhone: (isInternationSms: boolean, fieldValue: string,
28
28
  countryCode: string | undefined;
29
29
  phoneNumber: string;
30
30
  };
31
- export declare enum SocialConnectionEvent {
31
+ export declare const enum SocialConnectionEvent {
32
32
  Message = "message",
33
33
  Auth = "auth"
34
34
  }
@@ -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,
@@ -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,
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.7-rc.0";
1
+ declare const _default: "4.0.7-rc.10";
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>