@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 +4 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
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
|
-
|
|
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.
|
|
2405
|
+
run: lodash.DebouncedFuncLeading<(...args_0: Parameters<T>) => ReturnType<T>>;
|
|
2406
2406
|
cancel: () => void;
|
|
2407
|
-
flush: () => ReturnType<T
|
|
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.
|
|
2405
|
+
run: lodash.DebouncedFuncLeading<(...args_0: Parameters<T>) => ReturnType<T>>;
|
|
2406
2406
|
cancel: () => void;
|
|
2407
|
-
flush: () => ReturnType<T
|
|
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.
|
|
2405
|
+
run: lodash.DebouncedFuncLeading<(...args_0: Parameters<T>) => ReturnType<T>>;
|
|
2406
2406
|
cancel: () => void;
|
|
2407
|
-
flush: () => ReturnType<T
|
|
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
|
-
|
|
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
|
});
|