@nylas/web-elements 1.1.0-canary.4 → 1.1.0-canary.7

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 (939) hide show
  1. package/dist/cjs/add-circle-icon.cjs.entry.js +1 -1
  2. package/dist/cjs/add-circle-icon_22.cjs.entry.js +224 -94
  3. package/dist/cjs/add-circle-icon_22.cjs.entry.js.map +1 -1
  4. package/dist/cjs/archive-icon.cjs.entry.js +1 -1
  5. package/dist/cjs/archive-icon_7.cjs.entry.js +7 -7
  6. package/dist/cjs/arrow-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/bold-icon.cjs.entry.js +1 -1
  8. package/dist/cjs/bold-icon_3.cjs.entry.js +3 -3
  9. package/dist/cjs/button-component.cjs.entry.js +2 -2
  10. package/dist/cjs/button-component.cjs.entry.js.map +1 -1
  11. package/dist/cjs/calendar-cancel-icon.cjs.entry.js +1 -1
  12. package/dist/cjs/calendar-check-icon.cjs.entry.js +1 -1
  13. package/dist/cjs/calendar-check-icon_2.cjs.entry.js +2 -2
  14. package/dist/cjs/calendar-icon.cjs.entry.js +1 -1
  15. package/dist/cjs/calendar-info-icon.cjs.entry.js +1 -1
  16. package/dist/cjs/calendar-patterns-icon.cjs.entry.js +1 -1
  17. package/dist/cjs/checkmark-circle-icon.cjs.entry.js +1 -1
  18. package/dist/cjs/chevron-icon.cjs.entry.js +1 -1
  19. package/dist/cjs/chevron-icon_3.cjs.entry.js +4 -4
  20. package/dist/cjs/close-icon.cjs.entry.js +1 -1
  21. package/dist/cjs/{constants-6baf1f1d.js → constants-3e962931.js} +11 -1
  22. package/dist/cjs/{constants-6baf1f1d.js.map → constants-3e962931.js.map} +1 -1
  23. package/dist/cjs/{constants-0fba94a4.js → constants-d590922e.js} +11 -1
  24. package/dist/cjs/{constants-0fba94a4.js.map → constants-d590922e.js.map} +1 -1
  25. package/dist/cjs/document-refresh-icon.cjs.entry.js +1 -1
  26. package/dist/cjs/flow-icon.cjs.entry.js +1 -1
  27. package/dist/cjs/folder-icon.cjs.entry.js +1 -1
  28. package/dist/cjs/forward-icon.cjs.entry.js +1 -1
  29. package/dist/cjs/forward-icon_6.cjs.entry.js +9 -9
  30. package/dist/cjs/globe-icon.cjs.entry.js +1 -1
  31. package/dist/cjs/google-logo-icon.cjs.entry.js +1 -1
  32. package/dist/cjs/google-logo-icon_4.cjs.entry.js +467 -0
  33. package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -0
  34. package/dist/cjs/inbox-icon.cjs.entry.js +1 -1
  35. package/dist/cjs/index-7af03e3f.js +1 -158
  36. package/dist/cjs/index-c14ea8f5.js +1 -358
  37. package/dist/cjs/index.cjs.js +3 -1
  38. package/dist/cjs/index.cjs.js.map +1 -1
  39. package/dist/cjs/{index.es-68425511.js → index.es-0a0f2d87.js} +9 -4
  40. package/dist/cjs/index.es-0a0f2d87.js.map +1 -0
  41. package/dist/cjs/{index.es-447c5aca.js → index.es-b12b7df1.js} +9 -4
  42. package/dist/cjs/index.es-b12b7df1.js.map +1 -0
  43. package/dist/cjs/info-icon.cjs.entry.js +1 -1
  44. package/dist/cjs/info-icon_2.cjs.entry.js +2 -2
  45. package/dist/cjs/italic-icon.cjs.entry.js +1 -1
  46. package/dist/cjs/loader.cjs.js +1 -1
  47. package/dist/cjs/loading-icon.cjs.entry.js +1 -1
  48. package/dist/cjs/location-icon.cjs.entry.js +1 -1
  49. package/dist/cjs/location-off-icon.cjs.entry.js +1 -1
  50. package/dist/cjs/{mailbox-store-556bc7b6.js → mailbox-store-05fa3bec.js} +3 -3
  51. package/dist/cjs/{mailbox-store-556bc7b6.js.map → mailbox-store-05fa3bec.js.map} +1 -1
  52. package/dist/cjs/{mailbox-store-aacd75ff.js → mailbox-store-14531fd4.js} +3 -3
  53. package/dist/cjs/{mailbox-store-aacd75ff.js.map → mailbox-store-14531fd4.js.map} +1 -1
  54. package/dist/cjs/microsoft-logo-icon.cjs.entry.js +1 -1
  55. package/dist/cjs/multi-select-dropdown.cjs.entry.js +3 -3
  56. package/dist/cjs/nylas-additional-participants.cjs.entry.js +3 -3
  57. package/dist/cjs/nylas-api-request-27c25287.js +60 -0
  58. package/dist/cjs/nylas-api-request-27c25287.js.map +1 -0
  59. package/dist/cjs/nylas-api-request-abdb8dd8.js +58 -0
  60. package/dist/cjs/nylas-api-request-abdb8dd8.js.map +1 -0
  61. package/dist/cjs/nylas-availability-picker.cjs.entry.js +33 -16
  62. package/dist/cjs/nylas-availability-picker.cjs.entry.js.map +1 -1
  63. package/dist/cjs/nylas-booked-event-card.cjs.entry.js +3 -3
  64. package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js +7 -7
  65. package/dist/cjs/nylas-booking-calendar-picker.cjs.entry.js +12 -6
  66. package/dist/cjs/nylas-booking-calendar-picker.cjs.entry.js.map +1 -1
  67. package/dist/cjs/nylas-booking-form.cjs.entry.js +2 -2
  68. package/dist/cjs/nylas-buffer-time.cjs.entry.js +2 -2
  69. package/dist/cjs/nylas-calendar-picker.cjs.entry.js +13 -8
  70. package/dist/cjs/nylas-calendar-picker.cjs.entry.js.map +1 -1
  71. package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js +3 -3
  72. package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js +3 -3
  73. package/dist/cjs/nylas-composer.cjs.entry.js +2 -2
  74. package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js +21 -12
  75. package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js.map +1 -1
  76. package/dist/cjs/nylas-date-picker.cjs.entry.js +2 -2
  77. package/dist/cjs/nylas-editor-tabs.cjs.entry.js +85 -39
  78. package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
  79. package/dist/cjs/nylas-event-description.cjs.entry.js +15 -6
  80. package/dist/cjs/nylas-event-description.cjs.entry.js.map +1 -1
  81. package/dist/cjs/nylas-event-duration.cjs.entry.js +15 -10
  82. package/dist/cjs/nylas-event-duration.cjs.entry.js.map +1 -1
  83. package/dist/cjs/nylas-event-info.cjs.entry.js +3 -3
  84. package/dist/cjs/nylas-event-limits.cjs.entry.js +3 -3
  85. package/dist/cjs/nylas-event-title.cjs.entry.js +52 -12
  86. package/dist/cjs/nylas-event-title.cjs.entry.js.map +1 -1
  87. package/dist/cjs/nylas-form-card.cjs.entry.js +3 -3
  88. package/dist/cjs/nylas-if-state.cjs.entry.js +2 -2
  89. package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js +24 -11
  90. package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js.map +1 -1
  91. package/dist/cjs/nylas-list-configurations.cjs.entry.js +129 -0
  92. package/dist/cjs/nylas-list-configurations.cjs.entry.js.map +1 -0
  93. package/dist/cjs/nylas-list-folders.cjs.entry.js +3 -3
  94. package/dist/cjs/nylas-list-threads.cjs.entry.js +3 -3
  95. package/dist/cjs/nylas-locale-switch.cjs.entry.js +3 -3
  96. package/dist/cjs/nylas-location-component.cjs.entry.js +17 -6
  97. package/dist/cjs/nylas-location-component.cjs.entry.js.map +1 -1
  98. package/dist/cjs/nylas-login.cjs.entry.js +3 -3
  99. package/dist/cjs/nylas-logo.cjs.entry.js +1 -1
  100. package/dist/cjs/nylas-mailbox-pagination.cjs.entry.js +2 -2
  101. package/dist/cjs/nylas-mailbox-toolbar-button.cjs.entry.js +3 -3
  102. package/dist/cjs/nylas-mailbox.cjs.entry.js +4 -4
  103. package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js +28 -13
  104. package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js.map +1 -1
  105. package/dist/cjs/nylas-notification.cjs.entry.js +2 -2
  106. package/dist/cjs/nylas-provider.cjs.entry.js +6 -6
  107. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +201 -75
  108. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
  109. package/dist/cjs/nylas-scheduling.cjs.entry.js +3 -3
  110. package/dist/cjs/nylas-selected-event-card.cjs.entry.js +3 -3
  111. package/dist/cjs/nylas-summarize-message-button.cjs.entry.js +4 -4
  112. package/dist/cjs/nylas-threads-refresh.cjs.entry.js +4 -4
  113. package/dist/cjs/nylas-threads-search.cjs.entry.js +3 -3
  114. package/dist/cjs/nylas-time-window-picker.cjs.entry.js +2 -2
  115. package/dist/cjs/nylas-timeslot-picker.cjs.entry.js +2 -2
  116. package/dist/cjs/nylas-view-email.cjs.entry.js +2 -2
  117. package/dist/cjs/nylas-view-thread.cjs.entry.js +3 -3
  118. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  119. package/dist/cjs/people-icon.cjs.entry.js +1 -1
  120. package/dist/cjs/play-icon.cjs.entry.js +1 -1
  121. package/dist/cjs/play-icon_2.cjs.entry.js +2 -2
  122. package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
  123. package/dist/cjs/{register-component-d729f3f7.js → register-component-09ebdf31.js} +8 -2
  124. package/dist/cjs/register-component-09ebdf31.js.map +1 -0
  125. package/dist/cjs/{register-component-f1ebc65d.js → register-component-c8b6e907.js} +8 -2
  126. package/dist/cjs/register-component-c8b6e907.js.map +1 -0
  127. package/dist/cjs/reply-all-icon.cjs.entry.js +1 -1
  128. package/dist/cjs/reply-icon.cjs.entry.js +1 -1
  129. package/dist/cjs/scheduler-config-store-37690bf0.js +32 -0
  130. package/dist/cjs/scheduler-config-store-37690bf0.js.map +1 -0
  131. package/dist/cjs/scheduler-config-store-529c8d7e.js +32 -0
  132. package/dist/cjs/scheduler-config-store-529c8d7e.js.map +1 -0
  133. package/dist/cjs/{scheduler-store-7320f5d0.js → scheduler-store-0081970d.js} +16 -3
  134. package/dist/cjs/scheduler-store-0081970d.js.map +1 -0
  135. package/dist/cjs/{scheduler-store-4cb46b3c.js → scheduler-store-67dc1986.js} +16 -3
  136. package/dist/cjs/scheduler-store-67dc1986.js.map +1 -0
  137. package/dist/cjs/search-icon.cjs.entry.js +1 -1
  138. package/dist/cjs/select-dropdown.cjs.entry.js +2 -2
  139. package/dist/cjs/sent-icon.cjs.entry.js +1 -1
  140. package/dist/cjs/spam-icon.cjs.entry.js +1 -1
  141. package/dist/cjs/star-icon.cjs.entry.js +1 -1
  142. package/dist/cjs/stop-icon.cjs.entry.js +1 -1
  143. package/dist/cjs/time-period-selector.cjs.entry.js +2 -2
  144. package/dist/cjs/tooltip-component.cjs.entry.js +1 -1
  145. package/dist/cjs/translate-icon.cjs.entry.js +1 -1
  146. package/dist/cjs/trash-icon.cjs.entry.js +1 -1
  147. package/dist/cjs/underline-icon.cjs.entry.js +1 -1
  148. package/dist/cjs/{utils-53dd7574.js → utils-20663d54.js} +19 -1
  149. package/dist/cjs/utils-20663d54.js.map +1 -0
  150. package/dist/cjs/{utils-53298b01.js → utils-2c7f0895.js} +19 -1
  151. package/dist/cjs/{utils-53298b01.js.map → utils-2c7f0895.js.map} +1 -1
  152. package/dist/cjs/warning-icon.cjs.entry.js +1 -1
  153. package/dist/collection/collection-manifest.json +1 -0
  154. package/dist/collection/common/abstract-provider.js +7 -2
  155. package/dist/collection/common/abstract-provider.js.map +1 -1
  156. package/dist/collection/common/component-types.js.map +1 -1
  157. package/dist/collection/common/constants.js +9 -0
  158. package/dist/collection/common/constants.js.map +1 -1
  159. package/dist/collection/common/icons/add-circle.js +1 -1
  160. package/dist/collection/common/icons/archive.js +1 -1
  161. package/dist/collection/common/icons/arrow.js +1 -1
  162. package/dist/collection/common/icons/bold.js +1 -1
  163. package/dist/collection/common/icons/calendar-cancel.js +1 -1
  164. package/dist/collection/common/icons/calendar-check.js +1 -1
  165. package/dist/collection/common/icons/calendar-info.js +1 -1
  166. package/dist/collection/common/icons/calendar-patterns.js +1 -1
  167. package/dist/collection/common/icons/calendar.js +1 -1
  168. package/dist/collection/common/icons/checkmark-circle.js +1 -1
  169. package/dist/collection/common/icons/chevron.js +1 -1
  170. package/dist/collection/common/icons/close.js +1 -1
  171. package/dist/collection/common/icons/document-refresh.js +1 -1
  172. package/dist/collection/common/icons/flow.js +1 -1
  173. package/dist/collection/common/icons/folder.js +1 -1
  174. package/dist/collection/common/icons/forward.js +1 -1
  175. package/dist/collection/common/icons/globe.js +1 -1
  176. package/dist/collection/common/icons/google-logo.js +1 -1
  177. package/dist/collection/common/icons/inbox.js +1 -1
  178. package/dist/collection/common/icons/info.js +1 -1
  179. package/dist/collection/common/icons/italic.js +1 -1
  180. package/dist/collection/common/icons/loading.js +1 -1
  181. package/dist/collection/common/icons/location-off.js +1 -1
  182. package/dist/collection/common/icons/location.js +1 -1
  183. package/dist/collection/common/icons/microsoft-logo.js +1 -1
  184. package/dist/collection/common/icons/nylas-logo.js +1 -1
  185. package/dist/collection/common/icons/people.js +1 -1
  186. package/dist/collection/common/icons/play.js +1 -1
  187. package/dist/collection/common/icons/refresh.js +1 -1
  188. package/dist/collection/common/icons/reply-all.js +1 -1
  189. package/dist/collection/common/icons/reply.js +1 -1
  190. package/dist/collection/common/icons/search.js +1 -1
  191. package/dist/collection/common/icons/sent.js +1 -1
  192. package/dist/collection/common/icons/spam.js +1 -1
  193. package/dist/collection/common/icons/star.js +1 -1
  194. package/dist/collection/common/icons/stop.js +1 -1
  195. package/dist/collection/common/icons/translate.js +1 -1
  196. package/dist/collection/common/icons/trash.js +1 -1
  197. package/dist/collection/common/icons/underline.js +1 -1
  198. package/dist/collection/common/icons/warning.js +1 -1
  199. package/dist/collection/common/nylas-api-request.js +27 -7
  200. package/dist/collection/common/nylas-api-request.js.map +1 -1
  201. package/dist/collection/common/register-component.js +6 -0
  202. package/dist/collection/common/register-component.js.map +1 -1
  203. package/dist/collection/common/types.js.map +1 -1
  204. package/dist/collection/components/design-system/button-component/button-component.css +5 -0
  205. package/dist/collection/components/design-system/button-component/button-component.js +1 -1
  206. package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +2 -2
  207. package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +2 -2
  208. package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +1 -1
  209. package/dist/collection/components/design-system/tooltip-component/toolitp-component.js +1 -1
  210. package/dist/collection/components/mailbox/nylas-composer/nylas-composer.js +1 -1
  211. package/dist/collection/components/mailbox/nylas-list-folders/nylas-list-folders.js +1 -1
  212. package/dist/collection/components/mailbox/nylas-list-threads/nylas-list-threads.js +1 -1
  213. package/dist/collection/components/mailbox/nylas-mailbox/nylas-mailbox.js +1 -1
  214. package/dist/collection/components/mailbox/nylas-mailbox-toolbar-button/nylas-mailbox-toolbar-button.js +1 -1
  215. package/dist/collection/components/mailbox/nylas-summarize-message-button/nylas-summarize-message-button.js +2 -2
  216. package/dist/collection/components/mailbox/nylas-threads-refresh/nylas-threads-refresh.js +2 -2
  217. package/dist/collection/components/mailbox/nylas-threads-search/nylas-threads-search.js +1 -1
  218. package/dist/collection/components/mailbox/nylas-view-email/nylas-view-email.js +1 -1
  219. package/dist/collection/components/mailbox/nylas-view-thread/nylas-view-thread.js +1 -1
  220. package/dist/collection/components/nylas-login/nylas-login.js +1 -1
  221. package/dist/collection/components/nylas-provider/nylas-provider.js +2 -2
  222. package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js.map +1 -1
  223. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +1 -1
  224. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +1 -1
  225. package/dist/collection/components/scheduler/nylas-notification/nylas-notification.js +1 -1
  226. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +1 -1
  227. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js +55 -15
  228. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js.map +1 -1
  229. package/dist/collection/components/scheduler-editor/nylas-booking-calendar-picker/nylas-booking-calendar-picker.js +32 -5
  230. package/dist/collection/components/scheduler-editor/nylas-booking-calendar-picker/nylas-booking-calendar-picker.js.map +1 -1
  231. package/dist/collection/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.js +23 -14
  232. package/dist/collection/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.js.map +1 -1
  233. package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js +41 -9
  234. package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js.map +1 -1
  235. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.css +48 -9
  236. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +167 -36
  237. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
  238. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js +4 -4
  239. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js.map +1 -1
  240. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.css +1 -1
  241. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js +34 -2
  242. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js.map +1 -1
  243. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.css +1 -1
  244. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js +35 -7
  245. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js.map +1 -1
  246. package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
  247. package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
  248. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.css +8 -1
  249. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +83 -9
  250. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js.map +1 -1
  251. package/dist/collection/components/scheduler-editor/nylas-form-card/nylas-form-card.js +1 -1
  252. package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js +45 -9
  253. package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js.map +1 -1
  254. package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.css +142 -0
  255. package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js +330 -0
  256. package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js.map +1 -0
  257. package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.css +2 -2
  258. package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.js +37 -3
  259. package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.js.map +1 -1
  260. package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js +49 -11
  261. package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js.map +1 -1
  262. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/LoginRequired.js +30 -0
  263. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/LoginRequired.js.map +1 -0
  264. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.css +23 -2
  265. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +108 -53
  266. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js.map +1 -1
  267. package/dist/collection/components/scheduler-editor/nylas-time-window-picker/nylas-time-window-picker.js +1 -1
  268. package/dist/collection/connector/nylas-scheduler-config-connector/index.js.map +1 -1
  269. package/dist/collection/connector/nylas-scheduler-connector/errors/index.js +8 -0
  270. package/dist/collection/connector/nylas-scheduler-connector/errors/index.js.map +1 -1
  271. package/dist/collection/connector/shared/api/scheduler-config.js +118 -30
  272. package/dist/collection/connector/shared/api/scheduler-config.js.map +1 -1
  273. package/dist/collection/connector/shared/api/scheduler.js +6 -1
  274. package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
  275. package/dist/collection/index.js +0 -1
  276. package/dist/collection/index.js.map +1 -1
  277. package/dist/collection/stores/scheduler-config-store.js +15 -2
  278. package/dist/collection/stores/scheduler-config-store.js.map +1 -1
  279. package/dist/collection/utils/utils.js +16 -0
  280. package/dist/collection/utils/utils.js.map +1 -1
  281. package/dist/collection/utils/utils.spec.js +8 -1
  282. package/dist/collection/utils/utils.spec.js.map +1 -1
  283. package/dist/components/add-circle.js +1 -2
  284. package/dist/components/add-circle.js.map +1 -1
  285. package/dist/components/archive.js +1 -2
  286. package/dist/components/archive.js.map +1 -1
  287. package/dist/components/arrow.js +1 -2
  288. package/dist/components/arrow.js.map +1 -1
  289. package/dist/components/bold.js +1 -2
  290. package/dist/components/bold.js.map +1 -1
  291. package/dist/components/button-component2.js +2 -3
  292. package/dist/components/button-component2.js.map +1 -1
  293. package/dist/components/calendar-cancel.js +1 -2
  294. package/dist/components/calendar-cancel.js.map +1 -1
  295. package/dist/components/calendar-check.js +1 -2
  296. package/dist/components/calendar-check.js.map +1 -1
  297. package/dist/components/calendar-info.js +1 -2
  298. package/dist/components/calendar-info.js.map +1 -1
  299. package/dist/components/calendar-patterns.js +1 -2
  300. package/dist/components/calendar-patterns.js.map +1 -1
  301. package/dist/components/calendar.js +1 -2
  302. package/dist/components/calendar.js.map +1 -1
  303. package/dist/components/checkmark-circle.js +1 -2
  304. package/dist/components/checkmark-circle.js.map +1 -1
  305. package/dist/components/chevron.js +1 -2
  306. package/dist/components/chevron.js.map +1 -1
  307. package/dist/components/close.js +1 -2
  308. package/dist/components/close.js.map +1 -1
  309. package/dist/components/constants.js +11 -2
  310. package/dist/components/constants.js.map +1 -1
  311. package/dist/components/document-refresh-icon.js +1 -2
  312. package/dist/components/document-refresh-icon.js.map +1 -1
  313. package/dist/components/flow.js +1 -2
  314. package/dist/components/flow.js.map +1 -1
  315. package/dist/components/focus-visible.js +1 -1
  316. package/dist/components/folder.js +1 -2
  317. package/dist/components/folder.js.map +1 -1
  318. package/dist/components/forward.js +1 -2
  319. package/dist/components/forward.js.map +1 -1
  320. package/dist/components/globe.js +1 -2
  321. package/dist/components/globe.js.map +1 -1
  322. package/dist/components/google-logo.js +1 -2
  323. package/dist/components/google-logo.js.map +1 -1
  324. package/dist/components/inbox.js +1 -2
  325. package/dist/components/inbox.js.map +1 -1
  326. package/dist/components/index.es.js +8 -3
  327. package/dist/components/index.es.js.map +1 -1
  328. package/dist/components/info.js +1 -2
  329. package/dist/components/info.js.map +1 -1
  330. package/dist/components/italic.js +1 -2
  331. package/dist/components/italic.js.map +1 -1
  332. package/dist/components/loading.js +1 -2
  333. package/dist/components/loading.js.map +1 -1
  334. package/dist/components/location-off.js +1 -2
  335. package/dist/components/location-off.js.map +1 -1
  336. package/dist/components/location.js +1 -2
  337. package/dist/components/location.js.map +1 -1
  338. package/dist/components/mailbox-store.js +1 -1
  339. package/dist/components/microsoft-logo.js +1 -2
  340. package/dist/components/microsoft-logo.js.map +1 -1
  341. package/dist/components/multi-select-dropdown2.js +3 -4
  342. package/dist/components/multi-select-dropdown2.js.map +1 -1
  343. package/dist/components/nylas-additional-participants.js +2 -3
  344. package/dist/components/nylas-additional-participants.js.map +1 -1
  345. package/dist/components/nylas-api-request.js +28 -7
  346. package/dist/components/nylas-api-request.js.map +1 -1
  347. package/dist/components/nylas-availability-picker2.js +33 -15
  348. package/dist/components/nylas-availability-picker2.js.map +1 -1
  349. package/dist/components/nylas-booked-event-card2.js +1 -2
  350. package/dist/components/nylas-booked-event-card2.js.map +1 -1
  351. package/dist/components/nylas-booking-calendar-picker2.js +12 -6
  352. package/dist/components/nylas-booking-calendar-picker2.js.map +1 -1
  353. package/dist/components/nylas-booking-form2.js +1 -2
  354. package/dist/components/nylas-booking-form2.js.map +1 -1
  355. package/dist/components/nylas-buffer-time2.js +1 -2
  356. package/dist/components/nylas-buffer-time2.js.map +1 -1
  357. package/dist/components/nylas-calendar-picker2.js +13 -9
  358. package/dist/components/nylas-calendar-picker2.js.map +1 -1
  359. package/dist/components/nylas-cancel-booking-form2.js +2 -3
  360. package/dist/components/nylas-cancel-booking-form2.js.map +1 -1
  361. package/dist/components/nylas-cancelled-event-card2.js +2 -3
  362. package/dist/components/nylas-cancelled-event-card2.js.map +1 -1
  363. package/dist/components/nylas-composer2.js +2 -3
  364. package/dist/components/nylas-composer2.js.map +1 -1
  365. package/dist/components/nylas-custom-booking-flow2.js +23 -13
  366. package/dist/components/nylas-custom-booking-flow2.js.map +1 -1
  367. package/dist/components/nylas-date-picker2.js +1 -2
  368. package/dist/components/nylas-date-picker2.js.map +1 -1
  369. package/dist/components/nylas-editor-tabs2.js +91 -43
  370. package/dist/components/nylas-editor-tabs2.js.map +1 -1
  371. package/dist/components/nylas-event-description2.js +17 -7
  372. package/dist/components/nylas-event-description2.js.map +1 -1
  373. package/dist/components/nylas-event-duration2.js +16 -10
  374. package/dist/components/nylas-event-duration2.js.map +1 -1
  375. package/dist/components/nylas-event-info2.js +2 -3
  376. package/dist/components/nylas-event-info2.js.map +1 -1
  377. package/dist/components/nylas-event-limits2.js +2 -3
  378. package/dist/components/nylas-event-limits2.js.map +1 -1
  379. package/dist/components/nylas-event-title2.js +56 -14
  380. package/dist/components/nylas-event-title2.js.map +1 -1
  381. package/dist/components/nylas-form-card2.js +2 -3
  382. package/dist/components/nylas-form-card2.js.map +1 -1
  383. package/dist/components/nylas-if-state.js +1 -2
  384. package/dist/components/nylas-if-state.js.map +1 -1
  385. package/dist/components/nylas-limit-future-bookings2.js +25 -11
  386. package/dist/components/nylas-limit-future-bookings2.js.map +1 -1
  387. package/dist/components/nylas-list-configurations.d.ts +11 -0
  388. package/dist/components/nylas-list-configurations.js +8 -0
  389. package/dist/components/nylas-list-configurations.js.map +1 -0
  390. package/dist/components/nylas-list-configurations2.js +159 -0
  391. package/dist/components/nylas-list-configurations2.js.map +1 -0
  392. package/dist/components/nylas-list-folders.js +2 -3
  393. package/dist/components/nylas-list-folders.js.map +1 -1
  394. package/dist/components/nylas-list-threads.js +2 -3
  395. package/dist/components/nylas-list-threads.js.map +1 -1
  396. package/dist/components/nylas-locale-switch2.js +0 -1
  397. package/dist/components/nylas-locale-switch2.js.map +1 -1
  398. package/dist/components/nylas-location-component2.js +18 -6
  399. package/dist/components/nylas-location-component2.js.map +1 -1
  400. package/dist/components/nylas-login.js +1 -2
  401. package/dist/components/nylas-login.js.map +1 -1
  402. package/dist/components/nylas-logo2.js +1 -2
  403. package/dist/components/nylas-logo2.js.map +1 -1
  404. package/dist/components/nylas-mailbox-pagination.js +1 -2
  405. package/dist/components/nylas-mailbox-pagination.js.map +1 -1
  406. package/dist/components/nylas-mailbox-toolbar-button.js +2 -3
  407. package/dist/components/nylas-mailbox-toolbar-button.js.map +1 -1
  408. package/dist/components/nylas-mailbox.js +2 -3
  409. package/dist/components/nylas-mailbox.js.map +1 -1
  410. package/dist/components/nylas-min-cancellation-notice2.js +29 -13
  411. package/dist/components/nylas-min-cancellation-notice2.js.map +1 -1
  412. package/dist/components/nylas-notification2.js +2 -3
  413. package/dist/components/nylas-notification2.js.map +1 -1
  414. package/dist/components/nylas-provider.js +2 -3
  415. package/dist/components/nylas-provider.js.map +1 -1
  416. package/dist/components/nylas-scheduler-editor.js +270 -136
  417. package/dist/components/nylas-scheduler-editor.js.map +1 -1
  418. package/dist/components/nylas-scheduling.js +1 -2
  419. package/dist/components/nylas-scheduling.js.map +1 -1
  420. package/dist/components/nylas-selected-event-card2.js +1 -2
  421. package/dist/components/nylas-selected-event-card2.js.map +1 -1
  422. package/dist/components/nylas-summarize-message-button2.js +3 -4
  423. package/dist/components/nylas-summarize-message-button2.js.map +1 -1
  424. package/dist/components/nylas-threads-refresh.js +3 -4
  425. package/dist/components/nylas-threads-refresh.js.map +1 -1
  426. package/dist/components/nylas-threads-search.js +2 -3
  427. package/dist/components/nylas-threads-search.js.map +1 -1
  428. package/dist/components/nylas-time-window-picker2.js +2 -4
  429. package/dist/components/nylas-time-window-picker2.js.map +1 -1
  430. package/dist/components/nylas-timeslot-picker2.js +1 -2
  431. package/dist/components/nylas-timeslot-picker2.js.map +1 -1
  432. package/dist/components/nylas-view-email2.js +2 -4
  433. package/dist/components/nylas-view-email2.js.map +1 -1
  434. package/dist/components/nylas-view-thread.js +2 -3
  435. package/dist/components/nylas-view-thread.js.map +1 -1
  436. package/dist/components/people-icon.js +1 -2
  437. package/dist/components/people-icon.js.map +1 -1
  438. package/dist/components/play.js +1 -2
  439. package/dist/components/play.js.map +1 -1
  440. package/dist/components/refresh.js +1 -2
  441. package/dist/components/refresh.js.map +1 -1
  442. package/dist/components/register-component.js +7 -1
  443. package/dist/components/register-component.js.map +1 -1
  444. package/dist/components/reply-all.js +1 -2
  445. package/dist/components/reply-all.js.map +1 -1
  446. package/dist/components/reply.js +1 -2
  447. package/dist/components/reply.js.map +1 -1
  448. package/dist/components/scheduler-config-store.js +15 -2
  449. package/dist/components/scheduler-config-store.js.map +1 -1
  450. package/dist/components/scheduler-store.js +15 -2
  451. package/dist/components/scheduler-store.js.map +1 -1
  452. package/dist/components/search.js +1 -2
  453. package/dist/components/search.js.map +1 -1
  454. package/dist/components/select-dropdown2.js +2 -3
  455. package/dist/components/select-dropdown2.js.map +1 -1
  456. package/dist/components/sent.js +1 -2
  457. package/dist/components/sent.js.map +1 -1
  458. package/dist/components/spam.js +1 -2
  459. package/dist/components/spam.js.map +1 -1
  460. package/dist/components/star.js +1 -2
  461. package/dist/components/star.js.map +1 -1
  462. package/dist/components/stop.js +1 -2
  463. package/dist/components/stop.js.map +1 -1
  464. package/dist/components/time-period-selector2.js +2 -3
  465. package/dist/components/time-period-selector2.js.map +1 -1
  466. package/dist/components/toolitp-component.js +1 -2
  467. package/dist/components/toolitp-component.js.map +1 -1
  468. package/dist/components/translate.js +1 -2
  469. package/dist/components/translate.js.map +1 -1
  470. package/dist/components/trash.js +1 -2
  471. package/dist/components/trash.js.map +1 -1
  472. package/dist/components/underline.js +1 -2
  473. package/dist/components/underline.js.map +1 -1
  474. package/dist/components/utils.js +49 -2
  475. package/dist/components/utils.js.map +1 -1
  476. package/dist/components/warning.js +1 -2
  477. package/dist/components/warning.js.map +1 -1
  478. package/dist/esm/add-circle-icon.entry.js +1 -1
  479. package/dist/esm/add-circle-icon_22.entry.js +224 -94
  480. package/dist/esm/add-circle-icon_22.entry.js.map +1 -1
  481. package/dist/esm/archive-icon.entry.js +1 -1
  482. package/dist/esm/archive-icon_7.entry.js +7 -7
  483. package/dist/esm/arrow-icon.entry.js +1 -1
  484. package/dist/esm/bold-icon.entry.js +1 -1
  485. package/dist/esm/bold-icon_3.entry.js +3 -3
  486. package/dist/esm/button-component.entry.js +2 -2
  487. package/dist/esm/button-component.entry.js.map +1 -1
  488. package/dist/esm/calendar-cancel-icon.entry.js +1 -1
  489. package/dist/esm/calendar-check-icon.entry.js +1 -1
  490. package/dist/esm/calendar-check-icon_2.entry.js +2 -2
  491. package/dist/esm/calendar-icon.entry.js +1 -1
  492. package/dist/esm/calendar-info-icon.entry.js +1 -1
  493. package/dist/esm/calendar-patterns-icon.entry.js +1 -1
  494. package/dist/esm/checkmark-circle-icon.entry.js +1 -1
  495. package/dist/esm/chevron-icon.entry.js +1 -1
  496. package/dist/esm/chevron-icon_3.entry.js +4 -4
  497. package/dist/esm/close-icon.entry.js +1 -1
  498. package/dist/esm/{constants-335dffcf.js → constants-bf39e913.js} +11 -2
  499. package/dist/esm/{constants-335dffcf.js.map → constants-bf39e913.js.map} +1 -1
  500. package/dist/esm/{constants-6ee60d6d.js → constants-f34b9c6e.js} +11 -2
  501. package/dist/esm/{constants-6ee60d6d.js.map → constants-f34b9c6e.js.map} +1 -1
  502. package/dist/esm/document-refresh-icon.entry.js +1 -1
  503. package/dist/esm/flow-icon.entry.js +1 -1
  504. package/dist/esm/folder-icon.entry.js +1 -1
  505. package/dist/esm/forward-icon.entry.js +1 -1
  506. package/dist/esm/forward-icon_6.entry.js +9 -9
  507. package/dist/esm/globe-icon.entry.js +1 -1
  508. package/dist/esm/google-logo-icon.entry.js +1 -1
  509. package/dist/esm/google-logo-icon_4.entry.js +460 -0
  510. package/dist/esm/google-logo-icon_4.entry.js.map +1 -0
  511. package/dist/esm/inbox-icon.entry.js +1 -1
  512. package/dist/esm/index-7cb0dd3d.js +1 -158
  513. package/dist/esm/index-8362ce5c.js +1 -358
  514. package/dist/{nylas-web-elements/index.es-bd511719.js → esm/index.es-2842f8c8.js} +9 -4
  515. package/dist/esm/index.es-2842f8c8.js.map +1 -0
  516. package/dist/esm/{index.es-2578c6a5.js → index.es-f57e612a.js} +9 -4
  517. package/dist/esm/index.es-f57e612a.js.map +1 -0
  518. package/dist/esm/index.js +3 -1
  519. package/dist/esm/index.js.map +1 -1
  520. package/dist/esm/info-icon.entry.js +1 -1
  521. package/dist/esm/info-icon_2.entry.js +2 -2
  522. package/dist/esm/italic-icon.entry.js +1 -1
  523. package/dist/esm/loader.js +1 -1
  524. package/dist/esm/loading-icon.entry.js +1 -1
  525. package/dist/esm/location-icon.entry.js +1 -1
  526. package/dist/esm/location-off-icon.entry.js +1 -1
  527. package/dist/esm/{mailbox-store-bb21512c.js → mailbox-store-47fc8a1a.js} +3 -3
  528. package/dist/esm/{mailbox-store-150cc456.js.map → mailbox-store-47fc8a1a.js.map} +1 -1
  529. package/dist/esm/{mailbox-store-150cc456.js → mailbox-store-d48269de.js} +3 -3
  530. package/dist/{nylas-web-elements/mailbox-store-150cc456.js.map → esm/mailbox-store-d48269de.js.map} +1 -1
  531. package/dist/esm/microsoft-logo-icon.entry.js +1 -1
  532. package/dist/esm/multi-select-dropdown.entry.js +3 -3
  533. package/dist/esm/nylas-additional-participants.entry.js +3 -3
  534. package/dist/esm/nylas-api-request-8932547a.js +56 -0
  535. package/dist/esm/nylas-api-request-8932547a.js.map +1 -0
  536. package/dist/esm/nylas-api-request-b085294d.js +58 -0
  537. package/dist/esm/nylas-api-request-b085294d.js.map +1 -0
  538. package/dist/esm/nylas-availability-picker.entry.js +33 -16
  539. package/dist/esm/nylas-availability-picker.entry.js.map +1 -1
  540. package/dist/esm/nylas-booked-event-card.entry.js +3 -3
  541. package/dist/esm/nylas-booked-event-card_10.entry.js +7 -7
  542. package/dist/esm/nylas-booking-calendar-picker.entry.js +12 -6
  543. package/dist/esm/nylas-booking-calendar-picker.entry.js.map +1 -1
  544. package/dist/esm/nylas-booking-form.entry.js +2 -2
  545. package/dist/esm/nylas-buffer-time.entry.js +2 -2
  546. package/dist/esm/nylas-calendar-picker.entry.js +13 -8
  547. package/dist/esm/nylas-calendar-picker.entry.js.map +1 -1
  548. package/dist/esm/nylas-cancel-booking-form.entry.js +3 -3
  549. package/dist/esm/nylas-cancelled-event-card.entry.js +3 -3
  550. package/dist/esm/nylas-composer.entry.js +2 -2
  551. package/dist/esm/nylas-custom-booking-flow.entry.js +21 -12
  552. package/dist/esm/nylas-custom-booking-flow.entry.js.map +1 -1
  553. package/dist/esm/nylas-date-picker.entry.js +2 -2
  554. package/dist/esm/nylas-editor-tabs.entry.js +86 -40
  555. package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
  556. package/dist/esm/nylas-event-description.entry.js +15 -6
  557. package/dist/esm/nylas-event-description.entry.js.map +1 -1
  558. package/dist/esm/nylas-event-duration.entry.js +15 -10
  559. package/dist/esm/nylas-event-duration.entry.js.map +1 -1
  560. package/dist/esm/nylas-event-info.entry.js +3 -3
  561. package/dist/esm/nylas-event-limits.entry.js +3 -3
  562. package/dist/esm/nylas-event-title.entry.js +52 -12
  563. package/dist/esm/nylas-event-title.entry.js.map +1 -1
  564. package/dist/esm/nylas-form-card.entry.js +3 -3
  565. package/dist/esm/nylas-if-state.entry.js +2 -2
  566. package/dist/esm/nylas-limit-future-bookings.entry.js +24 -11
  567. package/dist/esm/nylas-limit-future-bookings.entry.js.map +1 -1
  568. package/dist/esm/nylas-list-configurations.entry.js +125 -0
  569. package/dist/esm/nylas-list-configurations.entry.js.map +1 -0
  570. package/dist/esm/nylas-list-folders.entry.js +3 -3
  571. package/dist/esm/nylas-list-threads.entry.js +3 -3
  572. package/dist/esm/nylas-locale-switch.entry.js +3 -3
  573. package/dist/esm/nylas-location-component.entry.js +17 -6
  574. package/dist/esm/nylas-location-component.entry.js.map +1 -1
  575. package/dist/esm/nylas-login.entry.js +3 -3
  576. package/dist/esm/nylas-logo.entry.js +1 -1
  577. package/dist/esm/nylas-mailbox-pagination.entry.js +2 -2
  578. package/dist/esm/nylas-mailbox-toolbar-button.entry.js +3 -3
  579. package/dist/esm/nylas-mailbox.entry.js +4 -4
  580. package/dist/esm/nylas-min-cancellation-notice.entry.js +28 -13
  581. package/dist/esm/nylas-min-cancellation-notice.entry.js.map +1 -1
  582. package/dist/esm/nylas-notification.entry.js +2 -2
  583. package/dist/esm/nylas-provider.entry.js +6 -6
  584. package/dist/esm/nylas-scheduler-editor.entry.js +202 -76
  585. package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
  586. package/dist/esm/nylas-scheduling.entry.js +3 -3
  587. package/dist/esm/nylas-selected-event-card.entry.js +3 -3
  588. package/dist/esm/nylas-summarize-message-button.entry.js +4 -4
  589. package/dist/esm/nylas-threads-refresh.entry.js +4 -4
  590. package/dist/esm/nylas-threads-search.entry.js +3 -3
  591. package/dist/esm/nylas-time-window-picker.entry.js +2 -2
  592. package/dist/esm/nylas-timeslot-picker.entry.js +2 -2
  593. package/dist/esm/nylas-view-email.entry.js +2 -2
  594. package/dist/esm/nylas-view-thread.entry.js +3 -3
  595. package/dist/esm/nylas-web-elements.js +1 -1
  596. package/dist/esm/people-icon.entry.js +1 -1
  597. package/dist/esm/play-icon.entry.js +1 -1
  598. package/dist/esm/play-icon_2.entry.js +2 -2
  599. package/dist/esm/refresh-icon.entry.js +1 -1
  600. package/dist/esm/{register-component-dc659dc3.js → register-component-cf5c8420.js} +8 -2
  601. package/dist/esm/register-component-cf5c8420.js.map +1 -0
  602. package/dist/{nylas-web-elements/register-component-0645dce0.js → esm/register-component-e5afe237.js} +8 -2
  603. package/dist/esm/register-component-e5afe237.js.map +1 -0
  604. package/dist/esm/reply-all-icon.entry.js +1 -1
  605. package/dist/esm/reply-icon.entry.js +1 -1
  606. package/dist/esm/scheduler-config-store-07d98279.js +30 -0
  607. package/dist/esm/scheduler-config-store-07d98279.js.map +1 -0
  608. package/dist/esm/scheduler-config-store-8f2e658e.js +30 -0
  609. package/dist/esm/scheduler-config-store-8f2e658e.js.map +1 -0
  610. package/dist/{nylas-web-elements/scheduler-store-4d0a4f8a.js → esm/scheduler-store-66c2168c.js} +16 -3
  611. package/dist/esm/scheduler-store-66c2168c.js.map +1 -0
  612. package/dist/esm/{scheduler-store-72116723.js → scheduler-store-a175fc3e.js} +16 -3
  613. package/dist/esm/scheduler-store-a175fc3e.js.map +1 -0
  614. package/dist/esm/search-icon.entry.js +1 -1
  615. package/dist/esm/select-dropdown.entry.js +2 -2
  616. package/dist/esm/sent-icon.entry.js +1 -1
  617. package/dist/esm/spam-icon.entry.js +1 -1
  618. package/dist/esm/star-icon.entry.js +1 -1
  619. package/dist/esm/stop-icon.entry.js +1 -1
  620. package/dist/esm/time-period-selector.entry.js +2 -2
  621. package/dist/esm/tooltip-component.entry.js +1 -1
  622. package/dist/esm/translate-icon.entry.js +1 -1
  623. package/dist/esm/trash-icon.entry.js +1 -1
  624. package/dist/esm/underline-icon.entry.js +1 -1
  625. package/dist/esm/{utils-3a8d433a.js → utils-73d8a928.js} +18 -2
  626. package/dist/{nylas-web-elements/utils-3a8d433a.js.map → esm/utils-73d8a928.js.map} +1 -1
  627. package/dist/esm/{utils-c00bdc3c.js → utils-d6204242.js} +18 -2
  628. package/dist/esm/utils-d6204242.js.map +1 -0
  629. package/dist/esm/warning-icon.entry.js +1 -1
  630. package/dist/nylas-web-elements/add-circle-icon.entry.js +1 -1
  631. package/dist/nylas-web-elements/archive-icon.entry.js +1 -1
  632. package/dist/nylas-web-elements/arrow-icon.entry.js +1 -1
  633. package/dist/nylas-web-elements/bold-icon.entry.js +1 -1
  634. package/dist/nylas-web-elements/button-component.entry.js +2 -2
  635. package/dist/nylas-web-elements/button-component.entry.js.map +1 -1
  636. package/dist/nylas-web-elements/calendar-cancel-icon.entry.js +1 -1
  637. package/dist/nylas-web-elements/calendar-check-icon.entry.js +1 -1
  638. package/dist/nylas-web-elements/calendar-icon.entry.js +1 -1
  639. package/dist/nylas-web-elements/calendar-info-icon.entry.js +1 -1
  640. package/dist/nylas-web-elements/calendar-patterns-icon.entry.js +1 -1
  641. package/dist/nylas-web-elements/checkmark-circle-icon.entry.js +1 -1
  642. package/dist/nylas-web-elements/chevron-icon.entry.js +1 -1
  643. package/dist/nylas-web-elements/close-icon.entry.js +1 -1
  644. package/dist/nylas-web-elements/{constants-335dffcf.js → constants-bf39e913.js} +11 -2
  645. package/dist/nylas-web-elements/{constants-335dffcf.js.map → constants-bf39e913.js.map} +1 -1
  646. package/dist/nylas-web-elements/document-refresh-icon.entry.js +1 -1
  647. package/dist/nylas-web-elements/flow-icon.entry.js +1 -1
  648. package/dist/nylas-web-elements/folder-icon.entry.js +1 -1
  649. package/dist/nylas-web-elements/forward-icon.entry.js +1 -1
  650. package/dist/nylas-web-elements/globe-icon.entry.js +1 -1
  651. package/dist/nylas-web-elements/google-logo-icon.entry.js +1 -1
  652. package/dist/nylas-web-elements/inbox-icon.entry.js +1 -1
  653. package/dist/{esm/index.es-bd511719.js → nylas-web-elements/index.es-2842f8c8.js} +9 -4
  654. package/dist/nylas-web-elements/index.es-2842f8c8.js.map +1 -0
  655. package/dist/nylas-web-elements/index.esm.js +3 -1
  656. package/dist/nylas-web-elements/index.esm.js.map +1 -1
  657. package/dist/nylas-web-elements/info-icon.entry.js +1 -1
  658. package/dist/nylas-web-elements/italic-icon.entry.js +1 -1
  659. package/dist/nylas-web-elements/loading-icon.entry.js +1 -1
  660. package/dist/nylas-web-elements/location-icon.entry.js +1 -1
  661. package/dist/nylas-web-elements/location-off-icon.entry.js +1 -1
  662. package/dist/nylas-web-elements/{mailbox-store-150cc456.js → mailbox-store-d48269de.js} +3 -3
  663. package/dist/{esm/mailbox-store-bb21512c.js.map → nylas-web-elements/mailbox-store-d48269de.js.map} +1 -1
  664. package/dist/nylas-web-elements/microsoft-logo-icon.entry.js +1 -1
  665. package/dist/nylas-web-elements/multi-select-dropdown.entry.js +3 -3
  666. package/dist/nylas-web-elements/nylas-additional-participants.entry.js +3 -3
  667. package/dist/nylas-web-elements/nylas-api-request-b085294d.js +58 -0
  668. package/dist/nylas-web-elements/nylas-api-request-b085294d.js.map +1 -0
  669. package/dist/nylas-web-elements/nylas-availability-picker.entry.js +33 -16
  670. package/dist/nylas-web-elements/nylas-availability-picker.entry.js.map +1 -1
  671. package/dist/nylas-web-elements/nylas-booked-event-card.entry.js +3 -3
  672. package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js +12 -6
  673. package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js.map +1 -1
  674. package/dist/nylas-web-elements/nylas-booking-form.entry.js +2 -2
  675. package/dist/nylas-web-elements/nylas-buffer-time.entry.js +2 -2
  676. package/dist/nylas-web-elements/nylas-calendar-picker.entry.js +13 -8
  677. package/dist/nylas-web-elements/nylas-calendar-picker.entry.js.map +1 -1
  678. package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +3 -3
  679. package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +3 -3
  680. package/dist/nylas-web-elements/nylas-composer.entry.js +2 -2
  681. package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js +21 -12
  682. package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js.map +1 -1
  683. package/dist/nylas-web-elements/nylas-date-picker.entry.js +2 -2
  684. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +86 -40
  685. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
  686. package/dist/nylas-web-elements/nylas-event-description.entry.js +15 -6
  687. package/dist/nylas-web-elements/nylas-event-description.entry.js.map +1 -1
  688. package/dist/nylas-web-elements/nylas-event-duration.entry.js +15 -10
  689. package/dist/nylas-web-elements/nylas-event-duration.entry.js.map +1 -1
  690. package/dist/nylas-web-elements/nylas-event-info.entry.js +3 -3
  691. package/dist/nylas-web-elements/nylas-event-limits.entry.js +3 -3
  692. package/dist/nylas-web-elements/nylas-event-title.entry.js +52 -12
  693. package/dist/nylas-web-elements/nylas-event-title.entry.js.map +1 -1
  694. package/dist/nylas-web-elements/nylas-form-card.entry.js +3 -3
  695. package/dist/nylas-web-elements/nylas-if-state.entry.js +2 -2
  696. package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js +24 -11
  697. package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js.map +1 -1
  698. package/dist/nylas-web-elements/nylas-list-configurations.entry.js +125 -0
  699. package/dist/nylas-web-elements/nylas-list-configurations.entry.js.map +1 -0
  700. package/dist/nylas-web-elements/nylas-list-folders.entry.js +3 -3
  701. package/dist/nylas-web-elements/nylas-list-threads.entry.js +3 -3
  702. package/dist/nylas-web-elements/nylas-locale-switch.entry.js +3 -3
  703. package/dist/nylas-web-elements/nylas-location-component.entry.js +17 -6
  704. package/dist/nylas-web-elements/nylas-location-component.entry.js.map +1 -1
  705. package/dist/nylas-web-elements/nylas-login.entry.js +3 -3
  706. package/dist/nylas-web-elements/nylas-logo.entry.js +1 -1
  707. package/dist/nylas-web-elements/nylas-mailbox-pagination.entry.js +2 -2
  708. package/dist/nylas-web-elements/nylas-mailbox-toolbar-button.entry.js +3 -3
  709. package/dist/nylas-web-elements/nylas-mailbox.entry.js +4 -4
  710. package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js +28 -13
  711. package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js.map +1 -1
  712. package/dist/nylas-web-elements/nylas-notification.entry.js +2 -2
  713. package/dist/nylas-web-elements/nylas-provider.entry.js +6 -6
  714. package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +202 -76
  715. package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js.map +1 -1
  716. package/dist/nylas-web-elements/nylas-scheduling.entry.js +3 -3
  717. package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +3 -3
  718. package/dist/nylas-web-elements/nylas-summarize-message-button.entry.js +4 -4
  719. package/dist/nylas-web-elements/nylas-threads-refresh.entry.js +4 -4
  720. package/dist/nylas-web-elements/nylas-threads-search.entry.js +3 -3
  721. package/dist/nylas-web-elements/nylas-time-window-picker.entry.js +2 -2
  722. package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js +2 -2
  723. package/dist/nylas-web-elements/nylas-view-email.entry.js +2 -2
  724. package/dist/nylas-web-elements/nylas-view-thread.entry.js +3 -3
  725. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  726. package/dist/nylas-web-elements/p-00a9efc1.entry.js +2 -0
  727. package/dist/nylas-web-elements/p-1a91cce5.entry.js +2 -0
  728. package/dist/nylas-web-elements/p-1a91cce5.entry.js.map +1 -0
  729. package/dist/nylas-web-elements/{p-3631e6e5.entry.js → p-1d25ca06.entry.js} +2 -2
  730. package/dist/nylas-web-elements/p-1e445e86.entry.js +2 -0
  731. package/dist/nylas-web-elements/{p-395f49eb.entry.js → p-2081b475.entry.js} +2 -2
  732. package/dist/nylas-web-elements/p-22e5436c.js +2 -0
  733. package/dist/nylas-web-elements/p-22e5436c.js.map +1 -0
  734. package/dist/nylas-web-elements/p-2b636359.entry.js +2 -0
  735. package/dist/nylas-web-elements/p-2b636359.entry.js.map +1 -0
  736. package/dist/nylas-web-elements/{p-4ee6f11e.entry.js → p-30784693.entry.js} +2 -2
  737. package/dist/nylas-web-elements/{p-40ed7eab.entry.js → p-33b940fb.entry.js} +2 -2
  738. package/dist/nylas-web-elements/p-343a02e1.entry.js +2 -0
  739. package/dist/nylas-web-elements/{p-4d9fceeb.entry.js → p-343b8684.entry.js} +2 -2
  740. package/dist/nylas-web-elements/p-3909ec3f.entry.js +2 -0
  741. package/dist/nylas-web-elements/{p-d85eecf4.entry.js.map → p-3909ec3f.entry.js.map} +1 -1
  742. package/dist/nylas-web-elements/{p-409d4410.entry.js → p-3b281401.entry.js} +2 -2
  743. package/dist/nylas-web-elements/{p-901f9612.js → p-41dc0d93.js} +2 -2
  744. package/dist/nylas-web-elements/p-41dc0d93.js.map +1 -0
  745. package/dist/nylas-web-elements/{p-5a3809a7.entry.js → p-42791515.entry.js} +2 -2
  746. package/dist/nylas-web-elements/p-44a9ce77.entry.js +2 -0
  747. package/dist/nylas-web-elements/{p-1819b3d7.js → p-49f716ed.js} +4 -4
  748. package/dist/nylas-web-elements/p-49f716ed.js.map +1 -0
  749. package/dist/nylas-web-elements/{p-b2208193.entry.js → p-50b4a80f.entry.js} +2 -2
  750. package/dist/nylas-web-elements/{p-42a4c2fd.entry.js → p-571472d4.entry.js} +2 -2
  751. package/dist/nylas-web-elements/{p-2523c292.entry.js → p-607b547b.entry.js} +2 -2
  752. package/dist/nylas-web-elements/{p-006ab406.entry.js → p-6110351b.entry.js} +2 -2
  753. package/dist/nylas-web-elements/{p-65062d50.entry.js → p-665ef10b.entry.js} +4 -4
  754. package/dist/nylas-web-elements/p-665ef10b.entry.js.map +1 -0
  755. package/dist/nylas-web-elements/{p-deafc6bc.entry.js → p-694b511a.entry.js} +2 -2
  756. package/dist/nylas-web-elements/{p-64364434.entry.js → p-73c062f8.entry.js} +2 -2
  757. package/dist/nylas-web-elements/p-75a8d077.entry.js +2 -0
  758. package/dist/nylas-web-elements/{p-41c1654e.entry.js.map → p-75a8d077.entry.js.map} +1 -1
  759. package/dist/nylas-web-elements/p-7c55dfa0.entry.js +2 -0
  760. package/dist/nylas-web-elements/{p-ba3d383f.entry.js.map → p-7c55dfa0.entry.js.map} +1 -1
  761. package/dist/nylas-web-elements/{p-3da66838.entry.js → p-80d6175c.entry.js} +2 -2
  762. package/dist/nylas-web-elements/p-939db546.entry.js +2 -0
  763. package/dist/nylas-web-elements/{p-a1e27dc5.entry.js → p-95a3094a.entry.js} +2 -2
  764. package/dist/nylas-web-elements/p-9ea458c3.js +2 -0
  765. package/dist/nylas-web-elements/p-9ea458c3.js.map +1 -0
  766. package/dist/nylas-web-elements/p-a628eaeb.js +2 -0
  767. package/dist/nylas-web-elements/p-a628eaeb.js.map +1 -0
  768. package/dist/nylas-web-elements/p-ad64c2b8.entry.js +2 -0
  769. package/dist/nylas-web-elements/{p-baa620b4.entry.js → p-b25821e1.entry.js} +2 -2
  770. package/dist/nylas-web-elements/{p-374527e6.entry.js → p-b53062f7.entry.js} +2 -2
  771. package/dist/nylas-web-elements/p-bbf9aff2.entry.js +2 -0
  772. package/dist/nylas-web-elements/p-c20ab972.entry.js +2 -0
  773. package/dist/nylas-web-elements/{p-7b1bb792.entry.js → p-cc674b3b.entry.js} +3 -3
  774. package/dist/nylas-web-elements/p-d8f09631.entry.js +2 -0
  775. package/dist/nylas-web-elements/p-db15d382.js +2 -0
  776. package/dist/nylas-web-elements/p-db15d382.js.map +1 -0
  777. package/dist/nylas-web-elements/{p-9dac153b.entry.js → p-df6d54c7.entry.js} +2 -2
  778. package/dist/nylas-web-elements/{p-d224c7af.entry.js → p-e03b2592.entry.js} +2 -2
  779. package/dist/nylas-web-elements/{p-9f168ff0.js → p-e22aa0b0.js} +2 -2
  780. package/dist/nylas-web-elements/{p-408dda49.js → p-eaa9151b.js} +2 -2
  781. package/dist/nylas-web-elements/p-eaa9151b.js.map +1 -0
  782. package/dist/nylas-web-elements/{p-ad9c3cab.entry.js → p-f154a362.entry.js} +2 -2
  783. package/dist/nylas-web-elements/{p-ae01e1cb.entry.js → p-f1f8f745.entry.js} +2 -2
  784. package/dist/nylas-web-elements/people-icon.entry.js +1 -1
  785. package/dist/nylas-web-elements/play-icon.entry.js +1 -1
  786. package/dist/nylas-web-elements/refresh-icon.entry.js +1 -1
  787. package/dist/{esm/register-component-0645dce0.js → nylas-web-elements/register-component-e5afe237.js} +8 -2
  788. package/dist/nylas-web-elements/register-component-e5afe237.js.map +1 -0
  789. package/dist/nylas-web-elements/reply-all-icon.entry.js +1 -1
  790. package/dist/nylas-web-elements/reply-icon.entry.js +1 -1
  791. package/dist/nylas-web-elements/scheduler-config-store-8f2e658e.js +30 -0
  792. package/dist/nylas-web-elements/scheduler-config-store-8f2e658e.js.map +1 -0
  793. package/dist/{esm/scheduler-store-4d0a4f8a.js → nylas-web-elements/scheduler-store-66c2168c.js} +16 -3
  794. package/dist/nylas-web-elements/scheduler-store-66c2168c.js.map +1 -0
  795. package/dist/nylas-web-elements/search-icon.entry.js +1 -1
  796. package/dist/nylas-web-elements/select-dropdown.entry.js +2 -2
  797. package/dist/nylas-web-elements/sent-icon.entry.js +1 -1
  798. package/dist/nylas-web-elements/spam-icon.entry.js +1 -1
  799. package/dist/nylas-web-elements/star-icon.entry.js +1 -1
  800. package/dist/nylas-web-elements/stop-icon.entry.js +1 -1
  801. package/dist/nylas-web-elements/time-period-selector.entry.js +2 -2
  802. package/dist/nylas-web-elements/tooltip-component.entry.js +1 -1
  803. package/dist/nylas-web-elements/translate-icon.entry.js +1 -1
  804. package/dist/nylas-web-elements/trash-icon.entry.js +1 -1
  805. package/dist/nylas-web-elements/underline-icon.entry.js +1 -1
  806. package/dist/nylas-web-elements/{utils-3a8d433a.js → utils-73d8a928.js} +18 -2
  807. package/dist/{esm/utils-3a8d433a.js.map → nylas-web-elements/utils-73d8a928.js.map} +1 -1
  808. package/dist/nylas-web-elements/warning-icon.entry.js +1 -1
  809. package/dist/types/common/component-types.d.ts +3 -1
  810. package/dist/types/common/constants.d.ts +2 -0
  811. package/dist/types/common/nylas-api-request.d.ts +6 -2
  812. package/dist/types/common/register-component.d.ts +1 -0
  813. package/dist/types/common/types.d.ts +3 -1
  814. package/dist/types/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.d.ts +10 -4
  815. package/dist/types/components/scheduler-editor/nylas-booking-calendar-picker/nylas-booking-calendar-picker.d.ts +2 -0
  816. package/dist/types/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.d.ts +3 -2
  817. package/dist/types/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.d.ts +4 -1
  818. package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +41 -7
  819. package/dist/types/components/scheduler-editor/nylas-event-description/nylas-event-description.d.ts +3 -0
  820. package/dist/types/components/scheduler-editor/nylas-event-duration/nylas-event-duration.d.ts +3 -0
  821. package/dist/types/components/scheduler-editor/nylas-event-title/nylas-event-title.d.ts +6 -1
  822. package/dist/types/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.d.ts +6 -6
  823. package/dist/types/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.d.ts +27 -0
  824. package/dist/types/components/scheduler-editor/nylas-location-component/nylas-location-component.d.ts +3 -0
  825. package/dist/types/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.d.ts +4 -1
  826. package/dist/types/components/scheduler-editor/nylas-scheduler-editor/LoginRequired.d.ts +4 -0
  827. package/dist/types/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.d.ts +9 -4
  828. package/dist/types/components.d.ts +229 -18
  829. package/dist/types/connector/nylas-connector/index.d.ts +1 -1
  830. package/dist/types/connector/nylas-scheduler-config-connector/index.d.ts +3 -3
  831. package/dist/types/connector/nylas-scheduler-connector/errors/index.d.ts +1 -0
  832. package/dist/types/connector/shared/api/scheduler-config.d.ts +45 -8
  833. package/dist/types/index.d.ts +1 -1
  834. package/dist/types/stores/scheduler-config-store.d.ts +8 -2
  835. package/dist/types/utils/utils.d.ts +4 -1
  836. package/package.json +4 -3
  837. package/dist/cjs/google-logo-icon_3.cjs.entry.js +0 -302
  838. package/dist/cjs/google-logo-icon_3.cjs.entry.js.map +0 -1
  839. package/dist/cjs/index.es-447c5aca.js.map +0 -1
  840. package/dist/cjs/index.es-68425511.js.map +0 -1
  841. package/dist/cjs/nylas-api-request-8ec3a89c.js +0 -39
  842. package/dist/cjs/nylas-api-request-8ec3a89c.js.map +0 -1
  843. package/dist/cjs/nylas-api-request-ab24150d.js +0 -37
  844. package/dist/cjs/nylas-api-request-ab24150d.js.map +0 -1
  845. package/dist/cjs/register-component-d729f3f7.js.map +0 -1
  846. package/dist/cjs/register-component-f1ebc65d.js.map +0 -1
  847. package/dist/cjs/scheduler-config-store-31b83ad3.js +0 -19
  848. package/dist/cjs/scheduler-config-store-31b83ad3.js.map +0 -1
  849. package/dist/cjs/scheduler-config-store-9c2cc421.js +0 -19
  850. package/dist/cjs/scheduler-config-store-9c2cc421.js.map +0 -1
  851. package/dist/cjs/scheduler-store-4cb46b3c.js.map +0 -1
  852. package/dist/cjs/scheduler-store-7320f5d0.js.map +0 -1
  853. package/dist/cjs/utils-53dd7574.js.map +0 -1
  854. package/dist/components/_commonjsHelpers.js +0 -36
  855. package/dist/components/_commonjsHelpers.js.map +0 -1
  856. package/dist/esm/google-logo-icon_3.entry.js +0 -296
  857. package/dist/esm/google-logo-icon_3.entry.js.map +0 -1
  858. package/dist/esm/index.es-2578c6a5.js.map +0 -1
  859. package/dist/esm/index.es-bd511719.js.map +0 -1
  860. package/dist/esm/nylas-api-request-55446aba.js +0 -37
  861. package/dist/esm/nylas-api-request-55446aba.js.map +0 -1
  862. package/dist/esm/nylas-api-request-c97a0153.js +0 -35
  863. package/dist/esm/nylas-api-request-c97a0153.js.map +0 -1
  864. package/dist/esm/register-component-0645dce0.js.map +0 -1
  865. package/dist/esm/register-component-dc659dc3.js.map +0 -1
  866. package/dist/esm/scheduler-config-store-51ee4f42.js +0 -17
  867. package/dist/esm/scheduler-config-store-51ee4f42.js.map +0 -1
  868. package/dist/esm/scheduler-config-store-bc59545b.js +0 -17
  869. package/dist/esm/scheduler-config-store-bc59545b.js.map +0 -1
  870. package/dist/esm/scheduler-store-4d0a4f8a.js.map +0 -1
  871. package/dist/esm/scheduler-store-72116723.js.map +0 -1
  872. package/dist/esm/utils-c00bdc3c.js.map +0 -1
  873. package/dist/nylas-web-elements/index.es-bd511719.js.map +0 -1
  874. package/dist/nylas-web-elements/nylas-api-request-55446aba.js +0 -37
  875. package/dist/nylas-web-elements/nylas-api-request-55446aba.js.map +0 -1
  876. package/dist/nylas-web-elements/p-01bf65c2.entry.js +0 -2
  877. package/dist/nylas-web-elements/p-1819b3d7.js.map +0 -1
  878. package/dist/nylas-web-elements/p-2c5d5953.entry.js +0 -2
  879. package/dist/nylas-web-elements/p-39b280e2.entry.js +0 -2
  880. package/dist/nylas-web-elements/p-39b280e2.entry.js.map +0 -1
  881. package/dist/nylas-web-elements/p-408dda49.js.map +0 -1
  882. package/dist/nylas-web-elements/p-41c1654e.entry.js +0 -2
  883. package/dist/nylas-web-elements/p-65062d50.entry.js.map +0 -1
  884. package/dist/nylas-web-elements/p-65fdfb60.js +0 -2
  885. package/dist/nylas-web-elements/p-65fdfb60.js.map +0 -1
  886. package/dist/nylas-web-elements/p-901f9612.js.map +0 -1
  887. package/dist/nylas-web-elements/p-a0c2ce03.entry.js +0 -2
  888. package/dist/nylas-web-elements/p-a3d5a1dd.entry.js +0 -2
  889. package/dist/nylas-web-elements/p-ba3d383f.entry.js +0 -2
  890. package/dist/nylas-web-elements/p-bfdc148c.entry.js +0 -2
  891. package/dist/nylas-web-elements/p-cadc9052.js +0 -2
  892. package/dist/nylas-web-elements/p-cadc9052.js.map +0 -1
  893. package/dist/nylas-web-elements/p-d67d1c72.js +0 -2
  894. package/dist/nylas-web-elements/p-d67d1c72.js.map +0 -1
  895. package/dist/nylas-web-elements/p-d85eecf4.entry.js +0 -2
  896. package/dist/nylas-web-elements/p-d92a0405.entry.js +0 -2
  897. package/dist/nylas-web-elements/p-de63bc35.entry.js +0 -2
  898. package/dist/nylas-web-elements/p-df5e9aaf.js +0 -2
  899. package/dist/nylas-web-elements/p-df5e9aaf.js.map +0 -1
  900. package/dist/nylas-web-elements/p-eb93a363.entry.js +0 -2
  901. package/dist/nylas-web-elements/p-eb93a363.entry.js.map +0 -1
  902. package/dist/nylas-web-elements/p-f48d0571.entry.js +0 -2
  903. package/dist/nylas-web-elements/p-fbbca7a6.entry.js +0 -2
  904. package/dist/nylas-web-elements/register-component-0645dce0.js.map +0 -1
  905. package/dist/nylas-web-elements/scheduler-config-store-bc59545b.js +0 -17
  906. package/dist/nylas-web-elements/scheduler-config-store-bc59545b.js.map +0 -1
  907. package/dist/nylas-web-elements/scheduler-store-4d0a4f8a.js.map +0 -1
  908. /package/dist/nylas-web-elements/{p-de63bc35.entry.js.map → p-00a9efc1.entry.js.map} +0 -0
  909. /package/dist/nylas-web-elements/{p-3631e6e5.entry.js.map → p-1d25ca06.entry.js.map} +0 -0
  910. /package/dist/nylas-web-elements/{p-bfdc148c.entry.js.map → p-1e445e86.entry.js.map} +0 -0
  911. /package/dist/nylas-web-elements/{p-395f49eb.entry.js.map → p-2081b475.entry.js.map} +0 -0
  912. /package/dist/nylas-web-elements/{p-4ee6f11e.entry.js.map → p-30784693.entry.js.map} +0 -0
  913. /package/dist/nylas-web-elements/{p-40ed7eab.entry.js.map → p-33b940fb.entry.js.map} +0 -0
  914. /package/dist/nylas-web-elements/{p-d92a0405.entry.js.map → p-343a02e1.entry.js.map} +0 -0
  915. /package/dist/nylas-web-elements/{p-4d9fceeb.entry.js.map → p-343b8684.entry.js.map} +0 -0
  916. /package/dist/nylas-web-elements/{p-409d4410.entry.js.map → p-3b281401.entry.js.map} +0 -0
  917. /package/dist/nylas-web-elements/{p-5a3809a7.entry.js.map → p-42791515.entry.js.map} +0 -0
  918. /package/dist/nylas-web-elements/{p-a0c2ce03.entry.js.map → p-44a9ce77.entry.js.map} +0 -0
  919. /package/dist/nylas-web-elements/{p-b2208193.entry.js.map → p-50b4a80f.entry.js.map} +0 -0
  920. /package/dist/nylas-web-elements/{p-42a4c2fd.entry.js.map → p-571472d4.entry.js.map} +0 -0
  921. /package/dist/nylas-web-elements/{p-2523c292.entry.js.map → p-607b547b.entry.js.map} +0 -0
  922. /package/dist/nylas-web-elements/{p-006ab406.entry.js.map → p-6110351b.entry.js.map} +0 -0
  923. /package/dist/nylas-web-elements/{p-deafc6bc.entry.js.map → p-694b511a.entry.js.map} +0 -0
  924. /package/dist/nylas-web-elements/{p-64364434.entry.js.map → p-73c062f8.entry.js.map} +0 -0
  925. /package/dist/nylas-web-elements/{p-3da66838.entry.js.map → p-80d6175c.entry.js.map} +0 -0
  926. /package/dist/nylas-web-elements/{p-01bf65c2.entry.js.map → p-939db546.entry.js.map} +0 -0
  927. /package/dist/nylas-web-elements/{p-a1e27dc5.entry.js.map → p-95a3094a.entry.js.map} +0 -0
  928. /package/dist/nylas-web-elements/{p-f48d0571.entry.js.map → p-ad64c2b8.entry.js.map} +0 -0
  929. /package/dist/nylas-web-elements/{p-baa620b4.entry.js.map → p-b25821e1.entry.js.map} +0 -0
  930. /package/dist/nylas-web-elements/{p-374527e6.entry.js.map → p-b53062f7.entry.js.map} +0 -0
  931. /package/dist/nylas-web-elements/{p-2c5d5953.entry.js.map → p-bbf9aff2.entry.js.map} +0 -0
  932. /package/dist/nylas-web-elements/{p-a3d5a1dd.entry.js.map → p-c20ab972.entry.js.map} +0 -0
  933. /package/dist/nylas-web-elements/{p-7b1bb792.entry.js.map → p-cc674b3b.entry.js.map} +0 -0
  934. /package/dist/nylas-web-elements/{p-fbbca7a6.entry.js.map → p-d8f09631.entry.js.map} +0 -0
  935. /package/dist/nylas-web-elements/{p-9dac153b.entry.js.map → p-df6d54c7.entry.js.map} +0 -0
  936. /package/dist/nylas-web-elements/{p-d224c7af.entry.js.map → p-e03b2592.entry.js.map} +0 -0
  937. /package/dist/nylas-web-elements/{p-9f168ff0.js.map → p-e22aa0b0.js.map} +0 -0
  938. /package/dist/nylas-web-elements/{p-ad9c3cab.entry.js.map → p-f154a362.entry.js.map} +0 -0
  939. /package/dist/nylas-web-elements/{p-ae01e1cb.entry.js.map → p-f1f8f745.entry.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"file":"scheduler-config-store-529c8d7e.js","mappings":";;;;SA+CgB,+BAA+B,CAAC,eAAwD,EAAE;IACxG,MAAM,qCAAqC,GAAmC;QAC5E,qBAAqB,EAAE,EAAE;QACzB,cAAc,EAAE,EAAE;QAClB,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,IAAI;QACjB,MAAM,EAAE,IAAI;QACZ,0BAA0B,EAAE,IAAI;QAChC,GAAG,YAAY;KAChB,CAAC;IACF,MAAM,KAAK,GAAGA,iBAAW,CAAiC,qCAAqC,CAAC,CAAC;IAMjG,SAAS,0BAA0B;QACjC,KAAK,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,GAAG,YAAY,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;KAClF;IAED,KAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAM,MAAM;QACnC,IAAI,CAAC,MAAM,EAAE;YACX,0BAA0B,EAAE,CAAC;SAC9B;KACF,CAAC,CAAC;IAEH,OAAO;QACL,GAAG,KAAK;QACR,0BAA0B;KAC3B,CAAC;AACJ;;;;","names":["createStore"],"sources":["src/stores/scheduler-config-store.ts"],"sourcesContent":["import { Calendar, Configuration } from '@nylas/core';\nimport { ObservableMap, createStore } from '@stencil/store';\nimport { User } from '@/common/nylas-api-request';\n\nexport interface NylasSchedulerConfigStoreState {\n /**\n * The selected configuration.\n * This is the configuration that is currently selected, use it to populate default values for new configurations.\n */\n selectedConfiguration: Partial<Configuration>;\n /**\n * The list of configurations.\n * This is the list of configurations that the user has created.\n */\n configurations: Configuration[];\n /**\n * The list of calendars.\n * This is the list of calendars that the user has access to.\n */\n calendars: Calendar[];\n /**\n * The current user.\n * This is the user that is currently logged in.\n */\n currentUser: User | null;\n /**\n * The current action.\n * This is the current action that the user is performing.\n */\n action: 'create' | 'edit' | null;\n /**\n * Whether the default configuration requires session authentication.\n * This is used to determine whether the default configuration should require session authentication.\n */\n defaultRequiresSessionAuth: boolean;\n}\n\nexport type NylasSchedulerConfigStoreType = ReturnType<typeof CreateNylasSchedulerConfigStore>;\n\nexport type CreateNylasSchedulerConfigStoreReturnType = ObservableMap<NylasSchedulerConfigStoreState> & {\n /**\n * Reset the selected configuration to the default state.\n * This is used to reset the selected configuration to the default state instead of setting it to an empty object.\n */\n resetSelectedConfiguration: () => void;\n};\n\nexport function CreateNylasSchedulerConfigStore(defaultState: Partial<NylasSchedulerConfigStoreState> = {}): CreateNylasSchedulerConfigStoreReturnType {\n const defaultNylasSchedulerConfigStoreState: NylasSchedulerConfigStoreState = {\n selectedConfiguration: {},\n configurations: [],\n calendars: [],\n currentUser: null,\n action: null,\n defaultRequiresSessionAuth: true,\n ...defaultState,\n };\n const store = createStore<NylasSchedulerConfigStoreState>(defaultNylasSchedulerConfigStoreState);\n\n /**\n * Reset the selected configuration to the default state.\n * This is used to reset the selected configuration to the default state instead of setting it to an empty object.\n */\n function resetSelectedConfiguration() {\n store.set('selectedConfiguration', { ...defaultState['selectedConfiguration'] });\n }\n\n store.onChange('action', async action => {\n if (!action) {\n resetSelectedConfiguration();\n }\n });\n\n return {\n ...store,\n resetSelectedConfiguration,\n };\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const utils = require('./utils-53dd7574.js');
3
+ const utils = require('./utils-20663d54.js');
4
4
  const index = require('./index-e31dc92c.js');
5
5
 
6
6
  exports.ErrorCategory = void 0;
@@ -14,6 +14,7 @@ var ComponentErrorType;
14
14
  ComponentErrorType["endtime_not_in_future"] = "endtime_not_in_future";
15
15
  ComponentErrorType["no_booking_info"] = "no_booking_info";
16
16
  ComponentErrorType["no_timeslot_selected"] = "no_timeslot_selected";
17
+ ComponentErrorType["no_timezone_selected"] = "no_timezone_selected";
17
18
  ComponentErrorType["no_booking_id"] = "no_booking_id";
18
19
  ComponentErrorType["invalid_start_time"] = "invalid_start_time";
19
20
  ComponentErrorType["invalid_end_time"] = "invalid_end_time";
@@ -54,6 +55,13 @@ class Errors {
54
55
  category,
55
56
  };
56
57
  },
58
+ no_timezone_selected: (message = 'No timezone selected') => {
59
+ return {
60
+ title,
61
+ message,
62
+ category,
63
+ };
64
+ },
57
65
  no_booking_id: (message = 'No booking id provided') => {
58
66
  return {
59
67
  title,
@@ -223,7 +231,7 @@ class NylaSchedulerAPIConnector {
223
231
  }
224
232
  async bookTimeslot(data) {
225
233
  this.schedulerStore.set('isLoading', true);
226
- const { selectedTimeslot, bookingInfo } = this.schedulerStore.state;
234
+ const { selectedTimeslot, selectedTimezone, bookingInfo } = this.schedulerStore.state;
227
235
  if (!data && !bookingInfo) {
228
236
  return { error: this.errors.component('Booking').no_booking_info() };
229
237
  }
@@ -231,6 +239,10 @@ class NylaSchedulerAPIConnector {
231
239
  if (!timeslot) {
232
240
  return { error: this.errors.component('Create Booking').no_timeslot_selected() };
233
241
  }
242
+ const timezone = data && data?.timezone ? data?.timezone : selectedTimezone;
243
+ if (!timezone) {
244
+ return { error: this.errors.component('Create Booking').no_timezone_selected() };
245
+ }
234
246
  const primaryParticipant = data ? data?.primaryParticipant : bookingInfo?.primaryParticipant;
235
247
  const guests = data ? data?.guests || [] : bookingInfo?.guests || [];
236
248
  const additional_fields = data ? { ...data?.additionalFields, guests } : { ...bookingInfo?.additionalFields, guests };
@@ -242,6 +254,7 @@ class NylaSchedulerAPIConnector {
242
254
  guest: { ...primaryParticipant },
243
255
  start_time: timeslot.start_time.getTime() / 1000,
244
256
  end_time: timeslot.end_time.getTime() / 1000,
257
+ timezone: timezone,
245
258
  }), headers);
246
259
  if ('error' in response) {
247
260
  this.schedulerStore.set('isLoading', false);
@@ -420,4 +433,4 @@ function CreateNylasSchedulerStore(defaultState = {}) {
420
433
  exports.CreateNylasSchedulerStore = CreateNylasSchedulerStore;
421
434
  exports.NylaSchedulerAPIConnector = NylaSchedulerAPIConnector;
422
435
 
423
- //# sourceMappingURL=scheduler-store-7320f5d0.js.map
436
+ //# sourceMappingURL=scheduler-store-0081970d.js.map
@@ -0,0 +1 @@
1
+ {"file":"scheduler-store-0081970d.js","mappings":";;;;;AAAYA;AAAZ,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,4BAAW,CAAA;IACX,8BAAa,CAAA;AACf,CAAC,EAJWA,qBAAa,KAAbA,qBAAa,QAIxB;AAQD,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,qEAA+C,CAAA;IAC/C,yDAAmC,CAAA;IACnC,mEAA6C,CAAA;IAC7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ACZ,KAAK,MAAM,GAAG,IAAI,sBAAsB,EAAE;YACxC,MAAM,KAAK,GAAG,sBAAsB,CAAC,GAA0C,CAAC,CAAC;YACjF,KAAK,CAAC,GAAG,CAAC,GAAU,EAAE,KAAK,CAAC,CAAC;SAC9B;KACF,CAAC;IAEF,OAAO,KAAK,CAAC;AACf;;;;;","names":["ErrorCategory","debug","createStore"],"sources":["src/connector/nylas-scheduler-connector/errors/index.ts","src/connector/shared/api/scheduler.ts","src/stores/scheduler-store.ts"],"sourcesContent":["export enum ErrorCategory {\n Component = 'component',\n Api = 'api',\n Auth = 'auth',\n}\n\nexport interface ErrorDetails {\n title: string;\n message: string;\n category: ErrorCategory;\n}\n\nexport enum ComponentErrorType {\n endtime_not_in_future = 'endtime_not_in_future',\n no_booking_info = 'no_booking_info',\n no_timeslot_selected = 'no_timeslot_selected',\n no_timezone_selected = 'no_timezone_selected',\n no_booking_id = 'no_booking_id',\n invalid_start_time = 'invalid_start_time',\n invalid_end_time = 'invalid_end_time',\n invalid_timezone = 'invalid_timezone',\n}\n\nexport enum APIErrorType {\n invalid_session = 'invalid_session',\n general_error = 'general_error',\n internal_error = 'internal_error',\n invalid_request_error = 'invalid_request_error',\n timeslot_not_available = 'timeslot_not_available',\n}\n\nexport class Errors {\n component = (_title: string): Record<ComponentErrorType, (message?: string) => ErrorDetails> => {\n const category = ErrorCategory.Component;\n const title = `${_title} error`;\n return {\n endtime_not_in_future: (message: string = '\"endtime\" can not be in the future') => {\n return {\n title,\n message,\n category,\n };\n },\n no_booking_info: (message: string = 'No booking info provided') => {\n return {\n title,\n message,\n category,\n };\n },\n no_timeslot_selected: (message: string = 'No timeslot selected') => {\n return {\n title,\n message,\n category,\n };\n },\n no_timezone_selected: (message: string = 'No timezone selected') => {\n return {\n title,\n message,\n category,\n };\n },\n no_booking_id: (message: string = 'No booking id provided') => {\n return {\n title,\n message,\n category,\n };\n },\n invalid_start_time: (message: string = 'Invalid start time') => {\n return {\n title,\n message,\n category,\n };\n },\n invalid_end_time: (message: string = 'Invalid end time') => {\n return {\n title,\n message,\n category,\n };\n },\n invalid_timezone: (message: string = 'Invalid timezone') => {\n return {\n title,\n message,\n category,\n };\n },\n };\n };\n\n api = (_title: string): Record<APIErrorType, (message: string) => ErrorDetails> => {\n const category = ErrorCategory.Api;\n const title = `${_title} error`;\n\n return {\n invalid_session: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n general_error: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n internal_error: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n invalid_request_error: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n timeslot_not_available: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n };\n };\n}\n","import { AvailabilityResponse, NylasEvent } from '@/common/types';\nimport { NylasSchedulerStoreType } from '../../../components';\nimport type { NylasErrorResponse, NylasResponse, NylasSchedulerBookingData, NylasSchedulerResponse, Timeslot } from '@nylas/core';\nimport { APIErrorType, Errors } from '@/connector/nylas-scheduler-connector/errors';\n\ntype NylasSchedulerAPIConnectorOptions = {\n schedulerAPIURL: string;\n schedulerStore: NylasSchedulerStoreType;\n sessionId?: string;\n configId?: string;\n};\n\n/**\n * NylaSchedulerConnector\n * This class is used to make API requests to the scheduler.\n */\nexport class NylaSchedulerAPIConnector {\n private schedulerStore: NylasSchedulerStoreType;\n private schedulerAPIURL: string;\n private sessionId: string | undefined;\n private configId: string | undefined;\n private errors = new Errors();\n\n constructor({ schedulerAPIURL, schedulerStore, sessionId, configId }: NylasSchedulerAPIConnectorOptions) {\n this.schedulerStore = schedulerStore;\n this.schedulerAPIURL = schedulerAPIURL;\n this.sessionId = sessionId;\n this.configId = configId;\n }\n\n private getHeaders() {\n return !this.configId\n ? {\n Authorization: `Bearer ${this.sessionId}`,\n }\n : {};\n }\n\n /**\n * Makes an API request to the scheduler.\n * @param path The path to the API endpoint.\n * @param method The HTTP method.\n * @param body The request body (if any).\n * @returns {Promise<T>}\n */\n public async makeAPIRequest<T>(path: string, method: string, body: string | undefined, headers = {}): Promise<NylasResponse<T>> {\n try {\n const schedulerURL = new URL(this.schedulerAPIURL);\n schedulerURL.pathname = path;\n const response = await fetch(decodeURIComponent(schedulerURL.toString()), {\n method,\n headers: {\n 'Content-Type': 'application/json',\n ...headers,\n },\n body,\n });\n // The server returns a json object for errors: eg.\n // {\n // \"request_id\": \"<request_id>\",\n // \"error\": {\n // \"type\": \"not_found_error\",\n // \"message\": \"Session not found\"\n // }\n // }\n const data = await response.json();\n return data as NylasResponse<T>;\n } catch (error: any) {\n // NOTE: current server implementation doesn't return a JSON object for errors on some endpoints\n // handle this case by returning the error response as a string to be handled downstream\n return {\n error: {\n message: error.message,\n title: 'API request failed',\n type: 'api',\n },\n } as NylasErrorResponse;\n }\n }\n\n /**\n * Selects a date in the scheduler.\n */\n public selectDate(date: Date) {\n this.schedulerStore.set('selectedDate', date);\n this.schedulerStore.set('selectedTimeslot', null);\n }\n\n /**\n * Selects a time in the scheduler.\n */\n public selectTime(time: Timeslot) {\n this.schedulerStore.set('selectedTimeslot', time);\n }\n\n /**\n * Sets the timezone in the scheduler.\n */\n public selectTimezone(timezone: string) {\n this.schedulerStore.set('selectedTimezone', timezone);\n }\n\n /**\n * Toggles showBookingForm\n * @param value boolean\n */\n public toggleAdditionalData(value: boolean) {\n this.schedulerStore.set('showBookingForm', value);\n }\n\n /**\n * Set/update the name of the participant booking the event.\n */\n public setParticipantName(name: string) {\n const { bookingInfo } = this.schedulerStore.state;\n this.schedulerStore.set('bookingInfo', {\n ...bookingInfo,\n primaryParticipant: {\n ...(bookingInfo?.primaryParticipant as NylasSchedulerBookingData['primaryParticipant']),\n name,\n },\n });\n }\n\n /**\n * Set/update the email of the participant booking the event.\n */\n public setParticipantEmail(email: string) {\n const { bookingInfo } = this.schedulerStore.state;\n this.schedulerStore.set('bookingInfo', {\n ...bookingInfo,\n primaryParticipant: {\n ...(bookingInfo?.primaryParticipant as NylasSchedulerBookingData['primaryParticipant']),\n email,\n },\n });\n }\n\n /**\n * Set reschedule booking id\n */\n public async setReschedule(bookingID: string) {\n const today = new Date();\n // Set reschedule booking id\n this.schedulerStore.set('rescheduleBookingId', bookingID);\n // Reset store state\n this.schedulerStore.set('selectedTimeslot', null);\n this.schedulerStore.set('eventInfo', null);\n this.schedulerStore.set('showBookingForm', false);\n // Refetch availability\n const startTime = new Date(today.getFullYear(), today.getMonth(), 1).getTime() / 1000;\n const endTime = new Date(today.getFullYear(), today.getMonth() + 1, 1).getTime() / 1000;\n const result = await this.getAvailability(startTime, endTime);\n // Set selected date to first available date\n const firstAvailableDate = this.schedulerStore.get('availability').find((timeslot: any) => new Date(timeslot.start_time) > new Date());\n let _selectedDate = today;\n if (firstAvailableDate) {\n _selectedDate = firstAvailableDate.start_time;\n }\n this.schedulerStore.set('selectedDate', _selectedDate);\n return result;\n }\n\n /**\n * Set cancel booking id\n */\n public async setCancel(bookingID: string) {\n this.schedulerStore.set('cancelBookingId', bookingID);\n }\n\n /**\n * Book the selected timeslot.\n * @param data The booking info.\n * @returns {Promise<NylasResponse<NylasEvent>>}\n */\n public async bookTimeslot(data?: NylasSchedulerBookingData & { timeslot?: Timeslot }): Promise<NylasSchedulerResponse<NylasEvent>> {\n this.schedulerStore.set('isLoading', true);\n const { selectedTimeslot, selectedTimezone, bookingInfo } = this.schedulerStore.state;\n if (!data && !bookingInfo) {\n return { error: this.errors.component('Booking').no_booking_info() };\n }\n\n const timeslot = data?.timeslot || selectedTimeslot;\n if (!timeslot) {\n return { error: this.errors.component('Create Booking').no_timeslot_selected() };\n }\n\n const timezone = data && data?.timezone ? data?.timezone : selectedTimezone;\n\n if (!timezone) {\n return { error: this.errors.component('Create Booking').no_timezone_selected() };\n }\n\n const primaryParticipant = data ? data?.primaryParticipant : bookingInfo?.primaryParticipant;\n const guests = data ? data?.guests || [] : bookingInfo?.guests || [];\n const additional_fields = data ? { ...data?.additionalFields, guests } : { ...bookingInfo?.additionalFields, guests };\n\n const headers = this.getHeaders();\n const configIdParam = this.configId ? `?configuration_id=${this.configId}` : '';\n const url = `/v3/scheduling/bookings${configIdParam}`;\n\n const response = await this.makeAPIRequest<NylasEvent>(\n decodeURIComponent(url),\n 'POST',\n JSON.stringify({\n additional_fields,\n guest: { ...primaryParticipant },\n start_time: timeslot.start_time.getTime() / 1000,\n end_time: timeslot.end_time.getTime() / 1000,\n timezone: timezone,\n }),\n headers,\n );\n\n if ('error' in response) {\n this.schedulerStore.set('isLoading', false);\n const errorType = response.error?.type;\n let error = response.error;\n if (errorType && errorType in this.errors.api('Create Booking')) {\n error = this.errors.api('Create Booking')[errorType as APIErrorType](error?.message || error?.title || 'Something went wrong');\n }\n return { error };\n }\n\n if ('data' in response) {\n this.schedulerStore.set('eventInfo', response?.data);\n }\n\n this.schedulerStore.set('isLoading', false);\n return response;\n }\n\n /**\n * Gets the availability for a page.\n * @param startTime The start time.\n * @param endTime The end time.\n * @returns {Promise<AvailabilityResponse>}\n */\n public async getAvailability(startTime: number = 0, endTime: number = 0): Promise<NylasSchedulerResponse<AvailabilityResponse>> {\n this.schedulerStore.set('isLoading', true);\n const params = new URLSearchParams();\n const now = new Date();\n const nowTime = now.getTime();\n\n if (endTime && endTime < nowTime / 1000) {\n this.schedulerStore.set('isLoading', false);\n const error = this.errors.component('Get Availability').endtime_not_in_future();\n return { error };\n }\n\n // Calculate the start of the current month if startTime is not provided\n if (!startTime) {\n const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);\n startTime = Math.floor(startOfMonth.getTime() / 1000); // Convert to UNIX timestamp in seconds\n }\n\n // Calculate the end of the current month if endTime is not provided\n if (!endTime) {\n const endOfMonth = new Date(now.getFullYear(), now.getMonth() + 1, 0); // Setting day to 0 gets the last day of the previous month, so in this case, the last day of the current month\n endTime = Math.floor(endOfMonth.getTime() / 1000); // Convert to UNIX timestamp in seconds\n }\n\n params.append('start_time', encodeURIComponent(startTime.toString()));\n params.append('end_time', encodeURIComponent(endTime.toString()));\n if (this.configId) {\n params.append('configuration_id', encodeURIComponent(this.configId));\n }\n const queryString = params.toString();\n const url = `/v3/scheduling/availability${queryString ? `?${queryString}` : ''}`;\n const headers = this.getHeaders();\n const response = await this.makeAPIRequest<AvailabilityResponse>(decodeURIComponent(url), 'GET', undefined, headers);\n\n if ('error' in response) {\n this.schedulerStore.set('availability', []);\n this.schedulerStore.set('isLoading', false);\n const errorType = response.error?.type;\n let error = response.error;\n if (errorType && errorType in this.errors.api('Get Availability')) {\n error = this.errors.api('Get Availability')[errorType as APIErrorType](error?.message || error?.title || 'Something went wrong');\n }\n return { error };\n }\n\n if ('data' in response) {\n const availability =\n response.data?.time_slots?.map(timeslot => {\n return {\n ...timeslot,\n start_time: new Date(timeslot.start_time * 1000),\n end_time: new Date(timeslot.end_time * 1000),\n };\n }) || [];\n\n // Filter out timeslots that are in the past\n const availabilityTimeslotsFiltered = availability.filter(timeslot => timeslot.start_time.getTime() > nowTime);\n this.schedulerStore.set('availability', availabilityTimeslotsFiltered);\n }\n\n this.schedulerStore.set('isLoading', false);\n return response;\n }\n\n /**\n * Cancels a booking.\n * @param bookingId The booking ID.\n */\n public async cancelBooking(bookingId: string): Promise<NylasSchedulerResponse<Partial<NylasEvent>>> {\n this.schedulerStore.set('isLoading', true);\n if (!bookingId) {\n return { error: this.errors.component('Cancel Booking').no_booking_id() };\n }\n const configIdParam = this.configId ? `?configuration_id=${this.configId}` : '';\n const url = `/v3/scheduling/bookings/${bookingId}${configIdParam}`;\n const headers = this.getHeaders();\n const response = await this.makeAPIRequest<Partial<NylasEvent>>(\n decodeURIComponent(url),\n 'DELETE',\n JSON.stringify({\n action: 'cancel',\n }),\n headers,\n );\n\n if ('error' in response) {\n this.schedulerStore.set('isLoading', false);\n const errorType = response.error?.type;\n let error = response.error;\n if (errorType && errorType in this.errors.api('Cancel Booking')) {\n error = this.errors.api('Cancel Booking')[errorType as APIErrorType](error?.message || error?.title || 'Something went wrong');\n }\n return { error };\n }\n\n this.schedulerStore.set('cancelledEventInfo', {\n booking_id: bookingId,\n });\n\n this.schedulerStore.set('isLoading', false);\n return response;\n }\n\n /**\n * Reschedules a booking.\n * @param bookingId The booking ID.\n * @param data The booking info.\n * @returns {Promise<NylasResponse<NylasEvent>>}\n */\n public async rescheduleBooking(bookingId: string, data: NylasSchedulerBookingData): Promise<NylasSchedulerResponse<NylasEvent>> {\n this.schedulerStore.set('isLoading', true);\n if (!bookingId) {\n return { error: this.errors.component('Reschedule Booking').no_booking_id() };\n }\n const apiErrors = this.errors.api('Reschedule Booking');\n const componentErrors = this.errors.component('Reschedule Booking');\n const { bookingInfo, selectedTimeslot, selectedTimezone } = this.schedulerStore.state;\n // Validate data\n const { startTime, endTime, timezone } = data;\n const start_time = startTime || selectedTimeslot?.start_time;\n\n if (!start_time) {\n return { error: componentErrors.invalid_start_time('Please pass \"startTime\" in data or set \"selectedTimeslot\" in the defaultSchedulerState.') };\n }\n const end_time = endTime || selectedTimeslot?.end_time;\n if (!end_time) {\n return { error: componentErrors.invalid_end_time('Please pass \"endTime\" in data or set \"selectedTimeslot\" in the defaultSchedulerState.') };\n }\n const time_zone = timezone || selectedTimezone;\n if (!time_zone) {\n return { error: componentErrors.invalid_timezone('Please pass \"timezone\" in data or set \"selectedTimezone\" in the defaultSchedulerState.') };\n }\n\n const primaryParticipant = data ? data?.primaryParticipant : bookingInfo?.primaryParticipant;\n const guests = data ? data?.guests || [] : bookingInfo?.guests || [];\n const additional_fields = data ? { ...data?.additionalFields, guests } : { ...bookingInfo?.additionalFields, guests };\n\n const configIdParam = this.configId ? `?configuration_id=${this.configId}` : '';\n const url = `/v3/scheduling/bookings/${bookingId}${configIdParam}`;\n const headers = this.getHeaders();\n const response = await this.makeAPIRequest<NylasEvent>(\n decodeURIComponent(url),\n 'PATCH',\n JSON.stringify({\n start_time: start_time.getTime() / 1000,\n end_time: end_time.getTime() / 1000,\n time_zone,\n additional_fields,\n guest: { ...primaryParticipant },\n }),\n headers,\n );\n\n if ('error' in response) {\n this.schedulerStore.set('isLoading', false);\n const errorType = response.error?.type;\n let error = response.error;\n if (errorType && errorType in apiErrors) {\n error = apiErrors[errorType as APIErrorType](error?.message || error?.title || 'Something went wrong');\n }\n }\n\n if ('data' in response) this.schedulerStore.set('eventInfo', response?.data);\n\n this.schedulerStore.set('isLoading', false);\n return response;\n }\n}\n","import { DataState, NylasEvent } from '@/common/types';\nimport { debug } from '@/utils/utils';\nimport { NylasSchedulerBookingData, Timeslot } from '@nylas/core';\nimport { createStore } from '@stencil/store';\n\nexport type AvailabilityTimeslot = {\n emails: string[];\n start_time: Date;\n end_time: Date;\n};\n\nexport type LoadingState = {\n api: 'availability' | 'createBooking' | 'cancelBooking' | 'rescheduleBooking';\n};\n\nexport interface NylasSchedulerStoreState {\n selectedDate: Date | null;\n selectedLanguage: string;\n selectedTimezone: string;\n selectedTimeslot: Timeslot | null;\n showBookingForm: boolean;\n selectableDates: Date[] | null;\n availability: AvailabilityTimeslot[];\n state: DataState;\n eventInfo: NylasEvent | null;\n cancelledEventInfo: Partial<NylasEvent> | null;\n bookingInfo?: NylasSchedulerBookingData;\n rescheduleBookingId?: string;\n cancelBookingId?: string;\n isLoading: boolean;\n nylasBranding?: boolean;\n}\n\nexport type NylasSchedulerStoreType = ReturnType<typeof CreateNylasSchedulerStore>;\n\nexport function CreateNylasSchedulerStore(defaultState: Partial<NylasSchedulerStoreState> = {}) {\n const defaultNylasStoreState: NylasSchedulerStoreState = {\n selectedDate: null,\n selectedLanguage: navigator.language,\n selectedTimezone: Intl.DateTimeFormat().resolvedOptions().timeZone,\n selectedTimeslot: null,\n showBookingForm: false,\n selectableDates: null,\n availability: [],\n state: 'ready',\n eventInfo: null,\n cancelledEventInfo: null,\n isLoading: false,\n nylasBranding: true,\n ...defaultState,\n };\n debug(`[defaultNylasStoreState]: `, defaultNylasStoreState);\n const store = createStore<NylasSchedulerStoreState>(defaultNylasStoreState);\n\n store.onChange('availability', availability => {\n debug(`[availability]: `, availability);\n const selectableDates = availability.map(timeslot => timeslot.start_time);\n debug(`[selectableDates]: `, selectableDates);\n store.set('selectableDates', selectableDates);\n });\n\n /**\n * Reset the Nylas store to its default state.\n * There is something wrong with the stencil/store reset method,\n * so we have to do it via this hack.\n */\n store.reset = () => {\n for (const key in defaultNylasStoreState) {\n const value = defaultNylasStoreState[key as keyof typeof defaultNylasStoreState];\n store.set(key as any, value);\n }\n };\n\n return store;\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const utils = require('./utils-53298b01.js');
3
+ const utils = require('./utils-2c7f0895.js');
4
4
  const index = require('./index-5ba61c57.js');
5
5
 
6
6
  exports.ErrorCategory = void 0;
@@ -14,6 +14,7 @@ var ComponentErrorType;
14
14
  ComponentErrorType["endtime_not_in_future"] = "endtime_not_in_future";
15
15
  ComponentErrorType["no_booking_info"] = "no_booking_info";
16
16
  ComponentErrorType["no_timeslot_selected"] = "no_timeslot_selected";
17
+ ComponentErrorType["no_timezone_selected"] = "no_timezone_selected";
17
18
  ComponentErrorType["no_booking_id"] = "no_booking_id";
18
19
  ComponentErrorType["invalid_start_time"] = "invalid_start_time";
19
20
  ComponentErrorType["invalid_end_time"] = "invalid_end_time";
@@ -54,6 +55,13 @@ class Errors {
54
55
  category,
55
56
  };
56
57
  },
58
+ no_timezone_selected: (message = 'No timezone selected') => {
59
+ return {
60
+ title,
61
+ message,
62
+ category,
63
+ };
64
+ },
57
65
  no_booking_id: (message = 'No booking id provided') => {
58
66
  return {
59
67
  title,
@@ -223,7 +231,7 @@ class NylaSchedulerAPIConnector {
223
231
  }
224
232
  async bookTimeslot(data) {
225
233
  this.schedulerStore.set('isLoading', true);
226
- const { selectedTimeslot, bookingInfo } = this.schedulerStore.state;
234
+ const { selectedTimeslot, selectedTimezone, bookingInfo } = this.schedulerStore.state;
227
235
  if (!data && !bookingInfo) {
228
236
  return { error: this.errors.component('Booking').no_booking_info() };
229
237
  }
@@ -231,6 +239,10 @@ class NylaSchedulerAPIConnector {
231
239
  if (!timeslot) {
232
240
  return { error: this.errors.component('Create Booking').no_timeslot_selected() };
233
241
  }
242
+ const timezone = data && data?.timezone ? data?.timezone : selectedTimezone;
243
+ if (!timezone) {
244
+ return { error: this.errors.component('Create Booking').no_timezone_selected() };
245
+ }
234
246
  const primaryParticipant = data ? data?.primaryParticipant : bookingInfo?.primaryParticipant;
235
247
  const guests = data ? data?.guests || [] : bookingInfo?.guests || [];
236
248
  const additional_fields = data ? { ...data?.additionalFields, guests } : { ...bookingInfo?.additionalFields, guests };
@@ -242,6 +254,7 @@ class NylaSchedulerAPIConnector {
242
254
  guest: { ...primaryParticipant },
243
255
  start_time: timeslot.start_time.getTime() / 1000,
244
256
  end_time: timeslot.end_time.getTime() / 1000,
257
+ timezone: timezone,
245
258
  }), headers);
246
259
  if ('error' in response) {
247
260
  this.schedulerStore.set('isLoading', false);
@@ -420,4 +433,4 @@ function CreateNylasSchedulerStore(defaultState = {}) {
420
433
  exports.CreateNylasSchedulerStore = CreateNylasSchedulerStore;
421
434
  exports.NylaSchedulerAPIConnector = NylaSchedulerAPIConnector;
422
435
 
423
- //# sourceMappingURL=scheduler-store-4cb46b3c.js.map
436
+ //# sourceMappingURL=scheduler-store-67dc1986.js.map
@@ -0,0 +1 @@
1
+ {"file":"scheduler-store-67dc1986.js","mappings":";;;;;AAAYA;AAAZ,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,4BAAW,CAAA;IACX,8BAAa,CAAA;AACf,CAAC,EAJWA,qBAAa,KAAbA,qBAAa,QAIxB;AAQD,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,qEAA+C,CAAA;IAC/C,yDAAmC,CAAA;IACnC,mEAA6C,CAAA;IAC7C,mEAA6C,CAAA;IAC7C,qDAA+B,CAAA;IAC/B,+DAAyC,CAAA;IACzC,2DAAqC,CAAA;IACrC,2DAAqC,CAAA;AACvC,CAAC,EATW,kBAAkB,KAAlB,kBAAkB,QAS7B;AAED,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mDAAmC,CAAA;I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ACf;;;;;","names":["ErrorCategory","debug","createStore"],"sources":["src/connector/nylas-scheduler-connector/errors/index.ts","src/connector/shared/api/scheduler.ts","src/stores/scheduler-store.ts"],"sourcesContent":["export enum ErrorCategory {\n Component = 'component',\n Api = 'api',\n Auth = 'auth',\n}\n\nexport interface ErrorDetails {\n title: string;\n message: string;\n category: ErrorCategory;\n}\n\nexport enum ComponentErrorType {\n endtime_not_in_future = 'endtime_not_in_future',\n no_booking_info = 'no_booking_info',\n no_timeslot_selected = 'no_timeslot_selected',\n no_timezone_selected = 'no_timezone_selected',\n no_booking_id = 'no_booking_id',\n invalid_start_time = 'invalid_start_time',\n invalid_end_time = 'invalid_end_time',\n invalid_timezone = 'invalid_timezone',\n}\n\nexport enum APIErrorType {\n invalid_session = 'invalid_session',\n general_error = 'general_error',\n internal_error = 'internal_error',\n invalid_request_error = 'invalid_request_error',\n timeslot_not_available = 'timeslot_not_available',\n}\n\nexport class Errors {\n component = (_title: string): Record<ComponentErrorType, (message?: string) => ErrorDetails> => {\n const category = ErrorCategory.Component;\n const title = `${_title} error`;\n return {\n endtime_not_in_future: (message: string = '\"endtime\" can not be in the future') => {\n return {\n title,\n message,\n category,\n };\n },\n no_booking_info: (message: string = 'No booking info provided') => {\n return {\n title,\n message,\n category,\n };\n },\n no_timeslot_selected: (message: string = 'No timeslot selected') => {\n return {\n title,\n message,\n category,\n };\n },\n no_timezone_selected: (message: string = 'No timezone selected') => {\n return {\n title,\n message,\n category,\n };\n },\n no_booking_id: (message: string = 'No booking id provided') => {\n return {\n title,\n message,\n category,\n };\n },\n invalid_start_time: (message: string = 'Invalid start time') => {\n return {\n title,\n message,\n category,\n };\n },\n invalid_end_time: (message: string = 'Invalid end time') => {\n return {\n title,\n message,\n category,\n };\n },\n invalid_timezone: (message: string = 'Invalid timezone') => {\n return {\n title,\n message,\n category,\n };\n },\n };\n };\n\n api = (_title: string): Record<APIErrorType, (message: string) => ErrorDetails> => {\n const category = ErrorCategory.Api;\n const title = `${_title} error`;\n\n return {\n invalid_session: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n general_error: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n internal_error: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n invalid_request_error: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n timeslot_not_available: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n };\n };\n}\n","import { AvailabilityResponse, NylasEvent } from '@/common/types';\nimport { NylasSchedulerStoreType } from '../../../components';\nimport type { NylasErrorResponse, NylasResponse, NylasSchedulerBookingData, NylasSchedulerResponse, Timeslot } from '@nylas/core';\nimport { APIErrorType, Errors } from '@/connector/nylas-scheduler-connector/errors';\n\ntype NylasSchedulerAPIConnectorOptions = {\n schedulerAPIURL: string;\n schedulerStore: NylasSchedulerStoreType;\n sessionId?: string;\n configId?: string;\n};\n\n/**\n * NylaSchedulerConnector\n * This class is used to make API requests to the scheduler.\n */\nexport class NylaSchedulerAPIConnector {\n private schedulerStore: NylasSchedulerStoreType;\n private schedulerAPIURL: string;\n private sessionId: string | undefined;\n private configId: string | undefined;\n private errors = new Errors();\n\n constructor({ schedulerAPIURL, schedulerStore, sessionId, configId }: NylasSchedulerAPIConnectorOptions) {\n this.schedulerStore = schedulerStore;\n this.schedulerAPIURL = schedulerAPIURL;\n this.sessionId = sessionId;\n this.configId = configId;\n }\n\n private getHeaders() {\n return !this.configId\n ? {\n Authorization: `Bearer ${this.sessionId}`,\n }\n : {};\n }\n\n /**\n * Makes an API request to the scheduler.\n * @param path The path to the API endpoint.\n * @param method The HTTP method.\n * @param body The request body (if any).\n * @returns {Promise<T>}\n */\n public async makeAPIRequest<T>(path: string, method: string, body: string | undefined, headers = {}): Promise<NylasResponse<T>> {\n try {\n const schedulerURL = new URL(this.schedulerAPIURL);\n schedulerURL.pathname = path;\n const response = await fetch(decodeURIComponent(schedulerURL.toString()), {\n method,\n headers: {\n 'Content-Type': 'application/json',\n ...headers,\n },\n body,\n });\n // The server returns a json object for errors: eg.\n // {\n // \"request_id\": \"<request_id>\",\n // \"error\": {\n // \"type\": \"not_found_error\",\n // \"message\": \"Session not found\"\n // }\n // }\n const data = await response.json();\n return data as NylasResponse<T>;\n } catch (error: any) {\n // NOTE: current server implementation doesn't return a JSON object for errors on some endpoints\n // handle this case by returning the error response as a string to be handled downstream\n return {\n error: {\n message: error.message,\n title: 'API request failed',\n type: 'api',\n },\n } as NylasErrorResponse;\n }\n }\n\n /**\n * Selects a date in the scheduler.\n */\n public selectDate(date: Date) {\n this.schedulerStore.set('selectedDate', date);\n this.schedulerStore.set('selectedTimeslot', null);\n }\n\n /**\n * Selects a time in the scheduler.\n */\n public selectTime(time: Timeslot) {\n this.schedulerStore.set('selectedTimeslot', time);\n }\n\n /**\n * Sets the timezone in the scheduler.\n */\n public selectTimezone(timezone: string) {\n this.schedulerStore.set('selectedTimezone', timezone);\n }\n\n /**\n * Toggles showBookingForm\n * @param value boolean\n */\n public toggleAdditionalData(value: boolean) {\n this.schedulerStore.set('showBookingForm', value);\n }\n\n /**\n * Set/update the name of the participant booking the event.\n */\n public setParticipantName(name: string) {\n const { bookingInfo } = this.schedulerStore.state;\n this.schedulerStore.set('bookingInfo', {\n ...bookingInfo,\n primaryParticipant: {\n ...(bookingInfo?.primaryParticipant as NylasSchedulerBookingData['primaryParticipant']),\n name,\n },\n });\n }\n\n /**\n * Set/update the email of the participant booking the event.\n */\n public setParticipantEmail(email: string) {\n const { bookingInfo } = this.schedulerStore.state;\n this.schedulerStore.set('bookingInfo', {\n ...bookingInfo,\n primaryParticipant: {\n ...(bookingInfo?.primaryParticipant as NylasSchedulerBookingData['primaryParticipant']),\n email,\n },\n });\n }\n\n /**\n * Set reschedule booking id\n */\n public async setReschedule(bookingID: string) {\n const today = new Date();\n // Set reschedule booking id\n this.schedulerStore.set('rescheduleBookingId', bookingID);\n // Reset store state\n this.schedulerStore.set('selectedTimeslot', null);\n this.schedulerStore.set('eventInfo', null);\n this.schedulerStore.set('showBookingForm', false);\n // Refetch availability\n const startTime = new Date(today.getFullYear(), today.getMonth(), 1).getTime() / 1000;\n const endTime = new Date(today.getFullYear(), today.getMonth() + 1, 1).getTime() / 1000;\n const result = await this.getAvailability(startTime, endTime);\n // Set selected date to first available date\n const firstAvailableDate = this.schedulerStore.get('availability').find((timeslot: any) => new Date(timeslot.start_time) > new Date());\n let _selectedDate = today;\n if (firstAvailableDate) {\n _selectedDate = firstAvailableDate.start_time;\n }\n this.schedulerStore.set('selectedDate', _selectedDate);\n return result;\n }\n\n /**\n * Set cancel booking id\n */\n public async setCancel(bookingID: string) {\n this.schedulerStore.set('cancelBookingId', bookingID);\n }\n\n /**\n * Book the selected timeslot.\n * @param data The booking info.\n * @returns {Promise<NylasResponse<NylasEvent>>}\n */\n public async bookTimeslot(data?: NylasSchedulerBookingData & { timeslot?: Timeslot }): Promise<NylasSchedulerResponse<NylasEvent>> {\n this.schedulerStore.set('isLoading', true);\n const { selectedTimeslot, selectedTimezone, bookingInfo } = this.schedulerStore.state;\n if (!data && !bookingInfo) {\n return { error: this.errors.component('Booking').no_booking_info() };\n }\n\n const timeslot = data?.timeslot || selectedTimeslot;\n if (!timeslot) {\n return { error: this.errors.component('Create Booking').no_timeslot_selected() };\n }\n\n const timezone = data && data?.timezone ? data?.timezone : selectedTimezone;\n\n if (!timezone) {\n return { error: this.errors.component('Create Booking').no_timezone_selected() };\n }\n\n const primaryParticipant = data ? data?.primaryParticipant : bookingInfo?.primaryParticipant;\n const guests = data ? data?.guests || [] : bookingInfo?.guests || [];\n const additional_fields = data ? { ...data?.additionalFields, guests } : { ...bookingInfo?.additionalFields, guests };\n\n const headers = this.getHeaders();\n const configIdParam = this.configId ? `?configuration_id=${this.configId}` : '';\n const url = `/v3/scheduling/bookings${configIdParam}`;\n\n const response = await this.makeAPIRequest<NylasEvent>(\n decodeURIComponent(url),\n 'POST',\n JSON.stringify({\n additional_fields,\n guest: { ...primaryParticipant },\n start_time: timeslot.start_time.getTime() / 1000,\n end_time: timeslot.end_time.getTime() / 1000,\n timezone: timezone,\n }),\n headers,\n );\n\n if ('error' in response) {\n this.schedulerStore.set('isLoading', false);\n const errorType = response.error?.type;\n let error = response.error;\n if (errorType && errorType in this.errors.api('Create Booking')) {\n error = this.errors.api('Create Booking')[errorType as APIErrorType](error?.message || error?.title || 'Something went wrong');\n }\n return { error };\n }\n\n if ('data' in response) {\n this.schedulerStore.set('eventInfo', response?.data);\n }\n\n this.schedulerStore.set('isLoading', false);\n return response;\n }\n\n /**\n * Gets the availability for a page.\n * @param startTime The start time.\n * @param endTime The end time.\n * @returns {Promise<AvailabilityResponse>}\n */\n public async getAvailability(startTime: number = 0, endTime: number = 0): Promise<NylasSchedulerResponse<AvailabilityResponse>> {\n this.schedulerStore.set('isLoading', true);\n const params = new URLSearchParams();\n const now = new Date();\n const nowTime = now.getTime();\n\n if (endTime && endTime < nowTime / 1000) {\n this.schedulerStore.set('isLoading', false);\n const error = this.errors.component('Get Availability').endtime_not_in_future();\n return { error };\n }\n\n // Calculate the start of the current month if startTime is not provided\n if (!startTime) {\n const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);\n startTime = Math.floor(startOfMonth.getTime() / 1000); // Convert to UNIX timestamp in seconds\n }\n\n // Calculate the end of the current month if endTime is not provided\n if (!endTime) {\n const endOfMonth = new Date(now.getFullYear(), now.getMonth() + 1, 0); // Setting day to 0 gets the last day of the previous month, so in this case, the last day of the current month\n endTime = Math.floor(endOfMonth.getTime() / 1000); // Convert to UNIX timestamp in seconds\n }\n\n params.append('start_time', encodeURIComponent(startTime.toString()));\n params.append('end_time', encodeURIComponent(endTime.toString()));\n if (this.configId) {\n params.append('configuration_id', encodeURIComponent(this.configId));\n }\n const queryString = params.toString();\n const url = `/v3/scheduling/availability${queryString ? `?${queryString}` : ''}`;\n const headers = this.getHeaders();\n const response = await this.makeAPIRequest<AvailabilityResponse>(decodeURIComponent(url), 'GET', undefined, headers);\n\n if ('error' in response) {\n this.schedulerStore.set('availability', []);\n this.schedulerStore.set('isLoading', false);\n const errorType = response.error?.type;\n let error = response.error;\n if (errorType && errorType in this.errors.api('Get Availability')) {\n error = this.errors.api('Get Availability')[errorType as APIErrorType](error?.message || error?.title || 'Something went wrong');\n }\n return { error };\n }\n\n if ('data' in response) {\n const availability =\n response.data?.time_slots?.map(timeslot => {\n return {\n ...timeslot,\n start_time: new Date(timeslot.start_time * 1000),\n end_time: new Date(timeslot.end_time * 1000),\n };\n }) || [];\n\n // Filter out timeslots that are in the past\n const availabilityTimeslotsFiltered = availability.filter(timeslot => timeslot.start_time.getTime() > nowTime);\n this.schedulerStore.set('availability', availabilityTimeslotsFiltered);\n }\n\n this.schedulerStore.set('isLoading', false);\n return response;\n }\n\n /**\n * Cancels a booking.\n * @param bookingId The booking ID.\n */\n public async cancelBooking(bookingId: string): Promise<NylasSchedulerResponse<Partial<NylasEvent>>> {\n this.schedulerStore.set('isLoading', true);\n if (!bookingId) {\n return { error: this.errors.component('Cancel Booking').no_booking_id() };\n }\n const configIdParam = this.configId ? `?configuration_id=${this.configId}` : '';\n const url = `/v3/scheduling/bookings/${bookingId}${configIdParam}`;\n const headers = this.getHeaders();\n const response = await this.makeAPIRequest<Partial<NylasEvent>>(\n decodeURIComponent(url),\n 'DELETE',\n JSON.stringify({\n action: 'cancel',\n }),\n headers,\n );\n\n if ('error' in response) {\n this.schedulerStore.set('isLoading', false);\n const errorType = response.error?.type;\n let error = response.error;\n if (errorType && errorType in this.errors.api('Cancel Booking')) {\n error = this.errors.api('Cancel Booking')[errorType as APIErrorType](error?.message || error?.title || 'Something went wrong');\n }\n return { error };\n }\n\n this.schedulerStore.set('cancelledEventInfo', {\n booking_id: bookingId,\n });\n\n this.schedulerStore.set('isLoading', false);\n return response;\n }\n\n /**\n * Reschedules a booking.\n * @param bookingId The booking ID.\n * @param data The booking info.\n * @returns {Promise<NylasResponse<NylasEvent>>}\n */\n public async rescheduleBooking(bookingId: string, data: NylasSchedulerBookingData): Promise<NylasSchedulerResponse<NylasEvent>> {\n this.schedulerStore.set('isLoading', true);\n if (!bookingId) {\n return { error: this.errors.component('Reschedule Booking').no_booking_id() };\n }\n const apiErrors = this.errors.api('Reschedule Booking');\n const componentErrors = this.errors.component('Reschedule Booking');\n const { bookingInfo, selectedTimeslot, selectedTimezone } = this.schedulerStore.state;\n // Validate data\n const { startTime, endTime, timezone } = data;\n const start_time = startTime || selectedTimeslot?.start_time;\n\n if (!start_time) {\n return { error: componentErrors.invalid_start_time('Please pass \"startTime\" in data or set \"selectedTimeslot\" in the defaultSchedulerState.') };\n }\n const end_time = endTime || selectedTimeslot?.end_time;\n if (!end_time) {\n return { error: componentErrors.invalid_end_time('Please pass \"endTime\" in data or set \"selectedTimeslot\" in the defaultSchedulerState.') };\n }\n const time_zone = timezone || selectedTimezone;\n if (!time_zone) {\n return { error: componentErrors.invalid_timezone('Please pass \"timezone\" in data or set \"selectedTimezone\" in the defaultSchedulerState.') };\n }\n\n const primaryParticipant = data ? data?.primaryParticipant : bookingInfo?.primaryParticipant;\n const guests = data ? data?.guests || [] : bookingInfo?.guests || [];\n const additional_fields = data ? { ...data?.additionalFields, guests } : { ...bookingInfo?.additionalFields, guests };\n\n const configIdParam = this.configId ? `?configuration_id=${this.configId}` : '';\n const url = `/v3/scheduling/bookings/${bookingId}${configIdParam}`;\n const headers = this.getHeaders();\n const response = await this.makeAPIRequest<NylasEvent>(\n decodeURIComponent(url),\n 'PATCH',\n JSON.stringify({\n start_time: start_time.getTime() / 1000,\n end_time: end_time.getTime() / 1000,\n time_zone,\n additional_fields,\n guest: { ...primaryParticipant },\n }),\n headers,\n );\n\n if ('error' in response) {\n this.schedulerStore.set('isLoading', false);\n const errorType = response.error?.type;\n let error = response.error;\n if (errorType && errorType in apiErrors) {\n error = apiErrors[errorType as APIErrorType](error?.message || error?.title || 'Something went wrong');\n }\n }\n\n if ('data' in response) this.schedulerStore.set('eventInfo', response?.data);\n\n this.schedulerStore.set('isLoading', false);\n return response;\n }\n}\n","import { DataState, NylasEvent } from '@/common/types';\nimport { debug } from '@/utils/utils';\nimport { NylasSchedulerBookingData, Timeslot } from '@nylas/core';\nimport { createStore } from '@stencil/store';\n\nexport type AvailabilityTimeslot = {\n emails: string[];\n start_time: Date;\n end_time: Date;\n};\n\nexport type LoadingState = {\n api: 'availability' | 'createBooking' | 'cancelBooking' | 'rescheduleBooking';\n};\n\nexport interface NylasSchedulerStoreState {\n selectedDate: Date | null;\n selectedLanguage: string;\n selectedTimezone: string;\n selectedTimeslot: Timeslot | null;\n showBookingForm: boolean;\n selectableDates: Date[] | null;\n availability: AvailabilityTimeslot[];\n state: DataState;\n eventInfo: NylasEvent | null;\n cancelledEventInfo: Partial<NylasEvent> | null;\n bookingInfo?: NylasSchedulerBookingData;\n rescheduleBookingId?: string;\n cancelBookingId?: string;\n isLoading: boolean;\n nylasBranding?: boolean;\n}\n\nexport type NylasSchedulerStoreType = ReturnType<typeof CreateNylasSchedulerStore>;\n\nexport function CreateNylasSchedulerStore(defaultState: Partial<NylasSchedulerStoreState> = {}) {\n const defaultNylasStoreState: NylasSchedulerStoreState = {\n selectedDate: null,\n selectedLanguage: navigator.language,\n selectedTimezone: Intl.DateTimeFormat().resolvedOptions().timeZone,\n selectedTimeslot: null,\n showBookingForm: false,\n selectableDates: null,\n availability: [],\n state: 'ready',\n eventInfo: null,\n cancelledEventInfo: null,\n isLoading: false,\n nylasBranding: true,\n ...defaultState,\n };\n debug(`[defaultNylasStoreState]: `, defaultNylasStoreState);\n const store = createStore<NylasSchedulerStoreState>(defaultNylasStoreState);\n\n store.onChange('availability', availability => {\n debug(`[availability]: `, availability);\n const selectableDates = availability.map(timeslot => timeslot.start_time);\n debug(`[selectableDates]: `, selectableDates);\n store.set('selectableDates', selectableDates);\n });\n\n /**\n * Reset the Nylas store to its default state.\n * There is something wrong with the stencil/store reset method,\n * so we have to do it via this hack.\n */\n store.reset = () => {\n for (const key in defaultNylasStoreState) {\n const value = defaultNylasStoreState[key as keyof typeof defaultNylasStoreState];\n store.set(key as any, value);\n }\n };\n\n return store;\n}\n"],"version":3}
@@ -13,7 +13,7 @@ const SearchIcon = class {
13
13
  this.height = '15';
14
14
  }
15
15
  render() {
16
- return (index.h("svg", { key: '40a81a00f79c85303a904e3ef66e7833a240fff2', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'dd4c72fa1db6849fd72bfcb3fbde40f115caac11', fill: "currentColor", d: "M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z" })));
16
+ return (index.h("svg", { key: 'b76a09acee253e0c56da191a277aeb941b7660ae', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'd93a8a5b63a57e7a62909e5039654d399424bb0c', fill: "currentColor", d: "M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z" })));
17
17
  }
18
18
  };
19
19
  SearchIcon.style = iconCss;
@@ -142,11 +142,11 @@ const SelectDropdown = class {
142
142
  }
143
143
  }
144
144
  render() {
145
- return (index.h("div", { key: '1dd936b2226461f88f99a0a60011fd1ad3fd0632', class: "dropdown", part: "sd_dropdown" }, index.h("button", { key: 'c0dca685b2ecc5aac29f4921c011db384bb3c7e2', part: "sd_dropdown-button", class: { dropbtn: true, open: this.isOpen }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-label": this.name, onKeyDown: e => this.handleSelectButtonKeyDown(e) }, index.h("slot", { key: 'caac266cfa1215b30faefee3c080a183d7ab1cc5', name: "select-icon", "aria-hidden": "true" }), index.h("span", { key: '657aec56728e36d5ef45d1a699ec3d035a54199b', class: "selected-option", part: "sd_dropdown-button-selected-label" }, this.selectedOption?.label ? `${this.selectedOption?.label + this.pluralizedLabel}` : ''), index.h("span", { key: '19adb72063e9fd6c5e65bd83ea5d2dbcd6bf41f6', class: {
145
+ return (index.h("div", { key: '4b92f2c224e4cb1ec751c8dd46ff5bd16883110a', class: "dropdown", part: "sd_dropdown" }, index.h("button", { key: 'de1f96fe628dc11b3b7991f65065ec1ae55372fa', part: "sd_dropdown-button", class: { dropbtn: true, open: this.isOpen }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-label": this.name, onKeyDown: e => this.handleSelectButtonKeyDown(e) }, index.h("slot", { key: '05166ff83a6f0cbf3a63d79e257570c996c2972d', name: "select-icon", "aria-hidden": "true" }), index.h("span", { key: '99d79f6d8969fa6e88092af65ed7438d06c70693', class: "selected-option", part: "sd_dropdown-button-selected-label" }, this.selectedOption?.label ? `${this.selectedOption?.label + this.pluralizedLabel}` : ''), index.h("span", { key: '220bed22a19b8e73a0b5f420a95169b5593138a3', class: {
146
146
  open: this.isOpen,
147
147
  closed: !this.isOpen,
148
148
  chevron: true,
149
- }, "aria-hidden": "true" }, index.h("chevron-icon", { key: 'ffffbdcb0d967e597fc609c5e3470f843594d81e', width: "16", height: "16" }))), this.isOpen ? (index.h("div", { class: "dropdown-content", part: "sd_dropdown-content" }, this.withSearch && (index.h("div", { class: { 'search-box': true, 'open': this.isOpen } }, index.h("search-icon", { width: "15", height: "15", class: 'icon' }), index.h("input", { type: "text", role: "combobox", placeholder: "Search", value: this.searchValue, ref: el => (this.inputRef = el), onInput: event => this.filterOptions(event), onKeyDown: e => this.handleComboboxKeyDown(e) }))), index.h("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: e => this.handleListboxKeydown(e) }, this.filteredOptions.map(option => (index.h("li", { tabindex: "0", key: option.value, id: option.value, onClick: () => this.selectOption(option), role: "option" }, option.labelHTML ? option.labelHTML : option.label)))))) : null));
149
+ }, "aria-hidden": "true" }, index.h("chevron-icon", { key: '6ed5947377584f0adaa466c5f2c189e4795e72e2', width: "16", height: "16" }))), this.isOpen ? (index.h("div", { class: "dropdown-content", part: "sd_dropdown-content" }, this.withSearch && (index.h("div", { class: { 'search-box': true, 'open': this.isOpen } }, index.h("search-icon", { width: "15", height: "15", class: 'icon' }), index.h("input", { type: "text", role: "combobox", placeholder: "Search", value: this.searchValue, ref: el => (this.inputRef = el), onInput: event => this.filterOptions(event), onKeyDown: e => this.handleComboboxKeyDown(e) }))), index.h("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: e => this.handleListboxKeydown(e) }, this.filteredOptions.map(option => (index.h("li", { tabindex: "0", key: option.value, id: option.value, onClick: () => this.selectOption(option), role: "option" }, option.labelHTML ? option.labelHTML : option.label)))))) : null));
150
150
  }
151
151
  get el() { return index.getElement(this); }
152
152
  static get watchers() { return {
@@ -13,7 +13,7 @@ const SentIcon = class {
13
13
  this.height = '15';
14
14
  }
15
15
  render() {
16
- return (index.h("svg", { key: 'b3c088995658cd0e496bbb5add5a4f937b96837d', width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '314fb0dd64e67ad973dac494453e2c1bbbdc9f3d', d: "M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z", stroke: "auto", "stroke-width": "1.5" }), index.h("path", { key: 'f24cbf7ceadf6efa9676bb277fc96ac254d9c668', d: "M3.5 3.5L12 10.5", stroke: "auto", "stroke-width": "1.5" }), index.h("path", { key: '491979a302745c0ecbce438405cbc392593d47dd', d: "M3.5 20.5L12 13.5", stroke: "auto", "stroke-width": "1.5" })));
16
+ return (index.h("svg", { key: '94433264804ae9ea142d21a8e017c3551bcbfde1', width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '69a7c5647e8930885a8c63f0c44e370524786087', d: "M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z", stroke: "auto", "stroke-width": "1.5" }), index.h("path", { key: '4b7bcce0e696c35b4334572d8de66852d64783d3', d: "M3.5 3.5L12 10.5", stroke: "auto", "stroke-width": "1.5" }), index.h("path", { key: '8f4cb81790c663a5db23f33b7dbd8fd17f264a4e', d: "M3.5 20.5L12 13.5", stroke: "auto", "stroke-width": "1.5" })));
17
17
  }
18
18
  };
19
19
  SentIcon.style = iconCss;
@@ -13,7 +13,7 @@ const SpamIcon = class {
13
13
  this.height = '15';
14
14
  }
15
15
  render() {
16
- return (index.h("svg", { key: 'a1faf60f8ef46ef4f770dda1da7d3040836faac9', width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'a8a11efc172095bd69c052641ac25a2deeba649d', d: "M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z", stroke: "auto", "stroke-width": "1.5" }), index.h("path", { key: '2601512a6e12ac6f51145a3907d8d672f71e8cb4', d: "M2 5L12 12.5L22 5", stroke: "auto", "stroke-width": "1.5" })));
16
+ return (index.h("svg", { key: '05802e7eb5bcbb8e1e36e40a86dd465993a4646a', width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '165cb535da9d8c8b44f064218b79045c318e9726', d: "M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z", stroke: "auto", "stroke-width": "1.5" }), index.h("path", { key: 'daddc1e02d766c833becc9af5592904e6a094594', d: "M2 5L12 12.5L22 5", stroke: "auto", "stroke-width": "1.5" })));
17
17
  }
18
18
  };
19
19
  SpamIcon.style = iconCss;
@@ -13,7 +13,7 @@ const StarIcon = class {
13
13
  this.height = '15';
14
14
  }
15
15
  render() {
16
- return (index.h("svg", { key: 'cde183d1ecede967504e09a1163d49440cb90202', width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '2e6a40a4ac879c3f7cb5fb932c54a65e86aafcf8', d: "M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z", stroke: "auto", "stroke-width": "1.5" })));
16
+ return (index.h("svg", { key: '1f82f1e02e49a14ec8a3e678636ccaa7967a73f3', width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '211b77a5ad5dd981c9779f03d9a79398d05bac48', d: "M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z", stroke: "auto", "stroke-width": "1.5" })));
17
17
  }
18
18
  };
19
19
  StarIcon.style = iconCss;
@@ -13,7 +13,7 @@ const StopIcon = class {
13
13
  this.height = '15';
14
14
  }
15
15
  render() {
16
- return (index.h("svg", { key: 'b39e317c3d3a25ed955ef96918cb986264487f42', width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'cec2514adff36410b8f035e6d0439ff58c7bf5cf', d: "M4 4H20V20H4V4Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
16
+ return (index.h("svg", { key: 'f6149723fe23e788bd2a2b7fb075fb929222cb31', width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '4f6c453999391dae9f8271f341c9ffac4458fd79', d: "M4 4H20V20H4V4Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
17
17
  }
18
18
  };
19
19
  StopIcon.style = iconCss;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c14ea8f5.js');
6
- const utils = require('./utils-53298b01.js');
6
+ const utils = require('./utils-2c7f0895.js');
7
7
  require('./_commonjsHelpers-ef8cd0cd.js');
8
8
 
9
9
  const timePeriodSelectorCss = ".time-period-selector.sc-time-period-selector{display:flex;gap:0.5rem}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.time-period-selector.sc-time-period-selector select-dropdown#time-period.sc-time-period-selector::part(sd_dropdown-button){min-width:108px}.time-period-selector.sc-time-period-selector select-dropdown#time-number.sc-time-period-selector::part(sd_dropdown-button){min-width:84px}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-button){padding:1rem;gap:1rem}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-content){width:100%;max-height:200px}";
@@ -88,7 +88,7 @@ const TimePeriodSelector = class {
88
88
  this.selectedNumber = parseInt(this.numberOptions[0].value);
89
89
  }
90
90
  render() {
91
- return (index.h("div", { key: '85937e5b0dbeb32c5f2417fa644744c731b4cd57', class: "time-period-selector" }, index.h("select-dropdown", { key: '030d52e80b1e1561b517009c14109d4c9ecf2577', id: "time-number", name: 'time-number', exportparts: "sd__dropdown: tps__number-dropdown, sd__dropdown-button: tps__number-dropdown-button, sd__dropdown-content: tps__number-dropdown-content", options: this.numberOptions, defaultSelectedOption: this.numberOptions.find(i => i.value == this.selectedNumber.toString()) ?? this.numberOptions[0], withSearch: false }), index.h("select-dropdown", { key: 'ddd959a787e5ff9c4cc25ca239af0e75b4eede66', id: "time-period", name: 'time-period', options: this.timePeriodOptions, exportparts: "sd__dropdown: tps__period-dropdown, sd__dropdown-button: tps__period-dropdown-button, sd__dropdown-content: tps__period-dropdown-content", pluralizedLabel: this.selectedNumber > 1 ? 's' : '', defaultSelectedOption: this.timePeriodOptions.find(i => i.value == this.selectedPeriod) ?? this.timePeriodOptions[0], withSearch: false })));
91
+ return (index.h("div", { key: 'eaec00db41b0c2410fc4a9ccc341fc4ec4012e10', class: "time-period-selector" }, index.h("select-dropdown", { key: '0d53efe90429a05d4f52a8f1b92bf46b14b1e6ad', id: "time-number", name: 'time-number', exportparts: "sd__dropdown: tps__number-dropdown, sd__dropdown-button: tps__number-dropdown-button, sd__dropdown-content: tps__number-dropdown-content", options: this.numberOptions, defaultSelectedOption: this.numberOptions.find(i => i.value == this.selectedNumber.toString()) ?? this.numberOptions[0], withSearch: false }), index.h("select-dropdown", { key: 'bce764e3e959eb4fad73d1e410173d584f243ee5', id: "time-period", name: 'time-period', options: this.timePeriodOptions, exportparts: "sd__dropdown: tps__period-dropdown, sd__dropdown-button: tps__period-dropdown-button, sd__dropdown-content: tps__period-dropdown-content", pluralizedLabel: this.selectedNumber > 1 ? 's' : '', defaultSelectedOption: this.timePeriodOptions.find(i => i.value == this.selectedPeriod) ?? this.timePeriodOptions[0], withSearch: false })));
92
92
  }
93
93
  get host() { return index.getElement(this); }
94
94
  static get watchers() { return {
@@ -20,7 +20,7 @@ const TooltipComponent = class {
20
20
  event.target.nextElementSibling.style.opacity = '0';
21
21
  }
22
22
  render() {
23
- return (index.h("div", { key: '1ba151bd1d0f2c80cc641832c986bab321accade', class: "tooltip-container" }, index.h("span", { key: '7d432bbaa90b5e9aee4f1d8cae36e97bad47bc9e', class: "info-icon", tabindex: "0", onFocus: this.showTooltip.bind(this), onBlur: this.hideTooltip.bind(this) }, index.h("slot", { key: '4f5014e68d07d5e70a873b389ef84b290017a8cd', name: "tooltip-icon" }, "i")), index.h("span", { key: '8c903af137f14d51297e1ba212d6343d1ba0f2e5', class: `tooltip-content ${this.position}` }, index.h("slot", { key: 'aa87ef75acc364a667d3a5139e9683f404646e51', name: "tooltip-content" }, "This is a help text."))));
23
+ return (index.h("div", { key: 'e5f137458d3664942d02b31f221b3b5ae2bd9658', class: "tooltip-container" }, index.h("span", { key: '4838a8e46e43d2f490c81381c3759142868ce45c', class: "info-icon", tabindex: "0", onFocus: this.showTooltip.bind(this), onBlur: this.hideTooltip.bind(this) }, index.h("slot", { key: 'a4864cffceabaf3bf353647733add76685ac1581', name: "tooltip-icon" }, "i")), index.h("span", { key: '15cbc68f4e0e07bddff0e7adbb76fd6ffce4b9a4', class: `tooltip-content ${this.position}` }, index.h("slot", { key: '836a48731f8a24bc4ecbbb097a514ca263dfc887', name: "tooltip-content" }, "This is a help text."))));
24
24
  }
25
25
  get el() { return index.getElement(this); }
26
26
  };
@@ -13,7 +13,7 @@ const GlobeIcon = class {
13
13
  this.height = '16';
14
14
  }
15
15
  render() {
16
- return (index.h("svg", { key: 'cc28e003f52beddf264e14de210359dbeab11321', xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none" }, index.h("path", { key: '887afb698a01900cf408d4db7cd389f3505f8211', fill: "currentColor", d: "M14.1663 4.02867C14.4267 4.12081 14.563 4.40654 14.4709 4.66685C14.3501 5.00788 14.2182 5.4771 14.1178 5.86047C14.6877 5.77587 15.2665 5.65653 15.8867 5.51288C16.1557 5.45058 16.4243 5.61815 16.4866 5.88717C16.5489 6.15619 16.3814 6.42479 16.1123 6.4871C15.339 6.66621 14.6101 6.81289 13.8717 6.90283C13.7759 7.35654 13.7014 7.77084 13.6451 8.15021C14.1202 8.04599 14.5738 8.00553 14.9996 8.02075L14.9996 8C14.9996 7.72386 15.2235 7.5 15.4996 7.5C15.7758 7.5 15.9996 7.72386 15.9996 8C15.9996 8.05657 15.9991 8.11281 15.9979 8.16871C17.1392 8.47838 17.9781 9.23987 18.3435 10.2263C18.9579 11.8853 18.1287 13.8787 15.7027 14.9569C15.4504 15.069 15.1549 14.9554 15.0427 14.7031C14.9306 14.4507 15.0442 14.1552 15.2966 14.0431C17.3705 13.1213 17.7913 11.6147 17.4057 10.5737C17.1874 9.984 16.6776 9.44916 15.9129 9.18633C15.6829 10.7237 15.021 11.9466 14.229 12.7925C14.3126 12.9656 14.3958 13.1436 14.4641 13.3151C14.5662 13.5717 14.441 13.8625 14.1844 13.9646C13.9278 14.0667 13.637 13.9415 13.5349 13.6849C13.5066 13.6137 13.4777 13.5463 13.448 13.4802C13.028 13.7794 12.5905 13.9869 12.1705 14.0835C11.5942 14.2161 10.963 14.1517 10.534 13.6942C9.88917 13.0053 9.84361 11.8611 10.2855 10.8412C10.6652 9.96479 11.4186 9.11781 12.5848 8.54034C12.6387 8.07338 12.7199 7.55894 12.8332 6.98891C12.3926 7.00755 11.9403 7.00326 11.4659 6.97127C11.1904 6.95269 10.9821 6.71428 11.0007 6.43876C11.0192 6.16325 11.2577 5.95496 11.5332 5.97353C12.0633 6.00928 12.5641 6.00772 13.0566 5.97553C13.1605 5.55444 13.3512 4.8331 13.5282 4.33317C13.6203 4.07286 13.906 3.93653 14.1663 4.02867ZM12.501 9.74109C11.8436 10.1821 11.427 10.7219 11.2031 11.2387C10.8542 12.0439 10.9881 12.716 11.2638 13.0105C11.2637 13.0104 11.2639 13.0106 11.2638 13.0105C11.3573 13.11 11.5624 13.1973 11.9463 13.109C12.2578 13.0373 12.6311 12.8571 13.0121 12.5576C12.8658 12.22 12.7272 11.8324 12.6313 11.353C12.5405 10.8996 12.4899 10.3743 12.501 9.74109ZM13.7808 11.7797C14.316 11.0956 14.759 10.1665 14.9271 9.01632C14.539 9.00681 14.1111 9.05601 13.6457 9.17854C13.605 9.19274 13.5647 9.20726 13.525 9.22209C13.4663 10.0545 13.5146 10.671 13.6118 11.1568C13.6578 11.3868 13.7156 11.5913 13.7808 11.7797ZM6.92028 5.2159C5.77942 4.88398 4.78409 5.00841 4.07616 5.21575C3.72264 5.3193 3.439 5.44393 3.24121 5.5443C3.14215 5.59457 3.0641 5.63901 3.00903 5.67212C2.98147 5.68868 2.95962 5.70244 2.9437 5.71271L2.92429 5.72542L2.91797 5.72966L2.91566 5.73123L2.91393 5.73241C2.91384 5.73249 2.91436 5.73325 2.94925 5.78397C3.23698 6.20225 3.1703 6.10548 2.91393 5.73241C2.68634 5.88881 2.62863 6.20009 2.78502 6.42767C2.94134 6.65514 3.25207 6.71313 3.47963 6.55703L3.4788 6.5576L3.48576 6.55305C3.49318 6.54826 3.50608 6.5401 3.52423 6.52919C3.56057 6.50735 3.6177 6.47463 3.69373 6.43605C3.84612 6.35872 4.07228 6.2589 4.35724 6.17544C4.92619 6.0088 5.72242 5.90898 6.64043 6.17595C7.35305 6.38517 7.66747 6.76919 7.82692 7.16112C7.98173 7.54163 8.0026 7.95751 8.00531 8.33243C7.46199 8.18407 6.79336 8.03682 6.08385 8.00744C5.04808 7.96456 3.8874 8.17096 2.87738 9.01102C1.98877 9.75011 1.78345 10.8818 2.07014 11.853C2.35713 12.8252 3.14925 13.692 4.31803 13.9348C5.22351 14.123 6.18016 13.8639 6.9599 13.5212C7.3403 13.354 7.69572 13.1594 8.0057 12.9665V13.5C8.0057 13.7761 8.22956 14 8.5057 14C8.78184 14 9.0057 13.7754 9.0057 13.4993L9.0057 8.44586C9.0058 8.05404 9.00595 7.40554 8.7532 6.78428C8.48142 6.11625 7.93342 5.51313 6.92136 5.21622L6.92028 5.2159ZM6.04249 9.00659C6.76366 9.03645 7.44769 9.209 8.0057 9.37205V11.757C7.65814 12.0182 7.13927 12.35 6.55757 12.6057C5.85264 12.9155 5.12729 13.0816 4.52148 12.9557C3.75127 12.7957 3.22322 12.2271 3.02922 11.5699C2.83491 10.9116 2.98777 10.2199 3.51683 9.77985C4.27958 9.14545 5.16917 8.97043 6.04249 9.00659Z" })));
16
+ return (index.h("svg", { key: '2196637bc95dbea321941ad3080c130dcea629c1', xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none" }, index.h("path", { key: '2c2a3192f284366cb9d53e8f381e48cdfa546eb2', fill: "currentColor", d: "M14.1663 4.02867C14.4267 4.12081 14.563 4.40654 14.4709 4.66685C14.3501 5.00788 14.2182 5.4771 14.1178 5.86047C14.6877 5.77587 15.2665 5.65653 15.8867 5.51288C16.1557 5.45058 16.4243 5.61815 16.4866 5.88717C16.5489 6.15619 16.3814 6.42479 16.1123 6.4871C15.339 6.66621 14.6101 6.81289 13.8717 6.90283C13.7759 7.35654 13.7014 7.77084 13.6451 8.15021C14.1202 8.04599 14.5738 8.00553 14.9996 8.02075L14.9996 8C14.9996 7.72386 15.2235 7.5 15.4996 7.5C15.7758 7.5 15.9996 7.72386 15.9996 8C15.9996 8.05657 15.9991 8.11281 15.9979 8.16871C17.1392 8.47838 17.9781 9.23987 18.3435 10.2263C18.9579 11.8853 18.1287 13.8787 15.7027 14.9569C15.4504 15.069 15.1549 14.9554 15.0427 14.7031C14.9306 14.4507 15.0442 14.1552 15.2966 14.0431C17.3705 13.1213 17.7913 11.6147 17.4057 10.5737C17.1874 9.984 16.6776 9.44916 15.9129 9.18633C15.6829 10.7237 15.021 11.9466 14.229 12.7925C14.3126 12.9656 14.3958 13.1436 14.4641 13.3151C14.5662 13.5717 14.441 13.8625 14.1844 13.9646C13.9278 14.0667 13.637 13.9415 13.5349 13.6849C13.5066 13.6137 13.4777 13.5463 13.448 13.4802C13.028 13.7794 12.5905 13.9869 12.1705 14.0835C11.5942 14.2161 10.963 14.1517 10.534 13.6942C9.88917 13.0053 9.84361 11.8611 10.2855 10.8412C10.6652 9.96479 11.4186 9.11781 12.5848 8.54034C12.6387 8.07338 12.7199 7.55894 12.8332 6.98891C12.3926 7.00755 11.9403 7.00326 11.4659 6.97127C11.1904 6.95269 10.9821 6.71428 11.0007 6.43876C11.0192 6.16325 11.2577 5.95496 11.5332 5.97353C12.0633 6.00928 12.5641 6.00772 13.0566 5.97553C13.1605 5.55444 13.3512 4.8331 13.5282 4.33317C13.6203 4.07286 13.906 3.93653 14.1663 4.02867ZM12.501 9.74109C11.8436 10.1821 11.427 10.7219 11.2031 11.2387C10.8542 12.0439 10.9881 12.716 11.2638 13.0105C11.2637 13.0104 11.2639 13.0106 11.2638 13.0105C11.3573 13.11 11.5624 13.1973 11.9463 13.109C12.2578 13.0373 12.6311 12.8571 13.0121 12.5576C12.8658 12.22 12.7272 11.8324 12.6313 11.353C12.5405 10.8996 12.4899 10.3743 12.501 9.74109ZM13.7808 11.7797C14.316 11.0956 14.759 10.1665 14.9271 9.01632C14.539 9.00681 14.1111 9.05601 13.6457 9.17854C13.605 9.19274 13.5647 9.20726 13.525 9.22209C13.4663 10.0545 13.5146 10.671 13.6118 11.1568C13.6578 11.3868 13.7156 11.5913 13.7808 11.7797ZM6.92028 5.2159C5.77942 4.88398 4.78409 5.00841 4.07616 5.21575C3.72264 5.3193 3.439 5.44393 3.24121 5.5443C3.14215 5.59457 3.0641 5.63901 3.00903 5.67212C2.98147 5.68868 2.95962 5.70244 2.9437 5.71271L2.92429 5.72542L2.91797 5.72966L2.91566 5.73123L2.91393 5.73241C2.91384 5.73249 2.91436 5.73325 2.94925 5.78397C3.23698 6.20225 3.1703 6.10548 2.91393 5.73241C2.68634 5.88881 2.62863 6.20009 2.78502 6.42767C2.94134 6.65514 3.25207 6.71313 3.47963 6.55703L3.4788 6.5576L3.48576 6.55305C3.49318 6.54826 3.50608 6.5401 3.52423 6.52919C3.56057 6.50735 3.6177 6.47463 3.69373 6.43605C3.84612 6.35872 4.07228 6.2589 4.35724 6.17544C4.92619 6.0088 5.72242 5.90898 6.64043 6.17595C7.35305 6.38517 7.66747 6.76919 7.82692 7.16112C7.98173 7.54163 8.0026 7.95751 8.00531 8.33243C7.46199 8.18407 6.79336 8.03682 6.08385 8.00744C5.04808 7.96456 3.8874 8.17096 2.87738 9.01102C1.98877 9.75011 1.78345 10.8818 2.07014 11.853C2.35713 12.8252 3.14925 13.692 4.31803 13.9348C5.22351 14.123 6.18016 13.8639 6.9599 13.5212C7.3403 13.354 7.69572 13.1594 8.0057 12.9665V13.5C8.0057 13.7761 8.22956 14 8.5057 14C8.78184 14 9.0057 13.7754 9.0057 13.4993L9.0057 8.44586C9.0058 8.05404 9.00595 7.40554 8.7532 6.78428C8.48142 6.11625 7.93342 5.51313 6.92136 5.21622L6.92028 5.2159ZM6.04249 9.00659C6.76366 9.03645 7.44769 9.209 8.0057 9.37205V11.757C7.65814 12.0182 7.13927 12.35 6.55757 12.6057C5.85264 12.9155 5.12729 13.0816 4.52148 12.9557C3.75127 12.7957 3.22322 12.2271 3.02922 11.5699C2.83491 10.9116 2.98777 10.2199 3.51683 9.77985C4.27958 9.14545 5.16917 8.97043 6.04249 9.00659Z" })));
17
17
  }
18
18
  };
19
19
  GlobeIcon.style = iconCss;
@@ -13,7 +13,7 @@ const TrashIcon = class {
13
13
  this.height = '15';
14
14
  }
15
15
  render() {
16
- return (index.h("svg", { key: '112a0f662aa55e21f66fea349837214b84582a4d', width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '8405d564e9ae68e68a8462b7870ca35637512051', d: "M3 6H5H21", stroke: "auto", "stroke-width": "1.5" }), index.h("path", { key: 'a002ff92613dc9fb30232a5588d04a52517461c0', d: "M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z", stroke: "auto", "stroke-width": "1.5" }), index.h("path", { key: '63a384b8ae5234d01b263a7bc76313f9f95ec794', d: "M10 11V17", stroke: "auto", "stroke-width": "1.5" }), index.h("path", { key: '58f9193d0888f843aeaa2c9ee9149e2c205f94ba', d: "M14 11V17", stroke: "auto", "stroke-width": "1.5" })));
16
+ return (index.h("svg", { key: '0fa95af4a6b84258131efa3e098791621c7e242a', width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '49c0591ec45279759c2a3f38e9c55851692a2283', d: "M3 6H5H21", stroke: "auto", "stroke-width": "1.5" }), index.h("path", { key: '389e6eed81f978951fb2bdb0b594bb6187a55fc3', d: "M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z", stroke: "auto", "stroke-width": "1.5" }), index.h("path", { key: 'a961e902065b0a650b558afbe31b00f5d19945aa', d: "M10 11V17", stroke: "auto", "stroke-width": "1.5" }), index.h("path", { key: '491de36ad9620009c6646d795e40276da46401ab', d: "M14 11V17", stroke: "auto", "stroke-width": "1.5" })));
17
17
  }
18
18
  };
19
19
  TrashIcon.style = iconCss;
@@ -13,7 +13,7 @@ const UnderlineIcon = class {
13
13
  this.height = '15';
14
14
  }
15
15
  render() {
16
- return (index.h("svg", { key: '5e0070c733a6b740a5d0dc27e52bb12a2526479d', width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'ed960c7122816d4c3eed1f7d1955c797e31c7531', d: "M19 4V10C19 13.866 15.866 17 12 17C8.13401 17 5 13.866 5 10V4M8.5 4V10C8.5 13.2218 10.6766 15.9352 13.6395 16.7501M4 21H20M3 4L10.5 4M17 4L21 4", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })));
16
+ return (index.h("svg", { key: '90d8a0e568e0303cf35533b6aec885e6a41da075', width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '96f2d77839ec63e1d8c4f9ea5c9cdc92ea1bb396', d: "M19 4V10C19 13.866 15.866 17 12 17C8.13401 17 5 13.866 5 10V4M8.5 4V10C8.5 13.2218 10.6766 15.9352 13.6395 16.7501M4 21H20M3 4L10.5 4M17 4L21 4", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })));
17
17
  }
18
18
  };
19
19
  UnderlineIcon.style = iconCss;
@@ -3626,10 +3626,27 @@ function getBrowser() {
3626
3626
  return 'Edge (Legacy)';
3627
3627
  return 'Unknown';
3628
3628
  }
3629
+ function dataResponse(data, error = null) {
3630
+ if (error) {
3631
+ return [null, error];
3632
+ }
3633
+ return [data, null];
3634
+ }
3635
+ function parsePreviewLink(link, config) {
3636
+ const replacements = {
3637
+ 'config.id': config?.id,
3638
+ 'id': config?.id,
3639
+ };
3640
+ Object.keys(replacements).forEach(key => {
3641
+ link = link.replace(`{${key}}`, replacements[key]);
3642
+ });
3643
+ return link;
3644
+ }
3629
3645
 
3630
3646
  exports.autocompleteTimeFormat = autocompleteTimeFormat;
3631
3647
  exports.convertTo12HourFormat = convertTo12HourFormat;
3632
3648
  exports.convertTo24HourFormat = convertTo24HourFormat;
3649
+ exports.dataResponse = dataResponse;
3633
3650
  exports.dayjs = dayjs;
3634
3651
  exports.debug = debug;
3635
3652
  exports.detectHTMLOrPlainText = detectHTMLOrPlainText;
@@ -3649,6 +3666,7 @@ exports.isSameDay = isSameDay;
3649
3666
  exports.isSameMonth = isSameMonth;
3650
3667
  exports.minutesToTime = minutesToTime;
3651
3668
  exports.parsePlainTextToHTML = parsePlainTextToHTML;
3669
+ exports.parsePreviewLink = parsePreviewLink;
3652
3670
  exports.roundToNearest15Minutes = roundToNearest15Minutes;
3653
3671
  exports.timeToMinutes = timeToMinutes;
3654
3672
  exports.toTitleCase = toTitleCase;
@@ -3656,4 +3674,4 @@ exports.uniqueID = uniqueID;
3656
3674
  exports.validateExactTimeFormat = validateExactTimeFormat;
3657
3675
  exports.validateTimeFormatInput = validateTimeFormatInput;
3658
3676
 
3659
- //# sourceMappingURL=utils-53dd7574.js.map
3677
+ //# sourceMappingURL=utils-20663d54.js.map