@wellesley/apps 1.0.730 → 1.0.731
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/index.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Sv,{useCallback as nt,forwardRef as ol,createElement as $a,useEffect as os,useState as hr}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{useSelector as Hi}from"https://cdn.jsdelivr.net/npm/react-redux@9.1.0/+esm";import{userSlice as jv,useGetApiV1AccountsProfileQuery as Iv,UserAvatar as Ev}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.
|
|
1
|
+
import Sv,{useCallback as nt,forwardRef as ol,createElement as $a,useEffect as os,useState as hr}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{useSelector as Hi}from"https://cdn.jsdelivr.net/npm/react-redux@9.1.0/+esm";import{userSlice as jv,useGetApiV1AccountsProfileQuery as Iv,UserAvatar as Ev}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.805";import{getRoute as Xi,getEntryAppRoute as Cv,useAppsNavigate as Tv}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.716";import{api as Nv,usePostApiV1UsersMutation as Ov,useGetApiV1AppsByAppIdQuery as Rv}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.790";import{toast as Ec}from"https://cdn.jsdelivr.net/npm/@wellesley/system-toast@1.0.134";import{createAction as ul,createSlice as cl}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{authToken as Lv,authSlice as Pv}from"https://cdn.jsdelivr.net/npm/@wellesley/auth@1.0.846";import{cn as gr,Button as Fa,Dialog as Zv,DialogContent as Mv,Form as $v,FormField as Cc,FormItem as Tc,FormLabel as Nc,FormControl as Oc,Input as Rc,FormMessage as Lc,ButtonLoader as qa,Avatar as ll,AvatarImage as fl,AvatarFallback as dl,Carousel as Dv,CarouselContent as Wv,CarouselItem as Uv,CarouselPrevious as zv,CarouselNext as Bv,AlertDialog as Vv,AlertDialogContent as Fv,AlertDialogHeader as qv,AlertDialogTitle as Gv,AlertDialogDescription as Jv,AlertDialogFooter as Yv,AlertDialogCancel as Qv,AlertDialogAction as Kv,TooltipWrapper as Hv}from"https://cdn.jsdelivr.net/npm/@wellesley/ui@1.0.752";import{get as Da,set as Ta,appendErrors as Xv,useForm as ey}from"https://cdn.jsdelivr.net/npm/react-hook-form@7.51.0/+esm";import{getStore as ty}from"https://cdn.jsdelivr.net/npm/@wellesley/store@1.0.789";import{getErrorByStatusCode as ry}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.639";import{useNavigate as ny,useParams as iy}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";const b1=()=>{const e=Hi(jv.selectors.selectCurrentUser),t=`@${null==e?void 0:e.username}`,n={$root:"/","$user-post":Xi("/:username/posts/:postId",{username:t}),$user:Xi("/:username/profile/:tab?",{username:t})};return{getMappedRoute:nt((({id:e,manifest:{routes:t}})=>{var r;const i=null==(r=t.find((e=>!!e.entryPointFor)))?void 0:r.path,a=`/${e}`;return i&&i.startsWith("$")?n[i]||a:i||a}),[])}},us=()=>"object"!=typeof window,hl=()=>ml()?location.hostname:location.hostname.replace(/\w\w\w\.|^/,"."),pl=e=>{const t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),t.toUTCString()},gl=e=>Object.keys(e).reduce(((t,n)=>`${t}${n}${!0===e[n]?"":`=${e[n]}`};`),""),sy=(e,t)=>{const n=us()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},ay=(e,t)=>{us()||(document.cookie=gl({[e]:"",path:"/",domain:t||hl(),expires:"Thu, 01 Jan 1970 00:00:01 GMT"}))},oy=["localhost","127.0.0.1","dev.localtest.me","wellesleydev.localtest.me"],ml=()=>oy.includes(location.hostname),uy=(e,t="",n=10,r)=>{us()||(document.cookie=gl({[e]:t,path:"/",domain:r||hl(),expires:pl(n),...!ml()&&{SameSite:"None",Secure:!0}}))},Vn={set:uy,remove:ay,get:sy,getExpireDate:pl},cy="lastAppFor",_l=(e="global")=>`${cy}:${e}`,ly=({link:e,username:t,groupname:n})=>{const r=_l(n||t||"global");Vn.set(r,e,1/24)},Pc=({username:e,groupname:t})=>{const n=_l(t||e||"global");return Vn.get(n)};var Zc,Gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sn={exports:{}},fy=Sn.exports;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Lodash <https://lodash.com/>
|