@vef-framework-react/hooks 2.31.0 → 2.32.0

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 (34) hide show
  1. package/dist/cjs/use-data-options/index.cjs +1 -1
  2. package/dist/es/index.js +1 -1
  3. package/dist/es/lib.js +1 -1
  4. package/dist/es/use-authorized-items/index.js +1 -1
  5. package/dist/es/use-breakpoints/index.js +1 -1
  6. package/dist/es/use-check-permission/index.js +1 -1
  7. package/dist/es/use-code-set-query/index.js +1 -1
  8. package/dist/es/use-data-options/index.js +44 -32
  9. package/dist/es/use-deep-callback/index.js +1 -1
  10. package/dist/es/use-deep-compare/index.js +1 -1
  11. package/dist/es/use-deep-effect/index.js +1 -1
  12. package/dist/es/use-deep-isomorphic-effect/index.js +1 -1
  13. package/dist/es/use-deep-layout-effect/index.js +1 -1
  14. package/dist/es/use-deep-memo/index.js +1 -1
  15. package/dist/es/use-document-event/index.js +1 -1
  16. package/dist/es/use-emitter-event/index.js +1 -1
  17. package/dist/es/use-has-fetching/index.js +1 -1
  18. package/dist/es/use-has-mutating/index.js +1 -1
  19. package/dist/es/use-is-authorized/index.js +1 -1
  20. package/dist/es/use-latest/index.js +1 -1
  21. package/dist/es/use-push-message/index.js +1 -1
  22. package/dist/es/use-raf-state/index.js +1 -1
  23. package/dist/es/use-shallow-callback/index.js +1 -1
  24. package/dist/es/use-shallow-compare/index.js +1 -1
  25. package/dist/es/use-shallow-effect/index.js +1 -1
  26. package/dist/es/use-shallow-isomorphic-effect/index.js +1 -1
  27. package/dist/es/use-shallow-layout-effect/index.js +1 -1
  28. package/dist/es/use-shallow-memo/index.js +1 -1
  29. package/dist/es/use-singleton/index.js +1 -1
  30. package/dist/es/use-stored-file-names/index.js +1 -1
  31. package/dist/es/use-upload/index.js +1 -1
  32. package/dist/es/use-viewport-size/index.js +1 -1
  33. package/dist/types/use-data-options/index.d.ts +5 -0
  34. package/package.json +8 -3
@@ -1 +1 @@
1
- let e=require("@vef-framework-react/core"),t=require("@vef-framework-react/shared"),n=require("react");function r(e,n,r){return n?(0,t.isFunction)(n)?n(e):(0,t.get)(e,n):e[r]}function i(e,n,a){let{labelKey:o,valueKey:s,disabledKey:c,descriptionKey:l,childrenKey:u}=n,d=r(e,o,`label`),f=r(e,s,`value`),p=r(e,c,`disabled`),m=r(e,l,`description`),h=r(e,u,`children`),g={...e,label:d,value:f,...!(0,t.isNullish)(p)&&{disabled:p},...!(0,t.isNullish)(m)&&{description:m}},_=a?(0,t.withPinyin)(g,`label`,`description`):g;return Array.isArray(h)&&h.length>0&&(_.children=h.map(e=>i(e,n,a))),_}function a(e,n,r){return!e||(0,t.isEmpty)(e)?[]:e.map(e=>i(e,n,r))}function o({queryOptions:t,labelKey:r,valueKey:i,disabledKey:o,descriptionKey:s,childrenKey:c,withPinyin:l=!1}){let{data:u,...d}=(0,e.useQuery)(t),f=(0,n.useMemo)(()=>({labelKey:r,valueKey:i,disabledKey:o,descriptionKey:s,childrenKey:c}),[r,i,o,s,c]);return{options:(0,n.useMemo)(()=>a(u,f,l),[u,f,l]),...d}}exports.useDataOptionsQuery=o;
1
+ let e=require("@vef-framework-react/core"),t=require("@vef-framework-react/shared"),n=require("react");function r(e,n,r){return n?(0,t.isFunction)(n)?n(e):(0,t.get)(e,n):e[r]}function i(e,n,a){let{labelKey:o,valueKey:s,disabledKey:c,descriptionKey:l,childrenKey:u}=n,d=r(e,o,`label`),f=r(e,s,`value`),p=r(e,c,`disabled`),m=r(e,l,`description`),h=r(e,u,`children`),g={...e,label:d,value:f,...!(0,t.isNullish)(p)&&{disabled:p},...!(0,t.isNullish)(m)&&{description:m}},_=a?(0,t.withPinyin)(g,`label`,`description`):g;return Array.isArray(h)&&h.length>0&&(_.children=h.map(e=>i(e,n,a))),_}function a(e,n,r){return!e||(0,t.isEmpty)(e)?[]:e.map(e=>i(e,n,r))}function o({queryOptions:r,onFetch:i,labelKey:o,valueKey:s,disabledKey:c,descriptionKey:l,childrenKey:u,withPinyin:d=!1}){let f=(0,e.useQuery)(r),{data:p,isPlaceholderData:m}=f,h=(r.queryKeyHashFn??t.hashKey)(r.queryKey),g=(0,n.useEffectEvent)(e=>i?.(e));(0,n.useEffect)(()=>{p!==void 0&&!m&&g(p)},[h,p,m]);let _=(0,n.useMemo)(()=>({labelKey:o,valueKey:s,disabledKey:c,descriptionKey:l,childrenKey:u}),[o,s,c,l,u]),v={options:{value:(0,n.useMemo)(()=>a(p,_,d),[p,_,d]),enumerable:!0}};for(let e of Object.keys(f))e!==`data`&&(v[e]={enumerable:!0,get:()=>Reflect.get(f,e)});return Object.create(Object.prototype,v)}exports.useDataOptionsQuery=o;
package/dist/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { HotkeysProvider as e, assignRef as t, getHotkeyHandler as n, mergeRefs as r, useColorScheme as i, useDebouncedCallback as a, useDebouncedState as o, useDebouncedValue as s, useDidUpdate as c, useDocumentTitle as l, useElementSize as u, useEventListener as d, useFocusTrap as f, useFullscreenDocument as p, useHotkeys as m, useHotkeysContext as h, useIntersection as g, useInterval as _, useIsFirstRender as v, useIsomorphicEffect as y, useMediaQuery as b, useMergedRef as x, useMounted as S, useMutationObserverTarget as C, usePrevious as w, useRecordHotkeys as T, useReducedMotion as E, useResizeObserver as D, useTimeout as O, useWindowEvent as k } from "./lib.js";
3
3
  import { useAuthorizedItems as A } from "./use-authorized-items/index.js";
