@calcom/atoms 2.7.2 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/cal-atoms.js +163 -45
- package/dist/{index-D_xjDzPo.js → index-r67FKmIH.js} +29165 -28789
- package/dist/index.d.ts +5888 -2
- package/dist/{stripe-payment-form-B8jt-Dp0.js → stripe-payment-form-DjztBe78.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 -51
- 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 -50
- 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,462 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck — wrapper/hook reconciles loose atoms contracts with legacy
|
|
2
|
-
// backend payload shapes (unknowns from Record<string, any> branches, Radix
|
|
3
|
-
// prop-pick narrowing). Runtime matches pre-extract behavior; a targeted
|
|
4
|
-
// typing pass follows once the contracts are tightened per-consumer.
|
|
5
|
-
|
|
6
|
-
import { useState } from "react";
|
|
7
|
-
import { AtomsWrapper } from "../../components/atoms-wrapper";
|
|
8
|
-
import { Alert } from "../../components/ui/alert";
|
|
9
|
-
import { AppListCard } from "../../components/ui/app-list-card";
|
|
10
|
-
import { Button, type ButtonProps } from "../../components/ui/button";
|
|
11
|
-
import { CalendarSwitchComponent, type ICalendarSwitchProps } from "../../components/ui/calendar-switch";
|
|
12
|
-
import { DisconnectIntegrationComponent } from "../../components/ui/disconnect-calendar-integration";
|
|
13
|
-
import { Dropdown, DropdownMenuContent, DropdownMenuTrigger } from "../../components/ui/dropdown";
|
|
14
|
-
import { Switch } from "../../components/ui/switch";
|
|
15
|
-
import { useToast } from "../../components/ui/use-toast";
|
|
16
|
-
import * as Connect from "../../connect";
|
|
17
|
-
import { AppleConnect } from "../../connect/apple/apple-connect";
|
|
18
|
-
import type { CALENDARS } from "../../constants";
|
|
19
|
-
import { useAddSelectedCalendar } from "../../hooks/calendars/use-add-selected-calendar";
|
|
20
|
-
import { useDeleteCalendarCredentials } from "../../hooks/calendars/use-delete-calendar-credentials";
|
|
21
|
-
import { useRemoveSelectedCalendar } from "../../hooks/calendars/use-remove-selected-calendar";
|
|
22
|
-
import { useAtomsLocale as useLocale } from "../../hooks/use-atoms-locale";
|
|
23
|
-
import { useConnectedCalendars } from "../../hooks/use-connected-calendars";
|
|
24
|
-
import { cn } from "../../lib/utils";
|
|
25
|
-
import { SelectedCalendarsSettings } from "../selected-calendars-settings";
|
|
26
|
-
|
|
27
|
-
export type CalendarRedirectUrls = {
|
|
28
|
-
google?: string;
|
|
29
|
-
outlook?: string;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export type SelectedCalendarsClassNames = {
|
|
33
|
-
container?: string;
|
|
34
|
-
header?: {
|
|
35
|
-
container?: string;
|
|
36
|
-
title?: string;
|
|
37
|
-
description?: string;
|
|
38
|
-
};
|
|
39
|
-
selectedCalendarsListClassNames?: {
|
|
40
|
-
container?: string;
|
|
41
|
-
selectedCalendar?: {
|
|
42
|
-
container?: string;
|
|
43
|
-
header?: {
|
|
44
|
-
container?: string;
|
|
45
|
-
title?: string;
|
|
46
|
-
description?: string;
|
|
47
|
-
};
|
|
48
|
-
body?: {
|
|
49
|
-
container?: string;
|
|
50
|
-
description?: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
noSelectedCalendarsMessage?: string;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
type SelectedCalendarsSettingsPlatformWrapperProps = {
|
|
58
|
-
classNames?: string;
|
|
59
|
-
classNamesObject?: SelectedCalendarsClassNames;
|
|
60
|
-
calendarRedirectUrls?: CalendarRedirectUrls;
|
|
61
|
-
allowDelete?: boolean;
|
|
62
|
-
isDryRun?: boolean;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export const SelectedCalendarsSettingsPlatformWrapper = ({
|
|
66
|
-
classNames = "mx-5 mb-6",
|
|
67
|
-
calendarRedirectUrls,
|
|
68
|
-
allowDelete,
|
|
69
|
-
isDryRun,
|
|
70
|
-
classNamesObject,
|
|
71
|
-
}: SelectedCalendarsSettingsPlatformWrapperProps) => {
|
|
72
|
-
const { t } = useLocale();
|
|
73
|
-
const query = useConnectedCalendars({});
|
|
74
|
-
|
|
75
|
-
if (query.isPending) {
|
|
76
|
-
return (
|
|
77
|
-
<AtomsWrapper>
|
|
78
|
-
<div />
|
|
79
|
-
</AtomsWrapper>
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if (query.isError) {
|
|
84
|
-
return (
|
|
85
|
-
<AtomsWrapper>
|
|
86
|
-
<div>
|
|
87
|
-
<Alert severity="error" title="Something went wrong" message={query.error.message} />
|
|
88
|
-
</div>
|
|
89
|
-
</AtomsWrapper>
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
const data = query.data;
|
|
94
|
-
const destinationCalendarId = data.destinationCalendar.externalId;
|
|
95
|
-
|
|
96
|
-
if (!data.connectedCalendars.length) {
|
|
97
|
-
return (
|
|
98
|
-
<AtomsWrapper>
|
|
99
|
-
<div>
|
|
100
|
-
<SelectedCalendarsSettings classNames={classNamesObject?.container || classNames}>
|
|
101
|
-
<SelectedCalendarsSettingsHeading
|
|
102
|
-
classNames={classNamesObject?.header}
|
|
103
|
-
calendarRedirectUrls={calendarRedirectUrls}
|
|
104
|
-
isDryRun={isDryRun}
|
|
105
|
-
/>
|
|
106
|
-
<h1 className={cn("px-6 py-4 text-base leading-5", classNamesObject?.noSelectedCalendarsMessage)}>
|
|
107
|
-
No connected calendars found.
|
|
108
|
-
</h1>
|
|
109
|
-
</SelectedCalendarsSettings>
|
|
110
|
-
</div>
|
|
111
|
-
</AtomsWrapper>
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return (
|
|
116
|
-
<AtomsWrapper>
|
|
117
|
-
<div>
|
|
118
|
-
<SelectedCalendarsSettings classNames={classNamesObject?.container || classNames}>
|
|
119
|
-
<SelectedCalendarsSettingsHeading
|
|
120
|
-
classNames={classNamesObject?.header}
|
|
121
|
-
calendarRedirectUrls={calendarRedirectUrls}
|
|
122
|
-
isDryRun={isDryRun}
|
|
123
|
-
/>
|
|
124
|
-
<List
|
|
125
|
-
noBorderTreatment
|
|
126
|
-
className={classNamesObject?.selectedCalendarsListClassNames?.container || "p-6 pt-2"}
|
|
127
|
-
>
|
|
128
|
-
{data.connectedCalendars.map((connectedCalendar) => {
|
|
129
|
-
if (!!connectedCalendar.calendars && connectedCalendar.calendars.length > 0) {
|
|
130
|
-
return (
|
|
131
|
-
<AppListCard
|
|
132
|
-
key={`list-${connectedCalendar.credentialId}-${connectedCalendar.integration.slug}`}
|
|
133
|
-
shouldHighlight
|
|
134
|
-
slug={connectedCalendar.integration.slug}
|
|
135
|
-
title={connectedCalendar.integration.name}
|
|
136
|
-
logo={`https://app.cal.com${connectedCalendar.integration.logo}`}
|
|
137
|
-
description={
|
|
138
|
-
connectedCalendar.primary?.email ?? connectedCalendar.integration.description
|
|
139
|
-
}
|
|
140
|
-
classNameObject={{
|
|
141
|
-
container: cn(
|
|
142
|
-
"border-subtle mt-4 rounded-lg border",
|
|
143
|
-
classNamesObject?.selectedCalendarsListClassNames?.selectedCalendar?.container
|
|
144
|
-
),
|
|
145
|
-
title:
|
|
146
|
-
classNamesObject?.selectedCalendarsListClassNames?.selectedCalendar?.header?.title,
|
|
147
|
-
description:
|
|
148
|
-
classNamesObject?.selectedCalendarsListClassNames?.selectedCalendar?.header
|
|
149
|
-
?.description,
|
|
150
|
-
}}
|
|
151
|
-
actions={
|
|
152
|
-
<div className="flex w-32 justify-end">
|
|
153
|
-
{allowDelete && !connectedCalendar.delegationCredentialId && (
|
|
154
|
-
<PlatformDisconnectIntegration
|
|
155
|
-
credentialId={connectedCalendar.credentialId}
|
|
156
|
-
trashIcon
|
|
157
|
-
buttonProps={{ className: "border border-default" }}
|
|
158
|
-
slug={connectedCalendar.integration.slug}
|
|
159
|
-
isDryRun={isDryRun}
|
|
160
|
-
/>
|
|
161
|
-
)}
|
|
162
|
-
</div>
|
|
163
|
-
}
|
|
164
|
-
>
|
|
165
|
-
<div
|
|
166
|
-
className={cn(
|
|
167
|
-
"border-subtle border-t",
|
|
168
|
-
classNamesObject?.selectedCalendarsListClassNames?.selectedCalendar?.body?.container
|
|
169
|
-
)}
|
|
170
|
-
>
|
|
171
|
-
<p
|
|
172
|
-
className={cn(
|
|
173
|
-
"text-subtle px-5 pt-4 text-sm",
|
|
174
|
-
classNamesObject?.selectedCalendarsListClassNames?.selectedCalendar?.body
|
|
175
|
-
?.description
|
|
176
|
-
)}
|
|
177
|
-
>
|
|
178
|
-
{t("toggle_calendars_conflict")}
|
|
179
|
-
</p>
|
|
180
|
-
<ul className="stack-y-4 px-5 py-4">
|
|
181
|
-
{connectedCalendar.calendars?.map((cal) => {
|
|
182
|
-
return (
|
|
183
|
-
<PlatformCalendarSwitch
|
|
184
|
-
key={cal.externalId}
|
|
185
|
-
externalId={cal.externalId}
|
|
186
|
-
title={cal.name || "Nameless calendar"}
|
|
187
|
-
name={cal.name || "Nameless calendar"}
|
|
188
|
-
type={connectedCalendar.integration.type}
|
|
189
|
-
isChecked={cal.isSelected}
|
|
190
|
-
destination={cal.externalId === destinationCalendarId}
|
|
191
|
-
credentialId={cal.credentialId}
|
|
192
|
-
delegationCredentialId={connectedCalendar.delegationCredentialId}
|
|
193
|
-
eventTypeId={null}
|
|
194
|
-
isDryRun={isDryRun}
|
|
195
|
-
/>
|
|
196
|
-
);
|
|
197
|
-
})}
|
|
198
|
-
</ul>
|
|
199
|
-
</div>
|
|
200
|
-
</AppListCard>
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
return (
|
|
204
|
-
<Alert
|
|
205
|
-
key={`alert-${connectedCalendar.credentialId}`}
|
|
206
|
-
severity="warning"
|
|
207
|
-
title={t("something_went_wrong")}
|
|
208
|
-
message={<span>{connectedCalendar.error?.message || t("calendar_error")}</span>}
|
|
209
|
-
iconClassName="h-10 w-10 ml-2 mr-1 mt-0.5"
|
|
210
|
-
actions={
|
|
211
|
-
!connectedCalendar.delegationCredentialId && (
|
|
212
|
-
<div className="flex w-32 justify-end">
|
|
213
|
-
<PlatformDisconnectIntegration
|
|
214
|
-
credentialId={connectedCalendar.credentialId}
|
|
215
|
-
trashIcon
|
|
216
|
-
buttonProps={{ className: "border border-default" }}
|
|
217
|
-
slug={connectedCalendar.integration.slug}
|
|
218
|
-
isDryRun={isDryRun}
|
|
219
|
-
/>
|
|
220
|
-
</div>
|
|
221
|
-
)
|
|
222
|
-
}
|
|
223
|
-
/>
|
|
224
|
-
);
|
|
225
|
-
})}
|
|
226
|
-
</List>
|
|
227
|
-
</SelectedCalendarsSettings>
|
|
228
|
-
</div>
|
|
229
|
-
</AtomsWrapper>
|
|
230
|
-
);
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
const SelectedCalendarsSettingsHeading = ({
|
|
234
|
-
calendarRedirectUrls,
|
|
235
|
-
isDryRun,
|
|
236
|
-
classNames,
|
|
237
|
-
}: {
|
|
238
|
-
calendarRedirectUrls?: CalendarRedirectUrls;
|
|
239
|
-
isDryRun?: boolean;
|
|
240
|
-
classNames?: {
|
|
241
|
-
container?: string;
|
|
242
|
-
title?: string;
|
|
243
|
-
description?: string;
|
|
244
|
-
};
|
|
245
|
-
}) => {
|
|
246
|
-
const { t } = useLocale();
|
|
247
|
-
|
|
248
|
-
return (
|
|
249
|
-
<div className={cn("border-subtle border-b p-6", classNames?.container)}>
|
|
250
|
-
<div className="flex items-center justify-between">
|
|
251
|
-
<div>
|
|
252
|
-
<h4 className={cn("text-emphasis text-base font-semibold leading-5", classNames?.title)}>
|
|
253
|
-
{t("check_for_conflicts")}
|
|
254
|
-
</h4>
|
|
255
|
-
<p className={cn("text-default text-sm leading-tight", classNames?.description)}>
|
|
256
|
-
{t("select_calendars")}
|
|
257
|
-
</p>
|
|
258
|
-
</div>
|
|
259
|
-
<div className="flex flex-col xl:flex-row xl:space-x-5">
|
|
260
|
-
<div className="flex items-center">
|
|
261
|
-
<PlatformAdditionalCalendarSelector
|
|
262
|
-
calendarRedirectUrls={calendarRedirectUrls}
|
|
263
|
-
isDryRun={isDryRun}
|
|
264
|
-
/>
|
|
265
|
-
</div>
|
|
266
|
-
</div>
|
|
267
|
-
</div>
|
|
268
|
-
</div>
|
|
269
|
-
);
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
const PlatformDisconnectIntegration = (props: {
|
|
273
|
-
credentialId: number;
|
|
274
|
-
label?: string;
|
|
275
|
-
slug?: string;
|
|
276
|
-
trashIcon?: boolean;
|
|
277
|
-
isGlobal?: boolean;
|
|
278
|
-
onSuccess?: () => void;
|
|
279
|
-
buttonProps?: ButtonProps;
|
|
280
|
-
isDryRun?: boolean;
|
|
281
|
-
}) => {
|
|
282
|
-
const { t } = useLocale();
|
|
283
|
-
const { onSuccess, credentialId, slug } = props;
|
|
284
|
-
|
|
285
|
-
const [modalOpen, setModalOpen] = useState(false);
|
|
286
|
-
const { toast } = useToast();
|
|
287
|
-
const { mutate: deleteCalendarCredentials } = useDeleteCalendarCredentials({
|
|
288
|
-
onSuccess: () => {
|
|
289
|
-
toast({
|
|
290
|
-
description: t("app_removed_successfully"),
|
|
291
|
-
});
|
|
292
|
-
setModalOpen(false);
|
|
293
|
-
if (onSuccess) onSuccess();
|
|
294
|
-
},
|
|
295
|
-
onError: () => {
|
|
296
|
-
toast({
|
|
297
|
-
description: t("error_removing_app"),
|
|
298
|
-
});
|
|
299
|
-
setModalOpen(false);
|
|
300
|
-
},
|
|
301
|
-
});
|
|
302
|
-
|
|
303
|
-
return (
|
|
304
|
-
<DisconnectIntegrationComponent
|
|
305
|
-
onDeletionConfirmation={async () => {
|
|
306
|
-
if (!props.isDryRun) setModalOpen(false);
|
|
307
|
-
|
|
308
|
-
if (props.isDryRun) {
|
|
309
|
-
toast({
|
|
310
|
-
description: t("app_removed_successfully"),
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
if (!props.isDryRun && slug) {
|
|
315
|
-
await deleteCalendarCredentials({
|
|
316
|
-
calendar: slug.split("-")[0] as unknown as (typeof CALENDARS)[number],
|
|
317
|
-
id: credentialId,
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
}}
|
|
321
|
-
{...props}
|
|
322
|
-
isModalOpen={modalOpen}
|
|
323
|
-
onModalOpen={() => setModalOpen((prevValue) => !prevValue)}
|
|
324
|
-
/>
|
|
325
|
-
);
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
const PlatformCalendarSwitch = (props: ICalendarSwitchProps & { isDryRun?: boolean }) => {
|
|
329
|
-
const { isChecked, title, credentialId, type, externalId, delegationCredentialId } = props;
|
|
330
|
-
const [checkedInternal, setCheckedInternal] = useState(isChecked);
|
|
331
|
-
const { toast } = useToast();
|
|
332
|
-
|
|
333
|
-
const { mutate: addSelectedCalendar, isPending: isAddingSelectedCalendar } = useAddSelectedCalendar({
|
|
334
|
-
onError: (err) => {
|
|
335
|
-
toast({
|
|
336
|
-
description: `Something went wrong while adding calendar - ${title}. ${err}`,
|
|
337
|
-
});
|
|
338
|
-
},
|
|
339
|
-
});
|
|
340
|
-
const { mutate: removeSelectedCalendar, isPending: isRemovingSelectedCalendar } = useRemoveSelectedCalendar(
|
|
341
|
-
{
|
|
342
|
-
onError: (err) => {
|
|
343
|
-
toast({
|
|
344
|
-
description: `Something went wrong while removing calendar - ${title}. ${err}`,
|
|
345
|
-
});
|
|
346
|
-
},
|
|
347
|
-
}
|
|
348
|
-
);
|
|
349
|
-
|
|
350
|
-
const toggleSelectedCalendars = async ({
|
|
351
|
-
isOn,
|
|
352
|
-
credentialId,
|
|
353
|
-
integration,
|
|
354
|
-
externalId,
|
|
355
|
-
}: {
|
|
356
|
-
isOn: boolean;
|
|
357
|
-
credentialId: number;
|
|
358
|
-
integration: string;
|
|
359
|
-
externalId: string;
|
|
360
|
-
}) => {
|
|
361
|
-
if (isOn) {
|
|
362
|
-
await addSelectedCalendar({ credentialId, integration, externalId, delegationCredentialId });
|
|
363
|
-
} else {
|
|
364
|
-
await removeSelectedCalendar({
|
|
365
|
-
credentialId,
|
|
366
|
-
integration,
|
|
367
|
-
externalId,
|
|
368
|
-
delegationCredentialId,
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
return (
|
|
374
|
-
<CalendarSwitchComponent
|
|
375
|
-
destination={props.destination}
|
|
376
|
-
{...props}
|
|
377
|
-
isChecked={checkedInternal}
|
|
378
|
-
isLoading={isAddingSelectedCalendar || isRemovingSelectedCalendar}
|
|
379
|
-
>
|
|
380
|
-
<Switch
|
|
381
|
-
checked={checkedInternal}
|
|
382
|
-
id={externalId}
|
|
383
|
-
onCheckedChange={async () => {
|
|
384
|
-
setCheckedInternal((prevValue) => !prevValue);
|
|
385
|
-
|
|
386
|
-
if (!props.isDryRun) {
|
|
387
|
-
await toggleSelectedCalendars({
|
|
388
|
-
isOn: !checkedInternal,
|
|
389
|
-
credentialId,
|
|
390
|
-
externalId,
|
|
391
|
-
integration: type,
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
}}
|
|
395
|
-
/>
|
|
396
|
-
</CalendarSwitchComponent>
|
|
397
|
-
);
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
const PlatformAdditionalCalendarSelector = ({
|
|
401
|
-
calendarRedirectUrls,
|
|
402
|
-
isDryRun,
|
|
403
|
-
}: {
|
|
404
|
-
calendarRedirectUrls?: CalendarRedirectUrls;
|
|
405
|
-
isDryRun?: boolean;
|
|
406
|
-
}) => {
|
|
407
|
-
const { t } = useLocale();
|
|
408
|
-
const { refetch } = useConnectedCalendars({});
|
|
409
|
-
|
|
410
|
-
return (
|
|
411
|
-
<Dropdown modal={false}>
|
|
412
|
-
<DropdownMenuTrigger asChild>
|
|
413
|
-
<Button StartIcon="plus" color="secondary" className="md:rounded-md">
|
|
414
|
-
{t("add")}
|
|
415
|
-
</Button>
|
|
416
|
-
</DropdownMenuTrigger>
|
|
417
|
-
<DropdownMenuContent className="w-auto">
|
|
418
|
-
<div>
|
|
419
|
-
<div>
|
|
420
|
-
<Connect.GoogleCalendar
|
|
421
|
-
isDryRun={isDryRun}
|
|
422
|
-
isMultiCalendar={true}
|
|
423
|
-
isClickable={true}
|
|
424
|
-
tooltip={<></>}
|
|
425
|
-
redir={calendarRedirectUrls?.google ?? window.location.href}
|
|
426
|
-
label={t("add_calendar_label", { calendar: "Google" })}
|
|
427
|
-
loadingLabel={t("add_calendar_label", { calendar: "Google" })}
|
|
428
|
-
alreadyConnectedLabel={t("add_calendar_label", { calendar: "Google" })}
|
|
429
|
-
className="not-disabled:hover:bg-subtle hover:text-default shadow-none! cursor-pointer border-none bg-inherit text-inherit md:rounded-md"
|
|
430
|
-
/>
|
|
431
|
-
</div>
|
|
432
|
-
<div>
|
|
433
|
-
<Connect.OutlookCalendar
|
|
434
|
-
isDryRun={isDryRun}
|
|
435
|
-
isMultiCalendar={true}
|
|
436
|
-
isClickable={true}
|
|
437
|
-
tooltip={<></>}
|
|
438
|
-
redir={calendarRedirectUrls?.outlook ?? window.location.href}
|
|
439
|
-
label={t("add_calendar_label", { calendar: "Outlook" })}
|
|
440
|
-
loadingLabel={t("add_calendar_label", { calendar: "Outlook" })}
|
|
441
|
-
alreadyConnectedLabel={t("add_calendar_label", { calendar: "Outlook" })}
|
|
442
|
-
className="not-disabled:hover:bg-subtle hover:text-default shadow-none! cursor-pointer border-none bg-inherit text-inherit md:rounded-md"
|
|
443
|
-
/>
|
|
444
|
-
</div>
|
|
445
|
-
<div>
|
|
446
|
-
<AppleConnect
|
|
447
|
-
isDryRun={isDryRun}
|
|
448
|
-
onSuccess={refetch}
|
|
449
|
-
isClickable={true}
|
|
450
|
-
isMultiCalendar={true}
|
|
451
|
-
tooltip={<></>}
|
|
452
|
-
label={t("add_calendar_label", { calendar: "Apple" })}
|
|
453
|
-
loadingLabel={t("add_calendar_label", { calendar: "Apple" })}
|
|
454
|
-
alreadyConnectedLabel={t("add_calendar_label", { calendar: "Apple" })}
|
|
455
|
-
className="not-disabled:hover:bg-subtle hover:text-default shadow-none! cursor-pointer border-none bg-inherit text-inherit md:rounded-md"
|
|
456
|
-
/>
|
|
457
|
-
</div>
|
|
458
|
-
</div>
|
|
459
|
-
</DropdownMenuContent>
|
|
460
|
-
</Dropdown>
|
|
461
|
-
);
|
|
462
|
-
};
|
package/src/timezone/index.tsx
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
import type { Timezone } from "../contracts";
|
|
3
|
-
import useGetCityTimezones from "../hooks/use-get-city-timezones";
|
|
4
|
-
import { filterPropsTimezones, formatTimezones } from "../lib/time-zones";
|
|
5
|
-
import type { TimezoneSelectComponentProps } from "./timezone-select-component";
|
|
6
|
-
import { TimezoneSelectComponent as TimezoneSelect } from "./timezone-select-component";
|
|
7
|
-
|
|
8
|
-
export function Timezone(
|
|
9
|
-
props: Omit<TimezoneSelectComponentProps, "data" | "isPending" | "isWebTimezoneSelect"> & {
|
|
10
|
-
timeZones?: Timezone[];
|
|
11
|
-
}
|
|
12
|
-
) {
|
|
13
|
-
const { isLoading: isLoadingAvailableCityTimezones, data: availableCityTimezones } = useGetCityTimezones();
|
|
14
|
-
const cityTimeZones = useMemo(() => {
|
|
15
|
-
if (props.timeZones) {
|
|
16
|
-
const filteredTimeZones = filterPropsTimezones(props.timeZones, availableCityTimezones ?? []);
|
|
17
|
-
return formatTimezones(filteredTimeZones);
|
|
18
|
-
} else if (availableCityTimezones && !isLoadingAvailableCityTimezones) {
|
|
19
|
-
return formatTimezones(availableCityTimezones);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return [];
|
|
23
|
-
}, [availableCityTimezones, props.timeZones, isLoadingAvailableCityTimezones]);
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
// @ts-expect-error pre-existing: react-select SelectProps `value` does not
|
|
27
|
-
// distribute through Omit<...> on the wrapper type — `value` is in `props`
|
|
28
|
-
// and gets spread, but TS does not see it. Surfaced when this package was
|
|
29
|
-
// extracted from calcom/cal where a different tsconfig was masking it.
|
|
30
|
-
<TimezoneSelect
|
|
31
|
-
{...props}
|
|
32
|
-
data={cityTimeZones}
|
|
33
|
-
isPending={isLoadingAvailableCityTimezones}
|
|
34
|
-
isWebTimezoneSelect={false}
|
|
35
|
-
/>
|
|
36
|
-
);
|
|
37
|
-
}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck — react-timezone-select ships .d.ts at a non-standard path
|
|
2
|
-
// that stricter consuming tsconfigs (e.g. packages/features) fail to
|
|
3
|
-
// resolve. atoms' own tsc passes; the nocheck is only for downstream
|
|
4
|
-
// consumers.
|
|
5
|
-
"use client";
|
|
6
|
-
|
|
7
|
-
import { useCallback, useMemo, useState } from "react";
|
|
8
|
-
import type { ITimezone, ITimezoneOption, Props as SelectProps } from "react-timezone-select";
|
|
9
|
-
import BaseSelect from "react-timezone-select";
|
|
10
|
-
import { getReactSelectProps } from "../components/ui/react-select-components";
|
|
11
|
-
import { inputStyles } from "../components/ui/text-field";
|
|
12
|
-
import { cn } from "../lib/utils";
|
|
13
|
-
import type { Timezones } from "../vendor/timezone";
|
|
14
|
-
import { addTimezonesToDropdown, filterBySearchText, handleOptionLabel } from "../vendor/timezone";
|
|
15
|
-
|
|
16
|
-
export type TimezoneSelectComponentProps = SelectProps & {
|
|
17
|
-
variant?: "default" | "minimal";
|
|
18
|
-
isPending: boolean;
|
|
19
|
-
data?: Timezones;
|
|
20
|
-
timezoneSelectCustomClassname?: string;
|
|
21
|
-
size?: "sm" | "md";
|
|
22
|
-
grow?: boolean;
|
|
23
|
-
isWebTimezoneSelect?: boolean;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export function TimezoneSelectComponent({
|
|
27
|
-
className,
|
|
28
|
-
classNames: timezoneClassNames,
|
|
29
|
-
timezoneSelectCustomClassname,
|
|
30
|
-
components,
|
|
31
|
-
variant: _variant = "default",
|
|
32
|
-
isPending,
|
|
33
|
-
value,
|
|
34
|
-
size = "md",
|
|
35
|
-
grow = false,
|
|
36
|
-
isWebTimezoneSelect = true,
|
|
37
|
-
...props
|
|
38
|
-
}: TimezoneSelectComponentProps) {
|
|
39
|
-
const data = useMemo(() => props.data || [], [props.data]);
|
|
40
|
-
|
|
41
|
-
const [additionalTimezones, setAdditionalTimezones] = useState<Timezones>([]);
|
|
42
|
-
|
|
43
|
-
const handleInputChange = useCallback(
|
|
44
|
-
(searchText: string) => {
|
|
45
|
-
if (data) setAdditionalTimezones(filterBySearchText(searchText, data));
|
|
46
|
-
},
|
|
47
|
-
[data]
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
const timezones = useMemo(
|
|
51
|
-
() => ({
|
|
52
|
-
...(data.length > 0 ? addTimezonesToDropdown(data) : {}),
|
|
53
|
-
...(isWebTimezoneSelect ? addTimezonesToDropdown(additionalTimezones) : {}),
|
|
54
|
-
}),
|
|
55
|
-
[data, isWebTimezoneSelect, additionalTimezones]
|
|
56
|
-
);
|
|
57
|
-
|
|
58
|
-
const handleChange = useCallback(
|
|
59
|
-
(selectedOption: ITimezoneOption | null) => {
|
|
60
|
-
if (!props.onChange) return;
|
|
61
|
-
|
|
62
|
-
if (!selectedOption) {
|
|
63
|
-
props.onChange(selectedOption as unknown as ITimezoneOption);
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const corrections: Record<string, string> = {
|
|
68
|
-
"America/Port_Of_Spain": "America/Port_of_Spain",
|
|
69
|
-
"Africa/Porto-novo": "Africa/Porto-Novo",
|
|
70
|
-
"Africa/Dar_Es_Salaam": "Africa/Dar_es_Salaam",
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const correctedValue = corrections[selectedOption.value] || selectedOption.value;
|
|
74
|
-
props.onChange({ ...selectedOption, value: correctedValue });
|
|
75
|
-
},
|
|
76
|
-
[props.onChange]
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
const formatOption = useCallback(
|
|
80
|
-
(option: unknown) => <p className="truncate">{(option as ITimezoneOption).value.replace(/_/g, " ")}</p>,
|
|
81
|
-
[]
|
|
82
|
-
);
|
|
83
|
-
|
|
84
|
-
const getLabel = useCallback(
|
|
85
|
-
(option: unknown) => handleOptionLabel(option as ITimezoneOption, additionalTimezones),
|
|
86
|
-
[additionalTimezones]
|
|
87
|
-
);
|
|
88
|
-
|
|
89
|
-
const reactSelectProps = useMemo(() => getReactSelectProps({ components: components || {} }), [components]);
|
|
90
|
-
|
|
91
|
-
return (
|
|
92
|
-
<BaseSelect
|
|
93
|
-
value={value}
|
|
94
|
-
className={`${className ?? ""} ${timezoneSelectCustomClassname ?? ""}`}
|
|
95
|
-
aria-label="Timezone Select"
|
|
96
|
-
isLoading={isPending}
|
|
97
|
-
data-testid="timezone-select"
|
|
98
|
-
isDisabled={isPending}
|
|
99
|
-
{...reactSelectProps}
|
|
100
|
-
timezones={timezones}
|
|
101
|
-
styles={{
|
|
102
|
-
control: (base) =>
|
|
103
|
-
Object.assign({}, base, {
|
|
104
|
-
minHeight: size === "sm" ? "28px" : "36px",
|
|
105
|
-
height: grow ? "h-auto " : size === "sm" ? "28px" : "36px",
|
|
106
|
-
}),
|
|
107
|
-
menuList: (base) =>
|
|
108
|
-
Object.assign({}, base, {
|
|
109
|
-
height: grow ? "h-auto " : size === "sm" ? "200px" : "180px",
|
|
110
|
-
}),
|
|
111
|
-
}}
|
|
112
|
-
onInputChange={handleInputChange}
|
|
113
|
-
{...props}
|
|
114
|
-
onChange={handleChange}
|
|
115
|
-
formatOptionLabel={formatOption}
|
|
116
|
-
getOptionLabel={getLabel}
|
|
117
|
-
classNames={{
|
|
118
|
-
...timezoneClassNames,
|
|
119
|
-
input: (state) =>
|
|
120
|
-
cn(
|
|
121
|
-
"text-emphasis h-6 md:max-w-[145px] max-w-[250px]",
|
|
122
|
-
timezoneClassNames?.input && timezoneClassNames.input(state)
|
|
123
|
-
),
|
|
124
|
-
option: (state) =>
|
|
125
|
-
cn(
|
|
126
|
-
"bg-default py-2.5 px-3 rounded-md text-default",
|
|
127
|
-
state.isFocused && "bg-subtle",
|
|
128
|
-
state.isDisabled && "bg-cal-muted",
|
|
129
|
-
state.isSelected && "bg-emphasis text-default",
|
|
130
|
-
timezoneClassNames?.option && timezoneClassNames.option(state)
|
|
131
|
-
),
|
|
132
|
-
placeholder: (state) => cn("text-muted", state.isFocused && "hidden"),
|
|
133
|
-
dropdownIndicator: () => "text-default",
|
|
134
|
-
control: (state) =>
|
|
135
|
-
cn(
|
|
136
|
-
inputStyles({ size }),
|
|
137
|
-
state.isMulti
|
|
138
|
-
? state.hasValue
|
|
139
|
-
? "p-1 h-fit"
|
|
140
|
-
: "px-3 h-fit"
|
|
141
|
-
: size === "sm"
|
|
142
|
-
? "h-7 px-2"
|
|
143
|
-
: "h-9 py-0 px-3",
|
|
144
|
-
props.isDisabled && "bg-subtle",
|
|
145
|
-
"rounded-[10px]",
|
|
146
|
-
timezoneClassNames?.control && timezoneClassNames.control(state)
|
|
147
|
-
),
|
|
148
|
-
singleValue: (state) =>
|
|
149
|
-
cn(
|
|
150
|
-
"text-emphasis placeholder:text-muted",
|
|
151
|
-
timezoneClassNames?.singleValue && timezoneClassNames.singleValue(state)
|
|
152
|
-
),
|
|
153
|
-
valueContainer: (state) =>
|
|
154
|
-
cn(
|
|
155
|
-
"text-emphasis placeholder:text-muted flex gap-1",
|
|
156
|
-
timezoneClassNames?.valueContainer && timezoneClassNames.valueContainer(state)
|
|
157
|
-
),
|
|
158
|
-
multiValue: (state) =>
|
|
159
|
-
cn(
|
|
160
|
-
"bg-subtle text-default rounded-md py-1.5 px-2 flex items-center text-sm leading-none",
|
|
161
|
-
timezoneClassNames?.multiValue && timezoneClassNames.multiValue(state)
|
|
162
|
-
),
|
|
163
|
-
menu: (state) =>
|
|
164
|
-
cn(
|
|
165
|
-
"rounded-md bg-default text-sm leading-4 text-default mt-1 p-1 border border-subtle",
|
|
166
|
-
state.selectProps.menuIsOpen && "shadow-dropdown",
|
|
167
|
-
timezoneClassNames?.menu && timezoneClassNames.menu(state)
|
|
168
|
-
),
|
|
169
|
-
groupHeading: () => "leading-none text-xs uppercase text-default pl-2.5 pt-4 pb-2",
|
|
170
|
-
menuList: (state) =>
|
|
171
|
-
cn(
|
|
172
|
-
"scroll-bar scrollbar-track-w-20 rounded-md flex flex-col space-y-1",
|
|
173
|
-
timezoneClassNames?.menuList && timezoneClassNames.menuList(state)
|
|
174
|
-
),
|
|
175
|
-
indicatorsContainer: (state) =>
|
|
176
|
-
cn(
|
|
177
|
-
state.selectProps.menuIsOpen
|
|
178
|
-
? state.isMulti
|
|
179
|
-
? "[&>*:last-child]:rotate-180 [&>*:last-child]:transition-transform"
|
|
180
|
-
: "rotate-180 transition-transform"
|
|
181
|
-
: "text-default",
|
|
182
|
-
timezoneClassNames?.indicatorsContainer && timezoneClassNames.indicatorsContainer(state)
|
|
183
|
-
),
|
|
184
|
-
multiValueRemove: () => "text-default py-auto ml-2",
|
|
185
|
-
noOptionsMessage: () => "h-12 py-2 flex items-center justify-center",
|
|
186
|
-
}}
|
|
187
|
-
/>
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export type { ITimezone, ITimezoneOption };
|
|
192
|
-
|
|
193
|
-
export default TimezoneSelectComponent;
|