@vef-framework-react/core 2.4.1 → 2.4.2

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/dist/cjs/http/client.cjs +1 -1
  2. package/dist/es/api/client.js +1 -1
  3. package/dist/es/api/constants.js +1 -1
  4. package/dist/es/api/helpers.js +1 -1
  5. package/dist/es/api/index.js +1 -1
  6. package/dist/es/auth/helpers.js +1 -1
  7. package/dist/es/auth/index.js +1 -1
  8. package/dist/es/context/api-client.js +1 -1
  9. package/dist/es/context/app.js +1 -1
  10. package/dist/es/context/context-selector.js +1 -1
  11. package/dist/es/context/disabled.js +1 -1
  12. package/dist/es/context/index.js +1 -1
  13. package/dist/es/dnd/index.js +1 -1
  14. package/dist/es/http/client.js +5 -3
  15. package/dist/es/http/constants.js +1 -1
  16. package/dist/es/http/errors.js +1 -1
  17. package/dist/es/http/helpers.js +1 -1
  18. package/dist/es/http/index.js +1 -1
  19. package/dist/es/immer/index.js +1 -1
  20. package/dist/es/index.js +1 -1
  21. package/dist/es/motion/features.js +1 -1
  22. package/dist/es/motion/index.js +1 -1
  23. package/dist/es/motion/motion-provider.js +1 -1
  24. package/dist/es/query/constants.js +1 -1
  25. package/dist/es/query/helpers.js +1 -1
  26. package/dist/es/query/hooks.js +1 -1
  27. package/dist/es/query/index.js +1 -1
  28. package/dist/es/sse/client.js +1 -1
  29. package/dist/es/sse/helpers.js +1 -1
  30. package/dist/es/sse/index.js +1 -1
  31. package/dist/es/sse/stream-machine.js +1 -1
  32. package/dist/es/state/index.js +1 -1
  33. package/dist/es/state-machine/index.js +1 -1
  34. package/dist/es/storage/errors.js +1 -1
  35. package/dist/es/storage/index.js +1 -1
  36. package/dist/es/storage/protocol.js +1 -1
  37. package/dist/es/storage/resumable/fingerprint.js +1 -1
  38. package/dist/es/storage/resumable/index.js +1 -1
  39. package/dist/es/storage/resumable/persistence.js +1 -1
  40. package/dist/es/storage/resumable/plan.js +1 -1
  41. package/dist/es/storage/types.js +1 -1
  42. package/dist/es/storage/uploader-machine.js +1 -1
  43. package/dist/es/storage/uploader.js +1 -1
  44. package/dist/es/store/bound.js +1 -1
  45. package/dist/es/store/index.js +1 -1
  46. package/dist/es/store/unbound.js +1 -1
  47. package/dist/es/store/use-deep.js +1 -1
  48. package/package.json +2 -2
