@calcom/atoms 2.8.0 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cal-atoms.js +186 -135
- package/dist/{index-BrBTKoIj.js → index-uxS4DSg-.js} +8207 -8162
- package/dist/index.d.ts +6258 -2
- package/dist/{stripe-payment-form-2mrB04BK.js → stripe-payment-form-Ct6RLnZs.js} +1 -1
- package/package.json +4 -131
- package/dist/src/add-members-switch/add-members-with-switch-platform-wrapper.d.ts +0 -3
- package/dist/src/add-members-switch/add-members-with-switch-platform-wrapper.d.ts.map +0 -1
- package/dist/src/add-members-switch/add-members-with-switch.d.ts +0 -41
- package/dist/src/add-members-switch/add-members-with-switch.d.ts.map +0 -1
- package/dist/src/availability/availability-settings.d.ts +0 -88
- package/dist/src/availability/availability-settings.d.ts.map +0 -1
- package/dist/src/availability/components/date-override-input-dialog.d.ts +0 -17
- package/dist/src/availability/components/date-override-input-dialog.d.ts.map +0 -1
- package/dist/src/availability/components/date-override-list.d.ts +0 -20
- package/dist/src/availability/components/date-override-list.d.ts.map +0 -1
- package/dist/src/availability/components/schedule-component.d.ts +0 -49
- package/dist/src/availability/components/schedule-component.d.ts.map +0 -1
- package/dist/src/availability/index.d.ts +0 -4
- package/dist/src/availability/index.d.ts.map +0 -1
- package/dist/src/availability/types.d.ts +0 -36
- package/dist/src/availability/types.d.ts.map +0 -1
- package/dist/src/availability/wrappers/availability-settings-platform-wrapper.d.ts +0 -28
- package/dist/src/availability/wrappers/availability-settings-platform-wrapper.d.ts.map +0 -1
- package/dist/src/booker/booker-platform-wrapper.d.ts +0 -5
- package/dist/src/booker/booker-platform-wrapper.d.ts.map +0 -1
- package/dist/src/booker/booker-store-provider.d.ts +0 -11
- package/dist/src/booker/booker-store-provider.d.ts.map +0 -1
- package/dist/src/booker/components/available-time-slots.d.ts +0 -46
- package/dist/src/booker/components/available-time-slots.d.ts.map +0 -1
- package/dist/src/booker/components/available-times-header.d.ts +0 -14
- package/dist/src/booker/components/available-times-header.d.ts.map +0 -1
- package/dist/src/booker/components/available-times.d.ts +0 -46
- package/dist/src/booker/components/available-times.d.ts.map +0 -1
- package/dist/src/booker/components/book-event-form/book-event-form.d.ts +0 -34
- package/dist/src/booker/components/book-event-form/book-event-form.d.ts.map +0 -1
- package/dist/src/booker/components/book-event-form/book-form-as-modal.d.ts +0 -14
- package/dist/src/booker/components/book-event-form/book-form-as-modal.d.ts.map +0 -1
- package/dist/src/booker/components/book-event-form/booking-fields.d.ts +0 -35
- package/dist/src/booker/components/book-event-form/booking-fields.d.ts.map +0 -1
- package/dist/src/booker/components/book-event-form/index.d.ts +0 -5
- package/dist/src/booker/components/book-event-form/index.d.ts.map +0 -1
- package/dist/src/booker/components/book-event-form/skeleton.d.ts +0 -2
- package/dist/src/booker/components/book-event-form/skeleton.d.ts.map +0 -1
- package/dist/src/booker/components/booker-component.d.ts +0 -2
- package/dist/src/booker/components/booker-component.d.ts.map +0 -1
- package/dist/src/booker/components/booker-section.d.ts +0 -15
- package/dist/src/booker/components/booker-section.d.ts.map +0 -1
- package/dist/src/booker/components/dry-run-message.d.ts +0 -4
- package/dist/src/booker/components/dry-run-message.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/available-event-locations.d.ts +0 -6
- package/dist/src/booker/components/event-meta/available-event-locations.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/details.d.ts +0 -34
- package/dist/src/booker/components/event-meta/details.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/duration.d.ts +0 -9
- package/dist/src/booker/components/event-meta/duration.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/index.d.ts +0 -7
- package/dist/src/booker/components/event-meta/index.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/locations.d.ts +0 -5
- package/dist/src/booker/components/event-meta/locations.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/members.d.ts +0 -13
- package/dist/src/booker/components/event-meta/members.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/occurences.d.ts +0 -5
- package/dist/src/booker/components/event-meta/occurences.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/price-icon.d.ts +0 -5
- package/dist/src/booker/components/event-meta/price-icon.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/price.d.ts +0 -7
- package/dist/src/booker/components/event-meta/price.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/skeleton.d.ts +0 -2
- package/dist/src/booker/components/event-meta/skeleton.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta/title.d.ts +0 -9
- package/dist/src/booker/components/event-meta/title.d.ts.map +0 -1
- package/dist/src/booker/components/event-meta.d.ts +0 -25
- package/dist/src/booker/components/event-meta.d.ts.map +0 -1
- package/dist/src/booker/components/external-redirect-interstitial.d.ts +0 -9
- package/dist/src/booker/components/external-redirect-interstitial.d.ts.map +0 -1
- package/dist/src/booker/components/form-builder/components.d.ts +0 -48
- package/dist/src/booker/components/form-builder/components.d.ts.map +0 -1
- package/dist/src/booker/components/form-builder/form-builder-field.d.ts +0 -46
- package/dist/src/booker/components/form-builder/form-builder-field.d.ts.map +0 -1
- package/dist/src/booker/components/having-trouble-finding-time.d.ts +0 -9
- package/dist/src/booker/components/having-trouble-finding-time.d.ts.map +0 -1
- package/dist/src/booker/components/header.d.ts +0 -18
- package/dist/src/booker/components/header.d.ts.map +0 -1
- package/dist/src/booker/components/instant-booking.d.ts +0 -16
- package/dist/src/booker/components/instant-booking.d.ts.map +0 -1
- package/dist/src/booker/components/out-of-office-in-slots.d.ts +0 -19
- package/dist/src/booker/components/out-of-office-in-slots.d.ts.map +0 -1
- package/dist/src/booker/components/overlay-calendar/overlay-calendar-continue-modal.d.ts +0 -8
- package/dist/src/booker/components/overlay-calendar/overlay-calendar-continue-modal.d.ts.map +0 -1
- package/dist/src/booker/components/overlay-calendar/overlay-calendar-settings-modal.d.ts +0 -11
- package/dist/src/booker/components/overlay-calendar/overlay-calendar-settings-modal.d.ts.map +0 -1
- package/dist/src/booker/components/overlay-calendar/overlay-calendar-switch.d.ts +0 -8
- package/dist/src/booker/components/overlay-calendar/overlay-calendar-switch.d.ts.map +0 -1
- package/dist/src/booker/components/overlay-calendar/overlay-calendar.d.ts +0 -28
- package/dist/src/booker/components/overlay-calendar/overlay-calendar.d.ts.map +0 -1
- package/dist/src/booker/components/overlay-calendar/store.d.ts +0 -12
- package/dist/src/booker/components/overlay-calendar/store.d.ts.map +0 -1
- package/dist/src/booker/components/pay-icon.d.ts +0 -5
- package/dist/src/booker/components/pay-icon.d.ts.map +0 -1
- package/dist/src/booker/components/price.d.ts +0 -9
- package/dist/src/booker/components/price.d.ts.map +0 -1
- package/dist/src/booker/components/redirect-to-instant-meeting-modal.d.ts +0 -8
- package/dist/src/booker/components/redirect-to-instant-meeting-modal.d.ts.map +0 -1
- package/dist/src/booker/components/scrollable-with-gradients.d.ts +0 -9
- package/dist/src/booker/components/scrollable-with-gradients.d.ts.map +0 -1
- package/dist/src/booker/components/seats-availability-text.d.ts +0 -18
- package/dist/src/booker/components/seats-availability-text.d.ts.map +0 -1
- package/dist/src/booker/components/section.d.ts +0 -17
- package/dist/src/booker/components/section.d.ts.map +0 -1
- package/dist/src/booker/components/slot-selection-modal-header.d.ts +0 -14
- package/dist/src/booker/components/slot-selection-modal-header.d.ts.map +0 -1
- package/dist/src/booker/components/time-format-toggle.d.ts +0 -4
- package/dist/src/booker/components/time-format-toggle.d.ts.map +0 -1
- package/dist/src/booker/components/unavailable.d.ts +0 -3
- package/dist/src/booker/components/unavailable.d.ts.map +0 -1
- package/dist/src/booker/components/unpublished-entity.d.ts +0 -8
- package/dist/src/booker/components/unpublished-entity.d.ts.map +0 -1
- package/dist/src/booker/components/verify-code-dialog.d.ts +0 -15
- package/dist/src/booker/components/verify-code-dialog.d.ts.map +0 -1
- package/dist/src/booker/config.d.ts +0 -86
- package/dist/src/booker/config.d.ts.map +0 -1
- package/dist/src/booker/framer-features.d.ts +0 -3
- package/dist/src/booker/framer-features.d.ts.map +0 -1
- package/dist/src/booker/hooks/embed-stubs.d.ts +0 -20
- package/dist/src/booker/hooks/embed-stubs.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-available-time-slots.d.ts +0 -23
- package/dist/src/booker/hooks/use-available-time-slots.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-booker-layout.d.ts +0 -51
- package/dist/src/booker/hooks/use-booker-layout.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-booker-time.d.ts +0 -7
- package/dist/src/booker/hooks/use-booker-time.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-booking-form.d.ts +0 -65
- package/dist/src/booker/hooks/use-booking-form.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-bookings-types.d.ts +0 -10
- package/dist/src/booker/hooks/use-bookings-types.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-check-overlap-with-overlay.d.ts +0 -11
- package/dist/src/booker/hooks/use-check-overlap-with-overlay.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-initialize-week-start.d.ts +0 -2
- package/dist/src/booker/hooks/use-initialize-week-start.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-is-quick-availability-check-feature-enabled.d.ts +0 -15
- package/dist/src/booker/hooks/use-is-quick-availability-check-feature-enabled.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-local-set.d.ts +0 -12
- package/dist/src/booker/hooks/use-local-set.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-non-empty-schedule-days.d.ts +0 -3
- package/dist/src/booker/hooks/use-non-empty-schedule-days.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-overlay-calendar.d.ts +0 -23
- package/dist/src/booker/hooks/use-overlay-calendar.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-should-show-arrows.d.ts +0 -8
- package/dist/src/booker/hooks/use-should-show-arrows.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-skip-confirm-step.d.ts +0 -21
- package/dist/src/booker/hooks/use-skip-confirm-step.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-slots-for-date.d.ts +0 -21
- package/dist/src/booker/hooks/use-slots-for-date.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-stable-timezone.d.ts +0 -5
- package/dist/src/booker/hooks/use-stable-timezone.d.ts.map +0 -1
- package/dist/src/booker/hooks/use-times-for-schedule.d.ts +0 -27
- package/dist/src/booker/hooks/use-times-for-schedule.d.ts.map +0 -1
- package/dist/src/booker/store.d.ts +0 -200
- package/dist/src/booker/store.d.ts.map +0 -1
- package/dist/src/booker/types.d.ts +0 -118
- package/dist/src/booker/types.d.ts.map +0 -1
- package/dist/src/booker/use-slot-reservation-id.d.ts +0 -2
- package/dist/src/booker/use-slot-reservation-id.d.ts.map +0 -1
- package/dist/src/booker/utils/are-different-valid-months.d.ts +0 -2
- package/dist/src/booker/utils/are-different-valid-months.d.ts.map +0 -1
- package/dist/src/booker/utils/dates.d.ts +0 -26
- package/dist/src/booker/utils/dates.d.ts.map +0 -1
- package/dist/src/booker/utils/get-booker-timezone.d.ts +0 -5
- package/dist/src/booker/utils/get-booker-timezone.d.ts.map +0 -1
- package/dist/src/booker/utils/get-booking-duration.d.ts +0 -6
- package/dist/src/booker/utils/get-booking-duration.d.ts.map +0 -1
- package/dist/src/booker/utils/get-prefetch-month-count.d.ts +0 -3
- package/dist/src/booker/utils/get-prefetch-month-count.d.ts.map +0 -1
- package/dist/src/booker/utils/is-booking-dry-run.d.ts +0 -3
- package/dist/src/booker/utils/is-booking-dry-run.d.ts.map +0 -1
- package/dist/src/booker/utils/is-month-change.d.ts +0 -2
- package/dist/src/booker/utils/is-month-change.d.ts.map +0 -1
- package/dist/src/booker/utils/is-month-view-prefetch-enabled.d.ts +0 -2
- package/dist/src/booker/utils/is-month-view-prefetch-enabled.d.ts.map +0 -1
- package/dist/src/booker/utils/is-prefetch-next-month-enabled.d.ts +0 -2
- package/dist/src/booker/utils/is-prefetch-next-month-enabled.d.ts.map +0 -1
- package/dist/src/booker/utils/is-timeslot-available.d.ts +0 -19
- package/dist/src/booker/utils/is-timeslot-available.d.ts.map +0 -1
- package/dist/src/booker/utils/layout.d.ts +0 -2
- package/dist/src/booker/utils/layout.d.ts.map +0 -1
- package/dist/src/booker-embed/booker-embed.d.ts +0 -31
- package/dist/src/booker-embed/booker-embed.d.ts.map +0 -1
- package/dist/src/booker-embed/index.d.ts +0 -2
- package/dist/src/booker-embed/index.d.ts.map +0 -1
- package/dist/src/booker-embed/use-get-routing-form-url-props.d.ts +0 -29
- package/dist/src/booker-embed/use-get-routing-form-url-props.d.ts.map +0 -1
- package/dist/src/cal-provider/base-cal-provider.d.ts +0 -24
- package/dist/src/cal-provider/base-cal-provider.d.ts.map +0 -1
- package/dist/src/cal-provider/cal-o-auth-provider.d.ts +0 -19
- package/dist/src/cal-provider/cal-o-auth-provider.d.ts.map +0 -1
- package/dist/src/cal-provider/cal-provider.d.ts +0 -22
- package/dist/src/cal-provider/cal-provider.d.ts.map +0 -1
- package/dist/src/cal-provider/index.d.ts +0 -3
- package/dist/src/cal-provider/index.d.ts.map +0 -1
- package/dist/src/cal-provider/languages.d.ts +0 -55
- package/dist/src/cal-provider/languages.d.ts.map +0 -1
- package/dist/src/calendar-settings/index.d.ts +0 -2
- package/dist/src/calendar-settings/index.d.ts.map +0 -1
- package/dist/src/calendar-settings/wrappers/calendar-settings-platform-wrapper.d.ts +0 -17
- package/dist/src/calendar-settings/wrappers/calendar-settings-platform-wrapper.d.ts.map +0 -1
- package/dist/src/calendar-view/calendar-view-component.d.ts +0 -2
- package/dist/src/calendar-view/calendar-view-component.d.ts.map +0 -1
- package/dist/src/calendar-view/components/calendar.d.ts +0 -2
- package/dist/src/calendar-view/components/calendar.d.ts.map +0 -1
- package/dist/src/calendar-view/components/date-picker.d.ts +0 -82
- package/dist/src/calendar-view/components/date-picker.d.ts.map +0 -1
- package/dist/src/calendar-view/components/large-calendar.d.ts +0 -19
- package/dist/src/calendar-view/components/large-calendar.d.ts.map +0 -1
- package/dist/src/calendar-view/components/no-availability-dialog.d.ts +0 -19
- package/dist/src/calendar-view/components/no-availability-dialog.d.ts.map +0 -1
- package/dist/src/calendar-view/event-type-calendar-view-component.d.ts +0 -7
- package/dist/src/calendar-view/event-type-calendar-view-component.d.ts.map +0 -1
- package/dist/src/calendar-view/index.d.ts +0 -2
- package/dist/src/calendar-view/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/calendar.d.ts +0 -4
- package/dist/src/calendar-view/scheduler/components/calendar.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/current-time/index.d.ts +0 -6
- package/dist/src/calendar-view/scheduler/components/current-time/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/date-values/index.d.ts +0 -12
- package/dist/src/calendar-view/scheduler/components/date-values/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/default-out-of-office-slot.d.ts +0 -3
- package/dist/src/calendar-view/scheduler/components/default-out-of-office-slot.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/event/all-day-events.d.ts +0 -108
- package/dist/src/calendar-view/scheduler/components/event/all-day-events.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/event/empty.d.ts +0 -18
- package/dist/src/calendar-view/scheduler/components/event/empty.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/event/event-list.d.ts +0 -7
- package/dist/src/calendar-view/scheduler/components/event/event-list.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/event/event.d.ts +0 -14
- package/dist/src/calendar-view/scheduler/components/event/event.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/event/index.d.ts +0 -5
- package/dist/src/calendar-view/scheduler/components/event/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/grid/index.d.ts +0 -10
- package/dist/src/calendar-view/scheduler/components/grid/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/heading/index.d.ts +0 -2
- package/dist/src/calendar-view/scheduler/components/heading/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/heading/scheduler-heading.d.ts +0 -2
- package/dist/src/calendar-view/scheduler/components/heading/scheduler-heading.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/horizontal-lines/index.d.ts +0 -9
- package/dist/src/calendar-view/scheduler/components/horizontal-lines/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/spinner/spinner.d.ts +0 -4
- package/dist/src/calendar-view/scheduler/components/spinner/spinner.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/components/vertical-lines/index.d.ts +0 -7
- package/dist/src/calendar-view/scheduler/components/vertical-lines/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/state/store.d.ts +0 -7
- package/dist/src/calendar-view/scheduler/state/store.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/types/common.d.ts +0 -2
- package/dist/src/calendar-view/scheduler/types/common.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/types/events.d.ts +0 -20
- package/dist/src/calendar-view/scheduler/types/events.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/types/state.d.ts +0 -93
- package/dist/src/calendar-view/scheduler/types/state.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/utils/index.d.ts +0 -20
- package/dist/src/calendar-view/scheduler/utils/index.d.ts.map +0 -1
- package/dist/src/calendar-view/scheduler/utils/overlap.d.ts +0 -20
- package/dist/src/calendar-view/scheduler/utils/overlap.d.ts.map +0 -1
- package/dist/src/calendar-view/wrappers/calendar-view-platform-wrapper.d.ts +0 -22
- package/dist/src/calendar-view/wrappers/calendar-view-platform-wrapper.d.ts.map +0 -1
- package/dist/src/components/atoms-wrapper.d.ts +0 -6
- package/dist/src/components/atoms-wrapper.d.ts.map +0 -1
- package/dist/src/components/ui/address-input.d.ts +0 -11
- package/dist/src/components/ui/address-input.d.ts.map +0 -1
- package/dist/src/components/ui/alert.d.ts +0 -16
- package/dist/src/components/ui/alert.d.ts.map +0 -1
- package/dist/src/components/ui/app-list-card.d.ts +0 -30
- package/dist/src/components/ui/app-list-card.d.ts.map +0 -1
- package/dist/src/components/ui/avatar-group.d.ts +0 -14
- package/dist/src/components/ui/avatar-group.d.ts.map +0 -1
- package/dist/src/components/ui/avatar.d.ts +0 -18
- package/dist/src/components/ui/avatar.d.ts.map +0 -1
- package/dist/src/components/ui/badge.d.ts +0 -553
- package/dist/src/components/ui/badge.d.ts.map +0 -1
- package/dist/src/components/ui/button-group.d.ts +0 -9
- package/dist/src/components/ui/button-group.d.ts.map +0 -1
- package/dist/src/components/ui/button.d.ts +0 -37
- package/dist/src/components/ui/button.d.ts.map +0 -1
- package/dist/src/components/ui/calendar-switch.d.ts +0 -22
- package/dist/src/components/ui/calendar-switch.d.ts.map +0 -1
- package/dist/src/components/ui/checkbox.d.ts +0 -15
- package/dist/src/components/ui/checkbox.d.ts.map +0 -1
- package/dist/src/components/ui/checked-team-select.d.ts +0 -43
- package/dist/src/components/ui/checked-team-select.d.ts.map +0 -1
- package/dist/src/components/ui/confirmation-dialog-content.d.ts +0 -20
- package/dist/src/components/ui/confirmation-dialog-content.d.ts.map +0 -1
- package/dist/src/components/ui/controlled-dialog.d.ts +0 -17
- package/dist/src/components/ui/controlled-dialog.d.ts.map +0 -1
- package/dist/src/components/ui/dialog.d.ts +0 -38
- package/dist/src/components/ui/dialog.d.ts.map +0 -1
- package/dist/src/components/ui/disconnect-calendar-integration.d.ts +0 -12
- package/dist/src/components/ui/disconnect-calendar-integration.d.ts.map +0 -1
- package/dist/src/components/ui/divider.d.ts +0 -3
- package/dist/src/components/ui/divider.d.ts.map +0 -1
- package/dist/src/components/ui/dropdown.d.ts +0 -40
- package/dist/src/components/ui/dropdown.d.ts.map +0 -1
- package/dist/src/components/ui/editable-heading.d.ts +0 -6
- package/dist/src/components/ui/editable-heading.d.ts.map +0 -1
- package/dist/src/components/ui/empty-screen.d.ts +0 -18
- package/dist/src/components/ui/empty-screen.d.ts.map +0 -1
- package/dist/src/components/ui/form.d.ts +0 -11
- package/dist/src/components/ui/form.d.ts.map +0 -1
- package/dist/src/components/ui/icon.d.ts +0 -42
- package/dist/src/components/ui/icon.d.ts.map +0 -1
- package/dist/src/components/ui/icons.d.ts +0 -21
- package/dist/src/components/ui/icons.d.ts.map +0 -1
- package/dist/src/components/ui/info-badge.d.ts +0 -4
- package/dist/src/components/ui/info-badge.d.ts.map +0 -1
- package/dist/src/components/ui/label.d.ts +0 -2
- package/dist/src/components/ui/label.d.ts.map +0 -1
- package/dist/src/components/ui/navigation.d.ts +0 -37
- package/dist/src/components/ui/navigation.d.ts.map +0 -1
- package/dist/src/components/ui/popover.d.ts +0 -17
- package/dist/src/components/ui/popover.d.ts.map +0 -1
- package/dist/src/components/ui/radio-area-group.d.ts +0 -20
- package/dist/src/components/ui/radio-area-group.d.ts.map +0 -1
- package/dist/src/components/ui/radio.d.ts +0 -24
- package/dist/src/components/ui/radio.d.ts.map +0 -1
- package/dist/src/components/ui/react-select-components.d.ts +0 -29
- package/dist/src/components/ui/react-select-components.d.ts.map +0 -1
- package/dist/src/components/ui/select.d.ts +0 -26
- package/dist/src/components/ui/select.d.ts.map +0 -1
- package/dist/src/components/ui/settings-header.d.ts +0 -21
- package/dist/src/components/ui/settings-header.d.ts.map +0 -1
- package/dist/src/components/ui/settings-toggle.d.ts +0 -23
- package/dist/src/components/ui/settings-toggle.d.ts.map +0 -1
- package/dist/src/components/ui/shell.d.ts +0 -31
- package/dist/src/components/ui/shell.d.ts.map +0 -1
- package/dist/src/components/ui/show-toast.d.ts +0 -13
- package/dist/src/components/ui/show-toast.d.ts.map +0 -1
- package/dist/src/components/ui/skeleton.d.ts +0 -31
- package/dist/src/components/ui/skeleton.d.ts.map +0 -1
- package/dist/src/components/ui/switch.d.ts +0 -5
- package/dist/src/components/ui/switch.d.ts.map +0 -1
- package/dist/src/components/ui/text-field.d.ts +0 -99
- package/dist/src/components/ui/text-field.d.ts.map +0 -1
- package/dist/src/components/ui/toast.d.ts +0 -13
- package/dist/src/components/ui/toast.d.ts.map +0 -1
- package/dist/src/components/ui/toaster.d.ts +0 -2
- package/dist/src/components/ui/toaster.d.ts.map +0 -1
- package/dist/src/components/ui/toggle-group.d.ts +0 -20
- package/dist/src/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/src/components/ui/tooltip.d.ts +0 -29
- package/dist/src/components/ui/tooltip.d.ts.map +0 -1
- package/dist/src/components/ui/use-toast.d.ts +0 -45
- package/dist/src/components/ui/use-toast.d.ts.map +0 -1
- package/dist/src/components/ui/user-avatar-group-with-org.d.ts +0 -18
- package/dist/src/components/ui/user-avatar-group-with-org.d.ts.map +0 -1
- package/dist/src/connect/apple/apple-connect.d.ts +0 -4
- package/dist/src/connect/apple/apple-connect.d.ts.map +0 -1
- package/dist/src/connect/components/disconnect-integration-modal.d.ts +0 -19
- package/dist/src/connect/components/disconnect-integration-modal.d.ts.map +0 -1
- package/dist/src/connect/components/office365-account-dialog.d.ts +0 -12
- package/dist/src/connect/components/office365-account-dialog.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/components/app-list.d.ts +0 -65
- package/dist/src/connect/conferencing-apps/components/app-list.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/conferencing-apps-view-platform-wrapper.d.ts +0 -29
- package/dist/src/connect/conferencing-apps/conferencing-apps-view-platform-wrapper.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-atom-bulk-update-event-types-to-default-location.d.ts +0 -10
- package/dist/src/connect/conferencing-apps/hooks/use-atom-bulk-update-event-types-to-default-location.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-atom-get-event-types.d.ts +0 -10
- package/dist/src/connect/conferencing-apps/hooks/use-atom-get-event-types.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-atoms-get-installed-conferencing-apps.d.ts +0 -4
- package/dist/src/connect/conferencing-apps/hooks/use-atoms-get-installed-conferencing-apps.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-connect.d.ts +0 -22
- package/dist/src/connect/conferencing-apps/hooks/use-connect.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-delete-credential.d.ts +0 -9
- package/dist/src/connect/conferencing-apps/hooks/use-delete-credential.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-get-default-conferencing-app.d.ts +0 -6
- package/dist/src/connect/conferencing-apps/hooks/use-get-default-conferencing-app.d.ts.map +0 -1
- package/dist/src/connect/conferencing-apps/hooks/use-update-user-default-conferencing-app.d.ts +0 -9
- package/dist/src/connect/conferencing-apps/hooks/use-update-user-default-conferencing-app.d.ts.map +0 -1
- package/dist/src/connect/google/gcal-connect.d.ts +0 -4
- package/dist/src/connect/google/gcal-connect.d.ts.map +0 -1
- package/dist/src/connect/index.d.ts +0 -4
- package/dist/src/connect/index.d.ts.map +0 -1
- package/dist/src/connect/o-auth-connect.d.ts +0 -25
- package/dist/src/connect/o-auth-connect.d.ts.map +0 -1
- package/dist/src/connect/outlook/outlook-connect.d.ts +0 -4
- package/dist/src/connect/outlook/outlook-connect.d.ts.map +0 -1
- package/dist/src/connect/stripe/stripe-connect.d.ts +0 -22
- package/dist/src/connect/stripe/stripe-connect.d.ts.map +0 -1
- package/dist/src/constants/api.d.ts +0 -44
- package/dist/src/constants/api.d.ts.map +0 -1
- package/dist/src/constants/app.d.ts +0 -19
- package/dist/src/constants/app.d.ts.map +0 -1
- package/dist/src/constants/apps.d.ts +0 -32
- package/dist/src/constants/apps.d.ts.map +0 -1
- package/dist/src/constants/index.d.ts +0 -4
- package/dist/src/constants/index.d.ts.map +0 -1
- package/dist/src/constants/styles.d.ts +0 -2
- package/dist/src/constants/styles.d.ts.map +0 -1
- package/dist/src/contracts/api.d.ts +0 -27
- package/dist/src/contracts/api.d.ts.map +0 -1
- package/dist/src/contracts/apps.d.ts +0 -21
- package/dist/src/contracts/apps.d.ts.map +0 -1
- package/dist/src/contracts/booker.d.ts +0 -255
- package/dist/src/contracts/booker.d.ts.map +0 -1
- package/dist/src/contracts/bookings.d.ts +0 -154
- package/dist/src/contracts/bookings.d.ts.map +0 -1
- package/dist/src/contracts/calendars.d.ts +0 -82
- package/dist/src/contracts/calendars.d.ts.map +0 -1
- package/dist/src/contracts/event-types.d.ts +0 -225
- package/dist/src/contracts/event-types.d.ts.map +0 -1
- package/dist/src/contracts/index.d.ts +0 -13
- package/dist/src/contracts/index.d.ts.map +0 -1
- package/dist/src/contracts/oauth.d.ts +0 -2
- package/dist/src/contracts/oauth.d.ts.map +0 -1
- package/dist/src/contracts/organizations.d.ts +0 -15
- package/dist/src/contracts/organizations.d.ts.map +0 -1
- package/dist/src/contracts/schedules.d.ts +0 -92
- package/dist/src/contracts/schedules.d.ts.map +0 -1
- package/dist/src/contracts/slots.d.ts +0 -57
- package/dist/src/contracts/slots.d.ts.map +0 -1
- package/dist/src/contracts/teams.d.ts +0 -31
- package/dist/src/contracts/teams.d.ts.map +0 -1
- package/dist/src/contracts/user.d.ts +0 -25
- package/dist/src/contracts/user.d.ts.map +0 -1
- package/dist/src/create-schedule/create-schedule-form.d.ts +0 -18
- package/dist/src/create-schedule/create-schedule-form.d.ts.map +0 -1
- package/dist/src/create-schedule/index.d.ts +0 -2
- package/dist/src/create-schedule/index.d.ts.map +0 -1
- package/dist/src/create-schedule/wrappers/create-schedule-platform-wrapper.d.ts +0 -15
- package/dist/src/create-schedule/wrappers/create-schedule-platform-wrapper.d.ts.map +0 -1
- package/dist/src/destination-calendar/components/destination-calendar-selector.d.ts +0 -10
- package/dist/src/destination-calendar/components/destination-calendar-selector.d.ts.map +0 -1
- package/dist/src/destination-calendar/destination-calendar-selector.d.ts +0 -17
- package/dist/src/destination-calendar/destination-calendar-selector.d.ts.map +0 -1
- package/dist/src/destination-calendar/destination-calendar.d.ts +0 -21
- package/dist/src/destination-calendar/destination-calendar.d.ts.map +0 -1
- package/dist/src/destination-calendar/destination-reminder-selector.d.ts +0 -9
- package/dist/src/destination-calendar/destination-reminder-selector.d.ts.map +0 -1
- package/dist/src/destination-calendar/index.d.ts +0 -2
- package/dist/src/destination-calendar/index.d.ts.map +0 -1
- package/dist/src/destination-calendar/wrappers/destination-calendar-settings-platform-wrapper.d.ts +0 -8
- package/dist/src/destination-calendar/wrappers/destination-calendar-settings-platform-wrapper.d.ts.map +0 -1
- package/dist/src/event-types/components/assign-all-team-members.d.ts +0 -14
- package/dist/src/event-types/components/assign-all-team-members.d.ts.map +0 -1
- package/dist/src/event-types/components/bulk-edit-default-for-events-modal.d.ts +0 -29
- package/dist/src/event-types/components/bulk-edit-default-for-events-modal.d.ts.map +0 -1
- package/dist/src/event-types/components/children-event-type-select.d.ts +0 -34
- package/dist/src/event-types/components/children-event-type-select.d.ts.map +0 -1
- package/dist/src/event-types/components/create-event-type-form.d.ts +0 -29
- package/dist/src/event-types/components/create-event-type-form.d.ts.map +0 -1
- package/dist/src/event-types/components/event-team-assignment-tab.d.ts +0 -2
- package/dist/src/event-types/components/event-team-assignment-tab.d.ts.map +0 -1
- package/dist/src/event-types/components/event-type-list-item.d.ts +0 -12
- package/dist/src/event-types/components/event-type-list-item.d.ts.map +0 -1
- package/dist/src/event-types/components/host-edit-dialogs.d.ts +0 -40
- package/dist/src/event-types/components/host-edit-dialogs.d.ts.map +0 -1
- package/dist/src/event-types/components/learn-more-link.d.ts +0 -15
- package/dist/src/event-types/components/learn-more-link.d.ts.map +0 -1
- package/dist/src/event-types/components/managed-event-dialog.d.ts +0 -13
- package/dist/src/event-types/components/managed-event-dialog.d.ts.map +0 -1
- package/dist/src/event-types/components/recurring-event-controller.d.ts +0 -34
- package/dist/src/event-types/components/recurring-event-controller.d.ts.map +0 -1
- package/dist/src/event-types/components/tabs/event-recurring-tab.d.ts +0 -14
- package/dist/src/event-types/components/tabs/event-recurring-tab.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/assign-all-managed-warning-dialog.d.ts +0 -9
- package/dist/src/event-types/components/team-assignment/assign-all-managed-warning-dialog.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/children-event-types-list.d.ts +0 -11
- package/dist/src/event-types/components/team-assignment/children-event-types-list.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/children-event-types.d.ts +0 -18
- package/dist/src/event-types/components/team-assignment/children-event-types.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/event-team-assignment-tab.d.ts +0 -58
- package/dist/src/event-types/components/team-assignment/event-team-assignment-tab.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/fixed-hosts.d.ts +0 -20
- package/dist/src/event-types/components/team-assignment/fixed-hosts.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/hosts.d.ts +0 -19
- package/dist/src/event-types/components/team-assignment/hosts.d.ts.map +0 -1
- package/dist/src/event-types/components/team-assignment/round-robin-hosts.d.ts +0 -26
- package/dist/src/event-types/components/team-assignment/round-robin-hosts.d.ts.map +0 -1
- package/dist/src/event-types/components/team-event-type-form.d.ts +0 -27
- package/dist/src/event-types/components/team-event-type-form.d.ts.map +0 -1
- package/dist/src/event-types/components/weight-description.d.ts +0 -6
- package/dist/src/event-types/components/weight-description.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-add-verified-email.d.ts +0 -15
- package/dist/src/event-types/hooks/use-add-verified-email.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-apps-data-stub.d.ts +0 -15
- package/dist/src/event-types/hooks/use-apps-data-stub.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-assign-all-managed-warning.d.ts +0 -17
- package/dist/src/event-types/hooks/use-assign-all-managed-warning.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-atom-event-type-app-integration.d.ts +0 -21
- package/dist/src/event-types/hooks/use-atom-event-type-app-integration.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-atom-event-type-by-id.d.ts +0 -4
- package/dist/src/event-types/hooks/use-atom-event-type-by-id.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-atom-event-type-payment-info.d.ts +0 -7
- package/dist/src/event-types/hooks/use-atom-event-type-payment-info.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-atom-get-all-event-types.d.ts +0 -9
- package/dist/src/event-types/hooks/use-atom-get-all-event-types.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-atom-host-schedules.d.ts +0 -14
- package/dist/src/event-types/hooks/use-atom-host-schedules.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-atom-update-event-type.d.ts +0 -10
- package/dist/src/event-types/hooks/use-atom-update-event-type.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-event-type-form.d.ts +0 -15
- package/dist/src/event-types/hooks/use-event-type-form.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-get-verified-emails.d.ts +0 -3
- package/dist/src/event-types/hooks/use-get-verified-emails.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-handle-route-change.d.ts +0 -15
- package/dist/src/event-types/hooks/use-handle-route-change.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-locked-fields-manager-stub.d.ts +0 -29
- package/dist/src/event-types/hooks/use-locked-fields-manager-stub.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-platform-tabs-navigations.d.ts +0 -16
- package/dist/src/event-types/hooks/use-platform-tabs-navigations.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-tabs-navigations.d.ts +0 -40
- package/dist/src/event-types/hooks/use-tabs-navigations.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-team-event-assignment.d.ts +0 -65
- package/dist/src/event-types/hooks/use-team-event-assignment.d.ts.map +0 -1
- package/dist/src/event-types/hooks/use-team-members-with-segment-platform.d.ts +0 -36
- package/dist/src/event-types/hooks/use-team-members-with-segment-platform.d.ts.map +0 -1
- package/dist/src/event-types/index.d.ts +0 -2
- package/dist/src/event-types/index.d.ts.map +0 -1
- package/dist/src/event-types/lib/format-event-type-duration.d.ts +0 -13
- package/dist/src/event-types/lib/format-event-type-duration.d.ts.map +0 -1
- package/dist/src/event-types/payments/payment-form.d.ts +0 -9
- package/dist/src/event-types/payments/payment-form.d.ts.map +0 -1
- package/dist/src/event-types/payments/payment-page-types.d.ts +0 -48
- package/dist/src/event-types/payments/payment-page-types.d.ts.map +0 -1
- package/dist/src/event-types/payments/payment.d.ts +0 -39
- package/dist/src/event-types/payments/payment.d.ts.map +0 -1
- package/dist/src/event-types/payments/stripe-payment-form.d.ts +0 -9
- package/dist/src/event-types/payments/stripe-payment-form.d.ts.map +0 -1
- package/dist/src/event-types/types.d.ts +0 -16
- package/dist/src/event-types/types.d.ts.map +0 -1
- package/dist/src/event-types/wrappers/create-event-type-platform-wrapper.d.ts +0 -20
- package/dist/src/event-types/wrappers/create-event-type-platform-wrapper.d.ts.map +0 -1
- package/dist/src/event-types/wrappers/event-recurring-tab-platform-wrapper.d.ts +0 -4
- package/dist/src/event-types/wrappers/event-recurring-tab-platform-wrapper.d.ts.map +0 -1
- package/dist/src/event-types/wrappers/event-team-assignment-tab-platform-wrapper.d.ts +0 -4
- package/dist/src/event-types/wrappers/event-team-assignment-tab-platform-wrapper.d.ts.map +0 -1
- package/dist/src/event-types/wrappers/event-type-platform-wrapper.d.ts +0 -28
- package/dist/src/event-types/wrappers/event-type-platform-wrapper.d.ts.map +0 -1
- package/dist/src/event-types/wrappers/list-event-types-platform-wrapper.d.ts +0 -6
- package/dist/src/event-types/wrappers/list-event-types-platform-wrapper.d.ts.map +0 -1
- package/dist/src/event-types/wrappers/types.d.ts +0 -4
- package/dist/src/event-types/wrappers/types.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-booking.d.ts +0 -2
- package/dist/src/hooks/bookings/use-booking.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-bookings.d.ts +0 -6
- package/dist/src/hooks/bookings/use-bookings.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-cancel-booking.d.ts +0 -23
- package/dist/src/hooks/bookings/use-cancel-booking.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-create-booking.d.ts +0 -11
- package/dist/src/hooks/bookings/use-create-booking.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-create-instant-booking.d.ts +0 -10
- package/dist/src/hooks/bookings/use-create-instant-booking.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-create-recurring-booking.d.ts +0 -10
- package/dist/src/hooks/bookings/use-create-recurring-booking.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-get-booking-for-reschedule.d.ts +0 -10
- package/dist/src/hooks/bookings/use-get-booking-for-reschedule.d.ts.map +0 -1
- package/dist/src/hooks/bookings/use-handle-book-event.d.ts +0 -26
- package/dist/src/hooks/bookings/use-handle-book-event.d.ts.map +0 -1
- package/dist/src/hooks/calendars/use-add-selected-calendar.d.ts +0 -21
- package/dist/src/hooks/calendars/use-add-selected-calendar.d.ts.map +0 -1
- package/dist/src/hooks/calendars/use-delete-calendar-credentials.d.ts +0 -22
- package/dist/src/hooks/calendars/use-delete-calendar-credentials.d.ts.map +0 -1
- package/dist/src/hooks/calendars/use-remove-selected-calendar.d.ts +0 -21
- package/dist/src/hooks/calendars/use-remove-selected-calendar.d.ts.map +0 -1
- package/dist/src/hooks/calendars/use-update-destination-calendars.d.ts +0 -21
- package/dist/src/hooks/calendars/use-update-destination-calendars.d.ts.map +0 -1
- package/dist/src/hooks/connect/use-check.d.ts +0 -21
- package/dist/src/hooks/connect/use-check.d.ts.map +0 -1
- package/dist/src/hooks/connect/use-connect.d.ts +0 -18
- package/dist/src/hooks/connect/use-connect.d.ts.map +0 -1
- package/dist/src/hooks/event-types/private/use-create-event-type-form.d.ts +0 -8
- package/dist/src/hooks/event-types/private/use-create-event-type-form.d.ts.map +0 -1
- package/dist/src/hooks/event-types/private/use-create-event-type.d.ts +0 -9
- package/dist/src/hooks/event-types/private/use-create-event-type.d.ts.map +0 -1
- package/dist/src/hooks/event-types/private/use-create-team-event-type.d.ts +0 -13
- package/dist/src/hooks/event-types/private/use-create-team-event-type.d.ts.map +0 -1
- package/dist/src/hooks/event-types/private/use-delete-event-type-by-id.d.ts +0 -9
- package/dist/src/hooks/event-types/private/use-delete-event-type-by-id.d.ts.map +0 -1
- package/dist/src/hooks/event-types/private/use-delete-team-event-type-by-id.d.ts +0 -15
- package/dist/src/hooks/event-types/private/use-delete-team-event-type-by-id.d.ts.map +0 -1
- package/dist/src/hooks/event-types/private/use-event-type-by-id.d.ts +0 -4
- package/dist/src/hooks/event-types/private/use-event-type-by-id.d.ts.map +0 -1
- package/dist/src/hooks/event-types/public/use-atom-get-public-event.d.ts +0 -13
- package/dist/src/hooks/event-types/public/use-atom-get-public-event.d.ts.map +0 -1
- package/dist/src/hooks/event-types/public/use-event-type.d.ts +0 -5
- package/dist/src/hooks/event-types/public/use-event-type.d.ts.map +0 -1
- package/dist/src/hooks/event-types/public/use-event-types.d.ts +0 -4
- package/dist/src/hooks/event-types/public/use-event-types.d.ts.map +0 -1
- package/dist/src/hooks/event-types/public/use-team-event-type.d.ts +0 -4
- package/dist/src/hooks/event-types/public/use-team-event-type.d.ts.map +0 -1
- package/dist/src/hooks/event-types/public/use-team-event-types.d.ts +0 -4
- package/dist/src/hooks/event-types/public/use-team-event-types.d.ts.map +0 -1
- package/dist/src/hooks/organizations/bookings/use-organization-bookings.d.ts +0 -4
- package/dist/src/hooks/organizations/bookings/use-organization-bookings.d.ts.map +0 -1
- package/dist/src/hooks/organizations/bookings/use-organization-user-bookings.d.ts +0 -4
- package/dist/src/hooks/organizations/bookings/use-organization-user-bookings.d.ts.map +0 -1
- package/dist/src/hooks/schedules/types.d.ts +0 -37
- package/dist/src/hooks/schedules/types.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-atom-create-schedule.d.ts +0 -9
- package/dist/src/hooks/schedules/use-atom-create-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-atom-duplicate-schedule.d.ts +0 -11
- package/dist/src/hooks/schedules/use-atom-duplicate-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-atom-get-all-schedules.d.ts +0 -9
- package/dist/src/hooks/schedules/use-atom-get-all-schedules.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-atom-schedule.d.ts +0 -8
- package/dist/src/hooks/schedules/use-atom-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-atom-update-schedule.d.ts +0 -11
- package/dist/src/hooks/schedules/use-atom-update-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-delete-schedule.d.ts +0 -11
- package/dist/src/hooks/schedules/use-delete-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-ensure-default-schedule.d.ts +0 -3
- package/dist/src/hooks/schedules/use-ensure-default-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-schedule.d.ts +0 -7
- package/dist/src/hooks/schedules/use-schedule.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-schedules.d.ts +0 -7
- package/dist/src/hooks/schedules/use-schedules.d.ts.map +0 -1
- package/dist/src/hooks/schedules/use-update-schedule.d.ts +0 -10
- package/dist/src/hooks/schedules/use-update-schedule.d.ts.map +0 -1
- package/dist/src/hooks/stripe/use-check.d.ts +0 -22
- package/dist/src/hooks/stripe/use-check.d.ts.map +0 -1
- package/dist/src/hooks/stripe/use-connect.d.ts +0 -5
- package/dist/src/hooks/stripe/use-connect.d.ts.map +0 -1
- package/dist/src/hooks/teams/use-team-members.d.ts +0 -10
- package/dist/src/hooks/teams/use-team-members.d.ts.map +0 -1
- package/dist/src/hooks/teams/use-teams.d.ts +0 -7
- package/dist/src/hooks/teams/use-teams.d.ts.map +0 -1
- package/dist/src/hooks/use-api-keys.d.ts +0 -9
- package/dist/src/hooks/use-api-keys.d.ts.map +0 -1
- package/dist/src/hooks/use-atoms-context.d.ts +0 -32
- package/dist/src/hooks/use-atoms-context.d.ts.map +0 -1
- package/dist/src/hooks/use-atoms-locale.d.ts +0 -3
- package/dist/src/hooks/use-atoms-locale.d.ts.map +0 -1
- package/dist/src/hooks/use-available-slots.d.ts +0 -7
- package/dist/src/hooks/use-available-slots.d.ts.map +0 -1
- package/dist/src/hooks/use-calendars-busy-times.d.ts +0 -12
- package/dist/src/hooks/use-calendars-busy-times.d.ts.map +0 -1
- package/dist/src/hooks/use-connected-calendars.d.ts +0 -6
- package/dist/src/hooks/use-connected-calendars.d.ts.map +0 -1
- package/dist/src/hooks/use-delete-selected-slot.d.ts +0 -8
- package/dist/src/hooks/use-delete-selected-slot.d.ts.map +0 -1
- package/dist/src/hooks/use-event-types-list.d.ts +0 -18
- package/dist/src/hooks/use-event-types-list.d.ts.map +0 -1
- package/dist/src/hooks/use-get-city-timezones.d.ts +0 -10
- package/dist/src/hooks/use-get-city-timezones.d.ts.map +0 -1
- package/dist/src/hooks/use-is-platform-booker-embed.d.ts +0 -2
- package/dist/src/hooks/use-is-platform-booker-embed.d.ts.map +0 -1
- package/dist/src/hooks/use-is-platform.d.ts +0 -2
- package/dist/src/hooks/use-is-platform.d.ts.map +0 -1
- package/dist/src/hooks/use-me.d.ts +0 -9
- package/dist/src/hooks/use-me.d.ts.map +0 -1
- package/dist/src/hooks/use-o-auth-client.d.ts +0 -18
- package/dist/src/hooks/use-o-auth-client.d.ts.map +0 -1
- package/dist/src/hooks/use-o-auth-flow.d.ts +0 -15
- package/dist/src/hooks/use-o-auth-flow.d.ts.map +0 -1
- package/dist/src/hooks/use-reserve-slot.d.ts +0 -8
- package/dist/src/hooks/use-reserve-slot.d.ts.map +0 -1
- package/dist/src/hooks/use-schedule-by-event-slug.d.ts +0 -16
- package/dist/src/hooks/use-schedule-by-event-slug.d.ts.map +0 -1
- package/dist/src/hooks/use-slots.d.ts +0 -24
- package/dist/src/hooks/use-slots.d.ts.map +0 -1
- package/dist/src/hooks/use-timezone.d.ts +0 -2
- package/dist/src/hooks/use-timezone.d.ts.map +0 -1
- package/dist/src/hooks/use-update-user-timezone.d.ts +0 -7
- package/dist/src/hooks/use-update-user-timezone.d.ts.map +0 -1
- package/dist/src/hooks/use-verify-code.d.ts +0 -18
- package/dist/src/hooks/use-verify-code.d.ts.map +0 -1
- package/dist/src/hooks/use-verify-email.d.ts +0 -20
- package/dist/src/hooks/use-verify-email.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -132
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/lib/append-client-id-to-email.d.ts +0 -2
- package/dist/src/lib/append-client-id-to-email.d.ts.map +0 -1
- package/dist/src/lib/get-placeholder-content.d.ts +0 -16
- package/dist/src/lib/get-placeholder-content.d.ts.map +0 -1
- package/dist/src/lib/get-query-param.d.ts +0 -3
- package/dist/src/lib/get-query-param.d.ts.map +0 -1
- package/dist/src/lib/get-utm-tracking-parameters.d.ts +0 -5
- package/dist/src/lib/get-utm-tracking-parameters.d.ts.map +0 -1
- package/dist/src/lib/http.d.ts +0 -24
- package/dist/src/lib/http.d.ts.map +0 -1
- package/dist/src/lib/markdown-to-safe-html-client.d.ts +0 -8
- package/dist/src/lib/markdown-to-safe-html-client.d.ts.map +0 -1
- package/dist/src/lib/markdown-to-safe-html.d.ts +0 -2
- package/dist/src/lib/markdown-to-safe-html.d.ts.map +0 -1
- package/dist/src/lib/set-query-param.d.ts +0 -3
- package/dist/src/lib/set-query-param.d.ts.map +0 -1
- package/dist/src/lib/time-zones.d.ts +0 -15
- package/dist/src/lib/time-zones.d.ts.map +0 -1
- package/dist/src/lib/use-locale.d.ts +0 -9
- package/dist/src/lib/use-locale.d.ts.map +0 -1
- package/dist/src/lib/utils.d.ts +0 -3
- package/dist/src/lib/utils.d.ts.map +0 -1
- package/dist/src/list-schedules/components/schedule-list-item.d.ts +0 -39
- package/dist/src/list-schedules/components/schedule-list-item.d.ts.map +0 -1
- package/dist/src/list-schedules/index.d.ts +0 -2
- package/dist/src/list-schedules/index.d.ts.map +0 -1
- package/dist/src/list-schedules/wrappers/list-schedules-platform-wrapper.d.ts +0 -6
- package/dist/src/list-schedules/wrappers/list-schedules-platform-wrapper.d.ts.map +0 -1
- package/dist/src/onboarding/continue-with-calcom.d.ts +0 -3
- package/dist/src/onboarding/continue-with-calcom.d.ts.map +0 -1
- package/dist/src/onboarding/export.d.ts +0 -3
- package/dist/src/onboarding/export.d.ts.map +0 -1
- package/dist/src/onboarding/onboarding-embed.d.ts +0 -3
- package/dist/src/onboarding/onboarding-embed.d.ts.map +0 -1
- package/dist/src/onboarding/types.d.ts +0 -31
- package/dist/src/onboarding/types.d.ts.map +0 -1
- package/dist/src/router/index.d.ts +0 -2
- package/dist/src/router/index.d.ts.map +0 -1
- package/dist/src/router/router.d.ts +0 -30
- package/dist/src/router/router.d.ts.map +0 -1
- package/dist/src/selected-calendars/index.d.ts +0 -2
- package/dist/src/selected-calendars/index.d.ts.map +0 -1
- package/dist/src/selected-calendars/selected-calendars-settings.d.ts +0 -6
- package/dist/src/selected-calendars/selected-calendars-settings.d.ts.map +0 -1
- package/dist/src/selected-calendars/wrappers/selected-calendars-settings-platform-wrapper.d.ts +0 -38
- package/dist/src/selected-calendars/wrappers/selected-calendars-settings-platform-wrapper.d.ts.map +0 -1
- package/dist/src/timezone/index.d.ts +0 -6
- package/dist/src/timezone/index.d.ts.map +0 -1
- package/dist/src/timezone/timezone-select-component.d.ts +0 -15
- package/dist/src/timezone/timezone-select-component.d.ts.map +0 -1
- package/dist/src/troubleshooter/components/calendar-toggle-container-component.d.ts +0 -31
- package/dist/src/troubleshooter/components/calendar-toggle-container-component.d.ts.map +0 -1
- package/dist/src/troubleshooter/components/event-schedule-item-component.d.ts +0 -12
- package/dist/src/troubleshooter/components/event-schedule-item-component.d.ts.map +0 -1
- package/dist/src/troubleshooter/components/event-type-select-component.d.ts +0 -18
- package/dist/src/troubleshooter/components/event-type-select-component.d.ts.map +0 -1
- package/dist/src/troubleshooter/components/troubleshooter-list-item-container.d.ts +0 -12
- package/dist/src/troubleshooter/components/troubleshooter-list-item-container.d.ts.map +0 -1
- package/dist/src/troubleshooter/index.d.ts +0 -2
- package/dist/src/troubleshooter/index.d.ts.map +0 -1
- package/dist/src/troubleshooter/large-calendar/large-calendar.d.ts +0 -6
- package/dist/src/troubleshooter/large-calendar/large-calendar.d.ts.map +0 -1
- package/dist/src/troubleshooter/sidebar/calendar-toggle-container.d.ts +0 -7
- package/dist/src/troubleshooter/sidebar/calendar-toggle-container.d.ts.map +0 -1
- package/dist/src/troubleshooter/sidebar/event-schedule-item.d.ts +0 -2
- package/dist/src/troubleshooter/sidebar/event-schedule-item.d.ts.map +0 -1
- package/dist/src/troubleshooter/sidebar/event-type-select.d.ts +0 -2
- package/dist/src/troubleshooter/sidebar/event-type-select.d.ts.map +0 -1
- package/dist/src/troubleshooter/sidebar/troubleshooter-sidebar.d.ts +0 -17
- package/dist/src/troubleshooter/sidebar/troubleshooter-sidebar.d.ts.map +0 -1
- package/dist/src/troubleshooter/store.d.ts +0 -30
- package/dist/src/troubleshooter/store.d.ts.map +0 -1
- package/dist/src/troubleshooter/types.d.ts +0 -11
- package/dist/src/troubleshooter/types.d.ts.map +0 -1
- package/dist/src/troubleshooter/wrappers/troubleshooter-platform-wrapper.d.ts +0 -14
- package/dist/src/troubleshooter/wrappers/troubleshooter-platform-wrapper.d.ts.map +0 -1
- package/dist/src/types.d.ts +0 -8
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/vendor/analytics.d.ts +0 -17
- package/dist/src/vendor/analytics.d.ts.map +0 -1
- package/dist/src/vendor/availability.d.ts +0 -15
- package/dist/src/vendor/availability.d.ts.map +0 -1
- package/dist/src/vendor/avatar-url.d.ts +0 -23
- package/dist/src/vendor/avatar-url.d.ts.map +0 -1
- package/dist/src/vendor/booker-url.d.ts +0 -13
- package/dist/src/vendor/booker-url.d.ts.map +0 -1
- package/dist/src/vendor/booking-to-mutation-input.d.ts +0 -96
- package/dist/src/vendor/booking-to-mutation-input.d.ts.map +0 -1
- package/dist/src/vendor/cal-ai-phone.d.ts +0 -4
- package/dist/src/vendor/cal-ai-phone.d.ts.map +0 -1
- package/dist/src/vendor/check-for-empty-assignment.d.ts +0 -16
- package/dist/src/vendor/check-for-empty-assignment.d.ts.map +0 -1
- package/dist/src/vendor/children-event-type.d.ts +0 -44
- package/dist/src/vendor/children-event-type.d.ts.map +0 -1
- package/dist/src/vendor/currency.d.ts +0 -3
- package/dist/src/vendor/currency.d.ts.map +0 -1
- package/dist/src/vendor/dayjs/index.d.ts +0 -5
- package/dist/src/vendor/dayjs/index.d.ts.map +0 -1
- package/dist/src/vendor/dayjs/plugins/business-days-plugin.d.ts +0 -11
- package/dist/src/vendor/dayjs/plugins/business-days-plugin.d.ts.map +0 -1
- package/dist/src/vendor/dayjs-utils.d.ts +0 -4
- package/dist/src/vendor/dayjs-utils.d.ts.map +0 -1
- package/dist/src/vendor/error-codes.d.ts +0 -40
- package/dist/src/vendor/error-codes.d.ts.map +0 -1
- package/dist/src/vendor/event-naming.d.ts +0 -33
- package/dist/src/vendor/event-naming.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/base-schema.d.ts +0 -917
- package/dist/src/vendor/form-builder/base-schema.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/field-type-enum.d.ts +0 -4
- package/dist/src/vendor/form-builder/field-type-enum.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/field-types.d.ts +0 -5
- package/dist/src/vendor/form-builder/field-types.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/fields-that-support-label-as-safe-html.d.ts +0 -3
- package/dist/src/vendor/form-builder/fields-that-support-label-as-safe-html.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/props-types.d.ts +0 -18
- package/dist/src/vendor/form-builder/props-types.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/schema.d.ts +0 -761
- package/dist/src/vendor/form-builder/schema.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/system-field.d.ts +0 -9
- package/dist/src/vendor/form-builder/system-field.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/use-should-be-disabled-due-to-prefill.d.ts +0 -12
- package/dist/src/vendor/form-builder/use-should-be-disabled-due-to-prefill.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/utils/get-field-identifier.d.ts +0 -2
- package/dist/src/vendor/form-builder/utils/get-field-identifier.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/utils/variants-config.d.ts +0 -40
- package/dist/src/vendor/form-builder/utils/variants-config.d.ts.map +0 -1
- package/dist/src/vendor/form-builder/utils.d.ts +0 -7
- package/dist/src/vendor/form-builder/utils.d.ts.map +0 -1
- package/dist/src/vendor/form-builder-widgets/index.d.ts +0 -49
- package/dist/src/vendor/form-builder-widgets/index.d.ts.map +0 -1
- package/dist/src/vendor/format-date-time.d.ts +0 -15
- package/dist/src/vendor/format-date-time.d.ts.map +0 -1
- package/dist/src/vendor/get-available-dates-in-month.d.ts +0 -12
- package/dist/src/vendor/get-available-dates-in-month.d.ts.map +0 -1
- package/dist/src/vendor/get-avatar-url.d.ts +0 -5
- package/dist/src/vendor/get-avatar-url.d.ts.map +0 -1
- package/dist/src/vendor/get-routed-team-member-ids.d.ts +0 -2
- package/dist/src/vendor/get-routed-team-member-ids.d.ts.map +0 -1
- package/dist/src/vendor/get-stripe.d.ts +0 -7
- package/dist/src/vendor/get-stripe.d.ts.map +0 -1
- package/dist/src/vendor/get-username-list.d.ts +0 -2
- package/dist/src/vendor/get-username-list.d.ts.map +0 -1
- package/dist/src/vendor/hooks/use-debounce.d.ts +0 -2
- package/dist/src/vendor/hooks/use-debounce.d.ts.map +0 -1
- package/dist/src/vendor/hooks/use-media-query.d.ts +0 -3
- package/dist/src/vendor/hooks/use-media-query.d.ts.map +0 -1
- package/dist/src/vendor/hooks/use-router-query.d.ts +0 -2
- package/dist/src/vendor/hooks/use-router-query.d.ts.map +0 -1
- package/dist/src/vendor/host-group-utils.d.ts +0 -19
- package/dist/src/vendor/host-group-utils.d.ts.map +0 -1
- package/dist/src/vendor/interval-limit.d.ts +0 -6
- package/dist/src/vendor/interval-limit.d.ts.map +0 -1
- package/dist/src/vendor/invert-logo-on-dark.d.ts +0 -2
- package/dist/src/vendor/invert-logo-on-dark.d.ts.map +0 -1
- package/dist/src/vendor/locales/de/common.json.d.ts +0 -319
- package/dist/src/vendor/locales/en/common.json.d.ts +0 -319
- package/dist/src/vendor/locales/es/common.json.d.ts +0 -319
- package/dist/src/vendor/locales/fr/common.json.d.ts +0 -319
- package/dist/src/vendor/locales/it/common.json.d.ts +0 -319
- package/dist/src/vendor/locales/nl/common.json.d.ts +0 -319
- package/dist/src/vendor/locales/pt-BR/common.json.d.ts +0 -319
- package/dist/src/vendor/locations-resolver.d.ts +0 -38
- package/dist/src/vendor/locations-resolver.d.ts.map +0 -1
- package/dist/src/vendor/locations.d.ts +0 -58
- package/dist/src/vendor/locations.d.ts.map +0 -1
- package/dist/src/vendor/parse-dates.d.ts +0 -18
- package/dist/src/vendor/parse-dates.d.ts.map +0 -1
- package/dist/src/vendor/payments.d.ts +0 -50
- package/dist/src/vendor/payments.d.ts.map +0 -1
- package/dist/src/vendor/phone-input/phone-input.d.ts +0 -17
- package/dist/src/vendor/phone-input/phone-input.d.ts.map +0 -1
- package/dist/src/vendor/phone-input/phone-masks.d.ts +0 -8
- package/dist/src/vendor/phone-input/phone-masks.d.ts.map +0 -1
- package/dist/src/vendor/query-param.d.ts +0 -4
- package/dist/src/vendor/query-param.d.ts.map +0 -1
- package/dist/src/vendor/recurring.d.ts +0 -27
- package/dist/src/vendor/recurring.d.ts.map +0 -1
- package/dist/src/vendor/schedule-list-item.d.ts +0 -55
- package/dist/src/vendor/schedule-list-item.d.ts.map +0 -1
- package/dist/src/vendor/scroll.d.ts +0 -2
- package/dist/src/vendor/scroll.d.ts.map +0 -1
- package/dist/src/vendor/server-trans.d.ts +0 -25
- package/dist/src/vendor/server-trans.d.ts.map +0 -1
- package/dist/src/vendor/slugify.d.ts +0 -3
- package/dist/src/vendor/slugify.d.ts.map +0 -1
- package/dist/src/vendor/time-format.d.ts +0 -10
- package/dist/src/vendor/time-format.d.ts.map +0 -1
- package/dist/src/vendor/time-preferences.d.ts +0 -14
- package/dist/src/vendor/time-preferences.d.ts.map +0 -1
- package/dist/src/vendor/time-shift.d.ts +0 -6
- package/dist/src/vendor/time-shift.d.ts.map +0 -1
- package/dist/src/vendor/timezone-constants.d.ts +0 -3
- package/dist/src/vendor/timezone-constants.d.ts.map +0 -1
- package/dist/src/vendor/timezone.d.ts +0 -10
- package/dist/src/vendor/timezone.d.ts.map +0 -1
- package/dist/src/vendor/validate-booker-layouts.d.ts +0 -8
- package/dist/src/vendor/validate-booker-layouts.d.ts.map +0 -1
- package/dist/src/vendor/webstorage.d.ts +0 -18
- package/dist/src/vendor/webstorage.d.ts.map +0 -1
- package/dist/src/vendor/weekday.d.ts +0 -5
- package/dist/src/vendor/weekday.d.ts.map +0 -1
- package/dist/src/vendor/weekstart.d.ts +0 -3
- package/dist/src/vendor/weekstart.d.ts.map +0 -1
- package/dist/vite.config.d.ts +0 -3
- package/dist/vite.config.d.ts.map +0 -1
- package/dist/vitest.config.d.ts +0 -12
- package/dist/vitest.config.d.ts.map +0 -1
- package/src/add-members-switch/add-members-with-switch-platform-wrapper.tsx +0 -9
- package/src/add-members-switch/add-members-with-switch.tsx +0 -321
- package/src/availability/availability-settings.tsx +0 -806
- package/src/availability/components/date-override-input-dialog.tsx +0 -254
- package/src/availability/components/date-override-list.tsx +0 -167
- package/src/availability/components/schedule-component.tsx +0 -790
- package/src/availability/index.ts +0 -3
- package/src/availability/types.ts +0 -40
- package/src/availability/wrappers/availability-settings-platform-wrapper.tsx +0 -224
- package/src/booker/Booker.docs.mdx +0 -12
- package/src/booker/__tests__/config.test.ts +0 -58
- package/src/booker/__tests__/store-extended.test.ts +0 -349
- package/src/booker/__tests__/store.test.ts +0 -230
- package/src/booker/booker-platform-wrapper.tsx +0 -625
- package/src/booker/booker-store-provider.tsx +0 -117
- package/src/booker/components/available-time-slots.tsx +0 -245
- package/src/booker/components/available-times-header.tsx +0 -79
- package/src/booker/components/available-times.tsx +0 -359
- package/src/booker/components/book-event-form/book-event-form.tsx +0 -344
- package/src/booker/components/book-event-form/book-form-as-modal.tsx +0 -85
- package/src/booker/components/book-event-form/booking-fields.tsx +0 -257
- package/src/booker/components/book-event-form/index.ts +0 -4
- package/src/booker/components/book-event-form/skeleton.tsx +0 -29
- package/src/booker/components/booker-component.tsx +0 -699
- package/src/booker/components/booker-section.tsx +0 -49
- package/src/booker/components/dry-run-message.tsx +0 -31
- package/src/booker/components/event-meta/available-event-locations.tsx +0 -121
- package/src/booker/components/event-meta/details.tsx +0 -187
- package/src/booker/components/event-meta/duration.tsx +0 -141
- package/src/booker/components/event-meta/index.ts +0 -6
- package/src/booker/components/event-meta/locations.tsx +0 -71
- package/src/booker/components/event-meta/members.tsx +0 -99
- package/src/booker/components/event-meta/occurences.tsx +0 -142
- package/src/booker/components/event-meta/price-icon.tsx +0 -65
- package/src/booker/components/event-meta/price.tsx +0 -103
- package/src/booker/components/event-meta/skeleton.tsx +0 -19
- package/src/booker/components/event-meta/title.tsx +0 -18
- package/src/booker/components/event-meta.tsx +0 -292
- package/src/booker/components/external-redirect-interstitial.tsx +0 -78
- package/src/booker/components/form-builder/components.tsx +0 -541
- package/src/booker/components/form-builder/form-builder-field.tsx +0 -390
- package/src/booker/components/having-trouble-finding-time.tsx +0 -49
- package/src/booker/components/header.tsx +0 -261
- package/src/booker/components/instant-booking.tsx +0 -74
- package/src/booker/components/out-of-office-in-slots.tsx +0 -116
- package/src/booker/components/overlay-calendar/overlay-calendar-continue-modal.tsx +0 -47
- package/src/booker/components/overlay-calendar/overlay-calendar-settings-modal.tsx +0 -129
- package/src/booker/components/overlay-calendar/overlay-calendar-switch.tsx +0 -73
- package/src/booker/components/overlay-calendar/overlay-calendar.tsx +0 -80
- package/src/booker/components/overlay-calendar/store.ts +0 -27
- package/src/booker/components/pay-icon.tsx +0 -6
- package/src/booker/components/price.tsx +0 -13
- package/src/booker/components/redirect-to-instant-meeting-modal.tsx +0 -121
- package/src/booker/components/scrollable-with-gradients.tsx +0 -77
- package/src/booker/components/seats-availability-text.tsx +0 -43
- package/src/booker/components/section.tsx +0 -51
- package/src/booker/components/slot-selection-modal-header.tsx +0 -116
- package/src/booker/components/time-format-toggle.tsx +0 -28
- package/src/booker/components/unavailable.tsx +0 -30
- package/src/booker/components/unpublished-entity.tsx +0 -30
- package/src/booker/components/verify-code-dialog.tsx +0 -131
- package/src/booker/config.ts +0 -206
- package/src/booker/export.ts +0 -5
- package/src/booker/framer-features.ts +0 -3
- package/src/booker/hooks/__tests__/use-booker-layout.test.tsx +0 -98
- package/src/booker/hooks/__tests__/use-check-overlap-with-overlay.test.ts +0 -95
- package/src/booker/hooks/__tests__/use-local-set.test.tsx +0 -72
- package/src/booker/hooks/__tests__/use-non-empty-schedule-days.test.tsx +0 -37
- package/src/booker/hooks/__tests__/use-overlay-calendar.test.tsx +0 -122
- package/src/booker/hooks/__tests__/use-should-show-arrows.test.tsx +0 -45
- package/src/booker/hooks/__tests__/use-skip-confirm-step.test.ts +0 -54
- package/src/booker/hooks/__tests__/use-slots-for-date.test.tsx +0 -65
- package/src/booker/hooks/__tests__/use-stable-timezone.test.ts +0 -74
- package/src/booker/hooks/__tests__/use-times-for-schedule.test.tsx +0 -132
- package/src/booker/hooks/embed-stubs.ts +0 -30
- package/src/booker/hooks/use-available-time-slots.ts +0 -48
- package/src/booker/hooks/use-booker-layout.ts +0 -131
- package/src/booker/hooks/use-booker-time.ts +0 -21
- package/src/booker/hooks/use-booking-form.ts +0 -108
- package/src/booker/hooks/use-bookings-types.ts +0 -10
- package/src/booker/hooks/use-check-overlap-with-overlay.ts +0 -49
- package/src/booker/hooks/use-initialize-week-start.ts +0 -20
- package/src/booker/hooks/use-is-quick-availability-check-feature-enabled.ts +0 -45
- package/src/booker/hooks/use-local-set.tsx +0 -70
- package/src/booker/hooks/use-non-empty-schedule-days.ts +0 -23
- package/src/booker/hooks/use-overlay-calendar.ts +0 -94
- package/src/booker/hooks/use-should-show-arrows.ts +0 -33
- package/src/booker/hooks/use-skip-confirm-step.ts +0 -79
- package/src/booker/hooks/use-slots-for-date.ts +0 -51
- package/src/booker/hooks/use-stable-timezone.ts +0 -13
- package/src/booker/hooks/use-times-for-schedule.ts +0 -123
- package/src/booker/store.ts +0 -831
- package/src/booker/types.ts +0 -142
- package/src/booker/use-slot-reservation-id.ts +0 -14
- package/src/booker/utils/__tests__/booker-utils.test.ts +0 -159
- package/src/booker/utils/__tests__/is-timeslot-available.test.ts +0 -224
- package/src/booker/utils/are-different-valid-months.ts +0 -5
- package/src/booker/utils/dates.tsx +0 -90
- package/src/booker/utils/get-booker-timezone.ts +0 -9
- package/src/booker/utils/get-booking-duration.ts +0 -19
- package/src/booker/utils/get-prefetch-month-count.ts +0 -24
- package/src/booker/utils/is-booking-dry-run.ts +0 -5
- package/src/booker/utils/is-month-change.ts +0 -5
- package/src/booker/utils/is-month-view-prefetch-enabled.ts +0 -14
- package/src/booker/utils/is-prefetch-next-month-enabled.ts +0 -27
- package/src/booker/utils/is-timeslot-available.ts +0 -78
- package/src/booker/utils/layout.ts +0 -5
- package/src/booker-embed/__tests__/use-get-routing-form-url-props.test.tsx +0 -133
- package/src/booker-embed/booker-embed.tsx +0 -117
- package/src/booker-embed/index.ts +0 -1
- package/src/booker-embed/use-get-routing-form-url-props.tsx +0 -95
- package/src/cal-provider/base-cal-provider.tsx +0 -248
- package/src/cal-provider/cal-o-auth-provider.tsx +0 -77
- package/src/cal-provider/cal-provider.tsx +0 -112
- package/src/cal-provider/index.ts +0 -2
- package/src/cal-provider/languages.ts +0 -78
- package/src/calendar-settings/index.ts +0 -1
- package/src/calendar-settings/wrappers/calendar-settings-platform-wrapper.tsx +0 -45
- package/src/calendar-view/calendar-view-component.tsx +0 -35
- package/src/calendar-view/components/calendar.tsx +0 -1
- package/src/calendar-view/components/date-picker.tsx +0 -498
- package/src/calendar-view/components/large-calendar.tsx +0 -201
- package/src/calendar-view/components/no-availability-dialog.tsx +0 -74
- package/src/calendar-view/event-type-calendar-view-component.tsx +0 -152
- package/src/calendar-view/index.ts +0 -1
- package/src/calendar-view/scheduler/components/calendar.tsx +0 -231
- package/src/calendar-view/scheduler/components/current-time/index.tsx +0 -87
- package/src/calendar-view/scheduler/components/date-values/index.tsx +0 -114
- package/src/calendar-view/scheduler/components/default-out-of-office-slot.tsx +0 -68
- package/src/calendar-view/scheduler/components/event/all-day-events.test.tsx +0 -799
- package/src/calendar-view/scheduler/components/event/all-day-events.tsx +0 -360
- package/src/calendar-view/scheduler/components/event/empty.tsx +0 -229
- package/src/calendar-view/scheduler/components/event/event-list.tsx +0 -137
- package/src/calendar-view/scheduler/components/event/event.tsx +0 -165
- package/src/calendar-view/scheduler/components/event/index.tsx +0 -4
- package/src/calendar-view/scheduler/components/grid/index.tsx +0 -24
- package/src/calendar-view/scheduler/components/heading/index.tsx +0 -1
- package/src/calendar-view/scheduler/components/heading/scheduler-heading.tsx +0 -40
- package/src/calendar-view/scheduler/components/horizontal-lines/index.tsx +0 -48
- package/src/calendar-view/scheduler/components/spinner/spinner.tsx +0 -23
- package/src/calendar-view/scheduler/components/vertical-lines/index.tsx +0 -40
- package/src/calendar-view/scheduler/state/__tests__/store.test.ts +0 -147
- package/src/calendar-view/scheduler/state/store.ts +0 -93
- package/src/calendar-view/scheduler/styles/styles.css +0 -20
- package/src/calendar-view/scheduler/types/common.ts +0 -1
- package/src/calendar-view/scheduler/types/events.ts +0 -20
- package/src/calendar-view/scheduler/types/state.ts +0 -126
- package/src/calendar-view/scheduler/utils/__tests__/overlap.test.ts +0 -650
- package/src/calendar-view/scheduler/utils/__tests__/utils.test.ts +0 -133
- package/src/calendar-view/scheduler/utils/index.ts +0 -100
- package/src/calendar-view/scheduler/utils/overlap.ts +0 -175
- package/src/calendar-view/wrappers/calendar-view-platform-wrapper.tsx +0 -41
- package/src/components/atoms-wrapper.tsx +0 -22
- package/src/components/ui/address-input.tsx +0 -36
- package/src/components/ui/alert.tsx +0 -67
- package/src/components/ui/app-list-card.tsx +0 -94
- package/src/components/ui/avatar-group.tsx +0 -59
- package/src/components/ui/avatar.tsx +0 -94
- package/src/components/ui/badge.tsx +0 -93
- package/src/components/ui/button-group.tsx +0 -40
- package/src/components/ui/button.tsx +0 -177
- package/src/components/ui/calendar-switch.tsx +0 -56
- package/src/components/ui/checkbox.tsx +0 -126
- package/src/components/ui/checked-team-select.tsx +0 -225
- package/src/components/ui/confirmation-dialog-content.tsx +0 -82
- package/src/components/ui/controlled-dialog.tsx +0 -30
- package/src/components/ui/dialog.tsx +0 -165
- package/src/components/ui/disconnect-calendar-integration.tsx +0 -52
- package/src/components/ui/divider.tsx +0 -22
- package/src/components/ui/dropdown.tsx +0 -240
- package/src/components/ui/editable-heading.tsx +0 -64
- package/src/components/ui/empty-screen.tsx +0 -86
- package/src/components/ui/form.tsx +0 -46
- package/src/components/ui/icon.tsx +0 -249
- package/src/components/ui/icons.tsx +0 -313
- package/src/components/ui/info-badge.tsx +0 -12
- package/src/components/ui/label.tsx +0 -13
- package/src/components/ui/navigation.tsx +0 -38
- package/src/components/ui/popover.tsx +0 -31
- package/src/components/ui/radio-area-group.tsx +0 -67
- package/src/components/ui/radio.tsx +0 -72
- package/src/components/ui/react-select-components.tsx +0 -86
- package/src/components/ui/select.tsx +0 -123
- package/src/components/ui/settings-header.tsx +0 -87
- package/src/components/ui/settings-toggle.tsx +0 -123
- package/src/components/ui/shell.tsx +0 -47
- package/src/components/ui/show-toast.tsx +0 -11
- package/src/components/ui/skeleton.tsx +0 -112
- package/src/components/ui/switch.tsx +0 -28
- package/src/components/ui/text-field.tsx +0 -241
- package/src/components/ui/toast.tsx +0 -121
- package/src/components/ui/toaster.tsx +0 -28
- package/src/components/ui/toggle-group.tsx +0 -109
- package/src/components/ui/tooltip.tsx +0 -84
- package/src/components/ui/use-toast.ts +0 -187
- package/src/components/ui/user-avatar-group-with-org.tsx +0 -45
- package/src/connect/apple/apple-connect.tsx +0 -197
- package/src/connect/components/disconnect-integration-modal.tsx +0 -51
- package/src/connect/components/office365-account-dialog.tsx +0 -48
- package/src/connect/conferencing-apps/components/app-list.tsx +0 -238
- package/src/connect/conferencing-apps/conferencing-apps-view-platform-wrapper.tsx +0 -358
- package/src/connect/conferencing-apps/hooks/use-atom-bulk-update-event-types-to-default-location.ts +0 -50
- package/src/connect/conferencing-apps/hooks/use-atom-get-event-types.ts +0 -34
- package/src/connect/conferencing-apps/hooks/use-atoms-get-installed-conferencing-apps.ts +0 -38
- package/src/connect/conferencing-apps/hooks/use-connect.ts +0 -157
- package/src/connect/conferencing-apps/hooks/use-delete-credential.ts +0 -38
- package/src/connect/conferencing-apps/hooks/use-get-default-conferencing-app.ts +0 -38
- package/src/connect/conferencing-apps/hooks/use-update-user-default-conferencing-app.ts +0 -43
- package/src/connect/google/gcal-connect.tsx +0 -42
- package/src/connect/index.ts +0 -3
- package/src/connect/o-auth-connect.tsx +0 -148
- package/src/connect/outlook/outlook-connect.tsx +0 -42
- package/src/connect/stripe/stripe-connect.tsx +0 -81
- package/src/constants/api.ts +0 -114
- package/src/constants/app.ts +0 -44
- package/src/constants/apps.ts +0 -37
- package/src/constants/index.ts +0 -3
- package/src/constants/styles.ts +0 -1
- package/src/contracts/api.ts +0 -30
- package/src/contracts/apps.ts +0 -24
- package/src/contracts/booker.ts +0 -287
- package/src/contracts/bookings.ts +0 -141
- package/src/contracts/calendars.ts +0 -87
- package/src/contracts/event-types.ts +0 -252
- package/src/contracts/index.ts +0 -12
- package/src/contracts/oauth.ts +0 -47
- package/src/contracts/organizations.ts +0 -14
- package/src/contracts/schedules.ts +0 -100
- package/src/contracts/slots.ts +0 -63
- package/src/contracts/teams.ts +0 -35
- package/src/contracts/user.ts +0 -25
- package/src/create-schedule/create-schedule-form.tsx +0 -110
- package/src/create-schedule/index.tsx +0 -1
- package/src/create-schedule/wrappers/create-schedule-platform-wrapper.tsx +0 -69
- package/src/destination-calendar/components/destination-calendar-selector.tsx +0 -34
- package/src/destination-calendar/destination-calendar-selector.tsx +0 -149
- package/src/destination-calendar/destination-calendar.tsx +0 -82
- package/src/destination-calendar/destination-reminder-selector.tsx +0 -51
- package/src/destination-calendar/index.ts +0 -1
- package/src/destination-calendar/wrappers/destination-calendar-settings-platform-wrapper.tsx +0 -62
- package/src/event-types/__tests__/event-type-list-item.test.tsx +0 -196
- package/src/event-types/__tests__/format-event-type-duration.test.ts +0 -47
- package/src/event-types/components/__tests__/children-event-type-select.test.tsx +0 -291
- package/src/event-types/components/assign-all-team-members.tsx +0 -46
- package/src/event-types/components/bulk-edit-default-for-events-modal.tsx +0 -129
- package/src/event-types/components/children-event-type-select.tsx +0 -223
- package/src/event-types/components/create-event-type-form.tsx +0 -160
- package/src/event-types/components/event-team-assignment-tab.tsx +0 -9
- package/src/event-types/components/event-type-list-item.tsx +0 -153
- package/src/event-types/components/host-edit-dialogs.tsx +0 -277
- package/src/event-types/components/learn-more-link.tsx +0 -41
- package/src/event-types/components/managed-event-dialog.tsx +0 -62
- package/src/event-types/components/recurring-event-controller.tsx +0 -247
- package/src/event-types/components/tabs/event-recurring-tab.tsx +0 -34
- package/src/event-types/components/team-assignment/assign-all-managed-warning-dialog.tsx +0 -43
- package/src/event-types/components/team-assignment/children-event-types-list.tsx +0 -43
- package/src/event-types/components/team-assignment/children-event-types.tsx +0 -62
- package/src/event-types/components/team-assignment/event-team-assignment-tab.tsx +0 -300
- package/src/event-types/components/team-assignment/fixed-hosts.tsx +0 -170
- package/src/event-types/components/team-assignment/hosts.tsx +0 -125
- package/src/event-types/components/team-assignment/round-robin-hosts.tsx +0 -266
- package/src/event-types/components/team-event-type-form.tsx +0 -183
- package/src/event-types/components/weight-description.tsx +0 -24
- package/src/event-types/hooks/__tests__/use-assign-all-managed-warning.test.ts +0 -78
- package/src/event-types/hooks/__tests__/use-team-event-assignment.test.tsx +0 -218
- package/src/event-types/hooks/use-add-verified-email.ts +0 -64
- package/src/event-types/hooks/use-apps-data-stub.ts +0 -19
- package/src/event-types/hooks/use-assign-all-managed-warning.ts +0 -45
- package/src/event-types/hooks/use-atom-event-type-app-integration.ts +0 -49
- package/src/event-types/hooks/use-atom-event-type-by-id.ts +0 -25
- package/src/event-types/hooks/use-atom-event-type-payment-info.ts +0 -36
- package/src/event-types/hooks/use-atom-get-all-event-types.ts +0 -30
- package/src/event-types/hooks/use-atom-host-schedules.ts +0 -36
- package/src/event-types/hooks/use-atom-update-event-type.ts +0 -61
- package/src/event-types/hooks/use-event-type-form.test.ts +0 -192
- package/src/event-types/hooks/use-event-type-form.ts +0 -501
- package/src/event-types/hooks/use-get-verified-emails.ts +0 -27
- package/src/event-types/hooks/use-handle-route-change.ts +0 -57
- package/src/event-types/hooks/use-locked-fields-manager-stub.ts +0 -30
- package/src/event-types/hooks/use-platform-tabs-navigations.tsx +0 -138
- package/src/event-types/hooks/use-tabs-navigations.test.ts +0 -31
- package/src/event-types/hooks/use-tabs-navigations.tsx +0 -266
- package/src/event-types/hooks/use-team-event-assignment.ts +0 -127
- package/src/event-types/hooks/use-team-members-with-segment-platform.tsx +0 -107
- package/src/event-types/index.ts +0 -1
- package/src/event-types/lib/format-event-type-duration.ts +0 -25
- package/src/event-types/payments/payment-form.tsx +0 -150
- package/src/event-types/payments/payment-page-types.ts +0 -47
- package/src/event-types/payments/payment.tsx +0 -115
- package/src/event-types/payments/stripe-payment-form.tsx +0 -136
- package/src/event-types/types.ts +0 -16
- package/src/event-types/wrappers/create-event-type-platform-wrapper.tsx +0 -148
- package/src/event-types/wrappers/event-recurring-tab-platform-wrapper.tsx +0 -8
- package/src/event-types/wrappers/event-team-assignment-tab-platform-wrapper.tsx +0 -15
- package/src/event-types/wrappers/event-type-platform-wrapper.tsx +0 -399
- package/src/event-types/wrappers/list-event-types-platform-wrapper.tsx +0 -85
- package/src/event-types/wrappers/types.ts +0 -5
- package/src/hooks/__tests__/use-is-platform.test.tsx +0 -58
- package/src/hooks/__tests__/use-slot-mutations.test.tsx +0 -113
- package/src/hooks/__tests__/use-timezone-hooks.test.tsx +0 -67
- package/src/hooks/__tests__/use-verify-code.test.tsx +0 -120
- package/src/hooks/bookings/__tests__/use-booking-mutations.test.tsx +0 -123
- package/src/hooks/bookings/__tests__/use-booking-queries.test.tsx +0 -108
- package/src/hooks/bookings/use-booking.ts +0 -28
- package/src/hooks/bookings/use-bookings.ts +0 -61
- package/src/hooks/bookings/use-cancel-booking.ts +0 -47
- package/src/hooks/bookings/use-create-booking.ts +0 -43
- package/src/hooks/bookings/use-create-instant-booking.ts +0 -39
- package/src/hooks/bookings/use-create-recurring-booking.ts +0 -42
- package/src/hooks/bookings/use-get-booking-for-reschedule.ts +0 -51
- package/src/hooks/bookings/use-handle-book-event.ts +0 -156
- package/src/hooks/calendars/__tests__/use-calendar-mutations.test.tsx +0 -225
- package/src/hooks/calendars/use-add-selected-calendar.ts +0 -65
- package/src/hooks/calendars/use-delete-calendar-credentials.ts +0 -67
- package/src/hooks/calendars/use-remove-selected-calendar.ts +0 -67
- package/src/hooks/calendars/use-update-destination-calendars.ts +0 -60
- package/src/hooks/connect/__tests__/use-connect.test.tsx +0 -109
- package/src/hooks/connect/use-check.ts +0 -61
- package/src/hooks/connect/use-connect.ts +0 -106
- package/src/hooks/event-types/private/__tests__/event-type-mutations.test.tsx +0 -160
- package/src/hooks/event-types/private/use-create-event-type-form.ts +0 -30
- package/src/hooks/event-types/private/use-create-event-type.ts +0 -38
- package/src/hooks/event-types/private/use-create-team-event-type.ts +0 -42
- package/src/hooks/event-types/private/use-delete-event-type-by-id.ts +0 -30
- package/src/hooks/event-types/private/use-delete-team-event-type-by-id.ts +0 -45
- package/src/hooks/event-types/private/use-event-type-by-id.ts +0 -23
- package/src/hooks/event-types/public/__tests__/public-event-type-hooks.test.tsx +0 -128
- package/src/hooks/event-types/public/use-atom-get-public-event.tsx +0 -80
- package/src/hooks/event-types/public/use-event-type.ts +0 -53
- package/src/hooks/event-types/public/use-event-types.ts +0 -23
- package/src/hooks/event-types/public/use-team-event-type.ts +0 -46
- package/src/hooks/event-types/public/use-team-event-types.ts +0 -26
- package/src/hooks/organizations/bookings/use-organization-bookings.ts +0 -38
- package/src/hooks/organizations/bookings/use-organization-user-bookings.ts +0 -34
- package/src/hooks/schedules/__tests__/use-schedules.test.tsx +0 -168
- package/src/hooks/schedules/types.ts +0 -36
- package/src/hooks/schedules/use-atom-create-schedule.ts +0 -47
- package/src/hooks/schedules/use-atom-duplicate-schedule.ts +0 -45
- package/src/hooks/schedules/use-atom-get-all-schedules.ts +0 -30
- package/src/hooks/schedules/use-atom-schedule.ts +0 -33
- package/src/hooks/schedules/use-atom-update-schedule.ts +0 -54
- package/src/hooks/schedules/use-delete-schedule.ts +0 -54
- package/src/hooks/schedules/use-ensure-default-schedule.ts +0 -23
- package/src/hooks/schedules/use-schedule.ts +0 -34
- package/src/hooks/schedules/use-schedules.ts +0 -34
- package/src/hooks/schedules/use-update-schedule.ts +0 -58
- package/src/hooks/stripe/__tests__/use-check.test.tsx +0 -99
- package/src/hooks/stripe/use-check.ts +0 -73
- package/src/hooks/stripe/use-connect.ts +0 -54
- package/src/hooks/teams/__tests__/use-team-queries.test.tsx +0 -94
- package/src/hooks/teams/use-team-members.ts +0 -32
- package/src/hooks/teams/use-teams.ts +0 -34
- package/src/hooks/use-api-keys.ts +0 -5
- package/src/hooks/use-atoms-context.ts +0 -49
- package/src/hooks/use-atoms-locale.ts +0 -11
- package/src/hooks/use-available-slots.ts +0 -43
- package/src/hooks/use-calendars-busy-times.ts +0 -64
- package/src/hooks/use-connected-calendars.tsx +0 -27
- package/src/hooks/use-delete-selected-slot.ts +0 -52
- package/src/hooks/use-event-types-list.tsx +0 -39
- package/src/hooks/use-get-city-timezones.ts +0 -27
- package/src/hooks/use-is-platform-booker-embed.ts +0 -6
- package/src/hooks/use-is-platform.ts +0 -6
- package/src/hooks/use-me.ts +0 -30
- package/src/hooks/use-o-auth-client.ts +0 -72
- package/src/hooks/use-o-auth-flow.ts +0 -120
- package/src/hooks/use-reserve-slot.ts +0 -48
- package/src/hooks/use-schedule-by-event-slug.tsx +0 -40
- package/src/hooks/use-slots.ts +0 -115
- package/src/hooks/use-timezone.ts +0 -19
- package/src/hooks/use-update-user-timezone.ts +0 -28
- package/src/hooks/use-verify-code.ts +0 -115
- package/src/hooks/use-verify-email.ts +0 -107
- package/src/index.ts +0 -180
- package/src/lib/__tests__/http.test.ts +0 -79
- package/src/lib/append-client-id-to-email.ts +0 -4
- package/src/lib/get-placeholder-content.ts +0 -16
- package/src/lib/get-query-param.ts +0 -14
- package/src/lib/get-utm-tracking-parameters.ts +0 -13
- package/src/lib/http.ts +0 -75
- package/src/lib/markdown-to-safe-html-client.ts +0 -43
- package/src/lib/markdown-to-safe-html.ts +0 -9
- package/src/lib/set-query-param.ts +0 -13
- package/src/lib/time-zones.ts +0 -20
- package/src/lib/use-locale.ts +0 -26
- package/src/lib/utils.ts +0 -6
- package/src/list-schedules/components/schedule-list-item.tsx +0 -183
- package/src/list-schedules/index.ts +0 -1
- package/src/list-schedules/wrappers/list-schedules-platform-wrapper.tsx +0 -130
- package/src/onboarding/continue-with-calcom.tsx +0 -284
- package/src/onboarding/export.ts +0 -2
- package/src/onboarding/onboarding-embed.tsx +0 -266
- package/src/onboarding/types.ts +0 -38
- package/src/router/index.ts +0 -1
- package/src/router/router.tsx +0 -164
- package/src/selected-calendars/index.ts +0 -1
- package/src/selected-calendars/selected-calendars-settings.tsx +0 -7
- package/src/selected-calendars/wrappers/selected-calendars-settings-platform-wrapper.tsx +0 -462
- package/src/timezone/index.tsx +0 -37
- package/src/timezone/timezone-select-component.tsx +0 -193
- package/src/troubleshooter/__tests__/store.test.ts +0 -80
- package/src/troubleshooter/components/calendar-toggle-container-component.tsx +0 -148
- package/src/troubleshooter/components/event-schedule-item-component.tsx +0 -33
- package/src/troubleshooter/components/event-type-select-component.tsx +0 -105
- package/src/troubleshooter/components/troubleshooter-list-item-container.tsx +0 -42
- package/src/troubleshooter/index.ts +0 -1
- package/src/troubleshooter/large-calendar/large-calendar.tsx +0 -30
- package/src/troubleshooter/sidebar/calendar-toggle-container.tsx +0 -25
- package/src/troubleshooter/sidebar/event-schedule-item.tsx +0 -13
- package/src/troubleshooter/sidebar/event-type-select.tsx +0 -8
- package/src/troubleshooter/sidebar/troubleshooter-sidebar.tsx +0 -48
- package/src/troubleshooter/store.ts +0 -110
- package/src/troubleshooter/types.ts +0 -10
- package/src/troubleshooter/wrappers/troubleshooter-platform-wrapper.tsx +0 -89
- package/src/types.ts +0 -7
- package/src/vendor/__tests__/availability.test.ts +0 -60
- package/src/vendor/__tests__/avatar-url.test.ts +0 -75
- package/src/vendor/__tests__/booker-url.test.ts +0 -26
- package/src/vendor/__tests__/booking-to-mutation-input.test.ts +0 -232
- package/src/vendor/__tests__/check-for-empty-assignment.test.ts +0 -59
- package/src/vendor/__tests__/children-event-type.test.ts +0 -64
- package/src/vendor/__tests__/currency.test.ts +0 -48
- package/src/vendor/__tests__/dayjs-utils.test.ts +0 -37
- package/src/vendor/__tests__/error-codes.test.ts +0 -69
- package/src/vendor/__tests__/event-naming.test.ts +0 -32
- package/src/vendor/__tests__/format-date-time.test.ts +0 -90
- package/src/vendor/__tests__/get-available-dates-in-month.test.ts +0 -51
- package/src/vendor/__tests__/host-group-utils.test.ts +0 -117
- package/src/vendor/__tests__/interval-limit.test.ts +0 -42
- package/src/vendor/__tests__/locations-resolver.test.ts +0 -48
- package/src/vendor/__tests__/locations.test.ts +0 -109
- package/src/vendor/__tests__/misc-utils.test.ts +0 -219
- package/src/vendor/__tests__/parse-dates.test.ts +0 -67
- package/src/vendor/__tests__/payments.test.ts +0 -126
- package/src/vendor/__tests__/query-param.test.ts +0 -70
- package/src/vendor/__tests__/recurring.test.ts +0 -104
- package/src/vendor/__tests__/slugify.test.ts +0 -48
- package/src/vendor/__tests__/time-shift.test.ts +0 -48
- package/src/vendor/__tests__/timezone.test.ts +0 -77
- package/src/vendor/__tests__/validate-booker-layouts.test.ts +0 -40
- package/src/vendor/__tests__/webstorage.test.ts +0 -148
- package/src/vendor/__tests__/weekday.test.ts +0 -61
- package/src/vendor/__tests__/weekstart.test.ts +0 -45
- package/src/vendor/analytics.ts +0 -23
- package/src/vendor/availability.ts +0 -52
- package/src/vendor/avatar-url.ts +0 -39
- package/src/vendor/booker-url.ts +0 -23
- package/src/vendor/booking-to-mutation-input.ts +0 -166
- package/src/vendor/cal-ai-phone.ts +0 -31
- package/src/vendor/check-for-empty-assignment.ts +0 -24
- package/src/vendor/children-event-type.ts +0 -50
- package/src/vendor/currency.ts +0 -39
- package/src/vendor/dayjs/index.ts +0 -30
- package/src/vendor/dayjs/plugins/__tests__/business-days-plugin.test.ts +0 -168
- package/src/vendor/dayjs/plugins/business-days-plugin.ts +0 -189
- package/src/vendor/dayjs-utils.ts +0 -13
- package/src/vendor/error-codes.ts +0 -39
- package/src/vendor/event-naming.ts +0 -34
- package/src/vendor/form-builder/__tests__/base-schema.test.ts +0 -109
- package/src/vendor/form-builder/__tests__/schema.test.ts +0 -245
- package/src/vendor/form-builder/__tests__/system-field.test.ts +0 -57
- package/src/vendor/form-builder/__tests__/use-should-be-disabled-due-to-prefill.test.ts +0 -24
- package/src/vendor/form-builder/__tests__/utils.test.ts +0 -83
- package/src/vendor/form-builder/base-schema.ts +0 -127
- package/src/vendor/form-builder/field-type-enum.ts +0 -21
- package/src/vendor/form-builder/field-types.ts +0 -161
- package/src/vendor/form-builder/fields-that-support-label-as-safe-html.ts +0 -3
- package/src/vendor/form-builder/props-types.ts +0 -17
- package/src/vendor/form-builder/schema.ts +0 -269
- package/src/vendor/form-builder/system-field.ts +0 -33
- package/src/vendor/form-builder/use-should-be-disabled-due-to-prefill.tsx +0 -107
- package/src/vendor/form-builder/utils/__tests__/get-field-identifier.test.ts +0 -14
- package/src/vendor/form-builder/utils/__tests__/variants-config.test.ts +0 -98
- package/src/vendor/form-builder/utils/get-field-identifier.ts +0 -5
- package/src/vendor/form-builder/utils/variants-config.ts +0 -71
- package/src/vendor/form-builder/utils.ts +0 -48
- package/src/vendor/form-builder-widgets/index.tsx +0 -213
- package/src/vendor/format-date-time.ts +0 -138
- package/src/vendor/get-available-dates-in-month.ts +0 -36
- package/src/vendor/get-avatar-url.ts +0 -15
- package/src/vendor/get-routed-team-member-ids.ts +0 -9
- package/src/vendor/get-stripe.ts +0 -17
- package/src/vendor/get-username-list.ts +0 -14
- package/src/vendor/hooks/__tests__/use-router-query.test.ts +0 -37
- package/src/vendor/hooks/use-debounce.ts +0 -17
- package/src/vendor/hooks/use-media-query.ts +0 -24
- package/src/vendor/hooks/use-router-query.ts +0 -34
- package/src/vendor/host-group-utils.ts +0 -57
- package/src/vendor/interval-limit.ts +0 -17
- package/src/vendor/invert-logo-on-dark.ts +0 -7
- package/src/vendor/locales/de/common.json +0 -316
- package/src/vendor/locales/en/common.json +0 -316
- package/src/vendor/locales/es/common.json +0 -316
- package/src/vendor/locales/fr/common.json +0 -316
- package/src/vendor/locales/it/common.json +0 -316
- package/src/vendor/locales/nl/common.json +0 -316
- package/src/vendor/locales/pt-BR/common.json +0 -316
- package/src/vendor/locations-resolver.ts +0 -28
- package/src/vendor/locations.ts +0 -250
- package/src/vendor/parse-dates.ts +0 -107
- package/src/vendor/payments.ts +0 -107
- package/src/vendor/phone-input/phone-input.tsx +0 -121
- package/src/vendor/phone-input/phone-masks.ts +0 -7
- package/src/vendor/query-param.ts +0 -37
- package/src/vendor/recurring.ts +0 -58
- package/src/vendor/schedule-list-item.ts +0 -47
- package/src/vendor/scroll.ts +0 -4
- package/src/vendor/server-trans.tsx +0 -88
- package/src/vendor/slugify.ts +0 -28
- package/src/vendor/theme/tokens.css +0 -474
- package/src/vendor/time-format.ts +0 -43
- package/src/vendor/time-preferences.ts +0 -32
- package/src/vendor/time-shift.ts +0 -28
- package/src/vendor/timezone-constants.ts +0 -4
- package/src/vendor/timezone.ts +0 -78
- package/src/vendor/validate-booker-layouts.ts +0 -27
- package/src/vendor/webstorage.ts +0 -78
- package/src/vendor/weekday.ts +0 -35
- package/src/vendor/weekstart.ts +0 -20
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export type TemplateType = "CHECK_IN_APPOINTMENT" | "CUSTOM_TEMPLATE";
|
|
2
|
-
|
|
3
|
-
export const DEFAULT_BEGIN_MESSAGE = "Hi. How are you doing?";
|
|
4
|
-
|
|
5
|
-
export const DEFAULT_PROMPT_VALUE = `## You are helping user set up a call with the support team. The appointment is 15 min long. You are a pleasant and friendly.
|
|
6
|
-
|
|
7
|
-
## Task:
|
|
8
|
-
Use the provided context to book the appointment and answer user questions.
|
|
9
|
-
|
|
10
|
-
## Guidelines
|
|
11
|
-
Be Concise: Respond succinctly, addressing one topic at most.
|
|
12
|
-
Be Conversational: Use everyday language, making the chat feel like talking to a friend.
|
|
13
|
-
One question at a time: Ask only one question at a time.
|
|
14
|
-
Ensure Fluid Dialogue: Respond in a role-appropriate, direct manner to maintain a smooth conversation flow.
|
|
15
|
-
|
|
16
|
-
## Schedule Rule
|
|
17
|
-
Current time is {{current_time}}. You only schedule time in current calendar year, you cannot schedule time that's in the past.
|
|
18
|
-
|
|
19
|
-
## Task Steps
|
|
20
|
-
1. I am here to learn more about your issue and help schedule an appointment with our support team.
|
|
21
|
-
2. If {{ATTENDEE_EMAIL}} is not unknown then Use name {{ATTENDEE_NAME}} and email {{ATTENDEE_EMAIL}} for creating booking else Ask for user name and email and Confirm the name and email with user by reading it back to user.
|
|
22
|
-
3. Ask user for "When would you want to meet with one of our representatives".
|
|
23
|
-
4. Call function check_availability_{{eventTypeId}} to check for availability in the user provided time range.
|
|
24
|
-
- if availability exists, inform user about the availability range (do not repeat the detailed available slot) and ask user to choose from it. Make sure user chose a slot within detailed available slot.
|
|
25
|
-
- if availability does not exist, ask user to select another time range for the appointment, repeat this step 3.
|
|
26
|
-
5. Confirm the date and time selected by user: "Just to confirm, you want to book the appointment at ...".
|
|
27
|
-
6. Once confirmed, you can use {{user_number}} if it is not unknown else ask user for phone number in international format and use it for creating booking if it is a required field and call function book_appointment_{{eventTypeId}} to book the appointment.
|
|
28
|
-
- if booking returned booking detail, it means booking is successful, proceed to step 7.
|
|
29
|
-
- if booking returned error message, let user know why the booking was not successful, and maybe start over with step 3.
|
|
30
|
-
7. Inform the user booking is successful, and ask if user have any questions. Answer them if there are any.
|
|
31
|
-
8. After all questions answered, call function end_call to hang up.`;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if EventType requires assignment.
|
|
3
|
-
* Returns true if EventType requires assignment but there is no assignment
|
|
4
|
-
* yet done by the user; false otherwise.
|
|
5
|
-
*/
|
|
6
|
-
export function checkForEmptyAssignment({
|
|
7
|
-
assignedUsers,
|
|
8
|
-
hosts,
|
|
9
|
-
isManagedEventType,
|
|
10
|
-
assignAllTeamMembers,
|
|
11
|
-
}: {
|
|
12
|
-
assignedUsers: { length: number };
|
|
13
|
-
hosts: { length: number };
|
|
14
|
-
isManagedEventType: boolean;
|
|
15
|
-
assignAllTeamMembers: boolean;
|
|
16
|
-
}): boolean {
|
|
17
|
-
if (assignAllTeamMembers) {
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
if (isManagedEventType ? assignedUsers.length === 0 : hosts.length === 0) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { MembershipRole } from "../contracts";
|
|
2
|
-
|
|
3
|
-
type UserProfile = {
|
|
4
|
-
username?: string | null;
|
|
5
|
-
organizationId?: number | null;
|
|
6
|
-
organization?: {
|
|
7
|
-
id?: number;
|
|
8
|
-
slug?: string;
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
} | null;
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type ChildrenEventType = {
|
|
15
|
-
value: string;
|
|
16
|
-
label: string;
|
|
17
|
-
created: boolean;
|
|
18
|
-
owner: {
|
|
19
|
-
avatar: string;
|
|
20
|
-
id: number;
|
|
21
|
-
email: string;
|
|
22
|
-
name: string;
|
|
23
|
-
username: string;
|
|
24
|
-
// Webapp callers derive membership from a wider source where the value
|
|
25
|
-
// can be a plain string or undefined. Atoms only compares against the
|
|
26
|
-
// enum values in the OWNER badge logic, so accepting both is safe.
|
|
27
|
-
membership: MembershipRole | string | undefined;
|
|
28
|
-
eventTypeSlugs: string[];
|
|
29
|
-
profile: UserProfile;
|
|
30
|
-
};
|
|
31
|
-
slug: string;
|
|
32
|
-
hidden: boolean;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Extract only the server-required fields from a ChildrenEventType array to
|
|
37
|
-
* keep the request body small (the original comment notes 85+ assigned
|
|
38
|
-
* users can push the payload over 1MB).
|
|
39
|
-
*/
|
|
40
|
-
export function stripChildrenForPayload(children: ChildrenEventType[]) {
|
|
41
|
-
return children.map((child) => ({
|
|
42
|
-
hidden: child.hidden,
|
|
43
|
-
owner: {
|
|
44
|
-
id: child.owner.id,
|
|
45
|
-
name: child.owner.name,
|
|
46
|
-
email: child.owner.email,
|
|
47
|
-
eventTypeSlugs: child.owner.eventTypeSlugs,
|
|
48
|
-
},
|
|
49
|
-
}));
|
|
50
|
-
}
|
package/src/vendor/currency.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
const zeroDecimalCurrencies = [
|
|
2
|
-
"BIF",
|
|
3
|
-
"CLP",
|
|
4
|
-
"DJF",
|
|
5
|
-
"GNF",
|
|
6
|
-
"JPY",
|
|
7
|
-
"KMF",
|
|
8
|
-
"KRW",
|
|
9
|
-
"MGA",
|
|
10
|
-
"PYG",
|
|
11
|
-
"RWF",
|
|
12
|
-
"UGX",
|
|
13
|
-
"VND",
|
|
14
|
-
"VUV",
|
|
15
|
-
"XAF",
|
|
16
|
-
"XOF",
|
|
17
|
-
"XPF",
|
|
18
|
-
];
|
|
19
|
-
|
|
20
|
-
export const convertFromSmallestToPresentableCurrencyUnit = (amount: number, currency: string) => {
|
|
21
|
-
if (zeroDecimalCurrencies.includes(currency.toUpperCase())) {
|
|
22
|
-
return amount;
|
|
23
|
-
}
|
|
24
|
-
return amount / 100;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const formatPrice = (price: number, currency: string | undefined, locale = "en") => {
|
|
28
|
-
switch (currency) {
|
|
29
|
-
case "BTC":
|
|
30
|
-
return `${price} sats`;
|
|
31
|
-
default: {
|
|
32
|
-
const resolved = currency?.toUpperCase() || "USD";
|
|
33
|
-
return `${Intl.NumberFormat(locale, {
|
|
34
|
-
style: "currency",
|
|
35
|
-
currency: resolved,
|
|
36
|
-
}).format(convertFromSmallestToPresentableCurrencyUnit(price, resolved))}`;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import dayjs from "dayjs";
|
|
2
|
-
import customParseFormat from "dayjs/plugin/customParseFormat";
|
|
3
|
-
import duration from "dayjs/plugin/duration";
|
|
4
|
-
import isBetween from "dayjs/plugin/isBetween";
|
|
5
|
-
import isToday from "dayjs/plugin/isToday";
|
|
6
|
-
import localizedFormat from "dayjs/plugin/localizedFormat";
|
|
7
|
-
import minmax from "dayjs/plugin/minMax";
|
|
8
|
-
import relativeTime from "dayjs/plugin/relativeTime";
|
|
9
|
-
import timeZone from "dayjs/plugin/timezone";
|
|
10
|
-
import toArray from "dayjs/plugin/toArray";
|
|
11
|
-
import utc from "dayjs/plugin/utc";
|
|
12
|
-
|
|
13
|
-
import BusinessDaysPlugin from "./plugins/business-days-plugin";
|
|
14
|
-
|
|
15
|
-
dayjs.extend(customParseFormat);
|
|
16
|
-
dayjs.extend(BusinessDaysPlugin);
|
|
17
|
-
dayjs.extend(isBetween);
|
|
18
|
-
dayjs.extend(isToday);
|
|
19
|
-
dayjs.extend(localizedFormat);
|
|
20
|
-
dayjs.extend(relativeTime);
|
|
21
|
-
dayjs.extend(utc);
|
|
22
|
-
dayjs.extend(timeZone);
|
|
23
|
-
dayjs.extend(toArray);
|
|
24
|
-
dayjs.extend(minmax);
|
|
25
|
-
dayjs.extend(duration);
|
|
26
|
-
|
|
27
|
-
export type Dayjs = dayjs.Dayjs;
|
|
28
|
-
export type { ConfigType } from "dayjs";
|
|
29
|
-
|
|
30
|
-
export default dayjs;
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import dayjsModule from "dayjs";
|
|
2
|
-
import { beforeAll, describe, expect, it } from "vitest";
|
|
3
|
-
import BusinessDaysPlugin from "../business-days-plugin";
|
|
4
|
-
|
|
5
|
-
// Extend a throwaway dayjs instance so the plugin's mutations do not leak
|
|
6
|
-
// into the vendored dayjs singleton used elsewhere in tests.
|
|
7
|
-
const dayjs = dayjsModule;
|
|
8
|
-
|
|
9
|
-
type DayjsBusiness = dayjsModule.Dayjs & {
|
|
10
|
-
isHoliday: () => boolean;
|
|
11
|
-
isBusinessDay: () => boolean;
|
|
12
|
-
isAdditionalWorkingDay: () => boolean;
|
|
13
|
-
businessDaysAdd: (days: number) => DayjsBusiness;
|
|
14
|
-
businessDaysSubtract: (days: number) => DayjsBusiness;
|
|
15
|
-
businessDiff: (date: dayjsModule.Dayjs) => number;
|
|
16
|
-
nextBusinessDay: () => DayjsBusiness;
|
|
17
|
-
prevBusinessDay: () => DayjsBusiness;
|
|
18
|
-
businessDaysInMonth: () => DayjsBusiness[];
|
|
19
|
-
lastBusinessDayOfMonth: () => DayjsBusiness;
|
|
20
|
-
businessWeeksInMonth: () => DayjsBusiness[][];
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
beforeAll(() => {
|
|
24
|
-
dayjs.extend(BusinessDaysPlugin, {
|
|
25
|
-
holidays: ["2024-07-04"],
|
|
26
|
-
holidayFormat: "YYYY-MM-DD",
|
|
27
|
-
additionalWorkingDays: ["2024-07-06"],
|
|
28
|
-
additionalWorkingDayFormat: "YYYY-MM-DD",
|
|
29
|
-
workingWeekdays: [1, 2, 3, 4, 5],
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
describe("business-days-plugin factory accessors", () => {
|
|
34
|
-
it("reads and writes working weekdays", () => {
|
|
35
|
-
const factory = dayjs as unknown as {
|
|
36
|
-
getWorkingWeekdays: () => number[];
|
|
37
|
-
setWorkingWeekdays: (v: number[]) => void;
|
|
38
|
-
};
|
|
39
|
-
expect(factory.getWorkingWeekdays()).toEqual([1, 2, 3, 4, 5]);
|
|
40
|
-
factory.setWorkingWeekdays([2, 3, 4]);
|
|
41
|
-
expect(factory.getWorkingWeekdays()).toEqual([2, 3, 4]);
|
|
42
|
-
factory.setWorkingWeekdays([1, 2, 3, 4, 5]);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
it("reads and writes holidays and holiday format", () => {
|
|
46
|
-
const factory = dayjs as unknown as {
|
|
47
|
-
getHolidays: () => string[];
|
|
48
|
-
setHolidays: (v: string[]) => void;
|
|
49
|
-
getHolidayFormat: () => string | undefined;
|
|
50
|
-
setHolidayFormat: (v: string) => void;
|
|
51
|
-
};
|
|
52
|
-
expect(factory.getHolidays()).toContain("2024-07-04");
|
|
53
|
-
factory.setHolidays(["2024-01-01"]);
|
|
54
|
-
expect(factory.getHolidays()).toEqual(["2024-01-01"]);
|
|
55
|
-
factory.setHolidays(["2024-07-04"]);
|
|
56
|
-
|
|
57
|
-
expect(factory.getHolidayFormat()).toBe("YYYY-MM-DD");
|
|
58
|
-
factory.setHolidayFormat("YYYY/MM/DD");
|
|
59
|
-
expect(factory.getHolidayFormat()).toBe("YYYY/MM/DD");
|
|
60
|
-
factory.setHolidayFormat("YYYY-MM-DD");
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
it("reads and writes additional working days and format", () => {
|
|
64
|
-
const factory = dayjs as unknown as {
|
|
65
|
-
getAdditionalWorkingDays: () => string[];
|
|
66
|
-
setAdditionalWorkingDays: (v: string[]) => void;
|
|
67
|
-
getAdditionalWorkingDayFormat: () => string | undefined;
|
|
68
|
-
setAdditionalWorkingDayFormat: (v: string) => void;
|
|
69
|
-
};
|
|
70
|
-
expect(factory.getAdditionalWorkingDays()).toContain("2024-07-06");
|
|
71
|
-
factory.setAdditionalWorkingDays(["2024-12-28"]);
|
|
72
|
-
expect(factory.getAdditionalWorkingDays()).toEqual(["2024-12-28"]);
|
|
73
|
-
factory.setAdditionalWorkingDays(["2024-07-06"]);
|
|
74
|
-
|
|
75
|
-
expect(factory.getAdditionalWorkingDayFormat()).toBe("YYYY-MM-DD");
|
|
76
|
-
factory.setAdditionalWorkingDayFormat("DD-MM-YYYY");
|
|
77
|
-
expect(factory.getAdditionalWorkingDayFormat()).toBe("DD-MM-YYYY");
|
|
78
|
-
factory.setAdditionalWorkingDayFormat("YYYY-MM-DD");
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
describe("business-days-plugin instance methods", () => {
|
|
83
|
-
it("isHoliday detects configured holidays", () => {
|
|
84
|
-
const holiday = dayjs("2024-07-04") as DayjsBusiness;
|
|
85
|
-
const weekday = dayjs("2024-07-03") as DayjsBusiness;
|
|
86
|
-
expect(holiday.isHoliday()).toBe(true);
|
|
87
|
-
expect(weekday.isHoliday()).toBe(false);
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
it("isAdditionalWorkingDay detects explicit extra working days", () => {
|
|
91
|
-
const extra = dayjs("2024-07-06") as DayjsBusiness; // a Saturday
|
|
92
|
-
const regularWeekend = dayjs("2024-07-13") as DayjsBusiness;
|
|
93
|
-
expect(extra.isAdditionalWorkingDay()).toBe(true);
|
|
94
|
-
expect(regularWeekend.isAdditionalWorkingDay()).toBe(false);
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
it("isBusinessDay returns true for regular weekdays and false for holidays", () => {
|
|
98
|
-
const monday = dayjs("2024-07-01") as DayjsBusiness;
|
|
99
|
-
const holiday = dayjs("2024-07-04") as DayjsBusiness;
|
|
100
|
-
const saturday = dayjs("2024-07-13") as DayjsBusiness;
|
|
101
|
-
const extraWorkingDay = dayjs("2024-07-06") as DayjsBusiness;
|
|
102
|
-
expect(monday.isBusinessDay()).toBe(true);
|
|
103
|
-
expect(holiday.isBusinessDay()).toBe(false);
|
|
104
|
-
expect(saturday.isBusinessDay()).toBe(false);
|
|
105
|
-
expect(extraWorkingDay.isBusinessDay()).toBe(true);
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
it("businessDaysAdd skips weekends and holidays", () => {
|
|
109
|
-
const wednesday = dayjs("2024-07-03") as DayjsBusiness; // July 4 is a holiday, July 6 extra
|
|
110
|
-
const twoBusinessDaysLater = wednesday.businessDaysAdd(2);
|
|
111
|
-
expect(twoBusinessDaysLater.format("YYYY-MM-DD")).toBe("2024-07-06");
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
it("businessDaysSubtract moves backwards", () => {
|
|
115
|
-
const monday = dayjs("2024-07-08") as DayjsBusiness;
|
|
116
|
-
const result = monday.businessDaysSubtract(1);
|
|
117
|
-
expect(result.format("YYYY-MM-DD")).toBe("2024-07-06");
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
it("businessDiff returns 0 for the same day", () => {
|
|
121
|
-
const a = dayjs("2024-07-01") as DayjsBusiness;
|
|
122
|
-
expect(a.businessDiff(dayjs("2024-07-01"))).toBe(0);
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
it("businessDiff counts business days between two dates", () => {
|
|
126
|
-
const a = dayjs("2024-07-01") as DayjsBusiness;
|
|
127
|
-
const b = dayjs("2024-07-08") as DayjsBusiness;
|
|
128
|
-
expect(b.businessDiff(a)).toBeGreaterThan(0);
|
|
129
|
-
expect(a.businessDiff(b)).toBeLessThan(0);
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
it("nextBusinessDay and prevBusinessDay skip weekends", () => {
|
|
133
|
-
const friday = dayjs("2024-07-05") as DayjsBusiness;
|
|
134
|
-
const monday = dayjs("2024-07-08") as DayjsBusiness;
|
|
135
|
-
expect(friday.nextBusinessDay().format("YYYY-MM-DD")).toBe("2024-07-06");
|
|
136
|
-
expect(monday.prevBusinessDay().format("YYYY-MM-DD")).toBe("2024-07-06");
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
it("businessDaysInMonth returns days with at least one entry", () => {
|
|
140
|
-
const month = dayjs("2024-07-15") as DayjsBusiness;
|
|
141
|
-
const days = month.businessDaysInMonth();
|
|
142
|
-
expect(days.length).toBeGreaterThan(10);
|
|
143
|
-
expect(days.every((d) => (d as DayjsBusiness).isBusinessDay())).toBe(true);
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
it("businessDaysInMonth returns empty array for invalid dates", () => {
|
|
147
|
-
const invalid = dayjs("not-a-date") as DayjsBusiness;
|
|
148
|
-
expect(invalid.businessDaysInMonth()).toEqual([]);
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
it("lastBusinessDayOfMonth returns the last valid business day", () => {
|
|
152
|
-
const day = dayjs("2024-07-15") as DayjsBusiness;
|
|
153
|
-
const last = day.lastBusinessDayOfMonth();
|
|
154
|
-
expect((last as DayjsBusiness).isBusinessDay()).toBe(true);
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
it("businessWeeksInMonth groups days by weekly boundaries", () => {
|
|
158
|
-
const day = dayjs("2024-07-15") as DayjsBusiness;
|
|
159
|
-
const weeks = day.businessWeeksInMonth();
|
|
160
|
-
expect(weeks.length).toBeGreaterThan(0);
|
|
161
|
-
expect(weeks.flat().length).toBeGreaterThan(10);
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
it("businessWeeksInMonth returns empty array for invalid dates", () => {
|
|
165
|
-
const invalid = dayjs("not-a-date") as DayjsBusiness;
|
|
166
|
-
expect(invalid.businessWeeksInMonth()).toEqual([]);
|
|
167
|
-
});
|
|
168
|
-
});
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// The plugin extends dayjs' factory and prototype via dynamic assignments;
|
|
3
|
-
// a proper `.d.ts` module augmentation would be ideal but is out of scope
|
|
4
|
-
// here (the plugin is unused in atoms code paths, only present so
|
|
5
|
-
// vendored dayjs parity with the feature-side copy is preserved).
|
|
6
|
-
import type { Dayjs, PluginFunc } from "dayjs";
|
|
7
|
-
|
|
8
|
-
interface BusinessDaysPluginOptions {
|
|
9
|
-
holidays?: string[];
|
|
10
|
-
holidayFormat?: string;
|
|
11
|
-
additionalWorkingDays?: string[];
|
|
12
|
-
additionalWorkingDayFormat?: string;
|
|
13
|
-
workingWeekdays?: number[];
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const BusinessDaysPlugin: PluginFunc<BusinessDaysPluginOptions> = (
|
|
17
|
-
options = {},
|
|
18
|
-
dayjsClass,
|
|
19
|
-
dayjsFactory
|
|
20
|
-
) => {
|
|
21
|
-
const defaultWorkingWeekdays = [1, 2, 3, 4, 5];
|
|
22
|
-
|
|
23
|
-
dayjsFactory.getWorkingWeekdays = (): number[] => options.workingWeekdays || defaultWorkingWeekdays;
|
|
24
|
-
dayjsFactory.setWorkingWeekdays = (workingWeekdays: number[]): void => {
|
|
25
|
-
options.workingWeekdays = workingWeekdays;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
dayjsFactory.getHolidays = (): string[] => options.holidays || [];
|
|
29
|
-
dayjsFactory.setHolidays = (holidays: string[]): void => {
|
|
30
|
-
options.holidays = holidays;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
dayjsFactory.getHolidayFormat = (): string | undefined => options.holidayFormat;
|
|
34
|
-
dayjsFactory.setHolidayFormat = (holidayFormat: string): void => {
|
|
35
|
-
options.holidayFormat = holidayFormat;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
dayjsFactory.getAdditionalWorkingDays = (): string[] => options.additionalWorkingDays || [];
|
|
39
|
-
dayjsFactory.setAdditionalWorkingDays = (additionalWorkingDays: string[]): void => {
|
|
40
|
-
options.additionalWorkingDays = additionalWorkingDays;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
dayjsFactory.getAdditionalWorkingDayFormat = (): string | undefined => options.additionalWorkingDayFormat;
|
|
44
|
-
dayjsFactory.setAdditionalWorkingDayFormat = (additionalWorkingDayFormat: string): void => {
|
|
45
|
-
options.additionalWorkingDayFormat = additionalWorkingDayFormat;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
dayjsClass.prototype.isHoliday = function (this: Dayjs): boolean {
|
|
49
|
-
if (!options.holidays) return false;
|
|
50
|
-
return options.holidays.includes(this.format(options.holidayFormat));
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
dayjsClass.prototype.isBusinessDay = function (this: Dayjs): boolean {
|
|
54
|
-
const workingWeekdays = options.workingWeekdays || defaultWorkingWeekdays;
|
|
55
|
-
|
|
56
|
-
if (this.isHoliday()) return false;
|
|
57
|
-
if (this.isAdditionalWorkingDay()) return true;
|
|
58
|
-
return workingWeekdays.includes(this.day());
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
dayjsClass.prototype.isAdditionalWorkingDay = function (this: Dayjs): boolean {
|
|
62
|
-
if (!options.additionalWorkingDays) return false;
|
|
63
|
-
return options.additionalWorkingDays.includes(this.format(options.additionalWorkingDayFormat));
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
dayjsClass.prototype.businessDaysAdd = function (this: Dayjs, days: number): Dayjs {
|
|
67
|
-
const numericDirection = days < 0 ? -1 : 1;
|
|
68
|
-
let currentDay = this.clone();
|
|
69
|
-
let daysRemaining = Math.abs(days);
|
|
70
|
-
|
|
71
|
-
while (daysRemaining > 0) {
|
|
72
|
-
currentDay = currentDay.add(numericDirection, "d");
|
|
73
|
-
if (currentDay.isBusinessDay()) {
|
|
74
|
-
daysRemaining -= 1;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return currentDay;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
dayjsClass.prototype.businessDaysSubtract = function (this: Dayjs, days: number): Dayjs {
|
|
82
|
-
return this.clone().businessDaysAdd(days * -1);
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
dayjsClass.prototype.businessDiff = function (this: Dayjs, date: Dayjs): number {
|
|
86
|
-
const day1 = this.clone();
|
|
87
|
-
const day2 = date.clone();
|
|
88
|
-
const isPositiveDiff = day1 >= day2;
|
|
89
|
-
let start = isPositiveDiff ? day2 : day1;
|
|
90
|
-
const end = isPositiveDiff ? day1 : day2;
|
|
91
|
-
let daysBetween = 0;
|
|
92
|
-
|
|
93
|
-
if (start.isSame(end)) return daysBetween;
|
|
94
|
-
|
|
95
|
-
while (start < end) {
|
|
96
|
-
if (start.isBusinessDay()) {
|
|
97
|
-
daysBetween += 1;
|
|
98
|
-
}
|
|
99
|
-
start = start.add(1, "day");
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return isPositiveDiff ? daysBetween : -daysBetween;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
dayjsClass.prototype.nextBusinessDay = function (this: Dayjs): Dayjs {
|
|
106
|
-
const searchLimit = 7;
|
|
107
|
-
let currentDay = this.clone();
|
|
108
|
-
let loopIndex = 1;
|
|
109
|
-
|
|
110
|
-
while (loopIndex < searchLimit) {
|
|
111
|
-
currentDay = currentDay.add(1, "day");
|
|
112
|
-
if (currentDay.isBusinessDay()) break;
|
|
113
|
-
loopIndex += 1;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
return currentDay;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
dayjsClass.prototype.prevBusinessDay = function (this: Dayjs): Dayjs {
|
|
120
|
-
const searchLimit = 7;
|
|
121
|
-
let currentDay = this.clone();
|
|
122
|
-
let loopIndex = 1;
|
|
123
|
-
|
|
124
|
-
while (loopIndex < searchLimit) {
|
|
125
|
-
currentDay = currentDay.subtract(1, "day");
|
|
126
|
-
if (currentDay.isBusinessDay()) break;
|
|
127
|
-
loopIndex += 1;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
return currentDay;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
dayjsClass.prototype.businessDaysInMonth = function (this: Dayjs): Dayjs[] {
|
|
134
|
-
if (!this.isValid()) return [];
|
|
135
|
-
|
|
136
|
-
let currentDay = this.clone().startOf("month");
|
|
137
|
-
const monthEnd = this.clone().endOf("month");
|
|
138
|
-
const businessDays: Dayjs[] = [];
|
|
139
|
-
let monthComplete = false;
|
|
140
|
-
|
|
141
|
-
while (!monthComplete) {
|
|
142
|
-
if (currentDay.isBusinessDay()) {
|
|
143
|
-
businessDays.push(currentDay.clone());
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
currentDay = currentDay.add(1, "day");
|
|
147
|
-
if (currentDay.isAfter(monthEnd)) {
|
|
148
|
-
monthComplete = true;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
return businessDays;
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
dayjsClass.prototype.lastBusinessDayOfMonth = function (this: Dayjs): Dayjs {
|
|
156
|
-
const businessDays = this.businessDaysInMonth();
|
|
157
|
-
return businessDays[businessDays.length - 1];
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
dayjsClass.prototype.businessWeeksInMonth = function (this: Dayjs): Dayjs[][] {
|
|
161
|
-
if (!this.isValid()) return [];
|
|
162
|
-
|
|
163
|
-
let currentDay = this.clone().startOf("month");
|
|
164
|
-
const monthEnd = this.clone().endOf("month");
|
|
165
|
-
const businessWeeks: Dayjs[][] = [];
|
|
166
|
-
let businessDays: Dayjs[] = [];
|
|
167
|
-
let monthComplete = false;
|
|
168
|
-
|
|
169
|
-
while (!monthComplete) {
|
|
170
|
-
if (currentDay.isBusinessDay()) {
|
|
171
|
-
businessDays.push(currentDay.clone());
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
if (currentDay.day() === 5 || currentDay.isSame(monthEnd, "day")) {
|
|
175
|
-
businessWeeks.push(businessDays);
|
|
176
|
-
businessDays = [];
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
currentDay = currentDay.add(1, "day");
|
|
180
|
-
if (currentDay.isAfter(monthEnd)) {
|
|
181
|
-
monthComplete = true;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
return businessWeeks;
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
export default BusinessDaysPlugin;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Dayjs } from "dayjs";
|
|
2
|
-
|
|
3
|
-
import dayjs from "./dayjs";
|
|
4
|
-
|
|
5
|
-
export const yyyymmdd = (date: Date | Dayjs) =>
|
|
6
|
-
date instanceof Date ? dayjs(date).format("YYYY-MM-DD") : date.format("YYYY-MM-DD");
|
|
7
|
-
|
|
8
|
-
// @see https://github.com/iamkun/dayjs/issues/1272 — dayjs-native doesn't handle this correctly.
|
|
9
|
-
export const daysInMonth = (date: Date | Dayjs): number => {
|
|
10
|
-
const [year, month] =
|
|
11
|
-
date instanceof Date ? [date.getFullYear(), date.getMonth()] : [date.year(), date.month()];
|
|
12
|
-
return new Date(year, month + 1, 0).getDate();
|
|
13
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export enum ErrorCode {
|
|
2
|
-
Unauthorized = "unauthorized_error",
|
|
3
|
-
Forbidden = "forbidden_error",
|
|
4
|
-
NotFound = "not_found_error",
|
|
5
|
-
BadRequest = "bad_request_error",
|
|
6
|
-
InternalServerError = "internal_server_error",
|
|
7
|
-
PaymentCreationFailure = "payment_not_created_error",
|
|
8
|
-
NoAvailableUsersFound = "no_available_users_found_error",
|
|
9
|
-
ChargeCardFailure = "couldnt_charge_card_error",
|
|
10
|
-
CollectCardFailure = "couldnt_collect_card_error",
|
|
11
|
-
RequestBodyWithouEnd = "request_body_end_time_internal_error",
|
|
12
|
-
AlreadySignedUpForBooking = "already_signed_up_for_this_booking_error",
|
|
13
|
-
FixedHostsUnavailableForBooking = "fixed_hosts_unavailable_for_booking",
|
|
14
|
-
RoundRobinHostsUnavailableForBooking = "round_robin_host_unavailable_for_booking",
|
|
15
|
-
EventTypeNotFound = "event_type_not_found_error",
|
|
16
|
-
BookingNotFound = "booking_not_found_error",
|
|
17
|
-
BookingSeatsFull = "booking_seats_full_error",
|
|
18
|
-
MissingPaymentCredential = "missing_payment_credential_error",
|
|
19
|
-
MissingPaymentAppId = "missing_payment_app_id_error",
|
|
20
|
-
NotEnoughAvailableSeats = "not_enough_available_seats_error",
|
|
21
|
-
AvailabilityNotFoundInSchedule = "availability_not_found_in_schedule_error",
|
|
22
|
-
CancelledBookingsCannotBeRescheduled = "cancelled_bookings_cannot_be_rescheduled",
|
|
23
|
-
UnableToSubscribeToThePlatform = "unable_to_subscribe_to_the_platform",
|
|
24
|
-
UpdatingOauthClientError = "updating_oauth_client_error",
|
|
25
|
-
CreatingOauthClientError = "creating_oauth_client_error",
|
|
26
|
-
BookingTimeOutOfBounds = "booking_time_out_of_bounds_error",
|
|
27
|
-
BookingConflict = "booking_conflict_error",
|
|
28
|
-
BookerLimitExceeded = "booker_limit_exceeded_error",
|
|
29
|
-
BookerLimitExceededReschedule = "booker_limit_exceeded_error_reschedule",
|
|
30
|
-
BookingNotAllowedByRestrictionSchedule = "booking_not_allowed_by_restriction_schedule_error",
|
|
31
|
-
RestrictionScheduleNotFound = "restriction_schedule_not_found_error",
|
|
32
|
-
EventTypeNoHosts = "event_type_no_hosts",
|
|
33
|
-
RequestBodyInvalid = "request_body_invalid_error",
|
|
34
|
-
PrivateLinkExpired = "private_link_expired",
|
|
35
|
-
BookerEmailBlocked = "booker_email_blocked",
|
|
36
|
-
BookerEmailRequiresLogin = "booker_email_requires_login",
|
|
37
|
-
InvalidVerificationCode = "invalid_verification_code",
|
|
38
|
-
UnableToValidateVerificationCode = "unable_to_validate_verification_code",
|
|
39
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
type TranslationFunction = (key: string, options?: Record<string, unknown>) => string;
|
|
4
|
-
|
|
5
|
-
export const nameObjectSchema = z.object({
|
|
6
|
-
firstName: z.string(),
|
|
7
|
-
lastName: z.string().optional(),
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export type EventNameObjectType = {
|
|
11
|
-
attendeeName: z.infer<typeof nameObjectSchema> | string;
|
|
12
|
-
eventType: string;
|
|
13
|
-
eventName?: string | null;
|
|
14
|
-
teamName?: string | null;
|
|
15
|
-
host: string;
|
|
16
|
-
location?: string | null;
|
|
17
|
-
eventDuration: number;
|
|
18
|
-
bookingFields?: Record<string, unknown> | null;
|
|
19
|
-
t: TranslationFunction;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* atoms-local adapter (out of UI canonicalization — mapping helper, not UI). The features-side implementation guesses the event
|
|
24
|
-
* location type via the app-store catalog to format location placeholders
|
|
25
|
-
* in the custom event name. atoms doesn't ship that catalog; we report
|
|
26
|
-
* validation as successful and leave authoritative validation to the
|
|
27
|
-
* server.
|
|
28
|
-
*/
|
|
29
|
-
export const validateCustomEventName = (
|
|
30
|
-
_val: string,
|
|
31
|
-
_bookingFields?: Record<string, unknown> | null
|
|
32
|
-
): boolean => {
|
|
33
|
-
return true;
|
|
34
|
-
};
|