* react compiler * remove compilation mode 'all', it will use infer by default * feat(companion): add theme tokens, path aliases, and component improvements - Extend tailwind.config.js with Cal.com brand color tokens (cal.text, cal.bg, cal.border, cal.accent, cal.brand) - Create theme/colors.ts for JS usage where Tailwind classes can't be used - Configure path aliases in tsconfig.json (@/components, @/hooks, @/utils, etc.) - Add expo-image and expo-haptics dependencies - Enhance AppPressable with Reanimated animations (opacity + scale) and haptic feedback - Extract shared logic from BookingListItem into useBookingListItemData hook and BookingListItemParts - Extract shared logic from EventTypeListItem into useEventTypeListItemData hook and EventTypeListItemParts - Extract shared logic from AvailabilityListItem into AvailabilityListItemParts - Update all list item components to use new theme tokens instead of hardcoded hex values * fix react compiler non memo issue * feat(companion): migrate to path aliases and expo-image - Remove theme/colors.ts and theme/index.ts (defer dark mode to future PR) - Replace colors import with hardcoded hex values in components - Migrate all files to use path aliases (@/components/*, @/hooks/*, etc.) - Migrate SvgImage to use expo-image for better performance - Update tsconfig.json to remove @/theme/* alias * fix(companion): add path aliases to extension tsconfig Add baseUrl and paths configuration to tsconfig.extension.json to support path aliases in shared types used by the extension build.
76 lines
1.8 KiB
TypeScript
76 lines
1.8 KiB
TypeScript
/**
|
|
* Query Hooks Index
|
|
*
|
|
* Central export point for all React Query hooks.
|
|
* Import hooks from this file for clean imports:
|
|
*
|
|
* @example
|
|
* ```tsx
|
|
* import { useBookings, useEventTypes, useSchedules } from '../hooks';
|
|
* ```
|
|
*/
|
|
|
|
// Re-export query keys for advanced use cases
|
|
export { queryKeys } from "@/config/cache.config";
|
|
// Re-export query context utilities
|
|
export { useQueryContext } from "@/contexts/QueryContext";
|
|
// UI State Management hooks
|
|
export {
|
|
type BookingFilter,
|
|
type BookingFilterOption,
|
|
useActiveBookingFilter,
|
|
} from "./useActiveBookingFilter";
|
|
export { useBookingActionModals } from "./useBookingActionModals";
|
|
export { useBookingActions } from "./useBookingActions";
|
|
// Bookings hooks
|
|
export {
|
|
type Booking,
|
|
type BookingFilters,
|
|
useBookingByUid,
|
|
useBookings,
|
|
useCancelBooking,
|
|
useConfirmBooking,
|
|
useDeclineBooking,
|
|
useInvalidateBookings,
|
|
usePrefetchBookings,
|
|
useRescheduleBooking,
|
|
} from "./useBookings";
|
|
// Event Types hooks
|
|
export {
|
|
type CreateEventTypeInput,
|
|
type EventType,
|
|
useCreateEventType,
|
|
useDeleteEventType,
|
|
useDuplicateEventType,
|
|
useEventTypeById,
|
|
useEventTypes,
|
|
useInvalidateEventTypes,
|
|
usePrefetchEventTypes,
|
|
useUpdateEventType,
|
|
} from "./useEventTypes";
|
|
// Schedules (Availability) hooks
|
|
export {
|
|
type CreateScheduleInput,
|
|
type Schedule,
|
|
type UpdateScheduleInput,
|
|
useCreateSchedule,
|
|
useDeleteSchedule,
|
|
useDuplicateSchedule,
|
|
useInvalidateSchedules,
|
|
usePrefetchSchedules,
|
|
useScheduleById,
|
|
useSchedules,
|
|
useSetScheduleAsDefault,
|
|
useUpdateSchedule,
|
|
} from "./useSchedules";
|
|
// User Profile hooks
|
|
export {
|
|
type UpdateUserProfileInput,
|
|
type UserProfile,
|
|
useInvalidateUserProfile,
|
|
usePrefetchUserProfile,
|
|
useUpdateUserProfile,
|
|
useUsername,
|
|
useUserProfile,
|
|
} from "./useUserProfile";
|