@vef-framework/starter 1.0.89 → 1.0.90

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 (48) hide show
  1. package/es/api.js +1 -1
  2. package/es/app.js +1 -1
  3. package/es/components/index.js +1 -1
  4. package/es/components/vef-access-denied-page/index.js +1 -1
  5. package/es/components/vef-app/index.js +1 -1
  6. package/es/components/vef-dev-assistant/index.js +1 -1
  7. package/es/components/vef-error-page/index.js +1 -1
  8. package/es/components/vef-login-page/index.js +1 -1
  9. package/es/components/vef-not-found-page/index.js +1 -1
  10. package/es/components/vef-router-provider/index.js +1 -1
  11. package/es/constants.js +1 -1
  12. package/es/helper.js +1 -1
  13. package/es/index.js +1 -1
  14. package/es/router.js +1 -1
  15. package/es/routes/access-denied.js +1 -1
  16. package/es/routes/index.js +1 -1
  17. package/es/routes/layout.js +1 -1
  18. package/es/routes/login.js +1 -1
  19. package/es/routes/root.js +1 -1
  20. package/es/store.js +1 -1
  21. package/lib/api.cjs +1 -1
  22. package/lib/app.cjs +1 -1
  23. package/lib/components/index.cjs +1 -1
  24. package/lib/components/vef-access-denied-page/index.cjs +1 -1
  25. package/lib/components/vef-access-denied-page/props.cjs +1 -1
  26. package/lib/components/vef-app/index.cjs +1 -1
  27. package/lib/components/vef-app/props.cjs +1 -1
  28. package/lib/components/vef-dev-assistant/index.cjs +1 -1
  29. package/lib/components/vef-dev-assistant/props.cjs +1 -1
  30. package/lib/components/vef-error-page/index.cjs +1 -1
  31. package/lib/components/vef-error-page/props.cjs +1 -1
  32. package/lib/components/vef-login-page/index.cjs +1 -1
  33. package/lib/components/vef-login-page/props.cjs +1 -1
  34. package/lib/components/vef-not-found-page/index.cjs +1 -1
  35. package/lib/components/vef-not-found-page/props.cjs +1 -1
  36. package/lib/components/vef-router-provider/index.cjs +1 -1
  37. package/lib/components/vef-router-provider/props.cjs +1 -1
  38. package/lib/constants.cjs +1 -1
  39. package/lib/helper.cjs +1 -1
  40. package/lib/index.cjs +1 -1
  41. package/lib/router.cjs +1 -1
  42. package/lib/routes/access-denied.cjs +1 -1
  43. package/lib/routes/index.cjs +1 -1
  44. package/lib/routes/layout.cjs +1 -1
  45. package/lib/routes/login.cjs +1 -1
  46. package/lib/routes/root.cjs +1 -1
  47. package/lib/store.cjs +1 -1
  48. package/package.json +5 -5
package/es/api.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{createApiClient as e}from"@vef-framework/core";import{useAppStore as t}from"./store.js";function createApiClient(r){return e({...r,getAccessToken:()=>t.getState().token?.accessToken})}export{createApiClient};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/app.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{createElement as e}from"react";import{createRoot as t}from"react-dom/client";import"./components/index.js";import r from"./components/vef-app/index.js";function createApp(){const n=t(document.getElementById("root"),{identifierPrefix:"vef-"});return{render:t=>{n.render(e(r,t))},unmount:()=>n.unmount()}}export{createApp};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  export{default as VefAccessDeniedPage}from"./vef-access-denied-page/index.js";export{default as VefApp}from"./vef-app/index.js";export{default as VefDevAssistant}from"./vef-dev-assistant/index.js";export{default as VefErrorPage}from"./vef-error-page/index.js";export{default as VefLoginPage}from"./vef-login-page/index.js";export{default as VefNotFoundPage}from"./vef-not-found-page/index.js";export{default as VefRouterProvider}from"./vef-router-provider/index.js";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";import{useLocation as t,useRouterState as o,useNavigate as r}from"@tanstack/react-router";import{VefAccessDenied as a}from"@vef-framework/components";import{useCallback as m}from"react";import{INDEX_PAGE_PATH as n}from"../../constants.js";function VefAccessDeniedPage(c){const{pathname:i}=t(),{redirect:f}=o(),s=r(),p=m((()=>s({to:n,replace:!0})),[s]);return e(a,{uri:f?._fromLocation?.pathname??i,onNavigateHome:p,...c})}export{VefAccessDeniedPage as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{jsx as r}from"@emotion/react/jsx-runtime";import{VefConfigProvider as e}from"@vef-framework/components";import{StrictMode as o}from"react";import t from"../vef-router-provider/index.js";function VefApp({router:m,...f}){return r(o,{children:r(e,{...f,children:r(t,{router:m})})})}export{VefApp as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,4 +1,4 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{jsxs as e,jsx as t,Fragment as o}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{VefFloatButtonGroup as i,VefFloatButton as n,VefIcon as a,VefLoadingPlaceholder as l}from"@vef-framework/components";import{useKeyPress as s}from"@vef-framework/hooks";import{themeVariables as c,noop as d}from"@vef-framework/shared";import{CompassIcon as f,SendIcon as h}from"lucide-react";import{AnimatePresence as p,motion as u}from"motion/react";import{lazy as m,useState as v,useCallback as k,Suspense as y}from"react";const g=r`
3
3
  position: fixed;
