@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,125 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck — loose FormValues/Host/TeamMember contracts
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
import { useEffect, useRef } from "react";
|
|
5
|
-
import { Controller, useFormContext, useWatch } from "react-hook-form";
|
|
6
|
-
import type { FormValues, Host, SchedulingType, TeamMember } from "../../../contracts";
|
|
7
|
-
import { FixedHosts, type FixedHostsCustomClassNames } from "./fixed-hosts";
|
|
8
|
-
import { RoundRobinHosts, type RoundRobinHostsCustomClassNames } from "./round-robin-hosts";
|
|
9
|
-
|
|
10
|
-
export type HostsCustomClassNames = {
|
|
11
|
-
fixedHosts?: FixedHostsCustomClassNames;
|
|
12
|
-
roundRobinHosts?: RoundRobinHostsCustomClassNames;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const Hosts = ({
|
|
16
|
-
orgId,
|
|
17
|
-
teamId,
|
|
18
|
-
teamMembers,
|
|
19
|
-
assignAllTeamMembers,
|
|
20
|
-
setAssignAllTeamMembers,
|
|
21
|
-
customClassNames,
|
|
22
|
-
isSegmentApplicable,
|
|
23
|
-
hideFixedHostsForCollective = false,
|
|
24
|
-
weightsEditorSlot,
|
|
25
|
-
}: {
|
|
26
|
-
orgId: number | null;
|
|
27
|
-
teamId: number;
|
|
28
|
-
teamMembers: TeamMember[];
|
|
29
|
-
assignAllTeamMembers: boolean;
|
|
30
|
-
setAssignAllTeamMembers: (value: boolean) => void;
|
|
31
|
-
customClassNames?: HostsCustomClassNames;
|
|
32
|
-
isSegmentApplicable: boolean;
|
|
33
|
-
hideFixedHostsForCollective?: boolean;
|
|
34
|
-
weightsEditorSlot?: React.ReactNode;
|
|
35
|
-
}) => {
|
|
36
|
-
const {
|
|
37
|
-
control,
|
|
38
|
-
setValue,
|
|
39
|
-
getValues,
|
|
40
|
-
formState: { submitCount },
|
|
41
|
-
} = useFormContext<FormValues>();
|
|
42
|
-
const schedulingType = useWatch({ control, name: "schedulingType" });
|
|
43
|
-
const initialValue = useRef<{
|
|
44
|
-
hosts: FormValues["hosts"];
|
|
45
|
-
schedulingType: SchedulingType | null;
|
|
46
|
-
submitCount: number;
|
|
47
|
-
} | null>(null);
|
|
48
|
-
|
|
49
|
-
useEffect(() => {
|
|
50
|
-
if (!initialValue.current || initialValue.current?.submitCount !== submitCount) {
|
|
51
|
-
initialValue.current = { hosts: getValues("hosts"), schedulingType, submitCount };
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
setValue(
|
|
55
|
-
"hosts",
|
|
56
|
-
initialValue.current.schedulingType === schedulingType ? initialValue.current.hosts : [],
|
|
57
|
-
{ shouldDirty: true }
|
|
58
|
-
);
|
|
59
|
-
}, [schedulingType, setValue, getValues, submitCount]);
|
|
60
|
-
|
|
61
|
-
const updatedHosts = (changedHosts: Host[]) => {
|
|
62
|
-
const existingHosts = getValues("hosts");
|
|
63
|
-
return changedHosts.map((newValue) => {
|
|
64
|
-
const existingHost = existingHosts.find((host: Host) => host.userId === newValue.userId);
|
|
65
|
-
return existingHost
|
|
66
|
-
? { ...newValue, scheduleId: existingHost.scheduleId, groupId: existingHost.groupId }
|
|
67
|
-
: newValue;
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
return (
|
|
72
|
-
<Controller<FormValues>
|
|
73
|
-
name="hosts"
|
|
74
|
-
render={({ field: { onChange, value } }) => {
|
|
75
|
-
const schedulingTypeRender = {
|
|
76
|
-
COLLECTIVE: hideFixedHostsForCollective ? null : (
|
|
77
|
-
<FixedHosts
|
|
78
|
-
teamId={teamId}
|
|
79
|
-
teamMembers={teamMembers}
|
|
80
|
-
value={value}
|
|
81
|
-
onChange={(changeValue) => onChange([...updatedHosts(changeValue)])}
|
|
82
|
-
assignAllTeamMembers={assignAllTeamMembers}
|
|
83
|
-
setAssignAllTeamMembers={setAssignAllTeamMembers}
|
|
84
|
-
customClassNames={customClassNames?.fixedHosts}
|
|
85
|
-
/>
|
|
86
|
-
),
|
|
87
|
-
ROUND_ROBIN: (
|
|
88
|
-
<>
|
|
89
|
-
<FixedHosts
|
|
90
|
-
teamId={teamId}
|
|
91
|
-
teamMembers={teamMembers}
|
|
92
|
-
value={value}
|
|
93
|
-
onChange={(changeValue) =>
|
|
94
|
-
onChange([...value.filter((host: Host) => !host.isFixed), ...updatedHosts(changeValue)])
|
|
95
|
-
}
|
|
96
|
-
assignAllTeamMembers={assignAllTeamMembers}
|
|
97
|
-
setAssignAllTeamMembers={setAssignAllTeamMembers}
|
|
98
|
-
isRoundRobinEvent={true}
|
|
99
|
-
customClassNames={customClassNames?.fixedHosts}
|
|
100
|
-
/>
|
|
101
|
-
<RoundRobinHosts
|
|
102
|
-
orgId={orgId}
|
|
103
|
-
teamId={teamId}
|
|
104
|
-
teamMembers={teamMembers}
|
|
105
|
-
value={value}
|
|
106
|
-
onChange={(changeValue) =>
|
|
107
|
-
onChange([...value.filter((host: Host) => host.isFixed), ...updatedHosts(changeValue)])
|
|
108
|
-
}
|
|
109
|
-
assignAllTeamMembers={assignAllTeamMembers}
|
|
110
|
-
setAssignAllTeamMembers={setAssignAllTeamMembers}
|
|
111
|
-
customClassNames={customClassNames?.roundRobinHosts}
|
|
112
|
-
isSegmentApplicable={isSegmentApplicable}
|
|
113
|
-
weightsEditorSlot={weightsEditorSlot}
|
|
114
|
-
/>
|
|
115
|
-
</>
|
|
116
|
-
),
|
|
117
|
-
MANAGED: null,
|
|
118
|
-
};
|
|
119
|
-
return schedulingType
|
|
120
|
-
? (schedulingTypeRender as Record<string, React.ReactNode>)[schedulingType]
|
|
121
|
-
: null;
|
|
122
|
-
}}
|
|
123
|
-
/>
|
|
124
|
-
);
|
|
125
|
-
};
|
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck — loose FormValues/Host/TeamMember + Radix prop-pick
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
import { useCallback } from "react";
|
|
5
|
-
import { Controller, useFormContext, useWatch } from "react-hook-form";
|
|
6
|
-
import { v4 as uuidv4 } from "uuid";
|
|
7
|
-
import type { AddMembersWithSwitchCustomClassNames } from "../../../add-members-switch/add-members-with-switch";
|
|
8
|
-
import AddMembersWithSwitch from "../../../add-members-switch/add-members-with-switch";
|
|
9
|
-
import { Button } from "../../../components/ui/button";
|
|
10
|
-
import { XIcon } from "../../../components/ui/icons";
|
|
11
|
-
import { Label } from "../../../components/ui/label";
|
|
12
|
-
import { SettingsToggle } from "../../../components/ui/settings-toggle";
|
|
13
|
-
import type { FormValues, Host, TeamMember } from "../../../contracts";
|
|
14
|
-
import { useAtomsLocale as useLocale } from "../../../hooks/use-atoms-locale";
|
|
15
|
-
import { cn } from "../../../lib/utils";
|
|
16
|
-
import { sortHosts } from "../../../vendor/host-group-utils";
|
|
17
|
-
import { LearnMoreLink } from "../learn-more-link";
|
|
18
|
-
import WeightDescription from "../weight-description";
|
|
19
|
-
|
|
20
|
-
export type RoundRobinHostsCustomClassNames = {
|
|
21
|
-
container?: string;
|
|
22
|
-
label?: string;
|
|
23
|
-
description?: string;
|
|
24
|
-
enableWeights?: {
|
|
25
|
-
container?: string;
|
|
26
|
-
label?: string;
|
|
27
|
-
description?: string;
|
|
28
|
-
};
|
|
29
|
-
addMembers?: AddMembersWithSwitchCustomClassNames;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const RoundRobinHosts = ({
|
|
33
|
-
orgId: _orgId,
|
|
34
|
-
teamMembers,
|
|
35
|
-
value,
|
|
36
|
-
onChange,
|
|
37
|
-
assignAllTeamMembers,
|
|
38
|
-
setAssignAllTeamMembers,
|
|
39
|
-
customClassNames,
|
|
40
|
-
teamId,
|
|
41
|
-
isSegmentApplicable,
|
|
42
|
-
/**
|
|
43
|
-
* atoms ships without the EditWeightsForAllTeamMembers sheet (346L,
|
|
44
|
-
* depends on @calcom/ui Sheet + RAQB AttributesQueryValue). Callers
|
|
45
|
-
* that need the full weights editor inject it here; atoms renders
|
|
46
|
-
* nothing in this slot by default.
|
|
47
|
-
*/
|
|
48
|
-
weightsEditorSlot,
|
|
49
|
-
}: {
|
|
50
|
-
orgId: number | null;
|
|
51
|
-
value: Host[];
|
|
52
|
-
onChange: (hosts: Host[]) => void;
|
|
53
|
-
teamMembers: TeamMember[];
|
|
54
|
-
assignAllTeamMembers: boolean;
|
|
55
|
-
setAssignAllTeamMembers: (value: boolean) => void;
|
|
56
|
-
customClassNames?: RoundRobinHostsCustomClassNames;
|
|
57
|
-
teamId: number;
|
|
58
|
-
isSegmentApplicable: boolean;
|
|
59
|
-
weightsEditorSlot?: React.ReactNode;
|
|
60
|
-
}) => {
|
|
61
|
-
const { t } = useLocale();
|
|
62
|
-
|
|
63
|
-
const { setValue, getValues, control } = useFormContext<FormValues>();
|
|
64
|
-
const isRRWeightsEnabled = useWatch({ control, name: "isRRWeightsEnabled" });
|
|
65
|
-
const hostGroups = useWatch({ control, name: "hostGroups" }) ?? [];
|
|
66
|
-
|
|
67
|
-
const handleWeightsEnabledChange = (active: boolean, onFieldChange: (value: boolean) => void) => {
|
|
68
|
-
onFieldChange(active);
|
|
69
|
-
const allHosts = getValues("hosts");
|
|
70
|
-
const fixedHosts = allHosts.filter((host: Host) => host.isFixed);
|
|
71
|
-
const rrHosts = allHosts.filter((host: Host) => !host.isFixed);
|
|
72
|
-
const sortedRRHosts = rrHosts.sort((a: Host, b: Host) => sortHosts(a, b, active));
|
|
73
|
-
setValue("hosts", [...fixedHosts, ...sortedRRHosts]);
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
const handleAddGroup = useCallback(() => {
|
|
77
|
-
const allHosts = getValues("hosts");
|
|
78
|
-
const currentRRHosts = allHosts.filter((host: Host) => !host.isFixed);
|
|
79
|
-
const fixedHosts = allHosts.filter((host: Host) => host.isFixed);
|
|
80
|
-
|
|
81
|
-
if (hostGroups.length === 0 && currentRRHosts.length > 0) {
|
|
82
|
-
const firstGroup = { id: uuidv4(), name: "" };
|
|
83
|
-
const secondGroup = { id: uuidv4(), name: "" };
|
|
84
|
-
const updatedHostGroups = [firstGroup, secondGroup];
|
|
85
|
-
setValue("hostGroups", updatedHostGroups, { shouldDirty: true });
|
|
86
|
-
const updatedRRHosts = currentRRHosts.map((host: Host) =>
|
|
87
|
-
!host.groupId && !host.isFixed ? { ...host, groupId: firstGroup.id } : host
|
|
88
|
-
);
|
|
89
|
-
setValue("hosts", [...fixedHosts, ...updatedRRHosts], { shouldDirty: true });
|
|
90
|
-
} else {
|
|
91
|
-
const newGroup = { id: uuidv4(), name: "" };
|
|
92
|
-
const updatedHostGroups = [...hostGroups, newGroup];
|
|
93
|
-
setValue("hostGroups", updatedHostGroups, { shouldDirty: true });
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (assignAllTeamMembers) {
|
|
97
|
-
setValue("assignAllTeamMembers", false, { shouldDirty: true });
|
|
98
|
-
setAssignAllTeamMembers(false);
|
|
99
|
-
}
|
|
100
|
-
}, [hostGroups, getValues, setValue, assignAllTeamMembers, setAssignAllTeamMembers]);
|
|
101
|
-
|
|
102
|
-
const handleGroupNameChange = useCallback(
|
|
103
|
-
(groupId: string, newName: string) => {
|
|
104
|
-
const updatedHostGroups = hostGroups.map((g: { id: string; name: string }) =>
|
|
105
|
-
g.id === groupId ? { ...g, name: newName } : g
|
|
106
|
-
);
|
|
107
|
-
setValue("hostGroups", updatedHostGroups, { shouldDirty: true });
|
|
108
|
-
},
|
|
109
|
-
[hostGroups, setValue]
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
const handleRemoveGroup = useCallback(
|
|
113
|
-
(groupId: string) => {
|
|
114
|
-
const updatedHostGroups = hostGroups.filter((g: { id: string }) => g.id !== groupId);
|
|
115
|
-
setValue("hostGroups", updatedHostGroups, { shouldDirty: true });
|
|
116
|
-
const updatedHosts = value.filter((host) => host.groupId !== groupId);
|
|
117
|
-
onChange(updatedHosts);
|
|
118
|
-
setValue("hosts", updatedHosts, { shouldDirty: true });
|
|
119
|
-
},
|
|
120
|
-
[hostGroups, setValue, value, onChange]
|
|
121
|
-
);
|
|
122
|
-
|
|
123
|
-
const handleMembersActivation = useCallback(
|
|
124
|
-
(groupId: string | null) => {
|
|
125
|
-
const currentHosts = getValues("hosts");
|
|
126
|
-
setValue(
|
|
127
|
-
"hosts",
|
|
128
|
-
teamMembers.map((teamMember: TeamMember) => {
|
|
129
|
-
const host = currentHosts.find((h: Host) => h.userId === parseInt(teamMember.value, 10));
|
|
130
|
-
return {
|
|
131
|
-
isFixed: false,
|
|
132
|
-
userId: parseInt(teamMember.value, 10),
|
|
133
|
-
priority: host?.priority ?? 2,
|
|
134
|
-
weight: host?.weight ?? 100,
|
|
135
|
-
avatar: host?.avatar ?? teamMember.avatar,
|
|
136
|
-
name: host?.name ?? teamMember.label,
|
|
137
|
-
scheduleId: host?.scheduleId || teamMember.defaultScheduleId,
|
|
138
|
-
groupId: host?.groupId || groupId,
|
|
139
|
-
};
|
|
140
|
-
}),
|
|
141
|
-
{ shouldDirty: true }
|
|
142
|
-
);
|
|
143
|
-
},
|
|
144
|
-
[getValues, setValue, teamMembers]
|
|
145
|
-
);
|
|
146
|
-
|
|
147
|
-
const AddMembersWithSwitchComponent = ({
|
|
148
|
-
groupId,
|
|
149
|
-
containerClassName,
|
|
150
|
-
}: {
|
|
151
|
-
groupId: string | null;
|
|
152
|
-
containerClassName?: string;
|
|
153
|
-
}) => (
|
|
154
|
-
<AddMembersWithSwitch
|
|
155
|
-
placeholder={t("add_a_member")}
|
|
156
|
-
teamId={teamId}
|
|
157
|
-
teamMembers={teamMembers}
|
|
158
|
-
value={value}
|
|
159
|
-
onChange={onChange}
|
|
160
|
-
assignAllTeamMembers={assignAllTeamMembers}
|
|
161
|
-
setAssignAllTeamMembers={setAssignAllTeamMembers}
|
|
162
|
-
isSegmentApplicable={isSegmentApplicable}
|
|
163
|
-
automaticAddAllEnabled={true}
|
|
164
|
-
isRRWeightsEnabled={isRRWeightsEnabled}
|
|
165
|
-
isFixed={false}
|
|
166
|
-
groupId={groupId}
|
|
167
|
-
onActive={() => handleMembersActivation(groupId)}
|
|
168
|
-
customClassNames={customClassNames?.addMembers}
|
|
169
|
-
/>
|
|
170
|
-
);
|
|
171
|
-
|
|
172
|
-
const UnassignedHostsGroup = () => {
|
|
173
|
-
const unassignedHosts = value.filter((host) => !host.isFixed && !host.groupId);
|
|
174
|
-
if (unassignedHosts.length === 0) return null;
|
|
175
|
-
return (
|
|
176
|
-
<div className="border-subtle my-4 rounded-md border p-4 pb-0">
|
|
177
|
-
<div className="-mb-4 flex items-center justify-between">
|
|
178
|
-
<div className="flex items-center gap-1">
|
|
179
|
-
<span className="text-default text-sm font-medium">{`Group ${hostGroups.length + 1}`}</span>
|
|
180
|
-
</div>
|
|
181
|
-
</div>
|
|
182
|
-
<AddMembersWithSwitchComponent groupId={null} />
|
|
183
|
-
</div>
|
|
184
|
-
);
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
return (
|
|
188
|
-
<div className={cn("rounded-lg")}>
|
|
189
|
-
<div className={cn("border-subtle mt-5 rounded-t-md border p-6 pb-5", customClassNames?.container)}>
|
|
190
|
-
<div className="flex items-center justify-between">
|
|
191
|
-
<div>
|
|
192
|
-
<Label className={cn("mb-1 text-sm font-semibold", customClassNames?.label)}>
|
|
193
|
-
{t("round_robin_hosts")}
|
|
194
|
-
</Label>
|
|
195
|
-
<p
|
|
196
|
-
className={cn(
|
|
197
|
-
"text-subtle wrap-break-word max-w-full text-sm leading-tight",
|
|
198
|
-
customClassNames?.description
|
|
199
|
-
)}
|
|
200
|
-
>
|
|
201
|
-
<LearnMoreLink
|
|
202
|
-
t={t}
|
|
203
|
-
i18nKey={hostGroups.length > 0 ? "round_robin_groups_helper" : "round_robin_helper"}
|
|
204
|
-
href="https://cal.com/help/event-types/round-robin"
|
|
205
|
-
/>
|
|
206
|
-
</p>
|
|
207
|
-
</div>
|
|
208
|
-
<Button color="secondary" size="sm" StartIcon="plus" onClick={handleAddGroup}>
|
|
209
|
-
{t("add_group")}
|
|
210
|
-
</Button>
|
|
211
|
-
</div>
|
|
212
|
-
</div>
|
|
213
|
-
<div className="border-subtle rounded-b-md border border-t-0 px-6 pt-4">
|
|
214
|
-
<Controller<FormValues>
|
|
215
|
-
name="isRRWeightsEnabled"
|
|
216
|
-
render={({ field: { value: enabled, onChange: onFieldChange } }) => (
|
|
217
|
-
<SettingsToggle
|
|
218
|
-
title={t("enable_weights")}
|
|
219
|
-
description={<WeightDescription t={t} />}
|
|
220
|
-
checked={enabled}
|
|
221
|
-
switchContainerClassName={customClassNames?.enableWeights?.container}
|
|
222
|
-
labelClassName={customClassNames?.enableWeights?.label}
|
|
223
|
-
descriptionClassName={customClassNames?.enableWeights?.description}
|
|
224
|
-
onCheckedChange={(active) => handleWeightsEnabledChange(active, onFieldChange)}
|
|
225
|
-
>
|
|
226
|
-
{weightsEditorSlot ?? null}
|
|
227
|
-
</SettingsToggle>
|
|
228
|
-
)}
|
|
229
|
-
/>
|
|
230
|
-
{!hostGroups.length ? (
|
|
231
|
-
<AddMembersWithSwitchComponent groupId={hostGroups[0]?.id ?? null} />
|
|
232
|
-
) : (
|
|
233
|
-
<>
|
|
234
|
-
<UnassignedHostsGroup />
|
|
235
|
-
{hostGroups.map((group: { id: string; name: string }, index: number) => {
|
|
236
|
-
const groupNumber = index + 1;
|
|
237
|
-
return (
|
|
238
|
-
<div key={group.id} className="border-subtle my-4 rounded-md border p-4 pb-0">
|
|
239
|
-
<div className="-mb-4 flex items-center justify-between">
|
|
240
|
-
<div className="flex items-center gap-2">
|
|
241
|
-
<input
|
|
242
|
-
type="text"
|
|
243
|
-
value={group.name ?? ""}
|
|
244
|
-
onChange={(e) => handleGroupNameChange(group.id, e.target.value)}
|
|
245
|
-
className="border-none bg-transparent p-0 text-sm font-medium focus:outline-none focus:ring-0"
|
|
246
|
-
placeholder={`Group ${groupNumber}`}
|
|
247
|
-
/>
|
|
248
|
-
</div>
|
|
249
|
-
<button
|
|
250
|
-
type="button"
|
|
251
|
-
onClick={() => handleRemoveGroup(group.id)}
|
|
252
|
-
className="text-subtle hover:text-default rounded p-1"
|
|
253
|
-
>
|
|
254
|
-
<XIcon className="h-4 w-4" />
|
|
255
|
-
</button>
|
|
256
|
-
</div>
|
|
257
|
-
<AddMembersWithSwitchComponent groupId={group.id} />
|
|
258
|
-
</div>
|
|
259
|
-
);
|
|
260
|
-
})}
|
|
261
|
-
</>
|
|
262
|
-
)}
|
|
263
|
-
</div>
|
|
264
|
-
</div>
|
|
265
|
-
);
|
|
266
|
-
};
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck — loose event-type form contract + Radix prop-pick
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
import type { ReactNode } from "react";
|
|
5
|
-
import type { UseFormReturn } from "react-hook-form";
|
|
6
|
-
import { Alert } from "../../components/ui/alert";
|
|
7
|
-
import { Form } from "../../components/ui/form";
|
|
8
|
-
import { RadioAreaGroup, RadioArea as RadioAreaItem } from "../../components/ui/radio-area-group";
|
|
9
|
-
import { TextField } from "../../components/ui/text-field";
|
|
10
|
-
import { Tooltip } from "../../components/ui/tooltip";
|
|
11
|
-
import { SchedulingType } from "../../contracts";
|
|
12
|
-
import { useAtomsLocale as useLocale } from "../../hooks/use-atoms-locale";
|
|
13
|
-
import { cn } from "../../lib/utils";
|
|
14
|
-
import { slugify } from "../../vendor/slugify";
|
|
15
|
-
|
|
16
|
-
type CreateEventTypeFormValues = {
|
|
17
|
-
title?: string;
|
|
18
|
-
slug?: string;
|
|
19
|
-
schedulingType?: SchedulingType | string | null;
|
|
20
|
-
teamId?: number;
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
type Props = {
|
|
25
|
-
permissions: {
|
|
26
|
-
canCreateEventType: boolean;
|
|
27
|
-
};
|
|
28
|
-
teamSlug?: string | null;
|
|
29
|
-
teamId: number;
|
|
30
|
-
isPending: boolean;
|
|
31
|
-
urlPrefix?: string;
|
|
32
|
-
form: UseFormReturn<CreateEventTypeFormValues>;
|
|
33
|
-
handleSubmit: (values: CreateEventTypeFormValues) => void;
|
|
34
|
-
isManagedEventType: boolean;
|
|
35
|
-
SubmitButton: (isPending: boolean) => ReactNode;
|
|
36
|
-
isPlatform?: boolean;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const TeamEventTypeForm = ({
|
|
40
|
-
permissions,
|
|
41
|
-
teamSlug,
|
|
42
|
-
teamId,
|
|
43
|
-
form,
|
|
44
|
-
urlPrefix,
|
|
45
|
-
isPending,
|
|
46
|
-
handleSubmit,
|
|
47
|
-
isManagedEventType,
|
|
48
|
-
SubmitButton,
|
|
49
|
-
isPlatform = false,
|
|
50
|
-
}: Props) => {
|
|
51
|
-
const { t } = useLocale();
|
|
52
|
-
|
|
53
|
-
const { register, setValue, formState } = form;
|
|
54
|
-
const { canCreateEventType } = permissions;
|
|
55
|
-
|
|
56
|
-
return (
|
|
57
|
-
<Form form={form} handleSubmit={handleSubmit}>
|
|
58
|
-
<div className="mb-6 mt-1 stack-y-6">
|
|
59
|
-
<TextField
|
|
60
|
-
type="hidden"
|
|
61
|
-
labelProps={{ style: { display: "none" } }}
|
|
62
|
-
{...register("teamId", { valueAsNumber: true })}
|
|
63
|
-
value={teamId}
|
|
64
|
-
/>
|
|
65
|
-
<TextField
|
|
66
|
-
label={t("title")}
|
|
67
|
-
placeholder={t("quick_chat")}
|
|
68
|
-
data-testid="event-type-quick-chat"
|
|
69
|
-
{...register("title")}
|
|
70
|
-
onChange={(e) => {
|
|
71
|
-
form.setValue("title", e?.target.value);
|
|
72
|
-
if (formState.touchedFields["slug"] === undefined) {
|
|
73
|
-
form.setValue("slug", slugify(e?.target.value));
|
|
74
|
-
}
|
|
75
|
-
}}
|
|
76
|
-
/>
|
|
77
|
-
{urlPrefix && urlPrefix.length >= 21 ? (
|
|
78
|
-
<div>
|
|
79
|
-
<TextField
|
|
80
|
-
label={isPlatform ? "Slug" : `${t("url")}: ${urlPrefix}`}
|
|
81
|
-
required
|
|
82
|
-
addOnLeading={
|
|
83
|
-
!isPlatform ? (
|
|
84
|
-
<Tooltip content={!isManagedEventType ? `team/${teamSlug}` : t("username_placeholder")}>
|
|
85
|
-
<span className="max-w-24 md:max-w-56">
|
|
86
|
-
/{!isManagedEventType ? `team/${teamSlug}` : t("username_placeholder")}/
|
|
87
|
-
</span>
|
|
88
|
-
</Tooltip>
|
|
89
|
-
) : undefined
|
|
90
|
-
}
|
|
91
|
-
{...register("slug")}
|
|
92
|
-
onChange={(e) => {
|
|
93
|
-
form.setValue("slug", slugify(e?.target.value), { shouldTouch: true });
|
|
94
|
-
}}
|
|
95
|
-
/>
|
|
96
|
-
{isManagedEventType && !isPlatform && (
|
|
97
|
-
<p className="mt-2 text-sm text-gray-600">{t("managed_event_url_clarification")}</p>
|
|
98
|
-
)}
|
|
99
|
-
</div>
|
|
100
|
-
) : (
|
|
101
|
-
<div>
|
|
102
|
-
<TextField
|
|
103
|
-
label={isPlatform ? "Slug" : t("url")}
|
|
104
|
-
required
|
|
105
|
-
addOnLeading={
|
|
106
|
-
!isPlatform ? (
|
|
107
|
-
<Tooltip
|
|
108
|
-
content={`${urlPrefix}/${
|
|
109
|
-
!isManagedEventType ? `team/${teamSlug}` : t("username_placeholder")
|
|
110
|
-
}/`}
|
|
111
|
-
>
|
|
112
|
-
<span className="max-w-24 md:max-w-56">
|
|
113
|
-
{urlPrefix}/{!isManagedEventType ? `team/${teamSlug}` : t("username_placeholder")}/
|
|
114
|
-
</span>
|
|
115
|
-
</Tooltip>
|
|
116
|
-
) : undefined
|
|
117
|
-
}
|
|
118
|
-
{...register("slug")}
|
|
119
|
-
onChange={(e) => {
|
|
120
|
-
form.setValue("slug", slugify(e?.target.value), { shouldTouch: true });
|
|
121
|
-
}}
|
|
122
|
-
/>
|
|
123
|
-
{isManagedEventType && !isPlatform && (
|
|
124
|
-
<p className="mt-2 text-sm text-gray-600">{t("managed_event_url_clarification")}</p>
|
|
125
|
-
)}
|
|
126
|
-
</div>
|
|
127
|
-
)}
|
|
128
|
-
<div className="mb-4">
|
|
129
|
-
<label htmlFor="schedulingType" className="text-default block text-sm font-bold">
|
|
130
|
-
{t("assignment")}
|
|
131
|
-
</label>
|
|
132
|
-
{formState.errors.schedulingType && (
|
|
133
|
-
<Alert
|
|
134
|
-
className="mt-1"
|
|
135
|
-
severity="error"
|
|
136
|
-
message={formState.errors.schedulingType.message as string}
|
|
137
|
-
/>
|
|
138
|
-
)}
|
|
139
|
-
<RadioAreaGroup
|
|
140
|
-
onValueChange={(val: SchedulingType) => {
|
|
141
|
-
setValue("schedulingType", val);
|
|
142
|
-
}}
|
|
143
|
-
className={cn("mt-1 flex gap-4", canCreateEventType && "flex-col")}
|
|
144
|
-
>
|
|
145
|
-
<RadioAreaItem
|
|
146
|
-
{...register("schedulingType")}
|
|
147
|
-
value={SchedulingType.COLLECTIVE}
|
|
148
|
-
className={cn("w-full text-sm", !canCreateEventType && "w-1/2")}
|
|
149
|
-
classNames={{ container: cn(canCreateEventType && "w-full") }}
|
|
150
|
-
>
|
|
151
|
-
<strong className="mb-1 block">{t("collective")}</strong>
|
|
152
|
-
<p>{t("collective_description")}</p>
|
|
153
|
-
</RadioAreaItem>
|
|
154
|
-
<RadioAreaItem
|
|
155
|
-
{...register("schedulingType")}
|
|
156
|
-
value={SchedulingType.ROUND_ROBIN}
|
|
157
|
-
className={cn("text-sm", !canCreateEventType && "w-1/2")}
|
|
158
|
-
classNames={{ container: cn(canCreateEventType && "w-full") }}
|
|
159
|
-
>
|
|
160
|
-
<strong className="mb-1 block">{t("round_robin")}</strong>
|
|
161
|
-
<p>{t("round_robin_description")}</p>
|
|
162
|
-
</RadioAreaItem>
|
|
163
|
-
{canCreateEventType && (
|
|
164
|
-
<RadioAreaItem
|
|
165
|
-
{...register("schedulingType")}
|
|
166
|
-
value={SchedulingType.MANAGED}
|
|
167
|
-
className={cn("text-sm", !canCreateEventType && "w-1/2")}
|
|
168
|
-
classNames={{ container: cn(canCreateEventType && "w-full") }}
|
|
169
|
-
data-testid="managed-event-type"
|
|
170
|
-
>
|
|
171
|
-
<strong className="mb-1 block">{t("managed_event")}</strong>
|
|
172
|
-
<p>{t("managed_event_description")}</p>
|
|
173
|
-
</RadioAreaItem>
|
|
174
|
-
)}
|
|
175
|
-
</RadioAreaGroup>
|
|
176
|
-
</div>
|
|
177
|
-
</div>
|
|
178
|
-
{SubmitButton(isPending)}
|
|
179
|
-
</Form>
|
|
180
|
-
);
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
export default TeamEventTypeForm;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import Link from "next/link";
|
|
2
|
-
|
|
3
|
-
import ServerTrans from "../../vendor/server-trans";
|
|
4
|
-
|
|
5
|
-
type TranslationFunction = (key: string, options?: Record<string, unknown>) => string;
|
|
6
|
-
|
|
7
|
-
export default function WeightDescription({ t }: { t: TranslationFunction }) {
|
|
8
|
-
return (
|
|
9
|
-
<ServerTrans
|
|
10
|
-
t={t}
|
|
11
|
-
i18nKey="weights_description"
|
|
12
|
-
components={[
|
|
13
|
-
<Link
|
|
14
|
-
key="weights_description"
|
|
15
|
-
className="underline underline-offset-2"
|
|
16
|
-
target="_blank"
|
|
17
|
-
href="https://cal.com/docs/enterprise-features/teams/round-robin-scheduling#weights"
|
|
18
|
-
>
|
|
19
|
-
Learn more
|
|
20
|
-
</Link>,
|
|
21
|
-
]}
|
|
22
|
-
/>
|
|
23
|
-
);
|
|
24
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { act, renderHook } from "@testing-library/react";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
import { SchedulingType } from "../../../contracts";
|
|
4
|
-
import { useAssignAllManagedWarning } from "../use-assign-all-managed-warning";
|
|
5
|
-
|
|
6
|
-
describe("useAssignAllManagedWarning", () => {
|
|
7
|
-
it("is closed by default", () => {
|
|
8
|
-
const { result } = renderHook(() => useAssignAllManagedWarning());
|
|
9
|
-
expect(result.current.isOpen).toBe(false);
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
it("shouldShowWarning returns true when toggling on a MANAGED event type", () => {
|
|
13
|
-
const { result } = renderHook(() => useAssignAllManagedWarning());
|
|
14
|
-
expect(
|
|
15
|
-
result.current.shouldShowWarning({
|
|
16
|
-
schedulingType: SchedulingType.MANAGED,
|
|
17
|
-
oldAssignAllTeamMembers: false,
|
|
18
|
-
newAssignAllTeamMembers: true,
|
|
19
|
-
})
|
|
20
|
-
).toBe(true);
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it("shouldShowWarning returns false for non-managed scheduling types", () => {
|
|
24
|
-
const { result } = renderHook(() => useAssignAllManagedWarning());
|
|
25
|
-
expect(
|
|
26
|
-
result.current.shouldShowWarning({
|
|
27
|
-
schedulingType: SchedulingType.ROUND_ROBIN,
|
|
28
|
-
oldAssignAllTeamMembers: false,
|
|
29
|
-
newAssignAllTeamMembers: true,
|
|
30
|
-
})
|
|
31
|
-
).toBe(false);
|
|
32
|
-
expect(
|
|
33
|
-
result.current.shouldShowWarning({
|
|
34
|
-
schedulingType: null,
|
|
35
|
-
oldAssignAllTeamMembers: false,
|
|
36
|
-
newAssignAllTeamMembers: true,
|
|
37
|
-
})
|
|
38
|
-
).toBe(false);
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
it("shouldShowWarning returns false when toggling off", () => {
|
|
42
|
-
const { result } = renderHook(() => useAssignAllManagedWarning());
|
|
43
|
-
expect(
|
|
44
|
-
result.current.shouldShowWarning({
|
|
45
|
-
schedulingType: SchedulingType.MANAGED,
|
|
46
|
-
oldAssignAllTeamMembers: true,
|
|
47
|
-
newAssignAllTeamMembers: false,
|
|
48
|
-
})
|
|
49
|
-
).toBe(false);
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
it("shouldShowWarning returns false once the user has confirmed", () => {
|
|
53
|
-
const { result } = renderHook(() => useAssignAllManagedWarning());
|
|
54
|
-
act(() => result.current.confirm());
|
|
55
|
-
expect(
|
|
56
|
-
result.current.shouldShowWarning({
|
|
57
|
-
schedulingType: SchedulingType.MANAGED,
|
|
58
|
-
oldAssignAllTeamMembers: false,
|
|
59
|
-
newAssignAllTeamMembers: true,
|
|
60
|
-
})
|
|
61
|
-
).toBe(false);
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
it("show opens the dialog and cancel closes it", () => {
|
|
65
|
-
const { result } = renderHook(() => useAssignAllManagedWarning());
|
|
66
|
-
act(() => result.current.show());
|
|
67
|
-
expect(result.current.isOpen).toBe(true);
|
|
68
|
-
act(() => result.current.cancel());
|
|
69
|
-
expect(result.current.isOpen).toBe(false);
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
it("confirm closes the dialog and persists confirmation", () => {
|
|
73
|
-
const { result } = renderHook(() => useAssignAllManagedWarning());
|
|
74
|
-
act(() => result.current.show());
|
|
75
|
-
act(() => result.current.confirm());
|
|
76
|
-
expect(result.current.isOpen).toBe(false);
|
|
77
|
-
});
|
|
78
|
-
});
|