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