4
4
  bottom: 0;
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{jsx as r}from"@emotion/react/jsx-runtime";import{VefError as e}from"@vef-framework/components";import{useQueryErrorResetBoundary as o}from"@vef-framework/core";import{useEffect as t}from"react";function VefErrorPage({error:m,info:f,reset:n}){const{reset:a}=o();return t((()=>{a()}),[a]),r(e,{componentStack:f?.componentStack,error:m,reset:n})}export{VefErrorPage as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";import{useRouter as t,useNavigate as o,useSearch as r}from"@tanstack/react-router";import{VefLogin as n}from"@vef-framework/components";import{LOGIN_PAGE_ROUTE as a}from"../../constants.js";import{useAppStore as s}from"../../store.js";function VefLoginPage(c){const i=t(),f=o(),{redirect:m}=r({from:a});return e(n,{onLoginSuccess:async({accessToken:e,refreshToken:t})=>{s.setState({isAuthenticated:!0,token:Object.freeze({accessToken:e,refreshToken:t})}),await i.invalidate(),await f({to:m,replace:!0})},...c})}export{VefLoginPage as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{jsx as o}from"@emotion/react/jsx-runtime";import{useNavigate as t,useLocation as r}from"@tanstack/react-router";import{VefNotFound as e}from"@vef-framework/components";import{useCallback as a}from"react";import{INDEX_PAGE_PATH as m}from"../../constants.js";function VefNotFoundPage(){const n=t(),f=a((()=>n({to:m,replace:!0})),[n]),{pathname:i}=r();return o(e,{uri:i,onNavigateHome:f})}export{VefNotFoundPage as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{jsx as r}from"@emotion/react/jsx-runtime";import{RouterProvider as t}from"@tanstack/react-router";import{useApiContext as e}from"@vef-framework/core";import{useMemo as o}from"react";function VefRouterProvider({router:i}){const{fetchAuthenticatedUserApi:c}=e(),f=o((()=>({fetchAuthenticatedUserApi:c})),[c]);return r(t,{context:f,router:i})}export{VefRouterProvider as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/constants.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  const o="/login",c="/_common/login",e="/",n="/_layout",s="/access-denied",d="/_common/access-denied";export{s as ACCESS_DENIED_PAGE_PATH,d as ACCESS_DENIED_PAGE_ROUTE,e as INDEX_PAGE_PATH,n as INDEX_PAGE_ROUTE,o as LOGIN_PAGE_PATH,c as LOGIN_PAGE_ROUTE};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/helper.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{LOGIN_PAGE_PATH as t}from"./constants.js";import{useAppStore as a}from"./store.js";async function handleClientLogout(i,e){await e.invalidateQueries(),a.setState({isAuthenticated:!1},!0),await i.invalidate(),await i.navigate({to:t})}export{handleClientLogout};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/index.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  export{createApiClient}from"./api.js";export{createApp}from"./app.js";import"./components/index.js";export{ACCESS_DENIED_PAGE_PATH,ACCESS_DENIED_PAGE_ROUTE,INDEX_PAGE_PATH,INDEX_PAGE_ROUTE,LOGIN_PAGE_PATH,LOGIN_PAGE_ROUTE}from"./constants.js";export{handleClientLogout}from"./helper.js";export{createRouter}from"./router.js";import"./routes/index.js";export{useAppStore}from"./store.js";export{default as VefAccessDeniedPage}from"./components/vef-access-denied-page/index.js";export{default as VefApp}from"./components/vef-app/index.js";export{default as VefDevAssistant}from"./components/vef-dev-assistant/index.js";export{default as VefErrorPage}from"./components/vef-error-page/index.js";export{default as VefLoginPage}from"./components/vef-login-page/index.js";export{default as VefNotFoundPage}from"./components/vef-not-found-page/index.js";export{default as VefRouterProvider}from"./components/vef-router-provider/index.js";export{createAccessDeniedRouteOptions}from"./routes/access-denied.js";export{createLayoutRouteOptions}from"./routes/layout.js";export{createLoginRouteOptions}from"./routes/login.js";export{createRootRoute}from"./routes/root.js";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/router.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{createRouter as e,createHashHistory as r,createBrowserHistory as t}from"@tanstack/react-router";import{VefText as o,VefLoadingPlaceholder as a}from"@vef-framework/components";import{showErrorNotification as n}from"@vef-framework/shared";import s from"nprogress";import{createElement as l}from"react";const i=6e5;function createRouter({routeTree:c,history:d}){const u=e({routeTree:c,trailingSlash:"never",caseSensitive:!0,history:"hash"===d?r():t(),search:{strict:!0},notFoundMode:"root",defaultPendingComponent:()=>l(a,{size:"large"}),defaultPendingMs:500,defaultPendingMinMs:300,defaultSsr:!1,defaultStructuralSharing:!0,defaultHashScrollIntoView:{behavior:"smooth",block:"start",inline:"center"},defaultPreload:"intent",defaultPreloadDelay:50,defaultPreloadGcTime:i,defaultGcTime:i,defaultOnCatch(e,r){n(e.message||e.name,l(o,{color:"error",children:l("pre",{style:{maxHeight:"480px",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent"},children:e.stack||r.componentStack||"No stack trace available"})}))}});return u.subscribe("onBeforeLoad",(({pathChanged:e})=>e&&s.start())),u.subscribe("onLoad",(()=>s.done())),u}export{createRouter};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import"../components/index.js";import e from"../components/vef-access-denied-page/index.js";function createAccessDeniedRouteOptions(){return{component:e}}export{createAccessDeniedRouteOptions};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  export{createAccessDeniedRouteOptions}from"./access-denied.js";export{createLayoutRouteOptions}from"./layout.js";export{createLoginRouteOptions}from"./login.js";export{createRootRoute}from"./root.js";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";import{useRouter as t,useNavigate as r,useLocation as o,Outlet as a,redirect as n}from"@tanstack/react-router";import{VefIcon as i,VefLayout as s,VefLoadingPlaceholder as m}from"@vef-framework/components";import{useApiContext as c}from"@vef-framework/core";import{buildRouteParentMenusMappings as u}from"@vef-framework/shared";import{HomeIcon as p}from"lucide-react";import{useMemo as l,useCallback as f}from"react";import{INDEX_PAGE_PATH as d,ACCESS_DENIED_PAGE_PATH as h,LOGIN_PAGE_PATH as g}from"../constants.js";import{handleClientLogout as y}from"../helper.js";import{useAppStore as b}from"../store.js";const k={key:d,label:e(i,{children:e(p,{})})};function createLayoutRouteOptions({title:i,logo:p,getUserDescription:d}){return{beforeLoad:({location:e})=>{const{isAuthenticated:t,routeParentMenusMappings:r}=b.getState();if(!t)throw n({to:g,search:{redirect:e.href}});if(r&&!r.has(e.pathname))throw n({to:h,replace:!0})},loader:async({context:e,location:t})=>{const{fetchAuthenticatedUserApi:r}=e,{menus:o,permissions:a,...i}=await r.fetchQuery(),s=Object.freeze(u(o));if(b.setState({user:Object.freeze(i),menus:Object.freeze(o),permissions:Object.freeze(new Set(a)),routeParentMenusMappings:s}),!s.has(t.pathname))throw n({to:h,replace:!0})},pendingComponent:()=>e(m,{size:"large",tip:"系统加载中,请稍后..."}),component:function LayoutComponent(){const n=t(),m=r(),{pathname:u}=o(),[h,g,w]=b((e=>[e.menus,e.user,e.routeParentMenusMappings])),M=w?.get(u)?.[1].map((e=>e.key)),j=l((()=>{const e=w?.get(u);if(!e)return[];const[t,r]=e;return[k,...r.map((e=>({key:e.key,label:e.label,dropdownItems:e.children.filter((e=>"divider"!==e.type)).map((e=>({key:e.key,label:e.label})))}))),{label:t.label}]}),[u,w]),{logoutApi:v,fetchAuthenticatedUserApi:A}=c(),{mutate:O}=v.useMutation(),z=f((async()=>{await O(),await y(n,A)}),[O,n,A]),L=f((e=>{m({to:e})}),[m]);return e(s,{activeMenuKey:u,breadcrumbItems:j,defaultOpenedMenuKeys:M,logo:p,menuItems:h,title:i,userAvatar:g?.avatar,userDescription:d?.(g),userGender:g?.gender,userName:g?.name,onActiveMenuKeyChange:L,onBreadcrumbClick:L,onLogout:z,children:e(a,{})})},staleTime:1/0,gcTime:0,shouldReload:!1}}export{createLayoutRouteOptions};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{jsx as t}from"@emotion/react/jsx-runtime";import{redirect as o}from"@tanstack/react-router";import{z as e}from"@vef-framework/shared";import"../components/index.js";import{INDEX_PAGE_PATH as r}from"../constants.js";import{useAppStore as i}from"../store.js";import n from"../components/vef-login-page/index.js";function createLoginRouteOptions(a){return{validateSearch:e.object({redirect:e.string().optional().default(r).catch(r)}),beforeLoad:({search:t})=>{if(i.getState().isAuthenticated){const{redirect:e}=t;throw o({to:e,replace:!0})}},component:()=>t(n,{...a})}}export{createLoginRouteOptions};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/routes/root.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{jsxs as o,Fragment as e,jsx as t}from"@emotion/react/jsx-runtime";import{createRootRouteWithContext as n,Outlet as r}from"@tanstack/react-router";import"../components/index.js";import m from"../components/vef-not-found-page/index.js";import p from"../components/vef-error-page/index.js";import s from"../components/vef-dev-assistant/index.js";function createRootRoute(){return n()({component:()=>o(e,{children:[t(r,{}),"development"===process.env.NODE_ENV&&t(s,{})]}),errorComponent:p,notFoundComponent:m,ssr:!1})}export{createRootRoute};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/store.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  import{createStore as e}from"@vef-framework/shared";const t=e((()=>({isAuthenticated:!1})),{name:"APP",storage:"session",selector:e=>({isAuthenticated:e.isAuthenticated,token:e.token})});export{t as useAppStore};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/api.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@vef-framework/core"),t=require("./store.cjs");exports.createApiClient=function createApiClient(r){return e.createApiClient({...r,getAccessToken:()=>t.useAppStore.getState().token?.accessToken})};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/app.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("react-dom/client");require("./components/index.cjs");const r=require("./components/vef-app/index.cjs");exports.createApp=function createApp(){const n=t.createRoot(document.getElementById("root"),{identifierPrefix:"vef-"});return{render:t=>{n.render(e.createElement(r.default,t))},unmount:()=>n.unmount()}};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vef-access-denied-page/index.cjs"),r=require("./vef-app/index.cjs"),t=require("./vef-dev-assistant/index.cjs"),s=require("./vef-error-page/index.cjs"),i=require("./vef-login-page/index.cjs"),o=require("./vef-not-found-page/index.cjs"),d=require("./vef-router-provider/index.cjs");exports.VefAccessDeniedPage=e.default,exports.VefApp=r.default,exports.VefDevAssistant=t.default,exports.VefErrorPage=s.default,exports.VefLoginPage=i.default,exports.VefNotFoundPage=o.default,exports.VefRouterProvider=d.default;
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@emotion/react/jsx-runtime"),t=require("@tanstack/react-router"),r=require("@vef-framework/components"),a=require("react"),o=require("../../constants.cjs");exports.default=function VefAccessDeniedPage(s){const{pathname:c}=t.useLocation(),{redirect:n}=t.useRouterState(),u=t.useNavigate(),i=a.useCallback((()=>u({to:o.INDEX_PAGE_PATH,replace:!0})),[u]);return e.jsx(r.VefAccessDenied,{uri:n?._fromLocation?.pathname??c,onNavigateHome:i,...s})};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@emotion/react/jsx-runtime"),r=require("@vef-framework/components"),t=require("react"),o=require("../vef-router-provider/index.cjs");exports.default=function VefApp({router:i,...u}){return e.jsx(t.StrictMode,{children:e.jsx(r.VefConfigProvider,{...u,children:e.jsx(o.default,{router:i})})})};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,4 +1,4 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@emotion/react/jsx-runtime"),t=require("@emotion/react"),o=require("@vef-framework/components"),s=require("@vef-framework/hooks"),r=require("@vef-framework/shared"),i=require("lucide-react"),a=require("motion/react"),n=require("react"),l=t.css`
3
3
  position: fixed;
