* feat: expose form validation methods from EventTypePlatformWrapper - Add validateForm and handleFormSubmit methods to onFormStateChange prop - Update useEventTypeForm hook to return validateForm method - Add proper TypeScript types for form validation result - Enable external form validation and submission capabilities Co-Authored-By: somay@cal.com <somay@cal.com> * fix: correct forwardRef syntax to resolve parsing errors - Fix forwardRef parameter destructuring syntax - Use proper props parameter pattern for forwardRef components - Ensure prettier can parse the file correctly Co-Authored-By: somay@cal.com <somay@cal.com> * feat: add form validation and submission handlers to event types platform wrapper * refactor: move form validation and submit handlers from hook to wrapper component * fix: add ref to the save button for proper form validation * feat: extend ref-based validation API to AvailabilitySettingsPlatformWrapper - Add AvailabilityFormValidationResult and AvailabilitySettingsPlatformWrapperRef types - Implement forwardRef pattern in AvailabilitySettings component with save button ref - Add validateForm and handleFormSubmit methods using useImperativeHandle - Update AvailabilitySettingsPlatformWrapper to support ref forwarding - Add comprehensive documentation for ref-based validation API in both event-type.mdx and availability-settings.mdx - Follow same patterns established in EventTypePlatformWrapper for consistency Co-Authored-By: somay@cal.com <somay@cal.com> * refactor: rename AvailabilitySettingsPlatformWrapperRef to AvailabilitySettingsFormRef * feat: add ref-based validation pattern to availability example page - Mirror the ref-based validation implementation from event-types.tsx - Add useRef, handleValidate, and handleSubmit functions - Demonstrate validateForm() and handleFormSubmit() methods - Add validation and submit buttons to showcase the new API - Use AvailabilitySettingsFormRef type for proper typing Co-Authored-By: somay@cal.com <somay@cal.com> * refactor: remove unused state variables * docs: clarify form validation behavior for availability and event type atoms * chore: remove console.logs --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: somay@cal.com <somay@cal.com> Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com>
44 lines
3.2 KiB
TypeScript
44 lines
3.2 KiB
TypeScript
export { CalProvider } from "./cal-provider";
|
|
export { GcalConnect } from "./connect/google/GcalConnect";
|
|
export { AvailabilitySettingsPlatformWrapper as AvailabilitySettings } from "./availability";
|
|
export type { AvailabilitySettingsPlatformWrapperProps as AvailabilitySettingsProps } from "./availability/wrappers/AvailabilitySettingsPlatformWrapper";
|
|
export type { AvailabilitySettingsScheduleType } from "./availability/AvailabilitySettings";
|
|
export { BookerPlatformWrapper as Booker } from "./booker/BookerPlatformWrapper";
|
|
export { useIsPlatform } from "./hooks/useIsPlatform";
|
|
export { useAtomsContext } from "./hooks/useAtomsContext";
|
|
export { useConnectedCalendars } from "./hooks/useConnectedCalendars";
|
|
export { useEventTypes } from "./hooks/event-types/public/useEventTypes";
|
|
export { useTeamEventTypes } from "./hooks/event-types/public/useTeamEventTypes";
|
|
export { useEventType as useEvent } from "./hooks/event-types/public/useEventType";
|
|
export { useEventTypeById } from "./hooks/event-types/private/useEventTypeById";
|
|
export { useCancelBooking } from "./hooks/bookings/useCancelBooking";
|
|
export { useBooking } from "./hooks/bookings/useBooking";
|
|
export { useBookings } from "./hooks/bookings/useBookings";
|
|
export { useMe } from "./hooks/useMe";
|
|
export { OutlookConnect } from "./connect/outlook/OutlookConnect";
|
|
export * as Connect from "./connect";
|
|
export { BookerEmbed } from "./booker-embed";
|
|
export { Router } from "./router";
|
|
|
|
export { useDeleteCalendarCredentials } from "./hooks/calendars/useDeleteCalendarCredentials";
|
|
export { useAddSelectedCalendar } from "./hooks/calendars/useAddSelectedCalendar";
|
|
export { useRemoveSelectedCalendar } from "./hooks/calendars/useRemoveSelectedCalendar";
|
|
export { useTeams } from "./hooks/teams/useTeams";
|
|
export { SelectedCalendarsSettingsPlatformWrapper as SelectedCalendarsSettings } from "./selected-calendars/index";
|
|
export { DestinationCalendarSettingsPlatformWrapper as DestinationCalendarSettings } from "./destination-calendar/index";
|
|
export { CalendarSettingsPlatformWrapper as CalendarSettings } from "./calendar-settings/index";
|
|
export type { UpdateScheduleInput_2024_06_11 as UpdateScheduleBody } from "@calcom/platform-types";
|
|
export { EventTypePlatformWrapper as EventTypeSettings } from "./event-types/wrappers/EventTypePlatformWrapper";
|
|
export type { EventSettingsFromRef } from "./event-types/wrappers/types";
|
|
export type { AvailabilitySettingsFormRef } from "./availability/types";
|
|
export { ConferencingAppsViewPlatformWrapper as ConferencingAppsSettings } from "./connect/conferencing-apps/ConferencingAppsViewPlatformWrapper";
|
|
export { StripeConnect } from "./connect/stripe/StripeConnect";
|
|
export { CreateEventTypePlatformWrapper as CreateEventType } from "./event-types/wrappers/CreateEventTypePlatformWrapper";
|
|
export { PaymentForm } from "./event-types/payments/PaymentForm";
|
|
|
|
export { useCreateEventType } from "./hooks/event-types/private/useCreateEventType";
|
|
export { useCreateTeamEventType } from "./hooks/event-types/private/useCreateTeamEventType";
|
|
|
|
export { useOrganizationBookings } from "./hooks/organizations/bookings/useOrganizationBookings";
|
|
export { useOrganizationUserBookings } from "./hooks/organizations/bookings/useOrganizationUserBookings";
|