@reactuses/core 6.0.6 → 6.0.7

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.
package/dist/index.cjs CHANGED
@@ -1362,7 +1362,10 @@ const useFileDialog = (options = defaultOptions$1)=>{
1362
1362
  const _options = _extends$3({}, DEFAULT_OPTIONS, options, localOptions);
1363
1363
  inputRef.current.multiple = _options.multiple;
1364
1364
  inputRef.current.accept = _options.accept;
1365
- inputRef.current.capture = _options.capture;
1365
+ // Only set capture attribute if it's explicitly provided
1366
+ if (_options.capture !== undefined) {
1367
+ inputRef.current.capture = _options.capture;
1368
+ }
1366
1369
  fileOpenPromiseRef.current = new Promise((resolve)=>{
1367
1370
  resolveFileOpenPromiseRef.current = resolve;
1368
1371
  });
package/dist/index.d.cts CHANGED
@@ -2402,9 +2402,9 @@ options?: ThrottleSettings) => T;
2402
2402
  declare const useThrottle: UseThrottle;
2403
2403
 
2404
2404
  declare function useThrottleFn<T extends (...args: any) => any>(fn: T, wait?: number, options?: ThrottleSettings): {
2405
- run: lodash.DebouncedFunc<(...args_0: Parameters<T>) => ReturnType<T>>;
2405
+ run: lodash.DebouncedFuncLeading<(...args_0: Parameters<T>) => ReturnType<T>>;
2406
2406
  cancel: () => void;
2407
- flush: () => ReturnType<T> | undefined;
2407
+ flush: () => ReturnType<T>;
2408
2408
  };
2409
2409
 
2410
2410
  /**
package/dist/index.d.mts CHANGED
@@ -2402,9 +2402,9 @@ options?: ThrottleSettings) => T;
2402
2402
  declare const useThrottle: UseThrottle;
2403
2403
 
2404
2404
  declare function useThrottleFn<T extends (...args: any) => any>(fn: T, wait?: number, options?: ThrottleSettings): {
2405
- run: lodash.DebouncedFunc<(...args_0: Parameters<T>) => ReturnType<T>>;
2405
+ run: lodash.DebouncedFuncLeading<(...args_0: Parameters<T>) => ReturnType<T>>;
2406
2406
  cancel: () => void;
2407
- flush: () => ReturnType<T> | undefined;
2407
+ flush: () => ReturnType<T>;
2408
2408
  };
2409
2409
 
2410
2410
  /**
package/dist/index.d.ts CHANGED
@@ -2402,9 +2402,9 @@ options?: ThrottleSettings) => T;
2402
2402
  declare const useThrottle: UseThrottle;
2403
2403
 
2404
2404
  declare function useThrottleFn<T extends (...args: any) => any>(fn: T, wait?: number, options?: ThrottleSettings): {
2405
- run: lodash.DebouncedFunc<(...args_0: Parameters<T>) => ReturnType<T>>;
2405
+ run: lodash.DebouncedFuncLeading<(...args_0: Parameters<T>) => ReturnType<T>>;
2406
2406
  cancel: () => void;
2407
- flush: () => ReturnType<T> | undefined;
2407
+ flush: () => ReturnType<T>;
2408
2408
  };
2409
2409
 
2410
2410
  /**
package/dist/index.mjs CHANGED
@@ -1354,7 +1354,10 @@ const useFileDialog = (options = defaultOptions$1)=>{
1354
1354
  const _options = _extends$3({}, DEFAULT_OPTIONS, options, localOptions);
1355
1355
  inputRef.current.multiple = _options.multiple;
1356
1356
  inputRef.current.accept = _options.accept;
1357
- inputRef.current.capture = _options.capture;
1357
+ // Only set capture attribute if it's explicitly provided
1358
+ if (_options.capture !== undefined) {
1359
+ inputRef.current.capture = _options.capture;
1360
+ }
1358
1361
  fileOpenPromiseRef.current = new Promise((resolve)=>{
1359
1362
  resolveFileOpenPromiseRef.current = resolve;
1360
1363
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactuses/core",
3
- "version": "6.0.6",
3
+ "version": "6.0.7",
4
4
  "license": "Unlicense",
5
5
  "homepage": "https://www.reactuse.com/",
6
6
  "repository": {