@authing/guard-shim-react 4.4.0-alpha.19 → 4.4.0-alpha.20

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 (97) hide show
  1. package/dist/guard.min.js +1 -1
  2. package/dist/typings/src/AuthClientProvider/AuthClientProvider.d.ts +1 -0
  3. package/dist/typings/src/AuthClientProvider/context.d.ts +1 -0
  4. package/dist/typings/src/Back/index.d.ts +1 -0
  5. package/dist/typings/src/BindTotp/core/bindSuccess.d.ts +1 -0
  6. package/dist/typings/src/BindTotp/core/securityCode.d.ts +1 -0
  7. package/dist/typings/src/BindTotp/index.d.ts +1 -0
  8. package/dist/typings/src/ChangePassword/core/PasswordNotSafeReset.d.ts +1 -0
  9. package/dist/typings/src/ChangePassword/core/completePassword.d.ts +1 -0
  10. package/dist/typings/src/ChangePassword/core/firstLoginReset.d.ts +1 -0
  11. package/dist/typings/src/ChangePassword/index.d.ts +1 -0
  12. package/dist/typings/src/CompleteInfo/core/completeInfo.d.ts +1 -0
  13. package/dist/typings/src/CompleteInfo/index.d.ts +1 -0
  14. package/dist/typings/src/CopyAbleText/index.d.ts +1 -0
  15. package/dist/typings/src/DownloadAuthenticator/index.d.ts +1 -0
  16. package/dist/typings/src/Error/index.d.ts +1 -0
  17. package/dist/typings/src/ForgetPassword/InputPassword/index.d.ts +1 -0
  18. package/dist/typings/src/ForgetPassword/core/inputIdentify.d.ts +1 -0
  19. package/dist/typings/src/ForgetPassword/core/resetPassword.d.ts +1 -0
  20. package/dist/typings/src/ForgetPassword/index.d.ts +1 -0
  21. package/dist/typings/src/Guard/Guard.d.ts +1 -0
  22. package/dist/typings/src/Guard/config.d.ts +1 -0
  23. package/dist/typings/src/Guard/core/hooks/useGuardView.d.ts +1 -0
  24. package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +2 -2
  25. package/dist/typings/src/Guard/core/index.d.ts +1 -0
  26. package/dist/typings/src/Guard/core/renderContext.d.ts +1 -0
  27. package/dist/typings/src/Guard/core/renderModule.d.ts +1 -0
  28. package/dist/typings/src/GuardButton/GuardButton.d.ts +1 -0
  29. package/dist/typings/src/GuardFace/index.d.ts +1 -0
  30. package/dist/typings/src/GuardSelect/index.d.ts +1 -0
  31. package/dist/typings/src/IconFont/index.d.ts +1 -0
  32. package/dist/typings/src/IdentityBinding/IdentityBinding.d.ts +1 -0
  33. package/dist/typings/src/IdentityBindingAsk/IdentityBindingAsk.d.ts +1 -0
  34. package/dist/typings/src/ImagePro/index.d.ts +1 -0
  35. package/dist/typings/src/InputNumber/index.d.ts +1 -0
  36. package/dist/typings/src/LazyloadImage/index.d.ts +1 -0
  37. package/dist/typings/src/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +1 -0
  38. package/dist/typings/src/Login/core/withAuthingOtpPush/HowBindClient.d.ts +1 -0
  39. package/dist/typings/src/Login/core/withAuthingOtpPush/HowGetAppLoginUrl.d.ts +1 -0
  40. package/dist/typings/src/Login/core/withAuthingOtpPush/HowUsePushLogin.d.ts +1 -0
  41. package/dist/typings/src/Login/core/withAuthingOtpPush/PendingLogin.d.ts +1 -0
  42. package/dist/typings/src/Login/core/withAuthingOtpPush/PushLoginGuideModal.d.ts +1 -0
  43. package/dist/typings/src/Login/core/withAuthingOtpPush/PushLoginGuideSelector.d.ts +1 -0
  44. package/dist/typings/src/Login/core/withAuthingOtpPush/index.d.ts +1 -0
  45. package/dist/typings/src/Login/core/withPassword/FormItemAccount.d.ts +1 -0
  46. package/dist/typings/src/Login/core/withPassword/GraphicVerifyCode.d.ts +1 -0
  47. package/dist/typings/src/Login/core/withPassword/InputAccount.d.ts +1 -0
  48. package/dist/typings/src/Login/core/withVerifyCode/FormItemIdentify.d.ts +1 -0
  49. package/dist/typings/src/Login/core/withVerifyCode/InputInternationPhone.d.ts +1 -0
  50. package/dist/typings/src/Login/core/withVerifyCode/VirtualDropdown.d.ts +1 -0
  51. package/dist/typings/src/Login/core/withVerifyCode/inputIdentify.d.ts +1 -0
  52. package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +2 -1
  53. package/dist/typings/src/Login/index.d.ts +1 -0
  54. package/dist/typings/src/Login/multipleAccounts/index.d.ts +1 -0
  55. package/dist/typings/src/Login/multipleAccounts/panel.d.ts +1 -0
  56. package/dist/typings/src/Login/resetAccountName/index.d.ts +1 -0
  57. package/dist/typings/src/Login/socialLogin/index.d.ts +1 -0
  58. package/dist/typings/src/MFA/VerifyCodeInput/VerifyCodeFormItem.d.ts +1 -0
  59. package/dist/typings/src/MFA/VerifyCodeInput/index.d.ts +1 -0
  60. package/dist/typings/src/MFA/context.d.ts +1 -0
  61. package/dist/typings/src/MFA/core/email.d.ts +1 -0
  62. package/dist/typings/src/MFA/core/sms.d.ts +1 -0
  63. package/dist/typings/src/MFA/core/totp.d.ts +1 -0
  64. package/dist/typings/src/MFA/index.d.ts +1 -0
  65. package/dist/typings/src/MFA/mfaMethods/index.d.ts +1 -0
  66. package/dist/typings/src/NewSubmitSuccess/index.d.ts +1 -0
  67. package/dist/typings/src/Qrcode/UiQrCode.d.ts +1 -0
  68. package/dist/typings/src/Qrcode/WorkQrCode.d.ts +1 -0
  69. package/dist/typings/src/Qrcode/hooks/usePostQrCode.d.ts +1 -0
  70. package/dist/typings/src/RecoveryCode/core/saveCode.d.ts +1 -0
  71. package/dist/typings/src/RecoveryCode/core/useCode.d.ts +1 -0
  72. package/dist/typings/src/RecoveryCode/index.d.ts +1 -0
  73. package/dist/typings/src/Register/components/Agreements/index.d.ts +1 -0
  74. package/dist/typings/src/Register/core/WithCode.d.ts +1 -0
  75. package/dist/typings/src/Register/core/WithEmail.d.ts +1 -0
  76. package/dist/typings/src/Register/core/WithEmailCode.d.ts +1 -0
  77. package/dist/typings/src/Register/core/WithPhone.d.ts +1 -0
  78. package/dist/typings/src/Register/index.d.ts +1 -0
  79. package/dist/typings/src/SelfUnlock/index.d.ts +1 -0
  80. package/dist/typings/src/SendCode/SendCodeBtn.d.ts +1 -0
  81. package/dist/typings/src/SendCode/SendCodeByEmail.d.ts +1 -0
  82. package/dist/typings/src/SendCode/SendCodeByPhone.d.ts +1 -0
  83. package/dist/typings/src/SendCode/index.d.ts +1 -0
  84. package/dist/typings/src/SingleComponent/SingleComponent.d.ts +1 -0
  85. package/dist/typings/src/SingleComponent/index.d.ts +1 -0
  86. package/dist/typings/src/SubmitButton/index.d.ts +1 -0
  87. package/dist/typings/src/SubmitSuccess/index.d.ts +1 -0
  88. package/dist/typings/src/TenantPortalSelect/interface.d.ts +1 -0
  89. package/dist/typings/src/Type/index.d.ts +1 -0
  90. package/dist/typings/src/UploadImage/index.d.ts +1 -0
  91. package/dist/typings/src/ValidatorRules/PasswordFormItem.d.ts +1 -0
  92. package/dist/typings/src/ValidatorRules/ValidatorFormItem.d.ts +1 -0
  93. package/dist/typings/src/VerifyCodeInput/index.d.ts +1 -0
  94. package/dist/typings/src/_utils/config/index.d.ts +1 -0
  95. package/dist/typings/src/_utils/context.d.ts +2 -1
  96. package/package.json +1 -1
  97. package/dist/typings/shim-react18/index.d.ts +0 -8
