@vef-framework/starter 1.0.62 → 1.0.63

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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  import{createApiClient as e}from"@vef-framework/core";import{handleClientLogout as o}from"./helper.js";import{useAppStore as r}from"./store.js";function t({router:t,...n}){return e({...n,getAccessToken:()=>r.getState().token?.accessToken,onUnauthorized(){o(t)},onAccessDenied(){}})}export{t as 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  import{createElement as e}from"react";import{createRoot as t}from"react-dom/client";import"./components/index.js";import{setCurrentFetchAuthenticatedUserApi as r}from"./helper.js";import o from"./components/vef-app/index.js";function n(){const n=t(document.getElementById("root"),{identifierPrefix:"vef-"});return{render:t=>{r(t.fetchAuthenticatedUserApi),n.render(e(o,t))},unmount:()=>n.unmount()}}export{n as 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  import{jsx as t}from"@emotion/react/jsx-runtime";import{useLocation as o,useRouterState as r,useNavigate as e}from"@tanstack/react-router";import{VefAccessDenied as m}from"@vef-framework/components";import{useCallback as a}from"react";import{INDEX_PAGE_PATH as n}from"../../constants.js";function i(i){const{pathname:c}=o(),{redirect:f}=r(),p=e(),s=a((()=>p({to:n,replace:!0})),[p]);return t(m,{uri:f?._fromLocation?.pathname??c,onNavigateHome:s,...i})}export{i 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  import{jsx as r}from"@emotion/react/jsx-runtime";import{VefConfigProvider as o}from"@vef-framework/components";import{StrictMode as e}from"react";import t from"../vef-router-provider/index.js";function m({router:m,...i}){return r(e,{children:r(o,{...i,children:r(t,{router:m})})})}export{m 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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,VefIcon as a,VefFloatButton as n,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 h,SendIcon as f}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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  import{jsx as r}from"@emotion/react/jsx-runtime";import{VefError as o}from"@vef-framework/components";import{useQueryErrorResetBoundary as e}from"@vef-framework/core";import{useEffect as t}from"react";function m({error:m,info:n,reset:f}){const{reset:c}=e();return t((()=>{c()}),[c]),r(o,{componentStack:n?.componentStack,error:m,reset:f})}export{m 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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 s}from"../../constants.js";import{useAppStore as a}from"../../store.js";function c(c){const i=t(),m=o(),{redirect:f}=r({from:s});return e(n,{onLoginSuccess:async({accessToken:e,refreshToken:t})=>{a.setState({isAuthenticated:!0,token:Object.freeze({accessToken:e,refreshToken:t})}),await i.invalidate(),await m({to:f,replace:!0})},...c})}export{c 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  import{jsx as t}from"@emotion/react/jsx-runtime";import{useNavigate as o,useLocation as r}from"@tanstack/react-router";import{VefNotFound as e}from"@vef-framework/components";import{useCallback as m}from"react";import{INDEX_PAGE_PATH as a}from"../../constants.js";function n(){const n=o(),i=m((()=>n({to:a,replace:!0})),[n]),{pathname:c}=r();return t(e,{uri:c,onNavigateHome:i})}export{n 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  import{jsx as t}from"@emotion/react/jsx-runtime";import{RouterProvider as r}from"@tanstack/react-router";import{useApiContext as e}from"@vef-framework/core";import{useMemo as o}from"react";function c({router:c}){const{fetchAuthenticatedUserApi:i}=e(),m=o((()=>({fetchAuthenticatedUserApi:i})),[i]);return t(r,{context:m,router:c})}export{c 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  import{LOGIN_PAGE_PATH as t}from"./constants.js";import{useAppStore as a}from"./store.js";let i=null;function e(t){i=t}async function n(e){await i.invalidateQueries(),a.setState({isAuthenticated:!1},!0),await e.invalidate(),await e.navigate({to:t})}export{n as handleClientLogout,e as setCurrentFetchAuthenticatedUserApi};
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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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{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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  import{createRouter as e,createBrowserHistory as r}from"@tanstack/react-router";import{VefLoadingPlaceholder as t,VefText as o}from"@vef-framework/components";import{showErrorNotification as a}from"@vef-framework/shared";import n from"nprogress";import{createElement as l}from"react";const s=6e5;function i({routeTree:i}){const c=e({routeTree:i,trailingSlash:"never",caseSensitive:!0,history:r(),search:{strict:!0},notFoundMode:"root",defaultPendingComponent:()=>l(t,{size:"large"}),defaultPendingMs:500,defaultPendingMinMs:300,defaultSsr:!1,defaultStructuralSharing:!0,defaultHashScrollIntoView:{behavior:"smooth",block:"start",inline:"center"},defaultPreload:"intent",defaultPreloadDelay:50,defaultPreloadGcTime:s,defaultGcTime:s,defaultOnCatch(e,r){a(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 c.subscribe("onBeforeLoad",(({pathChanged:e})=>e&&n.start())),c.subscribe("onLoad",(()=>n.done())),c}export{i as 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  import"../components/index.js";import e from"../components/vef-access-denied-page/index.js";function n(){return{component:e}}export{n as 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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 n,redirect as a}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 l}from"lucide-react";import{useMemo as p,useCallback as f}from"react";import{INDEX_PAGE_PATH as d,LOGIN_PAGE_PATH as h,ACCESS_DENIED_PAGE_PATH as g}from"../constants.js";import{handleClientLogout as b}from"../helper.js";import{useAppStore as y}from"../store.js";const k={key:d,label:e(i,{children:e(l,{})})};function w({title:i,logo:l,getUserDescription:d}){return{beforeLoad:({location:e})=>{const{isAuthenticated:t,routeParentMenusMappings:r}=y.getState();if(!t)throw a({to:h,search:{redirect:e.href}});if(r&&!r.has(e.pathname))throw a({to:g,replace:!0})},loader:async({context:e,location:t})=>{const{fetchAuthenticatedUserApi:r}=e,{menus:o,permissions:n,...i}=await r.fetchQuery(null),s=Object.freeze(u(o));if(y.setState({user:Object.freeze(i),menus:Object.freeze(o),permissions:Object.freeze(new Set(n)),routeParentMenusMappings:s}),!s.has(t.pathname))throw a({to:g,replace:!0})},pendingComponent:()=>e(m,{size:"large",tip:"系统加载中,请稍后..."}),component:function(){const a=t(),m=r(),{pathname:u}=o(),[h,g,w]=y((e=>[e.menus,e.user,e.routeParentMenusMappings])),M=w?.get(u)?.[1].map((e=>e.key)),j=p((()=>{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}=c(),{mutate:A}=v.useMutation(),z=f((async()=>{await A(null),await b(a)}),[A,a]),O=f((e=>{m({to:e})}),[m]);return e(s,{activeMenuKey:u,breadcrumbItems:j,defaultOpenedMenuKeys:M,logo:l,menuItems:h,title:i,userAvatar:g?.avatar,userDescription:d?.(g),userGender:g?.gender,userName:g?.name,onActiveMenuKeyChange:O,onBreadcrumbClick:O,onLogout:z,children:e(n,{})})},staleTime:1/0,gcTime:0,shouldReload:!1}}export{w as 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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 a(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{a as 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  import{jsxs as o,Fragment as e,jsx as n}from"@emotion/react/jsx-runtime";import{createRootRouteWithContext as r,Outlet as t}from"@tanstack/react-router";import"../components/index.js";import m from"../components/vef-dev-assistant/index.js";import p from"../components/vef-error-page/index.js";import s from"../components/vef-not-found-page/index.js";function i(){return r()({component:()=>o(e,{children:[n(t,{}),"development"===process.env.NODE_ENV&&n(m,{})]}),errorComponent:p,notFoundComponent:s,ssr:!1})}export{i as 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@vef-framework/core"),t=require("./helper.cjs"),r=require("./store.cjs");exports.createApiClient=function({router:o,...n}){return e.createApiClient({...n,getAccessToken:()=>r.useAppStore.getState().token?.accessToken,onUnauthorized(){t.handleClientLogout(o)},onAccessDenied(){}})};
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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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("./helper.cjs"),n=require("./components/vef-app/index.cjs");exports.createApp=function(){const c=t.createRoot(document.getElementById("root"),{identifierPrefix:"vef-"});return{render:t=>{r.setCurrentFetchAuthenticatedUserApi(t.fetchAuthenticatedUserApi),c.render(e.createElement(n.default,t))},unmount:()=>c.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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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(s){const{pathname:u}=t.useLocation(),{redirect:n}=t.useRouterState(),c=t.useNavigate(),i=o.useCallback((()=>c({to:a.INDEX_PAGE_PATH,replace:!0})),[c]);return e.jsx(r.VefAccessDenied,{uri:n?._fromLocation?.pathname??u,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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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({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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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({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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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(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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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(){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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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/core"),o=require("react");exports.default=function({router:u}){const{fetchAuthenticatedUserApi:i}=r.useApiContext(),c=o.useMemo((()=>({fetchAuthenticatedUserApi:i})),[i]);return e.jsx(t.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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./constants.cjs"),e=require("./store.cjs");let i=null;exports.handleClientLogout=async function(a){await i.invalidateQueries(),e.useAppStore.setState({isAuthenticated:!1},!0),await a.invalidate(),await a.navigate({to:t.LOGIN_PAGE_PATH})},exports.setCurrentFetchAuthenticatedUserApi=function(t){i=t};
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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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("./router.cjs");require("./routes/index.cjs");const s=require("./store.cjs"),p=require("./components/vef-access-denied-page/index.cjs"),c=require("./components/vef-app/index.cjs"),i=require("./components/vef-dev-assistant/index.cjs"),n=require("./components/vef-error-page/index.cjs"),u=require("./components/vef-login-page/index.cjs"),a=require("./components/vef-not-found-page/index.cjs"),E=require("./components/vef-router-provider/index.cjs"),A=require("./routes/access-denied.cjs"),x=require("./routes/layout.cjs"),d=require("./routes/login.cjs"),_=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.createRouter=o.createRouter,exports.useAppStore=s.useAppStore,exports.VefAccessDeniedPage=p.default,exports.VefApp=c.default,exports.VefDevAssistant=i.default,exports.VefErrorPage=n.default,exports.VefLoginPage=u.default,exports.VefNotFoundPage=a.default,exports.VefRouterProvider=E.default,exports.createAccessDeniedRouteOptions=A.createAccessDeniedRouteOptions,exports.createLayoutRouteOptions=x.createLayoutRouteOptions,exports.createLoginRouteOptions=d.createLoginRouteOptions,exports.createRootRoute=_.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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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({routeTree:l}){const i=e.createRouter({routeTree:l,trailingSlash:"never",caseSensitive:!0,history: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 i.subscribe("onBeforeLoad",(({pathChanged:e})=>e&&a.start())),i.subscribe("onLoad",(()=>a.done())),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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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(){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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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"),a=require("@vef-framework/core"),o=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({title:n,logo:p,getUserDescription:m}){return{beforeLoad:({location:e})=>{const{isAuthenticated:r,routeParentMenusMappings:a}=c.useAppStore.getState();if(!r)throw t.redirect({to:u.LOGIN_PAGE_PATH,search:{redirect:e.href}});if(a&&!a.has(e.pathname))throw t.redirect({to:u.ACCESS_DENIED_PAGE_PATH,replace:!0})},loader:async({context:e,location:r})=>{const{fetchAuthenticatedUserApi:a}=e,{menus:n,permissions:s,...i}=await a.fetchQuery(null),l=Object.freeze(o.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(){const o=t.useRouter(),u=t.useNavigate(),{pathname:d}=t.useLocation(),[f,h,g]=c.useAppStore((e=>[e.menus,e.user,e.routeParentMenusMappings])),b=g?.get(d)?.[1].map((e=>e.key)),A=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}=a.useApiContext(),{mutate:j}=y.useMutation(),M=s.useCallback((async()=>{await j(null),await i.handleClientLogout(o)}),[j,o]),P=s.useCallback((e=>{u({to:e})}),[u]);return e.jsx(r.VefLayout,{activeMenuKey:d,breadcrumbItems:A,defaultOpenedMenuKeys:b,logo:p,menuItems:f,title:n,userAvatar:h?.avatar,userDescription:m?.(h),userGender:h?.gender,userName:h?.name,onActiveMenuKeyChange:P,onBreadcrumbClick:P,onLogout:M,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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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(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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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-dev-assistant/index.cjs"),n=require("../components/vef-error-page/index.cjs"),r=require("../components/vef-not-found-page/index.cjs");exports.createRootRoute=function(){return t.createRootRouteWithContext()({component:()=>e.jsxs(e.Fragment,{children:[e.jsx(t.Outlet,{}),"development"===process.env.NODE_ENV&&e.jsx(o.default,{})]}),errorComponent:n.default,notFoundComponent:r.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.62, build time: 2025-01-09T07:31:11.452Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:01.608Z, 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.62",
4
+ "version": "1.0.63",
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.62.16",
43
43
  "@tanstack/router-devtools": "1.95.1",
44
- "@vef-framework/components": "1.0.62",
45
- "@vef-framework/core": "1.0.62",
46
- "@vef-framework/hooks": "1.0.62",
47
- "@vef-framework/shared": "1.0.62",
44
+ "@vef-framework/components": "1.0.63",
45
+ "@vef-framework/core": "1.0.63",
46
+ "@vef-framework/hooks": "1.0.63",
47
+ "@vef-framework/shared": "1.0.63",
48
48
  "lucide-react": "0.469.0",
49
49
  "motion": "11.16.0",
50
50
  "nprogress": "^0.2.0"