@wellesley/apps 1.0.771 → 1.0.772

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 Iv,{useCallback as nt,forwardRef as ul,createElement as Ma,useEffect as Fa,useState as Wr}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.845";import{getRoute as Xs,getEntryAppRoute as Nv,useAppsNavigate as Ov}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.756";import{api as Rv,usePostApiV1UsersMutation as Lv,useGetApiV1AppsByAppIdQuery as Pv}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.830";import{toast as Cc}from"https://cdn.jsdelivr.net/npm/@wellesley/system-toast@1.0.174";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.886";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 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.792";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{getStore as ny}from"https://cdn.jsdelivr.net/npm/@wellesley/store@1.0.829";import{getErrorByStatusCode as sy}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.679";import{useNavigate as iy,useParams as ay}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";const C1=()=>{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}),[])}},oi=()=>"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=oi()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},uy=(e,t)=>{oi()||(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)=>{oi()||(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;
1
+ import Iv,{useCallback as nt,forwardRef as ul,createElement as Ma,useEffect as Fa,useState as Wr}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.846";import{getRoute as Xs,getEntryAppRoute as Nv,useAppsNavigate as Ov}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.757";import{api as Rv,usePostApiV1UsersMutation as Lv,useGetApiV1AppsByAppIdQuery as Pv}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.831";import{toast as Cc}from"https://cdn.jsdelivr.net/npm/@wellesley/system-toast@1.0.175";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.887";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 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.793";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{getStore as ny}from"https://cdn.jsdelivr.net/npm/@wellesley/store@1.0.830";import{getErrorByStatusCode as sy}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.680";import{useNavigate as iy,useParams as ay}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";const C1=()=>{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}),[])}},oi=()=>"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=oi()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},uy=(e,t)=>{oi()||(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)=>{oi()||(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/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wellesley/apps",
3
- "version": "1.0.771",
3
+ "version": "1.0.772",
4
4
  "main": "index.mjs",
5
5
  "license": "UNLICENSED",
6
6
  "files": [