4
4
  import { useBreakpoints as j } from "./use-breakpoints/index.js";
package/dist/es/lib.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { assignRef as e, getHotkeyHandler as t, mergeRefs as n, useColorScheme as r, useDebouncedCallback as i, useDebouncedState as a, useDebouncedValue as o, useDidUpdate as s, useDocumentTitle as c, useElementSize as l, useEventListener as u, useFocusTrap as d, useFullscreenDocument as f, useIntersection as p, useInterval as m, useIsFirstRender as h, useIsomorphicEffect as g, useMediaQuery as _, useMergedRef as v, useMounted as y, useMutationObserverTarget as b, usePrevious as x, useReducedMotion as S, useResizeObserver as C, useTimeout as w, useWindowEvent as T } from "@mantine/hooks";
3
3
  import { HotkeysProvider as E, useHotkeys as D, useHotkeysContext as O, useRecordHotkeys as k } from "react-hotkeys-hook";
4
4
  //#region src/lib.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { checkPermission as e, useAppContext as t } from "@vef-framework-react/core";
3
3
  //#region src/use-authorized-items/index.ts
4
4
  function n(n) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { isNumber as e } from "@vef-framework-react/shared";
3
3
  import { useEffect as t, useMemo as n, useState as r } from "react";
4
4
  //#region src/use-breakpoints/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { checkPermission as e, useAppContext as t } from "@vef-framework-react/core";
3
3
  //#region src/use-check-permission/index.ts
4
4
  function n() {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { skipQueryToken as e, useAppContext as t, useQuery as n } from "@vef-framework-react/core";
3
3
  import { isFunction as r, isString as i } from "@vef-framework-react/shared";
4
4
  import { useCallback as a, useMemo as o } from "react";
@@ -1,46 +1,58 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useQuery as e } from "@vef-framework-react/core";
3
- import { get as t, isEmpty as n, isFunction as r, isNullish as i, withPinyin as a } from "@vef-framework-react/shared";
4
- import { useMemo as o } from "react";
3
+ import { get as t, hashKey as n, isEmpty as r, isFunction as i, isNullish as a, withPinyin as o } from "@vef-framework-react/shared";
4
+ import { useEffect as s, useEffectEvent as c, useMemo as l } from "react";
5
5
  //#region src/use-data-options/index.ts
