@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.
Files changed (1393) hide show
  1. package/dist/cal-atoms.js +186 -135
  2. package/dist/{index-BrBTKoIj.js → index-uxS4DSg-.js} +8207 -8162
  3. package/dist/index.d.ts +6258 -2
  4. package/dist/{stripe-payment-form-2mrB04BK.js → stripe-payment-form-Ct6RLnZs.js} +1 -1
  5. package/package.json +4 -131
  6. package/dist/src/add-members-switch/add-members-with-switch-platform-wrapper.d.ts +0 -3
  7. package/dist/src/add-members-switch/add-members-with-switch-platform-wrapper.d.ts.map +0 -1
  8. package/dist/src/add-members-switch/add-members-with-switch.d.ts +0 -41
  9. package/dist/src/add-members-switch/add-members-with-switch.d.ts.map +0 -1
  10. package/dist/src/availability/availability-settings.d.ts +0 -88
  11. package/dist/src/availability/availability-settings.d.ts.map +0 -1
  12. package/dist/src/availability/components/date-override-input-dialog.d.ts +0 -17
  13. package/dist/src/availability/components/date-override-input-dialog.d.ts.map +0 -1
  14. package/dist/src/availability/components/date-override-list.d.ts +0 -20
  15. package/dist/src/availability/components/date-override-list.d.ts.map +0 -1
  16. package/dist/src/availability/components/schedule-component.d.ts +0 -49
  17. package/dist/src/availability/components/schedule-component.d.ts.map +0 -1
  18. package/dist/src/availability/index.d.ts +0 -4
  19. package/dist/src/availability/index.d.ts.map +0 -1
  20. package/dist/src/availability/types.d.ts +0 -36
  21. package/dist/src/availability/types.d.ts.map +0 -1
  22. package/dist/src/availability/wrappers/availability-settings-platform-wrapper.d.ts +0 -28
  23. package/dist/src/availability/wrappers/availability-settings-platform-wrapper.d.ts.map +0 -1
  24. package/dist/src/booker/booker-platform-wrapper.d.ts +0 -5
  25. package/dist/src/booker/booker-platform-wrapper.d.ts.map +0 -1
  26. package/dist/src/booker/booker-store-provider.d.ts +0 -11
  27. package/dist/src/booker/booker-store-provider.d.ts.map +0 -1
  28. package/dist/src/booker/components/available-time-slots.d.ts +0 -46
  29. package/dist/src/booker/components/available-time-slots.d.ts.map +0 -1
  30. package/dist/src/booker/components/available-times-header.d.ts +0 -14
  31. package/dist/src/booker/components/available-times-header.d.ts.map +0 -1
  32. package/dist/src/booker/components/available-times.d.ts +0 -46
  33. package/dist/src/booker/components/available-times.d.ts.map +0 -1
  34. package/dist/src/booker/components/book-event-form/book-event-form.d.ts +0 -34
  35. package/dist/src/booker/components/book-event-form/book-event-form.d.ts.map +0 -1
  36. package/dist/src/booker/components/book-event-form/book-form-as-modal.d.ts +0 -14
  37. package/dist/src/booker/components/book-event-form/book-form-as-modal.d.ts.map +0 -1
  38. package/dist/src/booker/components/book-event-form/booking-fields.d.ts +0 -35
  39. package/dist/src/booker/components/book-event-form/booking-fields.d.ts.map +0 -1
  40. package/dist/src/booker/components/book-event-form/index.d.ts +0 -5
  41. package/dist/src/booker/components/book-event-form/index.d.ts.map +0 -1
  42. package/dist/src/booker/components/book-event-form/skeleton.d.ts +0 -2
  43. package/dist/src/booker/components/book-event-form/skeleton.d.ts.map +0 -1
  44. package/dist/src/booker/components/booker-component.d.ts +0 -2
  45. package/dist/src/booker/components/booker-component.d.ts.map +0 -1
  46. package/dist/src/booker/components/booker-section.d.ts +0 -15
  47. package/dist/src/booker/components/booker-section.d.ts.map +0 -1
  48. package/dist/src/booker/components/dry-run-message.d.ts +0 -4
  49. package/dist/src/booker/components/dry-run-message.d.ts.map +0 -1
  50. package/dist/src/booker/components/event-meta/available-event-locations.d.ts +0 -6
  51. package/dist/src/booker/components/event-meta/available-event-locations.d.ts.map +0 -1
  52. package/dist/src/booker/components/event-meta/details.d.ts +0 -34
  53. package/dist/src/booker/components/event-meta/details.d.ts.map +0 -1
  54. package/dist/src/booker/components/event-meta/duration.d.ts +0 -9
  55. package/dist/src/booker/components/event-meta/duration.d.ts.map +0 -1
  56. package/dist/src/booker/components/event-meta/index.d.ts +0 -7
  57. package/dist/src/booker/components/event-meta/index.d.ts.map +0 -1
  58. package/dist/src/booker/components/event-meta/locations.d.ts +0 -5
  59. package/dist/src/booker/components/event-meta/locations.d.ts.map +0 -1
  60. package/dist/src/booker/components/event-meta/members.d.ts +0 -13
  61. package/dist/src/booker/components/event-meta/members.d.ts.map +0 -1
  62. package/dist/src/booker/components/event-meta/occurences.d.ts +0 -5
  63. package/dist/src/booker/components/event-meta/occurences.d.ts.map +0 -1
  64. package/dist/src/booker/components/event-meta/price-icon.d.ts +0 -5
  65. package/dist/src/booker/components/event-meta/price-icon.d.ts.map +0 -1
  66. package/dist/src/booker/components/event-meta/price.d.ts +0 -7
  67. package/dist/src/booker/components/event-meta/price.d.ts.map +0 -1
  68. package/dist/src/booker/components/event-meta/skeleton.d.ts +0 -2
  69. package/dist/src/booker/components/event-meta/skeleton.d.ts.map +0 -1
  70. package/dist/src/booker/components/event-meta/title.d.ts +0 -9
  71. package/dist/src/booker/components/event-meta/title.d.ts.map +0 -1
  72. package/dist/src/booker/components/event-meta.d.ts +0 -25
  73. package/dist/src/booker/components/event-meta.d.ts.map +0 -1
  74. package/dist/src/booker/components/external-redirect-interstitial.d.ts +0 -9
  75. package/dist/src/booker/components/external-redirect-interstitial.d.ts.map +0 -1
  76. package/dist/src/booker/components/form-builder/components.d.ts +0 -48
  77. package/dist/src/booker/components/form-builder/components.d.ts.map +0 -1
  78. package/dist/src/booker/components/form-builder/form-builder-field.d.ts +0 -46
  79. package/dist/src/booker/components/form-builder/form-builder-field.d.ts.map +0 -1
  80. package/dist/src/booker/components/having-trouble-finding-time.d.ts +0 -9
  81. package/dist/src/booker/components/having-trouble-finding-time.d.ts.map +0 -1
  82. package/dist/src/booker/components/header.d.ts +0 -18
  83. package/dist/src/booker/components/header.d.ts.map +0 -1
  84. package/dist/src/booker/components/instant-booking.d.ts +0 -16
  85. package/dist/src/booker/components/instant-booking.d.ts.map +0 -1
  86. package/dist/src/booker/components/out-of-office-in-slots.d.ts +0 -19
  87. package/dist/src/booker/components/out-of-office-in-slots.d.ts.map +0 -1
  88. package/dist/src/booker/components/overlay-calendar/overlay-calendar-continue-modal.d.ts +0 -8
  89. package/dist/src/booker/components/overlay-calendar/overlay-calendar-continue-modal.d.ts.map +0 -1
  90. package/dist/src/booker/components/overlay-calendar/overlay-calendar-settings-modal.d.ts +0 -11
  91. package/dist/src/booker/components/overlay-calendar/overlay-calendar-settings-modal.d.ts.map +0 -1
  92. package/dist/src/booker/components/overlay-calendar/overlay-calendar-switch.d.ts +0 -8
  93. package/dist/src/booker/components/overlay-calendar/overlay-calendar-switch.d.ts.map +0 -1
  94. package/dist/src/booker/components/overlay-calendar/overlay-calendar.d.ts +0 -28
  95. package/dist/src/booker/components/overlay-calendar/overlay-calendar.d.ts.map +0 -1
  96. package/dist/src/booker/components/overlay-calendar/store.d.ts +0 -12
  97. package/dist/src/booker/components/overlay-calendar/store.d.ts.map +0 -1
  98. package/dist/src/booker/components/pay-icon.d.ts +0 -5
  99. package/dist/src/booker/components/pay-icon.d.ts.map +0 -1
  100. package/dist/src/booker/components/price.d.ts +0 -9
  101. package/dist/src/booker/components/price.d.ts.map +0 -1
  102. package/dist/src/booker/components/redirect-to-instant-meeting-modal.d.ts +0 -8
  103. package/dist/src/booker/components/redirect-to-instant-meeting-modal.d.ts.map +0 -1
  104. package/dist/src/booker/components/scrollable-with-gradients.d.ts +0 -9
  105. package/dist/src/booker/components/scrollable-with-gradients.d.ts.map +0 -1
  106. package/dist/src/booker/components/seats-availability-text.d.ts +0 -18
  107. package/dist/src/booker/components/seats-availability-text.d.ts.map +0 -1
  108. package/dist/src/booker/components/section.d.ts +0 -17
  109. package/dist/src/booker/components/section.d.ts.map +0 -1
  110. package/dist/src/booker/components/slot-selection-modal-header.d.ts +0 -14
  111. package/dist/src/booker/components/slot-selection-modal-header.d.ts.map +0 -1
  112. package/dist/src/booker/components/time-format-toggle.d.ts +0 -4
  113. package/dist/src/booker/components/time-format-toggle.d.ts.map +0 -1
  114. package/dist/src/booker/components/unavailable.d.ts +0 -3
  115. package/dist/src/booker/components/unavailable.d.ts.map +0 -1
  116. package/dist/src/booker/components/unpublished-entity.d.ts +0 -8
  117. package/dist/src/booker/components/unpublished-entity.d.ts.map +0 -1
  118. package/dist/src/booker/components/verify-code-dialog.d.ts +0 -15
  119. package/dist/src/booker/components/verify-code-dialog.d.ts.map +0 -1
  120. package/dist/src/booker/config.d.ts +0 -86
  121. package/dist/src/booker/config.d.ts.map +0 -1
  122. package/dist/src/booker/framer-features.d.ts +0 -3
  123. package/dist/src/booker/framer-features.d.ts.map +0 -1
  124. package/dist/src/booker/hooks/embed-stubs.d.ts +0 -20
  125. package/dist/src/booker/hooks/embed-stubs.d.ts.map +0 -1
  126. package/dist/src/booker/hooks/use-available-time-slots.d.ts +0 -23
  127. package/dist/src/booker/hooks/use-available-time-slots.d.ts.map +0 -1
  128. package/dist/src/booker/hooks/use-booker-layout.d.ts +0 -51
  129. package/dist/src/booker/hooks/use-booker-layout.d.ts.map +0 -1
  130. package/dist/src/booker/hooks/use-booker-time.d.ts +0 -7
  131. package/dist/src/booker/hooks/use-booker-time.d.ts.map +0 -1
  132. package/dist/src/booker/hooks/use-booking-form.d.ts +0 -65
  133. package/dist/src/booker/hooks/use-booking-form.d.ts.map +0 -1
  134. package/dist/src/booker/hooks/use-bookings-types.d.ts +0 -10
  135. package/dist/src/booker/hooks/use-bookings-types.d.ts.map +0 -1
  136. package/dist/src/booker/hooks/use-check-overlap-with-overlay.d.ts +0 -11
  137. package/dist/src/booker/hooks/use-check-overlap-with-overlay.d.ts.map +0 -1
  138. package/dist/src/booker/hooks/use-initialize-week-start.d.ts +0 -2
  139. package/dist/src/booker/hooks/use-initialize-week-start.d.ts.map +0 -1
  140. package/dist/src/booker/hooks/use-is-quick-availability-check-feature-enabled.d.ts +0 -15
  141. package/dist/src/booker/hooks/use-is-quick-availability-check-feature-enabled.d.ts.map +0 -1
  142. package/dist/src/booker/hooks/use-local-set.d.ts +0 -12
  143. package/dist/src/booker/hooks/use-local-set.d.ts.map +0 -1
  144. package/dist/src/booker/hooks/use-non-empty-schedule-days.d.ts +0 -3
  145. package/dist/src/booker/hooks/use-non-empty-schedule-days.d.ts.map +0 -1
  146. package/dist/src/booker/hooks/use-overlay-calendar.d.ts +0 -23
  147. package/dist/src/booker/hooks/use-overlay-calendar.d.ts.map +0 -1
  148. package/dist/src/booker/hooks/use-should-show-arrows.d.ts +0 -8
  149. package/dist/src/booker/hooks/use-should-show-arrows.d.ts.map +0 -1
  150. package/dist/src/booker/hooks/use-skip-confirm-step.d.ts +0 -21
  151. package/dist/src/booker/hooks/use-skip-confirm-step.d.ts.map +0 -1
  152. package/dist/src/booker/hooks/use-slots-for-date.d.ts +0 -21
  153. package/dist/src/booker/hooks/use-slots-for-date.d.ts.map +0 -1
  154. package/dist/src/booker/hooks/use-stable-timezone.d.ts +0 -5
  155. package/dist/src/booker/hooks/use-stable-timezone.d.ts.map +0 -1
  156. package/dist/src/booker/hooks/use-times-for-schedule.d.ts +0 -27
  157. package/dist/src/booker/hooks/use-times-for-schedule.d.ts.map +0 -1
  158. package/dist/src/booker/store.d.ts +0 -200
  159. package/dist/src/booker/store.d.ts.map +0 -1
  160. package/dist/src/booker/types.d.ts +0 -118
  161. package/dist/src/booker/types.d.ts.map +0 -1
  162. package/dist/src/booker/use-slot-reservation-id.d.ts +0 -2
  163. package/dist/src/booker/use-slot-reservation-id.d.ts.map +0 -1
  164. package/dist/src/booker/utils/are-different-valid-months.d.ts +0 -2
  165. package/dist/src/booker/utils/are-different-valid-months.d.ts.map +0 -1
  166. package/dist/src/booker/utils/dates.d.ts +0 -26
  167. package/dist/src/booker/utils/dates.d.ts.map +0 -1
  168. package/dist/src/booker/utils/get-booker-timezone.d.ts +0 -5
  169. package/dist/src/booker/utils/get-booker-timezone.d.ts.map +0 -1
  170. package/dist/src/booker/utils/get-booking-duration.d.ts +0 -6
  171. package/dist/src/booker/utils/get-booking-duration.d.ts.map +0 -1
  172. package/dist/src/booker/utils/get-prefetch-month-count.d.ts +0 -3
  173. package/dist/src/booker/utils/get-prefetch-month-count.d.ts.map +0 -1
  174. package/dist/src/booker/utils/is-booking-dry-run.d.ts +0 -3
  175. package/dist/src/booker/utils/is-booking-dry-run.d.ts.map +0 -1
  176. package/dist/src/booker/utils/is-month-change.d.ts +0 -2
  177. package/dist/src/booker/utils/is-month-change.d.ts.map +0 -1
  178. package/dist/src/booker/utils/is-month-view-prefetch-enabled.d.ts +0 -2
  179. package/dist/src/booker/utils/is-month-view-prefetch-enabled.d.ts.map +0 -1
  180. package/dist/src/booker/utils/is-prefetch-next-month-enabled.d.ts +0 -2
  181. package/dist/src/booker/utils/is-prefetch-next-month-enabled.d.ts.map +0 -1
  182. package/dist/src/booker/utils/is-timeslot-available.d.ts +0 -19
  183. package/dist/src/booker/utils/is-timeslot-available.d.ts.map +0 -1
  184. package/dist/src/booker/utils/layout.d.ts +0 -2
  185. package/dist/src/booker/utils/layout.d.ts.map +0 -1
  186. package/dist/src/booker-embed/booker-embed.d.ts +0 -31
  187. package/dist/src/booker-embed/booker-embed.d.ts.map +0 -1
  188. package/dist/src/booker-embed/index.d.ts +0 -2
  189. package/dist/src/booker-embed/index.d.ts.map +0 -1
  190. package/dist/src/booker-embed/use-get-routing-form-url-props.d.ts +0 -29
  191. package/dist/src/booker-embed/use-get-routing-form-url-props.d.ts.map +0 -1
  192. package/dist/src/cal-provider/base-cal-provider.d.ts +0 -24
  193. package/dist/src/cal-provider/base-cal-provider.d.ts.map +0 -1
  194. package/dist/src/cal-provider/cal-o-auth-provider.d.ts +0 -19
  195. package/dist/src/cal-provider/cal-o-auth-provider.d.ts.map +0 -1
  196. package/dist/src/cal-provider/cal-provider.d.ts +0 -22
  197. package/dist/src/cal-provider/cal-provider.d.ts.map +0 -1
  198. package/dist/src/cal-provider/index.d.ts +0 -3
  199. package/dist/src/cal-provider/index.d.ts.map +0 -1
  200. package/dist/src/cal-provider/languages.d.ts +0 -55
  201. package/dist/src/cal-provider/languages.d.ts.map +0 -1
  202. package/dist/src/calendar-settings/index.d.ts +0 -2
  203. package/dist/src/calendar-settings/index.d.ts.map +0 -1
  204. package/dist/src/calendar-settings/wrappers/calendar-settings-platform-wrapper.d.ts +0 -17
  205. package/dist/src/calendar-settings/wrappers/calendar-settings-platform-wrapper.d.ts.map +0 -1
  206. package/dist/src/calendar-view/calendar-view-component.d.ts +0 -2
  207. package/dist/src/calendar-view/calendar-view-component.d.ts.map +0 -1
  208. package/dist/src/calendar-view/components/calendar.d.ts +0 -2
  209. package/dist/src/calendar-view/components/calendar.d.ts.map +0 -1
  210. package/dist/src/calendar-view/components/date-picker.d.ts +0 -82
  211. package/dist/src/calendar-view/components/date-picker.d.ts.map +0 -1
  212. package/dist/src/calendar-view/components/large-calendar.d.ts +0 -19
  213. package/dist/src/calendar-view/components/large-calendar.d.ts.map +0 -1
  214. package/dist/src/calendar-view/components/no-availability-dialog.d.ts +0 -19
  215. package/dist/src/calendar-view/components/no-availability-dialog.d.ts.map +0 -1
  216. package/dist/src/calendar-view/event-type-calendar-view-component.d.ts +0 -7
  217. package/dist/src/calendar-view/event-type-calendar-view-component.d.ts.map +0 -1
  218. package/dist/src/calendar-view/index.d.ts +0 -2
  219. package/dist/src/calendar-view/index.d.ts.map +0 -1
  220. package/dist/src/calendar-view/scheduler/components/calendar.d.ts +0 -4
  221. package/dist/src/calendar-view/scheduler/components/calendar.d.ts.map +0 -1
  222. package/dist/src/calendar-view/scheduler/components/current-time/index.d.ts +0 -6
  223. package/dist/src/calendar-view/scheduler/components/current-time/index.d.ts.map +0 -1
  224. package/dist/src/calendar-view/scheduler/components/date-values/index.d.ts +0 -12
  225. package/dist/src/calendar-view/scheduler/components/date-values/index.d.ts.map +0 -1
  226. package/dist/src/calendar-view/scheduler/components/default-out-of-office-slot.d.ts +0 -3
  227. package/dist/src/calendar-view/scheduler/components/default-out-of-office-slot.d.ts.map +0 -1
  228. package/dist/src/calendar-view/scheduler/components/event/all-day-events.d.ts +0 -108
  229. package/dist/src/calendar-view/scheduler/components/event/all-day-events.d.ts.map +0 -1
  230. package/dist/src/calendar-view/scheduler/components/event/empty.d.ts +0 -18
  231. package/dist/src/calendar-view/scheduler/components/event/empty.d.ts.map +0 -1
  232. package/dist/src/calendar-view/scheduler/components/event/event-list.d.ts +0 -7
  233. package/dist/src/calendar-view/scheduler/components/event/event-list.d.ts.map +0 -1
  234. package/dist/src/calendar-view/scheduler/components/event/event.d.ts +0 -14
  235. package/dist/src/calendar-view/scheduler/components/event/event.d.ts.map +0 -1
  236. package/dist/src/calendar-view/scheduler/components/event/index.d.ts +0 -5
  237. package/dist/src/calendar-view/scheduler/components/event/index.d.ts.map +0 -1
  238. package/dist/src/calendar-view/scheduler/components/grid/index.d.ts +0 -10
  239. package/dist/src/calendar-view/scheduler/components/grid/index.d.ts.map +0 -1
  240. package/dist/src/calendar-view/scheduler/components/heading/index.d.ts +0 -2
  241. package/dist/src/calendar-view/scheduler/components/heading/index.d.ts.map +0 -1
  242. package/dist/src/calendar-view/scheduler/components/heading/scheduler-heading.d.ts +0 -2
  243. package/dist/src/calendar-view/scheduler/components/heading/scheduler-heading.d.ts.map +0 -1
  244. package/dist/src/calendar-view/scheduler/components/horizontal-lines/index.d.ts +0 -9
  245. package/dist/src/calendar-view/scheduler/components/horizontal-lines/index.d.ts.map +0 -1
  246. package/dist/src/calendar-view/scheduler/components/spinner/spinner.d.ts +0 -4
  247. package/dist/src/calendar-view/scheduler/components/spinner/spinner.d.ts.map +0 -1
  248. package/dist/src/calendar-view/scheduler/components/vertical-lines/index.d.ts +0 -7
  249. package/dist/src/calendar-view/scheduler/components/vertical-lines/index.d.ts.map +0 -1
  250. package/dist/src/calendar-view/scheduler/state/store.d.ts +0 -7
  251. package/dist/src/calendar-view/scheduler/state/store.d.ts.map +0 -1
  252. package/dist/src/calendar-view/scheduler/types/common.d.ts +0 -2
  253. package/dist/src/calendar-view/scheduler/types/common.d.ts.map +0 -1
  254. package/dist/src/calendar-view/scheduler/types/events.d.ts +0 -20
  255. package/dist/src/calendar-view/scheduler/types/events.d.ts.map +0 -1
  256. package/dist/src/calendar-view/scheduler/types/state.d.ts +0 -93
  257. package/dist/src/calendar-view/scheduler/types/state.d.ts.map +0 -1
  258. package/dist/src/calendar-view/scheduler/utils/index.d.ts +0 -20
  259. package/dist/src/calendar-view/scheduler/utils/index.d.ts.map +0 -1
  260. package/dist/src/calendar-view/scheduler/utils/overlap.d.ts +0 -20
  261. package/dist/src/calendar-view/scheduler/utils/overlap.d.ts.map +0 -1
  262. package/dist/src/calendar-view/wrappers/calendar-view-platform-wrapper.d.ts +0 -22
  263. package/dist/src/calendar-view/wrappers/calendar-view-platform-wrapper.d.ts.map +0 -1
  264. package/dist/src/components/atoms-wrapper.d.ts +0 -6
  265. package/dist/src/components/atoms-wrapper.d.ts.map +0 -1
  266. package/dist/src/components/ui/address-input.d.ts +0 -11
  267. package/dist/src/components/ui/address-input.d.ts.map +0 -1
  268. package/dist/src/components/ui/alert.d.ts +0 -16
  269. package/dist/src/components/ui/alert.d.ts.map +0 -1
  270. package/dist/src/components/ui/app-list-card.d.ts +0 -30
  271. package/dist/src/components/ui/app-list-card.d.ts.map +0 -1
  272. package/dist/src/components/ui/avatar-group.d.ts +0 -14
  273. package/dist/src/components/ui/avatar-group.d.ts.map +0 -1
  274. package/dist/src/components/ui/avatar.d.ts +0 -18
  275. package/dist/src/components/ui/avatar.d.ts.map +0 -1
  276. package/dist/src/components/ui/badge.d.ts +0 -553
  277. package/dist/src/components/ui/badge.d.ts.map +0 -1
  278. package/dist/src/components/ui/button-group.d.ts +0 -9
  279. package/dist/src/components/ui/button-group.d.ts.map +0 -1
  280. package/dist/src/components/ui/button.d.ts +0 -37
  281. package/dist/src/components/ui/button.d.ts.map +0 -1
  282. package/dist/src/components/ui/calendar-switch.d.ts +0 -22
  283. package/dist/src/components/ui/calendar-switch.d.ts.map +0 -1
  284. package/dist/src/components/ui/checkbox.d.ts +0 -15
  285. package/dist/src/components/ui/checkbox.d.ts.map +0 -1
  286. package/dist/src/components/ui/checked-team-select.d.ts +0 -43
  287. package/dist/src/components/ui/checked-team-select.d.ts.map +0 -1
  288. package/dist/src/components/ui/confirmation-dialog-content.d.ts +0 -20
  289. package/dist/src/components/ui/confirmation-dialog-content.d.ts.map +0 -1
  290. package/dist/src/components/ui/controlled-dialog.d.ts +0 -17
  291. package/dist/src/components/ui/controlled-dialog.d.ts.map +0 -1
  292. package/dist/src/components/ui/dialog.d.ts +0 -38
  293. package/dist/src/components/ui/dialog.d.ts.map +0 -1
  294. package/dist/src/components/ui/disconnect-calendar-integration.d.ts +0 -12
  295. package/dist/src/components/ui/disconnect-calendar-integration.d.ts.map +0 -1
  296. package/dist/src/components/ui/divider.d.ts +0 -3
  297. package/dist/src/components/ui/divider.d.ts.map +0 -1
  298. package/dist/src/components/ui/dropdown.d.ts +0 -40
  299. package/dist/src/components/ui/dropdown.d.ts.map +0 -1
  300. package/dist/src/components/ui/editable-heading.d.ts +0 -6
  301. package/dist/src/components/ui/editable-heading.d.ts.map +0 -1
  302. package/dist/src/components/ui/empty-screen.d.ts +0 -18
  303. package/dist/src/components/ui/empty-screen.d.ts.map +0 -1
  304. package/dist/src/components/ui/form.d.ts +0 -11
  305. package/dist/src/components/ui/form.d.ts.map +0 -1
  306. package/dist/src/components/ui/icon.d.ts +0 -42
  307. package/dist/src/components/ui/icon.d.ts.map +0 -1
  308. package/dist/src/components/ui/icons.d.ts +0 -21
  309. package/dist/src/components/ui/icons.d.ts.map +0 -1
  310. package/dist/src/components/ui/info-badge.d.ts +0 -4
  311. package/dist/src/components/ui/info-badge.d.ts.map +0 -1
  312. package/dist/src/components/ui/label.d.ts +0 -2
  313. package/dist/src/components/ui/label.d.ts.map +0 -1
  314. package/dist/src/components/ui/navigation.d.ts +0 -37
  315. package/dist/src/components/ui/navigation.d.ts.map +0 -1
  316. package/dist/src/components/ui/popover.d.ts +0 -17
  317. package/dist/src/components/ui/popover.d.ts.map +0 -1
  318. package/dist/src/components/ui/radio-area-group.d.ts +0 -20
  319. package/dist/src/components/ui/radio-area-group.d.ts.map +0 -1
  320. package/dist/src/components/ui/radio.d.ts +0 -24
  321. package/dist/src/components/ui/radio.d.ts.map +0 -1
  322. package/dist/src/components/ui/react-select-components.d.ts +0 -29
  323. package/dist/src/components/ui/react-select-components.d.ts.map +0 -1
  324. package/dist/src/components/ui/select.d.ts +0 -26
  325. package/dist/src/components/ui/select.d.ts.map +0 -1
  326. package/dist/src/components/ui/settings-header.d.ts +0 -21
  327. package/dist/src/components/ui/settings-header.d.ts.map +0 -1
  328. package/dist/src/components/ui/settings-toggle.d.ts +0 -23
  329. package/dist/src/components/ui/settings-toggle.d.ts.map +0 -1
  330. package/dist/src/components/ui/shell.d.ts +0 -31
  331. package/dist/src/components/ui/shell.d.ts.map +0 -1
  332. package/dist/src/components/ui/show-toast.d.ts +0 -13
  333. package/dist/src/components/ui/show-toast.d.ts.map +0 -1
  334. package/dist/src/components/ui/skeleton.d.ts +0 -31
  335. package/dist/src/components/ui/skeleton.d.ts.map +0 -1
  336. package/dist/src/components/ui/switch.d.ts +0 -5
  337. package/dist/src/components/ui/switch.d.ts.map +0 -1
  338. package/dist/src/components/ui/text-field.d.ts +0 -99
  339. package/dist/src/components/ui/text-field.d.ts.map +0 -1
  340. package/dist/src/components/ui/toast.d.ts +0 -13
  341. package/dist/src/components/ui/toast.d.ts.map +0 -1
  342. package/dist/src/components/ui/toaster.d.ts +0 -2
  343. package/dist/src/components/ui/toaster.d.ts.map +0 -1
  344. package/dist/src/components/ui/toggle-group.d.ts +0 -20
  345. package/dist/src/components/ui/toggle-group.d.ts.map +0 -1
  346. package/dist/src/components/ui/tooltip.d.ts +0 -29
  347. package/dist/src/components/ui/tooltip.d.ts.map +0 -1
  348. package/dist/src/components/ui/use-toast.d.ts +0 -45
  349. package/dist/src/components/ui/use-toast.d.ts.map +0 -1
  350. package/dist/src/components/ui/user-avatar-group-with-org.d.ts +0 -18
  351. package/dist/src/components/ui/user-avatar-group-with-org.d.ts.map +0 -1
  352. package/dist/src/connect/apple/apple-connect.d.ts +0 -4
  353. package/dist/src/connect/apple/apple-connect.d.ts.map +0 -1
  354. package/dist/src/connect/components/disconnect-integration-modal.d.ts +0 -19
  355. package/dist/src/connect/components/disconnect-integration-modal.d.ts.map +0 -1
  356. package/dist/src/connect/components/office365-account-dialog.d.ts +0 -12
  357. package/dist/src/connect/components/office365-account-dialog.d.ts.map +0 -1
  358. package/dist/src/connect/conferencing-apps/components/app-list.d.ts +0 -65
  359. package/dist/src/connect/conferencing-apps/components/app-list.d.ts.map +0 -1
  360. package/dist/src/connect/conferencing-apps/conferencing-apps-view-platform-wrapper.d.ts +0 -29
  361. package/dist/src/connect/conferencing-apps/conferencing-apps-view-platform-wrapper.d.ts.map +0 -1
  362. package/dist/src/connect/conferencing-apps/hooks/use-atom-bulk-update-event-types-to-default-location.d.ts +0 -10
  363. package/dist/src/connect/conferencing-apps/hooks/use-atom-bulk-update-event-types-to-default-location.d.ts.map +0 -1
  364. package/dist/src/connect/conferencing-apps/hooks/use-atom-get-event-types.d.ts +0 -10
  365. package/dist/src/connect/conferencing-apps/hooks/use-atom-get-event-types.d.ts.map +0 -1
  366. package/dist/src/connect/conferencing-apps/hooks/use-atoms-get-installed-conferencing-apps.d.ts +0 -4
  367. package/dist/src/connect/conferencing-apps/hooks/use-atoms-get-installed-conferencing-apps.d.ts.map +0 -1
  368. package/dist/src/connect/conferencing-apps/hooks/use-connect.d.ts +0 -22
  369. package/dist/src/connect/conferencing-apps/hooks/use-connect.d.ts.map +0 -1
  370. package/dist/src/connect/conferencing-apps/hooks/use-delete-credential.d.ts +0 -9
  371. package/dist/src/connect/conferencing-apps/hooks/use-delete-credential.d.ts.map +0 -1
  372. package/dist/src/connect/conferencing-apps/hooks/use-get-default-conferencing-app.d.ts +0 -6
  373. package/dist/src/connect/conferencing-apps/hooks/use-get-default-conferencing-app.d.ts.map +0 -1
  374. package/dist/src/connect/conferencing-apps/hooks/use-update-user-default-conferencing-app.d.ts +0 -9
  375. package/dist/src/connect/conferencing-apps/hooks/use-update-user-default-conferencing-app.d.ts.map +0 -1
  376. package/dist/src/connect/google/gcal-connect.d.ts +0 -4
  377. package/dist/src/connect/google/gcal-connect.d.ts.map +0 -1
  378. package/dist/src/connect/index.d.ts +0 -4
  379. package/dist/src/connect/index.d.ts.map +0 -1
  380. package/dist/src/connect/o-auth-connect.d.ts +0 -25
  381. package/dist/src/connect/o-auth-connect.d.ts.map +0 -1
  382. package/dist/src/connect/outlook/outlook-connect.d.ts +0 -4
  383. package/dist/src/connect/outlook/outlook-connect.d.ts.map +0 -1
  384. package/dist/src/connect/stripe/stripe-connect.d.ts +0 -22
  385. package/dist/src/connect/stripe/stripe-connect.d.ts.map +0 -1
  386. package/dist/src/constants/api.d.ts +0 -44
  387. package/dist/src/constants/api.d.ts.map +0 -1
  388. package/dist/src/constants/app.d.ts +0 -19
  389. package/dist/src/constants/app.d.ts.map +0 -1
  390. package/dist/src/constants/apps.d.ts +0 -32
  391. package/dist/src/constants/apps.d.ts.map +0 -1
  392. package/dist/src/constants/index.d.ts +0 -4
  393. package/dist/src/constants/index.d.ts.map +0 -1
  394. package/dist/src/constants/styles.d.ts +0 -2
  395. package/dist/src/constants/styles.d.ts.map +0 -1
  396. package/dist/src/contracts/api.d.ts +0 -27
  397. package/dist/src/contracts/api.d.ts.map +0 -1
  398. package/dist/src/contracts/apps.d.ts +0 -21
  399. package/dist/src/contracts/apps.d.ts.map +0 -1
  400. package/dist/src/contracts/booker.d.ts +0 -255
  401. package/dist/src/contracts/booker.d.ts.map +0 -1
  402. package/dist/src/contracts/bookings.d.ts +0 -154
  403. package/dist/src/contracts/bookings.d.ts.map +0 -1
  404. package/dist/src/contracts/calendars.d.ts +0 -82
  405. package/dist/src/contracts/calendars.d.ts.map +0 -1
  406. package/dist/src/contracts/event-types.d.ts +0 -225
  407. package/dist/src/contracts/event-types.d.ts.map +0 -1
  408. package/dist/src/contracts/index.d.ts +0 -13
  409. package/dist/src/contracts/index.d.ts.map +0 -1
  410. package/dist/src/contracts/oauth.d.ts +0 -2
  411. package/dist/src/contracts/oauth.d.ts.map +0 -1
  412. package/dist/src/contracts/organizations.d.ts +0 -15
  413. package/dist/src/contracts/organizations.d.ts.map +0 -1
  414. package/dist/src/contracts/schedules.d.ts +0 -92
  415. package/dist/src/contracts/schedules.d.ts.map +0 -1
  416. package/dist/src/contracts/slots.d.ts +0 -57
  417. package/dist/src/contracts/slots.d.ts.map +0 -1
  418. package/dist/src/contracts/teams.d.ts +0 -31
  419. package/dist/src/contracts/teams.d.ts.map +0 -1
  420. package/dist/src/contracts/user.d.ts +0 -25
  421. package/dist/src/contracts/user.d.ts.map +0 -1
  422. package/dist/src/create-schedule/create-schedule-form.d.ts +0 -18
  423. package/dist/src/create-schedule/create-schedule-form.d.ts.map +0 -1
  424. package/dist/src/create-schedule/index.d.ts +0 -2
  425. package/dist/src/create-schedule/index.d.ts.map +0 -1
  426. package/dist/src/create-schedule/wrappers/create-schedule-platform-wrapper.d.ts +0 -15
  427. package/dist/src/create-schedule/wrappers/create-schedule-platform-wrapper.d.ts.map +0 -1
  428. package/dist/src/destination-calendar/components/destination-calendar-selector.d.ts +0 -10
  429. package/dist/src/destination-calendar/components/destination-calendar-selector.d.ts.map +0 -1
  430. package/dist/src/destination-calendar/destination-calendar-selector.d.ts +0 -17
  431. package/dist/src/destination-calendar/destination-calendar-selector.d.ts.map +0 -1
  432. package/dist/src/destination-calendar/destination-calendar.d.ts +0 -21
  433. package/dist/src/destination-calendar/destination-calendar.d.ts.map +0 -1
  434. package/dist/src/destination-calendar/destination-reminder-selector.d.ts +0 -9
  435. package/dist/src/destination-calendar/destination-reminder-selector.d.ts.map +0 -1
  436. package/dist/src/destination-calendar/index.d.ts +0 -2
  437. package/dist/src/destination-calendar/index.d.ts.map +0 -1
  438. package/dist/src/destination-calendar/wrappers/destination-calendar-settings-platform-wrapper.d.ts +0 -8
  439. package/dist/src/destination-calendar/wrappers/destination-calendar-settings-platform-wrapper.d.ts.map +0 -1
  440. package/dist/src/event-types/components/assign-all-team-members.d.ts +0 -14
  441. package/dist/src/event-types/components/assign-all-team-members.d.ts.map +0 -1
  442. package/dist/src/event-types/components/bulk-edit-default-for-events-modal.d.ts +0 -29
  443. package/dist/src/event-types/components/bulk-edit-default-for-events-modal.d.ts.map +0 -1
  444. package/dist/src/event-types/components/children-event-type-select.d.ts +0 -34
  445. package/dist/src/event-types/components/children-event-type-select.d.ts.map +0 -1
  446. package/dist/src/event-types/components/create-event-type-form.d.ts +0 -29
  447. package/dist/src/event-types/components/create-event-type-form.d.ts.map +0 -1
  448. package/dist/src/event-types/components/event-team-assignment-tab.d.ts +0 -2
  449. package/dist/src/event-types/components/event-team-assignment-tab.d.ts.map +0 -1
  450. package/dist/src/event-types/components/event-type-list-item.d.ts +0 -12
  451. package/dist/src/event-types/components/event-type-list-item.d.ts.map +0 -1
  452. package/dist/src/event-types/components/host-edit-dialogs.d.ts +0 -40
  453. package/dist/src/event-types/components/host-edit-dialogs.d.ts.map +0 -1
  454. package/dist/src/event-types/components/learn-more-link.d.ts +0 -15
  455. package/dist/src/event-types/components/learn-more-link.d.ts.map +0 -1
  456. package/dist/src/event-types/components/managed-event-dialog.d.ts +0 -13
  457. package/dist/src/event-types/components/managed-event-dialog.d.ts.map +0 -1
  458. package/dist/src/event-types/components/recurring-event-controller.d.ts +0 -34
  459. package/dist/src/event-types/components/recurring-event-controller.d.ts.map +0 -1
  460. package/dist/src/event-types/components/tabs/event-recurring-tab.d.ts +0 -14
  461. package/dist/src/event-types/components/tabs/event-recurring-tab.d.ts.map +0 -1
  462. package/dist/src/event-types/components/team-assignment/assign-all-managed-warning-dialog.d.ts +0 -9
  463. package/dist/src/event-types/components/team-assignment/assign-all-managed-warning-dialog.d.ts.map +0 -1
  464. package/dist/src/event-types/components/team-assignment/children-event-types-list.d.ts +0 -11
  465. package/dist/src/event-types/components/team-assignment/children-event-types-list.d.ts.map +0 -1
  466. package/dist/src/event-types/components/team-assignment/children-event-types.d.ts +0 -18
  467. package/dist/src/event-types/components/team-assignment/children-event-types.d.ts.map +0 -1
  468. package/dist/src/event-types/components/team-assignment/event-team-assignment-tab.d.ts +0 -58
  469. package/dist/src/event-types/components/team-assignment/event-team-assignment-tab.d.ts.map +0 -1
  470. package/dist/src/event-types/components/team-assignment/fixed-hosts.d.ts +0 -20
  471. package/dist/src/event-types/components/team-assignment/fixed-hosts.d.ts.map +0 -1
  472. package/dist/src/event-types/components/team-assignment/hosts.d.ts +0 -19
  473. package/dist/src/event-types/components/team-assignment/hosts.d.ts.map +0 -1
  474. package/dist/src/event-types/components/team-assignment/round-robin-hosts.d.ts +0 -26
  475. package/dist/src/event-types/components/team-assignment/round-robin-hosts.d.ts.map +0 -1
  476. package/dist/src/event-types/components/team-event-type-form.d.ts +0 -27
  477. package/dist/src/event-types/components/team-event-type-form.d.ts.map +0 -1
  478. package/dist/src/event-types/components/weight-description.d.ts +0 -6
  479. package/dist/src/event-types/components/weight-description.d.ts.map +0 -1
  480. package/dist/src/event-types/hooks/use-add-verified-email.d.ts +0 -15
  481. package/dist/src/event-types/hooks/use-add-verified-email.d.ts.map +0 -1
  482. package/dist/src/event-types/hooks/use-apps-data-stub.d.ts +0 -15
  483. package/dist/src/event-types/hooks/use-apps-data-stub.d.ts.map +0 -1
  484. package/dist/src/event-types/hooks/use-assign-all-managed-warning.d.ts +0 -17
  485. package/dist/src/event-types/hooks/use-assign-all-managed-warning.d.ts.map +0 -1
  486. package/dist/src/event-types/hooks/use-atom-event-type-app-integration.d.ts +0 -21
  487. package/dist/src/event-types/hooks/use-atom-event-type-app-integration.d.ts.map +0 -1
  488. package/dist/src/event-types/hooks/use-atom-event-type-by-id.d.ts +0 -4
  489. package/dist/src/event-types/hooks/use-atom-event-type-by-id.d.ts.map +0 -1
  490. package/dist/src/event-types/hooks/use-atom-event-type-payment-info.d.ts +0 -7
  491. package/dist/src/event-types/hooks/use-atom-event-type-payment-info.d.ts.map +0 -1
  492. package/dist/src/event-types/hooks/use-atom-get-all-event-types.d.ts +0 -9
  493. package/dist/src/event-types/hooks/use-atom-get-all-event-types.d.ts.map +0 -1
  494. package/dist/src/event-types/hooks/use-atom-host-schedules.d.ts +0 -14
  495. package/dist/src/event-types/hooks/use-atom-host-schedules.d.ts.map +0 -1
  496. package/dist/src/event-types/hooks/use-atom-update-event-type.d.ts +0 -10
  497. package/dist/src/event-types/hooks/use-atom-update-event-type.d.ts.map +0 -1
  498. package/dist/src/event-types/hooks/use-event-type-form.d.ts +0 -15
  499. package/dist/src/event-types/hooks/use-event-type-form.d.ts.map +0 -1
  500. package/dist/src/event-types/hooks/use-get-verified-emails.d.ts +0 -3
  501. package/dist/src/event-types/hooks/use-get-verified-emails.d.ts.map +0 -1
  502. package/dist/src/event-types/hooks/use-handle-route-change.d.ts +0 -15
  503. package/dist/src/event-types/hooks/use-handle-route-change.d.ts.map +0 -1
  504. package/dist/src/event-types/hooks/use-locked-fields-manager-stub.d.ts +0 -29
  505. package/dist/src/event-types/hooks/use-locked-fields-manager-stub.d.ts.map +0 -1
  506. package/dist/src/event-types/hooks/use-platform-tabs-navigations.d.ts +0 -16
  507. package/dist/src/event-types/hooks/use-platform-tabs-navigations.d.ts.map +0 -1
  508. package/dist/src/event-types/hooks/use-tabs-navigations.d.ts +0 -40
  509. package/dist/src/event-types/hooks/use-tabs-navigations.d.ts.map +0 -1
  510. package/dist/src/event-types/hooks/use-team-event-assignment.d.ts +0 -65
  511. package/dist/src/event-types/hooks/use-team-event-assignment.d.ts.map +0 -1
  512. package/dist/src/event-types/hooks/use-team-members-with-segment-platform.d.ts +0 -36
  513. package/dist/src/event-types/hooks/use-team-members-with-segment-platform.d.ts.map +0 -1
  514. package/dist/src/event-types/index.d.ts +0 -2
  515. package/dist/src/event-types/index.d.ts.map +0 -1
  516. package/dist/src/event-types/lib/format-event-type-duration.d.ts +0 -13
  517. package/dist/src/event-types/lib/format-event-type-duration.d.ts.map +0 -1
  518. package/dist/src/event-types/payments/payment-form.d.ts +0 -9
  519. package/dist/src/event-types/payments/payment-form.d.ts.map +0 -1
  520. package/dist/src/event-types/payments/payment-page-types.d.ts +0 -48
  521. package/dist/src/event-types/payments/payment-page-types.d.ts.map +0 -1
  522. package/dist/src/event-types/payments/payment.d.ts +0 -39
  523. package/dist/src/event-types/payments/payment.d.ts.map +0 -1
  524. package/dist/src/event-types/payments/stripe-payment-form.d.ts +0 -9
  525. package/dist/src/event-types/payments/stripe-payment-form.d.ts.map +0 -1
  526. package/dist/src/event-types/types.d.ts +0 -16
  527. package/dist/src/event-types/types.d.ts.map +0 -1
  528. package/dist/src/event-types/wrappers/create-event-type-platform-wrapper.d.ts +0 -20
  529. package/dist/src/event-types/wrappers/create-event-type-platform-wrapper.d.ts.map +0 -1
  530. package/dist/src/event-types/wrappers/event-recurring-tab-platform-wrapper.d.ts +0 -4
  531. package/dist/src/event-types/wrappers/event-recurring-tab-platform-wrapper.d.ts.map +0 -1
  532. package/dist/src/event-types/wrappers/event-team-assignment-tab-platform-wrapper.d.ts +0 -4
  533. package/dist/src/event-types/wrappers/event-team-assignment-tab-platform-wrapper.d.ts.map +0 -1
  534. package/dist/src/event-types/wrappers/event-type-platform-wrapper.d.ts +0 -28
  535. package/dist/src/event-types/wrappers/event-type-platform-wrapper.d.ts.map +0 -1
  536. package/dist/src/event-types/wrappers/list-event-types-platform-wrapper.d.ts +0 -6
  537. package/dist/src/event-types/wrappers/list-event-types-platform-wrapper.d.ts.map +0 -1
  538. package/dist/src/event-types/wrappers/types.d.ts +0 -4
  539. package/dist/src/event-types/wrappers/types.d.ts.map +0 -1
  540. package/dist/src/hooks/bookings/use-booking.d.ts +0 -2
  541. package/dist/src/hooks/bookings/use-booking.d.ts.map +0 -1
  542. package/dist/src/hooks/bookings/use-bookings.d.ts +0 -6
  543. package/dist/src/hooks/bookings/use-bookings.d.ts.map +0 -1
  544. package/dist/src/hooks/bookings/use-cancel-booking.d.ts +0 -23
  545. package/dist/src/hooks/bookings/use-cancel-booking.d.ts.map +0 -1
  546. package/dist/src/hooks/bookings/use-create-booking.d.ts +0 -11
  547. package/dist/src/hooks/bookings/use-create-booking.d.ts.map +0 -1
  548. package/dist/src/hooks/bookings/use-create-instant-booking.d.ts +0 -10
  549. package/dist/src/hooks/bookings/use-create-instant-booking.d.ts.map +0 -1
  550. package/dist/src/hooks/bookings/use-create-recurring-booking.d.ts +0 -10
  551. package/dist/src/hooks/bookings/use-create-recurring-booking.d.ts.map +0 -1
  552. package/dist/src/hooks/bookings/use-get-booking-for-reschedule.d.ts +0 -10
  553. package/dist/src/hooks/bookings/use-get-booking-for-reschedule.d.ts.map +0 -1
  554. package/dist/src/hooks/bookings/use-handle-book-event.d.ts +0 -26
  555. package/dist/src/hooks/bookings/use-handle-book-event.d.ts.map +0 -1
  556. package/dist/src/hooks/calendars/use-add-selected-calendar.d.ts +0 -21
  557. package/dist/src/hooks/calendars/use-add-selected-calendar.d.ts.map +0 -1
  558. package/dist/src/hooks/calendars/use-delete-calendar-credentials.d.ts +0 -22
  559. package/dist/src/hooks/calendars/use-delete-calendar-credentials.d.ts.map +0 -1
  560. package/dist/src/hooks/calendars/use-remove-selected-calendar.d.ts +0 -21
  561. package/dist/src/hooks/calendars/use-remove-selected-calendar.d.ts.map +0 -1
  562. package/dist/src/hooks/calendars/use-update-destination-calendars.d.ts +0 -21
  563. package/dist/src/hooks/calendars/use-update-destination-calendars.d.ts.map +0 -1
  564. package/dist/src/hooks/connect/use-check.d.ts +0 -21
  565. package/dist/src/hooks/connect/use-check.d.ts.map +0 -1
  566. package/dist/src/hooks/connect/use-connect.d.ts +0 -18
  567. package/dist/src/hooks/connect/use-connect.d.ts.map +0 -1
  568. package/dist/src/hooks/event-types/private/use-create-event-type-form.d.ts +0 -8
  569. package/dist/src/hooks/event-types/private/use-create-event-type-form.d.ts.map +0 -1
  570. package/dist/src/hooks/event-types/private/use-create-event-type.d.ts +0 -9
  571. package/dist/src/hooks/event-types/private/use-create-event-type.d.ts.map +0 -1
  572. package/dist/src/hooks/event-types/private/use-create-team-event-type.d.ts +0 -13
  573. package/dist/src/hooks/event-types/private/use-create-team-event-type.d.ts.map +0 -1
  574. package/dist/src/hooks/event-types/private/use-delete-event-type-by-id.d.ts +0 -9
  575. package/dist/src/hooks/event-types/private/use-delete-event-type-by-id.d.ts.map +0 -1
  576. package/dist/src/hooks/event-types/private/use-delete-team-event-type-by-id.d.ts +0 -15
  577. package/dist/src/hooks/event-types/private/use-delete-team-event-type-by-id.d.ts.map +0 -1
  578. package/dist/src/hooks/event-types/private/use-event-type-by-id.d.ts +0 -4
  579. package/dist/src/hooks/event-types/private/use-event-type-by-id.d.ts.map +0 -1
  580. package/dist/src/hooks/event-types/public/use-atom-get-public-event.d.ts +0 -13
  581. package/dist/src/hooks/event-types/public/use-atom-get-public-event.d.ts.map +0 -1
  582. package/dist/src/hooks/event-types/public/use-event-type.d.ts +0 -5
  583. package/dist/src/hooks/event-types/public/use-event-type.d.ts.map +0 -1
  584. package/dist/src/hooks/event-types/public/use-event-types.d.ts +0 -4
  585. package/dist/src/hooks/event-types/public/use-event-types.d.ts.map +0 -1
  586. package/dist/src/hooks/event-types/public/use-team-event-type.d.ts +0 -4
  587. package/dist/src/hooks/event-types/public/use-team-event-type.d.ts.map +0 -1
  588. package/dist/src/hooks/event-types/public/use-team-event-types.d.ts +0 -4
  589. package/dist/src/hooks/event-types/public/use-team-event-types.d.ts.map +0 -1
  590. package/dist/src/hooks/organizations/bookings/use-organization-bookings.d.ts +0 -4
  591. package/dist/src/hooks/organizations/bookings/use-organization-bookings.d.ts.map +0 -1
  592. package/dist/src/hooks/organizations/bookings/use-organization-user-bookings.d.ts +0 -4
  593. package/dist/src/hooks/organizations/bookings/use-organization-user-bookings.d.ts.map +0 -1
  594. package/dist/src/hooks/schedules/types.d.ts +0 -37
  595. package/dist/src/hooks/schedules/types.d.ts.map +0 -1
  596. package/dist/src/hooks/schedules/use-atom-create-schedule.d.ts +0 -9
  597. package/dist/src/hooks/schedules/use-atom-create-schedule.d.ts.map +0 -1
  598. package/dist/src/hooks/schedules/use-atom-duplicate-schedule.d.ts +0 -11
  599. package/dist/src/hooks/schedules/use-atom-duplicate-schedule.d.ts.map +0 -1
  600. package/dist/src/hooks/schedules/use-atom-get-all-schedules.d.ts +0 -9
  601. package/dist/src/hooks/schedules/use-atom-get-all-schedules.d.ts.map +0 -1
  602. package/dist/src/hooks/schedules/use-atom-schedule.d.ts +0 -8
  603. package/dist/src/hooks/schedules/use-atom-schedule.d.ts.map +0 -1
  604. package/dist/src/hooks/schedules/use-atom-update-schedule.d.ts +0 -11
  605. package/dist/src/hooks/schedules/use-atom-update-schedule.d.ts.map +0 -1
  606. package/dist/src/hooks/schedules/use-delete-schedule.d.ts +0 -11
  607. package/dist/src/hooks/schedules/use-delete-schedule.d.ts.map +0 -1
  608. package/dist/src/hooks/schedules/use-ensure-default-schedule.d.ts +0 -3
  609. package/dist/src/hooks/schedules/use-ensure-default-schedule.d.ts.map +0 -1
  610. package/dist/src/hooks/schedules/use-schedule.d.ts +0 -7
  611. package/dist/src/hooks/schedules/use-schedule.d.ts.map +0 -1
  612. package/dist/src/hooks/schedules/use-schedules.d.ts +0 -7
  613. package/dist/src/hooks/schedules/use-schedules.d.ts.map +0 -1
  614. package/dist/src/hooks/schedules/use-update-schedule.d.ts +0 -10
  615. package/dist/src/hooks/schedules/use-update-schedule.d.ts.map +0 -1
  616. package/dist/src/hooks/stripe/use-check.d.ts +0 -22
  617. package/dist/src/hooks/stripe/use-check.d.ts.map +0 -1
  618. package/dist/src/hooks/stripe/use-connect.d.ts +0 -5
  619. package/dist/src/hooks/stripe/use-connect.d.ts.map +0 -1
  620. package/dist/src/hooks/teams/use-team-members.d.ts +0 -10
  621. package/dist/src/hooks/teams/use-team-members.d.ts.map +0 -1
  622. package/dist/src/hooks/teams/use-teams.d.ts +0 -7
  623. package/dist/src/hooks/teams/use-teams.d.ts.map +0 -1
  624. package/dist/src/hooks/use-api-keys.d.ts +0 -9
  625. package/dist/src/hooks/use-api-keys.d.ts.map +0 -1
  626. package/dist/src/hooks/use-atoms-context.d.ts +0 -32
  627. package/dist/src/hooks/use-atoms-context.d.ts.map +0 -1
  628. package/dist/src/hooks/use-atoms-locale.d.ts +0 -3
  629. package/dist/src/hooks/use-atoms-locale.d.ts.map +0 -1
  630. package/dist/src/hooks/use-available-slots.d.ts +0 -7
  631. package/dist/src/hooks/use-available-slots.d.ts.map +0 -1
  632. package/dist/src/hooks/use-calendars-busy-times.d.ts +0 -12
  633. package/dist/src/hooks/use-calendars-busy-times.d.ts.map +0 -1
  634. package/dist/src/hooks/use-connected-calendars.d.ts +0 -6
  635. package/dist/src/hooks/use-connected-calendars.d.ts.map +0 -1
  636. package/dist/src/hooks/use-delete-selected-slot.d.ts +0 -8
  637. package/dist/src/hooks/use-delete-selected-slot.d.ts.map +0 -1
  638. package/dist/src/hooks/use-event-types-list.d.ts +0 -18
  639. package/dist/src/hooks/use-event-types-list.d.ts.map +0 -1
  640. package/dist/src/hooks/use-get-city-timezones.d.ts +0 -10
  641. package/dist/src/hooks/use-get-city-timezones.d.ts.map +0 -1
  642. package/dist/src/hooks/use-is-platform-booker-embed.d.ts +0 -2
  643. package/dist/src/hooks/use-is-platform-booker-embed.d.ts.map +0 -1
  644. package/dist/src/hooks/use-is-platform.d.ts +0 -2
  645. package/dist/src/hooks/use-is-platform.d.ts.map +0 -1
  646. package/dist/src/hooks/use-me.d.ts +0 -9
  647. package/dist/src/hooks/use-me.d.ts.map +0 -1
  648. package/dist/src/hooks/use-o-auth-client.d.ts +0 -18
  649. package/dist/src/hooks/use-o-auth-client.d.ts.map +0 -1
  650. package/dist/src/hooks/use-o-auth-flow.d.ts +0 -15
  651. package/dist/src/hooks/use-o-auth-flow.d.ts.map +0 -1
  652. package/dist/src/hooks/use-reserve-slot.d.ts +0 -8
  653. package/dist/src/hooks/use-reserve-slot.d.ts.map +0 -1
  654. package/dist/src/hooks/use-schedule-by-event-slug.d.ts +0 -16
  655. package/dist/src/hooks/use-schedule-by-event-slug.d.ts.map +0 -1
  656. package/dist/src/hooks/use-slots.d.ts +0 -24
  657. package/dist/src/hooks/use-slots.d.ts.map +0 -1
  658. package/dist/src/hooks/use-timezone.d.ts +0 -2
  659. package/dist/src/hooks/use-timezone.d.ts.map +0 -1
  660. package/dist/src/hooks/use-update-user-timezone.d.ts +0 -7
  661. package/dist/src/hooks/use-update-user-timezone.d.ts.map +0 -1
  662. package/dist/src/hooks/use-verify-code.d.ts +0 -18
  663. package/dist/src/hooks/use-verify-code.d.ts.map +0 -1
  664. package/dist/src/hooks/use-verify-email.d.ts +0 -20
  665. package/dist/src/hooks/use-verify-email.d.ts.map +0 -1
  666. package/dist/src/index.d.ts +0 -132
  667. package/dist/src/index.d.ts.map +0 -1
  668. package/dist/src/lib/append-client-id-to-email.d.ts +0 -2
  669. package/dist/src/lib/append-client-id-to-email.d.ts.map +0 -1
  670. package/dist/src/lib/get-placeholder-content.d.ts +0 -16
  671. package/dist/src/lib/get-placeholder-content.d.ts.map +0 -1
  672. package/dist/src/lib/get-query-param.d.ts +0 -3
  673. package/dist/src/lib/get-query-param.d.ts.map +0 -1
  674. package/dist/src/lib/get-utm-tracking-parameters.d.ts +0 -5
  675. package/dist/src/lib/get-utm-tracking-parameters.d.ts.map +0 -1
  676. package/dist/src/lib/http.d.ts +0 -24
  677. package/dist/src/lib/http.d.ts.map +0 -1
  678. package/dist/src/lib/markdown-to-safe-html-client.d.ts +0 -8
  679. package/dist/src/lib/markdown-to-safe-html-client.d.ts.map +0 -1
  680. package/dist/src/lib/markdown-to-safe-html.d.ts +0 -2
  681. package/dist/src/lib/markdown-to-safe-html.d.ts.map +0 -1
  682. package/dist/src/lib/set-query-param.d.ts +0 -3
  683. package/dist/src/lib/set-query-param.d.ts.map +0 -1
  684. package/dist/src/lib/time-zones.d.ts +0 -15
  685. package/dist/src/lib/time-zones.d.ts.map +0 -1
  686. package/dist/src/lib/use-locale.d.ts +0 -9
  687. package/dist/src/lib/use-locale.d.ts.map +0 -1
  688. package/dist/src/lib/utils.d.ts +0 -3
  689. package/dist/src/lib/utils.d.ts.map +0 -1
  690. package/dist/src/list-schedules/components/schedule-list-item.d.ts +0 -39
  691. package/dist/src/list-schedules/components/schedule-list-item.d.ts.map +0 -1
  692. package/dist/src/list-schedules/index.d.ts +0 -2
  693. package/dist/src/list-schedules/index.d.ts.map +0 -1
  694. package/dist/src/list-schedules/wrappers/list-schedules-platform-wrapper.d.ts +0 -6
  695. package/dist/src/list-schedules/wrappers/list-schedules-platform-wrapper.d.ts.map +0 -1
  696. package/dist/src/onboarding/continue-with-calcom.d.ts +0 -3
  697. package/dist/src/onboarding/continue-with-calcom.d.ts.map +0 -1
  698. package/dist/src/onboarding/export.d.ts +0 -3
  699. package/dist/src/onboarding/export.d.ts.map +0 -1
  700. package/dist/src/onboarding/onboarding-embed.d.ts +0 -3
  701. package/dist/src/onboarding/onboarding-embed.d.ts.map +0 -1
  702. package/dist/src/onboarding/types.d.ts +0 -31
  703. package/dist/src/onboarding/types.d.ts.map +0 -1
  704. package/dist/src/router/index.d.ts +0 -2
  705. package/dist/src/router/index.d.ts.map +0 -1
  706. package/dist/src/router/router.d.ts +0 -30
  707. package/dist/src/router/router.d.ts.map +0 -1
  708. package/dist/src/selected-calendars/index.d.ts +0 -2
  709. package/dist/src/selected-calendars/index.d.ts.map +0 -1
  710. package/dist/src/selected-calendars/selected-calendars-settings.d.ts +0 -6
  711. package/dist/src/selected-calendars/selected-calendars-settings.d.ts.map +0 -1
  712. package/dist/src/selected-calendars/wrappers/selected-calendars-settings-platform-wrapper.d.ts +0 -38
  713. package/dist/src/selected-calendars/wrappers/selected-calendars-settings-platform-wrapper.d.ts.map +0 -1
  714. package/dist/src/timezone/index.d.ts +0 -6
  715. package/dist/src/timezone/index.d.ts.map +0 -1
  716. package/dist/src/timezone/timezone-select-component.d.ts +0 -15
  717. package/dist/src/timezone/timezone-select-component.d.ts.map +0 -1
  718. package/dist/src/troubleshooter/components/calendar-toggle-container-component.d.ts +0 -31
  719. package/dist/src/troubleshooter/components/calendar-toggle-container-component.d.ts.map +0 -1
  720. package/dist/src/troubleshooter/components/event-schedule-item-component.d.ts +0 -12
  721. package/dist/src/troubleshooter/components/event-schedule-item-component.d.ts.map +0 -1
  722. package/dist/src/troubleshooter/components/event-type-select-component.d.ts +0 -18
  723. package/dist/src/troubleshooter/components/event-type-select-component.d.ts.map +0 -1
  724. package/dist/src/troubleshooter/components/troubleshooter-list-item-container.d.ts +0 -12
  725. package/dist/src/troubleshooter/components/troubleshooter-list-item-container.d.ts.map +0 -1
  726. package/dist/src/troubleshooter/index.d.ts +0 -2
  727. package/dist/src/troubleshooter/index.d.ts.map +0 -1
  728. package/dist/src/troubleshooter/large-calendar/large-calendar.d.ts +0 -6
  729. package/dist/src/troubleshooter/large-calendar/large-calendar.d.ts.map +0 -1
  730. package/dist/src/troubleshooter/sidebar/calendar-toggle-container.d.ts +0 -7
  731. package/dist/src/troubleshooter/sidebar/calendar-toggle-container.d.ts.map +0 -1
  732. package/dist/src/troubleshooter/sidebar/event-schedule-item.d.ts +0 -2
  733. package/dist/src/troubleshooter/sidebar/event-schedule-item.d.ts.map +0 -1
  734. package/dist/src/troubleshooter/sidebar/event-type-select.d.ts +0 -2
  735. package/dist/src/troubleshooter/sidebar/event-type-select.d.ts.map +0 -1
  736. package/dist/src/troubleshooter/sidebar/troubleshooter-sidebar.d.ts +0 -17
  737. package/dist/src/troubleshooter/sidebar/troubleshooter-sidebar.d.ts.map +0 -1
  738. package/dist/src/troubleshooter/store.d.ts +0 -30
  739. package/dist/src/troubleshooter/store.d.ts.map +0 -1
  740. package/dist/src/troubleshooter/types.d.ts +0 -11
  741. package/dist/src/troubleshooter/types.d.ts.map +0 -1
  742. package/dist/src/troubleshooter/wrappers/troubleshooter-platform-wrapper.d.ts +0 -14
  743. package/dist/src/troubleshooter/wrappers/troubleshooter-platform-wrapper.d.ts.map +0 -1
  744. package/dist/src/types.d.ts +0 -8
  745. package/dist/src/types.d.ts.map +0 -1
  746. package/dist/src/vendor/analytics.d.ts +0 -17
  747. package/dist/src/vendor/analytics.d.ts.map +0 -1
  748. package/dist/src/vendor/availability.d.ts +0 -15
  749. package/dist/src/vendor/availability.d.ts.map +0 -1
  750. package/dist/src/vendor/avatar-url.d.ts +0 -23
  751. package/dist/src/vendor/avatar-url.d.ts.map +0 -1
  752. package/dist/src/vendor/booker-url.d.ts +0 -13
  753. package/dist/src/vendor/booker-url.d.ts.map +0 -1
  754. package/dist/src/vendor/booking-to-mutation-input.d.ts +0 -96
  755. package/dist/src/vendor/booking-to-mutation-input.d.ts.map +0 -1
  756. package/dist/src/vendor/cal-ai-phone.d.ts +0 -4
  757. package/dist/src/vendor/cal-ai-phone.d.ts.map +0 -1
  758. package/dist/src/vendor/check-for-empty-assignment.d.ts +0 -16
  759. package/dist/src/vendor/check-for-empty-assignment.d.ts.map +0 -1
  760. package/dist/src/vendor/children-event-type.d.ts +0 -44
  761. package/dist/src/vendor/children-event-type.d.ts.map +0 -1
  762. package/dist/src/vendor/currency.d.ts +0 -3
  763. package/dist/src/vendor/currency.d.ts.map +0 -1
  764. package/dist/src/vendor/dayjs/index.d.ts +0 -5
  765. package/dist/src/vendor/dayjs/index.d.ts.map +0 -1
  766. package/dist/src/vendor/dayjs/plugins/business-days-plugin.d.ts +0 -11
  767. package/dist/src/vendor/dayjs/plugins/business-days-plugin.d.ts.map +0 -1
  768. package/dist/src/vendor/dayjs-utils.d.ts +0 -4
  769. package/dist/src/vendor/dayjs-utils.d.ts.map +0 -1
  770. package/dist/src/vendor/error-codes.d.ts +0 -40
  771. package/dist/src/vendor/error-codes.d.ts.map +0 -1
  772. package/dist/src/vendor/event-naming.d.ts +0 -33
  773. package/dist/src/vendor/event-naming.d.ts.map +0 -1
  774. package/dist/src/vendor/form-builder/base-schema.d.ts +0 -917
  775. package/dist/src/vendor/form-builder/base-schema.d.ts.map +0 -1
  776. package/dist/src/vendor/form-builder/field-type-enum.d.ts +0 -4
  777. package/dist/src/vendor/form-builder/field-type-enum.d.ts.map +0 -1
  778. package/dist/src/vendor/form-builder/field-types.d.ts +0 -5
  779. package/dist/src/vendor/form-builder/field-types.d.ts.map +0 -1
  780. package/dist/src/vendor/form-builder/fields-that-support-label-as-safe-html.d.ts +0 -3
  781. package/dist/src/vendor/form-builder/fields-that-support-label-as-safe-html.d.ts.map +0 -1
  782. package/dist/src/vendor/form-builder/props-types.d.ts +0 -18
  783. package/dist/src/vendor/form-builder/props-types.d.ts.map +0 -1
  784. package/dist/src/vendor/form-builder/schema.d.ts +0 -761
  785. package/dist/src/vendor/form-builder/schema.d.ts.map +0 -1
  786. package/dist/src/vendor/form-builder/system-field.d.ts +0 -9
  787. package/dist/src/vendor/form-builder/system-field.d.ts.map +0 -1
  788. package/dist/src/vendor/form-builder/use-should-be-disabled-due-to-prefill.d.ts +0 -12
  789. package/dist/src/vendor/form-builder/use-should-be-disabled-due-to-prefill.d.ts.map +0 -1
  790. package/dist/src/vendor/form-builder/utils/get-field-identifier.d.ts +0 -2
  791. package/dist/src/vendor/form-builder/utils/get-field-identifier.d.ts.map +0 -1
  792. package/dist/src/vendor/form-builder/utils/variants-config.d.ts +0 -40
  793. package/dist/src/vendor/form-builder/utils/variants-config.d.ts.map +0 -1
  794. package/dist/src/vendor/form-builder/utils.d.ts +0 -7
  795. package/dist/src/vendor/form-builder/utils.d.ts.map +0 -1
  796. package/dist/src/vendor/form-builder-widgets/index.d.ts +0 -49
  797. package/dist/src/vendor/form-builder-widgets/index.d.ts.map +0 -1
  798. package/dist/src/vendor/format-date-time.d.ts +0 -15
  799. package/dist/src/vendor/format-date-time.d.ts.map +0 -1
  800. package/dist/src/vendor/get-available-dates-in-month.d.ts +0 -12
  801. package/dist/src/vendor/get-available-dates-in-month.d.ts.map +0 -1
  802. package/dist/src/vendor/get-avatar-url.d.ts +0 -5
  803. package/dist/src/vendor/get-avatar-url.d.ts.map +0 -1
  804. package/dist/src/vendor/get-routed-team-member-ids.d.ts +0 -2
  805. package/dist/src/vendor/get-routed-team-member-ids.d.ts.map +0 -1
  806. package/dist/src/vendor/get-stripe.d.ts +0 -7
  807. package/dist/src/vendor/get-stripe.d.ts.map +0 -1
  808. package/dist/src/vendor/get-username-list.d.ts +0 -2
  809. package/dist/src/vendor/get-username-list.d.ts.map +0 -1
  810. package/dist/src/vendor/hooks/use-debounce.d.ts +0 -2
  811. package/dist/src/vendor/hooks/use-debounce.d.ts.map +0 -1
  812. package/dist/src/vendor/hooks/use-media-query.d.ts +0 -3
  813. package/dist/src/vendor/hooks/use-media-query.d.ts.map +0 -1
  814. package/dist/src/vendor/hooks/use-router-query.d.ts +0 -2
  815. package/dist/src/vendor/hooks/use-router-query.d.ts.map +0 -1
  816. package/dist/src/vendor/host-group-utils.d.ts +0 -19
  817. package/dist/src/vendor/host-group-utils.d.ts.map +0 -1
  818. package/dist/src/vendor/interval-limit.d.ts +0 -6
  819. package/dist/src/vendor/interval-limit.d.ts.map +0 -1
  820. package/dist/src/vendor/invert-logo-on-dark.d.ts +0 -2
  821. package/dist/src/vendor/invert-logo-on-dark.d.ts.map +0 -1
  822. package/dist/src/vendor/locales/de/common.json.d.ts +0 -319
  823. package/dist/src/vendor/locales/en/common.json.d.ts +0 -319
  824. package/dist/src/vendor/locales/es/common.json.d.ts +0 -319
  825. package/dist/src/vendor/locales/fr/common.json.d.ts +0 -319
  826. package/dist/src/vendor/locales/it/common.json.d.ts +0 -319
  827. package/dist/src/vendor/locales/nl/common.json.d.ts +0 -319
  828. package/dist/src/vendor/locales/pt-BR/common.json.d.ts +0 -319
  829. package/dist/src/vendor/locations-resolver.d.ts +0 -38
  830. package/dist/src/vendor/locations-resolver.d.ts.map +0 -1
  831. package/dist/src/vendor/locations.d.ts +0 -58
  832. package/dist/src/vendor/locations.d.ts.map +0 -1
  833. package/dist/src/vendor/parse-dates.d.ts +0 -18
  834. package/dist/src/vendor/parse-dates.d.ts.map +0 -1
  835. package/dist/src/vendor/payments.d.ts +0 -50
  836. package/dist/src/vendor/payments.d.ts.map +0 -1
  837. package/dist/src/vendor/phone-input/phone-input.d.ts +0 -17
  838. package/dist/src/vendor/phone-input/phone-input.d.ts.map +0 -1
  839. package/dist/src/vendor/phone-input/phone-masks.d.ts +0 -8
  840. package/dist/src/vendor/phone-input/phone-masks.d.ts.map +0 -1
  841. package/dist/src/vendor/query-param.d.ts +0 -4
  842. package/dist/src/vendor/query-param.d.ts.map +0 -1
  843. package/dist/src/vendor/recurring.d.ts +0 -27
  844. package/dist/src/vendor/recurring.d.ts.map +0 -1
  845. package/dist/src/vendor/schedule-list-item.d.ts +0 -55
  846. package/dist/src/vendor/schedule-list-item.d.ts.map +0 -1
  847. package/dist/src/vendor/scroll.d.ts +0 -2
  848. package/dist/src/vendor/scroll.d.ts.map +0 -1
  849. package/dist/src/vendor/server-trans.d.ts +0 -25
  850. package/dist/src/vendor/server-trans.d.ts.map +0 -1
  851. package/dist/src/vendor/slugify.d.ts +0 -3
  852. package/dist/src/vendor/slugify.d.ts.map +0 -1
  853. package/dist/src/vendor/time-format.d.ts +0 -10
  854. package/dist/src/vendor/time-format.d.ts.map +0 -1
  855. package/dist/src/vendor/time-preferences.d.ts +0 -14
  856. package/dist/src/vendor/time-preferences.d.ts.map +0 -1
  857. package/dist/src/vendor/time-shift.d.ts +0 -6
  858. package/dist/src/vendor/time-shift.d.ts.map +0 -1
  859. package/dist/src/vendor/timezone-constants.d.ts +0 -3
  860. package/dist/src/vendor/timezone-constants.d.ts.map +0 -1
  861. package/dist/src/vendor/timezone.d.ts +0 -10
  862. package/dist/src/vendor/timezone.d.ts.map +0 -1
  863. package/dist/src/vendor/validate-booker-layouts.d.ts +0 -8
  864. package/dist/src/vendor/validate-booker-layouts.d.ts.map +0 -1
  865. package/dist/src/vendor/webstorage.d.ts +0 -18
  866. package/dist/src/vendor/webstorage.d.ts.map +0 -1
  867. package/dist/src/vendor/weekday.d.ts +0 -5
  868. package/dist/src/vendor/weekday.d.ts.map +0 -1
  869. package/dist/src/vendor/weekstart.d.ts +0 -3
  870. package/dist/src/vendor/weekstart.d.ts.map +0 -1
  871. package/dist/vite.config.d.ts +0 -3
  872. package/dist/vite.config.d.ts.map +0 -1
  873. package/dist/vitest.config.d.ts +0 -12
  874. package/dist/vitest.config.d.ts.map +0 -1
  875. package/src/add-members-switch/add-members-with-switch-platform-wrapper.tsx +0 -9
  876. package/src/add-members-switch/add-members-with-switch.tsx +0 -321
  877. package/src/availability/availability-settings.tsx +0 -806
  878. package/src/availability/components/date-override-input-dialog.tsx +0 -254
  879. package/src/availability/components/date-override-list.tsx +0 -167
  880. package/src/availability/components/schedule-component.tsx +0 -790
  881. package/src/availability/index.ts +0 -3
  882. package/src/availability/types.ts +0 -40
  883. package/src/availability/wrappers/availability-settings-platform-wrapper.tsx +0 -224
  884. package/src/booker/Booker.docs.mdx +0 -12
  885. package/src/booker/__tests__/config.test.ts +0 -58
  886. package/src/booker/__tests__/store-extended.test.ts +0 -349
  887. package/src/booker/__tests__/store.test.ts +0 -230
  888. package/src/booker/booker-platform-wrapper.tsx +0 -625
  889. package/src/booker/booker-store-provider.tsx +0 -117
  890. package/src/booker/components/available-time-slots.tsx +0 -245
  891. package/src/booker/components/available-times-header.tsx +0 -79
  892. package/src/booker/components/available-times.tsx +0 -359
  893. package/src/booker/components/book-event-form/book-event-form.tsx +0 -344
  894. package/src/booker/components/book-event-form/book-form-as-modal.tsx +0 -85
  895. package/src/booker/components/book-event-form/booking-fields.tsx +0 -257
  896. package/src/booker/components/book-event-form/index.ts +0 -4
  897. package/src/booker/components/book-event-form/skeleton.tsx +0 -29
  898. package/src/booker/components/booker-component.tsx +0 -699
  899. package/src/booker/components/booker-section.tsx +0 -49
  900. package/src/booker/components/dry-run-message.tsx +0 -31
  901. package/src/booker/components/event-meta/available-event-locations.tsx +0 -121
  902. package/src/booker/components/event-meta/details.tsx +0 -187
  903. package/src/booker/components/event-meta/duration.tsx +0 -141
  904. package/src/booker/components/event-meta/index.ts +0 -6
  905. package/src/booker/components/event-meta/locations.tsx +0 -71
  906. package/src/booker/components/event-meta/members.tsx +0 -99
  907. package/src/booker/components/event-meta/occurences.tsx +0 -142
  908. package/src/booker/components/event-meta/price-icon.tsx +0 -65
  909. package/src/booker/components/event-meta/price.tsx +0 -103
  910. package/src/booker/components/event-meta/skeleton.tsx +0 -19
  911. package/src/booker/components/event-meta/title.tsx +0 -18
  912. package/src/booker/components/event-meta.tsx +0 -292
  913. package/src/booker/components/external-redirect-interstitial.tsx +0 -78
  914. package/src/booker/components/form-builder/components.tsx +0 -541
  915. package/src/booker/components/form-builder/form-builder-field.tsx +0 -390
  916. package/src/booker/components/having-trouble-finding-time.tsx +0 -49
  917. package/src/booker/components/header.tsx +0 -261
  918. package/src/booker/components/instant-booking.tsx +0 -74
  919. package/src/booker/components/out-of-office-in-slots.tsx +0 -116
  920. package/src/booker/components/overlay-calendar/overlay-calendar-continue-modal.tsx +0 -47
  921. package/src/booker/components/overlay-calendar/overlay-calendar-settings-modal.tsx +0 -129
  922. package/src/booker/components/overlay-calendar/overlay-calendar-switch.tsx +0 -73
  923. package/src/booker/components/overlay-calendar/overlay-calendar.tsx +0 -80
  924. package/src/booker/components/overlay-calendar/store.ts +0 -27
  925. package/src/booker/components/pay-icon.tsx +0 -6
  926. package/src/booker/components/price.tsx +0 -13
  927. package/src/booker/components/redirect-to-instant-meeting-modal.tsx +0 -121
  928. package/src/booker/components/scrollable-with-gradients.tsx +0 -77
  929. package/src/booker/components/seats-availability-text.tsx +0 -43
  930. package/src/booker/components/section.tsx +0 -51
  931. package/src/booker/components/slot-selection-modal-header.tsx +0 -116
  932. package/src/booker/components/time-format-toggle.tsx +0 -28
  933. package/src/booker/components/unavailable.tsx +0 -30
  934. package/src/booker/components/unpublished-entity.tsx +0 -30
  935. package/src/booker/components/verify-code-dialog.tsx +0 -131
  936. package/src/booker/config.ts +0 -206
  937. package/src/booker/export.ts +0 -5
  938. package/src/booker/framer-features.ts +0 -3
  939. package/src/booker/hooks/__tests__/use-booker-layout.test.tsx +0 -98
  940. package/src/booker/hooks/__tests__/use-check-overlap-with-overlay.test.ts +0 -95
  941. package/src/booker/hooks/__tests__/use-local-set.test.tsx +0 -72
  942. package/src/booker/hooks/__tests__/use-non-empty-schedule-days.test.tsx +0 -37
  943. package/src/booker/hooks/__tests__/use-overlay-calendar.test.tsx +0 -122
  944. package/src/booker/hooks/__tests__/use-should-show-arrows.test.tsx +0 -45
  945. package/src/booker/hooks/__tests__/use-skip-confirm-step.test.ts +0 -54
  946. package/src/booker/hooks/__tests__/use-slots-for-date.test.tsx +0 -65
  947. package/src/booker/hooks/__tests__/use-stable-timezone.test.ts +0 -74
  948. package/src/booker/hooks/__tests__/use-times-for-schedule.test.tsx +0 -132
  949. package/src/booker/hooks/embed-stubs.ts +0 -30
  950. package/src/booker/hooks/use-available-time-slots.ts +0 -48
  951. package/src/booker/hooks/use-booker-layout.ts +0 -131
  952. package/src/booker/hooks/use-booker-time.ts +0 -21
  953. package/src/booker/hooks/use-booking-form.ts +0 -108
  954. package/src/booker/hooks/use-bookings-types.ts +0 -10
  955. package/src/booker/hooks/use-check-overlap-with-overlay.ts +0 -49
  956. package/src/booker/hooks/use-initialize-week-start.ts +0 -20
  957. package/src/booker/hooks/use-is-quick-availability-check-feature-enabled.ts +0 -45
  958. package/src/booker/hooks/use-local-set.tsx +0 -70
  959. package/src/booker/hooks/use-non-empty-schedule-days.ts +0 -23
  960. package/src/booker/hooks/use-overlay-calendar.ts +0 -94
  961. package/src/booker/hooks/use-should-show-arrows.ts +0 -33
  962. package/src/booker/hooks/use-skip-confirm-step.ts +0 -79
  963. package/src/booker/hooks/use-slots-for-date.ts +0 -51
  964. package/src/booker/hooks/use-stable-timezone.ts +0 -13
  965. package/src/booker/hooks/use-times-for-schedule.ts +0 -123
  966. package/src/booker/store.ts +0 -831
  967. package/src/booker/types.ts +0 -142
  968. package/src/booker/use-slot-reservation-id.ts +0 -14
  969. package/src/booker/utils/__tests__/booker-utils.test.ts +0 -159
  970. package/src/booker/utils/__tests__/is-timeslot-available.test.ts +0 -224
  971. package/src/booker/utils/are-different-valid-months.ts +0 -5
  972. package/src/booker/utils/dates.tsx +0 -90
  973. package/src/booker/utils/get-booker-timezone.ts +0 -9
  974. package/src/booker/utils/get-booking-duration.ts +0 -19
  975. package/src/booker/utils/get-prefetch-month-count.ts +0 -24
  976. package/src/booker/utils/is-booking-dry-run.ts +0 -5
  977. package/src/booker/utils/is-month-change.ts +0 -5
  978. package/src/booker/utils/is-month-view-prefetch-enabled.ts +0 -14
  979. package/src/booker/utils/is-prefetch-next-month-enabled.ts +0 -27
  980. package/src/booker/utils/is-timeslot-available.ts +0 -78
  981. package/src/booker/utils/layout.ts +0 -5
  982. package/src/booker-embed/__tests__/use-get-routing-form-url-props.test.tsx +0 -133
  983. package/src/booker-embed/booker-embed.tsx +0 -117
  984. package/src/booker-embed/index.ts +0 -1
  985. package/src/booker-embed/use-get-routing-form-url-props.tsx +0 -95
  986. package/src/cal-provider/base-cal-provider.tsx +0 -248
  987. package/src/cal-provider/cal-o-auth-provider.tsx +0 -77
  988. package/src/cal-provider/cal-provider.tsx +0 -112
  989. package/src/cal-provider/index.ts +0 -2
  990. package/src/cal-provider/languages.ts +0 -78
  991. package/src/calendar-settings/index.ts +0 -1
  992. package/src/calendar-settings/wrappers/calendar-settings-platform-wrapper.tsx +0 -45
  993. package/src/calendar-view/calendar-view-component.tsx +0 -35
  994. package/src/calendar-view/components/calendar.tsx +0 -1
  995. package/src/calendar-view/components/date-picker.tsx +0 -498
  996. package/src/calendar-view/components/large-calendar.tsx +0 -201
  997. package/src/calendar-view/components/no-availability-dialog.tsx +0 -74
  998. package/src/calendar-view/event-type-calendar-view-component.tsx +0 -152
  999. package/src/calendar-view/index.ts +0 -1
  1000. package/src/calendar-view/scheduler/components/calendar.tsx +0 -231
  1001. package/src/calendar-view/scheduler/components/current-time/index.tsx +0 -87
  1002. package/src/calendar-view/scheduler/components/date-values/index.tsx +0 -114
  1003. package/src/calendar-view/scheduler/components/default-out-of-office-slot.tsx +0 -68
  1004. package/src/calendar-view/scheduler/components/event/all-day-events.test.tsx +0 -799
  1005. package/src/calendar-view/scheduler/components/event/all-day-events.tsx +0 -360
  1006. package/src/calendar-view/scheduler/components/event/empty.tsx +0 -229
  1007. package/src/calendar-view/scheduler/components/event/event-list.tsx +0 -137
  1008. package/src/calendar-view/scheduler/components/event/event.tsx +0 -165
  1009. package/src/calendar-view/scheduler/components/event/index.tsx +0 -4
  1010. package/src/calendar-view/scheduler/components/grid/index.tsx +0 -24
  1011. package/src/calendar-view/scheduler/components/heading/index.tsx +0 -1
  1012. package/src/calendar-view/scheduler/components/heading/scheduler-heading.tsx +0 -40
  1013. package/src/calendar-view/scheduler/components/horizontal-lines/index.tsx +0 -48
  1014. package/src/calendar-view/scheduler/components/spinner/spinner.tsx +0 -23
  1015. package/src/calendar-view/scheduler/components/vertical-lines/index.tsx +0 -40
  1016. package/src/calendar-view/scheduler/state/__tests__/store.test.ts +0 -147
  1017. package/src/calendar-view/scheduler/state/store.ts +0 -93
  1018. package/src/calendar-view/scheduler/styles/styles.css +0 -20
  1019. package/src/calendar-view/scheduler/types/common.ts +0 -1
  1020. package/src/calendar-view/scheduler/types/events.ts +0 -20
  1021. package/src/calendar-view/scheduler/types/state.ts +0 -126
  1022. package/src/calendar-view/scheduler/utils/__tests__/overlap.test.ts +0 -650
  1023. package/src/calendar-view/scheduler/utils/__tests__/utils.test.ts +0 -133
  1024. package/src/calendar-view/scheduler/utils/index.ts +0 -100
  1025. package/src/calendar-view/scheduler/utils/overlap.ts +0 -175
  1026. package/src/calendar-view/wrappers/calendar-view-platform-wrapper.tsx +0 -41
  1027. package/src/components/atoms-wrapper.tsx +0 -22
  1028. package/src/components/ui/address-input.tsx +0 -36
  1029. package/src/components/ui/alert.tsx +0 -67
  1030. package/src/components/ui/app-list-card.tsx +0 -94
  1031. package/src/components/ui/avatar-group.tsx +0 -59
  1032. package/src/components/ui/avatar.tsx +0 -94
  1033. package/src/components/ui/badge.tsx +0 -93
  1034. package/src/components/ui/button-group.tsx +0 -40
  1035. package/src/components/ui/button.tsx +0 -177
  1036. package/src/components/ui/calendar-switch.tsx +0 -56
  1037. package/src/components/ui/checkbox.tsx +0 -126
  1038. package/src/components/ui/checked-team-select.tsx +0 -225
  1039. package/src/components/ui/confirmation-dialog-content.tsx +0 -82
  1040. package/src/components/ui/controlled-dialog.tsx +0 -30
  1041. package/src/components/ui/dialog.tsx +0 -165
  1042. package/src/components/ui/disconnect-calendar-integration.tsx +0 -52
  1043. package/src/components/ui/divider.tsx +0 -22
  1044. package/src/components/ui/dropdown.tsx +0 -240
  1045. package/src/components/ui/editable-heading.tsx +0 -64
  1046. package/src/components/ui/empty-screen.tsx +0 -86
  1047. package/src/components/ui/form.tsx +0 -46
  1048. package/src/components/ui/icon.tsx +0 -249
  1049. package/src/components/ui/icons.tsx +0 -313
  1050. package/src/components/ui/info-badge.tsx +0 -12
  1051. package/src/components/ui/label.tsx +0 -13
  1052. package/src/components/ui/navigation.tsx +0 -38
  1053. package/src/components/ui/popover.tsx +0 -31
  1054. package/src/components/ui/radio-area-group.tsx +0 -67
  1055. package/src/components/ui/radio.tsx +0 -72
  1056. package/src/components/ui/react-select-components.tsx +0 -86
  1057. package/src/components/ui/select.tsx +0 -123
  1058. package/src/components/ui/settings-header.tsx +0 -87
  1059. package/src/components/ui/settings-toggle.tsx +0 -123
  1060. package/src/components/ui/shell.tsx +0 -47
  1061. package/src/components/ui/show-toast.tsx +0 -11
  1062. package/src/components/ui/skeleton.tsx +0 -112
  1063. package/src/components/ui/switch.tsx +0 -28
  1064. package/src/components/ui/text-field.tsx +0 -241
  1065. package/src/components/ui/toast.tsx +0 -121
  1066. package/src/components/ui/toaster.tsx +0 -28
  1067. package/src/components/ui/toggle-group.tsx +0 -109
  1068. package/src/components/ui/tooltip.tsx +0 -84
  1069. package/src/components/ui/use-toast.ts +0 -187
  1070. package/src/components/ui/user-avatar-group-with-org.tsx +0 -45
  1071. package/src/connect/apple/apple-connect.tsx +0 -197
  1072. package/src/connect/components/disconnect-integration-modal.tsx +0 -51
  1073. package/src/connect/components/office365-account-dialog.tsx +0 -48
  1074. package/src/connect/conferencing-apps/components/app-list.tsx +0 -238
  1075. package/src/connect/conferencing-apps/conferencing-apps-view-platform-wrapper.tsx +0 -358
  1076. package/src/connect/conferencing-apps/hooks/use-atom-bulk-update-event-types-to-default-location.ts +0 -50
  1077. package/src/connect/conferencing-apps/hooks/use-atom-get-event-types.ts +0 -34
  1078. package/src/connect/conferencing-apps/hooks/use-atoms-get-installed-conferencing-apps.ts +0 -38
  1079. package/src/connect/conferencing-apps/hooks/use-connect.ts +0 -157
  1080. package/src/connect/conferencing-apps/hooks/use-delete-credential.ts +0 -38
  1081. package/src/connect/conferencing-apps/hooks/use-get-default-conferencing-app.ts +0 -38
  1082. package/src/connect/conferencing-apps/hooks/use-update-user-default-conferencing-app.ts +0 -43
  1083. package/src/connect/google/gcal-connect.tsx +0 -42
  1084. package/src/connect/index.ts +0 -3
  1085. package/src/connect/o-auth-connect.tsx +0 -148
  1086. package/src/connect/outlook/outlook-connect.tsx +0 -42
  1087. package/src/connect/stripe/stripe-connect.tsx +0 -81
  1088. package/src/constants/api.ts +0 -114
  1089. package/src/constants/app.ts +0 -44
  1090. package/src/constants/apps.ts +0 -37
  1091. package/src/constants/index.ts +0 -3
  1092. package/src/constants/styles.ts +0 -1
  1093. package/src/contracts/api.ts +0 -30
  1094. package/src/contracts/apps.ts +0 -24
  1095. package/src/contracts/booker.ts +0 -287
  1096. package/src/contracts/bookings.ts +0 -141
  1097. package/src/contracts/calendars.ts +0 -87
  1098. package/src/contracts/event-types.ts +0 -252
  1099. package/src/contracts/index.ts +0 -12
  1100. package/src/contracts/oauth.ts +0 -47
  1101. package/src/contracts/organizations.ts +0 -14
  1102. package/src/contracts/schedules.ts +0 -100
  1103. package/src/contracts/slots.ts +0 -63
  1104. package/src/contracts/teams.ts +0 -35
  1105. package/src/contracts/user.ts +0 -25
  1106. package/src/create-schedule/create-schedule-form.tsx +0 -110
  1107. package/src/create-schedule/index.tsx +0 -1
  1108. package/src/create-schedule/wrappers/create-schedule-platform-wrapper.tsx +0 -69
  1109. package/src/destination-calendar/components/destination-calendar-selector.tsx +0 -34
  1110. package/src/destination-calendar/destination-calendar-selector.tsx +0 -149
  1111. package/src/destination-calendar/destination-calendar.tsx +0 -82
  1112. package/src/destination-calendar/destination-reminder-selector.tsx +0 -51
  1113. package/src/destination-calendar/index.ts +0 -1
  1114. package/src/destination-calendar/wrappers/destination-calendar-settings-platform-wrapper.tsx +0 -62
  1115. package/src/event-types/__tests__/event-type-list-item.test.tsx +0 -196
  1116. package/src/event-types/__tests__/format-event-type-duration.test.ts +0 -47
  1117. package/src/event-types/components/__tests__/children-event-type-select.test.tsx +0 -291
  1118. package/src/event-types/components/assign-all-team-members.tsx +0 -46
  1119. package/src/event-types/components/bulk-edit-default-for-events-modal.tsx +0 -129
  1120. package/src/event-types/components/children-event-type-select.tsx +0 -223
  1121. package/src/event-types/components/create-event-type-form.tsx +0 -160
  1122. package/src/event-types/components/event-team-assignment-tab.tsx +0 -9
  1123. package/src/event-types/components/event-type-list-item.tsx +0 -153
  1124. package/src/event-types/components/host-edit-dialogs.tsx +0 -277
  1125. package/src/event-types/components/learn-more-link.tsx +0 -41
  1126. package/src/event-types/components/managed-event-dialog.tsx +0 -62
  1127. package/src/event-types/components/recurring-event-controller.tsx +0 -247
  1128. package/src/event-types/components/tabs/event-recurring-tab.tsx +0 -34
  1129. package/src/event-types/components/team-assignment/assign-all-managed-warning-dialog.tsx +0 -43
  1130. package/src/event-types/components/team-assignment/children-event-types-list.tsx +0 -43
  1131. package/src/event-types/components/team-assignment/children-event-types.tsx +0 -62
  1132. package/src/event-types/components/team-assignment/event-team-assignment-tab.tsx +0 -300
  1133. package/src/event-types/components/team-assignment/fixed-hosts.tsx +0 -170
  1134. package/src/event-types/components/team-assignment/hosts.tsx +0 -125
  1135. package/src/event-types/components/team-assignment/round-robin-hosts.tsx +0 -266
  1136. package/src/event-types/components/team-event-type-form.tsx +0 -183
  1137. package/src/event-types/components/weight-description.tsx +0 -24
  1138. package/src/event-types/hooks/__tests__/use-assign-all-managed-warning.test.ts +0 -78
  1139. package/src/event-types/hooks/__tests__/use-team-event-assignment.test.tsx +0 -218
  1140. package/src/event-types/hooks/use-add-verified-email.ts +0 -64
  1141. package/src/event-types/hooks/use-apps-data-stub.ts +0 -19
  1142. package/src/event-types/hooks/use-assign-all-managed-warning.ts +0 -45
  1143. package/src/event-types/hooks/use-atom-event-type-app-integration.ts +0 -49
  1144. package/src/event-types/hooks/use-atom-event-type-by-id.ts +0 -25
  1145. package/src/event-types/hooks/use-atom-event-type-payment-info.ts +0 -36
  1146. package/src/event-types/hooks/use-atom-get-all-event-types.ts +0 -30
  1147. package/src/event-types/hooks/use-atom-host-schedules.ts +0 -36
  1148. package/src/event-types/hooks/use-atom-update-event-type.ts +0 -61
  1149. package/src/event-types/hooks/use-event-type-form.test.ts +0 -192
  1150. package/src/event-types/hooks/use-event-type-form.ts +0 -501
  1151. package/src/event-types/hooks/use-get-verified-emails.ts +0 -27
  1152. package/src/event-types/hooks/use-handle-route-change.ts +0 -57
  1153. package/src/event-types/hooks/use-locked-fields-manager-stub.ts +0 -30
  1154. package/src/event-types/hooks/use-platform-tabs-navigations.tsx +0 -138
  1155. package/src/event-types/hooks/use-tabs-navigations.test.ts +0 -31
  1156. package/src/event-types/hooks/use-tabs-navigations.tsx +0 -266
  1157. package/src/event-types/hooks/use-team-event-assignment.ts +0 -127
  1158. package/src/event-types/hooks/use-team-members-with-segment-platform.tsx +0 -107
  1159. package/src/event-types/index.ts +0 -1
  1160. package/src/event-types/lib/format-event-type-duration.ts +0 -25
  1161. package/src/event-types/payments/payment-form.tsx +0 -150
  1162. package/src/event-types/payments/payment-page-types.ts +0 -47
  1163. package/src/event-types/payments/payment.tsx +0 -115
  1164. package/src/event-types/payments/stripe-payment-form.tsx +0 -136
  1165. package/src/event-types/types.ts +0 -16
  1166. package/src/event-types/wrappers/create-event-type-platform-wrapper.tsx +0 -148
  1167. package/src/event-types/wrappers/event-recurring-tab-platform-wrapper.tsx +0 -8
  1168. package/src/event-types/wrappers/event-team-assignment-tab-platform-wrapper.tsx +0 -15
  1169. package/src/event-types/wrappers/event-type-platform-wrapper.tsx +0 -399
  1170. package/src/event-types/wrappers/list-event-types-platform-wrapper.tsx +0 -85
  1171. package/src/event-types/wrappers/types.ts +0 -5
  1172. package/src/hooks/__tests__/use-is-platform.test.tsx +0 -58
  1173. package/src/hooks/__tests__/use-slot-mutations.test.tsx +0 -113
  1174. package/src/hooks/__tests__/use-timezone-hooks.test.tsx +0 -67
  1175. package/src/hooks/__tests__/use-verify-code.test.tsx +0 -120
  1176. package/src/hooks/bookings/__tests__/use-booking-mutations.test.tsx +0 -123
  1177. package/src/hooks/bookings/__tests__/use-booking-queries.test.tsx +0 -108
  1178. package/src/hooks/bookings/use-booking.ts +0 -28
  1179. package/src/hooks/bookings/use-bookings.ts +0 -61
  1180. package/src/hooks/bookings/use-cancel-booking.ts +0 -47
  1181. package/src/hooks/bookings/use-create-booking.ts +0 -43
  1182. package/src/hooks/bookings/use-create-instant-booking.ts +0 -39
  1183. package/src/hooks/bookings/use-create-recurring-booking.ts +0 -42
  1184. package/src/hooks/bookings/use-get-booking-for-reschedule.ts +0 -51
  1185. package/src/hooks/bookings/use-handle-book-event.ts +0 -156
  1186. package/src/hooks/calendars/__tests__/use-calendar-mutations.test.tsx +0 -225
  1187. package/src/hooks/calendars/use-add-selected-calendar.ts +0 -65
  1188. package/src/hooks/calendars/use-delete-calendar-credentials.ts +0 -67
  1189. package/src/hooks/calendars/use-remove-selected-calendar.ts +0 -67
  1190. package/src/hooks/calendars/use-update-destination-calendars.ts +0 -60
  1191. package/src/hooks/connect/__tests__/use-connect.test.tsx +0 -109
  1192. package/src/hooks/connect/use-check.ts +0 -61
  1193. package/src/hooks/connect/use-connect.ts +0 -106
  1194. package/src/hooks/event-types/private/__tests__/event-type-mutations.test.tsx +0 -160
  1195. package/src/hooks/event-types/private/use-create-event-type-form.ts +0 -30
  1196. package/src/hooks/event-types/private/use-create-event-type.ts +0 -38
  1197. package/src/hooks/event-types/private/use-create-team-event-type.ts +0 -42
  1198. package/src/hooks/event-types/private/use-delete-event-type-by-id.ts +0 -30
  1199. package/src/hooks/event-types/private/use-delete-team-event-type-by-id.ts +0 -45
  1200. package/src/hooks/event-types/private/use-event-type-by-id.ts +0 -23
  1201. package/src/hooks/event-types/public/__tests__/public-event-type-hooks.test.tsx +0 -128
  1202. package/src/hooks/event-types/public/use-atom-get-public-event.tsx +0 -80
  1203. package/src/hooks/event-types/public/use-event-type.ts +0 -53
  1204. package/src/hooks/event-types/public/use-event-types.ts +0 -23
  1205. package/src/hooks/event-types/public/use-team-event-type.ts +0 -46
  1206. package/src/hooks/event-types/public/use-team-event-types.ts +0 -26
  1207. package/src/hooks/organizations/bookings/use-organization-bookings.ts +0 -38
  1208. package/src/hooks/organizations/bookings/use-organization-user-bookings.ts +0 -34
  1209. package/src/hooks/schedules/__tests__/use-schedules.test.tsx +0 -168
  1210. package/src/hooks/schedules/types.ts +0 -36
  1211. package/src/hooks/schedules/use-atom-create-schedule.ts +0 -47
  1212. package/src/hooks/schedules/use-atom-duplicate-schedule.ts +0 -45
  1213. package/src/hooks/schedules/use-atom-get-all-schedules.ts +0 -30
  1214. package/src/hooks/schedules/use-atom-schedule.ts +0 -33
  1215. package/src/hooks/schedules/use-atom-update-schedule.ts +0 -54
  1216. package/src/hooks/schedules/use-delete-schedule.ts +0 -54
  1217. package/src/hooks/schedules/use-ensure-default-schedule.ts +0 -23
  1218. package/src/hooks/schedules/use-schedule.ts +0 -34
  1219. package/src/hooks/schedules/use-schedules.ts +0 -34
  1220. package/src/hooks/schedules/use-update-schedule.ts +0 -58
  1221. package/src/hooks/stripe/__tests__/use-check.test.tsx +0 -99
  1222. package/src/hooks/stripe/use-check.ts +0 -73
  1223. package/src/hooks/stripe/use-connect.ts +0 -54
  1224. package/src/hooks/teams/__tests__/use-team-queries.test.tsx +0 -94
  1225. package/src/hooks/teams/use-team-members.ts +0 -32
  1226. package/src/hooks/teams/use-teams.ts +0 -34
  1227. package/src/hooks/use-api-keys.ts +0 -5
  1228. package/src/hooks/use-atoms-context.ts +0 -49
  1229. package/src/hooks/use-atoms-locale.ts +0 -11
  1230. package/src/hooks/use-available-slots.ts +0 -43
  1231. package/src/hooks/use-calendars-busy-times.ts +0 -64
  1232. package/src/hooks/use-connected-calendars.tsx +0 -27
  1233. package/src/hooks/use-delete-selected-slot.ts +0 -52
  1234. package/src/hooks/use-event-types-list.tsx +0 -39
  1235. package/src/hooks/use-get-city-timezones.ts +0 -27
  1236. package/src/hooks/use-is-platform-booker-embed.ts +0 -6
  1237. package/src/hooks/use-is-platform.ts +0 -6
  1238. package/src/hooks/use-me.ts +0 -30
  1239. package/src/hooks/use-o-auth-client.ts +0 -72
  1240. package/src/hooks/use-o-auth-flow.ts +0 -120
  1241. package/src/hooks/use-reserve-slot.ts +0 -48
  1242. package/src/hooks/use-schedule-by-event-slug.tsx +0 -40
  1243. package/src/hooks/use-slots.ts +0 -115
  1244. package/src/hooks/use-timezone.ts +0 -19
  1245. package/src/hooks/use-update-user-timezone.ts +0 -28
  1246. package/src/hooks/use-verify-code.ts +0 -115
  1247. package/src/hooks/use-verify-email.ts +0 -107
  1248. package/src/index.ts +0 -180
  1249. package/src/lib/__tests__/http.test.ts +0 -79
  1250. package/src/lib/append-client-id-to-email.ts +0 -4
  1251. package/src/lib/get-placeholder-content.ts +0 -16
  1252. package/src/lib/get-query-param.ts +0 -14
  1253. package/src/lib/get-utm-tracking-parameters.ts +0 -13
  1254. package/src/lib/http.ts +0 -75
  1255. package/src/lib/markdown-to-safe-html-client.ts +0 -43
  1256. package/src/lib/markdown-to-safe-html.ts +0 -9
  1257. package/src/lib/set-query-param.ts +0 -13
  1258. package/src/lib/time-zones.ts +0 -20
  1259. package/src/lib/use-locale.ts +0 -26
  1260. package/src/lib/utils.ts +0 -6
  1261. package/src/list-schedules/components/schedule-list-item.tsx +0 -183
  1262. package/src/list-schedules/index.ts +0 -1
  1263. package/src/list-schedules/wrappers/list-schedules-platform-wrapper.tsx +0 -130
  1264. package/src/onboarding/continue-with-calcom.tsx +0 -284
  1265. package/src/onboarding/export.ts +0 -2
  1266. package/src/onboarding/onboarding-embed.tsx +0 -266
  1267. package/src/onboarding/types.ts +0 -38
  1268. package/src/router/index.ts +0 -1
  1269. package/src/router/router.tsx +0 -164
  1270. package/src/selected-calendars/index.ts +0 -1
  1271. package/src/selected-calendars/selected-calendars-settings.tsx +0 -7
  1272. package/src/selected-calendars/wrappers/selected-calendars-settings-platform-wrapper.tsx +0 -462
  1273. package/src/timezone/index.tsx +0 -37
  1274. package/src/timezone/timezone-select-component.tsx +0 -193
  1275. package/src/troubleshooter/__tests__/store.test.ts +0 -80
  1276. package/src/troubleshooter/components/calendar-toggle-container-component.tsx +0 -148
  1277. package/src/troubleshooter/components/event-schedule-item-component.tsx +0 -33
  1278. package/src/troubleshooter/components/event-type-select-component.tsx +0 -105
  1279. package/src/troubleshooter/components/troubleshooter-list-item-container.tsx +0 -42
  1280. package/src/troubleshooter/index.ts +0 -1
  1281. package/src/troubleshooter/large-calendar/large-calendar.tsx +0 -30
  1282. package/src/troubleshooter/sidebar/calendar-toggle-container.tsx +0 -25
  1283. package/src/troubleshooter/sidebar/event-schedule-item.tsx +0 -13
  1284. package/src/troubleshooter/sidebar/event-type-select.tsx +0 -8
  1285. package/src/troubleshooter/sidebar/troubleshooter-sidebar.tsx +0 -48
  1286. package/src/troubleshooter/store.ts +0 -110
  1287. package/src/troubleshooter/types.ts +0 -10
  1288. package/src/troubleshooter/wrappers/troubleshooter-platform-wrapper.tsx +0 -89
  1289. package/src/types.ts +0 -7
  1290. package/src/vendor/__tests__/availability.test.ts +0 -60
  1291. package/src/vendor/__tests__/avatar-url.test.ts +0 -75
  1292. package/src/vendor/__tests__/booker-url.test.ts +0 -26
  1293. package/src/vendor/__tests__/booking-to-mutation-input.test.ts +0 -232
  1294. package/src/vendor/__tests__/check-for-empty-assignment.test.ts +0 -59
  1295. package/src/vendor/__tests__/children-event-type.test.ts +0 -64
  1296. package/src/vendor/__tests__/currency.test.ts +0 -48
  1297. package/src/vendor/__tests__/dayjs-utils.test.ts +0 -37
  1298. package/src/vendor/__tests__/error-codes.test.ts +0 -69
  1299. package/src/vendor/__tests__/event-naming.test.ts +0 -32
  1300. package/src/vendor/__tests__/format-date-time.test.ts +0 -90
  1301. package/src/vendor/__tests__/get-available-dates-in-month.test.ts +0 -51
  1302. package/src/vendor/__tests__/host-group-utils.test.ts +0 -117
  1303. package/src/vendor/__tests__/interval-limit.test.ts +0 -42
  1304. package/src/vendor/__tests__/locations-resolver.test.ts +0 -48
  1305. package/src/vendor/__tests__/locations.test.ts +0 -109
  1306. package/src/vendor/__tests__/misc-utils.test.ts +0 -219
  1307. package/src/vendor/__tests__/parse-dates.test.ts +0 -67
  1308. package/src/vendor/__tests__/payments.test.ts +0 -126
  1309. package/src/vendor/__tests__/query-param.test.ts +0 -70
  1310. package/src/vendor/__tests__/recurring.test.ts +0 -104
  1311. package/src/vendor/__tests__/slugify.test.ts +0 -48
  1312. package/src/vendor/__tests__/time-shift.test.ts +0 -48
  1313. package/src/vendor/__tests__/timezone.test.ts +0 -77
  1314. package/src/vendor/__tests__/validate-booker-layouts.test.ts +0 -40
  1315. package/src/vendor/__tests__/webstorage.test.ts +0 -148
  1316. package/src/vendor/__tests__/weekday.test.ts +0 -61
  1317. package/src/vendor/__tests__/weekstart.test.ts +0 -45
  1318. package/src/vendor/analytics.ts +0 -23
  1319. package/src/vendor/availability.ts +0 -52
  1320. package/src/vendor/avatar-url.ts +0 -39
  1321. package/src/vendor/booker-url.ts +0 -23
  1322. package/src/vendor/booking-to-mutation-input.ts +0 -166
  1323. package/src/vendor/cal-ai-phone.ts +0 -31
  1324. package/src/vendor/check-for-empty-assignment.ts +0 -24
  1325. package/src/vendor/children-event-type.ts +0 -50
  1326. package/src/vendor/currency.ts +0 -39
  1327. package/src/vendor/dayjs/index.ts +0 -30
  1328. package/src/vendor/dayjs/plugins/__tests__/business-days-plugin.test.ts +0 -168
  1329. package/src/vendor/dayjs/plugins/business-days-plugin.ts +0 -189
  1330. package/src/vendor/dayjs-utils.ts +0 -13
  1331. package/src/vendor/error-codes.ts +0 -39
  1332. package/src/vendor/event-naming.ts +0 -34
  1333. package/src/vendor/form-builder/__tests__/base-schema.test.ts +0 -109
  1334. package/src/vendor/form-builder/__tests__/schema.test.ts +0 -245
  1335. package/src/vendor/form-builder/__tests__/system-field.test.ts +0 -57
  1336. package/src/vendor/form-builder/__tests__/use-should-be-disabled-due-to-prefill.test.ts +0 -24
  1337. package/src/vendor/form-builder/__tests__/utils.test.ts +0 -83
  1338. package/src/vendor/form-builder/base-schema.ts +0 -127
  1339. package/src/vendor/form-builder/field-type-enum.ts +0 -21
  1340. package/src/vendor/form-builder/field-types.ts +0 -161
  1341. package/src/vendor/form-builder/fields-that-support-label-as-safe-html.ts +0 -3
  1342. package/src/vendor/form-builder/props-types.ts +0 -17
  1343. package/src/vendor/form-builder/schema.ts +0 -269
  1344. package/src/vendor/form-builder/system-field.ts +0 -33
  1345. package/src/vendor/form-builder/use-should-be-disabled-due-to-prefill.tsx +0 -107
  1346. package/src/vendor/form-builder/utils/__tests__/get-field-identifier.test.ts +0 -14
  1347. package/src/vendor/form-builder/utils/__tests__/variants-config.test.ts +0 -98
  1348. package/src/vendor/form-builder/utils/get-field-identifier.ts +0 -5
  1349. package/src/vendor/form-builder/utils/variants-config.ts +0 -71
  1350. package/src/vendor/form-builder/utils.ts +0 -48
  1351. package/src/vendor/form-builder-widgets/index.tsx +0 -213
  1352. package/src/vendor/format-date-time.ts +0 -138
  1353. package/src/vendor/get-available-dates-in-month.ts +0 -36
  1354. package/src/vendor/get-avatar-url.ts +0 -15
  1355. package/src/vendor/get-routed-team-member-ids.ts +0 -9
  1356. package/src/vendor/get-stripe.ts +0 -17
  1357. package/src/vendor/get-username-list.ts +0 -14
  1358. package/src/vendor/hooks/__tests__/use-router-query.test.ts +0 -37
  1359. package/src/vendor/hooks/use-debounce.ts +0 -17
  1360. package/src/vendor/hooks/use-media-query.ts +0 -24
  1361. package/src/vendor/hooks/use-router-query.ts +0 -34
  1362. package/src/vendor/host-group-utils.ts +0 -57
  1363. package/src/vendor/interval-limit.ts +0 -17
  1364. package/src/vendor/invert-logo-on-dark.ts +0 -7
  1365. package/src/vendor/locales/de/common.json +0 -316
  1366. package/src/vendor/locales/en/common.json +0 -316
  1367. package/src/vendor/locales/es/common.json +0 -316
  1368. package/src/vendor/locales/fr/common.json +0 -316
  1369. package/src/vendor/locales/it/common.json +0 -316
  1370. package/src/vendor/locales/nl/common.json +0 -316
  1371. package/src/vendor/locales/pt-BR/common.json +0 -316
  1372. package/src/vendor/locations-resolver.ts +0 -28
  1373. package/src/vendor/locations.ts +0 -250
  1374. package/src/vendor/parse-dates.ts +0 -107
  1375. package/src/vendor/payments.ts +0 -107
  1376. package/src/vendor/phone-input/phone-input.tsx +0 -121
  1377. package/src/vendor/phone-input/phone-masks.ts +0 -7
  1378. package/src/vendor/query-param.ts +0 -37
  1379. package/src/vendor/recurring.ts +0 -58
  1380. package/src/vendor/schedule-list-item.ts +0 -47
  1381. package/src/vendor/scroll.ts +0 -4
  1382. package/src/vendor/server-trans.tsx +0 -88
  1383. package/src/vendor/slugify.ts +0 -28
  1384. package/src/vendor/theme/tokens.css +0 -474
  1385. package/src/vendor/time-format.ts +0 -43
  1386. package/src/vendor/time-preferences.ts +0 -32
  1387. package/src/vendor/time-shift.ts +0 -28
  1388. package/src/vendor/timezone-constants.ts +0 -4
  1389. package/src/vendor/timezone.ts +0 -78
  1390. package/src/vendor/validate-booker-layouts.ts +0 -27
  1391. package/src/vendor/webstorage.ts +0 -78
  1392. package/src/vendor/weekday.ts +0 -35
  1393. package/src/vendor/weekstart.ts +0 -20
