@wellesley/apps 1.0.685 → 1.0.686

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 Sv,{useCallback as yt,forwardRef as ol,createElement as Za,useEffect as Ba,useState as Wr}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 ul,useGetApiV1AccountsProfileQuery as jv,UserAvatar as Iv}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.759";import{getRoute as Ic,getEntryAppRoute as Ev,useAppsNavigate as Cv}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.670";import{useDefaultChannelLink as Tv}from"https://cdn.jsdelivr.net/npm/@wellesley/group@1.0.488";import{authToken as Nv,authSlice as Ov}from"https://cdn.jsdelivr.net/npm/@wellesley/auth@1.0.800";import{api as Rv,usePostApiV1UsersMutation as Lv,useGetApiV1AppsByAppIdQuery as Pv}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.744";import{toast as Ec}from"https://cdn.jsdelivr.net/npm/@wellesley/system-toast@1.0.88";import{cn as pr,Button as Va,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 Fa,Avatar as cl,AvatarImage as ll,AvatarFallback as fl,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.706";import{get as Ma,set as Ea,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.743";import{getErrorByStatusCode as ry}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.593";import{useNavigate as ny,useParams as iy}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";import{createAction as dl,createSlice as hl}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";const y1=()=>{const e=Hi(ul.selectors.selectCurrentUser),t=`@${null==e?void 0:e.username}`,n={$root:"/","$user-post":Ic("/:username/posts/:postId",{username:t}),$user:Ic("/:username/profile/:tab?",{username:t})};return{getMappedRoute:yt((({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}),[])}},as=()=>"object"!=typeof window,pl=()=>_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]}`};`),""),sy=(e,t)=>{const n=as()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},ay=(e,t)=>{as()||(document.cookie=ml({[e]:"",path:"/",domain:t||pl(),expires:"Thu, 01 Jan 1970 00:00:01 GMT"}))},oy=["localhost","127.0.0.1","dev.localtest.me","wellesleydev.localtest.me"],_l=()=>oy.includes(location.hostname),uy=(e,t="",n=10,r)=>{as()||(document.cookie=ml({[e]:t,path:"/",domain:r||pl(),expires:gl(n),...!_l()&&{SameSite:"None",Secure:!0}}))},Vn={set:uy,remove:ay,get:sy,getExpireDate:gl},cy="lastAppFor",vl=(e="global")=>`${cy}:${e}`,ly=({link:e,username:t,groupname:n})=>{const r=vl(n||t||"global");Vn.set(r,e,1/24)},Pc=({username:e,groupname:t})=>{const n=vl(t||e||"global");return Vn.get(n)},fy=({entryPoint:e})=>{const t=Hi(ul.selectors.selectCurrentUser),n=(null==t?void 0:t.username)||void 0;return yt(((t,r)=>Ev({id:t.id,routes:t.manifest.routes,username:n,groupname:r||void 0,entryPoint:e})),[e,n])};var Zc,Gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sn={exports:{}},dy=Sn.exports;
1
+ import Sv,{useCallback as yt,forwardRef as ol,createElement as Za,useEffect as Ba,useState as Wr}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 ul,useGetApiV1AccountsProfileQuery as jv,UserAvatar as Iv}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.760";import{getRoute as Ic,getEntryAppRoute as Ev,useAppsNavigate as Cv}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.671";import{useDefaultChannelLink as Tv}from"https://cdn.jsdelivr.net/npm/@wellesley/group@1.0.489";import{authToken as Nv,authSlice as Ov}from"https://cdn.jsdelivr.net/npm/@wellesley/auth@1.0.801";import{api as Rv,usePostApiV1UsersMutation as Lv,useGetApiV1AppsByAppIdQuery as Pv}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.745";import{toast as Ec}from"https://cdn.jsdelivr.net/npm/@wellesley/system-toast@1.0.89";import{cn as pr,Button as Va,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 Fa,Avatar as cl,AvatarImage as ll,AvatarFallback as fl,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.707";import{get as Ma,set as Ea,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.744";import{getErrorByStatusCode as ry}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.594";import{useNavigate as ny,useParams as iy}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";import{createAction as dl,createSlice as hl}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";const y1=()=>{const e=Hi(ul.selectors.selectCurrentUser),t=`@${null==e?void 0:e.username}`,n={$root:"/","$user-post":Ic("/:username/posts/:postId",{username:t}),$user:Ic("/:username/profile/:tab?",{username:t})};return{getMappedRoute:yt((({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}),[])}},as=()=>"object"!=typeof window,pl=()=>_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]}`};`),""),sy=(e,t)=>{const n=as()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},ay=(e,t)=>{as()||(document.cookie=ml({[e]:"",path:"/",domain:t||pl(),expires:"Thu, 01 Jan 1970 00:00:01 GMT"}))},oy=["localhost","127.0.0.1","dev.localtest.me","wellesleydev.localtest.me"],_l=()=>oy.includes(location.hostname),uy=(e,t="",n=10,r)=>{as()||(document.cookie=ml({[e]:t,path:"/",domain:r||pl(),expires:gl(n),...!_l()&&{SameSite:"None",Secure:!0}}))},Vn={set:uy,remove:ay,get:sy,getExpireDate:gl},cy="lastAppFor",vl=(e="global")=>`${cy}:${e}`,ly=({link:e,username:t,groupname:n})=>{const r=vl(n||t||"global");Vn.set(r,e,1/24)},Pc=({username:e,groupname:t})=>{const n=vl(t||e||"global");return Vn.get(n)},fy=({entryPoint:e})=>{const t=Hi(ul.selectors.selectCurrentUser),n=(null==t?void 0:t.username)||void 0;return yt(((t,r)=>Ev({id:t.id,routes:t.manifest.routes,username:n,groupname:r||void 0,entryPoint:e})),[e,n])};var Zc,Gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sn={exports:{}},dy=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.685",
3
+ "version": "1.0.686",
4
4
  "main": "index.mjs",
5
5
  "license": "UNLICENSED",
6
6
  "files": [