@calcom/atoms 2.8.0 → 2.8.2
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/cal-atoms.js +186 -135
- package/dist/{index-BrBTKoIj.js → index-uxS4DSg-.js} +8207 -8162
- package/dist/index.d.ts +6258 -2
- package/dist/{stripe-payment-form-2mrB04BK.js → stripe-payment-form-Ct6RLnZs.js} +1 -1
- package/package.json +4 -131
- package/dist/src/add-members-switch/add-members-with-switch-platform-wrapper.d.ts +0 -3
- package/dist/src/add-members-switch/add-members-with-switch-platform-wrapper.d.ts.map +0 -1
- package/dist/src/add-members-switch/add-members-with-switch.d.ts +0 -41
- package/dist/src/add-members-switch/add-members-with-switch.d.ts.map +0 -1
- package/dist/src/availability/availability-settings.d.ts +0 -88
- package/dist/src/availability/availability-settings.d.ts.map +0 -1
- package/dist/src/availability/components/date-override-input-dialog.d.ts +0 -17
- package/dist/src/availability/components/date-override-input-dialog.d.ts.map +0 -1
- package/dist/src/availability/components/date-override-list.d.ts +0 -20
- package/dist/src/availability/components/date-override-list.d.ts.map +0 -1
- package/dist/src/availability/components/schedule-component.d.ts +0 -49
- package/dist/src/availability/components/schedule-component.d.ts.map +0 -1
- package/dist/src/availability/index.d.ts +0 -4
- package/dist/src/availability/index.d.ts.map +0 -1
- package/dist/src/availability/types.d.ts +0 -36
- package/dist/src/availability/types.d.ts.map +0 -1
- package/dist/src/availability/wrappers/availability-settings-platform-wrapper.d.ts +0 -28
- package/dist/src/availability/wrappers/availability-settings-platform-wrapper.d.ts.map +0 -1
- package/dist/src/booker/booker-platform-wrapper.d.ts +0 -5
- package/dist/src/booker/booker-platform-wrapper.d.ts.map +0 -1
- package/dist/src/booker/booker-store-provider.d.ts +0 -11
- package/dist/src/booker/booker-store-provider.d.ts.map +0 -1
- package/dist/src/booker/components/available-time-slots.d.ts +0 -46
- package/dist/src/booker/components/available-time-slots.d.ts.map +0 -1
- package/dist/src/booker/components/available-times-header.d.ts +0 -14
- package/dist/src/booker/components/available-times-header.d.ts.map +0 -1
- package/dist/src/booker/components/available-times.d.ts +0 -46
- package/dist/src/booker/components/available-times.d.ts.map +0 -1
- package/dist/src/booker/components/book-event-form/book-event-form.d.ts +0 -34
- package/dist/src/booker/components/book-event-form/book-event-form.d.ts.map +0 -1
- package/dist/src/booker/components/book-event-form/book-form-as-modal.d.ts +0 -14
- package/dist/src/booker/components/book-event-form/book-form-as-modal.d.ts.map +0 -1
- package/dist/src/booker/components/book-event-form/booking-fields.d.ts +0 -35
- package/dist/src/booker/components/book-event-form/booking-fields.d.ts.map +0 -1
- package/dist/src/booker/components/book-event-form/index.d.ts +0 -5
- package/dist/src/booker/components/book-event-form/index.d.ts.map +0 -1
- package/dist/src/booker/components/book-event-form/skeleton.d.ts +0 -2
- package/dist/src/booker/components/book-event-form/skeleton.d.ts.map +0 -1
- package/dist/src/booker/components/booker-component.d.ts +0 -2
- package/dist/src/booker/components/booker-component.d.ts.map +0 -1
- package/dist/src/booker/components/booker-section.d.ts +0 -15
- package/dist/src/booker/components/booker-section.d.ts.map +0 -1
- package/dist/src/booker/components/dry-run-message.d.ts +0 -4
- package/dist/src/booker/components/dry-run-message.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/available-event-locations.d.ts +0 -6
- package/dist/src/booker/components/event-meta/available-event-locations.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/details.d.ts +0 -34
- package/dist/src/booker/components/event-meta/details.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/duration.d.ts +0 -9
- package/dist/src/booker/components/event-meta/duration.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/index.d.ts +0 -7
- package/dist/src/booker/components/event-meta/index.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/locations.d.ts +0 -5
- package/dist/src/booker/components/event-meta/locations.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/members.d.ts +0 -13
- package/dist/src/booker/components/event-meta/members.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/occurences.d.ts +0 -5
- package/dist/src/booker/components/event-meta/occurences.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/price-icon.d.ts +0 -5
- package/dist/src/booker/components/event-meta/price-icon.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/price.d.ts +0 -7
- package/dist/src/booker/components/event-meta/price.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/skeleton.d.ts +0 -2
- package/dist/src/booker/components/event-meta/skeleton.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/title.d.ts +0 -9
- package/dist/src/booker/components/event-meta/title.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta.d.ts +0 -25
- package/dist/src/booker/components/event-meta.d.ts.map +0 -1
- package/dist/src/booker/components/external-redirect-interstitial.d.ts +0 -9
- package/dist/src/booker/components/external-redirect-interstitial.d.ts.map +0 -1
- package/dist/src/booker/components/form-builder/components.d.ts +0 -48
- package/dist/src/booker/components/form-builder/components.d.ts.map +0 -1
- package/dist/src/booker/components/form-builder/form-builder-field.d.ts +0 -46
- package/dist/src/booker/components/form-builder/form-builder-field.d.ts.map +0 -1
- package/dist/src/booker/components/having-trouble-finding-time.d.ts +0 -9
- package/dist/src/booker/components/having-trouble-finding-time.d.ts.map +0 -1
- package/dist/src/booker/components/header.d.ts +0 -18
- package/dist/src/booker/components/header.d.ts.map +0 -1
- package/dist/src/booker/components/instant-booking.d.ts +0 -16
- package/dist/src/booker/components/instant-booking.d.ts.map +0 -1
- package/dist/src/booker/components/out-of-office-in-slots.d.ts +0 -19
- package/dist/src/booker/components/out-of-office-in-slots.d.ts.map +0 -1
- package/dist/src/booker/components/overlay-calendar/overlay-calendar-continue-modal.d.ts +0 -8
- package/dist/src/booker/components/overlay-calendar/overlay-calendar-continue-modal.d.ts.map +0 -1
- package/dist/src/booker/components/overlay-calendar/overlay-calendar-settings-modal.d.ts +0 -11
- package/dist/src/booker/components/overlay-calendar/overlay-calendar-settings-modal.d.ts.map +0 -1
- package/dist/src/booker/components/overlay-calendar/overlay-calendar-switch.d.ts +0 -8
- package/dist/src/booker/components/overlay-calendar/overlay-calendar-switch.d.ts.map +0 -1
- package/dist/src/booker/components/overlay-calendar/overlay-calendar.d.ts +0 -28
- package/dist/src/booker/components/overlay-calendar/overlay-calendar.d.ts.map +0 -1
- package/dist/src/booker/components/overlay-calendar/store.d.ts +0 -12
- package/dist/src/booker/components/overlay-calendar/store.d.ts.map +0 -1
- package/dist/src/booker/components/pay-icon.d.ts +0 -5
- package/dist/src/booker/components/pay-icon.d.ts.map +0 -1
- package/dist/src/booker/components/price.d.ts +0 -9
- package/dist/src/booker/components/price.d.ts.map +0 -1
- package/dist/src/booker/components/redirect-to-instant-meeting-modal.d.ts +0 -8
- package/dist/src/booker/components/redirect-to-instant-meeting-modal.d.ts.map +0 -1
- package/dist/src/booker/components/scrollable-with-gradients.d.ts +0 -9
- package/dist/src/booker/components/scrollable-with-gradients.d.ts.map +0 -1
- package/dist/src/booker/components/seats-availability-text.d.ts +0 -18
- package/dist/src/booker/components/seats-availability-text.d.ts.map +0 -1
- package/dist/src/booker/components/section.d.ts +0 -17
- package/dist/src/booker/components/section.d.ts.map +0 -1
- package/dist/src/booker/components/slot-selection-modal-header.d.ts +0 -14
- package/dist/src/booker/components/slot-selection-modal-header.d.ts.map +0 -1
- package/dist/src/booker/components/time-format-toggle.d.ts +0 -4
- package/dist/src/booker/components/time-format-toggle.d.ts.map +0 -1
- package/dist/src/booker/components/unavailable.d.ts +0 -3
- package/dist/src/booker/components/unavailable.d.ts.map +0 -1
- package/dist/src/booker/components/unpublished-entity.d.ts +0 -8
- package/dist/src/booker/components/unpublished-entity.d.ts.map +0 -1
- package/dist/src/booker/components/verify-code-dialog.d.ts +0 -15
- package/dist/src/booker/components/verify-code-dialog.d.ts.map +0 -1
- package/dist/src/booker/config.d.ts +0 -86
- package/dist/src/booker/config.d.ts.map +0 -1
- package/dist/src/booker/framer-features.d.ts +0 -3
- package/dist/src/booker/framer-features.d.ts.map +0 -1
- package/dist/src/booker/hooks/embed-stubs.d.ts +0 -20
- package/dist/src/booker/hooks/embed-stubs.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-available-time-slots.d.ts +0 -23
- package/dist/src/booker/hooks/use-available-time-slots.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-booker-layout.d.ts +0 -51
- package/dist/src/booker/hooks/use-booker-layout.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-booker-time.d.ts +0 -7
- package/dist/src/booker/hooks/use-booker-time.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-booking-form.d.ts +0 -65
- package/dist/src/booker/hooks/use-booking-form.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-bookings-types.d.ts +0 -10
- package/dist/src/booker/hooks/use-bookings-types.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-check-overlap-with-overlay.d.ts +0 -11
- package/dist/src/booker/hooks/use-check-overlap-with-overlay.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-initialize-week-start.d.ts +0 -2
- package/dist/src/booker/hooks/use-initialize-week-start.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-is-quick-availability-check-feature-enabled.d.ts +0 -15
- package/dist/src/booker/hooks/use-is-quick-availability-check-feature-enabled.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-local-set.d.ts +0 -12
- package/dist/src/booker/hooks/use-local-set.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-non-empty-schedule-days.d.ts +0 -3
- package/dist/src/booker/hooks/use-non-empty-schedule-days.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-overlay-calendar.d.ts +0 -23
- package/dist/src/booker/hooks/use-overlay-calendar.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-should-show-arrows.d.ts +0 -8
- package/dist/src/booker/hooks/use-should-show-arrows.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-skip-confirm-step.d.ts +0 -21
- package/dist/src/booker/hooks/use-skip-confirm-step.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-slots-for-date.d.ts +0 -21
- package/dist/src/booker/hooks/use-slots-for-date.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-stable-timezone.d.ts +0 -5
- package/dist/src/booker/hooks/use-stable-timezone.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-times-for-schedule.d.ts +0 -27
- package/dist/src/booker/hooks/use-times-for-schedule.d.ts.map +0 -1
- package/dist/src/booker/store.d.ts +0 -200
- package/dist/src/booker/store.d.ts.map +0 -1
- package/dist/src/booker/types.d.ts +0 -118
- package/dist/src/booker/types.d.ts.map +0 -1
- package/dist/src/booker/use-slot-reservation-id.d.ts +0 -2
- package/dist/src/booker/use-slot-reservation-id.d.ts.map +0 -1
- package/dist/src/booker/utils/are-different-valid-months.d.ts +0 -2
- package/dist/src/booker/utils/are-different-valid-months.d.ts.map +0 -1
- package/dist/src/booker/utils/dates.d.ts +0 -26
- package/dist/src/booker/utils/dates.d.ts.map +0 -1
- package/dist/src/booker/utils/get-booker-timezone.d.ts +0 -5
- package/dist/src/booker/utils/get-booker-timezone.d.ts.map +0 -1
- package/dist/src/booker/utils/get-booking-duration.d.ts +0 -6
- package/dist/src/booker/utils/get-booking-duration.d.ts.map +0 -1
- package/dist/src/booker/utils/get-prefetch-month-count.d.ts +0 -3
- package/dist/src/booker/utils/get-prefetch-month-count.d.ts.map +0 -1
- package/dist/src/booker/utils/is-booking-dry-run.d.ts +0 -3
- package/dist/src/booker/utils/is-booking-dry-run.d.ts.map +0 -1
- package/dist/src/booker/utils/is-month-change.d.ts +0 -2
- package/dist/src/booker/utils/is-month-change.d.ts.map +0 -1
- package/dist/src/booker/utils/is-month-view-prefetch-enabled.d.ts +0 -2
- package/dist/src/booker/utils/is-month-view-prefetch-enabled.d.ts.map +0 -1
- package/dist/src/booker/utils/is-prefetch-next-month-enabled.d.ts +0 -2
- package/dist/src/booker/utils/is-prefetch-next-month-enabled.d.ts.map +0 -1
- package/dist/src/booker/utils/is-timeslot-available.d.ts +0 -19
- package/dist/src/booker/utils/is-timeslot-available.d.ts.map +0 -1
- package/dist/src/booker/utils/layout.d.ts +0 -2
- package/dist/src/booker/utils/layout.d.ts.map +0 -1
- package/dist/src/booker-embed/booker-embed.d.ts +0 -31
- package/dist/src/booker-embed/booker-embed.d.ts.map +0 -1
- package/dist/src/booker-embed/index.d.ts +0 -2
- package/dist/src/booker-embed/index.d.ts.map +0 -1
- package/dist/src/booker-embed/use-get-routing-form-url-props.d.ts +0 -29
- package/dist/src/booker-embed/use-get-routing-form-url-props.d.ts.map +0 -1
- package/dist/src/cal-provider/base-cal-provider.d.ts +0 -24
- package/dist/src/cal-provider/base-cal-provider.d.ts.map +0 -1
- package/dist/src/cal-provider/cal-o-auth-provider.d.ts +0 -19
- package/dist/src/cal-provider/cal-o-auth-provider.d.ts.map +0 -1
- package/dist/src/cal-provider/cal-provider.d.ts +0 -22
- package/dist/src/cal-provider/cal-provider.d.ts.map +0 -1
- package/dist/src/cal-provider/index.d.ts +0 -3
- package/dist/src/cal-provider/index.d.ts.map +0 -1
- package/dist/src/cal-provider/languages.d.ts +0 -55
- package/dist/src/cal-provider/languages.d.ts.map +0 -1
- package/dist/src/calendar-settings/index.d.ts +0 -2
- package/dist/src/calendar-settings/index.d.ts.map +0 -1
- package/dist/src/calendar-settings/wrappers/calendar-settings-platform-wrapper.d.ts +0 -17
- package/dist/src/calendar-settings/wrappers/calendar-settings-platform-wrapper.d.ts.map +0 -1
- package/dist/src/calendar-view/calendar-view-component.d.ts +0 -2
- package/dist/src/calendar-view/calendar-view-component.d.ts.map +0 -1
- package/dist/src/calendar-view/components/calendar.d.ts +0 -2
- package/dist/src/calendar-view/components/calendar.d.ts.map +0 -1
- package/dist/src/calendar-view/components/date-picker.d.ts +0 -82
- package/dist/src/calendar-view/components/date-picker.d.ts.map +0 -1
- package/dist/src/calendar-view/components/large-calendar.d.ts +0 -19
- package/dist/src/calendar-view/components/large-calendar.d.ts.map +0 -1
- package/dist/src/calendar-view/components/no-availability-dialog.d.ts +0 -19
- package/dist/src/calendar-view/components/no-availability-dialog.d.ts.map +0 -1
- package/dist/src/calendar-view/event-type-calendar-view-component.d.ts +0 -7
- package/dist/src/calendar-view/event-type-calendar-view-component.d.ts.map +0 -1
- package/dist/src/calendar-view/index.d.ts +0 -2
- package/dist/src/calendar-view/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/calendar.d.ts +0 -4
- package/dist/src/calendar-view/scheduler/components/calendar.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/current-time/index.d.ts +0 -6
- package/dist/src/calendar-view/scheduler/components/current-time/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/date-values/index.d.ts +0 -12
- package/dist/src/calendar-view/scheduler/components/date-values/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/default-out-of-office-slot.d.ts +0 -3
- package/dist/src/calendar-view/scheduler/components/default-out-of-office-slot.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/event/all-day-events.d.ts +0 -108
- package/dist/src/calendar-view/scheduler/components/event/all-day-events.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/event/empty.d.ts +0 -18
- package/dist/src/calendar-view/scheduler/components/event/empty.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/event/event-list.d.ts +0 -7
- package/dist/src/calendar-view/scheduler/components/event/event-list.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/event/event.d.ts +0 -14
- package/dist/src/calendar-view/scheduler/components/event/event.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/event/index.d.ts +0 -5
- package/dist/src/calendar-view/scheduler/components/event/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/grid/index.d.ts +0 -10
- package/dist/src/calendar-view/scheduler/components/grid/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/heading/index.d.ts +0 -2
- package/dist/src/calendar-view/scheduler/components/heading/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/heading/scheduler-heading.d.ts +0 -2
- package/dist/src/calendar-view/scheduler/components/heading/scheduler-heading.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/horizontal-lines/index.d.ts +0 -9
- package/dist/src/calendar-view/scheduler/components/horizontal-lines/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/spinner/spinner.d.ts +0 -4
- package/dist/src/calendar-view/scheduler/components/spinner/spinner.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/vertical-lines/index.d.ts +0 -7
- package/dist/src/calendar-view/scheduler/components/vertical-lines/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/state/store.d.ts +0 -7
- package/dist/src/calendar-view/scheduler/state/store.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/types/common.d.ts +0 -2
- package/dist/src/calendar-view/scheduler/types/common.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/types/events.d.ts +0 -20
- package/dist/src/calendar-view/scheduler/types/events.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/types/state.d.ts +0 -93
- package/dist/src/calendar-view/scheduler/types/state.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/utils/index.d.ts +0 -20
- package/dist/src/calendar-view/scheduler/utils/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/utils/overlap.d.ts +0 -20
- package/dist/src/calendar-view/scheduler/utils/overlap.d.ts.map +0 -1
- package/dist/src/calendar-view/wrappers/calendar-view-platform-wrapper.d.ts +0 -22
- package/dist/src/calendar-view/wrappers/calendar-view-platform-wrapper.d.ts.map +0 -1
- package/dist/src/components/atoms-wrapper.d.ts +0 -6
- package/dist/src/components/atoms-wrapper.d.ts.map +0 -1
- package/dist/src/components/ui/address-input.d.ts +0 -11
- package/dist/src/components/ui/address-input.d.ts.map +0 -1
- package/dist/src/components/ui/alert.d.ts +0 -16
- package/dist/src/components/ui/alert.d.ts.map +0 -1
- package/dist/src/components/ui/app-list-card.d.ts +0 -30
- package/dist/src/components/ui/app-list-card.d.ts.map +0 -1
- package/dist/src/components/ui/avatar-group.d.ts +0 -14
- package/dist/src/components/ui/avatar-group.d.ts.map +0 -1
- package/dist/src/components/ui/avatar.d.ts +0 -18
- package/dist/src/components/ui/avatar.d.ts.map +0 -1
- package/dist/src/components/ui/badge.d.ts +0 -553
- package/dist/src/components/ui/badge.d.ts.map +0 -1
- package/dist/src/components/ui/button-group.d.ts +0 -9
- package/dist/src/components/ui/button-group.d.ts.map +0 -1
- package/dist/src/components/ui/button.d.ts +0 -37
- package/dist/src/components/ui/button.d.ts.map +0 -1
- package/dist/src/components/ui/calendar-switch.d.ts +0 -22
- package/dist/src/components/ui/calendar-switch.d.ts.map +0 -1
- package/dist/src/components/ui/checkbox.d.ts +0 -15
- package/dist/src/components/ui/checkbox.d.ts.map +0 -1
- package/dist/src/components/ui/checked-team-select.d.ts +0 -43
- package/dist/src/components/ui/checked-team-select.d.ts.map +0 -1
- package/dist/src/components/ui/confirmation-dialog-content.d.ts +0 -20
- package/dist/src/components/ui/confirmation-dialog-content.d.ts.map +0 -1
- package/dist/src/components/ui/controlled-dialog.d.ts +0 -17
- package/dist/src/components/ui/controlled-dialog.d.ts.map +0 -1
- package/dist/src/components/ui/dialog.d.ts +0 -38
- package/dist/src/components/ui/dialog.d.ts.map +0 -1
- package/dist/src/components/ui/disconnect-calendar-integration.d.ts +0 -12
- package/dist/src/components/ui/disconnect-calendar-integration.d.ts.map +0 -1
- package/dist/src/components/ui/divider.d.ts +0 -3
- package/dist/src/components/ui/divider.d.ts.map +0 -1
- package/dist/src/components/ui/dropdown.d.ts +0 -40
- package/dist/src/components/ui/dropdown.d.ts.map +0 -1
- package/dist/src/components/ui/editable-heading.d.ts +0 -6
- package/dist/src/components/ui/editable-heading.d.ts.map +0 -1
- package/dist/src/components/ui/empty-screen.d.ts +0 -18
- package/dist/src/components/ui/empty-screen.d.ts.map +0 -1
- package/dist/src/components/ui/form.d.ts +0 -11
- package/dist/src/components/ui/form.d.ts.map +0 -1
- package/dist/src/components/ui/icon.d.ts +0 -42
- package/dist/src/components/ui/icon.d.ts.map +0 -1
- package/dist/src/components/ui/icons.d.ts +0 -21
- package/dist/src/components/ui/icons.d.ts.map +0 -1
- package/dist/src/components/ui/info-badge.d.ts +0 -4
- package/dist/src/components/ui/info-badge.d.ts.map +0 -1
- package/dist/src/components/ui/label.d.ts +0 -2
- package/dist/src/components/ui/label.d.ts.map +0 -1
- package/dist/src/components/ui/navigation.d.ts +0 -37
- package/dist/src/components/ui/navigation.d.ts.map +0 -1
- package/dist/src/components/ui/popover.d.ts +0 -17
- package/dist/src/components/ui/popover.d.ts.map +0 -1
- package/dist/src/components/ui/radio-area-group.d.ts +0 -20
- package/dist/src/components/ui/radio-area-group.d.ts.map +0 -1
- package/dist/src/components/ui/radio.d.ts +0 -24
- package/dist/src/components/ui/radio.d.ts.map +0 -1
- package/dist/src/components/ui/react-select-components.d.ts +0 -29
- package/dist/src/components/ui/react-select-components.d.ts.map +0 -1
- package/dist/src/components/ui/select.d.ts +0 -26
- package/dist/src/components/ui/select.d.ts.map +0 -1
- package/dist/src/components/ui/settings-header.d.ts +0 -21
- package/dist/src/components/ui/settings-header.d.ts.map +0 -1
- package/dist/src/components/ui/settings-toggle.d.ts +0 -23
- package/dist/src/components/ui/settings-toggle.d.ts.map +0 -1
- package/dist/src/components/ui/shell.d.ts +0 -31
- package/dist/src/components/ui/shell.d.ts.map +0 -1
- package/dist/src/components/ui/show-toast.d.ts +0 -13
- package/dist/src/components/ui/show-toast.d.ts.map +0 -1
- package/dist/src/components/ui/skeleton.d.ts +0 -31
- package/dist/src/components/ui/skeleton.d.ts.map +0 -1
- package/dist/src/components/ui/switch.d.ts +0 -5
- package/dist/src/components/ui/switch.d.ts.map +0 -1
- package/dist/src/components/ui/text-field.d.ts +0 -99
- package/dist/src/components/ui/text-field.d.ts.map +0 -1
- package/dist/src/components/ui/toast.d.ts +0 -13
- package/dist/src/components/ui/toast.d.ts.map +0 -1
- package/dist/src/components/ui/toaster.d.ts +0 -2
- package/dist/src/components/ui/toaster.d.ts.map +0 -1
- package/dist/src/components/ui/toggle-group.d.ts +0 -20
- package/dist/src/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/src/components/ui/tooltip.d.ts +0 -29
- package/dist/src/components/ui/tooltip.d.ts.map +0 -1
- package/dist/src/components/ui/use-toast.d.ts +0 -45
- package/dist/src/components/ui/use-toast.d.ts.map +0 -1
- package/dist/src/components/ui/user-avatar-group-with-org.d.ts +0 -18
- package/dist/src/components/ui/user-avatar-group-with-org.d.ts.map +0 -1
- package/dist/src/connect/apple/apple-connect.d.ts +0 -4
- package/dist/src/connect/apple/apple-connect.d.ts.map +0 -1
- package/dist/src/connect/components/disconnect-integration-modal.d.ts +0 -19
- package/dist/src/connect/components/disconnect-integration-modal.d.ts.map +0 -1
- package/dist/src/connect/components/office365-account-dialog.d.ts +0 -12
- package/dist/src/connect/components/office365-account-dialog.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/components/app-list.d.ts +0 -65
- package/dist/src/connect/conferencing-apps/components/app-list.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/conferencing-apps-view-platform-wrapper.d.ts +0 -29
- package/dist/src/connect/conferencing-apps/conferencing-apps-view-platform-wrapper.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-atom-bulk-update-event-types-to-default-location.d.ts +0 -10
- package/dist/src/connect/conferencing-apps/hooks/use-atom-bulk-update-event-types-to-default-location.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-atom-get-event-types.d.ts +0 -10
- package/dist/src/connect/conferencing-apps/hooks/use-atom-get-event-types.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-atoms-get-installed-conferencing-apps.d.ts +0 -4
- package/dist/src/connect/conferencing-apps/hooks/use-atoms-get-installed-conferencing-apps.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-connect.d.ts +0 -22
- package/dist/src/connect/conferencing-apps/hooks/use-connect.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-delete-credential.d.ts +0 -9
- package/dist/src/connect/conferencing-apps/hooks/use-delete-credential.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-get-default-conferencing-app.d.ts +0 -6
- package/dist/src/connect/conferencing-apps/hooks/use-get-default-conferencing-app.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-update-user-default-conferencing-app.d.ts +0 -9
- package/dist/src/connect/conferencing-apps/hooks/use-update-user-default-conferencing-app.d.ts.map +0 -1
- package/dist/src/connect/google/gcal-connect.d.ts +0 -4
- package/dist/src/connect/google/gcal-connect.d.ts.map +0 -1
- package/dist/src/connect/index.d.ts +0 -4
- package/dist/src/connect/index.d.ts.map +0 -1
- package/dist/src/connect/o-auth-connect.d.ts +0 -25
- package/dist/src/connect/o-auth-connect.d.ts.map +0 -1
- package/dist/src/connect/outlook/outlook-connect.d.ts +0 -4
- package/dist/src/connect/outlook/outlook-connect.d.ts.map +0 -1
- package/dist/src/connect/stripe/stripe-connect.d.ts +0 -22
- package/dist/src/connect/stripe/stripe-connect.d.ts.map +0 -1
- package/dist/src/constants/api.d.ts +0 -44
- package/dist/src/constants/api.d.ts.map +0 -1
- package/dist/src/constants/app.d.ts +0 -19
- package/dist/src/constants/app.d.ts.map +0 -1
- package/dist/src/constants/apps.d.ts +0 -32
- package/dist/src/constants/apps.d.ts.map +0 -1
- package/dist/src/constants/index.d.ts +0 -4
- package/dist/src/constants/index.d.ts.map +0 -1
- package/dist/src/constants/styles.d.ts +0 -2
- package/dist/src/constants/styles.d.ts.map +0 -1
- package/dist/src/contracts/api.d.ts +0 -27
- package/dist/src/contracts/api.d.ts.map +0 -1
- package/dist/src/contracts/apps.d.ts +0 -21
- package/dist/src/contracts/apps.d.ts.map +0 -1
- package/dist/src/contracts/booker.d.ts +0 -255
- package/dist/src/contracts/booker.d.ts.map +0 -1
- package/dist/src/contracts/bookings.d.ts +0 -154
- package/dist/src/contracts/bookings.d.ts.map +0 -1
- package/dist/src/contracts/calendars.d.ts +0 -82
- package/dist/src/contracts/calendars.d.ts.map +0 -1
- package/dist/src/contracts/event-types.d.ts +0 -225
- package/dist/src/contracts/event-types.d.ts.map +0 -1
- package/dist/src/contracts/index.d.ts +0 -13
- package/dist/src/contracts/index.d.ts.map +0 -1
- package/dist/src/contracts/oauth.d.ts +0 -2
- package/dist/src/contracts/oauth.d.ts.map +0 -1
- package/dist/src/contracts/organizations.d.ts +0 -15
- package/dist/src/contracts/organizations.d.ts.map +0 -1
- package/dist/src/contracts/schedules.d.ts +0 -92
- package/dist/src/contracts/schedules.d.ts.map +0 -1
- package/dist/src/contracts/slots.d.ts +0 -57
- package/dist/src/contracts/slots.d.ts.map +0 -1
- package/dist/src/contracts/teams.d.ts +0 -31
- package/dist/src/contracts/teams.d.ts.map +0 -1
- package/dist/src/contracts/user.d.ts +0 -25
- package/dist/src/contracts/user.d.ts.map +0 -1
- package/dist/src/create-schedule/create-schedule-form.d.ts +0 -18
- package/dist/src/create-schedule/create-schedule-form.d.ts.map +0 -1
- package/dist/src/create-schedule/index.d.ts +0 -2
- package/dist/src/create-schedule/index.d.ts.map +0 -1
- package/dist/src/create-schedule/wrappers/create-schedule-platform-wrapper.d.ts +0 -15
- package/dist/src/create-schedule/wrappers/create-schedule-platform-wrapper.d.ts.map +0 -1
- package/dist/src/destination-calendar/components/destination-calendar-selector.d.ts +0 -10
- package/dist/src/destination-calendar/components/destination-calendar-selector.d.ts.map +0 -1
- package/dist/src/destination-calendar/destination-calendar-selector.d.ts +0 -17
- package/dist/src/destination-calendar/destination-calendar-selector.d.ts.map +0 -1
- package/dist/src/destination-calendar/destination-calendar.d.ts +0 -21
- package/dist/src/destination-calendar/destination-calendar.d.ts.map +0 -1
- package/dist/src/destination-calendar/destination-reminder-selector.d.ts +0 -9
- package/dist/src/destination-calendar/destination-reminder-selector.d.ts.map +0 -1
- package/dist/src/destination-calendar/index.d.ts +0 -2
- package/dist/src/destination-calendar/index.d.ts.map +0 -1
- package/dist/src/destination-calendar/wrappers/destination-calendar-settings-platform-wrapper.d.ts +0 -8
- package/dist/src/destination-calendar/wrappers/destination-calendar-settings-platform-wrapper.d.ts.map +0 -1
- package/dist/src/event-types/components/assign-all-team-members.d.ts +0 -14
- package/dist/src/event-types/components/assign-all-team-members.d.ts.map +0 -1
- package/dist/src/event-types/components/bulk-edit-default-for-events-modal.d.ts +0 -29
- package/dist/src/event-types/components/bulk-edit-default-for-events-modal.d.ts.map +0 -1
- package/dist/src/event-types/components/children-event-type-select.d.ts +0 -34
- package/dist/src/event-types/components/children-event-type-select.d.ts.map +0 -1
- package/dist/src/event-types/components/create-event-type-form.d.ts +0 -29
- package/dist/src/event-types/components/create-event-type-form.d.ts.map +0 -1
- package/dist/src/event-types/components/event-team-assignment-tab.d.ts +0 -2
- package/dist/src/event-types/components/event-team-assignment-tab.d.ts.map +0 -1
- package/dist/src/event-types/components/event-type-list-item.d.ts +0 -12
- package/dist/src/event-types/components/event-type-list-item.d.ts.map +0 -1
- package/dist/src/event-types/components/host-edit-dialogs.d.ts +0 -40
- package/dist/src/event-types/components/host-edit-dialogs.d.ts.map +0 -1
- package/dist/src/event-types/components/learn-more-link.d.ts +0 -15
- package/dist/src/event-types/components/learn-more-link.d.ts.map +0 -1
- package/dist/src/event-types/components/managed-event-dialog.d.ts +0 -13
- package/dist/src/event-types/components/managed-event-dialog.d.ts.map +0 -1
- package/dist/src/event-types/components/recurring-event-controller.d.ts +0 -34
- package/dist/src/event-types/components/recurring-event-controller.d.ts.map +0 -1
- package/dist/src/event-types/components/tabs/event-recurring-tab.d.ts +0 -14
- package/dist/src/event-types/components/tabs/event-recurring-tab.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/assign-all-managed-warning-dialog.d.ts +0 -9
- package/dist/src/event-types/components/team-assignment/assign-all-managed-warning-dialog.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/children-event-types-list.d.ts +0 -11
- package/dist/src/event-types/components/team-assignment/children-event-types-list.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/children-event-types.d.ts +0 -18
- package/dist/src/event-types/components/team-assignment/children-event-types.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/event-team-assignment-tab.d.ts +0 -58
- package/dist/src/event-types/components/team-assignment/event-team-assignment-tab.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/fixed-hosts.d.ts +0 -20
- package/dist/src/event-types/components/team-assignment/fixed-hosts.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/hosts.d.ts +0 -19
- package/dist/src/event-types/components/team-assignment/hosts.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/round-robin-hosts.d.ts +0 -26
- package/dist/src/event-types/components/team-assignment/round-robin-hosts.d.ts.map +0 -1
- package/dist/src/event-types/components/team-event-type-form.d.ts +0 -27
- package/dist/src/event-types/components/team-event-type-form.d.ts.map +0 -1
- package/dist/src/event-types/components/weight-description.d.ts +0 -6
- package/dist/src/event-types/components/weight-description.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-add-verified-email.d.ts +0 -15
- package/dist/src/event-types/hooks/use-add-verified-email.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-apps-data-stub.d.ts +0 -15
- package/dist/src/event-types/hooks/use-apps-data-stub.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-assign-all-managed-warning.d.ts +0 -17
- package/dist/src/event-types/hooks/use-assign-all-managed-warning.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-atom-event-type-app-integration.d.ts +0 -21
- package/dist/src/event-types/hooks/use-atom-event-type-app-integration.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-atom-event-type-by-id.d.ts +0 -4
- package/dist/src/event-types/hooks/use-atom-event-type-by-id.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-atom-event-type-payment-info.d.ts +0 -7
- package/dist/src/event-types/hooks/use-atom-event-type-payment-info.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-atom-get-all-event-types.d.ts +0 -9
- package/dist/src/event-types/hooks/use-atom-get-all-event-types.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-atom-host-schedules.d.ts +0 -14
- package/dist/src/event-types/hooks/use-atom-host-schedules.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-atom-update-event-type.d.ts +0 -10
- package/dist/src/event-types/hooks/use-atom-update-event-type.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-event-type-form.d.ts +0 -15
- package/dist/src/event-types/hooks/use-event-type-form.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-get-verified-emails.d.ts +0 -3
- package/dist/src/event-types/hooks/use-get-verified-emails.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-handle-route-change.d.ts +0 -15
- package/dist/src/event-types/hooks/use-handle-route-change.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-locked-fields-manager-stub.d.ts +0 -29
- package/dist/src/event-types/hooks/use-locked-fields-manager-stub.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-platform-tabs-navigations.d.ts +0 -16
- package/dist/src/event-types/hooks/use-platform-tabs-navigations.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-tabs-navigations.d.ts +0 -40
- package/dist/src/event-types/hooks/use-tabs-navigations.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-team-event-assignment.d.ts +0 -65
- package/dist/src/event-types/hooks/use-team-event-assignment.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-team-members-with-segment-platform.d.ts +0 -36
- package/dist/src/event-types/hooks/use-team-members-with-segment-platform.d.ts.map +0 -1
- package/dist/src/event-types/index.d.ts +0 -2
- package/dist/src/event-types/index.d.ts.map +0 -1
- package/dist/src/event-types/lib/format-event-type-duration.d.ts +0 -13
- package/dist/src/event-types/lib/format-event-type-duration.d.ts.map +0 -1
- package/dist/src/event-types/payments/payment-form.d.ts +0 -9
- package/dist/src/event-types/payments/payment-form.d.ts.map +0 -1
- package/dist/src/event-types/payments/payment-page-types.d.ts +0 -48
- package/dist/src/event-types/payments/payment-page-types.d.ts.map +0 -1
- package/dist/src/event-types/payments/payment.d.ts +0 -39
- package/dist/src/event-types/payments/payment.d.ts.map +0 -1
- package/dist/src/event-types/payments/stripe-payment-form.d.ts +0 -9
- package/dist/src/event-types/payments/stripe-payment-form.d.ts.map +0 -1
- package/dist/src/event-types/types.d.ts +0 -16
- package/dist/src/event-types/types.d.ts.map +0 -1
- package/dist/src/event-types/wrappers/create-event-type-platform-wrapper.d.ts +0 -20
- package/dist/src/event-types/wrappers/create-event-type-platform-wrapper.d.ts.map +0 -1
- package/dist/src/event-types/wrappers/event-recurring-tab-platform-wrapper.d.ts +0 -4
- package/dist/src/event-types/wrappers/event-recurring-tab-platform-wrapper.d.ts.map +0 -1
- package/dist/src/event-types/wrappers/event-team-assignment-tab-platform-wrapper.d.ts +0 -4
- package/dist/src/event-types/wrappers/event-team-assignment-tab-platform-wrapper.d.ts.map +0 -1
- package/dist/src/event-types/wrappers/event-type-platform-wrapper.d.ts +0 -28
- package/dist/src/event-types/wrappers/event-type-platform-wrapper.d.ts.map +0 -1
- package/dist/src/event-types/wrappers/list-event-types-platform-wrapper.d.ts +0 -6
- package/dist/src/event-types/wrappers/list-event-types-platform-wrapper.d.ts.map +0 -1
- package/dist/src/event-types/wrappers/types.d.ts +0 -4
- package/dist/src/event-types/wrappers/types.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-booking.d.ts +0 -2
- package/dist/src/hooks/bookings/use-booking.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-bookings.d.ts +0 -6
- package/dist/src/hooks/bookings/use-bookings.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-cancel-booking.d.ts +0 -23
- package/dist/src/hooks/bookings/use-cancel-booking.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-create-booking.d.ts +0 -11
- package/dist/src/hooks/bookings/use-create-booking.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-create-instant-booking.d.ts +0 -10
- package/dist/src/hooks/bookings/use-create-instant-booking.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-create-recurring-booking.d.ts +0 -10
- package/dist/src/hooks/bookings/use-create-recurring-booking.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-get-booking-for-reschedule.d.ts +0 -10
- package/dist/src/hooks/bookings/use-get-booking-for-reschedule.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-handle-book-event.d.ts +0 -26
- package/dist/src/hooks/bookings/use-handle-book-event.d.ts.map +0 -1
- package/dist/src/hooks/calendars/use-add-selected-calendar.d.ts +0 -21
- package/dist/src/hooks/calendars/use-add-selected-calendar.d.ts.map +0 -1
- package/dist/src/hooks/calendars/use-delete-calendar-credentials.d.ts +0 -22
- package/dist/src/hooks/calendars/use-delete-calendar-credentials.d.ts.map +0 -1
- package/dist/src/hooks/calendars/use-remove-selected-calendar.d.ts +0 -21
- package/dist/src/hooks/calendars/use-remove-selected-calendar.d.ts.map +0 -1
- package/dist/src/hooks/calendars/use-update-destination-calendars.d.ts +0 -21
- package/dist/src/hooks/calendars/use-update-destination-calendars.d.ts.map +0 -1
- package/dist/src/hooks/connect/use-check.d.ts +0 -21
- package/dist/src/hooks/connect/use-check.d.ts.map +0 -1
- package/dist/src/hooks/connect/use-connect.d.ts +0 -18
- package/dist/src/hooks/connect/use-connect.d.ts.map +0 -1
- package/dist/src/hooks/event-types/private/use-create-event-type-form.d.ts +0 -8
- package/dist/src/hooks/event-types/private/use-create-event-type-form.d.ts.map +0 -1
- package/dist/src/hooks/event-types/private/use-create-event-type.d.ts +0 -9
- package/dist/src/hooks/event-types/private/use-create-event-type.d.ts.map +0 -1
- package/dist/src/hooks/event-types/private/use-create-team-event-type.d.ts +0 -13
- package/dist/src/hooks/event-types/private/use-create-team-event-type.d.ts.map +0 -1
- package/dist/src/hooks/event-types/private/use-delete-event-type-by-id.d.ts +0 -9
- package/dist/src/hooks/event-types/private/use-delete-event-type-by-id.d.ts.map +0 -1
- package/dist/src/hooks/event-types/private/use-delete-team-event-type-by-id.d.ts +0 -15
- package/dist/src/hooks/event-types/private/use-delete-team-event-type-by-id.d.ts.map +0 -1
- package/dist/src/hooks/event-types/private/use-event-type-by-id.d.ts +0 -4
- package/dist/src/hooks/event-types/private/use-event-type-by-id.d.ts.map +0 -1
- package/dist/src/hooks/event-types/public/use-atom-get-public-event.d.ts +0 -13
- package/dist/src/hooks/event-types/public/use-atom-get-public-event.d.ts.map +0 -1
- package/dist/src/hooks/event-types/public/use-event-type.d.ts +0 -5
- package/dist/src/hooks/event-types/public/use-event-type.d.ts.map +0 -1
- package/dist/src/hooks/event-types/public/use-event-types.d.ts +0 -4
- package/dist/src/hooks/event-types/public/use-event-types.d.ts.map +0 -1
- package/dist/src/hooks/event-types/public/use-team-event-type.d.ts +0 -4
- package/dist/src/hooks/event-types/public/use-team-event-type.d.ts.map +0 -1
- package/dist/src/hooks/event-types/public/use-team-event-types.d.ts +0 -4
- package/dist/src/hooks/event-types/public/use-team-event-types.d.ts.map +0 -1
- package/dist/src/hooks/organizations/bookings/use-organization-bookings.d.ts +0 -4
- package/dist/src/hooks/organizations/bookings/use-organization-bookings.d.ts.map +0 -1
- package/dist/src/hooks/organizations/bookings/use-organization-user-bookings.d.ts +0 -4
- package/dist/src/hooks/organizations/bookings/use-organization-user-bookings.d.ts.map +0 -1
- package/dist/src/hooks/schedules/types.d.ts +0 -37
- package/dist/src/hooks/schedules/types.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-atom-create-schedule.d.ts +0 -9
- package/dist/src/hooks/schedules/use-atom-create-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-atom-duplicate-schedule.d.ts +0 -11
- package/dist/src/hooks/schedules/use-atom-duplicate-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-atom-get-all-schedules.d.ts +0 -9
- package/dist/src/hooks/schedules/use-atom-get-all-schedules.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-atom-schedule.d.ts +0 -8
- package/dist/src/hooks/schedules/use-atom-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-atom-update-schedule.d.ts +0 -11
- package/dist/src/hooks/schedules/use-atom-update-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-delete-schedule.d.ts +0 -11
- package/dist/src/hooks/schedules/use-delete-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-ensure-default-schedule.d.ts +0 -3
- package/dist/src/hooks/schedules/use-ensure-default-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-schedule.d.ts +0 -7
- package/dist/src/hooks/schedules/use-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-schedules.d.ts +0 -7
- package/dist/src/hooks/schedules/use-schedules.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-update-schedule.d.ts +0 -10
- package/dist/src/hooks/schedules/use-update-schedule.d.ts.map +0 -1
- package/dist/src/hooks/stripe/use-check.d.ts +0 -22
- package/dist/src/hooks/stripe/use-check.d.ts.map +0 -1
- package/dist/src/hooks/stripe/use-connect.d.ts +0 -5
- package/dist/src/hooks/stripe/use-connect.d.ts.map +0 -1
- package/dist/src/hooks/teams/use-team-members.d.ts +0 -10
- package/dist/src/hooks/teams/use-team-members.d.ts.map +0 -1
- package/dist/src/hooks/teams/use-teams.d.ts +0 -7
- package/dist/src/hooks/teams/use-teams.d.ts.map +0 -1
- package/dist/src/hooks/use-api-keys.d.ts +0 -9
- package/dist/src/hooks/use-api-keys.d.ts.map +0 -1
- package/dist/src/hooks/use-atoms-context.d.ts +0 -32
- package/dist/src/hooks/use-atoms-context.d.ts.map +0 -1
- package/dist/src/hooks/use-atoms-locale.d.ts +0 -3
- package/dist/src/hooks/use-atoms-locale.d.ts.map +0 -1
- package/dist/src/hooks/use-available-slots.d.ts +0 -7
- package/dist/src/hooks/use-available-slots.d.ts.map +0 -1
- package/dist/src/hooks/use-calendars-busy-times.d.ts +0 -12
- package/dist/src/hooks/use-calendars-busy-times.d.ts.map +0 -1
- package/dist/src/hooks/use-connected-calendars.d.ts +0 -6
- package/dist/src/hooks/use-connected-calendars.d.ts.map +0 -1
- package/dist/src/hooks/use-delete-selected-slot.d.ts +0 -8
- package/dist/src/hooks/use-delete-selected-slot.d.ts.map +0 -1
- package/dist/src/hooks/use-event-types-list.d.ts +0 -18
- package/dist/src/hooks/use-event-types-list.d.ts.map +0 -1
- package/dist/src/hooks/use-get-city-timezones.d.ts +0 -10
- package/dist/src/hooks/use-get-city-timezones.d.ts.map +0 -1
- package/dist/src/hooks/use-is-platform-booker-embed.d.ts +0 -2
- package/dist/src/hooks/use-is-platform-booker-embed.d.ts.map +0 -1
- package/dist/src/hooks/use-is-platform.d.ts +0 -2
- package/dist/src/hooks/use-is-platform.d.ts.map +0 -1
- package/dist/src/hooks/use-me.d.ts +0 -9
- package/dist/src/hooks/use-me.d.ts.map +0 -1
- package/dist/src/hooks/use-o-auth-client.d.ts +0 -18
- package/dist/src/hooks/use-o-auth-client.d.ts.map +0 -1
- package/dist/src/hooks/use-o-auth-flow.d.ts +0 -15
- package/dist/src/hooks/use-o-auth-flow.d.ts.map +0 -1
- package/dist/src/hooks/use-reserve-slot.d.ts +0 -8
- package/dist/src/hooks/use-reserve-slot.d.ts.map +0 -1
- package/dist/src/hooks/use-schedule-by-event-slug.d.ts +0 -16
- package/dist/src/hooks/use-schedule-by-event-slug.d.ts.map +0 -1
- package/dist/src/hooks/use-slots.d.ts +0 -24
- package/dist/src/hooks/use-slots.d.ts.map +0 -1
- package/dist/src/hooks/use-timezone.d.ts +0 -2
- package/dist/src/hooks/use-timezone.d.ts.map +0 -1
- package/dist/src/hooks/use-update-user-timezone.d.ts +0 -7
- package/dist/src/hooks/use-update-user-timezone.d.ts.map +0 -1
- package/dist/src/hooks/use-verify-code.d.ts +0 -18
- package/dist/src/hooks/use-verify-code.d.ts.map +0 -1
- package/dist/src/hooks/use-verify-email.d.ts +0 -20
- package/dist/src/hooks/use-verify-email.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -132
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/lib/append-client-id-to-email.d.ts +0 -2
- package/dist/src/lib/append-client-id-to-email.d.ts.map +0 -1
- package/dist/src/lib/get-placeholder-content.d.ts +0 -16
- package/dist/src/lib/get-placeholder-content.d.ts.map +0 -1
- package/dist/src/lib/get-query-param.d.ts +0 -3
- package/dist/src/lib/get-query-param.d.ts.map +0 -1
- package/dist/src/lib/get-utm-tracking-parameters.d.ts +0 -5
- package/dist/src/lib/get-utm-tracking-parameters.d.ts.map +0 -1
- package/dist/src/lib/http.d.ts +0 -24
- package/dist/src/lib/http.d.ts.map +0 -1
- package/dist/src/lib/markdown-to-safe-html-client.d.ts +0 -8
- package/dist/src/lib/markdown-to-safe-html-client.d.ts.map +0 -1
- package/dist/src/lib/markdown-to-safe-html.d.ts +0 -2
- package/dist/src/lib/markdown-to-safe-html.d.ts.map +0 -1
- package/dist/src/lib/set-query-param.d.ts +0 -3
- package/dist/src/lib/set-query-param.d.ts.map +0 -1
- package/dist/src/lib/time-zones.d.ts +0 -15
- package/dist/src/lib/time-zones.d.ts.map +0 -1
- package/dist/src/lib/use-locale.d.ts +0 -9
- package/dist/src/lib/use-locale.d.ts.map +0 -1
- package/dist/src/lib/utils.d.ts +0 -3
- package/dist/src/lib/utils.d.ts.map +0 -1
- package/dist/src/list-schedules/components/schedule-list-item.d.ts +0 -39
- package/dist/src/list-schedules/components/schedule-list-item.d.ts.map +0 -1
- package/dist/src/list-schedules/index.d.ts +0 -2
- package/dist/src/list-schedules/index.d.ts.map +0 -1
- package/dist/src/list-schedules/wrappers/list-schedules-platform-wrapper.d.ts +0 -6
- package/dist/src/list-schedules/wrappers/list-schedules-platform-wrapper.d.ts.map +0 -1
- package/dist/src/onboarding/continue-with-calcom.d.ts +0 -3
- package/dist/src/onboarding/continue-with-calcom.d.ts.map +0 -1
- package/dist/src/onboarding/export.d.ts +0 -3
- package/dist/src/onboarding/export.d.ts.map +0 -1
- package/dist/src/onboarding/onboarding-embed.d.ts +0 -3
- package/dist/src/onboarding/onboarding-embed.d.ts.map +0 -1
- package/dist/src/onboarding/types.d.ts +0 -31
- package/dist/src/onboarding/types.d.ts.map +0 -1
- package/dist/src/router/index.d.ts +0 -2
- package/dist/src/router/index.d.ts.map +0 -1
- package/dist/src/router/router.d.ts +0 -30
- package/dist/src/router/router.d.ts.map +0 -1
- package/dist/src/selected-calendars/index.d.ts +0 -2
- package/dist/src/selected-calendars/index.d.ts.map +0 -1
- package/dist/src/selected-calendars/selected-calendars-settings.d.ts +0 -6
- package/dist/src/selected-calendars/selected-calendars-settings.d.ts.map +0 -1
- package/dist/src/selected-calendars/wrappers/selected-calendars-settings-platform-wrapper.d.ts +0 -38
- package/dist/src/selected-calendars/wrappers/selected-calendars-settings-platform-wrapper.d.ts.map +0 -1
- package/dist/src/timezone/index.d.ts +0 -6
- package/dist/src/timezone/index.d.ts.map +0 -1
- package/dist/src/timezone/timezone-select-component.d.ts +0 -15
- package/dist/src/timezone/timezone-select-component.d.ts.map +0 -1
- package/dist/src/troubleshooter/components/calendar-toggle-container-component.d.ts +0 -31
- package/dist/src/troubleshooter/components/calendar-toggle-container-component.d.ts.map +0 -1
- package/dist/src/troubleshooter/components/event-schedule-item-component.d.ts +0 -12
- package/dist/src/troubleshooter/components/event-schedule-item-component.d.ts.map +0 -1
- package/dist/src/troubleshooter/components/event-type-select-component.d.ts +0 -18
- package/dist/src/troubleshooter/components/event-type-select-component.d.ts.map +0 -1
- package/dist/src/troubleshooter/components/troubleshooter-list-item-container.d.ts +0 -12
- package/dist/src/troubleshooter/components/troubleshooter-list-item-container.d.ts.map +0 -1
- package/dist/src/troubleshooter/index.d.ts +0 -2
- package/dist/src/troubleshooter/index.d.ts.map +0 -1
- package/dist/src/troubleshooter/large-calendar/large-calendar.d.ts +0 -6
- package/dist/src/troubleshooter/large-calendar/large-calendar.d.ts.map +0 -1
- package/dist/src/troubleshooter/sidebar/calendar-toggle-container.d.ts +0 -7
- package/dist/src/troubleshooter/sidebar/calendar-toggle-container.d.ts.map +0 -1
- package/dist/src/troubleshooter/sidebar/event-schedule-item.d.ts +0 -2
- package/dist/src/troubleshooter/sidebar/event-schedule-item.d.ts.map +0 -1
- package/dist/src/troubleshooter/sidebar/event-type-select.d.ts +0 -2
- package/dist/src/troubleshooter/sidebar/event-type-select.d.ts.map +0 -1
- package/dist/src/troubleshooter/sidebar/troubleshooter-sidebar.d.ts +0 -17
- package/dist/src/troubleshooter/sidebar/troubleshooter-sidebar.d.ts.map +0 -1
- package/dist/src/troubleshooter/store.d.ts +0 -30
- package/dist/src/troubleshooter/store.d.ts.map +0 -1
- package/dist/src/troubleshooter/types.d.ts +0 -11
- package/dist/src/troubleshooter/types.d.ts.map +0 -1
- package/dist/src/troubleshooter/wrappers/troubleshooter-platform-wrapper.d.ts +0 -14
- package/dist/src/troubleshooter/wrappers/troubleshooter-platform-wrapper.d.ts.map +0 -1
- package/dist/src/types.d.ts +0 -8
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/vendor/analytics.d.ts +0 -17
- package/dist/src/vendor/analytics.d.ts.map +0 -1
- package/dist/src/vendor/availability.d.ts +0 -15
- package/dist/src/vendor/availability.d.ts.map +0 -1
- package/dist/src/vendor/avatar-url.d.ts +0 -23
- package/dist/src/vendor/avatar-url.d.ts.map +0 -1
- package/dist/src/vendor/booker-url.d.ts +0 -13
- package/dist/src/vendor/booker-url.d.ts.map +0 -1
- package/dist/src/vendor/booking-to-mutation-input.d.ts +0 -96
- package/dist/src/vendor/booking-to-mutation-input.d.ts.map +0 -1
- package/dist/src/vendor/cal-ai-phone.d.ts +0 -4
- package/dist/src/vendor/cal-ai-phone.d.ts.map +0 -1
- package/dist/src/vendor/check-for-empty-assignment.d.ts +0 -16
- package/dist/src/vendor/check-for-empty-assignment.d.ts.map +0 -1
- package/dist/src/vendor/children-event-type.d.ts +0 -44
- package/dist/src/vendor/children-event-type.d.ts.map +0 -1
- package/dist/src/vendor/currency.d.ts +0 -3
- package/dist/src/vendor/currency.d.ts.map +0 -1
- package/dist/src/vendor/dayjs/index.d.ts +0 -5
- package/dist/src/vendor/dayjs/index.d.ts.map +0 -1
- package/dist/src/vendor/dayjs/plugins/business-days-plugin.d.ts +0 -11
- package/dist/src/vendor/dayjs/plugins/business-days-plugin.d.ts.map +0 -1
- package/dist/src/vendor/dayjs-utils.d.ts +0 -4
- package/dist/src/vendor/dayjs-utils.d.ts.map +0 -1
- package/dist/src/vendor/error-codes.d.ts +0 -40
- package/dist/src/vendor/error-codes.d.ts.map +0 -1
- package/dist/src/vendor/event-naming.d.ts +0 -33
- package/dist/src/vendor/event-naming.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/base-schema.d.ts +0 -917
- package/dist/src/vendor/form-builder/base-schema.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/field-type-enum.d.ts +0 -4
- package/dist/src/vendor/form-builder/field-type-enum.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/field-types.d.ts +0 -5
- package/dist/src/vendor/form-builder/field-types.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/fields-that-support-label-as-safe-html.d.ts +0 -3
- package/dist/src/vendor/form-builder/fields-that-support-label-as-safe-html.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/props-types.d.ts +0 -18
- package/dist/src/vendor/form-builder/props-types.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/schema.d.ts +0 -761
- package/dist/src/vendor/form-builder/schema.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/system-field.d.ts +0 -9
- package/dist/src/vendor/form-builder/system-field.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/use-should-be-disabled-due-to-prefill.d.ts +0 -12
- package/dist/src/vendor/form-builder/use-should-be-disabled-due-to-prefill.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/utils/get-field-identifier.d.ts +0 -2
- package/dist/src/vendor/form-builder/utils/get-field-identifier.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/utils/variants-config.d.ts +0 -40
- package/dist/src/vendor/form-builder/utils/variants-config.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/utils.d.ts +0 -7
- package/dist/src/vendor/form-builder/utils.d.ts.map +0 -1
- package/dist/src/vendor/form-builder-widgets/index.d.ts +0 -49
- package/dist/src/vendor/form-builder-widgets/index.d.ts.map +0 -1
- package/dist/src/vendor/format-date-time.d.ts +0 -15
- package/dist/src/vendor/format-date-time.d.ts.map +0 -1
- package/dist/src/vendor/get-available-dates-in-month.d.ts +0 -12
- package/dist/src/vendor/get-available-dates-in-month.d.ts.map +0 -1
- package/dist/src/vendor/get-avatar-url.d.ts +0 -5
- package/dist/src/vendor/get-avatar-url.d.ts.map +0 -1
- package/dist/src/vendor/get-routed-team-member-ids.d.ts +0 -2
- package/dist/src/vendor/get-routed-team-member-ids.d.ts.map +0 -1
- package/dist/src/vendor/get-stripe.d.ts +0 -7
- package/dist/src/vendor/get-stripe.d.ts.map +0 -1
- package/dist/src/vendor/get-username-list.d.ts +0 -2
- package/dist/src/vendor/get-username-list.d.ts.map +0 -1
- package/dist/src/vendor/hooks/use-debounce.d.ts +0 -2
- package/dist/src/vendor/hooks/use-debounce.d.ts.map +0 -1
- package/dist/src/vendor/hooks/use-media-query.d.ts +0 -3
- package/dist/src/vendor/hooks/use-media-query.d.ts.map +0 -1
- package/dist/src/vendor/hooks/use-router-query.d.ts +0 -2
- package/dist/src/vendor/hooks/use-router-query.d.ts.map +0 -1
- package/dist/src/vendor/host-group-utils.d.ts +0 -19
- package/dist/src/vendor/host-group-utils.d.ts.map +0 -1
- package/dist/src/vendor/interval-limit.d.ts +0 -6
- package/dist/src/vendor/interval-limit.d.ts.map +0 -1
- package/dist/src/vendor/invert-logo-on-dark.d.ts +0 -2
- package/dist/src/vendor/invert-logo-on-dark.d.ts.map +0 -1
- package/dist/src/vendor/locales/de/common.json.d.ts +0 -319
- package/dist/src/vendor/locales/en/common.json.d.ts +0 -319
- package/dist/src/vendor/locales/es/common.json.d.ts +0 -319
- package/dist/src/vendor/locales/fr/common.json.d.ts +0 -319
- package/dist/src/vendor/locales/it/common.json.d.ts +0 -319
- package/dist/src/vendor/locales/nl/common.json.d.ts +0 -319
- package/dist/src/vendor/locales/pt-BR/common.json.d.ts +0 -319
- package/dist/src/vendor/locations-resolver.d.ts +0 -38
- package/dist/src/vendor/locations-resolver.d.ts.map +0 -1
- package/dist/src/vendor/locations.d.ts +0 -58
- package/dist/src/vendor/locations.d.ts.map +0 -1
- package/dist/src/vendor/parse-dates.d.ts +0 -18
- package/dist/src/vendor/parse-dates.d.ts.map +0 -1
- package/dist/src/vendor/payments.d.ts +0 -50
- package/dist/src/vendor/payments.d.ts.map +0 -1
- package/dist/src/vendor/phone-input/phone-input.d.ts +0 -17
- package/dist/src/vendor/phone-input/phone-input.d.ts.map +0 -1
- package/dist/src/vendor/phone-input/phone-masks.d.ts +0 -8
- package/dist/src/vendor/phone-input/phone-masks.d.ts.map +0 -1
- package/dist/src/vendor/query-param.d.ts +0 -4
- package/dist/src/vendor/query-param.d.ts.map +0 -1
- package/dist/src/vendor/recurring.d.ts +0 -27
- package/dist/src/vendor/recurring.d.ts.map +0 -1
- package/dist/src/vendor/schedule-list-item.d.ts +0 -55
- package/dist/src/vendor/schedule-list-item.d.ts.map +0 -1
- package/dist/src/vendor/scroll.d.ts +0 -2
- package/dist/src/vendor/scroll.d.ts.map +0 -1
- package/dist/src/vendor/server-trans.d.ts +0 -25
- package/dist/src/vendor/server-trans.d.ts.map +0 -1
- package/dist/src/vendor/slugify.d.ts +0 -3
- package/dist/src/vendor/slugify.d.ts.map +0 -1
- package/dist/src/vendor/time-format.d.ts +0 -10
- package/dist/src/vendor/time-format.d.ts.map +0 -1
- package/dist/src/vendor/time-preferences.d.ts +0 -14
- package/dist/src/vendor/time-preferences.d.ts.map +0 -1
- package/dist/src/vendor/time-shift.d.ts +0 -6
- package/dist/src/vendor/time-shift.d.ts.map +0 -1
- package/dist/src/vendor/timezone-constants.d.ts +0 -3
- package/dist/src/vendor/timezone-constants.d.ts.map +0 -1
- package/dist/src/vendor/timezone.d.ts +0 -10
- package/dist/src/vendor/timezone.d.ts.map +0 -1
- package/dist/src/vendor/validate-booker-layouts.d.ts +0 -8
- package/dist/src/vendor/validate-booker-layouts.d.ts.map +0 -1
- package/dist/src/vendor/webstorage.d.ts +0 -18
- package/dist/src/vendor/webstorage.d.ts.map +0 -1
- package/dist/src/vendor/weekday.d.ts +0 -5
- package/dist/src/vendor/weekday.d.ts.map +0 -1
- package/dist/src/vendor/weekstart.d.ts +0 -3
- package/dist/src/vendor/weekstart.d.ts.map +0 -1
- package/dist/vite.config.d.ts +0 -3
- package/dist/vite.config.d.ts.map +0 -1
- package/dist/vitest.config.d.ts +0 -12
- package/dist/vitest.config.d.ts.map +0 -1
- package/src/add-members-switch/add-members-with-switch-platform-wrapper.tsx +0 -9
- package/src/add-members-switch/add-members-with-switch.tsx +0 -321
- package/src/availability/availability-settings.tsx +0 -806
- package/src/availability/components/date-override-input-dialog.tsx +0 -254
- package/src/availability/components/date-override-list.tsx +0 -167
- package/src/availability/components/schedule-component.tsx +0 -790
- package/src/availability/index.ts +0 -3
- package/src/availability/types.ts +0 -40
- package/src/availability/wrappers/availability-settings-platform-wrapper.tsx +0 -224
- package/src/booker/Booker.docs.mdx +0 -12
- package/src/booker/__tests__/config.test.ts +0 -58
- package/src/booker/__tests__/store-extended.test.ts +0 -349
- package/src/booker/__tests__/store.test.ts +0 -230
- package/src/booker/booker-platform-wrapper.tsx +0 -625
- package/src/booker/booker-store-provider.tsx +0 -117
- package/src/booker/components/available-time-slots.tsx +0 -245
- package/src/booker/components/available-times-header.tsx +0 -79
- package/src/booker/components/available-times.tsx +0 -359
- package/src/booker/components/book-event-form/book-event-form.tsx +0 -344
- package/src/booker/components/book-event-form/book-form-as-modal.tsx +0 -85
- package/src/booker/components/book-event-form/booking-fields.tsx +0 -257
- package/src/booker/components/book-event-form/index.ts +0 -4
- package/src/booker/components/book-event-form/skeleton.tsx +0 -29
- package/src/booker/components/booker-component.tsx +0 -699
- package/src/booker/components/booker-section.tsx +0 -49
- package/src/booker/components/dry-run-message.tsx +0 -31
- package/src/booker/components/event-meta/available-event-locations.tsx +0 -121
- package/src/booker/components/event-meta/details.tsx +0 -187
- package/src/booker/components/event-meta/duration.tsx +0 -141
- package/src/booker/components/event-meta/index.ts +0 -6
- package/src/booker/components/event-meta/locations.tsx +0 -71
- package/src/booker/components/event-meta/members.tsx +0 -99
- package/src/booker/components/event-meta/occurences.tsx +0 -142
- package/src/booker/components/event-meta/price-icon.tsx +0 -65
- package/src/booker/components/event-meta/price.tsx +0 -103
- package/src/booker/components/event-meta/skeleton.tsx +0 -19
- package/src/booker/components/event-meta/title.tsx +0 -18
- package/src/booker/components/event-meta.tsx +0 -292
- package/src/booker/components/external-redirect-interstitial.tsx +0 -78
- package/src/booker/components/form-builder/components.tsx +0 -541
- package/src/booker/components/form-builder/form-builder-field.tsx +0 -390
- package/src/booker/components/having-trouble-finding-time.tsx +0 -49
- package/src/booker/components/header.tsx +0 -261
- package/src/booker/components/instant-booking.tsx +0 -74
- package/src/booker/components/out-of-office-in-slots.tsx +0 -116
- package/src/booker/components/overlay-calendar/overlay-calendar-continue-modal.tsx +0 -47
- package/src/booker/components/overlay-calendar/overlay-calendar-settings-modal.tsx +0 -129
- package/src/booker/components/overlay-calendar/overlay-calendar-switch.tsx +0 -73
- package/src/booker/components/overlay-calendar/overlay-calendar.tsx +0 -80
- package/src/booker/components/overlay-calendar/store.ts +0 -27
- package/src/booker/components/pay-icon.tsx +0 -6
- package/src/booker/components/price.tsx +0 -13
- package/src/booker/components/redirect-to-instant-meeting-modal.tsx +0 -121
- package/src/booker/components/scrollable-with-gradients.tsx +0 -77
- package/src/booker/components/seats-availability-text.tsx +0 -43
- package/src/booker/components/section.tsx +0 -51
- package/src/booker/components/slot-selection-modal-header.tsx +0 -116
- package/src/booker/components/time-format-toggle.tsx +0 -28
- package/src/booker/components/unavailable.tsx +0 -30
- package/src/booker/components/unpublished-entity.tsx +0 -30
- package/src/booker/components/verify-code-dialog.tsx +0 -131
- package/src/booker/config.ts +0 -206
- package/src/booker/export.ts +0 -5
- package/src/booker/framer-features.ts +0 -3
- package/src/booker/hooks/__tests__/use-booker-layout.test.tsx +0 -98
- package/src/booker/hooks/__tests__/use-check-overlap-with-overlay.test.ts +0 -95
- package/src/booker/hooks/__tests__/use-local-set.test.tsx +0 -72
- package/src/booker/hooks/__tests__/use-non-empty-schedule-days.test.tsx +0 -37
- package/src/booker/hooks/__tests__/use-overlay-calendar.test.tsx +0 -122
- package/src/booker/hooks/__tests__/use-should-show-arrows.test.tsx +0 -45
- package/src/booker/hooks/__tests__/use-skip-confirm-step.test.ts +0 -54
- package/src/booker/hooks/__tests__/use-slots-for-date.test.tsx +0 -65
- package/src/booker/hooks/__tests__/use-stable-timezone.test.ts +0 -74
- package/src/booker/hooks/__tests__/use-times-for-schedule.test.tsx +0 -132
- package/src/booker/hooks/embed-stubs.ts +0 -30
- package/src/booker/hooks/use-available-time-slots.ts +0 -48
- package/src/booker/hooks/use-booker-layout.ts +0 -131
- package/src/booker/hooks/use-booker-time.ts +0 -21
- package/src/booker/hooks/use-booking-form.ts +0 -108
- package/src/booker/hooks/use-bookings-types.ts +0 -10
- package/src/booker/hooks/use-check-overlap-with-overlay.ts +0 -49
- package/src/booker/hooks/use-initialize-week-start.ts +0 -20
- package/src/booker/hooks/use-is-quick-availability-check-feature-enabled.ts +0 -45
- package/src/booker/hooks/use-local-set.tsx +0 -70
- package/src/booker/hooks/use-non-empty-schedule-days.ts +0 -23
- package/src/booker/hooks/use-overlay-calendar.ts +0 -94
- package/src/booker/hooks/use-should-show-arrows.ts +0 -33
- package/src/booker/hooks/use-skip-confirm-step.ts +0 -79
- package/src/booker/hooks/use-slots-for-date.ts +0 -51
- package/src/booker/hooks/use-stable-timezone.ts +0 -13
- package/src/booker/hooks/use-times-for-schedule.ts +0 -123
- package/src/booker/store.ts +0 -831
- package/src/booker/types.ts +0 -142
- package/src/booker/use-slot-reservation-id.ts +0 -14
- package/src/booker/utils/__tests__/booker-utils.test.ts +0 -159
- package/src/booker/utils/__tests__/is-timeslot-available.test.ts +0 -224
- package/src/booker/utils/are-different-valid-months.ts +0 -5
- package/src/booker/utils/dates.tsx +0 -90
- package/src/booker/utils/get-booker-timezone.ts +0 -9
- package/src/booker/utils/get-booking-duration.ts +0 -19
- package/src/booker/utils/get-prefetch-month-count.ts +0 -24
- package/src/booker/utils/is-booking-dry-run.ts +0 -5
- package/src/booker/utils/is-month-change.ts +0 -5
- package/src/booker/utils/is-month-view-prefetch-enabled.ts +0 -14
- package/src/booker/utils/is-prefetch-next-month-enabled.ts +0 -27
- package/src/booker/utils/is-timeslot-available.ts +0 -78
- package/src/booker/utils/layout.ts +0 -5
- package/src/booker-embed/__tests__/use-get-routing-form-url-props.test.tsx +0 -133
- package/src/booker-embed/booker-embed.tsx +0 -117
- package/src/booker-embed/index.ts +0 -1
- package/src/booker-embed/use-get-routing-form-url-props.tsx +0 -95
- package/src/cal-provider/base-cal-provider.tsx +0 -248
- package/src/cal-provider/cal-o-auth-provider.tsx +0 -77
- package/src/cal-provider/cal-provider.tsx +0 -112
- package/src/cal-provider/index.ts +0 -2
- package/src/cal-provider/languages.ts +0 -78
- package/src/calendar-settings/index.ts +0 -1
- package/src/calendar-settings/wrappers/calendar-settings-platform-wrapper.tsx +0 -45
- package/src/calendar-view/calendar-view-component.tsx +0 -35
- package/src/calendar-view/components/calendar.tsx +0 -1
- package/src/calendar-view/components/date-picker.tsx +0 -498
- package/src/calendar-view/components/large-calendar.tsx +0 -201
- package/src/calendar-view/components/no-availability-dialog.tsx +0 -74
- package/src/calendar-view/event-type-calendar-view-component.tsx +0 -152
- package/src/calendar-view/index.ts +0 -1
- package/src/calendar-view/scheduler/components/calendar.tsx +0 -231
- package/src/calendar-view/scheduler/components/current-time/index.tsx +0 -87
- package/src/calendar-view/scheduler/components/date-values/index.tsx +0 -114
- package/src/calendar-view/scheduler/components/default-out-of-office-slot.tsx +0 -68
- package/src/calendar-view/scheduler/components/event/all-day-events.test.tsx +0 -799
- package/src/calendar-view/scheduler/components/event/all-day-events.tsx +0 -360
- package/src/calendar-view/scheduler/components/event/empty.tsx +0 -229
- package/src/calendar-view/scheduler/components/event/event-list.tsx +0 -137
- package/src/calendar-view/scheduler/components/event/event.tsx +0 -165
- package/src/calendar-view/scheduler/components/event/index.tsx +0 -4
- package/src/calendar-view/scheduler/components/grid/index.tsx +0 -24
- package/src/calendar-view/scheduler/components/heading/index.tsx +0 -1
- package/src/calendar-view/scheduler/components/heading/scheduler-heading.tsx +0 -40
- package/src/calendar-view/scheduler/components/horizontal-lines/index.tsx +0 -48
- package/src/calendar-view/scheduler/components/spinner/spinner.tsx +0 -23
- package/src/calendar-view/scheduler/components/vertical-lines/index.tsx +0 -40
- package/src/calendar-view/scheduler/state/__tests__/store.test.ts +0 -147
- package/src/calendar-view/scheduler/state/store.ts +0 -93
- package/src/calendar-view/scheduler/styles/styles.css +0 -20
- package/src/calendar-view/scheduler/types/common.ts +0 -1
- package/src/calendar-view/scheduler/types/events.ts +0 -20
- package/src/calendar-view/scheduler/types/state.ts +0 -126
- package/src/calendar-view/scheduler/utils/__tests__/overlap.test.ts +0 -650
- package/src/calendar-view/scheduler/utils/__tests__/utils.test.ts +0 -133
- package/src/calendar-view/scheduler/utils/index.ts +0 -100
- package/src/calendar-view/scheduler/utils/overlap.ts +0 -175
- package/src/calendar-view/wrappers/calendar-view-platform-wrapper.tsx +0 -41
- package/src/components/atoms-wrapper.tsx +0 -22
- package/src/components/ui/address-input.tsx +0 -36
- package/src/components/ui/alert.tsx +0 -67
- package/src/components/ui/app-list-card.tsx +0 -94
- package/src/components/ui/avatar-group.tsx +0 -59
- package/src/components/ui/avatar.tsx +0 -94
- package/src/components/ui/badge.tsx +0 -93
- package/src/components/ui/button-group.tsx +0 -40
- package/src/components/ui/button.tsx +0 -177
- package/src/components/ui/calendar-switch.tsx +0 -56
- package/src/components/ui/checkbox.tsx +0 -126
- package/src/components/ui/checked-team-select.tsx +0 -225
- package/src/components/ui/confirmation-dialog-content.tsx +0 -82
- package/src/components/ui/controlled-dialog.tsx +0 -30
- package/src/components/ui/dialog.tsx +0 -165
- package/src/components/ui/disconnect-calendar-integration.tsx +0 -52
- package/src/components/ui/divider.tsx +0 -22
- package/src/components/ui/dropdown.tsx +0 -240
- package/src/components/ui/editable-heading.tsx +0 -64
- package/src/components/ui/empty-screen.tsx +0 -86
- package/src/components/ui/form.tsx +0 -46
- package/src/components/ui/icon.tsx +0 -249
- package/src/components/ui/icons.tsx +0 -313
- package/src/components/ui/info-badge.tsx +0 -12
- package/src/components/ui/label.tsx +0 -13
- package/src/components/ui/navigation.tsx +0 -38
- package/src/components/ui/popover.tsx +0 -31
- package/src/components/ui/radio-area-group.tsx +0 -67
- package/src/components/ui/radio.tsx +0 -72
- package/src/components/ui/react-select-components.tsx +0 -86
- package/src/components/ui/select.tsx +0 -123
- package/src/components/ui/settings-header.tsx +0 -87
- package/src/components/ui/settings-toggle.tsx +0 -123
- package/src/components/ui/shell.tsx +0 -47
- package/src/components/ui/show-toast.tsx +0 -11
- package/src/components/ui/skeleton.tsx +0 -112
- package/src/components/ui/switch.tsx +0 -28
- package/src/components/ui/text-field.tsx +0 -241
- package/src/components/ui/toast.tsx +0 -121
- package/src/components/ui/toaster.tsx +0 -28
- package/src/components/ui/toggle-group.tsx +0 -109
- package/src/components/ui/tooltip.tsx +0 -84
- package/src/components/ui/use-toast.ts +0 -187
- package/src/components/ui/user-avatar-group-with-org.tsx +0 -45
- package/src/connect/apple/apple-connect.tsx +0 -197
- package/src/connect/components/disconnect-integration-modal.tsx +0 -51
- package/src/connect/components/office365-account-dialog.tsx +0 -48
- package/src/connect/conferencing-apps/components/app-list.tsx +0 -238
- package/src/connect/conferencing-apps/conferencing-apps-view-platform-wrapper.tsx +0 -358
- package/src/connect/conferencing-apps/hooks/use-atom-bulk-update-event-types-to-default-location.ts +0 -50
- package/src/connect/conferencing-apps/hooks/use-atom-get-event-types.ts +0 -34
- package/src/connect/conferencing-apps/hooks/use-atoms-get-installed-conferencing-apps.ts +0 -38
- package/src/connect/conferencing-apps/hooks/use-connect.ts +0 -157
- package/src/connect/conferencing-apps/hooks/use-delete-credential.ts +0 -38
- package/src/connect/conferencing-apps/hooks/use-get-default-conferencing-app.ts +0 -38
- package/src/connect/conferencing-apps/hooks/use-update-user-default-conferencing-app.ts +0 -43
- package/src/connect/google/gcal-connect.tsx +0 -42
- package/src/connect/index.ts +0 -3
- package/src/connect/o-auth-connect.tsx +0 -148
- package/src/connect/outlook/outlook-connect.tsx +0 -42
- package/src/connect/stripe/stripe-connect.tsx +0 -81
- package/src/constants/api.ts +0 -114
- package/src/constants/app.ts +0 -44
- package/src/constants/apps.ts +0 -37
- package/src/constants/index.ts +0 -3
- package/src/constants/styles.ts +0 -1
- package/src/contracts/api.ts +0 -30
- package/src/contracts/apps.ts +0 -24
- package/src/contracts/booker.ts +0 -287
- package/src/contracts/bookings.ts +0 -141
- package/src/contracts/calendars.ts +0 -87
- package/src/contracts/event-types.ts +0 -252
- package/src/contracts/index.ts +0 -12
- package/src/contracts/oauth.ts +0 -47
- package/src/contracts/organizations.ts +0 -14
- package/src/contracts/schedules.ts +0 -100
- package/src/contracts/slots.ts +0 -63
- package/src/contracts/teams.ts +0 -35
- package/src/contracts/user.ts +0 -25
- package/src/create-schedule/create-schedule-form.tsx +0 -110
- package/src/create-schedule/index.tsx +0 -1
- package/src/create-schedule/wrappers/create-schedule-platform-wrapper.tsx +0 -69
- package/src/destination-calendar/components/destination-calendar-selector.tsx +0 -34
- package/src/destination-calendar/destination-calendar-selector.tsx +0 -149
- package/src/destination-calendar/destination-calendar.tsx +0 -82
- package/src/destination-calendar/destination-reminder-selector.tsx +0 -51
- package/src/destination-calendar/index.ts +0 -1
- package/src/destination-calendar/wrappers/destination-calendar-settings-platform-wrapper.tsx +0 -62
- package/src/event-types/__tests__/event-type-list-item.test.tsx +0 -196
- package/src/event-types/__tests__/format-event-type-duration.test.ts +0 -47
- package/src/event-types/components/__tests__/children-event-type-select.test.tsx +0 -291
- package/src/event-types/components/assign-all-team-members.tsx +0 -46
- package/src/event-types/components/bulk-edit-default-for-events-modal.tsx +0 -129
- package/src/event-types/components/children-event-type-select.tsx +0 -223
- package/src/event-types/components/create-event-type-form.tsx +0 -160
- package/src/event-types/components/event-team-assignment-tab.tsx +0 -9
- package/src/event-types/components/event-type-list-item.tsx +0 -153
- package/src/event-types/components/host-edit-dialogs.tsx +0 -277
- package/src/event-types/components/learn-more-link.tsx +0 -41
- package/src/event-types/components/managed-event-dialog.tsx +0 -62
- package/src/event-types/components/recurring-event-controller.tsx +0 -247
- package/src/event-types/components/tabs/event-recurring-tab.tsx +0 -34
- package/src/event-types/components/team-assignment/assign-all-managed-warning-dialog.tsx +0 -43
- package/src/event-types/components/team-assignment/children-event-types-list.tsx +0 -43
- package/src/event-types/components/team-assignment/children-event-types.tsx +0 -62
- package/src/event-types/components/team-assignment/event-team-assignment-tab.tsx +0 -300
- package/src/event-types/components/team-assignment/fixed-hosts.tsx +0 -170
- package/src/event-types/components/team-assignment/hosts.tsx +0 -125
- package/src/event-types/components/team-assignment/round-robin-hosts.tsx +0 -266
- package/src/event-types/components/team-event-type-form.tsx +0 -183
- package/src/event-types/components/weight-description.tsx +0 -24
- package/src/event-types/hooks/__tests__/use-assign-all-managed-warning.test.ts +0 -78
- package/src/event-types/hooks/__tests__/use-team-event-assignment.test.tsx +0 -218
- package/src/event-types/hooks/use-add-verified-email.ts +0 -64
- package/src/event-types/hooks/use-apps-data-stub.ts +0 -19
- package/src/event-types/hooks/use-assign-all-managed-warning.ts +0 -45
- package/src/event-types/hooks/use-atom-event-type-app-integration.ts +0 -49
- package/src/event-types/hooks/use-atom-event-type-by-id.ts +0 -25
- package/src/event-types/hooks/use-atom-event-type-payment-info.ts +0 -36
- package/src/event-types/hooks/use-atom-get-all-event-types.ts +0 -30
- package/src/event-types/hooks/use-atom-host-schedules.ts +0 -36
- package/src/event-types/hooks/use-atom-update-event-type.ts +0 -61
- package/src/event-types/hooks/use-event-type-form.test.ts +0 -192
- package/src/event-types/hooks/use-event-type-form.ts +0 -501
- package/src/event-types/hooks/use-get-verified-emails.ts +0 -27
- package/src/event-types/hooks/use-handle-route-change.ts +0 -57
- package/src/event-types/hooks/use-locked-fields-manager-stub.ts +0 -30
- package/src/event-types/hooks/use-platform-tabs-navigations.tsx +0 -138
- package/src/event-types/hooks/use-tabs-navigations.test.ts +0 -31
- package/src/event-types/hooks/use-tabs-navigations.tsx +0 -266
- package/src/event-types/hooks/use-team-event-assignment.ts +0 -127
- package/src/event-types/hooks/use-team-members-with-segment-platform.tsx +0 -107
- package/src/event-types/index.ts +0 -1
- package/src/event-types/lib/format-event-type-duration.ts +0 -25
- package/src/event-types/payments/payment-form.tsx +0 -150
- package/src/event-types/payments/payment-page-types.ts +0 -47
- package/src/event-types/payments/payment.tsx +0 -115
- package/src/event-types/payments/stripe-payment-form.tsx +0 -136
- package/src/event-types/types.ts +0 -16
- package/src/event-types/wrappers/create-event-type-platform-wrapper.tsx +0 -148
- package/src/event-types/wrappers/event-recurring-tab-platform-wrapper.tsx +0 -8
- package/src/event-types/wrappers/event-team-assignment-tab-platform-wrapper.tsx +0 -15
- package/src/event-types/wrappers/event-type-platform-wrapper.tsx +0 -399
- package/src/event-types/wrappers/list-event-types-platform-wrapper.tsx +0 -85
- package/src/event-types/wrappers/types.ts +0 -5
- package/src/hooks/__tests__/use-is-platform.test.tsx +0 -58
- package/src/hooks/__tests__/use-slot-mutations.test.tsx +0 -113
- package/src/hooks/__tests__/use-timezone-hooks.test.tsx +0 -67
- package/src/hooks/__tests__/use-verify-code.test.tsx +0 -120
- package/src/hooks/bookings/__tests__/use-booking-mutations.test.tsx +0 -123
- package/src/hooks/bookings/__tests__/use-booking-queries.test.tsx +0 -108
- package/src/hooks/bookings/use-booking.ts +0 -28
- package/src/hooks/bookings/use-bookings.ts +0 -61
- package/src/hooks/bookings/use-cancel-booking.ts +0 -47
- package/src/hooks/bookings/use-create-booking.ts +0 -43
- package/src/hooks/bookings/use-create-instant-booking.ts +0 -39
- package/src/hooks/bookings/use-create-recurring-booking.ts +0 -42
- package/src/hooks/bookings/use-get-booking-for-reschedule.ts +0 -51
- package/src/hooks/bookings/use-handle-book-event.ts +0 -156
- package/src/hooks/calendars/__tests__/use-calendar-mutations.test.tsx +0 -225
- package/src/hooks/calendars/use-add-selected-calendar.ts +0 -65
- package/src/hooks/calendars/use-delete-calendar-credentials.ts +0 -67
- package/src/hooks/calendars/use-remove-selected-calendar.ts +0 -67
- package/src/hooks/calendars/use-update-destination-calendars.ts +0 -60
- package/src/hooks/connect/__tests__/use-connect.test.tsx +0 -109
- package/src/hooks/connect/use-check.ts +0 -61
- package/src/hooks/connect/use-connect.ts +0 -106
- package/src/hooks/event-types/private/__tests__/event-type-mutations.test.tsx +0 -160
- package/src/hooks/event-types/private/use-create-event-type-form.ts +0 -30
- package/src/hooks/event-types/private/use-create-event-type.ts +0 -38
- package/src/hooks/event-types/private/use-create-team-event-type.ts +0 -42
- package/src/hooks/event-types/private/use-delete-event-type-by-id.ts +0 -30
- package/src/hooks/event-types/private/use-delete-team-event-type-by-id.ts +0 -45
- package/src/hooks/event-types/private/use-event-type-by-id.ts +0 -23
- package/src/hooks/event-types/public/__tests__/public-event-type-hooks.test.tsx +0 -128
- package/src/hooks/event-types/public/use-atom-get-public-event.tsx +0 -80
- package/src/hooks/event-types/public/use-event-type.ts +0 -53
- package/src/hooks/event-types/public/use-event-types.ts +0 -23
- package/src/hooks/event-types/public/use-team-event-type.ts +0 -46
- package/src/hooks/event-types/public/use-team-event-types.ts +0 -26
- package/src/hooks/organizations/bookings/use-organization-bookings.ts +0 -38
- package/src/hooks/organizations/bookings/use-organization-user-bookings.ts +0 -34
- package/src/hooks/schedules/__tests__/use-schedules.test.tsx +0 -168
- package/src/hooks/schedules/types.ts +0 -36
- package/src/hooks/schedules/use-atom-create-schedule.ts +0 -47
- package/src/hooks/schedules/use-atom-duplicate-schedule.ts +0 -45
- package/src/hooks/schedules/use-atom-get-all-schedules.ts +0 -30
- package/src/hooks/schedules/use-atom-schedule.ts +0 -33
- package/src/hooks/schedules/use-atom-update-schedule.ts +0 -54
- package/src/hooks/schedules/use-delete-schedule.ts +0 -54
- package/src/hooks/schedules/use-ensure-default-schedule.ts +0 -23
- package/src/hooks/schedules/use-schedule.ts +0 -34
- package/src/hooks/schedules/use-schedules.ts +0 -34
- package/src/hooks/schedules/use-update-schedule.ts +0 -58
- package/src/hooks/stripe/__tests__/use-check.test.tsx +0 -99
- package/src/hooks/stripe/use-check.ts +0 -73
- package/src/hooks/stripe/use-connect.ts +0 -54
- package/src/hooks/teams/__tests__/use-team-queries.test.tsx +0 -94
- package/src/hooks/teams/use-team-members.ts +0 -32
- package/src/hooks/teams/use-teams.ts +0 -34
- package/src/hooks/use-api-keys.ts +0 -5
- package/src/hooks/use-atoms-context.ts +0 -49
- package/src/hooks/use-atoms-locale.ts +0 -11
- package/src/hooks/use-available-slots.ts +0 -43
- package/src/hooks/use-calendars-busy-times.ts +0 -64
- package/src/hooks/use-connected-calendars.tsx +0 -27
- package/src/hooks/use-delete-selected-slot.ts +0 -52
- package/src/hooks/use-event-types-list.tsx +0 -39
- package/src/hooks/use-get-city-timezones.ts +0 -27
- package/src/hooks/use-is-platform-booker-embed.ts +0 -6
- package/src/hooks/use-is-platform.ts +0 -6
- package/src/hooks/use-me.ts +0 -30
- package/src/hooks/use-o-auth-client.ts +0 -72
- package/src/hooks/use-o-auth-flow.ts +0 -120
- package/src/hooks/use-reserve-slot.ts +0 -48
- package/src/hooks/use-schedule-by-event-slug.tsx +0 -40
- package/src/hooks/use-slots.ts +0 -115
- package/src/hooks/use-timezone.ts +0 -19
- package/src/hooks/use-update-user-timezone.ts +0 -28
- package/src/hooks/use-verify-code.ts +0 -115
- package/src/hooks/use-verify-email.ts +0 -107
- package/src/index.ts +0 -180
- package/src/lib/__tests__/http.test.ts +0 -79
- package/src/lib/append-client-id-to-email.ts +0 -4
- package/src/lib/get-placeholder-content.ts +0 -16
- package/src/lib/get-query-param.ts +0 -14
- package/src/lib/get-utm-tracking-parameters.ts +0 -13
- package/src/lib/http.ts +0 -75
- package/src/lib/markdown-to-safe-html-client.ts +0 -43
- package/src/lib/markdown-to-safe-html.ts +0 -9
- package/src/lib/set-query-param.ts +0 -13
- package/src/lib/time-zones.ts +0 -20
- package/src/lib/use-locale.ts +0 -26
- package/src/lib/utils.ts +0 -6
- package/src/list-schedules/components/schedule-list-item.tsx +0 -183
- package/src/list-schedules/index.ts +0 -1
- package/src/list-schedules/wrappers/list-schedules-platform-wrapper.tsx +0 -130
- package/src/onboarding/continue-with-calcom.tsx +0 -284
- package/src/onboarding/export.ts +0 -2
- package/src/onboarding/onboarding-embed.tsx +0 -266
- package/src/onboarding/types.ts +0 -38
- package/src/router/index.ts +0 -1
- package/src/router/router.tsx +0 -164
- package/src/selected-calendars/index.ts +0 -1
- package/src/selected-calendars/selected-calendars-settings.tsx +0 -7
- package/src/selected-calendars/wrappers/selected-calendars-settings-platform-wrapper.tsx +0 -462
- package/src/timezone/index.tsx +0 -37
- package/src/timezone/timezone-select-component.tsx +0 -193
- package/src/troubleshooter/__tests__/store.test.ts +0 -80
- package/src/troubleshooter/components/calendar-toggle-container-component.tsx +0 -148
- package/src/troubleshooter/components/event-schedule-item-component.tsx +0 -33
- package/src/troubleshooter/components/event-type-select-component.tsx +0 -105
- package/src/troubleshooter/components/troubleshooter-list-item-container.tsx +0 -42
- package/src/troubleshooter/index.ts +0 -1
- package/src/troubleshooter/large-calendar/large-calendar.tsx +0 -30
- package/src/troubleshooter/sidebar/calendar-toggle-container.tsx +0 -25
- package/src/troubleshooter/sidebar/event-schedule-item.tsx +0 -13
- package/src/troubleshooter/sidebar/event-type-select.tsx +0 -8
- package/src/troubleshooter/sidebar/troubleshooter-sidebar.tsx +0 -48
- package/src/troubleshooter/store.ts +0 -110
- package/src/troubleshooter/types.ts +0 -10
- package/src/troubleshooter/wrappers/troubleshooter-platform-wrapper.tsx +0 -89
- package/src/types.ts +0 -7
- package/src/vendor/__tests__/availability.test.ts +0 -60
- package/src/vendor/__tests__/avatar-url.test.ts +0 -75
- package/src/vendor/__tests__/booker-url.test.ts +0 -26
- package/src/vendor/__tests__/booking-to-mutation-input.test.ts +0 -232
- package/src/vendor/__tests__/check-for-empty-assignment.test.ts +0 -59
- package/src/vendor/__tests__/children-event-type.test.ts +0 -64
- package/src/vendor/__tests__/currency.test.ts +0 -48
- package/src/vendor/__tests__/dayjs-utils.test.ts +0 -37
- package/src/vendor/__tests__/error-codes.test.ts +0 -69
- package/src/vendor/__tests__/event-naming.test.ts +0 -32
- package/src/vendor/__tests__/format-date-time.test.ts +0 -90
- package/src/vendor/__tests__/get-available-dates-in-month.test.ts +0 -51
- package/src/vendor/__tests__/host-group-utils.test.ts +0 -117
- package/src/vendor/__tests__/interval-limit.test.ts +0 -42
- package/src/vendor/__tests__/locations-resolver.test.ts +0 -48
- package/src/vendor/__tests__/locations.test.ts +0 -109
- package/src/vendor/__tests__/misc-utils.test.ts +0 -219
- package/src/vendor/__tests__/parse-dates.test.ts +0 -67
- package/src/vendor/__tests__/payments.test.ts +0 -126
- package/src/vendor/__tests__/query-param.test.ts +0 -70
- package/src/vendor/__tests__/recurring.test.ts +0 -104
- package/src/vendor/__tests__/slugify.test.ts +0 -48
- package/src/vendor/__tests__/time-shift.test.ts +0 -48
- package/src/vendor/__tests__/timezone.test.ts +0 -77
- package/src/vendor/__tests__/validate-booker-layouts.test.ts +0 -40
- package/src/vendor/__tests__/webstorage.test.ts +0 -148
- package/src/vendor/__tests__/weekday.test.ts +0 -61
- package/src/vendor/__tests__/weekstart.test.ts +0 -45
- package/src/vendor/analytics.ts +0 -23
- package/src/vendor/availability.ts +0 -52
- package/src/vendor/avatar-url.ts +0 -39
- package/src/vendor/booker-url.ts +0 -23
- package/src/vendor/booking-to-mutation-input.ts +0 -166
- package/src/vendor/cal-ai-phone.ts +0 -31
- package/src/vendor/check-for-empty-assignment.ts +0 -24
- package/src/vendor/children-event-type.ts +0 -50
- package/src/vendor/currency.ts +0 -39
- package/src/vendor/dayjs/index.ts +0 -30
- package/src/vendor/dayjs/plugins/__tests__/business-days-plugin.test.ts +0 -168
- package/src/vendor/dayjs/plugins/business-days-plugin.ts +0 -189
- package/src/vendor/dayjs-utils.ts +0 -13
- package/src/vendor/error-codes.ts +0 -39
- package/src/vendor/event-naming.ts +0 -34
- package/src/vendor/form-builder/__tests__/base-schema.test.ts +0 -109
- package/src/vendor/form-builder/__tests__/schema.test.ts +0 -245
- package/src/vendor/form-builder/__tests__/system-field.test.ts +0 -57
- package/src/vendor/form-builder/__tests__/use-should-be-disabled-due-to-prefill.test.ts +0 -24
- package/src/vendor/form-builder/__tests__/utils.test.ts +0 -83
- package/src/vendor/form-builder/base-schema.ts +0 -127
- package/src/vendor/form-builder/field-type-enum.ts +0 -21
- package/src/vendor/form-builder/field-types.ts +0 -161
- package/src/vendor/form-builder/fields-that-support-label-as-safe-html.ts +0 -3
- package/src/vendor/form-builder/props-types.ts +0 -17
- package/src/vendor/form-builder/schema.ts +0 -269
- package/src/vendor/form-builder/system-field.ts +0 -33
- package/src/vendor/form-builder/use-should-be-disabled-due-to-prefill.tsx +0 -107
- package/src/vendor/form-builder/utils/__tests__/get-field-identifier.test.ts +0 -14
- package/src/vendor/form-builder/utils/__tests__/variants-config.test.ts +0 -98
- package/src/vendor/form-builder/utils/get-field-identifier.ts +0 -5
- package/src/vendor/form-builder/utils/variants-config.ts +0 -71
- package/src/vendor/form-builder/utils.ts +0 -48
- package/src/vendor/form-builder-widgets/index.tsx +0 -213
- package/src/vendor/format-date-time.ts +0 -138
- package/src/vendor/get-available-dates-in-month.ts +0 -36
- package/src/vendor/get-avatar-url.ts +0 -15
- package/src/vendor/get-routed-team-member-ids.ts +0 -9
- package/src/vendor/get-stripe.ts +0 -17
- package/src/vendor/get-username-list.ts +0 -14
- package/src/vendor/hooks/__tests__/use-router-query.test.ts +0 -37
- package/src/vendor/hooks/use-debounce.ts +0 -17
- package/src/vendor/hooks/use-media-query.ts +0 -24
- package/src/vendor/hooks/use-router-query.ts +0 -34
- package/src/vendor/host-group-utils.ts +0 -57
- package/src/vendor/interval-limit.ts +0 -17
- package/src/vendor/invert-logo-on-dark.ts +0 -7
- package/src/vendor/locales/de/common.json +0 -316
- package/src/vendor/locales/en/common.json +0 -316
- package/src/vendor/locales/es/common.json +0 -316
- package/src/vendor/locales/fr/common.json +0 -316
- package/src/vendor/locales/it/common.json +0 -316
- package/src/vendor/locales/nl/common.json +0 -316
- package/src/vendor/locales/pt-BR/common.json +0 -316
- package/src/vendor/locations-resolver.ts +0 -28
- package/src/vendor/locations.ts +0 -250
- package/src/vendor/parse-dates.ts +0 -107
- package/src/vendor/payments.ts +0 -107
- package/src/vendor/phone-input/phone-input.tsx +0 -121
- package/src/vendor/phone-input/phone-masks.ts +0 -7
- package/src/vendor/query-param.ts +0 -37
- package/src/vendor/recurring.ts +0 -58
- package/src/vendor/schedule-list-item.ts +0 -47
- package/src/vendor/scroll.ts +0 -4
- package/src/vendor/server-trans.tsx +0 -88
- package/src/vendor/slugify.ts +0 -28
- package/src/vendor/theme/tokens.css +0 -474
- package/src/vendor/time-format.ts +0 -43
- package/src/vendor/time-preferences.ts +0 -32
- package/src/vendor/time-shift.ts +0 -28
- package/src/vendor/timezone-constants.ts +0 -4
- package/src/vendor/timezone.ts +0 -78
- package/src/vendor/validate-booker-layouts.ts +0 -27
- package/src/vendor/webstorage.ts +0 -78
- package/src/vendor/weekday.ts +0 -35
- package/src/vendor/weekstart.ts +0 -20
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { Dayjs } from "dayjs";
|
|
2
|
-
|
|
3
|
-
import dayjs from "../../vendor/dayjs";
|
|
4
|
-
import { useOverlayCalendarStore } from "../components/overlay-calendar/store";
|
|
5
|
-
|
|
6
|
-
function getCurrentTime(date: Date) {
|
|
7
|
-
const hours = date.getHours().toString().padStart(2, "0");
|
|
8
|
-
const minutes = date.getMinutes().toString().padStart(2, "0");
|
|
9
|
-
return `${hours}:${minutes}`;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function useCheckOverlapWithOverlay({
|
|
13
|
-
start,
|
|
14
|
-
selectedDuration,
|
|
15
|
-
offset,
|
|
16
|
-
}: {
|
|
17
|
-
start: Dayjs;
|
|
18
|
-
selectedDuration: number | null;
|
|
19
|
-
offset: number;
|
|
20
|
-
}) {
|
|
21
|
-
const overlayBusyDates = useOverlayCalendarStore((state) => state.overlayBusyDates);
|
|
22
|
-
|
|
23
|
-
let overlappingTimeStart: string | null = null;
|
|
24
|
-
let overlappingTimeEnd: string | null = null;
|
|
25
|
-
|
|
26
|
-
const isOverlapping =
|
|
27
|
-
overlayBusyDates &&
|
|
28
|
-
overlayBusyDates.some((busyDate) => {
|
|
29
|
-
const busyDateStart = dayjs(busyDate.start);
|
|
30
|
-
const busyDateEnd = dayjs(busyDate.end);
|
|
31
|
-
const selectedEndTime = dayjs(start.add(offset, "hours")).add(selectedDuration ?? 0, "minute");
|
|
32
|
-
|
|
33
|
-
const overlaps =
|
|
34
|
-
(selectedEndTime.isSame(busyDateStart) || selectedEndTime.isAfter(busyDateStart)) &&
|
|
35
|
-
start.add(offset, "hours") < busyDateEnd &&
|
|
36
|
-
selectedEndTime > busyDateStart;
|
|
37
|
-
|
|
38
|
-
overlappingTimeStart = overlaps ? getCurrentTime(busyDateStart.toDate()) : null;
|
|
39
|
-
overlappingTimeEnd = overlaps ? getCurrentTime(busyDateEnd.toDate()) : null;
|
|
40
|
-
|
|
41
|
-
return overlaps;
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
return { isOverlapping, overlappingTimeStart, overlappingTimeEnd } as {
|
|
45
|
-
isOverlapping: boolean;
|
|
46
|
-
overlappingTimeStart: string | null;
|
|
47
|
-
overlappingTimeEnd: string | null;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
2
|
-
|
|
3
|
-
import dayjs from "../../vendor/dayjs";
|
|
4
|
-
import { useBookerStoreContext } from "../booker-store-provider";
|
|
5
|
-
import { useSlotsViewOnSmallScreen } from "./embed-stubs";
|
|
6
|
-
|
|
7
|
-
export const useInitializeWeekStart = (isPlatform: boolean, isCalendarView: boolean) => {
|
|
8
|
-
const slotsViewOnSmallScreen = useSlotsViewOnSmallScreen();
|
|
9
|
-
const today = dayjs();
|
|
10
|
-
const weekStart = today.startOf("week").format("YYYY-MM-DD");
|
|
11
|
-
const setSelectedDate = useBookerStoreContext((state) => state.setSelectedDate);
|
|
12
|
-
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
if (slotsViewOnSmallScreen) return;
|
|
15
|
-
|
|
16
|
-
if (isPlatform && isCalendarView) {
|
|
17
|
-
setSelectedDate({ date: weekStart, omitUpdatingParams: true });
|
|
18
|
-
}
|
|
19
|
-
}, []);
|
|
20
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Returns whether the current visitor falls inside the quick-availability
|
|
7
|
-
* percentage rollout. atoms standalone consumers default to `percentage = 0`
|
|
8
|
-
* (always off) since atoms doesn't ship a feature-flag service. The webapp
|
|
9
|
-
* wrapper injects `percentage = PUBLIC_QUICK_AVAILABILITY_ROLLOUT` (and
|
|
10
|
-
* forces 100 in E2E mode) so the booker still gates the check correctly.
|
|
11
|
-
*/
|
|
12
|
-
export type UseIsQuickAvailabilityCheckFeatureEnabledOptions = {
|
|
13
|
-
/** Percentage of visitors for which the feature is enabled (0-100). */
|
|
14
|
-
percentage?: number;
|
|
15
|
-
/** Cookie name used to derive a deterministic visitor id. */
|
|
16
|
-
cookieName?: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const readCookie = (name: string): string | undefined => {
|
|
20
|
-
if (typeof document === "undefined") return undefined;
|
|
21
|
-
return document.cookie
|
|
22
|
-
.split(";")
|
|
23
|
-
.find((cookie) => cookie.trim().startsWith(`${name}=`))
|
|
24
|
-
?.split("=")[1];
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const isWithinPercentage = (percentage: number, cookieName: string): boolean => {
|
|
28
|
-
// 100% rollout — short-circuit so contexts without cookies (e.g. embeds)
|
|
29
|
-
// still see the feature.
|
|
30
|
-
if (percentage >= 100) return true;
|
|
31
|
-
if (percentage <= 0) return false;
|
|
32
|
-
const visitorId = readCookie(cookieName);
|
|
33
|
-
if (!visitorId) return false;
|
|
34
|
-
// Deterministic 0-99 derived from the last 4 hex chars of the visitor id.
|
|
35
|
-
const lastFour = visitorId.slice(-4);
|
|
36
|
-
const bucket = parseInt(lastFour, 16) % 100;
|
|
37
|
-
return bucket < percentage;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const useIsQuickAvailabilityCheckFeatureEnabled = ({
|
|
41
|
-
percentage = 0,
|
|
42
|
-
cookieName = "uid",
|
|
43
|
-
}: UseIsQuickAvailabilityCheckFeatureEnabledOptions = {}): boolean => {
|
|
44
|
-
return useMemo(() => isWithinPercentage(percentage, cookieName), [percentage, cookieName]);
|
|
45
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
|
-
|
|
3
|
-
import { localStorage } from "../../vendor/webstorage";
|
|
4
|
-
|
|
5
|
-
export interface HasExternalId {
|
|
6
|
-
externalId: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function useLocalSet<T extends HasExternalId>(key: string, initialValue: T[]) {
|
|
10
|
-
const [set, setSet] = useState<Set<T>>(() => {
|
|
11
|
-
const storedValue = localStorage.getItem(key);
|
|
12
|
-
return storedValue ? new Set(JSON.parse(storedValue)) : new Set(initialValue);
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
localStorage.setItem(key, JSON.stringify(Array.from(set)));
|
|
17
|
-
}, [key, set]);
|
|
18
|
-
|
|
19
|
-
const addValue = (value: T) => {
|
|
20
|
-
setSet((prevSet) => new Set(prevSet).add(value));
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const removeById = (id: string) => {
|
|
24
|
-
setSet((prevSet) => {
|
|
25
|
-
const updatedSet = new Set(prevSet);
|
|
26
|
-
updatedSet.forEach((item) => {
|
|
27
|
-
if (item.externalId === id) {
|
|
28
|
-
updatedSet.delete(item);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
return updatedSet;
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const toggleValue = (value: T): Set<T> => {
|
|
36
|
-
let newSet = new Set<T>();
|
|
37
|
-
setSet((prevSet) => {
|
|
38
|
-
const updatedSet = new Set<T>(prevSet);
|
|
39
|
-
let itemFound = false;
|
|
40
|
-
|
|
41
|
-
updatedSet.forEach((item) => {
|
|
42
|
-
if (item.externalId === value.externalId) {
|
|
43
|
-
itemFound = true;
|
|
44
|
-
updatedSet.delete(item);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
if (!itemFound) {
|
|
49
|
-
updatedSet.add(value);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
newSet = updatedSet;
|
|
53
|
-
|
|
54
|
-
return updatedSet;
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
return newSet;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const hasItem = (value: T) => {
|
|
61
|
-
return Array.from(set).some((item) => item.externalId === value.externalId);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
const clearSet = () => {
|
|
65
|
-
setSet(() => new Set());
|
|
66
|
-
localStorage.removeItem(key);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
return { set, addValue, removeById, toggleValue, hasItem, clearSet };
|
|
70
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
|
|
3
|
-
import type { Slots } from "../../contracts";
|
|
4
|
-
|
|
5
|
-
const getNonEmptyScheduleDays = (slots?: Slots): string[] => {
|
|
6
|
-
if (typeof slots === "undefined") return [];
|
|
7
|
-
|
|
8
|
-
const nonEmptyDays: string[] = [];
|
|
9
|
-
Object.keys(slots).forEach((date) => {
|
|
10
|
-
if (
|
|
11
|
-
slots[date].some(
|
|
12
|
-
(slot) => !(slot?.away && !slot.toUser && !slot.showNotePublicly) && slots[date].length > 0
|
|
13
|
-
)
|
|
14
|
-
) {
|
|
15
|
-
nonEmptyDays.push(date);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
return nonEmptyDays;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const useNonEmptyScheduleDays = (slots?: Slots) => {
|
|
22
|
-
return useMemo(() => getNonEmptyScheduleDays(slots), [slots]);
|
|
23
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
|
-
import { shallow } from "zustand/shallow";
|
|
3
|
-
import type { EventBusyDate } from "../../contracts";
|
|
4
|
-
import dayjs from "../../vendor/dayjs";
|
|
5
|
-
import { useTimePreferences } from "../../vendor/time-preferences";
|
|
6
|
-
import { useOverlayCalendarStore } from "../components/overlay-calendar/store";
|
|
7
|
-
import type { ToggledConnectedCalendars } from "../types";
|
|
8
|
-
import { useLocalSet } from "./use-local-set";
|
|
9
|
-
|
|
10
|
-
type OverlayCalendarConnectedCalendar = {
|
|
11
|
-
calendars?: {
|
|
12
|
-
externalId: string;
|
|
13
|
-
primary: boolean | null;
|
|
14
|
-
}[];
|
|
15
|
-
credentialId: number;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const useOverlayCalendar = ({
|
|
19
|
-
connectedCalendars,
|
|
20
|
-
overlayBusyDates,
|
|
21
|
-
onToggleCalendar,
|
|
22
|
-
}: {
|
|
23
|
-
overlayBusyDates?: EventBusyDate[];
|
|
24
|
-
onToggleCalendar: (calendarsToLoad: Set<ToggledConnectedCalendars>) => void;
|
|
25
|
-
connectedCalendars: OverlayCalendarConnectedCalendar[];
|
|
26
|
-
}): {
|
|
27
|
-
isOpenOverlayContinueModal: boolean;
|
|
28
|
-
isOpenOverlaySettingsModal: boolean;
|
|
29
|
-
handleCloseContinueModal: (val: boolean) => void;
|
|
30
|
-
handleCloseSettingsModal: (val: boolean) => void;
|
|
31
|
-
handleToggleConnectedCalendar: (externalCalendarId: string, credentialId: number) => void;
|
|
32
|
-
checkIsCalendarToggled: (externalId: string, credentialId: number) => boolean;
|
|
33
|
-
} => {
|
|
34
|
-
const { set, toggleValue, hasItem } = useLocalSet<ToggledConnectedCalendars>(
|
|
35
|
-
"toggledConnectedCalendars",
|
|
36
|
-
[]
|
|
37
|
-
);
|
|
38
|
-
const [initalised, setInitalised] = useState(false);
|
|
39
|
-
const [continueWithProvider, setContinueWithProvider] = useOverlayCalendarStore(
|
|
40
|
-
(state) => [state.continueWithProviderModal, state.setContinueWithProviderModal],
|
|
41
|
-
shallow
|
|
42
|
-
);
|
|
43
|
-
const [calendarSettingsOverlay, setCalendarSettingsOverlay] = useOverlayCalendarStore(
|
|
44
|
-
(state) => [state.calendarSettingsOverlayModal, state.setCalendarSettingsOverlayModal],
|
|
45
|
-
shallow
|
|
46
|
-
);
|
|
47
|
-
const setOverlayBusyDates = useOverlayCalendarStore((state) => state.setOverlayBusyDates);
|
|
48
|
-
const { timezone } = useTimePreferences();
|
|
49
|
-
|
|
50
|
-
useEffect(() => {
|
|
51
|
-
if (overlayBusyDates) {
|
|
52
|
-
const nowDate = dayjs();
|
|
53
|
-
const usersTimezoneDate = nowDate.tz(timezone);
|
|
54
|
-
const offset = (usersTimezoneDate.utcOffset() - nowDate.utcOffset()) / 60;
|
|
55
|
-
|
|
56
|
-
const offsettedArray = overlayBusyDates.map((item) => ({
|
|
57
|
-
...item,
|
|
58
|
-
start: dayjs(item.start).add(offset, "hours").toDate(),
|
|
59
|
-
end: dayjs(item.end).add(offset, "hours").toDate(),
|
|
60
|
-
}));
|
|
61
|
-
setOverlayBusyDates(offsettedArray);
|
|
62
|
-
}
|
|
63
|
-
}, [overlayBusyDates]);
|
|
64
|
-
|
|
65
|
-
useEffect(() => {
|
|
66
|
-
if (connectedCalendars && set.size === 0 && !initalised) {
|
|
67
|
-
connectedCalendars.forEach((item) => {
|
|
68
|
-
item.calendars?.forEach((cal) => {
|
|
69
|
-
const id = { credentialId: item.credentialId, externalId: cal.externalId };
|
|
70
|
-
if (cal.primary) {
|
|
71
|
-
toggleValue(id);
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
setInitalised(true);
|
|
76
|
-
}
|
|
77
|
-
}, [hasItem, set, initalised]);
|
|
78
|
-
|
|
79
|
-
const handleToggleConnectedCalendar = (externalCalendarId: string, credentialId: number): void => {
|
|
80
|
-
const calendarsToLoad = toggleValue({ credentialId, externalId: externalCalendarId });
|
|
81
|
-
setOverlayBusyDates([]);
|
|
82
|
-
onToggleCalendar(calendarsToLoad);
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
return {
|
|
86
|
-
isOpenOverlayContinueModal: continueWithProvider,
|
|
87
|
-
isOpenOverlaySettingsModal: calendarSettingsOverlay,
|
|
88
|
-
handleCloseContinueModal: (val: boolean) => setContinueWithProvider(val),
|
|
89
|
-
handleCloseSettingsModal: (val: boolean) => setCalendarSettingsOverlay(val),
|
|
90
|
-
handleToggleConnectedCalendar,
|
|
91
|
-
checkIsCalendarToggled: (externalId: string, credentialId: number) =>
|
|
92
|
-
hasItem({ credentialId, externalId }),
|
|
93
|
-
};
|
|
94
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { UIEvent } from "react";
|
|
2
|
-
import { useEffect, useRef, useState } from "react";
|
|
3
|
-
|
|
4
|
-
export function useShouldShowArrows() {
|
|
5
|
-
const ref = useRef<HTMLUListElement>(null);
|
|
6
|
-
const [showArrowScroll, setShowArrowScroll] = useState({
|
|
7
|
-
left: false,
|
|
8
|
-
right: false,
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
const appCategoryList = ref.current;
|
|
13
|
-
if (appCategoryList) {
|
|
14
|
-
const isAtStart = appCategoryList.scrollLeft <= 0;
|
|
15
|
-
const isAtEnd = appCategoryList.scrollWidth <= appCategoryList.clientWidth + appCategoryList.scrollLeft;
|
|
16
|
-
setShowArrowScroll({
|
|
17
|
-
left: !isAtStart,
|
|
18
|
-
right: !isAtEnd,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}, [ref.current?.scrollWidth, ref.current?.clientWidth]);
|
|
22
|
-
|
|
23
|
-
const calculateScroll = (e: UIEvent<HTMLUListElement>) => {
|
|
24
|
-
const target = e.currentTarget;
|
|
25
|
-
const isAtEnd = target.scrollWidth <= target.clientWidth + target.scrollLeft + 1;
|
|
26
|
-
setShowArrowScroll({
|
|
27
|
-
left: target.scrollLeft > 0,
|
|
28
|
-
right: !isAtEnd,
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
return { ref, calculateScroll, leftVisible: showArrowScroll.left, rightVisible: showArrowScroll.right };
|
|
33
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck — generic form ref, callers may use their own form value shape
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
import { useEffect, useState } from "react";
|
|
5
|
-
import type { UseFormReturn } from "react-hook-form";
|
|
6
|
-
import type { BookerEvent } from "../../contracts";
|
|
7
|
-
import { useBookerStore } from "../store";
|
|
8
|
-
|
|
9
|
-
type BookerState = "loading" | "selecting_date" | "selecting_time" | "booking";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Decides whether the booker can skip the confirm step (jump straight from
|
|
13
|
-
* timeslot selection to a successful booking) when the user has already
|
|
14
|
-
* filled all required fields via prefill / session.
|
|
15
|
-
*
|
|
16
|
-
* Atoms standalone consumers can't run the full bookingResponses zod schema
|
|
17
|
-
* (it depends on `@calcom/features/bookings/lib/getBookingResponsesSchema`
|
|
18
|
-
* which drags in Prisma + form-builder), so by default the hook returns
|
|
19
|
-
* `false` (always show the confirm step). The webapp wrapper injects
|
|
20
|
-
* `shouldSkipForResponses` — an async checker that runs the schema's
|
|
21
|
-
* `safeParseAsync` against the current form responses.
|
|
22
|
-
*/
|
|
23
|
-
export type UseSkipConfirmStepOptions = {
|
|
24
|
-
shouldSkipForResponses?: (responses: unknown) => Promise<boolean>;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const useSkipConfirmStep = (
|
|
28
|
-
bookingForm: UseFormReturn<any>,
|
|
29
|
-
bookerState: BookerState,
|
|
30
|
-
isInstantMeeting: boolean,
|
|
31
|
-
isWeekView: boolean,
|
|
32
|
-
bookingFields?: BookerEvent["bookingFields"],
|
|
33
|
-
locations?: BookerEvent["locations"],
|
|
34
|
-
options: UseSkipConfirmStepOptions = {}
|
|
35
|
-
) => {
|
|
36
|
-
const [canSkip, setCanSkip] = useState(false);
|
|
37
|
-
const rescheduleUid = useBookerStore((state) => state.rescheduleUid);
|
|
38
|
-
const { shouldSkipForResponses } = options;
|
|
39
|
-
const bookingFormValues = bookingForm?.getValues?.() ?? {};
|
|
40
|
-
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
let cancelled = false;
|
|
43
|
-
const checkSkipStep = async () => {
|
|
44
|
-
if (!bookingFields || (locations && locations.length > 1)) {
|
|
45
|
-
if (!cancelled) setCanSkip(false);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
// No injected resolver — atoms's safe default.
|
|
49
|
-
if (!shouldSkipForResponses) {
|
|
50
|
-
if (!cancelled) setCanSkip(false);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
try {
|
|
54
|
-
const ok = await shouldSkipForResponses(bookingFormValues.responses);
|
|
55
|
-
if (!cancelled) setCanSkip(ok);
|
|
56
|
-
} catch {
|
|
57
|
-
if (!cancelled) setCanSkip(false);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
const isSkipConfirmStepSupported = !isInstantMeeting && !isWeekView;
|
|
61
|
-
if (bookerState === "selecting_time" && isSkipConfirmStepSupported) {
|
|
62
|
-
checkSkipStep();
|
|
63
|
-
}
|
|
64
|
-
return () => {
|
|
65
|
-
cancelled = true;
|
|
66
|
-
};
|
|
67
|
-
}, [
|
|
68
|
-
bookingFormValues,
|
|
69
|
-
bookingFields,
|
|
70
|
-
rescheduleUid,
|
|
71
|
-
bookerState,
|
|
72
|
-
isWeekView,
|
|
73
|
-
isInstantMeeting,
|
|
74
|
-
locations,
|
|
75
|
-
shouldSkipForResponses,
|
|
76
|
-
]);
|
|
77
|
-
|
|
78
|
-
return canSkip;
|
|
79
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
2
|
-
|
|
3
|
-
import type { Slots } from "../../contracts";
|
|
4
|
-
import type { Slot } from "../types";
|
|
5
|
-
|
|
6
|
-
/** Slots for a specific YYYY-MM-DD date from a schedule cache. */
|
|
7
|
-
export const useSlotsForDate = (date: string | null, slots?: Slots) => {
|
|
8
|
-
return useMemo(() => {
|
|
9
|
-
if (!date || typeof slots === "undefined") return [];
|
|
10
|
-
return slots[date] || [];
|
|
11
|
-
}, [date, slots]);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Slots grouped per day. `toggleConfirmButton` flips the
|
|
16
|
-
* `showConfirmButton` tentative flag for the clicked slot (used by
|
|
17
|
-
* the AvailableTimes "skip confirm step" flow).
|
|
18
|
-
*/
|
|
19
|
-
export const useSlotsForAvailableDates = (dates: (string | null)[], slots?: Slots) => {
|
|
20
|
-
const [slotsPerDay, setSlotsPerDay] = useState<{ date: string | null; slots: Slots[string] }[]>([]);
|
|
21
|
-
|
|
22
|
-
const toggleConfirmButton = useCallback((selectedSlot: Slot) => {
|
|
23
|
-
setSlotsPerDay((prevSlotsPerDay) =>
|
|
24
|
-
prevSlotsPerDay.map(({ date, slots: daySlots }) => ({
|
|
25
|
-
date,
|
|
26
|
-
slots: daySlots.map((slot) => ({
|
|
27
|
-
...slot,
|
|
28
|
-
showConfirmButton: slot.time === selectedSlot.time ? !selectedSlot?.showConfirmButton : false,
|
|
29
|
-
})),
|
|
30
|
-
}))
|
|
31
|
-
);
|
|
32
|
-
}, []);
|
|
33
|
-
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
if (slots === undefined) {
|
|
36
|
-
setSlotsPerDay([]);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const updatedSlots = dates
|
|
41
|
-
.filter((date) => date !== null)
|
|
42
|
-
.map((date) => ({
|
|
43
|
-
slots: slots[`${date}`] || [],
|
|
44
|
-
date,
|
|
45
|
-
}));
|
|
46
|
-
|
|
47
|
-
setSlotsPerDay(updatedSlots);
|
|
48
|
-
}, [JSON.stringify(dates), JSON.stringify(slots)]);
|
|
49
|
-
|
|
50
|
-
return { slotsPerDay, setSlotsPerDay, toggleConfirmButton } as const;
|
|
51
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { useRef } from "react";
|
|
2
|
-
|
|
3
|
-
export function useStableTimezone(
|
|
4
|
-
timezone: string,
|
|
5
|
-
restrictionSchedule?: { id: number | null; useBookerTimezone: boolean }
|
|
6
|
-
): string {
|
|
7
|
-
const initialRef = useRef(timezone);
|
|
8
|
-
const shouldPin =
|
|
9
|
-
restrictionSchedule?.id != null &&
|
|
10
|
-
restrictionSchedule.id > 0 &&
|
|
11
|
-
restrictionSchedule.useBookerTimezone === false;
|
|
12
|
-
return shouldPin ? initialRef.current : timezone;
|
|
13
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { shallow } from "zustand/shallow";
|
|
2
|
-
import type { BookerState } from "../../contracts";
|
|
3
|
-
import dayjs from "../../vendor/dayjs";
|
|
4
|
-
import { useBookerStoreContext } from "../booker-store-provider";
|
|
5
|
-
import { getPrefetchMonthCount } from "../utils/get-prefetch-month-count";
|
|
6
|
-
import { isPrefetchNextMonthEnabled } from "../utils/is-prefetch-next-month-enabled";
|
|
7
|
-
|
|
8
|
-
type UseScheduleWithCacheArgs = {
|
|
9
|
-
username?: string | null;
|
|
10
|
-
eventSlug?: string | null;
|
|
11
|
-
eventId?: number | null;
|
|
12
|
-
month?: string | null;
|
|
13
|
-
timezone?: string | null;
|
|
14
|
-
selectedDate?: string | null;
|
|
15
|
-
duration?: number | null;
|
|
16
|
-
dayCount?: number | null;
|
|
17
|
-
rescheduleUid?: string | null;
|
|
18
|
-
isTeamEvent?: boolean;
|
|
19
|
-
orgSlug?: string;
|
|
20
|
-
teamMemberEmail?: string | null;
|
|
21
|
-
useApiV2?: boolean;
|
|
22
|
-
enabled?: boolean;
|
|
23
|
-
bookerLayout?: {
|
|
24
|
-
layout: string;
|
|
25
|
-
extraDays: number;
|
|
26
|
-
columnViewExtraDays: { current: number };
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
type UseTimesForScheduleProps = Pick<
|
|
31
|
-
UseScheduleWithCacheArgs,
|
|
32
|
-
"month" | "dayCount" | "selectedDate" | "bookerLayout"
|
|
33
|
-
>;
|
|
34
|
-
|
|
35
|
-
interface UsePrefetchParams {
|
|
36
|
-
date: string;
|
|
37
|
-
month: string | null;
|
|
38
|
-
bookerLayout?: {
|
|
39
|
-
layout: string;
|
|
40
|
-
extraDays: number;
|
|
41
|
-
columnViewExtraDays: { current: number };
|
|
42
|
-
};
|
|
43
|
-
bookerState: BookerState;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const usePrefetch = ({ date, month, bookerLayout, bookerState }: UsePrefetchParams) => {
|
|
47
|
-
if (!bookerLayout) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const dateMonth = dayjs(date).month();
|
|
52
|
-
const monthAfterAdding1Month = dayjs(date).add(1, "month").month();
|
|
53
|
-
const monthAfterAddingExtraDays = dayjs(date).add(bookerLayout.extraDays, "day").month();
|
|
54
|
-
const monthAfterAddingExtraDaysColumnView = dayjs(date)
|
|
55
|
-
.add(bookerLayout.columnViewExtraDays.current, "day")
|
|
56
|
-
.month();
|
|
57
|
-
|
|
58
|
-
const prefetchNextMonth = isPrefetchNextMonthEnabled(
|
|
59
|
-
bookerLayout.layout,
|
|
60
|
-
date,
|
|
61
|
-
dateMonth,
|
|
62
|
-
monthAfterAddingExtraDays,
|
|
63
|
-
monthAfterAddingExtraDaysColumnView,
|
|
64
|
-
month,
|
|
65
|
-
bookerLayout.extraDays
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
if (!prefetchNextMonth) {
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const monthCount = getPrefetchMonthCount(
|
|
73
|
-
bookerLayout.layout,
|
|
74
|
-
bookerState,
|
|
75
|
-
monthAfterAdding1Month,
|
|
76
|
-
monthAfterAddingExtraDaysColumnView,
|
|
77
|
-
prefetchNextMonth
|
|
78
|
-
);
|
|
79
|
-
|
|
80
|
-
return { monthsToPrefetch: monthCount ?? 1 };
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export const useTimesForSchedule = ({
|
|
84
|
-
month: monthFromProps,
|
|
85
|
-
selectedDate,
|
|
86
|
-
dayCount,
|
|
87
|
-
bookerLayout,
|
|
88
|
-
}: UseTimesForScheduleProps): [string, string] => {
|
|
89
|
-
const [monthFromStore, bookerState] = useBookerStoreContext((state) => [state.month, state.state], shallow);
|
|
90
|
-
const month = monthFromStore ?? monthFromProps ?? null;
|
|
91
|
-
const date = dayjs(selectedDate).format("YYYY-MM-DD");
|
|
92
|
-
const prefetchData = usePrefetch({
|
|
93
|
-
date,
|
|
94
|
-
month,
|
|
95
|
-
bookerLayout,
|
|
96
|
-
bookerState,
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
const now = dayjs();
|
|
100
|
-
const monthDayjs = month ? dayjs(month) : now;
|
|
101
|
-
|
|
102
|
-
let startTime;
|
|
103
|
-
let endTime;
|
|
104
|
-
|
|
105
|
-
if (!!dayCount && dayCount > 0) {
|
|
106
|
-
if (selectedDate) {
|
|
107
|
-
startTime = dayjs(selectedDate).toISOString();
|
|
108
|
-
endTime = dayjs(selectedDate).add(dayCount, "day").toISOString();
|
|
109
|
-
} else if (monthDayjs.month() === now.month()) {
|
|
110
|
-
startTime = now.startOf("day").toISOString();
|
|
111
|
-
endTime = now.startOf("day").add(dayCount, "day").toISOString();
|
|
112
|
-
} else {
|
|
113
|
-
startTime = monthDayjs.startOf("month").toISOString();
|
|
114
|
-
endTime = monthDayjs.startOf("month").add(dayCount, "day").toISOString();
|
|
115
|
-
}
|
|
116
|
-
} else {
|
|
117
|
-
const monthsToPrefetch = prefetchData?.monthsToPrefetch;
|
|
118
|
-
const lastMonthToPrefetchDayjs = monthsToPrefetch ? monthDayjs.add(monthsToPrefetch, "month") : null;
|
|
119
|
-
startTime = monthDayjs.startOf("month").toISOString();
|
|
120
|
-
endTime = (lastMonthToPrefetchDayjs ? lastMonthToPrefetchDayjs : monthDayjs).endOf("month").toISOString();
|
|
121
|
-
}
|
|
122
|
-
return [startTime, endTime];
|
|
123
|
-
};
|