6
- function s(e, n, i) {
7
- return n ? r(n) ? n(e) : t(e, n) : e[i];
6
+ function u(e, n, r) {
7
+ return n ? i(n) ? n(e) : t(e, n) : e[r];
8
8
  }
9
- function c(e, t, n) {
10
- let { labelKey: r, valueKey: o, disabledKey: l, descriptionKey: u, childrenKey: d } = t, f = s(e, r, "label"), p = s(e, o, "value"), m = s(e, l, "disabled"), h = s(e, u, "description"), g = s(e, d, "children"), _ = {
9
+ function d(e, t, n) {
10
+ let { labelKey: r, valueKey: i, disabledKey: s, descriptionKey: c, childrenKey: l } = t, f = u(e, r, "label"), p = u(e, i, "value"), m = u(e, s, "disabled"), h = u(e, c, "description"), g = u(e, l, "children"), _ = {
11
11
  ...e,
12
12
  label: f,
13
13
  value: p,
14
- ...!i(m) && { disabled: m },
15
- ...!i(h) && { description: h }
16
- }, v = n ? a(_, "label", "description") : _;
17
- return Array.isArray(g) && g.length > 0 && (v.children = g.map((e) => c(e, t, n))), v;
14
+ ...!a(m) && { disabled: m },
15
+ ...!a(h) && { description: h }
16
+ }, v = n ? o(_, "label", "description") : _;
17
+ return Array.isArray(g) && g.length > 0 && (v.children = g.map((e) => d(e, t, n))), v;
18
18
  }
19
- function l(e, t, r) {
20
- return !e || n(e) ? [] : e.map((e) => c(e, t, r));
19
+ function f(e, t, n) {
20
+ return !e || r(e) ? [] : e.map((e) => d(e, t, n));
21
21
  }
22
- function u({ queryOptions: t, labelKey: n, valueKey: r, disabledKey: i, descriptionKey: a, childrenKey: s, withPinyin: c = !1 }) {
23
- let { data: u, ...d } = e(t), f = o(() => ({
24
- labelKey: n,
25
- valueKey: r,
26
- disabledKey: i,
27
- descriptionKey: a,
28
- childrenKey: s
22
+ function p({ queryOptions: t, onFetch: r, labelKey: i, valueKey: a, disabledKey: o, descriptionKey: u, childrenKey: d, withPinyin: p = !1 }) {
23
+ let m = e(t), { data: h, isPlaceholderData: g } = m, _ = (t.queryKeyHashFn ?? n)(t.queryKey), v = c((e) => r?.(e));
24
+ s(() => {
25
+ h !== void 0 && !g && v(h);
26
+ }, [
27
+ _,
28
+ h,
29
+ g
30
+ ]);
31
+ let y = l(() => ({
32
+ labelKey: i,
33
+ valueKey: a,
34
+ disabledKey: o,
35
+ descriptionKey: u,
36
+ childrenKey: d
29
37
  }), [
30
- n,
31
- r,
32
38
  i,
33
39
  a,
34
- s
35
- ]);
36
- return {
37
- options: o(() => l(u, f, c), [
38
- u,
39
- f,
40
- c
40
+ o,
41
+ u,
42
+ d
43
+ ]), b = { options: {
44
+ value: l(() => f(h, y, p), [
45
+ h,
46
+ y,
47
+ p
41
48
  ]),
42
- ...d
43
- };
49
+ enumerable: !0
50
+ } };
51
+ for (let e of Object.keys(m)) e !== "data" && (b[e] = {
52
+ enumerable: !0,
53
+ get: () => Reflect.get(m, e)
54
+ });
55
+ return Object.create(Object.prototype, b);
44
56
  }
45
57
  //#endregion
46
- export { u as useDataOptionsQuery };
58
+ export { p as useDataOptionsQuery };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useDeepCompare as e } from "../use-deep-compare/index.js";
3
3
  import { useCallback as t } from "react";
4
4
  //#region src/use-deep-callback/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { isDeepEqual as e } from "@vef-framework-react/shared";
3
3
  import { useRef as t } from "react";
4
4
  //#region src/use-deep-compare/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useDeepCompare as e } from "../use-deep-compare/index.js";
3
3
  import { useEffect as t } from "react";
4
4
  //#region src/use-deep-effect/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useIsomorphicEffect as e } from "../lib.js";
3
3
  import { useDeepCompare as t } from "../use-deep-compare/index.js";
4
4
  //#region src/use-deep-isomorphic-effect/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useDeepCompare as e } from "../use-deep-compare/index.js";
3
3
  import { useLayoutEffect as t } from "react";
4
4
  //#region src/use-deep-layout-effect/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useDeepCompare as e } from "../use-deep-compare/index.js";
3
3
  import { useMemo as t } from "react";
4
4
  //#region src/use-deep-memo/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useLatest as e } from "../use-latest/index.js";
3
3
  import { useEffect as t } from "react";
4
4
  //#region src/use-document-event/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useEffect as e } from "react";
3
3
  //#region src/use-emitter-event/index.ts
4
4
  function t(t, n, r) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useIsFetching as e } from "@vef-framework-react/core";
3
3
  //#region src/use-has-fetching/index.ts
4
4
  function t(t, n) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useIsMutating as e } from "@vef-framework-react/core";
3
3
  //#region src/use-has-mutating/index.ts
4
4
  function t(t) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { checkPermission as e, useAppContext as t } from "@vef-framework-react/core";
3
3
  //#region src/use-is-authorized/index.ts
4
4
  function n(n, r) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useRef as e } from "react";
3
3
  //#region src/use-latest/index.ts
4
4
  function t(t) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useEffect as e } from "react";
3
3
  //#region src/use-push-message/index.ts
4
4
  function t(t, n, r) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
3
3
  //#region src/use-raf-state/index.ts
4
4
  function i(i) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useShallowCompare as e } from "../use-shallow-compare/index.js";
3
3
  import { useCallback as t } from "react";
4
4
  //#region src/use-shallow-callback/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { isShallowEqual as e } from "@vef-framework-react/shared";
3
3
  import { useRef as t } from "react";
4
4
  //#region src/use-shallow-compare/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useShallowCompare as e } from "../use-shallow-compare/index.js";
3
3
  import { useEffect as t } from "react";
4
4
  //#region src/use-shallow-effect/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useIsomorphicEffect as e } from "../lib.js";
3
3
  import { useShallowCompare as t } from "../use-shallow-compare/index.js";
4
4
  //#region src/use-shallow-isomorphic-effect/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useShallowCompare as e } from "../use-shallow-compare/index.js";
3
3
  import { useLayoutEffect as t } from "react";
4
4
  //#region src/use-shallow-layout-effect/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useShallowCompare as e } from "../use-shallow-compare/index.js";
3
3
  import { useMemo as t } from "react";
4
4
  //#region src/use-shallow-memo/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useRef as e } from "react";
3
3
  //#region src/use-singleton/index.ts
4
4
  function t(t) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { STORAGE_API_PATH as e, STORAGE_FILE_RESOURCE as t, STORAGE_VERSION as n, resolveFiles as r, useApiClient as i, useQuery as a } from "@vef-framework-react/core";
3
3
  import { useMemo as o } from "react";
4
4
  //#region src/use-stored-file-names/index.ts
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useLatest as e } from "../use-latest/index.js";
3
3
  import { HTTP_CLIENT as t, LocalStoragePersistence as n, PrefixFingerprinter as r, STORAGE_API_PATH as i, STORAGE_RESOURCE as a, STORAGE_VERSION as o, UploadAbortedError as s, Uploader as c, WeakFingerprinter as l, resolveResumePlan as u, useApiClient as d } from "@vef-framework-react/core";