package/dist/guard.min.js CHANGED
@@ -19968,7 +19968,7 @@ this.end=function(){
19968
19968
  // return [next]
19969
19969
  // }
19970
19970
  // CONCATENATED MODULE: ./package.json
19971
- const PN=JSON.parse('{"i8":"6.0.0-alpha.17"}');// CONCATENATED MODULE: ./src/_utils/getVersion.ts
19971
+ const PN=JSON.parse('{"i8":"4.4.0-alpha.19"}');// CONCATENATED MODULE: ./src/_utils/getVersion.ts
19972
19972
  function ON(){return PN.i8}// CONCATENATED MODULE: ./src/_utils/flowHandleStorage.ts
19973
19973
  var AN,NN=function(){return AN},IN=function(e){AN=e},jN=function(){return jN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jN.apply(this,arguments)},RN=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},HN=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},FN=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},BN=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},WN=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return RN(void 0,void 0,void 0,(function(){return HN(this,(function(t){switch(t.label){case 0:return[4/*yield*/,fetch.apply(void 0,BN([],FN(e),!1))];case 1:return[2/*return*/,t.sent().json()]}}))}))},zN=function(e){return new Promise((function(t){setTimeout((function(){t({data:{code:-1}}),e()}),1e4)}))};WN.get=function(e,t,n){return void 0===t&&(t={}),RN(void 0,void 0,void 0,(function(){var r,o,i,a,s;return HN(this,(function(u){switch(u.label){case 0:r=jN(jN({},null==n?void 0:n.headers),((s={"Content-Type":"application/json"})[WN.langHeader]=eK(),s)),""!==WN.tenantId&&(r[WN.tenantHeader]=WN.tenantId),u.label=1;case 1:return u.trys.push([1,3,,4]),o=$o().CancelToken,i=o.source(),[4/*yield*/,Promise.race([zN(i.cancel),$o()("".concat(WN.baseUrl).concat(e).concat(ps().stringify(t,{addQueryPrefix:!0})),jN(jN({method:"GET"},n),{withCredentials:!0,headers:r,cancelToken:i.token}))])];case 2:return[2/*return*/,null==(a=u.sent())?void 0:a.data];case 3:return u.sent(),[2/*return*/,Promise.resolve({code:-2})];case 4:return[2/*return*/]}}))}))},WN.post=function(e,t,n){return RN(void 0,void 0,void 0,(function(){var r,o,i,a,s,u;return HN(this,(function(l){switch(l.label){case 0:r=jN(jN({},null==n?void 0:n.headers),((s={"Content-Type":"application/json"})[WN.langHeader]=Yu.language,s)),""!==WN.tenantId&&(r[WN.tenantHeader]=WN.tenantId),l.label=1;case 1:return l.trys.push([1,3,,4]),o=$o().CancelToken,i=o.source(),[4/*yield*/,Promise.race([zN(i.cancel),$o()("".concat(WN.baseUrl).concat(e),{data:t,method:"POST",withCredentials:!0,cancelToken:i.token,headers:jN(jN({"Content-Type":"application/json"},null==n?void 0:n.headers),(u={},u[WN.langHeader]=eK(),u))})])];case 2:return[2/*return*/,null==(a=l.sent())?void 0:a.data];case 3:return l.sent(),[2/*return*/,Promise.resolve({code:-2})];case 4:return[2/*return*/]}}))}))},WN.postForm=function(e,t,n){return RN(void 0,void 0,void 0,(function(){var r,o,i,a;return HN(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),r=$o().CancelToken,o=r.source(),[4/*yield*/,Promise.race([zN(o.cancel),$o()("".concat(WN.baseUrl).concat(e),{method:"POST",data:t,withCredentials:!0,cancelToken:o.token,headers:jN(jN({},null==n?void 0:n.headers),(a={},a[WN.langHeader]=eK(),a))})])];case 1:return[2/*return*/,null==(i=s.sent())?void 0:i.data];case 2:return s.sent(),[2/*return*/,Promise.resolve({code:-2})];case 3:return[2/*return*/]}}))}))},WN.baseUrl="",WN.setBaseUrl=function(e){WN.baseUrl=e.replace(/\/$/,"")};var UN="x-authing-lang";WN.langHeader=UN,WN.tenantHeader="x-authing-app-tenant-idåå",WN.tenantId="",WN.setLangHeader=function(e){WN.langHeader=e||UN},WN.setTenantHeader=function(e){WN.tenantHeader=e||UN},WN.setTenantId=function(e){WN.tenantId=e};// CONCATENATED MODULE: ./src/_utils/guardHttp.ts
