@authing/guard-shim-react18 6.0.0-alpha.13 → 6.0.0-alpha.14

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 CHANGED
@@ -19540,7 +19540,7 @@ l=l.filter((function(e){return!tI(tI([],eI(h),!1),eI(S),!1).includes(e.provider)
19540
19540
  l=[],s=[]);var E=d&&(!(null==c?void 0:c.ssoPageComponentDisplay.socialLoginBtns)||!l.length)&&(!(null==c?void 0:c.ssoPageComponentDisplay.idpBtns)||!s.length);return[l,s,E]}},pI=(o(34203),Se.createContext(void 0)),mI=Se.useContext,gI=function(e){var t=e.children,n=e.client,r=pI.Provider;return Se.createElement(r,{value:{client:n}},t)},vI=function(){var e=mI(pI);return null==e?void 0:e.client};
19541
19541
  // EXTERNAL MODULE: ./node_modules/moment/locale/zh-cn.js
19542
19542
  // CONCATENATED MODULE: ./package.json
19543
- const yI=JSON.parse('{"i8":"6.0.0-alpha.12"}');// CONCATENATED MODULE: ./src/_utils/getVersion.ts
19543
+ const yI=JSON.parse('{"i8":"6.0.0-alpha.13"}');// CONCATENATED MODULE: ./src/_utils/getVersion.ts
19544
19544
  function _I(){return yI.i8}// CONCATENATED MODULE: ./src/Guard/authClient.ts
19545
19545
  var bI,wI=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},MI=Se.useEffect,kI=Se.useMemo,LI=Se.useState,SI=_I(),CI=function(e,t){var n=t.appId,r=t.tenantId;if(e.options.appId!==n)throw new Error("AuthClientProvider 与 Guard AppId 初始化不同,请检查初始化时传入的 AppId 是否正确");if(r&&e.options.tenantId!==r)throw new Error("AuthClientProvider 与 Guard TenantId 初始化不同,请检查初始化时传入的 TenantId 是否正确");return!0},EI=function(){return function(){if(!bI)throw new Error("Please initialize GuardAuthClient");return bI}()},TI=function(){return TI=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},TI.apply(this,arguments)},DI=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},xI=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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))};
19546
19546
  /**
@@ -20799,6 +20799,6 @@ e.prototype.startWithRedirect=function(e){return void 0===e&&(e={}),tQ(this,void
20799
20799
  /**
20800
20800
  * 获取当前用户信息
20801
20801
  */