@@ -1 +1 @@
1
- const e=require("../_internal/_rolldown/runtime.cjs"),t=require("./constants.cjs"),n=require("./errors.cjs");let r=require("@vef-framework-react/shared"),i=require("axios");i=e.__toESM(i,1);var a=class{#e;#t;#n=!1;#r=[];constructor(e){this.#t=e;let{baseUrl:n,timeout:a=t.DEFAULT_TIMEOUT}=e;this.#e=i.default.create({baseURL:n,allowAbsoluteUrls:!0,timeout:a,headers:{"Content-Type":`application/json`},paramsSerializer:e=>(0,r.encodeQueryString)(e,{arrayFormat:`repeat`,skipNulls:!0,charset:`utf-8`}),responseType:`json`,responseEncoding:`utf-8`,validateStatus:e=>e>=200&&e<300,withCredentials:!1,timeoutErrorMessage:`请求超时`}),this.initInterceptors()}initInterceptors(){this.#e.interceptors.request.use(this.handleRequest.bind(this),this.handleRequestError.bind(this)),this.#e.interceptors.response.use(this.handleResponse.bind(this),this.handleResponseError.bind(this))}matchesCode(e,t){return(0,r.isArray)(t)?t.includes(e):e===t}async handleRequest(e){let n=e.headers[t.SKIP_AUTH_HEADER]===`1`;if(this.#n&&!n&&!await new Promise(e=>{this.#r.push(e)}))throw Error(`登录已过期, 请重新登录`);return n?delete e.headers[t.SKIP_AUTH_HEADER]:await this.injectAccessToken(e),this.replacePathParams(e),e}handleRequestError(e){let{showErrorMessage:t}=this.#t,n=`发起请求失败: ${(e instanceof Error?e.message:String(e))||`未知错误`}`;return t?t(n):console.error(`[HttpClient] ${n}`),Promise.reject(e)}handleResponse(e){let{showWarningMessage:t,okCode:r=0}=this.#t,{code:i,message:a,data:o}=e.data;if(this.matchesCode(i,r))return e;throw t?t(a):console.warn(`[HttpClient] [${e.config.method}: ${e.config.url}] 返回错误: ${a}`),new n.BusinessError(i,a,o)}async handleResponseError(e){if(e instanceof i.CanceledError){if(e.response){let{method:t,url:n}=e.response.config;console.warn(`[HttpClient] [${t}: ${n}] 被取消`)}return}let{response:t}=e;if(!t)throw this.logError(`请求失败: ${e.message||`未知错误`}`),e;let{status:n,config:r,data:a}=t,{code:o,message:s}=a,c=`[${r.method}: ${r.url}]`;switch(n){case 400:this.logWarning(s,`${c} 参数错误: ${s}`);break;case 401:await this.handleUnauthorized(e,o,c);break;case 403:this.#t.showWarningMessage?.(`${s}, 请联系管理员为您开通`),console.warn(`[HttpClient] ${c} 访问被拒绝: ${s}`),await this.#t.onAccessDenied?.();break;default:this.logError(s,`${c} 返回错误: ${s}`)}throw e}async handleUnauthorized(e,t,n){let{tokenExpiredCode:r=[]}=this.#t;if(!this.matchesCode(t,r)){await this.#t.onUnauthenticated?.();return}if(this.#n)throw e;if(await this.tryRefreshToken())return this.retryRequest(e.response.config);this.logInfo(`登录已过期, 请重新登录`),await this.#t.onUnauthenticated?.()}logInfo(e){this.#t.showInfoMessage?this.#t.showInfoMessage(e):console.info(`[HttpClient] ${e}`)}logWarning(e,t){this.#t.showWarningMessage?this.#t.showWarningMessage(e):console.warn(`[HttpClient] ${t??e}`)}logError(e,t){this.#t.showErrorMessage?this.#t.showErrorMessage(e):console.error(`[HttpClient] ${t??e}`)}async injectAccessToken(e){let{getAuthTokens:t}=this.#t;if(!t)return;let n=await t();n?.accessToken&&(e.headers.Authorization=`Bearer ${n.accessToken}`)}replacePathParams(e){let{url:n,params:i={}}=e;!n||!t.PATH_PARAM_REGEX.test(n)||(t.PATH_PARAM_REGEX.lastIndex=0,e.url=n.replaceAll(t.PATH_PARAM_REGEX,(e,t)=>{if(!Object.hasOwn(i,t))return console.warn(`[HttpClient] 接口: ${n} 路径参数 ${t} 未在查询参数中定义, 请检查`),`unknown`;let a=i[t];return(0,r.isNullish)(a)?(console.warn(`[HttpClient] 接口: ${n} 路径参数 ${t} 在查询参数中为空, 请检查`),`unknown`):String(a)}))}async ensureTokenRefreshed(e=!0){if(this.#n)return new Promise(e=>{this.#r.push(e)});let t=await this.tryRefreshToken();return!t&&e&&await this.#t.onUnauthenticated?.(),t}async tryRefreshToken(){let{getAuthTokens:e,refreshToken:t,setAuthTokens:n}=this.#t;if(!e||!t||!n)return!1;this.#n=!0;let r=!1;try{let i=await e();if(!i)return!1;let a=await t(i);return await n(Object.freeze(a)),r=!0,!0}catch(e){return console.error(`[HttpClient] 刷新令牌失败: ${e}`),!1}finally{this.#n=!1;for(let e of this.#r)e(r);this.#r=[]}}async retryRequest(e){let t={...e};return await this.injectAccessToken(t),this.#e(t)}async get(e,t){return(await this.#e.get(e,t)).data}async post(e,t){let{data:n,...r}=t??{};return(await this.#e.post(e,n,r)).data}async put(e,t){let{data:n,...r}=t??{};return(await this.#e.put(e,n,r)).data}async delete(e,t){return(await this.#e.delete(e,t)).data}async upload(e,t){let{data:n,onProgress:i,...a}=t??{};return(await this.#e.postForm(e,n,{...a,onUploadProgress:(0,r.isFunction)(i)?i:void 0})).data}async download(e,n){let{method:i=`get`,data:a,onProgress:o,filename:s,...c}=n??{},l={...c,responseType:`blob`,responseEncoding:`binary`,onDownloadProgress:(0,r.isFunction)(o)?o:void 0},{data:u,headers:d}=i===`post`?await this.#e.post(e,a,l):await this.#e.get(e,l);try{let e=JSON.parse(await u.text());throw Error(e.message)}catch{}let f=d[`content-disposition`];if(!(0,r.isString)(f))return;let p=t.CONTENT_DISPOSITION_FILENAME_REGEX.exec(f);if(!p?.groups?.name)return;let m=decodeURIComponent(p.groups.name),h=URL.createObjectURL(u);try{let e=document.createElement(`a`);e.href=h,e.download=(0,r.isFunction)(s)?s(m):s??m,e.click()}finally{URL.revokeObjectURL(h)}}};exports.HttpClient=a;
1
+ const e=require("../_internal/_rolldown/runtime.cjs"),t=require("./constants.cjs"),n=require("./errors.cjs");let r=require("@vef-framework-react/shared"),i=require("axios");i=e.__toESM(i,1);var a=class{#e;#t;#n=!1;#r=[];constructor(e){this.#t=e;let{baseUrl:n,timeout:a=t.DEFAULT_TIMEOUT}=e;this.#e=i.default.create({baseURL:n,allowAbsoluteUrls:!0,timeout:a,headers:{"Content-Type":`application/json`},paramsSerializer:e=>(0,r.encodeQueryString)(e,{arrayFormat:`repeat`,skipNulls:!0,charset:`utf-8`}),responseType:`json`,responseEncoding:`utf-8`,validateStatus:e=>e>=200&&e<300,withCredentials:!1,timeoutErrorMessage:`请求超时`}),this.initInterceptors()}initInterceptors(){this.#e.interceptors.request.use(this.handleRequest.bind(this),this.handleRequestError.bind(this)),this.#e.interceptors.response.use(this.handleResponse.bind(this),this.handleResponseError.bind(this))}matchesCode(e,t){return(0,r.isArray)(t)?t.includes(e):e===t}async handleRequest(e){let n=e.headers[t.SKIP_AUTH_HEADER]===`1`;if(this.#n&&!n&&!await new Promise(e=>{this.#r.push(e)}))throw Error(`登录已过期, 请重新登录`);return n?delete e.headers[t.SKIP_AUTH_HEADER]:await this.injectAccessToken(e),this.replacePathParams(e),e}handleRequestError(e){let{showErrorMessage:t}=this.#t,n=`发起请求失败: ${(e instanceof Error?e.message:String(e))||`未知错误`}`;return t?t(n):console.error(`[HttpClient] ${n}`),Promise.reject(e)}handleResponse(e){let{showWarningMessage:t,okCode:r=0}=this.#t,{code:i,message:a,data:o}=e.data;if(this.matchesCode(i,r))return e;throw t?t(a):console.warn(`[HttpClient] [${e.config.method}: ${e.config.url}] 返回错误: ${a}`),new n.BusinessError(i,a,o)}async handleResponseError(e){if(e instanceof i.CanceledError){if(e.response){let{method:t,url:n}=e.response.config;console.warn(`[HttpClient] [${t}: ${n}] 被取消`)}return}let{response:t}=e;if(!t)throw this.logError(`请求失败: ${e.message||`未知错误`}`),e;let{status:n,config:r,data:a}=t,{code:o,message:s}=a,c=`[${r.method}: ${r.url}]`;switch(n){case 400:this.logWarning(s,`${c} 参数错误: ${s}`);break;case 401:{let t=await this.handleUnauthorized(e,o,c);if(t)return t;break}case 403:this.#t.showWarningMessage?.(`${s}, 请联系管理员为您开通`),console.warn(`[HttpClient] ${c} 访问被拒绝: ${s}`),await this.#t.onAccessDenied?.();break;default:this.logError(s,`${c} 返回错误: ${s}`)}throw e}async handleUnauthorized(e,t,n){let{tokenExpiredCode:r=[]}=this.#t;if(!this.matchesCode(t,r)){await this.#t.onUnauthenticated?.();return}if(this.#n)throw e;if(await this.tryRefreshToken())return this.retryRequest(e.response.config);this.logInfo(`登录已过期, 请重新登录`),await this.#t.onUnauthenticated?.()}logInfo(e){this.#t.showInfoMessage?this.#t.showInfoMessage(e):console.info(`[HttpClient] ${e}`)}logWarning(e,t){this.#t.showWarningMessage?this.#t.showWarningMessage(e):console.warn(`[HttpClient] ${t??e}`)}logError(e,t){this.#t.showErrorMessage?this.#t.showErrorMessage(e):console.error(`[HttpClient] ${t??e}`)}async injectAccessToken(e){let{getAuthTokens:t}=this.#t;if(!t)return;let n=await t();n?.accessToken&&(e.headers.Authorization=`Bearer ${n.accessToken}`)}replacePathParams(e){let{url:n,params:i={}}=e;!n||!t.PATH_PARAM_REGEX.test(n)||(t.PATH_PARAM_REGEX.lastIndex=0,e.url=n.replaceAll(t.PATH_PARAM_REGEX,(e,t)=>{if(!Object.hasOwn(i,t))return console.warn(`[HttpClient] 接口: ${n} 路径参数 ${t} 未在查询参数中定义, 请检查`),`unknown`;let a=i[t];return(0,r.isNullish)(a)?(console.warn(`[HttpClient] 接口: ${n} 路径参数 ${t} 在查询参数中为空, 请检查`),`unknown`):String(a)}))}async ensureTokenRefreshed(e=!0){if(this.#n)return new Promise(e=>{this.#r.push(e)});let t=await this.tryRefreshToken();return!t&&e&&await this.#t.onUnauthenticated?.(),t}async tryRefreshToken(){let{getAuthTokens:e,refreshToken:t,setAuthTokens:n}=this.#t;if(!e||!t||!n)return!1;this.#n=!0;let r=!1;try{let i=await e();if(!i)return!1;let a=await t(i);return await n(Object.freeze(a)),r=!0,!0}catch(e){return console.error(`[HttpClient] 刷新令牌失败: ${e}`),!1}finally{this.#n=!1;for(let e of this.#r)e(r);this.#r=[]}}async retryRequest(e){let t={...e};return await this.injectAccessToken(t),this.#e(t)}async get(e,t){return(await this.#e.get(e,t)).data}async post(e,t){let{data:n,...r}=t??{};return(await this.#e.post(e,n,r)).data}async put(e,t){let{data:n,...r}=t??{};return(await this.#e.put(e,n,r)).data}async delete(e,t){return(await this.#e.delete(e,t)).data}async upload(e,t){let{data:n,onProgress:i,...a}=t??{};return(await this.#e.postForm(e,n,{...a,onUploadProgress:(0,r.isFunction)(i)?i:void 0})).data}async download(e,n){let{method:i=`get`,data:a,onProgress:o,filename:s,...c}=n??{},l={...c,responseType:`blob`,responseEncoding:`binary`,onDownloadProgress:(0,r.isFunction)(o)?o:void 0},{data:u,headers:d}=i===`post`?await this.#e.post(e,a,l):await this.#e.get(e,l);try{let e=JSON.parse(await u.text());throw Error(e.message)}catch{}let f=d[`content-disposition`];if(!(0,r.isString)(f))return;let p=t.CONTENT_DISPOSITION_FILENAME_REGEX.exec(f);if(!p?.groups?.name)return;let m=decodeURIComponent(p.groups.name),h=URL.createObjectURL(u);try{let e=document.createElement(`a`);e.href=h,e.download=(0,r.isFunction)(s)?s(m):s??m,e.click()}finally{URL.revokeObjectURL(h)}}};exports.HttpClient=a;
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { createHttpClient as e } from "../http/helpers.js";
3
3
  import { createQueryClient as t } from "../query/helpers.js";
4
4
  import { HTTP_CLIENT as n, PROXIED_METHODS as r, QUERY_CLIENT as i } from "./constants.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { HTTP_CLIENT_KEY as e } from "../http/constants.js";
3
3
  import { QUERY_CLIENT_KEY as t } from "../query/constants.js";
4
4
  //#region src/api/constants.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { ApiClient as e } from "./client.js";
3
3
  //#region src/api/helpers.ts
4
4
  var t = "v1";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import "./constants.js";
3
3
  import "./client.js";
4
4
  import "./helpers.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { isNullish as e, isString as t } from "@vef-framework-react/shared";
3
3
  //#region src/auth/helpers.ts
4
4
  function n(n, r, i = "any") {
@@ -1,2 +1,2 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import "./helpers.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { QUERY_CLIENT as e } from "../api/constants.js";
3
3
  import { QueryClientProvider as t } from "@tanstack/react-query";
4
4
  import { createContext as n, use as r } from "react";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { createContext as e, use as t } from "react";
3
3
  //#region src/context/app.ts
4
4
  var n = e({}), r = n.Provider;
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { isFunction as e } from "@vef-framework-react/shared";
3
3
  import { createContext as t, use as n, useEffect as r, useState as i, useSyncExternalStore as a } from "react";
4
4
  import { jsx as o } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { createContext as e, use as t } from "react";
3
3
  //#region src/context/disabled.ts
4
4
  var n = e(!1);
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import "./api-client.js";
3
3
  import "./app.js";
4
4
  import "./context-selector.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { CollisionPriority as e } from "@dnd-kit/abstract";
3
3
  import { AxisModifier as t, RestrictToHorizontalAxis as n, RestrictToVerticalAxis as r, SnapModifier as i, restrictShapeToBoundingRectangle as a } from "@dnd-kit/abstract/modifiers";
4
4
  import { closestCenter as o, closestCorners as s, defaultCollisionDetection as c, directionBiased as l, pointerDistance as u, pointerIntersection as d, shapeIntersection as f } from "@dnd-kit/collision";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { CONTENT_DISPOSITION_FILENAME_REGEX as e, DEFAULT_TIMEOUT as t, PATH_PARAM_REGEX as n, SKIP_AUTH_HEADER as r } from "./constants.js";
3
3
  import { BusinessError as i } from "./errors.js";
4
4
  import { encodeQueryString as a, isArray as o, isFunction as s, isNullish as c, isString as l } from "@vef-framework-react/shared";
@@ -66,9 +66,11 @@ var f = class {
66
66
  case 400:
67
67
  this.logWarning(o, `${s} 参数错误: ${o}`);
68
68
  break;
69
- case 401:
70
- await this.handleUnauthorized(e, a, s);
69
+ case 401: {
70
+ let t = await this.handleUnauthorized(e, a, s);
71
+ if (t) return t;
71
72
  break;
73
+ }
72
74
  case 403:
73
75
  this.#t.showWarningMessage?.(`${o}, 请联系管理员为您开通`), console.warn(`[HttpClient] ${s} 访问被拒绝: ${o}`), await this.#t.onAccessDenied?.();
74
76
  break;
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  //#region src/http/constants.ts
3
3
  var e = "__vef_http_client_key", t = /:(?<key>\w+)/g, n = /filename[^;=\n]*=(?<name>(?<quote>['"]).*?\2|[^;\n]*)/, r = "X-Skip-Authentication", i = "1", a = 3e4;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  //#region src/http/errors.ts
3
3
  var e = class extends Error {
4
4
  code;
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import "./errors.js";
3
3
  import { HttpClient as e } from "./client.js";
4
4
  //#region src/http/helpers.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import "./constants.js";
3
3
  import "./errors.js";
4
4
  import "./client.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { applyPatches as e, current as t, enableMapSet as n, enablePatches as r, original as i, produce as a, produceWithPatches as o, setAutoFreeze as s } from "immer";
3
3
  import { useImmer as c, useImmerReducer as l } from "use-immer";
4
4
  n(), r(), s(!1);
package/dist/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { SKIP_AUTH_HEADER as e, SKIP_AUTH_VALUE as t } from "./http/constants.js";
3
3
  import { keepPreviousData as n } from "./query/helpers.js";
4
4
  import { matchMutation as r, matchQuery as i, skipQueryToken as a, useInfiniteQuery as o, useIsFetching as s, useIsMutating as c, useMutation as l, useMutationState as u, useQueries as d, useQuery as f, useQueryClient as p, useQueryErrorResetBoundary as m } from "./query/hooks.js";
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { domMax as e } from "motion/react";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import "./motion-provider.js";
3
3
  import { AnimatePresence as e, LayoutGroup as t, Reorder as n, useDragControls as r, useInView as i } from "motion/react";
4
4
  import * as a from "motion/react-m";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { generateId as e } from "@vef-framework-react/shared";
3
3
  import { useState as t } from "react";
4
4
  import { jsx as n } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  //#region src/query/constants.ts
3
3
  var e = "__vef_query_client_key";
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { hashKey as e, isPlainObject as t } from "@vef-framework-react/shared";
3
3
  import { MutationCache as n, QueryClient as r, keepPreviousData as i, matchQuery as a } from "@tanstack/react-query";
4
4
  //#region src/query/helpers.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { matchMutation as e, matchQuery as t, skipToken as n, useInfiniteQuery as r, useIsFetching as i, useIsMutating as a, useMutation as o, useMutationState as s, useQueries as c, useQuery as l, useQueryClient as u, useQueryErrorResetBoundary as d } from "@tanstack/react-query";
3
3
  //#region src/query/hooks.ts
4
4
  function f(e) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import "./constants.js";
3
3
  import "./helpers.js";
4
4
  import "./hooks.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { TokenExpiredError as e, createStreamMachine as t } from "./stream-machine.js";
3
3
  import { isString as n } from "@vef-framework-react/shared";
4
4
  import { fetchEventSource as r } from "@microsoft/fetch-event-source";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { SseClient as e } from "./client.js";
3
3
  //#region src/sse/helpers.ts
4
4
  function t(t) {
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import "./client.js";
3
3
  import "./helpers.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { fromPromise as e, setup as t } from "xstate";
3
3
  //#region src/sse/stream-machine.ts
4
4
  var n = class extends Error {
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { Provider as e, atom as t, createStore as n, getDefaultStore as r, useAtom as i, useAtomValue as a, useSetAtom as o, useStore as s } from "jotai";
3
3
  export { e as AtomStoreProvider, t as atom, n as createAtomStore, r as getDefaultAtomStore, i as useAtom, s as useAtomStore, a as useAtomValue, o as useSetAtom };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { Actor as e, assign as t, createActor as n, createMachine as r } from "xstate";
3
3
  import { useActorRef as i, useActorRef as a, useSelector as o } from "@xstate/react";
4
4
  //#region src/state-machine/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  //#region src/storage/errors.ts
3
3
  var e = class extends Error {
4
4
  constructor(e, t) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import "./errors.js";
3
3
  import "./protocol.js";
4
4
  import "./resumable/fingerprint.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { createApiRequest as e } from "../api/helpers.js";
3
3
  import { UploadProtocolError as t } from "./errors.js";
4
4
  //#region src/storage/protocol.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  //#region src/storage/resumable/fingerprint.ts
3
3
  var e = class {
4
4
  fingerprint(e) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import "./fingerprint.js";
3
3
  import "./persistence.js";
4
4
  import "./plan.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  //#region src/storage/resumable/persistence.ts
3
3
  var e = "__VEF_UPLOAD_RESUME__", t = class {
4
4
  #e;
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { abortUpload as e, listParts as t } from "../protocol.js";
3
3
  //#region src/storage/resumable/plan.ts
4
4
  async function n(n) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  //#region src/storage/types.ts
3
3
  var e = "pub/", t = "priv/";
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { assertEvent as e, fromPromise as t, setup as n } from "xstate";
3
3
  //#region src/storage/uploader-machine.ts
4
4
  function r(r) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { UploadAbortedError as e, UploadError as t, UploadPartError as n, UploadProtocolError as r } from "./errors.js";
3
3
  import { abortUpload as i, completeUpload as a, initUpload as o, uploadPart as s } from "./protocol.js";
4
4
  import { createUploaderMachine as c } from "./uploader-machine.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { constantCase as e, identity as t } from "@vef-framework-react/shared";
3
3
  import { create as n } from "zustand";
4
4
  import { createJSONStorage as r, persist as i, subscribeWithSelector as a } from "zustand/middleware";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import "./bound.js";
3
3
  import "./unbound.js";
4
4
  import "./use-deep.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { constantCase as e, identity as t, isPlainObject as n, mergeWith as r } from "@vef-framework-react/shared";
3
3
  import { createContext as i, use as a, useRef as o } from "react";
4
4
  import { jsx as s } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/core v2.4.1 made by Venus | 2026-06-17T13:09:30.484Z */
1
+ /*! @vef-framework-react/core v2.4.2 made by Venus | 2026-06-18T05:23:20.496Z */
2
2
  import { isDeepEqual as e } from "@vef-framework-react/shared";
3
3
  import { useRef as t } from "react";
4
4
  //#region src/store/use-deep.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vef-framework-react/core",
3
3
  "type": "module",
4
- "version": "2.4.1",
4
+ "version": "2.4.2",
5
5
  "private": false,
6
6
  "description": "Core features for VEF framework",
7
7
  "author": {
@@ -66,7 +66,7 @@
66
66
  "use-immer": "^0.11.0",
67
67
  "xstate": "^5.32.0",
68
68
  "zustand": "^5.0.14",
69
- "@vef-framework-react/shared": "2.4.1"
69
+ "@vef-framework-react/shared": "2.4.2"
70
70
  },
71
71
  "devDependencies": {
72
72
  "react": "^19.2.7"