@wellesley/apps 1.0.784 → 1.0.785
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 cl,createElement as Ma,useEffect as Fa,useState as Wr}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{useSelector as Ks}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 cl,createElement as Ma,useEffect as Fa,useState as Wr}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{useSelector as Ks}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.859";import{getRoute as Xs,getEntryAppRoute as Nv,useAppsNavigate as Ov}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.770";import{api as Rv,usePostApiV1UsersMutation as Lv,useGetApiV1AppsByAppIdQuery as Pv}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.844";import{toast as Cc}from"https://cdn.jsdelivr.net/npm/@wellesley/system-toast@1.0.188";import{createAction as ll,createSlice as fl}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.900";import{cn as hr,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 dl,AvatarImage as pl,AvatarFallback as hl,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 Hv,AlertDialogCancel as Kv,AlertDialogAction as Xv,TooltipWrapper as ey}from"https://cdn.jsdelivr.net/npm/@wellesley/ui@1.0.806";import{get as $a,set as Ca,appendErrors as ty,useForm as ry}from"https://cdn.jsdelivr.net/npm/react-hook-form@7.51.0/+esm";import{selectUploadFile as Zc}from"https://cdn.jsdelivr.net/npm/@wellesley/uploads@1.0.729";import{getStore as ny}from"https://cdn.jsdelivr.net/npm/@wellesley/store@1.0.843";import{getErrorByStatusCode as sy}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.693";import{useNavigate as iy,useParams as ay}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";const O1=()=>{const e=Ks(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}),[])}},oi=()=>"object"!=typeof window,gl=()=>vl()?location.hostname:location.hostname.replace(/\w\w\w\.|^/,"."),ml=e=>{const t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),t.toUTCString()},_l=e=>Object.keys(e).reduce(((t,n)=>`${t}${n}${!0===e[n]?"":`=${e[n]}`};`),""),oy=(e,t)=>{const n=oi()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},uy=(e,t)=>{oi()||(document.cookie=_l({[e]:"",path:"/",domain:t||gl(),expires:"Thu, 01 Jan 1970 00:00:01 GMT"}))},cy=["localhost","127.0.0.1","dev.localtest.me","wellesleydev.localtest.me"],vl=()=>cy.includes(location.hostname),ly=(e,t="",n=10,r)=>{oi()||(document.cookie=_l({[e]:t,path:"/",domain:r||gl(),expires:ml(n),...!vl()&&{SameSite:"None",Secure:!0}}))},Vn={set:ly,remove:uy,get:oy,getExpireDate:ml},fy="lastAppFor",yl=(e="global")=>`${fy}:${e}`,dy=({link:e,username:t,groupname:n})=>{const r=yl(n||t||"global");Vn.set(r,e,1/24)},Mc=({username:e,groupname:t})=>{const n=yl(t||e||"global");return Vn.get(n)};var $c,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/>
|