@reactuses/core 6.1.11 → 6.2.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.
- package/README.md +64 -37
- package/dist/index.cjs +162 -45
- package/dist/index.d.cts +91 -2
- package/dist/index.d.mts +91 -2
- package/dist/index.d.ts +91 -2
- package/dist/index.mjs +162 -46
- package/package.json +35 -5
package/dist/index.d.cts
CHANGED
|
@@ -4024,6 +4024,95 @@ type UseSpeechRecognitionReturn = ReturnType<UseSpeechRecognition>;
|
|
|
4024
4024
|
|
|
4025
4025
|
declare const useSpeechRecognition: UseSpeechRecognition;
|
|
4026
4026
|
|
|
4027
|
+
/**
|
|
4028
|
+
* @title useWakeLock
|
|
4029
|
+
* @returns 包含以下元素的对象:
|
|
4030
|
+
* - isSupported:浏览器是否支持 Wake Lock API。
|
|
4031
|
+
* - isActive:当前是否持有唤醒锁。
|
|
4032
|
+
* - request:请求唤醒锁(页面可见时立即请求,不可见时延迟到可见时请求)。
|
|
4033
|
+
* - forceRequest:强制请求唤醒锁,无论页面是否可见。
|
|
4034
|
+
* - release:释放唤醒锁。
|
|
4035
|
+
* @returns_en An object with the following elements:
|
|
4036
|
+
* - isSupported: whether the browser supports the Wake Lock API.
|
|
4037
|
+
* - isActive: whether a wake lock is currently held.
|
|
4038
|
+
* - request: request a wake lock (immediately if visible, deferred until visible if hidden).
|
|
4039
|
+
* - forceRequest: force request a wake lock regardless of visibility.
|
|
4040
|
+
* - release: release the wake lock.
|
|
4041
|
+
* @returns_zh-Hant 包含以下元素的對象:
|
|
4042
|
+
* - isSupported:瀏覽器是否支援 Wake Lock API。
|
|
4043
|
+
* - isActive:當前是否持有喚醒鎖。
|
|
4044
|
+
* - request:請求喚醒鎖(頁面可見時立即請求,不可見時延遲到可見時請求)。
|
|
4045
|
+
* - forceRequest:強制請求喚醒鎖,無論頁面是否可見。
|
|
4046
|
+
* - release:釋放喚醒鎖。
|
|
4047
|
+
*/
|
|
4048
|
+
type UseWakeLock = (
|
|
4049
|
+
/**
|
|
4050
|
+
* @zh 可选参数
|
|
4051
|
+
* @zh-Hant 可選參數
|
|
4052
|
+
* @en optional params
|
|
4053
|
+
*/
|
|
4054
|
+
options?: UseWakeLockOptions) => UseWakeLockReturn;
|
|
4055
|
+
/**
|
|
4056
|
+
* @title UseWakeLockOptions
|
|
4057
|
+
*/
|
|
4058
|
+
interface UseWakeLockOptions {
|
|
4059
|
+
/**
|
|
4060
|
+
* @zh 请求成功时的回调
|
|
4061
|
+
* @zh-Hant 請求成功時的回調
|
|
4062
|
+
* @en callback when wake lock is acquired
|
|
4063
|
+
*/
|
|
4064
|
+
onRequest?: () => void;
|
|
4065
|
+
/**
|
|
4066
|
+
* @zh 释放时的回调
|
|
4067
|
+
* @zh-Hant 釋放時的回調
|
|
4068
|
+
* @en callback when wake lock is released
|
|
4069
|
+
*/
|
|
4070
|
+
onRelease?: () => void;
|
|
4071
|
+
/**
|
|
4072
|
+
* @zh 发生错误时的回调
|
|
4073
|
+
* @zh-Hant 發生錯誤時的回調
|
|
4074
|
+
* @en callback when an error occurs
|
|
4075
|
+
*/
|
|
4076
|
+
onError?: (error: Error) => void;
|
|
4077
|
+
}
|
|
4078
|
+
/**
|
|
4079
|
+
* @title UseWakeLockReturn
|
|
4080
|
+
*/
|
|
4081
|
+
interface UseWakeLockReturn {
|
|
4082
|
+
/**
|
|
4083
|
+
* @zh 浏览器是否支持 Wake Lock API
|
|
4084
|
+
* @zh-Hant 瀏覽器是否支援 Wake Lock API
|
|
4085
|
+
* @en whether the browser supports the Wake Lock API
|
|
4086
|
+
*/
|
|
4087
|
+
readonly isSupported: boolean;
|
|
4088
|
+
/**
|
|
4089
|
+
* @zh 当前是否持有唤醒锁
|
|
4090
|
+
* @zh-Hant 當前是否持有喚醒鎖
|
|
4091
|
+
* @en whether a wake lock is currently held
|
|
4092
|
+
*/
|
|
4093
|
+
readonly isActive: boolean;
|
|
4094
|
+
/**
|
|
4095
|
+
* @zh 请求唤醒锁
|
|
4096
|
+
* @zh-Hant 請求喚醒鎖
|
|
4097
|
+
* @en request a wake lock
|
|
4098
|
+
*/
|
|
4099
|
+
readonly request: () => Promise<void>;
|
|
4100
|
+
/**
|
|
4101
|
+
* @zh 强制请求唤醒锁,无论页面是否可见
|
|
4102
|
+
* @zh-Hant 強制請求喚醒鎖,無論頁面是否可見
|
|
4103
|
+
* @en force request a wake lock regardless of page visibility
|
|
4104
|
+
*/
|
|
4105
|
+
readonly forceRequest: () => Promise<void>;
|
|
4106
|
+
/**
|
|
4107
|
+
* @zh 释放唤醒锁
|
|
4108
|
+
* @zh-Hant 釋放喚醒鎖
|
|
4109
|
+
* @en release the wake lock
|
|
4110
|
+
*/
|
|
4111
|
+
readonly release: () => Promise<void>;
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
declare const useWakeLock: UseWakeLock;
|
|
4115
|
+
|
|
4027
4116
|
/**
|
|
4028
4117
|
* @title useDocumentVisiblity
|
|
4029
4118
|
* @returns_en document visibility
|
|
@@ -4499,5 +4588,5 @@ type Use = <T>(
|
|
|
4499
4588
|
*/
|
|
4500
4589
|
usable: Usable<T>) => T;
|
|
4501
4590
|
|
|
4502
|
-
export { assignRef, defaultOptions, mergeRefs, use, useActiveElement, useAsyncEffect, useBoolean, useBroadcastChannel, useClickOutside as useClickAway, useClickOutside, useClipboard, useColorMode, useControlled, useCookie, useClipboard as useCopyToClipboard, useCountDown, useCounter, useCssVar, useCustomCompareEffect, useCycleList, useDarkMode, useDebounce, useDebounceFn, useDeepCompareEffect, useDevicePixelRatio, useDisclosure, useDocumentVisibility, useDoubleClick, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementSize, useElementVisibility, useEvent, useEventEmitter, useEventListener, useEventSource, useEyeDropper, useFavicon, useFetchEventSource, useFileDialog, useFirstMountState, useFocus, useFps, useFullscreen, useGeolocation, useHover, useIdle, useInfiniteScroll, useIntersectionObserver, useInterval, useIsomorphicLayoutEffect, useKeyModifier, useLatest, useLocalStorage, useLocationSelector, useLongPress, useMap, useMeasure, useMediaDevices, useMediaQuery, useMergedRefs, useMobileLandscape, useMount, useMountedState, useMouse, useMousePressed, useMutationObserver, useNetwork, useObjectUrl, useOnceEffect, useOnceLayoutEffect, useOnline, useOrientation, usePageLeave, usePermission, usePlatform, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePrevious, useRafFn, useRafState, useReducedMotion, useResizeObserver, useScratch, useScreenSafeArea, useScriptTag, useScroll, useScrollIntoView, useScrollLock, useSessionStorage, useSetState, useSpeechRecognition, useSticky, useSupported, useTextDirection, useTextSelection, useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useTitle, useToggle, useUnmount, useUpdate, useUpdateEffect, useUpdateLayoutEffect, useWebNotification, useWindowScroll, useWindowSize, useWindowsFocus };
|
|
4503
|
-
export type { ColorScheme, Contrast, DepsEqualFnType, EventSourceStatus, EventType, INetworkInformation, IUseNetworkState, KeyModifier, Pausable, Platform, PossibleRef, Use, UseActiveElement, UseAsyncEffect, UseBoolean, UseBroadcastChannel, UseBroadcastChannelOptions, UseBroadcastChannelReturn, UseClickOutside, UseClipboard, UseColorMode, UseColorModeOptions, UseControlled, UseCookie, UseCookieState, UseCountDown, UseCounter, UseCssVar, UseCssVarOptions, UseCustomCompareEffect, UseCycleList, UseDarkMode, UseDarkOptions, UseDebounce, UseDebounceFn, UseDeepCompareEffect, UseDevicePixelRatio, UseDevicePixelRatioReturn, UseDisclosure, UseDisclosureProps, UseDocumentVisibility, UseDoubleClick, UseDoubleClickProps, UseDraggable, UseDraggableOptions, UseDropZone, UseElementBounding, UseElementBoundingOptions, UseElementBoundingReturn, UseElementByPoint, UseElementByPointOptions, UseElementByPointReturn, UseElementSize, UseElementVisibility, UseEvent, UseEventEmitter, UseEventEmitterDisposable, UseEventEmitterEvent, UseEventEmitterEventOnce, UseEventEmitterListener, UseEventEmitterReturn, UseEventListener, UseEventSource, UseEventSourceAutoReconnectOptions, UseEventSourceOptions, UseEventSourceReturn, UseEyeDropper, UseEyeDropperOpenOptions, UseEyeDropperOpenReturnType, UseFavicon, UseFetchEventSource, UseFetchEventSourceAutoReconnectOptions, UseFetchEventSourceMessage, UseFetchEventSourceOptions, UseFetchEventSourceReturn, UseFetchEventSourceStatus, UseFileDialog, UseFileDialogOptions, UseFirstMountState, UseFocus, UseFps, UseFpsOptions, UseFullScreenOptions, UseFullscreen, UseGeolocation, UseHover, UseIdle, UseInfiniteScroll, UseInfiniteScrollArrivedState, UseInfiniteScrollDirection, UseInfiniteScrollLoadMore, UseInfiniteScrollOptions, UseIntersectionObserver, UseInterval, UseIntervalOptions, UseKeyModifier, UseLatest, UseLocalStorage, UseLocalStorageOptions, UseLocalStorageSerializer, UseLocationSelector, UseLongPress, UseLongPressOptions, UseMap, UseMeasure, UseMeasureRect, UseMediaDeviceOptions, UseMediaDevices, UseMediaQuery, UseMergedRef, UseMobileLandscape, UseModifierOptions, UseMount, UseMountedState, UseMouse, UseMouseCursorState, UseMousePressed, UseMousePressedOptions, UseMousePressedSourceType, UseMutationObserver, UseNetwork, UseObjectUrl, UseOnline, UseOrientation, UseOrientationLockType, UseOrientationState, UseOrientationType, UsePageLeave, UsePermission, UsePermissionDescriptorNamePolyfill, UsePermissionGeneralPermissionDescriptor, UsePermissionState, UsePlatform, UsePlatformProps, UsePlatformReturn, UsePreferredColorScheme, UsePreferredContrast, UsePreferredDark, UsePreferredLanguages, UsePrevious, UseRafFn, UseRafState, UseReducedMotion, UseResizeObserver, UseScratch, UseScratchOptions, UseScratchState, UseScreenSafeArea, UseScriptTag, UseScriptTagOptions, UseScriptTagStatus, UseScroll, UseScrollArrivedState, UseScrollDirection, UseScrollIntoView, UseScrollIntoViewAnimation, UseScrollIntoViewParams, UseScrollLock, UseScrollOffset, UseScrollOptions, UseSessionStorage, UseSessionStorageOptions, UseSessionStorageSerializer, UseSetState, UseSpeechRecognition, UseSpeechRecognitionOptions, UseSpeechRecognitionReturn, UseSticky, UseStickyParams, UseSupported, UseTextDirection, UseTextDirectionOptions, UseTextDirectionValue, UseTextSelection, UseThrottle, UseThrottleFn, UseTimeout, UseTimeoutFn, UseTimeoutFnOptions, UseTimeoutOptions, UseTitle, UseToggle, UseUnmount, UseUpdate, UseWebNotification, UseWebNotificationReturn, UseWebNotificationShow, UseWindowScroll, UseWindowScrollState, UseWindowSize, UseWindowsFocus };
|
|
4591
|
+
export { assignRef, defaultOptions, mergeRefs, use, useActiveElement, useAsyncEffect, useBoolean, useBroadcastChannel, useClickOutside as useClickAway, useClickOutside, useClipboard, useColorMode, useControlled, useCookie, useClipboard as useCopyToClipboard, useCountDown, useCounter, useCssVar, useCustomCompareEffect, useCycleList, useDarkMode, useDebounce, useDebounceFn, useDeepCompareEffect, useDevicePixelRatio, useDisclosure, useDocumentVisibility, useDoubleClick, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementSize, useElementVisibility, useEvent, useEventEmitter, useEventListener, useEventSource, useEyeDropper, useFavicon, useFetchEventSource, useFileDialog, useFirstMountState, useFocus, useFps, useFullscreen, useGeolocation, useHover, useIdle, useInfiniteScroll, useIntersectionObserver, useInterval, useIsomorphicLayoutEffect, useKeyModifier, useLatest, useLocalStorage, useLocationSelector, useLongPress, useMap, useMeasure, useMediaDevices, useMediaQuery, useMergedRefs, useMobileLandscape, useMount, useMountedState, useMouse, useMousePressed, useMutationObserver, useNetwork, useObjectUrl, useOnceEffect, useOnceLayoutEffect, useOnline, useOrientation, usePageLeave, usePermission, usePlatform, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePrevious, useRafFn, useRafState, useReducedMotion, useResizeObserver, useScratch, useScreenSafeArea, useScriptTag, useScroll, useScrollIntoView, useScrollLock, useSessionStorage, useSetState, useSpeechRecognition, useSticky, useSupported, useTextDirection, useTextSelection, useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useTitle, useToggle, useUnmount, useUpdate, useUpdateEffect, useUpdateLayoutEffect, useWakeLock, useWebNotification, useWindowScroll, useWindowSize, useWindowsFocus };
|
|
4592
|
+
export type { ColorScheme, Contrast, DepsEqualFnType, EventSourceStatus, EventType, INetworkInformation, IUseNetworkState, KeyModifier, Pausable, Platform, PossibleRef, Use, UseActiveElement, UseAsyncEffect, UseBoolean, UseBroadcastChannel, UseBroadcastChannelOptions, UseBroadcastChannelReturn, UseClickOutside, UseClipboard, UseColorMode, UseColorModeOptions, UseControlled, UseCookie, UseCookieState, UseCountDown, UseCounter, UseCssVar, UseCssVarOptions, UseCustomCompareEffect, UseCycleList, UseDarkMode, UseDarkOptions, UseDebounce, UseDebounceFn, UseDeepCompareEffect, UseDevicePixelRatio, UseDevicePixelRatioReturn, UseDisclosure, UseDisclosureProps, UseDocumentVisibility, UseDoubleClick, UseDoubleClickProps, UseDraggable, UseDraggableOptions, UseDropZone, UseElementBounding, UseElementBoundingOptions, UseElementBoundingReturn, UseElementByPoint, UseElementByPointOptions, UseElementByPointReturn, UseElementSize, UseElementVisibility, UseEvent, UseEventEmitter, UseEventEmitterDisposable, UseEventEmitterEvent, UseEventEmitterEventOnce, UseEventEmitterListener, UseEventEmitterReturn, UseEventListener, UseEventSource, UseEventSourceAutoReconnectOptions, UseEventSourceOptions, UseEventSourceReturn, UseEyeDropper, UseEyeDropperOpenOptions, UseEyeDropperOpenReturnType, UseFavicon, UseFetchEventSource, UseFetchEventSourceAutoReconnectOptions, UseFetchEventSourceMessage, UseFetchEventSourceOptions, UseFetchEventSourceReturn, UseFetchEventSourceStatus, UseFileDialog, UseFileDialogOptions, UseFirstMountState, UseFocus, UseFps, UseFpsOptions, UseFullScreenOptions, UseFullscreen, UseGeolocation, UseHover, UseIdle, UseInfiniteScroll, UseInfiniteScrollArrivedState, UseInfiniteScrollDirection, UseInfiniteScrollLoadMore, UseInfiniteScrollOptions, UseIntersectionObserver, UseInterval, UseIntervalOptions, UseKeyModifier, UseLatest, UseLocalStorage, UseLocalStorageOptions, UseLocalStorageSerializer, UseLocationSelector, UseLongPress, UseLongPressOptions, UseMap, UseMeasure, UseMeasureRect, UseMediaDeviceOptions, UseMediaDevices, UseMediaQuery, UseMergedRef, UseMobileLandscape, UseModifierOptions, UseMount, UseMountedState, UseMouse, UseMouseCursorState, UseMousePressed, UseMousePressedOptions, UseMousePressedSourceType, UseMutationObserver, UseNetwork, UseObjectUrl, UseOnline, UseOrientation, UseOrientationLockType, UseOrientationState, UseOrientationType, UsePageLeave, UsePermission, UsePermissionDescriptorNamePolyfill, UsePermissionGeneralPermissionDescriptor, UsePermissionState, UsePlatform, UsePlatformProps, UsePlatformReturn, UsePreferredColorScheme, UsePreferredContrast, UsePreferredDark, UsePreferredLanguages, UsePrevious, UseRafFn, UseRafState, UseReducedMotion, UseResizeObserver, UseScratch, UseScratchOptions, UseScratchState, UseScreenSafeArea, UseScriptTag, UseScriptTagOptions, UseScriptTagStatus, UseScroll, UseScrollArrivedState, UseScrollDirection, UseScrollIntoView, UseScrollIntoViewAnimation, UseScrollIntoViewParams, UseScrollLock, UseScrollOffset, UseScrollOptions, UseSessionStorage, UseSessionStorageOptions, UseSessionStorageSerializer, UseSetState, UseSpeechRecognition, UseSpeechRecognitionOptions, UseSpeechRecognitionReturn, UseSticky, UseStickyParams, UseSupported, UseTextDirection, UseTextDirectionOptions, UseTextDirectionValue, UseTextSelection, UseThrottle, UseThrottleFn, UseTimeout, UseTimeoutFn, UseTimeoutFnOptions, UseTimeoutOptions, UseTitle, UseToggle, UseUnmount, UseUpdate, UseWakeLock, UseWakeLockOptions, UseWakeLockReturn, UseWebNotification, UseWebNotificationReturn, UseWebNotificationShow, UseWindowScroll, UseWindowScrollState, UseWindowSize, UseWindowsFocus };
|
package/dist/index.d.mts
CHANGED
|
@@ -4024,6 +4024,95 @@ type UseSpeechRecognitionReturn = ReturnType<UseSpeechRecognition>;
|
|
|
4024
4024
|
|
|
4025
4025
|
declare const useSpeechRecognition: UseSpeechRecognition;
|
|
4026
4026
|
|
|
4027
|
+
/**
|
|
4028
|
+
* @title useWakeLock
|
|
4029
|
+
* @returns 包含以下元素的对象:
|
|
4030
|
+
* - isSupported:浏览器是否支持 Wake Lock API。
|
|
4031
|
+
* - isActive:当前是否持有唤醒锁。
|
|
4032
|
+
* - request:请求唤醒锁(页面可见时立即请求,不可见时延迟到可见时请求)。
|
|
4033
|
+
* - forceRequest:强制请求唤醒锁,无论页面是否可见。
|
|
4034
|
+
* - release:释放唤醒锁。
|
|
4035
|
+
* @returns_en An object with the following elements:
|
|
4036
|
+
* - isSupported: whether the browser supports the Wake Lock API.
|
|
4037
|
+
* - isActive: whether a wake lock is currently held.
|
|
4038
|
+
* - request: request a wake lock (immediately if visible, deferred until visible if hidden).
|
|
4039
|
+
* - forceRequest: force request a wake lock regardless of visibility.
|
|
4040
|
+
* - release: release the wake lock.
|
|
4041
|
+
* @returns_zh-Hant 包含以下元素的對象:
|
|
4042
|
+
* - isSupported:瀏覽器是否支援 Wake Lock API。
|
|
4043
|
+
* - isActive:當前是否持有喚醒鎖。
|
|
4044
|
+
* - request:請求喚醒鎖(頁面可見時立即請求,不可見時延遲到可見時請求)。
|
|
4045
|
+
* - forceRequest:強制請求喚醒鎖,無論頁面是否可見。
|
|
4046
|
+
* - release:釋放喚醒鎖。
|
|
4047
|
+
*/
|
|
4048
|
+
type UseWakeLock = (
|
|
4049
|
+
/**
|
|
4050
|
+
* @zh 可选参数
|
|
4051
|
+
* @zh-Hant 可選參數
|
|
4052
|
+
* @en optional params
|
|
4053
|
+
*/
|
|
4054
|
+
options?: UseWakeLockOptions) => UseWakeLockReturn;
|
|
4055
|
+
/**
|
|
4056
|
+
* @title UseWakeLockOptions
|
|
4057
|
+
*/
|
|
4058
|
+
interface UseWakeLockOptions {
|
|
4059
|
+
/**
|
|
4060
|
+
* @zh 请求成功时的回调
|
|
4061
|
+
* @zh-Hant 請求成功時的回調
|
|
4062
|
+
* @en callback when wake lock is acquired
|
|
4063
|
+
*/
|
|
4064
|
+
onRequest?: () => void;
|
|
4065
|
+
/**
|
|
4066
|
+
* @zh 释放时的回调
|
|
4067
|
+
* @zh-Hant 釋放時的回調
|
|
4068
|
+
* @en callback when wake lock is released
|
|
4069
|
+
*/
|
|
4070
|
+
onRelease?: () => void;
|
|
4071
|
+
/**
|
|
4072
|
+
* @zh 发生错误时的回调
|
|
4073
|
+
* @zh-Hant 發生錯誤時的回調
|
|
4074
|
+
* @en callback when an error occurs
|
|
4075
|
+
*/
|
|
4076
|
+
onError?: (error: Error) => void;
|
|
4077
|
+
}
|
|
4078
|
+
/**
|
|
4079
|
+
* @title UseWakeLockReturn
|
|
4080
|
+
*/
|
|
4081
|
+
interface UseWakeLockReturn {
|
|
4082
|
+
/**
|
|
4083
|
+
* @zh 浏览器是否支持 Wake Lock API
|
|
4084
|
+
* @zh-Hant 瀏覽器是否支援 Wake Lock API
|
|
4085
|
+
* @en whether the browser supports the Wake Lock API
|
|
4086
|
+
*/
|
|
4087
|
+
readonly isSupported: boolean;
|
|
4088
|
+
/**
|
|
4089
|
+
* @zh 当前是否持有唤醒锁
|
|
4090
|
+
* @zh-Hant 當前是否持有喚醒鎖
|
|
4091
|
+
* @en whether a wake lock is currently held
|
|
4092
|
+
*/
|
|
4093
|
+
readonly isActive: boolean;
|
|
4094
|
+
/**
|
|
4095
|
+
* @zh 请求唤醒锁
|
|
4096
|
+
* @zh-Hant 請求喚醒鎖
|
|
4097
|
+
* @en request a wake lock
|
|
4098
|
+
*/
|
|
4099
|
+
readonly request: () => Promise<void>;
|
|
4100
|
+
/**
|
|
4101
|
+
* @zh 强制请求唤醒锁,无论页面是否可见
|
|
4102
|
+
* @zh-Hant 強制請求喚醒鎖,無論頁面是否可見
|
|
4103
|
+
* @en force request a wake lock regardless of page visibility
|
|
4104
|
+
*/
|
|
4105
|
+
readonly forceRequest: () => Promise<void>;
|
|
4106
|
+
/**
|
|
4107
|
+
* @zh 释放唤醒锁
|
|
4108
|
+
* @zh-Hant 釋放喚醒鎖
|
|
4109
|
+
* @en release the wake lock
|
|
4110
|
+
*/
|
|
4111
|
+
readonly release: () => Promise<void>;
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
declare const useWakeLock: UseWakeLock;
|
|
4115
|
+
|
|
4027
4116
|
/**
|
|
4028
4117
|
* @title useDocumentVisiblity
|
|
4029
4118
|
* @returns_en document visibility
|
|
@@ -4499,5 +4588,5 @@ type Use = <T>(
|
|
|
4499
4588
|
*/
|
|
4500
4589
|
usable: Usable<T>) => T;
|
|
4501
4590
|
|
|
4502
|
-
export { assignRef, defaultOptions, mergeRefs, use, useActiveElement, useAsyncEffect, useBoolean, useBroadcastChannel, useClickOutside as useClickAway, useClickOutside, useClipboard, useColorMode, useControlled, useCookie, useClipboard as useCopyToClipboard, useCountDown, useCounter, useCssVar, useCustomCompareEffect, useCycleList, useDarkMode, useDebounce, useDebounceFn, useDeepCompareEffect, useDevicePixelRatio, useDisclosure, useDocumentVisibility, useDoubleClick, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementSize, useElementVisibility, useEvent, useEventEmitter, useEventListener, useEventSource, useEyeDropper, useFavicon, useFetchEventSource, useFileDialog, useFirstMountState, useFocus, useFps, useFullscreen, useGeolocation, useHover, useIdle, useInfiniteScroll, useIntersectionObserver, useInterval, useIsomorphicLayoutEffect, useKeyModifier, useLatest, useLocalStorage, useLocationSelector, useLongPress, useMap, useMeasure, useMediaDevices, useMediaQuery, useMergedRefs, useMobileLandscape, useMount, useMountedState, useMouse, useMousePressed, useMutationObserver, useNetwork, useObjectUrl, useOnceEffect, useOnceLayoutEffect, useOnline, useOrientation, usePageLeave, usePermission, usePlatform, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePrevious, useRafFn, useRafState, useReducedMotion, useResizeObserver, useScratch, useScreenSafeArea, useScriptTag, useScroll, useScrollIntoView, useScrollLock, useSessionStorage, useSetState, useSpeechRecognition, useSticky, useSupported, useTextDirection, useTextSelection, useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useTitle, useToggle, useUnmount, useUpdate, useUpdateEffect, useUpdateLayoutEffect, useWebNotification, useWindowScroll, useWindowSize, useWindowsFocus };
|
|
4503
|
-
export type { ColorScheme, Contrast, DepsEqualFnType, EventSourceStatus, EventType, INetworkInformation, IUseNetworkState, KeyModifier, Pausable, Platform, PossibleRef, Use, UseActiveElement, UseAsyncEffect, UseBoolean, UseBroadcastChannel, UseBroadcastChannelOptions, UseBroadcastChannelReturn, UseClickOutside, UseClipboard, UseColorMode, UseColorModeOptions, UseControlled, UseCookie, UseCookieState, UseCountDown, UseCounter, UseCssVar, UseCssVarOptions, UseCustomCompareEffect, UseCycleList, UseDarkMode, UseDarkOptions, UseDebounce, UseDebounceFn, UseDeepCompareEffect, UseDevicePixelRatio, UseDevicePixelRatioReturn, UseDisclosure, UseDisclosureProps, UseDocumentVisibility, UseDoubleClick, UseDoubleClickProps, UseDraggable, UseDraggableOptions, UseDropZone, UseElementBounding, UseElementBoundingOptions, UseElementBoundingReturn, UseElementByPoint, UseElementByPointOptions, UseElementByPointReturn, UseElementSize, UseElementVisibility, UseEvent, UseEventEmitter, UseEventEmitterDisposable, UseEventEmitterEvent, UseEventEmitterEventOnce, UseEventEmitterListener, UseEventEmitterReturn, UseEventListener, UseEventSource, UseEventSourceAutoReconnectOptions, UseEventSourceOptions, UseEventSourceReturn, UseEyeDropper, UseEyeDropperOpenOptions, UseEyeDropperOpenReturnType, UseFavicon, UseFetchEventSource, UseFetchEventSourceAutoReconnectOptions, UseFetchEventSourceMessage, UseFetchEventSourceOptions, UseFetchEventSourceReturn, UseFetchEventSourceStatus, UseFileDialog, UseFileDialogOptions, UseFirstMountState, UseFocus, UseFps, UseFpsOptions, UseFullScreenOptions, UseFullscreen, UseGeolocation, UseHover, UseIdle, UseInfiniteScroll, UseInfiniteScrollArrivedState, UseInfiniteScrollDirection, UseInfiniteScrollLoadMore, UseInfiniteScrollOptions, UseIntersectionObserver, UseInterval, UseIntervalOptions, UseKeyModifier, UseLatest, UseLocalStorage, UseLocalStorageOptions, UseLocalStorageSerializer, UseLocationSelector, UseLongPress, UseLongPressOptions, UseMap, UseMeasure, UseMeasureRect, UseMediaDeviceOptions, UseMediaDevices, UseMediaQuery, UseMergedRef, UseMobileLandscape, UseModifierOptions, UseMount, UseMountedState, UseMouse, UseMouseCursorState, UseMousePressed, UseMousePressedOptions, UseMousePressedSourceType, UseMutationObserver, UseNetwork, UseObjectUrl, UseOnline, UseOrientation, UseOrientationLockType, UseOrientationState, UseOrientationType, UsePageLeave, UsePermission, UsePermissionDescriptorNamePolyfill, UsePermissionGeneralPermissionDescriptor, UsePermissionState, UsePlatform, UsePlatformProps, UsePlatformReturn, UsePreferredColorScheme, UsePreferredContrast, UsePreferredDark, UsePreferredLanguages, UsePrevious, UseRafFn, UseRafState, UseReducedMotion, UseResizeObserver, UseScratch, UseScratchOptions, UseScratchState, UseScreenSafeArea, UseScriptTag, UseScriptTagOptions, UseScriptTagStatus, UseScroll, UseScrollArrivedState, UseScrollDirection, UseScrollIntoView, UseScrollIntoViewAnimation, UseScrollIntoViewParams, UseScrollLock, UseScrollOffset, UseScrollOptions, UseSessionStorage, UseSessionStorageOptions, UseSessionStorageSerializer, UseSetState, UseSpeechRecognition, UseSpeechRecognitionOptions, UseSpeechRecognitionReturn, UseSticky, UseStickyParams, UseSupported, UseTextDirection, UseTextDirectionOptions, UseTextDirectionValue, UseTextSelection, UseThrottle, UseThrottleFn, UseTimeout, UseTimeoutFn, UseTimeoutFnOptions, UseTimeoutOptions, UseTitle, UseToggle, UseUnmount, UseUpdate, UseWebNotification, UseWebNotificationReturn, UseWebNotificationShow, UseWindowScroll, UseWindowScrollState, UseWindowSize, UseWindowsFocus };
|
|
4591
|
+
export { assignRef, defaultOptions, mergeRefs, use, useActiveElement, useAsyncEffect, useBoolean, useBroadcastChannel, useClickOutside as useClickAway, useClickOutside, useClipboard, useColorMode, useControlled, useCookie, useClipboard as useCopyToClipboard, useCountDown, useCounter, useCssVar, useCustomCompareEffect, useCycleList, useDarkMode, useDebounce, useDebounceFn, useDeepCompareEffect, useDevicePixelRatio, useDisclosure, useDocumentVisibility, useDoubleClick, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementSize, useElementVisibility, useEvent, useEventEmitter, useEventListener, useEventSource, useEyeDropper, useFavicon, useFetchEventSource, useFileDialog, useFirstMountState, useFocus, useFps, useFullscreen, useGeolocation, useHover, useIdle, useInfiniteScroll, useIntersectionObserver, useInterval, useIsomorphicLayoutEffect, useKeyModifier, useLatest, useLocalStorage, useLocationSelector, useLongPress, useMap, useMeasure, useMediaDevices, useMediaQuery, useMergedRefs, useMobileLandscape, useMount, useMountedState, useMouse, useMousePressed, useMutationObserver, useNetwork, useObjectUrl, useOnceEffect, useOnceLayoutEffect, useOnline, useOrientation, usePageLeave, usePermission, usePlatform, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePrevious, useRafFn, useRafState, useReducedMotion, useResizeObserver, useScratch, useScreenSafeArea, useScriptTag, useScroll, useScrollIntoView, useScrollLock, useSessionStorage, useSetState, useSpeechRecognition, useSticky, useSupported, useTextDirection, useTextSelection, useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useTitle, useToggle, useUnmount, useUpdate, useUpdateEffect, useUpdateLayoutEffect, useWakeLock, useWebNotification, useWindowScroll, useWindowSize, useWindowsFocus };
|
|
4592
|
+
export type { ColorScheme, Contrast, DepsEqualFnType, EventSourceStatus, EventType, INetworkInformation, IUseNetworkState, KeyModifier, Pausable, Platform, PossibleRef, Use, UseActiveElement, UseAsyncEffect, UseBoolean, UseBroadcastChannel, UseBroadcastChannelOptions, UseBroadcastChannelReturn, UseClickOutside, UseClipboard, UseColorMode, UseColorModeOptions, UseControlled, UseCookie, UseCookieState, UseCountDown, UseCounter, UseCssVar, UseCssVarOptions, UseCustomCompareEffect, UseCycleList, UseDarkMode, UseDarkOptions, UseDebounce, UseDebounceFn, UseDeepCompareEffect, UseDevicePixelRatio, UseDevicePixelRatioReturn, UseDisclosure, UseDisclosureProps, UseDocumentVisibility, UseDoubleClick, UseDoubleClickProps, UseDraggable, UseDraggableOptions, UseDropZone, UseElementBounding, UseElementBoundingOptions, UseElementBoundingReturn, UseElementByPoint, UseElementByPointOptions, UseElementByPointReturn, UseElementSize, UseElementVisibility, UseEvent, UseEventEmitter, UseEventEmitterDisposable, UseEventEmitterEvent, UseEventEmitterEventOnce, UseEventEmitterListener, UseEventEmitterReturn, UseEventListener, UseEventSource, UseEventSourceAutoReconnectOptions, UseEventSourceOptions, UseEventSourceReturn, UseEyeDropper, UseEyeDropperOpenOptions, UseEyeDropperOpenReturnType, UseFavicon, UseFetchEventSource, UseFetchEventSourceAutoReconnectOptions, UseFetchEventSourceMessage, UseFetchEventSourceOptions, UseFetchEventSourceReturn, UseFetchEventSourceStatus, UseFileDialog, UseFileDialogOptions, UseFirstMountState, UseFocus, UseFps, UseFpsOptions, UseFullScreenOptions, UseFullscreen, UseGeolocation, UseHover, UseIdle, UseInfiniteScroll, UseInfiniteScrollArrivedState, UseInfiniteScrollDirection, UseInfiniteScrollLoadMore, UseInfiniteScrollOptions, UseIntersectionObserver, UseInterval, UseIntervalOptions, UseKeyModifier, UseLatest, UseLocalStorage, UseLocalStorageOptions, UseLocalStorageSerializer, UseLocationSelector, UseLongPress, UseLongPressOptions, UseMap, UseMeasure, UseMeasureRect, UseMediaDeviceOptions, UseMediaDevices, UseMediaQuery, UseMergedRef, UseMobileLandscape, UseModifierOptions, UseMount, UseMountedState, UseMouse, UseMouseCursorState, UseMousePressed, UseMousePressedOptions, UseMousePressedSourceType, UseMutationObserver, UseNetwork, UseObjectUrl, UseOnline, UseOrientation, UseOrientationLockType, UseOrientationState, UseOrientationType, UsePageLeave, UsePermission, UsePermissionDescriptorNamePolyfill, UsePermissionGeneralPermissionDescriptor, UsePermissionState, UsePlatform, UsePlatformProps, UsePlatformReturn, UsePreferredColorScheme, UsePreferredContrast, UsePreferredDark, UsePreferredLanguages, UsePrevious, UseRafFn, UseRafState, UseReducedMotion, UseResizeObserver, UseScratch, UseScratchOptions, UseScratchState, UseScreenSafeArea, UseScriptTag, UseScriptTagOptions, UseScriptTagStatus, UseScroll, UseScrollArrivedState, UseScrollDirection, UseScrollIntoView, UseScrollIntoViewAnimation, UseScrollIntoViewParams, UseScrollLock, UseScrollOffset, UseScrollOptions, UseSessionStorage, UseSessionStorageOptions, UseSessionStorageSerializer, UseSetState, UseSpeechRecognition, UseSpeechRecognitionOptions, UseSpeechRecognitionReturn, UseSticky, UseStickyParams, UseSupported, UseTextDirection, UseTextDirectionOptions, UseTextDirectionValue, UseTextSelection, UseThrottle, UseThrottleFn, UseTimeout, UseTimeoutFn, UseTimeoutFnOptions, UseTimeoutOptions, UseTitle, UseToggle, UseUnmount, UseUpdate, UseWakeLock, UseWakeLockOptions, UseWakeLockReturn, UseWebNotification, UseWebNotificationReturn, UseWebNotificationShow, UseWindowScroll, UseWindowScrollState, UseWindowSize, UseWindowsFocus };
|
package/dist/index.d.ts
CHANGED
|
@@ -4024,6 +4024,95 @@ type UseSpeechRecognitionReturn = ReturnType<UseSpeechRecognition>;
|
|
|
4024
4024
|
|
|
4025
4025
|
declare const useSpeechRecognition: UseSpeechRecognition;
|
|
4026
4026
|
|
|
4027
|
+
/**
|
|
4028
|
+
* @title useWakeLock
|
|
4029
|
+
* @returns 包含以下元素的对象:
|
|
4030
|
+
* - isSupported:浏览器是否支持 Wake Lock API。
|
|
4031
|
+
* - isActive:当前是否持有唤醒锁。
|
|
4032
|
+
* - request:请求唤醒锁(页面可见时立即请求,不可见时延迟到可见时请求)。
|
|
4033
|
+
* - forceRequest:强制请求唤醒锁,无论页面是否可见。
|
|
4034
|
+
* - release:释放唤醒锁。
|
|
4035
|
+
* @returns_en An object with the following elements:
|
|
4036
|
+
* - isSupported: whether the browser supports the Wake Lock API.
|
|
4037
|
+
* - isActive: whether a wake lock is currently held.
|
|
4038
|
+
* - request: request a wake lock (immediately if visible, deferred until visible if hidden).
|
|
4039
|
+
* - forceRequest: force request a wake lock regardless of visibility.
|
|
4040
|
+
* - release: release the wake lock.
|
|
4041
|
+
* @returns_zh-Hant 包含以下元素的對象:
|
|
4042
|
+
* - isSupported:瀏覽器是否支援 Wake Lock API。
|
|
4043
|
+
* - isActive:當前是否持有喚醒鎖。
|
|
4044
|
+
* - request:請求喚醒鎖(頁面可見時立即請求,不可見時延遲到可見時請求)。
|
|
4045
|
+
* - forceRequest:強制請求喚醒鎖,無論頁面是否可見。
|
|
4046
|
+
* - release:釋放喚醒鎖。
|
|
4047
|
+
*/
|
|
4048
|
+
type UseWakeLock = (
|
|
4049
|
+
/**
|
|
4050
|
+
* @zh 可选参数
|
|
4051
|
+
* @zh-Hant 可選參數
|
|
4052
|
+
* @en optional params
|
|
4053
|
+
*/
|
|
4054
|
+
options?: UseWakeLockOptions) => UseWakeLockReturn;
|
|
4055
|
+
/**
|
|
4056
|
+
* @title UseWakeLockOptions
|
|
4057
|
+
*/
|
|
4058
|
+
interface UseWakeLockOptions {
|
|
4059
|
+
/**
|
|
4060
|
+
* @zh 请求成功时的回调
|
|
4061
|
+
* @zh-Hant 請求成功時的回調
|
|
4062
|
+
* @en callback when wake lock is acquired
|
|
4063
|
+
*/
|
|
4064
|
+
onRequest?: () => void;
|
|
4065
|
+
/**
|
|
4066
|
+
* @zh 释放时的回调
|
|
4067
|
+
* @zh-Hant 釋放時的回調
|
|
4068
|
+
* @en callback when wake lock is released
|
|
4069
|
+
*/
|
|
4070
|
+
onRelease?: () => void;
|
|
4071
|
+
/**
|
|
4072
|
+
* @zh 发生错误时的回调
|
|
4073
|
+
* @zh-Hant 發生錯誤時的回調
|
|
4074
|
+
* @en callback when an error occurs
|
|
4075
|
+
*/
|
|
4076
|
+
onError?: (error: Error) => void;
|
|
4077
|
+
}
|
|
4078
|
+
/**
|
|
4079
|
+
* @title UseWakeLockReturn
|
|
4080
|
+
*/
|
|
4081
|
+
interface UseWakeLockReturn {
|
|
4082
|
+
/**
|
|
4083
|
+
* @zh 浏览器是否支持 Wake Lock API
|
|
4084
|
+
* @zh-Hant 瀏覽器是否支援 Wake Lock API
|
|
4085
|
+
* @en whether the browser supports the Wake Lock API
|
|
4086
|
+
*/
|
|
4087
|
+
readonly isSupported: boolean;
|
|
4088
|
+
/**
|
|
4089
|
+
* @zh 当前是否持有唤醒锁
|
|
4090
|
+
* @zh-Hant 當前是否持有喚醒鎖
|
|
4091
|
+
* @en whether a wake lock is currently held
|
|
4092
|
+
*/
|
|
4093
|
+
readonly isActive: boolean;
|
|
4094
|
+
/**
|
|
4095
|
+
* @zh 请求唤醒锁
|
|
4096
|
+
* @zh-Hant 請求喚醒鎖
|
|
4097
|
+
* @en request a wake lock
|
|
4098
|
+
*/
|
|
4099
|
+
readonly request: () => Promise<void>;
|
|
4100
|
+
/**
|
|
4101
|
+
* @zh 强制请求唤醒锁,无论页面是否可见
|
|
4102
|
+
* @zh-Hant 強制請求喚醒鎖,無論頁面是否可見
|
|
4103
|
+
* @en force request a wake lock regardless of page visibility
|
|
4104
|
+
*/
|
|
4105
|
+
readonly forceRequest: () => Promise<void>;
|
|
4106
|
+
/**
|
|
4107
|
+
* @zh 释放唤醒锁
|
|
4108
|
+
* @zh-Hant 釋放喚醒鎖
|
|
4109
|
+
* @en release the wake lock
|
|
4110
|
+
*/
|
|
4111
|
+
readonly release: () => Promise<void>;
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
declare const useWakeLock: UseWakeLock;
|
|
4115
|
+
|
|
4027
4116
|
/**
|
|
4028
4117
|
* @title useDocumentVisiblity
|
|
4029
4118
|
* @returns_en document visibility
|
|
@@ -4499,5 +4588,5 @@ type Use = <T>(
|
|
|
4499
4588
|
*/
|
|
4500
4589
|
usable: Usable<T>) => T;
|
|
4501
4590
|
|
|
4502
|
-
export { assignRef, defaultOptions, mergeRefs, use, useActiveElement, useAsyncEffect, useBoolean, useBroadcastChannel, useClickOutside as useClickAway, useClickOutside, useClipboard, useColorMode, useControlled, useCookie, useClipboard as useCopyToClipboard, useCountDown, useCounter, useCssVar, useCustomCompareEffect, useCycleList, useDarkMode, useDebounce, useDebounceFn, useDeepCompareEffect, useDevicePixelRatio, useDisclosure, useDocumentVisibility, useDoubleClick, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementSize, useElementVisibility, useEvent, useEventEmitter, useEventListener, useEventSource, useEyeDropper, useFavicon, useFetchEventSource, useFileDialog, useFirstMountState, useFocus, useFps, useFullscreen, useGeolocation, useHover, useIdle, useInfiniteScroll, useIntersectionObserver, useInterval, useIsomorphicLayoutEffect, useKeyModifier, useLatest, useLocalStorage, useLocationSelector, useLongPress, useMap, useMeasure, useMediaDevices, useMediaQuery, useMergedRefs, useMobileLandscape, useMount, useMountedState, useMouse, useMousePressed, useMutationObserver, useNetwork, useObjectUrl, useOnceEffect, useOnceLayoutEffect, useOnline, useOrientation, usePageLeave, usePermission, usePlatform, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePrevious, useRafFn, useRafState, useReducedMotion, useResizeObserver, useScratch, useScreenSafeArea, useScriptTag, useScroll, useScrollIntoView, useScrollLock, useSessionStorage, useSetState, useSpeechRecognition, useSticky, useSupported, useTextDirection, useTextSelection, useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useTitle, useToggle, useUnmount, useUpdate, useUpdateEffect, useUpdateLayoutEffect, useWebNotification, useWindowScroll, useWindowSize, useWindowsFocus };
|
|
4503
|
-
export type { ColorScheme, Contrast, DepsEqualFnType, EventSourceStatus, EventType, INetworkInformation, IUseNetworkState, KeyModifier, Pausable, Platform, PossibleRef, Use, UseActiveElement, UseAsyncEffect, UseBoolean, UseBroadcastChannel, UseBroadcastChannelOptions, UseBroadcastChannelReturn, UseClickOutside, UseClipboard, UseColorMode, UseColorModeOptions, UseControlled, UseCookie, UseCookieState, UseCountDown, UseCounter, UseCssVar, UseCssVarOptions, UseCustomCompareEffect, UseCycleList, UseDarkMode, UseDarkOptions, UseDebounce, UseDebounceFn, UseDeepCompareEffect, UseDevicePixelRatio, UseDevicePixelRatioReturn, UseDisclosure, UseDisclosureProps, UseDocumentVisibility, UseDoubleClick, UseDoubleClickProps, UseDraggable, UseDraggableOptions, UseDropZone, UseElementBounding, UseElementBoundingOptions, UseElementBoundingReturn, UseElementByPoint, UseElementByPointOptions, UseElementByPointReturn, UseElementSize, UseElementVisibility, UseEvent, UseEventEmitter, UseEventEmitterDisposable, UseEventEmitterEvent, UseEventEmitterEventOnce, UseEventEmitterListener, UseEventEmitterReturn, UseEventListener, UseEventSource, UseEventSourceAutoReconnectOptions, UseEventSourceOptions, UseEventSourceReturn, UseEyeDropper, UseEyeDropperOpenOptions, UseEyeDropperOpenReturnType, UseFavicon, UseFetchEventSource, UseFetchEventSourceAutoReconnectOptions, UseFetchEventSourceMessage, UseFetchEventSourceOptions, UseFetchEventSourceReturn, UseFetchEventSourceStatus, UseFileDialog, UseFileDialogOptions, UseFirstMountState, UseFocus, UseFps, UseFpsOptions, UseFullScreenOptions, UseFullscreen, UseGeolocation, UseHover, UseIdle, UseInfiniteScroll, UseInfiniteScrollArrivedState, UseInfiniteScrollDirection, UseInfiniteScrollLoadMore, UseInfiniteScrollOptions, UseIntersectionObserver, UseInterval, UseIntervalOptions, UseKeyModifier, UseLatest, UseLocalStorage, UseLocalStorageOptions, UseLocalStorageSerializer, UseLocationSelector, UseLongPress, UseLongPressOptions, UseMap, UseMeasure, UseMeasureRect, UseMediaDeviceOptions, UseMediaDevices, UseMediaQuery, UseMergedRef, UseMobileLandscape, UseModifierOptions, UseMount, UseMountedState, UseMouse, UseMouseCursorState, UseMousePressed, UseMousePressedOptions, UseMousePressedSourceType, UseMutationObserver, UseNetwork, UseObjectUrl, UseOnline, UseOrientation, UseOrientationLockType, UseOrientationState, UseOrientationType, UsePageLeave, UsePermission, UsePermissionDescriptorNamePolyfill, UsePermissionGeneralPermissionDescriptor, UsePermissionState, UsePlatform, UsePlatformProps, UsePlatformReturn, UsePreferredColorScheme, UsePreferredContrast, UsePreferredDark, UsePreferredLanguages, UsePrevious, UseRafFn, UseRafState, UseReducedMotion, UseResizeObserver, UseScratch, UseScratchOptions, UseScratchState, UseScreenSafeArea, UseScriptTag, UseScriptTagOptions, UseScriptTagStatus, UseScroll, UseScrollArrivedState, UseScrollDirection, UseScrollIntoView, UseScrollIntoViewAnimation, UseScrollIntoViewParams, UseScrollLock, UseScrollOffset, UseScrollOptions, UseSessionStorage, UseSessionStorageOptions, UseSessionStorageSerializer, UseSetState, UseSpeechRecognition, UseSpeechRecognitionOptions, UseSpeechRecognitionReturn, UseSticky, UseStickyParams, UseSupported, UseTextDirection, UseTextDirectionOptions, UseTextDirectionValue, UseTextSelection, UseThrottle, UseThrottleFn, UseTimeout, UseTimeoutFn, UseTimeoutFnOptions, UseTimeoutOptions, UseTitle, UseToggle, UseUnmount, UseUpdate, UseWebNotification, UseWebNotificationReturn, UseWebNotificationShow, UseWindowScroll, UseWindowScrollState, UseWindowSize, UseWindowsFocus };
|
|
4591
|
+
export { assignRef, defaultOptions, mergeRefs, use, useActiveElement, useAsyncEffect, useBoolean, useBroadcastChannel, useClickOutside as useClickAway, useClickOutside, useClipboard, useColorMode, useControlled, useCookie, useClipboard as useCopyToClipboard, useCountDown, useCounter, useCssVar, useCustomCompareEffect, useCycleList, useDarkMode, useDebounce, useDebounceFn, useDeepCompareEffect, useDevicePixelRatio, useDisclosure, useDocumentVisibility, useDoubleClick, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementSize, useElementVisibility, useEvent, useEventEmitter, useEventListener, useEventSource, useEyeDropper, useFavicon, useFetchEventSource, useFileDialog, useFirstMountState, useFocus, useFps, useFullscreen, useGeolocation, useHover, useIdle, useInfiniteScroll, useIntersectionObserver, useInterval, useIsomorphicLayoutEffect, useKeyModifier, useLatest, useLocalStorage, useLocationSelector, useLongPress, useMap, useMeasure, useMediaDevices, useMediaQuery, useMergedRefs, useMobileLandscape, useMount, useMountedState, useMouse, useMousePressed, useMutationObserver, useNetwork, useObjectUrl, useOnceEffect, useOnceLayoutEffect, useOnline, useOrientation, usePageLeave, usePermission, usePlatform, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePrevious, useRafFn, useRafState, useReducedMotion, useResizeObserver, useScratch, useScreenSafeArea, useScriptTag, useScroll, useScrollIntoView, useScrollLock, useSessionStorage, useSetState, useSpeechRecognition, useSticky, useSupported, useTextDirection, useTextSelection, useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useTitle, useToggle, useUnmount, useUpdate, useUpdateEffect, useUpdateLayoutEffect, useWakeLock, useWebNotification, useWindowScroll, useWindowSize, useWindowsFocus };
|
|
4592
|
+
export type { ColorScheme, Contrast, DepsEqualFnType, EventSourceStatus, EventType, INetworkInformation, IUseNetworkState, KeyModifier, Pausable, Platform, PossibleRef, Use, UseActiveElement, UseAsyncEffect, UseBoolean, UseBroadcastChannel, UseBroadcastChannelOptions, UseBroadcastChannelReturn, UseClickOutside, UseClipboard, UseColorMode, UseColorModeOptions, UseControlled, UseCookie, UseCookieState, UseCountDown, UseCounter, UseCssVar, UseCssVarOptions, UseCustomCompareEffect, UseCycleList, UseDarkMode, UseDarkOptions, UseDebounce, UseDebounceFn, UseDeepCompareEffect, UseDevicePixelRatio, UseDevicePixelRatioReturn, UseDisclosure, UseDisclosureProps, UseDocumentVisibility, UseDoubleClick, UseDoubleClickProps, UseDraggable, UseDraggableOptions, UseDropZone, UseElementBounding, UseElementBoundingOptions, UseElementBoundingReturn, UseElementByPoint, UseElementByPointOptions, UseElementByPointReturn, UseElementSize, UseElementVisibility, UseEvent, UseEventEmitter, UseEventEmitterDisposable, UseEventEmitterEvent, UseEventEmitterEventOnce, UseEventEmitterListener, UseEventEmitterReturn, UseEventListener, UseEventSource, UseEventSourceAutoReconnectOptions, UseEventSourceOptions, UseEventSourceReturn, UseEyeDropper, UseEyeDropperOpenOptions, UseEyeDropperOpenReturnType, UseFavicon, UseFetchEventSource, UseFetchEventSourceAutoReconnectOptions, UseFetchEventSourceMessage, UseFetchEventSourceOptions, UseFetchEventSourceReturn, UseFetchEventSourceStatus, UseFileDialog, UseFileDialogOptions, UseFirstMountState, UseFocus, UseFps, UseFpsOptions, UseFullScreenOptions, UseFullscreen, UseGeolocation, UseHover, UseIdle, UseInfiniteScroll, UseInfiniteScrollArrivedState, UseInfiniteScrollDirection, UseInfiniteScrollLoadMore, UseInfiniteScrollOptions, UseIntersectionObserver, UseInterval, UseIntervalOptions, UseKeyModifier, UseLatest, UseLocalStorage, UseLocalStorageOptions, UseLocalStorageSerializer, UseLocationSelector, UseLongPress, UseLongPressOptions, UseMap, UseMeasure, UseMeasureRect, UseMediaDeviceOptions, UseMediaDevices, UseMediaQuery, UseMergedRef, UseMobileLandscape, UseModifierOptions, UseMount, UseMountedState, UseMouse, UseMouseCursorState, UseMousePressed, UseMousePressedOptions, UseMousePressedSourceType, UseMutationObserver, UseNetwork, UseObjectUrl, UseOnline, UseOrientation, UseOrientationLockType, UseOrientationState, UseOrientationType, UsePageLeave, UsePermission, UsePermissionDescriptorNamePolyfill, UsePermissionGeneralPermissionDescriptor, UsePermissionState, UsePlatform, UsePlatformProps, UsePlatformReturn, UsePreferredColorScheme, UsePreferredContrast, UsePreferredDark, UsePreferredLanguages, UsePrevious, UseRafFn, UseRafState, UseReducedMotion, UseResizeObserver, UseScratch, UseScratchOptions, UseScratchState, UseScreenSafeArea, UseScriptTag, UseScriptTagOptions, UseScriptTagStatus, UseScroll, UseScrollArrivedState, UseScrollDirection, UseScrollIntoView, UseScrollIntoViewAnimation, UseScrollIntoViewParams, UseScrollLock, UseScrollOffset, UseScrollOptions, UseSessionStorage, UseSessionStorageOptions, UseSessionStorageSerializer, UseSetState, UseSpeechRecognition, UseSpeechRecognitionOptions, UseSpeechRecognitionReturn, UseSticky, UseStickyParams, UseSupported, UseTextDirection, UseTextDirectionOptions, UseTextDirectionValue, UseTextSelection, UseThrottle, UseThrottleFn, UseTimeout, UseTimeoutFn, UseTimeoutFnOptions, UseTimeoutOptions, UseTitle, UseToggle, UseUnmount, UseUpdate, UseWakeLock, UseWakeLockOptions, UseWakeLockReturn, UseWebNotification, UseWebNotificationReturn, UseWebNotificationShow, UseWindowScroll, UseWindowScrollState, UseWindowSize, UseWindowsFocus };
|