@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.
- package/dist/guard.min.js +1 -1
- package/dist/typings/src/AuthClientProvider/AuthClientProvider.d.ts +1 -0
- package/dist/typings/src/AuthClientProvider/context.d.ts +1 -0
- package/dist/typings/src/Back/index.d.ts +1 -0
- package/dist/typings/src/BindTotp/core/bindSuccess.d.ts +1 -0
- package/dist/typings/src/BindTotp/core/securityCode.d.ts +1 -0
- package/dist/typings/src/BindTotp/index.d.ts +1 -0
- package/dist/typings/src/ChangePassword/core/PasswordNotSafeReset.d.ts +1 -0
- package/dist/typings/src/ChangePassword/core/completePassword.d.ts +1 -0
- package/dist/typings/src/ChangePassword/core/firstLoginReset.d.ts +1 -0
- package/dist/typings/src/ChangePassword/index.d.ts +1 -0
- package/dist/typings/src/CompleteInfo/core/completeInfo.d.ts +1 -0
- package/dist/typings/src/CompleteInfo/index.d.ts +1 -0
- package/dist/typings/src/CopyAbleText/index.d.ts +1 -0
- package/dist/typings/src/DownloadAuthenticator/index.d.ts +1 -0
- package/dist/typings/src/Error/index.d.ts +1 -0
- package/dist/typings/src/ForgetPassword/InputPassword/index.d.ts +1 -0
- package/dist/typings/src/ForgetPassword/core/inputIdentify.d.ts +1 -0
- package/dist/typings/src/ForgetPassword/core/resetPassword.d.ts +1 -0
- package/dist/typings/src/ForgetPassword/index.d.ts +1 -0
- package/dist/typings/src/Guard/Guard.d.ts +1 -0
- package/dist/typings/src/Guard/config.d.ts +1 -0
- package/dist/typings/src/Guard/core/hooks/useGuardView.d.ts +1 -0
- package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +2 -2
- package/dist/typings/src/Guard/core/index.d.ts +1 -0
- package/dist/typings/src/Guard/core/renderContext.d.ts +1 -0
- package/dist/typings/src/Guard/core/renderModule.d.ts +1 -0
- package/dist/typings/src/GuardButton/GuardButton.d.ts +1 -0
- package/dist/typings/src/GuardFace/index.d.ts +1 -0
- package/dist/typings/src/GuardSelect/index.d.ts +1 -0
- package/dist/typings/src/IconFont/index.d.ts +1 -0
- package/dist/typings/src/IdentityBinding/IdentityBinding.d.ts +1 -0
- package/dist/typings/src/IdentityBindingAsk/IdentityBindingAsk.d.ts +1 -0
- package/dist/typings/src/ImagePro/index.d.ts +1 -0
- package/dist/typings/src/InputNumber/index.d.ts +1 -0
- package/dist/typings/src/LazyloadImage/index.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/HowBindClient.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/HowGetAppLoginUrl.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/HowUsePushLogin.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/PendingLogin.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/PushLoginGuideModal.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/PushLoginGuideSelector.d.ts +1 -0
- package/dist/typings/src/Login/core/withAuthingOtpPush/index.d.ts +1 -0
- package/dist/typings/src/Login/core/withPassword/FormItemAccount.d.ts +1 -0
- package/dist/typings/src/Login/core/withPassword/GraphicVerifyCode.d.ts +1 -0
- package/dist/typings/src/Login/core/withPassword/InputAccount.d.ts +1 -0
- package/dist/typings/src/Login/core/withVerifyCode/FormItemIdentify.d.ts +1 -0
- package/dist/typings/src/Login/core/withVerifyCode/InputInternationPhone.d.ts +1 -0
- package/dist/typings/src/Login/core/withVerifyCode/VirtualDropdown.d.ts +1 -0
- package/dist/typings/src/Login/core/withVerifyCode/inputIdentify.d.ts +1 -0
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +2 -1
- package/dist/typings/src/Login/index.d.ts +1 -0
- package/dist/typings/src/Login/multipleAccounts/index.d.ts +1 -0
- package/dist/typings/src/Login/multipleAccounts/panel.d.ts +1 -0
- package/dist/typings/src/Login/resetAccountName/index.d.ts +1 -0
- package/dist/typings/src/Login/socialLogin/index.d.ts +1 -0
- package/dist/typings/src/MFA/VerifyCodeInput/VerifyCodeFormItem.d.ts +1 -0
- package/dist/typings/src/MFA/VerifyCodeInput/index.d.ts +1 -0
- package/dist/typings/src/MFA/context.d.ts +1 -0
- package/dist/typings/src/MFA/core/email.d.ts +1 -0
- package/dist/typings/src/MFA/core/sms.d.ts +1 -0
- package/dist/typings/src/MFA/core/totp.d.ts +1 -0
- package/dist/typings/src/MFA/index.d.ts +1 -0
- package/dist/typings/src/MFA/mfaMethods/index.d.ts +1 -0
- package/dist/typings/src/NewSubmitSuccess/index.d.ts +1 -0
- package/dist/typings/src/Qrcode/UiQrCode.d.ts +1 -0
- package/dist/typings/src/Qrcode/WorkQrCode.d.ts +1 -0
- package/dist/typings/src/Qrcode/hooks/usePostQrCode.d.ts +1 -0
- package/dist/typings/src/RecoveryCode/core/saveCode.d.ts +1 -0
- package/dist/typings/src/RecoveryCode/core/useCode.d.ts +1 -0
- package/dist/typings/src/RecoveryCode/index.d.ts +1 -0
- package/dist/typings/src/Register/components/Agreements/index.d.ts +1 -0
- package/dist/typings/src/Register/core/WithCode.d.ts +1 -0
- package/dist/typings/src/Register/core/WithEmail.d.ts +1 -0
- package/dist/typings/src/Register/core/WithEmailCode.d.ts +1 -0
- package/dist/typings/src/Register/core/WithPhone.d.ts +1 -0
- package/dist/typings/src/Register/index.d.ts +1 -0
- package/dist/typings/src/SelfUnlock/index.d.ts +1 -0
- package/dist/typings/src/SendCode/SendCodeBtn.d.ts +1 -0
- package/dist/typings/src/SendCode/SendCodeByEmail.d.ts +1 -0
- package/dist/typings/src/SendCode/SendCodeByPhone.d.ts +1 -0
- package/dist/typings/src/SendCode/index.d.ts +1 -0
- package/dist/typings/src/SingleComponent/SingleComponent.d.ts +1 -0
- package/dist/typings/src/SingleComponent/index.d.ts +1 -0
- package/dist/typings/src/SubmitButton/index.d.ts +1 -0
- package/dist/typings/src/SubmitSuccess/index.d.ts +1 -0
- package/dist/typings/src/TenantPortalSelect/interface.d.ts +1 -0
- package/dist/typings/src/Type/index.d.ts +1 -0
- package/dist/typings/src/UploadImage/index.d.ts +1 -0
- package/dist/typings/src/ValidatorRules/PasswordFormItem.d.ts +1 -0
- package/dist/typings/src/ValidatorRules/ValidatorFormItem.d.ts +1 -0
- package/dist/typings/src/VerifyCodeInput/index.d.ts +1 -0
- package/dist/typings/src/_utils/config/index.d.ts +1 -0
- package/dist/typings/src/_utils/context.d.ts +2 -1
- package/package.json +1 -1
- 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":"
|
|
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 } 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>>>;
|
|
@@ -249,7 +249,7 @@ declare class MultipleAccount {
|
|
|
249
249
|
setUserInfo: (user: Omit<User & {
|
|
250
250
|
id: string;
|
|
251
251
|
loginAccount?: string | undefined;
|
|
252
|
-
}, "
|
|
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
|
-
}, "
|
|
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 { 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
|
-
}, "
|
|
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, 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
|
-
}, "
|
|
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,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 };
|