19974
19974
  var qN,VN,$N=function(){return $N=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$N.apply(this,arguments)},GN=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},KN=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},JN=ON();!function(e){e.ERROR_CODE="errorCode"}(VN||(VN={}));var QN=/** @class */function(){function e(e){var t=this;this.headers={"x-authing-userpool-id":"","x-authing-app-id":"","x-authing-sdk-version":JN,"x-authing-request-from":"Guard@".concat(JN)},this.responseInterceptorMap=new Map,this.getHeaders=function(){return t.headers},this.get=function(e,n,r){return void 0===n&&(n={}),GN(t,void 0,void 0,(function(){var t;return KN(this,(function(o){switch(o.label){case 0:return[4/*yield*/,WN.get(e,n,$N($N({},r),{headers:$N($N({},this.headers),null==r?void 0:r.headers)}))];case 1:return t=o.sent(),[2/*return*/,this.responseIntercept(t)]}}))}))},this.post=function(e,n,r){return GN(t,void 0,void 0,(function(){var t;return KN(this,(function(o){switch(o.label){case 0:return[4/*yield*/,WN.post(e,n,{headers:$N($N({},this.headers),null==r?void 0:r.headers)})];case 1:return t=o.sent(),[2/*return*/,this.responseIntercept(t)]}}))}))},this.postForm=function(e,n,r){return GN(t,void 0,void 0,(function(){var t;return KN(this,(function(o){switch(o.label){case 0:return[4/*yield*/,WN.postForm(e,n,{headers:$N($N({},this.headers),null==r?void 0:r.headers)})];case 1:return t=o.sent(),[2/*return*/,this.responseIntercept(t)]}}))}))},this.authFlow=function(e,n){return GN(t,void 0,void 0,(function(){var t,r;return KN(this,(function(o){switch(o.label){case 0:return"/interaction/authFlow",t=NN(),[4/*yield*/,WN.post("/interaction/authFlow",{action:e,data:n,flowHandle:t},{headers:$N({},this.headers)})];case 1:return r=o.sent(),[2/*return*/,this.responseIntercept(r)]}}))}))},
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React, ReactNode } from 'shim-react';
2
3
  import { AuthClientContextProps } from './context';
3
4
  export declare const AuthClientProvider: React.FC<AuthClientContextProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AuthenticationClient } from 'authing-js-sdk';