@@ -1,799 +0,0 @@
1
- import { render, renderHook, screen } from "@testing-library/react";
2
- import { describe, expect, it } from "vitest";
3
-
4
- import dayjs from "../../../../vendor/dayjs";
5
- import { CalendarStoreContext, createCalendarStore } from "../../state/store";
6
- import type { CalendarEvent } from "../../types/events";
7
-
8
- import {
9
- type AllDayEventSpan,
10
- AllDayEvents,
11
- assignLanes,
12
- isInAllDayBar,
13
- isOverlapping,
14
- useAllDayEventBar,
15
- useAllDayEventSpans,
16
- } from "./all-day-events";
17
-
18
- function renderWithStore(events: CalendarEvent[], days: dayjs.Dayjs[], timezone = "UTC") {
19
- const store = createCalendarStore({ events });
20
- return render(
21
- <CalendarStoreContext.Provider value={store}>
22
- <AllDayEvents days={days} showBorder={true} borderColor="default" timezone={timezone} />
23
- </CalendarStoreContext.Provider>
24
- );
25
- }
26
-
27
- describe("AllDayEvents", () => {
28
- const monday = dayjs("2026-04-27");
29
- const weekDays = Array.from({ length: 7 }, (_, i) => monday.add(i, "day"));
30
-
31
- it("should render nothing when there are no all-day events", () => {
32
- const events: CalendarEvent[] = [
33
- {
34
- id: 1,
35
- title: "Regular event",
36
- start: new Date("2026-04-27T10:00:00"),
37
- end: new Date("2026-04-27T11:00:00"),
38
- },
39
- ];
40
-
41
- const { container } = renderWithStore(events, weekDays);
42
- expect(container.innerHTML).toBe("");
43
- });
44
-
45
- it("should render a full-day busy event spanning a single day", () => {
46
- const events: CalendarEvent[] = [
47
- {
48
- id: 1,
49
- title: "Full day busy",
50
- start: new Date("2026-04-28T00:00:00"),
51
- end: new Date("2026-04-28T23:59:59"),
52
- options: { allDay: true, color: "#ef4444", "data-test-id": "allday-single" },
53
- },
54
- ];
55
-
56
- renderWithStore(events, weekDays);
57
-
58
- const bar = screen.getByTestId("allday-single");
59
- expect(bar).toBeInTheDocument();
60
- expect(bar).toHaveTextContent("Full day busy");
61
-
62
- // Tuesday is index 1 in the week (Mon=0, Tue=1, ...)
63
- // left should be (1/7)*100 %, width should be (1/7)*100 %
64
- const style = bar.style;
65
- const expectedLeft = ((1 / 7) * 100).toFixed(4);
66
- const expectedWidth = ((1 / 7) * 100).toFixed(4);
67
- expect(style.left).toContain(expectedLeft.substring(0, 5));
68
- expect(style.width).toContain(expectedWidth.substring(0, 5));
69
- });
70
-
71
- it("should render a multi-day busy event spanning multiple columns", () => {
72
- // Event spans from Tuesday Apr 28 through Saturday May 2 (5 days within the week view)
73
- const events: CalendarEvent[] = [
74
- {
75
- id: 1,
76
- title: "Multi-day busy",
77
- start: new Date("2026-04-28T07:30:00"),
78
- end: new Date("2026-05-02T08:29:59"),
79
- options: { allDay: true, color: "#ef4444", "data-test-id": "allday-multi" },
80
- },
81
- ];
82
-
83
- renderWithStore(events, weekDays);
84
-
85
- const bar = screen.getByTestId("allday-multi");
86
- expect(bar).toBeInTheDocument();
87
- expect(bar).toHaveTextContent("Multi-day busy");
88
-
89
- // Event starts at 07:30 of Tue (col 1, offset 7.5/24) and ends at 08:29:59 of Sat (col 5).
90
- // Bar is shifted into the start column by 7.5/24 of a day-width.
91
- const style = bar.style;
92
- const expectedLeft = (((1 + 7.5 / 24) / 7) * 100).toFixed(4);
93
- const expectedWidth = (((5 + 8.5 / 24 - (1 + 7.5 / 24)) / 7) * 100).toFixed(4);
94
- expect(style.left).toContain(expectedLeft.substring(0, 5));
95
- expect(style.width).toContain(expectedWidth.substring(0, 4));
96
- });
97
-
98
- it("should render a multi-day event that extends beyond the visible week", () => {
99
- // Event starts before the visible week and ends after it
100
- const events: CalendarEvent[] = [
101
- {
102
- id: 1,
103
- title: "Overflowing busy",
104
- start: new Date("2026-04-25T00:00:00"),
105
- end: new Date("2026-05-05T23:59:59"),
106
- options: { allDay: true, color: "#3b82f6", "data-test-id": "allday-overflow" },
107
- },
108
- ];
109
-
110
- renderWithStore(events, weekDays);
111
-
112
- const bar = screen.getByTestId("allday-overflow");
113
- expect(bar).toBeInTheDocument();
114
-
115
- // Should span all 7 columns (startCol=0, endCol=6)
116
- const style = bar.style;
117
- expect(style.left).toContain("0%");
118
- expect(style.width).toContain("100%");
119
- });
120
-
121
- it("should not render events that are completely outside the visible week", () => {
122
- const events: CalendarEvent[] = [
123
- {
124
- id: 1,
125
- title: "Outside event",
126
- start: new Date("2026-05-10T00:00:00"),
127
- end: new Date("2026-05-12T23:59:59"),
128
- options: { allDay: true, "data-test-id": "allday-outside" },
129
- },
130
- ];
131
-
132
- const { container } = renderWithStore(events, weekDays);
133
- // Component returns null when no spans are within the visible range
134
- expect(container.innerHTML).toBe("");
135
- });
136
-
137
- it("should not render events without allDay flag in the all-day row", () => {
138
- const events: CalendarEvent[] = [
139
- {
140
- id: 1,
141
- title: "Regular booking",
142
- start: new Date("2026-04-28T10:00:00"),
143
- end: new Date("2026-04-28T11:00:00"),
144
- options: { "data-test-id": "regular-event" },
145
- },
146
- ];
147
-
148
- const { container } = renderWithStore(events, weekDays);
149
- expect(container.innerHTML).toBe("");
150
- });
151
-
152
- it("should render multiple all-day events", () => {
153
- const events: CalendarEvent[] = [
154
- {
155
- id: 1,
156
- title: "Busy block 1",
157
- start: new Date("2026-04-27T00:00:00"),
158
- end: new Date("2026-04-29T23:59:59"),
159
- options: { allDay: true, color: "#ef4444", "data-test-id": "allday-1" },
160
- },
161
- {
162
- id: 2,
163
- title: "Busy block 2",
164
- start: new Date("2026-05-01T00:00:00"),
165
- end: new Date("2026-05-03T23:59:59"),
166
- options: { allDay: true, color: "#3b82f6", "data-test-id": "allday-2" },
167
- },
168
- ];
169
-
170
- renderWithStore(events, weekDays);
171
-
172
- const bar1 = screen.getByTestId("allday-1");
173
- const bar2 = screen.getByTestId("allday-2");
174
- expect(bar1).toBeInTheDocument();
175
- expect(bar2).toBeInTheDocument();
176
- expect(bar1).toHaveTextContent("Busy block 1");
177
- expect(bar2).toHaveTextContent("Busy block 2");
178
- });
179
-
180
- it("renders an explicit options.color as a colored left strip", () => {
181
- const events: CalendarEvent[] = [
182
- {
183
- id: 1,
184
- title: "Colored busy",
185
- start: new Date("2026-04-28T00:00:00"),
186
- end: new Date("2026-04-30T23:59:59"),
187
- options: { allDay: true, color: "#22c55e", "data-test-id": "allday-colored" },
188
- },
189
- ];
190
-
191
- renderWithStore(events, weekDays);
192
-
193
- const bar = screen.getByTestId("allday-colored");
194
- const strip = bar.querySelector('[data-testid="allday-color-strip"]') as HTMLElement | null;
195
- expect(strip).not.toBeNull();
196
- expect(strip!.style.backgroundColor).toBe("rgb(34, 197, 94)");
197
- // The bar itself uses bg-subtle (no inline backgroundColor) — matches regular Event.tsx style
198
- expect(bar.style.backgroundColor).toBe("");
199
- });
200
-
201
- it("falls back to the booking-status color class when no explicit color is set", () => {
202
- const events: CalendarEvent[] = [
203
- {
204
- id: 1,
205
- title: "No color busy",
206
- start: new Date("2026-04-28T00:00:00"),
207
- end: new Date("2026-04-28T23:59:59"),
208
- // status: ACCEPTED is what LargeCalendar sets for troubleshooter busy events,
209
- // and Event.tsx maps it to bg-green-500. AllDayEvents should reuse the same class.
210
- options: { allDay: true, status: "ACCEPTED", "data-test-id": "allday-default-color" },
211
- },
212
- ];
213
-
214
- renderWithStore(events, weekDays);
215
-
216
- const bar = screen.getByTestId("allday-default-color");
217
- const strip = bar.querySelector('[data-testid="allday-color-strip"]') as HTMLElement | null;
218
- expect(strip).not.toBeNull();
219
- expect(strip!.className).toContain("bg-green-500");
220
- // No hardcoded #ef4444 fallback on the bar itself anymore
221
- expect(bar.style.backgroundColor).toBe("");
222
- });
223
-
224
- it("should handle a recurring multi-day pattern like the Google Calendar bug", () => {
225
- // Simulates the real-world pattern: weekly recurring 8-day blocks
226
- const events: CalendarEvent[] = [
227
- {
228
- id: 1,
229
- title: "Recurring block",
230
- start: new Date("2026-04-28T07:30:00"),
231
- end: new Date("2026-05-06T08:29:59"),
232
- source: "google-calendar",
233
- options: { allDay: true, color: "#ef4444", "data-test-id": "allday-recurring" },
234
- },
235
- ];
236
-
237
- renderWithStore(events, weekDays);
238
-
239
- const bar = screen.getByTestId("allday-recurring");
240
- expect(bar).toBeInTheDocument();
241
- expect(bar).toHaveTextContent("Recurring block");
242
-
243
- // Starts at 07:30 of Tue (col 1, offset 7.5/24) and is clipped at the end of Sun
244
- // (col 6, endOffsetInDay clamped to 1) since the real event extends past the week.
245
- const style = bar.style;
246
- const expectedLeft = (((1 + 7.5 / 24) / 7) * 100).toFixed(4);
247
- const expectedWidth = (((6 + 1 - (1 + 7.5 / 24)) / 7) * 100).toFixed(4);
248
- expect(style.left).toContain(expectedLeft.substring(0, 5));
249
- expect(style.width).toContain(expectedWidth.substring(0, 4));
250
- });
251
-
252
- it("shows date prefix in the label for truly multi-day events", () => {
253
- const events: CalendarEvent[] = [
254
- {
255
- id: 1,
256
- title: "Multi-day with date",
257
- start: new Date("2026-04-28T07:30:00Z"),
258
- end: new Date("2026-05-02T08:29:59Z"),
259
- options: { allDay: true, "data-test-id": "allday-multi-date" },
260
- },
261
- ];
262
-
263
- renderWithStore(events, weekDays);
264
-
265
- const bar = screen.getByTestId("allday-multi-date");
266
- expect(bar).toHaveTextContent("Apr 28, 07:30 – May 2, 08:29");
267
- });
268
-
269
- it("shows time-only label for single-day all-day events", () => {
270
- const events: CalendarEvent[] = [
271
- {
272
- id: 1,
273
- title: "Single day",
274
- start: new Date("2026-04-28T00:00:00Z"),
275
- end: new Date("2026-04-28T23:59:59Z"),
276
- options: { allDay: true, "data-test-id": "allday-single-date" },
277
- },
278
- ];
279
-
280
- renderWithStore(events, weekDays);
281
-
282
- const bar = screen.getByTestId("allday-single-date");
283
- expect(bar).toHaveTextContent("00:00 – 23:59");
284
- expect(bar.textContent).not.toMatch(/Apr|May/);
285
- });
286
- });
287
-
288
- const allDay = (
289
- id: number,
290
- startIso: string,
291
- endIso: string,
292
- options: CalendarEvent["options"] = {}
293
- ): CalendarEvent => ({
294
- id,
295
- title: `Event ${id}`,
296
- start: new Date(startIso),
297
- end: new Date(endIso),
298
- options: { allDay: true, ...options },
299
- });
300
-
301
- const utcWeek = (mondayIso: string) =>
302
- Array.from({ length: 7 }, (_, i) => dayjs.utc(mondayIso).add(i, "day"));
303
-
304
- // IST offset = +5h30m → 5.5/24 of a day.
305
- const IST_FRACTION = 5.5 / 24;
306
-
307
- describe("useAllDayEventSpans", () => {
308
- it("returns empty when there are no events", () => {
309
- const days = utcWeek("2026-04-27");
310
- const { result } = renderHook(() => useAllDayEventSpans({ events: [], days, timezone: "UTC" }));
311
- expect(result.current).toEqual([]);
312
- });
313
-
314
- it("ignores events without an allDay flag", () => {
315
- const days = utcWeek("2026-04-27");
316
- const events: CalendarEvent[] = [
317
- {
318
- id: 1,
319
- title: "Regular",
320
- start: new Date("2026-04-28T10:00:00Z"),
321
- end: new Date("2026-04-28T11:00:00Z"),
322
- },
323
- ];
324
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
325
- expect(result.current).toEqual([]);
326
- });
327
-
328
- it("returns empty when days array is empty", () => {
329
- const events = [allDay(1, "2026-04-28T00:00:00Z", "2026-04-29T00:00:00Z")];
330
- const { result } = renderHook(() => useAllDayEventSpans({ events, days: [], timezone: "UTC" }));
331
- expect(result.current).toEqual([]);
332
- });
333
-
334
- it("computes a single-day span for a 24h event aligned to UTC midnight", () => {
335
- const days = utcWeek("2026-04-27"); // Mon Apr 27 (col 0) ... Sun May 3 (col 6)
336
- const events = [allDay(1, "2026-04-28T00:00:00Z", "2026-04-29T00:00:00Z")];
337
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
338
- expect(result.current).toEqual([
339
- { event: events[0], startCol: 1, endCol: 1, startOffsetInDay: 0, endOffsetInDay: 1, lane: 0 },
340
- ]);
341
- });
342
-
343
- it("computes a multi-day span covering the full visible week", () => {
344
- const days = utcWeek("2026-04-27");
345
- const events = [allDay(1, "2026-04-27T00:00:00Z", "2026-05-04T00:00:00Z")];
346
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
347
- expect(result.current).toEqual([
348
- { event: events[0], startCol: 0, endCol: 6, startOffsetInDay: 0, endOffsetInDay: 1, lane: 0 },
349
- ]);
350
- });
351
-
352
- it("clips a span that starts before the visible week (offset pinned to 0)", () => {
353
- const days = utcWeek("2026-04-27");
354
- const events = [allDay(1, "2026-04-20T00:00:00Z", "2026-04-29T00:00:00Z")];
355
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
356
- expect(result.current).toEqual([
357
- { event: events[0], startCol: 0, endCol: 1, startOffsetInDay: 0, endOffsetInDay: 1, lane: 0 },
358
- ]);
359
- });
360
-
361
- it("clips a span that ends after the visible week (offset pinned to 1)", () => {
362
- const days = utcWeek("2026-04-27");
363
- const events = [allDay(1, "2026-05-01T00:00:00Z", "2026-05-10T00:00:00Z")];
364
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
365
- expect(result.current).toEqual([
366
- { event: events[0], startCol: 4, endCol: 6, startOffsetInDay: 0, endOffsetInDay: 1, lane: 0 },
367
- ]);
368
- });
369
-
370
- it("excludes events entirely before the visible week", () => {
371
- const days = utcWeek("2026-04-27");
372
- const events = [allDay(1, "2026-04-20T00:00:00Z", "2026-04-25T00:00:00Z")];
373
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
374
- expect(result.current).toEqual([]);
375
- });
376
-
377
- it("excludes events entirely after the visible week", () => {
378
- const days = utcWeek("2026-04-27");
379
- const events = [allDay(1, "2026-05-10T00:00:00Z", "2026-05-15T00:00:00Z")];
380
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
381
- expect(result.current).toEqual([]);
382
- });
383
-
384
- it("returns one span per concurrent all-day event in input order", () => {
385
- const days = utcWeek("2026-04-27");
386
- const events = [
387
- allDay(1, "2026-04-27T00:00:00Z", "2026-04-30T00:00:00Z"),
388
- allDay(2, "2026-05-01T00:00:00Z", "2026-05-04T00:00:00Z"),
389
- ];
390
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
391
- expect(result.current).toEqual([
392
- { event: events[0], startCol: 0, endCol: 2, startOffsetInDay: 0, endOffsetInDay: 1, lane: 0 },
393
- { event: events[1], startCol: 4, endCol: 6, startOffsetInDay: 0, endOffsetInDay: 1, lane: 0 },
394
- ]);
395
- });
396
-
397
- describe("intra-day offsets shift the bar to match real time-of-day", () => {
398
- it("a 7:30–8:30 UTC event spanning multiple days carries its sub-day offsets", () => {
399
- // Event 2026-04-28 07:30Z → 2026-05-02 08:30Z (≈ 4 days 1 hour, intra-day starts/ends).
400
- const days = utcWeek("2026-04-27");
401
- const events = [allDay(1, "2026-04-28T07:30:00Z", "2026-05-02T08:30:00Z")];
402
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
403
- expect(result.current).toEqual([
404
- {
405
- event: events[0],
406
- startCol: 1,
407
- endCol: 5,
408
- startOffsetInDay: 7.5 / 24,
409
- endOffsetInDay: 8.5 / 24,
410
- lane: 0,
411
- },
412
- ]);
413
- });
414
- });
415
-
416
- describe("lane assignment for overlapping spans", () => {
417
- it("assigns lane 0 to non-overlapping spans", () => {
418
- const days = utcWeek("2026-04-27");
419
- const events = [
420
- allDay(1, "2026-04-27T00:00:00Z", "2026-04-29T00:00:00Z"),
421
- allDay(2, "2026-05-01T00:00:00Z", "2026-05-03T00:00:00Z"),
422
- ];
423
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
424
- expect(result.current.map((s) => s.lane)).toEqual([0, 0]);
425
- });
426
-
427
- it("places an exact replica on lane 1", () => {
428
- const days = utcWeek("2026-04-27");
429
- const events = [
430
- allDay(1, "2026-04-27T07:30:00Z", "2026-05-01T08:30:00Z"),
431
- allDay(2, "2026-04-27T07:30:00Z", "2026-05-01T08:30:00Z"),
432
- ];
433
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
434
- expect(result.current.map((s) => s.lane).sort()).toEqual([0, 1]);
435
- });
436
-
437
- it("places a partial overlap on lane 1 and reuses lane 0 once the lane is free", () => {
438
- const days = utcWeek("2026-04-27");
439
- const events = [
440
- allDay(1, "2026-04-27T00:00:00Z", "2026-04-30T00:00:00Z"), // Mon–Wed (cols 0–2)
441
- allDay(2, "2026-04-29T00:00:00Z", "2026-05-02T00:00:00Z"), // Wed–Fri (cols 2–4) — overlaps #1
442
- allDay(3, "2026-05-02T00:00:00Z", "2026-05-04T00:00:00Z"), // Fri–Sun (cols 4–6) — fits lane 0 again
443
- ];
444
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
445
- const lanesById = new Map(result.current.map((s) => [s.event.id, s.lane]));
446
- expect(lanesById.get(1)).toBe(0);
447
- expect(lanesById.get(2)).toBe(1);
448
- expect(lanesById.get(3)).toBe(0);
449
- });
450
- });
451
-
452
- describe("timezone normalization", () => {
453
- it("a UTC-midnight end time straddles two IST days when viewed in IST", () => {
454
- // Event runs 2026-04-29T00:00Z → 2026-04-30T00:00Z (24h in UTC).
455
- // In IST (UTC+5:30) the same range is 2026-04-29T05:30 → 2026-04-30T05:30 IST,
456
- // so it must occupy BOTH Apr 29 (col 2) AND Apr 30 (col 3) of the IST week.
457
- // The bar is shifted right by 5.5/24 of one day in BOTH the start and end columns
458
- // — net visual width = exactly one day (1/7 of the week).
459
- const days = Array.from({ length: 7 }, (_, i) => dayjs.tz("2026-04-27", "Asia/Kolkata").add(i, "day"));
460
- const events = [allDay(1, "2026-04-29T00:00:00Z", "2026-04-30T00:00:00Z")];
461
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "Asia/Kolkata" }));
462
- expect(result.current).toEqual([
463
- {
464
- event: events[0],
465
- startCol: 2,
466
- endCol: 3,
467
- startOffsetInDay: IST_FRACTION,
468
- endOffsetInDay: IST_FRACTION,
469
- lane: 0,
470
- },
471
- ]);
472
- });
473
-
474
- it("a UTC-midnight end time stays a single column when viewed in UTC", () => {
475
- // Same event, but in UTC view it occupies only Apr 29 (col 2) — its end
476
- // sits exactly at the start of Apr 30, so it does not overlap that column.
477
- const days = utcWeek("2026-04-27");
478
- const events = [allDay(1, "2026-04-29T00:00:00Z", "2026-04-30T00:00:00Z")];
479
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "UTC" }));
480
- expect(result.current).toEqual([
481
- { event: events[0], startCol: 2, endCol: 2, startOffsetInDay: 0, endOffsetInDay: 1, lane: 0 },
482
- ]);
483
- });
484
-
485
- it("Apr 24 UTC 00:00 → Apr 25 UTC 00:00 full-day event shifts ~23% into Apr 24 + Apr 25 columns in IST", () => {
486
- // Plan feedback case. UTC full-day event becomes IST 05:30 → 05:30 next day.
487
- // Bar must (a) span Apr 24 (col 4) AND Apr 25 (col 5) AND (b) be shifted right
488
- // by 5.5/24 ≈ 22.9% within both columns — net width = exactly one day.
489
- const days = Array.from({ length: 7 }, (_, i) => dayjs.tz("2026-04-20", "Asia/Kolkata").add(i, "day"));
490
- const events = [allDay(1, "2026-04-24T00:00:00Z", "2026-04-25T00:00:00Z")];
491
- const { result } = renderHook(() => useAllDayEventSpans({ events, days, timezone: "Asia/Kolkata" }));
492
- expect(result.current).toEqual([
493
- {
494
- event: events[0],
495
- startCol: 4,
496
- endCol: 5,
497
- startOffsetInDay: IST_FRACTION,
498
- endOffsetInDay: IST_FRACTION,
499
- lane: 0,
500
- },
501
- ]);
502
- });
503
- });
504
- });
505
-
506
- describe("isInAllDayBar", () => {
507
- const baseEvent = (overrides: Partial<CalendarEvent> = {}): CalendarEvent => ({
508
- id: 1,
509
- title: "Test",
510
- start: new Date("2026-04-28T10:00:00Z"),
511
- end: new Date("2026-04-28T11:00:00Z"),
512
- ...overrides,
513
- });
514
-
515
- it("returns true when options.allDay is set", () => {
516
- expect(isInAllDayBar(baseEvent({ options: { allDay: true } }))).toBe(true);
517
- });
518
-
519
- it("returns true when options.allDay is set, even on a single-day event with non-midnight bounds", () => {
520
- // Mirrors how LargeCalendar tags its busy events on the troubleshooter — single-day
521
- // bookings flagged allDay should still go to the all-day bar.
522
- expect(
523
- isInAllDayBar(
524
- baseEvent({
525
- start: new Date("2026-04-28T07:00:00Z"),
526
- end: new Date("2026-04-28T18:00:00Z"),
527
- options: { allDay: true },
528
- })
529
- )
530
- ).toBe(true);
531
- });
532
-
533
- it("returns true for a multi-day event with no allDay flag", () => {
534
- expect(
535
- isInAllDayBar(
536
- baseEvent({
537
- start: new Date("2026-04-28T07:00:00Z"),
538
- end: new Date("2026-05-02T09:00:00Z"),
539
- })
540
- )
541
- ).toBe(true);
542
- });
543
-
544
- it("returns false for a single-day event with no allDay flag", () => {
545
- expect(
546
- isInAllDayBar(
547
- baseEvent({
548
- start: new Date("2026-04-28T10:00:00Z"),
549
- end: new Date("2026-04-28T11:00:00Z"),
550
- })
551
- )
552
- ).toBe(false);
553
- });
554
-
555
- it("uses the supplied timezone when deciding multi-day", () => {
556
- // Apr 29 16:00Z → Apr 29 20:00Z is single-day in UTC but in IST runs
557
- // 21:30 Apr 29 → 01:30 Apr 30, crossing midnight.
558
- const event = baseEvent({
559
- start: new Date("2026-04-29T16:00:00Z"),
560
- end: new Date("2026-04-29T20:00:00Z"),
561
- });
562
- expect(isInAllDayBar(event, "UTC")).toBe(false);
563
- expect(isInAllDayBar(event, "Asia/Kolkata")).toBe(true);
564
- });
565
- });
566
-
567
- describe("isOverlapping", () => {
568
- const a = dayjs("2026-04-27T10:00:00Z");
569
- const b = dayjs("2026-04-27T12:00:00Z");
570
-
571
- it("returns true when ranges partially overlap", () => {
572
- expect(isOverlapping(a, b, dayjs("2026-04-27T11:00:00Z"), dayjs("2026-04-27T13:00:00Z"))).toBe(true);
573
- });
574
-
575
- it("returns true when one range fully contains the other", () => {
576
- expect(isOverlapping(a, b, dayjs("2026-04-27T10:30:00Z"), dayjs("2026-04-27T11:30:00Z"))).toBe(true);
577
- });
578
-
579
- it("returns false when ranges only touch at the boundary", () => {
580
- expect(isOverlapping(a, b, b, dayjs("2026-04-27T13:00:00Z"))).toBe(false);
581
- expect(isOverlapping(a, b, dayjs("2026-04-27T08:00:00Z"), a)).toBe(false);
582
- });
583
-
584
- it("returns false when ranges are disjoint", () => {
585
- expect(isOverlapping(a, b, dayjs("2026-04-27T13:00:00Z"), dayjs("2026-04-27T14:00:00Z"))).toBe(false);
586
- });
587
- });
588
-
589
- describe("assignLanes", () => {
590
- it("returns an empty array for no intervals", () => {
591
- expect(assignLanes([])).toEqual([]);
592
- });
593
-
594
- it("places a single interval in lane 0", () => {
595
- expect(assignLanes([{ start: 0, end: 2 }])).toEqual([0]);
596
- });
597
-
598
- it("keeps non-overlapping intervals on the same lane", () => {
599
- expect(
600
- assignLanes([
601
- { start: 0, end: 2 },
602
- { start: 3, end: 5 },
603
- ])
604
- ).toEqual([0, 0]);
605
- });
606
-
607
- it("treats touching boundaries as non-overlapping (lane reuse)", () => {
608
- expect(
609
- assignLanes([
610
- { start: 0, end: 2 },
611
- { start: 2, end: 4 },
612
- ])
613
- ).toEqual([0, 0]);
614
- });
615
-
616
- it("stacks overlapping intervals onto separate lanes", () => {
617
- expect(
618
- assignLanes([
619
- { start: 0, end: 3 },
620
- { start: 1, end: 4 },
621
- { start: 2, end: 5 },
622
- ])
623
- ).toEqual([0, 1, 2]);
624
- });
625
-
626
- it("reuses an earlier lane once its previous occupant ends", () => {
627
- // A: [0,2], B: [1,4], C: [3,5] — C should reuse A's lane (0) after A ends.
628
- expect(
629
- assignLanes([
630
- { start: 0, end: 2 },
631
- { start: 1, end: 4 },
632
- { start: 3, end: 5 },
633
- ])
634
- ).toEqual([0, 1, 0]);
635
- });
636
-
637
- it("returns lane assignments aligned to the original input order, not sorted order", () => {
638
- // Input is intentionally out of start-order; result indices must match input positions.
639
- const lanes = assignLanes([
640
- { start: 3, end: 5 }, // index 0 — placed second (lane 0 reused after index 1)
641
- { start: 0, end: 2 }, // index 1 — placed first (lane 0)
642
- { start: 1, end: 4 }, // index 2 — overlaps both, lane 1
643
- ]);
644
- expect(lanes).toEqual([0, 0, 1]);
645
- });
646
- });
647
-
648
- describe("useAllDayEventBar", () => {
649
- const buildSpan = (overrides: Partial<AllDayEventSpan> = {}): AllDayEventSpan => ({
650
- event: {
651
- id: 1,
652
- title: "Test event",
653
- start: new Date("2026-04-28T00:00:00Z"),
654
- end: new Date("2026-04-28T23:59:59Z"),
655
- options: { allDay: true },
656
- },
657
- startCol: 1,
658
- endCol: 1,
659
- startOffsetInDay: 0,
660
- endOffsetInDay: 1,
661
- lane: 0,
662
- ...overrides,
663
- });
664
-
665
- it("computes top from the lane index using ROW_HEIGHT_PX (32) + ROW_GAP_PX (2) + ROW_PADDING_PX (4)", () => {
666
- const lane0 = renderHook(() =>
667
- useAllDayEventBar({ span: buildSpan({ lane: 0 }), colCount: 7, timezone: "UTC" })
668
- );
669
- const lane1 = renderHook(() =>
670
- useAllDayEventBar({ span: buildSpan({ lane: 1 }), colCount: 7, timezone: "UTC" })
671
- );
672
- const lane2 = renderHook(() =>
673
- useAllDayEventBar({ span: buildSpan({ lane: 2 }), colCount: 7, timezone: "UTC" })
674
- );
675
-
676
- expect(lane0.result.current.containerStyle.top).toBe(4); // ROW_PADDING_PX
677
- expect(lane1.result.current.containerStyle.top).toBe(38); // 4 + 1 * (32 + 2)
678
- expect(lane2.result.current.containerStyle.top).toBe(72); // 4 + 2 * (32 + 2)
679
- });
680
-
681
- it("returns a constant height equal to ROW_HEIGHT_PX (32) regardless of lane", () => {
682
- const lane0 = renderHook(() =>
683
- useAllDayEventBar({ span: buildSpan({ lane: 0 }), colCount: 7, timezone: "UTC" })
684
- );
685
- const lane5 = renderHook(() =>
686
- useAllDayEventBar({ span: buildSpan({ lane: 5 }), colCount: 7, timezone: "UTC" })
687
- );
688
- expect(lane0.result.current.containerStyle.height).toBe(32);
689
- expect(lane5.result.current.containerStyle.height).toBe(32);
690
- });
691
-
692
- it("derives left and width from startCol/endCol/offsets and colCount", () => {
693
- const span = buildSpan({ startCol: 1, endCol: 2, startOffsetInDay: 0, endOffsetInDay: 1 });
694
-
695
- const week = renderHook(() => useAllDayEventBar({ span, colCount: 7, timezone: "UTC" }));
696
- // startPos = 1, endPos = 3 → 1/7 left, 2/7 width
697
- expect(week.result.current.containerStyle.left).toBe(`calc(${(1 / 7) * 100}% + 2px)`);
698
- expect(week.result.current.containerStyle.width).toBe(`calc(${(2 / 7) * 100}% - 4px)`);
699
-
700
- // Same span on a 3-col view (e.g. day-of-3 layout) — verifies colCount is honored.
701
- const threeCol = renderHook(() => useAllDayEventBar({ span, colCount: 3, timezone: "UTC" }));
702
- expect(threeCol.result.current.containerStyle.left).toBe(`calc(${(1 / 3) * 100}% + 2px)`);
703
- expect(threeCol.result.current.containerStyle.width).toBe(`calc(${(2 / 3) * 100}% - 4px)`);
704
- });
705
-
706
- it("returns strip = null when the event has neither an explicit color nor a recognized status", () => {
707
- const span = buildSpan({
708
- event: {
709
- id: 1,
710
- title: "Plain",
711
- start: new Date("2026-04-28T00:00:00Z"),
712
- end: new Date("2026-04-28T23:59:59Z"),
713
- options: { allDay: true },
714
- },
715
- });
716
- const { result } = renderHook(() => useAllDayEventBar({ span, colCount: 7, timezone: "UTC" }));
717
- expect(result.current.strip).toBeNull();
718
- });
719
-
720
- it("uses options.color verbatim as the strip backgroundColor (no colorClass) when set", () => {
721
- const span = buildSpan({
722
- event: {
723
- id: 1,
724
- title: "Colored",
725
- start: new Date("2026-04-28T00:00:00Z"),
726
- end: new Date("2026-04-28T23:59:59Z"),
727
- options: { allDay: true, color: "#ef4444", status: "ACCEPTED" },
728
- },
729
- });
730
- const { result } = renderHook(() => useAllDayEventBar({ span, colCount: 7, timezone: "UTC" }));
731
- // Explicit color wins over status → backgroundColor set, colorClass undefined
732
- expect(result.current.strip).toEqual({ backgroundColor: "#ef4444", colorClass: undefined });
733
- });
734
-
735
- it("derives strip colorClass from booking status when no explicit color is set", () => {
736
- const span = buildSpan({
737
- event: {
738
- id: 1,
739
- title: "Status only",
740
- start: new Date("2026-04-28T00:00:00Z"),
741
- end: new Date("2026-04-28T23:59:59Z"),
742
- options: { allDay: true, status: "ACCEPTED" },
743
- },
744
- });
745
- const { result } = renderHook(() => useAllDayEventBar({ span, colCount: 7, timezone: "UTC" }));
746
- expect(result.current.strip?.backgroundColor).toBeUndefined();
747
- expect(result.current.strip?.colorClass).toContain("bg-green-500");
748
- });
749
-
750
- it("formats timeRange as time-only for single-day events and includes a date prefix for multi-day", () => {
751
- const single = buildSpan({
752
- startCol: 1,
753
- endCol: 1,
754
- event: {
755
- id: 1,
756
- title: "Single",
757
- start: new Date("2026-04-28T07:30:00Z"),
758
- end: new Date("2026-04-28T18:45:00Z"),
759
- options: { allDay: true },
760
- },
761
- });
762
- const singleResult = renderHook(() => useAllDayEventBar({ span: single, colCount: 7, timezone: "UTC" }));
763
- expect(singleResult.result.current.timeRange).toBe("07:30 – 18:45");
764
-
765
- const multi = buildSpan({
766
- startCol: 1,
767
- endCol: 4,
768
- event: {
769
- id: 2,
770
- title: "Multi",
771
- start: new Date("2026-04-28T07:30:00Z"),
772
- end: new Date("2026-05-01T18:45:00Z"),
773
- options: { allDay: true },
774
- },
775
- });
776
- const multiResult = renderHook(() => useAllDayEventBar({ span: multi, colCount: 7, timezone: "UTC" }));
777
- expect(multiResult.result.current.timeRange).toBe("Apr 28, 07:30 – May 1, 18:45");
778
- });
779
-
780
- it("passes options['data-test-id'] through as dataTestId, undefined when missing", () => {
781
- const withId = buildSpan({
782
- event: {
783
- id: 1,
784
- title: "With id",
785
- start: new Date("2026-04-28T00:00:00Z"),
786
- end: new Date("2026-04-28T23:59:59Z"),
787
- options: { allDay: true, "data-test-id": "my-bar" },
788
- },
789
- });
790
- const withIdResult = renderHook(() => useAllDayEventBar({ span: withId, colCount: 7, timezone: "UTC" }));
791
- expect(withIdResult.result.current.dataTestId).toBe("my-bar");
792
-
793
- const withoutId = buildSpan();
794
- const withoutIdResult = renderHook(() =>
795
- useAllDayEventBar({ span: withoutId, colCount: 7, timezone: "UTC" })
796
- );
797
- expect(withoutIdResult.result.current.dataTestId).toBeUndefined();
798
- });
799
- });