4
4
  bottom: 0;
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@emotion/react/jsx-runtime"),r=require("@vef-framework/components"),o=require("@vef-framework/core"),t=require("react");exports.default=function VefErrorPage({error:n,info:s,reset:u}){const{reset:c}=o.useQueryErrorResetBoundary();return t.useEffect((()=>{c()}),[c]),e.jsx(r.VefError,{componentStack:s?.componentStack,error:n,reset:u})};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@emotion/react/jsx-runtime"),t=require("@tanstack/react-router"),r=require("@vef-framework/components"),s=require("../../constants.cjs"),o=require("../../store.cjs");exports.default=function VefLoginPage(a){const n=t.useRouter(),c=t.useNavigate(),{redirect:i}=t.useSearch({from:s.LOGIN_PAGE_ROUTE});return e.jsx(r.VefLogin,{onLoginSuccess:async({accessToken:e,refreshToken:t})=>{o.useAppStore.setState({isAuthenticated:!0,token:Object.freeze({accessToken:e,refreshToken:t})}),await n.invalidate(),await c({to:i,replace:!0})},...a})};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@emotion/react/jsx-runtime"),t=require("@tanstack/react-router"),r=require("@vef-framework/components"),o=require("react"),a=require("../../constants.cjs");exports.default=function VefNotFoundPage(){const u=t.useNavigate(),n=o.useCallback((()=>u({to:a.INDEX_PAGE_PATH,replace:!0})),[u]),{pathname:s}=t.useLocation();return e.jsx(r.VefNotFound,{uri:s,onNavigateHome:n})};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@emotion/react/jsx-runtime"),r=require("@tanstack/react-router"),t=require("@vef-framework/core"),o=require("react");exports.default=function VefRouterProvider({router:u}){const{fetchAuthenticatedUserApi:i}=t.useApiContext(),c=o.useMemo((()=>({fetchAuthenticatedUserApi:i})),[i]);return e.jsx(r.RouterProvider,{context:c,router:u})};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/constants.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.ACCESS_DENIED_PAGE_PATH="/access-denied",exports.ACCESS_DENIED_PAGE_ROUTE="/_common/access-denied",exports.INDEX_PAGE_PATH="/",exports.INDEX_PAGE_ROUTE="/_layout",exports.LOGIN_PAGE_PATH="/login",exports.LOGIN_PAGE_ROUTE="/_common/login";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/helper.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./constants.cjs"),e=require("./store.cjs");exports.handleClientLogout=async function handleClientLogout(a,i){await i.invalidateQueries(),e.useAppStore.setState({isAuthenticated:!1},!0),await a.invalidate(),await a.navigate({to:t.LOGIN_PAGE_PATH})};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./api.cjs"),t=require("./app.cjs");require("./components/index.cjs");const r=require("./constants.cjs"),o=require("./helper.cjs"),s=require("./router.cjs");require("./routes/index.cjs");const p=require("./store.cjs"),n=require("./components/vef-access-denied-page/index.cjs"),i=require("./components/vef-app/index.cjs"),c=require("./components/vef-dev-assistant/index.cjs"),u=require("./components/vef-error-page/index.cjs"),a=require("./components/vef-login-page/index.cjs"),E=require("./components/vef-not-found-page/index.cjs"),A=require("./components/vef-router-provider/index.cjs"),d=require("./routes/access-denied.cjs"),x=require("./routes/layout.cjs"),_=require("./routes/login.cjs"),P=require("./routes/root.cjs");exports.createApiClient=e.createApiClient,exports.createApp=t.createApp,exports.ACCESS_DENIED_PAGE_PATH=r.ACCESS_DENIED_PAGE_PATH,exports.ACCESS_DENIED_PAGE_ROUTE=r.ACCESS_DENIED_PAGE_ROUTE,exports.INDEX_PAGE_PATH=r.INDEX_PAGE_PATH,exports.INDEX_PAGE_ROUTE=r.INDEX_PAGE_ROUTE,exports.LOGIN_PAGE_PATH=r.LOGIN_PAGE_PATH,exports.LOGIN_PAGE_ROUTE=r.LOGIN_PAGE_ROUTE,exports.handleClientLogout=o.handleClientLogout,exports.createRouter=s.createRouter,exports.useAppStore=p.useAppStore,exports.VefAccessDeniedPage=n.default,exports.VefApp=i.default,exports.VefDevAssistant=c.default,exports.VefErrorPage=u.default,exports.VefLoginPage=a.default,exports.VefNotFoundPage=E.default,exports.VefRouterProvider=A.default,exports.createAccessDeniedRouteOptions=d.createAccessDeniedRouteOptions,exports.createLayoutRouteOptions=x.createLayoutRouteOptions,exports.createLoginRouteOptions=_.createLoginRouteOptions,exports.createRootRoute=P.createRootRoute;
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/router.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@tanstack/react-router"),r=require("@vef-framework/components"),t=require("@vef-framework/shared"),a=require("nprogress"),o=require("react"),n=6e5;exports.createRouter=function createRouter({routeTree:s,history:i}){const l=e.createRouter({routeTree:s,trailingSlash:"never",caseSensitive:!0,history:"hash"===i?e.createHashHistory():e.createBrowserHistory(),search:{strict:!0},notFoundMode:"root",defaultPendingComponent:()=>o.createElement(r.VefLoadingPlaceholder,{size:"large"}),defaultPendingMs:500,defaultPendingMinMs:300,defaultSsr:!1,defaultStructuralSharing:!0,defaultHashScrollIntoView:{behavior:"smooth",block:"start",inline:"center"},defaultPreload:"intent",defaultPreloadDelay:50,defaultPreloadGcTime:n,defaultGcTime:n,defaultOnCatch(e,a){t.showErrorNotification(e.message||e.name,o.createElement(r.VefText,{color:"error",children:o.createElement("pre",{style:{maxHeight:"480px",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent"},children:e.stack||a.componentStack||"No stack trace available"})}))}});return l.subscribe("onBeforeLoad",(({pathChanged:e})=>e&&a.start())),l.subscribe("onLoad",(()=>a.done())),l};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("../components/index.cjs");const e=require("../components/vef-access-denied-page/index.cjs");exports.createAccessDeniedRouteOptions=function createAccessDeniedRouteOptions(){return{component:e.default}};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./access-denied.cjs"),t=require("./layout.cjs"),o=require("./login.cjs"),r=require("./root.cjs");exports.createAccessDeniedRouteOptions=e.createAccessDeniedRouteOptions,exports.createLayoutRouteOptions=t.createLayoutRouteOptions,exports.createLoginRouteOptions=o.createLoginRouteOptions,exports.createRootRoute=r.createRootRoute;
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@emotion/react/jsx-runtime"),t=require("@tanstack/react-router"),r=require("@vef-framework/components"),o=require("@vef-framework/core"),a=require("@vef-framework/shared"),n=require("lucide-react"),s=require("react"),u=require("../constants.cjs"),i=require("../helper.cjs"),c=require("../store.cjs"),l={key:u.INDEX_PAGE_PATH,label:e.jsx(r.VefIcon,{children:e.jsx(n.HomeIcon,{})})};exports.createLayoutRouteOptions=function createLayoutRouteOptions({title:n,logo:p,getUserDescription:m}){return{beforeLoad:({location:e})=>{const{isAuthenticated:r,routeParentMenusMappings:o}=c.useAppStore.getState();if(!r)throw t.redirect({to:u.LOGIN_PAGE_PATH,search:{redirect:e.href}});if(o&&!o.has(e.pathname))throw t.redirect({to:u.ACCESS_DENIED_PAGE_PATH,replace:!0})},loader:async({context:e,location:r})=>{const{fetchAuthenticatedUserApi:o}=e,{menus:n,permissions:s,...i}=await o.fetchQuery(),l=Object.freeze(a.buildRouteParentMenusMappings(n));if(c.useAppStore.setState({user:Object.freeze(i),menus:Object.freeze(n),permissions:Object.freeze(new Set(s)),routeParentMenusMappings:l}),!l.has(r.pathname))throw t.redirect({to:u.ACCESS_DENIED_PAGE_PATH,replace:!0})},pendingComponent:()=>e.jsx(r.VefLoadingPlaceholder,{size:"large",tip:"系统加载中,请稍后..."}),component:function LayoutComponent(){const a=t.useRouter(),u=t.useNavigate(),{pathname:d}=t.useLocation(),[f,h,g]=c.useAppStore((e=>[e.menus,e.user,e.routeParentMenusMappings])),A=g?.get(d)?.[1].map((e=>e.key)),b=s.useMemo((()=>{const e=g?.get(d);if(!e)return[];const[t,r]=e;return[l,...r.map((e=>({key:e.key,label:e.label,dropdownItems:e.children.filter((e=>"divider"!==e.type)).map((e=>({key:e.key,label:e.label})))}))),{label:t.label}]}),[d,g]),{logoutApi:y,fetchAuthenticatedUserApi:j}=o.useApiContext(),{mutate:M}=y.useMutation(),P=s.useCallback((async()=>{await M(),await i.handleClientLogout(a,j)}),[M,a,j]),k=s.useCallback((e=>{u({to:e})}),[u]);return e.jsx(r.VefLayout,{activeMenuKey:d,breadcrumbItems:b,defaultOpenedMenuKeys:A,logo:p,menuItems:f,title:n,userAvatar:h?.avatar,userDescription:m?.(h),userGender:h?.gender,userName:h?.name,onActiveMenuKeyChange:k,onBreadcrumbClick:k,onLogout:P,children:e.jsx(t.Outlet,{})})},staleTime:1/0,gcTime:0,shouldReload:!1}};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@emotion/react/jsx-runtime"),t=require("@tanstack/react-router"),r=require("@vef-framework/shared");require("../components/index.cjs");const o=require("../constants.cjs"),c=require("../store.cjs"),i=require("../components/vef-login-page/index.cjs");exports.createLoginRouteOptions=function createLoginRouteOptions(n){return{validateSearch:r.z.object({redirect:r.z.string().optional().default(o.INDEX_PAGE_PATH).catch(o.INDEX_PAGE_PATH)}),beforeLoad:({search:e})=>{if(c.useAppStore.getState().isAuthenticated){const{redirect:r}=e;throw t.redirect({to:r,replace:!0})}},component:()=>e.jsx(i.default,{...n})}};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@emotion/react/jsx-runtime"),t=require("@tanstack/react-router");require("../components/index.cjs");const o=require("../components/vef-not-found-page/index.cjs"),n=require("../components/vef-error-page/index.cjs"),r=require("../components/vef-dev-assistant/index.cjs");exports.createRootRoute=function createRootRoute(){return t.createRootRouteWithContext()({component:()=>e.jsxs(e.Fragment,{children:[e.jsx(t.Outlet,{}),"development"===process.env.NODE_ENV&&e.jsx(r.default,{})]}),errorComponent:n.default,notFoundComponent:o.default,ssr:!1})};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/store.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.89, build time: 2025-02-05T13:21:12.746Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.90, build time: 2025-02-05T13:33:50.841Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@vef-framework/shared").createStore((()=>({isAuthenticated:!1})),{name:"APP",storage:"session",selector:e=>({isAuthenticated:e.isAuthenticated,token:e.token})});exports.useAppStore=e;
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vef-framework/starter",
3
3
  "type": "module",
4
- "version": "1.0.89",
4
+ "version": "1.0.90",
5
5
  "private": false,
6
6
  "packageManager": "pnpm@9.15.0",
7
7
  "description": "The starter of the VEF framework",
@@ -41,10 +41,10 @@
41
41
  "use-sync-external-store": "^1.4.0",
42
42
  "@tanstack/react-query-devtools": "5.66.0",
43
43
  "@tanstack/router-devtools": "^1.99.6",
44
- "@vef-framework/components": "1.0.89",
45
- "@vef-framework/core": "1.0.89",
46
- "@vef-framework/hooks": "1.0.89",
47
- "@vef-framework/shared": "1.0.89",
44
+ "@vef-framework/components": "1.0.90",
45
+ "@vef-framework/core": "1.0.90",
46
+ "@vef-framework/hooks": "1.0.90",
47
+ "@vef-framework/shared": "1.0.90",
48
48
  "lucide-react": "0.474.0",
49
49
  "motion": "12.1.0",
50
50
  "nprogress": "^0.2.0"