@wellesley/apps 1.0.739 → 1.0.741

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 $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 Ev,useGetApiV1AccountsProfileQuery as Cv,UserAvatar as Tv}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.813";import{getRoute as Xi,getEntryAppRoute as Nv,useAppsNavigate as Ov}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.724";import{api as Rv,usePostApiV1UsersMutation as Lv,useGetApiV1AppsByAppIdQuery as Pv}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.798";import{toast as Ec}from"https://cdn.jsdelivr.net/npm/@wellesley/system-toast@1.0.142";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.854";import{cn as gr,Button as Fa,Dialog as $v,DialogContent as Dv,Form as Wv,FormField as Cc,FormItem as Tc,FormLabel as Nc,FormControl as Oc,Input as Rc,FormMessage as Lc,ButtonLoader as qa,Avatar as fl,AvatarImage as dl,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 Kv,AlertDialogCancel as Hv,AlertDialogAction as Xv,TooltipWrapper as ey}from"https://cdn.jsdelivr.net/npm/@wellesley/ui@1.0.760";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.797";import{getErrorByStatusCode as iy}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.647";import{useNavigate as sy,useParams as ay}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";const j1=()=>{const e=Hi(Ev.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,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]}`};`),""),oy=(e,t)=>{const n=us()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},uy=(e,t)=>{us()||(document.cookie=ml({[e]:"",path:"/",domain:t||pl(),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)=>{us()||(document.cookie=ml({[e]:t,path:"/",domain:r||pl(),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)},Pc=({username:e,groupname:t})=>{const n=vl(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:{}},hy=Sn.exports;
1
+ import Iv,{useCallback as nt,forwardRef as ul,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 Ev,useGetApiV1AccountsProfileQuery as Cv,UserAvatar as Tv}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.815";import{getRoute as Xi,getEntryAppRoute as Nv,useAppsNavigate as Ov}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.726";import{api as Rv,usePostApiV1UsersMutation as Lv,useGetApiV1AppsByAppIdQuery as Pv}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.800";import{toast as Ec}from"https://cdn.jsdelivr.net/npm/@wellesley/system-toast@1.0.144";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.856";import{cn as gr,Button as Fa,Dialog as $v,DialogContent as Dv,Form as Wv,FormField as Cc,FormItem as Tc,FormLabel as Nc,FormControl as Oc,Input as Rc,FormMessage as Lc,ButtonLoader as qa,Avatar as fl,AvatarImage as dl,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 Kv,AlertDialogCancel as Hv,AlertDialogAction as Xv,TooltipWrapper as ey}from"https://cdn.jsdelivr.net/npm/@wellesley/ui@1.0.762";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.799";import{getErrorByStatusCode as iy}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.649";import{useNavigate as sy,useParams as ay}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";const j1=()=>{const e=Hi(Ev.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,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]}`};`),""),oy=(e,t)=>{const n=us()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},uy=(e,t)=>{us()||(document.cookie=ml({[e]:"",path:"/",domain:t||pl(),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)=>{us()||(document.cookie=ml({[e]:t,path:"/",domain:r||pl(),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)},Pc=({username:e,groupname:t})=>{const n=vl(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:{}},hy=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.739",
3
+ "version": "1.0.741",
4
4
  "main": "index.mjs",
5
5
  "license": "UNLICENSED",
6
6
  "files": [