20802
- e.prototype.trackSession=function(){return tQ(this,void 0,void 0,(function(){return nQ(this,(function(e){switch(e.label){case 0:return[4/*yield*/,this.getAuthClient()];case 1:return[2/*return*/,e.sent().getCurrentUser()]}}))}))},e.prototype.logout=function(e){return void 0===e&&(e={}),tQ(this,void 0,void 0,(function(){var t,n,r,o,a,i,s,l;return nQ(this,(function(u){switch(u.label){case 0:return t="",n=e.redirectUri,r=e.quitCurrentDevice,[4/*yield*/,this.then()];case 1:o=u.sent().logoutRedirectUris,a=window.location.origin;try{t=n&&o.indexOf(n)>-1?n:o[0]||a}catch(e){t=a}return i="",s=localStorage.getItem("idToken"),[4/*yield*/,this.getAuthClient()];case 2:return l=u.sent(),[4/*yield*/,r?l.logoutCurrent():l.logout()];case 3:return u.sent(),s&&(i=l.buildLogoutUrl({expert:!0,redirectUri:t,idToken:s})),window.location.href=i||t,[2/*return*/]}}))}))},e.prototype._render=function(){var t,n,r,o;return tQ(this,void 0,void 0,(function(){var a,i,s,l=this;return nQ(this,(function(u){switch(u.label){case 0:return a=Object.entries(AI).reduce((function(e,t){var n,r=rQ(t,2),o=r[0],a=r[1];return Object.assign({},e,((n={})[o]=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];
20802
+ e.prototype.trackSession=function(){return tQ(this,void 0,void 0,(function(){var e,t,n,r,o,a,i,s,l;return nQ(this,(function(u){switch(u.label){case 0:return[4/*yield*/,this.getAuthClient()];case 1:return e=u.sent(),(t=e.tokenProvider.getToken())?[4/*yield*/,this.then()]:[2/*return*/,null];case 2:n=u.sent(),r="".concat(this.options.host)||"https://core.authing.cn",o={method:"GET",credentials:"include",headers:{"Content-Type":"application/json","x-authing-userpool-id":n.userPoolId,Authorization:t}},u.label=3;case 3:return u.trys.push([3,6,,7]),[4/*yield*/,fetch("".concat(r,"/api/v2/users/me"),o)];case 4:return[4/*yield*/,u.sent().text()];case 5:return a=u.sent(),i=JSON.parse(a),s=i.code,l=i.data,200===s?[2/*return*/,l]:[2/*return*/,null];case 6:return u.sent(),[2/*return*/,null];case 7:return[2/*return*/]}}))}))},e.prototype.logout=function(e){return void 0===e&&(e={}),tQ(this,void 0,void 0,(function(){var t,n,r,o,a,i,s,l;return nQ(this,(function(u){switch(u.label){case 0:return t="",n=e.redirectUri,r=e.quitCurrentDevice,[4/*yield*/,this.then()];case 1:o=u.sent().logoutRedirectUris,a=window.location.origin;try{t=n&&o.indexOf(n)>-1?n:o[0]||a}catch(e){t=a}return i="",s=localStorage.getItem("idToken"),[4/*yield*/,this.getAuthClient()];case 2:return l=u.sent(),[4/*yield*/,r?l.logoutCurrent():l.logout()];case 3:return u.sent(),s&&(i=l.buildLogoutUrl({expert:!0,redirectUri:t,idToken:s})),window.location.href=i||t,[2/*return*/]}}))}))},e.prototype._render=function(){var t,n,r,o;return tQ(this,void 0,void 0,(function(){var a,i,s,l=this;return nQ(this,(function(u){switch(u.label){case 0:return a=Object.entries(AI).reduce((function(e,t){var n,r=rQ(t,2),o=r[0],a=r[1];return Object.assign({},e,((n={})[o]=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];
20803
20803
  // TODO 返回最后一个执行函数的值,实际应该只让监听一次
20804
20804
  return"close"===a&&l.hide(),null===(e=l.eventListeners[a].map((function(e){return e.apply(void 0,oQ([],rQ(t),!1))})).slice(-1)[0])||void 0===e||e},n))}),{}),[4/*yield*/,this.then()];case 1:return i=u.sent(),[4/*yield*/,this.getAuthClient()];case 2:return s=u.sent(),this.options.config&&(this.options.config.host=this.options.host||"https://".concat(i.requestHostname)),c={container:e.getGuardContainer(null===(t=this.options.config)||void 0===t?void 0:t.target),element:Se.createElement(pJ,eQ({},a,{appId:this.options.appId,tenantId:this.options.tenantId,config:eQ(eQ({},this.options.config),{style:null!==(o=null!==(n=this.options.style)&&void 0!==n?n:null===(r=this.options.config)||void 0===r?void 0:r.style)&&void 0!==o?o:{}}),facePlugin:this.options.facePlugin,appendConfig:this.options.appendConfig,visible:this.visible,authClient:s}))},d=c.container,f=c.element,h=(0,Ot/* createRoot */.s)(d),(p=Nt.findIndex((function(e){return e.container===d})))>-1?Nt.splice(p,1,{root:h,container:d}):Nt.push({container:d,root:h}),h.render(f),[2/*return*/]}var c,d,f,h,p}))}))},e.prototype.on=function(e,t){this.eventListeners[e].push(t)},e.prototype.show=function(){this.visible=!0,this._render()},e.prototype.hide=function(){this.visible=!1,this._render()},e.prototype.unmount=function(){var t,n,r,o=e.getGuardContainer(null===(t=this.options.config)||void 0===t?void 0:t.target);o&&(n=o,(r=Nt.find((function(e){return e.container===n})))&&r.root.unmount())},e.prototype.getCurrentView=function(){var e,t;return{currentModule:null===(e=window.$$guard.viewContext)||void 0===e?void 0:e.currentModule,currentTab:null===(t=window.$$guard.viewContext)||void 0===t?void 0:t.currentTab}},e.prototype.changeView=function(e){var t;return tQ(this,void 0,void 0,(function(){var n,r,o;return nQ(this,(function(a){switch(a.label){case 0:return n="",r="","string"==typeof e?(o=e.split(":"),n=o[0],r=o[1]):(n=e.module,r=e.tab),window.$$guard.viewContext&&window.$$guard.viewContext.changeModule?[4/*yield*/,null===(t=window.$$guard.viewContext)||void 0===t?void 0:t.changeModule(n)]:[2/*return*/];case 1:return a.sent(),r?(requestIdleCallback((function(){var e;null===(e=window.$$guard.viewContext)||void 0===e||e.changeTab(r)})),[2/*return*/]):[2/*return*/]}}))}))},e.prototype.getAgreementsContext=function(){return window.$$guard.agreementsContext},e.prototype.checkAllAgreements=function(){var e=this.getAgreementsContext();null==e||e.checkAllAgreements()},e.prototype.unCheckAllAgreements=function(){var e=this.getAgreementsContext();null==e||e.unCheckAllAgreements()},e}()})();var i=a.RyY,s=a.pq3,l=a.mJU,u=a.m4P,c=a.G52,d=a.qKv,f=a.itr,h=a.btN,p=a.ntY,m=a.ph9,g=a.vQ2,v=a.KJ5,y=a.Vu5,_=a.NAz,b=a.BDx,w=a.Waj,M=a.BUF,k=a.vYO,L=a.$qm,S=a.Pd_,C=a.tiu,E=a.w_I,T=a.fMl,D=a.LIr,x=a.YYM,Y=a.ekm,P=a.lhk,O=a.B2n,N=a.Lpu,A=a.Z57,I=a.ws_,j=a.GeF,R=a.bGp,H=a.$fO,F=a.uVD,B=a.NwZ,z=a.l$v,W=a.zxL,U=a.sTE,q=a.tmF,V=a.Co1,$=a.pr1,G=a.ahU,K=a.E9p,J=a.w4o,Q=a.smJ,Z=a.IZ0,X=a.Du$,ee=a.lTb,te=a.XHV,ne=a.rvw,re=a.sto,oe=a.tvS,ae=a.ryf,ie=a.b3w,se=a.jKp,le=a.HMM,ue=a.J9Y,ce=a.VQY,de=a.cQw,fe=a.c5L,he=a.lTK,pe=a.vpZ,me=a.fHP,ge=a.YcH,ve=a.tYW,ye=a.ptM,_e=a.xbR,be=a.z9t,we=a.Oli,Me=a.XMn,ke=a.t19,Le=a.W13,Se=a.Tbq,Ce=a.bt1,Ee=a.gGH,Te=a.ga$,De=a.mY8,xe=a.oS3,Ye=a.EH5,Pe=a.Vx8,Oe=a.b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VUY,zo=a.EZR,Wo=a.yK6,Uo=a.Rnq,qo=a.uv0,Vo=a.GuS;export{i as AccessTokenDocument,s as AddMemberDocument,l as AddNodeDocument,u as AddNodeV2Document,c as AddPolicyAssignmentsDocument,d as AddUserToGroupDocument,f as AddWhitelistDocument,h as AllowDocument,p as ApiCode,m as AppPasswordStrengthLimit,g as ApplicationType,v as ArchivedUsersDocument,y as AssignRoleDocument,_ as AuthClientContext,b as AuthClientProvider,w as AuthenticationClient,M as AuthenticationTokenProvider,k as AuthorizeResourceDocument,L as AuthorizedResourcesDocument,S as AuthorizedTargetsDocument,C as BindEmailDocument,E as BindPhoneDocument,T as ChangeMfaDocument,D as ChangeModuleApiCodeMapping,x as CheckLoginStatusDocument,Y as CheckPasswordStrengthDocument,P as ChildrenNodesDocument,O as CodeAction,N as ConfigEmailTemplateDocument,A as CreateFunctionDocument,I as CreateGroupDocument,j as CreateOrgDocument,R as CreatePolicyDocument,H as CreateRoleDocument,F as CreateUserDocument,B as CreateUserWithCustomDataDocument,z as CreateUserpoolDocument,W as DeleteFunctionDocument,U as DeleteGroupsDocument,q as DeleteNodeDocument,V as DeleteOrgDocument,$ as DeletePoliciesDocument,G as DeletePolicyDocument,K as DeleteRoleDocument,J as DeleteRolesDocument,Q as DeleteUserDocument,Z as DeleteUserpoolDocument,X as DeleteUsersDocument,ee as DisableEmailTemplateDocument,te as DisbalePolicyAssignmentDocument,ne as EmailScene,re as EmailTemplateType,oe as EmailTemplatesDocument,ae as EnableEmailTemplateDocument,ie as EnablePolicyAssignmentDocument,se as ErrorCode,le as FindUserDocument,ue as FindUserWithCustomDataDocument,ce as FunctionDocument,de as FunctionsDocument,fe as GetUserDepartmentsDocument,he as GetUserGroupsDocument,pe as GetUserRolesDocument,me as GroupDocument,ge as GroupWithUsersDocument,ve as GroupWithUsersWithCustomDataDocument,ye as GroupsDocument,_e as Guard,be as GuardComponent,we as GuardEventsCamelToKebabMapping,Me as GuardHttp,ke as GuardMode,Le as GuardModuleType,Se as GuardPageSene,Ce as GuardPropsFilter,Ee as HIDE_SOCIALS,Te as HIDE_SOCIALS_SHOWIN_ENTERPRISE,De as InputMethod,xe as IsActionAllowedDocument,Ye as IsActionDeniedDocument,Pe as IsDomainAvaliableDocument,Oe as IsRootNodeDocument,Ne as IsUserExistsDocument,Ae as LanguageMap,Ie as ListGroupAuthorizedResourcesDocument,je as ListNodeByCodeAuthorizedResourcesDocument,Re as ListNodeByIdAuthorizedResourcesDocument,He as ListRoleAuthorizedResourcesDocument,Fe as ListUserAuthorizedResourcesDocument,Be as Logger,ze as LoginByEmailDocument,We as LoginByPhoneCodeDocument,Ue as LoginByPhonePasswordDocument,qe as LoginBySubAccountDocument,Ve as LoginByUsernameDocument,$e as LoginMethods,Ge as ManagementClient,Ke as ManagementTokenProvider,Je as MoveMembersDocument,Qe as MoveNodeDocument,Ze as MultipleTenant,Xe as NodeByCodeDocument,et as NodeByCodeWithMembersDocument,tt as NodeByIdDocument,nt as NodeByIdWithMembersDocument,rt as OIDCConnectionMode,ot as Operator,at as OrgDocument,it as OrgsDocument,st as PASSWORD_STRENGTH_TEXT_MAP,lt as PasswordSecurityLevel,ut as PasswordStrength,ct as PoliciesDocument,dt as PolicyAssignmentTargetType,ft as PolicyAssignmentsDocument,ht as PolicyDocument,pt as PolicyEffect,mt as PolicyWithAssignmentsDocument,gt as PreviewEmailDocument,vt as Protocol,yt as QiniuUptokenDocument,_t as QueryMfaDocument,bt as RefreshAccessTokenDocument,wt as RefreshTokenDocument,Mt as RefreshUserpoolSecretDocument,kt as RegisterByEmailDocument,Lt as RegisterByPhoneCodeDocument,St as RegisterByUsernameDocument,Ct as RegisterMethods,Et as RegisterSortMethods,Tt as RelayMethodEnum,Dt as RemoveMemberDocument,xt as RemovePolicyAssignmentsDocument,Yt as RemoveUdfDocument,Pt as RemoveUdvDocument,Ot as RemoveUserFromGroupDocument,Nt as RemoveWhitelistDocument,At as ResetPasswordByFirstLoginTokenDocument,It as ResetPasswordByForceResetTokenDocument,jt as ResetPasswordDocument,Rt as ResourceType,Ht as RevokeRoleDocument,Ft as RoleDocument,Bt as RoleWithUsersDocument,zt as RoleWithUsersWithCustomDataDocument,Wt as RolesDocument,Ut as RootNodeDocument,qt as SceneType,Vt as SearchNodesDocument,$t as SearchUserDocument,Gt as SearchUserWithCustomDataDocument,Kt as SendEmailDocument,Jt as SendFirstLoginVerifyEmailDocument,Qt as SetMainDepartmentDocument,Zt as SetUdfDocument,Xt as SetUdfValueBatchDocument,en as SetUdvBatchDocument,tn as SetUdvDocument,nn as SocialConnectionEvent,rn as SocialConnectionProvider,on as SortByEnum,an as SupportedAdminActionEnum,sn as SupportedUserActionEnum,ln as TemplateCodeDocument,un as UdfDataType,cn as UdfDocument,dn as UdfTargetType,fn as UdfValueBatchDocument,hn as UdvDocument,pn as UnbindEmailDocument,mn as UnbindPhoneDocument,gn as UpdateEmailDocument,vn as UpdateFunctionDocument,yn as UpdateGroupDocument,_n as UpdateNodeDocument,bn as UpdatePasswordDocument,wn as UpdatePhoneDocument,Mn as UpdatePolicyDocument,kn as UpdateRoleDocument,Ln as UpdateUserDocument,Sn as UpdateUserpoolDocument,Cn as UserBatchDocument,En as UserBatchWithCustomDataDocument,Tn as UserDocument,Dn as UserStatus,xn as UserWithCustomDataDocument,Yn as UserpoolDocument,Pn as UserpoolTypesDocument,On as UserpoolsDocument,Nn as UsersDocument,An as UsersWithCustomDataDocument,In as VALIDATE_PATTERN,jn as WhitelistDocument,Rn as WhitelistType,Hn as assembledRequestHost,Fn as copyToClipboard,Bn as corsVerification,zn as createGuardXContext,Wn as deepMerge,Un as errorCodeInterceptor,qn as faceErrorMessage,Vn as fallbackLng,$n as fieldRequiredRule,Gn as getAppendConfig,Kn as getCaptchaUrl,Jn as getClassnames,Qn as getCurrentLng,Zn as getDefaultG2Config,Xn as getDefaultGuardLocalConfig,er as getDeviceName,tr as getDocumentNode,nr as getFacePlugin,rr as getFlowHandle,or as getGuardHttp,ar as getHundreds,ir as getI18nLabel,sr as getLogger,lr as getLoginTypePipe,ur as getPageConfig,cr as getPasswordIdentify,dr as getPasswordValidate,fr as getPasswordValidateRules,hr as getPublicConfig,pr as getRequiredRules,mr as getSortLabels,gr as getSortTabs,vr as getSymbolTypeLength,yr as getUserRegisterParams,_r as getVersion,br as guardEventsFilter,wr as guardEventsHijacking,Mr as i18n,kr as initAppendConfig,Lr as initFacePlugin,Sr as initGuardHttp,Cr as initGuardI18n,Er as insertStyles,Tr as isAlipayBrowser,Dr as isBaiduBrowser,xr as isDingtalkBrowser,Yr as isDisabled,Pr as isEdgeBrowser,Or as isLarkBrowser,Nr as isMobile,Ar as isObject,Ir as isQQBrowser,jr as isQQBuiltInBrowser,Rr as isQtWebEngine,Hr as isSpecialBrowser,Fr as isWeChatBrowser,Br as isWeComeBrowser,zr as isWeWorkBuiltInBrowser,Wr as isWeiboBrowser,Ur as isXiaomiBrowser,qr as isoInfo,Vr as mailDesensitization,$r as parsePhone,Gr as phoneDesensitization,Kr as popupCenter,Jr as regexFromString,Qr as removeStyles,Zr as setPageConfig,Xr as setPublicConfig,eo as shoudGoToComplete,to as sleep,no as transformMethod,ro as transformSortMethod,oo as updateFlowHandle,ao as useAppId,io as useAppendConfig,so as useDebounce,lo as useFacePlugin,uo as useFetchConsoleConfig,co as useFlowHandle,fo as useGlobalAuthClient,ho as useGuardAppId,po as useGuardButtonContext,mo as useGuardButtonState,go as useGuardContextLoaded,vo as useGuardCurrentModule,yo as useGuardDefaultLanguage,_o as useGuardDefaultMergedConfig,bo as useGuardEvents,wo as useGuardFinallyConfig,Mo as useGuardHttp,ko as useGuardHttpClient,Lo as useGuardInitData,So as useGuardIsAuthFlow,Co as useGuardModule,Eo as useGuardMultipleInstance,To as useGuardPageConfig,Do as useGuardPhoneRegex,xo as useGuardPublicConfig,Yo as useGuardTenantId,Po as useGuardTenantProvider,Oo as useGuardView,No as useGuardXContext,Ao as useInitAppId,Io as useIsForeignUserpool,jo as useLogger,Ro as useMediaSize,Ho as useMergeDefaultConfig,Fo as useMethod,Bo as useMultipleTenant,zo as usePasswordErrorText,Wo as useRobotVerify,Uo as useShaking,qo as useUpdateFlowHandle,Vo as validate};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "6.0.0-alpha.13",
3
+ "version": "6.0.0-alpha.14",
4
4
  "description": "Guard shim for react 18, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",