@wellesley/auth 1.0.105 → 1.0.108

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 (2) hide show
  1. package/index.mjs +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{api as zp,handleBasicResponse as ma,useGetApiV1SearchQuery as D5,usePutApiV1AccountsResendEmailByHashMutation as L5,usePostApiV1AccountsAddReasonMutation as M5}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.79";import{createSlice as Ww,createSelector as Ga}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{toast as _E}from"https://cdn.jsdelivr.net/npm/react-toastify@10.0.5/+esm";import{userSlice as Es,UserAvatar as q5}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.38";import*as V from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import mt,{forwardRef as Bi,createElement as ea,useCallback as Dr,useEffect as ft,useState as Vt,useRef as nn,Children as _p,isValidElement as X0,cloneElement as vE,Fragment as F5,useMemo as ka,useLayoutEffect as bE,createContext as _6,useContext as B5}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{useSelector as qt,useDispatch as xa}from"https://cdn.jsdelivr.net/npm/react-redux@9.1.0/+esm";import{useAppsNavigate as Ps,AppsLink as Uc}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.8";import{getStore as $5,rootReducer as U5}from"https://cdn.jsdelivr.net/npm/@wellesley/store@1.0.78";import*as Tg from"https://cdn.jsdelivr.net/npm/@radix-ui/react-tooltip@1.0.7/+esm";import{useSearchParams as V5}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";const jg=()=>"object"!=typeof window,kE=()=>SE()?location.hostname:location.hostname.replace(/\w\w\w\.|^/,"."),wE=e=>{const t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),t.toUTCString()},xE=e=>Object.keys(e).reduce(((t,a)=>`${t}${a}${!0===e[a]?"":`=${e[a]}`};`),""),W5=(e,t)=>{const a=jg()?"":document.cookie,r=`; ${t||a}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},H5=(e,t)=>{jg()||(document.cookie=xE({[e]:"",path:"/",domain:t||kE(),expires:"Thu, 01 Jan 1970 00:00:01 GMT"}))},G5=["localhost","127.0.0.1","dev.localtest.me","wellesleydev.localtest.me"],SE=()=>G5.includes(location.hostname),Y5=(e,t="",a=10,r)=>{jg()||(document.cookie=xE({[e]:t,path:"/",domain:r||kE(),expires:wE(a),...!SE()&&{SameSite:"None",Secure:!0}}))},Rg={set:Y5,remove:H5,get:W5,getExpireDate:wE},Ag="auth_token",v6={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!1,isAuthenticated:!1},vt=Ww({name:"auth",initialState:v6,reducers:{logout:()=>v6,setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload},showAuthBlock:(e,t)=>{e.isAuthBlockVisible=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload,e.isPending=!1}},selectors:{selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectAuthBlockVisible:e=>e.isAuthBlockVisible,selectIsAuthenticated:e=>e.isAuthenticated}});var Ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b6,lp={exports:{}},K5=lp.exports;
1
+ import{api as zp,handleBasicResponse as ma,useGetApiV1SearchQuery as D5,usePutApiV1AccountsResendEmailByHashMutation as L5,usePostApiV1AccountsAddReasonMutation as M5}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.82";import{createSlice as Ww,createSelector as Ga}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{toast as _E}from"https://cdn.jsdelivr.net/npm/react-toastify@10.0.5/+esm";import{userSlice as Es,UserAvatar as q5}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.41";import*as V from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import mt,{forwardRef as Bi,createElement as ea,useCallback as Dr,useEffect as ft,useState as Vt,useRef as nn,Children as _p,isValidElement as X0,cloneElement as vE,Fragment as F5,useMemo as ka,useLayoutEffect as bE,createContext as _6,useContext as B5}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{useSelector as qt,useDispatch as xa}from"https://cdn.jsdelivr.net/npm/react-redux@9.1.0/+esm";import{useAppsNavigate as Ps,AppsLink as Uc}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.11";import{getStore as $5,rootReducer as U5}from"https://cdn.jsdelivr.net/npm/@wellesley/store@1.0.81";import*as Tg from"https://cdn.jsdelivr.net/npm/@radix-ui/react-tooltip@1.0.7/+esm";import{useSearchParams as V5}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";const jg=()=>"object"!=typeof window,kE=()=>SE()?location.hostname:location.hostname.replace(/\w\w\w\.|^/,"."),wE=e=>{const t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),t.toUTCString()},xE=e=>Object.keys(e).reduce(((t,a)=>`${t}${a}${!0===e[a]?"":`=${e[a]}`};`),""),W5=(e,t)=>{const a=jg()?"":document.cookie,r=`; ${t||a}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},H5=(e,t)=>{jg()||(document.cookie=xE({[e]:"",path:"/",domain:t||kE(),expires:"Thu, 01 Jan 1970 00:00:01 GMT"}))},G5=["localhost","127.0.0.1","dev.localtest.me","wellesleydev.localtest.me"],SE=()=>G5.includes(location.hostname),Y5=(e,t="",a=10,r)=>{jg()||(document.cookie=xE({[e]:t,path:"/",domain:r||kE(),expires:wE(a),...!SE()&&{SameSite:"None",Secure:!0}}))},Rg={set:Y5,remove:H5,get:W5,getExpireDate:wE},Ag="auth_token",v6={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!1,isAuthenticated:!1},vt=Ww({name:"auth",initialState:v6,reducers:{logout:()=>v6,setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload},showAuthBlock:(e,t)=>{e.isAuthBlockVisible=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload,e.isPending=!1}},selectors:{selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectAuthBlockVisible:e=>e.isAuthBlockVisible,selectIsAuthenticated:e=>e.isAuthenticated}});var Ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b6,lp={exports:{}},K5=lp.exports;
2
2
  /**
3
3
  * @license
4
4
  * Lodash <https://lodash.com/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wellesley/auth",
3
- "version": "1.0.105",
3
+ "version": "1.0.108",
4
4
  "license": "UNLICENSED",
5
5
  "main": "index.mjs",
6
6
  "files": [