2026-03-09 21:29:03 +08:00
|
|
|
/**
|
|
|
|
|
* Hooks 导出
|
|
|
|
|
*/
|
|
|
|
|
|
2026-03-18 12:11:49 +08:00
|
|
|
// ==================== 新的响应式 Hooks (推荐) ====================
|
2026-03-09 21:29:03 +08:00
|
|
|
export {
|
2026-03-18 12:11:49 +08:00
|
|
|
// 核心 hooks
|
|
|
|
|
useBreakpoint,
|
|
|
|
|
useFineBreakpoint,
|
2026-03-09 21:29:03 +08:00
|
|
|
useBreakpointGTE,
|
|
|
|
|
useBreakpointLT,
|
|
|
|
|
useBreakpointBetween,
|
2026-03-18 12:11:49 +08:00
|
|
|
useScreenSize,
|
|
|
|
|
useWindowDimensions,
|
|
|
|
|
useOrientation,
|
2026-03-09 21:29:03 +08:00
|
|
|
usePlatform,
|
|
|
|
|
useMediaQuery,
|
2026-03-18 12:11:49 +08:00
|
|
|
useResponsiveValue,
|
|
|
|
|
useResponsiveStyle,
|
2026-03-09 21:29:03 +08:00
|
|
|
useColumnCount,
|
|
|
|
|
useResponsiveSpacing,
|
2026-03-18 12:11:49 +08:00
|
|
|
// 兼容层
|
|
|
|
|
useResponsive,
|
|
|
|
|
useLegacyResponsive,
|
|
|
|
|
// 工具函数
|
|
|
|
|
getBreakpoint,
|
|
|
|
|
getFineBreakpoint,
|
2026-03-09 21:29:03 +08:00
|
|
|
isBreakpointGTE,
|
|
|
|
|
isBreakpointLT,
|
2026-03-18 12:11:49 +08:00
|
|
|
isBreakpointBetween,
|
|
|
|
|
// 常量
|
|
|
|
|
BREAKPOINTS,
|
|
|
|
|
FINE_BREAKPOINTS,
|
|
|
|
|
} from '../presentation/hooks/responsive';
|
|
|
|
|
|
2026-03-09 21:29:03 +08:00
|
|
|
export type {
|
|
|
|
|
BreakpointKey,
|
|
|
|
|
FineBreakpointKey,
|
2026-03-18 12:11:49 +08:00
|
|
|
BreakpointValue,
|
2026-03-09 21:29:03 +08:00
|
|
|
ResponsiveValue,
|
2026-03-18 12:11:49 +08:00
|
|
|
Orientation,
|
|
|
|
|
PlatformInfo,
|
|
|
|
|
ScreenSize,
|
|
|
|
|
MediaQueryOptions,
|
|
|
|
|
// 兼容层类型
|
|
|
|
|
ResponsiveInfo,
|
|
|
|
|
} from '../presentation/hooks/responsive';
|
|
|
|
|
|
|
|
|
|
// ==================== 旧版响应式 Hooks (保持向后兼容) ====================
|
|
|
|
|
// 注意:这些导出将在未来版本中移除,请使用新的 hooks
|
|
|
|
|
export {
|
|
|
|
|
BREAKPOINTS as BREAKPOINTS_OLD,
|
|
|
|
|
FINE_BREAKPOINTS as FINE_BREAKPOINTS_OLD,
|
|
|
|
|
} from './useResponsive';
|
|
|
|
|
|
|
|
|
|
export type {
|
|
|
|
|
ResponsiveInfo as ResponsiveInfo_OLD,
|
|
|
|
|
BreakpointKey as BreakpointKey_OLD,
|
|
|
|
|
BreakpointValue as BreakpointValue_OLD,
|
|
|
|
|
FineBreakpointKey as FineBreakpointKey_OLD,
|
|
|
|
|
ResponsiveValue as ResponsiveValue_OLD,
|
2026-03-09 21:29:03 +08:00
|
|
|
} from './useResponsive';
|
|
|
|
|
|
2026-03-18 12:11:49 +08:00
|
|
|
// ==================== 其他 Hooks ====================
|
2026-03-09 21:29:03 +08:00
|
|
|
export {
|
|
|
|
|
usePrefetch,
|
|
|
|
|
prefetchPosts,
|
|
|
|
|
prefetchConversations,
|
|
|
|
|
prefetchUserInfo,
|
|
|
|
|
prefetchOnAppLaunch,
|
|
|
|
|
prefetchMessageScreen,
|
|
|
|
|
prefetchHomeScreen,
|
|
|
|
|
} from './usePrefetch';
|
2026-03-18 23:05:28 +08:00
|
|
|
|
|
|
|
|
// ==================== 分页 Hooks ====================
|
|
|
|
|
export {
|
|
|
|
|
usePagination,
|
|
|
|
|
usePaginationManager,
|
|
|
|
|
} from './usePagination';
|
|
|
|
|
|
|
|
|
|
export type {
|
|
|
|
|
UsePaginationOptions,
|
|
|
|
|
UsePaginationReturn,
|
|
|
|
|
} from './usePagination';
|
|
|
|
|
|
2026-03-20 23:00:27 +08:00
|
|
|
// ==================== 游标分页 Hooks ====================
|
|
|
|
|
export { useCursorPagination } from './useCursorPagination';
|
|
|
|
|
|
2026-03-18 23:05:28 +08:00
|
|
|
// ==================== 连接状态 Hooks ====================
|
|
|
|
|
export { useConnectionState } from './useConnectionState';
|
|
|
|
|
|
|
|
|
|
export type { UseConnectionStateResult } from './useConnectionState';
|
|
|
|
|
|
|
|
|
|
// ==================== 媒体缓存 Hooks ====================
|
|
|
|
|
export { useMediaCache } from './useMediaCache';
|
|
|
|
|
|
|
|
|
|
export type { UseMediaCacheReturn } from './useMediaCache';
|