4
4
  import { useCallback as f, useEffect as p, useMemo as m, useRef as h, useSyncExternalStore as g } from "react";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/hooks v2.31.0 made by Venus | 2026-11-19T01:42:01.857Z */
1
+ /*! @vef-framework-react/hooks v2.32.0 made by Venus | 2026-11-19T08:42:35.261Z */
2
2
  import { useWindowEvent as e } from "../lib.js";
3
3
  import { useRafState as t } from "../use-raf-state/index.js";
4
4
  import { isUndefined as n } from "@vef-framework-react/shared";
@@ -47,6 +47,11 @@ export type UseDataOptionsQueryOptions<TQueryFnData = unknown, TData = TQueryFnD
47
47
  * Options for fetching data using regular query
48
48
  */
49
49
  queryOptions: UseQueryOptions<TQueryFnData[], TData[], TParams>;
50
+ /**
51
+ * Called with the current key's selected rows when data becomes available or changes,
52
+ * including on a cache hit. Placeholder rows are only used to display options.
53
+ */
54
+ onFetch?: (data: TData[]) => void;
50
55
  };
51
56
  /**
52
57
  * Return type for useDataOptionsQuery hook
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vef-framework-react/hooks",
3
- "version": "2.31.0",
3
+ "version": "2.32.0",
4
4
  "private": false,
5
5
  "description": "Hooks for VEF framework",
6
6
  "keywords": [
@@ -10,6 +10,11 @@
10
10
  "hooks"
11
11
  ],
12
12
  "homepage": "https://vef.ilxqx.com",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/coldsmirk/vef-framework-react.git",
16
+ "directory": "packages/hooks"
17
+ },
13
18
  "license": "Apache-2.0",
14
19
  "author": {
15
20
  "name": "Venus",
@@ -41,8 +46,8 @@
41
46
  "dependencies": {
42
47
  "@mantine/hooks": "^9.4.1",
43
48
  "react-hotkeys-hook": "^5.3.3",
44
- "@vef-framework-react/core": "2.31.0",
45
- "@vef-framework-react/shared": "2.31.0"
49
+ "@vef-framework-react/core": "2.32.0",
50
+ "@vef-framework-react/shared": "2.32.0"
46
51
  },
47
52
  "devDependencies": {
48
53
  "react": "^19.2.7"