2
3
  import { React } from 'shim-react';
3
4
  export interface AuthClientContextProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export interface BackProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export interface BindSuccessProps {
3
4
  onBind: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export interface SecurityCodeProps {
3
4
  mfaToken: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export declare const GuardBindTotpView: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  interface PasswordNotSafeResetProps {
3
4
  onReset: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const CompletePassword: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  interface FirstLoginResetProps {
3
4
  onReset: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React, ReactNode } from 'shim-react';
2
3
  export declare const GuardChangePassword: React.FC<{
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { CompleteInfoMetaData, CompleteInfoRequest } from '../interface';
3
4
  export interface CompleteInfoProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { CompleteInfoMetaData, CompleteInfoRequest } from './interface';
3
4
  import './styles.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  export interface CopyTextProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export declare const GuardDownloadATView: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export interface ErrorProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { PasswordProps, InputProps } from 'shim-antd/lib/input';
3
4
  export declare const InputPasswordForget: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<React.RefObject<InputProps>>>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  import { VerifyLoginMethods } from '../../Type/application';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare enum InputMethodMap {
3
4
  email = "email-code",
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const GuardForgetPassword: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GuardEvents } from './event';
2
3
  import { GuardAppendConfig, IG2FCProps } from '../Type';
3
4
  import { GuardLocalConfig } from './config';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReactNode } from 'shim-react';
2
3
  import { GuardModuleType } from './module';
3
4
  import { ForgetPasswordConfig } from '../ForgetPassword/interface';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  interface Options {
3
4
  changeTab?: React.Dispatch<any>;
@@ -249,7 +249,7 @@ declare class MultipleAccount {
249
249
  setUserInfo: (user: Omit<User & {
250
250
  id: string;
251
251
  loginAccount?: string | undefined;
252
- }, "way" | "tab" | "phoneCountryCode">) => void;
252
+ }, "phoneCountryCode" | "way" | "tab">) => void;
253
253
  setLoginWayByHttpData: (account: string, data: {
254
254
  username?: string | undefined;
255
255
  phone?: string | undefined;
@@ -292,7 +292,7 @@ declare const useMultipleAccounts: ({ appId, finallyConfig, }: {
292
292
  setUserInfo: (user: Omit<User & {
293
293
  id: string;
294
294
  loginAccount?: string | undefined;
295
- }, "way" | "tab" | "phoneCountryCode">) => void;
295
+ }, "phoneCountryCode" | "way" | "tab">) => void;
296
296
  setLoginWayByHttpData: (account: string, data: {
297
297
  username?: string | undefined;
298
298
  phone?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GuardProps } from '../Guard';
2
3
  import { ModuleState } from '../GuardModule/stateMachine';
3
4
  export interface GuardCoreProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GuardProps } from '../Guard';
2
3
  import { React, ReactNode } from 'shim-react';
3
4
  import { ModuleState } from '../GuardModule/stateMachine';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { GuardProps } from '../Guard';
3
4
  import '../styles.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  import './styles.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AvatarProps } from 'shim-antd/lib/avatar';
2
3
  import { TagProps } from 'shim-antd/lib/tag';
3
4
  import { React } from 'shim-react';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './styles.less';
2
3
  import { AvatarProps } from 'shim-antd/lib/avatar';
3
4
  import { ListItemProps, ListProps } from 'shim-antd/lib/list';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './iconfont';
3
4
  import './style.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export declare const GuardIdentityBindingView: React.FC<{
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export declare const GuardIdentityBindingAskView: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export interface ImageProProps extends React.ImgHTMLAttributes<HTMLImageElement> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  export interface InputNumberProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CSSProperties, ReactNode } from 'shim-react';
2
3
  interface LazyloadImageProps {
3
4
  src: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { OnPushSuccessProps, OnLoginProps } from './types';
3
4
  import { AuthingGuardResponse } from '../../../_utils/http';
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function HowBindClient(): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function HowGetAppLoginUrl(): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function HowUsePushLogin(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './styles.less';
2
3
  interface PendingLoginProps {
3
4
  onCancelLogin: () => void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { PushLoginGudeModalProps } from './types';
2
3
  export declare function PushLoginGudeModal(props: PushLoginGudeModalProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectorOptions, Selector } from './types';
2
3
  interface PushLoginGuideSelectorProps {
3
4
  defaultValue: Selector;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { LoginWithAuthingOtpPushProps } from './types';
2
3
  export declare function LoginWithAuthingOtpPush(props: LoginWithAuthingOtpPushProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormItemProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  export interface FormItemAccountProps extends FormItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  export interface GraphicVerifyCodeProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { InputProps } from 'shim-antd';
3
4
  export interface InputAccountProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormItemProps } from 'shim-antd/lib/form';
2
3
  import { React } from 'shim-react';
3
4
  import { VerifyLoginMethods } from '../../../Type/application';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  export interface InputInternationPhoneProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export interface VirtualDropdownProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  import { VerifyLoginMethods } from '../../../Type/application';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormInstance } from 'shim-antd/lib/form';
2
3
  import { React } from 'shim-react';
3
4
  import { BackFillMultipleState, LoginWay } from '../../Guard/core/hooks/useMultipleAccounts';
@@ -35,7 +36,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
35
36
  setUserInfo: (user: Omit<import("../../Guard/core/hooks/useMultipleAccounts").User & {
36
37
  id: string;
37
38
  loginAccount?: string | undefined;
38
- }, "way" | "tab" | "phoneCountryCode">) => void;
39
+ }, "phoneCountryCode" | "way" | "tab">) => void;
39
40
  setLoginWayByHttpData: (account: string, data: {
40
41
  username?: string | undefined;
41
42
  phone?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export declare const GuardLoginView: React.FC<{
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { LoginWay, StoreInstance } from '../../Guard/core/hooks/useMultipleAccounts';
3
4
  import { GuardModuleType } from '../../Guard';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  interface SelectPanelProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  export declare const ResetAccountName: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  import { GuardLocalConfig } from '../../Guard';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormItemProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  import './style.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  interface MFABackStateContextType {
3
4
  setMfaBackState: React.Dispatch<React.SetStateAction<string>>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { MFAConfig } from '../interface';
3
4
  interface BindMFAEmailProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { GuardMFAInitData, MFAConfig } from '../interface';
3
4
  export interface BindMFASmsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { GuardMFAInitData, MFAConfig } from '../interface';
3
4
  export interface BindMFATotpProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './styles.less';
3
4
  export declare const GuardMFAView: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { MFAType } from '../interface';
3
4
  import './style.less';
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const GuardNewSubmitSuccessView: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './index.less';
3
4
  import { CodeStatusDescriptions } from './WorkQrCode';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { QrCodeResponse } from './hooks/usePostQrCode';
3
4
  import { CodeStatus, UiQrProps } from './UiQrCode';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { AuthingGuardResponse, AuthingResponse } from '../../_utils/http';
3
4
  import { CodeStatus } from '../UiQrCode';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const SaveCode: React.FC<{
3
4
  secret: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { User } from 'authing-js-sdk';
3
4
  export interface UseCodeProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  export declare const RecoveryCode: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  import { Agreement } from '../../../Type/application';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { Agreement, ApplicationConfig } from '../../Type/application';
3
4
  export interface RegisterWithCodeProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { Agreement, ApplicationConfig } from '../../Type/application';
3
4
  export interface RegisterWithEmailProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { Agreement, ApplicationConfig } from '../../Type/application';
3
4
  export interface RegisterWithEmailCodeProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { Agreement, ApplicationConfig } from '../../Type/application';
3
4
  export interface RegisterWithPhoneProps {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const GuardRegisterView: React.FC;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const GuardUnlockView: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  import { ButtonProps } from 'shim-antd';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  import { InputProps } from 'shim-antd';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { SceneType } from 'authing-js-sdk';
3
4
  import './style.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  import { InputProps } from 'shim-antd';
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { GuardModuleType, IG2FCProps } from '..';
2
3
  export declare function SingleComponent<T extends IG2FCProps>(props: T, guardModuleType: GuardModuleType, initData?: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { GuardRegisterProps } from '../Register/interface';
3
4
  export declare const Register: React.FC<GuardRegisterProps>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { ButtonProps } from 'shim-antd';
3
4
  interface SubmitButtonProps extends ButtonProps {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const GuardSubmitSuccessView: React.FC;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AvatarProps } from 'shim-antd';
2
3
  import { AuthenticationClient, IG2Events, User } from '../Type';
3
4
  export interface TenantPortalListType {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
3
4
  import { GuardModuleType } from '../Guard/module';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  export declare const UploadImage: React.FC<{
3
4
  value?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormItemProps } from 'shim-antd';
2
3
  import { React } from 'shim-react';
3
4
  export interface PasswordFormItemProps extends FormItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { ValidatorFormItemProps } from '.';
3
4
  export declare const EmailFormItem: React.FC<ValidatorFormItemProps>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import './style.less';
3
4
  interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React } from 'shim-react';
2
3
  import { GuardLocalConfig } from '../../Guard/config';
3
4
  import { GuardHttp } from '../guardHttp';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { React, ReactNode } from 'shim-react';
2
3
  import { GuardPageConfig, Lang } from '../Type';
3
4
  import { GuardModuleType } from '../Guard/module';
@@ -121,7 +122,7 @@ export declare const useGuardMultipleInstance: () => {
121
122
  setUserInfo: (user: Omit<import("../Guard/core/hooks/useMultipleAccounts").User & {
122
123
  id: string;
123
124
  loginAccount?: string | undefined;
124
- }, "way" | "tab" | "phoneCountryCode">) => void;
125
+ }, "phoneCountryCode" | "way" | "tab">) => void;
125
126
  setLoginWayByHttpData: (account: string, data: {
126
127
  username?: string | undefined;
127
128
  phone?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.4.0-alpha.19",
3
+ "version": "4.4.0-alpha.20",
4
4
  "description": "Guard shim for react 16 / 17, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",
@@ -1,8 +0,0 @@
1
- import React, { ReactNode, CSSProperties, ReactElement, ForwardRefRenderFunction } from 'react';
2
- export interface IRenderer {
3
- container: Element;
4
- element: ReactNode;
5
- }
6
- declare function render(renderer: IRenderer): void;
7
- declare function unmount(container: Element): void;
8
- export { React, ReactNode, CSSProperties, render, unmount, ReactElement, ForwardRefRenderFunction };